@nuvin/agent-core 0.0.0-rc.5 → 0.0.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +33 -3
- package/dist/agent/index.js +1 -1
- package/dist/chunk-4DNIDCX7.js +1 -0
- package/dist/chunk-G2FR4UGO.js +1 -1
- package/dist/chunk-KVFXQ7HW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +6 -3
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +9 -4
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-Cb5hUJoD.d.ts → provider-adapters-CdnzlH4Y.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +139 -3
- package/dist/tools/index.js +1 -1
- package/dist/{types-QPBW5jHO.d.ts → types-Dpf5wjPw.d.ts} +41 -18
- package/package.json +2 -2
- package/dist/chunk-LXQDGX4K.js +0 -1
- package/dist/chunk-P54V754C.js +0 -1
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3267ac,_0x275629){const _0x227054={_0x28cabe:0x383,_0x3cfad7:0x3c9,_0x30f723:0x151,_0x3e9574:0x6,_0x37c13a:0x3e,_0x3d572d:0xa4,_0x1c1712:0x13,_0x27cfc7:0x165,_0x2d6cf0:0x70,_0x232f75:0x11b,_0x5f0981:0x451,_0x3bfb42:0x4e4,_0xfa51ad:0x4eb,_0x5cb5f4:0x3a2,_0xf95cdc:0x9d,_0xc35520:0x15a,_0x4d9aef:0xf9,_0x20b9b7:0x1e8,_0x4a5256:0x37d,_0x164bc3:0x45e,_0xf8784a:0x438,_0x211c7b:0x421,_0x4351b0:0x2c5,_0x5564d9:0x152,_0x395ca5:0x2f5},_0x1480c3={_0x5ad77f:0x37},_0x53a93f=_0x3267ac();function _0x36e85b(_0x5a4673,_0x56a794,_0x1b4aa0,_0x57b95c){return _0x4100(_0x56a794-_0x1480c3._0x5ad77f,_0x57b95c);}function _0x343be8(_0x5e5fa0,_0x4881ab,_0x36c6b7,_0x2349d1){return _0x4100(_0x36c6b7- -0x37d,_0x5e5fa0);}while(!![]){try{const _0x1e984e=parseInt(_0x36e85b(_0x227054._0x28cabe,_0x227054._0x3cfad7,0x2b4,0x4f5))/0x1+-parseInt(_0x343be8(-0x138,-_0x227054._0x30f723,-0x132,-0x1c5))/0x2*(-parseInt(_0x343be8(-_0x227054._0x3e9574,0x161,_0x227054._0x37c13a,0x13e))/0x3)+-parseInt(_0x343be8(-_0x227054._0x3d572d,-_0x227054._0x1c1712,-0x92,-_0x227054._0x27cfc7))/0x4*(-parseInt(_0x343be8(-_0x227054._0x2d6cf0,0x80,0x1,_0x227054._0x232f75))/0x5)+-parseInt(_0x36e85b(_0x227054._0x5f0981,0x400,_0x227054._0x3bfb42,_0x227054._0xfa51ad))/0x6*(parseInt(_0x36e85b(0x2c5,_0x227054._0x5cb5f4,0x2e9,0x342))/0x7)+-parseInt(_0x343be8(-_0x227054._0xf95cdc,-_0x227054._0xc35520,-_0x227054._0x4d9aef,-_0x227054._0x20b9b7))/0x8*(parseInt(_0x36e85b(_0x227054._0x4a5256,_0x227054._0x164bc3,_0x227054._0xf8784a,0x4b1))/0x9)+-parseInt(_0x36e85b(_0x227054._0x211c7b,0x37e,0x2e5,_0x227054._0x4351b0))/0xa+parseInt(_0x36e85b(0x317,0x267,_0x227054._0x5564d9,_0x227054._0x395ca5))/0xb;if(_0x1e984e===_0x275629)break;else _0x53a93f['push'](_0x53a93f['shift']());}catch(_0x31fefc){_0x53a93f['push'](_0x53a93f['shift']());}}}(_0x2b52,0xc990d));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-P54V754C.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.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 _0x2946e8 from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':_0x255f51(0x657,0x731,0x6ab,0x67a),'.js':_0x173565(0x1dc,0x8f,0x4d,0xc6),'.jsx':_0x173565(-0xf1,0x6e,-0x71,-0x18),'.mjs':_0x255f51(0x632,0x687,0x54b,0x54c),'.cjs':'javascript','.mts':_0x255f51(0x693,0x616,0x6fe,0x702),'.cts':'typescript','.json':_0x255f51(0x6c2,0x641,0x7a0,0x640),'.jsonc':_0x255f51(0x628,0x6f3,0x640,0x595)};function getLanguageId(_0x3f8d9d){const _0x24cfca={_0x3fa516:0x167,_0xef11b3:0x55,_0x11071f:0x74,_0x69fc3b:0x6},_0x324b46={_0x101d92:0x2a0,_0x172674:0x1e7},_0x25b761={_0xfe3aff:0x5e};function _0x11ac81(_0x345ce0,_0x44558f,_0x45318b,_0x508e8f){return _0x173565(_0x345ce0-0x1d5,_0x44558f-0x1ef,_0x45318b,_0x44558f- -_0x25b761._0xfe3aff);}function _0x1751aa(_0x31d9f4,_0x4a2a9f,_0x2277a7,_0x17cd46){return _0x255f51(_0x2277a7- -_0x324b46._0x101d92,_0x4a2a9f-_0x324b46._0x172674,_0x31d9f4,_0x17cd46-0xb3);}return EXTENSION_TO_LANGUAGE[_0x2946e8[_0x11ac81(0x15c,_0x24cfca._0x3fa516,0xb2,0x5d)](_0x3f8d9d)[_0x11ac81(_0x24cfca._0xef11b3,_0x24cfca._0x11071f,-_0x24cfca._0x69fc3b,0xf9)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x99f4bb){const _0x528595={_0x41df9c:0xec,_0x16495b:0x1c7},_0x3a787e={_0x2879e3:0x505,_0x12bbfa:0x21};function _0xd2f703(_0x473c3d,_0x263268,_0x5bec59,_0x4b12b8){return _0x255f51(_0x473c3d- -_0x3a787e._0x2879e3,_0x263268-_0x3a787e._0x12bbfa,_0x263268,_0x4b12b8-0x1d7);}return pathToFileURL(_0x99f4bb)[_0xd2f703(0xae,_0x528595._0x41df9c,_0x528595._0x16495b,0xd6)]();}function textDocumentPosition(_0x59e8d8){const _0x588f18={_0x4dc719:0x560,_0x2d8fe7:0x574,_0x129136:0x626},_0x5208d0={_0x4386e0:0x58,_0x3f7cb9:0x326},_0x45f915={_0x4bb0dd:0x1dc,_0x2b43de:0x4c9};function _0x770a42(_0x47fe9c,_0x4a7cec,_0x4ca821,_0x32e37f){return _0x173565(_0x47fe9c-_0x45f915._0x4bb0dd,_0x4a7cec-0x1e9,_0x4ca821,_0x32e37f-_0x45f915._0x2b43de);}function _0x3ef6b0(_0x2a17e0,_0x29818d,_0x264296,_0x46fb0f){return _0x173565(_0x2a17e0-_0x5208d0._0x4386e0,_0x29818d-0x1e,_0x29818d,_0x264296-_0x5208d0._0x3f7cb9);}return{'textDocument':{'uri':uriForPath(_0x59e8d8[_0x3ef6b0(_0x588f18._0x4dc719,_0x588f18._0x2d8fe7,0x538,0x4d6)])},'position':{'line':_0x59e8d8[_0x3ef6b0(0x2ff,0x355,0x3c0,0x2ab)],'character':_0x59e8d8[_0x770a42(0x4fc,_0x588f18._0x129136,0x56f,0x5a0)]}};}function normalizeLocations(_0x4f6fa8){if(!_0x4f6fa8)return[];return Array['isArray'](_0x4f6fa8)?_0x4f6fa8:[_0x4f6fa8];}async function createLspClient(_0x5b9213){const _0x238bfe={_0x23aa8e:0x49e,_0x408f03:0x5c1,_0x1b2c44:0x5de,_0x18adde:0x593,_0x41d33b:0x535,_0x55f9d4:0x5b4,_0x38bb34:0x464,_0x313a26:0x572,_0x1aec62:0x5fb,_0x364d82:0x573,_0x3183e7:0x651,_0x34730b:0x56f,_0x3fde93:0x738,_0x52c58e:0x63d,_0x29253e:0x178,_0x558207:0xc3,_0x44068c:0xac,_0x30b15c:0x550,_0x2241e3:0x4ed,_0x2ccca3:0x612,_0x2a5dbc:0x45e,_0x5d18b3:0x59c,_0x249ddc:0x586,_0x116eca:0x515,_0x295c82:0x63,_0x306706:0xf1,_0x75f3ae:0xf,_0x4dc6a2:0x10a,_0x4965ca:0x4f3,_0x372577:0x61a,_0x245697:0x71,_0x4a4533:0x8c,_0x4ac451:0x85,_0x239835:0xad,_0xceaf81:0x10e,_0x24fc41:0xb1,_0x4acdbf:0x3c,_0x4bd08d:0x9,_0x50d38b:0xe7,_0x289400:0xf1,_0x21ecb9:0x13,_0x28872c:0xe0,_0xfc22ac:0x48},_0x40d5ec={_0x5626d9:0x19d,_0x518bf0:0x104,_0x28e545:0xb3,_0x5b1719:0x1a9,_0x118ea2:0x115,_0x27c0a1:0x5f8,_0x310976:0x49e,_0x1016eb:0x53a,_0x3d8b4d:0x593,_0x1cc187:0x448,_0x332efd:0x2b,_0x4e1c95:0x403,_0x1f4b03:0x440,_0x4a38e1:0x3a0},_0x6b5a2b={_0x113c1c:0x1d7,_0x598525:0x1b7},_0x5b1859={_0x508d07:0x335,_0x394fda:0x30a,_0x407532:0x3e7,_0x5328eb:0x499,_0x4c8e19:0x568},_0x487690={_0x28e277:0xd,_0x36fd7a:0x65,_0x43e4a9:0x138,_0xf29b6a:0x24,_0x14bd7f:0x14,_0x1dd9ba:0xbc},_0x4b4407={_0x285bde:0x1e8,_0x31b382:0x208,_0x1761ce:0x1bf},_0x200e69={_0x5b154d:0x578,_0x37629b:0x520,_0x19e07d:0x41f,_0x37b79:0x2db,_0x22c0cb:0x336},_0x329dd4={_0x4470ec:0xc5,_0x361116:0x1b3},_0x45ab8a={_0xe18071:0x1bc,_0x34283e:0x62a,_0x2a52b5:0x1b},_0x1ac207={_0x149229:0x261,_0x3d31c6:0x3fd},_0x1c2d32={_0x1a5353:0x71b,_0x5867cf:0x682,_0x28925b:0x710},_0x285469={_0x1b4701:0x193},_0x56a994={_0x44dd34:0x53,_0x57814d:0x1be},_0x36cd0d={_0xd34d9e:0x348,_0x514e32:0x52b},_0x27241c={_0x27c5ea:0x139,_0x442867:0x95,_0x23a9db:0x143,_0x495294:0x58},_0xeba4d7={_0x196577:0x243,_0x57689c:0xcd},_0x3dd08b={_0x2ccbbc:0xe1,_0x1df1ea:0x7a,_0x34c1bd:0x139,_0x15f2e8:0x3b,_0x129506:0xeb},_0x50b1a3={_0x40c482:0x321,_0x39b82d:0x44a},_0x3d32d8={_0x40f082:0xe1,_0x23b04b:0xde,_0x27934e:0x1c9,_0x517e7f:0x1d1,_0x576936:0x1b1},_0xfe5c59={_0x259391:0x1ca,_0x5e709f:0x424,_0x35c4df:0xf3},_0x1b0441={_0x53e744:0x496},_0x1e563b={_0x22e822:0x524,_0x578bd6:0x741,_0x4a16dd:0x57a,_0x33e811:0x66c},_0x199a4d={_0x50d978:0x1d5,_0x2a572b:0x65},_0x5e8786={_0x530d92:0x723,_0x4f755a:0x596,_0x6af9a6:0x6a7,_0x2886cf:0x6c2},_0x141262={_0x579c74:0x5a,_0x4049ae:0x186,_0x1e6585:0x15a},_0x3d7bce={_0x4981c9:0x1d5,_0x438b95:0x305,_0x17f159:0x247,_0x17394c:0x1fb,_0x403db5:0x320,_0x2e1e04:0xd3,_0x1bd324:0x333,_0x42281e:0x2cd,_0x4e7db6:0x3de},_0x38a3c7={_0x3d5078:0x21,_0x171999:0x40f},_0x4f2116={_0x45330d:0x1c1};function _0x388125(_0x14deff,_0x36c402,_0x48cfcf,_0x13876b){return _0x173565(_0x14deff-_0x4f2116._0x45330d,_0x36c402-0x128,_0x36c402,_0x48cfcf- -0x10d);}const _0xdb0d7d=_0x5b9213[_0x311372(_0x238bfe._0x23aa8e,0x498,_0x238bfe._0x408f03,0x572)][_0x311372(_0x238bfe._0x1b2c44,_0x238bfe._0x18adde,0x581,0x5a0)][_0x311372(_0x238bfe._0x41d33b,0x4f6,_0x238bfe._0x55f9d4,0x558)],_0x40c3bc=_0x5b9213[_0x311372(0x4f4,_0x238bfe._0x38bb34,0x694,_0x238bfe._0x313a26)][_0x311372(_0x238bfe._0x1aec62,0x4d6,_0x238bfe._0x364d82,0x5a0)][_0x311372(_0x238bfe._0x3183e7,0x5ab,0x4af,0x57e)];if(!_0xdb0d7d||!_0x40c3bc)throw new Error(_0x311372(0x652,_0x238bfe._0x34730b,_0x238bfe._0x3fde93,_0x238bfe._0x52c58e));const _0x454624=createMessageConnection(new StreamMessageReader(_0xdb0d7d),new StreamMessageWriter(_0x40c3bc)),_0x2aa8ce=new Map(),_0x5d9661=new Map();let _0x15c109=![];_0x454624[_0x388125(-_0x238bfe._0x29253e,-_0x238bfe._0x558207,-0x123,-_0x238bfe._0x44068c)](_0x311372(0x5d1,_0x238bfe._0x30b15c,_0x238bfe._0x2241e3,_0x238bfe._0x2ccca3),_0x7dd1bf=>{const _0x483438={_0x257702:0x1a9};_0x2aa8ce[_0x3e73d8(_0x3d7bce._0x4981c9,0x264,_0x3d7bce._0x438b95,0x225)](_0x7dd1bf[_0x3e73d8(0x393,0x333,0x2cb,0x26d)],_0x7dd1bf[_0x3e73d8(_0x3d7bce._0x17f159,_0x3d7bce._0x17394c,0x156,_0x3d7bce._0x403db5)]);const _0x412673=_0x5d9661[_0x3e73d8(_0x3d7bce._0x2e1e04,0x146,0x242,0x1dd)](_0x7dd1bf[_0x3e73d8(0x237,_0x3d7bce._0x1bd324,_0x3d7bce._0x42281e,0x401)]);if(!_0x412673)return;_0x5d9661['delete'](_0x7dd1bf[_0x3e73d8(_0x3d7bce._0x4e7db6,_0x3d7bce._0x1bd324,0x390,0x217)]);function _0x3e73d8(_0x5afed8,_0x5b78dc,_0x5aa2b4,_0xd92fff){return _0x311372(_0x5afed8-_0x38a3c7._0x3d5078,_0xd92fff,_0x5aa2b4-0xc5,_0x5b78dc- -_0x38a3c7._0x171999);}function _0x333710(_0x2e9761,_0x1c8402,_0x2141d8,_0x430364){return _0x311372(_0x2e9761-0x40,_0x430364,_0x2141d8-_0x483438._0x257702,_0x2e9761- -0x241);}for(const _0x236fec of _0x412673)_0x236fec();}),_0x454624[_0x311372(_0x238bfe._0x2a5dbc,0x519,_0x238bfe._0x5d18b3,_0x238bfe._0x249ddc)]();const _0x26a47e=await _0x454624[_0x311372(0x5d8,0x400,0x57e,_0x238bfe._0x116eca)](_0x388125(_0x238bfe._0x295c82,-0xe,0x4c,-0x1c),{'processId':process['pid'],'rootUri':uriForPath(_0x5b9213[_0x311372(0x73d,0x649,0x700,0x710)]),'workspaceFolders':[{'uri':uriForPath(_0x5b9213[_0x388125(0x214,0x2d,_0x238bfe._0x306706,_0x238bfe._0x75f3ae)]),'name':_0x5b9213[_0x388125(0xe4,0x64,0x56,_0x238bfe._0x4dc6a2)]['id']}],'initializationOptions':_0x5b9213[_0x311372(_0x238bfe._0x4965ca,_0x238bfe._0x372577,0x541,0x572)][_0x388125(-0x195,_0x238bfe._0x245697,-_0x238bfe._0x4a4533,_0x238bfe._0x4ac451)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x388125(-0x75,_0x238bfe._0x239835,-0x27,-_0x238bfe._0xceaf81),'plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});function _0x311372(_0x1c01e1,_0x24dd3a,_0x16343d,_0x19d022){return _0x255f51(_0x19d022- -_0x141262._0x579c74,_0x24dd3a-_0x141262._0x4049ae,_0x24dd3a,_0x19d022-_0x141262._0x1e6585);}_0x454624[_0x388125(_0x238bfe._0x24fc41,-0x12d,-_0x238bfe._0x4acdbf,0xa)](_0x388125(0x24,-0x59,_0x238bfe._0x4bd08d,0xf8),{});const _0x2e3acf={'serverId':_0x5b9213['server']['id'],'root':_0x5b9213[_0x388125(_0x238bfe._0x50d38b,0x52,_0x238bfe._0x289400,0x196)],'connection':_0x454624,'diagnostics':_0x2aa8ce,'capabilities':_0x26a47e[_0x388125(_0x238bfe._0x21ecb9,-0x13b,-_0x238bfe._0x28872c,-_0x238bfe._0xfc22ac)]??{},'notify':{async 'open'({path:_0x5d771f}){const _0xa6cb0d={_0x3faaa3:0x16d,_0x32ccdb:0xac,_0x16bb57:0x45};function _0x67b71d(_0x1e1482,_0xbf4972,_0x52ca0a,_0x1b3c0e){return _0x311372(_0x1e1482-_0xa6cb0d._0x3faaa3,_0x52ca0a,_0x52ca0a-_0xa6cb0d._0x32ccdb,_0xbf4972- -_0xa6cb0d._0x16bb57);}const _0x299cf1=await readFile(_0x5d771f,'utf8');function _0x48579a(_0x3f505a,_0x296354,_0x964060,_0x44df9a){return _0x388125(_0x3f505a-0x13b,_0x3f505a,_0x296354-0x64b,_0x44df9a-0x3b);}_0x454624[_0x48579a(_0x5e8786._0x530d92,0x60f,_0x5e8786._0x4f755a,_0x5e8786._0x6af9a6)](_0x48579a(0x76e,0x673,0x798,0x6a4),{'textDocument':{'uri':uriForPath(_0x5d771f),'languageId':getLanguageId(_0x5d771f)??_0x48579a(0x7d9,_0x5e8786._0x2886cf,0x5f6,0x6da),'version':0x1,'text':_0x299cf1}});},async 'change'({path:_0x300abc,version:_0x2b021b}){const _0x4d7c9f={_0x30e978:0x24};function _0x1a75d0(_0x3a5045,_0x2c8a4a,_0x35b477,_0x3d060a){return _0x311372(_0x3a5045-_0x199a4d._0x50d978,_0x3a5045,_0x35b477-0x18,_0x35b477-_0x199a4d._0x2a572b);}const _0x2e2069=await readFile(_0x300abc,'utf8');function _0x4f0297(_0x52da39,_0x1385e7,_0x5b4e93,_0x52282c){return _0x388125(_0x52da39-_0x4d7c9f._0x30e978,_0x5b4e93,_0x52da39-0xde,_0x52282c-0xa);}_0x454624[_0x1a75d0(_0x1e563b._0x22e822,_0x1e563b._0x578bd6,0x648,_0x1e563b._0x4a16dd)](_0x1a75d0(0x79a,0x737,_0x1e563b._0x33e811,0x605),{'textDocument':{'uri':uriForPath(_0x300abc),'version':_0x2b021b},'contentChanges':[{'text':_0x2e2069}]});},async 'close'({path:_0x1683b2}){const _0x7d7874={_0xe4a11:0x48b};function _0x26fecb(_0x10d26b,_0x34bb4d,_0x55fe1a,_0x20712b){return _0x388125(_0x10d26b-0xd9,_0x20712b,_0x34bb4d-_0x7d7874._0xe4a11,_0x20712b-0x10d);}_0x454624[_0x26fecb(_0x1b0441._0x53e744,0x44f,0x375,0x43a)]('textDocument/didClose',{'textDocument':{'uri':uriForPath(_0x1683b2)}});}},'request':{async 'definition'(_0x5d1c13){const _0x3cbbaf={_0x2e6b7d:0x1d4};function _0x531c3c(_0x530d39,_0x187ae1,_0x2fa178,_0x4d18f9){return _0x388125(_0x530d39-_0xfe5c59._0x259391,_0x530d39,_0x4d18f9-_0xfe5c59._0x5e709f,_0x4d18f9-_0xfe5c59._0x35c4df);}function _0x2c0d36(_0x5ed4c3,_0x534b48,_0x48b605,_0x2246b5){return _0x311372(_0x5ed4c3-0x11c,_0x2246b5,_0x48b605-_0x3cbbaf._0x2e6b7d,_0x48b605- -0x437);}return normalizeLocations(await _0x454624[_0x2c0d36(_0x3d32d8._0x40f082,0x102,_0x3d32d8._0x23b04b,_0x3d32d8._0x27934e)](_0x2c0d36(_0x3d32d8._0x517e7f,_0x3d32d8._0x576936,0x129,0xbb),textDocumentPosition(_0x5d1c13)));},async 'references'(_0x1e8984){function _0x454b98(_0x211c30,_0x5bd454,_0x431bea,_0xce03dd){return _0x388125(_0x211c30-0x33,_0x5bd454,_0x431bea-0x42b,_0xce03dd-0x134);}return normalizeLocations(await _0x454624[_0x454b98(0x433,0x314,_0x50b1a3._0x40c482,_0x50b1a3._0x39b82d)]('textDocument/references',{...textDocumentPosition(_0x1e8984),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x319134){const _0x52ef91={_0xc20208:0x72,_0x1453e0:0x76},_0x28f95c={_0x214cfc:0x10e};function _0x288003(_0x57ca8b,_0x17fe21,_0x2ee649,_0x532a15){return _0x388125(_0x57ca8b-0x1f2,_0x57ca8b,_0x17fe21-0x1eb,_0x532a15-_0x28f95c._0x214cfc);}function _0x53b06e(_0x9104fe,_0x1f9e1a,_0x2aece7,_0x52b8bb){return _0x388125(_0x9104fe-_0x52ef91._0xc20208,_0x1f9e1a,_0x52b8bb- -0xbf,_0x52b8bb-_0x52ef91._0x1453e0);}return await _0x454624[_0x288003(0x36,_0x3dd08b._0x2ccbbc,_0x3dd08b._0x1df1ea,0x1d6)](_0x288003(0x1ad,_0x3dd08b._0x34c1bd,_0x3dd08b._0x15f2e8,_0x3dd08b._0x129506),textDocumentPosition(_0x319134))??null;},async 'documentSymbol'(_0x30fd96){const _0x595516={_0x215ffe:0xe5};function _0x401eb3(_0x319aa1,_0x2498ea,_0x38574b,_0x443851){return _0x388125(_0x319aa1-_0x595516._0x215ffe,_0x319aa1,_0x38574b-0xcf,_0x443851-0x165);}function _0x59cd4d(_0x5b09f1,_0x1d7060,_0x219815,_0x3fcb64){return _0x388125(_0x5b09f1-0x7f,_0x1d7060,_0x5b09f1-_0xeba4d7._0x196577,_0x3fcb64-_0xeba4d7._0x57689c);}return await _0x454624[_0x59cd4d(_0x27241c._0x27c5ea,_0x27241c._0x442867,0x1a0,0xef)](_0x401eb3(0x247,0x241,_0x27241c._0x23a9db,_0x27241c._0x495294),{'textDocument':{'uri':uriForPath(_0x30fd96)}})??[];},async 'workspaceSymbol'(_0x122861){const _0x1557a3={_0x3e98cd:0x124,_0x50f03b:0x57f};function _0x5ceca0(_0x180f4a,_0x3e2eb0,_0x4c7e64,_0x77438f){return _0x388125(_0x180f4a-_0x1557a3._0x3e98cd,_0x77438f,_0x180f4a-_0x1557a3._0x50f03b,_0x77438f-0x7a);}return await _0x454624[_0x5ceca0(0x475,0x37e,_0x36cd0d._0xd34d9e,_0x36cd0d._0x514e32)]('workspace/symbol',{'query':_0x122861})??[];},async 'implementation'(_0x793fc2){function _0x294d78(_0x12be69,_0x5f3bf4,_0x36db4b,_0xd7b6be){return _0x388125(_0x12be69-_0x56a994._0x44dd34,_0x12be69,_0x5f3bf4-0x6b3,_0xd7b6be-_0x56a994._0x57814d);}function _0x4296cc(_0x3f989f,_0x38d67e,_0x4d725d,_0x5bed10){return _0x388125(_0x3f989f-_0x285469._0x1b4701,_0x5bed10,_0x38d67e-0x57c,_0x5bed10-0x187);}return normalizeLocations(await _0x454624[_0x294d78(0x509,0x5a9,0x63c,0x4f1)](_0x294d78(_0x1c2d32._0x1a5353,_0x1c2d32._0x5867cf,0x6e9,_0x1c2d32._0x28925b),textDocumentPosition(_0x793fc2)));},async 'prepareCallHierarchy'(_0x3f24eb){const _0x488869={_0x40a4bb:0x15a,_0xa9e738:0x444,_0x1b9227:0x86};function _0x4ba8d1(_0x4d7fe2,_0x3b2c4f,_0x385a1e,_0x13cc42){return _0x388125(_0x4d7fe2-_0x488869._0x40a4bb,_0x13cc42,_0x4d7fe2-_0x488869._0xa9e738,_0x13cc42-_0x488869._0x1b9227);}return await _0x454624[_0x4ba8d1(0x33a,_0x1ac207._0x149229,0x2b4,_0x1ac207._0x3d31c6)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x3f24eb))??[];},async 'incomingCalls'(_0x363fa3){function _0x3a119e(_0x89c4fc,_0x6aab84,_0x321943,_0x31a404){return _0x388125(_0x89c4fc-_0x45ab8a._0xe18071,_0x6aab84,_0x321943-_0x45ab8a._0x34283e,_0x31a404-_0x45ab8a._0x2a52b5);}function _0x5cb703(_0x272a22,_0x486ebf,_0xe80f6c,_0x213a73){return _0x388125(_0x272a22-_0x329dd4._0x4470ec,_0xe80f6c,_0x486ebf-0x31b,_0x213a73-_0x329dd4._0x361116);}return await _0x454624[_0x3a119e(0x470,_0x200e69._0x5b154d,_0x200e69._0x37629b,_0x200e69._0x19e07d)](_0x5cb703(0x3a0,_0x200e69._0x37b79,_0x200e69._0x22c0cb,0x3a6),{'item':_0x363fa3})??[];},async 'outgoingCalls'(_0x1714bd){const _0x8ecc98={_0x292803:0x12f,_0x5ea3f4:0x4b5};function _0x94f8b4(_0x5453a5,_0x515723,_0x5d8c00,_0x4febba){return _0x311372(_0x5453a5-0x118,_0x5453a5,_0x5d8c00-_0x8ecc98._0x292803,_0x515723- -_0x8ecc98._0x5ea3f4);}return await _0x454624['sendRequest'](_0x94f8b4(_0x4b4407._0x285bde,_0x4b4407._0x31b382,_0x4b4407._0x1761ce,0x12f),{'item':_0x1714bd})??[];}},'waitForDiagnostics'({path:_0x1db329,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x32d3e3={_0x2bf7ff:0xce,_0x3a1be4:0x5ed},_0x523f79={_0xa22a35:0x38e,_0x49df3a:0x2bd,_0x519de4:0x384,_0xb4e683:0x125,_0x464c0d:0x2b,_0x488806:0x60},_0x2a6671={_0x285015:0x3a},_0x4a63cd=uriForPath(_0x1db329);function _0x4221f0(_0x5ea08f,_0x360153,_0x2f58c3,_0x5a27b2){return _0x311372(_0x5ea08f-0x16e,_0x5a27b2,_0x2f58c3-_0x2a6671._0x285015,_0x2f58c3- -0x270);}if(_0x2aa8ce[_0x4221f0(_0x5b1859._0x508d07,_0x5b1859._0x394fda,_0x5b1859._0x407532,_0x5b1859._0x5328eb)](_0x4a63cd))return Promise[_0x12ecc1(0x51f,0x515,_0x5b1859._0x4c8e19,0x5d1)]();function _0x12ecc1(_0x3725d1,_0xc29ede,_0x8cc260,_0x4a2a5a){return _0x311372(_0x3725d1-0x172,_0x3725d1,_0x8cc260-0x1d0,_0x4a2a5a-0xa2);}return new Promise(_0x9203e4=>{const _0x2fae61={_0x316b6c:0x102,_0x50c3df:0x630},_0xab365e={_0x1b904f:0x28c},_0x46cc7f=setTimeout(()=>{const _0x355674=_0x5d9661['get'](_0x4a63cd);function _0xd63709(_0x3235ee,_0xbd26b5,_0x41a0cf,_0x42b102){return _0x4100(_0xbd26b5- -0xa2,_0x42b102);}_0x355674?.[_0xd63709(_0x523f79._0xa22a35,_0x523f79._0x49df3a,_0x523f79._0x519de4,0x36d)](_0x59583f);function _0x116211(_0xe0fcfa,_0x40ba35,_0x1a0594,_0x582f73){return _0x4100(_0x40ba35- -_0xab365e._0x1b904f,_0xe0fcfa);}if(_0x355674?.[_0x116211(_0x523f79._0xb4e683,0x87,_0x523f79._0x464c0d,_0x523f79._0x488806)]===0x0)_0x5d9661['delete'](_0x4a63cd);_0x9203e4();},timeoutMs),_0x59583f=()=>{clearTimeout(_0x46cc7f),_0x9203e4();};function _0x546b1c(_0x2bdeff,_0x5ed56d,_0x34bb1e,_0x3467fa){return _0x12ecc1(_0x34bb1e,_0x5ed56d-0x17f,_0x34bb1e-_0x32d3e3._0x2bf7ff,_0x2bdeff- -_0x32d3e3._0x3a1be4);}const _0x5541e9=_0x5d9661[_0x546b1c(0xa,_0x487690._0x28e277,_0x487690._0x36fd7a,_0x487690._0x43e4a9)](_0x4a63cd)??new Set();_0x5541e9[_0x546b1c(-0x3,-_0x487690._0xf29b6a,-_0x487690._0x14bd7f,_0x487690._0x1dd9ba)](_0x59583f);function _0x5e635e(_0x595bbc,_0x3eb603,_0x1b6ce8,_0x1af9b6){return _0x12ecc1(_0x1af9b6,_0x3eb603-_0x2fae61._0x316b6c,_0x1b6ce8-0x1a9,_0x595bbc- -_0x2fae61._0x50c3df);}_0x5d9661['set'](_0x4a63cd,_0x5541e9);});},async 'shutdown'(){const _0x4422e7={_0x5bb4db:0x93,_0x481265:0xc0};function _0x535d8f(_0x27bb38,_0x46bc6c,_0x450e22,_0x49322e){return _0x311372(_0x27bb38-_0x6b5a2b._0x113c1c,_0x27bb38,_0x450e22-_0x6b5a2b._0x598525,_0x450e22- -0x200);}function _0x53601a(_0x3858fd,_0x10c5bc,_0x2eab65,_0x227dc7){return _0x388125(_0x3858fd-0xa9,_0x10c5bc,_0x3858fd- -_0x4422e7._0x5bb4db,_0x227dc7-_0x4422e7._0x481265);}if(_0x15c109)return;_0x15c109=!![];try{await _0x454624[_0x53601a(-_0x40d5ec._0x5626d9,-0x1eb,-0x1fd,-_0x40d5ec._0x518bf0)](_0x53601a(-0x18b,-_0x40d5ec._0x28e545,-0x93,-_0x40d5ec._0x5b1719),null),_0x454624[_0x53601a(-0xcf,-_0x40d5ec._0x118ea2,-0x184,-0x16d)](_0x535d8f(_0x40d5ec._0x27c0a1,_0x40d5ec._0x310976,_0x40d5ec._0x1016eb,_0x40d5ec._0x3d8b4d));}catch{}finally{_0x454624[_0x535d8f(0x521,0x434,_0x40d5ec._0x1cc187,0x368)](),_0x5b9213[_0x53601a(-0x140,-_0x40d5ec._0x332efd,-0x100,-0xdc)][_0x535d8f(_0x40d5ec._0x4e1c95,_0x40d5ec._0x1f4b03,_0x40d5ec._0x4a38e1,0x40f)]['kill']();}}};return _0x2e3acf;}import{spawn as _0x383c01}from'child_process';import{access as _0x56e75c}from'fs/promises';import _0x1833a3 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x8b2779 from'os';import _0x3ae68c from'path';import _0x1cd4e7 from'which';var installPromises=new Map();function sanitizePackageName(_0x288154){const _0x215fad={_0x48a98b:0x2e2},_0x2491ff={_0xe83f54:0x168,_0x542702:0x13f};function _0x3e12d1(_0x6297f0,_0x42d304,_0x54ec8f,_0x5a529d){return _0x255f51(_0x6297f0- -0x3e0,_0x42d304-_0x2491ff._0xe83f54,_0x42d304,_0x5a529d-_0x2491ff._0x542702);}return _0x288154[_0x3e12d1(0x26e,0x346,_0x215fad._0x48a98b,0x32d)](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0xfb7eda){const _0x4e4dd8={_0x5ad881:0x37a},_0x422c31={_0x2823c5:0xc6,_0x2c9f75:0x13a};function _0x25a85f(_0x37378a,_0x120daf,_0xde68bf,_0xa7caca){return _0x255f51(_0xa7caca- -0x500,_0x120daf-_0x422c31._0x2823c5,_0xde68bf,_0xa7caca-_0x422c31._0x2c9f75);}return process[_0x25a85f(_0x4e4dd8._0x5ad881,0x2e5,0x381,0x26b)]==='win32'?_0xfb7eda+'.cmd':_0xfb7eda;}async function exists(_0x1bd7ae){try{return await access(_0x1bd7ae),!![];}catch{return![];}}function runNpmInstall(_0x4a4bb7,_0x4582f0,_0x3a2320){const _0x5117fe={_0x2ae102:0x5f,_0x489cfe:0x12f,_0x4df0ec:0x216,_0x259df3:0xeb,_0x50e138:0xfd,_0x28e1dc:0x15b,_0x5d50be:0x29,_0x10533d:0x9e,_0x3e797c:0xc,_0x37f6e5:0x6e,_0x167b2b:0xb4,_0x1626ac:0x1a},_0x3e217c={_0x507e60:0x1a9},_0x50a63b={_0x34342a:0x2a5};return new Promise(_0x553054=>{const _0x339a7e=spawn('npm',[_0x426ff7(_0x5117fe._0x2ae102,0x78,0x13b,_0x5117fe._0x489cfe),_0x426ff7(_0x5117fe._0x4df0ec,_0x5117fe._0x259df3,_0x5117fe._0x50e138,0x14b),_0x4a4bb7,_0x4582f0],{'env':_0x3a2320,'stdio':_0x426ff7(0xcd,_0x5117fe._0x28e1dc,_0x5117fe._0x5d50be,_0x5117fe._0x10533d)});_0x339a7e['on'](_0x4b370e(-0x9f,-_0x5117fe._0x3e797c,-_0x5117fe._0x37f6e5,_0x5117fe._0x167b2b),()=>_0x553054(![]));function _0x4b370e(_0x31e5b3,_0x5a8ab0,_0x29cea8,_0x362405){return _0x4100(_0x5a8ab0- -_0x50a63b._0x34342a,_0x31e5b3);}function _0x426ff7(_0x6c9d59,_0x5bba07,_0x36cfc5,_0x2989a2){return _0x4100(_0x6c9d59- -_0x3e217c._0x507e60,_0x36cfc5);}_0x339a7e['on'](_0x4b370e(0xd0,0x10b,0x7,_0x5117fe._0x1626ac),_0x4d9589=>_0x553054(_0x4d9589===0x0));});}function shouldDisableLspDownload(_0x2af2fc=process[_0x173565(0x57,0x44,0x12f,0x9b)]){const _0x4fa86c={_0x533cb0:0x32,_0x31b8e5:0x8f,_0xefdf1a:0x4c,_0x25e071:0x3,_0x488599:0xa1},_0x2ac133={_0x28ec2a:0x110};function _0x2d1aca(_0x16f919,_0x3f228c,_0x2d7fed,_0x2f73a3){return _0x173565(_0x16f919-_0x2ac133._0x28ec2a,_0x3f228c-0x19b,_0x3f228c,_0x2f73a3-0x33a);}const _0x2dcd08=_0x2af2fc[_0x3af1b7(0x4b,_0x4fa86c._0x533cb0,_0x4fa86c._0x31b8e5,0x134)]?.[_0x3af1b7(-0xd0,_0x4fa86c._0xefdf1a,_0x4fa86c._0x25e071,-0x44)]();function _0x3af1b7(_0x328c61,_0x5c1727,_0x5badd1,_0x43938a){return _0x255f51(_0x328c61- -0x70e,_0x5c1727-0x197,_0x5badd1,_0x43938a-0x1c6);}return _0x2dcd08==='true'||_0x2dcd08==='1'||_0x2dcd08===_0x3af1b7(-0x5b,-_0x4fa86c._0x488599,0x3,-0x12b)||_0x2dcd08==='on';}function getLspPackageDir(_0x2640e9){const _0x3cfb19={_0x46e690:0x465,_0x14e3da:0x4fb,_0x50fcc4:0x561,_0x56283c:0x62b,_0x47cc30:0x5f2,_0x31fa15:0x599},_0x2b9c4e={_0x3c98d0:0x17e,_0x36356b:0xa6,_0x3cd72a:0x410},_0x3b699f={_0x142406:0x51,_0x2b3dc9:0x1b7};function _0x38497e(_0x4dfee5,_0x163ec9,_0x3b2d61,_0x5a4ede){return _0x255f51(_0x3b2d61- -_0x3b699f._0x142406,_0x163ec9-_0x3b699f._0x2b3dc9,_0x4dfee5,_0x5a4ede-0x1d0);}function _0x1453e9(_0x29005,_0x21e3f1,_0x59f468,_0x344505){return _0x173565(_0x29005-_0x2b9c4e._0x3c98d0,_0x21e3f1-_0x2b9c4e._0x36356b,_0x21e3f1,_0x29005-_0x2b9c4e._0x3cd72a);}return _0x3ae68c[_0x1453e9(0x494,_0x3cfb19._0x46e690,0x515,_0x3cfb19._0x14e3da)](_0x8b2779[_0x1453e9(_0x3cfb19._0x50fcc4,0x515,0x5c6,0x4a1)](),_0x1453e9(0x62c,0x646,_0x3cfb19._0x56283c,0x6f2),'lsp',_0x1453e9(_0x3cfb19._0x47cc30,0x643,0x644,_0x3cfb19._0x31fa15),sanitizePackageName(_0x2640e9));}function getLspBinDir(_0x10ce9d){function _0x308f32(_0x112864,_0x51af69,_0x3a7d1b,_0x37939e){return _0x255f51(_0x51af69- -0x694,_0x51af69-0x78,_0x3a7d1b,_0x37939e-0xcf);}return _0x3ae68c[_0x308f32(-0xd8,-0xa4,-0x1b2,-0xc3)](getLspPackageDir(_0x10ce9d),'node_modules','.bin');}async function findPackageBinary(_0x5c1224,_0x373e64){const _0x418616={_0x268f45:0x45f,_0x5cfd02:0x47c,_0x5dd08b:0x163,_0x54fcb8:0x138,_0x498b92:0x18d,_0x2a65f:0x10b,_0x5bb06f:0x4a2,_0x1a0ed0:0x4fd},_0xbccd48={_0x420f72:0xfe};function _0x2350d2(_0x5d8cb6,_0x513853,_0x344b48,_0x513d55){return _0x173565(_0x5d8cb6-0x26,_0x513853-0x1d1,_0x513d55,_0x513853- -_0xbccd48._0x420f72);}function _0x5a3235(_0x442499,_0x5de3c0,_0x1be37e,_0x334804){return _0x173565(_0x442499-0x1a,_0x5de3c0-0x1a,_0x5de3c0,_0x1be37e-0x55f);}let _0x9c4c42=_0x3ae68c[_0x5a3235(0x5c2,_0x418616._0x268f45,0x57c,_0x418616._0x5cfd02)](_0x373e64);const _0xd86510=binaryNameForPlatform(_0x5c1224);while(!![]){const _0x33d094=_0x3ae68c['join'](_0x9c4c42,_0x2350d2(_0x418616._0x5dd08b,_0x418616._0x54fcb8,_0x418616._0x498b92,0x15d),_0x2350d2(_0x418616._0x2a65f,0x107,0x33,0x1de),_0xd86510);if(await exists(_0x33d094))return _0x33d094;const _0xebde91=_0x3ae68c[_0x5a3235(0x512,_0x418616._0x5bb06f,0x5a3,_0x418616._0x1a0ed0)](_0x9c4c42);if(_0xebde91===_0x9c4c42)return void 0x0;_0x9c4c42=_0xebde91;}}async function findPathBinary(_0x177738,_0xbbb833){const _0x7ec652={_0x28dca8:0x1d5,_0x2e1a7e:0x1c,_0x5091d0:0x134,_0xd129db:0x67,_0x3c70fd:0x10b,_0x9f92ca:0x47d,_0x21e3db:0xdf,_0x49785b:0x1f5},_0x2568f7={_0x445fd8:0x750,_0x5006f8:0x8e},_0x5f210d={_0x49c087:0x2a5};function _0x3d718(_0x3dcc18,_0x1fc1e7,_0x317b61,_0x1bdb5b){return _0x173565(_0x3dcc18-0x6b,_0x1fc1e7-0x162,_0x1fc1e7,_0x317b61-_0x5f210d._0x49c087);}const _0x103e38=getLspBinDir(_0xbbb833),_0x303ab8=[_0x103e38,process[_0x334ef5(-_0x7ec652._0x28dca8,-_0x7ec652._0x2e1a7e,-0x228,-0x149)][_0x334ef5(-_0x7ec652._0x5091d0,-_0x7ec652._0xd129db,-0x16,-_0x7ec652._0x3c70fd)]][_0x3d718(0x3dc,0x3ec,_0x7ec652._0x9f92ca,0x59d)](Boolean)['join'](_0x3ae68c[_0x334ef5(-0x2ed,-_0x7ec652._0x21e3db,-_0x7ec652._0x49785b,-0x1f8)]);function _0x334ef5(_0x3d35f6,_0x5445b0,_0x1fb755,_0x2b61aa){return _0x255f51(_0x2b61aa- -_0x2568f7._0x445fd8,_0x5445b0-0x1c7,_0x1fb755,_0x2b61aa-_0x2568f7._0x5006f8);}try{return await _0x1cd4e7(_0x177738,{'path':_0x303ab8});}catch{return void 0x0;}}async function resolvePackageBinary(_0x2ab957){const _0x27e670={_0x1074ee:0x5c6,_0x42332c:0x56a,_0x27d8a5:0x6c6,_0x39de26:0x78f,_0x11c268:0x63e,_0x130f7a:0x4f6,_0x398d24:0x563,_0x12e1ef:0x5b0,_0x24963d:0x3fe,_0x520a00:0x3f4,_0x5b4952:0x490,_0x5478c0:0x4c6,_0x447c47:0x6b5,_0x2aa458:0x6b7,_0x14bfa6:0x7d6,_0x5a6bc0:0x6f8,_0x2ce68c:0x73d},_0x3c4a5d={_0xbf8d0e:0x414,_0x131e8a:0x301,_0xbdc2cf:0x31e,_0x3df82d:0x26f,_0x8d1119:0x1d6,_0x364cfa:0x356},_0x3b43d2={_0x3a456d:0xe0},_0x27bf01={_0x12042f:0x1e3,_0x5092ca:0x3f5},_0x5ef432={_0x272e76:0xf6,_0x5e03f7:0x558},_0x51ad94=_0x2ab957[_0x176ab7(_0x27e670._0x1074ee,0x612,_0x27e670._0x42332c,0x6e9)]??_0x2ab957[_0x176ab7(_0x27e670._0x27d8a5,_0x27e670._0x39de26,0x664,0x744)];function _0x176ab7(_0x5e69eb,_0x16ad48,_0x3ba284,_0xdb019e){return _0x173565(_0x5e69eb-0x91,_0x16ad48-_0x5ef432._0x272e76,_0xdb019e,_0x5e69eb-_0x5ef432._0x5e03f7);}const _0x4cf49f=await findPackageBinary(_0x51ad94,_0x2ab957[_0x523e30(_0x27e670._0x11c268,0x57e,0x44f,0x527)]);if(_0x4cf49f)return _0x4cf49f;const _0x3c6746=await findPathBinary(_0x51ad94,_0x2ab957[_0x523e30(0x672,0x534,_0x27e670._0x130f7a,_0x27e670._0x398d24)]);if(_0x3c6746)return _0x3c6746;const _0x27e6cb=_0x2ab957[_0x523e30(_0x27e670._0x12e1ef,_0x27e670._0x24963d,_0x27e670._0x520a00,_0x27e670._0x5b4952)]??process[_0x176ab7(0x5f3,_0x27e670._0x5478c0,_0x27e670._0x447c47,0x4f2)];function _0x523e30(_0x2a199c,_0x42af45,_0x17db62,_0x4da679){return _0x173565(_0x2a199c-0x1e4,_0x42af45-_0x27bf01._0x12042f,_0x17db62,_0x4da679-_0x27bf01._0x5092ca);}if(shouldDisableLspDownload(_0x27e6cb))return void 0x0;const _0x4d5750=getLspPackageDir(_0x2ab957[_0x523e30(0x581,0x51e,0x52b,_0x27e670._0x398d24)]),_0x2499e5=_0x2ab957['packageName']+':'+_0x51ad94;let _0xb2f62f=installPromises[_0x176ab7(0x59b,_0x27e670._0x2aa458,0x55a,0x520)](_0x2499e5);!_0xb2f62f&&(_0xb2f62f=((async()=>{function _0x1eb63b(_0x1b3cc8,_0x528da7,_0x1a7714,_0x2a7059){return _0x523e30(_0x1b3cc8-0xbc,_0x528da7-0x41,_0x1a7714,_0x1b3cc8- -_0x3b43d2._0x3a456d);}await mkdir(_0x4d5750,{'recursive':!![]});const _0x3497b7=await runNpmInstall(_0x4d5750,_0x2ab957[_0x24cc5f(0x3eb,0x2d8,_0x3c4a5d._0xbf8d0e,0x44a)],_0x27e6cb);if(!_0x3497b7)return void 0x0;function _0x24cc5f(_0x97d3c7,_0x47c30a,_0x4a425d,_0x4b44af){return _0x523e30(_0x97d3c7-0x41,_0x47c30a-0x2f,_0x47c30a,_0x97d3c7- -0x178);}const _0x3a0f23=_0x3ae68c[_0x24cc5f(_0x3c4a5d._0x131e8a,_0x3c4a5d._0xbdc2cf,_0x3c4a5d._0x3df82d,_0x3c4a5d._0x8d1119)](getLspBinDir(_0x2ab957[_0x1eb63b(0x483,_0x3c4a5d._0x364cfa,0x575,0x41d)]),binaryNameForPlatform(_0x51ad94));return await exists(_0x3a0f23)?_0x3a0f23:void 0x0;})()),installPromises[_0x176ab7(0x6b9,_0x27e670._0x14bfa6,_0x27e670._0x5a6bc0,_0x27e670._0x2ce68c)](_0x2499e5,_0xb2f62f));try{return await _0xb2f62f;}catch{return void 0x0;}finally{installPromises['delete'](_0x2499e5);}}var TYPESCRIPT_EXTENSIONS=['.ts','.tsx',_0x173565(0x1f2,-0x15,0x67,0xda),_0x173565(-0x43,0x114,-0xcf,0xb),'.mjs',_0x173565(0x1cb,0x1b4,-0x31,0xe5),'.mts','.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x255f51(0x680,0x660,0x55e,0x65e),_0x173565(0x9f,0x182,0x1f7,0x13f)],TYPESCRIPT_ROOT_MARKERS=[_0x255f51(0x666,0x6af,0x75b,0x710),_0x173565(0x2cc,0x2ae,0x149,0x1eb),_0x173565(0x128,0x30f,0x179,0x211),_0x173565(0x1f9,0x1e4,0x1dc,0x182),'yarn.lock',_0x173565(0x183,0x1a8,0x2ca,0x1a2),'jsconfig.json',_0x173565(0xfc,-0x87,-0xa5,0x41)],BIOME_ROOT_MARKERS=['biome.json','biome.jsonc',_0x255f51(0x666,0x6a5,0x53e,0x6df),_0x173565(0x30d,0x309,0x144,0x1eb),_0x255f51(0x77d,0x820,0x6f9,0x868),_0x173565(0x1c9,0x95,0x20f,0x182),'yarn.lock',_0x255f51(0x5ad,0x4f8,0x6a6,0x4cb)];async function exists2(_0x18bd4a){try{return await _0x56e75c(_0x18bd4a),!![];}catch{return![];}}async function findUp(_0x12d967,_0x2ec3c9){const _0x57868a={_0x43ef06:0x63,_0x4c47c6:0x5b,_0x4b9303:0x5e1,_0x346967:0x6e3,_0x28b351:0x5a1,_0xaca144:0x6a4};function _0x550816(_0x39c233,_0x231a07,_0x4e32dd,_0x29b01a){return _0x173565(_0x39c233-0x189,_0x231a07-0x17d,_0x4e32dd,_0x39c233-0x55d);}let _0x3ab2d5=_0x1833a3[_0x5185b0(-0x60,0x8a,_0x57868a._0x43ef06,_0x57868a._0x4c47c6)](_0x12d967);const _0x311174=_0x1833a3['extname'](_0x3ab2d5);function _0x5185b0(_0x235189,_0x49878e,_0x370f17,_0x2800f4){return _0x255f51(_0x49878e- -0x4ff,_0x49878e-0x121,_0x370f17,_0x2800f4-0xc1);}if(_0x311174)_0x3ab2d5=_0x1833a3['dirname'](_0x3ab2d5);while(!![]){for(const _0x1f27dc of _0x2ec3c9){if(await exists2(_0x1833a3[_0x550816(_0x57868a._0x4b9303,0x682,0x6e9,_0x57868a._0x346967)](_0x3ab2d5,_0x1f27dc)))return _0x3ab2d5;}const _0x82bef=_0x1833a3[_0x550816(_0x57868a._0x28b351,0x56b,0x4c6,_0x57868a._0xaca144)](_0x3ab2d5);if(_0x82bef===_0x3ab2d5)return void 0x0;_0x3ab2d5=_0x82bef;}}async function hasDenoRoot(_0x51da54){const _0x2affe2={_0x12ffe8:0x10f,_0x29118a:0x5c,_0x588f52:0xd3,_0x422574:0xa3,_0x26d958:0x12c},_0x1c3375={_0x2cc747:0x54f,_0x43c136:0x167},_0x56181d={_0x4ce337:0x6a8,_0x1b34ec:0xca};function _0x16c600(_0x528d6a,_0xbcba32,_0x5143a8,_0x105fb1){return _0x255f51(_0x5143a8- -_0x56181d._0x4ce337,_0xbcba32-0x15c,_0xbcba32,_0x105fb1-_0x56181d._0x1b34ec);}function _0x5bc326(_0x5169fa,_0x39d33c,_0x3dd65d,_0x532070){return _0x255f51(_0x5169fa- -_0x1c3375._0x2cc747,_0x39d33c-_0x1c3375._0x43c136,_0x3dd65d,_0x532070-0x77);}return await exists2(_0x1833a3[_0x16c600(-0x7,-_0x2affe2._0x12ffe8,-0xb8,-_0x2affe2._0x29118a)](_0x51da54,_0x5bc326(_0x2affe2._0x588f52,_0x2affe2._0x422574,_0x2affe2._0x26d958,0x17f)))||await exists2(_0x1833a3['join'](_0x51da54,'deno.jsonc'));}async function resolveTsserverPath(_0x46c724){const _0x5d0c04={_0x560828:0x1f1,_0x547a1d:0x230,_0x896b81:0x2cf,_0x29bc6f:0x216,_0x1833ac:0x10e,_0x360c9d:0x120,_0x362d83:0x1b3,_0x33a0bb:0x203,_0x359f07:0x6e,_0x57359f:0xb1,_0x40b955:0xc3,_0x3263a4:0x24a,_0x4d6f8f:0x111,_0x1cba62:0x1f0,_0x2d5418:0x19a,_0x284c13:0x10e,_0x362e0f:0x19b},_0x5efe44={_0x1dbdcc:0x79,_0x4e99c8:0xdc},_0x8f9f82={_0x20e5d4:0x13d,_0x50b5cb:0x16};function _0x54ad57(_0x527f8f,_0x44a216,_0x22c9eb,_0x9fa2b9){return _0x173565(_0x527f8f-0x77,_0x44a216-_0x8f9f82._0x20e5d4,_0x22c9eb,_0x527f8f- -_0x8f9f82._0x50b5cb);}let _0x5d9d67=_0x1833a3['resolve'](_0x46c724);while(!![]){const _0x28fe3b=_0x1833a3[_0x54ad57(0x6e,0x54,-0xa6,0xb6)](_0x5d9d67,'node_modules','typescript',_0x54ad57(_0x5d0c04._0x560828,_0x5d0c04._0x547a1d,_0x5d0c04._0x896b81,_0x5d0c04._0x29bc6f),_0x54ad57(_0x5d0c04._0x1833ac,0x180,0x4,-0xb));if(await exists2(_0x28fe3b))return _0x28fe3b;const _0x1b576f=_0x1833a3[_0x3b30ac(_0x5d0c04._0x360c9d,0x94,_0x5d0c04._0x362d83,0x160)](_0x5d9d67);if(_0x1b576f===_0x5d9d67)break;_0x5d9d67=_0x1b576f;}const _0x13b762=getLspPackageDir(_0x3b30ac(_0x5d0c04._0x33a0bb,0x284,0x2f6,0x22b)),_0x49fb49=await resolvePackageBinary({'packageName':'typescript','binaryName':'tsc','startDir':_0x46c724});if(!_0x49fb49)return void 0x0;function _0x3b30ac(_0x34a0be,_0x1715db,_0x2fed4f,_0x338369){return _0x173565(_0x34a0be-0x142,_0x1715db-_0x5efe44._0x1dbdcc,_0x1715db,_0x34a0be-_0x5efe44._0x4e99c8);}const _0x1cc2f8=_0x1833a3[_0x54ad57(_0x5d0c04._0x359f07,0x8b,-_0x5d0c04._0x57359f,_0x5d0c04._0x40b955)](_0x13b762,_0x54ad57(0x220,0x2d1,0x318,_0x5d0c04._0x3263a4),_0x54ad57(_0x5d0c04._0x4d6f8f,0x6c,0x68,0x168),_0x54ad57(0x1f1,_0x5d0c04._0x1cba62,_0x5d0c04._0x2d5418,0x2d5),_0x54ad57(_0x5d0c04._0x284c13,0xb2,0x187,_0x5d0c04._0x362e0f));return await exists2(_0x1cc2f8)?_0x1cc2f8:void 0x0;}var TypeScriptServer={'id':_0x173565(0x1b7,0x23c,0x152,0x127),'name':_0x173565(-0x48,0x35,-0x8e,-0x19),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x184d7f){const _0x2b3c8f=await findUp(_0x184d7f,TYPESCRIPT_ROOT_MARKERS);if(!_0x2b3c8f)return void 0x0;return await hasDenoRoot(_0x2b3c8f)?void 0x0:_0x2b3c8f;},async 'spawn'(_0x36e4ca){const _0x5ab28e={_0x10ef80:0x3bb,_0xf9d24c:0x37d,_0x45c016:0x2fe,_0x44c058:0x258,_0x42807c:0x5ee,_0x540841:0x7be,_0x20cb02:0x75b,_0xa127fd:0x356},_0x4fd688={_0x4e9838:0x5a8},_0x13623e={_0x2e1e7e:0x186,_0xd99fa2:0x8d,_0x29be74:0x2c5},_0x1afff0=await resolveTsserverPath(_0x36e4ca);if(!_0x1afff0)return void 0x0;function _0x40e6ed(_0x1239a3,_0x420021,_0x5c4df3,_0xf5a720){return _0x173565(_0x1239a3-_0x13623e._0x2e1e7e,_0x420021-_0x13623e._0xd99fa2,_0x5c4df3,_0xf5a720-_0x13623e._0x29be74);}const _0x7f2116=await resolvePackageBinary({'packageName':_0x40e6ed(0x375,0x2a9,_0x5ab28e._0x10ef80,_0x5ab28e._0xf9d24c),'binaryName':_0x40e6ed(_0x5ab28e._0x45c016,0x272,_0x5ab28e._0x44c058,0x37d),'startDir':_0x36e4ca});function _0x31f058(_0x21b801,_0x158b0d,_0x39fc56,_0x4595c6){return _0x173565(_0x21b801-0x2a,_0x158b0d-0xcd,_0x21b801,_0x39fc56-_0x4fd688._0x4e9838);}if(!_0x7f2116)return void 0x0;return{'process':_0x383c01(_0x7f2116,[_0x31f058(_0x5ab28e._0x42807c,_0x5ab28e._0x540841,0x714,_0x5ab28e._0x20cb02)],{'cwd':_0x36e4ca,'stdio':_0x40e6ed(0x46c,0x31e,_0x5ab28e._0x45c016,_0x5ab28e._0xa127fd)}),'initialization':{'tsserver':{'path':_0x1afff0}}};}},BiomeServer={'id':_0x173565(0x15c,-0xb,0x39,0xce),'name':'Biome\x20Language\x20Server','extensions':BIOME_EXTENSIONS,async 'root'(_0x428f9f){return findUp(_0x428f9f,BIOME_ROOT_MARKERS);},async 'spawn'(_0x4d89c4){const _0x48c1aa={_0x38268e:0x50c,_0x4bd4d7:0x637,_0x3d6aef:0x575,_0x111204:0x203,_0x2aa756:0xa1,_0x4e0960:0x9d,_0x500fd9:0x1ca,_0x3cc3cd:0x12,_0x5a5c5f:0x0,_0x708527:0x105,_0x558ef6:0x5aa,_0x55384e:0x5d4,_0x393875:0x5c0},_0xe8f7a4={_0x346c32:0x110},_0x5f50fc=await findPackageBinary(_0x56d268(_0x48c1aa._0x38268e,_0x48c1aa._0x4bd4d7,0x475,_0x48c1aa._0x3d6aef),_0x4d89c4)??await resolvePackageBinary({'packageName':_0x476353(-_0x48c1aa._0x111204,-_0x48c1aa._0x2aa756,-_0x48c1aa._0x4e0960,-_0x48c1aa._0x500fd9),'binaryName':_0x476353(-0x7a,_0x48c1aa._0x3cc3cd,_0x48c1aa._0x5a5c5f,-_0x48c1aa._0x708527),'startDir':_0x4d89c4});function _0x476353(_0x2b7839,_0x5f3acf,_0x202a70,_0xec9f64){return _0x255f51(_0xec9f64- -0x73f,_0x5f3acf-0x1be,_0x2b7839,_0xec9f64-_0xe8f7a4._0x346c32);}if(!_0x5f50fc)return void 0x0;function _0x56d268(_0x196702,_0x286584,_0x25eac9,_0x30c400){return _0x173565(_0x196702-0x143,_0x286584-0x63,_0x286584,_0x196702-0x43e);}return{'process':_0x383c01(_0x5f50fc,['lsp-proxy',_0x56d268(_0x48c1aa._0x558ef6,_0x48c1aa._0x55384e,_0x48c1aa._0x393875,0x57e)],{'cwd':_0x4d89c4,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x32cd17){const _0x5f2a86={_0x293d75:0x776,_0x2db1ed:0x845,_0x4bb639:0x751,_0x403bc:0x731,_0x566b2:0x542},_0x5d51d1={_0x27cd18:0xb9},_0x413658={_0xb894aa:0x146};function _0x5f214f(_0x5c8d75,_0x3e10d6,_0x442118,_0x3da95d){return _0x255f51(_0x3da95d-0x0,_0x3e10d6-0x1bb,_0x5c8d75,_0x3da95d-_0x413658._0xb894aa);}const _0x2a9644=_0x1833a3[_0x5f214f(_0x5f2a86._0x293d75,_0x5f2a86._0x2db1ed,_0x5f2a86._0x4bb639,_0x5f2a86._0x403bc)](_0x32cd17)[_0x5f214f(0x6c9,0x669,_0x5f2a86._0x566b2,0x63e)]();function _0x4d6a2c(_0x4db0f3,_0x363048,_0xef6f26,_0x22b47b){return _0x255f51(_0x22b47b- -0x3be,_0x363048-_0x5d51d1._0x27cd18,_0xef6f26,_0x22b47b-0xc6);}return BUILTIN_LSP_SERVERS[_0x4d6a2c(0x385,0x37d,0x3cc,0x386)](_0x392402=>_0x392402['extensions'][_0x5f214f(0x60c,0x776,0x648,0x6c1)](_0x2a9644));}function stateKey(_0x2f7380,_0x5dd9ac){return _0x5dd9ac+':'+_0x2f7380['id'];}function diagnosticsKeyToPath(_0xc1575f){const _0x37b151={_0x9c5c18:0x17b,_0x142d84:0x21f},_0xcefd95={_0x5d24cf:0x3c};if(!_0xc1575f['startsWith'](_0x1b1b52(-0x1c1,-_0x37b151._0x9c5c18,-0x293,-_0x37b151._0x142d84)))return _0xc1575f;function _0x1b1b52(_0x441a9a,_0x6b860c,_0xf40e56,_0x1d9424){return _0x255f51(_0x6b860c- -0x721,_0x6b860c-_0xcefd95._0x5d24cf,_0xf40e56,_0x1d9424-0x5b);}return fileURLToPath(_0xc1575f);}function nextFileVersion(_0x40e646,_0x38a489){const _0x58e494={_0x11018f:0x369,_0x57b8cb:0x461,_0x40ce46:0x434,_0x3d8f71:0x335,_0x52ed75:0x135,_0x11cbf4:0x303},_0x317e5f={_0x332052:0x4ab,_0x5a867e:0xdb,_0x1afdec:0xb0},_0x5cac02=(_0x40e646[_0x293a57(_0x58e494._0x11018f,_0x58e494._0x57b8cb,_0x58e494._0x40ce46,_0x58e494._0x3d8f71)][_0x293a57(0x178,0x1f3,_0x58e494._0x52ed75,0x136)](_0x38a489)??0x1)+0x1;_0x40e646[_0xa7c2f3(0x26a,0x340,_0x58e494._0x11cbf4,0x1dc)]['set'](_0x38a489,_0x5cac02);function _0xa7c2f3(_0x2ac83e,_0x16278d,_0x3c00ce,_0x61a85e){return _0x255f51(_0x3c00ce- -_0x317e5f._0x332052,_0x16278d-_0x317e5f._0x5a867e,_0x61a85e,_0x61a85e-_0x317e5f._0x1afdec);}function _0x293a57(_0xbfbc35,_0x5b3ebc,_0x5848c1,_0x372fd1){return _0x173565(_0xbfbc35-0x1c,_0x5b3ebc-0xe3,_0xbfbc35,_0x372fd1-0xf3);}return _0x5cac02;}async function collectClientResults(_0x233297){const _0x33b26b={_0x30cbc6:0x6ba,_0x7a94ab:0x663,_0x313ed4:0x769,_0xb81c2c:0x57d,_0x5c69b:0x738},_0x12069b={_0x46640d:0x1c,_0x10a8dd:0x1e6},_0x34b8c1={_0x5384ee:0x182};function _0x467e00(_0x14462e,_0x2bd746,_0x3f802b,_0x3aa32d){return _0x255f51(_0x2bd746- -0x45a,_0x2bd746-0xa9,_0x3aa32d,_0x3aa32d-_0x34b8c1._0x5384ee);}const _0x55a8a0=await Promise[_0x4f4e19(_0x33b26b._0x30cbc6,0x68f,_0x33b26b._0x7a94ab,_0x33b26b._0x313ed4)](_0x233297);function _0x4f4e19(_0x135ce2,_0x1be0cd,_0x25a3d2,_0x3ef509){return _0x255f51(_0x1be0cd-_0x12069b._0x46640d,_0x1be0cd-_0x12069b._0x10a8dd,_0x135ce2,_0x3ef509-0x1);}return _0x55a8a0[_0x4f4e19(_0x33b26b._0xb81c2c,0x690,_0x33b26b._0x5c69b,0x56a)](_0x372efe=>_0x372efe['status']===_0x467e00(0x19e,0x1e5,0x152,0x242)?_0x372efe[_0x467e00(0x188,0x21f,0x246,0x2a5)]:[]);}function createLspService(_0x431313={}){const _0xeb5e8b={_0x58129c:0x21,_0x4c371d:0x38,_0x1cc1ea:0xf6,_0x30f2fe:0x4a},_0x357da4={_0x182291:0x412},_0x4f4166={_0x53a01d:0x298,_0x8b7f95:0x430,_0x22a3b5:0x467,_0x170d90:0x5b5,_0x2de186:0x4f7,_0x3ef027:0x48f,_0x4419fc:0x4bc,_0x10839c:0x330,_0x41cb58:0x3ca,_0x19f4d8:0x607,_0x43ca98:0x387,_0xf04c22:0x4b5,_0x36e911:0x403,_0x3fa47c:0x29e,_0x1c647e:0x458,_0x2c5382:0x429},_0x2d5a07={_0x125d37:0xf},_0x39d24f={_0x118a33:0xe7,_0x3e6b72:0x68},_0xfa3a14={_0x29dc23:0x667,_0x250edf:0x6e6},_0xa981af={_0x117d07:0x241},_0x15c826={_0x1ac312:0x1d2,_0x17edc3:0x363,_0x47fc75:0x25a},_0x351d65={_0x2d4161:0x33,_0x2401c0:0x99},_0x1662c0={_0x16c0d7:0x5f8,_0x3ea656:0x376},_0x26b477={_0x278e5e:0xd9,_0x2a6298:0x171},_0x55003a={_0x1a471e:0x62},_0x522ff4={_0xa0f3d6:0x25,_0x4baf0f:0x17b,_0x10364b:0xe9},_0x111a0f={_0x430d0e:0x5e0,_0x2eb360:0x55a,_0x2dfc73:0x58,_0x56cf78:0x16},_0xe95033={_0x23d75c:0x16b},_0x342031={_0xf7557b:0x59},_0x571580={_0x1627cd:0x14d,_0x1802fd:0xe4},_0x40cc82={_0x470f82:0xd0,_0x2c1f60:0x62,_0xd236e5:0x67,_0x2fc8c0:0x14},_0x293075={_0x87019:0x3af,_0x43fd30:0xbc,_0xca988:0xa9},_0x530f34={_0x1a7599:0x395},_0x1ab393={_0x1b8cd7:0x537,_0xa74c11:0x4b3},_0x10daa8={_0x406e9e:0x4d,_0x455da6:0x9e},_0x3e9e6c={_0x37df5:0x3f8,_0x58e153:0x29f},_0x95177f={_0x39a36e:0x100,_0x54911d:0x155,_0x4a2643:0x3c1,_0x2aa321:0x33c},_0x59d865={_0x1642a2:0x26,_0x529faa:0x92,_0x59835:0x59,_0x27627a:0x6,_0x14d9ca:0xb5,_0x326a6a:0xb3,_0x21c70f:0x9,_0x3614c0:0xe7,_0x4163c9:0x32,_0x173167:0x339,_0x4d1bbb:0x37e,_0x12a01d:0x237,_0x334ee0:0x306,_0x230278:0x1bf,_0xb236d2:0xd7,_0x549335:0x0,_0x456b37:0xc9,_0x3bed51:0x5a,_0x46fa83:0x179,_0x2b053b:0x6c,_0x7f8c53:0x2d,_0x7a3fa0:0xa2,_0x1e1355:0x25,_0x334dae:0xf1,_0x305920:0x3e5,_0x285d55:0x429},_0x12af76={_0x18eab6:0x3ae,_0xfe5008:0x419,_0x48422e:0x72e,_0x2993af:0x717,_0x57677f:0x723,_0x50ecdd:0x796,_0x122717:0x83d,_0x55260b:0x680,_0x106dea:0x535,_0xbd1241:0x5af,_0x42d04b:0x260,_0x5a57d3:0x2f4,_0x12616b:0x272,_0x409c24:0x2ce,_0x6a5a6f:0x2f4,_0x4db9ce:0x2bc},_0x4f020a={_0xbdc84c:0x603,_0x542f35:0x62c,_0x33f990:0x5ff,_0x76d5d3:0x631,_0x54be19:0x618,_0x179c08:0x50f,_0x248017:0x5fe,_0x40801c:0x5e0,_0x1baa43:0x692,_0x30dffd:0x625,_0x11489b:0x546,_0x524c96:0x4df,_0x1033fe:0x59a},_0x123ec5={_0x3a0338:0x19a,_0x317259:0x13a},_0x1f1dee={_0x569a05:0x321,_0x84ff83:0xa6};function _0x33ba66(_0x48c9da,_0x542abb,_0x39e429,_0x8a55d6){return _0x255f51(_0x48c9da- -_0x1f1dee._0x569a05,_0x542abb-_0x1f1dee._0x84ff83,_0x542abb,_0x8a55d6-0x1b9);}const _0x691357={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x279d81=()=>_0x431313[_0x33ba66(0x370,0x42e,0x27c,0x294)]!==![];async function _0x775b4e(_0x163644,_0x3d5ba8){const _0x5d9fa5={_0x1c093c:0x5d1,_0x210448:0x5e0,_0x377ffb:0x678,_0x34abe5:0x48c,_0x2afe49:0x6a9,_0x248b76:0x5a7,_0x3ebee6:0x5c7,_0x7a2486:0x567,_0x45f268:0x547,_0x5ec192:0x71e,_0x19823f:0x732,_0x25d5f4:0x582,_0x926425:0x6af,_0x58f9ba:0x7ea,_0xd7e97c:0x76c},_0x4df27b={_0x19b1db:0x1b6},_0x9764ce={_0x56673e:0x258},_0x4a6e81={_0x473f58:0x17f,_0x388bc5:0x1f2},_0x4c7392=stateKey(_0x163644,_0x3d5ba8),_0x1b846b=_0x691357[_0x598c3e(_0x4f020a._0xbdc84c,0x595,_0x4f020a._0x542f35,0x496)][_0x3027c0(0x4e4,_0x4f020a._0x33f990,0x4e4,0x611)](_0x595ab2=>_0x595ab2[_0x3027c0(0x448,0x37d,0x4c1,0x44e)]===_0x163644['id']&&_0x595ab2[_0x598c3e(0x4e0,0x5c8,0x677,0x4c8)]===_0x3d5ba8);if(_0x1b846b)return _0x1b846b;if(_0x691357[_0x3027c0(0x50b,_0x4f020a._0x76d5d3,_0x4f020a._0x54be19,0x5f4)][_0x598c3e(0x4d6,_0x4f020a._0x179c08,0x58c,_0x4f020a._0x248017)](_0x4c7392))return void 0x0;function _0x598c3e(_0x66139d,_0xf8f81c,_0x43e24b,_0x561703){return _0x33ba66(_0xf8f81c-_0x4a6e81._0x473f58,_0x66139d,_0x43e24b-0x15c,_0x561703-_0x4a6e81._0x388bc5);}const _0x12e57e=_0x691357[_0x3027c0(_0x4f020a._0x40801c,_0x4f020a._0x1baa43,_0x4f020a._0x30dffd,0x5d8)]['get'](_0x4c7392);if(_0x12e57e)return _0x12e57e;function _0x3027c0(_0x10b643,_0x409dd4,_0x13d3a5,_0x4b0479){return _0x33ba66(_0x10b643-_0x123ec5._0x3a0338,_0x13d3a5,_0x13d3a5-0x116,_0x4b0479-_0x123ec5._0x317259);}const _0x61ee20=((async()=>{function _0x1d5a93(_0x4ae443,_0x39188a,_0x5e5128,_0x57f815){return _0x3027c0(_0x39188a- -_0x9764ce._0x56673e,_0x39188a-0x133,_0x4ae443,_0x57f815-0xcb);}function _0x3aa0f2(_0x5cda3c,_0x4784fd,_0x45d870,_0x4a8cb4){return _0x598c3e(_0x45d870,_0x4784fd-0x188,_0x45d870-_0x4df27b._0x19b1db,_0x4a8cb4-0x79);}try{const _0x3d7a47=await _0x163644[_0x3aa0f2(0x53e,_0x5d9fa5._0x1c093c,0x4b3,_0x5d9fa5._0x210448)](_0x3d5ba8);if(!_0x3d7a47)return _0x691357[_0x3aa0f2(0x5cd,_0x5d9fa5._0x377ffb,0x5bb,0x732)][_0x3aa0f2(_0x5d9fa5._0x34abe5,0x588,0x4e9,0x580)](_0x4c7392),void 0x0;const _0x3affe4=await createLspClient({'server':_0x163644,'root':_0x3d5ba8,'handle':_0x3d7a47}),_0x53341a=_0x691357[_0x3aa0f2(_0x5d9fa5._0x2afe49,0x71d,0x680,0x837)][_0x3aa0f2(_0x5d9fa5._0x248b76,0x651,0x665,0x60f)](_0x258e08=>_0x258e08[_0x1d5a93(0x103,0x1f0,0x1b6,0x21f)]===_0x163644['id']&&_0x258e08[_0x1d5a93(0x460,0x38b,0x2be,0x2c3)]===_0x3d5ba8);if(_0x53341a)return await _0x3affe4[_0x3aa0f2(_0x5d9fa5._0x3ebee6,_0x5d9fa5._0x7a2486,_0x5d9fa5._0x34abe5,_0x5d9fa5._0x45f268)](),_0x53341a;return _0x691357['clients'][_0x3aa0f2(0x6f8,0x696,_0x5d9fa5._0x5ec192,0x768)](_0x3affe4),_0x3affe4;}catch{return _0x691357[_0x3aa0f2(0x6b2,0x678,_0x5d9fa5._0x19823f,0x79e)][_0x3aa0f2(_0x5d9fa5._0x25d5f4,0x588,_0x5d9fa5._0x926425,0x5f5)](_0x4c7392),void 0x0;}finally{_0x691357[_0x3aa0f2(0x663,0x74d,0x636,_0x5d9fa5._0x58f9ba)][_0x3aa0f2(0x664,0x6b9,_0x5d9fa5._0xd7e97c,0x7de)](_0x4c7392);}})());return _0x691357['spawning'][_0x3027c0(_0x4f020a._0x11489b,_0x4f020a._0x524c96,0x66d,_0x4f020a._0x1033fe)](_0x4c7392,_0x61ee20),_0x61ee20;}async function _0xffd93(_0xfa1ac8,_0x30ae58){const _0x31ff51={_0x2efcf3:0x9b,_0x597642:0x36};if(!_0x279d81())return[];function _0x2944f6(_0x518936,_0x3adfdf,_0x2986bc,_0xce656a){return _0x33ba66(_0x3adfdf- -_0x31ff51._0x2efcf3,_0x2986bc,_0x2986bc-_0x31ff51._0x597642,_0xce656a-0x15c);}function _0x351330(_0x278642,_0xfdef71,_0x9b4041,_0x94c69){return _0x33ba66(_0x9b4041-0x312,_0xfdef71,_0x9b4041-0x6,_0x94c69-0x101);}const _0x301f16=[];for(const _0xea7510 of getServersForFile(_0xfa1ac8)){const _0x504374=await _0xea7510[_0x2944f6(0x3b2,_0x12af76._0x18eab6,_0x12af76._0xfe5008,0x3b9)](_0xfa1ac8);if(!_0x504374)continue;const _0x2e48ba=stateKey(_0xea7510,_0x504374);if(_0x691357[_0x351330(0x6e0,_0x12af76._0x48422e,0x683,0x7a5)][_0x351330(_0x12af76._0x2993af,0x694,0x6a2,_0x12af76._0x57677f)](_0x2e48ba))continue;const _0x39cb58=_0x691357[_0x351330(_0x12af76._0x50ecdd,_0x12af76._0x122717,0x728,0x612)][_0x351330(_0x12af76._0x55260b,_0x12af76._0x106dea,0x65c,_0x12af76._0xbd1241)](_0xeecb4e=>_0xeecb4e[_0x351330(0x5ac,0x54e,0x5c0,0x4b5)]===_0xea7510['id']&&_0xeecb4e[_0x351330(0x698,0x712,0x75b,0x66e)]===_0x504374);if(_0x39cb58){_0x301f16[_0x2944f6(_0x12af76._0x42d04b,_0x12af76._0x5a57d3,_0x12af76._0x12616b,_0x12af76._0x409c24)](_0x39cb58);continue;}if(!_0x30ae58)continue;const _0x47f547=await _0x775b4e(_0xea7510,_0x504374);if(_0x47f547)_0x301f16[_0x2944f6(0x221,_0x12af76._0x6a5a6f,_0x12af76._0x4db9ce,0x3e8)](_0x47f547);}return _0x301f16;}async function _0x344bf8(_0x36e9c4,_0x1afe50=![]){const _0x20bcc6={_0x572369:0x81},_0x414cc6={_0x3d5239:0xd1,_0x4fee75:0x1bf},_0x29de55={_0x48b39a:0x80},_0x125c01={_0x3a0f42:0xaf},_0xa44cc8=await _0xffd93(_0x36e9c4,!![]);function _0x5a9090(_0x1ad9a1,_0x147197,_0x38508a,_0x3b0640){return _0x33ba66(_0x147197-_0x125c01._0x3a0f42,_0x3b0640,_0x38508a-0x140,_0x3b0640-0xdd);}function _0x237645(_0x491238,_0x86252f,_0x4a1de6,_0x5db0d3){return _0x33ba66(_0x5db0d3- -0x131,_0x491238,_0x4a1de6-_0x29de55._0x48b39a,_0x5db0d3-0x4c);}await Promise[_0x237645(0xb6,0x6f,_0x95177f._0x39a36e,_0x95177f._0x54911d)](_0xa44cc8[_0x5a9090(_0x95177f._0x4a2643,_0x95177f._0x2aa321,0x3ee,0x412)](async _0x2c26ad=>{function _0x25c435(_0x1c0815,_0x3fed5e,_0x4e503e,_0x203437){return _0x5a9090(_0x1c0815-_0x414cc6._0x3d5239,_0x1c0815- -_0x414cc6._0x4fee75,_0x4e503e-0x12b,_0x4e503e);}!_0x691357[_0x2c05ec(_0x59d865._0x1642a2,-0x40,-_0x59d865._0x529faa,-_0x59d865._0x59835)][_0x2c05ec(-_0x59d865._0x27627a,_0x59d865._0x14d9ca,_0x59d865._0x326a6a,-_0x59d865._0x21c70f)](_0x2c26ad[_0x2c05ec(-0x8a,-0x2d,_0x59d865._0x3614c0,-_0x59d865._0x4163c9)]+':'+_0x2c26ad[_0x25c435(_0x59d865._0x173167,0x2ed,_0x59d865._0x4d1bbb,0x2c3)]+':'+_0x36e9c4)&&(await _0x2c26ad[_0x25c435(0x218,_0x59d865._0x12a01d,0x25c,_0x59d865._0x334ee0)][_0x2c05ec(_0x59d865._0x230278,0xc4,_0x59d865._0xb236d2,_0x59d865._0x549335)]({'path':_0x36e9c4}),_0x691357[_0x25c435(0x18b,0x258,0xec,0xdd)][_0x2c05ec(-_0x59d865._0x456b37,-_0x59d865._0x3bed51,-_0x59d865._0x46fa83,-0xca)](_0x2c26ad[_0x2c05ec(-_0x59d865._0x2b053b,-_0x59d865._0x7f8c53,-0xb1,_0x59d865._0x7a3fa0)]+':'+_0x2c26ad['root']+':'+_0x36e9c4));await _0x2c26ad['notify'][_0x2c05ec(0x4d,_0x59d865._0x1e1355,_0x59d865._0x334dae,-0x9a)]({'path':_0x36e9c4,'version':nextFileVersion(_0x691357,_0x36e9c4)});function _0x2c05ec(_0x5b3bb3,_0x150978,_0x31b1b8,_0x30a9e5){return _0x5a9090(_0x5b3bb3-_0x20bcc6._0x572369,_0x150978- -0x38a,_0x31b1b8-0xf,_0x30a9e5);}if(_0x1afe50)await _0x2c26ad[_0x25c435(0x31a,_0x59d865._0x305920,_0x59d865._0x285d55,0x352)]({'path':_0x36e9c4});}));}async function _0x119369(_0x28bb16){const _0x43c19b={_0x1ddc07:0x16a,_0x2ba719:0x2f},_0x3738c0={_0x157085:0x1e9,_0x2049c1:0xc9};function _0x3c6816(_0x518aea,_0xe5c8c,_0x4f2ebe,_0x189abe){return _0x33ba66(_0xe5c8c-0x351,_0x189abe,_0x4f2ebe-_0x3738c0._0x157085,_0x189abe-_0x3738c0._0x2049c1);}function _0x40bd9d(_0x34dc66,_0xd72359,_0x2c48d2,_0x336f6b){return _0x33ba66(_0x34dc66- -_0x43c19b._0x1ddc07,_0x336f6b,_0x2c48d2-_0x43c19b._0x2ba719,_0x336f6b-0x168);}return await _0x344bf8(_0x28bb16[_0x40bd9d(0x2f3,0x337,0x41f,_0x3e9e6c._0x37df5)],![]),_0xffd93(_0x28bb16[_0x40bd9d(0x2f3,0x2b2,_0x3e9e6c._0x58e153,0x3da)],![]);}async function _0x41516e(_0x2ff635){const _0x29b4d0={_0x18cb7c:0x1d6,_0x3cf3e4:0xf1};function _0x3938f7(_0x4eefda,_0x31ad9d,_0x704200,_0x1bd62e){return _0x33ba66(_0x704200- -0x392,_0x31ad9d,_0x704200-_0x10daa8._0x406e9e,_0x1bd62e-_0x10daa8._0x455da6);}function _0x209076(_0x47b17c,_0x33313e,_0x4519c6,_0xeceba4){return _0x33ba66(_0x4519c6-_0x29b4d0._0x18cb7c,_0x33313e,_0x4519c6-_0x29b4d0._0x3cf3e4,_0xeceba4-0x51);}const _0x31c9f3=await _0x119369(_0x2ff635);return collectClientResults(_0x31c9f3[_0x209076(_0x1ab393._0x1b8cd7,_0x1ab393._0xa74c11,0x463,0x367)](_0x2bfb5e=>_0x2bfb5e[_0x209076(0x486,0x49b,0x55e,0x4b9)][_0x3938f7(-0x36,-0x99,0x6b,-0x46)](_0x2ff635)));}return{'isEnabled':_0x279d81,async 'hasClients'(_0x1d1ad5){function _0x1688dd(_0x30584a,_0x5b35af,_0x94a85e,_0x4e24d8){return _0x33ba66(_0x94a85e-0x3d,_0x30584a,_0x94a85e-0x160,_0x4e24d8-0xab);}return(await _0xffd93(_0x1d1ad5,![]))['length']>0x0||getServersForFile(_0x1d1ad5)[_0x1688dd(_0x530f34._0x1a7599,0x383,0x3d0,0x42d)]>0x0;},'touchFile':_0x344bf8,async 'diagnostics'(){const _0x5381a1={_0x51a7a1:0x109,_0x4d257c:0x175};function _0x4426ea(_0xc9235e,_0x2ef47e,_0xa09ac3,_0x2d567a){return _0x33ba66(_0x2d567a- -_0x293075._0x87019,_0xa09ac3,_0xa09ac3-_0x293075._0x43fd30,_0x2d567a-_0x293075._0xca988);}const _0x30a59e={};function _0x14b7e4(_0x10f77b,_0x4f8a7e,_0x5821d8,_0x375834){return _0x33ba66(_0x4f8a7e- -0x33a,_0x10f77b,_0x5821d8-_0x5381a1._0x51a7a1,_0x375834-_0x5381a1._0x4d257c);}for(const _0x4b01e1 of _0x691357[_0x4426ea(_0x40cc82._0x470f82,-0x3c,_0x40cc82._0x2c1f60,_0x40cc82._0xd236e5)]){for(const [_0x244b8d,_0x2a4720]of _0x4b01e1[_0x4426ea(-0x191,-0xa0,_0x40cc82._0x2fc8c0,-0x6c)]){_0x30a59e[diagnosticsKeyToPath(_0x244b8d)]=_0x2a4720;}}return _0x30a59e;},async 'diagnosticsForFile'(_0xbf6c1f){await _0x344bf8(_0xbf6c1f,!![]);const _0x1959df=[];for(const _0x2f5d00 of await _0xffd93(_0xbf6c1f,![])){for(const [_0x223f4f,_0x5276a9]of _0x2f5d00['diagnostics']){if(diagnosticsKeyToPath(_0x223f4f)===_0xbf6c1f)_0x1959df['push'](..._0x5276a9);}}return _0x1959df;},async 'definition'(_0x13e67c){function _0x39332d(_0x481b9c,_0x10e6cc,_0x4ab155,_0x12ae42){return _0x33ba66(_0x481b9c- -0x12,_0x4ab155,_0x4ab155-_0x571580._0x1627cd,_0x12ae42-_0x571580._0x1802fd);}function _0x48757f(_0x2b517c,_0x267ddd,_0x29c952,_0x49cf71){return _0x33ba66(_0x49cf71- -0x11c,_0x267ddd,_0x29c952-0xd1,_0x49cf71-0x184);}return collectClientResults((await _0x119369(_0x13e67c))['map'](_0x20fa32=>_0x20fa32[_0x39332d(0x376,0x2aa,0x25e,0x34e)][_0x39332d(0x476,0x541,0x4f3,0x44e)](_0x13e67c)));},async 'references'(_0x134aaa){const _0xa06fe9={_0x44387c:0x1c9,_0x327763:0x1dc};function _0x4b6f9e(_0x30cec9,_0x35dd38,_0x5eb97c,_0x151963){return _0x33ba66(_0x5eb97c- -0x1c3,_0x151963,_0x5eb97c-_0xa06fe9._0x44387c,_0x151963-_0xa06fe9._0x327763);}function _0x3d2b84(_0x4d4d5d,_0x18e8e3,_0x4c4ad0,_0x493249){return _0x33ba66(_0x4c4ad0- -0xdc,_0x18e8e3,_0x4c4ad0-0xbb,_0x493249-_0x342031._0xf7557b);}return collectClientResults((await _0x119369(_0x134aaa))[_0x3d2b84(0xa8,_0xe95033._0x23d75c,0x1b1,0x1c7)](_0x3abb17=>_0x3abb17[_0x4b6f9e(0x17d,0x2e3,0x1c5,0x227)][_0x3d2b84(0x1dc,0x182,0x232,0x221)](_0x134aaa)));},async 'hover'(_0x31ab9c){const _0x1a9c08={_0x3983fa:0x31f,_0x1daa1b:0x6b},_0x161c52={_0x28ab98:0x353,_0x583b3b:0x40,_0x1b678e:0xf3};function _0x339f81(_0x28a877,_0x3bd7e4,_0x157c96,_0x5b1b94){return _0x33ba66(_0x28a877-_0x161c52._0x28ab98,_0x3bd7e4,_0x157c96-_0x161c52._0x583b3b,_0x5b1b94-_0x161c52._0x1b678e);}function _0x38f6d0(_0x2b7d59,_0x521228,_0xb50fca,_0xfc0aca){return _0x33ba66(_0x521228- -_0x1a9c08._0x3983fa,_0xfc0aca,_0xb50fca-0x147,_0xfc0aca-_0x1a9c08._0x1daa1b);}const _0x2f4285=await Promise['allSettled']((await _0x119369(_0x31ab9c))[_0x339f81(_0x111a0f._0x430d0e,_0x111a0f._0x2eb360,0x554,0x4d2)](_0x22dee7=>_0x22dee7[_0x38f6d0(0x6c,0x69,0x177,-0x1)][_0x339f81(0x7cc,0x888,0x6c7,0x69c)](_0x31ab9c)));return _0x2f4285[_0x38f6d0(-_0x111a0f._0x2dfc73,0x34,_0x111a0f._0x56cf78,0xb0)](_0x46708f=>_0x46708f[_0x38f6d0(0x170,0x66,-0xb6,-0x42)]===_0x38f6d0(0xb9,-0x1,-0x9,0x6f)&&_0x46708f[_0x38f6d0(0x3c,0x39,0x137,0x9c)]?[_0x46708f[_0x339f81(0x6ab,0x5f4,0x767,0x789)]]:[]);},async 'documentSymbol'(_0x1d7b78){const _0x40e3f8={_0x31c388:0x142},_0x301cbf={_0x468df3:0x34f};function _0x3803a2(_0x14fbf2,_0x4f3fda,_0x3a1f8c,_0x3e039f){return _0x33ba66(_0x14fbf2- -_0x301cbf._0x468df3,_0x3e039f,_0x3a1f8c-0x12b,_0x3e039f-0x11f);}function _0x100caa(_0x27ac94,_0x531c3d,_0x2a9971,_0x3060fd){return _0x33ba66(_0x27ac94- -0x207,_0x3060fd,_0x2a9971-0x102,_0x3060fd-_0x40e3f8._0x31c388);}return await _0x344bf8(_0x1d7b78,![]),collectClientResults((await _0xffd93(_0x1d7b78,![]))[_0x100caa(0x86,_0x522ff4._0xa0f3d6,_0x522ff4._0x4baf0f,_0x522ff4._0x10364b)](_0x3b09fe=>_0x3b09fe[_0x3803a2(0x39,-0xd6,-0x8a,0xd0)]['documentSymbol'](_0x1d7b78)));},async 'workspaceSymbol'(_0x2aa137){function _0x2c3a76(_0x3d7291,_0x34e207,_0x424372,_0x2268df){return _0x33ba66(_0x424372- -0x5,_0x2268df,_0x424372-_0x55003a._0x1a471e,_0x2268df-0x19c);}function _0x45bf40(_0x4fbcc0,_0x3f8a35,_0x5c7250,_0x3b79a0){return _0x33ba66(_0x3b79a0-0x22e,_0x4fbcc0,_0x5c7250-_0x26b477._0x278e5e,_0x3b79a0-_0x26b477._0x2a6298);}return collectClientResults(_0x691357[_0x45bf40(0x643,0x765,_0x1662c0._0x16c0d7,0x644)][_0x2c3a76(0x1d9,0x3a4,0x288,_0x1662c0._0x3ea656)](_0x21ddce=>_0x21ddce[_0x2c3a76(0x338,0x492,0x383,0x3de)][_0x2c3a76(0x4cc,0x409,0x3dc,0x3f2)](_0x2aa137)));},async 'implementation'(_0x6245a0){function _0x2a2842(_0x4ce618,_0x4897cb,_0x4abb19,_0x42590c){return _0x33ba66(_0x42590c- -_0x351d65._0x2d4161,_0x4ce618,_0x4abb19-_0x351d65._0x2401c0,_0x42590c-0x1b8);}function _0x79b68c(_0x1d561d,_0x12b3e8,_0x30e6b4,_0x4fd9cd){return _0x33ba66(_0x12b3e8- -0x33b,_0x30e6b4,_0x30e6b4-0x105,_0x4fd9cd-0xf);}return collectClientResults((await _0x119369(_0x6245a0))[_0x2a2842(_0x15c826._0x1ac312,0x2bd,_0x15c826._0x17edc3,_0x15c826._0x47fc75)](_0x500200=>_0x500200[_0x79b68c(-0x48,0x4d,0xef,0x3e)][_0x2a2842(0x39b,0x3c1,0x3e9,0x32b)](_0x6245a0)));},async 'prepareCallHierarchy'(_0x492ffb){return _0x41516e(_0x492ffb);},async 'incomingCalls'(_0x548463){const _0x401e99={_0x16e7cc:0xdd,_0x3fdf13:0x14c},_0x31e062=await _0x41516e(_0x548463);function _0x39b320(_0x4be5a3,_0x1f985b,_0xf73afe,_0x410bd2){return _0x33ba66(_0x4be5a3- -_0xa981af._0x117d07,_0x410bd2,_0xf73afe-0x140,_0x410bd2-0x17c);}const _0x597490=await _0x119369(_0x548463);function _0x49a8c6(_0xe2a0f1,_0x54dbdf,_0x30448e,_0xc262b0){return _0x33ba66(_0xe2a0f1-0x314,_0xc262b0,_0x30448e-_0x401e99._0x16e7cc,_0xc262b0-_0x401e99._0x3fdf13);}return collectClientResults(_0x597490[_0x49a8c6(_0xfa3a14._0x29dc23,0x5b0,_0xfa3a14._0x250edf,0x5c4)](_0x5e0e4d=>_0x31e062[_0x39b320(0x4c,0x99,0xf9,0x12a)](_0xd35554=>_0x5e0e4d['request'][_0x49a8c6(0x784,0x85c,0x6b2,0x702)](_0xd35554))));},async 'outgoingCalls'(_0x2378f4){const _0x52ab82={_0x4f439c:0x93,_0x2a1371:0x4e,_0x2ba891:0x3d},_0x5915b0=await _0x41516e(_0x2378f4),_0x36d6e3=await _0x119369(_0x2378f4);function _0x2c4315(_0x209057,_0x5e7c1b,_0x4f1d6a,_0x40821b){return _0x33ba66(_0x209057-_0x52ab82._0x4f439c,_0x4f1d6a,_0x4f1d6a-_0x52ab82._0x2a1371,_0x40821b-_0x52ab82._0x2ba891);}function _0x5b6fe4(_0x3eef3b,_0x71119b,_0x524199,_0x35ec5e){return _0x33ba66(_0x3eef3b- -0x2ab,_0x35ec5e,_0x524199-_0x39d24f._0x118a33,_0x35ec5e-_0x39d24f._0x3e6b72);}return collectClientResults(_0x36d6e3[_0x5b6fe4(0xa8,-0x68,0x111,-_0x2d5a07._0x125d37)](_0x259b0e=>_0x5915b0[_0x5b6fe4(-0x1e,0xfb,-0xf5,0xe4)](_0x5c4f69=>_0x259b0e[_0x2c4315(0x41b,0x329,0x4cd,0x4bf)][_0x2c4315(0x372,0x39b,0x274,0x25b)](_0x5c4f69))));},async 'shutdown'(){const _0x117021={_0x578bc3:0x13d,_0x4a908d:0x165},_0x5791ab={_0x4de150:0x70,_0x55363e:0x121,_0x399ea7:0xea};if(_0x691357['shutdownStarted'])return;function _0x4da748(_0x482830,_0x11d73c,_0x5b2879,_0x599cce){return _0x33ba66(_0x11d73c-_0x5791ab._0x4de150,_0x599cce,_0x5b2879-_0x5791ab._0x55363e,_0x599cce-_0x5791ab._0x399ea7);}_0x691357[_0x4da748(_0x4f4166._0x53a01d,0x3a8,0x33b,_0x4f4166._0x8b7f95)]=!![],await Promise[_0xff5283(_0x4f4166._0x22a3b5,_0x4f4166._0x170d90,_0x4f4166._0x2de186,_0x4f4166._0x3ef027)](_0x691357['clients'][_0xff5283(_0x4f4166._0x4419fc,0x353,_0x4f4166._0x10839c,_0x4f4166._0x41cb58)](_0x348521=>_0x348521[_0xff5283(0x3e6,0x2e4,0x437,0x39d)]())),_0x691357['clients']=[],_0x691357[_0xff5283(_0x4f4166._0x19f4d8,0x61a,0x55f,0x583)]['clear'](),_0x691357['broken'][_0x4da748(_0x4f4166._0x43ca98,0x2c2,0x247,0x3cf)](),_0x691357[_0x4da748(_0x4f4166._0xf04c22,0x4fd,0x5f5,_0x4f4166._0x36e911)][_0xff5283(_0x4f4166._0x3fa47c,_0x4f4166._0x1c647e,_0x4f4166._0x2c5382,0x38f)]();function _0xff5283(_0x1e5ed5,_0x64dce6,_0x15c409,_0x4f0b8b){return _0x33ba66(_0x4f0b8b-_0x117021._0x578bc3,_0x1e5ed5,_0x15c409-0x8f,_0x4f0b8b-_0x117021._0x4a908d);}_0x691357[_0xff5283(0x2bd,0x4fd,0x498,0x3d8)]['clear']();},'status'(){const _0x53530b={_0x3cb1c1:0x10b,_0x59d685:0x16c};function _0x26b960(_0x5159bd,_0x37b095,_0x2c4c68,_0x4dcfc1){return _0x33ba66(_0x37b095- -0x319,_0x5159bd,_0x2c4c68-_0x53530b._0x3cb1c1,_0x4dcfc1-_0x53530b._0x59d685);}function _0x2344ea(_0x56c758,_0x41b6b1,_0x25acbc,_0x581bbf){return _0x33ba66(_0x41b6b1- -_0x357da4._0x182291,_0x56c758,_0x25acbc-0x145,_0x581bbf-0x108);}return{'connectedClients':_0x691357[_0x26b960(0x215,0xfd,_0xeb5e8b._0x58129c,0x15c)][_0x2344ea(-_0xeb5e8b._0x4c371d,-0x7f,-_0xeb5e8b._0x1cc1ea,_0xeb5e8b._0x30f2fe)]};}};}import{spawn as _0x45a0d8}from'child_process';import{statSync}from'fs';import*as _0x500cef from'os';import*as _0x552678 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x23ef80 from'path';function isPathInside(_0x34f2e3,_0x253a53){const _0x6b466a={_0x4756e2:0x23,_0x34a875:0x73,_0xf5d4:0x2,_0xe5191c:0x1bf,_0x11ee4e:0x168,_0x265f08:0x184,_0x1ebaa3:0x2b3},_0x286de1={_0x22795b:0x587,_0xb13887:0x53},_0x50c9a9={_0xa15f95:0x15d},_0x4a745e=_0x23ef80[_0x4a3ff3(_0x6b466a._0x4756e2,-_0x6b466a._0x34a875,_0x6b466a._0xf5d4,-0x12e)](_0x34f2e3);function _0x233525(_0x150af4,_0x260142,_0x337ee2,_0x5f0d95){return _0x255f51(_0x5f0d95- -_0x50c9a9._0xa15f95,_0x260142-0x11a,_0x260142,_0x5f0d95-0x9c);}const _0x3ea64f=_0x23ef80[_0x4a3ff3(0x91,0xdb,0x61,0x105)](_0x4a745e,_0x253a53);function _0x4a3ff3(_0x250d8e,_0x1df668,_0x252906,_0x34ba82){return _0x255f51(_0x252906- -_0x286de1._0x22795b,_0x1df668-_0x286de1._0xb13887,_0x250d8e,_0x34ba82-0x14b);}return _0x3ea64f===''||!_0x3ea64f[_0x4a3ff3(_0x6b466a._0xe5191c,_0x6b466a._0x11ee4e,_0x6b466a._0x265f08,_0x6b466a._0x1ebaa3)]('..')&&!_0x23ef80[_0x233525(0x546,0x388,0x4c9,0x431)](_0x3ea64f);}function _0x173565(_0x11378a,_0x323658,_0x99fa73,_0x31320d){const _0x10f4a7={_0x277fbf:0x1f8};return _0x4100(_0x31320d- -_0x10f4a7._0x277fbf,_0x99fa73);}function resolveWorkspacePath(_0x44edc0,_0x15eb87){return resolveAllowedPath(_0x44edc0,[],_0x15eb87);}function resolveAllowedPath(_0x50aeb6,_0x206389,_0x1c5734){const _0x1f888e={_0x19fea4:0x19a,_0x2624b5:0x1d4,_0x5cfbbb:0x278,_0x21af83:0x1e,_0x233289:0xe4,_0x441808:0x14c},_0x1bd2e4={_0x358884:0x2c8,_0x4a7764:0x1e4},_0x5dcbdf={_0x367948:0x1be},_0x23c3f2=_0x23ef80['resolve'](_0x50aeb6),_0x24e17c=_0x23ef80[_0x32991c(-_0x1f888e._0x19fea4,-_0x1f888e._0x2624b5,-0xb6,-0x80)](_0x23c3f2,_0x1c5734),_0x323cbf=[_0x23c3f2,..._0x206389[_0x4d15ee(0x2a0,0x2e6,_0x1f888e._0x5cfbbb,0x385)](_0x5bb3c9=>_0x23ef80[_0x32991c(-0x19a,-0x141,-0x20f,-0xdf)](_0x5bb3c9))];if(_0x323cbf['some'](_0x19c2cf=>isPathInside(_0x19c2cf,_0x24e17c)))return _0x24e17c;function _0x32991c(_0x13f85a,_0x500bda,_0x510a15,_0x1eb48d){return _0x255f51(_0x13f85a- -0x723,_0x500bda-0x191,_0x500bda,_0x1eb48d-_0x5dcbdf._0x367948);}function _0x4d15ee(_0x2cdd82,_0x44c4d1,_0xe65940,_0x320f69){return _0x255f51(_0x44c4d1- -_0x1bd2e4._0x358884,_0x44c4d1-0x154,_0x320f69,_0x320f69-_0x1bd2e4._0x4a7764);}throw new ToolExecutionError(_0x32991c(-_0x1f888e._0x21af83,_0x1f888e._0x233289,-_0x1f888e._0x441808,-0x100)+_0x1c5734,{'path':_0x1c5734,'rootDir':_0x23c3f2,'allowedDirs':_0x323cbf});}async function assertWorkspaceFile(_0x438dd8){const _0x368b34={_0x3fdc41:0x362,_0xf79669:0x2db,_0x51d34f:0xaa,_0x283362:0xd5,_0xa5f3ed:0x1a5},_0x16a108={_0x3bee18:0x125},_0x5eece2={_0x16b5c2:0xd,_0x99a480:0x1bb};function _0x54565b(_0x30da67,_0xed0632,_0x57f4d0,_0x1247fe){return _0x173565(_0x30da67-_0x5eece2._0x16b5c2,_0xed0632-_0x5eece2._0x99a480,_0x30da67,_0x57f4d0- -0x4b);}const _0x208f27=await stat(_0x438dd8);function _0x489213(_0xfc5008,_0x1ca61f,_0xbbf6d,_0x4961e8){return _0x255f51(_0xbbf6d- -0x406,_0x1ca61f-_0x16a108._0x3bee18,_0x4961e8,_0x4961e8-0x1ea);}if(!_0x208f27[_0x489213(0x3da,0x37e,_0x368b34._0x3fdc41,_0x368b34._0xf79669)]())throw new ToolExecutionError(_0x54565b(0x1d4,_0x368b34._0x51d34f,_0x368b34._0x283362,_0x368b34._0xa5f3ed)+_0x438dd8,{'path':_0x438dd8});}function isProbablyBinary(_0x256012){return _0x256012['includes'](0x0);}var DEFAULT_DESCRIPTION=_0x173565(0x9a,0xe7,0x12c,0x11d),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x486eee){return _0x486eee instanceof Error;}function shellExists(_0x186263){const _0x3e96d3={_0x54c02c:0x1db,_0x202e69:0x1be,_0x122d40:0x157};function _0x4ef218(_0x364a4e,_0x8d8ba8,_0x1c68d7,_0x2531b6){return _0x255f51(_0x8d8ba8- -0x521,_0x8d8ba8-0x175,_0x364a4e,_0x2531b6-0x171);}try{const _0x5465f4=statSync(_0x186263);return _0x5465f4['isFile']()&&(_0x5465f4[_0x4ef218(0x307,_0x3e96d3._0x54c02c,_0x3e96d3._0x202e69,_0x3e96d3._0x122d40)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x15424a){const _0x30f23b={_0x202486:0x339,_0x5c2832:0x101,_0x207189:0xac,_0x5e1cfe:0xd6,_0x31c5c5:0xdb,_0x5de7de:0x1fe,_0x1471c4:0x2f6,_0x13a3ba:0x3a4,_0x4115a5:0x4ba,_0x2ba716:0x2f8,_0x2c302a:0x1d0,_0x28ee04:0x37a,_0x442f37:0x1af,_0x40d779:0xbf,_0x33f663:0x1f6,_0x7e19ea:0x1d8,_0x551c6f:0x2ac,_0x5c8cae:0x47,_0x31cf3e:0x295,_0x386292:0x14c,_0xcfe64c:0x174,_0x2f0d12:0x1fa,_0x6ed9b3:0x283},_0x133b86={_0x5d0cf2:0x1b9},_0x47729a={_0x2679ba:0x156};if(_0x15424a)return _0x15424a;if(_0x500cef[_0x4076eb(0x1f5,0x27f,_0x30f23b._0x202486,0x2d8)]()===_0x4076eb(_0x30f23b._0x5c2832,-0x5a,_0x30f23b._0x207189,_0x30f23b._0x5e1cfe))return process[_0x116d41(0x286,_0x30f23b._0x31c5c5,_0x30f23b._0x5de7de,0x109)][_0x116d41(_0x30f23b._0x1471c4,0x284,_0x30f23b._0x13a3ba,_0x30f23b._0x4115a5)]||_0x116d41(_0x30f23b._0x2ba716,_0x30f23b._0x2c302a,0x27b,_0x30f23b._0x28ee04);const _0x2909d1=['/bin/bash','/bin/sh',_0x116d41(0xa9,0x2b8,_0x30f23b._0x442f37,_0x30f23b._0x40d779),_0x116d41(0x267,_0x30f23b._0x33f663,_0x30f23b._0x7e19ea,_0x30f23b._0x551c6f)];for(const _0x4afe02 of _0x2909d1){if(shellExists(_0x4afe02))return _0x4afe02;}const _0x507a62=process[_0x4076eb(_0x30f23b._0x5c8cae,_0x30f23b._0x31cf3e,_0x30f23b._0x386292,_0x30f23b._0xcfe64c)][_0x4076eb(0x296,0x148,_0x30f23b._0x2f0d12,0x1cd)];function _0x4076eb(_0x5afb16,_0x119ead,_0xf81cc7,_0x21a218){return _0x173565(_0x5afb16-0x156,_0x119ead-_0x47729a._0x2679ba,_0xf81cc7,_0x21a218-0xd9);}if(_0x507a62&&shellExists(_0x507a62))return _0x507a62;function _0x116d41(_0x500ccc,_0x5b0d4f,_0x4dfb6b,_0x37af75){return _0x255f51(_0x4dfb6b- -0x409,_0x5b0d4f-0x13d,_0x5b0d4f,_0x37af75-_0x133b86._0x5d0cf2);}return _0x4076eb(0x25f,0x1ab,0x1b8,_0x30f23b._0x6ed9b3);}function buildShellArgs(_0x463c1f,_0x3b4e14){const _0x4ec4b1={_0x3eab40:0x3d8,_0x469ac3:0x320,_0x2eccf2:0x3f1,_0x570301:0x271,_0x492323:0x1ea,_0x2adf31:0xe5,_0x45676c:0xdd,_0x26d792:0x83,_0x2bbb44:0x66,_0x5ab0b2:0x407,_0x371cac:0x113,_0x104f4c:0x193,_0x8118c3:0x1ce,_0x347bad:0x2c5},_0x5a9620={_0x15abdf:0x75,_0xd6e5fd:0x121},_0x5e8cbd={_0x2d2a37:0x753,_0x2f9d86:0xd1};function _0x22d62d(_0x38504d,_0x2651fb,_0x3bcc13,_0x38fca6){return _0x255f51(_0x3bcc13- -_0x5e8cbd._0x2d2a37,_0x2651fb-_0x5e8cbd._0x2f9d86,_0x2651fb,_0x38fca6-0x27);}if(_0x500cef[_0xbb16aa(_0x4ec4b1._0x3eab40,0x357,_0x4ec4b1._0x469ac3,_0x4ec4b1._0x2eccf2)]()===_0x22d62d(-_0x4ec4b1._0x570301,-0x1e1,-_0x4ec4b1._0x492323,-_0x4ec4b1._0x2adf31)){const _0x141ce1=/cmd(\.exe)?$/i[_0x22d62d(-_0x4ec4b1._0x45676c,-0x78,-_0x4ec4b1._0x26d792,_0x4ec4b1._0x2bbb44)](_0x3b4e14);return _0x141ce1?['/d','/s','/c',_0x463c1f]:[_0xbb16aa(_0x4ec4b1._0x5ab0b2,0x294,0x309,0x27f),_0xbb16aa(_0x4ec4b1._0x371cac,_0x4ec4b1._0x104f4c,_0x4ec4b1._0x8118c3,_0x4ec4b1._0x347bad),'-Command',_0x463c1f];}function _0xbb16aa(_0x3f8e80,_0x2724f3,_0x25efcf,_0x40d34c){return _0x173565(_0x3f8e80-0x89,_0x2724f3-_0x5a9620._0x15abdf,_0x40d34c,_0x25efcf-_0x5a9620._0xd6e5fd);}return['-c',_0x463c1f];}function stripAnsiAndControls(_0xb28361){const _0x4af47f={_0x159d42:0x26f,_0x5e52bb:0x266,_0x45bb37:0x114,_0x4c60b2:0x6f,_0x2a7151:0x1f4,_0x2897ec:0x309,_0x5ed30:0x19d,_0x21865b:0x27a,_0x533ed7:0x27f,_0x526906:0xf8,_0x403fee:0x186,_0x9f6e24:0xe3,_0x4ee6ea:0x148,_0x43c56c:0x174,_0x426a8b:0x5f,_0x2a2635:0x24,_0x1e4643:0x102,_0xd9232a:0x178,_0x75661d:0x105,_0x27f4e7:0x186},_0x34ecb2={_0x3029fa:0x15b},_0x7107e0={_0xa8ef1:0x574,_0x4865af:0x1c};_0xb28361=stripVTControlCharacters(_0xb28361);const _0x1e7d9e='\x1b',_0x2c1cc8='\x07';_0xb28361=_0xb28361[_0x224cd9(0x90,_0x4af47f._0x159d42,_0x4af47f._0x5e52bb,0x186)](new RegExp(_0x3a7a4a(_0x4af47f._0x45bb37,-_0x4af47f._0x4c60b2,0xca,-0x12)+_0x2c1cc8+_0x3a7a4a(-0x6,_0x4af47f._0x2a7151,0x1d6,0x102)+_0x2c1cc8,'g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x224cd9(0x21e,_0x4af47f._0x2897ec,_0x4af47f._0x5ed30,_0x4af47f._0x21865b)+_0x1e7d9e+'\x5c\x5c','g'),''),_0xb28361=_0xb28361[_0x224cd9(_0x4af47f._0x533ed7,_0x4af47f._0x526906,0x281,_0x4af47f._0x403fee)](new RegExp(_0x2c1cc8,'g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x1e7d9e+'[P_^][\x5cs\x5cS]*?'+_0x1e7d9e+'\x5c\x5c','g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x1e7d9e+_0x224cd9(0x45,_0x4af47f._0x9f6e24,_0x4af47f._0x4ee6ea,_0x4af47f._0x43c56c),'g'),''),_0xb28361=_0xb28361[_0x3a7a4a(_0x4af47f._0x426a8b,_0x4af47f._0x2a2635,_0x4af47f._0x1e4643,0xda)](/[\u0080-\u009F]/g,''),_0xb28361=_0xb28361['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x3a7a4a(_0x64008b,_0x4803a8,_0x14f259,_0x13122b){return _0x255f51(_0x13122b- -_0x7107e0._0xa8ef1,_0x4803a8-_0x7107e0._0x4865af,_0x4803a8,_0x13122b-0x8b);}function _0x224cd9(_0x264aa7,_0x24c1e3,_0xb3ff38,_0x40081e){return _0x255f51(_0x40081e- -0x4c8,_0x24c1e3-_0x34ecb2._0x3029fa,_0xb3ff38,_0x40081e-0x19a);}return _0xb28361=_0xb28361[_0x224cd9(0x25a,_0x4af47f._0xd9232a,_0x4af47f._0x75661d,_0x4af47f._0x27f4e7)](/[\u23CE\u2424]/g,''),_0xb28361;}function resolveWorkingDirectory(_0x2cdb52,_0x475f1c,_0x3df959){const _0x3a1d2a={_0x378855:0x450,_0x3e383b:0x1b1,_0xc3a97:0x11e},_0x45df88={_0x64587a:0xf7,_0x9a1e80:0xc9},_0x4dd451={_0x25f73f:0xf1,_0x132081:0x3c8};function _0x469120(_0x1ecb2e,_0x28a6d4,_0x26b86f,_0x30c772){return _0x173565(_0x1ecb2e-_0x4dd451._0x25f73f,_0x28a6d4-0x99,_0x30c772,_0x1ecb2e-_0x4dd451._0x132081);}const _0x318411=resolveAllowedPath(_0x475f1c,_0x3df959,_0x2cdb52??'.');function _0x28df8b(_0x4211d5,_0x24816,_0x2676e3,_0x2b37bf){return _0x173565(_0x4211d5-0x19c,_0x24816-_0x45df88._0x64587a,_0x4211d5,_0x2b37bf-_0x45df88._0x9a1e80);}try{const _0x4c4f2b=statSync(_0x318411);if(!_0x4c4f2b[_0x28df8b(0x29c,0x3fa,0x430,0x307)]())throw new ToolExecutionError(_0x469120(0x57e,_0x3a1d2a._0x378855,0x5a0,0x6a9)+_0x318411,{'cwd':_0x318411});return _0x318411;}catch(_0x53475b){if(_0x53475b instanceof ToolExecutionError)throw _0x53475b;throw new ToolExecutionError(_0x28df8b(_0x3a1d2a._0x3e383b,_0x3a1d2a._0xc3a97,0x19a,0x1cc)+_0x318411,{'cwd':_0x318411});}}function killProcessGroup(_0x26ae6e,_0x499345,_0x3aa317=_0x255f51(0x611,0x5f9,0x5b6,0x5b5)){const _0x57d822={_0x1d8063:0xf0,_0x11c83b:0x250,_0x5131fa:0x255,_0x58454a:0x12c,_0xad9c36:0x5cd,_0x459604:0x5fa,_0x2f63f8:0x423,_0x4cc7fc:0x3cf,_0x830edd:0x547,_0x4210f9:0x4d7,_0x22ef2b:0x3b,_0x302824:0xb3,_0x29d59f:0x28,_0x47da25:0xdc,_0x209c3a:0xb3,_0x5e23a2:0x580,_0x54e52f:0x662,_0x48c5d2:0x63e,_0x2618fd:0x12e,_0x4b60a3:0x6e},_0x57c3ce={_0x4f9b01:0xe2},_0x328696={_0x1f988f:0x1b5};function _0x5422db(_0x177657,_0x4127f5,_0xb7718d,_0x523d33){return _0x173565(_0x177657-_0x328696._0x1f988f,_0x4127f5-0xe6,_0x177657,_0x523d33-0x459);}function _0x2de97d(_0x3f7262,_0x36af7e,_0x2237b4,_0x1dd97c){return _0x173565(_0x3f7262-_0x57c3ce._0x4f9b01,_0x36af7e-0xde,_0x3f7262,_0x1dd97c- -0xb8);}if(!_0x26ae6e[_0x2de97d(_0x57d822._0x1d8063,0x1bb,0x1ea,0x12d)])return;if(_0x499345)try{_0x45a0d8(_0x2de97d(_0x57d822._0x11c83b,0x167,_0x57d822._0x5131fa,_0x57d822._0x58454a),[_0x5422db(0x64a,_0x57d822._0xad9c36,0x566,_0x57d822._0x459604),_0x26ae6e['pid']['toString'](),'/T','/F'],{'stdio':_0x5422db(_0x57d822._0x2f63f8,_0x57d822._0x4cc7fc,_0x57d822._0x830edd,_0x57d822._0x4210f9)});return;}catch{_0x26ae6e[_0x2de97d(0x17b,_0x57d822._0x22ef2b,0x7a,_0x57d822._0x302824)](_0x3aa317);return;}try{process[_0x2de97d(-_0x57d822._0x29d59f,_0x57d822._0x47da25,0x1d2,_0x57d822._0x209c3a)](-_0x26ae6e[_0x5422db(_0x57d822._0x5e23a2,0x70f,_0x57d822._0x54e52f,_0x57d822._0x48c5d2)],_0x3aa317);}catch{_0x26ae6e[_0x2de97d(_0x57d822._0x2618fd,0x127,-_0x57d822._0x4b60a3,_0x57d822._0x302824)](_0x3aa317);}}function appendChunk(_0x9cf6fe,_0x56f38a,_0x362897,_0x15e15b,_0x3a85e4){const _0x570e12={_0x3117d8:0x203,_0x11ca31:0x24d,_0x508334:0x320,_0x46a813:0x5c1,_0x5f1a94:0x63e,_0x47f404:0x53a,_0x276132:0x535},_0x4265c6={_0x1d2360:0x4b1,_0x1589f5:0x4e},_0x5e4fcd={_0x28932f:0x6e},_0x307620=_0x15e15b?stripAnsiAndControls(_0x362897):_0x362897;if(_0x307620[_0x2e878e(0x1e5,0x179,_0x570e12._0x3117d8,0x15a)]===0x0)return;_0x9cf6fe[_0x2e878e(_0x570e12._0x11ca31,_0x570e12._0x508334,0x1ff,0x1f1)](_0x307620);function _0x205045(_0x3c3eab,_0x40b4f9,_0x359cc5,_0x1cb25f){return _0x255f51(_0x40b4f9- -0x72,_0x40b4f9-0xc7,_0x359cc5,_0x1cb25f-_0x5e4fcd._0x28932f);}_0x56f38a[_0x205045(_0x570e12._0x46a813,_0x570e12._0x5f1a94,_0x570e12._0x47f404,_0x570e12._0x276132)](_0x307620);function _0x2e878e(_0x4d20c2,_0x436ad5,_0x18f659,_0x2bb91f){return _0x255f51(_0x18f659- -_0x4265c6._0x1d2360,_0x436ad5-_0x4265c6._0x1589f5,_0x2bb91f,_0x2bb91f-0x177);}_0x3a85e4();}function createBashTool(_0x1463fb={}){const _0x73af50={_0x57289e:0x20c,_0x4dc6d6:0xfd,_0x372cab:0xb3,_0x1b2be2:0x19b,_0x8e272d:0x96,_0x5d96b2:0x6ef,_0xd9ffb5:0x726,_0x23c739:0x6a9,_0x447aea:0x556,_0x453443:0x683,_0x3a2005:0x5d3,_0x2fadfc:0x59f,_0x47f0a4:0x639,_0x3a37f5:0x736,_0x200e46:0x1e,_0xbbfba2:0xcd,_0x3a7d22:0xe0,_0x47f34a:0x9a,_0xf3b9bd:0x7a,_0x39b3d6:0x31,_0x498552:0x48,_0x11e890:0x6f,_0x32ed5b:0x7fd,_0x3ffd41:0x649,_0x1673df:0x82,_0x4c90fb:0x65c,_0x5378bb:0xd0,_0x2dd9ec:0x8d,_0x533e49:0x23,_0x27f419:0x52,_0x4f4ed1:0x5f7},_0x4ab724={_0x18172d:0x6e4,_0x2ff0cc:0x38f,_0x3c81f5:0x3c3,_0x4e435e:0x7cd,_0x5e15d2:0x7e5,_0x30ef80:0x6fa,_0x1ccf16:0x7ee,_0x15bfb1:0x71c,_0x1121ff:0x37,_0x5e3276:0x78e,_0x48a736:0x8c6,_0x4ed86f:0x1f,_0x494abe:0x45,_0x194420:0xcf,_0x4cf6c4:0x28e,_0x3cf1a5:0x105,_0x2d355f:0x16d,_0x3a7c41:0x65e,_0x524f29:0x65c,_0x40cbb4:0x5c,_0x292a56:0x17d,_0x500fec:0x20f,_0x15f40e:0x150,_0x110c01:0x74d,_0x3d0e9c:0x73c,_0x2d9dd8:0x66f,_0x3fa36e:0x66e,_0x2754f7:0x6da,_0x2a43c6:0x6c1,_0x472fd2:0x858,_0x371e93:0x2e6,_0x2a9da5:0x238,_0x105293:0x4f,_0x975041:0x26,_0x54ca2c:0x12b,_0x110f4f:0x118,_0x419858:0x616,_0x240811:0x79f,_0x5953de:0x549,_0xc68f11:0x63f,_0x2e8880:0x20d,_0x53b1fd:0x73b,_0x48834f:0x6d8,_0x113463:0x726,_0x112188:0x872,_0x77229a:0x873,_0x5acd44:0x761,_0x37b28c:0x6a3,_0x15978a:0x87f,_0x5bed1e:0x603,_0x16a495:0x662,_0x547465:0x811,_0x5819cb:0x3f5,_0x2b870a:0x714,_0x411536:0x885,_0x31c501:0x1d6,_0xe866fa:0x21a,_0x6cc0d8:0x165,_0x287bd9:0x154,_0xdf6950:0x17f,_0x9cb278:0x2dd,_0x3c43a3:0x25e,_0x3c09ac:0x1ab,_0x292039:0x2c1,_0x2fb8fa:0x7f2,_0x2722ef:0x6b0,_0x4bb9b8:0x838,_0x41304d:0x655,_0x3a03d7:0x70e,_0x73f4e9:0x66a,_0x580e7b:0x6f3,_0x59b593:0x67b,_0x3b2f35:0x5ad,_0x398aff:0xfe,_0x506246:0x5c4,_0x935583:0x6fc,_0x31affd:0x734,_0x1e3027:0x63f,_0x13c5d5:0x647,_0x582252:0x764,_0x5e36a3:0x688,_0x283e89:0x758,_0x1298e:0x6e9,_0x5e2117:0x5fe,_0x1b6f86:0x64b},_0xcf247={_0x5a21d7:0x41c,_0x5c5d22:0x4ba},_0x19d9b7={_0x2ec917:0x10c,_0x15f9f2:0x751},_0x1c303d={_0xc9b908:0x1a0},_0x248ec7={_0x29ec81:0x12,_0x3878c4:0x509};function _0x1b8bd4(_0x2c1934,_0x1dbffa,_0x2326b9,_0xdc71d0){return _0x173565(_0x2c1934-0x4a,_0x1dbffa-_0x248ec7._0x29ec81,_0x2326b9,_0xdc71d0-_0x248ec7._0x3878c4);}const _0xe3f087=_0x552678[_0x270b6a(-_0x73af50._0x57289e,-_0x73af50._0x4dc6d6,-0x156,-_0x73af50._0x372cab)](_0x1463fb[_0x270b6a(-_0x73af50._0x1b2be2,_0x73af50._0x8e272d,-0x95,-0x5b)]??process[_0x1b8bd4(0x7e0,_0x73af50._0x5d96b2,0x645,_0x73af50._0xd9ffb5)]()),_0x138dae=(_0x1463fb[_0x1b8bd4(_0x73af50._0x23c739,0x63e,_0x73af50._0x447aea,_0x73af50._0x453443)]??[])[_0x1b8bd4(_0x73af50._0x3a2005,_0x73af50._0x2fadfc,0x525,0x54b)](_0x9c61f2=>_0x552678[_0x270b6a(-0x1f1,-0x148,-0x156,-0x220)](_0x9c61f2));function _0x270b6a(_0x590e9e,_0x3612eb,_0x3a9fea,_0x2bb20f){return _0x255f51(_0x3a9fea- -0x6df,_0x3612eb-_0x1c303d._0xc9b908,_0x3612eb,_0x2bb20f-0xeb);}const _0x5831c9=_0x1463fb[_0x1b8bd4(_0x73af50._0x47f0a4,_0x73af50._0x3a37f5,0x775,0x73d)]??DEFAULT_TIMEOUT_MS,_0x40136b=_0x1463fb[_0x270b6a(_0x73af50._0x200e46,-_0x73af50._0xbbfba2,-_0x73af50._0x3a7d22,-_0x73af50._0x47f34a)]??!![],_0x2dcf59=_0x1463fb[_0x270b6a(-_0x73af50._0xf3b9bd,_0x73af50._0x39b3d6,0x33,_0x73af50._0x498552)]??_0x270b6a(-0xd6,0x16b,0x42,-_0x73af50._0x11e890);return defineTool({'name':_0x2dcf59,'description':_0x1463fb[_0x1b8bd4(0x636,_0x73af50._0x32ed5b,_0x73af50._0x3ffd41,0x6ec)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x270b6a(-0x88,-0x123,-_0x73af50._0x1673df,0x8f),'properties':{'command':{'type':'string'},'cwd':{'type':_0x1b8bd4(0x53c,0x63b,0x574,_0x73af50._0x4c90fb)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x270b6a(_0x73af50._0x5378bb,-_0x73af50._0x2dd9ec,-_0x73af50._0x533e49,_0x73af50._0x27f419)}},'required':[_0x1b8bd4(0x636,0x762,_0x73af50._0x4f4ed1,0x639)]},async *'execute'(_0x34f44f,_0x399e8b){const _0x187c64={_0x116ce5:0x2e8,_0x4513fc:0x46b,_0x38eef5:0x27d,_0x4a2571:0x3a7,_0x3a0fa9:0x362,_0x470f20:0x2cb},_0x1f037a={_0xf3adf8:0xdf,_0x4ecf3c:0x121,_0x56662f:0x6a,_0x5a7d25:0x14c,_0x3da735:0x4c,_0x5efa90:0x146,_0x366147:0x1ac,_0x26e070:0x57,_0x18a5be:0x16},_0x11cf8b={_0x46a550:0x3e},_0x25f95f={_0x3c7d1c:0x39},_0x28ac9e={_0xb00127:0x8f,_0x6fbd4e:0x49,_0x2653d0:0x5c,_0x25bfcb:0x6a6,_0x1317cc:0x68a},_0x2d203c={_0x33dc5b:0x2fa,_0x34e33f:0x3d2,_0x81f6f6:0x1ca},_0x2a79eb={_0x124fc5:0x4f4},_0x33d020={_0x480663:0x3a,_0x3b8172:0x152},_0x581fe5={_0x48f061:0x32e,_0x4b195b:0x2bd,_0x1789f4:0x3ed},_0x308196={_0x1756be:0x13c},_0x4d092b={_0x3dce5b:0x245},_0x50fb6c=_0x34f44f[_0x4a08e0(0x734,_0x4ab724._0x18172d,0x6ca,0x62f)]??_0x5831c9;function _0x4c0979(_0x19cf77,_0x153bcd,_0x5cd9ce,_0xf4f48b){return _0x270b6a(_0x19cf77-0x12f,_0x153bcd,_0xf4f48b-_0x4d092b._0x3dce5b,_0xf4f48b-0x9a);}if(!Number[_0x4c0979(_0x4ab724._0x2ff0cc,0x27a,_0x4ab724._0x3c81f5,0x2f3)](_0x50fb6c)||_0x50fb6c<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x34f44f['command']});throwIfAborted(_0x399e8b[_0x4a08e0(_0x4ab724._0x4e435e,_0x4ab724._0x5e15d2,_0x4ab724._0x30ef80,_0x4ab724._0x1ccf16)]);const _0x4b6af8=resolveWorkingDirectory(_0x34f44f[_0x4a08e0(0x7de,_0x4ab724._0x15bfb1,0x921,0x7fb)],_0xe3f087,_0x138dae),_0x900c2f=_0x34f44f[_0x4c0979(-0x2f,_0x4ab724._0x1121ff,0x83,0xf7)]??![],_0x151863=resolveDefaultShell(_0x1463fb[_0x4a08e0(0x6bf,0x884,0x6df,_0x4ab724._0x5e3276)]),_0x11642e=buildShellArgs(_0x34f44f[_0x4a08e0(0x6fb,0x646,0x82b,0x70e)],_0x151863),_0x10dae0=_0x500cef[_0x4a08e0(_0x4ab724._0x48a736,0x798,0x8ff,0x7dd)]()===_0x4c0979(-_0x4ab724._0x4ed86f,0x59,_0x4ab724._0x494abe,_0x4ab724._0x194420);let _0x260c89;try{_0x260c89=_0x45a0d8(_0x151863,_0x11642e,{'cwd':_0x4b6af8,'env':{...process[_0x4c0979(0xa2,_0x4ab724._0x4cf6c4,_0x4ab724._0x3cf1a5,_0x4ab724._0x2d355f)],..._0x1463fb['env']??{}},'stdio':_0x900c2f?[_0x4a08e0(0x5ed,_0x4ab724._0x3a7c41,0x6c3,_0x4ab724._0x524f29),_0x4c0979(0xdc,0x19e,_0x4ab724._0x40cbb4,0x150),_0x4c0979(_0x4ab724._0x292a56,0x251,_0x4ab724._0x500fec,_0x4ab724._0x15f40e)]:[_0x4c0979(0x211,0x173,0x25c,_0x4ab724._0x15f40e),_0x4a08e0(0x6cb,_0x4ab724._0x110c01,_0x4ab724._0x3d0e9c,_0x4ab724._0x2d9dd8),_0x4a08e0(0x551,_0x4ab724._0x3fa36e,0x69e,0x66f)],'shell':![],'windowsHide':!![],'detached':!_0x10dae0});}catch(_0x4b558d){if(isErrnoException(_0x4b558d)&&_0x4b558d[_0x4a08e0(0x720,0x832,0x774,0x76a)]===_0x4a08e0(_0x4ab724._0x2754f7,0x7b3,0x785,_0x4ab724._0x4e435e))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x151863,{'command':_0x34f44f[_0x4a08e0(_0x4ab724._0x2a43c6,0x6c4,0x72a,0x70e)],'cwd':_0x4b6af8,'shellPath':_0x151863});throw new ToolExecutionError(_0x4b558d instanceof Error?_0x4b558d['message']:String(_0x4b558d),{'command':_0x34f44f['command'],'cwd':_0x4b6af8,'shellPath':_0x151863});}const _0x4044a4=[];function _0x4a08e0(_0x5ed5e5,_0x1d5016,_0x34ea64,_0x16f707){return _0x270b6a(_0x5ed5e5-_0x19d9b7._0x2ec917,_0x34ea64,_0x16f707-_0x19d9b7._0x15f9f2,_0x16f707-0x13d);}const _0xd562ba=[],_0x5e32e3=new StringDecoder(_0x4a08e0(0x660,_0x4ab724._0x472fd2,0x6e5,0x744)),_0x40fde7=new StringDecoder(_0x4c0979(0x1ee,_0x4ab724._0x371e93,0x337,_0x4ab724._0x2a9da5));let _0xb31111,_0x30660b=![],_0x255ed3;const _0x474e59=()=>{if(!_0xb31111)return;const _0x1b0e51=_0xb31111;_0xb31111=void 0x0,_0x1b0e51();},_0x42274b=async()=>{const _0x3fbea8={_0x5c7ffa:0x16,_0x35bb2f:0x45};if(_0xd562ba[_0x2ac16d(0x560,_0xcf247._0x5a21d7,0x4f2,_0xcf247._0x5c5d22)]>0x0||_0x30660b)return;function _0x2ac16d(_0x5357d2,_0x3bd3aa,_0x2e0dcc,_0x40915c){return _0x4a08e0(_0x5357d2-_0x3fbea8._0x5c7ffa,_0x3bd3aa-_0x3fbea8._0x35bb2f,_0x2e0dcc,_0x40915c- -0x26c);}await new Promise(_0x504ea8=>{_0xb31111=_0x504ea8;});},_0x53c7c2=_0x2f2d5c=>{function _0x4035b4(_0x3b734b,_0x56f447,_0xd6b9bb,_0x545485){return _0x4c0979(_0x3b734b-_0x308196._0x1756be,_0x56f447,_0xd6b9bb-0x8a,_0x545485-0x1a2);}appendChunk(_0x4044a4,_0xd562ba,_0x5e32e3[_0x4035b4(0x3bd,_0x581fe5._0x48f061,_0x581fe5._0x4b195b,_0x581fe5._0x1789f4)](_0x2f2d5c),_0x40136b,_0x474e59);},_0x534c52=_0x547212=>{function _0x4416a8(_0x4bb6ea,_0xd0cb76,_0x305b87,_0x59ff51){return _0x4a08e0(_0x4bb6ea-0x96,_0xd0cb76-0xf2,_0x4bb6ea,_0xd0cb76- -0x6e7);}appendChunk(_0x4044a4,_0xd562ba,_0x40fde7[_0x4416a8(-_0x33d020._0x480663,0x70,0x75,_0x33d020._0x3b8172)](_0x547212),_0x40136b,_0x474e59);};_0x260c89[_0x4c0979(_0x4ab724._0x105293,_0x4ab724._0x975041,_0x4ab724._0x54ca2c,_0x4ab724._0x110f4f)]?.['on'](_0x4a08e0(_0x4ab724._0x419858,0x7c1,_0x4ab724._0x240811,0x719),_0x53c7c2),_0x260c89[_0x4a08e0(_0x4ab724._0x5953de,0x658,_0x4ab724._0x3d0e9c,_0x4ab724._0xc68f11)]?.['on'](_0x4c0979(0xf8,0x287,0x130,_0x4ab724._0x2e8880),_0x534c52);let _0xa076d8=![],_0x4b7811;const _0x220fee=addAbortListener(_0x399e8b['signal'],()=>{const _0x41ddc8={_0x31799c:0xde};_0x255ed3=toAbortError(_0x399e8b[_0xfbab6(0x22e,_0x2d203c._0x33dc5b,_0x2d203c._0x34e33f,0x2e3)][_0xfbab6(_0x2d203c._0x81f6f6,0x2f8,0x2a2,0x3c8)]);function _0x91502c(_0x5cfdfc,_0x54dc71,_0x3f03d2,_0x262700){return _0x4a08e0(_0x5cfdfc-_0x41ddc8._0x31799c,_0x54dc71-0x2e,_0x5cfdfc,_0x262700- -0x742);}_0x30660b=!![],_0x474e59();function _0xfbab6(_0x26244b,_0x2b2dfc,_0x37e6a8,_0x2f2b1a){return _0x4a08e0(_0x26244b-0xbe,_0x2b2dfc-0x50,_0x2f2b1a,_0x2b2dfc- -_0x2a79eb._0x124fc5);}try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}});try{const _0x4a277a=new Promise((_0x349210,_0x1b0f5c)=>{const _0x4a4394={_0x5e674f:0x1f9},_0x3af132={_0x1fb2a2:0x56,_0x553bac:0xf2,_0x544c47:0xa9,_0x53f833:0x161},_0x2d6c9a={_0x51a044:0x2da},_0x41b559=()=>{function _0x142fc7(_0x485215,_0x15e970,_0xc43f58,_0x2274a5){return _0x4100(_0x485215- -0x1f3,_0x2274a5);}function _0x24d1d0(_0x123abe,_0x5f2df8,_0x53a3e8,_0x2ac054){return _0x4100(_0x53a3e8-_0x2d6c9a._0x51a044,_0x123abe);}_0x4b7811&&(clearTimeout(_0x4b7811),_0x4b7811=void 0x0),_0x260c89[_0x142fc7(_0x28ac9e._0xb00127,-_0x28ac9e._0x6fbd4e,0x4b,-_0x28ac9e._0x2653d0)]('error',_0x2b4d62),_0x260c89['off'](_0x24d1d0(_0x28ac9e._0x25bfcb,0x6ee,_0x28ac9e._0x1317cc,0x58c),_0x50c140);};function _0x30da90(_0x182060,_0x21c431,_0x52087d,_0x3e0bdc){return _0x4a08e0(_0x182060-0x111,_0x21c431-_0x25f95f._0x3c7d1c,_0x182060,_0x52087d- -0x2d8);}function _0x377bdc(_0x25ffa5,_0x247a2c,_0x1ce85f,_0x453e3a){return _0x4c0979(_0x25ffa5-0xf,_0x453e3a,_0x1ce85f-_0x11cf8b._0x46a550,_0x25ffa5-0x1e1);}const _0x2b4d62=_0x15ce54=>{_0x30660b=!![],_0x474e59(),_0x41b559(),_0x1b0f5c(_0x255ed3??_0x15ce54);},_0x50c140=(_0x18826f,_0x1b8e36)=>{_0xa076d8=!![],appendChunk(_0x4044a4,_0xd562ba,_0x5e32e3[_0x2fbab0(_0x3af132._0x1fb2a2,_0x3af132._0x553bac,0x161,0x175)](),_0x40136b,_0x474e59),appendChunk(_0x4044a4,_0xd562ba,_0x40fde7[_0x2fbab0(0x45,_0x3af132._0x544c47,_0x3af132._0x53f833,0x81)](),_0x40136b,_0x474e59),_0x30660b=!![];function _0x2b28dd(_0x145f42,_0x1c75a8,_0x5db657,_0x2608a1){return _0x4100(_0x145f42-0xd6,_0x2608a1);}_0x474e59(),_0x41b559();function _0x2fbab0(_0x128e48,_0x19fd42,_0x56d27b,_0xdbfb0){return _0x4100(_0x56d27b- -0x190,_0x19fd42);}if(_0x255ed3){_0x1b0f5c(_0x255ed3);return;}_0x349210({'code':_0x18826f,'signal':_0x1b8e36});};_0x4b7811=setTimeout(()=>{_0x30660b=!![],_0x474e59();function _0x5f25ba(_0x2f1489,_0x2e17f2,_0x567493,_0x36cd72){return _0x4100(_0x567493- -_0x4a4394._0x5e674f,_0x2f1489);}function _0x3fecfa(_0x59750b,_0x224fd6,_0x3ac40e,_0x4bccfb){return _0x4100(_0x59750b- -0x275,_0x3ac40e);}_0x41b559();try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}_0x1b0f5c(new ToolExecutionError(_0x3fecfa(_0x1f037a._0xf3adf8,0x1d4,_0x1f037a._0x4ecf3c,0x1f1)+_0x50fb6c+_0x3fecfa(_0x1f037a._0x56662f,_0x1f037a._0x5a7d25,_0x1f037a._0x3da735,_0x1f037a._0x5efa90),{'command':_0x34f44f[_0x3fecfa(0xb3,_0x1f037a._0x366147,_0x1f037a._0x26e070,_0x1f037a._0x18a5be)],'cwd':_0x4b6af8,'shellPath':_0x151863,'timeoutMs':_0x50fb6c,'timedOut':!![]}));},_0x50fb6c),_0x260c89[_0x377bdc(0x362,_0x187c64._0x116ce5,_0x187c64._0x4513fc,_0x187c64._0x38eef5)](_0x30da90(0x4c5,0x4b3,_0x187c64._0x4a2571,0x303),_0x2b4d62),_0x260c89[_0x377bdc(_0x187c64._0x3a0fa9,0x353,_0x187c64._0x470f20,0x355)](_0x30da90(0x448,0x583,0x4be,0x49a),_0x50c140);});while(_0xd562ba[_0x4a08e0(_0x4ab724._0x53b1fd,_0x4ab724._0x48834f,0x732,_0x4ab724._0x113463)]>0x0||!_0x30660b){if(_0xd562ba['length']===0x0){await _0x42274b();continue;}const _0x3c3c89=_0xd562ba['shift']();_0x3c3c89!==void 0x0&&(yield _0x3c3c89);}const _0x2cdc74=await _0x4a277a,_0x11a96e=_0x900c2f?_0x4a08e0(_0x4ab724._0x112188,_0x4ab724._0x77229a,0x752,_0x4ab724._0x5acd44)+(_0x2cdc74[_0x4a08e0(_0x4ab724._0x37b28c,0x753,_0x4ab724._0x15978a,0x76a)]??0x0):_0x4044a4[_0x4a08e0(_0x4ab724._0x5bed1e,0x588,0x73a,_0x4ab724._0x16a495)](''),_0x101c3f={'command':_0x34f44f['command'],'cwd':_0x4b6af8,'exitCode':_0x2cdc74[_0x4a08e0(_0x4ab724._0x547465,0x816,0x64a,0x76a)]??0x0,'signal':_0x2cdc74[_0x4c0979(_0x4ab724._0x5819cb,0x366,0x249,0x2e2)],'ignoreOutput':_0x900c2f,'shellPath':_0x151863,'timeoutMs':_0x50fb6c};if(_0x2cdc74[_0x4a08e0(_0x4ab724._0x2b870a,0x879,0x6f5,0x76a)]!==0x0)throw new ToolExecutionError(_0x11a96e||'Command\x20exited\x20with\x20code\x20'+(_0x2cdc74[_0x4a08e0(_0x4ab724._0x411536,0x677,0x831,0x76a)]??0x0),_0x101c3f);return createToolOutput(_0x11a96e,_0x101c3f);}catch(_0x59c6f0){while(_0xd562ba[_0x4c0979(0x229,_0x4ab724._0x31c501,0x1aa,_0x4ab724._0xe866fa)]>0x0){const _0x4b01a7=_0xd562ba[_0x4c0979(0x1bc,0x272,_0x4ab724._0x6cc0d8,_0x4ab724._0x287bd9)]();_0x4b01a7!==void 0x0&&(yield _0x4b01a7);}if(_0x59c6f0 instanceof ToolExecutionError)throw _0x59c6f0;if(_0x255ed3)throw _0x255ed3;if(isErrnoException(_0x59c6f0)&&_0x59c6f0[_0x4c0979(_0x4ab724._0xdf6950,0x333,_0x4ab724._0x9cb278,_0x4ab724._0x3c43a3)]===_0x4c0979(0x2cc,0x331,_0x4ab724._0x3c09ac,_0x4ab724._0x292039))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x151863,{'command':_0x34f44f[_0x4a08e0(0x752,_0x4ab724._0x2fb8fa,0x5de,0x70e)],'cwd':_0x4b6af8,'shellPath':_0x151863});throw new ToolExecutionError(_0x59c6f0 instanceof Error?_0x59c6f0[_0x4a08e0(_0x4ab724._0x2722ef,0x6ca,_0x4ab724._0x4bb9b8,0x771)]:String(_0x59c6f0),{'command':_0x34f44f[_0x4a08e0(_0x4ab724._0x41304d,_0x4ab724._0x3a03d7,_0x4ab724._0x73f4e9,_0x4ab724._0x3a03d7)],'cwd':_0x4b6af8,'shellPath':_0x151863});}finally{_0x4b7811&&clearTimeout(_0x4b7811);_0x220fee(),_0x260c89[_0x4a08e0(0x6bc,_0x4ab724._0x580e7b,0x699,0x624)]?.[_0x4a08e0(_0x4ab724._0x59b593,0x6dc,_0x4ab724._0x3b2f35,0x668)](_0x4c0979(0x1e8,0x134,_0x4ab724._0x398aff,0x20d),_0x53c7c2),_0x260c89[_0x4a08e0(_0x4ab724._0x506246,_0x4ab724._0x935583,_0x4ab724._0x31affd,_0x4ab724._0x1e3027)]?.[_0x4a08e0(0x5b0,_0x4ab724._0x13c5d5,_0x4ab724._0x582252,0x668)](_0x4a08e0(0x65a,_0x4ab724._0x5e36a3,0x7cf,0x719),_0x534c52);if(!_0xa076d8&&_0x260c89['pid']&&!_0x260c89[_0x4a08e0(_0x4ab724._0x283e89,_0x4ab724._0x1298e,_0x4ab724._0x5e2117,_0x4ab724._0x1b6f86)])try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}}}});}function createShellExecTool(_0x3d8eed={}){return createBashTool(_0x3d8eed);}import{readdir,readFile as _0x3fbef9}from'fs/promises';import{extname,join as _0x31e552}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0xa7559e,join,relative as _0x4cdf8b,resolve as _0x76845d}from'path';function _0x2b52(){const _0x7731c6=['zw52','lMPWzwC','BNvTyMvY','BM9Zy3jPChq','qxnZAwDUvgfZAW','Ec1HCgKTA2v5','zxjYB3i','B3bLBMfPlxjLC3bVBNnLCW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','C3vIyxjYyxK','u0Lhs0Lmta','ywrKrxzLBNrmAxn0zw5LCG','y2HHCKnVzgvbDa','yM0Ynq','ls0T','Dg9vChbLCKnHC2u','lNDLyNa','C29YDa','lu5VuhjVzMLSzq','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','B25Jzq','Dg9VBa','B2zMC2v0','q29TBwfUzcaN','y29UDgv4Da','AxrLBxm','y2HHBMDL','zgvUBY5QC29U','BgLUAW','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','Bg9HzfnRAwXS','BwvTB3j5','ANnVBMm','te9x','uKLgrG','yxbPs2v5','DhLWzq','Bg9JywXLq29TCgfYzq','Cgf0Ag5HBwu','CMvMzxjLBMnLCW','BgLNAhq','y29UDgvUDa','AMf2yxnJCMLWDa','sfruuca','C3vKBW','v2LUr2v0','BxrPBwvnCW','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','y29UC3rYDwn0B3i','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','yMLVBwu','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','wZ0+nY04kcLD','C2vUze5VDgLMAwnHDgLVBG','Dg9mB3DLCKnHC2u','zNvSzMLSBgvK','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','C2vZC2LVBKLK','C3LTBgLUAW','y2HHCMfJDgvY','Bwf0y2HLCW','uefusa','lMPZ','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','BM90Awz5','zgvMyxvSDen3za','BwnFzwLK','D2HLCMuGCMC','CMvMCMvZAf90B2TLBG','CMvWBgfJzq','BgLUzvrLEhq','AgvHzgvYCW','lMnQCW','BwfYA2rVD24','ig1Z','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','AgvHzgvY','uhjVz3jHBuzPBgvZkhG4nIK','DhLWzxnJCMLWDhjLywn0','zgvSzwDHDgvKlxj1BI0','C2H1DgrVD25tDgfYDgvK','yxjNCW','B3b0Aw9UywW','z29uB0rLzMLUAxrPB24','B2jQzwn0','BM93','ndm2ntu0oejmr3b3DW','u0HfteW','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','DxnLCM5HBwu','DxrTx3nVDxjJzq','zgLHz25VC3rPy3m','zw5K','CgfJA2fNzs1SB2nRlMPZB24','tM8GC3LTyM9SCYbMB3vUza','yMfZzty0','CMvZDwX0','C2fMzq','zMLUza','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','lI4U','y2fSBgjHy2TvCMW','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','zMjJBgLK','y29UBMvJDgLVBG','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','ywXSu2v0DgXLza','zMXHDe1HCa','zg9JDw1LBNrtEw1IB2W','xg5DkJ8','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','B3rOzxi','DMfSDwu','ugf0AcbUB3qGzM91BMq6ia','rgLHz25VC3rPyW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw1WBgvTzw50yxrPB24','lMPZB24','Dgv4Dc9ODg1S','Aw5PDgLHBgL6zwq','B3jPz2LUvg9VBenHBgXjza','y21KlMv4zq','z29Vz2XLq3nLq3G','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','C2L6zq','r0LgodLH','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','zMLUzfjLzMvYzw5Jzxm','ugf0AcbPCYbUB3qGysbMAwXLoIa','CMvTB3zL','ignVBxbSzxrLzc4','C3jJl2fNzw50l2fNzw50lNrZ','DhnZzxj2zxiUANm','zw5HyMXLza','yNjVA2vU','DhLWzxnJCMLWDa','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','twLJCM9ZB2z0','Dgv4Da','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','u3rHCNrLzcbHz2vUDcbYDw4G','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','tunqihrVB2WG','C2vYDMvYCW','y29TBwfUza','D2HPy2GGCMC','C3rHCNreAxi','Dw5PB24','rMLSzu5LDW','Dgv4DerVy3vTzw50l2rPze9Wzw4','zgLZCg9Zzq','l3vZCI9IAw4VCMC','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','C3rHDhvZ','zgf0yq','C2TPBgXZ','CMvXDwvZDa','zgLHz25VC3rPy3ngB3jgAwXL','lMPZB25J','tgLUzsa','C2L0ztO','qxzHAwXHyMXLignVBw1HBMrZoG','C2HHmJu2','ChvZAa','AgfZ','DhvWBgu','EwvZ','BgvUz3rO','yxv0AfjLCxvPCMvK','CMvJzw5JEurHExm','DgL0Bgu','BhnWu2vYDMLJzq','qMvHCMvYia','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','mtqYmJa4mtbNqwf6tuy','yM9VBgvHBG','Ag9TzwrPCG','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','C3rYAw5N','B3bLBG','Aw5JBhvKzxm','ANnVBG','CgfYzw50u2vZC2LVBKLK','Ahr0Ca','Aw5PDgLHBgL6zq','te9dquXbufbeqvrb','uhjVz3jHBuzPBgvZ','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','Dg9Rzw5Z','B3v0Chv0','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','z2L0qNjHBMnO','C2v0','AxnfBMfIBgvK','C2vYDMvY','DgvZDa','igj5DgvZigv4y2vLzhmG','DxrMoa','zgvSzxrL','C2vHCMnOugfYyw1Z','ksbB','lMPWzW','A2LSBa','ls1ZDgrPBW','C2vHCMnOvhLWzq','CgfJA2fNzu5HBwu','BgLUzvn0yxj0','z29Vz2XLlwnZzq','y29KzvzLCMLMAwvY','AxntEw1IB2XPy0XPBMS','mZG3mxvcBfDIrW','C2XPy2u','rMLSzuvKAxq','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','BgfUzW','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','D3jPDgu','ywXSB3DLzerPCNm','zMLYC3q','v2vIrMv0y2G','DMvYAwzPzxi','A2v5','zgLZy292zxj5','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','Cg5WBs1SB2nRlNLHBwW','zxHPDcbJB2rLia','CgXHAw50zxH0','r2XVyG','nu5tzhjhDW','rM91BMqG','CgfYC2vjBNq','AxnjBNrLz2vY','CMfUz2u','zMLSzvbHDgG','y29Kzq','r3jLCa','DxjS','Bg93','Bw9Kzq','BgLUzu51Bq','cGOTls0kcG','BwvZC2fNzq','y29Uy2f0','tM8GAg92zxiGAw5MB3jTyxrPB24','D29YA3nWywnLu3LTyM9S','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','mJi5mtu4sgvYA0XK','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','yxv0Ag9YAxPHDgLVBL9JB2rL','zhj5uNvU','tNv2Aw4','C3rHCNrZv2L0Aa','yxjYyxK','l3bPza','DhnJB25MAwCUANnVBG','BwLU','ugfJA2fNzxm','ihDHCYbHyM9YDgvKlG','BMfTzq','Dg91y2HgAwXL','yxjNDw1LBNrZvgv4Da','ls1JB2X1Bw4','l2jPBI9IyxnO','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','Dg9Rzw5tDg9YywDLs2v5','CMfUAW','yxnZAwDU','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','C2HLBgXqyxrO','yxbWBgLJyxrPB24VANnVBG','ChjLCgfYzunHBgXiAwvYyxjJAhK','y2XPzw50','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','qMfZAa','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','y2XVC2u','Bwv0yxrHz3m','z2nSAwq','DgfZAW','BgfUz3vHz2u','ls1NBg9I','y3jSzG','y2vPBa','yMvHCMvY','CxvLCNK','yxr4','odrABuPZvuK','yxjNDw1LBNroyw1LCW','zxH0BMfTzq','ywn0AxzL','ls1WCMvMAxG','tuLnrtOG','Dg9ju09tDhjPBMC','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','y2XPzw50CW','CMvNAw9U','seLhsa','C3rHCNq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','mJC2uuzTzxzL','zgf0zvjLC3rYAwn0','qMfZzsbKAxjLy3rVCNK6ia','rgv0ywLSoIa','Ahr0CdO','o1TExg5DkJ8','Dg9VBhmVy2fSBa','zMLSDgvY','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','y29UzMLN','zgLZy292zxj5u3rHDgu','Aw5JBhvKzq','yw50AhjVCgLJlw1LC3nHz2vZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','D2fPDezVCKrPywDUB3n0AwnZ','DxrTx21LzgL1Bq','cMbGya','CgfJA2fNzxm','zgvZy3jPChrPB24','DgfZA2TPBgW','CgLK','l29WDc9OB21LyNjLDY9IAw4VCMC','yxv0BW','lu5Vtg9NBW','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','D2vI','yNvUlMXVy2TI','Dw5RBM93BG','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','C2vUza','ru5pru5u','C3rHDgu','C3rYAw5NAwz5','vMLLD2vKigLTywDLigzPBgu6ia','tM8GC3vJAcbMAwXLoIaN','BNv2Aw4','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Aw5ZDhj1y3rPB25Z','vw5HDxrOB3jPEMvKrxjYB3i','y29UDgvUDc1Szw5NDgG','Dg9VBenHBgXjza','C2vYDMvYtMfTzq','C3bHD25PBMC','AxngAwXL','l3vZCI9SB2nHBc9IAw4VCMC','CM9VDa','CgXHDgzVCM0','BgLZDfrVB2XZ','C25PChbLDa','y29ZDa','ywjVCNrLza','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','lMjPBG','yxnPzgu','BgLI','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','zw50CMLLCW','y291BNq','t0zg','lMDPzG','B25szwrPCMvJDa','CMvHC29U','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','C2LNBMfS','yNvUlMXVy2S','zMLSzq','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','z29Vz2XLq3nLs2v5','yMfZzw5HBwu','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','yM94zwq','yM9KEq','igzYB20G','ie9sia','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','lM51DMLU','y3DK','qxv0Ag9YAxPHDgLVBG','Aw50zwDLCG','CMvXDwLYzwq','AxngAw5PDgu','sw5MB3jTyxrPB24','ig1HDgnO','qwDLBNqGCNvUia','Aw5JB21PBMDdywXSCW','BMv3vgv4Da','cGPbuKDvtuvovfm6ia','zxHPDa','ywXSB3DLzfrVB2XZ','z2XVyG','Dg9Rzw4','DxrTx2nHBxbHAwDU','C291CMnL','Ag92zxi','mZaXnZDpzhjyAKi','DxjP','B3bLCMf0Aw9U','y2XPzw50sw5MB3jTyxrPB24','sw52ywXPzcbvuKWGCgfYyw1LDgvY','zgvMyxvSDfrPBwvVDxrnCW','CMCUzxHL','BM9Kzv9TB2r1BgvZ','zM9VDgvY','igzHAwXLzc4','CMfUzg9T','CMvJB3jK','BgLUzuvUza','lNrTCc4','zgvMAw5PDgLVBG','AxneAxjLy3rVCNK','CMLWz3jLCcbMywLSzwq6ia','AxnfCNjVCG','q29Tu3bLyW','zMLSzvzLCNnPB25Z','CNnZ','Bwf4qNL0zxm','DhjPBq','CMLWz3jLCa','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','AMf2yxnJCMLWDhjLywn0','Ag9ZDa','B25oB3rPzMLJyxrPB24','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','zgvSAw1PDgvY','yMLYDgH0Aw1L','tunqihnLCNzLCIa','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','rMv0y2GGywjVCNrLzcbIEsb1C2vY','AxnbCNjHEq','A2v5CW','y29UBMvJDa','C2nYAxb0','Aw5WDxq','o1TE','zgf0zxrPBwu','BwnWxW','Aw1Hz2uVANbLzW','rMLSzsb3CML0DgvUigf0ia','AhrTBfnUAxbWzxq','y29UDgvUDhm','D2LUmZi','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C3r5Bgu','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','B2f1DgG','tg9HzfnRAwXS','C2vUzfjLCxvLC3q','lw5i','CMvXDwvZDhm','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','y2XLyxi','y2fUy2vS','qgjPB21LANmVyMLVBwu','BhnW','lMPZEa','AgfZq2XPzw50CW','DxbKyxrL','Aw1Hz2vZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','Aw5ZDgfSBa','Cgf0DgvYBIbPCYbYzxf1AxjLza','DxrTx2nVBNrLBNq','y2fSBfrVB2W','lNbUzW','C2H1DgrVD24','BxrPBwu','ywDLBNrjza','Bw9KzwW','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','zxjYB3jnzxnZywDL','BNvT','C3rKAw8','CMvZB2X2zq','BgLUzxm','y2XPzw50x3nLy3jLDf9WB3n0','zg9TywLUCW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','AxnbyNnVBhv0zq','BgLTAxq','Dhj1BMm','AwDUB3jLt3v0Chv0','y2XLyw51Ca','l2jPBI9YzW','Aw5KzxHpzG','yxv0Aa','C3jJl2v4yw1WBgvZl2rLBw8UDhm','CgfZC3rOCM91z2G','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','y2fWywjPBgL0AwvZ','v0vcua','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZlG','y29UDgv4DeXPBMS','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','C3bSAxq','ChjLzML4','z29uB0LTCgXLBwvUDgf0Aw9U','ywrK','Bwf4','nty4odKWm2zTtNrLAa','rxjYB3i','zMLSztOVlW','ywXS','ChjVDg9JB2W','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','mc4WlJa','yxjNDw1LBNriAw50','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','CgfJA2fNzs5QC29U','BwfW','z2v0','zgLYBMfTzq','Cg9W','C3rKB3v0','Dg9tDhjPBMC','AhLKCMf0zu1LDge','Agv4','CgfZC3DVCMq','Aw1Hz2u','l3vZCI9IAw4VyMfZAa','ChjVCgvYDgLLCW','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','DhjPBuvUza','B3bLBKzPBgvZ','DgLTzw91De1Z','v2vIu2vHCMnO','nte2otHpuKfnzha','vw5RBM93BIb0B29SoIa','v2fYBMLUzW','C3rVCMfNzurPCG','DxrTx3rLCM0','ygbGANnVBGO','Dg9VBfjLC3vSDhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Dgv4DerVy3vTzw50l2HVDMvY','ywjVCNq','zxf1ywXZ','BgL0zxjHBa','ienHDxnLoIa','AgfUzgXL','C3rKzxjY','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','C2vYDMvYswq','A2v5yMLUzgLUz3m','yxjNDw1LBNrZ','Aw1Hz2uVCg5N','tM8GBg9JyxrPB25ZigzVDw5K','ChvIBgLZAgvKqxq','uhvIBgLZAgvKoIa','zw51Bq','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','C3rKAw4','A2LSBgvK','yMLUyxj5tMfTzq','yxr0CG','y29TCgXLDgvK','zNjVBq','CNvUswq','y29TBwfUzhm','BgLZDgvU','l3vZCI9IAw4VC2G','BwnFy2LK','DgLTzvTKyxrLDgLTzv0','AhjLzG','Cgf0Aa','zMLUywXnzxnZywDLvgv4Da','Cgf0DgvYBG','CMvSyxrPDMu','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','AwDUB3jL','C3bHD24','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','Aw5PDgLHBgL6yxrPB24','C2HPzNq','C2v2zxjPDhK','AM9PBG','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','CgXHAw4','y2f0y2G','CgfYC2u','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','B2zM','yNL0zuXLBMD0Aa','nJG4t1jMDvr5','igj5DgvZ','ChjVy2vZCW','y29UBMvJDgvK','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CgLWzq','A2LUza','C3rYAxbbBNnP','B3v0z29PBMDdywXSCW','yxnJAwK','C2nVCgvZ','B2XKvgv4Da','zgv0ywLS','Bg9JyxrPB24','BgLUzq'];_0x2b52=function(){return _0x7731c6;};return _0x2b52();}import{readdir as _0x5bfac4,readFile as _0x1eb218}from'fs/promises';import{join as _0x2eebe0,relative as _0xba1cbe,sep}from'path';import{delimiter}from'path';import{mkdir as _0x27d392,rm,stat as _0x2adb74,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x40ce6a}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x49edbb,rename,writeFile as _0x2f7625}from'fs/promises';import{homedir}from'os';import{dirname as _0x127e07,isAbsolute as _0x37dd8d,join as _0x1c5e10,resolve as _0x5b6cea}from'path';import{parse as _0xb5eb3b,stringify as _0x59169c}from'yaml';import{z}from'zod';import{cp,mkdir as _0x3f096e,readFile as _0x5a4791,rm as _0xa9b62a,writeFile as _0x573f37}from'fs/promises';import{homedir as _0x270127}from'os';import{join as _0x1f1df7}from'path';import{parse as _0x3193c7,stringify as _0x146fbc}from'yaml';import{readdir as _0x1007aa,readFile as _0x4f74fb}from'fs/promises';import{join as _0x45100c}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x1cf7e9){const _0x26c93f={_0x2ab5ae:0x6f0,_0x1b5703:0x63f,_0x5c1c41:0x64f,_0x35d7be:0x656,_0x394902:0x3bd,_0x20e1c6:0x26b,_0x777c6c:0x753,_0x5ccf69:0x59b,_0xe1628e:0x63f,_0x25b1fb:0x6d7,_0x799e8e:0x65b,_0x36b4c2:0x712,_0x4a7324:0x63b,_0x11d78e:0x52d,_0x46d766:0x2a6},_0x37890a={_0x3bb9bf:0x4f7},_0x5860de={_0x5882c4:0x9a,_0x339710:0x217};function _0xb41550(_0x148254,_0x30585a,_0x3d989f,_0x13d02a){return _0x173565(_0x148254-0x187,_0x30585a-_0x5860de._0x5882c4,_0x30585a,_0x148254-_0x5860de._0x339710);}const _0xe07018=[];function _0x4b407e(_0x38686a,_0x4bf733,_0x4bc7d7,_0x307bdf){return _0x173565(_0x38686a-0x1be,_0x4bf733-0x11b,_0x307bdf,_0x4bf733-_0x37890a._0x3bb9bf);}let _0x591dc5='',_0x5c9609=0x0;while(_0x5c9609<_0x1cf7e9[_0x4b407e(_0x26c93f._0x2ab5ae,_0x26c93f._0x1b5703,_0x26c93f._0x5c1c41,_0x26c93f._0x35d7be)]){const _0x4a31b4=_0x1cf7e9[_0x5c9609];if(_0x4a31b4==='\x5c'&&_0x5c9609+0x1<_0x1cf7e9[_0xb41550(0x35f,0x2f1,_0x26c93f._0x394902,_0x26c93f._0x20e1c6)])_0x591dc5+=_0x1cf7e9[_0x5c9609+0x1],_0x5c9609+=0x2;else{if(_0x4a31b4==='\x22'||_0x4a31b4==='\x27'){const _0x580922=_0x4a31b4;_0x5c9609++;while(_0x5c9609<_0x1cf7e9[_0x4b407e(_0x26c93f._0x777c6c,_0x26c93f._0x1b5703,0x56d,0x646)]&&_0x1cf7e9[_0x5c9609]!==_0x580922){_0x1cf7e9[_0x5c9609]==='\x5c'&&_0x5c9609+0x1<_0x1cf7e9[_0x4b407e(_0x26c93f._0x5ccf69,_0x26c93f._0xe1628e,0x62c,0x67f)]?(_0x591dc5+=_0x1cf7e9[_0x5c9609+0x1],_0x5c9609+=0x2):(_0x591dc5+=_0x1cf7e9[_0x5c9609],_0x5c9609++);}_0x5c9609++;}else _0x4a31b4!==void 0x0&&/\s/[_0x4b407e(_0x26c93f._0x25b1fb,_0x26c93f._0x799e8e,0x670,_0x26c93f._0x36b4c2)](_0x4a31b4)?(_0x591dc5&&(_0xe07018[_0x4b407e(0x5a6,_0x26c93f._0x4a7324,0x73d,_0x26c93f._0x11d78e)](_0x591dc5),_0x591dc5=''),_0x5c9609++):(_0x591dc5+=_0x4a31b4,_0x5c9609++);}}if(_0x591dc5)_0xe07018[_0xb41550(0x35b,_0x26c93f._0x46d766,0x305,0x435)](_0x591dc5);return _0xe07018;}function renderCommandInstructions(_0x385de2){const _0x4ebccf={_0x39110d:0x1e5,_0x4d7f5e:0xb3,_0x1ee820:0x4ef,_0x3106e2:0x52a,_0x95d601:0x5df,_0x5a2b6e:0x14b,_0x2d6fdc:0x2a3,_0x49731f:0x57b,_0x5f29b8:0x5a9,_0x2455ae:0x207,_0xf8c46b:0x1f8,_0x3f56a4:0x46c,_0x2ed4d3:0x4f4,_0xbe2dfc:0x43d,_0x2f9da8:0x283,_0x548534:0x197,_0x54aa7a:0x34c,_0x35dcb4:0x216,_0x2c541f:0x255,_0x51f678:0x229,_0x5c8b32:0x2c4,_0x8051bc:0x1cf},_0x52ac04={_0x4851eb:0x34},_0x1ef9c7={_0x1c48b4:0x160,_0x260f84:0x127},_0x54cb07={_0x39c327:0x10b};let _0x2c198b=_0x385de2[_0x328db7(0x15d,0x1b4,_0x4ebccf._0x39110d,0xe9)],_0x52f141=![];const _0x10b224=tokenizeCommandArguments(_0x385de2[_0x328db7(0x269,_0x4ebccf._0x4d7f5e,0x197,0x19e)]);function _0x5c8c94(_0x2ecb16,_0x439606,_0x297b67,_0x31dd0f){return _0x255f51(_0x31dd0f- -_0x54cb07._0x39c327,_0x439606-0x5,_0x297b67,_0x31dd0f-0x99);}_0x2c198b=_0x2c198b['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x6f7576,_0x2fd586)=>{return _0x52f141=!![],_0x10b224[Number(_0x2fd586)]??'';}),_0x2c198b=_0x2c198b[_0x328db7(0x1a7,0x22,0xd1,0x1ed)](/\$ARGUMENTS\b/g,()=>{const _0x462d90={_0x2b32ba:0x37,_0x380c19:0x1b};_0x52f141=!![];function _0x4e5469(_0x22b44a,_0x5e51af,_0x30bf61,_0x1210a2){return _0x328db7(_0x5e51af,_0x5e51af-0xe8,_0x30bf61- -_0x462d90._0x2b32ba,_0x1210a2-_0x462d90._0x380c19);}return _0x385de2[_0x4e5469(0x1b0,0x173,_0x1ef9c7._0x1c48b4,_0x1ef9c7._0x260f84)];});function _0x328db7(_0xbf56d,_0x2e10c0,_0xcf54f9,_0x31c967){return _0x255f51(_0xcf54f9- -0x57d,_0x2e10c0-_0x52ac04._0x4851eb,_0xbf56d,_0x31c967-0x8c);}if(_0x385de2['argumentNames']&&_0x385de2['argumentNames'][_0x5c8c94(_0x4ebccf._0x1ee820,_0x4ebccf._0x3106e2,_0x4ebccf._0x95d601,0x5a9)]>0x0)for(let _0x1de3a3=0x0;_0x1de3a3<_0x385de2[_0x328db7(_0x4ebccf._0x5a2b6e,_0x4ebccf._0x2d6fdc,0x1b3,0xc2)][_0x5c8c94(0x591,_0x4ebccf._0x49731f,0x4e7,_0x4ebccf._0x5f29b8)];_0x1de3a3++){const _0x4d4933=_0x385de2[_0x328db7(_0x4ebccf._0x2455ae,0x1ee,0x1b3,_0x4ebccf._0xf8c46b)][_0x1de3a3];if(_0x4d4933){const _0x41d73f=new RegExp('\x5c$'+_0x4d4933+'\x5cb','g');_0x2c198b=_0x2c198b[_0x5c8c94(0x462,_0x4ebccf._0x3f56a4,_0x4ebccf._0x2ed4d3,0x543)](_0x41d73f,()=>{return _0x52f141=!![],_0x10b224[_0x1de3a3]??'';});}}return _0x2c198b=_0x2c198b[_0x5c8c94(0x5e3,_0x4ebccf._0xbe2dfc,0x44b,0x543)](/\$(\d+)\b/g,(_0x491f9b,_0x3d6bb6)=>{return _0x52f141=!![],_0x10b224[Number(_0x3d6bb6)]??'';}),!_0x52f141&&_0x385de2[_0x328db7(0x294,_0x4ebccf._0x2f9da8,_0x4ebccf._0x548534,0x18c)][_0x5c8c94(0x438,0x359,_0x4ebccf._0x54aa7a,0x446)]()&&(_0x2c198b=_0x2c198b+_0x328db7(0x226,0x190,_0x4ebccf._0x35dcb4,_0x4ebccf._0x2c541f)+_0x385de2[_0x328db7(_0x4ebccf._0x51f678,_0x4ebccf._0x5c8b32,_0x4ebccf._0x548534,_0x4ebccf._0x8051bc)]),_0x2c198b;}var chatModelAuthSchemeSchema=z[_0x173565(0xa2,-0x1e,-0xba,0x6a)]([_0x173565(0x1e2,0x97,0x2bd,0x1c0),_0x255f51(0x60c,0x6bf,0x5bc,0x4f2)]),apiKeyAuthSchema=z[_0x173565(0x1f3,0x1a1,0x125,0xf1)]({'type':z[_0x255f51(0x5ca,0x6ee,0x69c,0x4c8)](_0x255f51(0x62b,0x6eb,0x6e1,0x668)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x173565(0x1a8,0xbc,0x5,0xef)]()})[_0x255f51(0x597,0x6ad,0x576,0x52f)](),oauthAuthSchema=z[_0x173565(-0x19,-0x17,0xeb,0xf1)]({'type':z['literal']('oauth'),'access':z[_0x255f51(0x6bf,0x798,0x7bf,0x606)](),'refresh':z['string'](),'expires':z['number']()[_0x255f51(0x65b,0x5c4,0x668,0x5ea)](),'authScheme':chatModelAuthSchemeSchema[_0x255f51(0x65b,0x586,0x6c4,0x5ac)]()})[_0x173565(0x78,0xe1,-0xc4,0x2b)](),authMethodSchema=z[_0x255f51(0x69f,0x57c,0x685,0x5eb)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x173565(-0x18,0xe8,-0x17,0xf1)]({'id':z[_0x173565(0x2d,0x221,0x20e,0x153)](),'name':z['string']()[_0x173565(0x85,0x210,0x1a7,0xef)]()})['passthrough'](),modelConfigSchema=z[_0x173565(0x234,0x1fb,0xbb,0x133)]([z[_0x255f51(0x5ca,0x4c9,0x6b1,0x667)](![]),z[_0x255f51(0x5ca,0x64e,0x603,0x57b)](!![]),z[_0x255f51(0x6bf,0x70a,0x6f2,0x59d)](),z[_0x255f51(0x70c,0x7c1,0x7e0,0x752)](z[_0x255f51(0x6bf,0x7ac,0x70a,0x5da)]()),z[_0x255f51(0x70c,0x5dd,0x666,0x6e8)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x173565(0x119,-0x24,0x6d,0x6a)]([_0x255f51(0x749,0x6ff,0x7a3,0x7fe),_0x173565(-0x104,0x105,-0xad,-0x2),_0x173565(0x5c,-0x53,-0x1e,0xa2),_0x255f51(0x67e,0x583,0x77d,0x6cf)]),providerConfigSchema=z[_0x255f51(0x65d,0x634,0x57c,0x741)]({'apiKey':z[_0x173565(0x121,0x218,0x1ac,0x153)]()[_0x173565(0x91,0xe2,0x1fe,0xef)](),'token':z[_0x173565(0x27f,0x1ee,0x25c,0x153)]()[_0x255f51(0x65b,0x744,0x532,0x6cf)](),'defaultModel':z['string']()[_0x173565(0x41,0x162,0x125,0xef)](),'smallModel':z[_0x173565(0x245,0x2a,0x7a,0x153)]()[_0x255f51(0x65b,0x553,0x746,0x57f)](),'currentAuth':z['string']()[_0x255f51(0x65b,0x72f,0x59f,0x603)](),'auth':z[_0x255f51(0x70c,0x829,0x608,0x81a)](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x173565(0x6e,-0x16,0x8b,0xef)](),'baseUrl':z[_0x255f51(0x6bf,0x608,0x6a4,0x7be)]()[_0x255f51(0x65b,0x599,0x647,0x5e3)](),'models':modelConfigSchema[_0x173565(0x211,0x96,-0x32,0xef)](),'customHeaders':z[_0x173565(0x18b,0x142,0x32a,0x23a)](z[_0x173565(0x282,0x17a,0x23d,0x153)](),z[_0x173565(0x250,0x192,0xf9,0x153)]())['optional']()})[_0x255f51(0x597,0x5e5,0x5b4,0x6bd)](),mcpServerConfigSchema=z['object']({'command':z[_0x255f51(0x6bf,0x5b1,0x74f,0x5a4)]()[_0x173565(0x21f,0xd0,0x197,0xef)](),'args':z[_0x173565(0x103,0x138,0xd2,0x1a0)](z[_0x255f51(0x6bf,0x76e,0x662,0x5bb)]())['optional'](),'env':z[_0x255f51(0x7a6,0x738,0x828,0x686)](z[_0x255f51(0x6bf,0x657,0x5b3,0x735)](),z[_0x255f51(0x6bf,0x7c2,0x713,0x6d7)]())[_0x173565(0x81,0x140,0x176,0xef)](),'transport':z[_0x173565(-0xbe,-0x54,0x11d,0x6a)]([_0x173565(-0x66,0xaf,-0x3b,0x1c),_0x255f51(0x6c4,0x7b3,0x6a7,0x5aa)])[_0x173565(0x1b1,0xe6,0x155,0xef)](),'url':z[_0x255f51(0x6bf,0x638,0x738,0x6a3)]()['optional'](),'headers':z[_0x173565(0x1fe,0x237,0x21b,0x23a)](z[_0x255f51(0x6bf,0x719,0x5ad,0x7c2)](),z[_0x173565(0x278,0x25d,0x276,0x153)]())[_0x255f51(0x65b,0x55e,0x733,0x5b6)](),'prefix':z[_0x173565(0xf8,0x62,0x12d,0x153)]()[_0x255f51(0x65b,0x68d,0x5c8,0x5f4)](),'timeoutMs':z[_0x173565(-0x57,0x112,0x8,0x9d)]()['optional'](),'enabled':z[_0x255f51(0x6bc,0x7c3,0x66b,0x5a0)]()[_0x255f51(0x65b,0x590,0x6ab,0x5e1)](),'auth':z[_0x173565(0x1bc,0x172,0x138,0xf1)]({'type':z[_0x255f51(0x5d6,0x6f2,0x6b7,0x6c6)](['none',_0x255f51(0x72c,0x7fa,0x60e,0x717),_0x255f51(0x56d,0x4d9,0x467,0x4e1)]),'token':z['string']()[_0x173565(0x2c,0x1e0,0x1e2,0xef)](),'oauth':z[_0x173565(0x1e8,0x8,0x114,0xf1)]({'clientId':z[_0x173565(0x1d7,0x198,0x27e,0x153)]()['optional'](),'clientMetadataUrl':z[_0x255f51(0x6bf,0x5b9,0x5b1,0x747)]()['optional'](),'authorizationServer':z[_0x255f51(0x6bf,0x714,0x7e6,0x6f2)]()[_0x255f51(0x65b,0x5a0,0x6c7,0x651)](),'scopes':z['array'](z[_0x173565(0x113,0x18e,0xad,0x153)]())[_0x173565(-0x1d,0x135,0x219,0xef)](),'tokenStorageKey':z[_0x255f51(0x6bf,0x7ab,0x5c1,0x6fa)]()[_0x255f51(0x65b,0x771,0x691,0x610)]()})[_0x255f51(0x597,0x597,0x5fd,0x66f)]()[_0x255f51(0x65b,0x613,0x56b,0x779)]()})[_0x255f51(0x597,0x498,0x51d,0x56b)]()[_0x255f51(0x65b,0x723,0x56b,0x78a)]()})[_0x255f51(0x597,0x4b9,0x67b,0x60a)](),mcpSettingsSchema=z['object']({'servers':z['record'](z[_0x255f51(0x6bf,0x7cb,0x731,0x64d)](),mcpServerConfigSchema)[_0x173565(0x173,0xb9,0x3,0xef)](),'allowedTools':z[_0x255f51(0x7a6,0x792,0x788,0x6b2)](z[_0x255f51(0x6bf,0x6b6,0x758,0x7c6)](),z[_0x255f51(0x7a6,0x6e4,0x827,0x754)](z[_0x173565(0x18c,0x6a,0x5f,0x153)](),z[_0x173565(0x9f,0x4b,0x256,0x150)]()))[_0x255f51(0x65b,0x6d8,0x59c,0x52e)](),'defaultTimeoutMs':z['number']()[_0x173565(0x1b5,0x1a9,0x93,0xef)]()})[_0x173565(-0x6b,0x14c,0x38,0x2b)](),skillsSettingsSchema=z[_0x255f51(0x65d,0x64e,0x6b8,0x5c3)]({'enabled':z[_0x173565(0xf3,0x22e,0x87,0x150)]()['optional'](),'includeDefaults':z[_0x173565(0x91,0x109,0x33,0x150)]()[_0x255f51(0x65b,0x71f,0x5fc,0x73b)](),'directories':z['array'](z['string']())[_0x173565(0x190,-0x38,0x1c8,0xef)](),'exclude':z[_0x255f51(0x70c,0x6cc,0x6a9,0x78e)](z[_0x255f51(0x6bf,0x6a2,0x7d0,0x722)]())['optional']()})[_0x173565(-0x21,0xef,0x63,0x2b)](),commandsSettingsSchema=z['object']({'enabled':z['boolean']()[_0x173565(0xe6,0xf,-0x4,0xef)](),'directories':z[_0x255f51(0x70c,0x608,0x7e5,0x7b6)](z[_0x255f51(0x6bf,0x5e5,0x681,0x637)]())[_0x255f51(0x65b,0x63d,0x67a,0x56f)]()})[_0x255f51(0x597,0x549,0x49c,0x5c4)](),agentsSettingsSchema=z[_0x255f51(0x65d,0x670,0x5a2,0x70a)]({'enabled':z[_0x173565(0xb2,0x1ec,0xb5,0x150)]()[_0x173565(0x1e5,0x1ac,0x1b8,0xef)](),'includeDefaults':z[_0x173565(0x261,0x98,0x3a,0x150)]()[_0x173565(0x145,0x1ac,0x1f7,0xef)](),'directories':z[_0x255f51(0x70c,0x692,0x617,0x815)](z['string']())[_0x255f51(0x65b,0x69d,0x738,0x53c)]()})[_0x255f51(0x597,0x4de,0x65d,0x641)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x173565(-0x2f,-0x44,0xdc,0x6a)]([_0x255f51(0x753,0x625,0x6c2,0x820),'dark',_0x173565(0xa1,0x8a,0x8e,0xc4)])['optional'](),'colorLevel':z[_0x173565(0xdf,0x17,-0x5a,0x6a)](['auto','none','ansi16','ansi256','truecolor'])[_0x173565(0xa6,0xd5,0xbd,0xef)](),'backgrounds':z[_0x255f51(0x5d6,0x4f6,0x6da,0x579)]([_0x173565(0x25e,0x315,0x2e6,0x1e7),'on','off'])[_0x173565(-0x30,0x110,0x13c,0xef)](),'messageStyle':z[_0x173565(0x2b,0x8a,-0x1a,0x6a)]([_0x255f51(0x5f2,0x508,0x5c6,0x6dd),_0x173565(0x173,0x2b6,0x24f,0x217)])[_0x173565(0x21,0xb2,0x2b,0xef)]()})['passthrough'](),statuslineSegmentSchema=z[_0x173565(-0xa3,0x6b,-0xa2,0x6a)]([_0x255f51(0x584,0x679,0x5c9,0x482),'session','thinking',_0x173565(0x1ba,0x8c,-0x2d,0xc8),_0x173565(0x15f,0x26f,0x8d,0x15d),_0x255f51(0x61f,0x61f,0x55f,0x68d),'cached',_0x255f51(0x571,0x4ad,0x59e,0x54f),'tools',_0x255f51(0x76e,0x741,0x809,0x68b),_0x255f51(0x576,0x4e8,0x620,0x5d1),_0x173565(0x242,0xf1,0x22e,0x160),_0x173565(0xbf,0x122,0x65,0x64),_0x173565(0x179,-0x6,0x16b,0xbb),_0x255f51(0x7af,0x6ef,0x82d,0x845)]),statuslineItemSchema=z['union']([statuslineSegmentSchema,z[_0x173565(0x18,0xed,0x123,0x5e)]('|')]),statuslineRowSchema=z[_0x255f51(0x70c,0x74b,0x703,0x6aa)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x255f51(0x6b2,0x75e,0x64c,0x60e)]([statuslineRowSchema,statuslineRowSchema])[_0x173565(0xa7,0x9c,0x198,0xef)]()})[_0x255f51(0x597,0x6ba,0x5da,0x58d)](),memorySettingsSchema=z[_0x255f51(0x65d,0x5f1,0x628,0x5ce)]({'version':z[_0x255f51(0x5ca,0x683,0x6a2,0x4f9)](0x2)[_0x255f51(0x65b,0x628,0x5ea,0x596)](),'retrieval':z[_0x255f51(0x65d,0x530,0x74d,0x66b)]({'engine':z[_0x255f51(0x5ca,0x6f1,0x698,0x50d)](_0x255f51(0x614,0x666,0x52c,0x73d))[_0x255f51(0x65b,0x646,0x748,0x622)](),'candidateLimit':z['number']()[_0x173565(0xf6,0x43,-0x3d,0xef)](),'activeCandidateLimit':z[_0x173565(0x40,-0x51,0x70,0x9d)]()[_0x255f51(0x65b,0x533,0x53a,0x5a3)](),'activeEnabled':z[_0x255f51(0x6bc,0x7e3,0x640,0x5d1)]()[_0x255f51(0x65b,0x636,0x646,0x5b8)](),'maxQueriesPerTurn':z[_0x173565(0x120,-0x4d,0x15f,0x9d)]()['optional'](),'coreInjectTokenBudget':z[_0x255f51(0x609,0x592,0x5e1,0x586)]()[_0x173565(-0x31,0x2b,0x1b1,0xef)](),'injectTokenBudget':z['number']()[_0x173565(0x5e,0x215,0x197,0xef)](),'minScore':z[_0x255f51(0x609,0x673,0x589,0x6dc)]()['optional'](),'freshnessHalfLifeDays':z[_0x255f51(0x609,0x66e,0x667,0x587)]()[_0x255f51(0x65b,0x552,0x6b4,0x604)]()})[_0x173565(0x5,0x2f,-0xf,0x2b)]()[_0x255f51(0x65b,0x76f,0x54b,0x780)](),'extraction':z[_0x173565(0x39,0x21e,0x50,0xf1)]({'enabled':z['boolean']()[_0x255f51(0x65b,0x651,0x580,0x573)](),'provider':z['string']()[_0x173565(0x1d7,0x190,0x206,0xef)](),'model':z[_0x173565(0x205,0x1ad,0x194,0x153)]()['optional'](),'sensitiveFilter':z['boolean']()[_0x255f51(0x65b,0x6d0,0x632,0x71a)]()})[_0x173565(0x118,-0x1e,-0xd4,0x2b)]()['optional'](),'index':z[_0x255f51(0x65d,0x5b7,0x6f1,0x718)]({'persisted':z[_0x173565(0x214,0x256,0x85,0x150)]()[_0x255f51(0x65b,0x775,0x657,0x55e)](),'flushIntervalMs':z[_0x255f51(0x609,0x5a1,0x6cc,0x6f9)]()['optional']()})[_0x255f51(0x597,0x606,0x49a,0x512)]()[_0x173565(0x1cd,0x104,0x1e1,0xef)](),'enabled':z[_0x255f51(0x6bc,0x5e2,0x700,0x61a)]()['optional'](),'saveTool':z[_0x255f51(0x6bc,0x72c,0x748,0x5a1)]()[_0x255f51(0x65b,0x779,0x773,0x769)](),'model':z[_0x255f51(0x6bf,0x7d2,0x5bc,0x65b)]()['optional'](),'provider':z[_0x255f51(0x6bf,0x5e3,0x677,0x7b4)]()[_0x255f51(0x65b,0x692,0x5a2,0x657)](),'maxInjectionTokens':z[_0x255f51(0x609,0x659,0x714,0x5f0)]()['optional'](),'backgroundExtraction':z[_0x255f51(0x6bc,0x689,0x59c,0x5fe)]()[_0x255f51(0x65b,0x643,0x559,0x6f7)]()})['passthrough'](),recentModelSchema=z[_0x173565(0xa9,0x15c,0xa9,0xf1)]({'provider':z[_0x173565(0x265,0x131,0xbe,0x153)](),'model':z[_0x173565(0xf1,0x240,0x17c,0x153)](),'usedAt':z[_0x173565(0x193,0x11,0x18c,0x9d)]()})[_0x255f51(0x597,0x632,0x55b,0x54e)](),lspServerEntrySchema=z[_0x173565(0x9c,0x11d,0xaf,0xf1)]({'disabled':z[_0x255f51(0x6bc,0x747,0x5ec,0x5de)]()[_0x255f51(0x65b,0x719,0x566,0x5f2)](),'command':z[_0x255f51(0x6bf,0x7b2,0x670,0x70e)]()['optional'](),'args':z[_0x255f51(0x70c,0x770,0x691,0x64e)](z[_0x255f51(0x6bf,0x6a5,0x6d7,0x5d0)]())['optional'](),'rootMarkers':z[_0x173565(0x22a,0x251,0x1a1,0x1a0)](z[_0x173565(0x276,0x1de,0x50,0x153)]())[_0x173565(0x148,0x5f,0x1e6,0xef)]()})[_0x255f51(0x597,0x4ca,0x5cf,0x6ad)](),lspConfigSchema=z['object']({'enabled':z[_0x255f51(0x6bc,0x6c0,0x696,0x5e7)]()[_0x255f51(0x65b,0x5d0,0x5d7,0x565)](),'servers':z[_0x173565(0x1f8,0x359,0x369,0x23a)](z[_0x173565(0x112,0x276,0x229,0x153)](),lspServerEntrySchema)[_0x255f51(0x65b,0x59d,0x66c,0x6e2)]()})['passthrough'](),cliConfigSchema=z['object']({'activeProvider':z[_0x173565(0x146,0x201,0x181,0x153)]()[_0x173565(0xeb,0x1a6,0x5f,0xef)](),'activeModel':z[_0x255f51(0x6bf,0x66b,0x689,0x70e)]()[_0x173565(0x16a,0x10d,0xf6,0xef)](),'apiKey':z[_0x173565(0x17e,0x78,0x169,0x153)]()[_0x255f51(0x65b,0x6b0,0x73e,0x5bc)](),'providers':z[_0x255f51(0x7a6,0x704,0x821,0x88c)](z[_0x255f51(0x6bf,0x75c,0x7a9,0x792)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x255f51(0x65b,0x741,0x632,0x641)](),'agents':agentsSettingsSchema[_0x173565(-0x30,0xd0,0x180,0xef)](),'commands':commandsSettingsSchema[_0x255f51(0x65b,0x5d3,0x76e,0x5eb)](),'skillsEnabled':z[_0x255f51(0x7a6,0x800,0x6a0,0x754)](z[_0x255f51(0x6bf,0x70b,0x5be,0x663)](),z['boolean']())[_0x173565(0x1de,0xa8,0xff,0xef)](),'memory':memorySettingsSchema[_0x173565(0x46,0x1fe,0x90,0xef)](),'session':z[_0x255f51(0x65d,0x59d,0x716,0x6f9)]({'memPersist':z['boolean']()[_0x255f51(0x65b,0x779,0x69c,0x65c)](),'persistEventLog':z[_0x173565(0xd9,0x1e5,0x15f,0x150)]()[_0x173565(0x150,0x11c,0x1f2,0xef)](),'persistHttpLog':z[_0x255f51(0x6bc,0x7c3,0x6a9,0x66b)]()[_0x173565(0x184,0x199,0x11a,0xef)]()})['passthrough']()[_0x173565(0x1de,0xe4,-0x11,0xef)](),'requireToolApproval':z['boolean']()[_0x255f51(0x65b,0x6e9,0x77b,0x56c)](),'thinking':z[_0x255f51(0x5d6,0x601,0x555,0x597)]([_0x173565(0x1bb,0x28f,0x24e,0x20b),_0x173565(0x16,0x194,0x40,0xbd),'MEDIUM',_0x255f51(0x739,0x6d3,0x791,0x799)])['optional'](),'streamingChunks':z[_0x255f51(0x6bc,0x7c9,0x5e6,0x6c7)]()[_0x255f51(0x65b,0x5d2,0x6ee,0x78a)](),'agentsEnabled':z[_0x173565(0x35f,0x209,0x2a5,0x23a)](z['string'](),z[_0x173565(0x1b4,0x240,0x77,0x150)]())[_0x173565(0x15e,0x1c2,0x158,0xef)](),'recentModels':z[_0x255f51(0x70c,0x76f,0x61a,0x78e)](recentModelSchema)[_0x255f51(0x65b,0x5e3,0x78a,0x632)](),'lsp':lspConfigSchema[_0x255f51(0x65b,0x6fe,0x6c2,0x69e)](),'ui':z[_0x255f51(0x65d,0x6d2,0x77b,0x63f)]({'theme':uiThemeSettingsSchema[_0x255f51(0x65b,0x6e0,0x6b1,0x624)](),'statusline':statuslineConfigSchema[_0x255f51(0x65b,0x5bb,0x620,0x73e)]()})[_0x255f51(0x597,0x66e,0x5f9,0x6a1)]()[_0x255f51(0x65b,0x70a,0x5e5,0x777)](),'tools':z[_0x173565(0x35f,0x11e,0x15f,0x23a)](z[_0x173565(0x239,0x17b,0x217,0x153)](),z[_0x173565(0x306,0x1c8,0x11f,0x1ec)]())['optional']()})[_0x255f51(0x597,0x4b5,0x5f2,0x4c7)]();function buildDescription(_0x4f1995){const _0x35f3c4={_0x4bb35e:0x153,_0xb0d5fe:0x2da,_0x200339:0x36,_0x56ce6b:0x82,_0x4d8fe7:0xaa,_0x26e82c:0x4b,_0x25abf1:0xe2,_0x3a3e34:0x1a9,_0x2e991f:0x49,_0x19560c:0xcd,_0x10cde8:0xe0,_0x2bfb42:0x4b,_0x575c57:0x182,_0x3b8bb3:0xd5,_0x1013e5:0x220,_0x4af3c0:0x122},_0x48393b={_0x8e3d91:0x4d9},_0x428e4d={_0x192950:0xf7};if(_0x4f1995[_0x40c007(_0x35f3c4._0x4bb35e,_0x35f3c4._0xb0d5fe,0x1db,0x26d)]===0x0)return['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x23bd81(_0x35f3c4._0x200339,_0x35f3c4._0x56ce6b,_0x35f3c4._0x4d8fe7,_0x35f3c4._0x26e82c),_0x23bd81(0x195,_0x35f3c4._0x25abf1,_0x35f3c4._0x3a3e34,0x1f3)]['join']('\x0a');function _0x23bd81(_0x1a661c,_0x3b739a,_0x22a218,_0x51054d){return _0x173565(_0x1a661c-0x14d,_0x3b739a-_0x428e4d._0x192950,_0x22a218,_0x51054d-0x5c);}const _0x480b7f=[_0x23bd81(0x99,_0x35f3c4._0x2e991f,0x1fa,0x127),_0x23bd81(-_0x35f3c4._0x19560c,-0xbf,_0x35f3c4._0x10cde8,_0x35f3c4._0x2bfb42),_0x23bd81(0x25d,_0x35f3c4._0x575c57,0x92,0x19e),..._0x4f1995[_0x40c007(0x127,0x55,_0x35f3c4._0x3b8bb3,-0x18)](_0x1c04a2=>_0x1c04a2[_0x23bd81(0x45,0xb3,0xc1,0x9b)]?'-\x20'+_0x1c04a2[_0x23bd81(0x2e5,0x2bd,0x112,0x202)]+'\x20'+_0x1c04a2[_0x23bd81(0x1b2,0xdd,-0x8f,0x9b)]+':\x20'+_0x1c04a2[_0x23bd81(0x184,0x297,0x33d,0x23f)]:'-\x20'+_0x1c04a2[_0x23bd81(0xda,0x2bb,0x178,0x202)]+':\x20'+_0x1c04a2[_0x40c007(0x360,0x2ab,0x276,0x252)])];function _0x40c007(_0x5e2d58,_0x45ffc5,_0x45a4fa,_0x278cc8){return _0x255f51(_0x45a4fa- -_0x48393b._0x8e3d91,_0x45ffc5-0x51,_0x5e2d58,_0x278cc8-0x146);}return _0x480b7f[_0x40c007(_0x35f3c4._0x1013e5,0x1e6,0x117,_0x35f3c4._0x4af3c0)]('\x0a');}function createInvokeCommandTool(_0x551514){const _0x22800a={_0x2d81f3:0x521,_0x362872:0x44b,_0xe947ad:0x500,_0x3f62a4:0x3c8,_0x1c5205:0x300,_0x23fdf7:0x5b1,_0x36d5f0:0x3f2,_0x2060bf:0x452},_0x494b0b={_0x48b5ec:0x65d,_0x5f398e:0x6e,_0x3f8648:0x5b,_0x2f9489:0x83,_0x20ca57:0x64,_0x432193:0x519,_0xb126ca:0x652,_0x240db4:0x83d,_0x22429d:0x777,_0x6d6c8f:0x812,_0xc72c5e:0x77a,_0x26f8ed:0x1f,_0x403556:0x7b,_0x57fc57:0xf2,_0x383d1e:0x76e,_0x2a0842:0x8a0,_0x1058ec:0x7ca,_0x153d9b:0x55c,_0x38730e:0x639,_0x36dd75:0x99,_0x2d6774:0x3a,_0x2a3e5c:0x1c5},_0x46b2d1={_0x236c58:0x84},_0x4cb957={_0x152c0d:0xfd,_0x2fb11f:0x409};function _0x51baef(_0x191d75,_0x429d7b,_0x1ce10a,_0x352494){return _0x173565(_0x191d75-_0x4cb957._0x152c0d,_0x429d7b-0xc4,_0x352494,_0x429d7b-_0x4cb957._0x2fb11f);}function _0x162547(_0x2cdbd5,_0x17b7a0,_0x4d89fd,_0x3a1398){return _0x255f51(_0x17b7a0- -0x35d,_0x17b7a0-0xab,_0x3a1398,_0x3a1398-0x12d);}const _0x391cdd=new Map(_0x551514['commands'][_0x51baef(_0x22800a._0x2d81f3,_0x22800a._0x362872,_0x22800a._0xe947ad,0x4a6)](_0x27ccaf=>[_0x27ccaf['id'],_0x27ccaf])),_0x4252be=buildDescription(_0x551514[_0x51baef(0x434,0x47c,0x4b2,0x371)]);return defineTool({'name':'InvokeCommand','description':_0x4252be,'inputSchema':{'type':_0x162547(_0x22800a._0x3f62a4,_0x22800a._0x1c5205,0x280,0x259),'properties':{'name':{'type':'string'},'args':{'type':_0x51baef(_0x22800a._0x23fdf7,0x55c,0x46b,0x5c6)}},'required':[_0x162547(_0x22800a._0x36d5f0,0x3b5,_0x22800a._0x2060bf,0x2c7)]},async *'execute'(_0x423857){const _0x23b544={_0x332c38:0x516,_0x5afa41:0x3a},_0xc74f09=_0x391cdd['get'](_0x423857[_0x349b8b(0x81c,0x66d,_0x494b0b._0x48b5ec,0x77a)]);if(!_0xc74f09){const _0x3ee1a1=Array['from'](_0x391cdd['keys']())[_0x2e42fa(-0x89,0x12,-_0x494b0b._0x5f398e,-0x81)](',\x20');throw new ToolExecutionError(_0x2e42fa(-_0x494b0b._0x3f8648,-0x154,_0x494b0b._0x2f9489,_0x494b0b._0x20ca57)+_0x423857[_0x349b8b(0x804,0x6b7,0x88e,0x77a)]+_0x349b8b(_0x494b0b._0x432193,_0x494b0b._0xb126ca,0x5a0,0x62e)+_0x3ee1a1,{'name':_0x423857[_0x349b8b(_0x494b0b._0x240db4,_0x494b0b._0x22429d,_0x494b0b._0x6d6c8f,_0x494b0b._0xc72c5e)]});}const _0x5bd588=await _0x551514['loadCommand'](_0xc74f09);function _0x349b8b(_0x243ac9,_0x5f19d8,_0x1e1c84,_0x1e76c){return _0x51baef(_0x243ac9-_0x46b2d1._0x236c58,_0x1e76c-0x1cb,_0x1e1c84-0x112,_0x1e1c84);}const _0x11828e=_0x423857[_0x2e42fa(-_0x494b0b._0x26f8ed,-_0x494b0b._0x403556,-_0x494b0b._0x57fc57,0x21)]??'';function _0x2e42fa(_0x4aa203,_0x5bffd1,_0x51f26e,_0xd7cb74){return _0x51baef(_0x4aa203-0x15b,_0x4aa203- -_0x23b544._0x332c38,_0x51f26e-_0x23b544._0x5afa41,_0x51f26e);}const _0xaf45c1=renderCommandInstructions({'instructions':_0x5bd588[_0x349b8b(_0x494b0b._0x383d1e,0x7c2,_0x494b0b._0x2a0842,_0x494b0b._0x1058ec)],'argumentsText':_0x11828e,'argumentNames':_0x5bd588[_0x349b8b(_0x494b0b._0x153d9b,0x567,0x730,_0x494b0b._0x38730e)]});return yield createToolOutput(_0xaf45c1,{'id':_0x5bd588['id'],'name':_0x5bd588[_0x2e42fa(_0x494b0b._0x36dd75,_0x494b0b._0x2d6774,0xf9,_0x494b0b._0x2a3e5c)],'path':_0xc74f09['source'][_0x349b8b(0x598,0x6ab,0x688,0x64d)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x549d7c,rename as _0x6833dd,stat as _0xf55b11,writeFile as _0x283ee6}from'fs/promises';import*as _0x51375b from'path';function detectEol(_0x4edc76){const _0x336c6e={_0x9e2e13:0x274,_0x16b24d:0x4a6,_0x4d6d1e:0x37b,_0xc5e7d4:0x3a3},_0x70d1e6={_0x398877:0x1f7,_0x8816b0:0x1e},_0x591885={_0x4bfbf4:0x3ac,_0x23a9ff:0x1a6};function _0x42104d(_0x160a24,_0x1e5234,_0x5265e5,_0x1feed9){return _0x255f51(_0x1e5234- -_0x591885._0x4bfbf4,_0x1e5234-0x176,_0x5265e5,_0x1feed9-_0x591885._0x23a9ff);}function _0x30634d(_0x501b8b,_0xa4b708,_0x400e98,_0x23e8da){return _0x255f51(_0xa4b708- -_0x70d1e6._0x398877,_0xa4b708-0x19d,_0x501b8b,_0x23e8da-_0x70d1e6._0x8816b0);}return/\r\n/[_0x42104d(_0x336c6e._0x9e2e13,0x324,0x35e,0x275)](_0x4edc76[_0x30634d(_0x336c6e._0x16b24d,0x3bc,_0x336c6e._0x4d6d1e,_0x336c6e._0xc5e7d4)]('utf8'))?'crlf':'lf';}function normalizeToLf(_0x58f38d){const _0x4deba6={_0xef437e:0x20d,_0x397770:0x271},_0x11141d={_0x151349:0x441,_0x145be3:0x133};function _0x26de92(_0x4322d1,_0x440149,_0x209a68,_0x12f816){return _0x255f51(_0x209a68- -_0x11141d._0x151349,_0x440149-0xe6,_0x4322d1,_0x12f816-_0x11141d._0x145be3);}return _0x58f38d[_0x26de92(0x320,0x227,_0x4deba6._0xef437e,_0x4deba6._0x397770)](/\r\n/g,'\x0a');}function convertEol(_0x14af41,_0xcc1e21){const _0x34c541={_0x20fd6b:0xd,_0x148abc:0x66,_0x4bc1a9:0x11a,_0x382b75:0x30,_0x35b329:0x37c,_0x27c0f4:0x41c,_0x1bc10d:0x3a2},_0x4d0aa2={_0x10774e:0xd4,_0x55ffa1:0x1cb};function _0x178696(_0x3c8fad,_0x11c6c5,_0x27164e,_0x3344dd){return _0x173565(_0x3c8fad-_0x4d0aa2._0x10774e,_0x11c6c5-0x1e6,_0x27164e,_0x3c8fad- -_0x4d0aa2._0x55ffa1);}function _0xdd4445(_0x389730,_0x18c3f7,_0x35f8d8,_0x33e1d2){return _0x255f51(_0x18c3f7- -0x2d2,_0x18c3f7-0xf5,_0x33e1d2,_0x33e1d2-0x1e5);}return _0xcc1e21===_0x178696(-_0x34c541._0x20fd6b,_0x34c541._0x148abc,-_0x34c541._0x4bc1a9,-_0x34c541._0x382b75)?_0x14af41[_0xdd4445(0x2d8,_0x34c541._0x35b329,_0x34c541._0x27c0f4,_0x34c541._0x1bc10d)](/\n/g,'\x0d\x0a'):_0x14af41;}async function atomicWrite(_0x462313,_0xcec7f1){const _0xf22d0b={_0x3257ac:0x58a,_0x23685f:0x643,_0xabeec5:0x393,_0x1953b5:0x46d,_0x17bc5a:0x435,_0x22bb42:0x6c5,_0x3eaa9f:0x4c4,_0x509b61:0x3f8,_0x415bf2:0x2d2,_0x3003f1:0x27b},_0x1f6a6e={_0x164d6e:0x172,_0x416b27:0xe6},_0x33b6e3={_0x1d8ac3:0xc8};function _0x4d44ff(_0x3df75a,_0x2cf1ed,_0x9d45,_0x4c1a52){return _0x173565(_0x3df75a-_0x33b6e3._0x1d8ac3,_0x2cf1ed-0x1d,_0x4c1a52,_0x3df75a-0x28b);}const _0x26d788=_0x51375b[_0x42fbae(0x5e7,0x6d0,_0xf22d0b._0x3257ac,_0xf22d0b._0x23685f)](_0x462313),_0x3edf81=_0x51375b[_0x4d44ff(0x30f,_0xf22d0b._0xabeec5,0x364,0x3a8)](_0x26d788,_0x4d44ff(0x4c7,_0xf22d0b._0x1953b5,0x5ec,_0xf22d0b._0x17bc5a)+_0x51375b['basename'](_0x462313)+'.'+Date[_0x42fbae(0x695,0x67b,0x625,_0xf22d0b._0x22bb42)]()+'.'+Math[_0x4d44ff(_0xf22d0b._0x3eaa9f,0x53a,0x404,_0xf22d0b._0x509b61)]()[_0x4d44ff(_0xf22d0b._0x415bf2,0x388,_0xf22d0b._0x3003f1,0x203)](0x24)['slice'](0x2));function _0x42fbae(_0x5df7e7,_0x5e33ba,_0x4e1382,_0xa0f1ea){return _0x173565(_0x5df7e7-_0x1f6a6e._0x164d6e,_0x5e33ba-_0x1f6a6e._0x416b27,_0x5e33ba,_0x5df7e7-0x5a3);}await _0x283ee6(_0x3edf81,_0xcec7f1),await _0x6833dd(_0x3edf81,_0x462313);}function sha256(_0xd68fd0){const _0x1598c6={_0x50105b:0x267,_0x4d12e5:0x41a,_0x37a260:0x1e1,_0x5d6d0c:0x113,_0x33e8bb:0x194,_0x572bd4:0x125},_0x5dc467={_0x170ed0:0x176};function _0x1534d3(_0x26c7c4,_0x31fae2,_0x48b7d1,_0x4aca7f){return _0x255f51(_0x48b7d1- -0x15f,_0x31fae2-0x5a,_0x4aca7f,_0x4aca7f-_0x5dc467._0x170ed0);}function _0x28e7ce(_0x21347b,_0x429ffe,_0x383fd5,_0x33efd9){return _0x173565(_0x21347b-0x57,_0x429ffe-0x188,_0x383fd5,_0x33efd9-0xdc);}return createHash(_0x28e7ce(0x26e,0x156,_0x1598c6._0x50105b,0x21f))[_0x1534d3(0x4d0,0x467,_0x1598c6._0x4d12e5,0x460)](_0xd68fd0)['digest'](_0x28e7ce(_0x1598c6._0x37a260,_0x1598c6._0x5d6d0c,_0x1598c6._0x33e8bb,_0x1598c6._0x572bd4));}function countLines(_0x4d086a){const _0x55b0be={_0x272212:0x491,_0x2bbb91:0x426},_0x269507={_0x3cb859:0x73},_0x5e67f7={_0x3f77f0:0x1ce,_0x1a2061:0x168},_0x2163c4=_0x4d086a[_0x303c3a(0x480,0x598,0x3ba,0x4a7)](/\n$/,'');function _0x303c3a(_0x3287ee,_0x1aed39,_0x3db29b,_0x4877c8){return _0x255f51(_0x3287ee- -_0x5e67f7._0x3f77f0,_0x1aed39-0xa2,_0x1aed39,_0x4877c8-_0x5e67f7._0x1a2061);}function _0x449c14(_0x23bd90,_0x3aea6e,_0x30a9c8,_0x56cbf3){return _0x173565(_0x23bd90-_0x269507._0x3cb859,_0x3aea6e-0x131,_0x3aea6e,_0x30a9c8-0x33f);}return _0x2163c4[_0x303c3a(0x4e6,0x54e,0x47c,_0x55b0be._0x272212)]===0x0?0x0:_0x2163c4[_0x449c14(0x383,0x2d1,0x372,_0x55b0be._0x2bbb91)]('\x0a')['length'];}function calculateLineNumbers(_0xa61945,_0x59b307,_0x451a2e,_0x1fa1d2){const _0x3975a8={_0x2b733:0x4d4,_0x173bf2:0x5bf,_0x1f1fc5:0x564,_0x1adcbe:0x635,_0x4921dc:0x62d,_0x36baa0:0x543},_0x1ff429={_0x119042:0x1cf},_0x52644e={_0x1483ae:0xcb},_0x4a3dfb=_0xa61945['slice'](0x0,_0x1fa1d2)[_0x59c74a(_0x3975a8._0x2b733,0x51a,_0x3975a8._0x173bf2,_0x3975a8._0x1f1fc5)]('\x0a')[_0x59c74a(0x5e9,_0x3975a8._0x1adcbe,_0x3975a8._0x4921dc,_0x3975a8._0x36baa0)];function _0x59c74a(_0xa5d5cc,_0x13ac90,_0x5d0799,_0x58fa19){return _0x255f51(_0xa5d5cc- -_0x52644e._0x1483ae,_0x13ac90-0xd9,_0x13ac90,_0x58fa19-0x23);}const _0x48e13a=countLines(_0x59b307);function _0x37d4aa(_0x4e7d83,_0x1c0c58,_0x37543e,_0x3e528a){return _0x173565(_0x4e7d83-0x1e1,_0x1c0c58-_0x1ff429._0x119042,_0x37543e,_0x3e528a-0x3f8);}const _0x39876a=countLines(_0x451a2e);return{'oldStartLine':_0x4a3dfb,'oldEndLine':_0x4a3dfb+_0x48e13a-0x1,'newStartLine':_0x4a3dfb,'newEndLine':_0x4a3dfb+_0x39876a-0x1,'oldLineCount':_0x48e13a,'newLineCount':_0x39876a};}function createFileEditTool(_0x4b646b={}){const _0x14fb44={_0x7fe6ba:0x2b9,_0x41de2d:0x20f,_0x15c6e2:0x365,_0x5ea718:0x377,_0x557153:0x28a,_0xc9eb9f:0x559,_0x58a0bc:0x4b6,_0x38bef2:0x4ae,_0x1cf4a4:0x3c5,_0x333474:0x1de,_0x4a2577:0x2ef,_0x6f30a:0x2e8,_0x1e32c9:0x394,_0x5a865d:0x30b,_0x5c0f1b:0x37d,_0x2faa24:0x3d3,_0x5b1962:0x372,_0x354cfe:0x509,_0x378785:0x341,_0x5aa8a4:0x3b4,_0x564712:0x29c,_0x4db06e:0x2c6,_0x4b4f9e:0x3ad,_0x122ca5:0x204,_0x3d1ff2:0x3dd,_0x465aea:0x3e9,_0x5f56c3:0x3f8,_0x3f5fcf:0x1dd,_0x4dbde0:0x5ec,_0x483ce8:0x40a,_0x4b0367:0x4bf},_0xd69261={_0x4a79dc:0x408,_0x4a2871:0x2e9,_0x3b6dbe:0x275,_0x459f70:0x165,_0x1e5dc8:0x4f,_0x4186a6:0x1,_0x5f0a8f:0x12c,_0x1fdbfa:0x1e5,_0x392efc:0x6e,_0x173deb:0x163,_0x21d6b8:0x6c,_0xf005a3:0xb2,_0x2918e3:0x25f,_0x22d70:0x382,_0x28bd6a:0x2a8,_0x3b5eff:0x2d2,_0x474878:0x3dd,_0xc1b9ff:0x12a,_0x3f984d:0x273,_0x265757:0x12e,_0x45bf7c:0x21a,_0x34758b:0x7a,_0x5a874d:0x139,_0x196e44:0x2a6,_0x3837aa:0x272,_0x3a37fa:0x366,_0x1f2ba5:0x3d7,_0x49dde8:0x137,_0x5d61a8:0x221,_0x317625:0xe,_0xd91692:0xa9,_0x5d04c5:0x173,_0x232cd7:0x190,_0x34b3c1:0x133,_0x5eb015:0x3e,_0x28ccbc:0x109,_0x19e880:0x233,_0x59100c:0x1e1,_0x513ff4:0x2a6},_0x51dbe0={_0x513a46:0x190},_0x46fee0={_0x226243:0x299},_0x9d7ba7={_0x373999:0x116},_0x459aa0=_0x51375b[_0x42e9c6(0x2ea,_0x14fb44._0x7fe6ba,0x2b6,_0x14fb44._0x41de2d)](_0x4b646b[_0x42e9c6(0x2cb,_0x14fb44._0x15c6e2,_0x14fb44._0x5ea718,_0x14fb44._0x557153)]??process[_0x42e9c6(0x4e8,_0x14fb44._0xc9eb9f,_0x14fb44._0x58a0bc,0x573)]());function _0x48b600(_0x4d1878,_0xc0ed3d,_0x59245f,_0x2dfa78){return _0x255f51(_0x59245f- -0x3f9,_0xc0ed3d-0x14a,_0x4d1878,_0x2dfa78-_0x9d7ba7._0x373999);}const _0x1aa15a=(_0x4b646b[_0x42e9c6(_0x14fb44._0x38bef2,_0x14fb44._0x1cf4a4,0x413,0x31a)]??[])[_0x48b600(0x1af,0x129,0x1b5,0xd8)](_0x53fad2=>_0x51375b[_0x48b600(0x23d,0x1eb,0x190,0xe2)](_0x53fad2));function _0x42e9c6(_0x52f21c,_0xed178d,_0x1b3b08,_0x5f456d){return _0x173565(_0x52f21c-0x30,_0xed178d-0x1e1,_0xed178d,_0x1b3b08-_0x46fee0._0x226243);}const _0x610d9c=_0x4b646b['name']??_0x48b600(_0x14fb44._0x333474,_0x14fb44._0x4a2577,_0x14fb44._0x6f30a,0x3b8);return defineTool({'name':_0x610d9c,'description':_0x48b600(0x259,_0x14fb44._0x1e32c9,_0x14fb44._0x5a865d,_0x14fb44._0x5c0f1b),'inputSchema':{'type':_0x42e9c6(0x27f,_0x14fb44._0x2faa24,0x38a,_0x14fb44._0x5b1962),'properties':{'filePath':{'type':_0x42e9c6(_0x14fb44._0x354cfe,_0x14fb44._0x378785,0x3ec,0x480)},'oldText':{'type':_0x48b600(_0x14fb44._0x5aa8a4,_0x14fb44._0x564712,_0x14fb44._0x4db06e,0x391)},'newText':{'type':_0x48b600(_0x14fb44._0x4b4f9e,0x2c0,0x2c6,_0x14fb44._0x122ca5)},'dryRun':{'type':_0x42e9c6(_0x14fb44._0x3d1ff2,0x2e9,_0x14fb44._0x465aea,0x362)}},'required':[_0x42e9c6(0x48e,_0x14fb44._0x5f56c3,0x424,0x4ff),_0x48b600(0xfa,0x215,0x20a,_0x14fb44._0x3f5fcf),_0x42e9c6(_0x14fb44._0x4dbde0,_0x14fb44._0x483ce8,_0x14fb44._0x4b0367,0x3ee)]},async *'execute'(_0x547d80){const _0x5e6610={_0xedeb94:0xcf};function _0x5bf412(_0x210b00,_0xe9618d,_0x45b52f,_0x2f65c5){return _0x42e9c6(_0x210b00-0x1a3,_0x210b00,_0x45b52f- -0x13b,_0x2f65c5-_0x5e6610._0xedeb94);}function _0x4179c7(_0x109b76,_0x83b5f5,_0x1a524d,_0x1975bd){return _0x48b600(_0x83b5f5,_0x83b5f5-0xc0,_0x1a524d- -0x209,_0x1975bd-_0x51dbe0._0x513a46);}const _0xd5578d=resolveAllowedPath(_0x459aa0,_0x1aa15a,_0x547d80[_0x5bf412(0x2ba,_0xd69261._0x4a79dc,_0xd69261._0x4a2871,_0xd69261._0x3b6dbe)]);await assertWorkspaceFile(_0xd5578d);const _0x3673dd=await _0xf55b11(_0xd5578d),_0x3dd705=await _0x549d7c(_0xd5578d),_0x3eb238=detectEol(_0x3dd705),_0x3a3948=normalizeToLf(_0x3dd705[_0x4179c7(-_0xd69261._0x459f70,0x94,-_0xd69261._0x1e5dc8,-0x8)]('utf8')),_0x90a57=normalizeToLf(_0x547d80[_0x4179c7(-0x6d,0xe8,_0xd69261._0x4186a6,_0xd69261._0x5f0a8f)]),_0x5077aa=normalizeToLf(_0x547d80[_0x4179c7(0x252,0xc2,0x190,_0xd69261._0x1fdbfa)]),_0x1f063f=_0x3a3948[_0x4179c7(0xa4,-0x106,-_0xd69261._0x392efc,0x4b)](_0x90a57);if(_0x1f063f===-0x1){const _0x571eb9=_0x90a57['slice'](0x0,0x64)[_0x4179c7(0x1f,_0xd69261._0x173deb,0x4c,-0x49)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x571eb9+(_0x90a57[_0x4179c7(0x146,-_0xd69261._0x21d6b8,_0xd69261._0xf005a3,0x91)]>0x64?_0x5bf412(0x351,0x332,_0xd69261._0x2918e3,0x29b):'')+'\x22',{'filePath':_0x547d80['filePath']});}const _0x391731=_0x3a3948[_0x5bf412(_0xd69261._0x22d70,_0xd69261._0x28bd6a,_0xd69261._0x3b5eff,0x388)](0x0,_0x1f063f)+_0x5077aa+_0x3a3948[_0x5bf412(0x3fa,_0xd69261._0x474878,_0xd69261._0x3b5eff,0x315)](_0x1f063f+_0x90a57[_0x4179c7(_0xd69261._0xc1b9ff,0x60,0xb2,0x147)]),_0x582cd1=convertEol(_0x391731,_0x3eb238),_0x5f269b=Buffer['from'](_0x582cd1,_0x5bf412(_0xd69261._0x3f984d,0x303,0x2c4,0x2f4)),_0x10877d=sha256(_0x3dd705),_0x1abf17=sha256(_0x5f269b),_0x59d39f=_0x10877d===_0x1abf17,_0x293b7e=_0x547d80[_0x4179c7(0x170,_0xd69261._0x265757,0x107,_0xd69261._0x45bf7c)]??![];return!_0x293b7e&&!_0x59d39f&&await atomicWrite(_0xd5578d,_0x5f269b),yield createToolOutput(_0x59d39f?_0x4179c7(_0xd69261._0x34758b,0x179,_0xd69261._0x5a874d,0x169):_0x293b7e?_0x5bf412(0x1c7,0x297,0x1db,_0xd69261._0x196e44):_0x5bf412(_0xd69261._0x3837aa,0x26e,_0xd69261._0x3a37fa,_0xd69261._0x1f2ba5),{'filePath':_0x547d80[_0x4179c7(_0xd69261._0x49dde8,_0xd69261._0x5d61a8,0xf5,0x50)],'resolvedPath':_0xd5578d,'created':_0x3673dd[_0x4179c7(-0xf3,_0xd69261._0x317625,-_0xd69261._0xd91692,-_0xd69261._0x5d04c5)]['toISOString'](),'modified':_0x3673dd[_0x4179c7(-_0xd69261._0x232cd7,-0xeb,-0x80,-0x173)][_0x4179c7(0xc2,0x242,_0xd69261._0x34b3c1,_0xd69261._0x5eb015)](),'size':_0x3673dd['size'],'eol':_0x3eb238,'oldTextLength':_0x90a57[_0x4179c7(_0xd69261._0x28ccbc,0x73,_0xd69261._0xf005a3,0x9f)],'newTextLength':_0x5077aa[_0x5bf412(_0xd69261._0x19e880,_0xd69261._0x59100c,_0xd69261._0x513ff4,0x1f2)],'bytesWritten':_0x59d39f||_0x293b7e?0x0:_0x5f269b['length'],'beforeSha':_0x10877d,'afterSha':_0x1abf17,'dryRun':_0x293b7e,'noChange':_0x59d39f,'lineNumbers':calculateLineNumbers(_0x3a3948,_0x90a57,_0x5077aa,_0x1f063f)}),void 0x0;}});}import{mkdir as _0x5d01dc,rename as _0x62ba6d,stat as _0x4e4b8d,writeFile as _0x2b2170}from'fs/promises';import*as _0x1a68a4 from'path';async function atomicWrite2(_0x5fd540,_0x3013cf){const _0x9c4cbf={_0x1780ca:0x2a8,_0x1984e6:0x3d8,_0x54ab62:0x49b,_0x552bca:0x6d2,_0x59f66d:0x64e,_0x36096f:0x606,_0x3e99cf:0x2ce,_0x13cd4d:0x48b,_0x3de3b8:0x3a8,_0x411241:0x43e,_0x159117:0x2ce,_0x260568:0x1b6,_0x209c64:0x626},_0x56918d={_0x52436e:0x96},_0x3b4c9b={_0x25428f:0x58,_0x11cbda:0x19},_0x54b062=_0x1a68a4['dirname'](_0x5fd540);await _0x5d01dc(_0x54b062,{'recursive':!![]});function _0x3b65e7(_0x2e154f,_0x39386b,_0x200254,_0x2bf0cc){return _0x255f51(_0x2bf0cc- -_0x3b4c9b._0x25428f,_0x39386b-0x18e,_0x39386b,_0x2bf0cc-_0x3b4c9b._0x11cbda);}function _0x35e460(_0x2b656e,_0x51381b,_0x275ac1,_0x52d2ac){return _0x255f51(_0x275ac1- -0x3fd,_0x51381b-_0x56918d._0x52436e,_0x51381b,_0x52d2ac-0x137);}const _0x19fd1a=_0x1a68a4['join'](_0x54b062,'.tmp.'+_0x1a68a4[_0x35e460(_0x9c4cbf._0x1780ca,_0x9c4cbf._0x1984e6,0x384,_0x9c4cbf._0x54ab62)](_0x5fd540)+'.'+Date[_0x3b65e7(_0x9c4cbf._0x552bca,0x57e,_0x9c4cbf._0x59f66d,_0x9c4cbf._0x36096f)]()+'.'+Math[_0x35e460(_0x9c4cbf._0x3e99cf,_0x9c4cbf._0x13cd4d,_0x9c4cbf._0x3de3b8,_0x9c4cbf._0x411241)]()[_0x35e460(0x126,_0x9c4cbf._0x159117,_0x9c4cbf._0x260568,0x298)](0x24)[_0x3b65e7(_0x9c4cbf._0x209c64,0x619,0x6ed,0x688)](0x2));await _0x2b2170(_0x19fd1a,_0x3013cf),await _0x62ba6d(_0x19fd1a,_0x5fd540);}function createFileNewTool(_0x26acd4={}){const _0xc75ec2={_0x115812:0x55b,_0x11bebb:0x59a,_0x13efca:0xd,_0xd7d618:0x77,_0x3dc67f:0x13f,_0x5edcba:0x43,_0x53f111:0x635,_0x32c06d:0x9c,_0x5d6d1e:0x85,_0x5f215d:0x163,_0x3a50fe:0x6ce,_0x12eff6:0x52b,_0x3f6d02:0xa1,_0x32bb74:0x49,_0x5a5d73:0x60e,_0x3dd0a0:0x6ee,_0x478796:0x58d,_0x131640:0x646,_0x4efd3d:0x5a9},_0x4023be={_0x128fa2:0x192,_0x2ce0f0:0x243,_0xbf378:0x69,_0x3332ae:0x3a,_0x6845bc:0x1c,_0x1538c4:0x29,_0x149b18:0x212,_0x1ced77:0xf5,_0x28001b:0xbd,_0x3c0d7b:0x15c,_0x36c73c:0x14f},_0x489f35={_0x204549:0x4c3,_0x2e3084:0x61},_0x55c619={_0x12fced:0xb1,_0x140cba:0xf7};function _0xa6de12(_0x48019c,_0x374e80,_0x273b42,_0x11e798){return _0x255f51(_0x374e80- -_0x55c619._0x12fced,_0x374e80-0xa,_0x48019c,_0x11e798-_0x55c619._0x140cba);}const _0x253d1c=_0x1a68a4[_0xa6de12(_0xc75ec2._0x115812,0x4d8,_0xc75ec2._0x11bebb,0x478)](_0x26acd4[_0x159994(0xdd,0x0,-_0xc75ec2._0x13efca,_0xc75ec2._0xd7d618)]??process[_0x159994(0x78,_0xc75ec2._0x3dc67f,_0xc75ec2._0x5edcba,0xcb)]()),_0x1cf984=(_0x26acd4[_0xa6de12(0x5a0,_0xc75ec2._0x53f111,0x514,0x6f6)]??[])[_0x159994(-0xa6,-_0xc75ec2._0x32c06d,-_0xc75ec2._0x5d6d1e,-_0xc75ec2._0x5f215d)](_0x49271b=>_0x1a68a4[_0xa6de12(0x3d5,0x4d8,0x416,0x469)](_0x49271b));function _0x159994(_0x345316,_0x526fcf,_0x2282af,_0x21c68d){return _0x255f51(_0x526fcf- -0x64a,_0x526fcf-0x30,_0x2282af,_0x21c68d-0xc9);}const _0x755fa5=_0x26acd4['name']??_0xa6de12(0x626,0x5ef,_0xc75ec2._0x3a50fe,_0xc75ec2._0x12eff6);return defineTool({'name':_0x755fa5,'description':_0x159994(-0x12,-_0xc75ec2._0x3f6d02,_0xc75ec2._0x32bb74,-0xe1),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0xa6de12(0x5f6,_0xc75ec2._0x5a5d73,0x622,_0xc75ec2._0x3dd0a0)},'content':{'type':_0xa6de12(_0xc75ec2._0x478796,0x60e,0x511,0x531)}},'required':[_0xa6de12(0x678,_0xc75ec2._0x131640,_0xc75ec2._0x4efd3d,0x703),'content']},async *'execute'(_0x575ccd){const _0x194939={_0x50c3a2:0xc1},_0x2441a4=resolveAllowedPath(_0x253d1c,_0x1cf984,_0x575ccd[_0x217093(0x235,_0x4023be._0x128fa2,0x217,_0x4023be._0x2ce0f0)]);function _0x217093(_0x40f641,_0x2c06df,_0x5cd7e8,_0x59cb7){return _0xa6de12(_0x5cd7e8,_0x2c06df- -0x4b4,_0x5cd7e8-_0x194939._0x50c3a2,_0x59cb7-0xf5);}function _0x376e92(_0x39bc46,_0x34bcab,_0x236c4c,_0x10908d){return _0xa6de12(_0x10908d,_0x39bc46- -_0x489f35._0x204549,_0x236c4c-_0x489f35._0x2e3084,_0x10908d-0xc0);}const _0x40bd46=await _0x4e4b8d(_0x2441a4)['then'](()=>!![])['catch'](()=>![]),_0x533753=Buffer[_0x376e92(_0x4023be._0xbf378,0xff,_0x4023be._0x3332ae,0xbf)](_0x575ccd[_0x376e92(0xbd,0x18d,0xa5,0x10f)],'utf8');return await atomicWrite2(_0x2441a4,_0x533753),yield createToolOutput(_0x217093(-_0x4023be._0x6845bc,0x1,-0x7e,-_0x4023be._0x1538c4)+_0x575ccd['filePath']+'.',{'filePath':_0x575ccd['filePath'],'resolvedPath':_0x2441a4,'bytes':_0x533753[_0x376e92(0x140,0x1d1,_0x4023be._0x149b18,0x37)],'lines':_0x575ccd['content'][_0x376e92(0x2b,-_0x4023be._0x1ced77,-_0x4023be._0x28001b,0xa9)](/\r?\n/)[_0x217093(_0x4023be._0x3c0d7b,_0x4023be._0x36c73c,0x1de,0x1d7)],'created':new Date()['toISOString'](),'overwritten':_0x40bd46}),void 0x0;}});}import{readFile as _0x3b5935,stat as _0x43ae04}from'fs/promises';import*as _0x4aca11 from'path';function stripUtfBom(_0xfd1b98){const _0x572317={_0x3f275c:0x692};function _0x5e1599(_0x18a5a0,_0x2bec4b,_0x5586f8,_0x166f89){return _0x255f51(_0x166f89- -0x4e,_0x2bec4b-0x194,_0x18a5a0,_0x166f89-0x1f4);}return _0xfd1b98['charCodeAt'](0x0)===0xfeff?_0xfd1b98[_0x5e1599(0x66e,0x762,0x6bc,_0x572317._0x3f275c)](0x1):_0xfd1b98;}function clampLine(_0x20a213,_0x104de5){const _0x1ae88f={_0x593d53:0x1d1,_0x44575c:0x1b3,_0x16cd0d:0x1a0,_0x3f7c11:0x40,_0x3400fb:0x33,_0x2c3dd0:0x34},_0x4cfd36={_0xecc49d:0x131},_0x244688={_0x29aad3:0x743};if(!Number['isFinite'](_0x20a213))return 0x1;function _0x4b3285(_0x22adc5,_0x55a5b9,_0x1a8e1c,_0x3271b2){return _0x255f51(_0x3271b2- -_0x244688._0x29aad3,_0x55a5b9-0x6e,_0x22adc5,_0x3271b2-0x9f);}function _0x19b751(_0x3fc5dd,_0x3a109f,_0x416deb,_0x5d4cf0){return _0x255f51(_0x416deb- -0x696,_0x3a109f-0x3b,_0x3a109f,_0x5d4cf0-_0x4cfd36._0xecc49d);}return Math[_0x4b3285(-_0x1ae88f._0x593d53,-_0x1ae88f._0x44575c,-0xfd,-_0x1ae88f._0x16cd0d)](0x1,Math[_0x4b3285(-0x9c,_0x1ae88f._0x3f7c11,-_0x1ae88f._0x3400fb,-_0x1ae88f._0x2c3dd0)](Math['trunc'](_0x20a213),_0x104de5));}function createFileReadTool(_0x3222bd={}){const _0x43dbe9={_0x2caa68:0x161,_0x7b99aa:0x2f,_0x263c00:0x119,_0x73198d:0x647,_0x14eb5d:0x75c,_0x34377e:0x610,_0x5c1557:0x6c1,_0x422286:0x25,_0x2fc919:0x577,_0x4c80f4:0x60d,_0x476eae:0x666,_0x2dfd17:0x5c0},_0x8fa181={_0x20efab:0x4e0,_0x19344f:0x36e,_0x539d4f:0x94,_0x2c5db0:0x4d,_0x1085cc:0x75,_0x505f96:0x41,_0x3487ad:0x4b,_0x4fa52f:0x26c,_0x5677a8:0x256,_0x1a3006:0x339,_0x145b33:0x228,_0x1dfba3:0x16c,_0x329c25:0x21,_0x1152f9:0x4e,_0x38d51f:0xdb,_0xe2ec3e:0x26c,_0x53a486:0x74,_0x4cb889:0x1f6,_0x3b7009:0x313,_0x2e6531:0xf0,_0x1ef2cd:0x14b,_0x557bc1:0x16e,_0x365523:0x1cc,_0x5f5ab1:0xed,_0x39b907:0x131,_0x4b9fd0:0x403,_0x43e789:0x3c7,_0x3780be:0x352,_0x12c194:0x20d,_0x58ec94:0x169,_0x558a8d:0x11a,_0x58b382:0x4a,_0x2f6312:0x34,_0x1b958e:0x10b,_0x582df4:0x146,_0x16a7e7:0x1b,_0x441071:0x225,_0x1767ea:0x17e,_0x1a1a13:0xc3,_0x21f449:0x249,_0x1839cf:0x384,_0xcbd5de:0x3c5},_0x2aac6e={_0x5e6505:0x25,_0x28e9a7:0x145},_0x491272={_0x472b40:0x5ee,_0x23b728:0xdd,_0x1005dd:0x17d},_0x552bd3=_0x4aca11[_0x1de988(0x9c,-0xa2,0x2c,-0x65)](_0x3222bd[_0x1de988(_0x43dbe9._0x2caa68,_0x43dbe9._0x7b99aa,_0x43dbe9._0x263c00,0x5c)]??process[_0x555769(0x83a,_0x43dbe9._0x73198d,_0x43dbe9._0x14eb5d,0x764)]()),_0x3814f3=(_0x3222bd[_0x555769(_0x43dbe9._0x34377e,0x7ef,0x6bd,_0x43dbe9._0x5c1557)]??[])[_0x1de988(-0x63,_0x43dbe9._0x422286,-0x114,-0x40)](_0xab087b=>_0x4aca11[_0x1de988(-0x25,0x3f,0xb,-0x65)](_0xab087b));function _0x1de988(_0xd243c8,_0x12e622,_0x35f4ac,_0x33c141){return _0x255f51(_0x33c141- -_0x491272._0x472b40,_0x12e622-_0x491272._0x23b728,_0x12e622,_0x33c141-_0x491272._0x1005dd);}function _0x555769(_0x2fd7bc,_0x200fc7,_0xf5b691,_0x20116a){return _0x255f51(_0x20116a- -_0x2aac6e._0x5e6505,_0x200fc7-0xfc,_0x200fc7,_0x20116a-_0x2aac6e._0x28e9a7);}const _0x4e8b76=_0x3222bd['name']??'FileRead';return defineTool({'name':_0x4e8b76,'description':_0x555769(0x629,0x4c7,0x4b1,_0x43dbe9._0x2fc919),'inputSchema':{'type':'object','properties':{'path':{'type':'string'},'lineStart':{'type':_0x555769(0x503,_0x43dbe9._0x4c80f4,0x6dc,0x5e4)},'lineEnd':{'type':'number'}},'required':[_0x555769(0x516,0x575,_0x43dbe9._0x476eae,_0x43dbe9._0x2dfd17)]},async *'execute'(_0x1d7355){const _0x1c7174=resolveAllowedPath(_0x552bd3,_0x3814f3,_0x1d7355['path']);await assertWorkspaceFile(_0x1c7174);function _0x33126e(_0x64f9bf,_0x33c3f9,_0x9e4eb8,_0x4ee979){return _0x555769(_0x64f9bf-0x96,_0x33c3f9,_0x9e4eb8-0x193,_0x64f9bf- -0x364);}const _0x7d53f7=await _0x43ae04(_0x1c7174);function _0xc9fc58(_0x53c1c4,_0x763e95,_0x5aa31e,_0x212734){return _0x1de988(_0x53c1c4-0xa3,_0x763e95,_0x5aa31e-0x11c,_0x5aa31e-0x54);}const _0x597a60=await _0x3b5935(_0x1c7174);if(isProbablyBinary(_0x597a60))throw new ToolExecutionError(_0x33126e(0x3fe,_0x8fa181._0x20efab,0x4d5,_0x8fa181._0x19344f)+_0x1d7355[_0xc9fc58(_0x8fa181._0x539d4f,_0x8fa181._0x2c5db0,0x4b,-_0x8fa181._0x1085cc)],{'path':_0x1d7355[_0xc9fc58(-0xb7,-_0x8fa181._0x505f96,_0x8fa181._0x3487ad,-0x9e)]});let _0x56c8b6=_0x597a60[_0x33126e(0x22a,0x35a,_0x8fa181._0x4fa52f,_0x8fa181._0x5677a8)](_0x33126e(0x349,_0x8fa181._0x1a3006,0x28e,_0x8fa181._0x145b33));const _0x253ffc=_0x56c8b6[_0x33126e(0x28a,_0x8fa181._0x1dfba3,0x397,0x357)](0x0)===0xfeff;_0x56c8b6=stripUtfBom(_0x56c8b6);const _0x6e4ddb=_0x56c8b6[_0xc9fc58(_0x8fa181._0x329c25,0x5,0x5,_0x8fa181._0x1152f9)](/\r?\n/),_0x1df463={'path':_0x1d7355['path'],'resolvedPath':_0x1c7174,'created':_0x7d53f7[_0x33126e(0x1d0,0x24a,0xc3,_0x8fa181._0x38d51f)][_0xc9fc58(_0x8fa181._0xe2ec3e,0x146,0x19b,_0x8fa181._0x53a486)](),'modified':_0x7d53f7[_0x33126e(0x1f9,_0x8fa181._0x4cb889,0x281,_0x8fa181._0x3b7009)][_0xc9fc58(0x2ba,_0x8fa181._0x2e6531,0x19b,_0x8fa181._0x1ef2cd)](),'size':_0x7d53f7[_0xc9fc58(_0x8fa181._0x557bc1,_0x8fa181._0x365523,_0x8fa181._0x5f5ab1,_0x8fa181._0x39b907)],'encoding':_0x33126e(0x349,_0x8fa181._0x4b9fd0,_0x8fa181._0x43e789,0x39e),'bomStripped':_0x253ffc,'truncated':![],'totalLines':_0x6e4ddb['length']};if(_0x1d7355[_0x33126e(_0x8fa181._0x3780be,0x269,0x256,0x2bf)]!==void 0x0||_0x1d7355['lineEnd']!==void 0x0){const _0x3a5231=clampLine(_0x1d7355[_0xc9fc58(0x1b5,0x135,0x141,0x26c)]??0x1,_0x6e4ddb[_0xc9fc58(0x241,0x41,0x11a,0x14d)]),_0x5a659a=clampLine(_0x1d7355[_0xc9fc58(0x1e2,0x150,_0x8fa181._0x12c194,0x185)]??_0x6e4ddb['length'],_0x6e4ddb[_0xc9fc58(_0x8fa181._0x58ec94,0x135,_0x8fa181._0x558a8d,0x220)]),_0x4f0e0a=Math['min'](_0x3a5231,_0x5a659a),_0x2cd2fa=Math[_0xc9fc58(-0x109,-_0x8fa181._0x58b382,0x9,-_0x8fa181._0x2f6312)](_0x3a5231,_0x5a659a),_0x337440=_0x6e4ddb[_0xc9fc58(_0x8fa181._0x1b958e,0x1d9,_0x8fa181._0x582df4,_0x8fa181._0x16a7e7)](_0x4f0e0a-0x1,_0x2cd2fa)[_0x33126e(_0x8fa181._0x441071,0x12e,_0x8fa181._0x1767ea,0x203)]((_0x54a7d4,_0x4c64c7)=>_0x4f0e0a+_0x4c64c7+'|'+_0x54a7d4)[_0xc9fc58(0x19,_0x8fa181._0x1a1a13,0x56,-0x69)]('\x0a');return yield createToolOutput(_0x337440,{..._0x1df463,'lineRange':{'lineStart':_0x4f0e0a,'lineEnd':_0x2cd2fa,'linesTotal':_0x6e4ddb[_0x33126e(0x32b,_0x8fa181._0x21f449,_0x8fa181._0x1839cf,_0x8fa181._0xcbd5de)]}}),void 0x0;}return yield createToolOutput(_0x56c8b6,_0x1df463),void 0x0;}});}import{stat as _0x222d03}from'fs/promises';import*as _0x1196ea from'path';import{execSync,spawn as _0x1c433c}from'child_process';import{existsSync}from'fs';import{stat as _0x5c8fb8}from'fs/promises';import*as _0x1863cf from'os';import*as _0x2654ae from'path';import{rgPath as _0x6281a1}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x3640eb={_0x113ab8:0x651,_0x4a1d83:0x7a2,_0x4ea2d0:0x772,_0x299673:0x472,_0x186513:0x1f1,_0x26569f:0x57c,_0x35902d:0x5cf,_0x32aa43:0x60e,_0x519154:0x2c7,_0xf86db9:0x738,_0x1dc7c4:0x69c,_0x1433bc:0x5fd,_0x498f1c:0x311,_0x91d219:0x43f,_0x1e3237:0x4ff,_0x53989a:0x5f7,_0x2d40dd:0x6dd,_0x3cf872:0x5c3,_0x1e4571:0x30d,_0x4ae205:0x3f3,_0x5dd3ae:0x222,_0x4f964e:0x218,_0x125b32:0x6c8,_0x5a2cea:0x6e6,_0x54a988:0x7a8,_0x401f32:0x21f,_0xcb4f63:0x153,_0x5c9066:0x56d,_0x572f18:0x257,_0x187f45:0x15d,_0x4f3a80:0x47d,_0x474fde:0x397,_0xeee7a3:0x477,_0x5df959:0x481,_0x597a80:0x654,_0x521c13:0x709,_0x3708f7:0x7ec,_0x52343a:0x2a4,_0x2c5204:0x3b4,_0x12c995:0x38d,_0x400f26:0x24e,_0xd3616:0x194,_0x5ab275:0x6f,_0x54779f:0x612,_0x308485:0x668,_0x357f41:0x653,_0x3bb87f:0x682,_0x391b09:0x59b,_0x3afaaf:0x2d3,_0x4286ff:0x243,_0x54f748:0x3f2,_0x376718:0x1fe,_0x1a499a:0x252,_0x267025:0x132,_0x6ba70e:0x16b,_0x6da5d1:0x1eb,_0x1e4e41:0x187,_0x461582:0x152,_0x4aa2cb:0x255,_0x54fb91:0x1f2},_0x1bab9a={_0x430e25:0x3ff,_0x6480c9:0x1d4},_0x268d30={_0x249fa5:0x6f,_0x35d0a2:0x18c},_0xfb41d2=_0x1863cf[_0x41782e(_0x3640eb._0x113ab8,_0x3640eb._0x4a1d83,0x759,_0x3640eb._0x4ea2d0)]()===_0x41782e(_0x3640eb._0x299673,0x59e,0x68e,0x570);function _0x41782e(_0x455018,_0x32df9f,_0x5aa7cb,_0x5d672e){return _0x173565(_0x455018-_0x268d30._0x249fa5,_0x32df9f-_0x268d30._0x35d0a2,_0x32df9f,_0x5d672e-0x573);}const _0x36eace=_0xfb41d2?[_0x2654ae[_0x28e317(_0x3640eb._0x186513,0x2c6,0x182,0x26d)](process[_0x41782e(_0x3640eb._0x26569f,0x61d,_0x3640eb._0x35902d,_0x3640eb._0x32aa43)][_0x28e317(_0x3640eb._0x519154,0x232,0x399,0x1dc)]||'',_0x41782e(_0x3640eb._0xf86db9,0x633,0x588,_0x3640eb._0x1dc7c4),_0x41782e(_0x3640eb._0x1433bc,0x616,0x514,0x63c),_0x28e317(_0x3640eb._0x498f1c,0x24a,_0x3640eb._0x91d219,0x428)),_0x2654ae[_0x41782e(0x561,_0x3640eb._0x1e3237,0x612,_0x3640eb._0x53989a)](process[_0x41782e(0x5d2,_0x3640eb._0x2d40dd,_0x3640eb._0x3cf872,0x60e)][_0x28e317(0x2c8,0x255,_0x3640eb._0x1e4571,_0x3640eb._0x4ae205)]||'',_0x28e317(0x153,0x184,_0x3640eb._0x5dd3ae,_0x3640eb._0x4f964e),_0x41782e(_0x3640eb._0x125b32,0x829,_0x3640eb._0x5a2cea,_0x3640eb._0x54a988)),_0x2654ae[_0x28e317(_0x3640eb._0x186513,0x272,_0x3640eb._0x401f32,_0x3640eb._0xcb4f63)](process[_0x41782e(0x6e4,0x671,_0x3640eb._0x5c9066,0x60e)][_0x28e317(_0x3640eb._0x572f18,_0x3640eb._0x187f45,0x2cc,0x25a)]||'','ripgrep',_0x28e317(0x3a2,_0x3640eb._0x4f3a80,_0x3640eb._0x474fde,0x3b1))]:[_0x28e317(0x353,_0x3640eb._0xeee7a3,0x34e,_0x3640eb._0x5df959),_0x41782e(_0x3640eb._0x597a80,_0x3640eb._0x521c13,_0x3640eb._0x3708f7,0x770),_0x28e317(_0x3640eb._0x52343a,_0x3640eb._0x2c5204,_0x3640eb._0x12c995,_0x3640eb._0x400f26),_0x28e317(_0x3640eb._0xd3616,_0x3640eb._0x5ab275,0x64,0x82)];for(const _0x40c62e of _0x36eace){if(existsSync(_0x40c62e))return _0x40c62e;}try{const _0x14fddf=_0xfb41d2?_0x41782e(_0x3640eb._0x54779f,_0x3640eb._0x308485,0x650,_0x3640eb._0x357f41):_0x41782e(_0x3640eb._0x3bb87f,_0x3640eb._0x391b09,0x67f,0x6a4),_0x4f57e1=execSync(_0x14fddf,{'encoding':_0x28e317(_0x3640eb._0x3afaaf,0x320,_0x3640eb._0x4286ff,_0x3640eb._0x54f748),'stdio':[_0x28e317(_0x3640eb._0x376718,_0x3640eb._0x1a499a,_0x3640eb._0x267025,_0x3640eb._0x6ba70e),_0x28e317(0x1fe,0xf7,0x273,0x1ad),_0x28e317(_0x3640eb._0x6da5d1,0x23e,_0x3640eb._0x1e4e41,0xf7)]})[_0x28e317(_0x3640eb._0x461582,_0x3640eb._0x4aa2cb,_0x3640eb._0x54fb91,0x251)]()['split'](/\r?\n/)[0x0];if(_0x4f57e1&&existsSync(_0x4f57e1))return _0x4f57e1;}catch{return null;}function _0x28e317(_0x25ec71,_0x187d91,_0x1a741e,_0x341c69){return _0x255f51(_0x25ec71- -_0x1bab9a._0x430e25,_0x187d91-0x18f,_0x187d91,_0x341c69-_0x1bab9a._0x6480c9);}return null;}async function filepath(){const _0x5359cb={_0x75942f:0x7},_0x52013f={_0x5c4855:0x9c};if(cachedRgPath)return cachedRgPath;if(_0x6281a1&&existsSync(_0x6281a1))return cachedRgPath=_0x6281a1,_0x6281a1;const _0x3e997a=findSystemRipgrep();function _0x1877a3(_0x137caf,_0x24f064,_0x573102,_0x13b154){return _0x255f51(_0x13b154- -0x677,_0x24f064-0x1aa,_0x24f064,_0x13b154-_0x52013f._0x5c4855);}if(!_0x3e997a)throw new Error(_0x1877a3(-_0x5359cb._0x75942f,-0x158,0x66,-0x7b));return cachedRgPath=_0x3e997a,_0x3e997a;}async function*files(_0x2a26fb){const _0x3de905={_0x190cd7:0x6e9,_0x3ad14c:0x806,_0x4d0df7:0x763,_0x1bb611:0x389,_0x22b7ba:0x32a,_0x1c17a7:0x2af,_0x167b5e:0x41b,_0x36642e:0x70e,_0x1e365a:0x36d,_0xb43c49:0x810,_0x5c1038:0x74f,_0x3bb5ea:0x43c,_0x25170e:0x363,_0x450c4d:0x839,_0x40ae72:0x674,_0x15fa3d:0x48a,_0x3814a2:0x4ab,_0x14b28f:0x5b4,_0x4bb760:0x5a3,_0x4ff699:0x5b6,_0x457bf0:0x26c,_0x57896a:0x215,_0x5c09c2:0x2c6,_0x1a529c:0x518,_0x2e407e:0x56b,_0x1f7163:0x104,_0x14a5c0:0x20a,_0x54d07e:0x337,_0xfd0954:0x4f9,_0x4a97a5:0x5fe,_0x3c0663:0x56a,_0x38590a:0x1c0,_0x1884db:0x1e1},_0x411983={_0x3778f9:0x525},_0x4c76e7={_0x4fed7e:0x391,_0x551431:0x135},_0x377655=await filepath(),_0x4ee208=await _0x5c8fb8(_0x2a26fb['cwd'])['catch'](()=>null);if(!_0x4ee208?.[_0x56ba11(0x6b0,_0x3de905._0x190cd7,_0x3de905._0x3ad14c,_0x3de905._0x4d0df7)]())throw Object[_0x3ca922(_0x3de905._0x1bb611,_0x3de905._0x22b7ba,_0x3de905._0x1c17a7,_0x3de905._0x167b5e)](new Error(_0x56ba11(0x741,0x67d,0x623,_0x3de905._0x36642e)+_0x2a26fb[_0x3ca922(0x3f8,0x351,0x31f,0x2e4)]+'\x27'),{'code':_0x3ca922(0x3ca,0x2d0,_0x3de905._0x1e365a,0x2cc)});const _0x3c8b85=['--files','--follow','--hidden','--glob=!.git/*'];for(const _0x379875 of _0x2a26fb[_0x56ba11(_0x3de905._0xb43c49,0x76a,0x77e,_0x3de905._0x5c1038)]??[]){_0x3c8b85[_0x3ca922(0x31f,0x2f6,_0x3de905._0x3bb5ea,_0x3de905._0x25170e)]('--glob='+_0x379875);}function _0x3ca922(_0x22440f,_0x33877c,_0x4d5fea,_0x571eb3){return _0x255f51(_0x22440f- -_0x4c76e7._0x4fed7e,_0x33877c-_0x4c76e7._0x551431,_0x33877c,_0x571eb3-0x5e);}function _0x56ba11(_0x2ec70f,_0x20b1db,_0x3e1a50,_0x5ba9c6){return _0x173565(_0x2ec70f-0x169,_0x20b1db-0x15b,_0x20b1db,_0x5ba9c6-_0x411983._0x3778f9);}const _0x56a357=_0x1c433c(_0x377655,_0x3c8b85,{'cwd':_0x2a26fb[_0x56ba11(0x682,_0x3de905._0x450c4d,_0x3de905._0x40ae72,0x742)],'stdio':[_0x56ba11(_0x3de905._0x15fa3d,_0x3de905._0x3814a2,_0x3de905._0x14b28f,_0x3de905._0x4bb760),_0x56ba11(0x6ce,0x6e6,0x6d7,_0x3de905._0x4ff699),_0x3ca922(_0x3de905._0x457bf0,_0x3de905._0x57896a,_0x3de905._0x5c09c2,0x303)]});let _0x1cd3a9='';for await(const _0x3989b4 of _0x56a357[_0x56ba11(0x67c,_0x3de905._0x1a529c,0x4b5,_0x3de905._0x2e407e)]??[]){_0x1cd3a9+=_0x3989b4[_0x3ca922(0x222,_0x3de905._0x1f7163,_0x3de905._0x14a5c0,_0x3de905._0x54d07e)]();const _0x194f56=_0x1cd3a9['split'](/\r?\n/);_0x1cd3a9=_0x194f56[_0x56ba11(0x65c,_0x3de905._0xfd0954,_0x3de905._0x4a97a5,_0x3de905._0x3c0663)]()??'';for(const _0x566edf of _0x194f56){if(_0x566edf['length']>0x0)yield _0x566edf;}}_0x1cd3a9[_0x3ca922(_0x3de905._0x38590a,0xef,0x1a6,_0x3de905._0x1884db)]()[_0x3ca922(0x323,0x365,0x2c3,0x261)]>0x0&&(yield _0x1cd3a9['trim']());}function parseMatchLine(_0x5420d9,_0x322957){const _0x3e95b3={_0x40409c:0x181,_0x3c5862:0xbd,_0x56c2c8:0x10c,_0x416f13:0x28,_0x1df492:0xa0,_0x38dfdb:0x38,_0x52cd59:0x13a,_0x2f59ed:0x34,_0x4a4af5:0xe5,_0x20a6af:0xc7,_0x44d3f9:0x7,_0x291c45:0x30,_0x3ed212:0x73,_0x27b686:0x89,_0x485aeb:0xd,_0x3ae2ba:0x1a,_0x4239fb:0xcc,_0x52a095:0x58,_0x16baf8:0x68,_0x372cc7:0x25b,_0x1f22d1:0x18e,_0x5d3c44:0x131,_0x2c5894:0x1cb,_0x4658ea:0xbd,_0x52f9b0:0x6c},_0x31fda7={_0x39121c:0xea};function _0xcf2485(_0x2e9775,_0x33039f,_0x924353,_0x3d4294){return _0x173565(_0x2e9775-0x23,_0x33039f-0x186,_0x33039f,_0x924353- -0xf0);}if(!_0x5420d9||_0x5420d9==='--')return null;const _0x4c53d4=_0x5420d9[_0xcf2485(-_0x3e95b3._0x40409c,-0x131,-_0x3e95b3._0x3c5862,-0x135)]('|');if(_0x322957&&_0x4c53d4[_0xcf2485(_0x3e95b3._0x56c2c8,-0xcd,0x58,0x24)]>=0x4&&Number[_0x321107(_0x3e95b3._0x416f13,_0x3e95b3._0x1df492,-_0x3e95b3._0x38dfdb,_0x3e95b3._0x52cd59)](Number[_0x321107(_0x3e95b3._0x2f59ed,0x7,0x23,-_0x3e95b3._0x4a4af5)](_0x4c53d4[0x2]??'',0xa))){const _0x494da5=Number[_0x321107(_0x3e95b3._0x20a6af,_0x3e95b3._0x44d3f9,_0x3e95b3._0x291c45,_0x3e95b3._0x3ed212)](_0x4c53d4[0x1]??'',0xa);if(!Number[_0x321107(0x78,_0x3e95b3._0x1df492,_0x3e95b3._0x27b686,0x1a9)](_0x494da5)||!_0x4c53d4[0x0])return null;return{'filePath':_0x4c53d4[0x0],'lineNum':_0x494da5,'lineText':_0x4c53d4[_0x321107(-0xc9,-_0x3e95b3._0x485aeb,_0x3e95b3._0x3ae2ba,0x98)](0x3)['join']('|')};}if(_0x4c53d4[_0xcf2485(_0x3e95b3._0x4239fb,0x106,_0x3e95b3._0x52a095,-_0x3e95b3._0x16baf8)]>=0x3){const _0x3f15db=Number['parseInt'](_0x4c53d4[0x1]??'',0xa);if(!Number[_0xcf2485(_0x3e95b3._0x372cc7,_0x3e95b3._0x1f22d1,_0x3e95b3._0x5d3c44,_0x3e95b3._0x2c5894)](_0x3f15db)||!_0x4c53d4[0x0])return null;return{'filePath':_0x4c53d4[0x0],'lineNum':_0x3f15db,'lineText':_0x4c53d4['slice'](0x2)[_0xcf2485(_0x3e95b3._0x4658ea,-0x174,-_0x3e95b3._0x52f9b0,-0x87)]('|'),..._0x322957?{'isContext':!![]}:{}};}function _0x321107(_0x390e99,_0x5bffbb,_0x35e002,_0x92f7e){return _0x173565(_0x390e99-_0x31fda7._0x39121c,_0x5bffbb-0xb5,_0x35e002,_0x5bffbb- -0x181);}return null;}async function search(_0x2f3bd2){const _0x2a75a3={_0x42c851:0x795,_0x2b6381:0x800,_0x4d7fdf:0x58f,_0x4fcc84:0x553,_0x5d77ef:0x67a,_0x33e8dd:0x594,_0x4bd751:0x69a,_0x9101dd:0x5ee,_0x442e73:0x559,_0x58f31d:0x50a,_0x3ad5da:0x529,_0x14e655:0x59a,_0x3c3e91:0x6c1,_0x199372:0x3d2,_0x5f24e6:0x65c,_0x20107e:0x5e9,_0x5c4ccb:0x6ee,_0x2434b6:0x7e7,_0x2af364:0x600,_0x1f4839:0x4b4,_0x38265a:0x4b7,_0x383f04:0x479,_0x5123b2:0x3af,_0x54626e:0x31a,_0x485fbb:0x2dd,_0x43936e:0x459,_0x45900d:0x6c7,_0x264565:0x675,_0x429f71:0x6f9,_0x87479b:0x50d,_0x224cb7:0x45e,_0x57c14a:0x522,_0x1ce277:0x487,_0x36821a:0x743,_0x1c253d:0x4eb,_0x299de3:0x551,_0x712301:0x5da,_0x2a3e27:0x3d0,_0x4bbf29:0x509,_0x12aa22:0x67e,_0x5504b4:0x757,_0x35ecb2:0x78d,_0x4c2477:0x76e,_0x2b7091:0x7c4,_0x2f1bcf:0x81b,_0x5af2e7:0x79e,_0x4c13f8:0x7ac,_0x592176:0x80d,_0x2a14b1:0x77b},_0x5c0d5b={_0x5023ca:0x3a6,_0x50b796:0x371,_0x148976:0x346,_0x111655:0x3f9,_0x57aaa3:0x28,_0x10b9a2:0x97,_0x19ef17:0x136,_0x22d390:0x141,_0x6b3361:0x10e,_0x274df7:0x186,_0x236f07:0x1a7,_0x2a8ca2:0x23d,_0x4d67f3:0x152,_0x5cf31d:0x25b,_0x1c431d:0x1be,_0xa87316:0x5f,_0x4759e2:0xa7,_0x2a3459:0x3e},_0x340f79={_0x4b14d1:0x1fb,_0x4af5d0:0x248,_0x25eb8f:0x2cb},_0x124bf0={_0x16fac7:0x1c1,_0x377f20:0x14e},_0x1ace61={_0x2d8725:0x59a},_0x1e266b=await filepath();function _0x544ab3(_0x1d443a,_0x257fc8,_0x494418,_0x33cdd4){return _0x173565(_0x1d443a-0x15f,_0x257fc8-0x1c7,_0x257fc8,_0x494418-_0x1ace61._0x2d8725);}if(_0x2f3bd2[_0x544ab3(_0x2a75a3._0x42c851,0x715,0x7ac,_0x2a75a3._0x2b6381)]){const _0x31b61f=await _0x5c8fb8(_0x2f3bd2['file'])[_0x544ab3(_0x2a75a3._0x4d7fdf,_0x2a75a3._0x4fcc84,0x621,_0x2a75a3._0x5d77ef)](()=>null);if(!_0x31b61f?.[_0x34c6f0(_0x2a75a3._0x33e8dd,0x49b,0x5a7,_0x2a75a3._0x4bd751)]())throw Object[_0x34c6f0(0x577,_0x2a75a3._0x9101dd,_0x2a75a3._0x442e73,0x5ad)](new Error(_0x34c6f0(0x49b,0x5b7,0x59e,_0x2a75a3._0x58f31d)+_0x2f3bd2['file']+'\x27'),{'code':_0x34c6f0(0x65a,_0x2a75a3._0x3ad5da,_0x2a75a3._0x14e655,_0x2a75a3._0x3c3e91)});}else{const _0x235573=await _0x5c8fb8(_0x2f3bd2[_0x34c6f0(0x6ba,0x6f1,0x5c8,0x68c)])[_0x34c6f0(0x536,0x53f,0x432,_0x2a75a3._0x199372)](()=>null);if(!_0x235573?.[_0x34c6f0(_0x2a75a3._0x5f24e6,0x540,_0x2a75a3._0x20107e,0x617)]())throw Object[_0x544ab3(0x7b9,_0x2a75a3._0x5c4ccb,0x748,_0x2a75a3._0x2434b6)](new Error(_0x34c6f0(0x4d0,0x6be,0x594,0x46b)+_0x2f3bd2[_0x34c6f0(_0x2a75a3._0x2af364,_0x2a75a3._0x1f4839,0x5c8,_0x2a75a3._0x38265a)]+'\x27'),{'code':'ENOENT'});}const _0x7c0148=[_0x34c6f0(_0x2a75a3._0x383f04,0x3c2,_0x2a75a3._0x5123b2,0x390),_0x34c6f0(_0x2a75a3._0x54626e,_0x2a75a3._0x485fbb,0x396,_0x2a75a3._0x43936e),_0x544ab3(_0x2a75a3._0x9101dd,0x70f,_0x2a75a3._0x45900d,0x7ca),'--regexp',_0x2f3bd2[_0x544ab3(0x4f5,_0x2a75a3._0x264565,0x615,_0x2a75a3._0x429f71)]],_0x11525b=typeof _0x2f3bd2[_0x34c6f0(_0x2a75a3._0x87479b,0x417,_0x2a75a3._0x224cb7,_0x2a75a3._0x57c14a)]==='number'&&_0x2f3bd2[_0x34c6f0(0x36d,0x537,0x45e,_0x2a75a3._0x1ce277)]>0x0;_0x11525b&&_0x7c0148[_0x544ab3(0x6ee,0x67f,0x6de,0x60f)]('-C',String(_0x2f3bd2[_0x544ab3(0x730,0x656,0x64d,_0x2a75a3._0x36821a)]),_0x34c6f0(0x4cc,0x592,0x554,0x44f));function _0x34c6f0(_0x2165f2,_0x1e8af8,_0x4119bf,_0x5f149c){return _0x255f51(_0x4119bf- -_0x124bf0._0x16fac7,_0x1e8af8-_0x124bf0._0x377f20,_0x1e8af8,_0x5f149c-0x54);}return _0x2f3bd2[_0x544ab3(0x79f,0x895,0x7c4,0x7ed)]&&!_0x2f3bd2[_0x34c6f0(_0x2a75a3._0x1c253d,_0x2a75a3._0x299de3,0x5bd,0x4a3)]&&_0x7c0148[_0x34c6f0(_0x2a75a3._0x712301,_0x2a75a3._0x2a3e27,0x4ef,_0x2a75a3._0x4bbf29)](_0x544ab3(_0x2a75a3._0x12aa22,0x717,_0x2a75a3._0x5504b4,_0x2a75a3._0x35ecb2),_0x2f3bd2[_0x544ab3(_0x2a75a3._0x4c2477,0x8cd,_0x2a75a3._0x2b7091,_0x2a75a3._0x2f1bcf)]),_0x7c0148[_0x544ab3(0x719,0x61e,0x6de,0x6b8)](_0x2f3bd2[_0x544ab3(_0x2a75a3._0x5af2e7,0x884,_0x2a75a3._0x4c13f8,_0x2a75a3._0x592176)]??_0x2f3bd2[_0x544ab3(0x840,_0x2a75a3._0x2a14b1,0x7b7,0x86b)]),await new Promise((_0x27c82b,_0x11f34b)=>{const _0x19fabb={_0x32d705:0x5d2,_0x15057c:0x599,_0x2c5c59:0x5b0,_0x2af6ff:0x54e,_0x27df49:0x5d5,_0x274390:0x5c1},_0x2a6c3f={_0x3cb094:0x91},_0x4a5ebe={_0x9f16f5:0x1ae,_0x202704:0x15a},_0x157ac8={_0x19fa49:0x594,_0x9c809a:0xa9},_0x1bbbd5={_0x4a2400:0x3be},_0x4196fa=_0x1c433c(_0x1e266b,_0x7c0148,{'cwd':_0x2f3bd2[_0xe7b26f(_0x5c0d5b._0x5023ca,_0x5c0d5b._0x50b796,_0x5c0d5b._0x148976,_0x5c0d5b._0x111655)],'stdio':[_0x19af9b(0x112,0x84,0xa,_0x5c0d5b._0x57aaa3),_0x19af9b(0x182,_0x5c0d5b._0x10b9a2,_0x5c0d5b._0x19ef17,0x14d),'pipe']});function _0xe7b26f(_0x404ead,_0x7e5aff,_0x205262,_0x27cb85){return _0x544ab3(_0x404ead-0x19e,_0x205262,_0x27cb85- -_0x1bbbd5._0x4a2400,_0x27cb85-0x1a2);}let _0xc4aead='';function _0x19af9b(_0x437aa6,_0x5b9e55,_0x2d9674,_0x4d66ee){return _0x544ab3(_0x437aa6-0x53,_0x437aa6,_0x5b9e55- -_0x157ac8._0x19fa49,_0x4d66ee-_0x157ac8._0x9c809a);}let _0x364700='';_0x4196fa['stdout']?.['on'](_0x19af9b(0xde,_0x5c0d5b._0x22d390,0xa9,_0x5c0d5b._0x6b3361),_0x397c41=>{function _0x21e738(_0x5cf450,_0x59eba8,_0x432945,_0x599e8d){return _0x19af9b(_0x599e8d,_0x5cf450-_0x4a5ebe._0x9f16f5,_0x432945-0x16b,_0x599e8d-_0x4a5ebe._0x202704);}_0xc4aead+=_0x397c41[_0x21e738(_0x340f79._0x4b14d1,0x142,_0x340f79._0x4af5d0,_0x340f79._0x25eb8f)]();}),_0x4196fa[_0xe7b26f(_0x5c0d5b._0x274df7,0x1a6,_0x5c0d5b._0x236f07,_0x5c0d5b._0x2a8ca2)]?.['on'](_0x19af9b(0x174,0x141,_0x5c0d5b._0x4d67f3,_0x5c0d5b._0x5cf31d),_0x11feea=>{const _0x529f05={_0x538cbc:0x15f,_0x17d5e5:0x1bb};function _0x5f4b27(_0xeb86fd,_0x36e6b9,_0x72ef36,_0x174b74){return _0xe7b26f(_0xeb86fd-_0x529f05._0x538cbc,_0x36e6b9-_0x529f05._0x17d5e5,_0x174b74,_0x36e6b9- -0x145);}_0x364700+=_0x11feea[_0x5f4b27(0x1ad,0xde,_0x2a6c3f._0x3cb094,0x30)]();}),_0x4196fa['on'](_0x19af9b(0x14e,_0x5c0d5b._0x1c431d,0x250,0x104),_0xa3124a=>{const _0x29046f={_0x413dc8:0x36b},_0x2da7ce={_0x2928ee:0x3a8};function _0xb5647c(_0x1b9596,_0x2702ed,_0x4345e4,_0x34f7c4){return _0x19af9b(_0x1b9596,_0x2702ed-_0x2da7ce._0x2928ee,_0x4345e4-0x1ca,_0x34f7c4-0x1e3);}if(_0xa3124a===0x1&&_0xc4aead===''){_0x27c82b([]);return;}if(_0xa3124a!==0x0&&_0xa3124a!==0x1){_0x11f34b(new Error(_0x5696e9(_0x19fabb._0x32d705,_0x19fabb._0x15057c,_0x19fabb._0x2c5c59,_0x19fabb._0x2af6ff)+_0x364700));return;}function _0x5696e9(_0x1dbc42,_0x5915d1,_0x5df2e1,_0x2f41d2){return _0x19af9b(_0x2f41d2,_0x5df2e1-_0x29046f._0x413dc8,_0x5df2e1-0x14e,_0x2f41d2-0x16f);}const _0x5d2daf=_0x2f3bd2['limit']??0x64,_0x23e0df=[];for(const _0x221991 of _0xc4aead['split'](/\r?\n/)){if(_0x23e0df[_0x5696e9(_0x19fabb._0x27df49,0x3f2,0x4b9,_0x19fabb._0x274390)]>=_0x5d2daf)break;const _0x1b04b8=parseMatchLine(_0x221991,_0x11525b);if(_0x1b04b8)_0x23e0df['push'](_0x1b04b8);}_0x27c82b(_0x23e0df);}),_0x4196fa['on'](_0x19af9b(_0x5c0d5b._0xa87316,_0x5c0d5b._0x4759e2,_0x5c0d5b._0x2a3459,-0xb),_0x11f34b);});}function createGlobTool(_0x4a93e2={}){const _0x107b10={_0x97cd69:0x1c2,_0x5cce0e:0x201,_0x2611ce:0x16a,_0x1b3147:0x1a7,_0x1e8139:0x141,_0x7c27b4:0x14a,_0x529618:0x1f6,_0x4f78cc:0x243,_0x3084a5:0x118,_0xca0c9c:0x85,_0x112ad6:0xce,_0x20d99a:0x1cb,_0x1e915c:0x24e,_0x51e2fc:0xb6,_0x430a9e:0x1f7,_0x253a2d:0x179,_0x40169e:0x1b3,_0x478f95:0x21c,_0x52e732:0x211,_0xa06312:0x151,_0x1b3118:0x1c4,_0x21cf5c:0x47},_0x255fed={_0x157247:0x3d7,_0xa958f2:0x4f3,_0x2fc9e6:0x550,_0x10a235:0x33c,_0x1827f7:0x429,_0x6d1f81:0x4a6,_0x50af9a:0x6e0,_0x3877af:0x686,_0x38359a:0x46c,_0x1369e3:0x3c4,_0x562b70:0x595,_0x37c228:0x4c1,_0xa1af93:0x521,_0x59de41:0x3e7,_0x10ade1:0x4f7,_0x175f00:0x51b,_0xec80db:0x47f,_0x328a31:0x42b,_0x1ec6b1:0x323,_0x144ab1:0x42a,_0x452257:0x4f8,_0x3f643a:0x572,_0x5d85d4:0x5c8,_0xb276b9:0x42f,_0x46e281:0x512,_0x504dd7:0x574,_0x1869a4:0x4f8,_0x376f6a:0x55e,_0x4332bb:0x50f,_0x38cfa1:0x469,_0xff41a7:0x4c3,_0x300f6b:0x3d0,_0x43341e:0x48b,_0x30cfd6:0x3b3},_0x24e3a0={_0x26b9b5:0x496,_0x49080e:0x1a5},_0x52969e={_0x261348:0x158,_0x5e0baa:0x1ee},_0x182210=_0x1196ea[_0x2a3ecd(0xf3,_0x107b10._0x97cd69,_0x107b10._0x5cce0e,0x12a)](_0x4a93e2[_0x1b82b4(0x1d7,0x198,_0x107b10._0x2611ce,_0x107b10._0x1b3147)]??process[_0x2a3ecd(0x2f3,0x2d1,0x1c3,0x333)]());function _0x1b82b4(_0x58bb4b,_0x38afe0,_0x537215,_0x31ecdf){return _0x255f51(_0x31ecdf- -0x4a3,_0x38afe0-_0x52969e._0x261348,_0x537215,_0x31ecdf-_0x52969e._0x5e0baa);}const _0x12f616=(_0x4a93e2[_0x1b82b4(_0x107b10._0x1e8139,_0x107b10._0x7c27b4,_0x107b10._0x529618,_0x107b10._0x4f78cc)]??[])[_0x2a3ecd(_0x107b10._0x3084a5,0x127,0x206,_0x107b10._0xca0c9c)](_0x30b28f=>_0x1196ea[_0x2a3ecd(0xf3,0x210,0x45,0x9d)](_0x30b28f));function _0x2a3ecd(_0x327268,_0x19afad,_0x269920,_0x3559b5){return _0x255f51(_0x327268- -_0x24e3a0._0x26b9b5,_0x19afad-_0x24e3a0._0x49080e,_0x19afad,_0x3559b5-0x4a);}const _0x431e7d=_0x4a93e2[_0x2a3ecd(0xf9,0x4d,0x1a6,_0x107b10._0x112ad6)]??0x64,_0x14aa0f=_0x4a93e2[_0x2a3ecd(0x27c,0x306,0x159,0x31a)]??_0x1b82b4(0x1cb,0x2dc,_0x107b10._0x20d99a,_0x107b10._0x1e915c);return defineTool({'name':_0x14aa0f,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x1b82b4(0x19a,_0x107b10._0x51e2fc,0xf3,0x1ba),'properties':{'pattern':{'type':'string'},'path':{'type':_0x1b82b4(_0x107b10._0x430a9e,_0x107b10._0x253a2d,_0x107b10._0x40169e,_0x107b10._0x478f95)},'limit':{'type':_0x2a3ecd(0x173,0x119,_0x107b10._0x52e732,0x187)}},'required':[_0x2a3ecd(_0x107b10._0xa06312,_0x107b10._0x1b3118,_0x107b10._0x21cf5c,0x244)]},async *'execute'(_0x36d9f0){const _0x573c62={_0xd274fd:0x92,_0x3a6372:0x147,_0x3c3bac:0x37f},_0x4ce873={_0x3bffb3:0xf7};if(_0x36d9f0['pattern'][_0x4a1325(_0x255fed._0x157247,_0x255fed._0xa958f2,0x42d,0x3ec)]()['length']===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x4d327c=resolveAllowedPath(_0x182210,_0x12f616,_0x36d9f0[_0x211a65(_0x255fed._0x2fc9e6,_0x255fed._0x10a235,_0x255fed._0x1827f7,_0x255fed._0x6d1f81)]??'.'),_0x812a83=await _0x222d03(_0x4d327c)['catch'](()=>null);if(!_0x812a83?.[_0x4a1325(_0x255fed._0x50af9a,0x7a7,_0x255fed._0x3877af,0x5bd)]())throw new ToolExecutionError(_0x211a65(0x4ac,_0x255fed._0x38359a,0x4c0,_0x255fed._0x1369e3)+(_0x36d9f0[_0x4a1325(_0x255fed._0x562b70,0x3bc,_0x255fed._0x37c228,0x43b)]??'.'),{'path':_0x36d9f0[_0x211a65(0x479,0x527,0x429,0x53a)]??'.'});const _0x3170d3=_0x36d9f0[_0x4a1325(0x3e0,_0x255fed._0xa1af93,0x46b,0x44c)]??_0x431e7d;function _0x211a65(_0x4f95a9,_0x27f608,_0x5b2e6d,_0x1de675){return _0x2a3ecd(_0x5b2e6d-0x2da,_0x1de675,_0x5b2e6d-0x17e,_0x1de675-_0x4ce873._0x3bffb3);}const _0x2280fc=Math[_0x211a65(0x48a,0x2fa,_0x255fed._0x59de41,0x2e5)](0x1,Math[_0x4a1325(_0x255fed._0x10ade1,_0x255fed._0x175f00,_0x255fed._0x38359a,0x4dc)](_0x3170d3)),_0x38e20d=[];let _0x277aa1=![];for await(const _0x3e4710 of files({'cwd':_0x4d327c,'glob':[_0x36d9f0[_0x211a65(0x558,_0x255fed._0xec80db,_0x255fed._0x328a31,_0x255fed._0x1ec6b1)]]})){if(_0x38e20d[_0x211a65(0x4d9,_0x255fed._0x144ab1,_0x255fed._0x452257,_0x255fed._0x3f643a)]>=_0x2280fc){_0x277aa1=!![];break;}const _0x19faa3=await _0x222d03(_0x1196ea['join'](_0x4d327c,_0x3e4710))['catch'](()=>null);_0x38e20d[_0x4a1325(_0x255fed._0x5d85d4,0x5e2,0x58c,0x5d0)]({'path':_0x3e4710,'mtime':_0x19faa3?.[_0x4a1325(0x45d,_0x255fed._0xb276b9,_0x255fed._0x46e281,0x444)]??0x0});}_0x38e20d['sort']((_0x3b07d7,_0x192694)=>_0x192694[_0x211a65(0x44c,0x2ba,0x3c6,0x4b4)]-_0x3b07d7[_0x4a1325(0x41b,0x33c,0x45e,0x379)]);function _0x4a1325(_0x3a992f,_0x1d20c4,_0x32dd77,_0x427329){return _0x1b82b4(_0x3a992f-_0x573c62._0xd274fd,_0x1d20c4-_0x573c62._0x3a6372,_0x427329,_0x32dd77-_0x573c62._0x3c3bac);}const _0x278e82=_0x38e20d['map'](_0x512a26=>_0x512a26['path']),_0x1b8fc1=_0x278e82[_0x211a65(_0x255fed._0x504dd7,0x555,_0x255fed._0x1869a4,0x4a3)]===0x0?_0x211a65(_0x255fed._0x376f6a,0x611,_0x255fed._0x4332bb,0x52a)+_0x36d9f0[_0x4a1325(0x5a3,_0x255fed._0x38cfa1,_0x255fed._0xff41a7,0x58c)]:''+_0x278e82[_0x4a1325(0x4ac,_0x255fed._0x300f6b,0x4cc,0x3f7)]('\x0a')+(_0x277aa1?_0x211a65(_0x255fed._0x43341e,0x40d,0x530,0x40b):'');return yield createToolOutput(_0x1b8fc1,{'pattern':_0x36d9f0[_0x4a1325(_0x255fed._0x30cfd6,0x500,_0x255fed._0xff41a7,0x54f)],'searchPath':_0x1196ea['relative'](_0x182210,_0x4d327c)||'.','matches':_0x278e82,'count':_0x278e82['length'],'truncated':_0x277aa1}),void 0x0;}});}import{stat as _0x27f255}from'fs/promises';import*as _0x35e43d from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x359411={}){const _0x464daf={_0xeadcb9:0x4e0,_0x42ebb3:0x467,_0x1aceed:0x48c,_0x30f979:0x403,_0x5b082e:0x2ab,_0x2c5df5:0x302,_0x1fe372:0x239,_0x3f1cb4:0x13c,_0x1d9e68:0x25f,_0x23876d:0x127,_0x3d5ff5:0x46,_0x2c7fdd:0x28b,_0x28873d:0x534,_0x5894f3:0x540,_0x5d19e7:0x540,_0x543d9f:0x699,_0x392c4e:0x5b2,_0x13c858:0x51f,_0x28f623:0x54e,_0xb7ee08:0x535,_0x5c3a53:0x5b3,_0x3e7a62:0x597,_0x153930:0x47f,_0x161a53:0x663,_0x36b9bf:0x597,_0x26e264:0x47a,_0x1759a4:0x6bd,_0x5ee2fb:0x474,_0x451cd6:0x3cc,_0x2142b9:0x57f,_0x164984:0x48e,_0x51502c:0x4bf},_0x380733={_0x4bed44:0xa1,_0x5e7cdd:0x110,_0x447825:0x16,_0x500dfe:0x43b,_0x3d2608:0x4b3,_0x45bd72:0x5b5,_0x45537b:0x603,_0x112853:0x51b,_0x378519:0x42b,_0x35aaf7:0x19c,_0x110cae:0x237,_0x7a7dad:0x2ae,_0x2bdd0f:0x41,_0x20848c:0xb8,_0x4730b6:0x3f7,_0x38b13a:0x5cc,_0x439068:0x10,_0x4406de:0x481,_0x111db0:0x108,_0x512483:0x5e,_0x319d29:0x1f,_0x2fe29a:0x1d,_0x3ef192:0x7e,_0x3fa48e:0x5c1,_0x5acdac:0x4e6,_0x2745c4:0x5ce,_0x21480e:0xda,_0x4ee495:0x118,_0x3e5fd1:0x129,_0x56c0b7:0x6de,_0x26488c:0x658,_0x4a100c:0x5e7,_0x167a33:0x6fb,_0x3babb3:0xf6,_0x23233e:0x6bb,_0x2e30bd:0x688,_0x4b8d31:0x473,_0x4c21f5:0x93,_0x36af1d:0x135,_0x3b30ca:0x9a,_0x931d02:0x55,_0x9ba5f9:0x624,_0x51b63c:0x607,_0x33b439:0xeb,_0x7f013a:0x2a6,_0x1b0496:0x680,_0x2862ef:0x1a,_0x388c73:0x177,_0x17d66f:0x1fe,_0x48d66c:0x6a6,_0x183489:0xc0,_0x4306fd:0x1b1,_0x27cece:0x164,_0xa0dc16:0x182,_0x1dc4aa:0x131,_0x3cd1d1:0x5ac,_0x207f95:0x183,_0x4870f0:0x2ee,_0x43ed8d:0x1bf,_0x52d11b:0x520,_0x5a7849:0x584,_0x3c82ea:0x47f,_0x14e36f:0x585,_0x22d385:0x62c,_0x366ad3:0x66a,_0x3c0849:0x633,_0x320fea:0x65c,_0x5672ef:0x9e,_0x46fd29:0x26,_0x30e17a:0x4b2,_0x4c320f:0x4e8,_0x1d5774:0x51d,_0x5b137d:0x559,_0x37a4cb:0x5ed,_0x4ba541:0x687,_0x1036c6:0xc1,_0x4787cf:0x16b,_0xc7f9dc:0x186,_0x39b916:0x213,_0x5599d3:0x26e,_0x2c9fb6:0xdd,_0x336088:0x186,_0xbd42e1:0x457},_0x54ece1={_0x2b4913:0x49a},_0x44fef8={_0x3a5c58:0x172};function _0x4b0b1c(_0x95dc49,_0x1ffedc,_0x2ca650,_0x4a4ecb){return _0x173565(_0x95dc49-0x190,_0x1ffedc-0xe7,_0x4a4ecb,_0x2ca650-0xe5);}const _0x5d1143=_0x35e43d[_0x3fada7(0x350,_0x464daf._0xeadcb9,0x4ca,0x461)](_0x359411[_0x3fada7(_0x464daf._0x42ebb3,_0x464daf._0x1aceed,_0x464daf._0x30f979,0x522)]??process[_0x4b0b1c(0x310,_0x464daf._0x5b082e,_0x464daf._0x2c5df5,_0x464daf._0x1fe372)]()),_0xad0160=(_0x359411[_0x4b0b1c(0x27a,_0x464daf._0x3f1cb4,_0x464daf._0x1d9e68,0x2b2)]??[])[_0x4b0b1c(0x8d,0x1ef,_0x464daf._0x23876d,_0x464daf._0x3d5ff5)](_0x3aa326=>_0x35e43d[_0x3fada7(0x47a,0x371,0x3fc,0x461)](_0x3aa326));function _0x3fada7(_0x32241e,_0x47075e,_0x432d5e,_0x1b7323){return _0x173565(_0x32241e-0xed,_0x47075e-_0x44fef8._0x3a5c58,_0x47075e,_0x1b7323-0x444);}const _0x229b09=_0x359411['limit']??0x64,_0x3c249a=_0x359411[_0x4b0b1c(0x3b6,0x2c6,_0x464daf._0x2c7fdd,0x2f5)]??_0x3fada7(_0x464daf._0x28873d,_0x464daf._0x5894f3,0x5c9,0x5d1);return defineTool({'name':_0x3c249a,'description':_0x3fada7(0x5a9,_0x464daf._0x5d19e7,_0x464daf._0x543d9f,0x592),'inputSchema':{'type':_0x3fada7(_0x464daf._0x392c4e,_0x464daf._0x13c858,_0x464daf._0x28f623,_0x464daf._0xb7ee08),'properties':{'pattern':{'type':_0x3fada7(_0x464daf._0x5c3a53,0x56c,0x6a0,_0x464daf._0x3e7a62)},'path':{'type':_0x3fada7(_0x464daf._0x153930,0x58d,_0x464daf._0x161a53,_0x464daf._0x36b9bf)},'include':{'type':_0x3fada7(_0x464daf._0x26e264,0x4a1,_0x464daf._0x1759a4,0x597)},'limit':{'type':_0x3fada7(0x53e,_0x464daf._0x5ee2fb,_0x464daf._0x451cd6,0x4e1)},'context':{'type':'number'}},'required':[_0x3fada7(_0x464daf._0x2142b9,_0x464daf._0x164984,0x566,_0x464daf._0x51502c)]},async *'execute'(_0x332ac6){const _0x444a5c={_0x274d52:0x6d};if(_0x332ac6[_0x2747b8(-0x49,_0x380733._0x4bed44,_0x380733._0x5e7cdd,0x25)][_0x2747b8(-0xe8,0x2f,_0x380733._0x447825,-0x71)]()['length']===0x0)throw new ToolExecutionError(_0x2f0b3a(_0x380733._0x500dfe,0x4e5,_0x380733._0x3d2608,_0x380733._0x45bd72),{});function _0x2f0b3a(_0x195154,_0x50a4e2,_0x2c8e72,_0x5cfdcb){return _0x3fada7(_0x195154-_0x444a5c._0x274d52,_0x5cfdcb,_0x2c8e72-0x187,_0x2c8e72-0x5e);}const _0x8c2324=resolveAllowedPath(_0x5d1143,_0xad0160,_0x332ac6[_0x2f0b3a(0x442,_0x380733._0x45537b,_0x380733._0x112853,_0x380733._0x378519)]??'.'),_0x4b8d2e=await _0x27f255(_0x8c2324)['catch'](()=>null),_0x150f4e=_0x4b8d2e?.['isFile']()??![],_0x500872=_0x4b8d2e?.[_0x2747b8(_0x380733._0x35aaf7,_0x380733._0x110cae,_0x380733._0x7a7dad,0x1e8)]()??![];if(!_0x150f4e&&!_0x500872)throw new ToolExecutionError(_0x2747b8(0x2d,-_0x380733._0x2bdd0f,0x4b,_0x380733._0x20848c)+(_0x332ac6[_0x2f0b3a(0x56c,_0x380733._0x4730b6,_0x380733._0x112853,_0x380733._0x38b13a)]??'.'),{'path':_0x332ac6[_0x2747b8(-_0x380733._0x439068,0x36,-0x82,0x23)]??'.'});const _0x18f144=_0x332ac6[_0x2f0b3a(0x39d,0x3eb,0x4c5,_0x380733._0x4406de)]??_0x229b09,_0x51f864=Math[_0x2747b8(-_0x380733._0x111db0,-_0x380733._0x512483,-0x107,-_0x380733._0x319d29)](0x1,Math[_0x2747b8(-0xe0,-_0x380733._0x2fe29a,_0x380733._0x3ef192,-0x32)](_0x18f144));function _0x2747b8(_0x4d7fc5,_0x309067,_0x461772,_0x58051e){return _0x3fada7(_0x4d7fc5-0x155,_0x309067,_0x461772-0x23,_0x58051e- -_0x54ece1._0x2b4913);}const _0x274383=await search({'cwd':_0x500872?_0x8c2324:_0x35e43d[_0x2f0b3a(0x448,_0x380733._0x3fa48e,_0x380733._0x5acdac,_0x380733._0x2745c4)](_0x8c2324),'pattern':_0x332ac6[_0x2747b8(-_0x380733._0x21480e,_0x380733._0x4ee495,_0x380733._0x3e5fd1,0x25)],'glob':_0x500872?_0x332ac6['include']:void 0x0,'limit':_0x51f864,'file':_0x150f4e?_0x8c2324:void 0x0,'context':_0x332ac6[_0x2f0b3a(0x58b,0x5da,0x555,0x629)]}),_0x3a06df=new Map();for(const _0xd1c9b1 of _0x274383){if(!_0x3a06df[_0x2f0b3a(_0x380733._0x56c0b7,_0x380733._0x26488c,_0x380733._0x4a100c,_0x380733._0x167a33)](_0xd1c9b1[_0x2747b8(_0x380733._0x3babb3,_0x380733._0x5e7cdd,0x188,0x135)])){const _0x56961b=await _0x27f255(_0xd1c9b1[_0x2f0b3a(0x6b5,_0x380733._0x23233e,0x62d,_0x380733._0x2e30bd)])[_0x2f0b3a(0x54d,0x457,0x529,_0x380733._0x4b8d31)](()=>null);_0x3a06df['set'](_0xd1c9b1[_0x2747b8(_0x380733._0x4c21f5,0x1b7,0x205,_0x380733._0x36af1d)],{'matches':[],'mtime':_0x56961b?.['mtimeMs']??0x0});}_0x3a06df['get'](_0xd1c9b1[_0x2747b8(0x21e,_0x380733._0x3b30ca,_0x380733._0x931d02,0x135)])?.['matches'][_0x2747b8(0x10e,0x197,0x1ac,0xee)](_0xd1c9b1);}const _0x402787=[..._0x3a06df['entries']()][_0x2f0b3a(_0x380733._0x9ba5f9,0x42a,0x54e,_0x380733._0x51b63c)]((_0xb2450f,_0x20f81d)=>_0x20f81d[0x1][_0x2747b8(0x61,0x6a,0x59,-0x40)]-_0xb2450f[0x1][_0x2747b8(-0x55,-0x76,0x65,-0x40)]),_0x3c3d44=_0x274383[_0x2747b8(0xe4,_0x380733._0x33b439,_0x380733._0x7f013a,0x182)](_0x5b4590=>!_0x5b4590['isContext'])[_0x2f0b3a(0x510,0x4de,0x5ea,_0x380733._0x1b0496)],_0x32cf1f=_0x274383[_0x2747b8(0x55,0x12f,-_0x380733._0x2862ef,0xf2)]>=_0x51f864,_0x4ed898=_0x150f4e?_0x35e43d['dirname'](_0x8c2324):_0x8c2324;let _0x148232='';if(_0x274383[_0x2747b8(_0x380733._0x388c73,0x1c4,_0x380733._0x17d66f,0xf2)]===0x0)_0x148232=_0x2f0b3a(0x5d5,0x6e1,_0x380733._0x48d66c,0x5bb)+_0x332ac6[_0x2747b8(-0xd6,-0x9f,_0x380733._0x183489,0x25)];else{_0x148232=_0x2747b8(_0x380733._0x4306fd,_0x380733._0x27cece,_0x380733._0xa0dc16,_0x380733._0x1dc4aa)+_0x3c3d44+_0x2f0b3a(_0x380733._0x3cd1d1,0x5b4,0x6c5,0x757)+(_0x3c3d44===0x1?'':'es')+'\x0a';for(const [_0x2984fb,_0x1b5699]of _0x402787){const _0x571b6f=_0x150f4e?_0x35e43d[_0x2747b8(_0x380733._0x207f95,_0x380733._0x4870f0,0x2bc,_0x380733._0x43ed8d)](_0x2984fb):_0x35e43d['relative'](_0x4ed898,_0x2984fb);_0x148232+='\x0a'+_0x571b6f+':\x0a';for(const _0x5666c7 of _0x1b5699[_0x2f0b3a(0x668,0x692,0x57a,_0x380733._0x52d11b)]){const _0x12dc42=_0x5666c7['lineText']['length']>MAX_LINE_LENGTH?_0x5666c7[_0x2f0b3a(_0x380733._0x5a7849,_0x380733._0x3c82ea,_0x380733._0x14e36f,0x67c)]['slice'](0x0,MAX_LINE_LENGTH)+_0x2747b8(0x1b0,0x142,-0x6f,0xab):_0x5666c7['lineText'],_0x68e94f=_0x5666c7['isContext']?'\x20\x20':'>\x20';_0x148232+=_0x68e94f+_0x2f0b3a(_0x380733._0x22d385,0x5f3,0x5e2,_0x380733._0x366ad3)+_0x5666c7[_0x2f0b3a(0x5fa,0x6df,_0x380733._0x3c0849,_0x380733._0x320fea)]+':\x20'+_0x12dc42+'\x0a';}}_0x32cf1f&&(_0x148232+=_0x2747b8(_0x380733._0x5672ef,0x68,0x126,0x12a));}const _0x2a5fc2={'searchPath':_0x35e43d[_0x2747b8(0x12,0x101,0xde,_0x380733._0x46fd29)](_0x5d1143,_0x8c2324)||'.','pattern':_0x332ac6[_0x2f0b3a(_0x380733._0x30e17a,_0x380733._0x4c320f,_0x380733._0x1d5774,_0x380733._0x5b137d)],'matchCount':_0x3c3d44,'fileCount':_0x3a06df[_0x2f0b3a(0x576,_0x380733._0x37a4cb,0x5bd,0x4cd)],'truncated':_0x32cf1f};return _0x500872&&_0x332ac6[_0x2f0b3a(0x6e0,0x67c,0x67e,_0x380733._0x4ba541)]!==void 0x0&&(_0x2a5fc2[_0x2747b8(0x208,_0x380733._0x1036c6,_0x380733._0x4787cf,_0x380733._0xc7f9dc)]=_0x332ac6[_0x2747b8(_0x380733._0x39b916,_0x380733._0x5599d3,_0x380733._0x2c9fb6,_0x380733._0x336088)]),yield createToolOutput(_0x148232[_0x2f0b3a(0x380,_0x380733._0xbd42e1,0x487,0x3bb)](),_0x2a5fc2),void 0x0;}});}import{readdir as _0x8d28af,readFile as _0x5bf814,stat as _0x18baa5}from'fs/promises';import*as _0x569313 from'path';import*as _0x1332c9 from'yaml';async function countTextLines(_0x51b00b){const _0x3356f3={_0x3b906c:0x4bb,_0x3c063d:0x5e2,_0x217b37:0x555,_0x54dc68:0x2c7,_0x18e690:0x340,_0x36780f:0x530,_0x44781e:0x4eb,_0x1e73e5:0x38d,_0x51613a:0x519,_0x47bb32:0x3a7,_0x156ac4:0x492,_0x3f1831:0x5aa},_0x43d7dc={_0x46f770:0xa0},_0x238142={_0x34d987:0x134},_0xf7c21=await _0x5bf814(_0x51b00b)[_0x1678b2(_0x3356f3._0x3b906c,_0x3356f3._0x3c063d,_0x3356f3._0x217b37,0x3eb)](()=>null);if(!_0xf7c21||isProbablyBinary(_0xf7c21))return void 0x0;function _0x1678b2(_0x30cfcf,_0x235a98,_0x15c47e,_0x5c2c4b){return _0x255f51(_0x30cfcf- -0x138,_0x235a98-_0x238142._0x34d987,_0x235a98,_0x5c2c4b-0x182);}function _0x2ad576(_0x33c7da,_0x1c1ee3,_0x1be18b,_0xb2bbd6){return _0x255f51(_0xb2bbd6- -0x273,_0x1c1ee3-_0x43d7dc._0x46f770,_0x1c1ee3,_0xb2bbd6-0x1bd);}return _0xf7c21[_0x2ad576(0x3fa,_0x3356f3._0x54dc68,0x281,_0x3356f3._0x18e690)](_0x1678b2(0x59a,_0x3356f3._0x36780f,0x62f,_0x3356f3._0x44781e))[_0x1678b2(0x467,_0x3356f3._0x1e73e5,_0x3356f3._0x51613a,_0x3356f3._0x47bb32)](/\r?\n/)[_0x1678b2(0x57c,_0x3356f3._0x156ac4,0x4fd,_0x3356f3._0x3f1831)];}function createLsTool(_0x19e1d3={}){const _0x28b123={_0x4ab213:0x13,_0x503965:0xbc,_0x26c5b1:0x40d,_0x2f3199:0x3e7,_0x1f406c:0x328,_0x5717f9:0x2bc,_0x25e49b:0x1f3,_0x4c2ecb:0x4a9,_0xa06619:0x447,_0x10b9e3:0x476,_0x522714:0xe1,_0x2819f6:0xe6,_0x323bdb:0x99,_0x2eed4c:0x245,_0x2052fe:0x175,_0x3f4442:0x149,_0x5ef271:0x26f,_0x3cbe15:0x230,_0x4d8495:0x2af,_0x34c587:0x158,_0x9183ad:0x460,_0x353959:0x559},_0x580ef4={_0x14994d:0x1c1,_0x5d78f6:0x81,_0x1a7b6f:0x5c8,_0x2c4406:0x562,_0x5817f6:0x3a4,_0xb227b9:0x475,_0x22cbb1:0x50a,_0x3cd55b:0x99,_0x12223a:0xb2,_0x5f2b26:0xf5,_0x685abd:0xcb,_0x4cf3b9:0x5c,_0x49f5d7:0x100,_0x18cd4a:0x25,_0x540cb7:0x633,_0x105abd:0x55e,_0x291814:0x20c,_0x4cb504:0x166,_0x4d667f:0x1b,_0x7ecc3d:0x134,_0x1a019b:0x3c,_0x21c9ec:0x61f,_0x28a56e:0x632,_0x528aa5:0x4f5,_0x19b0cb:0x56d,_0x8c2a3e:0x52d,_0x3a93f2:0x2f,_0x5401d6:0x1a,_0x56df57:0xe7,_0x1b76c1:0xcf,_0x59bd16:0x169,_0xa7d8b1:0x11,_0xbdaac5:0x7f,_0x21bd80:0x19,_0x5d645e:0x62,_0x45dd87:0x9b,_0x185e2e:0x600,_0x10f6d0:0x62a,_0x53b679:0x573,_0x18b9b8:0x148,_0x4ee851:0x4a1,_0x5dee10:0x564,_0x15cdbe:0x182,_0x110da9:0x9f,_0x375288:0x69a,_0x2307a8:0x59a},_0x51da93={_0xbd1d39:0x4cd},_0x1254e6=_0x569313[_0x39c121(_0x28b123._0x4ab213,_0x28b123._0x503965,0x134,0xa8)](_0x19e1d3[_0x21109e(_0x28b123._0x26c5b1,0x4bc,_0x28b123._0x2f3199,_0x28b123._0x1f406c)]??process[_0x39c121(0x2df,_0x28b123._0x5717f9,_0x28b123._0x25e49b,0x296)]());function _0x39c121(_0x3f7972,_0x4a0eb7,_0x2cb014,_0x5d3ae9){return _0x255f51(_0x4a0eb7- -_0x51da93._0xbd1d39,_0x4a0eb7-0xc8,_0x5d3ae9,_0x5d3ae9-0x2);}const _0x3e9475=(_0x19e1d3[_0x21109e(_0x28b123._0x4c2ecb,_0x28b123._0xa06619,_0x28b123._0x10b9e3,0x3ec)]??[])[_0x39c121(0x175,_0x28b123._0x522714,_0x28b123._0x2819f6,_0x28b123._0x323bdb)](_0x66ac32=>_0x569313[_0x39c121(0x17f,0xbc,0xd6,-0x6f)](_0x66ac32)),_0x122298=_0x19e1d3[_0x39c121(0x2bf,_0x28b123._0x2eed4c,0x294,_0x28b123._0x2052fe)]??'Ls';function _0x21109e(_0x2913e2,_0x43cf90,_0x41cc4a,_0x592fa7){return _0x173565(_0x2913e2-0xd,_0x43cf90-0xf5,_0x592fa7,_0x2913e2-0x32f);}return defineTool({'name':_0x122298,'description':_0x39c121(_0x28b123._0x3f4442,_0x28b123._0x5ef271,0x181,_0x28b123._0x3cbe15),'inputSchema':{'type':_0x39c121(_0x28b123._0x4d8495,0x190,_0x28b123._0x34c587,0x111),'properties':{'path':{'type':_0x21109e(0x482,_0x28b123._0x9183ad,_0x28b123._0x353959,0x3ae)},'limit':{'type':'number'}}},async *'execute'(_0x1613e9){const _0x48e924={_0x165398:0x1c4},_0x2c0099={_0x5146c9:0x123,_0x1d8d10:0xda,_0x5dd688:0x74},_0x5171bb=_0x1613e9['path']??'.';function _0x529589(_0x45d67f,_0x32415d,_0x445c77,_0x498309){return _0x21109e(_0x445c77-_0x2c0099._0x5146c9,_0x32415d-_0x2c0099._0x1d8d10,_0x445c77-_0x2c0099._0x5dd688,_0x45d67f);}function _0x10ca49(_0xd86560,_0x55a7ee,_0x41f290,_0x5858f7){return _0x21109e(_0x5858f7- -0x3d8,_0x55a7ee-0xfb,_0x41f290-_0x48e924._0x165398,_0x55a7ee);}const _0xf2e66b=resolveAllowedPath(_0x1254e6,_0x3e9475,_0x5171bb),_0x5a4c16=await _0x18baa5(_0xf2e66b)['catch'](()=>null);if(!_0x5a4c16?.[_0x10ca49(0xb6,_0x580ef4._0x14994d,_0x580ef4._0x5d78f6,0x195)]())throw new ToolExecutionError(_0x529589(_0x580ef4._0x1a7b6f,0x592,_0x580ef4._0x2c4406,0x5ed)+_0x5171bb,{'path':_0x5171bb});const _0x92d4b2=_0x1613e9[_0x529589(0x44c,_0x580ef4._0x5817f6,_0x580ef4._0xb227b9,_0x580ef4._0x22cbb1)]??0x3e8,_0x5f00f9=Math['min'](Math[_0x10ca49(-_0x580ef4._0x3cd55b,-_0x580ef4._0x12223a,-_0x580ef4._0x5f2b26,-0x72)](Math['trunc'](_0x92d4b2),0x1),0x2710),_0x45ce08=await _0x8d28af(_0xf2e66b),_0x3a07a7=[];for(const _0x23ca06 of _0x45ce08[_0x10ca49(0x16c,0xdb,0x150,_0x580ef4._0x685abd)](0x0,_0x5f00f9)){const _0x5cb756=_0x569313[_0x10ca49(-_0x580ef4._0x4cf3b9,-_0x580ef4._0x49f5d7,0x66,-_0x580ef4._0x18cd4a)](_0xf2e66b,_0x23ca06),_0x427873=await _0x18baa5(_0x5cb756)[_0x529589(0x4d9,0x3e9,0x4d9,0x494)](()=>null);if(!_0x427873)continue;let _0x5f1d6b=_0x529589(0x43b,_0x580ef4._0x540cb7,_0x580ef4._0x105abd,0x48a);if(_0x427873[_0x10ca49(0x78,_0x580ef4._0x291814,_0x580ef4._0x4cb504,0x153)]())_0x5f1d6b='file';else{if(_0x427873['isDirectory']())_0x5f1d6b='directory';else{if(_0x427873[_0x10ca49(_0x580ef4._0x4d667f,_0x580ef4._0x7ecc3d,_0x580ef4._0x1a019b,0xc9)]())_0x5f1d6b=_0x529589(0x407,_0x580ef4._0x21c9ec,0x528,_0x580ef4._0x28a56e);}}const _0x45651d={'name':_0x23ca06,'type':_0x5f1d6b,'size':_0x427873[_0x529589(_0x580ef4._0x528aa5,0x47a,_0x580ef4._0x19b0cb,_0x580ef4._0x8c2a3e)],'mtime':_0x427873[_0x10ca49(-0x22,-0x2d,-_0x580ef4._0x3a93f2,0x21)],'mode':_0x427873[_0x10ca49(0x31,0x8a,-_0x580ef4._0x5401d6,_0x580ef4._0x56df57)]},_0x51c900=_0x5f1d6b===_0x10ca49(0x139,_0x580ef4._0x1b76c1,_0x580ef4._0x5f2b26,_0x580ef4._0x59bd16)?await countTextLines(_0x5cb756):void 0x0;if(_0x51c900!==void 0x0)_0x45651d[_0x10ca49(-_0x580ef4._0xa7d8b1,_0x580ef4._0xbdaac5,_0x580ef4._0x21bd80,-0x8b)]=_0x51c900;_0x3a07a7[_0x10ca49(0x19d,-0x93,_0x580ef4._0x5d645e,_0x580ef4._0x45dd87)](_0x45651d);}_0x3a07a7['sort']((_0x431ba8,_0x8d019f)=>_0x431ba8['name'][_0x529589(0x54d,0x511,0x513,0x5f6)](_0x8d019f[_0x10ca49(0x1d1,0xd,0x37,0xfd)]));const _0xa5e18d={'path':_0x5171bb,'total':_0x3a07a7[_0x529589(_0x580ef4._0x185e2e,_0x580ef4._0x10f6d0,0x59a,_0x580ef4._0x53b679)],'truncated':_0x45ce08['length']>_0x5f00f9,'entries':_0x3a07a7};return yield createToolOutput(_0x1332c9[_0x10ca49(0x136,0x239,0x119,_0x580ef4._0x18b9b8)](_0xa5e18d,{'indent':0x2,'lineWidth':0x0})[_0x529589(0x549,0x39d,_0x580ef4._0x4ee851,_0x580ef4._0x5dee10)](),{'path':_0x5171bb,'total':_0x3a07a7[_0x10ca49(_0x580ef4._0x15cdbe,-0x5a,0x118,_0x580ef4._0x110da9)],'truncated':_0x45ce08[_0x529589(_0x580ef4._0x375288,0x4ad,_0x580ef4._0x2307a8,0x50a)]>_0x5f00f9,'limit':_0x5f00f9,'entries':_0x3a07a7}),void 0x0;}});}import{stat as _0x54ba6d}from'fs/promises';import _0xf4016c from'path';import{fileURLToPath as _0xaed60}from'url';function severityName(_0x1d8947){const _0x3c38a4={_0x510ae8:0x163,_0x3fe215:0x173,_0x6332b6:0x156,_0x4befb6:0x521,_0x4c8a8b:0x3de,_0x420b0c:0x22d,_0x12d114:0x21d},_0x476d6e={_0x4b36b3:0x19b,_0x1e4c9:0xa5,_0x1de116:0x20c},_0x2ce8b0={_0x1eb0e6:0x11e};function _0x564af3(_0x3d796c,_0x49c67a,_0x14cc83,_0x1dfe4b){return _0x173565(_0x3d796c-0x1d6,_0x49c67a-0x166,_0x14cc83,_0x49c67a-_0x2ce8b0._0x1eb0e6);}function _0x25183e(_0x55db78,_0x2880e4,_0x17ea22,_0x794c33){return _0x173565(_0x55db78-_0x476d6e._0x4b36b3,_0x2880e4-_0x476d6e._0x1e4c9,_0x2880e4,_0x17ea22-_0x476d6e._0x1de116);}switch(_0x1d8947){case 0x1:return _0x25183e(_0x3c38a4._0x510ae8,0x1af,0x245,0x27f);case 0x2:return _0x564af3(0x19f,_0x3c38a4._0x3fe215,0x11e,_0x3c38a4._0x6332b6);case 0x3:return _0x25183e(0x34d,_0x3c38a4._0x4befb6,0x42e,_0x3c38a4._0x4c8a8b);case 0x4:return'Hint';default:return _0x564af3(0x16f,_0x3c38a4._0x420b0c,_0x3c38a4._0x12d114,0x2f5);}}function formatSingleHover(_0x2f2519){const _0x4b5a49={_0x48f1e6:0x14d,_0x3a1e24:0x7e,_0x51167f:0x43,_0x2b925e:0x6,_0x12c564:0xb6,_0x1d8f81:0x168,_0x4953bf:0x1f6,_0x17bae5:0xb2,_0x37a363:0x7f,_0x231d77:0x7,_0x525d0e:0xef,_0x3f3b60:0x137,_0x279bdb:0x1fd,_0x177e06:0x25e,_0x3c90a6:0x33c,_0x5bbc95:0x2b7,_0x34daf6:0x2d7,_0x302043:0x2fa,_0x20a1df:0x26c,_0x39da92:0x133},_0x20c475={_0x189473:0xf5,_0x1e75e9:0x1e7},_0x3f5fce=_0x2f2519[_0x24349a(_0x4b5a49._0x48f1e6,0xf5,_0x4b5a49._0x3a1e24,0x176)];function _0x4ad834(_0x5c20e5,_0x4c8dc4,_0x79cc46,_0x19847d){return _0x173565(_0x5c20e5-0x9d,_0x4c8dc4-0xb7,_0x79cc46,_0x4c8dc4- -0x159);}if(typeof _0x3f5fce===_0x4ad834(-_0x4b5a49._0x51167f,-_0x4b5a49._0x2b925e,_0x4b5a49._0x12c564,-0x18))return _0x3f5fce;if(Array[_0x4ad834(-0x297,-_0x4b5a49._0x1d8f81,-_0x4b5a49._0x4953bf,-_0x4b5a49._0x17bae5)](_0x3f5fce))return _0x3f5fce['map'](_0x40feeb=>typeof _0x40feeb==='string'?_0x40feeb:_0x40feeb[_0x4ad834(-0x113,-0x4c,-0x159,0x62)])[_0x4ad834(0xc4,_0x4b5a49._0x37a363,_0x4b5a49._0x231d77,_0x4b5a49._0x525d0e)](Boolean)[_0x4ad834(-_0x4b5a49._0x3f3b60,-0xd5,-_0x4b5a49._0x279bdb,0x43)]('\x0a\x0a');if('kind'in _0x3f5fce)return _0x3f5fce[_0x24349a(_0x4b5a49._0x177e06,0x198,_0x4b5a49._0x3c90a6,_0x4b5a49._0x5bbc95)];function _0x24349a(_0x307237,_0x425a11,_0x970528,_0x34a561){return _0x255f51(_0x307237- -0x41b,_0x425a11-_0x20c475._0x189473,_0x425a11,_0x34a561-_0x20c475._0x1e75e9);}return _0x3f5fce[_0x24349a(0x30d,_0x4b5a49._0x34daf6,_0x4b5a49._0x302043,_0x4b5a49._0x20a1df)]?'```'+_0x3f5fce['language']+'\x0a'+_0x3f5fce[_0x24349a(0x25e,_0x4b5a49._0x39da92,0x2c1,0x24a)]+'\x0a```':_0x3f5fce['value'];}function formatHover(_0x4f59bf){const _0x315a15={_0xdc0874:0x133,_0x5cfbcf:0x1ef,_0x2f6300:0x136,_0x1a7dae:0x9c,_0x478134:0x68c,_0x5ef459:0x653,_0x30e4a1:0x1ec},_0x15e9e3={_0x4b3395:0xa4},_0x70d7db={_0x40effd:0x512,_0xcd2681:0x16};function _0x2bb1a2(_0x19c809,_0x30e7d7,_0x1621b0,_0x5b699e){return _0x255f51(_0x30e7d7- -_0x70d7db._0x40effd,_0x30e7d7-0x108,_0x1621b0,_0x5b699e-_0x70d7db._0xcd2681);}function _0x3dc052(_0xdcc808,_0x16141b,_0x1f0db8,_0x525346){return _0x173565(_0xdcc808-_0x15e9e3._0x4b3395,_0x16141b-0xfb,_0xdcc808,_0x1f0db8-0x4ea);}if(_0x4f59bf[_0x2bb1a2(_0x315a15._0xdc0874,0x1a2,0x252,_0x315a15._0x5cfbcf)]===0x0)return _0x2bb1a2(_0x315a15._0x2f6300,0x1ef,0x1d8,0x144);return _0x4f59bf[_0x2bb1a2(0xb7,_0x315a15._0x1a7dae,0x1a1,-0x10)](formatSingleHover)[_0x3dc052(0x5fe,_0x315a15._0x478134,0x56e,_0x315a15._0x5ef459)](_0x2bb1a2(0x1b1,_0x315a15._0x30e4a1,0xf7,0x2b2));}function locationPath(_0x52343e){const _0x2a9e7b={_0x24552e:0x3fd,_0x5b8b6a:0x23f,_0x201a43:0xa3},_0x270627={_0x370360:0x27,_0x9132bc:0x108};if(!_0x52343e[_0x434d72(0x32b,0x22a,0x376,_0x2a9e7b._0x24552e)](_0x434d72(0x1c6,_0x2a9e7b._0x5b8b6a,_0x2a9e7b._0x201a43,0xf1)))return _0x52343e;function _0x2925b5(_0x4e8d5e,_0x6d6cae,_0x17118e,_0x27343a){return _0x173565(_0x4e8d5e-0x1f0,_0x6d6cae-0xa1,_0x6d6cae,_0x27343a- -0x1a8);}function _0x434d72(_0x59cbb1,_0x1d50c9,_0x16679d,_0x503790){return _0x255f51(_0x59cbb1- -0x3e0,_0x1d50c9-_0x270627._0x370360,_0x1d50c9,_0x503790-_0x270627._0x9132bc);}return _0xaed60(_0x52343e);}function formatLocations(_0x10ed81){const _0x6579d4={_0x173879:0x577,_0x1c6537:0x504,_0x1ac3ad:0x45f,_0x5ebf1d:0x4a7,_0x32b3a4:0x590},_0x478abe={_0x3579f2:0x1c3,_0x519c25:0x95,_0x3ad6be:0x3d,_0x751e74:0x11b,_0x2f9eb0:0xd},_0x6e11e0={_0x1f11e1:0x490},_0x3481a1={_0x2e97f2:0xb1,_0x5653c6:0x37},_0x3d3221={_0x244700:0x149,_0x5cda27:0xe4,_0x3c5330:0x174};function _0x220743(_0x3bb79e,_0x11f40b,_0x4fff25,_0x1b41c0){return _0x255f51(_0x11f40b- -_0x3d3221._0x244700,_0x11f40b-_0x3d3221._0x5cda27,_0x1b41c0,_0x1b41c0-_0x3d3221._0x3c5330);}if(_0x10ed81['length']===0x0)return _0x220743(_0x6579d4._0x173879,0x48a,0x46c,_0x6579d4._0x1c6537);function _0x38eacd(_0x21e364,_0xc4384e,_0x3e7b71,_0x4a3484){return _0x173565(_0x21e364-_0x3481a1._0x2e97f2,_0xc4384e-_0x3481a1._0x5653c6,_0x4a3484,_0xc4384e-0x3a6);}return _0x10ed81['map'](_0x2d78ad=>{const _0x107c32={_0x33fee2:0x161,_0x3dfd80:0x6e};function _0x11893a(_0xff3215,_0xb06a2d,_0x35e121,_0x591d40){return _0x220743(_0xff3215-0x12f,_0xff3215- -_0x6e11e0._0x1f11e1,_0x35e121-0xc0,_0x591d40);}function _0x52cbdf(_0x27b55f,_0x2ff541,_0x33ea57,_0x447497){return _0x220743(_0x27b55f-_0x107c32._0x33fee2,_0x33ea57- -_0x107c32._0x3dfd80,_0x33ea57-0x118,_0x2ff541);}const _0x1faace=_0x2d78ad[_0x11893a(0x11d,0x81,0x58,0x230)]['start'];return locationPath(_0x2d78ad[_0x11893a(_0x478abe._0x3579f2,0x111,0x1a3,_0x478abe._0x519c25)])+':'+(_0x1faace[_0x11893a(0x2d,_0x478abe._0x3ad6be,-0x93,0xe4)]+0x1)+':'+(_0x1faace[_0x11893a(0x6a,_0x478abe._0x751e74,_0x478abe._0x2f9eb0,0x21)]+0x1);})[_0x220743(_0x6579d4._0x1ac3ad,_0x6579d4._0x5ebf1d,0x5cf,_0x6579d4._0x32b3a4)]('\x0a');}function isDocumentSymbol(_0x381d8b){const _0x519f14={_0x4d93da:0x5e9,_0x55bc79:0x3cc},_0xf8d4e4={_0x523c05:0x150};function _0x299521(_0x244f7e,_0x4b87b5,_0x5f2d8b,_0x2d027d){return _0x173565(_0x244f7e-_0xf8d4e4._0x523c05,_0x4b87b5-0x118,_0x244f7e,_0x5f2d8b-0x35c);}return _0x299521(0x4e1,_0x519f14._0x4d93da,0x4e6,_0x519f14._0x55bc79)in _0x381d8b&&'selectionRange'in _0x381d8b;}function formatSymbols(_0x2b00a8){const _0x393fc6={_0x326b8d:0x8b,_0x581f1b:0x9b,_0x45008c:0x5b6,_0x427282:0x52b,_0x27405a:0x498},_0x1d18c={_0x522f93:0x195,_0x269827:0x83,_0x5809d8:0xe5,_0x2b24d0:0xc,_0x53f24e:0xbb,_0x35a64a:0x121,_0x3c381f:0x29,_0x58d22e:0x46,_0x1c00d4:0x50,_0x5c55d4:0x18c,_0x30c4dc:0x5d,_0x7772c3:0x84,_0x18f401:0x149,_0x2f4328:0x168,_0x103775:0xb0,_0x1bc333:0x1b5,_0xa34141:0x63,_0x163222:0xf1,_0x4a146b:0x6b,_0x4fdafc:0xca,_0xb3d566:0x14,_0xea5c04:0x16,_0x3890ef:0x136,_0x35741c:0x8a,_0x1dfb35:0x7f,_0x35e718:0x121,_0x1c4d41:0x40,_0x19c3cd:0xd,_0x234f68:0x1b3,_0x55320f:0x22,_0x36aef0:0x4c,_0x263ebf:0x73},_0x37d1be={_0x2f9518:0x159},_0x3e6796={_0x4fcf68:0xc4,_0x36b192:0x100,_0x219864:0x145};if(_0x2b00a8['length']===0x0)return _0x5bea52(-0x4a,-_0x393fc6._0x326b8d,_0x393fc6._0x581f1b,0xaf);function _0x5bea52(_0x1b8335,_0x1ac0b2,_0x3d6f1c,_0x24c7ee){return _0x173565(_0x1b8335-_0x3e6796._0x4fcf68,_0x1ac0b2-_0x3e6796._0x36b192,_0x3d6f1c,_0x1b8335- -_0x3e6796._0x219864);}function _0x2d0a7f(_0x4135bc,_0x5e9f28,_0x22c194,_0x4fd265){return _0x173565(_0x4135bc-0x16b,_0x5e9f28-_0x37d1be._0x2f9518,_0x5e9f28,_0x22c194-0x414);}return _0x2b00a8['map'](_0x32bf28=>{const _0x1ced13={_0x58492e:0x1bd},_0xd8a86c={_0x53a011:0x108};function _0x51b604(_0x559e69,_0xfab134,_0x19d671,_0x7db777){return _0x5bea52(_0x7db777- -0x5,_0xfab134-0x46,_0xfab134,_0x7db777-_0xd8a86c._0x53a011);}if(isDocumentSymbol(_0x32bf28))return _0x32bf28[_0x3da865(0x15c,_0x1d18c._0x522f93,_0x1d18c._0x269827,_0x1d18c._0x5809d8)]+'\x20('+_0x32bf28[_0x51b604(_0x1d18c._0x2b24d0,-_0x1d18c._0x53f24e,-_0x1d18c._0x35a64a,-0xb8)]+_0x3da865(-_0x1d18c._0x3c381f,0x104,_0x1d18c._0x58d22e,0x59)+(_0x32bf28['range'][_0x51b604(_0x1d18c._0x1c00d4,_0x1d18c._0x5c55d4,-_0x1d18c._0x30c4dc,_0x1d18c._0x7772c3)][_0x51b604(-_0x1d18c._0x18f401,-_0x1d18c._0x2f4328,-0x36,-_0x1d18c._0x103775)]+0x1)+':'+(_0x32bf28[_0x3da865(0x18c,-0x16,0x67,0x1c)][_0x3da865(_0x1d18c._0x1bc333,0x17b,0xab,_0x1d18c._0xa34141)]['character']+0x1)+']';function _0x3da865(_0x196981,_0x1b5c25,_0x2c1775,_0x26e7bf){return _0x5bea52(_0x2c1775-0x22,_0x1b5c25-_0x1ced13._0x58492e,_0x1b5c25,_0x26e7bf-0xde);}return _0x32bf28[_0x51b604(-0x4d,-0x15,-0x3e,0x5c)]+'\x20('+_0x32bf28[_0x51b604(-_0x1d18c._0x163222,-0x12f,-_0x1d18c._0x4a146b,-0xb8)]+')\x20'+locationPath(_0x32bf28[_0x3da865(-0x191,-0xe5,-0x8a,-0x121)][_0x3da865(_0x1d18c._0x4fdafc,-_0x1d18c._0xb3d566,0x10d,-_0x1d18c._0xea5c04)])+':'+(_0x32bf28[_0x3da865(-_0x1d18c._0x3890ef,-0x5d,-_0x1d18c._0x35741c,-_0x1d18c._0x1dfb35)][_0x51b604(0x8a,-0x7f,_0x1d18c._0x35e718,_0x1d18c._0x1c4d41)]['start']['line']+0x1)+':'+(_0x32bf28['location'][_0x51b604(_0x1d18c._0x19c3cd,0x12a,0x12d,0x40)][_0x51b604(0x97,0x1a7,_0x1d18c._0x234f68,_0x1d18c._0x7772c3)][_0x51b604(-_0x1d18c._0x55320f,-0xf6,_0x1d18c._0x36aef0,-_0x1d18c._0x263ebf)]+0x1);})[_0x2d0a7f(_0x393fc6._0x45008c,_0x393fc6._0x427282,_0x393fc6._0x27405a,0x56b)]('\x0a');}function formatDiagnostics(_0xbb44af){const _0x3a62d4={_0x4f9b64:0x125,_0xf70a80:0xce,_0x560395:0xb5,_0x8a3f6d:0x1f,_0x1a8dc5:0x116,_0x5e33fa:0x58,_0x3ae30f:0x28},_0x3a03cf={_0x3950e7:0x59c,_0x2bd8cb:0x48d,_0x5d6d45:0x15a,_0x4b86ef:0x3a7,_0x366064:0x45b,_0x5bb734:0x340,_0x6ada64:0x34d},_0x1d0536={_0x369b51:0x58f,_0x8ff377:0xf0,_0x1b4f3a:0xd3};function _0x4f8930(_0x5d010a,_0x56ca94,_0xf7e5fa,_0x42f131){return _0x255f51(_0x5d010a- -_0x1d0536._0x369b51,_0x56ca94-_0x1d0536._0x8ff377,_0xf7e5fa,_0x42f131-_0x1d0536._0x1b4f3a);}if(_0xbb44af[_0x4f8930(_0x3a62d4._0x4f9b64,_0x3a62d4._0xf70a80,_0x3a62d4._0x560395,0x60)]===0x0)return'No\x20diagnostics';function _0x3916f1(_0x123ad6,_0x538232,_0x35f4da,_0x2801d6){return _0x255f51(_0x2801d6- -0x6f6,_0x538232-0x3a,_0x35f4da,_0x2801d6-0x98);}return _0xbb44af[_0x4f8930(_0x3a62d4._0x8a3f6d,0x21,-0xca,_0x3a62d4._0x1a8dc5)](_0x49c578=>{const _0x3601f5={_0x45c522:0xd6,_0x1d64ad:0x16c};function _0x2a6311(_0x4584db,_0x350f64,_0x370df4,_0x3c3c5c){return _0x3916f1(_0x4584db-_0x3601f5._0x45c522,_0x350f64-_0x3601f5._0x1d64ad,_0x4584db,_0x350f64-0x452);}function _0x5c5ac5(_0x559e2d,_0x3c1e07,_0x80c786,_0x11913d){return _0x4f8930(_0x3c1e07- -0x196,_0x3c1e07-0x96,_0x559e2d,_0x11913d-0x95);}const _0x575945=_0x49c578['range'][_0x2a6311(_0x3a03cf._0x3950e7,0x496,0x4fa,_0x3a03cf._0x2bd8cb)];return severityName(_0x49c578[_0x5c5ac5(-0x73,-0x136,-0x1fc,-_0x3a03cf._0x5d6d45)])+'\x20['+(_0x575945[_0x2a6311(0x2e8,0x362,0x355,0x485)]+0x1)+':'+(_0x575945['character']+0x1)+']\x20'+_0x49c578[_0x2a6311(_0x3a03cf._0x4b86ef,_0x3a03cf._0x366064,_0x3a03cf._0x5bb734,_0x3a03cf._0x6ada64)];})[_0x4f8930(0x61,-_0x3a62d4._0x5e33fa,0xa4,-_0x3a62d4._0x3ae30f)]('\x0a');}function formatIncomingCalls(_0x384d24){const _0x246153={_0x202858:0x2bc,_0x4ee3e2:0x3d9,_0x94ae59:0x38e,_0x2d8f33:0x375,_0x11bec5:0x31b,_0x3e5e84:0x319,_0x35a771:0x1eb},_0x3ad71a={_0xe82bd9:0x338,_0x117a88:0x150},_0x8f2007={_0x230339:0xe8,_0x35b89f:0x22f};function _0x2e64fc(_0x27dbd5,_0x31af4e,_0x520f63,_0x46ec22){return _0x173565(_0x27dbd5-_0x8f2007._0x230339,_0x31af4e-0x186,_0x46ec22,_0x520f63-_0x8f2007._0x35b89f);}function _0xa7fed4(_0x488e5d,_0x14a211,_0x22cb92,_0x533011){return _0x255f51(_0x14a211- -_0x3ad71a._0xe82bd9,_0x14a211-0x15d,_0x533011,_0x533011-_0x3ad71a._0x117a88);}if(_0x384d24[_0x2e64fc(0x440,_0x246153._0x202858,0x377,_0x246153._0x4ee3e2)]===0x0)return _0xa7fed4(_0x246153._0x94ae59,0x3ac,_0x246153._0x2d8f33,0x4b4);return _0x384d24[_0xa7fed4(_0x246153._0x11bec5,0x276,_0x246153._0x3e5e84,0x169)](_0xf6842e=>_0xf6842e['from'][_0xa7fed4(0x3b7,0x3da,0x2d3,0x2b5)])[_0x2e64fc(0x2da,0x1bb,0x2b3,_0x246153._0x35a771)]('\x0a');}function formatOutgoingCalls(_0x1946cb){const _0x1cbdbe={_0x512f1f:0x37b,_0x222ab1:0x446,_0x4e843d:0x329,_0x43b1ba:0x15d,_0xb04d6b:0x1d4},_0x54fbbc={_0x104267:0x41c};function _0x276e65(_0x3e88ef,_0x1c16cb,_0x299ec1,_0x29a09b){return _0x255f51(_0x29a09b- -0x3bb,_0x1c16cb-0xbc,_0x3e88ef,_0x29a09b-0x16c);}if(_0x1946cb[_0x405063(0x2f8,0x228,_0x1cbdbe._0x512f1f,0x298)]===0x0)return _0x276e65(0x403,0x296,_0x1cbdbe._0x222ab1,_0x1cbdbe._0x4e843d);function _0x405063(_0x51cf8c,_0x44694b,_0x367f66,_0x4537aa){return _0x255f51(_0x4537aa- -_0x54fbbc._0x104267,_0x44694b-0x150,_0x51cf8c,_0x4537aa-0x11d);}return _0x1946cb[_0x276e65(0x2c7,0xe2,0x288,0x1f3)](_0x4e901a=>_0x4e901a['to'][_0x276e65(0x2c0,0x2bc,0x3a6,0x357)])[_0x405063(0x124,_0x1cbdbe._0x43b1ba,0xd4,_0x1cbdbe._0xb04d6b)]('\x0a');}function toStructured(_0x524d4c){const _0x27d8c0={_0x3c0b03:0xae,_0x34c9b7:0x1a0,_0x3bea5d:0xf,_0x1dee62:0x491,_0x3b25f6:0x34e,_0x3160a7:0x3e1},_0x4b1f74={_0x29b8db:0x37c},_0x5e9f20={_0x40f2b9:0x1bc,_0x3c2383:0x164};function _0x3f8d43(_0x1bf77b,_0x302fb1,_0x35763e,_0x282965){return _0x173565(_0x1bf77b-0x1a7,_0x302fb1-_0x5e9f20._0x40f2b9,_0x35763e,_0x1bf77b- -_0x5e9f20._0x3c2383);}function _0x2935d7(_0x2b19c9,_0x23ac1f,_0x2abed8,_0x5b4f41){return _0x255f51(_0x5b4f41- -_0x4b1f74._0x29b8db,_0x23ac1f-0x16c,_0x23ac1f,_0x5b4f41-0x66);}return JSON[_0x3f8d43(-0xdc,-_0x27d8c0._0x3c0b03,-_0x27d8c0._0x34c9b7,_0x27d8c0._0x3bea5d)](JSON[_0x2935d7(_0x27d8c0._0x1dee62,_0x27d8c0._0x3b25f6,0x321,_0x27d8c0._0x3160a7)](_0x524d4c));}async function assertFile(_0x211366){const _0x437373={_0x4de280:0x7d5,_0x1da9bf:0x6b5},_0x1e5bf={_0x44d6d7:0x518},_0x26017b=await _0x54ba6d(_0x211366);function _0x201d14(_0x14d716,_0x32099d,_0x1a4fc2,_0xc2b8d1){return _0x173565(_0x14d716-0xc4,_0x32099d-0x156,_0xc2b8d1,_0x32099d-_0x1e5bf._0x44d6d7);}if(!_0x26017b[_0x201d14(_0x437373._0x4de280,0x714,0x7f3,_0x437373._0x1da9bf)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x211366,{'path':_0x211366});}function validatePosition(_0x31851e,_0x48db87){const _0x2821ea={_0x1201d7:0x4e7,_0x2afbd6:0x5cb},_0x4983a7={_0x198829:0x135},_0x3392a0={_0x56ff19:0x17b};if(!Number['isInteger'](_0x31851e)||_0x31851e<0x1)throw new ToolExecutionError(_0x2bdc8f(0x630,0x5a9,0x6be,_0x2821ea._0x1201d7),{'line':_0x31851e});function _0x882876(_0x4f7b77,_0x305600,_0x23ac66,_0x4128bc){return _0x255f51(_0x23ac66- -0x21d,_0x305600-0x163,_0x4128bc,_0x4128bc-_0x3392a0._0x56ff19);}function _0x2bdc8f(_0x5bf8d8,_0x1ee00a,_0x37a1ba,_0x567ac1){return _0x173565(_0x5bf8d8-_0x4983a7._0x198829,_0x1ee00a-0x1d3,_0x567ac1,_0x1ee00a-0x520);}if(!Number[_0x882876(0x443,_0x2821ea._0x2afbd6,0x4d8,0x52b)](_0x48db87)||_0x48db87<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x48db87});}function createLspTool(_0x208594={}){const _0x5178d5={_0x16106d:0x20d,_0x20f3a9:0x281,_0x41dea6:0x1cf,_0x4a03b0:0x211,_0x33801b:0x40d,_0x4a9271:0x3d9,_0x47e48c:0x460,_0x37f3ce:0x2ed,_0x26c0d4:0x45f,_0x272fd7:0x195,_0x40e04a:0x11e,_0x1b7066:0x578,_0x254686:0x5fd,_0x19d13b:0x36b,_0x159c54:0x2ea,_0x4dceb1:0x5ed,_0x5f323f:0x510,_0x453b13:0x548,_0x37ae2e:0x547,_0x5f1a16:0x2f0,_0x54712b:0x391,_0xac90e:0x50d,_0x3584a7:0x560,_0x7d88ca:0x43e,_0x46b6da:0x23a,_0x8d8898:0x24a,_0x45364c:0x4dd,_0x2eeda9:0x433,_0x2ca1f4:0x450,_0x15c908:0x4de,_0x476663:0x5ef,_0x199beb:0x62b,_0x1482ad:0x54f,_0x2364fe:0x418,_0x23dde9:0x290,_0xebd0cb:0x2b3,_0x1087a3:0x612,_0x13cbe1:0x5aa,_0x17781f:0x421,_0x4b1b3b:0x3a7,_0x5342ec:0x367,_0x39f31c:0x37b,_0x16c3f8:0x3e6,_0x45216a:0x318,_0x54663a:0x457,_0xcbbb9c:0x52e},_0x226f76={_0x9054f7:0x3f3,_0x36accf:0x46f,_0x82a5ae:0x445,_0x3cbfb8:0x349,_0x15fd5b:0x1cf,_0x279130:0x497,_0x504af3:0x51f,_0x1eeb65:0x3f0,_0xbe3e26:0x83,_0x475cf6:0x4d,_0x3f95df:0xa1,_0x5219e8:0x11,_0xa629c2:0x2cb,_0x140c9b:0x2ad,_0x9eac60:0x16d,_0x62c3b6:0x3aa,_0x19c610:0x97,_0x55bdb:0x20a,_0x2f6703:0xee,_0x29b021:0x137,_0x1b684:0x2a,_0x17da3a:0x3a1,_0x10f0da:0x3e0,_0x8243cb:0xc2,_0x59dcd6:0x10,_0x33df3a:0x153,_0x23bb70:0x334,_0xaeabd8:0x33a,_0x49e787:0x480,_0x4a592f:0x37d,_0x281b4a:0xaf,_0x43983b:0x196,_0x2bf679:0x4f6,_0x2a8175:0x1da,_0x47879d:0x2c9,_0x4dc4de:0x49c,_0x55adc4:0x3fe,_0x1bdb1f:0x440,_0x1173d8:0x3db,_0x2ce350:0xea,_0x5e84a6:0x179,_0x3ad909:0x1b9,_0x8bf7e8:0x9c,_0x8cbb78:0x17c,_0x4daf5c:0x60,_0x330cc6:0x216,_0x5e9bba:0x404,_0x1a4571:0x2fc,_0x572960:0x3a6,_0x4a6f2a:0x1f,_0x4e5df1:0x99,_0x493286:0x8a,_0x3ffc31:0x3da,_0xbc0734:0x4a3,_0x7a429:0x3f6,_0x48e9d8:0x3fd,_0x129222:0x3eb,_0x31fdb8:0x3ec,_0x127bec:0x15e,_0x19f12a:0xbe,_0x3b029d:0x4a2,_0x1ccc02:0x407,_0x25f7c0:0x5a7,_0x43d04a:0x508,_0x42f294:0x423,_0x5e35b8:0x46d,_0x2ae7f9:0x62f,_0x8c1900:0x508,_0x8778f2:0x293,_0xc1dbe9:0x33f},_0x5c44e7={_0x2c922:0x1a,_0x24d5b4:0x190},_0x35fed3={_0x572785:0xfa,_0x5e3b25:0x2c,_0x4e3b78:0x174},_0x18b1ba={_0x525d5f:0x15b,_0x366fbf:0x177},_0xad386a={_0x3e9df7:0x115,_0x1bef78:0x5e},_0x1f05b1=_0xf4016c[_0x237c1f(_0x5178d5._0x16106d,0x312,_0x5178d5._0x20f3a9,_0x5178d5._0x41dea6)](_0x208594[_0x237c1f(0x2ce,0x2df,0x323,_0x5178d5._0x4a03b0)]??process[_0x237c1f(_0x5178d5._0x33801b,_0x5178d5._0x4a9271,_0x5178d5._0x47e48c,0x4f2)]());function _0x179eba(_0x53047a,_0x27cc77,_0x57af8a,_0x4f7ee1){return _0x255f51(_0x4f7ee1- -_0xad386a._0x3e9df7,_0x27cc77-_0xad386a._0x1bef78,_0x27cc77,_0x4f7ee1-0x166);}const _0x196666=(_0x208594[_0x237c1f(0x36a,0x23e,_0x5178d5._0x37f3ce,_0x5178d5._0x26c0d4)]??[])[_0x237c1f(0x232,0x226,_0x5178d5._0x272fd7,_0x5178d5._0x40e04a)](_0x2a48a6=>_0xf4016c['resolve'](_0x2a48a6)),_0x283015=_0x208594[_0x179eba(0x506,0x591,_0x5178d5._0x1b7066,_0x5178d5._0x254686)]??_0x179eba(_0x5178d5._0x19d13b,0x4cb,0x589,0x461);function _0x237c1f(_0x3d8ef2,_0x305b36,_0x259dd6,_0x878289){return _0x255f51(_0x3d8ef2- -0x37c,_0x305b36-_0x18b1ba._0x525d5f,_0x878289,_0x878289-_0x18b1ba._0x366fbf);}return defineTool({'name':_0x283015,'description':_0x237c1f(0x3ba,0x2ed,_0x5178d5._0x159c54,0x3ca),'inputSchema':{'type':_0x179eba(_0x5178d5._0x4dceb1,_0x5178d5._0x5f323f,0x57e,_0x5178d5._0x453b13),'properties':{'operation':{'type':'string','enum':[_0x179eba(0x5e5,0x572,0x592,_0x5178d5._0x37ae2e),_0x237c1f(0x30f,0x2de,_0x5178d5._0x5f1a16,0x3b8),_0x237c1f(0x41e,_0x5178d5._0x54712b,0x3c2,_0x5178d5._0xac90e),_0x179eba(0x54f,0x66c,0x4c1,_0x5178d5._0x3584a7),_0x237c1f(0x386,0x2cd,_0x5178d5._0x7d88ca,0x29b),_0x237c1f(0x225,_0x5178d5._0x46b6da,_0x5178d5._0x8d8898,0x233),'prepareCallHierarchy',_0x237c1f(0x415,0x4fb,_0x5178d5._0x45364c,_0x5178d5._0x2eeda9),_0x179eba(_0x5178d5._0x2ca1f4,_0x5178d5._0x15c908,0x4f2,0x4eb),_0x179eba(_0x5178d5._0x476663,_0x5178d5._0x199beb,0x4eb,_0x5178d5._0x1482ad)]},'filePath':{'type':_0x237c1f(0x343,0x246,_0x5178d5._0x2364fe,0x3cc)},'line':{'type':'number'},'character':{'type':_0x237c1f(0x28d,_0x5178d5._0x23dde9,_0x5178d5._0xebd0cb,0x25c)},'query':{'type':_0x179eba(0x5a6,0x661,_0x5178d5._0x1087a3,_0x5178d5._0x13cbe1)}},'required':[_0x237c1f(_0x5178d5._0x17781f,_0x5178d5._0x4b1b3b,0x470,_0x5178d5._0x5342ec),_0x237c1f(_0x5178d5._0x39f31c,_0x5178d5._0x16c3f8,0x468,_0x5178d5._0x45216a),'line',_0x179eba(0x49e,0x55b,_0x5178d5._0x54663a,_0x5178d5._0xcbbb9c)]},async *'execute'(_0x477515){const _0x130740=_0x208594[_0x2e622d(0x3ec,0x4bc,_0x226f76._0x9054f7,0x42f)];if(!_0x130740)throw new ToolExecutionError(_0x2e622d(0x61b,0x584,0x4fd,0x4f9));if(!_0x130740[_0x2e622d(0x321,0x4ff,_0x226f76._0x36accf,_0x226f76._0x82a5ae)]())throw new ToolExecutionError(_0x2e622d(_0x226f76._0x3cbfb8,_0x226f76._0x15fd5b,0x397,0x2fc));const _0x3636fb=_0x477515[_0x2e622d(_0x226f76._0x279130,0x48a,_0x226f76._0x504af3,0x514)];validatePosition(_0x477515[_0x2e622d(0x303,_0x226f76._0x1eeb65,0x2d2,0x37d)],_0x477515[_0x45fe6e(_0x226f76._0xbe3e26,-_0x226f76._0x475cf6,-_0x226f76._0x3f95df,_0x226f76._0x5219e8)]);if(_0x3636fb==='workspaceSymbol'){if(!_0x477515['query']?.['trim']())throw new ToolExecutionError(_0x2e622d(_0x226f76._0xa629c2,0x306,_0x226f76._0x140c9b,0x30f));const _0x46a51a=await _0x130740[_0x45fe6e(0x142,0x1b6,0xf9,0xfb)](_0x477515[_0x45fe6e(_0x226f76._0x9eac60,0x214,0x1c6,0x212)][_0x2e622d(0x2c7,0x370,_0x226f76._0x62c3b6,0x2c8)]());return yield createToolOutput(formatSymbols(_0x46a51a),{'operation':_0x3636fb,'query':_0x477515[_0x45fe6e(0x16d,_0x226f76._0x19c610,_0x226f76._0x55bdb,_0x226f76._0x2f6703)],'symbols':_0x46a51a}),void 0x0;}function _0x2e622d(_0x2b8f2c,_0x2d15ce,_0x2cbfe6,_0x9f90b1){return _0x179eba(_0x2b8f2c-_0x35fed3._0x572785,_0x2d15ce,_0x2cbfe6-_0x35fed3._0x5e3b25,_0x9f90b1- -_0x35fed3._0x4e3b78);}const _0x25c225=resolveAllowedPath(_0x1f05b1,_0x196666,_0x477515[_0x45fe6e(_0x226f76._0x29b021,0x11f,0x171,_0x226f76._0x1b684)]);await assertFile(_0x25c225);if(!await _0x130740[_0x2e622d(_0x226f76._0x17da3a,_0x226f76._0x10f0da,0x329,0x2ef)](_0x25c225))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x477515[_0x45fe6e(_0x226f76._0x29b021,0x235,_0x226f76._0x8243cb,_0x226f76._0x59dcd6)],{'filePath':_0x477515['filePath']});await _0x130740[_0x45fe6e(_0x226f76._0x33df3a,0x9b,0xb5,0x88)](_0x25c225,!![]);function _0x45fe6e(_0xb90931,_0x15f113,_0x588625,_0x3630ec){return _0x237c1f(_0xb90931- -0x244,_0x15f113-_0x5c44e7._0x2c922,_0x588625-_0x5c44e7._0x24d5b4,_0x588625);}const _0x38ed33={'file':_0x25c225,'line':_0x477515[_0x2e622d(_0x226f76._0x23bb70,_0x226f76._0xaeabd8,_0x226f76._0x49e787,_0x226f76._0x4a592f)]-0x1,'character':_0x477515[_0x45fe6e(0x83,_0x226f76._0x281b4a,0x193,_0x226f76._0x43983b)]-0x1};switch(_0x3636fb){case _0x2e622d(0x628,_0x226f76._0x2bf679,0x612,0x511):{const _0x483e74=await _0x130740[_0x45fe6e(_0x226f76._0x2a8175,0x246,0x106,_0x226f76._0x47879d)](_0x38ed33);return yield createToolOutput(formatHover(_0x483e74),{'operation':_0x3636fb,'filePath':_0x25c225,'hover':_0x483e74}),void 0x0;}case _0x2e622d(_0x226f76._0x4dc4de,_0x226f76._0x55adc4,_0x226f76._0x1bdb1f,_0x226f76._0x1173d8):{const _0x5e0b23=await _0x130740[_0x45fe6e(_0x226f76._0x2ce350,_0x226f76._0x5e84a6,-0x19,_0x226f76._0x3ad909)](_0x25c225);return yield createToolOutput(formatDiagnostics(_0x5e0b23),{'operation':_0x3636fb,'filePath':_0x25c225,'diagnostics':_0x5e0b23}),void 0x0;}case _0x45fe6e(_0x226f76._0x8bf7e8,_0x226f76._0x8cbb78,0x183,-_0x226f76._0x4daf5c):{const _0x47ab69=await _0x130740[_0x45fe6e(0x1e9,0x1f5,_0x226f76._0x330cc6,0x2b6)](_0x38ed33);return yield createToolOutput(formatLocations(_0x47ab69),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x47ab69}),void 0x0;}case _0x45fe6e(0xcb,0x1b8,0x15a,0x5d):{const _0x39c7c8=await _0x130740[_0x2e622d(_0x226f76._0x5e9bba,_0x226f76._0x1a4571,0x356,_0x226f76._0x572960)](_0x38ed33);return yield createToolOutput(formatLocations(_0x39c7c8),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x39c7c8}),void 0x0;}case _0x45fe6e(-_0x226f76._0x4a6f2a,0x12,_0x226f76._0x4e5df1,_0x226f76._0x493286):{const _0x37c44=await _0x130740[_0x2e622d(0x3b7,_0x226f76._0x3ffc31,_0x226f76._0xbc0734,_0x226f76._0x7a429)](_0x38ed33);return yield createToolOutput(formatLocations(_0x37c44),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x37c44}),void 0x0;}case _0x2e622d(0x3d8,0x45a,0x49e,0x3ec):{const _0x2a1347=await _0x130740[_0x2e622d(_0x226f76._0x48e9d8,0x2cb,_0x226f76._0x129222,_0x226f76._0x31fdb8)](_0x25c225);return yield createToolOutput(formatSymbols(_0x2a1347),{'operation':_0x3636fb,'filePath':_0x25c225,'symbols':_0x2a1347}),void 0x0;}case _0x45fe6e(_0x226f76._0x127bec,_0x226f76._0x19f12a,0x222,0xf8):{const _0x576eb6=await _0x130740[_0x2e622d(0x5ac,_0x226f76._0x3b029d,0x3d9,0x495)](_0x38ed33);return yield createToolOutput(formatSymbols(_0x576eb6),{'operation':_0x3636fb,'filePath':_0x25c225,'symbols':toStructured(_0x576eb6)}),void 0x0;}case _0x2e622d(0x3f5,_0x226f76._0x1ccc02,_0x226f76._0x25f7c0,_0x226f76._0x43d04a):{const _0xd4ad9d=await _0x130740[_0x2e622d(_0x226f76._0x42f294,_0x226f76._0x5e35b8,_0x226f76._0x2ae7f9,_0x226f76._0x8c1900)](_0x38ed33);return yield createToolOutput(formatIncomingCalls(_0xd4ad9d),{'operation':_0x3636fb,'filePath':_0x25c225,'calls':toStructured(_0xd4ad9d)}),void 0x0;}case _0x2e622d(0x304,0x43c,0x321,0x377):{const _0xa425c6=await _0x130740[_0x2e622d(_0x226f76._0x8778f2,0x2a0,_0x226f76._0xc1dbe9,0x377)](_0x38ed33);return yield createToolOutput(formatOutgoingCalls(_0xa425c6),{'operation':_0x3636fb,'filePath':_0x25c225,'calls':toStructured(_0xa425c6)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x2991da,readFile as _0x48d106,writeFile as _0x40f8cd}from'fs/promises';import{join as _0x4f8ee}from'path';function sanitizeStorageKey(_0x4bd454){const _0x3fe424={_0x5c7c66:0x5f1,_0x46321c:0x4bd,_0x36f5d7:0x4fb,_0x2f1f06:0x47e,_0x13c99d:0x5b6,_0x579c0f:0x4c0},_0x357376={_0x2f60af:0x316},_0x32d8fb={_0x5effce:0x153,_0x482c43:0x31};function _0x5090d3(_0x3bc90f,_0x2ce38b,_0x265053,_0x439aa9){return _0x255f51(_0x439aa9- -_0x32d8fb._0x5effce,_0x2ce38b-_0x32d8fb._0x482c43,_0x265053,_0x439aa9-0x1a9);}function _0x416cdb(_0x4ed077,_0x49c449,_0x4804f9,_0x5e95b5){return _0x173565(_0x4ed077-0x3f,_0x49c449-0x1eb,_0x4804f9,_0x5e95b5-_0x357376._0x2f60af);}return _0x4bd454[_0x5090d3(_0x3fe424._0x5c7c66,0x60b,_0x3fe424._0x46321c,_0x3fe424._0x36f5d7)](/[^a-zA-Z0-9_]+/g,'_')[_0x416cdb(_0x3fe424._0x2f1f06,0x36f,0x2ef,0x3f8)](/^_+|_+$/g,'')||_0x5090d3(_0x3fe424._0x13c99d,0x4a4,_0x3fe424._0x579c0f,0x57c);}function storagePath(_0x26290d){const _0x11449d={_0x29fa0f:0x6e0,_0xa257df:0x62c,_0x1b6685:0x7c6,_0x31ae5b:0x761,_0x28d3c3:0x7cd,_0x3ddbe3:0x700,_0x3b899e:0x53e,_0x1d2dbb:0x5ec,_0x230000:0x718,_0x2b9b22:0x5f8},_0x29e211={_0x411342:0x66,_0x8b6342:0x8d,_0x10b176:0xa4};function _0x280f35(_0x3959c1,_0x581907,_0x4f8c57,_0x2b5a3c){return _0x255f51(_0x581907- -_0x29e211._0x411342,_0x581907-_0x29e211._0x8b6342,_0x4f8c57,_0x2b5a3c-_0x29e211._0x10b176);}function _0x161e1a(_0x42e05c,_0x2ab690,_0xd0cfc8,_0x316084){return _0x173565(_0x42e05c-0x1f1,_0x2ab690-0x16f,_0x42e05c,_0x2ab690-0x5b5);}const _0x39b6be=sanitizeStorageKey(_0x26290d[_0x280f35(0x75e,_0x11449d._0x29fa0f,_0x11449d._0xa257df,_0x11449d._0x1b6685)]['oauth']?.[_0x161e1a(0x853,_0x11449d._0x31ae5b,0x6e2,0x63c)]??_0x26290d[_0x280f35(_0x11449d._0x28d3c3,_0x11449d._0x3ddbe3,0x816,0x6f5)]);return _0x4f8ee(_0x26290d[_0x161e1a(_0x11449d._0x3b899e,0x60b,_0x11449d._0x1d2dbb,_0x11449d._0x230000)],_0x39b6be+_0x161e1a(0x749,0x6c9,0x681,_0x11449d._0x2b9b22));}async function readStore(_0x267bfa){const _0x56a08e={_0x169bb9:0x18d,_0x1d7b98:0xf7,_0x441d80:0x1d5,_0xd0c3b9:0x2e8,_0x477b73:0x10a,_0xf37e11:0x2c0,_0xc7653e:0x35d,_0x4edf9e:0x388,_0x124da3:0x3cd,_0x12250f:0x34f,_0x16a596:0x1d1},_0x590337={_0x17d1aa:0x4fd},_0x13ed09={_0x2c8e08:0x439,_0x1da066:0x83};function _0x403bb9(_0x4493ad,_0x53b15f,_0xfd9d42,_0x567bd2){return _0x255f51(_0xfd9d42- -_0x13ed09._0x2c8e08,_0x53b15f-_0x13ed09._0x1da066,_0x567bd2,_0x567bd2-0x1ca);}function _0x26448c(_0x47ffd6,_0x31b3c4,_0x3928db,_0x878198){return _0x255f51(_0x31b3c4- -_0x590337._0x17d1aa,_0x31b3c4-0x16,_0x3928db,_0x878198-0x101);}try{return JSON[_0x26448c(_0x56a08e._0x169bb9,_0x56a08e._0x1d7b98,0x18b,0x14e)](await _0x48d106(_0x267bfa,_0x26448c(0x2fb,_0x56a08e._0x441d80,_0x56a08e._0xd0c3b9,0x10e)));}catch(_0x454b38){if(_0x454b38 instanceof Error&&_0x26448c(0x16b,0x1fb,_0x56a08e._0x477b73,_0x56a08e._0xf37e11)in _0x454b38&&_0x454b38[_0x403bb9(_0x56a08e._0xc7653e,_0x56a08e._0x4edf9e,0x2bf,_0x56a08e._0x124da3)]===_0x26448c(_0x56a08e._0x12250f,0x25e,_0x56a08e._0x16a596,0x141))return{};throw _0x454b38;}}async function writeStore(_0x599463,_0x3c6cbe){const _0xb8a8b5={_0x250924:0x1fb,_0x2224d4:0x2ee,_0x208def:0xab,_0x5d2435:0x170,_0x312734:0x1cb},_0x1bfe47={_0x696ee4:0xf1,_0x33093d:0x52d};function _0x1c2225(_0xb1644,_0x3eda85,_0x33fc36,_0x4ab7fa){return _0x173565(_0xb1644-_0x1bfe47._0x696ee4,_0x3eda85-0x71,_0x33fc36,_0x3eda85-_0x1bfe47._0x33093d);}await _0x2991da(_0x4f8ee(_0x599463,'..'),{'recursive':!![]});function _0x133437(_0x259e86,_0x121939,_0x521c6e,_0x1d3233){return _0x255f51(_0x521c6e- -0x562,_0x121939-0x5c,_0x1d3233,_0x1d3233-0x1d6);}await _0x40f8cd(_0x599463,JSON[_0x133437(0xf5,0x125,_0xb8a8b5._0x250924,_0xb8a8b5._0x2224d4)](_0x3c6cbe,null,0x2),_0x133437(0x254,_0xb8a8b5._0x208def,_0xb8a8b5._0x5d2435,_0xb8a8b5._0x312734));}async function updateStore(_0x28cc72,_0x7bb314){const _0x152cc4=await readStore(_0x28cc72);_0x7bb314(_0x152cc4),await writeStore(_0x28cc72,_0x152cc4);}function createMcpOAuthProvider(_0x5776e8){const _0x5a065a={_0x3d4226:0x1c,_0x1eada3:0x119,_0x39d34c:0x23b,_0x3c5e78:0x1ae,_0x196911:0x19c,_0x3b17e7:0x288,_0x20cbe9:0x2b6,_0x54b875:0x37a,_0x1d7a7d:0x41d,_0x95fa70:0x32e,_0x1747d6:0x389,_0x2261da:0x214,_0x43697c:0x220,_0x1d830a:0x2df,_0x375a9:0x1d0,_0x52c84c:0x1f9,_0x477d83:0x85,_0x4cb7b2:0x258},_0x1fb963={_0x2f69ee:0x6d5},_0x3b3a9b={_0x36f27d:0x3e2},_0x2015ff={_0x341fbd:0x617,_0x240930:0x517,_0x24e4ac:0x542},_0x4d04bb={_0x3befed:0x1,_0x42b8be:0x12},_0x39aa15={_0x855075:0x290,_0x519acb:0x33f},_0x5e12fa={_0x45c2bc:0x5df,_0xc48fba:0x5c0,_0x512a87:0x795,_0x5d54d6:0x572},_0x2936f7={_0x380b30:0xf9,_0x33f509:0x2ba},_0x4d7f65={_0x575183:0x301,_0x3ed70d:0x199},_0x1c5715={_0x55a320:0x1c5,_0x1c04aa:0x16b,_0x1306cb:0x2a},_0xf79928={_0x1532de:0xb0},_0x1363a8={_0x13e6e7:0x10d};function _0x246ee0(_0x38bec3,_0x3c4953,_0x31b559,_0x4334a6){return _0x255f51(_0x3c4953- -0x3da,_0x3c4953-0xcd,_0x38bec3,_0x4334a6-_0x1363a8._0x13e6e7);}function _0x2fc3c3(_0x3acba0,_0x4b85d0,_0x23a1ae,_0x5d71be){return _0x255f51(_0x23a1ae- -0x454,_0x4b85d0-0x7d,_0x4b85d0,_0x5d71be-0x1c3);}const _0x5aded6=storagePath(_0x5776e8),_0x505b1a=_0x5776e8[_0x246ee0(0x36a,0x36c,0x3da,0x47a)][_0x2fc3c3(_0x5a065a._0x3d4226,0x6b,_0x5a065a._0x1eada3,0x1fd)]?.[_0x2fc3c3(0x17f,_0x5a065a._0x39d34c,_0x5a065a._0x3c5e78,0x29e)]?.[_0x2fc3c3(0x1e2,0xef,_0x5a065a._0x196911,_0x5a065a._0x3b17e7)]('\x20'),_0x4d28fd={'client_name':_0x2fc3c3(0x352,0x2cf,_0x5a065a._0x20cbe9,_0x5a065a._0x54b875),'redirect_uris':[_0x5776e8['callbackUrl']],'grant_types':[_0x246ee0(_0x5a065a._0x1d7a7d,_0x5a065a._0x95fa70,_0x5a065a._0x1747d6,0x2e0),_0x246ee0(0x203,0x273,0x38c,0x194)],'response_types':[_0x2fc3c3(_0x5a065a._0x2261da,_0x5a065a._0x43697c,0x2a4,_0x5a065a._0x1d830a)],'token_endpoint_auth_method':_0x246ee0(_0x5a065a._0x375a9,0x1b1,_0x5a065a._0x52c84c,_0x5a065a._0x477d83),..._0x505b1a?{'scope':_0x505b1a}:{}};return{'clientMetadataUrl':_0x5776e8[_0x2fc3c3(_0x5a065a._0x4cb7b2,0x38a,0x2f2,0x37a)]['oauth']?.['clientMetadataUrl'],get 'redirectUrl'(){const _0x492701={_0x257306:0x266};function _0x937097(_0x286aa0,_0x437824,_0xe7a173,_0x3d83cf){return _0x246ee0(_0x286aa0,_0x3d83cf- -_0x492701._0x257306,_0xe7a173-0x104,_0x3d83cf-0x107);}return _0x5776e8[_0x937097(0x151,-_0xf79928._0x1532de,-0xa4,0x2e)];},get 'clientMetadata'(){return _0x4d28fd;},async 'state'(){function _0x3cb7d9(_0x5caa06,_0x569c45,_0x131dc3,_0x280366){return _0x246ee0(_0x569c45,_0x131dc3-_0x1c5715._0x55a320,_0x131dc3-_0x1c5715._0x1c04aa,_0x280366-_0x1c5715._0x1306cb);}const _0x581f44=await readStore(_0x5aded6);if(_0x581f44[_0x174dcb(_0x5e12fa._0x45c2bc,0x683,0x554,_0x5e12fa._0xc48fba)])return _0x581f44[_0x174dcb(0x5a4,0x683,_0x5e12fa._0x512a87,_0x5e12fa._0x5d54d6)];function _0x174dcb(_0x1be116,_0x286c1f,_0x1cbe09,_0x53e7c6){return _0x246ee0(_0x1cbe09,_0x286c1f-_0x4d7f65._0x575183,_0x1cbe09-0x9e,_0x53e7c6-_0x4d7f65._0x3ed70d);}const _0x148e55=randomUUID();return await updateStore(_0x5aded6,_0x42ae4e=>{const _0x4abee2={_0xc47374:0x159};function _0x310b3a(_0x52a22c,_0x1a5442,_0x18d33a,_0x18d9d3){return _0x3cb7d9(_0x52a22c-_0x4abee2._0xc47374,_0x52a22c,_0x1a5442- -0x350,_0x18d9d3-0x14);}_0x42ae4e[_0x310b3a(0x245,0x1f7,_0x2936f7._0x380b30,_0x2936f7._0x33f509)]=_0x148e55;}),_0x148e55;},async 'clientInformation'(){return(await readStore(_0x5aded6))['clientInformation'];},async 'saveClientInformation'(_0x4542b9){const _0x2a4d26={_0x18a18a:0xff,_0x39875a:0x15d},_0x4978f7={_0x319c5a:0x2cd};await updateStore(_0x5aded6,_0x5c73cd=>{function _0x1dd87c(_0x41ca37,_0x356885,_0x3fd35a,_0x295def){return _0x4100(_0x295def- -_0x4978f7._0x319c5a,_0x356885);}_0x5c73cd[_0x1dd87c(_0x2a4d26._0x18a18a,0x99,0x5a,_0x2a4d26._0x39875a)]=_0x4542b9;});},async 'tokens'(){function _0x3f4d7a(_0x1156ec,_0x3190cd,_0x231f44,_0x23f916){return _0x2fc3c3(_0x1156ec-0x79,_0x23f916,_0x231f44-0xca,_0x23f916-0xd8);}return(await readStore(_0x5aded6))[_0x3f4d7a(_0x39aa15._0x855075,0x414,_0x39aa15._0x519acb,0x26b)];},async 'saveTokens'(_0x588146){await updateStore(_0x5aded6,_0x5dbb3e=>{_0x5dbb3e['tokens']=_0x588146;});},async 'redirectToAuthorization'(_0xdfc70d){await _0x5776e8['onRedirect'](_0xdfc70d);},async 'saveCodeVerifier'(_0x4d1dc3){const _0x4f75eb={_0x540f8c:0x1b};await updateStore(_0x5aded6,_0x37899b=>{function _0x115ad5(_0x149114,_0x425ded,_0x557a67,_0x373eea){return _0x4100(_0x373eea- -0x384,_0x557a67);}_0x37899b[_0x115ad5(0x38,-0x7c,-0x126,-_0x4f75eb._0x540f8c)]=_0x4d1dc3;});},async 'codeVerifier'(){const _0x3ef21d=(await readStore(_0x5aded6))[_0x19f41d(_0x2015ff._0x341fbd,_0x2015ff._0x240930,_0x2015ff._0x24e4ac,0x71a)];function _0x19f41d(_0x2c74df,_0x166bb4,_0x212a60,_0xf90b12){return _0x246ee0(_0xf90b12,_0x2c74df-0x314,_0x212a60-_0x4d04bb._0x3befed,_0xf90b12-_0x4d04bb._0x42b8be);}if(!_0x3ef21d)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x3ef21d;},async 'invalidateCredentials'(_0x410e1a){const _0xe0431b={_0x2d3b62:0xf8,_0x10fb21:0x111,_0xf64720:0x767,_0x1b5d1f:0x692,_0x508598:0x751,_0x5c4f86:0x41b,_0xf934d4:0x51a,_0x48bc80:0x186,_0x22ccb2:0x6d,_0x3ab898:0x40,_0x38e7fe:0x6e,_0x587948:0x191,_0xf6905:0x8d,_0x42f660:0x63a,_0x5bceda:0x6c,_0x3da521:0x4,_0x59ba25:0x6ba};await updateStore(_0x5aded6,_0x2e6cf4=>{const _0x35df27={_0x16165b:0x2e7};(_0x410e1a===_0x9fcc9d(-_0xe0431b._0x2d3b62,-_0xe0431b._0x10fb21,0x3b,-0xb5)||_0x410e1a===_0x4dc1c4(_0xe0431b._0xf64720,0x6f9,_0xe0431b._0x1b5d1f,_0xe0431b._0x508598))&&(_0x2e6cf4['clientInformation']=void 0x0);function _0x4dc1c4(_0x12a2b8,_0x295a89,_0x5a3d23,_0x3bc590){return _0x4100(_0x5a3d23-_0x35df27._0x16165b,_0x295a89);}(_0x410e1a===_0x4dc1c4(0x43b,_0xe0431b._0x5c4f86,_0xe0431b._0xf934d4,0x4fa)||_0x410e1a==='tokens')&&(_0x2e6cf4[_0x9fcc9d(0x119,0x161,_0xe0431b._0x48bc80,_0xe0431b._0x22ccb2)]=void 0x0);function _0x9fcc9d(_0x448838,_0x29be23,_0x12161f,_0x451473){return _0x4100(_0x451473- -0x2e8,_0x29be23);}(_0x410e1a===_0x9fcc9d(-_0xe0431b._0x3ab898,-0x171,-_0xe0431b._0x38e7fe,-0xb5)||_0x410e1a===_0x9fcc9d(_0xe0431b._0x587948,-0x65,0xb,_0xe0431b._0xf6905))&&(_0x2e6cf4[_0x4dc1c4(0x590,0x602,0x650,_0xe0431b._0x42f660)]=void 0x0,_0x2e6cf4['state']=void 0x0),(_0x410e1a==='all'||_0x410e1a===_0x9fcc9d(_0xe0431b._0x5bceda,_0xe0431b._0x3da521,-_0xe0431b._0x38e7fe,0x8f))&&(_0x2e6cf4[_0x4dc1c4(0x5d3,0x7b9,_0xe0431b._0x59ba25,0x764)]=void 0x0);});},async 'saveDiscoveryState'(_0x5b2d54){await updateStore(_0x5aded6,_0x50546f=>{_0x50546f['discoveryState']=_0x5b2d54;});},async 'discoveryState'(){function _0x421a0d(_0x3950cf,_0x47d337,_0x8ce2ef,_0x2650f0){return _0x2fc3c3(_0x3950cf-0x1e2,_0x8ce2ef,_0x2650f0-_0x3b3a9b._0x36f27d,_0x2650f0-0x11);}return(await readStore(_0x5aded6))[_0x421a0d(0x760,0x606,0x6b7,_0x1fb963._0x2f69ee)];}};}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 _0x4100(_0x2b2165,_0x1d98a5){_0x2b2165=_0x2b2165-0x1dc;const _0x2b521f=_0x2b52();let _0x410083=_0x2b521f[_0x2b2165];if(_0x4100['VuwAxa']===undefined){var _0x3996b3=function(_0x3ddef6){const _0x104126='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2946e8='',_0x383c01='';for(let _0x56e75c=0x0,_0x1833a3,_0x8b2779,_0x3ae68c=0x0;_0x8b2779=_0x3ddef6['charAt'](_0x3ae68c++);~_0x8b2779&&(_0x1833a3=_0x56e75c%0x4?_0x1833a3*0x40+_0x8b2779:_0x8b2779,_0x56e75c++%0x4)?_0x2946e8+=String['fromCharCode'](0xff&_0x1833a3>>(-0x2*_0x56e75c&0x6)):0x0){_0x8b2779=_0x104126['indexOf'](_0x8b2779);}for(let _0x1cd4e7=0x0,_0x45a0d8=_0x2946e8['length'];_0x1cd4e7<_0x45a0d8;_0x1cd4e7++){_0x383c01+='%'+('00'+_0x2946e8['charCodeAt'](_0x1cd4e7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x383c01);};_0x4100['PGxjFU']=_0x3996b3,_0x4100['GscpaN']={},_0x4100['VuwAxa']=!![];}const _0x1ff2a8=_0x2b521f[0x0],_0x1b8ebf=_0x2b2165+_0x1ff2a8,_0x57051f=_0x4100['GscpaN'][_0x1b8ebf];return!_0x57051f?(_0x410083=_0x4100['PGxjFU'](_0x410083),_0x4100['GscpaN'][_0x1b8ebf]=_0x410083):_0x410083=_0x57051f,_0x410083;}function createMcpToolName(_0x3521d1,_0x52538d){const _0x3f545c={_0xf231b7:0x4e2,_0x5ea1ca:0x60b},_0x4eb059={_0x1ed1cd:0x8b,_0x55261a:0x151},_0x2c810c=_0x36bc3b=>_0x36bc3b['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'');function _0x15f727(_0x45ade8,_0x58b825,_0x31142d,_0x2edde2){return _0x173565(_0x45ade8-_0x4eb059._0x1ed1cd,_0x58b825-_0x4eb059._0x55261a,_0x2edde2,_0x58b825-0x4ea);}return _0x15f727(0x49a,_0x3f545c._0xf231b7,0x60d,_0x3f545c._0x5ea1ca)+_0x2c810c(_0x3521d1)+'_'+_0x2c810c(_0x52538d);}function isObject(_0x2ae45d){const _0x1615f1={_0x21d189:0x53c,_0x41740f:0x426,_0x3a7c3f:0x414},_0x2c733c={_0x5a6f56:0x7d,_0x359dc6:0x87},_0x10a70e={_0x29e82a:0x40f,_0x5bd6cd:0x191,_0x1ab333:0x2};function _0x20ec57(_0x200697,_0x262784,_0x2f7d69,_0x43180f){return _0x255f51(_0x262784- -_0x10a70e._0x29e82a,_0x262784-_0x10a70e._0x5bd6cd,_0x200697,_0x43180f-_0x10a70e._0x1ab333);}function _0x100d8f(_0x1e5188,_0x475a63,_0x347d47,_0x499aa5){return _0x255f51(_0x499aa5- -0xd4,_0x475a63-_0x2c733c._0x5a6f56,_0x347d47,_0x499aa5-_0x2c733c._0x359dc6);}return typeof _0x2ae45d===_0x100d8f(0x660,0x592,_0x1615f1._0x21d189,0x589)&&_0x2ae45d!==null&&!Array[_0x100d8f(_0x1615f1._0x41740f,0x475,_0x1615f1._0x3a7c3f,0x489)](_0x2ae45d);}function toSupportedSchema(_0x4666ef){const _0x142b54={_0x154dd7:0x15f,_0x5c496b:0x1f6,_0x444c7:0x275,_0x45ad4a:0x144,_0x55bfa4:0x20a,_0x15c749:0x2de,_0x30e5f:0x4b5,_0xf1e793:0x510,_0x953160:0x527,_0x304cce:0x38e,_0x168cd1:0x2ac,_0x1489af:0x2d5,_0x174507:0x3b1,_0x366bf5:0x2cc,_0x410e8e:0x381,_0x336291:0x41a,_0x17418e:0x3eb,_0xd93da3:0x37f,_0x3d11f4:0x2bd,_0x25455c:0x390,_0x8e048d:0x3a8,_0x6bec66:0x310,_0x2ce733:0x30d,_0x26174d:0x3ee,_0x3dc8b9:0x217,_0x54bfff:0x2ef,_0x6ed67f:0x2fd,_0x230787:0x13f,_0x1cb87a:0x284},_0x18240c={_0x2ce3ef:0x1b0},_0x4e7b2b={_0x3eebcc:0x3ff};if(!isObject(_0x4666ef))return void 0x0;if(_0x4666ef['type']==='string')return{'type':'string'};function _0x416272(_0x2f836b,_0x114de2,_0x158a58,_0x17ed6b){return _0x255f51(_0x17ed6b- -_0x4e7b2b._0x3eebcc,_0x114de2-0x140,_0x2f836b,_0x17ed6b-0x1ca);}if(_0x4666ef[_0x416272(_0x142b54._0x154dd7,_0x142b54._0x5c496b,_0x142b54._0x444c7,0x22d)]===_0x416272(_0x142b54._0x45ad4a,0x2cf,0x161,_0x142b54._0x55bfa4)||_0x4666ef[_0x4160dd(0x3b1,_0x142b54._0x15c749,0x3c0,_0x142b54._0x30e5f)]===_0x4160dd(_0x142b54._0xf1e793,0x412,_0x142b54._0x953160,0x42b))return{'type':_0x4160dd(_0x142b54._0x304cce,_0x142b54._0x168cd1,_0x142b54._0x1489af,0x463)};if(_0x4666ef[_0x4160dd(_0x142b54._0x174507,0x2fb,_0x142b54._0x366bf5,0x442)]===_0x4160dd(0x441,_0x142b54._0x410e8e,0x32f,_0x142b54._0x336291))return{'type':_0x416272(0x389,_0x142b54._0x17418e,_0x142b54._0xd93da3,_0x142b54._0x3d11f4)};if(_0x4666ef[_0x4160dd(0x3b1,0x3f5,_0x142b54._0x25455c,_0x142b54._0x8e048d)]==='array')return{'type':_0x416272(0x3aa,0x428,_0x142b54._0x6bec66,_0x142b54._0x2ce733),'items':toSupportedSchema(_0x4666ef[_0x4160dd(0x3a5,0x2be,_0x142b54._0x26174d,0x2c7)])??{'type':'string'}};if(_0x4666ef[_0x416272(_0x142b54._0x3dc8b9,_0x142b54._0x54bfff,0x329,0x22d)]===_0x416272(_0x142b54._0x6ed67f,_0x142b54._0x230787,_0x142b54._0x1cb87a,0x25e))return toNuvinToolSchema(_0x4666ef);function _0x4160dd(_0x30daac,_0x1fafea,_0x20fcab,_0x293779){return _0x173565(_0x30daac-0x1bd,_0x1fafea-_0x18240c._0x2ce3ef,_0x1fafea,_0x30daac-0x2f1);}return void 0x0;}function toNuvinToolSchema(_0x675708){const _0x581e0e={_0x47cbb1:0x230,_0x4db595:0x311,_0x47602e:0x322,_0x3c4e61:0x319,_0x3bac4d:0x1a9,_0x16eab4:0x24c,_0x5b8ef0:0x273,_0x3979c1:0x440,_0x1a4f2f:0x3f0,_0x10ca0d:0x576,_0x1cbf4b:0x476,_0x3b0d94:0x28f,_0x4d2363:0x53f,_0x83d093:0x58e,_0x31da14:0x4ec,_0x5a0e56:0x334,_0x432774:0x260,_0x3cf299:0x240,_0x58b8fa:0x3bb,_0x3bb66d:0x358,_0x108321:0x362,_0x2aa601:0x24d},_0x109ed5={_0x9356d:0x3a},_0x4e4188={_0x2717f4:0x410,_0x2ee8f0:0x1dd,_0x3b0a96:0xc0};if(!isObject(_0x675708)||_0x675708[_0x3b4f45(0x118,0x21c,_0x581e0e._0x47cbb1,0x13c)]!==_0x2ecee0(0x3cb,0x406,0x3bd,_0x581e0e._0x4db595))return{'type':_0x2ecee0(0x376,0x4ca,0x3bd,_0x581e0e._0x47602e),'properties':{}};const _0x5376b0={};function _0x3b4f45(_0x323c77,_0x85d903,_0x34ed9f,_0x36439c){return _0x255f51(_0x85d903- -_0x4e4188._0x2717f4,_0x85d903-_0x4e4188._0x2ee8f0,_0x36439c,_0x36439c-_0x4e4188._0x3b0a96);}const _0x2e693d=isObject(_0x675708[_0x2ecee0(0x41e,0x1eb,_0x581e0e._0x3c4e61,0x3cf)])?_0x675708[_0x3b4f45(0x195,_0x581e0e._0x3bac4d,_0x581e0e._0x16eab4,_0x581e0e._0x5b8ef0)]:{};function _0x2ecee0(_0x532774,_0x2fcc98,_0x3a6181,_0x3be552){return _0x173565(_0x532774-_0x109ed5._0x9356d,_0x2fcc98-0x6d,_0x3be552,_0x3a6181-0x2cc);}for(const [_0x42a78b,_0x3de7eb]of Object[_0x2ecee0(_0x581e0e._0x3979c1,_0x581e0e._0x1a4f2f,0x4d5,_0x581e0e._0x10ca0d)](_0x2e693d)){const _0x54e5c1=toSupportedSchema(_0x3de7eb);if(_0x54e5c1)_0x5376b0[_0x42a78b]=_0x54e5c1;}const _0x2dd242=Array['isArray'](_0x675708[_0x3b4f45(_0x581e0e._0x1cbf4b,0x37c,0x387,_0x581e0e._0x3b0d94)])?_0x675708[_0x2ecee0(_0x581e0e._0x4d2363,_0x581e0e._0x83d093,_0x581e0e._0x31da14,0x40e)][_0x3b4f45(0x2d9,_0x581e0e._0x5a0e56,0x33a,_0x581e0e._0x432774)](_0x54065d=>typeof _0x54065d===_0x2ecee0(0x455,0x407,0x41f,0x3fb)):void 0x0;return _0x2dd242?.[_0x3b4f45(_0x581e0e._0x3cf299,0x2a4,_0x581e0e._0x58b8fa,_0x581e0e._0x3bb66d)]?{'type':_0x3b4f45(_0x581e0e._0x108321,_0x581e0e._0x2aa601,0x1ee,0x22f),'properties':_0x5376b0,'required':_0x2dd242}:{'type':_0x3b4f45(0x29c,0x24d,0x369,0x347),'properties':_0x5376b0};}function isJsonObject(_0x1f7750){return typeof _0x1f7750==='object'&&_0x1f7750!==null&&!Array['isArray'](_0x1f7750);}function _0x255f51(_0x1052c4,_0x14a6b0,_0x5ffb55,_0x1ab3fc){const _0x50d681={_0x40ff3a:0x374};return _0x4100(_0x1052c4-_0x50d681._0x40ff3a,_0x5ffb55);}function formatMcpContent(_0x51196a){const _0x3c3bfd={_0x1079ba:0x4f,_0x1b6d16:0x17e,_0x4b0377:0x121,_0x13ca08:0xeb,_0x34e727:0x10d,_0x51418e:0x179,_0x19703e:0x152,_0xc205de:0x3a,_0x3ecb6a:0x730,_0x3763e1:0x69a,_0x3890b4:0x745},_0x54e2d4={_0x3d9493:0x5cc,_0x259c1a:0x802,_0x242d02:0x628,_0x18bd83:0x4fd,_0x113646:0x7f7,_0x47cb61:0x70f,_0x2c3c56:0x79d,_0x201bdf:0x6a3,_0xe86dc9:0x7c1,_0x1cbfee:0x696},_0x216698={_0x1d0afb:0xc3},_0x3f27b8=Array[_0x41015e(-_0x3c3bfd._0x1079ba,-_0x3c3bfd._0x1b6d16,-0x274,-0x50)](_0x51196a['content'])?_0x51196a[_0x12c2cb(0x491,0x5b8,0x56e,0x4be)]:[];function _0x12c2cb(_0x3eb243,_0x3da049,_0x2eaa66,_0x16ff25){return _0x255f51(_0x2eaa66- -_0x216698._0x1d0afb,_0x3da049-0xdc,_0x3da049,_0x16ff25-0x12b);}const _0x3cb6a4=_0x3f27b8['map'](_0x55992e=>{const _0x45d355={_0x1d5afe:0x9f},_0x125876={_0x14079b:0x68};if(!isObject(_0x55992e))return'';if(_0x55992e['type']===_0x9e60f4(_0x54e2d4._0x3d9493,0x6e6,0x640,_0x54e2d4._0x259c1a)&&typeof _0x55992e[_0x2df105(_0x54e2d4._0x242d02,0x5dc,0x606,_0x54e2d4._0x18bd83)]===_0x9e60f4(_0x54e2d4._0x113646,_0x54e2d4._0x47cb61,0x6c6,0x5f1))return _0x55992e['text'];function _0x2df105(_0x3a0c36,_0x3cbcd5,_0xc4ac28,_0x308879){return _0x41015e(_0x3a0c36-0x1e8,_0x3cbcd5-0x621,_0xc4ac28,_0x308879-_0x125876._0x14079b);}function _0x9e60f4(_0x5759e0,_0x3b0f22,_0x6026f4,_0x40824e){return _0x12c2cb(_0x5759e0-_0x45d355._0x1d5afe,_0x40824e,_0x3b0f22-0x113,_0x40824e-0x12f);}return JSON[_0x2df105(_0x54e2d4._0x2c3c56,_0x54e2d4._0x201bdf,_0x54e2d4._0xe86dc9,_0x54e2d4._0x1cbfee)](_0x55992e);})['filter'](_0x31efe7=>_0x31efe7['length']>0x0)[_0x41015e(-_0x3c3bfd._0x4b0377,-_0x3c3bfd._0x13ca08,-_0x3c3bfd._0x34e727,-_0x3c3bfd._0x51418e)]('\x0a');if(_0x3cb6a4[_0x41015e(0xdf,-0x27,-_0x3c3bfd._0x19703e,-_0x3c3bfd._0xc205de)]>0x0)return _0x3cb6a4;function _0x41015e(_0x240564,_0x3845f4,_0x576354,_0x4f54a1){return _0x173565(_0x240564-0x94,_0x3845f4-0x153,_0x576354,_0x3845f4- -0x16f);}return JSON[_0x12c2cb(_0x3c3bfd._0x3ecb6a,0x60f,_0x3c3bfd._0x3763e1,_0x3c3bfd._0x3890b4)](_0x51196a,null,0x2);}function createMcpTool(_0x15d53d){const _0x25956b={_0xdbaabd:0x69c,_0x183952:0x424,_0x3eddff:0x290,_0x1eb52b:0x35a,_0x528932:0x5ce,_0x241929:0x7a6,_0x112135:0x5df,_0x17824b:0x60d,_0x5a57df:0x5bc,_0x1c40f0:0x6e2,_0x3e0eb2:0x435,_0x169b25:0x43e,_0x1c1780:0x5d6,_0x39fbda:0x612,_0x70f032:0x6d7,_0xbfa4f0:0x637,_0x3d6b89:0x4dc},_0x500b34={_0x979f4a:0x310,_0xdda07b:0x34f,_0x8ba70b:0x30a,_0x410f92:0x1ee,_0x5bff4f:0x18e,_0x277b2c:0x318,_0x493882:0x2cf,_0x4ca3f7:0x29d,_0x400987:0x41b,_0x42d6e7:0x487,_0x410458:0x3f2,_0x25f970:0x353,_0x53c556:0x2c2,_0x31f9d3:0x351,_0xf8be80:0x35c,_0x4e82cb:0x4c2,_0x407000:0x2ac,_0x2e5ce5:0x21f,_0x276651:0x28b,_0x537089:0x179,_0x56c6c1:0x23a,_0x35760a:0x2ea},_0x4deafe={_0x4ea096:0x153,_0xc72387:0xcf},_0x34ae64={_0x14da38:0x11a,_0x430864:0x367},_0x12544c={_0x100c6d:0x69,_0xd2f993:0x1a7},_0x3e3663={_0x413050:0x173,_0x7262a9:0x2aa};function _0xa3a087(_0x2609d5,_0x2d30ec,_0x222660,_0x17b3b3){return _0x173565(_0x2609d5-0xd5,_0x2d30ec-_0x3e3663._0x413050,_0x2609d5,_0x17b3b3-_0x3e3663._0x7262a9);}function _0x3bdb70(_0x1e55f8,_0x2d0fb1,_0x4e92d4,_0x164b28){return _0x255f51(_0x2d0fb1- -_0x12544c._0x100c6d,_0x2d0fb1-_0x12544c._0xd2f993,_0x4e92d4,_0x164b28-0x106);}const _0x3cfbba=createMcpToolName(_0x15d53d[_0x3bdb70(0x6ec,0x6fd,0x800,_0x25956b._0xdbaabd)],_0x15d53d[_0xa3a087(0x449,_0x25956b._0x183952,_0x25956b._0x3eddff,_0x25956b._0x1eb52b)]['name']);return defineTool({'name':_0x3cfbba,'description':_0x15d53d['tool'][_0x3bdb70(_0x25956b._0x528932,0x6e6,_0x25956b._0x241929,_0x25956b._0x112135)]??_0xa3a087(0x321,0x4c1,0x31e,0x3d8)+_0x15d53d[_0x3bdb70(_0x25956b._0x17824b,0x5b3,_0x25956b._0x5a57df,_0x25956b._0x1c40f0)]['name']+_0xa3a087(0x401,_0x25956b._0x3e0eb2,_0x25956b._0x169b25,0x4c3)+_0x15d53d[_0x3bdb70(_0x25956b._0x1c1780,0x6fd,_0x25956b._0x39fbda,_0x25956b._0x70f032)],'inputSchema':toNuvinToolSchema(_0x15d53d[_0x3bdb70(_0x25956b._0xbfa4f0,0x5b3,0x54b,_0x25956b._0x3d6b89)]['inputSchema']),async *'execute'(_0x4c355f){const _0x2e0693=await _0x15d53d[_0x3691bb(_0x500b34._0x979f4a,_0x500b34._0xdda07b,0x243,_0x500b34._0x8ba70b)][_0x178bce(0x113,0x28a,_0x500b34._0x410f92,_0x500b34._0x5bff4f)]({'name':_0x15d53d[_0x178bce(_0x500b34._0x277b2c,_0x500b34._0x493882,0x28b,_0x500b34._0x4ca3f7)]['name'],'arguments':isJsonObject(_0x4c355f)?_0x4c355f:{}});function _0x3691bb(_0xb5a8ee,_0x18b929,_0x49f124,_0x4cb13e){return _0x3bdb70(_0xb5a8ee-_0x34ae64._0x14da38,_0x18b929- -_0x34ae64._0x430864,_0x4cb13e,_0x4cb13e-0x180);}if(_0x2e0693[_0x178bce(0x50b,0x3bb,_0x500b34._0x400987,0x2ec)])throw new ToolExecutionError(formatMcpContent(_0x2e0693),{'serverName':_0x15d53d[_0x3691bb(_0x500b34._0x42d6e7,0x396,_0x500b34._0x410458,0x27e)],'toolName':_0x15d53d[_0x3691bb(_0x500b34._0x25f970,0x24c,_0x500b34._0x53c556,_0x500b34._0x31f9d3)][_0x3691bb(0x265,0x342,0x314,0x432)]});yield createToolOutput(formatMcpContent(_0x2e0693),{'serverName':_0x15d53d[_0x178bce(_0x500b34._0xf8be80,0x428,0x3d5,_0x500b34._0x4e82cb)],'toolName':_0x15d53d[_0x178bce(_0x500b34._0x407000,_0x500b34._0x2e5ce5,_0x500b34._0x276651,_0x500b34._0x537089)][_0x3691bb(_0x500b34._0x56c6c1,0x342,_0x500b34._0x35760a,0x3b2)],'result':_0x2e0693});function _0x178bce(_0x49d425,_0x2d04fc,_0x1e990e,_0xb091fb){return _0xa3a087(_0x2d04fc,_0x2d04fc-_0x4deafe._0x4ea096,_0x1e990e-0x1c9,_0x1e990e- -_0x4deafe._0xc72387);}return void 0x0;}});}function resolvePrefix(_0x5d35ce,_0x13bac7){const _0x5096c2={_0xb7e2b8:0x167,_0x48305e:0x202,_0x446dac:0x2c8};function _0x26c074(_0x110aa3,_0x98fbe8,_0x1edb2d,_0x2140c6){return _0x255f51(_0x1edb2d- -0x74d,_0x98fbe8-0x17f,_0x2140c6,_0x2140c6-0x13c);}return _0x13bac7[_0x26c074(-_0x5096c2._0xb7e2b8,-_0x5096c2._0x48305e,-0x1ad,-_0x5096c2._0x446dac)]??_0x5d35ce;}function buildMcpHttpHeaders(_0x28d583){const _0x47ff2d={_0x436bc3:0x12b,_0x5ecbfc:0x2da,_0x121fae:0x39c,_0x5cb6c5:0x3ca,_0x1f7fb5:0x3a4,_0x58f1ce:0x371,_0x96da70:0x319,_0x49cdab:0x471,_0x2efdc4:0x548,_0x139c89:0x547,_0x10d68d:0x1d6,_0x29fc44:0x104,_0x19b370:0x129,_0x1b6e9:0x3fe,_0x30037b:0x4cf,_0x26e920:0x419,_0x5b5656:0x378},_0x9f12e7={_0x69b45b:0x145};function _0x2b3c31(_0x3a849f,_0x374ed2,_0x2c1a84,_0xd30e1){return _0x255f51(_0x374ed2- -0x5b4,_0x374ed2-0xaa,_0x2c1a84,_0xd30e1-0xd4);}const _0x2dcf2c={..._0x28d583[_0x2b3c31(_0x47ff2d._0x436bc3,0x9c,-0x66,-0x4e)]??{}};function _0x2fab3a(_0x15fda3,_0x172593,_0x567722,_0x3a3d89){return _0x255f51(_0x172593- -0x2bb,_0x172593-_0x9f12e7._0x69b45b,_0x15fda3,_0x3a3d89-0x1);}return _0x28d583[_0x2fab3a(0x3fd,_0x47ff2d._0x5ecbfc,_0x47ff2d._0x121fae,_0x47ff2d._0x5cb6c5)]?.[_0x2fab3a(_0x47ff2d._0x1f7fb5,_0x47ff2d._0x58f1ce,0x48d,_0x47ff2d._0x96da70)]===_0x2fab3a(0x352,_0x47ff2d._0x49cdab,_0x47ff2d._0x2efdc4,_0x47ff2d._0x139c89)&&_0x28d583['auth'][_0x2b3c31(0x229,0x1e3,_0x47ff2d._0x10d68d,0x1bb)]&&_0x2dcf2c[_0x2b3c31(_0x47ff2d._0x29fc44,_0x47ff2d._0x10d68d,_0x47ff2d._0x19b370,0x1ed)]===void 0x0&&(_0x2dcf2c['Authorization']=_0x2fab3a(0x2f6,_0x47ff2d._0x1b6e9,0x4c7,_0x47ff2d._0x30037b)+_0x28d583['auth']['token']),Object['keys'](_0x2dcf2c)[_0x2fab3a(_0x47ff2d._0x26e920,0x3f9,_0x47ff2d._0x5b5656,0x3c5)]>0x0?_0x2dcf2c:void 0x0;}function getErrorMessage(_0xe9a639){const _0x1df3d7={_0x2cc510:0xc0,_0x44f129:0x189},_0xd86a0a={_0x4f6afd:0x1c3};function _0x43f5b1(_0x457fe9,_0xefd2f3,_0xb09c39,_0x31c420){return _0x255f51(_0x457fe9- -0x5c3,_0xefd2f3-_0xd86a0a._0x4f6afd,_0xefd2f3,_0x31c420-0x18d);}return _0xe9a639 instanceof Error?_0xe9a639[_0x43f5b1(0x13c,_0x1df3d7._0x2cc510,_0x1df3d7._0x44f129,0x1f2)]:String(_0xe9a639);}function isUnauthorizedError(_0x2ad5de){const _0x4b07e4={_0x2acda:0x663,_0x4b62a9:0x4ee,_0x34a246:0x6b5,_0x96e9f3:0x6bc,_0x41b155:0x5ce},_0x3588bb={_0x54bb9e:0xae,_0x3d8dfd:0x10d},_0x4fea9b={_0x1ad94b:0x48f,_0x826f7e:0x3,_0x3f3478:0x82};function _0xa21a1f(_0x180414,_0x45910a,_0x1afe19,_0x4f2a6f){return _0x255f51(_0x1afe19- -_0x4fea9b._0x1ad94b,_0x45910a-_0x4fea9b._0x826f7e,_0x4f2a6f,_0x4f2a6f-_0x4fea9b._0x3f3478);}function _0x64e932(_0x14ab27,_0x2b8907,_0x2ed45d,_0x948edf){return _0x255f51(_0x2b8907- -_0x3588bb._0x54bb9e,_0x2b8907-_0x3588bb._0x3d8dfd,_0x2ed45d,_0x948edf-0x71);}return _0x2ad5de instanceof Error&&_0x2ad5de[_0x64e932(_0x4b07e4._0x2acda,0x58a,0x4f4,_0x4b07e4._0x4b62a9)]['name']===_0x64e932(0x5ec,_0x4b07e4._0x34a246,_0x4b07e4._0x96e9f3,_0x4b07e4._0x41b155);}async function connectMcpServer(_0x51f0a8,_0x3b1ef7,_0x315bd3){const _0x451a9b={_0x287255:0xb6,_0x113777:0x2d,_0x52bd6a:0x15f,_0x431337:0x7b,_0x4b53f0:0x210,_0x19849b:0x2a9,_0x8382ec:0x21e,_0x45772a:0x282,_0x2c8d07:0x149,_0x260fd9:0x113,_0x17a1cb:0x186,_0x802da1:0xaa,_0x2961e4:0x7f,_0x348e0:0x8f,_0x34729e:0x124,_0x247a74:0x1da,_0x59f082:0x33,_0x2eb07b:0x12d,_0x268b4b:0x18b,_0xf18825:0x22f,_0x4209f8:0x1a3,_0x10ba6b:0x5,_0xb87140:0x19e,_0x3f2192:0x13f,_0x4a8e44:0xf2,_0x6146:0x102,_0x5472ba:0x1cb,_0x2bd44d:0x1bb,_0xfd4a7b:0x269,_0x55368b:0x176,_0x2876a2:0xcf,_0x277cf0:0x94,_0x451ce8:0x5b,_0x3d606c:0x1d,_0x321964:0x8b,_0xf03d86:0x119,_0x55978b:0x172,_0x34e744:0x1c4,_0x31ed63:0xe9,_0xe65a2b:0x92,_0x5d396e:0xe2,_0x143666:0x15e,_0x675e73:0x193,_0x1a0b66:0xa,_0x1b8c41:0x61,_0x2d859c:0xde,_0x37b879:0x99,_0x236da0:0x5b,_0x32990d:0x1b,_0x25ba76:0x8a,_0x3b26f2:0x11c,_0x260782:0x8d,_0x24eb21:0xad},_0x39b029={_0x390ade:0x387},_0x90fe49={_0x512a07:0x23f,_0x381490:0x351},_0x5f266b={_0x229947:0x115,_0x2d97cc:0x1be},_0x55e4ca={_0x1c6d66:0x6be,_0x34f839:0x611},_0x2f3e3c={_0x184902:0x156},_0x137f69={_0x31b675:0xe2,_0x1d8329:0x1cc};function _0x4ec184(_0x4b4787,_0x2d36c0,_0xb33087,_0x1f02b9){return _0x173565(_0x4b4787-0x12e,_0x2d36c0-_0x137f69._0x31b675,_0x2d36c0,_0xb33087- -_0x137f69._0x1d8329);}const _0x4a7c7f=new Client({'name':_0x4ec184(-_0x451a9b._0x287255,-0x57,0x28,-_0x451a9b._0x113777),'version':_0x1dcb67(-0xb3,-_0x451a9b._0x52bd6a,-0x42,-0x47)});function _0x1dcb67(_0x1a199d,_0x598074,_0x36724b,_0x267463){return _0x173565(_0x1a199d-0xa9,_0x598074-_0x2f3e3c._0x184902,_0x267463,_0x36724b- -0x80);}if(_0x3b1ef7['transport']===_0x4ec184(_0x451a9b._0x431337,-0xdc,-0x74,0xb1)||_0x3b1ef7[_0x1dcb67(0x21d,0x4f,0x10e,_0x451a9b._0x4b53f0)]){if(!_0x3b1ef7['url'])throw new Error(_0x4ec184(-_0x451a9b._0x19849b,-_0x451a9b._0x8382ec,-0x1de,-_0x451a9b._0x45772a)+_0x51f0a8+_0x1dcb67(0x4d,0x113,0x68,0x6f));if(_0x3b1ef7[_0x1dcb67(-0x183,-_0x451a9b._0x2c8d07,-0x57,0x4c)]?.[_0x4ec184(-_0x451a9b._0x260fd9,-0x127,-0x10c,-0x224)]===_0x1dcb67(-_0x451a9b._0x17a1cb,-_0x451a9b._0x802da1,-_0x451a9b._0x2961e4,-0xdc)&&!_0x315bd3?.[_0x1dcb67(-_0x451a9b._0x348e0,-_0x451a9b._0x34729e,-0x7f,-0x6c)])throw new Error(_0x4ec184(-0x30d,-0x1ca,-0x1de,-_0x451a9b._0x247a74)+_0x51f0a8+_0x1dcb67(0x12c,-_0x451a9b._0x59f082,0x9a,_0x451a9b._0x2eb07b));const _0x18e4f6=buildMcpHttpHeaders(_0x3b1ef7),_0x1121cf=_0x3b1ef7[_0x4ec184(-_0x451a9b._0x268b4b,-_0x451a9b._0xf18825,-_0x451a9b._0x4209f8,-0x100)]?.[_0x4ec184(-0xa6,-_0x451a9b._0x10ba6b,-0x10c,-_0x451a9b._0xb87140)]===_0x1dcb67(0x8c,-_0x451a9b._0x3f2192,-0x7f,-0xd5)&&_0x315bd3?.['oauth']?createMcpOAuthProvider({'serverName':_0x51f0a8,'callbackUrl':_0x315bd3[_0x1dcb67(-_0x451a9b._0x4a8e44,-0x110,-0x7f,0x9d)]['callbackUrl'],'storageDir':_0x315bd3[_0x4ec184(-0x2cd,-_0x451a9b._0x6146,-_0x451a9b._0x5472ba,-_0x451a9b._0x2bd44d)][_0x4ec184(-_0x451a9b._0xfd4a7b,-0x51,-_0x451a9b._0x55368b,-_0x451a9b._0x2876a2)],'config':_0x3b1ef7[_0x1dcb67(_0x451a9b._0x277cf0,-_0x451a9b._0x451ce8,-0x57,_0x451a9b._0x3d606c)],'onRedirect':_0x2f3075=>_0x315bd3[_0x1dcb67(-0x55,0x75,-0x7f,0xad)]?.[_0x4ec184(0x58,0x15,0x41,0xd3)](_0x51f0a8,_0x2f3075)}):void 0x0,_0x3ae707=new StreamableHTTPClientTransport(new URL(_0x3b1ef7['url']),{'authProvider':_0x1121cf,'requestInit':_0x18e4f6?{'headers':_0x18e4f6}:void 0x0});await _0x4a7c7f[_0x1dcb67(-_0x451a9b._0x321964,-_0x451a9b._0xf03d86,-0x8d,-0x18e)](_0x3ae707);}else{if(!_0x3b1ef7[_0x1dcb67(_0x451a9b._0x55978b,-0x3a,0xb0,_0x451a9b._0x34e744)])throw new Error(_0x1dcb67(-0x18,-_0x451a9b._0x31ed63,-_0x451a9b._0xe65a2b,-0x171)+_0x51f0a8+_0x1dcb67(_0x451a9b._0x5d396e,_0x451a9b._0x143666,_0x451a9b._0x675e73,0x28d));const _0xf1e163=new StdioClientTransport({'command':_0x3b1ef7[_0x4ec184(-0x7b,0x7,-0x9c,_0x451a9b._0x1a0b66)],'args':_0x3b1ef7[_0x4ec184(-_0x451a9b._0x1b8c41,-0xc3,-_0x451a9b._0x2d859c,-_0x451a9b._0x37b879)]??[],'env':_0x3b1ef7[_0x1dcb67(-_0x451a9b._0x236da0,0x9f,_0x451a9b._0x32990d,-_0x451a9b._0x25ba76)]});await _0x4a7c7f[_0x1dcb67(-0x97,-_0x451a9b._0x3b26f2,-_0x451a9b._0x260782,-_0x451a9b._0x24eb21)](_0xf1e163);}return{async 'listTools'(){const _0x31fe85={_0x270a46:0x68a,_0x198831:0x1bc};function _0x47828c(_0x56d1a1,_0x454f19,_0x264a6b,_0x53ef97){return _0x4ec184(_0x56d1a1-0x1d9,_0x53ef97,_0x454f19-_0x31fe85._0x270a46,_0x53ef97-_0x31fe85._0x198831);}return await _0x4a7c7f[_0x47828c(0x7ac,_0x55e4ca._0x1c6d66,0x5c4,_0x55e4ca._0x34f839)]();},async 'callTool'(_0x1a5077){const _0x578485={_0x5b00b9:0x1ad,_0xc4b881:0x46f};function _0x4b3593(_0x51fb2d,_0x5e926a,_0x416c06,_0x5a51e5){return _0x1dcb67(_0x51fb2d-_0x578485._0x5b00b9,_0x5e926a-0x18c,_0x51fb2d-_0x578485._0xc4b881,_0x416c06);}function _0x44de63(_0x309656,_0xca90a2,_0x33c28e,_0x214be1){return _0x1dcb67(_0x309656-_0x5f266b._0x229947,_0xca90a2-_0x5f266b._0x2d97cc,_0x33c28e-0x1d6,_0x309656);}return await _0x4a7c7f[_0x4b3593(0x52c,0x5ba,0x483,0x586)]({'method':_0x44de63(_0x90fe49._0x512a07,0x409,0x32d,_0x90fe49._0x381490),'params':_0x1a5077},CallToolResultSchema);},async 'close'(){function _0x15e93c(_0x5a0365,_0x2db814,_0x4e7922,_0x55bbbb){return _0x4ec184(_0x5a0365-0x1e3,_0x2db814,_0x4e7922-0x39b,_0x55bbbb-0x1b5);}await _0x4a7c7f[_0x15e93c(0x388,0x30d,_0x39b029._0x390ade,0x3c7)]();}};}async function createMcpToolsFromServers(_0x1bb532){const _0x15a626={_0x446c1e:0x66,_0x569df4:0x62,_0x35320b:0x1f,_0x1c32a9:0x84,_0x2e82d9:0x262,_0x47fb61:0x249,_0x53f726:0x2d4,_0x42e5bf:0x384,_0xa61fd0:0x2e7,_0x2891f3:0x255,_0x1f2807:0x3d5,_0x559edf:0x379,_0x3cb65b:0x367,_0x1d73e3:0x329,_0x31aff0:0x3ae,_0x42eaf8:0x102,_0x440ca8:0x299,_0xf1401f:0x2e9},_0x50a6ec={_0x41c4c8:0x726,_0x2fae05:0x60a,_0xd06230:0x5fe},_0x330558=_0x1bb532[_0x4e5a1f(_0x15a626._0x446c1e,_0x15a626._0x569df4,_0x15a626._0x35320b,_0x15a626._0x1c32a9)]??connectMcpServer,_0xa94939=[],_0x10161f={};function _0x28028c(_0x213f8f,_0x43e501,_0x593509,_0x305aed){return _0x173565(_0x213f8f-0x9b,_0x43e501-0xd2,_0x305aed,_0x43e501-0x150);}const _0x1c9c55=[];for(const [_0x4e24bf,_0x47265f]of Object[_0x28028c(0x287,0x359,0x38b,_0x15a626._0x2e82d9)](_0x1bb532[_0x28028c(_0x15a626._0x47fb61,0x27f,0x2d8,0x320)]??{})){if(_0x47265f[_0x28028c(_0x15a626._0x53f726,0x275,0x3a4,_0x15a626._0x42e5bf)]===![]){_0x10161f[_0x4e24bf]={'status':'disabled'};continue;}try{const _0x509913=await _0x330558(_0x4e24bf,_0x47265f,_0x1bb532[_0x28028c(_0x15a626._0xa61fd0,_0x15a626._0x2891f3,0x183,0x30a)]);_0xa94939['push'](_0x509913);const _0x416f41=await _0x509913['listTools']();let _0x4f4483=0x0;for(const _0x391861 of _0x416f41['tools']){const _0x29cd1a=_0x1bb532[_0x28028c(_0x15a626._0x1f2807,_0x15a626._0x559edf,_0x15a626._0x3cb65b,_0x15a626._0x1d73e3)]?.[_0x4e24bf]?.[_0x391861['name']];if(_0x29cd1a===![])continue;_0x4f4483+=0x1,_0x1c9c55[_0x28028c(0x30f,0x294,0x359,_0x15a626._0x31aff0)](createMcpTool({'serverName':resolvePrefix(_0x4e24bf,_0x47265f),'tool':_0x391861,'client':_0x509913}));}_0x10161f[_0x4e24bf]={'status':_0x4e5a1f(_0x15a626._0x42eaf8,0x21,0x1e5,0x122),'toolCount':_0x4f4483};}catch(_0x13e29a){_0x10161f[_0x4e24bf]=isUnauthorizedError(_0x13e29a)?{'status':_0x28028c(0x368,_0x15a626._0x440ca8,0x3ab,_0x15a626._0xf1401f),'message':getErrorMessage(_0x13e29a)}:{'status':_0x4e5a1f(0x114,0x187,0x2a,0x1f4),'message':getErrorMessage(_0x13e29a)};}}function _0x4e5a1f(_0x355e24,_0x389594,_0xd4f53f,_0x41dd9e){return _0x173565(_0x355e24-0x120,_0x389594-0x7a,_0x41dd9e,_0x355e24-0x73);}return{'tools':_0x1c9c55,'servers':_0x10161f,async 'close'(){const _0x2a00c6={_0x43e247:0x41e,_0x12f077:0x9,_0x3e39bb:0x1b3},_0x2f9643={_0x4222d0:0x47f};function _0x521fa8(_0x27cf90,_0x5e2802,_0x511c50,_0x28d878){return _0x28028c(_0x27cf90-0x114,_0x511c50-_0x2f9643._0x4222d0,_0x511c50-0x1be,_0x27cf90);}function _0x417640(_0x142f00,_0xd9c431,_0x39e551,_0x5dcda1){return _0x4e5a1f(_0xd9c431-_0x2a00c6._0x43e247,_0xd9c431-_0x2a00c6._0x12f077,_0x39e551-_0x2a00c6._0x3e39bb,_0x39e551);}await Promise[_0x521fa8(_0x50a6ec._0x41c4c8,0x52a,_0x50a6ec._0x2fae05,_0x50a6ec._0xd06230)](_0xa94939['map'](_0x162b39=>_0x162b39[_0x417640(0x6fe,0x649,0x66b,0x6fd)]()));}};}function getCommand(_0x12723d){const _0x8ef413={_0x3e6521:0x107,_0x83518c:0x3b7,_0x2b7919:0x66,_0x31c96a:0x6b},_0x2a5f68={_0x404a6d:0x12b},_0x2f9c1e={_0x24156a:0x757,_0x193f5f:0x1d5};function _0x4df951(_0x455849,_0x3a6a7d,_0x74eeac,_0x3ab8dd){return _0x255f51(_0x455849- -_0x2f9c1e._0x24156a,_0x3a6a7d-0x1b8,_0x3a6a7d,_0x3ab8dd-_0x2f9c1e._0x193f5f);}function _0x227d85(_0x298fb4,_0x266f3e,_0x3780d9,_0x3fa3eb){return _0x255f51(_0x298fb4- -0x26f,_0x266f3e-0x5f,_0x266f3e,_0x3fa3eb-_0x2a5f68._0x404a6d);}if(_0x12723d&&typeof _0x12723d===_0x4df951(-0xfa,-0x149,-0x19e,-_0x8ef413._0x3e6521)&&!Array['isArray'](_0x12723d)&&typeof _0x12723d[_0x227d85(0x42d,0x420,0x47a,_0x8ef413._0x83518c)]==='string')return _0x12723d[_0x4df951(-0xbb,-0x1d0,_0x8ef413._0x2b7919,_0x8ef413._0x31c96a)];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x255f51(0x59b,0x4f6,0x54f,0x5ae),_0x255f51(0x57b,0x4e8,0x4f7,0x540),_0x255f51(0x74a,0x7eb,0x785,0x753),_0x255f51(0x5ad,0x525,0x691,0x6bc),_0x173565(0xb1,0x12e,0x1e6,0x123),'src/formats/message-format.ts',_0x173565(-0xdb,0xec,0x23,0x2a),_0x173565(0x2b6,0x251,0x293,0x1d9),_0x173565(0x1fb,0x246,0x1ba,0x138),_0x255f51(0x720,0x6b8,0x6d8,0x80d),'src/formats/provider-adapters.ts',_0x255f51(0x60f,0x6aa,0x73f,0x680),'src/shared/types.ts','src/agent/agent.test.ts',_0x173565(0xef,0xf5,-0x10d,0x0),_0x173565(0x75,-0x92,0x2e,0x21),_0x255f51(0x5f1,0x55b,0x5d8,0x620)][_0x255f51(0x5f0,0x527,0x568,0x540)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x255f51(0x721,0x668,0x79e,0x7fa),'description':_0x173565(-0xa8,0x14,0x4b,0x80),'input_schema':{'type':_0x173565(-0x13,0x15f,0x2c,0xf1),'properties':{'command':{'type':_0x255f51(0x6bf,0x6d2,0x640,0x651)}},'required':[_0x173565(0x28,0x39,0x18c,0x130)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x40dcad){return{'output':_0x40dcad,'structured':{'value':_0x40dcad}};}function createUnknownToolResult(_0x9cd58f){const _0x269c9a={_0x442875:0x1ba},_0x31fd8e={_0x44fdac:0x8a,_0x590e3f:0xe2};function _0x1f80d3(_0x29f290,_0x23140a,_0x283c07,_0x2a88dc){return _0x173565(_0x29f290-_0x31fd8e._0x44fdac,_0x23140a-0x101,_0x2a88dc,_0x23140a- -_0x31fd8e._0x590e3f);}return{'callId':_0x9cd58f['id'],'toolName':_0x9cd58f['name'],'status':'error','output':_0x1f80d3(-0x4c,-0x8e,-_0x269c9a._0x442875,-0xd9)+_0x9cd58f['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x3f7122,_0x1264f1){const _0x4fd6ec={_0x694648:0x30c,_0x55c985:0x193},_0x1553b5={_0x56c7cf:0x128};function _0x34eca8(_0x41b343,_0x4ae215,_0x763518,_0x43c96a){return _0x173565(_0x41b343-_0x1553b5._0x56c7cf,_0x4ae215-0x1d8,_0x41b343,_0x763518- -0x159);}function _0x1bf958(_0x1e4df9,_0x7e4e4c,_0x5be588,_0x3dbf2a){return _0x173565(_0x1e4df9-0x130,_0x7e4e4c-0x46,_0x5be588,_0x1e4df9-0xd0);}return{'callId':_0x3f7122['id'],'toolName':_0x3f7122[_0x1bf958(0x276,_0x4fd6ec._0x694648,0x1e4,_0x4fd6ec._0x55c985)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x3f7122[_0x34eca8(-0x23f,-0xf1,-0x164,-0x8d)]),'exitCode':0x0},'chunks':[_0x1264f1],'meta':createMeta()};}function createMockToolRuntime(){const _0x4987cf={_0x4bc775:0x163,_0x4d609b:0x263,_0x2df92e:0x23f,_0x219010:0x2f,_0x2d0236:0x58,_0x2bb21d:0x133},_0x20a9fa={_0x41a1f9:0x50c,_0x3d1dc3:0x492,_0x1dcc0c:0x4f1,_0x3a86c2:0x3e1,_0x3b6115:0x5f2},_0x1d6aaf=async(_0x9cd0e7,_0x28b6a1)=>{function _0x2212c3(_0x444ead,_0x2050b0,_0x1b0d88,_0x1069c9){return _0x4100(_0x1069c9-0x153,_0x444ead);}function _0x5a779a(_0xdf1289,_0x1501c8,_0x53f3fc,_0x4a1322){return _0x4100(_0x4a1322-0x3a2,_0x1501c8);}if(_0x9cd0e7[_0x2212c3(_0x20a9fa._0x41a1f9,0x3c3,_0x20a9fa._0x3d1dc3,_0x20a9fa._0x1dcc0c)]!==_0x2212c3(_0x20a9fa._0x3a86c2,_0x20a9fa._0x3b6115,0x5ed,0x500))return createUnknownToolResult(_0x9cd0e7);const _0x4ef84a=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x9cd0e7,_0x4ef84a);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xf87abe,_0x43e4f2){const _0x535563={_0x24987e:0xd0};function _0x1c6890(_0x398c1e,_0x1cae4a,_0x2a72fb,_0x10ff8d){return _0x4100(_0x1cae4a- -0x292,_0x398c1e);}function _0x4740b0(_0xdba1bd,_0x48133a,_0x58540b,_0x426af6){return _0x4100(_0xdba1bd- -_0x535563._0x24987e,_0x58540b);}return await Promise[_0x4740b0(_0x4987cf._0x4bc775,_0x4987cf._0x4d609b,_0x4987cf._0x2df92e,0x52)](_0xf87abe[_0x1c6890(-_0x4987cf._0x219010,-_0x4987cf._0x2d0236,-_0x4987cf._0x2bb21d,-0xaf)](async _0x54398a=>{return await _0x1d6aaf(_0x54398a,_0x43e4f2);}));},async 'execute'(_0x31ef74,_0x301391){return await _0x1d6aaf(_0x31ef74,_0x301391);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x1283ab={_0x299fbb:0x131,_0x294458:0x1c8,_0x305da9:0x175};delegatedRunCounter+=0x1;function _0x476119(_0x625c37,_0x18899f,_0x4d6242,_0x672790){return _0x173565(_0x625c37-0x1c3,_0x18899f-0x66,_0x18899f,_0x4d6242-0x89);}return _0x476119(_0x1283ab._0x299fbb,_0x1283ab._0x294458,_0x1283ab._0x305da9,0xbf)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0xa03dad,_0x4084a6){return typeof _0xa03dad==='function'?await _0xa03dad(_0x4084a6):_0xa03dad;}function getDelegatedAgentDefinition(_0xf684cc,_0xf7de){return _0xf684cc['agents']?.[_0xf7de];}function createRunSummary(_0x160928){const _0x5c8adb={_0x4ca539:0x37c,_0x3846cd:0x3a7,_0x168d14:0x2e9,_0x2a51db:0x35a,_0x52a4f7:0x401,_0xfc49f:0x391,_0x1df1e4:0x36c,_0x3c200b:0x2ee,_0x597cba:0x1fc,_0x2a6a48:0x238,_0x23aa07:0x1f8,_0x557ced:0x18a,_0x3e7202:0x26f,_0x28d238:0x2fe,_0x9f958f:0x352,_0x5ed6f1:0x37c,_0x394189:0x255,_0x1fca81:0x345,_0x36214a:0x22e},_0x256b9a={_0x5e86a4:0x23},_0x3cf154={_0x128ea9:0x139};function _0x280fc6(_0x8f50ae,_0x57d0d6,_0x32b236,_0x379da2){return _0x255f51(_0x379da2- -0x38e,_0x57d0d6-_0x3cf154._0x128ea9,_0x32b236,_0x379da2-0x1e);}function _0x330235(_0x3244d7,_0x3e9a29,_0x2c1f16,_0xc729e0){return _0x255f51(_0x2c1f16- -0x317,_0x3e9a29-_0x256b9a._0x5e86a4,_0xc729e0,_0xc729e0-0x60);}return{'runId':_0x160928[_0x280fc6(0x1d9,0x333,0x161,0x250)],'agentId':_0x160928['agentId'],'sessionId':_0x160928[_0x280fc6(_0x5c8adb._0x4ca539,_0x5c8adb._0x3846cd,_0x5c8adb._0x168d14,0x2b3)],'status':_0x160928['status'],'parentSessionId':_0x160928[_0x330235(_0x5c8adb._0x2a51db,0x3df,0x3ac,_0x5c8adb._0x52a4f7)],..._0x160928[_0x330235(0x26a,_0x5c8adb._0xfc49f,_0x5c8adb._0x1df1e4,_0x5c8adb._0x3c200b)]!==void 0x0?{'originToolCallId':_0x160928['originToolCallId']}:{},..._0x160928[_0x280fc6(_0x5c8adb._0x597cba,_0x5c8adb._0x2a6a48,0x252,_0x5c8adb._0x23aa07)]!==void 0x0?{'errorMessage':_0x160928[_0x330235(_0x5c8adb._0x557ced,0x14f,_0x5c8adb._0x3e7202,0x175)]}:{},..._0x160928[_0x330235(0x474,_0x5c8adb._0x28d238,_0x5c8adb._0x9f958f,_0x5c8adb._0x5ed6f1)]?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0x160928[_0x280fc6(_0x5c8adb._0x394189,_0x5c8adb._0x1fca81,_0x5c8adb._0x36214a,0x2db)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x343174,_0xb91f85){const _0x3849d0={_0x3271e2:0x13b,_0x7cb7a6:0x142,_0x835465:0x91,_0x2432ab:0x199,_0x5a0039:0x214,_0x2903b2:0x321,_0x1de0ff:0x209,_0x1fcc39:0x201,_0x2ab2e5:0xfe},_0x5e2201={_0x2b715d:0x127,_0x1a46b1:0xc1},_0x45d7a7={_0x1dcebb:0x1bf,_0x369991:0xe7},_0x2e7ab4=createRunSummary(_0x343174),_0x49c96b=_0x2e7ab4[_0x3e8cf0(0x235,_0x3849d0._0x3271e2,_0x3849d0._0x7cb7a6,_0x3849d0._0x835465)];function _0xda2cb4(_0x42e887,_0x4e7246,_0x183244,_0x106924){return _0x255f51(_0x106924- -0xfe,_0x4e7246-_0x45d7a7._0x1dcebb,_0x183244,_0x106924-_0x45d7a7._0x369991);}function _0x3e8cf0(_0x3e555a,_0x1ec71e,_0x53e850,_0x51b8e1){return _0x173565(_0x3e555a-0x1a4,_0x1ec71e-_0x5e2201._0x2b715d,_0x53e850,_0x1ec71e-_0x5e2201._0x1a46b1);}return createToolOutput(typeof _0x49c96b===_0x3e8cf0(_0x3849d0._0x2432ab,_0x3849d0._0x5a0039,0x2b7,_0x3849d0._0x2903b2)&&_0x49c96b[_0x3e8cf0(0x2d9,_0x3849d0._0x1de0ff,_0x3849d0._0x1fcc39,_0x3849d0._0x2ab2e5)]>0x0?_0x49c96b:_0xb91f85,_0x2e7ab4);}function getRunTerminalErrorMessage(_0x14cc79){const _0x231c01={_0x3a9914:0x67b,_0x1ff2a4:0x744,_0x5e1fbe:0x494,_0x1363f5:0x44b,_0x5b69f7:0x627,_0x575546:0x577,_0x4cda98:0x4ce,_0x36216c:0x5ac,_0x272f93:0x4dc,_0x4febc7:0x3d4,_0x3a5f74:0x4e1,_0x124e45:0x51a,_0x471e0f:0x675,_0x55e63f:0x5f4,_0x286a35:0x599},_0x480101={_0x58b55b:0x131,_0x1772ba:0x3d},_0x15a0b2={_0x3dc367:0xe3,_0xde32be:0x4fc};function _0x1ce449(_0x5b79e7,_0x542d4d,_0x454793,_0xdbfe7d){return _0x173565(_0x5b79e7-_0x15a0b2._0x3dc367,_0x542d4d-0xdf,_0x542d4d,_0x454793-_0x15a0b2._0xde32be);}const _0x153936=_0x14cc79?.[_0x44339f(0x74c,_0x231c01._0x3a9914,_0x231c01._0x1ff2a4,0x62b)][_0x44339f(0x44f,0x3f8,0x4a0,_0x231c01._0x5e1fbe)]['at'](-0x1);if(_0x153936?.[_0x44339f(_0x231c01._0x1363f5,_0x231c01._0x5b69f7,_0x231c01._0x575546,0x575)]===_0x44339f(0x58c,_0x231c01._0x4cda98,_0x231c01._0x36216c,_0x231c01._0x272f93)&&_0x153936['output'][_0x1ce449(0x571,_0x231c01._0x4febc7,_0x231c01._0x3a5f74,_0x231c01._0x124e45)]()[_0x1ce449(0x76c,0x6c8,0x644,_0x231c01._0x471e0f)]>0x0)return _0x153936[_0x44339f(0x496,0x484,_0x231c01._0x55e63f,_0x231c01._0x286a35)];function _0x44339f(_0x477352,_0x38512e,_0x3cb644,_0x5cb313){return _0x255f51(_0x5cb313- -_0x480101._0x58b55b,_0x38512e-_0x480101._0x1772ba,_0x3cb644,_0x5cb313-0x1a6);}return void 0x0;}function formatAbortedRunMessage(_0x511ac5,_0x143f85){const _0x4fea2b={_0x52c607:0x7d9,_0x4a9cb2:0x7ad,_0x421e65:0x832,_0x370d8b:0x812,_0xec9b03:0x55d,_0x3c2b87:0x50e,_0x2e0403:0x56e,_0xed7b96:0x487,_0x980436:0x38c,_0x1c54fa:0x458,_0x5c9de7:0x1fd,_0x4d4259:0x2a3,_0x1eb6f5:0x1e0},_0x50e185={_0x4cd04d:0x16b,_0x269f17:0xa6},_0x578b29={_0x543fad:0x328,_0x154bbf:0xc3};function _0x585716(_0x45a0a5,_0x1acdb6,_0x421c14,_0x29c58d){return _0x255f51(_0x421c14- -_0x578b29._0x543fad,_0x1acdb6-0x102,_0x1acdb6,_0x29c58d-_0x578b29._0x154bbf);}const _0x2fd2da=_0x5bffe9(_0x4fea2b._0x52c607,0x835,_0x4fea2b._0x4a9cb2,_0x4fea2b._0x421e65)+_0x511ac5+_0x5bffe9(_0x4fea2b._0x370d8b,0x84a,0x72e,0x7e6);function _0x5bffe9(_0x2ed9d0,_0x47555f,_0x38cc4e,_0x578504){return _0x255f51(_0x38cc4e-0x1d,_0x47555f-_0x50e185._0x4cd04d,_0x47555f,_0x578504-_0x50e185._0x269f17);}if(!_0x143f85||_0x143f85[_0x5bffe9(_0x4fea2b._0xec9b03,_0x4fea2b._0x3c2b87,_0x4fea2b._0x2e0403,_0x4fea2b._0xed7b96)]()[_0x585716(0x349,0x327,_0x4fea2b._0x980436,_0x4fea2b._0x1c54fa)]===0x0||_0x143f85===_0x2fd2da)return _0x2fd2da;return _0x2fd2da+_0x585716(_0x4fea2b._0x5c9de7,0x266,_0x4fea2b._0x4d4259,_0x4fea2b._0x1eb6f5)+_0x143f85;}function createAssignTaskTool(_0x3f04a8){const _0x16d83b={_0xb3e32e:0x17b,_0x387424:0x1fd,_0x595117:0xf9,_0x28805b:0x19c,_0x45ee32:0x24f,_0x30988d:0x12a,_0x3d75df:0x2b1,_0x4ba350:0x484,_0x3179a6:0x480,_0x5a02c9:0x395,_0x3e8a52:0x491,_0x40e060:0x2ba},_0x5634f1={_0x4657be:0x137,_0x53ff3a:0x64,_0x11eebd:0x75,_0x42f0f5:0x199,_0x5369f7:0x90,_0x1d4c55:0x173,_0x221e2f:0x17,_0x2e68dc:0x122,_0x224c1b:0x1a6,_0x19e1a8:0xcc,_0x3ca041:0x24,_0x128385:0x9e,_0x2a9ac8:0x170,_0x2a6380:0x27,_0x50b7b6:0x49,_0x1e525a:0x6f,_0xa7c2cd:0x166,_0x45d386:0x162,_0xdc584:0x83,_0x48974c:0x171,_0x4bcacf:0x17f,_0x137ade:0xf3,_0x1a5639:0xa6,_0x3ace90:0x5a,_0xd31a2b:0x14,_0x919bba:0x94,_0x2ea5a9:0xfe,_0x24d676:0x49,_0x43eed9:0x5e,_0x5749e0:0x1a8,_0x35ee2e:0x270,_0x47b10d:0x253,_0x5ce133:0x145,_0x4c51ae:0x1fe,_0x1544ac:0xda,_0x46e946:0x35,_0xd10ec:0xee,_0x1b1d03:0x9c,_0x584a8b:0x271,_0x10dc62:0x1b0,_0x37a5d0:0x82,_0x3a714b:0x22f,_0x389cd9:0x28d,_0x1f69cf:0x161,_0x1b5cb5:0x9d,_0x24d524:0x220,_0x4c212d:0x77,_0x1a3f42:0xd9,_0xc4b71c:0x69,_0x251136:0x57,_0x4e43ee:0x113,_0x28cf25:0x9d,_0x6f10dc:0x81,_0x352b7b:0x19e,_0x3b4c90:0xe0,_0x165abf:0xbb,_0x5601b8:0x1dc,_0x1a0933:0x115,_0x204933:0x1b2},_0x3e2a97={_0x3ebd4f:0x4d8,_0x107118:0x477,_0x15063e:0x43a,_0xa9e4b1:0x4bd,_0x5a678c:0x42,_0x40d19f:0x1e,_0x1ea806:0x82},_0x251796={_0x7e5192:0xcd,_0x44c250:0x15e};function _0x20e0b0(_0x1e8670,_0x5631f1,_0x3f6a6a,_0x27b513){return _0x255f51(_0x1e8670- -0x1ee,_0x5631f1-0x3d,_0x27b513,_0x27b513-0x25);}function _0x2e4819(_0x1877ac,_0x5acfe3,_0x3283a8,_0x3bb9db){return _0x173565(_0x1877ac-_0x251796._0x7e5192,_0x5acfe3-0x88,_0x3bb9db,_0x3283a8-_0x251796._0x44c250);}return defineTool({'name':_0x2e4819(0x163,_0x16d83b._0xb3e32e,_0x16d83b._0x387424,_0x16d83b._0x595117),'description':_0x20e0b0(0x44d,0x400,0x483,0x563),'inputSchema':{'type':_0x2e4819(_0x16d83b._0x28805b,0x2d5,_0x16d83b._0x45ee32,_0x16d83b._0x30988d),'properties':{'agentId':{'type':_0x2e4819(0x294,0x204,_0x16d83b._0x3d75df,0x229)},'task':{'type':_0x20e0b0(0x4d1,0x5e8,_0x16d83b._0x4ba350,_0x16d83b._0x3179a6)}},'required':[_0x20e0b0(_0x16d83b._0x5a02c9,0x3bc,_0x16d83b._0x3e8a52,0x3e2),_0x2e4819(_0x16d83b._0x40e060,0x409,0x319,0x337)]},async *'execute'(_0x7d2e2f,_0x34bbad){const _0x154fb8={_0x3238:0x404},_0x6b60d5={_0x4324e6:0xee,_0x1860d4:0x19b},_0x10df9d=createDelegatedRunId(),_0x35f8a4={'agentId':_0x7d2e2f[_0x1ed297(0x8a,-0x49,-_0x5634f1._0x4657be,-0x49)],'parentSessionId':_0x34bbad[_0x1ed297(-_0x5634f1._0x53ff3a,0xa8,-0x92,_0x5634f1._0x11eebd)],'runId':_0x10df9d,..._0x34bbad[_0x1ed297(0x1f5,0x1eb,0x262,_0x5634f1._0x42f0f5)]!==void 0x0?{'toolCallId':_0x34bbad[_0x93d4a9(0x218,0xef,_0x5634f1._0x5369f7,_0x5634f1._0x1d4c55)]}:{}};function _0x1ed297(_0x33792f,_0x46d9d8,_0x9bd62,_0x43d37a){return _0x20e0b0(_0x43d37a- -0x3de,_0x46d9d8-_0x6b60d5._0x4324e6,_0x9bd62-_0x6b60d5._0x1860d4,_0x46d9d8);}const _0x22bd4a=getDelegatedAgentDefinition(_0x3f04a8,_0x7d2e2f[_0x1ed297(-_0x5634f1._0x221e2f,-_0x5634f1._0x2e68dc,-0xff,-0x49)]);if(!_0x22bd4a)throw new ToolExecutionError(_0x93d4a9(0x55,0x190,_0x5634f1._0x224c1b,_0x5634f1._0x19e1a8)+_0x7d2e2f[_0x93d4a9(_0x5634f1._0x3ca041,_0x5634f1._0x128385,-_0x5634f1._0x2a9ac8,-0x6f)],{'agentId':_0x7d2e2f[_0x1ed297(-0x26,0x27,_0x5634f1._0x2a6380,-_0x5634f1._0x50b7b6)]});function _0x93d4a9(_0x37cf89,_0x4d4e5b,_0x1dc982,_0x45c1c5){return _0x20e0b0(_0x45c1c5- -_0x154fb8._0x3238,_0x4d4e5b-0x1e8,_0x1dc982-0x103,_0x1dc982);}const _0x466c6f=new Agent(await resolveDelegatedAgentOptions(_0x22bd4a,_0x35f8a4));let _0x4972f1={'runId':_0x10df9d,'agentId':_0x7d2e2f[_0x93d4a9(0xb7,-0x106,-0x44,-_0x5634f1._0x1e525a)],'sessionId':_0x466c6f[_0x1ed297(_0x5634f1._0xa7c2cd,_0x5634f1._0x45d386,-0x14,0x75)],'status':'running','parentSessionId':_0x34bbad['sessionId'],..._0x34bbad[_0x1ed297(_0x5634f1._0xdc584,0x77,0x203,0x199)]!==void 0x0?{'originToolCallId':_0x34bbad[_0x1ed297(0x6e,_0x5634f1._0x48974c,_0x5634f1._0x4bcacf,0x199)]}:{}};const _0x1edba3=new AbortController(),_0x56fd99=addAbortListener(_0x34bbad['signal'],()=>{const _0x4cfe1d={_0x15f979:0x62},_0x3c711b={_0x5c6aa5:0xa9,_0x3fabed:0xb7};function _0x3a02c5(_0x514d1d,_0x207b30,_0x182a99,_0x44f072){return _0x1ed297(_0x514d1d-_0x3c711b._0x5c6aa5,_0x207b30,_0x182a99-_0x3c711b._0x3fabed,_0x514d1d-0x4dc);}function _0x40dbeb(_0x1fe464,_0x5f4b80,_0x208467,_0x142b95){return _0x1ed297(_0x1fe464-_0x4cfe1d._0x15f979,_0x208467,_0x208467-0x1aa,_0x1fe464- -0x16e);}_0x1edba3[_0x3a02c5(_0x3e2a97._0x3ebd4f,_0x3e2a97._0x107118,_0x3e2a97._0x15063e,_0x3e2a97._0xa9e4b1)](_0x34bbad[_0x40dbeb(_0x3e2a97._0x5a678c,-_0x3e2a97._0x40d19f,-0xe9,-_0x3e2a97._0x1ea806)]?.['reason']);});yield createToolOutput(_0x93d4a9(0x141,_0x5634f1._0x137ade,0x147,_0x5634f1._0x1a5639)+_0x4972f1[_0x93d4a9(-0x92,-_0x5634f1._0x3ace90,-0xa1,-_0x5634f1._0xd31a2b)]+'.',{'runId':_0x4972f1['runId'],'agentId':_0x4972f1[_0x1ed297(_0x5634f1._0x919bba,-0xf6,-_0x5634f1._0x2ea5a9,-_0x5634f1._0x24d676)],'sessionId':_0x4972f1[_0x1ed297(0x99,-_0x5634f1._0x43eed9,0x79,0x75)],'status':_0x4972f1[_0x1ed297(_0x5634f1._0x5749e0,0x114,0x10b,0xda)]});try{const _0x258c23=await _0x466c6f[_0x1ed297(0x68,_0x5634f1._0x35ee2e,0x24d,0x18e)](_0x7d2e2f['task'],{'signal':_0x1edba3[_0x1ed297(_0x5634f1._0x47b10d,_0x5634f1._0x5ce133,0x210,0x1b0)]});_0x4972f1={..._0x4972f1,'status':_0x258c23[_0x1ed297(_0x5634f1._0x4c51ae,0x1ad,0x6e,_0x5634f1._0x1544ac)],'result':_0x258c23};if(_0x258c23['status']!==_0x1ed297(-_0x5634f1._0x46e946,0x8b,0x1b,0x10)){const _0x52d60a=getRunTerminalErrorMessage(_0x258c23),_0x2025c3=formatAbortedRunMessage(_0x4972f1['runId'],_0x52d60a);throw new ToolExecutionError(_0x2025c3,{...createRunSummary(_0x4972f1),'aborted':!![],'errorMessage':_0x2025c3});}return createRunSummaryOutput(_0x4972f1,'Agent\x20run\x20'+_0x4972f1['runId']+_0x93d4a9(-0x84,_0x5634f1._0xd10ec,-0x14,_0x5634f1._0x1b1d03));}catch(_0xef592c){if(_0xef592c instanceof ToolExecutionError)throw _0xef592c;if(isAbortError(_0xef592c)||_0x1edba3[_0x1ed297(0x126,0x1e6,_0x5634f1._0x584a8b,_0x5634f1._0x10dc62)][_0x93d4a9(_0x5634f1._0x37a5d0,_0x5634f1._0x3a714b,0xef,0x17d)]||_0x34bbad[_0x1ed297(_0x5634f1._0x389cd9,0x9c,0x12e,_0x5634f1._0x10dc62)][_0x1ed297(_0x5634f1._0x1f69cf,_0x5634f1._0x1b5cb5,_0x5634f1._0x24d524,0x1a3)]){const _0x111904=getRunTerminalErrorMessage(_0x4972f1[_0x93d4a9(-0x45,-0x6e,-0xb1,_0x5634f1._0x4c212d)])??(_0xef592c instanceof Error?_0xef592c['message']:String(_0xef592c)),_0x331c4e=formatAbortedRunMessage(_0x4972f1[_0x1ed297(0xd1,_0x5634f1._0x1a3f42,_0x5634f1._0xc4b71c,0x12)],_0x111904);_0x4972f1={..._0x4972f1,'status':'aborted','errorMessage':_0x331c4e};throw new ToolExecutionError(_0x331c4e,{...createRunSummary(_0x4972f1),'aborted':!![],'errorMessage':_0x331c4e});}const _0x1a6554=getRunTerminalErrorMessage(_0x4972f1[_0x1ed297(_0x5634f1._0x251136,_0x5634f1._0x4bcacf,_0x5634f1._0x4e43ee,_0x5634f1._0x28cf25)])??(_0xef592c instanceof Error?_0xef592c[_0x1ed297(0x6c,0xb,_0x5634f1._0x6f10dc,0x133)]:String(_0xef592c))??_0x93d4a9(0xed,0x7c,0x1c9,_0x5634f1._0x352b7b)+_0x4972f1[_0x93d4a9(-_0x5634f1._0x3b4c90,-_0x5634f1._0x165abf,0x77,-0x14)]+_0x93d4a9(0x257,_0x5634f1._0x5601b8,_0x5634f1._0x1a0933,_0x5634f1._0x204933);_0x4972f1={..._0x4972f1,'status':'failed','errorMessage':_0x1a6554};throw new ToolExecutionError(_0x1a6554,{...createRunSummary(_0x4972f1),'errorMessage':_0x1a6554});}finally{_0x56fd99();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x3ef55b){return[createAssignTaskTool(_0x3ef55b)];}import*as _0x206810 from'path';function buildDescription2(_0x2169b3){const _0x511fcf={_0x593f18:0x680,_0x16aca4:0x49f,_0x1b8f7b:0x43c,_0x27841f:0x521,_0x2d45a5:0x611,_0x3356e9:0x5dd,_0x200da7:0x4fb,_0x1d1679:0x4d5,_0xa8bb46:0x4b3,_0x3f9647:0x3c1,_0x2953d9:0x45e,_0x3a080b:0x348,_0x560bd0:0x4cd,_0x2684b2:0x4fd},_0x4992ac={_0x2fe342:0x150,_0x208bb0:0xa,_0x188091:0x17};function _0x348d95(_0x183fad,_0x352878,_0x3aac2a,_0x3e3b09){return _0x255f51(_0x3aac2a- -_0x4992ac._0x2fe342,_0x352878-_0x4992ac._0x208bb0,_0x183fad,_0x3e3b09-_0x4992ac._0x188091);}function _0x3d617b(_0x4783cf,_0x3b549f,_0x597718,_0x1f111f){return _0x173565(_0x4783cf-0x15d,_0x3b549f-0x116,_0x4783cf,_0x3b549f-0x449);}if(_0x2169b3[_0x348d95(0x673,_0x511fcf._0x593f18,0x564,0x53a)]===0x0)return _0x348d95(_0x511fcf._0x16aca4,_0x511fcf._0x1b8f7b,0x47e,0x5a0);const _0x457b19=[_0x3d617b(0x62b,0x5e4,0x69b,0x6c9),_0x348d95(0x6b3,_0x511fcf._0x27841f,_0x511fcf._0x2d45a5,_0x511fcf._0x3356e9),_0x348d95(_0x511fcf._0x200da7,0x570,_0x511fcf._0x1d1679,_0x511fcf._0xa8bb46),_0x348d95(0x464,0x519,0x527,0x41b),..._0x2169b3[_0x348d95(_0x511fcf._0x3f9647,0x501,_0x511fcf._0x2953d9,_0x511fcf._0x3a080b)](_0x4b248f=>'-\x20'+_0x4b248f['name']+':\x20'+_0x4b248f['description'])];return _0x457b19[_0x3d617b(0x5ae,_0x511fcf._0x560bd0,_0x511fcf._0x2684b2,0x44f)]('\x0a');}function createLoadSkillTool(_0x25d3d5){const _0x55084e={_0x33cf32:0xdc,_0x3b4895:0x119,_0x2e1556:0x4e,_0x3e2b92:0xbe,_0x2cfb8c:0x68b,_0xc9f94d:0x6a3,_0x5a0b84:0xe8,_0x5982f5:0xe,_0x37fcde:0x9b,_0xb5d8f5:0x10b,_0x15c775:0x196},_0x49be25={_0xfd6b75:0x442,_0x39c2c7:0x502,_0x1ff5c8:0x5b6,_0x54cf97:0x626,_0x520a8c:0x554,_0x4c0a20:0x5b8,_0x269330:0x69d,_0x4fa5ee:0x573,_0x33ce62:0x7be,_0x41a857:0x6e3,_0x4a3377:0x5c9,_0x1ca1c0:0x759,_0x1c31c9:0x595,_0x519dee:0x786,_0x531467:0x6af,_0x550bb7:0x544,_0x4cacc3:0x516,_0x4c54bb:0x498,_0x1c81ee:0x5c3,_0x8b48e6:0x757,_0x458859:0x581,_0x481f84:0x616,_0x4aece4:0x6c4,_0x1ac624:0x535,_0x3a3c58:0x687,_0x5b262e:0x71f,_0x22dcc3:0x74e,_0x2f1738:0x612,_0x48aa86:0x66a,_0x3910d0:0x5df,_0x5b6c9f:0x64d,_0x5745f3:0x6dc,_0x3cb4b8:0x6e0,_0x4e1b65:0x5b6},_0x555dd2={_0x29c278:0x187,_0x2dc32e:0x90},_0x1628c1={_0x5278ed:0x15a,_0x423b52:0x4a},_0x42c97d=new Map(_0x25d3d5['skills'][_0x283910(-_0x55084e._0x33cf32,_0x55084e._0x3b4895,_0x55084e._0x2e1556,_0x55084e._0x3e2b92)](_0x2bf534=>[_0x2bf534[_0x5bdc7e(0x680,0x690,0x70d,0x7a5)],_0x2bf534]));function _0x5bdc7e(_0x4c6e91,_0x3aea98,_0x437d7d,_0x5581cc){return _0x255f51(_0x437d7d- -0x5,_0x3aea98-_0x1628c1._0x5278ed,_0x5581cc,_0x5581cc-_0x1628c1._0x423b52);}const _0x270bdc=buildDescription2(_0x25d3d5[_0x5bdc7e(0x5a2,_0x55084e._0x2cfb8c,_0x55084e._0xc9f94d,0x6e6)]);function _0x283910(_0x136497,_0x1a544b,_0x36a238,_0x5170a0){return _0x255f51(_0x36a238- -0x560,_0x1a544b-_0x555dd2._0x29c278,_0x5170a0,_0x5170a0-_0x555dd2._0x2dc32e);}return defineTool({'name':_0x283910(0x49,-_0x55084e._0x5a0b84,_0x55084e._0x5982f5,-_0x55084e._0x37fcde),'description':_0x270bdc,'inputSchema':{'type':_0x5bdc7e(0x5dd,0x5b5,0x658,0x576),'properties':{'name':{'type':_0x283910(_0x55084e._0xb5d8f5,0xbf,0x15f,0x118)}},'required':[_0x283910(0xc7,0x1d3,0x1b2,_0x55084e._0x15c775)]},async *'execute'(_0x472187){const _0x28296c={_0x229cd6:0x75},_0x54443a=_0x42c97d[_0xb7198b(_0x49be25._0xfd6b75,0x604,_0x49be25._0x39c2c7,0x54c)](_0x472187[_0x156484(0x79c,0x6e3,_0x49be25._0x1ff5c8,_0x49be25._0x54cf97)]);function _0xb7198b(_0xfa6367,_0x3a4045,_0x110841,_0x20d3be){return _0x5bdc7e(_0xfa6367-0x5,_0x3a4045-_0x28296c._0x229cd6,_0x20d3be- -0x5e,_0xfa6367);}if(!_0x54443a){const _0x8cd238=Array[_0xb7198b(0x618,_0x49be25._0x520a8c,_0x49be25._0x4c0a20,0x57a)](_0x42c97d[_0x156484(0x5bb,0x52f,0x53e,0x41b)]())[_0x156484(_0x49be25._0x269330,0x5c1,0x517,_0x49be25._0x4fa5ee)](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x472187[_0x156484(_0x49be25._0x33ce62,_0x49be25._0x41a857,_0x49be25._0x4a3377,_0x49be25._0x1ca1c0)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x8cd238,{'name':_0x472187[_0xb7198b(_0x49be25._0x1c31c9,0x6f3,_0x49be25._0x519dee,_0x49be25._0x531467)]});}const _0x4a64c6=await _0x25d3d5[_0xb7198b(_0x49be25._0x550bb7,_0x49be25._0x4cacc3,_0x49be25._0x4c54bb,_0x49be25._0x1c81ee)](_0x54443a),_0x42b26c=_0x54443a[_0xb7198b(0x77a,_0x49be25._0x8b48e6,0x7c0,0x736)]['directory']??_0x206810[_0x156484(0x51a,_0x49be25._0x458859,_0x49be25._0x481f84,0x4c5)](_0x54443a['source'][_0x156484(_0x49be25._0x4aece4,0x5b6,_0x49be25._0x1ac624,0x572)]),_0x4e1eed=['##\x20Skill:\x20'+_0x4a64c6[_0xb7198b(0x63b,_0x49be25._0x3a3c58,_0x49be25._0x5b262e,_0x49be25._0x531467)],'',_0x4a64c6[_0x156484(_0x49be25._0x22dcc3,0x733,0x69e,0x67d)],'',_0x156484(_0x49be25._0x2f1738,0x5e6,0x6ee,_0x49be25._0x48aa86),'Loaded\x20from:\x20'+_0x54443a[_0x156484(0x7d6,0x76a,0x7f7,0x6bf)]['path'],_0xb7198b(_0x49be25._0x3910d0,_0x49be25._0x5b6c9f,0x7c2,_0x49be25._0x5745f3)+_0x42b26c]['join']('\x0a');function _0x156484(_0x41649a,_0x543833,_0x3254eb,_0x2fb78e){return _0x5bdc7e(_0x41649a-0xf8,_0x543833-0x15c,_0x543833- -0x2a,_0x41649a);}return yield createToolOutput(_0x4e1eed,{'id':_0x4a64c6['id'],'name':_0x4a64c6['name'],'path':_0x54443a['source'][_0x156484(_0x49be25._0x3cb4b8,_0x49be25._0x4e1b65,0x664,0x4c0)],'baseDirectory':_0x42b26c}),void 0x0;}});}import{readFile as _0x37d168,stat as _0x43436c}from'fs/promises';import*as _0xf2b270 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto','high',_0x255f51(0x6fb,0x60c,0x646,0x707),'original']),PNG_SIGNATURE=Buffer[_0x255f51(0x5dd,0x4ec,0x5bb,0x4fc)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x278c09,_0x1fa110){const _0x469cfd={_0x315a8e:0x1ac,_0x7f3aff:0x251,_0x280e80:0x284,_0x8dbab8:0x10a,_0x5b0d7b:0x119,_0x571490:0xe6,_0x4d33af:0x2f0,_0x319fce:0x262,_0x4b1e78:0x1b9,_0x2da768:0x2ed,_0x566ff7:0x105,_0x350858:0x94,_0x3ef483:0x8e,_0x55b7f4:0x10e,_0x15a633:0x18d,_0x1fc90a:0x1be,_0x4dd276:0x1db,_0x38236d:0x104,_0x49bcc4:0x10a,_0x31a1e5:0x1ba,_0x59e60b:0xe1,_0x775b65:0x116,_0x4309ee:0x142,_0x25ace1:0xcc,_0x47e8a6:0x174,_0x3e3a72:0x1df,_0x2c2d4c:0x8c,_0x12bda3:0x106,_0x4ce789:0x14e,_0x2e9203:0x218,_0x57aaab:0x27a,_0xee4114:0x153,_0x47b812:0x15e,_0x52acba:0xd6,_0x44afa1:0x234,_0x45526a:0x1b5,_0x6ae811:0x27b,_0x21a15f:0xf8,_0x354d0b:0x352,_0x442f21:0x296,_0x567fee:0x23f,_0x4ff644:0x294},_0x64d243={_0x29804d:0xf2,_0x175e96:0x1ae},_0x2daf1b={_0x587f96:0x146};function _0x5ae289(_0x59a078,_0x114f52,_0x43cf2,_0x3a40a3){return _0x173565(_0x59a078-0x19f,_0x114f52-0x3,_0x59a078,_0x114f52-_0x2daf1b._0x587f96);}if(_0x278c09['subarray'](0x0,0x8)[_0x5ae289(0x14b,0x1a3,0x1ed,0x21a)](PNG_SIGNATURE))return _0x5ae289(0x226,_0x469cfd._0x315a8e,_0x469cfd._0x7f3aff,_0x469cfd._0x280e80);function _0x409eb3(_0x227363,_0x561b49,_0x1b06b5,_0x1ff5fb){return _0x173565(_0x227363-0x51,_0x561b49-_0x64d243._0x29804d,_0x561b49,_0x227363- -_0x64d243._0x175e96);}if(_0x278c09[0x0]===0xff&&_0x278c09[0x1]===0xd8&&_0x278c09[0x2]===0xff)return'image/jpeg';const _0x2bc348=_0x278c09[_0x409eb3(-_0x469cfd._0x8dbab8,-0x10,-0x164,-0x35)](0x0,0x6)[_0x409eb3(-0x167,-0x166,-0x244,-0x1d3)](_0x409eb3(-_0x469cfd._0x5b0d7b,-0x20d,-0x215,-_0x469cfd._0x571490));if(_0x2bc348==='GIF87a'||_0x2bc348===_0x5ae289(_0x469cfd._0x4d33af,_0x469cfd._0x319fce,_0x469cfd._0x4b1e78,_0x469cfd._0x2da768))return'image/gif';if(_0x278c09[_0x409eb3(-0x10a,-_0x469cfd._0x566ff7,-_0x469cfd._0x350858,-_0x469cfd._0x3ef483)](0x0,0x4)[_0x5ae289(_0x469cfd._0x55b7f4,_0x469cfd._0x15a633,0x74,_0x469cfd._0x1fc90a)](_0x5ae289(0x2e9,_0x469cfd._0x4dd276,0x2d2,0x121))===_0x409eb3(-0xf0,-0x214,-_0x469cfd._0x38236d,-0x196)&&_0x278c09[_0x409eb3(-_0x469cfd._0x49bcc4,-_0x469cfd._0x31a1e5,-0x1f2,-0xfc)](0x8,0xc)[_0x409eb3(-0x167,-_0x469cfd._0x59e60b,-_0x469cfd._0x775b65,-0x273)](_0x409eb3(-0x119,-_0x469cfd._0x4309ee,-_0x469cfd._0x25ace1,-0x249))===_0x5ae289(0x8b,_0x469cfd._0x47e8a6,0x194,_0x469cfd._0x3e3a72))return'image/webp';const _0x515b3b=_0xf2b270[_0x409eb3(0x17,_0x469cfd._0x2c2d4c,-0x9c,-_0x469cfd._0x12bda3)](_0x1fa110)[_0x5ae289(_0x469cfd._0x4ce789,_0x469cfd._0x2e9203,_0x469cfd._0x57aaab,_0x469cfd._0xee4114)]();if(_0x515b3b==='.png')return _0x5ae289(_0x469cfd._0x47b812,0x1ac,_0x469cfd._0x52acba,_0x469cfd._0x44afa1);if(_0x515b3b==='.jpg'||_0x515b3b==='.jpeg')return _0x409eb3(-_0x469cfd._0x45526a,-_0x469cfd._0x6ae811,-_0x469cfd._0x52acba,-_0x469cfd._0x21a15f);if(_0x515b3b===_0x5ae289(0x3a6,_0x469cfd._0x354d0b,_0x469cfd._0x442f21,_0x469cfd._0x567fee))return'image/gif';if(_0x515b3b===_0x5ae289(_0x469cfd._0x4ff644,0x1f1,0x256,0x2e3))return'image/webp';return void 0x0;}function normalizeDetail(_0x57dbb0){const _0x499a22={_0x897ecb:0x3e5,_0x4d57d1:0x456},_0x477136={_0x34cd3d:0x113},_0x29e9de={_0x694b16:0x99};if(_0x57dbb0===void 0x0)return void 0x0;function _0x1d9820(_0x538f79,_0x548076,_0xbc125b,_0x445267){return _0x173565(_0x538f79-0x71,_0x548076-_0x29e9de._0x694b16,_0x538f79,_0x548076-0x236);}const _0x7c3221=_0x57dbb0[_0x1d9820(0x1f9,0x21b,0x2e3,0x236)]()[_0x2b531f(0x2c6,0x372,_0x499a22._0x897ecb,_0x499a22._0x4d57d1)]();function _0x2b531f(_0x2de576,_0xfb5232,_0x37a707,_0x21624f){return _0x173565(_0x2de576-_0x477136._0x34cd3d,_0xfb5232-0x1b,_0xfb5232,_0x37a707-0x313);}if(!SUPPORTED_DETAILS['has'](_0x7c3221))throw new ToolExecutionError('Unsupported\x20image\x20detail\x20level:\x20'+_0x57dbb0,{'detail':_0x57dbb0});return _0x7c3221;}function createViewFileTool(_0x6d4a43={}){const _0x369653={_0x1a0875:0x8f,_0x142fe4:0x24b,_0x4c500b:0x359,_0x4d530d:0x3ca,_0x51c61e:0x3cc,_0x5935f4:0x2e2,_0x49e493:0x35a,_0x51e016:0x288,_0x54cc01:0x28b,_0x314f69:0x1ea,_0x1b614e:0x2a4,_0xc915a0:0x2e7,_0x2e6421:0x214,_0x4caaca:0x30a},_0x25efd5={_0x1ac4ce:0x318,_0x1edafd:0x39b,_0x350487:0x4ab,_0x2b9e3a:0x469,_0x5682ca:0x472,_0xce9c84:0x4ac,_0x49db4a:0x168,_0x14b778:0x16d,_0x346f45:0x53c,_0x5e9391:0x54f,_0x29b793:0x86,_0x399a4c:0x272,_0x4ca167:0x3ca,_0x399bb5:0x3c8,_0x923f84:0x38d,_0x99aa16:0x2e1,_0x777cfe:0x3dc,_0x41270e:0x151,_0x555fd7:0x168,_0x47e3a7:0xa0,_0xb2d96a:0x38e,_0x546425:0x2b7,_0x2c344d:0x35c,_0x1855be:0x1b2,_0x8417c:0x20a,_0x4efdfd:0x259,_0x1d2b47:0x153,_0x2dc9e5:0x283,_0x184f38:0x154,_0x277836:0x504,_0x25b909:0x5dd,_0x519cc0:0x5d6,_0x53a5e6:0x1ef,_0x2ade45:0x173,_0x387a4c:0x1b4,_0x3c9bb1:0x13a,_0x14a5d6:0x174,_0xd8e2be:0x220,_0xe486b5:0x3bf,_0x167760:0x493,_0x236d8a:0x13f,_0x53f536:0x136,_0x235618:0x29,_0x5628ad:0x1e1,_0x4fa1ea:0x257,_0xa61791:0x2fb,_0x5cc75a:0x4d7,_0x2602b5:0xdc,_0x5aecc9:0x110,_0x5a2356:0x408,_0x40701e:0x181,_0x4e69e1:0x231,_0x2f48da:0x1ba,_0x29ebf3:0x2b8,_0x239168:0x368,_0x11593f:0x208,_0xfbcecd:0x26d,_0x5993c7:0x1ec,_0x27428b:0x306},_0xb417c6={_0x45b9bc:0x4d,_0x4b6479:0x160,_0xbf23a4:0x127},_0x13096b={_0x5232df:0x126,_0x316338:0xc1},_0x177ff4={_0xb13f97:0x107,_0x12233b:0x181},_0x7c2192=_0xf2b270[_0x4d613f(0x159,0x259,_0x369653._0x1a0875,0xe6)](_0x6d4a43[_0x29c3a6(0x295,0x319,_0x369653._0x142fe4,0x2a4)]??process[_0x4d613f(_0x369653._0x4c500b,_0x369653._0x4d530d,_0x369653._0x51c61e,0x405)]()),_0x2027ce=(_0x6d4a43['allowedDirs']??[])['map'](_0x5f521b=>_0xf2b270['resolve'](_0x5f521b)),_0x1f56fb=_0x6d4a43['maxBytes']??DEFAULT_MAX_BYTES,_0x6f0111=_0x6d4a43[_0x4d613f(_0x369653._0x5935f4,_0x369653._0x49e493,_0x369653._0x51e016,0x323)]??'ViewFile';function _0x29c3a6(_0x3825eb,_0xbdf098,_0x4b9407,_0x5e9981){return _0x255f51(_0x3825eb- -0x3b5,_0xbdf098-_0x177ff4._0xb13f97,_0x4b9407,_0x5e9981-_0x177ff4._0x12233b);}function _0x4d613f(_0x363f09,_0x359f38,_0x520cf6,_0x564086){return _0x173565(_0x363f09-_0x13096b._0x5232df,_0x359f38-_0x13096b._0x316338,_0x359f38,_0x363f09-0x13c);}return defineTool({'name':_0x6f0111,'description':_0x29c3a6(0x2c8,0x289,_0x369653._0x54cc01,_0x369653._0x314f69),'inputSchema':{'type':_0x29c3a6(0x2a8,_0x369653._0x1b614e,0x218,0x2fe),'properties':{'path':{'type':_0x29c3a6(0x30a,_0x369653._0xc915a0,_0x369653._0x2e6421,0x329)},'detail':{'type':_0x29c3a6(_0x369653._0x4caaca,0x211,0x338,0x221)}},'required':['path']},async *'execute'(_0x1ee611){const _0x56f73b={_0x7ae3da:0x1f4,_0x50b474:0x18e,_0x51d24d:0x163},_0x2bc8e6=resolveAllowedPath(_0x7c2192,_0x2027ce,_0x1ee611[_0x36318c(0x3a9,_0x25efd5._0x1ac4ce,0x44b,0x32b)]);function _0x2f8aa9(_0x24fc0c,_0x4baadf,_0x2d0b25,_0x43bf85){return _0x4d613f(_0x4baadf- -_0xb417c6._0x45b9bc,_0x24fc0c,_0x2d0b25-_0xb417c6._0x4b6479,_0x43bf85-_0xb417c6._0xbf23a4);}await assertWorkspaceFile(_0x2bc8e6);const _0x1eadbc=await _0x43436c(_0x2bc8e6);if(_0x1eadbc['size']>_0x1f56fb)throw new ToolExecutionError(_0x36318c(_0x25efd5._0x1edafd,0x35e,0x325,0x455)+_0x1ee611[_0x36318c(0x3a9,0x415,_0x25efd5._0x350487,0x3e0)],{'path':_0x1ee611['path'],'maxBytes':_0x1f56fb,'size':_0x1eadbc[_0x36318c(0x44b,0x356,0x3e1,0x3ce)]});const _0x363399=await _0x37d168(_0x2bc8e6);function _0x36318c(_0x4c04e9,_0x365517,_0x1e1862,_0x5d4244){return _0x4d613f(_0x4c04e9-_0x56f73b._0x7ae3da,_0x1e1862,_0x1e1862-_0x56f73b._0x50b474,_0x5d4244-_0x56f73b._0x51d24d);}const _0x2aea38=detectImageMediaType(_0x363399,_0x2bc8e6);if(!_0x2aea38)throw new ToolExecutionError(_0x36318c(_0x25efd5._0x2b9e3a,0x4a6,_0x25efd5._0x5682ca,_0x25efd5._0xce9c84)+_0x1ee611[_0x2f8aa9(0x60,_0x25efd5._0x49db4a,0x19c,0x18c)],{'path':_0x1ee611[_0x2f8aa9(_0x25efd5._0x14b778,0x168,0x213,0x250)],'supported':[_0x36318c(_0x25efd5._0x346f45,0x4b9,_0x25efd5._0x5e9391,0x579),_0x2f8aa9(_0x25efd5._0x29b793,0x18b,0x1de,0x1a8),_0x36318c(0x49a,0x3a8,0x461,0x473),_0x36318c(0x344,_0x25efd5._0x399a4c,_0x25efd5._0x4ca167,0x24e),_0x36318c(0x3db,0x362,0x493,0x39b)]});const _0x15a957=normalizeDetail(_0x1ee611[_0x36318c(_0x25efd5._0x399bb5,0x3de,_0x25efd5._0x923f84,0x3d7)]),_0x25b779=[_0x2f8aa9(0x206,_0x25efd5._0x99aa16,0x356,_0x25efd5._0x777cfe)+_0x1ee611[_0x2f8aa9(_0x25efd5._0x41270e,_0x25efd5._0x555fd7,_0x25efd5._0x47e3a7,0x186)],_0x2f8aa9(_0x25efd5._0xb2d96a,_0x25efd5._0x546425,_0x25efd5._0x2c344d,0x2cb)+_0x2aea38,'Size:\x20'+_0x1eadbc[_0x2f8aa9(_0x25efd5._0x1855be,_0x25efd5._0x8417c,0x15a,0x1e2)]+_0x2f8aa9(0x187,0x17c,_0x25efd5._0x4efdfd,0x153)][_0x2f8aa9(_0x25efd5._0x1d2b47,_0x25efd5._0x2dc9e5,_0x25efd5._0x184f38,0x2a2)](_0x15a957?[_0x36318c(_0x25efd5._0x277836,_0x25efd5._0x25b909,0x54d,_0x25efd5._0x519cc0)+_0x15a957]:[])[_0x2f8aa9(_0x25efd5._0x53a5e6,_0x25efd5._0x2ade45,0x1c3,0x1bf)]('\x0a'),_0x453136=[{'type':_0x2f8aa9(_0x25efd5._0x387a4c,_0x25efd5._0x3c9bb1,_0x25efd5._0x14a5d6,_0x25efd5._0xd8e2be),'source':{'type':_0x36318c(0x42c,_0x25efd5._0xe486b5,_0x25efd5._0x167760,0x549),'media_type':_0x2aea38,'data':_0x363399[_0x2f8aa9(_0x25efd5._0x236d8a,_0x25efd5._0x53f536,0x1f8,_0x25efd5._0x235618)](_0x2f8aa9(_0x25efd5._0x5628ad,0x1eb,_0x25efd5._0x4fa1ea,0x1ba))}},{'type':_0x2f8aa9(0x225,0x219,0x2f8,0x275),'text':_0x25b779}];return yield createToolOutput(_0x25b779,{'path':_0x1ee611[_0x36318c(0x3a9,_0x25efd5._0xa61791,_0x25efd5._0x5cc75a,0x4af)],'resolvedPath':_0x2bc8e6,'created':_0x1eadbc[_0x2f8aa9(0x7c,_0x25efd5._0x2602b5,0x13,_0x25efd5._0x5aecc9)][_0x36318c(0x4f9,0x5b1,_0x25efd5._0x5a2356,0x582)](),'modified':_0x1eadbc[_0x2f8aa9(_0x25efd5._0x40701e,0x105,0x162,_0x25efd5._0x4e69e1)][_0x2f8aa9(_0x25efd5._0x2f48da,_0x25efd5._0x29ebf3,0x1fe,_0x25efd5._0x239168)](),'size':_0x1eadbc[_0x2f8aa9(0x2c2,_0x25efd5._0x8417c,_0x25efd5._0x11593f,_0x25efd5._0xfbcecd)],'mimeType':_0x2aea38,'encoding':_0x2f8aa9(_0x25efd5._0x5993c7,0x1eb,_0x25efd5._0x27428b,0x144),..._0x15a957?{'detail':_0x15a957}:{}},_0x453136),void 0x0;}});}import _0x559a8d from'turndown';var USER_AGENT=_0x173565(0x151,0x1ae,0x72,0x128),DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x54d009){const _0x25f4dd={_0x4d30ff:0x7d1,_0x5c36ed:0x793,_0x19d2c6:0x759,_0xf8588c:0x1ba,_0x3957d7:0x25a,_0x352466:0x353,_0x3db2b3:0x43e,_0x5e0720:0x60c,_0x1a35a5:0x476,_0x3094c5:0x606,_0x27e61d:0x562,_0x5c3d56:0x2fc,_0x700970:0x333,_0x249727:0x61c,_0x1cf75c:0xbd,_0x14cb6e:0xb3,_0x12a544:0x740,_0x2698af:0x540,_0x18f3ee:0x614,_0xa23f15:0x644,_0x5a0e8c:0x4f5,_0x4b88f7:0x678,_0xe22f20:0x4e1,_0x2c5920:0x5e8},_0x226832={_0xfb900e:0x101,_0x32c499:0xe2,_0xccbd7e:0x17e};let _0x3d6263;try{_0x3d6263=new URL(_0x54d009);}catch{throw new ToolExecutionError(_0x58d573(_0x25f4dd._0x4d30ff,_0x25f4dd._0x5c36ed,0x84c,_0x25f4dd._0x19d2c6),{'url':_0x54d009});}if(_0x3d6263[_0x38487d(_0x25f4dd._0xf8588c,0x23d,_0x25f4dd._0x3957d7,0x1ef)]!==_0x38487d(_0x25f4dd._0x352466,0x28c,_0x25f4dd._0x3db2b3,0x45b)&&_0x3d6263[_0x58d573(_0x25f4dd._0x5e0720,_0x25f4dd._0x1a35a5,_0x25f4dd._0x3094c5,_0x25f4dd._0x27e61d)]!=='https:')throw new ToolExecutionError(_0x38487d(0x284,_0x25f4dd._0x5c3d56,_0x25f4dd._0x700970,0x229),{'url':_0x54d009});if(_0x3d6263[_0x58d573(0x4f5,0x57c,0x63c,_0x25f4dd._0x249727)]||_0x3d6263[_0x38487d(0x1c8,0x16e,_0x25f4dd._0x1cf75c,_0x25f4dd._0x14cb6e)])throw new ToolExecutionError(_0x58d573(_0x25f4dd._0x12a544,_0x25f4dd._0x2698af,_0x25f4dd._0x18f3ee,_0x25f4dd._0xa23f15),{'url':_0x3d6263[_0x58d573(0x4d5,0x4c8,_0x25f4dd._0x5a0e8c,0x562)]+'//'+_0x3d6263['host']+_0x3d6263[_0x58d573(_0x25f4dd._0x4b88f7,0x4bf,_0x25f4dd._0xe22f20,_0x25f4dd._0x2c5920)]});function _0x58d573(_0x1ff770,_0xa97ce6,_0x39a5d9,_0x5e5b9a){return _0x173565(_0x1ff770-0x2,_0xa97ce6-0x63,_0x39a5d9,_0x5e5b9a-0x526);}function _0x38487d(_0x23fd1d,_0x32e85d,_0x318c29,_0x3cf767){return _0x173565(_0x23fd1d-_0x226832._0xfb900e,_0x32e85d-_0x226832._0x32c499,_0x32e85d,_0x23fd1d-_0x226832._0xccbd7e);}return _0x3d6263;}function parseContentLength(_0x2870b1){if(!_0x2870b1)return void 0x0;const _0x533d47=Number(_0x2870b1);return Number['isFinite'](_0x533d47)&&_0x533d47>=0x0?_0x533d47:void 0x0;}function createTimeoutSignal(_0x20453b,_0x1a0690){const _0x1758b={_0x3f3b3c:0x78,_0x213e48:0x159,_0x1a600c:0x1a6,_0x2ef085:0x211},_0x5620a4={_0x4b0458:0x103},_0x180b81={_0x22b452:0xa1,_0xa91671:0x14e,_0x2838bc:0x56},_0x2c344f=new AbortController();function _0x210d86(_0x379bc8,_0x3151a3,_0x4bbb9f,_0x15560a){return _0x173565(_0x379bc8-_0x180b81._0x22b452,_0x3151a3-_0x180b81._0xa91671,_0x3151a3,_0x15560a-_0x180b81._0x2838bc);}const _0x44125d=setTimeout(()=>_0x2c344f['abort'](new Error('Fetch\x20timed\x20out')),_0x1a0690),_0x213fd2=()=>_0x2c344f[_0x7b2075(-0x87,0x5d,0x14b,-0x89)](_0x20453b[_0x7b2075(0x1ec,0x20f,0x2f3,0x189)]);function _0x7b2075(_0x292ef9,_0x42b70d,_0x53d318,_0xf0802){return _0x173565(_0x292ef9-_0x5620a4._0x4b0458,_0x42b70d-0x66,_0x292ef9,_0x42b70d-0x1);}return _0x20453b['aborted']?_0x2c344f['abort'](_0x20453b['reason']):_0x20453b[_0x7b2075(-_0x1758b._0x3f3b3c,0xa7,_0x1758b._0x213e48,_0x1758b._0x1a600c)]('abort',_0x213fd2,{'once':!![]}),{'signal':_0x2c344f[_0x7b2075(0x1bc,_0x1758b._0x2ef085,0x27d,0x22b)],'cleanup':()=>{clearTimeout(_0x44125d),_0x20453b['removeEventListener']('abort',_0x213fd2);}};}function createWebFetchTool(_0x3e713e={}){const _0x2af23a={_0x5aa2f2:0x261,_0x203904:0x2c9,_0x300f96:0x3dc,_0x612e:0x57a,_0x7076de:0x1f5,_0x50372d:0x43,_0x382fd2:0xc1,_0x3c4cb2:0x2dc,_0x3e646f:0x269,_0x1d7bfa:0x2b1,_0x3ce496:0x276,_0x445cb2:0xf6,_0x2ac294:0x117,_0x20c92d:0x324,_0x3ab67f:0x2a9,_0x203201:0x3c3,_0x2a6dff:0x4dc,_0x14161e:0x47d,_0x4f1435:0x46e,_0x224c0c:0x4af,_0x4d2393:0x40e,_0x4bfb26:0x35c,_0x2fe1e2:0x279,_0x21441f:0x406,_0x54b6ad:0x329,_0x5c7aee:0x21a,_0x45c8a2:0x538,_0xc51a2b:0x416,_0x12a8fd:0x52f,_0x57ce1c:0x4b3},_0x4b3c62={_0x44ec66:0x4e9,_0x2a26d6:0x4e7,_0x53dbe6:0x436,_0x23e1cb:0x366,_0xaa6043:0x2f5,_0x502bfc:0x52e,_0x2f069f:0x592,_0x7f0b78:0x575,_0x41fdce:0x543,_0x485387:0x585,_0x5be5a7:0x30f,_0x2b202f:0x5c0,_0x314a48:0x3f0,_0x3621ac:0x3e0,_0x4252b3:0x3ed,_0x12f048:0x2f0,_0x13115c:0x4a2,_0xdfc227:0x3ce,_0x6d382e:0x547,_0x3d51b6:0x53f,_0x39ca5b:0x39d,_0x28f77e:0x4bc,_0x18540a:0x328,_0x34a9bc:0x3bc,_0x1d6cfe:0x33a,_0x223450:0x309,_0x583288:0x4c7,_0x10b427:0x485,_0x21745f:0x373,_0xdfe939:0x2e0,_0x33e300:0x3ac,_0x237ed5:0x34f,_0x31bd44:0x474,_0x5e6ec7:0x362,_0x4f3ed8:0x4be,_0x519134:0x429,_0xa0dae8:0x5bd,_0x561665:0x59f,_0x39a068:0x4bf,_0x57d1e2:0x4dd,_0x4b97cd:0x511,_0x31dfa4:0x486,_0x5ea75f:0x3a2,_0x3dcaf3:0x3ce},_0x255a85={_0x210c9c:0x1c8,_0x4d9fa1:0x25f},_0x10b006={_0x47fcea:0xc0,_0x75eaea:0x325},_0xda664={_0x26df7b:0x96,_0x1e5f42:0x3f};function _0x45c1c9(_0x3b8022,_0x2d75dd,_0x13c13a,_0x189635){return _0x173565(_0x3b8022-_0xda664._0x26df7b,_0x2d75dd-_0xda664._0x1e5f42,_0x2d75dd,_0x13c13a-0x123);}function _0x86491f(_0x42bbb9,_0x1998dd,_0x531b2e,_0x51b04c){return _0x173565(_0x42bbb9-0x16a,_0x1998dd-_0x10b006._0x47fcea,_0x42bbb9,_0x531b2e-_0x10b006._0x75eaea);}const _0x564648=_0x3e713e[_0x45c1c9(_0x2af23a._0x5aa2f2,0x3c0,_0x2af23a._0x203904,_0x2af23a._0x300f96)]??_0x86491f(0x5b4,_0x2af23a._0x612e,0x4a1,0x527),_0x268b40=_0x3e713e[_0x45c1c9(_0x2af23a._0x7076de,_0x2af23a._0x50372d,0x107,_0x2af23a._0x382fd2)]??DEFAULT_MAX_BYTES2,_0x2455ee=_0x3e713e[_0x86491f(_0x2af23a._0x3c4cb2,0x3dd,0x376,0x36a)]??DEFAULT_TIMEOUT_MS2,_0x12f98b=new _0x559a8d({'headingStyle':_0x45c1c9(0x1c9,_0x2af23a._0x3e646f,0x2e5,0x3d6),'codeBlockStyle':'fenced','bulletListMarker':'-'});return _0x12f98b[_0x45c1c9(0x32d,_0x2af23a._0x1d7bfa,0x244,_0x2af23a._0x3ce496)]([_0x45c1c9(_0x2af23a._0x445cb2,0x129,_0x2af23a._0x2ac294,0x1e7),_0x86491f(0x310,0x316,_0x2af23a._0x20c92d,0x352),_0x86491f(_0x2af23a._0x3ab67f,0x477,_0x2af23a._0x203201,_0x2af23a._0x2a6dff),'iframe','nav',_0x45c1c9(_0x2af23a._0x14161e,0x24f,0x35a,0x471),_0x86491f(_0x2af23a._0x4f1435,_0x2af23a._0x224c0c,_0x2af23a._0x4d2393,_0x2af23a._0x4bfb26),_0x45c1c9(_0x2af23a._0x2fe1e2,_0x2af23a._0x21441f,_0x2af23a._0x54b6ad,_0x2af23a._0x5c7aee)]),defineTool({'name':_0x564648,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x86491f(0x4f2,_0x2af23a._0x45c8a2,_0x2af23a._0xc51a2b,0x427),'properties':{'description':{'type':'string'},'url':{'type':'string'}},'required':[_0x86491f(_0x2af23a._0x12a8fd,0x5af,_0x2af23a._0x57ce1c,0x5cf)]},async *'execute'(_0x27b66a,_0x1960c5){const _0x3bca20={_0x13a65a:0x1fc},_0x85c941=assertFetchableUrl(_0x27b66a[_0x50e7e0(_0x4b3c62._0x44ec66,_0x4b3c62._0x2a26d6,0x4ad,0x4d9)])[_0x50e7e0(_0x4b3c62._0x53dbe6,0x313,_0x4b3c62._0x23e1cb,_0x4b3c62._0xaa6043)]();if(_0x1960c5[_0x1de016(0x5b4,_0x4b3c62._0x502bfc,0x533,_0x4b3c62._0x2f069f)][_0x1de016(0x4ab,_0x4b3c62._0x7f0b78,_0x4b3c62._0x41fdce,_0x4b3c62._0x485387)])throw new ToolExecutionError(_0x50e7e0(0x2cd,0x268,_0x4b3c62._0x5be5a7,0x232),{'url':_0x85c941});const _0xee6853=createTimeoutSignal(_0x1960c5['signal'],_0x2455ee);let _0x59e286='',_0x27e40a=0x0,_0x232ae2;try{const _0x1ab55d=await fetch(_0x85c941,{'headers':{'User-Agent':USER_AGENT},'signal':_0xee6853['signal']});if(!_0x1ab55d['ok'])throw new ToolExecutionError('HTTP\x20'+_0x1ab55d[_0x1de016(0x4fc,_0x4b3c62._0x2b202f,_0x4b3c62._0x314a48,0x4bc)]+'\x20'+_0x1ab55d['statusText'],{'url':_0x85c941,'statusCode':_0x1ab55d[_0x1de016(_0x4b3c62._0x3621ac,0x5ac,_0x4b3c62._0x4252b3,0x4bc)]});const _0xb95af5=parseContentLength(_0x1ab55d['headers'][_0x50e7e0(0x40e,0x249,0x362,_0x4b3c62._0x12f048)](_0x50e7e0(0x572,_0x4b3c62._0x13115c,0x517,0x413)));if(_0xb95af5!==void 0x0&&_0xb95af5>_0x268b40)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0xb95af5+_0x1de016(0x5e3,_0x4b3c62._0xdfc227,0x491,0x4e7)+_0x268b40+_0x50e7e0(0x315,0x45f,0x3ac,0x29c),{'url':_0x85c941,'statusCode':_0x1ab55d[_0x1de016(_0x4b3c62._0x6d382e,_0x4b3c62._0x3d51b6,_0x4b3c62._0x39ca5b,_0x4b3c62._0x28f77e)],'contentLength':_0xb95af5,'maxBytes':_0x268b40});_0x59e286=_0x1ab55d['headers'][_0x1de016(_0x4b3c62._0x18540a,_0x4b3c62._0x34a9bc,_0x4b3c62._0x1d6cfe,0x3c5)]('content-type')??'',_0x27e40a=_0x1ab55d['status'],_0x232ae2=await _0x1ab55d['text']();}catch(_0x23a390){if(_0x23a390 instanceof ToolExecutionError)throw _0x23a390;const _0x573725=_0x23a390 instanceof Error?_0x23a390['message']:String(_0x23a390);throw new ToolExecutionError(_0x573725,{'url':_0x85c941});}finally{_0xee6853[_0x1de016(0x478,0x3c9,0x3d0,0x3a8)]();}function _0x50e7e0(_0x55ca12,_0x1125e1,_0x2486b2,_0x36e39b){return _0x45c1c9(_0x55ca12-0x75,_0x36e39b,_0x2486b2-_0x3bca20._0x13a65a,_0x36e39b-0x1d4);}if(Buffer[_0x1de016(_0x4b3c62._0x223450,0x441,0x379,0x40d)](_0x232ae2,_0x50e7e0(_0x4b3c62._0x583288,0x4a1,_0x4b3c62._0x10b427,0x447))>_0x268b40)throw new ToolExecutionError('Response\x20too\x20large:\x20exceeds\x20'+_0x268b40+_0x50e7e0(_0x4b3c62._0x21745f,_0x4b3c62._0xdfe939,_0x4b3c62._0x33e300,_0x4b3c62._0x237ed5),{'url':_0x85c941,'statusCode':_0x27e40a,'maxBytes':_0x268b40});function _0x1de016(_0x2d0baf,_0x565614,_0x34334d,_0x3d8af0){return _0x45c1c9(_0x2d0baf-_0x255a85._0x210c9c,_0x2d0baf,_0x3d8af0-_0x255a85._0x4d9fa1,_0x3d8af0-0x15f);}const _0x399455=new Date()['toISOString']();let _0x1e52ea,_0x1d1bdf;if(_0x59e286['includes']('application/json'))_0x1e52ea=_0x1de016(_0x4b3c62._0x31bd44,_0x4b3c62._0x5e6ec7,_0x4b3c62._0x4f3ed8,0x3da)+_0x232ae2+_0x50e7e0(0x591,_0x4b3c62._0x519134,0x500,0x434),_0x1d1bdf=_0x1de016(_0x4b3c62._0xa0dae8,_0x4b3c62._0x561665,_0x4b3c62._0x39a068,0x4d8);else _0x59e286[_0x1de016(_0x4b3c62._0x57d1e2,0x429,0x594,0x4d7)](_0x50e7e0(0x556,_0x4b3c62._0x4b97cd,0x434,0x361))?(_0x1e52ea=_0x12f98b['turndown'](_0x232ae2),_0x1d1bdf='markdown'):(_0x1e52ea=_0x232ae2,_0x1d1bdf=_0x50e7e0(0x3d8,0x395,0x449,_0x4b3c62._0x31dfa4));return yield createToolOutput(_0x1e52ea,{'url':_0x85c941,'contentType':_0x59e286,'statusCode':_0x27e40a,'format':_0x1d1bdf,'size':_0x232ae2[_0x1de016(0x3ab,_0x4b3c62._0x5ea75f,_0x4b3c62._0x3dcaf3,0x4ca)],'fetchedAt':_0x399455}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x173565(0x13b,0x24b,0x210,0x1af);function normalizeUrl(_0x354dc2){const _0x253fe1={_0x4d0ab6:0x5f2,_0x35e2cb:0x5a6,_0x3adaf6:0x595,_0x24d9f3:0x68f,_0x26a6d9:0x7a0,_0x430949:0x495,_0xcefa1a:0x3be,_0x306cb4:0x4c1,_0x110cc1:0x34c,_0xdb040a:0x29e,_0x1dc0af:0x54d,_0x122a43:0x525,_0x3fb5a6:0x40d,_0x224b0f:0x69b,_0x3298c4:0x33d,_0x462ac3:0x25c,_0x39b3ef:0x302},_0x47166d={_0x43ad5c:0x94},_0x2d9127={_0x538692:0xbd};function _0x4a10a4(_0x5b0ee2,_0x2cb0c9,_0x27071e,_0x3d5c0c){return _0x255f51(_0x27071e- -_0x2d9127._0x538692,_0x2cb0c9-0x30,_0x5b0ee2,_0x3d5c0c-0xd8);}function _0x3882be(_0x1e7aa0,_0xf7c6ff,_0x3c6f5d,_0x27f85b){return _0x173565(_0x1e7aa0-_0x47166d._0x43ad5c,_0xf7c6ff-0x44,_0xf7c6ff,_0x27f85b-0x192);}try{const _0x122777=new URL(_0x354dc2);for(const _0x57068a of[_0x4a10a4(0x515,_0x253fe1._0x4d0ab6,_0x253fe1._0x35e2cb,_0x253fe1._0x3adaf6),_0x4a10a4(0x5d5,0x77e,_0x253fe1._0x24d9f3,_0x253fe1._0x26a6d9),_0x3882be(0x2c1,0x398,_0x253fe1._0x430949,_0x253fe1._0xcefa1a),_0x4a10a4(0x587,0x5e4,0x506,0x561),_0x4a10a4(0x490,0x482,_0x253fe1._0x306cb4,0x4fa),_0x3882be(0x39f,0x358,0x45b,_0x253fe1._0x110cc1),_0x3882be(_0x253fe1._0xdb040a,0x1e9,0x24e,0x296),_0x4a10a4(0x528,_0x253fe1._0x1dc0af,_0x253fe1._0x122a43,_0x253fe1._0x3fb5a6),_0x3882be(0x354,0x166,0x260,0x271)]){_0x122777[_0x4a10a4(_0x253fe1._0x224b0f,0x6a5,0x617,0x742)][_0x3882be(_0x253fe1._0x3298c4,_0x253fe1._0x462ac3,_0x253fe1._0x39b3ef,0x2f9)](_0x57068a);}return _0x122777['toString']();}catch{return _0x354dc2;}}function cseDateRestrict(_0x2c1039){const _0x2609f0={_0xd9e12d:0x2e8,_0x55f6ea:0x4db,_0x14233a:0x4b8},_0x14d138={_0x1b6b8c:0x1b6},_0x4077ab={_0x9841a9:0x71};function _0x371f9b(_0x1c5dea,_0x374a24,_0x2a3b76,_0x46d800){return _0x255f51(_0x2a3b76- -0x250,_0x374a24-_0x4077ab._0x9841a9,_0x374a24,_0x46d800-0x1b6);}function _0x1f49b1(_0x44267b,_0x45c3dd,_0x46ae69,_0x4ac7ad){return _0x255f51(_0x44267b- -0x376,_0x45c3dd-0x149,_0x4ac7ad,_0x4ac7ad-_0x14d138._0x1b6b8c);}if(_0x2c1039<=0x0)return void 0x0;if(_0x2c1039<=0x1e)return'd'+Math[_0x1f49b1(0x22d,0x128,_0x2609f0._0xd9e12d,0x164)](0x1,Math['floor'](_0x2c1039));if(_0x2c1039<=0x16d)return'm'+Math[_0x371f9b(0x3b3,0x52b,_0x2609f0._0x55f6ea,0x474)](_0x2c1039/0x1e);return'y'+Math[_0x371f9b(0x575,0x541,_0x2609f0._0x55f6ea,_0x2609f0._0x14233a)](_0x2c1039/0x16d);}function addSiteFilters(_0x3123cc,_0x395bba){const _0x515e69={_0x12f636:0x4de,_0x38bc56:0x48c,_0x5c3a5e:0x2d6,_0x1191bb:0x3df,_0x2d6533:0x21a,_0x19268f:0x2c5},_0x42491f={_0x40ac4f:0x17f};if(_0x395bba[_0x451f0e(0x416,_0x515e69._0x12f636,0x542,_0x515e69._0x38bc56)]===0x0)return _0x3123cc[_0x451f0e(_0x515e69._0x5c3a5e,0x4cb,_0x515e69._0x1191bb,0x465)]();function _0x451f0e(_0x1fd177,_0x41e0cc,_0x2cb27d,_0x206ffa){return _0x255f51(_0x2cb27d- -0x172,_0x41e0cc-0xac,_0x1fd177,_0x206ffa-_0x42491f._0x40ac4f);}function _0x3a9e28(_0x44abd1,_0x37c8fd,_0x880549,_0x13533d){return _0x173565(_0x44abd1-0xbd,_0x37c8fd-0xbb,_0x880549,_0x44abd1-0x196);}return(_0x3123cc+'\x20('+_0x395bba['map'](_0x2cbc37=>_0x3a9e28(0x2d7,0x2ba,0x355,0x3a5)+_0x2cbc37)[_0x3a9e28(_0x515e69._0x2d6533,_0x515e69._0x19268f,0x2a3,0x1c6)](_0x3a9e28(0x3b0,0x370,0x48c,0x4a9))+')')['trim']();}function normalizeType(_0x89400f){const _0x1ffd98={_0x5a2e40:0x275,_0x255a54:0x191,_0x33df00:0x6d,_0x2dd064:0x424,_0x11f9cd:0x556,_0x1cac99:0x69a},_0x58f6a1={_0x299095:0xd2,_0x56dafc:0x142,_0x48ba71:0x416},_0xf3def1={_0x185b4e:0x5f};function _0x260e6d(_0x1d2214,_0x2e9a85,_0x5426d5,_0x552a5e){return _0x255f51(_0x2e9a85- -0x70b,_0x2e9a85-0x1e6,_0x552a5e,_0x552a5e-_0xf3def1._0x185b4e);}function _0x269ad8(_0x4fcdd8,_0x1969b1,_0x2143b7,_0x3b0357){return _0x173565(_0x4fcdd8-_0x58f6a1._0x299095,_0x1969b1-_0x58f6a1._0x56dafc,_0x3b0357,_0x1969b1-_0x58f6a1._0x48ba71);}return _0x89400f===_0x260e6d(-_0x1ffd98._0x5a2e40,-_0x1ffd98._0x255a54,-0x1c9,-_0x1ffd98._0x33df00)?_0x269ad8(0x514,_0x1ffd98._0x2dd064,0x418,0x45d):_0x269ad8(0x703,0x600,_0x1ffd98._0x11f9cd,_0x1ffd98._0x1cac99);}async function fetchJson(_0x35f481,_0x517c9e){const _0x165062={_0x5c328f:0x243,_0x3eae2e:0x415,_0x45dc63:0x233,_0x53f260:0x2be,_0x21ade9:0x386,_0xdb55fd:0xfd,_0x129a31:0x176,_0x17c182:0x140,_0x548151:0x235,_0x3c2882:0x419,_0x471c00:0x2f9,_0x30904b:0x3fe},_0x46dff3={_0x84eba6:0x3ad,_0x459766:0x113,_0x504005:0x28},_0x16701f={_0x1eda83:0x3fe,_0x4b003d:0xcc,_0x48db89:0xc7},_0x190122=await fetch(_0x35f481,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x52c603(_0x165062._0x5c328f,_0x165062._0x3eae2e,0x31f,_0x165062._0x45dc63)},'signal':_0x517c9e});function _0x52c603(_0x8ed890,_0x58579b,_0x2be915,_0x509125){return _0x255f51(_0x2be915- -_0x16701f._0x1eda83,_0x58579b-_0x16701f._0x4b003d,_0x8ed890,_0x509125-_0x16701f._0x48db89);}if(!_0x190122['ok']){await _0x190122[_0x52c603(0x4a4,_0x165062._0x53f260,_0x165062._0x21ade9,0x329)]?.[_0x52c603(_0x165062._0xdb55fd,0x280,_0x165062._0x129a31,0x1ba)]()['catch'](()=>void 0x0);throw new ToolExecutionError(_0x52c603(_0x165062._0x17c182,0x1f7,_0x165062._0x548151,0x2f7)+_0x190122[_0x1a62af(_0x165062._0x3c2882,0x2e3,0x3f5,_0x165062._0x471c00)]+'\x20'+_0x190122['statusText'],{'statusCode':_0x190122[_0x1a62af(_0x165062._0x30904b,0x364,0x24a,_0x165062._0x471c00)]});}function _0x1a62af(_0x480540,_0x591574,_0x2adca2,_0x46ce88){return _0x255f51(_0x46ce88- -_0x46dff3._0x84eba6,_0x591574-_0x46dff3._0x459766,_0x480540,_0x46ce88-_0x46dff3._0x504005);}return await _0x190122['json']();}async function hydrateResults(_0x35a6d4,_0xc98cad,_0x5ba93b){const _0xf99236={_0x354a0a:0x8f,_0x334868:0x29c,_0x2fe7f0:0x326,_0xb9047:0x2a1,_0x3ba99d:0x19e,_0x5bc9d7:0x287,_0x35ae44:0x208,_0x49e75f:0x1f4},_0x33ceeb={_0x51a3b4:0x21,_0x22e50d:0xba,_0x19a4f1:0x1b2},_0x69445a={_0x39261e:0x636,_0x1ab558:0x145,_0x2ea89e:0x6c},_0x1270b7={_0x168bb9:0x472,_0x579c5e:0x3a1,_0x910244:0x47e,_0x28af88:0x39a,_0x5b24d2:0x558,_0x3d42d7:0x4c4,_0x216b51:0x36b,_0x47eb68:0x46b,_0xbdb2e7:0x473,_0x5b7a48:0x4a1,_0x3cdb9f:0x48e,_0x40fb3d:0x532,_0x5c2973:0x4d6,_0x1f5da8:0x51a,_0x55333d:0x4f9,_0x5b23a9:0x4c9,_0x93581e:0x4b5,_0x191687:0x328,_0x168742:0x374,_0x4a0f41:0x41c,_0xc112a6:0x4fa,_0x5146a3:0x50f,_0x480ad3:0x427,_0x4ed03b:0x43f,_0xdf9bcd:0x5f2,_0x36aa0a:0x5a0,_0x19e50f:0x35d,_0xe8b5ce:0x40e,_0x34a01d:0x4f6,_0x4bcf72:0x416,_0x5801bb:0x3b2,_0x4cb0f3:0x443,_0x1e79fa:0x2c4,_0x32369d:0x33a,_0x2260bb:0x3df,_0x27ad81:0x44f,_0x5c6df0:0x31e,_0x482791:0x3ab,_0x3401bd:0x367,_0xc7faa2:0x29e,_0x3360ec:0x400,_0x18d7f9:0x47d,_0x3d3c8f:0x444,_0x45f29b:0x3bb,_0x41a8ef:0x492,_0x2ccd1b:0x4e8,_0x17beb8:0x4ea,_0x178133:0x38a,_0x15c80d:0x42b},_0x4bec1a={_0x1f3671:0x143},_0x43a8bc=await Promise[_0x2dc99c(-_0xf99236._0x354a0a,-0x1bb,-0xaf,-0x83)](_0x35a6d4[_0x2dc99c(0xaa,-0x6,-0x49,0xe9)](0x0,0xa)['map'](async _0xa7e844=>{function _0x56f751(_0x3a5170,_0x4c9b83,_0x25f421,_0xe564f7){return _0x236975(_0x25f421,_0x4c9b83-0x69,_0x25f421-0x1f1,_0x4c9b83-0x1ed);}function _0x2a173c(_0x116e55,_0x56fff1,_0xd9a211,_0x37d8be){return _0x236975(_0x37d8be,_0x56fff1-_0x4bec1a._0x1f3671,_0xd9a211-0x1b0,_0x116e55-0x191);}try{const _0x2881c1=await fetch(_0xa7e844[_0x56f751(0x476,0x52d,0x447,_0x1270b7._0x168bb9)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0xc98cad,'Accept':_0x56f751(_0x1270b7._0x579c5e,0x4b4,0x4f1,_0x1270b7._0x910244)},'signal':_0x5ba93b});if(!_0x2881c1['ok'])return _0xa7e844;const _0x3aa5b9=await _0x2881c1[_0x2a173c(0x46d,_0x1270b7._0x28af88,0x47d,_0x1270b7._0x5b24d2)](),_0x1626a5=load(_0x3aa5b9),_0x1fd01b=_0x1626a5('meta[property=\x27og:title\x27]')[_0x2a173c(0x3b2,0x483,_0x1270b7._0x3d42d7,_0x1270b7._0x216b51)](_0x2a173c(0x408,_0x1270b7._0x47eb68,_0x1270b7._0xbdb2e7,_0x1270b7._0x5b7a48))||_0x1626a5(_0x2a173c(_0x1270b7._0x3cdb9f,0x58a,0x452,_0x1270b7._0x40fb3d))[_0x56f751(_0x1270b7._0x5c2973,_0x1270b7._0x1f5da8,_0x1270b7._0x55333d,0x5fd)]()[_0x56f751(0x5c8,_0x1270b7._0x5b23a9,0x3f7,_0x1270b7._0x93581e)]()[_0x2a173c(_0x1270b7._0x191687,_0x1270b7._0x168742,0x2a3,_0x1270b7._0x4a0f41)](),_0xbf42ac=_0x1626a5(_0x2a173c(_0x1270b7._0xc112a6,0x57a,_0x1270b7._0x5146a3,_0x1270b7._0x480ad3))['attr']('content')||_0x1626a5(_0x56f751(0x470,0x515,0x5e5,_0x1270b7._0x4ed03b))['attr']('content')||_0xa7e844[_0x56f751(_0x1270b7._0xdf9bcd,_0x1270b7._0x36aa0a,0x4aa,0x57e)],_0x33411f=_0x1626a5(_0x56f751(0x4f0,0x3df,0x3c4,_0x1270b7._0x19e50f))[_0x56f751(0x517,_0x1270b7._0xe8b5ce,0x2fb,0x39e)](_0x2a173c(0x408,_0x1270b7._0x34a01d,0x2fc,0x335))||_0x1626a5(_0x56f751(0x368,_0x1270b7._0x4bcf72,0x463,0x472))[_0x2a173c(_0x1270b7._0x5801bb,_0x1270b7._0x4cb0f3,0x41d,_0x1270b7._0x1e79fa)](_0x2a173c(_0x1270b7._0x32369d,_0x1270b7._0x2260bb,_0x1270b7._0x27ad81,_0x1270b7._0x5c6df0))||_0xa7e844[_0x2a173c(_0x1270b7._0x482791,0x3b8,_0x1270b7._0x3401bd,_0x1270b7._0xc7faa2)],_0x8bdd74=_0x1626a5(_0x56f751(_0x1270b7._0x3360ec,0x3d1,_0x1270b7._0x18d7f9,_0x1270b7._0x3d3c8f))['attr'](_0x2a173c(_0x1270b7._0x45f29b,0x321,0x33e,_0x1270b7._0x41a8ef));return{..._0xa7e844,'title':_0x1fd01b||_0xa7e844[_0x56f751(_0x1270b7._0x2ccd1b,_0x1270b7._0x17beb8,0x4e1,0x574)],'snippet':_0xbf42ac,'url':_0x8bdd74?normalizeUrl(new URL(_0x8bdd74,_0xa7e844['url'])[_0x2a173c(_0x1270b7._0x178133,0x2ee,0x30e,_0x1270b7._0x15c80d)]()):_0xa7e844['url'],'publishedAt':_0x33411f};}catch{return _0xa7e844;}}));function _0x2dc99c(_0x20403e,_0x144277,_0x31e714,_0x4e69bd){return _0x255f51(_0x20403e- -_0x69445a._0x39261e,_0x144277-_0x69445a._0x1ab558,_0x31e714,_0x4e69bd-_0x69445a._0x2ea89e);}function _0x236975(_0x596c70,_0xc78ef1,_0x5927e7,_0x150451){return _0x173565(_0x596c70-_0x33ceeb._0x51a3b4,_0xc78ef1-_0x33ceeb._0x22e50d,_0x596c70,_0x150451-_0x33ceeb._0x19a4f1);}const _0x498389=new Map(_0x35a6d4[_0x236975(0x363,_0xf99236._0x334868,0x2ae,_0xf99236._0x2fe7f0)](0x0,0xa)[_0x236975(_0xf99236._0xb9047,_0xf99236._0x3ba99d,_0xf99236._0x5bc9d7,0x1f4)]((_0xfbf553,_0xc0b0c1)=>[_0xfbf553[_0x236975(0x264,0x2b3,0x32c,0x340)],_0x43a8bc[_0xc0b0c1]]));return _0x35a6d4[_0x236975(0xf1,_0xf99236._0x35ae44,0xdf,_0xf99236._0x49e75f)](_0x11e249=>_0x498389[_0x2dc99c(-0x87,-0x129,-0x18b,-0x158)](_0x11e249[_0x2dc99c(0xc4,0x12e,0x159,0x6a)])??_0x11e249);}function formatResults(_0xe8c831){const _0x2dd065={_0x10689d:0x6d3},_0xe7db78={_0x5316d4:0x174,_0x215e35:0x91,_0xead088:0x41,_0x352c43:0x75,_0x486bf6:0x11c,_0x3423c5:0x3f,_0x345739:0xd1,_0x283e6f:0x5b9,_0x117a38:0x6d1,_0x10b074:0xa8,_0x5ab455:0x95,_0xf11376:0x1a1,_0x4faecd:0x71,_0x20b616:0xc5,_0x13a3db:0x122,_0xa0802d:0xdd,_0x32fdf1:0x65,_0x10b361:0x87,_0x5944af:0x8e,_0x2bd571:0x228,_0x480e6a:0x103,_0x696a8:0x198},_0x46635b={_0x481657:0xc6},_0x4ad1fc={_0x4d1595:0x749,_0x43515b:0xaf,_0x55d9f9:0x1ea},_0x252c1d={_0x5173ef:0x15e};if(_0xe8c831[_0x631fde(0x725,_0x2dd065._0x10689d,0x7ef,0x678)]===0x0)return'No\x20results\x20found.';function _0x631fde(_0x2bcdc2,_0x4352af,_0x753f10,_0x56abff){return _0x173565(_0x2bcdc2-_0x252c1d._0x5173ef,_0x4352af-0x5a,_0x4352af,_0x2bcdc2-0x5dd);}return _0xe8c831['map'](_0x587924=>{const _0x138b4f=[_0x587924[_0x10e2bc(0x165,0xc1,_0xe7db78._0x5316d4,0x4d)][_0x10e2bc(-_0xe7db78._0x215e35,_0xe7db78._0xead088,_0xe7db78._0x352c43,_0xe7db78._0x486bf6)]+'.\x20'+_0x587924[_0x10e2bc(-_0xe7db78._0x3423c5,-0x21,_0xe7db78._0x345739,-0xc0)],_0x587924[_0x462640(_0xe7db78._0x283e6f,0x789,_0xe7db78._0x117a38,0x5d8)]];function _0x10e2bc(_0x2cdf00,_0x5e1009,_0x54fa1b,_0x30047c){return _0x631fde(_0x5e1009- -_0x4ad1fc._0x4d1595,_0x2cdf00,_0x54fa1b-_0x4ad1fc._0x43515b,_0x30047c-_0x4ad1fc._0x55d9f9);}function _0x462640(_0xc5ad89,_0x2560f6,_0x25d65d,_0x58e7ba){return _0x631fde(_0x25d65d- -0x9a,_0x58e7ba,_0x25d65d-_0x46635b._0x481657,_0x58e7ba-0x13c);}if(_0x587924[_0x10e2bc(_0xe7db78._0x10b074,_0xe7db78._0x5ab455,_0xe7db78._0xf11376,0x119)])_0x138b4f[_0x10e2bc(-_0xe7db78._0x4faecd,-0x28,-0x156,_0xe7db78._0x20b616)](_0x587924['snippet']);if(_0x587924[_0x10e2bc(-0x22,-0x104,-_0xe7db78._0x13a3db,-_0xe7db78._0xa0802d)])_0x138b4f[_0x10e2bc(_0xe7db78._0x32fdf1,-0x28,_0xe7db78._0x10b361,-_0xe7db78._0x5944af)](_0x10e2bc(-_0xe7db78._0x2bd571,-_0xe7db78._0x480e6a,-_0xe7db78._0x696a8,-0x1ee)+_0x587924['publishedAt']);return _0x138b4f[_0x10e2bc(0x22,-0xe8,-0x1e7,-0xf7)]('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x5a2d28,_0x4820d0,_0x348e8e){const _0x358f4e={_0x36b455:0x4b7,_0x599c77:0x3db,_0x1a60f7:0x479,_0xba114f:0xff,_0x558efb:0x1fd,_0x1e4fff:0x1,_0x1f7097:0x360,_0x5181bd:0x455,_0x22d6ba:0x5d,_0x45f34d:0x55c,_0x54b628:0x3ef,_0x15eab1:0x4ee,_0x26ed8b:0x5e9,_0x1c8667:0x4bc,_0x45653a:0x22a,_0x439446:0x1c2,_0x546a73:0x27a,_0x5b339f:0x3aa,_0x1e1b11:0x63a,_0x33864d:0x50c,_0x574f0d:0x52f,_0x474ccb:0xa9,_0x3f09ec:0xbd,_0x3015ce:0xf0,_0x345a1b:0xaa,_0x2a56a4:0x42f,_0x15c1ab:0x5cb,_0x38608a:0x52b,_0x1c5026:0x3e1,_0x29d7ea:0x35,_0x4ff641:0x493,_0x21bff5:0x505,_0x1a053a:0x4c4,_0x41abd3:0x572,_0x5715ff:0xd6,_0x38ee0f:0x8e,_0x3cfe75:0x46,_0x55b206:0x1c,_0xf2b4ce:0x120,_0x35f1ac:0x58c,_0x7d2b67:0x491,_0x5edf7b:0x44,_0x9e6e58:0x5c,_0x67588c:0x17,_0x40ac37:0x58d,_0x29a6c3:0x50c,_0x449011:0x5d9,_0x3bf640:0x597,_0x524a85:0x5d2,_0x59868f:0x505,_0x1756f7:0x59,_0x5b439c:0xc4,_0xf1d648:0x14b,_0x2118f1:0xfd,_0x4a99a0:0xc4,_0x3050a0:0x1d,_0x3797b0:0x16d,_0x386590:0x2d,_0x3d0292:0xc9,_0x40020b:0x144,_0x2fedc5:0x54,_0x1ec3be:0x3ef,_0x33f4b9:0x2f9,_0x38b8a9:0x4d8,_0x1ffa29:0x5d5,_0x511e1d:0x610,_0x36aa60:0x68e,_0x5cbe37:0x576,_0x5c7e2e:0x47,_0x203257:0x4f,_0x41c5cc:0xcd,_0x552429:0x10,_0x2dec9d:0xae,_0x2a76a3:0x4a,_0x5352d1:0x5f0,_0x97af8e:0x445,_0x5d8002:0x45b,_0x43ded8:0x417,_0x28903f:0x16e,_0x51d367:0x170,_0x411650:0x2e9,_0x2379ce:0x437,_0x94d035:0xa7,_0x5b9494:0x4a5,_0x1f2697:0x4f9,_0x1a6f49:0x547,_0x5f3f80:0x199,_0x4c3318:0x1a8,_0xab8d9:0x30b,_0x5a3250:0x39f,_0x4ee2ea:0x38d,_0x2e9181:0x4fc,_0x28fc74:0x3ba,_0x110b97:0x13e,_0x2a15e8:0x102,_0x1b28fa:0x2e,_0x39412b:0x11b,_0x4ee8c5:0xc0,_0x4030b6:0x23},_0x51936e={_0xdadeaf:0x10f,_0x2b2905:0x29,_0x27f894:0xa4},_0x41d65c={_0x30d45a:0x1c8,_0x385633:0x1c5},_0x233e7f=Math[_0x3502f9(0x37a,_0x358f4e._0x36b455,_0x358f4e._0x599c77,_0x358f4e._0x1a60f7)](0x1,Math[_0x89a379(_0x358f4e._0xba114f,0xc6,_0x358f4e._0x558efb,-_0x358f4e._0x1e4fff)](0x32,_0x4820d0['count']));function _0x3502f9(_0x4380b2,_0x296e55,_0x3e8ca3,_0x134d73){return _0x255f51(_0x3e8ca3- -_0x41d65c._0x30d45a,_0x296e55-_0x41d65c._0x385633,_0x134d73,_0x134d73-0x1c2);}function _0x89a379(_0x2a0f79,_0x1ebd85,_0x55eb50,_0x462c89){return _0x173565(_0x2a0f79-_0x51936e._0xdadeaf,_0x1ebd85-_0x51936e._0x2b2905,_0x462c89,_0x2a0f79- -_0x51936e._0x27f894);}if(_0x4820d0[_0x3502f9(0x3f9,_0x358f4e._0x1f7097,_0x358f4e._0x5181bd,0x46e)]+_0x233e7f>0x64)throw new ToolExecutionError(_0x89a379(0x37,-_0x358f4e._0x22d6ba,0x13,0xf0),{'offset':_0x4820d0['offset'],'count':_0x233e7f,'maxResults':0x64});const _0x4d09d0=cseDateRestrict(_0x4820d0[_0x3502f9(_0x358f4e._0x45f34d,_0x358f4e._0x54b628,_0x358f4e._0x15eab1,_0x358f4e._0x26ed8b)]),_0x227c74=addSiteFilters(_0x4820d0['query'],_0x4820d0['domains']);let _0x35d56a=0x0,_0x37a645=_0x4820d0[_0x3502f9(0x524,0x46a,0x455,_0x358f4e._0x1c8667)]+0x1;const _0x29b481=[];while(_0x35d56a<_0x233e7f){const _0x365e66=Math[_0x89a379(0xff,_0x358f4e._0x45653a,_0x358f4e._0x439446,0x176)](0xa,_0x233e7f-_0x35d56a),_0x4aee91=new URL(_0x3502f9(_0x358f4e._0x546a73,0x48a,_0x358f4e._0x5b339f,0x43c));_0x4aee91[_0x3502f9(0x415,_0x358f4e._0x1e1b11,_0x358f4e._0x33864d,0x400)]['set'](_0x3502f9(_0x358f4e._0x574f0d,0x487,0x522,0x469),_0x5a2d28[_0x89a379(0x170,_0x358f4e._0x474ccb,0x109,0x10e)]),_0x4aee91['searchParams'][_0x89a379(_0x358f4e._0x3f09ec,0x18,_0x358f4e._0x3015ce,_0x358f4e._0x345a1b)]('cx',_0x5a2d28['googleCseCx']),_0x4aee91[_0x89a379(0xc4,0x11f,0x173,0x1ca)][_0x3502f9(_0x358f4e._0x2a56a4,_0x358f4e._0x15c1ab,0x505,_0x358f4e._0x38608a)]('q',_0x227c74),_0x4aee91['searchParams']['set'](_0x3502f9(0x48a,_0x358f4e._0x1c5026,0x3bf,0x3ef),String(_0x365e66)),_0x4aee91[_0x89a379(0xc4,0x1e0,0x1ac,_0x358f4e._0x29d7ea)][_0x3502f9(_0x358f4e._0x4ff641,0x5e2,_0x358f4e._0x21bff5,0x542)](_0x3502f9(0x56e,_0x358f4e._0x1a053a,_0x358f4e._0x41abd3,0x5aa),String(_0x37a645)),_0x4aee91['searchParams'][_0x89a379(0xbd,_0x358f4e._0x5715ff,_0x358f4e._0x38ee0f,-_0x358f4e._0x3cfe75)](_0x89a379(0x5a,-_0x358f4e._0x55b206,0x187,_0x358f4e._0xf2b4ce),_0x4820d0[_0x3502f9(0x3f4,_0x358f4e._0x35f1ac,0x4a2,0x3e0)]?_0x3502f9(0x5f9,_0x358f4e._0x7d2b67,0x56a,0x453):'off');_0x4820d0[_0x89a379(0xd3,_0x358f4e._0x5edf7b,-_0x358f4e._0x9e6e58,_0x358f4e._0x67588c)]&&(_0x4aee91[_0x3502f9(_0x358f4e._0x40ac37,0x522,_0x358f4e._0x29a6c3,0x5b9)]['set']('hl',_0x4820d0[_0x3502f9(0x5d5,0x56f,0x51b,_0x358f4e._0x449011)]),_0x4aee91[_0x3502f9(0x553,0x495,_0x358f4e._0x33864d,0x5e6)][_0x3502f9(_0x358f4e._0x3bf640,_0x358f4e._0x524a85,_0x358f4e._0x59868f,0x616)]('lr','lang_'+_0x4820d0[_0x89a379(0xd3,0x126,0x19e,_0x358f4e._0x1756f7)]));if(_0x4820d0['region'])_0x4aee91[_0x89a379(_0x358f4e._0x5b439c,0x1bf,0xb5,_0x358f4e._0xf1d648)]['set']('gl',_0x4820d0['region'][_0x3502f9(0x400,0x3d9,0x44e,0x52f)]());if(_0x4820d0[_0x89a379(0x1c,_0x358f4e._0x2118f1,0xb5,0x127)]==='images')_0x4aee91[_0x89a379(_0x358f4e._0x4a99a0,_0x358f4e._0x3050a0,0x14f,0x7d)][_0x89a379(_0x358f4e._0x3f09ec,_0x358f4e._0x3797b0,_0x358f4e._0x386590,-0x2a)](_0x89a379(_0x358f4e._0x3d0292,_0x358f4e._0x40020b,-_0x358f4e._0x2fedc5,0x26),_0x3502f9(0x339,0x3a0,_0x358f4e._0x1ec3be,_0x358f4e._0x33f4b9));if(_0x4d09d0)_0x4aee91['searchParams'][_0x3502f9(_0x358f4e._0x38b8a9,_0x358f4e._0x1ffa29,0x505,_0x358f4e._0x511e1d)](_0x3502f9(0x657,_0x358f4e._0x36aa60,_0x358f4e._0x5cbe37,0x4b9),_0x4d09d0);const _0x2bb5d9=await fetchJson(_0x4aee91[_0x89a379(-_0x358f4e._0x22d6ba,_0x358f4e._0x5c7e2e,-_0x358f4e._0x203257,-_0x358f4e._0x41c5cc)](),_0x348e8e),_0x218ec9=_0x2bb5d9[_0x89a379(_0x358f4e._0x552429,_0x358f4e._0x2dec9d,-_0x358f4e._0x2a76a3,-0x114)]??[];if(_0x218ec9[_0x3502f9(0x493,0x56e,0x4ec,_0x358f4e._0x5352d1)]===0x0)break;const _0x22167f=_0x35d56a;for(let _0x3fc153=0x0;_0x3fc153<_0x218ec9['length'];_0x3fc153++){const _0x40379e=_0x218ec9[_0x3fc153];if(!_0x40379e)continue;const _0x49325a=_0x40379e[_0x3502f9(0x578,_0x358f4e._0x97af8e,_0x358f4e._0x5d8002,_0x358f4e._0x43ded8)]||_0x40379e[_0x89a379(-0x59,-_0x358f4e._0x28903f,-_0x358f4e._0x51d367,-0xc6)]?.[_0x3502f9(_0x358f4e._0x411650,_0x358f4e._0x2379ce,0x3d5,0x2d8)]||'',_0x2780cf=_0x40379e[_0x89a379(_0x358f4e._0x94d035,0x76,-0x4a,-0x2f)]||_0x40379e[_0x3502f9(0x4f2,_0x358f4e._0x5b9494,0x3ef,_0x358f4e._0x1f2697)]?.[_0x3502f9(0x587,0x5a8,0x4ef,_0x358f4e._0x1a6f49)]||'Untitled',_0x13ea82=_0x40379e[_0x89a379(0x15d,_0x358f4e._0x5f3f80,0x1ad,_0x358f4e._0x4c3318)]||_0x40379e[_0x3502f9(_0x358f4e._0xab8d9,0x4ce,_0x358f4e._0x5a3250,0x37e)]?.['replace'](/<[^>]+>/g,''),_0x52c301=_0x40379e['pagemap']?.[_0x3502f9(0x4d6,0x531,0x55d,0x4aa)]?.[0x0]??{};let _0x4b2011;try{_0x4b2011=new URL(_0x49325a)[_0x3502f9(0x46e,0x41a,_0x358f4e._0x4ee2ea,0x48e)];}catch{_0x4b2011=null;}_0x29b481[_0x3502f9(0x5e7,_0x358f4e._0x2e9181,0x4e8,_0x358f4e._0x28fc74)]({'title':_0x2780cf,'url':normalizeUrl(_0x49325a),'snippet':_0x13ea82??null,'displayUrl':_0x4b2011,'favicon':null,'publishedAt':_0x52c301['article:published_time']||_0x52c301['og:updated_time']||null,'source':{'engine':'google-cse','rank':_0x22167f+_0x3fc153+0x1}});}_0x35d56a+=_0x218ec9[_0x89a379(0xa4,_0x358f4e._0x110b97,_0x358f4e._0x2a15e8,-_0x358f4e._0x1b28fa)],_0x37a645+=_0x218ec9[_0x89a379(0xa4,_0x358f4e._0x39412b,_0x358f4e._0x4ee8c5,_0x358f4e._0x4030b6)];if(_0x218ec9['length']<_0x365e66)break;}return _0x29b481['slice'](0x0,_0x233e7f);}function createWebSearchTool(_0x5c047a){const _0x7efc8f={_0x4eaed6:0x77d,_0x2adeff:0x748,_0x1ac2ed:0x684,_0x3ea3fb:0x5d0,_0x40f963:0x57e,_0x20c2a8:0x619,_0x1e9e2d:0x485,_0x20b04d:0x459,_0x444328:0x331,_0x371acf:0x375,_0x50f1e0:0x3b3,_0x2e092b:0x493,_0x27db24:0x6c3,_0x1c8b40:0x713,_0x35b205:0x6be,_0x5dc3fa:0x37c,_0x37a80d:0x314,_0x1b8970:0x2fc,_0x153e00:0x334,_0x5b8ca1:0x31e,_0x3084ac:0x428,_0xe3611e:0x543,_0x3358bb:0x550,_0x540aba:0x608,_0x1a115f:0x668,_0x4f7f83:0x785,_0x4eafe7:0x77b,_0x1b7f27:0x31b,_0x4e2a3f:0x4eb,_0x6994e5:0x42f,_0x415dfe:0x3a8,_0x5dc47c:0x4a0,_0x33f91f:0x4e1},_0x55f34a={_0xb9c605:0x2cf,_0x2541d7:0x21c,_0x492bd0:0x3f3,_0x4c42a6:0x114,_0x51d81a:0xca,_0x4cf84c:0x4c,_0x42c5b9:0xb6,_0x5aab72:0xf1,_0x5ca081:0x107,_0x402d05:0x251,_0x468661:0x4f,_0xf4a073:0x167,_0x4c7382:0x64,_0x38fac4:0x12a,_0x4ae9e4:0x1dd,_0x2dced6:0x16b,_0x5ef552:0x8f,_0x1c5cdd:0x245,_0x204811:0x154,_0x708506:0x4f,_0x53ba9a:0xc7,_0x218300:0x279,_0x5b4ae3:0x2c6,_0x3ea087:0x1d8,_0x14bf1f:0x5f,_0x85d527:0x171,_0x39a67b:0x8d,_0x39194f:0x90,_0x5eb2e5:0x143,_0x32ecdb:0x125,_0x574f07:0x85,_0x34e7ed:0x177,_0x38f1f1:0x268,_0x46457a:0x112,_0x3e3210:0x277,_0x1fb8f6:0x154,_0x8d45f2:0x2d7,_0x272a13:0x102,_0x1f5c88:0x14,_0x291ffb:0x13,_0x31c81a:0x23e,_0x20d6e5:0x4d,_0x29b805:0x51,_0x457d88:0x277,_0x469a98:0x1e1,_0x321bfd:0x1ab,_0x5da372:0x16a,_0x1f9b7d:0x79,_0x5b17af:0xee,_0x23d9ee:0xe0,_0x3073e8:0xa6,_0x40476c:0x151,_0x2b123d:0x26e,_0x3bd198:0x20e,_0x4068a1:0x2a6,_0x92816e:0x11a,_0xba400:0xba,_0x34370a:0x2bd,_0x1ab89c:0x429,_0x2fd572:0xd6,_0x5cca4:0x84,_0x4db3b5:0x3c,_0x2eba5a:0x7e,_0x4790d1:0x96,_0x2034e8:0x1e0,_0x3d50e6:0x17e,_0x53260f:0x299,_0x51b07b:0x2e9,_0x4e49c4:0x57,_0x524997:0x98,_0x1b1c54:0xe1,_0x4e569a:0x37},_0x5432f7={_0x1dcf2d:0x109},_0x4c6ec3={_0x363f76:0x51};function _0x10e62f(_0x156ace,_0x100309,_0x5e0b49,_0x4a5893){return _0x255f51(_0x156ace- -0x28d,_0x100309-0x1da,_0x4a5893,_0x4a5893-_0x4c6ec3._0x363f76);}function _0x52ff2b(_0x194227,_0x4d6643,_0x2cd31f,_0x17c1e7){return _0x255f51(_0x17c1e7- -0x1,_0x4d6643-_0x5432f7._0x1dcf2d,_0x194227,_0x17c1e7-0x20);}if(!_0x5c047a[_0x52ff2b(0x700,_0x7efc8f._0x4eaed6,0x66d,0x77f)])throw new Error('WebSearch\x20requires\x20GOOGLE_CSE_KEY');if(!_0x5c047a[_0x52ff2b(0x656,0x5c4,_0x7efc8f._0x2adeff,_0x7efc8f._0x1ac2ed)])throw new Error(_0x52ff2b(_0x7efc8f._0x3ea3fb,0x70c,_0x7efc8f._0x40f963,_0x7efc8f._0x20c2a8));const _0x5f1617=_0x5c047a[_0x10e62f(_0x7efc8f._0x1e9e2d,_0x7efc8f._0x20b04d,0x595,0x580)]??_0x10e62f(_0x7efc8f._0x444328,0x395,_0x7efc8f._0x371acf,0x38b);return defineTool({'name':_0x5f1617,'description':_0x10e62f(_0x7efc8f._0x50f1e0,_0x7efc8f._0x2e092b,0x2f7,0x2dd),'inputSchema':{'type':_0x10e62f(0x3d0,0x48e,0x4d7,0x392),'properties':{'description':{'type':_0x52ff2b(0x7b5,_0x7efc8f._0x27db24,_0x7efc8f._0x1c8b40,_0x7efc8f._0x35b205)},'query':{'type':'string'},'count':{'type':_0x10e62f(_0x7efc8f._0x5dc3fa,_0x7efc8f._0x37a80d,_0x7efc8f._0x1b8970,0x2be)},'offset':{'type':_0x10e62f(0x37c,_0x7efc8f._0x153e00,_0x7efc8f._0x5b8ca1,0x34d)},'domains':{'type':_0x10e62f(0x47f,_0x7efc8f._0x3084ac,_0x7efc8f._0xe3611e,0x56b),'items':{'type':'string'}},'recencyDays':{'type':_0x52ff2b(0x6b5,_0x7efc8f._0x3358bb,0x5ae,_0x7efc8f._0x540aba)},'lang':{'type':'string'},'region':{'type':_0x52ff2b(0x767,_0x7efc8f._0x1a115f,_0x7efc8f._0x4f7f83,_0x7efc8f._0x35b205)},'safe':{'type':_0x52ff2b(0x5e7,_0x7efc8f._0x4eafe7,0x5cd,0x6bb)},'type':{'type':_0x10e62f(0x432,0x43b,_0x7efc8f._0x1b7f27,_0x7efc8f._0x4e2a3f)},'hydrateMeta':{'type':_0x10e62f(_0x7efc8f._0x6994e5,_0x7efc8f._0x415dfe,0x319,0x42e)}},'required':[_0x10e62f(_0x7efc8f._0x5dc47c,0x54e,0x55b,_0x7efc8f._0x33f91f)]},async *'execute'(_0x114d69,_0x349228){const _0x2fa025={_0x266841:0x14,_0x5f5466:0x96,_0x15e66f:0x4b,_0x224afc:0xc3,_0x1c6330:0xbf,_0x2f5a79:0x21,_0x3e59a7:0xe7,_0x3b4d20:0xc8},_0x6ffb14={_0xe7a331:0xbf,_0x241d02:0x16b},_0x28cdcf={_0x488164:0x91},_0x2a232a=_0x114d69[_0x208bdf(0x2f0,_0x55f34a._0xb9c605,_0x55f34a._0x2541d7,_0x55f34a._0x492bd0)][_0x208bdf(_0x55f34a._0x4c42a6,0x1e8,_0x55f34a._0x51d81a,0x1de)]();if(!_0x2a232a)throw new ToolExecutionError(_0x347704(0x8f,0x48,0xbb,0x84));function _0x347704(_0x5ee6c3,_0x36e7ae,_0x1c47d8,_0x5b1f5b){return _0x10e62f(_0x5b1f5b- -0x46a,_0x36e7ae-0x198,_0x1c47d8-_0x28cdcf._0x488164,_0x36e7ae);}function _0x208bdf(_0x8b31dd,_0x37a57e,_0x3e268d,_0x2184c9){return _0x52ff2b(_0x2184c9,_0x37a57e-_0x6ffb14._0xe7a331,_0x3e268d-_0x6ffb14._0x241d02,_0x8b31dd- -0x43c);}const _0x289907={'query':_0x2a232a,'count':Math['max'](0x1,Math[_0x347704(0x10f,-_0x55f34a._0x4cf84c,0x57,0x18)](0x32,Math[_0x208bdf(0x153,0x19b,0xb3,0x205)](_0x114d69[_0x347704(0x12a,-0x21,_0x55f34a._0x42c5b9,0x7f)]??0xa))),'offset':Math[_0x347704(-_0x55f34a._0x5aab72,-_0x55f34a._0x5ca081,-_0x55f34a._0x402d05,-0x154)](0x0,Math[_0x347704(-0x93,-0x75,-_0x55f34a._0x468661,-_0x55f34a._0xf4a073)](_0x114d69[_0x208bdf(0x1e0,0x1b9,0x276,0x11b)]??0x0)),'domains':_0x114d69[_0x347704(-_0x55f34a._0x4c7382,-_0x55f34a._0x38fac4,-_0x55f34a._0x4ae9e4,-_0x55f34a._0x2dced6)]??[],'recencyDays':Math[_0x347704(-0x1c4,-_0x55f34a._0x5ef552,-_0x55f34a._0x1c5cdd,-_0x55f34a._0x204811)](0x0,Math[_0x347704(-_0x55f34a._0x708506,-0x251,-_0x55f34a._0x53ba9a,-0x167)](_0x114d69[_0x208bdf(_0x55f34a._0x218300,_0x55f34a._0x5b4ae3,_0x55f34a._0x3ea087,0x160)]??0x0)),'lang':_0x114d69[_0x347704(-0xa5,0xbb,-_0x55f34a._0x14bf1f,-0x14)]??'en','region':_0x114d69['region']??'','safe':_0x114d69[_0x347704(-0xc0,-_0x55f34a._0x85d527,-0xe8,-_0x55f34a._0x39a67b)]??!![],'type':normalizeType(_0x114d69['type']),'hydrateMeta':_0x114d69[_0x347704(-0x144,-0xf3,-_0x55f34a._0x39194f,-_0x55f34a._0x5eb2e5)]??![]};let _0x41a9b0=await searchGoogleCse(_0x5c047a,_0x289907,_0x349228[_0x347704(_0x55f34a._0x32ecdb,-0x87,0x15e,_0x55f34a._0x574f07)]);_0x289907[_0x208bdf(_0x55f34a._0x34e7ed,_0x55f34a._0x38f1f1,_0x55f34a._0x46457a,0x1b4)]&&_0x41a9b0[_0x208bdf(_0x55f34a._0x3e3210,0x1f1,_0x55f34a._0x1fb8f6,_0x55f34a._0x8d45f2)]>0x0&&(_0x41a9b0=await hydrateResults(_0x41a9b0,_0x289907[_0x347704(0x35,0x32,-_0x55f34a._0x272a13,-_0x55f34a._0x1f5c88)],_0x349228[_0x347704(0xe1,-_0x55f34a._0x291ffb,-0x68,0x85)]));const _0x4604a1=new Set();_0x41a9b0=_0x41a9b0['filter'](_0x6b842=>{const _0x1cede8={_0x3d79f8:0xcb},_0x40940c=_0x6b842[_0x54348b(0x3c,0x71,_0x2fa025._0x266841,-_0x2fa025._0x5f5466)][_0x54348b(0xa9,-_0x2fa025._0x15e66f,-_0x2fa025._0x224afc,-0xe3)]();function _0x54348b(_0x1ca9f2,_0x4ca610,_0x6452d4,_0x293d74){return _0x347704(_0x1ca9f2-0x13f,_0x1ca9f2,_0x6452d4-_0x1cede8._0x3d79f8,_0x4ca610-0x6e);}if(!_0x40940c||_0x4604a1[_0x54348b(-0xc9,0x28,_0x2fa025._0x1c6330,-_0x2fa025._0x2f5a79)](_0x40940c))return![];function _0x586ae6(_0x287b4d,_0x342d64,_0x5cddb8,_0x55f3c1){return _0x208bdf(_0x55f3c1-0x2f3,_0x342d64-0x9d,_0x5cddb8-0xf5,_0x342d64);}return _0x4604a1[_0x54348b(-0x184,-_0x2fa025._0x3e59a7,-_0x2fa025._0x3b4d20,0x2e)](_0x40940c),!![];}),_0x41a9b0=_0x41a9b0[_0x208bdf(_0x55f34a._0x85d527,_0x55f34a._0x31c81a,_0x55f34a._0x20d6e5,0x231)]((_0x4ba926,_0x167465)=>({..._0x4ba926,'source':{..._0x4ba926['source'],'rank':_0x167465+0x1}}));const _0x1c7668={};if(_0x289907[_0x208bdf(0x14f,_0x55f34a._0x29b805,0xba,0x1d7)][_0x208bdf(_0x55f34a._0x457d88,_0x55f34a._0x469a98,0x1bd,_0x55f34a._0x321bfd)]>0x0)_0x1c7668[_0x347704(-0xe6,-0x96,-_0x55f34a._0x5da372,-_0x55f34a._0x2dced6)]=_0x289907['domains'];if(_0x289907[_0x347704(-0x37,_0x55f34a._0x1f9b7d,-_0x55f34a._0x5b17af,-0x41)]>0x0)_0x1c7668[_0x347704(-_0x55f34a._0x23d9ee,-_0x55f34a._0x3073e8,0xd6,-0x41)]=_0x289907[_0x347704(-0x55,-_0x55f34a._0x40476c,0x57,-0x41)];if(_0x289907[_0x208bdf(0x2a6,_0x55f34a._0x2b123d,0x3cc,_0x55f34a._0x3bd198)]!=='en')_0x1c7668[_0x208bdf(_0x55f34a._0x4068a1,0x35e,0x2a6,0x3a9)]=_0x289907[_0x347704(-_0x55f34a._0x92816e,-_0x55f34a._0xba400,_0x55f34a._0x39194f,-_0x55f34a._0x1f5c88)];if(_0x289907[_0x208bdf(0x2fb,0x219,0x200,0x3ad)])_0x1c7668[_0x208bdf(0x2fb,_0x55f34a._0x34370a,_0x55f34a._0x1ab89c,0x21a)]=_0x289907['region'];return yield createToolOutput(formatResults(_0x41a9b0),{'engine':_0x347704(-_0x55f34a._0x2fd572,-_0x55f34a._0x5cca4,_0x55f34a._0x4db3b5,-0x1b),'count':_0x41a9b0['length'],'items':_0x41a9b0,'query':_0x289907['query'],...Object[_0x208bdf(0x121,0xa5,0x21a,0x151)](_0x1c7668)[_0x347704(_0x55f34a._0x2eba5a,-0xd7,_0x55f34a._0x4790d1,-0x43)]>0x0?{'appliedFilters':_0x1c7668}:{},'offset':_0x289907[_0x208bdf(_0x55f34a._0x2034e8,_0x55f34a._0x3d50e6,_0x55f34a._0x53260f,_0x55f34a._0x51b07b)],'totalRequested':_0x289907[_0x347704(-_0x55f34a._0x4e49c4,-_0x55f34a._0x524997,0x128,0x7f)],'hydrated':_0x289907[_0x347704(-_0x55f34a._0x1b1c54,-0x17f,-_0x55f34a._0x4e569a,-_0x55f34a._0x5eb2e5)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|
|
1
|
+
(function(_0x8b98a3,_0x24535a){const _0x884145={_0x70693f:0x3ad,_0x18b28f:0x345,_0x5c31a3:0x324,_0x2de63a:0x289,_0x3c3ad2:0x266,_0x97991:0x1c2,_0x24acab:0x138,_0x48d88a:0x83,_0x4f0f0:0xb9,_0x32c36e:0x1c3,_0x1496f3:0x27f,_0x5b3664:0x211,_0x2eae70:0x113,_0x3b75d3:0x14d,_0x37d1bd:0x2f7,_0x51b7c6:0x2c2,_0x2d9aa5:0x2a5,_0x4d7f3d:0x16e,_0x31fa98:0x7a,_0x5e4653:0x55,_0x270f16:0x37a,_0x5f292b:0x2bc,_0x5cec05:0x2f1,_0x4435cf:0x222},_0x5d5f1a={_0xcdb48b:0x3c2},_0x354dd8={_0x41e333:0x4a};function _0x3fe76a(_0x245e91,_0x1e4ef5,_0x37d87e,_0x2794c6){return _0x163c(_0x37d87e-_0x354dd8._0x41e333,_0x1e4ef5);}const _0x1670e8=_0x8b98a3();function _0x1d3492(_0x44bc8a,_0x24102b,_0x476184,_0x312617){return _0x163c(_0x476184- -_0x5d5f1a._0xcdb48b,_0x312617);}while(!![]){try{const _0x58408e=parseInt(_0x1d3492(-_0x884145._0x70693f,-_0x884145._0x18b28f,-0x276,-0x2ff))/0x1*(-parseInt(_0x3fe76a(0x3ca,0x380,0x32c,0x39c))/0x2)+-parseInt(_0x3fe76a(_0x884145._0x5c31a3,_0x884145._0x2de63a,_0x884145._0x3c3ad2,_0x884145._0x97991))/0x3*(-parseInt(_0x1d3492(-_0x884145._0x24acab,-_0x884145._0x48d88a,-0x5d,_0x884145._0x4f0f0))/0x4)+parseInt(_0x1d3492(-_0x884145._0x32c36e,-_0x884145._0x1496f3,-_0x884145._0x5b3664,-_0x884145._0x2de63a))/0x5+parseInt(_0x1d3492(-0x7e,-_0x884145._0x2eae70,-_0x884145._0x3b75d3,-0x21d))/0x6+-parseInt(_0x1d3492(-0x31d,-_0x884145._0x37d1bd,-0x1f8,-0x1a7))/0x7+-parseInt(_0x1d3492(-_0x884145._0x51b7c6,-_0x884145._0x2d9aa5,-0x278,-_0x884145._0x4d7f3d))/0x8*(-parseInt(_0x1d3492(-0xfe,0x83,-_0x884145._0x31fa98,_0x884145._0x5e4653))/0x9)+parseInt(_0x3fe76a(0x381,_0x884145._0x270f16,_0x884145._0x5f292b,_0x884145._0x5cec05))/0xa*(-parseInt(_0x3fe76a(0x2da,_0x884145._0x4435cf,0x33c,0x45d))/0xb);if(_0x58408e===_0x24535a)break;else _0x1670e8['push'](_0x1670e8['shift']());}catch(_0x2c2779){_0x1670e8['push'](_0x1670e8['shift']());}}}(_0x497d,0xbdad4));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-KVFXQ7HW.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.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 _0x475a00 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x198698(-0xd8,-0x183,-0x1b,-0x217),'.tsx':_0x2ecd0e(0x611,0x531,0x6b6,0x659),'.js':_0x2ecd0e(0x4f7,0x4bc,0x3de,0x4c2),'.jsx':'javascriptreact','.mjs':_0x198698(-0x140,-0x1bd,-0xb7,-0x54),'.cjs':_0x198698(-0x140,-0x24d,-0x7d,-0x7d),'.mts':_0x2ecd0e(0x55f,0x68e,0x487,0x521),'.cts':_0x198698(-0xd8,-0xde,-0x14d,-0x3e),'.json':'json','.jsonc':'jsonc'};function getLanguageId(_0xac8d89){const _0x337dc8={_0x263d93:0x121,_0x3cf517:0x213,_0x2968a4:0x2f8,_0x159737:0x210},_0x505b82={_0x26a799:0x135,_0x53581a:0xa8},_0x43c96f={_0x57ce90:0x6aa,_0x104a06:0x36,_0x23bd5d:0xb2};function _0x33663f(_0x3d2154,_0x55aa38,_0x1ac280,_0x2eca1c){return _0x2ecd0e(_0x1ac280- -_0x43c96f._0x57ce90,_0x55aa38-_0x43c96f._0x104a06,_0x1ac280-_0x43c96f._0x23bd5d,_0x55aa38);}function _0x2d6978(_0x328dbe,_0x48b9d8,_0x22dc90,_0x129483){return _0x2ecd0e(_0x22dc90- -0x563,_0x48b9d8-_0x505b82._0x26a799,_0x22dc90-_0x505b82._0x53581a,_0x328dbe);}return EXTENSION_TO_LANGUAGE[_0x475a00[_0x33663f(-_0x337dc8._0x263d93,-0x9,-0x23,0x5d)](_0xac8d89)[_0x33663f(-_0x337dc8._0x3cf517,-_0x337dc8._0x2968a4,-_0x337dc8._0x159737,-0x23b)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x87208f){const _0x48c37a={_0x2d407:0x5d7,_0x335035:0x54e,_0x87ea6e:0x414},_0x4bc8d7={_0x590817:0x666,_0x191cbb:0x103};function _0xb2c81f(_0x204a90,_0x31ad6e,_0x243375,_0x3edb42){return _0x198698(_0x31ad6e-_0x4bc8d7._0x590817,_0x31ad6e-0xa5,_0x3edb42,_0x3edb42-_0x4bc8d7._0x191cbb);}return pathToFileURL(_0x87208f)[_0xb2c81f(_0x48c37a._0x2d407,_0x48c37a._0x335035,0x57e,_0x48c37a._0x87ea6e)]();}function textDocumentPosition(_0x18967d){const _0x303b3a={_0x5a7dfe:0x3d3,_0x2ec1f4:0xd0,_0x571dc6:0x17},_0x5b419e={_0x991cf:0x13a},_0xbe1642={_0x22c02e:0x147};function _0x5b5f1a(_0x4181a2,_0x140013,_0x2e10c9,_0x2d47e3){return _0x198698(_0x2e10c9-0x305,_0x140013-_0xbe1642._0x22c02e,_0x4181a2,_0x2d47e3-0x7);}function _0x55b608(_0x3bd233,_0x432a18,_0x408092,_0x4b57a8){return _0x2ecd0e(_0x3bd233- -0x6e5,_0x432a18-_0x5b419e._0x991cf,_0x408092-0xe5,_0x432a18);}return{'textDocument':{'uri':uriForPath(_0x18967d['file'])},'position':{'line':_0x18967d[_0x5b5f1a(0x397,0x24d,0x315,_0x303b3a._0x5a7dfe)],'character':_0x18967d[_0x55b608(-_0x303b3a._0x2ec1f4,-_0x303b3a._0x571dc6,-0x17b,-0xdd)]}};}function normalizeLocations(_0x5f5a25){if(!_0x5f5a25)return[];return Array['isArray'](_0x5f5a25)?_0x5f5a25:[_0x5f5a25];}async function createLspClient(_0x231af3){const _0x275dd5={_0x1dc8ea:0x14d,_0x5f250e:0x14,_0x347ce9:0x69,_0x5180f5:0x4bb,_0x546805:0x4ce,_0x381879:0x3a7,_0xc9f6ec:0x5bd,_0x4879ec:0x339,_0x4dd9d6:0x3f,_0x1bfc2c:0x393,_0x350e25:0x3f0,_0xb1c56d:0x427,_0x1a8172:0x41f,_0x2ef759:0x493,_0x319922:0x555,_0x1280ac:0x463,_0x17c651:0x335,_0x488b01:0x424,_0x8e770:0x46d,_0x230ec6:0x39a,_0x8f49a0:0x595,_0x1f4d7a:0x122,_0x444e48:0xcf,_0xcf9362:0x76,_0x272d1e:0x59,_0x3e17f7:0x1a8,_0x98ad03:0x27,_0x409a72:0x25,_0x5365d5:0x54,_0xe9912:0x97,_0x31cc17:0x93,_0x126f9c:0x2e5,_0x110fce:0xd,_0x1eb420:0x10f,_0x1ba4b9:0xd7,_0x4fea13:0x1c1,_0x27fb3b:0x97,_0x2d50a3:0x7c,_0x221e37:0x1b2},_0x44c97b={_0x80864e:0x100,_0x1c40fa:0x109},_0x1dc328={_0x3cc492:0x67e,_0x36878c:0x54e,_0x318679:0x4fd,_0xa3677b:0x4bb,_0x236644:0x3d7,_0x462529:0x3f5,_0x176887:0x3e1,_0x16e011:0x48d,_0x557679:0x395,_0x26c760:0x44b,_0x37450f:0x1f4,_0x40d650:0xe4,_0x58bca4:0x6b},_0x5784b7={_0x59f648:0x1bb,_0x38c0c1:0xc4},_0x3b7222={_0xdad956:0x107},_0x1ac5dc={_0x5abf11:0xfb,_0x56e356:0x59},_0x58009c={_0x4f6540:0x5a1,_0x204753:0x381,_0x3630f7:0x4de},_0x1b41d7={_0x4dd826:0x45b,_0x2c93d2:0x48c,_0x4219ab:0x38a,_0x3824c2:0x338,_0x4fb861:0x24c},_0xd5913f={_0x470314:0x7d1,_0x4e2e59:0x10c,_0x146732:0x95},_0x51d1c7={_0x2fbd71:0x1b5,_0x104d9a:0x24},_0x254918={_0x3b5925:0x6},_0x1ce46f={_0x1bdf0d:0x2de,_0x3a15ee:0x23c,_0x406321:0x26a,_0x3deaaf:0x333,_0x521235:0x208},_0x31d917={_0x4d2c45:0x1c3,_0x1c58ca:0x298},_0x21f6a9={_0x415431:0x15e,_0x3ec12b:0x38b},_0x2a609b={_0x4ede57:0xef},_0x280bd4={_0xdd199f:0x24d},_0x24ec52={_0x2337c2:0x1e2,_0x486e44:0x1a6,_0xc7e774:0xab},_0x58bbe0={_0x2b3374:0x5c6,_0x2acfbd:0x536,_0x5ee01b:0x64f,_0x54b435:0x66f},_0x1791ef={_0x42b747:0x1af,_0x502c21:0x2ff},_0x8992e8={_0x536ff8:0x24a},_0xa965ba={_0x59ecfe:0x3c0,_0x1d5a85:0x487},_0x1af18e={_0x5a5d50:0x142,_0x369a86:0x33b,_0x71b5aa:0x1d},_0xcbb6ca={_0x342da1:0x358,_0x218c2e:0x2bf,_0x2872e8:0x3b8,_0x33482a:0x386,_0x4a18e9:0x44b},_0x1a60b1={_0xa0804a:0x499,_0x24cb68:0x455,_0x3129a8:0x319,_0x2494c6:0x2ca,_0x45eaf9:0x29d,_0x56dfc5:0x490,_0x563c4b:0x387,_0x55782d:0x274},_0x224e51={_0x4c5dd7:0x124,_0x3b25ac:0x14e},_0xa8f329={_0x4c3bcc:0x50b,_0x487040:0x4f6},_0x5ca651={_0x2892af:0x2d2,_0x3650a4:0x349,_0x1471d1:0x305,_0x4e0f49:0x211,_0x5bac7e:0x263,_0x4261d4:0x2d6,_0x17aafc:0x2f7,_0x1d7506:0x33d,_0x5292aa:0x21d,_0x2dec06:0x2e6,_0x3d43a2:0x2f5,_0x409b09:0x413,_0x4b27dd:0x33d},_0x3d2c5f={_0x3746e5:0xc7,_0x2a4cb9:0x6a,_0x2a37f3:0x182},_0x5312de={_0x30a4da:0x1d8},_0x4757f1=_0x231af3[_0x3f6e26(-_0x275dd5._0x1dc8ea,_0x275dd5._0x5f250e,-0x9b,-_0x275dd5._0x347ce9)][_0x638fdf(_0x275dd5._0x5180f5,_0x275dd5._0x546805,_0x275dd5._0x381879,_0x275dd5._0xc9f6ec)][_0x638fdf(0x290,_0x275dd5._0x4879ec,0x204,0x275)],_0x83b0f2=_0x231af3[_0x3f6e26(-0x16b,0x43,-0x9b,-_0x275dd5._0x4dd9d6)][_0x638fdf(0x4bb,0x3b6,_0x275dd5._0x1bfc2c,0x41a)][_0x638fdf(_0x275dd5._0x350e25,_0x275dd5._0xb1c56d,0x4b1,_0x275dd5._0x1a8172)];function _0x638fdf(_0x3d3512,_0x579bce,_0x1e332a,_0x69d21c){return _0x2ecd0e(_0x3d3512- -0x1c5,_0x579bce-0x1f2,_0x1e332a-_0x5312de._0x30a4da,_0x579bce);}if(!_0x4757f1||!_0x83b0f2)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x1d8288=createMessageConnection(new StreamMessageReader(_0x4757f1),new StreamMessageWriter(_0x83b0f2)),_0xa4d19f=new Map(),_0x5913f5=new Map();let _0x4b1947=![];_0x1d8288[_0x638fdf(_0x275dd5._0x2ef759,_0x275dd5._0x319922,0x48e,0x513)]('textDocument/publishDiagnostics',_0x11ca65=>{const _0x2aaf5d={_0x4c65d8:0x5c,_0x58644f:0x17f,_0x4973e9:0x169};_0xa4d19f[_0x2ddbdb(0x225,_0x5ca651._0x2892af,_0x5ca651._0x3650a4,0x2ed)](_0x11ca65[_0x3b1972(_0x5ca651._0x1471d1,_0x5ca651._0x4e0f49,0x25d,_0x5ca651._0x5bac7e)],_0x11ca65[_0x3b1972(0x1d3,_0x5ca651._0x4261d4,0x2fa,0x3e6)]);function _0x2ddbdb(_0x444ed0,_0xa2db85,_0x4d6b39,_0x392580){return _0x638fdf(_0xa2db85- -_0x3d2c5f._0x3746e5,_0x392580,_0x4d6b39-_0x3d2c5f._0x2a4cb9,_0x392580-_0x3d2c5f._0x2a37f3);}const _0x8fa47f=_0x5913f5[_0x3b1972(0x1a2,0x17c,0x56,0x92)](_0x11ca65[_0x2ddbdb(_0x5ca651._0x17aafc,_0x5ca651._0x1d7506,_0x5ca651._0x5292aa,0x38c)]);function _0x3b1972(_0x405f28,_0x203938,_0x152beb,_0x5a2729){return _0x3f6e26(_0x152beb,_0x203938-_0x2aaf5d._0x4c65d8,_0x203938-_0x2aaf5d._0x58644f,_0x5a2729-_0x2aaf5d._0x4973e9);}if(!_0x8fa47f)return;_0x5913f5[_0x3b1972(_0x5ca651._0x2dec06,_0x5ca651._0x3d43a2,_0x5ca651._0x409b09,0x34d)](_0x11ca65[_0x2ddbdb(0x227,_0x5ca651._0x4b27dd,0x302,0x2df)]);for(const _0x22cce3 of _0x8fa47f)_0x22cce3();}),_0x1d8288[_0x638fdf(0x446,_0x275dd5._0x1280ac,_0x275dd5._0x17c651,_0x275dd5._0x488b01)]();const _0x4700e7=await _0x1d8288[_0x638fdf(_0x275dd5._0x8e770,_0x275dd5._0x230ec6,_0x275dd5._0x8f49a0,0x486)](_0x3f6e26(_0x275dd5._0x1f4d7a,0x1d0,_0x275dd5._0x444e48,_0x275dd5._0xcf9362),{'processId':process[_0x3f6e26(-_0x275dd5._0x272d1e,-_0x275dd5._0x3e17f7,-0xdb,0x10)],'rootUri':uriForPath(_0x231af3['root']),'workspaceFolders':[{'uri':uriForPath(_0x231af3[_0x3f6e26(-0x134,_0x275dd5._0x98ad03,-0x7c,-0x104)]),'name':_0x231af3[_0x3f6e26(-_0x275dd5._0x409a72,_0x275dd5._0x5365d5,-_0x275dd5._0xe9912,0x13)]['id']}],'initializationOptions':_0x231af3['handle'][_0x638fdf(0x459,0x420,0x4d4,0x356)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x3f6e26(-0x113,-0x21,-_0x275dd5._0x31cc17,0x5d),_0x638fdf(0x403,0x3c2,0x2d1,_0x275dd5._0x126f9c)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x1d8288[_0x3f6e26(-_0x275dd5._0x110fce,0x6f,-0x1a,_0x275dd5._0x1eb420)](_0x3f6e26(-0x1fe,-0x11a,-_0x275dd5._0x1ba4b9,-0x9e),{});const _0x4d5f62={'serverId':_0x231af3[_0x3f6e26(0x9f,-_0x275dd5._0x4fea13,-_0x275dd5._0x27fb3b,0x85)]['id'],'root':_0x231af3[_0x3f6e26(0x96,-0xb,-_0x275dd5._0x2d50a3,-_0x275dd5._0x221e37)],'connection':_0x1d8288,'diagnostics':_0xa4d19f,'capabilities':_0x4700e7['capabilities']??{},'notify':{async 'open'({path:_0x2f63f0}){const _0x2e3ae5={_0x3ef2c6:0x259},_0x2580be={_0x11f5ff:0x13};function _0x2d8a6b(_0x5820a2,_0x1abc8d,_0x2ae037,_0x74e23a){return _0x3f6e26(_0x74e23a,_0x1abc8d-0xdc,_0x5820a2-0x4c0,_0x74e23a-_0x2580be._0x11f5ff);}function _0xf2c7f4(_0x4348fb,_0x2422cc,_0xf51706,_0xab0411){return _0x3f6e26(_0x4348fb,_0x2422cc-0x19,_0xab0411-_0x2e3ae5._0x3ef2c6,_0xab0411-0x6b);}const _0x4399ea=await readFile(_0x2f63f0,_0x2d8a6b(_0xa8f329._0x4c3bcc,0x5ca,_0xa8f329._0x487040,0x5d5));_0x1d8288['sendNotification']('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x2f63f0),'languageId':getLanguageId(_0x2f63f0)??_0x2d8a6b(0x551,0x5c6,0x4dc,0x68e),'version':0x1,'text':_0x4399ea}});},async 'change'({path:_0x1c5516,version:_0x1dbccf}){function _0x5072e1(_0x155e4a,_0x436586,_0x31c734,_0x293608){return _0x638fdf(_0x31c734- -0x19,_0x436586,_0x31c734-_0x224e51._0x4c5dd7,_0x293608-_0x224e51._0x3b25ac);}function _0x47c1ff(_0xf5dd44,_0x634e74,_0x184aad,_0x57d83f){return _0x3f6e26(_0x184aad,_0x634e74-0x188,_0xf5dd44-0x368,_0x57d83f-0xf8);}const _0x17b542=await readFile(_0x1c5516,_0x47c1ff(0x3b3,0x3d1,_0x1a60b1._0xa0804a,_0x1a60b1._0x24cb68));_0x1d8288[_0x47c1ff(0x34e,0x412,_0x1a60b1._0x3129a8,_0x1a60b1._0x2494c6)](_0x5072e1(_0x1a60b1._0x45eaf9,_0x1a60b1._0x56dfc5,_0x1a60b1._0x563c4b,_0x1a60b1._0x55782d),{'textDocument':{'uri':uriForPath(_0x1c5516),'version':_0x1dbccf},'contentChanges':[{'text':_0x17b542}]});},async 'close'({path:_0x3b0fe1}){const _0x452bad={_0x29d567:0x5d},_0x3539fb={_0x48c02c:0x88};function _0x2ed38b(_0x4ba7aa,_0x376b4f,_0x1b8126,_0x2b5087){return _0x638fdf(_0x1b8126-0x7b,_0x4ba7aa,_0x1b8126-_0x3539fb._0x48c02c,_0x2b5087-0x84);}function _0x4fa89e(_0x224bfb,_0x4c2fe1,_0x463024,_0x90d401){return _0x638fdf(_0x463024- -0x33c,_0x224bfb,_0x463024-0x56,_0x90d401-_0x452bad._0x29d567);}_0x1d8288[_0x2ed38b(_0xcbb6ca._0x342da1,0x2b8,0x3d3,_0xcbb6ca._0x218c2e)](_0x2ed38b(_0xcbb6ca._0x2872e8,_0xcbb6ca._0x33482a,0x32b,_0xcbb6ca._0x4a18e9),{'textDocument':{'uri':uriForPath(_0x3b0fe1)}});}},'request':{async 'definition'(_0x2cedb9){function _0x3b9237(_0x31219a,_0x1e5ce0,_0x5c64be,_0x32971d){return _0x3f6e26(_0x32971d,_0x1e5ce0-_0x1af18e._0x5a5d50,_0x1e5ce0-_0x1af18e._0x369a86,_0x32971d-_0x1af18e._0x71b5aa);}return normalizeLocations(await _0x1d8288['sendRequest'](_0x3b9237(_0xa965ba._0x59ecfe,0x48e,0x56f,_0xa965ba._0x1d5a85),textDocumentPosition(_0x2cedb9)));},async 'references'(_0x46f8e3){function _0x1488a8(_0x51b93e,_0x131082,_0x4fe86b,_0xa93b8b){return _0x638fdf(_0x4fe86b- -_0x8992e8._0x536ff8,_0xa93b8b,_0x4fe86b-0xd1,_0xa93b8b-0xac);}function _0x13361b(_0x417fce,_0x3d7f6c,_0x2d717d,_0x4bcf70){return _0x638fdf(_0x3d7f6c- -0x517,_0x4bcf70,_0x2d717d-0xa0,_0x4bcf70-0x55);}return normalizeLocations(await _0x1d8288[_0x1488a8(_0x1791ef._0x42b747,0x177,0x223,_0x1791ef._0x502c21)](_0x1488a8(0x3a3,0x36c,0x279,0x1b2),{...textDocumentPosition(_0x46f8e3),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x4772ac){const _0x19cdf9={_0x4844c3:0x145,_0x206755:0x46};function _0x43e498(_0x4464bb,_0x4b0afc,_0x1e7f7f,_0x1743e5){return _0x3f6e26(_0x4b0afc,_0x4b0afc-_0x19cdf9._0x4844c3,_0x1743e5-0x554,_0x1743e5-_0x19cdf9._0x206755);}function _0x99de99(_0x4ec7ad,_0x294e06,_0x432d60,_0x1aa343){return _0x3f6e26(_0x4ec7ad,_0x294e06-0x1a9,_0x432d60-0x3e3,_0x1aa343-0xe2);}return await _0x1d8288[_0x43e498(_0x58bbe0._0x2b3374,_0x58bbe0._0x2acfbd,0x72f,_0x58bbe0._0x5ee01b)](_0x43e498(_0x58bbe0._0x54b435,0x60f,0x700,0x6ac),textDocumentPosition(_0x4772ac))??null;},async 'documentSymbol'(_0x4fee67){function _0x5b1be1(_0x50734b,_0x3f57dd,_0x5164aa,_0x14d250){return _0x638fdf(_0x5164aa- -_0x24ec52._0x2337c2,_0x14d250,_0x5164aa-_0x24ec52._0x486e44,_0x14d250-_0x24ec52._0xc7e774);}return await _0x1d8288[_0x5b1be1(_0x280bd4._0xdd199f,0x356,0x28b,0x2ca)]('textDocument/documentSymbol',{'textDocument':{'uri':uriForPath(_0x4fee67)}})??[];},async 'workspaceSymbol'(_0x6ee2){function _0x2fa919(_0x51a44e,_0x13a055,_0x3ed9cb,_0x16da51){return _0x638fdf(_0x3ed9cb- -0x1ed,_0x16da51,_0x3ed9cb-_0x2a609b._0x4ede57,_0x16da51-0x3e);}return await _0x1d8288[_0x2fa919(_0x21f6a9._0x415431,_0x21f6a9._0x3ec12b,0x280,0x188)]('workspace/symbol',{'query':_0x6ee2})??[];},async 'implementation'(_0x503870){const _0x43f87f={_0x113676:0x5f};function _0x3b914e(_0x24a63a,_0x4e8d14,_0x2182eb,_0x504646){return _0x3f6e26(_0x24a63a,_0x4e8d14-_0x31d917._0x4d2c45,_0x4e8d14-_0x31d917._0x1c58ca,_0x504646-0x3d);}function _0x114783(_0x17c0a9,_0xfa5f6d,_0x2d6000,_0x18168b){return _0x638fdf(_0x18168b- -0x203,_0xfa5f6d,_0x2d6000-_0x43f87f._0x113676,_0x18168b-0xf6);}return normalizeLocations(await _0x1d8288[_0x114783(_0x1ce46f._0x1bdf0d,0x367,_0x1ce46f._0x3a15ee,_0x1ce46f._0x406321)](_0x3b914e(0x30b,_0x1ce46f._0x3deaaf,0x221,_0x1ce46f._0x521235),textDocumentPosition(_0x503870)));},async 'prepareCallHierarchy'(_0xdd549b){const _0x205fba={_0xf46e16:0x4f5,_0x4c4223:0x1c2};function _0x2a6810(_0x187494,_0x17d0ff,_0x483b85,_0x499048){return _0x638fdf(_0x17d0ff- -_0x205fba._0xf46e16,_0x187494,_0x483b85-_0x205fba._0x4c4223,_0x499048-0x84);}function _0x27db63(_0xaed4a0,_0x16c108,_0x526de9,_0x37986e){return _0x3f6e26(_0x37986e,_0x16c108-0xcc,_0x526de9-0xa6,_0x37986e-_0x254918._0x3b5925);}return await _0x1d8288[_0x27db63(_0x51d1c7._0x2fbd71,0x232,0x1a1,0x268)](_0x2a6810(0x52,-_0x51d1c7._0x104d9a,0x119,-0x5c),textDocumentPosition(_0xdd549b))??[];},async 'incomingCalls'(_0x426df9){const _0x569ce8={_0x59698d:0x45},_0x3c87ad={_0x4ca4d2:0x5d8,_0x4d86e6:0x57};function _0x216364(_0xfe28f5,_0x2a35b4,_0x27aec2,_0x50a382){return _0x3f6e26(_0x2a35b4,_0x2a35b4-0x1b5,_0xfe28f5-_0x3c87ad._0x4ca4d2,_0x50a382-_0x3c87ad._0x4d86e6);}function _0x1d3fbb(_0x352292,_0x176630,_0x4fdbb9,_0x75f271){return _0x3f6e26(_0x4fdbb9,_0x176630-0x4c,_0x352292- -0x48,_0x75f271-_0x569ce8._0x59698d);}return await _0x1d8288[_0x216364(0x6d3,0x7d1,0x79c,_0xd5913f._0x470314)](_0x1d3fbb(-_0xd5913f._0x4e2e59,-0xd0,-0x49,-_0xd5913f._0x146732),{'item':_0x426df9})??[];},async 'outgoingCalls'(_0x333b7e){const _0x395cee={_0x3b9143:0x360};function _0x5abfc3(_0x12ff34,_0x29f7d1,_0x2bb44d,_0x21c375){return _0x3f6e26(_0x29f7d1,_0x29f7d1-0x4a,_0x12ff34-_0x395cee._0x3b9143,_0x21c375-0xa0);}function _0x33128e(_0x3702fe,_0x56715f,_0x4b5eaa,_0x2ef2f5){return _0x638fdf(_0x3702fe- -0x2c,_0x56715f,_0x4b5eaa-0x2b,_0x2ef2f5-0x1e2);}return await _0x1d8288[_0x5abfc3(_0x1b41d7._0x4dd826,_0x1b41d7._0x2c93d2,0x50e,_0x1b41d7._0x4219ab)](_0x33128e(0x271,_0x1b41d7._0x3824c2,0x1b3,_0x1b41d7._0x4fb861),{'item':_0x333b7e})??[];}},'waitForDiagnostics'({path:_0x15e689,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x4b843a={_0x1a75cc:0x5a5,_0x2d21c4:0x6c4,_0x2473f6:0x749,_0x2e24f6:0x84c,_0xac7951:0x847,_0x3d9dee:0x712,_0x51c348:0x28d,_0x20695f:0x311},_0x3398a6={_0x4028ec:0x332,_0x6b0b9:0x144};function _0x1fbf56(_0x4fe7e4,_0x318c73,_0xf23f22,_0x5a2f4f){return _0x638fdf(_0xf23f22- -_0x3398a6._0x4028ec,_0x318c73,_0xf23f22-0x41,_0x5a2f4f-_0x3398a6._0x6b0b9);}const _0x1c5365=uriForPath(_0x15e689);if(_0xa4d19f['has'](_0x1c5365))return Promise[_0x1fbf56(_0x1ac5dc._0x5abf11,-0x6b,-0x11,_0x1ac5dc._0x56e356)]();return new Promise(_0x5f3179=>{const _0x31334f={_0x58b1a1:0x7b},_0x3e8e2e={_0x34ddb9:0x60,_0x3b6a5e:0x4d};function _0x2804b5(_0x55d5e0,_0x512754,_0x54e53d,_0x133160){return _0x1fbf56(_0x55d5e0-_0x3e8e2e._0x34ddb9,_0x54e53d,_0x512754-0x579,_0x133160-_0x3e8e2e._0x3b6a5e);}const _0x5f1721=setTimeout(()=>{function _0x22e4de(_0x5c5a79,_0x1092b0,_0x2a7e83,_0x7044e2){return _0x163c(_0x1092b0- -_0x31334f._0x58b1a1,_0x7044e2);}const _0x494ac7=_0x5913f5[_0x469727(0x5b1,0x661,_0x4b843a._0x1a75cc,0x5d0)](_0x1c5365);_0x494ac7?.[_0x469727(_0x4b843a._0x2d21c4,0x85c,0x841,_0x4b843a._0x2473f6)](_0x145d48);if(_0x494ac7?.[_0x469727(0x787,_0x4b843a._0x2e24f6,_0x4b843a._0xac7951,_0x4b843a._0x3d9dee)]===0x0)_0x5913f5[_0x22e4de(_0x4b843a._0x51c348,_0x4b843a._0x20695f,0x3f6,0x394)](_0x1c5365);function _0x469727(_0x5036f0,_0x176171,_0x5ab43e,_0x2def7c){return _0x163c(_0x2def7c-0x3bd,_0x5036f0);}_0x5f3179();},timeoutMs),_0x145d48=()=>{clearTimeout(_0x5f1721),_0x5f3179();},_0x29fac0=_0x5913f5['get'](_0x1c5365)??new Set();_0x29fac0[_0x2804b5(_0x58009c._0x4f6540,0x4be,_0x58009c._0x204753,_0x58009c._0x3630f7)](_0x145d48),_0x5913f5['set'](_0x1c5365,_0x29fac0);});},async 'shutdown'(){if(_0x4b1947)return;function _0x1721fe(_0x4a7ebb,_0x7681,_0xeeadeb,_0x8ecdad){return _0x3f6e26(_0x4a7ebb,_0x7681-0x71,_0x8ecdad-0x40f,_0x8ecdad-_0x3b7222._0xdad956);}_0x4b1947=!![];function _0x675f95(_0x2d0c59,_0x497894,_0x23acd8,_0x5740ea){return _0x638fdf(_0x2d0c59- -0x4ab,_0x5740ea,_0x23acd8-_0x5784b7._0x59f648,_0x5740ea-_0x5784b7._0x38c0c1);}try{await _0x1d8288['sendRequest'](_0x1721fe(0x4cc,_0x1dc328._0x3cc492,_0x1dc328._0x36878c,0x574),null),_0x1d8288[_0x1721fe(_0x1dc328._0x318679,_0x1dc328._0xa3677b,_0x1dc328._0x236644,_0x1dc328._0x462529)](_0x1721fe(_0x1dc328._0x176887,_0x1dc328._0x16e011,_0x1dc328._0x557679,_0x1dc328._0x26c760));}catch{}finally{_0x1d8288[_0x1721fe(0x634,0x64c,0x629,0x56b)](),_0x231af3[_0x675f95(-0x1d4,-_0x1dc328._0x37450f,-0xe6,-0x12e)][_0x675f95(0x10,0x144,-0x6,0x47)][_0x675f95(-_0x1dc328._0x40d650,-0x137,-0x3a,-_0x1dc328._0x58bca4)]();}}};function _0x3f6e26(_0x35775d,_0x32a713,_0x68b6ff,_0x78f735){return _0x198698(_0x68b6ff-_0x44c97b._0x80864e,_0x32a713-_0x44c97b._0x1c40fa,_0x35775d,_0x78f735-0x74);}return _0x4d5f62;}import{spawn as _0x29327a}from'child_process';import{access as _0x5cedd9}from'fs/promises';import _0x3fdf2c from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x55e0a4 from'os';import _0x39c5d2 from'path';import _0x113e6b from'which';var installPromises=new Map();function sanitizePackageName(_0x3bd376){const _0x4fe23e={_0x48eac9:0x3d1,_0x1d79d0:0x2a2,_0x42b27a:0x2f8,_0x18098b:0x28d},_0x531092={_0x12f802:0x368},_0x1bd462={_0x33faa6:0x379,_0xda8e65:0x89};function _0x15cfcc(_0xc1c872,_0xf88223,_0x92a800,_0x5b40c5){return _0x198698(_0xc1c872-_0x1bd462._0x33faa6,_0xf88223-_0x1bd462._0xda8e65,_0xf88223,_0x5b40c5-0xc2);}function _0x24bacb(_0x43e26e,_0x248e8a,_0x4d402a,_0x5e0260){return _0x198698(_0x248e8a-_0x531092._0x12f802,_0x248e8a-0xe7,_0x5e0260,_0x5e0260-0xe8);}return _0x3bd376[_0x15cfcc(0x309,_0x4fe23e._0x48eac9,0x22d,0x1f5)](/^@/,'')[_0x24bacb(_0x4fe23e._0x1d79d0,_0x4fe23e._0x42b27a,_0x4fe23e._0x18098b,0x334)](/[/]/g,'__');}function binaryNameForPlatform(_0x24819c){const _0x6e99f1={_0xd896da:0xf0,_0x684706:0x102,_0x327e4e:0x4b,_0x5c2c4e:0x466},_0x3a15a0={_0x11b595:0x82};function _0x101fe5(_0x127f57,_0x3115f3,_0x18be35,_0xc71db6){return _0x2ecd0e(_0x3115f3- -0x5c9,_0x3115f3-_0x3a15a0._0x11b595,_0x18be35-0x10f,_0x18be35);}function _0x440a23(_0x1b4217,_0x36f1e1,_0x5af366,_0xbfa7cf){return _0x198698(_0x1b4217-0x422,_0x36f1e1-0x56,_0xbfa7cf,_0xbfa7cf-0xc9);}return process[_0x101fe5(_0x6e99f1._0xd896da,0x1a,0x10b,-0x9c)]===_0x101fe5(_0x6e99f1._0x684706,0x9f,_0x6e99f1._0x327e4e,0x8f)?_0x24819c+_0x440a23(_0x6e99f1._0x5c2c4e,0x546,0x4e1,0x425):_0x24819c;}async function exists(_0x58d8a0){try{return await access(_0x58d8a0),!![];}catch{return![];}}function runNpmInstall(_0x350107,_0x5f0891,_0x8e762a){const _0x4b2bd1={_0x52cae2:0x80,_0x3239d7:0x491,_0xe3aebc:0x4b1,_0x35d4c5:0x1d4,_0x3730cf:0x24c,_0x228857:0x5a,_0x299ade:0x191},_0x30a465={_0x433f84:0x33a};return new Promise(_0x50e69a=>{const _0x480e31=spawn(_0x11a19c(0x5d,-_0x4b2bd1._0x52cae2,-0xb5,0x1f),[_0x223008(_0x4b2bd1._0x3239d7,0x40e,0x4ff,_0x4b2bd1._0xe3aebc),_0x11a19c(-0xd2,-_0x4b2bd1._0x35d4c5,-0x103,-0x49),_0x350107,_0x5f0891],{'env':_0x8e762a,'stdio':_0x223008(0x400,0x467,0x31a,0x481)});function _0x223008(_0x92b103,_0x367e85,_0x3298db,_0x1e1501){return _0x163c(_0x92b103-0x240,_0x367e85);}function _0x11a19c(_0x449a53,_0x439fac,_0x564aec,_0x22bb42){return _0x163c(_0x564aec- -_0x30a465._0x433f84,_0x22bb42);}_0x480e31['on'](_0x11a19c(-_0x4b2bd1._0x3730cf,-0xf4,-0x193,-0x237),()=>_0x50e69a(![])),_0x480e31['on'](_0x11a19c(0x99,0x13d,_0x4b2bd1._0x228857,_0x4b2bd1._0x299ade),_0x5e0439=>_0x50e69a(_0x5e0439===0x0));});}function shouldDisableLspDownload(_0x4d97d6=process[_0x2ecd0e(0x5e7,0x4fb,0x6d6,0x662)]){const _0x18c202={_0x2c7998:0x24,_0x232b7f:0x10f,_0x270ed4:0x310,_0x4c18b1:0x30e,_0x1c803c:0x22f,_0x36f103:0x728,_0xfc809e:0x567,_0x362315:0x695,_0x59291f:0x641},_0x1bf75e={_0x28b0fb:0xdf},_0x2a27f5={_0x3b0937:0x688,_0x532c2b:0x1b7,_0xa431ef:0xfd},_0x4478a9=_0x4d97d6['NUVIN_DISABLE_LSP_DOWNLOAD']?.[_0x17ec3a(-0x4,-0xc9,_0x18c202._0x2c7998,_0x18c202._0x232b7f)]();function _0x20249d(_0x137945,_0x150b08,_0x25a6e8,_0xdd289a){return _0x198698(_0x25a6e8-_0x2a27f5._0x3b0937,_0x150b08-_0x2a27f5._0x532c2b,_0x137945,_0xdd289a-_0x2a27f5._0xa431ef);}function _0x17ec3a(_0x3daa74,_0x31fcde,_0x5898d9,_0x357b5d){return _0x2ecd0e(_0x5898d9- -0x476,_0x31fcde-0x10b,_0x5898d9-_0x1bf75e._0x28b0fb,_0x31fcde);}return _0x4478a9===_0x17ec3a(_0x18c202._0x270ed4,_0x18c202._0x4c18b1,_0x18c202._0x1c803c,0x21f)||_0x4478a9==='1'||_0x4478a9===_0x20249d(_0x18c202._0x36f103,_0x18c202._0xfc809e,_0x18c202._0x362315,_0x18c202._0x59291f)||_0x4478a9==='on';}function getLspPackageDir(_0x4004fa){const _0x4a6126={_0x4e9c4c:0x41,_0x438040:0xa8,_0x39281d:0xf8,_0x5265f2:0x48,_0x26e621:0xe2,_0x473211:0x14d,_0x2d6edf:0x19,_0xed9d46:0x13b,_0x50eca1:0x1ad,_0x338c6b:0x3a},_0x5b9ab6={_0x27ceed:0x5e,_0x529f9c:0x5a},_0x581aa7={_0x1e240b:0x166,_0x432215:0x1d8};function _0x424e5e(_0x4ff33f,_0x14f81c,_0x281cbd,_0x2e762e){return _0x198698(_0x14f81c-0xca,_0x14f81c-_0x581aa7._0x1e240b,_0x2e762e,_0x2e762e-_0x581aa7._0x432215);}function _0xf9108a(_0x9dc2f8,_0x4f88f1,_0x104103,_0x1728a0){return _0x198698(_0x4f88f1- -_0x5b9ab6._0x27ceed,_0x4f88f1-_0x5b9ab6._0x529f9c,_0x1728a0,_0x1728a0-0x10e);}return _0x39c5d2[_0x424e5e(-0xa0,-_0x4a6126._0x4e9c4c,-_0x4a6126._0x438040,-0x139)](_0x55e0a4[_0x424e5e(-_0x4a6126._0x39281d,-_0x4a6126._0x5265f2,_0x4a6126._0x26e621,-0x57)](),'.nuvin',_0x424e5e(-_0x4a6126._0x473211,-_0x4a6126._0x2d6edf,-0x5,-_0x4a6126._0xed9d46),_0xf9108a(-_0x4a6126._0x50eca1,-0x135,-_0x4a6126._0x338c6b,-0x76),sanitizePackageName(_0x4004fa));}function getLspBinDir(_0x195057){const _0x3ec667={_0x40311c:0x4cf,_0x13cee7:0x317},_0x3386da={_0x389248:0x54a,_0x49622b:0x73,_0x7b80b5:0xc8};function _0x24611d(_0x53887c,_0x1b29a9,_0x3d1cd9,_0xb0366e){return _0x198698(_0xb0366e-_0x3386da._0x389248,_0x1b29a9-_0x3386da._0x49622b,_0x1b29a9,_0xb0366e-_0x3386da._0x7b80b5);}return _0x39c5d2[_0x24611d(_0x3ec667._0x40311c,_0x3ec667._0x13cee7,0x500,0x43f)](getLspPackageDir(_0x195057),'node_modules','.bin');}async function findPackageBinary(_0x4e39b5,_0x4b54b1){const _0xd70e6c={_0x24485f:0x127,_0xee8395:0x41,_0x297008:0x204,_0x2bad49:0x5f4,_0xf2d404:0x542,_0x4c9406:0x67a,_0x2064a7:0x720,_0xcc5a4a:0xae,_0x5047d6:0x578,_0x166ff1:0x5d6,_0x3b81bd:0x60d},_0x3f9936={_0x1de45f:0x55,_0x1baeb5:0x125,_0x4c10e6:0x1e2},_0x29ab4f={_0x51ffbc:0xc2,_0x19fa09:0x156};function _0x43a9cb(_0x49d13a,_0x411750,_0x3f7975,_0x2bf35a){return _0x198698(_0x49d13a-0x6df,_0x411750-_0x29ab4f._0x51ffbc,_0x3f7975,_0x2bf35a-_0x29ab4f._0x19fa09);}let _0x45b9f0=_0x39c5d2[_0x24df09(-_0xd70e6c._0x24485f,_0xd70e6c._0xee8395,-_0xd70e6c._0x297008,-0xfc)](_0x4b54b1);const _0x42cffd=binaryNameForPlatform(_0x4e39b5);function _0x24df09(_0x3f9fcc,_0x213d1f,_0x2a721f,_0x4f5d5c){return _0x198698(_0x4f5d5c-_0x3f9936._0x1de45f,_0x213d1f-_0x3f9936._0x1baeb5,_0x2a721f,_0x4f5d5c-_0x3f9936._0x4c10e6);}while(!![]){const _0x3473af=_0x39c5d2[_0x43a9cb(0x5d4,_0xd70e6c._0x2bad49,0x6d6,_0xd70e6c._0xf2d404)](_0x45b9f0,_0x43a9cb(0x75b,_0xd70e6c._0x4c9406,0x67b,_0xd70e6c._0x2064a7),_0x24df09(_0xd70e6c._0xcc5a4a,0x27,-0xd1,0x6),_0x42cffd);if(await exists(_0x3473af))return _0x3473af;const _0x438845=_0x39c5d2[_0x43a9cb(0x4fa,_0xd70e6c._0x5047d6,_0xd70e6c._0x166ff1,_0xd70e6c._0x3b81bd)](_0x45b9f0);if(_0x438845===_0x45b9f0)return void 0x0;_0x45b9f0=_0x438845;}}async function findPathBinary(_0x24d246,_0x4ce212){const _0x168285={_0x5234bf:0x3c9,_0x5cdcf:0x4c2,_0x171c66:0x5b8,_0x5904c8:0x590},_0x39416e={_0x267638:0x35,_0x2a3d21:0x91},_0x3ce241={_0xfc1863:0x545,_0x287302:0x96,_0x10c8f7:0x1a0},_0x53c89b=getLspBinDir(_0x4ce212);function _0x506e3f(_0x14f5b5,_0x383571,_0x522c15,_0x2d7b2f){return _0x198698(_0x383571-_0x3ce241._0xfc1863,_0x383571-_0x3ce241._0x287302,_0x522c15,_0x2d7b2f-_0x3ce241._0x10c8f7);}const _0x5b1cb8=[_0x53c89b,process[_0x22e0f7(_0x168285._0x5234bf,_0x168285._0x5cdcf,0x47f,_0x168285._0x171c66)][_0x22e0f7(0x560,_0x168285._0x5904c8,0x4c9,0x4db)]]['filter'](Boolean)['join'](_0x39c5d2[_0x506e3f(0x687,0x5a5,0x4ad,0x604)]);function _0x22e0f7(_0x4652df,_0x1d14e9,_0x5cc009,_0x171904){return _0x2ecd0e(_0x5cc009- -0x168,_0x1d14e9-_0x39416e._0x267638,_0x5cc009-_0x39416e._0x2a3d21,_0x1d14e9);}try{return await _0x113e6b(_0x24d246,{'path':_0x5b1cb8});}catch{return void 0x0;}}async function resolvePackageBinary(_0x184138){const _0xf1aca2={_0x40c156:0x5ca,_0x2b0d48:0x58d,_0xebdce5:0x588,_0x3c1b99:0x503,_0x267d96:0x5f2,_0x2f905b:0x487,_0x3fa34c:0x45d,_0x14262d:0x68a,_0x809a31:0x670,_0xf12b20:0x604,_0x593c9b:0x509,_0x3981d3:0x59e},_0x2f7575={_0x9dec0b:0x64e,_0x15ec5f:0xea},_0x529f27={_0x279375:0x82,_0x3412b3:0x7e,_0x3fdb0c:0xc5},_0x5cbe94={_0x22e324:0x1a6};function _0x4a36b6(_0x1fc654,_0x4dc0ef,_0xa27286,_0x2938f0){return _0x2ecd0e(_0xa27286- -0x29,_0x4dc0ef-_0x5cbe94._0x22e324,_0xa27286-0x1e,_0x2938f0);}const _0x2b4bed=_0x184138[_0x2e8eaf(_0xf1aca2._0x40c156,0x555,0x494,_0xf1aca2._0x2b0d48)]??_0x184138[_0x2e8eaf(_0xf1aca2._0xebdce5,0x459,0x5ad,0x66a)],_0xe0e3d=await findPackageBinary(_0x2b4bed,_0x184138[_0x2e8eaf(_0xf1aca2._0x3c1b99,_0xf1aca2._0x267d96,_0xf1aca2._0x2f905b,_0xf1aca2._0x3fa34c)]);if(_0xe0e3d)return _0xe0e3d;const _0x2b9ae6=await findPathBinary(_0x2b4bed,_0x184138['packageName']);if(_0x2b9ae6)return _0x2b9ae6;const _0x583058=_0x184138['env']??process[_0x2e8eaf(0x5fe,0x643,_0xf1aca2._0x14262d,0x71a)];if(shouldDisableLspDownload(_0x583058))return void 0x0;const _0xe27289=getLspPackageDir(_0x184138['packageName']),_0x171b21=_0x184138[_0x2e8eaf(0x588,0x65b,_0xf1aca2._0x809a31,0x58f)]+':'+_0x2b4bed;let _0x372b17=installPromises['get'](_0x171b21);!_0x372b17&&(_0x372b17=((async()=>{await mkdir(_0xe27289,{'recursive':!![]});const _0x349211=await runNpmInstall(_0xe27289,_0x184138['packageName'],_0x583058);if(!_0x349211)return void 0x0;const _0x4ecf98=_0x39c5d2[_0x700ce9(-_0x529f27._0x279375,_0x529f27._0x3412b3,_0x529f27._0x3fdb0c,-0xa)](getLspBinDir(_0x184138['packageName']),binaryNameForPlatform(_0x2b4bed));function _0x700ce9(_0x3e45b0,_0x1333ca,_0x1c5a5d,_0x52a373){return _0x4a36b6(_0x3e45b0-0x1ed,_0x1333ca-0x1e2,_0x1333ca- -0x485,_0x3e45b0);}return await exists(_0x4ecf98)?_0x4ecf98:void 0x0;})()),installPromises[_0x2e8eaf(0x575,0x614,_0xf1aca2._0xf12b20,_0xf1aca2._0x593c9b)](_0x171b21,_0x372b17));function _0x2e8eaf(_0x1c466a,_0x709442,_0xd28b46,_0x2ff61c){return _0x198698(_0x1c466a-_0x2f7575._0x9dec0b,_0x709442-0xf1,_0x709442,_0x2ff61c-_0x2f7575._0x15ec5f);}try{return await _0x372b17;}catch{return void 0x0;}finally{installPromises[_0x2e8eaf(0x6c4,_0xf1aca2._0x3981d3,0x610,0x76a)](_0x171b21);}}function _0x163c(_0x3e52c8,_0x4222e5){_0x3e52c8=_0x3e52c8-0x11a;const _0x497d30=_0x497d();let _0x163cbd=_0x497d30[_0x3e52c8];if(_0x163c['IOXytB']===undefined){var _0x35380d=function(_0x169857){const _0x194ebd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x475a00='',_0x29327a='';for(let _0x5cedd9=0x0,_0x3fdf2c,_0x55e0a4,_0x39c5d2=0x0;_0x55e0a4=_0x169857['charAt'](_0x39c5d2++);~_0x55e0a4&&(_0x3fdf2c=_0x5cedd9%0x4?_0x3fdf2c*0x40+_0x55e0a4:_0x55e0a4,_0x5cedd9++%0x4)?_0x475a00+=String['fromCharCode'](0xff&_0x3fdf2c>>(-0x2*_0x5cedd9&0x6)):0x0){_0x55e0a4=_0x194ebd['indexOf'](_0x55e0a4);}for(let _0x113e6b=0x0,_0x15a149=_0x475a00['length'];_0x113e6b<_0x15a149;_0x113e6b++){_0x29327a+='%'+('00'+_0x475a00['charCodeAt'](_0x113e6b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x29327a);};_0x163c['xWTZrL']=_0x35380d,_0x163c['NNzhGq']={},_0x163c['IOXytB']=!![];}const _0x3db4c7=_0x497d30[0x0],_0x37ad7c=_0x3e52c8+_0x3db4c7,_0x1bcd99=_0x163c['NNzhGq'][_0x37ad7c];return!_0x1bcd99?(_0x163cbd=_0x163c['xWTZrL'](_0x163cbd),_0x163c['NNzhGq'][_0x37ad7c]=_0x163cbd):_0x163cbd=_0x1bcd99,_0x163cbd;}var TYPESCRIPT_EXTENSIONS=[_0x198698(-0x1bd,-0x243,-0x2a4,-0x12b),'.tsx','.js',_0x198698(0x3b,-0x2d,-0x71,-0x5b),_0x198698(-0x1ed,-0x169,-0x1bf,-0x2ff),_0x198698(-0xb7,-0x123,0x5d,-0x1b0),_0x2ecd0e(0x5dd,0x6fb,0x703,0x516),_0x198698(0x3e,0xcd,-0x38,-0x24)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x2ecd0e(0x4a2,0x415,0x5a4,0x3c6),_0x198698(-0xc3,-0x12e,-0xea,-0xc9)],TYPESCRIPT_ROOT_MARKERS=[_0x198698(-0x108,-0x127,-0x183,-0x73),'bun.lockb',_0x198698(-0x2b,-0x5,0x28,-0x108),_0x198698(-0x10a,-0xc2,-0x1d3,-0x20),_0x198698(-0x11e,-0xf8,-0x64,-0x22d),'tsconfig.json',_0x198698(-0x92,-0xa3,0x6c,-0x7c),_0x2ecd0e(0x5a7,0x54c,0x542,0x50f)],BIOME_ROOT_MARKERS=[_0x2ecd0e(0x5ac,0x556,0x5c3,0x64a),_0x2ecd0e(0x645,0x5c9,0x69a,0x74d),_0x2ecd0e(0x52f,0x4ef,0x65f,0x488),_0x2ecd0e(0x470,0x3ae,0x533,0x3a8),_0x2ecd0e(0x60c,0x6bd,0x4d4,0x6d7),_0x198698(-0x10a,-0x234,-0x1aa,0x1d),_0x198698(-0x11e,-0x44,-0xf0,-0x12c),_0x198698(-0x90,-0xc,0xab,0x80)];async function exists2(_0x37483a){try{return await _0x5cedd9(_0x37483a),!![];}catch{return![];}}async function findUp(_0x3cbd46,_0x593e01){const _0x2def69={_0x18c5cf:0x16b,_0x1dbb68:0x255,_0x313068:0x3f6,_0x290b99:0x39d,_0xfe82f5:0x1c1,_0x26571c:0x273},_0x34649b={_0x28b9af:0x9,_0x13d29c:0xdd},_0x258144={_0x2129f8:0x199};let _0x5c27fb=_0x3fdf2c[_0x48c3b7(_0x2def69._0x18c5cf,_0x2def69._0x1dbb68,0x1ac,0x2b2)](_0x3cbd46);function _0x2f8f07(_0x27b1a9,_0x502ea9,_0x35d81a,_0xd740ee){return _0x198698(_0x27b1a9-0x226,_0x502ea9-0x120,_0xd740ee,_0xd740ee-_0x258144._0x2129f8);}const _0x2b1845=_0x3fdf2c[_0x48c3b7(0x516,_0x2def69._0x313068,_0x2def69._0x290b99,0x38a)](_0x5c27fb);if(_0x2b1845)_0x5c27fb=_0x3fdf2c[_0x48c3b7(0xcb,_0x2def69._0xfe82f5,_0x2def69._0x26571c,0x1ca)](_0x5c27fb);function _0x48c3b7(_0x51c129,_0x370c6a,_0x1eca99,_0x2f0d9b){return _0x2ecd0e(_0x370c6a- -0x291,_0x370c6a-_0x34649b._0x28b9af,_0x1eca99-_0x34649b._0x13d29c,_0x2f0d9b);}while(!![]){for(const _0x3f12a2 of _0x593e01){if(await exists2(_0x3fdf2c[_0x48c3b7(0x261,0x29b,0x229,0x1a2)](_0x5c27fb,_0x3f12a2)))return _0x5c27fb;}const _0x2bbfb1=_0x3fdf2c['dirname'](_0x5c27fb);if(_0x2bbfb1===_0x5c27fb)return void 0x0;_0x5c27fb=_0x2bbfb1;}}async function hasDenoRoot(_0x1bd5b3){const _0x532fec={_0x17e7b2:0x553,_0x3f4f8b:0x493,_0x2ddf92:0x4ab},_0x81c505={_0x5c96bd:0xb5},_0x1f9b80={_0x1a9c25:0x6e2,_0x335a78:0x15e};function _0x8435ab(_0x401e13,_0x1bfc9b,_0x489aff,_0x30bd6a){return _0x198698(_0x401e13-_0x1f9b80._0x1a9c25,_0x1bfc9b-_0x1f9b80._0x335a78,_0x30bd6a,_0x30bd6a-0x181);}function _0x2156cb(_0x39b38,_0xaa184d,_0x4155ed,_0x4685a8){return _0x198698(_0x4155ed-0x59e,_0xaa184d-0x14e,_0xaa184d,_0x4685a8-_0x81c505._0x5c96bd);}return await exists2(_0x3fdf2c['join'](_0x1bd5b3,'deno.json'))||await exists2(_0x3fdf2c[_0x2156cb(0x4cc,_0x532fec._0x17e7b2,_0x532fec._0x3f4f8b,0x3ca)](_0x1bd5b3,_0x2156cb(0x468,0x370,_0x532fec._0x2ddf92,0x4da)));}async function resolveTsserverPath(_0x881957){const _0x2abb69={_0x5965be:0x1d9,_0x4b8af8:0xd5,_0xd9e414:0x207,_0x2f5b5d:0x17,_0x578d93:0x11b,_0x387395:0x19c,_0x4e9c60:0x3c9,_0x532ca6:0x3f1,_0x362481:0x39d,_0x33f3fd:0xb4,_0x1bd4aa:0xb6,_0x46dfdd:0x331,_0x4954cf:0x1fd,_0x4916b9:0x14e,_0x192b28:0x121,_0x5725d2:0x48b,_0x2f5e8d:0x3da,_0x38407f:0x331},_0x28710e={_0x230aff:0x34},_0x4ec8d7={_0x36d141:0x226,_0x266203:0x1c0};function _0x153085(_0x3f6d70,_0x50d1f0,_0x352b13,_0x1979eb){return _0x198698(_0x352b13-_0x4ec8d7._0x36d141,_0x50d1f0-0x187,_0x1979eb,_0x1979eb-_0x4ec8d7._0x266203);}let _0x5e5013=_0x3fdf2c[_0x153085(0x1db,_0x2abb69._0x5965be,_0x2abb69._0x4b8af8,_0x2abb69._0xd9e414)](_0x881957);while(!![]){const _0x330fdd=_0x3fdf2c[_0x153085(0x3a,-_0x2abb69._0x2f5b5d,_0x2abb69._0x578d93,_0x2abb69._0x387395)](_0x5e5013,_0x2c38c3(_0x2abb69._0x4e9c60,0x485,_0x2abb69._0x532ca6,_0x2abb69._0x362481),'typescript','lib',_0x153085(0x1b5,_0x2abb69._0x33f3fd,_0x2abb69._0x1bd4aa,0x1ce));if(await exists2(_0x330fdd))return _0x330fdd;const _0x15cb53=_0x3fdf2c['dirname'](_0x5e5013);if(_0x15cb53===_0x5e5013)break;_0x5e5013=_0x15cb53;}const _0x3b7bd7=getLspPackageDir(_0x2c38c3(0x3f0,_0x2abb69._0x46dfdd,0x3af,0x3af)),_0x1d1822=await resolvePackageBinary({'packageName':_0x153085(_0x2abb69._0x4954cf,0x1b2,_0x2abb69._0x4916b9,0xe3),'binaryName':_0x153085(0x11d,0xb7,0x159,_0x2abb69._0x192b28),'startDir':_0x881957});function _0x2c38c3(_0x3f87c3,_0x2345d6,_0x5025c6,_0x42928e){return _0x2ecd0e(_0x2345d6- -0x22e,_0x2345d6-_0x28710e._0x230aff,_0x5025c6-0x14a,_0x5025c6);}if(!_0x1d1822)return void 0x0;const _0x47dbc8=_0x3fdf2c['join'](_0x3b7bd7,_0x2c38c3(0x5b5,0x485,0x4e8,_0x2abb69._0x5725d2),_0x2c38c3(_0x2abb69._0x2f5e8d,_0x2abb69._0x38407f,0x305,0x3ba),'lib','tsserver.js');return await exists2(_0x47dbc8)?_0x47dbc8:void 0x0;}var TypeScriptServer={'id':_0x2ecd0e(0x55f,0x449,0x690,0x51a),'name':_0x198698(-0x6b,0x28,-0x52,0x88),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x315186){const _0x4153ac=await findUp(_0x315186,TYPESCRIPT_ROOT_MARKERS);if(!_0x4153ac)return void 0x0;return await hasDenoRoot(_0x4153ac)?void 0x0:_0x4153ac;},async 'spawn'(_0x222a32){const _0xc367f1={_0x4bf72c:0x22c,_0xc7103f:0x1a1,_0x3c938b:0x1bd,_0x11cb7e:0x2a3,_0x43f650:0x1a1,_0x3e23f1:0x611},_0x3b3607={_0x25e227:0x25e,_0x365dfc:0x5f},_0x109db0={_0x3af06d:0x5ae},_0x29c996=await resolveTsserverPath(_0x222a32);function _0xe1b4aa(_0xb26921,_0x112621,_0x347779,_0x12b836){return _0x198698(_0x347779-_0x109db0._0x3af06d,_0x112621-0x161,_0xb26921,_0x12b836-0x178);}function _0x19c12d(_0xead4ca,_0x326f42,_0x432bcf,_0x5c00b8){return _0x198698(_0x5c00b8-_0x3b3607._0x25e227,_0x326f42-_0x3b3607._0x365dfc,_0xead4ca,_0x5c00b8-0x1bc);}if(!_0x29c996)return void 0x0;const _0x2c26a1=await resolvePackageBinary({'packageName':_0x19c12d(_0xc367f1._0x4bf72c,0xd1,0xbc,_0xc367f1._0xc7103f),'binaryName':_0x19c12d(0xab,_0xc367f1._0x3c938b,_0xc367f1._0x11cb7e,_0xc367f1._0x43f650),'startDir':_0x222a32});if(!_0x2c26a1)return void 0x0;return{'process':_0x29327a(_0x2c26a1,['--stdio'],{'cwd':_0x222a32,'stdio':_0xe1b4aa(0x4fe,0x679,0x5c6,_0xc367f1._0x3e23f1)}),'initialization':{'tsserver':{'path':_0x29c996}}};}},BiomeServer={'id':_0x198698(-0x111,-0x102,-0x1b9,-0x101),'name':_0x198698(-0x75,-0x16e,-0x27,-0x135),'extensions':BIOME_EXTENSIONS,async 'root'(_0x40b1f9){return findUp(_0x40b1f9,BIOME_ROOT_MARKERS);},async 'spawn'(_0x58b284){const _0x16caa1={_0x40d383:0x133,_0x2e69b5:0x191,_0x2719cc:0x312,_0x421b41:0x224,_0x17aead:0x301,_0x15b61f:0x244,_0x8d850:0x141,_0x3784db:0x1ca,_0x4e9a91:0x1fc,_0x5d0266:0x181},_0x59ca2d={_0x378fb5:0x6f0,_0x51de3e:0xd};function _0xfa349f(_0xa72f58,_0x1920fb,_0x93830d,_0x5002b0){return _0x198698(_0x5002b0-0x244,_0x1920fb-0x12b,_0xa72f58,_0x5002b0-0x61);}const _0x5c0832=await findPackageBinary(_0xfa349f(0x5f,-0x5,0x11a,_0x16caa1._0x40d383),_0x58b284)??await resolvePackageBinary({'packageName':_0xfa349f(_0x16caa1._0x2e69b5,0x21b,_0x16caa1._0x2719cc,_0x16caa1._0x421b41),'binaryName':_0x3c49e3(-_0x16caa1._0x17aead,-_0x16caa1._0x15b61f,-_0x16caa1._0x8d850,-_0x16caa1._0x3784db),'startDir':_0x58b284});function _0x3c49e3(_0x32ffcb,_0x17b4ba,_0x43dbcd,_0x5d8a6c){return _0x2ecd0e(_0x5d8a6c- -_0x59ca2d._0x378fb5,_0x17b4ba-0xc8,_0x43dbcd-_0x59ca2d._0x51de3e,_0x43dbcd);}if(!_0x5c0832)return void 0x0;return{'process':_0x29327a(_0x5c0832,['lsp-proxy',_0xfa349f(_0x16caa1._0x4e9a91,0xf6,0x52,0x186)],{'cwd':_0x58b284,'stdio':_0x3c49e3(-_0x16caa1._0x5d0266,0x24,0x77,-0xa1)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x50ba23){const _0x3d2872={_0x1f8a25:0x220,_0x5b203c:0x1cb,_0x4d9395:0x278,_0xa398ea:0x9e,_0x27287c:0xe3},_0x257361={_0x2e6600:0x83,_0x22b27f:0x35},_0x2ce8fb={_0x270a75:0xab,_0x402b20:0x144};function _0x4388e1(_0x391f6f,_0x2ff06f,_0x4b54c4,_0x58cb44){return _0x198698(_0x58cb44- -_0x2ce8fb._0x270a75,_0x2ff06f-0x169,_0x391f6f,_0x58cb44-_0x2ce8fb._0x402b20);}function _0x512ca8(_0x388afe,_0x4bbe84,_0x19d24b,_0x4bacfd){return _0x198698(_0x388afe- -_0x257361._0x2e6600,_0x4bbe84-0x92,_0x4bbe84,_0x4bacfd-_0x257361._0x22b27f);}const _0x1985e9=_0x3fdf2c['extname'](_0x50ba23)[_0x512ca8(-_0x3d2872._0x1f8a25,-_0x3d2872._0x5b203c,-_0x3d2872._0x4d9395,-0x17e)]();return BUILTIN_LSP_SERVERS[_0x512ca8(-_0x3d2872._0xa398ea,0x72,-_0x3d2872._0x27287c,-0x1bd)](_0x21b9f3=>_0x21b9f3['extensions']['includes'](_0x1985e9));}function stateKey(_0x15f6cb,_0x3fd825){return _0x3fd825+':'+_0x15f6cb['id'];}function diagnosticsKeyToPath(_0x291d05){const _0x2eca5a={_0x2ffc99:0xcc},_0x46bc00={_0x4f2e19:0x115};function _0x2bde96(_0x4f943f,_0x4f4513,_0x386e82,_0x20ebd0){return _0x2ecd0e(_0x4f4513- -0x308,_0x4f4513-0x47,_0x386e82-_0x46bc00._0x4f2e19,_0x20ebd0);}if(!_0x291d05['startsWith'](_0x2bde96(0x171,0x13a,0x15c,_0x2eca5a._0x2ffc99)))return _0x291d05;return fileURLToPath(_0x291d05);}function nextFileVersion(_0x3bf07b,_0x44a687){const _0x3fb171={_0x4497e7:0xa8,_0x22dc6e:0x1af,_0x37979c:0x82,_0xbad27a:0x577,_0x49ef71:0x5fe},_0x51a27d={_0x20e9c2:0x24},_0x47e578={_0x2070e9:0x1bf},_0xb643e8=(_0x3bf07b[_0x137c05(-_0x3fb171._0x4497e7,-_0x3fb171._0x22dc6e,-0x18b,-_0x3fb171._0x37979c)][_0x462537(0x56b,0x6c1,0x5e4,0x5d4)](_0x44a687)??0x1)+0x1;function _0x137c05(_0x72d2cc,_0x5e68e2,_0x32ceb7,_0x290ab5){return _0x198698(_0x5e68e2- -0x81,_0x5e68e2-_0x47e578._0x2070e9,_0x32ceb7,_0x290ab5-0x10);}_0x3bf07b['fileVersions'][_0x462537(0x5ed,_0x3fb171._0xbad27a,0x6f7,_0x3fb171._0x49ef71)](_0x44a687,_0xb643e8);function _0x462537(_0x3506a5,_0x507b97,_0x5812bd,_0x43e4e0){return _0x198698(_0x43e4e0-0x6d7,_0x507b97-0x1b,_0x507b97,_0x43e4e0-_0x51a27d._0x20e9c2);}return _0xb643e8;}async function collectClientResults(_0x1aed55){const _0x25e927={_0x241242:0x453,_0x5882c5:0x50c,_0x50aeca:0x501,_0x19dc51:0x52a,_0x24b22c:0x4fa,_0xd7b24f:0x486},_0x504a5e={_0x4c6f13:0x122,_0x3819d2:0x193},_0x59b9a6={_0x821617:0x9d},_0x35036e=await Promise[_0x64a270(_0x25e927._0x241242,0x59b,_0x25e927._0x5882c5,_0x25e927._0x50aeca)](_0x1aed55);function _0x3d375a(_0x541bd8,_0x1497f9,_0x3c73c9,_0x25a826){return _0x198698(_0x3c73c9-0x6a3,_0x1497f9-0x61,_0x541bd8,_0x25a826-_0x59b9a6._0x821617);}function _0x64a270(_0x45d8c9,_0x2eb490,_0x1aa5d0,_0x3e7336){return _0x198698(_0x3e7336-0x68b,_0x2eb490-_0x504a5e._0x4c6f13,_0x2eb490,_0x3e7336-_0x504a5e._0x3819d2);}return _0x35036e[_0x3d375a(_0x25e927._0x19dc51,_0x25e927._0x24b22c,0x57b,_0x25e927._0xd7b24f)](_0x5dfa68=>_0x5dfa68[_0x3d375a(0x67a,0x53b,0x657,0x59e)]===_0x3d375a(0x578,0x678,0x56c,0x52c)?_0x5dfa68[_0x3d375a(0x7c1,0x7f3,0x70f,0x648)]:[]);}function createLspService(_0x15bf64={}){const _0x5b8746={_0xbc8129:0x218,_0x41a09e:0x51,_0x562246:0x1e9,_0xe2db14:0x235,_0x2436db:0x215,_0x16b54b:0x1f0,_0x465401:0x246,_0x5a7fe3:0x275,_0x5c11e2:0x342,_0x48c9f5:0x23e,_0x38297a:0x228,_0x172846:0x277,_0x5a8043:0x58,_0x5a5808:0xf5,_0x4dd548:0x371,_0x43b5d4:0x362,_0x4bd20c:0xd5,_0x3dcb64:0x1ba,_0x11ca68:0x362,_0x556b17:0x11e,_0x4f777b:0x10,_0x1f085c:0x2b7,_0x3fc262:0x24b,_0x7df4d6:0x362},_0x500f87={_0x2461f0:0x63},_0x1206f8={_0x4a4749:0x57,_0xcb0324:0x254,_0x585ca9:0x156},_0x489a8b={_0x1564b0:0x556},_0x8d79ce={_0x331440:0xbe},_0xf3f99c={_0x455dc5:0xf1,_0x155198:0x493},_0x2abe86={_0x47dd39:0xa4,_0x2530f3:0x89},_0x5b00dc={_0x17d321:0x2be,_0x1af11c:0x261},_0x5e4a1e={_0x249911:0x1e0,_0x3015c1:0x408,_0x46c218:0xbd},_0x3170e1={_0x35b776:0x11c},_0x78463f={_0x2a2f39:0x5b,_0xe394fd:0x6a,_0xee260e:0x4},_0x5deda6={_0x4a360d:0x13,_0x4e9656:0x16},_0x51cfcd={_0x39a901:0x5ec,_0xf86609:0x44a,_0x49e781:0x3c6},_0x4b9dfe={_0x46a690:0x19c,_0x289a34:0x12a},_0x296ae3={_0x157780:0x15f,_0x224c1c:0xc8},_0x17bb88={_0x36fc1a:0x25e,_0x562d33:0x2d},_0x521995={_0x1f253d:0x9f,_0x1db74e:0x5c},_0x44b7b9={_0x4e0315:0x297,_0x44ef59:0x3be,_0x97c3a3:0x192,_0x5107af:0x1f8},_0x24fb64={_0x3b79aa:0x3c},_0x2b7bd4={_0x12e94b:0x580,_0x38a12c:0x48f,_0x2e8d37:0x3b5,_0x29a37e:0x418},_0x25bbe2={_0xbe9786:0x18a},_0xc904ad={_0x3285d6:0xaa,_0x32a6cd:0x29a},_0x31281b={_0x46b276:0x658,_0x22ac32:0x4fe},_0x54bf3d={_0x226697:0x1a3},_0x513251={_0x19e76f:0x14b},_0x599c7c={_0x32f4f8:0x103,_0x9f413e:0x4c,_0x320ad4:0x104,_0x56c693:0x2d},_0x1dd1c9={_0x510af3:0xd0,_0x598dd3:0x6a},_0x2ea4e5={_0x4b54f9:0x1c3,_0xaa5989:0x330,_0x4dbbd3:0x24d,_0x3509a1:0x377,_0x279feb:0x34f,_0x189e63:0x181,_0x46eb35:0x3b,_0x104f07:0xdc,_0x444268:0x1a3},_0x2b5cd5={_0x260619:0x2b8},_0x2566da={_0x4a92df:0x5e8,_0x21115a:0x412,_0x38a785:0x38b,_0x50728a:0x3ea,_0x316e6b:0x4be,_0x5e38af:0x38b,_0x294631:0x532,_0x2ff8ed:0x253,_0x461a8e:0x18a,_0x5868cd:0x2a3,_0x25d059:0x355,_0x26be31:0x3e5,_0x13f142:0x39b},_0x3802fa={_0x53fae3:0x1e2};function _0x473594(_0x2ee582,_0x17bba0,_0x3cfa65,_0x5dd8ec){return _0x198698(_0x17bba0-0x229,_0x17bba0-_0x3802fa._0x53fae3,_0x5dd8ec,_0x5dd8ec-0x104);}const _0x14020b={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x257b1c=()=>_0x15bf64[_0x473594(0x4e,0xd5,0x4e,0x1b1)]!==![];async function _0x1057f6(_0x3f6f33,_0x557944){const _0x187922={_0x28d113:0x1a9},_0x2f3b8f={_0x48d489:0x79,_0x225248:0x17e,_0x596b88:0x13c,_0x292cd9:0x4f,_0x4c80ba:0x18d,_0x358337:0x12a,_0x15e403:0x129,_0x7465a:0x14a,_0x4358e6:0x9,_0x4f685a:0x90,_0x2b34e6:0xa5,_0x25299c:0x237,_0x31f0d2:0x1ea,_0xe8363d:0x65,_0x92a96b:0xff,_0x2935b9:0x11,_0x2f3a3d:0xd0},_0x4a4f00={_0x39ae6e:0x2e1},_0x525506=stateKey(_0x3f6f33,_0x557944),_0x526dd2=_0x14020b[_0x4f8689(_0x2566da._0x4a92df,0x5a7,0x6a5,0x68c)]['find'](_0x2ec2cb=>_0x2ec2cb['serverId']===_0x3f6f33['id']&&_0x2ec2cb[_0x1aea62(0x130,0x1d0,0x22a,0x161)]===_0x557944);if(_0x526dd2)return _0x526dd2;if(_0x14020b[_0x4f8689(_0x2566da._0x21115a,_0x2566da._0x38a785,0x36c,_0x2566da._0x50728a)]['has'](_0x525506))return void 0x0;const _0x207b6e=_0x14020b[_0x4f8689(_0x2566da._0x316e6b,_0x2566da._0x5e38af,0x460,_0x2566da._0x294631)][_0x1aea62(_0x2566da._0x2ff8ed,_0x2566da._0x461a8e,_0x2566da._0x5868cd,_0x2566da._0x25d059)](_0x525506);if(_0x207b6e)return _0x207b6e;function _0x4f8689(_0x5cd834,_0x1a6b97,_0xa4406d,_0x42c424){return _0x473594(_0x5cd834-0xcd,_0x5cd834-0x394,_0xa4406d-0x12a,_0x42c424);}const _0x401b9f=((async()=>{const _0x417c46={_0x11fc28:0x137,_0x28b2a0:0x15c};function _0x23950e(_0x3f4513,_0x1fccdf,_0x24daf1,_0x2225b2){return _0x1aea62(_0x3f4513-_0x417c46._0x11fc28,_0x1fccdf,_0x24daf1- -0x432,_0x2225b2-_0x417c46._0x28b2a0);}function _0x530cec(_0x33fa02,_0x5b1386,_0x48c2ff,_0x4d5c8b){return _0x1aea62(_0x33fa02-0x165,_0x48c2ff,_0x33fa02- -_0x4a4f00._0x39ae6e,_0x4d5c8b-0x154);}try{const _0x3d0894=await _0x3f6f33[_0x23950e(-_0x2f3b8f._0x48d489,-0x10a,-_0x2f3b8f._0x225248,-0x1a0)](_0x557944);if(!_0x3d0894)return _0x14020b[_0x530cec(-0xe6,-_0x2f3b8f._0x596b88,-0x1c9,-0x69)]['add'](_0x525506),void 0x0;const _0x586c2e=await createLspClient({'server':_0x3f6f33,'root':_0x557944,'handle':_0x3d0894}),_0x2ee4d0=_0x14020b[_0x530cec(0xf0,0xda,0x1a4,0xaf)][_0x530cec(-_0x2f3b8f._0x292cd9,-_0x2f3b8f._0x4c80ba,-0xf1,-0xb0)](_0x55a137=>_0x55a137[_0x530cec(0x4,-0x87,0xb1,0x12d)]===_0x3f6f33['id']&&_0x55a137[_0x530cec(-0xb7,-0x171,-0xc5,-0x182)]===_0x557944);if(_0x2ee4d0)return await _0x586c2e[_0x530cec(_0x2f3b8f._0x358337,0x168,_0x2f3b8f._0x15e403,0x8d)](),_0x2ee4d0;return _0x14020b[_0x23950e(-_0x2f3b8f._0x7465a,-_0x2f3b8f._0x4358e6,-0x61,-0x14f)][_0x530cec(-0x18,-_0x2f3b8f._0x4f685a,-0x130,_0x2f3b8f._0x2b34e6)](_0x586c2e),_0x586c2e;}catch{return _0x14020b[_0x23950e(-0x23d,-0x147,-_0x2f3b8f._0x25299c,-_0x2f3b8f._0x31f0d2)]['add'](_0x525506),void 0x0;}finally{_0x14020b[_0x530cec(-0x3a,-0x63,_0x2f3b8f._0xe8363d,_0x2f3b8f._0x92a96b)][_0x23950e(_0x2f3b8f._0x2935b9,0x9a,-0x16,_0x2f3b8f._0x2f3a3d)](_0x525506);}})());function _0x1aea62(_0x30d3e7,_0x52d7bc,_0x48bb8e,_0x2a92a1){return _0x473594(_0x30d3e7-_0x187922._0x28d113,_0x48bb8e-0x17d,_0x48bb8e-0x150,_0x52d7bc);}return _0x14020b['spawning'][_0x1aea62(0x197,_0x2566da._0x26be31,0x2cd,_0x2566da._0x13f142)](_0x525506,_0x401b9f),_0x401b9f;}async function _0x3809a8(_0x4be528,_0x5e04ef){const _0x2ef190={_0x41d994:0x1e3,_0x2ad8a3:0x143};if(!_0x257b1c())return[];function _0x45d7f3(_0x200087,_0x856f18,_0x387bd0,_0x4b7b7d){return _0x473594(_0x200087-_0x2ef190._0x41d994,_0x387bd0-_0x2ef190._0x2ad8a3,_0x387bd0-0x1a0,_0x4b7b7d);}function _0x5d01b1(_0x54b8ec,_0x74485d,_0xebb26d,_0x49747e){return _0x473594(_0x54b8ec-0xb1,_0xebb26d- -_0x2b5cd5._0x260619,_0xebb26d-0x7e,_0x54b8ec);}const _0x5d7202=[];for(const _0x1eb8d5 of getServersForFile(_0x4be528)){const _0x453993=await _0x1eb8d5[_0x45d7f3(_0x2ea4e5._0x4b54f9,_0x2ea4e5._0xaa5989,0x1f0,_0x2ea4e5._0x4dbbd3)](_0x4be528);if(!_0x453993)continue;const _0x3c4ec2=stateKey(_0x1eb8d5,_0x453993);if(_0x14020b[_0x5d01b1(-0x226,-_0x2ea4e5._0x3509a1,-0x23a,-_0x2ea4e5._0x279feb)][_0x5d01b1(0x1a,-0x195,-0x124,-_0x2ea4e5._0x189e63)](_0x3c4ec2))continue;const _0x54600c=_0x14020b[_0x5d01b1(-_0x2ea4e5._0x46eb35,-0xda,-0x64,-_0x2ea4e5._0x104f07)][_0x5d01b1(-0x15a,-0x184,-_0x2ea4e5._0x444268,-0x20d)](_0x35d5ac=>_0x35d5ac[_0x5d01b1(-0xdb,-0xba,-0x150,-0x175)]===_0x1eb8d5['id']&&_0x35d5ac[_0x45d7f3(0x1c6,0xd0,0x1f0,0x19a)]===_0x453993);if(_0x54600c){_0x5d7202['push'](_0x54600c);continue;}if(!_0x5e04ef)continue;const _0x276448=await _0x1057f6(_0x1eb8d5,_0x453993);if(_0x276448)_0x5d7202['push'](_0x276448);}return _0x5d7202;}async function _0x249a6f(_0x31f6bc,_0x14a071=![]){const _0x276e84={_0x332cff:0x26f,_0x40aa7d:0x1b9,_0xf40f8a:0x87,_0x20ee41:0x61,_0x11bf31:0x31,_0x2a961c:0x36,_0x6cb4b6:0x167,_0x1c98d0:0x177,_0x35f405:0x138,_0x418465:0x3b,_0x5c7e92:0x56,_0x17c589:0x10f,_0x1c2f37:0x48,_0x57df7d:0xe6,_0x5e83c7:0x166,_0x52193d:0x5d,_0x6aa21a:0x325,_0x3014f9:0x8a,_0x15e335:0x1e6,_0x38124b:0x17c,_0x16b601:0x138,_0x44b3cd:0x1fe,_0x287005:0x15e,_0x5e3052:0x248,_0x3017a5:0x18f};function _0x2147d4(_0x126592,_0x12cdbd,_0x102d81,_0x3bbb1a){return _0x473594(_0x126592-0x7f,_0x3bbb1a-_0x1dd1c9._0x510af3,_0x102d81-_0x1dd1c9._0x598dd3,_0x102d81);}const _0x3661b7=await _0x3809a8(_0x31f6bc,!![]);function _0x3b82af(_0x4674c0,_0x7f1dfd,_0x1bada2,_0x9079cd){return _0x473594(_0x4674c0-0x1a,_0x9079cd- -0x103,_0x1bada2-0x1de,_0x4674c0);}await Promise[_0x3b82af(-0x6b,0xe7,-_0x599c7c._0x32f4f8,-_0x599c7c._0x9f413e)](_0x3661b7[_0x3b82af(_0x599c7c._0x320ad4,-_0x599c7c._0x56c693,0x12d,0x5e)](async _0x603563=>{const _0x97c457={_0x677ef3:0x113},_0x4d8a00={_0xf65e76:0xc0};!_0x14020b[_0x52f9a8(0x22b,_0x276e84._0x332cff,_0x276e84._0x40aa7d,0x1bf)][_0x2ed9e4(-_0x276e84._0xf40f8a,-_0x276e84._0x20ee41,_0x276e84._0x11bf31,-0xd)](_0x603563[_0x2ed9e4(-_0x276e84._0x2a961c,-0x38,-0xce,-0x39)]+':'+_0x603563[_0x2ed9e4(-_0x276e84._0x6cb4b6,-_0x276e84._0x1c98d0,-0xd9,-0xf4)]+':'+_0x31f6bc)&&(await _0x603563[_0x52f9a8(_0x276e84._0x35f405,0x175,_0x276e84._0x418465,0x15c)][_0x2ed9e4(-_0x276e84._0x5c7e92,0xb0,-_0x276e84._0x17c589,-_0x276e84._0x1c2f37)]({'path':_0x31f6bc}),_0x14020b[_0x2ed9e4(-_0x276e84._0x57df7d,-0x145,-_0x276e84._0x5e83c7,-_0x276e84._0x52193d)][_0x2ed9e4(-0x2a1,-0x1d5,-0x1c9,-0x173)](_0x603563[_0x52f9a8(0x24f,0x336,0x2c3,_0x276e84._0x6aa21a)]+':'+_0x603563[_0x52f9a8(0x194,_0x276e84._0x3014f9,_0x276e84._0x15e335,_0x276e84._0x38124b)]+':'+_0x31f6bc));function _0x2ed9e4(_0x250804,_0x5ce777,_0x22074d,_0x340e42){return _0x3b82af(_0x22074d,_0x5ce777-0x90,_0x22074d-_0x4d8a00._0xf65e76,_0x340e42- -0x9e);}await _0x603563[_0x52f9a8(_0x276e84._0x16b601,0x181,0x62,_0x276e84._0x44b3cd)][_0x52f9a8(_0x276e84._0x287005,0x267,_0x276e84._0x5e3052,0x1e8)]({'path':_0x31f6bc,'version':nextFileVersion(_0x14020b,_0x31f6bc)});function _0x52f9a8(_0x34c14d,_0x2183de,_0x587efb,_0x22f52a){return _0x2147d4(_0x34c14d-0xd7,_0x2183de-_0x97c457._0x677ef3,_0x587efb,_0x34c14d-0x17);}if(_0x14a071)await _0x603563[_0x2ed9e4(0xb6,-0x98,-_0x276e84._0x3017a5,-0x63)]({'path':_0x31f6bc});}));}async function _0x121496(_0x22cb33){function _0x3aed23(_0xe02165,_0xbfeca0,_0x1809d8,_0x5f3689){return _0x473594(_0xe02165-_0x513251._0x19e76f,_0x5f3689-0x36b,_0x1809d8-0xfe,_0x1809d8);}function _0x31633f(_0x544fa4,_0x49f048,_0x24bd6b,_0x571efd){return _0x473594(_0x544fa4-0x1dc,_0x544fa4-0x455,_0x24bd6b-_0x54bf3d._0x226697,_0x571efd);}return await _0x249a6f(_0x22cb33[_0x31633f(0x520,_0x31281b._0x46b276,0x46b,0x50c)],![]),_0x3809a8(_0x22cb33[_0x31633f(0x520,0x655,_0x31281b._0x22ac32,0x494)],![]);}async function _0xbb6b74(_0x1dd518){const _0x451d73={_0x4ad631:0x1e0,_0x41391b:0x2eb,_0x5674e9:0xc4};function _0x19e2f0(_0x509ef5,_0xf05a3e,_0x2b728d,_0x4bd872){return _0x473594(_0x509ef5-_0xc904ad._0x3285d6,_0x4bd872-_0xc904ad._0x32a6cd,_0x2b728d-0x152,_0x2b728d);}function _0x167fef(_0x4ad189,_0x1b37bb,_0xcf14d3,_0x115e3c){return _0x473594(_0x4ad189-_0x451d73._0x4ad631,_0xcf14d3- -_0x451d73._0x41391b,_0xcf14d3-_0x451d73._0x5674e9,_0x115e3c);}const _0x4f13ab=await _0x121496(_0x1dd518);return collectClientResults(_0x4f13ab[_0x167fef(-0x268,-0x16a,-_0x25bbe2._0xbe9786,-0x189)](_0x5db816=>_0x5db816[_0x19e2f0(0x2f4,0x2d0,0x40b,0x38a)]['prepareCallHierarchy'](_0x1dd518)));}return{'isEnabled':_0x257b1c,async 'hasClients'(_0x1c29e6){const _0x2c54e6={_0x4626c3:0x167,_0x221510:0x18d};function _0xcc8f15(_0x5e6b45,_0x5e7f5f,_0x4d647a,_0x567873){return _0x473594(_0x5e6b45-_0x2c54e6._0x4626c3,_0x5e7f5f-0x367,_0x4d647a-_0x2c54e6._0x221510,_0x5e6b45);}function _0xb2a982(_0x2dc0cf,_0x3afa8e,_0x4b194e,_0x5cfea4){return _0x473594(_0x2dc0cf-0x70,_0x2dc0cf-0x369,_0x4b194e-0x1f2,_0x4b194e);}return(await _0x3809a8(_0x1c29e6,![]))[_0xcc8f15(_0x2b7bd4._0x12e94b,_0x2b7bd4._0x38a12c,_0x2b7bd4._0x2e8d37,0x511)]>0x0||getServersForFile(_0x1c29e6)[_0xcc8f15(0x3e9,0x48f,0x4bc,_0x2b7bd4._0x29a37e)]>0x0;},'touchFile':_0x249a6f,async 'diagnostics'(){const _0x4eaff4={_0x153496:0xc8,_0x3f8394:0x142},_0x21d9cd={};for(const _0x18b5b1 of _0x14020b[_0x41b72c(_0x44b7b9._0x4e0315,_0x44b7b9._0x44ef59,0x290,_0x44b7b9._0x97c3a3)]){for(const [_0x12b8b1,_0x503151]of _0x18b5b1[_0x41b72c(0x298,0x1ba,0x2bc,_0x44b7b9._0x5107af)]){_0x21d9cd[diagnosticsKeyToPath(_0x12b8b1)]=_0x503151;}}function _0x41b72c(_0x107b67,_0x28d58a,_0x4a4fb9,_0x9e0092){return _0x473594(_0x107b67-0x124,_0x4a4fb9-_0x24fb64._0x3b79aa,_0x4a4fb9-0x1aa,_0x28d58a);}function _0x507b1a(_0x553cea,_0x1a9fea,_0x3068b5,_0x95a8fe){return _0x473594(_0x553cea-_0x4eaff4._0x153496,_0x1a9fea-_0x4eaff4._0x3f8394,_0x3068b5-0xf1,_0x95a8fe);}return _0x21d9cd;},async 'diagnosticsForFile'(_0x2cb5fd){const _0x4151a8={_0x46554c:0x7a,_0x4f0ac9:0x154};await _0x249a6f(_0x2cb5fd,!![]);const _0x57049b=[];for(const _0x1d70bd of await _0x3809a8(_0x2cb5fd,![])){for(const [_0x4884c8,_0x2dc598]of _0x1d70bd[_0x34c6e4(0x0,-_0x521995._0x1f253d,-_0x521995._0x1db74e,-0xc3)]){if(diagnosticsKeyToPath(_0x4884c8)===_0x2cb5fd)_0x57049b['push'](..._0x2dc598);}}function _0x34c6e4(_0x15f2b9,_0xe7d20a,_0x47a6aa,_0x1e303c){return _0x473594(_0x15f2b9-_0x4151a8._0x46554c,_0x47a6aa- -0x2dc,_0x47a6aa-_0x4151a8._0x4f0ac9,_0xe7d20a);}return _0x57049b;},async 'definition'(_0x4c6b40){const _0x5235c4={_0x5cc55e:0xc7};function _0x25c218(_0x49ec6b,_0x53b6d8,_0x1a6b40,_0x119e7e){return _0x473594(_0x49ec6b-0x1d9,_0x49ec6b- -_0x17bb88._0x36fc1a,_0x1a6b40-_0x17bb88._0x562d33,_0x53b6d8);}function _0x4887b7(_0x33c5a5,_0x6d5a51,_0x3821a7,_0x1fc403){return _0x473594(_0x33c5a5-_0x5235c4._0x5cc55e,_0x33c5a5-0x131,_0x3821a7-0x131,_0x6d5a51);}return collectClientResults((await _0x121496(_0x4c6b40))[_0x4887b7(0x292,0x1fd,0x169,0x1d7)](_0x30d3b7=>_0x30d3b7[_0x4887b7(0x221,0x210,0x237,0x324)][_0x25c218(0x4c,0x7,-0x2c,0x82)](_0x4c6b40)));},async 'references'(_0x17f1ae){function _0x1b2b99(_0x2d9836,_0x202b5f,_0x258e46,_0x46c34f){return _0x473594(_0x2d9836-_0x296ae3._0x157780,_0x2d9836-0x39d,_0x258e46-_0x296ae3._0x224c1c,_0x46c34f);}function _0xa846a6(_0x27237f,_0x160de2,_0x539a28,_0x40a341){return _0x473594(_0x27237f-_0x4b9dfe._0x46a690,_0x160de2- -_0x4b9dfe._0x289a34,_0x539a28-0x1ae,_0x27237f);}return collectClientResults((await _0x121496(_0x17f1ae))[_0x1b2b99(0x4fe,_0x51cfcd._0x39a901,_0x51cfcd._0xf86609,_0x51cfcd._0x49e781)](_0x21be69=>_0x21be69[_0x1b2b99(0x48d,0x475,0x35f,0x5ba)][_0xa846a6(-0x69,-0xd0,-0xc5,-0x16c)](_0x17f1ae)));},async 'hover'(_0x45675e){const _0x51a202=await Promise[_0x1d4836(-0x71,-_0x78463f._0x2a2f39,-0x1ae,-0x34)]((await _0x121496(_0x45675e))['map'](_0x2248f3=>_0x2248f3[_0xf5a51f(0x212,0x262,0x371,0x3a0)][_0xf5a51f(0x499,0x3a2,0x285,0x4da)](_0x45675e)));function _0x1d4836(_0x47f819,_0x1605be,_0x39ca43,_0x389bf3){return _0x473594(_0x47f819-_0x5deda6._0x4a360d,_0x47f819- -0x110,_0x39ca43-_0x5deda6._0x4e9656,_0x1605be);}function _0xf5a51f(_0x3e6efc,_0x57e205,_0x738cc0,_0x12a111){return _0x473594(_0x3e6efc-0x166,_0x57e205-0x172,_0x738cc0-0xa3,_0x738cc0);}return _0x51a202[_0x1d4836(-0xf,_0x78463f._0xe394fd,0xfd,-_0x78463f._0xee260e)](_0x104ad2=>_0x104ad2[_0xf5a51f(0x43f,0x34f,0x321,0x2e6)]===_0x1d4836(-0x1e,0x63,0x8d,0x116)&&_0x104ad2[_0xf5a51f(0x311,0x407,0x34c,0x3cc)]?[_0x104ad2['value']]:[]);},async 'documentSymbol'(_0xe3f6c2){function _0x1d89cc(_0x4e984f,_0x242b60,_0x4fe8e7,_0x1fcd4a){return _0x473594(_0x4e984f-_0x3170e1._0x35b776,_0x242b60-0x100,_0x4fe8e7-0x153,_0x4e984f);}function _0x21de5e(_0x2b86cb,_0x1dde15,_0x4a8693,_0x50980d){return _0x473594(_0x2b86cb-_0x5e4a1e._0x249911,_0x1dde15-_0x5e4a1e._0x3015c1,_0x4a8693-_0x5e4a1e._0x46c218,_0x4a8693);}return await _0x249a6f(_0xe3f6c2,![]),collectClientResults((await _0x3809a8(_0xe3f6c2,![]))[_0x1d89cc(_0x5b00dc._0x17d321,_0x5b00dc._0x1af11c,0x22b,0x146)](_0x2081b1=>_0x2081b1[_0x21de5e(0x465,0x4f8,0x582,0x5d6)][_0x1d89cc(0x228,0x248,0x136,0x1d0)](_0xe3f6c2)));},async 'workspaceSymbol'(_0x4c2ba9){function _0x434e1c(_0x2cb886,_0x30c750,_0x480e82,_0x336c9f){return _0x473594(_0x2cb886-0x1c1,_0x30c750- -0x118,_0x480e82-0xc6,_0x336c9f);}function _0x28246e(_0x3e2351,_0x1163be,_0x29c67e,_0x168762){return _0x473594(_0x3e2351-0xeb,_0x3e2351-0xab,_0x29c67e-0x1e3,_0x29c67e);}return collectClientResults(_0x14020b['clients'][_0x434e1c(-_0x2abe86._0x47dd39,0x49,-0x19,_0x2abe86._0x2530f3)](_0x46961d=>_0x46961d[_0x28246e(0x19b,0x1d6,0x184,0x21d)][_0x28246e(0x1d0,0x207,0x2fc,0x1b3)](_0x4c2ba9)));},async 'implementation'(_0x455e40){const _0x7a0491={_0x492143:0x16f,_0x441b20:0x265};function _0x17dc05(_0x2a01da,_0x1331f1,_0x3d64c9,_0x36d1b3){return _0x473594(_0x2a01da-0x1f0,_0x3d64c9- -0x5b,_0x3d64c9-0x76,_0x36d1b3);}function _0xeb99de(_0x152d7a,_0x436610,_0x29d94d,_0x20ef69){return _0x473594(_0x152d7a-_0x7a0491._0x492143,_0x29d94d- -_0x7a0491._0x441b20,_0x29d94d-0x1c3,_0x436610);}return collectClientResults((await _0x121496(_0x455e40))['map'](_0x5c46d8=>_0x5c46d8[_0x17dc05(-0xaa,-0xaa,0x95,0xc7)][_0xeb99de(-0x2a,0x4,-0xf,-0x14)](_0x455e40)));},async 'prepareCallHierarchy'(_0x41485d){return _0xbb6b74(_0x41485d);},async 'incomingCalls'(_0x48c124){const _0x2c4cd2=await _0xbb6b74(_0x48c124);function _0x7a7648(_0x38f6b1,_0xd624cc,_0x47a391,_0x253da2){return _0x473594(_0x38f6b1-_0xf3f99c._0x455dc5,_0x47a391-_0xf3f99c._0x155198,_0x47a391-0x1ea,_0x38f6b1);}function _0xe53fd0(_0x47a455,_0x3084b9,_0x7f42b0,_0x470ce8){return _0x473594(_0x47a455-0x105,_0x470ce8- -_0x8d79ce._0x331440,_0x7f42b0-0x14,_0x7f42b0);}const _0x48c723=await _0x121496(_0x48c124);return collectClientResults(_0x48c723[_0x7a7648(0x467,0x560,0x594,_0x489a8b._0x1564b0)](_0x40d57b=>_0x2c4cd2['map'](_0x2e624a=>_0x40d57b[_0xe53fd0(-0x99,0xf0,0xbe,0x32)][_0x7a7648(0x51c,0x586,0x4cb,0x422)](_0x2e624a))));},async 'outgoingCalls'(_0xe008dc){const _0x5af84f=await _0xbb6b74(_0xe008dc),_0x3d4e9d=await _0x121496(_0xe008dc);function _0x27a100(_0x2651b8,_0x24d267,_0x5e0c15,_0xe4ddce){return _0x473594(_0x2651b8-_0x1206f8._0x4a4749,_0x5e0c15- -_0x1206f8._0xcb0324,_0x5e0c15-_0x1206f8._0x585ca9,_0x2651b8);}return collectClientResults(_0x3d4e9d['flatMap'](_0x39ce97=>_0x5af84f[_0x27a100(-0x1c3,-0x16d,-0xf3,-0x1da)](_0x4d0b3b=>_0x39ce97['request']['outgoingCalls'](_0x4d0b3b))));},async 'shutdown'(){const _0x1a88a9={_0x3cc814:0xa2};if(_0x14020b[_0x2bc23e(0x14a,0x29,_0x5b8746._0xbc8129,0x1e3)])return;_0x14020b[_0x2bc23e(0x14a,_0x5b8746._0x41a09e,_0x5b8746._0x562246,0xf0)]=!![],await Promise['allSettled'](_0x14020b[_0x2bc23e(0x22e,_0x5b8746._0xe2db14,_0x5b8746._0x2436db,0x217)][_0x1a2340(0x381,_0x5b8746._0x16b54b,_0x5b8746._0x465401,_0x5b8746._0x5a7fe3)](_0x39c807=>_0x39c807[_0x1a2340(0x321,0x4b3,0x3fe,0x3a2)]())),_0x14020b['clients']=[];function _0x2bc23e(_0x487b22,_0x279656,_0x3e61cf,_0xa752b){return _0x473594(_0x487b22-0x26,_0x487b22- -0x26,_0x3e61cf-_0x1a88a9._0x3cc814,_0x3e61cf);}_0x14020b[_0x1a2340(0x132,0x1eb,_0x5b8746._0x5c11e2,_0x5b8746._0x48c9f5)][_0x2bc23e(_0x5b8746._0x38297a,0x19e,0xfd,_0x5b8746._0x172846)]();function _0x1a2340(_0x3d216f,_0x4c8705,_0x5a7d62,_0x4b6214){return _0x473594(_0x3d216f-0x49,_0x4b6214-0x114,_0x5a7d62-_0x500f87._0x2461f0,_0x4c8705);}_0x14020b[_0x2bc23e(_0x5b8746._0x5a8043,-0x3e,0xa,_0x5b8746._0x5a5808)][_0x1a2340(0x3da,_0x5b8746._0x4dd548,0x25b,_0x5b8746._0x43b5d4)](),_0x14020b[_0x2bc23e(_0x5b8746._0x4bd20c,_0x5b8746._0x3dcb64,0x34,0x105)][_0x1a2340(0x344,0x2e7,_0x5b8746._0x11ca68,0x362)](),_0x14020b[_0x2bc23e(_0x5b8746._0x556b17,-_0x5b8746._0x4f777b,0xde,0x147)][_0x1a2340(_0x5b8746._0x1f085c,0x474,_0x5b8746._0x3fc262,_0x5b8746._0x7df4d6)]();},'status'(){return{'connectedClients':_0x14020b['clients']['length']};}};}function createQuestionId(){const _0xf3323c={_0x1e4bf1:0x4a2,_0x55f5a5:0x407,_0x3f6923:0x41c,_0x22ff9a:0x450},_0xd1bba8={_0x3ecbbe:0x3e1,_0x300ccf:0x1b7},_0x23baa7={_0x45a91b:0x12a};function _0x265a27(_0x1d6089,_0x5275b4,_0x36b762,_0x2c25a3){return _0x2ecd0e(_0x36b762- -0x191,_0x5275b4-0x17,_0x36b762-_0x23baa7._0x45a91b,_0x1d6089);}function _0x3fdb47(_0x495370,_0x3591e6,_0x1b8f8c,_0x139998){return _0x198698(_0x495370-_0xd1bba8._0x3ecbbe,_0x3591e6-0x52,_0x3591e6,_0x139998-_0xd1bba8._0x300ccf);}return'question-'+Date[_0x3fdb47(0x459,_0xf3323c._0x1e4bf1,0x44a,0x4cf)]()+'-'+Math[_0x265a27(_0xf3323c._0x55f5a5,0x3b7,0x4ac,0x56f)]()[_0x265a27(0x3f3,_0xf3323c._0x3f6923,0x38e,_0xf3323c._0x22ff9a)](0x24)['slice'](0x2,0x9);}function validateInput(_0x143e37){const _0x4b5128={_0x178cd5:0x50d,_0x197745:0x506,_0x53f7d4:0x530,_0x4f0efa:0x57b,_0x4badd3:0x6bb,_0x22f5fc:0x5e8,_0x30fabd:0x450,_0x12fd62:0x68a,_0x36426d:0x6cd,_0x4eee1e:0x4e8,_0x263b03:0x592,_0x2be092:0x798,_0x43e1b2:0x5e3,_0x14c02b:0x7a1,_0x131bfd:0x6ae,_0x396281:0x3fd,_0x137729:0x372,_0x122661:0x514,_0x52cb84:0x4cc,_0x542d3f:0x5ff,_0x256eab:0x4c5,_0x4b28cd:0x4ac,_0x25cbde:0x695,_0x45bdc5:0x615,_0x106f9b:0x5c9,_0xfcbe47:0x5b4,_0x34b144:0x5e5,_0x3c1e03:0x50b,_0x455eed:0x5b7,_0x21a27e:0x5f2,_0x1a9942:0x5af,_0x4a13b1:0x561,_0x18866a:0x671,_0x4c4048:0x4f9,_0x7c3edd:0x4d8,_0x29cb59:0x565,_0x1306f7:0x40b,_0x24b289:0x662,_0x26447b:0x5d7,_0x3c9bec:0x6d7,_0x41a0e1:0x5a7,_0x1b5c03:0x579,_0x374bf2:0x57a,_0x491924:0x59c,_0x23d61a:0x512,_0x529168:0x575,_0x26cdd6:0x553,_0x33fc4d:0x381,_0x135c00:0x468,_0x11833f:0x49e,_0x2f13da:0x577,_0x29c017:0x5b2,_0x375b8b:0x4d7,_0x10c0c3:0x51f,_0x35039e:0x606,_0x528c3c:0x553,_0x2d7c63:0x560,_0xfb261c:0x6da,_0x38cb3c:0x4a3,_0x506417:0x5d8,_0x2478f1:0x4d4,_0x506d34:0x650,_0x52b374:0x69b,_0x43d2ca:0x5bf,_0x5cec39:0x554,_0x33f7a7:0x48b,_0x5ea496:0x61a,_0x2f4339:0x4f6,_0x12a473:0x68e,_0x5c1dc0:0x5e4},_0x447ee9={_0x48a00e:0x1d},_0xf56ea0={_0x1f2050:0x8a,_0x131804:0x104};function _0x3370cb(_0xce93bf,_0x5cbcfa,_0x157224,_0x59e085){return _0x2ecd0e(_0x59e085-_0xf56ea0._0x1f2050,_0x5cbcfa-_0xf56ea0._0x131804,_0x157224-0x1a9,_0x5cbcfa);}if(!Array[_0xafe9b6(0x5b6,_0x4b5128._0x178cd5,_0x4b5128._0x197745,_0x4b5128._0x53f7d4)](_0x143e37[_0x3370cb(0x6b6,0x692,_0x4b5128._0x4f0efa,0x5ff)])||_0x143e37[_0xafe9b6(_0x4b5128._0x4badd3,_0x4b5128._0x22f5fc,0x45b,0x592)][_0xafe9b6(_0x4b5128._0x30fabd,0x507,_0x4b5128._0x12fd62,0x553)]<0x1||_0x143e37[_0xafe9b6(_0x4b5128._0x36426d,0x616,_0x4b5128._0x4eee1e,_0x4b5128._0x263b03)][_0x3370cb(0x6ca,0x6a8,0x627,0x5c0)]>0x4)throw new ToolExecutionError(_0x3370cb(_0x4b5128._0x2be092,_0x4b5128._0x43e1b2,_0x4b5128._0x14c02b,_0x4b5128._0x131bfd),{'error':_0xafe9b6(0x4e2,_0x4b5128._0x396281,_0x4b5128._0x137729,0x4a5)});function _0xafe9b6(_0x2f6998,_0xc8272b,_0x315e19,_0x5a5737){return _0x2ecd0e(_0x5a5737-_0x447ee9._0x48a00e,_0xc8272b-0x1b9,_0x315e19-0xc5,_0xc8272b);}for(let _0x415390=0x0;_0x415390<_0x143e37[_0x3370cb(_0x4b5128._0x122661,_0x4b5128._0x52cb84,0x6cb,_0x4b5128._0x542d3f)][_0xafe9b6(_0x4b5128._0x256eab,_0x4b5128._0x4b28cd,0x4a7,0x553)];_0x415390+=0x1){const _0x3d700e=_0x143e37[_0x3370cb(0x5b6,0x602,0x737,_0x4b5128._0x542d3f)][_0x415390];if(!_0x3d700e[_0x3370cb(_0x4b5128._0x25cbde,0x775,0x6b9,0x682)]||typeof _0x3d700e[_0xafe9b6(0x74d,0x6ca,0x57c,_0x4b5128._0x45bdc5)]!==_0x3370cb(0x53a,_0x4b5128._0x106f9b,0x520,_0x4b5128._0xfcbe47))throw new ToolExecutionError(_0x3370cb(0x4a7,0x443,_0x4b5128._0x34b144,_0x4b5128._0x3c1e03)+(_0x415390+0x1)+_0xafe9b6(_0x4b5128._0x455eed,0x657,_0x4b5128._0x21a27e,_0x4b5128._0x1a9942));if(!_0x3d700e['header']||typeof _0x3d700e[_0xafe9b6(0x58a,0x54a,_0x4b5128._0x4a13b1,0x579)]!==_0x3370cb(0x689,_0x4b5128._0x18866a,_0x4b5128._0x4c4048,0x5b4))throw new ToolExecutionError(_0xafe9b6(_0x4b5128._0x7c3edd,_0x4b5128._0x29cb59,0x4b8,0x49e)+(_0x415390+0x1)+':\x20\x22header\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(_0x3d700e['header']['length']>0x14)throw new ToolExecutionError(_0x3370cb(0x47d,_0x4b5128._0x1306f7,0x63e,0x50b)+(_0x415390+0x1)+_0xafe9b6(0x599,_0x4b5128._0x24b289,_0x4b5128._0x26447b,_0x4b5128._0x3c9bec)+_0x3d700e[_0xafe9b6(0x585,_0x4b5128._0x41a0e1,0x636,_0x4b5128._0x1b5c03)]['length']);if(!Array[_0x3370cb(0x4d2,0x564,_0x4b5128._0x374bf2,0x59d)](_0x3d700e['options'])||_0x3d700e[_0x3370cb(_0x4b5128._0x4f0efa,_0x4b5128._0x491924,0x704,0x602)][_0x3370cb(_0x4b5128._0x23d61a,_0x4b5128._0x529168,0x666,0x5c0)]<0x2||_0x3d700e['options'][_0xafe9b6(0x5c0,0x54a,0x586,_0x4b5128._0x26cdd6)]>0x4)throw new ToolExecutionError(_0xafe9b6(_0x4b5128._0x33fc4d,_0x4b5128._0x106f9b,_0x4b5128._0x135c00,_0x4b5128._0x11833f)+(_0x415390+0x1)+_0xafe9b6(_0x4b5128._0x2f13da,_0x4b5128._0x29c017,_0x4b5128._0x375b8b,_0x4b5128._0x10c0c3));for(let _0x1230df=0x0;_0x1230df<_0x3d700e['options'][_0xafe9b6(_0x4b5128._0x35039e,0x495,0x56b,_0x4b5128._0x528c3c)];_0x1230df+=0x1){const _0x48f812=_0x3d700e['options'][_0x1230df];if(!_0x48f812[_0xafe9b6(_0x4b5128._0x22f5fc,_0x4b5128._0x2d7c63,_0x4b5128._0xfb261c,0x62f)]||!_0x48f812[_0xafe9b6(0x580,0x69f,_0x4b5128._0x38cb3c,_0x4b5128._0x506417)])throw new ToolExecutionError(_0x3370cb(0x473,0x3d8,_0x4b5128._0x2478f1,0x50b)+(_0x415390+0x1)+_0x3370cb(_0x4b5128._0x506d34,_0x4b5128._0x52b374,0x62f,0x57b)+(_0x1230df+0x1)+_0xafe9b6(0x5a5,_0x4b5128._0x43d2ca,_0x4b5128._0x5cec39,_0x4b5128._0x33f7a7));}if(typeof _0x3d700e[_0x3370cb(0x3b8,_0x4b5128._0x5ea496,0x5fe,_0x4b5128._0x2f4339)]!==_0x3370cb(0x6a8,_0x4b5128._0x12a473,_0x4b5128._0x5c1dc0,0x5e1))throw new ToolExecutionError('Question\x20'+(_0x415390+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x53337c){const _0x3c8e49={_0x5b8602:0x9c,_0x13f7bf:0x81,_0xd90cd0:0xc0},_0x4a803a={_0x5a3720:0x44},_0x21ba3c={_0xf41ca8:0x176};function _0xb0c14(_0x3773c0,_0x2d7b47,_0x466ff9,_0x2d41ce){return _0x2ecd0e(_0x2d41ce- -0x611,_0x2d7b47-0x1,_0x466ff9-_0x21ba3c._0xf41ca8,_0x2d7b47);}function _0x2e3d8c(_0x381532,_0x3b1779,_0x3d596e,_0x1dc256){return _0x2ecd0e(_0x381532- -0x1c6,_0x3b1779-_0x4a803a._0x5a3720,_0x3d596e-0x1a8,_0x3d596e);}return _0x53337c[_0xb0c14(0x67,-0x14d,-0x7c,-_0x3c8e49._0x5b8602)][_0xb0c14(_0x3c8e49._0x13f7bf,0x5b,-_0x3c8e49._0xd90cd0,-0xa2)]((_0x1ea51b,_0x11c0bd)=>({'id':'q'+_0x11c0bd,'question':_0x1ea51b[_0x2e3d8c(0x432,0x389,0x548,0x4c6)],'header':_0x1ea51b[_0x2e3d8c(0x396,0x403,0x48e,0x2ff)],'options':_0x1ea51b[_0x2e3d8c(0x3b2,0x42c,0x282,0x3f5)],'multiSelect':_0x1ea51b[_0x2e3d8c(0x2a6,0x28f,0x333,0x3ac)]}));}function createResult(_0x482a9c,_0x4a3d30,_0xea2418){const _0x35ff28={_0x34a9a8:0xa8,_0x3bc7a6:0xfc},_0x3ecc7c={_0x4cc2ee:0xf,_0x498f0f:0x1af,_0x20d908:0x18b},_0x919062={'questionId':_0x482a9c,'questionCount':_0x4a3d30,'answers':_0xea2418};function _0x4dcbb5(_0x4a74af,_0x2baa25,_0x495e5e,_0x535b57){return _0x198698(_0x535b57- -_0x3ecc7c._0x4cc2ee,_0x2baa25-_0x3ecc7c._0x498f0f,_0x495e5e,_0x535b57-_0x3ecc7c._0x20d908);}return createToolOutput('User\x20responses\x20received:\x20'+JSON[_0x4dcbb5(-0x26,-0x200,-_0x35ff28._0x34a9a8,-_0x35ff28._0x3bc7a6)](_0xea2418,null,0x2),_0x919062);}function createAskUserTool(){const _0x5893ea={_0x25e0af:0x2bf,_0x2653b0:0x5a,_0x110260:0xb4,_0x3e7547:0x141,_0x277d4b:0x133,_0x408612:0xd1,_0x2f59a6:0x2d0,_0x430f2c:0x2ac,_0x4ff96d:0x35e,_0x2d6e0f:0x35f,_0x3bc5fa:0x35b,_0x6d3e02:0x2ac,_0x488c32:0x20b,_0x57fdbc:0x10b,_0x53f5db:0x1ca,_0x339d61:0x34a,_0x1ab47f:0x4a4,_0x566a51:0x2b5,_0x2a57e4:0x1ee,_0x32b6c7:0x1ba,_0x7de785:0x67,_0x5e90b7:0xd1},_0x28b14e={_0x5d8dea:0x470,_0x385cbe:0x4bb,_0x18d593:0x37e,_0x59c96a:0x339,_0x452187:0x3a5,_0x300211:0x53c,_0x3c7fb1:0x468,_0x5b53fb:0x39e,_0x1edaa1:0x414,_0x2e8d2c:0x31c,_0x352fd0:0x4fc,_0x4423e9:0x4b2,_0x8651e9:0x4f4,_0x31e774:0x46e,_0x128326:0x42e,_0x6d3c86:0x33c,_0x251259:0x4bd,_0x1e3ef2:0x50b,_0x2d0b01:0x56c,_0x80f441:0x453,_0x244a75:0x4c8,_0x59fc44:0x477,_0x1f5a13:0x42b,_0x2c9906:0x34f,_0x13b588:0x488,_0x289451:0x5ae},_0x341f9b={_0x4dc553:0xda,_0x240b31:0x1cc},_0x5e6cd4={_0x12f1d4:0x27e},_0x2d30e4={_0x2f1598:0x4e,_0x42c034:0x1e6};function _0x3e92f2(_0x494c50,_0x2b61ac,_0x409ef1,_0x12d805){return _0x198698(_0x12d805-0x24e,_0x2b61ac-_0x2d30e4._0x2f1598,_0x409ef1,_0x12d805-_0x2d30e4._0x42c034);}function _0x3dfa40(_0x1ca4ad,_0x4d58c6,_0x43f7c5,_0x4b6d10){return _0x2ecd0e(_0x4b6d10- -_0x5e6cd4._0x12f1d4,_0x4d58c6-0x66,_0x43f7c5-0x6d,_0x1ca4ad);}return defineTool({'name':'AskUserTool','description':_0x3e92f2(_0x5893ea._0x25e0af,0x33e,0x3ca,0x296),'inputSchema':{'type':_0x3dfa40(0x12c,0x340,0x301,0x23c),'properties':{'questions':{'type':'array','items':{'type':_0x3e92f2(_0x5893ea._0x2653b0,_0x5893ea._0x110260,0x2b,0xd1),'properties':{'question':{'type':'string'},'header':{'type':_0x3e92f2(0xc5,0x170,0x238,_0x5893ea._0x3e7547)},'options':{'type':_0x3e92f2(0x27d,0x23f,0x1d6,0x2a7),'items':{'type':_0x3e92f2(0x168,_0x5893ea._0x277d4b,0x193,_0x5893ea._0x408612),'properties':{'label':{'type':_0x3dfa40(_0x5893ea._0x2f59a6,0x225,0x366,_0x5893ea._0x430f2c)},'description':{'type':_0x3dfa40(_0x5893ea._0x4ff96d,_0x5893ea._0x2d6e0f,_0x5893ea._0x3bc5fa,_0x5893ea._0x6d3e02)}},'required':[_0x3e92f2(0x2d8,0x332,_0x5893ea._0x488c32,0x229),_0x3e92f2(_0x5893ea._0x57fdbc,0x1a6,_0x5893ea._0x53f5db,0x1d2)]}},'multiSelect':{'type':'boolean'}},'required':[_0x3dfa40(0x3e2,_0x5893ea._0x339d61,_0x5893ea._0x1ab47f,0x37a),'header','options',_0x3dfa40(0x2de,0x148,_0x5893ea._0x566a51,_0x5893ea._0x2a57e4)]}},'answers':{'type':_0x3e92f2(_0x5893ea._0x32b6c7,-0x3,-_0x5893ea._0x7de785,_0x5893ea._0x5e90b7),'properties':{}}},'required':[_0x3e92f2(0xc5,0x2c0,0x18b,0x18c)]},async *'execute'(_0x54736b,_0x3bfdd8){const _0x1aeccd={_0xe99a5e:0x59};function _0x4d5d00(_0x4be37b,_0x37c86c,_0x2d7a22,_0x591a11){return _0x3e92f2(_0x4be37b-_0x1aeccd._0xe99a5e,_0x37c86c-0x134,_0x591a11,_0x4be37b-0x2c7);}const _0x138972=_0x54736b;validateInput(_0x138972);const _0x8bbb3d=_0x3bfdd8['toolCallId']??createQuestionId();function _0x27f30e(_0x1f6e9b,_0x388678,_0x7abbf9,_0x3d7ca4){return _0x3dfa40(_0x388678,_0x388678-_0x341f9b._0x4dc553,_0x7abbf9-0x5a,_0x3d7ca4-_0x341f9b._0x240b31);}if(_0x138972[_0x4d5d00(0x4f4,_0x28b14e._0x5d8dea,_0x28b14e._0x385cbe,0x49a)]&&Object[_0x27f30e(0x3bf,_0x28b14e._0x18d593,_0x28b14e._0x59c96a,_0x28b14e._0x452187)](_0x138972[_0x4d5d00(0x4f4,_0x28b14e._0x300211,0x5fd,0x515)])[_0x27f30e(_0x28b14e._0x3c7fb1,0x5a8,_0x28b14e._0x5b53fb,0x484)]>0x0)return createResult(_0x8bbb3d,_0x138972['questions'][_0x4d5d00(_0x28b14e._0x1edaa1,_0x28b14e._0x2e8d2c,_0x28b14e._0x352fd0,_0x28b14e._0x4423e9)],_0x138972[_0x4d5d00(_0x28b14e._0x8651e9,0x62a,_0x28b14e._0x31e774,0x3be)]);if(!_0x3bfdd8[_0x27f30e(_0x28b14e._0x128326,_0x28b14e._0x6d3c86,_0x28b14e._0x251259,0x46f)])throw new ToolExecutionError(_0x4d5d00(_0x28b14e._0x1e3ef2,_0x28b14e._0x2d0b01,0x52d,0x5ab));const _0x5d73cb=buildQuestions(_0x138972),_0x248d24=await _0x3bfdd8[_0x4d5d00(0x3ff,0x4a8,0x475,0x51e)]({'questionId':_0x8bbb3d,'questions':_0x5d73cb});yield createResult(_0x8bbb3d,_0x138972[_0x4d5d00(_0x28b14e._0x80f441,_0x28b14e._0x244a75,_0x28b14e._0x59fc44,_0x28b14e._0x1f5a13)][_0x27f30e(_0x28b14e._0x2c9906,_0x28b14e._0x13b588,_0x28b14e._0x289451,0x484)],_0x248d24);}});}import{spawn as _0x15a149}from'child_process';import{statSync}from'fs';import*as _0x5a5bee from'os';import*as _0x298881 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x268d1b from'path';function isPathInside(_0x26837f,_0x289e83){const _0x18a5f4={_0x188369:0x2a0,_0x5883bc:0x1c3,_0x143cd3:0x243,_0x14a83e:0x1a4,_0x30c6ac:0x3e3,_0x1878e5:0x3ed},_0x250d7b={_0x2d6119:0x2b1,_0x16098d:0x1e1};function _0x1df4f4(_0x30f288,_0x2f3d20,_0x5dec29,_0x47c101){return _0x2ecd0e(_0x5dec29- -_0x250d7b._0x2d6119,_0x2f3d20-_0x250d7b._0x16098d,_0x5dec29-0x122,_0x30f288);}const _0x23be7f=_0x268d1b['resolve'](_0x26837f),_0x386908=_0x268d1b[_0x1df4f4(0x16a,_0x18a5f4._0x188369,_0x18a5f4._0x5883bc,_0x18a5f4._0x143cd3)](_0x23be7f,_0x289e83);function _0x3c1593(_0x2a9dc8,_0x5bdafc,_0x438176,_0x183310){return _0x2ecd0e(_0x183310- -0x423,_0x5bdafc-0x15c,_0x438176-0x44,_0x2a9dc8);}return _0x386908===''||!_0x386908[_0x1df4f4(0x283,_0x18a5f4._0x14a83e,0x2bf,0x205)]('..')&&!_0x268d1b[_0x1df4f4(_0x18a5f4._0x30c6ac,_0x18a5f4._0x1878e5,0x3bf,0x4ca)](_0x386908);}function resolveWorkspacePath(_0x25b38e,_0x5abf5b){return resolveAllowedPath(_0x25b38e,[],_0x5abf5b);}function resolveAllowedPath(_0x16fbf3,_0x4a52d5,_0x213ab6){const _0x50ebd9={_0x142ef0:0x2f,_0x57339d:0x56,_0x1d32ff:0x58,_0x5c33e5:0xe1,_0x398258:0x12e,_0xcbaacc:0x6d},_0x5e05e6={_0x155f12:0x1a9,_0x4af09f:0x132},_0x46270c={_0x3e5aa6:0x447},_0x24349e=_0x268d1b[_0x34371a(-_0x50ebd9._0x142ef0,-_0x50ebd9._0x57339d,_0x50ebd9._0x1d32ff,-0x28)](_0x16fbf3);function _0x146710(_0x12e40a,_0x2336fc,_0x33d69f,_0x244174){return _0x198698(_0x2336fc-_0x46270c._0x3e5aa6,_0x2336fc-0x17c,_0x33d69f,_0x244174-0x169);}function _0x34371a(_0x383fdf,_0x4f5c10,_0x6ee95b,_0x471c40){return _0x198698(_0x6ee95b-_0x5e05e6._0x155f12,_0x4f5c10-0x5d,_0x4f5c10,_0x471c40-_0x5e05e6._0x4af09f);}const _0x4f8bf5=_0x268d1b['resolve'](_0x24349e,_0x213ab6),_0xdd34c=[_0x24349e,..._0x4a52d5[_0x34371a(0x3a,0x167,_0x50ebd9._0x5c33e5,_0x50ebd9._0x398258)](_0x58cb15=>_0x268d1b[_0x146710(0x2f5,0x2f6,0x1c2,0x1d6)](_0x58cb15))];if(_0xdd34c['some'](_0x49534d=>isPathInside(_0x49534d,_0x4f8bf5)))return _0x4f8bf5;throw new ToolExecutionError(_0x34371a(0x36,0xb9,_0x50ebd9._0xcbaacc,0x60)+_0x213ab6,{'path':_0x213ab6,'rootDir':_0x24349e,'allowedDirs':_0xdd34c});}async function assertWorkspaceFile(_0x34ad2b){const _0x294bf3={_0x310a70:0x1aa,_0x425988:0xea},_0x5cc0fd={_0xb5cb67:0xb0};function _0x2b1f68(_0x2c2b59,_0x519a5f,_0x3cf7d9,_0x3437ab){return _0x198698(_0x3cf7d9-0x1fe,_0x519a5f-0xf5,_0x3437ab,_0x3437ab-_0x5cc0fd._0xb5cb67);}const _0x8d07a1=await stat(_0x34ad2b);if(!_0x8d07a1['isFile']())throw new ToolExecutionError(_0x2b1f68(0x70,_0x294bf3._0x310a70,0x101,_0x294bf3._0x425988)+_0x34ad2b,{'path':_0x34ad2b});}function isProbablyBinary(_0x539547){const _0x365e0e={_0xbd0b1:0x51e,_0x364aea:0x33c,_0x4d9a7e:0x3ff};function _0x40bad9(_0x5479e8,_0x421dc2,_0x1d53fd,_0x2a7ed9){return _0x2ecd0e(_0x2a7ed9- -0x1e7,_0x421dc2-0x182,_0x1d53fd-0x6b,_0x421dc2);}return _0x539547[_0x40bad9(_0x365e0e._0xbd0b1,_0x365e0e._0x364aea,0x53d,_0x365e0e._0x4d9a7e)](0x0);}var DEFAULT_DESCRIPTION=_0x198698(-0xd6,-0x8b,-0x19d,-0x139),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x3d5623){return _0x3d5623 instanceof Error;}function shellExists(_0x3d307e){const _0x4672b6={_0x5f537f:0x3fd},_0x2af245={_0x4537ee:0x39,_0x1fa3e4:0x184};function _0x245ac6(_0x22c1bb,_0x4dfb0a,_0x52f559,_0xffb0fa){return _0x2ecd0e(_0x4dfb0a- -0x2cd,_0x4dfb0a-_0x2af245._0x4537ee,_0x52f559-_0x2af245._0x1fa3e4,_0x22c1bb);}try{const _0x5aa52c=statSync(_0x3d307e);return _0x5aa52c[_0x245ac6(0x1dc,0x2ed,_0x4672b6._0x5f537f,0x226)]()&&(_0x5aa52c['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x1d9ac6){const _0x582444={_0x299444:0x311,_0x5cf51b:0x30a,_0x551be8:0xab,_0x1930d9:0x167,_0x171fe3:0x8b,_0x21f65c:0x72,_0x1a90fa:0x4c,_0x5a2b03:0x3cc,_0x3e6cfc:0x21b,_0x49917a:0x11c,_0x3e4a3f:0x49,_0x2697f2:0x12c,_0x44dcf2:0x2d6,_0x178a12:0x343,_0x17220a:0x2c9,_0x25cace:0x1ff,_0x5d980a:0x16d,_0x16d407:0x27,_0x28d8a9:0x139,_0x45aafe:0x165,_0x4b5091:0x1a3,_0x12c940:0x1e1,_0x530e19:0x19c},_0x3fa14b={_0x45ed5d:0x515,_0x1d201c:0x128},_0x48e8cb={_0xc5afec:0x2d9};if(_0x1d9ac6)return _0x1d9ac6;if(_0x5a5bee[_0x337d65(0x123,0x1db,0x1b9,0xce)]()===_0x53dbca(0x421,_0x582444._0x299444,0x28d,_0x582444._0x5cf51b))return process['env'][_0x337d65(_0x582444._0x551be8,0x13f,0x14b,_0x582444._0x1930d9)]||_0x337d65(_0x582444._0x171fe3,_0x582444._0x21f65c,-_0x582444._0x1a90fa,-0x1d);const _0xda2225=[_0x53dbca(_0x582444._0x5a2b03,0x303,_0x582444._0x3e6cfc,0x353),'/bin/sh',_0x53dbca(_0x582444._0x49917a,_0x582444._0x3e4a3f,0x7d,_0x582444._0x2697f2),_0x53dbca(_0x582444._0x44dcf2,_0x582444._0x178a12,0x1cb,_0x582444._0x17220a)];for(const _0x856298 of _0xda2225){if(shellExists(_0x856298))return _0x856298;}function _0x53dbca(_0x29498d,_0x154356,_0xba8497,_0x43a2d9){return _0x198698(_0x43a2d9-_0x48e8cb._0xc5afec,_0x154356-0x88,_0x154356,_0x43a2d9-0x65);}const _0x181378=process[_0x337d65(0x134,_0x582444._0x25cace,_0x582444._0x5d980a,0xd2)][_0x53dbca(_0x582444._0x16d407,0x11d,_0x582444._0x28d8a9,_0x582444._0x45aafe)];function _0x337d65(_0x24fe48,_0x19ad55,_0xdb8b2b,_0x18a79a){return _0x2ecd0e(_0x18a79a- -_0x3fa14b._0x45ed5d,_0x19ad55-0x5e,_0xdb8b2b-_0x3fa14b._0x1d201c,_0x24fe48);}if(_0x181378&&shellExists(_0x181378))return _0x181378;return _0x337d65(_0x582444._0x4b5091,_0x582444._0x12c940,0x201,_0x582444._0x530e19);}function buildShellArgs(_0x1e126e,_0x437a07){const _0x20f903={_0x1086ee:0x43e,_0x119f24:0x4a8,_0x276ccb:0x5da,_0x116cc0:0x541,_0x1cbc3a:0x423,_0x443dbd:0x3ee,_0x5c0bb5:0x325},_0x472320={_0x1d8a10:0x3d2},_0x551339={_0x2cad08:0x49,_0x2323af:0x130};function _0x2cd4e4(_0x3740f4,_0x213a8c,_0xf5add,_0x49c3d5){return _0x2ecd0e(_0x49c3d5- -0x127,_0x213a8c-_0x551339._0x2cad08,_0xf5add-_0x551339._0x2323af,_0x213a8c);}if(_0x5a5bee['platform']()===_0x2cd4e4(_0x20f903._0x1086ee,_0x20f903._0x119f24,_0x20f903._0x276ccb,_0x20f903._0x116cc0)){const _0x2c4012=/cmd(\.exe)?$/i[_0x1bb081(0x158,0x134,0x176,0x23)](_0x437a07);return _0x2c4012?['/d','/s','/c',_0x1e126e]:[_0x2cd4e4(0x531,0x3e6,0x51f,0x3f5),'-NoProfile',_0x2cd4e4(_0x20f903._0x1cbc3a,0x36d,_0x20f903._0x443dbd,_0x20f903._0x5c0bb5),_0x1e126e];}function _0x1bb081(_0x4fefaf,_0x18b619,_0x4e5a98,_0x7e8efa){return _0x2ecd0e(_0x18b619- -_0x472320._0x1d8a10,_0x18b619-0x16d,_0x4e5a98-0x11,_0x4fefaf);}return['-c',_0x1e126e];}function resolveCarriageReturns(_0x5e9106){const _0x46f2dc={_0x19fbe5:0x54c,_0x61b1f5:0x584,_0x43290d:0x3bb,_0x2b894f:0x2af},_0x1a8b7f={_0x5861b8:0x131,_0x1f2776:0xb0,_0x550a8b:0x611},_0x10aa20={_0x350ed4:0x159},_0x418435={_0x3a8902:0x5b2,_0x1be695:0x1b5},_0xab08cf={_0x42f545:0x340,_0x21918a:0x1ee};function _0x3f9986(_0x5dcab4,_0x220c86,_0x237d23,_0x4fdefb){return _0x2ecd0e(_0x5dcab4- -_0xab08cf._0x42f545,_0x220c86-_0xab08cf._0x21918a,_0x237d23-0x1ba,_0x4fdefb);}function _0x29acf6(_0x5f4a23,_0x47ee27,_0x6b71bd,_0x3c257d){return _0x198698(_0x5f4a23-_0x418435._0x3a8902,_0x47ee27-0x139,_0x47ee27,_0x3c257d-_0x418435._0x1be695);}return _0x5e9106[_0x29acf6(0x5cf,0x6c1,0x575,_0x46f2dc._0x19fbe5)]('\x0a')[_0x29acf6(0x4ea,_0x46f2dc._0x61b1f5,_0x46f2dc._0x43290d,0x46c)](_0x398bd3=>{const _0x4beae1={_0xbcf081:0x156,_0x4e4016:0x178};function _0x4079e1(_0x49c1c5,_0x3cd462,_0x5d7ff2,_0x5f11e2){return _0x29acf6(_0x5d7ff2-0x3a,_0x5f11e2,_0x5d7ff2-_0x4beae1._0xbcf081,_0x5f11e2-_0x4beae1._0x4e4016);}function _0x309e54(_0x36445b,_0x97742c,_0x4ba3ae,_0x193d25){return _0x3f9986(_0x193d25- -0x23b,_0x97742c-_0x10aa20._0x350ed4,_0x4ba3ae-0x53,_0x97742c);}if(!_0x398bd3[_0x309e54(0x1a5,_0x1a8b7f._0x5861b8,-_0x1a8b7f._0x1f2776,0x6b)]('\x0d'))return _0x398bd3;const _0x40292d=_0x398bd3['split']('\x0d');return _0x40292d[_0x40292d[_0x4079e1(_0x1a8b7f._0x550a8b,0x442,0x4eb,0x3b3)]-0x1]??'';})[_0x3f9986(0x1ec,_0x46f2dc._0x2b894f,0x2a3,0xcf)]('\x0a');}function resolveBackspaces(_0x4a2213){const _0x3ed2a4={_0x21a6f4:0xc8,_0x59476e:0x54,_0xebf771:0xc,_0x2bd284:0x15e,_0x2733ea:0x30,_0x2f77b3:0x89,_0x55a465:0xb5,_0x5a8ee5:0x6c,_0x5e0620:0x232},_0x77ae96={_0x564aeb:0x63a,_0x36c017:0x8d},_0x97c691=[];function _0x460cc1(_0xe0961d,_0x183abe,_0x747374,_0x43d39c){return _0x2ecd0e(_0x43d39c- -0x4ee,_0x183abe-0xb7,_0x747374-0x6,_0x183abe);}function _0x4f95ca(_0x3038f1,_0x590e20,_0xb0e894,_0x4dcd6f){return _0x2ecd0e(_0x4dcd6f- -_0x77ae96._0x564aeb,_0x590e20-0x1df,_0xb0e894-_0x77ae96._0x36c017,_0x590e20);}for(const _0x1eb428 of Array[_0x460cc1(-_0x3ed2a4._0x21a6f4,-_0x3ed2a4._0x59476e,-0x37,_0x3ed2a4._0xebf771)](_0x4a2213)){_0x1eb428==='\x08'?_0x97c691[_0x4f95ca(-_0x3ed2a4._0x2bd284,_0x3ed2a4._0x2733ea,0x12,-_0x3ed2a4._0x2f77b3)]():_0x97c691[_0x460cc1(0x173,0x162,_0x3ed2a4._0x55a465,_0x3ed2a4._0x5a8ee5)](_0x1eb428);}return _0x97c691[_0x4f95ca(-0x19c,-0x56,-_0x3ed2a4._0x5e0620,-0x10e)]('');}function stripAnsiAndControls(_0x3fb0d5){const _0x4bf444={_0xd98846:0x4c6,_0x158fe0:0x495,_0x13b8e3:0x4e0,_0x4e4cee:0x4fe,_0x78c4e2:0x4cb,_0x531792:0x3e0,_0x374fe0:0x46f,_0x249def:0x165,_0x106fec:0x2d,_0x2eeefa:0x579,_0x345a5f:0x5cd,_0x21c079:0x140,_0x38963b:0x261,_0x291148:0x1ea,_0x49e2db:0x19a,_0x1d4bf8:0x171,_0xe98939:0xff,_0x224e58:0x485,_0x14b136:0x52a,_0x45ae35:0x5da,_0x1acfdf:0x5d6,_0xa65ef7:0x3ee,_0x28c990:0x5a0},_0x9886b7={_0x552721:0x536,_0x5f24da:0xf5};_0x3fb0d5=resolveCarriageReturns(_0x3fb0d5),_0x3fb0d5=resolveBackspaces(_0x3fb0d5);function _0x34ef74(_0x447043,_0x5f4ec4,_0x5a51ba,_0xb61fba){return _0x198698(_0x5f4ec4-_0x9886b7._0x552721,_0x5f4ec4-0x78,_0x447043,_0xb61fba-_0x9886b7._0x5f24da);}_0x3fb0d5=stripVTControlCharacters(_0x3fb0d5);const _0x35febc='\x1b',_0x4fc9d7='\x07';_0x3fb0d5=_0x3fb0d5[_0x34ef74(0x584,_0x4bf444._0xd98846,_0x4bf444._0x158fe0,0x49e)](new RegExp(_0x34ef74(_0x4bf444._0x13b8e3,_0x4bf444._0x4e4cee,0x632,0x4e7)+_0x4fc9d7+_0x34ef74(_0x4bf444._0x78c4e2,0x43a,_0x4bf444._0x531792,_0x4bf444._0x374fe0)+_0x4fc9d7,'g'),''),_0x3fb0d5=_0x3fb0d5[_0x2bd84f(_0x4bf444._0x249def,0x1e,-_0x4bf444._0x106fec,0xff)](new RegExp(';[^\x5cn]*?'+_0x35febc+'\x5c\x5c','g'),''),_0x3fb0d5=_0x3fb0d5['replace'](new RegExp(_0x4fc9d7,'g'),''),_0x3fb0d5=_0x3fb0d5[_0x34ef74(0x42d,0x4c6,_0x4bf444._0x2eeefa,_0x4bf444._0x345a5f)](new RegExp(_0x35febc+_0x2bd84f(_0x4bf444._0x21c079,_0x4bf444._0x38963b,0xbd,_0x4bf444._0x291148)+_0x35febc+'\x5c\x5c','g'),'');function _0x2bd84f(_0x2786f9,_0xc76e7c,_0x4bcef6,_0x47c5c9){return _0x2ecd0e(_0x47c5c9- -0x4c8,_0xc76e7c-0x69,_0x4bcef6-0x8,_0x4bcef6);}return _0x3fb0d5=_0x3fb0d5[_0x2bd84f(_0x4bf444._0x49e2db,0x145,_0x4bf444._0x1d4bf8,_0x4bf444._0xe98939)](new RegExp(_0x35febc+_0x34ef74(_0x4bf444._0x224e58,_0x4bf444._0x14b136,_0x4bf444._0x45ae35,0x4c8),'g'),''),_0x3fb0d5=_0x3fb0d5[_0x34ef74(_0x4bf444._0x1acfdf,0x4c6,_0x4bf444._0xa65ef7,0x546)](/[\u0080-\u009F]/g,''),_0x3fb0d5=_0x3fb0d5['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x3fb0d5=_0x3fb0d5[_0x34ef74(0x5bd,0x4c6,_0x4bf444._0x28c990,0x3e8)](/[\u23CE\u2424]/g,''),_0x3fb0d5;}function resolveWorkingDirectory(_0x49678e,_0x2d4570,_0x4b4db4){const _0x174613={_0x5928d2:0x7e,_0x133330:0x48,_0x18af6f:0x93,_0x36ac60:0xca,_0x398c60:0x12a,_0x54e8eb:0x215},_0x382081={_0x26761e:0x90,_0x2d0f4b:0x179},_0x5bed10={_0xdf426a:0xe1},_0x459dfd=resolveAllowedPath(_0x2d4570,_0x4b4db4,_0x49678e??'.');function _0x45b52e(_0x40c4da,_0x738f7b,_0x394f52,_0x3110e4){return _0x2ecd0e(_0x3110e4- -0x576,_0x738f7b-0xcb,_0x394f52-_0x5bed10._0xdf426a,_0x40c4da);}function _0x45f11a(_0x56879e,_0x516f25,_0x256e5d,_0x3342bd){return _0x198698(_0x516f25-0x2a3,_0x516f25-_0x382081._0x26761e,_0x3342bd,_0x3342bd-_0x382081._0x2d0f4b);}try{const _0x89450d=statSync(_0x459dfd);if(!_0x89450d[_0x45b52e(_0x174613._0x5928d2,_0x174613._0x133330,0xba,0x13a)]())throw new ToolExecutionError(_0x45b52e(0x9,_0x174613._0x18af6f,0x17e,_0x174613._0x36ac60)+_0x459dfd,{'cwd':_0x459dfd});return _0x459dfd;}catch(_0x53ae28){if(_0x53ae28 instanceof ToolExecutionError)throw _0x53ae28;throw new ToolExecutionError(_0x45f11a(0x1e4,_0x174613._0x398c60,_0x174613._0x54e8eb,-0x2)+_0x459dfd,{'cwd':_0x459dfd});}}function killProcessGroup(_0x193895,_0x4aead6,_0xf41ee7=_0x198698(-0x157,-0x16a,-0x193,-0x282)){const _0x433eee={_0x482e52:0x1e6,_0xb080ba:0xc2,_0x4b2e95:0x35,_0x246b40:0x157,_0x3beb6:0x4fd,_0x19c746:0x341,_0xaac56e:0x457,_0x200740:0x2a5,_0x4c726b:0x1d2,_0x2531ff:0x21b,_0x283211:0x3b9,_0x5921b8:0x44a,_0x9ac966:0x3f5,_0x12d648:0x453,_0x2930cd:0x337,_0xa307f3:0x453,_0x2ff1e0:0x2e5,_0xb7037e:0x433},_0x4d72e1={_0x2a55a4:0x9c},_0x547a5d={_0x552bca:0x139,_0x2be36f:0x1e8};if(!_0x193895[_0x476861(0x347,_0x433eee._0x482e52,0x40d,0x323)])return;function _0x476861(_0x58367d,_0x79535a,_0x35a31f,_0x2c131c){return _0x2ecd0e(_0x2c131c- -_0x547a5d._0x552bca,_0x79535a-_0x547a5d._0x2be36f,_0x35a31f-0x129,_0x58367d);}if(_0x4aead6)try{_0x15a149(_0x254957(-_0x433eee._0xb080ba,-_0x433eee._0x4b2e95,-0x51,-_0x433eee._0x246b40),[_0x476861(0x552,_0x433eee._0x3beb6,_0x433eee._0x19c746,_0x433eee._0xaac56e),_0x193895[_0x254957(-_0x433eee._0x200740,-_0x433eee._0x4c726b,-0x2a0,-_0x433eee._0x2531ff)]['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x193895[_0x476861(_0x433eee._0x283211,_0x433eee._0x5921b8,_0x433eee._0x9ac966,_0x433eee._0x12d648)](_0xf41ee7);return;}function _0x254957(_0x3efdf2,_0x4a5af7,_0x11792a,_0x2655cb){return _0x198698(_0x2655cb- -0x40,_0x4a5af7-0x17d,_0x3efdf2,_0x2655cb-_0x4d72e1._0x2a55a4);}try{process[_0x476861(0x4ff,0x3c6,_0x433eee._0x2930cd,_0x433eee._0xa307f3)](-_0x193895[_0x476861(0x1f0,_0x433eee._0x2ff1e0,0x3d5,0x323)],_0xf41ee7);}catch{_0x193895[_0x476861(_0x433eee._0xb7037e,_0x433eee._0x19c746,0x36e,0x453)](_0xf41ee7);}}function appendChunk(_0x2f8854,_0x199378,_0x209dde,_0x1aa860,_0x6fe1db){const _0x11efc3={_0x5b3037:0x348,_0xd218d2:0x4b3,_0x3d4b73:0x3c4,_0x2e6d44:0x536,_0x119a72:0x462},_0x5e7c1b={_0x387688:0x155,_0x4c3558:0x7b},_0x2113b5={_0x5363ef:0x676,_0x1a5d61:0x1cb},_0x5d8089=_0x1aa860?stripAnsiAndControls(_0x209dde):_0x209dde;if(_0x5d8089[_0xf07a9e(0x3e1,_0x11efc3._0x5b3037,_0x11efc3._0xd218d2,_0x11efc3._0x3d4b73)]===0x0)return;function _0x2a308e(_0x26696e,_0x103799,_0x37fa4d,_0x5ba028){return _0x198698(_0x37fa4d-_0x2113b5._0x5363ef,_0x103799-0xe3,_0x103799,_0x5ba028-_0x2113b5._0x1a5d61);}_0x2f8854['push'](_0x5d8089);function _0xf07a9e(_0x32fee9,_0x10db0a,_0x21730d,_0x5cf297){return _0x2ecd0e(_0x32fee9- -_0x5e7c1b._0x387688,_0x10db0a-_0x5e7c1b._0x4c3558,_0x21730d-0x194,_0x21730d);}_0x199378[_0xf07a9e(0x405,0x331,_0x11efc3._0x2e6d44,_0x11efc3._0x119a72)](_0x5d8089),_0x6fe1db();}function createBashTool(_0xc48f37={}){const _0x2c64df={_0x170d3c:0x6dd,_0x5b008:0x5cc,_0x4cf78e:0x6d7,_0x2470ea:0x8e,_0x3329ad:0x143,_0x5a1c69:0x55,_0x4cff6e:0x14,_0x4e10f9:0x4df,_0x27fc7c:0x5e6,_0x18229a:0x4d8,_0x3f33b8:0x5ef,_0x1efb61:0x26c,_0x101912:0x163,_0x547b4b:0x21d,_0x39786e:0x19f,_0x23a4ad:0x109,_0x56d168:0x165,_0xdd2633:0xca,_0x2fd257:0x49b,_0x5284a4:0x5c1,_0x445a32:0x196,_0x1b8e97:0xec,_0x52badb:0x1a9,_0x4b3b66:0x2,_0xd7aae2:0x60f,_0x37a5ff:0x661},_0x5605ae={_0x297295:0x3b0,_0x1b688b:0x43f,_0x450f70:0x3e3,_0x4c3700:0x4e1,_0x3d4046:0x512,_0x19b7bd:0x44f,_0x5d4bb3:0x28d,_0x25f182:0x354,_0x2a4b8f:0x22c,_0x4e2d1d:0x11f,_0x38c8fa:0xa4,_0x4b0ce6:0x22e,_0x5abfe1:0xce,_0x44d1e6:0x4fa,_0x4c5fde:0x343,_0x66411a:0x385,_0x4e3a49:0x292,_0x216f9c:0x27f,_0x721786:0x21f,_0x54930c:0x199,_0x337cab:0x1fe,_0x3d4457:0x45e,_0x32ad16:0x435,_0x2c18e0:0x230,_0x3c0c8e:0x2ab,_0x512d87:0x2dc,_0x5c7955:0x358,_0xa63c60:0x311,_0x27bd08:0x231,_0x110057:0x272,_0x52cef2:0x34c,_0x40c7ec:0x276,_0x27b5b8:0x3a4,_0x5041ce:0x299,_0x2f6ed0:0xd3,_0x9eec95:0x208,_0x1aa2b2:0x8f,_0x27e002:0x3f4,_0x2e83f5:0x2e5,_0x59f014:0x34f,_0x14ccf7:0x3f2,_0x38a0fa:0x405,_0x3573cf:0x3a2,_0x859187:0x133,_0x1f3b0a:0x264,_0x4493fd:0x3f5,_0x350901:0x480,_0x11ceef:0x3f9,_0x46e158:0x6c,_0x34b330:0x473,_0x51f254:0x5b1,_0xb40d0:0x2f9,_0x1b2be3:0x3f2,_0x486088:0x473,_0x237c5c:0x413,_0x366ad2:0x46e,_0x1a0965:0x4df,_0x5a4631:0x436,_0x54f8c1:0x3f2,_0x4ac63f:0x39e,_0x68b75a:0x322,_0x148217:0x1fd,_0x3db346:0x377,_0x88d33e:0x4c5,_0x3a50db:0x2ff,_0x4d456c:0x2ad,_0x1cfad0:0x2b4,_0x3a404d:0x182,_0x237942:0x15e,_0x3a3496:0x1c0,_0x2385da:0x281,_0x510800:0x225,_0x44cc48:0x209,_0x445707:0x34e,_0xe07f23:0x333,_0x370240:0x469,_0x4f4ffb:0x399,_0x5c7613:0x33a,_0x42f2dc:0x3,_0x2429b2:0x410,_0x55bcb4:0x469,_0x55e0a8:0x43b,_0xe6e367:0x3fa,_0x4d3375:0x39c,_0x397307:0x295,_0x54db57:0x108,_0x109682:0x15a,_0x37b446:0x4c6,_0x4d169b:0x507,_0x3bcfbf:0x3f2,_0x5d9802:0x2cc,_0x586889:0x320,_0x5eb7a7:0x1a0,_0x230d41:0x3ad,_0x33b3a3:0x4c6},_0x5dd81c={_0x3a1f30:0x10,_0x2a3507:0xf0,_0x59f123:0x404,_0x211a33:0x350,_0x37d169:0x676},_0x230e24={_0x3e4cad:0x8,_0x276815:0x4b,_0x3323a6:0x241},_0x48e594={_0xb273a0:0x161,_0x1a1227:0x65},_0x3d42cb={_0x22f5c7:0x410,_0x21297d:0x569},_0x570bca={_0x15734d:0x44},_0x95eda={_0x5a5116:0x1e1},_0x1687e3=_0x298881['resolve'](_0xc48f37[_0x35c158(_0x2c64df._0x170d3c,0x624,_0x2c64df._0x5b008,_0x2c64df._0x4cf78e)]??process['cwd']()),_0x27646b=(_0xc48f37[_0x2e8501(_0x2c64df._0x2470ea,_0x2c64df._0x3329ad,_0x2c64df._0x5a1c69,0x83)]??[])[_0x2e8501(-_0x2c64df._0x4cff6e,0x119,0x2d,0x16)](_0x49e2c2=>_0x298881[_0x35c158(0x6b8,0x576,0x5df,0x59e)](_0x49e2c2)),_0x3dc749=_0xc48f37[_0x35c158(_0x2c64df._0x4e10f9,_0x2c64df._0x27fc7c,_0x2c64df._0x18229a,_0x2c64df._0x3f33b8)]??DEFAULT_TIMEOUT_MS;function _0x2e8501(_0x27e35b,_0x1825d6,_0x3e172a,_0x556a54){return _0x198698(_0x1825d6-_0x95eda._0x5a5116,_0x1825d6-0x19f,_0x556a54,_0x556a54-0xc8);}const _0x50f5f9=_0xc48f37[_0x2e8501(_0x2c64df._0x1efb61,_0x2c64df._0x101912,0x1e4,0x228)]??!![],_0x2f81bb=_0xc48f37[_0x2e8501(0x12a,0x116,0x1,_0x2c64df._0x547b4b)]??_0x2e8501(0x1c0,_0x2c64df._0x39786e,0x1af,_0x2c64df._0x23a4ad);function _0x35c158(_0x2eabdb,_0x59ac28,_0x3e68a6,_0x3acee8){return _0x198698(_0x3acee8-0x6ef,_0x59ac28-0xd9,_0x2eabdb,_0x3acee8-_0x570bca._0x15734d);}return defineTool({'name':_0x2f81bb,'description':_0xc48f37[_0x2e8501(0x13e,_0x2c64df._0x56d168,0x1b7,_0x2c64df._0xdd2633)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x35c158(_0x2c64df._0x2fd257,_0x2c64df._0x5284a4,0x50c,0x572),'properties':{'command':{'type':'string'},'cwd':{'type':_0x2e8501(0x164,0xd4,_0x2c64df._0x445a32,0x112)},'timeoutMs':{'type':_0x2e8501(-0x41,_0x2c64df._0x1b8e97,_0x2c64df._0x52badb,-_0x2c64df._0x4b3b66)},'ignoreOutput':{'type':_0x35c158(0x607,0x5b0,0x5f4,_0x2c64df._0xd7aae2)}},'required':[_0x35c158(0x784,0x64e,0x709,_0x2c64df._0x37a5ff)]},async *'execute'(_0x4f7576,_0x2cad67){const _0x151026={_0x5fd222:0xc5,_0x109fbd:0xf},_0x2c9354={_0x33a1d9:0x147,_0x587916:0x5c},_0x744dc7={_0x2dae54:0x1f8,_0x819f78:0x29c,_0x5e48d0:0x373,_0x3e64b7:0x30b},_0x75808b={_0x1d88ff:0x120},_0x1588f2={_0x59cdbc:0x525,_0x2e70a1:0x3eb,_0x30f767:0x47c},_0x282575={_0x1fd08a:0x45f,_0x3e3d97:0x57b},_0x50536e=_0x4f7576['timeoutMs']??_0x3dc749;if(!Number[_0xc36a52(_0x5605ae._0x297295,0x405,_0x5605ae._0x1b688b,_0x5605ae._0x450f70)](_0x50536e)||_0x50536e<0x1)throw new ToolExecutionError(_0xc36a52(0x474,_0x5605ae._0x4c3700,_0x5605ae._0x3d4046,_0x5605ae._0x19b7bd),{'command':_0x4f7576['command']});throwIfAborted(_0x2cad67['signal']);const _0x3250b3=resolveWorkingDirectory(_0x4f7576[_0xc36a52(_0x5605ae._0x5d4bb3,_0x5605ae._0x25f182,0x22f,0x480)],_0x1687e3,_0x27646b),_0x210f02=_0x4f7576[_0x173d09(0x191,_0x5605ae._0x2a4b8f,_0x5605ae._0x4e2d1d,0x158)]??![],_0x2f2dc4=resolveDefaultShell(_0xc48f37['shellPath']),_0x5d9199=buildShellArgs(_0x4f7576[_0x173d09(_0x5605ae._0x38c8fa,_0x5605ae._0x4b0ce6,_0x5605ae._0x5abfe1,0x1c0)],_0x2f2dc4),_0x505260=_0x5a5bee[_0xc36a52(_0x5605ae._0x44d1e6,0x45a,0x513,_0x5605ae._0x4c5fde)]()===_0x173d09(_0x5605ae._0x66411a,_0x5605ae._0x4e3a49,0x232,_0x5605ae._0x216f9c);let _0x460eda;try{_0x460eda=_0x15a149(_0x2f2dc4,_0x5d9199,{'cwd':_0x3250b3,'env':{...process[_0x173d09(_0x5605ae._0x721786,0x233,_0x5605ae._0x54930c,_0x5605ae._0x337cab)],..._0xc48f37[_0xc36a52(0x42c,_0x5605ae._0x3d4457,_0x5605ae._0x32ad16,0x345)]??{}},'stdio':_0x210f02?['ignore',_0xc36a52(_0x5605ae._0x2c18e0,0x358,0x2a3,_0x5605ae._0x3c0c8e),'ignore']:[_0xc36a52(_0x5605ae._0x512d87,_0x5605ae._0x5c7955,_0x5605ae._0xa63c60,0x364),_0x173d09(_0x5605ae._0x27bd08,_0x5605ae._0x110057,_0x5605ae._0x52cef2,0x266),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x505260});}catch(_0x341b24){if(isErrnoException(_0x341b24)&&_0x341b24['code']===_0x173d09(_0x5605ae._0x40c7ec,0x2e7,_0x5605ae._0x27b5b8,_0x5605ae._0x5041ce))throw new ToolExecutionError(_0x173d09(_0x5605ae._0x2f6ed0,_0x5605ae._0x9eec95,_0x5605ae._0x1aa2b2,0x15a)+_0x2f2dc4,{'command':_0x4f7576[_0xc36a52(0x39f,0x420,_0x5605ae._0x27e002,_0x5605ae._0x2e83f5)],'cwd':_0x3250b3,'shellPath':_0x2f2dc4});throw new ToolExecutionError(_0x341b24 instanceof Error?_0x341b24[_0xc36a52(_0x5605ae._0x59f014,_0x5605ae._0x14ccf7,_0x5605ae._0x38a0fa,_0x5605ae._0x3573cf)]:String(_0x341b24),{'command':_0x4f7576[_0x173d09(_0x5605ae._0x859187,_0x5605ae._0x1f3b0a,0x1d2,0x1c0)],'cwd':_0x3250b3,'shellPath':_0x2f2dc4});}const _0x558f49=[],_0x4e963c=[],_0x4fcb8a=new StringDecoder(_0xc36a52(_0x5605ae._0x4493fd,0x3f9,0x472,_0x5605ae._0x350901)),_0x12d133=new StringDecoder(_0xc36a52(0x2bf,_0x5605ae._0x11ceef,0x41b,0x371));let _0x6bad13,_0x5670ee=![],_0x5b82cf;const _0x3c9f4e=()=>{if(!_0x6bad13)return;const _0x48b793=_0x6bad13;_0x6bad13=void 0x0,_0x48b793();},_0x2a44d9=async()=>{const _0x57afbb={_0x1ade78:0x5c,_0x21db21:0xa1,_0xa2d54:0x3a9};function _0x5932de(_0x5daee6,_0x2ba64a,_0x25ddb7,_0x6c9fb1){return _0x173d09(_0x5daee6-_0x57afbb._0x1ade78,_0x5daee6,_0x25ddb7-_0x57afbb._0x21db21,_0x25ddb7-_0x57afbb._0xa2d54);}if(_0x4e963c[_0x5932de(_0x3d42cb._0x22f5c7,0x463,0x4f6,_0x3d42cb._0x21297d)]>0x0||_0x5670ee)return;await new Promise(_0x48a74c=>{_0x6bad13=_0x48a74c;});},_0x2379bd=_0x3e294a=>{const _0x3697c5={_0x172a2b:0x1b2,_0x59b245:0x150,_0x2d9baf:0x4};function _0x255782(_0x2364c5,_0x302edd,_0x5cafcc,_0xeee106){return _0xc36a52(_0x2364c5-_0x3697c5._0x172a2b,_0x2364c5-_0x3697c5._0x59b245,_0xeee106,_0xeee106-_0x3697c5._0x2d9baf);}appendChunk(_0x558f49,_0x4e963c,_0x4fcb8a[_0x255782(0x551,0x5bd,_0x282575._0x1fd08a,_0x282575._0x3e3d97)](_0x3e294a),_0x50f5f9,_0x3c9f4e);};function _0x173d09(_0x36b162,_0x22ab37,_0x447c93,_0x3e4aec){return _0x2e8501(_0x36b162-_0x48e594._0xb273a0,_0x3e4aec-0x6d,_0x447c93-_0x48e594._0x1a1227,_0x22ab37);}const _0x3ad9c0=_0x4cdd70=>{const _0x3aceaf={_0x2ddbbc:0xb3};function _0x1c5968(_0x30e941,_0x12fb3e,_0x6a5e96,_0x3ccfe3){return _0x173d09(_0x30e941-_0x3aceaf._0x2ddbbc,_0x12fb3e,_0x6a5e96-0x13f,_0x6a5e96-0x24a);}appendChunk(_0x558f49,_0x4e963c,_0x12d133[_0x1c5968(0x452,_0x1588f2._0x59cdbc,_0x1588f2._0x2e70a1,_0x1588f2._0x30f767)](_0x4cdd70),_0x50f5f9,_0x3c9f4e);};function _0xc36a52(_0x556f9d,_0x56a77d,_0x1682e7,_0x150f15){return _0x35c158(_0x1682e7,_0x56a77d-_0x230e24._0x3e4cad,_0x1682e7-_0x230e24._0x276815,_0x56a77d- -_0x230e24._0x3323a6);}_0x460eda[_0x173d09(0x68,0x2e,-0x6f,_0x5605ae._0x46e158)]?.['on'](_0xc36a52(0x4c3,_0x5605ae._0x34b330,_0x5605ae._0x51f254,0x3b4),_0x2379bd),_0x460eda[_0xc36a52(0x259,_0x5605ae._0xb40d0,0x277,0x370)]?.['on'](_0xc36a52(_0x5605ae._0x1b2be3,_0x5605ae._0x486088,0x38c,0x389),_0x3ad9c0);let _0x10a688=![],_0x3d7884;const _0x124bd6=addAbortListener(_0x2cad67[_0xc36a52(_0x5605ae._0x237c5c,_0x5605ae._0x366ad2,0x511,_0x5605ae._0x1a0965)],()=>{const _0x2d1dd9={_0x229e09:0x91,_0x4c963e:0x4b};_0x5b82cf=toAbortError(_0x2cad67[_0x1b6d93(0x259,0x188,0x202,_0x744dc7._0x2dae54)][_0x1b6d93(_0x744dc7._0x819f78,0x295,_0x744dc7._0x5e48d0,_0x744dc7._0x3e64b7)]);function _0x1b6d93(_0x2a2c79,_0xba56cb,_0x31f99f,_0x24fb07){return _0x173d09(_0x2a2c79-0x9b,_0x31f99f,_0x31f99f-_0x2d1dd9._0x229e09,_0x2a2c79-_0x2d1dd9._0x4c963e);}function _0x8b3d76(_0x25a634,_0x476e31,_0x835349,_0x475f48){return _0xc36a52(_0x25a634-_0x75808b._0x1d88ff,_0x476e31- -0x2e5,_0x835349,_0x475f48-0x50);}_0x5670ee=!![],_0x3c9f4e();try{killProcessGroup(_0x460eda,_0x505260);}catch{}});try{const _0x5dc1cf=new Promise((_0x42e2ab,_0xf70f67)=>{const _0x23cd4b={_0x4854e3:0x96,_0x5e6278:0x1a2},_0x5cfcba={_0x4f4951:0x21,_0xe43a83:0xef,_0x4f4d79:0x81,_0x5abb77:0x23,_0x458e23:0x8c},_0x34328a={_0x4aba70:0x15a,_0x141806:0x188,_0x525843:0x22,_0x132cb7:0x13b,_0x190599:0x1d6},_0x502549={_0x4fa88c:0x12d},_0x43edc9=()=>{_0x3d7884&&(clearTimeout(_0x3d7884),_0x3d7884=void 0x0);function _0x30142b(_0x4993e0,_0x5d727d,_0x448b2b,_0x2d845c){return _0x163c(_0x4993e0- -0x20a,_0x448b2b);}function _0x19c17a(_0x192854,_0x156313,_0x584a07,_0x5dddbb){return _0x163c(_0x584a07- -_0x502549._0x4fa88c,_0x192854);}_0x460eda[_0x19c17a(0x130,0xcf,_0x34328a._0x4aba70,0x198)](_0x30142b(-0x63,-_0x34328a._0x141806,_0x34328a._0x525843,-0x153),_0x4f89ea),_0x460eda['off'](_0x19c17a(_0x34328a._0x132cb7,0x370,0x267,_0x34328a._0x190599),_0x12ace3);},_0x4f89ea=_0x4acc2b=>{_0x5670ee=!![],_0x3c9f4e(),_0x43edc9(),_0xf70f67(_0x5b82cf??_0x4acc2b);};function _0x11a9e0(_0x4fab98,_0x6d33ba,_0x13c606,_0x206521){return _0xc36a52(_0x4fab98-_0x2c9354._0x33a1d9,_0x206521-0x3e,_0x13c606,_0x206521-_0x2c9354._0x587916);}const _0x12ace3=(_0x183534,_0x3579c7)=>{function _0x3cc034(_0x2f9513,_0x29df8c,_0x591d88,_0x44deed){return _0x163c(_0x2f9513- -0x1bb,_0x29df8c);}function _0x25ede6(_0xa9cb9c,_0x4b9c05,_0xf2d2d1,_0x32b09d){return _0x163c(_0x4b9c05-0x2f3,_0xa9cb9c);}_0x10a688=!![],appendChunk(_0x558f49,_0x4e963c,_0x4fcb8a[_0x3cc034(-0x75,-_0x151026._0x5fd222,_0x151026._0x109fbd,-0x39)](),_0x50f5f9,_0x3c9f4e),appendChunk(_0x558f49,_0x4e963c,_0x12d133[_0x25ede6(0x46c,0x439,0x46e,0x31a)](),_0x50f5f9,_0x3c9f4e),_0x5670ee=!![],_0x3c9f4e(),_0x43edc9();if(_0x5b82cf){_0xf70f67(_0x5b82cf);return;}_0x42e2ab({'code':_0x183534,'signal':_0x3579c7});};_0x3d7884=setTimeout(()=>{const _0x59e56a={_0x35711e:0xbf};function _0x4b67c9(_0x41d9d5,_0x7fa029,_0x4130c5,_0x51040f){return _0x163c(_0x4130c5- -_0x59e56a._0x35711e,_0x7fa029);}_0x5670ee=!![],_0x3c9f4e(),_0x43edc9();function _0x36d000(_0x2d0522,_0x35975b,_0x1fa8a4,_0x5b6e18){return _0x163c(_0x5b6e18- -0x314,_0x1fa8a4);}try{killProcessGroup(_0x460eda,_0x505260);}catch{}_0xf70f67(new ToolExecutionError(_0x4b67c9(_0x5cfcba._0x4f4951,0x197,0xfc,0xac)+_0x50536e+_0x36d000(_0x5cfcba._0xe43a83,-_0x5cfcba._0x4f4d79,-0x40,0x1c),{'command':_0x4f7576[_0x36d000(-0x18c,-_0x5cfcba._0x5abb77,0x9,-_0x5cfcba._0x458e23)],'cwd':_0x3250b3,'shellPath':_0x2f2dc4,'timeoutMs':_0x50536e,'timedOut':!![]}));},_0x50536e);function _0x2677b1(_0x28798c,_0x312940,_0x34e1f1,_0x2ea441){return _0x173d09(_0x28798c-0x197,_0x312940,_0x34e1f1-_0x23cd4b._0x4854e3,_0x2ea441- -_0x23cd4b._0x5e6278);}_0x460eda[_0x2677b1(-0x8,-0x207,_0x5dd81c._0x3a1f30,-_0x5dd81c._0x2a3507)]('error',_0x4f89ea),_0x460eda[_0x11a9e0(_0x5dd81c._0x59f123,0x39b,0x3e4,_0x5dd81c._0x211a33)](_0x11a9e0(_0x5dd81c._0x37d169,0x4c4,0x64a,0x56a),_0x12ace3);});while(_0x4e963c['length']>0x0||!_0x5670ee){if(_0x4e963c[_0xc36a52(0x4a6,0x3ad,_0x5605ae._0x5a4631,0x364)]===0x0){await _0x2a44d9();continue;}const _0x276304=_0x4e963c[_0xc36a52(_0x5605ae._0x54f8c1,_0x5605ae._0x4ac63f,0x4bd,0x3f5)]();_0x276304!==void 0x0&&(yield _0x276304);}const _0x2f9c45=await _0x5dc1cf,_0x1280c1=_0x210f02?_0xc36a52(0x23b,0x2b2,_0x5605ae._0x68b75a,_0x5605ae._0x148217)+(_0x2f9c45[_0xc36a52(_0x5605ae._0x3db346,0x469,0x51f,_0x5605ae._0x88d33e)]??0x0):_0x558f49[_0xc36a52(0x344,0x3a3,_0x5605ae._0x3a50db,_0x5605ae._0x4d456c)](''),_0x11025b={'command':_0x4f7576[_0x173d09(_0x5605ae._0x1cfad0,_0x5605ae._0x3a404d,_0x5605ae._0x237942,_0x5605ae._0x3a3496)],'cwd':_0x3250b3,'exitCode':_0x2f9c45['code']??0x0,'signal':_0x2f9c45['signal'],'ignoreOutput':_0x210f02,'shellPath':_0x2f2dc4,'timeoutMs':_0x50536e};if(_0x2f9c45[_0x173d09(0x163,_0x5605ae._0x2385da,_0x5605ae._0x510800,_0x5605ae._0x44cc48)]!==0x0)throw new ToolExecutionError(_0x1280c1||_0x173d09(_0x5605ae._0x445707,0x1f1,0x1b9,0x275)+(_0x2f9c45[_0xc36a52(_0x5605ae._0xe07f23,_0x5605ae._0x370240,0x3c4,_0x5605ae._0x4f4ffb)]??0x0),_0x11025b);return createToolOutput(_0x1280c1,_0x11025b);}catch(_0xc2d996){while(_0x4e963c[_0xc36a52(_0x5605ae._0x5c7613,0x3ad,0x388,0x4d4)]>0x0){const _0x4c0f7f=_0x4e963c[_0x173d09(0x199,0xda,_0x5605ae._0x42f2dc,0x13e)]();_0x4c0f7f!==void 0x0&&(yield _0x4c0f7f);}if(_0xc2d996 instanceof ToolExecutionError)throw _0xc2d996;if(_0x5b82cf)throw _0x5b82cf;if(isErrnoException(_0xc2d996)&&_0xc2d996[_0xc36a52(_0x5605ae._0x2429b2,_0x5605ae._0x55bcb4,_0x5605ae._0x55e0a8,_0x5605ae._0xe6e367)]===_0x173d09(_0x5605ae._0x4d3375,0x2cb,0x1a6,_0x5605ae._0x5041ce))throw new ToolExecutionError(_0x173d09(_0x5605ae._0x397307,_0x5605ae._0x54db57,0x260,_0x5605ae._0x109682)+_0x2f2dc4,{'command':_0x4f7576[_0xc36a52(0x39b,0x420,0x32f,_0x5605ae._0x37b446)],'cwd':_0x3250b3,'shellPath':_0x2f2dc4});throw new ToolExecutionError(_0xc2d996 instanceof Error?_0xc2d996[_0xc36a52(_0x5605ae._0x4d169b,_0x5605ae._0x3bcfbf,0x2e4,_0x5605ae._0x34b330)]:String(_0xc2d996),{'command':_0x4f7576['command'],'cwd':_0x3250b3,'shellPath':_0x2f2dc4});}finally{_0x3d7884&&clearTimeout(_0x3d7884);_0x124bd6(),_0x460eda[_0xc36a52(0x3c9,_0x5605ae._0x5d9802,_0x5605ae._0x586889,_0x5605ae._0x5eb7a7)]?.[_0xc36a52(_0x5605ae._0x230d41,0x41f,0x411,_0x5605ae._0x33b3a3)]('data',_0x2379bd),_0x460eda[_0xc36a52(0x2e0,0x2f9,0x3a5,0x20f)]?.['off']('data',_0x3ad9c0);if(!_0x10a688&&_0x460eda['pid']&&!_0x460eda['killed'])try{killProcessGroup(_0x460eda,_0x505260);}catch{}}}});}function createShellExecTool(_0x471ef6={}){return createBashTool(_0x471ef6);}import{readdir,readFile as _0x1d7798}from'fs/promises';import{extname,join as _0x5d1d07}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x2e4194,join,relative as _0x1abdf7,resolve as _0x214333}from'path';import{readdir as _0x3bddcd,readFile as _0x5a337c}from'fs/promises';import{join as _0x232fd1,relative as _0x407e37,sep}from'path';import{delimiter}from'path';import{mkdir as _0x23e7d2,rm,stat as _0x35f1a7,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x27eb5f}from'path';function _0x198698(_0x1a3db0,_0x25bf27,_0x29a830,_0x4074a5){const _0x32932e={_0x3d2f3b:0x316};return _0x163c(_0x1a3db0- -_0x32932e._0x3d2f3b,_0x29a830);}import{unwatchFile,watchFile}from'fs';import{readFile as _0x3f35dc,rename,writeFile as _0x4dcc07}from'fs/promises';import{homedir}from'os';import{dirname as _0x4f50c1,isAbsolute as _0x4aa80f,join as _0x103ee1,resolve as _0x4fb36b}from'path';import{parse as _0x42aeb4,stringify as _0x10dd91}from'yaml';import{z}from'zod';import{cp,mkdir as _0x3a0246,readFile as _0x25a9cf,rm as _0x40a1ce,writeFile as _0xfcdb77}from'fs/promises';import{homedir as _0x51f64a}from'os';import{join as _0x238ca2}from'path';import{parse as _0x23ed64,stringify as _0x3cdea8}from'yaml';import{readdir as _0x1e2a68,readFile as _0x11cb17}from'fs/promises';import{join as _0x31e4a5}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x550822){const _0x1bf0c5={_0x5d1f54:0x459,_0x3ead73:0x344,_0x4795e1:0x4d0,_0xad9984:0x324,_0x1393ab:0x519,_0x67d923:0x4d0,_0x22c83c:0x5b9,_0x4d30e8:0x510,_0x127107:0x631,_0x57c8eb:0x595,_0x1f9be7:0x534},_0x2f8375={_0x1a0093:0xdd,_0x1dd82f:0x91,_0x4e1080:0x197},_0x231cf6={_0x4a9868:0x26,_0xbd16b4:0x1af,_0x5db004:0x188},_0x4b6d88=[];function _0x19ccac(_0x59e899,_0x8a2556,_0x1e723e,_0x166b74){return _0x2ecd0e(_0x1e723e- -_0x231cf6._0x4a9868,_0x8a2556-_0x231cf6._0xbd16b4,_0x1e723e-_0x231cf6._0x5db004,_0x59e899);}function _0x83242e(_0x55766c,_0x26c21d,_0x4576e2,_0xcdde07){return _0x2ecd0e(_0x4576e2- -_0x2f8375._0x1a0093,_0x26c21d-_0x2f8375._0x1dd82f,_0x4576e2-_0x2f8375._0x4e1080,_0x55766c);}let _0x3856ce='',_0x32d05b=0x0;while(_0x32d05b<_0x550822[_0x83242e(0x37f,0x4f0,_0x1bf0c5._0x5d1f54,0x50a)]){const _0x35363f=_0x550822[_0x32d05b];if(_0x35363f==='\x5c'&&_0x32d05b+0x1<_0x550822[_0x83242e(0x493,_0x1bf0c5._0x3ead73,_0x1bf0c5._0x5d1f54,_0x1bf0c5._0x4795e1)])_0x3856ce+=_0x550822[_0x32d05b+0x1],_0x32d05b+=0x2;else{if(_0x35363f==='\x22'||_0x35363f==='\x27'){const _0x34b262=_0x35363f;_0x32d05b++;while(_0x32d05b<_0x550822[_0x83242e(_0x1bf0c5._0xad9984,_0x1bf0c5._0x1393ab,0x459,_0x1bf0c5._0x67d923)]&&_0x550822[_0x32d05b]!==_0x34b262){_0x550822[_0x32d05b]==='\x5c'&&_0x32d05b+0x1<_0x550822[_0x19ccac(0x542,_0x1bf0c5._0x22c83c,_0x1bf0c5._0x4d30e8,_0x1bf0c5._0x127107)]?(_0x3856ce+=_0x550822[_0x32d05b+0x1],_0x32d05b+=0x2):(_0x3856ce+=_0x550822[_0x32d05b],_0x32d05b++);}_0x32d05b++;}else _0x35363f!==void 0x0&&/\s/[_0x83242e(0x4f5,0x402,0x429,0x388)](_0x35363f)?(_0x3856ce&&(_0x4b6d88['push'](_0x3856ce),_0x3856ce=''),_0x32d05b++):(_0x3856ce+=_0x35363f,_0x32d05b++);}}if(_0x3856ce)_0x4b6d88[_0x19ccac(0x451,_0x1bf0c5._0x57c8eb,_0x1bf0c5._0x1f9be7,0x46f)](_0x3856ce);return _0x4b6d88;}function renderCommandInstructions(_0x1ceb62){const _0x5a524b={_0x48648b:0xbf,_0x4014ca:0x88,_0x459872:0xda,_0x142ad4:0x1a7,_0x13622d:0x11a,_0x287279:0x20,_0x1ee2f1:0x9f,_0x3e2fec:0x106,_0x407733:0x17c,_0x3e830d:0x47,_0x3a5dc5:0x102,_0x5a8ebd:0x9,_0x41f482:0xe3,_0x1c1f89:0x57,_0x3552e3:0x86,_0x1ca51b:0x63,_0x43f330:0x2e2,_0x321d3e:0x5e,_0x4f227f:0x7c,_0x22061a:0xa3,_0x7a6c9a:0xb,_0x109071:0x1e0},_0x175fa3={_0x3c7bb6:0x528},_0x3311e1={_0x4d73b6:0x2c},_0x158750={_0x5ab6ac:0x4c4,_0x49d9d5:0x53f,_0x5b3317:0x3a2};let _0x514288=_0x1ceb62[_0x127f59(0x365,0x24a,0x165,0x2ff)],_0x50aa08=![];const _0x29b49a=tokenizeCommandArguments(_0x1ceb62[_0xdbdfdd(0x114,_0x5a524b._0x48648b,_0x5a524b._0x4014ca,_0x5a524b._0x459872)]);_0x514288=_0x514288[_0xdbdfdd(_0x5a524b._0x142ad4,_0x5a524b._0x13622d,_0x5a524b._0x287279,_0x5a524b._0x1ee2f1)](/\$ARGUMENTS\[(\d+)\]/g,(_0xc2b544,_0xed750e)=>{return _0x50aa08=!![],_0x29b49a[Number(_0xed750e)]??'';}),_0x514288=_0x514288[_0x127f59(_0x5a524b._0x3e2fec,0x168,0x1d5,0x1e6)](/\$ARGUMENTS\b/g,()=>{const _0x22b6b2={_0x1b41e6:0x1ec};function _0x1230a2(_0x3bb2b6,_0x10de1f,_0x47ae16,_0x33f493){return _0x127f59(_0x3bb2b6-0x183,_0x10de1f-0x321,_0x47ae16-_0x22b6b2._0x1b41e6,_0x3bb2b6);}return _0x50aa08=!![],_0x1ceb62[_0x1230a2(0x3ec,_0x158750._0x5ab6ac,_0x158750._0x49d9d5,_0x158750._0x5b3317)];});if(_0x1ceb62[_0x127f59(_0x5a524b._0x407733,0xac,_0x5a524b._0x3e830d,0x65)]&&_0x1ceb62[_0xdbdfdd(-0x57,_0x5a524b._0x3a5dc5,-_0x5a524b._0x5a8ebd,-0x1d)][_0xdbdfdd(-0xa3,0x111,_0x5a524b._0x41f482,0xe)]>0x0)for(let _0x4c9a46=0x0;_0x4c9a46<_0x1ceb62['argumentNames']['length'];_0x4c9a46++){const _0x24abc4=_0x1ceb62['argumentNames'][_0x4c9a46];if(_0x24abc4){const _0x28210f=new RegExp('\x5c$'+_0x24abc4+'\x5cb','g');_0x514288=_0x514288[_0x127f59(_0x5a524b._0x1c1f89,0x168,_0x5a524b._0x3552e3,0x257)](_0x28210f,()=>{return _0x50aa08=!![],_0x29b49a[_0x4c9a46]??'';});}}_0x514288=_0x514288[_0xdbdfdd(-_0x5a524b._0x1ca51b,-0x17,0x7f,_0x5a524b._0x1ee2f1)](/\$(\d+)\b/g,(_0x58d8de,_0x8f1d79)=>{return _0x50aa08=!![],_0x29b49a[Number(_0x8f1d79)]??'';});function _0x127f59(_0x3a5fd6,_0x43e158,_0x620839,_0xba340){return _0x198698(_0x43e158-0x1d8,_0x43e158-_0x3311e1._0x4d73b6,_0xba340,_0xba340-0xde);}!_0x50aa08&&_0x1ceb62[_0x127f59(_0x5a524b._0x43f330,0x1a3,0x146,0x204)][_0xdbdfdd(0x154,-0x6b,_0x5a524b._0x321d3e,_0x5a524b._0x4f227f)]()&&(_0x514288=_0x514288+_0x127f59(_0x5a524b._0x22061a,-_0x5a524b._0x7a6c9a,0x92,0x23)+_0x1ceb62[_0x127f59(0x16e,0x1a3,0x194,_0x5a524b._0x109071)]);function _0xdbdfdd(_0x2f8f0c,_0x1b544e,_0x5c9484,_0x555543){return _0x2ecd0e(_0x555543- -_0x175fa3._0x3c7bb6,_0x1b544e-0xd5,_0x5c9484-0x189,_0x5c9484);}return _0x514288;}var chatModelAuthSchemeSchema=z[_0x2ecd0e(0x4e8,0x627,0x4ac,0x591)]([_0x198698(0x68,0x5d,-0xba,0x48),_0x198698(-0x1f3,-0x15d,-0x22c,-0xc2)]),apiKeyAuthSchema=z[_0x2ecd0e(0x4ba,0x477,0x56b,0x3db)]({'type':z[_0x198698(-0xa3,-0xbe,-0x1a3,-0x1d1)](_0x198698(0x19,-0x73,0x41,-0x8c)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x198698(-0x153,-0x14d,-0x5c,-0x292)]()})[_0x2ecd0e(0x52e,0x487,0x4bf,0x47e)](),oauthAuthSchema=z[_0x198698(-0x17d,-0x7e,-0x198,-0xfe)]({'type':z['literal'](_0x2ecd0e(0x563,0x4b8,0x5c8,0x451)),'access':z[_0x198698(-0x10d,-0x17a,-0x8e,-0x21d)](),'refresh':z['string'](),'expires':z[_0x198698(-0xf5,-0x220,-0xd,-0x6c)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x198698(-0x153,-0x261,-0x196,-0xde)]()})['passthrough'](),authMethodSchema=z[_0x198698(-0x39,-0x158,-0x12e,0xa1)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x198698(-0x17d,-0x228,-0x3f,-0xb3)]({'id':z[_0x2ecd0e(0x52a,0x517,0x413,0x64a)](),'name':z[_0x2ecd0e(0x52a,0x44e,0x47c,0x423)]()['optional']()})[_0x2ecd0e(0x52e,0x634,0x467,0x542)](),modelConfigSchema=z['union']([z[_0x198698(-0xa3,-0xfd,-0x160,-0x36)](![]),z[_0x2ecd0e(0x594,0x55a,0x680,0x6be)](!![]),z['string'](),z[_0x198698(0x59,-0x27,-0xc,0x4e)](z['string']()),z[_0x198698(0x59,-0xb9,0x194,-0x94)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x198698(-0x14f,-0xc4,-0x1c2,-0x99)]([_0x198698(-0x1bf,-0xa9,-0x1df,-0x213),_0x2ecd0e(0x494,0x4cb,0x461,0x50e),_0x198698(-0x194,-0xb3,-0x19c,-0x292),_0x198698(-0x120,-0x199,-0x11a,-0x165)]),providerConfigSchema=z[_0x2ecd0e(0x4ba,0x43f,0x4dc,0x4a0)]({'apiKey':z[_0x2ecd0e(0x52a,0x626,0x3f3,0x600)]()[_0x2ecd0e(0x4e4,0x484,0x53a,0x573)](),'token':z[_0x2ecd0e(0x52a,0x52d,0x5dc,0x5dc)]()[_0x2ecd0e(0x4e4,0x529,0x5b4,0x601)](),'defaultModel':z[_0x198698(-0x10d,-0xd9,-0x1c3,-0x1d9)]()[_0x198698(-0x153,-0x238,-0xb7,-0x47)](),'smallModel':z[_0x198698(-0x10d,-0x4c,-0x1f5,-0x69)]()['optional'](),'currentAuth':z[_0x2ecd0e(0x52a,0x42c,0x527,0x473)]()[_0x2ecd0e(0x4e4,0x492,0x41c,0x592)](),'auth':z[_0x2ecd0e(0x690,0x662,0x567,0x78e)](authMethodSchema)[_0x198698(-0x153,-0x1fa,-0xb5,-0x252)](),'surface':chatModelSurfaceSchema['optional'](),'baseUrl':z[_0x198698(-0x10d,-0x242,-0xc7,-0x99)]()[_0x2ecd0e(0x4e4,0x566,0x3f0,0x607)](),'models':modelConfigSchema[_0x2ecd0e(0x4e4,0x57f,0x5ef,0x4f2)](),'customHeaders':z[_0x2ecd0e(0x5d6,0x5fa,0x5f5,0x659)](z[_0x198698(-0x10d,-0x1ba,-0x21f,0x30)](),z[_0x198698(-0x10d,-0x4b,-0x211,-0x1a1)]())['optional']()})[_0x198698(-0x109,-0x8f,-0x74,-0x1bf)](),mcpServerConfigSchema=z['object']({'command':z[_0x2ecd0e(0x52a,0x4bb,0x63e,0x5f6)]()['optional'](),'args':z[_0x198698(0x59,0x49,0x1a,0xa6)](z[_0x198698(-0x10d,-0x16e,-0x1bb,-0xff)]())[_0x198698(-0x153,-0x1cc,-0x80,-0xd8)](),'env':z[_0x198698(-0x61,-0x76,-0x37,-0x15b)](z[_0x198698(-0x10d,-0x50,-0x135,-0x86)](),z['string']())['optional'](),'transport':z[_0x198698(-0x14f,-0x197,-0x1f8,-0x260)](['stdio',_0x2ecd0e(0x514,0x5ba,0x3e5,0x46b)])['optional'](),'url':z['string']()['optional'](),'headers':z[_0x2ecd0e(0x5d6,0x4a9,0x68a,0x5f1)](z[_0x198698(-0x10d,-0x18d,0x19,-0xd0)](),z[_0x198698(-0x10d,-0x1af,-0x10f,-0xb8)]())[_0x198698(-0x153,-0x147,-0x1a6,-0x1c5)](),'prefix':z[_0x198698(-0x10d,-0x74,-0x10c,-0x7d)]()[_0x198698(-0x153,-0x4e,-0x1ce,-0x268)](),'timeoutMs':z[_0x198698(-0xf5,-0xb2,-0x101,-0x22b)]()['optional'](),'enabled':z[_0x2ecd0e(0x557,0x55c,0x571,0x522)]()[_0x2ecd0e(0x4e4,0x5f4,0x402,0x445)](),'auth':z['object']({'type':z[_0x2ecd0e(0x4e8,0x450,0x3ab,0x42e)]([_0x2ecd0e(0x516,0x518,0x439,0x50b),_0x198698(0x68,0x155,0xdb,-0x51),_0x198698(-0xd4,-0x202,0x3,-0x17a)]),'token':z[_0x198698(-0x10d,-0xba,-0x1ae,-0x176)]()[_0x198698(-0x153,-0x1a1,-0xdf,-0x6e)](),'oauth':z[_0x198698(-0x17d,-0x1f0,-0x125,-0x1f7)]({'clientId':z[_0x198698(-0x10d,-0x11b,0x7,-0x1c8)]()['optional'](),'clientMetadataUrl':z[_0x198698(-0x10d,-0xaf,-0x14e,0x1f)]()[_0x198698(-0x153,-0x167,-0x127,-0x27c)](),'authorizationServer':z['string']()[_0x198698(-0x153,-0x22,-0x145,-0x171)](),'scopes':z[_0x198698(0x59,0x102,0xbd,0x149)](z['string']())['optional'](),'tokenStorageKey':z[_0x198698(-0x10d,-0xc8,0x32,-0xf5)]()[_0x2ecd0e(0x4e4,0x52c,0x3f8,0x58f)]()})[_0x2ecd0e(0x52e,0x4f7,0x5f6,0x585)]()['optional']()})['passthrough']()['optional']()})[_0x2ecd0e(0x52e,0x461,0x447,0x5ac)](),mcpSettingsSchema=z['object']({'servers':z[_0x2ecd0e(0x5d6,0x694,0x59c,0x6b6)](z['string'](),mcpServerConfigSchema)['optional'](),'allowedTools':z[_0x198698(-0x61,-0x9,-0x50,-0x103)](z[_0x2ecd0e(0x52a,0x589,0x64e,0x573)](),z[_0x2ecd0e(0x5d6,0x578,0x4df,0x643)](z[_0x2ecd0e(0x52a,0x4a8,0x560,0x42a)](),z[_0x2ecd0e(0x557,0x656,0x60f,0x4fd)]()))[_0x198698(-0x153,-0x108,-0x1d7,-0x289)](),'defaultTimeoutMs':z[_0x198698(-0xf5,-0x77,0x2d,-0x8a)]()[_0x2ecd0e(0x4e4,0x410,0x3fa,0x4c4)]()})['passthrough'](),skillsSettingsSchema=z[_0x2ecd0e(0x4ba,0x51e,0x59a,0x450)]({'enabled':z[_0x198698(-0xe0,0x37,-0x190,-0x202)]()[_0x2ecd0e(0x4e4,0x46f,0x440,0x5e1)](),'includeDefaults':z[_0x2ecd0e(0x557,0x424,0x667,0x619)]()['optional'](),'directories':z[_0x2ecd0e(0x690,0x65a,0x6da,0x7a2)](z[_0x198698(-0x10d,-0x8f,-0xf0,-0x1a8)]())[_0x198698(-0x153,-0x1a4,-0xed,-0x4d)](),'exclude':z[_0x198698(0x59,0x9f,-0x30,0x15)](z[_0x198698(-0x10d,-0x101,-0x107,-0x1ab)]())['optional']()})['passthrough'](),commandsSettingsSchema=z[_0x198698(-0x17d,-0x239,-0x21a,-0x1ba)]({'enabled':z['boolean']()['optional'](),'directories':z[_0x2ecd0e(0x690,0x759,0x655,0x674)](z[_0x198698(-0x10d,-0x13d,-0x2a,-0xa5)]())[_0x198698(-0x153,-0x20e,-0x238,-0x164)]()})[_0x2ecd0e(0x52e,0x521,0x5dd,0x5b2)](),agentsSettingsSchema=z[_0x2ecd0e(0x4ba,0x45f,0x3a2,0x55a)]({'enabled':z[_0x2ecd0e(0x557,0x589,0x655,0x4ce)]()[_0x198698(-0x153,-0x21a,-0x196,-0x5d)](),'includeDefaults':z['boolean']()[_0x2ecd0e(0x4e4,0x546,0x3de,0x3f6)](),'directories':z[_0x2ecd0e(0x690,0x7a2,0x5de,0x6cb)](z['string']())[_0x2ecd0e(0x4e4,0x3e5,0x3d7,0x580)]()})[_0x198698(-0x109,-0x17d,0x30,-0x148)](),uiThemeSettingsSchema=z[_0x198698(-0x17d,-0xd6,-0x267,-0x144)]({'mode':z[_0x198698(-0x14f,-0x160,-0xf6,-0x241)]([_0x198698(-0x119,-0x180,-0x1ef,-0x1f),'dark',_0x2ecd0e(0x45a,0x408,0x4be,0x4a6)])[_0x2ecd0e(0x4e4,0x40c,0x406,0x55b)](),'colorLevel':z['enum']([_0x2ecd0e(0x51e,0x4df,0x59f,0x530),'none',_0x2ecd0e(0x608,0x4ec,0x6e0,0x51c),'ansi256','truecolor'])[_0x2ecd0e(0x4e4,0x57e,0x4a7,0x3b7)](),'backgrounds':z[_0x2ecd0e(0x4e8,0x3be,0x48b,0x536)]([_0x198698(-0x119,-0x190,-0x236,0x7),'on',_0x2ecd0e(0x5a8,0x574,0x5f4,0x46c)])['optional'](),'messageStyle':z['enum']([_0x2ecd0e(0x480,0x55c,0x515,0x472),'boxed'])[_0x2ecd0e(0x4e4,0x3c3,0x528,0x3e6)]()})[_0x2ecd0e(0x52e,0x426,0x5aa,0x48a)](),statuslineSegmentSchema=z[_0x198698(-0x14f,-0xb1,-0x188,-0x23e)](['model',_0x198698(-0x94,-0x58,-0x1c2,0x78),_0x2ecd0e(0x63f,0x748,0x55a,0x650),_0x2ecd0e(0x57c,0x693,0x43d,0x644),_0x2ecd0e(0x47d,0x4be,0x4a2,0x4eb),'context',_0x2ecd0e(0x623,0x508,0x69b,0x5ba),'requests',_0x198698(-0x1c1,-0xec,-0x109,-0x2d5),_0x2ecd0e(0x44b,0x31f,0x4a7,0x3c3),_0x2ecd0e(0x554,0x5f2,0x60e,0x514),_0x198698(-0x23,0x1a,-0x153,0xde),_0x2ecd0e(0x588,0x536,0x51e,0x448),_0x198698(-0x72,0x4,-0x1ae,-0x3c),_0x198698(-0x1ce,-0x1a7,-0x2e5,-0x2ef)]),statuslineItemSchema=z[_0x198698(-0x39,-0x9,-0x16a,0x1d)]([statuslineSegmentSchema,z[_0x198698(-0xa3,-0x56,-0xc0,-0xf8)]('|')]),statuslineRowSchema=z['array'](statuslineItemSchema),statuslineConfigSchema=z[_0x2ecd0e(0x4ba,0x391,0x3b4,0x389)]({'rows':z['tuple']([statuslineRowSchema,statuslineRowSchema])['optional']()})['passthrough'](),memorySettingsSchema=z[_0x198698(-0x17d,-0x2ad,-0x1f6,-0x120)]({'version':z[_0x2ecd0e(0x594,0x6a7,0x64e,0x646)](0x2)[_0x2ecd0e(0x4e4,0x60c,0x3bd,0x44c)](),'retrieval':z[_0x198698(-0x17d,-0x201,-0x112,-0xe7)]({'engine':z[_0x198698(-0xa3,-0x92,0x41,-0xc0)](_0x2ecd0e(0x4cd,0x5a4,0x51d,0x5e4))[_0x2ecd0e(0x4e4,0x601,0x3b2,0x601)](),'candidateLimit':z[_0x198698(-0xf5,-0x190,-0x1ec,-0xe5)]()[_0x2ecd0e(0x4e4,0x4a5,0x51d,0x3fc)](),'activeCandidateLimit':z[_0x198698(-0xf5,0xb,-0x28,-0x138)]()[_0x198698(-0x153,-0x17e,-0x280,-0x8b)](),'activeEnabled':z['boolean']()['optional'](),'maxQueriesPerTurn':z['number']()[_0x2ecd0e(0x4e4,0x3fb,0x5a7,0x473)](),'coreInjectTokenBudget':z['number']()[_0x2ecd0e(0x4e4,0x513,0x43c,0x3c5)](),'injectTokenBudget':z['number']()['optional'](),'minScore':z[_0x2ecd0e(0x542,0x668,0x5f2,0x4f3)]()[_0x2ecd0e(0x4e4,0x574,0x591,0x5c7)](),'freshnessHalfLifeDays':z[_0x2ecd0e(0x542,0x50c,0x562,0x510)]()['optional']()})[_0x198698(-0x109,-0x167,-0x107,-0x121)]()['optional'](),'extraction':z['object']({'enabled':z[_0x198698(-0xe0,-0x1c2,-0x102,-0x141)]()['optional'](),'provider':z[_0x2ecd0e(0x52a,0x64d,0x440,0x568)]()[_0x198698(-0x153,-0xd1,-0x1f7,-0x204)](),'model':z['string']()[_0x2ecd0e(0x4e4,0x57a,0x5bd,0x554)](),'sensitiveFilter':z[_0x198698(-0xe0,-0xfc,-0x156,-0xe8)]()[_0x2ecd0e(0x4e4,0x3ce,0x3c3,0x426)]()})[_0x2ecd0e(0x52e,0x484,0x54c,0x4e6)]()[_0x2ecd0e(0x4e4,0x3fb,0x54a,0x457)](),'index':z[_0x2ecd0e(0x4ba,0x3e8,0x41e,0x50d)]({'persisted':z['boolean']()[_0x198698(-0x153,-0x175,-0x283,-0x9f)](),'flushIntervalMs':z[_0x198698(-0xf5,-0xe6,-0x21,-0x183)]()[_0x198698(-0x153,-0xa5,-0xa1,-0xbb)]()})['passthrough']()['optional'](),'enabled':z[_0x198698(-0xe0,0x49,-0x36,0x13)]()['optional'](),'saveTool':z['boolean']()[_0x2ecd0e(0x4e4,0x5a4,0x495,0x531)](),'model':z[_0x2ecd0e(0x52a,0x664,0x58d,0x42f)]()[_0x198698(-0x153,-0x28,-0xd6,-0x1be)](),'provider':z[_0x198698(-0x10d,-0x161,-0x126,-0x1ec)]()['optional'](),'maxInjectionTokens':z[_0x2ecd0e(0x542,0x619,0x4e8,0x53c)]()['optional'](),'backgroundExtraction':z['boolean']()[_0x198698(-0x153,-0xd4,-0x1ec,-0x96)]()})[_0x198698(-0x109,-0x220,-0x1f7,-0xd4)](),recentModelSchema=z[_0x2ecd0e(0x4ba,0x40f,0x4f6,0x5c5)]({'provider':z[_0x198698(-0x10d,-0x5c,-0x56,-0xfd)](),'model':z['string'](),'usedAt':z[_0x2ecd0e(0x542,0x40f,0x4b9,0x5dd)]()})[_0x2ecd0e(0x52e,0x402,0x5ad,0x63a)](),lspServerEntrySchema=z[_0x2ecd0e(0x4ba,0x452,0x430,0x410)]({'disabled':z['boolean']()['optional'](),'command':z['string']()[_0x198698(-0x153,-0x278,-0x1fd,-0x1a)](),'args':z[_0x2ecd0e(0x690,0x766,0x6b5,0x763)](z[_0x198698(-0x10d,-0xbe,-0x21c,-0xb6)]())[_0x198698(-0x153,-0x201,-0x1fd,-0x22a)](),'rootMarkers':z[_0x198698(0x59,0x13d,-0x39,0xb3)](z['string']())['optional']()})['passthrough'](),lspConfigSchema=z[_0x2ecd0e(0x4ba,0x3f9,0x5ef,0x381)]({'enabled':z['boolean']()[_0x2ecd0e(0x4e4,0x3ba,0x475,0x470)](),'servers':z[_0x198698(-0x61,-0xf3,-0x76,0xd5)](z[_0x198698(-0x10d,-0x96,0x17,-0x1c6)](),lspServerEntrySchema)['optional']()})[_0x198698(-0x109,-0x1e7,-0x1e5,-0x108)](),cliConfigSchema=z[_0x2ecd0e(0x4ba,0x3b8,0x3eb,0x5e9)]({'activeProvider':z[_0x198698(-0x10d,-0x17c,-0xb7,-0x1c6)]()[_0x2ecd0e(0x4e4,0x5df,0x552,0x3db)](),'activeModel':z['string']()[_0x2ecd0e(0x4e4,0x4b3,0x546,0x594)](),'apiKey':z[_0x2ecd0e(0x52a,0x584,0x5d6,0x64e)]()[_0x198698(-0x153,-0x163,-0x17d,-0x94)](),'providers':z['record'](z['string'](),providerConfigSchema)[_0x198698(-0x153,-0x1b0,-0x161,-0xd5)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x198698(-0x153,-0x11a,-0x1f4,-0x136)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x2ecd0e(0x5d6,0x496,0x62f,0x4bb)](z['string'](),z[_0x2ecd0e(0x557,0x50d,0x502,0x491)]())['optional'](),'memory':memorySettingsSchema[_0x198698(-0x153,-0x173,-0x189,-0x20)](),'session':z[_0x198698(-0x17d,-0x1e3,-0x82,-0x171)]({'memPersist':z['boolean']()[_0x198698(-0x153,-0x246,-0x203,-0x242)](),'persistEventLog':z[_0x2ecd0e(0x557,0x5eb,0x688,0x55a)]()[_0x198698(-0x153,-0xe4,-0x24b,-0x27b)](),'persistHttpLog':z[_0x198698(-0xe0,-0xc5,-0xc0,0x57)]()[_0x2ecd0e(0x4e4,0x5c4,0x3de,0x416)]()})[_0x2ecd0e(0x52e,0x643,0x5df,0x3f2)]()['optional'](),'requireToolApproval':z[_0x198698(-0xe0,-0x182,-0x1f3,-0x21e)]()[_0x2ecd0e(0x4e4,0x617,0x4d4,0x46f)](),'thinking':z[_0x198698(-0x14f,-0x33,-0x38,-0x198)](['OFF',_0x198698(-0x1d1,-0x2bf,-0x1e7,-0x11d),_0x198698(-0x1f4,-0x2aa,-0x20a,-0x10b),_0x198698(-0x181,-0xf9,-0xf8,-0x187)])[_0x198698(-0x153,-0xd9,-0x3b,-0x12e)](),'streamingChunks':z['boolean']()['optional'](),'agentsEnabled':z[_0x198698(-0x61,0x54,0x74,0xb0)](z[_0x2ecd0e(0x52a,0x658,0x556,0x59a)](),z['boolean']())[_0x2ecd0e(0x4e4,0x475,0x533,0x488)](),'recentModels':z[_0x2ecd0e(0x690,0x678,0x7c7,0x6a1)](recentModelSchema)[_0x198698(-0x153,-0x16d,-0x17,-0x10e)](),'lsp':lspConfigSchema[_0x198698(-0x153,-0x4e,-0x1d1,-0xdf)](),'ui':z['object']({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema['optional']()})[_0x198698(-0x109,-0xcf,-0x8f,-0xe6)]()[_0x198698(-0x153,-0x14e,-0xc7,-0x273)](),'tools':z[_0x198698(-0x61,-0x115,-0xc6,-0x33)](z[_0x198698(-0x10d,-0xf1,-0x79,-0x2)](),z['unknown']())[_0x2ecd0e(0x4e4,0x4cb,0x544,0x609)]()})[_0x198698(-0x109,-0x5f,-0x54,-0x1c9)]();function buildDescription(_0x58e321){const _0x525d96={_0x4a0122:0x1cd,_0xace01b:0x2d1,_0x426a8e:0x281,_0x38ae4:0x37d,_0x2e6c61:0x270,_0x2b6eb3:0x4c,_0x6b1497:0xae,_0x2f6f48:0x1d7,_0x4bb9c2:0xb9,_0x2de0b1:0x2b7,_0x48c57c:0x1a8,_0x9d7281:0x239,_0x47ad06:0x2cc,_0x57b719:0x240,_0x4f6683:0x1d7,_0x484857:0x2d5},_0xc98625={_0x1200f4:0xbf},_0x33afed={_0xd8d79:0xcc,_0x18e991:0xd8,_0x1dc180:0x13};function _0x59fd08(_0xe474aa,_0x36541b,_0x303622,_0x2473d0){return _0x198698(_0xe474aa- -_0x33afed._0xd8d79,_0x36541b-_0x33afed._0x18e991,_0x2473d0,_0x2473d0-_0x33afed._0x1dc180);}if(_0x58e321[_0x59fd08(-_0x525d96._0x4a0122,-0x2d4,-0xd3,-0x93)]===0x0)return[_0x4172ce(0x26f,_0x525d96._0xace01b,0x1ee,_0x525d96._0x426a8e),_0x4172ce(0x36f,0x273,_0x525d96._0x38ae4,_0x525d96._0x2e6c61),_0x59fd08(-_0x525d96._0x2b6eb3,-0x166,-0x63,_0x525d96._0x6b1497)][_0x59fd08(-_0x525d96._0x2f6f48,-0xf9,-_0x525d96._0x4bb9c2,-_0x525d96._0x2de0b1)]('\x0a');function _0x4172ce(_0x5002b7,_0x54d3b8,_0x24dd05,_0x48969c){return _0x198698(_0x5002b7-0x3dc,_0x54d3b8-0xea,_0x54d3b8,_0x48969c-_0xc98625._0x1200f4);}const _0x2909f0=['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x59fd08(-0x139,-0xa2,-0x1e5,-_0x525d96._0x48c57c),_0x4172ce(0x30e,0x210,_0x525d96._0x9d7281,_0x525d96._0x47ad06),..._0x58e321[_0x59fd08(-0x194,-0x12a,-_0x525d96._0x57b719,-0xe0)](_0xf4ed8d=>_0xf4ed8d[_0x4172ce(0x350,0x3c0,0x361,0x245)]?'-\x20'+_0xf4ed8d[_0x4172ce(0x311,0x266,0x319,0x2cf)]+'\x20'+_0xf4ed8d[_0x59fd08(-0x158,-0x127,-0x139,-0x105)]+':\x20'+_0xf4ed8d[_0x59fd08(-0x148,-0x63,-0x115,-0x10b)]:'-\x20'+_0xf4ed8d[_0x59fd08(-0x197,-0x20c,-0x1b2,-0x183)]+':\x20'+_0xf4ed8d[_0x59fd08(-0x148,-0x21d,-0x22,-0x173)])];return _0x2909f0[_0x59fd08(-_0x525d96._0x4f6683,-0x239,-_0x525d96._0x484857,-0x2b7)]('\x0a');}function createInvokeCommandTool(_0x10db79){const _0x336b1c={_0x1a7793:0x2e1,_0xb0386a:0x364,_0x4f3626:0x317,_0x5865f0:0x296,_0xad739a:0x146,_0x41c020:0x11d,_0x747000:0x1f,_0x74be11:0x13,_0x470d8d:0x508},_0x5b8b0b={_0x10d062:0x1f0,_0x26419c:0x17d,_0x2f1f69:0x6a,_0x97f71c:0x69,_0xda9fc7:0xe5,_0x76e305:0x21d,_0x955701:0x1fa,_0x177c24:0x17b,_0x4db307:0x19a,_0x51e722:0x68,_0x1cdb9f:0x23e,_0x3ac60f:0xa4,_0x249c94:0x1d3,_0x58d9e4:0x14c,_0x1169e8:0xae,_0x271b9c:0x213,_0x14fa6e:0x2e,_0x3384a7:0xf3,_0x1e79ca:0x1c5,_0x298639:0x144,_0x3c57e0:0x80,_0x6ef51e:0x58,_0x2a474b:0x16b,_0x549e7b:0x55,_0x1a2113:0x18e,_0x13ee43:0x14a,_0x554d30:0x26e,_0x5946e9:0x15a,_0x10a7f8:0x120,_0x21f0ba:0x1aa},_0x1548ad={_0x13d860:0x9,_0x49a3fa:0xa1},_0x198f53={_0x21869a:0x647,_0x16c6ef:0x4b};function _0xdf9f01(_0x104cbc,_0x438b8f,_0x475339,_0x5dce8c){return _0x2ecd0e(_0x104cbc- -_0x198f53._0x21869a,_0x438b8f-0x17e,_0x475339-_0x198f53._0x16c6ef,_0x5dce8c);}const _0x3f068a=new Map(_0x10db79[_0x1e384b(0x3e8,_0x336b1c._0x1a7793,_0x336b1c._0xb0386a,0x22c)]['map'](_0xaecfd=>[_0xaecfd['id'],_0xaecfd])),_0x2a40a8=buildDescription(_0x10db79['commands']);function _0x1e384b(_0x25dd1d,_0x57a748,_0x1e5d02,_0x764782){return _0x2ecd0e(_0x1e5d02- -0x18e,_0x57a748-_0x1548ad._0x13d860,_0x1e5d02-_0x1548ad._0x49a3fa,_0x57a748);}return defineTool({'name':_0x1e384b(0x332,_0x336b1c._0x4f3626,0x30a,_0x336b1c._0x5865f0),'description':_0x2a40a8,'inputSchema':{'type':_0xdf9f01(-0x18d,-0x52,-_0x336b1c._0xad739a,-0xa3),'properties':{'name':{'type':_0xdf9f01(-_0x336b1c._0x41c020,-0x7,-0x213,-_0x336b1c._0x747000)},'args':{'type':_0xdf9f01(-0x11d,-0x104,-_0x336b1c._0x74be11,-0x1d5)}},'required':[_0x1e384b(0x4c0,_0x336b1c._0x470d8d,0x3de,0x41a)]},async *'execute'(_0x2b3c30){const _0xd7e2ee={_0x53424d:0xa,_0x1bda76:0x1e0,_0xe22888:0xcd},_0x1a882e={_0x3867e9:0x7f,_0x1fc1b5:0x8d},_0x426f02=_0x3f068a[_0x13a540(-_0x5b8b0b._0x10d062,-_0x5b8b0b._0x26419c,-0x192,-_0x5b8b0b._0x2f1f69)](_0x2b3c30[_0x39ad08(-0x211,-_0x5b8b0b._0x97f71c,-_0x5b8b0b._0xda9fc7,-_0x5b8b0b._0x76e305)]);if(!_0x426f02){const _0xad9835=Array['from'](_0x3f068a[_0x39ad08(-0x299,-0x20b,-_0x5b8b0b._0x955701,-0x1d0)]())[_0x13a540(-0x101,-_0x5b8b0b._0x177c24,-_0x5b8b0b._0x4db307,-_0x5b8b0b._0x51e722)](',\x20');throw new ToolExecutionError(_0x13a540(-_0x5b8b0b._0x1cdb9f,-_0x5b8b0b._0x3ac60f,-_0x5b8b0b._0x249c94,-_0x5b8b0b._0x58d9e4)+_0x2b3c30[_0x39ad08(-0x221,-0x12b,-0xe5,-_0x5b8b0b._0x1169e8)]+_0x13a540(-0x209,-0x29c,-_0x5b8b0b._0x271b9c,-0xf8)+_0xad9835,{'name':_0x2b3c30[_0x39ad08(0x2c,-0x210,-0xe5,-0x163)]});}const _0x50de59=await _0x10db79['loadCommand'](_0x426f02),_0x2cfb24=_0x2b3c30[_0x13a540(-0x1e9,-_0x5b8b0b._0x14fa6e,-_0x5b8b0b._0x3384a7,-_0x5b8b0b._0x1e79ca)]??'';function _0x13a540(_0x2f5ab3,_0x363b13,_0x237680,_0x27c02d){return _0xdf9f01(_0x237680- -_0x1a882e._0x3867e9,_0x363b13-0x3a,_0x237680-_0x1a882e._0x1fc1b5,_0x363b13);}const _0x2f0c05=renderCommandInstructions({'instructions':_0x50de59[_0x39ad08(_0x5b8b0b._0x298639,_0x5b8b0b._0x3c57e0,_0x5b8b0b._0x6ef51e,0x66)],'argumentsText':_0x2cfb24,'argumentNames':_0x50de59[_0x13a540(-_0x5b8b0b._0x2a474b,-0x8e,-_0x5b8b0b._0x549e7b,-_0x5b8b0b._0x1a2113)]});yield createToolOutput(_0x2f0c05,{'id':_0x50de59['id'],'name':_0x50de59[_0x13a540(-_0x5b8b0b._0x13ee43,-_0x5b8b0b._0x554d30,-_0x5b8b0b._0x5946e9,-_0x5b8b0b._0x10a7f8)],'path':_0x426f02[_0x13a540(0x95,-0x6f,-0x8d,-_0x5b8b0b._0x21f0ba)]['path']});function _0x39ad08(_0x1d59b9,_0x229c3f,_0x222b69,_0x359e2b){return _0xdf9f01(_0x222b69- -_0xd7e2ee._0x53424d,_0x229c3f-_0xd7e2ee._0x1bda76,_0x222b69-_0xd7e2ee._0xe22888,_0x1d59b9);}return void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x18090c,rename as _0x222db2,stat as _0x5f3639,writeFile as _0xaf6fab}from'fs/promises';import*as _0x241e4b from'path';function detectEol(_0x3e5a20){const _0xa70247={_0x405517:0x107,_0x30f378:0x12c},_0x1e3c06={_0x3aed9b:0x684,_0xf8d6b2:0x24};function _0x55641f(_0x56acf9,_0x593f66,_0x48cf59,_0x4df383){return _0x2ecd0e(_0x4df383- -_0x1e3c06._0x3aed9b,_0x593f66-_0x1e3c06._0xf8d6b2,_0x48cf59-0x14a,_0x593f66);}return/\r\n/['test'](_0x3e5a20['toString']('utf8'))?_0x55641f(_0xa70247._0x405517,-0x4a,-_0xa70247._0x30f378,-0x25):'lf';}function normalizeToLf(_0x1e232b){const _0x2511ef={_0xded5b2:0x364,_0x1a0f4e:0x44b,_0x3ce4a1:0x46f},_0x225246={_0x63205c:0xf2};function _0x414463(_0x4904e4,_0x82c899,_0x5a04f5,_0x37b2dc){return _0x198698(_0x4904e4-0x3d4,_0x82c899-_0x225246._0x63205c,_0x5a04f5,_0x37b2dc-0xf2);}return _0x1e232b[_0x414463(_0x2511ef._0xded5b2,_0x2511ef._0x1a0f4e,0x35c,_0x2511ef._0x3ce4a1)](/\r\n/g,'\x0a');}function convertEol(_0x40a691,_0x38e5fe){const _0x1186f6={_0x580b54:0xb5,_0x3f0837:0x46},_0x4817a9={_0x186371:0x117};function _0x2d2f7b(_0x3877a9,_0x521c21,_0x3ce13e,_0x371c8d){return _0x198698(_0x371c8d-0x61,_0x521c21-0x157,_0x521c21,_0x371c8d-_0x4817a9._0x186371);}return _0x38e5fe===_0x2d2f7b(0xf2,-_0x1186f6._0x580b54,-_0x1186f6._0x3f0837,0x89)?_0x40a691['replace'](/\n/g,'\x0d\x0a'):_0x40a691;}async function atomicWrite(_0x18e0e8,_0x37025b){const _0x198c0b={_0x39a780:0x202,_0x4249fb:0x2ca,_0x2a6a50:0x454,_0x2ccb4b:0x2e,_0x2d5390:0x8d,_0x5576b8:0x159,_0x10b8d5:0x1aa,_0x3c4469:0x7c,_0x3dbb8a:0x20f,_0x41f7e0:0xb3,_0xefc438:0xe0,_0x5af3fa:0x123,_0x4dd8f4:0x121},_0x327ce1={_0x2f9e03:0x21a},_0xb75c99={_0x11bd2e:0x6c9,_0x2ad2a6:0xc0};function _0x1acf82(_0x2e8bf8,_0x4a186b,_0x2f0514,_0x5ea0f0){return _0x2ecd0e(_0x2e8bf8- -_0xb75c99._0x11bd2e,_0x4a186b-_0xb75c99._0x2ad2a6,_0x2f0514-0x91,_0x2f0514);}const _0x2934b8=_0x241e4b[_0x1acf82(-0x277,-0x23c,-0x1bd,-0x21c)](_0x18e0e8),_0x10f43e=_0x241e4b[_0x5affc9(_0x198c0b._0x39a780,0x312,0x203,_0x198c0b._0x4249fb)](_0x2934b8,_0x5affc9(0x3ee,_0x198c0b._0x2a6a50,0x336,0x47c)+_0x241e4b['basename'](_0x18e0e8)+'.'+Date[_0x1acf82(-0x1a,-_0x198c0b._0x2ccb4b,-0xe9,-0x10b)]()+'.'+Math[_0x1acf82(-0x8c,-0xfc,-_0x198c0b._0x2d5390,-_0x198c0b._0x5576b8)]()[_0x1acf82(-_0x198c0b._0x10b8d5,-_0x198c0b._0x3c4469,-_0x198c0b._0x3dbb8a,-_0x198c0b._0x41f7e0)](0x24)[_0x1acf82(-_0x198c0b._0xefc438,-_0x198c0b._0x5af3fa,-_0x198c0b._0x4dd8f4,-0x4)](0x2));function _0x5affc9(_0x1d3fd8,_0x199796,_0x436b40,_0x6e2c43){return _0x2ecd0e(_0x199796- -_0x327ce1._0x2f9e03,_0x199796-0x101,_0x436b40-0x56,_0x1d3fd8);}await _0xaf6fab(_0x10f43e,_0x37025b),await _0x222db2(_0x10f43e,_0x18e0e8);}function sha256(_0x2fa9a7){const _0x110651={_0x1bea92:0x6a2,_0x395fe4:0x603,_0x46046a:0x42e,_0x3cb8e8:0x4d5,_0x3cf6f8:0x601,_0xb6bbbe:0x561},_0x200a79={_0x368c85:0x1de,_0x4e8714:0x9c},_0x18d560={_0x53aed6:0x300,_0xdf94f7:0xe1,_0x14c643:0xb6};function _0x2a5ab5(_0x10bb41,_0x49cdda,_0x159e67,_0xbbfb8a){return _0x198698(_0x10bb41-_0x18d560._0x53aed6,_0x49cdda-_0x18d560._0xdf94f7,_0x159e67,_0xbbfb8a-_0x18d560._0x14c643);}function _0x3acc09(_0xc70c42,_0x374bda,_0x35a8f2,_0x326300){return _0x198698(_0x326300-0x6cb,_0x374bda-_0x200a79._0x368c85,_0x374bda,_0x326300-_0x200a79._0x4e8714);}return createHash('sha256')[_0x3acc09(_0x110651._0x1bea92,_0x110651._0x395fe4,0x6ad,0x598)](_0x2fa9a7)[_0x3acc09(0x527,_0x110651._0x46046a,0x3a7,_0x110651._0x3cb8e8)](_0x3acc09(_0x110651._0x3cf6f8,_0x110651._0xb6bbbe,0x5fc,0x61b));}function countLines(_0x118034){const _0x596fe7={_0x48cd82:0xb5,_0x346249:0xb9,_0x557d0c:0x6,_0x3d3164:0x15,_0x1233f9:0x79,_0x63c9bf:0x1d2,_0x5a07b9:0x60,_0x5b4fda:0x121,_0x175922:0x9f},_0x3785b3={_0x2ebc4d:0x1b5,_0x4c2385:0xa,_0x2fe61b:0x1d5},_0x2d534a={_0x569921:0x5d5,_0x12b051:0xa6};function _0x1dcf49(_0x8b2712,_0x12effc,_0x373f30,_0x41cb67){return _0x2ecd0e(_0x41cb67- -_0x2d534a._0x569921,_0x12effc-_0x2d534a._0x12b051,_0x373f30-0x19a,_0x12effc);}function _0x5d5bdc(_0x489bb8,_0xf14845,_0x152a06,_0x1e1c8c){return _0x198698(_0x489bb8-_0x3785b3._0x2ebc4d,_0xf14845-_0x3785b3._0x4c2385,_0x152a06,_0x1e1c8c-_0x3785b3._0x2fe61b);}const _0x45c97a=_0x118034[_0x1dcf49(-_0x596fe7._0x48cd82,_0x596fe7._0x346249,_0x596fe7._0x557d0c,-0xe)](/\n$/,'');return _0x45c97a[_0x5d5bdc(0xb4,-_0x596fe7._0x3d3164,0x97,_0x596fe7._0x1233f9)]===0x0?0x0:_0x45c97a[_0x5d5bdc(_0x596fe7._0x63c9bf,0xcf,0x1b2,0x218)]('\x0a')[_0x1dcf49(-_0x596fe7._0x5a07b9,-_0x596fe7._0x5b4fda,-0x18e,-_0x596fe7._0x175922)];}function calculateLineNumbers(_0x46484b,_0x5f320b,_0xd3e0c2,_0x1885c8){const _0x4aa3bb={_0x58c7b3:0x26,_0x695d4d:0x18f,_0x35f5cc:0x17f,_0x14ec7d:0xc0,_0x3d2d49:0x156,_0x430ab5:0x24a,_0x42cb17:0x1b2,_0xf84d93:0x10f,_0x106fb9:0xad},_0x2acda8=_0x46484b[_0x1414c0(-0x99,0x55,_0x4aa3bb._0x58c7b3,_0x4aa3bb._0x695d4d)](0x0,_0x1885c8)[_0x1414c0(_0x4aa3bb._0x35f5cc,_0x4aa3bb._0x14ec7d,_0x4aa3bb._0x3d2d49,0x45)]('\x0a')[_0x4ffdb1(_0x4aa3bb._0x430ab5,_0x4aa3bb._0x42cb17,_0x4aa3bb._0xf84d93,_0x4aa3bb._0x106fb9)];function _0x1414c0(_0x25cf8c,_0x2c4739,_0x3d4327,_0x28a63b){return _0x198698(_0x2c4739-0xa3,_0x2c4739-0x19e,_0x28a63b,_0x28a63b-0x98);}function _0x4ffdb1(_0x11984c,_0x58abeb,_0x4962ed,_0x169a64){return _0x2ecd0e(_0x58abeb- -0x384,_0x58abeb-0x1a0,_0x4962ed-0x52,_0x4962ed);}const _0x1540c8=countLines(_0x5f320b),_0x1c6e22=countLines(_0xd3e0c2);return{'oldStartLine':_0x2acda8,'oldEndLine':_0x2acda8+_0x1540c8-0x1,'newStartLine':_0x2acda8,'newEndLine':_0x2acda8+_0x1c6e22-0x1,'oldLineCount':_0x1540c8,'newLineCount':_0x1c6e22};}function createFileEditTool(_0x3de21c={}){const _0x7714d4={_0xe2a9cd:0x84,_0x575301:0x1bc,_0x39753c:0x92,_0x3ec9ca:0x1d0,_0x40968f:0x16b,_0x3e1b95:0x107,_0xa68aa4:0x1f9,_0x2ae5c7:0x27d,_0x355992:0x3,_0x428bcd:0x24,_0x567581:0xab,_0x1f971f:0x7f,_0x19abc6:0xd1,_0x3c32b8:0x25,_0x550b5e:0x20,_0x437853:0x5d,_0x150b20:0x1,_0x5d918a:0x111,_0x283320:0x122,_0x2b26db:0x126},_0x58f88d={_0x4b431c:0x592,_0x57c517:0x5aa,_0x493b4d:0x4cd,_0x337d5d:0x50,_0x46a5e8:0x180,_0x2de603:0x5d9,_0x156c22:0x692,_0x57cbd8:0x62c,_0x39b3e8:0xb3,_0x22af5e:0x120,_0x28e623:0x65c,_0x10a42b:0x723,_0x380d5b:0x733,_0x1c84d3:0x5f3,_0x443bf7:0x752,_0x22392c:0xf8,_0x208082:0xbb,_0x545c76:0x3e,_0x1de13c:0x173,_0x5d8860:0xa8,_0x1b843f:0x4b,_0x4c87df:0x5da,_0x5cd295:0x565,_0xfd32ac:0x563,_0x24ebdc:0x9f,_0x29a07a:0x41,_0xc01184:0x3c,_0xd30c9b:0x57b,_0x2024a8:0x5fc,_0x52c3f9:0x544,_0x51d075:0x558,_0x224b21:0x573,_0x4672fd:0xaa,_0x1e0dcf:0x45,_0x24c163:0x71f,_0x5df011:0x702,_0x31b505:0x26,_0x5f2133:0x12e,_0x21b4e7:0x9b,_0x2e599c:0x26,_0x50ece2:0x6e9,_0x3455d1:0x660,_0x212e3f:0x67b,_0x111b7d:0xb,_0x14b58c:0x12d,_0x59c332:0xb,_0x2afedf:0xc4},_0x2e8f57={_0x5f4d31:0x477,_0x3188a1:0x113},_0x541218={_0x126470:0xd2},_0x26b10b={_0x1f5be7:0x187,_0x3f54ca:0x60};function _0x1ec218(_0x7b1674,_0x29692d,_0x41d277,_0x49f2b9){return _0x2ecd0e(_0x7b1674- -0x404,_0x29692d-_0x26b10b._0x1f5be7,_0x41d277-_0x26b10b._0x3f54ca,_0x49f2b9);}const _0x1f2d76=_0x241e4b[_0x1ec218(0xe2,0x6e,_0x7714d4._0xe2a9cd,0xce)](_0x3de21c[_0x3cd368(_0x7714d4._0x575301,_0x7714d4._0x39753c,0xba,_0x7714d4._0x3ec9ca)]??process['cwd']()),_0x506885=(_0x3de21c['allowedDirs']??[])[_0x1ec218(_0x7714d4._0x40968f,_0x7714d4._0x3e1b95,_0x7714d4._0xa68aa4,_0x7714d4._0x2ae5c7)](_0x4633c2=>_0x241e4b[_0x1ec218(0xe2,-0x2e,0xd4,0x106)](_0x4633c2));function _0x3cd368(_0x5c1e09,_0x4e82d2,_0x3137b9,_0x5ab147){return _0x198698(_0x3137b9-_0x541218._0x126470,_0x4e82d2-0x1b,_0x5ab147,_0x5ab147-0x127);}const _0x156702=_0x3de21c['name']??_0x3cd368(-0xc2,_0x7714d4._0x355992,-0x112,-0xa);return defineTool({'name':_0x156702,'description':'Edit\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories\x20by\x20replacing\x20the\x20first\x20exact\x20text\x20segment.','inputSchema':{'type':_0x3cd368(-0x1cc,-_0x7714d4._0x428bcd,-_0x7714d4._0x567581,_0x7714d4._0x1f971f),'properties':{'filePath':{'type':'string'},'oldText':{'type':'string'},'newText':{'type':_0x3cd368(-_0x7714d4._0x19abc6,0x55,-0x3b,-0x85)},'dryRun':{'type':_0x1ec218(0x153,0x279,0x189,_0x7714d4._0x3c32b8)}},'required':[_0x3cd368(_0x7714d4._0x550b5e,0xfb,0x69,-0xcf),_0x3cd368(-0x74,_0x7714d4._0x437853,_0x7714d4._0x150b20,0x11d),_0x1ec218(_0x7714d4._0x5d918a,_0x7714d4._0x283320,0x189,_0x7714d4._0x2b26db)]},async *'execute'(_0x38720c){const _0xcc7f66={_0x1a5fed:0xf0,_0x4d6c8f:0x15e},_0x300e5f=resolveAllowedPath(_0x1f2d76,_0x506885,_0x38720c['filePath']);await assertWorkspaceFile(_0x300e5f);const _0x5d66a0=await _0x5f3639(_0x300e5f),_0x5bc1c5=await _0x18090c(_0x300e5f),_0x290cb3=detectEol(_0x5bc1c5),_0x1fc1e2=normalizeToLf(_0x5bc1c5[_0x397bfc(_0x58f88d._0x4b431c,0x569,_0x58f88d._0x57c517,_0x58f88d._0x493b4d)](_0x352dc8(_0x58f88d._0x337d5d,-0x8e,0x41,_0x58f88d._0x46a5e8))),_0x27d646=normalizeToLf(_0x38720c[_0x397bfc(_0x58f88d._0x2de603,_0x58f88d._0x156c22,0x6ba,_0x58f88d._0x57cbd8)]),_0x5e9c93=normalizeToLf(_0x38720c[_0x352dc8(-_0x58f88d._0x39b3e8,-0xc9,-0x2c,-_0x58f88d._0x22af5e)]),_0x3581f0=_0x1fc1e2['indexOf'](_0x27d646);if(_0x3581f0===-0x1){const _0x3e55e7=_0x27d646[_0x397bfc(_0x58f88d._0x28e623,_0x58f88d._0x10a42b,0x5b8,0x67b)](0x0,0x64)[_0x397bfc(0x63a,_0x58f88d._0x380d5b,_0x58f88d._0x1c84d3,_0x58f88d._0x443bf7)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x3e55e7+(_0x27d646[_0x352dc8(-0x11e,0x7e,-0xb,_0x58f88d._0x22392c)]>0x64?_0x352dc8(_0x58f88d._0x208082,-0x2,0x7f,0xa3):'')+'\x22',{'filePath':_0x38720c[_0x352dc8(0x13a,0x187,0x8d,-0x1d)]});}const _0x505ae6=_0x1fc1e2[_0x352dc8(_0x58f88d._0x545c76,_0x58f88d._0x1de13c,_0x58f88d._0x5d8860,_0x58f88d._0x1b843f)](0x0,_0x3581f0)+_0x5e9c93+_0x1fc1e2[_0x397bfc(0x65c,0x796,_0x58f88d._0x4c87df,_0x58f88d._0x5cd295)](_0x3581f0+_0x27d646[_0x397bfc(0x5a9,0x5bc,0x4f5,_0x58f88d._0xfd32ac)]);function _0x397bfc(_0x5a48aa,_0x2df11e,_0xb42fb7,_0x3b5d2c){return _0x1ec218(_0x5a48aa-_0x2e8f57._0x5f4d31,_0x2df11e-0x113,_0xb42fb7-_0x2e8f57._0x3188a1,_0x2df11e);}function _0x352dc8(_0x19a8b7,_0x5cef8e,_0x143b2e,_0x2faf06){return _0x3cd368(_0x19a8b7-_0xcc7f66._0x1a5fed,_0x5cef8e-_0xcc7f66._0x4d6c8f,_0x143b2e-0x24,_0x19a8b7);}const _0x236364=convertEol(_0x505ae6,_0x290cb3),_0x270e49=Buffer['from'](_0x236364,_0x352dc8(0xa2,-_0x58f88d._0x24ebdc,_0x58f88d._0x29a07a,-0xad)),_0x264b02=sha256(_0x5bc1c5),_0x5ee00a=sha256(_0x270e49),_0x27ee1b=_0x264b02===_0x5ee00a,_0x19612c=_0x38720c[_0x352dc8(0xe6,-0xe4,-_0x58f88d._0xc01184,-0x72)]??![];return!_0x19612c&&!_0x27ee1b&&await atomicWrite(_0x300e5f,_0x270e49),yield createToolOutput(_0x27ee1b?_0x397bfc(0x521,_0x58f88d._0xd30c9b,_0x58f88d._0x2024a8,0x643):_0x19612c?_0x397bfc(_0x58f88d._0x52c3f9,_0x58f88d._0x51d075,_0x58f88d._0x224b21,0x48f):_0x352dc8(-_0x58f88d._0x4672fd,0x71,-_0x58f88d._0x1e0dcf,0xea),{'filePath':_0x38720c['filePath'],'resolvedPath':_0x300e5f,'created':_0x5d66a0[_0x397bfc(_0x58f88d._0x24c163,0x74a,0x68a,_0x58f88d._0x5df011)][_0x352dc8(-0x55,-0x107,-_0x58f88d._0x31b505,-0x2d)](),'modified':_0x5d66a0['mtime'][_0x352dc8(-_0x58f88d._0x5f2133,-_0x58f88d._0x21b4e7,-_0x58f88d._0x2e599c,-0x46)](),'size':_0x5d66a0[_0x397bfc(_0x58f88d._0x50ece2,_0x58f88d._0x3455d1,_0x58f88d._0x212e3f,0x7f1)],'eol':_0x290cb3,'oldTextLength':_0x27d646[_0x352dc8(-0x66,0x12f,-_0x58f88d._0x111b7d,-_0x58f88d._0x14b58c)],'newTextLength':_0x5e9c93['length'],'bytesWritten':_0x27ee1b||_0x19612c?0x0:_0x270e49[_0x352dc8(-0x1f,-0x94,-_0x58f88d._0x59c332,-_0x58f88d._0x2afedf)],'beforeSha':_0x264b02,'afterSha':_0x5ee00a,'dryRun':_0x19612c,'noChange':_0x27ee1b,'lineNumbers':calculateLineNumbers(_0x1fc1e2,_0x27d646,_0x5e9c93,_0x3581f0)}),void 0x0;}});}import{mkdir as _0x26236d,rename as _0x198d04,stat as _0x54b22d,writeFile as _0x3b1dbe}from'fs/promises';import*as _0x24a167 from'path';async function atomicWrite2(_0x47934c,_0x542d30){const _0x279570={_0x30794d:0x3bc,_0x27f9f1:0x462,_0x408fd4:0x65f,_0x5835aa:0x6b6,_0x208e30:0x679,_0x1eeab2:0x4de,_0x1d6c03:0x619,_0x14f6a4:0x752,_0x4a7898:0x61d,_0x573660:0x52d,_0x5f4acd:0x60b,_0x563f68:0x5e4},_0x2e7d62={_0x6b9aee:0x89,_0xb9ca8c:0x1e2},_0xff554e={_0x4b3bc3:0x659},_0xa2f2cf=_0x24a167[_0x4af7ef(0x4f4,0x293,_0x279570._0x30794d,0x463)](_0x47934c);function _0x23d9c4(_0x2f62a3,_0x11f62d,_0x509230,_0x11404f){return _0x198698(_0x2f62a3-_0xff554e._0x4b3bc3,_0x11f62d-0xa0,_0x11404f,_0x11404f-0x4f);}await _0x26236d(_0xa2f2cf,{'recursive':!![]});const _0x41dc08=_0x24a167[_0x23d9c4(0x54e,0x513,_0x279570._0x27f9f1,0x4a1)](_0xa2f2cf,_0x4af7ef(0x527,_0x279570._0x408fd4,0x5d8,0x5f2)+_0x24a167[_0x23d9c4(_0x279570._0x5835aa,_0x279570._0x208e30,0x69d,0x7ad)](_0x47934c)+'.'+Date[_0x4af7ef(_0x279570._0x1eeab2,0x6cb,_0x279570._0x1d6c03,_0x279570._0x14f6a4)]()+'.'+Math[_0x23d9c4(_0x279570._0x408fd4,_0x279570._0x4a7898,0x702,_0x279570._0x573660)]()['toString'](0x24)[_0x23d9c4(_0x279570._0x5f4acd,0x5c3,_0x279570._0x563f68,0x60d)](0x2));function _0x4af7ef(_0x2bfb8c,_0x643c48,_0x46f6ea,_0x1e34c0){return _0x2ecd0e(_0x46f6ea- -0x96,_0x643c48-_0x2e7d62._0x6b9aee,_0x46f6ea-_0x2e7d62._0xb9ca8c,_0x1e34c0);}await _0x3b1dbe(_0x41dc08,_0x542d30),await _0x198d04(_0x41dc08,_0x47934c);}function createFileNewTool(_0x356a41={}){const _0x33cfad={_0x40898a:0x333,_0x44050d:0x3fc,_0x24662c:0x3ec,_0x127017:0x499,_0x3a4010:0x542,_0x71f771:0x482,_0x5d8894:0x421,_0xbbb4ea:0x185,_0x2d5a81:0x270,_0x26fe26:0x3d0,_0x5e4d0f:0x142,_0x5b1a4b:0x157,_0x11a002:0x1b8,_0x14dd88:0x3ed,_0xf2e69b:0x4e4,_0x3def18:0x41c,_0x52ac71:0x49f,_0x589e9f:0x2e1,_0x228ac2:0x3a9},_0x5b475e={_0xfdeacb:0x1b2,_0x5eea58:0xe9,_0x57fed7:0x2d7,_0x17742d:0x234,_0x4daba7:0x184,_0x13f8e1:0x407,_0x42ae55:0x32e,_0x4b5511:0x2f8,_0xd46ea:0x29a,_0x2560d1:0x28d,_0x4f7796:0x264,_0x400db0:0x2c5,_0xf5f6f5:0x3a,_0xdc7c9a:0x69,_0x2a6398:0x39f,_0xe19e83:0x325,_0x347f2b:0x3cc,_0x324469:0x31b,_0x132353:0x39f,_0x1b55b0:0x40b,_0xf41a0:0x4c3,_0x5809fe:0x20,_0x56779d:0x58,_0x37e21c:0x238,_0x49ef2a:0x208,_0x2c6937:0x3ab},_0x4276c7={_0x3a3803:0x24f,_0x4a7951:0x55},_0x1160ee=_0x24a167[_0x3b38c4(_0x33cfad._0x40898a,0x30d,_0x33cfad._0x44050d,0x4ee)](_0x356a41['defaultCwd']??process['cwd']()),_0x258a24=(_0x356a41[_0x3b38c4(_0x33cfad._0x24662c,0x3cb,0x4af,0x599)]??[])['map'](_0xc0cbdf=>_0x24a167['resolve'](_0xc0cbdf)),_0x187b4b=_0x356a41[_0x3b38c4(_0x33cfad._0x127017,_0x33cfad._0x3a4010,_0x33cfad._0x71f771,0x4f2)]??_0x3b38c4(_0x33cfad._0x5d8894,0x4de,0x506,0x445);function _0x5a1e72(_0x55d6e0,_0x2b8c79,_0x4e682c,_0x2bfaba){return _0x198698(_0x55d6e0-_0x4276c7._0x3a3803,_0x2b8c79-0xc0,_0x4e682c,_0x2bfaba-_0x4276c7._0x4a7951);}function _0x3b38c4(_0x4a8539,_0x2d1468,_0x5313da,_0x402578){return _0x2ecd0e(_0x5313da- -0xea,_0x2d1468-0x11e,_0x5313da-0x6,_0x4a8539);}return defineTool({'name':_0x187b4b,'description':_0x5a1e72(_0x33cfad._0xbbb4ea,0x119,0xfb,_0x33cfad._0x2d5a81),'inputSchema':{'type':_0x3b38c4(0x436,0x36d,_0x33cfad._0x26fe26,0x297),'properties':{'filePath':{'type':_0x3b38c4(0x48b,0x4e3,0x440,0x4f3)},'content':{'type':_0x5a1e72(_0x33cfad._0x5e4d0f,_0x33cfad._0x5b1a4b,_0x33cfad._0x11a002,0xc1)}},'required':[_0x3b38c4(0x4d3,_0x33cfad._0x14dd88,_0x33cfad._0xf2e69b,_0x33cfad._0x3def18),_0x3b38c4(_0x33cfad._0x52ac71,_0x33cfad._0x589e9f,_0x33cfad._0x228ac2,0x483)]},async *'execute'(_0x44d60f){const _0x5edc4={_0x193ee3:0xfd,_0x36b1b8:0x50},_0x4b1ccb={_0x11f830:0x34,_0x3f6392:0xd9};function _0x30ef8a(_0x2971c7,_0x1177c1,_0x4aa5ce,_0x3f58da){return _0x5a1e72(_0x1177c1- -_0x4b1ccb._0x11f830,_0x1177c1-_0x4b1ccb._0x3f6392,_0x2971c7,_0x3f58da-0x8f);}const _0x319750=resolveAllowedPath(_0x1160ee,_0x258a24,_0x44d60f[_0x30ef8a(0x198,_0x5b475e._0xfdeacb,_0x5b475e._0x5eea58,0x1aa)]),_0x39e8b7=await _0x54b22d(_0x319750)[_0x205e0e(_0x5b475e._0x57fed7,_0x5b475e._0x17742d,0x35c,_0x5b475e._0x4daba7)](()=>!![])[_0x205e0e(_0x5b475e._0x13f8e1,_0x5b475e._0x42ae55,_0x5b475e._0x4b5511,_0x5b475e._0xd46ea)](()=>![]);function _0x205e0e(_0x41c8f2,_0x3a132b,_0x447c3f,_0x1b2b77){return _0x5a1e72(_0x3a132b-0x1b9,_0x3a132b-_0x5edc4._0x193ee3,_0x1b2b77,_0x1b2b77-_0x5edc4._0x36b1b8);}const _0x5ec368=Buffer[_0x205e0e(_0x5b475e._0x2560d1,0x2cb,0x402,0x280)](_0x44d60f[_0x205e0e(0x2d6,_0x5b475e._0x4f7796,0x2a9,_0x5b475e._0x400db0)],'utf8');return await atomicWrite2(_0x319750,_0x5ec368),yield createToolOutput(_0x30ef8a(_0x5b475e._0xf5f6f5,0x74,-0xf,-_0x5b475e._0xdc7c9a)+_0x44d60f[_0x205e0e(0x364,_0x5b475e._0x2a6398,_0x5b475e._0xe19e83,_0x5b475e._0x347f2b)]+'.',{'filePath':_0x44d60f[_0x205e0e(_0x5b475e._0x324469,_0x5b475e._0x132353,_0x5b475e._0x1b55b0,_0x5b475e._0xf41a0)],'resolvedPath':_0x319750,'bytes':_0x5ec368[_0x30ef8a(_0x5b475e._0x5809fe,0x11a,0x7c,_0x5b475e._0x5eea58)],'lines':_0x44d60f[_0x30ef8a(_0x5b475e._0x56779d,0x77,0x11e,0x80)][_0x30ef8a(0x10b,_0x5b475e._0x37e21c,0x188,_0x5b475e._0x49ef2a)](/\r?\n/)[_0x205e0e(_0x5b475e._0x2c6937,0x307,0x313,0x35e)],'created':new Date()['toISOString'](),'overwritten':_0x39e8b7}),void 0x0;}});}import{readFile as _0x3a0db8,stat as _0x3f1186}from'fs/promises';import*as _0x12e4bc from'path';function stripUtfBom(_0x267e29){const _0x1297fa={_0x4807a2:0x3b2,_0x50f954:0x432,_0x14183d:0x304,_0x590748:0x344,_0x2b5dda:0x5a8,_0x45442b:0x64e},_0x35b391={_0x7bbb9d:0x1c3,_0x3160a3:0x43},_0x8e7f46={_0x1f7d8c:0x1e8,_0x359617:0x1de,_0x2ccfcb:0xd5};function _0x33e4f9(_0x432d41,_0x1f3cad,_0x2c52c7,_0x34cdf6){return _0x2ecd0e(_0x432d41- -_0x8e7f46._0x1f7d8c,_0x1f3cad-_0x8e7f46._0x359617,_0x2c52c7-_0x8e7f46._0x2ccfcb,_0x34cdf6);}function _0x19fc2c(_0x68eefc,_0x17f3b6,_0x374d1f,_0x2275d4){return _0x2ecd0e(_0x374d1f-0x65,_0x17f3b6-_0x35b391._0x7bbb9d,_0x374d1f-_0x35b391._0x3160a3,_0x17f3b6);}return _0x267e29[_0x33e4f9(_0x1297fa._0x4807a2,_0x1297fa._0x50f954,_0x1297fa._0x14183d,_0x1297fa._0x590748)](0x0)===0xfeff?_0x267e29[_0x19fc2c(_0x1297fa._0x2b5dda,0x632,_0x1297fa._0x45442b,0x758)](0x1):_0x267e29;}function clampLine(_0x27e357,_0x4f4e74){const _0x51b42a={_0x5eee3e:0x3d4,_0x782d06:0x2ed,_0x367254:0x4b7,_0x47de1d:0x4bf,_0x23710d:0x478,_0xca4051:0x3f0,_0xf075a0:0x532,_0x242793:0x53b},_0x49846a={_0x38e41e:0x10},_0x94fa25={_0x3a16c5:0x1b0};if(!Number[_0x476957(_0x51b42a._0x5eee3e,0x3b9,_0x51b42a._0x782d06,_0x51b42a._0x367254)](_0x27e357))return 0x1;function _0x476957(_0x292daa,_0x4b910d,_0x28812e,_0x2ea4f8){return _0x198698(_0x292daa-0x47d,_0x4b910d-_0x94fa25._0x3a16c5,_0x2ea4f8,_0x2ea4f8-0x8);}function _0x36aba9(_0x25078b,_0x305067,_0x39f3e8,_0xffd42a){return _0x198698(_0x25078b-0xca,_0x305067-_0x49846a._0x38e41e,_0xffd42a,_0xffd42a-0xd7);}return Math[_0x476957(0x2a4,0x1ca,0x335,0x22b)](0x1,Math[_0x476957(_0x51b42a._0x47de1d,_0x51b42a._0x23710d,_0x51b42a._0xca4051,0x498)](Math[_0x476957(0x46f,_0x51b42a._0xf075a0,0x4a9,_0x51b42a._0x242793)](_0x27e357),_0x4f4e74));}function createFileReadTool(_0x9e48c7={}){const _0x45e33e={_0x3f787f:0x1fd,_0x391965:0x365,_0x282d0f:0x1e7,_0x1a3ccd:0x2db,_0x2bdb3d:0x1ed,_0x2c7dc4:0x400,_0x5f44d2:0x36d,_0x1ed69d:0x34d,_0x1f1366:0x24d,_0x2ec893:0x449,_0x70eaa8:0x283,_0x25bee4:0x3d9,_0x46e398:0x2ae,_0x27e310:0x27f,_0x5b189d:0x440,_0x9e882b:0x34b,_0x501559:0x2a7},_0x466a75={_0x5f2f78:0x3c2,_0x46d368:0x366,_0x165d00:0xf7,_0x255295:0x5b,_0xbc898e:0x1cd,_0x4dcc6f:0xda,_0x4a66b3:0x8f,_0x5b48eb:0x21,_0x3389d9:0x103,_0x3c4c33:0xda,_0x4ec8af:0x357,_0x459165:0x359,_0x14dc33:0x46,_0x3ea878:0x90,_0x4f19fd:0xba,_0x198f8d:0x1a4,_0x55b990:0x1f2,_0x1d9c96:0x4e4,_0x1a0c81:0x5be,_0x550238:0x1bd,_0x4f3be9:0x71,_0x5910e8:0x85,_0x40b591:0x23b,_0x3c6f42:0x120,_0xfca665:0x1e,_0x29124b:0x36e,_0x57ca5a:0x41d,_0xe3f541:0x39a,_0x472543:0x26e,_0x54fcb1:0x293,_0x4022bd:0x37,_0x543900:0x99,_0xf1d81a:0x2b7,_0x2c59b4:0x272,_0x2aee7c:0x51,_0x37527f:0x6a,_0x364951:0xd5,_0xa92e92:0x12,_0x270966:0x6a,_0xf619f7:0x4b1,_0x5f2585:0x4e6,_0x2444e5:0x296,_0x3341fa:0x176,_0x16df3a:0x421,_0x580026:0x36d,_0x58b651:0x3a8,_0x58000a:0x3a7,_0x4e21fc:0x39e},_0x3ea689={_0xc8f53f:0x104,_0x3663a8:0xdd},_0x2e2b07={_0x281423:0x21f},_0x558be7={_0x4a719b:0x202},_0x207a0c=_0x12e4bc[_0x3cf789(_0x45e33e._0x3f787f,0x2c7,0x347,_0x45e33e._0x391965)](_0x9e48c7['defaultCwd']??process[_0x3e7f6c(_0x45e33e._0x282d0f,0x234,_0x45e33e._0x1a3ccd,_0x45e33e._0x2bdb3d)]());function _0x3e7f6c(_0x252696,_0x5b946f,_0x422a15,_0x22e89c){return _0x2ecd0e(_0x422a15- -_0x558be7._0x4a719b,_0x5b946f-0x19c,_0x422a15-0x1c5,_0x252696);}const _0x37cef1=(_0x9e48c7['allowedDirs']??[])[_0x3e7f6c(_0x45e33e._0x2c7dc4,0x252,_0x45e33e._0x5f44d2,0x35b)](_0x5ca23f=>_0x12e4bc[_0x3cf789(0x3a8,0x2c7,0x265,0x27a)](_0x5ca23f));function _0x3cf789(_0x4adb38,_0x3d7792,_0x22dcfc,_0x5782aa){return _0x2ecd0e(_0x3d7792- -_0x2e2b07._0x281423,_0x3d7792-0xa0,_0x22dcfc-0xea,_0x5782aa);}const _0xd56403=_0x9e48c7[_0x3cf789(0x3b9,_0x45e33e._0x1ed69d,_0x45e33e._0x1f1366,0x37d)]??_0x3e7f6c(_0x45e33e._0x2ec893,_0x45e33e._0x70eaa8,0x383,0x284);return defineTool({'name':_0xd56403,'description':_0x3e7f6c(0x1ef,_0x45e33e._0x25bee4,_0x45e33e._0x46e398,0x259),'inputSchema':{'type':_0x3e7f6c(0x3c9,0x2f2,0x2b8,0x376),'properties':{'path':{'type':'string'},'lineStart':{'type':_0x3e7f6c(_0x45e33e._0x27e310,_0x45e33e._0x5b189d,0x340,0x36e)},'lineEnd':{'type':'number'}},'required':[_0x3cf789(_0x45e33e._0x9e882b,_0x45e33e._0x501559,0x19c,0x239)]},async *'execute'(_0xf8a17){const _0x3f02bb=resolveAllowedPath(_0x207a0c,_0x37cef1,_0xf8a17[_0x42c736(0x2fe,_0x466a75._0x5f2f78,0x239,0x42a)]);await assertWorkspaceFile(_0x3f02bb);const _0x5c2441=await _0x3f1186(_0x3f02bb),_0x5215ea=await _0x3a0db8(_0x3f02bb);if(isProbablyBinary(_0x5215ea))throw new ToolExecutionError(_0x42c736(0x442,_0x466a75._0x46d368,0x4bb,0x3ff)+_0xf8a17[_0x3f7e0b(-_0x466a75._0x165d00,_0x466a75._0x255295,-_0x466a75._0xbc898e,-_0x466a75._0x4dcc6f)],{'path':_0xf8a17[_0x3f7e0b(-_0x466a75._0x4a66b3,-_0x466a75._0x5b48eb,-_0x466a75._0x3389d9,-_0x466a75._0x3c4c33)]});let _0xcf9086=_0x5215ea[_0x42c736(_0x466a75._0x4ec8af,0x357,_0x466a75._0x459165,0x247)]('utf8');const _0xd1e36b=_0xcf9086[_0x3f7e0b(_0x466a75._0x14dc33,-_0x466a75._0x3ea878,-_0x466a75._0x4f19fd,-0x6)](0x0)===0xfeff;function _0x3f7e0b(_0x4a6fd1,_0xb4f8c5,_0xe56472,_0x3802d3){return _0x3cf789(_0x4a6fd1-0x15c,_0x3802d3- -0x381,_0xe56472-0x139,_0xe56472);}function _0x42c736(_0xd0142,_0x443708,_0x456664,_0x1203a5){return _0x3cf789(_0xd0142-_0x3ea689._0xc8f53f,_0xd0142-0x57,_0x456664-_0x3ea689._0x3663a8,_0x443708);}_0xcf9086=stripUtfBom(_0xcf9086);const _0x185df4=_0xcf9086['split'](/\r?\n/),_0x1c633c={'path':_0xf8a17[_0x3f7e0b(-0x20,-_0x466a75._0x198f8d,-_0x466a75._0x55b990,-_0x466a75._0x3c4c33)],'resolvedPath':_0x3f02bb,'created':_0x5c2441[_0x42c736(_0x466a75._0x1d9c96,_0x466a75._0x1a0c81,0x478,0x469)][_0x3f7e0b(-_0x466a75._0x550238,_0x466a75._0x4f3be9,-0x181,-_0x466a75._0x5910e8)](),'modified':_0x5c2441[_0x3f7e0b(-_0x466a75._0x3ea878,0xff,0xe9,-0x1)][_0x42c736(0x353,_0x466a75._0x40b591,0x38d,0x28d)](),'size':_0x5c2441[_0x3f7e0b(0x22,0xa3,0x13,0xd6)],'encoding':_0x3f7e0b(0x99,_0x466a75._0x3c6f42,-0xe1,-_0x466a75._0xfca665),'bomStripped':_0xd1e36b,'truncated':![],'totalLines':_0x185df4[_0x42c736(_0x466a75._0x29124b,_0x466a75._0x57ca5a,0x3cc,_0x466a75._0xe3f541)]};if(_0xf8a17[_0x42c736(0x33f,_0x466a75._0x472543,_0x466a75._0x54fcb1,0x20d)]!==void 0x0||_0xf8a17['lineEnd']!==void 0x0){const _0x5f0902=clampLine(_0xf8a17[_0x3f7e0b(0x1c,0x78,_0x466a75._0x4022bd,-_0x466a75._0x543900)]??0x1,_0x185df4[_0x42c736(0x36e,0x2c5,0x394,0x373)]),_0x371308=clampLine(_0xf8a17[_0x42c736(_0x466a75._0xf1d81a,_0x466a75._0x2c59b4,0x240,0x209)]??_0x185df4[_0x3f7e0b(_0x466a75._0x2aee7c,-0xc,-0x20,-_0x466a75._0x37527f)],_0x185df4[_0x3f7e0b(-_0x466a75._0x364951,-0xaa,-_0x466a75._0xa92e92,-_0x466a75._0x270966)]),_0x2da531=Math[_0x42c736(_0x466a75._0xf619f7,0x487,_0x466a75._0x5f2585,0x582)](_0x5f0902,_0x371308),_0xc29e0=Math[_0x42c736(_0x466a75._0x2444e5,0x1fe,_0x466a75._0x3341fa,0x2d9)](_0x5f0902,_0x371308),_0x23afe5=_0x185df4[_0x42c736(_0x466a75._0x16df3a,0x534,_0x466a75._0x580026,_0x466a75._0x58b651)](_0x2da531-0x1,_0xc29e0)[_0x42c736(_0x466a75._0x58000a,0x47c,0x347,_0x466a75._0x4e21fc)]((_0x2cc7d5,_0xda300c)=>_0x2da531+_0xda300c+'|'+_0x2cc7d5)['join']('\x0a');return yield createToolOutput(_0x23afe5,{..._0x1c633c,'lineRange':{'lineStart':_0x2da531,'lineEnd':_0xc29e0,'linesTotal':_0x185df4['length']}}),void 0x0;}return yield createToolOutput(_0xcf9086,_0x1c633c),void 0x0;}});}import{stat as _0x590078}from'fs/promises';import*as _0x1904ac from'path';import{execSync,spawn as _0x3984f2}from'child_process';import{existsSync}from'fs';import{stat as _0x5539f8}from'fs/promises';import*as _0x507a36 from'os';import*as _0x15e302 from'path';import{rgPath as _0x28d7bb}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x5c6bd7={_0x2bb496:0x187,_0x2421f1:0xc6,_0xcd501d:0x1f7,_0x2983d8:0xb5,_0x53e25b:0x62,_0x289d89:0x18f,_0x2a7815:0xdd,_0x59ee64:0x178,_0x1b6b1d:0xe3,_0x1c9317:0x26,_0x59fe76:0x3b1,_0x25c3f6:0x1a4,_0x3a6286:0x282,_0x9b2bc:0x172,_0x3ad284:0x1c,_0xa7ae9a:0x132,_0x27b4ed:0x51,_0x13441c:0x153,_0xb56c12:0x159,_0x31f267:0x9d,_0x58b5b0:0x95,_0x173ffe:0x1f4,_0x4e1f24:0x23b,_0x40717b:0x179,_0x29d787:0x19e,_0x141886:0x29c,_0x369d88:0x1d5,_0x155929:0x1a7,_0x1fe079:0x14f,_0x14e263:0x33,_0x3247b2:0x92,_0x250955:0x1d1,_0x5ceac6:0x2e9,_0x5e9554:0x21a,_0x43d758:0x78,_0x17bfcf:0x44,_0xdc92a7:0x81,_0x12a78a:0x1a8,_0xcc5909:0x0,_0x550107:0xdb,_0x4bbc61:0x17b,_0x53ae37:0x97,_0x584a25:0x5a,_0x26155b:0x101,_0x43b5f2:0x7b,_0x1e6bb4:0xdc,_0x4e5c77:0x1c7,_0x41783b:0x2e5,_0xf1d150:0x1ef,_0x4deb93:0x126,_0x40ad79:0x265,_0x13ca08:0x3d,_0x36fa1a:0xd0},_0x17d98f={_0x2fa630:0x17a,_0x4adb5e:0x6b};function _0x131c5c(_0x1633a8,_0x3a4e57,_0x296d03,_0x42eaed){return _0x198698(_0x3a4e57- -0x72,_0x3a4e57-0x195,_0x296d03,_0x42eaed-0x79);}function _0x1941b7(_0x186739,_0x4fa3c9,_0x2cddaa,_0x1af022){return _0x2ecd0e(_0x4fa3c9- -0x6ca,_0x4fa3c9-_0x17d98f._0x2fa630,_0x2cddaa-_0x17d98f._0x4adb5e,_0x2cddaa);}const _0x1b71c6=_0x507a36[_0x131c5c(-_0x5c6bd7._0x2bb496,-_0x5c6bd7._0x2421f1,-_0x5c6bd7._0xcd501d,-0x121)]()===_0x1941b7(-_0x5c6bd7._0x2983d8,-_0x5c6bd7._0x53e25b,-_0x5c6bd7._0x289d89,-_0x5c6bd7._0x2a7815),_0x4814d9=_0x1b71c6?[_0x15e302[_0x1941b7(-0x157,-0x19e,-0x178,-_0x5c6bd7._0x59ee64)](process[_0x1941b7(-0x54,-_0x5c6bd7._0x1b6b1d,-0x132,-_0x5c6bd7._0x1c9317)][_0x1941b7(-0xa3,-0x5d,-0x50,0xd9)]||'',_0x1941b7(-_0x5c6bd7._0x59fe76,-0x274,-_0x5c6bd7._0x25c3f6,-_0x5c6bd7._0x3a6286),_0x1941b7(-_0x5c6bd7._0x9b2bc,-0x23d,-0x162,-0x153),_0x131c5c(-_0x5c6bd7._0x3ad284,-0x8,-_0x5c6bd7._0xa7ae9a,-_0x5c6bd7._0x27b4ed)),_0x15e302['join'](process[_0x1941b7(-0x5a,-0xe3,-_0x5c6bd7._0x13441c,-_0x5c6bd7._0xb56c12)][_0x131c5c(-0x1e1,-0x1d9,-0x2ff,-_0x5c6bd7._0x31f267)]||'',_0x1941b7(-0x116,-_0x5c6bd7._0x58b5b0,-0x170,-0x13f),_0x1941b7(-_0x5c6bd7._0x173ffe,-_0x5c6bd7._0x4e1f24,-_0x5c6bd7._0x40717b,-0x1b9)),_0x15e302[_0x1941b7(-0x136,-_0x5c6bd7._0x29d787,-0x1a5,-_0x5c6bd7._0x141886)](process[_0x1941b7(-_0x5c6bd7._0x369d88,-0xe3,0xe,-_0x5c6bd7._0x155929)][_0x1941b7(-0x279,-0x1b0,-0xab,-_0x5c6bd7._0x1fe079)]||'',_0x1941b7(_0x5c6bd7._0x14e263,-0x95,-_0x5c6bd7._0x3247b2,-_0x5c6bd7._0x250955),_0x131c5c(-_0x5c6bd7._0x5ceac6,-_0x5c6bd7._0x5e9554,-0x177,-0x308))]:[_0x1941b7(-0xf,-_0x5c6bd7._0x43d758,-0xe6,-_0x5c6bd7._0x17bfcf),_0x1941b7(-_0x5c6bd7._0xdc92a7,-_0x5c6bd7._0x12a78a,-0x182,-0x28b),_0x1941b7(-0xf8,-0xc9,_0x5c6bd7._0xcc5909,-0x1b6),'/bin/rg'];for(const _0x4faeea of _0x4814d9){if(existsSync(_0x4faeea))return _0x4faeea;}try{const _0x56b78f=_0x1b71c6?_0x1941b7(-_0x5c6bd7._0x550107,-0x9a,-0x1c6,-_0x5c6bd7._0x4bbc61):'which\x20rg',_0x488e3e=execSync(_0x56b78f,{'encoding':'utf8','stdio':[_0x131c5c(-_0x5c6bd7._0x53ae37,-_0x5c6bd7._0x584a25,-_0x5c6bd7._0x26155b,-0x62),_0x1941b7(-0xb,-_0x5c6bd7._0x43b5f2,0x52,-_0x5c6bd7._0x1e6bb4),_0x131c5c(-_0x5c6bd7._0x4e5c77,-0x1c8,-_0x5c6bd7._0x41783b,-_0x5c6bd7._0xf1d150)]})[_0x1941b7(-0x18b,-_0x5c6bd7._0x4deb93,-_0x5c6bd7._0x40ad79,-0x13b)]()[_0x1941b7(-0x1ae,-0x76,_0x5c6bd7._0x13ca08,-_0x5c6bd7._0x36fa1a)](/\r?\n/)[0x0];if(_0x488e3e&&existsSync(_0x488e3e))return _0x488e3e;}catch{return null;}return null;}async function filepath(){const _0x4d2001={_0x43c2eb:0x89,_0x57a96b:0x10d};if(cachedRgPath)return cachedRgPath;if(_0x28d7bb&&existsSync(_0x28d7bb))return cachedRgPath=_0x28d7bb,_0x28d7bb;const _0x33a558=findSystemRipgrep();if(!_0x33a558)throw new Error(_0x11a734(0x1b7,_0x4d2001._0x43c2eb,-0x21,_0x4d2001._0x57a96b));function _0x11a734(_0x1a4362,_0x30286e,_0x54ce07,_0x29d819){return _0x198698(_0x29d819-0xf6,_0x30286e-0xbd,_0x30286e,_0x29d819-0x121);}return cachedRgPath=_0x33a558,_0x33a558;}async function*files(_0x15aa34){const _0x528d56={_0x5ca8fc:0x32c,_0x10a1cc:0x516,_0x2fb5cb:0x44a,_0x3fd87d:0x7c,_0x360bac:0x1f6,_0x38da1d:0x77,_0x3b5a01:0x6,_0x364830:0x13e,_0x3614b9:0x179,_0xae076:0x321,_0x49b33f:0x245,_0x473047:0x12f,_0x226d94:0xdb,_0x5ca7f2:0x188,_0x265f79:0x184,_0x259611:0x11d,_0x4f0162:0x2c2,_0xb7760f:0x37b,_0x4a0a06:0x1d0,_0x35cc2e:0x1bc,_0x410200:0x245,_0x4b0f7d:0x11f,_0x5b8603:0x17f,_0x2b6f93:0x359,_0x47479f:0x371,_0x57e8a9:0x3b7,_0xa444e7:0x273,_0x525531:0x140,_0x488570:0x1b5,_0x58901d:0x1e9,_0x11b320:0x319,_0x59bff6:0x354,_0x3e6f90:0x29e,_0x3f808b:0x37d,_0x4152e1:0x39e},_0x53e112={_0x47443a:0x514,_0xc34135:0x26},_0x412209={_0x363b3e:0x39f,_0x1a1fcc:0x0},_0x49ff67=await filepath(),_0x3b6f9b=await _0x5539f8(_0x15aa34[_0x2e6c28(0x2bb,0x336,0x2e9,0x245)])['catch'](()=>null);if(!_0x3b6f9b?.[_0x2e6c28(_0x528d56._0x5ca8fc,_0x528d56._0x10a1cc,_0x528d56._0x2fb5cb,0x418)]())throw Object[_0x467ed1(0x107,_0x528d56._0x3fd87d,0x197,_0x528d56._0x360bac)](new Error(_0x467ed1(-0x180,-0xc3,-_0x528d56._0x38da1d,-_0x528d56._0x3b5a01)+_0x15aa34[_0x2e6c28(_0x528d56._0x364830,_0x528d56._0x3614b9,_0x528d56._0xae076,_0x528d56._0x49b33f)]+'\x27'),{'code':_0x467ed1(0x4e,0x13b,0x16e,0x173)});const _0x5f0771=[_0x467ed1(0xcc,0x192,_0x528d56._0x473047,0x0),'--follow',_0x467ed1(0x1da,0x1d5,_0x528d56._0x226d94,0x96),'--glob=!.git/*'];function _0x2e6c28(_0x1bd80d,_0x6576db,_0x2c5633,_0x22de98){return _0x198698(_0x22de98-_0x412209._0x363b3e,_0x6576db-0x12c,_0x1bd80d,_0x22de98-_0x412209._0x1a1fcc);}for(const _0x36c20f of _0x15aa34[_0x467ed1(0x27b,_0x528d56._0x5ca7f2,_0x528d56._0x265f79,_0x528d56._0x259611)]??[]){_0x5f0771[_0x2e6c28(0x1e8,0x2f4,0x32c,_0x528d56._0x4f0162)](_0x2e6c28(0x3e5,0x38c,_0x528d56._0xb7760f,0x2eb)+_0x36c20f);}const _0x5a74d9=_0x3984f2(_0x49ff67,_0x5f0771,{'cwd':_0x15aa34[_0x2e6c28(_0x528d56._0x4a0a06,0x11b,_0x528d56._0x35cc2e,_0x528d56._0x410200)],'stdio':['ignore',_0x467ed1(_0x528d56._0x4b0f7d,0x1d1,0x13b,_0x528d56._0x5b8603),_0x2e6c28(_0x528d56._0x2b6f93,0x452,_0x528d56._0x47479f,_0x528d56._0x57e8a9)]});let _0x20d6a6='';for await(const _0xc45a8a of _0x5a74d9['stdout']??[]){_0x20d6a6+=_0xc45a8a['toString']();const _0x54e2e5=_0x20d6a6[_0x467ed1(0x18d,_0x528d56._0xa444e7,_0x528d56._0x525531,_0x528d56._0x488570)](/\r?\n/);_0x20d6a6=_0x54e2e5[_0x2e6c28(0x44f,_0x528d56._0x58901d,0x3c5,_0x528d56._0x11b320)]()??'';for(const _0x204efd of _0x54e2e5){if(_0x204efd['length']>0x0)yield _0x204efd;}}function _0x467ed1(_0x3bfe7b,_0x305394,_0x373523,_0x3e6d50){return _0x2ecd0e(_0x373523- -_0x53e112._0x47443a,_0x305394-_0x53e112._0xc34135,_0x373523-0x5f,_0x3bfe7b);}_0x20d6a6['trim']()[_0x2e6c28(_0x528d56._0x59bff6,0x1ce,0x226,_0x528d56._0x3e6f90)]>0x0&&(yield _0x20d6a6[_0x2e6c28(_0x528d56._0x3f808b,_0x528d56._0x4152e1,0x436,0x30c)]());}function parseMatchLine(_0xcb5a62,_0x53a710){const _0x141380={_0x3bfe6d:0x2b6,_0x12ba35:0x15c,_0x32fb8b:0x247,_0x484418:0x198,_0x269358:0x5d,_0x30f425:0x18f,_0x1cc77f:0x199,_0xa29a63:0x13c,_0x50a0af:0x12e,_0x438d0d:0x24e,_0x17553c:0x12d,_0x479970:0x2ea,_0x573455:0x150,_0x56b932:0x265,_0x5cd531:0x2a2},_0x544e06={_0x306218:0xbf},_0x3267e7={_0x1a5325:0x26};function _0x41a8b3(_0x1572ac,_0x49025c,_0x4f7643,_0x156bae){return _0x198698(_0x156bae-0xb1,_0x49025c-_0x3267e7._0x1a5325,_0x1572ac,_0x156bae-0x185);}if(!_0xcb5a62||_0xcb5a62==='--')return null;function _0x4717ee(_0x466c01,_0x2d3b99,_0x4c7d77,_0x3af5d4){return _0x2ecd0e(_0x2d3b99- -0x347,_0x2d3b99-0x1b5,_0x4c7d77-_0x544e06._0x306218,_0x3af5d4);}const _0x5b164e=_0xcb5a62[_0x4717ee(0x2f2,0x30d,0x3ff,_0x141380._0x3bfe6d)]('|');if(_0x53a710&&_0x5b164e[_0x41a8b3(0x5e,0xb9,-_0x141380._0x12ba35,-0x50)]>=0x4&&Number[_0x4717ee(0x16f,_0x141380._0x32fb8b,_0x141380._0x484418,0x281)](Number[_0x4717ee(_0x141380._0x269358,_0x141380._0x30f425,0x19f,_0x141380._0x1cc77f)](_0x5b164e[0x2]??'',0xa))){const _0x1f14e4=Number[_0x4717ee(0x1c2,0x18f,0x9b,_0x141380._0xa29a63)](_0x5b164e[0x1]??'',0xa);if(!Number[_0x41a8b3(0x9,-0x9,-_0x141380._0x50a0af,0x8)](_0x1f14e4)||!_0x5b164e[0x0])return null;return{'filePath':_0x5b164e[0x0],'lineNum':_0x1f14e4,'lineText':_0x5b164e['slice'](0x3)[_0x4717ee(_0x141380._0x438d0d,0x1e5,_0x141380._0x17553c,0x224)]('|')};}if(_0x5b164e[_0x4717ee(0x256,0x1ef,_0x141380._0x479970,0xf7)]>=0x3){const _0x2b833e=Number[_0x41a8b3(-0x68,-0x1a1,-_0x141380._0x573455,-0xb0)](_0x5b164e[0x1]??'',0xa);if(!Number['isFinite'](_0x2b833e)||!_0x5b164e[0x0])return null;return{'filePath':_0x5b164e[0x0],'lineNum':_0x2b833e,'lineText':_0x5b164e[_0x4717ee(_0x141380._0x56b932,_0x141380._0x5cd531,0x19f,0x1a8)](0x2)['join']('|'),..._0x53a710?{'isContext':!![]}:{}};}return null;}async function search(_0x2de4b0){const _0x680da5={_0x561a55:0x4c1,_0x54d760:0xed,_0x4968b6:0xf1,_0x1cf10f:0x729,_0x418d45:0x710,_0x4982cf:0x7d5,_0x5d0b85:0x14a,_0x3a0db2:0x81,_0x154f24:0x6f4,_0x3e8dc6:0x672,_0xc80f2e:0x631,_0x409c3f:0xd6,_0x46ed2b:0x18c,_0x188370:0xa5,_0x330126:0x122,_0x23801e:0x72f,_0x1641d9:0x6d6,_0x54dc55:0x625,_0x27d098:0xd7,_0xe525fb:0x17,_0x2a09e5:0x148,_0x2585ff:0x549,_0x2b5eec:0x679,_0x28550a:0x1b6,_0x7bf2f:0x521,_0x41a1b8:0x462,_0x370ef4:0x455,_0x54f5d9:0x770,_0x2c8a61:0x6e1,_0x47b561:0x6b2,_0x199690:0x1ce,_0x15a9a9:0xd8,_0x3fd720:0x1ee,_0x313c2b:0x14d,_0x23986c:0x13a,_0x55c240:0x608,_0xe7baf3:0x7c2,_0x4a7366:0x61d,_0x48a567:0x5a3,_0x3a1c76:0x522,_0x53c382:0x4e0,_0x14468d:0x452},_0x51b6ea={_0xc6fbdb:0x56d,_0x5c4d02:0x440,_0x5800a4:0x1bc,_0x3bf4d6:0x357,_0x5013f9:0x641,_0x5600f7:0x5e1,_0x14c6b0:0x531,_0x59cd6c:0x26d,_0x2641e9:0x4d3,_0x42bf20:0x102},_0x2bf4a6={_0x2ed444:0x175},_0x5da720={_0x350e57:0x70,_0x17a6e2:0x17},_0x59a8a0=await filepath();if(_0x2de4b0['file']){const _0x25ff56=await _0x5539f8(_0x2de4b0[_0x4a60e0(_0x680da5._0x561a55,0x522,0x49c,0x49e)])[_0x4a60e0(0x5eb,0x5a6,0x4aa,0x5be)](()=>null);if(!_0x25ff56?.[_0x268544(-_0x680da5._0x54d760,-0x29,-_0x680da5._0x4968b6,-0x1dc)]())throw Object[_0x4a60e0(_0x680da5._0x1cf10f,0x6f4,_0x680da5._0x418d45,_0x680da5._0x4982cf)](new Error('No\x20such\x20file:\x20\x27'+_0x2de4b0['file']+'\x27'),{'code':'ENOENT'});}else{const _0x52c77c=await _0x5539f8(_0x2de4b0['cwd'])[_0x268544(-_0x680da5._0x5d0b85,-0x9a,-0x203,-_0x680da5._0x3a0db2)](()=>null);if(!_0x52c77c?.['isDirectory']())throw Object[_0x4a60e0(0x733,_0x680da5._0x154f24,0x790,_0x680da5._0x3e8dc6)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x2de4b0[_0x4a60e0(0x421,0x526,_0x680da5._0xc80f2e,0x50a)]+'\x27'),{'code':'ENOENT'});}const _0x51099e=['-nH',_0x268544(-_0x680da5._0x409c3f,-_0x680da5._0x46ed2b,-_0x680da5._0x188370,-_0x680da5._0x330126),_0x4a60e0(_0x680da5._0x23801e,_0x680da5._0x1641d9,_0x680da5._0x54dc55,0x717),_0x268544(-_0x680da5._0x27d098,_0x680da5._0xe525fb,-_0x680da5._0x2a09e5,-0x90),_0x2de4b0['pattern']];function _0x268544(_0x4c5cd0,_0x217857,_0x2a48b6,_0x4d80aa){return _0x198698(_0x4c5cd0- -_0x5da720._0x350e57,_0x217857-0x76,_0x2a48b6,_0x4d80aa-_0x5da720._0x17a6e2);}const _0x5754cf=typeof _0x2de4b0[_0x4a60e0(0x4b5,0x521,0x42b,0x511)]===_0x4a60e0(_0x680da5._0x2585ff,0x58b,0x64d,_0x680da5._0x2b5eec)&&_0x2de4b0[_0x268544(-0x1cf,-0x1d7,-0xc3,-_0x680da5._0x28550a)]>0x0;_0x5754cf&&_0x51099e['push']('-C',String(_0x2de4b0[_0x4a60e0(0x5f8,_0x680da5._0x7bf2f,_0x680da5._0x41a1b8,_0x680da5._0x370ef4)]),'--column');_0x2de4b0[_0x4a60e0(_0x680da5._0x54f5d9,_0x680da5._0x2c8a61,0x79a,_0x680da5._0x47b561)]&&!_0x2de4b0[_0x268544(-_0x680da5._0x199690,-_0x680da5._0x15a9a9,-0x2f1,-_0x680da5._0x3fd720)]&&_0x51099e[_0x268544(-_0x680da5._0x313c2b,-0xc5,-0x1c1,-_0x680da5._0x23986c)](_0x4a60e0(0x672,_0x680da5._0x55c240,0x657,0x60d),_0x2de4b0[_0x4a60e0(_0x680da5._0xe7baf3,0x6e1,_0x680da5._0x4a7366,0x7f6)]);function _0x4a60e0(_0x1b7dae,_0x2e592d,_0x14dcf2,_0xb4ec3a){return _0x198698(_0x2e592d-0x680,_0x2e592d-0x153,_0xb4ec3a,_0xb4ec3a-_0x2bf4a6._0x2ed444);}return _0x51099e[_0x4a60e0(0x504,_0x680da5._0x48a567,0x4dd,0x579)](_0x2de4b0[_0x4a60e0(0x425,_0x680da5._0x3a1c76,_0x680da5._0x53c382,_0x680da5._0x14468d)]??_0x2de4b0['cwd']),await new Promise((_0x324a91,_0x1ecafa)=>{const _0x33deca={_0x3fa7fd:0x1fd,_0x5b3206:0x2ae,_0xb4b20d:0x460,_0x336dd0:0x55a,_0x5e50a4:0x469,_0x14fba6:0x4ea,_0xe26101:0x489,_0x54dacc:0x369,_0x298aec:0x424},_0x3522ea={_0x2224de:0xdf,_0x375c64:0x104},_0x36706b={_0xcc42a1:0x1cc},_0x37ea39={_0x14e368:0x12e,_0x263639:0x1bb,_0x4164ae:0x84},_0x53e467={_0x4017b5:0x86,_0x203286:0xb7,_0x2469d2:0xf7},_0x210c1f=_0x3984f2(_0x59a8a0,_0x51099e,{'cwd':_0x2de4b0[_0x30a9d1(_0x51b6ea._0xc6fbdb,0x46f,_0x51b6ea._0x5c4d02,0x4e5)],'stdio':[_0x13185(0x152,0x27b,_0x51b6ea._0x5800a4,_0x51b6ea._0x3bf4d6),_0x30a9d1(0x5a2,0x5e1,0x624,_0x51b6ea._0x5013f9),_0x30a9d1(0x4ce,_0x51b6ea._0x5600f7,_0x51b6ea._0x14c6b0,0x566)]});let _0x288142='';function _0x30a9d1(_0xef8688,_0x34883f,_0x19f35a,_0x2c8703){return _0x4a60e0(_0xef8688-_0x53e467._0x4017b5,_0x34883f- -_0x53e467._0x203286,_0x19f35a-_0x53e467._0x2469d2,_0x2c8703);}let _0x272c31='';function _0x13185(_0x10e7e3,_0x358d44,_0x1cf4bc,_0x15151c){return _0x4a60e0(_0x10e7e3-0x187,_0x358d44- -0x2af,_0x1cf4bc-0x18f,_0x15151c);}_0x210c1f[_0x13185(0x2f6,0x1ef,0x192,_0x51b6ea._0x59cd6c)]?.['on'](_0x13185(0x283,0x396,_0x51b6ea._0x2641e9,0x37a),_0x10b376=>{function _0x17039f(_0x28a0ff,_0x1c466f,_0x445b03,_0x5aa8b6){return _0x30a9d1(_0x28a0ff-0xf5,_0x1c466f- -0x383,_0x445b03-0x141,_0x28a0ff);}_0x288142+=_0x10b376[_0x17039f(0x16d,_0x37ea39._0x14e368,_0x37ea39._0x263639,_0x37ea39._0x4164ae)]();}),_0x210c1f[_0x13185(0x299,0x21c,0x337,_0x51b6ea._0x42bf20)]?.['on']('data',_0x5b5376=>{_0x272c31+=_0x5b5376['toString']();}),_0x210c1f['on']('close',_0x1fce39=>{function _0x4eb760(_0x517900,_0xe9a084,_0x3cf8ee,_0x3ae140){return _0x30a9d1(_0x517900-_0x36706b._0xcc42a1,_0x3cf8ee- -0x17d,_0x3cf8ee-0x77,_0xe9a084);}if(_0x1fce39===0x1&&_0x288142===''){_0x324a91([]);return;}if(_0x1fce39!==0x0&&_0x1fce39!==0x1){_0x1ecafa(new Error(_0x4eb760(_0x33deca._0x3fa7fd,0x192,_0x33deca._0x5b3206,0x334)+_0x272c31));return;}const _0x7cb56a=_0x2de4b0['limit']??0x64;function _0x459c40(_0x22e4b8,_0x2458c4,_0x1a2226,_0xadf1cb){return _0x30a9d1(_0x22e4b8-_0x3522ea._0x2224de,_0x22e4b8- -0x63,_0x1a2226-_0x3522ea._0x375c64,_0x2458c4);}const _0x8f46e1=[];for(const _0x2ba873 of _0x288142[_0x4eb760(_0x33deca._0xb4b20d,_0x33deca._0x336dd0,_0x33deca._0x5e50a4,_0x33deca._0x14fba6)](/\r?\n/)){if(_0x8f46e1['length']>=_0x7cb56a)break;const _0x1acdf0=parseMatchLine(_0x2ba873,_0x5754cf);if(_0x1acdf0)_0x8f46e1[_0x459c40(_0x33deca._0xe26101,_0x33deca._0x54dacc,0x3c5,_0x33deca._0x298aec)](_0x1acdf0);}_0x324a91(_0x8f46e1);}),_0x210c1f['on']('error',_0x1ecafa);});}function createGlobTool(_0x559f78={}){const _0x5d110a={_0x5cca45:0x163,_0x3a0e5c:0x4,_0x37e213:0x103,_0xf2cb9:0x24a,_0x49d183:0x18c,_0x3cb2be:0x5d2,_0x35ff1e:0x6f9,_0x56856b:0x672,_0x3f01ef:0x550,_0x2504a5:0x576,_0x1311b8:0xf9,_0x4d6fab:0x436,_0x13d4ee:0x136,_0x265e2c:0xc5,_0x249382:0x147,_0x4b01cd:0x6b,_0x560558:0x147,_0x5d4aff:0x5dc,_0x3ec736:0x143,_0x3c92fa:0xc2},_0x8156c3={_0x133483:0x1d6,_0x3e01ae:0x145,_0x3ef8eb:0x24d,_0x1d4caf:0x2eb,_0x59e964:0x19f,_0x134b64:0x350,_0x510574:0x1c2,_0x4f67c8:0x27e,_0x20f4f0:0x5ad,_0x35101b:0x6b4,_0x50151a:0x5f5,_0x8aedd:0x66e,_0x225867:0x47f,_0x2729d7:0x4a5,_0x4a1391:0x585,_0x3faf5d:0x44a,_0x3dba0e:0x404,_0x3616ff:0x2f6,_0x33d15e:0x3bc,_0x360832:0x4ae,_0x38fbb6:0x69b,_0x58ed37:0x197,_0x3dc7a9:0x11a,_0x405cb6:0x244,_0xfb9098:0x1fd,_0x5e45b5:0xbd,_0x5e8e67:0x51d,_0x27a7bc:0x335,_0x1b85dd:0x204,_0x3f7a4e:0x586,_0x51d50e:0x6b1,_0x5a89a9:0x580,_0x7583fe:0x49a,_0x2b4d4b:0x145,_0x44f759:0x480};function _0x1a22ea(_0x140424,_0x29983b,_0x9c569c,_0x39e315){return _0x198698(_0x39e315-0x254,_0x29983b-0x8a,_0x9c569c,_0x39e315-0x1d2);}const _0x59940f=_0x1904ac[_0x1a22ea(_0x5d110a._0x5cca45,-_0x5d110a._0x3a0e5c,0xc4,_0x5d110a._0x37e213)](_0x559f78['defaultCwd']??process['cwd']()),_0x3e606e=(_0x559f78['allowedDirs']??[])[_0x1a22ea(_0x5d110a._0xf2cb9,0xae,0xc7,_0x5d110a._0x49d183)](_0x30dc48=>_0x1904ac[_0x66df27(0x462,0x324,0x37c,0x4d9)](_0x30dc48));function _0x66df27(_0x407c2f,_0x2a93d4,_0x42203f,_0x2a9269){return _0x2ecd0e(_0x407c2f- -0x84,_0x2a93d4-0x19e,_0x42203f-0x191,_0x2a93d4);}const _0x14b95c=_0x559f78[_0x66df27(_0x5d110a._0x3cb2be,0x69a,_0x5d110a._0x35ff1e,_0x5d110a._0x56856b)]??0x64,_0x31e27a=_0x559f78[_0x66df27(0x4e8,_0x5d110a._0x3f01ef,_0x5d110a._0x2504a5,0x5c3)]??'Glob';return defineTool({'name':_0x31e27a,'description':_0x1a22ea(_0x5d110a._0x1311b8,0x1b2,0x336,0x213),'inputSchema':{'type':_0x66df27(_0x5d110a._0x4d6fab,0x336,0x542,0x42d),'properties':{'pattern':{'type':_0x1a22ea(_0x5d110a._0x13d4ee,_0x5d110a._0x265e2c,0x1f0,_0x5d110a._0x249382)},'path':{'type':_0x1a22ea(_0x5d110a._0x4b01cd,0xbd,0x1f0,_0x5d110a._0x560558)},'limit':{'type':_0x66df27(0x4be,_0x5d110a._0x5d4aff,0x465,0x4b8)}},'required':[_0x1a22ea(_0x5d110a._0x3ec736,0x125,0xf5,_0x5d110a._0x3c92fa)]},async *'execute'(_0x45ac8a){const _0x1d7620={_0x45e2ae:0x2dc,_0x1716cd:0xb5};function _0xcaeff9(_0x5f1809,_0x4860e5,_0x101fe7,_0x585b0b){return _0x66df27(_0x4860e5-0xd4,_0x585b0b,_0x101fe7-0x3f,_0x585b0b-0xee);}if(_0x45ac8a[_0x2efa7a(0x1d5,_0x8156c3._0x133483,_0x8156c3._0x3e01ae,_0x8156c3._0x3ef8eb)][_0x2efa7a(_0x8156c3._0x1d4caf,_0x8156c3._0x59e964,0x244,0x356)]()['length']===0x0)throw new ToolExecutionError(_0x2efa7a(_0x8156c3._0x134b64,_0x8156c3._0x510574,_0x8156c3._0x4f67c8,0x3a9),{});const _0x403fc3=resolveAllowedPath(_0x59940f,_0x3e606e,_0x45ac8a['path']??'.'),_0x271ec3=await _0x590078(_0x403fc3)[_0xcaeff9(0x6b5,_0x8156c3._0x20f4f0,_0x8156c3._0x35101b,0x6b1)](()=>null);if(!_0x271ec3?.['isDirectory']())throw new ToolExecutionError(_0xcaeff9(_0x8156c3._0x50151a,0x539,0x448,_0x8156c3._0x8aedd)+(_0x45ac8a[_0xcaeff9(0x618,0x516,_0x8156c3._0x225867,_0x8156c3._0x2729d7)]??'.'),{'path':_0x45ac8a[_0xcaeff9(_0x8156c3._0x4a1391,0x516,0x534,_0x8156c3._0x3faf5d)]??'.'});const _0x789a47=_0x45ac8a[_0x2efa7a(0x32a,_0x8156c3._0x3dba0e,_0x8156c3._0x3616ff,_0x8156c3._0x33d15e)]??_0x14b95c,_0x493abf=Math[_0xcaeff9(0x4c6,_0x8156c3._0x360832,0x53f,0x4ae)](0x1,Math[_0xcaeff9(_0x8156c3._0x38fbb6,0x679,0x6b6,0x6c5)](_0x789a47)),_0x1bfd4c=[];function _0x2efa7a(_0x2a7afe,_0x1c036c,_0x3ca48c,_0x110f0a){return _0x66df27(_0x3ca48c- -_0x1d7620._0x45e2ae,_0x2a7afe,_0x3ca48c-_0x1d7620._0x1716cd,_0x110f0a-0x14f);}let _0x5c8de7=![];for await(const _0x2ebbad of files({'cwd':_0x403fc3,'glob':[_0x45ac8a['pattern']]})){if(_0x1bfd4c['length']>=_0x493abf){_0x5c8de7=!![];break;}const _0x444b6e=await _0x590078(_0x1904ac[_0x2efa7a(_0x8156c3._0x58ed37,0x1ba,0x1cc,_0x8156c3._0x3dc7a9)](_0x403fc3,_0x2ebbad))[_0x2efa7a(_0x8156c3._0x405cb6,0xd6,_0x8156c3._0xfb9098,_0x8156c3._0x5e45b5)](()=>null);_0x1bfd4c['push']({'path':_0x2ebbad,'mtime':_0x444b6e?.[_0xcaeff9(0x6cd,0x597,_0x8156c3._0x5e8e67,0x582)]??0x0});}_0x1bfd4c['sort']((_0x4f6c77,_0x161d02)=>_0x161d02[_0x2efa7a(0x1c6,0x260,0x23f,0x2e9)]-_0x4f6c77[_0xcaeff9(0x5eb,0x5ef,0x690,0x6a8)]);const _0x3e2f18=_0x1bfd4c[_0x2efa7a(0x198,_0x8156c3._0x27a7bc,0x20f,_0x8156c3._0x1b85dd)](_0x41be8d=>_0x41be8d['path']),_0x5b5027=_0x3e2f18[_0xcaeff9(0x4b7,_0x8156c3._0x3f7a4e,0x586,_0x8156c3._0x51d50e)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0x45ac8a['pattern']:''+_0x3e2f18['join']('\x0a')+(_0x5c8de7?_0xcaeff9(0x618,0x579,_0x8156c3._0x5a89a9,_0x8156c3._0x7583fe):'');return yield createToolOutput(_0x5b5027,{'pattern':_0x45ac8a[_0x2efa7a(0x1fd,0x1f9,_0x8156c3._0x2b4d4b,0x1f1)],'searchPath':_0x1904ac[_0xcaeff9(_0x8156c3._0x44f759,0x4c4,0x580,0x38a)](_0x59940f,_0x403fc3)||'.','matches':_0x3e2f18,'count':_0x3e2f18['length'],'truncated':_0x5c8de7}),void 0x0;}});}import{stat as _0x1fd8b4}from'fs/promises';import*as _0x574d67 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x4b4528={}){const _0x5a2add={_0xb1895c:0x104,_0xe6b2f0:0x1a7,_0x3ad042:0x1e4,_0x1a4cb7:0x28e,_0x275a07:0x373,_0x2fdb6e:0x278,_0x256eb8:0xe1,_0xeed368:0x19e,_0x1ea5b7:0x1d2,_0x3ab0e5:0x2cb,_0x18be72:0x157,_0x3ad33a:0x149,_0x22f44f:0x1ad,_0x3a483f:0x118,_0x188b19:0x192,_0x4fb99b:0x259,_0x856c5e:0x316,_0xc8eb67:0x266,_0x4363b0:0x2c4,_0x1e92e2:0x24c},_0x2780a3={_0x379973:0x1d9,_0x4fe554:0x285,_0x415965:0x467,_0x1e4307:0x47c,_0xa3740e:0x572,_0x388c7d:0x580,_0x4656b7:0x4fe,_0x4263cd:0x460,_0x780503:0x290,_0x5e5505:0x388,_0xb09d66:0x3d9,_0x4375f8:0x481,_0x4dba6a:0x386,_0x1aa87a:0x3ff,_0x301db7:0x367,_0x173bfa:0x39a,_0x469a24:0x26d,_0x409695:0x36b,_0x375c82:0x321,_0xdb6cf8:0x46f,_0x1fd578:0x3ae,_0x10cb2e:0x50f,_0x1a9a54:0x54c,_0xb6ddd1:0x3e8,_0x2d4c9f:0x419,_0xe8b725:0x420,_0x1c2aa2:0x385,_0x12157c:0x43c,_0x1431f5:0x45d,_0x1fa9dc:0x409,_0x306cf4:0x3f6,_0x2566d5:0x40a,_0x4239de:0x308,_0x5a338f:0x490,_0x11c1f3:0x463,_0x1569d9:0x48f,_0x1055e0:0x42e,_0x44e4fa:0x41c,_0x1de82e:0x3ed,_0x3704b6:0x2ea,_0x21a5f2:0x44b,_0x178cf9:0x311,_0x263b5c:0x2a5,_0x835d4b:0x38f,_0x5246b3:0x326,_0x4e19bc:0x3fc,_0x24465a:0x42c,_0x1028f2:0x232,_0x1e3302:0x3f8,_0x5400c7:0x3cd,_0x1ac788:0x31e,_0x377fbd:0x41c,_0x47023a:0x2e3,_0x38bd1c:0x1b8,_0x2fa9ca:0x11e,_0x7b4734:0x371,_0x26684a:0x274,_0x5207eb:0x3e4,_0x4f5780:0x31f,_0x350bbb:0x351,_0x55c4e3:0x4f8,_0x129485:0x301,_0x5b21eb:0x254,_0x217f49:0x487,_0x2c5de2:0x3e5,_0x4122d5:0x25a,_0x19864c:0x2fe,_0x32d994:0x316,_0x4696fc:0x491,_0x459bc7:0x4c0,_0x59422e:0x388,_0x44a814:0x406,_0x347e86:0x3a0,_0x45b5fd:0x4f7,_0x7f01f2:0x3fd,_0x444942:0x487,_0x3e5b4e:0x353,_0x16088d:0x342,_0x294324:0x34f,_0x4c0135:0x309,_0x1d09a8:0x4c7,_0x1715de:0x538,_0xec1fce:0x16a,_0x5a9a00:0x2c3,_0x5bcddf:0x2f4,_0x79f8b6:0x466,_0x2006fe:0x572},_0x20060e={_0x5b2c21:0x2c4},_0x4fd064=_0x574d67[_0x9b871a(0x247,_0x5a2add._0xb1895c,0x12f,0x222)](_0x4b4528['defaultCwd']??process[_0x4071a1(-_0x5a2add._0xe6b2f0,-0xd2,-0x2b1,-0x1fa)]()),_0x2b1cb4=(_0x4b4528[_0x9b871a(_0x5a2add._0x3ad042,_0x5a2add._0x1a4cb7,0x2e9,0x2d5)]??[])['map'](_0x17f9d6=>_0x574d67[_0x9b871a(0x345,0x10b,0xe3,0x222)](_0x17f9d6));function _0x9b871a(_0xcaf72e,_0x2a08ac,_0x225ded,_0x5bb85){return _0x2ecd0e(_0x5bb85- -_0x20060e._0x5b2c21,_0x2a08ac-0x1f4,_0x225ded-0x1d,_0x225ded);}const _0x111f3a=_0x4b4528['limit']??0x64,_0x36832c=_0x4b4528[_0x9b871a(_0x5a2add._0x275a07,_0x5a2add._0x2fdb6e,0x36b,0x2a8)]??_0x4071a1(-_0x5a2add._0x256eb8,-0x100,-0x229,-0x11b);function _0x4071a1(_0x393384,_0x513b93,_0x529738,_0x4e7ebb){return _0x198698(_0x4e7ebb- -0xa0,_0x513b93-0x147,_0x393384,_0x4e7ebb-0xa6);}return defineTool({'name':_0x36832c,'description':_0x9b871a(_0x5a2add._0xeed368,_0x5a2add._0x1ea5b7,0x2f7,_0x5a2add._0x3ab0e5),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x4071a1(-_0x5a2add._0x18be72,-_0x5a2add._0x3ad33a,-0x20d,-_0x5a2add._0x22f44f)},'path':{'type':_0x4071a1(-_0x5a2add._0x3a483f,-0x1ca,-_0x5a2add._0x188b19,-_0x5a2add._0x22f44f)},'include':{'type':_0x9b871a(0x216,_0x5a2add._0x4fb99b,_0x5a2add._0x856c5e,_0x5a2add._0xc8eb67)},'limit':{'type':_0x4071a1(-_0x5a2add._0x4363b0,-_0x5a2add._0x1e92e2,-0x112,-0x195)},'context':{'type':'number'}},'required':[_0x4071a1(-_0x5a2add._0xe6b2f0,-0x14a,-0x287,-0x232)]},async *'execute'(_0x416b26){const _0x33c04a={_0x1e3fe5:0x7c,_0x465680:0x186},_0x1bc361={_0x1cce94:0xa0,_0x345749:0x153,_0x6b9d28:0x4b7};if(_0x416b26[_0x25771c(_0x2780a3._0x379973,0x374,0x2e6,_0x2780a3._0x4fe554)][_0x25771c(0x406,_0x2780a3._0x415965,0x39d,0x384)]()[_0x15df69(0x47c,0x3f8,0x42c,0x438)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});function _0x25771c(_0x20673a,_0x5cd2fc,_0x46ade4,_0x34b931){return _0x4071a1(_0x20673a,_0x5cd2fc-_0x1bc361._0x1cce94,_0x46ade4-_0x1bc361._0x345749,_0x34b931-_0x1bc361._0x6b9d28);}const _0x519bc7=resolveAllowedPath(_0x4fd064,_0x2b1cb4,_0x416b26['path']??'.'),_0x2df420=await _0x1fd8b4(_0x519bc7)['catch'](()=>null),_0x64ccd2=_0x2df420?.[_0x15df69(0x511,_0x2780a3._0x1e4307,0x40a,0x57a)]()??![],_0xbeac9e=_0x2df420?.[_0x15df69(0x672,_0x2780a3._0xa3740e,_0x2780a3._0x388c7d,_0x2780a3._0x4656b7)]()??![];if(!_0x64ccd2&&!_0xbeac9e)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x416b26[_0x15df69(_0x2780a3._0x1e4307,0x388,0x24e,_0x2780a3._0x4263cd)]??'.'),{'path':_0x416b26[_0x15df69(_0x2780a3._0x780503,_0x2780a3._0x5e5505,0x398,0x406)]??'.'});const _0x277ade=_0x416b26[_0x25771c(_0x2780a3._0xb09d66,0x300,0x54d,0x436)]??_0x111f3a,_0x4dd609=Math['max'](0x1,Math[_0x15df69(0x530,0x4eb,0x5bb,_0x2780a3._0x4375f8)](_0x277ade)),_0x4ac5ca=await search({'cwd':_0xbeac9e?_0x519bc7:_0x574d67[_0x15df69(_0x2780a3._0x4dba6a,0x314,0x2fc,_0x2780a3._0x1aa87a)](_0x519bc7),'pattern':_0x416b26[_0x15df69(0x394,_0x2780a3._0x301db7,0x45f,0x230)],'glob':_0xbeac9e?_0x416b26['include']:void 0x0,'limit':_0x4dd609,'file':_0x64ccd2?_0x519bc7:void 0x0,'context':_0x416b26[_0x15df69(0x419,_0x2780a3._0x173bfa,_0x2780a3._0x469a24,_0x2780a3._0x409695)]}),_0x474a09=new Map();for(const _0x24d5ec of _0x4ac5ca){if(!_0x474a09[_0x25771c(0x374,0x3d8,0x3d5,0x382)](_0x24d5ec[_0x25771c(0x480,_0x2780a3._0x375c82,_0x2780a3._0xdb6cf8,_0x2780a3._0x1fd578)])){const _0x347af7=await _0x1fd8b4(_0x24d5ec[_0x15df69(0x401,0x490,_0x2780a3._0x10cb2e,_0x2780a3._0x1a9a54)])[_0x15df69(0x447,0x41f,0x532,_0x2780a3._0xb6ddd1)](()=>null);_0x474a09[_0x15df69(_0x2780a3._0x2d4c9f,_0x2780a3._0xe8b725,_0x2780a3._0x1c2aa2,_0x2780a3._0x12157c)](_0x24d5ec['filePath'],{'matches':[],'mtime':_0x347af7?.[_0x15df69(_0x2780a3._0x1431f5,_0x2780a3._0x1fa9dc,0x35e,0x33e)]??0x0});}_0x474a09[_0x15df69(0x321,_0x2780a3._0x306cf4,_0x2780a3._0x2566d5,_0x2780a3._0x4239de)](_0x24d5ec[_0x15df69(0x35f,_0x2780a3._0x5a338f,_0x2780a3._0x11c1f3,0x4e5)])?.[_0x15df69(0x35d,_0x2780a3._0x1569d9,0x375,0x42b)][_0x15df69(_0x2780a3._0x1055e0,_0x2780a3._0x44e4fa,_0x2780a3._0x1de82e,_0x2780a3._0x3704b6)](_0x24d5ec);}const _0x2e5421=[..._0x474a09[_0x15df69(0x534,0x4bd,_0x2780a3._0x21a5f2,0x5ac)]()][_0x25771c(_0x2780a3._0x178cf9,_0x2780a3._0x263b5c,_0x2780a3._0x835d4b,0x37b)]((_0x1e72db,_0x44115d)=>_0x44115d[0x1][_0x25771c(0x260,0x276,0x3da,0x37f)]-_0x1e72db[0x1][_0x25771c(0x2ae,0x244,0x467,0x37f)]),_0xef701d=_0x4ac5ca[_0x25771c(0x308,_0x2780a3._0x5246b3,0x4c4,_0x2780a3._0x4e19bc)](_0x53dcaa=>!_0x53dcaa[_0x15df69(0x4f5,0x569,0x52b,0x698)])[_0x25771c(_0x2780a3._0x24465a,_0x2780a3._0x1028f2,0x444,0x316)],_0x227691=_0x4ac5ca[_0x15df69(0x2db,_0x2780a3._0x1e3302,0x2da,_0x2780a3._0x5400c7)]>=_0x4dd609,_0x5ca336=_0x64ccd2?_0x574d67[_0x15df69(_0x2780a3._0x1ac788,0x314,_0x2780a3._0x377fbd,0x1f1)](_0x519bc7):_0x519bc7;function _0x15df69(_0x2a2f94,_0x76a88b,_0x184893,_0x5af54c){return _0x9b871a(_0x2a2f94-_0x33c04a._0x1e3fe5,_0x76a88b-0xd4,_0x2a2f94,_0x76a88b-_0x33c04a._0x465680);}let _0x5575d2='';if(_0x4ac5ca[_0x25771c(0x23a,_0x2780a3._0x47023a,0x296,0x316)]===0x0)_0x5575d2=_0x25771c(_0x2780a3._0x38bd1c,0x2dd,_0x2780a3._0x2fa9ca,0x229)+_0x416b26[_0x25771c(_0x2780a3._0x7b4734,0x343,_0x2780a3._0x26684a,0x285)];else{_0x5575d2=_0x15df69(_0x2780a3._0x5207eb,0x3bf,_0x2780a3._0x4f5780,_0x2780a3._0x350bbb)+_0xef701d+'\x20match'+(_0xef701d===0x1?'':'es')+'\x0a';for(const [_0x50ec4e,_0x223f60]of _0x2e5421){const _0x3dc8ef=_0x64ccd2?_0x574d67[_0x25771c(0x464,_0x2780a3._0x55c4e3,0x57d,0x474)](_0x50ec4e):_0x574d67[_0x25771c(0x2e1,_0x2780a3._0x129485,0x2a1,_0x2780a3._0x5b21eb)](_0x5ca336,_0x50ec4e);_0x5575d2+='\x0a'+_0x3dc8ef+':\x0a';for(const _0xa13ad0 of _0x223f60[_0x25771c(0x2ff,_0x2780a3._0x217f49,0x465,0x3ad)]){const _0x3889e8=_0xa13ad0['lineText'][_0x25771c(_0x2780a3._0x2c5de2,_0x2780a3._0x4122d5,_0x2780a3._0x19864c,_0x2780a3._0x32d994)]>MAX_LINE_LENGTH?_0xa13ad0[_0x15df69(0x5a8,_0x2780a3._0x4696fc,0x57b,_0x2780a3._0x459bc7)][_0x15df69(0x5e4,0x4ab,_0x2780a3._0x59422e,0x592)](0x0,MAX_LINE_LENGTH)+_0x25771c(0x4d8,_0x2780a3._0x44a814,0x499,_0x2780a3._0x347e86):_0xa13ad0[_0x15df69(_0x2780a3._0x45b5fd,_0x2780a3._0x4696fc,0x5cb,_0x2780a3._0x7f01f2)],_0x504471=_0xa13ad0[_0x25771c(0x495,_0x2780a3._0x4e19bc,0x54b,_0x2780a3._0x444942)]?'\x20\x20':'>\x20';_0x5575d2+=_0x504471+_0x15df69(0x28a,_0x2780a3._0x3e5b4e,0x260,0x48b)+_0xa13ad0['lineNum']+':\x20'+_0x3889e8+'\x0a';}}_0x227691&&(_0x5575d2+=_0x25771c(0x25f,_0x2780a3._0x16088d,_0x2780a3._0x294324,_0x2780a3._0x4c0135));}const _0x463f3d={'searchPath':_0x574d67['relative'](_0x4fd064,_0x519bc7)||'.','pattern':_0x416b26[_0x25771c(0x3c4,0x2e2,0x1e4,0x285)],'matchCount':_0xef701d,'fileCount':_0x474a09[_0x15df69(_0x2780a3._0x1d09a8,_0x2780a3._0x1715de,0x43f,0x485)],'truncated':_0x227691};return _0xbeac9e&&_0x416b26[_0x25771c(_0x2780a3._0xec1fce,_0x2780a3._0x5a9a00,_0x2780a3._0x5bcddf,0x252)]!==void 0x0&&(_0x463f3d['include']=_0x416b26[_0x25771c(0x1cc,_0x2780a3._0x4f5780,0x1f8,0x252)]),yield createToolOutput(_0x5575d2[_0x15df69(0x4e4,_0x2780a3._0x79f8b6,0x3b8,_0x2780a3._0x2006fe)](),_0x463f3d),void 0x0;}});}import{readdir as _0x2f53f6,readFile as _0x269efe,stat as _0x1ea0a5}from'fs/promises';import*as _0x2674f6 from'path';import*as _0x43de2f from'yaml';async function countTextLines(_0x251657){const _0x184e24={_0x18efa6:0x137,_0x3a3cc8:0x103,_0x52ee18:0x6d,_0x3981c4:0x18c,_0x552dae:0x233,_0x24fc3e:0x348,_0x920464:0x259},_0x5a054a={_0x5edc34:0x185,_0x39a022:0x7c},_0x2907e1={_0x17ae85:0x14a},_0x4bd57e=await _0x269efe(_0x251657)['catch'](()=>null);function _0x306354(_0x38f1db,_0x3fc3e6,_0x5a9c2b,_0x1c23b5){return _0x198698(_0x5a9c2b-0x2e8,_0x3fc3e6-0x168,_0x1c23b5,_0x1c23b5-_0x2907e1._0x17ae85);}if(!_0x4bd57e||isProbablyBinary(_0x4bd57e))return void 0x0;function _0xc8db46(_0x22163c,_0x1101cb,_0x3357eb,_0x322736){return _0x198698(_0x322736-_0x5a054a._0x5edc34,_0x1101cb-0x8a,_0x22163c,_0x322736-_0x5a054a._0x39a022);}return _0x4bd57e[_0xc8db46(_0x184e24._0x18efa6,0x13f,_0x184e24._0x3a3cc8,_0x184e24._0x52ee18)](_0x306354(_0x184e24._0x3981c4,0x36b,_0x184e24._0x552dae,0x366))[_0x306354(_0x184e24._0x24fc3e,_0x184e24._0x920464,0x305,0x270)](/\r?\n/)['length'];}function createLsTool(_0x2c9727={}){const _0xe36512={_0x4c78dc:0xfa,_0x3bdb80:0xde,_0x458bc6:0x18e,_0x3b6e7b:0x566,_0x574776:0xf9,_0x33ce04:0x101,_0x5c11f0:0x2,_0x52c63e:0xff,_0x11074b:0x483,_0x14a19b:0x388,_0x17ddf1:0x152,_0x44b175:0x80,_0xb89d25:0x4b5,_0x358f6f:0x412,_0x2972cb:0x30f,_0x412351:0x352,_0x5228a0:0x401,_0x534883:0x3db,_0x45da20:0x3e9,_0x135fe6:0x489,_0x9b43a1:0x431},_0x37c129={_0x1da627:0x139,_0x41b512:0x1a,_0x4fc2f0:0x1ba,_0x36e4dc:0x40,_0x3b4760:0x7c,_0x2546f5:0x1d,_0x498e20:0xae,_0x5d1c8f:0x238,_0x1526ff:0x1b5,_0x2c33b4:0x6d,_0x26730d:0xb4,_0x5629b8:0x13d,_0x552711:0xad,_0x2d69ff:0x79,_0x121c7a:0x141,_0x9b477d:0x177,_0x378e30:0x187,_0x37ea61:0xdc,_0x54f17a:0xf7,_0x29917e:0xe6,_0xafefa2:0x5,_0x22b1b2:0x106,_0x57835f:0x34,_0xa5f3a4:0x62,_0x43670e:0x2f0,_0x2b9431:0x1ec,_0x12ae10:0xa0,_0x1d69e9:0x8e,_0x27f1f5:0x1ca,_0x233240:0xb,_0x1de8a1:0xdf,_0x5ad6b6:0x149,_0x4ab91e:0x2b,_0x3b4fb1:0x25,_0x5f5bdd:0x1be,_0x374669:0x108,_0x65fd6d:0x160,_0x59f26e:0xe8,_0x292bb8:0x16d,_0xc16fef:0x1d0,_0x4dbcb4:0xb6,_0xd2f64b:0x169,_0x250257:0x80,_0x2d7ec9:0x1d9,_0x14975c:0x160,_0xe2a24:0x7f,_0x1d8de5:0x276,_0x305a4a:0x97},_0x2e7f73={_0x2574ab:0x92},_0x5c1f90={_0xbe4c31:0x5dd,_0xe40207:0x191},_0x1901bd={_0x2bea54:0x5ec},_0x52d058={_0x43aa9e:0x57e},_0x522def=_0x2674f6[_0x491f91(-_0xe36512._0x4c78dc,-_0xe36512._0x3bdb80,-_0xe36512._0x458bc6,-0x106)](_0x2c9727[_0x16d8c2(0x584,0x5f1,_0xe36512._0x3b6e7b,0x675)]??process[_0x491f91(-_0xe36512._0x574776,-_0xe36512._0x33ce04,-_0xe36512._0x5c11f0,-0x10f)]()),_0x2aee46=(_0x2c9727[_0x491f91(-_0xe36512._0x52c63e,0xb,-0x109,-0x53)]??[])[_0x16d8c2(_0xe36512._0x11074b,0x522,0x4b6,_0xe36512._0x14a19b)](_0x58cbbd=>_0x2674f6[_0x16d8c2(0x4e4,0x3d5,0x42d,0x496)](_0x58cbbd)),_0x314f49=_0x2c9727[_0x491f91(-_0xe36512._0x574776,-_0xe36512._0x17ddf1,0x26,-_0xe36512._0x44b175)]??'Ls';function _0x16d8c2(_0x447e9b,_0x197437,_0x2d7915,_0x5ed777){return _0x198698(_0x2d7915-_0x52d058._0x43aa9e,_0x197437-0x138,_0x197437,_0x5ed777-0x1bb);}function _0x491f91(_0x39ad0f,_0x5af1f2,_0x59d529,_0x33b0fe){return _0x2ecd0e(_0x33b0fe- -_0x1901bd._0x2bea54,_0x5af1f2-0x1da,_0x59d529-0x1,_0x5af1f2);}return defineTool({'name':_0x314f49,'description':_0x16d8c2(_0xe36512._0xb89d25,0x3eb,_0xe36512._0x358f6f,_0xe36512._0x2972cb),'inputSchema':{'type':_0x16d8c2(_0xe36512._0x412351,0x36b,_0xe36512._0x5228a0,_0xe36512._0x534883),'properties':{'path':{'type':'string'},'limit':{'type':_0x16d8c2(0x3b9,_0xe36512._0x45da20,_0xe36512._0x135fe6,_0xe36512._0x9b43a1)}}},async *'execute'(_0x214261){const _0x5532c4=_0x214261['path']??'.',_0x1b25a4=resolveAllowedPath(_0x522def,_0x2aee46,_0x5532c4),_0x1f14a6=await _0x1ea0a5(_0x1b25a4)[_0x12fc2b(-_0x37c129._0x1da627,-0x8d,-0x1a5,-0x246)](()=>null);if(!_0x1f14a6?.[_0x12fc2b(_0x37c129._0x41b512,0x11d,-0x85,0x4f)]())throw new ToolExecutionError(_0x37b88a(-0x1c9,-0xc9,-_0x37c129._0x4fc2f0,-0x157)+_0x5532c4,{'path':_0x5532c4});const _0x58b977=_0x214261[_0x12fc2b(-_0x37c129._0x36e4dc,0x40,-0x13b,_0x37c129._0x3b4760)]??0x3e8;function _0x12fc2b(_0x33d041,_0xa51d5c,_0xffab37,_0x2a857d){return _0x16d8c2(_0x33d041-0xc1,_0x2a857d,_0x33d041- -_0x5c1f90._0xbe4c31,_0x2a857d-_0x5c1f90._0xe40207);}const _0x3eef6b=Math[_0x12fc2b(-_0x37c129._0x2546f5,-_0x37c129._0x498e20,-0x9c,0x1e)](Math[_0x12fc2b(-_0x37c129._0x5d1c8f,-0x344,-_0x37c129._0x1526ff,-0x2b1)](Math[_0x12fc2b(-_0x37c129._0x2c33b4,_0x37c129._0x26730d,0x39,-_0x37c129._0x5629b8)](_0x58b977),0x1),0x2710);function _0x37b88a(_0x4706f9,_0x4fb92b,_0x56e3ae,_0x270e55){return _0x16d8c2(_0x4706f9-0x9d,_0x270e55,_0x56e3ae- -0x5ea,_0x270e55-_0x2e7f73._0x2574ab);}const _0x5d12cb=await _0x2f53f6(_0x1b25a4),_0x1f0570=[];for(const _0x3c0f63 of _0x5d12cb[_0x12fc2b(-_0x37c129._0x552711,-0x18f,-_0x37c129._0x2d69ff,-_0x37c129._0x121c7a)](0x0,_0x3eef6b)){const _0x375f52=_0x2674f6[_0x37b88a(-0x63,-0xa0,-_0x37c129._0x9b477d,-_0x37c129._0x378e30)](_0x1b25a4,_0x3c0f63),_0x4dd3e5=await _0x1ea0a5(_0x375f52)['catch'](()=>null);if(!_0x4dd3e5)continue;let _0x339c7b='other';if(_0x4dd3e5[_0x12fc2b(-_0x37c129._0x37ea61,-_0x37c129._0x54f17a,-_0x37c129._0x29917e,-0x192)]())_0x339c7b='file';else{if(_0x4dd3e5[_0x12fc2b(0x1a,0xfd,-_0x37c129._0xafefa2,_0x37c129._0x22b1b2)]())_0x339c7b=_0x12fc2b(-0x87,-_0x37c129._0x57835f,-0x158,_0x37c129._0xa5f3a4);else{if(_0x4dd3e5['isSymbolicLink']())_0x339c7b=_0x37b88a(-0xe5,-_0x37c129._0x43670e,-_0x37c129._0x2b9431,-0x27c);}}const _0x39f5dd={'name':_0x3c0f63,'type':_0x339c7b,'size':_0x4dd3e5[_0x37b88a(-0xfa,-_0x37c129._0x12ae10,-0x2d,_0x37c129._0x1d69e9)],'mtime':_0x4dd3e5[_0x12fc2b(-0x14f,-0x1df,-_0x37c129._0x27f1f5,-0x3c)],'mode':_0x4dd3e5['mode']},_0x48c659=_0x339c7b===_0x12fc2b(-0x1bd,-0x19e,-0xe8,-0x2a7)?await countTextLines(_0x375f52):void 0x0;if(_0x48c659!==void 0x0)_0x39f5dd[_0x37b88a(-_0x37c129._0x233240,0x1c,-0xdf,-_0x37c129._0x1de8a1)]=_0x48c659;_0x1f0570[_0x37b88a(-0x214,-0x9e,-_0x37c129._0x5ad6b6,-_0x37c129._0x4ab91e)](_0x39f5dd);}_0x1f0570[_0x37b88a(-_0x37c129._0x3b4fb1,-_0x37c129._0x5f5bdd,-_0x37c129._0x374669,-0x1eb)]((_0x1f5891,_0x304918)=>_0x1f5891['name'][_0x37b88a(-0x1aa,-0x128,-0x1b5,-0x2a7)](_0x304918['name']));const _0x21fb7b={'path':_0x5532c4,'total':_0x1f0570[_0x12fc2b(-_0x37c129._0x65fd6d,-_0x37c129._0x2c33b4,-0x12e,-_0x37c129._0x59f26e)],'truncated':_0x5d12cb[_0x37b88a(-0xc1,-0x1d2,-_0x37c129._0x292bb8,-_0x37c129._0xc16fef)]>_0x3eef6b,'entries':_0x1f0570};return yield createToolOutput(_0x43de2f['stringify'](_0x21fb7b,{'indent':0x2,'lineWidth':0x0})[_0x12fc2b(-_0x37c129._0x4dbcb4,-_0x37c129._0xd2f64b,-0x16f,_0x37c129._0x250257)](),{'path':_0x5532c4,'total':_0x1f0570[_0x37b88a(-0x162,-_0x37c129._0x2d7ec9,-0x16d,-0xea)],'truncated':_0x5d12cb[_0x12fc2b(-_0x37c129._0x14975c,-_0x37c129._0xe2a24,-_0x37c129._0x1d8de5,-_0x37c129._0x305a4a)]>_0x3eef6b,'limit':_0x3eef6b,'entries':_0x1f0570}),void 0x0;}});}import{stat as _0x1f05f8}from'fs/promises';import _0x4695e0 from'path';import{fileURLToPath as _0x184994}from'url';function severityName(_0x945d64){const _0x4b4e54={_0x1f5353:0x2d,_0x52f2a0:0x85,_0xd7df84:0x41,_0x4aeba5:0xc0,_0xced776:0x74},_0x12d8bb={_0xa7f021:0x26,_0x38712a:0x1d2},_0x584c5d={_0x177b07:0x51b};function _0x51a943(_0x3b0a62,_0x7143a1,_0x60fe37,_0x32c199){return _0x2ecd0e(_0x3b0a62- -_0x584c5d._0x177b07,_0x7143a1-0xf,_0x60fe37-0xdd,_0x7143a1);}function _0x2ad4ea(_0xb29238,_0x46b94a,_0x3a5d8b,_0x4f0ee6){return _0x2ecd0e(_0x46b94a- -0x6f6,_0x46b94a-_0x12d8bb._0xa7f021,_0x3a5d8b-_0x12d8bb._0x38712a,_0xb29238);}switch(_0x945d64){case 0x1:return _0x51a943(0x105,-_0x4b4e54._0x1f5353,0x1f,0x1b1);case 0x2:return'Warning';case 0x3:return'Information';case 0x4:return _0x51a943(-_0x4b4e54._0x52f2a0,-_0x4b4e54._0xd7df84,-_0x4b4e54._0x4aeba5,-_0x4b4e54._0xced776);default:return'Diagnostic';}}function formatSingleHover(_0x327517){const _0x42ad05={_0x3ea268:0x15d,_0x3e414a:0x196,_0x3e90df:0xab,_0x2b358a:0x4f,_0x4dcc80:0x23,_0x446fff:0x10c,_0x142b68:0xbd,_0x553753:0x7f,_0x2a36c5:0x193,_0x57e830:0x132,_0x46e66f:0x122,_0xba2709:0x1b3,_0x1d0b1d:0xc6,_0x2e3304:0x1a0,_0x5cf1f2:0x9e,_0x22c3ec:0x144,_0x3f140b:0x98,_0x49b100:0x194,_0x1fc67e:0x5,_0x276742:0x207,_0x4da15a:0xee},_0x1b5e1d={_0x13f156:0x1ec},_0xc217ff={_0xeae15a:0x147},_0x55179d=_0x327517[_0x1b19f5(0xa8,_0x42ad05._0x3ea268,_0x42ad05._0x3e414a,0x223)];if(typeof _0x55179d===_0x1aea83(_0x42ad05._0x3e90df,_0x42ad05._0x2b358a,0x126,0x40))return _0x55179d;if(Array[_0x1b19f5(0x2e,_0x42ad05._0x4dcc80,0x12d,_0x42ad05._0x446fff)](_0x55179d))return _0x55179d[_0x1b19f5(_0x42ad05._0x142b68,_0x42ad05._0x553753,_0x42ad05._0x2a36c5,0x6a)](_0x1ecb3b=>typeof _0x1ecb3b==='string'?_0x1ecb3b:_0x1ecb3b[_0x1b19f5(0x166,0x1b3,0x10b,0x253)])[_0x1aea83(0xfa,0x1e4,0x14a,_0x42ad05._0x57e830)](Boolean)['join']('\x0a\x0a');function _0x1b19f5(_0x34cec1,_0x4bdb52,_0x134fd8,_0x2e5189){return _0x198698(_0x4bdb52-_0xc217ff._0xeae15a,_0x4bdb52-0x88,_0x34cec1,_0x2e5189-0x9c);}function _0x1aea83(_0x4a6c4c,_0x25a0f1,_0x21a76a,_0x35bf1d){return _0x198698(_0x35bf1d-0x14d,_0x25a0f1-0x156,_0x4a6c4c,_0x35bf1d-_0x1b5e1d._0x13f156);}if(_0x1b19f5(0xd8,0x5f,_0x42ad05._0x46e66f,0xe9)in _0x55179d)return _0x55179d[_0x1b19f5(0x25c,_0x42ad05._0xba2709,0x2b9,0x275)];return _0x55179d[_0x1aea83(_0x42ad05._0x1d0b1d,_0x42ad05._0x2e3304,_0x42ad05._0x5cf1f2,_0x42ad05._0x22c3ec)]?'```'+_0x55179d[_0x1aea83(0x103,0x254,_0x42ad05._0x3f140b,0x144)]+'\x0a'+_0x55179d[_0x1b19f5(0x179,0x1b3,0x1ee,0x1f9)]+_0x1aea83(_0x42ad05._0x49b100,-_0x42ad05._0x1fc67e,0x2d,0x130):_0x55179d[_0x1b19f5(_0x42ad05._0x276742,_0x42ad05._0xba2709,0x18d,_0x42ad05._0x4da15a)];}function formatHover(_0x1da3f3){const _0x1dab79={_0x3fa572:0x6b,_0x19fa3b:0x69,_0x16e560:0xf9,_0x5322a9:0x15b,_0x8d8b38:0x234,_0x49fd2f:0xe2},_0x55f37b={_0x368426:0x16a};function _0x5be3cf(_0xb2f7f6,_0x823d4e,_0x4b7917,_0x3ef720){return _0x2ecd0e(_0x4b7917- -0x50f,_0x823d4e-0xd6,_0x4b7917-0x1e2,_0xb2f7f6);}if(_0x1da3f3[_0x1d66e3(_0x1dab79._0x3fa572,0xb0,_0x1dab79._0x19fa3b,_0x1dab79._0x16e560)]===0x0)return _0x1d66e3(0x47,0x8a,_0x1dab79._0x5322a9,_0x1dab79._0x8d8b38);function _0x1d66e3(_0x5715f1,_0x41f174,_0x13e30d,_0x1ded0f){return _0x198698(_0x13e30d-_0x55f37b._0x368426,_0x41f174-0x8a,_0x1ded0f,_0x1ded0f-0x169);}return _0x1da3f3[_0x1d66e3(0x27,-0x3d,0xa2,0xdb)](formatSingleHover)['join'](_0x1d66e3(0x1cc,-0x25,_0x1dab79._0x49fd2f,-0x39));}function locationPath(_0x136b08){const _0x4c6e8e={_0x51e405:0xa7,_0x4696c5:0x1b,_0x164b50:0x13},_0xb2129f={_0x1fbffe:0x39b};if(!_0x136b08['startsWith'](_0x290c92(0x1b8,_0x4c6e8e._0x51e405,_0x4c6e8e._0x4696c5,-_0x4c6e8e._0x164b50)))return _0x136b08;function _0x290c92(_0x5d31c1,_0x52e9c9,_0x20bf77,_0x2e3d0a){return _0x2ecd0e(_0x52e9c9- -_0xb2129f._0x1fbffe,_0x52e9c9-0x18a,_0x20bf77-0xd3,_0x2e3d0a);}return _0x184994(_0x136b08);}function formatLocations(_0x3dc952){const _0x177a46={_0x5dafb4:0x425,_0x44309e:0x4bb,_0xc10c18:0x4f4,_0x576bb3:0x58d},_0xe360dc={_0x40db4b:0x5e8,_0x2168e8:0x51d,_0x5a318d:0x5a1,_0x464a1d:0x5f1,_0x2d8d73:0x551,_0x3cc00a:0x55a,_0x3a6234:0x150,_0x4fc9f0:0xa7,_0x4ffd5f:0x17,_0x170a54:0x63,_0x2a60ed:0x37},_0x33fcc2={_0x48d1dd:0x81},_0x40e064={_0x21b403:0x11f,_0x5e85b4:0xd4};if(_0x3dc952[_0x2c021b(_0x177a46._0x5dafb4,0x417,_0x177a46._0x44309e,_0x177a46._0xc10c18)]===0x0)return _0x2c021b(0x45e,0x4c0,0x5e8,_0x177a46._0x576bb3);function _0x2c021b(_0x2567f6,_0xf0f4dd,_0xc62b32,_0x49eff3){return _0x2ecd0e(_0xf0f4dd- -_0x40e064._0x21b403,_0xf0f4dd-_0x40e064._0x5e85b4,_0xc62b32-0xfa,_0xc62b32);}function _0x59d6dc(_0x1487b7,_0x5a4186,_0x85d8d1,_0x5bc99d){return _0x198698(_0x5bc99d- -0x5a,_0x5a4186-0x1d3,_0x5a4186,_0x5bc99d-_0x33fcc2._0x48d1dd);}return _0x3dc952['map'](_0x8f43c5=>{const _0x200a5c={_0x21c1c5:0x15f},_0x111fee={_0x3d6f16:0x19,_0x117ec8:0x1a3,_0x30ef4f:0x611};function _0x5a01ea(_0xfc08c9,_0x4f295f,_0x2e742d,_0x395280){return _0x59d6dc(_0xfc08c9-_0x111fee._0x3d6f16,_0x4f295f,_0x2e742d-_0x111fee._0x117ec8,_0x2e742d-_0x111fee._0x30ef4f);}function _0x8be3c2(_0x4ed877,_0x5e184d,_0x4651c5,_0x46619a){return _0x59d6dc(_0x4ed877-_0x200a5c._0x21c1c5,_0x4651c5,_0x4651c5-0x100,_0x46619a-0xb3);}const _0x5bdc02=_0x8f43c5[_0x5a01ea(_0xe360dc._0x40db4b,0x4d0,_0xe360dc._0x2168e8,_0xe360dc._0x5a318d)][_0x5a01ea(_0xe360dc._0x464a1d,_0xe360dc._0x2d8d73,_0xe360dc._0x3cc00a,0x61f)];return locationPath(_0x8f43c5[_0x8be3c2(-0xfc,0xa6,-_0xe360dc._0x3a6234,-0x15)])+':'+(_0x5bdc02[_0x8be3c2(0x1a1,_0xe360dc._0x4fc9f0,-_0xe360dc._0x4ffd5f,0x69)]+0x1)+':'+(_0x5bdc02[_0x8be3c2(-0xed,0x14,_0xe360dc._0x170a54,_0xe360dc._0x2a60ed)]+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x2d0cdb){const _0x53060d={_0x2dd120:0x166};function _0x3042ce(_0x4ceff1,_0x3a643c,_0x54001f,_0x1fecd2){return _0x198698(_0x3a643c-0x653,_0x3a643c-0x108,_0x1fecd2,_0x1fecd2-_0x53060d._0x2dd120);}return'range'in _0x2d0cdb&&_0x3042ce(0x5de,0x555,0x4d8,0x4a8)in _0x2d0cdb;}function formatSymbols(_0x294a20){const _0x1f9767={_0x44b135:0x214,_0x12b925:0x1f7},_0x3a58af={_0x4c5952:0x182,_0x499c3b:0x219,_0x441964:0xc4,_0x91dfb:0x1fe,_0x55b26f:0xd7,_0x3bdee5:0xbf,_0x5bca43:0x1e1,_0xb59c1e:0x5e8,_0x5b0792:0x474,_0x141b6b:0x4ff,_0x2efa22:0x488,_0x1094ca:0x5eb,_0x58b615:0x660,_0x4d5f89:0x4a8,_0x182514:0x407,_0x3c1586:0x544,_0xbaede2:0x57f,_0x5bccc1:0x4ce,_0x20ed22:0x551,_0x5a2352:0x4b1,_0x355e01:0x3c7,_0xdccba7:0x388,_0x3cc879:0x3db,_0x55b297:0x2df,_0x284a01:0x411,_0x578c57:0x4f8,_0x352cd2:0x580,_0xff8c0a:0x531,_0x511ccb:0x12d,_0x5d02cc:0x2c4,_0x552ebc:0x62d,_0x1c7805:0x5a9,_0x17082d:0x5df,_0xa791e0:0x355,_0x2e4745:0x250,_0x2fec0a:0x5f3,_0x40cb6c:0x425,_0x4fa080:0x4ff,_0x3d9fb2:0x58f,_0x5cbed5:0x26c},_0x443d09={_0x4c856d:0x662,_0x4015f9:0x13c},_0x4bd91f={_0x120432:0x392,_0xf46bc4:0xe3},_0x2f4352={_0x446dae:0x18,_0x527f6d:0x19b},_0x5d380d={_0x5c8a67:0x8f};if(_0x294a20['length']===0x0)return'No\x20symbols\x20found';function _0xe3cfc8(_0x511a26,_0x208236,_0x29c90c,_0x4cec79){return _0x198698(_0x511a26- -0xc9,_0x208236-_0x5d380d._0x5c8a67,_0x4cec79,_0x4cec79-0x1b2);}function _0xf5e649(_0x84b43f,_0x39ebe7,_0x4b480a,_0x4a5643){return _0x198698(_0x4a5643- -_0x2f4352._0x446dae,_0x39ebe7-0x126,_0x39ebe7,_0x4a5643-_0x2f4352._0x527f6d);}return _0x294a20[_0xe3cfc8(-0x191,-0x185,-0x245,-_0x1f9767._0x44b135)](_0x4677bb=>{if(isDocumentSymbol(_0x4677bb))return _0x4677bb[_0x19aac5(_0x3a58af._0x4c5952,_0x3a58af._0x499c3b,_0x3a58af._0x441964,_0x3a58af._0x91dfb)]+'\x20('+_0x4677bb[_0x19aac5(0x198,_0x3a58af._0x55b26f,_0x3a58af._0x3bdee5,_0x3a58af._0x5bca43)]+')\x20['+(_0x4677bb[_0x1f839c(_0x3a58af._0xb59c1e,_0x3a58af._0x5b0792,_0x3a58af._0x141b6b,0x4b2)][_0x1f839c(0x534,0x53d,0x53c,_0x3a58af._0x2efa22)][_0x1f839c(0x5ea,_0x3a58af._0x1094ca,0x5a9,_0x3a58af._0x58b615)]+0x1)+':'+(_0x4677bb[_0x1f839c(_0x3a58af._0x4d5f89,0x463,0x4ff,0x3e6)][_0x1f839c(0x58e,_0x3a58af._0x182514,0x53c,0x55d)]['character']+0x1)+']';function _0x19aac5(_0x427402,_0x1e08b7,_0x5248a4,_0x45ccca){return _0xe3cfc8(_0x45ccca-_0x4bd91f._0x120432,_0x1e08b7-0x48,_0x5248a4-_0x4bd91f._0xf46bc4,_0x427402);}function _0x1f839c(_0x39756a,_0x1cd7c2,_0x5cdf05,_0x244655){return _0xe3cfc8(_0x5cdf05-_0x443d09._0x4c856d,_0x1cd7c2-_0x443d09._0x4015f9,_0x5cdf05-0x112,_0x1cd7c2);}return _0x4677bb[_0x1f839c(_0x3a58af._0x3c1586,_0x3a58af._0xbaede2,_0x3a58af._0x5bccc1,0x587)]+'\x20('+_0x4677bb[_0x1f839c(0x44e,_0x3a58af._0x20ed22,_0x3a58af._0x5a2352,_0x3a58af._0x355e01)]+')\x20'+locationPath(_0x4677bb[_0x19aac5(_0x3a58af._0xdccba7,_0x3a58af._0x3cc879,_0x3a58af._0x55b297,0x317)][_0x1f839c(_0x3a58af._0x284a01,_0x3a58af._0x578c57,0x52b,0x62e)])+':'+(_0x4677bb['location'][_0x1f839c(_0x3a58af._0x352cd2,0x4d8,0x4ff,_0x3a58af._0xff8c0a)][_0x19aac5(_0x3a58af._0x511ccb,_0x3a58af._0x5d02cc,0x178,0x26c)][_0x1f839c(_0x3a58af._0x552ebc,0x6e3,_0x3a58af._0x1c7805,_0x3a58af._0x17082d)]+0x1)+':'+(_0x4677bb[_0x19aac5(_0x3a58af._0xa791e0,0x2bb,_0x3a58af._0x2e4745,0x317)][_0x1f839c(_0x3a58af._0x2fec0a,_0x3a58af._0x40cb6c,_0x3a58af._0x4fa080,_0x3a58af._0x3d9fb2)][_0x19aac5(0x1e6,0x242,0x348,_0x3a58af._0x5cbed5)]['character']+0x1);})[_0xf5e649(-0x146,-_0x1f9767._0x12b925,-0x21f,-0x123)]('\x0a');}function formatDiagnostics(_0x5a21d1){const _0x30b99b={_0x6b94a4:0x78,_0xc93e1:0x2e7,_0x38f4b6:0x57,_0x595312:0xd3,_0x4d0af1:0xa0},_0x3f8827={_0x297f44:0x290,_0x856227:0x2a0,_0x1f4d29:0x525,_0x2df7f6:0x529,_0x57f62e:0x3e8,_0x2ecc7f:0x3a7,_0x4c686b:0x3bb,_0x12cdaf:0x3ae,_0x445dfa:0x34a,_0x1110c8:0x3e5,_0x478fc7:0x159,_0x48ed2d:0x1a8,_0x59e725:0x27e},_0x4a2295={_0x1b7d6b:0x1d6},_0x2a635d={_0x255167:0x21b,_0x72aee:0x1a2},_0x4ba970={_0x208482:0xee,_0x1b9082:0xe0},_0x490540={_0x4cfe3a:0x518,_0x23d0aa:0x52};if(_0x5a21d1[_0x940d61(0x1e,0x127,0xe1,-_0x30b99b._0x6b94a4)]===0x0)return _0x1aea5c(-0x1de,-0x163,-0x1e4,-_0x30b99b._0xc93e1);function _0x940d61(_0x561e2c,_0x4c8b58,_0x333b95,_0x1332b5){return _0x2ecd0e(_0x561e2c- -_0x490540._0x4cfe3a,_0x4c8b58-0x1e4,_0x333b95-_0x490540._0x23d0aa,_0x1332b5);}function _0x1aea5c(_0xd0dec1,_0x133554,_0x2a8558,_0x336cf7){return _0x198698(_0x2a8558- -0x97,_0x133554-_0x4ba970._0x208482,_0xd0dec1,_0x336cf7-_0x4ba970._0x1b9082);}return _0x5a21d1[_0x940d61(_0x30b99b._0x38f4b6,_0x30b99b._0x595312,_0x30b99b._0x4d0af1,-0x28)](_0xf94bd2=>{function _0xa9796c(_0x1ffdce,_0x2d79f2,_0x2296dc,_0x1719c1){return _0x940d61(_0x1719c1-_0x2a635d._0x255167,_0x2d79f2-_0x2a635d._0x72aee,_0x2296dc-0xb9,_0x2296dc);}const _0x306a54=_0xf94bd2[_0xa9796c(0x18d,_0x3f8827._0x297f44,0x193,_0x3f8827._0x856227)][_0x36aa44(0x440,0x44f,_0x3f8827._0x1f4d29,_0x3f8827._0x2df7f6)];function _0x36aa44(_0x23302a,_0xcfeff1,_0x65c898,_0x22aff6){return _0x1aea5c(_0xcfeff1,_0xcfeff1-0x9,_0x23302a-0x534,_0x22aff6-_0x4a2295._0x1b7d6b);}return severityName(_0xf94bd2[_0x36aa44(0x2ec,_0x3f8827._0x57f62e,_0x3f8827._0x2ecc7f,0x290)])+'\x20['+(_0x306a54[_0xa9796c(_0x3f8827._0x4c686b,0x2b1,_0x3f8827._0x12cdaf,_0x3f8827._0x445dfa)]+0x1)+':'+(_0x306a54[_0xa9796c(0x2a3,0x3a5,_0x3f8827._0x1110c8,0x318)]+0x1)+']\x20'+_0xf94bd2[_0xa9796c(0x159,_0x3f8827._0x478fc7,_0x3f8827._0x48ed2d,_0x3f8827._0x59e725)];})['join']('\x0a');}function formatIncomingCalls(_0x2f7b6f){const _0x473513={_0xb420ad:0x634,_0x42a238:0x30};if(_0x2f7b6f['length']===0x0)return _0x38ef2e(0x722,0x5d2,0x55f,_0x473513._0xb420ad);function _0x5e979c(_0x17f78f,_0x59c180,_0x5aa70e,_0x3f0775){return _0x2ecd0e(_0x3f0775- -0x55c,_0x59c180-0x7c,_0x5aa70e-0xed,_0x5aa70e);}function _0x38ef2e(_0x3f231b,_0x7c45,_0x8e6d9,_0x407b13){return _0x2ecd0e(_0x407b13-0x5b,_0x7c45-0xda,_0x8e6d9-0x192,_0x7c45);}return _0x2f7b6f['map'](_0x533094=>_0x533094['from'][_0x5e979c(-0xde,-0xd3,-0x8c,0x10)])[_0x5e979c(0x4a,0x9,-0x63,-_0x473513._0x42a238)]('\x0a');}function formatOutgoingCalls(_0x5144b0){const _0x4747c1={_0x532e97:0x587,_0x5b8dfe:0x563,_0x581d48:0x63d,_0x5538ab:0x537},_0x3165f4={_0x2a85e0:0x30c,_0x49f70f:0x8c,_0x31b9b7:0x1b1};function _0x1feb9d(_0x4d738b,_0x20b9fe,_0x24afdd,_0x30afb7){return _0x2ecd0e(_0x4d738b- -0x52,_0x20b9fe-0x10a,_0x24afdd-0x74,_0x24afdd);}function _0x4762d3(_0x51c6ee,_0xad7819,_0x5b89a6,_0x2e0fdf){return _0x2ecd0e(_0x2e0fdf- -_0x3165f4._0x2a85e0,_0xad7819-_0x3165f4._0x49f70f,_0x5b89a6-_0x3165f4._0x31b9b7,_0x51c6ee);}if(_0x5144b0[_0x1feb9d(0x4e4,0x431,0x40f,0x431)]===0x0)return _0x1feb9d(_0x4747c1._0x532e97,_0x4747c1._0x5b8dfe,0x613,_0x4747c1._0x581d48);return _0x5144b0[_0x1feb9d(0x51d,0x400,_0x4747c1._0x5538ab,0x64c)](_0x367faa=>_0x367faa['to'][_0x4762d3(0x1e7,0x2a8,0x2f6,0x260)])[_0x1feb9d(0x4da,0x49c,0x57d,0x434)]('\x0a');}function toStructured(_0x2ab231){const _0x5997b8={_0x1a06f2:0x36f,_0x4a072e:0x2ae,_0x3b71e8:0x2a4,_0x2487e4:0xf7},_0x572794={_0x4c1554:0x6fb,_0xc30645:0x1de},_0x4cb8dd={_0x56478d:0x73};function _0x175c2b(_0x5c4a52,_0xfc1355,_0x517ad6,_0x41c2c5){return _0x2ecd0e(_0x517ad6- -0x659,_0xfc1355-_0x4cb8dd._0x56478d,_0x517ad6-0x61,_0x5c4a52);}function _0x25321b(_0x294ab3,_0x7d2d88,_0x173fba,_0x29350f){return _0x2ecd0e(_0x173fba- -_0x572794._0x4c1554,_0x7d2d88-0x41,_0x173fba-_0x572794._0xc30645,_0x294ab3);}return JSON[_0x25321b(-0x3b0,-_0x5997b8._0x1a06f2,-_0x5997b8._0x4a072e,-0x3ec)](JSON[_0x25321b(-_0x5997b8._0x3b71e8,-0x196,-0x1b1,-_0x5997b8._0x2487e4)](_0x2ab231));}async function assertFile(_0x1cdce5){const _0x5a439a={_0x53bcdd:0x643,_0x11190a:0x496,_0xea071e:0x5b2,_0x60f610:0x57f},_0x1b7700={_0x5bab24:0x15a,_0x4eb8d6:0x74};function _0x598ba1(_0x3edf83,_0x197432,_0x26c23f,_0x4597d4){return _0x198698(_0x26c23f- -0x11,_0x197432-0x182,_0x197432,_0x4597d4-0x1d5);}const _0xdb56a7=await _0x1f05f8(_0x1cdce5);function _0x2991fe(_0x19dded,_0x1a37cd,_0x57dcd3,_0x3e7ce7){return _0x2ecd0e(_0x3e7ce7-0x45,_0x1a37cd-_0x1b7700._0x5bab24,_0x57dcd3-_0x1b7700._0x4eb8d6,_0x1a37cd);}if(!_0xdb56a7[_0x2991fe(0x5b1,0x724,0x528,0x5ff)]())throw new ToolExecutionError(_0x2991fe(_0x5a439a._0x53bcdd,_0x5a439a._0x11190a,_0x5a439a._0xea071e,_0x5a439a._0x60f610)+_0x1cdce5,{'path':_0x1cdce5});}function validatePosition(_0x3618c3,_0x4193c9){const _0x44666e={_0x3ae267:0x2b6,_0x11078d:0xb7,_0xcb581d:0x114},_0x637f9d={_0x96026b:0x26b,_0x364b06:0x10e,_0x2b6ae2:0xd7};function _0x20bccd(_0xf1407c,_0x3ec67f,_0x443fbb,_0xb13ff9){return _0x2ecd0e(_0xf1407c- -_0x637f9d._0x96026b,_0x3ec67f-_0x637f9d._0x364b06,_0x443fbb-_0x637f9d._0x2b6ae2,_0xb13ff9);}function _0x536fad(_0x51e5e3,_0x1cd3bf,_0x165f78,_0x3401d0){return _0x2ecd0e(_0x3401d0- -0x536,_0x1cd3bf-0x1a4,_0x165f78-0x154,_0x165f78);}if(!Number[_0x20bccd(0x3df,_0x44666e._0x3ae267,0x3cd,0x355)](_0x3618c3)||_0x3618c3<0x1)throw new ToolExecutionError('line\x20must\x20be\x20a\x20positive\x20integer',{'line':_0x3618c3});if(!Number[_0x536fad(0x190,0xc7,_0x44666e._0x11078d,_0x44666e._0xcb581d)](_0x4193c9)||_0x4193c9<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x4193c9});}function createLspTool(_0x493a11={}){const _0x1e951e={_0x3a59fd:0x26c,_0x3b7c65:0x170,_0xa05bc1:0x68,_0x1c47e4:0x1e,_0x59b748:0x1b3,_0x52b15e:0x157,_0x15d31e:0x226,_0x3616ac:0x11f,_0x2145de:0x81,_0x562154:0xb9,_0x52ad35:0x10e,_0x404c54:0x6f,_0x54809c:0x7,_0x4c9c1d:0xac,_0x20fc0b:0xd8,_0xe9e518:0x4d,_0x5da826:0x15,_0x2e3f36:0x98,_0x30a770:0x89,_0x1fd0be:0x66,_0x3761bd:0x1c4,_0x6bd440:0xa7,_0x741e97:0x6d,_0x29e9c5:0xa5,_0x1a2c0e:0x82,_0x5eea99:0xd2,_0x1d87a9:0x10c,_0x4d520c:0x12f,_0x4861e1:0x27d,_0x3aed72:0xec,_0x121df7:0x192,_0x38b525:0x84,_0x13c83a:0x195,_0x517af7:0x58,_0x554728:0xea,_0x58449c:0x166,_0x168749:0x16b,_0x3186ec:0x88,_0xb773d0:0xfb,_0x475348:0x99,_0x546c5c:0xe9,_0x46302e:0x6f,_0x5d7404:0x13f,_0x2a903e:0x12e,_0xdb9394:0x3d},_0x565451={_0xa8cb12:0x366,_0x4d2c80:0x3e3,_0x2fe0f6:0x14c,_0x3f6615:0xbc,_0x575f3f:0x340,_0x16f1ac:0x255,_0x27613a:0x3d0,_0x311638:0x381,_0x5124af:0x3b9,_0x1f056c:0x39a,_0x30f0fc:0x3a9,_0x544132:0x221,_0xb720d3:0x205,_0xa8c9d9:0x1c9,_0x5a0018:0x275,_0x3bdb91:0x2b1,_0x4b72e0:0x209,_0x17e3a2:0x26d,_0x2a65e3:0x33b,_0x50bd73:0x21e,_0x4199fe:0x186,_0x1021a5:0x2de,_0x37340c:0x338,_0x405e90:0x211,_0x44a773:0x1ac,_0x3f9308:0x36e,_0x4b55e4:0x2aa,_0xcce87a:0x2d4,_0x4dc8ba:0x29f,_0x1a369e:0x3a6,_0x361b20:0x37c,_0x5abd40:0x3c6,_0x324bac:0x318,_0x4a3b7d:0x429,_0x40f974:0x26a,_0x2e112f:0x256,_0x12148e:0x30f,_0x2efc65:0x23f,_0x231143:0x378,_0x5cbf87:0x343,_0x4d0594:0x294,_0x5d9304:0x2a9,_0x8b6d8d:0x30d,_0x580b6c:0x225,_0x5c6771:0x351,_0x488af5:0x39e,_0x199cbb:0x476,_0x5253a3:0x2ec,_0x5009ea:0x176,_0xa4fea1:0x353,_0x501b37:0x290,_0x2bc048:0x247,_0x4893c3:0x17a,_0x28b57d:0xcc,_0x3e8dd4:0x261,_0x1c26f4:0x2a5,_0xa69ccf:0x289,_0x245a9c:0x8e,_0x2add99:0xee,_0x54b007:0x40,_0x364577:0x233,_0x502760:0x1b6,_0x96cdcb:0x1fd},_0x2dd31e={_0x3fe161:0x1f,_0x3184b4:0xeb,_0x19ecf9:0xdd},_0x3c461f={_0xf34164:0x18f};function _0x271ebc(_0x2b4e42,_0x3086e3,_0x45aaa8,_0x5e5cbe){return _0x2ecd0e(_0x5e5cbe- -0x5d8,_0x3086e3-_0x3c461f._0xf34164,_0x45aaa8-0x3c,_0x45aaa8);}const _0x592add=_0x4695e0[_0xff887d(-0x1df,-_0x1e951e._0x3a59fd,-0x1a7,-_0x1e951e._0x3b7c65)](_0x493a11['defaultCwd']??process[_0x271ebc(-_0x1e951e._0xa05bc1,_0x1e951e._0x1c47e4,-_0x1e951e._0x59b748,-0xfb)]());function _0xff887d(_0x40e55b,_0x583ace,_0x5e1449,_0x2dc5df){return _0x198698(_0x2dc5df- -_0x2dd31e._0x3fe161,_0x583ace-_0x2dd31e._0x3184b4,_0x5e1449,_0x2dc5df-_0x2dd31e._0x19ecf9);}const _0x1b781d=(_0x493a11[_0x271ebc(-0x4d,-0x95,-_0x1e951e._0x52b15e,-0x3f)]??[])[_0xff887d(-_0x1e951e._0x15d31e,-_0x1e951e._0x3616ac,-_0x1e951e._0x2145de,-0xe7)](_0x5a6952=>_0x4695e0[_0xff887d(-0xac,-0x247,-0xaf,-0x170)](_0x5a6952)),_0x17917e=_0x493a11[_0xff887d(-0xa8,-_0x1e951e._0x562154,0x27,-0xea)]??'Lsp';return defineTool({'name':_0x17917e,'description':_0xff887d(-0x95,0x11,-0x7d,-_0x1e951e._0x52ad35),'inputSchema':{'type':_0xff887d(-_0x1e951e._0x404c54,-0x279,-0x263,-0x19c),'properties':{'operation':{'type':'string','enum':[_0x271ebc(-_0x1e951e._0x54809c,-_0x1e951e._0x4c9c1d,-_0x1e951e._0x20fc0b,-_0x1e951e._0xe9e518),_0x271ebc(-0x47,0xb,0xd5,-_0x1e951e._0x5da826),_0x271ebc(-_0x1e951e._0x2e3f36,_0x1e951e._0x30a770,0x55,_0x1e951e._0x1fd0be),_0xff887d(-_0x1e951e._0x3761bd,-0x89,-_0x1e951e._0x6bd440,-0x100),_0x271ebc(0x7c,-_0x1e951e._0x741e97,-0x55,-_0x1e951e._0x29e9c5),_0x271ebc(0x53,0x168,0xdf,0x36),_0x271ebc(-_0x1e951e._0x1a2c0e,-_0x1e951e._0x5eea99,-_0x1e951e._0x1d87a9,-_0x1e951e._0x4d520c),_0x271ebc(-_0x1e951e._0x4861e1,-0x24f,-_0x1e951e._0x3aed72,-_0x1e951e._0x121df7),'outgoingCalls',_0x271ebc(-_0x1e951e._0x38b525,-_0x1e951e._0x741e97,-0x39,0xb6)]},'filePath':{'type':_0x271ebc(-_0x1e951e._0x13c83a,-_0x1e951e._0x517af7,-0x1cc,-0xae)},'line':{'type':_0xff887d(-0x237,-0xb6,-0xbe,-0x114)},'character':{'type':_0xff887d(-0x5b,-_0x1e951e._0x554728,-0x1c9,-0x114)},'query':{'type':'string'}},'required':['operation',_0xff887d(0x75,-_0x1e951e._0x58449c,-_0x1e951e._0x168749,-_0x1e951e._0x3186ec),_0x271ebc(_0x1e951e._0xb773d0,_0x1e951e._0x475348,_0x1e951e._0x546c5c,_0x1e951e._0x46302e),_0x271ebc(_0x1e951e._0x5d7404,_0x1e951e._0x2a903e,0x12d,_0x1e951e._0xdb9394)]},async *'execute'(_0x35e2a3){const _0x24c0e7={_0x412f44:0x108,_0x363b44:0x105,_0x501949:0x390},_0x221229={_0x268da0:0x1b4},_0x13a3d0=_0x493a11[_0x14d48b(0x35a,_0x565451._0xa8cb12,0x299,_0x565451._0x4d2c80)];if(!_0x13a3d0)throw new ToolExecutionError(_0x14d48b(_0x565451._0x2fe0f6,0x34,_0x565451._0x3f6615,0x121));if(!_0x13a3d0[_0x478d21(0x380,_0x565451._0x575f3f,0x407,_0x565451._0x16f1ac)]())throw new ToolExecutionError(_0x14d48b(0x36b,0x2a3,0x37d,_0x565451._0x27613a));const _0x178e45=_0x35e2a3['operation'];validatePosition(_0x35e2a3[_0x478d21(_0x565451._0x311638,_0x565451._0x5124af,0x423,_0x565451._0x1f056c)],_0x35e2a3['character']);if(_0x178e45===_0x478d21(0x26d,0x34b,_0x565451._0x30f0fc,0x291)){if(!_0x35e2a3[_0x14d48b(_0x565451._0x544132,_0x565451._0xb720d3,_0x565451._0xa8c9d9,0x16a)]?.[_0x14d48b(_0x565451._0x5a0018,0x285,_0x565451._0x3bdb91,_0x565451._0x4b72e0)]())throw new ToolExecutionError('workspaceSymbol\x20requires\x20a\x20non-empty\x20query');const _0x429b03=await _0x13a3d0[_0x478d21(_0x565451._0x17e3a2,0x35b,0x25c,0x19a)](_0x35e2a3[_0x14d48b(0x221,_0x565451._0x2a65e3,_0x565451._0x50bd73,_0x565451._0x4199fe)][_0x478d21(_0x565451._0x1021a5,_0x565451._0x37340c,0x326,0x3e8)]());return yield createToolOutput(formatSymbols(_0x429b03),{'operation':_0x178e45,'query':_0x35e2a3[_0x14d48b(_0x565451._0x544132,0x270,0x20c,_0x565451._0x405e90)],'symbols':_0x429b03}),void 0x0;}function _0x14d48b(_0x19f6d9,_0x318852,_0x18c43f,_0x3e9c6a){return _0x271ebc(_0x19f6d9-_0x221229._0x268da0,_0x318852-0x1c7,_0x318852,_0x19f6d9-0x2a9);}const _0xbb8d81=resolveAllowedPath(_0x592add,_0x1b781d,_0x35e2a3[_0x14d48b(0x29f,_0x565451._0x44a773,_0x565451._0x3f9308,_0x565451._0x4b55e4)]);await assertFile(_0xbb8d81);if(!await _0x13a3d0['hasClients'](_0xbb8d81))throw new ToolExecutionError(_0x14d48b(0x272,0x177,_0x565451._0xcce87a,0x297)+_0x35e2a3[_0x14d48b(_0x565451._0x4dc8ba,_0x565451._0x1a369e,0x327,0x300)],{'filePath':_0x35e2a3[_0x14d48b(_0x565451._0x4dc8ba,_0x565451._0x361b20,0x3c5,_0x565451._0x5abd40)]});await _0x13a3d0['touchFile'](_0xbb8d81,!![]);function _0x478d21(_0x3bb12b,_0x33d3c3,_0x873930,_0x2df9ca){return _0xff887d(_0x3bb12b-_0x24c0e7._0x412f44,_0x33d3c3-_0x24c0e7._0x363b44,_0x873930,_0x3bb12b-_0x24c0e7._0x501949);}const _0x3b0ed6={'file':_0xbb8d81,'line':_0x35e2a3[_0x14d48b(_0x565451._0x324bac,_0x565451._0x4a3b7d,0x270,0x34e)]-0x1,'character':_0x35e2a3[_0x14d48b(0x2e6,_0x565451._0x40f974,_0x565451._0x2e112f,0x382)]-0x1};switch(_0x178e45){case _0x14d48b(_0x565451._0x12148e,0x43c,0x1db,_0x565451._0x2efc65):{const _0xdc79c8=await _0x13a3d0[_0x478d21(_0x565451._0x231143,_0x565451._0x5cbf87,0x368,_0x565451._0x4d0594)](_0x3b0ed6);return yield createToolOutput(formatHover(_0xdc79c8),{'operation':_0x178e45,'filePath':_0xbb8d81,'hover':_0xdc79c8}),void 0x0;}case'diagnostics':{const _0x23ebcb=await _0x13a3d0[_0x14d48b(_0x565451._0x5d9304,0x1e9,0x374,_0x565451._0x8b6d8d)](_0xbb8d81);return yield createToolOutput(formatDiagnostics(_0x23ebcb),{'operation':_0x178e45,'filePath':_0xbb8d81,'diagnostics':_0x23ebcb}),void 0x0;}case _0x478d21(0x2c5,0x232,0x37e,0x3f2):{const _0x44f244=await _0x13a3d0['definition'](_0x3b0ed6);return yield createToolOutput(formatLocations(_0x44f244),{'operation':_0x178e45,'filePath':_0xbb8d81,'locations':_0x44f244}),void 0x0;}case _0x14d48b(0x294,_0x565451._0x580b6c,_0x565451._0x5c6771,0x278):{const _0x2c1ef3=await _0x13a3d0['references'](_0x3b0ed6);return yield createToolOutput(formatLocations(_0x2c1ef3),{'operation':_0x178e45,'filePath':_0xbb8d81,'locations':_0x2c1ef3}),void 0x0;}case'goToImplementation':{const _0x2457ac=await _0x13a3d0[_0x478d21(_0x565451._0x488af5,_0x565451._0x488af5,0x452,_0x565451._0x199cbb)](_0x3b0ed6);return yield createToolOutput(formatLocations(_0x2457ac),{'operation':_0x178e45,'filePath':_0xbb8d81,'locations':_0x2457ac}),void 0x0;}case _0x478d21(0x290,_0x565451._0x5253a3,_0x565451._0x5009ea,_0x565451._0xa4fea1):{const _0x4e1df8=await _0x13a3d0[_0x478d21(_0x565451._0x501b37,_0x565451._0x2bc048,0x2b6,0x1c8)](_0xbb8d81);return yield createToolOutput(formatSymbols(_0x4e1df8),{'operation':_0x178e45,'filePath':_0xbb8d81,'symbols':_0x4e1df8}),void 0x0;}case _0x14d48b(_0x565451._0x4893c3,0x76,_0x565451._0x28b57d,_0x565451._0x3e8dd4):{const _0x3da829=await _0x13a3d0[_0x14d48b(_0x565451._0x4893c3,_0x565451._0x1c26f4,_0x565451._0xa69ccf,_0x565451._0x245a9c)](_0x3b0ed6);return yield createToolOutput(formatSymbols(_0x3da829),{'operation':_0x178e45,'filePath':_0xbb8d81,'symbols':toStructured(_0x3da829)}),void 0x0;}case _0x478d21(0x180,_0x565451._0x2add99,0x6a,_0x565451._0x54b007):{const _0x2268e5=await _0x13a3d0[_0x14d48b(0x117,0x110,0x6d,-0x26)](_0x3b0ed6);return yield createToolOutput(formatIncomingCalls(_0x2268e5),{'operation':_0x178e45,'filePath':_0xbb8d81,'calls':toStructured(_0x2268e5)}),void 0x0;}case _0x478d21(0x1b6,0x221,_0x565451._0x364577,0x2a3):{const _0x1b59f4=await _0x13a3d0[_0x478d21(_0x565451._0x502760,_0x565451._0x96cdcb,0x283,0x189)](_0x3b0ed6);return yield createToolOutput(formatOutgoingCalls(_0x1b59f4),{'operation':_0x178e45,'filePath':_0xbb8d81,'calls':toStructured(_0x1b59f4)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x230a91,readFile as _0x266116,writeFile as _0x3ff838}from'fs/promises';import{join as _0x2d74bd}from'path';function sanitizeStorageKey(_0x106857){const _0x4521f4={_0x562c87:0x3dd,_0x35f97f:0x2ac,_0x4d4f25:0x30e,_0x2510db:0xba,_0x1fc32f:0x1db},_0x190665={_0x47b1dd:0x37e};function _0x344996(_0x4e1857,_0x49f521,_0x21823f,_0x58bea7){return _0x198698(_0x58bea7-_0x190665._0x47b1dd,_0x49f521-0x50,_0x4e1857,_0x58bea7-0x19c);}function _0x485505(_0x14a3b4,_0x213ec2,_0x31d71d,_0x252d85){return _0x2ecd0e(_0x252d85- -0x6a3,_0x213ec2-0xd1,_0x31d71d-0xc5,_0x14a3b4);}return _0x106857['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x344996(0x215,_0x4521f4._0x562c87,_0x4521f4._0x35f97f,_0x4521f4._0x4d4f25)](/^_+|_+$/g,'')||_0x344996(_0x4521f4._0x2510db,0x2b6,_0x4521f4._0x1fc32f,0x1e7);}function storagePath(_0x4d7dcc){const _0x1e9b4f={_0x131700:0x1ba,_0x53c402:0x179,_0x1edf1d:0xe1,_0x4e9b51:0x1fb,_0x5f0c76:0xec,_0x1f2704:0x33,_0x313512:0x116,_0x4e5efc:0xc2,_0x48d28a:0x14b},_0xb114f9={_0x5cb793:0xd7},_0x52b91f={_0x2e2482:0x11e,_0x11a286:0x19a,_0x10cda5:0xb9},_0x2b1b3c=sanitizeStorageKey(_0x4d7dcc[_0x365057(-_0x1e9b4f._0x131700,-_0x1e9b4f._0x53c402,-0x1e0,-0x1c8)][_0x365057(-_0x1e9b4f._0x1edf1d,-_0x1e9b4f._0x4e9b51,-_0x1e9b4f._0x5f0c76,-_0x1e9b4f._0x1f2704)]?.[_0x365057(_0x1e9b4f._0x313512,_0x1e9b4f._0x4e5efc,0x65,0x71)]??_0x4d7dcc['serverName']);function _0x2cf3b2(_0x5dc52a,_0x1f15a6,_0x404f0b,_0x29d4b2){return _0x198698(_0x29d4b2-_0x52b91f._0x2e2482,_0x1f15a6-_0x52b91f._0x11a286,_0x1f15a6,_0x29d4b2-_0x52b91f._0x10cda5);}function _0x365057(_0x3118da,_0x208cc6,_0x17db9a,_0x43a210){return _0x2ecd0e(_0x17db9a- -0x64f,_0x208cc6-_0xb114f9._0x5cb793,_0x17db9a-0xee,_0x43a210);}return _0x2d74bd(_0x4d7dcc['storageDir'],_0x2b1b3c+_0x2cf3b2(0x80,-0x1a9,-_0x1e9b4f._0x48d28a,-0x77));}async function readStore(_0x1d54e2){const _0x50fcbb={_0x203196:0xc0,_0x12f1c1:0x39,_0x52df5b:0x7f,_0x52dbf8:0x1e4,_0x1cc702:0xcb,_0x5bd2bd:0x144,_0x151909:0x7d,_0xc7731b:0x97,_0x3b4f0b:0xe5,_0x580ea7:0x75,_0x146c03:0x35,_0x3ae108:0x139,_0x4ca7e:0x2c},_0x1665f8={_0x41bb27:0x16};function _0x3e0431(_0x20b3c9,_0x139c90,_0x21fef2,_0x35928c){return _0x198698(_0x20b3c9-0x12a,_0x139c90-0x1a9,_0x35928c,_0x35928c-0x149);}function _0x3f50b0(_0xfcc0b,_0x4d99d8,_0x91de9,_0x15f251){return _0x198698(_0xfcc0b- -_0x1665f8._0x41bb27,_0x4d99d8-0x136,_0x91de9,_0x15f251-0xcc);}try{return JSON[_0x3e0431(-_0x50fcbb._0x203196,-_0x50fcbb._0x12f1c1,_0x50fcbb._0x52df5b,-_0x50fcbb._0x52dbf8)](await _0x266116(_0x1d54e2,_0x3f50b0(-_0x50fcbb._0x1cc702,-0x1d6,-0x9f,-_0x50fcbb._0x5bd2bd)));}catch(_0x4ff017){if(_0x4ff017 instanceof Error&&_0x3f50b0(-0x5b,_0x50fcbb._0x151909,_0x50fcbb._0xc7731b,-0x197)in _0x4ff017&&_0x4ff017[_0x3e0431(_0x50fcbb._0x3b4f0b,_0x50fcbb._0x580ea7,0x18d,0x203)]===_0x3f50b0(_0x50fcbb._0x146c03,_0x50fcbb._0x3ae108,0x13c,_0x50fcbb._0x4ca7e))return{};throw _0x4ff017;}}async function writeStore(_0x48eb9a,_0x20c4a6){function _0x31f7c2(_0x2a41ef,_0x4b4bdc,_0x153467,_0x1055d7){return _0x198698(_0x153467-0xca,_0x4b4bdc-0x12f,_0x2a41ef,_0x1055d7-0x197);}await _0x230a91(_0x2d74bd(_0x48eb9a,'..'),{'recursive':!![]}),await _0x3ff838(_0x48eb9a,JSON['stringify'](_0x20c4a6,null,0x2),_0x31f7c2(0xd2,0x73,0x15,-0xbf));}async function updateStore(_0x40d35c,_0x3be13c){const _0x109361=await readStore(_0x40d35c);_0x3be13c(_0x109361),await writeStore(_0x40d35c,_0x109361);}function createMcpOAuthProvider(_0x173e28){const _0x416029={_0x305a92:0x332,_0x155cfb:0x29f,_0x52095f:0x277,_0x3b257a:0x5be,_0x4adf04:0x50a,_0x2ba373:0x542,_0x1a0945:0x494,_0x47351e:0x3e0,_0x44c058:0x35c,_0x4d9d26:0x447,_0x103810:0x4a6,_0x405e6b:0x462,_0x480bc4:0x412,_0x386112:0x4b9,_0x16993a:0x202,_0xb23f82:0x294,_0x428105:0x311,_0x13af1d:0x4ee,_0x14b401:0x257,_0x167f2e:0x29f,_0x3df23a:0x1dd,_0x536f30:0x410,_0x97dba1:0x2aa,_0x2b01f6:0x417,_0x3bde85:0x5df},_0x53f119={_0x6283f7:0x433,_0x1414f2:0x2f7,_0x4ca423:0x231,_0x331219:0x279,_0xd36278:0x30b,_0x36ec21:0x19f,_0x1f31fb:0x2f4,_0x578263:0x1aa,_0x114fd5:0x192,_0x53a058:0x35d},_0x44efd2={_0x3634a5:0x2c6,_0x3aec67:0x321,_0x530a6a:0xb},_0x51a60d={_0x33d30b:0x194,_0x4a9770:0x95},_0x1dee3e={_0xe55ecd:0x102,_0x1a9f99:0x3aa},_0x5145a9={_0x402d7f:0x119,_0xe701c3:0x78},_0xbdda6d={_0x57a822:0xd},_0x22094e={_0x359354:0x6b},_0x5540b4={_0x53785c:0x81,_0x489fdd:0x36,_0x353d76:0xec,_0x35ef9c:0x74,_0xaa81f1:0xc8,_0x4dce65:0x83},_0x3fc8ab={_0x49b556:0x1d3},_0x59aa24={_0x1558ba:0xab},_0x5ade5a={_0x462267:0x190},_0x248bc5=storagePath(_0x173e28),_0x171ebf=_0x173e28[_0x1435dc(0x358,_0x416029._0x305a92,_0x416029._0x155cfb,_0x416029._0x52095f)][_0x5c1d56(_0x416029._0x3b257a,_0x416029._0x4adf04,0x517,0x657)]?.[_0x5c1d56(_0x416029._0x2ba373,0x647,0x643,_0x416029._0x1a0945)]?.[_0x1435dc(0x44d,_0x416029._0x47351e,_0x416029._0x44c058,_0x416029._0x4d9d26)]('\x20');function _0x5c1d56(_0x101fa0,_0x5170ea,_0x5d0e6b,_0x140aa7){return _0x2ecd0e(_0x101fa0-0x5b,_0x5170ea-0x19d,_0x5d0e6b-_0x5ade5a._0x462267,_0x140aa7);}const _0x1c2415={'client_name':'Nuvin','redirect_uris':[_0x173e28[_0x1435dc(_0x416029._0x103810,_0x416029._0x405e6b,_0x416029._0x480bc4,_0x416029._0x386112)]],'grant_types':[_0x5c1d56(0x5ac,0x47c,0x4f1,0x6d1),_0x1435dc(_0x416029._0x16993a,_0x416029._0xb23f82,0x2f9,0x3f8)],'response_types':['code'],'token_endpoint_auth_method':_0x1435dc(0x2fd,_0x416029._0x428105,0x3b1,_0x416029._0x13af1d),..._0x171ebf?{'scope':_0x171ebf}:{}};function _0x1435dc(_0x292e2a,_0x5a1037,_0x3699f5,_0x259264){return _0x2ecd0e(_0x3699f5- -0x1d0,_0x5a1037-0x6f,_0x3699f5-_0x59aa24._0x1558ba,_0x259264);}return{'clientMetadataUrl':_0x173e28[_0x1435dc(0x245,_0x416029._0x14b401,_0x416029._0x167f2e,_0x416029._0x3df23a)][_0x1435dc(_0x416029._0x536f30,_0x416029._0x97dba1,0x393,_0x416029._0x2b01f6)]?.[_0x5c1d56(_0x416029._0x3bde85,0x595,0x50b,0x5d0)],get 'redirectUrl'(){const _0x130e57={_0x40feef:0x33e,_0x54f0b4:0xb6};function _0x82d783(_0x5acb14,_0x2b958b,_0x7bd8f8,_0x228dc0){return _0x5c1d56(_0x2b958b- -_0x130e57._0x40feef,_0x2b958b-_0x130e57._0x54f0b4,_0x7bd8f8-0x1e2,_0x7bd8f8);}return _0x173e28[_0x82d783(_0x3fc8ab._0x49b556,0x2ff,0x1c0,0x364)];},get 'clientMetadata'(){return _0x1c2415;},async 'state'(){const _0x29b110={_0x382fae:0x81,_0x2f47c3:0xf8,_0x1a489f:0x32e};function _0x2714de(_0x40d17d,_0x28ddd6,_0x57d3dd,_0x1cf363){return _0x1435dc(_0x40d17d-0x1e9,_0x28ddd6-0xa4,_0x57d3dd-0x23c,_0x1cf363);}const _0x2cf9ea=await readStore(_0x248bc5);function _0x284c50(_0x4cd18e,_0x31d661,_0x5ea146,_0xb0edec){return _0x1435dc(_0x4cd18e-_0x29b110._0x382fae,_0x31d661-_0x29b110._0x2f47c3,_0x4cd18e- -_0x29b110._0x1a489f,_0x31d661);}if(_0x2cf9ea[_0x284c50(_0x5540b4._0x53785c,-_0x5540b4._0x489fdd,_0x5540b4._0x353d76,_0x5540b4._0x35ef9c)])return _0x2cf9ea[_0x284c50(0x81,0x63,_0x5540b4._0xaa81f1,_0x5540b4._0x4dce65)];const _0x3d8a4f=randomUUID();return await updateStore(_0x248bc5,_0x222964=>{const _0x28a338={_0x469eb4:0x6a2};function _0x3c6ada(_0x5cd5ab,_0xb7632d,_0x2ad63c,_0x4cbbf8){return _0x2714de(_0x5cd5ab-0x8b,_0xb7632d-0x16e,_0x5cd5ab- -_0x28a338._0x469eb4,_0x4cbbf8);}_0x222964[_0x3c6ada(-0xb7,-0xf3,-0x197,-0x50)]=_0x3d8a4f;}),_0x3d8a4f;},async 'clientInformation'(){function _0x308568(_0x593725,_0x316d96,_0xe66e55,_0x2893de){return _0x5c1d56(_0xe66e55- -0x6e8,_0x316d96-_0x22094e._0x359354,_0xe66e55-0x51,_0x316d96);}return(await readStore(_0x248bc5))[_0x308568(0x136,0x38,0x5,-_0xbdda6d._0x57a822)];},async 'saveClientInformation'(_0x531f95){const _0x5d834f={_0xf9c3f7:0x1b8},_0xa23e0c={_0x574d17:0x1b9};await updateStore(_0x248bc5,_0x1483ba=>{function _0xb880b6(_0x1dbfaf,_0x206a60,_0x14aa66,_0x39fcb3){return _0x163c(_0x1dbfaf- -_0xa23e0c._0x574d17,_0x206a60);}_0x1483ba[_0xb880b6(_0x5d834f._0xf9c3f7,0x2c1,0x23c,0x203)]=_0x531f95;});},async 'tokens'(){const _0x3e4238={_0x358d0e:0x65};function _0x588d0b(_0x2017af,_0xc8446d,_0x815422,_0x347f99){return _0x5c1d56(_0x2017af- -0x5f1,_0xc8446d-0x8d,_0x815422-_0x3e4238._0x358d0e,_0xc8446d);}return(await readStore(_0x248bc5))[_0x588d0b(-_0x5145a9._0x402d7f,-0x6f,-0x99,-_0x5145a9._0xe701c3)];},async 'saveTokens'(_0xc8d445){const _0x37a304={_0x5affba:0x2e1,_0x15aed2:0x240,_0x45b7b2:0x258};await updateStore(_0x248bc5,_0x4cb4e0=>{function _0x55ddb9(_0x4ceedc,_0xc3a857,_0x424685,_0x1bef03){return _0x163c(_0x424685- -0x39c,_0x1bef03);}_0x4cb4e0[_0x55ddb9(-_0x37a304._0x5affba,-0x2b4,-_0x37a304._0x15aed2,-_0x37a304._0x45b7b2)]=_0xc8d445;});},async 'redirectToAuthorization'(_0x496c9b){function _0x1dea9a(_0x5aa156,_0x255f09,_0x5e7741,_0x21aa7b){return _0x1435dc(_0x5aa156-_0x1dee3e._0xe55ecd,_0x255f09-0x94,_0x255f09- -_0x1dee3e._0x1a9f99,_0x5e7741);}await _0x173e28[_0x1dea9a(0x25,0x93,_0x51a60d._0x33d30b,_0x51a60d._0x4a9770)](_0x496c9b);},async 'saveCodeVerifier'(_0x5de21d){await updateStore(_0x248bc5,_0x46a1a4=>{_0x46a1a4['codeVerifier']=_0x5de21d;});},async 'codeVerifier'(){const _0x583dc7={_0x2f16cd:0x6d7,_0x1ec991:0x1e5},_0x120a2d={_0x67ac6c:0x9,_0x879211:0x471};function _0x22c71a(_0x47887a,_0x340921,_0x3e92fe,_0x4f4d49){return _0x1435dc(_0x47887a-0xe5,_0x340921-_0x120a2d._0x67ac6c,_0x4f4d49- -_0x120a2d._0x879211,_0x47887a);}const _0x16ce04=(await readStore(_0x248bc5))[_0x22c71a(-0x13f,-_0x44efd2._0x3634a5,-_0x44efd2._0x3aec67,-0x1f0)];if(!_0x16ce04)throw new Error(_0x22c71a(-0x36,-0x1e9,_0x44efd2._0x530a6a,-0xca));function _0x204e57(_0xc775bf,_0x5ed2c7,_0x954847,_0x32a389){return _0x5c1d56(_0x954847- -_0x583dc7._0x2f16cd,_0x5ed2c7-_0x583dc7._0x1ec991,_0x954847-0x6e,_0x32a389);}return _0x16ce04;},async 'invalidateCredentials'(_0x1bc076){const _0x1ade3d={_0x24d0eb:0x28f};await updateStore(_0x248bc5,_0x5ee218=>{const _0x18f1fb={_0x1d7c01:0xd5};(_0x1bc076==='all'||_0x1bc076==='client')&&(_0x5ee218['clientInformation']=void 0x0);function _0x261209(_0x4870d7,_0xd88651,_0x1e699f,_0x20c562){return _0x163c(_0x20c562-_0x18f1fb._0x1d7c01,_0xd88651);}function _0x40f814(_0x4645ca,_0x536942,_0xd8d2e2,_0x3abf10){return _0x163c(_0xd8d2e2-_0x1ade3d._0x24d0eb,_0x4645ca);}(_0x1bc076===_0x40f814(0x3ca,0x384,_0x53f119._0x6283f7,_0x53f119._0x1414f2)||_0x1bc076==='tokens')&&(_0x5ee218[_0x261209(0x18a,0x15b,0x249,_0x53f119._0x4ca423)]=void 0x0),(_0x1bc076===_0x261209(0x2d1,0x17b,0x158,_0x53f119._0x331219)||_0x1bc076==='verifier')&&(_0x5ee218[_0x261209(0x254,0x25a,_0x53f119._0xd36278,0x205)]=void 0x0,_0x5ee218['state']=void 0x0),(_0x1bc076===_0x261209(0x223,_0x53f119._0x36ec21,0x265,0x279)||_0x1bc076===_0x261209(0x1bd,0x23a,0x394,_0x53f119._0x1f31fb))&&(_0x5ee218[_0x261209(_0x53f119._0x578263,_0x53f119._0x114fd5,_0x53f119._0x53a058,0x2c5)]=void 0x0);});},async 'saveDiscoveryState'(_0x413982){const _0x2b9992={_0x28465d:0x26b,_0x160507:0x3a2};await updateStore(_0x248bc5,_0x2b31e5=>{const _0xf0adb9={_0x28341e:0xe2};function _0x28f419(_0x28384b,_0x27c421,_0x23b3c6,_0x3e5fb1){return _0x163c(_0x28384b-_0xf0adb9._0x28341e,_0x23b3c6);}_0x2b31e5[_0x28f419(0x2d2,0x3e4,_0x2b9992._0x28465d,_0x2b9992._0x160507)]=_0x413982;});},async 'discoveryState'(){return(await readStore(_0x248bc5))['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(_0x44cf9c,_0x53a55d){const _0x734b0c={_0x441bfb:0x6af,_0xa3573d:0x6e0,_0x3058ae:0x55b},_0x4ef758={_0x32d34d:0x65d,_0x4c22e4:0x1cc},_0x55ead0=_0xbf07a2=>_0xbf07a2['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'');function _0x1e8e82(_0x834cf8,_0x592195,_0x4a6e6b,_0xfbdfac){return _0x198698(_0xfbdfac-_0x4ef758._0x32d34d,_0x592195-0x127,_0x4a6e6b,_0xfbdfac-_0x4ef758._0x4c22e4);}return _0x1e8e82(_0x734b0c._0x441bfb,_0x734b0c._0xa3573d,_0x734b0c._0x3058ae,0x643)+_0x55ead0(_0x44cf9c)+'_'+_0x55ead0(_0x53a55d);}function isObject(_0xc1f944){const _0xbf263d={_0x7f7b17:0x50b,_0xc6dfe1:0x5b9,_0x5b5fce:0x564,_0x47011f:0x532},_0x2e16de={_0x4a316c:0x4fd,_0xd38272:0x15,_0x1b6c0e:0x19e},_0xbdb8ac={_0x216451:0x9c,_0x3af765:0x72};function _0x43f4d0(_0x234b5c,_0x14b272,_0x23105f,_0x273cf5){return _0x198698(_0x14b272-0x688,_0x14b272-_0xbdb8ac._0x216451,_0x23105f,_0x273cf5-_0xbdb8ac._0x3af765);}function _0x2a3fcb(_0x2ff1aa,_0x5dabd1,_0x5aa56f,_0x461f5b){return _0x2ecd0e(_0x461f5b- -_0x2e16de._0x4a316c,_0x5dabd1-_0x2e16de._0xd38272,_0x5aa56f-_0x2e16de._0x1b6c0e,_0x5dabd1);}return typeof _0xc1f944===_0x43f4d0(0x5a2,_0xbf263d._0x7f7b17,_0xbf263d._0xc6dfe1,0x58c)&&_0xc1f944!==null&&!Array[_0x43f4d0(0x644,_0xbf263d._0x5b5fce,_0xbf263d._0x47011f,0x466)](_0xc1f944);}function toSupportedSchema(_0x4b20ac){const _0x5525f4={_0x52cb98:0x337,_0x4bac92:0x32f,_0x15cf5e:0x369,_0x1261c2:0x25f,_0x1d726f:0x139,_0x28d66e:0x1ed,_0x164d26:0x1f6,_0x7ec5a:0x1f5,_0xb8d72f:0x1ed,_0x74f057:0x123,_0x13810b:0x191,_0x30d247:0x2d7,_0x2f5fcb:0x205,_0x4ed65d:0x339,_0x383539:0x27b,_0x4d1bcd:0x211,_0x2e0639:0x13c,_0x2abeae:0x3a4,_0x162c0a:0x30b,_0x3f9768:0x272,_0x2eee4b:0x22a,_0x7b7e07:0x353,_0x27b5a7:0xce,_0x41b910:0x244,_0x5a13ce:0x274,_0x35580e:0x35d,_0x225e8f:0x234,_0x26a282:0x2fa,_0xae4485:0x1ed,_0x5c7989:0x94,_0x293570:0x6b},_0x1c7b94={_0x40c3cc:0x33d,_0x55ca47:0x1e5},_0x2393cc={_0x54ae9d:0x93};function _0x501385(_0x27c06b,_0x388338,_0x8cff42,_0x52219d){return _0x2ecd0e(_0x52219d- -0x50d,_0x388338-_0x2393cc._0x54ae9d,_0x8cff42-0x1bc,_0x8cff42);}if(!isObject(_0x4b20ac))return void 0x0;function _0x4aab97(_0x39e37e,_0x3256a3,_0x437eba,_0x2d55ca){return _0x2ecd0e(_0x2d55ca- -_0x1c7b94._0x40c3cc,_0x3256a3-_0x1c7b94._0x55ca47,_0x437eba-0xce,_0x437eba);}if(_0x4b20ac[_0x4aab97(_0x5525f4._0x52cb98,_0x5525f4._0x4bac92,0x329,_0x5525f4._0x15cf5e)]===_0x4aab97(0x1be,_0x5525f4._0x1261c2,_0x5525f4._0x1d726f,_0x5525f4._0x28d66e))return{'type':_0x4aab97(_0x5525f4._0x164d26,0x24b,_0x5525f4._0x7ec5a,_0x5525f4._0xb8d72f)};if(_0x4b20ac['type']===_0x4aab97(_0x5525f4._0x74f057,0x184,0x338,0x205)||_0x4b20ac['type']==='integer')return{'type':_0x4aab97(0x319,_0x5525f4._0x13810b,_0x5525f4._0x30d247,_0x5525f4._0x2f5fcb)};if(_0x4b20ac[_0x4aab97(_0x5525f4._0x4ed65d,_0x5525f4._0x383539,0x28a,0x369)]==='boolean')return{'type':_0x4aab97(_0x5525f4._0x4d1bcd,0x34d,_0x5525f4._0x2e0639,0x21a)};if(_0x4b20ac[_0x4aab97(0x235,_0x5525f4._0x2abeae,_0x5525f4._0x162c0a,0x369)]===_0x4aab97(_0x5525f4._0x3f9768,_0x5525f4._0x2eee4b,0x304,_0x5525f4._0x7b7e07))return{'type':_0x501385(_0x5525f4._0x27b5a7,_0x5525f4._0x41b910,_0x5525f4._0x5a13ce,0x183),'items':toSupportedSchema(_0x4b20ac[_0x4aab97(0x288,_0x5525f4._0x35580e,0x1ea,0x2b7)])??{'type':_0x4aab97(0x321,_0x5525f4._0x225e8f,_0x5525f4._0x26a282,_0x5525f4._0xae4485)}};if(_0x4b20ac['type']===_0x501385(-0x15d,-_0x5525f4._0x5c7989,-_0x5525f4._0x293570,-0x53))return toNuvinToolSchema(_0x4b20ac);return void 0x0;}function toNuvinToolSchema(_0x308325){const _0x537ff={_0x3ec9d4:0x589,_0xa18678:0x503,_0x41754a:0x627,_0x7a5ef:0x278,_0x2189e0:0x185,_0x484a0f:0x97,_0x35ffaf:0x28e,_0x107508:0x445,_0x419385:0x442,_0x1548d6:0x370,_0x57fbaa:0x370,_0x12045e:0x2b4,_0x578ddf:0x1bf,_0x318737:0x234,_0x16334d:0x18a,_0x354e6b:0x35e,_0x10bceb:0x4b3,_0x493d61:0x39e,_0x489e04:0x45e,_0x3c19ec:0x324,_0x23afae:0x43e,_0x3da2ae:0x317},_0xa0a5a3={_0x203bf2:0x1f4},_0x294f27={_0x58d13d:0x1a3,_0x2cfc7f:0x56,_0x22595d:0x5a};function _0x2b0f65(_0xe35935,_0x4ade74,_0x3fcbe5,_0x41220c){return _0x2ecd0e(_0x3fcbe5- -_0x294f27._0x58d13d,_0x4ade74-_0x294f27._0x2cfc7f,_0x3fcbe5-_0x294f27._0x22595d,_0x4ade74);}if(!isObject(_0x308325)||_0x308325[_0x2b0f65(0x3e3,_0x537ff._0x3ec9d4,_0x537ff._0xa18678,_0x537ff._0x41754a)]!==_0x4645bd(_0x537ff._0x7a5ef,0x92,0x146,_0x537ff._0x2189e0))return{'type':_0x4645bd(_0x537ff._0x484a0f,_0x537ff._0x35ffaf,0x138,0x185),'properties':{}};function _0x4645bd(_0x53c49a,_0x29704,_0x5f70ff,_0x5197fe){return _0x2ecd0e(_0x5197fe- -0x335,_0x29704-_0xa0a5a3._0x203bf2,_0x5f70ff-0x113,_0x29704);}const _0x45ea31={},_0x4813a6=isObject(_0x308325[_0x2b0f65(0x400,0x25b,0x338,0x395)])?_0x308325[_0x2b0f65(_0x537ff._0x107508,0x31e,0x338,0x3a6)]:{};for(const [_0x3461e3,_0x53f7f9]of Object[_0x2b0f65(0x4ab,0x4e3,0x458,0x3cc)](_0x4813a6)){const _0x32b534=toSupportedSchema(_0x53f7f9);if(_0x32b534)_0x45ea31[_0x3461e3]=_0x32b534;}const _0x38fb57=Array[_0x2b0f65(_0x537ff._0x419385,_0x537ff._0x1548d6,_0x537ff._0x57fbaa,0x399)](_0x308325[_0x4645bd(_0x537ff._0x12045e,_0x537ff._0x578ddf,0x1b1,0x18a)])?_0x308325[_0x4645bd(_0x537ff._0x318737,0x1fa,0x213,_0x537ff._0x16334d)][_0x2b0f65(0x454,0x496,0x479,_0x537ff._0x354e6b)](_0x49f81d=>typeof _0x49f81d===_0x2b0f65(0x337,0x270,0x387,0x3d7)):void 0x0;return _0x38fb57?.[_0x2b0f65(_0x537ff._0x10bceb,_0x537ff._0x493d61,0x393,_0x537ff._0x489e04)]?{'type':_0x2b0f65(_0x537ff._0x3c19ec,_0x537ff._0x23afae,_0x537ff._0x3da2ae,0x40a),'properties':_0x45ea31,'required':_0x38fb57}:{'type':'object','properties':_0x45ea31};}function isJsonObject(_0x1fbf34){const _0x1d1870={_0x2ad97:0x10a,_0x2f3b14:0x126,_0x3c9d27:0xab,_0x18a080:0x1ce,_0x576983:0x2cf},_0x3f41a6={_0x610ffa:0x2f2,_0x499ebd:0x196},_0x2d144f={_0x38230c:0x57};function _0x1522b9(_0x1c4858,_0x4954fa,_0x428868,_0x1186a4){return _0x198698(_0x428868-_0x2d144f._0x38230c,_0x4954fa-0x18f,_0x1186a4,_0x1186a4-0x48);}function _0x566200(_0x3fd6d7,_0x2f2253,_0x37e072,_0x31e67c){return _0x198698(_0x37e072-_0x3f41a6._0x610ffa,_0x2f2253-0x127,_0x2f2253,_0x31e67c-_0x3f41a6._0x499ebd);}return typeof _0x1fbf34===_0x1522b9(-_0x1d1870._0x2ad97,-0x50,-_0x1d1870._0x2f3b14,-_0x1d1870._0x3c9d27)&&_0x1fbf34!==null&&!Array[_0x566200(0x212,0x97,_0x1d1870._0x18a080,_0x1d1870._0x576983)](_0x1fbf34);}function formatMcpContent(_0x1bde9b){const _0x3ed628={_0x422b41:0xdd,_0x1a479c:0x3ca,_0x5b8007:0x13,_0x1613b3:0x3e,_0x54d442:0x18,_0xd09330:0xaf,_0x5dabcb:0x445,_0x113cce:0x4c3,_0x4dbd7a:0x3c8,_0x2aa1a2:0x47e,_0x1cac5c:0x4f,_0x5362f6:0x15d,_0x124b0d:0x14f,_0x2d00fa:0x48,_0x5a3156:0x3c},_0x571aaa={_0x2f79df:0x615,_0x50bbd8:0x6e5,_0x5d0c0e:0x640,_0x52b53a:0x4fb,_0x39d84e:0x34e,_0x5ea9d7:0x2cc,_0x1b6c6f:0x475},_0x31223f=Array[_0x3f4169(-0x6f,-0x59,0x3,-_0x3ed628._0x422b41)](_0x1bde9b[_0x59f72f(0x2bc,0x1f4,_0x3ed628._0x1a479c,0x2a1)])?_0x1bde9b['content']:[],_0x26dedb=_0x31223f[_0x3f4169(-_0x3ed628._0x5b8007,-_0x3ed628._0x1613b3,_0x3ed628._0x54d442,_0x3ed628._0xd09330)](_0x5d60c8=>{const _0x52ee00={_0x142738:0x112};if(!isObject(_0x5d60c8))return'';function _0x55912c(_0x24d0c4,_0xe4b452,_0x268fb1,_0x3d9b8a){return _0x3f4169(_0x24d0c4-0x4cd,_0xe4b452,_0x268fb1-0x1c,_0x3d9b8a-0x104);}if(_0x5d60c8[_0x2acee3(0x755,_0x571aaa._0x2f79df,_0x571aaa._0x50bbd8,_0x571aaa._0x5d0c0e)]===_0x2acee3(_0x571aaa._0x52b53a,0x3fd,_0x571aaa._0x39d84e,_0x571aaa._0x5ea9d7)&&typeof _0x5d60c8['text']===_0x55912c(_0x571aaa._0x1b6c6f,0x33d,0x4ff,0x39a))return _0x5d60c8['text'];function _0x2acee3(_0x4461b1,_0x3092bc,_0x44a701,_0x5ca0d1){return _0x3f4169(_0x3092bc-0x4f1,_0x4461b1,_0x44a701-_0x52ee00._0x142738,_0x5ca0d1-0xeb);}return JSON['stringify'](_0x5d60c8);})[_0x59f72f(_0x3ed628._0x5dabcb,_0x3ed628._0x113cce,0x552,0x423)](_0x55c315=>_0x55c315[_0x59f72f(0x35f,0x2e1,0x474,0x45e)]>0x0)[_0x59f72f(0x355,0x3ae,_0x3ed628._0x4dbd7a,_0x3ed628._0x2aa1a2)]('\x0a');function _0x59f72f(_0x383051,_0x1bb824,_0x1b8dfd,_0x493e84){return _0x2ecd0e(_0x383051- -0x1d7,_0x1bb824-0xc0,_0x1b8dfd-0x1e9,_0x1b8dfd);}if(_0x26dedb[_0x3f4169(-0x4c,_0x3ed628._0x1cac5c,0x5e,-_0x3ed628._0x5362f6)]>0x0)return _0x26dedb;function _0x3f4169(_0x4bdd79,_0x1bff3b,_0x4a30b9,_0x12c3b7){return _0x198698(_0x4bdd79-0xb5,_0x1bff3b-0x94,_0x1bff3b,_0x12c3b7-0x198);}return JSON[_0x3f4169(-0x38,-_0x3ed628._0x124b0d,_0x3ed628._0x2d00fa,-_0x3ed628._0x5a3156)](_0x1bde9b,null,0x2);}function _0x497d(){const _0x223088=['C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','ywXSB3DLzerPCNm','y2HHCKnVzgvbDa','C29YDa','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','CMfUz2u','ChjPB3jPDhK','BxrPBwu','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','AgfZ','C2vZC2LVBG','DhjPBq','ANnJB25MAwCUANnVBG','BNbT','CgfJA2fNzs5QC29U','B2zM','y29TBwfUza','yxv0AfjLCxvPCMvK','yxjNDw1LBNriAw50','yMLVBwuUANnVBG','y29TCgXLDgvK','Dg9VBa','cGOTls0kcG','qwDLBNqGCNvUia','Cg9W','u2TPBgWGjW','yMLUyxj5tMfTzq','Aw1Hz2u','C3rKAw4','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','CNvUBMLUzW','lMPWzwC','C3rYAxbbBNnP','AxngAwXL','zgvZy3jPChrPB24','r3jLCa','DxnLCM5HBwu','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','ls1NBg9I','lI4U','uMvZCg9UC2uGDg9VigXHCMDLoIbLEgnLzwrZia','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','zMLUzfjLzMvYzw5Jzxm','BgLUzxm','BwvTB3j5','C3jJl2fNzw50l2fNzw50lNrZ','CMvWBgfJzq','CgXHAw50zxH0','DxjP','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','Bwf0y2HLCW','zMLSzvbHDgG','BgLUzvrLEhq','ls1YzwDLEha','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','yxjNCW','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','C2L0ztO','CMvJB3jK','DxrTx21LzgL1Bq','zgLHz25VC3rPy3ngB3jgAwXL','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','C3rHCNq','yxbWBgLJyxrPB24VANnVBG','BM9Zy3jPChq','lM10CW','Cgf0DgvYBIbPCYbYzxf1AxjLza','tM8GBg9JyxrPB25ZigzVDw5K','DhjPBuvUza','BwvKAxvT','y2fSBgjHy2TvCMW','CgXHDgzVCM0','zhvWBgLJyxrLx3rVzg9FAwrZ','y29UC3rYDwn0B3i','Aw5JBhvKzxm','zw52','lMjPBG','C2XPy2u','Dg9KB3ncEvnLC3nPB24','C3rHDhvZ','z2nSAwq','zg9TywLUCW','Ahr0CdO','ls1OAwrKzw4','rMLSzu5LDW','CgvUzgLUzW','y29Kzq','Dg9KB3m','AxrLBxm','qMfZAa','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','C2LNBMfS','CxvLC3rPB24','z29Vz2XLq3nLs2v5','BgLZDfrVB2XZ','zw50CMLLCW','zgf0yq','C2vHCMnOugfYyw1Z','Dw5PB24','o1TE','y29Uy2f0','l3vZCI9IAw4VCMC','yxjNDw1LBNrZvgv4Da','mJm0mtq4mKHKDxj6qW','zxjYB3jnzxnZywDL','yMfZzty0','Aw5PDgLHBgL6zq','lMPWzW','yw5ZAte2','vw5HDxrOB3jPEMvKrxjYB3i','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','BgLZDgvU','yNvUlMXVy2S','B25szwrPCMvJDa','z29uB0LTCgXLBwvUDgf0Aw9U','zgLYzwn0B3j5','yNL0zuXLBMD0Aa','DhLWzxnJCMLWDhjLywn0','BgfIzwW','nZiXndLTDKXYA1i','z2L0qNjHBMnO','y2HHCMfJDgvY','yw5ZD2vYCW','qgjPB21LANmVyMLVBwu','zxzLCNK','r0LgodDH','cMbGya','tM8GCMvZDwX0CYbMB3vUzc4','zMLSDgvY','BwnWxW','Aw5PDgLHBgL6yxrPB24','zgvMyxvSDen3za','rxjYB3i','ie9sia','u2L6ztOG','y2fJAgvK','txvZDcbWCM92AwrLideTncbXDwvZDgLVBNm','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','A2v5','l3vZCI9IAw4VC2G','tM8GAg92zxiGAw5MB3jTyxrPB24','Dhj1BMm','C2vZC2LVBKLK','wZ0+nY04kcLD','lNDLyNa','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','BgfUz3vHz2u','iYmGu2TPBgW6ia','D2HLCMuGCMC','uefusa','C2vUzfjLCxvLC3q','y29UDgvUDc10ExbL','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','CMLWz3jLCa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','AxnfCNjVCG','Aw52ywXPzf90B2rVx2nVBNrLBNq','C291CMnL','CMvHC29U','CMvNAw9U','yxnJAwK','CMfUzg9T','Ag92zxi','DgHPBMTPBMC','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','Aw52ywXPzf90B2rVx2LK','Dg9VBenHBgXjza','ls1MAwXLCW','EwvZ','yMLVBwuUANnVBMm','AxnfBMfIBgvK','BgLUzq','C3rVCMfNzurPCG','C3rHDhvZvgv4Da','AxnjBNrLz2vY','y29UDgv4DeXPBMS','tunqihnLCNzLCIa','y29UDgvUDhm','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CgLWzq','yxbPs2v5','ig1Z','l29WDc9OB21LyNjLDY9IAw4VCMC','AhjLzG','C3bSAxq','Ahr0Chm6','BgLTAxq','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','B25oB3rPzMLJyxrPB24','vw5RBM93BIb0B29SoIa','tuLnrtOG','Dg9Rzw4','y2XLyxi','u3rHCNrLzcbHz2vUDcbYDw4G','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','y3jSzG','yxr0CG','tg9HzfnRAwXS','y2XPzw50CW','C2vYDMvYCW','Aw1WBgvTzw50yxrPB24','z2v0vg9KB3m','y29UBMvJDgvK','zMXVB3i','D2LUmZi','oxb5r2r2DW','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','v2vIrMv0y2G','te9dquXbufbeqvrb','lNrTCc4','CMvZDwX0','AxnbyNnVBhv0zq','yxjNDw1LBNrZ','lMPZEa','Ag9ZDa','zMLUywXnzxnZywDLvgv4Da','lMn0CW','C2L6zq','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','ywjVCNrLza','BwLU','z2v0u3rHDhm','lMnTza','q29Tu3bLyW','CgfZC3DVCMq','Aw52ywXPzf90B2rVCW','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','ChjVy2vZCW','rMv0y2GGDgLTzwqGB3v0','ru5pru5u','r0LgodLH','C2v0vg9KB3m','Bg9JyxrPB24','ntiYnJy1nLnKCxv1vW','zxH0BMfTzq','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','BhnWu2vYDMLJzq','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','yxv0Aa','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','zgLHz25VC3rPy3m','Dgv4DerVy3vTzw50l2HVDMvY','yxjYyxK','Dg9vChbLCKnHC2u','y2XPzw50sw5MB3jTyxrPB24','zgLZCg9Zzq','yMfZzw5HBwu','ignVBxbSzxrLzc4','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','zgvSAw1PDgvY','z2XVyG','y3jLyxrLzef0','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','Aw5WDxq','C2H1DgrVD24','C2vYDMvYtMfTzq','ChvIBgLZAgvKqxq','yMvHCMvY','AgvHzgvYCW','ugfJA2fNzxm','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','DMfSDwu','Aw52ywXPzf90B2rVx3n0yxr1CW','Dhj1zq','DhLWzq','AxndB250zxH0','vMLLD0zPBgu','Aw5ZDhj1y3rPB25Z','BgfUz18','yxnZAwDU','yMLYDgH0Aw1L','zgvSzxrL','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','BM93','AxneAxjLy3rVCNK','l2jPBI9IyxnO','w1bFxL1BxhnCu10QpW','BM9Kzv9TB2r1BgvZ','Dg9Rzw5tDg9YywDLs2v5','y2XVC2u','y2XPzw50','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','zgvMAw5PDgLVBG','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','oIaIAgvHzgvYiIbTDxn0igjLig1HEcaYmcbJAgfYywn0zxjZlcbNB3qG','zxHPDcbJB2rLia','ywrK','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','C3jJl3nOyxjLzc90ExbLCY50CW','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','CMfUAW','zgLNzxn0','zMLSztOVlW','tuvesvvn','Ec1HCgKTA2v5','zxf1ywXZ','Aw5JB21PBMDdywXSCW','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','zgf0zxrPBwu','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','lM1QCW','y29ZDa','lunVBw1HBMq','CgfYC2u','ienHDxnLoIa','Dg90ywW','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','y29KzvzLCMLMAwvY','zgLYBMfTzq','rMLSzuvKAxq','cGPbuKDvtuvovfm6ia','C3rKB3v0','twLJCM9ZB2z0','A2v5CW','Bwf4qNL0zxm','zMjJBgLK','BgLNAhq','BgfUzW','CgLK','BNvT','Bwf4','BM90Awz5','Aw5PDgLHBgL6zwq','ywjVCNq','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','DgHLBG','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','C2TPBgXZ','te9x','zw5K','CMvMzxjLBMnLCW','CNnZ','CMvJzw5JEurHExm','mteYmJG3mtjPvfvMrM0','BxvSDgLtzwXLy3q','mxHLzuvewa','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','y29UzMLN','yNvUlMXVy2TI','lNbUzW','Aw5JBhvKzq','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','CMvSyxrPDMu','Dgv4DerVy3vTzw50l2rPzenSB3nL','Dg9VBhm','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','yw50AhjVCgLJlw1LC3nHz2vZ','y2fUy2vS','lNrZ','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','B3v0z29PBMDdywXSCW','Dg9Rzw5Z','ywDLBNrjza','BgLUzuvUza','CgXHAw4','uxvLC3rPB24G','C3rKzxjY','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','yxnPzgu','y2HHBMDL','C2v2zxjPDhK','AgLNAa','Aw52ywXPzf9XDwvZDgLVBNm','B3v0Chv0','l3vZCI9IAw4VyMfZAa','sfruuca','yNjVA2vU','v2LUr2v0','Dgv4Da','CMCUzxHL','rMLSzsb3CML0DgvUigf0ia','tgLUzsa','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','y29UDgvUDa','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','sgLUDa','ChjVDg9JB2W','sw52B2TLq29TBwfUza','CMLWz3jLCcbMywLSzwq6ia','Dg9mB3DLCKnHC2u','B25Jzq','AgfUzgXL','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','BwnFzwLK','zMLYC3q','C2vYDMvY','CM91BMq','lMPZB24','B3bLBMfPlxjLC3bVBNnLCW','BwfYA2rVD24','Cgf0DgvYBG','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','DxjS','y29UDgvUDc1Szw5NDgG','ChjLCgfYzunHBgXiAwvYyxjJAhK','zMvUy2vK','tunqihrVB2WG','lMDPzG','ywXSu2v0DgXLza','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqP','DxrTx3rLCM0','B2zMC2v0','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','mc4WlJa','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','seLhsa','C3LTBgLUAW','C2nYAxb0','C3jJl2v4yw1WBgvZl2rLBw8UDhm','B2jQzwn0','CM9VDa','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','Bg93','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','CMvXDwLYzwq','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','C3vIyxjYyxK','DgLTzvTKyxrLDgLTzv0','u0HfteW','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','ywXS','Cgf0Aa','DhnZzxj2zxiUANm','zxjYB3i','CMvMCMvZAf90B2TLBG','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','AhLKCMf0zu1LDge','yM0Ynq','Aw5WDxrty2HLBwe','Aw1Hz2uVD2vICa','uhjVz3jHBuzPBgvZ','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','ntu3nZm5nvvxEfHhEG','igzHAwXLzc4','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','C25PChbLDa','CgfYC2vjBNq','CMvTB3zL','y29UDgv4Da','zMLSzq','ywn0AxzL','ChjVCgvYDgLLCW','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','y3DK','vg9KBYa','y291BNq','u0Lhs0Lmta','AwDUB3jL','DgL0Bgu','zw5HyMXLza','B3b0Aw9UywW','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','CMvZB2X2zq','C2nVCgvZ','zw51Bq','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','tM8GzgLHz25VC3rPy3m','nJK3mJyXnNPes2TUEG','C3rHCNreAxi','zgv0ywLS','Bg9JywXLq29TCgfYzq','qxnZAwDUvgfZAW','C3r5Bgu','lcbpChrPB24G','y29TBwfUzhm','q29TBwfUzcaN','qwXSia','uKLgrG','CNvUswq','AMf2yxnJCMLWDa','y21KlMv4zq','Aw52ywXPzf90B2rVx2L0zw0','zNjVBq','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','rM91BMqG','CMvXDwvZDa','C2fMzq','zNvSzMLSBgvK','rgv0ywLSoIa','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','Aw5FChjVz3jLC3m','DxbKyxrL','zhj5uNvU','DgvZDa','BgLUzvn0yxj0','CgfYzw50u2vZC2LVBKLK','zMLSzvzLCNnPB25Z','Aw1Hz2uVz2LM','yxjNDw1LBNroyw1LCW','vg9KB1DYAxrL','BgLUAW','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','zMXHDe1HCa','y29UBMvJDgLVBG','zgLZy292zxj5u3rHDgu','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','AxnbCNjHEq','Ahr0Ca','BMv3vgv4Da','BM9Uzq','B3bLBMfPlxjLC3bVBNnLCY13CW','CMvTB3zLrxzLBNrmAxn0zw5LCG','EwfYBI5SB2nR','uhjVz3jHBuzPBgvZkhG4nIK','Dg9ju09tDhjPBMC','lu5Vtg9NBW','C2vUze5VDgLMAwnHDgLVBG','yxv0BW','Dg9tDhjPBMC','DgfZA2TPBgW','yxnRvxnLCG','l3vZCI9SB2nHBc9IAw4VCMC','zMLUza','z29Vz2XLq3nLq3G','Ag9TzwrPCG','yMLVBwu','C2HPzNq','AhrTBfnUAxbWzxq','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C3rYAw5N','Aw1Hz2vZ','AM9PBG','Cg5WBs1SB2nRlNLHBwW','CgfZC3rOCM91z2G','CgfJA2fNzs1SB2nRlMPZB24','igj5DgvZ','igj5DgvZigv4y2vLzhmG','DhjHBNnWB3j0','D29YA3nWywnLu3LTyM9S','z2v0','B2C6DxbKyxrLzf90Aw1L','BgvUz3rO','zgvMyxvSDfrPBwvVDxrnCW','C3bHD25PBMC','C2vSzwn0Aw9UuMfUz2u','ugf0AcbPCYbUB3qGysbMAwXLoIa','xg5DkJ8','BNv2Aw4','m1nOrfv4Cq','Aw1Hz2uVCg5N','zgf0zvjLC3rYAwn0','zgLZy292zxj5','AwDUB3jLt3v0Chv0','BNvTyMvY','u2HLBgWGBM90igzVDw5KoIa','zgvUBY5QC29UyW','C3bHD24','B3jPz2LUywW','BxrPBwvnCW','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','C2vHCMnOvhLWzq','C3rYAw5NAwz5','DxrTx3nVDxjJzq','D2fPDezVCKrPywDUB3n0AwnZ','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','B3jPz2LUvg9VBenHBgXjza','A2LUza','CxvLCNK','yxv0Ag9YAxPHDgLVBL9JB2rL','B3bLBKzPBgvZ','y29UBMvJDa','BhnW','BwnFy2LK','zg9JDw1LBNrtEw1IB2W','yM9VBgvHBG','ls1WCMvMAxG','Aw1Hz2uVANbLzW','ChvZAa','y2XLyw51Ca','AgvHzgvY','y2f0y2G','C2v0','DhLWzxnJCMLWDa','CgfJA2fNzxm','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','qMvHCMvYia','B2f1DgG','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','B2XKvgv4Da','B3bLBG','vMLLD2vKigLTywDLigzPBgu6ia','qxzHAwXHyMXLignVBw1HBMrZoG','DhnJ','igzYB20G','BMfTzq','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','zNvUy3rPB24','BwfW','C3rHCNrZv2L0Aa','CgfJA2fNzu5HBwu','Aw5ZDgfSBa','zxHPDa','lMPZB25J','CxvLC3rPB25Z','C2vYDMvYswq','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','B3b0Aw9UCW','ls1ZDgrPBW','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','BwvZC2fNzq','C3vKBW','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','C2H1DgrVD25tDgfYDgvK','C3rHDgu','lMnQCW','y2XPzw50x3nLy3jLDf9WB3n0','DxrMoa','ls1NBg9Ipq','y2XPzw50twv0ywrHDgfvCMW','rMLSzvjLywq','ChjLzML4','Agv4','A2v5yMLUzgLUz3m','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','D3jPDgu','z29uB0rLzMLUAxrPB24','A2LSBa','y2vPBa','AxngAw5PDgu','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','l3bPza','rMv0y2GGywjVCNrLzcbIEsb1C2vY','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','mZqZmfrewMHOzG','BgL0zxjHBa','ANnVBG','odiWnJuWmfPgEuTbBW','z29Vz2XLlwnZzq'];_0x497d=function(){return _0x223088;};return _0x497d();}function createMcpTool(_0x5fca59){const _0x269902={_0xbb4678:0x648,_0x58a914:0x354,_0x211241:0x3d9,_0x2efda6:0x396,_0x52c595:0x38b,_0x39f0b8:0x427,_0x4c0aa3:0x3a3,_0x363682:0x3f1,_0x547d8c:0x3bf,_0x16427f:0x545,_0x40ee84:0x5e8,_0x5b8c5e:0x3a9,_0x25ec6d:0x4b3,_0x407170:0x43e,_0x32b9ab:0x606,_0xbfa71f:0x630,_0x3d08df:0x475,_0x2dca28:0x4f0,_0xd4102:0x648,_0x29c129:0x568,_0x50e8de:0x601},_0x2a21f9={_0x48baa3:0x537,_0x97dd8f:0x593,_0x4a515d:0x334,_0x5997d0:0x2dc,_0x31f485:0x3ae,_0x82f557:0x2e0,_0x2db31a:0x736,_0x4338f7:0x534,_0x5cf5dd:0x44d,_0x2976f5:0x563,_0x570c8c:0x6b5,_0x3b947b:0x646,_0x1096ad:0x5c9,_0x56c68f:0x6aa,_0x2b34ef:0x38c,_0x40208a:0x266},_0x3870b1={_0xbf5db5:0x218,_0x18692f:0x17e},_0x189def={_0x491ba0:0x9a,_0x5f0fef:0x105};function _0x36f076(_0x2d8454,_0x2c72bf,_0x28faaa,_0x549baf){return _0x2ecd0e(_0x28faaa-_0x189def._0x491ba0,_0x2c72bf-0x150,_0x28faaa-_0x189def._0x5f0fef,_0x2c72bf);}const _0x4f2dd4=createMcpToolName(_0x5fca59['serverName'],_0x5fca59[_0x36f076(0x724,0x58f,_0x269902._0xbb4678,0x686)][_0x399611(_0x269902._0x58a914,0x48c,0x33b,_0x269902._0x211241)]);function _0x399611(_0x1f46e8,_0x1f8729,_0x44d205,_0x55fb6a){return _0x2ecd0e(_0x1f46e8- -_0x3870b1._0xbf5db5,_0x1f8729-0x12f,_0x44d205-_0x3870b1._0x18692f,_0x55fb6a);}return defineTool({'name':_0x4f2dd4,'description':_0x5fca59[_0x399611(_0x269902._0x2efda6,_0x269902._0x52c595,0x3cc,_0x269902._0x39f0b8)][_0x399611(_0x269902._0x4c0aa3,_0x269902._0x363682,_0x269902._0x547d8c,0x29f)]??_0x36f076(0x626,0x4a6,_0x269902._0x16427f,_0x269902._0x40ee84)+_0x5fca59[_0x399611(0x396,_0x269902._0x5b8c5e,_0x269902._0x25ec6d,_0x269902._0x407170)][_0x36f076(0x5b8,0x695,_0x269902._0x32b9ab,_0x269902._0xbfa71f)]+_0x399611(0x353,0x351,0x320,_0x269902._0x3d08df)+_0x5fca59[_0x399611(0x485,0x408,_0x269902._0x2dca28,0x374)],'inputSchema':toNuvinToolSchema(_0x5fca59[_0x36f076(0x577,0x50e,_0x269902._0xd4102,0x508)][_0x36f076(0x5c4,0x4a9,_0x269902._0x29c129,_0x269902._0x50e8de)]),async *'execute'(_0xe58de3){const _0x23364a=await _0x5fca59[_0x29ff34(_0x2a21f9._0x48baa3,_0x2a21f9._0x97dd8f,_0x2a21f9._0x4a515d,0x466)]['callTool']({'name':_0x5fca59['tool'][_0x29ff34(_0x2a21f9._0x5997d0,_0x2a21f9._0x31f485,_0x2a21f9._0x82f557,0x31c)],'arguments':isJsonObject(_0xe58de3)?_0xe58de3:{}});if(_0x23364a[_0x527197(_0x2a21f9._0x2db31a,0x644,0x6bc,0x5fc)])throw new ToolExecutionError(formatMcpContent(_0x23364a),{'serverName':_0x5fca59[_0x29ff34(0x3d0,0x325,_0x2a21f9._0x4338f7,_0x2a21f9._0x5cf5dd)],'toolName':_0x5fca59[_0x527197(0x567,0x5bb,_0x2a21f9._0x2976f5,_0x2a21f9._0x570c8c)][_0x527197(_0x2a21f9._0x3b947b,0x579,0x461,_0x2a21f9._0x1096ad)]});yield createToolOutput(formatMcpContent(_0x23364a),{'serverName':_0x5fca59[_0x527197(0x674,_0x2a21f9._0x56c68f,0x602,0x785)],'toolName':_0x5fca59[_0x29ff34(_0x2a21f9._0x2b34ef,0x341,_0x2a21f9._0x40208a,0x35e)]['name'],'result':_0x23364a});function _0x527197(_0x2c1b70,_0x57f30c,_0xc264b7,_0x122920){return _0x399611(_0x57f30c-0x225,_0x57f30c-0x60,_0xc264b7-0x13,_0x2c1b70);}function _0x29ff34(_0x59bc3b,_0xb0a387,_0x34b88b,_0x113294){return _0x399611(_0x113294- -0x38,_0xb0a387-0x1d2,_0x34b88b-0x156,_0xb0a387);}return void 0x0;}});}function resolvePrefix(_0x1b1976,_0x3a872a){const _0x5e7073={_0x5c36d8:0x19f,_0x2381c0:0x129};function _0x35252e(_0x54f92a,_0x3657cc,_0x5cabe9,_0x3bb6e0){return _0x2ecd0e(_0x5cabe9- -0x3e7,_0x3657cc-0xfe,_0x5cabe9-0x1d0,_0x3657cc);}return _0x3a872a[_0x35252e(0x135,0xfc,_0x5e7073._0x5c36d8,_0x5e7073._0x2381c0)]??_0x1b1976;}function buildMcpHttpHeaders(_0x3e627e){const _0x4dc199={_0x3e21a8:0x41f,_0x597897:0x437,_0x246ce5:0x300,_0x3d55b1:0x2e5,_0x1690ac:0x41a,_0x275f42:0x3a5,_0x5a6579:0x44,_0x10224c:0x87,_0x1a9401:0x1a7,_0x446606:0x13,_0x44ada8:0x80,_0x18d7db:0x92,_0x5c4592:0xc1,_0x5d53a0:0x21c,_0x4c46d0:0xc0,_0x1a6758:0x5d,_0x224dd5:0x2ea,_0x423cfa:0x43b,_0x1a6769:0x24f,_0x380abf:0x1f0,_0x6f69e1:0x131,_0x5440e3:0x231},_0x8d8f80={_0x3a642a:0x18,_0x2c276c:0x8b},_0x1f4d47={_0x532289:0x346,_0x504ae2:0x16a},_0x3a0ac6={..._0x3e627e[_0x163cdf(_0x4dc199._0x3e21a8,0x35a,_0x4dc199._0x597897,_0x4dc199._0x246ce5)]??{}};function _0x163cdf(_0x3c1815,_0x1b7e24,_0x4051f2,_0x1f0a3a){return _0x2ecd0e(_0x1b7e24- -_0x1f4d47._0x532289,_0x1b7e24-_0x1f4d47._0x504ae2,_0x4051f2-0x8a,_0x1f0a3a);}function _0x7ce97d(_0x5eaf54,_0x3a660e,_0x5165b4,_0x5bcb39){return _0x198698(_0x5165b4-_0x8d8f80._0x3a642a,_0x3a660e-0x19e,_0x5eaf54,_0x5bcb39-_0x8d8f80._0x2c276c);}return _0x3e627e[_0x163cdf(_0x4dc199._0x3d55b1,0x345,_0x4dc199._0x1690ac,_0x4dc199._0x275f42)]?.[_0x7ce97d(_0x4dc199._0x5a6579,-0x21,_0x4dc199._0x10224c,0x134)]===_0x7ce97d(_0x4dc199._0x1a9401,-_0x4dc199._0x446606,_0x4dc199._0x44ada8,_0x4dc199._0x18d7db)&&_0x3e627e[_0x7ce97d(0x190,-_0x4dc199._0x5c4592,0x6c,-_0x4dc199._0x5a6579)]['token']&&_0x3a0ac6['Authorization']===void 0x0&&(_0x3a0ac6['Authorization']=_0x163cdf(0x258,_0x4dc199._0x5d53a0,0x132,0x27d)+_0x3e627e[_0x7ce97d(-_0x4dc199._0x4c46d0,0x130,0x6c,-_0x4dc199._0x1a6758)][_0x163cdf(_0x4dc199._0x224dd5,0x315,0x2fa,_0x4dc199._0x423cfa)]),Object['keys'](_0x3a0ac6)[_0x163cdf(_0x4dc199._0x1a6769,_0x4dc199._0x380abf,_0x4dc199._0x6f69e1,_0x4dc199._0x5440e3)]>0x0?_0x3a0ac6:void 0x0;}function getErrorMessage(_0xe03610){const _0x17ae14={_0xe389e4:0x4a7},_0x24dd5e={_0x89254c:0x563,_0xd957e6:0x191};function _0x1b9934(_0x480087,_0x30e23d,_0x347951,_0x574dbf){return _0x198698(_0x480087-_0x24dd5e._0x89254c,_0x30e23d-0xc2,_0x347951,_0x574dbf-_0x24dd5e._0xd957e6);}return _0xe03610 instanceof Error?_0xe03610[_0x1b9934(_0x17ae14._0xe389e4,0x416,0x450,0x478)]:String(_0xe03610);}function isUnauthorizedError(_0xfeb537){const _0x189fab={_0x28debc:0x691,_0x2c2f00:0xfe,_0x520ef0:0x530,_0x3c2479:0x5af,_0x530737:0x553},_0x59c58c={_0x38b290:0xc7,_0x4595d7:0x126},_0x91cf02={_0x1e6e8f:0x3ca,_0x355de7:0x1e0,_0xfefa2c:0xef};function _0x3b62bf(_0x4f43dc,_0x3336b0,_0x2253a1,_0x30cafb){return _0x2ecd0e(_0x2253a1- -_0x91cf02._0x1e6e8f,_0x3336b0-_0x91cf02._0x355de7,_0x2253a1-_0x91cf02._0xfefa2c,_0x4f43dc);}function _0x58c421(_0x471600,_0x535779,_0x7efc5b,_0x4ec268){return _0x2ecd0e(_0x535779- -0x5a,_0x535779-_0x59c58c._0x38b290,_0x7efc5b-_0x59c58c._0x4595d7,_0x7efc5b);}return _0xfeb537 instanceof Error&&_0xfeb537[_0x58c421(0x4d6,0x58b,_0x189fab._0x28debc,0x607)][_0x3b62bf(_0x189fab._0x2c2f00,0x8f,0x1a2,0x288)]===_0x58c421(_0x189fab._0x520ef0,_0x189fab._0x3c2479,_0x189fab._0x530737,0x667);}async function connectMcpServer(_0x4dc7ce,_0x5c8eb4,_0x1d4ff5){const _0x1267cf={_0x36cc7b:0x3ca,_0xd23777:0x387,_0x175509:0x17d,_0x1e89f2:0x5c2,_0x466bd0:0x180,_0x20b7a4:0x179,_0x5d7a07:0x29c,_0x4e1776:0x497,_0x9aad0a:0x564,_0x32eeab:0x441,_0x6f17ed:0x498,_0x476cdc:0x4e0,_0x2529c9:0x3a7,_0x2d6dbf:0x35a,_0x1bf3ca:0x480,_0x274adf:0x57c,_0xeb3a24:0x398,_0x70f308:0x49b,_0x404bb9:0x4db,_0x4d8fbb:0x637,_0x4205d5:0x5cd,_0x2edcf9:0x44f,_0x12f001:0x2d0,_0x442c89:0x30f,_0xb822c3:0x232,_0x31832b:0x572,_0x3160d6:0x382,_0x42169c:0x5b1,_0x5f4332:0x654,_0x3757f3:0x469,_0x210832:0x511,_0x51905b:0x598,_0x1962a2:0x511,_0x1e2a5c:0x470,_0x1e3279:0x511,_0x3ff567:0x69f,_0x176156:0x436,_0x42d68c:0x3d6,_0x36e95e:0x43d,_0x316940:0x363,_0x533ccc:0x362,_0x319cdc:0x29c,_0x18c371:0x5da,_0x4e6d9a:0x451,_0x3d8da5:0x501,_0x17806b:0x561,_0x1d904d:0x58d,_0x3b916f:0x502,_0x2c2d8d:0x6bc,_0x55faaf:0x6d5,_0x130c95:0x5fa,_0x35842c:0x6db,_0x2a27b9:0x492,_0x10d572:0x557},_0x4da8a8={_0xce4d59:0xc4},_0x496998={_0x28edaf:0xbf},_0x271ef6={_0x5447d5:0x90,_0xb25dba:0x46,_0x457078:0x17},_0x2612e2={_0x5957da:0xdd,_0x11a118:0x84,_0x47dbba:0x111},_0x53266d={_0x4b69c0:0x42c,_0x21199a:0xd9},_0x52b5ab={_0x445e18:0x52,_0x28af8a:0x162,_0x5d3d4c:0x195},_0x35d63b=new Client({'name':_0x4a409d(0x579,0x58a,0x611,0x4ea),'version':_0x10dd6c(_0x1267cf._0x36cc7b,_0x1267cf._0xd23777,0x2a9,_0x1267cf._0x175509)});function _0x4a409d(_0x33be86,_0x87ae4e,_0x465fff,_0x3b824a){return _0x2ecd0e(_0x3b824a- -_0x52b5ab._0x445e18,_0x87ae4e-_0x52b5ab._0x28af8a,_0x465fff-_0x52b5ab._0x5d3d4c,_0x465fff);}function _0x10dd6c(_0x5df8d9,_0x2004d2,_0x37c206,_0x55b828){return _0x198698(_0x37c206-_0x53266d._0x4b69c0,_0x2004d2-0xe1,_0x5df8d9,_0x55b828-_0x53266d._0x21199a);}if(_0x5c8eb4[_0x4a409d(0x542,0x483,_0x1267cf._0x1e89f2,0x4e0)]==='http'||_0x5c8eb4[_0x10dd6c(_0x1267cf._0x466bd0,_0x1267cf._0x20b7a4,_0x1267cf._0x5d7a07,0x19d)]){if(!_0x5c8eb4['url'])throw new Error(_0x10dd6c(_0x1267cf._0x4e1776,_0x1267cf._0x9aad0a,_0x1267cf._0x32eeab,_0x1267cf._0x6f17ed)+_0x4dc7ce+_0x10dd6c(_0x1267cf._0x476cdc,_0x1267cf._0x2529c9,0x46c,0x337));if(_0x5c8eb4[_0x10dd6c(_0x1267cf._0x2d6dbf,0x57c,_0x1267cf._0x1bf3ca,_0x1267cf._0x274adf)]?.[_0x10dd6c(0x52f,_0x1267cf._0xeb3a24,_0x1267cf._0x70f308,_0x1267cf._0x404bb9)]===_0x4a409d(_0x1267cf._0x4d8fbb,_0x1267cf._0x4205d5,0x5ef,0x511)&&!_0x1d4ff5?.[_0x4a409d(0x418,_0x1267cf._0x2edcf9,0x5c1,0x511)])throw new Error('MCP\x20server\x20'+_0x4dc7ce+_0x10dd6c(_0x1267cf._0x12f001,_0x1267cf._0x442c89,_0x1267cf._0xb822c3,0x19e));const _0x20b031=buildMcpHttpHeaders(_0x5c8eb4),_0x582e80=_0x5c8eb4[_0x10dd6c(_0x1267cf._0x31832b,_0x1267cf._0x3160d6,0x480,0x4e3)]?.[_0x4a409d(_0x1267cf._0x42169c,0x60c,0x582,_0x1267cf._0x5f4332)]===_0x4a409d(0x4e9,_0x1267cf._0x3757f3,0x4ee,_0x1267cf._0x210832)&&_0x1d4ff5?.[_0x4a409d(0x5ee,0x61f,_0x1267cf._0x51905b,_0x1267cf._0x1962a2)]?createMcpOAuthProvider({'serverName':_0x4dc7ce,'callbackUrl':_0x1d4ff5[_0x4a409d(0x59a,0x650,_0x1267cf._0x1e2a5c,0x511)][_0x4a409d(_0x1267cf._0x1e3279,_0x1267cf._0x3ff567,0x65e,0x590)],'storageDir':_0x1d4ff5[_0x4a409d(0x46e,0x5c6,0x4f1,0x511)][_0x10dd6c(_0x1267cf._0x176156,_0x1267cf._0x42d68c,_0x1267cf._0x36e95e,_0x1267cf._0x316940)],'config':_0x5c8eb4['auth'],'onRedirect':_0x3da925=>_0x1d4ff5['oauth']?.[_0x4a409d(0x484,0x4ac,0x49d,0x5bb)](_0x4dc7ce,_0x3da925)}):void 0x0,_0x49c485=new StreamableHTTPClientTransport(new URL(_0x5c8eb4[_0x10dd6c(0x32e,_0x1267cf._0x533ccc,_0x1267cf._0x319cdc,0x22e)]),{'authProvider':_0x582e80,'requestInit':_0x20b031?{'headers':_0x20b031}:void 0x0});await _0x35d63b[_0x4a409d(_0x1267cf._0x18c371,_0x1267cf._0x4e6d9a,0x609,_0x1267cf._0x3d8da5)](_0x49c485);}else{if(!_0x5c8eb4[_0x4a409d(_0x1267cf._0x17806b,_0x1267cf._0x1d904d,0x61f,0x557)])throw new Error(_0x4a409d(_0x1267cf._0x3b916f,_0x1267cf._0x2c2d8d,_0x1267cf._0x55faaf,_0x1267cf._0x130c95)+_0x4dc7ce+_0x4a409d(0x648,_0x1267cf._0x35842c,0x689,0x605));const _0x11c4db=new StdioClientTransport({'command':_0x5c8eb4[_0x4a409d(_0x1267cf._0x2a27b9,0x4d3,0x460,_0x1267cf._0x10d572)],'args':_0x5c8eb4['args']??[],'env':_0x5c8eb4['env']});await _0x35d63b['connect'](_0x11c4db);}return{async 'listTools'(){const _0x574eea={_0x5459d3:0xe,_0xf5cb36:0x1ba,_0x39a2c8:0x685};function _0x4d7091(_0x5edd10,_0x5700f4,_0x5da658,_0x13acc7){return _0x4a409d(_0x5edd10-_0x574eea._0x5459d3,_0x5700f4-_0x574eea._0xf5cb36,_0x5da658,_0x5edd10- -_0x574eea._0x39a2c8);}return await _0x35d63b[_0x4d7091(-_0x2612e2._0x5957da,-_0x2612e2._0x11a118,-0x131,-_0x2612e2._0x47dbba)]();},async 'callTool'(_0x39acc3){const _0x110f54={_0x367daa:0xaf};function _0x4e841c(_0x3f43f4,_0x44a3a5,_0xf2c56a,_0x3aec7a){return _0x4a409d(_0x3f43f4-0x10b,_0x44a3a5-_0x110f54._0x367daa,_0x3aec7a,_0xf2c56a- -0x495);}return await _0x35d63b[_0x4e841c(_0x271ef6._0x5447d5,-_0x271ef6._0xb25dba,_0x271ef6._0x457078,-0x3f)]({'method':'tools/call','params':_0x39acc3},CallToolResultSchema);},async 'close'(){function _0x103341(_0x3ac3bf,_0x22cf0f,_0x4c526d,_0x38bb76){return _0x10dd6c(_0x38bb76,_0x22cf0f-_0x496998._0x28edaf,_0x3ac3bf- -0x4a7,_0x38bb76-0xf8);}await _0x35d63b[_0x103341(0x3,0x136,-0x81,_0x4da8a8._0xce4d59)]();}};}async function createMcpToolsFromServers(_0x1ced9a){const _0x5ee5ab={_0x4e0a6c:0x6b0,_0x4e9ab5:0x72f,_0x2c91dc:0x5f1,_0x5bfa95:0x5d5,_0x3ade0d:0x43d,_0x4c9365:0x33d,_0x158403:0x411,_0x4aa0f5:0x5a6,_0x1d5152:0x673,_0x4e5a83:0x6e3,_0xe97f92:0x5cf,_0x5927f8:0x4ef,_0x29b484:0x524,_0x246807:0x4f7,_0x2deeb5:0x436,_0x18c862:0x352,_0x1da659:0x4ad,_0x16031d:0x4f1,_0x58a9f1:0x6df,_0x36bcda:0x5cd,_0x1c8c1d:0x75e,_0x3bf2f2:0x623,_0x2a8676:0x67d,_0xc8cddd:0x73c,_0x36b63c:0x687},_0x1d50fd={_0x4eddb5:0x26c,_0x266fe3:0x284,_0x54cfa1:0x253,_0x28e426:0x3ae,_0x567a3d:0x277,_0x281daf:0x230},_0x4c7cbc={_0xa59940:0x13f},_0x17eb72={_0x5aa246:0x134,_0x2e4dbb:0x1f1},_0x364dba={_0x53664a:0x6f},_0x250a1a=_0x1ced9a['connect']??connectMcpServer,_0xc70591=[];function _0x7ba1d7(_0x43620b,_0xa29b84,_0x282332,_0xa0dbf8){return _0x198698(_0xa29b84-0x501,_0xa29b84-_0x364dba._0x53664a,_0x43620b,_0xa0dbf8-0x1e2);}const _0x277cbc={};function _0x2c69f4(_0x12279d,_0x534b5f,_0x5c444e,_0x1177af){return _0x2ecd0e(_0x12279d-0x79,_0x534b5f-_0x17eb72._0x5aa246,_0x5c444e-_0x17eb72._0x2e4dbb,_0x534b5f);}const _0x3987b4=[];for(const [_0x12d8d4,_0x1862fd]of Object[_0x2c69f4(0x674,_0x5ee5ab._0x4e0a6c,_0x5ee5ab._0x4e9ab5,0x56c)](_0x1ced9a[_0x2c69f4(0x6dc,_0x5ee5ab._0x2c91dc,_0x5ee5ab._0x5bfa95,0x79c)]??{})){if(_0x1862fd[_0x7ba1d7(_0x5ee5ab._0x3ade0d,0x3ad,_0x5ee5ab._0x4c9365,_0x5ee5ab._0x158403)]===![]){_0x277cbc[_0x12d8d4]={'status':'disabled'};continue;}try{const _0x44a7ac=await _0x250a1a(_0x12d8d4,_0x1862fd,_0x1ced9a[_0x2c69f4(0x589,_0x5ee5ab._0x4aa0f5,0x596,0x4f2)]);_0xc70591['push'](_0x44a7ac);const _0x562a2d=await _0x44a7ac[_0x2c69f4(_0x5ee5ab._0x1d5152,_0x5ee5ab._0x4e5a83,_0x5ee5ab._0xe97f92,0x61f)]();let _0x5d7862=0x0;for(const _0x42e6ec of _0x562a2d[_0x2c69f4(_0x5ee5ab._0x5927f8,0x3fb,_0x5ee5ab._0x29b484,0x596)]){const _0x28a386=_0x1ced9a['allowedTools']?.[_0x12d8d4]?.[_0x42e6ec[_0x7ba1d7(_0x5ee5ab._0x246807,_0x5ee5ab._0x2deeb5,_0x5ee5ab._0x18c862,_0x5ee5ab._0x1da659)]];if(_0x28a386===![])continue;_0x5d7862+=0x1,_0x3987b4[_0x7ba1d7(0x55d,0x424,0x527,_0x5ee5ab._0x16031d)](createMcpTool({'serverName':resolvePrefix(_0x12d8d4,_0x1862fd),'tool':_0x42e6ec,'client':_0x44a7ac}));}_0x277cbc[_0x12d8d4]={'status':_0x2c69f4(_0x5ee5ab._0x58a9f1,_0x5ee5ab._0x36bcda,0x636,_0x5ee5ab._0x1c8c1d),'toolCount':_0x5d7862};}catch(_0x20617e){_0x277cbc[_0x12d8d4]=isUnauthorizedError(_0x20617e)?{'status':_0x2c69f4(_0x5ee5ab._0x3bf2f2,_0x5ee5ab._0x2a8676,_0x5ee5ab._0xc8cddd,_0x5ee5ab._0x36b63c),'message':getErrorMessage(_0x20617e)}:{'status':'error','message':getErrorMessage(_0x20617e)};}}return{'tools':_0x3987b4,'servers':_0x277cbc,async 'close'(){function _0x5e1ef1(_0x22bb2e,_0x2eea3e,_0x5a3188,_0x1717f2){return _0x7ba1d7(_0x2eea3e,_0x1717f2- -0x13c,_0x5a3188-0x171,_0x1717f2-0x194);}function _0x5829c0(_0x5b538b,_0x19a66f,_0x3323ea,_0xd3a91a){return _0x7ba1d7(_0x3323ea,_0xd3a91a- -_0x4c7cbc._0xa59940,_0x3323ea-0x10f,_0xd3a91a-0xb8);}await Promise[_0x5e1ef1(0x373,_0x1d50fd._0x4eddb5,_0x1d50fd._0x266fe3,_0x1d50fd._0x54cfa1)](_0xc70591[_0x5e1ef1(_0x1d50fd._0x28e426,_0x1d50fd._0x567a3d,_0x1d50fd._0x281daf,0x2fd)](_0x38601b=>_0x38601b['close']()));}};}function getCommand(_0x366a3c){const _0x12525c={_0xfbff38:0x1c4,_0xaba766:0x2f9,_0x5adbbd:0x192,_0x267e8c:0x75,_0x22fb92:0x3e8,_0x595a6e:0x87,_0x4497c0:0xad,_0x37962a:0x21},_0x18be11={_0x5b370f:0x3e,_0x1a15ce:0x8};function _0x31feea(_0x1ac304,_0x119d53,_0x30c916,_0x4df749){return _0x2ecd0e(_0x30c916- -0x588,_0x119d53-_0x18be11._0x5b370f,_0x30c916-_0x18be11._0x1a15ce,_0x1ac304);}if(_0x366a3c&&typeof _0x366a3c===_0x179b35(0x1f8,_0x12525c._0xfbff38,0x3e3,_0x12525c._0xaba766)&&!Array[_0x31feea(-_0x12525c._0x5adbbd,-0xf2,-_0x12525c._0x267e8c,0x56)](_0x366a3c)&&typeof _0x366a3c[_0x179b35(0x51d,0x4b2,0x4af,_0x12525c._0x22fb92)]==='string')return _0x366a3c[_0x31feea(_0x12525c._0x595a6e,-_0x12525c._0x4497c0,_0x12525c._0x37962a,-0xd2)];function _0x179b35(_0x49347d,_0x372e7d,_0x409bfe,_0x4cf272){return _0x2ecd0e(_0x4cf272- -0x1c1,_0x372e7d-0x1cf,_0x409bfe-0x1e,_0x49347d);}return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x198698(0x77,0xf8,-0x8,0xb0),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0x2ecd0e(0x59c,0x523,0x4d1,0x582),_0x2ecd0e(0x5a7,0x567,0x60f,0x639),_0x2ecd0e(0x5c6,0x505,0x6e8,0x488),'src/formats/message-format.ts',_0x198698(-0x17e,-0x161,-0x273,-0x144),_0x198698(-0x188,-0x1d5,-0x101,-0x5f),_0x198698(-0x63,0x4b,-0x146,-0x37),_0x198698(-0x9f,-0x12,-0x199,-0x43),_0x198698(-0x163,-0x1fc,-0xba,-0x20d),_0x198698(-0x1a2,-0x77,-0xbe,-0x101),_0x198698(-0x1f9,-0x278,-0xbc,-0x297),'src/agent/agent.test.ts','src/models/anthropic-model.ts',_0x198698(-0xea,-0xc,0x50,-0x1be),_0x2ecd0e(0x483,0x533,0x59e,0x3d1)][_0x198698(-0x10b,-0x1ed,-0x158,-0x158)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':_0x2ecd0e(0x6b9,0x670,0x787,0x582),'input_schema':{'type':_0x198698(-0x17d,-0x8e,-0x79,-0x129),'properties':{'command':{'type':'string'}},'required':[_0x2ecd0e(0x5a9,0x671,0x56a,0x668)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x459e68){return{'output':_0x459e68,'structured':{'value':_0x459e68}};}function createUnknownToolResult(_0x1e87be){const _0x55e5c8={_0x22cab9:0x12a,_0x173d90:0xe1,_0x58d3b7:0x24,_0x21af52:0xa,_0x2b01bb:0x204,_0x581405:0x1ce,_0x3cda19:0x246,_0x411304:0x1bb,_0x14543c:0xf1,_0x3fbee6:0x1d,_0x548091:0x150,_0x5aa2c4:0xce},_0x5653d8={_0x26cdbb:0x49e,_0x5e9573:0x14};function _0x2ec870(_0x20c303,_0x11caab,_0x289dae,_0x5568f1){return _0x198698(_0x11caab- -0x5f,_0x11caab-0x2a,_0x20c303,_0x5568f1-0x8b);}function _0x430e27(_0x16ed05,_0xfb6e3d,_0x580fa5,_0x1add30){return _0x2ecd0e(_0x1add30- -_0x5653d8._0x26cdbb,_0xfb6e3d-0xc7,_0x580fa5-_0x5653d8._0x5e9573,_0x16ed05);}return{'callId':_0x1e87be['id'],'toolName':_0x1e87be[_0x2ec870(-0x6e,-_0x55e5c8._0x22cab9,-0x206,-_0x55e5c8._0x173d90)],'status':_0x430e27(-0xa6,-_0x55e5c8._0x58d3b7,_0x55e5c8._0x21af52,0x2a),'output':_0x430e27(_0x55e5c8._0x2b01bb,_0x55e5c8._0x581405,_0x55e5c8._0x3cda19,_0x55e5c8._0x411304)+_0x1e87be[_0x430e27(_0x55e5c8._0x14543c,_0x55e5c8._0x3fbee6,_0x55e5c8._0x548091,_0x55e5c8._0x5aa2c4)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x3879cd,_0x48fda7){const _0x586705={_0x1cf329:0x144,_0x225435:0x326,_0x327f7e:0x40a,_0x232860:0x236},_0x327a4f={_0x2f5ebe:0x375,_0x3dba5d:0xa5},_0x5bf34d={_0x15ec49:0x78,_0x29dfdc:0x9f};function _0x4fa295(_0x79acb8,_0x39a688,_0x34b270,_0x564175){return _0x198698(_0x34b270- -_0x5bf34d._0x15ec49,_0x39a688-_0x5bf34d._0x29dfdc,_0x39a688,_0x564175-0x8e);}function _0x4d64ab(_0x55338f,_0x5685ab,_0x4fee6e,_0x2eb3f3){return _0x2ecd0e(_0x55338f- -_0x327a4f._0x2f5ebe,_0x5685ab-0x66,_0x4fee6e-_0x327a4f._0x3dba5d,_0x2eb3f3);}return{'callId':_0x3879cd['id'],'toolName':_0x3879cd[_0x4d64ab(0x1f7,0x2ef,_0x586705._0x1cf329,0x288)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x3879cd[_0x4d64ab(_0x586705._0x225435,0x23d,_0x586705._0x327f7e,_0x586705._0x232860)]),'exitCode':0x0},'chunks':[_0x48fda7],'meta':createMeta()};}function createMockToolRuntime(){const _0x351cb3={_0x396ab0:0x2f7,_0x277b74:0x221,_0x31e455:0x2c0,_0x5e18e7:0x1c8},_0x7c1931={_0x3f7ff9:0x14},_0x35ac6b=async(_0x1ea89c,_0x279e5f)=>{if(_0x1ea89c['name']!==_0xa52d9c(_0x351cb3._0x396ab0,_0x351cb3._0x277b74,_0x351cb3._0x31e455,_0x351cb3._0x5e18e7))return createUnknownToolResult(_0x1ea89c);function _0xa52d9c(_0x533d1c,_0x4f450f,_0x388d8b,_0x980b07){return _0x163c(_0x388d8b- -_0x7c1931._0x3f7ff9,_0x980b07);}const _0x3badf7=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x1ea89c,_0x3badf7);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x2d467d,_0x356b62){return await Promise['all'](_0x2d467d['map'](async _0x367e61=>{return await _0x35ac6b(_0x367e61,_0x356b62);}));},async 'execute'(_0x55e4d3,_0x210b2e){return await _0x35ac6b(_0x55e4d3,_0x210b2e);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x30e8eb,_0x2580cb){const _0x1c1708={_0x209dd4:0x469,_0x4eb67b:0x3d7};function _0x4b191b(_0x1ba7d8,_0x7f207a,_0x5effa4,_0x532b93){return _0x198698(_0x7f207a-0x424,_0x7f207a-0x133,_0x5effa4,_0x532b93-0xcb);}return typeof _0x30e8eb===_0x4b191b(_0x1c1708._0x209dd4,0x35b,0x405,_0x1c1708._0x4eb67b)?await _0x30e8eb(_0x2580cb):_0x30e8eb;}function getDelegatedAgentDefinition(_0x43fe5b,_0x309b69){return _0x43fe5b['agents']?.[_0x309b69];}function createRunSummary(_0x28dd0a){const _0x542fd3={_0x766a47:0xca,_0x26b440:0xc3,_0x3b5cf5:0x232,_0x355388:0x1a7,_0x5c0287:0x213,_0x349c37:0x3a8,_0x412872:0x353,_0x5d8e14:0x29a,_0x4115d3:0x20c,_0x2a230e:0x398},_0x5de8fa={_0x37d8f2:0x2d7,_0x1dec9e:0x1cf},_0x22a110={_0x19a979:0x1c2};function _0x130ec9(_0x16a03f,_0x4123c4,_0x38a072,_0x120bb0){return _0x198698(_0x38a072-0x383,_0x4123c4-0x1b0,_0x16a03f,_0x120bb0-_0x22a110._0x19a979);}function _0x5dc514(_0x59bfd2,_0x43b4c8,_0x24b17b,_0x7a6cdd){return _0x2ecd0e(_0x7a6cdd- -_0x5de8fa._0x37d8f2,_0x43b4c8-_0x5de8fa._0x1dec9e,_0x24b17b-0x118,_0x59bfd2);}return{'runId':_0x28dd0a['runId'],'agentId':_0x28dd0a[_0x5dc514(_0x542fd3._0x766a47,_0x542fd3._0x26b440,_0x542fd3._0x3b5cf5,_0x542fd3._0x355388)],'sessionId':_0x28dd0a[_0x5dc514(0x489,_0x542fd3._0x5c0287,_0x542fd3._0x349c37,_0x542fd3._0x412872)],'status':_0x28dd0a['status'],'parentSessionId':_0x28dd0a[_0x130ec9(0x24a,0x1dc,0x254,0x37b)],..._0x28dd0a['originToolCallId']!==void 0x0?{'originToolCallId':_0x28dd0a[_0x130ec9(0x36c,0x19a,_0x542fd3._0x5d8e14,0x337)]}:{},..._0x28dd0a['errorMessage']!==void 0x0?{'errorMessage':_0x28dd0a[_0x5dc514(_0x542fd3._0x4115d3,0x359,0x412,0x32d)]}:{},..._0x28dd0a[_0x5dc514(0x487,0x499,0x383,_0x542fd3._0x2a230e)]?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0x28dd0a['result']['finalMessage'])}:{}};}function createRunSummaryOutput(_0x4a0dba,_0x5af036){const _0x201fec={_0x38ffb9:0x5ef,_0x37ba72:0x5d5,_0x295bcd:0x63d,_0x192769:0x5ee},_0x402fd3={_0x2b9d41:0x6ef,_0x2d8351:0x4c};function _0x8d539b(_0x520347,_0x3c6020,_0x968fc3,_0x3edc00){return _0x2ecd0e(_0x968fc3- -0x9f,_0x3c6020-0x147,_0x968fc3-0xb0,_0x520347);}const _0x1c1be9=createRunSummary(_0x4a0dba);function _0x5c20ea(_0x5dffa3,_0x16cdfb,_0x10c13c,_0xeb3ca4){return _0x198698(_0xeb3ca4-_0x402fd3._0x2b9d41,_0x16cdfb-_0x402fd3._0x2d8351,_0x10c13c,_0xeb3ca4-0x5d);}const _0x252df0=_0x1c1be9[_0x8d539b(_0x201fec._0x38ffb9,0x648,_0x201fec._0x37ba72,_0x201fec._0x295bcd)];return createToolOutput(typeof _0x252df0==='string'&&_0x252df0[_0x5c20ea(0x50b,0x4f3,0x5dd,_0x201fec._0x192769)]>0x0?_0x252df0:_0x5af036,_0x1c1be9);}function getRunTerminalErrorMessage(_0x5b8a8c){const _0x3a09b2={_0x359bd9:0x104,_0x2663e1:0x186,_0x5b7923:0x170,_0x1c8b3a:0xe,_0x5bd333:0x7c,_0x37c589:0x96,_0x41172c:0x237,_0x3d14c1:0xbc,_0x185793:0x159,_0x2a9d74:0xe},_0x57c1ac={_0x47d718:0x6a9,_0x37f075:0x198},_0x5703ea={_0xbe844d:0x1bc,_0x2167ef:0x1be};function _0xa634cb(_0x5916f1,_0x4ec23c,_0x413f42,_0x5cfdc7){return _0x198698(_0x5916f1-_0x5703ea._0xbe844d,_0x4ec23c-0x7d,_0x4ec23c,_0x5cfdc7-_0x5703ea._0x2167ef);}const _0x583e90=_0x5b8a8c?.[_0xa634cb(_0x3a09b2._0x359bd9,-0x38,-0x1a,_0x3a09b2._0x2663e1)]['toolResults']['at'](-0x1);function _0x40a2ff(_0x5492c5,_0x20c5c5,_0x28f084,_0x271407){return _0x2ecd0e(_0x28f084- -_0x57c1ac._0x47d718,_0x20c5c5-_0x57c1ac._0x37f075,_0x28f084-0x1f4,_0x271407);}if(_0x583e90?.[_0xa634cb(_0x3a09b2._0x5b7923,0x262,0x243,0x25d)]==='error'&&_0x583e90[_0xa634cb(_0x3a09b2._0x1c8b3a,0x4d,-_0x3a09b2._0x5bd333,-0x5f)][_0xa634cb(0x129,_0x3a09b2._0x37c589,_0x3a09b2._0x41172c,_0x3a09b2._0x3d14c1)]()[_0x40a2ff(-0x246,-_0x3a09b2._0x185793,-0x173,-0x23f)]>0x0)return _0x583e90[_0xa634cb(_0x3a09b2._0x2a9d74,0x9f,-0xe9,-0xf5)];return void 0x0;}function formatAbortedRunMessage(_0x4f83aa,_0x2ba0ce){const _0x84e89e={_0xec4c48:0x2c5,_0x9a1c50:0x3b4,_0x2ef006:0x1e3,_0x342026:0xa1,_0x1e496f:0x179,_0x41f4f6:0x1b,_0x59d2bd:0x1f2,_0x1050c5:0x17f,_0x2b14c5:0x1f7,_0x3e0265:0x1d4,_0x20c2ad:0x1da},_0x2741f9={_0x2732c2:0xe,_0x5afb7a:0x10c},_0x1cecbc={_0xb49ccc:0x112},_0x3c6a63=_0x19e41f(_0x84e89e._0xec4c48,0x324,_0x84e89e._0x9a1c50,_0x84e89e._0x2ef006)+_0x4f83aa+'\x20was\x20aborted.';function _0x19e41f(_0x26c130,_0x3ee8b1,_0x300017,_0x32b089){return _0x198698(_0x26c130-0x34c,_0x3ee8b1-_0x1cecbc._0xb49ccc,_0x300017,_0x32b089-0x15f);}function _0x4eca43(_0x3b3da5,_0x4d9fa7,_0x47440e,_0x3bbfa6){return _0x198698(_0x3b3da5- -_0x2741f9._0x2732c2,_0x4d9fa7-_0x2741f9._0x5afb7a,_0x3bbfa6,_0x3bbfa6-0x2c);}if(!_0x2ba0ce||_0x2ba0ce[_0x4eca43(-_0x84e89e._0x342026,-_0x84e89e._0x1e496f,-_0x84e89e._0x41f4f6,-0xc0)]()[_0x19e41f(0x24b,_0x84e89e._0x59d2bd,0x22a,_0x84e89e._0x1050c5)]===0x0||_0x2ba0ce===_0x3c6a63)return _0x3c6a63;return _0x3c6a63+_0x4eca43(-_0x84e89e._0x2b14c5,-_0x84e89e._0x3e0265,-_0x84e89e._0x20c2ad,-0x16a)+_0x2ba0ce;}function createAssignTaskTool(_0xf89d13){const _0x297df3={_0x4a9f61:0x3db,_0x2949dd:0x3e5,_0x39ade9:0x41f,_0x3f6693:0x1dd,_0x547821:0x23a,_0x517c0d:0x106,_0x52752a:0x173,_0x5aabf8:0x111,_0x2502f9:0xf1,_0x1ad859:0x3a8,_0x16b702:0x4b7,_0x23052c:0x289,_0x29f5f8:0x3c7,_0x484fbe:0x10f,_0x219ff4:0x153,_0x2de5e5:0x1e3,_0x8fbbb8:0x137,_0x43e82b:0x1f8},_0x18fc54={_0x242671:0x6a5,_0x353a77:0x798,_0x1fd3af:0x6f7,_0x3d5c71:0x63b,_0x3c0912:0x49c,_0x47081e:0x4e1,_0x45d776:0x7a3,_0x5bd8ae:0x6ef,_0x3909a2:0x7ce,_0xf9de80:0x517,_0x2c78ee:0x5b9,_0x447f53:0x5c2,_0x1a0775:0x4f5,_0x42b599:0x4a5,_0x706262:0x6c3,_0x14275e:0x672,_0x3e1b58:0x705,_0x440972:0x50b,_0x40c202:0x61a,_0x4878c4:0x6cc,_0x4f7767:0x77d,_0x1730d8:0x7e4,_0x55ba37:0x5d8,_0x25cee7:0x690,_0x510cca:0x65f,_0x46ecf5:0x5ab,_0x26a565:0x6c0,_0x151145:0x72c,_0x1e87b2:0x4e1,_0x499185:0x684,_0xa689e3:0x5be,_0x188806:0x76a,_0xc3b285:0x670,_0x1d6e04:0x700,_0x38d4d8:0x6cb,_0x451a4a:0x561,_0x519a67:0x7a7,_0x2b2097:0x528,_0x56d745:0x50d,_0x4df709:0x5d2,_0x43294d:0x72e,_0x2a0e10:0x5ee,_0x82493b:0x655,_0x506fa8:0x60a,_0x14cd2d:0x6d2,_0x5aa7ed:0x614,_0x44b13d:0x501,_0x181bc3:0x5ec,_0x3703f9:0x515,_0x30b01a:0x58f,_0x29ef17:0x62d,_0x2a4a46:0x732,_0x3a31c6:0x5be,_0x44063a:0x4f2,_0x2f317c:0x532},_0x576e4c={_0x3dfa84:0x3aa,_0x13ad8c:0x97},_0x3358c5={_0xc81f91:0xaf,_0x20d010:0x30,_0x47463c:0x87},_0x3d469a={_0x52ad28:0x2f0},_0x4fbb93={_0x1556b4:0x4d4,_0x378ff8:0x3a};function _0x212f17(_0x381c48,_0x2a50b2,_0x1b0b1f,_0x1ae7bb){return _0x198698(_0x1ae7bb-_0x4fbb93._0x1556b4,_0x2a50b2-0xf8,_0x2a50b2,_0x1ae7bb-_0x4fbb93._0x378ff8);}function _0x2e2205(_0x5515a5,_0x3b0226,_0x1e4ffa,_0x2cee5c){return _0x198698(_0x3b0226-_0x3d469a._0x52ad28,_0x3b0226-0xc9,_0x1e4ffa,_0x2cee5c-0x13d);}return defineTool({'name':_0x212f17(_0x297df3._0x4a9f61,_0x297df3._0x2949dd,_0x297df3._0x39ade9,0x38c),'description':_0x2e2205(_0x297df3._0x3f6693,0x2ef,_0x297df3._0x547821,0x1df),'inputSchema':{'type':_0x2e2205(_0x297df3._0x517c0d,_0x297df3._0x52752a,_0x297df3._0x5aabf8,_0x297df3._0x2502f9),'properties':{'agentId':{'type':'string'},'description':{'type':_0x212f17(_0x297df3._0x1ad859,_0x297df3._0x16b702,_0x297df3._0x23052c,_0x297df3._0x29f5f8)},'nickname':{'type':_0x2e2205(_0x297df3._0x484fbe,0x1e3,_0x297df3._0x219ff4,0x1e9)},'task':{'type':_0x2e2205(0xbd,_0x297df3._0x2de5e5,0x1b6,0x277)}},'required':[_0x2e2205(0x155,_0x297df3._0x8fbbb8,_0x297df3._0x43e82b,0xec),_0x212f17(0x4f0,0x4b5,0x49e,0x458),'task']},async *'execute'(_0x1832e8,_0x487b6a){const _0x5d8f63={_0x29bb44:0x21,_0x552f54:0x1fc},_0x3285eb={_0x429d75:0x1c9,_0x8630c0:0x66b},_0x5dd417=createDelegatedRunId(),_0x1d49a8={'agentId':_0x1832e8['agentId'],'parentSessionId':_0x487b6a['sessionId'],'runId':_0x5dd417,..._0x487b6a[_0x368b21(0x761,0x70f,_0x18fc54._0x242671,0x7c0)]!==void 0x0?{'toolCallId':_0x487b6a[_0x368b21(_0x18fc54._0x353a77,_0x18fc54._0x1fd3af,0x6a5,_0x18fc54._0x3d5c71)]}:{}},_0x4286b5=getDelegatedAgentDefinition(_0xf89d13,_0x1832e8[_0x368b21(_0x18fc54._0x3c0912,0x58c,_0x18fc54._0x47081e,0x51c)]);if(!_0x4286b5)throw new ToolExecutionError(_0x368b21(0x618,_0x18fc54._0x45d776,_0x18fc54._0x5bd8ae,_0x18fc54._0x3909a2)+_0x1832e8[_0x46a525(_0x18fc54._0xf9de80,0x5f9,_0x18fc54._0x2c78ee,_0x18fc54._0x447f53)],{'agentId':_0x1832e8[_0x46a525(0x517,0x539,0x603,_0x18fc54._0x1a0775)]});const _0x1bac26=new Agent(await resolveDelegatedAgentOptions(_0x4286b5,_0x1d49a8));let _0x25778e={'runId':_0x5dd417,'agentId':_0x1832e8[_0x368b21(0x61d,_0x18fc54._0x42b599,0x4e1,0x59c)],'sessionId':_0x1bac26[_0x46a525(_0x18fc54._0x706262,_0x18fc54._0x14275e,0x800,_0x18fc54._0x3e1b58)],'status':_0x368b21(_0x18fc54._0x440972,0x702,_0x18fc54._0x40c202,_0x18fc54._0x4878c4),'parentSessionId':_0x487b6a[_0x46a525(_0x18fc54._0x706262,_0x18fc54._0x4f7767,0x6c6,_0x18fc54._0x1730d8)],..._0x487b6a['toolCallId']!==void 0x0?{'originToolCallId':_0x487b6a[_0x368b21(_0x18fc54._0x55ba37,0x652,_0x18fc54._0x242671,0x60b)]}:{}};const _0x35b2ad=new AbortController(),_0x8193c7=addAbortListener(_0x487b6a[_0x46a525(_0x18fc54._0x25cee7,0x641,0x5df,0x702)],()=>{function _0x35ee42(_0x51ec4b,_0x11e7d0,_0x36ef48,_0x12f813){return _0x368b21(_0x51ec4b-_0x3285eb._0x429d75,_0x11e7d0-0xbf,_0x51ec4b- -_0x3285eb._0x8630c0,_0x11e7d0);}function _0x545146(_0x240a3c,_0x28ebca,_0x523048,_0x231875){return _0x46a525(_0x240a3c- -0x703,_0x28ebca-0x184,_0x523048-0x138,_0x523048);}_0x35b2ad['abort'](_0x487b6a[_0x35ee42(-0x11,0x102,-_0x3358c5._0xc81f91,0x5)]?.[_0x545146(-_0x3358c5._0x20d010,-0xf6,-_0x3358c5._0x47463c,-0xdf)]);});function _0x368b21(_0x480ba8,_0x220852,_0x4b607f,_0x4b97f9){return _0x2e2205(_0x480ba8-0x181,_0x4b607f-_0x576e4c._0x3dfa84,_0x4b97f9,_0x4b97f9-_0x576e4c._0x13ad8c);}yield createToolOutput(_0x368b21(_0x18fc54._0x510cca,_0x18fc54._0x46ecf5,_0x18fc54._0x26a565,_0x18fc54._0x151145)+_0x25778e['runId']+'.',{'runId':_0x25778e['runId'],'agentId':_0x25778e[_0x368b21(0x58c,0x40b,_0x18fc54._0x1e87b2,0x4c1)],'sessionId':_0x25778e['sessionId'],'status':_0x25778e[_0x46a525(_0x18fc54._0x499185,0x58c,_0x18fc54._0xa689e3,_0x18fc54._0x188806)]});function _0x46a525(_0x48b5a4,_0x8a9dd2,_0x579897,_0x1a9167){return _0x212f17(_0x48b5a4-_0x5d8f63._0x29bb44,_0x1a9167,_0x579897-0x6f,_0x48b5a4-_0x5d8f63._0x552f54);}try{const _0x4c95b9=await _0x1bac26['send'](_0x1832e8['task'],{'signal':_0x35b2ad[_0x46a525(0x690,_0x18fc54._0xc3b285,_0x18fc54._0x1d6e04,0x7b7)]});_0x25778e={..._0x25778e,'status':_0x4c95b9[_0x46a525(_0x18fc54._0x499185,_0x18fc54._0x38d4d8,_0x18fc54._0x451a4a,_0x18fc54._0x519a67)],'result':_0x4c95b9};if(_0x4c95b9[_0x368b21(_0x18fc54._0x2b2097,0x517,0x64e,0x77e)]!==_0x46a525(0x646,0x6ec,_0x18fc54._0x56d745,_0x18fc54._0x4df709)){const _0x3d15f7=getRunTerminalErrorMessage(_0x4c95b9),_0x3c8390=formatAbortedRunMessage(_0x25778e['runId'],_0x3d15f7);throw new ToolExecutionError(_0x3c8390,{...createRunSummary(_0x25778e),'aborted':!![],'errorMessage':_0x3c8390});}return createRunSummaryOutput(_0x25778e,'Agent\x20run\x20'+_0x25778e['runId']+_0x46a525(_0x18fc54._0x43294d,0x738,0x6ce,_0x18fc54._0x2a0e10));}catch(_0x13a571){if(_0x13a571 instanceof ToolExecutionError)throw _0x13a571;if(isAbortError(_0x13a571)||_0x35b2ad[_0x46a525(0x690,_0x18fc54._0x82493b,0x6bd,0x713)]['aborted']||_0x487b6a['signal']['aborted']){const _0x591ff1=getRunTerminalErrorMessage(_0x25778e[_0x368b21(0x7cb,_0x18fc54._0x506fa8,_0x18fc54._0x14cd2d,0x7fc)])??(_0x13a571 instanceof Error?_0x13a571[_0x46a525(_0x18fc54._0x5aa7ed,_0x18fc54._0x44b13d,_0x18fc54._0x181bc3,_0x18fc54._0x3703f9)]:String(_0x13a571)),_0xa5b8c6=formatAbortedRunMessage(_0x25778e[_0x46a525(_0x18fc54._0x30b01a,0x668,_0x18fc54._0x29ef17,_0x18fc54._0x451a4a)],_0x591ff1);_0x25778e={..._0x25778e,'status':_0x368b21(_0x18fc54._0x2a4a46,_0x18fc54._0x3a31c6,0x6db,0x73d),'errorMessage':_0xa5b8c6};throw new ToolExecutionError(_0xa5b8c6,{...createRunSummary(_0x25778e),'aborted':!![],'errorMessage':_0xa5b8c6});}const _0x27a103=getRunTerminalErrorMessage(_0x25778e[_0x368b21(0x680,0x6dd,0x6d2,0x614)])??(_0x13a571 instanceof Error?_0x13a571[_0x46a525(0x614,0x68d,_0x18fc54._0x44063a,_0x18fc54._0x2f317c)]:String(_0x13a571))??_0x46a525(0x649,0x534,0x62d,0x533)+_0x25778e['runId']+_0x46a525(0x56c,0x5ef,0x432,0x512);_0x25778e={..._0x25778e,'status':'failed','errorMessage':_0x27a103};throw new ToolExecutionError(_0x27a103,{...createRunSummary(_0x25778e),'errorMessage':_0x27a103});}finally{_0x8193c7();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0xcf900d){return[createAssignTaskTool(_0xcf900d)];}import*as _0x47faf0 from'path';function buildDescription2(_0x1cbc6b){const _0x500dc4={_0x4b87b8:0x237,_0x1b1f8d:0xfe,_0xd9a2e4:0x165,_0x593098:0xfa,_0x153afb:0x134,_0x347d73:0x152,_0x39fdbd:0x126,_0x5dd733:0x1f,_0x38bac1:0x17,_0x5b09e0:0xa2,_0x63020c:0xc6,_0x4e1a52:0x6e,_0x26ea99:0x1f7,_0x2b0e9a:0xae,_0x377b95:0x84},_0xddc18={_0x5cb3a3:0x1a,_0x597e81:0x16a},_0x324930={_0x70cd6c:0x39e,_0x24aabb:0x153};if(_0x1cbc6b['length']===0x0)return _0x53ca1d(-0x1de,-0x2e9,-_0x500dc4._0x4b87b8,-_0x500dc4._0x1b1f8d);const _0x2b2058=[_0x429274(_0x500dc4._0xd9a2e4,0x342,0x22d,_0x500dc4._0x593098),_0x429274(_0x500dc4._0x153afb,_0x500dc4._0x347d73,_0x500dc4._0x39fdbd,_0x500dc4._0x5dd733),_0x53ca1d(_0x500dc4._0x38bac1,_0x500dc4._0x5b09e0,-_0x500dc4._0x63020c,-_0x500dc4._0x4e1a52),_0x429274(0x10c,0xed,0x220,_0x500dc4._0x26ea99),..._0x1cbc6b[_0x53ca1d(-_0x500dc4._0x2b0e9a,-0xa2,-0x80,_0x500dc4._0x377b95)](_0x4e48b8=>'-\x20'+_0x4e48b8['name']+':\x20'+_0x4e48b8[_0x429274(0x11e,0x134,0x21d,0xdf)])];function _0x429274(_0x3b2e4e,_0xe51ae8,_0x1d50dd,_0x3dcef6){return _0x2ecd0e(_0x1d50dd- -_0x324930._0x70cd6c,_0xe51ae8-0xcf,_0x1d50dd-_0x324930._0x24aabb,_0x3b2e4e);}function _0x53ca1d(_0x37a726,_0x232a78,_0x406b07,_0x16fa86){return _0x198698(_0x37a726-_0xddc18._0x5cb3a3,_0x232a78-0x38,_0x16fa86,_0x16fa86-_0xddc18._0x597e81);}return _0x2b2058['join']('\x0a');}function createLoadSkillTool(_0x27567a){const _0xb314f9={_0x3274fa:0x258,_0x55ab24:0x351,_0x5db818:0x241,_0x3a7f4e:0x14a,_0x3ac543:0x1e,_0x50b183:0xbb,_0xf181c:0xc4,_0x16e0da:0x472,_0x5009a0:0x3f7,_0x2a0481:0x379,_0x20bc1d:0x44c,_0x5e3bb8:0xa4,_0x426b67:0x4f,_0x131d9f:0x3b1},_0x47c51f={_0x581762:0x361,_0x34185a:0x363,_0x55de6c:0x3d1,_0xa96f1:0x1c4,_0x2f5a95:0x2c4,_0x5ef35d:0x1e7,_0x5db079:0x40c,_0x232406:0x3bc,_0x3cb0d9:0x3f5,_0x1b09d2:0x3c0,_0x28ffd5:0x3e0,_0x587b7b:0x3b9,_0x509a41:0x3ab,_0x92e517:0x1aa,_0xc2f88d:0x170,_0x210edd:0x4b4,_0xcfccdc:0x4c0,_0x460e29:0x399,_0x2bcb36:0x231,_0x3c8722:0x38a,_0x208ee0:0x387,_0x4de70e:0x434,_0x5df9b8:0x463,_0x5d7c5e:0x499,_0x41b914:0x21e,_0x334cc1:0x4c3,_0x41872f:0x2e0,_0x2522a4:0x3ab,_0xbf058:0x391,_0x3bb8ee:0x2b0,_0x282188:0x414,_0x4e55a8:0x305},_0x3e73e4={_0x3ee1e3:0x12,_0x57d883:0x9a},_0x42d8c9=new Map(_0x27567a[_0x319e33(0x276,_0xb314f9._0x3274fa,_0xb314f9._0x55ab24,_0xb314f9._0x5db818)][_0x4b36ad(-_0xb314f9._0x3a7f4e,0x83,-_0xb314f9._0x3ac543,0x0)](_0x35b951=>[_0x35b951['name'],_0x35b951]));function _0x4b36ad(_0x156040,_0x28be38,_0x4ce729,_0x5c332a){return _0x2ecd0e(_0x4ce729- -0x58d,_0x28be38-0x195,_0x4ce729-0x144,_0x156040);}function _0x319e33(_0xa630b9,_0x215b4a,_0x5ea93b,_0x4bb69e){return _0x2ecd0e(_0xa630b9- -0x1ef,_0x215b4a-_0x3e73e4._0x3ee1e3,_0x5ea93b-_0x3e73e4._0x57d883,_0x5ea93b);}const _0x48dfe8=buildDescription2(_0x27567a[_0x4b36ad(-0x42,-_0xb314f9._0x50b183,-0x128,-_0xb314f9._0xf181c)]);return defineTool({'name':_0x319e33(_0xb314f9._0x16e0da,_0xb314f9._0x5009a0,_0xb314f9._0x2a0481,_0xb314f9._0x20bc1d),'description':_0x48dfe8,'inputSchema':{'type':_0x4b36ad(-0xa3,-_0xb314f9._0x5e3bb8,-0xd3,_0xb314f9._0x426b67),'properties':{'name':{'type':_0x4b36ad(0x6f,0xaf,-0x63,0x59)}},'required':[_0x319e33(0x37d,0x4bd,_0xb314f9._0x131d9f,0x2fd)]},async *'execute'(_0x1ebfb1){const _0x5bd1aa={_0x46fbc5:0x49},_0x2d411c={_0x12c3e5:0x14,_0x2f1204:0x3cc},_0x3a3eae=_0x42d8c9[_0x113f0c(0x2d8,_0x47c51f._0x581762,0x39f,0x373)](_0x1ebfb1[_0x573b87(0x2c4,_0x47c51f._0x34185a,_0x47c51f._0x55de6c,_0x47c51f._0xa96f1)]);if(!_0x3a3eae){const _0x428a68=Array['from'](_0x42d8c9['keys']())['join'](',\x20');throw new ToolExecutionError(_0x113f0c(0x400,0x47a,0x44b,0x3f1)+_0x1ebfb1[_0x573b87(_0x47c51f._0x2f5a95,0x3ca,_0x47c51f._0x5ef35d,0x31d)]+_0x113f0c(_0x47c51f._0x5db079,0x513,_0x47c51f._0x232406,_0x47c51f._0x3cb0d9)+_0x428a68,{'name':_0x1ebfb1[_0x113f0c(_0x47c51f._0x1b09d2,_0x47c51f._0x28ffd5,_0x47c51f._0x587b7b,_0x47c51f._0x509a41)]});}function _0x113f0c(_0x146c61,_0x45049d,_0x7a7737,_0x5a1c6c){return _0x4b36ad(_0x7a7737,_0x45049d-_0x2d411c._0x12c3e5,_0x5a1c6c-_0x2d411c._0x2f1204,_0x5a1c6c-0x192);}const _0x51d090=await _0x27567a['loadSkill'](_0x3a3eae),_0x55fdbb=_0x3a3eae[_0x113f0c(0x4d5,0x579,0x4ff,0x478)]['directory']??_0x47faf0[_0x573b87(_0x47c51f._0x92e517,0x1ad,_0x47c51f._0xc2f88d,0x230)](_0x3a3eae[_0x113f0c(_0x47c51f._0x210edd,0x580,_0x47c51f._0xcfccdc,0x478)][_0x113f0c(_0x47c51f._0x460e29,_0x47c51f._0x2bcb36,_0x47c51f._0x3c8722,0x305)]);function _0x573b87(_0x18b446,_0x5729c2,_0x4884ee,_0x71b03f){return _0x319e33(_0x18b446- -0xb9,_0x5729c2-_0x5bd1aa._0x46fbc5,_0x71b03f,_0x71b03f-0x1bc);}const _0x1fb151=[_0x573b87(_0x47c51f._0x208ee0,_0x47c51f._0x4de70e,0x258,0x3ab)+_0x51d090['name'],'',_0x51d090[_0x573b87(0x401,_0x47c51f._0x5df9b8,0x494,0x497)],'','---','Loaded\x20from:\x20'+_0x3a3eae[_0x573b87(0x391,0x490,0x34b,_0x47c51f._0x5d7c5e)][_0x573b87(_0x47c51f._0x41b914,0x2c4,0x2f6,0x355)],'Base\x20directory:\x20'+_0x55fdbb]['join']('\x0a');return yield createToolOutput(_0x1fb151,{'id':_0x51d090['id'],'name':_0x51d090[_0x113f0c(_0x47c51f._0x334cc1,_0x47c51f._0x41872f,0x4a6,_0x47c51f._0x2522a4)],'path':_0x3a3eae[_0x573b87(_0x47c51f._0xbf058,_0x47c51f._0x3bb8ee,_0x47c51f._0x282188,0x4c8)][_0x113f0c(0x254,0x340,0x3a5,_0x47c51f._0x4e55a8)],'baseDirectory':_0x55fdbb}),void 0x0;}});}var TODO_STATUSES=new Set([_0x2ecd0e(0x5f1,0x4cd,0x690,0x4b8),'in_progress',_0x198698(-0x8a,-0x106,0x97,-0x11d)]),TODO_PRIORITIES=new Set([_0x198698(-0x1b0,-0x1fe,-0x2a9,-0x141),_0x2ecd0e(0x5e1,0x629,0x4c5,0x5b3),_0x2ecd0e(0x4bd,0x5b1,0x469,0x4a7)]);function isTodoStatus(_0x5b9abf){const _0x28f952={_0x4f3456:0x1c2},_0x4af839={_0x342cd1:0x1f5,_0x221a91:0x21};function _0x24affa(_0x1b747b,_0x41c649,_0x156569,_0x57882d){return _0x2ecd0e(_0x41c649- -_0x4af839._0x342cd1,_0x41c649-0x43,_0x156569-_0x4af839._0x221a91,_0x57882d);}function _0x3d3196(_0x2c2581,_0x24efc4,_0x26bb38,_0x583278){return _0x2ecd0e(_0x24efc4- -0x519,_0x24efc4-0x1ea,_0x26bb38-0xcb,_0x2c2581);}return typeof _0x5b9abf===_0x3d3196(0x149,0x11,-0xb3,-0x107)&&TODO_STATUSES[_0x3d3196(_0x28f952._0x4f3456,0x89,0x14e,0x149)](_0x5b9abf);}function isTodoPriority(_0x535f2e){const _0x1b0655={_0x2c0ca4:0x1f8,_0x22aaac:0x217},_0x1d11a6={_0xf05d18:0x28d};function _0x19ed30(_0x167cef,_0x3fe682,_0x288f7e,_0x1b15a4){return _0x198698(_0x3fe682-_0x1d11a6._0xf05d18,_0x3fe682-0x179,_0x167cef,_0x1b15a4-0x56);}return typeof _0x535f2e==='string'&&TODO_PRIORITIES[_0x19ed30(0x13f,_0x1b0655._0x2c0ca4,_0x1b0655._0x22aaac,0x2fd)](_0x535f2e);}var TodoStore=class{[_0x198698(-0x4d,0x41,-0x6f,0x2d)]=new Map();['getTodos'](_0x374703){const _0xc523b5={_0xf2c1a0:0x609},_0x1b1e84={_0x2b0050:0x1dd,_0x411bd2:0x15a},_0xb21945={_0x38e591:0x4ca,_0x1135c3:0x72};function _0x513e6d(_0x2f1e88,_0x76ab10,_0x3a5e4d,_0x153e84){return _0x198698(_0x3a5e4d-_0xb21945._0x38e591,_0x76ab10-_0xb21945._0x1135c3,_0x76ab10,_0x153e84-0x11a);}function _0x59293f(_0x29ede5,_0x118209,_0x4cfced,_0x502ad6){return _0x2ecd0e(_0x502ad6-0x1f,_0x118209-_0x1b1e84._0x2b0050,_0x4cfced-_0x1b1e84._0x411bd2,_0x4cfced);}return this[_0x59293f(0x683,0x6f0,0x6c8,_0xc523b5._0xf2c1a0)][_0x59293f(0x648,0x44f,0x465,0x553)](_0x374703)??[];}[_0x198698(0x4d,0x153,0x9f,-0xbf)](_0x3162de,_0x591a25){const _0x358c53={_0x43fb8f:0x5b,_0x26052c:0x95};function _0x3bb2e1(_0x11f92b,_0x1bd877,_0xe9c4e7,_0x5305c7){return _0x2ecd0e(_0x5305c7- -0x601,_0x1bd877-0x146,_0xe9c4e7-0x1d9,_0x11f92b);}this[_0x3bb2e1(_0x358c53._0x43fb8f,0xd6,-_0x358c53._0x26052c,-0x17)]['set'](_0x3162de,_0x591a25);}[_0x198698(0x43,0x56,0x6,-0xfa)](_0x1616b1){const _0x2e1963={_0x47c556:0x40c,_0x43d841:0x418,_0x41c7a9:0xaf,_0x18cc94:0x18b,_0x1d0741:0x8,_0x3c9fbf:0xc,_0x13e092:0x90,_0x3d4b59:0x3f5,_0x55f05b:0x4c5,_0x44124b:0x2c9,_0x284b5d:0x31b,_0x2f3685:0x355,_0x28b4f1:0x360},_0x28c752={_0x559b12:0x1b9,_0x1ebb3b:0x7e},_0x1db2d2={_0x33458d:0x5e5,_0x222c12:0x38,_0x5a79d7:0xed};function _0x127701(_0x4db209,_0x57730f,_0x40096c,_0xf017bc){return _0x2ecd0e(_0x57730f- -_0x1db2d2._0x33458d,_0x57730f-_0x1db2d2._0x222c12,_0x40096c-_0x1db2d2._0x5a79d7,_0x4db209);}const _0x78cb34=this[_0x5d5d32(_0x2e1963._0x47c556,_0x2e1963._0x43d841,0x4aa,0x48f)](_0x1616b1),_0x48f329={'total':_0x78cb34[_0x127701(-0xba,-_0x2e1963._0x41c7a9,-_0x2e1963._0x18cc94,_0x2e1963._0x1d0741)],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x5d5d32(_0xce0245,_0x128cd6,_0x4810c5,_0x9b39ac){return _0x198698(_0x128cd6-0x3ea,_0x128cd6-_0x28c752._0x559b12,_0xce0245,_0x9b39ac-_0x28c752._0x1ebb3b);}for(const _0x225056 of _0x78cb34){if(_0x225056['status']===_0x127701(0x10f,_0x2e1963._0x3c9fbf,-_0x2e1963._0x13e092,-0x87))_0x48f329[_0x5d5d32(_0x2e1963._0x3d4b59,0x3a4,_0x2e1963._0x55f05b,_0x2e1963._0x44124b)]+=0x1;else{if(_0x225056[_0x5d5d32(0x4b2,0x39e,_0x2e1963._0x284b5d,0x2ba)]===_0x5d5d32(0x3c7,0x2b6,0x1dd,0x2d3))_0x48f329['inProgress']+=0x1;else _0x48f329[_0x5d5d32(_0x2e1963._0x2f3685,_0x2e1963._0x28b4f1,0x382,0x27f)]+=0x1;}}return _0x48f329;}};function validateTodos(_0x11ccaf){const _0x160534={_0x44566e:0x298,_0xc23f7:0x1b6,_0xeec5cb:0x17c,_0x5d323f:0xd6,_0x13050a:0x137,_0xa274f2:0x1a0,_0x24c94e:0x445,_0x4e5d6c:0x5ff,_0x553d90:0x7a,_0x596af6:0x12a,_0xc82a35:0x4b,_0x42ab54:0x4e8,_0x2b2ac3:0x5a9,_0x3bcd73:0x449,_0x1622d7:0x55c,_0x4c52eb:0x5da,_0x29b62f:0x6e5,_0xe70e56:0x669,_0xae71b:0x5b8,_0x545c8f:0x4e0,_0x5eb772:0x204,_0x3ef820:0x29,_0x4ca8a4:0x173,_0xfe4370:0x193,_0x433d47:0x161,_0xd53517:0x1b9,_0x156904:0x1eb,_0x496681:0x266,_0x5cad36:0x5dc,_0x3f3651:0x4cd,_0x33f0f0:0x1e7,_0x45633f:0x236,_0x240279:0x20a,_0x394f20:0x19f,_0x2080e6:0x4d3,_0x5ba1ee:0x1a,_0xfc0e5:0x125,_0x204eee:0x117,_0x2ec2ef:0x74,_0x2135b8:0x495,_0x4e5adb:0x4e3,_0xe0e4b2:0x494,_0x4ee184:0x4f8,_0x4a3ef8:0x4ea,_0x4393ef:0x5ee,_0x47a7c7:0xe0,_0xbb4bb4:0x44a,_0x343ab2:0x494,_0x12afb4:0x4d9,_0x289aad:0x294,_0x5adb07:0x1e4,_0x464820:0x225,_0x146079:0x166,_0x144611:0xe5},_0x30a3bf={_0x57aa26:0x4a,_0x57425c:0x122,_0xdf0d3c:0xb1},_0x132d1d={_0x8e1035:0x92,_0xbb6c7:0xae,_0x3f8666:0x100};function _0x42feee(_0x2ced98,_0x2d60f8,_0x4ec34a,_0x52f560){return _0x198698(_0x4ec34a- -_0x132d1d._0x8e1035,_0x2d60f8-_0x132d1d._0xbb6c7,_0x2d60f8,_0x52f560-_0x132d1d._0x3f8666);}if(!Array[_0x42feee(-_0x160534._0x44566e,-0x1b0,-_0x160534._0xc23f7,-_0x160534._0xeec5cb)](_0x11ccaf[_0x42feee(-0x1a2,-0xfa,-_0x160534._0x5d323f,-0x13f)])||_0x11ccaf[_0x42feee(-0x54,-_0x160534._0x13050a,-0xd6,-_0x160534._0xa274f2)][_0x3c5437(_0x160534._0x24c94e,0x5d0,0x4ec,_0x160534._0x4e5d6c)]===0x0)throw new ToolExecutionError('Parameter\x20\x22todos\x22\x20must\x20be\x20a\x20non-empty\x20array',{'error':_0x42feee(_0x160534._0x553d90,-_0x160534._0x596af6,-_0x160534._0xc82a35,-0x33)});for(let _0x2fb599=0x0;_0x2fb599<_0x11ccaf[_0x3c5437(0x617,_0x160534._0x42ab54,_0x160534._0x2b2ac3,0x571)][_0x3c5437(_0x160534._0x3bcd73,_0x160534._0x1622d7,0x4ec,_0x160534._0x4c52eb)];_0x2fb599+=0x1){const _0x1a15d7=_0x11ccaf[_0x3c5437(0x497,_0x160534._0x29b62f,_0x160534._0x2b2ac3,_0x160534._0xe70e56)][_0x2fb599];if(!_0x1a15d7||typeof _0x1a15d7!=='object')throw new ToolExecutionError('Todo\x20'+(_0x2fb599+0x1)+':\x20todo\x20item\x20is\x20required',{'error':_0x3c5437(0x585,_0x160534._0xae71b,0x4af,0x593)});if(typeof _0x1a15d7['id']!==_0x3c5437(0x5ee,0x527,_0x160534._0x545c8f,0x54a)||_0x1a15d7['id'][_0x42feee(-0x1a1,-_0x160534._0x5eb772,-0x125,-_0x160534._0x3ef820)]()[_0x42feee(-0xa7,-_0x160534._0x4ca8a4,-_0x160534._0xfe4370,-_0x160534._0x433d47)]===0x0)throw new ToolExecutionError(_0x42feee(-_0x160534._0xd53517,-0x2a1,-_0x160534._0x156904,-_0x160534._0x496681)+(_0x2fb599+0x1)+':\x20id\x20required',{'error':_0x3c5437(0x69e,_0x160534._0x5cad36,0x5f7,_0x160534._0x3f3651)});if(typeof _0x1a15d7[_0x42feee(-_0x160534._0x33f0f0,-0x34d,-_0x160534._0x45633f,-0x140)]!==_0x42feee(-0x253,-_0x160534._0x240279,-_0x160534._0x394f20,-0xb7)||_0x1a15d7[_0x3c5437(_0x160534._0x2080e6,0x327,0x449,0x3f2)][_0x42feee(_0x160534._0x5ba1ee,-0x1c3,-_0x160534._0xfc0e5,-0x7f)]()[_0x42feee(-0x265,-_0x160534._0x204eee,-0x193,-_0x160534._0x2ec2ef)]===0x0)throw new ToolExecutionError(_0x3c5437(_0x160534._0x2135b8,_0x160534._0x4e5adb,_0x160534._0xe0e4b2,_0x160534._0x4ee184)+(_0x2fb599+0x1)+':\x20content\x20required',{'error':_0x3c5437(_0x160534._0x4a3ef8,0x65c,_0x160534._0x4393ef,0x67d)});if(!isTodoStatus(_0x1a15d7['status']))throw new ToolExecutionError('Todo\x20'+(_0x2fb599+0x1)+':\x20invalid\x20status',{'error':_0x42feee(-0x6e,-0xb1,-0x25,-_0x160534._0x47a7c7)});if(!isTodoPriority(_0x1a15d7['priority']))throw new ToolExecutionError(_0x3c5437(_0x160534._0xbb4bb4,0x421,_0x160534._0x343ab2,_0x160534._0x12afb4)+(_0x2fb599+0x1)+':\x20invalid\x20priority',{'error':'invalid_todo_priority'});}const _0x170a48=_0x11ccaf['todos']['map'](_0x48d845=>_0x48d845['id']);function _0x3c5437(_0x2ed2ee,_0x528716,_0x234c4f,_0x9742b7){return _0x2ecd0e(_0x234c4f- -_0x30a3bf._0x57aa26,_0x528716-_0x30a3bf._0x57425c,_0x234c4f-_0x30a3bf._0xdf0d3c,_0x2ed2ee);}if(new Set(_0x170a48)['size']!==_0x170a48['length'])throw new ToolExecutionError(_0x42feee(-_0x160534._0x289aad,-0x17d,-_0x160534._0x5adb07,-_0x160534._0x464820),{'error':_0x42feee(-_0x160534._0x146079,-0x167,-_0x160534._0x144611,-0x107)});}function createStatsProgress(_0x4fa324){const _0x4cb5a4={_0x52c4bc:0x2af,_0x5406b4:0x3a9,_0x584a85:0x34f,_0x29a0cd:0x12e,_0x46fd11:0x15f,_0x292613:0x23e,_0x3bdade:0x141,_0x3ca1ff:0x79},_0x5b827a={_0x53741d:0x36f};function _0x1e3282(_0x26a9a5,_0x46c7c4,_0x1df052,_0x2d4bf6){return _0x2ecd0e(_0x2d4bf6- -_0x5b827a._0x53741d,_0x46c7c4-0x1cd,_0x1df052-0x1ba,_0x46c7c4);}function _0x3e91f3(_0x25050e,_0x225043,_0xfbc05c,_0x2478ea){return _0x2ecd0e(_0x25050e- -0x85,_0x225043-0x56,_0xfbc05c-0x1af,_0xfbc05c);}return _0x4fa324[_0x3e91f3(0x3ca,_0x4cb5a4._0x52c4bc,0x3cd,0x3b9)]>0x0?Math[_0x3e91f3(0x41c,0x4b6,_0x4cb5a4._0x5406b4,_0x4cb5a4._0x584a85)](_0x4fa324[_0x1e3282(_0x4cb5a4._0x29a0cd,0x2f7,_0x4cb5a4._0x46fd11,_0x4cb5a4._0x292613)]/_0x4fa324[_0x1e3282(0x164,_0x4cb5a4._0x3bdade,_0x4cb5a4._0x3ca1ff,0xe0)]*0x64)+'%':'0%';}function createReminderItems(_0xcd0c19){const _0x36ad19={_0x2800c7:0x3ed,_0x244391:0x4ad,_0x55f692:0x50d},_0x448b9e={_0x20a9f9:0x1a5},_0xccf32e={_0x2e66d7:0x182,_0x5232ef:0x1e5,_0x5cb7c4:0x113};function _0xc3abbd(_0x3837ef,_0x2a1c12,_0x263d1a,_0x4b7bc4){return _0x2ecd0e(_0x3837ef- -_0xccf32e._0x2e66d7,_0x2a1c12-_0xccf32e._0x5232ef,_0x263d1a-_0xccf32e._0x5cb7c4,_0x4b7bc4);}function _0x302af9(_0x241afb,_0x1b47f6,_0x29010c,_0x2b043d){return _0x198698(_0x241afb-_0x448b9e._0x20a9f9,_0x1b47f6-0x1da,_0x1b47f6,_0x2b043d-0x10e);}return _0xcd0c19[_0xc3abbd(_0x36ad19._0x2800c7,_0x36ad19._0x244391,_0x36ad19._0x55f692,0x326)](_0x8064e3=>({'content':_0x8064e3['content'],'status':_0x8064e3[_0x302af9(0x159,0x8e,0x273,0x99)],'id':_0x8064e3['id']}));}function createStructuredResult(_0x172d08,_0x112e90,_0x5e2ae5,_0x5ef998){const _0x242be1={_0x3220e6:0x44a,_0x44b01c:0x4ee,_0x27f949:0x2aa,_0x52cf02:0x1b7},_0xb1ca75={_0x23f12b:0x63f,_0x2439bd:0x3};function _0x5daa9a(_0x4cdd9a,_0x4055d3,_0x2b477d,_0x393da6){return _0x2ecd0e(_0x2b477d- -0x6ed,_0x4055d3-0x1af,_0x2b477d-0x94,_0x4cdd9a);}function _0x3deb68(_0x1ee0d5,_0x3f88f8,_0x141722,_0x44eef1){return _0x198698(_0x44eef1-_0xb1ca75._0x23f12b,_0x3f88f8-0x8d,_0x1ee0d5,_0x44eef1-_0xb1ca75._0x2439bd);}return{'allCompleted':_0x5ef998,'items':_0x112e90[_0x3deb68(_0x242be1._0x3220e6,_0x242be1._0x44b01c,0x480,0x577)](_0x432145=>({'id':_0x432145['id'],'content':_0x432145[_0x5daa9a(-0x1e4,-0x199,-0x25a,-0x373)],'status':_0x432145['status'],'priority':_0x432145[_0x3deb68(0x49f,0x566,0x4ea,0x5a6)],'createdAt':_0x432145[_0x5daa9a(-0x125,-0xfb,-0x54,-0xb9)]})),'progress':createStatsProgress(_0x5e2ae5),'recentChanges':!![],'sessionId':_0x172d08,'stats':_0x5e2ae5,'todosWritten':_0x112e90[_0x5daa9a(-_0x242be1._0x27f949,-0x17b,-_0x242be1._0x52cf02,-0x1b4)]};}function createOutputText(_0x133969,_0x1b90e8){const _0x53407c={_0x409499:0x1d9,_0x4a83e1:0x1fe,_0x50bd96:0xca,_0xb6579a:0x200,_0x3e8528:0x6d,_0x1b349b:0x178,_0x4d15f6:0x1ed,_0x1c1d1a:0x136,_0x4abf8a:0x2eb,_0x1ed350:0x1a4,_0x47e4c9:0x208,_0x2ce4b1:0x1da,_0x265644:0xd7},_0x1fe2e9={_0x562251:0x371},_0x52333f=JSON[_0xe75ec2(_0x53407c._0x409499,_0x53407c._0x4a83e1,_0x53407c._0x50bd96,0x238)](createReminderItems(_0x133969));function _0x296188(_0x1da600,_0x106dda,_0x4c9fed,_0x29721f){return _0x2ecd0e(_0x4c9fed- -0x66c,_0x106dda-0xe,_0x4c9fed-0x4e,_0x106dda);}if(_0x1b90e8)return _0x296188(-_0x53407c._0xb6579a,-_0x53407c._0x3e8528,-_0x53407c._0x1b349b,-0x1f1)+_0x133969[_0x296188(-_0x53407c._0x4d15f6,-0x16e,-_0x53407c._0x1c1d1a,-0x211)]+_0x296188(-_0x53407c._0x4abf8a,-_0x53407c._0x1ed350,-_0x53407c._0x47e4c9,-0x32a)+_0x52333f+'.\x0a</system-reminder>';function _0xe75ec2(_0x4a2e36,_0x374764,_0x425f84,_0x4cf79f){return _0x2ecd0e(_0x4a2e36- -_0x1fe2e9._0x562251,_0x374764-0x105,_0x425f84-0xec,_0x4cf79f);}return'Todos\x20have\x20been\x20modified\x20successfully.\x20Continue\x20with\x20current\x20tasks\x20if\x20applicable.\x0a\x0a<system-reminder>\x0aYour\x20todo\x20list\x20has\x20changed.\x20DO\x20NOT\x20mention\x20this\x20explicitly\x20to\x20the\x20user.\x20Latest\x20contents:\x0a'+_0x52333f+_0x296188(-0xcb,-0xaf,-_0x53407c._0x2ce4b1,-_0x53407c._0x265644);}function createTodoWriteTool(_0x184055=new TodoStore()){const _0xfe3698={_0x11da59:0x8b,_0x2632e4:0xa7,_0x120a54:0x41,_0x7beb83:0x12f,_0x52ff52:0x152,_0x3f00ae:0x1c1,_0x258c38:0x9b,_0xbcc724:0x1bb,_0x5e523e:0x293,_0x42363b:0x24e,_0x36c093:0x175,_0x40128c:0x151,_0x46e08e:0xe8,_0x49e782:0x1a1,_0x3599d2:0x89,_0x4a7a37:0x1ab,_0x2091b9:0x182,_0x1a0f16:0x89,_0x5e376b:0xc7,_0x32911d:0x94,_0x4da002:0x5b,_0x4394ff:0xe,_0x307ff5:0x54,_0x478d74:0x3a,_0x3402e8:0x14a,_0x3bfe81:0x22c,_0x5493a3:0x167,_0x5f1a2f:0xdd,_0x3d8f61:0x67,_0x21a3c3:0xb1,_0x24baa2:0x43},_0x1ceabc={_0xfd96bc:0xfb,_0x2b8ba5:0xc,_0x9b42a7:0xe1,_0x1d6e27:0x3e,_0x1330cb:0x5b7,_0x3dbf61:0x656,_0x595809:0x5be,_0x22acf9:0x575,_0xa418b9:0x6e6,_0x195d6c:0x88,_0x2f5bda:0xb4,_0x434b78:0x6c9,_0x442658:0x707,_0x48552d:0x771,_0x48ad81:0x7f5,_0x1f91a5:0x585},_0x7f0a58={_0x38dcdb:0x4a1,_0x1c7109:0x32,_0x4c243d:0x14b},_0x4ee516={_0x3b8bd1:0x44,_0x3c1a07:0x19f};function _0x5bde81(_0xf79637,_0x3250a9,_0x2cc5ec,_0x5ec5e5){return _0x198698(_0x2cc5ec- -_0x4ee516._0x3b8bd1,_0x3250a9-0x1f2,_0x5ec5e5,_0x5ec5e5-_0x4ee516._0x3c1a07);}function _0x176ea2(_0xb45d53,_0x1292ff,_0x154e11,_0x1a8859){return _0x2ecd0e(_0x1292ff- -_0x7f0a58._0x38dcdb,_0x1292ff-_0x7f0a58._0x1c7109,_0x154e11-_0x7f0a58._0x4c243d,_0x1a8859);}return defineTool({'name':_0x176ea2(-_0xfe3698._0x11da59,0x6b,0x6e,_0xfe3698._0x2632e4),'description':_0x5bde81(-0x11b,_0xfe3698._0x120a54,-0xfe,-0x1b4),'inputSchema':{'type':_0x5bde81(-_0xfe3698._0x7beb83,-_0xfe3698._0x52ff52,-_0xfe3698._0x3f00ae,-_0xfe3698._0x258c38),'properties':{'todos':{'type':_0x176ea2(_0xfe3698._0xbcc724,0x1ef,_0xfe3698._0x5e523e,_0xfe3698._0x42363b),'items':{'type':_0x5bde81(-0x2af,-_0xfe3698._0x36c093,-_0xfe3698._0x3f00ae,-0x1c4),'properties':{'content':{'type':_0x5bde81(-0x174,-0x90,-_0xfe3698._0x40128c,-_0xfe3698._0x46e08e)},'status':{'type':_0x176ea2(_0xfe3698._0x49e782,_0xfe3698._0x3599d2,_0xfe3698._0x4a7a37,-0x69)},'priority':{'type':_0x176ea2(_0xfe3698._0x2091b9,_0xfe3698._0x1a0f16,_0xfe3698._0x5e376b,-_0xfe3698._0x32911d)},'id':{'type':_0x5bde81(-0x111,-_0xfe3698._0x4da002,-_0xfe3698._0x40128c,-0x18e)},'createdAt':{'type':_0x5bde81(-0x1cc,-0x45,-0x151,-0x3c)}},'required':[_0x176ea2(0xa9,-_0xfe3698._0x4394ff,0xcd,-_0xfe3698._0x307ff5),_0x176ea2(_0xfe3698._0x478d74,_0xfe3698._0x3402e8,_0xfe3698._0x3bfe81,_0xfe3698._0x5493a3),_0x5bde81(-0x37,-0x136,-_0xfe3698._0x5f1a2f,0x59),'id']}}},'required':[_0x5bde81(-_0xfe3698._0x3d8f61,-_0xfe3698._0x21a3c3,-0x88,-_0xfe3698._0x24baa2)]},async *'execute'(_0x17364a,_0x35db9d){const _0x3eef74=_0x17364a;validateTodos(_0x3eef74);function _0x5f35de(_0x5df24f,_0x4023e2,_0x3afa65,_0x223d85){return _0x176ea2(_0x5df24f-0x8c,_0x5df24f-0x4f0,_0x3afa65-0x44,_0x223d85);}const _0x5578ff=_0x35db9d[_0x537650(-0xdf,-_0x1ceabc._0xfd96bc,0x2e,-0x10a)]||'default',_0x15a373=new Date()[_0x537650(_0x1ceabc._0x2b8ba5,-0x15c,-_0x1ceabc._0x9b42a7,-_0x1ceabc._0x1d6e27)](),_0x53fb8e=_0x3eef74[_0x5f35de(0x642,0x64d,_0x1ceabc._0x1330cb,_0x1ceabc._0x3dbf61)][_0x5f35de(_0x1ceabc._0x595809,_0x1ceabc._0x22acf9,0x6eb,_0x1ceabc._0xa418b9)](_0x20c7f6=>({'id':_0x20c7f6['id'],'content':_0x20c7f6[_0x537650(-0x24e,-0x70,-0x169,-0x1d3)],'status':_0x20c7f6[_0x537650(0x29,0xa1,-0x11,-0x119)],'priority':_0x20c7f6['priority'],'sessionId':_0x5578ff,'createdAt':_0x20c7f6[_0x5f35de(0x6e8,0x654,0x7e6,0x6c9)]||_0x15a373,'updatedAt':_0x15a373}));_0x184055[_0x537650(-0x4d,-0xaf,_0x1ceabc._0x195d6c,_0x1ceabc._0x2f5bda)](_0x5578ff,_0x53fb8e);function _0x537650(_0x28b320,_0x59788c,_0x199042,_0x57784f){return _0x5bde81(_0x28b320-0x150,_0x59788c-0xd9,_0x199042-0x7f,_0x28b320);}const _0x13739b=_0x184055[_0x5f35de(_0x1ceabc._0x434b78,_0x1ceabc._0x442658,_0x1ceabc._0x48552d,_0x1ceabc._0x48ad81)](_0x5578ff),_0x22df93=_0x53fb8e[_0x5f35de(_0x1ceabc._0x1f91a5,0x687,0x552,0x5e1)]>0x0&&_0x53fb8e[_0x5f35de(0x667,0x5c9,0x67e,0x74e)](_0x44e50e=>_0x44e50e[_0x537650(-0xe9,0x10c,-0x11,-0x6)]==='completed');return createToolOutput(createOutputText(_0x53fb8e,_0x22df93),createStructuredResult(_0x5578ff,_0x53fb8e,_0x13739b,_0x22df93));}});}import{readFile as _0x5f4bdf,stat as _0x2b79b7}from'fs/promises';import*as _0x344641 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x198698(-0x119,-0x22b,-0x1a1,-0x52),_0x2ecd0e(0x487,0x4c6,0x417,0x549),_0x198698(-0x17a,-0x285,-0x199,-0x120),_0x2ecd0e(0x546,0x517,0x56a,0x488)]),PNG_SIGNATURE=Buffer[_0x2ecd0e(0x4fa,0x4c7,0x45d,0x4fa)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x100998,_0x20814e){const _0x5ec366={_0x328f72:0x12b,_0x2df5d6:0x68,_0x5c03ca:0x4c,_0x303ad2:0x2b5,_0x46a6d2:0x3df,_0x4ae604:0x2c7,_0x483020:0x1fe,_0x1b1f9d:0x377,_0xc057bd:0x1da,_0x144f76:0x20d,_0x207187:0x329,_0x361e20:0x266,_0x9e7aea:0x3b3,_0x33ca21:0x452,_0x35f04e:0x390,_0x35eef6:0x253,_0xef1fe3:0x2fb,_0x39bd2d:0x375,_0x161419:0x281,_0x27f69c:0x172,_0x2a2b7d:0x253,_0x36ced9:0x1d,_0x565361:0xc8,_0x31f0be:0x2ae,_0x136a15:0x4ed,_0x373533:0x1ae,_0x55aeab:0x10a,_0x3d115c:0x1f1,_0x5c0722:0x31f,_0x20f895:0x46e,_0x355428:0x6,_0x28b798:0x38b,_0x47a34f:0x27d,_0x314533:0x1df,_0x46f759:0x323,_0x45c87f:0x27f,_0x175acc:0x220,_0x218a76:0x346,_0x391d50:0x143,_0x2ec1b5:0x1bf,_0x538967:0x244,_0x137603:0xc9,_0xc14e85:0x11,_0xd2c42b:0x1a7,_0x37bc47:0x402,_0x4804fc:0x114},_0x45bd0f={_0x165532:0x3f9,_0xdc8afc:0xc4,_0x2cdd56:0x68};if(_0x100998['subarray'](0x0,0x8)[_0x2c8155(_0x5ec366._0x328f72,0x37,-_0x5ec366._0x2df5d6,_0x5ec366._0x5c03ca)](PNG_SIGNATURE))return _0x25187b(_0x5ec366._0x303ad2,0x2d9,_0x5ec366._0x46a6d2,_0x5ec366._0x4ae604);if(_0x100998[0x0]===0xff&&_0x100998[0x1]===0xd8&&_0x100998[0x2]===0xff)return _0x25187b(0x2d0,0x2a1,_0x5ec366._0x483020,_0x5ec366._0x1b1f9d);const _0x382a28=_0x100998[_0x25187b(0x238,0x1bf,0x2c7,_0x5ec366._0xc057bd)](0x0,0x6)[_0x25187b(0x296,_0x5ec366._0x144f76,_0x5ec366._0x207187,_0x5ec366._0x361e20)](_0x25187b(_0x5ec366._0x9e7aea,0x4ef,0x3a3,_0x5ec366._0x33ca21));function _0x25187b(_0x4f79b1,_0x12d38d,_0xb58179,_0x2ca881){return _0x198698(_0x4f79b1-0x3ae,_0x12d38d-0x180,_0xb58179,_0x2ca881-0x20);}if(_0x382a28===_0x25187b(_0x5ec366._0x35f04e,0x312,_0x5ec366._0x35eef6,_0x5ec366._0xef1fe3)||_0x382a28===_0x25187b(0x3fa,0x319,_0x5ec366._0x39bd2d,0x2f1))return _0x25187b(_0x5ec366._0x161419,0x341,_0x5ec366._0x27f69c,_0x5ec366._0x2a2b7d);if(_0x100998[_0x2c8155(0x76,0x141,-_0x5ec366._0x36ced9,_0x5ec366._0x565361)](0x0,0x4)[_0x25187b(0x296,0x177,_0x5ec366._0x31f0be,0x258)](_0x25187b(_0x5ec366._0x9e7aea,0x3dd,0x2a3,_0x5ec366._0x136a15))===_0x2c8155(0x151,_0x5ec366._0x373533,_0x5ec366._0x55aeab,0xfc)&&_0x100998['subarray'](0x8,0xc)[_0x25187b(0x296,_0x5ec366._0x3d115c,0x3cf,0x32b)](_0x25187b(_0x5ec366._0x9e7aea,_0x5ec366._0x5c0722,0x4df,_0x5ec366._0x20f895))==='WEBP')return _0x2c8155(-0x2f,0x8c,_0x5ec366._0x355428,0xd6);const _0x4ec54b=_0x344641[_0x2c8155(0x2e8,_0x5ec366._0x28b798,_0x5ec366._0x47a34f,0x28e)](_0x20814e)[_0x25187b(0x211,_0x5ec366._0x314533,0x2e1,_0x5ec366._0x46f759)]();if(_0x4ec54b===_0x25187b(0x1e8,_0x5ec366._0x45c87f,_0x5ec366._0x175acc,0x264))return _0x25187b(0x2b5,_0x5ec366._0x218a76,0x18d,0x2a8);function _0x2c8155(_0x50cfa6,_0x2dc938,_0x6d3801,_0x4ca119){return _0x2ecd0e(_0x4ca119- -_0x45bd0f._0x165532,_0x2dc938-_0x45bd0f._0xdc8afc,_0x6d3801-_0x45bd0f._0x2cdd56,_0x6d3801);}if(_0x4ec54b==='.jpg'||_0x4ec54b===_0x2c8155(0x2bd,_0x5ec366._0x391d50,0x13e,_0x5ec366._0x2ec1b5))return _0x2c8155(0x177,_0x5ec366._0x538967,0x5c,0x160);if(_0x4ec54b===_0x2c8155(0xfb,_0x5ec366._0x137603,_0x5ec366._0xc14e85,0xb3))return _0x2c8155(0xc9,0x1bb,_0x5ec366._0xd2c42b,0x111);if(_0x4ec54b===_0x25187b(0x3a3,_0x5ec366._0x37bc47,0x2f5,0x4b4))return _0x25187b(0x246,0x15c,0x2a4,_0x5ec366._0x4804fc);return void 0x0;}function normalizeDetail(_0x538926){const _0x3774b2={_0x110af8:0x3ef,_0x3ccf76:0x370,_0x89cefe:0x485,_0x34c408:0x35e,_0x50dc18:0x3e2,_0x2945b1:0x45f,_0x504905:0x1e7},_0x216efd={_0xe5dd8c:0x66},_0x48ada9={_0x16cd47:0x244,_0x307d1c:0x133,_0x41312e:0x12d};function _0x2c8450(_0x39bb98,_0x100bcb,_0x333f78,_0x170341){return _0x2ecd0e(_0x333f78- -_0x48ada9._0x16cd47,_0x100bcb-_0x48ada9._0x307d1c,_0x333f78-_0x48ada9._0x41312e,_0x170341);}if(_0x538926===void 0x0)return void 0x0;const _0x548e7b=_0x538926[_0x2c8450(_0x3774b2._0x110af8,_0x3774b2._0x3ccf76,0x360,0x3d1)]()['toLowerCase']();if(!SUPPORTED_DETAILS[_0x2c8450(_0x3774b2._0x89cefe,0x2d5,_0x3774b2._0x34c408,0x418)](_0x548e7b))throw new ToolExecutionError(_0x2c8450(_0x3774b2._0x50dc18,_0x3774b2._0x2945b1,0x320,_0x3774b2._0x504905)+_0x538926,{'detail':_0x538926});function _0xfa5d0b(_0x3a20f6,_0x434b0d,_0x4eb0ea,_0x106f30){return _0x2ecd0e(_0x106f30- -_0x216efd._0xe5dd8c,_0x434b0d-0x1e6,_0x4eb0ea-0x156,_0x434b0d);}return _0x548e7b;}function createViewFileTool(_0x4379c2={}){const _0x4b185e={_0x5e3449:0x2ff,_0x2d5dcd:0x407,_0x5cd54f:0x545,_0x1ae3d3:0x468,_0x3bd4ba:0x483,_0x296a35:0x422,_0x58268b:0x384,_0x4c9cfb:0x3fd,_0x977da5:0x5ac,_0x27cbe0:0x508,_0x478158:0x495,_0x72836:0x271,_0x478cc9:0x1fc,_0x5a02e6:0x1ae,_0x5815db:0x300,_0x594c2a:0x385,_0x195ded:0x257,_0x28536f:0x64d,_0x187caf:0x4cf,_0x1dc9a1:0x5ce,_0x1c361f:0x53b,_0x284208:0x434,_0x157896:0x2fd,_0x1f90ce:0x44b,_0x4e8121:0x340,_0x554c6f:0x310,_0x34f2c4:0x4f5,_0x1d14fd:0x450,_0x4757ba:0x346},_0x137db8={_0x4bf5a6:0x547,_0x4c2546:0x4b8,_0x461814:0xf6,_0x142509:0x2f6,_0x41931:0x178,_0x3db8fe:0x110,_0x2752d7:0x9f,_0x355ad4:0x7,_0x1f12de:0x6d,_0x1c033b:0x1a0,_0x2c9920:0x234,_0x1daefa:0x50f,_0x547815:0x599,_0x40706d:0x94,_0x36b044:0x148,_0x2c5926:0xd4,_0x3cea26:0x76c,_0x898fdc:0x5b1,_0x3199a5:0x178,_0x1c37b1:0x202,_0x5b2596:0x1ae,_0xfc415a:0x52b,_0x18c0e7:0x5c0,_0x3cf4f8:0x685,_0x4a027d:0x5b6,_0x34b257:0x64c,_0x2bb2f6:0x94,_0x3382b7:0x6da,_0x4c6ce4:0x622,_0x4fed26:0x661,_0x23633c:0x531,_0x39caa6:0x532,_0x23949f:0x580,_0x1ef66f:0x7ec,_0x52f349:0x714,_0x188654:0x81d,_0x10b2bb:0x663,_0x5e03c8:0x15b,_0x5e13a1:0x2e2,_0x32421c:0x1a7,_0x19c944:0x90,_0x251776:0xa8,_0x2b20a3:0x112,_0x2cb4ee:0x548,_0x3e8388:0x481,_0x19d7c5:0xc5,_0x48ae11:0x1ae,_0x315dff:0x14c,_0x1fdf84:0x1e1,_0x3ea236:0x7c,_0x1cc621:0x730,_0x5effad:0x742,_0x2ab905:0xe9},_0x3c4207={_0x32d256:0xab},_0xdb3ff={_0x5a0106:0x1a,_0x3f6043:0x7e},_0x4683b5={_0x44449d:0x1e7,_0x50dfbd:0x1b6,_0xb73be8:0xdb},_0x4d6e9c=_0x344641[_0x190462(_0x4b185e._0x5e3449,0x351,0x1c4,0x2ce)](_0x4379c2[_0x2a16fe(_0x4b185e._0x2d5dcd,0x507,_0x4b185e._0x5cd54f,_0x4b185e._0x1ae3d3)]??process[_0x2a16fe(_0x4b185e._0x3bd4ba,_0x4b185e._0x296a35,0x403,_0x4b185e._0x58268b)]()),_0x4a49f6=(_0x4379c2[_0x2a16fe(_0x4b185e._0x4c9cfb,0x5c0,0x4bf,0x49a)]??[])[_0x2a16fe(_0x4b185e._0x977da5,_0x4b185e._0x27cbe0,_0x4b185e._0x478158,0x467)](_0x1f914f=>_0x344641[_0x2a16fe(0x505,0x303,0x40c,0x3e4)](_0x1f914f));function _0x190462(_0x4f88ca,_0x4aa5fd,_0x2eae4d,_0x3dbdd5){return _0x2ecd0e(_0x4f88ca- -_0x4683b5._0x44449d,_0x4aa5fd-_0x4683b5._0x50dfbd,_0x2eae4d-_0x4683b5._0xb73be8,_0x4aa5fd);}const _0x44234c=_0x4379c2[_0x190462(_0x4b185e._0x72836,_0x4b185e._0x478cc9,_0x4b185e._0x5a02e6,_0x4b185e._0x5815db)]??DEFAULT_MAX_BYTES;function _0x2a16fe(_0x1f9210,_0x303293,_0x190368,_0x4f5405){return _0x198698(_0x190368-0x55d,_0x303293-_0xdb3ff._0x5a0106,_0x4f5405,_0x4f5405-_0xdb3ff._0x3f6043);}const _0x309829=_0x4379c2[_0x190462(_0x4b185e._0x594c2a,_0x4b185e._0x195ded,0x2ab,0x477)]??_0x2a16fe(_0x4b185e._0x28536f,_0x4b185e._0x187caf,_0x4b185e._0x1dc9a1,0x4af);return defineTool({'name':_0x309829,'description':_0x2a16fe(0x383,_0x4b185e._0x1c361f,_0x4b185e._0x284208,0x4db),'inputSchema':{'type':_0x2a16fe(_0x4b185e._0x157896,_0x4b185e._0x1f90ce,0x3e0,_0x4b185e._0x4e8121),'properties':{'path':{'type':_0x2a16fe(_0x4b185e._0x554c6f,_0x4b185e._0x34f2c4,_0x4b185e._0x1d14fd,0x501)},'detail':{'type':_0x190462(0x343,_0x4b185e._0x4757ba,0x244,0x36a)}},'required':['path']},async *'execute'(_0x94409b){const _0x55989f={_0x25c8c5:0xcf},_0x3bb410=resolveAllowedPath(_0x4d6e9c,_0x4a49f6,_0x94409b[_0x6f9914(_0x137db8._0x4bf5a6,0x5a9,0x580,_0x137db8._0x4c2546)]);await assertWorkspaceFile(_0x3bb410);const _0x2b1fb5=await _0x2b79b7(_0x3bb410);if(_0x2b1fb5[_0x222db5(_0x137db8._0x461814,_0x137db8._0x142509,0x2a2,0x21d)]>_0x44234c)throw new ToolExecutionError(_0x222db5(_0x137db8._0x41931,_0x137db8._0x3db8fe,0x342,0x212)+_0x94409b['path'],{'path':_0x94409b[_0x222db5(-_0x137db8._0x2752d7,-0x6c,_0x137db8._0x355ad4,_0x137db8._0x1f12de)],'maxBytes':_0x44234c,'size':_0x2b1fb5[_0x222db5(_0x137db8._0x1c033b,_0x137db8._0x2c9920,0x344,0x21d)]});const _0x4a6d2e=await _0x5f4bdf(_0x3bb410),_0xc64084=detectImageMediaType(_0x4a6d2e,_0x3bb410);if(!_0xc64084)throw new ToolExecutionError(_0x6f9914(0x527,_0x137db8._0x1daefa,0x50a,_0x137db8._0x547815)+_0x94409b[_0x222db5(-_0x137db8._0x40706d,_0x137db8._0x36b044,_0x137db8._0x2c5926,_0x137db8._0x1f12de)],{'path':_0x94409b['path'],'supported':['.gif',_0x6f9914(_0x137db8._0x3cea26,_0x137db8._0x898fdc,0x672,0x738),_0x222db5(_0x137db8._0x3199a5,0x1d6,_0x137db8._0x1c37b1,_0x137db8._0x5b2596),_0x6f9914(0x600,0x4c7,_0x137db8._0xfc415a,_0x137db8._0x18c0e7),_0x6f9914(_0x137db8._0x3cf4f8,_0x137db8._0x4a027d,0x6e6,_0x137db8._0x34b257)]});const _0x324377=normalizeDetail(_0x94409b[_0x222db5(0x32,0x1ce,0x9,_0x137db8._0x2bb2f6)]);function _0x222db5(_0x25a8d7,_0x1dea92,_0x2e4397,_0x4c9f6a){return _0x190462(_0x4c9f6a- -0x272,_0x1dea92,_0x2e4397-_0x55989f._0x25c8c5,_0x4c9f6a-0x39);}const _0x35cef2=[_0x6f9914(_0x137db8._0x3382b7,0x6c8,_0x137db8._0x4c6ce4,_0x137db8._0x4fed26)+_0x94409b[_0x6f9914(_0x137db8._0x23633c,_0x137db8._0x39caa6,_0x137db8._0x23949f,0x4a7)],_0x6f9914(_0x137db8._0x1ef66f,0x60c,_0x137db8._0x52f349,_0x137db8._0x188654)+_0xc64084,_0x222db5(0x269,0x2c7,0x17f,0x1c9)+_0x2b1fb5[_0x6f9914(0x63c,0x6a4,0x730,_0x137db8._0x10b2bb)]+'\x20bytes'][_0x222db5(_0x137db8._0x5e03c8,0x134,_0x137db8._0x5e13a1,_0x137db8._0x32421c)](_0x324377?[_0x222db5(0x160,_0x137db8._0x19c944,0x14e,_0x137db8._0x251776)+_0x324377]:[])[_0x222db5(_0x137db8._0x2b20a3,0x137,0xe6,0xd3)]('\x0a'),_0x5105a8=[{'type':'image','source':{'type':_0x222db5(0x1a2,0x2ab,0x70,0x1ac),'media_type':_0xc64084,'data':_0x4a6d2e[_0x222db5(0x174,0x1f3,0x1b3,0xc6)]('base64')}},{'type':_0x6f9914(0x4ed,0x510,_0x137db8._0x2cb4ee,_0x137db8._0x3e8388),'text':_0x35cef2}];function _0x6f9914(_0x4d8aeb,_0x3ab355,_0x13e930,_0x5610d9){return _0x2a16fe(_0x4d8aeb-_0x3c4207._0x32d256,_0x3ab355-0x138,_0x13e930-0x194,_0x4d8aeb);}return yield createToolOutput(_0x35cef2,{'path':_0x94409b[_0x222db5(-_0x137db8._0x19d7c5,-_0x137db8._0x1f12de,0x15d,0x6d)],'resolvedPath':_0x3bb410,'created':_0x2b1fb5[_0x222db5(0x128,0x2e9,_0x137db8._0x48ae11,0x253)][_0x222db5(_0x137db8._0x315dff,_0x137db8._0x1fdf84,_0x137db8._0x3ea236,0xc2)](),'modified':_0x2b1fb5['mtime'][_0x222db5(0xd,0x62,0x1ee,0xc2)](),'size':_0x2b1fb5[_0x6f9914(0x6b1,0x67f,_0x137db8._0x1cc621,_0x137db8._0x5effad)],'mimeType':_0xc64084,'encoding':_0x222db5(0x166,0xe7,_0x137db8._0x2ab905,0x1ac),..._0x324377?{'detail':_0x324377}:{}},_0x5105a8),void 0x0;}});}import _0x353b41 from'turndown';var USER_AGENT=_0x2ecd0e(0x477,0x3dc,0x3cd,0x45c),DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0xf8f3b){const _0x4b4dd3={_0x3b5058:0x1d4,_0x43c250:0x242,_0x28fcfb:0x1fd,_0x4dc3e6:0x139,_0x1b799c:0xe2,_0x1feaa4:0x1c3,_0x3d6564:0x21a,_0x343358:0x2a5,_0xfeaab3:0x2f6,_0x5a08c7:0x476,_0x1ee051:0x392,_0x5ed307:0x483,_0x28315d:0x250,_0xae20c:0x20c,_0x5eafa9:0x10e,_0x44aec7:0x1c2,_0x5891df:0x1c8,_0x165e10:0x1e3,_0x1aa228:0xd7,_0x361227:0x28c,_0x10012a:0x1d4,_0x379f4b:0x307},_0x3b467f={_0x5d67e4:0x1c9,_0x303f2e:0x14f};let _0x5a26c3;try{_0x5a26c3=new URL(_0xf8f3b);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0xf8f3b});}if(_0x5a26c3[_0x5adec2(0x28f,0x202,_0x4b4dd3._0x3b5058,_0x4b4dd3._0x43c250)]!==_0x264ff8(_0x4b4dd3._0x28fcfb,_0x4b4dd3._0x4dc3e6,_0x4b4dd3._0x1b799c,_0x4b4dd3._0x1feaa4)&&_0x5a26c3[_0x5adec2(_0x4b4dd3._0x3d6564,0x229,0x1d4,_0x4b4dd3._0x343358)]!==_0x5adec2(_0x4b4dd3._0xfeaab3,_0x4b4dd3._0x5a08c7,_0x4b4dd3._0x1ee051,_0x4b4dd3._0x5ed307))throw new ToolExecutionError(_0x264ff8(0x279,0x1ed,_0x4b4dd3._0x28315d,0x2a8),{'url':_0xf8f3b});function _0x5adec2(_0x43b3e7,_0x88d020,_0x2d35ce,_0x270a3f){return _0x198698(_0x2d35ce-0x374,_0x88d020-0x15e,_0x270a3f,_0x270a3f-0x5d);}function _0x264ff8(_0x24f71d,_0x30f240,_0x3c4e65,_0x5dfb46){return _0x198698(_0x30f240-0x182,_0x30f240-_0x3b467f._0x5d67e4,_0x3c4e65,_0x5dfb46-_0x3b467f._0x303f2e);}if(_0x5a26c3[_0x264ff8(_0x4b4dd3._0xae20c,0x108,_0x4b4dd3._0x5eafa9,0x184)]||_0x5a26c3[_0x264ff8(_0x4b4dd3._0x44aec7,_0x4b4dd3._0x5891df,_0x4b4dd3._0x165e10,0xda)])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x5a26c3[_0x5adec2(_0x4b4dd3._0x1aa228,_0x4b4dd3._0x361227,_0x4b4dd3._0x10012a,_0x4b4dd3._0x379f4b)]+'//'+_0x5a26c3['host']+_0x5a26c3['pathname']});return _0x5a26c3;}function parseContentLength(_0x397fd0){const _0x4d74f0={_0x267795:0xaf,_0x5cc13a:0x4c};function _0x206a4e(_0xb01d0f,_0x210484,_0x506a9d,_0x589f5a){return _0x198698(_0x506a9d-0x5d,_0x210484-0x122,_0x589f5a,_0x589f5a-0x10d);}if(!_0x397fd0)return void 0x0;const _0x407827=Number(_0x397fd0);return Number[_0x206a4e(0x11,-_0x4d74f0._0x267795,-_0x4d74f0._0x5cc13a,0xab)](_0x407827)&&_0x407827>=0x0?_0x407827:void 0x0;}function createTimeoutSignal(_0x55284c,_0x48764b){const _0x3d034b={_0x86b905:0x224,_0x18141b:0x164,_0x1862a4:0x37,_0x48210d:0x19c,_0x17a752:0x95,_0x1386f2:0x1b,_0x1b8136:0xb3,_0x4af56a:0x136,_0x28d703:0x22b},_0x1b0fa2={_0x19d705:0x24e,_0x4833c8:0x370,_0x813747:0x12a,_0x302ca2:0x1f4},_0x57e65a={_0x306d54:0x123,_0x4841cd:0x1f3,_0x2d098f:0x147},_0x273a46={_0xf2134c:0x15},_0x3c0b2f=new AbortController(),_0x277088=setTimeout(()=>_0x3c0b2f['abort'](new Error(_0x4756e2(0x1a0,0x2b5,0x24b,0x25e))),_0x48764b),_0x52da98=()=>_0x3c0b2f[_0x4fb053(-0xd3,-0xb3,-0x1d6,-0x18c)](_0x55284c['reason']);_0x55284c[_0x4fb053(_0x3d034b._0x86b905,_0x3d034b._0x18141b,0x23c,_0x3d034b._0x1862a4)]?_0x3c0b2f[_0x4756e2(_0x3d034b._0x48210d,_0x3d034b._0x17a752,0x6b,0x9b)](_0x55284c['reason']):_0x55284c['addEventListener'](_0x4fb053(-_0x3d034b._0x1386f2,-_0x3d034b._0x1b8136,0x7c,-0x2e),_0x52da98,{'once':!![]});function _0x4756e2(_0x2f8f2a,_0x4f0425,_0x5c3679,_0x124357){return _0x2ecd0e(_0x4f0425- -0x3cc,_0x4f0425-0x45,_0x5c3679-_0x273a46._0xf2134c,_0x124357);}function _0x4fb053(_0x9a4b19,_0x3517dd,_0x2d761f,_0xe8b767){return _0x198698(_0x3517dd-_0x57e65a._0x306d54,_0x3517dd-_0x57e65a._0x4841cd,_0x9a4b19,_0xe8b767-_0x57e65a._0x2d098f);}return{'signal':_0x3c0b2f[_0x4756e2(_0x3d034b._0x4af56a,_0x3d034b._0x28d703,0x24f,0xf0)],'cleanup':()=>{clearTimeout(_0x277088);function _0x3e5d14(_0x534b12,_0x5b3767,_0x29b460,_0x131571){return _0x4fb053(_0x5b3767,_0x131571-0x36c,_0x29b460-0x84,_0x131571-0xa4);}function _0x1f68b8(_0x189b48,_0x48e87a,_0x63516e,_0x4233b4){return _0x4756e2(_0x189b48-0xce,_0x189b48- -0x1bf,_0x63516e-0x6,_0x63516e);}_0x55284c[_0x3e5d14(0x43f,_0x1b0fa2._0x19d705,0x298,_0x1b0fa2._0x4833c8)](_0x1f68b8(-_0x1b0fa2._0x813747,0xe,-0x25,-_0x1b0fa2._0x302ca2),_0x52da98);}};}function createWebFetchTool(_0x35a999={}){const _0x1875e5={_0x420599:0x571,_0x324feb:0x1ee,_0x4bb961:0x87,_0x2cc3a5:0x90,_0x580dcd:0x45d,_0x9e0908:0x48e,_0x43b2d4:0x4af,_0x46361f:0x390,_0x133147:0x1d,_0x9af4b2:0x105,_0xd8d212:0x65,_0x3f2817:0x560,_0x370e88:0x48b,_0x514e99:0x5da,_0x417f71:0x561,_0x456235:0x4c0,_0x37888e:0x489,_0xec29ec:0x414,_0x3d5c59:0x479,_0x86e246:0x133,_0x5b5b42:0x601,_0x2c6f42:0x52f,_0x22575d:0x4b3,_0xcc1e4c:0x131,_0x1ff724:0x116,_0x51329f:0x4b},_0x5698b8={_0xfedc4e:0x155,_0x46e453:0x2fd,_0x5ec85d:0x12c,_0x1804bd:0x107,_0x869814:0x3f,_0x23f76b:0x38,_0x389c85:0x7c,_0x3482ff:0x4c,_0x3cf360:0x7e,_0x51f1c3:0x163,_0x43fbbd:0xe2,_0x888748:0x46e,_0x235cb5:0x4b3,_0x3c31e3:0x4e9,_0x34bb36:0x3fa,_0x1ca531:0x333,_0x2bc6e0:0x2a9,_0x4713c6:0xab,_0x4dde7c:0x14f,_0x155d93:0x54,_0x36a112:0xb1,_0x1e7399:0x1c0,_0xb8b42:0x192,_0x1a7601:0x31f,_0x8b4cc7:0x3a8,_0x2598df:0x4b4,_0x477270:0x3c6,_0x66037b:0x3d0,_0xbe4d8e:0x69,_0x385cfc:0x33,_0x1e7ee3:0x8e,_0x50b566:0x109,_0x25b465:0x8a,_0x133d12:0x305,_0x32b726:0x351,_0xa6e895:0x421,_0x1ae3a1:0x179,_0x194b27:0x1fe,_0x5dc1c7:0x199,_0x2a5494:0x3e,_0x3c1c75:0x435,_0x2882f3:0x3a7,_0x440c6e:0x4cf,_0x28e437:0x392,_0x36a406:0x4ba,_0x5bae13:0x25c,_0xca06d1:0x452,_0x132309:0x56d,_0x18a639:0x58a,_0x444f6c:0x1ec,_0x5b93b1:0x10e,_0x360da9:0x11e,_0x6be974:0x24a,_0x5c8f7f:0x250,_0x343107:0x32e,_0x477121:0x340},_0x39c215={_0x3cc87c:0x5},_0x343eb9=_0x35a999[_0x5a6554(0x5a6,_0x1875e5._0x420599,0x452,0x5be)]??_0x331396(_0x1875e5._0x324feb,_0x1875e5._0x4bb961,0xaf,_0x1875e5._0x2cc3a5),_0x168595=_0x35a999[_0x5a6554(0x473,_0x1875e5._0x580dcd,0x4e4,_0x1875e5._0x9e0908)]??DEFAULT_MAX_BYTES2,_0x46986c=_0x35a999['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x4fb9fc=new _0x353b41({'headingStyle':'atx','codeBlockStyle':_0x5a6554(0x475,_0x1875e5._0x43b2d4,0x3b6,_0x1875e5._0x46361f),'bulletListMarker':'-'});_0x4fb9fc[_0x331396(-0x1ea,-0xc8,-0xe6,-_0x1875e5._0x133147)]([_0x331396(0x2e,-0x1ca,-_0x1875e5._0x9af4b2,-_0x1875e5._0xd8d212),_0x5a6554(_0x1875e5._0x3f2817,0x4f5,0x439,_0x1875e5._0x370e88),_0x5a6554(0x601,0x5e1,_0x1875e5._0x514e99,0x6c1),'iframe','nav','footer',_0x5a6554(0x510,_0x1875e5._0x417f71,0x463,0x67f),_0x5a6554(_0x1875e5._0x456235,_0x1875e5._0x37888e,_0x1875e5._0xec29ec,_0x1875e5._0x3d5c59)]);function _0x331396(_0x4d0bd1,_0x3a4dc9,_0x16e75d,_0x1ed306){return _0x198698(_0x16e75d-0x7a,_0x3a4dc9-0x1c0,_0x4d0bd1,_0x1ed306-0xf0);}function _0x5a6554(_0x1b6dae,_0x3afde6,_0x3ed5f4,_0x5af196){return _0x2ecd0e(_0x3afde6-_0x39c215._0x3cc87c,_0x3afde6-0x14a,_0x3ed5f4-0x1d1,_0x1b6dae);}return defineTool({'name':_0x343eb9,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x331396(-0x20d,-0x46,-0x103,-_0x1875e5._0x86e246),'properties':{'description':{'type':'string'},'url':{'type':_0x5a6554(_0x1875e5._0x5b5b42,_0x1875e5._0x2c6f42,0x56e,_0x1875e5._0x22575d)}},'required':[_0x331396(-0x126,-_0x1875e5._0xcc1e4c,-_0x1875e5._0x1ff724,-_0x1875e5._0x51329f)]},async *'execute'(_0x3456c0,_0x170c89){const _0x1c0736={_0x2357c1:0x18e,_0x451b04:0x139,_0x21af78:0x100},_0xd8f8c=assertFetchableUrl(_0x3456c0[_0x2f8e8b(-0x24d,-_0x5698b8._0xfedc4e,-0x1d5,-_0x5698b8._0x46e453)])[_0x2f8e8b(-0x1d5,-_0x5698b8._0x5ec85d,-0xf9,-_0x5698b8._0x1804bd)]();if(_0x170c89[_0x2f8e8b(-0xfd,-_0x5698b8._0x869814,-0x1b4,_0x5698b8._0x23f76b)][_0x2f8e8b(-_0x5698b8._0x389c85,_0x5698b8._0x3482ff,-_0x5698b8._0x3cf360,-0x10)])throw new ToolExecutionError(_0x2f8e8b(-_0x5698b8._0x51f1c3,-0x11d,-_0x5698b8._0x43fbbd,-0x1ac),{'url':_0xd8f8c});const _0x2d6ad4=createTimeoutSignal(_0x170c89[_0x35e4eb(_0x5698b8._0x888748,_0x5698b8._0x235cb5,0x3f0,0x5a7)],_0x46986c);function _0x2f8e8b(_0x4be10d,_0x512be3,_0x4cf1ed,_0x32c32d){return _0x5a6554(_0x32c32d,_0x4be10d- -0x6f9,_0x4cf1ed-0xbf,_0x32c32d-0x14b);}let _0x4a5302='',_0x168d97=0x0,_0x55526d;try{const _0x15ce49=await fetch(_0xd8f8c,{'headers':{'User-Agent':USER_AGENT},'signal':_0x2d6ad4[_0x35e4eb(_0x5698b8._0x888748,_0x5698b8._0x3c31e3,0x433,_0x5698b8._0x34bb36)]});if(!_0x15ce49['ok'])throw new ToolExecutionError(_0x35e4eb(0x302,_0x5698b8._0x1ca531,_0x5698b8._0x2bc6e0,0x282)+_0x15ce49[_0x35e4eb(0x462,0x349,0x4c7,0x548)]+'\x20'+_0x15ce49[_0x2f8e8b(-_0x5698b8._0x4713c6,0x32,-0x75,-_0x5698b8._0x4dde7c)],{'url':_0xd8f8c,'statusCode':_0x15ce49[_0x35e4eb(0x462,0x3af,0x338,0x356)]});const _0x21cdc8=parseContentLength(_0x15ce49[_0x2f8e8b(-_0x5698b8._0x155d93,-0x17b,_0x5698b8._0x36a112,0x97)][_0x2f8e8b(-_0x5698b8._0x1e7399,-_0x5698b8._0xb8b42,-0x25d,-0x145)](_0x35e4eb(_0x5698b8._0x1a7601,0x41e,0x343,0x452)));if(_0x21cdc8!==void 0x0&&_0x21cdc8>_0x168595)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0x21cdc8+_0x35e4eb(_0x5698b8._0x8b4cc7,_0x5698b8._0x2598df,_0x5698b8._0x477270,0x2ec)+_0x168595+_0x35e4eb(0x3a7,_0x5698b8._0x66037b,0x428,0x4c9),{'url':_0xd8f8c,'statusCode':_0x15ce49['status'],'contentLength':_0x21cdc8,'maxBytes':_0x168595});_0x4a5302=_0x15ce49['headers']['get'](_0x2f8e8b(-0xc1,_0x5698b8._0xbe4d8e,-_0x5698b8._0x385cfc,-_0x5698b8._0x1e7ee3))??'',_0x168d97=_0x15ce49[_0x2f8e8b(-_0x5698b8._0x50b566,-_0x5698b8._0x25b465,-0x9b,-0x1d3)],_0x55526d=await _0x15ce49[_0x35e4eb(_0x5698b8._0x133d12,_0x5698b8._0x32b726,_0x5698b8._0xa6e895,0x32f)]();}catch(_0x2a2d18){if(_0x2a2d18 instanceof ToolExecutionError)throw _0x2a2d18;const _0x1e048d=_0x2a2d18 instanceof Error?_0x2a2d18[_0x2f8e8b(-_0x5698b8._0x1ae3a1,-_0x5698b8._0x194b27,-0x178,-0x22f)]:String(_0x2a2d18);throw new ToolExecutionError(_0x1e048d,{'url':_0xd8f8c});}finally{_0x2d6ad4[_0x2f8e8b(-_0x5698b8._0x5dc1c7,-0x133,-0x66,-0x1e5)]();}if(Buffer[_0x2f8e8b(-0xe4,-0x5b,-_0x5698b8._0x2a5494,-0xd8)](_0x55526d,'utf8')>_0x168595)throw new ToolExecutionError(_0x35e4eb(0x438,_0x5698b8._0x3c1c75,0x429,0x35c)+_0x168595+_0x35e4eb(_0x5698b8._0x2882f3,0x30c,0x31e,_0x5698b8._0x440c6e),{'url':_0xd8f8c,'statusCode':_0x168d97,'maxBytes':_0x168595});function _0x35e4eb(_0x4e51e2,_0x3fe91f,_0x20c352,_0x51100f){return _0x5a6554(_0x3fe91f,_0x4e51e2- -_0x1c0736._0x2357c1,_0x20c352-_0x1c0736._0x451b04,_0x51100f-_0x1c0736._0x21af78);}const _0x2d90b3=new Date()[_0x35e4eb(_0x5698b8._0x28e437,_0x5698b8._0x36a406,_0x5698b8._0x5bae13,0x43c)]();let _0x5a0402,_0x4d7eae;if(_0x4a5302[_0x35e4eb(0x45d,0x456,0x44d,0x4a6)](_0x35e4eb(_0x5698b8._0xca06d1,0x33b,_0x5698b8._0x132309,_0x5698b8._0x18a639)))_0x5a0402='```json\x0a'+_0x55526d+'\x0a```',_0x4d7eae=_0x2f8e8b(-0x15f,-_0x5698b8._0x385cfc,-_0x5698b8._0x444f6c,-0x223);else _0x4a5302[_0x2f8e8b(-_0x5698b8._0x5b93b1,-_0x5698b8._0x360da9,-_0x5698b8._0x6be974,-0x29)]('text/html')?(_0x5a0402=_0x4fb9fc['turndown'](_0x55526d),_0x4d7eae=_0x2f8e8b(-_0x5698b8._0x5c8f7f,-_0x5698b8._0x343107,-_0x5698b8._0x477121,-0x364)):(_0x5a0402=_0x55526d,_0x4d7eae='text');return yield createToolOutput(_0x5a0402,{'url':_0xd8f8c,'contentType':_0x4a5302,'statusCode':_0x168d97,'format':_0x4d7eae,'size':_0x55526d[_0x2f8e8b(-0x1be,-0x1ee,-0x213,-0x26e)],'fetchedAt':_0x2d90b3}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2='Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20Chrome/123.0.0.0\x20Safari/537.36\x20NuvinBot/1.0';function normalizeUrl(_0x427f3d){const _0x4f956b={_0x1e2889:0x1f3,_0x3a1a79:0x19d,_0x459b46:0x25c,_0x544599:0x217,_0x561312:0x5c,_0x529860:0x1a3,_0x3bcf9b:0x170,_0x547a03:0x253,_0x4f623a:0x1ff,_0x101451:0x17d,_0x782701:0x122,_0x4e619c:0xe6,_0x33f0fa:0x2e,_0x3cc5c5:0x51,_0x491bc5:0x2f,_0x1bf0d3:0x60,_0x259108:0xf4,_0x188974:0x18e,_0x3a3e52:0x80,_0x16bd74:0x225,_0x1a38ac:0x9d},_0x326a49={_0x518fbe:0x60},_0x1d8a8c={_0x558854:0xa};function _0x17cf95(_0x3ee578,_0x5ab3ca,_0x3076f2,_0x5de2e2){return _0x198698(_0x5ab3ca- -0xcd,_0x5ab3ca-0xc4,_0x3ee578,_0x5de2e2-_0x1d8a8c._0x558854);}function _0x4b3484(_0x261bd6,_0xb3c0c6,_0x2b8a5d,_0xbcca81){return _0x2ecd0e(_0x261bd6- -0x46f,_0xb3c0c6-0x1f0,_0x2b8a5d-_0x326a49._0x518fbe,_0x2b8a5d);}try{const _0x369d67=new URL(_0x427f3d);for(const _0x31e4ce of[_0x17cf95(-_0x4f956b._0x1e2889,-0x1b9,-_0x4f956b._0x3a1a79,-_0x4f956b._0x459b46),_0x4b3484(0x168,_0x4f956b._0x544599,_0x4f956b._0x561312,_0x4f956b._0x529860),'utm_campaign',_0x17cf95(-_0x4f956b._0x3bcf9b,-_0x4f956b._0x547a03,-_0x4f956b._0x4f623a,-0x171),'utm_content',_0x4b3484(_0x4f956b._0x101451,0x26b,0x26e,0x4e),_0x4b3484(-0x16,-0x98,-_0x4f956b._0x782701,-0x125),_0x4b3484(_0x4f956b._0x4e619c,_0x4f956b._0x33f0fa,-_0x4f956b._0x3cc5c5,0x11a),_0x4b3484(_0x4f956b._0x491bc5,0xbb,-_0x4f956b._0x1bf0d3,-_0x4f956b._0x259108)]){_0x369d67[_0x4b3484(_0x4f956b._0x188974,0x15d,_0x4f956b._0x3a3e52,0x21d)][_0x4b3484(0x23e,_0x4f956b._0x16bd74,0x151,0x20a)](_0x31e4ce);}return _0x369d67[_0x4b3484(0xb0,0x1a7,_0x4f956b._0x1a38ac,0x1c4)]();}catch{return _0x427f3d;}}function cseDateRestrict(_0xd3703b){const _0x174715={_0x274442:0x1d4,_0x1ef3e0:0x31f,_0x1634ee:0x356,_0x5a90dd:0x184,_0x4e0040:0xa5,_0xcacd66:0x31a,_0x35f4f1:0x280},_0x5ae961={_0x48f468:0x311,_0x3c8b51:0x179,_0x1a3efc:0x48},_0x43d739={_0x2d3952:0x632,_0x56977c:0x138};function _0x367936(_0x3f5bd3,_0x23bb15,_0x55cc16,_0x2672c1){return _0x2ecd0e(_0x2672c1- -_0x43d739._0x2d3952,_0x23bb15-0x1e1,_0x55cc16-_0x43d739._0x56977c,_0x3f5bd3);}if(_0xd3703b<=0x0)return void 0x0;if(_0xd3703b<=0x1e)return'd'+Math[_0x367936(-0x13c,-0x314,-0x18e,-_0x174715._0x274442)](0x1,Math[_0x32a1b8(0x29a,_0x174715._0x1ef3e0,_0x174715._0x1634ee,0x32c)](_0xd3703b));if(_0xd3703b<=0x16d)return'm'+Math[_0x367936(-0x51,-0x9b,-_0x174715._0x5a90dd,-_0x174715._0x4e0040)](_0xd3703b/0x1e);function _0x32a1b8(_0x4404bb,_0x15dd6c,_0x1a80d1,_0x1d5949){return _0x2ecd0e(_0x1a80d1- -_0x5ae961._0x48f468,_0x15dd6c-_0x5ae961._0x3c8b51,_0x1a80d1-_0x5ae961._0x1a3efc,_0x4404bb);}return'y'+Math[_0x32a1b8(0x30c,_0x174715._0xcacd66,0x27c,_0x174715._0x35f4f1)](_0xd3703b/0x16d);}function addSiteFilters(_0x28a8ca,_0x51fd76){const _0x3b8cc1={_0x28bce3:0x1f8,_0x2f6fcc:0x4e2,_0x402ee3:0x522,_0x250059:0x517,_0x1a460e:0x362,_0x17a75a:0x3ac},_0x50f838={_0xa1b1da:0x18d},_0x5a93db={_0x5101db:0x3c2,_0x357f35:0x10a};if(_0x51fd76['length']===0x0)return _0x28a8ca[_0x8f5c43(0x379,0x32f,_0x3b8cc1._0x28bce3,0x23b)]();function _0x8f5c43(_0x57f161,_0x1b5614,_0x4526e6,_0x34a3ef){return _0x198698(_0x1b5614-_0x5a93db._0x5101db,_0x1b5614-_0x5a93db._0x357f35,_0x57f161,_0x34a3ef-0x3e);}function _0xa2f290(_0x1f7836,_0xb90bfe,_0x278913,_0x43b5a8){return _0x198698(_0x1f7836-0x690,_0xb90bfe-0xf6,_0xb90bfe,_0x43b5a8-_0x50f838._0xa1b1da);}return(_0x28a8ca+'\x20('+_0x51fd76[_0xa2f290(0x5c8,_0x3b8cc1._0x2f6fcc,0x686,_0x3b8cc1._0x402ee3)](_0x3a2657=>_0x8f5c43(0x43b,0x360,0x2f3,0x314)+_0x3a2657)[_0xa2f290(0x585,_0x3b8cc1._0x250059,0x4b9,0x5e0)](_0x8f5c43(_0x3b8cc1._0x1a460e,_0x3b8cc1._0x17a75a,0x282,0x4b0))+')')['trim']();}function normalizeType(_0x4cbbab){const _0x49c5d3={_0x150878:0xa9},_0xdc77e6={_0x148613:0xc9};function _0x165eca(_0x286dd9,_0x401b59,_0x512ed9,_0x169fd5){return _0x2ecd0e(_0x169fd5- -0x40b,_0x401b59-_0xdc77e6._0x148613,_0x512ed9-0x174,_0x512ed9);}return _0x4cbbab===_0x165eca(_0x49c5d3._0x150878,-0x1b,0x260,0x120)?'images':'web';}async function fetchJson(_0x4a6ebd,_0xb5493f){const _0x1e2d18={_0x52488c:0xf6,_0x13e3bb:0x42,_0x47d24a:0x20,_0x30577d:0x68,_0x3c307b:0x22e,_0x128f5a:0xee,_0x24c092:0x1c},_0x5eebfc={_0x66739e:0x172,_0x2bb394:0xdc},_0x5f03fb={_0x35f3c8:0x4e5,_0x4a5c15:0x115,_0x348d7a:0xa},_0xf2667a=await fetch(_0x4a6ebd,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x14e5ef(_0x1e2d18._0x52488c,0x134,-_0x1e2d18._0x13e3bb,0x112)},'signal':_0xb5493f});function _0x14e5ef(_0x46362a,_0x210996,_0x3f1fe5,_0x322044){return _0x2ecd0e(_0x46362a- -_0x5f03fb._0x35f3c8,_0x210996-_0x5f03fb._0x4a5c15,_0x3f1fe5-_0x5f03fb._0x348d7a,_0x3f1fe5);}if(!_0xf2667a['ok']){await _0xf2667a['body']?.[_0x3b7856(0x9a,-0x162,-_0x1e2d18._0x47d24a,-0x4c)]()['catch'](()=>void 0x0);throw new ToolExecutionError('HTTP\x20'+_0xf2667a[_0x3b7856(_0x1e2d18._0x30577d,0x19b,_0x1e2d18._0x3c307b,0x126)]+'\x20'+_0xf2667a['statusText'],{'statusCode':_0xf2667a[_0x14e5ef(0x106,0x1c7,_0x1e2d18._0x128f5a,0x240)]});}function _0x3b7856(_0x1d1779,_0x27c6be,_0x18a665,_0x373dc0){return _0x198698(_0x373dc0-_0x5eebfc._0x66739e,_0x27c6be-_0x5eebfc._0x2bb394,_0x18a665,_0x373dc0-0x1);}return await _0xf2667a[_0x14e5ef(0xb0,-0x40,_0x1e2d18._0x24c092,0x133)]();}async function hydrateResults(_0x187c2d,_0x30052e,_0x20261a){const _0x1a319a={_0x2033f8:0x561,_0x2aec3a:0x20c,_0x2f6356:0x176},_0x604844={_0x5336e4:0x3fb,_0x1739af:0x46},_0x11b93d={_0x394aab:0x6ee,_0xb77f57:0x46},_0x336ad4={_0x42dfc8:0x371,_0x344e08:0x43b,_0x2b7128:0x33d,_0x2e2df2:0x530,_0x1d2140:0x4f9,_0xa73c08:0x427,_0x2b6073:0x3ea,_0x4496dc:0x441,_0x544649:0x413,_0x499a87:0x4df,_0x42dacc:0x51e,_0x4d4275:0x454,_0x5cc58d:0x5bf,_0x17f609:0x3c3,_0x33ccaa:0x3ee,_0x27fe37:0x427,_0x3d5a9e:0x4e4,_0x1e7eb0:0x670,_0x3c2815:0x537,_0x16d5cd:0x465,_0x4322f2:0x6c9,_0x3b2e90:0x533,_0x30e4c3:0x427,_0x20b49f:0x3cc,_0xf2ff9a:0x53a,_0x592bc7:0x4d3,_0x34ccea:0x5bf,_0x31b44c:0x2c5,_0x3db289:0x3a7,_0x5de1f4:0x3a9,_0x1bdf89:0x510,_0x1b95b1:0x73b,_0xee784b:0x763,_0x3327f8:0x632,_0x2829ac:0x546,_0x17624d:0x4e8,_0x485e5e:0x63f,_0x2bc829:0x544,_0x1378b1:0x58a,_0x5561dd:0x5f4,_0x54a8eb:0x69a,_0x3fc5fc:0x6b3,_0x15258a:0x4ee,_0x4ef6ba:0x3c9,_0x2a68bb:0x406,_0x2b47e1:0x323,_0x337075:0x403,_0x362124:0x359,_0x4ad8af:0x35f,_0x23e27f:0x415,_0x6f105b:0x57a},_0x279170={_0x3e2647:0x18a},_0x37c45f=await Promise['all'](_0x187c2d[_0x24b572(0x67c,0x6a0,0x5fe,_0x1a319a._0x2033f8)](0x0,0xa)[_0x416c3f(0x174,0x265,_0x1a319a._0x2aec3a,0x1e2)](async _0xbc387b=>{const _0x3fccd6={_0x4a8baf:0xa6,_0x4262e0:0x58};function _0x44dd61(_0x45430f,_0x5a1480,_0x30751b,_0x4861c9){return _0x24b572(_0x45430f-0x128,_0x5a1480- -0x158,_0x30751b-_0x279170._0x3e2647,_0x45430f);}function _0x22580(_0x6a60ce,_0x3d1693,_0x4b3d59,_0x18a556){return _0x416c3f(_0x18a556-0x38f,_0x4b3d59,_0x4b3d59-_0x3fccd6._0x4a8baf,_0x18a556-_0x3fccd6._0x4262e0);}try{const _0x43921b=await fetch(_0xbc387b[_0x22580(0x37c,_0x336ad4._0x42dfc8,0x3cf,_0x336ad4._0x344e08)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x30052e,'Accept':'text/html'},'signal':_0x20261a});if(!_0x43921b['ok'])return _0xbc387b;const _0x5aae92=await _0x43921b[_0x44dd61(0x398,0x3ed,_0x336ad4._0x2b7128,0x422)](),_0x5c1ec4=load(_0x5aae92),_0x143168=_0x5c1ec4('meta[property=\x27og:title\x27]')['attr'](_0x22580(_0x336ad4._0x2e2df2,_0x336ad4._0x1d2140,0x2fe,_0x336ad4._0xa73c08))||_0x5c1ec4(_0x44dd61(_0x336ad4._0x2b6073,_0x336ad4._0x4496dc,_0x336ad4._0x544649,0x37b))[_0x44dd61(0x40d,0x3fe,_0x336ad4._0x499a87,_0x336ad4._0x42dacc)]()['text']()['trim'](),_0x5e2eb9=_0x5c1ec4(_0x22580(0x473,0x500,0x52c,_0x336ad4._0x4d4275))[_0x44dd61(_0x336ad4._0x42dacc,_0x336ad4._0x5cc58d,0x4ae,0x6ff)](_0x22580(_0x336ad4._0x17f609,0x3c1,_0x336ad4._0x33ccaa,_0x336ad4._0x27fe37))||_0x5c1ec4(_0x22580(_0x336ad4._0x3d5a9e,0x564,_0x336ad4._0x1e7eb0,0x534))['attr']('content')||_0xbc387b[_0x44dd61(_0x336ad4._0x3c2815,0x434,0x4e9,_0x336ad4._0x16d5cd)],_0x58e588=_0x5c1ec4('meta[property=\x27article:published_time\x27]')[_0x44dd61(_0x336ad4._0x4322f2,_0x336ad4._0x5cc58d,0x576,0x4ca)](_0x22580(0x331,0x4be,_0x336ad4._0x3b2e90,_0x336ad4._0x30e4c3))||_0x5c1ec4(_0x44dd61(_0x336ad4._0x20b49f,0x421,_0x336ad4._0xf2ff9a,_0x336ad4._0x592bc7))[_0x44dd61(0x64e,_0x336ad4._0x34ccea,0x506,0x6bc)](_0x44dd61(_0x336ad4._0x31b44c,_0x336ad4._0x3db289,_0x336ad4._0x5de1f4,0x32b))||_0xbc387b[_0x22580(_0x336ad4._0x1bdf89,_0x336ad4._0x1b95b1,_0x336ad4._0xee784b,_0x336ad4._0x3327f8)],_0x547df6=_0x5c1ec4(_0x44dd61(_0x336ad4._0x2829ac,_0x336ad4._0x17624d,0x4c7,0x3dc))[_0x22580(_0x336ad4._0x485e5e,_0x336ad4._0x2bc829,_0x336ad4._0x1378b1,_0x336ad4._0x5561dd)](_0x22580(_0x336ad4._0x54a8eb,_0x336ad4._0x3fc5fc,0x608,0x5e7));return{..._0xbc387b,'title':_0x143168||_0xbc387b[_0x22580(0x4a1,0x41a,_0x336ad4._0x15258a,0x476)],'snippet':_0x5e2eb9,'url':_0x547df6?normalizeUrl(new URL(_0x547df6,_0xbc387b[_0x44dd61(_0x336ad4._0x4ef6ba,_0x336ad4._0x2a68bb,_0x336ad4._0x2b47e1,_0x336ad4._0x337075)])[_0x44dd61(_0x336ad4._0x362124,0x47e,_0x336ad4._0x4ad8af,_0x336ad4._0x23e27f)]()):_0xbc387b[_0x22580(_0x336ad4._0x6f105b,0x530,0x32e,0x43b)],'publishedAt':_0x58e588};}catch{return _0xbc387b;}})),_0x2a2b86=new Map(_0x187c2d[_0x416c3f(0x1ee,0x122,_0x1a319a._0x2f6356,0x1a2)](0x0,0xa)['map']((_0x104a76,_0x4e844e)=>[_0x104a76[_0x416c3f(0xac,0x81,0x8c,0x110)],_0x37c45f[_0x4e844e]]));function _0x24b572(_0x469ae3,_0x12d427,_0x33ee46,_0x21f2bb){return _0x198698(_0x12d427-_0x11b93d._0x394aab,_0x12d427-0x46,_0x21f2bb,_0x21f2bb-_0x11b93d._0xb77f57);}function _0x416c3f(_0x2d693b,_0x45c4d8,_0x3d59bb,_0x30b380){return _0x2ecd0e(_0x2d693b- -_0x604844._0x5336e4,_0x45c4d8-0xc0,_0x3d59bb-_0x604844._0x1739af,_0x45c4d8);}return _0x187c2d['map'](_0xd2385c=>_0x2a2b86['get'](_0xd2385c[_0x416c3f(0xac,0x1ea,0x10,0xeb)])??_0xd2385c);}function formatResults(_0x249eca){const _0x50acc0={_0x3f3eaa:0xb7,_0x53f3fd:0x61,_0xaebecf:0xb6,_0x1ab617:0x77,_0x246937:0x101,_0x24ce91:0x6e,_0x247e8e:0x35},_0x5e0493={_0x364903:0x5d5,_0x29816b:0x50c,_0x233853:0x544,_0x2c428f:0x509,_0x1509fb:0x300,_0x4a862c:0x3f0,_0x49a0c5:0x3a8,_0x58af85:0x351,_0x5e8a7c:0x470,_0x18f4eb:0x512,_0x7533b8:0x48c,_0x4c1df0:0x33a},_0x119cc5={_0x2b7c23:0x60f},_0x4085be={_0x5295fb:0x15b},_0x536b37={_0x51ff03:0x103},_0xb446f5={_0x361863:0x144,_0xfba753:0x1d9};function _0x5d3da3(_0x40168c,_0x2750aa,_0x37f550,_0x14a7ac){return _0x2ecd0e(_0x14a7ac- -0x5ad,_0x2750aa-_0xb446f5._0x361863,_0x37f550-_0xb446f5._0xfba753,_0x40168c);}function _0x45f880(_0x5ba7af,_0x2e9ef8,_0x15f378,_0x26dc31){return _0x2ecd0e(_0x26dc31- -0x652,_0x2e9ef8-_0x536b37._0x51ff03,_0x15f378-0x6e,_0x15f378);}if(_0x249eca[_0x5d3da3(-_0x50acc0._0x3f3eaa,_0x50acc0._0x53f3fd,-_0x50acc0._0xaebecf,-_0x50acc0._0x1ab617)]===0x0)return _0x5d3da3(0x5b,_0x50acc0._0x246937,0x170,_0x50acc0._0x24ce91);return _0x249eca[_0x5d3da3(-0x14e,_0x50acc0._0x247e8e,0x4e,-0x3e)](_0x40ac3c=>{function _0x5ea0d9(_0x42c65e,_0x10502c,_0x438b26,_0x1b24ae){return _0x45f880(_0x42c65e-0x6d,_0x10502c-_0x4085be._0x5295fb,_0x1b24ae,_0x438b26-0x525);}const _0x61ed44=[_0x40ac3c[_0x5ea0d9(0x403,_0x5e0493._0x364903,_0x5e0493._0x29816b,0x5ca)][_0x5ea0d9(0x3be,0x38b,0x313,0x3a7)]+'.\x20'+_0x40ac3c[_0x1bf0c4(0x546,0x5b6,0x4fc,_0x5e0493._0x233853)],_0x40ac3c[_0x1bf0c4(0x595,0x56f,0x3e4,_0x5e0493._0x2c428f)]];if(_0x40ac3c[_0x5ea0d9(0x360,0x4b1,0x3a8,_0x5e0493._0x1509fb)])_0x61ed44['push'](_0x40ac3c[_0x5ea0d9(_0x5e0493._0x4a862c,0x3a9,_0x5e0493._0x49a0c5,_0x5e0493._0x58af85)]);function _0x1bf0c4(_0x52083f,_0x4d0b58,_0xec5815,_0x15c334){return _0x5d3da3(_0x4d0b58,_0x4d0b58-0x16b,_0xec5815-0x132,_0x15c334-_0x119cc5._0x2b7c23);}if(_0x40ac3c[_0x5ea0d9(0x601,_0x5e0493._0x5e8a7c,0x571,0x521)])_0x61ed44[_0x1bf0c4(_0x5e0493._0x18f4eb,0x4fa,0x628,0x5bc)]('Published:\x20'+_0x40ac3c['publishedAt']);return _0x61ed44[_0x5ea0d9(_0x5e0493._0x7533b8,_0x5e0493._0x4c1df0,0x3ff,0x2fa)]('\x0a');})['join']('\x0a\x0a');}function _0x2ecd0e(_0x192200,_0x590b7f,_0x5cc980,_0x10aa67){const _0x108152={_0x43bc5b:0x321};return _0x163c(_0x192200-_0x108152._0x43bc5b,_0x10aa67);}async function searchGoogleCse(_0x5d0533,_0x92611a,_0x343668){const _0x2f33bb={_0xf79be4:0x1ed,_0x8a2fe6:0x13f,_0x53476b:0x98,_0x597b25:0x2d6,_0x2bb269:0x22f,_0xf70639:0x267,_0x45dfa2:0x467,_0x273351:0x3b1,_0xfa0e72:0x330,_0xee05eb:0x31d,_0x31851d:0x3c9,_0x13bc49:0x58b,_0x4f073f:0x4a3,_0x5a5a0e:0x27c,_0x20969c:0x260,_0x5f5b90:0x193,_0x192d2c:0x7f,_0x28d2c5:0x2e8,_0xea8d7b:0x332,_0x1253f6:0x231,_0x12cfc6:0x1ef,_0x380777:0x2ba,_0x57f93a:0x469,_0x421a6d:0x45d,_0x18b59c:0x324,_0x1303fb:0x270,_0x3312b6:0x2ac,_0x58c940:0x26a,_0xb6bdb:0x1c8,_0x392229:0x206,_0x78e49d:0x544,_0x567d1d:0x56c,_0x53a22a:0x47d,_0x4af9e4:0x13a,_0x5c108c:0x12d,_0x3e0342:0x23f,_0xb4c30:0x2f9,_0x348767:0x279,_0x376fc8:0x48c,_0x2951d7:0x5a1,_0x2b857a:0x2ef,_0x51e7cf:0x468,_0x599765:0x342,_0xa43eea:0x2de,_0x53726e:0x37b,_0x4deead:0x2db,_0x86e445:0x484,_0xf18d6f:0x47b,_0x489b46:0x4c8,_0x414cd4:0x4f2,_0x288acf:0x44d,_0x37f291:0x3dc,_0x39c2f7:0x2f8,_0x30b3df:0x1c7,_0xeccfb3:0x1e0,_0x344c2b:0x2e3,_0x5159f3:0x2e4,_0x493d05:0x270,_0x4faabf:0x512,_0x4c8b62:0x45c,_0x373154:0x3e7,_0x23a895:0x2d9,_0x1b30ed:0x416,_0x286316:0x45c,_0x2189bc:0x59d,_0x124857:0x413,_0x180a73:0x435,_0x52e4d3:0x4bd,_0x43f72b:0x43c,_0x15a3ad:0x253,_0x3b1de4:0x5a9,_0x2d9bea:0x411,_0x63660e:0x213,_0x1cacb1:0x1fd,_0x246b06:0x31c,_0x10f230:0x42a,_0x1a6137:0x4fc,_0x4ac177:0x3f1,_0x26638e:0x2b9,_0x542e65:0x377,_0x4b6273:0x3c0,_0x1d7077:0x398,_0x28fba5:0x431,_0x5132ec:0x3e1,_0x21fe27:0x3d1,_0x2b50cb:0x2fc,_0x4bf3cc:0x217,_0x29ff19:0x217,_0x4cf5ed:0x141,_0x94da7b:0x1d1,_0x56a5a7:0x20a,_0x2927b7:0x34f,_0xa627a6:0x432,_0x361e68:0x507,_0x3a7da5:0x3a3,_0x39b6d6:0x505,_0x2f5423:0x4c9,_0x500908:0x22d,_0x369e5e:0x29d,_0x20b12c:0x479,_0x48193d:0x353,_0x39ac84:0xf2,_0x315039:0x1b5,_0x1781dd:0x216,_0x32d8e5:0x26e,_0x540fd0:0x278,_0x50c360:0x29d,_0x4d8b5d:0x401,_0x5776a9:0x2cb,_0x108bc1:0x3f3,_0x364c96:0x323},_0x31706e=Math[_0x2d15ec(_0x2f33bb._0xf79be4,0x169,_0x2f33bb._0x8a2fe6,_0x2f33bb._0x53476b)](0x1,Math[_0x2d15ec(_0x2f33bb._0x597b25,_0x2f33bb._0x2bb269,0x35a,0x493)](0x32,_0x92611a[_0x396635(_0x2f33bb._0xf70639,0x273,0x35d,0x22c)]));if(_0x92611a[_0x396635(_0x2f33bb._0x45dfa2,_0x2f33bb._0x273351,_0x2f33bb._0xfa0e72,_0x2f33bb._0xee05eb)]+_0x31706e>0x64)throw new ToolExecutionError(_0x396635(_0x2f33bb._0x31851d,_0x2f33bb._0x13bc49,_0x2f33bb._0x4f073f,0x4ae),{'offset':_0x92611a[_0x2d15ec(_0x2f33bb._0x5a5a0e,_0x2f33bb._0x20969c,_0x2f33bb._0x5f5b90,_0x2f33bb._0x192d2c)],'count':_0x31706e,'maxResults':0x64});const _0xe7a514=cseDateRestrict(_0x92611a[_0x396635(0x210,0x375,_0x2f33bb._0x28d2c5,_0x2f33bb._0xea8d7b)]),_0xa228ab=addSiteFilters(_0x92611a[_0x2d15ec(0x36c,0xfb,_0x2f33bb._0x1253f6,_0x2f33bb._0x12cfc6)],_0x92611a['domains']);let _0x1f402b=0x0;function _0x2d15ec(_0x350b62,_0x25e195,_0x5bfd35,_0x36e537){return _0x198698(_0x5bfd35-0x318,_0x25e195-0x11d,_0x350b62,_0x36e537-0x171);}let _0x32e25f=_0x92611a[_0x2d15ec(0x2cf,0x17f,_0x2f33bb._0x5f5b90,0x19b)]+0x1;const _0x2cbe1e=[];while(_0x1f402b<_0x31706e){const _0x6b14e8=Math[_0x2d15ec(_0x2f33bb._0x380777,_0x2f33bb._0x57f93a,0x35a,0x47a)](0xa,_0x31706e-_0x1f402b),_0x3b626=new URL(_0x396635(0x420,_0x2f33bb._0x421a6d,_0x2f33bb._0x18b59c,_0x2f33bb._0x1303fb));_0x3b626['searchParams'][_0x2d15ec(_0x2f33bb._0x3312b6,0x148,0x23f,_0x2f33bb._0x58c940)](_0x2d15ec(0x3b9,_0x2f33bb._0xb6bdb,0x307,_0x2f33bb._0x392229),_0x5d0533[_0x396635(0x46a,_0x2f33bb._0x78e49d,0x477,_0x2f33bb._0x567d1d)]),_0x3b626[_0x396635(0x597,0x408,0x47b,_0x2f33bb._0x53a22a)][_0x2d15ec(_0x2f33bb._0x4af9e4,_0x2f33bb._0x5c108c,_0x2f33bb._0x3e0342,_0x2f33bb._0xb4c30)]('cx',_0x5d0533[_0x396635(0x2de,0x38d,0x3a2,_0x2f33bb._0x348767)]),_0x3b626[_0x396635(0x3f6,_0x2f33bb._0x376fc8,0x47b,_0x2f33bb._0x2951d7)][_0x396635(_0x2f33bb._0x2b857a,_0x2f33bb._0x51e7cf,0x3dc,_0x2f33bb._0x599765)]('q',_0xa228ab),_0x3b626[_0x2d15ec(0x379,0x1d7,_0x2f33bb._0xa43eea,_0x2f33bb._0x53726e)]['set'](_0x396635(0x1e9,0x1bc,_0x2f33bb._0x4deead,0x26c),String(_0x6b14e8)),_0x3b626[_0x396635(0x574,_0x2f33bb._0x86e445,_0x2f33bb._0xf18d6f,_0x2f33bb._0x489b46)][_0x396635(_0x2f33bb._0x414cd4,_0x2f33bb._0x288acf,_0x2f33bb._0x37f291,0x4fe)]('start',String(_0x32e25f)),_0x3b626['searchParams'][_0x2d15ec(0x20c,_0x2f33bb._0x39c2f7,0x23f,0x251)](_0x2d15ec(_0x2f33bb._0x30b3df,0x25f,_0x2f33bb._0xeccfb3,0x252),_0x92611a[_0x2d15ec(0x25e,0x30c,0x1e0,_0x2f33bb._0x344c2b)]?_0x2d15ec(0x102,_0x2f33bb._0x5159f3,0x1bb,_0x2f33bb._0x493d05):'off');_0x92611a['lang']&&(_0x3b626[_0x396635(_0x2f33bb._0x4faabf,0x490,_0x2f33bb._0xf18d6f,0x476)][_0x396635(_0x2f33bb._0x4c8b62,0x439,0x3dc,_0x2f33bb._0x373154)]('hl',_0x92611a[_0x396635(0x335,0x254,_0x2f33bb._0x23a895,_0x2f33bb._0x1b30ed)]),_0x3b626[_0x396635(0x45e,_0x2f33bb._0x286316,0x47b,_0x2f33bb._0x2189bc)][_0x396635(0x40d,_0x2f33bb._0x124857,0x3dc,_0x2f33bb._0x180a73)]('lr',_0x2d15ec(0x450,_0x2f33bb._0x52e4d3,0x38b,_0x2f33bb._0x43f72b)+_0x92611a[_0x2d15ec(_0x2f33bb._0x15a3ad,0x58,0x13c,0x29)]));if(_0x92611a[_0x396635(0x5d8,_0x2f33bb._0x3b1de4,0x4b9,_0x2f33bb._0x2d9bea)])_0x3b626['searchParams'][_0x2d15ec(0x2df,_0x2f33bb._0x63660e,0x23f,_0x2f33bb._0x58c940)]('gl',_0x92611a[_0x2d15ec(_0x2f33bb._0x1cacb1,0x40e,_0x2f33bb._0x246b06,0x33f)][_0x396635(0x442,_0x2f33bb._0x10f230,0x50f,_0x2f33bb._0x1a6137)]());if(_0x92611a[_0x2d15ec(0x384,_0x2f33bb._0x4ac177,0x387,_0x2f33bb._0x26638e)]==='images')_0x3b626[_0x2d15ec(_0x2f33bb._0x542e65,_0x2f33bb._0x4b6273,0x2de,0x1f8)][_0x396635(_0x2f33bb._0x1d7077,_0x2f33bb._0x28fba5,0x3dc,0x425)](_0x396635(_0x2f33bb._0x5132ec,_0x2f33bb._0x288acf,0x3c7,0x4e2),_0x396635(0x3a2,_0x2f33bb._0x21fe27,0x432,0x4e7));if(_0xe7a514)_0x3b626['searchParams']['set'](_0x2d15ec(0x26e,0x15c,0x220,_0x2f33bb._0x2b50cb),_0xe7a514);const _0x585e69=await fetchJson(_0x3b626['toString'](),_0x343668),_0x3ad3b4=_0x585e69['items']??[];if(_0x3ad3b4[_0x2d15ec(0x32d,0xef,_0x2f33bb._0x4bf3cc,0x1f1)]===0x0)break;const _0x4794f3=_0x1f402b;for(let _0x3cc5c6=0x0;_0x3cc5c6<_0x3ad3b4[_0x2d15ec(_0x2f33bb._0x29ff19,0x233,0x217,_0x2f33bb._0x4cf5ed)];_0x3cc5c6++){const _0x2db006=_0x3ad3b4[_0x3cc5c6];if(!_0x2db006)continue;const _0x11cf7d=_0x2db006[_0x2d15ec(0x2ad,_0x2f33bb._0x94da7b,0x1ee,_0x2f33bb._0x56a5a7)]||_0x2db006[_0x396635(0x484,_0x2f33bb._0x2927b7,_0x2f33bb._0xa627a6,_0x2f33bb._0x361e68)]?.[_0x396635(_0x2f33bb._0x3a7da5,_0x2f33bb._0x39b6d6,_0x2f33bb._0x2f5423,_0x2f33bb._0x78e49d)]||'',_0x5a93a8=_0x2db006[_0x396635(0x3dd,_0x2f33bb._0x500908,0x360,_0x2f33bb._0x369e5e)]||_0x2db006['image']?.[_0x396635(_0x2f33bb._0x20b12c,0x41b,0x360,0x42f)]||'Untitled',_0x489c09=_0x2db006[_0x396635(0x21e,_0x2f33bb._0x20b12c,_0x2f33bb._0x48193d,0x3d8)]||_0x2db006[_0x2d15ec(0x282,_0x2f33bb._0x39ac84,0x209,0x11b)]?.['replace'](/<[^>]+>/g,''),_0x1f695d=_0x2db006['pagemap']?.['metatags']?.[0x0]??{};let _0x169395;try{_0x169395=new URL(_0x11cf7d)[_0x396635(0x558,0x469,0x4f1,0x439)];}catch{_0x169395=null;}_0x2cbe1e['push']({'title':_0x5a93a8,'url':normalizeUrl(_0x11cf7d),'snippet':_0x489c09??null,'displayUrl':_0x169395,'favicon':null,'publishedAt':_0x1f695d[_0x2d15ec(0x1de,_0x2f33bb._0x315039,0x1f3,0x26f)]||_0x1f695d[_0x2d15ec(0x2ef,0x127,_0x2f33bb._0x1781dd,0x1c5)]||null,'source':{'engine':_0x2d15ec(_0x2f33bb._0x32d8e5,0x167,_0x2f33bb._0x540fd0,_0x2f33bb._0x50c360),'rank':_0x4794f3+_0x3cc5c6+0x1}});}_0x1f402b+=_0x3ad3b4[_0x2d15ec(0x11f,0x1fa,0x217,0x1d9)],_0x32e25f+=_0x3ad3b4[_0x396635(0x373,_0x2f33bb._0x4d8b5d,0x3b4,0x2cb)];if(_0x3ad3b4[_0x396635(_0x2f33bb._0x5776a9,0x47c,0x3b4,_0x2f33bb._0x108bc1)]<_0x6b14e8)break;}function _0x396635(_0x1a8c86,_0x26a92a,_0x198750,_0x3914e8){return _0x198698(_0x198750-0x4b5,_0x26a92a-0x1b1,_0x26a92a,_0x3914e8-0x17a);}return _0x2cbe1e[_0x2d15ec(0x1cd,_0x2f33bb._0x364c96,0x2ca,0x18e)](0x0,_0x31706e);}function createWebSearchTool(_0x2706e3){const _0x58a568={_0x1dbeef:0x2af,_0x20ddad:0x8b,_0x41b361:0x20,_0x528495:0x36,_0x49f5c4:0x3d,_0x437b75:0x146,_0x450b1:0x12,_0x3fef28:0x94,_0x5c69d7:0x11d,_0x23e640:0xa0,_0x49ad9d:0x2c1,_0x345b4e:0xed,_0x58a765:0x200,_0x92411a:0x1bb,_0x117d86:0xd6,_0x37a272:0x136,_0x28ea9f:0x150,_0xa9986:0xfb,_0x3398e6:0xd,_0x53a006:0x113,_0x1dc3dd:0x1f,_0x5cb63f:0xeb,_0x29675c:0xf4,_0x3c5aac:0x31,_0x3f8834:0x3,_0x6401e4:0xea,_0xb54bf9:0xb,_0x723049:0x102,_0x2f0c80:0x15,_0x11a0d2:0x19d,_0x4375b9:0x12d,_0x46bf9a:0x10c,_0x289098:0x150},_0x226245={_0x2e6bd2:0x2a8,_0xaa7d07:0x300,_0x4d4789:0x32d,_0x51cf20:0x341,_0x4a0f6e:0x636,_0xde860e:0x750,_0x4f640d:0x43e,_0x2eede7:0x50c,_0x3d8c6c:0x374,_0x197f07:0x480,_0x271cba:0x3c8,_0x3ca9fe:0x625,_0xe7f449:0x35f,_0x2d29a0:0x2f2,_0x34dd1e:0x417,_0x5dd77b:0x427,_0x238fb1:0x418,_0x291e4d:0x38b,_0x53faaa:0x4bc,_0x5e7195:0x504,_0x599d6a:0x51e,_0x44587c:0x426,_0x3c7877:0x579,_0x5f4d52:0x577,_0x3c35c7:0x36c,_0x23c7e6:0x3c0,_0x2c40b7:0x582,_0x2f6a92:0x329,_0x5366d9:0x519,_0x3e6476:0x2e6,_0x2a3d01:0x46a,_0x51da3d:0x4da,_0x19998a:0x5d9,_0x2b8eb0:0x536,_0x301697:0x5aa,_0x170859:0x4f3,_0x2c2257:0x52e,_0x33d38c:0x531,_0x54990f:0x3f9,_0x4dcd6c:0x4a7,_0x2dee25:0x265,_0x1f219d:0x37e,_0xea138c:0x34d,_0x5e5261:0x34b,_0x1d1709:0x253,_0x58b536:0x418,_0x51c2eb:0x35d,_0x581e33:0x2ff,_0x3f3e28:0x354,_0x2b7e24:0x404,_0x221984:0x273,_0x4f53c1:0x33e,_0x1dc2b7:0x5f8,_0x42e34a:0x6b1,_0x20e8d6:0x49f,_0x37da73:0x467,_0x19c29f:0x47a,_0x3e975a:0x3eb,_0x4fc0d1:0x3bc,_0x1345df:0x3bc,_0x26f5d9:0x419,_0x2221cc:0x52c,_0x227587:0x433,_0xb71bfd:0x414,_0x3af202:0x410,_0x388c8e:0x51a,_0x5b2429:0x4f3,_0x49b84a:0x40e,_0x588ad3:0x492,_0x39e12b:0x5cc,_0x437d8f:0x46f,_0x4a8314:0x4d3,_0x740886:0x4f2,_0x4a05a5:0x2d5},_0x2a1920={_0x399c2e:0x278,_0x530aaa:0x373,_0x16f4ee:0x24c,_0x59453b:0x153,_0x55788f:0x2fa,_0x1c4118:0x20d},_0x3313b2={_0x3b7315:0x36f};if(!_0x2706e3[_0x23c369(_0x58a568._0x1dbeef,0x2d8,0x14f,0x28a)])throw new Error(_0x979ca1(0x51,-0x9e,-0x176,-_0x58a568._0x20ddad));function _0x979ca1(_0xdb14e9,_0x18b014,_0x39091f,_0x487268){return _0x198698(_0x18b014-0xdd,_0x18b014-0x1de,_0x39091f,_0x487268-0x26);}if(!_0x2706e3[_0x979ca1(-_0x58a568._0x41b361,-_0x58a568._0x528495,-0x38,0x28)])throw new Error(_0x23c369(0x26c,_0x58a568._0x49f5c4,0x67,_0x58a568._0x437b75));function _0x23c369(_0x3e4ef6,_0x1e5a1b,_0x4adfa0,_0x58d258){return _0x2ecd0e(_0x58d258- -_0x3313b2._0x3b7315,_0x1e5a1b-0x7f,_0x4adfa0-0x8e,_0x4adfa0);}const _0x3e351c=_0x2706e3[_0x979ca1(-0x98,_0x58a568._0x450b1,_0x58a568._0x3fef28,_0x58a568._0x5c69d7)]??'WebSearch';return defineTool({'name':_0x3e351c,'description':'Search\x20the\x20web\x20using\x20Google\x20Custom\x20Search\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x979ca1(-0x2e,-_0x58a568._0x23e640,-0x1b0,_0x58a568._0x49f5c4),'properties':{'description':{'type':_0x23c369(_0x58a568._0x49ad9d,_0x58a568._0x345b4e,_0x58a568._0x58a765,_0x58a568._0x92411a)},'query':{'type':'string'},'count':{'type':'number'},'offset':{'type':_0x23c369(0x269,0x242,_0x58a568._0x117d86,0x1d3)},'domains':{'type':_0x979ca1(0x13b,_0x58a568._0x37a272,0x1cf,0x18b),'items':{'type':_0x23c369(0x2b5,0x22d,_0x58a568._0x28ea9f,_0x58a568._0x92411a)}},'recencyDays':{'type':'number'},'lang':{'type':_0x979ca1(_0x58a568._0xa9986,-0x30,-_0x58a568._0x3398e6,-_0x58a568._0x53a006)},'region':{'type':_0x979ca1(-_0x58a568._0x1dc3dd,-0x30,_0x58a568._0x5cb63f,-_0x58a568._0x29675c)},'safe':{'type':_0x979ca1(-_0x58a568._0x3c5aac,-_0x58a568._0x3f8834,-0xdf,-_0x58a568._0x6401e4)},'type':{'type':_0x979ca1(-_0x58a568._0xb54bf9,-0x30,_0x58a568._0x723049,-_0x58a568._0x2f0c80)},'hydrateMeta':{'type':_0x23c369(0x30d,_0x58a568._0x11a0d2,_0x58a568._0x4375b9,0x1e8)}},'required':[_0x23c369(_0x58a568._0x46bf9a,_0x58a568._0x289098,0x152,0x1e1)]},async *'execute'(_0x5648e0,_0x1e5a27){const _0x45a272={_0xc8b503:0x1d6,_0x5e74c0:0x27},_0x389c27={_0x403d2d:0x43d,_0x52670d:0x1a4},_0x22e4ed=_0x5648e0['query']['trim']();if(!_0x22e4ed)throw new ToolExecutionError(_0x5ea2bb(0x3bf,0x302,_0x226245._0x2e6bd2,0x32a));const _0x8ba47d={'query':_0x22e4ed,'count':Math[_0x5ea2bb(_0x226245._0xaa7d07,0x35f,_0x226245._0x4d4789,_0x226245._0x51cf20)](0x1,Math[_0x3e7b22(_0x226245._0x4a0f6e,_0x226245._0xde860e,0x70f,0x5e6)](0x32,Math[_0x5ea2bb(0x628,_0x226245._0x4f640d,0x3db,_0x226245._0x2eede7)](_0x5648e0[_0x5ea2bb(_0x226245._0x3d8c6c,_0x226245._0x197f07,_0x226245._0x271cba,0x3c2)]??0xa))),'offset':Math['max'](0x0,Math[_0x5ea2bb(0x5b6,_0x226245._0x3ca9fe,0x612,0x50c)](_0x5648e0['offset']??0x0)),'domains':_0x5648e0[_0x5ea2bb(0x4bb,0x509,0x537,0x4d0)]??[],'recencyDays':Math[_0x5ea2bb(0x27d,_0x226245._0xe7f449,_0x226245._0x2d29a0,0x341)](0x0,Math[_0x5ea2bb(0x50d,0x43d,_0x226245._0x34dd1e,0x50c)](_0x5648e0[_0x3e7b22(_0x226245._0x5dd77b,0x37e,0x43c,0x519)]??0x0)),'lang':_0x5648e0[_0x3e7b22(_0x226245._0x238fb1,_0x226245._0x291e4d,0x3a7,_0x226245._0x53faaa)]??'en','region':_0x5648e0[_0x5ea2bb(0x5af,0x54e,_0x226245._0x5e7195,_0x226245._0x599d6a)]??'','safe':_0x5648e0[_0x3e7b22(0x4bc,_0x226245._0x44587c,_0x226245._0x3c7877,0x47b)]??!![],'type':normalizeType(_0x5648e0[_0x3e7b22(0x663,0x755,_0x226245._0x5f4d52,0x773)]),'hydrateMeta':_0x5648e0[_0x3e7b22(0x489,0x35a,0x481,_0x226245._0x3c35c7)]??![]};let _0x53ad76=await searchGoogleCse(_0x2706e3,_0x8ba47d,_0x1e5a27[_0x5ea2bb(_0x226245._0x23c7e6,_0x226245._0x2c40b7,0x599,0x4da)]);_0x8ba47d['hydrateMeta']&&_0x53ad76[_0x5ea2bb(0x4b1,_0x226245._0x2f6a92,0x3d1,0x419)]>0x0&&(_0x53ad76=await hydrateResults(_0x53ad76,_0x8ba47d[_0x3e7b22(_0x226245._0x238fb1,_0x226245._0x5366d9,0x51e,_0x226245._0x3e6476)],_0x1e5a27[_0x5ea2bb(0x405,_0x226245._0x2a3d01,0x57f,_0x226245._0x51da3d)]));const _0x2a43ba=new Set();function _0x5ea2bb(_0x339a80,_0x1f0029,_0x3771b3,_0x5dc245){return _0x979ca1(_0x339a80-0x5c,_0x5dc245-_0x389c27._0x403d2d,_0x339a80,_0x5dc245-_0x389c27._0x52670d);}_0x53ad76=_0x53ad76[_0x3e7b22(_0x226245._0x19998a,0x505,_0x226245._0x2b8eb0,0x6d8)](_0x4a3af9=>{const _0x27cdd4={_0x4840d3:0x52,_0x376477:0xd,_0x4cf24b:0xe9},_0x45e757={_0x20fdf0:0xdf,_0x273a14:0x112},_0x2e71a8=_0x4a3af9[_0x398a2f(0x1b0,0x382,_0x2a1920._0x399c2e,0x1ba)]['toLowerCase']();function _0x398a2f(_0x244c3e,_0x1c7f22,_0xfcc284,_0x281a9e){return _0x5ea2bb(_0x244c3e,_0x1c7f22-0x7b,_0xfcc284-_0x45e757._0x20fdf0,_0xfcc284- -_0x45e757._0x273a14);}if(!_0x2e71a8||_0x2a43ba[_0x398a2f(_0x2a1920._0x530aaa,_0x2a1920._0x16f4ee,0x373,0x3a0)](_0x2e71a8))return![];function _0x2101ff(_0x184f30,_0x3d6838,_0x30451c,_0xceea78){return _0x3e7b22(_0x30451c-_0x27cdd4._0x4840d3,_0x184f30,_0x30451c-_0x27cdd4._0x376477,_0xceea78-_0x27cdd4._0x4cf24b);}return _0x2a43ba[_0x398a2f(_0x2a1920._0x59453b,_0x2a1920._0x55788f,_0x2a1920._0x1c4118,0x31a)](_0x2e71a8),!![];});function _0x3e7b22(_0x254458,_0x69153d,_0x1b18a9,_0x472eac){return _0x979ca1(_0x254458-_0x45a272._0xc8b503,_0x254458-0x517,_0x69153d,_0x472eac-_0x45a272._0x5e74c0);}_0x53ad76=_0x53ad76['map']((_0x7ee671,_0x40ac96)=>({..._0x7ee671,'source':{..._0x7ee671[_0x5ea2bb(0x4dd,0x617,0x569,0x51c)],'rank':_0x40ac96+0x1}}));const _0x2ddba3={};if(_0x8ba47d[_0x3e7b22(_0x226245._0x301697,0x5e6,0x475,0x56d)][_0x3e7b22(_0x226245._0x170859,_0x226245._0x2c2257,0x54a,_0x226245._0x33d38c)]>0x0)_0x2ddba3['domains']=_0x8ba47d['domains'];if(_0x8ba47d[_0x3e7b22(0x427,_0x226245._0x54990f,_0x226245._0x4dcd6c,0x4b3)]>0x0)_0x2ddba3[_0x5ea2bb(0x3cd,_0x226245._0x2dee25,_0x226245._0x1f219d,_0x226245._0xea138c)]=_0x8ba47d[_0x3e7b22(_0x226245._0x5dd77b,0x51c,0x4ce,0x523)];if(_0x8ba47d[_0x5ea2bb(_0x226245._0x5e5261,0x38e,_0x226245._0x1d1709,0x33e)]!=='en')_0x2ddba3[_0x3e7b22(_0x226245._0x58b536,_0x226245._0x51c2eb,_0x226245._0x581e33,0x2d9)]=_0x8ba47d[_0x5ea2bb(_0x226245._0x3f3e28,_0x226245._0x2b7e24,_0x226245._0x221984,_0x226245._0x4f53c1)];if(_0x8ba47d[_0x3e7b22(0x5f8,0x522,0x6c6,0x6aa)])_0x2ddba3['region']=_0x8ba47d[_0x3e7b22(_0x226245._0x1dc2b7,0x5a7,_0x226245._0x42e34a,0x67a)];return yield createToolOutput(formatResults(_0x53ad76),{'engine':_0x5ea2bb(0x3e3,_0x226245._0x20e8d6,_0x226245._0x37da73,_0x226245._0x19c29f),'count':_0x53ad76[_0x5ea2bb(_0x226245._0x3e975a,_0x226245._0x4fc0d1,_0x226245._0x1345df,_0x226245._0x26f5d9)],'items':_0x53ad76,'query':_0x8ba47d[_0x5ea2bb(_0x226245._0x2221cc,0x3ba,0x312,_0x226245._0x227587)],...Object[_0x3e7b22(_0x226245._0xb71bfd,0x3dc,_0x226245._0x3af202,_0x226245._0x388c8e)](_0x2ddba3)[_0x3e7b22(_0x226245._0x5b2429,_0x226245._0x49b84a,_0x226245._0x588ad3,_0x226245._0x39e12b)]>0x0?{'appliedFilters':_0x2ddba3}:{},'offset':_0x8ba47d[_0x3e7b22(_0x226245._0x437d8f,0x4a2,_0x226245._0x4a8314,_0x226245._0x740886)],'totalRequested':_0x8ba47d['count'],'hydrated':_0x8ba47d[_0x5ea2bb(_0x226245._0x4a05a5,0x47c,0x327,0x3af)]}),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,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|