@nuvin/agent-core 0.0.0-rc.6 → 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.
@@ -1 +1 @@
1
- (function(_0xd3524f,_0x6b9d11){const _0x23b7fe={_0x4315e8:0x26b,_0x4c408d:0x34e,_0x41526c:0x2f2,_0x23a504:0x143,_0x4de9e2:0x11e,_0x324852:0x16c,_0x456048:0x382,_0x43fee6:0x265,_0x17dde6:0x28e,_0xc3afa7:0x3de,_0x37b9fb:0x410,_0x269d75:0x38a,_0xe9f060:0x30b,_0x429215:0x408,_0x340af9:0x48f,_0x1a4d26:0x284,_0x39306c:0x278,_0x19982a:0x2c8,_0x167fce:0x2c9,_0x234e5a:0x207,_0x2c6ad7:0x1d3,_0x733486:0x1fd,_0x363961:0x248,_0x37c200:0x274,_0x2187f9:0x27b,_0x314da0:0x2c3,_0x59cf6a:0x1f3,_0x299fa2:0x323},_0x304b08={_0x191c96:0x375},_0x31548a={_0x5c3b2e:0x11f},_0x23930b=_0xd3524f();function _0x5b7364(_0x2ceab8,_0x150ff4,_0x22faea,_0x360586){return _0x7ca6(_0x2ceab8-_0x31548a._0x5c3b2e,_0x360586);}function _0x13fd74(_0x4248b6,_0x59419d,_0x16db16,_0x716e0c){return _0x7ca6(_0x59419d- -_0x304b08._0x191c96,_0x716e0c);}while(!![]){try{const _0x164963=-parseInt(_0x13fd74(-0x214,-0x23f,-_0x23b7fe._0x4315e8,-0x2a5))/0x1+parseInt(_0x5b7364(_0x23b7fe._0x4c408d,0x270,_0x23b7fe._0x41526c,0x22b))/0x2*(parseInt(_0x13fd74(-0x6e,-_0x23b7fe._0x23a504,-_0x23b7fe._0x4de9e2,-_0x23b7fe._0x324852))/0x3)+parseInt(_0x5b7364(_0x23b7fe._0x456048,0x25d,_0x23b7fe._0x43fee6,_0x23b7fe._0x17dde6))/0x4+-parseInt(_0x5b7364(0x2d0,0x23d,0x2b6,_0x23b7fe._0xc3afa7))/0x5*(parseInt(_0x5b7364(_0x23b7fe._0x37b9fb,0x447,_0x23b7fe._0x269d75,_0x23b7fe._0xe9f060))/0x6)+-parseInt(_0x5b7364(_0x23b7fe._0x429215,_0x23b7fe._0x340af9,0x49c,0x304))/0x7*(-parseInt(_0x13fd74(-0x269,-_0x23b7fe._0x1a4d26,-_0x23b7fe._0x39306c,-0x1ee))/0x8)+-parseInt(_0x13fd74(-_0x23b7fe._0x19982a,-_0x23b7fe._0x167fce,-_0x23b7fe._0x234e5a,-_0x23b7fe._0x2c6ad7))/0x9*(-parseInt(_0x13fd74(-_0x23b7fe._0x733486,-0x1ea,-_0x23b7fe._0x363961,-0x2dd))/0xa)+parseInt(_0x13fd74(-0x118,-0x1a5,-0xe3,-_0x23b7fe._0x37c200))/0xb*(-parseInt(_0x13fd74(-_0x23b7fe._0x2187f9,-_0x23b7fe._0x314da0,-_0x23b7fe._0x59cf6a,-_0x23b7fe._0x299fa2))/0xc);if(_0x164963===_0x6b9d11)break;else _0x23930b['push'](_0x23930b['shift']());}catch(_0x48a9b4){_0x23930b['push'](_0x23930b['shift']());}}}(_0x2759,0x57d14));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 _0x49be13 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x22ef16(0x16e,0x193,0x182,0x15d),'.tsx':_0x324926(-0x116,-0x14f,-0x41,-0x119),'.js':_0x22ef16(0x271,0x1e8,0x140,0xcd),'.jsx':_0x22ef16(0x1de,0x224,0x34d,0x2f7),'.mjs':'javascript','.cjs':_0x22ef16(0x227,0x1e8,0x266,0x25e),'.mts':'typescript','.cts':_0x324926(-0x6b,-0x4e,-0x122,-0x74),'.json':'json','.jsonc':'jsonc'};function getLanguageId(_0x407b64){const _0x4200ce={_0x228bf9:0xbc,_0x53f45e:0xe7,_0x4bc111:0x5c,_0x2dd95c:0x32},_0x2fc245={_0x469957:0x95,_0x1b5671:0x6f},_0x23819c={_0x4c4ade:0x103};function _0x4baf4d(_0x409ee5,_0x30e651,_0x143341,_0x30c636){return _0x22ef16(_0x30e651,_0x30c636- -_0x23819c._0x4c4ade,_0x143341-0xcd,_0x30c636-0x191);}function _0xcf145c(_0x155d4a,_0x1b33ab,_0x6399b1,_0x34870a){return _0x324926(_0x155d4a- -_0x2fc245._0x469957,_0x6399b1,_0x6399b1-0x100,_0x34870a-_0x2fc245._0x1b5671);}return EXTENSION_TO_LANGUAGE[_0x49be13[_0x4baf4d(0x1c,_0x4200ce._0x228bf9,0x6e,_0x4200ce._0x53f45e)](_0x407b64)[_0xcf145c(_0x4200ce._0x4bc111,-_0x4200ce._0x2dd95c,0x43,0xb5)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x1281c3){const _0x31b90d={_0x57657d:0x1d,_0xd38d26:0x33,_0x38cc3f:0xa0},_0x4f29b3={_0x253cbe:0x1a2};function _0x4c194c(_0x547a0d,_0x4768f0,_0x4c6ab5,_0x411ff6){return _0x22ef16(_0x411ff6,_0x4768f0- -0x14d,_0x4c6ab5-_0x4f29b3._0x253cbe,_0x411ff6-0x113);}return pathToFileURL(_0x1281c3)[_0x4c194c(_0x31b90d._0x57657d,_0x31b90d._0xd38d26,0x1b,_0x31b90d._0x38cc3f)]();}function textDocumentPosition(_0xbf8d3b){const _0x4f9cf8={_0x91bc6:0x1f3,_0x26cac3:0x1ea,_0xd48e1e:0xf2,_0x2cf685:0x1c3,_0x16e8ba:0x1f5,_0x14c912:0x1de},_0x3954fc={_0x13e7b6:0x50,_0x6edc17:0x176},_0x3d175e={_0x168b77:0x169,_0x2b9d72:0x81};function _0x1d47a6(_0x3b11cd,_0x1889b7,_0x1f66d0,_0x2a6309){return _0x324926(_0x3b11cd-_0x3d175e._0x168b77,_0x2a6309,_0x1f66d0-_0x3d175e._0x2b9d72,_0x2a6309-0x10f);}function _0x2eb53b(_0x83743d,_0x4d77a6,_0x2da49a,_0x1b1b68){return _0x324926(_0x4d77a6- -_0x3954fc._0x13e7b6,_0x1b1b68,_0x2da49a-_0x3954fc._0x6edc17,_0x1b1b68-0x103);}return{'textDocument':{'uri':uriForPath(_0xbf8d3b[_0x1d47a6(_0x4f9cf8._0x91bc6,_0x4f9cf8._0x26cac3,_0x4f9cf8._0xd48e1e,_0x4f9cf8._0x2cf685)])},'position':{'line':_0xbf8d3b[_0x1d47a6(0x205,0x120,_0x4f9cf8._0x16e8ba,_0x4f9cf8._0x14c912)],'character':_0xbf8d3b[_0x2eb53b(-0x115,-0x7c,0xb4,-0x191)]}};}function normalizeLocations(_0x409988){if(!_0x409988)return[];return Array['isArray'](_0x409988)?_0x409988:[_0x409988];}async function createLspClient(_0xee5810){const _0x4c11c6={_0x26741b:0x5b,_0x22e952:0x196,_0x3ab21e:0x119,_0x5e744e:0x1df,_0x3a06f7:0x284,_0x5e218e:0x1ad,_0x98a3e2:0xb5,_0x2747a4:0x153,_0x21dd33:0x95,_0xbc168d:0x130,_0x304619:0xee,_0x463bee:0xfe,_0x50c87e:0x80,_0x5c59c4:0x1ee,_0x24790f:0xd9,_0x391bf9:0x1a,_0x1bdf5b:0x258,_0x380040:0x4e,_0x4e8de4:0x251,_0x568591:0x165,_0x26ecb5:0xda,_0x55e565:0xee,_0x522b99:0xb3,_0x423cd4:0xd4,_0x41138a:0x25,_0x2c031c:0xe,_0xa756a2:0x1ab,_0x2d27c2:0x1d0,_0x323db3:0x12,_0x18d962:0x20,_0x29e927:0xdf,_0x3a2b9d:0x18,_0x4ab33c:0x8a,_0x298fb9:0x75,_0x4d6253:0x91},_0x3b6fc3={_0x5751e9:0x511,_0xf06f42:0x140,_0x52da76:0x297,_0x52886d:0x516,_0x149ffb:0x459,_0x2c5b33:0x638},_0x3c6a64={_0x3be3c4:0x147,_0x8fb459:0x28,_0xd7e252:0x7a,_0xc14c10:0x19c,_0x2ab8f1:0xdc,_0x5d8c27:0xc},_0x4e59c3={_0xbca23a:0x58},_0x3517={_0xfb007e:0xb6,_0x4ea988:0xd2,_0x5966f5:0x13b,_0x463fad:0x87,_0x4492c4:0x25},_0x306c91={_0x4379f8:0x1fa,_0x14de7a:0x2b9,_0x5cf8ca:0x172,_0x59b311:0x265},_0x42764={_0x4a128c:0xe3},_0x1e2fca={_0x2f0520:0x55},_0x27eab6={_0x457147:0x96,_0x291fa5:0x18a},_0x2e487c={_0x520d23:0x60,_0x11f154:0x112,_0x55472f:0x79,_0x4aff4a:0x78},_0x1d4df9={_0x5eb8b3:0x67,_0x22905e:0x137},_0x2d2e79={_0x25ee0a:0x79},_0x164b66={_0x1fc527:0x3b6,_0x5b25cb:0x453,_0x393781:0x331},_0x537c33={_0x575791:0x139},_0x32df53={_0x12b8d9:0x2d4},_0x260ca4={_0x7fa49e:0x10a,_0x3fba57:0xb3,_0x5c9b5d:0xd1},_0x55aeb3={_0x2d8ecc:0x79,_0x25ea8a:0x1a6},_0x31cfe6={_0x23d2b2:0x109},_0x180c92={_0x31b29d:0x296,_0x572771:0x221,_0x3e5ba4:0x1a8,_0xfb821d:0x2a3,_0x5c363f:0x2d2},_0x4ecc1b={_0x20d5b8:0xf3,_0x15bdb0:0x267,_0x3b7256:0x139},_0x3d4dbf={_0x2cd006:0x501,_0x30f4e6:0x491,_0x550d54:0x3d6,_0x16616b:0x48d,_0x9e1bcf:0x4a8},_0x19ede9={_0x146185:0x4b1,_0xf43a38:0x12},_0x3dbab2={_0x1b527c:0x1f2,_0xa082cd:0xda},_0x1572cd={_0x29ef54:0x113,_0x5a6bdf:0x188,_0x295437:0x124,_0x206c69:0x31a,_0x429542:0x71,_0xdf6df0:0x1e0,_0x41d39c:0x81,_0x3ad1d5:0xd0},_0x4681fa={_0x1f2810:0x172,_0x13dbed:0x239},_0x3c3120=_0xee5810[_0x34a1f7(0x248,_0x4c11c6._0x26741b,_0x4c11c6._0x22e952,_0x4c11c6._0x3ab21e)][_0x34a1f7(0x65,0x1b4,0xed,0x130)][_0x34a1f7(_0x4c11c6._0x5e744e,0x1d8,_0x4c11c6._0x3a06f7,0x288)],_0x5044f7=_0xee5810[_0x480380(-0x8b,-0x12a,-0x86,-_0x4c11c6._0x5e218e)][_0x34a1f7(_0x4c11c6._0x98a3e2,_0x4c11c6._0x2747a4,_0x4c11c6._0x21dd33,_0x4c11c6._0xbc168d)][_0x34a1f7(_0x4c11c6._0x304619,_0x4c11c6._0x463bee,-_0x4c11c6._0x50c87e,0x91)];if(!_0x3c3120||!_0x5044f7)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x37039e=createMessageConnection(new StreamMessageReader(_0x3c3120),new StreamMessageWriter(_0x5044f7)),_0x130787=new Map(),_0x204e83=new Map();let _0x37897a=![];_0x37039e[_0x480380(_0x4c11c6._0x5c59c4,0x1e2,0xc9,0x1ad)](_0x480380(-_0x4c11c6._0x24790f,-0xd7,0x4c,-_0x4c11c6._0x391bf9),_0x546138=>{const _0x45767a={_0x508da5:0xe5,_0x44e05f:0x29,_0x3d3a54:0x177};_0x130787[_0x4359ea(_0x1572cd._0x29ef54,0x15c,0x280,0xc5)](_0x546138[_0x4359ea(0xcc,_0x1572cd._0x5a6bdf,_0x1572cd._0x295437,0x27c)],_0x546138[_0x4359ea(0x310,_0x1572cd._0x206c69,0x3ba,0x22d)]);const _0x880bb6=_0x204e83['get'](_0x546138[_0x4359ea(0xcf,0x188,_0x1572cd._0x429542,_0x1572cd._0xdf6df0)]);function _0x482611(_0x1e3ee0,_0x533b21,_0x281475,_0x59fb7c){return _0x480380(_0x59fb7c,_0x533b21-_0x45767a._0x508da5,_0x1e3ee0- -_0x45767a._0x44e05f,_0x59fb7c-_0x45767a._0x3d3a54);}function _0x4359ea(_0x4ffd1d,_0x44d3dd,_0x314026,_0x249031){return _0x480380(_0x314026,_0x44d3dd-_0x4681fa._0x1f2810,_0x44d3dd-_0x4681fa._0x13dbed,_0x249031-0x129);}if(!_0x880bb6)return;_0x204e83[_0x482611(0x64,0xf8,0x30,0x39)](_0x546138[_0x4359ea(_0x1572cd._0x41d39c,0x188,_0x1572cd._0x3ad1d5,0x259)]);for(const _0x1701ca of _0x880bb6)_0x1701ca();});function _0x480380(_0x9b5067,_0x2286c1,_0x215649,_0x5ad5b2){return _0x22ef16(_0x9b5067,_0x215649- -0x1ec,_0x215649-0xed,_0x5ad5b2-0x1b1);}_0x37039e[_0x34a1f7(_0x4c11c6._0x1bdf5b,_0x4c11c6._0x380040,_0x4c11c6._0x4e8de4,0x139)]();const _0x1f9b01=await _0x37039e['sendRequest']('initialize',{'processId':process['pid'],'rootUri':uriForPath(_0xee5810[_0x34a1f7(0x139,0x46,_0x4c11c6._0x568591,0xde)]),'workspaceFolders':[{'uri':uriForPath(_0xee5810[_0x480380(-0xf7,-_0x4c11c6._0x26ecb5,-0xc1,0x23)]),'name':_0xee5810[_0x34a1f7(0x16c,0xd4,_0x4c11c6._0x55e565,_0x4c11c6._0x522b99)]['id']}],'initializationOptions':_0xee5810['handle'][_0x480380(-_0x4c11c6._0x423cd4,_0x4c11c6._0x41138a,-0x69,0x2c)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown',_0x480380(_0x4c11c6._0x2c031c,_0x4c11c6._0xa756a2,0x90,0x66)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x37039e['sendNotification'](_0x34a1f7(_0x4c11c6._0x5e744e,0xbf,_0x4c11c6._0x2d27c2,0x1ad),{});function _0x34a1f7(_0x23bda5,_0xb832ec,_0x5738e7,_0x3e4783){return _0x22ef16(_0x23bda5,_0x3e4783- -0x4d,_0x5738e7-_0x3dbab2._0x1b527c,_0x3e4783-_0x3dbab2._0xa082cd);}const _0x5ccee7={'serverId':_0xee5810[_0x34a1f7(0xbf,_0x4c11c6._0x323db3,_0x4c11c6._0x18d962,_0x4c11c6._0x522b99)]['id'],'root':_0xee5810[_0x34a1f7(_0x4c11c6._0x29e927,0x1bd,-_0x4c11c6._0x3a2b9d,0xde)],'connection':_0x37039e,'diagnostics':_0x130787,'capabilities':_0x1f9b01[_0x480380(_0x4c11c6._0x4ab33c,0x4c,_0x4c11c6._0x298fb9,_0x4c11c6._0x4d6253)]??{},'notify':{async 'open'({path:_0x33c9b2}){const _0x38d6cb={_0x2747e1:0x1fe};function _0x3a9755(_0x294647,_0xd1762b,_0xac65f7,_0x2bef19){return _0x480380(_0xd1762b,_0xd1762b-0x1d0,_0x2bef19-_0x19ede9._0x146185,_0x2bef19-_0x19ede9._0xf43a38);}const _0x102042=await readFile(_0x33c9b2,_0x3a9755(_0x3d4dbf._0x2cd006,0x3b7,_0x3d4dbf._0x30f4e6,0x494));function _0x2311f7(_0xf97a32,_0x2de77b,_0x521ee9,_0x54e68f){return _0x34a1f7(_0x521ee9,_0x2de77b-0x174,_0x521ee9-0x1ad,_0xf97a32- -_0x38d6cb._0x2747e1);}_0x37039e[_0x3a9755(_0x3d4dbf._0x550d54,0x393,_0x3d4dbf._0x16616b,_0x3d4dbf._0x9e1bcf)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x33c9b2),'languageId':getLanguageId(_0x33c9b2)??'plaintext','version':0x1,'text':_0x102042}});},async 'change'({path:_0x4ab936,version:_0x941511}){const _0x1e5cae={_0x109774:0x99};function _0x5ec397(_0x2a6bf6,_0x45b65e,_0x3c4df8,_0x51897e){return _0x34a1f7(_0x45b65e,_0x45b65e-0xa8,_0x3c4df8-_0x1e5cae._0x109774,_0x3c4df8- -0x5d);}const _0x412902=await readFile(_0x4ab936,'utf8');_0x37039e[_0x5ec397(_0x4ecc1b._0x20d5b8,_0x4ecc1b._0x15bdb0,_0x4ecc1b._0x3b7256,0xe3)]('textDocument/didChange',{'textDocument':{'uri':uriForPath(_0x4ab936),'version':_0x941511},'contentChanges':[{'text':_0x412902}]});},async 'close'({path:_0x4ac683}){function _0x5659ce(_0x2d5109,_0x24a5de,_0x114aca,_0x2906a3){return _0x34a1f7(_0x114aca,_0x24a5de-0xb,_0x114aca-0x2d,_0x2906a3-0x5);}function _0x2a74c3(_0x45ac34,_0xe87882,_0x2033fd,_0x5be8fe){return _0x34a1f7(_0x2033fd,_0xe87882-0xf8,_0x2033fd-0x17,_0xe87882-0x34e);}_0x37039e[_0x5659ce(_0x180c92._0x31b29d,0x1af,_0x180c92._0x572771,0x19b)](_0x5659ce(_0x180c92._0x3e5ba4,0x383,_0x180c92._0xfb821d,_0x180c92._0x5c363f),{'textDocument':{'uri':uriForPath(_0x4ac683)}});}},'request':{async 'definition'(_0x3ae084){function _0x28bc75(_0x3870c0,_0x1baff4,_0x4fb09b,_0x4bbd95){return _0x34a1f7(_0x4fb09b,_0x1baff4-_0x31cfe6._0x23d2b2,_0x4fb09b-0x29,_0x3870c0- -0x11e);}return normalizeLocations(await _0x37039e[_0x28bc75(_0x55aeb3._0x2d8ecc,_0x55aeb3._0x25ea8a,0x180,0x139)]('textDocument/definition',textDocumentPosition(_0x3ae084)));},async 'references'(_0x4504c7){const _0x4d26c9={_0x6a2b52:0x1ce};function _0x2fa185(_0x5c8628,_0x330d8b,_0x44e1ff,_0x1093bf){return _0x34a1f7(_0x44e1ff,_0x330d8b-0x9a,_0x44e1ff-_0x4d26c9._0x6a2b52,_0x1093bf- -0x2dd);}return normalizeLocations(await _0x37039e['sendRequest'](_0x2fa185(-0x1c0,-_0x260ca4._0x7fa49e,-_0x260ca4._0x3fba57,-_0x260ca4._0x5c9b5d),{...textDocumentPosition(_0x4504c7),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0xc9dff3){function _0x24873d(_0x51578d,_0x299f9c,_0x21d88c,_0x16d96b){return _0x34a1f7(_0x21d88c,_0x299f9c-0x4a,_0x21d88c-0x8,_0x51578d- -_0x32df53._0x12b8d9);}return await _0x37039e[_0x24873d(-0x13d,-0x101,-0x213,-_0x537c33._0x575791)]('textDocument/hover',textDocumentPosition(_0xc9dff3))??null;},async 'documentSymbol'(_0x1656d2){const _0xaf1dfb={_0x2b2e4c:0x1e5};function _0x21b556(_0xf4050a,_0x551892,_0xec6e81,_0x3c5078){return _0x34a1f7(_0x3c5078,_0x551892-0xed,_0xec6e81-0x1da,_0xec6e81-_0xaf1dfb._0x2b2e4c);}return await _0x37039e['sendRequest'](_0x21b556(_0x164b66._0x1fc527,_0x164b66._0x5b25cb,_0x164b66._0x393781,0x298),{'textDocument':{'uri':uriForPath(_0x1656d2)}})??[];},async 'workspaceSymbol'(_0x1145c4){function _0x2f78db(_0x23891b,_0x576bfd,_0x2d7a00,_0x5f0304){return _0x480380(_0x23891b,_0x576bfd-_0x2d2e79._0x25ee0a,_0x576bfd-0x479,_0x5f0304-0x1f4);}function _0x405175(_0x4258f0,_0x3c071c,_0x134b75,_0x416d22){return _0x34a1f7(_0x416d22,_0x3c071c-0xd3,_0x134b75-_0x1d4df9._0x5eb8b3,_0x4258f0- -_0x1d4df9._0x22905e);}return await _0x37039e[_0x405175(_0x2e487c._0x520d23,_0x2e487c._0x11f154,_0x2e487c._0x55472f,_0x2e487c._0x4aff4a)](_0x405175(0x122,0xc4,-0x6,0x1bf),{'query':_0x1145c4})??[];},async 'implementation'(_0x1aff6a){const _0x3d8536={_0x2aa59a:0x1bd};function _0x671950(_0x44e5f4,_0x43f30d,_0x52ac43,_0x59a8b0){return _0x34a1f7(_0x52ac43,_0x43f30d-_0x3d8536._0x2aa59a,_0x52ac43-0x78,_0x43f30d- -0x101);}return normalizeLocations(await _0x37039e[_0x671950(0x58,_0x27eab6._0x457147,_0x27eab6._0x291fa5,-0x40)]('textDocument/implementation',textDocumentPosition(_0x1aff6a)));},async 'prepareCallHierarchy'(_0x5b79ee){function _0x2aafaf(_0x5706ad,_0x18f40c,_0x1a76b2,_0x550434){return _0x480380(_0x1a76b2,_0x18f40c-0xee,_0x5706ad-0x202,_0x550434-_0x1e2fca._0x2f0520);}function _0x26c252(_0x5a23c0,_0x16d3e9,_0x3bd70f,_0x549d1b){return _0x480380(_0x549d1b,_0x16d3e9-0x2e,_0x16d3e9-_0x42764._0x4a128c,_0x549d1b-0x142);}return await _0x37039e[_0x2aafaf(_0x306c91._0x4379f8,_0x306c91._0x14de7a,0xcb,0x1c8)](_0x2aafaf(_0x306c91._0x5cf8ca,0x1de,0x90,_0x306c91._0x59b311),textDocumentPosition(_0x5b79ee))??[];},async 'incomingCalls'(_0x4b11f2){const _0x2cd2f1={_0x13275e:0x3ef},_0x87499={_0x5b5fb9:0x158,_0x2aab28:0xda,_0x1ea8ab:0x89};function _0x165803(_0x169f59,_0x2aaf56,_0x534a6d,_0x5949bb){return _0x480380(_0x2aaf56,_0x2aaf56-_0x87499._0x5b5fb9,_0x534a6d-_0x87499._0x2aab28,_0x5949bb-_0x87499._0x1ea8ab);}function _0xda1b94(_0x3feb12,_0x1a8f50,_0x46b023,_0x2f29c8){return _0x34a1f7(_0x46b023,_0x1a8f50-0x15c,_0x46b023-0x1f4,_0x2f29c8-_0x2cd2f1._0x13275e);}return await _0x37039e[_0x165803(0x8e,_0x3517._0xfb007e,_0x3517._0x4ea988,_0x3517._0x5966f5)](_0x165803(_0x3517._0x463fad,0x5c,-_0x3517._0x4492c4,0x90),{'item':_0x4b11f2})??[];},async 'outgoingCalls'(_0x418ae6){const _0x18c93c={_0x3c600c:0x180,_0x435581:0xb5,_0x346d02:0x206};function _0x52f662(_0x5073ad,_0x185e30,_0x55bfe4,_0x554877){return _0x34a1f7(_0x554877,_0x185e30-_0x18c93c._0x3c600c,_0x55bfe4-_0x18c93c._0x435581,_0x5073ad- -_0x18c93c._0x346d02);}return await _0x37039e[_0x52f662(-0x6f,-0x1c,-0x170,_0x4e59c3._0xbca23a)]('callHierarchy/outgoingCalls',{'item':_0x418ae6})??[];}},'waitForDiagnostics'({path:_0x1fcd85,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x1504c9=uriForPath(_0x1fcd85);if(_0x130787['has'](_0x1504c9))return Promise['resolve']();return new Promise(_0x416c37=>{const _0xd84f8c={_0x171306:0xcc,_0x1f35fe:0x113,_0x565887:0x112,_0x42ee46:0x15e,_0x33cbae:0xb0,_0x3571db:0x5e},_0x528bec={_0x17b86f:0x176},_0x3d2b53=setTimeout(()=>{const _0x3b9c1d={_0x3ba352:0x2bb};function _0xc9114d(_0xed4c65,_0x38a861,_0x155f82,_0xf878c1){return _0x7ca6(_0x38a861- -_0x528bec._0x17b86f,_0xed4c65);}const _0x566cbc=_0x204e83[_0xc9114d(_0xd84f8c._0x171306,_0xd84f8c._0x1f35fe,0x1c8,_0xd84f8c._0x565887)](_0x1504c9);_0x566cbc?.[_0x124bca(-0x123,-_0xd84f8c._0x42ee46,_0xd84f8c._0x33cbae,-_0xd84f8c._0x3571db)](_0x70c441);function _0x124bca(_0x31ead7,_0x4c19dd,_0x4c1ed2,_0x3ab1d8){return _0x7ca6(_0x3ab1d8- -_0x3b9c1d._0x3ba352,_0x31ead7);}if(_0x566cbc?.['size']===0x0)_0x204e83['delete'](_0x1504c9);_0x416c37();},timeoutMs);function _0x38a4c8(_0x3b827c,_0x108ae7,_0x3670c9,_0x1dd4c9){return _0x7ca6(_0x108ae7- -0x142,_0x3b827c);}const _0x70c441=()=>{clearTimeout(_0x3d2b53),_0x416c37();},_0x23429c=_0x204e83[_0x38a4c8(0x17,_0x3c6a64._0x3be3c4,_0x3c6a64._0x8fb459,_0x3c6a64._0xd7e252)](_0x1504c9)??new Set();function _0xdd6d1e(_0x524d6d,_0x5c34fc,_0x5b31c3,_0x4ab8db){return _0x7ca6(_0x4ab8db- -0xe7,_0x5c34fc);}_0x23429c[_0x38a4c8(0x1ea,_0x3c6a64._0xc14c10,0x210,0x173)](_0x70c441),_0x204e83[_0xdd6d1e(0x5e,0x67,_0x3c6a64._0x2ab8f1,_0x3c6a64._0x5d8c27)](_0x1504c9,_0x23429c);});},async 'shutdown'(){const _0x74fb67={_0x5658c5:0x1d1},_0xe6cc67={_0x1db29e:0x3ea,_0x2b1c70:0x4f};if(_0x37897a)return;function _0x463a3d(_0x559211,_0x384b9a,_0x201e27,_0x7c4d33){return _0x480380(_0x201e27,_0x384b9a-0x3e,_0x559211-_0xe6cc67._0x1db29e,_0x7c4d33-_0xe6cc67._0x2b1c70);}function _0x234cc8(_0x54b2fe,_0x4e5507,_0x5e7e12,_0x515cbf){return _0x480380(_0x515cbf,_0x4e5507-0x182,_0x54b2fe- -0x109,_0x515cbf-_0x74fb67._0x5658c5);}_0x37897a=!![];try{await _0x37039e['sendRequest']('shutdown',null),_0x37039e['sendNotification'](_0x463a3d(0x48f,0x389,_0x3b6fc3._0x5751e9,0x4b1));}catch{}finally{_0x37039e[_0x234cc8(-_0x3b6fc3._0xf06f42,-0xbe,-0x120,-0x53)](),_0xee5810[_0x463a3d(0x364,_0x3b6fc3._0x52da76,0x405,0x241)]['process'][_0x463a3d(_0x3b6fc3._0x52886d,0x4c8,_0x3b6fc3._0x149ffb,_0x3b6fc3._0x2c5b33)]();}}};return _0x5ccee7;}import{spawn as _0x90b96e}from'child_process';import{access as _0x21fab9}from'fs/promises';import _0x2cc01b from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x4f41e5 from'os';import _0x5eec36 from'path';import _0x57933c from'which';var installPromises=new Map();function sanitizePackageName(_0x270a48){const _0x21d1e4={_0x12d8a7:0x3cf,_0x4882da:0xa7,_0xa9ae32:0x9b};function _0x32881b(_0x2b5202,_0x431ddc,_0x3f1a,_0x27aa8e){return _0x324926(_0x27aa8e-_0x21d1e4._0x12d8a7,_0x431ddc,_0x3f1a-_0x21d1e4._0x4882da,_0x27aa8e-_0x21d1e4._0xa9ae32);}return _0x270a48['replace'](/^@/,'')[_0x32881b(0x3c0,0x316,0x283,0x35a)](/[/]/g,'__');}function binaryNameForPlatform(_0x48ad52){const _0x2095ea={_0x5658d3:0x234,_0x3d19ce:0x305,_0x1cbbeb:0x2ca,_0x4973c4:0x210,_0x2eeec8:0x24a},_0x1ef3a9={_0x3045ba:0xaa,_0x4866d9:0x15a},_0x251a36={_0xe985e:0x114,_0x24699c:0x5f};function _0x248f85(_0x372d53,_0x3b2cba,_0x5b2c39,_0x3f6943){return _0x22ef16(_0x5b2c39,_0x3f6943-0xd3,_0x5b2c39-_0x251a36._0xe985e,_0x3f6943-_0x251a36._0x24699c);}function _0x196695(_0xb48797,_0x3e5358,_0xdcf0d9,_0x1d16d6){return _0x22ef16(_0xb48797,_0x3e5358-_0x1ef3a9._0x3045ba,_0xdcf0d9-_0x1ef3a9._0x4866d9,_0x1d16d6-0x7f);}return process[_0x248f85(_0x2095ea._0x5658d3,0x416,0x244,_0x2095ea._0x3d19ce)]===_0x196695(_0x2095ea._0x1cbbeb,0x3a6,0x39a,0x36d)?_0x48ad52+_0x196695(_0x2095ea._0x4973c4,0x1af,_0x2095ea._0x2eeec8,0x19d):_0x48ad52;}async function exists(_0x16f71c){try{return await access(_0x16f71c),!![];}catch{return![];}}function runNpmInstall(_0x200f5b,_0x4f548e,_0x4985a3){const _0x25675c={_0xfbdac1:0x3da,_0x3f9269:0x403,_0x4bbef7:0x3db,_0x1237ff:0x4e9,_0x23f319:0x469,_0x392ea3:0x25d,_0x27117a:0x3e4,_0x266b33:0x46e,_0x2a6e02:0x3a8,_0x4c2a9f:0x365,_0x21f257:0x410},_0x35321f={_0x32527d:0x28a};return new Promise(_0x5e71a6=>{const _0x572c3d={_0x49c2fd:0x18f};function _0x95acfc(_0x5002cc,_0x5e10b1,_0x11d9dc,_0x3cee47){return _0x7ca6(_0x5e10b1-_0x35321f._0x32527d,_0x3cee47);}function _0x523ae5(_0x1c1a92,_0x10c8b6,_0x133b6a,_0x1008af){return _0x7ca6(_0x133b6a-_0x572c3d._0x49c2fd,_0x1c1a92);}const _0x20b6b5=spawn(_0x523ae5(_0x25675c._0xfbdac1,_0x25675c._0x3f9269,_0x25675c._0x4bbef7,0x450),[_0x95acfc(0x406,0x44f,0x546,_0x25675c._0x1237ff),_0x95acfc(0x65c,0x534,_0x25675c._0x23f319,0x454),_0x200f5b,_0x4f548e],{'env':_0x4985a3,'stdio':_0x523ae5(_0x25675c._0x392ea3,_0x25675c._0x27117a,0x30f,0x288)});_0x20b6b5['on']('error',()=>_0x5e71a6(![])),_0x20b6b5['on'](_0x523ae5(_0x25675c._0x266b33,_0x25675c._0x2a6e02,_0x25675c._0x4c2a9f,_0x25675c._0x21f257),_0x44349f=>_0x5e71a6(_0x44349f===0x0));});}function shouldDisableLspDownload(_0x360743=process[_0x324926(0x14,-0x30,-0x47,-0x86)]){const _0x1536ee={_0x44112a:0x219,_0x3b1414:0xd7,_0x56a193:0xad,_0x368de6:0x9f,_0x371a19:0x240,_0x25caf8:0x2eb,_0x5f38fc:0x1fd,_0x29e033:0x2a9,_0x2f4e84:0x1b9,_0xf367ff:0x3a8},_0x1305db={_0x2640b7:0x202,_0x44bb5e:0x49},_0x2c5334={_0x38d980:0x77};function _0x41edcf(_0x47301a,_0x123819,_0x1147a9,_0x469438){return _0x22ef16(_0x47301a,_0x1147a9- -0x38e,_0x1147a9-_0x2c5334._0x38d980,_0x469438-0x23);}function _0x38fcea(_0x301455,_0x1a0db8,_0x2f8435,_0x1731a6){return _0x324926(_0x301455- -_0x1305db._0x2640b7,_0x1a0db8,_0x2f8435-_0x1305db._0x44bb5e,_0x1731a6-0x195);}const _0x5c4c0c=_0x360743[_0x38fcea(-0x316,-0x29f,-_0x1536ee._0x44112a,-0x21d)]?.[_0x41edcf(-_0x1536ee._0x3b1414,-_0x1536ee._0x56a193,-_0x1536ee._0x368de6,-0x92)]();return _0x5c4c0c===_0x41edcf(-_0x1536ee._0x371a19,-_0x1536ee._0x25caf8,-_0x1536ee._0x5f38fc,-0x242)||_0x5c4c0c==='1'||_0x5c4c0c===_0x38fcea(-_0x1536ee._0x29e033,-_0x1536ee._0x2f4e84,-_0x1536ee._0xf367ff,-0x325)||_0x5c4c0c==='on';}function getLspPackageDir(_0x37171a){const _0xa615bc={_0x3cedaf:0x62,_0x9ced43:0x158,_0x3322ed:0x18f,_0x5837fd:0x264,_0x2ec7f4:0x1f1,_0x2dddc5:0x4f,_0x23e4e3:0x133,_0x86c7c3:0x6d};function _0x578447(_0x5129cc,_0x54115e,_0x64ab17,_0x3671b1){return _0x22ef16(_0x54115e,_0x64ab17- -0x116,_0x64ab17-0x18,_0x3671b1-0x1de);}function _0x18561f(_0x45af2b,_0x1d2d65,_0x4f70fb,_0xa7175d){return _0x324926(_0x45af2b- -0x107,_0x4f70fb,_0x4f70fb-0x1c6,_0xa7175d-0x2a);}return _0x5eec36['join'](_0x4f41e5[_0x18561f(-_0xa615bc._0x3cedaf,-0x44,-_0xa615bc._0x9ced43,-0x132)](),_0x18561f(-_0xa615bc._0x3322ed,-0xc6,-_0xa615bc._0x5837fd,-_0xa615bc._0x2ec7f4),_0x18561f(-_0xa615bc._0x2dddc5,-0xa1,-_0xa615bc._0x23e4e3,-0x128),_0x18561f(-0x2f,-_0xa615bc._0x86c7c3,0xf0,0x5),sanitizePackageName(_0x37171a));}function getLspBinDir(_0x255fe1){const _0x403456={_0x1d03cd:0xe,_0x26323b:0x35d},_0x20d53c={_0x5198b4:0xa5},_0x5131e6={_0x40abd4:0x131,_0x1504b4:0xb4};function _0xda9ac0(_0x3c4836,_0x33c7ea,_0x379d1d,_0x4bebf7){return _0x22ef16(_0x3c4836,_0x4bebf7-_0x5131e6._0x40abd4,_0x379d1d-_0x5131e6._0x1504b4,_0x4bebf7-0x1d2);}function _0x356545(_0x1d06c2,_0x25d60f,_0x2f255a,_0x360be0){return _0x22ef16(_0x2f255a,_0x1d06c2- -0x11,_0x2f255a-_0x20d53c._0x5198b4,_0x360be0-0x130);}return _0x5eec36[_0x356545(0x13b,_0x403456._0x1d03cd,0xdd,0xd6)](getLspPackageDir(_0x255fe1),'node_modules',_0xda9ac0(0x345,_0x403456._0x26323b,0x2b4,0x34b));}async function findPackageBinary(_0x3d15d4,_0x5c2da1){const _0xef4e96={_0x4f313b:0x1df,_0x53a158:0x1a3,_0x758def:0x10f,_0x52188e:0x1ea,_0x5e8290:0x16a},_0x1c46bb={_0xa51646:0x2ee},_0x1f835c={_0x2b3ea4:0x20c};let _0x111152=_0x5eec36[_0xe6b608(_0xef4e96._0x4f313b,0x2b1,0x189,0x114)](_0x5c2da1);function _0xe6b608(_0x2a5205,_0x1a48c6,_0x5d445e,_0x55a163){return _0x324926(_0x2a5205-_0x1f835c._0x2b3ea4,_0x1a48c6,_0x5d445e-0x122,_0x55a163-0x18b);}function _0x476de6(_0x5ad527,_0x146af0,_0x541101,_0x2d615d){return _0x324926(_0x5ad527-_0x1c46bb._0xa51646,_0x146af0,_0x541101-0x4d,_0x2d615d-0x7f);}const _0x5716f7=binaryNameForPlatform(_0x3d15d4);while(!![]){const _0x5bfe46=_0x5eec36[_0xe6b608(0x15a,_0xef4e96._0x53a158,_0xef4e96._0x758def,0x15e)](_0x111152,_0xe6b608(0x274,0x2f5,_0xef4e96._0x52188e,0x22b),_0xe6b608(0x228,0x335,_0xef4e96._0x5e8290,0x2c7),_0x5716f7);if(await exists(_0x5bfe46))return _0x5bfe46;const _0x24dc8e=_0x5eec36['dirname'](_0x111152);if(_0x24dc8e===_0x111152)return void 0x0;_0x111152=_0x24dc8e;}}async function findPathBinary(_0x3a1f5a,_0x4fbb72){const _0x4ab9e6={_0x1ec66e:0x1b5,_0x1cea4d:0x59,_0x2a9046:0x244,_0x5cc0a5:0x21b,_0x16a8eb:0x16c},_0x9fcbe5={_0x50b2bf:0x6a},_0x43e129={_0x57f6a0:0x6b,_0x5eada8:0xb3},_0x2cdefa=getLspBinDir(_0x4fbb72);function _0x1665e0(_0x5ae834,_0x1df9c9,_0x26c529,_0x1a0267){return _0x22ef16(_0x1a0267,_0x1df9c9- -_0x43e129._0x57f6a0,_0x26c529-0x13f,_0x1a0267-_0x43e129._0x5eada8);}const _0x50c25a=[_0x2cdefa,process['env']['PATH']][_0x1665e0(_0x4ab9e6._0x1ec66e,0x26d,0x1da,0x28a)](Boolean)[_0x1665e0(0xe1,0xe1,_0x4ab9e6._0x1cea4d,0xd4)](_0x5eec36[_0x91c5a4(_0x4ab9e6._0x2a9046,_0x4ab9e6._0x5cc0a5,0x1df,_0x4ab9e6._0x16a8eb)]);function _0x91c5a4(_0x40dca6,_0x1fe175,_0x15f27c,_0x814746){return _0x22ef16(_0x814746,_0x15f27c-_0x9fcbe5._0x50b2bf,_0x15f27c-0x1d7,_0x814746-0x1e1);}try{return await _0x57933c(_0x3a1f5a,{'path':_0x50c25a});}catch{return void 0x0;}}async function resolvePackageBinary(_0xf38caa){const _0x7efe4e={_0xe182a0:0x48a,_0x11ea65:0x612,_0x35ed16:0x530,_0x413f0d:0x630,_0x41ba35:0x67b,_0x572c2b:0x582,_0x5516ff:0x3cd,_0x175ac4:0x4df,_0x444fbd:0x5d7,_0x3ca123:0x530,_0x294819:0x4c8,_0x40daf2:0x542,_0x1cf913:0x5fc,_0x22b1c0:0x570,_0x11e8c9:0x572,_0x523eba:0x42f,_0x24133e:0x5f1,_0xc524f7:0x45b,_0x3cbeaf:0x506,_0x3798db:0x546},_0x4375de={_0x509baa:0x5ea,_0x4dde5c:0x3ca,_0x32f02e:0x4e7,_0xb11c92:0x5a9,_0x3a67c8:0x612},_0x119ca0={_0x98f88f:0x18e,_0x12835d:0x5b,_0x18bb99:0xf0},_0x3f5c9e={_0x4a96d6:0x1b},_0x2f1e2c=_0xf38caa[_0x23d209(0x4ef,0x55e,0x427,_0x7efe4e._0xe182a0)]??_0xf38caa[_0x23d209(_0x7efe4e._0x11ea65,0x513,0x633,_0x7efe4e._0x35ed16)],_0x3e6ec2=await findPackageBinary(_0x2f1e2c,_0xf38caa[_0x23d209(_0x7efe4e._0x413f0d,_0x7efe4e._0x41ba35,0x63f,0x585)]);function _0x23d209(_0x4bdaaa,_0x29c9f1,_0x29e78a,_0x2badb6){return _0x22ef16(_0x4bdaaa,_0x2badb6-0x2cd,_0x29e78a-0x1d7,_0x2badb6-_0x3f5c9e._0x4a96d6);}function _0xd36a93(_0x1bfb6c,_0x129262,_0x860279,_0x55da5f){return _0x324926(_0x55da5f-_0x119ca0._0x98f88f,_0x1bfb6c,_0x860279-_0x119ca0._0x12835d,_0x55da5f-_0x119ca0._0x18bb99);}if(_0x3e6ec2)return _0x3e6ec2;const _0xa87901=await findPathBinary(_0x2f1e2c,_0xf38caa['packageName']);if(_0xa87901)return _0xa87901;const _0x518aef=_0xf38caa[_0xd36a93(0x11d,0x236,0x217,0x1a2)]??process[_0x23d209(_0x7efe4e._0x572c2b,0x5ea,_0x7efe4e._0x5516ff,_0x7efe4e._0x175ac4)];if(shouldDisableLspDownload(_0x518aef))return void 0x0;const _0x40e5f9=getLspPackageDir(_0xf38caa[_0x23d209(_0x7efe4e._0x444fbd,0x559,0x5f6,_0x7efe4e._0x3ca123)]),_0x3108e6=_0xf38caa[_0x23d209(_0x7efe4e._0x294819,0x604,_0x7efe4e._0x40daf2,0x530)]+':'+_0x2f1e2c;let _0x107039=installPromises[_0x23d209(_0x7efe4e._0x1cf913,_0x7efe4e._0x22b1c0,0x4e8,_0x7efe4e._0x11e8c9)](_0x3108e6);!_0x107039&&(_0x107039=((async()=>{const _0x439fbd={_0x5e50fa:0xb0,_0x5f46a4:0x13c,_0x43dc0e:0x1e8},_0x54cd24={_0x55817d:0x93,_0x2ab7e1:0x49};await mkdir(_0x40e5f9,{'recursive':!![]});const _0xf73af2=await runNpmInstall(_0x40e5f9,_0xf38caa[_0x14cd1d(0x4bc,0x4e7,_0x4375de._0x509baa,_0x4375de._0x4dde5c)],_0x518aef);if(!_0xf73af2)return void 0x0;const _0x13b505=_0x5eec36['join'](getLspBinDir(_0xf38caa[_0x14cd1d(0x4fc,_0x4375de._0x32f02e,_0x4375de._0xb11c92,_0x4375de._0x3a67c8)]),binaryNameForPlatform(_0x2f1e2c));function _0x14cd1d(_0x4f6021,_0xb81476,_0x564141,_0x46c8c7){return _0x23d209(_0x564141,_0xb81476-_0x54cd24._0x55817d,_0x564141-0x64,_0xb81476- -_0x54cd24._0x2ab7e1);}function _0x45c42e(_0x11b1b4,_0xa79b5e,_0xff3480,_0x3df9d9){return _0xd36a93(_0x11b1b4,_0xa79b5e-_0x439fbd._0x5e50fa,_0xff3480-_0x439fbd._0x5f46a4,_0xff3480-_0x439fbd._0x43dc0e);}return await exists(_0x13b505)?_0x13b505:void 0x0;})()),installPromises[_0x23d209(0x3ef,0x353,_0x7efe4e._0x523eba,0x3dc)](_0x3108e6,_0x107039));try{return await _0x107039;}catch{return void 0x0;}finally{installPromises[_0x23d209(_0x7efe4e._0x24133e,_0x7efe4e._0xc524f7,_0x7efe4e._0x3cbeaf,_0x7efe4e._0x3798db)](_0x3108e6);}}var TYPESCRIPT_EXTENSIONS=[_0x324926(0x6c,-0xd,0x71,0x5f),_0x22ef16(0x346,0x277,0x2fd,0x2ef),_0x324926(-0x79,0xf,-0x11a,0x33),_0x324926(0xcb,0x31,0x9c,0x36),_0x324926(-0x19,-0x2f,-0x35,-0x39),_0x22ef16(0x16b,0x159,0x60,0x1d1),'.mts',_0x324926(-0xc6,-0x196,-0xe7,-0x94)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x324926(0x47,-0xc9,-0xd2,0xac),'.jsonc'],TYPESCRIPT_ROOT_MARKERS=[_0x324926(0x70,0x115,-0x3e,0x12b),'bun.lockb',_0x324926(0xf7,0x204,0x68,0x57),_0x324926(-0x9d,-0xb6,-0x152,0x40),_0x22ef16(0x11e,0x11f,0x7b,0x143),_0x22ef16(0x1e3,0x235,0x2c5,0x1b4),_0x22ef16(0x192,0x21b,0x330,0x193),_0x22ef16(0x289,0x1dc,0xc0,0x30c)],BIOME_ROOT_MARKERS=[_0x22ef16(0x179,0x18c,0xdb,0x286),'biome.jsonc','package-lock.json',_0x22ef16(0x142,0x11a,0x23e,0x224),_0x22ef16(0x350,0x2f5,0x3c5,0x3ca),_0x22ef16(0x186,0x161,0x128,0xfd),_0x22ef16(-0x10,0x11f,0x179,0x1ca),_0x324926(-0x22,-0xf0,0xc0,-0x9c)];async function exists2(_0x4d6ffb){try{return await _0x21fab9(_0x4d6ffb),!![];}catch{return![];}}async function findUp(_0x5b2b92,_0x3cdcd8){const _0xbfb29d={_0x436104:0xc2,_0x36812a:0x1ad,_0xffe945:0xbc,_0x56a339:0x3fd,_0x5122c3:0x411,_0x123e64:0x352,_0x49fb6f:0x356,_0x3826ee:0x3e7,_0x1c0ae8:0x1a,_0x5c1015:0x248,_0x489e9d:0x357,_0x57d76c:0x356},_0x2ab485={_0x5c3f71:0x14f,_0x1ddd1d:0xfd},_0x32d807={_0x273096:0xeb};function _0x2c6c08(_0x1d950a,_0x4f8557,_0x46984c,_0x283a2b){return _0x22ef16(_0x283a2b,_0x46984c-0x227,_0x46984c-0xb5,_0x283a2b-_0x32d807._0x273096);}let _0x128dee=_0x2cc01b[_0x3ca21a(_0xbfb29d._0x436104,_0xbfb29d._0x36812a,_0xbfb29d._0xffe945,0x211)](_0x5b2b92);function _0x3ca21a(_0x52587c,_0xbcf2d3,_0x2cf94d,_0x2b0403){return _0x22ef16(_0x2b0403,_0xbcf2d3- -0x24,_0x2cf94d-_0x2ab485._0x5c3f71,_0x2b0403-_0x2ab485._0x1ddd1d);}const _0x312301=_0x2cc01b[_0x2c6c08(_0xbfb29d._0x56a339,0x35c,_0xbfb29d._0x5122c3,_0xbfb29d._0x123e64)](_0x128dee);if(_0x312301)_0x128dee=_0x2cc01b[_0x2c6c08(0x2a2,0x37a,_0xbfb29d._0x49fb6f,_0xbfb29d._0x3826ee)](_0x128dee);while(!![]){for(const _0x2260f0 of _0x3cdcd8){if(await exists2(_0x2cc01b[_0x3ca21a(_0xbfb29d._0x1c0ae8,0x128,0x5c,0x15a)](_0x128dee,_0x2260f0)))return _0x128dee;}const _0x108588=_0x2cc01b[_0x2c6c08(_0xbfb29d._0x5c1015,_0xbfb29d._0x489e9d,_0xbfb29d._0x57d76c,0x3ab)](_0x128dee);if(_0x108588===_0x128dee)return void 0x0;_0x128dee=_0x108588;}}async function hasDenoRoot(_0x1deef3){const _0x793087={_0x76c63:0x300,_0x384b81:0x436,_0x18407a:0x380},_0x2d3bf6={_0x6bf39d:0x5e},_0x50b115={_0x4201d0:0xf7,_0x3756ae:0xc6};function _0x2f822b(_0x192b50,_0xb747d8,_0x220404,_0x2ed328){return _0x22ef16(_0xb747d8,_0x2ed328-0x185,_0x220404-_0x50b115._0x4201d0,_0x2ed328-_0x50b115._0x3756ae);}function _0x331f9e(_0x5e6e29,_0x40fec8,_0x6350b7,_0x4ddb4a){return _0x324926(_0x4ddb4a-0x46c,_0x6350b7,_0x6350b7-0xab,_0x4ddb4a-_0x2d3bf6._0x6bf39d);}return await exists2(_0x2cc01b['join'](_0x1deef3,'deno.json'))||await exists2(_0x2cc01b[_0x331f9e(_0x793087._0x76c63,_0x793087._0x384b81,0x33a,0x3ba)](_0x1deef3,_0x2f822b(_0x793087._0x18407a,0x292,0x3d9,0x2d5)));}async function resolveTsserverPath(_0x54c93d){const _0x4da4c2={_0x3d879e:0x77,_0x1199eb:0x1ea,_0x5d3d72:0x1b5,_0x270426:0x1f3,_0x40686e:0x247,_0x5ece26:0x119,_0xcc0e5d:0x23,_0x2e3753:0x239,_0x50e3e4:0x1eb,_0x4d35fc:0x353,_0x1cfd4c:0xb5,_0x374b8e:0x1b9,_0x50e1eb:0x261,_0x3bafcd:0x2a3,_0x686df1:0x195,_0x2bbc3:0xae,_0x53b2f5:0x2c3},_0x5c78a0={_0x59a419:0x3a2};function _0x50f23a(_0xfae6f3,_0x3eb11d,_0x41cb26,_0x7899ad){return _0x324926(_0xfae6f3- -0x4a,_0x7899ad,_0x41cb26-0x42,_0x7899ad-0x1d2);}let _0x3cbd79=_0x2cc01b[_0x50f23a(-_0x4da4c2._0x3d879e,-0x17b,-0xa9,0x14)](_0x54c93d);while(!![]){const _0x50e6fd=_0x2cc01b['join'](_0x3cbd79,'node_modules','typescript',_0x523096(-_0x4da4c2._0x1199eb,-_0x4da4c2._0x5d3d72,-_0x4da4c2._0x270426,-_0x4da4c2._0x40686e),'tsserver.js');if(await exists2(_0x50e6fd))return _0x50e6fd;const _0x2936f5=_0x2cc01b[_0x50f23a(-_0x4da4c2._0x5ece26,-_0x4da4c2._0xcc0e5d,-0x23c,-_0x4da4c2._0x2e3753)](_0x3cbd79);if(_0x2936f5===_0x3cbd79)break;_0x3cbd79=_0x2936f5;}const _0x3352cd=getLspPackageDir('typescript'),_0x30a19c=await resolvePackageBinary({'packageName':'typescript','binaryName':'tsc','startDir':_0x54c93d});function _0x523096(_0x57d025,_0x492d43,_0x42bbda,_0x2ff0c0){return _0x22ef16(_0x2ff0c0,_0x492d43- -_0x5c78a0._0x59a419,_0x42bbda-0x10c,_0x2ff0c0-0x100);}if(!_0x30a19c)return void 0x0;const _0x5dbe29=_0x2cc01b[_0x523096(-_0x4da4c2._0x50e3e4,-0x256,-_0x4da4c2._0x4d35fc,-0x1e1)](_0x3352cd,'node_modules',_0x50f23a(-_0x4da4c2._0x1cfd4c,-0x111,-_0x4da4c2._0x374b8e,-0x3a),_0x523096(-_0x4da4c2._0x50e1eb,-0x1b5,-_0x4da4c2._0x3bafcd,-0x164),_0x523096(-_0x4da4c2._0x686df1,-0x1cc,-_0x4da4c2._0x2bbc3,-_0x4da4c2._0x53b2f5));return await exists2(_0x5dbe29)?_0x5dbe29:void 0x0;}var TypeScriptServer={'id':_0x324926(-0x6b,-0x51,-0x170,-0x11e),'name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0xe740c2){const _0x24e1ea=await findUp(_0xe740c2,TYPESCRIPT_ROOT_MARKERS);if(!_0x24e1ea)return void 0x0;return await hasDenoRoot(_0x24e1ea)?void 0x0:_0x24e1ea;},async 'spawn'(_0x50681e){const _0x316723={_0x1cccfb:0x243,_0x554598:0x36c,_0xf3a6a3:0x217,_0x578dae:0x300,_0x565f78:0x39f},_0x432c0e={_0x2d4416:0x14a,_0x445ff7:0x16f},_0x2ecef5={_0x5a5c18:0x158},_0xd784e1=await resolveTsserverPath(_0x50681e);if(!_0xd784e1)return void 0x0;function _0x38798d(_0x4bba2f,_0xf04ac8,_0x30311f,_0x1c7a0a){return _0x324926(_0xf04ac8-0x345,_0x1c7a0a,_0x30311f-0xc4,_0x1c7a0a-_0x2ecef5._0x5a5c18);}const _0x237c1c=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':'typescript-language-server','startDir':_0x50681e});if(!_0x237c1c)return void 0x0;function _0x5d4c00(_0x10a6e7,_0x3ad0b3,_0x454c89,_0xf3d85){return _0x22ef16(_0x454c89,_0x10a6e7-_0x432c0e._0x2d4416,_0x454c89-0x17e,_0xf3d85-_0x432c0e._0x445ff7);}return{'process':_0x90b96e(_0x237c1c,[_0x38798d(0x311,_0x316723._0x1cccfb,_0x316723._0x554598,0x36e)],{'cwd':_0x50681e,'stdio':_0x38798d(_0x316723._0xf3a6a3,_0x316723._0x578dae,0x398,_0x316723._0x565f78)}),'initialization':{'tsserver':{'path':_0xd784e1}}};}},BiomeServer={'id':'biome','name':_0x22ef16(0x184,0x14b,0xff,0x212),'extensions':BIOME_EXTENSIONS,async 'root'(_0xe534b6){return findUp(_0xe534b6,BIOME_ROOT_MARKERS);},async 'spawn'(_0x52dc09){const _0x3780f6={_0x8ae57:0x320,_0x17bd3f:0x31f,_0x201f48:0x2a1,_0x4398fa:0x1e7,_0x236dc6:0x2a0},_0x52d892={_0x2836e5:0x32b,_0x1ee772:0x95},_0x33c66a={_0x1b66a6:0x3a},_0xada86d=await findPackageBinary(_0x4fb32e(0x2da,_0x3780f6._0x8ae57,0x3cd,_0x3780f6._0x17bd3f),_0x52dc09)??await resolvePackageBinary({'packageName':_0x46d4ba(0x3cd,_0x3780f6._0x201f48,0x1c1,_0x3780f6._0x4398fa),'binaryName':'biome','startDir':_0x52dc09});if(!_0xada86d)return void 0x0;function _0x46d4ba(_0x4447ad,_0x3f2d5f,_0x4c51ec,_0x26a496){return _0x324926(_0x3f2d5f-0x39b,_0x4c51ec,_0x4c51ec-_0x33c66a._0x1b66a6,_0x26a496-0x115);}function _0x4fb32e(_0x53bcda,_0x527756,_0x142049,_0x388a30){return _0x324926(_0x53bcda-_0x52d892._0x2836e5,_0x142049,_0x142049-0x1b4,_0x388a30-_0x52d892._0x1ee772);}return{'process':_0x90b96e(_0xada86d,[_0x4fb32e(_0x3780f6._0x236dc6,0x37b,0x3c6,0x2af),'--stdio'],{'cwd':_0x52dc09,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x2f9c03){const _0x1ef760={_0xd827ae:0x15c,_0x320632:0x5bf,_0x4fb502:0x586,_0x225202:0x4de,_0x33fab1:0x476,_0x1c65f5:0x56f},_0x42b33c={_0xd9358f:0x78};function _0x16985b(_0x221ec6,_0x344e0e,_0x360b46,_0x35a1ed){return _0x22ef16(_0x344e0e,_0x35a1ed- -0x8e,_0x360b46-_0x42b33c._0xd9358f,_0x35a1ed-0x187);}function _0x5bea87(_0x411e02,_0x4c8214,_0x22308f,_0x548c78){return _0x22ef16(_0x4c8214,_0x548c78-0x297,_0x22308f-0xff,_0x548c78-0x109);}const _0x3c7caf=_0x2cc01b[_0x16985b(0x21d,0x275,0x257,_0x1ef760._0xd827ae)](_0x2f9c03)[_0x5bea87(_0x1ef760._0x320632,0x534,0x65b,_0x1ef760._0x4fb502)]();return BUILTIN_LSP_SERVERS[_0x5bea87(_0x1ef760._0x225202,_0x1ef760._0x33fab1,0x4b0,_0x1ef760._0x1c65f5)](_0x52976c=>_0x52976c[_0x16985b(0x228,0x121,0x13d,0x1b9)]['includes'](_0x3c7caf));}function stateKey(_0xb29a71,_0x4f4355){return _0x4f4355+':'+_0xb29a71['id'];}function diagnosticsKeyToPath(_0x16c9da){const _0x25cca3={_0x19da58:0x5fd,_0x31d1f4:0x644,_0x5d9772:0x544},_0x3ecbda={_0x201193:0x4ac},_0x37f2ad={_0x14a725:0x37a};function _0xb360f0(_0x3b8642,_0x4f21bf,_0x4096cd,_0x42701b){return _0x22ef16(_0x4f21bf,_0x4096cd-_0x37f2ad._0x14a725,_0x4096cd-0x7,_0x42701b-0x1d5);}function _0x430dee(_0x2afa98,_0x1b9e79,_0x195ce5,_0x47e15d){return _0x324926(_0x47e15d-_0x3ecbda._0x201193,_0x2afa98,_0x195ce5-0x1ab,_0x47e15d-0xc2);}if(!_0x16c9da[_0xb360f0(_0x25cca3._0x19da58,0x5e1,_0x25cca3._0x31d1f4,0x63c)](_0xb360f0(_0x25cca3._0x5d9772,0x33e,0x44c,0x342)))return _0x16c9da;return fileURLToPath(_0x16c9da);}function nextFileVersion(_0x1bb28f,_0x53ddc9){const _0x5862d9={_0x3ec64b:0x1ea,_0x43408d:0x230,_0x567dba:0x2c9,_0x1e5fd5:0x2b1,_0x51563e:0x267},_0x3eaf75={_0xf8c92b:0x144},_0x6dc0f0={_0x1a5ece:0x1c0,_0x176731:0xcc};function _0x39a60a(_0x2ec6cb,_0x5dd6c1,_0x468f20,_0x56aeed){return _0x324926(_0x5dd6c1-_0x6dc0f0._0x1a5ece,_0x2ec6cb,_0x468f20-_0x6dc0f0._0x176731,_0x56aeed-0x9e);}function _0x5810a7(_0x382415,_0x56cc73,_0x1422f7,_0x51d79a){return _0x22ef16(_0x56cc73,_0x1422f7- -0x43,_0x1422f7-0x150,_0x51d79a-_0x3eaf75._0xf8c92b);}const _0x37f26b=(_0x1bb28f[_0x5810a7(_0x5862d9._0x3ec64b,_0x5862d9._0x43408d,_0x5862d9._0x567dba,_0x5862d9._0x1e5fd5)][_0x39a60a(0x172,_0x5862d9._0x51563e,0x1cd,0x2cc)](_0x53ddc9)??0x1)+0x1;return _0x1bb28f[_0x39a60a(0x2e4,0x2ce,0x3cb,0x1ce)]['set'](_0x53ddc9,_0x37f26b),_0x37f26b;}async function collectClientResults(_0x206023){const _0x28c091={_0x2e22e1:0x39d,_0x35f571:0x2dc,_0x3a8439:0x3a1},_0x6b31f3={_0x366042:0x45,_0x3bbc44:0xd0};function _0x18a851(_0xc7836b,_0x47926d,_0x3f9e16,_0x5bc93d){return _0x324926(_0x47926d-0x2b7,_0x3f9e16,_0x3f9e16-0x169,_0x5bc93d-0xff);}function _0x46fb5b(_0x31fbe3,_0xf5ca36,_0x3013d0,_0x37c981){return _0x22ef16(_0x37c981,_0x3013d0-_0x6b31f3._0x366042,_0x3013d0-_0x6b31f3._0x3bbc44,_0x37c981-0x1f2);}const _0x520041=await Promise[_0x18a851(_0x28c091._0x2e22e1,_0x28c091._0x35f571,0x357,_0x28c091._0x3a8439)](_0x206023);return _0x520041['flatMap'](_0x5f42ab=>_0x5f42ab[_0x46fb5b(0x350,0x25c,0x25d,0x313)]==='fulfilled'?_0x5f42ab[_0x18a851(0x1d9,0x2a0,0x32d,0x28e)]:[]);}function createLspService(_0x42a963={}){const _0xeff26f={_0x41aec1:0x48d,_0x31079e:0x667,_0x1dc6be:0x678},_0x1b01a0={_0xadb524:0x4e1,_0x41a301:0x3eb,_0x4cf621:0x4e1,_0x64d074:0x5d0,_0x18d99f:0x160,_0x160c1f:0x23d,_0x26761c:0x2fc,_0x44b6b3:0x68,_0x1fad20:0x67,_0xc41da6:0x8d,_0x4ea9d8:0x4c4,_0x427bd7:0x41b,_0x4f85d3:0x185,_0x598027:0x96,_0x5206c3:0x23e,_0x567274:0x4f4,_0x2ed02f:0x125,_0x184c7b:0x414,_0x3125e5:0x4c8,_0x1f5112:0x3e4},_0x1e45dd={_0x24f21b:0x56a},_0xbea5c8={_0x4e2450:0x47,_0x3a5b02:0x4a,_0x1bade3:0x81},_0x3c2a5a={_0x4a41eb:0x178},_0x36c38f={_0x324660:0x8f,_0x563511:0x85},_0xdb170c={_0x2e8f9d:0xeb,_0x4e2eae:0x16b,_0x451218:0x34},_0x1fc47e={_0x1d6682:0x81,_0x2174b2:0x3e4,_0xd374ee:0x12e},_0x12d678={_0x5c8037:0x264,_0x100be3:0x3ff,_0xc8982d:0xb3,_0x2f6693:0xad},_0x283e13={_0x54694b:0x15d},_0x393513={_0x2a7145:0x448,_0x26a040:0x442},_0x11464a={_0x3c0117:0x60},_0x1f3513={_0x433ad4:0x33f,_0x5bf74c:0x423,_0x2bb65e:0x28e},_0x4bc9aa={_0x3052a6:0x19e},_0x282e31={_0x12b2b9:0x550},_0x418634={_0x1cd5e8:0x94},_0x5bc38e={_0x482f5a:0x465,_0x30bb5f:0x2ec,_0x46ea40:0x508,_0x4d86df:0x3ff},_0x1f3a8d={_0x1cb595:0x194,_0xde346d:0x13f,_0x5bf7e0:0x7a},_0x1aa1f1={_0x5dfe8d:0xde,_0x11a7c1:0x103},_0x506d9d={_0x1d8bd5:0x522,_0x5777ac:0x483,_0x3050fc:0x44d},_0x19d5bc={_0x61dca8:0x1e1,_0x2be7d8:0x118},_0x2eccf1={_0x2c2fa2:0x249,_0x369025:0x153},_0x5d1fe6={_0x2e756c:0x17a,_0x5b3adf:0xc9},_0x5069aa={_0x3f4887:0xc},_0x3754da={_0x4e730b:0x56},_0x24ca2f={_0x59facf:0x28a},_0x9cf772={_0x2dbf01:0x52f,_0x256f49:0x665,_0x429f5f:0x5e4,_0x1f4b6b:0x543},_0x2e1b47={_0x4965da:0x293,_0x6a641b:0x1e4,_0x1dc423:0x4a,_0x2d5816:0x16b,_0x9c2bfa:0x167,_0x41973d:0x102,_0x3a9903:0x201,_0x75c951:0x195,_0x4f446f:0x23a,_0x5c4904:0xa1,_0x37f7dd:0x19,_0x4177e5:0xe1,_0x433f2f:0x17a,_0x1d9954:0x188,_0x32c88c:0x38,_0x10c3e1:0x167,_0x333746:0x17c},_0x1f19d7={_0x5dde3b:0x27,_0x5dfa52:0x162,_0x4762d3:0x40},_0x5b0367={_0x35b00f:0x204,_0xe97b9c:0x1ed,_0x2b320f:0x214,_0x543124:0x39,_0x3e65ab:0x90,_0x2affc0:0x133,_0x139ec9:0x1ec,_0x44be22:0x201,_0x19e43d:0x149},_0x360b26={_0x523b33:0x37a,_0x3272ba:0x74},_0x86bba7={_0x13fd76:0x148,_0x40ca2a:0x43,_0x2a4ddf:0x21c,_0x404262:0x5a7,_0x395673:0x57f,_0x192921:0x445,_0x1c06ca:0xef,_0x571eb2:0x1f0,_0x14c82a:0x31b,_0x360b5e:0x3e6,_0xb56aee:0x3b3,_0x31c0b8:0x39b},_0x419514={_0x55b927:0x307},_0x26392d={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x1541fc=()=>_0x42a963[_0x45dad1(0x592,0x4ac,0x3e0,0x4b4)]!==![];async function _0x5f5b9e(_0x3acbdc,_0x1f27fc){const _0x48e3cd={_0x473890:0x2a7,_0x13f8b3:0x2d5,_0x3cafab:0x3c7,_0x5848c4:0xc8,_0x40f817:0x4a,_0x356788:0x164,_0x48664c:0x136,_0x5c4f4b:0x1ae,_0x196758:0x2dc,_0xc3712b:0x391,_0x32ac35:0x440,_0x2af3d9:0xe9,_0x533334:0x149,_0x58a27:0x123,_0x3fb81b:0x58,_0x276603:0x52,_0x40f671:0x95,_0x242e89:0x300,_0x581b3d:0x312,_0x2b3d84:0x481,_0x196b25:0x2f,_0x1d2573:0xae,_0x5b2c52:0x19d},_0x19d39b={_0x45d08d:0x95,_0x3da21b:0x8b,_0x55e0db:0x2a},_0x1a78b4=stateKey(_0x3acbdc,_0x1f27fc),_0x38f93f=_0x26392d[_0x4100a2(0xd7,0x103,-0x2d,_0x86bba7._0x13fd76)][_0x4100a2(_0x86bba7._0x40ca2a,0x108,0x19e,_0x86bba7._0x2a4ddf)](_0x9baabb=>_0x9baabb[_0x4100a2(-0x77,0x7c,0x136,-0xe)]===_0x3acbdc['id']&&_0x9baabb['root']===_0x1f27fc);if(_0x38f93f)return _0x38f93f;function _0xf17010(_0x27bfb7,_0x578205,_0x1c1df8,_0x307497){return _0x45dad1(_0x27bfb7-_0x19d39b._0x45d08d,_0x1c1df8-_0x19d39b._0x3da21b,_0x307497,_0x307497-_0x19d39b._0x55e0db);}if(_0x26392d[_0xf17010(_0x86bba7._0x404262,_0x86bba7._0x395673,0x482,_0x86bba7._0x192921)][_0xf17010(0x44f,0x35e,0x414,0x405)](_0x1a78b4))return void 0x0;function _0x4100a2(_0x519333,_0x549fbf,_0x4d500f,_0x4bc58d){return _0x45dad1(_0x519333-0x1af,_0x549fbf- -_0x419514._0x55b927,_0x4d500f,_0x4bc58d-0xe3);}const _0x4437bf=_0x26392d[_0x4100a2(_0x86bba7._0x1c06ca,_0x86bba7._0x571eb2,0x29a,0x25f)]['get'](_0x1a78b4);if(_0x4437bf)return _0x4437bf;const _0x118e9e=((async()=>{const _0x730776={_0x59c7da:0x9a,_0x597606:0x16b,_0x24936c:0x5cb},_0x1fb50b={_0x1af80e:0x1be};function _0x136e14(_0x453f0d,_0x47958d,_0x142d8a,_0x44827a){return _0xf17010(_0x453f0d-0x104,_0x47958d-0x190,_0x453f0d- -_0x1fb50b._0x1af80e,_0x44827a);}function _0x2eb64c(_0x5ca8a6,_0x5e93fd,_0x2cd1b1,_0x357626){return _0xf17010(_0x5ca8a6-_0x730776._0x59c7da,_0x5e93fd-_0x730776._0x597606,_0x5e93fd- -_0x730776._0x24936c,_0x5ca8a6);}try{const _0x2f1319=await _0x3acbdc[_0x136e14(0x3b8,_0x48e3cd._0x473890,_0x48e3cd._0x13f8b3,_0x48e3cd._0x3cafab)](_0x1f27fc);if(!_0x2f1319)return _0x26392d['broken'][_0x2eb64c(0x3e,-0x2d,_0x48e3cd._0x5848c4,-_0x48e3cd._0x40f817)](_0x1a78b4),void 0x0;const _0x368118=await createLspClient({'server':_0x3acbdc,'root':_0x1f27fc,'handle':_0x2f1319}),_0x2c5c5c=_0x26392d[_0x2eb64c(-_0x48e3cd._0x356788,-_0x48e3cd._0x48664c,-_0x48e3cd._0x5c4f4b,-0x217)][_0x136e14(_0x48e3cd._0x196758,0x2c2,_0x48e3cd._0xc3712b,_0x48e3cd._0x3cafab)](_0x2f03f6=>_0x2f03f6[_0x2eb64c(-0x2bf,-0x1bd,-0x129,-0x27f)]===_0x3acbdc['id']&&_0x2f03f6[_0x136e14(0x211,0xea,0x1fe,0x1a7)]===_0x1f27fc);if(_0x2c5c5c)return await _0x368118['shutdown'](),_0x2c5c5c;return _0x26392d['clients'][_0x136e14(0x390,_0x48e3cd._0x32ac35,0x3da,0x269)](_0x368118),_0x368118;}catch{return _0x26392d[_0x2eb64c(-_0x48e3cd._0x2af3d9,-_0x48e3cd._0x533334,-_0x48e3cd._0x58a27,-_0x48e3cd._0x3fb81b)][_0x2eb64c(-_0x48e3cd._0x276603,-0x2d,0x51,_0x48e3cd._0x40f671)](_0x1a78b4),void 0x0;}finally{_0x26392d[_0x136e14(0x3c4,_0x48e3cd._0x242e89,_0x48e3cd._0x581b3d,_0x48e3cd._0x2b3d84)][_0x2eb64c(-_0x48e3cd._0x196b25,-_0x48e3cd._0x1d2573,-_0x48e3cd._0x5b2c52,0x5d)](_0x1a78b4);}})());return _0x26392d['spawning'][_0xf17010(_0x86bba7._0x14c82a,_0x86bba7._0x360b5e,_0x86bba7._0xb56aee,_0x86bba7._0x31c0b8)](_0x1a78b4,_0x118e9e),_0x118e9e;}async function _0x276e61(_0x2f7ffb,_0x4ea6b7){if(!_0x1541fc())return[];function _0x12af55(_0x2d246c,_0x154d6d,_0x5930b4,_0x121749){return _0x45dad1(_0x2d246c-0xf9,_0x5930b4- -_0x360b26._0x523b33,_0x121749,_0x121749-_0x360b26._0x3272ba);}const _0x19eedc=[];function _0x4f54b2(_0x47760c,_0x40bdcc,_0x5e5e17,_0x571737){return _0x45dad1(_0x47760c-0xd4,_0x47760c- -0x5fb,_0x5e5e17,_0x571737-0x145);}for(const _0x6872db of getServersForFile(_0x2f7ffb)){const _0x37b10e=await _0x6872db['root'](_0x2f7ffb);if(!_0x37b10e)continue;const _0x2db4e9=stateKey(_0x6872db,_0x37b10e);if(_0x26392d[_0x4f54b2(-_0x5b0367._0x35b00f,-0xea,-_0x5b0367._0xe97b9c,-_0x5b0367._0x2b320f)]['has'](_0x2db4e9))continue;const _0xad49cc=_0x26392d[_0x12af55(-0x65,_0x5b0367._0x543124,_0x5b0367._0x3e65ab,_0x5b0367._0x2affc0)][_0x4f54b2(-_0x5b0367._0x139ec9,-0xcd,-_0x5b0367._0x44be22,-0x1c3)](_0x1a3ad5=>_0x1a3ad5[_0x4f54b2(-0x278,-0x22c,-0x28c,-0x2c1)]===_0x6872db['id']&&_0x1a3ad5['root']===_0x37b10e);if(_0xad49cc){_0x19eedc['push'](_0xad49cc);continue;}if(!_0x4ea6b7)continue;const _0x30fc43=await _0x5f5b9e(_0x6872db,_0x37b10e);if(_0x30fc43)_0x19eedc[_0x12af55(0x8e,0x1c,_0x5b0367._0x19e43d,0xd4)](_0x30fc43);}return _0x19eedc;}async function _0x1205d3(_0x41503c,_0x538be7=![]){const _0xd018b0={_0x45b49a:0xd0,_0x43456d:0x119},_0x418e85={_0x490937:0xbb};function _0x1034de(_0x500377,_0x229162,_0x489383,_0x1d5bbc){return _0x45dad1(_0x500377-_0x1f19d7._0x5dde3b,_0x489383- -_0x1f19d7._0x5dfa52,_0x500377,_0x1d5bbc-_0x1f19d7._0x4762d3);}function _0x4d0d8c(_0x327f87,_0x581b34,_0x2eddbc,_0x198f94){return _0x45dad1(_0x327f87-0x1da,_0x327f87-0x66,_0x198f94,_0x198f94-_0x418e85._0x490937);}const _0x128799=await _0x276e61(_0x41503c,!![]);await Promise[_0x4d0d8c(0x568,_0x9cf772._0x2dbf01,_0x9cf772._0x256f49,_0x9cf772._0x429f5f)](_0x128799[_0x4d0d8c(_0x9cf772._0x1f4b6b,0x511,0x649,0x656)](async _0xc6fe41=>{const _0x17e08c={_0x485d6f:0x16c};function _0x49034b(_0x160a23,_0x1034d4,_0x216d73,_0x47d11e){return _0x1034de(_0x160a23,_0x1034d4-_0xd018b0._0x45b49a,_0x47d11e- -0x43,_0x47d11e-_0xd018b0._0x43456d);}function _0x4d7bf3(_0x15512e,_0x1067c4,_0x9d8ad4,_0x1c682f){return _0x1034de(_0x1c682f,_0x1067c4-_0x17e08c._0x485d6f,_0x1067c4- -0x229,_0x1c682f-0x69);}!_0x26392d['openFiles'][_0x49034b(0x130,0xc9,_0x2e1b47._0x4965da,_0x2e1b47._0x6a641b)](_0xc6fe41['serverId']+':'+_0xc6fe41[_0x4d7bf3(-0xfd,-0x47,-_0x2e1b47._0x1dc423,-_0x2e1b47._0x2d5816)]+':'+_0x41503c)&&(await _0xc6fe41[_0x4d7bf3(0x1dd,_0x2e1b47._0x9c2bfa,0x86,_0x2e1b47._0x41973d)][_0x49034b(_0x2e1b47._0x3a9903,_0x2e1b47._0x75c951,0x172,_0x2e1b47._0x4f446f)]({'path':_0x41503c}),_0x26392d[_0x4d7bf3(-_0x2e1b47._0x5c4904,_0x2e1b47._0x37f7dd,-_0x2e1b47._0x4177e5,-0x90)][_0x4d7bf3(_0x2e1b47._0x433f2f,_0x2e1b47._0x1d9954,0x181,0x145)](_0xc6fe41['serverId']+':'+_0xc6fe41[_0x4d7bf3(0x64,-0x47,-_0x2e1b47._0x32c88c,-0xb1)]+':'+_0x41503c));await _0xc6fe41[_0x4d7bf3(0x154,_0x2e1b47._0x10c3e1,0x1e9,0x194)]['change']({'path':_0x41503c,'version':nextFileVersion(_0x26392d,_0x41503c)});if(_0x538be7)await _0xc6fe41[_0x49034b(0x131,0x75,0x157,_0x2e1b47._0x333746)]({'path':_0x41503c});}));}async function _0x5d0501(_0x430a66){await _0x1205d3(_0x430a66['file'],![]);function _0xfb150c(_0x3b33ef,_0x2e4478,_0x2d1a28,_0x3ae5a0){return _0x45dad1(_0x3b33ef-0x91,_0x3b33ef- -0x217,_0x3ae5a0,_0x3ae5a0-0x2a);}return _0x276e61(_0x430a66[_0xfb150c(_0x24ca2f._0x59facf,0x380,0x1d2,0x2a8)],![]);}function _0x45dad1(_0x262c48,_0x47e7f7,_0x2eda7f,_0x15b27c){return _0x324926(_0x47e7f7-0x417,_0x2eda7f,_0x2eda7f-_0x3754da._0x4e730b,_0x15b27c-0x6f);}async function _0x112eba(_0x2dc00b){const _0x4378bc={_0x5c1e60:0x317};function _0x26f054(_0x3eecd2,_0xa6e526,_0x3cf7f2,_0x1a11f8){return _0x45dad1(_0x3eecd2-0xfd,_0x3cf7f2- -_0x4378bc._0x5c1e60,_0xa6e526,_0x1a11f8-0x180);}const _0x246185=await _0x5d0501(_0x2dc00b);function _0x53ddd7(_0x16792b,_0x41fdb8,_0x4c7c35,_0x44151f){return _0x45dad1(_0x16792b-0xa9,_0x4c7c35- -0x2bb,_0x16792b,_0x44151f-_0x5069aa._0x3f4887);}return collectClientResults(_0x246185[_0x26f054(_0x5d1fe6._0x2e756c,_0x5d1fe6._0x5b3adf,0x1c6,0x1a0)](_0x35dd11=>_0x35dd11[_0x26f054(-0x72,0x3e,0x25,0x9)][_0x26f054(-0xf3,-0x4d,0x38,-0x81)](_0x2dc00b)));}return{'isEnabled':_0x1541fc,async 'hasClients'(_0x13f4c8){const _0x54425b={_0x633fca:0x145};function _0x35220f(_0x2cf255,_0x23041f,_0x24a08a,_0x394be7){return _0x45dad1(_0x2cf255-0x22,_0x24a08a- -0x28c,_0x394be7,_0x394be7-_0x54425b._0x633fca);}return(await _0x276e61(_0x13f4c8,![]))[_0x35220f(0x296,_0x2eccf1._0x2c2fa2,0x197,_0x2eccf1._0x369025)]>0x0||getServersForFile(_0x13f4c8)['length']>0x0;},'touchFile':_0x1205d3,async 'diagnostics'(){const _0x5c3fd9={};for(const _0x5956dd of _0x26392d[_0x4916a4(_0x506d9d._0x1d8bd5,_0x506d9d._0x5777ac,0x46f,_0x506d9d._0x3050fc)]){for(const [_0x42f23b,_0x34fdf2]of _0x5956dd['diagnostics']){_0x5c3fd9[diagnosticsKeyToPath(_0x42f23b)]=_0x34fdf2;}}function _0x4916a4(_0x1a5c21,_0x4414bb,_0x4a61cd,_0xfa17cc){return _0x45dad1(_0x1a5c21-_0x19d5bc._0x61dca8,_0x1a5c21-_0x19d5bc._0x2be7d8,_0xfa17cc,_0xfa17cc-0x68);}return _0x5c3fd9;},async 'diagnosticsForFile'(_0x4632f9){function _0x511c72(_0x1b2745,_0x38a8a4,_0x3dacc2,_0x49d6aa){return _0x45dad1(_0x1b2745-_0x1aa1f1._0x5dfe8d,_0x38a8a4-0x26,_0x49d6aa,_0x49d6aa-_0x1aa1f1._0x11a7c1);}function _0x4f1f28(_0xf68230,_0x1c4dbf,_0x5a9a9b,_0x3832b0){return _0x45dad1(_0xf68230-_0x1f3a8d._0x1cb595,_0xf68230- -_0x1f3a8d._0xde346d,_0x1c4dbf,_0x3832b0-_0x1f3a8d._0x5bf7e0);}await _0x1205d3(_0x4632f9,!![]);const _0x284e5c=[];for(const _0x191c1d of await _0x276e61(_0x4632f9,![])){for(const [_0x10792d,_0x59e3d6]of _0x191c1d[_0x4f1f28(0x3a7,_0x5bc38e._0x482f5a,_0x5bc38e._0x30bb5f,0x3ee)]){if(diagnosticsKeyToPath(_0x10792d)===_0x4632f9)_0x284e5c[_0x511c72(0x54a,0x4e9,_0x5bc38e._0x46ea40,_0x5bc38e._0x4d86df)](..._0x59e3d6);}}return _0x284e5c;},async 'definition'(_0x594c1e){function _0x36f9e8(_0x1b664d,_0x1ed449,_0x24787d,_0xd8c6b7){return _0x45dad1(_0x1b664d-_0x418634._0x1cd5e8,_0x24787d- -0x53e,_0x1b664d,_0xd8c6b7-0x162);}function _0x12230b(_0x305a9e,_0xaa213a,_0x25be2a,_0x45dcda){return _0x45dad1(_0x305a9e-0x148,_0x45dcda-0x187,_0x305a9e,_0x45dcda-0x1e0);}return collectClientResults((await _0x5d0501(_0x594c1e))[_0x12230b(0x75b,0x65e,_0x282e31._0x12b2b9,0x664)](_0x31ac4b=>_0x31ac4b[_0x36f9e8(-0xd4,-0x236,-0x202,-0x200)]['definition'](_0x594c1e)));},async 'references'(_0x1d729f){const _0x1127e1={_0x3db3dd:0xac,_0x2b5826:0x44e};function _0x582a84(_0x369c49,_0x11acdd,_0x1940a7,_0x554bcf){return _0x45dad1(_0x369c49-_0x1127e1._0x3db3dd,_0x1940a7- -_0x1127e1._0x2b5826,_0x11acdd,_0x554bcf-0x18d);}function _0x5df2b8(_0x445a76,_0x354fa6,_0x1a0214,_0x1edff7){return _0x45dad1(_0x445a76-0x192,_0x445a76- -_0x4bc9aa._0x3052a6,_0x1a0214,_0x1edff7-0x159);}return collectClientResults((await _0x5d0501(_0x1d729f))[_0x5df2b8(_0x1f3513._0x433ad4,_0x1f3513._0x5bf74c,0x24c,_0x1f3513._0x2bb65e)](_0x5007b2=>_0x5007b2[_0x582a84(-0xf9,-0x97,-0x112,-0xa6)]['references'](_0x1d729f)));},async 'hover'(_0xeaf960){const _0x3deb07={_0x5d7833:0xb6,_0x4b9c63:0x16},_0x4dbe31=await Promise[_0x5aeca6(_0x393513._0x2a7145,_0x393513._0x26a040,0x3c3,0x49b)]((await _0x5d0501(_0xeaf960))[_0x3fe87a(0x53d,0x667,0x455,0x4c7)](_0x21ceb3=>_0x21ceb3[_0x5aeca6(0x34c,0x4bd,0x3e3,0x39b)][_0x5aeca6(0x588,0x57f,0x4a9,0x4ca)](_0xeaf960)));function _0x5aeca6(_0x1c2521,_0x16071d,_0x5d6cdf,_0x50d669){return _0x45dad1(_0x1c2521-_0x3deb07._0x5d7833,_0x50d669-0x5f,_0x1c2521,_0x50d669-_0x3deb07._0x4b9c63);}function _0x3fe87a(_0x1e6e9f,_0x2051f3,_0x59328e,_0x453bfb){return _0x45dad1(_0x1e6e9f-0x190,_0x1e6e9f-_0x11464a._0x3c0117,_0x59328e,_0x453bfb-0x51);}return _0x4dbe31['flatMap'](_0x278ef9=>_0x278ef9[_0x3fe87a(0x491,0x4db,0x398,0x436)]===_0x3fe87a(0x508,0x50e,0x486,0x524)&&_0x278ef9[_0x3fe87a(0x460,0x335,0x3ff,0x53d)]?[_0x278ef9['value']]:[]);},async 'documentSymbol'(_0x3638b5){await _0x1205d3(_0x3638b5,![]);function _0x51210c(_0x2117ec,_0x3e55d2,_0x54ee3f,_0x2a7716){return _0x45dad1(_0x2117ec-0x30,_0x2117ec- -0x474,_0x54ee3f,_0x2a7716-_0x283e13._0x54694b);}function _0x2e910d(_0x509c54,_0x42b7e6,_0x3966f9,_0x365b8b){return _0x45dad1(_0x509c54-0x85,_0x42b7e6- -0x3ed,_0x365b8b,_0x365b8b-0xcc);}return collectClientResults((await _0x276e61(_0x3638b5,![]))[_0x2e910d(0x153,0xf0,0x154,0x98)](_0x177171=>_0x177171['request'][_0x2e910d(0x9d,0xd7,0x47,0x1b1)](_0x3638b5)));},async 'workspaceSymbol'(_0x7ec7fa){const _0x1f1c76={_0x5c5b17:0xa8,_0x5e8ed8:0x139};function _0x34b699(_0x380700,_0x4c24ed,_0xd44b9e,_0x136973){return _0x45dad1(_0x380700-0xc7,_0xd44b9e- -0x4ef,_0x380700,_0x136973-0x145);}function _0x2140b6(_0x3c7e0b,_0x5371b3,_0x474dcb,_0x1698a4){return _0x45dad1(_0x3c7e0b-_0x1f1c76._0x5c5b17,_0x5371b3- -_0x1f1c76._0x5e8ed8,_0x3c7e0b,_0x1698a4-0x19);}return collectClientResults(_0x26392d[_0x2140b6(_0x12d678._0x5c8037,0x2d1,_0x12d678._0x100be3,0x27b)][_0x34b699(-0x18,_0x12d678._0xc8982d,-0x12,-_0x12d678._0x2f6693)](_0x35cba3=>_0x35cba3['request']['workspaceSymbol'](_0x7ec7fa)));},async 'implementation'(_0x50f2ca){const _0x3cae9b={_0x215bfd:0x126};function _0x1bef88(_0x1d1e10,_0x545d49,_0x51b79f,_0x4539ce){return _0x45dad1(_0x1d1e10-_0x1fc47e._0x1d6682,_0x51b79f- -_0x1fc47e._0x2174b2,_0x4539ce,_0x4539ce-_0x1fc47e._0xd374ee);}function _0x2f1cc6(_0x1d14ed,_0x236b98,_0x30679e,_0x142472){return _0x45dad1(_0x1d14ed-_0x3cae9b._0x215bfd,_0x236b98- -0xc7,_0x1d14ed,_0x142472-0x189);}return collectClientResults((await _0x5d0501(_0x50f2ca))['map'](_0x302a97=>_0x302a97[_0x1bef88(-0x1b2,-0xaa,-0xa8,-0x57)][_0x1bef88(0x19,0x121,0x5d,0xbd)](_0x50f2ca)));},async 'prepareCallHierarchy'(_0x58a9fc){return _0x112eba(_0x58a9fc);},async 'incomingCalls'(_0x4cf815){const _0x1b885c={_0x10c574:0xfc};function _0x11773f(_0x3b3186,_0x2e0d54,_0x5c4bcc,_0x142f24){return _0x45dad1(_0x3b3186-0xef,_0x142f24-0x194,_0x3b3186,_0x142f24-_0x1b885c._0x10c574);}function _0x193950(_0x37ea73,_0x5a5aa0,_0x5227b6,_0x22a20d){return _0x45dad1(_0x37ea73-_0xdb170c._0x2e8f9d,_0x22a20d- -_0xdb170c._0x4e2eae,_0x5a5aa0,_0x22a20d-_0xdb170c._0x451218);}const _0x57827c=await _0x112eba(_0x4cf815),_0x29950b=await _0x5d0501(_0x4cf815);return collectClientResults(_0x29950b['flatMap'](_0x372f69=>_0x57827c[_0x11773f(0x5f1,0x713,0x635,0x671)](_0x10fe6c=>_0x372f69[_0x11773f(0x3a2,0x433,0x4ee,0x4d0)]['incomingCalls'](_0x10fe6c))));},async 'outgoingCalls'(_0x24ffbe){function _0x422a44(_0x78f355,_0x425e95,_0x56b369,_0x54f0da){return _0x45dad1(_0x78f355-_0x36c38f._0x324660,_0x78f355-0x172,_0x56b369,_0x54f0da-_0x36c38f._0x563511);}const _0x4e9dad=await _0x112eba(_0x24ffbe),_0x4ae625=await _0x5d0501(_0x24ffbe);function _0x14d877(_0x55e244,_0x46fae8,_0x47b635,_0x2da6cd){return _0x45dad1(_0x55e244-0xa8,_0x47b635- -0x3ba,_0x46fae8,_0x2da6cd-_0x3c2a5a._0x4a41eb);}return collectClientResults(_0x4ae625[_0x14d877(_0xbea5c8._0x4e2450,0x89,_0xbea5c8._0x3a5b02,-_0xbea5c8._0x1bade3)](_0x964238=>_0x4e9dad[_0x14d877(0x118,0x16f,0x123,0x47)](_0x1aef31=>_0x964238[_0x422a44(0x4ae,0x45d,0x401,0x43d)][_0x14d877(0xee,-0x106,0x23,-0x1)](_0x1aef31))));},async 'shutdown'(){if(_0x26392d[_0x4c9a26(0x5c9,_0x1b01a0._0xadb524,0x5a0,0x517)])return;function _0x20c121(_0x124a60,_0x3b67d7,_0x3765ce,_0x277ca6){return _0x45dad1(_0x124a60-0x73,_0x277ca6- -_0x1e45dd._0x24f21b,_0x124a60,_0x277ca6-0x117);}_0x26392d[_0x4c9a26(_0x1b01a0._0x41a301,_0x1b01a0._0x4cf621,_0x1b01a0._0x64d074,0x56c)]=!![],await Promise[_0x20c121(-_0x1b01a0._0x18d99f,-0x3a,-_0x1b01a0._0x160c1f,-0x12e)](_0x26392d[_0x4c9a26(0x38b,0x3d9,0x488,_0x1b01a0._0x26761c)][_0x20c121(_0x1b01a0._0x44b6b3,-0x124,_0x1b01a0._0x1fad20,-_0x1b01a0._0xc41da6)](_0x3a6917=>_0x3a6917[_0x20c121(0xa6,-0xf4,0x58,-0x63)]())),_0x26392d['clients']=[],_0x26392d['spawning'][_0x4c9a26(0x3b9,0x414,_0x1b01a0._0x4ea9d8,_0x1b01a0._0x427bd7)](),_0x26392d[_0x20c121(-_0x1b01a0._0x4f85d3,-_0x1b01a0._0x598027,-0x147,-0x173)][_0x20c121(-0x1d6,-_0x1b01a0._0x5206c3,-0xb0,-0x125)](),_0x26392d[_0x4c9a26(0x4cf,_0x1b01a0._0x567274,0x443,0x57c)][_0x20c121(-0x128,-0x152,-0xab,-_0x1b01a0._0x2ed02f)]();function _0x4c9a26(_0x423999,_0x3b0368,_0x1852d9,_0x3e9ad3){return _0x45dad1(_0x423999-0x104,_0x3b0368- -0x31,_0x423999,_0x3e9ad3-0x96);}_0x26392d[_0x4c9a26(0x2f7,0x373,0x45f,0x44f)][_0x4c9a26(0x362,_0x1b01a0._0x184c7b,_0x1b01a0._0x3125e5,_0x1b01a0._0x1f5112)]();},'status'(){const _0x59524f={_0x4eb6ba:0x163},_0x25cd38={_0xd816b4:0x8,_0x3b01cd:0x2e7,_0x12b3a5:0x1b1};function _0x334f79(_0x4910c6,_0x19ee5b,_0x35bbc9,_0x74ee2){return _0x45dad1(_0x4910c6-_0x25cd38._0xd816b4,_0x74ee2- -_0x25cd38._0x3b01cd,_0x35bbc9,_0x74ee2-_0x25cd38._0x12b3a5);}function _0x192a13(_0x32a323,_0x7c11b2,_0x5f1f39,_0x42c378){return _0x45dad1(_0x32a323-0x57,_0x5f1f39-_0x59524f._0x4eb6ba,_0x32a323,_0x42c378-0xe3);}return{'connectedClients':_0x26392d[_0x192a13(0x583,_0xeff26f._0x41aec1,0x56d,0x491)][_0x192a13(_0xeff26f._0x31079e,_0xeff26f._0x1dc6be,0x586,0x53e)]};}};}import{spawn as _0x3ec891}from'child_process';import{statSync}from'fs';import*as _0x16f5a4 from'os';import*as _0x4297ba from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x5b1231 from'path';function isPathInside(_0x541d0d,_0x2b5b66){const _0xcc3711={_0x2a49d4:0x475,_0x754154:0x370,_0x3d3fab:0x5a8,_0x291460:0x52f,_0x3f38b9:0x344},_0x5db796={_0x25cee6:0x1dd},_0x436735={_0x236b9f:0x2b3,_0xc9ed4e:0x1ae};function _0x46733f(_0x1b3179,_0x55dfc3,_0x36a805,_0x1c6616){return _0x22ef16(_0x55dfc3,_0x1b3179-_0x436735._0x236b9f,_0x36a805-_0x436735._0xc9ed4e,_0x1c6616-0x24);}const _0x1e0346=_0x5b1231['resolve'](_0x541d0d);function _0x292b57(_0x277a9b,_0xcfdc6a,_0x39a082,_0x4e9499){return _0x22ef16(_0x4e9499,_0xcfdc6a- -0x34c,_0x39a082-0x15a,_0x4e9499-_0x5db796._0x25cee6);}const _0x37b6a9=_0x5b1231[_0x46733f(_0xcc3711._0x2a49d4,0x399,0x3ad,_0xcc3711._0x754154)](_0x1e0346,_0x2b5b66);return _0x37b6a9===''||!_0x37b6a9[_0x46733f(0x57d,0x551,_0xcc3711._0x3d3fab,_0xcc3711._0x291460)]('..')&&!_0x5b1231[_0x46733f(0x473,0x49c,0x549,_0xcc3711._0x3f38b9)](_0x37b6a9);}function resolveWorkspacePath(_0x120b72,_0x3a81a9){return resolveAllowedPath(_0x120b72,[],_0x3a81a9);}function _0x2759(){const _0x11c53e=['y291BNq','zgvMyxvSDen3za','y2fWywjPBgL0AwvZ','qxzHAwXHyMXLignVBw1HBMrZoG','CgfJA2fNzu5HBwu','zgLZy292zxj5','C3rKzxjY','BM9Kzv9TB2r1BgvZ','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','BNbT','C3rYAxbbBNnP','lNrZ','Aw5JB21PBMDdywXSCW','uhjVz3jHBuzPBgvZ','Dg91y2HgAwXL','CgfJA2fNzs1SB2nRlMPZB24','lMDPzG','yxnPzgu','y2XPzw50x3nLy3jLDf9WB3n0','z29uB0rLzMLUAxrPB24','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','yxjNDw1LBNroyw1LCW','z2L0qNjHBMnO','u0HfteW','lNrZEa','D3jPDgu','zgvSzxrL','vw5RBM93BIb0B29SoIa','D29YA3nWywnLu3LTyM9S','CgXHAw50zxH0','DhvWBgu','BM9Uzq','mtm0nJi2nfbfvuzVsG','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Aw1Hz2uVCg5N','C2vYDMvYtMfTzq','lw5i','A2v5yMLUzgLUz3m','yxjNDw1LBNrZ','B2jQzwn0','r2XVyG','zMLSzq','zMfPBgvK','rgLHz25VC3rPyW','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','AhrTBfnUAxbWzxq','C3rYAw5N','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNvSzMLSBgvK','igj5DgvZ','zxHPDa','zgvSzwDHDgvKlxj1BI0','zw5HyMXLza','Cgf0Ag5HBwu','tuLnrtOG','tunqihnLCNzLCIa','iYmGu2TPBgW6ia','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','BgLUzq','Ahr0Ca','B2f1DgG','Dw5RBM93BG','DhjPBuvUza','y29TBwfUzhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','DgfZAW','Ag9TzwrPCG','AxneAxjLy3rVCNK','z2v0','D29YA3nWywnLl3n5BwjVBa','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','sfruuca','tM8GC3LTyM9SCYbMB3vUza','ChvZAa','zg9JDw1LBNrtEw1IB2W','C291CMnL','uhjVz3jHBuzPBgvZkhG4nIK','ywDLBNrZ','rMLSzu5LDW','zMLUywXnzxnZywDL','C3jJl2fNzw50l2fNzw50lNrZ','C2HPzNq','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','Dg9ju09tDhjPBMC','B25oB3rPzMLJyxrPB24','BhnW','CMCUzxHL','C3rHCNreAxi','yw5ZAti1nG','Aw1Hz2uVz2LM','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','y2fUy2vS','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','B2XKvgv4Da','BwvZC2fNzq','ChjVDg9JB2W','zMLSzvbHDgG','BwfW','A2v5','ls1WCMvMAxG','D2vI','CNvUswq','lMPZEa','C3rHCNrZv2L0Aa','AxnfBMfIBgvK','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','zgLHz25VC3rPy3m','BgLNAhq','zxjYB3jnzxnZywDL','r0LgodLH','Cgf0Aa','C3bHD24','AxnfCNjVCG','Bwf0y2HLCW','C3rKB3v0','CgfJA2fNzxm','yMfZzty0','zMLSDgvY','BM90Awz5','C3rKAw8','BwvTB3j5','CMfUz2u','ienHDxnLoIa','C3bHD25PBMC','C3rYAw5NAwz5','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','CMvXDwvZDhm','zgLYzwn0B3j5','yxnZAwDU','vw5HDxrOB3jPEMvKrxjYB3i','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','DgHLBG','CxvLCNK','ywXS','zhj5uNvU','A2LUza','zNjVBq','v2vIrMv0y2G','C2H1DgrVD24','Dg9mB3DLCKnHC2u','u2L6ztOG','Bw9KzwW','Aw1Hz2vZ','C2XPy2u','vMLLD2vKigLTywDLigzPBgu6ia','yNvUlMXVy2S','l3vZCI9IAw4VyMfZAa','C2vZC2LVBG','igzHAwXLzc4','C2H1DgrVD25tDgfYDgvK','ywrK','yM0Ynq','D2LUmZi','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','ls1NBg9IpseUz2L0lYO','y29Kzq','ChjVCgvYDgLLCW','C2fMzq','CMvJB3jK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','zxjYB3i','nZuXmxjIwefrta','BNv2Aw4','BxrPBwvnCW','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','DhLWzq','B3rOzxi','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','zMLSzvzLCNnPB25Z','mZbVALbVCgm','C2HLBgXqyxrO','Cgf0DgvYBG','Aw1Hz2uVD2vICa','ChjLzML4','Aw1Hz2uVANbLzW','AhLKCMf0zu1LDge','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','y2XPzw50sw5MB3jTyxrPB24','yxjYyxK','BgfUzW','A2LSBa','zgLZy292zxj5u3rHDgu','Dgv4DerVy3vTzw50l2rPzenSB3nL','v2fYBMLUzW','CMvTB3zLrxzLBNrmAxn0zw5LCG','DxrTx3nVDxjJzq','cGOTls0kcG','y29TBwfUza','igj5DgvZigv4y2vLzhmG','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','CgfYzw50u2vZC2LVBKLK','BgfUz18','y2f0y2G','u3rHCNrLzcbHz2vUDcbYDw4G','B3bLCMf0Aw9U','mZe5nZK2mvrQAuj1Dq','vMLLD0zPBgu','AxngAwXL','z2XVyG','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','cMbGya','nZmYzgzXtLDP','DhjHBNnWB3j0','yxv0BW','C2TPBgXZ','zMLSztOVlW','CNvUBMLUzW','ywjVCNrLza','BgLZDfrVB2XZ','Agv4','q29TBwfUzcaN','Ahr0Chm6','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','Aw5JBhvKzq','yxjNDw1LBNrZvgv4Da','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','ls1JB2X1Bw4','C3rKAw4','Ag9ZDa','u2TPBgWGjW','Dg9Rzw5Z','C3rHDhvZvgv4Da','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','uMvZCg9UC2uGDg9VigXHCMDLoIbLEgnLzwrZia','l2jPBI9IyxnO','y2fSBfrVB2W','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','DhLWzxnJCMLWDhjLywn0','ywrKrxzLBNrmAxn0zw5LCG','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','BNvT','AhjLzG','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','CMLWz3jLCa','u2HLBgWGBM90igzVDw5KoIa','Bg93','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','zMvUy2vK','CMvXDwLYzwq','cGPbuKDvtuvovfm6ia','zgvMyxvSDfrPBwvVDxrnCW','q29Tu3bLyW','lI4U','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','y3DK','Dg9Rzw4','sw52B2TLq29TBwfUza','ls1ZDgrPBW','DgvZDa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','lNDLyNa','C2vYDMvY','qxnZAwDUvgfZAW','z2nSAwq','CgfNzw1HCa','qgjPB21LANmVyMLVBwu','lMnTza','ywDLBNrjza','zgvZy3jPChrPB24','D2fPDezVCKrPywDUB3n0AwnZ','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','C3LTBgLUAW','AgfZq2XPzw50CW','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','mJm1mK9iBLzvva','AwDUB3jLt3v0Chv0','C2v0','CgfYC2u','ihDHCYbHyM9YDgvKlG','yw5ZAte2','o1TE','CMfUzg9T','z29Vz2XLq3nLq3G','C2v2zxjPDhK','yxjNCW','Dg9VBfjLC3vSDhm','y2XPzw50','yNvUlMXVy2TI','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','CMvHC29U','zgf0yq','y2HHCKnVzgvbDa','EwfYBI5SB2nR','C3rHDgu','C25PChbLDa','Bg9HzenVBw1HBMq','CMvXDwvZDa','Bwf4qNL0zxm','ywn0AxzL','z29uB0LTCgXLBwvUDgf0Aw9U','C2L0ztO','CgLK','te9dquXbufbeqvrb','C2vYDMvYCW','CM9VDa','zMjJBgLK','y2vPBa','C3rHCNq','zgLYBMfTzq','yxnJAwK','uhvIBgLZAgvKoIa','C2vHCMnOugfYyw1Z','zw5K','Aw5ZDhj1y3rPB25Z','AxrLBxm','ChjLCgfYzunHBgXiAwvYyxjJAhK','ugf0AcbUB3qGzM91BMq6ia','lMn0CW','B2zMC2v0','DgL0Bgu','DxjP','zw50CMLLCW','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y3jSzG','yMfZzw5HBwu','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','C2vHCMnOvhLWzq','BgLUzvn0yxj0','BwnFy2LK','y29UBMvJDa','Cgf0DgvYBIbPCYbYzxf1AxjLza','B25Jzq','yMvHCMvY','y29UDgvUDa','zMLUywXnzxnZywDLvgv4Da','yxr0CG','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','AM9PBG','yxbWBgLJyxrPB24VANnVBG','rxjYB3i','l3vZCI9SB2nHBc9IAw4VCMC','zgvUBY5QC29UyW','zgLZywjSzwq','ntq1nJDjuM5uqwy','ChvIBgLZAgvKqxq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Bg9JyxrPB24','D2HLCMuGCMC','EwvZ','Dg9VBhmVy2fSBa','lMnQCW','B2C6DxbKyxrLzf90Aw1L','D2HPy2GGCMC','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','BhnWu2vYDMLJzq','zMLYC3q','u0Lhs0Lmta','Bg9JywXLq29TCgfYzq','Cg5WBs1SB2nRlNLHBwW','zgf0zxrPBwu','DMvYAwzPzxi','C3rVCMfNzurPCG','yw50AhjVCgLJlw1LC3nHz2vZ','AgfUzgXL','lNbUzW','Dg9Rzw5tDg9YywDLs2v5','lNrTCc4','C2vYDMvYswq','ru5pru5u','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','rMv0y2GGywjVCNrLzcbIEsb1C2vY','AgfZ','v0vcua','ksbB','BhnWlxbYB3H5','Cg9W','zgvSAw1PDgvY','lM51DMLU','BMfTzq','y29UDgv4Da','zw51Bq','DxrTx3rLCM0','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','yNL0zuXLBMD0Aa','ChjVy2vZCW','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','Dg9VBenHBgXjza','Dg9tDhjPBMC','BwLU','z29Vz2XLq3nLs2v5','Aw5PDgLHBgL6yxrPB24','yxjNDw1LBNriAw50','lMPZ','BgLZDgvU','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','CMvZDwX0','CMvWBgfJzq','B3jPz2LUvg9VBenHBgXjza','B3bLBKzPBgvZ','yMLVBwuUANnVBG','CMfUAW','sgLUDa','Aw5JBhvKzxm','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','Dhj1zq','C2nVCgvZ','DhLWzxnJCMLWDa','l3bPza','tNv2Aw4','B3jPz2LUywW','ywjVCNq','AwzYyw1L','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','rMLSzuvKAxq','AxngAw5PDgu','AwDUB3jL','ignVBxbSzxrLzc4','ANnVBG','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','y29ZDa','rgv0ywLSoIa','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','y2fSBgjHy2TvCMW','A2v5CW','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','qMfZzsbKAxjLy3rVCNK6ia','mJbMyxfewhq','Ahr0CdO','BxrPBwu','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','yxbPs2v5','C29YDa','yMLVBwu','CNnZ','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Dg9VBa','z29Vz2XLlwnZzq','AxntEw1IB2XPy0XPBMS','zgLZCg9Zzq','BgL0zxjHBa','zgfYAW','seLhsa','CgLWzq','A2LSBgvK','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','xg5DkJ8','yMLUyxj5tMfTzq','zMXVB3i','ls1MB2XSB3C','AxnbyNnVBhv0zq','ls0T','CMvSyxrPDMu','Dg9VBhm','B3v0z29PBMDdywXSCW','zxHPDcbJB2rLia','B3bLBG','zg9TywLUCW','BgLUzu51Bq','zgvMAw5PDgLVBG','qwDLBNqGCNvUia','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','vw50AxrSzwq','odG1mtv0q1bxuMy','AxnbCNjHEq','DxrMoa','AgvHzgvYCW','CMvZB2X2zq','y2HHCMfJDgvY','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','BgLTAxq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','DhnZzxj2zxiUANm','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','zM9VDgvY','tM8GzgLHz25VC3rPy3m','C2HHmJu2','B2zM','CgfJA2fNzs5QC29U','zgf0zvjLC3rYAwn0','yNjVA2vU','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','C2vZC2LVBKLK','Aw5ZDgfSBa','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','C2vUze5VDgLMAwnHDgLVBG','C2vUzfjLCxvLC3q','lM1QCW','yMLYDgH0Aw1L','DMfSDwu','AMf2yxnJCMLWDa','C2L6zq','zxH0BMfTzq','zMXHDe1HCa','mtG1mZa2ywPYDufY','BgLI','B25szwrPCMvJDa','Aw1Hz2u','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','y2XPzw50CW','y2XVC2u','BgLUAW','DxbKyxrL','B3b0Aw9UywW','zMLUza','DhjPBq','lu5Vtg9NBW','yM94zwq','Aw5PDgLHBgL6zwq','Bwf4','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','qMfZAa','CgfZC3rOCM91z2G','BNvTyMvY','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','C2LNBMfS','yxv0AfjLCxvPCMvK','BwfYA2rVD24','CgXHAw4','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','yM9KEq','DxnLCM5HBwu','CMvNAw9U','y29KzvzLCMLMAwvY','BgvUz3rO','AgLNAa','DgLTzw91De1Z','o1TExg5DkJ8','BgLUzvrLEhq','ywXSB3DLzerPCNm','ygbGANnVBGO','zxf1ywXZ','zw52','ig1Z','Bwv0yxrHz3m','DgHPBMTPBMC','C3bSAxq','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','C3rHDhvZ','Aw5WDxrty2HLBwe','lMjPBG','ANnJB25MAwCUANnVBG','yxv0Ag9YAxPHDgLVBL9JB2rL','AxndB250zxH0','BM93','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','lMPWzwC','tg9HzfnRAwXS','zgLHz25VC3rPy3ngB3jgAwXL','ywXSu2v0DgXLza','AMf2yxnJCMLWDhjLywn0','ugfJA2fNzxm','y29TCgXLDgvK','BMv3vgv4Da','Aw1WBgvTzw50yxrPB24','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','wZ0+nY04kcLD','yxr4','y2XLyxi','y29UBMvJDgvK','DxjS','yxv0Aa','zNvUy3rPB24','yM9VBgvHBG','CgXHDgzVCM0','tg9HzgvKigzYB206ia','Dhj1BMm','DhnJB25MAwCUANnVBG','l3vZCI9IAw4VC2G','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','AgvHzgvY','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','Aw5KzxHpzG','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','CMvJzw5JEurHExm','mc4WlJa','y29UzMLN','Dgv4Da','t0zg','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','BgLUzuvUza','lMPZB24','C3vIyxjYyxK','zxH0zw5ZAw9UCW','C2nYAxb0','igzYB20G','y29Uy2f0','mJm2mLbJrxvTAq','BM9Zy3jPChq','zgv0ywLS','ndi2vKTdAuLI','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','BwnFzwLK','qxv0Ag9YAxPHDgLVBG','Ag92zxi','y29UDgv4DeXPBMS','CMvTB3zL','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','y29UBMvJDgLVBG','BgfUz3vHz2u','zgLNzxn0','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','ygbG','tgLUzsa','rMLSzsb3CML0DgvUigf0ia','AxnjBNrLz2vY','Dw5PB24'];_0x2759=function(){return _0x11c53e;};return _0x2759();}function resolveAllowedPath(_0x364ad4,_0x2a0f52,_0x1666bd){const _0x7b2c3b={_0x45c591:0x9a,_0x24e4a9:0x163,_0x27af95:0xa8,_0x2e3168:0x68,_0x3b237e:0x251},_0x4d84e7={_0x135719:0xde},_0x2adb1b={_0x535d92:0x9d,_0x16ca3b:0x14e},_0xfc8713=_0x5b1231[_0x4590fe(0x1b1,_0x7b2c3b._0x45c591,-0x8a,0x63)](_0x364ad4),_0x145794=_0x5b1231['resolve'](_0xfc8713,_0x1666bd);function _0x4c4518(_0x535015,_0x5ab74e,_0x2e5da1,_0x1ed676){return _0x324926(_0x5ab74e-_0x2adb1b._0x535d92,_0x2e5da1,_0x2e5da1-0x14,_0x1ed676-_0x2adb1b._0x16ca3b);}const _0x2da842=[_0xfc8713,..._0x2a0f52[_0x4c4518(0x142,_0x7b2c3b._0x24e4a9,_0x7b2c3b._0x27af95,0x22f)](_0x33c122=>_0x5b1231[_0x4590fe(0x123,0x9a,0x195,0x1a5)](_0x33c122))];if(_0x2da842['some'](_0x2e796c=>isPathInside(_0x2e796c,_0x145794)))return _0x145794;function _0x4590fe(_0x1f2c30,_0x3caa2c,_0x1c2f3a,_0x510528){return _0x324926(_0x3caa2c-0xc7,_0x1f2c30,_0x1c2f3a-0x1a4,_0x510528-_0x4d84e7._0x135719);}throw new ToolExecutionError(_0x4c4518(_0x7b2c3b._0x2e3168,0x15d,_0x7b2c3b._0x3b237e,0x85)+_0x1666bd,{'path':_0x1666bd,'rootDir':_0xfc8713,'allowedDirs':_0x2da842});}async function assertWorkspaceFile(_0x291bc3){const _0x876466={_0x1ab3f8:0x11,_0x4a38de:0xf2},_0x7f73ac={_0x2450be:0x123,_0x55c92d:0x1b8};function _0x5aeda8(_0x149ee2,_0x26d8cc,_0x123a0e,_0x1d84c9){return _0x324926(_0x149ee2-_0x7f73ac._0x2450be,_0x123a0e,_0x123a0e-_0x7f73ac._0x55c92d,_0x1d84c9-0x46);}const _0x190b77=await stat(_0x291bc3);if(!_0x190b77[_0x5aeda8(-_0x876466._0x1ab3f8,0x8e,0x6a,-_0x876466._0x4a38de)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x291bc3,{'path':_0x291bc3});}function isProbablyBinary(_0x4fa980){const _0x335625={_0x37d91e:0x2f5,_0x4b5f68:0x1d0,_0x537189:0x140},_0x1f684c={_0x41a424:0x35f,_0x4a9d4b:0x46};function _0x4b4295(_0x40a991,_0x319aa6,_0x28c44f,_0xe43553){return _0x22ef16(_0x40a991,_0x28c44f- -_0x1f684c._0x41a424,_0x28c44f-0xe4,_0xe43553-_0x1f684c._0x4a9d4b);}return _0x4fa980[_0x4b4295(-_0x335625._0x37d91e,-0x17b,-_0x335625._0x4b5f68,-_0x335625._0x537189)](0x0);}var DEFAULT_DESCRIPTION='Execute\x20a\x20shell\x20command\x20with\x20timeout\x20protection.\x20Captures\x20stdout\x20and\x20stderr.\x20Do\x20not\x20use\x20for\x20interactive\x20commands\x20that\x20require\x20user\x20input.',DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x23691c){return _0x23691c instanceof Error;}function shellExists(_0x224e49){function _0x1f1492(_0x5f3318,_0x3248ec,_0x238fed,_0x512647){return _0x22ef16(_0x3248ec,_0x5f3318- -0x366,_0x238fed-0x1df,_0x512647-0x158);}try{const _0x5163f6=statSync(_0x224e49);return _0x5163f6[_0x1f1492(-0x29c,-0x2be,-0x1c5,-0x392)]()&&(_0x5163f6['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x169989){const _0x483823={_0x489f8b:0x551,_0x5eeefe:0x59f,_0x2775f5:0x635,_0x59be3a:0x672,_0x2e26b5:0x686,_0x1ed2cf:0x34c,_0xf7574c:0x53b,_0x1b1b35:0x578,_0x5d8e54:0x45b,_0x1003ea:0x5cb,_0x3621b8:0x66c,_0x16521b:0x382,_0xbde43b:0x48c},_0x2901cc={_0x2057c0:0x17,_0x37fa8e:0x10b},_0x30bfae={_0x530fac:0x32};if(_0x169989)return _0x169989;if(_0x16f5a4[_0x1ae0f8(_0x483823._0x489f8b,_0x483823._0x5eeefe,_0x483823._0x2775f5,0x5a8)]()===_0x1ae0f8(0x70b,0x576,0x62c,_0x483823._0x59be3a))return process[_0x1ae0f8(0x588,0x672,_0x483823._0x2e26b5,0x588)][_0x13f8a6(0x3a1,_0x483823._0x1ed2cf,0x3f1,0x2e4)]||'cmd.exe';function _0x1ae0f8(_0x5a32d6,_0x5cef8e,_0x5201c4,_0x192d0e){return _0x324926(_0x192d0e-0x574,_0x5a32d6,_0x5201c4-0x12,_0x192d0e-_0x30bfae._0x530fac);}const _0x574c4a=[_0x1ae0f8(_0x483823._0xf7574c,_0x483823._0x1b1b35,0x47e,_0x483823._0x5d8e54),'/bin/sh',_0x1ae0f8(_0x483823._0x1003ea,0x751,0x5ca,_0x483823._0x3621b8),_0x13f8a6(_0x483823._0x16521b,_0x483823._0xbde43b,0x491,0x3df)];for(const _0x10b011 of _0x574c4a){if(shellExists(_0x10b011))return _0x10b011;}function _0x13f8a6(_0x90bab1,_0x464032,_0xf634f8,_0x1440eb){return _0x324926(_0x464032-0x454,_0x90bab1,_0xf634f8-_0x2901cc._0x2057c0,_0x1440eb-_0x2901cc._0x37fa8e);}const _0x5e5f88=process['env'][_0x13f8a6(0x54e,0x4cc,0x504,0x554)];if(_0x5e5f88&&shellExists(_0x5e5f88))return _0x5e5f88;return'/bin/bash';}function buildShellArgs(_0x4e4c66,_0x5f056f){const _0x33ae31={_0x3def73:0xf6,_0x223353:0x1dc,_0x5afe7b:0xb,_0x30b8b4:0x198,_0x490a51:0x10f,_0x11c179:0x1f9,_0x49637d:0x159,_0x242f48:0xd2,_0x1b5e0f:0x70,_0x4881a2:0x5e},_0x2fc062={_0x38d835:0x58,_0x419a74:0xce};if(_0x16f5a4[_0x3b95cc(-0x1cc,-_0x33ae31._0x3def73,-0x133,-_0x33ae31._0x223353)]()===_0x3b95cc(-0x102,-0x167,_0x33ae31._0x5afe7b,-_0x33ae31._0x30b8b4)){const _0x471717=/cmd(\.exe)?$/i[_0x120177(-0x21a,-_0x33ae31._0x490a51,-_0x33ae31._0x11c179,-_0x33ae31._0x49637d)](_0x5f056f);return _0x471717?['/d','/s','/c',_0x4e4c66]:[_0x120177(-0xa3,-_0x33ae31._0x242f48,_0x33ae31._0x1b5e0f,-_0x33ae31._0x4881a2),'-NoProfile','-Command',_0x4e4c66];}function _0x120177(_0x3d632b,_0x356ec9,_0x341d63,_0x201de9){return _0x324926(_0x201de9- -_0x2fc062._0x38d835,_0x3d632b,_0x341d63-0x1b1,_0x201de9-_0x2fc062._0x419a74);}function _0x3b95cc(_0x280e45,_0x288498,_0x40466f,_0x29ace7){return _0x22ef16(_0x288498,_0x280e45- -0x3fe,_0x40466f-0x114,_0x29ace7-0x84);}return['-c',_0x4e4c66];}function resolveCarriageReturns(_0x39b4df){const _0xacfcf3={_0x5ab983:0x42f,_0x4a6d3f:0x47a,_0x3d7e0c:0x4a9,_0x4780ce:0x261,_0xfb578d:0x1cf,_0x1b0d75:0x175},_0x1008cb={_0x53d7e4:0x1d8,_0x2812a6:0x2d8,_0x1a1b85:0x184,_0x5db1eb:0x4c7,_0xdb3e8:0x4db,_0x52871b:0x57a},_0x34e549={_0x211c64:0x144},_0xa02075={_0x4448eb:0x5,_0x34764a:0x18a};function _0x5d6422(_0x121d7f,_0x2c33fd,_0x8eb353,_0x3c2fe3){return _0x324926(_0x121d7f-0x313,_0x2c33fd,_0x8eb353-_0xa02075._0x4448eb,_0x3c2fe3-_0xa02075._0x34764a);}function _0x13742e(_0x10fc52,_0x4412ec,_0x4e22d7,_0x570a9f){return _0x324926(_0x570a9f-0x385,_0x4412ec,_0x4e22d7-0x5b,_0x570a9f-_0x34e549._0x211c64);}return _0x39b4df[_0x13742e(0x2b5,_0xacfcf3._0x5ab983,_0xacfcf3._0x4a6d3f,0x39d)]('\x0a')[_0x13742e(_0xacfcf3._0x3d7e0c,0x54b,0x53c,0x44b)](_0x55463f=>{const _0x316cd3={_0xf62a07:0x1bc,_0x3280ec:0x3},_0x963876={_0x12e83e:0xef};function _0x19d1fa(_0xb91646,_0x96c4da,_0x291027,_0x45633b){return _0x5d6422(_0xb91646- -0xcc,_0x96c4da,_0x291027-0xcd,_0x45633b-_0x963876._0x12e83e);}function _0xc21d28(_0x6614f7,_0x4b31c3,_0x102e99,_0x13d4ed){return _0x5d6422(_0x4b31c3-_0x316cd3._0xf62a07,_0x102e99,_0x102e99-0x80,_0x13d4ed-_0x316cd3._0x3280ec);}if(!_0x55463f[_0x19d1fa(_0x1008cb._0x53d7e4,_0x1008cb._0x2812a6,0xd4,_0x1008cb._0x1a1b85)]('\x0d'))return _0x55463f;const _0x57e487=_0x55463f[_0xc21d28(0x60c,0x4e7,_0x1008cb._0x5db1eb,0x60a)]('\x0d');return _0x57e487[_0x57e487[_0xc21d28(0x5a7,_0x1008cb._0xdb3e8,_0x1008cb._0x52871b,0x3c7)]-0x1]??'';})[_0x5d6422(_0xacfcf3._0x4780ce,0x290,_0xacfcf3._0xfb578d,_0xacfcf3._0x1b0d75)]('\x0a');}function resolveBackspaces(_0x526bd4){const _0x368d4f={_0x2f7cc2:0x173,_0x5cd439:0x136,_0x2b5511:0x19,_0x1cc3cd:0x618,_0x1bfdbf:0x4ba,_0xef1fbb:0x50b},_0x360463={_0x27324f:0x129,_0x34c2c3:0x84},_0x5d259d={_0x234405:0x4d,_0x1b67c5:0xc4},_0x320880=[];function _0x2e93ac(_0x5783c4,_0x2c41d9,_0x4da7be,_0x2ca421){return _0x324926(_0x5783c4-0x56c,_0x2ca421,_0x4da7be-_0x5d259d._0x234405,_0x2ca421-_0x5d259d._0x1b67c5);}function _0x2720e5(_0x69d73b,_0x46bb2c,_0x548ae5,_0x1d2aad){return _0x324926(_0x1d2aad-_0x360463._0x27324f,_0x548ae5,_0x548ae5-0xb8,_0x1d2aad-_0x360463._0x34c2c3);}for(const _0x2df00c of Array[_0x2720e5(_0x368d4f._0x2f7cc2,0x21c,_0x368d4f._0x5cd439,0x217)](_0x526bd4)){_0x2df00c==='\x08'?_0x320880[_0x2720e5(-_0x368d4f._0x2b5511,0x89,0x39,0x9f)]():_0x320880[_0x2e93ac(_0x368d4f._0x1cc3cd,0x53d,0x675,0x68f)](_0x2df00c);}return _0x320880[_0x2e93ac(_0x368d4f._0x1bfdbf,0x5d4,0x4ab,_0x368d4f._0xef1fbb)]('');}function stripAnsiAndControls(_0x10a9c2){const _0x1a740f={_0x35a7e2:0x26d,_0x1bc170:0x3b9,_0x1c654b:0x1ad,_0x58b523:0x20d,_0x397ef7:0x36c,_0x97ac9f:0x259,_0x57106f:0x2dc,_0x51cccb:0x1b8,_0x27aedd:0x28a,_0x50d305:0x274,_0xdf57b3:0x29c,_0x351ec1:0x15f,_0x45cee6:0x339,_0x298d66:0x223,_0x506d8a:0x218,_0x3136eb:0x43c,_0x2b31b8:0x37d,_0x19a17b:0xfd,_0x5f549c:0x218,_0x3c5476:0x17e,_0x233d45:0x299,_0x4dd060:0x263},_0x4fd2af={_0x47cb5a:0x153},_0x4f82f8={_0x101bf3:0x8e};_0x10a9c2=resolveCarriageReturns(_0x10a9c2),_0x10a9c2=resolveBackspaces(_0x10a9c2),_0x10a9c2=stripVTControlCharacters(_0x10a9c2);function _0x304e73(_0x9f0e4e,_0x3b8923,_0x287935,_0x7010e7){return _0x324926(_0x7010e7-0x28d,_0x3b8923,_0x287935-_0x4f82f8._0x101bf3,_0x7010e7-0xf1);}const _0xce409e='\x1b',_0x27cb5d='\x07';_0x10a9c2=_0x10a9c2[_0x3907af(0x3c9,_0x1a740f._0x35a7e2,_0x1a740f._0x1bc170,0x2dc)](new RegExp(_0x3907af(_0x1a740f._0x1c654b,_0x1a740f._0x58b523,_0x1a740f._0x397ef7,0x266)+_0x27cb5d+_0x3907af(0x263,0x3cf,0x1e2,0x30f)+_0x27cb5d,'g'),'');function _0x3907af(_0x497d3c,_0x510548,_0x219f23,_0x43d0e6){return _0x22ef16(_0x510548,_0x43d0e6-_0x4fd2af._0x47cb5a,_0x219f23-0x16a,_0x43d0e6-0x51);}return _0x10a9c2=_0x10a9c2[_0x3907af(0x1db,0x368,_0x1a740f._0x97ac9f,_0x1a740f._0x57106f)](new RegExp(_0x304e73(_0x1a740f._0x51cccb,_0x1a740f._0x27aedd,_0x1a740f._0x50d305,_0x1a740f._0xdf57b3)+_0xce409e+'\x5c\x5c','g'),''),_0x10a9c2=_0x10a9c2['replace'](new RegExp(_0x27cb5d,'g'),''),_0x10a9c2=_0x10a9c2[_0x304e73(_0x1a740f._0x351ec1,_0x1a740f._0x45cee6,_0x1a740f._0x298d66,_0x1a740f._0x506d8a)](new RegExp(_0xce409e+'[P_^][\x5cs\x5cS]*?'+_0xce409e+'\x5c\x5c','g'),''),_0x10a9c2=_0x10a9c2['replace'](new RegExp(_0xce409e+_0x3907af(0x36b,_0x1a740f._0x3136eb,0x4aa,_0x1a740f._0x2b31b8),'g'),''),_0x10a9c2=_0x10a9c2[_0x304e73(0x1da,0x23c,_0x1a740f._0x19a17b,_0x1a740f._0x5f549c)](/[\u0080-\u009F]/g,''),_0x10a9c2=_0x10a9c2[_0x304e73(_0x1a740f._0x3c5476,_0x1a740f._0x233d45,_0x1a740f._0x4dd060,_0x1a740f._0x5f549c)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x10a9c2=_0x10a9c2['replace'](/[\u23CE\u2424]/g,''),_0x10a9c2;}function resolveWorkingDirectory(_0x5e5936,_0x365ec6,_0x181fd6){const _0x499b0d={_0xbdd508:0xa4,_0x260cc9:0x185,_0x1dbe16:0x2e,_0x42a357:0xa},_0x2c4ba2={_0x4aa4ce:0x6d},_0x458525={_0x137f1b:0x401};function _0x9714e3(_0x15729b,_0x46d4b7,_0x17b296,_0x3dc0d3){return _0x22ef16(_0x46d4b7,_0x17b296- -_0x458525._0x137f1b,_0x17b296-0x32,_0x3dc0d3-0x1a7);}function _0x4430eb(_0x5bcfeb,_0x1fbbda,_0x458f84,_0x14fb0b){return _0x22ef16(_0x1fbbda,_0x5bcfeb- -0x192,_0x458f84-_0x2c4ba2._0x4aa4ce,_0x14fb0b-0x99);}const _0x41856d=resolveAllowedPath(_0x365ec6,_0x181fd6,_0x5e5936??'.');try{const _0x11f925=statSync(_0x41856d);if(!_0x11f925[_0x9714e3(-_0x499b0d._0xbdd508,-_0x499b0d._0x260cc9,-0x15d,-0x1f6)]())throw new ToolExecutionError(_0x4430eb(0xa8,0x64,_0x499b0d._0x1dbe16,0x127)+_0x41856d,{'cwd':_0x41856d});return _0x41856d;}catch(_0x460eee){if(_0x460eee instanceof ToolExecutionError)throw _0x460eee;throw new ToolExecutionError(_0x4430eb(0x6a,-0x8f,_0x499b0d._0x42a357,0x15b)+_0x41856d,{'cwd':_0x41856d});}}function killProcessGroup(_0x5491b4,_0x22303c,_0x465d4a=_0x324926(-0x9f,-0xfa,-0x163,0x2f)){const _0x279c6c={_0x229df6:0x13d,_0x129e6b:0x13e,_0x3f2507:0x260,_0x5f2919:0x4bc,_0x2ca5f4:0x30b,_0x35ee51:0x2b7,_0x420253:0x172},_0x4365e7={_0x5ce289:0xcc},_0x19a4c8={_0x175f5b:0x1cd};if(!_0x5491b4[_0x5f2421(0xc9,_0x279c6c._0x229df6,_0x279c6c._0x129e6b,0xc7)])return;if(_0x22303c)try{_0x3ec891('taskkill',[_0x100910(0x283,_0x279c6c._0x3f2507,0x208,0x1c0),_0x5491b4['pid']['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5491b4[_0x100910(0x513,0x3e4,0x2df,_0x279c6c._0x5f2919)](_0x465d4a);return;}function _0x5f2421(_0x480a27,_0x3b1b12,_0x353af7,_0xb54e5c){return _0x22ef16(_0x3b1b12,_0xb54e5c- -0x61,_0x353af7-0x19b,_0xb54e5c-_0x19a4c8._0x175f5b);}function _0x100910(_0x3caa60,_0x3735cb,_0x26aa87,_0x5a8c74){return _0x22ef16(_0x5a8c74,_0x3735cb-_0x4365e7._0x5ce289,_0x26aa87-0x1ca,_0x5a8c74-0x127);}try{process[_0x5f2421(0x377,0x1bf,_0x279c6c._0x2ca5f4,_0x279c6c._0x35ee51)](-_0x5491b4[_0x5f2421(_0x279c6c._0x420253,0xae,-0x6,0xc7)],_0x465d4a);}catch{_0x5491b4['kill'](_0x465d4a);}}function appendChunk(_0x1007aa,_0x304b5a,_0x402b8e,_0x559f9d,_0x44a35c){const _0x5a1e03={_0x2f4a10:0x112,_0x5e6695:0x4aa},_0x43b720={_0x2eecae:0xd7},_0x29d3e3=_0x559f9d?stripAnsiAndControls(_0x402b8e):_0x402b8e;if(_0x29d3e3[_0x42c342(-0x1f2,-_0x5a1e03._0x2f4a10,-0x156,-0x263)]===0x0)return;_0x1007aa['push'](_0x29d3e3);function _0x42c342(_0x386359,_0x3f52ae,_0x22fd6c,_0x1332dd){return _0x22ef16(_0x3f52ae,_0x386359- -0x3fc,_0x22fd6c-0x6,_0x1332dd-0xb9);}function _0x1da810(_0x1c0d6e,_0x5c3237,_0xe7fa05,_0x46b2aa){return _0x22ef16(_0x5c3237,_0x46b2aa-0x200,_0xe7fa05-0x174,_0x46b2aa-_0x43b720._0x2eecae);}_0x304b5a[_0x1da810(0x3af,0x3a6,0x3f2,_0x5a1e03._0x5e6695)](_0x29d3e3),_0x44a35c();}function createBashTool(_0xc700dc={}){const _0x19c55d={_0x40f0ea:0x268,_0x560119:0x2ab,_0x207be2:0x209,_0x5b92f4:0x178,_0x5638de:0x1bc,_0x35ed88:0x22d,_0x1ae855:0x39c,_0xe66189:0x30f,_0x327869:0x487,_0x31bccc:0x529,_0xdb312c:0x40c,_0x7863f8:0x4a6,_0x2130f5:0x65a,_0x1133f1:0x152,_0xd96cec:0x340,_0x3a7d19:0x1e7,_0x54cea6:0x2d1,_0x110cb9:0x404,_0x23ca3d:0x3a6,_0x1ddf0f:0x2d8,_0x555ed5:0x3f1,_0x4abef9:0x35f,_0x215d53:0x190,_0x31fe2a:0x64a,_0x2c3aee:0x572,_0x3e2fa7:0x649},_0x55f573={_0x2f3706:0x40d,_0x31a07b:0x113,_0x4758f9:0x175,_0x3f92c2:0x130,_0x597511:0x2ca,_0x38dd2c:0x522,_0x5d50a9:0x1b5,_0x350062:0x1b0,_0x49cea6:0x1a0,_0x6af161:0x11e,_0x55c3f9:0x148,_0x3a15d0:0x14e,_0x573576:0x32,_0x37d9fd:0x484,_0x16312f:0xcf,_0x2ad34c:0xd2,_0x5a9924:0x20,_0x4dfbb8:0x4c8,_0x782b6e:0x42c,_0x58b042:0x39f,_0x5292ee:0xee,_0x5927f1:0x112,_0x2634bd:0x112,_0xf73c68:0x176,_0xc1b449:0x1b7,_0x551bdb:0x3af,_0x498210:0x2d0,_0x17c85a:0x1fc,_0x29f41e:0x306,_0x621df1:0x390,_0x304676:0xd9,_0x42823c:0x7b,_0x34d89f:0x3ff,_0x5c82df:0x471,_0x489844:0x36e,_0x18da42:0x29e,_0x39ba3e:0x2d9,_0x5bcaed:0x48,_0x277245:0x5b7,_0x1407dc:0x169,_0x27b104:0x37d,_0x2621c2:0x48,_0x4e8f99:0x10f,_0x2591c2:0x44,_0x5a9791:0x106,_0x4461cc:0x4af,_0x58b8ac:0x4b5,_0x57658e:0x3d4,_0x18e90d:0x36f,_0x5bf446:0x3c8,_0x106eea:0x51,_0x1c6ab6:0x1b,_0x4fe8c5:0x9e,_0x5052a3:0x265,_0xaea069:0x36c,_0x5ef989:0xbb,_0x5b6ead:0x502,_0x316faa:0xad,_0x532441:0x1c3,_0x17c5ee:0x7b,_0x1c6ceb:0x51,_0x2bea14:0xcc,_0x5213c3:0x11,_0x463411:0x132,_0x16234f:0x35,_0x277145:0x148,_0x3a988b:0x4,_0x4ed92c:0x423,_0x45d5b5:0x37f,_0x2cb12e:0x36e,_0x320c60:0x1bf,_0x5e1942:0x1ec,_0x31d99f:0x522,_0x4482e7:0x5d0,_0x3b8729:0x5dc,_0x759271:0x4c4,_0x3f4231:0x71,_0x15b5ce:0x55b,_0x1bdf5e:0x42f,_0xcbec3a:0x468,_0x15212f:0x1cd,_0x148937:0x119,_0x44cc7b:0x23a,_0x54558a:0x25e,_0x30597d:0x320,_0x4bf46f:0x1e6,_0x228e21:0xdd,_0x21bae2:0x3bd},_0x209537={_0x49db40:0x73,_0x3601cf:0x21,_0x1d6825:0x491,_0x328813:0x513,_0x461d52:0x4e0,_0x94e2e3:0x3f4,_0x22a714:0x37f},_0x1248ff={_0x179845:0xe6,_0x5da7f2:0x199,_0x65a42a:0xb2,_0x5cc7b7:0x1c7},_0x552d2f={_0x5cca9d:0x3b,_0x25a0ac:0xec},_0x436156={_0x3c614e:0x4d,_0x25d211:0x127,_0x3d8c21:0x1ae},_0x23aed4={_0x34af4f:0x528},_0x410fc2={_0x1ef8b0:0x249,_0x546e42:0xc0},_0x10f4e5=_0x4297ba['resolve'](_0xc700dc[_0x175b7e(0x206,_0x19c55d._0x40f0ea,0x3b1,_0x19c55d._0x560119)]??process['cwd']()),_0x274ec6=(_0xc700dc[_0x175b7e(_0x19c55d._0x207be2,_0x19c55d._0x5b92f4,_0x19c55d._0x5638de,0x25a)]??[])[_0x175b7e(_0x19c55d._0x35ed88,_0x19c55d._0x1ae855,_0x19c55d._0x40f0ea,_0x19c55d._0xe66189)](_0x5beb5f=>_0x4297ba[_0x175b7e(0xef,0x192,0x310,0x21c)](_0x5beb5f)),_0x1411dd=_0xc700dc[_0xfa8ad1(_0x19c55d._0x327869,0x41f,_0x19c55d._0x31bccc,_0x19c55d._0xdb312c)]??DEFAULT_TIMEOUT_MS;function _0x175b7e(_0x15f646,_0x3eff32,_0x535d12,_0x4d5d01){return _0x324926(_0x4d5d01-_0x410fc2._0x1ef8b0,_0x535d12,_0x535d12-_0x410fc2._0x546e42,_0x4d5d01-0x46);}const _0x2f982f=_0xc700dc[_0xfa8ad1(_0x19c55d._0x7863f8,0x593,_0x19c55d._0x2130f5,0x631)]??!![],_0x5549d7=_0xc700dc['name']??'Bash';function _0xfa8ad1(_0x483b6f,_0x48881,_0x3682ba,_0x47bea7){return _0x324926(_0x48881-_0x23aed4._0x34af4f,_0x47bea7,_0x3682ba-0xeb,_0x47bea7-0x189);}return defineTool({'name':_0x5549d7,'description':_0xc700dc[_0x175b7e(0x95,0xcd,0x1e5,_0x19c55d._0x1133f1)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x175b7e(_0x19c55d._0xd96cec,_0x19c55d._0x3a7d19,0x31d,_0x19c55d._0x54cea6),'properties':{'command':{'type':_0x175b7e(_0x19c55d._0x110cb9,0x371,_0x19c55d._0x23ca3d,_0x19c55d._0x1ddf0f)},'cwd':{'type':_0x175b7e(_0x19c55d._0x555ed5,0x1aa,_0x19c55d._0x4abef9,0x2d8)},'timeoutMs':{'type':_0x175b7e(0x2a8,_0x19c55d._0x215d53,0x121,0x24a)},'ignoreOutput':{'type':_0xfa8ad1(0x468,0x55b,0x573,_0x19c55d._0x31fe2a)}},'required':[_0xfa8ad1(_0x19c55d._0x2c3aee,_0x19c55d._0x3e2fa7,0x57c,0x653)]},async *'execute'(_0x1ccc25,_0x5c1824){const _0x3c5f9d={_0x284400:0xea,_0x2ef986:0x19,_0x728f5b:0x12e,_0x48d8b9:0x227,_0x4ab691:0x4a4,_0x271ac5:0x3e5},_0x589a92={_0x1a130b:0x46,_0x3c3cf6:0x76},_0x2a7437={_0x14c578:0x2bf,_0x3f4f36:0x60,_0xaddd2c:0x21d,_0x31fe3b:0x190},_0x3da28f={_0x2a5d28:0x5a},_0x2d6883={_0x3de823:0x4ce},_0x30f2d7=_0x1ccc25[_0x4417ce(0x310,_0x55f573._0x2f3706,0x496,0x40f)]??_0x1411dd;if(!Number[_0x24084a(-_0x55f573._0x31a07b,-_0x55f573._0x4758f9,-0x79,-_0x55f573._0x3f92c2)](_0x30f2d7)||_0x30f2d7<0x1)throw new ToolExecutionError(_0x4417ce(_0x55f573._0x597511,0x308,0x26c,0x2cf),{'command':_0x1ccc25[_0x4417ce(0x5eb,0x5b7,0x432,_0x55f573._0x38dd2c)]});throwIfAborted(_0x5c1824['signal']);const _0x101caa=resolveWorkingDirectory(_0x1ccc25[_0x24084a(-_0x55f573._0x5d50a9,-0xae,-0x260,-_0x55f573._0x350062)],_0x10f4e5,_0x274ec6),_0x288ff7=_0x1ccc25[_0x24084a(-_0x55f573._0x49cea6,-_0x55f573._0x6af161,-0x133,-_0x55f573._0x55c3f9)]??![];function _0x4417ce(_0x339231,_0x525347,_0x403f1f,_0x5022ba){return _0xfa8ad1(_0x339231-_0x436156._0x3c614e,_0x5022ba- -_0x436156._0x25d211,_0x403f1f-_0x436156._0x3d8c21,_0x525347);}const _0x4c0fa5=resolveDefaultShell(_0xc700dc[_0x24084a(0x60,_0x55f573._0x3a15d0,-0xb4,-_0x55f573._0x573576)]),_0x49e02d=buildShellArgs(_0x1ccc25[_0x4417ce(0x45b,0x5ac,_0x55f573._0x37d9fd,_0x55f573._0x38dd2c)],_0x4c0fa5),_0x3e2c59=_0x16f5a4[_0x24084a(-0x7c,-_0x55f573._0x16312f,-_0x55f573._0x2ad34c,_0x55f573._0x5a9924)]()==='win32';let _0x2ceb50;try{_0x2ceb50=_0x3ec891(_0x4c0fa5,_0x49e02d,{'cwd':_0x101caa,'env':{...process[_0x4417ce(_0x55f573._0x4dfbb8,0x3e3,_0x55f573._0x782b6e,0x415)],..._0xc700dc['env']??{}},'stdio':_0x288ff7?[_0x4417ce(0x3f7,0x2e0,0x44e,_0x55f573._0x58b042),_0x24084a(-0x112,-_0x55f573._0x5292ee,-0x220,-_0x55f573._0x5927f1),_0x24084a(-_0x55f573._0x2634bd,-_0x55f573._0xf73c68,-0x17b,-_0x55f573._0xc1b449)]:[_0x4417ce(_0x55f573._0x551bdb,_0x55f573._0x782b6e,_0x55f573._0x498210,0x39f),_0x24084a(-0xf5,-_0x55f573._0x17c85a,-0x192,-0x1b7),_0x4417ce(_0x55f573._0x29f41e,_0x55f573._0x621df1,0x42d,0x3bc)],'shell':![],'windowsHide':!![],'detached':!_0x3e2c59});}catch(_0x247038){if(isErrnoException(_0x247038)&&_0x247038[_0x24084a(0x51,_0x55f573._0x304676,_0x55f573._0x42823c,0x80)]===_0x4417ce(0x45f,_0x55f573._0x34d89f,_0x55f573._0x5c82df,_0x55f573._0x489844))throw new ToolExecutionError(_0x24084a(-0x1bf,-0xdd,-_0x55f573._0x18da42,-_0x55f573._0x39ba3e)+_0x4c0fa5,{'command':_0x1ccc25['command'],'cwd':_0x101caa,'shellPath':_0x4c0fa5});throw new ToolExecutionError(_0x247038 instanceof Error?_0x247038[_0x24084a(0x13,0xb2,-0xd7,-_0x55f573._0x5bcaed)]:String(_0x247038),{'command':_0x1ccc25['command'],'cwd':_0x101caa,'shellPath':_0x4c0fa5});}const _0x48fe3c=[],_0xdc34b8=[],_0x4da36c=new StringDecoder('utf8'),_0x3760db=new StringDecoder('utf8');let _0xc52800,_0x46e49f=![],_0xd85dd;const _0x2d3cb9=()=>{if(!_0xc52800)return;const _0x5e3cdb=_0xc52800;_0xc52800=void 0x0,_0x5e3cdb();},_0x5741e0=async()=>{if(_0xdc34b8[_0x2a45f7(0x25c,0x34b,0x150,0x169)]>0x0||_0x46e49f)return;function _0x2a45f7(_0x11f96f,_0xf263ac,_0x375f2f,_0x46ef99){return _0x4417ce(_0x11f96f-0x1ed,_0xf263ac,_0x375f2f-0x51,_0x11f96f- -0x1b1);}await new Promise(_0x16540b=>{_0xc52800=_0x16540b;});},_0x41ea29=_0xf0e22d=>{appendChunk(_0x48fe3c,_0xdc34b8,_0x4da36c['write'](_0xf0e22d),_0x2f982f,_0x2d3cb9);},_0x285a35=_0x1cc336=>{const _0x460be1={_0x2880b8:0x82};function _0x4adc5(_0x2b90b2,_0x46f9ce,_0x44347d,_0x297c59){return _0x4417ce(_0x2b90b2-0x93,_0x44347d,_0x44347d-0x17e,_0x297c59- -_0x460be1._0x2880b8);}appendChunk(_0x48fe3c,_0xdc34b8,_0x3760db[_0x4adc5(0x45f,_0x2d6883._0x3de823,0x41d,0x3f9)](_0x1cc336),_0x2f982f,_0x2d3cb9);};_0x2ceb50[_0x4417ce(0x488,0x52d,_0x55f573._0x277245,0x4d8)]?.['on'](_0x24084a(-0x191,-0x14a,-_0x55f573._0x1407dc,-0xf5),_0x41ea29),_0x2ceb50[_0x24084a(-0x49,-0x69,0x6e,-0x7d)]?.['on'](_0x4417ce(0x33f,0x429,_0x55f573._0x27b104,0x320),_0x285a35);let _0x547515=![];function _0x24084a(_0x1179eb,_0x21045c,_0x5a440b,_0x124101){return _0xfa8ad1(_0x1179eb-_0x552d2f._0x5cca9d,_0x1179eb- -0x5d8,_0x5a440b-_0x552d2f._0x25a0ac,_0x21045c);}let _0x3ad6bc;const _0x3a8449=addAbortListener(_0x5c1824[_0x24084a(-0xad,-0x14f,-_0x55f573._0x2621c2,-0x17d)],()=>{const _0x3d055d={_0x7834fb:0x26b};_0xd85dd=toAbortError(_0x5c1824[_0x581d96(_0x1248ff._0x179845,0x1e3,_0x1248ff._0x5da7f2,_0x1248ff._0x65a42a)][_0x201d08(-0x37d,-0x2e4,-0x378,-_0x1248ff._0x5cc7b7)]),_0x46e49f=!![];function _0x201d08(_0x57280a,_0x81d67a,_0x3352b0,_0x52c87f){return _0x4417ce(_0x57280a-_0x3da28f._0x2a5d28,_0x57280a,_0x3352b0-0x4e,_0x81d67a- -0x603);}_0x2d3cb9();function _0x581d96(_0xb505d0,_0x4f3a38,_0x353e18,_0x31d191){return _0x4417ce(_0xb505d0-0xbf,_0x4f3a38,_0x353e18-0x19d,_0x353e18- -_0x3d055d._0x7834fb);}try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}});try{const _0x59ec66=new Promise((_0x5ebd1f,_0x49d0cf)=>{const _0x3a8edb={_0x3d29a6:0x104,_0x121019:0x7e,_0x2fc46a:0x2d6},_0x4098cd={_0x5b4067:0x1d2,_0x891a1:0x69,_0xb63f5c:0x147,_0x301789:0x7e},_0x580319=()=>{_0x3ad6bc&&(clearTimeout(_0x3ad6bc),_0x3ad6bc=void 0x0);function _0x56cf37(_0x26f1ec,_0x4e01e9,_0x31df8f,_0x3a9f19){return _0x7ca6(_0x4e01e9-0x9e,_0x3a9f19);}_0x2ceb50[_0x56cf37(_0x2a7437._0x14c578,0x25d,0x173,0x348)](_0x130279(0x93,_0x2a7437._0x3f4f36,-0xd,-0x9e),_0x3e4ce6);function _0x130279(_0x4b215e,_0x432af9,_0x4e5b42,_0x5f1996){return _0x7ca6(_0x4e5b42- -0x2f5,_0x4b215e);}_0x2ceb50['off'](_0x56cf37(0x15b,0x274,_0x2a7437._0xaddd2c,_0x2a7437._0x31fe3b),_0x3755d0);},_0x3e4ce6=_0x47f38c=>{_0x46e49f=!![],_0x2d3cb9(),_0x580319(),_0x49d0cf(_0xd85dd??_0x47f38c);};function _0x58ea68(_0x367c3b,_0x343f23,_0x263167,_0x45a442){return _0x4417ce(_0x367c3b-0xef,_0x45a442,_0x263167-_0x589a92._0x1a130b,_0x367c3b- -_0x589a92._0x3c3cf6);}const _0x3755d0=(_0x217781,_0x8b0413)=>{const _0x5c3cf9={_0x561920:0x99},_0x4d61b8={_0xeb8003:0xbb};_0x547515=!![],appendChunk(_0x48fe3c,_0xdc34b8,_0x4da36c[_0x5b0518(0x2bc,0x169,_0x4098cd._0x5b4067,0x129)](),_0x2f982f,_0x2d3cb9);function _0x5b0518(_0xcadf25,_0x19e651,_0x483470,_0x245410){return _0x7ca6(_0x483470-_0x4d61b8._0xeb8003,_0xcadf25);}appendChunk(_0x48fe3c,_0xdc34b8,_0x3760db[_0x40361a(-_0x4098cd._0x891a1,_0x4098cd._0xb63f5c,-0x75,_0x4098cd._0x301789)](),_0x2f982f,_0x2d3cb9),_0x46e49f=!![],_0x2d3cb9();function _0x40361a(_0x25c349,_0x1c277f,_0x1b7664,_0x4220d0){return _0x7ca6(_0x4220d0- -_0x5c3cf9._0x561920,_0x1b7664);}_0x580319();if(_0xd85dd){_0x49d0cf(_0xd85dd);return;}_0x5ebd1f({'code':_0x217781,'signal':_0x8b0413});};_0x3ad6bc=setTimeout(()=>{function _0x33e621(_0x4ba1ee,_0x2c0416,_0x2878ff,_0x34b029){return _0x7ca6(_0x2c0416- -0x325,_0x4ba1ee);}_0x46e49f=!![];function _0x356a7b(_0x1b1a1c,_0x2b2c8e,_0x52fe73,_0x5179ec){return _0x7ca6(_0x1b1a1c-0x1a1,_0x5179ec);}_0x2d3cb9(),_0x580319();try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}_0x49d0cf(new ToolExecutionError(_0x33e621(-_0x3c5f9d._0x284400,-0x86,-_0x3c5f9d._0x2ef986,-0x94)+_0x30f2d7+_0x33e621(-0x1d,-_0x3c5f9d._0x728f5b,-_0x3c5f9d._0x48d8b9,-0x120),{'command':_0x1ccc25[_0x356a7b(_0x3c5f9d._0x4ab691,0x3f9,0x41a,_0x3c5f9d._0x271ac5)],'cwd':_0x101caa,'shellPath':_0x4c0fa5,'timeoutMs':_0x30f2d7,'timedOut':!![]}));},_0x30f2d7),_0x2ceb50[_0x34bbfd(0x45,0x142,_0x209537._0x49db40,_0x209537._0x3601cf)](_0x58ea68(_0x209537._0x1d6825,_0x209537._0x328813,_0x209537._0x461d52,_0x209537._0x94e2e3),_0x3e4ce6);function _0x34bbfd(_0x283664,_0x2d5f1f,_0x1e6f40,_0x6717cf){return _0x4417ce(_0x283664-_0x3a8edb._0x3d29a6,_0x2d5f1f,_0x1e6f40-_0x3a8edb._0x121019,_0x1e6f40- -_0x3a8edb._0x2fc46a);}_0x2ceb50['once'](_0x58ea68(_0x209537._0x22a714,0x26a,0x423,0x294),_0x3755d0);});while(_0xdc34b8[_0x24084a(-0xa4,-_0x55f573._0x4e8f99,-_0x55f573._0x2591c2,-_0x55f573._0x5a9791)]>0x0||!_0x46e49f){if(_0xdc34b8[_0x4417ce(0x4d1,_0x55f573._0x4461cc,0x507,0x40d)]===0x0){await _0x5741e0();continue;}const _0x44f0aa=_0xdc34b8[_0x4417ce(0x575,0x401,0x3d0,_0x55f573._0x58b8ac)]();_0x44f0aa!==void 0x0&&(yield _0x44f0aa);}const _0x51d932=await _0x59ec66,_0x6e73a1=_0x288ff7?_0x4417ce(_0x55f573._0x57658e,_0x55f573._0x18e90d,0x40a,_0x55f573._0x5bf446)+(_0x51d932[_0x24084a(_0x55f573._0x106eea,0x91,-_0x55f573._0x1c6ab6,-_0x55f573._0x4fe8c5)]??0x0):_0x48fe3c[_0x4417ce(_0x55f573._0x5052a3,_0x55f573._0xaea069,0x389,0x34f)](''),_0xa58e={'command':_0x1ccc25[_0x24084a(0x71,0xa0,-0x6,-_0x55f573._0x5ef989)],'cwd':_0x101caa,'exitCode':_0x51d932[_0x4417ce(0x3da,0x3fc,0x3fe,_0x55f573._0x5b6ead)]??0x0,'signal':_0x51d932[_0x24084a(-_0x55f573._0x316faa,-_0x55f573._0x532441,-0x1a2,-_0x55f573._0x17c5ee)],'ignoreOutput':_0x288ff7,'shellPath':_0x4c0fa5,'timeoutMs':_0x30f2d7};if(_0x51d932[_0x24084a(_0x55f573._0x1c6ceb,0x30,0x73,-0xcb)]!==0x0)throw new ToolExecutionError(_0x6e73a1||_0x24084a(-_0x55f573._0x2bea14,-0x8b,-_0x55f573._0x5213c3,-_0x55f573._0x463411)+(_0x51d932[_0x24084a(_0x55f573._0x1c6ceb,-_0x55f573._0x16234f,0x11,_0x55f573._0x277145)]??0x0),_0xa58e);return createToolOutput(_0x6e73a1,_0xa58e);}catch(_0x35205d){while(_0xdc34b8['length']>0x0){const _0x68d7bd=_0xdc34b8[_0x24084a(_0x55f573._0x3a988b,-0xc4,0x0,0xe1)]();_0x68d7bd!==void 0x0&&(yield _0x68d7bd);}if(_0x35205d instanceof ToolExecutionError)throw _0x35205d;if(_0xd85dd)throw _0xd85dd;if(isErrnoException(_0x35205d)&&_0x35205d[_0x24084a(0x51,-0x3d,0x118,0x96)]===_0x4417ce(_0x55f573._0x4ed92c,0x37f,_0x55f573._0x45d5b5,_0x55f573._0x2cb12e))throw new ToolExecutionError(_0x24084a(-_0x55f573._0x320c60,-_0x55f573._0x5e1942,-0x173,-0x20d)+_0x4c0fa5,{'command':_0x1ccc25[_0x4417ce(0x4bb,0x47f,_0x55f573._0x31d99f,0x522)],'cwd':_0x101caa,'shellPath':_0x4c0fa5});throw new ToolExecutionError(_0x35205d instanceof Error?_0x35205d[_0x4417ce(0x524,_0x55f573._0x4482e7,_0x55f573._0x3b8729,_0x55f573._0x759271)]:String(_0x35205d),{'command':_0x1ccc25[_0x24084a(_0x55f573._0x3f4231,0xcd,-0x18,-0xa)],'cwd':_0x101caa,'shellPath':_0x4c0fa5});}finally{_0x3ad6bc&&clearTimeout(_0x3ad6bc);_0x3a8449(),_0x2ceb50[_0x4417ce(_0x55f573._0x15b5ce,0x50d,0x542,0x4d8)]?.['off']('data',_0x41ea29),_0x2ceb50[_0x4417ce(_0x55f573._0x1bdf5e,0x3a6,0x40c,_0x55f573._0xcbec3a)]?.[_0x24084a(-0xd3,-0x10a,-_0x55f573._0x15212f,-_0x55f573._0x148937)](_0x4417ce(_0x55f573._0x44cc7b,_0x55f573._0x54558a,0x292,_0x55f573._0x30597d),_0x285a35);if(!_0x547515&&_0x2ceb50[_0x24084a(-0x186,-_0x55f573._0x4bf46f,-_0x55f573._0x228e21,-0x1f1)]&&!_0x2ceb50[_0x4417ce(0x4e6,0x293,0x3f9,_0x55f573._0x21bae2)])try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}}}});}function createShellExecTool(_0xea545c={}){return createBashTool(_0xea545c);}import{readdir,readFile as _0x25b50a}from'fs/promises';import{extname,join as _0x40af54}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x2c2125,join,relative as _0x2fdb30,resolve as _0x47b9ca}from'path';import{readdir as _0xca6ea1,readFile as _0x287108}from'fs/promises';import{join as _0x4546b9,relative as _0x229eb6,sep}from'path';import{delimiter}from'path';import{mkdir as _0x2e1abd,rm,stat as _0x2d8634,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0xa0cb3c}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4ea2af,rename,writeFile as _0x24d29a}from'fs/promises';import{homedir}from'os';import{dirname as _0x4beec0,isAbsolute as _0x520115,join as _0x4819a6,resolve as _0x5e4928}from'path';import{parse as _0x4a6239,stringify as _0x36e022}from'yaml';import{z}from'zod';import{cp,mkdir as _0x4b2c44,readFile as _0xf19864,rm as _0x21f3ee,writeFile as _0x1bbfed}from'fs/promises';import{homedir as _0x808d41}from'os';import{join as _0x364f7d}from'path';import{parse as _0x1ed70f,stringify as _0x1b1275}from'yaml';import{readdir as _0x3d7b74,readFile as _0x4f360e}from'fs/promises';import{join as _0x140150}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function _0x7ca6(_0xa63856,_0x1b1200){_0xa63856=_0xa63856-0xa4;const _0x275954=_0x2759();let _0x7ca6f9=_0x275954[_0xa63856];if(_0x7ca6['UitXLW']===undefined){var _0x18b287=function(_0x4b83e5){const _0x22a3e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49be13='',_0x90b96e='';for(let _0x21fab9=0x0,_0x2cc01b,_0x4f41e5,_0x5eec36=0x0;_0x4f41e5=_0x4b83e5['charAt'](_0x5eec36++);~_0x4f41e5&&(_0x2cc01b=_0x21fab9%0x4?_0x2cc01b*0x40+_0x4f41e5:_0x4f41e5,_0x21fab9++%0x4)?_0x49be13+=String['fromCharCode'](0xff&_0x2cc01b>>(-0x2*_0x21fab9&0x6)):0x0){_0x4f41e5=_0x22a3e4['indexOf'](_0x4f41e5);}for(let _0x57933c=0x0,_0x3ec891=_0x49be13['length'];_0x57933c<_0x3ec891;_0x57933c++){_0x90b96e+='%'+('00'+_0x49be13['charCodeAt'](_0x57933c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x90b96e);};_0x7ca6['pIboES']=_0x18b287,_0x7ca6['cNGFEP']={},_0x7ca6['UitXLW']=!![];}const _0x557557=_0x275954[0x0],_0xbda403=_0xa63856+_0x557557,_0x37d7db=_0x7ca6['cNGFEP'][_0xbda403];return!_0x37d7db?(_0x7ca6f9=_0x7ca6['pIboES'](_0x7ca6f9),_0x7ca6['cNGFEP'][_0xbda403]=_0x7ca6f9):_0x7ca6f9=_0x37d7db,_0x7ca6f9;}function tokenizeCommandArguments(_0x4bef11){const _0x4b3098={_0xbf7497:0x20,_0x2a0873:0x466,_0x16e265:0x4ca,_0x5d41e4:0xed,_0x90595a:0x115,_0xb9505f:0xe,_0x20c4c3:0x470,_0x304ad8:0x5b8},_0x1a1fc7={_0x5616e1:0x45a,_0x1e286d:0xe9},_0x3ef6b2={_0x288a42:0x1ea,_0x23f50f:0x5a};function _0x2086e9(_0x19fa75,_0x2e0acd,_0x23b117,_0x3f649b){return _0x22ef16(_0x23b117,_0x19fa75- -_0x3ef6b2._0x288a42,_0x23b117-_0x3ef6b2._0x23f50f,_0x3f649b-0xef);}function _0x27c5fd(_0x1bf140,_0x42df17,_0x25b032,_0x5a195d){return _0x324926(_0x25b032-_0x1a1fc7._0x5616e1,_0x42df17,_0x25b032-0x81,_0x5a195d-_0x1a1fc7._0x1e286d);}const _0x4257b2=[];let _0x2205b3='',_0x3bc553=0x0;while(_0x3bc553<_0x4bef11[_0x2086e9(_0x4b3098._0xbf7497,0x130,-0xd3,0xbb)]){const _0x2bd5a6=_0x4bef11[_0x3bc553];if(_0x2bd5a6==='\x5c'&&_0x3bc553+0x1<_0x4bef11[_0x27c5fd(0x3a4,0x357,0x466,0x3bf)])_0x2205b3+=_0x4bef11[_0x3bc553+0x1],_0x3bc553+=0x2;else{if(_0x2bd5a6==='\x22'||_0x2bd5a6==='\x27'){const _0x555620=_0x2bd5a6;_0x3bc553++;while(_0x3bc553<_0x4bef11[_0x27c5fd(0x4b5,0x543,_0x4b3098._0x2a0873,0x38f)]&&_0x4bef11[_0x3bc553]!==_0x555620){_0x4bef11[_0x3bc553]==='\x5c'&&_0x3bc553+0x1<_0x4bef11[_0x27c5fd(0x3e2,_0x4b3098._0x16e265,0x466,0x3b5)]?(_0x2205b3+=_0x4bef11[_0x3bc553+0x1],_0x3bc553+=0x2):(_0x2205b3+=_0x4bef11[_0x3bc553],_0x3bc553++);}_0x3bc553++;}else _0x2bd5a6!==void 0x0&&/\s/[_0x2086e9(-_0x4b3098._0x5d41e4,-0x1ce,-0x1c2,-_0x4b3098._0x90595a)](_0x2bd5a6)?(_0x2205b3&&(_0x4257b2[_0x2086e9(0xc0,-_0x4b3098._0xb9505f,0x18b,-0x53)](_0x2205b3),_0x2205b3=''),_0x3bc553++):(_0x2205b3+=_0x2bd5a6,_0x3bc553++);}}if(_0x2205b3)_0x4257b2[_0x27c5fd(0x4e1,_0x4b3098._0x20c4c3,0x506,_0x4b3098._0x304ad8)](_0x2205b3);return _0x4257b2;}function renderCommandInstructions(_0x46bf9f){const _0x25db0e={_0x48a3ac:0x255,_0x54e354:0x1b2,_0x3e613d:0x2cf,_0x49bbeb:0x3e0,_0x4bb051:0x36c,_0xf83436:0x328,_0xe88f45:0x4fd,_0x4bbc0e:0x4fe,_0xf62d0b:0x48b,_0x4ea2be:0x5e8,_0x12c5ca:0x1c2,_0x386e1a:0x25b,_0x500ecb:0x18f,_0x775e52:0x4d0,_0xf58123:0x23d,_0x3f81d1:0x319,_0x41c07b:0x20c,_0x298780:0x36a,_0x12331d:0x312,_0x26925d:0x3af,_0x381ab7:0x253},_0xa1d836={_0x596200:0x374},_0x5c960f={_0x2e063a:0x205,_0x4e6569:0x179},_0x356148={_0x58a697:0x244,_0x252c6d:0x20f,_0x654bcb:0x1d2};let _0x23bf0e=_0x46bf9f[_0x52c924(-_0x25db0e._0x48a3ac,-_0x25db0e._0x54e354,-_0x25db0e._0x3e613d,-_0x25db0e._0x49bbeb)],_0x4411c7=![];const _0x13661c=tokenizeCommandArguments(_0x46bf9f[_0x52c924(-0x37c,-_0x25db0e._0x4bb051,-_0x25db0e._0xf83436,-0x44d)]);_0x23bf0e=_0x23bf0e['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x1bdfd0,_0x5244f7)=>{return _0x4411c7=!![],_0x13661c[Number(_0x5244f7)]??'';}),_0x23bf0e=_0x23bf0e[_0x2799fc(_0x25db0e._0xe88f45,_0x25db0e._0x4bbc0e,_0x25db0e._0xf62d0b,0x46f)](/\$ARGUMENTS\b/g,()=>{const _0x7a9039={_0x1b23e3:0x1ba,_0x14ba54:0x156};function _0x1e8280(_0x209331,_0x230472,_0x43239d,_0x394c54){return _0x52c924(_0x209331-_0x7a9039._0x1b23e3,_0x230472-0x53,_0x394c54-_0x7a9039._0x14ba54,_0x230472);}return _0x4411c7=!![],_0x46bf9f[_0x1e8280(-_0x356148._0x58a697,-0x218,-_0x356148._0x252c6d,-_0x356148._0x654bcb)];});function _0x52c924(_0x2f12f7,_0x2dff60,_0xe75d50,_0x45d6c2){return _0x324926(_0xe75d50- -_0x5c960f._0x2e063a,_0x45d6c2,_0xe75d50-_0x5c960f._0x4e6569,_0x45d6c2-0x17);}if(_0x46bf9f[_0x2799fc(_0x25db0e._0x4ea2be,0x6b1,0x598,0x5fc)]&&_0x46bf9f[_0x52c924(-0x250,-0xda,-0x18f,-_0x25db0e._0x12c5ca)]['length']>0x0)for(let _0x1df128=0x0;_0x1df128<_0x46bf9f[_0x52c924(-_0x25db0e._0x386e1a,-0x1a5,-_0x25db0e._0x500ecb,-0x66)]['length'];_0x1df128++){const _0x479e3b=_0x46bf9f['argumentNames'][_0x1df128];if(_0x479e3b){const _0x497377=new RegExp('\x5c$'+_0x479e3b+'\x5cb','g');_0x23bf0e=_0x23bf0e['replace'](_0x497377,()=>{return _0x4411c7=!![],_0x13661c[_0x1df128]??'';});}}function _0x2799fc(_0x55923a,_0x460da6,_0x1a827e,_0x297e81){return _0x22ef16(_0x297e81,_0x55923a-_0xa1d836._0x596200,_0x1a827e-0xe9,_0x297e81-0x118);}return _0x23bf0e=_0x23bf0e[_0x2799fc(0x4fd,0x41b,0x57e,_0x25db0e._0x775e52)](/\$(\d+)\b/g,(_0x34ec26,_0x29362d)=>{return _0x4411c7=!![],_0x13661c[Number(_0x29362d)]??'';}),!_0x4411c7&&_0x46bf9f[_0x52c924(-0x229,-_0x25db0e._0xf58123,-0x328,-0x3f5)][_0x52c924(-_0x25db0e._0x3f81d1,-0x175,-_0x25db0e._0x41c07b,-0x17c)]()&&(_0x23bf0e=_0x23bf0e+_0x52c924(-_0x25db0e._0x298780,-0x41d,-0x30f,-0x257)+_0x46bf9f[_0x52c924(-_0x25db0e._0x12331d,-_0x25db0e._0x26925d,-_0x25db0e._0xf83436,-_0x25db0e._0x381ab7)]),_0x23bf0e;}var chatModelAuthSchemeSchema=z[_0x22ef16(0x258,0x179,0x18c,0x224)]([_0x22ef16(0x200,0x147,0x264,0x191),'x-api-key']),apiKeyAuthSchema=z[_0x324926(0x88,0xc0,0xfd,0xce)]({'type':z['literal'](_0x22ef16(0xfa,0x1ab,0x216,0x9f)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x22ef16(0x26a,0x1f5,0x307,0x304)]()})[_0x324926(0x0,-0x50,0x113,0x39)](),oauthAuthSchema=z[_0x324926(0x88,-0x3b,-0x34,0x4b)]({'type':z[_0x324926(-0x48,-0x12a,-0x15b,0x74)](_0x22ef16(0x251,0x29c,0x35c,0x256)),'access':z[_0x324926(0x8f,-0x6,0x14f,0x8e)](),'refresh':z[_0x22ef16(0x341,0x28d,0x172,0x247)](),'expires':z['number']()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x22ef16(0x101,0x1f5,0x252,0x2cd)]()})[_0x22ef16(0x309,0x1fe,0x1e1,0x174)](),authMethodSchema=z[_0x324926(0x60,0x101,0x12a,-0x5e)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x324926(0x88,0x11,-0x6e,0x89)]({'id':z[_0x324926(0x8f,0x178,0xbd,0x190)](),'name':z[_0x22ef16(0x3a6,0x28d,0x314,0x2e9)]()[_0x22ef16(0x321,0x1f5,0x203,0x16f)]()})[_0x22ef16(0x2cd,0x1fe,0x2f3,0x1cf)](),modelConfigSchema=z['union']([z[_0x22ef16(0x287,0x1b6,0x18b,0x22b)](![]),z[_0x22ef16(0x1c1,0x1b6,0x116,0xbb)](!![]),z['string'](),z[_0x324926(0x118,0x195,-0x10,0x1e9)](z['string']()),z[_0x324926(0x118,0xa3,0x111,0x151)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x22ef16(0xe3,0x179,0xd2,0x177)]([_0x324926(-0x99,-0x197,-0x186,-0x15b),'openai-chat-completions','openai-responses','openai-responses-ws']),providerConfigSchema=z['object']({'apiKey':z[_0x324926(0x8f,-0x4,-0x9d,0xd9)]()[_0x22ef16(0x1ab,0x1f5,0xd5,0x1be)](),'token':z[_0x324926(0x8f,-0x6,0x14c,0x1a3)]()[_0x22ef16(0x180,0x1f5,0x290,0x321)](),'defaultModel':z[_0x22ef16(0x1cb,0x28d,0x2a9,0x17f)]()[_0x22ef16(0x2db,0x1f5,0x266,0x256)](),'smallModel':z['string']()[_0x22ef16(0x22b,0x1f5,0x2af,0x201)](),'currentAuth':z[_0x22ef16(0x1a2,0x28d,0x267,0x1ab)]()['optional'](),'auth':z[_0x324926(0x118,0x15a,0x20f,0xc7)](authMethodSchema)[_0x22ef16(0xe2,0x1f5,0x209,0x155)](),'surface':chatModelSurfaceSchema[_0x22ef16(0x261,0x1f5,0x1be,0x20b)](),'baseUrl':z[_0x324926(0x8f,-0x41,0xf7,0x6a)]()[_0x22ef16(0x145,0x1f5,0x2f0,0x1c3)](),'models':modelConfigSchema[_0x22ef16(0x124,0x1f5,0x309,0xd1)](),'customHeaders':z[_0x22ef16(0x28b,0x302,0x419,0x1f5)](z['string'](),z[_0x324926(0x8f,0x199,0x194,0xba)]())[_0x324926(-0x9,0xc5,-0x57,0xaa)]()})[_0x22ef16(0x2f7,0x1fe,0x103,0x109)]();function _0x22ef16(_0x2fc1d7,_0x5e4ae2,_0xfab7a3,_0x3160eb){const _0x4acd76={_0x3ee272:0x1c};return _0x7ca6(_0x5e4ae2-_0x4acd76._0x3ee272,_0x2fc1d7);}function _0x324926(_0x143956,_0x2122a6,_0x2d606d,_0x26d6b9){const _0x153b01={_0x33ea06:0x1e2};return _0x7ca6(_0x143956- -_0x153b01._0x33ea06,_0x2122a6);}var mcpServerConfigSchema=z[_0x22ef16(0x25b,0x286,0x1bc,0x243)]({'command':z['string']()[_0x324926(-0x9,0x35,-0xc4,-0xc5)](),'args':z['array'](z[_0x22ef16(0x280,0x28d,0x2f7,0x362)]())['optional'](),'env':z[_0x22ef16(0x210,0x302,0x1d8,0x40d)](z[_0x324926(0x8f,0xa5,-0x94,0x63)](),z[_0x324926(0x8f,-0x2f,-0x57,0x1c)]())[_0x22ef16(0x1dc,0x1f5,0xfa,0x2c2)](),'transport':z[_0x22ef16(0x266,0x179,0x103,0x244)]([_0x324926(0xdc,0x176,0x28,-0x54),_0x324926(0x9d,0x65,0x151,0x4)])[_0x22ef16(0x248,0x1f5,0x29e,0x2a0)](),'url':z[_0x324926(0x8f,0x16f,0xa8,0x6a)]()[_0x22ef16(0x150,0x1f5,0x1b4,0x10d)](),'headers':z[_0x22ef16(0x422,0x302,0x379,0x3e2)](z[_0x22ef16(0x363,0x28d,0x274,0x30d)](),z[_0x22ef16(0x221,0x28d,0x2db,0x20c)]())['optional'](),'prefix':z[_0x324926(0x8f,0xde,0x114,-0x5)]()[_0x324926(-0x9,0xf6,0x2c,0x39)](),'timeoutMs':z[_0x324926(0x1,-0x88,0x75,-0x112)]()[_0x22ef16(0x298,0x1f5,0x241,0xed)](),'enabled':z[_0x22ef16(0x35e,0x231,0x29e,0x229)]()[_0x324926(-0x9,-0x82,0x37,0x61)](),'auth':z[_0x324926(0x88,0xe0,0xd7,0x189)]({'type':z[_0x324926(-0x85,0x1e,-0x7b,-0x16)](['none',_0x22ef16(0x39,0x147,0x23c,0x47),_0x22ef16(0x3a3,0x29c,0x198,0x173)]),'token':z[_0x324926(0x8f,0x84,0xc4,0x14e)]()[_0x22ef16(0x287,0x1f5,0x1ba,0x1c8)](),'oauth':z[_0x324926(0x88,0x8c,0x25,0x85)]({'clientId':z[_0x22ef16(0x1fc,0x28d,0x214,0x25d)]()[_0x324926(-0x9,0xbb,-0x10e,0x65)](),'clientMetadataUrl':z['string']()[_0x324926(-0x9,-0xb9,0x116,-0x6)](),'authorizationServer':z[_0x22ef16(0x1c1,0x28d,0x3a0,0x1d6)]()[_0x22ef16(0x167,0x1f5,0x1b8,0x1d6)](),'scopes':z[_0x22ef16(0x353,0x316,0x373,0x26d)](z[_0x22ef16(0x1ca,0x28d,0x395,0x34a)]())[_0x324926(-0x9,0x46,0x5a,0xc2)](),'tokenStorageKey':z[_0x22ef16(0x19e,0x28d,0x260,0x27e)]()[_0x324926(-0x9,0x7a,0xbf,0x2d)]()})[_0x324926(0x0,0x24,0x19,0x106)]()[_0x22ef16(0x1b2,0x1f5,0x20c,0x151)]()})[_0x22ef16(0x146,0x1fe,0x1f6,0x13a)]()[_0x22ef16(0x1bd,0x1f5,0x116,0x2d0)]()})[_0x324926(0x0,-0x12e,-0xdf,0x11c)](),mcpSettingsSchema=z[_0x22ef16(0x194,0x286,0x204,0x1c4)]({'servers':z[_0x22ef16(0x2fa,0x302,0x3de,0x263)](z[_0x22ef16(0x214,0x28d,0x198,0x19c)](),mcpServerConfigSchema)[_0x324926(-0x9,-0x69,-0x6d,-0x4a)](),'allowedTools':z[_0x22ef16(0x2f2,0x302,0x32f,0x27a)](z[_0x324926(0x8f,0x37,-0x9e,0x171)](),z['record'](z[_0x324926(0x8f,0x8d,0x137,-0x46)](),z['boolean']()))[_0x324926(-0x9,-0x55,-0xcc,-0x2b)](),'defaultTimeoutMs':z[_0x324926(0x1,0x106,0x11e,-0x12b)]()[_0x22ef16(0x2a9,0x1f5,0x2fe,0x2a2)]()})['passthrough'](),skillsSettingsSchema=z[_0x22ef16(0x362,0x286,0x384,0x18d)]({'enabled':z[_0x22ef16(0x25d,0x231,0x35a,0x20c)]()['optional'](),'includeDefaults':z['boolean']()[_0x22ef16(0x194,0x1f5,0xfe,0x141)](),'directories':z[_0x22ef16(0x239,0x316,0x262,0x26a)](z['string']())[_0x324926(-0x9,0xd,0x123,0xb3)](),'exclude':z['array'](z['string']())['optional']()})[_0x324926(0x0,0x15,-0xc8,0x8f)](),commandsSettingsSchema=z[_0x324926(0x88,0x180,-0x24,0x9e)]({'enabled':z['boolean']()[_0x22ef16(0x30d,0x1f5,0x19f,0x123)](),'directories':z[_0x324926(0x118,0x132,0x21f,0x1df)](z['string']())[_0x324926(-0x9,-0xdb,-0x108,-0x38)]()})[_0x324926(0x0,0x106,0x60,0x109)](),agentsSettingsSchema=z[_0x324926(0x88,-0x9a,0xa5,0xb3)]({'enabled':z[_0x22ef16(0x139,0x231,0x1fe,0x2c2)]()['optional'](),'includeDefaults':z[_0x324926(0x33,-0x56,0xad,0xd2)]()[_0x22ef16(0x1b0,0x1f5,0x2b0,0x2a3)](),'directories':z[_0x324926(0x118,0x76,0x13b,0xd1)](z[_0x324926(0x8f,-0x31,0x11,-0x1b)]())[_0x22ef16(0x242,0x1f5,0x270,0x2db)]()})[_0x324926(0x0,0x1b,-0x75,0xcb)](),uiThemeSettingsSchema=z[_0x22ef16(0x21c,0x286,0x288,0x31f)]({'mode':z[_0x324926(-0x85,-0x7d,-0x60,0x71)](['auto',_0x324926(-0x47,-0x114,-0x81,-0x134),_0x22ef16(0x39c,0x2ce,0x232,0x27a)])['optional'](),'colorLevel':z[_0x22ef16(0x206,0x179,0xe2,0x1d0)]([_0x324926(-0x12e,-0x92,-0xb2,-0x224),_0x22ef16(0x399,0x27e,0x22a,0x28c),_0x22ef16(0x1e7,0x112,0xb6,0x12a),_0x22ef16(0x28e,0x2b9,0x3af,0x219),'truecolor'])[_0x22ef16(0xcb,0x1f5,0x115,0x12a)](),'backgrounds':z[_0x22ef16(0x1ef,0x179,0xf5,0x1bd)]([_0x324926(-0x12e,-0x239,-0x1ce,-0xb7),'on',_0x22ef16(0x1d6,0x1db,0x12a,0x10f)])[_0x324926(-0x9,-0x88,-0x10a,-0x25)](),'messageStyle':z[_0x324926(-0x85,-0x13c,-0x130,-0x14e)]([_0x22ef16(0x2be,0x204,0x1d8,0x26e),_0x22ef16(0x237,0x1f9,0xfc,0x180)])['optional']()})['passthrough'](),statuslineSegmentSchema=z[_0x22ef16(0x79,0x179,0x28c,0x1f4)]([_0x324926(0xf3,0x72,0x15e,0x5b),_0x22ef16(0x289,0x2f7,0x24b,0x1ca),_0x22ef16(0x1a7,0x215,0xf4,0x293),'sudo',_0x324926(-0x11d,-0xde,-0x14d,-0x168),'context','cached',_0x22ef16(0x2a5,0x2e2,0x3d6,0x1b7),'tools',_0x22ef16(0x21c,0x1a0,0x29b,0x215),_0x22ef16(0x31d,0x2b6,0x24e,0x1ac),_0x22ef16(0x2d5,0x275,0x187,0x31f),_0x324926(0x86,0x158,0x0,0x154),_0x22ef16(0x34a,0x2db,0x3bc,0x2b3),_0x324926(-0x50,0x5a,-0x11d,0x6d)]),statuslineItemSchema=z[_0x324926(0x60,-0x76,-0x8a,-0x54)]([statuslineSegmentSchema,z[_0x324926(-0x48,0x4c,0x58,-0x54)]('|')]),statuslineRowSchema=z[_0x22ef16(0x3fd,0x316,0x3a5,0x28f)](statuslineItemSchema),statuslineConfigSchema=z[_0x22ef16(0x1ca,0x286,0x394,0x1ec)]({'rows':z[_0x324926(0x7f,0xdc,-0x29,0x55)]([statuslineRowSchema,statuslineRowSchema])[_0x22ef16(0x1f8,0x1f5,0x194,0x1ea)]()})[_0x324926(0x0,-0x10b,-0xde,-0x10f)](),memorySettingsSchema=z[_0x22ef16(0x38e,0x286,0x192,0x30e)]({'version':z['literal'](0x2)[_0x22ef16(0x312,0x1f5,0x2df,0x2ad)](),'retrieval':z[_0x324926(0x88,0x103,0x50,0x18d)]({'engine':z[_0x22ef16(0xb0,0x1b6,0x2b8,0x1aa)](_0x324926(0xfd,0x178,0xcb,0x36))[_0x324926(-0x9,0x126,-0x9f,0x59)](),'candidateLimit':z[_0x22ef16(0x11b,0x1ff,0x1c5,0xf1)]()[_0x22ef16(0x2ef,0x1f5,0x2a6,0x2f6)](),'activeCandidateLimit':z[_0x22ef16(0x18b,0x1ff,0x24f,0x1cc)]()[_0x22ef16(0x1b9,0x1f5,0x156,0x12a)](),'activeEnabled':z[_0x324926(0x33,0x5c,0xe5,0x9d)]()[_0x324926(-0x9,-0x11e,0x11f,-0x99)](),'maxQueriesPerTurn':z['number']()[_0x22ef16(0xd5,0x1f5,0x266,0x324)](),'coreInjectTokenBudget':z[_0x324926(0x1,-0x1b,0x83,-0x51)]()[_0x324926(-0x9,-0x75,-0x31,-0x6b)](),'injectTokenBudget':z[_0x22ef16(0x2a5,0x1ff,0x2c2,0x1c7)]()[_0x22ef16(0x2d8,0x1f5,0x113,0x236)](),'minScore':z['number']()[_0x22ef16(0x22d,0x1f5,0x2c2,0x1a1)](),'freshnessHalfLifeDays':z[_0x22ef16(0x1d8,0x1ff,0x297,0x130)]()[_0x22ef16(0xf8,0x1f5,0x2f8,0x1b4)]()})['passthrough']()[_0x22ef16(0x310,0x1f5,0x1ce,0x263)](),'extraction':z[_0x324926(0x88,0xb4,0x17a,-0x60)]({'enabled':z['boolean']()[_0x324926(-0x9,-0x5,0x115,-0xbf)](),'provider':z[_0x22ef16(0x19b,0x28d,0x235,0x1e8)]()[_0x22ef16(0x19e,0x1f5,0x27b,0x225)](),'model':z[_0x324926(0x8f,0xe8,0x19f,0xa9)]()[_0x22ef16(0x2f9,0x1f5,0xe4,0x1e9)](),'sensitiveFilter':z['boolean']()[_0x324926(-0x9,-0xe9,-0x102,0x47)]()})[_0x324926(0x0,0xce,-0x94,-0x80)]()[_0x324926(-0x9,0x20,0xec,0x6c)](),'index':z['object']({'persisted':z[_0x22ef16(0x206,0x231,0x311,0x229)]()[_0x22ef16(0x24d,0x1f5,0x110,0x266)](),'flushIntervalMs':z[_0x22ef16(0x307,0x1ff,0x28f,0x27c)]()[_0x324926(-0x9,-0x24,0x33,-0x12a)]()})[_0x22ef16(0x1f9,0x1fe,0x234,0x1f4)]()[_0x22ef16(0x2a0,0x1f5,0x1ac,0x1eb)](),'enabled':z['boolean']()[_0x22ef16(0x289,0x1f5,0x1e9,0x2ec)](),'saveTool':z[_0x324926(0x33,-0x20,-0x75,0x148)]()[_0x324926(-0x9,0xfc,-0x8f,0x12)](),'model':z[_0x22ef16(0x266,0x28d,0x174,0x2df)]()[_0x22ef16(0x200,0x1f5,0x2c1,0x31b)](),'provider':z[_0x324926(0x8f,-0x8e,0x166,0x19a)]()[_0x324926(-0x9,-0xd7,-0x11d,0x2a)](),'maxInjectionTokens':z['number']()[_0x22ef16(0x191,0x1f5,0x1e6,0x1f0)](),'backgroundExtraction':z[_0x324926(0x33,-0xa,0x6f,-0x37)]()[_0x22ef16(0x111,0x1f5,0x295,0x2d5)]()})[_0x324926(0x0,0xdd,-0x7e,0xfa)](),recentModelSchema=z['object']({'provider':z['string'](),'model':z[_0x324926(0x8f,0x143,-0x10,0x184)](),'usedAt':z['number']()})[_0x22ef16(0x16f,0x1fe,0x313,0x213)](),lspServerEntrySchema=z[_0x324926(0x88,-0x4e,0x99,0xef)]({'disabled':z['boolean']()['optional'](),'command':z[_0x22ef16(0x193,0x28d,0x38a,0x3b2)]()[_0x22ef16(0x265,0x1f5,0x270,0x1f1)](),'args':z[_0x22ef16(0x1e6,0x316,0x29c,0x3fd)](z['string']())['optional'](),'rootMarkers':z[_0x22ef16(0x383,0x316,0x202,0x24e)](z[_0x324926(0x8f,0xc4,0xe6,-0x84)]())['optional']()})[_0x22ef16(0x224,0x1fe,0x227,0x2c9)](),lspConfigSchema=z[_0x22ef16(0x33a,0x286,0x317,0x198)]({'enabled':z[_0x324926(0x33,0x127,0x16,-0x49)]()['optional'](),'servers':z[_0x324926(0x104,0x4,0x103,0x11c)](z[_0x324926(0x8f,-0x53,0xf5,0x8b)](),lspServerEntrySchema)[_0x324926(-0x9,0x100,0x57,-0x1e)]()})[_0x324926(0x0,-0x17,0xcf,-0x12e)](),cliConfigSchema=z[_0x22ef16(0x2b0,0x286,0x37b,0x184)]({'activeProvider':z['string']()[_0x324926(-0x9,-0xf9,-0xe2,0x11)](),'activeModel':z['string']()['optional'](),'apiKey':z[_0x22ef16(0x22d,0x28d,0x225,0x16e)]()[_0x22ef16(0x2ee,0x1f5,0xf6,0x1f7)](),'providers':z[_0x22ef16(0x3a1,0x302,0x370,0x2c6)](z[_0x22ef16(0x1f6,0x28d,0x342,0x2ef)](),providerConfigSchema)[_0x22ef16(0x139,0x1f5,0x171,0x1b4)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x324926(-0x9,0xc7,-0xcc,0xe0)](),'agents':agentsSettingsSchema['optional'](),'commands':commandsSettingsSchema[_0x324926(-0x9,0xad,0x2e,0x92)](),'skillsEnabled':z[_0x324926(0x104,0x1b9,0xbf,0x1c1)](z[_0x324926(0x8f,0x95,0x48,0xbb)](),z[_0x324926(0x33,-0xd6,0x54,0xc1)]())[_0x324926(-0x9,0x11a,-0x57,0x10f)](),'memory':memorySettingsSchema[_0x324926(-0x9,-0xd0,-0x7f,0x6c)](),'session':z[_0x324926(0x88,0xf1,0x1ab,0x130)]({'memPersist':z[_0x22ef16(0x1d4,0x231,0x1cc,0x292)]()[_0x324926(-0x9,-0x30,0xce,-0x4d)](),'persistEventLog':z[_0x22ef16(0x143,0x231,0x250,0x197)]()[_0x324926(-0x9,0xa7,0xa9,0x10d)](),'persistHttpLog':z[_0x22ef16(0x142,0x231,0x1f3,0x2c7)]()[_0x22ef16(0x2c5,0x1f5,0x2da,0x153)]()})[_0x22ef16(0x213,0x1fe,0x1f3,0x1cc)]()[_0x324926(-0x9,0xbe,0x71,0xa4)](),'requireToolApproval':z[_0x22ef16(0x21c,0x231,0x174,0x2dd)]()[_0x22ef16(0x28e,0x1f5,0x23a,0x101)](),'thinking':z[_0x324926(-0x85,-0x54,0xab,-0xb9)]([_0x22ef16(0x2b9,0x242,0x225,0x346),'LOW','MEDIUM',_0x324926(-0x46,-0x14c,0x3f,0x45)])['optional'](),'streamingChunks':z[_0x324926(0x33,0x95,-0xd1,-0x93)]()[_0x22ef16(0x172,0x1f5,0xda,0x27b)](),'agentsEnabled':z[_0x324926(0x104,0xad,0x60,0x1e7)](z[_0x22ef16(0x1e8,0x28d,0x1d5,0x1c5)](),z[_0x324926(0x33,0x35,-0xe4,0x7b)]())[_0x324926(-0x9,-0xe8,0x106,-0x2c)](),'recentModels':z['array'](recentModelSchema)['optional'](),'lsp':lspConfigSchema['optional'](),'ui':z[_0x22ef16(0x27e,0x286,0x23b,0x3a8)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x22ef16(0x303,0x1f5,0x24e,0x2b6)]()})[_0x324926(0x0,0x33,0xf7,0x76)]()[_0x324926(-0x9,-0xa5,-0xee,0x18)](),'tools':z[_0x22ef16(0x406,0x302,0x36a,0x2b7)](z[_0x22ef16(0x34d,0x28d,0x286,0x22f)](),z[_0x324926(0x9f,0xf6,0xfa,0x143)]())[_0x324926(-0x9,0x58,0xfb,0x6c)]()})['passthrough']();function buildDescription(_0x15448b){const _0x184a29={_0x2318af:0xfb,_0x53773c:0x30d,_0x3fded3:0x2a8,_0x26beee:0x325,_0x1da59e:0x123,_0x1c01be:0x81,_0x17f09c:0x6,_0x131109:0x249,_0x49ca15:0x1bb,_0x5a0cdb:0x23d,_0x28aae4:0x13d,_0x3c1cd9:0x1b9,_0x3a850d:0x3c6,_0x56b362:0xcf,_0x2c098f:0x2e,_0x47d2d6:0x3e9,_0x3d3f62:0x4bb,_0x4614e6:0x469},_0x3a23cb={_0x50fa8f:0xd5};if(_0x15448b[_0x4c50fa(-0x17e,-0xea,-0x83,-_0x184a29._0x2318af)]===0x0)return[_0x67348(_0x184a29._0x53773c,_0x184a29._0x3fded3,0x41f,_0x184a29._0x26beee),_0x4c50fa(-_0x184a29._0x1da59e,-_0x184a29._0x1c01be,-0x7b,_0x184a29._0x17f09c),_0x4c50fa(-_0x184a29._0x131109,-_0x184a29._0x49ca15,-_0x184a29._0x5a0cdb,-0x18a)][_0x4c50fa(-0x1d2,-_0x184a29._0x28aae4,-0x21b,-_0x184a29._0x3c1cd9)]('\x0a');function _0x67348(_0x253216,_0x4de4d6,_0x1b1831,_0x141b08){return _0x22ef16(_0x4de4d6,_0x253216-0x152,_0x1b1831-0x124,_0x141b08-0x12);}function _0x4c50fa(_0x5dc288,_0x42022f,_0x4c5898,_0x16b2a8){return _0x22ef16(_0x42022f,_0x16b2a8- -0x305,_0x4c5898-0xe9,_0x16b2a8-_0x3a23cb._0x50fa8f);}const _0x1f8a26=[_0x67348(_0x184a29._0x53773c,_0x184a29._0x3a850d,0x412,0x357),_0x4c50fa(-0x11f,-_0x184a29._0x56b362,-_0x184a29._0x2c098f,0x6),_0x67348(0x3b4,_0x184a29._0x47d2d6,_0x184a29._0x3d3f62,_0x184a29._0x4614e6),..._0x15448b['map'](_0x94c6f9=>_0x94c6f9[_0x4c50fa(-0x6e,-0x25f,-0x116,-0x181)]?'-\x20'+_0x94c6f9[_0x4c50fa(-0xf2,-0x240,-0x27f,-0x18e)]+'\x20'+_0x94c6f9['argumentHint']+':\x20'+_0x94c6f9[_0x67348(0x259,0x2da,0x2c3,0x18b)]:'-\x20'+_0x94c6f9[_0x67348(0x2c9,0x373,0x3b9,0x38e)]+':\x20'+_0x94c6f9['description'])];return _0x1f8a26['join']('\x0a');}function createInvokeCommandTool(_0x29bb9f){const _0x392d4c={_0x286ac2:0x494,_0x29b0b1:0x396,_0x2ca58d:0x41e,_0x3b9206:0x483,_0x52b084:0x4b9,_0x26e341:0xdf,_0x1394b3:0x7e,_0x466103:0x28b,_0x200a66:0x2f0,_0x55e157:0x557,_0x55232f:0x46e,_0x799d32:0x47b,_0x2dafa4:0x521,_0x315f29:0x5a8,_0x22681a:0x482},_0x2ba14d={_0x131a93:0xf1,_0x15e3c3:0x45,_0x2177ac:0x184,_0x1eab8b:0x266,_0x4f8cba:0x22e,_0x525c78:0x27c,_0x577a60:0x2ad,_0x1aa981:0x290,_0xcaebf1:0xb9,_0x5320d7:0x2a4,_0x17fedc:0x1f9,_0x526531:0x149,_0x4ce039:0x251,_0x1f49ce:0x316,_0x3c26ac:0x160,_0x59c793:0x18d,_0x3b7088:0x259,_0xa59d2b:0x91,_0x239b3b:0x17d,_0x400ea0:0x1ff,_0x4b5501:0x1e9,_0x52a293:0x261,_0xa64d96:0xaa,_0x572359:0x134},_0x4c629b={_0x470e52:0x1c},_0x3e2471={_0x452e84:0x221,_0x3581a4:0xea,_0x15641b:0x1e6},_0x1c8cd0={_0x1a996e:0x1c0,_0x148ef1:0x16e};function _0x2965fc(_0x3a6766,_0x19fd3c,_0x7b2732,_0x5ae5b2){return _0x324926(_0x5ae5b2-0x3f3,_0x7b2732,_0x7b2732-_0x1c8cd0._0x1a996e,_0x5ae5b2-_0x1c8cd0._0x148ef1);}function _0x4e705f(_0x3dc390,_0x32a556,_0x4d0a0f,_0x58ca8e){return _0x22ef16(_0x32a556,_0x4d0a0f- -_0x3e2471._0x452e84,_0x4d0a0f-_0x3e2471._0x3581a4,_0x58ca8e-_0x3e2471._0x15641b);}const _0x3bb47f=new Map(_0x29bb9f[_0x2965fc(0x53e,0x408,0x523,_0x392d4c._0x286ac2)][_0x2965fc(_0x392d4c._0x29b0b1,_0x392d4c._0x2ca58d,_0x392d4c._0x3b9206,_0x392d4c._0x52b084)](_0x3517f8=>[_0x3517f8['id'],_0x3517f8])),_0x38538b=buildDescription(_0x29bb9f[_0x4e705f(0xea,_0x392d4c._0x26e341,_0x392d4c._0x1394b3,0x181)]);return defineTool({'name':_0x2965fc(0x1e6,_0x392d4c._0x466103,0x3fa,_0x392d4c._0x200a66),'description':_0x38538b,'inputSchema':{'type':_0x2965fc(_0x392d4c._0x55e157,_0x392d4c._0x55232f,0x4c3,_0x392d4c._0x799d32),'properties':{'name':{'type':_0x4e705f(0x0,0xe7,0x6c,0x186)},'args':{'type':_0x2965fc(_0x392d4c._0x2dafa4,_0x392d4c._0x315f29,0x3d8,_0x392d4c._0x22681a)}},'required':['name']},async *'execute'(_0x3a99b2){const _0x46fabc=_0x3bb47f['get'](_0x3a99b2[_0x4e5679(_0x2ba14d._0x131a93,0x16c,_0x2ba14d._0x15e3c3,_0x2ba14d._0x2177ac)]);if(!_0x46fabc){const _0x44a1a6=Array[_0x4e5679(_0x2ba14d._0x1eab8b,_0x2ba14d._0x4f8cba,_0x2ba14d._0x525c78,_0x2ba14d._0x577a60)](_0x3bb47f[_0x3b3dd2(-0x151,-_0x2ba14d._0x1aa981,-0x1d7,-0x144)]())[_0x4e5679(0xc6,_0x2ba14d._0xcaebf1,0x1d2,0x1f0)](',\x20');throw new ToolExecutionError(_0x3b3dd2(-0x233,-0x257,-_0x2ba14d._0x5320d7,-_0x2ba14d._0x17fedc)+_0x3a99b2[_0x4e5679(_0x2ba14d._0x131a93,0x120,_0x2ba14d._0x526531,0x155)]+_0x4e5679(0x21a,0x1ae,0x198,_0x2ba14d._0x4ce039)+_0x44a1a6,{'name':_0x3a99b2[_0x3b3dd2(-0x14c,-_0x2ba14d._0x1f49ce,-0x204,-0x1d6)]});}function _0x3b3dd2(_0x49b91b,_0x1566da,_0x5c1c44,_0x2bcab3){return _0x2965fc(_0x49b91b-0x14b,_0x1566da-0x8e,_0x2bcab3,_0x5c1c44- -0x570);}const _0x29b268=await _0x29bb9f[_0x3b3dd2(-_0x2ba14d._0x3c26ac,-_0x2ba14d._0x59c793,-_0x2ba14d._0x3b7088,-0x252)](_0x46fabc),_0x5aef0d=_0x3a99b2[_0x4e5679(_0x2ba14d._0xa59d2b,0x2c,0x131,_0x2ba14d._0x239b3b)]??'',_0x1b56e9=renderCommandInstructions({'instructions':_0x29b268['instructions'],'argumentsText':_0x5aef0d,'argumentNames':_0x29b268[_0x4e5679(_0x2ba14d._0x400ea0,_0x2ba14d._0x4b5501,_0x2ba14d._0x52a293,0x24c)]});function _0x4e5679(_0x3a110e,_0x4c7623,_0x13abd7,_0x2e829d){return _0x2965fc(_0x3a110e-_0x4c629b._0x470e52,_0x4c7623-0x12,_0x2e829d,_0x3a110e- -0x27b);}return yield createToolOutput(_0x1b56e9,{'id':_0x29b268['id'],'name':_0x29b268[_0x3b3dd2(-0x2a3,-0x13c,-0x204,-0x16b)],'path':_0x46fabc['source'][_0x3b3dd2(-0x28,-0x7d,-_0x2ba14d._0xa64d96,-_0x2ba14d._0x572359)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x17d928,rename as _0x18cece,stat as _0x5008d2,writeFile as _0x490e93}from'fs/promises';import*as _0x395bf5 from'path';function detectEol(_0x474f4a){const _0x12c9a5={_0x55a91e:0x413,_0xf1f534:0x355,_0x279479:0x447,_0x4533ae:0x420},_0x322b45={_0x2d2564:0x1d5},_0x1de415={_0x4834f4:0xe0};function _0x4d358a(_0xe34349,_0x4ec9d9,_0x70aed7,_0x5dc130){return _0x22ef16(_0x4ec9d9,_0x70aed7-0x244,_0x70aed7-0x143,_0x5dc130-_0x1de415._0x4834f4);}function _0x5e5a74(_0x2d579b,_0x55f7b5,_0xd33b63,_0x36c3b6){return _0x324926(_0x55f7b5-0x4e0,_0xd33b63,_0xd33b63-0xcc,_0x36c3b6-_0x322b45._0x2d2564);}return/\r\n/['test'](_0x474f4a['toString'](_0x4d358a(0x3c0,0x2f0,_0x12c9a5._0x55a91e,_0x12c9a5._0xf1f534)))?_0x5e5a74(_0x12c9a5._0x279479,_0x12c9a5._0x4533ae,0x344,0x3fe):'lf';}function normalizeToLf(_0xff9c32){return _0xff9c32['replace'](/\r\n/g,'\x0a');}function convertEol(_0x1d6cb8,_0x401463){const _0x54672c={_0x257b73:0x218,_0x257d6e:0x132,_0x5a1201:0x257},_0x5eee71={_0x2924e0:0x11a};function _0x3c5fe6(_0x3d92af,_0x23c2de,_0x3dc54e,_0x185f99){return _0x324926(_0x185f99- -0x1be,_0x3dc54e,_0x3dc54e-_0x5eee71._0x2924e0,_0x185f99-0x156);}return _0x401463==='crlf'?_0x1d6cb8[_0x3c5fe6(-_0x54672c._0x257b73,-_0x54672c._0x257d6e,-_0x54672c._0x5a1201,-0x233)](/\n/g,'\x0d\x0a'):_0x1d6cb8;}async function atomicWrite(_0x53d64a,_0x117aca){const _0x7bc75d={_0x2d2cbd:0x1d4,_0x45aaa6:0xef,_0x284b65:0x1ca,_0x1dc738:0x10c,_0xc45260:0x130,_0x38f9be:0xfb,_0x2964c8:0xfa,_0xe1cbcc:0xac,_0x2ca343:0xd4,_0x1310dc:0xc1,_0x5c809d:0x6e,_0x1d20e8:0x9c,_0x2a96d6:0xf},_0x5b5601={_0x4bf09b:0x43},_0x3a041e={_0x33bfc2:0x14c};function _0x4720a9(_0x3b6177,_0x3004f2,_0xff64bb,_0x38daf1){return _0x22ef16(_0x3b6177,_0x38daf1- -0x40,_0xff64bb-_0x3a041e._0x33bfc2,_0x38daf1-0x97);}const _0x24d328=_0x395bf5[_0x4720a9(0x196,0x55,_0x7bc75d._0x2d2cbd,_0x7bc75d._0x45aaa6)](_0x53d64a),_0x2b5a06=_0x395bf5[_0x4720a9(0x1aa,_0x7bc75d._0x284b65,0x17d,_0x7bc75d._0x1dc738)](_0x24d328,_0x4720a9(0x249,0x1fd,_0x7bc75d._0xc45260,0x129)+_0x395bf5['basename'](_0x53d64a)+'.'+Date[_0x4720a9(_0x7bc75d._0x38f9be,0x2ee,0x2ce,0x1de)]()+'.'+Math[_0x4720a9(_0x7bc75d._0x2964c8,_0x7bc75d._0xe1cbcc,0x76,_0x7bc75d._0x2ca343)]()[_0x5a5108(-0x5a,-_0x7bc75d._0x1310dc,_0x7bc75d._0x5c809d,-0x1d8)](0x24)[_0x5a5108(_0x7bc75d._0x1d20e8,0xb2,-_0x7bc75d._0x2a96d6,0x10b)](0x2));await _0x490e93(_0x2b5a06,_0x117aca);function _0x5a5108(_0x5255f9,_0x119c41,_0x558bfd,_0x19cfaf){return _0x324926(_0x119c41- -_0x5b5601._0x4bf09b,_0x558bfd,_0x558bfd-0xed,_0x19cfaf-0x18c);}await _0x18cece(_0x2b5a06,_0x53d64a);}function sha256(_0x48fa4f){const _0x279711={_0x801f4b:0x98,_0xeba7a5:0xae,_0x3161df:0x100,_0x1ad279:0x2ed,_0x9f747f:0x1ff,_0x5cc4a1:0x20b,_0x3d8f35:0x298,_0x6128e1:0x407,_0x251344:0x31d},_0x18f840={_0x2e5202:0x7},_0xf9da3e={_0xa59812:0x115,_0x511429:0x170};function _0x503c64(_0x2c96aa,_0x405d60,_0x5ae263,_0x590a84){return _0x324926(_0x405d60- -0x8a,_0x590a84,_0x5ae263-_0xf9da3e._0xa59812,_0x590a84-_0xf9da3e._0x511429);}function _0x1443fb(_0xae6e51,_0x48e8ef,_0x776f7,_0x1f3e4e){return _0x22ef16(_0x776f7,_0x1f3e4e- -0x3f3,_0x776f7-0xbd,_0x1f3e4e-_0x18f840._0x2e5202);}return createHash(_0x503c64(-_0x279711._0x801f4b,-_0x279711._0xeba7a5,-0x1bb,-_0x279711._0x3161df))[_0x1443fb(-0x1c1,-_0x279711._0x1ad279,-0xf3,-_0x279711._0x9f747f)](_0x48fa4f)[_0x1443fb(-_0x279711._0x5cc4a1,-_0x279711._0x3d8f35,-0x28a,-0x19b)](_0x1443fb(-0x290,-0x3c4,-_0x279711._0x6128e1,-_0x279711._0x251344));}function countLines(_0x522998){const _0x18f56c={_0x1ceeef:0x28a,_0x2e2734:0x34a,_0x45db06:0x468,_0x561468:0x3cb,_0x433616:0x3f1,_0x1ec85d:0x385},_0x187047={_0x481481:0x1c1,_0x5b4817:0x3d},_0x47bc02={_0x4db175:0x25e};function _0x4f675f(_0x4a4564,_0x55b53e,_0x5abfb0,_0x600d9d){return _0x22ef16(_0x5abfb0,_0x4a4564-_0x47bc02._0x4db175,_0x5abfb0-0x10b,_0x600d9d-0x1a8);}function _0x13978f(_0x5db7cf,_0x7b0eab,_0x43948d,_0x40b9b9){return _0x22ef16(_0x5db7cf,_0x40b9b9-_0x187047._0x481481,_0x43948d-0x83,_0x40b9b9-_0x187047._0x5b4817);}const _0x213c65=_0x522998[_0x13978f(_0x18f56c._0x1ceeef,0x378,0x34e,_0x18f56c._0x2e2734)](/\n$/,'');return _0x213c65[_0x4f675f(_0x18f56c._0x45db06,_0x18f56c._0x561468,0x4ea,0x483)]===0x0?0x0:_0x213c65['split']('\x0a')[_0x13978f(0x4f0,_0x18f56c._0x433616,_0x18f56c._0x1ec85d,0x3cb)];}function calculateLineNumbers(_0x5b1b7f,_0x32f0ee,_0x2a716c,_0x20c1c6){const _0x4f2c25={_0x2bfc53:0x65f,_0x26547f:0x73f},_0x2c13d9={_0x1f538a:0xd6,_0x128a0a:0x5},_0x4fad74={_0x225841:0x253,_0x4cd7aa:0x74},_0x2af5b6=_0x5b1b7f[_0x4f8cd2(_0x4f2c25._0x2bfc53,0x6a1,0x727,_0x4f2c25._0x26547f)](0x0,_0x20c1c6)['split']('\x0a')[_0x4f8cd2(0x6ab,0x5b8,0x5be,0x594)],_0x48a0e7=countLines(_0x32f0ee),_0x12b30a=countLines(_0x2a716c);function _0x399871(_0x3cf385,_0x4c756c,_0x5d942f,_0x4d08ff){return _0x324926(_0x5d942f-_0x4fad74._0x225841,_0x4c756c,_0x5d942f-0x1e5,_0x4d08ff-_0x4fad74._0x4cd7aa);}function _0x4f8cd2(_0x476f56,_0x4bf241,_0x58b123,_0x18373c){return _0x324926(_0x4bf241-0x5ac,_0x58b123,_0x58b123-_0x2c13d9._0x1f538a,_0x18373c-_0x2c13d9._0x128a0a);}return{'oldStartLine':_0x2af5b6,'oldEndLine':_0x2af5b6+_0x48a0e7-0x1,'newStartLine':_0x2af5b6,'newEndLine':_0x2af5b6+_0x12b30a-0x1,'oldLineCount':_0x48a0e7,'newLineCount':_0x12b30a};}function createFileEditTool(_0x2e5e1f={}){const _0x9ce9bd={_0xa6efaa:0x27e,_0x6f2463:0x214,_0x152684:0x2c7,_0x3717c4:0x1fb,_0x3272d3:0x13b,_0x48a7dd:0x78,_0x589d6b:0x8f,_0x2b5d1a:0x112,_0x23646e:0x101,_0x364991:0x146,_0x1887ab:0xbc,_0xb323ca:0xad,_0x1199b3:0x152,_0xa72600:0x23b,_0x35f889:0x20a,_0x5689f4:0xe2,_0x2e4125:0x1ce,_0x16adae:0x1ca,_0x49c7c1:0x2f1,_0x41e0c:0x228,_0x121d61:0x2ba,_0x38dde1:0x19f,_0x20c327:0x25e,_0x385191:0xdd},_0x20e6b2={_0xdccd51:0xb1,_0x4c391c:0x16f,_0x4da086:0x198,_0x344deb:0x50a,_0x461062:0x1c5,_0x28b228:0x750,_0x5b1264:0x682,_0x11d595:0x6c3,_0x4ec6e2:0x5fd,_0x2a77a7:0x6b5,_0x18f03d:0x589,_0x45a186:0x6f3,_0x131751:0x4c9,_0x511265:0x54b,_0x372d13:0x672,_0x715858:0xce,_0x101889:0x193,_0x3ffd13:0x171,_0x485d9e:0x523,_0x4b2839:0x5cc,_0x3b4556:0x28c,_0x1bd020:0x236,_0x223e0f:0xc0,_0x162de3:0x1df,_0x1a7ff7:0x37,_0x3c7359:0x1d7,_0x4ca658:0x8a,_0x585137:0x4f,_0x3fccb4:0x7dc,_0x53068a:0x6ae,_0x31a741:0x5fe,_0x2f0aa7:0x6ac,_0x3811fa:0x58c,_0x3f9de6:0x626,_0x5e729b:0x1ae,_0x2d4b31:0x1b1,_0x4aa422:0x1ca,_0x332689:0x4ae,_0x2f6d4e:0x593,_0x40ffa9:0x4a9,_0x140591:0x19d,_0x574a97:0x2c9,_0x4e8c6a:0x262,_0x4315f7:0x1bf,_0x226476:0x10b,_0x47dce6:0xdf,_0x4691d7:0x81,_0x553241:0x56b,_0x46458c:0x60c,_0x1a7105:0x19a,_0x57a14b:0x25b,_0x2df9a1:0x557,_0x234129:0x5a2,_0x471312:0x179,_0x27e56a:0x1fd},_0x21aa8b={_0x5bce27:0x13f,_0x2f510c:0x1a0,_0x436fca:0x15c},_0x1f3dd4={_0x4b2534:0x103},_0x29e38e=_0x395bf5[_0x4a5768(0x160,_0x9ce9bd._0xa6efaa,0x16c,_0x9ce9bd._0x6f2463)](_0x2e5e1f[_0x4a5768(0x221,_0x9ce9bd._0x152684,_0x9ce9bd._0x3717c4,0x297)]??process['cwd']()),_0x29e8f8=(_0x2e5e1f['allowedDirs']??[])[_0xef44e8(0x25c,0x1b1,0x205,_0x9ce9bd._0x3272d3)](_0x74be1d=>_0x395bf5[_0x4a5768(0xd3,0x192,0x16c,0x21f)](_0x74be1d));function _0x4a5768(_0x4a899c,_0x342375,_0x4c76be,_0x7f36e6){return _0x324926(_0x4c76be-0x199,_0x7f36e6,_0x4c76be-0x1ec,_0x7f36e6-_0x1f3dd4._0x4b2534);}function _0xef44e8(_0x3c8f02,_0x1a9c4d,_0x20314f,_0x4f2306){return _0x324926(_0x20314f-_0x21aa8b._0x5bce27,_0x1a9c4d,_0x20314f-_0x21aa8b._0x2f510c,_0x4f2306-_0x21aa8b._0x436fca);}const _0x33265c=_0x2e5e1f[_0x4a5768(_0x9ce9bd._0x48a7dd,_0x9ce9bd._0x589d6b,_0x9ce9bd._0x2b5d1a,_0x9ce9bd._0x23646e)]??_0x4a5768(_0x9ce9bd._0x364991,_0x9ce9bd._0x1887ab,0x135,0x37);return defineTool({'name':_0x33265c,'description':_0x4a5768(0x188,0x148,0x1a0,0x28b),'inputSchema':{'type':_0xef44e8(_0x9ce9bd._0xb323ca,_0x9ce9bd._0x1199b3,0x1c7,_0x9ce9bd._0xa72600),'properties':{'filePath':{'type':_0x4a5768(0x21e,0x22f,0x228,_0x9ce9bd._0x35f889)},'oldText':{'type':_0xef44e8(0x2d5,_0x9ce9bd._0x5689f4,_0x9ce9bd._0x2e4125,_0x9ce9bd._0x16adae)},'newText':{'type':_0x4a5768(_0x9ce9bd._0x49c7c1,0x315,_0x9ce9bd._0x41e0c,0x16a)},'dryRun':{'type':'boolean'}},'required':[_0x4a5768(_0x9ce9bd._0x121d61,_0x9ce9bd._0x38dde1,_0x9ce9bd._0x20c327,0x14b),'oldText',_0xef44e8(0xae,_0x9ce9bd._0x385191,0x168,0x236)]},async *'execute'(_0xa99c68){const _0x4fc5eb={_0x1a3fe0:0x1a4},_0x36ff0a={_0x209de5:0xc9};function _0x119208(_0x11d514,_0x1c579f,_0x55cc6d,_0x273a32){return _0x4a5768(_0x11d514-0x109,_0x1c579f-_0x36ff0a._0x209de5,_0x1c579f-0x427,_0x55cc6d);}const _0x3ebaff=resolveAllowedPath(_0x29e38e,_0x29e8f8,_0xa99c68[_0x3b69e3(-0xc0,-_0x20e6b2._0xdccd51,-_0x20e6b2._0x4c391c,-_0x20e6b2._0x4da086)]);await assertWorkspaceFile(_0x3ebaff);const _0x4a89b1=await _0x5008d2(_0x3ebaff),_0x506d30=await _0x17d928(_0x3ebaff),_0x491b0a=detectEol(_0x506d30),_0x1827b7=normalizeToLf(_0x506d30[_0x119208(_0x20e6b2._0x344deb,0x542,0x42e,0x5e1)](_0x3b69e3(-0x1b4,-0xc3,-_0x20e6b2._0x461062,-0x272))),_0x2cb51d=normalizeToLf(_0xa99c68[_0x119208(_0x20e6b2._0x28b228,_0x20e6b2._0x5b1264,_0x20e6b2._0x11d595,0x7b1)]),_0x587ca8=normalizeToLf(_0xa99c68['newText']),_0x62f2da=_0x1827b7[_0x119208(0x631,_0x20e6b2._0x4ec6e2,0x53f,0x658)](_0x2cb51d);if(_0x62f2da===-0x1){const _0x5b4a20=_0x2cb51d[_0x119208(0x6a8,_0x20e6b2._0x2a77a7,_0x20e6b2._0x18f03d,_0x20e6b2._0x45a186)](0x0,0x64)[_0x119208(_0x20e6b2._0x131751,_0x20e6b2._0x511265,0x459,_0x20e6b2._0x372d13)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x3b69e3(-0x7b,-_0x20e6b2._0x715858,-_0x20e6b2._0x101889,-_0x20e6b2._0x3ffd13)+_0x5b4a20+(_0x2cb51d[_0x119208(_0x20e6b2._0x485d9e,_0x20e6b2._0x4b2839,0x5c3,0x6f7)]>0x64?_0x3b69e3(-_0x20e6b2._0x3b4556,-0x180,-0x23b,-_0x20e6b2._0x1bd020):'')+'\x22',{'filePath':_0xa99c68[_0x3b69e3(-_0x20e6b2._0x223e0f,-_0x20e6b2._0x162de3,-_0x20e6b2._0x1a7ff7,-_0x20e6b2._0x3c7359)]});}const _0x4e6b9e=_0x1827b7['slice'](0x0,_0x62f2da)+_0x587ca8+_0x1827b7[_0x3b69e3(-0x90,-_0x20e6b2._0x4ca658,-0xad,-_0x20e6b2._0x585137)](_0x62f2da+_0x2cb51d['length']),_0x2d6e55=convertEol(_0x4e6b9e,_0x491b0a),_0x2bea69=Buffer[_0x119208(_0x20e6b2._0x3fccb4,_0x20e6b2._0x53068a,_0x20e6b2._0x31a741,0x6a6)](_0x2d6e55,'utf8'),_0x3ac17c=sha256(_0x506d30),_0x6a5e7d=sha256(_0x2bea69),_0x454217=_0x3ac17c===_0x6a5e7d,_0x415008=_0xa99c68[_0x119208(0x5a7,_0x20e6b2._0x2f0aa7,_0x20e6b2._0x3811fa,_0x20e6b2._0x3f9de6)]??![];!_0x415008&&!_0x454217&&await atomicWrite(_0x3ebaff,_0x2bea69);function _0x3b69e3(_0x3f9ed8,_0x7b3d21,_0x5a28b0,_0x5a50b8){return _0x4a5768(_0x3f9ed8-0x8a,_0x7b3d21-_0x4fc5eb._0x1a3fe0,_0x3f9ed8- -0x31e,_0x7b3d21);}return yield createToolOutput(_0x454217?_0x3b69e3(-_0x20e6b2._0x5e729b,-0x235,-_0x20e6b2._0x2d4b31,-_0x20e6b2._0x4aa422):_0x415008?_0x119208(0x5c7,0x540,_0x20e6b2._0x332689,0x419):_0x119208(_0x20e6b2._0x2f6d4e,_0x20e6b2._0x40ffa9,0x471,0x552),{'filePath':_0xa99c68['filePath'],'resolvedPath':_0x3ebaff,'created':_0x4a89b1[_0x3b69e3(-_0x20e6b2._0x140591,-_0x20e6b2._0x574a97,-_0x20e6b2._0x4e8c6a,-_0x20e6b2._0x4315f7)][_0x3b69e3(-0xcf,-_0x20e6b2._0x226476,-_0x20e6b2._0x47dce6,-_0x20e6b2._0x4691d7)](),'modified':_0x4a89b1[_0x119208(0x488,_0x20e6b2._0x553241,0x5b3,_0x20e6b2._0x46458c)]['toISOString'](),'size':_0x4a89b1[_0x3b69e3(-_0x20e6b2._0x1a7105,-0x115,-_0x20e6b2._0x57a14b,-0x17f)],'eol':_0x491b0a,'oldTextLength':_0x2cb51d[_0x119208(0x694,_0x20e6b2._0x4b2839,_0x20e6b2._0x2df9a1,0x4aa)],'newTextLength':_0x587ca8[_0x119208(0x4b6,_0x20e6b2._0x4b2839,_0x20e6b2._0x234129,0x5ea)],'bytesWritten':_0x454217||_0x415008?0x0:_0x2bea69[_0x3b69e3(-0x179,-_0x20e6b2._0x471312,-_0x20e6b2._0x27e56a,-0x152)],'beforeSha':_0x3ac17c,'afterSha':_0x6a5e7d,'dryRun':_0x415008,'noChange':_0x454217,'lineNumbers':calculateLineNumbers(_0x1827b7,_0x2cb51d,_0x587ca8,_0x62f2da)}),void 0x0;}});}import{mkdir as _0x4bfaac,rename as _0x1ca6ad,stat as _0x449c5b,writeFile as _0x4a56ef}from'fs/promises';import*as _0x354d6c from'path';async function atomicWrite2(_0x1c11f8,_0x50c7f8){const _0x5ce1d2={_0x3a112d:0x48f,_0x3820d5:0x1d0,_0x98ddba:0x19a,_0x43252a:0x105,_0x365a44:0xf6,_0x5b21a4:0x19b,_0x1018fc:0x214},_0x23cedc={_0x1e0492:0x183,_0x5f7e4e:0x7c},_0x51b1c6=_0x354d6c['dirname'](_0x1c11f8);function _0x32e135(_0x3f9e04,_0x11055d,_0x491a13,_0x73e06d){return _0x324926(_0x3f9e04-0x54e,_0x11055d,_0x491a13-_0x23cedc._0x1e0492,_0x73e06d-_0x23cedc._0x5f7e4e);}await _0x4bfaac(_0x51b1c6,{'recursive':!![]});const _0x1664ac=_0x354d6c['join'](_0x51b1c6,'.tmp.'+_0x354d6c[_0x32e135(_0x5ce1d2._0x3a112d,0x474,0x395,0x39d)](_0x1c11f8)+'.'+Date['now']()+'.'+Math[_0x43af27(-_0x5ce1d2._0x3820d5,-0x207,-_0x5ce1d2._0x98ddba,-_0x5ce1d2._0x43252a)]()[_0x43af27(-_0x5ce1d2._0x365a44,-_0x5ce1d2._0x5b21a4,-_0x5ce1d2._0x1018fc,-0xf7)](0x24)[_0x32e135(0x643,0x698,0x690,0x587)](0x2));await _0x4a56ef(_0x1664ac,_0x50c7f8);function _0x43af27(_0xf83a55,_0x4dcb38,_0x4f072a,_0x127cb5){return _0x22ef16(_0x127cb5,_0x4dcb38- -0x31b,_0x4f072a-0xe4,_0x127cb5-0xf9);}await _0x1ca6ad(_0x1664ac,_0x1c11f8);}function createFileNewTool(_0x3f8520={}){const _0x4fec4e={_0x2f4bb5:0x5bc,_0xd682be:0x110,_0x26226b:0x196,_0x5a1f3d:0x454,_0x32faa0:0x3ce,_0x318e19:0x36a,_0x42f353:0x2e5,_0x2a9d02:0x1c8,_0x25de2c:0x400,_0xcf6d5f:0x467,_0x314997:0x184,_0x2043c9:0x16c,_0x4b29b9:0x4e3,_0x258ee1:0x44f,_0x59d131:0x590,_0x539c06:0x4d2,_0x25e23f:0x4b3,_0x266c52:0x3dd,_0x125cf5:0x1bb,_0x3f9991:0x1ef,_0x58a6a4:0x416,_0x36e3de:0x2f1},_0x3e278c={_0x332d77:0x27,_0x45224e:0x87,_0x230977:0xb6,_0x3ee741:0xab,_0x558824:0x1f0,_0x41755f:0x16,_0x441e2d:0xa0,_0x54a48a:0x15c,_0x58df3d:0xf4,_0x223f8a:0x13d,_0x1ee93e:0x6d,_0x9f8ba1:0x1c,_0x3a51cf:0x79,_0x3711bb:0x20,_0x13e6c2:0x250,_0x35a63c:0x9d,_0x5f837b:0x68,_0x22854b:0x2a2},_0xfa9a95={_0x314be1:0x105},_0x4eaf03={_0x443348:0x443,_0x76c59:0x158},_0x48653a=_0x354d6c[_0x1234f6(0x12a,0x2c8,0x1ff,0x31c)](_0x3f8520[_0x56c3ef(0x4a5,_0x4fec4e._0x2f4bb5,0x4b2,0x511)]??process[_0x1234f6(0x16,_0x4fec4e._0xd682be,0x127,_0x4fec4e._0x26226b)]());function _0x1234f6(_0x5e0b8b,_0x2e66c9,_0x35fba6,_0x4c46a2){return _0x324926(_0x35fba6-0x22c,_0x2e66c9,_0x35fba6-0x1b4,_0x4c46a2-0xc4);}const _0x345690=(_0x3f8520[_0x56c3ef(_0x4fec4e._0x5a1f3d,_0x4fec4e._0x32faa0,_0x4fec4e._0x318e19,0x335)]??[])[_0x1234f6(_0x4fec4e._0x42f353,0x33a,0x2f2,_0x4fec4e._0x2a9d02)](_0x26d9d0=>_0x354d6c[_0x56c3ef(0x416,0x4f1,0x523,0x43c)](_0x26d9d0)),_0x19b23f=_0x3f8520['name']??_0x56c3ef(0x4f4,_0x4fec4e._0x25de2c,0x598,_0x4fec4e._0xcf6d5f);function _0x56c3ef(_0x4576e7,_0x123e02,_0x4686c8,_0x382cbd){return _0x324926(_0x4576e7-_0x4eaf03._0x443348,_0x4686c8,_0x4686c8-_0x4eaf03._0x76c59,_0x382cbd-0x1f4);}return defineTool({'name':_0x19b23f,'description':_0x1234f6(0x78,_0x4fec4e._0x314997,0x13a,_0x4fec4e._0x2043c9),'inputSchema':{'type':_0x56c3ef(0x4cb,_0x4fec4e._0x4b29b9,_0x4fec4e._0x258ee1,_0x4fec4e._0x59d131),'properties':{'filePath':{'type':_0x56c3ef(_0x4fec4e._0x539c06,0x52b,_0x4fec4e._0x25e23f,_0x4fec4e._0x266c52)},'content':{'type':_0x1234f6(_0x4fec4e._0x125cf5,0x391,0x2bb,0x222)}},'required':[_0x1234f6(_0x4fec4e._0x3f9991,_0x4fec4e._0x58a6a4,_0x4fec4e._0x36e3de,0x3af),'content']},async *'execute'(_0x2ab55d){const _0x3a4b2b={_0x1a8230:0x481,_0x5ad83e:0x6e};function _0x23676b(_0xa9f33d,_0x577d88,_0xe77f9e,_0x587b2f){return _0x1234f6(_0xa9f33d-_0xfa9a95._0x314be1,_0x577d88,_0xe77f9e-0x14,_0x587b2f-0x102);}const _0xe193a1=resolveAllowedPath(_0x48653a,_0x345690,_0x2ab55d[_0x4242f0(-0x47,0xe5,-_0x3e278c._0x332d77,_0x3e278c._0x45224e)]);function _0x4242f0(_0x5d813e,_0x5cbdfd,_0x1f925d,_0x509987){return _0x56c3ef(_0x509987- -_0x3a4b2b._0x1a8230,_0x5cbdfd-_0x3a4b2b._0x5ad83e,_0x5d813e,_0x509987-0x25);}const _0x1599cd=await _0x449c5b(_0xe193a1)[_0x4242f0(_0x3e278c._0x230977,0xe5,0xde,_0x3e278c._0x3ee741)](()=>!![])[_0x4242f0(-_0x3e278c._0x558824,-0x90,-0x29b,-0x177)](()=>![]),_0x160091=Buffer[_0x4242f0(_0x3e278c._0x41755f,0x2c,_0x3e278c._0x441e2d,0xb0)](_0x2ab55d[_0x4242f0(-0x1bb,-_0x3e278c._0x54a48a,-0x4,-_0x3e278c._0x58df3d)],_0x4242f0(-_0x3e278c._0x223f8a,-0xf2,-0x18c,-_0x3e278c._0x1ee93e));return await atomicWrite2(_0xe193a1,_0x160091),yield createToolOutput(_0x4242f0(0x148,-_0x3e278c._0x9f8ba1,-_0x3e278c._0x3a51cf,_0x3e278c._0x3711bb)+_0x2ab55d['filePath']+'.',{'filePath':_0x2ab55d['filePath'],'resolvedPath':_0xe193a1,'bytes':_0x160091['length'],'lines':_0x2ab55d[_0x23676b(0x23e,_0x3e278c._0x13e6c2,0x18a,_0x3e278c._0x35a63c)]['split'](/\r?\n/)[_0x4242f0(0xe7,-_0x3e278c._0x5f837b,-0x24,-0x32)],'created':new Date()[_0x23676b(0x388,_0x3e278c._0x22854b,0x2f6,0x293)](),'overwritten':_0x1599cd}),void 0x0;}});}import{readFile as _0x2234ca,stat as _0x4b6eee}from'fs/promises';import*as _0x30f525 from'path';function stripUtfBom(_0x3b713b){const _0x124842={_0x3349a6:0x3f0,_0x4ed28d:0x3b5,_0x595493:0x1b2,_0x3a8eb9:0x98,_0x45275d:0xa0},_0x545f61={_0x5e1ec1:0x1d5};function _0x4c90f8(_0x2eb63c,_0x1cdb2d,_0x53d23d,_0x5cf7bd){return _0x324926(_0x2eb63c-0xbd,_0x5cf7bd,_0x53d23d-0x1d9,_0x5cf7bd-0x113);}function _0x14bca9(_0x1110ff,_0xcf048a,_0xba7b47,_0x40b298){return _0x22ef16(_0xcf048a,_0x1110ff-0x2d2,_0xba7b47-0x1f2,_0x40b298-_0x545f61._0x5e1ec1);}return _0x3b713b[_0x14bca9(_0x124842._0x3349a6,0x321,_0x124842._0x4ed28d,0x485)](0x0)===0xfeff?_0x3b713b[_0x4c90f8(_0x124842._0x595493,_0x124842._0x3a8eb9,0x220,_0x124842._0x45275d)](0x1):_0x3b713b;}function clampLine(_0x33af32,_0x37334c){const _0x3ae8a3={_0x46c360:0x6d},_0x45ac14={_0x4a2c68:0x13e,_0xadca33:0x1c2};function _0x19952f(_0x544c99,_0x4ee7de,_0x53f851,_0x52abed){return _0x324926(_0x4ee7de- -0x20,_0x544c99,_0x53f851-_0x45ac14._0x4a2c68,_0x52abed-_0x45ac14._0xadca33);}if(!Number['isFinite'](_0x33af32))return 0x1;return Math['max'](0x1,Math[_0x19952f(-_0x3ae8a3._0x46c360,-0x9d,-0x147,-0x187)](Math['trunc'](_0x33af32),_0x37334c));}function createFileReadTool(_0x531390={}){const _0x5904ff={_0x570567:0x367,_0x571d48:0x345,_0x558a52:0x1b4,_0x4a0fb3:0x520,_0x360090:0x47a,_0x14d672:0x2e9,_0x34e514:0x3bb,_0x43776d:0x32d,_0x47ec27:0x40a,_0x2136f2:0x410,_0x140d04:0x1a6,_0x218e6b:0x396,_0x5704fc:0x37d,_0x38470c:0x384,_0x18b38a:0x32b,_0x4025c3:0x3ef,_0x7abdc8:0x2ef,_0x4c047d:0x39a,_0x3039e8:0x461,_0x3a7242:0x3cb},_0xd40044={_0x354d25:0x58,_0x178acf:0x80,_0xba6511:0x2,_0x12254d:0x9d,_0xaf6bd3:0xb4,_0x365fc4:0xd2,_0x5f0ffd:0x1b1,_0x3ae10d:0x20b,_0x394fea:0xff,_0x24664d:0x88,_0xf53e04:0x7,_0x5e2e7d:0x56,_0x10eca8:0xe3,_0x1aae9a:0x114,_0x3d7a91:0x7d,_0x5a2052:0x37,_0x1049c2:0xd1,_0x280c49:0x22,_0x428b1c:0x97,_0x1d2c15:0x5,_0x104c2b:0xb9,_0xb181f3:0x16e,_0x2b0e71:0x163,_0x54d790:0x157,_0xae1083:0x1c5,_0x5211d9:0xd4,_0x4ef722:0x305,_0x2faf44:0x20a,_0x542a90:0x1b9,_0x1190f4:0x13b,_0x264a24:0xcb,_0x5bd372:0x1,_0x35fbf8:0x123,_0x54f667:0x119,_0x24d1a4:0x200},_0xdf9386={_0x2b8d75:0x53c,_0x247d3d:0x164},_0x4529c9={_0xf0fb39:0xf7,_0x1da7e4:0x27};function _0x184e61(_0xf07a2f,_0x29bfdb,_0x371a16,_0x317efb){return _0x22ef16(_0x317efb,_0xf07a2f-_0x4529c9._0xf0fb39,_0x371a16-0xde,_0x317efb-_0x4529c9._0x1da7e4);}function _0x3f3d72(_0x5b6c24,_0x2c3e99,_0x4aba3a,_0x5b8f46){return _0x22ef16(_0x4aba3a,_0x5b6c24-0x1f0,_0x4aba3a-0x33,_0x5b8f46-0xd9);}const _0x358fcf=_0x30f525[_0x184e61(0x2c8,_0x5904ff._0x570567,_0x5904ff._0x571d48,_0x5904ff._0x558a52)](_0x531390[_0x3f3d72(0x450,_0x5904ff._0x4a0fb3,0x396,_0x5904ff._0x360090)]??process[_0x184e61(0x1f0,0x29f,_0x5904ff._0x14d672,0x1a2)]()),_0x52bab1=(_0x531390['allowedDirs']??[])[_0x184e61(_0x5904ff._0x34e514,_0x5904ff._0x43776d,_0x5904ff._0x47ec27,_0x5904ff._0x2136f2)](_0x554b3e=>_0x30f525[_0x184e61(0x2c8,0x332,0x1cc,0x382)](_0x554b3e)),_0x8cc00d=_0x531390[_0x184e61(0x26e,_0x5904ff._0x140d04,0x29c,_0x5904ff._0x218e6b)]??'FileRead';return defineTool({'name':_0x8cc00d,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories.\x20Optionally\x20specify\x20line\x20ranges\x20(lineStart,\x20lineEnd)','inputSchema':{'type':_0x184e61(_0x5904ff._0x5704fc,0x337,0x363,0x394),'properties':{'path':{'type':_0x184e61(_0x5904ff._0x38470c,0x3d9,0x363,_0x5904ff._0x18b38a)},'lineStart':{'type':_0x3f3d72(_0x5904ff._0x4025c3,_0x5904ff._0x7abdc8,_0x5904ff._0x4c047d,_0x5904ff._0x3039e8)},'lineEnd':{'type':_0x184e61(0x2f6,0x211,0x391,0x3cf)}},'required':[_0x3f3d72(0x4c1,0x3fd,0x3f1,_0x5904ff._0x3a7242)]},async *'execute'(_0x2aa329){const _0xd9b2bc={_0x224f61:0x40d},_0x41f088=resolveAllowedPath(_0x358fcf,_0x52bab1,_0x2aa329[_0x5ccdbc(0x16,-0x16b,-0x3b,-0x7b)]);function _0x4e0c2b(_0x492c2b,_0x1821a7,_0x587781,_0x34fab2){return _0x3f3d72(_0x34fab2- -_0xd9b2bc._0x224f61,_0x1821a7-0x4d,_0x587781,_0x34fab2-0x10d);}await assertWorkspaceFile(_0x41f088);const _0x186464=await _0x4b6eee(_0x41f088),_0x3b863b=await _0x2234ca(_0x41f088);if(isProbablyBinary(_0x3b863b))throw new ToolExecutionError(_0x5ccdbc(-0x43,-_0xd40044._0x354d25,-0x30,-_0xd40044._0x178acf)+_0x2aa329[_0x5ccdbc(-0xbd,_0xd40044._0xba6511,-0x188,-0x7b)],{'path':_0x2aa329['path']});let _0x3472e2=_0x3b863b[_0x5ccdbc(-_0xd40044._0x12254d,-0x247,-0x25b,-0x1cc)](_0x4e0c2b(-_0xd40044._0xaf6bd3,-0xc1,_0xd40044._0x365fc4,-0x4e));const _0x29f92e=_0x3472e2[_0x4e0c2b(-0x33,-_0xd40044._0x5f0ffd,-_0xd40044._0x3ae10d,-_0xd40044._0x394fea)](0x0)===0xfeff;_0x3472e2=stripUtfBom(_0x3472e2);function _0x5ccdbc(_0x388216,_0x3155ae,_0x512a9e,_0x56feda){return _0x3f3d72(_0x56feda- -_0xdf9386._0x2b8d75,_0x3155ae-0x187,_0x3155ae,_0x56feda-_0xdf9386._0x247d3d);}const _0x5308d9=_0x3472e2[_0x4e0c2b(0xfc,0xf8,-_0xd40044._0x24664d,-_0xd40044._0xf53e04)](/\r?\n/),_0x53a787={'path':_0x2aa329[_0x5ccdbc(-_0xd40044._0x5e2e7d,-0xd6,0x5,-0x7b)],'resolvedPath':_0x41f088,'created':_0x186464[_0x4e0c2b(_0xd40044._0x10eca8,-_0xd40044._0x1aae9a,-_0xd40044._0x3d7a91,-_0xd40044._0x5a2052)][_0x4e0c2b(_0xd40044._0x1049c2,-_0xd40044._0x280c49,0x19b,_0xd40044._0x428b1c)](),'modified':_0x186464[_0x4e0c2b(0x87,-_0xd40044._0x1d2c15,-_0xd40044._0x104c2b,-0x74)][_0x5ccdbc(0x33,-0x44,-0x115,-0x98)](),'size':_0x186464[_0x5ccdbc(-_0xd40044._0xb181f3,-0xd2,-0x130,-_0xd40044._0x2b0e71)],'encoding':_0x5ccdbc(-_0xd40044._0x54d790,-_0xd40044._0xae1083,-_0xd40044._0x5211d9,-0x17d),'bomStripped':_0x29f92e,'truncated':![],'totalLines':_0x5308d9['length']};if(_0x2aa329[_0x5ccdbc(-0x297,-_0xd40044._0x4ef722,-0x32c,-_0xd40044._0x2faf44)]!==void 0x0||_0x2aa329['lineEnd']!==void 0x0){const _0x739fa1=clampLine(_0x2aa329['lineStart']??0x1,_0x5308d9[_0x4e0c2b(-0x125,0x10d,0x3c,-0x13)]),_0x4c614f=clampLine(_0x2aa329[_0x5ccdbc(-_0xd40044._0x542a90,-0x20,-0x194,-0x108)]??_0x5308d9['length'],_0x5308d9['length']),_0x49d26c=Math[_0x4e0c2b(-_0xd40044._0x1190f4,0x9,-0xee,-0x9c)](_0x739fa1,_0x4c614f),_0x2f1cb7=Math[_0x4e0c2b(-0x72,0x21,-_0xd40044._0x1aae9a,-0x22)](_0x739fa1,_0x4c614f),_0x10abc5=_0x5308d9[_0x4e0c2b(_0xd40044._0x264a24,0xe1,_0xd40044._0x5bd372,0xd6)](_0x49d26c-0x1,_0x2f1cb7)[_0x4e0c2b(0xe,_0xd40044._0x35fbf8,_0xd40044._0x54f667,0xa7)]((_0xa414f3,_0xa5b7c2)=>_0x49d26c+_0xa5b7c2+'|'+_0xa414f3)[_0x5ccdbc(-0x156,-0x1da,-0x155,-_0xd40044._0x24d1a4)]('\x0a');return yield createToolOutput(_0x10abc5,{..._0x53a787,'lineRange':{'lineStart':_0x49d26c,'lineEnd':_0x2f1cb7,'linesTotal':_0x5308d9['length']}}),void 0x0;}return yield createToolOutput(_0x3472e2,_0x53a787),void 0x0;}});}import{stat as _0x157cfe}from'fs/promises';import*as _0x1c059e from'path';import{execSync,spawn as _0x2ebcf7}from'child_process';import{existsSync}from'fs';import{stat as _0xf2daf8}from'fs/promises';import*as _0x7ed184 from'os';import*as _0x15c15a from'path';import{rgPath as _0x2df2da}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x89a6a2={_0x1c46f5:0x89,_0x2900fe:0x108,_0x1d7740:0x548,_0x152009:0x237,_0x2bcc3b:0x2db,_0xfb30b4:0x21e,_0x5f3797:0x54a,_0x463a75:0x450,_0xdc0935:0x284,_0x51881e:0x386,_0x3c43f5:0x88,_0x491f51:0x336,_0x3c8cc2:0x27c,_0x1979f2:0x316,_0x1aa210:0x3ac,_0x5392a8:0x5ef,_0x1a8d9d:0x522,_0x3068c9:0x24e,_0x372620:0x1f3,_0x1113a8:0x2b8,_0x4c133f:0x537,_0x576f38:0x515,_0x12d3a3:0x34,_0x5ad97e:0xac,_0x4b4834:0x413,_0x220302:0x527,_0x237747:0x149,_0x3da3c6:0x139,_0x1fabf0:0x25d,_0x566108:0x36b,_0x316aa2:0x480,_0x227ee7:0x4de,_0x518d0e:0x3f1,_0x485b9d:0x590,_0x1e2bd6:0x5a9,_0x4cd902:0x554,_0x3f5179:0x3cd,_0xefb649:0x63e,_0x14d16d:0x460},_0x5c1f06={_0xa582a3:0x0},_0x3e45b3={_0x487626:0x206,_0x372c41:0x111},_0x4e3a4b=_0x7ed184['platform']()===_0xf7016a(-_0x89a6a2._0x1c46f5,-0x28,-_0x89a6a2._0x2900fe,-0xb4),_0x1176a0=_0x4e3a4b?[_0x15c15a['join'](process[_0x1ff0b0(0x537,0x629,0x4c9,_0x89a6a2._0x1d7740)][_0xf7016a(-_0x89a6a2._0x152009,-0x36c,-_0x89a6a2._0x2bcc3b,-_0x89a6a2._0xfb30b4)]||'','Microsoft','WinGet',_0x1ff0b0(_0x89a6a2._0x5f3797,0x489,_0x89a6a2._0x463a75,0x5df)),_0x15c15a[_0xf7016a(-_0x89a6a2._0xdc0935,-_0x89a6a2._0x51881e,-0x2b8,-0x31d)](process['env'][_0xf7016a(-0xbe,-0xf6,-0x198,-_0x89a6a2._0x3c43f5)]||'',_0xf7016a(-_0x89a6a2._0x491f51,-_0x89a6a2._0x3c8cc2,-_0x89a6a2._0x1979f2,-_0x89a6a2._0x1aa210),_0x1ff0b0(0x5dc,_0x89a6a2._0x5392a8,0x50b,_0x89a6a2._0x1a8d9d)),_0x15c15a[_0xf7016a(-_0x89a6a2._0x3068c9,-_0x89a6a2._0x372620,-_0x89a6a2._0x1113a8,-0x201)](process[_0x1ff0b0(_0x89a6a2._0x4c133f,_0x89a6a2._0x576f38,0x64e,0x4bb)][_0xf7016a(-0x129,-_0x89a6a2._0x12d3a3,-0x157,-_0x89a6a2._0x5ad97e)]||'',_0x1ff0b0(_0x89a6a2._0x4b4834,0x369,0x311,_0x89a6a2._0x220302),_0xf7016a(-_0x89a6a2._0x237747,-_0x89a6a2._0x3da3c6,-0x14d,-_0x89a6a2._0x1fabf0))]:['/opt/homebrew/bin/rg',_0x1ff0b0(0x474,0x488,0x470,_0x89a6a2._0x566108),'/usr/bin/rg','/bin/rg'];for(const _0x44d8c9 of _0x1176a0){if(existsSync(_0x44d8c9))return _0x44d8c9;}function _0xf7016a(_0x46a087,_0xb102f6,_0x50e352,_0x5419e0){return _0x324926(_0x50e352- -_0x3e45b3._0x487626,_0xb102f6,_0x50e352-_0x3e45b3._0x372c41,_0x5419e0-0x12e);}function _0x1ff0b0(_0x1e0ab8,_0x2aa49c,_0x45c81e,_0x505ef7){return _0x22ef16(_0x45c81e,_0x1e0ab8-0x325,_0x45c81e-_0x5c1f06._0xa582a3,_0x505ef7-0xa6);}try{const _0x19fb87=_0x4e3a4b?_0xf7016a(-0x20c,-0x28b,-0x2ae,-0x2aa):_0x1ff0b0(_0x89a6a2._0x316aa2,0x421,0x383,0x4a2),_0x4ffb66=execSync(_0x19fb87,{'encoding':_0x1ff0b0(0x4f4,0x423,0x56c,0x4eb),'stdio':[_0x1ff0b0(_0x89a6a2._0x227ee7,_0x89a6a2._0x518d0e,0x533,0x559),_0x1ff0b0(0x4de,_0x89a6a2._0x485b9d,_0x89a6a2._0x1e2bd6,_0x89a6a2._0x4cd902),_0x1ff0b0(0x4c1,0x485,_0x89a6a2._0x3f5179,0x393)]})['trim']()[_0x1ff0b0(0x53b,_0x89a6a2._0xefb649,_0x89a6a2._0x14d16d,0x551)](/\r?\n/)[0x0];if(_0x4ffb66&&existsSync(_0x4ffb66))return _0x4ffb66;}catch{return null;}return null;}async function filepath(){const _0x902310={_0x394b09:0x3d4,_0x37c8e6:0x310},_0x3d64fb={_0x56740e:0x3f2,_0x697a44:0xe9,_0xe2cb8b:0x18};if(cachedRgPath)return cachedRgPath;if(_0x2df2da&&existsSync(_0x2df2da))return cachedRgPath=_0x2df2da,_0x2df2da;const _0x158f67=findSystemRipgrep();if(!_0x158f67)throw new Error(_0x1a3ed3(-_0x902310._0x394b09,-_0x902310._0x37c8e6,-0x312,-0x2f4));cachedRgPath=_0x158f67;function _0x1a3ed3(_0x4de105,_0x188fd8,_0x35acb0,_0x4bac63){return _0x22ef16(_0x35acb0,_0x4bac63- -_0x3d64fb._0x56740e,_0x35acb0-_0x3d64fb._0x697a44,_0x4bac63-_0x3d64fb._0xe2cb8b);}return _0x158f67;}async function*files(_0x50eb13){const _0x12d504={_0x21d4da:0x309,_0x3e4add:0x3f2,_0x1954c3:0x53a,_0x595adb:0x437,_0x2dd856:0x592,_0xf300b7:0x51a,_0x49f34e:0x487,_0x1b275c:0x2c8,_0x5f374f:0x3e6,_0x31deed:0x373,_0x1e8e4f:0x259,_0x532174:0x41d,_0x1d72e4:0x208,_0xcffe3f:0x32f,_0x132179:0x1cd,_0x3c0018:0x9e,_0x21a0a2:0x12d,_0x2dadf0:0xa,_0x4276a6:0x489,_0xe4b094:0x612,_0x512881:0x50b,_0x162ec9:0x105,_0x588760:0xb3,_0x1687d0:0x100,_0x55de36:0x435,_0x3e97ca:0x338,_0x9759ea:0x440,_0x2675ed:0xbf,_0x82763f:0x177,_0x2a29f2:0xfa},_0x2e042d={_0x15d5fa:0x236,_0x16cb21:0x16d},_0x4970f6=await filepath(),_0x7bc028=await _0xf2daf8(_0x50eb13[_0x14632b(0x2f8,0x3da,0x36a,0x32f)])[_0x14632b(0x420,_0x12d504._0x21d4da,0x2aa,0x2fb)](()=>null);if(!_0x7bc028?.[_0x14632b(_0x12d504._0x3e4add,0x535,_0x12d504._0x1954c3,0x4da)]())throw Object[_0x14632b(0x589,_0x12d504._0x595adb,_0x12d504._0x2dd856,_0x12d504._0xf300b7)](new Error(_0x14632b(_0x12d504._0x49f34e,_0x12d504._0x1b275c,_0x12d504._0x5f374f,_0x12d504._0x31deed)+_0x50eb13[_0x14632b(_0x12d504._0x1e8e4f,_0x12d504._0x532174,_0x12d504._0x1d72e4,_0x12d504._0xcffe3f)]+'\x27'),{'code':'ENOENT'});const _0x5859e4=['--files',_0x2d5ae7(-_0x12d504._0x132179,-0x10a,-0x1ac,-_0x12d504._0x3c0018),'--hidden',_0x14632b(0x610,0x650,0x5c2,0x534)];function _0x14632b(_0x3ec8b7,_0x5f22b7,_0x196a39,_0x2510a5){return _0x22ef16(_0x3ec8b7,_0x2510a5-_0x2e042d._0x15d5fa,_0x196a39-0x1d6,_0x2510a5-_0x2e042d._0x16cb21);}for(const _0x266d02 of _0x50eb13['glob']??[]){_0x5859e4['push']('--glob='+_0x266d02);}const _0x14eefd=_0x2ebcf7(_0x4970f6,_0x5859e4,{'cwd':_0x50eb13['cwd'],'stdio':[_0x2d5ae7(-0x1b7,-_0x12d504._0x21a0a2,-_0x12d504._0x2dadf0,-0x24b),'pipe','pipe']});let _0xe32f80='';function _0x2d5ae7(_0x14001b,_0x3002c5,_0x11f521,_0x284b1c){return _0x324926(_0x3002c5- -0xcb,_0x11f521,_0x11f521-0x5e,_0x284b1c-0x1e3);}for await(const _0x15b546 of _0x14eefd[_0x14632b(0x408,_0x12d504._0x4276a6,_0x12d504._0xe4b094,_0x12d504._0x512881)]??[]){_0xe32f80+=_0x15b546['toString']();const _0x41753c=_0xe32f80[_0x2d5ae7(-_0x12d504._0x162ec9,-_0x12d504._0x588760,-_0x12d504._0x1687d0,0x28)](/\r?\n/);_0xe32f80=_0x41753c['pop']()??'';for(const _0x412da6 of _0x41753c){if(_0x412da6[_0x14632b(_0x12d504._0x55de36,0x34f,_0x12d504._0x3e97ca,_0x12d504._0x9759ea)]>0x0)yield _0x412da6;}}_0xe32f80['trim']()[_0x2d5ae7(0x19,-_0x12d504._0x2675ed,-_0x12d504._0x82763f,-_0x12d504._0x2a29f2)]>0x0&&(yield _0xe32f80['trim']());}function parseMatchLine(_0x32b07b,_0x285c2a){const _0xd4c2e6={_0x4216af:0x5f6,_0x5ddca8:0x508,_0x1d00d7:0x5b9,_0x4caeb8:0x3c7,_0x42e733:0x10f,_0x301eb2:0x15,_0x540857:0x2,_0x18ef35:0x5e,_0x519c02:0x156,_0xf89cc5:0x56e,_0x481e32:0x541,_0x5bfd2e:0x6b,_0x5e6cef:0xaf,_0x5e07b8:0x6d,_0x318bee:0x97,_0x406909:0x57d},_0x3343eb={_0x24911d:0x19d},_0x5be22d={_0x286361:0x4f0,_0x35524f:0x42};function _0x223432(_0x1253d3,_0x2ecc84,_0x5046d8,_0x455349){return _0x324926(_0x5046d8-_0x5be22d._0x286361,_0x2ecc84,_0x5046d8-_0x5be22d._0x35524f,_0x455349-0xbc);}if(!_0x32b07b||_0x32b07b==='--')return null;const _0x278400=_0x32b07b[_0x223432(_0xd4c2e6._0x4216af,0x5b9,_0xd4c2e6._0x5ddca8,0x53c)]('|');if(_0x285c2a&&_0x278400['length']>=0x4&&Number[_0x223432(_0xd4c2e6._0x1d00d7,_0xd4c2e6._0x4caeb8,0x48d,0x4f9)](Number['parseInt'](_0x278400[0x2]??'',0xa))){const _0x1520e2=Number['parseInt'](_0x278400[0x1]??'',0xa);if(!Number[_0x200838(-_0xd4c2e6._0x42e733,_0xd4c2e6._0x301eb2,-_0xd4c2e6._0x540857,0x109)](_0x1520e2)||!_0x278400[0x0])return null;return{'filePath':_0x278400[0x0],'lineNum':_0x1520e2,'lineText':_0x278400[_0x200838(0x11c,_0xd4c2e6._0x18ef35,_0xd4c2e6._0x519c02,0x2b)](0x3)[_0x223432(_0xd4c2e6._0xf89cc5,_0xd4c2e6._0x481e32,0x43e,0x334)]('|')};}if(_0x278400[_0x200838(_0xd4c2e6._0x5bfd2e,_0xd4c2e6._0x5e6cef,_0xd4c2e6._0x5e07b8,0x4a)]>=0x3){const _0xcc521d=Number['parseInt'](_0x278400[0x1]??'',0xa);if(!Number[_0x200838(-_0xd4c2e6._0x318bee,0xc1,-_0xd4c2e6._0x540857,0x42)](_0xcc521d)||!_0x278400[0x0])return null;return{'filePath':_0x278400[0x0],'lineNum':_0xcc521d,'lineText':_0x278400[_0x223432(0x4d0,_0xd4c2e6._0x406909,0x5e5,0x69f)](0x2)[_0x223432(0x556,0x524,0x43e,0x38e)]('|'),..._0x285c2a?{'isContext':!![]}:{}};}function _0x200838(_0x3d9f11,_0x51ecdc,_0x1ecc7c,_0x30884b){return _0x22ef16(_0x51ecdc,_0x1ecc7c- -_0x3343eb._0x24911d,_0x1ecc7c-0x42,_0x30884b-0x9);}return null;}async function search(_0x5cfb69){const _0x51d3a3={_0xddd2d4:0x74,_0x5d3b3d:0x235,_0x1fece0:0x17a,_0x4aa082:0xf7,_0x38d857:0x1b8,_0x33db34:0xbe,_0x593a7b:0xbd,_0x1b4278:0xc1,_0x1b7ccb:0x1db,_0x5ed6d3:0x16b,_0x53a54e:0xba,_0x57449e:0x1ba,_0x199484:0x177,_0xf043e9:0x197,_0x899e89:0x103,_0x5c2504:0x101,_0x293a74:0x109,_0x5139ff:0x116,_0x36985b:0x127,_0x56562f:0x23,_0x489ca0:0x38,_0x51d515:0x1bf,_0x5cb388:0x18b,_0x199814:0x139,_0x4bb4e2:0x5b,_0xcf2af4:0xa6,_0x583abe:0x155,_0x2aa879:0x116,_0x171c15:0x24e,_0x39dc5b:0x246,_0xe24d19:0xb,_0x54fb8e:0x72,_0x666f7:0x13,_0x29b997:0x200,_0xd9083a:0x22f,_0x243978:0xce,_0x5d2747:0x159,_0x520a2e:0x33,_0x1b39fa:0xa1,_0xfdfbe3:0x21,_0x1390db:0xfc,_0x1184b6:0x20e,_0x18be5f:0x28a,_0x572879:0x22a,_0x177a2f:0xa2,_0x25c70e:0x107,_0x5867f6:0x11b,_0x3382d3:0xb,_0xf6a9f3:0x9f},_0x24af15={_0x5aa319:0x37d,_0x48e552:0x43c,_0xbc5807:0x463,_0xef4dbb:0x3d3,_0x3405bf:0x5de,_0x1e514f:0x3a9,_0x4643b8:0x4ce,_0x21be6a:0x577,_0x483107:0x4b1,_0x354d77:0x4be,_0x4ee1bb:0x432,_0x54393c:0x3bf,_0xb8251c:0x435,_0x18962b:0x588,_0x14b362:0x627,_0x37857e:0x5a6,_0x55d173:0x6a4,_0x5a5971:0x5d3},_0x28b916={_0x573afe:0x149,_0x593140:0x91},_0xbcb1bd={_0x3683d4:0x100,_0x3ebb96:0x1c},_0x3da1ea={_0x2e15bb:0x26},_0x5dae1b={_0x389df7:0x171},_0x1f893c={_0x187406:0x131},_0x538879={_0x582511:0xaa,_0xc9a508:0x76};function _0x4f4746(_0x33ec4d,_0x14b16b,_0x538747,_0x4fd2d0){return _0x22ef16(_0x14b16b,_0x33ec4d- -_0x538879._0x582511,_0x538747-0x14,_0x4fd2d0-_0x538879._0xc9a508);}const _0x2ea706=await filepath();if(_0x5cfb69[_0x3ecbe7(_0x51d3a3._0xddd2d4,0x11b,_0x51d3a3._0x5d3b3d,_0x51d3a3._0x1fece0)]){const _0x1c0715=await _0xf2daf8(_0x5cfb69[_0x3ecbe7(_0x51d3a3._0x4aa082,0x11b,0x2a,_0x51d3a3._0x38d857)])['catch'](()=>null);if(!_0x1c0715?.['isFile']())throw Object['assign'](new Error('No\x20such\x20file:\x20\x27'+_0x5cfb69[_0x3ecbe7(_0x51d3a3._0x33db34,0x11b,_0x51d3a3._0x593a7b,0xc1)]+'\x27'),{'code':_0x4f4746(_0x51d3a3._0x1b4278,_0x51d3a3._0x1b7ccb,-0x47,_0x51d3a3._0x5ed6d3)});}else{const _0xded85a=await _0xf2daf8(_0x5cfb69['cwd'])[_0x3ecbe7(-_0x51d3a3._0x53a54e,-0xa8,-_0x51d3a3._0x57449e,0x47)](()=>null);if(!_0xded85a?.['isDirectory']())throw Object[_0x3ecbe7(0xa4,_0x51d3a3._0x199484,0xc0,_0x51d3a3._0xf043e9)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x5cfb69[_0x3ecbe7(-_0x51d3a3._0x899e89,-0x74,-0x96,-_0x51d3a3._0x5c2504)]+'\x27'),{'code':_0x3ecbe7(-_0x51d3a3._0x293a74,-0x2,-0xb3,0xa9)});}const _0x19f1d4=[_0x3ecbe7(0xf2,_0x51d3a3._0x5139ff,0x1b6,_0x51d3a3._0x36985b),'--field-match-separator=|',_0x3ecbe7(-0xbf,_0x51d3a3._0x56562f,0x113,_0x51d3a3._0x489ca0),'--regexp',_0x5cfb69[_0x4f4746(0x265,_0x51d3a3._0x51d515,_0x51d3a3._0x5cb388,_0x51d3a3._0x199814)]],_0xcc47b=typeof _0x5cfb69[_0x3ecbe7(-0xed,0xb,_0x51d3a3._0x4bb4e2,_0x51d3a3._0xcf2af4)]===_0x4f4746(_0x51d3a3._0x583abe,_0x51d3a3._0x2aa879,_0x51d3a3._0x171c15,_0x51d3a3._0x39dc5b)&&_0x5cfb69[_0x3ecbe7(-0x7a,_0x51d3a3._0xe24d19,-_0x51d3a3._0x54fb8e,_0x51d3a3._0x666f7)]>0x0;function _0x3ecbe7(_0x3ba7d9,_0x546001,_0x2ec07e,_0x3da47){return _0x324926(_0x546001-0x91,_0x3ba7d9,_0x2ec07e-_0x1f893c._0x187406,_0x3da47-0x1f2);}return _0xcc47b&&_0x19f1d4[_0x4f4746(_0x51d3a3._0x29b997,0x22e,0x2cc,_0x51d3a3._0xd9083a)]('-C',String(_0x5cfb69[_0x4f4746(_0x51d3a3._0x243978,-0x2b,-0x50,_0x51d3a3._0x5d2747)]),_0x4f4746(_0x51d3a3._0x520a2e,0xf4,0x135,-_0x51d3a3._0x1b39fa)),_0x5cfb69[_0x4f4746(_0x51d3a3._0xfdfbe3,-0x8b,0x74,-_0x51d3a3._0x1390db)]&&!_0x5cfb69[_0x4f4746(0x1de,_0x51d3a3._0x1184b6,_0x51d3a3._0x18be5f,_0x51d3a3._0x572879)]&&_0x19f1d4[_0x4f4746(0x200,0x232,0x2bd,_0x51d3a3._0x2aa879)]('--glob',_0x5cfb69[_0x3ecbe7(-_0x51d3a3._0x199814,-_0x51d3a3._0x177a2f,-0xdf,-_0x51d3a3._0x199484)]),_0x19f1d4[_0x4f4746(_0x51d3a3._0x29b997,_0x51d3a3._0x25c70e,0x185,0x19e)](_0x5cfb69[_0x3ecbe7(0xc7,_0x51d3a3._0x5867f6,_0x51d3a3._0x3382d3,_0x51d3a3._0xf6a9f3)]??_0x5cfb69['cwd']),await new Promise((_0x3342cd,_0x4e62ef)=>{const _0x2c2e7b={_0x18c4b2:0x222,_0x1b8662:0x383,_0x19ea0a:0x2ae,_0x12fda8:0x324,_0x9e97b7:0x43f,_0x4d35d7:0x41e,_0x3e0035:0x3ae,_0x9b24fc:0x392,_0x36c9de:0x38a,_0x25d621:0x384},_0x52f32b={_0x1b6ab4:0xab},_0x3a3f42={_0x123f4a:0x9f,_0x2719ad:0x3e0},_0x9fc49b=_0x2ebcf7(_0x2ea706,_0x19f1d4,{'cwd':_0x5cfb69[_0x2581e0(_0x24af15._0x5aa319,0x3d0,0x362,0x40e)],'stdio':[_0xc9c94e(0x43e,0x352,0x478,0x45f),_0x2581e0(0x5fb,_0x24af15._0x48e552,_0x24af15._0xbc5807,0x4ce),_0x2581e0(_0x24af15._0xef4dbb,_0x24af15._0x3405bf,_0x24af15._0x1e514f,_0x24af15._0x4643b8)]});function _0x2581e0(_0x1cec78,_0x8e1a29,_0x334e41,_0x1187ca){return _0x4f4746(_0x1187ca-0x3bf,_0x8e1a29,_0x334e41-_0x5dae1b._0x389df7,_0x1187ca-0x40);}let _0x50c7b7='',_0x37bacb='';function _0xc9c94e(_0x1bf653,_0x2a2fd1,_0x488d4b,_0x1eb2d3){return _0x4f4746(_0x1bf653-0x34c,_0x2a2fd1,_0x488d4b-0x187,_0x1eb2d3-_0x3da1ea._0x2e15bb);}_0x9fc49b[_0xc9c94e(_0x24af15._0x21be6a,0x502,0x5a5,0x61e)]?.['on'](_0x2581e0(_0x24af15._0x483107,_0x24af15._0x354d77,0x509,_0x24af15._0x4ee1bb),_0x4e7c31=>{const _0x152a4b={_0x3a7ae8:0x13b,_0x32f6bc:0xa};function _0x2f8af1(_0x501c55,_0x9bfa8d,_0x59c80e,_0x579cfb){return _0xc9c94e(_0x59c80e- -0x3fb,_0x501c55,_0x59c80e-_0x152a4b._0x3a7ae8,_0x579cfb-_0x152a4b._0x32f6bc);}_0x50c7b7+=_0x4e7c31[_0x2f8af1(-0xe4,-_0xbcb1bd._0x3683d4,0x27,-_0xbcb1bd._0x3ebb96)]();}),_0x9fc49b[_0xc9c94e(0x507,0x46b,0x40a,0x60f)]?.['on'](_0xc9c94e(_0x24af15._0x54393c,_0x24af15._0xb8251c,0x3a2,0x40d),_0x47519e=>{function _0x3cebde(_0x25755c,_0x12099e,_0xe3d9cd,_0x5a0e2c){return _0x2581e0(_0x25755c-0x1e6,_0x5a0e2c,_0xe3d9cd-_0x3a3f42._0x123f4a,_0xe3d9cd- -_0x3a3f42._0x2719ad);}_0x37bacb+=_0x47519e[_0x3cebde(_0x28b916._0x573afe,_0x28b916._0x593140,0xb5,0x155)]();}),_0x9fc49b['on'](_0x2581e0(_0x24af15._0x18962b,0x4d0,_0x24af15._0x14b362,0x507),_0x120e16=>{const _0xdf4443={_0x120630:0x8d};if(_0x120e16===0x1&&_0x50c7b7===''){_0x3342cd([]);return;}function _0x32e709(_0x139c20,_0x47d4a6,_0x335d28,_0x31a8f7){return _0x2581e0(_0x139c20-_0xdf4443._0x120630,_0x139c20,_0x335d28-0xca,_0x335d28- -0xf3);}if(_0x120e16!==0x0&&_0x120e16!==0x1){_0x4e62ef(new Error('ripgrep\x20failed:\x20'+_0x37bacb));return;}const _0x1985fd=_0x5cfb69[_0x43e42d(_0x2c2e7b._0x18c4b2,0x2fd,_0x2c2e7b._0x1b8662,_0x2c2e7b._0x19ea0a)]??0x64,_0x1eacb4=[];for(const _0x47fedd of _0x50c7b7[_0x32e709(_0x2c2e7b._0x12fda8,_0x2c2e7b._0x9e97b7,0x438,_0x2c2e7b._0x4d35d7)](/\r?\n/)){if(_0x1eacb4['length']>=_0x1985fd)break;const _0x581bd8=parseMatchLine(_0x47fedd,_0xcc47b);if(_0x581bd8)_0x1eacb4[_0x43e42d(_0x2c2e7b._0x3e0035,_0x2c2e7b._0x9b24fc,_0x2c2e7b._0x36c9de,_0x2c2e7b._0x25d621)](_0x581bd8);}function _0x43e42d(_0x258fd5,_0x18ad21,_0x273733,_0x22d3a0){return _0x2581e0(_0x258fd5-_0x52f32b._0x1b6ab4,_0x273733,_0x273733-0x15c,_0x22d3a0- -0x23b);}_0x3342cd(_0x1eacb4);}),_0x9fc49b['on'](_0xc9c94e(_0x24af15._0x37857e,_0x24af15._0x55d173,0x5ee,_0x24af15._0x5a5971),_0x4e62ef);});}function createGlobTool(_0x271ab5={}){const _0x48dfe6={_0x3e6a51:0x2cd,_0x2784e5:0x479,_0x3f854e:0x12b,_0x179ef9:0x196,_0x3fe2ac:0x352,_0x250134:0x35a,_0x2026c7:0x2d3,_0x46d9f6:0x439,_0x5671e8:0x351,_0x318216:0x4db,_0x23fe68:0x418,_0x595da2:0x37f,_0xdc0912:0xf5,_0x5e5faa:0x2,_0x5c4d4c:0x33d,_0x24f68d:0x4d8,_0x40ca63:0x58f,_0x23b918:0x467,_0x1ad7e2:0x4b3},_0x213b58={_0x14fdf0:0x27a,_0x4b2c20:0x291,_0x12f4ec:0x1d3,_0x2afb78:0x1c6,_0x3a5f33:0x115,_0x58156c:0x131,_0x4e09da:0x100,_0x55e39b:0x61,_0x509409:0x47,_0x192b67:0x2c3,_0x30f5fb:0x1dd,_0x356326:0x2fe,_0x4fb787:0x253,_0x220295:0x172,_0x57e9ce:0x17d,_0x549c1c:0x112,_0x2ee90d:0x217,_0x356a58:0x11a,_0x14a8b2:0x1a0,_0x269a31:0x29b,_0xb2a5af:0x17b,_0x1e2691:0x13d,_0x169f10:0xb6,_0x339295:0x2fa,_0xb6d317:0x25a,_0x1e44f3:0xac,_0x2dea51:0x1f2,_0x1e9355:0x128,_0x2670cb:0xb3,_0x748f8a:0xa9,_0x46ee75:0x7e,_0x5780c1:0x4d,_0x6c3ccf:0x194,_0x2c0bc8:0x2ec,_0x4a3df7:0x260,_0x5507eb:0x289,_0x30911a:0x188,_0x267ab6:0x23b,_0x535890:0x6d,_0x54d677:0x2a0,_0x2547e8:0x2a9,_0x28d3f7:0x1e6,_0xde0775:0xc5,_0x1f263e:0x1e8,_0x5d12e2:0x30a,_0x28bb2c:0x70,_0x385585:0x240,_0x46af68:0x2eb,_0x39b17b:0x355,_0x2004b3:0x291,_0x510c47:0x9d,_0x2ae4b8:0xb9,_0x2e2462:0x7b,_0x36243a:0x18c},_0x5e2d10={_0x51004c:0x92},_0x3870eb={_0x4be48d:0x3e},_0x570885={_0x2f009a:0x3d8,_0x2723da:0x1bd},_0x401533=_0x1c059e[_0x342a12(0x31e,_0x48dfe6._0x3e6a51,0x494,0x3ab)](_0x271ab5[_0x342a12(0x41c,0x393,_0x48dfe6._0x2784e5,0x43a)]??process[_0x114886(-0x27f,-_0x48dfe6._0x3f854e,-0x21e,-_0x48dfe6._0x179ef9)]()),_0x3db5f1=(_0x271ab5[_0x342a12(0x3a7,0x48e,_0x48dfe6._0x3fe2ac,0x3e9)]??[])['map'](_0x228ae6=>_0x1c059e[_0x342a12(0x476,0x3fc,0x4c3,0x3ab)](_0x228ae6));function _0x342a12(_0x4d0f1e,_0x69ae22,_0x345bfe,_0x939b87){return _0x324926(_0x939b87-_0x570885._0x2f009a,_0x4d0f1e,_0x345bfe-_0x570885._0x2723da,_0x939b87-0x66);}const _0x310d06=_0x271ab5[_0x342a12(_0x48dfe6._0x250134,_0x48dfe6._0x2026c7,0x47e,0x3ae)]??0x64;function _0x114886(_0x43b367,_0x4640d9,_0x47b5d3,_0x159ab7){return _0x22ef16(_0x43b367,_0x159ab7- -0x28f,_0x47b5d3-0x75,_0x159ab7-_0x3870eb._0x4be48d);}const _0x2665ad=_0x271ab5[_0x342a12(0x3a2,_0x48dfe6._0x46d9f6,0x3a2,_0x48dfe6._0x5671e8)]??_0x342a12(0x3b1,0x3a9,_0x48dfe6._0x318216,0x461);return defineTool({'name':_0x2665ad,'description':_0x342a12(_0x48dfe6._0x23fe68,0x452,0x413,_0x48dfe6._0x595da2),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x114886(_0x48dfe6._0xdc0912,0xac,-0x61,-_0x48dfe6._0x5e5faa)},'path':{'type':_0x342a12(_0x48dfe6._0x5c4d4c,_0x48dfe6._0x24f68d,_0x48dfe6._0x40ca63,_0x48dfe6._0x23b918)},'limit':{'type':'number'}},'required':[_0x342a12(0x49f,0x5fd,_0x48dfe6._0x1ad7e2,0x4e9)]},async *'execute'(_0x6e415f){const _0x29f0e8={_0x3a3f5c:0x26b};if(_0x6e415f[_0x8deca5(0x3b1,_0x213b58._0x14fdf0,0x170,_0x213b58._0x4b2c20)][_0x3cdc4a(0xae,_0x213b58._0x12f4ec,_0x213b58._0x2afb78,0x1a7)]()[_0x8deca5(0x2b7,_0x213b58._0x3a5f33,0x138,0x18c)]===0x0)throw new ToolExecutionError(_0x3cdc4a(0x18e,0x121,_0x213b58._0x58156c,_0x213b58._0x4e09da),{});const _0x3d16fd=resolveAllowedPath(_0x401533,_0x3db5f1,_0x6e415f['path']??'.'),_0x2d8506=await _0x157cfe(_0x3d16fd)[_0x8deca5(-_0x213b58._0x55e39b,0x4f,0x175,_0x213b58._0x509409)](()=>null);if(!_0x2d8506?.['isDirectory']())throw new ToolExecutionError(_0x3cdc4a(_0x213b58._0x192b67,0x24f,0x2aa,0x1c9)+(_0x6e415f[_0x8deca5(0x1f0,_0x213b58._0x30f5fb,_0x213b58._0x356326,_0x213b58._0x4fb787)]??'.'),{'path':_0x6e415f[_0x8deca5(0x172,_0x213b58._0x220295,_0x213b58._0x57e9ce,0x253)]??'.'});const _0x1fe690=_0x6e415f[_0x3cdc4a(_0x213b58._0x549c1c,0x1b0,_0x213b58._0x2ee90d,_0x213b58._0x356a58)]??_0x310d06,_0x1d9f08=Math[_0x3cdc4a(_0x213b58._0x14a8b2,0x1d7,_0x213b58._0x269a31,0x305)](0x1,Math[_0x8deca5(_0x213b58._0xb2a5af,_0x213b58._0x1e2691,_0x213b58._0x169f10,0x1b6)](_0x1fe690)),_0x49e26a=[];let _0x36b40e=![];for await(const _0x5848f6 of files({'cwd':_0x3d16fd,'glob':[_0x6e415f[_0x8deca5(_0x213b58._0x339295,_0x213b58._0xb6d317,0x196,0x291)]]})){if(_0x49e26a[_0x8deca5(0x8b,0xa3,_0x213b58._0x1e44f3,0x18c)]>=_0x1d9f08){_0x36b40e=!![];break;}const _0x4e372f=await _0x157cfe(_0x1c059e[_0x3cdc4a(_0x213b58._0x2dea51,_0x213b58._0x1e9355,_0x213b58._0x2670cb,0x1bb)](_0x3d16fd,_0x5848f6))[_0x8deca5(-_0x213b58._0x748f8a,_0x213b58._0x46ee75,-_0x213b58._0x5780c1,_0x213b58._0x509409)](()=>null);_0x49e26a[_0x8deca5(0x23a,_0x213b58._0x6c3ccf,0x108,0x22c)]({'path':_0x5848f6,'mtime':_0x4e372f?.[_0x8deca5(_0x213b58._0x2c0bc8,0x30d,_0x213b58._0x4a3df7,_0x213b58._0x5507eb)]??0x0});}_0x49e26a[_0x3cdc4a(0x115,_0x213b58._0x30911a,_0x213b58._0x267ab6,_0x213b58._0x535890)]((_0x331fa1,_0x30ba5c)=>_0x30ba5c[_0x3cdc4a(0x19c,0x185,0x19d,0x1f3)]-_0x331fa1['mtime']);function _0x3cdc4a(_0x1d3b66,_0x265473,_0x3269b8,_0x482b4d){return _0x114886(_0x1d3b66,_0x265473-0x7f,_0x3269b8-0x5e,_0x265473-_0x29f0e8._0x3a3f5c);}const _0x4ca979=_0x49e26a[_0x3cdc4a(0x355,_0x213b58._0x54d677,0x37c,0x2cb)](_0x3a36e5=>_0x3a36e5[_0x3cdc4a(0x251,0x2ad,0x32c,0x392)]);function _0x8deca5(_0xe1c3e0,_0x3177f0,_0x1e491c,_0x36567a){return _0x342a12(_0x1e491c,_0x3177f0-_0x5e2d10._0x51004c,_0x1e491c-0xef,_0x36567a- -0x258);}const _0x965af4=_0x4ca979[_0x3cdc4a(_0x213b58._0x2547e8,_0x213b58._0x28d3f7,0x205,_0x213b58._0xde0775)]===0x0?_0x3cdc4a(0x112,0x163,0x34,_0x213b58._0x1f263e)+_0x6e415f[_0x3cdc4a(0x37b,0x2eb,_0x213b58._0x5d12e2,0x3f3)]:''+_0x4ca979[_0x8deca5(0x29,0x128,_0x213b58._0x28bb2c,0xce)]('\x0a')+(_0x36b40e?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');return yield createToolOutput(_0x965af4,{'pattern':_0x6e415f[_0x3cdc4a(_0x213b58._0x385585,_0x213b58._0x46af68,0x307,_0x213b58._0x39b17b)],'searchPath':_0x1c059e[_0x3cdc4a(_0x213b58._0x2004b3,0x19e,_0x213b58._0x510c47,_0x213b58._0x2ae4b8)](_0x401533,_0x3d16fd)||'.','matches':_0x4ca979,'count':_0x4ca979[_0x8deca5(0x2ab,_0x213b58._0x2e2462,0x27c,_0x213b58._0x36243a)],'truncated':_0x36b40e}),void 0x0;}});}import{stat as _0x55af11}from'fs/promises';import*as _0x4a1fb1 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x5322d1={}){const _0x2a3369={_0x352eda:0x1a1,_0x2fb703:0x20c,_0x44bb1:0x1a0,_0x12aa2f:0x32c,_0x5c13eb:0x246,_0x255547:0x2d7,_0x426db5:0x241,_0x493e44:0x23f,_0x436108:0x41b,_0x3e3667:0x313,_0x25ec44:0x3d3,_0x22e718:0x127,_0x48d081:0x1d,_0x33930e:0xaf,_0x376106:0x1c7,_0x12b2c2:0xad,_0x125792:0x26b,_0x551fab:0x1ce,_0x505446:0x2e0,_0x4cf20f:0x147,_0xa049d1:0x1a9,_0x26f307:0x4c0,_0x3befcf:0x44a,_0x4e05b6:0x581,_0xa114a3:0x511,_0xee5ae7:0x1ea,_0x256193:0x4f9,_0x4122cc:0x250,_0x369f0c:0x2c9},_0x39dcde={_0x29e972:0x500,_0x59986d:0x5ab,_0x38f8a7:0x57c,_0x227232:0x475,_0x149d8a:0x4cf,_0x5f575f:0x48f,_0x1a75fc:0x1a7,_0x4b4ee5:0x138,_0x4abab4:0x565,_0x581512:0x6d5,_0x18f0fa:0x382,_0x4f4d58:0x49c,_0x383b86:0x371,_0x3f0891:0x2fb,_0x4d7ae3:0x677,_0x421f98:0x440,_0x58c1a1:0x43f,_0x10f18d:0x4ec,_0x5502d9:0x47a,_0x54b98f:0x19f,_0x2c33f7:0x196,_0x35cf27:0x504,_0x15c5d7:0x4fc,_0x26c9b5:0x438,_0x4cd3d0:0x541,_0x5e989e:0x3cd,_0x59ece2:0x618,_0x1bdfa2:0x682,_0x26e547:0x581,_0x59d9a8:0x689,_0x1c88d2:0x35d,_0xc6de16:0x5a5,_0x1421ee:0x286,_0x4f9705:0x3c0,_0xca8374:0x3ce,_0x49c28f:0x20e,_0x54c196:0x2b6,_0x5ed5ee:0x2af,_0x28b39d:0x3c7,_0x133cc2:0x2c7,_0x13a3db:0x284,_0xa9b2f4:0x12f,_0x28258f:0x1ca,_0xa714d9:0x100,_0x1650e6:0x23b,_0x3ffd66:0x3ee,_0x30e552:0x2cb,_0x173aaf:0x1fd,_0x4b76f:0x122,_0xe719bd:0x1c1,_0x44e979:0x5c6,_0x79ee68:0x538,_0x44cfea:0x618,_0xbdcfb3:0x596,_0x2dcee4:0x53b,_0x230783:0x177,_0x3977b6:0x1f0,_0x174a1a:0x201,_0x340e16:0x2a2,_0x1138ac:0x266,_0xc0e2fd:0x1c0,_0x4ead47:0x517,_0x1f675d:0x56d,_0x48c997:0x482,_0x14ec14:0x2e6,_0x24c3cd:0x21f,_0x4a4403:0x400,_0x3e7c9b:0x4bc,_0xfaf077:0x517,_0x19c898:0x5b0,_0x48054e:0x59e,_0x43e41b:0x509,_0x2c4fa9:0x19b,_0x3aeaa0:0x210,_0x4a96a7:0x4a4,_0x126371:0x3f9,_0xa32428:0x5f4,_0x272172:0x4f2,_0x38565f:0x408,_0x1b305c:0x479,_0x371e32:0x3e3,_0x155ef8:0x376,_0xd23f95:0xa8,_0x1ff1d9:0xcd,_0x577849:0x12c,_0x517e3d:0x159,_0x45ea2e:0x1ea},_0x4f79fb={_0x220f1d:0x17a},_0x2f7385={_0x3b5736:0x13f,_0x210e11:0xdb},_0x306350={_0x5a1c25:0x1bc},_0x1d4e0f=_0x4a1fb1['resolve'](_0x5322d1[_0x3dd44b(_0x2a3369._0x352eda,_0x2a3369._0x2fb703,_0x2a3369._0x44bb1,0x179)]??process[_0x58300d(_0x2a3369._0x12aa2f,_0x2a3369._0x5c13eb,0x428,0x28d)]()),_0x2d7f75=(_0x5322d1['allowedDirs']??[])[_0x3dd44b(0x205,_0x2a3369._0x255547,_0x2a3369._0x426db5,_0x2a3369._0x493e44)](_0xbc6a60=>_0x4a1fb1[_0x58300d(0x404,0x329,0x4ce,0x3f1)](_0xbc6a60)),_0x421816=_0x5322d1[_0x58300d(0x407,_0x2a3369._0x436108,_0x2a3369._0x3e3667,_0x2a3369._0x25ec44)]??0x64;function _0x58300d(_0x5f410b,_0x570978,_0x8049c0,_0x3780ca){return _0x22ef16(_0x570978,_0x5f410b-0x233,_0x8049c0-0x1dc,_0x3780ca-_0x306350._0x5a1c25);}const _0x2090fb=_0x5322d1[_0x3dd44b(0xb8,0x149,-0x5f,_0x2a3369._0x22e718)]??'Grep';function _0x3dd44b(_0x39e548,_0x365f15,_0x13df5b,_0xcc8700){return _0x324926(_0x39e548-_0x2f7385._0x3b5736,_0x13df5b,_0x13df5b-0x1b8,_0xcc8700-_0x2f7385._0x210e11);}return defineTool({'name':_0x2090fb,'description':_0x3dd44b(_0x2a3369._0x48d081,-_0x2a3369._0x33930e,-0xe5,-0xb7),'inputSchema':{'type':_0x3dd44b(_0x2a3369._0x376106,_0x2a3369._0x12b2c2,0x273,_0x2a3369._0x125792),'properties':{'pattern':{'type':_0x3dd44b(_0x2a3369._0x551fab,_0x2a3369._0x505446,_0x2a3369._0x4cf20f,_0x2a3369._0xa049d1)},'path':{'type':_0x58300d(_0x2a3369._0x26f307,_0x2a3369._0x3befcf,_0x2a3369._0x4e05b6,_0x2a3369._0xa114a3)},'include':{'type':_0x3dd44b(0x1ce,_0x2a3369._0xee5ae7,0x18f,0x293)},'limit':{'type':'number'},'context':{'type':_0x58300d(0x432,0x3ea,0x51d,_0x2a3369._0x256193)}},'required':[_0x3dd44b(_0x2a3369._0x4122cc,0x373,_0x2a3369._0x369f0c,0x203)]},async *'execute'(_0x2f7d21){const _0x8c19b0={_0x23b783:0x3c8,_0x3794c7:0x48};if(_0x2f7d21['pattern'][_0x5454d9(_0x39dcde._0x29e972,_0x39dcde._0x59986d,0x5d8,_0x39dcde._0x38f8a7)]()[_0x5454d9(0x513,_0x39dcde._0x227232,_0x39dcde._0x149d8a,_0x39dcde._0x5f575f)]===0x0)throw new ToolExecutionError(_0x33f280(0x170,_0x39dcde._0x1a75fc,_0x39dcde._0x4b4ee5,0x7a),{});const _0x3ce8af=resolveAllowedPath(_0x1d4e0f,_0x2d7f75,_0x2f7d21[_0x5454d9(0x5da,0x4ca,_0x39dcde._0x4abab4,_0x39dcde._0x581512)]??'.'),_0x412002=await _0x55af11(_0x3ce8af)[_0x5454d9(0x3ce,_0x39dcde._0x18f0fa,_0x39dcde._0x4f4d58,_0x39dcde._0x383b86)](()=>null),_0x3d8192=_0x412002?.[_0x5454d9(0x3d3,0x43c,_0x39dcde._0x3f0891,0x482)]()??![],_0x3210fd=_0x412002?.[_0x5454d9(0x5ad,_0x39dcde._0x4d7ae3,0x550,0x4e2)]()??![];if(!_0x3d8192&&!_0x3210fd)throw new ToolExecutionError(_0x5454d9(_0x39dcde._0x421f98,_0x39dcde._0x58c1a1,_0x39dcde._0x10f18d,_0x39dcde._0x5502d9)+(_0x2f7d21['path']??'.'),{'path':_0x2f7d21['path']??'.'});const _0x5bdadf=_0x2f7d21[_0x33f280(_0x39dcde._0x54b98f,0x1f7,0x1c7,_0x39dcde._0x2c33f7)]??_0x421816,_0x252df2=Math[_0x5454d9(_0x39dcde._0x35cf27,0x4b9,0x42a,0x498)](0x1,Math[_0x5454d9(0x53d,_0x39dcde._0x15c5d7,0x465,0x652)](_0x5bdadf)),_0x35a67d=await search({'cwd':_0x3210fd?_0x3ce8af:_0x4a1fb1[_0x5454d9(_0x39dcde._0x26c9b5,_0x39dcde._0x4cd3d0,0x561,_0x39dcde._0x5e989e)](_0x3ce8af),'pattern':_0x2f7d21[_0x5454d9(_0x39dcde._0x59ece2,_0x39dcde._0x1bdfa2,_0x39dcde._0x26e547,_0x39dcde._0x59d9a8)],'glob':_0x3210fd?_0x2f7d21[_0x5454d9(0x3e3,0x4b2,0x324,_0x39dcde._0x1c88d2)]:void 0x0,'limit':_0x252df2,'file':_0x3d8192?_0x3ce8af:void 0x0,'context':_0x2f7d21['context']}),_0x3f3e38=new Map();function _0x33f280(_0x5c32b0,_0x300121,_0x54c35b,_0x3655b6){return _0x3dd44b(_0x54c35b-0xb2,_0x300121-0x11a,_0x300121,_0x3655b6-_0x4f79fb._0x220f1d);}for(const _0x35818c of _0x35a67d){if(!_0x3f3e38[_0x5454d9(0x479,0x3c4,0x4b2,_0x39dcde._0xc6de16)](_0x35818c[_0x33f280(_0x39dcde._0x1421ee,_0x39dcde._0x4f9705,0x2b6,0x3d2)])){const _0x38bb76=await _0x55af11(_0x35818c['filePath'])[_0x5454d9(_0x39dcde._0xca8374,0x3e5,_0x39dcde._0x15c5d7,0x4bb)](()=>null);_0x3f3e38[_0x33f280(0x6a,_0x39dcde._0x49c28f,0x102,0xf0)](_0x35818c['filePath'],{'matches':[],'mtime':_0x38bb76?.['mtimeMs']??0x0});}_0x3f3e38['get'](_0x35818c[_0x33f280(0x276,0x2b1,_0x39dcde._0x54c196,0x390)])?.[_0x33f280(_0x39dcde._0x5ed5ee,_0x39dcde._0x28b39d,_0x39dcde._0x133cc2,_0x39dcde._0x13a3db)]['push'](_0x35818c);}const _0x1ce4fa=[..._0x3f3e38[_0x33f280(0xbe,0x107,_0x39dcde._0xa9b2f4,0x63)]()][_0x33f280(_0x39dcde._0x28258f,_0x39dcde._0xa714d9,0x19f,0x26f)]((_0x1a0b8b,_0x30070c)=>_0x30070c[0x1][_0x5454d9(0x4b2,0x521,0x425,0x42c)]-_0x1a0b8b[0x1][_0x5454d9(0x4b2,0x567,0x5cb,0x532)]),_0x51311d=_0x35a67d[_0x33f280(_0x39dcde._0x1650e6,_0x39dcde._0x3ffd66,_0x39dcde._0x30e552,0x2f1)](_0x33f72b=>!_0x33f72b[_0x5454d9(0x526,0x5e3,0x41e,0x598)])[_0x5454d9(0x513,0x44d,0x583,0x47b)],_0x16555d=_0x35a67d[_0x33f280(0x13e,0x29d,_0x39dcde._0x173aaf,0x265)]>=_0x252df2;function _0x5454d9(_0x2080bf,_0x2f741d,_0x3802c6,_0x19d642){return _0x3dd44b(_0x2080bf-_0x8c19b0._0x23b783,_0x2f741d-0x184,_0x3802c6,_0x19d642-_0x8c19b0._0x3794c7);}const _0x4bec3c=_0x3d8192?_0x4a1fb1[_0x33f280(0x1f3,0x7f,_0x39dcde._0x4b76f,_0x39dcde._0xe719bd)](_0x3ce8af):_0x3ce8af;let _0x344fb5='';if(_0x35a67d[_0x5454d9(0x513,0x471,0x62f,_0x39dcde._0x149d8a)]===0x0)_0x344fb5=_0x5454d9(_0x39dcde._0x44e979,_0x39dcde._0x79ee68,0x631,0x4ff)+_0x2f7d21[_0x5454d9(_0x39dcde._0x44cfea,_0x39dcde._0xbdcfb3,_0x39dcde._0x2dcee4,0x70b)];else{_0x344fb5='Found\x20'+_0x51311d+'\x20match'+(_0x51311d===0x1?'':'es')+'\x0a';for(const [_0x30da4a,_0xf1d961]of _0x1ce4fa){const _0x4e5fa0=_0x3d8192?_0x4a1fb1['basename'](_0x30da4a):_0x4a1fb1[_0x33f280(_0x39dcde._0x230783,0x109,0x1b5,0xcb)](_0x4bec3c,_0x30da4a);_0x344fb5+='\x0a'+_0x4e5fa0+':\x0a';for(const _0xd96e92 of _0xf1d961[_0x33f280(0x1a4,_0x39dcde._0x3977b6,_0x39dcde._0x133cc2,0x23c)]){const _0x457521=_0xd96e92[_0x33f280(0x278,0x2f5,_0x39dcde._0x174a1a,0x24b)][_0x33f280(_0x39dcde._0x340e16,_0x39dcde._0x1138ac,_0x39dcde._0x173aaf,_0x39dcde._0xc0e2fd)]>MAX_LINE_LENGTH?_0xd96e92[_0x5454d9(_0x39dcde._0x4ead47,0x4de,_0x39dcde._0x1f675d,_0x39dcde._0x48c997)][_0x33f280(0x211,0x3ce,_0x39dcde._0x14ec14,_0x39dcde._0x24c3cd)](0x0,MAX_LINE_LENGTH)+_0x5454d9(_0x39dcde._0x4a4403,0x33a,_0x39dcde._0x3e7c9b,0x426):_0xd96e92[_0x5454d9(_0x39dcde._0xfaf077,_0x39dcde._0x19c898,_0x39dcde._0x48054e,_0x39dcde._0x43e41b)],_0x4b08f9=_0xd96e92[_0x33f280(_0x39dcde._0x2c4fa9,0xfa,_0x39dcde._0x3aeaa0,0x26b)]?'\x20\x20':'>\x20';_0x344fb5+=_0x4b08f9+_0x5454d9(0x564,_0x39dcde._0x4a96a7,0x629,0x56b)+_0xd96e92[_0x5454d9(0x4d1,_0x39dcde._0x126371,_0x39dcde._0xa32428,0x549)]+':\x20'+_0x457521+'\x0a';}}_0x16555d&&(_0x344fb5+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x5d0123={'searchPath':_0x4a1fb1['relative'](_0x1d4e0f,_0x3ce8af)||'.','pattern':_0x2f7d21['pattern'],'matchCount':_0x51311d,'fileCount':_0x3f3e38[_0x5454d9(_0x39dcde._0x272172,_0x39dcde._0x38565f,_0x39dcde._0x1b305c,0x3d6)],'truncated':_0x16555d};return _0x3210fd&&_0x2f7d21[_0x5454d9(_0x39dcde._0x371e32,0x40f,0x45f,_0x39dcde._0x155ef8)]!==void 0x0&&(_0x5d0123[_0x33f280(0x87,-0x16,0xcd,0xd8)]=_0x2f7d21[_0x33f280(_0x39dcde._0xd23f95,-0x5b,_0x39dcde._0x1ff1d9,_0x39dcde._0x577849)]),yield createToolOutput(_0x344fb5[_0x33f280(0x15e,_0x39dcde._0x517e3d,_0x39dcde._0x45ea2e,0xc2)](),_0x5d0123),void 0x0;}});}import{readdir as _0x459987,readFile as _0x10a4e3,stat as _0x537053}from'fs/promises';import*as _0x4c4afa from'path';import*as _0x272419 from'yaml';async function countTextLines(_0x42d13f){const _0x849f17={_0x5c1a37:0x1e7,_0x3ecf82:0x292,_0x8590e7:0x13e,_0x5338b4:0x140,_0x50737b:0x33,_0x20adf2:0x26e,_0xf12e46:0x395,_0x38001b:0x143,_0x3cffe7:0xde,_0x3f8744:0x6d},_0x4d52fd={_0x249b73:0x52},_0x21ed00={_0x2f87e9:0x9f,_0x56a1ed:0x21,_0x9a47f5:0x1e7},_0x35b2b6=await _0x10a4e3(_0x42d13f)[_0x5736fd(0x16c,0x164,_0x849f17._0x5c1a37,_0x849f17._0x3ecf82)](()=>null);function _0x5736fd(_0x3bf784,_0x71e3ef,_0x209c0d,_0xaaacba){return _0x22ef16(_0x3bf784,_0x71e3ef-_0x21ed00._0x2f87e9,_0x209c0d-_0x21ed00._0x56a1ed,_0xaaacba-_0x21ed00._0x9a47f5);}if(!_0x35b2b6||isProbablyBinary(_0x35b2b6))return void 0x0;function _0x45d193(_0x189bae,_0x4682cd,_0x5307ce,_0xbf32fd){return _0x22ef16(_0xbf32fd,_0x5307ce- -0x1b3,_0x5307ce-_0x4d52fd._0x249b73,_0xbf32fd-0x63);}return _0x35b2b6[_0x45d193(-_0x849f17._0x8590e7,-_0x849f17._0x5338b4,-_0x849f17._0x50737b,-0x14c)](_0x5736fd(0x234,_0x849f17._0x20adf2,_0x849f17._0xf12e46,_0x849f17._0x38001b))[_0x45d193(0x16e,_0x849f17._0x3cffe7,0x63,-_0x849f17._0x3f8744)](/\r?\n/)[_0x45d193(-0xad,-0x88,0x57,0xec)];}function createLsTool(_0x348149={}){const _0x31ebaa={_0x5d3883:0x1fe,_0x1f5015:0xd1,_0x393b93:0x126,_0x6b1f02:0x208,_0x4ed515:0x239,_0x35066d:0x3ef,_0x7e3451:0x1c7,_0x577946:0x2ef,_0x9e9ff5:0x2f7,_0x2e2800:0x38f,_0x99189d:0x1bd,_0x107660:0x2b3,_0x356b06:0x3fa,_0x5f55b3:0x2ac,_0x4cc240:0x1e2},_0x27029b={_0x25fa09:0x21,_0x5f49b8:0xc4,_0x2b283a:0x2c,_0x52e85a:0xfd,_0x3726ff:0xdc,_0x3f0947:0xef,_0x1bc3f2:0x188,_0x3520a5:0xa8,_0x4f560d:0x6b,_0x501cd7:0x28a,_0x13caca:0x266,_0x6061a1:0x38e,_0x5eb4b7:0x14f,_0x10567b:0x12e,_0x2ba50d:0x110,_0x53c7d2:0x57,_0x4be4c2:0x73,_0x53cda5:0x14a,_0x14458f:0xdb,_0x1c71d1:0x178,_0x2bd0f2:0x6,_0x49ff95:0xea,_0x4fb7d4:0x22,_0x24789c:0x31e,_0x364186:0x206,_0xdb2b37:0xdf,_0x27ce0c:0x1b4,_0x3ecc50:0xee,_0x2b6099:0x3f,_0x5c33e2:0x166,_0x2ff83d:0x49,_0x190710:0x132,_0x483df3:0x16,_0x1bf888:0x276,_0x28d86b:0x21e,_0x228b26:0x131},_0x1c0f8f={_0x4baaf2:0x325},_0x2d49f7={_0x1b8f91:0x67,_0x28b4ad:0xd1},_0x444f66={_0x3f3ea5:0x2de,_0x1b15b2:0x19d},_0x62acc6={_0xf03807:0x2e};function _0x338afb(_0x1a08d9,_0x4795c5,_0x3544c4,_0x5f3d00){return _0x22ef16(_0x5f3d00,_0x4795c5-0x2d,_0x3544c4-0x166,_0x5f3d00-_0x62acc6._0xf03807);}const _0x37fa0b=_0x4c4afa['resolve'](_0x348149[_0x338afb(0x2a3,0x28d,_0x31ebaa._0x5d3883,0x322)]??process[_0x338afb(_0x31ebaa._0x1f5015,_0x31ebaa._0x393b93,_0x31ebaa._0x6b1f02,_0x31ebaa._0x4ed515)]()),_0x16532f=(_0x348149[_0x4ef511(_0x31ebaa._0x35066d,0x29b,_0x31ebaa._0x7e3451,_0x31ebaa._0x577946)]??[])[_0x338afb(_0x31ebaa._0x9e9ff5,0x2f1,0x2e6,0x246)](_0x3e6320=>_0x4c4afa['resolve'](_0x3e6320));function _0x4ef511(_0x3bda7e,_0x531dc2,_0x4cd734,_0x1d65af){return _0x324926(_0x1d65af-_0x444f66._0x3f3ea5,_0x531dc2,_0x4cd734-0x3c,_0x1d65af-_0x444f66._0x1b15b2);}const _0x1d118e=_0x348149['name']??'Ls';return defineTool({'name':_0x1d118e,'description':_0x338afb(0x2bc,0x294,0x23a,_0x31ebaa._0x2e2800),'inputSchema':{'type':_0x338afb(_0x31ebaa._0x99189d,_0x31ebaa._0x107660,0x19d,0x331),'properties':{'path':{'type':'string'},'limit':{'type':_0x4ef511(_0x31ebaa._0x356b06,_0x31ebaa._0x5f55b3,_0x31ebaa._0x4cc240,0x2df)}}},async *'execute'(_0x4482ba){function _0x4df1ee(_0x167015,_0x4f338f,_0x5eae55,_0x1de8b2){return _0x338afb(_0x167015-_0x2d49f7._0x1b8f91,_0x4f338f- -_0x2d49f7._0x28b4ad,_0x5eae55-0x60,_0x5eae55);}const _0x12438c=_0x4482ba[_0x4df1ee(0x35c,0x22d,0x19c,0x255)]??'.',_0x470c0d=resolveAllowedPath(_0x37fa0b,_0x16532f,_0x12438c),_0x4df111=await _0x537053(_0x470c0d)[_0x4df1ee(-0x103,_0x27029b._0x25fa09,_0x27029b._0x5f49b8,-_0x27029b._0x2b283a)](()=>null);if(!_0x4df111?.['isDirectory']())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x12438c,{'path':_0x12438c});const _0x4ec222=_0x4482ba['limit']??0x3e8,_0x438211=Math['min'](Math[_0x221a72(-0x19e,-0x205,-_0x27029b._0x52e85a,-_0x27029b._0x3726ff)](Math['trunc'](_0x4ec222),0x1),0x2710);function _0x221a72(_0x34a915,_0x395a32,_0x32e6a9,_0x1b72a8){return _0x338afb(_0x34a915-0x139,_0x32e6a9- -_0x1c0f8f._0x4baaf2,_0x32e6a9-0x23,_0x395a32);}const _0x42cf48=await _0x459987(_0x470c0d),_0x88b5d2=[];for(const _0x19fe06 of _0x42cf48[_0x221a72(_0x27029b._0x3f0947,0x78,-0x5,0xc5)](0x0,_0x438211)){const _0x397b78=_0x4c4afa[_0x4df1ee(_0x27029b._0x1bc3f2,_0x27029b._0x3520a5,_0x27029b._0x4f560d,0x112)](_0x470c0d,_0x19fe06),_0x1664ff=await _0x537053(_0x397b78)['catch'](()=>null);if(!_0x1664ff)continue;let _0x5ad8a2=_0x4df1ee(_0x27029b._0x501cd7,_0x27029b._0x13caca,0x158,_0x27029b._0x6061a1);if(_0x1664ff[_0x4df1ee(0x136,0x26,-0x57,_0x27029b._0x5eb4b7)]())_0x5ad8a2=_0x221a72(-_0x27029b._0x10567b,-0x20,-0x70,-0x50);else{if(_0x1664ff['isDirectory']())_0x5ad8a2=_0x4df1ee(0x12f,0x23f,0x1ee,0x253);else{if(_0x1664ff[_0x4df1ee(0x114,_0x27029b._0x2ba50d,_0x27029b._0x53c7d2,0x19f)]())_0x5ad8a2=_0x4df1ee(_0x27029b._0x4be4c2,0x66,_0x27029b._0x53cda5,_0x27029b._0x14458f);}}const _0x6af17={'name':_0x19fe06,'type':_0x5ad8a2,'size':_0x1664ff[_0x221a72(-_0x27029b._0x1c71d1,-_0x27029b._0x2bd0f2,-0x10f,-0x1c2)],'mtime':_0x1664ff[_0x221a72(_0x27029b._0x49ff95,_0x27029b._0x4fb7d4,0xf,-0xe)],'mode':_0x1664ff['mode']},_0x37b3f7=_0x5ad8a2==='file'?await countTextLines(_0x397b78):void 0x0;if(_0x37b3f7!==void 0x0)_0x6af17['lines']=_0x37b3f7;_0x88b5d2[_0x4df1ee(_0x27029b._0x24789c,_0x27029b._0x364186,_0x27029b._0xdb2b37,0x130)](_0x6af17);}_0x88b5d2[_0x221a72(-0x12b,-_0x27029b._0x27ce0c,-0x14c,-0x1f9)]((_0x5c9c56,_0x230338)=>_0x5c9c56[_0x4df1ee(-0x6,0xd3,0x12b,0x1ff)][_0x221a72(-0x214,-0x2ba,-0x198,-0x169)](_0x230338[_0x221a72(-0x1f8,-0x125,-0x181,-0x29f)]));const _0x229627={'path':_0x12438c,'total':_0x88b5d2[_0x221a72(-0x157,0x29,-_0x27029b._0x3ecc50,-0x1ac)],'truncated':_0x42cf48[_0x4df1ee(_0x27029b._0x2b6099,_0x27029b._0x5c33e2,0x167,0x246)]>_0x438211,'entries':_0x88b5d2};return yield createToolOutput(_0x272419[_0x221a72(-_0x27029b._0x2ff83d,-_0x27029b._0x190710,-0x19,-_0x27029b._0x483df3)](_0x229627,{'indent':0x2,'lineWidth':0x0})[_0x4df1ee(0x1bf,0x1fa,_0x27029b._0x1bf888,0x154)](),{'path':_0x12438c,'total':_0x88b5d2[_0x4df1ee(0x159,0x166,0x7d,0x27d)],'truncated':_0x42cf48[_0x221a72(-_0x27029b._0x28d86b,-_0x27029b._0x228b26,-_0x27029b._0x3ecc50,-0x18b)]>_0x438211,'limit':_0x438211,'entries':_0x88b5d2}),void 0x0;}});}import{stat as _0x3bd09c}from'fs/promises';import _0x27fa61 from'path';import{fileURLToPath as _0x289588}from'url';function severityName(_0x210a9e){const _0x563d4a={_0x36e71e:0x14f,_0x5a2d54:0x11d,_0x200129:0x1c2,_0x3d10f4:0x1ba,_0x406652:0x145,_0x4d362b:0x137,_0x430a0b:0x5b,_0x16a614:0x21,_0x359e7c:0x1eb,_0x60436b:0x11d},_0x196221={_0x568330:0x32},_0x4bcc7f={_0x779b1f:0x91,_0xd19483:0x15b};function _0x127293(_0x13403a,_0x1b11ca,_0x2fd46d,_0x8917bd){return _0x324926(_0x8917bd-_0x4bcc7f._0x779b1f,_0x13403a,_0x2fd46d-0xe5,_0x8917bd-_0x4bcc7f._0xd19483);}function _0x4a2c9f(_0x4fbf24,_0x19226b,_0x3ef5c9,_0x4bfcf6){return _0x324926(_0x3ef5c9- -0x6d,_0x4bfcf6,_0x3ef5c9-0x174,_0x4bfcf6-_0x196221._0x568330);}switch(_0x210a9e){case 0x1:return _0x4a2c9f(-0x11f,-_0x563d4a._0x36e71e,-_0x563d4a._0x5a2d54,-_0x563d4a._0x200129);case 0x2:return _0x127293(_0x563d4a._0x3d10f4,_0x563d4a._0x406652,0x1d5,0x1ae);case 0x3:return'Information';case 0x4:return _0x127293(_0x563d4a._0x4d362b,_0x563d4a._0x430a0b,0x35,_0x563d4a._0x16a614);default:return _0x127293(0xdc,_0x563d4a._0x359e7c,0x1ed,_0x563d4a._0x60436b);}}function formatSingleHover(_0x31b653){const _0xc30fb5={_0x4e9c6f:0x231,_0x11e3a5:0x14e,_0x392976:0x17,_0x207df0:0x126,_0x4a7a77:0x98,_0x169b64:0xd,_0x45385e:0x7,_0x5669b6:0x1f8,_0x344be2:0xb0,_0x366a51:0xe0,_0x46261c:0xb9,_0x46a2f3:0x140,_0x34765e:0x1aa,_0x4b9984:0x85,_0x85f36d:0x2e,_0x411664:0x7f,_0x5cc0a7:0x75,_0x3e40cd:0xbd,_0x14c121:0x1e7,_0x29f062:0x228},_0x25d55a={_0x174e63:0x2e},_0x498a7c={_0x3817c3:0xad,_0x40f354:0x79},_0x5abe63=_0x31b653['contents'];if(typeof _0x5abe63===_0x1bcd23(0x181,0x12d,0x21d,_0xc30fb5._0x4e9c6f))return _0x5abe63;if(Array[_0x1bcd23(-0xbb,0x6e,-0x84,_0xc30fb5._0x11e3a5)](_0x5abe63))return _0x5abe63[_0x50f412(_0xc30fb5._0x392976,_0xc30fb5._0x207df0,_0xc30fb5._0x4a7a77,-0x81)](_0x310e81=>typeof _0x310e81===_0x50f412(-0x3d,0xf,0x61,0xc2)?_0x310e81:_0x310e81[_0x1bcd23(0x19b,0x87,0xd0,-0x2a)])[_0x50f412(-_0xc30fb5._0x169b64,_0xc30fb5._0x45385e,0xac,-0x4a)](Boolean)[_0x50f412(-_0xc30fb5._0x5669b6,-_0xc30fb5._0x344be2,-_0xc30fb5._0x366a51,-0x47)]('\x0a\x0a');function _0x1bcd23(_0x28ac5b,_0x3883e2,_0x56ab0a,_0x164c42){return _0x324926(_0x3883e2-0x9e,_0x28ac5b,_0x56ab0a-_0x498a7c._0x3817c3,_0x164c42-_0x498a7c._0x40f354);}function _0x50f412(_0x5baa40,_0x391ba1,_0x4861d0,_0x5a2929){return _0x324926(_0x4861d0- -_0x25d55a._0x174e63,_0x5baa40,_0x4861d0-0x6f,_0x5a2929-0x49);}if('kind'in _0x5abe63)return _0x5abe63[_0x1bcd23(0xa2,0x87,0x139,_0xc30fb5._0x46261c)];return _0x5abe63[_0x1bcd23(0x225,0xf7,_0xc30fb5._0x46a2f3,_0xc30fb5._0x34765e)]?_0x50f412(-_0xc30fb5._0x4b9984,_0xc30fb5._0x366a51,_0xc30fb5._0x85f36d,_0xc30fb5._0x411664)+_0x5abe63[_0x50f412(-_0xc30fb5._0x5cc0a7,0x17,0x2b,_0xc30fb5._0x3e40cd)]+'\x0a'+_0x5abe63['value']+_0x50f412(-_0xc30fb5._0x14c121,-_0xc30fb5._0x29f062,-0x15f,-0x183):_0x5abe63['value'];}function formatHover(_0xac28b0){const _0x4a7969={_0x3be335:0x4a3,_0x27eedb:0x452,_0x32b775:0x518,_0x4469f9:0x444,_0x482e39:0x561,_0x152cd8:0x50c,_0x437e47:0x316,_0x46d70b:0x565,_0x4f0684:0x681},_0x359b5d={_0x2016ca:0x32,_0x15717d:0xd8},_0x346f43={_0xb4d390:0x9d};function _0x2123a1(_0x421cee,_0x480563,_0x41e692,_0x4c0ed9){return _0x324926(_0x4c0ed9-0x446,_0x480563,_0x41e692-_0x346f43._0xb4d390,_0x4c0ed9-0x118);}function _0xe022f0(_0xd939ab,_0x39e1f9,_0x5bdb0f,_0x8bef94){return _0x22ef16(_0xd939ab,_0x8bef94-0x1ca,_0x5bdb0f-_0x359b5d._0x2016ca,_0x8bef94-_0x359b5d._0x15717d);}if(_0xac28b0[_0x2123a1(_0x4a7969._0x3be335,0x32c,0x549,_0x4a7969._0x27eedb)]===0x0)return'No\x20hover\x20information';return _0xac28b0[_0x2123a1(_0x4a7969._0x32b775,_0x4a7969._0x4469f9,_0x4a7969._0x482e39,_0x4a7969._0x152cd8)](formatSingleHover)[_0xe022f0(0x1ed,0x25a,0x2a2,_0x4a7969._0x437e47)](_0x2123a1(_0x4a7969._0x46d70b,0x501,_0x4a7969._0x4f0684,0x566));}function locationPath(_0x496d12){if(!_0x496d12['startsWith']('file://'))return _0x496d12;return _0x289588(_0x496d12);}function formatLocations(_0x8e8a05){const _0x4557e2={_0x1fb702:0x85,_0x596f69:0x17d},_0x47a781={_0x1d15c1:0x53,_0x1d6bc7:0xb},_0x3c6bfe={_0x4f88f2:0x268},_0x54407={_0x4b1afd:0x31,_0x581351:0xa7};function _0x306a4c(_0x361621,_0x626582,_0x4a47c1,_0x33cfcc){return _0x22ef16(_0x361621,_0x4a47c1-_0x54407._0x4b1afd,_0x4a47c1-_0x54407._0x581351,_0x33cfcc-0xc6);}if(_0x8e8a05['length']===0x0)return'No\x20locations\x20found';return _0x8e8a05['map'](_0x1dda24=>{const _0x1fd938={_0x4c6996:0xc7};function _0x3e5aa9(_0x4797ce,_0x3461c0,_0x2e83b0,_0x4c9ad7){return _0x7ca6(_0x4797ce-_0x1fd938._0x4c6996,_0x3461c0);}const _0x3ddcce=_0x1dda24[_0x3a10c9(0x187,-0x4e,0x9f,0x58)][_0x3e5aa9(0x1d9,0x1de,0x1db,0x1fd)];function _0x3a10c9(_0x2d07d3,_0x13fb99,_0xb3af71,_0x1845b2){return _0x7ca6(_0x1845b2- -_0x3c6bfe._0x4f88f2,_0x13fb99);}return locationPath(_0x1dda24['uri'])+':'+(_0x3ddcce['line']+0x1)+':'+(_0x3ddcce[_0x3a10c9(_0x47a781._0x1d15c1,-0xb8,-_0x47a781._0x1d6bc7,-0xb2)]+0x1);})[_0x306a4c(_0x4557e2._0x1fb702,0x11d,_0x4557e2._0x596f69,0xbb)]('\x0a');}function isDocumentSymbol(_0x4214a0){return'range'in _0x4214a0&&'selectionRange'in _0x4214a0;}function formatSymbols(_0xa78908){const _0x24fe49={_0x9246aa:0xae,_0x2c4f7:0x33d,_0x4e0db0:0x251,_0x1d0bfe:0x120,_0x5a1c6c:0x144,_0x48bc45:0x16a},_0x15d8af={_0x4e9a64:0x407,_0x585690:0x3a2,_0x42819d:0x7,_0x292361:0x467,_0x50a205:0x338,_0x519c3c:0x351,_0x25d115:0x44f,_0x2c19c6:0x4c5,_0x15bf9a:0x3d7,_0x15b13c:0x579,_0x224308:0x5a5,_0x8285c2:0x2dd,_0x1ff620:0x3fd,_0x8c181c:0x4b1,_0x34e4c6:0x320,_0x1b4b9b:0x133,_0x49336f:0x61,_0x3535d3:0x429,_0x3dae54:0x42c,_0x3c91c8:0x424,_0x141bd1:0x234,_0x5caf9a:0x507,_0x527e77:0x3ec,_0x32e5da:0x1b6,_0x174007:0x280},_0x570ff5={_0x57673c:0x3d7};function _0x50ea22(_0x45ef3d,_0xbd3b71,_0x2c11ac,_0x1d1725){return _0x22ef16(_0x1d1725,_0x2c11ac-0x1e,_0x2c11ac-0xd6,_0x1d1725-0x1f2);}if(_0xa78908[_0x3c36a2(0x5e,0x6e,0x46,-_0x24fe49._0x9246aa)]===0x0)return _0x50ea22(0x2ec,0x27f,0x2c7,0x2d8);function _0x3c36a2(_0xe7ab80,_0x267cb3,_0x54422a,_0x59e7f5){return _0x324926(_0xe7ab80-0x52,_0x59e7f5,_0x54422a-0x7d,_0x59e7f5-0x5);}return _0xa78908[_0x50ea22(_0x24fe49._0x2c4f7,0x395,0x2e2,_0x24fe49._0x4e0db0)](_0x54f75c=>{const _0x37a6a6={_0x285b4d:0x36,_0x36de52:0xe2};function _0x31cc49(_0x158ae3,_0x117594,_0x14d24c,_0x416fd4){return _0x3c36a2(_0x117594-_0x570ff5._0x57673c,_0x117594-0x165,_0x14d24c-0x141,_0x416fd4);}if(isDocumentSymbol(_0x54f75c))return _0x54f75c[_0x31cc49(_0x15d8af._0x4e9a64,_0x15d8af._0x585690,0x416,0x472)]+'\x20('+_0x54f75c[_0x429e43(_0x15d8af._0x42819d,0x3b,0xd2,0x100)]+_0x31cc49(0x430,0x39d,_0x15d8af._0x292361,_0x15d8af._0x50a205)+(_0x54f75c['range'][_0x31cc49(_0x15d8af._0x519c3c,0x359,0x34e,0x2dc)][_0x31cc49(_0x15d8af._0x25d115,_0x15d8af._0x2c19c6,_0x15d8af._0x15bf9a,0x52e)]+0x1)+':'+(_0x54f75c[_0x31cc49(_0x15d8af._0x15b13c,0x507,0x51d,_0x15d8af._0x224308)]['start'][_0x31cc49(_0x15d8af._0x8285c2,_0x15d8af._0x1ff620,_0x15d8af._0x8c181c,_0x15d8af._0x34e4c6)]+0x1)+']';function _0x429e43(_0x173ac9,_0x19aca2,_0x565453,_0x26b478){return _0x3c36a2(_0x173ac9- -0x138,_0x19aca2-_0x37a6a6._0x285b4d,_0x565453-_0x37a6a6._0x36de52,_0x565453);}return _0x54f75c[_0x429e43(-0x16d,-0x118,-_0x15d8af._0x1b4b9b,-0x105)]+'\x20('+_0x54f75c[_0x429e43(0x7,0x2d,-0xc7,_0x15d8af._0x49336f)]+')\x20'+locationPath(_0x54f75c['location']['uri'])+':'+(_0x54f75c['location']['range'][_0x31cc49(0x34f,0x359,0x409,_0x15d8af._0x3535d3)][_0x31cc49(_0x15d8af._0x3dae54,0x4c5,_0x15d8af._0x3c91c8,0x5e9)]+0x1)+':'+(_0x54f75c[_0x429e43(-0x18f,-0x21c,-_0x15d8af._0x141bd1,-0x200)][_0x31cc49(0x5f3,_0x15d8af._0x5caf9a,_0x15d8af._0x527e77,0x5d1)][_0x429e43(-_0x15d8af._0x32e5da,-0x1ef,-0x1c6,-_0x15d8af._0x174007)]['character']+0x1);})[_0x50ea22(_0x24fe49._0x1d0bfe,_0x24fe49._0x5a1c6c,_0x24fe49._0x48bc45,0x240)]('\x0a');}function formatDiagnostics(_0x2cb1bf){const _0x2d5e68={_0x5bfbac:0x3bc,_0x517b1b:0x2fe,_0x2a4114:0x498,_0x49156f:0x388,_0xd38e53:0x48d,_0x1af97a:0x2fb,_0x122deb:0x31e},_0x44e99f={_0x4e0c39:0x50c,_0x4d2ff9:0x5dd,_0x494e2d:0x601,_0xf21b67:0x475,_0x53d075:0x38c,_0x330f51:0x5f3,_0x460e5c:0x5b3,_0x22028c:0x5bf,_0x2bd519:0x4be},_0x46ed31={_0x4c9489:0x1b2,_0x18cfad:0x17d,_0x41310c:0x11},_0x1efdb1={_0x528089:0x21};function _0x1ceba1(_0x2e4214,_0x126551,_0x2d476b,_0x6f26fa){return _0x324926(_0x2d476b-0x3ad,_0x2e4214,_0x2d476b-_0x1efdb1._0x528089,_0x6f26fa-0x88);}function _0x46a44(_0x193f1c,_0x33fd8d,_0x1e3ae7,_0x8ec466){return _0x22ef16(_0x1e3ae7,_0x193f1c-_0x46ed31._0x4c9489,_0x1e3ae7-_0x46ed31._0x18cfad,_0x8ec466-_0x46ed31._0x41310c);}if(_0x2cb1bf[_0x46a44(_0x2d5e68._0x5bfbac,0x366,0x3c6,_0x2d5e68._0x517b1b)]===0x0)return _0x1ceba1(0x31a,_0x2d5e68._0x2a4114,_0x2d5e68._0x49156f,_0x2d5e68._0xd38e53);return _0x2cb1bf['map'](_0x5a80e5=>{const _0x577c2a={_0x530ea5:0x4af,_0x2206fb:0x16a},_0x168d6b={_0x332ec2:0x173,_0x4fc444:0x114},_0x1e9c59=_0x5a80e5[_0x256e0a(_0x44e99f._0x4e0c39,0x6fe,_0x44e99f._0x4d2ff9,_0x44e99f._0x494e2d)][_0x4fe64e(-0xf9,-0xb5,-0x11e,-0x1d2)];function _0x256e0a(_0x2ff2d9,_0x550db8,_0xf69e03,_0x12b51f){return _0x46a44(_0x12b51f-_0x168d6b._0x332ec2,_0x550db8-0x11,_0x550db8,_0x12b51f-_0x168d6b._0x4fc444);}function _0x4fe64e(_0x11b9a6,_0x1688fc,_0xb1379c,_0x49dfcf){return _0x1ceba1(_0x1688fc,_0x1688fc-0x73,_0x49dfcf- -_0x577c2a._0x530ea5,_0x49dfcf-_0x577c2a._0x2206fb);}return severityName(_0x5a80e5[_0x256e0a(0x3a2,_0x44e99f._0xf21b67,_0x44e99f._0x53d075,0x43b)])+'\x20['+(_0x1e9c59[_0x256e0a(_0x44e99f._0x330f51,0x5c9,_0x44e99f._0x460e5c,_0x44e99f._0x22028c)]+0x1)+':'+(_0x1e9c59['character']+0x1)+']\x20'+_0x5a80e5[_0x256e0a(0x572,0x4c9,_0x44e99f._0x2bd519,0x5e6)];})[_0x1ceba1(0x2e1,0x405,_0x2d5e68._0x1af97a,_0x2d5e68._0x122deb)]('\x0a');}function formatIncomingCalls(_0x178c04){const _0x5cee9a={_0xe59ca3:0x1f4,_0x4a0bc5:0x414,_0x54acbf:0x37f,_0x43efaf:0x49f,_0x5dc8d1:0x44b,_0x1ef839:0x207},_0x33da59={_0x5af5ed:0xc0,_0x214469:0xe};if(_0x178c04[_0x5ba072(0x3ac,0x2c5,0x2a8,0x319)]===0x0)return _0x5ba072(_0x5cee9a._0xe59ca3,0x310,0x310,_0x5cee9a._0x4a0bc5);function _0x5ba072(_0xb45e51,_0x32059c,_0x4c3851,_0x150f9d){return _0x22ef16(_0x150f9d,_0x32059c-0xbb,_0x4c3851-_0x33da59._0x5af5ed,_0x150f9d-_0x33da59._0x214469);}function _0x28952b(_0x9b7ffe,_0x188347,_0x2d7c76,_0x19ed9e){return _0x324926(_0x9b7ffe-0x1b2,_0x188347,_0x2d7c76-0x4f,_0x19ed9e-0xfd);}return _0x178c04[_0x5ba072(0x2ad,_0x5cee9a._0x54acbf,_0x5cee9a._0x43efaf,_0x5cee9a._0x5dc8d1)](_0x4053a6=>_0x4053a6['from'][_0x28952b(0x12b,-0x4,0x1e,0x7c)])[_0x5ba072(0x279,_0x5cee9a._0x1ef839,0x28d,0x2c1)]('\x0a');}function formatOutgoingCalls(_0x41647e){const _0x3b5d52={_0x213ed6:0x246,_0x248eec:0x134,_0x585c27:0x21b,_0x5a6abc:0x39d,_0x587cd4:0x2ab,_0x18f367:0x3eb,_0x4a37e4:0x2e4,_0x20bd12:0x8c,_0x56d5d7:0x274},_0x264d59={_0x573dae:0x11,_0x228df5:0x188},_0xfb1f62={_0x5da4a1:0x1e5};function _0x19d47e(_0x520e71,_0x1ac943,_0x58def3,_0x1437d4){return _0x324926(_0x58def3-0x254,_0x1437d4,_0x58def3-0xe8,_0x1437d4-_0xfb1f62._0x5da4a1);}function _0x18ac93(_0xad0894,_0x56f03b,_0x101a62,_0x54afe9){return _0x22ef16(_0x56f03b,_0x101a62-_0x264d59._0x573dae,_0x101a62-_0x264d59._0x228df5,_0x54afe9-0x11c);}if(_0x41647e[_0x18ac93(_0x3b5d52._0x213ed6,_0x3b5d52._0x248eec,_0x3b5d52._0x585c27,0x2b3)]===0x0)return _0x19d47e(_0x3b5d52._0x5a6abc,0x2cf,_0x3b5d52._0x587cd4,0x3ce);return _0x41647e[_0x18ac93(_0x3b5d52._0x18f367,_0x3b5d52._0x4a37e4,0x2d5,0x375)](_0x5a3541=>_0x5a3541['to'][_0x18ac93(0x15d,0x13e,0x188,0x110)])[_0x19d47e(_0x3b5d52._0x20bd12,0x1b1,0x1a2,_0x3b5d52._0x56d5d7)]('\x0a');}function toStructured(_0x528d48){const _0x2f51ad={_0x342dce:0x471},_0xbd5f5a={_0x99e1ee:0xe4};function _0x23fc1a(_0x11df6b,_0x5a032b,_0x53d153,_0x15e85b){return _0x324926(_0x15e85b-0x4ff,_0x5a032b,_0x53d153-_0xbd5f5a._0x99e1ee,_0x15e85b-0x10f);}return JSON[_0x23fc1a(0x471,0x2eb,_0x2f51ad._0x342dce,0x411)](JSON['stringify'](_0x528d48));}async function assertFile(_0x54ff33){const _0x234cef={_0xa94aa4:0x122,_0x37834c:0xbe},_0x12c009={_0x1bfbd6:0x17d};function _0x40028e(_0x11f64d,_0x300b11,_0x55ea9e,_0x130905){return _0x324926(_0x55ea9e-0x1cb,_0x130905,_0x55ea9e-_0x12c009._0x1bfbd6,_0x130905-0xe2);}const _0x2e032f=await _0x3bd09c(_0x54ff33);if(!_0x2e032f[_0x40028e(_0x234cef._0xa94aa4,-0x30,0x97,_0x234cef._0x37834c)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x54ff33,{'path':_0x54ff33});}function validatePosition(_0x446394,_0x17cc79){const _0x1d4c33={_0x3fd913:0x397,_0x462521:0x1c4,_0x581376:0x178,_0x4bca02:0x402,_0x530cb1:0x4b0,_0x15b935:0x437},_0x2911be={_0x22dad8:0x376,_0x57e789:0x4e,_0x2fca63:0x1bd};function _0xa2449e(_0x1605fc,_0x19e37f,_0x3f8cbc,_0x2cef4a){return _0x22ef16(_0x3f8cbc,_0x2cef4a- -0x3d5,_0x3f8cbc-0xa5,_0x2cef4a-0x90);}if(!Number[_0xa2449e(-0x268,-0xe6,-0x1fc,-0x178)](_0x446394)||_0x446394<0x1)throw new ToolExecutionError(_0x4d0652(0x450,0x411,_0x1d4c33._0x3fd913,0x357),{'line':_0x446394});function _0x4d0652(_0x5de1ad,_0x17511e,_0x24fe83,_0xbf9c6b){return _0x324926(_0x24fe83-_0x2911be._0x22dad8,_0xbf9c6b,_0x24fe83-_0x2911be._0x57e789,_0xbf9c6b-_0x2911be._0x2fca63);}if(!Number[_0xa2449e(-0x6d,-0x26a,-_0x1d4c33._0x462521,-_0x1d4c33._0x581376)](_0x17cc79)||_0x17cc79<0x1)throw new ToolExecutionError(_0x4d0652(_0x1d4c33._0x4bca02,_0x1d4c33._0x530cb1,_0x1d4c33._0x15b935,0x527),{'character':_0x17cc79});}function createLspTool(_0x175e6c={}){const _0x5df9f4={_0x568cee:0x22a,_0x5d3740:0x2a9,_0x240926:0x142,_0x567e37:0x8c,_0x398784:0x71,_0x64cafc:0x57,_0x45f153:0x30d,_0xe1613c:0x271,_0x2ba560:0x133,_0x22bded:0x5,_0x3522b7:0x181,_0xf78ab9:0xe2,_0x2cf240:0x2b4,_0x33c88e:0x27b,_0x2b1654:0x103,_0x1c5abd:0x1f2,_0x34a700:0x3c4,_0x24c330:0x310,_0x3db39f:0x28d,_0x3d5b4a:0x3c1,_0x5bb55e:0x175,_0x4169ec:0x29b,_0x3f8312:0x188,_0x5a351a:0x74,_0x25b443:0xf8,_0x3f928d:0x20c,_0x346c82:0xbe,_0x4ead11:0x78,_0x5bae55:0x36,_0x157e78:0x4d,_0x4597e2:0x8a,_0x6f0118:0xe8,_0x5b9d8f:0x174,_0x14a7ac:0x7c,_0x1fc195:0x1,_0x55102e:0x19f,_0x5954a9:0x32,_0x13537e:0x28,_0x1d6e23:0x3a1,_0x53ce48:0x230,_0x5d3853:0x2d6,_0x532568:0x96,_0x16b9f5:0x115,_0xa489f1:0x6a,_0x2682ef:0x2cb,_0x5663f6:0x30c,_0x2937c9:0x408,_0x2a0fa4:0x1df,_0x319ef8:0x21b},_0x4b7009={_0x187ffb:0x1c7,_0x4616d8:0x7d,_0x48c826:0x1a0,_0x4afd9c:0x283,_0x2f5772:0x33b,_0x3220b9:0x24,_0xe1ae24:0x112,_0x373aa:0x236,_0x3cf181:0x4e0,_0x4fee70:0x4b6,_0x15cb9b:0x3b0,_0x580801:0x4fd,_0x2e60dd:0x410,_0x1c76b6:0x366,_0x507fa1:0x51,_0x33da99:0x163,_0x5e6722:0x82,_0x3c9b35:0x9e,_0x577adc:0x2,_0x1de346:0x2a3,_0x1650ad:0x2c7,_0x58a79a:0x582,_0x50c956:0x5f9,_0x5d1145:0x5fb,_0x3fed0b:0x582,_0x1b8968:0x5aa,_0x9d8653:0x121,_0x3636dc:0x90,_0x563b9e:0x559,_0x26645c:0x120,_0x4ca762:0x209,_0x958ffd:0x4e1,_0x40f158:0x511,_0x4f6d53:0x41c,_0xd75598:0x59d,_0x4d1388:0x11f,_0x1a87f1:0x4e3,_0x17bd7f:0x483,_0x11931e:0x531,_0x2924ec:0x5dd,_0x11338f:0x488,_0x31a38a:0x1d7,_0x4d481d:0x1e7,_0x2b1198:0x617,_0x10c653:0x4e7,_0x497447:0x509,_0x1ba218:0x589,_0x36a7f8:0x56a,_0x4675f6:0x67d,_0x28c514:0x234,_0x22a55c:0x55e,_0x1256f2:0x4ae,_0x6f5506:0x5ed,_0x3cb0b6:0x472,_0x48b7be:0x535,_0x9299a7:0xe2,_0x3c7256:0x1d2},_0x31750c={_0x4d8191:0x110},_0x18bb93={_0x352d24:0x17a,_0x399275:0x10a},_0x4c9c20={_0x3d9279:0x190},_0x2c812c={_0x53bded:0x7b,_0x4e7673:0x173},_0x25bf41=_0x27fa61['resolve'](_0x175e6c[_0x295fd3(_0x5df9f4._0x568cee,0x33f,0x293,_0x5df9f4._0x5d3740)]??process[_0x295fd3(0x19a,0x111,0x7b,_0x5df9f4._0x240926)]());function _0xd8978e(_0x38c9a8,_0x46e358,_0x1e14a7,_0x55c1e4){return _0x324926(_0x38c9a8-_0x2c812c._0x53bded,_0x55c1e4,_0x1e14a7-_0x2c812c._0x4e7673,_0x55c1e4-0x19a);}function _0x295fd3(_0x1897a7,_0x4661ad,_0x1ec75b,_0x551aef){return _0x22ef16(_0x4661ad,_0x551aef-0x49,_0x1ec75b-0x1a8,_0x551aef-_0x4c9c20._0x3d9279);}const _0x517afe=(_0x175e6c[_0xd8978e(_0x5df9f4._0x567e37,0x146,-_0x5df9f4._0x398784,-_0x5df9f4._0x64cafc)]??[])[_0x295fd3(0x26c,0x27c,0x415,_0x5df9f4._0x45f153)](_0x418ded=>_0x27fa61[_0x295fd3(0x2ac,0x14b,0x154,0x21a)](_0x418ded)),_0x24ce75=_0x175e6c[_0x295fd3(0xf1,0x11a,_0x5df9f4._0xe1613c,0x1c0)]??_0xd8978e(_0x5df9f4._0x2ba560,_0x5df9f4._0x22bded,_0x5df9f4._0x3522b7,_0x5df9f4._0xf78ab9);return defineTool({'name':_0x24ce75,'description':_0x295fd3(_0x5df9f4._0x2cf240,0x1bf,_0x5df9f4._0x33c88e,0x1e8),'inputSchema':{'type':_0xd8978e(_0x5df9f4._0x2b1654,0x14f,_0x5df9f4._0x1c5abd,0xbb),'properties':{'operation':{'type':_0x295fd3(_0x5df9f4._0x34a700,_0x5df9f4._0x24c330,0x244,0x2d6),'enum':[_0x295fd3(0x2d0,0x274,0x253,0x2bb),'findReferences',_0x295fd3(_0x5df9f4._0x3db39f,_0x5df9f4._0x3d5b4a,_0x5df9f4._0x5bb55e,_0x5df9f4._0x4169ec),_0xd8978e(0x128,_0x5df9f4._0x3f8312,0x66,_0x5df9f4._0x5a351a),_0xd8978e(_0x5df9f4._0x25b443,_0x5df9f4._0x3f928d,_0x5df9f4._0x346c82,-0x20),_0xd8978e(-0x5d,-_0x5df9f4._0x4ead11,0x71,_0x5df9f4._0x5bae55),_0xd8978e(-_0x5df9f4._0x157e78,-0xbd,-_0x5df9f4._0x4597e2,-0xad),_0xd8978e(_0x5df9f4._0x6f0118,0x2,_0x5df9f4._0x5b9d8f,0x15),'outgoingCalls',_0x295fd3(0x363,0x3f3,0x2e4,0x316)]},'filePath':{'type':'string'},'line':{'type':_0xd8978e(_0x5df9f4._0x14a7ac,-_0x5df9f4._0x1fc195,_0x5df9f4._0x55102e,0xe2)},'character':{'type':_0xd8978e(_0x5df9f4._0x14a7ac,-0x47,-_0x5df9f4._0x5954a9,-_0x5df9f4._0x13537e)},'query':{'type':_0x295fd3(0x37f,_0x5df9f4._0x1d6e23,_0x5df9f4._0x53ce48,_0x5df9f4._0x5d3853)}},'required':[_0x295fd3(_0x5df9f4._0x532568,_0x5df9f4._0x16b9f5,_0x5df9f4._0xa489f1,0x110),_0x295fd3(0x41f,0x32b,_0x5df9f4._0x2682ef,_0x5df9f4._0x5663f6),_0x295fd3(0x3a8,0x2c7,_0x5df9f4._0x2937c9,0x2e3),_0x295fd3(_0x5df9f4._0x2a0fa4,0x313,0x1ef,_0x5df9f4._0x319ef8)]},async *'execute'(_0x3d76bd){const _0x44dd77=_0x175e6c[_0x33306e(-_0x4b7009._0x187ffb,-_0x4b7009._0x4616d8,-_0x4b7009._0x48c826,-0x79)];if(!_0x44dd77)throw new ToolExecutionError(_0x33306e(-_0x4b7009._0x4afd9c,-0x273,-0x23b,-_0x4b7009._0x2f5772));if(!_0x44dd77[_0x33306e(0xad,-0x15d,-0x32,_0x4b7009._0x3220b9)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x293ca2=_0x3d76bd[_0x33306e(-_0x4b7009._0xe1ae24,-0x112,-_0x4b7009._0x373aa,-0x1c7)];validatePosition(_0x3d76bd['line'],_0x3d76bd[_0xdc323a(0x485,0x491,_0x4b7009._0x3cf181,0x3b3)]);if(_0x293ca2==='workspaceSymbol'){if(!_0x3d76bd['query']?.[_0xdc323a(0x529,_0x4b7009._0x4fee70,0x55a,_0x4b7009._0x15cb9b)]())throw new ToolExecutionError(_0xdc323a(_0x4b7009._0x580801,0x469,_0x4b7009._0x2e60dd,_0x4b7009._0x1c76b6));const _0x305966=await _0x44dd77[_0x33306e(_0x4b7009._0x507fa1,-_0x4b7009._0x33da99,-_0x4b7009._0x5e6722,-_0x4b7009._0x3c9b35)](_0x3d76bd['query']['trim']());return yield createToolOutput(formatSymbols(_0x305966),{'operation':_0x293ca2,'query':_0x3d76bd[_0x33306e(0x61,_0x4b7009._0x577adc,-0x15,-0xc5)],'symbols':_0x305966}),void 0x0;}function _0x33306e(_0x4b4def,_0x5686f0,_0x4bd48b,_0x34ec06){return _0xd8978e(_0x4bd48b- -_0x18bb93._0x352d24,_0x5686f0-0x29,_0x4bd48b-_0x18bb93._0x399275,_0x34ec06);}const _0x209aec=resolveAllowedPath(_0x25bf41,_0x517afe,_0x3d76bd[_0xdc323a(0x4c3,0x582,0x681,0x4ed)]);await assertFile(_0x209aec);function _0xdc323a(_0x505211,_0xb83298,_0x5ed021,_0x278b8e){return _0x295fd3(_0x505211-_0x31750c._0x4d8191,_0x5ed021,_0x5ed021-0xa1,_0xb83298-0x276);}if(!await _0x44dd77[_0xdc323a(_0x4b7009._0x1de346,0x3ca,_0x4b7009._0x1650ad,0x432)](_0x209aec))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3d76bd[_0xdc323a(0x5c4,_0x4b7009._0x58a79a,_0x4b7009._0x50c956,_0x4b7009._0x5d1145)],{'filePath':_0x3d76bd[_0xdc323a(0x66a,_0x4b7009._0x3fed0b,_0x4b7009._0x1b8968,0x654)]});await _0x44dd77[_0x33306e(-_0x4b7009._0x9d8653,-0x6d,-_0x4b7009._0x3636dc,0x13)](_0x209aec,!![]);const _0x5d5a8f={'file':_0x209aec,'line':_0x3d76bd[_0xdc323a(0x527,_0x4b7009._0x563b9e,0x5fa,0x67c)]-0x1,'character':_0x3d76bd[_0x33306e(-0x2,-_0x4b7009._0x26645c,-0x12b,-_0x4b7009._0x4ca762)]-0x1};switch(_0x293ca2){case _0xdc323a(_0x4b7009._0x958ffd,_0x4b7009._0x40f158,_0x4b7009._0x4f6d53,_0x4b7009._0xd75598):{const _0x352210=await _0x44dd77['hover'](_0x5d5a8f);return yield createToolOutput(formatHover(_0x352210),{'operation':_0x293ca2,'filePath':_0x209aec,'hover':_0x352210}),void 0x0;}case _0x33306e(-0xf4,-0x129,-0x30,-_0x4b7009._0x4d1388):{const _0x34e66f=await _0x44dd77[_0xdc323a(0x546,_0x4b7009._0x958ffd,_0x4b7009._0x1a87f1,_0x4b7009._0x17bd7f)](_0x209aec);return yield createToolOutput(formatDiagnostics(_0x34e66f),{'operation':_0x293ca2,'filePath':_0x209aec,'diagnostics':_0x34e66f}),void 0x0;}case _0xdc323a(0x487,_0x4b7009._0x11931e,0x4de,_0x4b7009._0x2924ec):{const _0x38d067=await _0x44dd77[_0xdc323a(0x576,_0x4b7009._0x11338f,0x57f,0x5a8)](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x38d067),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x38d067}),void 0x0;}case'findReferences':{const _0x1181bf=await _0x44dd77['references'](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x1181bf),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x1181bf}),void 0x0;}case _0x33306e(-0x212,-0x29a,-_0x4b7009._0x31a38a,-_0x4b7009._0x4d481d):{const _0x1ae7ab=await _0x44dd77[_0xdc323a(_0x4b7009._0x2b1198,_0x4b7009._0x10c653,_0x4b7009._0x497447,_0x4b7009._0x1ba218)](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x1ae7ab),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x1ae7ab}),void 0x0;}case _0xdc323a(0x5a5,_0x4b7009._0x36a7f8,_0x4b7009._0x4675f6,0x578):{const _0x3f8365=await _0x44dd77[_0x33306e(-0x10a,0x2a,-0x52,-0xc8)](_0x209aec);return yield createToolOutput(formatSymbols(_0x3f8365),{'operation':_0x293ca2,'filePath':_0x209aec,'symbols':_0x3f8365}),void 0x0;}case _0x33306e(-_0x4b7009._0x28c514,-0x14c,-0x1c7,-0x17d):{const _0x204d84=await _0x44dd77['prepareCallHierarchy'](_0x5d5a8f);return yield createToolOutput(formatSymbols(_0x204d84),{'operation':_0x293ca2,'filePath':_0x209aec,'symbols':toStructured(_0x204d84)}),void 0x0;}case'incomingCalls':{const _0x519628=await _0x44dd77[_0xdc323a(_0x4b7009._0x22a55c,0x52a,_0x4b7009._0x1256f2,_0x4b7009._0x6f5506)](_0x5d5a8f);return yield createToolOutput(formatIncomingCalls(_0x519628),{'operation':_0x293ca2,'filePath':_0x209aec,'calls':toStructured(_0x519628)}),void 0x0;}case _0xdc323a(_0x4b7009._0x3cb0b6,0x483,_0x4b7009._0x48b7be,0x4d7):{const _0x4ddc28=await _0x44dd77[_0x33306e(-_0x4b7009._0x9299a7,-0x23a,-0x139,-_0x4b7009._0x3c7256)](_0x5d5a8f);return yield createToolOutput(formatOutgoingCalls(_0x4ddc28),{'operation':_0x293ca2,'filePath':_0x209aec,'calls':toStructured(_0x4ddc28)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x5e6a0e,readFile as _0x48fb55,writeFile as _0x15b151}from'fs/promises';import{join as _0x5e8cdd}from'path';function sanitizeStorageKey(_0x18beca){const _0x191186={_0x5ecc1a:0x7f,_0x66fea4:0xf6,_0x509129:0x78},_0x41dc8f={_0x23b486:0xf4,_0x18b823:0x83};function _0x205b1e(_0x4a83ef,_0x392cd2,_0x1c25e8,_0x456358){return _0x324926(_0x4a83ef-_0x41dc8f._0x23b486,_0x456358,_0x1c25e8-0x132,_0x456358-_0x41dc8f._0x18b823);}return _0x18beca[_0x205b1e(_0x191186._0x5ecc1a,_0x191186._0x66fea4,-0x34,_0x191186._0x509129)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||'server';}function storagePath(_0x5859f4){const _0x519464={_0xabf070:0x70,_0x2e0816:0x65,_0x590e8b:0x1c1,_0x1e5c23:0xc8,_0x5ce9b3:0x57,_0x26078b:0x151,_0x5802e9:0x55,_0x51a7c1:0x5e,_0x333e26:0x53,_0x3880b5:0x38},_0x26f7b9={_0x315fa0:0x224,_0x49aa44:0x8e},_0x21260a={_0x426b02:0x123,_0x39b650:0x125};function _0x310ee4(_0x3bcf18,_0x123e12,_0x34095d,_0x44e176){return _0x324926(_0x3bcf18-_0x21260a._0x426b02,_0x44e176,_0x34095d-0xe3,_0x44e176-_0x21260a._0x39b650);}const _0x1d880f=sanitizeStorageKey(_0x5859f4[_0x50c0c0(_0x519464._0xabf070,0x1c,0xb,_0x519464._0x2e0816)][_0x310ee4(_0x519464._0x590e8b,0xcc,0xce,0x2f1)]?.[_0x310ee4(0x8d,_0x519464._0x1e5c23,-_0x519464._0x5ce9b3,_0x519464._0x26078b)]??_0x5859f4[_0x50c0c0(_0x519464._0x5802e9,_0x519464._0x51a7c1,-_0x519464._0x333e26,0x11e)]);function _0x50c0c0(_0x4bb5fd,_0x53af63,_0x53c2e2,_0x55254c){return _0x22ef16(_0x53c2e2,_0x53af63- -_0x26f7b9._0x315fa0,_0x53c2e2-_0x26f7b9._0x49aa44,_0x55254c-0xdc);}return _0x5e8cdd(_0x5859f4['storageDir'],_0x1d880f+_0x50c0c0(-0xf8,0x21,0xf8,-_0x519464._0x3880b5));}async function readStore(_0x520e9e){const _0x56bcc2={_0x608480:0x2ae,_0xd5a605:0x1f0,_0x33bf01:0xb2,_0x153373:0x2b7},_0x1d488a={_0x1fff98:0x14c,_0x1ab64c:0x1b5},_0x1f0fa5={_0xd2abcd:0x8f};function _0x5ec4c9(_0x55b230,_0x20604c,_0x26c5a8,_0x2232d7){return _0x22ef16(_0x20604c,_0x26c5a8- -0x17e,_0x26c5a8-0x113,_0x2232d7-_0x1f0fa5._0xd2abcd);}function _0x22dc07(_0x4a97b8,_0x4ec765,_0x3b3151,_0x2fbfa4){return _0x22ef16(_0x4ec765,_0x3b3151-_0x1d488a._0x1fff98,_0x3b3151-_0x1d488a._0x1ab64c,_0x2fbfa4-0xd7);}try{return JSON[_0x22dc07(0x30d,_0x56bcc2._0x608480,0x25c,_0x56bcc2._0xd5a605)](await _0x48fb55(_0x520e9e,'utf8'));}catch(_0x4423e1){if(_0x4423e1 instanceof Error&&_0x5ec4c9(0xd9,0x160,0x181,_0x56bcc2._0x33bf01)in _0x4423e1&&_0x4423e1[_0x22dc07(0x4ca,0x4d3,0x44b,0x449)]===_0x22dc07(0x277,0x19e,_0x56bcc2._0x153373,0x1a2))return{};throw _0x4423e1;}}async function writeStore(_0x181e1a,_0x282d88){const _0x4d259d={_0x3b7625:0x5d3,_0x1c3c7e:0x68a,_0x4858c4:0x60a};function _0x269d1e(_0xa6dacb,_0x2fffb2,_0x363468,_0x130095){return _0x22ef16(_0x130095,_0x2fffb2-0x3ab,_0x363468-0xe8,_0x130095-0x110);}await _0x5e6a0e(_0x5e8cdd(_0x181e1a,'..'),{'recursive':!![]}),await _0x15b151(_0x181e1a,JSON[_0x269d1e(_0x4d259d._0x3b7625,_0x4d259d._0x1c3c7e,_0x4d259d._0x4858c4,0x6cd)](_0x282d88,null,0x2),'utf8');}async function updateStore(_0x1850a1,_0x5d6cbb){const _0x5ed4bd=await readStore(_0x1850a1);_0x5d6cbb(_0x5ed4bd),await writeStore(_0x1850a1,_0x5ed4bd);}function createMcpOAuthProvider(_0x4f1fda){const _0x1aa9ec={_0xcb61f8:0x11f,_0x139457:0x1b5,_0x343605:0x33,_0x5a166f:0x1cb,_0x3d188e:0x362,_0x4a0d97:0x49d,_0x4cf5e1:0x308,_0x2cc51a:0x281,_0x587643:0x15f,_0x11f60a:0x5e,_0x34faad:0x36d,_0x4fea3f:0x53c,_0x43f6d0:0x3e7,_0x3bca14:0x439,_0x3f9c85:0x55c,_0x26c88b:0xa1},_0x21d52e={_0x35eb0c:0x17c,_0x185d7a:0x112,_0x50acaa:0x1db,_0x19a6e6:0x191},_0x29c013={_0x40cafb:0xab,_0x4eecf0:0x51,_0x542ed4:0x123,_0x3e9586:0xa8,_0x19d5ee:0x77,_0x51500c:0x1de,_0x5c421b:0xa0,_0x1f78d2:0x25,_0x5af2e9:0x115,_0x40955d:0x11a,_0x3073ff:0x95,_0x42a8ef:0x195,_0x50fa97:0xb8,_0x50f08b:0x169,_0x2a9ec7:0x178,_0x5951e4:0x2a0,_0x344654:0x264,_0x2b2b51:0x2b8,_0x1f84b5:0x67,_0x437dce:0x1a6,_0x4a648d:0x81,_0x75566d:0x189},_0x3f5e32={_0x156aa8:0x2b},_0xc01c11={_0x3f0848:0x6d,_0x479a12:0xa},_0x1f4c3c={_0x32fd06:0x30d,_0x561a82:0x280},_0x5bce13={_0x3398cc:0x174,_0x8f3d0:0x7e},_0x58427e={_0x375843:0x6d9,_0x56d736:0x69e,_0x3a1016:0x65b},_0x51bd07={_0x1cdc70:0x58,_0x11bbbc:0x12},_0x1afa24={_0x41813e:0x4d,_0x4c8390:0x2c},_0xf0dd2={_0x1a859f:0x121,_0x101f94:0x97};function _0x1f36cc(_0x1d47e7,_0x42ede1,_0x5a84c8,_0x5af8f8){return _0x22ef16(_0x5af8f8,_0x5a84c8-0x21d,_0x5a84c8-0x1f3,_0x5af8f8-0x23);}const _0xc30d83=storagePath(_0x4f1fda);function _0x27cb81(_0x9998fd,_0x53b889,_0x434b8c,_0x470a08){return _0x22ef16(_0x53b889,_0x9998fd- -_0xf0dd2._0x1a859f,_0x434b8c-_0xf0dd2._0x101f94,_0x470a08-0xcf);}const _0x11b718=_0x4f1fda[_0x27cb81(_0x1aa9ec._0xcb61f8,_0x1aa9ec._0x139457,_0x1aa9ec._0x343605,_0x1aa9ec._0x5a166f)]['oauth']?.[_0x1f36cc(_0x1aa9ec._0x3d188e,_0x1aa9ec._0x4a0d97,0x3af,0x38e)]?.[_0x1f36cc(_0x1aa9ec._0x4cf5e1,0x403,0x369,_0x1aa9ec._0x2cc51a)]('\x20'),_0x1b6106={'client_name':_0x27cb81(0x74,_0x1aa9ec._0x587643,0x61,_0x1aa9ec._0x11f60a),'redirect_uris':[_0x4f1fda[_0x1f36cc(_0x1aa9ec._0x34faad,0x3af,0x3c0,0x4ec)]],'grant_types':[_0x1f36cc(_0x1aa9ec._0x4fea3f,_0x1aa9ec._0x43f6d0,_0x1aa9ec._0x3bca14,0x369),'refresh_token'],'response_types':['code'],'token_endpoint_auth_method':_0x1f36cc(0x57f,0x52f,0x48e,_0x1aa9ec._0x3f9c85),..._0x11b718?{'scope':_0x11b718}:{}};return{'clientMetadataUrl':_0x4f1fda['config'][_0x27cb81(0x17b,_0x1aa9ec._0x26c88b,0x8d,0x2a0)]?.['clientMetadataUrl'],get 'redirectUrl'(){return _0x4f1fda['callbackUrl'];},get 'clientMetadata'(){return _0x1b6106;},async 'state'(){const _0x5734a3={_0x2c4cc5:0xb6,_0x5b12a3:0x21b},_0x2ca605={_0xc902d6:0x26},_0x370389=await readStore(_0xc30d83);if(_0x370389['state'])return _0x370389['state'];const _0xbe84d5=randomUUID();return await updateStore(_0xc30d83,_0x32963a=>{function _0x2e1e80(_0xb3a050,_0x5f1f6c,_0xdb9053,_0x167f9){return _0x7ca6(_0x167f9-_0x2ca605._0xc902d6,_0x5f1f6c);}_0x32963a[_0x2e1e80(_0x5734a3._0x2c4cc5,0xf2,_0x5734a3._0x5b12a3,0x12a)]=_0xbe84d5;}),_0xbe84d5;},async 'clientInformation'(){function _0x554cce(_0x261119,_0xa0a34d,_0x24e751,_0x2a6dbf){return _0x27cb81(_0xa0a34d- -0x206,_0x261119,_0x24e751-_0x1afa24._0x41813e,_0x2a6dbf-_0x1afa24._0x4c8390);}return(await readStore(_0xc30d83))[_0x554cce(_0x51bd07._0x1cdc70,-_0x51bd07._0x11bbbc,-0x113,0xfb)];},async 'saveClientInformation'(_0x41e390){await updateStore(_0xc30d83,_0x4e41f8=>{const _0x49d804={_0x370437:0x3a5};function _0x446070(_0x4e3eea,_0x1c19a2,_0x483d2a,_0x587001){return _0x7ca6(_0x483d2a-_0x49d804._0x370437,_0x4e3eea);}_0x4e41f8[_0x446070(_0x58427e._0x375843,0x5b5,_0x58427e._0x56d736,_0x58427e._0x3a1016)]=_0x41e390;});},async 'tokens'(){function _0x2c6955(_0x13488c,_0x10385f,_0x225f98,_0x16d1cc){return _0x1f36cc(_0x13488c-0x15a,_0x10385f-_0x5bce13._0x3398cc,_0x16d1cc- -_0x5bce13._0x8f3d0,_0x13488c);}return(await readStore(_0xc30d83))[_0x2c6955(_0x1f4c3c._0x32fd06,0x22f,0x26f,_0x1f4c3c._0x561a82)];},async 'saveTokens'(_0x4484b8){const _0x2f1b5a={_0x19c2d5:0x16d},_0x9703cd={_0x4c2aeb:0x336};await updateStore(_0xc30d83,_0x19df9e=>{function _0xec0726(_0x54fd81,_0xe0981,_0x20e772,_0x3c1017){return _0x7ca6(_0xe0981- -_0x9703cd._0x4c2aeb,_0x20e772);}_0x19df9e[_0xec0726(-0x241,-0x271,-0x395,-_0x2f1b5a._0x19c2d5)]=_0x4484b8;});},async 'redirectToAuthorization'(_0x2afa2){const _0x2f1716={_0x23a7ed:0x72,_0x3344f4:0xd,_0x2f99f9:0x3fc};function _0x26f8e1(_0x4039f7,_0x489ea4,_0x43e788,_0x58bc75){return _0x1f36cc(_0x4039f7-_0x2f1716._0x23a7ed,_0x489ea4-_0x2f1716._0x3344f4,_0x58bc75- -_0x2f1716._0x2f99f9,_0x43e788);}await _0x4f1fda[_0x26f8e1(-_0xc01c11._0x3f0848,-_0xc01c11._0x479a12,0x112,0xf)](_0x2afa2);},async 'saveCodeVerifier'(_0x2b194b){const _0x1fe57d={_0x3febef:0x441,_0x17a234:0x486};await updateStore(_0xc30d83,_0x160182=>{function _0x24955e(_0x994b41,_0x50e02f,_0x1330e7,_0x3ac5e0){return _0x7ca6(_0x3ac5e0-0x1bd,_0x1330e7);}_0x160182[_0x24955e(_0x1fe57d._0x3febef,_0x1fe57d._0x17a234,0x344,0x3aa)]=_0x2b194b;});},async 'codeVerifier'(){const _0x345620={_0x404677:0x17c},_0x486885=(await readStore(_0xc30d83))['codeVerifier'];function _0x49b413(_0x203eba,_0x16c532,_0x2070b4,_0x2d812a){return _0x1f36cc(_0x203eba-_0x345620._0x404677,_0x16c532-0x2a,_0x2070b4- -0x453,_0x2d812a);}if(!_0x486885)throw new Error(_0x49b413(-0x4f,_0x3f5e32._0x156aa8,-0x87,-0x38));return _0x486885;},async 'invalidateCredentials'(_0x1fe265){await updateStore(_0xc30d83,_0x11ce6c=>{const _0x56a1c2={_0x9f3073:0x1c};(_0x1fe265===_0x6f2b4(-0x3b,-_0x29c013._0x40cafb,_0x29c013._0x4eecf0,-0x87)||_0x1fe265===_0x267d80(_0x29c013._0x542ed4,_0x29c013._0x3e9586,0x119,_0x29c013._0x19d5ee))&&(_0x11ce6c['clientInformation']=void 0x0);(_0x1fe265==='all'||_0x1fe265===_0x267d80(0x6a,_0x29c013._0x51500c,0xe1,0xbd))&&(_0x11ce6c[_0x267d80(_0x29c013._0x5c421b,-0x31,0xe1,0x134)]=void 0x0);function _0x267d80(_0x909c45,_0x3f125b,_0x28c3cf,_0x1d43a7){return _0x7ca6(_0x28c3cf-_0x56a1c2._0x9f3073,_0x1d43a7);}function _0x6f2b4(_0x3e89a8,_0x449c40,_0x591159,_0x31d651){return _0x7ca6(_0x591159- -0x27c,_0x449c40);}(_0x1fe265===_0x6f2b4(_0x29c013._0x1f78d2,0xdb,_0x29c013._0x4eecf0,-0xc8)||_0x1fe265===_0x267d80(_0x29c013._0x5af2e9,0x146,0x163,_0x29c013._0x40955d))&&(_0x11ce6c[_0x6f2b4(-_0x29c013._0x3073ff,-_0x29c013._0x42a8ef,-0x8f,-_0x29c013._0x40cafb)]=void 0x0,_0x11ce6c[_0x6f2b4(-_0x29c013._0x50fa97,-_0x29c013._0x50f08b,-_0x29c013._0x2a9ec7,-0x21d)]=void 0x0),(_0x1fe265==='all'||_0x1fe265===_0x267d80(_0x29c013._0x5951e4,0x22a,_0x29c013._0x344654,_0x29c013._0x2b2b51))&&(_0x11ce6c[_0x6f2b4(_0x29c013._0x1f84b5,_0x29c013._0x437dce,_0x29c013._0x4a648d,_0x29c013._0x75566d)]=void 0x0);});},async 'saveDiscoveryState'(_0x5186ca){const _0x3d448e={_0x3da737:0x115,_0x2a083c:0x227,_0xdda99b:0xe7};await updateStore(_0xc30d83,_0x34607e=>{const _0x9e7f84={_0x40e388:0x1e8};function _0x4a78fa(_0x40297f,_0x202d0c,_0x1f2c53,_0x18267f){return _0x7ca6(_0x40297f- -_0x9e7f84._0x40e388,_0x1f2c53);}_0x34607e[_0x4a78fa(_0x3d448e._0x3da737,_0x3d448e._0x2a083c,_0x3d448e._0xdda99b,0x7c)]=_0x5186ca;});},async 'discoveryState'(){const _0x419445={_0x41d731:0x87,_0x400da4:0x424};function _0xe0f3b5(_0x4ef518,_0x1501fb,_0x12024a,_0xee67ab){return _0x1f36cc(_0x4ef518-0x13b,_0x1501fb-_0x419445._0x41d731,_0x1501fb- -_0x419445._0x400da4,_0x4ef518);}return(await readStore(_0xc30d83))[_0xe0f3b5(_0x21d52e._0x35eb0c,_0x21d52e._0x185d7a,_0x21d52e._0x50acaa,_0x21d52e._0x19a6e6)];}};}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(_0x1d9b54,_0x350d92){const _0x205114={_0x31fc3d:0x239};function _0x10d093(_0x23c89e,_0x4d9aa1,_0x2be036,_0x100fb5){return _0x22ef16(_0x2be036,_0x100fb5-_0x205114._0x31fc3d,_0x2be036-0xf6,_0x100fb5-0xb4);}const _0x12a4be=_0x28ae80=>_0x28ae80['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x10d093(0x3fc,0x299,0x4c5,0x3c2)](/^_+|_+$/g,'');return'mcp_'+_0x12a4be(_0x1d9b54)+'_'+_0x12a4be(_0x350d92);}function isObject(_0x164927){return typeof _0x164927==='object'&&_0x164927!==null&&!Array['isArray'](_0x164927);}function toSupportedSchema(_0x1a7c4f){const _0x16899f={_0x32cad3:0x21d,_0x4a7ea0:0x2d2,_0x3a7990:0x1ce,_0x4d8158:0x326,_0x2dc032:0x2fe,_0x18ead8:0x327,_0x110054:0x270,_0x2494d0:0x23d,_0x9c4d72:0x235,_0x262541:0x24f,_0x15a97d:0x9e,_0x804321:0x65,_0x558bf2:0x296,_0x16911b:0x133,_0xde79b5:0x2fe,_0x2f5b65:0x3d5,_0x6809b9:0x14f,_0x4b8c90:0x241,_0x5021da:0x135,_0x219c7a:0x139},_0xdb1f1={_0x4c2fac:0x136},_0x28896b={_0x1c70c9:0x26f,_0x5213b0:0xe5};if(!isObject(_0x1a7c4f))return void 0x0;if(_0x1a7c4f['type']===_0x327fd1(0x31f,_0x16899f._0x32cad3,0x2fe,_0x16899f._0x4a7ea0))return{'type':_0x327fd1(_0x16899f._0x3a7990,_0x16899f._0x4d8158,_0x16899f._0x2dc032,0x36e)};if(_0x1a7c4f['type']===_0x327fd1(_0x16899f._0x18ead8,0x260,_0x16899f._0x110054,0x253)||_0x1a7c4f[_0x5ac2f3(_0x16899f._0x2494d0,_0x16899f._0x9c4d72,0x241,_0x16899f._0x262541)]==='integer')return{'type':'number'};function _0x327fd1(_0x264672,_0x226dec,_0x18c2cf,_0x28fe9d){return _0x324926(_0x18c2cf-_0x28896b._0x1c70c9,_0x226dec,_0x18c2cf-_0x28896b._0x5213b0,_0x28fe9d-0x41);}if(_0x1a7c4f[_0x327fd1(0x2a7,0x28b,0x37a,0x438)]===_0x5ac2f3(_0x16899f._0x15a97d,0xd6,0x169,_0x16899f._0x804321))return{'type':'boolean'};if(_0x1a7c4f['type']==='array')return{'type':'array','items':toSupportedSchema(_0x1a7c4f[_0x327fd1(_0x16899f._0x558bf2,0x253,0x1a6,_0x16899f._0x16911b)])??{'type':_0x327fd1(0x412,0x2f4,_0x16899f._0xde79b5,_0x16899f._0x2f5b65)}};function _0x5ac2f3(_0xb207aa,_0x10e84e,_0x26423d,_0x23efeb){return _0x324926(_0x26423d-_0xdb1f1._0x4c2fac,_0xb207aa,_0x26423d-0x34,_0x23efeb-0x6f);}if(_0x1a7c4f[_0x5ac2f3(_0x16899f._0x6809b9,0x210,_0x16899f._0x4b8c90,0x14c)]===_0x5ac2f3(_0x16899f._0x5021da,_0x16899f._0x219c7a,0x1be,0x2d3))return toNuvinToolSchema(_0x1a7c4f);return void 0x0;}function toNuvinToolSchema(_0x51d113){const _0x26b3ea={_0x261d23:0x224,_0x439874:0x28a,_0x541dc1:0x207,_0x5dae04:0xfe,_0x56786f:0x281,_0x451966:0x291,_0x3a6997:0xa3,_0x4daf10:0xbd,_0x1e3b54:0x8f,_0x41925a:0x10d,_0x1b3091:0x1cb,_0x2a205a:0xc5,_0x8d211f:0x114,_0x49c4dc:0x4e,_0x59bb64:0xa9,_0x4dce47:0xda},_0x6267c6={_0x4afb34:0x17f,_0x3ab6cc:0x16c,_0x3c488a:0x25},_0x25e0f9={_0x12ea46:0x74,_0x16e586:0x133};if(!isObject(_0x51d113)||_0x51d113[_0x88b75b(_0x26b3ea._0x261d23,_0x26b3ea._0x439874,0x174,0x20f)]!==_0x88b75b(0xe0,_0x26b3ea._0x541dc1,0x1ce,_0x26b3ea._0x5dae04))return{'type':'object','properties':{}};function _0x47e4a7(_0x592596,_0x36bd31,_0xef69bb,_0x38c3f1){return _0x324926(_0x38c3f1- -0x15,_0x36bd31,_0xef69bb-_0x25e0f9._0x12ea46,_0x38c3f1-_0x25e0f9._0x16e586);}const _0xfe3a25={},_0x3ec528=isObject(_0x51d113[_0x88b75b(0x1df,_0x26b3ea._0x56786f,0x318,_0x26b3ea._0x451966)])?_0x51d113[_0x88b75b(0x1dd,0x281,0x220,0x258)]:{};for(const [_0x3a4f26,_0x162e91]of Object[_0x88b75b(_0x26b3ea._0x3a6997,_0x26b3ea._0x4daf10,-0x32,0x5d)](_0x3ec528)){const _0x53498f=toSupportedSchema(_0x162e91);if(_0x53498f)_0xfe3a25[_0x3a4f26]=_0x53498f;}function _0x88b75b(_0x2e6a28,_0x43ad7c,_0x4a8e6e,_0x2a4dc0){return _0x324926(_0x43ad7c-_0x6267c6._0x4afb34,_0x4a8e6e,_0x4a8e6e-_0x6267c6._0x3ab6cc,_0x2a4dc0-_0x6267c6._0x3c488a);}const _0x2231c5=Array['isArray'](_0x51d113[_0x47e4a7(-0x41,-0xc,-_0x26b3ea._0x1e3b54,-0x120)])?_0x51d113['required'][_0x47e4a7(_0x26b3ea._0x41925a,0x18b,_0x26b3ea._0x1b3091,_0x26b3ea._0x2a205a)](_0x1b70b0=>typeof _0x1b70b0==='string'):void 0x0;return _0x2231c5?.[_0x47e4a7(-_0x26b3ea._0x8d211f,-_0x26b3ea._0x49c4dc,0xa5,-0x9)]?{'type':_0x47e4a7(0x196,0x153,_0x26b3ea._0x59bb64,0x73),'properties':_0xfe3a25,'required':_0x2231c5}:{'type':_0x88b75b(0x166,0x207,0x1c2,_0x26b3ea._0x4dce47),'properties':_0xfe3a25};}function isJsonObject(_0x195a87){const _0x5ecbec={_0x5a118d:0x470,_0x328318:0x419,_0x2d808c:0x7f,_0x35c8c0:0x67},_0x564029={_0x55564a:0xac,_0x58c791:0x12},_0x3d2031={_0x2fefd3:0x198,_0x1bc494:0x1c3};function _0x223b45(_0x35a719,_0x5834e3,_0x385083,_0x5d2942){return _0x324926(_0x35a719-0x3e8,_0x5d2942,_0x385083-_0x3d2031._0x2fefd3,_0x5d2942-_0x3d2031._0x1bc494);}function _0x52a722(_0x1db7db,_0x4a9883,_0x2e74eb,_0x55b4fa){return _0x22ef16(_0x4a9883,_0x55b4fa- -0x235,_0x2e74eb-_0x564029._0x55564a,_0x55b4fa-_0x564029._0x58c791);}return typeof _0x195a87===_0x223b45(_0x5ecbec._0x5a118d,0x51f,_0x5ecbec._0x328318,0x543)&&_0x195a87!==null&&!Array[_0x52a722(0xc2,_0x5ecbec._0x2d808c,-0x12a,-_0x5ecbec._0x35c8c0)](_0x195a87);}function formatMcpContent(_0x5a26df){const _0x494575={_0x46c44f:0xdb,_0x456e0b:0x6a,_0x3a8779:0x485,_0x30bdb9:0x1d1,_0xa31fc4:0x22d,_0x322ebc:0x1d1,_0x11110b:0x59,_0x420cc8:0x76,_0x5e5f41:0x1ec,_0x52a970:0x19b},_0x5d2492={_0x235888:0xf3,_0xcf2901:0x1df},_0x42ec7a={_0x13b436:0x224,_0x33095a:0x1e1},_0x33cfd1={_0x14bbf7:0x1a1,_0x7911c2:0x94,_0x5e22b8:0x67,_0x5b63db:0xe2,_0x3803d5:0x40,_0x59ec48:0x225,_0xbcd6ac:0x238},_0x5318e5=Array[_0x530517(_0x494575._0x46c44f,0x202,0xf3,_0x494575._0x456e0b)](_0x5a26df[_0x56ec54(0x449,0x2cc,0x36c,_0x494575._0x3a8779)])?_0x5a26df['content']:[],_0x189a96=_0x5318e5[_0x530517(_0x494575._0x30bdb9,_0x494575._0xa31fc4,0x15c,_0x494575._0x322ebc)](_0x5796c5=>{const _0x292fe5={_0x1c7f46:0x11c,_0x3bf8c6:0x53c};if(!isObject(_0x5796c5))return'';function _0xe86903(_0x4b95e3,_0x3f1f0b,_0x352a85,_0x156deb){return _0x530517(_0x4b95e3-0x4c,_0x156deb,_0x352a85-0x129,_0x156deb-0x13c);}if(_0x5796c5[_0xe86903(0x262,0x1f1,_0x33cfd1._0x14bbf7,0x1eb)]===_0x2acda6(-0xd7,-_0x33cfd1._0x7911c2,-_0x33cfd1._0x5e22b8,-0xa3)&&typeof _0x5796c5[_0x2acda6(-0xd7,-0xa0,-0xd3,-_0x33cfd1._0x5b63db)]===_0x2acda6(-0x8b,0x2c,-0x193,_0x33cfd1._0x3803d5))return _0x5796c5[_0xe86903(0x19a,_0x33cfd1._0x59ec48,0x13e,0x27e)];function _0x2acda6(_0x20bcde,_0x2dcc97,_0x22b66a,_0x5c726f){return _0x56ec54(_0x20bcde-_0x292fe5._0x1c7f46,_0x2dcc97,_0x20bcde- -_0x292fe5._0x3bf8c6,_0x5c726f-0x8);}return JSON[_0xe86903(_0x33cfd1._0xbcd6ac,0x110,0x1d8,0x2d4)](_0x5796c5);})['filter'](_0x26bc00=>_0x26bc00[_0x56ec54(0x426,0x38a,0x42e,0x512)]>0x0)[_0x530517(_0x494575._0x11110b,0x135,_0x494575._0x420cc8,-0x89)]('\x0a');if(_0x189a96['length']>0x0)return _0x189a96;function _0x56ec54(_0x1bfbad,_0x3f6be3,_0x5a6654,_0x316ea2){return _0x22ef16(_0x3f6be3,_0x5a6654-_0x42ec7a._0x13b436,_0x5a6654-0x17e,_0x316ea2-_0x42ec7a._0x33095a);}function _0x530517(_0x7ad6e7,_0x382d2f,_0x4518cd,_0x2080c9){return _0x22ef16(_0x382d2f,_0x7ad6e7- -_0x5d2492._0x235888,_0x4518cd-0x19c,_0x2080c9-_0x5d2492._0xcf2901);}return JSON[_0x530517(_0x494575._0x5e5f41,0x2db,0x2fe,_0x494575._0x52a970)](_0x5a26df,null,0x2);}function createMcpTool(_0x40ffc1){const _0x2b93f6={_0x394daf:0x6a6,_0x2097d3:0x749,_0x1632e6:0x641,_0x2f553d:0x285,_0x3a50ba:0x318,_0x3a8fde:0x571,_0x2c1fda:0x4e0,_0x140674:0x3de,_0x4ecd3a:0x4c6,_0x2034d3:0x227,_0x43b0d3:0x454,_0xfea25e:0x353,_0x4637d4:0x419,_0x8a2fda:0x345,_0x2d492f:0x518,_0x4c96f9:0x3ea,_0x2eb9f5:0x635,_0x5ec892:0x54f,_0x4dbfe8:0x5ad,_0x57250d:0x3df,_0x2273e4:0x3ba},_0x10eab1={_0x108134:0x28e,_0x539e62:0x2fb,_0x3e5c2e:0x15f,_0x436b5c:0x36f,_0x5262d1:0x96,_0x574f1:0xb0,_0x7d35b0:0x288,_0x5dfc7d:0x2db,_0x52481f:0xa1,_0x90e70c:0x1be,_0x4579e5:0x1a0,_0x16c2ee:0x157,_0x2cc1f2:0x1a8,_0x2cf4d6:0xef,_0x4eaae0:0x1fd,_0x393801:0x31d,_0x392fd8:0x249,_0x170366:0x2af,_0x1876c1:0x1e6},_0x4e6eea={_0x1304cb:0x1a5},_0x5b8190={_0x70fdc:0x174};function _0x3a2c87(_0x4a3f2e,_0x2e30fe,_0x8911e0,_0x341955){return _0x324926(_0x341955-0x5bd,_0x4a3f2e,_0x8911e0-_0x5b8190._0x70fdc,_0x341955-0x194);}const _0x2b376a=createMcpToolName(_0x40ffc1[_0x3a2c87(_0x2b93f6._0x394daf,0x666,_0x2b93f6._0x2097d3,_0x2b93f6._0x1632e6)],_0x40ffc1['tool'][_0x545de5(0x308,0x2a9,_0x2b93f6._0x2f553d,_0x2b93f6._0x3a50ba)]);function _0x545de5(_0x256829,_0x2c65b6,_0xdb23c4,_0xf5db23){return _0x22ef16(_0x256829,_0xf5db23-0x1a1,_0xdb23c4-0x166,_0xf5db23-_0x4e6eea._0x1304cb);}return defineTool({'name':_0x2b376a,'description':_0x40ffc1[_0x3a2c87(0x457,0x68e,0x47e,_0x2b93f6._0x3a8fde)][_0x3a2c87(_0x2b93f6._0x2c1fda,_0x2b93f6._0x140674,0x3aa,_0x2b93f6._0x4ecd3a)]??'MCP\x20tool\x20'+_0x40ffc1[_0x545de5(0x2fe,_0x2b93f6._0x2034d3,_0x2b93f6._0x43b0d3,_0x2b93f6._0xfea25e)][_0x545de5(0x328,_0x2b93f6._0x4637d4,_0x2b93f6._0x8a2fda,0x318)]+_0x545de5(0x4dd,0x4ac,_0x2b93f6._0x2d492f,_0x2b93f6._0x4c96f9)+_0x40ffc1[_0x3a2c87(0x60b,_0x2b93f6._0x2eb9f5,0x627,0x641)],'inputSchema':toNuvinToolSchema(_0x40ffc1[_0x3a2c87(_0x2b93f6._0x5ec892,_0x2b93f6._0x4dbfe8,0x4b2,_0x2b93f6._0x3a8fde)][_0x545de5(0x3d3,_0x2b93f6._0x57250d,0x343,_0x2b93f6._0x2273e4)]),async *'execute'(_0x1da77b){const _0x3984ad={_0x29e79c:0x53},_0x599ad4={_0x335437:0x8e,_0x49549a:0xc0,_0x102065:0x4f3},_0x55fc1b=await _0x40ffc1['client'][_0x25a604(-_0x10eab1._0x108134,-_0x10eab1._0x539e62,-_0x10eab1._0x3e5c2e,-_0x10eab1._0x436b5c)]({'name':_0x40ffc1[_0x27ff95(-0x1a0,-_0x10eab1._0x5262d1,-_0x10eab1._0x574f1,-_0x10eab1._0x7d35b0)][_0x25a604(-0x1fd,-0x258,-_0x10eab1._0x5dfc7d,-0x32b)],'arguments':isJsonObject(_0x1da77b)?_0x1da77b:{}});if(_0x55fc1b[_0x25a604(-_0x10eab1._0x52481f,-_0x10eab1._0x90e70c,-0xd3,-0x4a)])throw new ToolExecutionError(formatMcpContent(_0x55fc1b),{'serverName':_0x40ffc1['serverName'],'toolName':_0x40ffc1[_0x27ff95(-_0x10eab1._0x4579e5,-_0x10eab1._0x16c2ee,-_0x10eab1._0x2cc1f2,-_0x10eab1._0x2cf4d6)][_0x25a604(-_0x10eab1._0x4eaae0,-0x2fb,-_0x10eab1._0x393801,-_0x10eab1._0x392fd8)]});function _0x27ff95(_0x124003,_0x1b87e5,_0x4629a2,_0x5d2911){return _0x545de5(_0x4629a2,_0x1b87e5-_0x599ad4._0x335437,_0x4629a2-_0x599ad4._0x49549a,_0x124003- -_0x599ad4._0x102065);}function _0x25a604(_0x4b4191,_0xdd76c7,_0x6442e4,_0x5ead16){return _0x3a2c87(_0x6442e4,_0xdd76c7-0xd3,_0x6442e4-_0x3984ad._0x29e79c,_0x4b4191- -0x733);}return yield createToolOutput(formatMcpContent(_0x55fc1b),{'serverName':_0x40ffc1['serverName'],'toolName':_0x40ffc1[_0x25a604(-0x1c2,-_0x10eab1._0x170366,-0x2ca,-0x159)][_0x25a604(-0x1fd,-0x1da,-_0x10eab1._0x1876c1,-0x250)],'result':_0x55fc1b}),void 0x0;}});}function resolvePrefix(_0x43a119,_0x2c075d){const _0x3cf8c8={_0x476c2b:0x2e9},_0x552dce={_0x3075a1:0x1a};function _0x28c216(_0x168a06,_0x21ee8a,_0xa97e93,_0x28343f){return _0x324926(_0x168a06-0x1d6,_0x21ee8a,_0xa97e93-0x130,_0x28343f-_0x552dce._0x3075a1);}return _0x2c075d[_0x28c216(_0x3cf8c8._0x476c2b,0x2d0,0x2c1,0x2ef)]??_0x43a119;}function buildMcpHttpHeaders(_0x4fc723){const _0x331716={_0x708cac:0x300,_0x12cee7:0x439,_0x2f00a5:0x395,_0x3d8b12:0x4ab,_0xfc1ba5:0x523,_0xa0094a:0x513,_0x479f1b:0x58d,_0x49a91c:0x351,_0x58d8a8:0x37a,_0x452664:0x265,_0x1f0503:0x470,_0x1359e0:0x45b,_0x46d629:0x380,_0x3f8c78:0x401,_0x2f4cfd:0x381,_0x45f27b:0x41b,_0x4b55e6:0x22a,_0x422118:0x248,_0x5689e8:0x34b},_0x52de22={_0xcede28:0xfb},_0x22ee46={_0x36456f:0xba};function _0x30a5cd(_0x4b768a,_0x427bae,_0x1e3b16,_0x3154ea){return _0x22ef16(_0x3154ea,_0x4b768a-0x20a,_0x1e3b16-0x104,_0x3154ea-_0x22ee46._0x36456f);}const _0x51d85a={..._0x4fc723[_0x3a2787(0x232,_0x331716._0x708cac,0x213,0x3f7)]??{}};_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,_0x331716._0x2f00a5,_0x331716._0x3d8b12,_0x331716._0xfc1ba5)]?.[_0x30a5cd(_0x331716._0xa0094a,_0x331716._0x479f1b,0x4d1,0x54c)]===_0x30a5cd(_0x331716._0x49a91c,_0x331716._0x58d8a8,0x472,_0x331716._0x452664)&&_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,0x30e,_0x331716._0x1f0503,0x36b)]['token']&&_0x51d85a[_0x30a5cd(_0x331716._0x1359e0,_0x331716._0x46d629,0x507,_0x331716._0x3f8c78)]===void 0x0&&(_0x51d85a[_0x3a2787(0x40f,_0x331716._0x2f4cfd,_0x331716._0x45f27b,0x49f)]='Bearer\x20'+_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,0x4e3,0x3a3,0x3cb)][_0x3a2787(0x230,_0x331716._0x4b55e6,_0x331716._0x422118,0x1c7)]);function _0x3a2787(_0x56ad53,_0x56404a,_0x6503cb,_0x21d9c4){return _0x324926(_0x56404a-0x32e,_0x21d9c4,_0x6503cb-0x13e,_0x21d9c4-_0x52de22._0xcede28);}return Object['keys'](_0x51d85a)[_0x3a2787(_0x331716._0x5689e8,0x33a,0x377,0x469)]>0x0?_0x51d85a:void 0x0;}function getErrorMessage(_0x25e2e2){const _0x53831b={_0x512966:0x93,_0x2897d1:0x245},_0x1b5458={_0x24ed8e:0xae,_0x1e7761:0x190};function _0x3413c9(_0x3e208c,_0x59dbb9,_0x36ee1d,_0x3bf737){return _0x22ef16(_0x59dbb9,_0x36ee1d- -0x128,_0x36ee1d-_0x1b5458._0x24ed8e,_0x3bf737-_0x1b5458._0x1e7761);}return _0x25e2e2 instanceof Error?_0x25e2e2[_0x3413c9(_0x53831b._0x512966,_0x53831b._0x2897d1,0x199,0x170)]:String(_0x25e2e2);}function isUnauthorizedError(_0x2ca673){const _0x27ac9e={_0x1ba0db:0x4ab,_0x38874a:0x58e,_0x54e9bc:0x37b},_0x3b5adf={_0x540dc8:0x3c4};function _0x75f20f(_0x4dfbda,_0x171931,_0x3aa37e,_0x1d511d){return _0x324926(_0x4dfbda-_0x3b5adf._0x540dc8,_0x171931,_0x3aa37e-0x1c1,_0x1d511d-0xe4);}return _0x2ca673 instanceof Error&&_0x2ca673['constructor']['name']===_0x75f20f(_0x27ac9e._0x1ba0db,_0x27ac9e._0x38874a,0x3b2,_0x27ac9e._0x54e9bc);}async function connectMcpServer(_0x388b48,_0xaecc37,_0x40c4d9){const _0x13483e={_0xbc955a:0xb3,_0x101906:0x59,_0x59de4a:0x79,_0x4cbdc1:0x14,_0x121880:0x208,_0x40fa20:0x226,_0x2bbe1f:0x2d3,_0x5d139f:0x302,_0xa7b362:0x429,_0x4db02f:0x49f,_0x65966d:0x595,_0x23ac06:0x25,_0x575262:0x4d,_0x35cef0:0x457,_0x2f0111:0x4f7,_0xed4d5:0x49a,_0x174887:0x5b5,_0x23172a:0x41b,_0x207dca:0x5b6,_0x54371b:0x4a0,_0x54be78:0x370,_0x6162ab:0x15b,_0x30d38b:0x6c,_0x4abace:0x31f,_0x3c3346:0x19,_0x184030:0x28,_0x432b26:0x4e,_0x2c61ed:0x49,_0x32713b:0x49,_0x365c07:0x374,_0x559587:0x3b1,_0x3c6073:0x5b3,_0x30cd73:0x314,_0x45c952:0x3a7,_0x27932f:0x28c,_0x127826:0x204,_0x2f6ad6:0xef,_0x231267:0x201,_0x584641:0x25,_0x33b5c6:0x9,_0x2384fb:0x1b7,_0xb97b2c:0x12,_0x5c7034:0x1cc,_0x415c27:0xda,_0x4437ae:0x526,_0x3b3433:0x387,_0x3e00f7:0x397,_0x18bde3:0x4b,_0x557727:0x6f,_0x39f303:0x523,_0x4b4168:0x63d,_0x770424:0x13c,_0x303b22:0x197,_0x2a52a0:0x41,_0x2c930a:0xc8,_0x1d760b:0x348,_0x3805f6:0x2b3},_0x3aa491={_0x42e9cb:0x8b,_0x44a49d:0x8},_0x4658fd={_0x3a2002:0x1a7,_0x195524:0x10b},_0x8bbf21={_0x18599c:0x17f},_0x35f294={_0x347a1a:0xdc,_0x5a3dc3:0x5ab},_0x2616dd={_0xbe4dc3:0x3d5,_0x28496d:0x372},_0x4185a5={_0x20aed2:0x204},_0x384935={_0x51a5fc:0x253};function _0x9f97e3(_0x281d6e,_0x4826eb,_0x1dfd12,_0x2b776c){return _0x22ef16(_0x2b776c,_0x4826eb- -_0x384935._0x51a5fc,_0x1dfd12-0xf,_0x2b776c-0xb7);}const _0x3a6fdb=new Client({'name':_0x9f97e3(-0x7a,_0x13483e._0xbc955a,-_0x13483e._0x101906,0x17f),'version':_0x9f97e3(_0x13483e._0x59de4a,-_0x13483e._0x4cbdc1,-0x104,-0x3e)});if(_0xaecc37[_0x391cc5(_0x13483e._0x121880,_0x13483e._0x40fa20,_0x13483e._0x2bbe1f,_0x13483e._0x5d139f)]===_0x391cc5(0x3f5,_0x13483e._0xa7b362,_0x13483e._0x4db02f,_0x13483e._0x65966d)||_0xaecc37['url']){if(!_0xaecc37[_0x9f97e3(0x3c,-_0x13483e._0x23ac06,-0x5d,-_0x13483e._0x575262)])throw new Error(_0x391cc5(_0x13483e._0x35cef0,_0x13483e._0x2f0111,_0x13483e._0xed4d5,_0x13483e._0x174887)+_0x388b48+_0x391cc5(0x430,0x4e7,_0x13483e._0x23172a,0x537));if(_0xaecc37['auth']?.['type']==='oauth'&&!_0x40c4d9?.[_0x391cc5(0x46c,_0x13483e._0x207dca,_0x13483e._0x54371b,_0x13483e._0x54be78)])throw new Error(_0x9f97e3(_0x13483e._0x6162ab,0x43,-0x23,-_0x13483e._0x30d38b)+_0x388b48+_0x391cc5(0x377,0x217,_0x13483e._0x4abace,0x277));const _0x4dc713=buildMcpHttpHeaders(_0xaecc37),_0xcd6cbb=_0xaecc37[_0x9f97e3(-0x13f,-0x24,-0x38,-0x144)]?.[_0x9f97e3(-0x3a,0xb6,-_0x13483e._0x3c3346,-_0x13483e._0x184030)]===_0x9f97e3(-_0x13483e._0x432b26,_0x13483e._0x2c61ed,0x19,-0xb)&&_0x40c4d9?.[_0x9f97e3(0x132,_0x13483e._0x32713b,-0xe4,0x5)]?createMcpOAuthProvider({'serverName':_0x388b48,'callbackUrl':_0x40c4d9[_0x391cc5(_0x13483e._0x365c07,_0x13483e._0x559587,0x4a0,_0x13483e._0x3c6073)][_0x391cc5(0x2ff,_0x13483e._0x30cd73,_0x13483e._0x45c952,_0x13483e._0x27932f)],'storageDir':_0x40c4d9['oauth'][_0x9f97e3(-_0x13483e._0x127826,-_0x13483e._0x2f6ad6,-0x21f,-_0x13483e._0x231267)],'config':_0xaecc37['auth'],'onRedirect':_0x21b0b0=>_0x40c4d9['oauth']?.['onRedirect'](_0x388b48,_0x21b0b0)}):void 0x0,_0x288668=new StreamableHTTPClientTransport(new URL(_0xaecc37[_0x9f97e3(0x38,-_0x13483e._0x584641,-0xb6,0x8)]),{'authProvider':_0xcd6cbb,'requestInit':_0x4dc713?{'headers':_0x4dc713}:void 0x0});await _0x3a6fdb[_0x9f97e3(-_0x13483e._0x33b5c6,-0x10f,-0x43,-_0x13483e._0x2384fb)](_0x288668);}else{if(!_0xaecc37[_0x9f97e3(_0x13483e._0xb97b2c,0xcc,_0x13483e._0x5c7034,_0x13483e._0x415c27)])throw new Error(_0x391cc5(_0x13483e._0x4437ae,_0x13483e._0x3b3433,_0x13483e._0xed4d5,_0x13483e._0x3e00f7)+_0x388b48+_0x9f97e3(_0x13483e._0x18bde3,-0x63,0xbb,_0x13483e._0x557727));const _0x22b9f1=new StdioClientTransport({'command':_0xaecc37[_0x391cc5(0x42e,0x4bc,_0x13483e._0x39f303,_0x13483e._0x4b4168)],'args':_0xaecc37[_0x9f97e3(-0xad,-_0x13483e._0x770424,-_0x13483e._0x303b22,-0x13b)]??[],'env':_0xaecc37[_0x9f97e3(-0x9a,-_0x13483e._0x2a52a0,-_0x13483e._0x2c930a,-_0x13483e._0x18bde3)]});await _0x3a6fdb[_0x391cc5(0x2eb,0x3d7,_0x13483e._0x1d760b,_0x13483e._0x3805f6)](_0x22b9f1);}function _0x391cc5(_0x293ff6,_0x463b12,_0x56a3fb,_0x3dc1e8){return _0x22ef16(_0x463b12,_0x56a3fb-_0x4185a5._0x20aed2,_0x56a3fb-0x1b8,_0x3dc1e8-0x198);}return{async 'listTools'(){const _0x4665cb={_0x14a945:0x148};function _0x5e7c90(_0x514cab,_0x1a0f11,_0x89623,_0x2e387a){return _0x9f97e3(_0x514cab-_0x4665cb._0x14a945,_0x89623-0x4f0,_0x89623-0x63,_0x1a0f11);}return await _0x3a6fdb[_0x5e7c90(0x479,_0x2616dd._0xbe4dc3,_0x2616dd._0x28496d,0x2fd)]();},async 'callTool'(_0x191fef){const _0x1160dd={_0x2ab8d5:0x9c};function _0x3d19fb(_0xcd95d3,_0x2d8027,_0xb338fb,_0x5cc7d7){return _0x391cc5(_0xcd95d3-_0x35f294._0x347a1a,_0xb338fb,_0x5cc7d7- -_0x35f294._0x5a3dc3,_0x5cc7d7-0xa2);}function _0x24f621(_0x44e328,_0x39bc78,_0x3fefca,_0x3a56af){return _0x9f97e3(_0x44e328-_0x1160dd._0x2ab8d5,_0x44e328-0xe2,_0x3fefca-0x180,_0x3fefca);}return await _0x3a6fdb[_0x3d19fb(-0x27a,-0x24e,-0x154,-0x284)]({'method':_0x3d19fb(-0x176,-0x198,-_0x8bbf21._0x18599c,-0x24f),'params':_0x191fef},CallToolResultSchema);},async 'close'(){function _0x417160(_0x1c09a6,_0x5843f8,_0x19c018,_0x4a730b){return _0x9f97e3(_0x1c09a6-_0x4658fd._0x3a2002,_0x19c018- -0x70,_0x19c018-_0x4658fd._0x195524,_0x1c09a6);}await _0x3a6fdb[_0x417160(-_0x3aa491._0x42e9cb,0x53,-0xd1,_0x3aa491._0x44a49d)]();}};}async function createMcpToolsFromServers(_0x26176b){const _0x36eae7={_0x48da53:0x5e,_0x290dac:0xba,_0x2d5106:0x223,_0x4aca80:0x236,_0xab2318:0x2ed,_0x215e79:0x7b,_0x1bbfe6:0x12c,_0x122c47:0x177,_0xeffe5b:0x30d,_0x4d055a:0x1bd,_0x11ba54:0x250,_0x142653:0x2f5,_0x1e8736:0x286,_0x4547da:0x47e,_0x395e3d:0x29f,_0x5a5d1e:0x374,_0x2b0c5e:0x235,_0xc1ca05:0x89,_0x540a08:0x549,_0x46947f:0x49c,_0x5b0416:0x38b,_0x21b5cd:0x39c,_0x12f45b:0x409,_0x18d421:0x2a5,_0x1f3231:0x1b5},_0x281377={_0x34c331:0x513,_0x306847:0x550,_0x5be29c:0x4ee},_0xd0c836={_0x1eaf9b:0x1f8,_0x10c416:0xa4},_0x2e8ded={_0x21aaeb:0x1b1,_0x19abb6:0x4b,_0x32e287:0x48},_0x43d9e4=_0x26176b[_0x29dfbf(_0x36eae7._0x48da53,_0x36eae7._0x290dac,_0x36eae7._0x2d5106,0x13e)]??connectMcpServer,_0x3c7ad3=[],_0x4c0d91={},_0x4f6210=[];for(const [_0x3f5176,_0x38fb69]of Object[_0x24302f(0x29e,0x310,_0x36eae7._0x4aca80,_0x36eae7._0xab2318)](_0x26176b[_0x29dfbf(_0x36eae7._0x215e79,0xd9,_0x36eae7._0x1bbfe6,0x124)]??{})){if(_0x38fb69[_0x29dfbf(0x254,_0x36eae7._0x122c47,0x365,0x28d)]===![]){_0x4c0d91[_0x3f5176]={'status':_0x29dfbf(0x1a3,0xc8,0x171,0x14b)};continue;}try{const _0x362afd=await _0x43d9e4(_0x3f5176,_0x38fb69,_0x26176b[_0x29dfbf(_0x36eae7._0xeffe5b,_0x36eae7._0x4d055a,0x2bd,_0x36eae7._0x11ba54)]);_0x3c7ad3[_0x24302f(0x4e2,0x564,0x545,0x45b)](_0x362afd);const _0xbf346=await _0x362afd[_0x24302f(0x36b,0x23b,_0x36eae7._0x142653,_0x36eae7._0x1e8736)]();let _0x4dc21c=0x0;for(const _0x335488 of _0xbf346[_0x24302f(_0x36eae7._0x4547da,_0x36eae7._0x395e3d,0x2f5,_0x36eae7._0x5a5d1e)]){const _0x390b4f=_0x26176b['allowedTools']?.[_0x3f5176]?.[_0x335488[_0x29dfbf(_0x36eae7._0x2b0c5e,_0x36eae7._0xc1ca05,0x69,0x171)]];if(_0x390b4f===![])continue;_0x4dc21c+=0x1,_0x4f6210[_0x24302f(0x533,_0x36eae7._0x540a08,_0x36eae7._0x46947f,0x45b)](createMcpTool({'serverName':resolvePrefix(_0x3f5176,_0x38fb69),'tool':_0x335488,'client':_0x362afd}));}_0x4c0d91[_0x3f5176]={'status':_0x24302f(_0x36eae7._0x5b0416,_0x36eae7._0x21b5cd,_0x36eae7._0x12f45b,0x3de),'toolCount':_0x4dc21c};}catch(_0x15bdd8){_0x4c0d91[_0x3f5176]=isUnauthorizedError(_0x15bdd8)?{'status':_0x29dfbf(_0x36eae7._0x18d421,_0x36eae7._0x1f3231,_0x36eae7._0xab2318,0x1fc),'message':getErrorMessage(_0x15bdd8)}:{'status':'error','message':getErrorMessage(_0x15bdd8)};}}function _0x24302f(_0x386faf,_0x314475,_0x27431e,_0x410bc5){return _0x22ef16(_0x386faf,_0x410bc5-_0x2e8ded._0x21aaeb,_0x27431e-_0x2e8ded._0x19abb6,_0x410bc5-_0x2e8ded._0x32e287);}function _0x29dfbf(_0x5f0a6f,_0x3b7955,_0x11f950,_0x1035fd){return _0x324926(_0x1035fd-_0xd0c836._0x1eaf9b,_0x3b7955,_0x11f950-_0xd0c836._0x10c416,_0x1035fd-0x156);}return{'tools':_0x4f6210,'servers':_0x4c0d91,async 'close'(){const _0x27bd6e={_0x4f8bff:0x82,_0x1aafb7:0xef,_0x5c01f2:0x4f2},_0x34d114={_0x1bbe72:0x157};function _0x3794a0(_0x4193d8,_0x3cf9ee,_0x413808,_0x2b85ea){return _0x29dfbf(_0x4193d8-_0x34d114._0x1bbe72,_0x3cf9ee,_0x413808-0x7d,_0x4193d8-0x230);}function _0x487803(_0x4f1cd7,_0xd3b35e,_0x1a6d20,_0x8f0365){return _0x24302f(_0xd3b35e,_0xd3b35e-_0x27bd6e._0x4f8bff,_0x1a6d20-_0x27bd6e._0x1aafb7,_0x1a6d20- -_0x27bd6e._0x5c01f2);}await Promise[_0x3794a0(_0x281377._0x34c331,0x4d6,_0x281377._0x306847,0x53a)](_0x3c7ad3[_0x3794a0(_0x281377._0x5be29c,0x41d,0x471,0x3c0)](_0x4962b1=>_0x4962b1[_0x3794a0(0x41c,0x345,0x3ac,0x4da)]()));}};}function getCommand(_0x4b5d04){const _0x432ad2={_0x2b586d:0x1e3,_0x218933:0xbf,_0x13e59d:0xbd,_0x373cf9:0x2a4,_0x4ccda3:0xda,_0x3aaea0:0xb5,_0xbe0ace:0xb,_0x2eac26:0x9d,_0x375ede:0x334,_0xa3e9c9:0x2f1,_0x4a13b0:0x401,_0x89c429:0x355},_0x568878={_0x2bc7a0:0x15,_0x270f12:0x100,_0xb28902:0xbc},_0x4d2f7a={_0x38644d:0x8b,_0x506d4c:0x132};if(_0x4b5d04&&typeof _0x4b5d04==='object'&&!Array[_0x17d104(_0x432ad2._0x2b586d,_0x432ad2._0x218933,_0x432ad2._0x13e59d,_0x432ad2._0x373cf9)](_0x4b5d04)&&typeof _0x4b5d04[_0xb7145d(_0x432ad2._0x4ccda3,0xcf,-_0x432ad2._0x3aaea0,-_0x432ad2._0xbe0ace)]===_0xb7145d(-0x1c1,0x4,0xc,-_0x432ad2._0x2eac26))return _0x4b5d04[_0x17d104(_0x432ad2._0x375ede,_0x432ad2._0xa3e9c9,_0x432ad2._0x4a13b0,_0x432ad2._0x89c429)];function _0xb7145d(_0xed2352,_0x553efc,_0x57b609,_0x3bd26f){return _0x324926(_0x3bd26f- -0x12c,_0xed2352,_0x57b609-_0x4d2f7a._0x38644d,_0x3bd26f-_0x4d2f7a._0x506d4c);}function _0x17d104(_0x4162cb,_0x8f2f48,_0x22a0a3,_0x227666){return _0x22ef16(_0x227666,_0x4162cb-_0x568878._0x2bc7a0,_0x22a0a3-_0x568878._0x270f12,_0x227666-_0x568878._0xb28902);}return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x324926(0xe2,0xf2,0x20e,0x178),_0x324926(0x105,0x67,0x65,0xfe),_0x22ef16(0x2ec,0x1df,0xba,0x222),_0x324926(-0x22,0x8e,-0x60,-0x7e),_0x324926(0xb3,-0x3b,0x137,0x1c8),'src/formats/message-format.ts',_0x22ef16(0x1d8,0x280,0x325,0x329),_0x324926(0x9a,-0x49,0x13e,-0x10),_0x22ef16(0x394,0x2a1,0x2f7,0x1e6),_0x22ef16(0x1c3,0x1b0,0x145,0x1d0),_0x22ef16(0x25a,0x2fd,0x200,0x20a),_0x22ef16(0x43c,0x314,0x42a,0x25a),'src/shared/types.ts',_0x324926(0x3f,0x5d,0xd1,0x57),_0x22ef16(0x144,0x243,0x175,0x361),_0x324926(0x90,0xe9,-0x4a,0x163),_0x22ef16(0xfd,0x16e,0x27a,0x243)][_0x22ef16(0x26e,0x14c,0x6e,0xa2)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x324926(-0x1,0xe4,-0x7,-0xb),'description':_0x324926(0xe8,0x15,0x74,-0x47),'input_schema':{'type':_0x22ef16(0x15b,0x286,0x283,0x22a),'properties':{'command':{'type':_0x324926(0x8f,0x91,-0x9d,0x77)}},'required':[_0x324926(0x121,0x7a,0x223,0x7f)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x29119d){return{'output':_0x29119d,'structured':{'value':_0x29119d}};}function createUnknownToolResult(_0x4d7087){const _0x4230ef={_0x51b1d0:0x1bf,_0xe13735:0xf3,_0x456791:0x11c,_0x12fa81:0x4b8,_0xfa6c85:0xfb,_0x2e26e7:0x125,_0x53f4e8:0x1f3},_0x4a3593={_0x56b228:0x95,_0x611984:0x126,_0x1dbc7d:0x12},_0x1cf2c2={_0x4f4be5:0x2e0,_0x283bba:0x1a7,_0x23de8e:0x16};function _0x231aa2(_0x470e36,_0x1d0144,_0x1529f0,_0xd9164a){return _0x324926(_0x470e36-_0x1cf2c2._0x4f4be5,_0xd9164a,_0x1529f0-_0x1cf2c2._0x283bba,_0xd9164a-_0x1cf2c2._0x23de8e);}function _0x1f0a2f(_0x86b746,_0x44d829,_0x3f4d08,_0x5bed5c){return _0x324926(_0x5bed5c- -_0x4a3593._0x56b228,_0x86b746,_0x3f4d08-_0x4a3593._0x611984,_0x5bed5c-_0x4a3593._0x1dbc7d);}return{'callId':_0x4d7087['id'],'toolName':_0x4d7087[_0x1f0a2f(-0x20a,-_0x4230ef._0x51b1d0,-_0x4230ef._0xe13735,-_0x4230ef._0x456791)],'status':_0x231aa2(0x3e6,0x508,_0x4230ef._0x12fa81,0x304),'output':_0x1f0a2f(-_0x4230ef._0xfa6c85,-0x13b,-0x57,-0x19)+_0x4d7087[_0x1f0a2f(-_0x4230ef._0x2e26e7,-0x106,-_0x4230ef._0x53f4e8,-0x11c)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x120c86,_0x5a7744){const _0x1a84ec={_0x3416f6:0x4bc},_0x5ec0df={_0x38b421:0x21};function _0x225a4c(_0x13a586,_0x1f89c9,_0x381778,_0x53decb){return _0x22ef16(_0x13a586,_0x53decb-0x295,_0x381778-0x173,_0x53decb-_0x5ec0df._0x38b421);}return{'callId':_0x120c86['id'],'toolName':_0x120c86[_0x225a4c(_0x1a84ec._0x3416f6,0x512,0x4f9,0x40c)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x120c86['input']),'exitCode':0x0},'chunks':[_0x5a7744],'meta':createMeta()};}function createMockToolRuntime(){const _0x5330e6={_0xd394d3:0x5db,_0x5c27d1:0x6e1,_0x92da8:0x641,_0x1851be:0x5e7},_0x343e65={_0x2a52b9:0x5a},_0x26c46c=async(_0x243f34,_0x2f0645)=>{if(_0x243f34[_0x39c5ef(-0x24,-0x34,0x9c,_0x343e65._0x2a52b9)]!=='Bash')return createUnknownToolResult(_0x243f34);const _0xfb27a0=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x39c5ef(_0x3e3945,_0x436498,_0x2db64d,_0x2e7b9a){return _0x7ca6(_0x2e7b9a- -0x101,_0x2db64d);}return createSuccessToolResult(_0x243f34,_0xfb27a0);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x5af2d7,_0x1bf29c){function _0x1cfa91(_0x722f08,_0x216c5f,_0x56992c,_0x45fb82){return _0x7ca6(_0x56992c-0x399,_0x45fb82);}return await Promise['all'](_0x5af2d7[_0x1cfa91(_0x5330e6._0xd394d3,_0x5330e6._0x5c27d1,_0x5330e6._0x92da8,_0x5330e6._0x1851be)](async _0x4eb19d=>{return await _0x26c46c(_0x4eb19d,_0x1bf29c);}));},async 'execute'(_0x166c1d,_0x18dc66){return await _0x26c46c(_0x166c1d,_0x18dc66);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x187821={_0x42258d:0x2c6,_0x6fba42:0x28b},_0xcfbd56={_0x4bd7f4:0x19e,_0x42b15a:0xb5};delegatedRunCounter+=0x1;function _0x36762f(_0x4ab492,_0x221c9f,_0x165050,_0x5b81f5){return _0x324926(_0x4ab492-0x232,_0x165050,_0x165050-_0xcfbd56._0x4bd7f4,_0x5b81f5-_0xcfbd56._0x42b15a);}return _0x36762f(_0x187821._0x42258d,_0x187821._0x6fba42,0x29e,0x275)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x3ee2d6,_0x4d9e23){const _0x61c8cb={_0x2ca334:0x172,_0xedf74a:0x17},_0x4203ca={_0x44df5f:0x1ed,_0x4ee938:0x7f};function _0x3a64d9(_0x1a2b6d,_0x36194a,_0x44b1d4,_0x2565a1){return _0x22ef16(_0x2565a1,_0x44b1d4- -0x147,_0x44b1d4-_0x4203ca._0x44df5f,_0x2565a1-_0x4203ca._0x4ee938);}return typeof _0x3ee2d6===_0x3a64d9(_0x61c8cb._0x2ca334,_0x61c8cb._0xedf74a,0xe9,0x1d5)?await _0x3ee2d6(_0x4d9e23):_0x3ee2d6;}function getDelegatedAgentDefinition(_0x4494d4,_0x24e2f2){const _0x4775ff={_0x16ba79:0x65c},_0x2daeaf={_0xbc2265:0x5ac,_0x1433bc:0x112};function _0x2ad38f(_0x5a17df,_0x2d1514,_0x4b882c,_0x7797eb){return _0x324926(_0x7797eb-_0x2daeaf._0xbc2265,_0x4b882c,_0x4b882c-0x14,_0x7797eb-_0x2daeaf._0x1433bc);}return _0x4494d4[_0x2ad38f(0x546,0x67e,0x5db,_0x4775ff._0x16ba79)]?.[_0x24e2f2];}function createRunSummary(_0xdbcbc){const _0x4682f1={_0x25f175:0x10c,_0x5112af:0x72,_0xb6591:0x1e3,_0x18418a:0x11e,_0x5447e9:0x251,_0x60f515:0x2cb,_0x3eebdd:0x229,_0x42068d:0x1b5,_0x18f531:0x93,_0x1d0cec:0x262,_0xf7feb6:0x296,_0x3d03ba:0x188,_0xb7c5ed:0x193,_0x587793:0x60,_0x5e8ec0:0x164},_0x4dcfd7={_0x21aa83:0x133};function _0x49a2fb(_0x3bd2bf,_0x510515,_0x42ca35,_0x170ab0){return _0x22ef16(_0x170ab0,_0x3bd2bf- -0x310,_0x42ca35-0x19d,_0x170ab0-0x179);}function _0x5989c9(_0x19cf9c,_0x7e8e6f,_0x33dadf,_0xb669f9){return _0x22ef16(_0x19cf9c,_0x7e8e6f- -0x3d4,_0x33dadf-_0x4dcfd7._0x21aa83,_0xb669f9-0x10b);}return{'runId':_0xdbcbc[_0x5989c9(0x22,-_0x4682f1._0x25f175,-_0x4682f1._0x5112af,-_0x4682f1._0xb6591)],'agentId':_0xdbcbc['agentId'],'sessionId':_0xdbcbc[_0x49a2fb(-0x130,-_0x4682f1._0x18418a,-0x241,-0x18)],'status':_0xdbcbc[_0x5989c9(-0x14b,-0x1bc,-0x293,-_0x4682f1._0x5447e9)],'parentSessionId':_0xdbcbc[_0x5989c9(-0x3bb,-0x311,-0x31a,-_0x4682f1._0x60f515)],..._0xdbcbc['originToolCallId']!==void 0x0?{'originToolCallId':_0xdbcbc[_0x5989c9(-_0x4682f1._0x3eebdd,-0x24a,-_0x4682f1._0x42068d,-0x16c)]}:{},..._0xdbcbc['errorMessage']!==void 0x0?{'errorMessage':_0xdbcbc[_0x49a2fb(-0x41,-0xb6,-_0x4682f1._0x18f531,0xcc)]}:{},..._0xdbcbc[_0x49a2fb(-0x188,-_0x4682f1._0x1d0cec,-0x14c,-_0x4682f1._0xf7feb6)]?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0xdbcbc[_0x49a2fb(-_0x4682f1._0x3d03ba,-_0x4682f1._0xb7c5ed,-0xd3,-0xcd)][_0x49a2fb(-_0x4682f1._0x587793,0x5d,-_0x4682f1._0x5e8ec0,-0x33)])}:{}};}function createRunSummaryOutput(_0x1b7114,_0x1174c6){const _0x4be35c={_0x255821:0x1a5,_0x3e2b66:0x24f,_0x3d8b0e:0x1c7,_0x5d24b6:0x160,_0x598373:0x22f,_0x90b672:0x568,_0x389538:0x443},_0x41ac2a={_0x349e5c:0x239,_0x388b88:0x105,_0x192992:0x171},_0x56f428={_0x31226e:0x3f7,_0x4fa3b5:0x92,_0x163931:0x17e};function _0x4536e6(_0x15d12c,_0x2d2125,_0xa3fefc,_0x29ba29){return _0x22ef16(_0x29ba29,_0x15d12c- -_0x56f428._0x31226e,_0xa3fefc-_0x56f428._0x4fa3b5,_0x29ba29-_0x56f428._0x163931);}function _0x5dc622(_0x413722,_0x5c0de1,_0x1c22e9,_0xb73db5){return _0x22ef16(_0x413722,_0xb73db5-_0x41ac2a._0x349e5c,_0x1c22e9-_0x41ac2a._0x388b88,_0xb73db5-_0x41ac2a._0x192992);}const _0x310e80=createRunSummary(_0x1b7114),_0x45c53b=_0x310e80[_0x4536e6(-0x2ae,-_0x4be35c._0x255821,-_0x4be35c._0x3e2b66,-0x252)];return createToolOutput(typeof _0x45c53b===_0x4536e6(-0x16a,-_0x4be35c._0x3d8b0e,-_0x4be35c._0x5d24b6,-_0x4be35c._0x598373)&&_0x45c53b[_0x5dc622(0x3e8,0x3ee,_0x4be35c._0x90b672,_0x4be35c._0x389538)]>0x0?_0x45c53b:_0x1174c6,_0x310e80);}function getRunTerminalErrorMessage(_0x3ebbca){const _0x4ee624={_0x1f40ff:0x174,_0x328df4:0x60,_0x3cceeb:0x13f,_0x4c1fc4:0x73,_0x816419:0x4de,_0x3e0c6a:0x52b,_0x3cc22c:0x95,_0x46ad97:0x23,_0x15d06d:0x76,_0x3717d1:0x11f},_0x9364b7={_0xa3a55f:0x50},_0x37b9cc={_0x47d3ab:0x14f},_0x2d161b=_0x3ebbca?.[_0x2fbd90(0x3d5,0x3af,0x3ec,0x2e5)][_0x535536(-_0x4ee624._0x1f40ff,-0xcf,-_0x4ee624._0x328df4,-0x23e)]['at'](-0x1);function _0x535536(_0x3afeeb,_0xc58ca0,_0x39c671,_0x1d9828){return _0x22ef16(_0xc58ca0,_0x3afeeb- -0x28c,_0x39c671-_0x37b9cc._0x47d3ab,_0x1d9828-0x35);}function _0x2fbd90(_0x38030c,_0x194798,_0x297a22,_0x40bcaa){return _0x22ef16(_0x194798,_0x38030c-0x2b5,_0x297a22-0x1d4,_0x40bcaa-_0x9364b7._0xa3a55f);}if(_0x2d161b?.[_0x535536(-0x74,-0x167,-_0x4ee624._0x3cceeb,-_0x4ee624._0x4c1fc4)]===_0x2fbd90(0x5b9,_0x4ee624._0x816419,0x615,_0x4ee624._0x3e0c6a)&&_0x2d161b['output'][_0x535536(-_0x4ee624._0x3cc22c,-_0x4ee624._0x46ad97,0x3,-_0x4ee624._0x15d06d)]()[_0x535536(-0x82,0x78,-0x22,-_0x4ee624._0x3717d1)]>0x0)return _0x2d161b['output'];return void 0x0;}function formatAbortedRunMessage(_0x3cb4c4,_0x236090){const _0x5a9738={_0x2003e2:0x4de,_0x372518:0x4e8,_0x1c4f14:0x42a,_0x38fd57:0x425,_0x35bf56:0x48f,_0x4e8bb2:0x620,_0x3e3424:0x5b3,_0x1e5302:0x573,_0x2b2314:0x637,_0xa2b66:0x69f,_0x10dbe3:0x6b2,_0x197cdd:0x752},_0x50a6b8={_0x432d61:0x57a,_0x5e0f6a:0xc3},_0x2e1120={_0x4ae3ee:0x314},_0x23afd1=_0x39b429(_0x5a9738._0x2003e2,_0x5a9738._0x372518,0x576,_0x5a9738._0x1c4f14)+_0x3cb4c4+_0x39b429(_0x5a9738._0x38fd57,_0x5a9738._0x35bf56,0x41a,0x307);if(!_0x236090||_0x236090[_0x10d7e0(0x45b,_0x5a9738._0x4e8bb2,_0x5a9738._0x3e3424,_0x5a9738._0x1e5302)]()[_0x10d7e0(_0x5a9738._0x2b2314,_0x5a9738._0xa2b66,_0x5a9738._0x10dbe3,0x586)]===0x0||_0x236090===_0x23afd1)return _0x23afd1;function _0x39b429(_0x4ed37f,_0x3eefb0,_0x46316e,_0x431bb1){return _0x22ef16(_0x3eefb0,_0x4ed37f-_0x2e1120._0x4ae3ee,_0x46316e-0x168,_0x431bb1-0x18d);}function _0x10d7e0(_0x3fe94e,_0x3a8101,_0xc18bd4,_0x1bfe32){return _0x324926(_0x1bfe32-_0x50a6b8._0x432d61,_0x3a8101,_0xc18bd4-0x15c,_0x1bfe32-_0x50a6b8._0x5e0f6a);}return _0x23afd1+_0x10d7e0(0x73e,_0x5a9738._0x197cdd,0x715,0x659)+_0x236090;}function createAssignTaskTool(_0xc8ae36){const _0x4dfe4f={_0x33b9b5:0x20f,_0x268e83:0x2,_0x5c827d:0x67,_0x4ae73e:0x8c,_0x525d8d:0x261,_0x4cc838:0x148,_0x592f91:0x155,_0x59cdda:0x206,_0x193c10:0x23a,_0xb6a716:0x2ea,_0xabdaec:0xb6,_0x34ad7b:0x1d,_0x228c26:0x18,_0x5c005a:0x2cb,_0x25e425:0x21b},_0x476f0f={_0xca2372:0xa7,_0xd4e4b4:0xe1,_0x2a6696:0x1a5,_0xffe81e:0x2cb,_0x106d8f:0x1d9,_0x101cba:0x157,_0x15054f:0x1ab,_0x4c53fe:0x18a,_0xf989e3:0x2b1,_0x3184ef:0x1b7,_0xb8fb2a:0x285,_0x169660:0x1bb,_0x1b18c5:0x286,_0x547027:0x2f5,_0x5e8b62:0x100,_0x510050:0x1c3,_0x3bb496:0x1d3,_0x37b4dc:0x274,_0x164e82:0x105,_0x30a489:0x178,_0x2c1dba:0x1e5,_0x59538c:0x71,_0x50bb76:0x1d,_0xb1ee51:0x23c,_0x377ef9:0x1c4,_0x1f45a3:0x213,_0x31309c:0x135,_0x2e72cb:0x1f4,_0x428a38:0x93,_0x375f1e:0x1eb,_0x45e069:0x15b,_0x45785d:0x35,_0x51ec46:0x1fa,_0x27b4fa:0x1f6,_0x42a170:0x1bc,_0x459fdf:0xd7,_0x1233f4:0x208,_0x4fdf8f:0x2b5,_0x2ed83b:0xde,_0x134111:0x1bf,_0x33694f:0x91,_0x2be0be:0x8,_0x31bde0:0x23,_0x4cd1f3:0x189,_0x485e01:0x10e,_0x364990:0x12,_0x5d617e:0x172,_0x38f0e4:0x2c9,_0x2e81c7:0xef,_0x589f9e:0x50,_0x30de71:0x84,_0x44c805:0x7f,_0x12b452:0x1c8,_0x450b06:0x178,_0x32eb92:0x101,_0xee3005:0xc1,_0x5e305c:0x195,_0x4375fb:0x20a,_0x171dfa:0x2c6,_0x53c57c:0x6e,_0x2bf1b5:0x86,_0x2c7dc3:0x154,_0x187365:0x132,_0x30d636:0xe9,_0xe6c2b5:0xa4,_0x2e8b0c:0x1d6},_0x5402c1={_0x3f3281:0x13b,_0x15e70b:0x7f},_0x29dc08={_0x66c73b:0x1ea},_0x14a551={_0x26852d:0x177},_0x4bb889={_0x1d9985:0x22c,_0x544f71:0x1c6};function _0x50fcf2(_0x29e788,_0x26dacb,_0x4fa9c4,_0x4527aa){return _0x22ef16(_0x29e788,_0x4527aa- -_0x4bb889._0x1d9985,_0x4fa9c4-0x18e,_0x4527aa-_0x4bb889._0x544f71);}function _0x24ddff(_0x542982,_0xb70580,_0x3e300f,_0x468de9){return _0x324926(_0x468de9-_0x14a551._0x26852d,_0x542982,_0x3e300f-0x180,_0x468de9-0x78);}return defineTool({'name':_0x50fcf2(-_0x4dfe4f._0x33b9b5,-0x53,-0x1f0,-0x12b),'description':_0x50fcf2(_0x4dfe4f._0x268e83,_0x4dfe4f._0x5c827d,_0x4dfe4f._0x4ae73e,-0x7b),'inputSchema':{'type':_0x24ddff(_0x4dfe4f._0x525d8d,0x2be,_0x4dfe4f._0x4cc838,0x1ff),'properties':{'agentId':{'type':_0x24ddff(_0x4dfe4f._0x592f91,0x2aa,0x2c4,_0x4dfe4f._0x59cdda)},'description':{'type':'string'},'task':{'type':_0x24ddff(_0x4dfe4f._0x193c10,_0x4dfe4f._0xb6a716,0x298,_0x4dfe4f._0x59cdda)}},'required':['agentId',_0x24ddff(_0x4dfe4f._0xabdaec,_0x4dfe4f._0x34ad7b,_0x4dfe4f._0x228c26,0x80),_0x24ddff(0x1c4,_0x4dfe4f._0x5c005a,0x251,_0x4dfe4f._0x25e425)]},async *'execute'(_0xc768ec,_0x37a9d8){const _0x21ff9a={_0x5546d0:0x3b0,_0x3cf768:0x497,_0x2ab41e:0x4e,_0x43e531:0x1c7,_0x567901:0x14a,_0x16e732:0x3a7,_0xe599be:0x335},_0x57ca0c=createDelegatedRunId(),_0x5c0cd1={'agentId':_0xc768ec[_0x20b2be(-_0x476f0f._0xca2372,-_0x476f0f._0xd4e4b4,-_0x476f0f._0x2a6696,-_0x476f0f._0xffe81e)],'parentSessionId':_0x37a9d8[_0x98fb0a(-0x27d,-0x1ab,-0x1f4,-_0x476f0f._0x106d8f)],'runId':_0x57ca0c,..._0x37a9d8['toolCallId']!==void 0x0?{'toolCallId':_0x37a9d8[_0x98fb0a(-0x1e7,-0x369,-0x255,-0x1cb)]}:{}},_0x4ee509=getDelegatedAgentDefinition(_0xc8ae36,_0xc768ec[_0x20b2be(-0x291,-0xc3,-0x1a5,-0x76)]);if(!_0x4ee509)throw new ToolExecutionError(_0x98fb0a(-_0x476f0f._0x101cba,-0x1a7,-_0x476f0f._0x15054f,-0x22b)+_0xc768ec[_0x20b2be(-_0x476f0f._0x4c53fe,-0x14f,-0x1a5,-0x1aa)],{'agentId':_0xc768ec[_0x20b2be(-_0x476f0f._0xf989e3,-0x22b,-_0x476f0f._0x2a6696,-_0x476f0f._0x3184ef)]});const _0x2cad90=new Agent(await resolveDelegatedAgentOptions(_0x4ee509,_0x5c0cd1));let _0x321758={'runId':_0x57ca0c,'agentId':_0xc768ec[_0x20b2be(-0x24c,-0x7c,-0x1a5,-_0x476f0f._0xb8fb2a)],'sessionId':_0x2cad90[_0x98fb0a(-0x129,-_0x476f0f._0x169660,-0x1f4,-_0x476f0f._0x1b18c5)],'status':_0x20b2be(-0x131,-_0x476f0f._0x547027,-0x1d8,-0x124),'parentSessionId':_0x37a9d8[_0x98fb0a(-0x117,-_0x476f0f._0x5e8b62,-0x1f4,-0x14e)],..._0x37a9d8['toolCallId']!==void 0x0?{'originToolCallId':_0x37a9d8['toolCallId']}:{}};const _0x2c9cec=new AbortController();function _0x98fb0a(_0x523656,_0x20bccd,_0x3cf9d0,_0x88f2d4){return _0x24ddff(_0x523656,_0x20bccd-0x124,_0x3cf9d0-_0x29dc08._0x66c73b,_0x3cf9d0- -0x34d);}const _0x3e2959=addAbortListener(_0x37a9d8[_0x98fb0a(-_0x476f0f._0x510050,-0x14b,-_0x476f0f._0x3bb496,-_0x476f0f._0x37b4dc)],()=>{const _0x27fa88={_0x40aa59:0x42,_0x840454:0x5b,_0x52ea59:0x56},_0x794af3={_0x5670b2:0x19e};function _0x397206(_0x5ef1a2,_0x47b5f7,_0xe1aa21,_0x4bed00){return _0x98fb0a(_0x4bed00,_0x47b5f7-0x46,_0x47b5f7-0x5ed,_0x4bed00-_0x794af3._0x5670b2);}function _0x5e26e1(_0x4e2489,_0x594169,_0xd9a2fa,_0x2fbaf4){return _0x98fb0a(_0xd9a2fa,_0x594169-_0x27fa88._0x40aa59,_0x2fbaf4-_0x27fa88._0x840454,_0x2fbaf4-_0x27fa88._0x52ea59);}_0x2c9cec[_0x397206(0x448,_0x21ff9a._0x5546d0,_0x21ff9a._0x3cf768,0x39f)](_0x37a9d8[_0x5e26e1(-_0x21ff9a._0x2ab41e,-_0x21ff9a._0x43e531,-_0x21ff9a._0x567901,-0x178)]?.[_0x397206(_0x21ff9a._0x16e732,_0x21ff9a._0xe599be,0x2ca,0x27c)]);});yield createToolOutput(_0x20b2be(-_0x476f0f._0x164e82,-_0x476f0f._0x30a489,-_0x476f0f._0x2c1dba,-0x1e6)+_0x321758['runId']+'.',{'runId':_0x321758[_0x20b2be(-0x7c,_0x476f0f._0x59538c,_0x476f0f._0x50bb76,-0x68)],'agentId':_0x321758[_0x98fb0a(-_0x476f0f._0xb1ee51,-_0x476f0f._0x377ef9,-0x2ce,-0x21c)],'sessionId':_0x321758[_0x98fb0a(-_0x476f0f._0x1f45a3,-_0x476f0f._0x31309c,-_0x476f0f._0x2e72cb,-0x17a)],'status':_0x321758[_0x20b2be(-0x6e,-0x149,-_0x476f0f._0x428a38,-0xe7)]});function _0x20b2be(_0x9c86fb,_0x22258d,_0x50dfad,_0x13761c){return _0x50fcf2(_0x13761c,_0x22258d-0x24,_0x50dfad-_0x5402c1._0x3f3281,_0x50dfad- -_0x5402c1._0x15e70b);}try{const _0x251d0f=await _0x2cad90['send'](_0xc768ec[_0x98fb0a(-_0x476f0f._0x375f1e,-_0x476f0f._0x45e069,-0x132,-_0x476f0f._0x45785d)],{'signal':_0x2c9cec[_0x98fb0a(-0x1bd,-_0x476f0f._0x51ec46,-_0x476f0f._0x3bb496,-0x1fe)]});_0x321758={..._0x321758,'status':_0x251d0f[_0x98fb0a(-0x13a,-_0x476f0f._0x27b4fa,-_0x476f0f._0x42a170,-_0x476f0f._0x459fdf)],'result':_0x251d0f};if(_0x251d0f[_0x98fb0a(-_0x476f0f._0x1233f4,-0x197,-0x1bc,-_0x476f0f._0xca2372)]!==_0x98fb0a(-0xc4,-_0x476f0f._0x4fdf8f,-0x1ae,-0xda)){const _0x11d443=getRunTerminalErrorMessage(_0x251d0f),_0x3c87ea=formatAbortedRunMessage(_0x321758[_0x20b2be(-0xfe,-_0x476f0f._0x2ed83b,0x1d,0x11b)],_0x11d443);throw new ToolExecutionError(_0x3c87ea,{...createRunSummary(_0x321758),'aborted':!![],'errorMessage':_0x3c87ea});}return createRunSummaryOutput(_0x321758,'Agent\x20run\x20'+_0x321758[_0x98fb0a(-_0x476f0f._0x134111,-_0x476f0f._0x33694f,-0x10c,_0x476f0f._0x2be0be)]+_0x20b2be(-_0x476f0f._0x31bde0,-_0x476f0f._0x4cd1f3,-_0x476f0f._0x485e01,-_0x476f0f._0x364990));}catch(_0x604e3e){if(_0x604e3e instanceof ToolExecutionError)throw _0x604e3e;if(isAbortError(_0x604e3e)||_0x2c9cec['signal'][_0x20b2be(-0x27f,-_0x476f0f._0x5d617e,-0x1d7,-0x272)]||_0x37a9d8['signal'][_0x20b2be(-0x1d1,-0x13e,-0x1d7,-_0x476f0f._0x38f0e4)]){const _0x4c8f73=getRunTerminalErrorMessage(_0x321758['result'])??(_0x604e3e instanceof Error?_0x604e3e[_0x20b2be(0x2c,-_0x476f0f._0x2e81c7,0x16,_0x476f0f._0x589f9e)]:String(_0x604e3e)),_0x4db117=formatAbortedRunMessage(_0x321758[_0x20b2be(-0x7,-_0x476f0f._0x30de71,0x1d,-_0x476f0f._0x44c805)],_0x4c8f73);_0x321758={..._0x321758,'status':'aborted','errorMessage':_0x4db117};throw new ToolExecutionError(_0x4db117,{...createRunSummary(_0x321758),'aborted':!![],'errorMessage':_0x4db117});}const _0x5727cb=getRunTerminalErrorMessage(_0x321758[_0x98fb0a(-_0x476f0f._0x12b452,-0x1c3,-0x24c,-_0x476f0f._0x450b06)])??(_0x604e3e instanceof Error?_0x604e3e[_0x20b2be(-_0x476f0f._0x32eb92,0x58,0x16,-_0x476f0f._0xee3005)]:String(_0x604e3e))??_0x98fb0a(-_0x476f0f._0x5e305c,-0x2fe,-_0x476f0f._0x4375fb,-_0x476f0f._0x171dfa)+_0x321758[_0x20b2be(_0x476f0f._0x53c57c,_0x476f0f._0x2bf1b5,_0x476f0f._0x50bb76,-0x84)]+_0x20b2be(_0x476f0f._0x2c7dc3,_0x476f0f._0x187365,0x4d,_0x476f0f._0x30d636);_0x321758={..._0x321758,'status':_0x98fb0a(-_0x476f0f._0xe6c2b5,-_0x476f0f._0x2e8b0c,-0x14b,-0x26c),'errorMessage':_0x5727cb};throw new ToolExecutionError(_0x5727cb,{...createRunSummary(_0x321758),'errorMessage':_0x5727cb});}finally{_0x3e2959();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x3c0dd6){return[createAssignTaskTool(_0x3c0dd6)];}import*as _0x380f5b from'path';function buildDescription2(_0x402fdd){const _0x573a14={_0x1e0375:0x1e8,_0x49ff40:0x98,_0x5efc23:0xee,_0x58cc4b:0xc1,_0x498125:0x25b,_0xfca97c:0x2d,_0x599667:0xd2,_0x56abb2:0x109,_0x495779:0xdd,_0xb1141c:0x34,_0x33bff1:0x199,_0x3e377a:0x135},_0x490921={_0x13cb8c:0x2b,_0x1efe9a:0x1c4,_0xf8f669:0x185},_0x490f4e={_0x2dc73a:0x1c9,_0x59901a:0x1d6};if(_0x402fdd[_0x3a0ec2(0x268,_0x573a14._0x1e0375,0x2a7,0x2df)]===0x0)return _0x28fe46(-0x52,-_0x573a14._0x49ff40,-_0x573a14._0x5efc23,-0x140);const _0x49e604=[_0x28fe46(-0xbd,-_0x573a14._0x58cc4b,0x5d,0xa),_0x3a0ec2(_0x573a14._0x498125,0x330,0x1ea,0x229),_0x28fe46(0x7e,_0x573a14._0xfca97c,0x67,-0xab),_0x28fe46(0xe,-0x26,-_0x573a14._0x599667,-_0x573a14._0x56abb2),..._0x402fdd['map'](_0x2d21b4=>'-\x20'+_0x2d21b4['name']+':\x20'+_0x2d21b4[_0x28fe46(-0x122,-0x239,-0x16a,-0x169)])];function _0x3a0ec2(_0x11b3da,_0x12df6c,_0x57b2c0,_0x2d106a){return _0x22ef16(_0x11b3da,_0x2d106a-0xd5,_0x57b2c0-_0x490f4e._0x2dc73a,_0x2d106a-_0x490f4e._0x59901a);}function _0x28fe46(_0x34cbf0,_0x575897,_0x31b50f,_0x4f5728){return _0x324926(_0x34cbf0- -_0x490921._0x13cb8c,_0x575897,_0x31b50f-_0x490921._0x1efe9a,_0x4f5728-_0x490921._0xf8f669);}return _0x49e604[_0x28fe46(-_0x573a14._0x495779,-_0x573a14._0xb1141c,-_0x573a14._0x33bff1,-_0x573a14._0x3e377a)]('\x0a');}function createLoadSkillTool(_0x161f66){const _0x598420={_0x27476b:0x1ab,_0x4116b4:0xbc,_0x105aa9:0x5c,_0x5cb483:0xae,_0x412aa7:0x110,_0x2ceaa8:0x38,_0x3a39fb:0x78,_0x198454:0x8c,_0xb47b59:0xfa,_0x3b3534:0x12,_0x4eb9b7:0x1f1,_0x25ef7f:0xd3},_0x56ac6b={_0x2a73c4:0x588,_0x391117:0x67,_0x1d1ddf:0x147,_0xf67dd3:0x2a9,_0x1505be:0x2a0,_0x1745f3:0xc1,_0x28fece:0x12b,_0x5febb:0x9d,_0x3e1b5a:0x81,_0x3c2238:0x127,_0x22578a:0x54b,_0x48793d:0x49a,_0xb5448:0x507,_0x3585ef:0x37a,_0x4eb1b9:0x396,_0x5bfca0:0x3ef,_0x595b7d:0x4b3,_0x3da620:0x4af,_0x4eb62a:0x4ad,_0x5cda38:0x69,_0xe3d492:0x132,_0x48742a:0x18d,_0x186eb1:0x56c,_0x58f1f8:0x615,_0x41a1e6:0x457,_0x8a782c:0x574,_0x3f8c8c:0xc3,_0x18381a:0x18b,_0x5259e6:0x6e,_0x13ba55:0x69,_0xe11f2d:0x14e,_0x2002ec:0x51,_0x267a8b:0x71,_0x2d1c65:0x56c,_0x52bd1b:0x695},_0xb21afb={_0xc3fc8f:0xd5,_0x1d794c:0x40},_0x15bc9a={_0x233f0a:0x59},_0x1da874={_0x22c6c3:0x69};function _0x56f00f(_0x507856,_0x423afb,_0xe37f7c,_0x5466c3){return _0x324926(_0xe37f7c- -0x4c,_0x5466c3,_0xe37f7c-_0x1da874._0x22c6c3,_0x5466c3-0x6);}function _0xbc27f6(_0xdccfad,_0x2b9323,_0x3ed874,_0x148a26){return _0x324926(_0x3ed874-0x1d,_0xdccfad,_0x3ed874-0x1c7,_0x148a26-_0x15bc9a._0x233f0a);}const _0x5dc613=new Map(_0x161f66[_0xbc27f6(-_0x598420._0x27476b,-0x17d,-0x110,-0x15e)][_0xbc27f6(_0x598420._0x4116b4,_0x598420._0x105aa9,0xe3,0x1f6)](_0x5b3836=>[_0x5b3836[_0x56f00f(-0x197,0x2a,-0xd3,0x5d)],_0x5b3836])),_0x1def0e=buildDescription2(_0x161f66[_0xbc27f6(-_0x598420._0x5cb483,-0x1ea,-_0x598420._0x412aa7,-_0x598420._0x2ceaa8)]);return defineTool({'name':_0xbc27f6(_0x598420._0x3a39fb,-_0x598420._0x198454,0x40,0xb2),'description':_0x1def0e,'inputSchema':{'type':_0x56f00f(-0xa8,_0x598420._0xb47b59,0x3c,-0xe9),'properties':{'name':{'type':'string'}},'required':[_0x56f00f(-_0x598420._0x3b3534,-_0x598420._0x4eb9b7,-_0x598420._0x25ef7f,0x3f)]},async *'execute'(_0x2e1283){const _0x4dee27=_0x5dc613[_0x5b54f8(0x565,0x621,0x683,_0x56ac6b._0x2a73c4)](_0x2e1283[_0x178295(0x159,0x94,-_0x56ac6b._0x391117,0x56)]);function _0x178295(_0x4c2f86,_0x3b201f,_0x467e0d,_0x35b34b){return _0xbc27f6(_0x467e0d,_0x3b201f-_0xb21afb._0xc3fc8f,_0x3b201f-0xfe,_0x35b34b-_0xb21afb._0x1d794c);}function _0x5b54f8(_0x5547fe,_0x8e69d8,_0x4e8210,_0x575cc7){return _0xbc27f6(_0x8e69d8,_0x8e69d8-0x188,_0x5547fe-0x4a1,_0x575cc7-0x1b4);}if(!_0x4dee27){const _0x24d58e=Array[_0x178295(_0x56ac6b._0x1d1ddf,0x209,_0x56ac6b._0xf67dd3,_0x56ac6b._0x1505be)](_0x5dc613[_0x178295(0x16f,_0x56ac6b._0x1745f3,0x1c1,-0x64)]())['join'](',\x20');throw new ToolExecutionError(_0x178295(_0x56ac6b._0x28fece,-0x3,_0x56ac6b._0x5febb,-_0x56ac6b._0x3e1b5a)+_0x2e1283[_0x178295(0x180,0x94,_0x56ac6b._0x3c2238,0x196)]+_0x5b54f8(_0x56ac6b._0x22578a,_0x56ac6b._0x48793d,0x520,_0x56ac6b._0xb5448)+_0x24d58e,{'name':_0x2e1283[_0x5b54f8(0x437,_0x56ac6b._0x3585ef,_0x56ac6b._0x4eb1b9,0x4ed)]});}const _0x2f4ec0=await _0x161f66['loadSkill'](_0x4dee27),_0x4e9264=_0x4dee27['source']['directory']??_0x380f5b[_0x5b54f8(_0x56ac6b._0x5bfca0,0x3a6,0x46d,_0x56ac6b._0x595b7d)](_0x4dee27['source'][_0x5b54f8(0x591,0x61a,0x542,0x5e8)]),_0x5e7bd5=[_0x5b54f8(0x557,0x517,_0x56ac6b._0x3da620,_0x56ac6b._0x4eb62a)+_0x2f4ec0[_0x178295(_0x56ac6b._0x5cda38,0x94,0xd2,_0x56ac6b._0xe3d492)],'',_0x2f4ec0[_0x5b54f8(0x3f4,0x460,0x2d8,0x2cf)],'',_0x178295(0x20d,0xde,0x1c5,-0x52),_0x178295(_0x56ac6b._0x48742a,0x150,0x18f,0x9a)+_0x4dee27[_0x5b54f8(_0x56ac6b._0x186eb1,0x4d4,_0x56ac6b._0x58f1f8,_0x56ac6b._0x41a1e6)][_0x5b54f8(0x591,0x61e,_0x56ac6b._0x8a782c,0x5c9)],_0x178295(0x73,_0x56ac6b._0x3f8c8c,0x9e,_0x56ac6b._0x18381a)+_0x4e9264][_0x178295(-_0x56ac6b._0x5259e6,_0x56ac6b._0x13ba55,-0xab,0x48)]('\x0a');return yield createToolOutput(_0x5e7bd5,{'id':_0x2f4ec0['id'],'name':_0x2f4ec0[_0x178295(_0x56ac6b._0xe11f2d,0x94,-_0x56ac6b._0x2002ec,_0x56ac6b._0x267a8b)],'path':_0x4dee27[_0x5b54f8(_0x56ac6b._0x2d1c65,_0x56ac6b._0x52bd1b,0x4fb,0x48f)]['path'],'baseDirectory':_0x4e9264}),void 0x0;}});}import{readFile as _0xa712f2,stat as _0x21a7ff}from'fs/promises';import*as _0x5a9cac from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x324926(-0x12e,-0x47,-0x73,-0xa4),_0x22ef16(0x2bb,0x20b,0x244,0x264),_0x324926(-0x10e,-0x125,-0x1be,-0x215),_0x22ef16(0x1d7,0x196,0xcf,0x292)]),PNG_SIGNATURE=Buffer[_0x324926(0xee,0x111,0xd7,0x11b)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x528c74,_0x3f169c){const _0x4d9b91={_0x58aa9b:0x286,_0x174221:0x418,_0x31406b:0x246,_0x5593be:0x2ec,_0x222154:0x1d9,_0x117f16:0x26b,_0x150489:0x2f4,_0x271849:0x60,_0x265e39:0x36,_0x3ab90d:0x426,_0x53d29d:0x19b,_0x299c5c:0x155,_0xcf2bf8:0x21b,_0x47987e:0x16c,_0x280382:0x1d2,_0x3faf61:0x26b,_0x5a5861:0x35f,_0x9e24c1:0x49e,_0x598efc:0x4aa,_0x2ad877:0x3b2,_0x23bc8f:0x22d,_0x3e214f:0x37c,_0x2faeb9:0x3b4,_0x473d3e:0x118,_0x23aab2:0x275,_0x4f5da9:0x288,_0x176cfe:0x87,_0x253a3b:0x11a,_0x3ac51f:0xf4,_0x380a65:0x46e,_0x4c542e:0x3e7,_0x1ac92d:0x38c,_0x16506b:0x545,_0x525109:0x3fc,_0x326af7:0x4b8,_0x6f32c:0x371,_0x45bfee:0x426},_0x1b7284={_0x390dbf:0x19d,_0x50004e:0x12e,_0x13f449:0x8a},_0x138e19={_0x12f5b8:0x36a,_0x11a601:0xa,_0x4afcaf:0x1e8};if(_0x528c74[_0x11fc21(0x4ae,0x483,_0x4d9b91._0x58aa9b,0x3b2)](0x0,0x8)[_0x215bf0(-0x158,-0x166,-0x18a,-0x1e0)](PNG_SIGNATURE))return'image/png';if(_0x528c74[0x0]===0xff&&_0x528c74[0x1]===0xd8&&_0x528c74[0x2]===0xff)return'image/jpeg';function _0x11fc21(_0x1b05a2,_0x36d604,_0x3dff87,_0x28663b){return _0x324926(_0x28663b-_0x138e19._0x12f5b8,_0x1b05a2,_0x3dff87-_0x138e19._0x11a601,_0x28663b-_0x138e19._0x4afcaf);}function _0x215bf0(_0x13c9f6,_0x367806,_0x29a64c,_0x208ca7){return _0x324926(_0x29a64c- -_0x1b7284._0x390dbf,_0x13c9f6,_0x29a64c-_0x1b7284._0x50004e,_0x208ca7-_0x1b7284._0x13f449);}const _0x5a92f3=_0x528c74['subarray'](0x0,0x6)[_0x11fc21(_0x4d9b91._0x174221,0x2b4,_0x4d9b91._0x31406b,_0x4d9b91._0x5593be)](_0x215bf0(-_0x4d9b91._0x222154,-0x175,-_0x4d9b91._0x117f16,-_0x4d9b91._0x150489));if(_0x5a92f3==='GIF87a'||_0x5a92f3===_0x215bf0(_0x4d9b91._0x271849,_0x4d9b91._0x265e39,-0xcb,0x4))return _0x11fc21(0x399,0x4ec,0x3c7,_0x4d9b91._0x3ab90d);if(_0x528c74[_0x215bf0(-0xab,-_0x4d9b91._0x53d29d,-_0x4d9b91._0x299c5c,-0x7c)](0x0,0x4)[_0x215bf0(-0x167,-0xf2,-_0x4d9b91._0xcf2bf8,-0x102)](_0x215bf0(-_0x4d9b91._0x47987e,-_0x4d9b91._0x280382,-_0x4d9b91._0x3faf61,-_0x4d9b91._0x5a5861))==='RIFF'&&_0x528c74[_0x11fc21(_0x4d9b91._0x9e24c1,_0x4d9b91._0x598efc,0x2b2,_0x4d9b91._0x2ad877)](0x8,0xc)[_0x215bf0(-0x2aa,-0x2a6,-0x21b,-0x2f7)](_0x11fc21(_0x4d9b91._0x23bc8f,_0x4d9b91._0x3e214f,0x36f,0x29c))===_0x215bf0(-0x12f,-0x305,-0x22a,-0x14d))return _0x11fc21(0x57e,0x394,_0x4d9b91._0x2faeb9,0x47c);const _0x32d93f=_0x5a9cac[_0x215bf0(-0x13a,-_0x4d9b91._0x473d3e,-0x1b1,-0x26f)](_0x3f169c)['toLowerCase']();if(_0x32d93f===_0x215bf0(-_0x4d9b91._0x23aab2,-_0x4d9b91._0x4f5da9,-0x234,-0x352))return _0x215bf0(-_0x4d9b91._0x176cfe,-0x59,-_0x4d9b91._0x253a3b,-_0x4d9b91._0x3ac51f);if(_0x32d93f==='.jpg'||_0x32d93f===_0x11fc21(_0x4d9b91._0x380a65,0x39a,_0x4d9b91._0x4c542e,_0x4d9b91._0x1ac92d))return _0x11fc21(0x35d,0x56b,_0x4d9b91._0x16506b,0x47e);if(_0x32d93f==='.gif')return _0x11fc21(_0x4d9b91._0x525109,_0x4d9b91._0x326af7,_0x4d9b91._0x6f32c,_0x4d9b91._0x45bfee);if(_0x32d93f==='.webp')return'image/webp';return void 0x0;}function normalizeDetail(_0xd1b439){const _0x1a9fcb={_0x154a8c:0xb9,_0x3aad0f:0x17d,_0x538668:0x127,_0x103642:0x190,_0x56df62:0x1dc,_0x5a1f3e:0x2a9,_0x112357:0x344,_0x7c2088:0xf6,_0x4bba14:0x9a,_0x47747f:0x9e,_0x4e06eb:0x151,_0x100bc8:0x275},_0x243e2d={_0x24adec:0x46},_0x5c4a39={_0x1c9cc9:0x7a,_0x3f92f7:0xab,_0x39b98f:0xc};function _0x4e1604(_0x4aae4f,_0x44e883,_0x31c7fd,_0x403ec0){return _0x22ef16(_0x4aae4f,_0x31c7fd- -_0x5c4a39._0x1c9cc9,_0x31c7fd-_0x5c4a39._0x3f92f7,_0x403ec0-_0x5c4a39._0x39b98f);}if(_0xd1b439===void 0x0)return void 0x0;const _0x5ee0d1=_0xd1b439[_0x4e1604(0x1b4,_0x1a9fcb._0x154a8c,_0x1a9fcb._0x3aad0f,_0x1a9fcb._0x538668)]()[_0x5996d3(_0x1a9fcb._0x103642,_0x1a9fcb._0x56df62,_0x1a9fcb._0x5a1f3e,_0x1a9fcb._0x112357)]();if(!SUPPORTED_DETAILS[_0x4e1604(0x9f,0x203,_0x1a9fcb._0x7c2088,_0x1a9fcb._0x4bba14)](_0x5ee0d1))throw new ToolExecutionError(_0x4e1604(0xf0,_0x1a9fcb._0x47747f,_0x1a9fcb._0x4e06eb,_0x1a9fcb._0x100bc8)+_0xd1b439,{'detail':_0xd1b439});function _0x5996d3(_0x4e2006,_0x3f32aa,_0x300284,_0x1ae9fe){return _0x22ef16(_0x4e2006,_0x300284- -_0x243e2d._0x24adec,_0x300284-0x1f,_0x1ae9fe-0x50);}return _0x5ee0d1;}function createViewFileTool(_0x2206b5={}){const _0x3b1e06={_0x1c9759:0xf0,_0x54a457:0x33,_0x355abe:0x25,_0x24619a:0x3,_0x4f85eb:0x78,_0x5324ab:0xdb,_0x2295ae:0xef,_0x4f9612:0xbb,_0x593eb0:0x137,_0x391f85:0x65,_0x586d64:0x9c,_0x1f7eab:0x10b,_0x1d3cbe:0x58,_0x5a077b:0x13e,_0x982526:0x62,_0x4ad9a3:0xb2,_0x5c8341:0xdd,_0x4d0d00:0x5f,_0x3251f7:0x1d4,_0x1776ef:0x5d},_0x4f83a6={_0xbd6cb7:0x5eb,_0xe7f3f1:0x5cf,_0x843ca8:0x556,_0x24adb3:0x308,_0x2a265b:0x43e,_0x58074e:0x4b9,_0x2e44ca:0x515,_0x3dc98b:0x532,_0x44f8af:0x320,_0x442eea:0x3d2,_0x2457e9:0x3a1,_0x44db31:0x584,_0x13f2f4:0x4f9,_0x224b53:0x408,_0x2c3dbb:0x5a1,_0x2ab548:0x597,_0xd9a137:0x22,_0x568a04:0x136,_0x380b78:0x1ac,_0x19e810:0x2ce,_0x125074:0x32b,_0x38e6c7:0x3b1,_0xa74441:0x417,_0x2b4dc2:0x308,_0x132778:0x421,_0x2c4f3c:0x214,_0x9c4ee5:0x220,_0x4eae64:0x2c7,_0x500d47:0x28b,_0x2462eb:0x2eb,_0x31c269:0x1b5,_0x29b332:0x2dc,_0x2c9933:0x344,_0x4d6bb6:0x23a,_0x4ee3f7:0x226,_0x4df589:0x2d7,_0x266d24:0x1b7,_0x18657c:0x169,_0x11a7b3:0x534,_0x25c950:0x527,_0x1d4212:0x5cd,_0x54c695:0x389,_0x112b68:0x3e1,_0x8ce7bd:0x501,_0x1f881f:0x348,_0x57975e:0x2eb,_0x4772da:0x3dd,_0x420e56:0x2f6,_0x3fe73a:0x2b0},_0x317455={_0x1ee070:0x15c,_0x4e4cc2:0x435,_0x17624d:0x13e},_0x2f8c69={_0x41345e:0x1b4,_0x545d29:0x1dc},_0x22a5a8={_0x17168e:0x22d,_0x1bbf1e:0x84,_0x146130:0x137},_0x357f18=_0x5a9cac[_0x5209ee(-0x5c,-_0x3b1e06._0x1c9759,-0x6a,-0x35)](_0x2206b5[_0x5209ee(_0x3b1e06._0x54a457,_0x3b1e06._0x355abe,-_0x3b1e06._0x24619a,-_0x3b1e06._0x4f85eb)]??process[_0xc1e682(-0x148,-0x167,-_0x3b1e06._0x5324ab,-0x147)]()),_0x48071c=(_0x2206b5[_0xc1e682(-0x73,_0x3b1e06._0x2295ae,0x3b,_0x3b1e06._0x4f9612)]??[])['map'](_0x2e830e=>_0x5a9cac['resolve'](_0x2e830e));function _0x5209ee(_0x29ce90,_0x38482e,_0x4e70aa,_0x4156d7){return _0x22ef16(_0x38482e,_0x29ce90- -_0x22a5a8._0x17168e,_0x4e70aa-_0x22a5a8._0x1bbf1e,_0x4156d7-_0x22a5a8._0x146130);}function _0xc1e682(_0x342b64,_0x20241c,_0x1c97a6,_0x35ee3f){return _0x22ef16(_0x342b64,_0x1c97a6- -0x1d4,_0x1c97a6-_0x2f8c69._0x41345e,_0x35ee3f-_0x2f8c69._0x545d29);}const _0x5cda6e=_0x2206b5[_0x5209ee(-0x109,-_0x3b1e06._0x593eb0,-0x18e,-0x4e)]??DEFAULT_MAX_BYTES,_0x237f48=_0x2206b5[_0x5209ee(-0xb6,-0x1e,_0x3b1e06._0x391f85,-0x149)]??_0xc1e682(-0x14d,-_0x3b1e06._0x586d64,-_0x3b1e06._0x1f7eab,-0x11b);return defineTool({'name':_0x237f48,'description':_0x5209ee(-0x5a,-0x14,_0x3b1e06._0x1d3cbe,0xb4),'inputSchema':{'type':_0xc1e682(_0x3b1e06._0x5a077b,-_0x3b1e06._0x982526,_0x3b1e06._0x4ad9a3,_0x3b1e06._0x5c8341),'properties':{'path':{'type':_0xc1e682(0xd7,_0x3b1e06._0x4d0d00,0xb9,-0x25)},'detail':{'type':_0xc1e682(0x1b5,_0x3b1e06._0x3251f7,0xb9,_0x3b1e06._0x1776ef)}},'required':['path']},async *'execute'(_0x868aa5){const _0x2f00f9={_0x121881:0x1cf},_0x3c48b8=resolveAllowedPath(_0x357f18,_0x48071c,_0x868aa5[_0x22082d(0x595,_0x4f83a6._0xbd6cb7,_0x4f83a6._0xe7f3f1,0x532)]);await assertWorkspaceFile(_0x3c48b8);const _0x5a59c2=await _0x21a7ff(_0x3c48b8);if(_0x5a59c2[_0x22082d(0x55d,0x562,_0x4f83a6._0x843ca8,0x44a)]>_0x5cda6e)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x868aa5[_0x50a917(0x2eb,0x215,_0x4f83a6._0x24adb3,0x26c)],{'path':_0x868aa5[_0x22082d(_0x4f83a6._0x2a265b,_0x4f83a6._0x58074e,_0x4f83a6._0x2e44ca,_0x4f83a6._0x3dc98b)],'maxBytes':_0x5cda6e,'size':_0x5a59c2['size']});const _0x382da6=await _0xa712f2(_0x3c48b8),_0x173d70=detectImageMediaType(_0x382da6,_0x3c48b8);if(!_0x173d70)throw new ToolExecutionError(_0x22082d(0x46c,_0x4f83a6._0x44f8af,_0x4f83a6._0x442eea,_0x4f83a6._0x2457e9)+_0x868aa5[_0x22082d(0x4c4,_0x4f83a6._0x44db31,_0x4f83a6._0x13f2f4,_0x4f83a6._0x3dc98b)],{'path':_0x868aa5[_0x50a917(0x35e,0x407,0x308,0x3f2)],'supported':[_0x22082d(_0x4f83a6._0x224b53,0x45d,0x4bb,0x4d0),_0x22082d(0x378,_0x4f83a6._0x2c3dbb,_0x4f83a6._0x2ab548,0x481),'.jpg','.png',_0x50a917(0x16c,_0x4f83a6._0xd9a137,_0x4f83a6._0x568a04,0x1c6)]});const _0x3d0b6e=normalizeDetail(_0x868aa5[_0x50a917(0x32c,_0x4f83a6._0x380b78,0x284,_0x4f83a6._0x19e810)]),_0x190d83=[_0x50a917(0x2c9,0x394,_0x4f83a6._0x125074,0x419)+_0x868aa5[_0x50a917(_0x4f83a6._0x38e6c7,_0x4f83a6._0xa74441,_0x4f83a6._0x2b4dc2,0x3d5)],_0x50a917(0x254,0x32b,0x2cc,0x387)+_0x173d70,_0x50a917(0x3f7,0x2c4,0x327,_0x4f83a6._0x132778)+_0x5a59c2[_0x50a917(_0x4f83a6._0x2c4f3c,0x2bc,_0x4f83a6._0x9c4ee5,0x1a5)]+_0x50a917(0x1f9,0x2bf,_0x4f83a6._0x4eae64,_0x4f83a6._0x500d47)][_0x22082d(0x551,0x4f0,0x492,0x4ab)](_0x3d0b6e?[_0x50a917(_0x4f83a6._0x2462eb,0x213,0x1d8,_0x4f83a6._0x31c269)+_0x3d0b6e]:[])[_0x22082d(_0x4f83a6._0x29b332,_0x4f83a6._0x2c9933,0x4d6,0x3ad)]('\x0a');function _0x22082d(_0x31811c,_0xfe948c,_0x2c79c0,_0x31c38c){return _0xc1e682(_0x2c79c0,_0xfe948c-_0x317455._0x1ee070,_0x31c38c-_0x317455._0x4e4cc2,_0x31c38c-_0x317455._0x17624d);}const _0x2cfe4d=[{'type':_0x50a917(_0x4f83a6._0x4d6bb6,0x25b,_0x4f83a6._0x4ee3f7,0x2b7),'source':{'type':'base64','media_type':_0x173d70,'data':_0x382da6[_0x50a917(_0x4f83a6._0x4df589,0x1a4,_0x4f83a6._0x266d24,_0x4f83a6._0x18657c)](_0x22082d(_0x4f83a6._0x11a7b3,_0x4f83a6._0x25c950,_0x4f83a6._0x1d4212,0x538))}},{'type':'text','text':_0x190d83}];function _0x50a917(_0x29adae,_0x2e7e08,_0x369a18,_0x5f0de1){return _0x5209ee(_0x369a18-0x264,_0x29adae,_0x369a18-0xcd,_0x5f0de1-_0x2f00f9._0x121881);}return yield createToolOutput(_0x190d83,{'path':_0x868aa5['path'],'resolvedPath':_0x3c48b8,'created':_0x5a59c2[_0x22082d(_0x4f83a6._0x54c695,0x37d,_0x4f83a6._0x112b68,0x447)]['toISOString'](),'modified':_0x5a59c2[_0x22082d(_0x4f83a6._0x8ce7bd,0x456,_0x4f83a6._0x1f881f,0x40a)][_0x50a917(0x213,0x1f9,_0x4f83a6._0x57975e,0x23c)](),'size':_0x5a59c2['size'],'mimeType':_0x173d70,'encoding':_0x50a917(_0x4f83a6._0x4772da,_0x4f83a6._0x420e56,0x30e,_0x4f83a6._0x3fe73a),..._0x3d0b6e?{'detail':_0x3d0b6e}:{}},_0x2cfe4d),void 0x0;}});}import _0x46bcb6 from'turndown';var USER_AGENT=_0x324926(0xe3,0xe6,0x1a4,0x14b),DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x944e0b){const _0x27054c={_0x5073ec:0x4cd,_0x5e97c2:0x46d,_0x1c39ee:0x42c,_0x3e7d29:0x45e,_0x10f084:0x13a,_0x2141b7:0x109,_0x43159f:0x3e,_0xb60925:0x17d,_0x376c1a:0x5ee,_0xa0e29c:0x4da,_0x3da3e4:0x41,_0x15b715:0x4,_0x3a0038:0x4ee,_0x430ad5:0x577,_0x1d8532:0x10c,_0x5b415a:0xc0},_0x643d6={_0x4ecd78:0x21f,_0x1eb2bb:0x10d,_0x1f1494:0x161};let _0x3610cb;try{_0x3610cb=new URL(_0x944e0b);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x944e0b});}function _0x5f4658(_0x23b16d,_0x5a3683,_0x50b0a2,_0x406a46){return _0x22ef16(_0x5a3683,_0x406a46-_0x643d6._0x4ecd78,_0x50b0a2-_0x643d6._0x1eb2bb,_0x406a46-_0x643d6._0x1f1494);}function _0x495819(_0x183ae7,_0x686d79,_0x179014,_0x2f5252){return _0x22ef16(_0x686d79,_0x183ae7- -0x188,_0x179014-0x1ad,_0x2f5252-0xce);}if(_0x3610cb[_0x5f4658(_0x27054c._0x5073ec,0x46f,_0x27054c._0x5e97c2,0x4e1)]!==_0x5f4658(0x3e0,_0x27054c._0x1c39ee,_0x27054c._0x3e7d29,0x3c7)&&_0x3610cb[_0x495819(_0x27054c._0x10f084,_0x27054c._0x2141b7,_0x27054c._0x43159f,_0x27054c._0xb60925)]!==_0x495819(-0xb0,-0x1a0,0x79,-0x180))throw new ToolExecutionError(_0x5f4658(_0x27054c._0x376c1a,_0x27054c._0xa0e29c,0x4ee,0x4d2),{'url':_0x944e0b});if(_0x3610cb[_0x495819(0x7f,0x41,_0x27054c._0x3da3e4,-_0x27054c._0x15b715)]||_0x3610cb['password'])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x3610cb[_0x5f4658(_0x27054c._0x3a0038,_0x27054c._0x430ad5,0x49c,0x4e1)]+'//'+_0x3610cb['host']+_0x3610cb[_0x495819(_0x27054c._0x1d8532,0x183,_0x27054c._0x43159f,_0x27054c._0x5b415a)]});return _0x3610cb;}function parseContentLength(_0x31c5d5){if(!_0x31c5d5)return void 0x0;const _0x5832fe=Number(_0x31c5d5);return Number['isFinite'](_0x5832fe)&&_0x5832fe>=0x0?_0x5832fe:void 0x0;}function createTimeoutSignal(_0x3cadc7,_0x40fa5c){const _0x4338a9={_0x36d915:0xeb,_0x486e61:0x1b0,_0x19d515:0xfc,_0x3b89c5:0x122,_0x2bbea6:0x86,_0x4e76b9:0x169,_0x57c7af:0x1db},_0x1a0f2c={_0x55b319:0x58d,_0x2f93af:0x543,_0x4c3c39:0x24b,_0x43d758:0x366,_0x2d620a:0x26e},_0x2a3176={_0x52ed49:0x4d},_0xaf74a8=new AbortController();function _0x203bad(_0x24213f,_0x547a8f,_0x37074d,_0x543622){return _0x324926(_0x547a8f-0x1d0,_0x24213f,_0x37074d-0xa7,_0x543622-0xa3);}const _0x1f49c2=setTimeout(()=>_0xaf74a8[_0x203bad(0x249,0x169,0x1ae,0x110)](new Error('Fetch\x20timed\x20out')),_0x40fa5c),_0x45713d=()=>_0xaf74a8[_0x5359c4(0x15e,0x9c,0x128,0x20f)](_0x3cadc7[_0x5359c4(0xe3,0x86,0x1b2,0x27)]);function _0x5359c4(_0x31b885,_0x2ccb59,_0xab6d9f,_0x828324){return _0x324926(_0x31b885-0x1c5,_0x828324,_0xab6d9f-_0x2a3176._0x52ed49,_0x828324-0xa8);}return _0x3cadc7[_0x203bad(0x118,0xa6,0x1c4,_0x4338a9._0x36d915)]?_0xaf74a8['abort'](_0x3cadc7[_0x203bad(_0x4338a9._0x486e61,0xee,0xea,_0x4338a9._0x19d515)]):_0x3cadc7[_0x5359c4(0xb0,_0x4338a9._0x3b89c5,0x1a2,0x1a4)](_0x203bad(_0x4338a9._0x2bbea6,_0x4338a9._0x4e76b9,_0x4338a9._0x57c7af,0xae),_0x45713d,{'once':!![]}),{'signal':_0xaf74a8['signal'],'cleanup':()=>{const _0x17cb87={_0x29c026:0x28d,_0x1a62c3:0x1b},_0x42d270={_0x4debfc:0x1fd,_0xe292ab:0xb2};function _0x187bf7(_0x2d2e38,_0x56646c,_0x4fa5dd,_0x5088ca){return _0x203bad(_0x2d2e38,_0x56646c-_0x42d270._0x4debfc,_0x4fa5dd-0xef,_0x5088ca-_0x42d270._0xe292ab);}function _0x42afbb(_0x54cfb5,_0x1dbf6a,_0x432dd7,_0x3a5a72){return _0x203bad(_0x432dd7,_0x1dbf6a-_0x17cb87._0x29c026,_0x432dd7-_0x17cb87._0x1a62c3,_0x3a5a72-0x15b);}clearTimeout(_0x1f49c2),_0x3cadc7[_0x187bf7(0x57e,0x4eb,_0x1a0f2c._0x55b319,_0x1a0f2c._0x2f93af)](_0x187bf7(_0x1a0f2c._0x4c3c39,_0x1a0f2c._0x43d758,0x3ea,_0x1a0f2c._0x2d620a),_0x45713d);}};}function createWebFetchTool(_0xcaf1b3={}){const _0x311e44={_0x482fba:0x24d,_0x3585de:0x26f,_0xe28312:0x320,_0x33eec5:0x157,_0x2bea99:0x30d,_0x403322:0x386,_0x2cdabd:0x313,_0x424e77:0x14d,_0x814c47:0x287,_0x5cfbb9:0x37f,_0x3995f5:0x1cb,_0x34d684:0x3f6,_0xaeafa2:0x286,_0x5ba235:0x21f,_0xdf9c7:0x2a3,_0x333eff:0x31a,_0x321f68:0x475,_0x2e998e:0x3a3,_0x2b691f:0x3c2,_0x150bab:0x39a,_0x353514:0x2bf,_0x1282ed:0x2c0},_0x3aad01={_0x13c93d:0x3be,_0x1f3cb9:0x2b0,_0x55df53:0x26f,_0x1f9979:0x161,_0x511bda:0x12d,_0x58f6fe:0x2c4,_0x1e4c9c:0x4a0,_0x54c46d:0x225,_0x2ba05a:0x300,_0x1b489b:0x299,_0x1f0d28:0x44e,_0x396cfd:0x29d,_0x471217:0x342,_0x363ffb:0x2f7,_0x5cc174:0x3c0,_0x2a9a88:0x3fe,_0x3a46dd:0x56a,_0x5eeb2c:0x371,_0x5b25eb:0x4d7,_0x1c0403:0x4ce,_0x8eb19b:0x584,_0x165dd2:0x2ac,_0x2b70ba:0x2b4,_0x2bcebd:0x214,_0xfb6afb:0x412,_0x4b0c61:0x3c0,_0x1c5c10:0x4f1,_0x433054:0x3bf,_0x5ee7d3:0x3e4,_0x594251:0x4f2,_0x2cab00:0x5bb,_0x1f8fb1:0x4ca,_0x178b80:0x1df,_0x208c57:0x27b,_0x4952de:0x256,_0x4a0b8e:0x2ce,_0x32a1a0:0x472,_0x4b90f0:0x4c2,_0x5263ee:0x455,_0x311207:0x51d,_0x3331d8:0x2ea,_0x1d6358:0x3ec,_0x32792c:0x296,_0x126e7e:0x4c9,_0x10ca46:0x562,_0x3b62e1:0x448},_0x3490d0={_0x66183e:0x62,_0x134f2d:0x1a2},_0xf703c3={_0xe4f224:0x11d},_0x44577b={_0x2dfb6d:0x33};function _0x41440d(_0x5ecc3b,_0x5d96cb,_0x577af9,_0x2acbc0){return _0x22ef16(_0x5d96cb,_0x2acbc0-_0x44577b._0x2dfb6d,_0x577af9-0xbd,_0x2acbc0-0x74);}const _0x502872=_0xcaf1b3[_0x2b1679(0x193,_0x311e44._0x482fba,0x2bb,0x294)]??_0x41440d(_0x311e44._0x3585de,0x32f,0x336,_0x311e44._0xe28312),_0x57155a=_0xcaf1b3[_0x41440d(0x1f5,0x183,0xe6,_0x311e44._0x33eec5)]??DEFAULT_MAX_BYTES2,_0x55e2b1=_0xcaf1b3[_0x41440d(_0x311e44._0x2bea99,0x2f4,0x126,0x23f)]??DEFAULT_TIMEOUT_MS2;function _0x2b1679(_0x6a3eed,_0x518a1a,_0x208e68,_0x49655f){return _0x22ef16(_0x518a1a,_0x49655f-_0xf703c3._0xe4f224,_0x208e68-0x1b9,_0x49655f-0x9b);}const _0x4262cd=new _0x46bcb6({'headingStyle':_0x41440d(_0x311e44._0x403322,0x139,_0x311e44._0x2cdabd,0x25e),'codeBlockStyle':_0x41440d(0x1a6,0x20,_0x311e44._0x424e77,0x125),'bulletListMarker':'-'});return _0x4262cd[_0x41440d(0x1df,0x2d0,0x2b0,_0x311e44._0x814c47)]([_0x2b1679(_0x311e44._0x5cfbb9,0x45b,0x34e,0x365),'style',_0x41440d(0x28c,0x233,0x1c7,0x27f),_0x41440d(0x2ea,0xb1,0x2bd,_0x311e44._0x3995f5),'nav',_0x2b1679(0x1da,0x31b,_0x311e44._0x34d684,0x2f5),_0x41440d(0x391,_0x311e44._0xaeafa2,0x199,0x26c),_0x41440d(0x1f4,_0x311e44._0x5ba235,0x21b,_0x311e44._0xdf9c7)]),defineTool({'name':_0x502872,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x2b1679(0x2fe,_0x311e44._0x333eff,_0x311e44._0x321f68,_0x311e44._0x2e998e),'properties':{'description':{'type':_0x2b1679(_0x311e44._0x2b691f,_0x311e44._0x150bab,0x2e5,0x3aa)},'url':{'type':_0x41440d(0x355,0x230,_0x311e44._0x353514,_0x311e44._0x1282ed)}},'required':['url']},async *'execute'(_0x34f608,_0xbc502a){const _0x46b27b={_0x3d20a7:0x100,_0x352801:0xfd},_0x468f27=assertFetchableUrl(_0x34f608['url'])[_0x483372(0x20e,_0x3aad01._0x13c93d,0x1fb,_0x3aad01._0x1f3cb9)]();if(_0xbc502a['signal'][_0x49d84a(0x393,0x455,_0x3aad01._0x55df53,0x39d)])throw new ToolExecutionError(_0x49d84a(0x42e,0x551,0x3e7,0x3d3),{'url':_0x468f27});const _0x4a2043=createTimeoutSignal(_0xbc502a['signal'],_0x55e2b1);function _0x483372(_0x48576b,_0x2777e9,_0x2b0ad9,_0x554506){return _0x41440d(_0x48576b-0x7c,_0x2777e9,_0x2b0ad9-_0x46b27b._0x3d20a7,_0x554506-_0x46b27b._0x352801);}let _0x445ff8='';function _0x49d84a(_0xb85e7a,_0x539ed8,_0x29b3b0,_0x269516){return _0x2b1679(_0xb85e7a-0x1ec,_0x269516,_0x29b3b0-_0x3490d0._0x66183e,_0xb85e7a-_0x3490d0._0x134f2d);}let _0x51fc78=0x0,_0x50c2e8;try{const _0x152279=await fetch(_0x468f27,{'headers':{'User-Agent':USER_AGENT},'signal':_0x4a2043['signal']});if(!_0x152279['ok'])throw new ToolExecutionError('HTTP\x20'+_0x152279['status']+'\x20'+_0x152279[_0x483372(_0x3aad01._0x1f9979,_0x3aad01._0x511bda,_0x3aad01._0x58f6fe,0x212)],{'url':_0x468f27,'statusCode':_0x152279[_0x49d84a(0x4d7,0x566,0x4f1,_0x3aad01._0x1e4c9c)]});const _0x1ff4ac=parseContentLength(_0x152279[_0x483372(_0x3aad01._0x54c46d,0x384,0x286,_0x3aad01._0x2ba05a)]['get']('content-length'));if(_0x1ff4ac!==void 0x0&&_0x1ff4ac>_0x57155a)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0x1ff4ac+_0x49d84a(0x37f,_0x3aad01._0x1b489b,0x4a3,_0x3aad01._0x1f0d28)+_0x57155a+_0x483372(_0x3aad01._0x396cfd,_0x3aad01._0x471217,_0x3aad01._0x363ffb,_0x3aad01._0x5cc174),{'url':_0x468f27,'statusCode':_0x152279['status'],'contentLength':_0x1ff4ac,'maxBytes':_0x57155a});_0x445ff8=_0x152279[_0x49d84a(0x48f,_0x3aad01._0x2a9a88,0x487,0x401)][_0x49d84a(0x564,0x59e,0x624,0x46a)]('content-type')??'',_0x51fc78=_0x152279[_0x49d84a(0x4d7,_0x3aad01._0x3a46dd,0x4c8,0x48e)],_0x50c2e8=await _0x152279[_0x483372(0x43d,0x498,0x3ae,_0x3aad01._0x5eeb2c)]();}catch(_0x59f07c){if(_0x59f07c instanceof ToolExecutionError)throw _0x59f07c;const _0x3d43cd=_0x59f07c instanceof Error?_0x59f07c[_0x49d84a(0x580,_0x3aad01._0x5b25eb,_0x3aad01._0x1c0403,_0x3aad01._0x8eb19b)]:String(_0x59f07c);throw new ToolExecutionError(_0x3d43cd,{'url':_0x468f27});}finally{_0x4a2043['cleanup']();}if(Buffer[_0x483372(0x27b,0x1bd,0x342,_0x3aad01._0x165dd2)](_0x50c2e8,_0x483372(0x278,0x3ba,_0x3aad01._0x2b70ba,0x2ff))>_0x57155a)throw new ToolExecutionError(_0x483372(0x222,0x2da,0x1a1,_0x3aad01._0x2bcebd)+_0x57155a+_0x483372(_0x3aad01._0xfb6afb,0x4d8,0x325,_0x3aad01._0x4b0c61),{'url':_0x468f27,'statusCode':_0x51fc78,'maxBytes':_0x57155a});const _0x3fc7c3=new Date()[_0x483372(0x458,_0x3aad01._0x1c5c10,_0x3aad01._0x433054,_0x3aad01._0x5ee7d3)]();let _0x1f239b,_0x555aaf;if(_0x445ff8[_0x49d84a(0x44e,0x39b,0x4cb,0x4ce)](_0x49d84a(0x40c,_0x3aad01._0x594251,0x467,0x3d1)))_0x1f239b=_0x49d84a(0x4cf,0x4e6,_0x3aad01._0x2cab00,_0x3aad01._0x1f8fb1)+_0x50c2e8+_0x483372(_0x3aad01._0x178b80,0x217,_0x3aad01._0x208c57,0x1fd),_0x555aaf=_0x483372(0x293,_0x3aad01._0x4952de,0x3ab,_0x3aad01._0x4a0b8e);else _0x445ff8[_0x49d84a(_0x3aad01._0x1f0d28,0x383,_0x3aad01._0x32a1a0,0x445)]('text/html')?(_0x1f239b=_0x4262cd['turndown'](_0x50c2e8),_0x555aaf=_0x49d84a(_0x3aad01._0x4b90f0,0x425,_0x3aad01._0x5263ee,_0x3aad01._0x311207)):(_0x1f239b=_0x50c2e8,_0x555aaf=_0x483372(_0x3aad01._0x3331d8,_0x3aad01._0x1d6358,_0x3aad01._0x32792c,_0x3aad01._0x5eeb2c));return yield createToolOutput(_0x1f239b,{'url':_0x468f27,'contentType':_0x445ff8,'statusCode':_0x51fc78,'format':_0x555aaf,'size':_0x50c2e8[_0x49d84a(_0x3aad01._0x126e7e,_0x3aad01._0x10ca46,0x587,_0x3aad01._0x3b62e1)],'fetchedAt':_0x3fc7c3}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x22ef16(0x21,0xc1,-0x44,0xfb);function normalizeUrl(_0x29834a){const _0x1cba76={_0xd7eb7d:0x641,_0x4060a7:0x281,_0x3bff72:0x2c8,_0x166260:0x38e,_0x465b23:0x439,_0x1c7871:0x356,_0x1ebe0e:0x316,_0x4d058c:0x37e,_0x1504fc:0x2c5,_0x19d9d8:0x339,_0x43ca09:0x412,_0x57ceac:0x446,_0xf9184a:0x384,_0x39488c:0x36f,_0x3bfefd:0x3dd},_0x37e400={_0x498014:0x1bc,_0x113996:0x33},_0x51fb21={_0x52b1ab:0x180};function _0x47e595(_0x5cc967,_0x14267d,_0x54cbb1,_0x5c5db9){return _0x22ef16(_0x54cbb1,_0x5cc967-0x1f6,_0x54cbb1-0xf0,_0x5c5db9-_0x51fb21._0x52b1ab);}function _0x38af5a(_0x4d1338,_0x2b971a,_0x319164,_0x347157){return _0x22ef16(_0x4d1338,_0x319164-0x214,_0x319164-_0x37e400._0x498014,_0x347157-_0x37e400._0x113996);}try{const _0x914d54=new URL(_0x29834a);for(const _0x28846e of[_0x47e595(0x513,0x5cf,0x46f,_0x1cba76._0xd7eb7d),'utm_medium','utm_campaign',_0x38af5a(_0x1cba76._0x4060a7,_0x1cba76._0x3bff72,_0x1cba76._0x166260,_0x1cba76._0x465b23),'utm_content',_0x38af5a(0x1f9,_0x1cba76._0x1c7871,_0x1cba76._0x1ebe0e,0x302),_0x47e595(0x322,_0x1cba76._0x4d058c,_0x1cba76._0x1504fc,0x396),_0x47e595(_0x1cba76._0x19d9d8,0x2f5,0x23c,_0x1cba76._0x43ca09),_0x47e595(_0x1cba76._0x57ceac,0x463,0x376,0x4cc)]){_0x914d54['searchParams'][_0x38af5a(_0x1cba76._0xf9184a,0x502,0x48d,0x480)](_0x28846e);}return _0x914d54[_0x38af5a(_0x1cba76._0x39488c,_0x1cba76._0x3bfefd,0x394,0x48d)]();}catch{return _0x29834a;}}function cseDateRestrict(_0x1d5b0f){const _0x2d7c40={_0x38af2d:0xcd,_0x28ba6c:0x127,_0x3c7b5e:0x1f7,_0x25685c:0x286,_0x5a6ed7:0x2ac},_0x5bcb44={_0x28a1d2:0x3b5,_0x330aeb:0x1ae,_0x1262f1:0xc4},_0x532b0b={_0x367df2:0x3e2};function _0x414920(_0x4bd1b1,_0x817edc,_0xbfd64a,_0x5cfd5f){return _0x22ef16(_0x4bd1b1,_0x5cfd5f- -_0x532b0b._0x367df2,_0xbfd64a-0x1,_0x5cfd5f-0xf1);}if(_0x1d5b0f<=0x0)return void 0x0;if(_0x1d5b0f<=0x1e)return'd'+Math[_0x414920(-0x223,-_0x2d7c40._0x38af2d,-0x15b,-0x1e7)](0x1,Math[_0x41b886(-0x24c,-_0x2d7c40._0x28ba6c,-_0x2d7c40._0x3c7b5e,-0x249)](_0x1d5b0f));if(_0x1d5b0f<=0x16d)return'm'+Math[_0x414920(-_0x2d7c40._0x25685c,-0x1d8,-_0x2d7c40._0x5a6ed7,-0x2b5)](_0x1d5b0f/0x1e);function _0x41b886(_0x46c469,_0x251743,_0x3a86f7,_0x2c7ce0){return _0x22ef16(_0x251743,_0x3a86f7- -_0x5bcb44._0x28a1d2,_0x3a86f7-_0x5bcb44._0x330aeb,_0x2c7ce0-_0x5bcb44._0x1262f1);}return'y'+Math['ceil'](_0x1d5b0f/0x16d);}function addSiteFilters(_0x45b3a2,_0x36ae62){const _0x7d9b85={_0x4c540e:0x1c,_0x26c2e:0x33,_0x34c433:0xf8,_0xbf65ec:0x3d,_0x46013d:0xda,_0x2da360:0x93,_0xeca2fc:0x17a,_0x386bdf:0x2c0,_0x18b83b:0x19f,_0x4abe7d:0x26e},_0x31ebad={_0x2d76e3:0x53},_0x46c8d3={_0x42a396:0x198,_0x1b57ed:0x106};function _0x564ec4(_0xf4cd05,_0x28fac7,_0x2e48ee,_0x41f4cc){return _0x324926(_0x2e48ee- -_0x46c8d3._0x42a396,_0xf4cd05,_0x2e48ee-0x19b,_0x41f4cc-_0x46c8d3._0x1b57ed);}function _0x3c9f35(_0x5e67da,_0x185997,_0x3fb5cd,_0x450930){return _0x324926(_0x5e67da- -0x28,_0x450930,_0x3fb5cd-_0x31ebad._0x2d76e3,_0x450930-0x15e);}if(_0x36ae62[_0x3c9f35(-_0x7d9b85._0x4c540e,-_0x7d9b85._0x26c2e,_0x7d9b85._0x34c433,-_0x7d9b85._0xbf65ec)]===0x0)return _0x45b3a2['trim']();return(_0x45b3a2+'\x20('+_0x36ae62['map'](_0x28051f=>_0x3c9f35(-0xff,-0x68,-0xb2,-0xf6)+_0x28051f)[_0x3c9f35(-_0x7d9b85._0x46013d,-_0x7d9b85._0x2da360,0x1c,-_0x7d9b85._0xeca2fc)]('\x20OR\x20')+')')[_0x564ec4(-_0x7d9b85._0x386bdf,-0xd5,-_0x7d9b85._0x18b83b,-_0x7d9b85._0x4abe7d)]();}function normalizeType(_0x372edd){const _0x56ab8d={_0x254fba:0x380,_0x52495e:0x404,_0x1338b0:0x24b,_0x3274d5:0x355},_0x2e13b6={_0x4033e0:0x432,_0x3e95f6:0x99},_0x112762={_0x5c7df2:0x8e,_0x3b4375:0x165,_0x139238:0xa8};function _0xaec035(_0xb82538,_0x535bfc,_0x15ceb0,_0x15f71a){return _0x22ef16(_0x15ceb0,_0x15f71a-_0x112762._0x5c7df2,_0x15ceb0-_0x112762._0x3b4375,_0x15f71a-_0x112762._0x139238);}function _0x496aed(_0x77431d,_0x51ec13,_0x676a77,_0x1b812c){return _0x324926(_0x51ec13-_0x2e13b6._0x4033e0,_0x1b812c,_0x676a77-0x25,_0x1b812c-_0x2e13b6._0x3e95f6);}return _0x372edd===_0xaec035(0x355,0x35b,0x4af,_0x56ab8d._0x254fba)?_0xaec035(0x3f7,0x282,_0x56ab8d._0x52495e,0x380):_0xaec035(0x406,_0x56ab8d._0x1338b0,0x456,_0x56ab8d._0x3274d5);}async function fetchJson(_0x5292b5,_0x1bcb40){const _0x2e1268={_0x414779:0x36f,_0x5f48c3:0x4af,_0x3ba37b:0x418,_0x48eb5f:0x3c6,_0x317094:0x202,_0x2ef354:0x267,_0x2cd286:0x380,_0x1411a7:0x44a,_0x544edc:0x448,_0x44aaa2:0x3ba,_0x570edc:0x324,_0x5605a4:0x1c7,_0x209b7e:0x284,_0x34239d:0x236,_0x2f0328:0x173,_0x2acc25:0x46},_0x2bcacc={_0x598d39:0x113,_0x395b59:0x1e8};function _0x494d1f(_0x5c6d9a,_0x1f6a90,_0x4ce69a,_0xcb365f){return _0x324926(_0x1f6a90-0x3a0,_0x5c6d9a,_0x4ce69a-0x32,_0xcb365f-0x162);}const _0x312f0f=await fetch(_0x5292b5,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x494d1f(0x1dd,0x2ef,0x1f5,0x3ef)},'signal':_0x1bcb40});if(!_0x312f0f['ok']){await _0x312f0f[_0x494d1f(_0x2e1268._0x414779,0x3a8,0x314,_0x2e1268._0x5f48c3)]?.[_0x494d1f(0x54b,0x45e,_0x2e1268._0x3ba37b,_0x2e1268._0x48eb5f)]()[_0x494d1f(_0x2e1268._0x317094,_0x2e1268._0x2ef354,0x21f,_0x2e1268._0x2cd286)](()=>void 0x0);throw new ToolExecutionError(_0x494d1f(0x4e8,_0x2e1268._0x1411a7,_0x2e1268._0x544edc,0x51b)+_0x312f0f[_0x494d1f(0x360,_0x2e1268._0x44aaa2,_0x2e1268._0x570edc,0x301)]+'\x20'+_0x312f0f[_0x494d1f(_0x2e1268._0x5605a4,_0x2e1268._0x209b7e,_0x2e1268._0x34239d,0x2e3)],{'statusCode':_0x312f0f['status']});}function _0x279b32(_0x1a840f,_0x287a36,_0x2838da,_0x49e90d){return _0x324926(_0x2838da- -_0x2bcacc._0x598d39,_0x287a36,_0x2838da-0x5,_0x49e90d-_0x2bcacc._0x395b59);}return await _0x312f0f[_0x279b32(-0x278,-0x1a3,-_0x2e1268._0x2f0328,-_0x2e1268._0x2acc25)]();}async function hydrateResults(_0x60ecf9,_0x1ad353,_0x3b5c9f){const _0x1ce703={_0xa08d19:0x46f,_0xe57096:0x38c,_0x352196:0x44a,_0x53c5e6:0x3c3,_0x4a7937:0x56f,_0x202c56:0x4b2,_0x515ceb:0x585,_0x1760fd:0x3ea,_0x2eae00:0x248,_0x170130:0x434,_0x50e37c:0x344,_0x3e3675:0x40d},_0x4ca454={_0x3787cf:0xc5,_0x41da82:0x1cf},_0xda5378={_0x2f0139:0x38e,_0xbf28c3:0x397,_0x4dc576:0x294,_0x2c5ce8:0x520,_0x5f0357:0x3f3,_0x6c47d8:0x453,_0x5b43b5:0x39e,_0x22ce6a:0x4d4,_0x3c5d81:0x433,_0x204503:0x22a,_0x3bc588:0x12e,_0x478a1c:0x112,_0x5a957a:0x329,_0x2c1969:0x414,_0x26b594:0x452,_0x5403ea:0x191,_0x2f106c:0x1d2,_0x342836:0x110,_0x8115ca:0x4e7,_0x2b4b9d:0x5cc,_0x1ab35f:0x509,_0x5ab559:0x3aa,_0x74d6ff:0x18c,_0x363593:0x37c,_0x218428:0x23e,_0x445a32:0x124,_0x2d6f71:0x366,_0x150f68:0x267,_0x23e586:0x147,_0x53c432:0x4f2,_0x53039c:0x3ea,_0x479177:0x46b,_0x1e2b29:0x3f5,_0x4015a9:0x309,_0xc292ee:0x3d6,_0x513b92:0x3f5,_0x26db17:0x356,_0x230bb2:0x2fe,_0x45bbdc:0x40d,_0x217ab1:0x3fe,_0x408fbd:0x415,_0x405f46:0x2af,_0x11078f:0x23e,_0x5ea576:0x2d6,_0x149e71:0x1d5,_0x309289:0x1fe,_0x12e6c4:0x2f0,_0xd809e0:0x1c1,_0x6e1a04:0x37d,_0x5e983d:0x24e,_0x231b47:0x15a,_0x8a37b3:0x1ec,_0x203342:0x208,_0x5361cc:0x1ed},_0x2b79e3={_0x2a2368:0x190},_0x22a85d=await Promise[_0x357c64(_0x1ce703._0xa08d19,0x3f9,_0x1ce703._0xe57096,0x3ac)](_0x60ecf9[_0x357c64(0x479,0x3df,0x59c,0x54a)](0x0,0xa)[_0x357c64(_0x1ce703._0x352196,0x4a4,0x555,_0x1ce703._0x53c5e6)](async _0x139a43=>{const _0x2a4a4f={_0x1a9a70:0x125,_0xcf6e72:0x26};function _0x3433b1(_0x56e2d0,_0x192968,_0x4e37ea,_0x5ce2d5){return _0x357c64(_0x56e2d0- -0x50e,_0x4e37ea,_0x4e37ea-_0x2b79e3._0x2a2368,_0x5ce2d5-0x1f3);}function _0x598f48(_0x46bc99,_0x34e851,_0x58854b,_0x59aeb8){return _0x357c64(_0x46bc99-_0x2a4a4f._0x1a9a70,_0x34e851,_0x58854b-_0x2a4a4f._0xcf6e72,_0x59aeb8-0x176);}try{const _0x49cfc8=await fetch(_0x139a43['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x1ad353,'Accept':'text/html'},'signal':_0x3b5c9f});if(!_0x49cfc8['ok'])return _0x139a43;const _0x1653fb=await _0x49cfc8['text'](),_0x45841e=load(_0x1653fb),_0x55a906=_0x45841e(_0x598f48(_0xda5378._0x2f0139,_0xda5378._0xbf28c3,0x44e,_0xda5378._0x4dc576))[_0x598f48(0x3f5,0x470,0x4b8,_0xda5378._0x2c5ce8)](_0x598f48(_0xda5378._0x5f0357,_0xda5378._0x6c47d8,0x49c,_0xda5378._0x5b43b5))||_0x45841e(_0x598f48(0x3e5,_0xda5378._0x22ce6a,0x2e9,_0xda5378._0x3c5d81))[_0x3433b1(-_0xda5378._0x204503,-_0xda5378._0x3bc588,-_0xda5378._0x478a1c,-_0xda5378._0x5a957a)]()[_0x598f48(0x4ec,0x5f2,_0xda5378._0x2c1969,_0xda5378._0x26b594)]()[_0x3433b1(-_0xda5378._0x5403ea,-_0xda5378._0x2f106c,-_0xda5378._0x342836,-0x13a)](),_0x1cb2e0=_0x45841e(_0x598f48(_0xda5378._0x8115ca,_0xda5378._0x2b4b9d,0x5dc,_0xda5378._0x1ab35f))[_0x598f48(0x3f5,0x4a4,0x39a,_0xda5378._0x5ab559)](_0x3433b1(-0x240,-_0xda5378._0x74d6ff,-0x21d,-0x1c0))||_0x45841e(_0x598f48(0x3b4,_0xda5378._0x363593,0x383,0x2a0))[_0x3433b1(-_0xda5378._0x218428,-0x17b,-_0xda5378._0x445a32,-_0xda5378._0x2d6f71)]('content')||_0x139a43[_0x3433b1(-_0xda5378._0x150f68,-0x33f,-_0xda5378._0x23e586,-0x2ac)],_0x274279=_0x45841e(_0x598f48(0x4fa,_0xda5378._0x53c432,_0xda5378._0x53039c,_0xda5378._0x479177))[_0x598f48(_0xda5378._0x1e2b29,_0xda5378._0x4015a9,_0xda5378._0xc292ee,0x2f3)]('content')||_0x45841e('time[datetime]')[_0x598f48(_0xda5378._0x513b92,_0xda5378._0x26db17,0x513,_0xda5378._0x230bb2)](_0x598f48(_0xda5378._0x45bbdc,0x398,0x455,0x49a))||_0x139a43[_0x598f48(_0xda5378._0x217ab1,_0xda5378._0x408fbd,0x35b,0x49e)],_0x5df06a=_0x45841e(_0x3433b1(-_0xda5378._0x405f46,-0x3bb,-0x2b7,-0x1a2))[_0x3433b1(-_0xda5378._0x11078f,-_0xda5378._0x5ea576,-_0xda5378._0x149e71,-_0xda5378._0x309289)](_0x3433b1(-0x29c,-_0xda5378._0x12e6c4,-_0xda5378._0xd809e0,-_0xda5378._0x6e1a04));return{..._0x139a43,'title':_0x55a906||_0x139a43[_0x3433b1(-_0xda5378._0x5e983d,-0x25b,-0x1a2,-0x357)],'snippet':_0x1cb2e0,'url':_0x5df06a?normalizeUrl(new URL(_0x5df06a,_0x139a43[_0x3433b1(-_0xda5378._0x231b47,-0x25e,-0x181,-_0xda5378._0x8a37b3)])[_0x3433b1(-_0xda5378._0x203342,-0x22e,-_0xda5378._0x5361cc,-0x2de)]()):_0x139a43['url'],'publishedAt':_0x274279};}catch{return _0x139a43;}}));function _0x125495(_0x40b6e8,_0x37b131,_0x49d39c,_0x4336f6){return _0x324926(_0x4336f6-0x26a,_0x40b6e8,_0x49d39c-0x5d,_0x4336f6-0x42);}const _0x289228=new Map(_0x60ecf9[_0x357c64(0x479,_0x1ce703._0x4a7937,_0x1ce703._0x202c56,_0x1ce703._0x515ceb)](0x0,0xa)[_0x125495(_0x1ce703._0x1760fd,0x24a,_0x1ce703._0x2eae00,0x330)]((_0x5f2e99,_0x2d60e6)=>[_0x5f2e99[_0x125495(0x3b8,0x272,0x2e0,0x29a)],_0x22a85d[_0x2d60e6]]));function _0x357c64(_0x46901e,_0x2fb6e8,_0x188f64,_0x2b9412){return _0x22ef16(_0x2fb6e8,_0x46901e-0x186,_0x188f64-_0x4ca454._0x3787cf,_0x2b9412-_0x4ca454._0x41da82);}return _0x60ecf9[_0x125495(_0x1ce703._0x170130,_0x1ce703._0x50e37c,_0x1ce703._0x3e3675,0x330)](_0x238dcf=>_0x289228[_0x357c64(0x42b,0x53d,0x37d,0x439)](_0x238dcf['url'])??_0x238dcf);}function formatResults(_0x498a8b){const _0x5907c1={_0x4c15a9:0x53d,_0x2faad4:0x5b9,_0x2d5d28:0x570,_0x229b7a:0x396,_0x15c756:0x477,_0x44ae3b:0x311,_0x5695fb:0x489,_0x4aa970:0x485,_0x4f26c6:0x3e4,_0x3c8dfc:0x396,_0x473c26:0x411,_0x55103b:0x4d3,_0x557bc0:0x427,_0x206e33:0x3f7,_0x5c281f:0x487,_0x4cc0bc:0x4bb,_0x13c51b:0x68,_0x4171df:0x31,_0x33df2b:0x5d},_0x1ec3da={_0x252590:0x198};if(_0x498a8b['length']===0x0)return'No\x20results\x20found.';return _0x498a8b['map'](_0x1e6314=>{function _0x584224(_0x4563fa,_0x567483,_0x135685,_0x4b3f7a){return _0x7ca6(_0x4563fa- -_0x1ec3da._0x252590,_0x4b3f7a);}function _0x276dcc(_0x5bc4f1,_0xe8f59d,_0x57f3a5,_0x162d69){return _0x7ca6(_0x5bc4f1-0x2ad,_0xe8f59d);}const _0xb33afd=[_0x1e6314[_0x276dcc(_0x5907c1._0x4c15a9,_0x5907c1._0x2faad4,_0x5907c1._0x2d5d28,0x59d)][_0x276dcc(0x41e,_0x5907c1._0x229b7a,_0x5907c1._0x15c756,_0x5907c1._0x44ae3b)]+'.\x20'+_0x1e6314[_0x276dcc(0x3cb,0x4c3,_0x5907c1._0x5695fb,0x448)],_0x1e6314['url']];if(_0x1e6314['snippet'])_0xb33afd['push'](_0x1e6314[_0x276dcc(0x3b2,0x28b,_0x5907c1._0x4aa970,0x37b)]);if(_0x1e6314[_0x276dcc(_0x5907c1._0x4f26c6,_0x5907c1._0x3c8dfc,_0x5907c1._0x473c26,_0x5907c1._0x55103b)])_0xb33afd['push'](_0x276dcc(0x3c2,0x2da,_0x5907c1._0x557bc0,_0x5907c1._0x206e33)+_0x1e6314[_0x276dcc(0x3e4,_0x5907c1._0x5c281f,0x3fd,_0x5907c1._0x4cc0bc)]);return _0xb33afd[_0x584224(-_0x5907c1._0x13c51b,-_0x5907c1._0x4171df,-0x191,_0x5907c1._0x33df2b)]('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x1c1d4e,_0xa357b2,_0x25315a){const _0x2dff09={_0x2450b4:0xbc,_0x4f9ba0:0xc6,_0x51b5d3:0x282,_0x2de4ec:0x1c9,_0x3f4062:0x2cb,_0x2b9d71:0x2f9,_0x5f4d56:0x257,_0x1a8c66:0x29e,_0x5421ba:0x133,_0x479bf2:0x254,_0x3a6e82:0xf7,_0x397198:0x2cf,_0x2c4de1:0x189,_0x3d6a03:0x26c,_0x21ee31:0xcb,_0x4cc2ee:0x122,_0x196698:0x22c,_0x4b4255:0x20e,_0xb825ec:0x223,_0x4a33df:0x390,_0x3a4b0c:0x24d,_0x3e7546:0x3bc,_0x330fd2:0x3a5,_0x1ae14b:0x2a3,_0x3bfbd6:0x229,_0x803823:0x223,_0x523f5b:0x2a5,_0x1f1324:0x2b0,_0x16fd9d:0x1b9,_0x45577b:0x27a,_0x3241f5:0x2a7,_0x1964e4:0x12d,_0x5f0b55:0xc8,_0x2f9457:0xf3,_0x2630af:0xd4,_0x1e209a:0xe,_0x17e28c:0xb9,_0x377d6a:0x162,_0x2ae688:0x1b5,_0x32ecc5:0x2e2,_0x4c1425:0xbc,_0x4c7e93:0x2a8,_0x13b133:0x2c6,_0x1390ce:0xaa,_0x59ffe6:0x7f,_0x4eec12:0x190,_0xb828a4:0xd2,_0x5ea737:0x3b7,_0x43fb4e:0x153,_0x1b1d77:0x1c2,_0x586426:0x1e3,_0x18d667:0x2d0,_0x182af9:0x2a9,_0x365392:0x263,_0x41a9cc:0x210,_0x40c469:0x262,_0x5d2514:0x1ab,_0x5e1c58:0x384,_0x315b73:0x90,_0x151c7a:0x19d,_0xf9caef:0x182,_0x248a26:0x1ea,_0x22cd8d:0x266,_0x486240:0x1cc,_0x5e92d0:0x13d,_0x30177b:0x1c0,_0x21f913:0x2e3,_0x4933e4:0x256,_0x501219:0x150,_0x9b46c3:0x1e6,_0x156b82:0x1ed,_0x495372:0x132,_0x45d316:0x1c4,_0x199fc0:0x9e,_0x396565:0x1fd,_0xa26838:0x31,_0x4d251a:0x1f1,_0x2a1fca:0x1ca,_0x344b26:0x17c,_0x5c8ba5:0x1d4,_0x5093d8:0x1e6,_0x575626:0x190,_0x21f472:0x9f,_0x2580b3:0x114,_0xd40838:0xe8,_0x40f810:0x1dd,_0x37a10f:0xa8,_0x459577:0x20d,_0x57412d:0x1cb},_0x13e448={_0xfa4146:0x390};function _0x139c00(_0x8c80e0,_0x469320,_0x27542e,_0x3379ee){return _0x22ef16(_0x8c80e0,_0x469320- -_0x13e448._0xfa4146,_0x27542e-0x120,_0x3379ee-0x197);}const _0x21da77=Math[_0x139c00(-_0x2dff09._0x2450b4,-0x195,-0x19b,-0x207)](0x1,Math['min'](0x32,_0xa357b2['count']));if(_0xa357b2['offset']+_0x21da77>0x64)throw new ToolExecutionError('Google\x20CSE\x20supports\x20at\x20most\x20the\x20first\x20100\x20results',{'offset':_0xa357b2['offset'],'count':_0x21da77,'maxResults':0x64});const _0x35abf5=cseDateRestrict(_0xa357b2[_0x139c00(-_0x2dff09._0x4f9ba0,-0x152,-0x110,-_0x2dff09._0x51b5d3)]);function _0x2cf3d0(_0x1a8123,_0x497313,_0x10116b,_0x340202){return _0x324926(_0x340202- -0x1d7,_0x497313,_0x10116b-0x16a,_0x340202-0x11e);}const _0x521906=addSiteFilters(_0xa357b2['query'],_0xa357b2[_0x139c00(-0x150,-_0x2dff09._0x2de4ec,-0xad,-_0x2dff09._0x3f4062)]);let _0x4e338b=0x0,_0x978b2d=_0xa357b2[_0x139c00(-_0x2dff09._0x2b9d71,-_0x2dff09._0x5f4d56,-0x213,-0x21b)]+0x1;const _0xcf5640=[];while(_0x4e338b<_0x21da77){const _0x421b71=Math[_0x2cf3d0(-_0x2dff09._0x1a8c66,-_0x2dff09._0x5421ba,-0x294,-_0x2dff09._0x479bf2)](0xa,_0x21da77-_0x4e338b),_0x150172=new URL(_0x139c00(-0x66,-_0x2dff09._0x3a6e82,-0x1cd,-0x55));_0x150172[_0x139c00(-_0x2dff09._0x397198,-0x25e,-0x334,-0x2c8)][_0x139c00(-0x17a,-0x281,-_0x2dff09._0x2c4de1,-_0x2dff09._0x3d6a03)](_0x139c00(-0x1f9,-_0x2dff09._0x21ee31,-0x52,-_0x2dff09._0x4cc2ee),_0x1c1d4e[_0x139c00(-_0x2dff09._0x196698,-_0x2dff09._0x4b4255,-0x2d1,-0x14c)]),_0x150172['searchParams'][_0x139c00(-_0x2dff09._0xb825ec,-0x281,-_0x2dff09._0x4a33df,-0x392)]('cx',_0x1c1d4e['googleCseCx']),_0x150172[_0x2cf3d0(-0x395,-_0x2dff09._0x3a4b0c,-_0x2dff09._0x3e7546,-0x2a3)]['set']('q',_0x521906),_0x150172[_0x2cf3d0(-_0x2dff09._0x330fd2,-0x2ff,-0x3c5,-_0x2dff09._0x1ae14b)][_0x2cf3d0(-0x2fa,-_0x2dff09._0x3bfbd6,-_0x2dff09._0x803823,-0x2c6)](_0x139c00(-0x35f,-_0x2dff09._0x523f5b,-_0x2dff09._0x1f1324,-0x387),String(_0x421b71)),_0x150172[_0x139c00(-_0x2dff09._0x16fd9d,-0x25e,-0x21b,-0x34d)]['set'](_0x2cf3d0(-_0x2dff09._0x45577b,-0x376,-0x258,-_0x2dff09._0x3241f5),String(_0x978b2d)),_0x150172['searchParams']['set'](_0x2cf3d0(-_0x2dff09._0x1964e4,-_0x2dff09._0x5f0b55,-_0x2dff09._0x2f9457,-_0x2dff09._0x2630af),_0xa357b2[_0x2cf3d0(_0x2dff09._0x1e209a,-_0x2dff09._0x17e28c,-_0x2dff09._0x377d6a,-0xd4)]?_0x2cf3d0(-0x330,-0x345,-0x35a,-0x2b0):_0x139c00(-0x2b2,-_0x2dff09._0x2ae688,-_0x2dff09._0x32ecc5,-0xcc));_0xa357b2[_0x2cf3d0(0x2d,-0x4f,-_0x2dff09._0x4c1425,-0xbe)]&&(_0x150172[_0x139c00(-0x2c3,-0x25e,-0x21d,-0x137)][_0x2cf3d0(-0x33c,-0x29a,-_0x2dff09._0x4c7e93,-_0x2dff09._0x13b133)]('hl',_0xa357b2['lang']),_0x150172['searchParams'][_0x2cf3d0(-0x2c6,-0x329,-0x2ed,-0x2c6)]('lr',_0x139c00(-0x219,-0x2cc,-0x277,-0x1ae)+_0xa357b2[_0x139c00(-0x12d,-0x79,_0x2dff09._0x1390ce,-_0x2dff09._0x59ffe6)]));if(_0xa357b2['region'])_0x150172[_0x139c00(-0x34d,-0x25e,-_0x2dff09._0x4eec12,-0x35c)]['set']('gl',_0xa357b2['region']['toUpperCase']());if(_0xa357b2[_0x2cf3d0(0x34,-0x101,0x55,-0xcc)]===_0x2cf3d0(-0xf6,-_0x2dff09._0xb828a4,-0x108,-0xe3))_0x150172['searchParams']['set'](_0x2cf3d0(-_0x2dff09._0x45577b,-0x176,-_0x2dff09._0x5ea737,-0x294),_0x139c00(-0x12b,-0x1a1,-_0x2dff09._0x43fb4e,-0x1ba));if(_0x35abf5)_0x150172[_0x139c00(-_0x2dff09._0x1b1d77,-0x25e,-_0x2dff09._0x586426,-0x130)][_0x2cf3d0(-0x1d5,-0x21e,-0x1a2,-0x2c6)](_0x139c00(-_0x2dff09._0x18d667,-0x1b3,-_0x2dff09._0x182af9,-_0x2dff09._0x365392),_0x35abf5);const _0x5b9978=await fetchJson(_0x150172[_0x139c00(-0x20a,-_0x2dff09._0x41a9cc,-0x303,-_0x2dff09._0x40c469)](),_0x25315a),_0x5d108d=_0x5b9978[_0x139c00(-0x2f8,-0x25b,-_0x2dff09._0x5d2514,-_0x2dff09._0x5e1c58)]??[];if(_0x5d108d['length']===0x0)break;const _0x2eafcb=_0x4e338b;for(let _0x39f458=0x0;_0x39f458<_0x5d108d['length'];_0x39f458++){const _0xa3a95b=_0x5d108d[_0x39f458];if(!_0xa3a95b)continue;const _0x2973f7=_0xa3a95b[_0x139c00(-_0x2dff09._0x315b73,-_0x2dff09._0x151c7a,-_0x2dff09._0xf9caef,-0xb1)]||_0xa3a95b[_0x2cf3d0(-0x27e,-_0x2dff09._0x248a26,-_0x2dff09._0x22cd8d,-0x1e6)]?.[_0x139c00(-_0x2dff09._0x486240,-_0x2dff09._0x5e92d0,-_0x2dff09._0x30177b,-0xa5)]||'',_0x3fa04b=_0xa3a95b[_0x139c00(-_0x2dff09._0x21f913,-_0x2dff09._0x4933e4,-_0x2dff09._0x501219,-0x332)]||_0xa3a95b[_0x2cf3d0(-0xd0,-0x1c5,-0x2c2,-_0x2dff09._0x9b46c3)]?.[_0x139c00(-_0x2dff09._0x156b82,-_0x2dff09._0x4933e4,-0x17d,-_0x2dff09._0x495372)]||_0x139c00(-0x122,-_0x2dff09._0x45d316,-_0x2dff09._0x199fc0,-_0x2dff09._0x396565),_0x59c4b3=_0xa3a95b[_0x139c00(-0x2dc,-0x26f,-0x35d,-0x352)]||_0xa3a95b[_0x2cf3d0(-_0x2dff09._0x2ae688,-_0x2dff09._0xa26838,-_0x2dff09._0x4d251a,-0x149)]?.['replace'](/<[^>]+>/g,''),_0x2429e3=_0xa3a95b[_0x139c00(-0x204,-0x28d,-0x33a,-0x396)]?.[_0x139c00(-_0x2dff09._0x2a1fca,-_0x2dff09._0x344b26,-_0x2dff09._0x5c8ba5,-_0x2dff09._0x5093d8)]?.[0x0]??{};let _0x159704;try{_0x159704=new URL(_0x2973f7)[_0x139c00(-0x3a8,-0x2b1,-0x1b2,-0x3c1)];}catch{_0x159704=null;}_0xcf5640['push']({'title':_0x3fa04b,'url':normalizeUrl(_0x2973f7),'snippet':_0x59c4b3??null,'displayUrl':_0x159704,'favicon':null,'publishedAt':_0x2429e3[_0x139c00(-0x86,-_0x2dff09._0x575626,-0x88,-_0x2dff09._0x21f472)]||_0x2429e3[_0x139c00(-_0x2dff09._0x2580b3,-0x236,-0x10f,-0x317)]||null,'source':{'engine':_0x139c00(-_0x2dff09._0xd40838,-_0x2dff09._0x40f810,-0x27b,-0x289),'rank':_0x2eafcb+_0x39f458+0x1}});}_0x4e338b+=_0x5d108d[_0x2cf3d0(-_0x2dff09._0x37a10f,-0x21b,-_0x2dff09._0x459577,-_0x2dff09._0x57412d)],_0x978b2d+=_0x5d108d['length'];if(_0x5d108d['length']<_0x421b71)break;}return _0xcf5640['slice'](0x0,_0x21da77);}function createWebSearchTool(_0x122625){const _0x4cb5f3={_0x569df5:0x12c,_0x26b3c8:0x1f2,_0x28e835:0x15c,_0x242782:0x283,_0x2f616f:0x2cd,_0x6025ec:0x3bf,_0x2de72e:0x1bc,_0x35d59b:0x325,_0x3cef21:0x35d,_0x239aeb:0x34c,_0x619eb3:0x161,_0x59ef85:0x1cc,_0xa63957:0x2d2,_0x433a67:0x43e,_0x20ca2f:0xf0,_0x2e8448:0x178,_0x51e7f5:0xe7,_0x25d344:0x183,_0x3f2757:0x2f,_0x2a4d5e:0x55,_0x1b672c:0x4c,_0x52474b:0x3b7,_0x5e2930:0x373,_0x33980a:0x371,_0x144cdf:0x42,_0x2e08d9:0x540,_0x5f9ded:0x3f7,_0x149254:0x4b3,_0xbd7db7:0x267,_0x1136bb:0xc1,_0x256931:0x143,_0x4e5b50:0x35e,_0x5b4ee8:0x3c,_0x25500a:0x95},_0x408aa8={_0x1cdb19:0x480,_0x3847a0:0x6b,_0x9936bc:0x113,_0xdac844:0x1f8,_0x16fad7:0x2e8,_0x428553:0x2ca,_0x151d92:0x46f,_0x1b81fc:0x462,_0x6880a1:0x2a,_0x3fc1dc:0x39,_0x2ce4bc:0x6c,_0x1df5bb:0x3e2,_0x23e350:0x339,_0x328d86:0x248,_0x3882e4:0x2e7,_0xbd4eb:0x3fb,_0x49b925:0x375,_0x504e59:0x448,_0x4b192f:0x4d2,_0x113eb1:0x3ab,_0x175ba4:0x3ce,_0x49d0c2:0x2f,_0x4043b0:0x125,_0x584835:0x1a5,_0x29be49:0x577,_0x4827e2:0x4b7,_0x594ab8:0x391,_0x7d6f9e:0x4b4,_0x30af6b:0x429,_0x10cd6b:0xc,_0x1f5ea0:0x7f,_0x472312:0x13,_0x5b9e41:0x6a,_0x305908:0x97,_0x281117:0x386,_0x4ad555:0x3af,_0x529e5d:0x487,_0x58527d:0x57e,_0x1a9a6e:0x486,_0x468787:0x3e6,_0x182c48:0x48d,_0x891539:0x7f,_0x53d2c5:0x119,_0x3907c3:0x148,_0x564c83:0x472,_0x920e67:0x2a,_0x4abf58:0x3c1,_0x1f0490:0x366,_0x23c5c2:0x2df,_0x2d90d9:0x4fd,_0x10e5f5:0x14c,_0x309437:0x3f2,_0x5f0684:0x81,_0x20498b:0x127,_0x42e1cc:0x4ae,_0x6fa76c:0x303,_0x40bc9f:0x432,_0x107a6d:0x3be,_0x4061a0:0x3d6,_0x5e7682:0x2e7,_0xb8c7ee:0x246,_0x5e3518:0x40b,_0x135171:0x40d,_0x3ee8d6:0x517},_0x35e4be={_0x274bbb:0x1b8,_0x3375b4:0x4c},_0x3383c9={_0x505a9c:0x374,_0x1b0c0e:0x7d};function _0x30dcc5(_0xa7d48f,_0x518b8d,_0x21bde7,_0x438fc9){return _0x22ef16(_0xa7d48f,_0x438fc9- -_0x3383c9._0x505a9c,_0x21bde7-0x38,_0x438fc9-_0x3383c9._0x1b0c0e);}if(!_0x122625[_0x30dcc5(-0x1cf,-_0x4cb5f3._0x569df5,-0x190,-_0x4cb5f3._0x26b3c8)])throw new Error(_0x30dcc5(-0x2b5,-_0x4cb5f3._0x28e835,-0x180,-_0x4cb5f3._0x242782));if(!_0x122625[_0x118c82(_0x4cb5f3._0x2f616f,_0x4cb5f3._0x6025ec,_0x4cb5f3._0x2de72e,0x39d)])throw new Error(_0x118c82(_0x4cb5f3._0x35d59b,_0x4cb5f3._0x3cef21,_0x4cb5f3._0x239aeb,0x2ca));const _0x3ba591=_0x122625[_0x30dcc5(-0x263,-0x1d6,-0xf6,-0x1fd)]??'WebSearch';function _0x118c82(_0x2226b4,_0x2559cd,_0x2e52e5,_0x30cc40){return _0x22ef16(_0x2559cd,_0x2226b4-_0x35e4be._0x274bbb,_0x2e52e5-0x155,_0x30cc40-_0x35e4be._0x3375b4);}return defineTool({'name':_0x3ba591,'description':_0x30dcc5(-_0x4cb5f3._0x619eb3,-_0x4cb5f3._0x59ef85,-_0x4cb5f3._0xa63957,-0x1d2),'inputSchema':{'type':_0x118c82(_0x4cb5f3._0x433a67,0x331,0x315,0x3ca),'properties':{'description':{'type':_0x30dcc5(0x0,-_0x4cb5f3._0x20ca2f,-_0x4cb5f3._0x2e8448,-_0x4cb5f3._0x51e7f5)},'query':{'type':_0x30dcc5(-_0x4cb5f3._0x25d344,-_0x4cb5f3._0x3f2757,0x3e,-_0x4cb5f3._0x51e7f5)},'count':{'type':_0x30dcc5(-0x1c0,-_0x4cb5f3._0x2a4d5e,-_0x4cb5f3._0x1b672c,-0x175)},'offset':{'type':'number'},'domains':{'type':'array','items':{'type':'string'}},'recencyDays':{'type':_0x118c82(_0x4cb5f3._0x52474b,_0x4cb5f3._0x5e2930,0x4cd,_0x4cb5f3._0x33980a)},'lang':{'type':_0x30dcc5(-_0x4cb5f3._0x144cdf,-0x199,-0x42,-0xe7)},'region':{'type':_0x118c82(0x445,_0x4cb5f3._0x2e08d9,_0x4cb5f3._0x5f9ded,_0x4cb5f3._0x149254)},'safe':{'type':_0x30dcc5(-_0x4cb5f3._0xbd7db7,-0x41,-_0x4cb5f3._0x1136bb,-_0x4cb5f3._0x256931)},'type':{'type':_0x118c82(0x445,_0x4cb5f3._0x4e5b50,0x3c7,0x49e)},'hydrateMeta':{'type':'boolean'}},'required':[_0x30dcc5(_0x4cb5f3._0x5b4ee8,-0x9a,-_0x4cb5f3._0x25500a,-0x8c)]},async *'execute'(_0x165a18,_0x1b43bc){const _0x17ad05={_0x26d6ed:0xf9},_0x16b9a2={_0x3217ad:0x56d,_0x32e200:0xd1,_0x4d25f8:0x14a,_0x393dba:0x21c,_0x18e4e1:0x1e7},_0x5079e2={_0xc8d285:0x54b,_0x481a43:0x50},_0x4da911={_0x5419c0:0x1ab,_0xfd331e:0x127,_0xc3de1f:0x17f},_0x4eacac={_0x16ae85:0xed},_0xfadaf=_0x165a18[_0x2f4a7f(0x3ec,0x3f8,0x496,_0x408aa8._0x1cdb19)][_0x20ddca(-0x92,_0x408aa8._0x3847a0,-0xbc,-_0x408aa8._0x9936bc)]();if(!_0xfadaf)throw new ToolExecutionError(_0x20ddca(-0x191,-0x1aa,-0xed,-_0x408aa8._0xdac844));const _0x3e78a1={'query':_0xfadaf,'count':Math['max'](0x1,Math[_0x2f4a7f(_0x408aa8._0x16fad7,_0x408aa8._0x428553,0x32f,0x2cb)](0x32,Math[_0x2f4a7f(_0x408aa8._0x151d92,_0x408aa8._0x1b81fc,0x3e2,0x3c4)](_0x165a18[_0x20ddca(-_0x408aa8._0x6880a1,_0x408aa8._0x3fc1dc,_0x408aa8._0x2ce4bc,-0xd1)]??0xa))),'offset':Math[_0x2f4a7f(0x2d3,0x410,0x3a9,0x2e9)](0x0,Math[_0x2f4a7f(0x4bc,0x4d4,_0x408aa8._0x1df5bb,_0x408aa8._0x23e350)](_0x165a18[_0x2f4a7f(0x35a,_0x408aa8._0x328d86,_0x408aa8._0x3882e4,0x288)]??0x0)),'domains':_0x165a18[_0x2f4a7f(_0x408aa8._0xbd4eb,0x2f3,_0x408aa8._0x49b925,_0x408aa8._0x504e59)]??[],'recencyDays':Math['max'](0x0,Math[_0x2f4a7f(_0x408aa8._0x4b192f,_0x408aa8._0x113eb1,0x3e2,_0x408aa8._0x175ba4)](_0x165a18['recencyDays']??0x0)),'lang':_0x165a18['lang']??'en','region':_0x165a18[_0x20ddca(-0x81,-_0x408aa8._0x49d0c2,-_0x408aa8._0x4043b0,-_0x408aa8._0x584835)]??'','safe':_0x165a18['safe']??!![],'type':normalizeType(_0x165a18[_0x2f4a7f(0x5b3,_0x408aa8._0x29be49,_0x408aa8._0x4827e2,_0x408aa8._0x594ab8)]),'hydrateMeta':_0x165a18['hydrateMeta']??![]};let _0x5405dc=await searchGoogleCse(_0x122625,_0x3e78a1,_0x1b43bc[_0x2f4a7f(_0x408aa8._0x7d6f9e,_0x408aa8._0x30af6b,0x3af,0x2b0)]);_0x3e78a1[_0x20ddca(0x8a,0xd9,0x168,_0x408aa8._0x10cd6b)]&&_0x5405dc[_0x20ddca(-_0x408aa8._0x1f5ea0,-_0x408aa8._0x472312,-0x17b,0x26)]>0x0&&(_0x5405dc=await hydrateResults(_0x5405dc,_0x3e78a1[_0x20ddca(0x8e,_0x408aa8._0x5b9e41,-_0x408aa8._0x305908,-_0x408aa8._0x10cd6b)],_0x1b43bc[_0x2f4a7f(_0x408aa8._0x281117,0x495,_0x408aa8._0x4ad555,_0x408aa8._0x529e5d)]));function _0x20ddca(_0x55e784,_0x45c812,_0xffd57e,_0x1408b9){return _0x30dcc5(_0x1408b9,_0x45c812-0x7c,_0xffd57e-_0x4eacac._0x16ae85,_0x55e784-0xeb);}const _0x228371=new Set();_0x5405dc=_0x5405dc[_0x2f4a7f(_0x408aa8._0x58527d,0x4f8,_0x408aa8._0x1a9a6e,_0x408aa8._0x468787)](_0x378fd5=>{const _0x12e7fe=_0x378fd5['url'][_0x1417a7(0x558,0x5b1,0x6ac,_0x16b9a2._0x3217ad)]();function _0x1d2344(_0x14f4dd,_0x5a51f0,_0x54e7ca,_0x3e552f){return _0x20ddca(_0x5a51f0-_0x4da911._0x5419c0,_0x5a51f0-_0x4da911._0xfd331e,_0x54e7ca-_0x4da911._0xc3de1f,_0x3e552f);}if(!_0x12e7fe||_0x228371[_0x1d2344(-0x24,0x92,_0x16b9a2._0x32e200,_0x16b9a2._0x4d25f8)](_0x12e7fe))return![];_0x228371[_0x1d2344(0x266,_0x16b9a2._0x393dba,_0x16b9a2._0x18e4e1,0x32e)](_0x12e7fe);function _0x1417a7(_0x5743bc,_0x4a5338,_0x4fa098,_0x90a0f1){return _0x20ddca(_0x4a5338-_0x5079e2._0xc8d285,_0x4a5338-_0x5079e2._0x481a43,_0x4fa098-0x1a3,_0x4fa098);}return!![];}),_0x5405dc=_0x5405dc[_0x2f4a7f(0x59e,0x4f1,0x472,_0x408aa8._0x182c48)]((_0x1f5657,_0x2e8577)=>({..._0x1f5657,'source':{..._0x1f5657['source'],'rank':_0x2e8577+0x1}}));const _0x5abc2b={};function _0x2f4a7f(_0x3e4f72,_0x14b29c,_0x4b6f54,_0x8758e2){return _0x118c82(_0x4b6f54- -0xa,_0x3e4f72,_0x4b6f54-_0x17ad05._0x26d6ed,_0x8758e2-0x14c);}if(_0x3e78a1[_0x20ddca(-0xc2,-0x43,-0x11f,-0x1ad)][_0x20ddca(-_0x408aa8._0x891539,-0x1ae,-_0x408aa8._0x53d2c5,-_0x408aa8._0x3907c3)]>0x0)_0x5abc2b[_0x2f4a7f(0x2ab,_0x408aa8._0x564c83,0x375,0x2fa)]=_0x3e78a1['domains'];if(_0x3e78a1[_0x20ddca(-0x4b,_0x408aa8._0x920e67,-0x76,-0x74)]>0x0)_0x5abc2b[_0x2f4a7f(_0x408aa8._0x4abf58,0x324,0x3ec,_0x408aa8._0x1f0490)]=_0x3e78a1[_0x2f4a7f(0x39f,_0x408aa8._0x23c5c2,0x3ec,_0x408aa8._0x2d90d9)];if(_0x3e78a1[_0x20ddca(0x8e,0x115,0x132,_0x408aa8._0x10e5f5)]!=='en')_0x5abc2b['lang']=_0x3e78a1['lang'];if(_0x3e78a1[_0x2f4a7f(0x410,_0x408aa8._0x309437,0x3b6,0x453)])_0x5abc2b[_0x20ddca(-_0x408aa8._0x5f0684,-0x21,-_0x408aa8._0x20498b,-0x40)]=_0x3e78a1[_0x2f4a7f(0x3c0,_0x408aa8._0x42e1cc,0x3b6,_0x408aa8._0x6fa76c)];return yield createToolOutput(formatResults(_0x5405dc),{'engine':'google-cse','count':_0x5405dc['length'],'items':_0x5405dc,'query':_0x3e78a1[_0x2f4a7f(0x481,0x43a,0x496,0x3c4)],...Object[_0x2f4a7f(0x2d5,_0x408aa8._0x40bc9f,0x352,_0x408aa8._0x107a6d)](_0x5abc2b)['length']>0x0?{'appliedFilters':_0x5abc2b}:{},'offset':_0x3e78a1[_0x2f4a7f(0x373,_0x408aa8._0x4061a0,_0x408aa8._0x5e7682,_0x408aa8._0xb8c7ee)],'totalRequested':_0x3e78a1[_0x2f4a7f(0x46f,_0x408aa8._0x5e3518,_0x408aa8._0x135171,0x520)],'hydrated':_0x3e78a1[_0x2f4a7f(0x485,_0x408aa8._0x3ee8d6,0x4c1,0x3ba)]}),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};