@nuvin/agent-core 0.1.0-rc.10 → 0.1.0-rc.12

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(_0x580b5d,_0x4936d4){const _0x5b42b0={_0x21c127:0x5e7,_0x2441c9:0x57c,_0x54072e:0x6bc,_0x41e951:0x58d,_0x3f0ba0:0x582,_0x51d3d3:0x2e9,_0x2b7c6d:0x21c,_0x2c8087:0x72b,_0x4222df:0x4f1,_0x5d5304:0x577,_0x1c012b:0x449,_0x455384:0x365,_0x3eae84:0x42b,_0x4b5700:0x486,_0x11300b:0x4aa,_0x1031b6:0x4c6,_0x49cb9c:0x5ab,_0xf28e31:0x223,_0x4d4eb0:0x29b,_0x5e332c:0x500,_0x3dbf55:0x4a6,_0x5cab21:0x587,_0x1b430:0x5ef,_0x24de49:0x2e6,_0x129b15:0x27a,_0x4d0a73:0x590,_0x292cd5:0x5c3,_0x3c2279:0x67d,_0x1349a8:0x53f},_0x376c07={_0x6dab81:0x122};function _0x472015(_0x5909df,_0x55c05a,_0x4c18ed,_0x3fe394){return _0x3c5f(_0x3fe394-0x2e3,_0x4c18ed);}const _0x2c2c21=_0x580b5d();function _0x504685(_0x2f1343,_0x508629,_0x2b4749,_0x4b4442){return _0x3c5f(_0x508629-_0x376c07._0x6dab81,_0x2b4749);}while(!![]){try{const _0x46e397=parseInt(_0x472015(0x638,_0x5b42b0._0x21c127,0x5f0,_0x5b42b0._0x2441c9))/0x1+-parseInt(_0x472015(_0x5b42b0._0x54072e,_0x5b42b0._0x41e951,_0x5b42b0._0x3f0ba0,0x6f5))/0x2*(parseInt(_0x504685(0x2f9,0x309,_0x5b42b0._0x51d3d3,_0x5b42b0._0x2b7c6d))/0x3)+parseInt(_0x472015(_0x5b42b0._0x2c8087,_0x5b42b0._0x4222df,0x722,0x5fe))/0x4*(parseInt(_0x472015(_0x5b42b0._0x5d5304,_0x5b42b0._0x1c012b,_0x5b42b0._0x455384,_0x5b42b0._0x3eae84))/0x5)+parseInt(_0x472015(_0x5b42b0._0x4b5700,_0x5b42b0._0x11300b,_0x5b42b0._0x1031b6,_0x5b42b0._0x49cb9c))/0x6+parseInt(_0x504685(_0x5b42b0._0xf28e31,0x363,_0x5b42b0._0x4d4eb0,_0x5b42b0._0x3eae84))/0x7*(parseInt(_0x472015(_0x5b42b0._0x5e332c,0x61e,_0x5b42b0._0x3dbf55,0x4f2))/0x8)+parseInt(_0x472015(0x4d3,0x6b1,_0x5b42b0._0x5cab21,_0x5b42b0._0x1b430))/0x9*(parseInt(_0x504685(_0x5b42b0._0x24de49,0x2c9,_0x5b42b0._0x129b15,0x245))/0xa)+-parseInt(_0x504685(_0x5b42b0._0x4d0a73,0x46f,0x583,0x53d))/0xb*(parseInt(_0x472015(_0x5b42b0._0x292cd5,_0x5b42b0._0x3c2279,0x488,_0x5b42b0._0x1349a8))/0xc);if(_0x46e397===_0x4936d4)break;else _0x2c2c21['push'](_0x2c2c21['shift']());}catch(_0x73ee06){_0x2c2c21['push'](_0x2c2c21['shift']());}}}(_0x46e1,0x21c9a));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-LIJXXCAA.js';import{getTextFromMessage}from'../chunk-YWQXXHHU.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0xbf1aac from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x4bd068(0x5ac,0x5be,0x660,0x6f4),'.tsx':_0x4bd068(0x4b7,0x5f5,0x58b,0x74c),'.js':'javascript','.jsx':_0x154255(0x20f,0x24e,0x210,0x382),'.mjs':_0x4bd068(0x3cd,0x474,0x587,0x5a1),'.cjs':_0x4bd068(0x468,0x474,0x3fe,0x53a),'.mts':_0x4bd068(0x649,0x5be,0x72e,0x5c8),'.cts':_0x4bd068(0x4a1,0x5be,0x44d,0x48f),'.json':_0x4bd068(0x37e,0x3b7,0x2ba,0x332),'.jsonc':_0x4bd068(0x4cc,0x3f9,0x55d,0x343)};function getLanguageId(_0x23a53b){const _0x543f6d={_0x3aa825:0x524},_0x300836={_0x4dde34:0x161};function _0x465fae(_0x122bc2,_0x1ee053,_0x1cf2fc,_0x249403){return _0x4bd068(_0x1cf2fc,_0x249403-0x88,_0x1cf2fc-_0x300836._0x4dde34,_0x249403-0xa7);}return EXTENSION_TO_LANGUAGE[_0xbf1aac[_0x465fae(0x56e,_0x543f6d._0x3aa825,0x3cf,0x50b)](_0x23a53b)['toLowerCase']()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x14a153){const _0x21371b={_0x149cf1:0x12e},_0x5c93a7={_0x2a58b1:0x5af,_0x1bb124:0x19a};function _0x5153d9(_0xce1087,_0x164ed0,_0x5bb0fd,_0x22b148){return _0x4bd068(_0x164ed0,_0x5bb0fd- -_0x5c93a7._0x2a58b1,_0x5bb0fd-0x163,_0x22b148-_0x5c93a7._0x1bb124);}return pathToFileURL(_0x14a153)[_0x5153d9(-0x20d,-_0x21371b._0x149cf1,-0x95,-0x16a)]();}function textDocumentPosition(_0x3bf804){const _0x421482={_0x1a90e0:0x554,_0x33e482:0x3f4,_0x363016:0x632,_0x222f5b:0x75f,_0x528cfe:0x575},_0x1e98b={_0x2e6bf5:0x159},_0xe1ae9d={_0x124925:0x21d};function _0x1f3643(_0x5179b1,_0x436b40,_0x34aa1a,_0x4dfeb2){return _0x154255(_0x4dfeb2,_0x436b40-0xad,_0x34aa1a- -_0xe1ae9d._0x124925,_0x4dfeb2-0x80);}function _0x2f4369(_0x4aea16,_0x2a3721,_0x1dd119,_0x8bbf55){return _0x154255(_0x2a3721,_0x2a3721-0x1a9,_0x4aea16-0x410,_0x8bbf55-_0x1e98b._0x2e6bf5);}return{'textDocument':{'uri':uriForPath(_0x3bf804[_0x2f4369(_0x421482._0x1a90e0,_0x421482._0x33e482,_0x421482._0x363016,0x5ce)])},'position':{'line':_0x3bf804['line'],'character':_0x3bf804[_0x2f4369(0x655,_0x421482._0x222f5b,0x6a1,_0x421482._0x528cfe)]}};}function normalizeLocations(_0x30653a){const _0x54af2d={_0x4630f0:0x168,_0x5da078:0x122};if(!_0x30653a)return[];function _0x599ac6(_0x40f66f,_0x274237,_0x597c0d,_0x3c78b0){return _0x4bd068(_0x3c78b0,_0x40f66f- -0x5d8,_0x597c0d-_0x54af2d._0x4630f0,_0x3c78b0-_0x54af2d._0x5da078);}return Array[_0x599ac6(-0x110,-0x1f4,-0x1e3,-0x261)](_0x30653a)?_0x30653a:[_0x30653a];}async function createLspClient(_0x405fac){const _0x7748c5={_0x22b7f7:0x1c4,_0x510767:0xd8,_0x609d26:0x53,_0x4edf6f:0x575,_0x2fc20a:0x63b,_0xb6d166:0x2e7,_0x1c8338:0x1d4,_0x5eb827:0x44e,_0x3d0eb4:0x400,_0x5c8b36:0x3f9,_0x4cfe92:0x19f,_0x2fc6af:0x1d4,_0xb4115b:0x5e2,_0x37c47f:0x61f,_0x4ea403:0x2de,_0x98276f:0x17d,_0x34caa0:0x3e7,_0x46fb70:0x3d0,_0x4913ad:0x66d,_0x5c3e02:0x6b4,_0xb8662:0x12c,_0xed6b6b:0x213,_0x3860bb:0x10,_0x418ea3:0x2ee,_0x568a7e:0x3f1,_0x530124:0x675,_0x461089:0x503,_0x3fa78e:0x6e9,_0x1164fa:0x684,_0x4bef9c:0x639,_0x1586ef:0x73c,_0x46bd94:0x527,_0xb9cb2e:0x325,_0x2d0ebc:0x20a,_0x485dd9:0x26a,_0x5e4c94:0x2db,_0x11bf1a:0x3f3,_0x31f78d:0x429,_0x2fb8dd:0x52e,_0x47536d:0x5d7,_0x77eb08:0x3dc,_0x1e2504:0x3db,_0x2b2fa4:0x269,_0x3109a3:0x139,_0x3395cd:0x2cc},_0x119545={_0x339d34:0x150},_0x25c426={_0x3f6e28:0x1bd,_0x2f45ad:0x5e6,_0x16f5da:0x61a,_0x2fa3a5:0x54a,_0x2fb701:0x542,_0xbbe702:0x69a,_0x58ec7f:0x1e1,_0x424424:0x35b,_0x4af6c3:0x1ae,_0x5236d8:0x4ea,_0x304e20:0x585,_0x48b682:0x60f},_0x6cf812={_0x20a903:0xf1,_0x2e68f2:0xd},_0x9f6997={_0x34bbac:0x1e8},_0x106d5f={_0x9ee297:0x560,_0x215c8d:0x127},_0x4bbb75={_0x1449a7:0x2f7,_0x3f1817:0x163},_0x44335c={_0x62788e:0x1ce,_0xb6c7e8:0x1cd,_0x4d3aca:0x201,_0x49d2de:0x89,_0x423f8c:0x60},_0x4b7b6d={_0x422244:0x5},_0x3a059={_0x29e321:0x55a,_0x5cc1e4:0x55c},_0x280d4b={_0x5f3388:0x665,_0x4a4503:0x5f1,_0x1c6187:0x71a,_0x138cd7:0x801,_0x3437a5:0x8ab,_0x455299:0x7d8},_0x43a2ec={_0x2ef7ee:0x4d6,_0x123a0f:0xd9},_0x52f992={_0x58fb9f:0x7a,_0x4cbe86:0x108},_0x544e5b={_0x12dbec:0x304,_0x51b6cf:0x19c,_0x2f7825:0xb3},_0x54f35b={_0x40c7ab:0x340,_0x77bc74:0x1bf,_0x16c664:0x29e},_0x405336={_0x144b19:0x77,_0x20a437:0x1e2},_0x263d54={_0x829e9f:0x159,_0xc7e1e8:0x1d5,_0x5c0161:0x98},_0x36f162={_0x56a34a:0xdd},_0x5347dc={_0x1e5d9b:0x130,_0x51b748:0x86,_0x2181bf:0x1ba},_0x5ec736={_0x3eab49:0x508,_0x452e86:0x44c,_0x5b3e28:0x412},_0x384bc1={_0x3ffbb5:0x171},_0x2765c7={_0x3a168b:0x40,_0x4cfdd0:0x6f,_0x45e101:0x6d,_0x556b9d:0x6a,_0x24bb6b:0x73,_0xff32ed:0x605,_0x255a1e:0x6b8},_0x138c49={_0x309ebb:0x1c9},_0x1a476b={_0x32c9d3:0x1c7,_0x3dd6d6:0xdd,_0xc48586:0x4,_0x2cf24d:0x176,_0x58458b:0x372,_0x201f10:0x2f9,_0x36f391:0x456,_0x1322bf:0x436,_0x4b27da:0x35b},_0x279fa4={_0x6c19ca:0x4d4,_0x17ed65:0x5,_0x27ef0d:0x4a,_0x16d736:0x60,_0x255ae8:0x42,_0x5812f9:0x12e,_0x4dba61:0x1e1,_0x28ab45:0x195,_0x356e7e:0x2b4,_0x140a04:0x4c4,_0x269088:0x36d},_0x18970d={_0x420748:0x236},_0x29198f={_0x24d4b7:0x53},_0x54feb6=_0x405fac['handle'][_0x1ee619(0x31b,0x287,_0x7748c5._0x22b7f7,0x1d7)]['stdout'],_0x5bc04b=_0x405fac[_0x1ee619(_0x7748c5._0x510767,-0x11,_0x7748c5._0x609d26,0x150)][_0x7bcbee(0x653,_0x7748c5._0x4edf6f,0x543,_0x7748c5._0x2fc20a)][_0x1ee619(_0x7748c5._0xb6d166,0x3c9,0x400,_0x7748c5._0x1c8338)];if(!_0x54feb6||!_0x5bc04b)throw new Error(_0x7bcbee(_0x7748c5._0x5eb827,_0x7748c5._0x3d0eb4,_0x7748c5._0x5c8b36,0x2dd));const _0x3a8290=createMessageConnection(new StreamMessageReader(_0x54feb6),new StreamMessageWriter(_0x5bc04b)),_0x335b99=new Map();function _0x7bcbee(_0x140d5d,_0x26bc77,_0x5cc701,_0x3d85d7){return _0x4bd068(_0x26bc77,_0x140d5d-0xd,_0x5cc701-0xcb,_0x3d85d7-_0x29198f._0x24d4b7);}const _0x3371cb=new Map();let _0x55f623=![];_0x3a8290['onNotification'](_0x1ee619(_0x7748c5._0x4cfe92,0xa5,0x27c,_0x7748c5._0x2fc6af),_0x3ea912=>{const _0x7ab67d={_0x50aaf8:0x1a8};_0x335b99['set'](_0x3ea912[_0x43924f(0x321,0x3ae,_0x279fa4._0x6c19ca,0x36d)],_0x3ea912['diagnostics']);function _0x43924f(_0x5020c0,_0xef6038,_0x3a20b5,_0x5dfea4){return _0x1ee619(_0x5dfea4-_0x18970d._0x420748,_0xef6038-0x30,_0x5020c0,_0x5dfea4-0x162);}const _0x24d845=_0x3371cb[_0x10e857(-_0x279fa4._0x17ed65,-_0x279fa4._0x27ef0d,-_0x279fa4._0x16d736,-_0x279fa4._0x255ae8)](_0x3ea912[_0x10e857(-_0x279fa4._0x5812f9,-_0x279fa4._0x4dba61,-0x99,-0xdc)]);function _0x10e857(_0x1ef53a,_0x10024b,_0x3aa080,_0x2123ec){return _0x7bcbee(_0x2123ec- -0x54b,_0x1ef53a,_0x3aa080-0x8e,_0x2123ec-_0x7ab67d._0x50aaf8);}if(!_0x24d845)return;_0x3371cb[_0x10e857(-0x202,-_0x279fa4._0x28ab45,-0x299,-0x178)](_0x3ea912[_0x43924f(0x258,_0x279fa4._0x356e7e,_0x279fa4._0x140a04,_0x279fa4._0x269088)]);for(const _0x225f33 of _0x24d845)_0x225f33();}),_0x3a8290[_0x7bcbee(0x41b,0x34e,0x3b8,0x2a4)]();const _0x3557ce=await _0x3a8290[_0x1ee619(0x20b,0x14c,0x17f,0x165)](_0x7bcbee(_0x7748c5._0xb4115b,0x494,0x617,0x4a0),{'processId':process[_0x7bcbee(0x555,0x53f,_0x7748c5._0x37c47f,0x52c)],'rootUri':uriForPath(_0x405fac[_0x1ee619(_0x7748c5._0x4ea403,_0x7748c5._0x98276f,_0x7748c5._0x34caa0,_0x7748c5._0x46fb70)]),'workspaceFolders':[{'uri':uriForPath(_0x405fac[_0x7bcbee(0x616,0x52a,_0x7748c5._0x4913ad,_0x7748c5._0x5c3e02)]),'name':_0x405fac[_0x1ee619(_0x7748c5._0xb8662,_0x7748c5._0xed6b6b,0xd7,_0x7748c5._0x3860bb)]['id']}],'initializationOptions':_0x405fac[_0x7bcbee(0x410,_0x7748c5._0x418ea3,_0x7748c5._0x568a7e,0x3d4)][_0x7bcbee(0x644,_0x7748c5._0x530124,_0x7748c5._0x461089,_0x7748c5._0x3fa78e)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x7bcbee(_0x7748c5._0x1164fa,_0x7748c5._0x4bef9c,_0x7748c5._0x1586ef,_0x7748c5._0x46bd94),_0x1ee619(_0x7748c5._0xb9cb2e,_0x7748c5._0x2d0ebc,0x47b,_0x7748c5._0x485dd9)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x3a8290[_0x1ee619(_0x7748c5._0x5e4c94,_0x7748c5._0x11bf1a,0x2d9,_0x7748c5._0x31f78d)](_0x7bcbee(_0x7748c5._0x2fb8dd,_0x7748c5._0x47536d,_0x7748c5._0x77eb08,_0x7748c5._0x1e2504),{});const _0x374ebb={'serverId':_0x405fac[_0x1ee619(0x12c,_0x7748c5._0x2b2fa4,_0x7748c5._0x3109a3,0xdc)]['id'],'root':_0x405fac[_0x1ee619(_0x7748c5._0x4ea403,0x3ab,0x2cc,_0x7748c5._0x3395cd)],'connection':_0x3a8290,'diagnostics':_0x335b99,'capabilities':_0x3557ce['capabilities']??{},'notify':{async 'open'({path:_0xeaa290}){const _0x491f6e={_0x326cd:0x165,_0x283d33:0x1a3},_0x4da70b={_0x577857:0xd,_0x39eca0:0x3b};function _0x11da87(_0x30cb7d,_0x1ae8ce,_0x7200d,_0x44b722){return _0x1ee619(_0x1ae8ce-_0x4da70b._0x577857,_0x1ae8ce-_0x4da70b._0x39eca0,_0x7200d,_0x44b722-0x1c4);}const _0x1fc49b=await readFile(_0xeaa290,_0x16e911(0x12d,0x208,-0x1d,0x121));function _0x16e911(_0x10bbc7,_0x5c92f0,_0x57ba2d,_0x5b4045){return _0x1ee619(_0x5b4045- -_0x491f6e._0x326cd,_0x5c92f0-0x119,_0x5c92f0,_0x5b4045-_0x491f6e._0x283d33);}_0x3a8290[_0x16e911(_0x1a476b._0x32c9d3,_0x1a476b._0x3dd6d6,_0x1a476b._0xc48586,_0x1a476b._0x2cf24d)](_0x11da87(_0x1a476b._0x58458b,_0x1a476b._0x201f10,0x273,0x214),{'textDocument':{'uri':uriForPath(_0xeaa290),'languageId':getLanguageId(_0xeaa290)??_0x11da87(_0x1a476b._0x36f391,0x332,_0x1a476b._0x1322bf,_0x1a476b._0x4b27da),'version':0x1,'text':_0x1fc49b}});},async 'change'({path:_0x1335f4,version:_0x4f389a}){const _0x45b359=await readFile(_0x1335f4,_0x4b3a94(_0x2765c7._0x3a168b,0x1e,-_0x2765c7._0x4cfdd0,-_0x2765c7._0x45e101));function _0x53246f(_0x3a2600,_0x22ef67,_0x2bd805,_0x297b65){return _0x1ee619(_0x297b65-0x38b,_0x22ef67-0x1d5,_0x3a2600,_0x297b65-0x15f);}function _0x4b3a94(_0x552ed1,_0x113dfa,_0x4d5c02,_0x8ca33f){return _0x7bcbee(_0x113dfa- -0x5a0,_0x4d5c02,_0x4d5c02-_0x138c49._0x309ebb,_0x8ca33f-0x165);}_0x3a8290[_0x4b3a94(-_0x2765c7._0x556b9d,_0x2765c7._0x24bb6b,0x1f,0x1ae)](_0x53246f(_0x2765c7._0xff32ed,0x642,0x709,_0x2765c7._0x255a1e),{'textDocument':{'uri':uriForPath(_0x1335f4),'version':_0x4f389a},'contentChanges':[{'text':_0x45b359}]});},async 'close'({path:_0x4bdc6e}){function _0x571c62(_0x3dd0c3,_0x3fa2d9,_0x5cef45,_0x186bf3){return _0x1ee619(_0x5cef45-_0x384bc1._0x3ffbb5,_0x3fa2d9-0x18,_0x3fa2d9,_0x186bf3-0x1d4);}_0x3a8290[_0x571c62(_0x5ec736._0x3eab49,0x303,_0x5ec736._0x452e86,_0x5ec736._0x5b3e28)]('textDocument/didClose',{'textDocument':{'uri':uriForPath(_0x4bdc6e)}});}},'request':{async 'definition'(_0x10d361){return normalizeLocations(await _0x3a8290['sendRequest']('textDocument/definition',textDocumentPosition(_0x10d361)));},async 'references'(_0x1f7408){const _0x2b772b={_0xc4b915:0x413,_0x4d1668:0x193,_0x563d7d:0x1a6},_0x1fadb0={_0x233b79:0x43b,_0x2ce9be:0x119};function _0x28d0a9(_0x31af2e,_0xdb3b2c,_0xed8c07,_0x196170){return _0x1ee619(_0xdb3b2c-_0x1fadb0._0x233b79,_0xdb3b2c-0x8c,_0xed8c07,_0x196170-_0x1fadb0._0x2ce9be);}function _0x38c824(_0x9cdaa3,_0x24902f,_0x37b993,_0x32ac36){return _0x7bcbee(_0x9cdaa3- -_0x2b772b._0xc4b915,_0x37b993,_0x37b993-_0x2b772b._0x4d1668,_0x32ac36-_0x2b772b._0x563d7d);}return normalizeLocations(await _0x3a8290[_0x38c824(_0x5347dc._0x1e5d9b,0x9b,0x1e4,_0x5347dc._0x51b748)](_0x38c824(-0x53,-0x134,-0x20,-_0x5347dc._0x2181bf),{...textDocumentPosition(_0x1f7408),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x1052d5){function _0x58150d(_0x580d72,_0x1c0639,_0x16592d,_0x3ef415){return _0x7bcbee(_0x16592d- -0x4ab,_0x580d72,_0x16592d-_0x36f162._0x56a34a,_0x3ef415-0xa9);}return await _0x3a8290[_0x58150d(_0x263d54._0x829e9f,_0x263d54._0xc7e1e8,_0x263d54._0x5c0161,0x93)]('textDocument/hover',textDocumentPosition(_0x1052d5))??null;},async 'documentSymbol'(_0x13bd02){function _0xc432df(_0x42a2f7,_0xa34f2c,_0x31d6f9,_0x5efad2){return _0x1ee619(_0x5efad2- -_0x405336._0x144b19,_0xa34f2c-_0x405336._0x20a437,_0x31d6f9,_0x5efad2-0xbc);}return await _0x3a8290['sendRequest'](_0xc432df(0x1d2,_0x54f35b._0x40c7ab,_0x54f35b._0x77bc74,_0x54f35b._0x16c664),{'textDocument':{'uri':uriForPath(_0x13bd02)}})??[];},async 'workspaceSymbol'(_0x58577b){return await _0x3a8290['sendRequest']('workspace/symbol',{'query':_0x58577b})??[];},async 'implementation'(_0x34d889){function _0x28c5d1(_0x45580b,_0x50a6df,_0x37d1f6,_0x2c59b6){return _0x1ee619(_0x50a6df- -_0x544e5b._0x12dbec,_0x50a6df-_0x544e5b._0x51b6cf,_0x2c59b6,_0x2c59b6-_0x544e5b._0x2f7825);}function _0x2d7cf8(_0x2b4631,_0x5e70ef,_0x12527d,_0x22aeb3){return _0x7bcbee(_0x22aeb3-0x88,_0x2b4631,_0x12527d-_0x52f992._0x58fb9f,_0x22aeb3-_0x52f992._0x4cbe86);}return normalizeLocations(await _0x3a8290[_0x2d7cf8(0x6f2,0x5ca,_0x43a2ec._0x2ef7ee,0x5cb)](_0x28c5d1(-0x2cc,-0x19c,-_0x43a2ec._0x123a0f,-0x21),textDocumentPosition(_0x34d889)));},async 'prepareCallHierarchy'(_0x3f06df){const _0x49142b={_0x4c6131:0x122,_0x3237bf:0x4b},_0x42cade={_0x1f546b:0x17b};function _0x26cc2c(_0x165cb7,_0x20e446,_0x4b2a01,_0xa5a741){return _0x1ee619(_0x4b2a01- -0x2f9,_0x20e446-0x2c,_0x20e446,_0xa5a741-_0x42cade._0x1f546b);}function _0x4b36c4(_0x546869,_0x3beec1,_0x2a58a8,_0x5ef088){return _0x7bcbee(_0x3beec1-_0x49142b._0x4c6131,_0x5ef088,_0x2a58a8-_0x49142b._0x3237bf,_0x5ef088-0xc8);}return await _0x3a8290[_0x4b36c4(0x5d5,_0x280d4b._0x5f3388,_0x280d4b._0x4a4503,_0x280d4b._0x1c6187)](_0x4b36c4(_0x280d4b._0x138cd7,0x786,_0x280d4b._0x3437a5,_0x280d4b._0x455299),textDocumentPosition(_0x3f06df))??[];},async 'incomingCalls'(_0x426a3b){const _0x5bc8f4={_0x18dd81:0xe3,_0x5bc270:0x36};function _0x2f0b7e(_0x1706c4,_0x54d235,_0x4e68be,_0x10060e){return _0x7bcbee(_0x10060e-_0x5bc8f4._0x18dd81,_0x4e68be,_0x4e68be-0x1c4,_0x10060e-_0x5bc8f4._0x5bc270);}return await _0x3a8290[_0x2f0b7e(_0x3a059._0x29e321,_0x3a059._0x5cc1e4,0x58b,0x626)]('callHierarchy/incomingCalls',{'item':_0x426a3b})??[];},async 'outgoingCalls'(_0x258c94){const _0x1fac03={_0x236eff:0x375,_0x2be3e8:0x12f};function _0x5eaa41(_0x2d6b94,_0x42148b,_0xc84964,_0x1a87cc){return _0x7bcbee(_0xc84964- -0x25,_0x2d6b94,_0xc84964-_0x4b7b6d._0x422244,_0x1a87cc-0xc2);}function _0x43c1f9(_0x2d04a9,_0x23fd02,_0x4538da,_0x550784){return _0x7bcbee(_0x4538da- -_0x1fac03._0x236eff,_0x550784,_0x4538da-_0x1fac03._0x2be3e8,_0x550784-0x12);}return await _0x3a8290[_0x43c1f9(0x2ed,0x263,_0x44335c._0x62788e,_0x44335c._0xb6c7e8)](_0x43c1f9(_0x44335c._0x4d3aca,0x29,_0x44335c._0x49d2de,_0x44335c._0x423f8c),{'item':_0x258c94})??[];}},'waitForDiagnostics'({path:_0x21c6b8,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0xaefd14={_0x1f8628:0x286,_0x14651f:0x3e1,_0x33cb39:0x218,_0x2783ff:0x3a7,_0x3e87f3:0x68f,_0x434971:0x282,_0x1f0c4b:0x337,_0x411c19:0x281},_0x529c64={_0x168ff1:0x551,_0x324670:0x3e4,_0x488b2e:0x338,_0x5bb519:0x1fd,_0x597f51:0x332},_0x527a1c=uriForPath(_0x21c6b8);function _0x15f8bc(_0x3e4ba2,_0x383895,_0x2674fe,_0x154c17){return _0x7bcbee(_0x383895- -_0x4bbb75._0x1449a7,_0x154c17,_0x2674fe-_0x4bbb75._0x3f1817,_0x154c17-0x1cf);}function _0x4ea365(_0x3b1ad6,_0x20e2b9,_0x2e290a,_0x26aee5){return _0x7bcbee(_0x26aee5- -_0x106d5f._0x9ee297,_0x3b1ad6,_0x2e290a-0x62,_0x26aee5-_0x106d5f._0x215c8d);}if(_0x335b99[_0x4ea365(-0x74,-0x14e,-0x39,-0x137)](_0x527a1c))return Promise[_0x4ea365(0x43,0xc3,-_0x9f6997._0x34bbac,-0xa5)]();return new Promise(_0x29a09e=>{const _0x3f92a8={_0x5eef92:0x2f},_0x3c3ee3={_0x424ac9:0x1e5};function _0x169b05(_0x170c28,_0x283954,_0x1486bf,_0x261f22){return _0x4ea365(_0x1486bf,_0x283954-0x19f,_0x1486bf-0x1b4,_0x170c28-0x2dd);}const _0x49ffdc=setTimeout(()=>{function _0x1cff5b(_0x441e18,_0x37ef5b,_0x40bb0b,_0x137176){return _0x3c5f(_0x441e18-_0x3c3ee3._0x424ac9,_0x37ef5b);}const _0x31f06a=_0x3371cb[_0x5d770b(0x4d2,0x4d3,0x43c,0x580)](_0x527a1c);_0x31f06a?.['delete'](_0x24dac0);function _0x5d770b(_0x2980b1,_0xab588c,_0x2a7dae,_0x648d41){return _0x3c5f(_0xab588c-0x24a,_0x2980b1);}if(_0x31f06a?.[_0x1cff5b(_0x529c64._0x168ff1,0x46f,0x55b,_0x529c64._0x324670)]===0x0)_0x3371cb[_0x1cff5b(_0x529c64._0x488b2e,_0x529c64._0x5bb519,0x378,_0x529c64._0x597f51)](_0x527a1c);_0x29a09e();},timeoutMs),_0x24dac0=()=>{clearTimeout(_0x49ffdc),_0x29a09e();};function _0x5d125c(_0x23863f,_0x2f82a0,_0xd63d9c,_0xde5948){return _0x4ea365(_0xde5948,_0x2f82a0-_0x3f92a8._0x5eef92,_0xd63d9c-0x1d0,_0x2f82a0-0x6ab);}const _0x563e2b=_0x3371cb[_0x169b05(_0xaefd14._0x1f8628,_0xaefd14._0x14651f,_0xaefd14._0x33cb39,_0xaefd14._0x2783ff)](_0x527a1c)??new Set();_0x563e2b[_0x5d125c(0x74a,_0xaefd14._0x3e87f3,0x7dc,0x6b5)](_0x24dac0),_0x3371cb[_0x169b05(_0xaefd14._0x434971,_0xaefd14._0x1f0c4b,_0xaefd14._0x411c19,0x2ff)](_0x527a1c,_0x563e2b);});},async 'shutdown'(){const _0x3b106f={_0x1cbf0c:0x94,_0x1bd2b8:0x1cd,_0x410f9f:0x183};function _0x30159f(_0x254b7e,_0x55346f,_0x563d18,_0x59741b){return _0x7bcbee(_0x563d18- -0x262,_0x55346f,_0x563d18-_0x6cf812._0x20a903,_0x59741b-_0x6cf812._0x2e68f2);}function _0x5b365c(_0x448c1d,_0x228762,_0x28525c,_0x548bf5){return _0x7bcbee(_0x28525c- -_0x3b106f._0x1cbf0c,_0x448c1d,_0x28525c-_0x3b106f._0x1bd2b8,_0x548bf5-_0x3b106f._0x410f9f);}if(_0x55f623)return;_0x55f623=!![];try{await _0x3a8290[_0x30159f(0x1be,0x3f4,0x2e1,_0x25c426._0x3f6e28)](_0x5b365c(0x5f2,_0x25c426._0x2f45ad,0x523,_0x25c426._0x16f5da),null),_0x3a8290['sendNotification'](_0x5b365c(_0x25c426._0x2fa3a5,_0x25c426._0x2fb701,0x5a6,_0x25c426._0xbbe702));}catch{}finally{_0x3a8290[_0x30159f(_0x25c426._0x58ec7f,0x122,0x288,_0x25c426._0x424424)](),_0x405fac[_0x30159f(0x1bd,0x1e1,_0x25c426._0x4af6c3,0x14a)][_0x5b365c(0x508,_0x25c426._0x5236d8,0x5bf,0x6cd)][_0x5b365c(_0x25c426._0x304e20,0x631,_0x25c426._0x48b682,0x667)]();}}};function _0x1ee619(_0x19f1fd,_0x4be048,_0x3d7d79,_0x478ca7){return _0x4bd068(_0x3d7d79,_0x19f1fd- -0x32b,_0x3d7d79-_0x119545._0x339d34,_0x478ca7-0x42);}return _0x374ebb;}import{spawn as _0x393f6a}from'child_process';import{access as _0x36efd5}from'fs/promises';import _0x4456fe from'path';import{spawn}from'child_process';function _0x3c5f(_0x44eb3d,_0x4e7a06){_0x44eb3d=_0x44eb3d-0x13a;const _0x46e11d=_0x46e1();let _0x3c5f63=_0x46e11d[_0x44eb3d];if(_0x3c5f['bWjINY']===undefined){var _0x726d0d=function(_0xc95dab){const _0x455ced='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xbf1aac='',_0x393f6a='';for(let _0x36efd5=0x0,_0x4456fe,_0x3597eb,_0x4912a4=0x0;_0x3597eb=_0xc95dab['charAt'](_0x4912a4++);~_0x3597eb&&(_0x4456fe=_0x36efd5%0x4?_0x4456fe*0x40+_0x3597eb:_0x3597eb,_0x36efd5++%0x4)?_0xbf1aac+=String['fromCharCode'](0xff&_0x4456fe>>(-0x2*_0x36efd5&0x6)):0x0){_0x3597eb=_0x455ced['indexOf'](_0x3597eb);}for(let _0x5da4af=0x0,_0x229f6b=_0xbf1aac['length'];_0x5da4af<_0x229f6b;_0x5da4af++){_0x393f6a+='%'+('00'+_0xbf1aac['charCodeAt'](_0x5da4af)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x393f6a);};_0x3c5f['OHezME']=_0x726d0d,_0x3c5f['PbtDHx']={},_0x3c5f['bWjINY']=!![];}const _0x3f0e6a=_0x46e11d[0x0],_0x385bba=_0x44eb3d+_0x3f0e6a,_0x2f0ac5=_0x3c5f['PbtDHx'][_0x385bba];return!_0x2f0ac5?(_0x3c5f63=_0x3c5f['OHezME'](_0x3c5f63),_0x3c5f['PbtDHx'][_0x385bba]=_0x3c5f63):_0x3c5f63=_0x2f0ac5,_0x3c5f63;}import{access,mkdir}from'fs/promises';import _0x3597eb from'os';import _0x4912a4 from'path';import _0x5da4af from'which';var installPromises=new Map();function sanitizePackageName(_0x586376){const _0x1ad295={_0x3f44a5:0xa2,_0x5a3c50:0xca,_0x1189ca:0x18d,_0xfb7990:0x109,_0x552f15:0x1f5,_0x56a0eb:0x118},_0x23d6b3={_0x571687:0x9c,_0x4ce89b:0x193,_0x3236be:0x1d5},_0x10089c={_0x200569:0x47};function _0x1fa394(_0x41d569,_0x2401f3,_0xfa47d3,_0x485b4c){return _0x154255(_0xfa47d3,_0x2401f3-_0x10089c._0x200569,_0x41d569-0xc4,_0x485b4c-0x100);}function _0x5a2325(_0x1e5535,_0x2464f7,_0x57b95a,_0x100d23){return _0x154255(_0x1e5535,_0x2464f7-_0x23d6b3._0x571687,_0x100d23- -_0x23d6b3._0x4ce89b,_0x100d23-_0x23d6b3._0x3236be);}return _0x586376[_0x5a2325(-_0x1ad295._0x3f44a5,-0x9f,-0x21,-_0x1ad295._0x5a3c50)](/^@/,'')[_0x1fa394(_0x1ad295._0x1189ca,_0x1ad295._0xfb7990,_0x1ad295._0x552f15,_0x1ad295._0x56a0eb)](/[/]/g,'__');}function binaryNameForPlatform(_0xf72f0c){const _0x1f4587={_0x3de987:0x18a,_0x1587c2:0x10b,_0x6b7718:0x181,_0x2045d7:0x67,_0x83cbe8:0x683},_0x10edd8={_0xa4d8f3:0xf4},_0x51fc73={_0x3bb6ce:0xbf,_0x3fe07b:0x4cc,_0x25f64b:0x4f};function _0x185380(_0x5392a4,_0xf21101,_0x37cb22,_0x33b9b7){return _0x154255(_0x37cb22,_0xf21101-_0x51fc73._0x3bb6ce,_0x33b9b7-_0x51fc73._0x3fe07b,_0x33b9b7-_0x51fc73._0x25f64b);}function _0x22bebf(_0x2ac862,_0x5dd6d6,_0x595e27,_0x5586e5){return _0x154255(_0x2ac862,_0x5dd6d6-_0x10edd8._0xa4d8f3,_0x595e27- -0x17f,_0x5586e5-0x1e7);}return process[_0x22bebf(0x1de,_0x1f4587._0x3de987,_0x1f4587._0x1587c2,-0x54)]===_0x22bebf(-_0x1f4587._0x6b7718,-_0x1f4587._0x2045d7,-0x139,-0xf)?_0xf72f0c+_0x185380(0x42e,0x622,_0x1f4587._0x83cbe8,0x54f):_0xf72f0c;}async function exists(_0x28e170){try{return await access(_0x28e170),!![];}catch{return![];}}function runNpmInstall(_0x4e7a94,_0x4929b7,_0x1ea549){const _0x3d53f6={_0x18eee3:0xae,_0x3eec8f:0x105,_0x5b6ca3:0x198,_0x3270c4:0x14f,_0xfb8429:0x33c,_0x5f12d4:0x387,_0x5d4d7a:0x1e8,_0x5b72db:0x103,_0x17df7f:0xdd,_0x2b4bba:0x30a,_0x368559:0x2db},_0x57620e={_0xc0de9:0x36};return new Promise(_0x549cc3=>{const _0x53e2e4=spawn(_0x299271(_0x3d53f6._0x18eee3,0x150,0x14d,_0x3d53f6._0x3eec8f),[_0x41906c(-0x154,-0x5d,-_0x3d53f6._0x5b6ca3,-_0x3d53f6._0x3270c4),'--prefix',_0x4e7a94,_0x4929b7],{'env':_0x1ea549,'stdio':_0x299271(_0x3d53f6._0xfb8429,0x38f,_0x3d53f6._0x5f12d4,0x256)});_0x53e2e4['on'](_0x41906c(_0x3d53f6._0x5d4d7a,0x168,_0x3d53f6._0x5b72db,_0x3d53f6._0x17df7f),()=>_0x549cc3(![]));function _0x299271(_0xc3ba78,_0x2afe4f,_0x2601d8,_0x1b8f60){return _0x3c5f(_0x1b8f60- -_0x57620e._0xc0de9,_0x2601d8);}function _0x41906c(_0x3821e3,_0x2cb82e,_0x53c923,_0x5440e9){return _0x3c5f(_0x53c923- -0x32c,_0x5440e9);}_0x53e2e4['on'](_0x299271(0x294,_0x3d53f6._0x2b4bba,0x1ad,_0x3d53f6._0x368559),_0x3711da=>_0x549cc3(_0x3711da===0x0));});}function shouldDisableLspDownload(_0x3816e8=process[_0x4bd068(0x46c,0x588,0x5cb,0x610)]){const _0x278f1a={_0x57e53f:0x126,_0x1e0c26:0x2e0,_0x2bf1d3:0xdd,_0x3757a1:0x243,_0x1fc27f:0x1a,_0x23c4e2:0x140,_0x3d89bc:0x21,_0x1ecec2:0x321},_0x95a9a3={_0x21ddb1:0x80};function _0x52f787(_0x1affe4,_0x218272,_0x5d382b,_0x22945b){return _0x4bd068(_0x22945b,_0x218272- -0x51e,_0x5d382b-0xfb,_0x22945b-0x2);}function _0x296a7e(_0x287dfb,_0xf06c8d,_0x320875,_0x570551){return _0x4bd068(_0x287dfb,_0x570551- -0x239,_0x320875-_0x95a9a3._0x21ddb1,_0x570551-0xa8);}const _0x40a6b8=_0x3816e8[_0x296a7e(_0x278f1a._0x57e53f,_0x278f1a._0x1e0c26,_0x278f1a._0x2bf1d3,_0x278f1a._0x3757a1)]?.[_0x52f787(_0x278f1a._0x1fc27f,_0x278f1a._0x23c4e2,-_0x278f1a._0x3d89bc,-0x1)]();return _0x40a6b8==='true'||_0x40a6b8==='1'||_0x40a6b8===_0x296a7e(0x317,_0x278f1a._0x1ecec2,0x2a7,0x1eb)||_0x40a6b8==='on';}function getLspPackageDir(_0x4a8210){const _0xb48033={_0x46a5be:0x38c,_0x159cb6:0x4c1,_0x165c55:0x4ac,_0x3e2ad5:0x44a,_0x52e0ff:0x3f5,_0x460f8f:0x389,_0xe68aab:0x396,_0x26f108:0x470,_0x5d54aa:0x3d3},_0x2ff34c={_0x57cdd3:0x1ce,_0x3865ce:0x9a},_0x1c80c3={_0x7f657d:0xa7,_0x336d5f:0x113};function _0x28ed9b(_0x14dec8,_0x535568,_0x1b09e7,_0x566d0f){return _0x4bd068(_0x535568,_0x1b09e7- -_0x1c80c3._0x7f657d,_0x1b09e7-_0x1c80c3._0x336d5f,_0x566d0f-0xfe);}function _0x2644e3(_0x23bcc7,_0x2a3cab,_0x354cd5,_0x383ea5){return _0x4bd068(_0x383ea5,_0x23bcc7- -_0x2ff34c._0x57cdd3,_0x354cd5-0x11,_0x383ea5-_0x2ff34c._0x3865ce);}return _0x4912a4[_0x2644e3(_0xb48033._0x46a5be,_0xb48033._0x159cb6,_0xb48033._0x165c55,_0xb48033._0x3e2ad5)](_0x3597eb[_0x28ed9b(0x379,_0xb48033._0x52e0ff,0x43f,0x395)](),_0x2644e3(0x2f0,0x40a,_0xb48033._0x460f8f,0x2a2),'lsp',_0x2644e3(_0xb48033._0xe68aab,_0xb48033._0x26f108,_0xb48033._0x5d54aa,0x373),sanitizePackageName(_0x4a8210));}function getLspBinDir(_0x209a63){const _0x3df3fe={_0x1884f5:0x2cf,_0x3cd4f8:0x1f2,_0x375350:0x10f,_0x1ddde7:0x238,_0x1f277e:0x32a},_0xf9fc01={_0x3929f0:0x12d},_0x43c3d7={_0x2fa20e:0xaa};function _0x38b522(_0x340b0e,_0x2f1011,_0x40727c,_0x524f5f){return _0x4bd068(_0x340b0e,_0x524f5f- -0x34d,_0x40727c-_0x43c3d7._0x2fa20e,_0x524f5f-0x13d);}function _0x4fb596(_0x39a866,_0xa1f0c2,_0x50ccb8,_0x4475c2){return _0x154255(_0x4475c2,_0xa1f0c2-0x65,_0x39a866-_0xf9fc01._0x3929f0,_0x4475c2-0x10c);}return _0x4912a4[_0x38b522(_0x3df3fe._0x1884f5,0x1fe,0x29d,0x20d)](getLspPackageDir(_0x209a63),_0x4fb596(_0x3df3fe._0x3cd4f8,_0x3df3fe._0x375350,_0x3df3fe._0x1ddde7,_0x3df3fe._0x1f277e),_0x4fb596(0x381,0x497,0x399,0x2bc));}async function findPackageBinary(_0x21f935,_0x53d170){const _0x11fb69={_0x5044e2:0x105,_0x1e0d59:0x6a,_0x42bb28:0xb2,_0x325be7:0x77,_0x37fc8d:0xb9,_0x26ce81:0x64f,_0x272752:0x5ed},_0x53364a={_0x3e5eb:0x3fb,_0x584077:0x86},_0x48cca8={_0x15f648:0x1d2};let _0x4bebe3=_0x4912a4[_0x783c8e(_0x11fb69._0x5044e2,_0x11fb69._0x1e0d59,0x17c,0x10f)](_0x53d170);function _0x783c8e(_0x58932e,_0x79cd7b,_0xe45b5b,_0x3ea719){return _0x154255(_0x3ea719,_0x79cd7b-0x1b6,_0x58932e- -0x13,_0x3ea719-_0x48cca8._0x15f648);}const _0x3ee93e=binaryNameForPlatform(_0x21f935);function _0x1daf50(_0x4d5793,_0x1d8034,_0x42c0b2,_0x2a1023){return _0x154255(_0x4d5793,_0x1d8034-0xff,_0x42c0b2-_0x53364a._0x3e5eb,_0x2a1023-_0x53364a._0x584077);}while(!![]){const _0x4cc46e=_0x4912a4['join'](_0x4bebe3,_0x783c8e(_0x11fb69._0x42bb28,-_0x11fb69._0x325be7,0x8e,_0x11fb69._0x37fc8d),_0x1daf50(0x70a,0x592,_0x11fb69._0x26ce81,_0x11fb69._0x272752),_0x3ee93e);if(await exists(_0x4cc46e))return _0x4cc46e;const _0x48bfe1=_0x4912a4['dirname'](_0x4bebe3);if(_0x48bfe1===_0x4bebe3)return void 0x0;_0x4bebe3=_0x48bfe1;}}async function findPathBinary(_0xa0cdc2,_0x16dafc){const _0x44a97a={_0x165099:0x43,_0x4caccf:0xea},_0x3f5447={_0x2ed134:0x16c},_0x10bd47=getLspBinDir(_0x16dafc),_0x1848ad=[_0x10bd47,process['env']['PATH']]['filter'](Boolean)[_0x1f0721(0x58,-_0x44a97a._0x165099,_0x44a97a._0x4caccf,-0xc0)](_0x4912a4['delimiter']);function _0x1f0721(_0xf3aa67,_0x9de9b0,_0xab1147,_0x22d845){return _0x154255(_0x9de9b0,_0x9de9b0-0xda,_0xf3aa67- -_0x3f5447._0x2ed134,_0x22d845-0x1c5);}try{return await _0x5da4af(_0xa0cdc2,{'path':_0x1848ad});}catch{return void 0x0;}}async function resolvePackageBinary(_0x2193dc){const _0x46e0f5={_0x45db79:0x2f8,_0x5b42e5:0x418,_0x97c43f:0x5b4,_0x2cd142:0x79e,_0x5f2c42:0x5c7,_0x3ab00a:0x4b2,_0x49998c:0x377,_0x1dae15:0x5a3,_0x3e5026:0x5ee,_0x42b0b0:0x580,_0x40be88:0x4f5,_0x54e7f9:0x4bc,_0x3fb90a:0x4f8,_0x268433:0x34e},_0x56f238={_0x5b2bf0:0x276,_0x37a57b:0x50,_0x868f71:0x137},_0x507e0d={_0x596416:0x4b},_0x2b0914={_0x4a2cc6:0x2,_0x426d18:0x59},_0x2b7044={_0x30984b:0xf6,_0x17918a:0x78},_0xc594bf={_0xe55ba7:0x88};function _0x4c4f4c(_0x55ac3f,_0x19697b,_0x48ac5c,_0x2fe57f){return _0x154255(_0x19697b,_0x19697b-0x150,_0x2fe57f-0x322,_0x2fe57f-_0xc594bf._0xe55ba7);}const _0x4a2e09=_0x2193dc[_0x4c4f4c(0x466,_0x46e0f5._0x45db79,0x597,0x43b)]??_0x2193dc[_0x43f54a(0x4cd,0x39b,_0x46e0f5._0x5b42e5,0x46d)],_0xa12e2a=await findPackageBinary(_0x4a2e09,_0x2193dc['startDir']);if(_0xa12e2a)return _0xa12e2a;const _0x5e7d59=await findPathBinary(_0x4a2e09,_0x2193dc['packageName']);if(_0x5e7d59)return _0x5e7d59;function _0x43f54a(_0x255308,_0x2a1eeb,_0x5d8cd9,_0x1a5d6b){return _0x4bd068(_0x2a1eeb,_0x255308-_0x2b7044._0x30984b,_0x5d8cd9-0x161,_0x1a5d6b-_0x2b7044._0x17918a);}const _0x52c47d=_0x2193dc[_0x43f54a(0x67e,0x5f9,_0x46e0f5._0x97c43f,_0x46e0f5._0x2cd142)]??process[_0x4c4f4c(_0x46e0f5._0x5f2c42,_0x46e0f5._0x3ab00a,0x399,0x514)];if(shouldDisableLspDownload(_0x52c47d))return void 0x0;const _0x46ab1c=getLspPackageDir(_0x2193dc['packageName']),_0x571c7e=_0x2193dc[_0x43f54a(0x4cd,_0x46e0f5._0x49998c,_0x46e0f5._0x1dae15,0x5f0)]+':'+_0x4a2e09;let _0x4d6880=installPromises['get'](_0x571c7e);!_0x4d6880&&(_0x4d6880=((async()=>{await mkdir(_0x46ab1c,{'recursive':!![]});const _0x3ac85b=await runNpmInstall(_0x46ab1c,_0x2193dc[_0x558988(0x27d,_0x56f238._0x5b2bf0,0x247,0x35e)],_0x52c47d);if(!_0x3ac85b)return void 0x0;const _0x44894b=_0x4912a4[_0x134369(-0x16e,-_0x56f238._0x37a57b,-_0x56f238._0x868f71,-0x6b)](getLspBinDir(_0x2193dc['packageName']),binaryNameForPlatform(_0x4a2e09));function _0x134369(_0x1e9070,_0x129163,_0x54302c,_0x10cced){return _0x4c4f4c(_0x1e9070-_0x2b0914._0x4a2cc6,_0x1e9070,_0x54302c-_0x2b0914._0x426d18,_0x10cced- -0x551);}function _0x558988(_0x585d04,_0x2b36d0,_0x5ccb70,_0x2eba21){return _0x43f54a(_0x5ccb70- -0x286,_0x585d04,_0x5ccb70-0x8a,_0x2eba21-_0x507e0d._0x596416);}return await exists(_0x44894b)?_0x44894b:void 0x0;})()),installPromises[_0x43f54a(_0x46e0f5._0x3e5026,_0x46e0f5._0x42b0b0,0x690,_0x46e0f5._0x40be88)](_0x571c7e,_0x4d6880));try{return await _0x4d6880;}catch{return void 0x0;}finally{installPromises[_0x43f54a(_0x46e0f5._0x54e7f9,_0x46e0f5._0x3fb90a,_0x46e0f5._0x268433,0x4e2)](_0x571c7e);}}var TYPESCRIPT_EXTENSIONS=[_0x154255(0x2f8,0x261,0x1b5,0x30a),'.tsx',_0x4bd068(0x497,0x426,0x2c2,0x4f9),_0x4bd068(0x585,0x47f,0x3e2,0x355),_0x4bd068(0x804,0x68b,0x58f,0x64e),_0x4bd068(0x502,0x647,0x745,0x4d4),'.mts','.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x4bd068(0x239,0x3af,0x30e,0x2a7)],TYPESCRIPT_ROOT_MARKERS=[_0x154255(0xf9,0xa4,0x101,0xc7),_0x154255(0x38d,0x286,0x2c5,0x2b4),_0x154255(0x45,0x20f,0xe3,0x96),'pnpm-lock.yaml','yarn.lock',_0x154255(0x2eb,0x39b,0x262,0x1ba),_0x4bd068(0x5ec,0x549,0x566,0x4ba),_0x4bd068(0x770,0x690,0x54e,0x643)],BIOME_ROOT_MARKERS=[_0x4bd068(0x541,0x4c2,0x5fd,0x44a),_0x154255(0x230,0x3b4,0x27d,0x373),_0x154255(-0x42,0x147,0x101,0x6a),'bun.lockb',_0x154255(0x16e,0x215,0xe3,0x1e8),_0x154255(0x345,0x21c,0x26f,0x342),_0x4bd068(0x3b9,0x44d,0x58f,0x529),_0x154255(0x442,0x3f4,0x2fa,0x2dc)];async function exists2(_0x236424){try{return await _0x36efd5(_0x236424),!![];}catch{return![];}}async function findUp(_0x2cbe61,_0x2db5b4){const _0x56419b={_0x36311d:0x297,_0x7e502a:0x2,_0x225a60:0x2bc,_0x554373:0x219,_0x16ff2c:0x155,_0x1eb3dc:0xe8,_0x12c040:0x32c,_0x596301:0x2f8},_0x1795cf={_0x20bdb2:0x37,_0x326315:0x124};function _0x31fe22(_0x2972bd,_0x101e0d,_0x18358d,_0xf51c3a){return _0x154255(_0x2972bd,_0x101e0d-_0x1795cf._0x20bdb2,_0x101e0d-0x1e2,_0xf51c3a-_0x1795cf._0x326315);}let _0x474727=_0x4456fe[_0x394299(_0x56419b._0x36311d,0x16d,-_0x56419b._0x7e502a,_0x56419b._0x225a60)](_0x2cbe61);const _0x247eee=_0x4456fe['extname'](_0x474727);function _0x394299(_0x1212f4,_0x8879e4,_0x4f3c14,_0xa9a39b){return _0x4bd068(_0xa9a39b,_0x8879e4- -0x341,_0x4f3c14-0x141,_0xa9a39b-0x8f);}if(_0x247eee)_0x474727=_0x4456fe['dirname'](_0x474727);while(!![]){for(const _0xd0e7ed of _0x2db5b4){if(await exists2(_0x4456fe[_0x394299(0x23f,_0x56419b._0x554373,_0x56419b._0x16ff2c,_0x56419b._0x1eb3dc)](_0x474727,_0xd0e7ed)))return _0x474727;}const _0x21042d=_0x4456fe[_0x394299(0x475,_0x56419b._0x12c040,_0x56419b._0x596301,0x423)](_0x474727);if(_0x21042d===_0x474727)return void 0x0;_0x474727=_0x21042d;}}async function hasDenoRoot(_0x34fc53){const _0x527f51={_0x2c0452:0x28d};function _0x1053e3(_0x8c4318,_0x56afed,_0x5e7e8d,_0x48a44e){return _0x154255(_0x8c4318,_0x56afed-0x75,_0x5e7e8d-0x156,_0x48a44e-0x136);}return await exists2(_0x4456fe[_0x1053e3(0x39f,_0x527f51._0x2c0452,0x31a,0x215)](_0x34fc53,'deno.json'))||await exists2(_0x4456fe['join'](_0x34fc53,'deno.jsonc'));}async function resolveTsserverPath(_0x2fbd7a){const _0x320c8a={_0x35acc2:0x6dc,_0x3e2e79:0x5e7,_0x3d9b5c:0x732,_0x3b84bc:0x5b4,_0x281cb6:0x934,_0x34a9e7:0x7ca,_0x405149:0x2bd,_0x506a31:0x2b6,_0x18e048:0x690,_0x4fc36c:0x1ef,_0x5da97c:0x15a,_0x348336:0x140,_0x1c8f9a:0x134,_0x48623f:0x121,_0x3c9e94:0xf7,_0x285645:0x12,_0x535846:0x11f},_0x203dfb={_0x2e8e5c:0x33a,_0x5c455a:0x1d5,_0x1bce39:0xe4};let _0x2b7139=_0x4456fe[_0x28de70(_0x320c8a._0x35acc2,0x4a8,_0x320c8a._0x3e2e79,_0x320c8a._0x3d9b5c)](_0x2fbd7a);function _0x28de70(_0x829848,_0x18a7cb,_0x2ecff5,_0x53ee5e){return _0x4bd068(_0x829848,_0x2ecff5-0x139,_0x2ecff5-0x113,_0x53ee5e-0xe);}function _0x3120b6(_0x50192c,_0x46199d,_0x391bb2,_0x46506c){return _0x4bd068(_0x50192c,_0x46199d- -_0x203dfb._0x2e8e5c,_0x391bb2-_0x203dfb._0x5c455a,_0x46506c-_0x203dfb._0x1bce39);}while(!![]){const _0x329387=_0x4456fe['join'](_0x2b7139,_0x28de70(_0x320c8a._0x3b84bc,0x508,0x594,0x468),'typescript',_0x28de70(0x6be,_0x320c8a._0x281cb6,_0x320c8a._0x34a9e7,0x8bc),_0x3120b6(_0x320c8a._0x405149,0x1c9,0x1c6,_0x320c8a._0x506a31));if(await exists2(_0x329387))return _0x329387;const _0xdf9762=_0x4456fe['dirname'](_0x2b7139);if(_0xdf9762===_0x2b7139)break;_0x2b7139=_0xdf9762;}const _0x213ccc=getLspPackageDir(_0x28de70(0x7cc,_0x320c8a._0x18e048,0x6f7,0x7b5)),_0x15c25e=await resolvePackageBinary({'packageName':'typescript','binaryName':_0x3120b6(_0x320c8a._0x4fc36c,_0x320c8a._0x5da97c,_0x320c8a._0x348336,_0x320c8a._0x1c8f9a),'startDir':_0x2fbd7a});if(!_0x15c25e)return void 0x0;const _0x2f29ab=_0x4456fe['join'](_0x213ccc,_0x3120b6(0x10e,_0x320c8a._0x48623f,_0x320c8a._0x3c9e94,_0x320c8a._0x285645),_0x28de70(0x5de,0x738,0x6f7,0x6b3),'lib',_0x3120b6(0xd2,0x1c9,0x10b,_0x320c8a._0x535846));return await exists2(_0x2f29ab)?_0x2f29ab:void 0x0;}var TypeScriptServer={'id':_0x4bd068(0x46e,0x5be,0x71a,0x69c),'name':_0x154255(0x11d,0x28a,0x112,0xdb),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x40eef6){const _0x57942d=await findUp(_0x40eef6,TYPESCRIPT_ROOT_MARKERS);if(!_0x57942d)return void 0x0;return await hasDenoRoot(_0x57942d)?void 0x0:_0x57942d;},async 'spawn'(_0x5c9e68){const _0x50233d={_0x4ec14a:0x2fa,_0x1bf8be:0x410},_0x45d83b={_0x3fd8ed:0xf3},_0x2eacf8={_0x27efd7:0x1c,_0x3a47e9:0xb4},_0xf90c6c=await resolveTsserverPath(_0x5c9e68);function _0xaf63e5(_0xcc7aa8,_0x3158c8,_0x185098,_0x6d1c07){return _0x4bd068(_0x3158c8,_0x6d1c07-_0x2eacf8._0x27efd7,_0x185098-0x187,_0x6d1c07-_0x2eacf8._0x3a47e9);}if(!_0xf90c6c)return void 0x0;const _0x258035=await resolvePackageBinary({'packageName':_0x4d9f7b(_0x50233d._0x4ec14a,_0x50233d._0x1bf8be,0x339,0x410),'binaryName':'typescript-language-server','startDir':_0x5c9e68});function _0x4d9f7b(_0x18c60d,_0x12c626,_0x543262,_0x1a0677){return _0x154255(_0x18c60d,_0x12c626-0x80,_0x543262-_0x45d83b._0x3fd8ed,_0x1a0677-0x1aa);}if(!_0x258035)return void 0x0;return{'process':_0x393f6a(_0x258035,[_0xaf63e5(0x4ea,0x3f2,0x347,0x492)],{'cwd':_0x5c9e68,'stdio':'pipe'}),'initialization':{'tsserver':{'path':_0xf90c6c}}};}},BiomeServer={'id':'biome','name':_0x4bd068(0x6b1,0x5b4,0x45f,0x667),'extensions':BIOME_EXTENSIONS,async 'root'(_0x5b2ccd){return findUp(_0x5b2ccd,BIOME_ROOT_MARKERS);},async 'spawn'(_0xe074ce){const _0x27d32d={_0x1fd7b0:0x14a,_0x25241d:0x1ab},_0x224093={_0x4f7896:0x1b},_0x5dd29a={_0x483418:0x53c,_0x16d4d9:0xf0};function _0x595894(_0x1cde52,_0x4fa4a3,_0x4fac34,_0x3f8fe3){return _0x4bd068(_0x3f8fe3,_0x1cde52- -_0x5dd29a._0x483418,_0x4fac34-_0x5dd29a._0x16d4d9,_0x3f8fe3-0x15d);}function _0x1b7b85(_0xaa71f2,_0x48d2a4,_0x48545b,_0x1fd974){return _0x4bd068(_0xaa71f2,_0x48545b-_0x224093._0x4f7896,_0x48545b-0x1ab,_0x1fd974-0x12d);}const _0x7599f6=await findPackageBinary(_0x595894(-0x9d,-0x1e5,0x6e,0xb2),_0xe074ce)??await resolvePackageBinary({'packageName':_0x595894(-0x14c,-0x89,-_0x27d32d._0x1fd7b0,-_0x27d32d._0x25241d),'binaryName':'biome','startDir':_0xe074ce});if(!_0x7599f6)return void 0x0;return{'process':_0x393f6a(_0x7599f6,['lsp-proxy','--stdio'],{'cwd':_0xe074ce,'stdio':_0x1b7b85(0x45a,0x502,0x5d0,0x55c)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0xb5f0fa){const _0x2f9406={_0x4c5c4d:0x38,_0x4f43cb:0x277,_0x33defd:0x1a3},_0x5ad066={_0x5b4b17:0x125,_0x29db0f:0x125,_0x47c172:0xbd};function _0x2bb4a7(_0x4ca6e1,_0x48502b,_0x8de89b,_0x5f45e1){return _0x154255(_0x4ca6e1,_0x48502b-0x164,_0x5f45e1-0x32f,_0x5f45e1-0x4e);}function _0x1991f8(_0x5b5933,_0x12b410,_0xf2210,_0x3e53c8){return _0x154255(_0x5b5933,_0x12b410-_0x5ad066._0x5b4b17,_0x12b410- -_0x5ad066._0x29db0f,_0x3e53c8-_0x5ad066._0x47c172);}const _0x2f80c7=_0x4456fe[_0x1991f8(-0x71,-_0x2f9406._0x4c5c4d,-0x132,-0x173)](_0xb5f0fa)[_0x1991f8(_0x2f9406._0x4f43cb,_0x2f9406._0x33defd,0x151,0x252)]();return BUILTIN_LSP_SERVERS['filter'](_0x266999=>_0x266999[_0x1991f8(0x80,0x15,0xe7,-0x9b)][_0x2bb4a7(0x4e4,0x4c2,0x409,0x479)](_0x2f80c7));}function stateKey(_0x291da5,_0x28bc62){return _0x28bc62+':'+_0x291da5['id'];}function diagnosticsKeyToPath(_0x98c1e3){const _0x46f9bc={_0x5b9505:0x8a3,_0x19e967:0x718},_0x332cab={_0x2b0506:0x165};if(!_0x98c1e3[_0x38b7cd(0x8db,_0x46f9bc._0x5b9505,_0x46f9bc._0x19e967,0x7d8)]('file://'))return _0x98c1e3;function _0x38b7cd(_0x354382,_0x5c99d0,_0x2257f6,_0x5b98c9){return _0x4bd068(_0x2257f6,_0x5b98c9-_0x332cab._0x2b0506,_0x2257f6-0x17e,_0x5b98c9-0x171);}return fileURLToPath(_0x98c1e3);}function nextFileVersion(_0x4c6f1d,_0x4860d4){const _0x246f55={_0x37a6f2:0x77a,_0x684d33:0x62e,_0x366151:0x54b,_0x116dd1:0x40b,_0x5dfbf8:0x586,_0x180b37:0x653},_0x28f81b={_0xb5b314:0x3e5},_0x2d3fd8={_0x1af852:0x175},_0x4fd13c=(_0x4c6f1d[_0x132b6c(0x6a8,0x799,_0x246f55._0x37a6f2,_0x246f55._0x684d33)][_0x132b6c(_0x246f55._0x366151,0x54e,_0x246f55._0x116dd1,0x47a)](_0x4860d4)??0x1)+0x1;function _0xb1ca95(_0x323fe9,_0x224e39,_0xfef02c,_0x13f9bd){return _0x154255(_0x13f9bd,_0x224e39-0xf1,_0x323fe9-_0x2d3fd8._0x1af852,_0x13f9bd-0x85);}function _0x132b6c(_0x4f2528,_0x2f28a4,_0x252b18,_0x511783){return _0x154255(_0x252b18,_0x2f28a4-0x19b,_0x4f2528-_0x28f81b._0xb5b314,_0x511783-0x1);}return _0x4c6f1d['fileVersions'][_0x132b6c(0x547,0x501,_0x246f55._0x5dfbf8,_0x246f55._0x180b37)](_0x4860d4,_0x4fd13c),_0x4fd13c;}async function collectClientResults(_0x5430a5){const _0x3b64ee={_0x3294f4:0x456,_0x56788c:0x263,_0x329e7a:0x1b3},_0x2782a1={_0x5c327f:0x89},_0x3bbbaa={_0x876dbb:0x1ee,_0x55e485:0x115,_0x1d1c08:0xdd};function _0x1ea873(_0x23bb98,_0x2360e0,_0x5e0479,_0x8a476c){return _0x154255(_0x2360e0,_0x2360e0-_0x3bbbaa._0x876dbb,_0x5e0479-_0x3bbbaa._0x55e485,_0x8a476c-_0x3bbbaa._0x1d1c08);}function _0x57c4a5(_0x33d094,_0xb0ccae,_0x52017d,_0x4d96cb){return _0x4bd068(_0x52017d,_0x33d094- -0xea,_0x52017d-_0x2782a1._0x5c327f,_0x4d96cb-0x190);}const _0x2259ac=await Promise[_0x1ea873(0x386,_0x3b64ee._0x3294f4,0x3de,0x33f)](_0x5430a5);return _0x2259ac[_0x1ea873(0x163,_0x3b64ee._0x56788c,0x218,_0x3b64ee._0x329e7a)](_0x7562dc=>_0x7562dc[_0x1ea873(0x3f6,0x2d2,0x2ff,0x296)]===_0x1ea873(0x2bb,0x203,0x2e8,0x234)?_0x7562dc[_0x57c4a5(0x3ce,0x33b,0x29d,0x31e)]:[]);}function createLspService(_0x2f72cb={}){const _0xf40df3={_0x1577c4:0x35d,_0x4b45ac:0x3a1},_0x2f2a4e={_0x42ad8a:0x5a5,_0x4e5d3d:0x166,_0x382587:0x222,_0xfa4234:0x12d,_0x4ef24c:0x41c,_0x4e274f:0x531,_0x5eb82e:0x61e,_0x56935a:0x5a2,_0x3c0249:0x1be,_0x33642e:0x30e,_0x18434a:0x20c,_0x301841:0x219,_0x5c8865:0xb7,_0xb4030e:0x1b2,_0x47925a:0x371,_0x560265:0x56c,_0x154c11:0x3f6,_0x1983b2:0x3f0,_0x7037fc:0x51e,_0x3b4867:0xf0,_0x36ed2f:0xce},_0x581b5c={_0x923f49:0x1b9,_0x21b9c2:0x3bd},_0x2e5f54={_0x4fe3ef:0x10e,_0x575c8e:0x21},_0x3146a6={_0xd385c5:0x8a,_0x2f4fcd:0x137},_0x13a816={_0x1aa312:0xca,_0x4779fb:0xe6},_0x1aa177={_0x201cb5:0x115,_0x47c187:0xa,_0x1d7cd6:0x15b},_0x3f642e={_0x528ff9:0x36e,_0x59dcfb:0x218,_0x4cb60f:0x2bd,_0x49b1ba:0x272},_0x1500dd={_0x4abb85:0x5d,_0x51197f:0x18d},_0x50069f={_0x24ed16:0x1c4,_0x139bdd:0x4b4},_0x3f33cb={_0x4eb446:0x1c7,_0x4d03c3:0xa3},_0x17913e={_0x253fbb:0x4d7},_0xc7459={_0x16b414:0x13e},_0x28b646={_0x394c32:0x225,_0x3e9db9:0x1ff},_0x581cd6={_0x288503:0x2ea},_0x5f7097={_0x33eae0:0x215,_0x2ebed8:0x162,_0x32aae0:0x245,_0x3018db:0x143},_0x5040ed={_0x465b9f:0x3f9},_0x3f4753={_0x232062:0x53},_0x4712e2={_0x2e8193:0x3cd,_0x1315b6:0x52a,_0x2158ca:0x4cc,_0x4dd248:0x4f3},_0x7997ac={_0x4a8fb8:0x1f2,_0x19f15f:0x331,_0x400912:0x1},_0xa1a383={_0x4588aa:0x14},_0x3f5dec={_0x2d300f:0x1ff,_0x5d8531:0xa8},_0x15f47d={_0x27d8b3:0x1cf},_0x57675c={_0x487c54:0x42d,_0x3d0d37:0x4bf},_0x362151={_0xc010d5:0xdf,_0x2735fc:0x6f,_0x27b6f5:0xd0,_0x4229b4:0x362,_0xf18066:0x467,_0x474170:0x381,_0x2c6ddc:0x1e9,_0x5568c1:0x1b8,_0x6b695c:0x461,_0x111cab:0x2fc,_0x11dcee:0x27b,_0xbd844f:0x359,_0x3592ed:0x2d4,_0x166e1f:0x438,_0x3f522e:0x2ce,_0x5b2225:0xd3,_0x2bba33:0x106,_0x3f307b:0x232,_0x59b455:0xb7,_0x3e02bf:0x139,_0x1e3d74:0x1e3,_0x5f0dcd:0x194,_0x5389d6:0x2e0,_0x6f87bd:0x1ca,_0x386b98:0x1e1,_0x5a64d7:0x82,_0x561f6a:0x327,_0x5028d2:0x3ea,_0x47d38b:0x1a1},_0x12d9bb={_0x13c4b9:0x5b8,_0xbf4dd5:0x46c,_0x262d89:0x3ce,_0x59ade5:0x3c7,_0x4af7e9:0x530,_0xecd331:0xf8,_0x5f1cb8:0xdd,_0x4873de:0x168,_0x342575:0x125,_0x36c60a:0xfd,_0x6e2f7b:0x197,_0x356bd9:0x267,_0x177716:0x20e,_0x2e7c36:0xff,_0x1c81ec:0xad,_0x5a4178:0x32c},_0x227fb9={_0xec7e3b:0x401,_0x46996c:0x4f0,_0x392be5:0x4e0,_0x5d3205:0x622,_0x2149c8:0x799,_0x441031:0x6f5,_0x3362d0:0x6c9,_0x506f85:0x7b4,_0xe78c07:0x660,_0x226568:0x4eb,_0xc9518e:0x60d,_0x3666a9:0x6c4,_0x3f9b34:0x5d3,_0xb5385c:0x52c,_0x52979f:0x672,_0x256913:0x6d8},_0xb5d32b={_0x23c0b1:0x1ff,_0x211e06:0x3f2,_0x558aaa:0x407,_0x56f1a2:0x244,_0x48fa6b:0x22b,_0x3be329:0xfc,_0xc4ce93:0x23d,_0x310e22:0x21a,_0x7ca51f:0x3c5,_0x7efbb5:0x466,_0x32ddbb:0x30b,_0x558a8d:0x394,_0x560d47:0x1ff},_0xcec20c={_0x47e732:0x15a},_0x2ac875={_0x3e1afe:0x1cb,_0x4cde23:0x12e},_0xbefbd6={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x1b0d22=()=>_0x2f72cb[_0x40d087(0x3d1,0x60b,0x4b0,0x5b8)]!==![];async function _0xe71e28(_0xf3795c,_0x57f357){const _0x5a1903=stateKey(_0xf3795c,_0x57f357),_0x141ca3=_0xbefbd6[_0x64f2f6(_0x227fb9._0xec7e3b,_0x227fb9._0x46996c,_0x227fb9._0x392be5,0x4f3)][_0x4246b9(0x721,0x706,_0x227fb9._0x5d3205,_0x227fb9._0x2149c8)](_0x1e45c2=>_0x1e45c2['serverId']===_0xf3795c['id']&&_0x1e45c2[_0x4246b9(0x731,0x718,0x6fe,0x72e)]===_0x57f357);function _0x64f2f6(_0x57c272,_0xba90c0,_0x2e766d,_0x13ed57){return _0x40d087(_0x57c272-_0x2ac875._0x3e1afe,_0xba90c0-0x44,_0x13ed57-_0x2ac875._0x4cde23,_0x2e766d);}if(_0x141ca3)return _0x141ca3;if(_0xbefbd6[_0x4246b9(0x816,_0x227fb9._0x441031,_0x227fb9._0x3362d0,0x580)][_0x64f2f6(0x4ac,0x3ed,0x490,0x4e5)](_0x5a1903))return void 0x0;function _0x4246b9(_0x3c8d15,_0x12a043,_0x208486,_0x3fddf4){return _0x40d087(_0x3c8d15-0x105,_0x12a043-0xcd,_0x208486-_0xcec20c._0x47e732,_0x12a043);}const _0x382df6=_0xbefbd6[_0x64f2f6(_0x227fb9._0x506f85,0x4d2,_0x227fb9._0xe78c07,0x646)][_0x4246b9(_0x227fb9._0x226568,_0x227fb9._0xc9518e,0x5f1,_0x227fb9._0x3666a9)](_0x5a1903);if(_0x382df6)return _0x382df6;const _0xa38d71=((async()=>{const _0x3c83ee={_0x4643c8:0x9d,_0x175dfe:0x5f,_0x3e5f4e:0x3f7};function _0x3510fe(_0x249bc8,_0x4d29fa,_0x1afdaa,_0x14f650){return _0x64f2f6(_0x249bc8-_0x3c83ee._0x4643c8,_0x4d29fa-_0x3c83ee._0x175dfe,_0x249bc8,_0x14f650- -_0x3c83ee._0x3e5f4e);}function _0x3b7d9d(_0x235dce,_0x473cab,_0x450451,_0x1cc6d7){return _0x4246b9(_0x235dce-0x135,_0x235dce,_0x1cc6d7- -0x298,_0x1cc6d7-0x19f);}try{const _0x40ee0c=await _0xf3795c['spawn'](_0x57f357);if(!_0x40ee0c)return _0xbefbd6['broken']['add'](_0x5a1903),void 0x0;const _0x582d5b=await createLspClient({'server':_0xf3795c,'root':_0x57f357,'handle':_0x40ee0c}),_0x23c0d3=_0xbefbd6['clients'][_0x3510fe(0xa5,0x339,0x24d,_0xb5d32b._0x23c0b1)](_0x3cbb70=>_0x3cbb70[_0x3b7d9d(0x388,0x4f0,0x389,0x4e1)]===_0xf3795c['id']&&_0x3cbb70[_0x3b7d9d(0x4c6,0x53c,0x52d,0x466)]===_0x57f357);if(_0x23c0d3)return await _0x582d5b[_0x3b7d9d(0x45d,0x3ee,_0xb5d32b._0x211e06,_0xb5d32b._0x558aaa)](),_0x23c0d3;return _0xbefbd6[_0x3510fe(0x211,_0xb5d32b._0x56f1a2,_0xb5d32b._0x48fa6b,_0xb5d32b._0x3be329)][_0x3b7d9d(_0xb5d32b._0xc4ce93,0x195,0x1ca,_0xb5d32b._0x310e22)](_0x582d5b),_0x582d5b;}catch{return _0xbefbd6[_0x3510fe(0x30c,_0xb5d32b._0x7ca51f,0x321,0x2a6)][_0x3b7d9d(_0xb5d32b._0x7efbb5,_0xb5d32b._0x32ddbb,0x233,_0xb5d32b._0x558a8d)](_0x5a1903),void 0x0;}finally{_0xbefbd6['spawning'][_0x3b7d9d(_0xb5d32b._0x560d47,0x315,0x2e4,0x223)](_0x5a1903);}})());return _0xbefbd6[_0x4246b9(_0x227fb9._0x3f9b34,_0x227fb9._0xb5385c,_0x227fb9._0x52979f,0x69c)][_0x4246b9(0x636,_0x227fb9._0x256913,0x5ed,0x52e)](_0x5a1903,_0xa38d71),_0xa38d71;}async function _0x294124(_0xcd7424,_0x351426){const _0x35cf85={_0x5e70a3:0x1d6,_0x268a41:0x140,_0xfe0ebe:0x138},_0x1955f4={_0x3c04ca:0x8e};function _0x158f31(_0x2684a0,_0x5d3642,_0x3af324,_0x4eae11){return _0x40d087(_0x2684a0-0x1c8,_0x5d3642-_0x1955f4._0x3c04ca,_0x5d3642- -0x3cb,_0x4eae11);}if(!_0x1b0d22())return[];const _0x55f0df=[];for(const _0x5f2fdc of getServersForFile(_0xcd7424)){const _0x50285b=await _0x5f2fdc[_0x884629(_0x12d9bb._0x13c4b9,_0x12d9bb._0xbf4dd5,0x509,_0x12d9bb._0x262d89)](_0xcd7424);if(!_0x50285b)continue;const _0xcf42b3=stateKey(_0x5f2fdc,_0x50285b);if(_0xbefbd6[_0x884629(_0x12d9bb._0x59ade5,0x437,0x400,_0x12d9bb._0x4af7e9)][_0x158f31(-0x7a,-0x14,-0x4a,_0x12d9bb._0xecd331)](_0xcf42b3))continue;const _0x24a23=_0xbefbd6[_0x158f31(-_0x12d9bb._0x5f1cb8,-0x6,-_0x12d9bb._0x4873de,_0x12d9bb._0x342575)][_0x158f31(0x102,_0x12d9bb._0x36c60a,_0x12d9bb._0x6e2f7b,_0x12d9bb._0x356bd9)](_0x4b51c4=>_0x4b51c4[_0x158f31(0x25f,0x254,0x288,0x142)]===_0x5f2fdc['id']&&_0x4b51c4['root']===_0x50285b);if(_0x24a23){_0x55f0df[_0x884629(0xae,0x220,_0x12d9bb._0x177716,_0x12d9bb._0x2e7c36)](_0x24a23);continue;}if(!_0x351426)continue;const _0x288ba8=await _0xe71e28(_0x5f2fdc,_0x50285b);if(_0x288ba8)_0x55f0df[_0x884629(_0x12d9bb._0x1c81ec,0x220,_0x12d9bb._0x5a4178,0x1f3)](_0x288ba8);}function _0x884629(_0x2d78e3,_0x39e1c7,_0x5b525f,_0x6eaadf){return _0x40d087(_0x2d78e3-_0x35cf85._0x5e70a3,_0x39e1c7-_0x35cf85._0x268a41,_0x39e1c7- -_0x35cf85._0xfe0ebe,_0x5b525f);}return _0x55f0df;}async function _0xf8d4bd(_0x14a981,_0x44b2b5=![]){const _0x3ea60b={_0x4e1bf8:0x55,_0x40aa2f:0x50c,_0x3e847c:0x101},_0x4ccf80={_0xb5f0f1:0x40,_0x1c8a87:0xe7};function _0x147de2(_0x3830aa,_0x26e96d,_0x56d5b0,_0x1d1927){return _0x40d087(_0x3830aa-_0x4ccf80._0xb5f0f1,_0x26e96d-0xfd,_0x26e96d-_0x4ccf80._0x1c8a87,_0x1d1927);}const _0x1012c4=await _0x294124(_0x14a981,!![]);await Promise['all'](_0x1012c4[_0x147de2(_0x57675c._0x487c54,0x48c,_0x57675c._0x3d0d37,0x477)](async _0x1f73f6=>{const _0x119b91={_0xe23059:0x4c};!_0xbefbd6[_0x2dcb9e(_0x362151._0xc010d5,0x15e,_0x362151._0x2735fc,-_0x362151._0x27b6f5)]['has'](_0x1f73f6[_0x509eb0(0x266,_0x362151._0x4229b4,_0x362151._0xf18066,_0x362151._0x474170)]+':'+_0x1f73f6[_0x2dcb9e(_0x362151._0x2c6ddc,0x67,0x17f,_0x362151._0x5568c1)]+':'+_0x14a981)&&(await _0x1f73f6[_0x509eb0(_0x362151._0x6b695c,_0x362151._0x111cab,_0x362151._0x11dcee,_0x362151._0xbd844f)][_0x509eb0(0x1a8,_0x362151._0x3592ed,_0x362151._0x166e1f,_0x362151._0x3f522e)]({'path':_0x14a981}),_0xbefbd6[_0x2dcb9e(-_0x362151._0x5b2225,_0x362151._0x2bba33,_0x362151._0x2735fc,-0x3)][_0x509eb0(_0x362151._0x3f307b,0x215,0x190,_0x362151._0x59b455)](_0x1f73f6[_0x2dcb9e(_0x362151._0x3e02bf,0x36a,0x1fa,0x19c)]+':'+_0x1f73f6['root']+':'+_0x14a981));await _0x1f73f6[_0x2dcb9e(_0x362151._0x1e3d74,0xe0,_0x362151._0x5f0dcd,_0x362151._0x5389d6)][_0x2dcb9e(0xcd,_0x362151._0x6f87bd,_0x362151._0x386b98,_0x362151._0x5a64d7)]({'path':_0x14a981,'version':nextFileVersion(_0xbefbd6,_0x14a981)});function _0x2dcb9e(_0xe4d557,_0x42d5f9,_0x4f7595,_0x9daf54){return _0x147de2(_0xe4d557-_0x3ea60b._0x4e1bf8,_0x4f7595- -_0x3ea60b._0x40aa2f,_0x4f7595-_0x3ea60b._0x3e847c,_0xe4d557);}function _0x509eb0(_0x355ac7,_0x3952c4,_0x5ab366,_0xea0961){return _0x147de2(_0x355ac7-0x1e1,_0x3952c4- -0x3a4,_0x5ab366-_0x119b91._0xe23059,_0x355ac7);}if(_0x44b2b5)await _0x1f73f6[_0x509eb0(_0x362151._0x561f6a,0x2ca,_0x362151._0x5028d2,_0x362151._0x47d38b)]({'path':_0x14a981});}));}async function _0x132e38(_0x265da7){const _0x588086={_0x10ce9e:0x172};function _0x16a650(_0x5d548f,_0x3241b2,_0x1d6a46,_0x347889){return _0x40d087(_0x5d548f-0x13f,_0x3241b2-_0x15f47d._0x27d8b3,_0x347889- -0x3cd,_0x3241b2);}await _0xf8d4bd(_0x265da7[_0x82470e(0x221,_0x3f5dec._0x2d300f,0x345,0x210)],![]);function _0x82470e(_0x3af74b,_0x1ab34d,_0x5ea433,_0x1ea453){return _0x40d087(_0x3af74b-_0x588086._0x10ce9e,_0x1ab34d-0xc,_0x1ab34d- -0x276,_0x5ea433);}return _0x294124(_0x265da7[_0x16a650(0xb1,0x18b,-0x4b,_0x3f5dec._0x5d8531)],![]);}async function _0xbfddf2(_0x31ecf8){const _0x117648={_0x14f686:0xcf,_0x3f978e:0x5be};function _0x53059f(_0x2f408d,_0x335748,_0x3e2c6d,_0x4a3780){return _0x40d087(_0x2f408d-_0x117648._0x14f686,_0x335748-0x110,_0x335748- -_0x117648._0x3f978e,_0x4a3780);}function _0x33bdaf(_0x19a7f3,_0x3144c9,_0x318521,_0x6b2cfc){return _0x40d087(_0x19a7f3-_0xa1a383._0x4588aa,_0x3144c9-0x79,_0x6b2cfc-0x9e,_0x19a7f3);}const _0x4c5cae=await _0x132e38(_0x31ecf8);return collectClientResults(_0x4c5cae['map'](_0xb84b65=>_0xb84b65[_0x33bdaf(0x6af,0x5a8,0x4f1,0x62c)][_0x33bdaf(0x3ab,0x459,0x431,0x520)](_0x31ecf8)));}function _0x40d087(_0x275c48,_0x3a0808,_0x7ec03a,_0x58286c){return _0x154255(_0x58286c,_0x3a0808-_0x7997ac._0x4a8fb8,_0x7ec03a-_0x7997ac._0x19f15f,_0x58286c-_0x7997ac._0x400912);}return{'isEnabled':_0x1b0d22,async 'hasClients'(_0x5af3ec){const _0x556340={_0x47361d:0x3f,_0x1e5e34:0x15e};function _0x16b00f(_0x45226c,_0x25c69f,_0x184308,_0x24ab55){return _0x40d087(_0x45226c-_0x556340._0x47361d,_0x25c69f-0x111,_0x184308-_0x556340._0x1e5e34,_0x25c69f);}return(await _0x294124(_0x5af3ec,![]))[_0x16b00f(_0x4712e2._0x2e8193,_0x4712e2._0x1315b6,_0x4712e2._0x2158ca,_0x4712e2._0x4dd248)]>0x0||getServersForFile(_0x5af3ec)['length']>0x0;},'touchFile':_0xf8d4bd,async 'diagnostics'(){const _0x58831a={};function _0x33787b(_0x2e4750,_0x278569,_0x24344d,_0x1e01cf){return _0x40d087(_0x2e4750-_0x3f4753._0x232062,_0x278569-0xf5,_0x278569- -0x1e7,_0x24344d);}for(const _0x3bb7b7 of _0xbefbd6['clients']){for(const [_0x4d238e,_0x476f81]of _0x3bb7b7[_0x33787b(0x373,0x2b9,_0x5040ed._0x465b9f,0x1b4)]){_0x58831a[diagnosticsKeyToPath(_0x4d238e)]=_0x476f81;}}return _0x58831a;},async 'diagnosticsForFile'(_0x14e0a6){const _0x31771c={_0x30254c:0x16e},_0x5286f1={_0x56b3c7:0xc};await _0xf8d4bd(_0x14e0a6,!![]);const _0x470b00=[];function _0x2f8532(_0xf4cd1c,_0x451831,_0x41a4a9,_0x58d0a4){return _0x40d087(_0xf4cd1c-0x126,_0x451831-_0x5286f1._0x56b3c7,_0xf4cd1c- -0x28b,_0x58d0a4);}function _0x15ccbd(_0x16b0e7,_0x37d8ab,_0xa16a3c,_0x43f98f){return _0x40d087(_0x16b0e7-0x156,_0x37d8ab-_0x31771c._0x30254c,_0x16b0e7- -0x113,_0x43f98f);}for(const _0x4a22fd of await _0x294124(_0x14e0a6,![])){for(const [_0x4a6b77,_0x5f51a2]of _0x4a22fd[_0x2f8532(_0x5f7097._0x33eae0,_0x5f7097._0x2ebed8,0x309,0x1ec)]){if(diagnosticsKeyToPath(_0x4a6b77)===_0x14e0a6)_0x470b00[_0x15ccbd(_0x5f7097._0x32aae0,_0x5f7097._0x3018db,0x23b,0xe0)](..._0x5f51a2);}}return _0x470b00;},async 'definition'(_0x12099f){const _0x45c1b6={_0x5887b6:0x23,_0x4e9596:0x1d3};function _0x10ed1f(_0x5d564d,_0x1047f6,_0x1c8d3e,_0x754406){return _0x40d087(_0x5d564d-0x79,_0x1047f6-0xea,_0x1047f6- -_0x581cd6._0x288503,_0x1c8d3e);}function _0x36784a(_0x1c3806,_0x374e5c,_0xb24ce2,_0x58518e){return _0x40d087(_0x1c3806-_0x45c1b6._0x5887b6,_0x374e5c-_0x45c1b6._0x4e9596,_0x1c3806- -0x25e,_0x58518e);}return collectClientResults((await _0x132e38(_0x12099f))[_0x36784a(0x147,_0x28b646._0x394c32,0x65,_0x28b646._0x3e9db9)](_0x456bf6=>_0x456bf6[_0x36784a(0x330,0x435,0x4ab,0x41a)][_0x10ed1f(-0x7e,0x76,-0x65,-0x3a)](_0x12099f)));},async 'references'(_0x3aa4fb){function _0x44cbe5(_0x58100b,_0x1d61c0,_0x1449bb,_0x42456b){return _0x40d087(_0x58100b-_0xc7459._0x16b414,_0x1d61c0-0x39,_0x1449bb- -0x4ae,_0x1d61c0);}return collectClientResults((await _0x132e38(_0x3aa4fb))['map'](_0x1dbeaa=>_0x1dbeaa[_0x44cbe5(0x237,0x1d2,0xe0,0xa9)]['references'](_0x3aa4fb)));},async 'hover'(_0x299141){const _0x303cb2={_0x42cc88:0x4f5};function _0x2473d3(_0x55310e,_0x56e000,_0x68e2c9,_0x10fad3){return _0x40d087(_0x55310e-0x11,_0x56e000-0x55,_0x56e000- -_0x303cb2._0x42cc88,_0x10fad3);}function _0xedcec6(_0x2c099c,_0x3d195f,_0xd68941,_0x3eea0c){return _0x40d087(_0x2c099c-0x4f,_0x3d195f-0x7f,_0x3eea0c- -_0x17913e._0x253fbb,_0x3d195f);}const _0x5cf471=await Promise['allSettled']((await _0x132e38(_0x299141))['map'](_0x13557d=>_0x13557d[_0xedcec6(0x42,0x49,0x22d,0xb7)][_0xedcec6(-0x207,-0x182,-0x13b,-0x10f)](_0x299141)));return _0x5cf471[_0xedcec6(-0x164,-_0x3f33cb._0x4eb446,0x9b,-_0x3f33cb._0x4d03c3)](_0x1a0025=>_0x1a0025[_0xedcec6(-0xc2,0xa7,0x6f,0x44)]===_0xedcec6(-0x126,0xf8,0x6f,0x2d)&&_0x1a0025[_0xedcec6(-0x47,0x63,0x44,-0x84)]?[_0x1a0025['value']]:[]);},async 'documentSymbol'(_0xf02b99){function _0x239600(_0x57efed,_0x3a4db6,_0x476681,_0x4eb33f){return _0x40d087(_0x57efed-_0x50069f._0x24ed16,_0x3a4db6-0x1d8,_0x4eb33f- -_0x50069f._0x139bdd,_0x3a4db6);}return await _0xf8d4bd(_0xf02b99,![]),collectClientResults((await _0x294124(_0xf02b99,![]))['map'](_0x311440=>_0x311440[_0x239600(0x4d,0x228,0xfa,0xda)]['documentSymbol'](_0xf02b99)));},async 'workspaceSymbol'(_0x249846){const _0x741763={_0x438aa7:0x98};function _0x54060a(_0x36a021,_0xd50310,_0x4c9ae7,_0x4c09be){return _0x40d087(_0x36a021-_0x1500dd._0x4abb85,_0xd50310-0xf0,_0x36a021- -_0x1500dd._0x51197f,_0xd50310);}function _0x1c176f(_0x16dc51,_0x1392dd,_0x1b9194,_0x1f33d1){return _0x40d087(_0x16dc51-0x22,_0x1392dd-_0x741763._0x438aa7,_0x16dc51- -0xed,_0x1392dd);}return collectClientResults(_0xbefbd6[_0x1c176f(0x2d8,_0x3f642e._0x528ff9,0x17f,0x3bc)][_0x54060a(_0x3f642e._0x59dcfb,_0x3f642e._0x4cb60f,_0x3f642e._0x49b1ba,0x252)](_0x391cb8=>_0x391cb8[_0x54060a(0x401,0x4ce,0x35c,0x4a6)][_0x1c176f(0x503,0x4d8,0x420,0x4db)](_0x249846)));},async 'implementation'(_0x26d98a){const _0x4bde5f={_0x4af559:0xd3,_0x3775b0:0x16f,_0x8aafbe:0x23c};function _0x20584e(_0x39afbe,_0x53950b,_0x40747d,_0x1873fc){return _0x40d087(_0x39afbe-_0x4bde5f._0x4af559,_0x53950b-_0x4bde5f._0x3775b0,_0x39afbe- -_0x4bde5f._0x8aafbe,_0x40747d);}return collectClientResults((await _0x132e38(_0x26d98a))[_0x20584e(0x169,_0x1aa177._0x201cb5,-_0x1aa177._0x47c187,_0x1aa177._0x1d7cd6)](_0x460c05=>_0x460c05['request']['implementation'](_0x26d98a)));},async 'prepareCallHierarchy'(_0x295e8a){return _0xbfddf2(_0x295e8a);},async 'incomingCalls'(_0x3ed470){const _0x5a0127=await _0xbfddf2(_0x3ed470),_0x1a1fa9=await _0x132e38(_0x3ed470);function _0xf80fad(_0x46c4b4,_0x4421f3,_0x43ee42,_0x24b28){return _0x40d087(_0x46c4b4-_0x13a816._0x1aa312,_0x4421f3-_0x13a816._0x4779fb,_0x46c4b4- -0x473,_0x4421f3);}return collectClientResults(_0x1a1fa9['flatMap'](_0x445af1=>_0x5a0127[_0xf80fad(-0xce,0x8,-0xcd,0x8d)](_0x145542=>_0x445af1['request']['incomingCalls'](_0x145542))));},async 'outgoingCalls'(_0x4df04c){const _0x5dddec={_0x547c1d:0xab,_0x58d411:0x5b9},_0x515f07=await _0xbfddf2(_0x4df04c),_0x4fa80e=await _0x132e38(_0x4df04c);function _0xcb21b6(_0x1969b0,_0x23dad5,_0x37263d,_0xc9e31d){return _0x40d087(_0x1969b0-_0x5dddec._0x547c1d,_0x23dad5-0xf,_0xc9e31d- -_0x5dddec._0x58d411,_0x1969b0);}function _0x292389(_0x24c317,_0x27d527,_0x3436b7,_0x5640a8){return _0x40d087(_0x24c317-_0x3146a6._0xd385c5,_0x27d527-_0x3146a6._0x2f4fcd,_0x27d527- -0x413,_0x5640a8);}return collectClientResults(_0x4fa80e[_0x292389(_0x2e5f54._0x4fe3ef,_0x2e5f54._0x575c8e,-0xc1,0xd0)](_0x5bc9b6=>_0x515f07[_0xcb21b6(-0x2a6,-0x21f,-0x251,-0x214)](_0x428f29=>_0x5bc9b6['request'][_0x292389(0x8e,0x2a,0x3e,0x18c)](_0x428f29))));},async 'shutdown'(){const _0x188e37={_0x438cbe:0x185,_0xc4637d:0x92,_0x165142:0x8a};if(_0xbefbd6[_0x3bcdad(0x4c8,0x630,_0x2f2a4e._0x42ad8a,0x574)])return;_0xbefbd6[_0x6ecb81(_0x2f2a4e._0x4e5d3d,_0x2f2a4e._0x382587,-0x27,_0x2f2a4e._0xfa4234)]=!![],await Promise['allSettled'](_0xbefbd6[_0x3bcdad(0x445,_0x2f2a4e._0x4ef24c,_0x2f2a4e._0x4e274f,0x44f)]['map'](_0x3cd8c6=>_0x3cd8c6['shutdown']())),_0xbefbd6['clients']=[],_0xbefbd6[_0x3bcdad(_0x2f2a4e._0x5eb82e,0x6e6,0x46a,_0x2f2a4e._0x56935a)][_0x6ecb81(_0x2f2a4e._0x3c0249,0x10d,_0x2f2a4e._0x33642e,_0x2f2a4e._0x18434a)](),_0xbefbd6[_0x6ecb81(_0x2f2a4e._0x301841,_0x2f2a4e._0x5c8865,0x44,_0x2f2a4e._0xb4030e)]['clear']();function _0x6ecb81(_0x3e3720,_0x488da5,_0x58c32d,_0x2461cd){return _0x40d087(_0x3e3720-_0x581b5c._0x923f49,_0x488da5-0x29,_0x2461cd- -_0x581b5c._0x21b9c2,_0x58c32d);}function _0x3bcdad(_0x3b4cca,_0x109d15,_0x39f9f7,_0x3022ad){return _0x40d087(_0x3b4cca-_0x188e37._0x438cbe,_0x109d15-_0x188e37._0xc4637d,_0x3022ad-_0x188e37._0x165142,_0x109d15);}_0xbefbd6['fileVersions'][_0x6ecb81(_0x2f2a4e._0x47925a,0x2c3,0x335,0x20c)](),_0xbefbd6[_0x3bcdad(_0x2f2a4e._0x560265,_0x2f2a4e._0x154c11,_0x2f2a4e._0x1983b2,_0x2f2a4e._0x7037fc)][_0x6ecb81(_0x2f2a4e._0x3b4867,0x125,_0x2f2a4e._0x36ed2f,0x20c)]();},'status'(){const _0x1ec758={_0x207cc1:0x93,_0x528d2a:0x68};function _0x52a442(_0x48d659,_0x498865,_0x16d2c5,_0x3a7c0e){return _0x40d087(_0x48d659-0x14e,_0x498865-_0x1ec758._0x207cc1,_0x16d2c5- -_0x1ec758._0x528d2a,_0x3a7c0e);}return{'connectedClients':_0xbefbd6[_0x52a442(0x29e,0x298,_0xf40df3._0x1577c4,_0xf40df3._0x4b45ac)]['length']};}};}function createQuestionId(){const _0x31e66b={_0x162d35:0x42,_0x17e45d:0xfa,_0x3885dd:0xa4,_0x55495a:0x187,_0x40cd53:0xa3,_0x3644dc:0x5a,_0x256461:0x455},_0x43a22d={_0x234663:0x22b,_0x2b822c:0xb7},_0x26e15d={_0x27b6ad:0xa4};function _0x386e03(_0x39bef9,_0x47af66,_0x8a8397,_0x4c8fe2){return _0x4bd068(_0x8a8397,_0x47af66- -0x60d,_0x8a8397-0x1b2,_0x4c8fe2-_0x26e15d._0x27b6ad);}function _0x4115c0(_0x57413b,_0x1ec700,_0x5b38a2,_0x440621){return _0x4bd068(_0x57413b,_0x5b38a2- -_0x43a22d._0x234663,_0x5b38a2-0x122,_0x440621-_0x43a22d._0x2b822c);}return _0x386e03(0x11b,-_0x31e66b._0x162d35,0x10f,-_0x31e66b._0x17e45d)+Date[_0x386e03(-_0x31e66b._0x3885dd,-_0x31e66b._0x55495a,-_0x31e66b._0x40cd53,-0xeb)]()+'-'+Math[_0x386e03(0x6,-0xeb,-0x203,_0x31e66b._0x3644dc)]()['toString'](0x24)[_0x4115c0(0x469,0x38c,_0x31e66b._0x256461,0x4a8)](0x2,0x9);}function validateInput(_0x876962){const _0x5bf96e={_0x4d5611:0x4f,_0x5ed4dc:0x60b,_0xd642b1:0x513,_0xa05bbc:0x25d,_0x45cb90:0x16d,_0x56be79:0x4be,_0x5abc3e:0x39f,_0xa1bb2:0x5c7,_0x58b3e1:0x72,_0x205584:0x8d,_0x2cf63a:0x41b,_0x2b2ad8:0x56e,_0x1b899b:0x673,_0x1c68c8:0x25d,_0x14fe97:0x514,_0x3a12ca:0x4f0,_0xd1d16:0x24e,_0x10b9dd:0x28a,_0x514814:0x242,_0x2fe850:0x243,_0x44189d:0x10a,_0x510c66:0x64,_0x1ebcf9:0x134,_0x35f01f:0x3a3,_0x5d3fec:0x428,_0x59bcbd:0x40d,_0x3ca3e0:0x2a8,_0x2ebb5e:0x2a0,_0x4d170d:0x400,_0x3bfd08:0x327,_0x4aea3d:0x4a3,_0x4e228f:0xd4,_0x4c098f:0x165,_0x4940b2:0x293,_0x598623:0x25d,_0x152a96:0x216,_0x25520f:0xaf,_0x5a7a07:0xe7,_0x7cec01:0x1c1,_0x5682ae:0x13a,_0x5ad11b:0x131,_0x30590b:0xa6,_0x1e4845:0x138,_0x6ce80e:0x16c,_0x223067:0x13b,_0x4575e3:0x3f3,_0x1461ae:0x29b,_0x31f1b4:0xd0,_0x41a7c7:0x33,_0x23dc1a:0x1be,_0x9fb84e:0x2b6,_0x25e75d:0x4c5,_0x10c7cf:0x2b1,_0x4cfc00:0x3f7,_0x54bcd8:0x68,_0x20dcbe:0x57,_0xd01841:0x395,_0x2d297b:0x2df,_0x195479:0x107,_0x1dbfc1:0x7,_0x48f199:0x44f,_0x20471d:0x2bf,_0x499af6:0x3da,_0x3d46d6:0x3ae,_0x2d0675:0x143,_0x1be83e:0x184,_0x304fc8:0xd3,_0x5be587:0x7a,_0x58b534:0x1b0,_0x2ceafe:0x26d,_0x129b0e:0x220,_0x2b5a6c:0x1d5},_0x19d481={_0x707b2b:0x167,_0x2a7c2b:0x194},_0xf0878e={_0x513740:0x220};function _0x151ccd(_0xb099f6,_0x5d354a,_0x4cf89e,_0x48666e){return _0x154255(_0xb099f6,_0x5d354a-0xb,_0x4cf89e-_0xf0878e._0x513740,_0x48666e-0x4c);}if(!Array[_0x4f0034(0x47,_0x5bf96e._0x4d5611,0x13f,-0x117)](_0x876962[_0x151ccd(_0x5bf96e._0x5ed4dc,0x4f3,_0x5bf96e._0xd642b1,0x49c)])||_0x876962['questions'][_0x151ccd(0x20f,0x129,_0x5bf96e._0xa05bbc,_0x5bf96e._0x45cb90)]<0x1||_0x876962[_0x151ccd(_0x5bf96e._0x56be79,_0x5bf96e._0x5abc3e,0x513,_0x5bf96e._0xa1bb2)][_0x4f0034(_0x5bf96e._0x58b3e1,-0xa6,-0x1bf,-_0x5bf96e._0x205584)]>0xa)throw new ToolExecutionError('Must\x20provide\x201-10\x20questions',{'error':_0x151ccd(0x388,0x5ec,0x4f1,_0x5bf96e._0x2cf63a)});function _0x4f0034(_0x17cce9,_0x48bf53,_0x551cef,_0x355fb0){return _0x4bd068(_0x355fb0,_0x48bf53- -0x479,_0x551cef-_0x19d481._0x707b2b,_0x355fb0-_0x19d481._0x2a7c2b);}for(let _0x5f2d0d=0x0;_0x5f2d0d<_0x876962[_0x151ccd(_0x5bf96e._0x2b2ad8,0x3f4,0x513,_0x5bf96e._0x1b899b)][_0x151ccd(0x3c0,0x3bf,_0x5bf96e._0x1c68c8,0x2be)];_0x5f2d0d+=0x1){const _0x347bf2=_0x876962[_0x4f0034(0xaf,0x210,0x2af,0x192)][_0x5f2d0d];if(!_0x347bf2['question']||typeof _0x347bf2[_0x151ccd(0x3a3,_0x5bf96e._0x14fe97,_0x5bf96e._0x3a12ca,0x487)]!==_0x151ccd(_0x5bf96e._0xd1d16,0x3cb,0x2a8,_0x5bf96e._0x10b9dd))throw new ToolExecutionError('Question\x20'+(_0x5f2d0d+0x1)+_0x4f0034(0x165,0x139,0x124,_0x5bf96e._0x514814));if(!_0x347bf2[_0x4f0034(_0x5bf96e._0x2fe850,_0x5bf96e._0x44189d,-_0x5bf96e._0x510c66,_0x5bf96e._0x1ebcf9)]||typeof _0x347bf2[_0x151ccd(_0x5bf96e._0x35f01f,_0x5bf96e._0x5d3fec,_0x5bf96e._0x59bcbd,0x299)]!==_0x151ccd(0x423,0x149,_0x5bf96e._0x3ca3e0,_0x5bf96e._0x2ebb5e))throw new ToolExecutionError(_0x151ccd(_0x5bf96e._0x4d170d,_0x5bf96e._0x3bfd08,0x343,_0x5bf96e._0x4aea3d)+(_0x5f2d0d+0x1)+_0x4f0034(0xec,_0x5bf96e._0x4e228f,0x1a1,0x165));if(_0x347bf2['topic'][_0x151ccd(_0x5bf96e._0x4c098f,_0x5bf96e._0x4940b2,_0x5bf96e._0x598623,_0x5bf96e._0x152a96)]>0x1e)throw new ToolExecutionError(_0x4f0034(_0x5bf96e._0x25520f,0x40,-_0x5bf96e._0x5a7a07,0x174)+(_0x5f2d0d+0x1)+_0x4f0034(_0x5bf96e._0x7cec01,_0x5bf96e._0x5682ae,_0x5bf96e._0x5ad11b,0x4e)+_0x347bf2[_0x151ccd(0x567,0x488,0x40d,0x57a)][_0x4f0034(-0x108,-_0x5bf96e._0x30590b,-_0x5bf96e._0x1e4845,-0x1c)]);if(!Array[_0x4f0034(0x16a,0x4f,_0x5bf96e._0x6ce80e,-0x3c)](_0x347bf2[_0x4f0034(-0x1b5,-0x68,-_0x5bf96e._0x223067,0xd8)])||_0x347bf2[_0x151ccd(_0x5bf96e._0x4575e3,0x3a7,_0x5bf96e._0x1461ae,0x29d)][_0x4f0034(_0x5bf96e._0x31f1b4,-_0x5bf96e._0x30590b,-0x202,_0x5bf96e._0x41a7c7)]<0x2||_0x347bf2[_0x151ccd(_0x5bf96e._0x23dc1a,0x239,0x29b,0x414)][_0x151ccd(0x26f,0x250,0x25d,0x134)]>0x4)throw new ToolExecutionError(_0x151ccd(0x3b0,0x252,0x343,_0x5bf96e._0x9fb84e)+(_0x5f2d0d+0x1)+_0x151ccd(_0x5bf96e._0x25e75d,_0x5bf96e._0x10c7cf,_0x5bf96e._0x4cfc00,0x524));for(let _0x3526dc=0x0;_0x3526dc<_0x347bf2[_0x4f0034(-0x14,-_0x5bf96e._0x54bcd8,0x23,_0x5bf96e._0x20dcbe)][_0x151ccd(_0x5bf96e._0xd01841,_0x5bf96e._0x2d297b,0x25d,0x198)];_0x3526dc+=0x1){const _0x30ffbe=_0x347bf2[_0x4f0034(-_0x5bf96e._0x195479,-0x68,-_0x5bf96e._0x1dbfc1,-0x9a)][_0x3526dc];if(!_0x30ffbe['label']||!_0x30ffbe[_0x4f0034(0x90,0x117,0x77,0xef)])throw new ToolExecutionError(_0x151ccd(_0x5bf96e._0x48f199,_0x5bf96e._0x20471d,0x343,0x2b6)+(_0x5f2d0d+0x1)+_0x151ccd(0x402,_0x5bf96e._0x499af6,0x395,_0x5bf96e._0x3d46d6)+(_0x3526dc+0x1)+_0x4f0034(_0x5bf96e._0x2d0675,_0x5bf96e._0x1be83e,_0x5bf96e._0x304fc8,_0x5bf96e._0x5be587));}if(typeof _0x347bf2[_0x4f0034(-_0x5bf96e._0x58b534,-0x44,0x10a,-0x184)]!==_0x151ccd(0xfe,0x328,_0x5bf96e._0x2ceafe,0x2d8))throw new ToolExecutionError(_0x151ccd(_0x5bf96e._0x129b0e,_0x5bf96e._0x2b5a6c,0x343,0x3d1)+(_0x5f2d0d+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x5800a5){const _0x5dd893={_0x28224c:0x333},_0x59980c={_0x58a9b8:0x124,_0x54f604:0x3eb,_0x10aadd:0x12e},_0x613738={_0x524b7c:0x60,_0x4e1ac7:0x38c};function _0x123a1e(_0x3b3cf9,_0xaf7891,_0x98ae77,_0x22d89d){return _0x154255(_0x3b3cf9,_0xaf7891-_0x613738._0x524b7c,_0x98ae77-_0x613738._0x4e1ac7,_0x22d89d-0xad);}function _0x51b1a7(_0xff9b3d,_0x4c55d8,_0x127c31,_0xb4508d){return _0x154255(_0x127c31,_0x4c55d8-_0x59980c._0x58a9b8,_0xff9b3d-_0x59980c._0x54f604,_0xb4508d-_0x59980c._0x10aadd);}return _0x5800a5['questions'][_0x51b1a7(0x45f,0x34d,_0x5dd893._0x28224c,0x511)]((_0x293612,_0x3da92f)=>({'id':'q'+_0x3da92f,'question':_0x293612[_0x51b1a7(0x6bb,0x5f1,0x76e,0x665)],'topic':_0x293612[_0x51b1a7(0x5d8,0x575,0x5ff,0x4c6)],'options':_0x293612[_0x123a1e(0x3e1,0x52c,0x407,0x2c5)],'multiSelect':_0x293612[_0x51b1a7(0x48a,0x4e3,0x3d2,0x5a4)]}));}function createResult(_0x270675,_0xa1c6bc,_0x4c9969){const _0x1cbd5b={_0x3cdb42:0x33b,_0x41a4ad:0x3f7,_0x4c5117:0x2bc},_0xf3b78={_0x3f3d90:0xd5,_0x40428b:0x16},_0x5636f5={_0xd4e573:0xbb},_0x3614f8={'questionId':_0x270675,'questionCount':_0xa1c6bc,'answers':_0x4c9969};function _0xb7e519(_0x1d74c5,_0xa92db0,_0x371a43,_0x56a5d1){return _0x154255(_0x56a5d1,_0xa92db0-_0x5636f5._0xd4e573,_0x1d74c5-0x1a9,_0x56a5d1-0x1cb);}function _0x37c578(_0x5b8e08,_0xc4368a,_0x2b72a6,_0x2eb2d8){return _0x4bd068(_0x2b72a6,_0x5b8e08- -0xb8,_0x2b72a6-_0xf3b78._0x3f3d90,_0x2eb2d8-_0xf3b78._0x40428b);}return createToolOutput(_0xb7e519(0x2e8,0x312,0x2eb,0x403)+JSON[_0xb7e519(0x33c,_0x1cbd5b._0x3cdb42,_0x1cbd5b._0x41a4ad,_0x1cbd5b._0x4c5117)](_0x4c9969,null,0x2),_0x3614f8);}function createAskUserTool(){const _0xe2ceae={_0xd54255:0x62d,_0x2b9e8d:0x776,_0x418c32:0x78d,_0x3abf1a:0x859,_0x1e3d92:0x784,_0x13f357:0x128,_0x51e895:0x15a,_0x478869:0xe3,_0x22ccc6:0xb3,_0x4fe7d1:0x43,_0x2e058a:0x4e,_0x5ca904:0x42d,_0xc5b93e:0x55c,_0x205789:0x52d,_0x548a1c:0x542,_0x19dbc1:0x85,_0x45acbc:0x232,_0x27e296:0x182,_0x141dd7:0x6c5,_0x487995:0x85d,_0x760214:0x60d,_0x15ba99:0x360,_0x135107:0x15b,_0x5818e0:0x1e0,_0x53989c:0xc9,_0x1d010c:0x60,_0x159fdd:0xcb,_0x11d16d:0x798},_0x3e2ebd={_0x5115b7:0xda,_0xcfcc96:0x85,_0x583e50:0x1de,_0x27a295:0x1a9,_0xe5ca38:0x107,_0x44a324:0x31,_0x2cfb8c:0xe1,_0x28d7cb:0x12e,_0x3c273f:0x5f,_0x3ffea7:0x1d7,_0x4ae33f:0x257,_0x436b7d:0xac,_0x413007:0x9a,_0x238a4d:0x63,_0x5353e9:0xdf,_0x2c9c41:0x44,_0x36f074:0x2cd,_0x2533f7:0x278,_0x52ea51:0x1d8,_0x2ab949:0x112,_0x206341:0xac,_0x507986:0x1e1},_0x4c8050={_0x1c6987:0x17d},_0x247dd6={_0x4233a9:0x9e,_0x3e0dac:0x1a1};function _0x28aa1b(_0x474399,_0xd86b35,_0x197820,_0x4d488f){return _0x154255(_0xd86b35,_0xd86b35-_0x247dd6._0x4233a9,_0x4d488f-0x4a5,_0x4d488f-_0x247dd6._0x3e0dac);}function _0xd39651(_0x23f7b8,_0x46cf5c,_0x119a49,_0x59021e){return _0x4bd068(_0x59021e,_0x119a49- -0x615,_0x119a49-0xc7,_0x59021e-_0x4c8050._0x1c6987);}return defineTool({'name':_0x28aa1b(0x8de,_0xe2ceae._0xd54255,_0xe2ceae._0x2b9e8d,_0xe2ceae._0x418c32),'description':'Use\x20this\x20tool\x20when\x20you\x20need\x20to\x20ask\x20the\x20user\x20questions\x20during\x20execution.\x20This\x20allows\x20you\x20to:\x0a1.\x20Gather\x20user\x20preferences\x20or\x20requirements\x0a2.\x20Clarify\x20ambiguous\x20instructions\x0a3.\x20Get\x20decisions\x20on\x20implementation\x20choices\x20as\x20you\x20work\x0a4.\x20Offer\x20choices\x20to\x20the\x20user\x20about\x20what\x20direction\x20to\x20take.\x0a\x0aUsage\x20notes:\x0a-\x20Users\x20will\x20always\x20be\x20able\x20to\x20select\x20\x22Other\x22\x20to\x20provide\x20custom\x20text\x20input\x0a-\x20Use\x20multiSelect:\x20true\x20to\x20allow\x20multiple\x20answers\x20to\x20be\x20selected\x20for\x20a\x20question\x0a-\x20If\x20you\x20recommend\x20a\x20specific\x20option,\x20make\x20that\x20the\x20first\x20option\x20in\x20the\x20list\x20and\x20add\x20\x22(Recommended)\x22\x20at\x20the\x20end\x20of\x20the\x20label','inputSchema':{'type':_0x28aa1b(_0xe2ceae._0x3abf1a,0x86a,0x622,_0xe2ceae._0x1e3d92),'properties':{'questions':{'type':'array','items':{'type':_0xd39651(_0xe2ceae._0x13f357,_0xe2ceae._0x51e895,0x60,_0xe2ceae._0x478869),'properties':{'question':{'type':'string'},'topic':{'type':'string'},'options':{'type':'array','items':{'type':_0xd39651(_0xe2ceae._0x22ccc6,-_0xe2ceae._0x4fe7d1,0x60,-_0xe2ceae._0x2e058a),'properties':{'label':{'type':_0x28aa1b(0x474,_0xe2ceae._0x5ca904,_0xe2ceae._0xc5b93e,_0xe2ceae._0x205789)},'description':{'type':'string'}},'required':[_0x28aa1b(_0xe2ceae._0x548a1c,0x66a,0x626,0x5b8),_0xd39651(_0xe2ceae._0x2e058a,-0x1ba,-_0xe2ceae._0x19dbc1,-0x3)]}},'multiSelect':{'type':_0xd39651(-0x278,-0x23e,-_0xe2ceae._0x45acbc,-_0xe2ceae._0x27e296)}},'required':[_0x28aa1b(_0xe2ceae._0x141dd7,_0xe2ceae._0x487995,_0xe2ceae._0x760214,0x775),'topic',_0xd39651(-0x220,-_0xe2ceae._0x15ba99,-0x204,-0x11f),_0xd39651(-0x10e,-_0xe2ceae._0x135107,-_0xe2ceae._0x5818e0,-_0xe2ceae._0x53989c)]}},'answers':{'type':_0xd39651(-0x5,0xa6,_0xe2ceae._0x1d010c,_0xe2ceae._0x159fdd),'properties':{}}},'required':[_0x28aa1b(0x6c7,0x8c2,0x804,_0xe2ceae._0x11d16d)]},async *'execute'(_0x5d1f68,_0x508f42){const _0x439181={_0x1030c7:0x36,_0x353026:0x436};function _0x34ad61(_0x30fa48,_0x540b5b,_0x1ac3e4,_0x477cb0){return _0x28aa1b(_0x30fa48-0x12f,_0x540b5b,_0x1ac3e4-0xc9,_0x477cb0- -0x541);}const _0x3cbe33=_0x5d1f68;validateInput(_0x3cbe33);const _0x48a21e=_0x508f42[_0x5931f6(_0x3e2ebd._0x5115b7,0x91,0x19a,-0x1c)]??createQuestionId();if(_0x3cbe33[_0x34ad61(0x3d,-_0x3e2ebd._0xcfcc96,0x84,-0x4)]&&Object[_0x5931f6(0x1b8,0x204,_0x3e2ebd._0x583e50,_0x3e2ebd._0x27a295)](_0x3cbe33[_0x5931f6(_0x3e2ebd._0xe5ca38,0x243,0x5b,_0x3e2ebd._0x44a324)])[_0x34ad61(-_0x3e2ebd._0x2cfb8c,-_0x3e2ebd._0x28d7cb,-0x2f,-_0x3e2ebd._0x3c273f)]>0x0)return createResult(_0x48a21e,_0x3cbe33[_0x34ad61(0x359,_0x3e2ebd._0x3ffea7,0x19c,_0x3e2ebd._0x4ae33f)][_0x5931f6(_0x3e2ebd._0x436b7d,0x10,-_0x3e2ebd._0x413007,-_0x3e2ebd._0x238a4d)],_0x3cbe33[_0x34ad61(0x138,-_0x3e2ebd._0x5353e9,0x14e,-0x4)]);if(!_0x508f42[_0x34ad61(0x255,_0x3e2ebd._0x2c9c41,_0x3e2ebd._0x36f074,0x16d)])throw new ToolExecutionError('Context\x20does\x20not\x20support\x20user\x20questions');const _0x518691=buildQuestions(_0x3cbe33),_0x24cc2d=await _0x508f42[_0x5931f6(_0x3e2ebd._0x2533f7,_0x3e2ebd._0x52ea51,_0x3e2ebd._0x2ab949,0x3c7)]({'questionId':_0x48a21e,'questions':_0x518691});function _0x5931f6(_0x3a1dc9,_0xcb344c,_0x1751d1,_0xdcc8cd){return _0x28aa1b(_0x3a1dc9-0x110,_0xcb344c,_0x1751d1-_0x439181._0x1030c7,_0x3a1dc9- -_0x439181._0x353026);}yield createResult(_0x48a21e,_0x3cbe33['questions'][_0x5931f6(_0x3e2ebd._0x206341,_0x3e2ebd._0x507986,0xd1,-0xa)],_0x24cc2d);}});}import{randomUUID}from'crypto';import{StringDecoder}from'string_decoder';import{spawn as _0x229f6b}from'child_process';import{stripVTControlCharacters}from'util';function isErrnoException(_0x46f31c){return _0x46f31c instanceof Error;}function resolveCarriageReturns(_0x3b808f){const _0x338250={_0x389136:0x0,_0x50941e:0xc1,_0xfc644b:0x142},_0x138f75={_0x190535:0x28d,_0x5cb3b8:0x2e2,_0x598f1f:0x354,_0xadb99c:0xc4,_0x41d6ff:0xe9,_0x58305f:0x38},_0x48f676={_0x1db892:0x116},_0xd6ef80={_0x230a70:0x124,_0x24a76e:0x41};function _0x56ee04(_0x691318,_0x4a787d,_0x55892d,_0x828c6a){return _0x4bd068(_0x691318,_0x4a787d- -0x40a,_0x55892d-_0xd6ef80._0x230a70,_0x828c6a-_0xd6ef80._0x24a76e);}return _0x3b808f['split']('\x0a')[_0x56ee04(0x13c,_0x338250._0x389136,_0x338250._0x50941e,-_0x338250._0xfc644b)](_0x4dd8e9=>{const _0x236367={_0x155eb7:0x276,_0x326c7e:0x43};if(!_0x4dd8e9['includes']('\x0d'))return _0x4dd8e9;function _0xa761f3(_0x6e2ef5,_0x277b04,_0x1b12ac,_0x22960){return _0x56ee04(_0x277b04,_0x22960- -0x1,_0x1b12ac-0x9e,_0x22960-_0x48f676._0x1db892);}function _0x2c7a6f(_0x3eca2a,_0x322429,_0x516fbc,_0x1faadb){return _0x56ee04(_0x516fbc,_0x1faadb-_0x236367._0x155eb7,_0x516fbc-0x182,_0x1faadb-_0x236367._0x326c7e);}const _0x21bfce=_0x4dd8e9[_0x2c7a6f(_0x138f75._0x190535,_0x138f75._0x5cb3b8,0x38f,_0x138f75._0x598f1f)]('\x0d');return _0x21bfce[_0x21bfce[_0xa761f3(-_0x138f75._0xadb99c,-_0x138f75._0x41d6ff,-0xc,-_0x138f75._0x58305f)]-0x1]??'';})['join']('\x0a');}function resolveBackspaces(_0x578c11){const _0x3795c6={_0xd60c84:0x140,_0x1cd11c:0x1ef,_0x3491cc:0x164,_0x1adbe9:0x74,_0x5d2c17:0xcb,_0x37e0fc:0x17c,_0x192cd4:0x253,_0x73730f:0x25c},_0x221338={_0x51d063:0x76,_0x5a518f:0x262},_0x143024={_0x2556cf:0xa1},_0x566fd4=[];function _0x156412(_0x2c243b,_0x62b0b0,_0x4a2a62,_0x4d3fed){return _0x4bd068(_0x62b0b0,_0x4a2a62- -0x26a,_0x4a2a62-0x4,_0x4d3fed-_0x143024._0x2556cf);}function _0x8b654f(_0x5599e2,_0x5ee38f,_0x51a750,_0x28719f){return _0x154255(_0x5599e2,_0x5ee38f-_0x221338._0x51d063,_0x5ee38f- -_0x221338._0x5a518f,_0x28719f-0xf);}for(const _0x58e73a of Array[_0x156412(0x1eb,_0x3795c6._0xd60c84,_0x3795c6._0x1cd11c,_0x3795c6._0x3491cc)](_0x578c11)){_0x58e73a==='\x08'?_0x566fd4['pop']():_0x566fd4[_0x156412(0x1cd,_0x3795c6._0x1adbe9,0x153,_0x3795c6._0x5d2c17)](_0x58e73a);}return _0x566fd4[_0x156412(_0x3795c6._0x37e0fc,_0x3795c6._0x192cd4,0x2f0,_0x3795c6._0x73730f)]('');}function stripAnsiAndControls(_0x5ed5cd){const _0x263511={_0x38b2c3:0x3ac,_0x183c66:0x3bf,_0x41152d:0x38a,_0x2ef2fd:0x447,_0x3b79ca:0x494,_0x312dfd:0x3b5,_0x4f8e30:0x53a,_0xfd3fb6:0x608,_0x26cadf:0x526,_0x1b9bcf:0x3e6,_0x1b77e2:0x2f9,_0x127dab:0x3fd,_0x3e2675:0x101,_0x5e2de8:0x27c,_0x1c4bd5:0x38a,_0x33dd45:0x2af,_0x951a21:0x217,_0x1285d0:0x296,_0x2a143f:0x436,_0x377582:0x1b0,_0x2c16a4:0x37f,_0xdc2a87:0x2eb},_0x50ef98={_0x8f9b22:0x79,_0x2e6e59:0x2c1};_0x5ed5cd=resolveCarriageReturns(_0x5ed5cd);function _0x3a1e34(_0x50fb4b,_0x262d41,_0x3d00f7,_0x5e997d){return _0x154255(_0x262d41,_0x262d41-0x184,_0x3d00f7-0x230,_0x5e997d-0x35);}function _0x27b22a(_0x14a82b,_0x44011c,_0x7eb799,_0x3ba8ac){return _0x154255(_0x44011c,_0x44011c-_0x50ef98._0x8f9b22,_0x14a82b-_0x50ef98._0x2e6e59,_0x3ba8ac-0xf0);}_0x5ed5cd=resolveBackspaces(_0x5ed5cd),_0x5ed5cd=stripVTControlCharacters(_0x5ed5cd);const _0x298658='\x1b',_0x355eea='\x07';return _0x5ed5cd=_0x5ed5cd['replace'](new RegExp(_0x27b22a(0x3ab,0x2e0,_0x263511._0x38b2c3,_0x263511._0x183c66)+_0x355eea+'\x5cn]*?'+_0x355eea,'g'),''),_0x5ed5cd=_0x5ed5cd[_0x27b22a(_0x263511._0x41152d,_0x263511._0x2ef2fd,_0x263511._0x3b79ca,_0x263511._0x312dfd)](new RegExp(_0x27b22a(_0x263511._0x4f8e30,_0x263511._0xfd3fb6,_0x263511._0x26cadf,_0x263511._0x1b9bcf)+_0x298658+'\x5c\x5c','g'),''),_0x5ed5cd=_0x5ed5cd[_0x3a1e34(0x24b,0x443,0x2f9,0x2e2)](new RegExp(_0x355eea,'g'),''),_0x5ed5cd=_0x5ed5cd[_0x3a1e34(0x39c,0x397,_0x263511._0x1b77e2,_0x263511._0x127dab)](new RegExp(_0x298658+_0x3a1e34(_0x263511._0x3e2675,0x2f1,_0x263511._0x5e2de8,0x11d)+_0x298658+'\x5c\x5c','g'),''),_0x5ed5cd=_0x5ed5cd[_0x27b22a(_0x263511._0x1c4bd5,_0x263511._0x33dd45,0x28a,_0x263511._0x951a21)](new RegExp(_0x298658+_0x3a1e34(0x494,0x3e2,0x327,_0x263511._0x1285d0),'g'),''),_0x5ed5cd=_0x5ed5cd[_0x3a1e34(0x1d8,_0x263511._0x2a143f,0x2f9,0x43f)](/[\u0080-\u009F]/g,''),_0x5ed5cd=_0x5ed5cd[_0x3a1e34(0x32d,0x2d6,0x2f9,_0x263511._0x377582)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x5ed5cd=_0x5ed5cd[_0x3a1e34(0x254,_0x263511._0x2c16a4,0x2f9,_0x263511._0xdc2a87)](/[\u23CE\u2424]/g,''),_0x5ed5cd;}function killProcessGroup(_0x3c98f5,_0x5b0aa6,_0x4e1a3b=_0x154255(0x53,0x292,0x19d,0xb4)){const _0x28f4f5={_0x31c0b6:0x81,_0x6e8d00:0x1e3,_0x237f50:0x164,_0x264440:0x19d,_0x2ec845:0x2d4,_0xe8b91a:0x377,_0x206933:0x3f2,_0x41de45:0x1f6,_0x401478:0x222,_0xc7cc0f:0x2e7,_0x423846:0x240,_0x5d7d71:0x1e3,_0x595fc1:0x20a,_0xc09f23:0x331},_0x4e5625={_0x5b6e5d:0x144,_0x7b4a7a:0x50},_0x1b1295={_0x5269dd:0xad};function _0x2f9922(_0x4808a3,_0x49bb33,_0x5a1307,_0x1d2230){return _0x4bd068(_0x49bb33,_0x1d2230- -0x365,_0x5a1307-_0x1b1295._0x5269dd,_0x1d2230-0x185);}function _0x3c396b(_0x22fcec,_0x445328,_0x50c6c9,_0x154841){return _0x154255(_0x154841,_0x445328-0x7b,_0x50c6c9-_0x4e5625._0x5b6e5d,_0x154841-_0x4e5625._0x7b4a7a);}if(!_0x3c98f5[_0x2f9922(0x35a,0xb0,_0x28f4f5._0x31c0b6,_0x28f4f5._0x6e8d00)])return;if(_0x5b0aa6)try{_0x229f6b(_0x3c396b(_0x28f4f5._0x237f50,0x26e,0x23e,0x132),[_0x3c396b(0x33f,_0x28f4f5._0x264440,0x201,_0x28f4f5._0x2ec845),_0x3c98f5[_0x3c396b(0x2b2,_0x28f4f5._0xe8b91a,0x2f6,_0x28f4f5._0x206933)]['toString'](),'/T','/F'],{'stdio':_0x3c396b(_0x28f4f5._0x41de45,0x348,0x2ad,0x393)});return;}catch{_0x3c98f5['kill'](_0x4e1a3b);return;}try{process[_0x2f9922(0x3ff,0x397,_0x28f4f5._0x401478,0x331)](-_0x3c98f5[_0x2f9922(_0x28f4f5._0xc7cc0f,0x2fb,_0x28f4f5._0x423846,_0x28f4f5._0x5d7d71)],_0x4e1a3b);}catch{_0x3c98f5[_0x2f9922(0x366,0x329,_0x28f4f5._0x595fc1,_0x28f4f5._0xc09f23)](_0x4e1a3b);}}var BackgroundProcessRegistry=class{[_0x4bd068(0x3c4,0x447,0x48e,0x38f)]=new Map();[_0x154255(-0x32,0xb7,0x107,0xb8)];[_0x4bd068(0x4f1,0x463,0x54c,0x374)];[_0x4bd068(0x3c8,0x3c8,0x473,0x482)];[_0x4bd068(0x4cf,0x3e9,0x2f8,0x416)]=0x0;constructor(_0x2dbf01={}){const _0x1ac52c={_0x3a9ab4:0x135,_0x2551b5:0x62,_0x1b3adb:0x11,_0x5d8b34:0x9c,_0xf45762:0x8,_0x1bd0d2:0x186,_0x1f5a58:0x195,_0x586c49:0xaf,_0x183195:0x3af,_0x3bd76f:0x2ac},_0x142dd6={_0x2fb74d:0xcb,_0xc0e67f:0x160},_0x5732ba={_0x11b0cd:0x169,_0x595e91:0xb7};this[_0x132485(-_0x1ac52c._0x3a9ab4,-_0x1ac52c._0x2551b5,-0x109,0x4)]=_0x2dbf01[_0x132485(_0x1ac52c._0x1b3adb,-_0x1ac52c._0x2551b5,0x2a,-0x113)]??0xa;function _0x132485(_0x44ec18,_0x556030,_0x759dbf,_0x11c019){return _0x4bd068(_0x759dbf,_0x556030- -0x4ff,_0x759dbf-_0x5732ba._0x11b0cd,_0x11c019-_0x5732ba._0x595e91);}this[_0x132485(-0x85,-_0x1ac52c._0x5d8b34,_0x1ac52c._0xf45762,-0xbe)]=_0x2dbf01[_0x132485(-_0x1ac52c._0x1bd0d2,-0x9c,-_0x1ac52c._0x1f5a58,_0x1ac52c._0x586c49)]??0x40;function _0x3895fc(_0x46c938,_0x23070a,_0x4a5ff9,_0x25fc07){return _0x154255(_0x46c938,_0x23070a-_0x142dd6._0x2fb74d,_0x4a5ff9-0x27a,_0x25fc07-_0x142dd6._0xc0e67f);}this[_0x3895fc(0x376,_0x1ac52c._0x183195,_0x1ac52c._0x3bd76f,0x2d1)]=_0x2dbf01['capChars']??0x100000;}[_0x4bd068(0x74e,0x5d8,0x626,0x4bb)](_0x3408d0){const _0x2c7c35={_0x27c455:0x26e,_0x569f5c:0x191,_0x3de0c8:0x29e,_0x42e67b:0x61b,_0xe82a67:0x1fa,_0x17a40e:0x267,_0x57f688:0x2fb,_0x46a671:0x538,_0x1456e7:0x460,_0x24f2d2:0x5b8,_0x167a4e:0x4d7,_0x319bec:0x1b3,_0x3012c6:0x482,_0xf391de:0x5df,_0x51b522:0x3d6,_0x5ede1d:0x297,_0x544967:0x67a,_0x442d51:0x7d8,_0x39f02e:0x524,_0x44e6f6:0x390,_0x455ef3:0x26a,_0x5c6630:0x527,_0x5bfc1d:0x64a,_0xe58ca3:0x560,_0x2c1d06:0x47d,_0x474225:0x3a1,_0x1b8cd9:0x28b,_0xe9efea:0x32b,_0x5e0836:0x474,_0x5a76d7:0x48a,_0x1bb46e:0x36f,_0x2f3ad8:0x2c7,_0x34f93e:0x40c,_0x3153e2:0x587,_0x2c524c:0x366,_0x12fde7:0x2e0,_0x36a321:0x765,_0x1a284b:0x6ca,_0x9d5a29:0x6a0,_0x27fd16:0x6bc,_0x2b53bc:0x458},_0x3294be={_0x5f2869:0x555,_0x11de2b:0x5ea,_0x38e0f0:0x498,_0x3b2b13:0x55e,_0x8e6847:0x666,_0x2a2c51:0x6b0,_0x2fb03c:0x3dd},_0x403ec9={_0x25000f:0x1ad,_0x5c4ee6:0x9},_0x618a1c={_0x473637:0x3df,_0x2d7112:0x1a3,_0x15d03e:0xd8,_0xa8b987:0x79,_0x12d1cd:0x548,_0x4b3e33:0x6c,_0x5d9ded:0x153,_0x455205:0x19,_0x29a3dc:0x1d7,_0x460736:0x216,_0x49ef21:0x115,_0x5e74dc:0x36e,_0x1d082e:0x28b,_0x3a2410:0x39b,_0x13ad2f:0x4a8,_0x4fbce3:0x2f3,_0x38dad5:0x34e,_0x443a01:0x3c9,_0x4430c7:0xfb,_0x5d9178:0xf8,_0x2a5e33:0x3,_0x2a48e5:0x14d,_0x182e95:0x408,_0x593c9f:0x1eb,_0x373d0d:0x88,_0x5f1935:0x162,_0x4d61bc:0x8e},_0xcd1e14={_0x3f5a82:0xd3},_0x10b2a9={_0x92f661:0x222,_0x29a763:0xdd},_0x19b081={_0x17e4f6:0x199},_0x5eef61={_0x405c9e:0x20},_0x40aa77={_0xe516f6:0xd8},_0x1d47b6=[...this[_0x180e8f(_0x2c7c35._0x27c455,_0x2c7c35._0x569f5c,_0x2c7c35._0x3de0c8,0x3ce)][_0x4d07ef(0x4d6,0x5de,0x55c,0x544)]()][_0x4d07ef(0x68c,0x6c4,_0x2c7c35._0x42e67b,0x7cf)](_0x31ade2=>_0x31ade2[_0x180e8f(0x3a7,0x269,0x2ea,0x49a)]===_0x180e8f(0x442,0x313,0x3fb,0x2fd))[_0x180e8f(_0x2c7c35._0xe82a67,0x22a,_0x2c7c35._0x17a40e,_0x2c7c35._0x57f688)];if(_0x1d47b6>=this[_0x4d07ef(_0x2c7c35._0x46a671,0x536,_0x2c7c35._0x1456e7,0x54a)])throw new ToolExecutionError(_0x4d07ef(_0x2c7c35._0x24f2d2,_0x2c7c35._0x167a4e,0x3f7,0x495)+this['maxConcurrent']+').\x20Kill\x20one\x20with\x20KillShell\x20before\x20starting\x20another.',{'running':this[_0x180e8f(0x2c4,0x1e2,_0x2c7c35._0x319bec,0x3a1)]});const _0x24d465='bg-'+ ++this[_0x4d07ef(0x43f,_0x2c7c35._0x3012c6,0x58d,0x440)]+'-'+randomUUID()[_0x180e8f(0x4a7,0x3c1,0x5f8,_0x2c7c35._0xf391de)](0x0,0x8);function _0x180e8f(_0x15d65d,_0x341c17,_0x253f88,_0x56604e){return _0x154255(_0x341c17,_0x341c17-0xda,_0x15d65d-0x1bd,_0x56604e-_0x40aa77._0xe516f6);}const _0x56d7d9={'shellId':_0x24d465,'command':_0x3408d0['command'],'cwd':_0x3408d0[_0x4d07ef(0x5e0,0x5d5,0x6cd,0x50c)],'pid':_0x3408d0[_0x180e8f(0x3a1,_0x2c7c35._0x51b522,_0x2c7c35._0x5ede1d,0x3aa)]['pid'],'status':_0x4d07ef(_0x2c7c35._0x544967,0x6b4,_0x2c7c35._0x442d51,0x55e),'exitCode':null,'signal':null,'startedAt':Date[_0x4d07ef(_0x2c7c35._0x39f02e,0x51f,0x45c,0x429)](),'child':_0x3408d0[_0x180e8f(0x3a1,_0x2c7c35._0x44e6f6,0x3d9,_0x2c7c35._0x455ef3)],'buffer':[],'bufferChars':0x0,'totalProduced':0x0,'totalDropped':0x0,'readCursor':0x0,'stdoutDecoder':new StringDecoder('utf8'),'stderrDecoder':new StringDecoder(_0x4d07ef(_0x2c7c35._0x5c6630,_0x2c7c35._0x5bfc1d,0x5b8,0x624)),'stripAnsi':_0x3408d0['stripAnsi'],'killRequested':![],'processExited':![]};function _0x4d07ef(_0x2afab3,_0x199b4d,_0x2e7373,_0x53f2f5){return _0x4bd068(_0x2e7373,_0x199b4d-0x99,_0x2e7373-0xc5,_0x53f2f5-_0x5eef61._0x405c9e);}return _0x3408d0['child'][_0x4d07ef(0x625,_0x2c7c35._0xe58ca3,0x40a,_0x2c7c35._0x2c1d06)]?.['on'](_0x180e8f(0x33d,0x257,0x236,0x244),_0x42291e=>this[_0x180e8f(0x2fa,0x23c,0x1dd,0x344)](_0x56d7d9,_0x56d7d9[_0x180e8f(0x29a,0x31d,0x1ea,0x257)]['write'](_0x42291e))),_0x3408d0[_0x180e8f(_0x2c7c35._0x474225,_0x2c7c35._0x1b8cd9,0x416,_0x2c7c35._0xe9efea)][_0x180e8f(_0x2c7c35._0x5e0836,_0x2c7c35._0x5a76d7,0x3a8,0x330)]?.['on'](_0x180e8f(0x33d,_0x2c7c35._0x1bb46e,0x1d8,0x498),_0x4c565e=>this[_0x180e8f(0x2fa,0x1f1,0x474,0x3fe)](_0x56d7d9,_0x56d7d9[_0x180e8f(0x428,0x548,0x2df,0x390)][_0x180e8f(0x3b4,0x3c1,0x36d,0x462)](_0x4c565e))),_0x3408d0[_0x180e8f(0x3a1,_0x2c7c35._0x2f3ad8,0x2bd,_0x2c7c35._0x34f93e)][_0x4d07ef(_0x2c7c35._0x3153e2,0x60d,0x4f6,0x647)](_0x180e8f(0x454,0x578,_0x2c7c35._0x2c524c,_0x2c7c35._0x12fde7),()=>{function _0x4283a9(_0x5422ec,_0x42e8c9,_0x8a90e2,_0x23b261){return _0x180e8f(_0x8a90e2- -0x327,_0x42e8c9,_0x8a90e2-0x4b,_0x23b261-_0x19b081._0x17e4f6);}_0x56d7d9[_0x4283a9(0xc5,-_0x10b2a9._0x92f661,-0xb0,-_0x10b2a9._0x29a763)]=!![];}),_0x3408d0[_0x180e8f(_0x2c7c35._0x474225,0x2b7,0x460,0x488)]['once'](_0x4d07ef(0x754,0x61d,_0x2c7c35._0x36a321,0x759),(_0x39979f,_0x3f4f20)=>{this[_0x2560fa(0x2ee,_0x618a1c._0x473637,0x409,_0x618a1c._0x2d7112)](_0x56d7d9,_0x56d7d9[_0x1a6eee(_0x618a1c._0x15d03e,-0x1e8,-_0x618a1c._0xa8b987,-0x113)][_0x2560fa(0x3f4,_0x618a1c._0x12d1cd,0x44c,0x526)]());function _0x2560fa(_0x1b90be,_0x48140d,_0x27ebb6,_0xc3fe62){return _0x180e8f(_0x1b90be- -0xc,_0xc3fe62,_0x27ebb6-0x59,_0xc3fe62-0xeb);}this[_0x1a6eee(-_0x618a1c._0x4b3e33,_0x618a1c._0x5d9ded,-_0x618a1c._0x455205,0x44)](_0x56d7d9,_0x56d7d9[_0x1a6eee(_0x618a1c._0x29a3dc,_0x618a1c._0x460736,_0x618a1c._0x49ef21,0x10d)][_0x2560fa(0x3f4,_0x618a1c._0x5e74dc,_0x618a1c._0x1d082e,0x38c)]()),_0x56d7d9[_0x2560fa(_0x618a1c._0x3a2410,0x410,0x4fd,_0x618a1c._0x13ad2f)]=_0x56d7d9[_0x2560fa(0x2a9,_0x618a1c._0x4fbce3,_0x618a1c._0x38dad5,_0x618a1c._0x443a01)]?_0x1a6eee(_0x618a1c._0x4430c7,0x23c,_0x618a1c._0x5d9178,0x26d):'exited';function _0x1a6eee(_0x1d6967,_0xb6242d,_0x1417d8,_0x175c63){return _0x4d07ef(_0x1d6967-_0xcd1e14._0x3f5a82,_0x1417d8- -0x585,_0xb6242d,_0x175c63-0x52);}_0x56d7d9[_0x1a6eee(-0x15e,-0x123,-_0x618a1c._0x2a5e33,_0x618a1c._0x2a48e5)]=_0x39979f,_0x56d7d9[_0x2560fa(0x2b7,_0x618a1c._0x182e95,_0x618a1c._0x593c9f,0x304)]=_0x3f4f20,_0x56d7d9[_0x1a6eee(_0x618a1c._0x373d0d,_0x618a1c._0x5f1935,_0x618a1c._0x4d61bc,0x120)]=null;}),_0x3408d0[_0x180e8f(0x3a1,0x258,0x442,0x50a)][_0x4d07ef(0x5a5,0x60d,0x628,_0x2c7c35._0x1a284b)](_0x4d07ef(0x878,0x73b,_0x2c7c35._0x9d5a29,_0x2c7c35._0x27fd16),_0x14d408=>{const _0x453c3f={_0x23f6e9:0xc,_0x1d6c32:0x2f,_0x2ccc96:0x19f};function _0x489c26(_0x21f7a9,_0x4b48fc,_0x4f18a2,_0x4a2610){return _0x4d07ef(_0x21f7a9-_0x453c3f._0x23f6e9,_0x4b48fc- -_0x453c3f._0x1d6c32,_0x4f18a2,_0x4a2610-_0x453c3f._0x2ccc96);}_0x56d7d9[_0x489c26(_0x3294be._0x5f2869,_0x3294be._0x11de2b,_0x3294be._0x38e0f0,_0x3294be._0x3b2b13)]=_0x489c26(_0x3294be._0x8e6847,0x70c,_0x3294be._0x2a2c51,0x6d9),_0x56d7d9[_0x4eaf3f(0x66a,0x5ec,0x553,0x5b7)]=_0x14d408[_0x489c26(0x664,0x545,_0x3294be._0x2fb03c,0x5f2)];function _0x4eaf3f(_0xe7ff32,_0x1861ef,_0x5ce68a,_0x68e425){return _0x4d07ef(_0xe7ff32-_0x403ec9._0x25000f,_0x68e425- -0x184,_0x1861ef,_0x68e425-_0x403ec9._0x5c4ee6);}_0x56d7d9['child']=null;}),this['entries'][_0x180e8f(0x31f,_0x2c7c35._0x2b53bc,0x3af,0x416)](_0x24d465,_0x56d7d9),this['evictIfNeeded'](),_0x56d7d9;}[_0x154255(-0x1c,0x224,0x14b,0xc)](_0x420e4a,_0x3dbb43){const _0x50a36a={_0x58f4ef:0x569,_0xe853cf:0x49c,_0x2b1379:0x61e,_0x18055b:0x75d,_0x14da93:0x56a,_0x2d27ca:0x726,_0x4797b0:0x76b,_0x240d27:0x886,_0x3e2c59:0x60b,_0x3f6b2c:0x6d0,_0xb0aac3:0x753,_0x1afdff:0x6db,_0x4a236f:0x67f,_0x54d694:0x66a,_0xebe333:0x5a2,_0x256e2b:0x530,_0x42f2f1:0x4de,_0x5a8a07:0x6a2,_0x14ea4b:0x713,_0x3be2ed:0x533,_0xa1d54f:0x6cb,_0x2f71bf:0x5e2,_0x37df78:0x68b,_0x607695:0x586,_0x2e1046:0x78e,_0x4e9cba:0x757,_0x75e7a0:0x8ae,_0x2023cd:0x3d1,_0x4891a2:0x45c,_0x8b6bc1:0x2f8,_0x1d9773:0x58e,_0x25c909:0x505,_0x1a9179:0x5c8,_0x45d6bd:0x264,_0x2ae54b:0x285,_0x130fdb:0x4bb,_0x5179af:0x5fd,_0x450359:0x6c7,_0x595e0d:0x55a},_0x2c0b71={_0x10438b:0x1c,_0x2b2780:0x317,_0xf06a86:0x2b},_0xa98d=this[_0x2ae4b9(_0x50a36a._0x58f4ef,_0x50a36a._0xe853cf,0x491,0x66b)][_0x2ae4b9(_0x50a36a._0x2b1379,_0x50a36a._0x18055b,_0x50a36a._0x14da93,_0x50a36a._0x2d27ca)](_0x420e4a);if(!_0xa98d)throw new ToolExecutionError(_0x2ae4b9(0x74a,_0x50a36a._0x4797b0,0x709,_0x50a36a._0x240d27)+_0x420e4a,{'shellId':_0x420e4a});const _0xcb15b3=_0xa98d[_0x1fe6ff(0x4a6,0x717,_0x50a36a._0x3e2c59,_0x50a36a._0x3f6b2c)]['join'](''),_0x4d2386=Math[_0x2ae4b9(_0x50a36a._0xb0aac3,0x8b4,_0x50a36a._0x1afdff,0x710)](_0xa98d['readCursor'],_0xa98d[_0x2ae4b9(_0x50a36a._0x4a236f,0x7a3,_0x50a36a._0x54d694,0x595)]),_0x18ada5=Math['max'](0x0,_0xa98d[_0x1fe6ff(_0x50a36a._0xebe333,0x421,0x4de,0x446)]-_0xa98d['readCursor']),_0x286e97=_0xcb15b3[_0x2ae4b9(0x7a2,0x805,0x8eb,0x816)](_0x4d2386-_0xa98d[_0x1fe6ff(0x51c,_0x50a36a._0x256e2b,_0x50a36a._0x42f2f1,0x4e1)]),_0x12f802=_0xa98d[_0x2ae4b9(_0x50a36a._0x5a8a07,_0x50a36a._0x14ea4b,_0x50a36a._0x3be2ed,_0x50a36a._0x14ea4b)]!==_0x2ae4b9(0x73d,_0x50a36a._0xa1d54f,0x658,_0x50a36a._0x2f71bf);let _0xb67e1a;function _0x1fe6ff(_0x180a5a,_0x2cb7da,_0x30c21a,_0x44633d){return _0x154255(_0x180a5a,_0x2cb7da-_0x2c0b71._0x10438b,_0x30c21a-_0x2c0b71._0x2b2780,_0x44633d-_0x2c0b71._0xf06a86);}const _0x289d00=_0x3dbb43?.['regex'];if(!_0x289d00)_0xb67e1a=_0x286e97,_0xa98d[_0x1fe6ff(0x593,_0x50a36a._0x37df78,0x59e,_0x50a36a._0x607695)]=_0xa98d['totalProduced'];else{let _0x5b8bc3;try{_0x5b8bc3=new RegExp(_0x289d00);}catch(_0x4c3fbc){throw new ToolExecutionError(_0x2ae4b9(_0x50a36a._0x2e1046,0x884,_0x50a36a._0x4e9cba,_0x50a36a._0x75e7a0)+_0x4c3fbc[_0x1fe6ff(0x597,_0x50a36a._0x2023cd,_0x50a36a._0x4891a2,_0x50a36a._0x8b6bc1)],{'shellId':_0x420e4a,'regex':_0x289d00});}let _0x3eefcb=_0x286e97;if(!_0x12f802){const _0x2c9a49=_0x286e97[_0x1fe6ff(0x656,0x685,0x543,0x441)]('\x0a');_0x3eefcb=_0x2c9a49>=0x0?_0x286e97['slice'](0x0,_0x2c9a49+0x1):'';}_0xb67e1a=_0x3eefcb[_0x2ae4b9(0x60a,0x604,0x723,_0x50a36a._0x1d9773)]('\x0a')[_0x2ae4b9(0x74d,0x62a,0x63b,0x82d)](_0xb62959=>_0x5b8bc3[_0x1fe6ff(0x2f9,0x325,0x3a4,0x3e4)](_0xb62959))[_0x1fe6ff(_0x50a36a._0x25c909,0x418,0x4db,0x53e)]('\x0a'),_0xa98d[_0x1fe6ff(_0x50a36a._0x1a9179,0x44d,0x59e,0x6f6)]=_0x4d2386+_0x3eefcb[_0x1fe6ff(_0x50a36a._0x45d6bd,0x319,0x354,0x23f)];}function _0x2ae4b9(_0x5c5400,_0x5c141b,_0x53d864,_0x515a9d){return _0x4bd068(_0x5c141b,_0x5c5400-0x122,_0x53d864-0x121,_0x515a9d-0x148);}const _0x7f453e=(_0x18ada5>0x0?_0x1fe6ff(_0x50a36a._0x2ae54b,_0x50a36a._0x130fdb,0x3ca,0x3da)+_0x18ada5+'\x20chars\x20dropped]\x0a':'')+_0xb67e1a;return{'output':_0x7f453e,'status':_0xa98d['status'],'exitCode':_0xa98d['exitCode'],'signal':_0xa98d[_0x2ae4b9(0x5be,_0x50a36a._0x5179af,_0x50a36a._0x450359,_0x50a36a._0x595e0d)],'truncated':_0x18ada5>0x0};}['list'](){const _0x4e05de={_0x4efd70:0x4e3,_0x388ae9:0x6fd,_0x3f114f:0x703,_0x16d5e3:0x68f},_0x34617f={_0xdcd214:0x15b,_0x5c3ee1:0x142};function _0x5ba50d(_0x119a2f,_0x3974e6,_0x17c971,_0x57eca1){return _0x154255(_0x3974e6,_0x3974e6-0xfb,_0x57eca1-0x4e0,_0x57eca1-0xc7);}function _0x40d761(_0x5c5465,_0x4696db,_0xb1f9c5,_0x4b72df){return _0x4bd068(_0x4b72df,_0x5c5465- -0xd3,_0xb1f9c5-_0x34617f._0xdcd214,_0x4b72df-_0x34617f._0x5c3ee1);}return[...this[_0x40d761(0x374,0x264,_0x4e05de._0x4efd70,0x3cd)][_0x5ba50d(_0x4e05de._0x388ae9,0x69b,_0x4e05de._0x3f114f,_0x4e05de._0x16d5e3)]()];}[_0x154255(0x30e,0x258,0x300,0x2d9)](_0x19b81e){const _0x28b7b4={_0x1b3697:0x560,_0x5cabcb:0x6bb,_0x2d64b0:0x615,_0x147415:0x5e2,_0xbd33f7:0x56c,_0x4b7376:0x449,_0x4b2396:0x788,_0xb6d3b7:0x699,_0x531144:0x2e6,_0x10891c:0x43c,_0x531cf1:0x2cb,_0x45a784:0x33e,_0x82bd10:0x2db,_0x293355:0x5e1,_0x4e360d:0x739,_0x7522c9:0x620,_0x3ec65d:0x602,_0x2ca78f:0x1fa},_0x10c061={_0x28288d:0x1b7,_0x78d610:0x147},_0x1cd76d={_0x24fd64:0x119,_0x32c159:0x74};function _0x148aad(_0x109f52,_0x5b17e9,_0x161aed,_0x2e990a){return _0x4bd068(_0x2e990a,_0x5b17e9-_0x1cd76d._0x24fd64,_0x161aed-0x51,_0x2e990a-_0x1cd76d._0x32c159);}const _0x76c15b=this[_0x148aad(0x4d5,_0x28b7b4._0x1b3697,_0x28b7b4._0x5cabcb,0x498)][_0x148aad(0x6ff,_0x28b7b4._0x2d64b0,_0x28b7b4._0x147415,0x6a2)](_0x19b81e);if(!_0x76c15b)throw new ToolExecutionError(_0x342e39(0x505,_0x28b7b4._0xbd33f7,_0x28b7b4._0x4b7376,0x4e3)+_0x19b81e,{'shellId':_0x19b81e});function _0x342e39(_0x34c74c,_0x25cb55,_0x51b9d3,_0xa27b50){return _0x154255(_0x25cb55,_0x25cb55-0x4a,_0x51b9d3-_0x10c061._0x28288d,_0xa27b50-_0x10c061._0x78d610);}if(_0x76c15b[_0x148aad(_0x28b7b4._0x4b2396,_0x28b7b4._0xb6d3b7,0x609,0x5b1)]===_0x342e39(0x3b8,_0x28b7b4._0x531144,_0x28b7b4._0x10891c,0x3f3)&&_0x76c15b[_0x342e39(0x47a,0x35f,0x39b,_0x28b7b4._0x531cf1)]&&!_0x76c15b['processExited']){_0x76c15b[_0x342e39(_0x28b7b4._0x45a784,_0x28b7b4._0x82bd10,0x2af,0x260)]=!![];try{killProcessGroup(_0x76c15b['child'],process[_0x148aad(_0x28b7b4._0x293355,_0x28b7b4._0x4e360d,0x822,_0x28b7b4._0x7522c9)]==='win32');}catch{}}return{'status':_0x76c15b['status'],'exitCode':_0x76c15b[_0x148aad(0x569,_0x28b7b4._0x3ec65d,0x752,0x6ff)],'signal':_0x76c15b[_0x342e39(_0x28b7b4._0x2ca78f,0x16d,0x2bd,0x29a)]};}async[_0x154255(0x86,0x1eb,0x1f4,0x7b)](){const _0x4694a9={_0x350103:0x578,_0x2e1150:0x487,_0x3a5650:0x58b,_0x9e31b0:0x5a3,_0x1d8840:0x54d,_0x25ec25:0x67a,_0x15b31d:0x581,_0xe586db:0x3bf,_0x3dd869:0x5a9,_0x4f1a7a:0x5a0,_0x52c6c8:0x5d8,_0x3a2610:0x813,_0x7b0d6a:0x751,_0x13f43d:0x87e,_0x41d2be:0x43a},_0x47f328={_0x2c5292:0x4c7,_0x2ab946:0xb3},_0x3f39ba={_0x5e31c8:0x5e,_0x52d856:0xbe,_0x138772:0x7c};function _0x2be29a(_0x52879b,_0x53303d,_0x392ba0,_0x4ccec3){return _0x4bd068(_0x52879b,_0x4ccec3-_0x3f39ba._0x5e31c8,_0x392ba0-_0x3f39ba._0x52d856,_0x4ccec3-_0x3f39ba._0x138772);}function _0x755a9b(_0xd3f534,_0x3aac97,_0x27f5d8,_0x539952){return _0x154255(_0x539952,_0x3aac97-0x51,_0x3aac97-_0x47f328._0x2c5292,_0x539952-_0x47f328._0x2ab946);}for(const _0x486c8e of this[_0x755a9b(0x4ec,_0x4694a9._0x350103,0x5c5,_0x4694a9._0x2e1150)][_0x2be29a(_0x4694a9._0x3a5650,0x463,0x670,_0x4694a9._0x9e31b0)]()){if(_0x486c8e['status']===_0x2be29a(_0x4694a9._0x1d8840,0x544,0x6c9,0x679)&&_0x486c8e[_0x755a9b(0x7cd,0x6ab,_0x4694a9._0x25ec25,0x7e4)]&&!_0x486c8e[_0x755a9b(0x4ea,_0x4694a9._0x15b31d,0x408,0x60f)]){_0x486c8e[_0x2be29a(0x5b3,_0x4694a9._0xe586db,0x646,0x4ec)]=!![];try{killProcessGroup(_0x486c8e[_0x2be29a(_0x4694a9._0x3dd869,_0x4694a9._0x4f1a7a,0x4c6,_0x4694a9._0x52c6c8)],process[_0x755a9b(_0x4694a9._0x3a2610,_0x4694a9._0x7b0d6a,0x741,_0x4694a9._0x13f43d)]===_0x2be29a(0x4ec,0x368,0x339,_0x4694a9._0x41d2be));}catch{}}}}[_0x4bd068(0x3b2,0x4d3,0x3a0,0x374)](_0xd36395,_0x33585a){const _0x504812={_0x11c22c:0xea,_0x10009b:0x30,_0x5f37c2:0x89,_0x4e2843:0x12a,_0x3f3702:0x34e,_0x1f8c93:0x5d1,_0x275088:0x11b,_0x227525:0x298,_0x98b09c:0x254,_0x1b9521:0x131,_0x328c00:0x429,_0x56cfb4:0x28c,_0x582018:0x296,_0x29664b:0xad,_0x55a8c1:0x2fa,_0x3f0cd1:0x42c,_0x1d2a4d:0x2ec,_0x575517:0x22c,_0x110358:0x1ef,_0x5eaf69:0x353,_0x1a7f1e:0x81,_0x214d22:0xc2,_0x4b7664:0x404,_0x20343d:0x314,_0x4adbb1:0x1fa,_0x2e2808:0x4e3,_0x2e6bfc:0x3e8,_0x3f77c5:0x2a1,_0x36fc6b:0x393,_0x4f9bb8:0x404,_0x4a2a1e:0x4aa,_0x1e751d:0x4cf,_0x5aa043:0x3c1,_0x3fe86b:0x2b6,_0x5060bc:0x384,_0x47c7ba:0x2a7,_0x9ea685:0x229,_0x6f76d7:0x4b1,_0x4161f1:0x3de,_0x55bea0:0x612,_0x401b2c:0x4ad,_0x36a1cb:0x366,_0x3ebec7:0x1da,_0x21e623:0x441,_0x21ff4b:0x33b,_0x348f05:0x1d7,_0x3f13f8:0x40a},_0x537cd2={_0x28b7ff:0x147,_0x137327:0x93},_0xa46c1d={_0x48863a:0x10b,_0x2b9601:0x1bd,_0x5969a1:0x3},_0x4d0df2=_0xd36395[_0x50850b(_0x504812._0x11c22c,_0x504812._0x10009b,_0x504812._0x5f37c2,0x191)]?stripAnsiAndControls(_0x33585a):_0x33585a;function _0xcc365d(_0x364cb1,_0x579d87,_0x16ecd3,_0x331bdf){return _0x154255(_0x579d87,_0x579d87-_0xa46c1d._0x48863a,_0x364cb1-_0xa46c1d._0x2b9601,_0x331bdf-_0xa46c1d._0x5969a1);}if(_0x4d0df2[_0xcc365d(0x1fa,_0x504812._0x4e2843,0x313,0x2a6)]===0x0)return;_0xd36395[_0xcc365d(0x4b1,0x61d,_0x504812._0x3f3702,_0x504812._0x1f8c93)][_0x50850b(0xa3,-0x1d,0x5e,_0x504812._0x275088)](_0x4d0df2);function _0x50850b(_0x2d80da,_0x43d8c0,_0x5d38ee,_0x35e8a5){return _0x4bd068(_0x2d80da,_0x35e8a5- -0x2a2,_0x5d38ee-_0x537cd2._0x28b7ff,_0x35e8a5-_0x537cd2._0x137327);}_0xd36395[_0x50850b(0x29d,0x28c,_0x504812._0x227525,0x33b)]+=_0x4d0df2[_0x50850b(_0x504812._0x98b09c,0x24,0x57,_0x504812._0x1b9521)],_0xd36395[_0x50850b(_0x504812._0x328c00,_0x504812._0x56cfb4,_0x504812._0x582018,0x2d5)]+=_0x4d0df2[_0xcc365d(0x1fa,0x301,_0x504812._0x29664b,_0x504812._0x55a8c1)];while(_0xd36395[_0x50850b(_0x504812._0x3f0cd1,_0x504812._0x1d2a4d,_0x504812._0x575517,0x33b)]>this[_0xcc365d(_0x504812._0x110358,_0x504812._0x5eaf69,_0x504812._0x1a7f1e,_0x504812._0x214d22)]){const _0x217015=_0xd36395[_0xcc365d(_0x504812._0x4b7664,_0x504812._0x20343d,0x4e3,0x4bd)]-this['capChars'],_0x48d7cc=_0xd36395['buffer'][0x0];_0x48d7cc[_0xcc365d(_0x504812._0x4adbb1,0x241,0x12e,0xa0)]<=_0x217015?(_0xd36395[_0x50850b(0x2f4,_0x504812._0x2e2808,0x286,_0x504812._0x2e6bfc)][_0xcc365d(0x401,_0x504812._0x3f77c5,_0x504812._0x36fc6b,0x57a)](),_0xd36395[_0xcc365d(_0x504812._0x4f9bb8,_0x504812._0x4a2a1e,_0x504812._0x1e751d,_0x504812._0x5aa043)]-=_0x48d7cc[_0xcc365d(0x1fa,0x2d6,_0x504812._0x3fe86b,0x268)],_0xd36395[_0xcc365d(_0x504812._0x5060bc,_0x504812._0x47c7ba,0x233,0x2f0)]+=_0x48d7cc[_0xcc365d(_0x504812._0x4adbb1,0x1d9,0x1a2,_0x504812._0x9ea685)]):(_0xd36395[_0xcc365d(_0x504812._0x6f76d7,0x43e,_0x504812._0x4161f1,_0x504812._0x55bea0)][0x0]=_0x48d7cc[_0x50850b(0x53e,_0x504812._0x401b2c,0x299,_0x504812._0x4161f1)](_0x217015),_0xd36395[_0x50850b(_0x504812._0x36a1cb,_0x504812._0x3ebec7,_0x504812._0x21e623,_0x504812._0x21ff4b)]-=_0x217015,_0xd36395[_0x50850b(0x22f,_0x504812._0x348f05,_0x504812._0x3f13f8,0x2bb)]+=_0x217015);}}['evictIfNeeded'](){const _0x1eaf81={_0xe64350:0x479,_0x50d941:0x5e0,_0x2d7d8a:0xbd,_0x1546e8:0x5a2,_0x2d67f7:0x42b,_0x3bf9f8:0x708,_0x2d9290:0x6db,_0x4a0f49:0x619,_0x7d355:0x5dc},_0x45e0f4={_0xf7d1be:0xe8};function _0x1e4553(_0x4b5576,_0x30dcbb,_0x4f63a5,_0x2fd71d){return _0x4bd068(_0x4b5576,_0x30dcbb- -0x497,_0x4f63a5-0x93,_0x2fd71d-0x1c9);}if(this[_0x3f32d0(0x5a2,0x482,_0x1eaf81._0xe64350,_0x1eaf81._0x50d941)][_0x1e4553(0x100,0x148,0x71,_0x1eaf81._0x2d7d8a)]<=this['maxEntries'])return;function _0x3f32d0(_0x3e8917,_0x250167,_0x349bba,_0x319301){return _0x154255(_0x250167,_0x250167-_0x45e0f4._0xf7d1be,_0x3e8917-0x4f1,_0x319301-0x1cd);}for(const [_0x40b8cd,_0x4d4e6a]of this[_0x3f32d0(_0x1eaf81._0x1546e8,_0x1eaf81._0x2d67f7,_0x1eaf81._0x3bf9f8,0x705)]){if(_0x4d4e6a[_0x3f32d0(_0x1eaf81._0x2d9290,_0x1eaf81._0x4a0f49,0x7ff,0x610)]!=='running'){this[_0x3f32d0(0x5a2,0x505,0x4e6,_0x1eaf81._0x7d355)]['delete'](_0x40b8cd);return;}}}};function createBashOutputTool(_0x1cc048){const _0x32a974={_0x4fac2e:0x48c,_0x52fc86:0x42d,_0x4baaa8:0x38b,_0x1ebbc4:0x1ee,_0x1bc280:0x2b3,_0x39895c:0x488,_0x3bd8a1:0x362,_0x69e7a8:0x311,_0x26a8cd:0x4fe,_0xa8ef82:0x3df,_0x331eb9:0x433,_0x268f3c:0x4ca,_0x278aea:0x3cf},_0x55c18b={_0x2c2d06:0x3d4,_0x47bb94:0x2d0,_0x3faee0:0x178,_0x97a3a:0x35b,_0xea92b9:0x39,_0x53dd70:0x2c5,_0x2935a1:0x421,_0x1c70d8:0x3fa,_0x37909d:0x3b3,_0x4ad7c7:0x2bd,_0x2853cf:0x269,_0x5594dd:0xf4,_0x1d6193:0x12d,_0x431df2:0x4d,_0x1a00b1:0x1cf,_0x524641:0x28b},_0x4cdabe={_0x79974c:0x15,_0x419cb2:0x1ea},_0x474a6e={_0x4c268c:0xa5,_0x5dd586:0x1a3},{registry:_0xf12906}=_0x1cc048;function _0x9b71be(_0x623789,_0x20acef,_0x4001bb,_0x32b260){return _0x154255(_0x623789,_0x20acef-_0x474a6e._0x4c268c,_0x32b260- -0x2c,_0x32b260-_0x474a6e._0x5dd586);}function _0x23b1df(_0x2eb863,_0x431ad0,_0xe6a297,_0x1478f0){return _0x4bd068(_0x431ad0,_0x1478f0-_0x4cdabe._0x79974c,_0xe6a297-_0x4cdabe._0x419cb2,_0x1478f0-0xc6);}return defineTool({'name':'BashOutput','description':_0x23b1df(_0x32a974._0x4fac2e,_0x32a974._0x52fc86,0x4f5,0x500),'inputSchema':{'type':_0x9b71be(_0x32a974._0x4baaa8,0x2ef,_0x32a974._0x1ebbc4,_0x32a974._0x1bc280),'properties':{'shellId':{'type':_0x23b1df(_0x32a974._0x39895c,_0x32a974._0x3bd8a1,_0x32a974._0x69e7a8,0x433)},'regex':{'type':_0x23b1df(0x4ba,_0x32a974._0x26a8cd,_0x32a974._0xa8ef82,_0x32a974._0x331eb9)}},'required':[_0x23b1df(_0x32a974._0x268f3c,0x33b,0x27b,_0x32a974._0x278aea)]},async *'execute'(_0x4a7949){const _0x1f0f96={_0x5f3dc3:0xdd,_0x2dad4e:0xb9,_0x402fb9:0x226},_0x1502a0={_0x2778f5:0x102,_0x1692ae:0x3fe};function _0xfb3d04(_0x436d97,_0xe2a655,_0x481d38,_0x507f3d){return _0x23b1df(_0x436d97-_0x1502a0._0x2778f5,_0x436d97,_0x481d38-0xdd,_0xe2a655- -_0x1502a0._0x1692ae);}function _0x60f349(_0x40bb82,_0x1114f8,_0x481ec0,_0xa0d8c5){return _0x23b1df(_0x40bb82-_0x1f0f96._0x5f3dc3,_0x481ec0,_0x481ec0-_0x1f0f96._0x2dad4e,_0x1114f8- -_0x1f0f96._0x402fb9);}const _0x59b556=_0xf12906[_0x60f349(_0x55c18b._0x2c2d06,_0x55c18b._0x47bb94,_0x55c18b._0x3faee0,_0x55c18b._0x97a3a)](_0x4a7949[_0x60f349(_0x55c18b._0xea92b9,0x1a9,0xbb,_0x55c18b._0x53dd70)],_0x4a7949[_0x60f349(_0x55c18b._0x2935a1,_0x55c18b._0x1c70d8,_0x55c18b._0x37909d,0x41f)]?{'regex':_0x4a7949['regex']}:void 0x0);return createToolOutput(_0x59b556[_0x60f349(_0x55c18b._0x4ad7c7,_0x55c18b._0x2853cf,0x2b7,0x369)],{'shellId':_0x4a7949[_0x60f349(_0x55c18b._0x5594dd,0x1a9,_0x55c18b._0x1d6193,_0x55c18b._0x431df2)],'status':_0x59b556['status'],'exitCode':_0x59b556['exitCode'],'signal':_0x59b556[_0x60f349(_0x55c18b._0x1a00b1,_0x55c18b._0x524641,0x2da,0x1f0)],'truncated':_0x59b556[_0xfb3d04(0x1d3,0x177,0x24d,0x13)]});}});}import{spawn as _0x48a339}from'child_process';import{statSync}from'fs';import*as _0x2b6b2c from'os';import*as _0x51e6d1 from'path';import{StringDecoder as _0x5e12c3}from'string_decoder';import{stat}from'fs/promises';import*as _0x4ebca5 from'path';function isPathInside(_0x31537c,_0x23f53a){const _0x445705={_0x3920bd:0x500,_0xed362a:0x4a5,_0x24dd8b:0x78e,_0xd9c071:0x6b8},_0x519a5a={_0x50e056:0x72},_0x2b1313={_0x2ef555:0x447};function _0x17f664(_0x98dd2a,_0x1a922f,_0x15a97f,_0x127136){return _0x154255(_0x127136,_0x1a922f-0x11b,_0x1a922f-_0x2b1313._0x2ef555,_0x127136-0x1b);}function _0x27e0ab(_0x5ac9bf,_0x29ca29,_0x3726ed,_0x19586c){return _0x4bd068(_0x5ac9bf,_0x19586c- -0x477,_0x3726ed-0x196,_0x19586c-_0x519a5a._0x50e056);}const _0x14090=_0x4ebca5[_0x17f664(0x5e3,0x55f,_0x445705._0x3920bd,_0x445705._0xed362a)](_0x31537c),_0x52614b=_0x4ebca5[_0x17f664(0x539,0x66b,_0x445705._0x24dd8b,0x771)](_0x14090,_0x23f53a);return _0x52614b===''||!_0x52614b['startsWith']('..')&&!_0x4ebca5[_0x17f664(0x74c,0x704,_0x445705._0xd9c071,0x66f)](_0x52614b);}function resolveWorkspacePath(_0xcc7ee0,_0xc2e8ce){return resolveAllowedPath(_0xcc7ee0,[],_0xc2e8ce);}function resolveAllowedPath(_0x15558b,_0x5d0eaa,_0x14970f){const _0x28fdfb={_0x4f3ccc:0x38,_0x321e09:0x118},_0x3e4a44={_0x39d137:0x129};function _0x3542c1(_0x222df0,_0x586546,_0x3b8463,_0x41d5a5){return _0x4bd068(_0x41d5a5,_0x586546- -0x3ac,_0x3b8463-0x1b2,_0x41d5a5-0x1e8);}const _0x5e68d9=_0x4ebca5[_0x3542c1(_0x28fdfb._0x4f3ccc,0x102,0x1c3,0x249)](_0x15558b),_0x1abd5c=_0x4ebca5[_0x312032(-_0x28fdfb._0x321e09,-0xf7,-0xcd,-0x6a)](_0x5e68d9,_0x14970f);function _0x312032(_0x1801c1,_0x340117,_0x5d0740,_0x4b97d7){return _0x4bd068(_0x340117,_0x5d0740- -0x57b,_0x5d0740-0x55,_0x4b97d7-_0x3e4a44._0x39d137);}const _0x4abccb=[_0x5e68d9,..._0x5d0eaa['map'](_0x242e7a=>_0x4ebca5['resolve'](_0x242e7a))];if(_0x4abccb['some'](_0xf3d0c5=>isPathInside(_0xf3d0c5,_0x1abd5c)))return _0x1abd5c;throw new ToolExecutionError('Path\x20is\x20outside\x20allowed\x20directories:\x20'+_0x14970f,{'path':_0x14970f,'rootDir':_0x5e68d9,'allowedDirs':_0x4abccb});}async function assertWorkspaceFile(_0x490484){const _0xa893={_0x32eda9:0x4af,_0x4c3950:0x462,_0x1b434e:0x4f9,_0x4ce923:0x503},_0x12c829={_0x3cb993:0x2c7},_0x49fbb9={_0x5ed54a:0x172,_0x366250:0x15c};function _0x58d194(_0x204636,_0x1cc16c,_0x264c00,_0x312c3c){return _0x154255(_0x264c00,_0x1cc16c-0x140,_0x204636- -_0x49fbb9._0x5ed54a,_0x312c3c-_0x49fbb9._0x366250);}const _0x104ac7=await stat(_0x490484);function _0x3a3088(_0x8e1dba,_0x55e913,_0x34ce07,_0x4ada56){return _0x154255(_0x8e1dba,_0x55e913-0x12b,_0x4ada56-_0x12c829._0x3cb993,_0x4ada56-0x150);}if(!_0x104ac7[_0x3a3088(_0xa893._0x32eda9,0x37a,0x55c,_0xa893._0x4c3950)]())throw new ToolExecutionError(_0x3a3088(0x404,0x4bc,_0xa893._0x1b434e,_0xa893._0x4ce923)+_0x490484,{'path':_0x490484});}function isProbablyBinary(_0x5e74b4){const _0x20ffc7={_0x5b6f45:0xa,_0x1d5111:0xfc},_0x13d2b7={_0x190fb3:0x4ca,_0x504c09:0x0};function _0x49dd2c(_0x2d4bb7,_0x175222,_0xd5fd9b,_0x45daa7){return _0x4bd068(_0x45daa7,_0x175222- -_0x13d2b7._0x190fb3,_0xd5fd9b-0x15e,_0x45daa7-_0x13d2b7._0x504c09);}return _0x5e74b4[_0x49dd2c(0x149,0x16,-_0x20ffc7._0x5b6f45,_0x20ffc7._0x1d5111)](0x0);}var DEFAULT_TIMEOUT_MS=0x7530,DEFAULT_DESCRIPTION='Execute\x20a\x20shell\x20command\x20with\x20timeout\x20protection.\x20Captures\x20stdout\x20and\x20stderr.\x20Do\x20not\x20use\x20for\x20interactive\x20commands\x20that\x20require\x20user\x20input.\x20Do\x20not\x20use\x20for\x20reading\x20files\x20(use\x20FileRead\x20instead).\x20Set\x20runInBackground:true\x20for\x20long-running\x20commands\x20(servers,\x20watchers):\x20it\x20returns\x20a\x20shellId\x20immediately\x20—\x20read\x20output\x20with\x20BashOutput\x20and\x20stop\x20it\x20with\x20KillShell.\x20DO\x20NOT\x20USE\x20BASH\x20TOOL\x20for\x20read\x20file\x20use\x20FileRead.\x20You\x20MUST\x20provide\x20a\x20concise\x20`description`\x20explaining\x20what\x20the\x20command\x20does\x20and\x20why\x20you\x20are\x20running\x20it\x20(the\x20goal\x20it\x20advances)\x20—\x20it\x20is\x20shown\x20to\x20the\x20user\x20for\x20transparency\x20before\x20execution.\x20The\x20default\x20timeout\x20is\x20'+DEFAULT_TIMEOUT_MS+'ms';function buildChildEnv(_0x3a8d18,_0x20532a){const _0xa0aa56={_0x208fc7:0x5d0,_0x4cc67e:0x3cf,_0x3e85a2:0x3dd,_0x453607:0x35f,_0x23f2e7:0x615,_0x160fff:0x581,_0x4fee95:0x5b2,_0x221f0d:0x121,_0x298b65:0x4b,_0x28fbb2:0xec,_0x5465a8:0xa0,_0x5ad847:0x6,_0x11f6c1:0xb8,_0x8a99d0:0x1e4,_0x1f1752:0x14,_0x491e39:0xb,_0x46b8c4:0x16e,_0x517af5:0xce,_0x43c68b:0x237},_0x38db60={_0x2b8d4d:0x1b2,_0x268b38:0x126},_0x5348c1={_0x1c8177:0x427,_0x2ad82e:0x1d3},_0x5bf374={...process[_0x33981f(_0xa0aa56._0x208fc7,0x4ae,_0xa0aa56._0x4cc67e,0x51a)],..._0x3a8d18??{}};if(_0x20532a[_0x33981f(_0xa0aa56._0x3e85a2,0x267,_0xa0aa56._0x453607,0x365)]===0x0)return _0x5bf374;if(_0x2b6b2c[_0x33981f(_0xa0aa56._0x23f2e7,0x5b9,_0xa0aa56._0x160fff,_0xa0aa56._0x4fee95)]()===_0x5c3509(-_0xa0aa56._0x221f0d,-_0xa0aa56._0x298b65,-0x17,0x7c)){const _0x226530=new Set(_0x20532a[_0x5c3509(0x149,-0x1d,-_0xa0aa56._0x28fbb2,-_0xa0aa56._0x5465a8)](_0x1e5863=>_0x1e5863['toLowerCase']()));for(const _0x404f61 of Object[_0x5c3509(-_0xa0aa56._0x5ad847,_0xa0aa56._0x11f6c1,-0x4f,_0xa0aa56._0x8a99d0)](_0x5bf374)){if(_0x226530[_0x5c3509(_0xa0aa56._0x1f1752,-_0xa0aa56._0x491e39,-_0xa0aa56._0x46b8c4,0xc6)](_0x404f61[_0x5c3509(_0xa0aa56._0x517af5,_0xa0aa56._0x43c68b,0x3b0,0x1e9)]()))delete _0x5bf374[_0x404f61];}}else{for(const _0xf29a3a of _0x20532a)delete _0x5bf374[_0xf29a3a];}function _0x5c3509(_0x572fa9,_0x3309b7,_0x33d1cc,_0x4d7858){return _0x4bd068(_0x33d1cc,_0x3309b7- -_0x5348c1._0x1c8177,_0x33d1cc-_0x5348c1._0x2ad82e,_0x4d7858-0xbf);}function _0x33981f(_0x1b0dfb,_0x35dac7,_0x24ebab,_0x25e9f8){return _0x4bd068(_0x1b0dfb,_0x25e9f8- -0x6e,_0x24ebab-_0x38db60._0x2b8d4d,_0x25e9f8-_0x38db60._0x268b38);}return _0x5bf374;}function mapSpawnError(_0x17e2ff,_0x51100f){const _0x4140cb={_0x566e23:0x6b9,_0x57697b:0x56e,_0x538712:0x5bd},_0x12be2a={_0x45f524:0x38},_0x541487={_0x3c29bc:0x18};function _0x3c596f(_0x2787b0,_0x5c7787,_0x1a4df0,_0x47eae0){return _0x154255(_0x2787b0,_0x5c7787-0x179,_0x1a4df0-0x318,_0x47eae0-_0x541487._0x3c29bc);}if(isErrnoException(_0x17e2ff)&&_0x17e2ff[_0x3c596f(0x5db,0x711,0x5fe,_0x4140cb._0x566e23)]==='ENOENT')return new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x51100f[_0x3c596f(0x4dc,_0x4140cb._0x57697b,_0x4140cb._0x538712,0x5c7)],_0x51100f);function _0x47e61d(_0x31cb03,_0x5c0fe5,_0x4e5f66,_0x5896a7){return _0x4bd068(_0x5c0fe5,_0x4e5f66- -0x28,_0x4e5f66-0x95,_0x5896a7-_0x12be2a._0x45f524);}return new ToolExecutionError(_0x17e2ff instanceof Error?_0x17e2ff['message']:String(_0x17e2ff),_0x51100f);}function shellExists(_0xae97ac){const _0x180404={_0x57c8d2:0xc7,_0x3b6516:0x144,_0x4114af:0x181,_0x545175:0x403,_0xfad939:0x3d4},_0x32c369={_0x21442d:0x4a},_0x69845c={_0x1de8c8:0x25c,_0x2f7a7d:0x1de};function _0x17758e(_0x54323f,_0x3d9098,_0x8c4f3f,_0x3cf79b){return _0x154255(_0x3d9098,_0x3d9098-0x9e,_0x8c4f3f-_0x69845c._0x1de8c8,_0x3cf79b-_0x69845c._0x2f7a7d);}function _0x316212(_0xacb301,_0xd8fb88,_0x2a9c15,_0x196079){return _0x154255(_0x2a9c15,_0xd8fb88-0x1cf,_0x196079- -0x1a,_0x196079-_0x32c369._0x21442d);}try{const _0xf24d20=statSync(_0xae97ac);return _0xf24d20[_0x316212(_0x180404._0x57c8d2,_0x180404._0x3b6516,0xd1,_0x180404._0x4114af)]()&&(_0xf24d20[_0x17758e(0x341,_0x180404._0x545175,0x35b,_0x180404._0xfad939)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x4172bf){const _0x324120={_0x3b8165:0x1e1,_0x322da6:0x291,_0x1c0d3a:0x30a,_0x338071:0x81,_0x7deefd:0x9a,_0x17160f:0x8b,_0x292bc5:0x464,_0x41a972:0x2,_0x58e002:0x6f,_0x51198b:0x8a,_0x17818a:0xe0,_0x45010a:0x242,_0x58778f:0x12e,_0x1e7d5b:0x2e5,_0x16c44b:0x148,_0x340808:0xce,_0x156355:0x2ef,_0x57d636:0x15e,_0x784827:0x176},_0xa6c73e={_0x215c25:0x50,_0xaf6b7b:0x1a6},_0x13c0a3={_0x2c260c:0x144,_0x5cda5a:0x2ee,_0x5d7e22:0x2d};if(_0x4172bf)return _0x4172bf;if(_0x2b6b2c['platform']()==='win32')return process[_0x29ffdf(_0x324120._0x3b8165,0x242,_0x324120._0x322da6,_0x324120._0x1c0d3a)][_0x29ffdf(_0x324120._0x338071,_0x324120._0x7deefd,_0x324120._0x17160f,0x7f)]||_0x451900(0x49d,0x625,_0x324120._0x292bc5,0x541);function _0x451900(_0x52536b,_0x24e3f1,_0x147bb1,_0x1df528){return _0x154255(_0x147bb1,_0x24e3f1-_0x13c0a3._0x2c260c,_0x1df528-_0x13c0a3._0x5cda5a,_0x1df528-_0x13c0a3._0x5d7e22);}const _0x372fd5=['/bin/bash',_0x29ffdf(-_0x324120._0x41a972,_0x324120._0x58e002,-_0x324120._0x51198b,_0x324120._0x17818a),'/usr/bin/bash','/usr/bin/sh'];for(const _0x1c84cb of _0x372fd5){if(shellExists(_0x1c84cb))return _0x1c84cb;}const _0x2b406a=process[_0x29ffdf(0x13f,_0x324120._0x45010a,_0x324120._0x58778f,_0x324120._0x1e7d5b)][_0x29ffdf(_0x324120._0x16c44b,0x1ce,_0x324120._0x340808,_0x324120._0x156355)];function _0x29ffdf(_0x3d2028,_0x4b372c,_0x3a12eb,_0x15972){return _0x154255(_0x15972,_0x4b372c-0x199,_0x4b372c-_0xa6c73e._0x215c25,_0x15972-_0xa6c73e._0xaf6b7b);}if(_0x2b406a&&shellExists(_0x2b406a))return _0x2b406a;return _0x29ffdf(0x14f,_0x324120._0x57d636,_0x324120._0x784827,0x31);}function buildShellArgs(_0x486322,_0x4dfc14){const _0x43dfa0={_0x5eb998:0x6a,_0x135299:0x6e,_0x548013:0x26,_0x495c1a:0x1c},_0x1da264={_0x50ccb3:0x391,_0x3ec4ad:0x1e7,_0x4d41d7:0x95},_0x48c6bf={_0x3cdf33:0x17,_0x3db07c:0x2d,_0x5cfd32:0x64};if(_0x2b6b2c['platform']()===_0x3c29fc(0x56,0x19,-0xc9,-_0x43dfa0._0x5eb998)){const _0xc3ac8a=/cmd(\.exe)?$/i['test'](_0x4dfc14);return _0xc3ac8a?['/d','/s','/c',_0x486322]:[_0x3c29fc(0xfe,_0x43dfa0._0x135299,-_0x43dfa0._0x548013,-_0x43dfa0._0x495c1a),_0x196da0(0x183,0x8f,-0x37,0xf2),'-Command',_0x486322];}function _0x3c29fc(_0x5d9f4f,_0x29de9c,_0x1e2579,_0x431960){return _0x154255(_0x1e2579,_0x29de9c-_0x48c6bf._0x3cdf33,_0x29de9c- -_0x48c6bf._0x3db07c,_0x431960-_0x48c6bf._0x5cfd32);}function _0x196da0(_0x7c88fe,_0x316182,_0x52f107,_0x240994){return _0x4bd068(_0x7c88fe,_0x316182- -_0x1da264._0x50ccb3,_0x52f107-_0x1da264._0x3ec4ad,_0x240994-_0x1da264._0x4d41d7);}return['-c',_0x486322];}function resolveWorkingDirectory(_0x4f0401,_0x42af7a,_0x349a88){const _0x55a7eb={_0x202c04:0x53,_0x2dcd4e:0x207,_0x31af9c:0x27f,_0x2db8c1:0x119,_0x4c182f:0xd0,_0x467968:0x45},_0x4e90c1={_0x36521d:0x176},_0x3c88b5={_0x54c920:0x1ac};function _0x2fcb86(_0x497b2f,_0xbf650a,_0x13ee9f,_0x255a67){return _0x154255(_0xbf650a,_0xbf650a-0x2d,_0x13ee9f- -_0x3c88b5._0x54c920,_0x255a67-0x34);}function _0x1aaab0(_0x5254df,_0x144f03,_0xb8f20c,_0x42e018){return _0x154255(_0x42e018,_0x144f03-0x61,_0xb8f20c- -_0x4e90c1._0x36521d,_0x42e018-0x30);}const _0x40833a=resolveAllowedPath(_0x42af7a,_0x349a88,_0x4f0401??'.');try{const _0x102059=statSync(_0x40833a);if(!_0x102059[_0x2fcb86(-0x172,_0x55a7eb._0x202c04,-0xaa,-_0x55a7eb._0x2dcd4e)]())throw new ToolExecutionError(_0x1aaab0(0x1dd,_0x55a7eb._0x31af9c,_0x55a7eb._0x2db8c1,_0x55a7eb._0x4c182f)+_0x40833a,{'cwd':_0x40833a});return _0x40833a;}catch(_0x4f6fdb){if(_0x4f6fdb instanceof ToolExecutionError)throw _0x4f6fdb;throw new ToolExecutionError(_0x1aaab0(-0x1d,-0xb,0xeb,_0x55a7eb._0x467968)+_0x40833a,{'cwd':_0x40833a});}}function appendChunk(_0x57b420,_0x54940a,_0x1e95e0,_0x2e30de,_0x5d71af){const _0x15c8e3={_0x28b6b9:0x172,_0x55b1bf:0x25b,_0x3b2208:0x1ad,_0x295ebb:0x188,_0x3239a8:0x298},_0x2a2453={_0x44e392:0x1ad},_0x21e270={_0x39063d:0x545,_0x4abf22:0x6f};function _0x565104(_0x46d362,_0xe32928,_0x411066,_0x4039ee){return _0x4bd068(_0x46d362,_0x4039ee- -_0x21e270._0x39063d,_0x411066-_0x21e270._0x4abf22,_0x4039ee-0xdd);}const _0x1c1141=_0x2e30de?stripAnsiAndControls(_0x1e95e0):_0x1e95e0;function _0x80e302(_0x361163,_0x2534d6,_0x379949,_0x32db35){return _0x4bd068(_0x379949,_0x2534d6- -0x125,_0x379949-0xd9,_0x32db35-_0x2a2453._0x44e392);}if(_0x1c1141[_0x565104(-0x15b,-0xe4,-0x209,-_0x15c8e3._0x28b6b9)]===0x0)return;_0x57b420[_0x565104(-_0x15c8e3._0x55b1bf,-0x1fa,-_0x15c8e3._0x3b2208,-_0x15c8e3._0x295ebb)](_0x1c1141),_0x54940a[_0x80e302(0x241,_0x15c8e3._0x3239a8,0x1ca,0x2ae)](_0x1c1141),_0x5d71af();}function createBashTool(_0x293464={}){const _0x166941={_0x2b87e4:0x462,_0x3c6f89:0x3e4,_0x508b7d:0x484,_0xc3ad1e:0x4f3,_0x3d797f:0x434,_0x28b327:0x3a4,_0x3f4188:0x4db,_0x4fa891:0x4e7,_0x35f6bb:0x3d2,_0x1566dd:0x578,_0x287631:0x532,_0x112b13:0x4e3,_0x35a4de:0x2d9,_0x35afa0:0x1e1,_0x1fa2bd:0x2e4,_0x4666ca:0x33c,_0x48659b:0x38d,_0x33f0d5:0x231,_0x156742:0x5d5,_0x30c1ef:0x317,_0x50eaf3:0x394,_0x56301d:0x468,_0x33bc1e:0x25e,_0x48737f:0x2ea,_0x6a59a:0x5f2,_0xf2498:0x498,_0x5196e1:0x288,_0x455fef:0x405,_0x53240e:0x655,_0x4d5921:0x382,_0x557676:0x52f},_0x5ab025={_0x562f57:0x28e,_0x1a3cc9:0x283,_0x3217c0:0x2c9,_0x5c26a5:0x8,_0x3bff14:0x2b4,_0x5e0f3b:0xee,_0x203070:0x14b,_0x187441:0x165,_0x3f166c:0x7b,_0x47760b:0xea,_0x56a13f:0xf8,_0x435c34:0x187,_0x2c72c2:0x189,_0x86a82c:0x25,_0xd68e5b:0x16d,_0x1cb842:0x21,_0x3681b5:0x136,_0x550930:0x11d,_0x119aba:0x2f4,_0x4c7620:0x1dd,_0x13889f:0x3b9,_0x284f60:0x39d,_0x3cee16:0x490,_0x1debdd:0x31f,_0x14abe6:0x38e,_0x3a4e53:0x339,_0x1a7886:0x45e,_0x369e85:0x241,_0xc72841:0x30d,_0x545c68:0x2e1,_0x14fe71:0x36b,_0x5c4125:0x2df,_0x2bcd18:0x269,_0x244603:0x147,_0x7b7b04:0x1c5,_0x51c5af:0x1f,_0x343792:0x6,_0x4b7a73:0x1cd,_0x5433b9:0x11,_0xc56d72:0x2c4,_0x12a888:0x32,_0x3fca60:0x128,_0x217fa1:0x1b,_0xbc66:0x157,_0x267916:0x71,_0x334d41:0x339,_0x2e1b92:0x25e,_0x2e8591:0x2c7,_0x141e11:0x28c,_0x26e6e6:0x350,_0x2cf589:0x303,_0x1b116:0x22b,_0x463e35:0x15c,_0x1e0a09:0x27,_0x4063d1:0x1db,_0x88abac:0xba,_0x4ffad0:0x110,_0x4cf075:0x3c9,_0x540784:0x261,_0xa186c4:0x19f,_0x22558f:0x2b5,_0x43ead2:0x169,_0x306123:0x62,_0x224d51:0x105,_0x32e95f:0x4c,_0x13ddbf:0x1b2,_0x3ca6c9:0x441,_0x570e31:0x513,_0x4f27d6:0x409,_0x152499:0x1a0,_0x1dca69:0xcc,_0x5c6d9c:0x116,_0x43885:0xc0,_0x1e3176:0x30d,_0x14b9e5:0x1b3,_0x3549a7:0x18a,_0x484225:0x5a,_0x3f45ef:0x194,_0x5e4771:0x198,_0x8b02f4:0x3d,_0x2f66c7:0xe1,_0x3bb3f3:0x109,_0x46201a:0xcf,_0x5833e3:0xe4,_0x1ecd31:0x74,_0xbf0ed6:0x22c,_0x4e9020:0xfe,_0x22b103:0x147,_0x19ac17:0xcb,_0x10a1a6:0x187,_0x51b27f:0x74,_0x5aafee:0x190,_0x55c87c:0x207,_0x3c6eff:0x3be,_0x1f0dca:0x2a8,_0x5a8e16:0x342,_0x59f841:0x29b,_0x37887c:0x3a9,_0x1a1d94:0x4e3},_0xa3dd15={_0x362a2d:0x510,_0x320b4f:0x4aa,_0x2798b8:0x2db,_0x245063:0x171},_0x784b0={_0xbe2d47:0x1f4},_0x407f5c={_0x35240d:0x1b},_0x4c42c9={_0x3ebd80:0x3f,_0x4f28e7:0x189};function _0x4f5955(_0x2e550f,_0x431d86,_0x18f0e0,_0x421199){return _0x4bd068(_0x2e550f,_0x18f0e0- -0x61,_0x18f0e0-_0x4c42c9._0x3ebd80,_0x421199-_0x4c42c9._0x4f28e7);}const _0x24e6f0=_0x51e6d1[_0x4f5955(0x412,0x48f,0x44d,0x2f9)](_0x293464[_0x3b822d(_0x166941._0x2b87e4,0x3fb,_0x166941._0x3c6f89,0x321)]??process['cwd']()),_0x549d52=_0x293464[_0x4f5955(0x4ff,0x55a,0x4c6,_0x166941._0x508b7d)]??[],_0x352c49=_0x293464[_0x3b822d(_0x166941._0xc3ad1e,0x438,_0x166941._0x3d797f,_0x166941._0x28b327)]??DEFAULT_TIMEOUT_MS;function _0x3b822d(_0x1348d7,_0x5dc296,_0x369107,_0x2e0e8c){return _0x154255(_0x5dc296,_0x5dc296-0x156,_0x2e0e8c-0x262,_0x2e0e8c-_0x407f5c._0x35240d);}const _0x36ad76=_0x293464[_0x4f5955(_0x166941._0x3f4188,_0x166941._0x4fa891,_0x166941._0x35f6bb,0x26d)]??!![],_0x5bfb9d=_0x293464[_0x4f5955(0x41d,_0x166941._0x1566dd,_0x166941._0x287631,_0x166941._0x112b13)]??_0x3b822d(_0x166941._0x35a4de,0x30a,_0x166941._0x35afa0,_0x166941._0x1fa2bd),_0x546dc4=_0x293464[_0x4f5955(_0x166941._0x4666ca,0x400,_0x166941._0x48659b,_0x166941._0x33f0d5)]??[],_0x537dee=_0x293464[_0x3b822d(_0x166941._0x156742,_0x166941._0x30c1ef,_0x166941._0x50eaf3,_0x166941._0x56301d)];return defineTool({'name':_0x5bfb9d,'description':_0x293464['description']??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':_0x3b822d(0x25f,_0x166941._0x33bc1e,0x299,_0x166941._0x48737f)},'description':{'type':'string','description':_0x3b822d(_0x166941._0x6a59a,0x377,0x4e7,_0x166941._0xf2498)},'cwd':{'type':_0x3b822d(_0x166941._0x5196e1,_0x166941._0x455fef,0x2b6,0x2ea)},'timeoutMs':{'type':_0x4f5955(_0x166941._0x53240e,0x524,0x59d,0x584)},'ignoreOutput':{'type':_0x4f5955(0x2a7,0x428,_0x166941._0x4d5921,0x4ba)},'runInBackground':{'type':'boolean'}},'required':['command',_0x4f5955(0x4fc,0x669,_0x166941._0x557676,0x3fa)]},async *'execute'(_0x396a39,_0x53de5f){const _0x1eb72a={_0x478899:0x2f2,_0x486af7:0x296},_0x360529={_0x31c635:0x6ad,_0x45da2d:0x6b0,_0xd079de:0x5ea},_0x5700dc={_0x2d09e9:0x11d,_0x4a3564:0x107},_0x51b062={_0xb3abd:0x217,_0x2813da:0x188},_0x47284f=_0x396a39[_0x12b04d(_0x5ab025._0x562f57,0x3cf,_0x5ab025._0x1a3cc9,_0x5ab025._0x3217c0)]??_0x352c49;if(!Number[_0x15b776(-0xe9,0xbf,-_0x5ab025._0x5c26a5,0x1f)](_0x47284f)||_0x47284f<0x1)throw new ToolExecutionError(_0x12b04d(0x1d7,_0x5ab025._0x3bff14,0x155,0x38f),{'command':_0x396a39[_0x12b04d(_0x5ab025._0x5e0f3b,0x23c,_0x5ab025._0x203070,_0x5ab025._0x187441)]});throwIfAborted(_0x53de5f['signal']);const _0x51c9b2=resolveWorkingDirectory(_0x396a39[_0x15b776(-0x20b,-_0x5ab025._0x3f166c,-0x252,-_0x5ab025._0x47760b)],_0x24e6f0,_0x549d52);function _0x15b776(_0x1b409c,_0x2c7177,_0x29ce2a,_0x37d01b){return _0x3b822d(_0x1b409c-_0x784b0._0xbe2d47,_0x1b409c,_0x29ce2a-0x126,_0x37d01b- -0x4f2);}const _0x2a2f0a=_0x396a39[_0x15b776(-_0x5ab025._0x56a13f,-_0x5ab025._0x435c34,-0x30e,-0x267)]??![],_0x5a10f4=resolveDefaultShell(_0x293464[_0x15b776(_0x5ab025._0x2c72c2,_0x5ab025._0x86a82c,_0x5ab025._0xd68e5b,0x15)]),_0x2f8d8c=buildShellArgs(_0x396a39['command'],_0x5a10f4),_0x17411b=_0x2b6b2c['platform']()==='win32';if(_0x396a39[_0x15b776(0x26,-0x2e,-_0x5ab025._0x1cb842,-_0x5ab025._0x3681b5)]){if(!_0x537dee)throw new ToolExecutionError(_0x15b776(-0x123,-0x17c,-0x51,-0x1a5),{'command':_0x396a39[_0x15b776(-_0x5ab025._0x550930,-_0x5ab025._0x119aba,-0x285,-0x1af)]});throwIfAborted(_0x53de5f['signal']);let _0x1dc689;try{_0x1dc689=_0x48a339(_0x5a10f4,_0x2f8d8c,{'cwd':_0x51c9b2,'env':buildChildEnv(_0x293464[_0x15b776(-_0x5ab025._0x4c7620,-0x30,_0x5ab025._0x1cb842,-0x9e)],_0x546dc4),'stdio':[_0x12b04d(0x15d,0x2c4,0x383,_0x5ab025._0x13889f),'pipe','pipe'],'shell':![],'windowsHide':!![],'detached':!_0x17411b});}catch(_0x571b59){throw mapSpawnError(_0x571b59,{'command':_0x396a39['command'],'cwd':_0x51c9b2,'shellPath':_0x5a10f4});}let _0x44ec2f;try{_0x44ec2f=_0x537dee[_0x12b04d(0x502,_0x5ab025._0x284f60,0x315,_0x5ab025._0x3cee16)]({'child':_0x1dc689,'command':_0x396a39[_0x15b776(-_0x5ab025._0x1debdd,-0x101,-0x251,-0x1af)],'cwd':_0x51c9b2,'stripAnsi':_0x36ad76});}catch(_0x3060e3){_0x1dc689[_0x12b04d(_0x5ab025._0x14abe6,_0x5ab025._0x3a4e53,0x2a9,_0x5ab025._0x1a7886)]('error',()=>{});try{killProcessGroup(_0x1dc689,_0x17411b);}catch{}throw _0x3060e3;}return createToolOutput('Started\x20background\x20process\x20'+_0x44ec2f['shellId']+_0x12b04d(0x3a2,0x2c3,0x357,_0x5ab025._0x369e85)+(_0x44ec2f[_0x12b04d(0x1d7,_0x5ab025._0xc72841,0x22e,_0x5ab025._0x545c68)]??'?')+_0x15b776(-_0x5ab025._0x14fe71,-0x3e2,-0x16f,-0x276),{'shellId':_0x44ec2f[_0x15b776(-_0x5ab025._0x5c4125,-0x27b,-0x2c2,-0x26c)],'status':_0x44ec2f['status'],'command':_0x44ec2f[_0x12b04d(_0x5ab025._0x2bcd18,0x23c,0x2f4,_0x5ab025._0x244603)],'description':_0x396a39[_0x15b776(-_0x5ab025._0x7b7b04,-0x1a4,-0x1d8,-0x96)],'cwd':_0x44ec2f[_0x15b776(-_0x5ab025._0x51c5af,-0x85,0x3a,-0xea)],'pid':_0x44ec2f[_0x15b776(-0x240,_0x5ab025._0x343792,-_0x5ab025._0x4b7a73,-0xde)]??null});}let _0x53a606;try{_0x53a606=_0x48a339(_0x5a10f4,_0x2f8d8c,{'cwd':_0x51c9b2,'env':buildChildEnv(_0x293464['env'],_0x546dc4),'stdio':_0x2a2f0a?[_0x15b776(-_0x5ab025._0x5433b9,-0x16f,_0x5ab025._0x51c5af,-0x127),'ignore',_0x12b04d(0x393,_0x5ab025._0xc56d72,0x1a3,0x1ae)]:[_0x15b776(-_0x5ab025._0x12a888,-0x102,-_0x5ab025._0x3fca60,-0x127),_0x15b776(-_0x5ab025._0x217fa1,-0x1b1,-_0x5ab025._0xbc66,-_0x5ab025._0x267916),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x17411b});}catch(_0x2da37a){throw mapSpawnError(_0x2da37a,{'command':_0x396a39['command'],'cwd':_0x51c9b2,'shellPath':_0x5a10f4});}const _0x348fd8=[],_0x7aa2b4=[],_0x5640a3=new _0x5e12c3('utf8'),_0x10d1ad=new _0x5e12c3(_0x12b04d(_0x5ab025._0x334d41,0x376,0x39e,_0x5ab025._0x2e1b92));let _0x10baaa,_0x47e352=![],_0x3fe48e;const _0xf7e953=()=>{if(!_0x10baaa)return;const _0x4de099=_0x10baaa;_0x10baaa=void 0x0,_0x4de099();},_0x351269=async()=>{const _0x32f9db={_0xc048d5:0x12e,_0x242cc7:0x26};function _0x313cee(_0x5eeb44,_0x398324,_0x5e74e2,_0x2b2874){return _0x12b04d(_0x5eeb44-_0x32f9db._0xc048d5,_0x2b2874- -_0x32f9db._0x242cc7,_0x398324,_0x2b2874-0xae);}if(_0x7aa2b4[_0x313cee(0x1a3,_0x51b062._0xb3abd,_0x51b062._0x2813da,0x172)]>0x0||_0x47e352)return;await new Promise(_0x42e606=>{_0x10baaa=_0x42e606;});};function _0x12b04d(_0x36ab9e,_0x1c5182,_0x3d3cce,_0x10180c){return _0x3b822d(_0x36ab9e-_0x5700dc._0x2d09e9,_0x3d3cce,_0x3d3cce-0x1cc,_0x1c5182- -_0x5700dc._0x4a3564);}const _0x3b8807=_0x4cffd6=>{const _0x2b132b={_0x501a61:0x1a9,_0x4f76e2:0x749};function _0x36defe(_0x5e3419,_0x4a0497,_0x43863f,_0x4bb174){return _0x15b776(_0x43863f,_0x4a0497-0xf,_0x43863f-_0x2b132b._0x501a61,_0x4a0497-_0x2b132b._0x4f76e2);}appendChunk(_0x348fd8,_0x7aa2b4,_0x5640a3[_0x36defe(_0x360529._0x31c635,_0x360529._0x45da2d,0x683,_0x360529._0xd079de)](_0x4cffd6),_0x36ad76,_0xf7e953);},_0x14a0a0=_0x5da33f=>{appendChunk(_0x348fd8,_0x7aa2b4,_0x10d1ad['write'](_0x5da33f),_0x36ad76,_0xf7e953);};_0x53a606[_0x12b04d(_0x5ab025._0x2e8591,_0x5ab025._0x141e11,_0x5ab025._0x26e6e6,_0x5ab025._0x2cf589)]?.['on'](_0x15b776(-_0x5ab025._0x1b116,-0xf5,-_0x5ab025._0x463e35,-0x110),_0x3b8807),_0x53a606[_0x15b776(0xd3,0x140,0x150,_0x5ab025._0x1e0a09)]?.['on'](_0x15b776(-_0x5ab025._0x4063d1,-0x1ee,-_0x5ab025._0x88abac,-_0x5ab025._0x4ffad0),_0x14a0a0);let _0x429138=![],_0x25897b;const _0x22ae84=addAbortListener(_0x53de5f[_0x12b04d(_0x5ab025._0x4cf075,_0x5ab025._0x540784,0x3a4,0x33e)],()=>{const _0x27c99b={_0x2e2d90:0xd6,_0x2f29ef:0x2d5},_0x5def9d={_0xc7f3b:0xd6};_0x3fe48e=toAbortError(_0x53de5f[_0x1a72ff(0x30a,0x24b,0x217,0x337)][_0x1a72ff(0x3a4,0x13d,_0x1eb72a._0x478899,_0x1eb72a._0x486af7)]),_0x47e352=!![],_0xf7e953();function _0x1a72ff(_0x35091b,_0x47a78e,_0x1c138c,_0x5b266a){return _0x12b04d(_0x35091b-0x12,_0x5b266a-_0x5def9d._0xc7f3b,_0x35091b,_0x5b266a-0x1bb);}function _0x4feadd(_0x13882f,_0x294683,_0x4c196c,_0xb28158){return _0x12b04d(_0x13882f-_0x27c99b._0x2e2d90,_0x4c196c- -_0x27c99b._0x2f29ef,_0x13882f,_0xb28158-0x5);}try{killProcessGroup(_0x53a606,_0x17411b);}catch{}});try{const _0x17fb5f=new Promise((_0x370c76,_0x2d8e18)=>{const _0x25d626={_0x134fe6:0x3b8,_0x54310c:0x425},_0x1c79a8={_0x38dd1d:0x221},_0x2edb71={_0x344b2c:0x236,_0x428458:0x288},_0xc76eec={_0x417489:0x779,_0x4dd1cf:0x608,_0x4e7b83:0x7e7,_0x5bab6f:0x786,_0x597d71:0x6ca},_0x4e8588={_0x3b3897:0x130},_0xac10fd={_0x2099bd:0xaf};function _0x563161(_0x797a37,_0x413459,_0x1aaf1f,_0x3873a4){return _0x15b776(_0x413459,_0x413459-0xc7,_0x1aaf1f-_0xac10fd._0x2099bd,_0x1aaf1f-0x5c2);}function _0x303f38(_0x495c18,_0x422b11,_0x322a2f,_0x27146a){return _0x15b776(_0x322a2f,_0x422b11-0x1ea,_0x322a2f-_0x4e8588._0x3b3897,_0x27146a-0xf5);}const _0x3a3002=()=>{const _0x544f85={_0x297402:0x35f},_0x40f9ba={_0x4ca89e:0x1f1};_0x25897b&&(clearTimeout(_0x25897b),_0x25897b=void 0x0);_0x53a606[_0x1ad6c8(0x7a5,0x786,_0xc76eec._0x417489,0x793)](_0x1fc73b(0x6d2,0x620,0x72f,_0xc76eec._0x4dd1cf),_0x40fd18);function _0x1fc73b(_0x1b01d1,_0x562a8b,_0x583808,_0x52c74d){return _0x3c5f(_0x562a8b-_0x40f9ba._0x4ca89e,_0x52c74d);}function _0x1ad6c8(_0x545b17,_0x1b20be,_0x1017cc,_0x377999){return _0x3c5f(_0x1b20be-_0x544f85._0x297402,_0x545b17);}_0x53a606[_0x1ad6c8(_0xc76eec._0x4e7b83,_0xc76eec._0x5bab6f,0x841,0x61e)](_0x1ad6c8(0x6fe,0x670,_0xc76eec._0x597d71,0x717),_0x1a3842);},_0x40fd18=_0x4a2623=>{_0x47e352=!![],_0xf7e953(),_0x3a3002(),_0x2d8e18(_0x3fe48e??_0x4a2623);},_0x1a3842=(_0x424332,_0x4ac97e)=>{_0x429138=!![];function _0x42778e(_0x4ad2e7,_0x278436,_0x3b7305,_0x37bbab){return _0x3c5f(_0x37bbab- -0x40,_0x278436);}appendChunk(_0x348fd8,_0x7aa2b4,_0x5640a3[_0x42778e(_0x2edb71._0x344b2c,0x298,_0x2edb71._0x428458,0x326)](),_0x36ad76,_0xf7e953),appendChunk(_0x348fd8,_0x7aa2b4,_0x10d1ad['end'](),_0x36ad76,_0xf7e953),_0x47e352=!![],_0xf7e953(),_0x3a3002();if(_0x3fe48e){_0x2d8e18(_0x3fe48e);return;}_0x370c76({'code':_0x424332,'signal':_0x4ac97e});};_0x25897b=setTimeout(()=>{_0x47e352=!![],_0xf7e953();function _0x2b30ce(_0x1a1139,_0x31c433,_0x1385af,_0x95811f){return _0x3c5f(_0x1385af-_0x1c79a8._0x38dd1d,_0x31c433);}_0x3a3002();try{killProcessGroup(_0x53a606,_0x17411b);}catch{}_0x2d8e18(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0x47284f+'\x20ms',{'command':_0x396a39[_0x2b30ce(0x302,_0x25d626._0x134fe6,_0x25d626._0x54310c,0x412)],'cwd':_0x51c9b2,'shellPath':_0x5a10f4,'timeoutMs':_0x47284f,'timedOut':!![]}));},_0x47284f),_0x53a606[_0x563161(0x532,0x5ff,_0xa3dd15._0x362a2d,_0xa3dd15._0x320b4f)](_0x303f38(0xe5,0x39,_0xa3dd15._0x2798b8,_0xa3dd15._0x245063),_0x40fd18),_0x53a606['once']('close',_0x1a3842);});while(_0x7aa2b4['length']>0x0||!_0x47e352){if(_0x7aa2b4[_0x12b04d(_0x5ab025._0xa186c4,0x198,_0x5ab025._0x22558f,_0x5ab025._0x43ead2)]===0x0){await _0x351269();continue;}const _0x4f8bee=_0x7aa2b4[_0x15b776(_0x5ab025._0x306123,-0x1ab,-_0x5ab025._0x224d51,-_0x5ab025._0x32e95f)]();_0x4f8bee!==void 0x0&&(yield _0x4f8bee);}const _0x46742c=await _0x17fb5f,_0x1fa709=_0x2a2f0a?_0x12b04d(_0x5ab025._0x13ddbf,0x17d,0x131,0xad)+(_0x46742c[_0x12b04d(0x50f,_0x5ab025._0x3ca6c9,_0x5ab025._0x570e31,_0x5ab025._0x4f27d6)]??0x0):_0x348fd8[_0x15b776(-0x27,-0x13c,-_0x5ab025._0x152499,-_0x5ab025._0x1dca69)](''),_0x17c292={'command':_0x396a39[_0x15b776(-0xac,-0x1a7,-_0x5ab025._0x5c6d9c,-0x1af)],'description':_0x396a39[_0x15b776(_0x5ab025._0x43885,0x8,-0x2,-0x96)],'cwd':_0x51c9b2,'exitCode':_0x46742c[_0x12b04d(0x415,0x441,0x323,_0x5ab025._0x1e3176)]??0x0,'signal':_0x46742c[_0x15b776(-0x294,-0x1cd,-_0x5ab025._0x14b9e5,-_0x5ab025._0x3549a7)],'ignoreOutput':_0x2a2f0a,'shellPath':_0x5a10f4,'timeoutMs':_0x47284f};if(_0x46742c['code']!==0x0)throw new ToolExecutionError(_0x1fa709||_0x15b776(_0x5ab025._0x484225,0x28,-0x17,-_0x5ab025._0x550930)+(_0x46742c[_0x15b776(_0x5ab025._0x3f45ef,-0xad,-0x111,0x56)]??0x0),_0x17c292);return createToolOutput(_0x1fa709,_0x17c292);}catch(_0x54349b){while(_0x7aa2b4[_0x12b04d(0xa7,_0x5ab025._0x5e4771,_0x5ab025._0x8b02f4,_0x5ab025._0x2f66c7)]>0x0){const _0x5a8f10=_0x7aa2b4[_0x15b776(_0x5ab025._0x3bb3f3,0x4f,-_0x5ab025._0x46201a,-0x4c)]();_0x5a8f10!==void 0x0&&(yield _0x5a8f10);}if(_0x54349b instanceof ToolExecutionError)throw _0x54349b;if(_0x3fe48e)throw _0x3fe48e;throw mapSpawnError(_0x54349b,{'command':_0x396a39[_0x15b776(-0x13b,-0x81,-0x11b,-0x1af)],'cwd':_0x51c9b2,'shellPath':_0x5a10f4});}finally{_0x25897b&&clearTimeout(_0x25897b);_0x22ae84(),_0x53a606[_0x12b04d(0x2d6,_0x5ab025._0x141e11,0x33a,_0x5ab025._0x5c6d9c)]?.[_0x15b776(0x37,0x95,_0x5ab025._0x5833e3,_0x5ab025._0x1ecd31)](_0x12b04d(0x17f,0x2db,0x453,_0x5ab025._0xbf0ed6),_0x3b8807),_0x53a606[_0x15b776(-_0x5ab025._0x4e9020,-0x7d,-_0x5ab025._0x22b103,_0x5ab025._0x1e0a09)]?.[_0x15b776(_0x5ab025._0x19ac17,0xbd,_0x5ab025._0x10a1a6,_0x5ab025._0x51b27f)](_0x12b04d(_0x5ab025._0x5aafee,0x2db,_0x5ab025._0x55c87c,_0x5ab025._0x3c6eff),_0x14a0a0);if(!_0x429138&&_0x53a606[_0x12b04d(0x1d2,_0x5ab025._0x1e3176,_0x5ab025._0x1f0dca,_0x5ab025._0x5a8e16)]&&!_0x53a606[_0x12b04d(_0x5ab025._0x59f841,_0x5ab025._0x37887c,_0x5ab025._0x1a1d94,0x509)])try{killProcessGroup(_0x53a606,_0x17411b);}catch{}}}});}function createShellExecTool(_0x11610c={}){return createBashTool(_0x11610c);}import{readdir,readFile as _0x4c4713}from'fs/promises';import{extname,join as _0x323ca4}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x3bc42f,join,relative as _0x115616,resolve as _0x12f158}from'path';import{readdir as _0x1f4d0d,readFile as _0x5cba55}from'fs/promises';import{join as _0x306685,relative as _0x1ea6bf,sep}from'path';import{delimiter}from'path';import{mkdir as _0x307dbc,rm,stat as _0x20287e,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x14e3a0}from'path';import{unwatchFile,watchFile}from'fs';import{chmod,readFile as _0x694195,rename,rm as _0x2089ba,stat as _0xa11ccf,writeFile as _0x3b36c3}from'fs/promises';import{homedir as _0x11e170}from'os';import{dirname as _0x303910,isAbsolute as _0x4c6203,join as _0x2837eb,resolve as _0x8c9042}from'path';import{parse as _0x3ff0d7,stringify as _0x4de0da}from'yaml';import{cp,mkdir as _0x3dd9ce,readFile as _0xaa5426,rm as _0x41c8cf,writeFile as _0x22f011}from'fs/promises';import{homedir}from'os';import{join as _0x1e0302}from'path';import{parse as _0x222a22,stringify as _0x318b93}from'yaml';import{z}from'zod';import{readdir as _0x3e06a0,readFile as _0x2f74e2}from'fs/promises';import{join as _0x4e36b1}from'path';import{randomUUID as _0x522dc3}from'crypto';import{mkdir as _0x26e80c,readdir as _0x16dcf2,readFile as _0x7527ec,rename as _0x1da63b,rm as _0x10b063,writeFile as _0x442619}from'fs/promises';import{homedir as _0x4275fc}from'os';import{basename,isAbsolute as _0x13ba9a,join as _0x620e3f,relative as _0x82377a,resolve as _0x11b6d8}from'path';import{parse as _0x123a63,stringify as _0x1139c7}from'yaml';import{delimiter as _0x183dc1,resolve as _0x3b4ab7}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x29ff39){const _0x781de7={_0x126d6e:0x241,_0x375263:0x26d,_0x333d5f:0x254,_0x47f00d:0x24c,_0x2ec61a:0x32,_0x4f8616:0x3a,_0x59206d:0x13f,_0xbfb36d:0x27e,_0x27c030:0x129,_0xbd1cd7:0x18c,_0x3583fe:0x129,_0x2f909d:0x1da},_0x13cb80={_0x4e99bb:0x294};function _0x3c11a6(_0x4d057b,_0x56201c,_0x24a001,_0x3a38c7){return _0x4bd068(_0x3a38c7,_0x24a001- -_0x13cb80._0x4e99bb,_0x24a001-0x179,_0x3a38c7-0x0);}const _0x41fbbf=[];let _0x292283='',_0x2cea1f=0x0;while(_0x2cea1f<_0x29ff39[_0x1ca977(_0x781de7._0x126d6e,0x337,0x336,_0x781de7._0x375263)]){const _0x2571ef=_0x29ff39[_0x2cea1f];if(_0x2571ef==='\x5c'&&_0x2cea1f+0x1<_0x29ff39[_0x1ca977(0x241,_0x781de7._0x333d5f,_0x781de7._0x47f00d,0x2b9)])_0x292283+=_0x29ff39[_0x2cea1f+0x1],_0x2cea1f+=0x2;else{if(_0x2571ef==='\x22'||_0x2571ef==='\x27'){const _0x4b0e4a=_0x2571ef;_0x2cea1f++;while(_0x2cea1f<_0x29ff39['length']&&_0x29ff39[_0x2cea1f]!==_0x4b0e4a){_0x29ff39[_0x2cea1f]==='\x5c'&&_0x2cea1f+0x1<_0x29ff39[_0x3c11a6(_0x781de7._0x2ec61a,_0x781de7._0x4f8616,_0x781de7._0x59206d,0x16e)]?(_0x292283+=_0x29ff39[_0x2cea1f+0x1],_0x2cea1f+=0x2):(_0x292283+=_0x29ff39[_0x2cea1f],_0x2cea1f++);}_0x2cea1f++;}else _0x2571ef!==void 0x0&&/\s/['test'](_0x2571ef)?(_0x292283&&(_0x41fbbf[_0x3c11a6(_0x781de7._0xbfb36d,0x237,_0x781de7._0x27c030,_0x781de7._0xbd1cd7)](_0x292283),_0x292283=''),_0x2cea1f++):(_0x292283+=_0x2571ef,_0x2cea1f++);}}function _0x1ca977(_0x6220fa,_0x50b001,_0x977213,_0x375f37){return _0x154255(_0x977213,_0x50b001-0x111,_0x6220fa-0x204,_0x375f37-0x11c);}if(_0x292283)_0x41fbbf[_0x3c11a6(-0x2,0x257,_0x781de7._0x3583fe,_0x781de7._0x2f909d)](_0x292283);return _0x41fbbf;}function renderCommandInstructions(_0x330f05){const _0x232925={_0x5e83a3:0x27c,_0x38f519:0x423,_0x2a0af6:0x1b6,_0x14b47f:0x324,_0x3f5f35:0x528,_0x11095d:0x3be,_0x2535bd:0x6c0,_0x5e0be2:0x4ce,_0x4b41dc:0x4da,_0x12ea18:0x59c,_0x1bd5f4:0x593,_0x4fa090:0x201,_0x226a04:0x314,_0x5af2a8:0x254,_0x449e88:0x32f,_0x51fa02:0x3b9,_0x147b2a:0xb5,_0x2c8762:0x30,_0x3427c5:0x143,_0xbdfc1f:0x6d,_0x5895ff:0x38c,_0x1ffce1:0x4d5},_0x2237cb={_0x6bf22d:0x199,_0x3887b9:0xa2},_0x55dd7c={_0x94d935:0x111};let _0x125b92=_0x330f05[_0x258bf8(_0x232925._0x5e83a3,_0x232925._0x38f519,_0x232925._0x2a0af6,_0x232925._0x14b47f)],_0x3e2d9c=![];const _0x24380d=tokenizeCommandArguments(_0x330f05[_0x258bf8(_0x232925._0x3f5f35,0x382,0x4ed,0x4d5)]);_0x125b92=_0x125b92['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x4877c9,_0x4f5a7a)=>{return _0x3e2d9c=!![],_0x24380d[Number(_0x4f5a7a)]??'';}),_0x125b92=_0x125b92[_0x258bf8(_0x232925._0x11095d,0x50b,0x3b7,0x3b9)](/\$ARGUMENTS\b/g,()=>{return _0x3e2d9c=!![],_0x330f05['argumentsText'];});if(_0x330f05[_0x258bf8(_0x232925._0x2535bd,_0x232925._0x5e0be2,_0x232925._0x4b41dc,0x593)]&&_0x330f05['argumentNames']['length']>0x0)for(let _0x391f4a=0x0;_0x391f4a<_0x330f05[_0x258bf8(_0x232925._0x12ea18,0x442,0x463,_0x232925._0x1bd5f4)]['length'];_0x391f4a++){const _0x37e7d4=_0x330f05[_0x4071ee(_0x232925._0x4fa090,_0x232925._0x226a04,_0x232925._0x5af2a8,0x23a)][_0x391f4a];if(_0x37e7d4){const _0x37c6e4=new RegExp('\x5c$'+_0x37e7d4+'\x5cb','g');_0x125b92=_0x125b92[_0x258bf8(0x37f,_0x232925._0x449e88,0x532,_0x232925._0x51fa02)](_0x37c6e4,()=>{return _0x3e2d9c=!![],_0x24380d[_0x391f4a]??'';});}}_0x125b92=_0x125b92[_0x4071ee(0x27,-_0x232925._0x147b2a,0x2f,-_0x232925._0x2c8762)](/\$(\d+)\b/g,(_0x2d27a5,_0x1dd9ab)=>{return _0x3e2d9c=!![],_0x24380d[Number(_0x1dd9ab)]??'';});function _0x258bf8(_0x52390f,_0x138ed3,_0x475d4c,_0x215be2){return _0x154255(_0x475d4c,_0x138ed3-0x14,_0x215be2-0x2f0,_0x215be2-_0x55dd7c._0x94d935);}function _0x4071ee(_0x50033d,_0x38d276,_0x29a98c,_0x2875b8){return _0x154255(_0x29a98c,_0x38d276-_0x2237cb._0x6bf22d,_0x50033d- -_0x2237cb._0x3887b9,_0x2875b8-0xa4);}return!_0x3e2d9c&&_0x330f05[_0x4071ee(_0x232925._0x3427c5,0x39,0x246,0x2c)][_0x4071ee(-_0x232925._0xbdfc1f,-0x9d,0x67,-0xe9)]()&&(_0x125b92=_0x125b92+_0x258bf8(0x571,_0x232925._0x5895ff,_0x232925._0x3f5f35,0x43c)+_0x330f05[_0x258bf8(0x521,0x59a,0x62a,_0x232925._0x1ffce1)]),_0x125b92;}var PROVIDER_API_KEY_ENVS=[{'env':_0x154255(0x33b,0x198,0x2ad,0x3f2),'provider':_0x154255(0x322,0x321,0x2c0,0x424)},{'env':_0x154255(0x101,0x13c,0x1dc,0x2f2),'provider':_0x4bd068(0x6e5,0x5a4,0x65e,0x6f0)},{'env':_0x154255(0x3d7,0x1df,0x2cc,0x181),'provider':_0x154255(-0xa1,0x9,0x92,-0x8d)},{'env':'GITHUB_TOKEN','provider':_0x4bd068(0x437,0x428,0x2be,0x2d1)},{'env':_0x154255(-0x31,0x134,0x5e,-0x2b),'provider':_0x154255(0x3da,0x41e,0x2e9,0x371)},{'env':_0x4bd068(0x3bd,0x532,0x66b,0x4a2),'provider':_0x154255(0x2e4,0x23c,0x2da,0x32b)},{'env':_0x4bd068(0x667,0x550,0x541,0x416),'provider':_0x4bd068(0x580,0x629,0x67b,0x553)},{'env':_0x4bd068(0x2e2,0x3b6,0x4b7,0x284),'provider':_0x4bd068(0x6ea,0x603,0x641,0x76a)},{'env':_0x154255(-0xb0,-0x6,0x60,0x5a),'provider':_0x4bd068(0x714,0x672,0x59f,0x56b)},{'env':_0x154255(0x1fd,-0x1e,0xd2,-0x1d),'provider':'kimi'},{'env':_0x154255(0x205,-0x30,0x12a,0x71),'provider':_0x4bd068(0x4e6,0x47b,0x4fb,0x517)},{'env':_0x4bd068(0x453,0x582,0x6f5,0x5c1),'provider':'deepseek'}],PROVIDER_API_KEY_ENV_NAMES=PROVIDER_API_KEY_ENVS['map'](_0x5218a5=>_0x5218a5[_0x154255(0x191,0x308,0x1f2,0x2e1)]),SCRUBBED_ENV_KEYS=[...PROVIDER_API_KEY_ENV_NAMES,_0x154255(-0xa,-0x14e,0x2a,-0x12d),'GOOGLE_CSE_KEY',_0x154255(0x22,0x1ce,0xce,0x21)],PROTOTYPE_SENSITIVE_NAMES=new Set([...Object[_0x4bd068(0x4f4,0x4b7,0x3e0,0x41b)](Object['prototype']),_0x4bd068(0x5c1,0x4aa,0x338,0x382)]);function prototypeSafeRecord(_0xcef2e5){const _0x3581b7={_0x82449a:0x25d,_0x277aad:0x1b9,_0x1d1ea9:0x36e,_0x40e168:0x53c,_0x1c76f4:0x495,_0xa30570:0x30d,_0x14c0ec:0x280},_0x24d29e={_0x1352ad:0x5a9,_0x2fdd1:0x45b,_0x4649c7:0x171,_0xd5c984:0x2ce,_0x48b4e6:0x2ae,_0x3c121b:0x89,_0x5487c8:0x69,_0x2d45fb:0xc3,_0x3099b3:0x26},_0x49eb02={_0x42e9cd:0x24e,_0x241bf9:0x161},_0x1ef1ac={_0x35a149:0x47,_0x21f604:0x10a},_0x574cf1={_0x4a8c29:0x1c3,_0x38b039:0x39},_0x50d285={_0x54008b:0x115};function _0xc2655b(_0x4aadb5,_0x28bd6a,_0x2e18ea,_0x528895){return _0x4bd068(_0x4aadb5,_0x28bd6a- -0x537,_0x2e18ea-0x166,_0x528895-_0x50d285._0x54008b);}function _0xf9e20b(_0x29a81c,_0x39818a,_0x5159e0,_0x119452){return _0x154255(_0x5159e0,_0x39818a-0x57,_0x29a81c-_0x574cf1._0x4a8c29,_0x119452-_0x574cf1._0x38b039);}return z[_0xf9e20b(_0x3581b7._0x82449a,_0x3581b7._0x277aad,0x1e1,_0x3581b7._0x1d1ea9)](_0x203c2e=>{function _0x3959a6(_0x3b8480,_0x59a66a,_0x237dd6,_0x3e2733){return _0xf9e20b(_0x237dd6- -_0x1ef1ac._0x35a149,_0x59a66a-0xf1,_0x3b8480,_0x3e2733-_0x1ef1ac._0x21f604);}if(_0x203c2e===null||typeof _0x203c2e!==_0x3959a6(0x393,_0x24d29e._0x1352ad,_0x24d29e._0x2fdd1,0x3cc)||Array[_0x3959a6(_0x24d29e._0x4649c7,_0x24d29e._0xd5c984,_0x24d29e._0x48b4e6,0x33e)](_0x203c2e))return null;function _0x1337b6(_0x438689,_0x1130aa,_0x333da3,_0x2eec4b){return _0xf9e20b(_0x2eec4b- -_0x49eb02._0x42e9cd,_0x1130aa-0x1e3,_0x438689,_0x2eec4b-_0x49eb02._0x241bf9);}const _0x50321a=Object['getPrototypeOf'](_0x203c2e);if(_0x50321a!==Object[_0x1337b6(0x28,0x97,-0x6b,_0x24d29e._0x3c121b)]&&_0x50321a!==null)return null;return{'entries':Object[_0x1337b6(0x99,-_0x24d29e._0x5487c8,_0x24d29e._0x2d45fb,_0x24d29e._0x3099b3)](_0x203c2e)};},z['object']({'entries':z[_0xf9e20b(0x47e,0x45e,0x44f,0x377)](z[_0xf9e20b(0x3c3,_0x3581b7._0x40e168,_0x3581b7._0x1c76f4,_0x3581b7._0xa30570)]([z[_0xc2655b(-0x63,-0x119,-_0x3581b7._0x14c0ec,0xa)](),_0xcef2e5]))}))['transform'](({entries:_0xdb487d})=>Object[_0xc2655b(-0x133,-0x1e,0x13d,0x19)](_0xdb487d));}var chatModelAuthSchemeSchema=z[_0x154255(-0x3f,-0x94,0xc7,0x21a)]([_0x4bd068(0x6af,0x62a,0x736,0x5d0),_0x154255(0x367,0x255,0x2cd,0x27c)]),apiKeyAuthSchema=z['object']({'type':z[_0x4bd068(0x669,0x649,0x6c7,0x557)](_0x154255(0x342,0x343,0x204,0x1f8)),'apiKey':z[_0x4bd068(0x442,0x41e,0x587,0x4da)](),'authScheme':chatModelAuthSchemeSchema[_0x154255(0xc2,0x109,0x79,0x3)]()})[_0x4bd068(0x303,0x40c,0x35e,0x49a)](),oauthAuthSchema=z[_0x154255(0x1a2,0x1d5,0x2df,0x1af)]({'type':z[_0x4bd068(0x4f0,0x649,0x6c0,0x506)]('oauth'),'access':z[_0x154255(0x145,0xc1,0x88,0xcb)](),'refresh':z[_0x4bd068(0x2a9,0x41e,0x3fe,0x3c8)](),'expires':z[_0x154255(0x29c,0x1ca,0x268,0x32c)]()[_0x4bd068(0x4d3,0x40f,0x407,0x38f)](),'authScheme':chatModelAuthSchemeSchema[_0x154255(-0x4f,-0xfc,0x79,-0x4b)]()})['passthrough'](),finiteNonNegative=z['number']()[_0x154255(0xf1,0xe2,0xb5,0x15f)]()[_0x4bd068(0x546,0x665,0x6cd,0x6f4)](),chatGptAuthSchema=z[_0x154255(0x338,0x35d,0x2df,0x42c)]({'type':z[_0x4bd068(0x649,0x649,0x601,0x589)]('chatgpt'),'access':z[_0x4bd068(0x305,0x41e,0x445,0x431)]()[_0x154255(0x127,0x27b,0x199,0x2fa)](0x1),'refresh':z[_0x4bd068(0x31a,0x41e,0x494,0x2ea)]()[_0x4bd068(0x469,0x52f,0x5d3,0x4ce)](0x1),'idToken':z[_0x154255(0x18c,-0x5c,0x88,0x1ff)]()[_0x154255(0xed,0x100,0x199,0x12b)](0x1),'accountId':z[_0x154255(0xf1,0x1be,0x88,-0xce)]()[_0x154255(0x6c,0x1ba,0x199,0xcc)](0x1),'expires':finiteNonNegative,'earliestRefreshAt':finiteNonNegative[_0x154255(-0xe4,-0xd9,0x79,0x73)]()})[_0x4bd068(0x4a1,0x40c,0x322,0x411)](),authMethodSchema=z[_0x4bd068(0x65b,0x66a,0x7a3,0x567)]([apiKeyAuthSchema,oauthAuthSchema,chatGptAuthSchema]),modelDefinitionSchema=z[_0x154255(0x390,0x34a,0x2df,0x34a)]({'id':z['string'](),'name':z['string']()[_0x154255(0x18d,-0xad,0x79,-0x69)]()})[_0x4bd068(0x56a,0x40c,0x34d,0x331)](),modelConfigSchema=z[_0x154255(0x24b,0x2ae,0x2d4,0x296)]([z[_0x4bd068(0x53f,0x649,0x7a1,0x791)](![]),z['literal'](!![]),z[_0x4bd068(0x57c,0x41e,0x531,0x453)](),z[_0x154255(0x194,0x3d7,0x2bb,0x33e)](z[_0x4bd068(0x341,0x41e,0x2d8,0x3f8)]()),z['array'](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x4bd068(0x453,0x45d,0x340,0x300)]([_0x154255(0x1d9,0x312,0x1fc,0x347),_0x4bd068(0x348,0x413,0x3f7,0x3d4),_0x4bd068(0x2d6,0x3b4,0x23e,0x3ea),'openai-responses-ws']),providerConfigSchema=z[_0x4bd068(0x7d0,0x675,0x661,0x4fb)]({'apiKey':z[_0x154255(0xfd,0xf1,0x88,0xda)]()[_0x154255(-0x7e,0xf4,0x79,0x7b)](),'token':z[_0x4bd068(0x33e,0x41e,0x2dd,0x51c)]()[_0x4bd068(0x4f4,0x40f,0x2c5,0x565)](),'defaultModel':z[_0x154255(-0x95,0x103,0x88,0x1d2)]()[_0x4bd068(0x478,0x40f,0x53e,0x374)](),'smallModel':z['string']()['optional'](),'currentAuth':z[_0x4bd068(0x507,0x41e,0x2f7,0x2ff)]()[_0x4bd068(0x36e,0x40f,0x295,0x3a0)](),'auth':z[_0x154255(0x385,0x1a2,0x2bb,0x350)](authMethodSchema)[_0x4bd068(0x33f,0x40f,0x39b,0x434)](),'surface':chatModelSurfaceSchema['optional'](),'baseUrl':z['string']()[_0x4bd068(0x439,0x40f,0x587,0x39e)](),'models':modelConfigSchema[_0x154255(0xfb,0x9e,0x79,0x23)](),'customHeaders':z[_0x154255(0x310,0x2c6,0x237,0x133)](z[_0x154255(0xee,0x196,0x88,-0x97)](),z[_0x154255(0x159,-0x7a,0x88,0x167)]())[_0x4bd068(0x469,0x40f,0x3a4,0x45d)]()})[_0x154255(0xf9,0x85,0x76,0x12d)](),mcpServerConfigSchema=z[_0x4bd068(0x782,0x675,0x7cc,0x6d9)]({'command':z[_0x154255(-0xda,0xd5,0x88,-0xcf)]()[_0x154255(0xba,0x13f,0x79,0x144)](),'args':z[_0x154255(0x16c,0x33c,0x2bb,0x330)](z[_0x154255(0x4f,-0xaa,0x88,0x87)]())[_0x4bd068(0x57a,0x40f,0x327,0x4dd)](),'env':z[_0x4bd068(0x56a,0x5cd,0x5cf,0x503)](z['string'](),z[_0x4bd068(0x549,0x41e,0x4f4,0x34c)]())[_0x154255(0x87,-0xe4,0x79,0x82)](),'transport':z[_0x4bd068(0x4ec,0x45d,0x325,0x374)]([_0x154255(0x400,0x193,0x2ca,0x40a),_0x4bd068(0x78d,0x68d,0x53f,0x5da)])['optional'](),'url':z[_0x154255(0x101,0x93,0x88,0x8d)]()[_0x4bd068(0x2a2,0x40f,0x54a,0x2c5)](),'headers':z[_0x154255(0x1e3,0x1ad,0x237,0x17e)](z['string'](),z[_0x154255(0x158,0x24,0x88,0x183)]())[_0x4bd068(0x348,0x40f,0x458,0x3d3)](),'prefix':z[_0x154255(0xb3,-0x7a,0x88,0x1ad)]()[_0x154255(0x1c4,0xc8,0x79,0x6e)](),'timeoutMs':z[_0x154255(0x3ad,0x2fc,0x268,0x224)]()[_0x154255(0xb2,-0xf1,0x79,0x59)](),'enabled':z[_0x4bd068(0x482,0x3e3,0x51b,0x3a9)]()[_0x154255(-0x56,-0x4a,0x79,0x140)](),'auth':z[_0x154255(0x452,0x25f,0x2df,0x1c8)]({'type':z['enum']([_0x4bd068(0x4f4,0x458,0x2dd,0x3cd),_0x154255(0x2a9,0x202,0x294,0x163),'oauth']),'token':z[_0x154255(0xe1,0xe,0x88,-0xf3)]()[_0x154255(0xe,0x32,0x79,-0xd3)](),'oauth':z['object']({'clientId':z['string']()[_0x154255(-0xf3,0x15c,0x79,-0x4c)](),'clientMetadataUrl':z[_0x4bd068(0x2bf,0x41e,0x37a,0x48f)]()[_0x4bd068(0x420,0x40f,0x38e,0x419)](),'authorizationServer':z['string']()['optional'](),'scopes':z[_0x154255(0x369,0x32f,0x2bb,0x148)](z[_0x4bd068(0x32e,0x41e,0x4de,0x323)]())['optional'](),'tokenStorageKey':z[_0x154255(-0x55,0x5b,0x88,0x1e2)]()[_0x4bd068(0x33b,0x40f,0x319,0x2be)]()})[_0x4bd068(0x3e0,0x40c,0x53d,0x2c7)]()['optional']()})[_0x154255(-0x33,-0x8c,0x76,-0x6a)]()[_0x154255(0x1eb,0xa1,0x79,0x10)]()})[_0x4bd068(0x291,0x40c,0x53a,0x4dd)](),mcpSettingsSchema=z[_0x154255(0x27a,0x2db,0x2df,0x2eb)]({'servers':prototypeSafeRecord(mcpServerConfigSchema)['optional'](),'allowedTools':prototypeSafeRecord(prototypeSafeRecord(z['boolean']()))[_0x4bd068(0x528,0x40f,0x47a,0x522)](),'defaultTimeoutMs':z[_0x154255(0x106,0x2ef,0x268,0x347)]()[_0x4bd068(0x566,0x40f,0x499,0x370)]()})[_0x154255(0xa8,0x1c5,0x76,0xcc)](),skillsSettingsSchema=z['object']({'enabled':z[_0x4bd068(0x469,0x3e3,0x279,0x3a9)]()[_0x154255(-0xa6,0xe,0x79,0x164)](),'includeDefaults':z[_0x154255(0x130,-0xdd,0x4d,-0xfb)]()[_0x154255(0x11a,-0xdc,0x79,0x114)](),'directories':z['array'](z[_0x154255(0xd5,0xf5,0x88,0xb2)]())[_0x154255(0xb7,0x1cb,0x79,0x1f2)](),'exclude':z[_0x4bd068(0x500,0x651,0x6c7,0x67b)](z[_0x4bd068(0x584,0x41e,0x2b5,0x455)]())['optional']()})['passthrough'](),commandsSettingsSchema=z['object']({'enabled':z[_0x154255(0x48,0x138,0x4d,0x194)]()['optional'](),'directories':z[_0x154255(0x167,0x3aa,0x2bb,0x19f)](z[_0x4bd068(0x2bb,0x41e,0x474,0x32f)]())['optional']()})[_0x154255(0x13e,0x79,0x76,0x163)](),agentsSettingsSchema=z[_0x4bd068(0x5af,0x675,0x691,0x6d2)]({'enabled':z[_0x4bd068(0x372,0x3e3,0x317,0x3d3)]()[_0x4bd068(0x569,0x40f,0x54c,0x51d)](),'includeDefaults':z['boolean']()[_0x4bd068(0x32f,0x40f,0x489,0x3e9)](),'directories':z[_0x154255(0x33c,0x19d,0x2bb,0x36f)](z[_0x4bd068(0x444,0x41e,0x48e,0x433)]())[_0x4bd068(0x3f6,0x40f,0x47d,0x4fa)]()})[_0x4bd068(0x3f0,0x40c,0x54b,0x37b)](),uiThemeSettingsSchema=z[_0x4bd068(0x5f0,0x675,0x59a,0x68f)]({'mode':z[_0x4bd068(0x3a1,0x45d,0x3cb,0x377)]([_0x4bd068(0x5d3,0x4fd,0x41b,0x5d8),_0x154255(0x1cb,0x10f,0x198,0x2c2),'light'])[_0x4bd068(0x3b3,0x40f,0x4ac,0x400)](),'colorLevel':z[_0x154255(-0x5f,0x17,0xc7,-0x42)]([_0x154255(0x1dd,0x1d4,0x167,0xe8),'none',_0x154255(0x152,0x2ea,0x186,0x18e),_0x154255(0x250,0x23,0x178,0x4d),_0x154255(0x283,0x1c4,0x29d,0x207)])[_0x154255(-0xe3,-0xaa,0x79,-0x55)](),'backgrounds':z['enum']([_0x154255(0x161,0x2bb,0x167,0xa3),'on',_0x154255(0x194,0x3ef,0x304,0x1ce)])[_0x154255(0x97,0x1ef,0x79,-0xed)](),'messageStyle':z[_0x4bd068(0x4ec,0x45d,0x45c,0x561)](['plain',_0x154255(0x16c,0x1ec,0x1f1,0x25f)])[_0x4bd068(0x342,0x40f,0x402,0x2e2)]()})[_0x4bd068(0x33b,0x40c,0x504,0x4a4)](),statuslineSegmentSchema=z[_0x154255(0x7e,-0x80,0xc7,0x5e)](['model',_0x154255(0x173,0x2b7,0x259,0x352),_0x154255(0x2d,0x18f,0x13b,0x26e),_0x154255(0x26,0xaf,0xef,0x244),_0x4bd068(0x58e,0x438,0x4de,0x314),_0x154255(0x250,0x1a6,0x307,0x26a),'cached','requests',_0x4bd068(0x356,0x4bd,0x533,0x4b9),_0x4bd068(0x690,0x654,0x52f,0x6e6),_0x4bd068(0x670,0x53e,0x5b4,0x586),_0x4bd068(0x5da,0x4f4,0x629,0x502),_0x4bd068(0x3a7,0x44f,0x49d,0x3c6),_0x4bd068(0x470,0x4de,0x63d,0x520),_0x154255(0xa6,0x1a7,0x141,0x26c)]),statuslineItemSchema=z[_0x154255(0x379,0x40c,0x2d4,0x446)]([statuslineSegmentSchema,z[_0x154255(0x212,0x17d,0x2b3,0x139)]('|')]),statuslineRowSchema=z[_0x154255(0x182,0x23d,0x2bb,0x371)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x4bd068(0x560,0x596,0x64d,0x68b)]([statuslineRowSchema,statuslineRowSchema])[_0x154255(0x1ee,0x11c,0x79,0x99)]()})['passthrough'](),memorySettingsSchema=z['object']({'version':z[_0x4bd068(0x605,0x649,0x6ae,0x7ac)](0x2)[_0x154255(-0xa3,0xb6,0x79,0x59)](),'retrieval':z[_0x154255(0x40c,0x3b3,0x2df,0x407)]({'engine':z[_0x4bd068(0x771,0x649,0x5c3,0x5d9)](_0x4bd068(0x558,0x54a,0x51d,0x6b3))[_0x154255(0x197,-0x9c,0x79,0x188)](),'candidateLimit':z['number']()['optional'](),'activeCandidateLimit':z[_0x4bd068(0x62e,0x5fe,0x770,0x688)]()[_0x154255(0x1a9,0xd,0x79,-0x54)](),'activeEnabled':z[_0x154255(0x51,0x13b,0x4d,0x199)]()[_0x4bd068(0x4c6,0x40f,0x4f0,0x2a6)](),'maxQueriesPerTurn':z[_0x154255(0x23a,0x2b5,0x268,0x113)]()[_0x4bd068(0x539,0x40f,0x352,0x53d)](),'coreInjectTokenBudget':z['number']()['optional'](),'injectTokenBudget':z['number']()[_0x4bd068(0x518,0x40f,0x469,0x36c)](),'minScore':z[_0x4bd068(0x75a,0x5fe,0x650,0x58a)]()[_0x4bd068(0x563,0x40f,0x2cc,0x2bd)](),'freshnessHalfLifeDays':z['number']()['optional']()})[_0x4bd068(0x57a,0x40c,0x53d,0x313)]()[_0x154255(-0xa8,-0x86,0x79,0x10d)](),'extraction':z['object']({'enabled':z[_0x154255(-0xde,0x193,0x4d,-0xb0)]()[_0x4bd068(0x3f6,0x40f,0x2f4,0x569)](),'provider':z[_0x154255(0x9,0x192,0x88,-0x31)]()['optional'](),'model':z[_0x154255(0x2e,0xb4,0x88,0x5c)]()[_0x4bd068(0x39a,0x40f,0x576,0x2c3)](),'sensitiveFilter':z[_0x4bd068(0x4eb,0x3e3,0x559,0x31d)]()[_0x154255(0x1a0,0xa6,0x79,-0x4d)]()})['passthrough']()['optional'](),'index':z[_0x154255(0x3fa,0x2a4,0x2df,0x292)]({'persisted':z[_0x154255(0x1a8,-0xa8,0x4d,0x19e)]()[_0x154255(-0xe1,0x12f,0x79,-0x52)](),'flushIntervalMs':z[_0x4bd068(0x60b,0x5fe,0x64d,0x584)]()[_0x4bd068(0x544,0x40f,0x558,0x311)]()})[_0x4bd068(0x2b0,0x40c,0x2dd,0x324)]()[_0x4bd068(0x3c5,0x40f,0x395,0x52d)](),'enabled':z['boolean']()[_0x4bd068(0x3f0,0x40f,0x42d,0x347)](),'saveTool':z['boolean']()['optional'](),'model':z['string']()[_0x154255(-0xc8,0x16d,0x79,0xfb)](),'provider':z[_0x154255(-0x3,0x115,0x88,0x158)]()[_0x4bd068(0x54d,0x40f,0x340,0x4c2)](),'maxInjectionTokens':z[_0x154255(0x3a9,0x33d,0x268,0x204)]()[_0x154255(0x23,-0x6a,0x79,-0x4c)](),'backgroundExtraction':z['boolean']()[_0x154255(-0x93,-0x5f,0x79,0x19a)]()})[_0x154255(-0xd9,0x174,0x76,0x12)](),recentModelSchema=z['object']({'provider':z[_0x4bd068(0x2f9,0x41e,0x590,0x4f8)](),'model':z[_0x154255(0x28,-0xdb,0x88,0x128)](),'usedAt':z[_0x4bd068(0x750,0x5fe,0x57f,0x530)]()})[_0x4bd068(0x2c6,0x40c,0x308,0x505)](),lspServerEntrySchema=z[_0x154255(0x370,0x186,0x2df,0x371)]({'disabled':z[_0x4bd068(0x296,0x3e3,0x4c2,0x4ea)]()[_0x4bd068(0x460,0x40f,0x36c,0x480)](),'command':z[_0x154255(0x79,0xb0,0x88,-0xa3)]()[_0x154255(0x138,-0x23,0x79,0x146)](),'args':z['array'](z['string']())[_0x4bd068(0x529,0x40f,0x418,0x371)](),'rootMarkers':z[_0x4bd068(0x6e4,0x651,0x583,0x54a)](z['string']())[_0x4bd068(0x37b,0x40f,0x2f5,0x2aa)]()})[_0x154255(-0x7c,0x54,0x76,-0x1d)](),lspConfigSchema=z[_0x154255(0x1b5,0x209,0x2df,0x39e)]({'enabled':z['boolean']()[_0x4bd068(0x2f0,0x40f,0x3bc,0x47b)](),'servers':z[_0x4bd068(0x465,0x5cd,0x549,0x616)](z['string'](),lspServerEntrySchema)[_0x4bd068(0x2c3,0x40f,0x3a0,0x39f)]()})['passthrough'](),serverEndpointSchema=z[_0x154255(0x1ac,0x337,0x2df,0x2f1)]({'url':z[_0x4bd068(0x2e9,0x41e,0x3c5,0x37b)](),'token':z[_0x4bd068(0x517,0x41e,0x39b,0x428)]()[_0x4bd068(0x41f,0x40f,0x420,0x2bd)]()})[_0x154255(-0x9d,0xf,0x76,0x1a8)](),commandHookConfigSchema=z[_0x154255(0x199,0x1b4,0x2df,0x1bb)]({'type':z['literal'](_0x4bd068(0x455,0x477,0x4f0,0x443)),'command':z[_0x4bd068(0x2e9,0x41e,0x50a,0x4da)](),'timeout':z[_0x4bd068(0x500,0x5fe,0x5f9,0x4a6)]()[_0x154255(-0xc3,0x1b4,0x79,0x8e)]()}),hookMatcherGroupSchema=z[_0x154255(0x2e9,0x1fe,0x2df,0x234)]({'matcher':z['string']()[_0x154255(0x154,0xc1,0x79,-0xb9)](),'hooks':z['array'](commandHookConfigSchema)}),hooksConfigSchema=z['object']({'PreToolUse':z[_0x154255(0x423,0x294,0x2bb,0x295)](hookMatcherGroupSchema)[_0x154255(0xd9,0x25,0x79,0x11b)](),'PostToolUse':z[_0x4bd068(0x592,0x651,0x726,0x6d0)](hookMatcherGroupSchema)[_0x154255(0x1dc,0xc8,0x79,0x10a)](),'UserPromptSubmit':z[_0x154255(0x333,0x36a,0x2bb,0x146)](hookMatcherGroupSchema)['optional'](),'Stop':z[_0x154255(0x1dc,0x277,0x2bb,0x2d2)](hookMatcherGroupSchema)['optional'](),'Notification':z[_0x154255(0x2b1,0x233,0x2bb,0x313)](hookMatcherGroupSchema)[_0x4bd068(0x2c8,0x40f,0x579,0x299)](),'ToolApprovalRequest':z[_0x154255(0x1c4,0x1ad,0x2bb,0x2c1)](hookMatcherGroupSchema)['optional'](),'SessionStart':z[_0x4bd068(0x755,0x651,0x6af,0x6b3)](hookMatcherGroupSchema)[_0x154255(0x15f,0xe6,0x79,0x116)](),'SessionEnd':z[_0x154255(0x205,0x27f,0x2bb,0x286)](hookMatcherGroupSchema)[_0x154255(-0x1e,0xa0,0x79,0xba)]()}),cliConfigSchema=z[_0x154255(0x30c,0x409,0x2df,0x27d)]({'activeProvider':z[_0x154255(0x130,-0xd1,0x88,0x156)]()['optional'](),'activeModel':z[_0x4bd068(0x39e,0x41e,0x3d9,0x470)]()[_0x154255(-0xd7,-0x18,0x79,0x95)](),'apiKey':z[_0x154255(0x1f0,0x3e,0x88,0xd2)]()['optional'](),'providers':z[_0x4bd068(0x4ef,0x5cd,0x720,0x5de)](z['string'](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x154255(0x12c,0x11e,0x79,0x20)](),'skills':skillsSettingsSchema[_0x4bd068(0x2f3,0x40f,0x2d8,0x4d6)](),'agents':agentsSettingsSchema[_0x4bd068(0x356,0x40f,0x313,0x511)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z['record'](z[_0x4bd068(0x56e,0x41e,0x524,0x52c)](),z[_0x154255(0x13b,0x197,0x4d,-0x125)]())['optional'](),'allowedDirs':z[_0x154255(0x189,0x24a,0x2bb,0x173)](z[_0x4bd068(0x3a7,0x41e,0x394,0x4ce)]())[_0x4bd068(0x535,0x40f,0x4dd,0x4a0)](),'mcpEnabled':prototypeSafeRecord(z[_0x4bd068(0x466,0x3e3,0x443,0x4b3)]())[_0x154255(-0xe4,0x10b,0x79,0x1a9)](),'commandsEnabled':z[_0x4bd068(0x583,0x5cd,0x45e,0x745)](z[_0x154255(0x197,0xb7,0x88,-0x5)](),z[_0x4bd068(0x4d6,0x3e3,0x3ef,0x26d)]())[_0x154255(-0x3f,0xf,0x79,0x166)](),'memory':memorySettingsSchema[_0x154255(0x11d,-0x6,0x79,-0x1b)](),'session':z[_0x154255(0x172,0x1f8,0x2df,0x44a)]({'memPersist':z['boolean']()[_0x154255(0xd6,-0x8e,0x79,0x10d)](),'persistEventLog':z[_0x4bd068(0x379,0x3e3,0x50a,0x2a4)]()['optional'](),'persistHttpLog':z[_0x154255(0x6f,-0xf2,0x4d,-0x7)]()[_0x4bd068(0x2fd,0x40f,0x582,0x33c)]()})[_0x4bd068(0x42b,0x40c,0x308,0x2e0)]()[_0x154255(0x57,-0x2f,0x79,0x24)](),'requireToolApproval':z[_0x4bd068(0x3b9,0x3e3,0x443,0x34f)]()[_0x154255(-0xc8,0x1c6,0x79,0x167)](),'thinking':z[_0x4bd068(0x532,0x45d,0x47d,0x469)]([_0x4bd068(0x5f6,0x53d,0x5df,0x5b6),'LOW',_0x154255(0x179,0x6d,0x1d2,0x101),'HIGH'])[_0x4bd068(0x500,0x40f,0x4e2,0x518)](),'streamingChunks':z[_0x4bd068(0x447,0x3e3,0x382,0x2cb)]()[_0x4bd068(0x397,0x40f,0x55c,0x448)](),'agentsEnabled':z['record'](z[_0x4bd068(0x322,0x41e,0x361,0x2eb)](),z[_0x4bd068(0x38b,0x3e3,0x377,0x38c)]())[_0x4bd068(0x53b,0x40f,0x350,0x4b4)](),'recentModels':z[_0x154255(0x1c7,0x1ea,0x2bb,0x1c4)](recentModelSchema)[_0x154255(0x152,0x1d5,0x79,0x71)](),'lsp':lspConfigSchema[_0x154255(0x2,-0x88,0x79,0x118)](),'servers':z['record'](z[_0x154255(-0x47,0xb3,0x88,0x122)](),serverEndpointSchema)[_0x154255(0x1a8,0xe,0x79,-0x3c)](),'ui':z[_0x4bd068(0x6f6,0x675,0x77e,0x7ae)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x4bd068(0x2e5,0x40f,0x3db,0x4b6)]()})[_0x4bd068(0x36c,0x40c,0x307,0x3af)]()['optional'](),'tools':z['record'](z['string'](),z[_0x154255(0x3a8,0x25f,0x2a9,0x1a4)]())[_0x154255(0xd2,0x170,0x79,0x17c)](),'hooks':hooksConfigSchema[_0x4bd068(0x428,0x40f,0x453,0x41f)]()})[_0x4bd068(0x53b,0x40c,0x4c6,0x4e6)](),workspaceOverlaySchema=z[_0x154255(0x28c,0x253,0x2df,0x1be)]({'root':z[_0x4bd068(0x487,0x41e,0x4a6,0x493)]()[_0x4bd068(0x30c,0x40f,0x308,0x3e1)](),'allowedDirs':z[_0x154255(0x2e8,0x29b,0x2bb,0x380)](z['string']())['optional'](),'activeProvider':z[_0x4bd068(0x51b,0x41e,0x46b,0x3f4)]()[_0x154255(-0x23,0x55,0x79,0xae)](),'activeModel':z[_0x4bd068(0x517,0x41e,0x4a7,0x2d2)]()[_0x154255(0xf5,0x186,0x79,0xa1)](),'mcp':mcpSettingsSchema[_0x154255(0x69,0x1d7,0x79,-0x8f)](),'skills':skillsSettingsSchema[_0x4bd068(0x423,0x40f,0x2e8,0x31d)](),'agents':agentsSettingsSchema['optional'](),'commands':commandsSettingsSchema[_0x154255(0xfd,0x14c,0x79,0x1c0)](),'hooks':hooksConfigSchema[_0x154255(0x8a,0x17d,0x79,0x18c)](),'memory':memorySettingsSchema[_0x4bd068(0x344,0x40f,0x298,0x582)](),'mcpEnabled':prototypeSafeRecord(z[_0x4bd068(0x280,0x3e3,0x2c6,0x519)]())[_0x154255(-0x56,-0xc4,0x79,-0x5c)](),'skillsEnabled':z[_0x154255(0x2c7,0x319,0x237,0x2d9)](z[_0x154255(0x159,0x90,0x88,-0xb8)](),z[_0x154255(0x14b,0xb6,0x4d,0xd6)]())[_0x154255(-0x7d,0x75,0x79,-0x8b)](),'agentsEnabled':z['record'](z[_0x4bd068(0x4b8,0x41e,0x36e,0x3df)](),z[_0x4bd068(0x331,0x3e3,0x292,0x4a8)]())[_0x154255(0xdc,-0x25,0x79,-0x81)](),'commandsEnabled':z[_0x4bd068(0x5db,0x5cd,0x5e1,0x6e0)](z['string'](),z[_0x4bd068(0x4d0,0x3e3,0x432,0x48f)]())[_0x154255(-0x8e,0xd2,0x79,0x154)]()})['passthrough'](),PROTOTYPE_SENSITIVE_NAMES2=new Set([...Object['getOwnPropertyNames'](Object[_0x4bd068(0x553,0x4aa,0x61c,0x49e)]),_0x4bd068(0x4f0,0x4aa,0x439,0x33d)]);function buildDescription(_0x286459){const _0x15ed54={_0x48b005:0x14b,_0x45c8af:0x64,_0x46a600:0x10c,_0x254da9:0x67c,_0x1831c5:0x527,_0x108e82:0x637,_0x44261a:0x55,_0x1e666d:0xcb,_0x3f3f2d:0x2eb,_0x323429:0x442,_0x2fe021:0x31a},_0x201cf6={_0x2a6220:0x51e};if(_0x286459[_0xa07544(0x1,-0x1ba,-0x2ad,-_0x15ed54._0x48b005)]===0x0)return['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0xa07544(-_0x15ed54._0x45c8af,0x45,-0x37,-_0x15ed54._0x46a600),_0x5ec675(0x630,_0x15ed54._0x254da9,0x78c,0x60f)][_0x5ec675(_0x15ed54._0x1831c5,0x592,_0x15ed54._0x108e82,0x462)]('\x0a');const _0x143fe2=['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.','Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0xa07544(-0x1e7,_0x15ed54._0x44261a,_0x15ed54._0x1e666d,-0x8d),..._0x286459[_0x5ec675(_0x15ed54._0x3f3f2d,_0x15ed54._0x323429,0x40a,_0x15ed54._0x2fe021)](_0x5e879e=>_0x5e879e[_0x5ec675(0x4d2,0x52e,0x5f2,0x681)]?'-\x20'+_0x5e879e[_0x5ec675(0x4b8,0x5cb,0x605,0x6fa)]+'\x20'+_0x5e879e[_0xa07544(0x14c,0x7d,0x120,-0x28)]+':\x20'+_0x5e879e['description']:'-\x20'+_0x5e879e['name']+':\x20'+_0x5e879e[_0xa07544(0x56,-0x2f,-0x4b,0x72)])];function _0x5ec675(_0x3f8ba0,_0x4e9d17,_0x1661a2,_0x44dfd4){return _0x154255(_0x3f8ba0,_0x4e9d17-0x11,_0x4e9d17-0x3ce,_0x44dfd4-0x17);}function _0xa07544(_0x4b39d3,_0x55e04c,_0x42b7de,_0x31a301){return _0x4bd068(_0x4b39d3,_0x31a301- -_0x201cf6._0x2a6220,_0x42b7de-0xdd,_0x31a301-0x57);}return _0x143fe2[_0x5ec675(0x508,0x592,0x49a,0x432)]('\x0a');}function createInvokeCommandTool(_0xea6048){const _0x31fcd2={_0x372b8b:0x16e,_0x45d0b5:0x259,_0x366ba7:0x258,_0x2a085d:0x38a,_0x604f8a:0x38b,_0x54986d:0x2c4,_0x134a58:0x1a5,_0x24f474:0x321,_0x3284b7:0x31a},_0x31fa95={_0x462dd8:0x5aa,_0x1725cc:0x1fe,_0x18e34d:0x294,_0xc55710:0x69e,_0x4c0158:0x815,_0x350825:0x69b,_0x5b5dc3:0x64e,_0x57cfe4:0x76e,_0x1c53db:0x67e,_0x531476:0x501,_0x5ad513:0x3d2,_0x4696d8:0x5a5,_0x11fa9c:0x5a1,_0x53fa16:0x653,_0x301224:0x6b8,_0x2a7707:0x5c5,_0x2eafbe:0x3f3,_0x155a75:0x43b,_0x2db1ab:0x3f8,_0x4b4922:0x77c,_0xe1279d:0x671,_0x167be9:0x6d4,_0x248b8b:0x534,_0x328787:0x5a2,_0x139d1c:0x52f},_0x365630={_0x4f7939:0x12,_0x100bc1:0x11d,_0x390ccc:0x52},_0x1fbd19={_0x2c32df:0x1e6},_0x54b401=new Map(_0xea6048['commands'][_0x19cbd8(_0x31fcd2._0x372b8b,0x38a,_0x31fcd2._0x45d0b5,_0x31fcd2._0x366ba7)](_0x37f016=>[_0x37f016['id'],_0x37f016]));function _0x19cbd8(_0x506a13,_0x7c25de,_0x3de0f4,_0x1c81b0){return _0x4bd068(_0x506a13,_0x3de0f4- -0x1b1,_0x3de0f4-0xc6,_0x1c81b0-_0x1fbd19._0x2c32df);}function _0x183f61(_0x5aae37,_0x57581f,_0x123702,_0x384618){return _0x154255(_0x123702,_0x57581f-_0x365630._0x4f7939,_0x384618-_0x365630._0x100bc1,_0x384618-_0x365630._0x390ccc);}const _0x5cf01d=buildDescription(_0xea6048[_0x19cbd8(0x453,_0x31fcd2._0x2a085d,0x356,0x20d)]);return defineTool({'name':'InvokeCommand','description':_0x5cf01d,'inputSchema':{'type':_0x183f61(0x2b2,0x49b,_0x31fcd2._0x604f8a,0x3fc),'properties':{'name':{'type':'string'},'args':{'type':_0x183f61(0x19a,_0x31fcd2._0x54986d,0x4e,_0x31fcd2._0x134a58)}},'required':[_0x183f61(0x33f,_0x31fcd2._0x24f474,0x40b,_0x31fcd2._0x3284b7)]},async *'execute'(_0x4e38f5){const _0x22926e={_0x43b835:0x120},_0x4851c4={_0x18d8f4:0x95,_0x681381:0xc2},_0x3b9bd8=_0x54b401['get'](_0x4e38f5['name']);if(!_0x3b9bd8){const _0x2cc174=Array[_0x2e9cd6(0x5be,_0x31fa95._0x462dd8,0x59a,0x5ba)](_0x54b401[_0x5c31fc(_0x31fa95._0x1725cc,0x1ec,_0x31fa95._0x18e34d,0x34b)]())[_0x2e9cd6(_0x31fa95._0xc55710,_0x31fa95._0x4c0158,_0x31fa95._0x350825,_0x31fa95._0x5b5dc3)](',\x20');throw new ToolExecutionError(_0x2e9cd6(_0x31fa95._0x57cfe4,_0x31fa95._0x1c53db,0x789,0x835)+_0x4e38f5['name']+_0x2e9cd6(_0x31fa95._0x531476,0x520,0x4fd,_0x31fa95._0x5ad513)+_0x2cc174,{'name':_0x4e38f5[_0x2e9cd6(_0x31fa95._0x4696d8,0x669,0x6d4,0x57d)]});}function _0x5c31fc(_0x487368,_0x4a221f,_0x3afc08,_0x36ff5a){return _0x183f61(_0x487368-_0x4851c4._0x18d8f4,_0x4a221f-_0x4851c4._0x681381,_0x3afc08,_0x36ff5a-0xe5);}const _0x1cb490=await _0xea6048[_0x2e9cd6(0x548,0x639,_0x31fa95._0x11fa9c,_0x31fa95._0x53fa16)](_0x3b9bd8),_0x40e036=_0x4e38f5[_0x2e9cd6(_0x31fa95._0x301224,0x459,0x57c,_0x31fa95._0x2a7707)]??'',_0x3c5c5f=renderCommandInstructions({'instructions':_0x1cb490['instructions'],'argumentsText':_0x40e036,'argumentNames':_0x1cb490[_0x5c31fc(_0x31fa95._0x2eafbe,0x3fc,_0x31fa95._0x155a75,_0x31fa95._0x2db1ab)]});function _0x2e9cd6(_0x18cdc4,_0x1b586a,_0x9a5b3,_0x11bc90){return _0x19cbd8(_0x1b586a,_0x1b586a-_0x22926e._0x43b835,_0x9a5b3-0x2f2,_0x11bc90-0x167);}return yield createToolOutput(_0x3c5c5f,{'id':_0x1cb490['id'],'name':_0x1cb490[_0x2e9cd6(_0x31fa95._0x4b4922,_0x31fa95._0xe1279d,_0x31fa95._0x167be9,0x755)],'path':_0x3b9bd8[_0x5c31fc(_0x31fa95._0x248b8b,_0x31fa95._0x328787,_0x31fa95._0x139d1c,0x454)][_0x2e9cd6(0x7cf,0x6f5,0x726,0x83c)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x48f8b6,rename as _0x5ee5e4,stat as _0x4125db,writeFile as _0x49116c}from'fs/promises';import*as _0x35afbf from'path';function detectEol(_0x5567fd){const _0x28289e={_0x20f28a:0x3f,_0x205b94:0x10b,_0x15f4b3:0x9f,_0x2e067a:0x65,_0x5d38e6:0x80c,_0x388ef6:0x6bb},_0x810ace={_0x47e279:0x169},_0x15c7aa={_0xa70475:0x5b9};function _0x4f5f53(_0x2f422c,_0x476afd,_0x300c04,_0x3e6d49){return _0x4bd068(_0x300c04,_0x2f422c- -_0x15c7aa._0xa70475,_0x300c04-0x2c,_0x3e6d49-0x61);}function _0x2d41a8(_0x51a214,_0x211e23,_0x2d2ea4,_0x45b71e){return _0x4bd068(_0x45b71e,_0x2d2ea4-_0x810ace._0x47e279,_0x2d2ea4-0x84,_0x45b71e-0xd2);}return/\r\n/[_0x4f5f53(-0x196,-0x207,-_0x28289e._0x20f28a,-_0x28289e._0x205b94)](_0x5567fd[_0x4f5f53(-_0x28289e._0x15f4b3,-0x18c,0x48,-_0x28289e._0x2e067a)](_0x2d41a8(0x7fe,_0x28289e._0x5d38e6,0x71a,_0x28289e._0x388ef6)))?_0x2d41a8(0x715,0x788,0x747,0x8bd):'lf';}function normalizeToLf(_0x4c7e40){return _0x4c7e40['replace'](/\r\n/g,'\x0a');}function convertEol(_0x14f8c4,_0xab5b4b){const _0x5ae743={_0x1bdc52:0x12b,_0x107b53:0x7},_0x409eba={_0x21e53a:0x38e,_0x482ccc:0x1c4},_0x19853d={_0x3f8316:0x24f};function _0x18fa3d(_0x225a70,_0x586f47,_0x27e8e0,_0x55c69d){return _0x154255(_0x586f47,_0x586f47-0x93,_0x55c69d- -_0x19853d._0x3f8316,_0x55c69d-0x17f);}function _0x4eb4f7(_0x1b4aa0,_0x152272,_0x21ed35,_0x4b1e3c){return _0x154255(_0x21ed35,_0x152272-0x151,_0x4b1e3c-_0x409eba._0x21e53a,_0x4b1e3c-_0x409eba._0x482ccc);}return _0xab5b4b===_0x18fa3d(-0x52,0xfb,_0x5ae743._0x1bdc52,-_0x5ae743._0x107b53)?_0x14f8c4[_0x18fa3d(-0x174,-0x218,-0x88,-0x186)](/\n/g,'\x0d\x0a'):_0x14f8c4;}async function atomicWrite(_0x12e00e,_0x53d6a2){const _0x4e83af={_0x25c121:0x28f,_0x3c7f14:0x199,_0x481ae3:0x61f,_0x2cb286:0x38d,_0x87a1b1:0xa8,_0x4c182e:0x1ce,_0x17d6c8:0x124,_0x2baecd:0xb9,_0x376256:0xe4,_0x5994d4:0x11e,_0x1e066e:0x1ea,_0x2ad7a5:0x3e7,_0x3ef5fa:0x25f},_0x13c381={_0x2a79ab:0xc3,_0x3cad97:0x14d},_0x49e282={_0x45bc86:0x48,_0x20ae93:0xec},_0x47956b=_0x35afbf[_0x2923e2(_0x4e83af._0x25c121,0x1ab,0x381,_0x4e83af._0x3c7f14)](_0x12e00e);function _0x2923e2(_0x522eb1,_0x37fb56,_0x4591f2,_0x31620b){return _0x154255(_0x31620b,_0x37fb56-0xab,_0x522eb1- -_0x49e282._0x45bc86,_0x31620b-_0x49e282._0x20ae93);}function _0xb2e208(_0x4e9ccb,_0x2da626,_0x132143,_0x1d8194){return _0x4bd068(_0x4e9ccb,_0x132143- -0x78,_0x132143-_0x13c381._0x2a79ab,_0x1d8194-_0x13c381._0x3cad97);}const _0x557406=_0x35afbf[_0xb2e208(0x549,0x55f,0x4e2,_0x4e83af._0x481ae3)](_0x47956b,'.tmp.'+_0x35afbf[_0x2923e2(0x29d,0x2ea,_0x4e83af._0x2cb286,0x2ef)](_0x12e00e)+'.'+Date[_0x2923e2(_0x4e83af._0x87a1b1,-0x81,-0xb7,0x218)]()+'.'+Math[_0x2923e2(0x144,_0x4e83af._0x4c182e,0x11b,_0x4e83af._0x17d6c8)]()[_0x2923e2(0x13c,_0x4e83af._0x2baecd,_0x4e83af._0x376256,_0x4e83af._0x5994d4)](0x24)[_0x2923e2(0x2a2,_0x4e83af._0x1e066e,_0x4e83af._0x2ad7a5,_0x4e83af._0x3ef5fa)](0x2));await _0x49116c(_0x557406,_0x53d6a2),await _0x5ee5e4(_0x557406,_0x12e00e);}function sha256(_0x1d4f9c){const _0x5358dd={_0xc144fd:0x633,_0x4d4db7:0x4eb,_0x43b75f:0x724,_0x331fff:0x4ee,_0x20200e:0x21f},_0x136da1={_0x19854e:0x46,_0x26256b:0x166},_0x416665={_0x23ea1a:0x26,_0x1ef000:0x12c};function _0x208e4b(_0x1ca513,_0xeaa48d,_0x22ab17,_0x26339e){return _0x154255(_0x1ca513,_0xeaa48d-_0x416665._0x23ea1a,_0x22ab17-0x3a6,_0x26339e-_0x416665._0x1ef000);}function _0x53fa5b(_0x8f5e6a,_0x47f191,_0x4fd452,_0x5c0d90){return _0x154255(_0x8f5e6a,_0x47f191-_0x136da1._0x19854e,_0x5c0d90-0x1dc,_0x5c0d90-_0x136da1._0x26256b);}return createHash(_0x53fa5b(0x5c6,_0x5358dd._0xc144fd,_0x5358dd._0x4d4db7,0x4bf))[_0x208e4b(_0x5358dd._0x43b75f,_0x5358dd._0x331fff,0x5c9,0x515)](_0x1d4f9c)['digest'](_0x53fa5b(0x391,0x284,_0x5358dd._0x20200e,0x322));}function countLines(_0x4d2a5a){const _0x590d9a={_0x332ba3:0x7c,_0x4c42e9:0x1d6,_0x2024c6:0x1a6,_0x282b5b:0x279,_0x4b6eb4:0x114,_0x5839e1:0x191},_0x32eeca={_0x37b292:0x16d},_0x2212c7={_0x34fd17:0x1ce},_0x50734b=_0x4d2a5a[_0x355477(_0x590d9a._0x332ba3,_0x590d9a._0x4c42e9,_0x590d9a._0x2024c6,0x159)](/\n$/,'');function _0x1fa7c3(_0x4d5d8f,_0x317d47,_0x56d86d,_0x5e7b1d){return _0x4bd068(_0x56d86d,_0x5e7b1d-0x131,_0x56d86d-0x10f,_0x5e7b1d-_0x2212c7._0x34fd17);}function _0x355477(_0x1c9b28,_0x10b3fb,_0x3fa5f3,_0x239a11){return _0x4bd068(_0x1c9b28,_0x3fa5f3- -0x2b9,_0x3fa5f3-0x146,_0x239a11-_0x32eeca._0x37b292);}return _0x50734b['length']===0x0?0x0:_0x50734b[_0x355477(0x168,_0x590d9a._0x282b5b,0x22f,_0x590d9a._0x4b6eb4)]('\x0a')[_0x355477(0x19,_0x590d9a._0x5839e1,0x11a,0x3e)];}function calculateLineNumbers(_0x19933a,_0x4beae5,_0x4b3e4d,_0x48a7d5){const _0x137668={_0x30b8a2:0x4ab,_0x2d33f1:0x582,_0x23f25e:0x2c7,_0x3b7eda:0x240,_0x4f1cbd:0x203},_0x457cc5={_0x48d6ef:0x3,_0x546447:0x12a},_0x4dc2eb={_0x1f6ab5:0x191},_0x2e04e1=_0x19933a[_0x2270c1(0x574,_0x137668._0x30b8a2,_0x137668._0x2d33f1,0x552)](0x0,_0x48a7d5)['split']('\x0a')[_0x2270c1(_0x137668._0x23f25e,_0x137668._0x3b7eda,0x424,_0x137668._0x4f1cbd)],_0x33480e=countLines(_0x4beae5),_0x1d86aa=countLines(_0x4b3e4d);function _0x2270c1(_0x4f5d6e,_0x9653dc,_0x243f08,_0x3f7aed){return _0x4bd068(_0x3f7aed,_0x4f5d6e- -0x10c,_0x243f08-_0x4dc2eb._0x1f6ab5,_0x3f7aed-0xf4);}function _0x1ee591(_0x4f4389,_0x30855e,_0x57f264,_0x3dba0b){return _0x4bd068(_0x4f4389,_0x3dba0b-_0x457cc5._0x48d6ef,_0x57f264-_0x457cc5._0x546447,_0x3dba0b-0xba);}return{'oldStartLine':_0x2e04e1,'oldEndLine':_0x2e04e1+_0x33480e-0x1,'newStartLine':_0x2e04e1,'newEndLine':_0x2e04e1+_0x1d86aa-0x1,'oldLineCount':_0x33480e,'newLineCount':_0x1d86aa};}function createFileEditTool(_0x36c663={}){const _0x11a25a={_0x3b42d0:0x42a,_0x4c77e4:0x4b0,_0x144de7:0x2e0,_0x31137f:0x3cb,_0x4f9ce0:0x4b6,_0x5ca7e8:0x4b2,_0x1fa57c:0x413,_0x36d15e:0x50f,_0x5c270f:0x4de,_0x5e9ae3:0x3c3,_0x18bbb2:0x2a3,_0x3dae7c:0x425,_0x1fa036:0x3c6,_0x2249fc:0x5e0,_0x1ed8cc:0x5eb,_0x1bf2b9:0x5ff,_0xb3259b:0x6a8,_0x153f13:0x412,_0x4484d4:0x39a,_0x13bb44:0x449,_0x478f84:0x30b,_0x205b76:0x394,_0x1379bd:0x3bb,_0x1acc1b:0x403,_0x16f8b8:0x39a,_0x357925:0x3c0,_0xe8a488:0x5c5,_0x494a2f:0x4a1,_0x5a22fa:0x516,_0x5107b0:0x333,_0x5bf069:0x4e2},_0x16a9e2={_0x46860a:0x3d5,_0x5cb848:0x3ce,_0x1a5951:0x579,_0x218572:0x55c,_0x4f3c35:0x3c5,_0x551cf5:0x3b5,_0x51e6b9:0x45c,_0x51b6ad:0x431,_0x1e2b68:0x395,_0x205ea5:0x62c,_0x13925d:0x630,_0x4d2cbc:0x44d,_0x5614be:0x331,_0x10f275:0x36c,_0x2866cf:0x3ec,_0x277526:0x505,_0x5cc8e2:0x62f,_0x59dbe8:0x3ca,_0x39b35d:0x261,_0x5c1f39:0x20d,_0x56dea9:0x356,_0x48cf03:0x3fc,_0x32e7d8:0x3a5,_0x30d657:0x2ce,_0x4cc1a4:0x1ff,_0x4f0045:0x599,_0x50252a:0x59e,_0x358acc:0x2ce,_0x58f2ea:0x164,_0x2b6be4:0x220,_0x5d8e15:0x5c7,_0x216fae:0x537,_0x4bb675:0x3c6,_0x3a9ac0:0x22b,_0x3cc012:0x309,_0x57c197:0x21e},_0xc82a2d={_0x13ce1f:0x76},_0x4bcced={_0x597388:0x84},_0x1635ff=_0x35afbf[_0x172987(0x501,_0x11a25a._0x3b42d0,0x2ca,_0x11a25a._0x4c77e4)](_0x36c663[_0x4b40a3(_0x11a25a._0x144de7,_0x11a25a._0x31137f,0x299,_0x11a25a._0x4f9ce0)]??process[_0x4b40a3(0x3dd,_0x11a25a._0x5ca7e8,_0x11a25a._0x1fa57c,0x56f)]()),_0x4e2625=_0x36c663['allowedDirs']??[];function _0x172987(_0x22e83c,_0x47d9c3,_0x2a1dfd,_0x20cbaa){return _0x4bd068(_0x22e83c,_0x47d9c3- -_0x4bcced._0x597388,_0x2a1dfd-0x17b,_0x20cbaa-0xe0);}function _0x4b40a3(_0x26f22c,_0x125685,_0x293fcf,_0xf630f5){return _0x4bd068(_0x293fcf,_0x125685- -0x8a,_0x293fcf-_0xc82a2d._0x13ce1f,_0xf630f5-0xad);}const _0x52dbf8=_0x36c663[_0x172987(0x5f9,_0x11a25a._0x36d15e,_0x11a25a._0x5c270f,_0x11a25a._0x5e9ae3)]??_0x172987(_0x11a25a._0x18bbb2,0x3bc,_0x11a25a._0x3dae7c,_0x11a25a._0x1fa036);return defineTool({'name':_0x52dbf8,'description':_0x172987(0x5a1,0x59f,0x69d,_0x11a25a._0x5ca7e8),'inputSchema':{'type':_0x4b40a3(_0x11a25a._0x2249fc,_0x11a25a._0x1ed8cc,_0x11a25a._0x1bf2b9,_0x11a25a._0xb3259b),'properties':{'filePath':{'type':_0x172987(_0x11a25a._0x153f13,_0x11a25a._0x4484d4,0x31e,_0x11a25a._0x13bb44)},'description':{'type':_0x4b40a3(_0x11a25a._0x478f84,_0x11a25a._0x205b76,_0x11a25a._0x1379bd,0x396),'description':'A\x20concise\x20explanation\x20of\x20what\x20this\x20edit\x20changes\x20and\x20why\x20—\x20the\x20goal\x20it\x20advances.\x20Shown\x20to\x20the\x20user\x20before\x20the\x20change\x20is\x20applied.\x20Be\x20specific,\x20e.g.\x20\x27Fix\x20the\x20token-refresh\x20race\x20in\x20the\x20auth\x20client\x27\x20rather\x20than\x20\x27edit\x20file\x27.'},'oldText':{'type':_0x172987(_0x11a25a._0x1acc1b,_0x11a25a._0x16f8b8,0x27c,0x459)},'newText':{'type':_0x172987(0x275,0x39a,0x3f4,_0x11a25a._0x357925)},'dryRun':{'type':_0x4b40a3(0x208,0x359,0x20a,0x440)}},'required':[_0x4b40a3(0x450,0x495,_0x11a25a._0xe8a488,0x3e7),_0x172987(_0x11a25a._0x494a2f,0x598,0x48f,0x690),_0x172987(_0x11a25a._0x5a22fa,_0x11a25a._0x13bb44,_0x11a25a._0x5107b0,_0x11a25a._0x5bf069)]},async *'execute'(_0x3dcaae){const _0x4b441b={_0x47cf44:0x46,_0x189144:0x5c},_0x26d732={_0x19e695:0x139,_0x3bbcf3:0x15e},_0x270577=resolveAllowedPath(_0x1635ff,_0x4e2625,_0x3dcaae[_0x5e0898(_0x16a9e2._0x46860a,0x2e7,_0x16a9e2._0x5cb848,0x455)]);await assertWorkspaceFile(_0x270577);const _0x5bc6e5=await _0x4125db(_0x270577),_0xd19db1=await _0x48f8b6(_0x270577),_0x5bcdf4=detectEol(_0xd19db1),_0x16df42=normalizeToLf(_0xd19db1['toString']('utf8')),_0x3bf440=normalizeToLf(_0x3dcaae[_0x5e0898(0x439,_0x16a9e2._0x1a5951,_0x16a9e2._0x218572,0x552)]),_0x158a8e=normalizeToLf(_0x3dcaae[_0x872d46(0x33f,0x3ae,_0x16a9e2._0x4f3c35,0x35e)]),_0x269e5b=_0x16df42[_0x872d46(0x29d,0x31a,_0x16a9e2._0x551cf5,0x2fe)](_0x3bf440);if(_0x269e5b===-0x1){const _0x28eae3=_0x3bf440[_0x5e0898(0x64d,0x610,_0x16a9e2._0x51e6b9,0x5b6)](0x0,0x64)[_0x5e0898(0x3f1,0x502,_0x16a9e2._0x51b6ad,_0x16a9e2._0x1e2b68)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x5e0898(_0x16a9e2._0x205ea5,_0x16a9e2._0x13925d,_0x16a9e2._0x4d2cbc,0x59a)+_0x28eae3+(_0x3bf440[_0x872d46(0x245,0x105,0x37a,0x1da)]>0x64?_0x872d46(_0x16a9e2._0x5614be,_0x16a9e2._0x5614be,0x1f7,_0x16a9e2._0x10f275):'')+'\x22',{'filePath':_0x3dcaae['filePath']});}const _0x40a04c=_0x16df42[_0x872d46(0x4f2,_0x16a9e2._0x2866cf,_0x16a9e2._0x277526,0x662)](0x0,_0x269e5b)+_0x158a8e+_0x16df42[_0x872d46(0x4f2,_0x16a9e2._0x5cc8e2,0x576,0x412)](_0x269e5b+_0x3bf440[_0x5e0898(0x42c,0x437,0x46a,0x309)]),_0x23967a=convertEol(_0x40a04c,_0x5bcdf4),_0x310a2d=Buffer['from'](_0x23967a,_0x872d46(0x423,_0x16a9e2._0x59dbe8,0x3e7,0x34a)),_0x259d9c=sha256(_0xd19db1),_0x59b1fa=sha256(_0x310a2d),_0x4edaa9=_0x259d9c===_0x59b1fa;function _0x872d46(_0x2dbf22,_0x5941ca,_0x122d04,_0xed9bd0){return _0x4b40a3(_0x2dbf22-_0x26d732._0x19e695,_0x2dbf22- -0x104,_0x122d04,_0xed9bd0-_0x26d732._0x3bbcf3);}const _0x26731c=_0x3dcaae[_0x872d46(_0x16a9e2._0x39b35d,_0x16a9e2._0x5c1f39,0x1e3,_0x16a9e2._0x56dea9)]??![];!_0x26731c&&!_0x4edaa9&&await atomicWrite(_0x270577,_0x310a2d);yield createToolOutput(_0x4edaa9?_0x872d46(0x364,0x2ac,_0x16a9e2._0x48cf03,0x2ce):_0x26731c?'Validated\x20(dry\x20run:\x20no\x20write).':_0x872d46(0x383,0x32f,0x279,0x2d4),{'filePath':_0x3dcaae[_0x5e0898(0x322,0x3f5,_0x16a9e2._0x32e7d8,0x455)],'resolvedPath':_0x270577,'created':_0x5bc6e5['birthtime'][_0x872d46(_0x16a9e2._0x30d657,0x340,_0x16a9e2._0x4cc1a4,0x192)](),'modified':_0x5bc6e5[_0x5e0898(0x5d9,_0x16a9e2._0x4f0045,0x512,_0x16a9e2._0x50252a)][_0x872d46(_0x16a9e2._0x358acc,0x398,_0x16a9e2._0x58f2ea,_0x16a9e2._0x2b6be4)](),'size':_0x5bc6e5[_0x872d46(0x451,_0x16a9e2._0x5d8e15,_0x16a9e2._0x216fae,_0x16a9e2._0x4bb675)],'eol':_0x5bcdf4,'oldTextLength':_0x3bf440['length'],'newTextLength':_0x158a8e[_0x5e0898(_0x16a9e2._0x3a9ac0,0x215,0x2ea,_0x16a9e2._0x3cc012)],'bytesWritten':_0x4edaa9||_0x26731c?0x0:_0x310a2d[_0x872d46(0x245,_0x16a9e2._0x57c197,0x358,0x304)],'beforeSha':_0x259d9c,'afterSha':_0x59b1fa,'dryRun':_0x26731c,'noChange':_0x4edaa9,'lineNumbers':calculateLineNumbers(_0x16df42,_0x3bf440,_0x158a8e,_0x269e5b)});function _0x5e0898(_0x2ef354,_0xed3c16,_0x1ac4cf,_0x467f65){return _0x172987(_0x2ef354,_0x467f65- -_0x4b441b._0x47cf44,_0x1ac4cf-0x174,_0x467f65-_0x4b441b._0x189144);}return void 0x0;}});}import{mkdir as _0x62c945,rename as _0x2b03be,stat as _0x447bab,writeFile as _0x1d3da1}from'fs/promises';import*as _0x3b3b8e from'path';async function atomicWrite2(_0x87b45a,_0x27f3c8){const _0x502f4e={_0xee9ca:0xe9,_0x204c63:0x8f,_0x6ddb7b:0x56,_0x4552cf:0x61,_0x236068:0x7e,_0x338f9d:0xa2,_0x26a12e:0x22,_0x4904b0:0x96,_0xbeb3df:0x43c},_0x307e24={_0xc481e0:0xe0,_0x209697:0xa,_0x50f0f7:0xe5},_0x44f4db={_0x28f71c:0xa6},_0x3c5b6d=_0x3b3b8e[_0x5850cd(_0x502f4e._0xee9ca,0xaa,0xbd,-0x53)](_0x87b45a);await _0x62c945(_0x3c5b6d,{'recursive':!![]});const _0x40f1ed=_0x3b3b8e[_0x5850cd(0x2,_0x502f4e._0x204c63,-_0x502f4e._0x6ddb7b,-0x2)](_0x3c5b6d,_0x5850cd(-0xb4,0x44,_0x502f4e._0x4552cf,-_0x502f4e._0x236068)+_0x3b3b8e['basename'](_0x87b45a)+'.'+Date['now']()+'.'+Math[_0x5850cd(-0x5,0x62,-0x8e,_0x502f4e._0x338f9d)]()[_0x5850cd(-0x175,_0x502f4e._0x26a12e,-_0x502f4e._0x4904b0,-0x1e0)](0x24)[_0x122db2(0x2f4,_0x502f4e._0xbeb3df,0x1aa,0x2eb)](0x2));await _0x1d3da1(_0x40f1ed,_0x27f3c8);function _0x5850cd(_0xb5c561,_0x3d4f15,_0x10b5dc,_0xf27650){return _0x154255(_0xb5c561,_0x3d4f15-_0x44f4db._0x28f71c,_0x10b5dc- -0x21a,_0xf27650-0xb8);}function _0x122db2(_0x4ec230,_0x5ba473,_0x3819c7,_0x20f1ed){return _0x154255(_0x5ba473,_0x5ba473-_0x307e24._0xc481e0,_0x4ec230-_0x307e24._0x209697,_0x20f1ed-_0x307e24._0x50f0f7);}await _0x2b03be(_0x40f1ed,_0x87b45a);}function _0x4bd068(_0x1e95ad,_0x58fd41,_0x505208,_0x8f926f){return _0x3c5f(_0x58fd41-0x273,_0x1e95ad);}function createFileNewTool(_0x2fc271={}){const _0xb5c13b={_0x180bcf:0x7,_0x33bec6:0x1e,_0xb73f89:0x6a,_0x17f13a:0x1c7,_0x49624b:0xf,_0x13e669:0xa5,_0x2b8d8c:0x47e,_0x3e7f90:0x576,_0x382dea:0x47e,_0x257060:0x47b,_0x58185c:0x38f,_0x3b5d46:0x239,_0x4cb7f5:0x385,_0x145460:0x224,_0x5858da:0x8f,_0x607c59:0x500,_0x45591c:0x3ef},_0x134408={_0x3afc49:0x87,_0x325469:0x1b4,_0x34369b:0x15a,_0x263573:0x28,_0x59704a:0xf6,_0x4b59b7:0x116,_0x2d1067:0xa,_0x3e5c15:0x4a7,_0x3240d3:0x4bf,_0xaee89f:0x1bc,_0xeb542c:0x158,_0x567b03:0x2fa,_0x303fb6:0x1fe,_0x2af1be:0x19f,_0x5187bf:0x5c,_0x127e8d:0x1d8},_0x1f8795={_0x521b86:0x1fa,_0x41b8b8:0x157},_0x152ebf={_0x3f454c:0xfa,_0x344aee:0x10f};function _0x38f189(_0x1037d6,_0x4088f0,_0x5904b1,_0x12a6f7){return _0x154255(_0x5904b1,_0x4088f0-0x5e,_0x12a6f7- -_0x152ebf._0x3f454c,_0x12a6f7-_0x152ebf._0x344aee);}function _0x12caa9(_0x532437,_0x40dc16,_0x434880,_0x430716){return _0x4bd068(_0x532437,_0x434880- -_0x1f8795._0x521b86,_0x434880-0x57,_0x430716-_0x1f8795._0x41b8b8);}const _0xbee092=_0x3b3b8e[_0x38f189(-0x3b,_0xb5c13b._0x180bcf,-0x116,_0xb5c13b._0x33bec6)](_0x2fc271[_0x38f189(_0xb5c13b._0xb73f89,-0x2,-0x5d,-0x3b)]??process['cwd']()),_0x47604f=_0x2fc271['allowedDirs']??[],_0x281bed=_0x2fc271['name']??_0x38f189(0x2c,-_0xb5c13b._0x17f13a,-_0xb5c13b._0x49624b,-_0xb5c13b._0x13e669);return defineTool({'name':_0x281bed,'description':_0x12caa9(0x364,0x45d,0x352,_0xb5c13b._0x2b8d8c),'inputSchema':{'type':_0x12caa9(_0xb5c13b._0x3e7f90,_0xb5c13b._0x382dea,_0xb5c13b._0x257060,_0xb5c13b._0x58185c),'properties':{'filePath':{'type':_0x12caa9(_0xb5c13b._0x3b5d46,_0xb5c13b._0x4cb7f5,_0xb5c13b._0x145460,0x2b9)},'content':{'type':'string'}},'required':[_0x38f189(0x1ce,0xf,0x121,_0xb5c13b._0x5858da),_0x12caa9(0x287,_0xb5c13b._0x607c59,0x3b6,_0xb5c13b._0x45591c)]},async *'execute'(_0x38efba){const _0x1858cf={_0x4f532b:0x34,_0x1c0b1d:0x113},_0x4ecede=resolveAllowedPath(_0xbee092,_0x47604f,_0x38efba[_0x56ea24(0x336,0x1bc,0x2d8,_0x134408._0x3afc49)]),_0x2581ba=await _0x447bab(_0x4ecede)['then'](()=>!![])[_0x56ea24(0x4b,_0x134408._0x325469,_0x134408._0x34369b,0x21b)](()=>![]),_0x2a97de=Buffer[_0x56ea24(_0x134408._0x263573,_0x134408._0x59704a,_0x134408._0x4b59b7,_0x134408._0x2d1067)](_0x38efba[_0x32727f(_0x134408._0x3e5c15,0x3d3,0x598,_0x134408._0x3240d3)],_0x56ea24(0x162,0x24e,0x37f,0xe6));function _0x32727f(_0x1df20c,_0x316c94,_0x4e47bf,_0x1abe4b){return _0x38f189(_0x1df20c-0x61,_0x316c94-0x9,_0x4e47bf,_0x1df20c-0x387);}function _0x56ea24(_0x8922a3,_0x36a507,_0x5cc357,_0x4a2856){return _0x38f189(_0x8922a3-_0x1858cf._0x4f532b,_0x36a507-_0x1858cf._0x1c0b1d,_0x8922a3,_0x36a507-0x12d);}return await atomicWrite2(_0x4ecede,_0x2a97de),yield createToolOutput('File\x20written\x20at\x20'+_0x38efba[_0x56ea24(0x217,_0x134408._0xaee89f,_0x134408._0xeb542c,_0x134408._0x567b03)]+'.',{'filePath':_0x38efba['filePath'],'resolvedPath':_0x4ecede,'bytes':_0x2a97de['length'],'lines':_0x38efba[_0x56ea24(_0x134408._0x303fb6,0x24d,0x29b,0x1a0)]['split'](/\r?\n/)[_0x32727f(0x2ca,_0x134408._0x2af1be,0x3fa,0x3fd)],'created':new Date()[_0x56ea24(-_0x134408._0x5187bf,0xf9,_0x134408._0x127e8d,0x261)](),'overwritten':_0x2581ba}),void 0x0;}});}import{readFile as _0x273153,stat as _0x23d195}from'fs/promises';import*as _0x4a0f77 from'path';function stripUtfBom(_0x266192){const _0x126145={_0x4ae18b:0x63b,_0x3a9115:0x57c,_0x4f42cb:0x2df},_0x5329f3={_0x5120f7:0x37,_0x5c2100:0x1d2},_0x1d3dc9={_0x77a02e:0xdf,_0x10337e:0x12b};function _0x821064(_0x2f55bc,_0x230b3f,_0x548546,_0x47b4ec){return _0x154255(_0x230b3f,_0x230b3f-_0x1d3dc9._0x77a02e,_0x47b4ec-0x9a,_0x47b4ec-_0x1d3dc9._0x10337e);}function _0x63d516(_0x13663e,_0x186788,_0x2c9bd6,_0x1c9684){return _0x4bd068(_0x2c9bd6,_0x1c9684-_0x5329f3._0x5120f7,_0x2c9bd6-_0x5329f3._0x5c2100,_0x1c9684-0x4e);}return _0x266192[_0x63d516(_0x126145._0x4ae18b,0x825,_0x126145._0x3a9115,0x6d5)](0x0)===0xfeff?_0x266192[_0x821064(0x27d,_0x126145._0x4f42cb,0x2bf,0x384)](0x1):_0x266192;}function clampLine(_0x13a3cb,_0x23530b){const _0x4ce8dc={_0x406879:0x6d,_0xf221ca:0x62b,_0x12a6ae:0x596,_0x5da4ab:0x4f3,_0x2071c9:0x80,_0x5da803:0x1a1,_0x3c2781:0x14f},_0xcb04f={_0x4f2086:0x67,_0x468686:0xf5},_0x3dfc0c={_0x46cd70:0x556,_0x4839ce:0xfd};if(!Number['isFinite'](_0x13a3cb))return 0x1;function _0x35fe91(_0x595679,_0x52db5e,_0x1cdc47,_0x4fa364){return _0x4bd068(_0x1cdc47,_0x595679- -_0x3dfc0c._0x46cd70,_0x1cdc47-_0x3dfc0c._0x4839ce,_0x4fa364-0x1be);}function _0x387692(_0x41ba45,_0x14d4a9,_0x49567a,_0x583796){return _0x4bd068(_0x49567a,_0x14d4a9-_0xcb04f._0x4f2086,_0x49567a-_0xcb04f._0x468686,_0x583796-0x135);}return Math[_0x35fe91(0xdb,-0x64,0x14b,_0x4ce8dc._0x406879)](0x1,Math[_0x387692(_0x4ce8dc._0xf221ca,_0x4ce8dc._0x12a6ae,_0x4ce8dc._0x5da4ab,0x4d5)](Math[_0x35fe91(-_0x4ce8dc._0x2071c9,-0x1e8,-_0x4ce8dc._0x5da803,-_0x4ce8dc._0x3c2781)](_0x13a3cb),_0x23530b));}function createFileReadTool(_0x1f870f={}){const _0x5bc4db={_0x9f9ad9:0x267,_0x44c210:0x308,_0x145d42:0x225,_0x44436a:0x2c4,_0x33e66b:0x492,_0x1c2be2:0x404,_0x24b722:0x402,_0x138563:0x50d,_0x1f1a88:0xf9,_0x707e3c:0x4d3,_0x2f234d:0x5d4,_0x33ac13:0x4a4,_0x46350b:0x3f9,_0x330d39:0xd1,_0x186165:0x5c,_0x3225c1:0x4ba},_0x5c5d3b={_0x6c5b8c:0x118,_0xdd0c89:0x1e7,_0x4da306:0x23c,_0x20cb8c:0x255,_0x2aa2d0:0x3a8,_0x61cfe1:0x15d,_0x4b7d45:0x479,_0x5cad8b:0x50a,_0xb8ea6a:0x4ab,_0x8a0c07:0x543,_0x1fc234:0x11c,_0x452a2c:0x36,_0x2d251c:0x301,_0x225d54:0x1b3,_0xf3ec98:0x288,_0x4a61be:0x2a8,_0x2bd3aa:0x374,_0x30f0e7:0x3da,_0x508427:0xfa,_0x3062df:0x1b4,_0x17e816:0x3c0,_0x362207:0x32d,_0x101a24:0x447,_0x1b1e41:0x26a,_0x35da8c:0x5af,_0x2ca1e9:0x1a2,_0x5e2284:0x116,_0x36f54a:0x2ba,_0x5c9917:0x24d,_0x45b9fa:0x264,_0x2f54ca:0x22f,_0x5f5941:0xee,_0x32ae67:0x12d,_0x3ec978:0x13b,_0x2a3125:0x2b,_0x3a20bc:0x148,_0x588eaf:0x411,_0x399297:0x267,_0x481017:0x1e1,_0x4d7092:0x193,_0x3df692:0x33d,_0x3e2091:0x147,_0x4e4499:0x1a6,_0x30acfd:0x131,_0x4238d1:0x128,_0x5865e1:0x42c,_0x456f0b:0x5a7,_0xa9a6c1:0x29e,_0x4bbfb:0x3e4,_0x819d98:0x3d6,_0x3162cc:0x3db,_0x2239ae:0x36f},_0x37dc61={_0x19cd95:0x96},_0x215d65={_0x52f8cc:0x12b,_0x5ddef9:0xa6},_0x252f30={_0x427e48:0x2c,_0x2ea356:0x187};function _0x49945d(_0x409e6d,_0x39445c,_0x26951d,_0x6cb6c2){return _0x154255(_0x6cb6c2,_0x39445c-_0x252f30._0x427e48,_0x39445c- -_0x252f30._0x2ea356,_0x6cb6c2-0xf3);}const _0x3d9a5f=_0x4a0f77[_0x5a509e(0x383,_0x5bc4db._0x9f9ad9,0x3e1,0x4d9)](_0x1f870f[_0x5a509e(0x32a,_0x5bc4db._0x44c210,0x420,_0x5bc4db._0x145d42)]??process[_0x5a509e(0x411,_0x5bc4db._0x44436a,_0x5bc4db._0x33e66b,_0x5bc4db._0x1c2be2)]()),_0x178e04=_0x1f870f[_0x5a509e(0x3fc,_0x5bc4db._0x24b722,_0x5bc4db._0x138563,0x563)]??[];function _0x5a509e(_0x57ad49,_0x21145f,_0x27cafa,_0x350d76){return _0x4bd068(_0x350d76,_0x57ad49- -_0x215d65._0x52f8cc,_0x27cafa-0xb1,_0x350d76-_0x215d65._0x5ddef9);}const _0x222273=_0x1f870f['name']??'FileRead';return defineTool({'name':_0x222273,'description':_0x49945d(-0x12,0x7c,0xf3,-_0x5bc4db._0x1f1a88),'inputSchema':{'type':_0x5a509e(0x54a,0x3d3,0x572,0x3dc),'properties':{'path':{'type':'string'},'lineStart':{'type':_0x5a509e(_0x5bc4db._0x707e3c,_0x5bc4db._0x2f234d,_0x5bc4db._0x33ac13,_0x5bc4db._0x46350b),'description':_0x49945d(-0x291,-0x13e,-_0x5bc4db._0x330d39,-_0x5bc4db._0x186165)},'lineEnd':{'type':'number','description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':[_0x5a509e(_0x5bc4db._0x3225c1,0x396,0x5f1,0x603)]},async *'execute'(_0x1c059c){const _0x2c8619={_0x4cb985:0x1e2,_0x183361:0x60},_0x22623b=resolveAllowedPath(_0x3d9a5f,_0x178e04,_0x1c059c[_0x5f3cba(_0x5c5d3b._0x6c5b8c,_0x5c5d3b._0xdd0c89,0x31e,_0x5c5d3b._0x4da306)]);await assertWorkspaceFile(_0x22623b);const _0x2e0e14=await _0x23d195(_0x22623b),_0x2e2788=await _0x273153(_0x22623b);if(isProbablyBinary(_0x2e2788))throw new ToolExecutionError(_0x4626d2(_0x5c5d3b._0x20cb8c,0x307,_0x5c5d3b._0x2aa2d0,_0x5c5d3b._0x61cfe1)+_0x1c059c[_0x4626d2(_0x5c5d3b._0x4b7d45,_0x5c5d3b._0x5cad8b,_0x5c5d3b._0xb8ea6a,_0x5c5d3b._0x8a0c07)],{'path':_0x1c059c['path']});let _0x1c4037=_0x2e2788[_0x5f3cba(0x26e,_0x5c5d3b._0x1fc234,0x23b,-_0x5c5d3b._0x452a2c)](_0x5f3cba(_0x5c5d3b._0x2d251c,_0x5c5d3b._0x225d54,_0x5c5d3b._0xf3ec98,_0x5c5d3b._0x4a61be));const _0x3fa231=_0x1c4037[_0x5f3cba(0x144,0x2a0,_0x5c5d3b._0x2bd3aa,_0x5c5d3b._0x30f0e7)](0x0)===0xfeff;function _0x4626d2(_0x456e13,_0x2da394,_0x3a8ca3,_0x8f3d60){return _0x49945d(_0x456e13-_0x2c8619._0x4cb985,_0x456e13-0x3b1,_0x3a8ca3-_0x2c8619._0x183361,_0x3a8ca3);}_0x1c4037=stripUtfBom(_0x1c4037);const _0x3decf5=_0x1c4037['split'](/\r?\n/),_0x2e671a={'path':_0x1c059c[_0x5f3cba(_0x5c5d3b._0x508427,0x1e7,_0x5c5d3b._0x3062df,0x83)],'resolvedPath':_0x22623b,'created':_0x2e0e14[_0x4626d2(_0x5c5d3b._0x17e816,_0x5c5d3b._0x362207,0x458,0x27d)][_0x4626d2(0x2f0,_0x5c5d3b._0x101a24,0x26d,0x3d9)](),'modified':_0x2e0e14[_0x5f3cba(0x315,_0x5c5d3b._0x1b1e41,0x178,0x325)]['toISOString'](),'size':_0x2e0e14[_0x4626d2(0x473,_0x5c5d3b._0x35da8c,0x550,0x3a6)],'encoding':_0x5f3cba(_0x5c5d3b._0x2ca1e9,0x1b3,_0x5c5d3b._0x5e2284,_0x5c5d3b._0x36f54a),'bomStripped':_0x3fa231,'truncated':![],'totalLines':_0x3decf5[_0x4626d2(0x267,_0x5c5d3b._0x5c9917,_0x5c5d3b._0x45b9fa,0x1b5)]};function _0x5f3cba(_0x200514,_0x199bbf,_0x53ea2f,_0x489ecc){return _0x49945d(_0x200514-_0x37dc61._0x19cd95,_0x199bbf-0x11f,_0x53ea2f-0x5c,_0x489ecc);}if(_0x1c059c[_0x5f3cba(_0x5c5d3b._0x2f54ca,0xfd,0x18a,0x33)]!==void 0x0||_0x1c059c[_0x5f3cba(0x2bc,0x1ba,_0x5c5d3b._0x5f5941,_0x5c5d3b._0x32ae67)]!==void 0x0){const _0x42b4e7=clampLine(_0x1c059c['lineStart']??0x1,_0x3decf5[_0x5f3cba(_0x5c5d3b._0x3ec978,-_0x5c5d3b._0x2a3125,-0x9b,-_0x5c5d3b._0x3a20bc)]),_0x23bf36=clampLine(_0x1c059c[_0x4626d2(0x44c,0x3d7,_0x5c5d3b._0x588eaf,0x508)]??_0x3decf5[_0x4626d2(_0x5c5d3b._0x399297,_0x5c5d3b._0x481017,_0x5c5d3b._0x4d7092,_0x5c5d3b._0x3df692)],_0x3decf5[_0x4626d2(0x267,0x1b3,_0x5c5d3b._0x3e2091,0xfc)]),_0x1ebc4b=Math[_0x5f3cba(_0x5c5d3b._0x4e4499,_0x5c5d3b._0x30acfd,_0x5c5d3b._0x4238d1,0x262)](_0x42b4e7,_0x23bf36),_0x3c5d0c=Math[_0x5f3cba(0x190,0x233,0x270,0x375)](_0x42b4e7,_0x23bf36),_0x2e22c6=_0x3decf5[_0x4626d2(0x514,_0x5c5d3b._0x5865e1,_0x5c5d3b._0x456f0b,0x5a4)](_0x1ebc4b-0x1,_0x3c5d0c)[_0x4626d2(_0x5c5d3b._0xa9a6c1,_0x5c5d3b._0x4bbfb,_0x5c5d3b._0x819d98,_0x5c5d3b._0x3162cc)]((_0x2f6d39,_0x1cf538)=>_0x1ebc4b+_0x1cf538+'|'+_0x2f6d39)[_0x4626d2(0x3ee,0x44e,_0x5c5d3b._0x2239ae,0x556)]('\x0a');return yield createToolOutput(_0x2e22c6,{..._0x2e671a,'lineRange':{'lineStart':_0x1ebc4b,'lineEnd':_0x3c5d0c,'linesTotal':_0x3decf5[_0x5f3cba(-0xf5,-0x2b,0xe0,-0x96)]}}),void 0x0;}return yield createToolOutput(_0x1c4037,_0x2e671a),void 0x0;}});}import{stat as _0x4ef4d0}from'fs/promises';import*as _0x58635a from'path';import{execSync,spawn as _0x2cb52a}from'child_process';import{existsSync}from'fs';import{stat as _0x147688}from'fs/promises';import*as _0x3dc96e from'os';import*as _0x83abdf from'path';import{rgPath as _0xf57946}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x576587={_0x1812dc:0x45e,_0x1428c2:0x3df,_0x519035:0x567,_0x1b470c:0x51a,_0x14c315:0x4f9,_0x3cd886:0x651,_0x10b9ed:0x436,_0x58cdcc:0x2f0,_0x5e2d65:0x51e,_0x5147cb:0x47c,_0x5dc9d9:0x483,_0x462842:0x2b1,_0x38012f:0x5b3,_0x486ab3:0x562,_0x5c852d:0x3e9,_0x335442:0x433,_0x1d2a32:0x5c8,_0x12963e:0x6aa,_0x5e0216:0x331,_0x1ee878:0x1d1,_0x40a74e:0x1b4,_0x3e1da6:0x2e6,_0x163c84:0x537,_0x1ee853:0x441,_0x3fb4b6:0x244,_0x5412bd:0x15b,_0x56fb51:0x5a3,_0x471c32:0x3f8,_0x599632:0x52a,_0x16d93d:0x35c,_0x3ea466:0x491,_0x382538:0x463,_0x6bbee8:0x3af,_0x4d4eac:0x3c5,_0x1a4292:0x4da,_0x3f2613:0x3c4,_0x29b723:0x3ee,_0x4366a6:0x260,_0x184364:0x401,_0x33acd0:0x34e,_0x5e02dc:0x48c},_0xf76420={_0x47ef31:0xb4,_0x6185b0:0x176},_0x1836ad={_0x4af096:0x124,_0x2782d1:0x90},_0x57ff2a=_0x3dc96e['platform']()==='win32';function _0x27d09b(_0x3ee003,_0xccff8d,_0x22ff18,_0x56bc15){return _0x4bd068(_0x56bc15,_0x22ff18- -_0x1836ad._0x4af096,_0x22ff18-_0x1836ad._0x2782d1,_0x56bc15-0x30);}const _0xa4670f=_0x57ff2a?[_0x83abdf[_0x56dad6(0x31d,0x538,_0x576587._0x1812dc,0x449)](process[_0x56dad6(0x5c2,_0x576587._0x1428c2,0x316,0x477)]['LOCALAPPDATA']||'',_0x27d09b(0x6e9,0x642,0x575,_0x576587._0x519035),_0x27d09b(_0x576587._0x1b470c,_0x576587._0x14c315,0x563,_0x576587._0x3cd886),'Packages'),_0x83abdf[_0x27d09b(0x3da,0x2c7,_0x576587._0x10b9ed,_0x576587._0x58cdcc)](process[_0x56dad6(0x5a7,_0x576587._0x5e2d65,0x4c6,0x477)][_0x27d09b(0x3f3,_0x576587._0x5147cb,0x32a,0x2b7)]||'',_0x56dad6(_0x576587._0x5dc9d9,0x2ef,_0x576587._0x462842,0x3c1),_0x27d09b(_0x576587._0x38012f,_0x576587._0x486ab3,0x554,0x62a)),_0x83abdf[_0x27d09b(_0x576587._0x5c852d,_0x576587._0x335442,0x436,0x4f6)](process[_0x27d09b(0x3f6,0x5dd,0x464,0x2f2)]['ProgramFiles(x86)']||'',_0x56dad6(0x2ba,0x447,0x261,0x3c1),_0x56dad6(_0x576587._0x1d2a32,0x45f,_0x576587._0x12963e,0x567))]:[_0x56dad6(_0x576587._0x5e0216,_0x576587._0x1ee878,_0x576587._0x40a74e,_0x576587._0x3e1da6),_0x56dad6(0x414,_0x576587._0x163c84,0x3f3,_0x576587._0x1ee853),_0x56dad6(0x1c5,_0x576587._0x3fb4b6,_0x576587._0x5412bd,0x2d4),_0x56dad6(_0x576587._0x56fb51,_0x576587._0x471c32,0x650,0x509)];function _0x56dad6(_0x1136f8,_0x325ba6,_0x4c7492,_0x22bda0){return _0x4bd068(_0x4c7492,_0x22bda0- -0x111,_0x4c7492-_0xf76420._0x47ef31,_0x22bda0-_0xf76420._0x6185b0);}for(const _0x1bcfa4 of _0xa4670f){if(existsSync(_0x1bcfa4))return _0x1bcfa4;}try{const _0x3c9b71=_0x57ff2a?_0x56dad6(_0x576587._0x599632,0x420,0x4a3,0x511):_0x27d09b(_0x576587._0x16d93d,0x2ed,0x43d,_0x576587._0x3ea466),_0x2833f5=execSync(_0x3c9b71,{'encoding':_0x56dad6(0x56a,0x3d6,0x5fb,0x4a0),'stdio':[_0x56dad6(0x34e,_0x576587._0x382538,0x392,0x4a4),_0x27d09b(_0x576587._0x6bbee8,_0x576587._0x4d4eac,_0x576587._0x3ea466,0x454),_0x56dad6(_0x576587._0x1a4292,0x2dc,_0x576587._0x3f2613,_0x576587._0x29b723)]})[_0x27d09b(0x22d,_0x576587._0x4366a6,0x2a7,_0x576587._0x184364)]()[_0x27d09b(_0x576587._0x33acd0,0x263,0x3c4,_0x576587._0x5e02dc)](/\r?\n/)[0x0];if(_0x2833f5&&existsSync(_0x2833f5))return _0x2833f5;}catch{return null;}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0xf57946&&existsSync(_0xf57946))return cachedRgPath=_0xf57946,_0xf57946;const _0x26cf77=findSystemRipgrep();if(!_0x26cf77)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x26cf77,_0x26cf77;}async function*files(_0x4441d2){const _0x117670={_0x3bf912:0x19f,_0x1533e1:0x5a,_0x2d3442:0x198,_0x3a9221:0x30,_0x2663e8:0x24,_0x37df31:0x157,_0x488ee6:0xd4,_0xc06cb:0x141,_0x467984:0xd9,_0x3fc26b:0xf4,_0x372074:0x24,_0x4f5bf3:0x59,_0x240507:0x87,_0x481afa:0x10e,_0x12ee74:0x3d,_0x43edd3:0xdc,_0xa8dfa7:0xce,_0x4261f4:0x20a,_0x4220c7:0x69,_0x37bd84:0x1fa,_0x35829d:0x2e,_0x25f5ce:0x108,_0x192bd1:0x1d,_0x2b175e:0x12d,_0x3ed82f:0x161,_0x13fa47:0x177,_0x3b2084:0xd3,_0x51e05c:0x1cd,_0x46263b:0x21d,_0x42d766:0x341,_0xa170f1:0x2c,_0x5178cd:0x1b,_0xaca78b:0x150,_0xe9898b:0x4b,_0x6afae9:0xa0,_0x375109:0x1f2,_0x847005:0x178,_0x124af9:0x7b,_0x37b35b:0x26,_0x56a14c:0x45},_0xef8297={_0x3c8afb:0xff,_0x1b5111:0x2},_0x59d8d6={_0x4caae2:0x14c,_0x59e8df:0x1ac};function _0x2767e7(_0x432be5,_0x5bb786,_0x1e9cb6,_0xe9e9ac){return _0x154255(_0x432be5,_0x5bb786-0x5e,_0x1e9cb6- -_0x59d8d6._0x4caae2,_0xe9e9ac-_0x59d8d6._0x59e8df);}function _0x1ced78(_0x52d00f,_0x569cc6,_0x448a43,_0x4bfb32){return _0x154255(_0x52d00f,_0x569cc6-_0xef8297._0x3c8afb,_0x448a43- -_0xef8297._0x1b5111,_0x4bfb32-0x105);}const _0xfb452e=await filepath(),_0x5b28de=await _0x147688(_0x4441d2[_0x2767e7(_0x117670._0x3bf912,-0xfa,_0x117670._0x1533e1,-0x6b)])[_0x2767e7(_0x117670._0x2d3442,0x2e,0x35,0x16a)](()=>null);if(!_0x5b28de?.['isDirectory']())throw Object[_0x1ced78(0x1cb,0x223,0x1ee,0x1da)](new Error(_0x2767e7(-0x13b,_0x117670._0x3a9221,_0x117670._0x2663e8,-_0x117670._0x37df31)+_0x4441d2['cwd']+'\x27'),{'code':_0x1ced78(_0x117670._0x488ee6,0x1f0,0x1b9,_0x117670._0xc06cb)});const _0x423881=[_0x1ced78(_0x117670._0x467984,0x121,_0x117670._0x3fc26b,_0x117670._0x1533e1),_0x2767e7(-_0x117670._0x372074,-0x80,-0x1c,0xfa),_0x2767e7(-_0x117670._0x4f5bf3,-_0x117670._0x240507,-_0x117670._0x481afa,-_0x117670._0x12ee74),'--glob=!.git/*'];for(const _0x5d79fc of _0x4441d2[_0x2767e7(-_0x117670._0x43edd3,-_0x117670._0xa8dfa7,0x9a,_0x117670._0x4261f4)]??[]){_0x423881[_0x2767e7(-0xcf,0x4,-0x125,-0x27f)](_0x1ced78(_0x117670._0x4220c7,_0x117670._0x37bd84,0xd5,-_0x117670._0x35829d)+_0x5d79fc);}const _0x4fbb83=_0x2cb52a(_0xfb452e,_0x423881,{'cwd':_0x4441d2['cwd'],'stdio':[_0x2767e7(_0x117670._0x25f5ce,-0x65,_0x117670._0x192bd1,_0x117670._0x2b175e),_0x2767e7(_0x117670._0x3ed82f,_0x117670._0x13fa47,_0x117670._0x3b2084,0x118),_0x1ced78(0xf2,_0x117670._0x51e05c,_0x117670._0x46263b,_0x117670._0x42d766)]});let _0x4e9f39='';for await(const _0x21a9ce of _0x4fbb83[_0x2767e7(0x51,_0x117670._0xa170f1,-_0x117670._0x5178cd,-0xb3)]??[]){_0x4e9f39+=_0x21a9ce['toString']();const _0x4cf285=_0x4e9f39[_0x1ced78(0x262,0x269,_0x117670._0xaca78b,0x1c9)](/\r?\n/);_0x4e9f39=_0x4cf285[_0x1ced78(0x76,_0x117670._0xe9898b,0x26,_0x117670._0x6afae9)]()??'';for(const _0x2b344b of _0x4cf285){if(_0x2b344b[_0x2767e7(-_0x117670._0x375109,0x27,-0x10f,-0x6f)]>0x0)yield _0x2b344b;}}_0x4e9f39[_0x1ced78(0xf9,_0x117670._0x847005,0x33,_0x117670._0x124af9)]()['length']>0x0&&(yield _0x4e9f39[_0x2767e7(-_0x117670._0x37b35b,-_0x117670._0x56a14c,-0x117,-0x1d)]());}function parseMatchLine(_0x4b00aa,_0x19d379){const _0x3d0ed6={_0x20a953:0x441,_0xd41fc3:0x397,_0x42fc55:0x4c2,_0x17653b:0x534,_0x2dd7ec:0x75f,_0x2d34d9:0x641,_0xdae6d:0x714,_0x19497d:0x72f,_0x98e36f:0x6da,_0xea7e15:0x7d8,_0x343db0:0x751,_0x56f8eb:0x789,_0x23ca94:0x787,_0xa0917a:0x76a,_0x233167:0x664,_0x2fa499:0x5e9,_0x4898e0:0x609,_0x53187b:0x6f3,_0x2ee5a4:0x690,_0x161828:0x667,_0x5aca16:0x579},_0x3b60eb={_0x3f359b:0xa4},_0x459f4c={_0x17ae9b:0xe3,_0x3c68cc:0x42b};function _0x264fe3(_0x5c16c6,_0x5de7c0,_0x1f7e18,_0x41d002){return _0x154255(_0x5c16c6,_0x5de7c0-_0x459f4c._0x17ae9b,_0x5de7c0-_0x459f4c._0x3c68cc,_0x41d002-0x112);}if(!_0x4b00aa||_0x4b00aa==='--')return null;const _0x31d8ef=_0x4b00aa[_0x264fe3(0x506,0x57d,0x61c,0x6a5)]('|');if(_0x19d379&&_0x31d8ef[_0x3741e0(_0x3d0ed6._0x20a953,0x3a7,_0x3d0ed6._0xd41fc3,_0x3d0ed6._0x42fc55)]>=0x4&&Number['isFinite'](Number[_0x264fe3(0x613,0x641,_0x3d0ed6._0x17653b,_0x3d0ed6._0x2dd7ec)](_0x31d8ef[0x2]??'',0xa))){const _0x353535=Number[_0x264fe3(0x599,_0x3d0ed6._0x2d34d9,_0x3d0ed6._0xdae6d,0x6a7)](_0x31d8ef[0x1]??'',0xa);if(!Number[_0x264fe3(_0x3d0ed6._0x19497d,_0x3d0ed6._0x98e36f,_0x3d0ed6._0xea7e15,_0x3d0ed6._0x343db0)](_0x353535)||!_0x31d8ef[0x0])return null;return{'filePath':_0x31d8ef[0x0],'lineNum':_0x353535,'lineText':_0x31d8ef[_0x264fe3(_0x3d0ed6._0x56f8eb,0x715,_0x3d0ed6._0x23ca94,0x7ff)](0x3)[_0x264fe3(0x475,0x5ef,0x4a3,_0x3d0ed6._0xa0917a)]('|')};}if(_0x31d8ef['length']>=0x3){const _0x4cafd6=Number[_0x3741e0(0x6b5,_0x3d0ed6._0x233167,0x570,0x52c)](_0x31d8ef[0x1]??'',0xa);if(!Number[_0x3741e0(0x4fa,_0x3d0ed6._0x2fa499,_0x3d0ed6._0x4898e0,_0x3d0ed6._0x53187b)](_0x4cafd6)||!_0x31d8ef[0x0])return null;return{'filePath':_0x31d8ef[0x0],'lineNum':_0x4cafd6,'lineText':_0x31d8ef[_0x3741e0(0x741,0x4ff,0x644,_0x3d0ed6._0x2ee5a4)](0x2)[_0x264fe3(_0x3d0ed6._0x161828,0x5ef,0x597,_0x3d0ed6._0x5aca16)]('|'),..._0x19d379?{'isContext':!![]}:{}};}function _0x3741e0(_0x9cc389,_0x5c9a43,_0x543258,_0x14b5ba){return _0x4bd068(_0x9cc389,_0x543258- -0x3c,_0x543258-0x1f2,_0x14b5ba-_0x3b60eb._0x3f359b);}return null;}async function search(_0x3ebe34){const _0x206727={_0x34109f:0x38a,_0x19c0a4:0x5,_0x3c680a:0x5a,_0x48606c:0x93,_0x4f2461:0x14b,_0x141788:0x145,_0x206f61:0x3e,_0x3717d4:0x78,_0x2b703e:0x1ae,_0x56036b:0x79,_0x17fb4a:0x300,_0xdf6918:0x73,_0x27d109:0x162,_0x13f8ae:0x7a,_0x1e6064:0x88,_0x48ebf2:0x114,_0x30982c:0x3eb,_0x56d988:0x1a2,_0x2cdcfe:0x318,_0x2ae306:0x3da,_0x53a33c:0x62,_0x9b12df:0xef,_0x3ae493:0x17,_0x488843:0x67,_0x3c685f:0x131,_0xd7d411:0xda,_0x3373ad:0x7,_0x1ca799:0x43,_0x44992a:0x14,_0x52e98a:0x5fb,_0x5e7bed:0x45d,_0x5b58dd:0x16c,_0x31cb70:0xfe,_0x1134ad:0x5c0,_0x226d6f:0x4a3,_0x1b7df6:0x3a0,_0x55e6cf:0x222,_0x23a363:0x1c3,_0xe54445:0x248,_0x2173e5:0x42a,_0x2bc2c3:0x393,_0x17f8bc:0x27,_0x36595b:0x4f,_0x26fc54:0x48,_0xa5841d:0x119,_0x354595:0x407,_0x2b377b:0x2e0,_0x6639b9:0x118,_0x26c64d:0x16,_0x5ec5f7:0x150,_0x2090f6:0xea,_0x519f78:0xc,_0x355202:0x1f5,_0x58d7d3:0x60},_0x38bdb9={_0xe6441f:0x37,_0x31926f:0xf4,_0x1a4237:0x6,_0x5343a7:0x26e,_0x4f8d3b:0x1c3,_0x385801:0x283,_0x4906b5:0x90,_0x8a5923:0x23,_0x529b81:0x17,_0x531f54:0xc6,_0x1a6cc6:0xd8,_0x128292:0x310,_0x13136f:0x34a,_0x50be4a:0x350},_0xcc4144={_0x36b0a5:0x91},_0x53791e={_0x544cd7:0xc8,_0x34153b:0x3c,_0x2e0955:0xcb},_0x578bfc={_0x30141e:0x94,_0x3a40e3:0x19c,_0x195299:0xa9},_0xa03ad2={_0x469819:0xd9,_0x4387cf:0x22e,_0x36a0a2:0x15e},_0x1a4bdd=await filepath();if(_0x3ebe34['file']){const _0x151b70=await _0x147688(_0x3ebe34[_0x4d413d(_0x206727._0x34109f,0x35b,0x2e0,0x41d)])[_0x124204(-0xad,-0x13d,-_0x206727._0x19c0a4,_0x206727._0x3c680a)](()=>null);if(!_0x151b70?.[_0x124204(-_0x206727._0x48606c,-0x147,-_0x206727._0x4f2461,-_0x206727._0x141788)]())throw Object[_0x124204(-_0x206727._0x206f61,_0x206727._0x3717d4,-0xca,0x83)](new Error(_0x124204(-_0x206727._0x2b703e,-_0x206727._0x56036b,-0x1ae,-_0x206727._0x17fb4a)+_0x3ebe34['file']+'\x27'),{'code':_0x124204(-_0x206727._0xdf6918,-_0x206727._0x27d109,_0x206727._0x13f8ae,-0x15a)});}else{const _0xd9b2c0=await _0x147688(_0x3ebe34[_0x124204(-_0x206727._0x1e6064,-_0x206727._0x48ebf2,-0x2e,0xe7)])[_0x4d413d(_0x206727._0x30982c,0x48e,0x31d,_0x206727._0x56d988)](()=>null);if(!_0xd9b2c0?.['isDirectory']())throw Object[_0x124204(-_0x206727._0x206f61,0xb4,0x5f,0x139)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x3ebe34[_0x4d413d(_0x206727._0x2cdcfe,0x277,0x342,_0x206727._0x2ae306)]+'\x27'),{'code':'ENOENT'});}const _0x324e98=['-nH',_0x124204(-0xf8,-_0x206727._0x53a33c,-_0x206727._0x9b12df,-0x202),_0x124204(-0x68,_0x206727._0x3ae493,_0x206727._0x488843,-_0x206727._0x3c685f),'--regexp',_0x3ebe34[_0x124204(-_0x206727._0xd7d411,-_0x206727._0x3373ad,-_0x206727._0x1ca799,-_0x206727._0x44992a)]];function _0x124204(_0x46ea48,_0x14339c,_0x31de0a,_0x522a02){return _0x154255(_0x522a02,_0x14339c-_0xa03ad2._0x469819,_0x46ea48- -_0xa03ad2._0x4387cf,_0x522a02-_0xa03ad2._0x36a0a2);}const _0x5e0cfe=typeof _0x3ebe34[_0x4d413d(0x369,_0x206727._0x52e98a,0x4a3,_0x206727._0x5e7bed)]===_0x124204(0x3a,_0x206727._0x5b58dd,0x1ab,_0x206727._0x31cb70)&&_0x3ebe34[_0x4d413d(0x3d5,_0x206727._0x1134ad,_0x206727._0x226d6f,_0x206727._0x1b7df6)]>0x0;_0x5e0cfe&&_0x324e98[_0x4d413d(0x23d,_0x206727._0x55e6cf,_0x206727._0x23a363,_0x206727._0xe54445)]('-C',String(_0x3ebe34[_0x4d413d(_0x206727._0x2173e5,_0x206727._0x2bc2c3,0x4a3,0x4cc)]),_0x124204(_0x206727._0x17f8bc,-0x125,_0x206727._0xdf6918,-_0x206727._0x36595b));_0x3ebe34[_0x124204(-_0x206727._0x26fc54,-0x181,0xa5,_0x206727._0xa5841d)]&&!_0x3ebe34[_0x4d413d(_0x206727._0x354595,0x1c4,_0x206727._0x2b377b,0x41a)]&&_0x324e98['push'](_0x4d413d(0x4f1,0x493,0x42c,0x4e1),_0x3ebe34[_0x124204(-0x48,-_0x206727._0x6639b9,_0x206727._0x26c64d,-_0x206727._0x5ec5f7)]);function _0x4d413d(_0x284214,_0x42d78b,_0x46e3d6,_0x20eac6){return _0x154255(_0x284214,_0x42d78b-_0x578bfc._0x30141e,_0x46e3d6-_0x578bfc._0x3a40e3,_0x20eac6-_0x578bfc._0x195299);}return _0x324e98['push'](_0x3ebe34[_0x124204(-_0x206727._0x2090f6,_0x206727._0x519f78,-0x7d,-_0x206727._0x355202)]??_0x3ebe34[_0x124204(-0x88,0xa2,_0x206727._0x58d7d3,-0x1e0)]),await new Promise((_0x5dc0fa,_0x415eb4)=>{const _0xf79973={_0x525c6c:0x180},_0x18d8a8={_0xf754be:0x4d1,_0x34cb90:0x531,_0x52b474:0x592,_0x224f14:0x590,_0x58d0dc:0x28f,_0x222f73:0x152,_0x281d62:0x1b6,_0x1e4824:0x17a},_0x50346c={_0x321c07:0xbd,_0x500f87:0x1,_0xddee7e:0x742},_0x5a22b0={_0x4c1f0e:0x2,_0x4954a1:0x43},_0x244c5c=_0x2cb52a(_0x1a4bdd,_0x324e98,{'cwd':_0x3ebe34[_0x14dfad(-_0x38bdb9._0xe6441f,0x7e,_0x38bdb9._0x31926f,_0x38bdb9._0x1a4237)],'stdio':['ignore',_0x14dfad(_0x38bdb9._0x5343a7,0xf7,0x249,-0x76),_0x14dfad(0x18,0xf7,_0x38bdb9._0x4f8d3b,0x1cb)]});let _0x2e56b1='',_0x19601f='';function _0x14dfad(_0x3edec5,_0x5ef138,_0x3c3371,_0x3d3b7b){return _0x124204(_0x5ef138-0x106,_0x5ef138-_0x5a22b0._0x4c1f0e,_0x3c3371-_0x5a22b0._0x4954a1,_0x3d3b7b);}_0x244c5c[_0x1e96ca(-0x2e8,-_0x38bdb9._0x385801,-_0x38bdb9._0x4906b5,-0x16f)]?.['on']('data',_0x17315f=>{const _0x81d93e={_0x7c4f0e:0xa,_0x16587d:0x122};function _0xf82156(_0x4a16b2,_0x5f4167,_0x1c8b18,_0x30c812){return _0x14dfad(_0x4a16b2-_0x81d93e._0x7c4f0e,_0x4a16b2-0x6c,_0x1c8b18-_0x81d93e._0x16587d,_0x5f4167);}_0x2e56b1+=_0x17315f[_0xf82156(_0x53791e._0x544cd7,-_0x53791e._0x34153b,0x153,_0x53791e._0x2e0955)]();}),_0x244c5c[_0x1e96ca(-_0x38bdb9._0x8a5923,-0x4d,-0x2e,_0x38bdb9._0x529b81)]?.['on']('data',_0x183395=>{const _0x54d3b8={_0xf87152:0xdd};function _0x355140(_0x59a052,_0x1d7306,_0x5954fb,_0x57a731){return _0x1e96ca(_0x59a052-_0x54d3b8._0xf87152,_0x59a052,_0x5954fb-0x183,_0x5954fb-0x77);}_0x19601f+=_0x183395[_0x355140(0x75,-0xa3,-0xa5,_0xcc4144._0x36b0a5)]();}),_0x244c5c['on'](_0x14dfad(-0x4a,_0x38bdb9._0x531f54,-0x67,_0x38bdb9._0x1a6cc6),_0x495548=>{function _0xd8a3fc(_0x5ada89,_0x96b971,_0x2cc8d3,_0x2491d4){return _0x1e96ca(_0x5ada89-0xb4,_0x5ada89,_0x2cc8d3-0x17e,_0x2491d4-0x3dd);}if(_0x495548===0x1&&_0x2e56b1===''){_0x5dc0fa([]);return;}if(_0x495548!==0x0&&_0x495548!==0x1){_0x415eb4(new Error('ripgrep\x20failed:\x20'+_0x19601f));return;}const _0x40556e=_0x3ebe34[_0x42c784(_0x18d8a8._0xf754be,_0x18d8a8._0x34cb90,_0x18d8a8._0x52b474,_0x18d8a8._0x224f14)]??0x64;function _0x42c784(_0x596bdd,_0x3de4ca,_0x52e4ba,_0x45d9e9){return _0x1e96ca(_0x596bdd-_0x50346c._0x321c07,_0x596bdd,_0x52e4ba-_0x50346c._0x500f87,_0x45d9e9-_0x50346c._0xddee7e);}const _0x202fbe=[];for(const _0x1f6d8f of _0x2e56b1[_0xd8a3fc(0x23c,0x2bb,0x1e0,_0x18d8a8._0x58d0dc)](/\r?\n/)){if(_0x202fbe[_0xd8a3fc(_0x18d8a8._0x222f73,0x1fd,_0x18d8a8._0x281d62,_0x18d8a8._0x1e4824)]>=_0x40556e)break;const _0x45d4de=parseMatchLine(_0x1f6d8f,_0x5e0cfe);if(_0x45d4de)_0x202fbe['push'](_0x45d4de);}_0x5dc0fa(_0x202fbe);});function _0x1e96ca(_0x233f82,_0x161b03,_0x3dfd76,_0x973cd8){return _0x4d413d(_0x161b03,_0x161b03-0xb1,_0x973cd8- -0x43c,_0x973cd8-_0xf79973._0x525c6c);}_0x244c5c['on'](_0x14dfad(_0x38bdb9._0x128292,0x1e4,_0x38bdb9._0x13136f,_0x38bdb9._0x50be4a),_0x415eb4);});}function createGlobTool(_0x8e9c37={}){const _0x561536={_0x584b9c:0x16c,_0x3d8083:0x2bc,_0x59799a:0xcd,_0x293432:0x2c,_0x5a7b02:0xb9,_0x29109d:0x43,_0x443fef:0xbb,_0x4f816a:0x155,_0x3b57d0:0x142,_0x39e34a:0xe8,_0x21321d:0x251,_0x5a57c3:0x2e7,_0x137968:0xe5,_0x126c28:0x225,_0x4fabfb:0x311,_0x323e26:0x337,_0x55f4f8:0x2c},_0x369164={_0x448af4:0x25f,_0x7ece55:0x62,_0x46e176:0x226,_0x1ef195:0x27b,_0x21f0e2:0x3b7,_0x2da83e:0x1f5,_0x1f8846:0x14b,_0x59a874:0xd0,_0x193657:0x3bf,_0x3a3745:0x41f,_0x59a96a:0x2fb,_0x1d6cf4:0x36c,_0x3471cc:0x1e2,_0x1ff4dc:0x3e1,_0x27426e:0x465,_0x42291c:0x443,_0x481ce1:0x2f6,_0x3f1254:0x2f3,_0x276d72:0x5a,_0x2760f9:0x192,_0x50dc97:0x45c,_0x5acc58:0x33f,_0x12ad71:0x445,_0x5eeb6b:0x16e,_0x531f96:0x212,_0xc8c6e3:0x7e,_0x312df0:0x1f8,_0x411b95:0x399,_0x415d10:0x1a6,_0x630a0a:0x225,_0x197a17:0x124,_0x289229:0xbf,_0x3f7416:0xbb,_0x4fd1ca:0x2a5,_0x98910f:0x30d,_0x9b59c1:0x2e8,_0x25a62b:0x8b,_0x59a5e8:0xe1},_0xf9f67f={_0x4b5a05:0x54},_0x645a9b={_0x539d4b:0x19f,_0x120e6c:0xeb},_0x319151=_0x58635a[_0x593656(_0x561536._0x584b9c,0x152,_0x561536._0x3d8083,0x84)](_0x8e9c37[_0x4fbc23(-_0x561536._0x59799a,-0xee,-_0x561536._0x293432,-0x103)]??process[_0x4fbc23(_0x561536._0x5a7b02,_0x561536._0x29109d,_0x561536._0x443fef,_0x561536._0x4f816a)]()),_0x3a8238=_0x8e9c37['allowedDirs']??[];function _0x4fbc23(_0x65175e,_0x1e79a8,_0x4bab17,_0x3245d7){return _0x154255(_0x1e79a8,_0x1e79a8-_0x645a9b._0x539d4b,_0x4bab17- -_0x645a9b._0x120e6c,_0x3245d7-0xa3);}const _0x2b0db3=_0x8e9c37[_0x593656(_0x561536._0x3b57d0,_0x561536._0x39e34a,-0x37,0x2a1)]??0x64,_0x3bcf04=_0x8e9c37[_0x593656(_0x561536._0x21321d,0x2e6,0x3c4,0x202)]??_0x4fbc23(_0x561536._0x5a57c3,0xe3,0x212,_0x561536._0x137968);function _0x593656(_0x47485b,_0x4713f0,_0x27498a,_0x48a358){return _0x154255(_0x48a358,_0x4713f0-0xac,_0x47485b-_0xf9f67f._0x4b5a05,_0x48a358-0x1a5);}return defineTool({'name':_0x3bcf04,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x4fbc23(_0x561536._0x126c28,_0x561536._0x4fabfb,0x1f4,_0x561536._0x323e26),'properties':{'pattern':{'type':_0x4fbc23(-_0x561536._0x55f4f8,0x26,-0x63,0x3f)},'path':{'type':'string'},'limit':{'type':'number'}},'required':['pattern']},async *'execute'(_0xd31db3){const _0x149fca={_0x2333a6:0x192,_0x6a68cb:0x8c},_0x2e146f={_0x199116:0x50,_0x485336:0x7c,_0x27ecf7:0x1d5};if(_0xd31db3[_0x378e87(_0x369164._0x448af4,0x2a0,0x368,0x1f8)][_0x378e87(_0x369164._0x7ece55,_0x369164._0x46e176,0xb4,0xd9)]()[_0x4c9682(_0x369164._0x1ef195,_0x369164._0x21f0e2,_0x369164._0x2da83e,0x14d)]===0x0)throw new ToolExecutionError(_0x378e87(0x1ad,-0x40,_0x369164._0x1f8846,_0x369164._0x59a874),{});const _0x17d3e8=resolveAllowedPath(_0x319151,_0x3a8238,_0xd31db3['path']??'.'),_0x394aec=await _0x4ef4d0(_0x17d3e8)[_0x4c9682(_0x369164._0x193657,_0x369164._0x3a3745,_0x369164._0x59a96a,_0x369164._0x1d6cf4)](()=>null);if(!_0x394aec?.[_0x378e87(0x2d8,_0x369164._0x3471cc,0x2b4,0x1a6)]())throw new ToolExecutionError(_0x4c9682(_0x369164._0x1ff4dc,_0x369164._0x27426e,0x40d,0x2e2)+(_0xd31db3[_0x4c9682(0x48d,0x5a9,0x553,_0x369164._0x42291c)]??'.'),{'path':_0xd31db3[_0x378e87(0x1de,_0x369164._0x481ce1,0x26f,_0x369164._0x3f1254)]??'.'});const _0x4b75dd=_0xd31db3[_0x378e87(_0x369164._0x276d72,0x1f0,0x144,_0x369164._0x2760f9)]??_0x2b0db3,_0x49211b=Math[_0x378e87(0x399,0x240,_0x369164._0x50dc97,_0x369164._0x5acc58)](0x1,Math[_0x4c9682(0x37e,_0x369164._0x12ad71,0x42f,0x21d)](_0x4b75dd)),_0xff0e97=[];let _0x1e3172=![];for await(const _0x23a07f of files({'cwd':_0x17d3e8,'glob':[_0xd31db3[_0x378e87(_0x369164._0x5eeb6b,_0x369164._0x531f96,_0x369164._0xc8c6e3,_0x369164._0x312df0)]]})){if(_0xff0e97['length']>=_0x49211b){_0x1e3172=!![];break;}const _0x49e1c3=await _0x4ef4d0(_0x58635a['join'](_0x17d3e8,_0x23a07f))[_0x378e87(0x336,_0x369164._0x411b95,_0x369164._0x415d10,_0x369164._0x630a0a)](()=>null);_0xff0e97[_0x378e87(0x156,_0x369164._0x197a17,0x16b,0xcb)]({'path':_0x23a07f,'mtime':_0x49e1c3?.[_0x378e87(0x5f,-0x6c,0xfc,_0x369164._0x289229)]??0x0});}_0xff0e97['sort']((_0x32d119,_0x264b92)=>_0x264b92[_0x4c9682(0x510,0x495,0x522,0x47f)]-_0x32d119[_0x4c9682(0x510,0x4d3,0x44f,0x622)]);const _0xb27255=_0xff0e97[_0x378e87(0xa0,0x30,_0x369164._0x3f7416,0x118)](_0x280c6a=>_0x280c6a['path']);function _0x378e87(_0x3424cd,_0x4e4b74,_0x326549,_0x5783be){return _0x593656(_0x5783be-_0x2e146f._0x199116,_0x4e4b74-_0x2e146f._0x485336,_0x326549-_0x2e146f._0x27ecf7,_0x326549);}function _0x4c9682(_0x16a9f6,_0x57a49a,_0x4e3dc5,_0x59c503){return _0x593656(_0x16a9f6-0x1ea,_0x57a49a-_0x149fca._0x2333a6,_0x4e3dc5-_0x149fca._0x6a68cb,_0x4e3dc5);}const _0x3b9df0=_0xb27255[_0x4c9682(_0x369164._0x1ef195,_0x369164._0x4fd1ca,_0x369164._0x98910f,0x2d0)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0xd31db3[_0x378e87(0x25b,0x98,0xf8,0x1f8)]:''+_0xb27255['join']('\x0a')+(_0x1e3172?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');return yield createToolOutput(_0x3b9df0,{'pattern':_0xd31db3[_0x378e87(_0x369164._0x9b59c1,_0x369164._0x197a17,0x17e,_0x369164._0x312df0)],'searchPath':_0x58635a['relative'](_0x319151,_0x17d3e8)||'.','matches':_0xb27255,'count':_0xb27255[_0x378e87(0x3b,_0x369164._0x25a62b,-0x8c,_0x369164._0x59a5e8)],'truncated':_0x1e3172}),void 0x0;}});}import{stat as _0x4115b6}from'fs/promises';import*as _0xcbdae4 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x1b3bc6={}){const _0x6a5d56={_0x2bca1f:0x1df,_0x4d1faa:0x25c,_0x2d1f34:0x49,_0x440146:0xb8,_0x576df9:0x67,_0x1e2822:0x289,_0x3b3d63:0x14d,_0x57d5c0:0xa6,_0x23af9c:0x101,_0x15e5c2:0x183,_0x4ea6bb:0x82,_0x3cecdf:0x103,_0x3c9ddd:0x29b,_0x5c0151:0x167,_0x1ce0ee:0x21f,_0x2e8cfa:0x110,_0x1b7a37:0x1b2,_0x4cc2ad:0x72,_0x7124:0x79,_0x511e7b:0x18a,_0x4392f9:0x171},_0x1b8db6={_0x18f9b6:0x2dc,_0x2fbd5f:0x372,_0x1c0ab8:0x11,_0x5f4354:0x145,_0x9d1dd3:0x221,_0x1b03b3:0x292,_0x5e0bdb:0x5d0,_0x3d8d4c:0x197,_0x347878:0x370,_0x42bfe9:0x295,_0x3d8a9a:0x55a,_0x2d8a08:0x536,_0x289de0:0x58b,_0x20adbe:0x2dc,_0x430fc8:0x31a,_0x531c4c:0x395,_0x52ba34:0x4ba,_0xe48b74:0x4d6,_0x29822f:0x532,_0x1535dd:0x51f,_0x2111a8:0x62b,_0x241292:0x336,_0x3fa671:0x352,_0x1e8dde:0x180,_0x37e3cc:0x1fa,_0xd3aa11:0x470,_0x4269db:0x396,_0x3975b6:0x5d4,_0x31176d:0x1f8,_0x7ec50:0x20f,_0x1f73f5:0x16f,_0x3d7c4f:0x349,_0x192345:0x371,_0x401bca:0x373,_0x3f8a1f:0x32b,_0x1c8358:0x175,_0x5d0c39:0xf9,_0x394c6f:0x115,_0x2d09a0:0x57e,_0x17ec65:0x2f4,_0x5a96bb:0x388,_0x33c15b:0x3eb,_0x2948f4:0x38a,_0x52a676:0x350,_0x37b1b7:0x230,_0x3be271:0x36a,_0x7acded:0x52e,_0x42f288:0x1b5,_0x5c2160:0x1c,_0x5860f0:0x1d6,_0x4f0624:0x137,_0x332441:0x4c8,_0xcd0deb:0x4fd,_0x187509:0x262,_0x95a2b5:0x43b,_0x110b3b:0x559,_0x46b7a5:0x583,_0x4b881a:0x55a,_0x2304f8:0x2ae,_0x111534:0x27b,_0x50a4b9:0x4da,_0x3a63cd:0x747,_0x23b66d:0x1b6,_0xb3530e:0x2a7,_0x17d40d:0x31e,_0x283039:0x356,_0x44ae33:0x20f,_0x50e8bf:0x298,_0x1d4830:0x51f,_0x2002e0:0x233,_0x38de61:0x264,_0x3899a5:0x670,_0x58b307:0x305,_0x152fcf:0x123,_0xaf570:0x200,_0x528732:0x2a1,_0x1ff27a:0x394,_0x1f7722:0x443,_0x2949ba:0x42a,_0x258c5c:0x2c5,_0x371cdd:0x2ab,_0x35a322:0x24e,_0x1c4ee6:0x530,_0x1f0066:0x43e,_0x5d441a:0x448,_0x2375d8:0x345,_0x2a445d:0x31c,_0x58d29c:0x2c7,_0x1a18d3:0x44b},_0x13e2ce={_0x4e8e98:0x1d4},_0x3ca03b={_0x2387e7:0x15d},_0x3330cf=_0xcbdae4[_0x4a7be0(0x1a5,0x17,0xd4,0x7c)](_0x1b3bc6[_0x261f3a(-0x130,-0x152,-_0x6a5d56._0x2bca1f,-_0x6a5d56._0x4d1faa)]??process[_0x261f3a(-_0x6a5d56._0x2d1f34,-0x65,-_0x6a5d56._0x440146,-_0x6a5d56._0x576df9)]()),_0x392bba=_0x1b3bc6[_0x4a7be0(-0x2d,_0x6a5d56._0x1e2822,_0x6a5d56._0x3b3d63,_0x6a5d56._0x57d5c0)]??[],_0x7f316a=_0x1b3bc6[_0x261f3a(-_0x6a5d56._0x23af9c,-0x172,0x68,-_0x6a5d56._0x15e5c2)]??0x64,_0xd2239e=_0x1b3bc6['name']??_0x4a7be0(_0x6a5d56._0x4ea6bb,_0x6a5d56._0x3cecdf,0x1b5,0x326);function _0x4a7be0(_0x4aa8c0,_0x2a34f0,_0x1d5253,_0x4fb046){return _0x154255(_0x2a34f0,_0x2a34f0-0xe,_0x1d5253- -0x44,_0x4fb046-_0x3ca03b._0x2387e7);}function _0x261f3a(_0x59e15d,_0x4ef4d2,_0x2bb9fc,_0x46a5e){return _0x154255(_0x46a5e,_0x4ef4d2-_0x13e2ce._0x4e8e98,_0x59e15d- -0x1ef,_0x46a5e-0x6b);}return defineTool({'name':_0xd2239e,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20or\x20allowed\x20directory\x20file\x20contents.','inputSchema':{'type':_0x4a7be0(0x3eb,0x2b2,_0x6a5d56._0x3c9ddd,0x218),'properties':{'pattern':{'type':_0x261f3a(-_0x6a5d56._0x5c0151,-_0x6a5d56._0x1ce0ee,-0x2c6,-_0x6a5d56._0x2e8cfa)},'path':{'type':_0x4a7be0(0xf3,0x123,0x44,-0x55)},'include':{'type':'string'},'limit':{'type':_0x261f3a(0x79,_0x6a5d56._0x1b7a37,0x7d,_0x6a5d56._0x4cc2ad)},'context':{'type':_0x261f3a(_0x6a5d56._0x7124,_0x6a5d56._0x511e7b,_0x6a5d56._0x4392f9,0xcf)}},'required':['pattern']},async *'execute'(_0x1e05fd){const _0x4d6f10={_0x5c1e9f:0x2e9,_0x62768:0x99,_0x15763a:0x144};if(_0x1e05fd[_0x25531f(0x43b,_0x1b8db6._0x18f9b6,0x35b,_0x1b8db6._0x2fbd5f)][_0x405ea6(_0x1b8db6._0x1c0ab8,_0x1b8db6._0x5f4354,0x216,0x12f)]()[_0x405ea6(_0x1b8db6._0x9d1dd3,_0x1b8db6._0x1b03b3,0x1d6,0x137)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x402917=resolveAllowedPath(_0x3330cf,_0x392bba,_0x1e05fd['path']??'.'),_0x421391=await _0x4115b6(_0x402917)[_0x25531f(0x468,_0x1b8db6._0x5e0bdb,0x463,0x30c)](()=>null),_0x576c56=_0x421391?.[_0x405ea6(_0x1b8db6._0x3d8d4c,0x23c,_0x1b8db6._0x347878,_0x1b8db6._0x42bfe9)]()??![],_0x263ca9=_0x421391?.[_0x25531f(0x3e9,0x508,_0x1b8db6._0x3d8a9a,0x4b0)]()??![];if(!_0x576c56&&!_0x263ca9)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x1e05fd[_0x25531f(_0x1b8db6._0x2d8a08,_0x1b8db6._0x289de0,0x456,0x58d)]??'.'),{'path':_0x1e05fd['path']??'.'});const _0x3be005=_0x1e05fd['limit']??_0x7f316a,_0x119245=Math[_0x405ea6(_0x1b8db6._0x20adbe,_0x1b8db6._0x430fc8,0x223,_0x1b8db6._0x531c4c)](0x1,Math[_0x25531f(0x427,_0x1b8db6._0x52ba34,0x501,0x35d)](_0x3be005)),_0x22e839=await search({'cwd':_0x263ca9?_0x402917:_0xcbdae4[_0x405ea6(0x434,_0x1b8db6._0xe48b74,0x3ad,0x3d1)](_0x402917),'pattern':_0x1e05fd['pattern'],'glob':_0x263ca9?_0x1e05fd[_0x25531f(_0x1b8db6._0x29822f,0x52d,_0x1b8db6._0x1535dd,_0x1b8db6._0x2111a8)]:void 0x0,'limit':_0x119245,'file':_0x576c56?_0x402917:void 0x0,'context':_0x1e05fd[_0x405ea6(_0x1b8db6._0x241292,0x57a,_0x1b8db6._0x3fa671,0x401)]}),_0x275237=new Map();function _0x405ea6(_0x850ecf,_0x576042,_0x172159,_0x43e138){return _0x261f3a(_0x43e138-_0x4d6f10._0x5c1e9f,_0x576042-_0x4d6f10._0x62768,_0x172159-_0x4d6f10._0x15763a,_0x576042);}for(const _0xa8ec21 of _0x22e839){if(!_0x275237[_0x405ea6(0x115,0xfb,0x134,_0x1b8db6._0x1e8dde)](_0xa8ec21[_0x405ea6(0x3b9,0x169,_0x1b8db6._0x37e3cc,0x283)])){const _0xa770ae=await _0x4115b6(_0xa8ec21[_0x25531f(_0x1b8db6._0xd3aa11,0x3be,_0x1b8db6._0x4269db,_0x1b8db6._0x3975b6)])[_0x405ea6(_0x1b8db6._0x31176d,_0x1b8db6._0x7ec50,_0x1b8db6._0x1f73f5,0x27b)](()=>null);_0x275237[_0x405ea6(_0x1b8db6._0x3d7c4f,_0x1b8db6._0x192345,_0x1b8db6._0x401bca,0x25c)](_0xa8ec21[_0x405ea6(0x349,_0x1b8db6._0x3f8a1f,_0x1b8db6._0x1c8358,0x283)],{'matches':[],'mtime':_0xa770ae?.[_0x405ea6(0x221,_0x1b8db6._0x5d0c39,0x13d,_0x1b8db6._0x394c6f)]??0x0});}_0x275237[_0x25531f(0x44d,_0x1b8db6._0x2d09a0,_0x1b8db6._0x17ec65,_0x1b8db6._0x5a96bb)](_0xa8ec21[_0x25531f(0x470,_0x1b8db6._0x33c15b,_0x1b8db6._0x2948f4,_0x1b8db6._0x52a676)])?.[_0x405ea6(0x2a5,_0x1b8db6._0x37b1b7,_0x1b8db6._0x3be271,0x298)]['push'](_0xa8ec21);}const _0x14f776=[..._0x275237['entries']()][_0x405ea6(0x2e6,_0x1b8db6._0x7acded,0x3e0,0x3d2)]((_0x2e08c3,_0xd99f88)=>_0xd99f88[0x1][_0x25531f(0x5b9,0x6f3,0x566,0x5cd)]-_0x2e08c3[0x1][_0x405ea6(0x412,0x35d,0x3b1,0x3cc)]),_0x139166=_0x22e839['filter'](_0x23955c=>!_0x23955c[_0x25531f(0x581,0x50e,0x519,0x636)])[_0x405ea6(0x0,_0x1b8db6._0x42f288,0x115,0x137)],_0x4d9f13=_0x22e839['length']>=_0x119245,_0x3a233c=_0x576c56?_0xcbdae4[_0x25531f(0x5be,0x4dd,0x716,0x60d)](_0x402917):_0x402917;let _0x39c8e9='';if(_0x22e839[_0x405ea6(_0x1b8db6._0x5c2160,_0x1b8db6._0x5860f0,0x1c8,_0x1b8db6._0x4f0624)]===0x0)_0x39c8e9=_0x25531f(0x399,_0x1b8db6._0x332441,_0x1b8db6._0xcd0deb,_0x1b8db6._0x187509)+_0x1e05fd[_0x25531f(_0x1b8db6._0x95a2b5,_0x1b8db6._0x110b3b,_0x1b8db6._0x46b7a5,_0x1b8db6._0x4b881a)];else{_0x39c8e9=_0x405ea6(_0x1b8db6._0x2304f8,0x3c2,_0x1b8db6._0x111534,0x29e)+_0x139166+_0x25531f(0x3b6,0x2a1,0x484,_0x1b8db6._0x50a4b9)+(_0x139166===0x1?'':'es')+'\x0a';for(const [_0x5dfdf3,_0x3da0c5]of _0x14f776){const _0x4d287c=_0x576c56?_0xcbdae4[_0x25531f(0x5cc,_0x1b8db6._0x3a63cd,0x665,0x495)](_0x5dfdf3):_0xcbdae4[_0x405ea6(_0x1b8db6._0x23b66d,0x353,_0x1b8db6._0xb3530e,_0x1b8db6._0x17d40d)](_0x3a233c,_0x5dfdf3);_0x39c8e9+='\x0a'+_0x4d287c+':\x0a';for(const _0x4381a0 of _0x3da0c5[_0x405ea6(_0x1b8db6._0x283039,0x3dd,_0x1b8db6._0x44ae33,_0x1b8db6._0x50e8bf)]){const _0xca914e=_0x4381a0[_0x25531f(0x451,0x53b,0x352,_0x1b8db6._0x1d4830)]['length']>MAX_LINE_LENGTH?_0x4381a0[_0x405ea6(0x2ab,_0x1b8db6._0x2002e0,0x251,_0x1b8db6._0x38de61)][_0x25531f(0x5d1,0x624,_0x1b8db6._0x3899a5,0x516)](0x0,MAX_LINE_LENGTH)+_0x405ea6(_0x1b8db6._0x58b307,_0x1b8db6._0x152fcf,_0x1b8db6._0xaf570,0x223):_0x4381a0['lineText'],_0x35fd18=_0x4381a0[_0x405ea6(0x387,_0x1b8db6._0x528732,_0x1b8db6._0x2fbd5f,_0x1b8db6._0x1ff27a)]?'\x20\x20':'>\x20';_0x39c8e9+=_0x35fd18+_0x25531f(0x4f2,_0x1b8db6._0x1f7722,0x484,_0x1b8db6._0x2949ba)+_0x4381a0[_0x405ea6(0x121,0x32b,0x18e,0x216)]+':\x20'+_0xca914e+'\x0a';}}_0x4d9f13&&(_0x39c8e9+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}function _0x25531f(_0x16e7bf,_0x3a4957,_0x4131d6,_0x25e71c){return _0x261f3a(_0x16e7bf-0x4d6,_0x3a4957-0x88,_0x4131d6-0x61,_0x4131d6);}const _0x4e8232={'searchPath':_0xcbdae4[_0x405ea6(0x205,0x2c0,0x269,0x31e)](_0x3330cf,_0x402917)||'.','pattern':_0x1e05fd[_0x405ea6(_0x1b8db6._0x258c5c,_0x1b8db6._0x371cdd,0x3ad,_0x1b8db6._0x35a322)],'matchCount':_0x139166,'fileCount':_0x275237[_0x25531f(_0x1b8db6._0x1c4ee6,_0x1b8db6._0x3d8a9a,_0x1b8db6._0x1f0066,0x5ee)],'truncated':_0x4d9f13};return _0x263ca9&&_0x1e05fd[_0x405ea6(0x45f,0x33a,_0x1b8db6._0x5d441a,_0x1b8db6._0x2375d8)]!==void 0x0&&(_0x4e8232[_0x405ea6(0x282,0x455,0x3e8,_0x1b8db6._0x2375d8)]=_0x1e05fd['include']),yield createToolOutput(_0x39c8e9[_0x25531f(_0x1b8db6._0x2a445d,_0x1b8db6._0x58d29c,_0x1b8db6._0x1a18d3,0x23a)](),_0x4e8232),void 0x0;}});}function createKillShellTool(_0x11cf8e){const _0x25aa5e={_0xc1e16d:0x2be,_0x173e78:0x174,_0x3f3214:0x3d7,_0x1a649b:0x2a8,_0x3732dc:0x33d,_0x21ad33:0x74,_0x5e784a:0x1b5},_0x5a8382={_0x5bb747:0x4bf,_0x5ecbed:0x451,_0x1b4406:0x395,_0x2ce025:0x9c,_0x598747:0x3,_0xec5844:0x3d,_0x14a5e3:0x7f,_0x1cd662:0xc0,_0x2add8a:0x17e,_0x396a44:0xb3,_0x474dc6:0x248,_0x34e29c:0x28c,_0x29ca01:0x245,_0x590cff:0x3fd,_0x676ee3:0xd3,_0xd7b365:0x106,_0x22ec26:0x1e4,_0x3d34e8:0x2a4,_0x1bd5f0:0x197,_0x55a2c2:0x22},_0x574a40={_0x5ebb6f:0x179};function _0x81391f(_0xc5437f,_0x495eaf,_0xf0fcf1,_0x4a58ad){return _0x154255(_0xf0fcf1,_0x495eaf-_0x574a40._0x5ebb6f,_0x4a58ad-0x13c,_0x4a58ad-0x17);}function _0x35c3fb(_0x176fd0,_0x2eaecd,_0x14a7a0,_0x5de971){return _0x4bd068(_0x2eaecd,_0x14a7a0- -0x56f,_0x14a7a0-0xa5,_0x5de971-0xd7);}const {registry:_0x6bf237}=_0x11cf8e;return defineTool({'name':_0x81391f(0x175,0x2ca,_0x25aa5e._0xc1e16d,_0x25aa5e._0x173e78),'description':_0x81391f(_0x25aa5e._0x3f3214,0x3ac,_0x25aa5e._0x1a649b,_0x25aa5e._0x3732dc),'inputSchema':{'type':'object','properties':{'shellId':{'type':'string'}},'required':[_0x35c3fb(-0x18d,-_0x25aa5e._0x21ad33,-_0x25aa5e._0x5e784a,-0x1d4)]},async *'execute'(_0x33eac2){const _0x50bec4={_0x179212:0x32a,_0x4ce6e1:0xbf},_0x471bcb=_0x6bf237[_0x4cc405(_0x5a8382._0x5bb747,_0x5a8382._0x5ecbed,_0x5a8382._0x1b4406,0x345)](_0x33eac2[_0x170ff5(-0x190,_0x5a8382._0x2ce025,-0xc0,-0x98)]);function _0x170ff5(_0x201e7f,_0x78d752,_0x593c6f,_0x18cecb){return _0x81391f(_0x201e7f-0x1c1,_0x78d752-0x148,_0x201e7f,_0x593c6f- -0x220);}function _0x4cc405(_0x6a5e03,_0xdc0cfb,_0x194c79,_0x5ed84b){return _0x35c3fb(_0x6a5e03-0xcd,_0x194c79,_0xdc0cfb-_0x50bec4._0x179212,_0x5ed84b-_0x50bec4._0x4ce6e1);}return createToolOutput(_0x170ff5(-0xe6,0xeb,_0x5a8382._0x598747,-_0x5a8382._0xec5844)+_0x33eac2[_0x170ff5(-_0x5a8382._0x14a5e3,-0x232,-_0x5a8382._0x1cd662,-_0x5a8382._0x2add8a)]+_0x170ff5(_0x5a8382._0x396a44,0x255,0x1ad,_0x5a8382._0x474dc6)+_0x471bcb[_0x4cc405(_0x5a8382._0x34e29c,0x33b,_0x5a8382._0x29ca01,_0x5a8382._0x590cff)]+').',{'shellId':_0x33eac2[_0x170ff5(-0x25,-0x1d1,-0xc0,0x94)],'status':_0x471bcb[_0x170ff5(_0x5a8382._0x676ee3,0x1a1,_0x5a8382._0xd7b365,_0x5a8382._0x22ec26)],'exitCode':_0x471bcb[_0x4cc405(0x253,_0x5a8382._0x3d34e8,0x2f4,0x3bf)],'signal':_0x471bcb[_0x170ff5(0x40,_0x5a8382._0x1bd5f0,_0x5a8382._0x55a2c2,-0x6a)]});}});}import{readdir as _0x31f326,readFile as _0x31d6ce,stat as _0x3e3904}from'fs/promises';import*as _0x16d56a from'path';import*as _0x42712f from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x1f1211,_0x31c772){const _0x352acd={_0x43136f:0x1fa,_0xc9e122:0x137,_0xd7594a:0x1c1,_0x1c310c:0x242,_0x31872d:0x147,_0x5511d6:0x122,_0x54ce5a:0x16e,_0x428562:0xc4},_0x793ebd={_0x1ae2b0:0x456};if(_0x31c772>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x2aaf15(_0x20ec74,_0x5563f6,_0x2c46e8,_0x3055df){return _0x4bd068(_0x2c46e8,_0x20ec74- -0x359,_0x2c46e8-0x49,_0x3055df-0x193);}function _0x285175(_0x28fc90,_0x30dc6b,_0x22a866,_0x33c940){return _0x4bd068(_0x30dc6b,_0x33c940- -_0x793ebd._0x1ae2b0,_0x22a866-0x1f0,_0x33c940-0xd6);}const _0x251403=await _0x31d6ce(_0x1f1211)[_0x2aaf15(0x1be,_0x352acd._0x43136f,0x270,_0x352acd._0xc9e122)](()=>null);if(!_0x251403||isProbablyBinary(_0x251403))return void 0x0;return _0x251403[_0x2aaf15(_0x352acd._0xd7594a,0x156,_0x352acd._0x1c310c,0x283)](_0x285175(_0x352acd._0x31872d,0xd0,0x105,0x15b))[_0x285175(_0x352acd._0x5511d6,_0x352acd._0x54ce5a,_0x352acd._0x428562,0x92)](/\r?\n/)['length'];}function createLsTool(_0x187f56={}){const _0x198815={_0x248612:0x656,_0x32da50:0x596,_0x5d2873:0x1c3,_0x1b4284:0x18f,_0x46b59e:0x3aa,_0x34bd6d:0x4e7,_0x117ecf:0x415,_0x315584:0x406,_0x428548:0x395,_0x4cb58f:0x28f,_0x368629:0x401,_0xfc3c67:0x412,_0xa8c198:0x2ca,_0x3bd4bf:0x52b,_0x3aeb08:0x43b,_0x5b28b0:0x674,_0xf01c0c:0x56b,_0x67c086:0x7d3},_0x4cbed6={_0x23dd98:0x5a1,_0x4e2010:0x557,_0x17499e:0x562,_0x3b6fd1:0x4a1,_0x20344f:0x5de,_0x7aa484:0x5c1,_0x5b21ca:0x546,_0x30d84b:0x5a3,_0x28501e:0xf7,_0x49726b:0x30,_0x377ec7:0x15,_0x27578e:0x1ca,_0x58ab5f:0xa8,_0x3e7698:0xee,_0x2ba5c2:0x106,_0x5d7c5:0x7f,_0xaf8444:0x509,_0x35504c:0x663,_0x1e2bd0:0x506,_0x5cb4d6:0x5b5,_0x577b28:0x612,_0x58dfbd:0x551,_0x53144e:0x454,_0x574fac:0x323,_0x4be5e8:0x351,_0x3736a9:0x2b0,_0x3e3744:0x181,_0xc8cb58:0x28,_0x31ea13:0x60,_0x1b7c9b:0x186,_0x38c2cf:0x184,_0x5f0d1e:0x12d,_0x4162c7:0x5e0,_0x391324:0x4a7,_0xec50d7:0x8a,_0x5b60b2:0x31a,_0x2ab9b8:0x345,_0x12bd7e:0x3c9,_0x1e30db:0x2b9,_0x44e224:0x345,_0x1c1f6a:0x3b1},_0x4acc26={_0x4b0bc7:0x320,_0x457168:0x3d},_0x33e56f={_0x1131a5:0x17a,_0x23fd28:0x141},_0x1b3a78={_0x86dcca:0x192},_0x4cd35f=_0x16d56a[_0x1bac0a(0x524,0x63d,_0x198815._0x248612,_0x198815._0x32da50)](_0x187f56[_0xc2836d(0x2fc,0x2c3,_0x198815._0x5d2873,_0x198815._0x1b4284)]??process[_0xc2836d(0x3fc,_0x198815._0x46b59e,_0x198815._0x34bd6d,_0x198815._0x117ecf)]());function _0xc2836d(_0x2cf36c,_0x3ba18d,_0xa07667,_0x4b68fa){return _0x4bd068(_0x2cf36c,_0x3ba18d- -_0x1b3a78._0x86dcca,_0xa07667-0xf9,_0x4b68fa-0x110);}function _0x1bac0a(_0x1f9136,_0x4db408,_0x55c794,_0x55fc2d){return _0x154255(_0x55fc2d,_0x4db408-_0x33e56f._0x1131a5,_0x1f9136-0x40c,_0x55fc2d-_0x33e56f._0x23fd28);}const _0x20ed8f=_0x187f56[_0xc2836d(_0x198815._0x315584,_0x198815._0x428548,_0x198815._0x4cb58f,0x2f0)]??[],_0x4bd271=_0x187f56[_0xc2836d(0x2ff,_0x198815._0x368629,0x2ee,0x573)]??'Ls';return defineTool({'name':_0x4bd271,'description':_0xc2836d(_0x198815._0xfc3c67,0x3de,_0x198815._0xa8c198,_0x198815._0x3bd4bf),'inputSchema':{'type':'object','properties':{'path':{'type':_0x1bac0a(0x494,0x337,_0x198815._0x3aeb08,0x324)},'limit':{'type':_0x1bac0a(_0x198815._0x5b28b0,_0x198815._0xf01c0c,_0x198815._0x67c086,0x533)}}},async *'execute'(_0x49ea01){const _0x17d504={_0x177db2:0x104,_0x46419c:0x1bd},_0x51b183=_0x49ea01[_0xe2931a(_0x4cbed6._0x23dd98,0x5f9,_0x4cbed6._0x4e2010,0x6b9)]??'.';function _0xe2931a(_0x2221c6,_0x137b7a,_0x7e22c,_0x69ff37){return _0xc2836d(_0x69ff37,_0x7e22c-_0x17d504._0x177db2,_0x7e22c-0x168,_0x69ff37-_0x17d504._0x46419c);}const _0x185d53=resolveAllowedPath(_0x4cd35f,_0x20ed8f,_0x51b183),_0x2050cc=await _0x3e3904(_0x185d53)[_0xe2931a(0x386,_0x4cbed6._0x17499e,0x489,0x5c0)](()=>null);if(!_0x2050cc?.['isDirectory']())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x51b183,{'path':_0x51b183});const _0x3a97ff=_0x49ea01['limit']??0x3e8,_0x23bc4d=Math[_0xe2931a(0x49d,0x3a4,_0x4cbed6._0x3b6fd1,_0x4cbed6._0x20344f)](Math[_0xe2931a(_0x4cbed6._0x7aa484,_0x4cbed6._0x5b21ca,_0x4cbed6._0x30d84b,0x654)](Math[_0x1b5fdf(0xf8,-_0x4cbed6._0x28501e,-_0x4cbed6._0x49726b,0x24)](_0x3a97ff),0x1),0x2710),_0x1c26bf=await _0x31f326(_0x185d53),_0x4bad57=[];for(const _0x5967d8 of _0x1c26bf['slice'](0x0,_0x23bc4d)){const _0x520e9e=_0x16d56a[_0x1b5fdf(-_0x4cbed6._0x377ec7,0x1ae,_0x4cbed6._0x27578e,_0x4cbed6._0x58ab5f)](_0x185d53,_0x5967d8),_0x308759=await _0x3e3904(_0x520e9e)['catch'](()=>null);if(!_0x308759)continue;let _0x51dc06=_0x1b5fdf(-0x44,_0x4cbed6._0x3e7698,_0x4cbed6._0x2ba5c2,0xc4);if(_0x308759[_0x1b5fdf(0x1df,-0xa3,-0x7d,_0x4cbed6._0x5d7c5)]())_0x51dc06='file';else{if(_0x308759[_0x1b5fdf(-0x1f,0x25,0xaa,-0x1a)]())_0x51dc06='directory';else{if(_0x308759[_0xe2931a(_0x4cbed6._0xaf8444,0x6fc,0x5a8,0x702)]())_0x51dc06=_0xe2931a(_0x4cbed6._0x35504c,0x5fe,_0x4cbed6._0x1e2bd0,_0x4cbed6._0x5cb4d6);}}const _0x17c796={'name':_0x5967d8,'type':_0x51dc06,'size':_0x308759[_0xe2931a(0x42f,_0x4cbed6._0x577b28,_0x4cbed6._0x58dfbd,0x5d7)],'mtime':_0x308759[_0xe2931a(_0x4cbed6._0x53144e,0x292,_0x4cbed6._0x574fac,_0x4cbed6._0x4be5e8)],'mode':_0x308759[_0xe2931a(0x333,_0x4cbed6._0x3736a9,0x407,0x3f2)]},_0x4df811=_0x51dc06===_0x1b5fdf(-0xcd,_0x4cbed6._0x3e3744,-0x1,_0x4cbed6._0xc8cb58)?await countTextLines(_0x520e9e,_0x308759[_0x1b5fdf(_0x4cbed6._0x31ea13,_0x4cbed6._0x1b7c9b,_0x4cbed6._0x38c2cf,_0x4cbed6._0x5f0d1e)]):void 0x0;if(_0x4df811!==void 0x0)_0x17c796['lines']=_0x4df811;_0x4bad57['push'](_0x17c796);}_0x4bad57[_0xe2931a(0x5ef,0x46f,_0x4cbed6._0x4162c7,_0x4cbed6._0x391324)]((_0x5ef370,_0x17efb3)=>_0x5ef370[_0xe2931a(0x57a,0x45e,0x505,0x3e8)][_0x1b5fdf(0x3f,0x199,-0x74,0xe9)](_0x17efb3[_0x1b5fdf(0xba,-0x1e,0x21d,0xe1)]));const _0x16753e={'path':_0x51b183,'total':_0x4bad57[_0x1b5fdf(-_0x4cbed6._0xec50d7,-0x133,-0x1bb,-0xdf)],'truncated':_0x1c26bf[_0xe2931a(_0x4cbed6._0x5b60b2,0x4b3,_0x4cbed6._0x2ab9b8,_0x4cbed6._0x12bd7e)]>_0x23bc4d,'entries':_0x4bad57};yield createToolOutput(_0x42712f['stringify'](_0x16753e,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0x51b183,'total':_0x4bad57[_0xe2931a(_0x4cbed6._0x1e30db,0x215,_0x4cbed6._0x44e224,0x492)],'truncated':_0x1c26bf[_0xe2931a(_0x4cbed6._0x1c1f6a,0x281,0x345,0x3a1)]>_0x23bc4d,'limit':_0x23bc4d,'entries':_0x4bad57});function _0x1b5fdf(_0x28f1f1,_0x4f95dd,_0x263532,_0x36db25){return _0xc2836d(_0x28f1f1,_0x36db25- -_0x4acc26._0x4b0bc7,_0x263532-_0x4acc26._0x457168,_0x36db25-0x188);}return void 0x0;}});}import{stat as _0x3d8e10}from'fs/promises';import _0x236bf7 from'path';import{fileURLToPath as _0x1d0be3}from'url';function severityName(_0x22c089){const _0x56cae8={_0x47e33e:0x81,_0x3c7d2c:0x66,_0xabb5c0:0xc6,_0x129eac:0x1a2,_0x286a53:0x176,_0x25195b:0x129,_0x49226e:0x1f,_0x1b0a50:0x16d,_0x94dde:0x134},_0x54bf9b={_0x26a6cb:0x104},_0x404b83={_0xeaf278:0x19c,_0x3f27fb:0x156};function _0x5d3ae7(_0xe594c5,_0x3fe05f,_0xbbf6f1,_0x49fab8){return _0x154255(_0x3fe05f,_0x3fe05f-_0x404b83._0xeaf278,_0xbbf6f1- -0x192,_0x49fab8-_0x404b83._0x3f27fb);}function _0x388cfc(_0x24dd5e,_0xb43a8,_0x34959b,_0x54f65c){return _0x4bd068(_0x24dd5e,_0xb43a8- -0x451,_0x34959b-0x94,_0x54f65c-_0x54bf9b._0x26a6cb);}switch(_0x22c089){case 0x1:return _0x388cfc(0x6b,-_0x56cae8._0x47e33e,-_0x56cae8._0x3c7d2c,-_0x56cae8._0xabb5c0);case 0x2:return _0x388cfc(_0x56cae8._0x129eac,_0x56cae8._0x286a53,0x1bb,0x23c);case 0x3:return _0x5d3ae7(_0x56cae8._0x25195b,-0x13f,0x26,-0x141);case 0x4:return _0x388cfc(-0x67,_0x56cae8._0x49226e,_0x56cae8._0x1b0a50,_0x56cae8._0x94dde);default:return'Diagnostic';}}function formatSingleHover(_0x1cc392){const _0x181af7={_0x5f23fa:0x177,_0x46f57e:0x2d6,_0x26808c:0x3bd,_0x63035d:0x39c,_0x11d576:0x1af,_0xb59384:0xcf,_0x4b7b96:0x187,_0xc78b8a:0x2ce,_0x503ea2:0x2a9,_0x692583:0x48a,_0x407694:0x357,_0x6711bd:0x23a,_0x5f3a7f:0x157,_0x59b663:0x262,_0x44e027:0x2ad,_0x3f3be7:0x556},_0x43c7a8={_0x39afc6:0x124},_0x2e7852={_0x4e3144:0x127},_0x342cbf=_0x1cc392[_0xe5829b(_0x181af7._0x5f23fa,_0x181af7._0x46f57e,_0x181af7._0x26808c,_0x181af7._0x63035d)];if(typeof _0x342cbf===_0x34b771(0x87,_0x181af7._0x11d576,_0x181af7._0xb59384,0x63))return _0x342cbf;function _0x34b771(_0x1deb02,_0x5660e4,_0x436221,_0x498f54){return _0x154255(_0x498f54,_0x5660e4-0xa,_0x5660e4-_0x2e7852._0x4e3144,_0x498f54-0x37);}if(Array[_0x34b771(_0x181af7._0x4b7b96,0x259,0x284,_0x181af7._0xc78b8a)](_0x342cbf))return _0x342cbf[_0xe5829b(0x2e5,_0x181af7._0x503ea2,0x1cc,0x1f7)](_0x26891d=>typeof _0x26891d===_0xe5829b(0x156,0x2bd,0x1ec,0x244)?_0x26891d:_0x26891d['value'])[_0x34b771(0x301,0x3bc,0x325,_0x181af7._0x692583)](Boolean)[_0x34b771(0x44c,0x2eb,0x369,0x1db)]('\x0a\x0a');if('kind'in _0x342cbf)return _0x342cbf[_0xe5829b(0x2c3,_0x181af7._0x407694,0x229,_0x181af7._0x6711bd)];function _0xe5829b(_0x2eff12,_0x289820,_0x1b33f5,_0x48a533){return _0x4bd068(_0x1b33f5,_0x289820- -0x161,_0x1b33f5-_0x43c7a8._0x39afc6,_0x48a533-0x9d);}return _0x342cbf[_0xe5829b(_0x181af7._0x5f3a7f,_0x181af7._0x59b663,0x1f2,_0x181af7._0x44e027)]?'```'+_0x342cbf[_0x34b771(0x1dd,0x154,0x20f,0x197)]+'\x0a'+_0x342cbf['value']+_0xe5829b(0x566,0x40b,0x347,_0x181af7._0x3f3be7):_0x342cbf['value'];}function formatHover(_0x19eb79){const _0x441c64={_0x4d23f7:0x97,_0x55157d:0x4b,_0x1b0d06:0x103,_0xfd370e:0x1fe,_0x2604bd:0x206,_0x2c9d81:0x77,_0x365c19:0x10b,_0x3cc6b0:0x26f,_0x19060e:0x108},_0x19775b={_0x511f41:0x87};function _0x5d8fe6(_0xaaa304,_0x249c2c,_0x18dae6,_0x440320){return _0x4bd068(_0x18dae6,_0x249c2c- -0x24c,_0x18dae6-0x1f2,_0x440320-0xef);}if(_0x19eb79[_0xa90d8a(_0x441c64._0x4d23f7,-_0x441c64._0x55157d,-0x7f,-_0x441c64._0x1b0d06)]===0x0)return _0x5d8fe6(_0x441c64._0xfd370e,_0x441c64._0x2604bd,0x207,0x27f);function _0xa90d8a(_0x2922f5,_0x184cce,_0x5274a3,_0x620a35){return _0x4bd068(_0x2922f5,_0x5274a3- -0x452,_0x5274a3-_0x19775b._0x511f41,_0x620a35-0x76);}return _0x19eb79[_0x5d8fe6(_0x441c64._0x2c9d81,0x1be,_0x441c64._0x365c19,0x2ae)](formatSingleHover)[_0xa90d8a(_0x441c64._0x3cc6b0,0x55,_0x441c64._0x19060e,-0x6c)]('\x0a\x0a---\x0a\x0a');}function locationPath(_0x3207ce){const _0x2eb9a4={_0x4b090a:0x15a},_0x4f8c71={_0x18557a:0x40,_0x2a9f5d:0x124,_0x529e41:0xc8},_0x3607df={_0x5d8d44:0x4b4,_0x1685a4:0x8b};function _0x485ba8(_0x3515db,_0x2e50d3,_0x49513f,_0x23059c){return _0x4bd068(_0x3515db,_0x23059c- -_0x3607df._0x5d8d44,_0x49513f-_0x3607df._0x1685a4,_0x23059c-0xf8);}if(!_0x3207ce[_0x485ba8(0x139,0x5c,_0x2eb9a4._0x4b090a,0x1bf)](_0x485ba8(-0x1b5,-0x10a,-0xd5,-0xe2)))return _0x3207ce;function _0x18cf4a(_0x1f3c4e,_0x4cc462,_0x47efc3,_0x318dda){return _0x154255(_0x1f3c4e,_0x4cc462-_0x4f8c71._0x18557a,_0x318dda- -_0x4f8c71._0x2a9f5d,_0x318dda-_0x4f8c71._0x529e41);}return _0x1d0be3(_0x3207ce);}function formatLocations(_0x1e0562){const _0xf65d89={_0x911bd0:0x10a,_0x315a45:0x111,_0x44c030:0x2e,_0x5b4442:0x13f,_0x19be3d:0x2e6,_0x44f5e7:0x5a1,_0x16ef38:0x4ba,_0x29be37:0x539},_0x4dc291={_0x13893b:0x4d1,_0x4a2af0:0xb7,_0x3bce53:0x84,_0x159524:0x71e},_0xd73711={_0x3a1dba:0x46},_0x40239b={_0x438054:0x2c9,_0x666056:0xde};if(_0x1e0562[_0x383323(0x206,_0xf65d89._0x911bd0,0x132,_0xf65d89._0x315a45)]===0x0)return _0x383323(0x2d,0x18d,_0xf65d89._0x44c030,_0xf65d89._0x5b4442);function _0x383323(_0x2636a4,_0x48aadc,_0x577cdb,_0x3e1c39){return _0x4bd068(_0x2636a4,_0x48aadc- -_0x40239b._0x438054,_0x577cdb-_0x40239b._0x666056,_0x3e1c39-0x40);}function _0x48356d(_0xc04fbc,_0x455b3e,_0x4aa2e3,_0x2af35b){return _0x154255(_0x455b3e,_0x455b3e-_0xd73711._0x3a1dba,_0xc04fbc-0x3e8,_0x2af35b-0x6e);}return _0x1e0562[_0x48356d(0x45c,0x425,_0xf65d89._0x19be3d,_0xf65d89._0x44f5e7)](_0x22d661=>{const _0x5ea25e={_0x8bdf66:0x33,_0x4004c0:0x36};function _0x4b2c39(_0x599ee4,_0x228cef,_0x14d2a4,_0x4e84ba){return _0x48356d(_0x228cef- -0x59d,_0x4e84ba,_0x14d2a4-_0x5ea25e._0x8bdf66,_0x4e84ba-_0x5ea25e._0x4004c0);}const _0xfe5157=_0x22d661['range'][_0x45d349(0x687,0x5cf,_0x4dc291._0x13893b,0x56f)];function _0x45d349(_0x200b1a,_0x1b460a,_0x519c06,_0x4c47f9){return _0x383323(_0x4c47f9,_0x1b460a-0x437,_0x519c06-0x45,_0x4c47f9-0x1a4);}return locationPath(_0x22d661[_0x4b2c39(-_0x4dc291._0x4a2af0,-0xe9,_0x4dc291._0x3bce53,-0xd4)])+':'+(_0xfe5157[_0x45d349(_0x4dc291._0x159524,0x60e,0x495,0x693)]+0x1)+':'+(_0xfe5157['character']+0x1);})[_0x48356d(0x5ac,_0xf65d89._0x16ef38,_0xf65d89._0x29be37,0x6f9)]('\x0a');}function isDocumentSymbol(_0x32d46f){const _0x4a6f56={_0x1198a:0x3c5,_0x210150:0x420},_0x25cef7={_0x129144:0x229,_0x386173:0x1a2};function _0x3a696e(_0x4ad2e1,_0x1a2626,_0x51586b,_0x591bdd){return _0x4bd068(_0x1a2626,_0x4ad2e1- -_0x25cef7._0x129144,_0x51586b-0x1e8,_0x591bdd-_0x25cef7._0x386173);}return _0x3a696e(_0x4a6f56._0x1198a,0x48e,_0x4a6f56._0x210150,0x3bd)in _0x32d46f&&'selectionRange'in _0x32d46f;}function formatSymbols(_0x2dd053){const _0x5f58ff={_0x3c082b:0x4e4,_0xd2cf33:0x38c,_0x40bd6f:0x269,_0x32a519:0x3d1,_0x2cd1a0:0x2c4,_0x39fd34:0x39f,_0x201032:0x3a5,_0x128269:0x28f,_0x4b74a1:0x6bd},_0x57cd11={_0x542700:0x51f,_0x1ad5d5:0x470,_0x4bc767:0x427,_0x3f42b1:0x57e,_0x1c9b31:0x4cb,_0x27bf7d:0x3cb,_0x40db59:0x3e3,_0x300483:0x4ae,_0x2e617c:0x367,_0x559027:0x655,_0x195301:0x53d,_0xc731da:0x31f,_0x4a5b76:0x36d,_0x243125:0x46c,_0x431052:0x5e4,_0x57a5be:0x3e3,_0x1e53ef:0x515,_0x1ff4ef:0x3c2,_0x961800:0x33f,_0x16616d:0x3bd,_0x14b2fd:0x491,_0x23cef9:0x59d,_0x551c39:0x41c,_0x28f0a9:0x570,_0x48d00e:0x49e,_0x3abd8f:0x33e,_0x466d31:0x24f,_0x2956ab:0x388,_0x222dad:0x37b,_0x20714f:0x26b,_0x5ab37a:0x5fe,_0x5af5a1:0x58c,_0x4deeac:0x509,_0x4a1341:0x4b6,_0x387992:0x4b8,_0x39fa89:0x409},_0x13001c={_0x170654:0x135},_0x38169d={_0x113938:0x111,_0x3e3db3:0x41},_0x349c0d={_0x3a9825:0x21b,_0x5b4d2e:0xa1};if(_0x2dd053[_0x1af46e(0x453,_0x5f58ff._0x3c082b,0x613,0x378)]===0x0)return _0x5b6951(_0x5f58ff._0xd2cf33,_0x5f58ff._0x40bd6f,_0x5f58ff._0x32a519,_0x5f58ff._0x2cd1a0);function _0x5b6951(_0xdb19e3,_0xbe99b5,_0x3c9d92,_0x17ab91){return _0x154255(_0xdb19e3,_0xbe99b5-0x178,_0x17ab91-_0x349c0d._0x3a9825,_0x17ab91-_0x349c0d._0x5b4d2e);}function _0x1af46e(_0x4fc8ad,_0x5eea2d,_0x172961,_0x4d3d93){return _0x4bd068(_0x4d3d93,_0x5eea2d-_0x38169d._0x113938,_0x172961-0x1d4,_0x4d3d93-_0x38169d._0x3e3db3);}return _0x2dd053[_0x5b6951(0x2c0,_0x5f58ff._0x39fd34,_0x5f58ff._0x201032,_0x5f58ff._0x128269)](_0x2f56ba=>{const _0x1df127={_0xce1ea:0x13e,_0xa6db59:0xf8,_0xd9cc17:0xfd};if(isDocumentSymbol(_0x2f56ba))return _0x2f56ba[_0x4ca89c(_0x57cd11._0x542700,_0x57cd11._0x1ad5d5,0x410,0x395)]+'\x20('+_0x2f56ba[_0x4ca89c(_0x57cd11._0x4bc767,0x41d,0x596,_0x57cd11._0x3f42b1)]+_0x4ca89c(0x2ae,0x412,0x4b6,0x428)+(_0x2f56ba[_0x4ca89c(0x4e1,_0x57cd11._0x1c9b31,0x434,0x5d2)][_0x2a2385(0x3fd,_0x57cd11._0x27bf7d,0x55c,_0x57cd11._0x40db59)][_0x2a2385(_0x57cd11._0x300483,0x42f,_0x57cd11._0x2e617c,0x422)]+0x1)+':'+(_0x2f56ba[_0x2a2385(0x6e0,_0x57cd11._0x559027,_0x57cd11._0x195301,0x570)][_0x4ca89c(0x1cc,0x33e,_0x57cd11._0xc731da,_0x57cd11._0x4a5b76)][_0x2a2385(_0x57cd11._0x243125,0x5dd,0x624,0x55d)]+0x1)+']';function _0x2a2385(_0x818629,_0x52693a,_0x448b2c,_0x92b2e2){return _0x5b6951(_0x818629,_0x52693a-_0x1df127._0xce1ea,_0x448b2c-_0x1df127._0xa6db59,_0x92b2e2-_0x1df127._0xd9cc17);}function _0x4ca89c(_0x1e7744,_0x4d9d17,_0x2082bc,_0x52f1bf){return _0x5b6951(_0x52f1bf,_0x4d9d17-0x184,_0x2082bc-_0x13001c._0x170654,_0x4d9d17-0x58);}return _0x2f56ba[_0x2a2385(_0x57cd11._0x431052,0x44f,_0x57cd11._0x57a5be,_0x57cd11._0x1e53ef)]+'\x20('+_0x2f56ba[_0x2a2385(0x397,0x49d,0x4ca,0x4c2)]+')\x20'+locationPath(_0x2f56ba[_0x2a2385(_0x57cd11._0x1ff4ef,0x41b,0x4c5,0x4e8)][_0x4ca89c(0x470,_0x57cd11._0x961800,_0x57cd11._0x16616d,_0x57cd11._0x14b2fd)])+':'+(_0x2f56ba[_0x2a2385(0x41a,_0x57cd11._0x23cef9,0x635,0x4e8)][_0x2a2385(0x450,0x599,_0x57cd11._0x551c39,_0x57cd11._0x28f0a9)][_0x4ca89c(_0x57cd11._0x48d00e,_0x57cd11._0x3abd8f,_0x57cd11._0x466d31,_0x57cd11._0x2956ab)][_0x4ca89c(_0x57cd11._0x222dad,0x37d,0x30b,_0x57cd11._0x20714f)]+0x1)+':'+(_0x2f56ba[_0x2a2385(0x3e3,_0x57cd11._0x5ab37a,0x48c,0x4e8)][_0x4ca89c(_0x57cd11._0x5af5a1,0x4cb,_0x57cd11._0x4deeac,_0x57cd11._0x4a1341)]['start'][_0x4ca89c(0x554,_0x57cd11._0x387992,_0x57cd11._0x39fa89,0x60d)]+0x1);})[_0x1af46e(_0x5f58ff._0x4b74a1,0x66b,0x7df,0x64b)]('\x0a');}function formatDiagnostics(_0x21299a){const _0x5af7d9={_0x301c14:0x96,_0x3e19db:0x7a,_0x4c0b3e:0x2f0,_0x29c937:0x269},_0xbcc19b={_0x22517f:0x9c,_0x2ed5ac:0x1,_0x2be877:0x9f,_0x2d65c7:0x57b,_0x502737:0x581,_0x2bcdbd:0xe3,_0x425774:0x81,_0xd8799b:0x14f,_0x4e5c60:0xe4,_0x386157:0x77,_0x144cc0:0x112,_0x37902f:0x114},_0x325572={_0xec97fb:0x198,_0x490073:0xd1},_0x24bcf5={_0x2ae689:0x130,_0x379438:0x16b};if(_0x21299a[_0x5c57a1(-0x74,-_0x5af7d9._0x301c14,_0x5af7d9._0x3e19db,-0xdc)]===0x0)return _0xf0a388(0x2b0,0x308,0x24f,_0x5af7d9._0x4c0b3e);function _0x5c57a1(_0x2843d6,_0x3e3178,_0x31e770,_0x1fcdc6){return _0x154255(_0x31e770,_0x3e3178-_0x24bcf5._0x2ae689,_0x3e3178- -0xd3,_0x1fcdc6-_0x24bcf5._0x379438);}function _0xf0a388(_0x4475e6,_0x1ba02e,_0x31838e,_0x29eec3){return _0x154255(_0x31838e,_0x1ba02e-_0x325572._0xec97fb,_0x4475e6-_0x325572._0x490073,_0x29eec3-0x1b8);}return _0x21299a[_0xf0a388(0x145,_0x5af7d9._0x29c937,0x7b,0x22c)](_0x6ed05a=>{const _0x54afe1={_0x1afc9c:0x1e0,_0x111c2c:0x186},_0x80e8f5=_0x6ed05a[_0x3bf84b(_0xbcc19b._0x22517f,-0x152,-_0xbcc19b._0x2ed5ac,-_0xbcc19b._0x2be877)][_0x75dc4a(0x3f9,0x53e,0x54c,0x4d2)];function _0x3bf84b(_0x4ba38f,_0x2249c2,_0x31861b,_0x34f878){return _0x5c57a1(_0x4ba38f-_0x54afe1._0x1afc9c,_0x31861b- -_0x54afe1._0x111c2c,_0x2249c2,_0x34f878-0x69);}function _0x75dc4a(_0x3c5c94,_0x365960,_0x32cca3,_0x161cc1){return _0x5c57a1(_0x3c5c94-0x1a5,_0x161cc1-0x4da,_0x365960,_0x161cc1-0xb4);}return severityName(_0x6ed05a[_0x75dc4a(_0xbcc19b._0x2d65c7,0x66a,_0xbcc19b._0x502737,0x678)])+'\x20['+(_0x80e8f5[_0x3bf84b(-_0xbcc19b._0x2bcdbd,-_0xbcc19b._0x425774,-_0xbcc19b._0xd8799b,-0x2a5)]+0x1)+':'+(_0x80e8f5[_0x3bf84b(-_0xbcc19b._0x4e5c60,-_0xbcc19b._0x386157,-0x14,_0xbcc19b._0x144cc0)]+0x1)+']\x20'+_0x6ed05a[_0x3bf84b(-0x49,0x1f,-_0xbcc19b._0x37902f,-0x9b)];})['join']('\x0a');}function formatIncomingCalls(_0x2fa1ad){const _0x199801={_0x1310aa:0x2df,_0x30528f:0x268,_0x58bbb9:0x2b7,_0x52b646:0x2b2,_0x2e7d03:0xf6},_0x305f37={_0x24d01f:0x650},_0x4eb1b2={_0x4461be:0x117};function _0x35a772(_0xa54530,_0x2b98dd,_0x85163c,_0x33226a){return _0x4bd068(_0x2b98dd,_0x33226a- -0x3e6,_0x85163c-0x143,_0x33226a-_0x4eb1b2._0x4461be);}if(_0x2fa1ad['length']===0x0)return _0x35a772(_0x199801._0x1310aa,0x282,0x2db,_0x199801._0x30528f);function _0x14b2ad(_0x1fffb8,_0x6f3596,_0x23d2bb,_0x4bf091){return _0x4bd068(_0x1fffb8,_0x23d2bb- -_0x305f37._0x24d01f,_0x23d2bb-0x17a,_0x4bf091-0x15a);}return _0x2fa1ad[_0x14b2ad(-0x123,-_0x199801._0x58bbb9,-0x246,-_0x199801._0x52b646)](_0x5aede7=>_0x5aede7['from'][_0x14b2ad(-0x122,-0x19c,-0xbd,0x55)])[_0x14b2ad(-0x1b8,-0x259,-_0x199801._0x2e7d03,0xb)]('\x0a');}function formatOutgoingCalls(_0x48419f){const _0x374da9={_0x22a981:0x441,_0x2116fe:0x58e,_0xd9d1af:0x31c,_0x3b4167:0x3d9,_0xcada3b:0x1f1,_0x4a01c9:0x456,_0xeac4e6:0xd8,_0xad2b41:0x77},_0x4121bc={_0x4a3435:0x1c9,_0x3a8437:0x404,_0x5b96a7:0x1f3},_0x346b3a={_0x4f0cf6:0x9a,_0x159a49:0x7c};function _0x7a926d(_0x4a5183,_0x3e7b79,_0x2e7ae6,_0x4ef4ce){return _0x4bd068(_0x3e7b79,_0x4a5183- -0x332,_0x2e7ae6-_0x346b3a._0x4f0cf6,_0x4ef4ce-_0x346b3a._0x159a49);}function _0x4e75b0(_0x2ace64,_0x28027a,_0x1ba3a0,_0x47ba07){return _0x154255(_0x47ba07,_0x28027a-_0x4121bc._0x4a3435,_0x28027a-_0x4121bc._0x3a8437,_0x47ba07-_0x4121bc._0x5b96a7);}if(_0x48419f[_0x4e75b0(0x590,_0x374da9._0x22a981,_0x374da9._0x2116fe,0x419)]===0x0)return _0x7a926d(_0x374da9._0xd9d1af,_0x374da9._0x3b4167,_0x374da9._0xcada3b,_0x374da9._0x4a01c9);return _0x48419f[_0x7a926d(_0x374da9._0xeac4e6,-0x1e,0xca,-_0x374da9._0xad2b41)](_0x33be44=>_0x33be44['to'][_0x4e75b0(0x4b6,0x601,0x6b9,0x53e)])['join']('\x0a');}function toStructured(_0x5376c4){const _0x1cf3f2={_0x3f1aa1:0x788,_0x3c60d2:0x757},_0x32ce64={_0xa08e38:0x175,_0x58984e:0x4d4};function _0x3e0636(_0x25cb66,_0x3e2f3c,_0x3ed19d,_0x526bbc){return _0x154255(_0x3ed19d,_0x3e2f3c-_0x32ce64._0xa08e38,_0x25cb66-_0x32ce64._0x58984e,_0x526bbc-0x142);}return JSON[_0x3e0636(_0x1cf3f2._0x3f1aa1,_0x1cf3f2._0x3c60d2,0x8a4,0x6f1)](JSON['stringify'](_0x5376c4));}async function assertFile(_0x298d15){const _0x28159f={_0x4e7418:0xc},_0x1579c0={_0xea6302:0x166},_0x48c9a1=await _0x3d8e10(_0x298d15);function _0xd1c7a(_0x30a33c,_0x104ece,_0x466910,_0x48b7c9){return _0x154255(_0x104ece,_0x104ece-0x1d5,_0x48b7c9- -_0x1579c0._0xea6302,_0x48b7c9-0xae);}if(!_0x48c9a1[_0xd1c7a(-_0x28159f._0x4e7418,-0x13b,0x179,0x35)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x298d15,{'path':_0x298d15});}function validatePosition(_0x2cf5aa,_0x59b7d7){const _0x4acf4f={_0x151dcb:0x337,_0x48c006:0x28a,_0x3ba8ee:0x212,_0x8a1bbc:0x58},_0x2ee9a6={_0x5afc7c:0x5c,_0x4622fd:0xae};if(!Number['isInteger'](_0x2cf5aa)||_0x2cf5aa<0x1)throw new ToolExecutionError(_0x3358c5(-0x193,-_0x4acf4f._0x151dcb,-_0x4acf4f._0x48c006,-0x1e4),{'line':_0x2cf5aa});function _0x1a3d38(_0x254383,_0x1d97fe,_0x2d1fe2,_0xf834de){return _0x4bd068(_0x1d97fe,_0x254383- -0x190,_0x2d1fe2-0x45,_0xf834de-0x6a);}function _0x3358c5(_0x113f83,_0x5b3bdc,_0x56e13f,_0x1cce36){return _0x4bd068(_0x5b3bdc,_0x1cce36- -0x653,_0x56e13f-_0x2ee9a6._0x5afc7c,_0x1cce36-_0x2ee9a6._0x4622fd);}if(!Number[_0x1a3d38(0x2fa,0x24b,0x248,_0x4acf4f._0x3ba8ee)](_0x59b7d7)||_0x59b7d7<0x1)throw new ToolExecutionError(_0x3358c5(-0x13e,-_0x4acf4f._0x8a1bbc,-0x70,-0x100),{'character':_0x59b7d7});}function createLspTool(_0x3e5201={}){const _0x36494d={_0x54d328:0x2e8,_0x58fffa:0x267,_0xf1ab2d:0x1b9,_0x4c5a1a:0x1c2,_0x394f22:0x2f5,_0x2ef616:0x338,_0x25fa8e:0x26a,_0x2680ad:0x353,_0x16d96f:0x476,_0xb27cdb:0x5c8,_0x5f18c4:0x6bd,_0x3c7aff:0x487,_0x77abe7:0x616,_0x5ee250:0x685,_0x1f370b:0x8de,_0x23d91b:0x679,_0x1fb30c:0x781,_0x5d7f12:0xe3,_0x3d19fa:0x2f1,_0x5cdf31:0x40e,_0x3eea43:0x307,_0x2f7f72:0x27a,_0x10302b:0x27c,_0x35f5d4:0x53f,_0x53d8cf:0x644,_0x4cc5ee:0x37e,_0x549f62:0x1fe,_0x2316f2:0x158,_0x666460:0x493,_0x4751c2:0x5dc,_0x373246:0x5ff,_0x525331:0x2be,_0x4d3975:0x221,_0x557dc7:0x1d7,_0x2f9c03:0x4dc,_0x5065ba:0x3b0,_0x3162f5:0x8b5,_0x3c3d4c:0x774,_0x3a55da:0x789,_0x73ce86:0x6ce,_0xf41f33:0x724,_0x2f461a:0x67c,_0x2a9849:0x354,_0x26e132:0x3b1},_0x1e9291={_0x1be946:0x100,_0x4f4e47:0x35,_0x4bdf5f:0xa0,_0x13d122:0x7a,_0x4ae2ab:0x5b3,_0x39bf3a:0x5d3,_0x260aba:0x464,_0xfbce7f:0x13f,_0x339922:0x122,_0x370602:0x7d,_0x4f21bd:0x6f,_0x4cf5a3:0x50,_0x232289:0x5a5,_0x29f473:0x584,_0x52aadd:0x5fb,_0x2aec14:0x148,_0x3015b0:0x469,_0xaf35f0:0x40,_0x503fe2:0x466,_0x5c74b6:0xa4,_0x2697cc:0x1b1,_0xd7bb34:0xa2,_0x1d6838:0x32b,_0x290cc2:0x342,_0x11d3f6:0x196,_0x700f8b:0x10f,_0x324054:0x165,_0x775303:0x53,_0x4c3931:0xb0,_0x4f5225:0x131,_0x57da13:0x2a,_0x15654d:0x246,_0x1b7e13:0x4d0,_0x24a8d4:0x374,_0x41b0c4:0x1bd,_0xd440e6:0x155,_0x3edb72:0x100,_0x3e8026:0x334,_0x209e6f:0x40c,_0x181dd5:0x3b7,_0x205476:0x66,_0x47ac35:0xbd,_0x3e74a8:0x282,_0x2abea5:0x3a5,_0x1d5717:0x145,_0x5a784b:0x240,_0x5678d8:0x4a7,_0x293999:0x56b,_0x40d971:0x47c,_0x3f3a98:0x2c0,_0x40d92b:0x25e,_0x7fa64e:0x4a4,_0x9d0a58:0x50b,_0x1ebe99:0x22f,_0x90d599:0x24c,_0xf4d102:0x114,_0x587bff:0x41e,_0x1098de:0x1b6},_0x16679b={_0x119356:0xf7,_0x443710:0xd6},_0x254352={_0x21f37e:0x247},_0x4649d0={_0x3cbf2d:0xfd},_0x308216=_0x236bf7[_0x396a86(_0x36494d._0x54d328,_0x36494d._0x58fffa,_0x36494d._0xf1ab2d,0x1e9)](_0x3e5201['defaultCwd']??process[_0x396a86(_0x36494d._0x4c5a1a,_0x36494d._0x394f22,0x3ff,_0x36494d._0x2ef616)]());function _0x4b3459(_0x42dc5f,_0x33de06,_0x513972,_0x51596d){return _0x4bd068(_0x42dc5f,_0x51596d-0x15d,_0x513972-0xf5,_0x51596d-_0x4649d0._0x3cbf2d);}const _0x19b08a=_0x3e5201['allowedDirs']??[];function _0x396a86(_0x4546cd,_0x518fec,_0x52083d,_0x30b9d4){return _0x4bd068(_0x4546cd,_0x518fec- -_0x254352._0x21f37e,_0x52083d-0xf0,_0x30b9d4-0x1ec);}const _0x3b60b7=_0x3e5201[_0x396a86(0x236,0x34c,_0x36494d._0x25fa8e,_0x36494d._0x2680ad)]??'Lsp';return defineTool({'name':_0x3b60b7,'description':_0x4b3459(0x651,0x550,_0x36494d._0x16d96f,_0x36494d._0xb27cdb),'inputSchema':{'type':'object','properties':{'operation':{'type':_0x4b3459(_0x36494d._0x5f18c4,_0x36494d._0x3c7aff,_0x36494d._0x77abe7,0x57b),'enum':['goToDefinition',_0x4b3459(_0x36494d._0x5ee250,_0x36494d._0x1f370b,_0x36494d._0x23d91b,_0x36494d._0x1fb30c),_0x396a86(_0x36494d._0x5d7f12,0x1e6,0x1f2,0x1f3),'documentSymbol',_0x396a86(_0x36494d._0x3d19fa,_0x36494d._0x5cdf31,_0x36494d._0x3eea43,0x581),_0x396a86(0x1f8,_0x36494d._0x2f7f72,_0x36494d._0x10302b,0xff),_0x4b3459(0x51b,0x656,_0x36494d._0x35f5d4,_0x36494d._0x53d8cf),_0x396a86(_0x36494d._0x4cc5ee,0x2aa,_0x36494d._0x549f62,_0x36494d._0x2316f2),_0x4b3459(0x707,_0x36494d._0x666460,_0x36494d._0x4751c2,_0x36494d._0x373246),_0x396a86(0x287,_0x36494d._0x525331,0x3ab,0x24e)]},'filePath':{'type':_0x396a86(_0x36494d._0x4d3975,_0x36494d._0x557dc7,0x2cb,0x20d)},'line':{'type':_0x396a86(_0x36494d._0x54d328,0x3b7,_0x36494d._0x2f9c03,_0x36494d._0x5065ba)},'character':{'type':_0x4b3459(_0x36494d._0x3162f5,0x708,_0x36494d._0x3c3d4c,0x75b)},'query':{'type':'string'}},'required':['operation',_0x4b3459(_0x36494d._0x3a55da,_0x36494d._0x73ce86,_0x36494d._0xf41f33,_0x36494d._0x2f461a),_0x396a86(_0x36494d._0x2a9849,0x259,0x168,_0x36494d._0x26e132),'character']},async *'execute'(_0x262259){const _0x2fe0ae={_0x395247:0x1b8,_0x4d4ff1:0xc0},_0x34a8d2=_0x3e5201[_0x1556fd(-_0x1e9291._0x1be946,_0x1e9291._0x4f4e47,_0x1e9291._0x4bdf5f,-_0x1e9291._0x13d122)];if(!_0x34a8d2)throw new ToolExecutionError('LSP\x20service\x20is\x20not\x20available');if(!_0x34a8d2[_0x445dfd(_0x1e9291._0x4ae2ab,_0x1e9291._0x39bf3a,_0x1e9291._0x260aba,0x310)]())throw new ToolExecutionError(_0x1556fd(-_0x1e9291._0xfbce7f,-0xaa,-0x21c,-_0x1e9291._0x339922));function _0x445dfd(_0x13db09,_0x5b73b2,_0x49ab1a,_0x2fc27e){return _0x4b3459(_0x2fc27e,_0x5b73b2-_0x2fe0ae._0x395247,_0x49ab1a-_0x2fe0ae._0x4d4ff1,_0x49ab1a- -0x216);}const _0x2c2870=_0x262259['operation'];function _0x1556fd(_0x4122c8,_0x494ea0,_0x1f2cbb,_0x2d1157){return _0x4b3459(_0x494ea0,_0x494ea0-_0x16679b._0x119356,_0x1f2cbb-_0x16679b._0x443710,_0x2d1157- -0x762);}validatePosition(_0x262259['line'],_0x262259['character']);if(_0x2c2870===_0x1556fd(-_0x1e9291._0x370602,_0x1e9291._0x4f21bd,0x9b,_0x1e9291._0x4cf5a3)){if(!_0x262259[_0x445dfd(0x499,0x4b0,0x456,0x359)]?.['trim']())throw new ToolExecutionError(_0x445dfd(0x5de,_0x1e9291._0x232289,_0x1e9291._0x29f473,_0x1e9291._0x52aadd));const _0x367097=await _0x34a8d2[_0x1556fd(_0x1e9291._0x2aec14,0x12a,0x155,0x50)](_0x262259[_0x445dfd(0x51a,_0x1e9291._0x3015b0,0x456,0x47c)][_0x1556fd(-0x37e,-0x276,-0xd1,-0x23a)]());return yield createToolOutput(formatSymbols(_0x367097),{'operation':_0x2c2870,'query':_0x262259[_0x1556fd(-0x20d,-0xe0,-_0x1e9291._0xaf35f0,-0xf6)],'symbols':_0x367097}),void 0x0;}const _0x2d6731=resolveAllowedPath(_0x308216,_0x19b08a,_0x262259[_0x445dfd(0x583,0x2ee,_0x1e9291._0x503fe2,0x49e)]);await assertFile(_0x2d6731);if(!await _0x34a8d2[_0x1556fd(-0x1ea,-0xe6,-0x1d7,-0x160)](_0x2d6731))throw new ToolExecutionError(_0x1556fd(-_0x1e9291._0x5c74b6,-_0x1e9291._0x2697cc,-_0x1e9291._0xd7bb34,-0x208)+_0x262259['filePath'],{'filePath':_0x262259['filePath']});await _0x34a8d2[_0x1556fd(-0x399,-_0x1e9291._0x1d6838,-_0x1e9291._0x290cc2,-0x258)](_0x2d6731,!![]);const _0x52800d={'file':_0x2d6731,'line':_0x262259[_0x1556fd(-_0x1e9291._0x11d3f6,-0xdd,-_0x1e9291._0x700f8b,-_0x1e9291._0x324054)]-0x1,'character':_0x262259[_0x1556fd(_0x1e9291._0x775303,-_0x1e9291._0x4c3931,-_0x1e9291._0x4f5225,-_0x1e9291._0x57da13)]-0x1};switch(_0x2c2870){case _0x445dfd(_0x1e9291._0x15654d,_0x1e9291._0x1b7e13,_0x1e9291._0x24a8d4,0x339):{const _0x110d90=await _0x34a8d2[_0x1556fd(-_0x1e9291._0x41b0c4,-_0x1e9291._0xd440e6,-0x2ec,-0x1d8)](_0x52800d);return yield createToolOutput(formatHover(_0x110d90),{'operation':_0x2c2870,'filePath':_0x2d6731,'hover':_0x110d90}),void 0x0;}case _0x1556fd(-0xa7,-0x2d,-0x1b2,-_0x1e9291._0x3edb72):{const _0x372528=await _0x34a8d2[_0x445dfd(_0x1e9291._0x3e8026,0x467,_0x1e9291._0x209e6f,_0x1e9291._0x181dd5)](_0x2d6731);return yield createToolOutput(formatDiagnostics(_0x372528),{'operation':_0x2c2870,'filePath':_0x2d6731,'diagnostics':_0x372528}),void 0x0;}case _0x1556fd(-_0x1e9291._0x205476,-0x2a9,-_0x1e9291._0x47ac35,-0x14b):{const _0x2b3311=await _0x34a8d2[_0x1556fd(-_0x1e9291._0x3e74a8,-_0x1e9291._0x2abea5,-_0x1e9291._0x1d5717,-_0x1e9291._0x5a784b)](_0x52800d);return yield createToolOutput(formatLocations(_0x2b3311),{'operation':_0x2c2870,'filePath':_0x2d6731,'locations':_0x2b3311}),void 0x0;}case _0x445dfd(_0x1e9291._0x5678d8,0x612,_0x1e9291._0x293999,_0x1e9291._0x40d971):{const _0x5077dd=await _0x34a8d2[_0x1556fd(-0x174,-_0x1e9291._0x205476,-0x203,-0x1c2)](_0x52800d);return yield createToolOutput(formatLocations(_0x5077dd),{'operation':_0x2c2870,'filePath':_0x2d6731,'locations':_0x5077dd}),void 0x0;}case'goToImplementation':{const _0x3152f5=await _0x34a8d2['implementation'](_0x52800d);return yield createToolOutput(formatLocations(_0x3152f5),{'operation':_0x2c2870,'filePath':_0x2d6731,'locations':_0x3152f5}),void 0x0;}case _0x445dfd(0x27d,_0x1e9291._0x3f3a98,0x32f,_0x1e9291._0x40d92b):{const _0x641431=await _0x34a8d2['documentSymbol'](_0x2d6731);return yield createToolOutput(formatSymbols(_0x641431),{'operation':_0x2c2870,'filePath':_0x2d6731,'symbols':_0x641431}),void 0x0;}case _0x1556fd(-0x5f,-0x118,0x4c,-0x11e):{const _0xc00624=await _0x34a8d2[_0x445dfd(_0x1e9291._0x7fa64e,0x32f,0x42e,_0x1e9291._0x9d0a58)](_0x52800d);return yield createToolOutput(formatSymbols(_0xc00624),{'operation':_0x2c2870,'filePath':_0x2d6731,'symbols':toStructured(_0xc00624)}),void 0x0;}case _0x1556fd(-_0x1e9291._0x1ebe99,0x42,-0x20c,-0x114):{const _0x493698=await _0x34a8d2[_0x1556fd(-0x210,-0xe9,-_0x1e9291._0x90d599,-_0x1e9291._0xf4d102)](_0x52800d);return yield createToolOutput(formatIncomingCalls(_0x493698),{'operation':_0x2c2870,'filePath':_0x2d6731,'calls':toStructured(_0x493698)}),void 0x0;}case _0x445dfd(_0x1e9291._0x1d6838,_0x1e9291._0x587bff,0x3e9,0x446):{const _0x263fee=await _0x34a8d2[_0x1556fd(-0x2a5,-_0x1e9291._0x1098de,-0x232,-0x163)](_0x52800d);return yield createToolOutput(formatOutgoingCalls(_0x263fee),{'operation':_0x2c2870,'filePath':_0x2d6731,'calls':toStructured(_0x263fee)}),void 0x0;}}}});}import{randomUUID as _0xa045ce}from'crypto';import{mkdir as _0x421fde,readFile as _0x263055,writeFile as _0x23c4cc}from'fs/promises';import{join as _0x48f374}from'path';function sanitizeStorageKey(_0x28cd21){const _0x3c88cf={_0x4a4d87:0x712,_0x29529e:0x642,_0x2cd4cc:0x5be},_0x5dc052={_0x2bfc9a:0x138,_0x3a30e8:0x109},_0xd3e3b8={_0x50e903:0x3e3};function _0xe6ddf8(_0x250804,_0x4d7e3f,_0x5e7e5c,_0x5aa5a5){return _0x4bd068(_0x250804,_0x4d7e3f- -_0xd3e3b8._0x50e903,_0x5e7e5c-0x68,_0x5aa5a5-0xb9);}function _0x1b8d83(_0x1525db,_0x22aa55,_0x14ef18,_0x2070c1){return _0x4bd068(_0x14ef18,_0x1525db-_0x5dc052._0x2bfc9a,_0x14ef18-0xd1,_0x2070c1-_0x5dc052._0x3a30e8);}return _0x28cd21[_0x1b8d83(0x597,_0x3c88cf._0x4a4d87,0x571,_0x3c88cf._0x29529e)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||_0x1b8d83(0x58f,_0x3c88cf._0x2cd4cc,0x6bf,0x6c4);}function storagePath(_0x5672e6){const _0x59ac27={_0xb6119d:0x7ee,_0x14c13d:0x51a,_0x433b23:0x536,_0x4f5ff9:0x593,_0x33a641:0x61d,_0x415770:0x5c6,_0x14a1c0:0x57d,_0x1cb273:0x6c9,_0x22758f:0x6ad,_0x504e2a:0x674,_0x3e02bd:0x76e,_0x3a89b5:0x7e7},_0xb9775c={_0x3c0174:0x90};function _0xc4d39b(_0x56ae3b,_0x59c5a1,_0xe88cb0,_0x575fc8){return _0x4bd068(_0x56ae3b,_0x59c5a1-_0xb9775c._0x3c0174,_0xe88cb0-0x0,_0x575fc8-0xf7);}function _0x1951d9(_0x3b02a9,_0x392976,_0x413f29,_0x388268){return _0x154255(_0x413f29,_0x392976-0xe8,_0x388268-0x503,_0x388268-0x56);}const _0x28c615=sanitizeStorageKey(_0x5672e6[_0x1951d9(0x8df,0x896,0x8df,_0x59ac27._0xb6119d)][_0xc4d39b(_0x59ac27._0x14c13d,0x5e9,0x6d7,_0x59ac27._0x433b23)]?.[_0x1951d9(_0x59ac27._0x4f5ff9,_0x59ac27._0x33a641,_0x59ac27._0x415770,_0x59ac27._0x14a1c0)]??_0x5672e6[_0x1951d9(0x768,0x5a0,_0x59ac27._0x1cb273,0x5fc)]);return _0x48f374(_0x5672e6[_0x1951d9(0x5b7,_0x59ac27._0x22758f,_0x59ac27._0x504e2a,0x66e)],_0x28c615+_0x1951d9(_0x59ac27._0x3e02bd,0x723,0x6b1,_0x59ac27._0x3a89b5));}async function readStore(_0x19fbd0){const _0x1a2ea2={_0xc6bd1e:0x231,_0x2be1b1:0x272,_0x4a0134:0x25a,_0x30c451:0x383,_0x559fca:0x3e9,_0x122485:0x154,_0x14d0d4:0x2a4,_0x3842a8:0x2b7,_0x561bec:0x51c,_0x253c86:0x2ed},_0x5506c8={_0x2df844:0x32},_0x2d2cdb={_0x2a1be2:0xb2,_0x1a3109:0x1d6};function _0x20527c(_0x7b4ed3,_0x2f21ff,_0x166f38,_0x43eaec){return _0x4bd068(_0x166f38,_0x2f21ff- -0x3d8,_0x166f38-_0x2d2cdb._0x2a1be2,_0x43eaec-_0x2d2cdb._0x1a3109);}function _0x2f5fb1(_0x2f41d9,_0x535f73,_0x4298db,_0x3ceeea){return _0x154255(_0x535f73,_0x535f73-0xa9,_0x3ceeea-0x175,_0x3ceeea-_0x5506c8._0x2df844);}try{return JSON[_0x20527c(_0x1a2ea2._0xc6bd1e,_0x1a2ea2._0x2be1b1,_0x1a2ea2._0x4a0134,0x1dd)](await _0x263055(_0x19fbd0,_0x2f5fb1(0x36d,_0x1a2ea2._0x30c451,_0x1a2ea2._0x559fca,0x390)));}catch(_0x2363c0){if(_0x2363c0 instanceof Error&&_0x20527c(_0x1a2ea2._0x122485,_0x1a2ea2._0x14d0d4,0x2d3,_0x1a2ea2._0x3842a8)in _0x2363c0&&_0x2363c0[_0x2f5fb1(_0x1a2ea2._0x561bec,0x55a,_0x1a2ea2._0x253c86,0x45b)]==='ENOENT')return{};throw _0x2363c0;}}async function writeStore(_0x5cdd53,_0x1d48f4){const _0x5d772b={_0xddbd6:0x496,_0x160523:0x5ba};function _0x5e4ac0(_0x4e12fc,_0x34a6fd,_0x596efb,_0x5c617c){return _0x154255(_0x34a6fd,_0x34a6fd-0x29,_0x5c617c-0x378,_0x5c617c-0x122);}await _0x421fde(_0x48f374(_0x5cdd53,'..'),{'recursive':!![]}),await _0x23c4cc(_0x5cdd53,JSON[_0x5e4ac0(_0x5d772b._0xddbd6,_0x5d772b._0x160523,0x4cf,0x50b)](_0x1d48f4,null,0x2),'utf8');}async function updateStore(_0x23d281,_0xb97f42){const _0x591e4c=await readStore(_0x23d281);_0xb97f42(_0x591e4c),await writeStore(_0x23d281,_0x591e4c);}function createMcpOAuthProvider(_0x317b8d){const _0x3f2a1e={_0x33fba2:0x5df,_0x381468:0x64e,_0x145a5e:0x91,_0x4cf3d5:0x119,_0x53138d:0x44a,_0x550913:0x50c,_0x3a5e04:0x3ff,_0x59980a:0x578,_0x29c08a:0x82,_0x509ff4:0xeb,_0x2187d5:0x1bf,_0x51476d:0x6fb,_0x39f634:0x5cc,_0x31a15a:0x706,_0x3758af:0x866,_0x469dee:0x8b,_0x181373:0x120,_0x5b400a:0x143,_0xb6074a:0x147,_0x563495:0x1f,_0x587abd:0x6e},_0xc343f4={_0x1f711a:0x697},_0x5ed82c={_0x4888ca:0x39c,_0x511660:0x2dd,_0x6349e6:0x9a,_0x1c0dbf:0x13f,_0xc5fee9:0x124,_0x157971:0x3a3,_0x1ad8ee:0x199,_0x2ed840:0x281,_0xd6ed31:0x64,_0x39e68b:0x15e,_0x3938b1:0x54,_0x474d38:0x3a,_0x44b9fa:0xf9,_0x37ca8e:0x198,_0x4a102d:0x288,_0x43eace:0x245,_0x5b6a1e:0x2ec,_0x4423c1:0x2bf,_0x131520:0x372,_0x3727f2:0x237,_0x3a877a:0xec,_0x1b169b:0xd2,_0x14ed98:0x33,_0xa6fb1b:0x1d1,_0x81da0f:0xcb},_0xf86d4e={_0x4a994b:0x19,_0xa774da:0x6,_0x50f000:0x12a},_0x1d78ba={_0x427351:0x659,_0x468940:0x18},_0x3c9966={_0x133f13:0x3ac,_0x4c7850:0x561,_0x51e0ea:0x404},_0x38b81d={_0x315b8a:0x4ea},_0x39bacd={_0x549ecf:0x3d,_0x179215:0x2d},_0x2120a8={_0x1fd5a1:0x5f,_0x579081:0x87},_0x562491={_0x4e5115:0x93,_0x17e72e:0x1ea,_0x40ffee:0x54},_0xb7e24b={_0x29776c:0x41b},_0x73a3a7={_0x126008:0x144,_0x53d672:0x138,_0x5215db:0xce};function _0x118803(_0x17e5c8,_0x4134b1,_0x5f47c3,_0x1ff3d3){return _0x154255(_0x1ff3d3,_0x4134b1-_0x73a3a7._0x126008,_0x17e5c8- -_0x73a3a7._0x53d672,_0x1ff3d3-_0x73a3a7._0x5215db);}function _0x423921(_0x3025cf,_0x6a4d4,_0x13264b,_0x223c91){return _0x154255(_0x13264b,_0x6a4d4-0x1cf,_0x6a4d4-_0xb7e24b._0x29776c,_0x223c91-0x1c7);}const _0x3e3ceb=storagePath(_0x317b8d),_0x4d3a50=_0x317b8d['config']['oauth']?.['scopes']?.[_0x423921(0x5a3,_0x3f2a1e._0x33fba2,_0x3f2a1e._0x381468,0x4e4)]('\x20'),_0x50482f={'client_name':_0x118803(-0x21,-0x77,-_0x3f2a1e._0x145a5e,_0x3f2a1e._0x4cf3d5),'redirect_uris':[_0x317b8d[_0x423921(_0x3f2a1e._0x53138d,_0x3f2a1e._0x550913,0x5d5,_0x3f2a1e._0x3a5e04)]],'grant_types':[_0x423921(0x680,_0x3f2a1e._0x59980a,0x4a1,0x5f8),_0x118803(-_0x3f2a1e._0x29c08a,-0x123,_0x3f2a1e._0x509ff4,-0x9f)],'response_types':[_0x118803(0x1ae,0x1df,0x207,_0x3f2a1e._0x2187d5)],'token_endpoint_auth_method':_0x423921(0x710,0x60e,_0x3f2a1e._0x51476d,_0x3f2a1e._0x39f634),..._0x4d3a50?{'scope':_0x4d3a50}:{}};return{'clientMetadataUrl':_0x317b8d[_0x423921(0x65f,_0x3f2a1e._0x31a15a,_0x3f2a1e._0x3758af,0x671)][_0x118803(_0x3f2a1e._0x469dee,_0x3f2a1e._0x181373,_0x3f2a1e._0x5b400a,_0x3f2a1e._0xb6074a)]?.[_0x118803(_0x3f2a1e._0x563495,-0x3b,0x53,_0x3f2a1e._0x587abd)],get 'redirectUrl'(){function _0x506798(_0x5333df,_0x547fc7,_0x2be3ed,_0x29225f){return _0x118803(_0x5333df- -_0x562491._0x4e5115,_0x547fc7-_0x562491._0x17e72e,_0x2be3ed-_0x562491._0x40ffee,_0x547fc7);}return _0x317b8d[_0x506798(-0xda,-0xd0,-0x149,-0xfd)];},get 'clientMetadata'(){return _0x50482f;},async 'state'(){const _0x1d04c3={_0x3b56f6:0x341,_0x23066f:0x26e},_0x3afba5={_0x49b8ee:0x19c},_0x1ce36d=await readStore(_0x3e3ceb);if(_0x1ce36d[_0x1f74ec(_0x2120a8._0x1fd5a1,-_0x2120a8._0x579081,0x173,-0x57)])return _0x1ce36d['state'];const _0x29b528=_0xa045ce();function _0x1f74ec(_0x2ea961,_0x56950c,_0x321e48,_0x56a2c3){return _0x423921(_0x2ea961-0x5c,_0x2ea961- -0x672,_0x56a2c3,_0x56a2c3-0x141);}return await updateStore(_0x3e3ceb,_0x4dee9e=>{function _0x158dc1(_0x49c9ce,_0x46f217,_0x26a679,_0x64e82c){return _0x1f74ec(_0x26a679-0x20f,_0x46f217-0x125,_0x26a679-_0x3afba5._0x49b8ee,_0x64e82c);}_0x4dee9e[_0x158dc1(_0x1d04c3._0x3b56f6,0x32f,_0x1d04c3._0x23066f,0x3d8)]=_0x29b528;}),_0x29b528;},async 'clientInformation'(){return(await readStore(_0x3e3ceb))['clientInformation'];},async 'saveClientInformation'(_0x323401){const _0xcd1dc={_0x4529aa:0x1f4,_0x25c432:0x27e,_0x3665be:0xd4},_0x59bbba={_0x3d4b76:0x45};await updateStore(_0x3e3ceb,_0x163868=>{function _0x3c7727(_0x4ed054,_0x133d21,_0x36add0,_0x419a28){return _0x3c5f(_0x133d21-_0x59bbba._0x3d4b76,_0x36add0);}_0x163868[_0x3c7727(0x133,_0xcd1dc._0x4529aa,_0xcd1dc._0x25c432,_0xcd1dc._0x3665be)]=_0x323401;});},async 'tokens'(){function _0x437fac(_0x134509,_0xaa7471,_0x10d62d,_0xf1ab9){return _0x423921(_0x134509-_0x39bacd._0x549ecf,_0x134509-_0x39bacd._0x179215,_0xaa7471,_0xf1ab9-0x1de);}return(await readStore(_0x3e3ceb))[_0x437fac(_0x38b81d._0x315b8a,0x488,0x4d8,0x37a)];},async 'saveTokens'(_0x563bb0){const _0x234094={_0x1a1026:0x17f,_0x155ade:0x6a};await updateStore(_0x3e3ceb,_0x222b18=>{function _0x4c626d(_0x4076ad,_0x2fed32,_0x38c494,_0x118ede){return _0x3c5f(_0x2fed32- -0x46,_0x4076ad);}_0x222b18[_0x4c626d(0x289,_0x234094._0x1a1026,_0x234094._0x155ade,0xbf)]=_0x563bb0;});},async 'redirectToAuthorization'(_0x39581e){const _0x33ee06={_0x3f0e6b:0x304,_0x561cb5:0xd7,_0x44dc97:0x110};function _0x1505ba(_0x147a81,_0x15f3e7,_0x4c5327,_0x3d4708){return _0x118803(_0x4c5327-_0x33ee06._0x3f0e6b,_0x15f3e7-_0x33ee06._0x561cb5,_0x4c5327-_0x33ee06._0x44dc97,_0x3d4708);}await _0x317b8d[_0x1505ba(_0x3c9966._0x133f13,_0x3c9966._0x4c7850,_0x3c9966._0x51e0ea,0x3e3)](_0x39581e);},async 'saveCodeVerifier'(_0x2a60ad){const _0x2fdd6d={_0x55b760:0x56b};await updateStore(_0x3e3ceb,_0x4a9626=>{function _0x3ff05c(_0x3c9060,_0x59bc6e,_0x17f2d0,_0xe55f37){return _0x3c5f(_0x3c9060-0x1f6,_0xe55f37);}_0x4a9626[_0x3ff05c(0x623,_0x2fdd6d._0x55b760,0x6a5,0x52c)]=_0x2a60ad;});},async 'codeVerifier'(){function _0x3cce5d(_0x1f591b,_0x4c7aed,_0x374584,_0x4f2b88){return _0x423921(_0x1f591b-0x5e,_0x1f591b- -_0x1d78ba._0x427351,_0x374584,_0x4f2b88-_0x1d78ba._0x468940);}const _0x1e389f=(await readStore(_0x3e3ceb))['codeVerifier'];if(!_0x1e389f)throw new Error(_0x3cce5d(-_0xf86d4e._0x4a994b,_0xf86d4e._0xa774da,_0xf86d4e._0x50f000,-0xf0));return _0x1e389f;},async 'invalidateCredentials'(_0x1a6d42){await updateStore(_0x3e3ceb,_0x455b4b=>{const _0x13f440={_0x332006:0x141};function _0x35bfc5(_0x37a752,_0x3bdd7b,_0x44055c,_0x17080e){return _0x3c5f(_0x17080e- -_0x13f440._0x332006,_0x37a752);}(_0x1a6d42===_0x1b436c(0x1a8,0x171,0x237,_0x5ed82c._0x4888ca)||_0x1a6d42===_0x1b436c(_0x5ed82c._0x511660,0x288,0x251,0x1db))&&(_0x455b4b[_0x35bfc5(0x92,-_0x5ed82c._0x6349e6,_0x5ed82c._0x1c0dbf,0x6e)]=void 0x0);function _0x1b436c(_0x52c337,_0x30ecce,_0x2ac96f,_0x299f4a){return _0x3c5f(_0x2ac96f- -0x18b,_0x30ecce);}(_0x1a6d42===_0x35bfc5(_0x5ed82c._0xc5fee9,_0x5ed82c._0x157971,_0x5ed82c._0x1ad8ee,_0x5ed82c._0x2ed840)||_0x1a6d42===_0x1b436c(-_0x5ed82c._0xd6ed31,0x10e,0x3a,-0xad))&&(_0x455b4b[_0x1b436c(_0x5ed82c._0x39e68b,-_0x5ed82c._0x3938b1,_0x5ed82c._0x474d38,_0x5ed82c._0x44b9fa)]=void 0x0),(_0x1a6d42==='all'||_0x1a6d42===_0x1b436c(0x293,_0x5ed82c._0x37ca8e,_0x5ed82c._0x4a102d,_0x5ed82c._0x43eace))&&(_0x455b4b[_0x35bfc5(0x427,0x307,0x399,_0x5ed82c._0x5b6a1e)]=void 0x0,_0x455b4b['state']=void 0x0),(_0x1a6d42===_0x1b436c(_0x5ed82c._0x4423c1,_0x5ed82c._0x131520,_0x5ed82c._0x3727f2,_0x5ed82c._0x3a877a)||_0x1a6d42===_0x35bfc5(0x1a8,0x18d,-_0x5ed82c._0x1b169b,_0x5ed82c._0x14ed98))&&(_0x455b4b[_0x1b436c(0x219,0x1f9,_0x5ed82c._0xa6fb1b,_0x5ed82c._0x81da0f)]=void 0x0);});},async 'saveDiscoveryState'(_0x4e695f){const _0x49c64b={_0x29e748:0x26c,_0x3443c6:0x192},_0x338f47={_0x30fc0a:0x1ca};await updateStore(_0x3e3ceb,_0x385799=>{function _0x4a1c7d(_0x3148ce,_0x5bb875,_0x2ffa3e,_0x101789){return _0x3c5f(_0x101789- -_0x338f47._0x30fc0a,_0x3148ce);}_0x385799[_0x4a1c7d(_0x49c64b._0x29e748,0x108,0x155,_0x49c64b._0x3443c6)]=_0x4e695f;});},async 'discoveryState'(){const _0x357324={_0x5f4bc2:0x170,_0x56aaad:0x1db};function _0x279a0a(_0x80b9bb,_0x4293c6,_0x18a7a9,_0x1a3f1b){return _0x423921(_0x80b9bb-_0x357324._0x5f4bc2,_0x80b9bb- -0x112,_0x4293c6,_0x1a3f1b-_0x357324._0x56aaad);}return(await readStore(_0x3e3ceb))[_0x279a0a(0x542,0x566,0x676,_0xc343f4._0x1f711a)];}};}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(_0x14a3a3,_0x1bd431){const _0x1565b8={_0x10c679:0x517,_0x359841:0x3a5,_0x568373:0x47e,_0x22c787:0x3f0},_0x244d13={_0x52a1da:0x1ba,_0xcc7b32:0x81,_0x4026e5:0x166},_0x525d80={_0x3ac339:0x212,_0x5ee3e8:0x114};function _0xa59598(_0x270a5a,_0x43683d,_0x12652f,_0x3d8e4c){return _0x154255(_0x43683d,_0x43683d-0x91,_0x12652f-_0x525d80._0x3ac339,_0x3d8e4c-_0x525d80._0x5ee3e8);}const _0x26f0f5=_0x45f33f=>_0x45f33f['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x1a05ce(0x1a6,0xd1,0x14a,-0x18)](/^_+|_+$/g,'');function _0x1a05ce(_0x3b9f4d,_0x4e7e54,_0x4d6c5b,_0x4a92a7){return _0x154255(_0x3b9f4d,_0x4e7e54-_0x244d13._0x52a1da,_0x4d6c5b-_0x244d13._0xcc7b32,_0x4a92a7-_0x244d13._0x4026e5);}return _0xa59598(_0x1565b8._0x10c679,_0x1565b8._0x359841,_0x1565b8._0x568373,_0x1565b8._0x22c787)+_0x26f0f5(_0x14a3a3)+'_'+_0x26f0f5(_0x1bd431);}function isObject(_0x3ec7a1){const _0x286637={_0x45ea50:0x699,_0x35cf22:0x7a9,_0x3ad235:0x814},_0x3de5f3={_0x21fd38:0x1cf};function _0x25e347(_0x416819,_0x1cfc64,_0x48b467,_0x916b95){return _0x4bd068(_0x1cfc64,_0x416819-0x24,_0x48b467-_0x3de5f3._0x21fd38,_0x916b95-0x11d);}return typeof _0x3ec7a1===_0x25e347(_0x286637._0x45ea50,0x5c4,_0x286637._0x35cf22,_0x286637._0x3ad235)&&_0x3ec7a1!==null&&!Array['isArray'](_0x3ec7a1);}function toSupportedSchema(_0x520412){const _0x1ee5c0={_0x5c43fd:0xa8,_0x30d835:0x1b8,_0x3cb496:0x12e,_0x4a8555:0x239,_0x5924c0:0x58e,_0x2d5515:0x4e7,_0x63dfdc:0x397,_0x555eb9:0x423,_0x19c606:0xfe,_0x3d29e6:0x92,_0x127f8e:0x476,_0x4ca5e7:0x200,_0x50d2cb:0xeb,_0x5d83e6:0x270,_0x20471a:0x3db,_0x13c801:0x5de,_0x394fd0:0x4e6},_0x5efe49={_0x2a4bb6:0xd7};if(!isObject(_0x520412))return void 0x0;if(_0x520412['type']===_0x3c9ffc(-0x12e,-_0x1ee5c0._0x5c43fd,-0xd5,-_0x1ee5c0._0x30d835))return{'type':_0x3c9ffc(-_0x1ee5c0._0x3cb496,-0xa6,-_0x1ee5c0._0x4a8555,0x3)};function _0x55787d(_0x57693a,_0x3931fd,_0x5e7311,_0x56530c){return _0x4bd068(_0x56530c,_0x5e7311- -0x1db,_0x5e7311-0x23,_0x56530c-0x5d);}if(_0x520412['type']===_0x55787d(_0x1ee5c0._0x5924c0,_0x1ee5c0._0x2d5515,0x423,0x433)||_0x520412['type']==='integer')return{'type':_0x55787d(0x2df,_0x1ee5c0._0x63dfdc,_0x1ee5c0._0x555eb9,0x596)};if(_0x520412['type']===_0x55787d(0x10e,_0x1ee5c0._0x19c606,0x208,0xf9))return{'type':'boolean'};if(_0x520412[_0x3c9ffc(-0x21,0x119,-_0x1ee5c0._0x3d29e6,-0x12e)]===_0x55787d(0x4d6,0x504,_0x1ee5c0._0x127f8e,0x52c))return{'type':'array','items':toSupportedSchema(_0x520412[_0x3c9ffc(-0xda,-_0x1ee5c0._0x4ca5e7,-0x254,-0x16f)])??{'type':_0x3c9ffc(-_0x1ee5c0._0x3cb496,-_0x1ee5c0._0x50d2cb,-_0x1ee5c0._0x5d83e6,-0x163)}};if(_0x520412[_0x55787d(0x43b,_0x1ee5c0._0x20471a,0x350,0x3fc)]===_0x55787d(_0x1ee5c0._0x13c801,_0x1ee5c0._0x394fd0,0x49a,0x47d))return toNuvinToolSchema(_0x520412);function _0x3c9ffc(_0x7ac95a,_0x4dff40,_0x25fc8e,_0x5c770b){return _0x154255(_0x4dff40,_0x4dff40-_0x5efe49._0x2a4bb6,_0x7ac95a- -0x1b6,_0x5c770b-0x16c);}return void 0x0;}function toNuvinToolSchema(_0x12705b){const _0x3324aa={_0x121770:0x62,_0x289426:0x1ac,_0x4a2a51:0x9e,_0x536756:0x6e7,_0x4c17e0:0x4d7,_0x47cd95:0x60c,_0x4ac4bf:0xd5,_0x9e0507:0x48,_0x4c0ec4:0x6a1,_0x26b8d9:0x5ad,_0x40c7d0:0x7fe,_0x13b150:0x870,_0x3df9b2:0x782,_0x550ab9:0x8de,_0x85a110:0x87b,_0x3cc27a:0x93b},_0x45e480={_0x25b829:0x4c9},_0x485d89={_0x2283af:0x173};function _0x2eeafd(_0x3ceea1,_0x5c63be,_0x2b8316,_0x3cd390){return _0x154255(_0x2b8316,_0x5c63be-_0x485d89._0x2283af,_0x3ceea1-0x4e1,_0x3cd390-0x1b7);}if(!isObject(_0x12705b)||_0x12705b[_0x9beb8d(_0x3324aa._0x121770,0x3e,0x31,0x167)]!==_0x9beb8d(_0x3324aa._0x289426,0x7b,_0x3324aa._0x4a2a51,0x272))return{'type':'object','properties':{}};const _0x564f3a={},_0x2b3199=isObject(_0x12705b[_0x2eeafd(0x587,_0x3324aa._0x536756,_0x3324aa._0x4c17e0,_0x3324aa._0x47cd95)])?_0x12705b['properties']:{};for(const [_0x15392c,_0x434322]of Object[_0x9beb8d(-0x82,_0x3324aa._0x4ac4bf,-0x1a5,_0x3324aa._0x9e0507)](_0x2b3199)){const _0x14e193=toSupportedSchema(_0x434322);if(_0x14e193)_0x564f3a[_0x15392c]=_0x14e193;}function _0x9beb8d(_0x2c5a9d,_0x142361,_0x16f4df,_0x127b2a){return _0x4bd068(_0x142361,_0x2c5a9d- -_0x45e480._0x25b829,_0x16f4df-0x15c,_0x127b2a-0x165);}const _0x323206=Array['isArray'](_0x12705b[_0x2eeafd(_0x3324aa._0x4c0ec4,_0x3324aa._0x26b8d9,0x5da,_0x3324aa._0x40c7d0)])?_0x12705b['required'][_0x2eeafd(0x776,_0x3324aa._0x13b150,0x89a,_0x3324aa._0x3df9b2)](_0x287e70=>typeof _0x287e70===_0x2eeafd(0x569,0x4fc,0x53d,0x50c)):void 0x0;return _0x323206?.['length']?{'type':_0x2eeafd(0x7c0,_0x3324aa._0x550ab9,_0x3324aa._0x85a110,_0x3324aa._0x3cc27a),'properties':_0x564f3a,'required':_0x323206}:{'type':'object','properties':_0x564f3a};}function isJsonObject(_0x215385){const _0x22bf1a={_0x259c44:0x2af,_0x1b060e:0xc9,_0x3bc785:0x1d9,_0x1853e3:0x225},_0x498fc2={_0x6532e4:0xf3};function _0x12a4ed(_0x52cd77,_0x4c7ad8,_0x57c193,_0x13a144){return _0x154255(_0x4c7ad8,_0x4c7ad8-0x121,_0x13a144-_0x498fc2._0x6532e4,_0x13a144-0xc7);}return typeof _0x215385==='object'&&_0x215385!==null&&!Array[_0x12a4ed(_0x22bf1a._0x259c44,_0x22bf1a._0x1b060e,_0x22bf1a._0x3bc785,_0x22bf1a._0x1853e3)](_0x215385);}function formatMcpContent(_0x46bcc0){const _0x33bc09={_0x4b7010:0x99,_0x3e3988:0x11c,_0x23cddb:0x725,_0x49e0af:0x525,_0x22cb79:0x45f,_0x1e97e0:0x7ae,_0x5138de:0x746,_0x484a7d:0x752,_0xdfbda2:0x675,_0x51befb:0xd,_0x3c4058:0x124,_0x50a6bd:0x15f},_0x40ae13={_0x5b59a7:0x1aa,_0x52babb:0x186},_0x3572aa={_0x1ba4bc:0x34,_0x43af5c:0xeb,_0x4ccd00:0x3df,_0x23c767:0xff,_0x1dd0d0:0x2f,_0xcfe884:0x101,_0x35a174:0x2b6,_0x126452:0x1f8,_0x3944e1:0x95,_0x473152:0x120,_0x133735:0xf4,_0x32c39d:0xa8},_0x36e505={_0x2c6408:0x1c6},_0x105596={_0x15b96d:0xd0,_0x18c531:0x4b1},_0x39a643=Array[_0x57aabc(-0x54,0x9d,_0x33bc09._0x4b7010,_0x33bc09._0x3e3988)](_0x46bcc0['content'])?_0x46bcc0[_0xdd5225(_0x33bc09._0x23cddb,0x7ad,0x6cb,0x737)]:[];function _0xdd5225(_0x24de9c,_0x1ce923,_0x2399eb,_0x16a868){return _0x154255(_0x24de9c,_0x1ce923-_0x105596._0x15b96d,_0x2399eb-_0x105596._0x18c531,_0x16a868-0x1ab);}const _0x374f6d=_0x39a643[_0xdd5225(0x65b,0x401,_0x33bc09._0x49e0af,_0x33bc09._0x22cb79)](_0xd7f7af=>{const _0x46d538={_0x58b279:0x6f};function _0xe3ce35(_0x2231df,_0x3078e4,_0x19a1bb,_0x67bc2a){return _0x57aabc(_0x19a1bb- -0xfa,_0x67bc2a,_0x19a1bb-_0x36e505._0x2c6408,_0x67bc2a-0x187);}if(!isObject(_0xd7f7af))return'';if(_0xd7f7af[_0xe3ce35(-_0x3572aa._0x1ba4bc,-0xd4,-_0x3572aa._0x43af5c,-0x1fb)]===_0x53b5a7(0x34a,_0x3572aa._0x4ccd00,0x275,0x31f)&&typeof _0xd7f7af[_0xe3ce35(-0x14,_0x3572aa._0x23c767,-_0x3572aa._0x1dd0d0,_0x3572aa._0xcfe884)]===_0xe3ce35(-0xde,-_0x3572aa._0x35a174,-_0x3572aa._0x126452,-_0x3572aa._0x3944e1))return _0xd7f7af[_0xe3ce35(_0x3572aa._0x473152,-_0x3572aa._0x133735,-0x2f,_0x3572aa._0x32c39d)];function _0x53b5a7(_0x5efcb2,_0x4fe39f,_0xa4446e,_0xadf9a2){return _0xdd5225(_0x4fe39f,_0x4fe39f-_0x46d538._0x58b279,_0x5efcb2- -0x3b8,_0xadf9a2-0x197);}return JSON['stringify'](_0xd7f7af);})[_0xdd5225(_0x33bc09._0x1e97e0,0x810,_0x33bc09._0x5138de,0x6fb)](_0x2769c8=>_0x2769c8[_0xdd5225(0x586,0x621,0x4ee,0x44e)]>0x0)[_0xdd5225(0x674,_0x33bc09._0x484a7d,_0x33bc09._0xdfbda2,0x71e)]('\x0a');if(_0x374f6d['length']>0x0)return _0x374f6d;function _0x57aabc(_0x3cbfef,_0x26e2e7,_0xd99a0b,_0x28c934){return _0x154255(_0x26e2e7,_0x26e2e7-_0x40ae13._0x5b59a7,_0x3cbfef- -_0x40ae13._0x52babb,_0x28c934-0x40);}return JSON[_0x57aabc(_0x33bc09._0x51befb,-_0x33bc09._0x3c4058,_0x33bc09._0x50a6bd,0x9)](_0x46bcc0,null,0x2);}function createMcpTool(_0x1c83e6){const _0xaed29={_0x3ca656:0x126,_0x560423:0x21,_0x55f116:0x51,_0x24a79d:0x1ce,_0x3abed6:0xd1,_0x4e0a74:0xc8,_0x4147ed:0x492,_0x3eda70:0x38b,_0x145a4b:0x131,_0x1a2af6:0x24,_0x4eac5d:0x84,_0x24b46a:0x157,_0x44caf0:0x57,_0xa93d14:0xf9,_0x20de66:0x14,_0x5a647b:0x2ab,_0x266090:0x3d8,_0x220d44:0x550,_0x105e0f:0x2fb,_0x453678:0x123},_0x1c4a8f={_0x435996:0x428,_0x19fea1:0x501,_0x101968:0x647,_0x2da6e2:0x34e,_0x3c26ea:0x2b3,_0x5d9851:0x5d4,_0x7d4b35:0x4c8,_0x40bd50:0x34a,_0x2c740d:0x6e9},_0x3e244a={_0xdb654f:0xce},_0x45519e={_0x2322b5:0x1ec,_0x284aad:0x150,_0x29491d:0x4c},_0x2b2bb0=createMcpToolName(_0x1c83e6['serverName'],_0x1c83e6[_0x25fad2(0x9b,_0xaed29._0x3ca656,_0xaed29._0x560423,_0xaed29._0x55f116)][_0x25fad2(_0xaed29._0x24a79d,0xad,0x1d8,-0x91)]);function _0x25fad2(_0x1a08fb,_0x5eb21f,_0x18ace3,_0x32efcd){return _0x154255(_0x1a08fb,_0x5eb21f-_0x45519e._0x2322b5,_0x5eb21f- -_0x45519e._0x284aad,_0x32efcd-_0x45519e._0x29491d);}function _0xdc917f(_0x2c3045,_0x10fd27,_0x1c3508,_0x4905f0){return _0x4bd068(_0x4905f0,_0x10fd27- -0x211,_0x1c3508-0x2a,_0x4905f0-_0x3e244a._0xdb654f);}return defineTool({'name':_0x2b2bb0,'description':_0x1c83e6[_0x25fad2(0x273,0x126,_0xaed29._0x3abed6,_0xaed29._0x4e0a74)][_0xdc917f(0x3d9,0x37f,_0xaed29._0x4147ed,_0xaed29._0x3eda70)]??'MCP\x20tool\x20'+_0x1c83e6[_0x25fad2(_0xaed29._0x145a4b,0x126,0xff,-_0xaed29._0x1a2af6)][_0x25fad2(-_0xaed29._0x4eac5d,0xad,_0xaed29._0x24b46a,-0xa8)]+'\x20from\x20'+_0x1c83e6[_0x25fad2(-0xc,-_0xaed29._0x44caf0,_0xaed29._0xa93d14,_0xaed29._0x20de66)],'inputSchema':toNuvinToolSchema(_0x1c83e6[_0xdc917f(_0xaed29._0x5a647b,0x3fb,_0xaed29._0x266090,_0xaed29._0x220d44)][_0xdc917f(_0xaed29._0x105e0f,0x221,0x112,_0xaed29._0x453678)]),async *'execute'(_0x577e10){const _0x1e6285={_0x31b4a2:0x91},_0x3766b0=await _0x1c83e6[_0x54e48c(0x33b,0x473,0x42a,_0x1c4a8f._0x435996)]['callTool']({'name':_0x1c83e6[_0x2bf451(_0x1c4a8f._0x19fea1,0x7a3,0x6bd,_0x1c4a8f._0x101968)][_0x54e48c(0x3a1,0x3b7,0x26c,0x32a)],'arguments':isJsonObject(_0x577e10)?_0x577e10:{}});function _0x54e48c(_0x53a532,_0x1ae259,_0x481a6e,_0x1f338a){return _0xdc917f(_0x53a532-0x1d2,_0x1ae259-0x35,_0x481a6e-0x17c,_0x1f338a);}function _0x2bf451(_0x42b343,_0x6fb0f,_0x2405b8,_0x42fc6e){return _0xdc917f(_0x42b343-_0x1e6285._0x31b4a2,_0x42fc6e-0x24c,_0x2405b8-0x15c,_0x2405b8);}if(_0x3766b0[_0x54e48c(0x28a,0x25d,0x299,0x273)])throw new ToolExecutionError(formatMcpContent(_0x3766b0),{'serverName':_0x1c83e6[_0x54e48c(_0x1c4a8f._0x2da6e2,_0x1c4a8f._0x3c26ea,0x181,0x42b)],'toolName':_0x1c83e6['tool'][_0x2bf451(_0x1c4a8f._0x5d9851,_0x1c4a8f._0x7d4b35,0x73d,0x5ce)]});return yield createToolOutput(formatMcpContent(_0x3766b0),{'serverName':_0x1c83e6[_0x54e48c(0x220,0x2b3,0x408,_0x1c4a8f._0x40bd50)],'toolName':_0x1c83e6['tool'][_0x2bf451(_0x1c4a8f._0x2c740d,0x4d3,0x642,0x5ce)],'result':_0x3766b0}),void 0x0;}});}function resolvePrefix(_0xa11466,_0x378336){const _0x1428e7={_0x4831b6:0x169,_0x2a7df3:0x6e},_0x3ba3b2={_0x2c287e:0x1ae};function _0x15b696(_0x5b2caa,_0x345fc0,_0x179069,_0x4aa66e){return _0x154255(_0x5b2caa,_0x345fc0-0x148,_0x345fc0- -0x108,_0x4aa66e-_0x3ba3b2._0x2c287e);}return _0x378336[_0x15b696(-0x3d,0x102,_0x1428e7._0x4831b6,-_0x1428e7._0x2a7df3)]??_0xa11466;}function buildMcpHttpHeaders(_0x4ead68){const _0x548ea3={_0x167199:0x4cc,_0x369c60:0x5b,_0x30eeb6:0x43,_0x47565e:0xd5,_0x270867:0xbd,_0x1fac0b:0x5d5,_0x47ca82:0x639,_0x536579:0x3e3,_0x56ac20:0x2bc,_0x5650cc:0x2f0,_0x513c19:0x281,_0xf50b70:0x121,_0xb7adc7:0x17f,_0xf61ed4:0x511,_0x4d8e7b:0x633,_0x5e623e:0x66},_0x5d36a6={_0x300de3:0x1a9},_0xffe92={_0x554364:0x109},_0x8b04bb={..._0x4ead68[_0x4125a2(0x523,0x41d,0x3f7,_0x548ea3._0x167199)]??{}};_0x4ead68[_0xa0f406(-0x72,-_0x548ea3._0x369c60,-0x74,-_0x548ea3._0x30eeb6)]?.[_0xa0f406(-0x203,_0x548ea3._0x47565e,-_0x548ea3._0x270867,-0x99)]===_0x4125a2(_0x548ea3._0x1fac0b,0x591,0x4db,_0x548ea3._0x47ca82)&&_0x4ead68[_0x4125a2(_0x548ea3._0x536579,_0x548ea3._0x56ac20,0x432,_0x548ea3._0x5650cc)]['token']&&_0x8b04bb[_0xa0f406(-0xce,-0x13f,-_0x548ea3._0x513c19,-0x17f)]===void 0x0&&(_0x8b04bb[_0xa0f406(-0x2bb,-_0x548ea3._0xf50b70,-0x51,-_0x548ea3._0xb7adc7)]='Bearer\x20'+_0x4ead68[_0x4125a2(_0x548ea3._0xf61ed4,0x46e,0x432,0x568)][_0x4125a2(0x4f2,0x3d0,0x533,_0x548ea3._0x4d8e7b)]);function _0x4125a2(_0x4b71f6,_0x1b820c,_0x243339,_0x91091d){return _0x154255(_0x1b820c,_0x1b820c-0x79,_0x243339-0x247,_0x91091d-_0xffe92._0x554364);}function _0xa0f406(_0x17c13d,_0x5b3fa8,_0x5f3a6a,_0x46edf4){return _0x4bd068(_0x5f3a6a,_0x46edf4- -0x5c4,_0x5f3a6a-0x17a,_0x46edf4-_0x5d36a6._0x300de3);}return Object[_0xa0f406(-0xab,-0x25b,-_0x548ea3._0x5e623e,-0xe5)](_0x8b04bb)['length']>0x0?_0x8b04bb:void 0x0;}function getErrorMessage(_0x5930c1){const _0x24097f={_0x3e74fa:0x3c,_0x8ab472:0x1c7},_0x3cc958={_0x51ff28:0x1f4,_0x187d50:0x4a};function _0x535e78(_0x5df412,_0x46bfa0,_0xeacbb,_0x131178){return _0x154255(_0xeacbb,_0x46bfa0-_0x3cc958._0x51ff28,_0x5df412- -0x28c,_0x131178-_0x3cc958._0x187d50);}return _0x5930c1 instanceof Error?_0x5930c1[_0x535e78(-0x147,-_0x24097f._0x3e74fa,-_0x24097f._0x8ab472,-0xfd)]:String(_0x5930c1);}function isUnauthorizedError(_0x145b3c){const _0x275cfe={_0x5e4adf:0x561,_0x2299f0:0x5d6,_0x316645:0x4b2,_0x3b8c0c:0x56f,_0x471660:0x56b,_0x41d082:0x47e},_0x2fcf80={_0x5c236a:0xc6,_0x517516:0x127};function _0x41a67f(_0xd24c49,_0x104e05,_0x22db6f,_0x5972f0){return _0x4bd068(_0x5972f0,_0x104e05- -0xa9,_0x22db6f-_0x2fcf80._0x5c236a,_0x5972f0-_0x2fcf80._0x517516);}function _0x187860(_0x357c10,_0x61169e,_0x38f7e9,_0xd2f35){return _0x4bd068(_0x61169e,_0x38f7e9-0x43,_0x38f7e9-0x19b,_0xd2f35-0x140);}return _0x145b3c instanceof Error&&_0x145b3c[_0x187860(0x65a,_0x275cfe._0x5e4adf,0x619,0x585)][_0x187860(0x734,0x51e,_0x275cfe._0x2299f0,_0x275cfe._0x316645)]===_0x187860(_0x275cfe._0x3b8c0c,0x5ff,_0x275cfe._0x471660,_0x275cfe._0x41d082);}async function connectMcpServer(_0x4ebeab,_0x1fecd6,_0x304b41){const _0x5d8986={_0x1134c3:0x715,_0x29e54c:0x75d,_0x1d7b88:0x60a,_0x38404c:0x2f3,_0x1c69d0:0x456,_0x23d5d8:0x70f,_0x2a9396:0x66e,_0x21d612:0x3a4,_0x435397:0x15a,_0x567495:0x28d,_0x5e150f:0x590,_0x515bdd:0x6e4,_0x2f13a3:0x419,_0x1ac1d3:0x103,_0x3e7699:0x17a,_0x1d2188:0x2af,_0x5f1a39:0x1f2,_0x387cef:0x159,_0x48aeb3:0x265,_0x596abe:0x259,_0x540091:0x220,_0x526a08:0x287,_0x5b00b5:0x16d,_0x57ed1e:0x294,_0x4429b8:0x5ce,_0x1d2d6b:0x68f,_0x27e22d:0x3f1,_0x258e71:0x363,_0x50d7e7:0x54a,_0x3a54db:0x6bd,_0x44ca2c:0x6e0,_0x17451f:0x690,_0x156e91:0x6ca,_0x14caa8:0x1e4,_0x18d9ab:0x19a,_0x2222be:0x789,_0x3609c0:0x603,_0x45c77c:0x607,_0x430f8c:0x629,_0x1fa315:0x508,_0x26bc47:0x590,_0x5806a0:0x560,_0x392b37:0x4e9,_0x12b6f1:0x2ab,_0x102667:0x29a,_0x1a3562:0x48,_0xa49d12:0x261,_0x120ffe:0x243,_0x3c41b6:0x1d4,_0xd1a296:0x289,_0x58e77d:0x2b4,_0x1ef353:0x173,_0x57a74f:0x169,_0x36278c:0x46,_0x250fd1:0x2a4,_0x420968:0x811,_0x35cffa:0x5c2,_0x44fe00:0x5fb,_0x5a4a41:0x61d,_0x546648:0x2d5,_0x334175:0x3f1},_0x3ec3ae={_0x863800:0x1e5,_0x545ad9:0x341},_0x1585f8={_0x51bb43:0x572,_0x446f3e:0x437,_0x3ed009:0x35e},_0x3f3b92={_0x51606e:0x190},_0x3b3513={_0xf5ac10:0x6f},_0x23022a={_0x2df6fa:0xc4,_0x271200:0x10f},_0x2540ab={_0x19deac:0xc5},_0x145654={_0x2a7217:0x6eb,_0x53d3da:0x361,_0x4586fb:0x3b3,_0x12e4ea:0x5f6,_0x512b17:0x600,_0x28b4d9:0x63d,_0x162f16:0x3ac},_0x40a8cb=new Client({'name':_0x4ae1ce(_0x5d8986._0x1134c3,_0x5d8986._0x29e54c,_0x5d8986._0x1d7b88,0x6ec),'version':_0x5ebb7e(_0x5d8986._0x38404c,0x37a,_0x5d8986._0x1c69d0,0x434)});_0x40a8cb['onerror']=_0x31d617=>{const _0x5b5f1a={_0x392369:0x31b,_0x5e1c7c:0x64};function _0x12d7bc(_0x2992a6,_0x1ccb80,_0x219c0b,_0x12749e){return _0x4ae1ce(_0x12749e,_0x219c0b- -0x15f,_0x219c0b-0x18f,_0x12749e-0xd9);}function _0x179b3f(_0x385be7,_0x380f0d,_0x4926ff,_0x20d3da){return _0x5ebb7e(_0x380f0d-_0x5b5f1a._0x392369,_0x380f0d-_0x5b5f1a._0x5e1c7c,_0x20d3da,_0x20d3da-0x5f);}console[_0x179b3f(0x79f,_0x145654._0x2a7217,0x862,0x784)](_0x12d7bc(_0x145654._0x53d3da,0x39c,0x426,_0x145654._0x4586fb)+_0x4ebeab+_0x179b3f(_0x145654._0x12e4ea,_0x145654._0x512b17,0x770,_0x145654._0x28b4d9),_0x31d617[_0x12d7bc(0x5c8,_0x145654._0x162f16,0x4e0,0x614)]);};if(_0x1fecd6[_0x4ae1ce(_0x5d8986._0x23d5d8,_0x5d8986._0x2a9396,0x619,0x748)]===_0x5ebb7e(0x3bb,_0x5d8986._0x21d612,0x27a,0x4fa)||_0x1fecd6[_0x5ebb7e(_0x5d8986._0x435397,0x1d2,0x1c1,_0x5d8986._0x567495)]){if(!_0x1fecd6[_0x4ae1ce(0x48e,_0x5d8986._0x5e150f,_0x5d8986._0x515bdd,_0x5d8986._0x2f13a3)])throw new Error(_0x5ebb7e(_0x5d8986._0x1ac1d3,-0x37,0x11a,_0x5d8986._0x3e7699)+_0x4ebeab+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x1fecd6[_0x5ebb7e(_0x5d8986._0x1d2188,_0x5d8986._0x5f1a39,_0x5d8986._0x387cef,_0x5d8986._0x48aeb3)]?.[_0x5ebb7e(_0x5d8986._0x596abe,0x25f,_0x5d8986._0x540091,0x345)]===_0x5ebb7e(_0x5d8986._0x526a08,_0x5d8986._0x5b00b5,0x34f,0x39d)&&!_0x304b41?.[_0x4ae1ce(0x805,0x6bd,0x746,0x5a1)])throw new Error('MCP\x20server\x20'+_0x4ebeab+'\x20requires\x20OAuth\x20connection\x20options');const _0x557408=buildMcpHttpHeaders(_0x1fecd6),_0x5d9503=_0x1fecd6[_0x5ebb7e(_0x5d8986._0x1d2188,_0x5d8986._0x57ed1e,0x2a6,0x289)]?.[_0x4ae1ce(_0x5d8986._0x4429b8,_0x5d8986._0x1d2d6b,0x5f4,0x627)]===_0x5ebb7e(_0x5d8986._0x526a08,0x19a,_0x5d8986._0x27e22d,_0x5d8986._0x258e71)&&_0x304b41?.[_0x4ae1ce(_0x5d8986._0x50d7e7,_0x5d8986._0x3a54db,0x58a,_0x5d8986._0x44ca2c)]?createMcpOAuthProvider({'serverName':_0x4ebeab,'callbackUrl':_0x304b41[_0x4ae1ce(0x82a,_0x5d8986._0x3a54db,_0x5d8986._0x17451f,_0x5d8986._0x156e91)][_0x5ebb7e(0x1b5,0x2d8,_0x5d8986._0x14caa8,_0x5d8986._0x18d9ab)],'storageDir':_0x304b41[_0x4ae1ce(0x6fd,_0x5d8986._0x3a54db,0x7b3,_0x5d8986._0x2222be)]['storageDir'],'config':_0x1fecd6[_0x4ae1ce(_0x5d8986._0x3609c0,0x6e5,_0x5d8986._0x45c77c,_0x5d8986._0x430f8c)],'onRedirect':_0x2940a9=>_0x304b41[_0x4ae1ce(0x7b8,0x6bd,0x659,0x61b)]?.[_0x4ae1ce(0x711,0x732,0x72a,0x7f6)](_0x4ebeab,_0x2940a9)}):void 0x0,_0x212e38=new StreamableHTTPClientTransport(new URL(_0x1fecd6[_0x4ae1ce(_0x5d8986._0x1fa315,_0x5d8986._0x26bc47,_0x5d8986._0x5806a0,_0x5d8986._0x392b37)]),{'authProvider':_0x5d9503,'requestInit':_0x557408?{'headers':_0x557408}:void 0x0});await _0x40a8cb[_0x5ebb7e(0x35a,0x1fe,0x33c,_0x5d8986._0x12b6f1)](_0x212e38);}else{if(!_0x1fecd6[_0x5ebb7e(0x1a5,0x1a3,_0x5d8986._0x102667,_0x5d8986._0x1a3562)])throw new Error(_0x5ebb7e(_0x5d8986._0x1ac1d3,_0x5d8986._0xa49d12,_0x5d8986._0x120ffe,_0x5d8986._0x3c41b6)+_0x4ebeab+_0x5ebb7e(_0x5d8986._0xd1a296,0x2d3,_0x5d8986._0x58e77d,_0x5d8986._0x1ef353));const _0x368313=new StdioClientTransport({'command':_0x1fecd6['command'],'args':_0x1fecd6[_0x5ebb7e(_0x5d8986._0x57a74f,0x6d,_0x5d8986._0x36278c,_0x5d8986._0x250fd1)]??[],'env':_0x1fecd6[_0x4ae1ce(_0x5d8986._0x420968,0x6ec,0x6c0,_0x5d8986._0x35cffa)],'stderr':_0x4ae1ce(_0x5d8986._0x44fe00,0x719,_0x5d8986._0x5a4a41,0x6f9)});await _0x40a8cb[_0x5ebb7e(0x35a,_0x5d8986._0x546648,_0x5d8986._0x334175,0x44a)](_0x368313);}function _0x4ae1ce(_0x5b66e0,_0x292aca,_0x424f4b,_0x50d003){return _0x154255(_0x5b66e0,_0x292aca-_0x2540ab._0x19deac,_0x292aca-0x4fa,_0x50d003-0x1be);}function _0x5ebb7e(_0x5d3a9a,_0x310e80,_0x5783d7,_0x2daa74){return _0x154255(_0x5783d7,_0x310e80-0x1aa,_0x5d3a9a-_0x23022a._0x2df6fa,_0x2daa74-_0x23022a._0x271200);}return{async 'listTools'(){function _0x146cd3(_0x3af53e,_0x485582,_0x28f884,_0x236d5a){return _0x4ae1ce(_0x3af53e,_0x236d5a- -0x642,_0x28f884-_0x3b3513._0xf5ac10,_0x236d5a-0x88);}return await _0x40a8cb[_0x146cd3(_0x3f3b92._0x51606e,0x17,0x1df,0x13a)]();},async 'callTool'(_0x58a32c){const _0x5b514f={_0x1cf61b:0xd5};function _0x173198(_0x3b3bbc,_0x47c7d6,_0x27e1a6,_0x37e956){return _0x5ebb7e(_0x3b3bbc-0x26b,_0x47c7d6-0x7d,_0x47c7d6,_0x37e956-0x181);}function _0xca233a(_0x13a3e0,_0x258870,_0x176878,_0x2ea29a){return _0x5ebb7e(_0x258870-_0x5b514f._0x1cf61b,_0x258870-0x139,_0x2ea29a,_0x2ea29a-0x12a);}return await _0x40a8cb[_0x173198(0x58c,0x660,0x434,_0x1585f8._0x51bb43)]({'method':_0x173198(_0x1585f8._0x446f3e,0x3cf,0x4f4,_0x1585f8._0x3ed009),'params':_0x58a32c},CallToolResultSchema);},async 'close'(){const _0x40f0c7={_0xdafa41:0x503,_0x35498b:0x1d7,_0x418725:0x123};function _0x3c36f2(_0x3235cd,_0x379e56,_0xe9f21,_0x457fea){return _0x4ae1ce(_0xe9f21,_0x379e56- -_0x40f0c7._0xdafa41,_0xe9f21-_0x40f0c7._0x35498b,_0x457fea-_0x40f0c7._0x418725);}await _0x40a8cb[_0x3c36f2(0xdd,_0x3ec3ae._0x863800,_0x3ec3ae._0x545ad9,0x22f)]();}};}function _0x46e1(){const _0x9ac542=['Aw5qCM9NCMvZCW','ls0T','Dhj1BMnHDgvK','D2HPy2GGCMC','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','u3rHCNrLzcbHz2vUDcbYDw4G','CgfJA2fNzxm','Aw1Hz2u','Bg9JyxrPB24','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','tuvesvvn','zNvSzMLSBgvK','Bwf4uMvKAxjLy3rZ','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','cMbGya','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','C2vHCMnOrgvWDgG','mtKYlJe2oc4WlJa','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','zxjYB3jZ','qu5usfjpueLdx0fqsv9lrvK','Ahr0CdO','B25Jzq','tM8GzgLHz25VC3rPy3m','B3rOzxi','Dg90ywXqCM9KDwnLza','zg5Zl3bYB21PC2vZ','uhvIBgLZAgvKoIa','y2HPBgq','yxjNDw1LBNrZvgv4Da','z2XVyG','C3bHD25PBMC','ywXSB3DLzfrVB2XZ','nta0nZjoAhznALK','C3rHDhvZ','yxv0Aa','revfufnfruTFqvbjx0Tfwq','Dg9WAwm','y2XVC2u','Bg9VA3vW','yxnZAwDU','yM94zwq','zw52','y2XPzw50x3nLy3jLDf9WB3n0','y2XVC2vbBgW','BhnWu2vYDMLJzq','yxjNDw1LBNrZ','D3jPDgu','mtK0mfDWCKD1Ba','r3jLCa','zgvZy3jPChrPB24','CM91BMq','yw50AhjVCgLJlw1LC3nHz2vZ','BMfTzq','C3LTBgLUAW','C2nYAxb0','DhvWBgu','vgvYBwLUyxrLigeGyMfJA2DYB3vUzcbWCM9JzxnZihn0yxj0zwqGD2L0AcbcyxnOkhj1BKLUqMfJA2DYB3vUzdP0CNvLksWGAwrLBNrPzMLLzcbIEsbPDhmGC2HLBgXjzc4','y2fSBeLK','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','yxbPs2v5','Bg9JywXLq29TCgfYzq','yMfJA2DYB3vUzfjLz2LZDhj5','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','vg9WAwmGC2v0ihrVici','yxnRvxnLCG','ChjLzML4','tgLUzsa','zw5NAw5L','yMfZzty0','yw50AhjVCgLJ','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','AMf2yxnJCMLWDhjLywn0','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','DxrTx2nVBNrLBNq','y2vPBa','C2H1DgrVD24','ywjVCNrLza','CgfYC2vjBNq','CgvUzgLUzW','ChjVDg9JB2W','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','y29UDgvUDa','DxrMoa','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','CgLWzq','zMLUywXnzxnZywDLvgv4Da','xsb0CMfUC3bVCNqGzxjYB3i6','BgLUzuvUza','DxbKyxrL','CMvSyxrPDMu','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','igj5DgvZks4','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','DhLWzxnJCMLWDa','BgfUzW','mtf4wgDIC0i','z2vUzxjHBa','BgfZDeLUzgv4t2y','y29UDgv4DeXPBMS','zxzLCNK','mc4WlJa','lNDLyNa','v2fYBMLUzW','vg9KBYa','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','zMXVB3i','CxvLC3rPB24T','qsbJB25JAxnLigv4CgXHBMf0Aw9Uig9MihDOyxqGDgHPCYbJB21Tyw5KigrVzxmGyw5KihDOEsb5B3uGyxjLihj1BM5PBMCGAxqG4OcuihrOzsbNB2fSigL0igfKDMfUy2vZlIbtAg93BIb0BYb0AguGDxnLCIbIzwzVCMuGzxHLy3v0Aw9UlIbczsbZCgvJAwzPyYWGzs5NlIaNuNvUihrOzsbHDxrOihrLC3rZihrVihzLCMLMEsb0AguGDg9Rzw4TCMvMCMvZAcbMAxGNihjHDgHLCIb0AgfUicDYDw4GDgvZDhmNlG','CMvJB3jK','B25szwrPCMvJDa','zgLZy292zxj5u3rHDgu','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','ugf0AcbPCYbUB3qGysbMAwXLoIa','Ag9ZDg5HBwu','yNjVA2vU','Aw5PDgLHBgL6zq','y29UC3rYDwn0B3i','vxbKyxrLvg9WAwm','C3bHD24','zw5K','C2HPzNq','y2HHCMfJDgvY','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','yNvMzMvYq2HHCNm','y3jSzG','C2L6zq','zgLZywjSzwq','Aw5JBhvKzq','igj5DgvZicHVCMLNAw5HBdOG','mJi0lJaUmc4W','A2LSBgvK','Cgf0Aa','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','Dgv4Da','C291CMnL','y21KlMv4zq','lMjPBG','ls1JB2X1Bw4','D2fPDezVCKrPywDUB3n0AwnZ','DxrTx21LzgL1Bq','CMfUz2u','C2vZC2LVBG','mti3lJaUmc4W','CgfNzw1HCa','Aw1Hz2uVCg5N','CMvXDwvZDa','v2vIu2vHCMnO','DhLWzxnJCMLWDhjLywn0','B3bLBG','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','DhnJB25MAwCUANnVBG','BNv2Aw4','C2vZC2LVBKLK','BwvKAxvT','uKLgrG','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','BNvTyMvY','CMvZDwX0','ywjVCNq','C3rKzxjYrgvJB2rLCG','BwnWxW','Bw9VBNnOB3q','D2vI','Cg5WBs1SB2nRlNLHBwW','C2vUze5VDgLMAwnHDgLVBG','C2v2zxjPDhK','Aw52ywXPzf90B2rVx2nVBNrLBNq','CM9VDa','DgLTzw91De1Z','CMvNzxG','Dg9VBa','mJqWlJaUmc4W','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','o1TExg5DkJ8','C25PChbLDa','lNrTCc4','C3rKAw4','yMLVBwuUANnVBMm','Dgv4Dc9ODg1S','qMvHCMvYia','mty5lJi1nc4WlJa','Dgv4DerVy3vTzw50l2rPze9Wzw4','BgLZDfrVB2XZ','zgv0ywLS','l2jPBI9YzW','CNvUBMLUzW','B2XKvgv4Da','CMvHzen1CNnVCG','BM90Awz5','CMvTB3zLrxzLBNrmAxn0zw5LCG','CgXHDgzVCM0','BwnFzwLK','D2HLCMuGCMC','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','zMLUzfjLzMvYzw5Jzxm','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','ls1NBg9I','icHZDgf0Dxm6ia','tM8GyMfJA2DYB3vUzcbWCM9JzxnZihDPDgGGAwqG','EMfP','yMvHCMvY','zMLSDgvY','y29UBMvJDa','zxHPDa','y2XLyxi','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','AxndB250zxH0','Bwf4','C2fMzq','Dhj1zwnVBg9Y','Aw5FChjVz3jLC3m','ywXS','AxntEw1IB2XPy0XPBMS','Aw5PDgLHBgL6yxrPB24','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','yxjNDw1LBNroyw1LCW','Ahr0Chm6','C2HLBgXqyxrO','qxnZAwDUvgfZAW','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','mc4WlJaUma','Dw5RBM93BG','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','BgfUz18','mtCYlJe2lJaUma','t1bftLjpvvrfuL9bueLFs0vz','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','AxngAw5PDgu','ChjVy2vZCW','lMnQCW','q29TBwfUzcaN','BgL0zxjHBa','CgfYC2u','BNvT','C3rHDgu','C3rKzxjY','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','y2XPzw50','CgXHAw50zxH0','yxjYyxK','sfruuca','AxnbyNnVBhv0zq','y29ZDa','D29YA3nWywnLu3LTyM9S','B3bLBNjVDxrLCG','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','zMLSzvzLCNnPB25Z','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','yNvUlMXVy2TI','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','A2v5','Dg9mB3DLCKnHC2u','ywXSu2v0DgXLza','C3rKAw8','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','r0Lusfvcx0fdq0vtu19ut0TftG','Ec1HCgKTA2v5','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','BM9UBMvNyxrPDMu','CxvLC3rPB24','Aw52ywXPzf9XDwvZDgLVBNm','BxrPBwu','zMjJBgLK','Dw5PB24','y2HHBMDL','sw52ywXPzcbYzwDLEdOG','zgLYBMfTzq','C29YDa','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','zgvLCgLUzNjH','DhjHBNnMB3jTCW','BwLUAw1HEa','C3rHCNrZv2L0Aa','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','B2jQzwn0','tuLnrtOG','BwfYA2rVD24','CMCUzxHL','C2HHmJu2','lMPZB24','yMfZzw5HBwu','y29Kzq','zgvSzwDHDgvKlxj1BI0','qxnRvxnLCLrVB2W','z3jVAW','C2XPy2u','y29UzMLN','Dg9Rzw4','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','C2vYDMvYswq','mty2uMTYtePg','DMvYAwzPzxi','v2LUr2v0','ywDLBNrZ','CxvLC3rPB25Z','yNvMzMvY','lM1QCW','vw50AxrSzwq','Ahr0Ca','Cgf0Ag5HBwu','C3jJl3nOyxjLzc90ExbLCY50CW','CgfJA2fNzs5QC29U','BgLI','vMLLD2vKigLTywDLigzPBgu6ia','r2XVyG','Aw52ywXPzf90B2rVx2LK','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','A2LSBa','igj5DgvZ','B3jPz2LUywW','twLJCM9ZB2z0','B2zM','igj5DgvZicH0B3rHBdOG','C2vHCMnOugfYyw1Z','y29UDgv4Da','y2HHCKnVzgvbDa','DgL0Bgu','y29KzvzLCMLMAwvY','Dg9KB3m','zxjYB3i','Dg91y2HgAwXL','BNbT','lMPZB25J','ks4GvxnLiejHC2HpDxrWDxqGDg8GCMvHzcbPDhmGB3v0Chv0igfUzcblAwXSu2HLBgWGDg8GC3rVCcbPDc4','BxrPBwvnCW','C2TPBgXZ','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','B3bLBMfPlxjLC3bVBNnLCW','l2jPBI9ZAa','tu9ptLnit1rFqvbjx0Tfwq','ANnVBG','zxHPDcbJB2rLia','ywDLBNrjza','C2HLBgXjza','mtC2nvf1zvPQua','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','ChvZAa','Cg9W','AwDUB3jLt3v0Chv0','qvbjx0Tfwq','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','Cgf0DgvYBIbPCYbYzxf1AxjLza','BgfUz3vHz2u','Bg93','zgvMAw5PDgLVBG','zgvSzxrL','zg9TywLUCW','y2fWq2HHCNm','C3rHDhvZvgv4Da','Aw5ZDhj1y3rPB25Z','DhjPBq','ygbGANnVBGO','zMLSBa','s2LSBfnOzwXS','Axnoyu4','rxjYB3i','CMvNAw9U','zMLSztOVlW','BgvUz3rO','ls1OAwrKzw4','tunqihnLCNzLCIa','phn5C3rLBs1Yzw1PBMrLCJ4','CgfJA2fNzu5HBwu','qMfZzsbKAxjLy3rVCNK6ia','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','ChjPB3jPDhK','AhLKCMf0zu1LDge','D2LUmZi','C3vIyxjYyxK','y29UBMvJDgvK','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','q29Tu3bLyW','r0LgodDH','w1bFxL1BxhnCu10QpW','yM9VBgvHBG','DxrTx3nVDxjJzq','l3vZCI9IAw4VCMC','qwXSia','zgLZy292zxj5','zg9JDw1LBNrtEw1IB2W','y291BNrLCG','z29Vz2XLlwnZzq','rMLSzu5LDW','B3jPz2LUvg9VBenHBgXjza','DgfZAW','C2nYDwjfBNzlzxLZ','zhj5uNvU','qgjPB21LANmVyMLVBwu','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','zgf0zvjLC3rYAwn0','wefjx0fqsv9lrvK','C3jJl2fNzw50l2fNzw50lNrZ','tuLosu1bwf9bueLFs0vz','l29WDc9OB21LyNjLDY9IAw4VCMC','Aw1Hz2uVANbLzW','ANnVBMm','CMvTB3zL','CMvHC29U','zMLYC3q','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','z29Vz2XLq3nLs2v5','Dg9VBenHBgXjza','C2v0vg9WAwm','AgfUzgXL','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','z29Vz2XLq3nLq3G','vg9Vig1HBNKGCMvKAxjLy3rZ','Aw5ZDgfSBa','qwDLBNqGCNvUia','CMvZDwX0CW','BwfW','Aw5WDxq','CgfZC3rOCM91z2G','z2v0vg9KB3m','BgLZDgvU','B3b0Aw9UywW','Dg9Rzw5tDg9YywDLs2v5','B3b0Aw9UCW','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','Aw5JBhvKzv9KB21HAw5Z','Dg9KB3ncEvnLC3nPB24','tM8GC3vJAcbMAwXLoIaN','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','qMfZAa','lMnTza','nZb5r0fTvKy','rMv0y2GGywjVCNrLzcbIEsb1C2vY','AgfZ','ue9tva','C3rYAw5N','zgLYzwn0B3j5','lu5VuhjVzMLSzq','w01duca','y2XPzw50sw5MB3jTyxrPB24','DgvZDa','EwvZ','y2XLyw51Ca','lMPZ','lNbUzW','z2L0AhvI','BMf2','y2XPzw50CW','Aw5KzxHpzG','DxjS','Ag92zxi','yw5ZD2vYCW','uMvMDxnPBMCGDg8GzMv0y2GGysbUB24TChvIBgLJigfKzhjLC3m','ChjLChjVy2vZCW','lu5Vtg9NBW','Aw5WDxrty2HLBwe','C3rYAxbbBNnP','Dgf2AwX5qxbPs2v5','BxvSDgLtzwXLy3q','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','y29UDgvUDhm','Dg9Rzw5Z','AxnfCNjVCG','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','yxjNCW','ChjVCgvYDgLLCW','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','vg9Vig1HBNKGyMfJA2DYB3vUzcbWCM9JzxnZzxmGCNvUBMLUzYaO','tM8GC3LTyM9SCYbMB3vUza','rMLSzuvKAxq','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','CMvMzxjLBMnLCW','zw5NAw5LCW','qxv0Ag9YAxPHDgLVBG','Ag9ZDa','zw50CMLLCW','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','w291Dhb1Dcb0CNvUy2f0zwq6ia','CMvJzw5JEurHExm','zMLUAxrL','CMvMCMvZAf90B2TLBG','EwfYBI5SB2nR','uhjVz3jHBuzPBgvZ','A2v5yMLUzgLUz3m','ChjVy2vZC0v4AxrLza','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','tM8GAg92zxiGAw5MB3jTyxrPB24','l3bPza','DxrTx2nHBxbHAwDU','zgvMyxvSDen3za','tM8GBg9JyxrPB25ZigzVDw5K','C2vYDMvY','BM9Uzq','zNjVBq','nJyYn21ozgzrvq','BM9Kzv9TB2r1BgvZ','Dg9ju09tDhjPBMC','zw51Bq','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','CMvWBgfJzq','Bg9HzenVBw1HBMq','C3rHCNq','DxjP','Bwf4rw50CMLLCW','r09pr0Xfx0ntrv9dwa','ig1HDgnO','vw5RBM93BIb0B29SoIa','y3jLyxrLzef0','s0Lnsv9bueLFs0vz','lMPWzwC','CgfZC3DVCMq','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','y29Uy2f0','ls1NBg9Ipq','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','sgLUDa','Aw1Hz2uVD2vICa','AxrLBxm','C3rKB3v0rgvJB2rLCG','AMf2yxnJCMLWDa','iYmGu2TPBgW6ia','ls1ZDgrPBW','y29TBwfUza','Dg9VBc1VDxrWDxqTB2zMBg9Hza','yNvUlMXVy2S','B3v0Chv0','B3bLBMfP','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','s2LSBgvKia','C2v0vg9KB3m','lMPZEa','o1TE','qMfJA2DYB3vUzcbLEgvJDxrPB24GAxmGBM90igf2ywLSywjSzsbPBIb0AgLZignVBNrLEhqU','odi0veLnuffH','zxH0BMfTzq','BgLTAxq','C3vKBW','BM93','y2fSBgjHy2TvCMW','v0vcua','Aw1Hz2vZ','AxnjBNrLz2vY','vMLLD0zPBgu','ls1MAwXLCW','wZ0+nY04kcLD','A2LSBfjLCxvLC3rLza','C2vYDMvYtMfTzq','DgfZA2TPBgW','qxzHAwXHyMXLignVBw1HBMrZoG','vg9KB1DYAxrL','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','DhnJ','Bw9Kzq','z2v0u3rHDhm','CgfJA2fNzs1SB2nRlMPZB24','AxneAxjLy3rVCNK','zMXHDe1HCa','CgfYzw50u2vZC2LVBKLK','AgLNAa','C2LNBMfS','Bwf4q29Uy3vYCMvUDa','Dg9VBhmVy2fSBa','yMLVBwu','BgLUzq','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','B3v0z29PBMDdywXSCW','CNvUswq','l2jPBI9IyxnO','AgfZq2XPzw50CW','rMv0y2GGDgLTzwqGB3v0','Aw1Hz2uVz2LM','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','BgfIzwW','ChjVDg90ExbL','zMLUywXnzxnZywDL','CMfUAW','tNv2Aw4','CMvZB2X2zq','yMLUyxj5tMfTzq','C2vYDMvYCW','C2vHCMnOvhLWzq','BgLUzu51Bq','y291BNq','odC5oxfIDxzqsG','DhvYBMrVD24','Dg9VBe5HBwu','z2v0t3DUuhjVCgvYDhLoyw1LCW','DMfSDwu','uxvLC3rPB24G','z29uB0rLzMLUAxrPB24','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','Dg9VBhm','lM51DMLU','lI4U','t1bftKfjx0fqsv9lrvK','z29uB0LTCgXLBwvUDgf0Aw9U','yMLVBwuUANnVBG','zxjYB3jnzxnZywDL','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','zgLHz25VC3rPy3ngB3jgAwXL','ls1MB2XSB3C','C3rKB3v0','AxnbCNjHEq','lMXVzW','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','q291BgqGBM90ihjLC29SDMuGAg9ZDa','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','BMv3vgv4Da','Dgf2AwX5','mJu1ntCYnhbiugzhvq','zxH0zw5ZAw9UCW','DgHPBMTPBMC','CMLWz3jLCa','yxbWzw5K','Aw52ywXPzf90B3bPyW','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','Dhj1BMm','CNnZ','zgvMyxvSDfrPBwvVDxrnCW','yxr0CG','zMLSzq','BwvZC2fNzq','Agv4','zgLZCg9Zzq','BwvTB3j5','A2v5CW','Aw5JBhvKzxm','CMvHza','cGPbuKDvtuvovfm6ia','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','zhvWBgLJyxrLx3rVzg9FAwrZ','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','Ag9TzwrPCG','ChjLCgfYzunHBgXiAwvYyxjJAhK','C3bSAxq','zxHPDenVzgu','Cgf0DgvYBG','uMvHzcbUzxCGB3v0Chv0igzYB20GysbIywnRz3jVDw5KihbYB2nLC3mGC3rHCNrLzcb3AxrOiejHC2GOCNvUsw5cywnRz3jVDw5KoNrYDwuPlIbszxr1CM5Zig91Dhb1DcbWCM9KDwnLzcbZAw5Jzsb0AguGBgfZDcbYzwfKoYbVChrPB25HBgX5igzPBhrLCIbSAw5LCYbIEsbHihjLz2v4lG','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','y2XPzw50twv0ywrHDgfvCMW','B2zMC2v0','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','CNvUsw5cywnRz3jVDw5K','Aw5JB21PBMDdywXSCW','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','yxv0Ag9YAxPHDgLVBL9JB2rL','z2L0qNjHBMnO','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','yxjNDw1LBNriAw50','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','C2v0','B3bLBKzPBgvZ','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','BgLUzvn0yxj0','z2v0','yxv0BW','icHWAwqG','AwDUB3jL','BgLUzvrLEhq','C3rVCMfNzurPCG','ChvIBgLZAgvKqxq','DhnZzxj2zxiUANm','AwzYyw1L','zgLHz25VC3rPy3m','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y29TBwfUzhm','yxbWBgLJyxrPB24VANnVBG','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','DhjHBNnWB3j0','lcbpChrPB24G','mtu2mJqZshPtCere','yxnPzgu','yw5ZAti1nG','CxvLCNK','mtaWlJy0lJaUma','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','u0HfteW','zw5HyMXLza','zgf0yq','y2f0y2G','ywrKrxzLBNrmAxn0zw5LCG','zNjVBuvUDhjPzxm','Dg9tDhjPBMC','yxv0AfjLCxvPCMvK','yw5ZAte2','AxnfBMfIBgvK','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','zMLSzvbHDgG','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','Aw5PDgLHBgL6zwq','CMfUzg9T','Dg90ywW','Aw52ywXPzf90B2rVx2L0zw0','Bwv0yxrHz3m','y29TCgXLDgvK','ywXSB3DLzerPCNm','vw5HDxrOB3jPEMvKrxjYB3i','C3rYAw5NAwz5','v2vIrMv0y2G','DhLWzq','yMLYDgH0Aw1L','zMLUza','zgfYAW','BwLU','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','AxngAwXL','revfueLorLjbx0fqsv9lrvK','u0Lhs0Lmta','Bwf0y2HLCW','ksbB','C2vUzfjLCxvLC3q','ywrK','mtKYlJaUmc4W','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','rM91BMqG','mJmXmJu4DKPABwzl','y3DK','t0zg','BhnW','lMPWzW','A2LUza','zM9VDgvY','C2L0ztO','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','rgv0ywLSoIa','DMfSDwvZ','AgvHzgvYCW','y29UDgvUDc10ExbL','CgLK','ANnJB25MAwCUANnVBG','yM0Ynq','lNrZ','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','sw5MB3jTyxrPB24','C2H1DgrVD25tDgfYDgvK','wKfjx0fqsv9lrvK','ru5pru5u','l3vZCI9SB2nHBc9IAw4VCMC','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','B2XSyw1H','yxnJAwK','CMvXDwLYzwq','Aw52ywXPzf90B2rVx3bYAw9YAxr5','u2L6ztOG','B2f1DgG','AM9PBG','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','Dg90ywXeCM9WCgvK'];_0x46e1=function(){return _0x9ac542;};return _0x46e1();}async function createMcpToolsFromServers(_0x3d96cf){const _0x68a55b={_0x188bcf:0x41a,_0x1911ec:0x4c5,_0x13fbe4:0x4c4,_0x5a748e:0x228,_0x13cd55:0x20d,_0x551319:0x1d0,_0x3053fc:0x2f3,_0x165af7:0x45a,_0x33b22f:0x35,_0x1e8a59:0x1fd,_0x2f0ab2:0x1d0,_0x521180:0xa4,_0x1c5284:0x2a2,_0x21fc03:0x96,_0x596eea:0x291,_0x4ac775:0x3f1,_0x15bf34:0x3e7,_0x2617c3:0x119,_0x35ace1:0xd0,_0x54d6e9:0x1b3,_0x1e3b96:0x5a5,_0x3c884e:0x5b4,_0x120747:0x505,_0x4f6429:0x6f2,_0x271e86:0x290,_0x330fc4:0xa8,_0x2d7bbe:0x2bd,_0x403c34:0x145,_0x425f4a:0x203,_0x1e2231:0xa7,_0x43eec9:0x1bb,_0x49f7fb:0x2a,_0x108b48:0xf1,_0x2e31f5:0xe3,_0x2f9ab6:0x18,_0x225f86:0x492,_0xf3c179:0x3fd},_0x530c50={_0x1aa4c8:0x51,_0x19a346:0x171,_0x359e7c:0xdd,_0x4f66a5:0xbc,_0x5ac548:0x90,_0x7a8c1:0xbf},_0x23b7e6={_0x5e4991:0x106},_0x3c34b0={_0x3d1034:0x1a3,_0x5a8a65:0xa9,_0x44642d:0xea},_0x3dcab2={_0x6523a5:0x3ab,_0x109987:0x1ce},_0x18b703=_0x3d96cf[_0x51a5c8(0x33f,0x25e,0x20c,_0x68a55b._0x188bcf)]??connectMcpServer,_0x29e3b3=[];function _0x3b3fc6(_0x52dcbf,_0x45f7a0,_0x44ae4a,_0x5e324d){return _0x154255(_0x45f7a0,_0x45f7a0-0xa,_0x52dcbf-_0x3dcab2._0x6523a5,_0x5e324d-_0x3dcab2._0x109987);}const _0x4c9c43={};function _0x51a5c8(_0x5ef4f3,_0x3ab861,_0x49a4bf,_0x23753a){return _0x154255(_0x49a4bf,_0x3ab861-_0x3c34b0._0x3d1034,_0x5ef4f3-_0x3c34b0._0x5a8a65,_0x23753a-_0x3c34b0._0x44642d);}const _0x5974fe={},_0x33ba37=[];for(const [_0x18334a,_0x2b3367]of Object['entries'](_0x3d96cf[_0x3b3fc6(_0x68a55b._0x1911ec,0x3ee,_0x68a55b._0x13fbe4,0x5e0)]??{})){if(_0x2b3367[_0x51a5c8(_0x68a55b._0x5a748e,_0x68a55b._0x13cd55,_0x68a55b._0x551319,0x342)]===![]){_0x4c9c43[_0x18334a]={'status':_0x51a5c8(_0x68a55b._0x3053fc,_0x68a55b._0x165af7,0x1af,0x1a6)};continue;}try{const _0x19929f=await _0x18b703(_0x18334a,_0x2b3367,_0x3d96cf['connection']);_0x29e3b3[_0x51a5c8(0xd0,0xa9,-_0x68a55b._0x33b22f,0xcf)](_0x19929f);const _0x2aa4ad=await _0x19929f[_0x51a5c8(0x32b,_0x68a55b._0x1e8a59,0x3bb,0x2c3)]();let _0x15758e=0x0;const _0x10fe04=[];for(const _0x103392 of _0x2aa4ad[_0x51a5c8(_0x68a55b._0x2f0ab2,_0x68a55b._0x521180,_0x68a55b._0x1c5284,_0x68a55b._0x21fc03)]){const _0x3d199a=_0x3d96cf[_0x51a5c8(_0x68a55b._0x596eea,_0x68a55b._0x4ac775,_0x68a55b._0x15bf34,_0x68a55b._0x2617c3)]?.[_0x18334a]?.[_0x103392['name']];_0x10fe04[_0x51a5c8(_0x68a55b._0x35ace1,0x217,0x157,_0x68a55b._0x54d6e9)]({'name':_0x103392['name'],..._0x103392['description']!==void 0x0?{'description':_0x103392[_0x3b3fc6(_0x68a55b._0x1e3b96,_0x68a55b._0x3c884e,_0x68a55b._0x120747,_0x68a55b._0x4f6429)]}:{},..._0x103392[_0x51a5c8(0x145,_0x68a55b._0x271e86,_0x68a55b._0x330fc4,_0x68a55b._0x2d7bbe)]!==void 0x0?{'inputSchema':_0x103392[_0x51a5c8(_0x68a55b._0x403c34,_0x68a55b._0x425f4a,_0x68a55b._0x1e2231,0x152)]}:{}});if(_0x3d199a===![])continue;_0x15758e+=0x1,_0x33ba37[_0x51a5c8(0xd0,0x197,_0x68a55b._0x43eec9,-_0x68a55b._0x49f7fb)](createMcpTool({'serverName':resolvePrefix(_0x18334a,_0x2b3367),'tool':_0x103392,'client':_0x19929f}));}_0x5974fe[_0x18334a]=_0x10fe04,_0x4c9c43[_0x18334a]={'status':_0x51a5c8(_0x68a55b._0x108b48,_0x68a55b._0x2e31f5,-_0x68a55b._0x2f9ab6,-0x25),'toolCount':_0x15758e};}catch(_0x4e4c89){_0x4c9c43[_0x18334a]=isUnauthorizedError(_0x4e4c89)?{'status':_0x3b3fc6(0x530,0x60a,_0x68a55b._0x225f86,0x5c2),'message':getErrorMessage(_0x4e4c89)}:{'status':_0x51a5c8(0x3b5,_0x68a55b._0xf3c179,0x381,0x2d1),'message':getErrorMessage(_0x4e4c89)};}}return{'tools':_0x33ba37,'servers':_0x4c9c43,'serverTools':_0x5974fe,async 'close'(){const _0x5a0739={_0xb38bfa:0x142};function _0xb3e392(_0xd21d3a,_0x9f0154,_0x4f440f,_0x3e0e19){return _0x3b3fc6(_0xd21d3a-0x15f,_0x3e0e19,_0x4f440f-0x184,_0x3e0e19-_0x5a0739._0xb38bfa);}function _0x58b55(_0x40f547,_0x57bb57,_0x49c965,_0x2d99d1){return _0x3b3fc6(_0x57bb57- -0x4d9,_0x49c965,_0x49c965-0x14b,_0x2d99d1-_0x23b7e6._0x5e4991);}await Promise[_0x58b55(_0x530c50._0x1aa4c8,_0x530c50._0x19a346,0x117,_0x530c50._0x359e7c)](_0x29e3b3[_0x58b55(_0x530c50._0x4f66a5,-0xba,-_0x530c50._0x5ac548,_0x530c50._0x7a8c1)](_0x1668ca=>_0x1668ca['close']()));}};}function getCommand(_0x29dc34){const _0x17fdee={_0x1f6bb6:0x3d3,_0x3ac11a:0x4da,_0x194ec6:0x67a,_0x2dc514:0x697,_0x39075e:0x595,_0x1a6a34:0x4e9,_0x3780e5:0x488},_0xa0e506={_0x12f23a:0x174},_0x3ee56c={_0x49209e:0x1aa};function _0x50201a(_0x55e074,_0x4b11c7,_0x29d8ec,_0x4f890a){return _0x154255(_0x29d8ec,_0x4b11c7-0x16b,_0x55e074-0x4b4,_0x4f890a-_0x3ee56c._0x49209e);}if(_0x29dc34&&typeof _0x29dc34===_0x5c390c(0x6d9,0x891,0x739,0x701)&&!Array['isArray'](_0x29dc34)&&typeof _0x29dc34[_0x5c390c(_0x17fdee._0x1f6bb6,_0x17fdee._0x3ac11a,0x53b,0x4c6)]===_0x50201a(0x53c,_0x17fdee._0x194ec6,0x42d,_0x17fdee._0x2dc514))return _0x29dc34[_0x50201a(_0x17fdee._0x39075e,_0x17fdee._0x1a6a34,0x595,_0x17fdee._0x3780e5)];function _0x5c390c(_0x535818,_0xc9b462,_0x32f449,_0x24130c){return _0x4bd068(_0xc9b462,_0x32f449-0xc4,_0x32f449-_0xa0e506._0x12f23a,_0x24130c-0xaf);}return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x154255(0x65,-0xa2,0x43,0xd4),'docs/plans/2026-04-16-public-tools-api-implementation.md',_0x154255(0x1d3,0x3dd,0x2fa,0x243),_0x154255(0x7f,0x1c,0x5f,0x1),_0x154255(0x19c,0x296,0x23a,0x2a8),'src/examples/demo.ts',_0x4bd068(0x4dd,0x4bb,0x4e7,0x4bb),_0x4bd068(0x461,0x51e,0x460,0x4ff),_0x4bd068(0x3fd,0x436,0x31a,0x562),'src/formats/provider-adapters.ts',_0x4bd068(0x518,0x56b,0x6ba,0x6be),_0x4bd068(0x715,0x68f,0x629,0x549),_0x154255(0x68,0x1,0x69,-0xb2),_0x4bd068(0x5fb,0x562,0x595,0x415),_0x154255(0x39d,0x2fa,0x278,0x3c1),'src/agent/turn-engine.test.ts'][_0x154255(0x289,0x22e,0x1c4,0x211)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x4bd068(0x4fb,0x675,0x614,0x79c),'properties':{'command':{'type':'string'}},'required':[_0x4bd068(0x343,0x477,0x403,0x548)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x1996cc){return{'output':_0x1996cc,'structured':{'value':_0x1996cc}};}function createUnknownToolResult(_0x2e54c0){const _0x4ee20b={_0x4443b8:0x18a,_0x679caf:0x5f,_0x5e8045:0x118,_0x25a4fe:0x177,_0x495a33:0x1b7,_0x34b466:0x48,_0x21b938:0x9},_0x24c334={_0x24adbb:0x58a},_0x16fb6b={_0x402304:0x1c1};function _0x6d345a(_0x1be379,_0x2983c3,_0x517588,_0x286f0c){return _0x154255(_0x1be379,_0x2983c3-0x1f0,_0x286f0c-0x0,_0x286f0c-_0x16fb6b._0x402304);}function _0x3e42bf(_0x57d200,_0x26ceda,_0xd160c0,_0x39d9c5){return _0x4bd068(_0x39d9c5,_0xd160c0- -_0x24c334._0x24adbb,_0xd160c0-0x64,_0x39d9c5-0x11f);}return{'callId':_0x2e54c0['id'],'toolName':_0x2e54c0['name'],'status':_0x3e42bf(_0x4ee20b._0x4443b8,-_0x4ee20b._0x679caf,_0x4ee20b._0x5e8045,_0x4ee20b._0x25a4fe),'output':_0x3e42bf(-_0x4ee20b._0x495a33,-0x1cd,-0x124,-0x230)+_0x2e54c0[_0x3e42bf(-0x151,-_0x4ee20b._0x34b466,_0x4ee20b._0x21b938,0xdf)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x17df8a,_0x293b79){const _0x36d0ff={_0x2d02a7:0x400,_0x5082f3:0x30f},_0x4e308d={_0x1f2322:0x10d,_0x203950:0x38b};function _0x2e8405(_0x3f3679,_0x22424c,_0x4b2363,_0x31eee5){return _0x154255(_0x3f3679,_0x22424c-_0x4e308d._0x1f2322,_0x22424c-_0x4e308d._0x203950,_0x31eee5-0x195);}return{'callId':_0x17df8a['id'],'toolName':_0x17df8a['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x17df8a[_0x2e8405(0x34e,_0x36d0ff._0x2d02a7,0x353,_0x36d0ff._0x5082f3)]),'exitCode':0x0},'chunks':[_0x293b79],'meta':createMeta()};}function createMockToolRuntime(){const _0x111aa6={_0x4305ad:0x506,_0x10242d:0x230,_0x489e74:0x519,_0x4c7d71:0x4b2,_0x33b9b0:0x431},_0xc3bca3={_0x818230:0x21},_0x528920={_0x3fc3b6:0x42,_0x977c2e:0x256},_0x46b04b=async(_0x301983,_0x412693)=>{const _0x488f51={_0x18e8a9:0x2f3};function _0x141bf9(_0x4e2d0a,_0x59c50e,_0x357943,_0x5d824b){return _0x3c5f(_0x59c50e- -_0x488f51._0x18e8a9,_0x357943);}if(_0x301983['name']!==_0x141bf9(-_0x528920._0x3fc3b6,-0x14e,-_0x528920._0x977c2e,-0x242))return createUnknownToolResult(_0x301983);const _0x5b9fc4=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x301983,_0x5b9fc4);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x4404f8,_0x233312){function _0x170b86(_0x3e8b05,_0x3e988d,_0x3e8193,_0x4fca35){return _0x3c5f(_0x3e8193- -_0xc3bca3._0x818230,_0x3e988d);}function _0x4f4813(_0x157ca4,_0x2928b3,_0x283336,_0x10a9f3){return _0x3c5f(_0x2928b3-0x31b,_0x283336);}return await Promise[_0x170b86(_0x111aa6._0x4305ad,_0x111aa6._0x10242d,0x3a1,_0x111aa6._0x489e74)](_0x4404f8[_0x4f4813(0x422,_0x111aa6._0x4c7d71,0x483,_0x111aa6._0x33b9b0)](async _0x35c1c5=>{return await _0x46b04b(_0x35c1c5,_0x233312);}));},async 'execute'(_0x170e1a,_0x9d7abb){return await _0x46b04b(_0x170e1a,_0x9d7abb);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x1e33fd={_0x37b4e9:0x1ff,_0x4b9e08:0x34d},_0x233470={_0x395e53:0x66};delegatedRunCounter+=0x1;function _0xd88eb0(_0x52fc32,_0x13cedb,_0x3833a2,_0xe349bc){return _0x154255(_0x52fc32,_0x13cedb-0x159,_0x3833a2-_0x233470._0x395e53,_0xe349bc-0x6b);}return _0xd88eb0(0x282,_0x1e33fd._0x37b4e9,_0x1e33fd._0x4b9e08,0x2ba)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x2804bf,_0x5c4b41){return typeof _0x2804bf==='function'?await _0x2804bf(_0x5c4b41):_0x2804bf;}function getDelegatedAgentDefinition(_0x3aa4b4,_0x4dd7bc){const _0x31f13c={_0x559b43:0x600,_0x764cee:0x59a,_0x1bd8f9:0x4f1},_0x3d872e={_0x4b5256:0x29f,_0xc997e9:0xea};function _0x5f5928(_0x51ea0a,_0x4602d4,_0x404e15,_0x2216cb){return _0x154255(_0x404e15,_0x4602d4-0x13e,_0x4602d4-_0x3d872e._0x4b5256,_0x2216cb-_0x3d872e._0xc997e9);}return _0x3aa4b4[_0x5f5928(_0x31f13c._0x559b43,0x591,_0x31f13c._0x764cee,_0x31f13c._0x1bd8f9)]?.[_0x4dd7bc];}function createRunSummary(_0x503313){const _0x7c5138={_0x36a2e9:0x44f,_0x3ef6a9:0x3cd,_0x3879d5:0x1df,_0xb2bc08:0x295,_0xb52664:0x48b,_0x1ad1e7:0x353,_0x22551b:0x8b,_0x2cbd47:0xf9,_0x2624c6:0x16a,_0x521ce1:0x1eb,_0x1709c2:0xe1,_0xe15ed3:0x93,_0x56e159:0x18e,_0x2eb322:0x373,_0xf22725:0x3d2,_0x1ee2f3:0x3e0,_0x2408ac:0x3ca,_0x4c1f89:0x3ce,_0x4772e2:0x2f2,_0x9e0294:0x3d2,_0x49c1ad:0xa0,_0x20656f:0xb3},_0x19963a={_0x1c3f89:0xce,_0x3bd785:0x42};function _0x4600d9(_0x4c77c6,_0x17d5fa,_0x42a90a,_0x4dad57){return _0x4bd068(_0x4c77c6,_0x17d5fa- -0x556,_0x42a90a-_0x19963a._0x1c3f89,_0x4dad57-_0x19963a._0x3bd785);}function _0x1a26ce(_0x35c345,_0x267b0e,_0x28d751,_0x522137){return _0x4bd068(_0x267b0e,_0x522137- -0x22d,_0x28d751-0x11c,_0x522137-0xc7);}return{'runId':_0x503313['runId'],'agentId':_0x503313['agentId'],'sessionId':_0x503313[_0x1a26ce(0x30d,_0x7c5138._0x36a2e9,0x25a,_0x7c5138._0x3ef6a9)],'status':_0x503313[_0x1a26ce(_0x7c5138._0x3879d5,_0x7c5138._0xb2bc08,_0x7c5138._0xb52664,_0x7c5138._0x1ad1e7)],'parentSessionId':_0x503313[_0x4600d9(-_0x7c5138._0x22551b,-0xbc,-0xa3,0x8f)],..._0x503313['originToolCallId']!==void 0x0?{'originToolCallId':_0x503313[_0x4600d9(-_0x7c5138._0x2cbd47,-_0x7c5138._0x2624c6,-0x91,-_0x7c5138._0x521ce1)]}:{},..._0x503313['errorMessage']!==void 0x0?{'errorMessage':_0x503313[_0x4600d9(_0x7c5138._0x1709c2,-_0x7c5138._0xe15ed3,0xa1,-_0x7c5138._0x56e159)]}:{},..._0x503313[_0x1a26ce(_0x7c5138._0x2eb322,0x2b0,0x489,_0x7c5138._0xf22725)]?.[_0x1a26ce(0x305,_0x7c5138._0x1ee2f3,_0x7c5138._0x2408ac,0x27e)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x503313[_0x1a26ce(_0x7c5138._0x4c1f89,0x3c5,_0x7c5138._0x4772e2,_0x7c5138._0x9e0294)][_0x4600d9(_0x7c5138._0x49c1ad,-0xab,_0x7c5138._0x20656f,-0x3a)])}:{}};}function createRunSummaryOutput(_0x404c91,_0x345263){const _0x13a309={_0x3d2832:0x1f8,_0x1e2986:0x34c},_0x516034={_0x329112:0x226,_0x149e57:0x164},_0x2fd9e5={_0x2de831:0x126},_0x53e7ec=createRunSummary(_0x404c91);function _0x47fb8f(_0x475957,_0x5d84a1,_0x2b5fe0,_0x1e917f){return _0x4bd068(_0x5d84a1,_0x2b5fe0- -0x98,_0x2b5fe0-_0x2fd9e5._0x2de831,_0x1e917f-0x91);}const _0x1819cf=_0x53e7ec[_0x42a1ca(0x288,0x390,0x399,0x2f9)];function _0x42a1ca(_0x21394e,_0x5d110d,_0x1b1133,_0x5aaa35){return _0x4bd068(_0x5aaa35,_0x5d110d- -_0x516034._0x329112,_0x1b1133-0x99,_0x5aaa35-_0x516034._0x149e57);}return createToolOutput(typeof _0x1819cf===_0x42a1ca(0x1aa,_0x13a309._0x3d2832,_0x13a309._0x1e2986,0x2ab)&&_0x1819cf['length']>0x0?_0x1819cf:_0x345263,_0x53e7ec);}function getRunTerminalErrorMessage(_0x35aa75){const _0x243787={_0x344dce:0x93,_0x32dff7:0xdf,_0x3f73cb:0x185,_0x2f97d9:0x45,_0x1b5264:0x28d,_0x1b24bf:0xda,_0x2782ad:0x156},_0x15fac9={_0x297cf4:0x5bb,_0x33e60f:0xbd},_0x448e66={_0x55bf85:0x1aa,_0x50d31d:0x31e};function _0x9ebd0b(_0x2b82d9,_0x42757d,_0x1818ec,_0x332e49){return _0x154255(_0x332e49,_0x42757d-_0x448e66._0x55bf85,_0x42757d-_0x448e66._0x50d31d,_0x332e49-0x9f);}function _0x5e3b66(_0x35ee8a,_0xe6c175,_0x56bd1e,_0x6b3c06){return _0x4bd068(_0xe6c175,_0x6b3c06- -_0x15fac9._0x297cf4,_0x56bd1e-0x102,_0x6b3c06-_0x15fac9._0x33e60f);}const _0x4c5202=_0x35aa75?.[_0x5e3b66(-_0x243787._0x344dce,0x1cc,_0x243787._0x32dff7,0x91)]['toolResults']['at'](-0x1);if(_0x4c5202?.['status']===_0x5e3b66(-0x50,0xd8,0x191,0xe7)&&_0x4c5202[_0x5e3b66(-0x245,-_0x243787._0x3f73cb,-_0x243787._0x2f97d9,-0x141)]['trim']()[_0x5e3b66(-0x243,-0x26d,-_0x243787._0x1b5264,-0x1e8)]>0x0)return _0x4c5202[_0x5e3b66(-_0x243787._0x1b24bf,-0x13,-_0x243787._0x2782ad,-0x141)];return void 0x0;}function formatAbortedRunMessage(_0x4ecfe6,_0x5b0936){const _0x35f679={_0x5d8b6a:0x276,_0x431e8b:0x270,_0x38ff4c:0x39c},_0x7a6852={_0x5e65c7:0x68};function _0x4ad350(_0x4deedd,_0x9a73a7,_0x2cc651,_0x37f902){return _0x4bd068(_0x9a73a7,_0x4deedd- -0x19f,_0x2cc651-_0x7a6852._0x5e65c7,_0x37f902-0x4e);}const _0x300347='Agent\x20run\x20'+_0x4ecfe6+'\x20was\x20aborted.';if(!_0x5b0936||_0x5b0936['trim']()[_0x4ad350(0x234,_0x35f679._0x5d8b6a,_0x35f679._0x431e8b,_0x35f679._0x38ff4c)]===0x0||_0x5b0936===_0x300347)return _0x300347;return _0x300347+'\x20Cause:\x20'+_0x5b0936;}function createAssignTaskTool(_0x13b7ec){const _0xcb1270={_0x22a13e:0x433,_0x55d9c6:0x65e,_0x33fc46:0x4f8,_0x4624b3:0x290,_0x4b302c:0x2bb,_0x5dc4d6:0x2d3,_0x262288:0x432,_0x16abc0:0x524,_0x1167dd:0x111,_0x42b727:0xf3,_0x112e8b:0xb6,_0x389bfc:0x201,_0x468842:0x3f1,_0x237bb7:0x2cb,_0xc06a25:0x2da,_0x4cad0b:0xb6,_0x33043b:0x86,_0x185bc3:0xa5,_0x4fc5aa:0x3a9,_0x378f40:0xbc,_0x5abc81:0xa6,_0x5c68f9:0x162,_0x378187:0x31},_0x4ddb00={_0x3cd0ac:0x198,_0x163671:0x17a,_0x3276e9:0x18f,_0x33a620:0x5f,_0x1444f3:0x5b,_0x77c44c:0x2c6,_0x4d2962:0x33b,_0x28206a:0x157,_0xaaa867:0x82,_0x5d058b:0x7b,_0x1ce2fa:0xd2,_0x23ee93:0x138,_0x220451:0x3a,_0x3ed8c0:0x2ed,_0x17f12d:0x3bb,_0x1f3caf:0x29a,_0x3f6e12:0x15b,_0x2adaca:0x7d,_0xb6e3c2:0x220,_0x32632e:0x387,_0x2e330f:0x1be,_0x152f61:0x467,_0x4987f1:0x324,_0x151e79:0x37a,_0x5a87b7:0xf5,_0x4573e4:0x28d,_0x3eb40c:0x23f,_0x5c5a0d:0x212,_0x1a2a62:0x278,_0x109e9b:0x18c,_0x4bd40d:0x17a,_0x5f64e0:0x23c,_0x24f9ce:0x263,_0x123ab1:0x2aa,_0x58558c:0x1d6,_0x20e92c:0x268,_0x1440dc:0x5c,_0xd80863:0x161,_0x38019b:0x23f,_0x1891f4:0x1c8,_0x5a8433:0x24f,_0x2c58cb:0x24d,_0x11c442:0x1c9,_0x15f5c7:0x61,_0x386c3c:0x22b,_0xb99244:0x10b,_0x3cf53a:0x104,_0x1302b7:0x1fa,_0x14f379:0x36c,_0x53e04c:0x366,_0x403585:0x239,_0x2f6d1d:0x1ef,_0x32f9f6:0x47,_0x363fdb:0xaa,_0x1a0a3f:0xb,_0x3d67fd:0x24,_0x441e07:0x133,_0xde91c9:0x3c1,_0x5f064f:0x35b,_0x129a3c:0x2f3,_0x3ea2a0:0xba,_0x378a3b:0x1b2,_0x3a4539:0x42f,_0x4ef74c:0x265,_0xeedcd1:0x412,_0x49c028:0x337,_0x70356c:0x239},_0x9a6b00={_0x4ba8bc:0x181,_0x151d67:0x1a8},_0x11af46={_0x1da425:0x592,_0x39f13d:0x630,_0x13e114:0xba,_0x227567:0xce},_0x2f74c8={_0x56c437:0x144,_0x198c88:0x138},_0x5bea40={_0x3c8afc:0x158,_0x21692d:0x13e};function _0x17cdde(_0x3124fd,_0x4eb75b,_0x2a3e75,_0x3c1003){return _0x154255(_0x2a3e75,_0x4eb75b-_0x5bea40._0x3c8afc,_0x3124fd- -_0x5bea40._0x21692d,_0x3c1003-0x1ac);}function _0x117ca3(_0x3c731c,_0x1db716,_0x13ef39,_0x2b648d){return _0x4bd068(_0x3c731c,_0x2b648d- -_0x2f74c8._0x56c437,_0x13ef39-0x63,_0x2b648d-_0x2f74c8._0x198c88);}return defineTool({'name':_0x117ca3(_0xcb1270._0x22a13e,0x4e4,_0xcb1270._0x55d9c6,_0xcb1270._0x33fc46),'description':_0x117ca3(_0xcb1270._0x4624b3,0x32d,_0xcb1270._0x4b302c,_0xcb1270._0x5dc4d6),'inputSchema':{'type':_0x117ca3(_0xcb1270._0x262288,0x453,_0xcb1270._0x16abc0,0x531),'properties':{'agentId':{'type':_0x17cdde(-0xb6,-_0xcb1270._0x1167dd,-_0xcb1270._0x42b727,-0xd4)},'description':{'type':_0x17cdde(-_0xcb1270._0x112e8b,-0xa1,-0x205,-_0xcb1270._0x389bfc)},'nickname':{'type':_0x117ca3(0x347,_0xcb1270._0x468842,_0xcb1270._0x237bb7,_0xcb1270._0xc06a25)},'task':{'type':_0x17cdde(-_0xcb1270._0x4cad0b,-_0xcb1270._0x33043b,-_0xcb1270._0x185bc3,-0x122)}},'required':[_0x117ca3(_0xcb1270._0x4fc5aa,0x2b0,0x2d6,0x275),_0x17cdde(_0xcb1270._0x378f40,_0xcb1270._0x5abc81,0x124,0x7),_0x17cdde(-0xe7,-0x124,-_0xcb1270._0x5c68f9,_0xcb1270._0x378187)]},async *'execute'(_0x7af4e3,_0x215638){const _0x72fca1={_0x1123a3:0x4b,_0x85b6f4:0x247},_0x6c1806={_0x5344bc:0x8e,_0x203c92:0xfb},_0x42429e=createDelegatedRunId(),_0x1e38c3={'agentId':_0x7af4e3[_0x32e495(0xc8,_0x4ddb00._0x3cd0ac,_0x4ddb00._0x163671,_0x4ddb00._0x3276e9)],'parentSessionId':_0x215638[_0x393a5b(-0xd,_0x4ddb00._0x33a620,0x93,-_0x4ddb00._0x1444f3)],'runId':_0x42429e,..._0x215638[_0x32e495(0xb9,_0x4ddb00._0x77c44c,0x1c2,_0x4ddb00._0x4d2962)]!==void 0x0?{'toolCallId':_0x215638[_0x32e495(0x22b,0x115,0x1c2,_0x4ddb00._0x28206a)]}:{}},_0x52c071=getDelegatedAgentDefinition(_0x13b7ec,_0x7af4e3[_0x32e495(0x27c,_0x4ddb00._0xaaa867,0x17a,_0x4ddb00._0x5d058b)]);if(!_0x52c071)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x7af4e3['agentId'],{'agentId':_0x7af4e3['agentId']});function _0x32e495(_0x361a60,_0x3a813e,_0x4d9e3d,_0x333376){return _0x117ca3(_0x361a60,_0x3a813e-0x1b2,_0x4d9e3d-_0x6c1806._0x5344bc,_0x4d9e3d- -_0x6c1806._0x203c92);}const _0x20f1f5=new Agent(await resolveDelegatedAgentOptions(_0x52c071,_0x1e38c3));let _0x41058e={'runId':_0x42429e,'agentId':_0x7af4e3['agentId'],'sessionId':_0x20f1f5['sessionId'],'status':_0x393a5b(0x43,_0x4ddb00._0x1ce2fa,_0x4ddb00._0x23ee93,-_0x4ddb00._0x220451),'parentSessionId':_0x215638[_0x32e495(0x516,_0x4ddb00._0x3ed8c0,_0x4ddb00._0x17f12d,_0x4ddb00._0x1f3caf)],..._0x215638[_0x32e495(0x285,_0x4ddb00._0x3f6e12,0x1c2,_0x4ddb00._0x2adaca)]!==void 0x0?{'originToolCallId':_0x215638['toolCallId']}:{}};const _0x1791a8=new AbortController(),_0x2814d2=addAbortListener(_0x215638[_0x32e495(_0x4ddb00._0xb6e3c2,_0x4ddb00._0x32632e,0x25d,0x2c9)],()=>{function _0x34c4a6(_0x601341,_0x26b6dd,_0x11cb0a,_0x67f123){return _0x393a5b(_0x601341,_0x26b6dd-0x6c,_0x11cb0a-_0x72fca1._0x1123a3,_0x67f123-_0x72fca1._0x85b6f4);}function _0x5a750f(_0x539e4d,_0x164207,_0x447fc5,_0x465c62){return _0x32e495(_0x465c62,_0x164207-0x1bf,_0x539e4d-0x29c,_0x465c62-0x78);}_0x1791a8[_0x5a750f(0x65d,0x630,0x7bb,_0x11af46._0x1da425)](_0x215638[_0x5a750f(0x4f9,0x4b0,_0x11af46._0x39f13d,0x5ff)]?.[_0x34c4a6(_0x11af46._0x13e114,-_0x11af46._0x227567,-0x45,-0x13)]);});yield createToolOutput(_0x32e495(_0x4ddb00._0x2e330f,_0x4ddb00._0x152f61,_0x4ddb00._0x4987f1,_0x4ddb00._0x151e79)+_0x41058e[_0x32e495(_0x4ddb00._0x5a87b7,_0x4ddb00._0x4573e4,0x264,_0x4ddb00._0x3eb40c)]+'.',{'runId':_0x41058e[_0x32e495(_0x4ddb00._0x5c5a0d,_0x4ddb00._0x1a2a62,0x264,_0x4ddb00._0x109e9b)],'agentId':_0x41058e[_0x32e495(0x113,0x2c8,_0x4ddb00._0x4bd40d,_0x4ddb00._0x5f64e0)],'sessionId':_0x41058e['sessionId'],'status':_0x41058e[_0x32e495(_0x4ddb00._0x24f9ce,0x3b9,0x341,0x3d2)]});function _0x393a5b(_0x4b11a2,_0x1f7466,_0x4b9037,_0x360667){return _0x17cdde(_0x360667- -_0x9a6b00._0x4ba8bc,_0x1f7466-_0x9a6b00._0x151d67,_0x4b11a2,_0x360667-0x1de);}try{const _0x51dea4=await _0x20f1f5['send'](_0x7af4e3[_0x393a5b(-_0x4ddb00._0x123ab1,-0x1ab,-_0x4ddb00._0x58558c,-_0x4ddb00._0x20e92c)],{'signal':_0x1791a8[_0x393a5b(-0x32a,-0x3f,-0x2a7,-0x1b9)]});_0x41058e={..._0x41058e,'status':_0x51dea4['status'],'result':_0x51dea4};if(_0x51dea4[_0x393a5b(-0x5f,-_0x4ddb00._0x1440dc,-_0x4ddb00._0xd80863,-0xd5)]!==_0x32e495(0x19c,_0x4ddb00._0x38019b,0x2e7,_0x4ddb00._0x1891f4)){const _0x56e6f0=getRunTerminalErrorMessage(_0x51dea4),_0x5ad1e2=formatAbortedRunMessage(_0x41058e['runId'],_0x56e6f0);throw new ToolExecutionError(_0x5ad1e2,{...createRunSummary(_0x41058e),'aborted':!![],'errorMessage':_0x5ad1e2});}return createRunSummaryOutput(_0x41058e,_0x32e495(_0x4ddb00._0x5a8433,_0x4ddb00._0x2c58cb,_0x4ddb00._0x11c442,0x1f7)+_0x41058e[_0x393a5b(-0x1d4,-_0x4ddb00._0x15f5c7,-0xc8,-0x1b2)]+'\x20completed.');}catch(_0x4a9055){if(_0x4a9055 instanceof ToolExecutionError)throw _0x4a9055;if(isAbortError(_0x4a9055)||_0x1791a8[_0x393a5b(-_0x4ddb00._0x386c3c,-_0x4ddb00._0xb99244,-_0x4ddb00._0x3cf53a,-0x1b9)][_0x32e495(0x284,_0x4ddb00._0x1302b7,_0x4ddb00._0x14f379,_0x4ddb00._0x53e04c)]||_0x215638[_0x393a5b(-_0x4ddb00._0x403585,-_0x4ddb00._0x2f6d1d,-0x163,-0x1b9)][_0x393a5b(-0x1ff,-0x120,-_0x4ddb00._0x32f9f6,-_0x4ddb00._0x363fdb)]){const _0x450eb3=getRunTerminalErrorMessage(_0x41058e[_0x393a5b(_0x4ddb00._0x1a0a3f,-_0x4ddb00._0x3d67fd,-_0x4ddb00._0x441e07,-0x56)])??(_0x4a9055 instanceof Error?_0x4a9055[_0x32e495(_0x4ddb00._0xde91c9,_0x4ddb00._0x5f064f,0x29c,0x16c)]:String(_0x4a9055)),_0x2c42bb=formatAbortedRunMessage(_0x41058e[_0x393a5b(-_0x4ddb00._0x129a3c,-0x243,-_0x4ddb00._0x3ea2a0,-_0x4ddb00._0x378a3b)],_0x450eb3);_0x41058e={..._0x41058e,'status':_0x32e495(_0x4ddb00._0x3a4539,0x262,0x36c,0x4ae),'errorMessage':_0x2c42bb};throw new ToolExecutionError(_0x2c42bb,{...createRunSummary(_0x41058e),'aborted':!![],'errorMessage':_0x2c42bb});}const _0xeaad92=getRunTerminalErrorMessage(_0x41058e['result'])??(_0x4a9055 instanceof Error?_0x4a9055[_0x32e495(_0x4ddb00._0x4ef74c,_0x4ddb00._0xeedcd1,0x29c,_0x4ddb00._0x49c028)]:String(_0x4a9055))??'Agent\x20run\x20'+_0x41058e[_0x393a5b(-_0x4ddb00._0x70356c,-0x47,-0x263,-0x1b2)]+'\x20failed.';_0x41058e={..._0x41058e,'status':'failed','errorMessage':_0xeaad92};throw new ToolExecutionError(_0xeaad92,{...createRunSummary(_0x41058e),'errorMessage':_0xeaad92});}finally{_0x2814d2();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0xefa23b){return[createAssignTaskTool(_0xefa23b)];}import*as _0x49de54 from'path';function buildDescription2(_0xd03014){const _0x1aec46={_0x5be19f:0x10,_0x32ead5:0xad,_0x4c2063:0x7e,_0xc124:0xb6,_0x16014d:0x23a,_0x43cb7e:0x380,_0x47467d:0x351,_0x2c040a:0x2c,_0x2a1809:0x1b7,_0xf34e28:0xbf,_0x9059d4:0x101,_0x1b2889:0x1,_0x3e8f4a:0x272,_0x479fbb:0x1c9},_0x2bebc9={_0x4154af:0x18},_0x587803={_0xe89e3a:0x73,_0x96408d:0x13};function _0x7e4fa1(_0x3103a9,_0x119f03,_0x593a1f,_0x31e50a){return _0x4bd068(_0x593a1f,_0x3103a9- -0x3c3,_0x593a1f-_0x587803._0xe89e3a,_0x31e50a-_0x587803._0x96408d);}if(_0xd03014[_0x7e4fa1(_0x1aec46._0x5be19f,-_0x1aec46._0x32ead5,-_0x1aec46._0x4c2063,-_0x1aec46._0xc124)]===0x0)return _0x7e4fa1(0x16d,0x293,_0x1aec46._0x16014d,0x196);const _0x286a96=[_0x7e4fa1(0x9b,0x1e2,-0x92,0x17e),_0x7e4fa1(0x29e,_0x1aec46._0x43cb7e,_0x1aec46._0x47467d,0x20b),_0x5eb6bc(-_0x1aec46._0x2c040a,0x217,_0x1aec46._0x2a1809,_0x1aec46._0xf34e28),_0x7e4fa1(_0x1aec46._0x9059d4,0xc2,-_0x1aec46._0x1b2889,_0x1aec46._0x3e8f4a),..._0xd03014['map'](_0x2c7b65=>'-\x20'+_0x2c7b65['name']+':\x20'+_0x2c7b65['description'])];function _0x5eb6bc(_0x10a6e6,_0x4fe43e,_0x411d87,_0x3abaa1){return _0x154255(_0x10a6e6,_0x4fe43e-0x15e,_0x3abaa1-_0x2bebc9._0x4154af,_0x3abaa1-0x6f);}return _0x286a96[_0x5eb6bc(_0x1aec46._0x479fbb,0x12c,0x22e,0x1dc)]('\x0a');}function createLoadSkillTool(_0x505aec){const _0x590c03={_0x3b2f5b:0x7e,_0x959c74:0x197,_0x4d36f4:0x110,_0x34157b:0x16f,_0x3334f0:0x286,_0x296a86:0x4c8,_0x531df1:0x328,_0x474457:0x22f,_0x28eb02:0x3c8,_0xf1202:0x4de,_0x5f27d6:0x1ba,_0x2a2711:0x261},_0x449d82={_0x3f2e2e:0x485,_0x5d2570:0x504,_0x1bd0e0:0x439,_0x9ec1f5:0x222,_0x3eb91d:0x96,_0x4e82df:0x105,_0x13b961:0x430,_0x1f577a:0x486,_0x3de26a:0x38d,_0x5592f1:0x47e,_0x593da4:0x143,_0x3eb667:0xcc,_0x4e0a21:0x503,_0x1d909b:0x46f,_0x309069:0x5c5,_0x466d45:0x724,_0x1ade13:0x5c0,_0x5d1911:0x1b7,_0x19b54a:0x6f,_0x3f6f8a:0x69a,_0xe9b6d1:0x615,_0x380c45:0x628,_0x1dbc37:0x10c,_0x12dba1:0x157,_0xdf0142:0x333,_0x5161f9:0x487,_0x13ba45:0x74,_0x277b02:0x144,_0x20771d:0x58c,_0x7f8bb6:0x65e,_0x10957b:0x55e,_0x1f2e22:0x732,_0x59dcaf:0xfc,_0x9e8388:0x205,_0x3f89da:0x7,_0xbebcd1:0x231,_0x4dd95f:0x101,_0x4b6e5d:0xc6,_0x317658:0x21},_0x30c950={_0x43ceae:0x62,_0x123bc3:0x194,_0x255641:0x76},_0x196362={_0x254261:0xf1},_0x3fe056={_0x263913:0xe4,_0xe989f:0x340,_0x527a52:0x50},_0x46cd9d=new Map(_0x505aec[_0x12d07e(_0x590c03._0x3b2f5b,0xb8,0x161,0x161)][_0x12d07e(_0x590c03._0x959c74,_0x590c03._0x4d36f4,_0x590c03._0x34157b,_0x590c03._0x3334f0)](_0x2afe5a=>[_0x2afe5a['name'],_0x2afe5a]));function _0x3bf204(_0x535eb2,_0x17ce5d,_0x3ab706,_0x1f5e8f){return _0x154255(_0x3ab706,_0x17ce5d-_0x3fe056._0x263913,_0x17ce5d-_0x3fe056._0xe989f,_0x1f5e8f-_0x3fe056._0x527a52);}function _0x12d07e(_0x2f70a2,_0x3b715b,_0x35e11d,_0x4b6813){return _0x4bd068(_0x35e11d,_0x3b715b- -0x2fa,_0x35e11d-_0x196362._0x254261,_0x4b6813-0x4c);}const _0x41f7ec=buildDescription2(_0x505aec['skills']);return defineTool({'name':'LoadSkill','description':_0x41f7ec,'inputSchema':{'type':_0x12d07e(_0x590c03._0x296a86,0x37b,_0x590c03._0x531df1,_0x590c03._0x474457),'properties':{'name':{'type':_0x3bf204(0x4e6,_0x590c03._0x28eb02,0x503,_0x590c03._0xf1202)}},'required':[_0x12d07e(0x31d,0x299,_0x590c03._0x5f27d6,_0x590c03._0x2a2711)]},async *'execute'(_0x5a9e7a){const _0x51c7d1={_0x1ad608:0xf6},_0x24a823=_0x46cd9d[_0x3d0ded(_0x449d82._0x3f2e2e,0x529,_0x449d82._0x5d2570,_0x449d82._0x1bd0e0)](_0x5a9e7a[_0xa316e9(_0x449d82._0x9ec1f5,_0x449d82._0x3eb91d,-0x14,_0x449d82._0x4e82df)]);if(!_0x24a823){const _0x5a2ec2=Array[_0x3d0ded(_0x449d82._0x13b961,_0x449d82._0x1f577a,0x379,_0x449d82._0x3de26a)](_0x46cd9d[_0x3d0ded(_0x449d82._0x5592f1,0x50c,0x62f,0x4d3)]())[_0xa316e9(-0x5e,0x77,_0x449d82._0x593da4,_0x449d82._0x3eb667)](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x5a9e7a['name']+_0x3d0ded(_0x449d82._0x4e0a21,_0x449d82._0x1d909b,0x331,_0x449d82._0x309069)+_0x5a2ec2,{'name':_0x5a9e7a[_0x3d0ded(_0x449d82._0x466d45,_0x449d82._0x1ade13,0x643,0x5fe)]});}function _0xa316e9(_0x5a03f6,_0x2c44b7,_0xb3abf2,_0x564f56){return _0x12d07e(_0x5a03f6-_0x30c950._0x43ceae,_0x564f56- -_0x30c950._0x123bc3,_0x5a03f6,_0x564f56-_0x30c950._0x255641);}const _0x375708=await _0x505aec['loadSkill'](_0x24a823),_0x353472=_0x24a823['source'][_0xa316e9(-_0x449d82._0x5d1911,0x38,-0x1c4,-_0x449d82._0x19b54a)]??_0x49de54[_0x3d0ded(0x7ea,_0x449d82._0x3f6f8a,0x60a,0x709)](_0x24a823[_0x3d0ded(0x70b,_0x449d82._0xe9b6d1,_0x449d82._0x380c45,0x546)][_0xa316e9(0x26,_0x449d82._0x1dbc37,-0x18,_0x449d82._0x12dba1)]),_0x39f929=[_0x3d0ded(0x48f,0x4a2,_0x449d82._0xdf0142,_0x449d82._0x5161f9)+_0x375708[_0xa316e9(0x8d,_0x449d82._0x13ba45,_0x449d82._0x277b02,0x105)],'',_0x375708['instructions'],'',_0x3d0ded(0x5ae,_0x449d82._0x20771d,_0x449d82._0x7f8bb6,0x415),'Loaded\x20from:\x20'+_0x24a823[_0x3d0ded(0x731,0x615,_0x449d82._0x10957b,_0x449d82._0x1f2e22)][_0xa316e9(_0x449d82._0x59dcaf,_0x449d82._0x9e8388,_0x449d82._0x3f89da,_0x449d82._0x12dba1)],_0xa316e9(-_0x449d82._0xbebcd1,-_0x449d82._0x4dd95f,0x1d,-0xb6)+_0x353472][_0x3d0ded(0x48c,0x587,0x4e3,0x483)]('\x0a');function _0x3d0ded(_0x378752,_0x2b3459,_0x12194f,_0x37206b){return _0x12d07e(_0x378752-0x18d,_0x2b3459-0x327,_0x12194f,_0x37206b-_0x51c7d1._0x1ad608);}return yield createToolOutput(_0x39f929,{'id':_0x375708['id'],'name':_0x375708['name'],'path':_0x24a823[_0xa316e9(0x21,_0x449d82._0x4b6e5d,-_0x449d82._0x317658,0x15a)]['path'],'baseDirectory':_0x353472}),void 0x0;}});}var TODO_STATUSES=new Set([_0x154255(0x115,0x380,0x217,0xc3),_0x4bd068(0x587,0x634,0x72f,0x520),_0x4bd068(0x5d8,0x526,0x670,0x417)]),TODO_PRIORITIES=new Set([_0x4bd068(0x4d8,0x49b,0x4fa,0x580),_0x4bd068(0x6c9,0x5fb,0x730,0x688),_0x154255(-0x96,0xe8,0x2e,-0x1c)]);function isTodoStatus(_0x827615){const _0x42312d={_0x171b71:0xf9,_0x400c92:0x39,_0x4d9fa7:0x215,_0x5c55b1:0xd4,_0x3df3dd:0x109},_0x4002f0={_0x5266bf:0x457,_0x226de1:0xc4},_0x177981={_0x1d2766:0x1d0,_0xa3d355:0x12e};function _0x4836ac(_0x4c70dd,_0x543e82,_0x24648c,_0xcf2a1a){return _0x154255(_0xcf2a1a,_0x543e82-_0x177981._0x1d2766,_0x24648c-_0x177981._0xa3d355,_0xcf2a1a-0xfa);}function _0x57006c(_0x22d0df,_0x42befd,_0x3d0dd3,_0x1be8fc){return _0x4bd068(_0x1be8fc,_0x42befd- -_0x4002f0._0x5266bf,_0x3d0dd3-_0x4002f0._0x226de1,_0x1be8fc-0x1b2);}return typeof _0x827615===_0x57006c(_0x42312d._0x171b71,-_0x42312d._0x400c92,0x4c,-0x1d)&&TODO_STATUSES[_0x4836ac(_0x42312d._0x4d9fa7,_0x42312d._0x5c55b1,0x1b4,_0x42312d._0x3df3dd)](_0x827615);}function _0x154255(_0x108070,_0x29b85c,_0x57ba35,_0x501da6){const _0x2d33ac={_0x5491fd:0x123};return _0x3c5f(_0x57ba35- -_0x2d33ac._0x5491fd,_0x108070);}function isTodoPriority(_0x3937cc){const _0x2fe574={_0x4424a6:0x16e,_0x407741:0x296,_0xe00c3f:0xfb},_0x56114f={_0x502e1f:0x94};function _0x85d4cd(_0x1ee22a,_0x403062,_0x55597d,_0x59eb96){return _0x4bd068(_0x403062,_0x1ee22a- -0x58c,_0x55597d-_0x56114f._0x502e1f,_0x59eb96-0x17c);}return typeof _0x3937cc===_0x85d4cd(-_0x2fe574._0x4424a6,-_0x2fe574._0x407741,-0x129,-_0x2fe574._0xe00c3f)&&TODO_PRIORITIES['has'](_0x3937cc);}var TodoStore=class{['todosBySession']=new Map();['getTodos'](_0x252b6d){const _0x173b2a={_0x1bd6dd:0x3b2,_0x4b414e:0x28e,_0x1877d6:0x3c6},_0x4344fc={_0x519721:0x119};function _0x44f9fb(_0x3282e3,_0x77a4c5,_0x46b349,_0x3d87d4){return _0x4bd068(_0x3d87d4,_0x3282e3- -0x1bf,_0x46b349-0x120,_0x3d87d4-0x35);}function _0x4a6aa8(_0x163dda,_0x3bc290,_0x4994dd,_0x585425){return _0x154255(_0x163dda,_0x3bc290-0x12b,_0x4994dd-_0x4344fc._0x519721,_0x585425-0xd7);}return this[_0x44f9fb(0x256,0x1a5,_0x173b2a._0x1bd6dd,_0x173b2a._0x4b414e)][_0x4a6aa8(0x366,0x35d,0x27f,_0x173b2a._0x1877d6)](_0x252b6d)??[];}[_0x154255(-0x7d,0xab,0xe8,0x178)](_0x49867e,_0x2e8836){const _0x4584eb={_0x6b5488:0x1ca};function _0x324d4b(_0x11924f,_0x40c9f2,_0x11459e,_0x147aa4){return _0x4bd068(_0x11924f,_0x147aa4- -0x2b7,_0x11459e-0x154,_0x147aa4-_0x4584eb._0x6b5488);}this[_0x324d4b(0x14e,0xfe,0x36,0x15e)]['set'](_0x49867e,_0x2e8836);}['getStats'](_0x3662e4){const _0x403d32={_0x31028a:0x170,_0x3f55eb:0x1d6,_0xb426f7:0x17c,_0x29b6f1:0x1be,_0x3ed814:0x1fa,_0x1a47fc:0x264,_0x3fccb2:0x82,_0x3004fb:0x40d,_0x1d7698:0x3f2,_0x3db521:0x40e,_0x488f3a:0x452,_0x217c84:0x3e1,_0x5bb2a0:0x1a3,_0x341045:0x15a,_0x3248e2:0x2a0,_0x31c6dd:0x253,_0x73b891:0x4b3,_0x2f4302:0x213},_0x25f3a8={_0x4d4b71:0x193,_0x3e74c8:0x1db},_0x4270ed={_0x2a0b22:0x1f7,_0xa60064:0x141};function _0x1e2206(_0x3404e5,_0x336470,_0x18783f,_0x39a9a5){return _0x154255(_0x3404e5,_0x336470-0x113,_0x39a9a5-_0x4270ed._0x2a0b22,_0x39a9a5-_0x4270ed._0xa60064);}const _0x440516=this[_0x1e2206(_0x403d32._0x31028a,0x2d6,0x344,0x26e)](_0x3662e4),_0x2af715={'total':_0x440516['length'],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0x981200 of _0x440516){if(_0x981200[_0x3cf6d7(_0x403d32._0x3f55eb,_0x403d32._0xb426f7,_0x403d32._0x29b6f1,_0x403d32._0x3ed814)]===_0x3cf6d7(_0x403d32._0x1a47fc,0x1a9,_0x403d32._0x3fccb2,0x2d0))_0x2af715[_0x1e2206(0x45e,_0x403d32._0x3004fb,_0x403d32._0x1d7698,_0x403d32._0x3db521)]+=0x1;else{if(_0x981200[_0x1e2206(0x43d,_0x403d32._0x488f3a,0x405,_0x403d32._0x217c84)]==='in_progress')_0x2af715[_0x3cf6d7(_0x403d32._0x5bb2a0,_0x403d32._0x341045,_0x403d32._0x3248e2,0x189)]+=0x1;else _0x2af715[_0x1e2206(_0x403d32._0x31c6dd,_0x403d32._0x73b891,_0x403d32._0x2f4302,0x387)]+=0x1;}}function _0x3cf6d7(_0x15150c,_0x14e55c,_0x3102a0,_0x502917){return _0x4bd068(_0x502917,_0x14e55c- -0x404,_0x3102a0-_0x25f3a8._0x4d4b71,_0x502917-_0x25f3a8._0x3e74c8);}return _0x2af715;}};function validateTodos(_0x42c14a){const _0x4467e2={_0x2b0fec:0x8c0,_0x23df36:0x7d4,_0x4b299f:0xd7,_0x4d283b:0x4cc,_0x6737c9:0x506,_0xb03291:0x69a,_0x4fb48c:0xdc,_0x15d2dd:0x207,_0x44c5b0:0x1c8,_0x341413:0x31d,_0x3dbf1f:0xd7,_0x3f68a5:0xdb,_0x284e66:0x24d,_0x382f75:0xab,_0x581448:0x3,_0x3a6c40:0x1b1,_0x1a5b5f:0x2,_0x288409:0x5c,_0x582176:0x17,_0x36755d:0xde,_0x2b98b8:0x18f,_0x31d248:0x30,_0xefb906:0x7b5,_0x5c2a02:0x6af,_0x590cac:0x657,_0x2b34c5:0x538,_0x174858:0x4a2,_0x34475a:0x551,_0x1c18e3:0x54d,_0x48147d:0x3e6,_0x33ecd4:0x4fe,_0x20fad9:0x1f7,_0x553a8c:0x12b,_0x1a17e8:0x174,_0x6fc818:0x6fb,_0x2901e4:0x834,_0x82dc97:0x7c7,_0x229ce2:0x780,_0x592742:0x159,_0xb05783:0x52f,_0x5e6291:0x7c8,_0x958af5:0x11c,_0x113158:0x1f0,_0x2689e5:0x24e,_0x417068:0x72,_0x1bdd99:0x148,_0xf5117:0x20b,_0x1e0332:0x3ce,_0x129e61:0x68e,_0x5e1cad:0x5c5,_0x2631f5:0x774,_0x1953ab:0x712,_0x521dfd:0x2d4,_0x3e3baf:0x310,_0x36e6be:0x1c6,_0x241756:0x281,_0x32c102:0x6bf,_0x58405f:0x617};if(!Array['isArray'](_0x42c14a[_0x57e162(0x848,0x744,_0x4467e2._0x2b0fec,_0x4467e2._0x23df36)])||_0x42c14a[_0x3f20c7(_0x4467e2._0x4b299f,0x31,-0x2,0x13c)][_0x57e162(_0x4467e2._0x4d283b,0x5e6,0x517,_0x4467e2._0x6737c9)]===0x0)throw new ToolExecutionError(_0x57e162(0x776,_0x4467e2._0xb03291,0x708,0x7a7),{'error':'invalid_todos'});for(let _0x5c8918=0x0;_0x5c8918<_0x42c14a[_0x3f20c7(0xd7,_0x4467e2._0x4fb48c,_0x4467e2._0x15d2dd,_0x4467e2._0x44c5b0)][_0x3f20c7(-0x1f7,-_0x4467e2._0x341413,-0xa0,-0x82)];_0x5c8918+=0x1){const _0x795e18=_0x42c14a[_0x3f20c7(_0x4467e2._0x3dbf1f,0x206,_0x4467e2._0x3f68a5,_0x4467e2._0x284e66)][_0x5c8918];if(!_0x795e18||typeof _0x795e18!==_0x3f20c7(_0x4467e2._0x382f75,0x161,_0x4467e2._0x581448,_0x4467e2._0x3a6c40))throw new ToolExecutionError(_0x3f20c7(-_0x4467e2._0x1a5b5f,_0x4467e2._0x288409,_0x4467e2._0x582176,0x10e)+(_0x5c8918+0x1)+_0x3f20c7(-_0x4467e2._0x36755d,0x6,-_0x4467e2._0x2b98b8,_0x4467e2._0x31d248),{'error':_0x57e162(_0x4467e2._0xefb906,_0x4467e2._0x5c2a02,0x708,_0x4467e2._0x590cac)});if(typeof _0x795e18['id']!==_0x57e162(_0x4467e2._0x2b34c5,0x424,_0x4467e2._0x174858,_0x4467e2._0x34475a)||_0x795e18['id'][_0x57e162(_0x4467e2._0x1c18e3,0x537,_0x4467e2._0x48147d,_0x4467e2._0x33ecd4)]()[_0x3f20c7(-_0x4467e2._0x20fad9,-0x273,-_0x4467e2._0x553a8c,-_0x4467e2._0x1a17e8)]===0x0)throw new ToolExecutionError(_0x57e162(0x702,0x842,0x760,_0x4467e2._0x6fc818)+(_0x5c8918+0x1)+':\x20id\x20required',{'error':_0x57e162(_0x4467e2._0x2901e4,0x942,0x686,_0x4467e2._0x82dc97)});if(typeof _0x795e18[_0x57e162(0x710,0x61d,_0x4467e2._0x229ce2,0x6e3)]!=='string'||_0x795e18[_0x3f20c7(-0x1a,_0x4467e2._0x592742,-0x181,0x12b)][_0x57e162(0x678,0x4d3,0x3ab,_0x4467e2._0x33ecd4)]()[_0x57e162(0x479,0x45d,_0x4467e2._0xb05783,0x506)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x5c8918+0x1)+':\x20content\x20required',{'error':_0x57e162(0x751,0x602,_0x4467e2._0x5e6291,0x73b)});if(!isTodoStatus(_0x795e18[_0x3f20c7(-0x4a,0x12e,-0x1a3,-0x128)]))throw new ToolExecutionError(_0x3f20c7(-_0x4467e2._0x1a5b5f,0x169,_0x4467e2._0x958af5,-0x121)+(_0x5c8918+0x1)+':\x20invalid\x20status',{'error':'invalid_todo_status'});if(!isTodoPriority(_0x795e18[_0x3f20c7(-_0x4467e2._0x113158,-_0x4467e2._0x2689e5,-0x157,-0x77)]))throw new ToolExecutionError(_0x3f20c7(-0x2,-_0x4467e2._0x417068,_0x4467e2._0x1bdd99,0x13b)+(_0x5c8918+0x1)+':\x20invalid\x20priority',{'error':_0x57e162(0x714,0x6f8,0x5d6,0x68a)});}const _0x89d1d6=_0x42c14a[_0x3f20c7(_0x4467e2._0x3dbf1f,_0x4467e2._0xf5117,0x9b,0xe7)][_0x57e162(0x4ff,_0x4467e2._0x1e0332,_0x4467e2._0x129e61,0x53d)](_0x44d87a=>_0x44d87a['id']);function _0x3f20c7(_0x2589c6,_0x53e6c9,_0x110778,_0x46000b){return _0x4bd068(_0x53e6c9,_0x2589c6- -0x5ca,_0x110778-0xd4,_0x46000b-0xf9);}function _0x57e162(_0x27c787,_0x556f23,_0x5ccaa4,_0x21a980){return _0x4bd068(_0x27c787,_0x21a980-0x133,_0x5ccaa4-0x185,_0x21a980-0x137);}if(new Set(_0x89d1d6)[_0x57e162(0x7da,_0x4467e2._0x5e1cad,_0x4467e2._0x2631f5,_0x4467e2._0x1953ab)]!==_0x89d1d6[_0x3f20c7(-_0x4467e2._0x20fad9,-_0x4467e2._0x521dfd,-0x2ee,-_0x4467e2._0x3e3baf)])throw new ToolExecutionError(_0x3f20c7(-_0x4467e2._0x36e6be,-0x2d6,-0x13a,-_0x4467e2._0x241756),{'error':_0x57e162(_0x4467e2._0x32c102,0x51d,0x566,_0x4467e2._0x58405f)});}function createStatsProgress(_0x844b91){const _0x78032={_0x2d46a9:0x35f,_0xf80b27:0x448,_0x18ae2b:0x2f3,_0x3d77c8:0x296,_0x4fec5f:0x361,_0x1859c7:0x1b4,_0x2e0b47:0x49,_0x52f806:0x29,_0x321495:0x2db,_0x2b72ca:0x450},_0x2d0308={_0x4e27f4:0x5a2,_0x5df682:0xf4},_0x50eb84={_0x17591a:0x230,_0x566e2d:0x70};function _0x26661c(_0x4d6fb2,_0x4246a6,_0x4c0c37,_0x36462c){return _0x4bd068(_0x4c0c37,_0x36462c- -_0x50eb84._0x17591a,_0x4c0c37-_0x50eb84._0x566e2d,_0x36462c-0x126);}function _0x2b34fe(_0x52ffba,_0x428934,_0x1569f7,_0x5d6d2d){return _0x4bd068(_0x1569f7,_0x428934- -_0x2d0308._0x4e27f4,_0x1569f7-_0x2d0308._0x5df682,_0x5d6d2d-0x10b);}return _0x844b91[_0x26661c(_0x78032._0x2d46a9,_0x78032._0xf80b27,0x2b6,_0x78032._0x18ae2b)]>0x0?Math[_0x26661c(0x31e,_0x78032._0x3d77c8,0x3ae,_0x78032._0x4fec5f)](_0x844b91[_0x2b34fe(-_0x78032._0x1859c7,-0x7c,-_0x78032._0x2e0b47,_0x78032._0x52f806)]/_0x844b91[_0x26661c(_0x78032._0x321495,0x32a,_0x78032._0x2b72ca,_0x78032._0x18ae2b)]*0x64)+'%':'0%';}function createReminderItems(_0xca6b7a){const _0x2f8bd7={_0x18a8d7:0x43b,_0x7b90f0:0x423},_0x3c779e={_0x2391d1:0x9b,_0x69d37f:0x191};function _0x5ea647(_0xcda951,_0xbe4299,_0x233347,_0x2cace9){return _0x4bd068(_0xbe4299,_0xcda951-_0x3c779e._0x2391d1,_0x233347-0x2a,_0x2cace9-_0x3c779e._0x69d37f);}return _0xca6b7a[_0x5ea647(0x4a5,_0x2f8bd7._0x18a8d7,_0x2f8bd7._0x7b90f0,0x3ce)](_0x154a34=>({'content':_0x154a34['content'],'status':_0x154a34['status'],'id':_0x154a34['id']}));}function createStructuredResult(_0x5dc102,_0x1c8c1b,_0x106972,_0x5baa12){const _0x5a1c36={_0xf38ef3:0xbb,_0x35e9a8:0x2c};function _0x16870f(_0x14d42a,_0x3f0c89,_0x1be5ed,_0x9cde21){return _0x4bd068(_0x9cde21,_0x1be5ed- -0x27b,_0x1be5ed-_0x5a1c36._0xf38ef3,_0x9cde21-_0x5a1c36._0x35e9a8);}function _0x5d4494(_0x5ea1bc,_0x200bcf,_0x26c417,_0x5be0ea){return _0x4bd068(_0x26c417,_0x5ea1bc- -0x32f,_0x26c417-0x147,_0x5be0ea-0x2);}return{'allCompleted':_0x5baa12,'items':_0x1c8c1b['map'](_0x410cd0=>({'id':_0x410cd0['id'],'content':_0x410cd0['content'],'status':_0x410cd0['status'],'priority':_0x410cd0[_0x5d4494(0xab,0x19c,-0x96,0xb7)],'createdAt':_0x410cd0[_0x5d4494(0x138,0x17a,-0x25,0xad)]})),'progress':createStatsProgress(_0x106972),'recentChanges':!![],'sessionId':_0x5dc102,'stats':_0x106972,'todosWritten':_0x1c8c1b['length']};}function createOutputText(_0x89969d,_0x2e8c33){const _0x242015={_0x4fa109:0x635,_0x4f4e33:0x5df,_0x2508b1:0x440,_0x16fad5:0x53e,_0x1dd3e8:0x576,_0x20837b:0x4ce,_0x31a0ef:0x4a6,_0xad3980:0x655,_0xec029:0x86d,_0x42377a:0x699,_0x345837:0x58f,_0x57b1ed:0x583},_0x1823e6={_0x127549:0xb6,_0x30dfa2:0x501,_0x37f850:0x1dc},_0x428df7={_0x4886f8:0x1ab,_0x14f65c:0x3c3},_0x14c3ab=JSON[_0x1c9caa(0x556,_0x242015._0x4fa109,_0x242015._0x4f4e33,0x407)](createReminderItems(_0x89969d));function _0x1c9caa(_0x382901,_0x35453d,_0x4c1e3c,_0x4c924a){return _0x154255(_0x4c1e3c,_0x35453d-_0x428df7._0x4886f8,_0x382901-_0x428df7._0x14f65c,_0x4c924a-0xe2);}function _0x421951(_0x42b6e8,_0x19a4f2,_0x5bd6b8,_0x18de59){return _0x154255(_0x19a4f2,_0x19a4f2-_0x1823e6._0x127549,_0x42b6e8-_0x1823e6._0x30dfa2,_0x18de59-_0x1823e6._0x37f850);}if(_0x2e8c33)return _0x1c9caa(0x413,0x45d,_0x242015._0x2508b1,0x34a)+_0x89969d[_0x421951(_0x242015._0x16fad5,0x61e,_0x242015._0x1dd3e8,0x5c6)]+'\x20todo\x20items\x20have\x20been\x20completed\x20successfully!\x0a\x0a<system-reminder>\x0aAll\x20todo\x20items\x20are\x20now\x20completed!\x20Ask\x20about\x20next\x20steps.\x20Completed\x20list:\x0a'+_0x14c3ab+_0x1c9caa(_0x242015._0x20837b,0x3b7,0x526,_0x242015._0x31a0ef);return _0x421951(0x71a,_0x242015._0xad3980,_0x242015._0xec029,_0x242015._0x42377a)+_0x14c3ab+_0x1c9caa(_0x242015._0x20837b,_0x242015._0x345837,_0x242015._0x57b1ed,0x511);}function createTodoWriteTool(_0xc3c0b5=new TodoStore()){const _0x4bf130={_0x52bbf2:0x3f1,_0x3dc171:0x23a,_0x2a999a:0x1f2,_0x461728:0x39d,_0x2380c6:0x24b,_0x1c6c74:0x1aa,_0x1c451b:0x2a5,_0x5bd638:0x2c4,_0x446a14:0x1cf,_0x30bf10:0x190,_0x57ec1c:0x97,_0x3300fe:0x38,_0x2029b3:0xc8,_0x189097:0x4e,_0x1d3a05:0xf3,_0x27629f:0x307,_0x255a37:0x1e0,_0x2714a5:0x125,_0x43d8b0:0x249,_0x2af086:0x234,_0x427071:0x1b0,_0x547f5f:0x295,_0x8c419:0x326},_0x3a04f7={_0x4e7dc4:0x296,_0x3c8b02:0x38d,_0x385b19:0x2d8,_0x32f89a:0x6f,_0x2e9901:0xcc,_0x2b5d5b:0x1f9,_0x409133:0x2d0,_0x1b4877:0x3c3,_0x37f615:0x307,_0x1cfc7a:0x25e,_0x52abd7:0x177,_0x5a5df5:0x101,_0x5bdad3:0xff,_0x2449aa:0x7a,_0x24952b:0x134},_0x5b2bbd={_0x164d88:0xc6,_0x154ead:0x190},_0xc9abfb={_0xea9aab:0x59,_0x457bdd:0x3a,_0x4470ec:0x12b},_0x320b2e={_0x348f85:0x5,_0x4c37a8:0x1f2};function _0x2bbd0c(_0xc25b16,_0x458583,_0x338da3,_0xedbd6b){return _0x4bd068(_0xc25b16,_0xedbd6b- -0x356,_0x338da3-_0x320b2e._0x348f85,_0xedbd6b-_0x320b2e._0x4c37a8);}function _0x18d5b5(_0x2a6d1b,_0x9fcc0d,_0x31db9d,_0x41abb7){return _0x154255(_0x2a6d1b,_0x9fcc0d-_0xc9abfb._0xea9aab,_0x9fcc0d- -_0xc9abfb._0x457bdd,_0x41abb7-_0xc9abfb._0x4470ec);}return defineTool({'name':_0x2bbd0c(-0x1e,0x1bd,0x1cb,0x13c),'description':_0x2bbd0c(_0x4bf130._0x52bbf2,_0x4bf130._0x3dc171,0x3cd,0x32d),'inputSchema':{'type':'object','properties':{'todos':{'type':_0x2bbd0c(_0x4bf130._0x2a999a,_0x4bf130._0x461728,_0x4bf130._0x2380c6,0x2fb),'items':{'type':_0x18d5b5(_0x4bf130._0x1c6c74,_0x4bf130._0x1c451b,_0x4bf130._0x5bd638,_0x4bf130._0x446a14),'properties':{'content':{'type':_0x2bbd0c(-0x6e,0x215,-0xb,0xc8)},'status':{'type':'string'},'priority':{'type':_0x2bbd0c(_0x4bf130._0x30bf10,-_0x4bf130._0x57ec1c,_0x4bf130._0x3300fe,_0x4bf130._0x2029b3)},'id':{'type':_0x18d5b5(0x1ac,_0x4bf130._0x189097,0x10b,0xee)},'createdAt':{'type':_0x18d5b5(0xe2,0x4e,-0x3b,_0x4bf130._0x1d3a05)}},'required':[_0x18d5b5(_0x4bf130._0x27629f,_0x4bf130._0x255a37,_0x4bf130._0x2714a5,_0x4bf130._0x43d8b0),_0x18d5b5(_0x4bf130._0x2af086,_0x4bf130._0x427071,_0x4bf130._0x547f5f,_0x4bf130._0x8c419),'priority','id']}}},'required':['todos']},async *'execute'(_0x25768a,_0xfe1746){const _0xfebbf6={_0x37c5a5:0xf0},_0x1e16da=_0x25768a;validateTodos(_0x1e16da);const _0x5bba4f=_0xfe1746['sessionId']||'default',_0x1459e5=new Date()[_0x424157(_0x3a04f7._0x4e7dc4,0x190,0x3a1,0x3cd)](),_0xc1f087=_0x1e16da[_0x424157(0x4db,0x5e3,0x3de,_0x3a04f7._0x3c8b02)][_0x424157(0x244,_0x3a04f7._0x385b19,0x225,0x36a)](_0x3b8c68=>({'id':_0x3b8c68['id'],'content':_0x3b8c68[_0x1d7bdc(0x1d8,0x151,0x66,0xb7)],'status':_0x3b8c68[_0x424157(0x3ba,0x424,0x2b1,0x533)],'priority':_0x3b8c68[_0x424157(0x214,0x14c,0xec,0x322)],'sessionId':_0x5bba4f,'createdAt':_0x3b8c68[_0x424157(0x2a1,0x1c9,0x277,0x3c2)]||_0x1459e5,'updatedAt':_0x1459e5}));function _0x1d7bdc(_0x4496a5,_0x6a2039,_0x371d8b,_0x422e13){return _0x18d5b5(_0x6a2039,_0x371d8b- -0x17a,_0x371d8b-0x18a,_0x422e13-_0xfebbf6._0x37c5a5);}_0xc3c0b5[_0x1d7bdc(-0x1f7,-_0x3a04f7._0x32f89a,-_0x3a04f7._0x2e9901,-_0x3a04f7._0x2b5d5b)](_0x5bba4f,_0xc1f087);function _0x424157(_0x1331e1,_0x15cd2f,_0x1a39d3,_0x2965f5){return _0x2bbd0c(_0x2965f5,_0x15cd2f-_0x5b2bbd._0x164d88,_0x1a39d3-0xba,_0x1331e1-_0x5b2bbd._0x154ead);}const _0x1a9922=_0xc3c0b5[_0x424157(_0x3a04f7._0x409133,0x1de,_0x3a04f7._0x1b4877,_0x3a04f7._0x37f615)](_0x5bba4f),_0x3460ea=_0xc1f087[_0x1d7bdc(-_0x3a04f7._0x1cfc7a,-0x100,-_0x3a04f7._0x52abd7,-_0x3a04f7._0x5a5df5)]>0x0&&_0xc1f087[_0x1d7bdc(0x6c,_0x3a04f7._0x5bdad3,_0x3a04f7._0x2449aa,_0x3a04f7._0x24952b)](_0x3d32e1=>_0x3d32e1['status']===_0x1d7bdc(0xcd,-0x58,-0x24,-0xaa));return createToolOutput(createOutputText(_0xc1f087,_0x3460ea),createStructuredResult(_0x5bba4f,_0xc1f087,_0x1a9922,_0x3460ea));}});}import{mkdir as _0x5b5a81,writeFile as _0x35ab81}from'fs/promises';import*as _0x2ba793 from'path';function sanitizeFileName(_0x59c854){const _0x3ce3b8={_0x4c97c0:0x194},_0x31bdf1={_0x3da842:0x1d7,_0x586a23:0x2};function _0x211985(_0x3c2b41,_0x566b7f,_0x1bf3d0,_0x480e34){return _0x154255(_0x1bf3d0,_0x566b7f-_0x31bdf1._0x3da842,_0x3c2b41- -0x25d,_0x480e34-_0x31bdf1._0x586a23);}return _0x59c854[_0x211985(-_0x3ce3b8._0x4c97c0,-0xd3,-0x2d0,-0x1df)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x30c43d,_0xfbb0ba){const _0x4f9956={_0x17e762:0x249,_0x32a135:0x16e,_0x1f0edb:0x253,_0x51c09c:0x127,_0xec3381:0x16e,_0x2f0539:0x186,_0x43456a:0x20a,_0x518e96:0x16e,_0x222b4c:0x1ec,_0x3a3175:0x17e,_0x5ed15d:0x66,_0x114244:0xa,_0x342a1a:0x13a,_0x21b7e2:0x40a,_0x2d0f87:0x374,_0xdc7d3c:0x18a,_0x4ccdfd:0x29c,_0x3eca70:0x1b1,_0xcf8997:0x45,_0x389bf4:0x84,_0x3db69a:0x83,_0x2750de:0x1c3,_0x20fc41:0x1a9,_0x41a5f2:0x7,_0x828a68:0x2e5,_0x454621:0x96,_0x52ac71:0x27,_0x75adf1:0xbe,_0x453d86:0x24e,_0x65dde8:0x2e2,_0x2b2c33:0xda,_0x2e8a30:0x2a5,_0x1d9eec:0x230,_0x5bece1:0xcf,_0x18adbf:0x17e,_0x179b80:0x24d,_0x4c8d15:0x139,_0x175334:0x366,_0x881947:0x1b9,_0x2ec339:0x38c,_0xdcafd4:0x65,_0x255200:0x16a,_0x2d2a58:0x19e,_0x372808:0x128,_0x246b16:0x213,_0x5405a9:0x320,_0x5a018f:0x313,_0x474e76:0x2b0,_0x18ee20:0x1e3,_0x49c37c:0x3b,_0x142c03:0xb5,_0x2dabfd:0x205,_0x467287:0x127,_0x1d453f:0x48,_0x24ef05:0x1f1,_0x409166:0x28,_0x5e0696:0x365,_0x3ec242:0x37f,_0x4c6df1:0x2bf,_0x58b366:0x16c},_0x50b7cf={_0x53a76d:0x30c,_0x1d1bc7:0x1f2},_0x5e85bf={_0x2952f8:0x6a};function _0x36efc8(_0x411c9a,_0x58132d,_0x18dc45,_0x4c556a){return _0x154255(_0x4c556a,_0x58132d-0x9b,_0x411c9a- -0x9d,_0x4c556a-_0x5e85bf._0x2952f8);}const {maxBytes:_0xb146ea,sessionDir:_0x92c2}=_0xfbb0ba;if(!_0x30c43d[_0x364f36(_0x4f9956._0x17e762,_0x4f9956._0x32a135,0x49,_0x4f9956._0x1f0edb)]||Buffer['byteLength'](_0x30c43d[_0x364f36(_0x4f9956._0x51c09c,_0x4f9956._0xec3381,_0x4f9956._0x2f0539,0x2dd)],'utf8')<=_0xb146ea)return _0x30c43d;const _0x47e180=Buffer['byteLength'](_0x30c43d[_0x364f36(_0x4f9956._0x43456a,_0x4f9956._0x518e96,_0x4f9956._0x222b4c,0xf6)],_0x36efc8(_0x4f9956._0x3a3175,_0x4f9956._0x5ed15d,_0x4f9956._0x114244,0x6e));if(!_0x92c2){const _0x5640cf=_0x30c43d[_0x364f36(0x16f,0x16e,0x77,_0x4f9956._0x342a1a)][_0x364f36(_0x4f9956._0x21b7e2,_0x4f9956._0x2d0f87,0x2f6,0x4c6)](0x0,_0xb146ea);return{..._0x30c43d,'output':_0x5640cf+(_0x36efc8(_0x4f9956._0xdc7d3c,0x26d,0x186,_0x4f9956._0x4ccdfd)+_0xb146ea+_0x36efc8(0x1af,0x2af,0x171,0xa1)+_0x47e180+_0x364f36(_0x4f9956._0x3eca70,0xf2,0x229,0xe8)),'meta':{..._0x30c43d['meta'],'truncated':!![],'originalBytes':_0x47e180,'transforms':[..._0x30c43d['meta']['transforms'],_0x36efc8(_0x4f9956._0xcf8997,-0x5d,0xac,-_0x4f9956._0x389bf4)]}};}const _0x3378f6=_0x30c43d[_0x36efc8(_0x4f9956._0x3db69a,_0x4f9956._0x2750de,_0x4f9956._0x20fc41,_0x4f9956._0x41a5f2)]+'_'+sanitizeFileName(_0x30c43d[_0x364f36(0x31c,0x28c,0x242,_0x4f9956._0x828a68)])+_0x36efc8(_0x4f9956._0x454621,-_0x4f9956._0x52ac71,0xad,_0x4f9956._0x75adf1),_0x404118=_0x2ba793[_0x364f36(0x28b,_0x4f9956._0x453d86,_0x4f9956._0x65dde8,_0x4f9956._0x2b2c33)](_0x92c2,_0x3378f6);await _0x5b5a81(_0x92c2,{'recursive':!![]}),await _0x35ab81(_0x404118,_0x30c43d['output'],_0x364f36(0x2c6,_0x4f9956._0x2e8a30,0x27b,_0x4f9956._0x1d9eec));function _0x364f36(_0x270899,_0x43b606,_0x53fb72,_0x252a9b){return _0x4bd068(_0x270899,_0x43b606- -_0x50b7cf._0x53a76d,_0x53fb72-_0x50b7cf._0x1d1bc7,_0x252a9b-0xbf);}let _0x52ae52=_0x30c43d[_0x364f36(_0x4f9956._0x5bece1,0x16e,0x155,_0x4f9956._0x18adbf)][_0x36efc8(_0x4f9956._0x179b80,0x10c,_0x4f9956._0x4c8d15,0x124)](0x0,_0xb146ea);const _0x4861d4=_0x52ae52[_0x364f36(_0x4f9956._0x175334,0x2b6,0x200,_0x4f9956._0x881947)]('\x0a');_0x4861d4>_0xb146ea*0.5&&(_0x52ae52=_0x52ae52[_0x364f36(_0x4f9956._0x2ec339,0x374,0x3a2,0x430)](0x0,_0x4861d4));const _0x1c6427=['',_0x364f36(-_0x4f9956._0xdcafd4,0xca,_0x4f9956._0x255200,-0x8d),_0x36efc8(_0x4f9956._0x2d2a58,_0x4f9956._0x372808,0x2f0,_0x4f9956._0x246b16)+_0xb146ea+_0x36efc8(0x268,_0x4f9956._0x5405a9,_0x4f9956._0x5a018f,0x363)+_0x47e180+_0x364f36(0x373,_0x4f9956._0x474e76,0x22e,_0x4f9956._0x18ee20),_0x36efc8(_0x4f9956._0x49c37c,_0x4f9956._0x142c03,0x153,0x15a)+_0x404118,_0x36efc8(_0x4f9956._0x2dabfd,0x146,0x1f6,0x224),'</system-reminder>'][_0x36efc8(_0x4f9956._0x467287,-_0x4f9956._0x1d453f,_0x4f9956._0x24ef05,-_0x4f9956._0x409166)]('\x0a');return{..._0x30c43d,'output':_0x52ae52+_0x1c6427,'meta':{..._0x30c43d['meta'],'truncated':!![],'originalBytes':_0x47e180,'transforms':[..._0x30c43d['meta'][_0x364f36(0x32d,_0x4f9956._0x5e0696,_0x4f9956._0x3ec242,0x490)],_0x364f36(_0x4f9956._0x4c6df1,_0x4f9956._0x58b366,0xc1,0x73)]}};}function createUpdateTopicTool(){const _0x2f612c={_0x66516b:0x13c,_0x18f2ac:0x29a,_0x998195:0x27f,_0x47d367:0xe4,_0x507ff0:0x77,_0x116b85:0x68f,_0x49546c:0x733,_0x33879e:0x660,_0x2032f0:0xc2,_0x56c330:0xb6,_0x3575e6:0x122,_0x115b58:0xe8,_0x2cd366:0x109},_0x74b0f0={_0x5a27a3:0x518,_0x1eb59f:0x42c,_0x4c95d8:0x5cb,_0x8f18ca:0x5f7,_0x1db36b:0x3c0,_0x27c587:0x554,_0x4514cc:0x7fc,_0x2d497a:0x678,_0xf58cc6:0x785,_0x4b8145:0x4eb,_0x5b15ee:0x619,_0x3b05dd:0x5fd,_0x46f856:0x3f9,_0x444b08:0x61c,_0x100e6d:0x52b,_0x3a4a18:0x6b1,_0xdcf7fa:0x6c7},_0x4a1124={_0x156b31:0x6},_0x1c68ec={_0x4610a2:0x195};function _0x436cf6(_0x33db72,_0x197728,_0x266e63,_0x29d18e){return _0x4bd068(_0x197728,_0x29d18e- -0x15,_0x266e63-_0x1c68ec._0x4610a2,_0x29d18e-0x8c);}function _0x5cc7c9(_0x4f0f61,_0x27e848,_0x1e8677,_0x337411){return _0x4bd068(_0x4f0f61,_0x27e848- -0x49b,_0x1e8677-0x4f,_0x337411-0x81);}return defineTool({'name':_0x5cc7c9(0x168,_0x2f612c._0x66516b,_0x2f612c._0x18f2ac,_0x2f612c._0x998195),'description':_0x5cc7c9(-_0x2f612c._0x47d367,_0x2f612c._0x507ff0,0x1a4,0x5d),'inputSchema':{'type':_0x436cf6(_0x2f612c._0x116b85,0x555,_0x2f612c._0x49546c,_0x2f612c._0x33879e),'properties':{'topic':{'type':_0x5cc7c9(-_0x2f612c._0x2032f0,-0x7d,_0x2f612c._0x56c330,-_0x2f612c._0x3575e6)}},'required':[_0x5cc7c9(0x139,_0x2f612c._0x115b58,0x209,_0x2f612c._0x2cd366)]},async *'execute'(_0x50c2ff,_0x3b2543){function _0x1a9b7f(_0x4f4fbf,_0x109a18,_0x1fb09d,_0x5b967a){return _0x436cf6(_0x4f4fbf-_0x4a1124._0x156b31,_0x4f4fbf,_0x1fb09d-0x4,_0x5b967a-0x13e);}const {topic:_0x3fd95b}=_0x50c2ff;if(typeof _0x3fd95b!==_0x393a32(_0x74b0f0._0x5a27a3,0x4e2,_0x74b0f0._0x1eb59f,_0x74b0f0._0x4c95d8)||_0x3fd95b[_0x1a9b7f(_0x74b0f0._0x8f18ca,_0x74b0f0._0x1db36b,_0x74b0f0._0x27c587,0x4f4)]()['length']===0x0)throw new ToolExecutionError(_0x1a9b7f(0x8e6,_0x74b0f0._0x4514cc,_0x74b0f0._0x2d497a,_0x74b0f0._0xf58cc6),{'error':_0x1a9b7f(_0x74b0f0._0x4b8145,0x66a,_0x74b0f0._0x5b15ee,_0x74b0f0._0x3b05dd)});const _0x1f380e=_0x3fd95b[_0x393a32(0x4c5,0x5be,_0x74b0f0._0x46f856,_0x74b0f0._0x444b08)]();_0x3b2543[_0x1a9b7f(0x504,0x4f4,0x67b,_0x74b0f0._0x100e6d)]?.(_0x1f380e);function _0x393a32(_0x35b332,_0x303032,_0x11bea7,_0x597a91){return _0x5cc7c9(_0x303032,_0x35b332-0x595,_0x11bea7-0x133,_0x597a91-0x159);}return yield createToolOutput(_0x1a9b7f(0x661,_0x74b0f0._0x3a4a18,0x6f0,_0x74b0f0._0xdcf7fa)+_0x1f380e+'\x22',{'topic':_0x1f380e}),void 0x0;}});}import{readFile as _0x33f483,stat as _0x21ad75}from'fs/promises';import*as _0x4499db from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto','high',_0x154255(0x142,-0xa6,0x2e,-0x8f),_0x4bd068(0x67a,0x698,0x636,0x5e0)]),PNG_SIGNATURE=Buffer[_0x4bd068(0x4f8,0x459,0x58c,0x3c2)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x1d7821,_0x1d615b){const _0x701caa={_0x46fd9c:0x590,_0x548848:0x4e2,_0x2550ed:0x430,_0x3316d5:0x3db,_0x2bce29:0x43e,_0xb2af1d:0x336,_0x4ebae1:0x47f,_0x40438b:0x394,_0x10837f:0x4f3,_0x1aaaad:0x33c,_0x146702:0x1f9,_0x1f0c72:0x61b,_0x1830eb:0x631,_0x1d3b1a:0x483,_0x1fbb7c:0x418,_0x1bb884:0x37b,_0x105ceb:0x383,_0x2a6e48:0x353,_0x431847:0x51a,_0x56073a:0x2ed,_0x392a66:0x421,_0x279b95:0x58f,_0x26f12f:0x588,_0x4d8c74:0x373,_0x209c5d:0x22e,_0x262ec4:0x213,_0x5ba11f:0x243,_0xf387f3:0x437,_0x28521b:0x4c3,_0x3b686e:0x35b,_0x10c57d:0x2da,_0x5b657e:0x531,_0x20564c:0x3cd,_0xfe4813:0x698,_0x59c2c7:0x408,_0xd8a53a:0x3b1,_0x2fd471:0x40f},_0x5d76bb={_0x4ed54b:0x62,_0x450ae2:0xf3},_0x17dec0={_0xe0cb1c:0x63};if(_0x1d7821[_0x3a365e(0x9b,0x239,0x2de,0x1f9)](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x32dda0(0x442,0x63a,0x4da,_0x701caa._0x46fd9c);function _0x3a365e(_0x32235f,_0x30ea15,_0x2ee70f,_0x1cda9d){return _0x4bd068(_0x30ea15,_0x1cda9d- -0x1e4,_0x2ee70f-_0x17dec0._0xe0cb1c,_0x1cda9d-0x10a);}if(_0x1d7821[0x0]===0xff&&_0x1d7821[0x1]===0xd8&&_0x1d7821[0x2]===0xff)return _0x32dda0(0x4df,_0x701caa._0x548848,0x3ed,0x396);const _0x5f0cd8=_0x1d7821[_0x32dda0(0x4a8,_0x701caa._0x2550ed,0x223,0x37b)](0x0,0x6)[_0x3a365e(_0x701caa._0x3316d5,0x44e,_0x701caa._0x2bce29,_0x701caa._0xb2af1d)](_0x32dda0(_0x701caa._0x4ebae1,0x475,_0x701caa._0x40438b,_0x701caa._0x10837f));if(_0x5f0cd8===_0x32dda0(0x485,0x367,_0x701caa._0x1aaaad,0x37f)||_0x5f0cd8==='GIF89a')return'image/gif';if(_0x1d7821[_0x3a365e(0x227,0x296,0x2ca,_0x701caa._0x146702)](0x0,0x4)['toString'](_0x32dda0(0x384,_0x701caa._0x1f0c72,_0x701caa._0x1830eb,_0x701caa._0x10837f))===_0x3a365e(_0x701caa._0x1d3b1a,0x403,0x48f,_0x701caa._0x1fbb7c)&&_0x1d7821[_0x32dda0(0x26d,0x406,0x432,_0x701caa._0x1bb884)](0x8,0xc)['toString'](_0x3a365e(0x24b,_0x701caa._0x105ceb,0x3f0,0x371))===_0x32dda0(0x2af,_0x701caa._0x2a6e48,0x44a,0x426))return'image/webp';const _0x45dee6=_0x4499db[_0x32dda0(_0x701caa._0x431847,_0x701caa._0x56073a,0x2a6,_0x701caa._0x392a66)](_0x1d615b)[_0x3a365e(_0x701caa._0x279b95,_0x701caa._0x26f12f,_0x701caa._0x4d8c74,0x47a)]();if(_0x45dee6===_0x3a365e(0x29e,_0x701caa._0x209c5d,_0x701caa._0x262ec4,_0x701caa._0x5ba11f))return _0x3a365e(0x534,0x4bc,0x2a8,0x40e);if(_0x45dee6===_0x3a365e(_0x701caa._0xf387f3,_0x701caa._0x28521b,0x300,_0x701caa._0x3b686e)||_0x45dee6===_0x32dda0(0x4b6,_0x701caa._0x10c57d,_0x701caa._0x5b657e,0x407))return _0x32dda0(0x32e,0x444,0x354,0x396);if(_0x45dee6==='.gif')return _0x3a365e(0x34b,_0x701caa._0x20564c,0x15a,0x2c3);if(_0x45dee6===_0x32dda0(0x6c0,_0x701caa._0xfe4813,0x56f,0x564))return _0x32dda0(_0x701caa._0x59c2c7,_0x701caa._0xd8a53a,0x3b8,_0x701caa._0x2fd471);function _0x32dda0(_0x247dfc,_0x5bfd85,_0x403fec,_0x269a76){return _0x4bd068(_0x403fec,_0x269a76- -_0x5d76bb._0x4ed54b,_0x403fec-0x1b8,_0x269a76-_0x5d76bb._0x450ae2);}return void 0x0;}function normalizeDetail(_0x441d80){const _0x3da357={_0x24bf9e:0x2f,_0x226e4e:0x314,_0xad7644:0xd2,_0x472c2a:0x96,_0x1e2d2b:0x8f,_0x190b07:0x12a,_0x546f00:0x25a},_0x354b37={_0x584243:0x8,_0x239b9a:0x4c,_0x2afba7:0x1b4},_0x1364ef={_0x380511:0x107,_0x430381:0x119,_0x4a9d30:0x1bc};function _0xa435dc(_0x5a5a18,_0x5aa336,_0x3595ce,_0x1aef96){return _0x154255(_0x5aa336,_0x5aa336-_0x1364ef._0x380511,_0x5a5a18- -_0x1364ef._0x430381,_0x1aef96-_0x1364ef._0x4a9d30);}function _0x47f5da(_0x58edc7,_0x575277,_0x1a8561,_0x594dc1){return _0x154255(_0x594dc1,_0x575277-_0x354b37._0x584243,_0x1a8561-_0x354b37._0x239b9a,_0x594dc1-_0x354b37._0x2afba7);}if(_0x441d80===void 0x0)return void 0x0;const _0x3d03c2=_0x441d80[_0x47f5da(-_0x3da357._0x24bf9e,0xb2,0x81,0x4e)]()[_0x47f5da(0x224,0x2b0,_0x3da357._0x226e4e,0x386)]();if(!SUPPORTED_DETAILS[_0x47f5da(0x21e,0x1f9,_0x3da357._0xad7644,-_0x3da357._0x472c2a)](_0x3d03c2))throw new ToolExecutionError(_0x47f5da(_0x3da357._0x1e2d2b,_0x3da357._0x190b07,0x172,_0x3da357._0x546f00)+_0x441d80,{'detail':_0x441d80});return _0x3d03c2;}function createViewFileTool(_0x529aaf={}){const _0xa5ad64={_0xa855b6:0x14b,_0x35798b:0x347,_0x18114b:0x329,_0x422c66:0x184,_0x2dbe01:0x357,_0x19a45b:0x4a9,_0x2bf909:0x59b,_0x16b386:0x35d,_0x40251c:0x459,_0xc339ab:0x66a,_0x29a8a2:0x3ff,_0x488d5c:0x217,_0x4374a1:0x186,_0x3baf0d:0x152,_0x7aa0d:0x371,_0x5c1806:0x3a0,_0xd41091:0x33a,_0x6c8865:0x3d8,_0x10dac5:0x3d2},_0x40d07d={_0x385aad:0x7f3,_0xf962b9:0x774,_0x235cb5:0x573,_0x26a17a:0x59d,_0x45cc81:0x655,_0x128da7:0x5c0,_0x1339bf:0x703,_0x4705f0:0x7cd,_0x20a98c:0x7da,_0x1b9c8d:0x5bd,_0xd41751:0x591,_0x28e693:0x6fe,_0x2df983:0x7d3,_0x275236:0x6ee,_0x504a1f:0x6b9,_0x3d4e7f:0x681,_0x2ae76b:0x763,_0x4e0e5c:0x613,_0x4e7508:0x50f,_0xd1aa0d:0x608,_0x39e69c:0x546,_0x35c471:0x6c4,_0x1915cf:0x810,_0x5475f7:0x784,_0x413d10:0x607,_0x5acdc9:0x7a0,_0x5d858d:0x76a,_0x488c6c:0x7da,_0x1b40b3:0x904,_0x1838fb:0x691,_0x328560:0x795,_0x4f44a1:0x786,_0x8717e3:0x7b6,_0x23c26f:0x424,_0xaaed70:0x559,_0xb8d3da:0x55e,_0xaf1595:0x6fa,_0x1304a2:0x618,_0x5730e2:0x677,_0x40084b:0x741,_0x2dd525:0x56f,_0x37de91:0x639,_0x2db433:0x801,_0x3eb74f:0x727,_0x4a727e:0x738,_0x300b8b:0x689,_0x4cbe60:0x73d,_0x4bb41c:0x6b9,_0x192690:0x650,_0x47515f:0x4ae,_0x344617:0x600,_0x435470:0x894,_0x3acf29:0x64d,_0x4342d9:0x787,_0x286bdc:0x3d9,_0x39ad6e:0x6c4,_0x1f77a3:0x6b3,_0x13f41e:0x81a,_0x5ac0dd:0x5da},_0x1d2b0d={_0x3a2ed8:0x152,_0x5a1ea1:0x169,_0x2586af:0xba},_0x37b02c={_0x1a44be:0x1fc},_0x5f2f46={_0x526174:0x13e},_0x4ef8bb=_0x4499db[_0x2c3719(_0xa5ad64._0xa855b6,_0xa5ad64._0x35798b,0x2b2,_0xa5ad64._0x18114b)](_0x529aaf[_0x2c3719(_0xa5ad64._0x422c66,_0xa5ad64._0x2dbe01,0x259,0x357)]??process['cwd']()),_0x5acc42=_0x529aaf[_0x2050da(_0xa5ad64._0x19a45b,_0xa5ad64._0x2bf909,_0xa5ad64._0x16b386,_0xa5ad64._0x40251c)]??[],_0x1048c6=_0x529aaf['maxBytes']??DEFAULT_MAX_BYTES;function _0x2050da(_0x3120d2,_0x35eb48,_0x155626,_0x324480){return _0x4bd068(_0x324480,_0x3120d2- -0x7e,_0x155626-0x139,_0x324480-_0x5f2f46._0x526174);}function _0x2c3719(_0x11f2ad,_0x137089,_0xa67244,_0x480070){return _0x4bd068(_0x480070,_0xa67244- -_0x37b02c._0x1a44be,_0xa67244-0x9d,_0x480070-0x19c);}const _0x2a9b74=_0x529aaf[_0x2050da(0x515,_0xa5ad64._0xc339ab,_0xa5ad64._0x29a8a2,0x3f1)]??_0x2c3719(_0xa5ad64._0x488d5c,_0xa5ad64._0x4374a1,0x28f,_0xa5ad64._0x3baf0d);return defineTool({'name':_0x2a9b74,'description':_0x2050da(0x495,0x4e3,_0xa5ad64._0x7aa0d,0x547),'inputSchema':{'type':'object','properties':{'path':{'type':_0x2050da(_0xa5ad64._0x5c1806,_0xa5ad64._0xd41091,_0xa5ad64._0x6c8865,_0xa5ad64._0x10dac5)},'detail':{'type':'string'}},'required':['path']},async *'execute'(_0x54d36f){const _0x3f4892={_0xf3b906:0x1ad,_0x36bbf5:0xcd},_0x119407=resolveAllowedPath(_0x4ef8bb,_0x5acc42,_0x54d36f[_0x5a3503(_0x40d07d._0x385aad,_0x40d07d._0xf962b9,0x7d8,0x704)]);function _0x32b6fc(_0x2c6b96,_0x2408eb,_0x3a1959,_0x50cae0){return _0x2050da(_0x3a1959-_0x1d2b0d._0x3a2ed8,_0x2408eb-_0x1d2b0d._0x5a1ea1,_0x3a1959-_0x1d2b0d._0x2586af,_0x2408eb);}await assertWorkspaceFile(_0x119407);const _0x2ab6aa=await _0x21ad75(_0x119407);if(_0x2ab6aa[_0x32b6fc(0x6d1,_0x40d07d._0x235cb5,0x6b3,_0x40d07d._0x26a17a)]>_0x1048c6)throw new ToolExecutionError(_0x32b6fc(_0x40d07d._0x45cc81,_0x40d07d._0x128da7,_0x40d07d._0x1339bf,_0x40d07d._0x4705f0)+_0x54d36f[_0x5a3503(0x711,0x6be,_0x40d07d._0x20a98c,0x704)],{'path':_0x54d36f[_0x5a3503(_0x40d07d._0x1b9c8d,0x6dd,0x677,0x704)],'maxBytes':_0x1048c6,'size':_0x2ab6aa[_0x5a3503(0x7aa,_0x40d07d._0xd41751,0x707,_0x40d07d._0x28e693)]});const _0x29818a=await _0x33f483(_0x119407),_0x358acf=detectImageMediaType(_0x29818a,_0x119407);if(!_0x358acf)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x54d36f[_0x32b6fc(_0x40d07d._0x2df983,_0x40d07d._0x275236,_0x40d07d._0x504a1f,0x559)],{'path':_0x54d36f[_0x32b6fc(0x77d,_0x40d07d._0x3d4e7f,0x6b9,0x7dc)],'supported':['.gif','.jpeg',_0x32b6fc(_0x40d07d._0x2ae76b,0x677,_0x40d07d._0x4e0e5c,0x5d7),_0x5a3503(_0x40d07d._0x4e7508,0x3f3,_0x40d07d._0xd1aa0d,_0x40d07d._0x39e69c),_0x32b6fc(_0x40d07d._0x35c471,_0x40d07d._0x1915cf,0x69a,_0x40d07d._0x5475f7)]});function _0x5a3503(_0x31deda,_0x21e1bf,_0x5020b3,_0x401322){return _0x2c3719(_0x31deda-_0x3f4892._0xf3b906,_0x21e1bf-_0x3f4892._0x36bbf5,_0x401322-0x31b,_0x31deda);}const _0x49f46a=normalizeDetail(_0x54d36f[_0x32b6fc(_0x40d07d._0x413d10,0x7f3,0x6ed,0x7f6)]),_0x466171=[_0x32b6fc(_0x40d07d._0x5acdc9,_0x40d07d._0x5d858d,0x766,_0x40d07d._0x488c6c)+_0x54d36f[_0x5a3503(0x7a2,0x74a,0x75b,0x704)],_0x5a3503(_0x40d07d._0x1b40b3,0x87c,_0x40d07d._0x1838fb,_0x40d07d._0x328560)+_0x358acf,_0x32b6fc(0x695,_0x40d07d._0x4f44a1,0x62c,0x672)+_0x2ab6aa['size']+_0x5a3503(0x717,0x846,0x677,_0x40d07d._0x8717e3)][_0x32b6fc(0x62e,_0x40d07d._0x23c26f,0x540,_0x40d07d._0xaaed70)](_0x49f46a?[_0x5a3503(0x685,0x6d0,_0x40d07d._0xb8d3da,0x663)+_0x49f46a]:[])['join']('\x0a'),_0x5eb900=[{'type':_0x5a3503(_0x40d07d._0xaf1595,0x6ca,0x51a,0x684),'source':{'type':_0x32b6fc(_0x40d07d._0x1304a2,0x61c,_0x40d07d._0x5730e2,_0x40d07d._0x40084b),'media_type':_0x358acf,'data':_0x29818a[_0x5a3503(0x6ab,_0x40d07d._0x2dd525,0x71c,_0x40d07d._0x37de91)](_0x5a3503(0x7ad,_0x40d07d._0x2db433,_0x40d07d._0x3eb74f,0x6c2))}},{'type':_0x32b6fc(_0x40d07d._0x4a727e,_0x40d07d._0x300b8b,0x6bb,0x5dc),'text':_0x466171}];return yield createToolOutput(_0x466171,{'path':_0x54d36f[_0x32b6fc(0x685,_0x40d07d._0x4cbe60,_0x40d07d._0x4bb41c,_0x40d07d._0x192690)],'resolvedPath':_0x119407,'created':_0x2ab6aa[_0x32b6fc(0x770,_0x40d07d._0x47515f,_0x40d07d._0x344617,0x68a)]['toISOString'](),'modified':_0x2ab6aa[_0x5a3503(0x8b5,_0x40d07d._0x435470,_0x40d07d._0x3acf29,_0x40d07d._0x4342d9)][_0x32b6fc(_0x40d07d._0x286bdc,0x3dc,0x530,0x502)](),'size':_0x2ab6aa[_0x32b6fc(_0x40d07d._0x39ad6e,0x6a3,_0x40d07d._0x1f77a3,_0x40d07d._0x13f41e)],'mimeType':_0x358acf,'encoding':_0x5a3503(0x57f,0x556,_0x40d07d._0x5ac0dd,0x6c2),..._0x49f46a?{'detail':_0x49f46a}:{}},_0x5eb900),void 0x0;}});}import _0x173623 from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x34fca5=>{const _0x818651={_0xd53c70:0x58b,_0x24fecc:0x688},_0x48b383={_0x32208c:0x2d,_0x5f1486:0x3a9},{lookup:_0x3bfa83}=await import(_0x42d4c5(_0x818651._0xd53c70,0x534,_0x818651._0x24fecc,0x58b));function _0x42d4c5(_0x1e5fb7,_0x55047b,_0x43d52c,_0x36a84d){return _0x154255(_0x55047b,_0x55047b-_0x48b383._0x32208c,_0x36a84d-_0x48b383._0x5f1486,_0x36a84d-0x1c3);}return _0x3bfa83(_0x34fca5,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0xecad49){const _0x23a252={_0x5b8909:0x153,_0x346808:0xf,_0x5b303c:0x47,_0x28f06d:0xc7,_0x38f3ec:0x394,_0xdb9d23:0x132,_0x41ac33:0x177,_0xc0fe3a:0x198},_0x449fe8={_0x3879ba:0x13e,_0x296e46:0x93,_0x4ed09b:0xab},_0x2f4fd8=_0xecad49[_0x4c012d(-_0x23a252._0x5b8909,-_0x23a252._0x346808,-_0x23a252._0x5b303c,_0x23a252._0x28f06d)]('.');if(_0x2f4fd8[_0xc79f6d(_0x23a252._0x38f3ec,0x295,_0x23a252._0xdb9d23,0x126)]!==0x4)return null;let _0xcc0a32=0x0;for(const _0x2797a1 of _0x2f4fd8){if(!/^\d{1,3}$/[_0xc79f6d(0x458,0x2e5,_0x23a252._0x41ac33,_0x23a252._0xc0fe3a)](_0x2797a1))return null;const _0x9e52d7=Number(_0x2797a1);if(_0x9e52d7>0xff)return null;_0xcc0a32=_0xcc0a32*0x100+_0x9e52d7;}function _0xc79f6d(_0x244c8c,_0x47780b,_0x15d016,_0x5787c2){return _0x4bd068(_0x5787c2,_0x47780b- -_0x449fe8._0x3879ba,_0x15d016-_0x449fe8._0x296e46,_0x5787c2-_0x449fe8._0x4ed09b);}function _0x4c012d(_0x13d871,_0x1df5c9,_0x376703,_0x598ab8){return _0x4bd068(_0x13d871,_0x376703- -0x52f,_0x376703-0x1e7,_0x598ab8-0xb5);}return _0xcc0a32>>>0x0;}function isBlockedIpv4(_0xb2cd3a){const _0x41036d={_0x17a0b4:0x3c8,_0x50b039:0x34b,_0x161ad6:0x45f,_0x175f18:0x4a8,_0xe0b122:0x1ba,_0x5af82a:0x4fa,_0x533fa5:0x445,_0x213970:0x314,_0x3af02e:0x4f2,_0x16fa75:0x26,_0x44b266:0x450,_0x4da5b2:0x38b},_0x422e01={_0x4288bf:0x558},_0x41c337={_0x292f0b:0x5b,_0x1052a0:0x69},_0x38a20d=ipv4ToInt(_0xb2cd3a);if(_0x38a20d===null)return!![];function _0x537c31(_0x1b740e,_0x52107e,_0x5ed2fb,_0x14775f){return _0x154255(_0x14775f,_0x52107e-_0x41c337._0x292f0b,_0x1b740e-0x24e,_0x14775f-_0x41c337._0x1052a0);}function _0x4427d0(_0x341c9f,_0x41e104,_0x53fab2,_0x30c921){return _0x4bd068(_0x41e104,_0x341c9f- -_0x422e01._0x4288bf,_0x53fab2-0x5e,_0x30c921-0x15c);}const _0x596ae9=(_0x5d376d,_0xe36915)=>{const _0x46e13c=ipv4ToInt(_0x5d376d);if(_0x46e13c===null)return![];const _0xe88ec8=_0xe36915===0x0?0x0:0xffffffff<<0x20-_0xe36915>>>0x0;return(_0x38a20d&_0xe88ec8)===(_0x46e13c&_0xe88ec8);};return _0x596ae9(_0x537c31(0x4f6,0x424,0x66a,0x58d),0x8)||_0x596ae9('10.0.0.0',0x8)||_0x596ae9(_0x537c31(_0x41036d._0x17a0b4,_0x41036d._0x50b039,0x2b3,_0x41036d._0x161ad6),0xa)||_0x596ae9(_0x537c31(_0x41036d._0x175f18,0x61f,0x35c,0x430),0x8)||_0x596ae9(_0x4427d0(0xbe,0xe,0x10e,_0x41036d._0xe0b122),0x10)||_0x596ae9(_0x537c31(_0x41036d._0x5af82a,0x599,_0x41036d._0x533fa5,0x61d),0xc)||_0x596ae9(_0x537c31(0x3f0,_0x41036d._0x213970,_0x41036d._0x3af02e,0x350),0x18)||_0x596ae9(_0x4427d0(0x17,0xa6,0x10c,-0x4e),0x10)||_0x596ae9('198.18.0.0',0xf)||_0x596ae9(_0x4427d0(0x8b,_0x41036d._0x16fa75,-0x53,-0x85),0x4)||_0x596ae9(_0x537c31(0x4c5,0x576,_0x41036d._0x44b266,_0x41036d._0x4da5b2),0x4);}function expandIpv6(_0x5c4cfc){const _0x2ded95={_0xa1518b:0x36d,_0x4ff24f:0x181,_0x1ed479:0x1f1,_0x15cc56:0x236,_0x3b6345:0x1d9,_0x16b06b:0x352,_0x14720f:0x255,_0x2503a5:0x3ce,_0x2d3bdd:0x306,_0x880bb4:0x45,_0x5e349b:0x118,_0xfa3fb8:0xa,_0x54f87a:0x53,_0x20d6b1:0x1eb,_0x2e322c:0x115,_0x513d5c:0x79,_0x2e1a78:0x250,_0x5636bd:0xff,_0x20fc3a:0x238,_0x51e9c3:0x105,_0x4916eb:0x232,_0x283649:0x105},_0x5f56dd={_0x4ef580:0x147,_0x1d383a:0xab},_0x535a31={_0xaa7e6:0x7e};let _0x451cea=_0x5c4cfc,_0x1a20bd;const _0x4946d8=_0x451cea[_0x26f7c3(0x294,_0x2ded95._0xa1518b,_0x2ded95._0x4ff24f,_0x2ded95._0x1ed479)](':');_0x451cea['slice'](_0x4946d8+0x1)[_0x26f7c3(0x1b2,_0x2ded95._0x15cc56,_0x2ded95._0x3b6345,0x6f)]('.')&&(_0x1a20bd=_0x451cea['slice'](_0x4946d8+0x1),_0x451cea=_0x451cea[_0x26f7c3(_0x2ded95._0x16b06b,0x33f,_0x2ded95._0x14720f,_0x2ded95._0x2503a5)](0x0,_0x4946d8+0x1));const _0x3dd880=_0x451cea[_0x26f7c3(0x1ba,_0x2ded95._0x2d3bdd,0x28d,0x1a6)]('::');if(_0x3dd880[_0x2c1990(_0x2ded95._0x880bb4,-0xff,-_0x2ded95._0x5e349b,-_0x2ded95._0xfa3fb8)]>0x2)return null;const _0x4370a9=_0x387261=>_0x387261[_0x26f7c3(0x1ba,0x2d4,0x215,0xfa)](':')[_0x26f7c3(0x2fd,0x3b8,0x3d1,0x2ec)](_0x1ccea3=>_0x1ccea3[_0x26f7c3(0xa5,0x1f4,-0x57,0xbb)]>0x0)['map'](_0x444dad=>Number[_0x26f7c3(0x27e,0x192,0x218,0x126)](_0x444dad,0x10));function _0x26f7c3(_0x520a88,_0x415b9c,_0x4c2be6,_0x489417){return _0x154255(_0x415b9c,_0x415b9c-0x1ac,_0x520a88-0x68,_0x489417-_0x535a31._0xaa7e6);}const _0x359d14=_0x3dd880[0x0]?_0x4370a9(_0x3dd880[0x0]):[],_0x10c21a=_0x3dd880[_0x26f7c3(0xa5,_0x2ded95._0x54f87a,0xf9,_0x2ded95._0x20d6b1)]===0x2&&_0x3dd880[0x1]?_0x4370a9(_0x3dd880[0x1]):[],_0x1ea38d=[];if(_0x1a20bd){const _0x2e72f1=ipv4ToInt(_0x1a20bd);if(_0x2e72f1===null)return null;_0x1ea38d[_0x2c1990(-0x25e,-_0x2ded95._0x2e322c,-0x1e2,-0x27b)](_0x2e72f1>>>0x10&0xffff,_0x2e72f1&0xffff);}const _0x4377ee=[..._0x10c21a,..._0x1ea38d];function _0x2c1990(_0x53fe25,_0x4041f7,_0x263933,_0x57d352){return _0x154255(_0x53fe25,_0x4041f7-_0x5f56dd._0x4ef580,_0x4041f7- -0x13c,_0x57d352-_0x5f56dd._0x1d383a);}const _0x1b7bfc=0x8-_0x359d14[_0x2c1990(-0x21c,-0xff,-0x22,-0x93)]-_0x4377ee['length'];if(_0x3dd880[_0x26f7c3(0xa5,-0x64,0x152,_0x2ded95._0x513d5c)]===0x1)return _0x359d14[_0x2c1990(-_0x2ded95._0x2e1a78,-_0x2ded95._0x5636bd,-0xb3,-_0x2ded95._0x20fc3a)]+_0x4377ee[_0x26f7c3(0xa5,-0x6d,0x1,_0x2ded95._0x51e9c3)]===0x8?[..._0x359d14,..._0x4377ee]:null;if(_0x1b7bfc<0x0)return null;return[..._0x359d14,...new Array(_0x1b7bfc)[_0x2c1990(-_0x2ded95._0x4916eb,-_0x2ded95._0x283649,-0xee,-0x4b)](0x0),..._0x4377ee];}function isBlockedIpv6(_0x48b8e6){const _0x460489={_0x2f2783:0x1eb,_0x144568:0xad,_0x2ad938:0x201,_0x2d6eae:0x1b5,_0x9c3161:0x278,_0x154063:0x12f,_0x2017b7:0x1a,_0x43b4c9:0x24a,_0x5d937d:0x11d,_0x282f56:0xdf,_0x141e0b:0x16,_0x216335:0x152},_0x325917={_0x351995:0x72,_0x2541b1:0x196},_0x3ecbc2={_0xaa14fc:0x495,_0x1786b3:0x75,_0x44b12d:0x1da},_0x2d3365=expandIpv6(_0x48b8e6);if(!_0x2d3365||_0x2d3365['some'](_0x559688=>Number[_0x3689e9(-0xc6,0x2,-0x8f,0x7d)](_0x559688)))return!![];const _0x250052=_0x2d3365[_0x3689e9(_0x460489._0x2f2783,_0x460489._0x144568,_0x460489._0x2ad938,0xef)](0x0,0x7)['every'](_0x70c402=>_0x70c402===0x0);if(_0x250052&&(_0x2d3365[0x7]===0x0||_0x2d3365[0x7]===0x1))return!![];if(_0x2d3365[_0x4341c5(_0x460489._0x2d6eae,0x1ef,0x35b,_0x460489._0x9c3161)](0x0,0x5)[_0x3689e9(_0x460489._0x154063,_0x460489._0x2017b7,-0x26,_0x460489._0x43b4c9)](_0x22db0a=>_0x22db0a===0x0)&&(_0x2d3365[0x5]===0xffff||_0x2d3365[0x5]===0x0)){const _0x458c50=(_0x2d3365[0x6]<<0x10|_0x2d3365[0x7])>>>0x0,_0xbdf41b=[_0x458c50>>>0x18&0xff,_0x458c50>>>0x10&0xff,_0x458c50>>>0x8&0xff,_0x458c50&0xff][_0x4341c5(_0x460489._0x5d937d,_0x460489._0x282f56,_0x460489._0x141e0b,_0x460489._0x216335)]('.');return isBlockedIpv4(_0xbdf41b);}const _0x2f7ddb=_0x2d3365[0x0];if((_0x2f7ddb&0xff00)===0xfc00||(_0x2f7ddb&0xfe00)===0xfc00)return!![];if((_0x2f7ddb&0xffc0)===0xfe80)return!![];if((_0x2f7ddb&0xff00)===0xff00)return!![];function _0x3689e9(_0x1c5b71,_0x90e5f8,_0x461fff,_0x194ad8){return _0x4bd068(_0x461fff,_0x1c5b71- -_0x3ecbc2._0xaa14fc,_0x461fff-_0x3ecbc2._0x1786b3,_0x194ad8-_0x3ecbc2._0x44b12d);}function _0x4341c5(_0x3e0b54,_0x298417,_0x54c2bb,_0x2db6e2){return _0x154255(_0x3e0b54,_0x298417-0x1c3,_0x2db6e2- -_0x325917._0x351995,_0x2db6e2-_0x325917._0x2541b1);}return![];}function isBlockedAddress(_0x4f7c47){const _0x190a7c=isIP(_0x4f7c47);if(_0x190a7c===0x4)return isBlockedIpv4(_0x4f7c47);if(_0x190a7c===0x6)return isBlockedIpv6(_0x4f7c47);return!![];}async function assertPublicUrl(_0x4fcbc3,_0x532245={}){const _0x16ced8={_0xd0e7f9:0x644,_0x3daffa:0x620,_0x3ea169:0x5ef,_0x548ad8:0x609,_0x299095:0x719,_0x2288f0:0x673,_0x477c64:0x75d,_0x1766e5:0x4a3,_0x319a32:0x5ff,_0x4fdcb9:0x662,_0x35432b:0x5dc,_0x36f8a2:0x5df,_0x57988f:0x65c,_0x3576d3:0x6b9,_0x45e8ee:0x54b,_0x1efd4c:0x793,_0x5c7f34:0x772,_0x363220:0x812,_0x44a661:0x828,_0x3720f1:0x54f,_0x5b0ff4:0x46f,_0x4bd357:0x459,_0x9e64b5:0x516,_0x3f7f85:0x384,_0x3264ac:0x2e3,_0xa9b923:0x871},_0x18c003={_0x328492:0x408},_0x1b75ef={_0x23fc3d:0x1e5,_0x1c1add:0x1db};let _0x1bff6c;try{_0x1bff6c=new URL(_0x4fcbc3);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x4fcbc3});}if(_0x1bff6c[_0x3b55f9(0x680,_0x16ced8._0xd0e7f9,_0x16ced8._0x3daffa,_0x16ced8._0x3ea169)]!==_0x11570e(_0x16ced8._0x548ad8,0x5d0,0x694,0x678)&&_0x1bff6c[_0x3b55f9(0x4f0,_0x16ced8._0x299095,0x620,0x597)]!==_0x3b55f9(0x7e6,0x731,0x6ac,_0x16ced8._0x2288f0))throw new ToolExecutionError(_0x11570e(_0x16ced8._0x477c64,0x5f8,_0x16ced8._0x1766e5,_0x16ced8._0x319a32),{'url':_0x4fcbc3});if(_0x1bff6c['username']||_0x1bff6c[_0x11570e(_0x16ced8._0x4fdcb9,_0x16ced8._0x35432b,_0x16ced8._0x36f8a2,0x56f)])throw new ToolExecutionError(_0x3b55f9(_0x16ced8._0x57988f,0x5ed,0x557,0x417),{'url':_0x1bff6c[_0x11570e(0x693,0x809,0x5a8,0x6b3)]+'//'+_0x1bff6c[_0x11570e(0x4fe,_0x16ced8._0x3576d3,0x696,_0x16ced8._0x45e8ee)]+_0x1bff6c[_0x11570e(0x7df,0x6aa,0x900,_0x16ced8._0x1efd4c)]});const _0x44f426=_0x1bff6c[_0x3b55f9(_0x16ced8._0x5c7f34,0x4d4,0x645,0x548)]['replace'](/^\[|\]$/g,''),_0x3e36ed=_0x1bff6c['protocol']+'//'+_0x1bff6c[_0x11570e(0x4c2,0x465,0x67c,0x54b)]+_0x1bff6c[_0x11570e(0x7cd,_0x16ced8._0x363220,_0x16ced8._0x44a661,0x793)];function _0x11570e(_0x14d1b8,_0x4fdf85,_0x5934fd,_0x562171){return _0x4bd068(_0x14d1b8,_0x562171-0x105,_0x5934fd-_0x1b75ef._0x23fc3d,_0x562171-_0x1b75ef._0x1c1add);}if(isIP(_0x44f426)){if(isBlockedAddress(_0x44f426))throw new ToolExecutionError(_0x3b55f9(0x362,0x37c,0x4a1,_0x16ced8._0x3720f1),{'url':_0x3e36ed});return _0x1bff6c;}const _0x48b76b=_0x532245['lookup']??defaultLookup;let _0x41025d;try{_0x41025d=await _0x48b76b(_0x44f426);}catch{throw new ToolExecutionError(_0x3b55f9(_0x16ced8._0x5b0ff4,_0x16ced8._0x4bd357,0x53d,_0x16ced8._0x9e64b5),{'url':_0x3e36ed});}if(_0x41025d[_0x3b55f9(0x39f,_0x16ced8._0x3f7f85,0x445,_0x16ced8._0x3264ac)]===0x0)throw new ToolExecutionError('Could\x20not\x20resolve\x20host',{'url':_0x3e36ed});for(const {address:_0x2e05ed}of _0x41025d){if(isBlockedAddress(_0x2e05ed))throw new ToolExecutionError(_0x11570e(_0x16ced8._0xa9b923,0x8b7,0x785,0x774),{'url':_0x3e36ed});}function _0x3b55f9(_0x586316,_0x2c1d92,_0x42d0fc,_0x2c87f1){return _0x154255(_0x2c1d92,_0x2c1d92-0x73,_0x42d0fc-_0x18c003._0x328492,_0x2c87f1-0xba);}return _0x1bff6c;}async function safeFetch(_0x3a77b8,_0x4f14c2={},_0x5a818b={}){const _0x5a7cd2={_0x91ddc9:0xa8,_0x1093d3:0x33,_0xb919a1:0x19b,_0x4171d0:0x12a,_0x153d9f:0x23b,_0x31a275:0x117,_0x5b44d0:0x17f,_0x51d840:0x3d,_0x504500:0xb6,_0x3bcb6c:0x24b,_0xfcaaec:0x111,_0x5db6a3:0x10b,_0x356716:0x7f,_0x5451ee:0x56,_0x418c5d:0x288},_0x409fea={_0x342e84:0x17e,_0x117507:0x2b},_0x2a40f6=_0x5a818b['fetchImpl']??fetch;function _0x5abf8f(_0x5bfc8b,_0x25c339,_0x216a95,_0x1310ab){return _0x4bd068(_0x1310ab,_0x25c339- -0x644,_0x216a95-_0x409fea._0x342e84,_0x1310ab-_0x409fea._0x117507);}const _0xfc9215=_0x5a818b[_0x138193(_0x5a7cd2._0x91ddc9,0x1f3,0x124,-_0x5a7cd2._0x1093d3)]??DEFAULT_MAX_REDIRECTS;function _0x138193(_0x175cac,_0x1ad052,_0x20ea51,_0x3ab823){return _0x154255(_0x3ab823,_0x1ad052-0x1e5,_0x20ea51- -0xb0,_0x3ab823-0x118);}let _0x24ed2c=_0x3a77b8;for(let _0x59b59c=0x0;;_0x59b59c+=0x1){const _0x2e42f5=await assertPublicUrl(_0x24ed2c,_0x5a818b),_0x4d0ff6=await _0x2a40f6(_0x2e42f5[_0x5abf8f(-_0x5a7cd2._0xb919a1,-_0x5a7cd2._0x4171d0,-_0x5a7cd2._0x153d9f,-_0x5a7cd2._0x31a275)](),{..._0x4f14c2,'redirect':'manual'}),_0x5f47fd=_0x4d0ff6['headers'][_0x138193(_0x5a7cd2._0x5b44d0,-_0x5a7cd2._0x51d840,_0x5a7cd2._0x504500,-0x72)](_0x5abf8f(-_0x5a7cd2._0x3bcb6c,-0xde,-0x1b4,-_0x5a7cd2._0xfcaaec));if(!REDIRECT_STATUSES['has'](_0x4d0ff6[_0x138193(0x272,_0x5a7cd2._0x5db6a3,0x13a,0x1e2)])||!_0x5f47fd)return _0x4d0ff6;if(_0x59b59c>=_0xfc9215)throw new ToolExecutionError(_0x138193(-_0x5a7cd2._0x356716,_0x5a7cd2._0x5451ee,-0x40,0x69),{'url':_0x2e42f5[_0x5abf8f(-0xcf,-_0x5a7cd2._0x4171d0,-0x232,-_0x5a7cd2._0x418c5d)]()});_0x24ed2c=new URL(_0x5f47fd,_0x2e42f5)['toString']();}}var USER_AGENT=_0x4bd068(0x594,0x4f7,0x473,0x63d),DEFAULT_TIMEOUT_MS2=0xea60;function createTimeoutSignal(_0x342cc9,_0x202d73){const _0x3b398e={_0x4587df:0x54c,_0x7f5ede:0x3ff,_0xd9b15a:0x2d7,_0x2ef48e:0x473,_0x2d6de3:0x429,_0x412a3d:0x43a,_0x1f9a76:0x369},_0x5289c9={_0x58a9d2:0x5a1,_0x30a74a:0x562,_0x174a6c:0x591,_0x4945de:0x4ba},_0x1e9d2e={_0x5a2a4b:0x57,_0x593fff:0xb5},_0x1e8a5a={_0x122037:0x95},_0x25d159=new AbortController();function _0x361c67(_0x368cfd,_0x3df8a3,_0xf56a86,_0x809365){return _0x4bd068(_0x368cfd,_0x3df8a3- -0x1c1,_0xf56a86-0x4b,_0x809365-_0x1e8a5a._0x122037);}function _0x536003(_0x5d54fd,_0x1c4145,_0x3f7321,_0x39f963){return _0x4bd068(_0x3f7321,_0x39f963- -0x124,_0x3f7321-0xc0,_0x39f963-0x1be);}const _0x403a06=setTimeout(()=>_0x25d159['abort'](new Error(_0x536003(0x3e0,0x430,0x33e,0x382))),_0x202d73),_0x584d5f=()=>_0x25d159[_0x361c67(0x4bf,0x43f,0x447,0x464)](_0x342cc9[_0x536003(0x21d,0x443,0x32a,0x2d7)]);return _0x342cc9['aborted']?_0x25d159[_0x361c67(0x42d,0x43f,_0x3b398e._0x4587df,0x39c)](_0x342cc9[_0x536003(0x24d,0x276,_0x3b398e._0x7f5ede,_0x3b398e._0xd9b15a)]):_0x342cc9[_0x361c67(0x453,0x357,_0x3b398e._0x2ef48e,0x4b7)](_0x361c67(_0x3b398e._0x2d6de3,0x43f,0x3d8,0x3e7),_0x584d5f,{'once':!![]}),{'signal':_0x25d159[_0x536003(0x307,_0x3b398e._0x412a3d,_0x3b398e._0x1f9a76,0x378)],'cleanup':()=>{const _0x126a7f={_0x4b5ac0:0x100,_0x4a604d:0x22,_0x15ddac:0x1c};function _0x340c62(_0x114570,_0x3b8af9,_0x23230d,_0x3da3da){return _0x536003(_0x114570-_0x126a7f._0x4b5ac0,_0x3b8af9-_0x126a7f._0x4a604d,_0x3b8af9,_0x23230d- -_0x126a7f._0x15ddac);}clearTimeout(_0x403a06);function _0x73b13a(_0x21a8a7,_0x3643f1,_0x51dd79,_0x32d6c2){return _0x536003(_0x21a8a7-0x174,_0x3643f1-_0x1e9d2e._0x5a2a4b,_0x3643f1,_0x21a8a7-_0x1e9d2e._0x593fff);}_0x342cc9[_0x340c62(0x39e,_0x5289c9._0x58a9d2,0x4df,_0x5289c9._0x30a74a)](_0x73b13a(_0x5289c9._0x174a6c,0x524,_0x5289c9._0x4945de,0x5b8),_0x584d5f);}};}function createWebFetchTool(_0x50e8e4={}){const _0x1eba06={_0x3599c4:0x43b,_0x552e6c:0x452,_0xb6a33c:0x40a,_0xe06e2b:0x31d,_0x22593b:0x2b2,_0x4ac5fc:0x3c0,_0x507e41:0x40d,_0x46e429:0x502,_0x1bdc2b:0x4a0,_0x4ca1b2:0x504,_0xdcf8f5:0x2b9,_0x54e821:0x373,_0x43f28e:0x4b0,_0x45c38b:0x42b,_0x189d6a:0x47f,_0x128552:0x2ec,_0x23c625:0x34e,_0x30ae4d:0x221,_0x55a9b6:0x3fb,_0x2a3ef7:0x42a,_0x319595:0x4a5,_0x5a3c6d:0x5af,_0x4bc79e:0x462,_0x250867:0x50b,_0x1e6dc7:0x45c,_0x68b1a5:0x464,_0x7da410:0x201,_0x105ea9:0x171},_0x3e6a5b={_0xc7b7cc:0x4af,_0x5cadc9:0x489,_0x4ef1a3:0x303,_0x1515e2:0x2bb,_0x2d4669:0x272,_0x1ff1c6:0x248,_0x3d75aa:0x168,_0x1b5dbe:0x752,_0x9220e9:0x708,_0x5639ca:0x6cd,_0x2016b6:0x31b,_0x27ccda:0x309,_0x567094:0x46e,_0x290bb4:0x259,_0x38fd22:0x75b,_0x1509e5:0x6e8,_0x6b906e:0x32e,_0x20f580:0x2fa,_0x551711:0x2b8,_0x121938:0x4c0,_0x2c515c:0x3c4,_0x2d4354:0x5c2,_0x4ac20b:0x4bb,_0x3d949e:0x300,_0x5bda0f:0x27b,_0x1dd881:0x21e,_0x385293:0x582,_0x1289b2:0x576,_0x84396c:0x70c,_0x7f905c:0x59e,_0x51f140:0x1eb,_0x5dd54e:0x649,_0x1475a4:0x517,_0x5abde2:0x4c7,_0x110929:0x602,_0x4a3397:0x2f8,_0x1a68c8:0x5b6,_0x2c4281:0x44d,_0x5b90e7:0x41b,_0x32ce94:0x493,_0x1ba54b:0x577,_0x26276c:0x325,_0x16695f:0x2d4,_0x50bcc0:0x412,_0x337dda:0x3fa,_0x266781:0x474,_0x9e4d66:0x496,_0x5c0089:0x328,_0x272158:0x6e2,_0x219917:0x15e,_0x322b96:0x1b0},_0x570976={_0x24aca5:0x141,_0xa2339d:0x14a},_0x416079={_0x204ef1:0x64,_0x5b15df:0xe8},_0x2a896e=_0x50e8e4[_0x4c1433(_0x1eba06._0x3599c4,_0x1eba06._0x552e6c,_0x1eba06._0xb6a33c,_0x1eba06._0xe06e2b)]??_0x38457d(_0x1eba06._0x22593b,_0x1eba06._0x4ac5fc,_0x1eba06._0x507e41,0x3ad),_0x2394f3=_0x50e8e4[_0x38457d(_0x1eba06._0x46e429,_0x1eba06._0x1bdc2b,_0x1eba06._0x4ca1b2,0x4f9)]??DEFAULT_TIMEOUT_MS2;function _0x38457d(_0x222e34,_0x40b101,_0x210f46,_0x6cf8dc){return _0x4bd068(_0x210f46,_0x40b101- -0x16a,_0x210f46-_0x416079._0x204ef1,_0x6cf8dc-_0x416079._0x5b15df);}const _0x4c98c4=_0x50e8e4['lookup'],_0x39f58a=new _0x173623({'headingStyle':'atx','codeBlockStyle':'fenced','bulletListMarker':'-'});_0x39f58a[_0x4c1433(0x3f2,_0x1eba06._0xdcf8f5,_0x1eba06._0x54e821,0x259)]([_0x38457d(_0x1eba06._0x43f28e,_0x1eba06._0x45c38b,0x505,0x54b),'style','noscript',_0x38457d(_0x1eba06._0x189d6a,0x39a,_0x1eba06._0x128552,0x41e),_0x38457d(_0x1eba06._0x23c625,0x2bf,_0x1eba06._0x30ae4d,0x30f),_0x4c1433(0x355,0x400,0x4f9,0x428),'header',_0x38457d(0x2e8,0x3a3,0x4ae,_0x1eba06._0x55a9b6)]);function _0x4c1433(_0x4ebdeb,_0x28af0c,_0x5bce06,_0x4cec28){return _0x4bd068(_0x5bce06,_0x28af0c- -_0x570976._0x24aca5,_0x5bce06-0x1c7,_0x4cec28-_0x570976._0xa2339d);}return defineTool({'name':_0x2a896e,'description':_0x4c1433(_0x1eba06._0x2a3ef7,_0x1eba06._0x319595,0x439,_0x1eba06._0x5a3c6d),'inputSchema':{'type':_0x38457d(_0x1eba06._0x4bc79e,_0x1eba06._0x250867,_0x1eba06._0x1e6dc7,_0x1eba06._0x68b1a5),'properties':{'description':{'type':'string'},'url':{'type':_0x38457d(_0x1eba06._0x7da410,0x2b4,0x2fc,0x3a8)}},'required':[_0x4c1433(0x456,0x2eb,0x341,_0x1eba06._0x105ea9)]},async *'execute'(_0x38f83c,_0x42f930){const _0x29447d={_0x511e29:0xc3},_0x5aec92={_0x430f60:0x1a7},_0x5d5b1c=(await assertPublicUrl(_0x38f83c['url'],{'lookup':_0x4c98c4}))['toString']();if(_0x42f930['signal'][_0x58b0b1(_0x3e6a5b._0xc7b7cc,0x3ca,0x322,_0x3e6a5b._0x5cadc9)])throw new ToolExecutionError(_0x58b0b1(0x16b,0x23a,0x2bc,_0x3e6a5b._0x4ef1a3),{'url':_0x5d5b1c});function _0x44b9a3(_0x2d17ee,_0x4f0f8c,_0x400e75,_0x17d9c5){return _0x38457d(_0x2d17ee-_0x5aec92._0x430f60,_0x17d9c5-0x200,_0x400e75,_0x17d9c5-0xec);}const _0x41a602=createTimeoutSignal(_0x42f930[_0x58b0b1(0x2e5,_0x3e6a5b._0x1515e2,0x378,_0x3e6a5b._0x2d4669)],_0x2394f3);let _0x23cd45='',_0x4ffd48=0x0;function _0x58b0b1(_0x3167af,_0x4187be,_0x18e044,_0x22a61a){return _0x4c1433(_0x3167af-_0x29447d._0x511e29,_0x4187be- -0xa0,_0x3167af,_0x22a61a-0xbf);}let _0x4a96de;try{const _0xe46104=await safeFetch(_0x5d5b1c,{'headers':{'User-Agent':USER_AGENT},'signal':_0x41a602[_0x58b0b1(_0x3e6a5b._0x1ff1c6,_0x3e6a5b._0x1515e2,0x435,_0x3e6a5b._0x3d75aa)]},{'lookup':_0x4c98c4});if(!_0xe46104['ok'])throw new ToolExecutionError(_0x44b9a3(0x73d,_0x3e6a5b._0x1b5dbe,0x647,0x6e8)+_0xe46104[_0x58b0b1(0x2eb,0x39f,0x291,0x394)]+'\x20'+_0xe46104['statusText'],{'url':_0x5d5b1c,'statusCode':_0xe46104['status']});_0x23cd45=_0xe46104[_0x44b9a3(0x724,_0x3e6a5b._0x9220e9,_0x3e6a5b._0x5639ca,0x5dc)][_0x58b0b1(0x362,_0x3e6a5b._0x2016b6,0x2d0,_0x3e6a5b._0x27ccda)](_0x58b0b1(_0x3e6a5b._0x567094,0x366,0x22c,_0x3e6a5b._0x290bb4))??'',_0x4ffd48=_0xe46104[_0x44b9a3(0x505,_0x3e6a5b._0x38fd22,0x6dc,0x616)],_0x4a96de=await _0xe46104[_0x44b9a3(0x57d,0x5ff,_0x3e6a5b._0x1509e5,0x67d)]();}catch(_0x3a94c2){if(_0x3a94c2 instanceof ToolExecutionError)throw _0x3a94c2;const _0x3330a5=_0x3a94c2 instanceof Error?_0x3a94c2[_0x58b0b1(_0x3e6a5b._0x6b906e,_0x3e6a5b._0x20f580,0x3cb,_0x3e6a5b._0x551711)]:String(_0x3a94c2);throw new ToolExecutionError(_0x3330a5,{'url':_0x5d5b1c});}finally{_0x41a602[_0x44b9a3(_0x3e6a5b._0x121938,_0x3e6a5b._0x2c515c,_0x3e6a5b._0x2d4354,_0x3e6a5b._0x4ac20b)]();}const _0x98c915=new Date()[_0x58b0b1(_0x3e6a5b._0x3d949e,_0x3e6a5b._0x5bda0f,_0x3e6a5b._0x1dd881,0x27d)]();let _0x525e3c,_0x212062;if(_0x23cd45[_0x44b9a3(0x435,_0x3e6a5b._0x385293,0x686,_0x3e6a5b._0x1289b2)](_0x44b9a3(_0x3e6a5b._0x84396c,0x5e0,0x6c2,_0x3e6a5b._0x7f905c)))_0x525e3c=_0x58b0b1(0xe5,_0x3e6a5b._0x51f140,0xd0,0x137)+_0x4a96de+_0x44b9a3(_0x3e6a5b._0x5dd54e,_0x3e6a5b._0x1475a4,_0x3e6a5b._0x5abde2,_0x3e6a5b._0x110929),_0x212062=_0x44b9a3(_0x3e6a5b._0x4a3397,0x30f,_0x3e6a5b._0x1a68c8,_0x3e6a5b._0x2c4281);else _0x23cd45[_0x58b0b1(0x22a,0x2ff,0x2e1,_0x3e6a5b._0x5b90e7)](_0x58b0b1(0x550,0x433,_0x3e6a5b._0x32ce94,_0x3e6a5b._0x1ba54b))?(_0x525e3c=_0x39f58a[_0x58b0b1(_0x3e6a5b._0x26276c,_0x3e6a5b._0x16695f,_0x3e6a5b._0x50bcc0,_0x3e6a5b._0x337dda)](_0x4a96de),_0x212062=_0x58b0b1(_0x3e6a5b._0x266781,_0x3e6a5b._0x9e4d66,_0x3e6a5b._0x5c0089,0x46b)):(_0x525e3c=_0x4a96de,_0x212062=_0x44b9a3(0x695,_0x3e6a5b._0x272158,0x639,0x67d));return yield createToolOutput(_0x525e3c,{'url':_0x5d5b1c,'contentType':_0x23cd45,'statusCode':_0x4ffd48,'format':_0x212062,'size':_0x4a96de[_0x58b0b1(_0x3e6a5b._0x219917,0x1f2,_0x3e6a5b._0x322b96,0x2bd)],'fetchedAt':_0x98c915}),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(_0x45e30b){const _0x450d36={_0x1110a5:0x261,_0x5c66bc:0x628,_0x34aa5e:0x5c7,_0x5a94fb:0x31a,_0x255585:0x6d1,_0x221cb5:0x412,_0x4befe6:0x5af,_0x58098c:0x550,_0x167c0d:0x5ee,_0x4ab4e8:0x649,_0x4591a1:0x458,_0x5135a5:0x7d7,_0xde3edd:0x676,_0x206cac:0x624,_0xb7b45b:0x660,_0x319ec1:0x4f4},_0x5ba030={_0x2dd507:0x28e,_0x344f1f:0x173},_0x1c358a={_0xdeeed3:0x55};function _0x540808(_0x4bcd10,_0x76b8a,_0x3697e1,_0x521a1b){return _0x4bd068(_0x521a1b,_0x3697e1- -0x26,_0x3697e1-_0x1c358a._0xdeeed3,_0x521a1b-0xcb);}function _0x34afde(_0x34c509,_0x44a0de,_0x7489cb,_0x1c3ae7){return _0x154255(_0x7489cb,_0x44a0de-0x8f,_0x44a0de-_0x5ba030._0x2dd507,_0x1c3ae7-_0x5ba030._0x344f1f);}try{const _0x4b34f4=new URL(_0x45e30b);for(const _0x220f1c of[_0x34afde(_0x450d36._0x1110a5,0x2dc,0x18b,0x1f9),_0x540808(0x66a,_0x450d36._0x5c66bc,_0x450d36._0x34aa5e,0x4c8),_0x34afde(_0x450d36._0x5a94fb,0x34c,0x2b8,0x4ac),'utm_term',_0x540808(_0x450d36._0x255585,0x58d,0x582,_0x450d36._0x221cb5),'gclid',_0x34afde(_0x450d36._0x4befe6,0x561,0x471,_0x450d36._0x58098c),'mc_cid',_0x34afde(_0x450d36._0x167c0d,0x519,_0x450d36._0x4ab4e8,_0x450d36._0x4591a1)]){_0x4b34f4[_0x540808(_0x450d36._0x5135a5,0x77f,_0x450d36._0xde3edd,_0x450d36._0x206cac)]['delete'](_0x220f1c);}return _0x4b34f4[_0x540808(0x5c4,_0x450d36._0xb7b45b,_0x450d36._0x319ec1,0x5d8)]();}catch{return _0x45e30b;}}function cseDateRestrict(_0x332098){const _0xbdc0b6={_0x20534b:0x32b,_0x2b4f25:0x390,_0x3c0582:0x346,_0x16397a:0x403,_0x26541a:0x190,_0x38a320:0x460,_0x49bdb6:0x27d,_0x1b970b:0x437,_0x528cc0:0x2f3},_0x197d0c={_0x4b4ed5:0x1e7},_0x1193a2={_0xd03557:0xe2,_0x198b97:0xe};if(_0x332098<=0x0)return void 0x0;if(_0x332098<=0x1e)return'd'+Math[_0x36097e(0x2ad,_0xbdc0b6._0x20534b,_0xbdc0b6._0x2b4f25,_0xbdc0b6._0x3c0582)](0x1,Math[_0x36097e(_0xbdc0b6._0x16397a,0x29f,0x329,0x223)](_0x332098));if(_0x332098<=0x16d)return'm'+Math[_0x36097e(_0xbdc0b6._0x26541a,_0xbdc0b6._0x38a320,0x308,0x19f)](_0x332098/0x1e);function _0x464d4e(_0x46b8ac,_0x355415,_0x4b0b12,_0x162207){return _0x154255(_0x162207,_0x355415-_0x1193a2._0xd03557,_0x355415- -0x17f,_0x162207-_0x1193a2._0x198b97);}function _0x36097e(_0x1b8b06,_0x1acfc5,_0x40a894,_0x1f9427){return _0x4bd068(_0x1b8b06,_0x40a894- -0x2a1,_0x40a894-_0x197d0c._0x4b4ed5,_0x1f9427-0xfe);}return'y'+Math[_0x36097e(_0xbdc0b6._0x49bdb6,_0xbdc0b6._0x1b970b,0x308,_0xbdc0b6._0x528cc0)](_0x332098/0x16d);}function addSiteFilters(_0x3c389e,_0x3794a3){const _0x44da04={_0x325835:0x10,_0x1ecf44:0x71,_0x4c45ad:0x54,_0x1a091b:0x4c,_0x32fd02:0x2,_0x4c5871:0xa8,_0x2458d6:0x3e,_0x4be96b:0x323,_0x3a5860:0x3f0},_0x3048da={_0x200a1f:0x281},_0x5c4eb7={_0x1365b7:0x362,_0x14b4d0:0xe1,_0x2e0bfe:0x54};if(_0x3794a3[_0x5b5e95(_0x44da04._0x325835,_0x44da04._0x1ecf44,_0x44da04._0x4c45ad,0x65)]===0x0)return _0x3c389e[_0x5b5e95(-_0x44da04._0x1a091b,0x69,-0x35,0x2)]();function _0x5b5e95(_0x309d94,_0x376f7c,_0x528481,_0x59fa75){return _0x4bd068(_0x528481,_0x376f7c- -_0x5c4eb7._0x1365b7,_0x528481-_0x5c4eb7._0x14b4d0,_0x59fa75-_0x5c4eb7._0x2e0bfe);}function _0x3e4674(_0x55b01b,_0x216a09,_0xc1ca70,_0x346c4e){return _0x154255(_0x55b01b,_0x216a09-0x85,_0x216a09-_0x3048da._0x200a1f,_0x346c4e-0x103);}return(_0x3c389e+'\x20('+_0x3794a3[_0x5b5e95(-_0x44da04._0x32fd02,_0x44da04._0x4c5871,0xb6,_0x44da04._0x2458d6)](_0x44d6d0=>_0x3e4674(0x475,0x42d,0x4ea,0x2da)+_0x44d6d0)[_0x5b5e95(0x210,0x1f8,0x1dc,_0x44da04._0x4be96b)]('\x20OR\x20')+')')[_0x3e4674(0x1cc,0x2b6,0x184,_0x44da04._0x3a5860)]();}function normalizeType(_0xd111bf){const _0x771b30={_0x4b8e94:0x1c5,_0x487dda:0x148,_0x268abe:0x110,_0x2bc74a:0x2a,_0x56b884:0xaf},_0x334759={_0x324a49:0x5da},_0x115ad5={_0x5d9da7:0x599,_0x209231:0x15d};function _0x24e9a3(_0x13e43a,_0x396b9b,_0x1bd128,_0x31cc99){return _0x4bd068(_0x13e43a,_0x31cc99- -_0x115ad5._0x5d9da7,_0x1bd128-_0x115ad5._0x209231,_0x31cc99-0x24);}function _0x2a14ef(_0x1f995b,_0x815a0a,_0x4f73b5,_0x5451de){return _0x4bd068(_0x815a0a,_0x1f995b- -_0x334759._0x324a49,_0x4f73b5-0x1ca,_0x5451de-0xa5);}return _0xd111bf===_0x24e9a3(-_0x771b30._0x4b8e94,-_0x771b30._0x487dda,-0x104,-_0x771b30._0x268abe)?'images':_0x2a14ef(_0x771b30._0x2bc74a,-_0x771b30._0x56b884,-0x13e,0xe2);}async function fetchJson(_0x3ce478,_0x3a4154,_0x3fa8b1){const _0x531009={_0x45b9d1:0x407,_0x14a3f2:0x373,_0x2df61d:0x5e6,_0x5a76da:0x4a8,_0x488c8d:0x55e,_0x1e3630:0x4c0,_0x13ea2b:0x4da,_0x205c69:0x385,_0x32747c:0x3fd,_0x28a8b1:0x563,_0x3c00e2:0x67e,_0x74dbf6:0x22c,_0x1c8866:0x28e,_0x39ee07:0x32d,_0x19072b:0x39c,_0x106323:0x382,_0x1ebde9:0x30e,_0x3fbe9b:0x222,_0x190d87:0x2dd,_0x1c617d:0x346,_0x29e33e:0x575,_0x95761b:0x441,_0x38a342:0x1ce,_0x2f6f07:0x3b9,_0x42d118:0x203},_0x532751={_0x5e63ac:0xaf,_0x111bfc:0x82},_0x5ddcd8={_0x2a22ce:0x2d0,_0x5a771:0xb0},_0x1c1260=await fetch(_0x3ce478,{'headers':{'User-Agent':USER_AGENT2,'Accept':'application/json',..._0x3fa8b1?.[_0x1a0f81(0x2ad,0x39a,_0x531009._0x45b9d1,_0x531009._0x14a3f2)]},'signal':_0x3a4154,..._0x3fa8b1});if(!_0x1c1260['ok']){let _0x538e3e,_0x2c60a8;try{_0x538e3e=await _0x1c1260[_0x1a0f81(0x42d,_0x531009._0x2df61d,_0x531009._0x5a76da,_0x531009._0x488c8d)]();const _0x41cf3e=JSON['parse'](_0x538e3e),_0x42218c=typeof _0x41cf3e[_0x1a0f81(_0x531009._0x1e3630,0x606,_0x531009._0x13ea2b,_0x531009._0x205c69)]==='object'?_0x41cf3e[_0x1a0f81(0x379,0x3b4,0x4da,0x4f5)]['error']:void 0x0;_0x2c60a8=_0x41cf3e[_0x1a0f81(_0x531009._0x32747c,0x633,_0x531009._0x28a8b1,_0x531009._0x3c00e2)]?.[_0x1a0f81(0x2b2,0x3d2,0x39c,_0x531009._0x74dbf6)]??_0x41cf3e['error']?.[_0x564651(0x2a1,_0x531009._0x1c8866,0x1eb,0x306)]?.[0x0]?.[_0x1a0f81(0x3b1,_0x531009._0x39ee07,_0x531009._0x19072b,0x2da)]??_0x42218c;}catch{}const _0x5f164b=_0x2c60a8?'HTTP\x20'+_0x1c1260['status']+':\x20'+_0x2c60a8:_0x564651(_0x531009._0x106323,0x3e5,_0x531009._0x1ebde9,_0x531009._0x3fbe9b)+_0x1c1260['status']+'\x20'+_0x1c1260[_0x1a0f81(_0x531009._0x190d87,_0x531009._0x1c617d,0x28a,0x1ac)];throw new ToolExecutionError(_0x5f164b,{'statusCode':_0x1c1260[_0x1a0f81(_0x531009._0x29e33e,0x47f,_0x531009._0x95761b,0x406)],..._0x538e3e?{'body':_0x538e3e}:{}});}function _0x564651(_0x1a533b,_0x1ddd0e,_0x168eed,_0x4c011b){return _0x4bd068(_0x1ddd0e,_0x1a533b- -_0x5ddcd8._0x2a22ce,_0x168eed-0xf2,_0x4c011b-_0x5ddcd8._0x5a771);}function _0x1a0f81(_0x1990ca,_0x376438,_0x1f811d,_0x5e3688){return _0x4bd068(_0x5e3688,_0x1f811d- -0x13f,_0x1f811d-_0x532751._0x5e63ac,_0x5e3688-_0x532751._0x111bfc);}return await _0x1c1260[_0x1a0f81(_0x531009._0x38a342,_0x531009._0x2f6f07,0x278,_0x531009._0x42d118)]();}async function hydrateResults(_0x53e3e9,_0x203f63,_0x226e4b,_0x386ab9){const _0x15961f={_0x4df10c:0x493,_0x442ad2:0x268,_0x5855ed:0x186,_0x1d2d5e:0x149,_0x5003a3:0x111,_0x907da:0x19e,_0x573379:0x268},_0x1ee6a4={_0xfe790b:0xba},_0x28c8e7={_0x35998c:0xe8},_0x460292={_0x4efe2e:0x379,_0x1e857f:0x39c,_0x4e8dcf:0x6bb,_0x270592:0x57f,_0x50f874:0x48e,_0x29bcde:0x358,_0x3eaaf3:0x4b8,_0x48792b:0x4aa,_0x1e8ea2:0x471,_0x71a62d:0x534,_0x563b31:0x462,_0x369b97:0x49c,_0x215e3c:0x520,_0x2ee632:0x453,_0x2ce271:0x63d,_0x2d8b61:0x572,_0x540000:0x4ff,_0x16567e:0x495,_0x266005:0x362,_0xdbe576:0x39e,_0x2b272c:0x500,_0x1fc227:0x546,_0x44baad:0x50e,_0x2843ac:0x436,_0x5bd2ad:0x5d1,_0x314091:0x695,_0xf02ff4:0x514,_0x957842:0x520,_0x352207:0x4b2,_0x25a0d8:0x720,_0x27a682:0x5a8,_0x3d0b73:0x6df,_0x218d5b:0x464,_0x6ace8b:0x44c,_0x58d49b:0x4af,_0x247b85:0x548,_0x47f181:0x2dc,_0x531666:0x449,_0x2228cd:0x3db,_0x49e702:0x4bf,_0x41435a:0x49a,_0x432860:0x58f,_0xaff64b:0x554,_0x189671:0x416,_0x261488:0x750,_0x420a00:0x500,_0x465684:0x3c4,_0x28cfe5:0x47f,_0x92f1ea:0x296,_0x44797d:0x3c4},_0x26f3b5=await Promise[_0x32e1c5(_0x15961f._0x4df10c,0x36e,0x470,0x390)](_0x53e3e9[_0x2854df(0x56,0x54,0x19e,0x243)](0x0,0xa)[_0x32e1c5(_0x15961f._0x442ad2,0x351,_0x15961f._0x5855ed,_0x15961f._0x1d2d5e)](async _0x2aaff8=>{const _0x34f243={_0xb3d9df:0x158},_0x2940e3={_0x51d6f4:0xfa};function _0x542bc8(_0x58ce0f,_0x4b66e8,_0x10207b,_0x413813){return _0x2854df(_0x58ce0f-_0x2940e3._0x51d6f4,_0x413813,_0x10207b-0x47a,_0x413813-_0x2940e3._0x51d6f4);}function _0x1c270d(_0x5294d4,_0x2aa990,_0x8a00f2,_0x1d1e70){return _0x32e1c5(_0x8a00f2-0x112,_0x2aa990-0x1bc,_0x8a00f2-_0x34f243._0xb3d9df,_0x2aa990);}try{const _0xc636c0=await safeFetch(_0x2aaff8[_0x1c270d(0x499,_0x460292._0x4efe2e,_0x460292._0x1e857f,0x2c6)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x203f63,'Accept':'text/html'},'signal':_0x226e4b},{'lookup':_0x386ab9});if(!_0xc636c0['ok'])return _0x2aaff8;const _0x2c33db=await _0xc636c0[_0x542bc8(0x5c0,_0x460292._0x4e8dcf,_0x460292._0x270592,0x40f)](),_0x2dde14=load(_0x2c33db),_0xc0f458=_0x2dde14(_0x542bc8(_0x460292._0x50f874,_0x460292._0x29bcde,_0x460292._0x3eaaf3,_0x460292._0x48792b))[_0x542bc8(0x553,0x355,_0x460292._0x1e8ea2,_0x460292._0x71a62d)](_0x1c270d(_0x460292._0x563b31,_0x460292._0x369b97,_0x460292._0x215e3c,_0x460292._0x2ee632))||_0x2dde14(_0x1c270d(_0x460292._0x2ce271,0x6d3,0x60f,_0x460292._0x2d8b61))[_0x542bc8(_0x460292._0x540000,0x2a1,0x394,0x367)]()[_0x1c270d(_0x460292._0x16567e,0x5f3,0x557,0x574)]()['trim'](),_0x155575=_0x2dde14(_0x1c270d(0x35f,0x20e,_0x460292._0x266005,_0x460292._0xdbe576))['attr'](_0x1c270d(0x66b,0x604,_0x460292._0x215e3c,0x4c2))||_0x2dde14(_0x542bc8(0x484,_0x460292._0x2b272c,0x535,_0x460292._0x1fc227))[_0x542bc8(_0x460292._0x44baad,_0x460292._0x2843ac,_0x460292._0x1e8ea2,_0x460292._0x5bd2ad)](_0x1c270d(_0x460292._0x314091,_0x460292._0xf02ff4,_0x460292._0x957842,0x532))||_0x2aaff8[_0x542bc8(_0x460292._0x352207,_0x460292._0x25a0d8,_0x460292._0x27a682,_0x460292._0x3d0b73)],_0xa9f409=_0x2dde14(_0x542bc8(0x43b,_0x460292._0x218d5b,0x3e9,0x4a1))[_0x542bc8(0x5a2,0x306,0x471,_0x460292._0x6ace8b)](_0x542bc8(_0x460292._0x58d49b,0x51d,_0x460292._0x247b85,0x5c9))||_0x2dde14('time[datetime]')[_0x1c270d(0x55b,_0x460292._0x47f181,_0x460292._0x531666,0x4ed)]('datetime')||_0x2aaff8[_0x542bc8(_0x460292._0x2228cd,_0x460292._0x49e702,_0x460292._0x41435a,0x406)],_0x5494e9=_0x2dde14(_0x1c270d(0x656,_0x460292._0x432860,0x517,_0x460292._0xaff64b))[_0x542bc8(0x4ab,0x3ff,0x471,_0x460292._0x189671)]('href');return{..._0x2aaff8,'title':_0xc0f458||_0x2aaff8[_0x1c270d(_0x460292._0x261488,_0x460292._0x420a00,0x60f,0x72c)],'snippet':_0x155575,'url':_0x5494e9?normalizeUrl(new URL(_0x5494e9,_0x2aaff8[_0x542bc8(0x3c7,0x374,_0x460292._0x465684,0x253)])[_0x542bc8(_0x460292._0x28cfe5,0x4da,_0x460292._0x352207,0x5d7)]()):_0x2aaff8[_0x542bc8(0x4f0,_0x460292._0x92f1ea,_0x460292._0x44797d,0x3e0)],'publishedAt':_0xa9f409};}catch{return _0x2aaff8;}}));function _0x2854df(_0x17b4dc,_0x1382bd,_0x312946,_0x4e30aa){return _0x154255(_0x1382bd,_0x1382bd-_0x28c8e7._0x35998c,_0x312946- -0x14c,_0x4e30aa-0x1d2);}const _0x3b9a8d=new Map(_0x53e3e9[_0x2854df(_0x15961f._0x5003a3,0x198,_0x15961f._0x907da,0x1f6)](0x0,0xa)['map']((_0x2b90cb,_0x2582ec)=>[_0x2b90cb[_0x32e1c5(0x28a,0x298,0x2bf,0x357)],_0x26f3b5[_0x2582ec]]));function _0x32e1c5(_0x1d79a2,_0x47983a,_0x4949dc,_0x539adc){return _0x4bd068(_0x539adc,_0x1d79a2- -0x1a2,_0x4949dc-_0x1ee6a4._0xfe790b,_0x539adc-0x9d);}return _0x53e3e9[_0x32e1c5(_0x15961f._0x573379,0x3ab,0x2c0,0xf6)](_0x4637a3=>_0x3b9a8d[_0x32e1c5(0x35a,0x2ed,0x25b,0x2c0)](_0x4637a3[_0x2854df(0x23,-0x1a0,-0xb6,-0x26)])??_0x4637a3);}function formatResults(_0x37b151){const _0x536aea={_0x167119:0x110,_0x4de6f7:0x149,_0x4208f6:0x11f,_0x1e4601:0x1af,_0x15779a:0x67c,_0x26333b:0x589},_0x27edab={_0x20a429:0x49b,_0x2ead0b:0x5c6,_0x203491:0x324,_0x336bdd:0x56e,_0x4501e5:0x44c,_0x4b4b5c:0x546,_0x1a4185:0x3cd,_0x2d615:0x4d7,_0x1342c7:0x4ab,_0x3a7bc4:0x3aa,_0x12ba2d:0x558,_0x2c4c7a:0x61c,_0x2af5ad:0x585,_0xbfd611:0x302,_0x4b57d:0x21b,_0x294751:0x312,_0x366438:0x5af,_0x2570cf:0x674},_0x27cbe1={_0x98e6c9:0x4e3,_0x8d5ca3:0x160,_0x2df3e7:0x9e},_0x59e465={_0x27405f:0xbe};if(_0x37b151[_0x51f51d(-0x141,-_0x536aea._0x167119,-_0x536aea._0x4de6f7,-0x1a6)]===0x0)return'No\x20results\x20found.';function _0x1e8180(_0x551843,_0x482d7e,_0x3569fe,_0x36991d){return _0x4bd068(_0x36991d,_0x3569fe-0x122,_0x3569fe-0x49,_0x36991d-_0x59e465._0x27405f);}function _0x51f51d(_0x5bf022,_0x3b5c9b,_0x3e3e85,_0x2769d3){return _0x4bd068(_0x2769d3,_0x3b5c9b- -_0x27cbe1._0x98e6c9,_0x3e3e85-_0x27cbe1._0x8d5ca3,_0x2769d3-_0x27cbe1._0x2df3e7);}return _0x37b151[_0x51f51d(-0x40,-0xd9,-_0x536aea._0x4208f6,-_0x536aea._0x1e4601)](_0x15cb82=>{const _0x10f555={_0x1ffdb1:0x169,_0x196127:0x5fd},_0x2b3d09={_0x195881:0x3e,_0x15864d:0x25a};function _0x51f654(_0xb7eb49,_0x4aae7a,_0x46b21a,_0x3bbf11){return _0x51f51d(_0xb7eb49-_0x2b3d09._0x195881,_0x4aae7a-_0x2b3d09._0x15864d,_0x46b21a-0xc,_0x3bbf11);}const _0x2cf1fc=[_0x15cb82['source'][_0x34b53b(_0x27edab._0x20a429,0x5d2,_0x27edab._0x2ead0b,0x6b1)]+'.\x20'+_0x15cb82[_0x51f654(_0x27edab._0x203491,0x416,0x34d,_0x27edab._0x336bdd)],_0x15cb82[_0x34b53b(0x684,_0x27edab._0x4501e5,_0x27edab._0x4b4b5c,0x3cc)]];function _0x34b53b(_0x2c2172,_0x473f9f,_0x5f29e4,_0x16a478){return _0x51f51d(_0x2c2172-_0x10f555._0x1ffdb1,_0x5f29e4-_0x10f555._0x196127,_0x5f29e4-0xac,_0x473f9f);}if(_0x15cb82['snippet'])_0x2cf1fc[_0x34b53b(0x5b8,_0x27edab._0x1a4185,_0x27edab._0x2d615,_0x27edab._0x1342c7)](_0x15cb82[_0x51f654(0x3c5,0x387,0x3cd,_0x27edab._0x3a7bc4)]);if(_0x15cb82[_0x34b53b(0x52e,_0x27edab._0x12ba2d,_0x27edab._0x2c4c7a,_0x27edab._0x2af5ad)])_0x2cf1fc[_0x34b53b(0x383,0x3ee,0x4d7,0x465)](_0x51f654(_0x27edab._0xbfd611,0x2f0,_0x27edab._0x4b57d,_0x27edab._0x294751)+_0x15cb82['publishedAt']);return _0x2cf1fc[_0x34b53b(_0x27edab._0x366438,0x70d,_0x27edab._0x2570cf,0x6a5)]('\x0a');})[_0x1e8180(0x6a3,0x58c,_0x536aea._0x15779a,_0x536aea._0x26333b)]('\x0a\x0a');}async function searchOllama(_0x5a6d75,_0x27c988,_0x36282c){const _0x3fe7a3={_0x147fd1:0x1b,_0x34b105:0x379,_0x22222e:0x284,_0x1d3962:0x444,_0x404c86:0x2c4,_0x4c3476:0x2d8,_0x2cf17f:0x3af,_0x5ed6ec:0x21c,_0x1ae882:0x11d,_0x494123:0x48,_0x567e71:0x66,_0x6274ef:0x275,_0x325a51:0x1b1,_0x512fdc:0x20e,_0x519aaa:0x26f,_0x2719c7:0x1a5,_0x400788:0xc7,_0x38ee66:0x93,_0x4198ff:0x131,_0x2ca9fc:0xb6,_0x4a7093:0x3fb,_0xa0e51a:0x25a,_0x55d75a:0x22c,_0x38e582:0x1f0,_0xe323fe:0x248,_0x15b791:0x4bd,_0x3ee963:0x2c3,_0x3afee1:0x28f},_0x48ea3b={_0x5117ac:0x676,_0x1dda51:0x596,_0x306a91:0x684,_0x299ce6:0x628,_0x31ce2c:0x4e4,_0xa3a13d:0x51e,_0x4e5e77:0x4b6,_0x468bfc:0x92a,_0xd0b35e:0x7dc,_0x4e7e20:0x8b2,_0x5bc4a8:0x7ec,_0x3a0f20:0x6a4,_0xa9b705:0x7aa,_0x1e8121:0x54c},_0x237816={_0x149980:0x14e},_0x4a9b4c={_0x3dcbec:0x21},_0x30cece=Math[_0x1ccd65(-_0x3fe7a3._0x147fd1,0x14d,0x140,0x101)](0x1,Math[_0x126198(_0x3fe7a3._0x34b105,_0x3fe7a3._0x22222e,_0x3fe7a3._0x1d3962,0x387)](0xa,_0x27c988[_0x126198(0x2fd,_0x3fe7a3._0x404c86,_0x3fe7a3._0x4c3476,_0x3fe7a3._0x2cf17f)])),_0x31b384=addSiteFilters(_0x27c988['query'],_0x27c988[_0x1ccd65(-_0x3fe7a3._0x5ed6ec,-_0x3fe7a3._0x1ae882,-_0x3fe7a3._0x494123,-_0x3fe7a3._0x567e71)]),_0x6ffbc=await fetchJson(_0x1ccd65(_0x3fe7a3._0x6274ef,_0x3fe7a3._0x325a51,_0x3fe7a3._0x512fdc,_0x3fe7a3._0x519aaa),_0x36282c,{'method':_0x1ccd65(-_0x3fe7a3._0x2719c7,-_0x3fe7a3._0x400788,-_0x3fe7a3._0x38ee66,-0x228),'headers':{'Authorization':_0x1ccd65(0x1d8,_0x3fe7a3._0x4198ff,0x16b,0xf7)+_0x5a6d75[_0x1ccd65(-0x9f,_0x3fe7a3._0x2ca9fc,0x116,-0xc1)]},'body':JSON[_0x126198(0x373,_0x3fe7a3._0x4a7093,0x292,_0x3fe7a3._0xa0e51a)]({'query':_0x31b384,'max_results':_0x30cece})}),_0x34b566=_0x6ffbc['results']??[];function _0x126198(_0xe3a0fb,_0x5b01de,_0x4479ee,_0x59ed2d){return _0x154255(_0x4479ee,_0x5b01de-0x126,_0xe3a0fb-0x1e0,_0x59ed2d-_0x4a9b4c._0x3dcbec);}function _0x1ccd65(_0x54a101,_0x1cadce,_0x549155,_0x5d8ed7){return _0x154255(_0x5d8ed7,_0x1cadce-0x10a,_0x1cadce- -_0x237816._0x149980,_0x5d8ed7-0x10);}const _0x3cdd14=_0x34b566[_0x126198(0x254,_0x3fe7a3._0x55d75a,_0x3fe7a3._0x38e582,_0x3fe7a3._0xe323fe)]((_0x364b33,_0x598979)=>{const _0x26adc3={_0x42818c:0x1db,_0xd38f58:0x634},_0x376964={_0x46bea0:0x4c,_0x471f2e:0x1f0},_0x1f66a5=_0x364b33[_0x4bcdd2(0x1f7,0x22a,0x391,0x22a)]||'';function _0x4bcdd2(_0x438a3d,_0x171f6c,_0xe44dfa,_0x3783ad){return _0x126198(_0x3783ad- -_0x376964._0x46bea0,_0x171f6c-_0x376964._0x471f2e,_0xe44dfa,_0x3783ad-0x54);}function _0x4a4f20(_0x15bb4f,_0xa4a50a,_0x593c7b,_0x42a00c){return _0x1ccd65(_0x15bb4f-_0x26adc3._0x42818c,_0xa4a50a-_0x26adc3._0xd38f58,_0x593c7b-0x17f,_0x593c7b);}let _0x4181d9;try{_0x4181d9=new URL(_0x1f66a5)[_0x4a4f20(_0x48ea3b._0x5117ac,_0x48ea3b._0x1dda51,_0x48ea3b._0x306a91,_0x48ea3b._0x299ce6)];}catch{_0x4181d9=null;}return{'title':_0x364b33[_0x4bcdd2(_0x48ea3b._0x31ce2c,_0x48ea3b._0xa3a13d,_0x48ea3b._0x4e5e77,0x49d)]||_0x4a4f20(_0x48ea3b._0x468bfc,_0x48ea3b._0xd0b35e,0x7ab,_0x48ea3b._0x4e7e20),'url':normalizeUrl(_0x1f66a5),'snippet':_0x364b33['content']??null,'displayUrl':_0x4181d9,'favicon':null,'publishedAt':null,'source':{'engine':_0x4a4f20(_0x48ea3b._0x5bc4a8,_0x48ea3b._0x3a0f20,_0x48ea3b._0xa9b705,_0x48ea3b._0x1e8121),'rank':_0x598979+0x1}};});return{'items':_0x3cdd14['slice'](0x0,_0x30cece),'engine':_0x126198(0x39e,_0x3fe7a3._0x15b791,_0x3fe7a3._0x3ee963,_0x3fe7a3._0x3afee1)};}async function searchTavily(_0x2166b3,_0x5b8499,_0x2d5772){const _0x11231f={_0x3b5a06:0x69e,_0x451823:0x586,_0x251d53:0x554,_0x254e24:0x661,_0x51c3e4:0x3ed,_0x473a24:0x411,_0x328c51:0x53a,_0x1db0a6:0x45c,_0x462278:0x35b,_0x4c3fac:0x3d8,_0x342817:0x4b8,_0x2371de:0x618,_0x22b63e:0x5e5,_0x29b961:0x760,_0x5f3430:0x691,_0x476d22:0x406,_0x28a528:0x421,_0x38870b:0x41a,_0x2f0170:0x370,_0x3c78bf:0x3ef,_0x542aaa:0x4b0,_0x28f40a:0x43a,_0xf6992:0x41e,_0x5e4013:0x3fa,_0x391998:0x538,_0x279b19:0x6b4,_0x54ddeb:0x532,_0x3eee8f:0x507,_0x10aa49:0x4b9,_0x553879:0x439,_0x130dba:0x4de,_0x49f06f:0x467,_0x46f4eb:0x3b3},_0xd2119c={_0x4d8653:0x2ca,_0xc63892:0x51,_0x5e4ab0:0x49d,_0x9e34a0:0x4fc,_0xacde49:0x2cc,_0x41415d:0x4f,_0x310592:0x50,_0x52795b:0x41,_0x37e7cc:0xa9,_0x323b2a:0x38c,_0x31db77:0x327,_0x291b6a:0x490},_0x4e09a0={_0xa1c23c:0x57,_0x21ddc3:0x1a9},_0x4d953b={_0xbb044f:0xc3};function _0x589a99(_0x264e67,_0x4d03c9,_0x1c4e16,_0x539ef0){return _0x154255(_0x1c4e16,_0x4d03c9-0x1ce,_0x539ef0-0x3c6,_0x539ef0-_0x4d953b._0xbb044f);}const _0x29cac3=Math[_0x589a99(_0x11231f._0x3b5a06,_0x11231f._0x451823,_0x11231f._0x251d53,_0x11231f._0x254e24)](0x1,Math[_0x589a99(_0x11231f._0x51c3e4,0x47a,0x690,0x55f)](0x14,_0x5b8499[_0x398c44(_0x11231f._0x473a24,_0x11231f._0x328c51,0x51c,_0x11231f._0x1db0a6)]));function _0x398c44(_0x165756,_0x4f8afd,_0x4493d2,_0x300d20){return _0x4bd068(_0x165756,_0x300d20- -_0x4e09a0._0xa1c23c,_0x4493d2-0x1d,_0x300d20-_0x4e09a0._0x21ddc3);}const _0x1cb0e0={'query':_0x5b8499[_0x398c44(_0x11231f._0x462278,0x40a,_0x11231f._0x4c3fac,_0x11231f._0x342817)],'max_results':_0x29cac3,'search_depth':_0x2166b3[_0x398c44(0x5d6,_0x11231f._0x2371de,_0x11231f._0x22b63e,0x517)]??'basic','topic':_0x2166b3['topic']??_0x589a99(_0x11231f._0x29b961,_0x11231f._0x5f3430,0x748,0x5f1)};if(_0x5b8499['domains']['length']>0x0)_0x1cb0e0[_0x398c44(_0x11231f._0x476d22,_0x11231f._0x28a528,0x3e7,0x3bd)]=_0x5b8499[_0x398c44(0x3a7,0x4bd,_0x11231f._0x38870b,_0x11231f._0x2f0170)];const _0x10c74e=await fetchJson(_0x398c44(_0x11231f._0x3c78bf,0x3b4,0x640,0x4ec),_0x2d5772,{'method':'POST','headers':{'Authorization':_0x398c44(0x612,0x722,0x65d,0x5be)+_0x2166b3[_0x589a99(0x48b,0x398,_0x11231f._0x542aaa,0x464)],'Content-Type':_0x589a99(_0x11231f._0x28f40a,_0x11231f._0xf6992,_0x11231f._0x5e4013,_0x11231f._0x391998)},'body':JSON[_0x589a99(_0x11231f._0x279b19,_0x11231f._0x54ddeb,0x4c2,0x559)](_0x1cb0e0)}),_0x47220b=_0x10c74e[_0x589a99(0x490,_0x11231f._0x3eee8f,_0x11231f._0x10aa49,_0x11231f._0x553879)]??[],_0x4d5040=_0x47220b[_0x398c44(_0x11231f._0x130dba,_0x11231f._0x49f06f,0x272,_0x11231f._0x46f4eb)]((_0x18d07c,_0x381ba8)=>{const _0x5a51a5={_0x4e4fc1:0x6e},_0x58f95e={_0x5c3af0:0x181},_0x3a4eaa=_0x18d07c[_0x104ffc(-_0xd2119c._0x4d8653,-0x18e,-_0xd2119c._0xc63892,-0x247)]||'';function _0x104ffc(_0x59a06a,_0x48e32f,_0x29570c,_0x1fea58){return _0x589a99(_0x59a06a-0x1e6,_0x48e32f-_0x58f95e._0x5c3af0,_0x59a06a,_0x48e32f- -0x5ea);}function _0x27c3b9(_0x2868a6,_0x4e0450,_0x56a9c7,_0x1b0938){return _0x589a99(_0x2868a6-0x9b,_0x4e0450-0x65,_0x56a9c7,_0x1b0938- -_0x5a51a5._0x4e4fc1);}let _0x38eff4;try{_0x38eff4=new URL(_0x3a4eaa)[_0x27c3b9(_0xd2119c._0x5e4ab0,_0xd2119c._0x9e34a0,_0xd2119c._0xacde49,0x408)];}catch{_0x38eff4=null;}return{'title':_0x18d07c[_0x104ffc(0x255,0xe5,-0x54,_0xd2119c._0x41415d)]||'Untitled','url':normalizeUrl(_0x3a4eaa),'snippet':_0x18d07c[_0x104ffc(-_0xd2119c._0x310592,-0xa,_0xd2119c._0x52795b,-_0xd2119c._0x37e7cc)]??null,'displayUrl':_0x38eff4,'favicon':null,'publishedAt':null,'source':{'engine':_0x27c3b9(0x609,_0xd2119c._0x323b2a,_0xd2119c._0x31db77,_0xd2119c._0x291b6a),'rank':_0x381ba8+0x1}};});return{'items':_0x4d5040['slice'](0x0,_0x29cac3),'engine':'tavily'};}async function searchGoogleCse(_0x2c9cb2,_0x71ef90,_0x44d206){const _0x7ea2d={_0x3ff698:0x52a,_0x4dab0b:0x211,_0xf2f6bd:0x2bd,_0x15d988:0x154,_0x246c41:0x102,_0x3c63b2:0x248,_0x3fe210:0x2d0,_0x1dfc7a:0x216,_0x4f2104:0x4cc,_0x135a9c:0x24c,_0x5ab10c:0x26d,_0x381f33:0x111,_0x5c9f80:0x125,_0x176357:0xe1,_0x558135:0x93,_0x1b46d1:0x2f6,_0xc35a40:0x34b,_0x43186e:0x1c1,_0x1fe7cd:0x2a4,_0x37487a:0x3fa,_0x18141e:0x54b,_0x5ebc4f:0x4ca,_0x45e53c:0x169,_0x258a0c:0x3bb,_0x5ddbf8:0x4c9,_0x321817:0x2c7,_0x116ac2:0x26d,_0x749476:0x15f,_0x30d69c:0x3fa,_0x3d107e:0x2fc,_0x1a1d1b:0x3cc,_0x4fe103:0x342,_0x365539:0x1e7,_0x3e23d1:0x268,_0x59cc2f:0x105,_0x410380:0x47e,_0x14eaf0:0x3ff,_0x2eb678:0x326,_0x662dcf:0x4da,_0x374cab:0x55c,_0x2d05b2:0x3c6,_0xd1fb2:0x54a,_0x3d0171:0x47e,_0x5fa71c:0x578,_0x960084:0x5d9,_0x5b8f6c:0x285,_0x1d3fbb:0x38d,_0x56d044:0xd8,_0x2adc44:0x243,_0x2c23dc:0x23c,_0x3429e2:0x36d,_0x25ce70:0x3f3,_0x83c5c3:0x32c,_0x545124:0x47c,_0x1d26dc:0x31d,_0x4eab0e:0x439,_0x529468:0x48f,_0x218247:0x4ba,_0x4cbe3b:0x325,_0x3fa572:0x3a1,_0x522008:0x404,_0x321bbb:0x3f1,_0x183264:0x2af,_0xc7a6b4:0x451,_0x3825f4:0x252,_0x39fe0e:0x12f,_0x1a67bd:0x174,_0x25821e:0x1af,_0x2e4b0b:0x3c7,_0x4be5d6:0x437,_0x4b02d8:0x4ac,_0x5933be:0x3d8,_0x479a7f:0x2da,_0x3f65b0:0x30d,_0x50fc35:0x26b,_0x524467:0x313,_0x18b5dc:0x3e3,_0x369485:0x20f,_0x185775:0x299,_0x18c3cb:0x5ed,_0xc32380:0x432,_0x15b6cd:0x27d,_0x276f7b:0x3bb,_0x3f61f0:0x2af,_0xa7479:0xa5,_0x1d070f:0x347,_0x3a327a:0x2ee,_0x1c5c09:0x370,_0x36b6e4:0x436,_0x4cca9a:0x2d8,_0x2ba196:0x422,_0xb4cb1:0x3bd,_0x2de8ce:0x2c3,_0x502587:0x31f,_0x25230d:0x401,_0x161737:0x481,_0xbf4b69:0x35e,_0x5059b7:0x3ea,_0x197e32:0x2b3,_0x4d638a:0x562,_0x217f16:0x46e,_0x1c9929:0x421,_0x338551:0x46c,_0x234320:0x373,_0x5da1e0:0x2e3,_0x15fb97:0x2c8,_0x1f96f7:0x278,_0x3eea79:0x11b,_0x3a47a7:0x241,_0x35cb15:0x2c5,_0x1303d8:0x29b,_0xed1737:0x2d3,_0x1396c9:0x1cc,_0x354914:0x338,_0x184836:0xe1,_0x10724d:0x131,_0x50fd71:0x176,_0x3ce6fa:0x1c3,_0x5f5d4f:0x1b5},_0x5597eb={_0x23c7f1:0xaf},_0xbddfcd={_0x432e42:0x14f,_0x28f911:0x178};function _0x4919a5(_0x41548a,_0x3739eb,_0x3fc810,_0x4da296){return _0x154255(_0x3fc810,_0x3739eb-_0xbddfcd._0x432e42,_0x3739eb-_0xbddfcd._0x28f911,_0x4da296-0x122);}const _0x1a97d1=Math[_0x4919a5(0x570,0x413,0x31b,_0x7ea2d._0x3ff698)](0x1,Math['min'](0x32,_0x71ef90[_0x1dc864(_0x7ea2d._0x4dab0b,_0x7ea2d._0xf2f6bd,_0x7ea2d._0x15d988,_0x7ea2d._0x246c41)]));if(_0x71ef90[_0x4919a5(_0x7ea2d._0x3c63b2,_0x7ea2d._0x3fe210,_0x7ea2d._0x1dfc7a,0x2c1)]+_0x1a97d1>0x64)throw new ToolExecutionError(_0x4919a5(0x4a3,0x3ab,_0x7ea2d._0x4f2104,0x3ff),{'offset':_0x71ef90[_0x1dc864(_0x7ea2d._0x135a9c,0x35d,0xea,0x2c4)],'count':_0x1a97d1,'maxResults':0x64});const _0x160fa5=cseDateRestrict(_0x71ef90['recencyDays']),_0x4c6f4a=addSiteFilters(_0x71ef90[_0x1dc864(_0x7ea2d._0x5ab10c,0x21d,_0x7ea2d._0x381f33,0x3a9)],_0x71ef90[_0x1dc864(_0x7ea2d._0x5c9f80,_0x7ea2d._0x176357,0x20a,_0x7ea2d._0x558135)]);function _0x1dc864(_0x46bbb4,_0x469c6e,_0xeb1be5,_0x956d75){return _0x4bd068(_0x469c6e,_0x46bbb4- -0x2a2,_0xeb1be5-0x1ee,_0x956d75-_0x5597eb._0x23c7f1);}let _0x50b0f1=0x0,_0x522eae=_0x71ef90[_0x1dc864(_0x7ea2d._0x135a9c,_0x7ea2d._0x1b46d1,0x120,0x2be)]+0x1;const _0x182b5b=[];while(_0x50b0f1<_0x1a97d1){const _0x8e60a0=Math[_0x1dc864(0x28d,_0x7ea2d._0xc35a40,_0x7ea2d._0x43186e,0x366)](0xa,_0x1a97d1-_0x50b0f1),_0x86b4e1=new URL(_0x1dc864(0x303,0x402,0x25a,_0x7ea2d._0x1fe7cd));_0x86b4e1[_0x1dc864(_0x7ea2d._0x37487a,0x29e,_0x7ea2d._0x18141e,_0x7ea2d._0x5ebc4f)][_0x4919a5(0x42e,0x2da,0x369,_0x7ea2d._0x45e53c)](_0x1dc864(_0x7ea2d._0x258a0c,_0x7ea2d._0x5ddbf8,_0x7ea2d._0x321817,0x3b4),_0x2c9cb2[_0x4919a5(_0x7ea2d._0x116ac2,0x1e2,0xbb,_0x7ea2d._0x749476)]),_0x86b4e1[_0x1dc864(_0x7ea2d._0x30d69c,0x3fb,_0x7ea2d._0x3d107e,0x529)][_0x1dc864(0x256,_0x7ea2d._0x1a1d1b,_0x7ea2d._0x4fe103,0x370)]('cx',_0x2c9cb2[_0x4919a5(0x76,_0x7ea2d._0x365539,_0x7ea2d._0x3e23d1,_0x7ea2d._0x59cc2f)]),_0x86b4e1[_0x4919a5(0x411,_0x7ea2d._0x410380,0x4b3,0x447)][_0x4919a5(0x43a,0x2da,_0x7ea2d._0x14eaf0,0x2e4)]('q',_0x4c6f4a),_0x86b4e1[_0x4919a5(_0x7ea2d._0x2eb678,0x47e,_0x7ea2d._0x662dcf,_0x7ea2d._0x374cab)]['set'](_0x4919a5(_0x7ea2d._0x2d05b2,0x42d,0x457,0x567),String(_0x8e60a0)),_0x86b4e1[_0x4919a5(_0x7ea2d._0xd1fb2,_0x7ea2d._0x3d0171,_0x7ea2d._0x5fa71c,_0x7ea2d._0x960084)][_0x1dc864(0x256,0x15d,_0x7ea2d._0x5b8f6c,_0x7ea2d._0x1d3fbb)](_0x4919a5(_0x7ea2d._0x56d044,_0x7ea2d._0x2adc44,_0x7ea2d._0x2c23dc,_0x7ea2d._0x3429e2),String(_0x522eae)),_0x86b4e1['searchParams'][_0x4919a5(_0x7ea2d._0x25ce70,0x2da,0x2d4,_0x7ea2d._0x83c5c3)]('safe',_0x71ef90['safe']?'active':_0x4919a5(0x372,_0x7ea2d._0x545124,0x46e,0x344));_0x71ef90[_0x1dc864(_0x7ea2d._0x1d26dc,_0x7ea2d._0x4eab0e,0x477,_0x7ea2d._0x529468)]&&(_0x86b4e1[_0x4919a5(_0x7ea2d._0x218247,_0x7ea2d._0x3d0171,0x3e3,0x5b1)][_0x4919a5(_0x7ea2d._0x4cbe3b,0x2da,0x389,0x1d9)]('hl',_0x71ef90[_0x4919a5(0x3ae,_0x7ea2d._0x3fa572,0x4e1,0x4a9)]),_0x86b4e1[_0x4919a5(_0x7ea2d._0x522008,_0x7ea2d._0x410380,_0x7ea2d._0x321bbb,0x3f2)]['set']('lr',_0x1dc864(0x39f,0x35b,0x302,_0x7ea2d._0x183264)+_0x71ef90[_0x4919a5(0x39e,0x3a1,_0x7ea2d._0xc7a6b4,_0x7ea2d._0x3825f4)]));if(_0x71ef90[_0x1dc864(_0x7ea2d._0x39fe0e,0xa4,_0x7ea2d._0x1a67bd,_0x7ea2d._0x25821e)])_0x86b4e1[_0x4919a5(_0x7ea2d._0x2e4b0b,0x47e,_0x7ea2d._0x4be5d6,_0x7ea2d._0x4b02d8)][_0x4919a5(_0x7ea2d._0x5933be,_0x7ea2d._0x479a7f,0x3f9,0x310)]('gl',_0x71ef90['region']['toUpperCase']());if(_0x71ef90[_0x4919a5(0x333,_0x7ea2d._0x3f65b0,0x3b1,0x205)]===_0x4919a5(0x227,_0x7ea2d._0x50fc35,_0x7ea2d._0x524467,0x3b2))_0x86b4e1[_0x4919a5(0x469,0x47e,_0x7ea2d._0x18b5dc,0x468)]['set'](_0x1dc864(_0x7ea2d._0x369485,_0x7ea2d._0x185775,0x112,0x13d),'image');if(_0x160fa5)_0x86b4e1[_0x4919a5(_0x7ea2d._0x18c3cb,0x47e,0x445,_0x7ea2d._0xc32380)][_0x4919a5(_0x7ea2d._0x15b6cd,0x2da,_0x7ea2d._0x276f7b,0x36b)](_0x1dc864(0x151,0x21d,_0x7ea2d._0x3f61f0,_0x7ea2d._0xa7479),_0x160fa5);const _0x422cca=await fetchJson(_0x86b4e1['toString'](),_0x44d206),_0x984f18=_0x422cca['items']??[];if(_0x984f18['length']===0x0)break;const _0x5c8cde=_0x50b0f1;for(let _0x5a8626=0x0;_0x5a8626<_0x984f18['length'];_0x5a8626++){const _0x44ff14=_0x984f18[_0x5a8626];if(!_0x44ff14)continue;const _0x583a7c=_0x44ff14['link']||_0x44ff14[_0x4919a5(0x318,_0x7ea2d._0x1d070f,_0x7ea2d._0x3a327a,_0x7ea2d._0x1c5c09)]?.[_0x4919a5(_0x7ea2d._0x36b6e4,0x3a5,0x437,_0x7ea2d._0x4cca9a)]||'',_0x1320e1=_0x44ff14[_0x1dc864(0x3fd,0x508,_0x7ea2d._0x2ba196,_0x7ea2d._0xb4cb1)]||_0x44ff14[_0x1dc864(_0x7ea2d._0x2de8ce,_0x7ea2d._0x502587,_0x7ea2d._0x25230d,0x2ac)]?.[_0x4919a5(0x387,_0x7ea2d._0x161737,0x3e1,_0x7ea2d._0xbf4b69)]||_0x1dc864(_0x7ea2d._0x5059b7,_0x7ea2d._0x197e32,_0x7ea2d._0x1c5c09,_0x7ea2d._0x4d638a),_0x46bd01=_0x44ff14[_0x4919a5(_0x7ea2d._0x217f16,0x3f2,_0x7ea2d._0x1c9929,0x2b8)]||_0x44ff14['htmlSnippet']?.['replace'](/<[^>]+>/g,''),_0x15df03=_0x44ff14[_0x1dc864(0x34f,0x2c8,0x1d7,_0x7ea2d._0x338551)]?.[_0x1dc864(0x283,0x398,_0x7ea2d._0x234320,_0x7ea2d._0x5da1e0)]?.[0x0]??{};let _0x2bbbd6;try{_0x2bbbd6=new URL(_0x583a7c)[_0x1dc864(0x1a4,0xc3,_0x7ea2d._0x15fb97,_0x7ea2d._0x1f96f7)];}catch{_0x2bbbd6=null;}_0x182b5b[_0x1dc864(_0x7ea2d._0x3eea79,0x10f,0x38,_0x7ea2d._0x3a47a7)]({'title':_0x1320e1,'url':normalizeUrl(_0x583a7c),'snippet':_0x46bd01??null,'displayUrl':_0x2bbbd6,'favicon':null,'publishedAt':_0x15df03[_0x1dc864(_0x7ea2d._0x35cb15,_0x7ea2d._0x1303d8,_0x7ea2d._0xed1737,0x2d7)]||_0x15df03['og:updated_time']||null,'source':{'engine':_0x4919a5(0x2bb,_0x7ea2d._0x1396c9,_0x7ea2d._0x354914,_0x7ea2d._0x184836),'rank':_0x5c8cde+_0x5a8626+0x1}});}_0x50b0f1+=_0x984f18[_0x1dc864(_0x7ea2d._0x10724d,_0x7ea2d._0x50fd71,0x1c3,_0x7ea2d._0x3ce6fa)],_0x522eae+=_0x984f18[_0x4919a5(0x2a3,_0x7ea2d._0x5f5d4f,0x27b,0x70)];if(_0x984f18['length']<_0x8e60a0)break;}return _0x182b5b[_0x4919a5(0x51c,0x462,0x4ca,0x541)](0x0,_0x1a97d1);}function isGoogleCseEngine(_0x42e56b){const _0x1d4b70={_0x3c244e:0x5e0,_0x3a7b45:0x4f7,_0x6ebd04:0x4a4},_0x39fb5d={_0x361b36:0x121};function _0x53a681(_0x1a8068,_0x15e1dd,_0x55eefd,_0x29d599){return _0x4bd068(_0x29d599,_0x15e1dd-0x113,_0x55eefd-0x1d4,_0x29d599-_0x39fb5d._0x361b36);}return _0x53a681(_0x1d4b70._0x3c244e,0x513,_0x1d4b70._0x3a7b45,_0x1d4b70._0x6ebd04)in _0x42e56b;}function isOllamaEngine(_0x15e6b3){const _0x5b0d67={_0x4ee9d6:0x4cc,_0x28cfd8:0x431},_0x4c3d0a={_0x47ae24:0x165};function _0x5d95ac(_0x5a3342,_0x5bf5e0,_0x5d2517,_0x59a311){return _0x4bd068(_0x5bf5e0,_0x5a3342- -0x215,_0x5d2517-_0x4c3d0a._0x47ae24,_0x59a311-0xca);}return _0x5d95ac(0x385,_0x5b0d67._0x4ee9d6,0x3bf,_0x5b0d67._0x28cfd8)in _0x15e6b3;}function isTavilyEngine(_0x46c585){return'tavilyApiKey'in _0x46c585;}function createWebSearchTool(_0x260edc){const _0xbb66e4={_0x3834df:0x3df,_0x43c6c3:0x297,_0x3da035:0x13c,_0x29ab06:0x5c6,_0x895699:0x6b2,_0xd6f3ea:0x1fe,_0x37f6e2:0x3af,_0x3b6179:0x71d,_0x26ab3d:0x656,_0x4ba2ad:0x53f,_0x405206:0x391,_0x20b043:0x3de,_0x4f846e:0x25d,_0x28e6da:0x5a4,_0x464a4c:0x733,_0x2f4476:0x6cf,_0x1dee36:0x6ed,_0x4ebb1f:0x5c9,_0x23b4c0:0x76a,_0x2e3ae8:0x722,_0x73fbe1:0x6da,_0x928876:0x709,_0x1f6a21:0x6cf,_0x5dd285:0x5ad,_0x2819b0:0xdc,_0x5e30c6:0x89,_0x250888:0x20e,_0x3536b9:0x4b4,_0x1df8a6:0x14e,_0x3d8c85:0x187,_0x1d675d:0x49,_0x570b11:0x5c8,_0x1b7b5f:0x485,_0x45f2f1:0x5e0,_0x1814f7:0x50a},_0x1585bb={_0x9a6d9f:0x33a,_0x249a49:0x379,_0x544551:0x199,_0x36a31c:0x14a,_0x2f38a5:0xfd,_0x4a035b:0x42c,_0x4af173:0x59,_0x22a508:0x48,_0xfaf94f:0x87,_0xc9a515:0x132,_0x4c8b37:0x208,_0x49b67a:0xd4,_0x3bda9e:0x358,_0x40f427:0x244,_0x811ada:0x2d6,_0x3bd4d6:0x2a2,_0x48c500:0x25c,_0x559acc:0x1ea,_0x5dfc3b:0x4a1,_0x5823d5:0x39f,_0x5499d3:0x42f,_0x531449:0x299,_0x552df1:0x350,_0x2c2f0a:0x244,_0x181fed:0x3ba,_0x2d23b8:0x113,_0x4374ff:0x32d,_0x19c438:0xb,_0x344fc9:0xf,_0x39031c:0xd5,_0x2e98c2:0x37e,_0x5723f7:0x3c1,_0x2dc485:0x251,_0x2e3e1c:0x149,_0x54b8fd:0xed,_0x3cfdef:0xa0,_0x6546bf:0x95,_0x1095ba:0x175,_0x5c7849:0x119,_0x1f90f7:0x168,_0x2297ef:0x193,_0x392893:0x223,_0x1df7f4:0x1d4,_0x21463d:0x310,_0x3be91c:0x215,_0x3a8f8d:0x20a,_0x3e44aa:0x1e0,_0x5cf1b4:0x27b,_0x4ec5a6:0x2ef,_0xc89d5d:0x276,_0x380285:0x1cb,_0x22bcde:0x141,_0x19402a:0x205,_0x3ad365:0x5a,_0x55ea93:0x11b,_0x42e41a:0xda,_0x24a290:0x181,_0xfc4c35:0x196,_0x42ff8c:0x153,_0x23b002:0x351,_0x516ed1:0x3ea,_0x40b879:0xa4,_0xb19e82:0x135,_0x5b1164:0x110,_0xb4f54e:0x141,_0x352b9b:0x1ad,_0x57b304:0xdc,_0x3a9359:0x36,_0x2ce004:0xde,_0x458d07:0x268,_0x849853:0x12c,_0x5c5ec9:0x113,_0x5a873c:0x1ff,_0x1bbc98:0x62,_0x146923:0x45f,_0xb12e19:0x37f,_0x2cf234:0x105,_0x95a10d:0x18c,_0x4f400b:0xec,_0x10bec9:0x195,_0x422a94:0x27d,_0x42add2:0x182,_0xf6ad98:0x89,_0x1915f5:0x7e,_0x5e9216:0x12,_0x5d7f0e:0x308},_0x3a5dc4={_0x944875:0x1d9,_0x55246a:0x172},_0x51f4ba={_0x2ef5fc:0x25},_0x25ad78={_0x7f841d:0x4f,_0x64f8b9:0x91};if(!_0x260edc[_0x2cb0db(0x63c,_0xbb66e4._0x3834df,0x515,0x681)]||_0x260edc['engines'][_0x27fad6(0xd8,_0xbb66e4._0x43c6c3,_0xbb66e4._0x3da035,0x118)]===0x0)throw new Error(_0x2cb0db(0x6e9,0x4aa,_0xbb66e4._0x29ab06,_0xbb66e4._0x895699));function _0x2cb0db(_0x1062e9,_0x1c22bb,_0x1433c2,_0x5bb853){return _0x4bd068(_0x1c22bb,_0x1433c2-0xd1,_0x1433c2-_0x25ad78._0x7f841d,_0x5bb853-_0x25ad78._0x64f8b9);}const _0xdd1855=_0x260edc['name']??_0x27fad6(0x3a4,_0xbb66e4._0xd6f3ea,0x35d,_0xbb66e4._0x37f6e2);function _0x27fad6(_0x2e9ee9,_0x1f4a66,_0x1ec459,_0x362475){return _0x154255(_0x362475,_0x1f4a66-0x13b,_0x1ec459-0xff,_0x362475-_0x51f4ba._0x2ef5fc);}const _0x1dfcf1=_0x260edc[_0x2cb0db(_0xbb66e4._0x3b6179,0x55c,_0xbb66e4._0x26ab3d,0x797)];return defineTool({'name':_0xdd1855,'description':_0x2cb0db(0x58c,0x415,0x50b,_0xbb66e4._0x4ba2ad),'inputSchema':{'type':_0x27fad6(_0xbb66e4._0x405206,0x4f3,_0xbb66e4._0x20b043,0x4aa),'properties':{'description':{'type':'string'},'query':{'type':_0x27fad6(0xa7,0x43,0x187,_0xbb66e4._0x4f846e)},'count':{'type':_0x2cb0db(_0xbb66e4._0x28e6da,_0xbb66e4._0x464a4c,_0xbb66e4._0x2f4476,_0xbb66e4._0x1dee36)},'offset':{'type':'number'},'domains':{'type':_0x2cb0db(_0xbb66e4._0x4ebb1f,_0xbb66e4._0x23b4c0,_0xbb66e4._0x2e3ae8,_0xbb66e4._0x73fbe1),'items':{'type':'string'}},'recencyDays':{'type':_0x2cb0db(_0xbb66e4._0x928876,0x656,_0xbb66e4._0x1f6a21,_0xbb66e4._0x5dd285)},'lang':{'type':_0x27fad6(_0xbb66e4._0x2819b0,_0xbb66e4._0x5e30c6,0x187,_0xbb66e4._0x250888)},'region':{'type':'string'},'safe':{'type':_0x2cb0db(0x419,0x60a,_0xbb66e4._0x3536b9,0x376)},'type':{'type':_0x27fad6(0x209,_0xbb66e4._0x1df8a6,_0xbb66e4._0x3d8c85,_0xbb66e4._0x1d675d)},'hydrateMeta':{'type':'boolean'}},'required':[_0x2cb0db(_0xbb66e4._0x570b11,_0xbb66e4._0x1b7b5f,_0xbb66e4._0x45f2f1,_0xbb66e4._0x1814f7)]},async *'execute'(_0x139398,_0x11647a){const _0x36ef53={_0x292e4e:0xaf,_0x1cfcfc:0x213,_0x13ec39:0x1f0,_0x244c63:0x133,_0x4aaab5:0x180,_0x57e91:0x11e},_0x49954f={_0x5d296b:0x15f,_0x1c2aa2:0x10b,_0x2d89ca:0x5},_0x122185=_0x139398[_0x4374e3(_0x1585bb._0x9a6d9f,0x27d,0x3c1,_0x1585bb._0x249a49)][_0x1c138e(-0x1fc,-0x2fa,-0x124,-0x192)]();function _0x1c138e(_0x5a20b8,_0x300fd6,_0x954c48,_0x3435a1){return _0x27fad6(_0x5a20b8-_0x3a5dc4._0x944875,_0x300fd6-_0x3a5dc4._0x55246a,_0x3435a1- -0x2c6,_0x954c48);}if(!_0x122185)throw new ToolExecutionError(_0x1c138e(_0x1585bb._0x544551,_0x1585bb._0x36a31c,-0x11,_0x1585bb._0x2f38a5));const _0x1d1f3a={'query':_0x122185,'count':Math[_0x4374e3(_0x1585bb._0x4a035b,0x39f,0x422,0x403)](0x1,Math['min'](0x32,Math[_0x1c138e(-_0x1585bb._0x4af173,-_0x1585bb._0x22a508,-0x12d,-_0x1585bb._0xfaf94f)](_0x139398['count']??0xa))),'offset':Math[_0x1c138e(0x168,_0x1585bb._0xc9a515,_0x1585bb._0x4c8b37,_0x1585bb._0x49b67a)](0x0,Math[_0x4374e3(_0x1585bb._0x3bda9e,_0x1585bb._0x40f427,_0x1585bb._0x811ada,0x1c7)](_0x139398[_0x4374e3(_0x1585bb._0x3bd4d6,_0x1585bb._0x48c500,0x279,_0x1585bb._0x559acc)]??0x0)),'domains':_0x139398[_0x1c138e(-0x107,-0x286,-0x1e1,-0x196)]??[],'recencyDays':Math[_0x4374e3(_0x1585bb._0x5dfc3b,_0x1585bb._0x5823d5,_0x1585bb._0x5499d3,_0x1585bb._0x531449)](0x0,Math[_0x4374e3(_0x1585bb._0x552df1,_0x1585bb._0x2c2f0a,_0x1585bb._0x811ada,_0x1585bb._0x181fed)](_0x139398[_0x1c138e(-0x23c,-0xc4,-0x1a5,-_0x1585bb._0x2d23b8)]??0x0)),'lang':_0x139398[_0x4374e3(0x3ad,_0x1585bb._0x4374ff,0x331,0x34c)]??'en','region':_0x139398['region']??'','safe':_0x139398[_0x1c138e(_0x1585bb._0x19c438,-0x51,-_0x1585bb._0x344fc9,_0x1585bb._0x39031c)]??!![],'type':normalizeType(_0x139398[_0x4374e3(0x230,0x299,_0x1585bb._0x2e98c2,_0x1585bb._0x5723f7)]),'hydrateMeta':_0x139398[_0x4374e3(_0x1585bb._0x2dc485,_0x1585bb._0x2e3e1c,0xf6,_0x1585bb._0x54b8fd)]??![]};let _0x67b1a6=[],_0x49e2a5=_0x4374e3(0x495,0x3ad,0x2b6,0x3dd);for(const _0x3ed46a of _0x260edc[_0x1c138e(-_0x1585bb._0x3cfdef,-_0x1585bb._0x6546bf,-_0x1585bb._0x1095ba,-_0x1585bb._0x5c7849)]){try{if(isGoogleCseEngine(_0x3ed46a))_0x67b1a6=await searchGoogleCse(_0x3ed46a,_0x1d1f3a,_0x11647a[_0x4374e3(_0x1585bb._0x1f90f7,0x20a,_0x1585bb._0x2297ef,0x28e)]),_0x49e2a5='google-cse';else{if(isOllamaEngine(_0x3ed46a)){const _0x361e31=await searchOllama(_0x3ed46a,_0x1d1f3a,_0x11647a[_0x4374e3(0x153,0x20a,0x2d0,0x2c4)]);_0x67b1a6=_0x361e31[_0x1c138e(-0x72,-0x1d6,-_0x1585bb._0x392893,-0xeb)],_0x49e2a5=_0x361e31[_0x4374e3(_0x1585bb._0x1df7f4,_0x1585bb._0x21463d,_0x1585bb._0x3be91c,0x1c4)];}else{if(isTavilyEngine(_0x3ed46a)){const _0x54d026=await searchTavily(_0x3ed46a,_0x1d1f3a,_0x11647a[_0x4374e3(0x378,_0x1585bb._0x3a8f8d,0x361,0x19f)]);_0x67b1a6=_0x54d026[_0x4374e3(0x214,_0x1585bb._0x3e44aa,_0x1585bb._0x5cf1b4,0x277)],_0x49e2a5=_0x54d026[_0x4374e3(0x40c,_0x1585bb._0x21463d,0x2a9,0x29c)];}}}if(_0x67b1a6['length']>0x0)break;}catch(_0x218233){if(_0x3ed46a===_0x260edc[_0x4374e3(0x1ac,0x1b2,_0x1585bb._0x4ec5a6,0x260)][_0x260edc[_0x1c138e(-0xcb,-_0x1585bb._0xc89d5d,-_0x1585bb._0x380285,-_0x1585bb._0x5c7849)][_0x4374e3(0x239,_0x1585bb._0x22bcde,_0x1585bb._0x19402a,-0x1)]-0x1])throw _0x218233;}}_0x1d1f3a['hydrateMeta']&&_0x67b1a6[_0x4374e3(0x257,0x141,_0x1585bb._0x3ad365,-0x32)]>0x0&&(_0x67b1a6=await hydrateResults(_0x67b1a6,_0x1d1f3a[_0x1c138e(_0x1585bb._0x55ea93,-_0x1585bb._0x42e41a,_0x1585bb._0x24a290,0x62)],_0x11647a[_0x4374e3(_0x1585bb._0xfc4c35,0x20a,_0x1585bb._0x42ff8c,0x1d9)],_0x1dfcf1));function _0x4374e3(_0x2b7412,_0x2d7e4e,_0x12ea8c,_0x20e659){return _0x27fad6(_0x2b7412-_0x49954f._0x5d296b,_0x2d7e4e-_0x49954f._0x1c2aa2,_0x2d7e4e-_0x49954f._0x2d89ca,_0x12ea8c);}const _0x450045=new Set();_0x67b1a6=_0x67b1a6[_0x4374e3(_0x1585bb._0x23b002,0x399,_0x1585bb._0x516ed1,0x29e)](_0x48f543=>{const _0x2cac8d={_0x5d16f6:0x198,_0x2d6668:0x84};function _0x5497ea(_0x3f63d8,_0x2bb495,_0x285e07,_0x4afe84){return _0x4374e3(_0x3f63d8-0x83,_0x2bb495- -0x249,_0x4afe84,_0x4afe84-0x1b7);}const _0x377b98=_0x48f543[_0x5497ea(-0x1cb,-_0x36ef53._0x292e4e,-0x1c5,-_0x36ef53._0x1cfcfc)]['toLowerCase']();if(!_0x377b98||_0x450045[_0x6bf409(-0xb6,-_0x36ef53._0x13ec39,-0x29d,-0x2aa)](_0x377b98))return![];_0x450045[_0x5497ea(_0x36ef53._0x244c63,0x5c,_0x36ef53._0x4aaab5,_0x36ef53._0x57e91)](_0x377b98);function _0x6bf409(_0x5b92d7,_0x583dc5,_0x23823f,_0x1adafb){return _0x1c138e(_0x5b92d7-_0x2cac8d._0x5d16f6,_0x583dc5-_0x2cac8d._0x2d6668,_0x5b92d7,_0x583dc5- -0xaf);}return!![];}),_0x67b1a6=_0x67b1a6['map']((_0x3b858d,_0x32d996)=>({..._0x3b858d,'source':{..._0x3b858d['source'],'rank':_0x32d996+0x1}}));const _0x29568e={};if(_0x1d1f3a[_0x4374e3(_0x1585bb._0x40b879,_0x1585bb._0xb19e82,0x21e,_0x1585bb._0x5b1164)][_0x4374e3(0x255,_0x1585bb._0xb4f54e,_0x1585bb._0x352b9b,-0x39)]>0x0)_0x29568e[_0x4374e3(_0x1585bb._0x57b304,0x135,_0x1585bb._0x55ea93,-_0x1585bb._0x3a9359)]=_0x1d1f3a[_0x1c138e(-0x1be,-_0x1585bb._0x2ce004,-_0x1585bb._0x458d07,-_0x1585bb._0xfc4c35)];if(_0x1d1f3a['recencyDays']>0x0)_0x29568e[_0x1c138e(0x10,-_0x1585bb._0x849853,-0x1ba,-_0x1585bb._0x5c5ec9)]=_0x1d1f3a[_0x1c138e(-_0x1585bb._0x5a873c,-0x18c,-0x1da,-0x113)];if(_0x1d1f3a[_0x1c138e(0xf9,0xc8,-0x97,_0x1585bb._0x1bbc98)]!=='en')_0x29568e['lang']=_0x1d1f3a[_0x4374e3(0x322,0x32d,_0x1585bb._0x146923,_0x1585bb._0xb12e19)];if(_0x1d1f3a['region'])_0x29568e[_0x1c138e(-0x1f0,-_0x1585bb._0x2cf234,-_0x1585bb._0xfc4c35,-_0x1585bb._0x95a10d)]=_0x1d1f3a[_0x4374e3(0x2a0,0x13f,0x5a,_0x1585bb._0x4f400b)];return yield createToolOutput(formatResults(_0x67b1a6),{'engine':_0x49e2a5,'count':_0x67b1a6['length'],'items':_0x67b1a6,'query':_0x1d1f3a[_0x4374e3(_0x1585bb._0x10bec9,_0x1585bb._0x422a94,_0x1585bb._0x42add2,0x10c)],...Object[_0x1c138e(-_0x1585bb._0xf6ad98,-0xfa,-0x109,-_0x1585bb._0x1915f5)](_0x29568e)[_0x4374e3(0x65,_0x1585bb._0xb4f54e,_0x1585bb._0x5e9216,0x64)]>0x0?{'appliedFilters':_0x29568e}:{},'offset':_0x1d1f3a['offset'],'totalRequested':_0x1d1f3a[_0x4374e3(_0x1585bb._0x5d7f0e,0x221,0x2e4,0x386)],'hydrated':_0x1d1f3a[_0x4374e3(0x264,0x149,0xa1,-0x27)]}),void 0x0;}});}export{BackgroundProcessRegistry,ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashOutputTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createKillShellTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
1
+ (function(_0x10559b,_0x492bd9){const _0x1c2326={_0x12d066:0x375,_0x36b895:0x4bc,_0xa62729:0x397,_0x12c723:0x43b,_0x2a89c8:0x378,_0x457fea:0x480,_0xd1d29c:0x704,_0x5ac19a:0x658,_0x27c21d:0x59d,_0x152e47:0x4d1,_0x281eb7:0x322,_0x1dd05e:0x76b,_0x45af4c:0x73a,_0x2d2d2d:0x6cd,_0x432396:0x565,_0x14b045:0x405,_0x1bdf11:0x3cc,_0x59ec03:0x499,_0x34d56b:0x691,_0x1c7fa0:0x5eb,_0x557ce2:0x487,_0x567f72:0x261,_0x22c29d:0x3a2,_0x49b0bc:0x26c,_0x3e5622:0x32e},_0x195540={_0x1facf8:0x56};function _0x400739(_0x41f8b8,_0x3b67a2,_0x5bc640,_0x53833f){return _0x3bdd(_0x3b67a2-_0x195540._0x1facf8,_0x53833f);}const _0x57b10b=_0x10559b();function _0x532922(_0x3a473c,_0x5aba1c,_0x4bbf97,_0x16262c){return _0x3bdd(_0x4bbf97-0x20e,_0x3a473c);}while(!![]){try{const _0x4468a5=-parseInt(_0x532922(0x516,_0x1c2326._0x12d066,_0x1c2326._0x36b895,_0x1c2326._0xa62729))/0x1+-parseInt(_0x532922(_0x1c2326._0x12c723,_0x1c2326._0x2a89c8,_0x1c2326._0x457fea,0x309))/0x2*(parseInt(_0x532922(_0x1c2326._0xd1d29c,_0x1c2326._0x5ac19a,0x5d2,_0x1c2326._0x27c21d))/0x3)+parseInt(_0x532922(_0x1c2326._0x152e47,0x5dc,0x477,_0x1c2326._0x281eb7))/0x4+-parseInt(_0x532922(_0x1c2326._0x1dd05e,0x56f,0x696,0x52e))/0x5*(parseInt(_0x532922(_0x1c2326._0x45af4c,_0x1c2326._0x2d2d2d,0x5c4,_0x1c2326._0x432396))/0x6)+parseInt(_0x532922(0x423,_0x1c2326._0x14b045,0x4be,_0x1c2326._0x1bdf11))/0x7*(-parseInt(_0x532922(_0x1c2326._0x59ec03,_0x1c2326._0x34d56b,_0x1c2326._0x1c7fa0,_0x1c2326._0x557ce2))/0x8)+parseInt(_0x400739(_0x1c2326._0x567f72,_0x1c2326._0x22c29d,0x378,0x328))/0x9+parseInt(_0x400739(0x3e1,_0x1c2326._0x49b0bc,0x3c5,_0x1c2326._0x3e5622))/0xa;if(_0x4468a5===_0x492bd9)break;else _0x57b10b['push'](_0x57b10b['shift']());}catch(_0xf04b61){_0x57b10b['push'](_0x57b10b['shift']());}}}(_0x770d,0x7bfac));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-UIXQPCSN.js';import{getTextFromMessage}from'../chunk-YWQXXHHU.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x306edd from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x1e45aa(0x742,0x7d4,0x693,0x5de),'.tsx':_0x55c88d(0x301,0x41a,0x4d0,0x2e1),'.js':_0x1e45aa(0x891,0x722,0x7e7,0x7b0),'.jsx':_0x55c88d(0x4a4,0x3a3,0x4be,0x2b3),'.mjs':'javascript','.cjs':'javascript','.mts':_0x55c88d(0x329,0x3e2,0x4af,0x432),'.cts':_0x55c88d(0x52e,0x3e2,0x3e3,0x288),'.json':_0x55c88d(0x401,0x44e,0x5a6,0x572),'.jsonc':_0x55c88d(0x5b1,0x528,0x539,0x66e)};function getLanguageId(_0x36fd06){const _0x56f064={_0x28ee62:0x61b,_0x5743d0:0x63d,_0x3f8c1e:0x507},_0x6ffba7={_0x50357e:0x6c,_0xd8e565:0x18c};function _0x56899d(_0x476dda,_0xf3d21a,_0x23757,_0x50b080){return _0x55c88d(_0x476dda-_0x6ffba7._0x50357e,_0x23757-_0x6ffba7._0xd8e565,_0x50b080,_0x50b080-0x1ea);}function _0xb9007e(_0x2e36a3,_0x440540,_0x1e53b9,_0x1b41c7){return _0x1e45aa(_0x2e36a3-0xf2,_0x440540-0xcc,_0x2e36a3- -0x361,_0x440540);}return EXTENSION_TO_LANGUAGE[_0x306edd[_0x56899d(0x667,0x750,0x71a,_0x56f064._0x28ee62)](_0x36fd06)[_0x56899d(_0x56f064._0x5743d0,0x62f,_0x56f064._0x3f8c1e,0x638)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x30891d){const _0x12f5ad={_0x2a4c9a:0x2cc,_0x30567c:0x237},_0x4920eb={_0x36d6b5:0x9,_0x51b61a:0x62};function _0x319584(_0x165f65,_0xdea028,_0x3f152c,_0x370afd){return _0x55c88d(_0x165f65-_0x4920eb._0x36d6b5,_0xdea028- -0x8e,_0x165f65,_0x370afd-_0x4920eb._0x51b61a);}return pathToFileURL(_0x30891d)[_0x319584(_0x12f5ad._0x2a4c9a,0x38e,_0x12f5ad._0x30567c,0x3c1)]();}function textDocumentPosition(_0x220c17){const _0x480fea={_0x43d97a:0x3ba,_0x29cf18:0x26e,_0x4efd39:0x504,_0x5bf646:0x3d2},_0xb3525b={_0x178073:0x142,_0x409c72:0xd3},_0xf50f0e={_0x3c7b82:0xda,_0xed8995:0x191};function _0x2d87f6(_0xbb1dde,_0x556acc,_0x412758,_0x2f3403){return _0x1e45aa(_0xbb1dde-0xe6,_0x556acc-_0xf50f0e._0x3c7b82,_0xbb1dde- -_0xf50f0e._0xed8995,_0x2f3403);}function _0x11e6ee(_0x330085,_0x414605,_0x2399fe,_0x4c0703){return _0x55c88d(_0x330085-_0xb3525b._0x178073,_0x414605- -_0xb3525b._0x409c72,_0x330085,_0x4c0703-0x56);}return{'textDocument':{'uri':uriForPath(_0x220c17[_0x11e6ee(_0x480fea._0x43d97a,0x298,_0x480fea._0x29cf18,0x41c)])},'position':{'line':_0x220c17[_0x2d87f6(0x4dd,0x4f9,_0x480fea._0x4efd39,_0x480fea._0x5bf646)],'character':_0x220c17['character']}};}function normalizeLocations(_0x521334){const _0x2d9251={_0x57c255:0xc4,_0x16762d:0x775};if(!_0x521334)return[];function _0x590475(_0xdf07f7,_0x3725c7,_0x1c444b,_0x5083f2){return _0x1e45aa(_0xdf07f7-0x169,_0x3725c7-_0x2d9251._0x57c255,_0x3725c7- -_0x2d9251._0x16762d,_0xdf07f7);}return Array[_0x590475(0x14,0xa6,0x60,0xe9)](_0x521334)?_0x521334:[_0x521334];}async function createLspClient(_0x57e64a){const _0x5d24de={_0x1e5c9c:0x66,_0x375020:0x102,_0x493a59:0x387,_0x425b02:0x461,_0x2b7300:0x1dd,_0x4f9d64:0x27a,_0x8e7900:0x2a6,_0x1c60a6:0x3a8,_0x1dabe6:0x407,_0x5e0087:0x31,_0x4970d9:0x41,_0xe464aa:0xb0,_0x2976ed:0xf8,_0x53ddb1:0x48a,_0x283e67:0x4b3,_0x12e4a8:0x1f2,_0x4ee977:0x2f1,_0x1d16f0:0x247,_0x32ed10:0x1bb,_0x155b35:0x43,_0x39490e:0x191,_0x1933c6:0x3c,_0x50333f:0x17,_0x1c397c:0x99,_0x3f8cbb:0xff,_0x3dfc0c:0xa,_0xc88da9:0x7b,_0x494dc6:0x13,_0x38c70b:0x97,_0x2ea7da:0x9a,_0x91df8:0x27c,_0x1f4926:0x189,_0x1c1bd0:0x22c,_0x45d82f:0xf0,_0x44c080:0x66,_0x20e175:0x74},_0x4110fb={_0x3d2c33:0x1b0,_0x169e22:0x53,_0x5ba104:0x101,_0x704ccc:0xe8,_0x380e18:0x6a,_0x44a95f:0x1a,_0x27de8a:0x168,_0x262d86:0x7f,_0x3be07c:0x7b,_0x131d8f:0xc3,_0x45710c:0x49,_0x5e00a2:0x10f,_0x37ad2f:0x5f,_0x1fd320:0x103},_0x34ebcc={_0x4be6c9:0x14f},_0x2c493c={_0x49e052:0x57c,_0x13f432:0x4a0,_0x5c1571:0x337,_0x206c41:0x46d,_0x48475e:0x31a},_0x5587d4={_0x312ed0:0x28d,_0x13c0fb:0x450,_0x2dd1d3:0x537,_0x269f94:0x2da,_0x4f6189:0x22b,_0x41bd90:0x3a4,_0x4c0333:0xd1,_0x483bdc:0x22b},_0x40e238={_0x4ec769:0x6b,_0x5eff7a:0xd3,_0x345fc4:0x43},_0x295025={_0x33e3a3:0x2,_0x3ba5de:0x447},_0x41005b={_0x1a6c01:0x73,_0xb9707e:0x25b},_0x1a8e9f={_0x5b9c27:0x1d3,_0xba91ea:0x18c,_0x41ba72:0x184,_0x11ae08:0xd,_0x3b580a:0x165,_0x2b199e:0x8b},_0x1a74a1={_0x1520ca:0x38c,_0x357476:0x36f},_0x51f94e={_0x3bd96b:0x144,_0x4bf24e:0xe},_0x5530c2={_0x989fe6:0x7a},_0x81219a={_0x7d7402:0x135,_0x5e693e:0x335,_0x1abb8a:0x234,_0x5c15f3:0x37a},_0x489363={_0x210d44:0x738},_0x5c3ab7={_0x4fddb0:0x130,_0x1e9f38:0x357},_0x321306={_0x2e0dd9:0x3ab,_0x4419a0:0x416,_0x2e3a02:0x474,_0x4c3842:0x478,_0x4521b6:0x4af},_0x4dc5ea={_0x423686:0x1c3},_0x505c91={_0x39221f:0x1c8,_0x3ac356:0x29e},_0x3974e3={_0x376a59:0x204,_0x1da70c:0x67d,_0x593bc1:0x638,_0x246ebf:0x1e2,_0x292e72:0x30},_0x1b2db8={_0x283c7d:0x10e,_0x1d160c:0x137,_0x4197e3:0x2af},_0x5dd48d={_0x2e7ece:0x6cb,_0x233e2b:0x548,_0x57c1d0:0x405,_0x6991a2:0x92,_0x54fe74:0x3ed,_0x194b88:0x3c0,_0x212992:0x574},_0xc94f43={_0x437f9f:0x27b,_0x28d8e9:0x23f,_0x569c8f:0x38c,_0x5d4f10:0xe2,_0x18017d:0x266,_0xcc3c0d:0x367,_0x11bbb9:0x35e,_0x5a7ae6:0x45b,_0x31f0d2:0x2dc,_0x141313:0xc0,_0x7fca80:0x44c},_0x3846a2={_0x2fafcd:0xac,_0x11211b:0xb},_0x547ad8={_0x2a0fe7:0x1a2,_0x4600de:0x1be,_0x2dc857:0x74b};function _0x5ba6a1(_0x192ab1,_0x58b521,_0x58bcf7,_0x58b5e9){return _0x1e45aa(_0x192ab1-_0x547ad8._0x2a0fe7,_0x58b521-_0x547ad8._0x4600de,_0x192ab1- -_0x547ad8._0x2dc857,_0x58b5e9);}const _0x2a4c3d=_0x57e64a[_0x5ba6a1(0x43,_0x5d24de._0x1e5c9c,_0x5d24de._0x375020,0x5b)][_0x5218ae(0x55a,0x440,_0x5d24de._0x493a59,_0x5d24de._0x425b02)][_0x5ba6a1(-_0x5d24de._0x2b7300,-_0x5d24de._0x4f9d64,-_0x5d24de._0x2b7300,-_0x5d24de._0x8e7900)],_0x41f050=_0x57e64a[_0x5218ae(_0x5d24de._0x1c60a6,_0x5d24de._0x1dabe6,0x2ba,0x3fe)]['process'][_0x5ba6a1(_0x5d24de._0x5e0087,0x186,-0x13a,-0x104)];if(!_0x2a4c3d||!_0x41f050)throw new Error(_0x5ba6a1(_0x5d24de._0x4970d9,-_0x5d24de._0xe464aa,_0x5d24de._0x2976ed,-0x66));const _0x732c33=createMessageConnection(new StreamMessageReader(_0x2a4c3d),new StreamMessageWriter(_0x41f050)),_0x4602f6=new Map(),_0x526a57=new Map();function _0x5218ae(_0x478f1e,_0x12c2b6,_0x32c319,_0x8d5b49){return _0x55c88d(_0x478f1e-0x198,_0x8d5b49- -0xdf,_0x12c2b6,_0x8d5b49-0x41);}let _0x531dbd=![];_0x732c33[_0x5218ae(_0x5d24de._0x53ddb1,_0x5d24de._0x283e67,0x300,0x3e2)]('textDocument/publishDiagnostics',_0x4b98ce=>{const _0x604591={_0x37ea91:0x111,_0x4d66dc:0x11d};function _0x1e1ab0(_0x4134c4,_0x65f52c,_0x47caee,_0x50686a){return _0x5218ae(_0x4134c4-0x8d,_0x65f52c,_0x47caee-_0x604591._0x37ea91,_0x4134c4-_0x604591._0x4d66dc);}_0x4602f6['set'](_0x4b98ce[_0x533445(0x30f,0x166,_0xc94f43._0x437f9f,0x22c)],_0x4b98ce[_0x533445(_0xc94f43._0x28d8e9,_0xc94f43._0x569c8f,_0xc94f43._0x5d4f10,_0xc94f43._0x18017d)]);function _0x533445(_0x3999ff,_0x3b5024,_0xf61cc4,_0x268eaa){return _0x5218ae(_0x3999ff-_0x3846a2._0x2fafcd,_0x3999ff,_0xf61cc4-_0x3846a2._0x11211b,_0x268eaa-0x8);}const _0x324c53=_0x526a57[_0x533445(_0xc94f43._0xcc3c0d,0x51c,_0xc94f43._0x11bbb9,_0xc94f43._0x5a7ae6)](_0x4b98ce[_0x533445(_0xc94f43._0x31f0d2,_0xc94f43._0x141313,0x20b,0x22c)]);if(!_0x324c53)return;_0x526a57[_0x1e1ab0(0x3df,0x28d,0x41b,0x41a)](_0x4b98ce[_0x1e1ab0(0x341,_0xc94f43._0x7fca80,0x40d,0x391)]);for(const _0x442baf of _0x324c53)_0x442baf();}),_0x732c33['listen']();const _0x11674b=await _0x732c33['sendRequest'](_0x5218ae(0x100,_0x5d24de._0x12e4a8,_0x5d24de._0x4ee977,0x231),{'processId':process[_0x5218ae(0xb8,_0x5d24de._0x1d16f0,_0x5d24de._0x32ed10,0x1f4)],'rootUri':uriForPath(_0x57e64a['root']),'workspaceFolders':[{'uri':uriForPath(_0x57e64a['root']),'name':_0x57e64a['server']['id']}],'initializationOptions':_0x57e64a[_0x5ba6a1(_0x5d24de._0x155b35,_0x5d24de._0x39490e,-0x120,-0x15)][_0x5ba6a1(-_0x5d24de._0x1933c6,0x6b,-0x1a0,-_0x5d24de._0x50333f)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x5ba6a1(-_0x5d24de._0x1c397c,-_0x5d24de._0x3f8cbb,-0x79,_0x5d24de._0x3dfc0c),'plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x732c33['sendNotification'](_0x5ba6a1(_0x5d24de._0xc88da9,-0xdd,_0x5d24de._0x494dc6,0x1a5),{});const _0x5b1cc6={'serverId':_0x57e64a[_0x5218ae(_0x5d24de._0x38c70b,_0x5d24de._0x2ea7da,_0x5d24de._0x91df8,0x209)]['id'],'root':_0x57e64a[_0x5ba6a1(0xd2,-0xb0,_0x5d24de._0x1f4926,_0x5d24de._0x1c1bd0)],'connection':_0x732c33,'diagnostics':_0x4602f6,'capabilities':_0x11674b[_0x5ba6a1(-_0x5d24de._0x45d82f,-_0x5d24de._0x44c080,0x57,_0x5d24de._0x20e175)]??{},'notify':{async 'open'({path:_0x40ac3e}){const _0x1aa224={_0x3abe95:0x109,_0x82cf27:0x183};function _0x1058f8(_0x3cfe52,_0x2d8439,_0x1ca944,_0x273dd4){return _0x5ba6a1(_0x2d8439-0x535,_0x2d8439-_0x1aa224._0x3abe95,_0x1ca944-_0x1aa224._0x82cf27,_0x1ca944);}const _0xc95f03=await readFile(_0x40ac3e,'utf8');function _0x7aff65(_0x5cbe2d,_0x3336c4,_0x15db68,_0x3a0dd7){return _0x5ba6a1(_0x3a0dd7-0x272,_0x3336c4-0x102,_0x15db68-0xcb,_0x5cbe2d);}_0x732c33[_0x1058f8(_0x5dd48d._0x2e7ece,_0x5dd48d._0x233e2b,0x603,_0x5dd48d._0x57c1d0)](_0x7aff65(0x29b,_0x5dd48d._0x6991a2,0x177,0x1bc),{'textDocument':{'uri':uriForPath(_0x40ac3e),'languageId':getLanguageId(_0x40ac3e)??_0x1058f8(_0x5dd48d._0x54fe74,0x4bc,_0x5dd48d._0x194b88,_0x5dd48d._0x212992),'version':0x1,'text':_0xc95f03}});},async 'change'({path:_0x3645b9,version:_0x205aab}){const _0x30fb1b={_0x101528:0x189,_0x2758e3:0xba};function _0x316798(_0x3d5d69,_0x11bf87,_0x47a778,_0x431984){return _0x5218ae(_0x3d5d69-_0x1b2db8._0x283c7d,_0x431984,_0x47a778-_0x1b2db8._0x1d160c,_0x11bf87-_0x1b2db8._0x4197e3);}function _0xd81bcb(_0x3f2681,_0x5bfffa,_0x49b3e9,_0x13915e){return _0x5218ae(_0x3f2681-_0x30fb1b._0x101528,_0x13915e,_0x49b3e9-0x1a9,_0x5bfffa- -_0x30fb1b._0x2758e3);}const _0x1254f6=await readFile(_0x3645b9,_0xd81bcb(0x18e,0x24d,_0x3974e3._0x376a59,0x291));_0x732c33[_0x316798(0x770,_0x3974e3._0x1da70c,0x520,_0x3974e3._0x593bc1)](_0xd81bcb(_0x3974e3._0x246ebf,0x1a6,0x155,_0x3974e3._0x292e72),{'textDocument':{'uri':uriForPath(_0x3645b9),'version':_0x205aab},'contentChanges':[{'text':_0x1254f6}]});},async 'close'({path:_0x37bcde}){const _0x1bbcbe={_0x251a79:0x1b5,_0xf34415:0xab};function _0x33a038(_0x48f31d,_0xda9eb1,_0x4603a8,_0xf39d86){return _0x5ba6a1(_0x48f31d-_0x1bbcbe._0x251a79,_0xda9eb1-0xf9,_0x4603a8-_0x1bbcbe._0xf34415,_0xf39d86);}_0x732c33[_0x33a038(_0x505c91._0x39221f,0x15c,0xdd,_0x505c91._0x3ac356)]('textDocument/didClose',{'textDocument':{'uri':uriForPath(_0x37bcde)}});}},'request':{async 'definition'(_0x2e1fb8){return normalizeLocations(await _0x732c33['sendRequest']('textDocument/definition',textDocumentPosition(_0x2e1fb8)));},async 'references'(_0x56ccfb){const _0xff4760={_0x2310de:0x168,_0x3ed29f:0x45};function _0x4c88d8(_0x528fe9,_0x3a262f,_0x25eae9,_0xa3c2eb){return _0x5ba6a1(_0x25eae9-0x1f,_0x3a262f-0xd2,_0x25eae9-_0x4dc5ea._0x423686,_0xa3c2eb);}function _0x441528(_0x4a3edc,_0x2c1aef,_0x5c5e95,_0x53bde7){return _0x5218ae(_0x4a3edc-_0xff4760._0x2310de,_0x2c1aef,_0x5c5e95-0x1be,_0x53bde7-_0xff4760._0x3ed29f);}return normalizeLocations(await _0x732c33[_0x441528(_0x321306._0x2e0dd9,0x3b2,_0x321306._0x4419a0,0x2a2)](_0x441528(_0x321306._0x2e3a02,_0x321306._0x4c3842,_0x321306._0x4521b6,0x501),{...textDocumentPosition(_0x56ccfb),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x16dde5){return await _0x732c33['sendRequest']('textDocument/hover',textDocumentPosition(_0x16dde5))??null;},async 'documentSymbol'(_0xd95d49){const _0x339bbe={_0x570868:0x13e,_0x2d134c:0x18f};function _0x29833e(_0x59d80c,_0x867291,_0x1a7c8a,_0x493559){return _0x5218ae(_0x59d80c-_0x339bbe._0x570868,_0x493559,_0x1a7c8a-_0x339bbe._0x2d134c,_0x59d80c- -0x67);}function _0x395399(_0x39357c,_0x3ebbbf,_0x258601,_0x3bb94c){return _0x5218ae(_0x39357c-0x67,_0x3bb94c,_0x258601-_0x5c3ab7._0x4fddb0,_0x3ebbbf-_0x5c3ab7._0x1e9f38);}return await _0x732c33[_0x395399(0x574,0x5b4,0x6da,_0x489363._0x210d44)](_0x395399(0x5ec,0x74d,0x706,0x798),{'textDocument':{'uri':uriForPath(_0xd95d49)}})??[];},async 'workspaceSymbol'(_0x5acc72){const _0x2b4094={_0x1e0585:0x73};function _0x424082(_0x5d83db,_0x139e2e,_0x1aee73,_0x1f7051){return _0x5218ae(_0x5d83db-0x1d7,_0x5d83db,_0x1aee73-0x6c,_0x1f7051- -0x15b);}function _0x5c3cec(_0x38c1d7,_0x20479a,_0x2f1256,_0xf60732){return _0x5218ae(_0x38c1d7-_0x2b4094._0x1e0585,_0xf60732,_0x2f1256-0x16f,_0x2f1256- -0x29);}return await _0x732c33[_0x5c3cec(_0x81219a._0x7d7402,_0x81219a._0x5e693e,_0x81219a._0x1abb8a,_0x81219a._0x5c15f3)](_0x5c3cec(0x4d1,0x452,0x447,0x417),{'query':_0x5acc72})??[];},async 'implementation'(_0x52b544){function _0x3d5fb4(_0x22960e,_0x1c28c2,_0x28f070,_0x38d40e){return _0x5ba6a1(_0x28f070- -0x8,_0x1c28c2-0x157,_0x28f070-0xb9,_0x38d40e);}return normalizeLocations(await _0x732c33['sendRequest'](_0x3d5fb4(0x1a,-_0x5530c2._0x989fe6,0x7e,0x85),textDocumentPosition(_0x52b544)));},async 'prepareCallHierarchy'(_0x54b020){function _0x2f4198(_0x2d27af,_0x3d2a07,_0x18bba1,_0x81781e){return _0x5218ae(_0x2d27af-0x157,_0x18bba1,_0x18bba1-_0x51f94e._0x3bd96b,_0x2d27af- -_0x51f94e._0x4bf24e);}return await _0x732c33['sendRequest'](_0x2f4198(_0x1a74a1._0x1520ca,0x2c2,_0x1a74a1._0x357476,0x323),textDocumentPosition(_0x54b020))??[];},async 'incomingCalls'(_0x3cfff4){const _0x2f2321={_0x127df0:0xf7,_0x5c1635:0x129};function _0x48f477(_0x117555,_0x1ad2a0,_0x112871,_0x230981){return _0x5ba6a1(_0x112871-0x101,_0x1ad2a0-0x13e,_0x112871-0x153,_0x230981);}function _0x1d37c3(_0x3de279,_0x27698b,_0x109ef7,_0x335d4e){return _0x5218ae(_0x3de279-_0x2f2321._0x127df0,_0x109ef7,_0x109ef7-_0x2f2321._0x5c1635,_0x3de279- -0x8a);}return await _0x732c33[_0x1d37c3(_0x1a8e9f._0x5b9c27,_0x1a8e9f._0xba91ea,0x2eb,_0x1a8e9f._0x41ba72)](_0x48f477(-_0x1a8e9f._0x11ae08,0x3d,_0x1a8e9f._0x3b580a,_0x1a8e9f._0x2b199e),{'item':_0x3cfff4})??[];},async 'outgoingCalls'(_0x10dbfe){const _0x2539a8={_0x4ef4b9:0x1d,_0x456552:0x1bd};function _0x4a27f8(_0x707f31,_0x25587d,_0x5788a8,_0x58a7d1){return _0x5218ae(_0x707f31-0x80,_0x58a7d1,_0x5788a8-_0x41005b._0x1a6c01,_0x5788a8- -_0x41005b._0xb9707e);}function _0x5dd69c(_0x2554bc,_0x54a428,_0x77ba6a,_0x368778){return _0x5218ae(_0x2554bc-_0x2539a8._0x4ef4b9,_0x2554bc,_0x77ba6a-0x88,_0x368778-_0x2539a8._0x456552);}return await _0x732c33[_0x4a27f8(-0x10,0xd4,_0x295025._0x33e3a3,-0x2d)](_0x5dd69c(_0x295025._0x3ba5de,0x36f,0x5f6,0x4d4),{'item':_0x10dbfe})??[];}},'waitForDiagnostics'({path:_0x238cc6,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){function _0xa74b40(_0x2141f9,_0x1ec2a9,_0x200be3,_0x274f49){return _0x5218ae(_0x2141f9-0x31,_0x200be3,_0x200be3-0x141,_0x1ec2a9-0x2f);}const _0x27fa70=uriForPath(_0x238cc6);function _0x4a0962(_0x32ecbe,_0xdea11f,_0x38be4f,_0x52a3ee){return _0x5218ae(_0x32ecbe-_0x40e238._0x4ec769,_0xdea11f,_0x38be4f-_0x40e238._0x5eff7a,_0x52a3ee- -_0x40e238._0x345fc4);}if(_0x4602f6[_0xa74b40(0x358,0x3f7,_0x2c493c._0x49e052,0x2bc)](_0x27fa70))return Promise[_0xa74b40(_0x2c493c._0x13f432,_0x2c493c._0x5c1571,_0x2c493c._0x206c41,_0x2c493c._0x48475e)]();return new Promise(_0x1f5bfe=>{const _0x34a34f={_0x5d631a:0x122,_0x5cad96:0x1d5},_0x28057b={_0x78451f:0x11c},_0x20b898={_0x9bfbcb:0x302,_0xa2241d:0x567,_0x4f5316:0x4a2,_0x3e8c4a:0x3ed,_0x38c75c:0x386,_0x14df23:0x211},_0x2e1a6b=setTimeout(()=>{function _0x4b8207(_0x251e26,_0xd5ed12,_0x136a2,_0x2fa5b6){return _0x3bdd(_0x136a2-0x2f,_0x2fa5b6);}const _0x5d607a=_0x526a57[_0x4b8207(_0x20b898._0x9bfbcb,_0x20b898._0xa2241d,0x479,_0x20b898._0x4f5316)](_0x27fa70);function _0x138528(_0x2e9e55,_0x5c68b6,_0x3a86d2,_0x524951){return _0x3bdd(_0x2e9e55-0x2ef,_0x3a86d2);}_0x5d607a?.[_0x4b8207(0x223,0x1b0,0x2e8,_0x20b898._0x3e8c4a)](_0x2dfd06);if(_0x5d607a?.[_0x4b8207(_0x20b898._0x38c75c,0x2ba,_0x20b898._0x14df23,0x333)]===0x0)_0x526a57[_0x4b8207(0x2ba,0x437,0x2e8,0x3ab)](_0x27fa70);_0x1f5bfe();},timeoutMs),_0x2dfd06=()=>{clearTimeout(_0x2e1a6b),_0x1f5bfe();};function _0x2fa820(_0x5ef526,_0x400847,_0x47ec2d,_0x370449){return _0xa74b40(_0x5ef526-_0x28057b._0x78451f,_0x5ef526- -0x9a,_0x400847,_0x370449-0x146);}function _0x23e6d8(_0x3d63a1,_0x3390eb,_0x547c7c,_0x31e7af){return _0x4a0962(_0x3d63a1-0xcb,_0x3390eb,_0x547c7c-_0x34a34f._0x5d631a,_0x3d63a1-_0x34a34f._0x5cad96);}const _0x4f4912=_0x526a57[_0x2fa820(0x3e8,0x2d7,0x31f,_0x5587d4._0x312ed0)](_0x27fa70)??new Set();_0x4f4912[_0x2fa820(_0x5587d4._0x13c0fb,_0x5587d4._0x2dd1d3,_0x5587d4._0x269f94,0x37c)](_0x2dfd06),_0x526a57[_0x2fa820(_0x5587d4._0x4f6189,_0x5587d4._0x41bd90,_0x5587d4._0x4c0333,_0x5587d4._0x483bdc)](_0x27fa70,_0x4f4912);});},async 'shutdown'(){const _0x3a9349={_0x2aa3ca:0x187};function _0x3b885e(_0x1a0487,_0x26168d,_0x2b595b,_0x5ea71a){return _0x5218ae(_0x1a0487-0x53,_0x1a0487,_0x2b595b-_0x3a9349._0x2aa3ca,_0x5ea71a- -0x35e);}if(_0x531dbd)return;_0x531dbd=!![];function _0x40e10c(_0x777747,_0x488833,_0x5d50c9,_0x158241){return _0x5218ae(_0x777747-0x13,_0x777747,_0x5d50c9-_0x34ebcc._0x4be6c9,_0x488833- -0x33b);}try{await _0x732c33[_0x3b885e(-_0x4110fb._0x3d2c33,0x76,_0x4110fb._0x169e22,-_0x4110fb._0x5ba104)](_0x40e10c(_0x4110fb._0x704ccc,0x127,0x91,0x219),null),_0x732c33[_0x40e10c(-_0x4110fb._0x380e18,0x93,_0x4110fb._0x44a95f,-0xae)](_0x40e10c(_0x4110fb._0x27de8a,_0x4110fb._0x262d86,-0x27,_0x4110fb._0x3be07c));}catch{}finally{_0x732c33['dispose'](),_0x57e64a[_0x40e10c(-0x44,_0x4110fb._0x131d8f,-_0x4110fb._0x45710c,0xab)][_0x3b885e(-0x52,_0x4110fb._0x5e00a2,-_0x4110fb._0x37ad2f,_0x4110fb._0x1fd320)]['kill']();}}};return _0x5b1cc6;}import{spawn as _0x33fb2}from'child_process';import{access as _0x5a46d6}from'fs/promises';import _0x18404d from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x251ef4 from'os';import _0x1c9354 from'path';import _0x4a1fd2 from'which';var installPromises=new Map();function sanitizePackageName(_0x1e58db){const _0x660a5a={_0x69b99f:0x616,_0x206f7a:0x61c},_0x2851b4={_0x27cc78:0xda,_0x556d6f:0x35};function _0x46650a(_0x87430e,_0xa99a07,_0x5bb71e,_0xe022ae){return _0x55c88d(_0x87430e-_0x2851b4._0x27cc78,_0xa99a07-0x2a0,_0x87430e,_0xe022ae-_0x2851b4._0x556d6f);}return _0x1e58db[_0x46650a(_0x660a5a._0x69b99f,_0x660a5a._0x206f7a,0x5a3,0x4cc)](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0x83bb40){const _0x4c6e21={_0x55690a:0xa7,_0x567967:0xd2,_0x73e474:0xca,_0x43853b:0x4cd},_0x4e53a7={_0xad0270:0xf7,_0x4d5203:0x3f1,_0x481203:0x5},_0x7dbe75={_0x12afb9:0x38};function _0x290570(_0x3886eb,_0x22a44a,_0x5a2276,_0xbabd40){return _0x55c88d(_0x3886eb-_0x7dbe75._0x12afb9,_0x22a44a- -0x1b0,_0x3886eb,_0xbabd40-0x99);}function _0xb6f1c2(_0x4a1f04,_0x21b65c,_0x4ca509,_0x9491bb){return _0x55c88d(_0x4a1f04-_0x4e53a7._0xad0270,_0x4ca509- -_0x4e53a7._0x4d5203,_0x4a1f04,_0x9491bb-_0x4e53a7._0x481203);}return process['platform']===_0xb6f1c2(_0x4c6e21._0x55690a,-_0x4c6e21._0x567967,0xb3,_0x4c6e21._0x73e474)?_0x83bb40+_0x290570(_0x4c6e21._0x43853b,0x36a,0x25d,0x2e9):_0x83bb40;}async function exists(_0xbe80ff){try{return await access(_0xbe80ff),!![];}catch{return![];}}function runNpmInstall(_0x2d9824,_0x5b249a,_0x323728){const _0x265391={_0x2b009b:0x230,_0x532da2:0x568,_0x40b5dd:0x41d,_0xdb484c:0x313,_0x77ef59:0x2ce};return new Promise(_0x291aa4=>{const _0x3da084=spawn(_0x5d143a(0x335,_0x265391._0x2b009b,0x2d5,0x29a),[_0x4e4120(0x5d2,0x459,0x6e5,_0x265391._0x532da2),'--prefix',_0x2d9824,_0x5b249a],{'env':_0x323728,'stdio':_0x4e4120(0x43c,_0x265391._0x40b5dd,0x467,0x497)});_0x3da084['on'](_0x5d143a(0x285,0x214,_0x265391._0xdb484c,_0x265391._0x77ef59),()=>_0x291aa4(![]));function _0x5d143a(_0x45a801,_0x4462ae,_0x11b6dd,_0x20298b){return _0x3bdd(_0x45a801- -0x18a,_0x20298b);}function _0x4e4120(_0x10b7b1,_0x21be3b,_0x217705,_0x3f3e72){return _0x3bdd(_0x3f3e72-0xd1,_0x21be3b);}_0x3da084['on']('close',_0x98ab14=>_0x291aa4(_0x98ab14===0x0));});}function shouldDisableLspDownload(_0x16e834=process[_0x55c88d(0x3c3,0x3d9,0x4b7,0x4a1)]){const _0x2237e4={_0x2dae65:0x2cd,_0x3d1553:0x71e,_0x385045:0x18c,_0xc5ca2f:0x32e,_0x5b886e:0x2eb},_0x5a8885={_0x1c89cd:0xf0,_0x50ddd6:0x144},_0x953b92={_0x1b3944:0x5a};function _0x3cbbe8(_0xe95c5b,_0x3c6d57,_0x29b690,_0x20af5e){return _0x55c88d(_0xe95c5b-0x16c,_0xe95c5b-0x19d,_0x3c6d57,_0x20af5e-_0x953b92._0x1b3944);}const _0x1797c1=_0x16e834['NUVIN_DISABLE_LSP_DOWNLOAD']?.[_0x1bedd6(_0x2237e4._0x2dae65,0x154,0x20b,0x28b)]();function _0x1bedd6(_0x338d31,_0x598b40,_0x2e997b,_0x34504a){return _0x55c88d(_0x338d31-0xcd,_0x34504a- -_0x5a8885._0x1c89cd,_0x338d31,_0x34504a-_0x5a8885._0x50ddd6);}return _0x1797c1===_0x3cbbe8(_0x2237e4._0x3d1553,0x6ad,0x7c4,0x5bb)||_0x1797c1==='1'||_0x1797c1===_0x1bedd6(_0x2237e4._0x385045,_0x2237e4._0xc5ca2f,0x429,_0x2237e4._0x5b886e)||_0x1797c1==='on';}function getLspPackageDir(_0x2a2354){const _0x4f71e1={_0x494d34:0x3be,_0x924fcd:0x246,_0x19cc38:0x201,_0xcb30d1:0x287,_0x5ae785:0x27c,_0x1a4b3a:0x18c,_0x44b8d0:0x92,_0x37aaf5:0x1da,_0x2a8d1e:0x14b,_0x4e26f4:0x2ad},_0x527827={_0x2597df:0x135},_0x4fd0e1={_0x7cec48:0xa3,_0x308c02:0x34};function _0x10bf90(_0x3d7aac,_0xdbcf3f,_0x50ba28,_0x2d633e){return _0x55c88d(_0x3d7aac-_0x4fd0e1._0x7cec48,_0xdbcf3f- -_0x4fd0e1._0x308c02,_0x3d7aac,_0x2d633e-0x91);}function _0x37d9bc(_0x11bc6,_0x210623,_0x5bb9df,_0x5bf3b6){return _0x55c88d(_0x11bc6-_0x527827._0x2597df,_0x5bb9df- -0x45a,_0x5bf3b6,_0x5bf3b6-0x75);}return _0x1c9354[_0x10bf90(0x2b0,_0x4f71e1._0x494d34,_0x4f71e1._0x924fcd,0x4a1)](_0x251ef4[_0x37d9bc(_0x4f71e1._0x19cc38,0x176,0x10c,0x211)](),_0x10bf90(0x3a9,_0x4f71e1._0xcb30d1,_0x4f71e1._0x5ae785,_0x4f71e1._0x1a4b3a),'lsp',_0x37d9bc(-_0x4f71e1._0x44b8d0,-_0x4f71e1._0x37aaf5,-_0x4f71e1._0x2a8d1e,-_0x4f71e1._0x4e26f4),sanitizePackageName(_0x2a2354));}function getLspBinDir(_0x1c7730){const _0xdee653={_0x261248:0x1d6,_0x5b40e2:0x21d},_0x1dcea0={_0x27aab0:0x1cc,_0x27033b:0x1df};function _0x299d05(_0x380a00,_0x547afe,_0x2a7a83,_0x38855c){return _0x1e45aa(_0x380a00-_0x1dcea0._0x27aab0,_0x547afe-_0x1dcea0._0x27033b,_0x547afe- -0x725,_0x38855c);}function _0x3144ca(_0x48f886,_0x35b693,_0x1d5e6b,_0x1f04d2){return _0x55c88d(_0x48f886-0x1e4,_0x48f886- -0x2d2,_0x35b693,_0x1f04d2-0x169);}return _0x1c9354['join'](getLspPackageDir(_0x1c7730),_0x299d05(-0x86,-0x87,-0x1f5,-_0xdee653._0x261248),_0x3144ca(0x1d1,_0xdee653._0x5b40e2,0x15e,0xe3));}async function findPackageBinary(_0x4e07da,_0x36ee10){const _0x17e90b={_0x453b49:0x4d4,_0x1a048e:0x69c,_0x10e09b:0x3cd,_0x4c34ff:0x604,_0x4946e8:0x621,_0x8ca77f:0x662,_0x56f903:0x78e,_0x8ed745:0x49f,_0x35f9c1:0x606},_0x55faae={_0x3688b6:0x56},_0x47d637={_0x2d6614:0xa4};function _0x5e16ca(_0x5580d7,_0x4ad951,_0x4a6032,_0x5a11fb){return _0x55c88d(_0x5580d7-_0x47d637._0x2d6614,_0x4ad951-0x11a,_0x5a11fb,_0x5a11fb-0x32);}let _0x5cc5b9=_0x1c9354[_0x2279c6(0x464,0x5a6,_0x17e90b._0x453b49,_0x17e90b._0x1a048e)](_0x36ee10);function _0x2279c6(_0x3ba9bf,_0x1b7f44,_0x1e4e3f,_0x4cedcd){return _0x1e45aa(_0x3ba9bf-0x174,_0x1b7f44-_0x55faae._0x3688b6,_0x1b7f44- -0xf2,_0x1e4e3f);}const _0x42de39=binaryNameForPlatform(_0x4e07da);while(!![]){const _0x54d03b=_0x1c9354[_0x5e16ca(_0x17e90b._0x10e09b,0x50c,0x53b,0x48c)](_0x5cc5b9,_0x5e16ca(0x63c,0x507,0x496,_0x17e90b._0x4c34ff),_0x2279c6(_0x17e90b._0x4946e8,_0x17e90b._0x8ca77f,0x599,_0x17e90b._0x56f903),_0x42de39);if(await exists(_0x54d03b))return _0x54d03b;const _0x56bc4b=_0x1c9354[_0x5e16ca(0x3c8,_0x17e90b._0x8ed745,_0x17e90b._0x35f9c1,0x443)](_0x5cc5b9);if(_0x56bc4b===_0x5cc5b9)return void 0x0;_0x5cc5b9=_0x56bc4b;}}async function findPathBinary(_0x3992c6,_0x29d53b){const _0x378d8b={_0x36dba5:0x298,_0x153a30:0x3b8,_0x1d5167:0x4bc,_0x58e24a:0x465,_0x9c4dac:0x3ea,_0x5c58ca:0x5d6,_0x272a05:0x5ab,_0x3f3fa9:0x6c2,_0x31b7f8:0x6de,_0x5b3c42:0x3cc,_0x3f2cec:0x445},_0x3ecaa1={_0x1af1e0:0x1c8,_0x13ebd6:0xed},_0xdb780d={_0x2317d6:0x13f,_0x5c423d:0x17a};function _0x318371(_0x551c67,_0x6497d8,_0x172b5b,_0x57382b){return _0x1e45aa(_0x551c67-_0xdb780d._0x2317d6,_0x6497d8-_0xdb780d._0x5c423d,_0x551c67- -0x2b7,_0x57382b);}const _0x197d6a=getLspBinDir(_0x29d53b);function _0x44704f(_0x46f3f1,_0x1feb2a,_0x6bba50,_0x3efc18){return _0x55c88d(_0x46f3f1-_0x3ecaa1._0x1af1e0,_0x6bba50- -0x21,_0x3efc18,_0x3efc18-_0x3ecaa1._0x13ebd6);}const _0x39fed5=[_0x197d6a,process[_0x44704f(_0x378d8b._0x36dba5,0x34a,_0x378d8b._0x153a30,0x3bb)][_0x318371(_0x378d8b._0x1d5167,_0x378d8b._0x58e24a,_0x378d8b._0x9c4dac,_0x378d8b._0x5c58ca)]][_0x318371(_0x378d8b._0x272a05,_0x378d8b._0x3f3fa9,_0x378d8b._0x31b7f8,0x4f4)](Boolean)[_0x44704f(0x3fa,_0x378d8b._0x5b3c42,0x3d1,0x2b0)](_0x1c9354[_0x44704f(0x441,0x43b,_0x378d8b._0x3f2cec,0x32c)]);try{return await _0x4a1fd2(_0x3992c6,{'path':_0x39fed5});}catch{return void 0x0;}}async function resolvePackageBinary(_0x55c5de){const _0x13e7e7={_0x9f3e5c:0x409,_0x200fc5:0x2cd,_0x111287:0x679,_0x1ddb8c:0x443,_0x16e7ef:0x5cd,_0x9de5e8:0x3f5,_0x467192:0x2f2,_0x46c050:0x5e8,_0x2e6c55:0x45d,_0x2fcbbe:0x4e8,_0x238288:0x521,_0x4608fc:0x53f,_0x3c8e61:0x52d},_0x3580be={_0x1d4a0b:0x8a0,_0x3656b9:0x716,_0x39ac3b:0x664,_0x4b748e:0x74f},_0x4213ea={_0x375985:0x513,_0x576bdc:0x14d,_0x30bc18:0x1ea},_0x582d90={_0x4110f0:0x6b,_0x13c3ee:0x5a},_0x5c2856={_0xc3b421:0x46,_0x516cc5:0x2b,_0x57148f:0x13e};function _0x2a46db(_0x42b75b,_0x5294dc,_0x278343,_0x1ab884){return _0x55c88d(_0x42b75b-0x48,_0x42b75b- -0x2a1,_0x1ab884,_0x1ab884-0x18);}const _0x3ce94d=_0x55c5de['binaryName']??_0x55c5de[_0x2a46db(0x2c7,0x401,0x287,_0x13e7e7._0x9f3e5c)];function _0x27bac4(_0x37fef9,_0x54c2c3,_0x228169,_0x5ad4d0){return _0x1e45aa(_0x37fef9-_0x5c2856._0xc3b421,_0x54c2c3-_0x5c2856._0x516cc5,_0x228169- -_0x5c2856._0x57148f,_0x5ad4d0);}const _0xfc31e7=await findPackageBinary(_0x3ce94d,_0x55c5de[_0x2a46db(_0x13e7e7._0x200fc5,0x3da,0x24e,0x2d9)]);if(_0xfc31e7)return _0xfc31e7;const _0x45bf4e=await findPathBinary(_0x3ce94d,_0x55c5de['packageName']);if(_0x45bf4e)return _0x45bf4e;const _0x49a5cb=_0x55c5de[_0x27bac4(0x5fa,_0x13e7e7._0x111287,0x54c,0x666)]??process[_0x27bac4(_0x13e7e7._0x1ddb8c,_0x13e7e7._0x16e7ef,0x54c,0x429)];if(shouldDisableLspDownload(_0x49a5cb))return void 0x0;const _0x569b3a=getLspPackageDir(_0x55c5de[_0x2a46db(0x2c7,_0x13e7e7._0x9de5e8,0x182,_0x13e7e7._0x467192)]),_0x5114bb=_0x55c5de[_0x27bac4(0x5b1,0x7e8,0x6db,_0x13e7e7._0x46c050)]+':'+_0x3ce94d;let _0x564dc2=installPromises['get'](_0x5114bb);!_0x564dc2&&(_0x564dc2=((async()=>{await mkdir(_0x569b3a,{'recursive':!![]});const _0x74a6fd=await runNpmInstall(_0x569b3a,_0x55c5de[_0x4064d6(_0x3580be._0x1d4a0b,0x7da,0x793,0x65c)],_0x49a5cb);function _0x57fdf3(_0x2f3ed0,_0x5eb417,_0x373a79,_0x3bb67d){return _0x2a46db(_0x373a79-_0x582d90._0x4110f0,_0x5eb417-0x17,_0x373a79-_0x582d90._0x13c3ee,_0x2f3ed0);}if(!_0x74a6fd)return void 0x0;const _0x34052b=_0x1c9354[_0x4064d6(_0x3580be._0x3656b9,_0x3580be._0x39ac3b,0x78b,_0x3580be._0x4b748e)](getLspBinDir(_0x55c5de['packageName']),binaryNameForPlatform(_0x3ce94d));function _0x4064d6(_0xdc03cf,_0x1b430e,_0x1687b1,_0xc1f231){return _0x2a46db(_0x1b430e-_0x4213ea._0x375985,_0x1b430e-_0x4213ea._0x576bdc,_0x1687b1-_0x4213ea._0x30bc18,_0xc1f231);}return await exists(_0x34052b)?_0x34052b:void 0x0;})()),installPromises[_0x27bac4(_0x13e7e7._0x2e6c55,0x607,_0x13e7e7._0x2fcbbe,_0x13e7e7._0x238288)](_0x5114bb,_0x564dc2));try{return await _0x564dc2;}catch{return void 0x0;}finally{installPromises[_0x27bac4(_0x13e7e7._0x4608fc,_0x13e7e7._0x3c8e61,0x514,0x4a6)](_0x5114bb);}}var TYPESCRIPT_EXTENSIONS=[_0x1e45aa(0x6a6,0x891,0x76e,0x761),_0x1e45aa(0x5f2,0x6bd,0x5a5,0x6d0),_0x1e45aa(0x740,0x67c,0x600,0x672),'.jsx',_0x55c88d(0x334,0x2fd,0x251,0x3bb),_0x1e45aa(0x6d2,0x514,0x5b8,0x62a),_0x55c88d(0x3a8,0x4d4,0x5f5,0x4fa),'.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x1e45aa(0x5eb,0x80d,0x722,0x625)],TYPESCRIPT_ROOT_MARKERS=[_0x55c88d(0x239,0x2e5,0x187,0x255),_0x1e45aa(0x5e4,0x70c,0x5cb,0x658),_0x1e45aa(0x72f,0x85d,0x782,0x7f6),_0x1e45aa(0x519,0x63c,0x5a3,0x4d6),_0x1e45aa(0x884,0x7d4,0x7d5,0x6d8),_0x1e45aa(0x44a,0x693,0x578,0x6f5),'jsconfig.json',_0x55c88d(0x63e,0x53c,0x682,0x4a8)],BIOME_ROOT_MARKERS=[_0x55c88d(0x3fc,0x2e0,0x33c,0x16e),_0x1e45aa(0x6b8,0x580,0x6e6,0x85d),_0x1e45aa(0x6ea,0x5cb,0x596,0x47e),_0x1e45aa(0x5e5,0x51b,0x5cb,0x63d),_0x55c88d(0x4bc,0x4d1,0x53d,0x35d),_0x1e45aa(0x727,0x54f,0x5a3,0x497),'yarn.lock',_0x1e45aa(0x852,0x7d8,0x7ed,0x848)];async function exists2(_0x34980e){try{return await _0x5a46d6(_0x34980e),!![];}catch{return![];}}async function findUp(_0x92d2e5,_0x3d872e){const _0x55dd55={_0x5ae662:0x659,_0x21102a:0x55c,_0x4213f4:0x400},_0x307ebd={_0x258d13:0x19d},_0x37dbcc={_0x383692:0x168,_0x163bd6:0xf6};function _0x92fe26(_0x182963,_0x3f53cd,_0xfddfe7,_0x520456){return _0x1e45aa(_0x182963-_0x37dbcc._0x383692,_0x3f53cd-_0x37dbcc._0x163bd6,_0x182963- -0x46a,_0x3f53cd);}let _0x253b77=_0x18404d['resolve'](_0x92d2e5);const _0x35b9c1=_0x18404d[_0xc0f99b(0x5d2,0x629,0x4f7,_0x55dd55._0x5ae662)](_0x253b77);if(_0x35b9c1)_0x253b77=_0x18404d[_0xc0f99b(0x391,0x4ec,0x3a0,0x450)](_0x253b77);function _0xc0f99b(_0x9caa21,_0x165de7,_0x2aa323,_0x3e62a0){return _0x55c88d(_0x9caa21-_0x307ebd._0x258d13,_0x3e62a0-0xcb,_0x165de7,_0x3e62a0-0x158);}while(!![]){for(const _0xddd28d of _0x3d872e){if(await exists2(_0x18404d[_0xc0f99b(0x597,0x610,0x4fb,0x4bd)](_0x253b77,_0xddd28d)))return _0x253b77;}const _0x4aab77=_0x18404d[_0xc0f99b(_0x55dd55._0x21102a,0x525,_0x55dd55._0x4213f4,0x450)](_0x253b77);if(_0x4aab77===_0x253b77)return void 0x0;_0x253b77=_0x4aab77;}}async function hasDenoRoot(_0x5988d1){const _0x34abd0={_0x4e9c5a:0x1f5,_0x438c46:0x214,_0x25f95a:0xc4,_0x11cb9c:0xaa,_0x541b76:0x4fa,_0x4a48d8:0x51a,_0x211bb0:0x230},_0x548cd8={_0xd70e7:0x51},_0x3c6f7b={_0x1d2d95:0x148};function _0x14a7e8(_0x35d8ce,_0x170360,_0x3e498c,_0x38a3ea){return _0x55c88d(_0x35d8ce-_0x3c6f7b._0x1d2d95,_0x3e498c- -0x32e,_0x170360,_0x38a3ea-0x9c);}function _0x351746(_0x1102e3,_0x19911f,_0xc71a3c,_0x11c2d2){return _0x55c88d(_0x1102e3-_0x548cd8._0xd70e7,_0x1102e3- -0x4c,_0x19911f,_0x11c2d2-0x151);}return await exists2(_0x18404d[_0x14a7e8(_0x34abd0._0x4e9c5a,_0x34abd0._0x438c46,_0x34abd0._0x25f95a,-_0x34abd0._0x11cb9c)](_0x5988d1,_0x351746(_0x34abd0._0x541b76,_0x34abd0._0x4a48d8,0x5c7,0x617)))||await exists2(_0x18404d['join'](_0x5988d1,_0x14a7e8(0x1ec,0x220,_0x34abd0._0x211bb0,0x296)));}async function resolveTsserverPath(_0x4945f8){const _0x297beb={_0xd57036:0x269,_0x410148:0x281,_0x33f297:0x3d9,_0x5743ec:0x2fe,_0x2aad21:0x6b5,_0x3aa364:0x603,_0x28b19d:0x683,_0xdbd0fb:0x64d,_0x27f121:0x539,_0x54121d:0x538,_0x2eb61d:0x30b,_0x33e4e6:0x42c,_0x53adb6:0x3bd,_0xad28f0:0x310,_0x2dde18:0x3bc,_0x4eee84:0x3bd,_0x92a54:0x34a,_0x4e12bf:0x6ce},_0x5676f8={_0x2722b8:0x46},_0x2c2e86={_0x3d1719:0x14,_0x1e8eed:0x25};let _0x3f4404=_0x18404d[_0x1a10ba(0x3c2,0x2ac,_0x297beb._0xd57036,_0x297beb._0x410148)](_0x4945f8);while(!![]){const _0x2fa852=_0x18404d[_0x1a10ba(0x3cd,0x36a,0x53e,0x438)](_0x3f4404,_0x1a10ba(0x3c8,_0x297beb._0x33f297,0x29f,_0x297beb._0x5743ec),_0x5879b5(_0x297beb._0x2aad21,_0x297beb._0x3aa364,_0x297beb._0x28b19d,_0x297beb._0xdbd0fb),'lib','tsserver.js');if(await exists2(_0x2fa852))return _0x2fa852;const _0x2174fa=_0x18404d[_0x5879b5(_0x297beb._0x27f121,0x6cd,0x675,0x5f0)](_0x3f4404);if(_0x2174fa===_0x3f4404)break;_0x3f4404=_0x2174fa;}const _0x590bb6=getLspPackageDir(_0x1a10ba(0x3bd,_0x297beb._0x54121d,_0x297beb._0x2eb61d,_0x297beb._0x33e4e6)),_0x48ca76=await resolvePackageBinary({'packageName':_0x1a10ba(_0x297beb._0x53adb6,0x378,0x238,0x3e4),'binaryName':_0x1a10ba(_0x297beb._0xad28f0,0x193,_0x297beb._0x2dde18,0x1cd),'startDir':_0x4945f8});if(!_0x48ca76)return void 0x0;function _0x1a10ba(_0xc98551,_0x8d7f2b,_0x2155dc,_0x3267ec){return _0x55c88d(_0xc98551-_0x2c2e86._0x3d1719,_0xc98551- -_0x2c2e86._0x1e8eed,_0x8d7f2b,_0x3267ec-0x199);}const _0x29a867=_0x18404d['join'](_0x590bb6,_0x1a10ba(0x3c8,0x514,0x4fc,0x47d),_0x1a10ba(_0x297beb._0x4eee84,0x292,_0x297beb._0x92a54,0x257),'lib',_0x5879b5(0x491,0x59d,_0x297beb._0x4e12bf,0x5d0));function _0x5879b5(_0x377306,_0x580dc2,_0x486754,_0xf7a5f3){return _0x1e45aa(_0x377306-0x49,_0x580dc2-0x1f1,_0xf7a5f3- -_0x5676f8._0x2722b8,_0x486754);}return await exists2(_0x29a867)?_0x29a867:void 0x0;}var TypeScriptServer={'id':'typescript','name':_0x55c88d(0x63d,0x586,0x505,0x591),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x4e74ee){const _0x52cc62=await findUp(_0x4e74ee,TYPESCRIPT_ROOT_MARKERS);if(!_0x52cc62)return void 0x0;return await hasDenoRoot(_0x52cc62)?void 0x0:_0x52cc62;},async 'spawn'(_0x41ecc1){const _0xb35c47={_0x5073ba:0x349,_0x479a9d:0x292,_0x397fd:0x28f},_0x5a0721={_0x43709d:0x5b,_0x2f0fc5:0x1fd,_0x4bc99e:0x11},_0x1dab8e=await resolveTsserverPath(_0x41ecc1);function _0x534967(_0x50f8df,_0x252734,_0x9a2e99,_0x3c57fb){return _0x55c88d(_0x50f8df-_0x5a0721._0x43709d,_0x9a2e99- -_0x5a0721._0x2f0fc5,_0x3c57fb,_0x3c57fb-_0x5a0721._0x4bc99e);}if(!_0x1dab8e)return void 0x0;function _0x21abd6(_0x5c8fa4,_0x32b3e6,_0x294dc8,_0x918f6a){return _0x1e45aa(_0x5c8fa4-0x4b,_0x32b3e6-0x1a0,_0x32b3e6- -0x5d1,_0x5c8fa4);}const _0x33477b=await resolvePackageBinary({'packageName':_0x534967(0x2f7,_0xb35c47._0x5073ba,0x354,0x3cb),'binaryName':'typescript-language-server','startDir':_0x41ecc1});if(!_0x33477b)return void 0x0;return{'process':_0x33fb2(_0x33477b,['--stdio'],{'cwd':_0x41ecc1,'stdio':_0x21abd6(0x315,_0xb35c47._0x479a9d,_0xb35c47._0x397fd,0x370)}),'initialization':{'tsserver':{'path':_0x1dab8e}}};}},BiomeServer={'id':_0x1e45aa(0x6fd,0x5cc,0x6fa,0x714),'name':_0x55c88d(0x40c,0x523,0x43a,0x463),'extensions':BIOME_EXTENSIONS,async 'root'(_0x35fcbe){return findUp(_0x35fcbe,BIOME_ROOT_MARKERS);},async 'spawn'(_0x59cb9a){const _0x2b2940={_0x348b6:0x26f,_0x5e7daa:0x256,_0x36878f:0x406,_0x21af40:0x357,_0x226b23:0x227,_0x249807:0x736,_0xf086f2:0x7df},_0x30adb7={_0x4d6666:0x1d3,_0x3324ad:0x1f},_0x183e5c={_0x3fc278:0x22d,_0x4278c1:0x1c1};function _0x4b8680(_0x363d5e,_0x145aeb,_0x1ad41e,_0x5f921f){return _0x55c88d(_0x363d5e-0x123,_0x5f921f-_0x183e5c._0x3fc278,_0x363d5e,_0x5f921f-_0x183e5c._0x4278c1);}const _0x1fb2cd=await findPackageBinary(_0x16ba06(0xe4,0x1b3,_0x2b2940._0x348b6,_0x2b2940._0x5e7daa),_0x59cb9a)??await resolvePackageBinary({'packageName':_0x16ba06(0x4c3,_0x2b2940._0x36878f,0x31b,_0x2b2940._0x21af40),'binaryName':'biome','startDir':_0x59cb9a});if(!_0x1fb2cd)return void 0x0;function _0x16ba06(_0x1ab4c8,_0x233438,_0xeda916,_0x6825cd){return _0x1e45aa(_0x1ab4c8-_0x30adb7._0x4d6666,_0x233438-_0x30adb7._0x3324ad,_0x6825cd- -0x4a4,_0x1ab4c8);}return{'process':_0x33fb2(_0x1fb2cd,['lsp-proxy',_0x16ba06(0x239,0x36c,_0x2b2940._0x226b23,0x341)],{'cwd':_0x59cb9a,'stdio':_0x4b8680(_0x2b2940._0x249807,0x92c,0x7fc,_0x2b2940._0xf086f2)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x40f540){const _0x2caaff={_0x326b1d:0x6f,_0x443eca:0x12f},_0x26b9fc=_0x18404d['extname'](_0x40f540)['toLowerCase']();function _0x5d7bcb(_0x28695f,_0x3271b8,_0x3c6faf,_0x2919cf){return _0x55c88d(_0x28695f-0x1a8,_0x3271b8- -_0x2caaff._0x326b1d,_0x3c6faf,_0x2919cf-_0x2caaff._0x443eca);}return BUILTIN_LSP_SERVERS['filter'](_0x2d78f0=>_0x2d78f0[_0x5d7bcb(0x442,0x485,0x3db,0x3ad)]['includes'](_0x26b9fc));}function stateKey(_0x475a26,_0x20f4db){return _0x20f4db+':'+_0x475a26['id'];}function diagnosticsKeyToPath(_0x453859){const _0x53ff30={_0x25ea98:0x214,_0x282359:0x2b9,_0x4a6ec5:0xf6},_0x2ed700={_0x50993d:0xf4,_0x100970:0x3f2};function _0x3cbec6(_0x4fc69a,_0x45ca69,_0xa7b348,_0x5ed5fb){return _0x1e45aa(_0x4fc69a-_0x2ed700._0x50993d,_0x45ca69-0x16,_0x4fc69a- -_0x2ed700._0x100970,_0xa7b348);}if(!_0x453859[_0x3cbec6(0x181,_0x53ff30._0x25ea98,_0x53ff30._0x282359,_0x53ff30._0x4a6ec5)]('file://'))return _0x453859;return fileURLToPath(_0x453859);}function nextFileVersion(_0x585bb9,_0x1872ba){const _0xc9aa00={_0x3e842b:0x835,_0x153bc6:0x6bb,_0x4b2eb0:0x5bb,_0x3fb44f:0x5fa,_0x399555:0x760,_0x552055:0x70c,_0x29b2a7:0x597},_0x55ac35={_0x5a3e3a:0x27,_0x28b377:0xf0},_0x26dbdd={_0x1c139f:0x117,_0x4dcec7:0x189},_0x5d4955=(_0x585bb9['fileVersions'][_0x2aa737(_0xc9aa00._0x3e842b,_0xc9aa00._0x153bc6,_0xc9aa00._0x4b2eb0,_0xc9aa00._0x3fb44f)](_0x1872ba)??0x1)+0x1;_0x585bb9[_0x2aa737(_0xc9aa00._0x399555,0x623,_0xc9aa00._0x552055,_0xc9aa00._0x29b2a7)]['set'](_0x1872ba,_0x5d4955);function _0x2aa737(_0x42f2b9,_0x403a6c,_0x47c1b4,_0x45c3bc){return _0x55c88d(_0x42f2b9-_0x26dbdd._0x1c139f,_0x403a6c-_0x26dbdd._0x4dcec7,_0x47c1b4,_0x45c3bc-0x166);}function _0x42f5ac(_0x3b15d8,_0x77bc7d,_0x21cf3d,_0x345c8c){return _0x55c88d(_0x3b15d8-0xca,_0x3b15d8- -_0x55ac35._0x5a3e3a,_0x345c8c,_0x345c8c-_0x55ac35._0x28b377);}return _0x5d4955;}async function collectClientResults(_0x3025ae){const _0x2e7c59={_0x2b2112:0x6af,_0x4a982f:0x545,_0x47df73:0xe0,_0x499b52:0x5c};function _0x55ea1b(_0x1b36a0,_0x49dd33,_0x753c1b,_0x24c8df){return _0x55c88d(_0x1b36a0-0x1ca,_0x753c1b- -0x3a5,_0x49dd33,_0x24c8df-0x58);}function _0x5f160a(_0x2b4129,_0x21e7c5,_0xb4d4c8,_0x163920){return _0x55c88d(_0x2b4129-0x1ae,_0x21e7c5-0x16d,_0xb4d4c8,_0x163920-0x136);}const _0x4450a9=await Promise[_0x5f160a(_0x2e7c59._0x2b2112,_0x2e7c59._0x4a982f,0x5db,0x4d5)](_0x3025ae);return _0x4450a9[_0x55ea1b(-_0x2e7c59._0x47df73,0x118,-_0x2e7c59._0x499b52,-0x173)](_0x3c31f8=>_0x3c31f8[_0x5f160a(0x86b,0x71a,0x687,0x850)]==='fulfilled'?_0x3c31f8[_0x5f160a(0x640,0x693,0x786,0x59f)]:[]);}function createLspService(_0x2b5ed3={}){const _0x534f25={_0x5d7182:0x104,_0x33e7fc:0x32,_0x3e4440:0x48},_0x6980a6={_0x417fc6:0x4ea,_0x25f0f2:0x395,_0x48f453:0x565,_0x291f66:0x579,_0x5ec7c9:0x682,_0x4430f2:0x5bc,_0x5b31f8:0x421,_0x41a95c:0x31f,_0x375bb3:0x885,_0x1c704a:0x7e8,_0x1962f1:0x654,_0x53de29:0x6fa,_0x1e9b4f:0x790,_0x27a4dc:0x58b,_0x4eaec9:0x69f,_0x5c00a3:0x5e7,_0x2ceb99:0x6c1,_0x1a380e:0x579,_0x307c29:0x65f,_0x58cbb2:0x72d,_0x266977:0x662,_0x12be63:0x64d,_0x1f900a:0x6c9,_0x4ce7be:0x726},_0x4d74d7={_0x25babd:0x3a7},_0x5ec229={_0xb08559:0x2e,_0x499354:0x9c},_0x276268={_0x4fb4c9:0x3ca},_0x591fa2={_0xac0820:0x402,_0x1a057b:0x38b,_0x157bc6:0x307},_0x5945f9={_0x1bb477:0x99},_0x2af717={_0x736f3:0x18e,_0x194a03:0x132,_0x1bdfb4:0x3f,_0x121a59:0x1ac},_0x23471={_0x16f58c:0x540,_0x36be9a:0x545},_0x455f43={_0x308f8b:0x24a,_0x2a98b8:0x196,_0x2d9457:0x17c,_0x1fbb56:0x1f8,_0x3d5f4c:0x169},_0x30f83d={_0x4096f8:0x224},_0x1cd7ef={_0x2f9de3:0x4ec,_0x2c2035:0x4c7,_0x291a7f:0x5a5},_0x1899f6={_0x6fabb2:0x14},_0x4e056e={_0x370883:0x2db},_0x17c414={_0x518ee2:0x3b4,_0x1cb05c:0x296,_0x544ddf:0x26b},_0x145b33={_0xc1d9fd:0x6b},_0x18aee7={_0x25732d:0x48a,_0x4e4b65:0x43c},_0x409a3c={_0x3e1fc9:0x82a},_0x36dede={_0x3e58b1:0x87},_0x271136={_0x492e86:0x19b},_0x1d8770={_0x561a2d:0xa6,_0x5b08ff:0x14d},_0x27fff3={_0x1fef09:0x7a},_0x177abf={_0x272ecb:0x75},_0x36ca5d={_0x3396b9:0x2d7},_0x434287={_0x841637:0x822,_0x2385e2:0x702,_0x7fbdaa:0x703,_0x44241e:0x61a,_0x28e81d:0x748,_0x2eaebc:0x6b7,_0x4f8e1e:0x67f,_0x561ce1:0xf,_0xdd2e58:0xd1},_0x6ad9a3={_0x5d488b:0x3e2,_0x5b2ce5:0x36b,_0x4514e7:0x448,_0x1550e0:0x444,_0x2f58e1:0x4ca,_0xb77ece:0x489,_0x947060:0x491,_0x4ee448:0x3b0,_0x1ebb1c:0x4ab,_0x4acf68:0xee,_0x290ca6:0xf2,_0xd321df:0x14,_0x2bac89:0x17e,_0x2521bb:0xde,_0x3d9f38:0x3a8,_0xc9c806:0x416,_0x20f9b8:0x2e7,_0xa676b5:0x31a},_0xed5f8a={_0x12eae7:0x4f7,_0x58e65d:0x405,_0x319a49:0x48b,_0x19be94:0x39,_0x28211b:0x33d,_0x48562d:0x467,_0x58253c:0x5,_0x207a29:0xed,_0x4f73b7:0x1ee,_0x276a82:0xe2,_0x213d80:0x1b,_0x36cef0:0x110,_0x3b048d:0x2a,_0x472eb0:0x45,_0x25135f:0xd8,_0x4e1c6b:0x186,_0x436a38:0x16a,_0x572b36:0x142,_0x229279:0xf8,_0x4d683c:0xe4,_0x3ac236:0x13f,_0x4b2ad5:0x8a},_0x2955be={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x22895b=()=>_0x2b5ed3['enabled']!==![];async function _0x2a786a(_0x8b4a63,_0x4284b2){const _0x65bf82={_0x11ccf2:0xbe,_0x8fd1d5:0x386},_0x319e2c={_0x622908:0xc1},_0x205b6f={_0x37b9e3:0x234},_0x226f01=stateKey(_0x8b4a63,_0x4284b2),_0x4f66c7=_0x2955be[_0xb8af48(0x405,_0x6ad9a3._0x5d488b,_0x6ad9a3._0x5b2ce5,0x4cf)][_0xb8af48(_0x6ad9a3._0x4514e7,0x395,_0x6ad9a3._0x1550e0,_0x6ad9a3._0x2f58e1)](_0x223531=>_0x223531['serverId']===_0x8b4a63['id']&&_0x223531['root']===_0x4284b2);if(_0x4f66c7)return _0x4f66c7;if(_0x2955be[_0xb8af48(_0x6ad9a3._0xb77ece,_0x6ad9a3._0x947060,_0x6ad9a3._0x4ee448,_0x6ad9a3._0x1ebb1c)][_0x15bfdd(0x18b,_0x6ad9a3._0x4acf68,0x255,_0x6ad9a3._0x290ca6)](_0x226f01))return void 0x0;function _0x15bfdd(_0x3923fb,_0x5c8484,_0x895736,_0x15cd99){return _0x3bdd(_0x3923fb- -_0x205b6f._0x37b9e3,_0x5c8484);}const _0x489de7=_0x2955be[_0x15bfdd(_0x6ad9a3._0xd321df,_0x6ad9a3._0x2bac89,_0x6ad9a3._0x2521bb,0x122)][_0xb8af48(0x3c1,_0x6ad9a3._0x3d9f38,0x4a4,0x324)](_0x226f01);if(_0x489de7)return _0x489de7;const _0x50f37f=((async()=>{function _0x336136(_0x5e8629,_0x175d38,_0x35226a,_0x29f2de){return _0x15bfdd(_0x175d38-0x1e9,_0x35226a,_0x35226a-0x1a1,_0x29f2de-_0x319e2c._0x622908);}function _0x223ba3(_0x215864,_0x4a8bee,_0x2cc78b,_0x1c733c){return _0xb8af48(_0x215864-_0x65bf82._0x11ccf2,_0x4a8bee-0x15a,_0x4a8bee- -_0x65bf82._0x8fd1d5,_0x1c733c);}try{const _0x3cb3ff=await _0x8b4a63[_0x336136(_0xed5f8a._0x12eae7,0x3a3,_0xed5f8a._0x58e65d,_0xed5f8a._0x319a49)](_0x4284b2);if(!_0x3cb3ff)return _0x2955be[_0x223ba3(0x15f,0x2a,-_0xed5f8a._0x19be94,-0x17)][_0x336136(_0xed5f8a._0x28211b,_0xed5f8a._0x48562d,0x522,0x304)](_0x226f01),void 0x0;const _0x435447=await createLspClient({'server':_0x8b4a63,'root':_0x4284b2,'handle':_0x3cb3ff}),_0x49b521=_0x2955be['clients'][_0x223ba3(0x99,0xbe,0x1df,_0xed5f8a._0x58253c)](_0x32862a=>_0x32862a['serverId']===_0x8b4a63['id']&&_0x32862a[_0x336136(0x2e2,0x439,0x492,0x3e6)]===_0x4284b2);if(_0x49b521)return await _0x435447[_0x223ba3(-0x14,0x12d,_0xed5f8a._0x207a29,_0xed5f8a._0x4f73b7)](),_0x49b521;return _0x2955be[_0x223ba3(_0xed5f8a._0x276a82,-_0xed5f8a._0x213d80,-0x180,-_0xed5f8a._0x36cef0)]['push'](_0x435447),_0x435447;}catch{return _0x2955be[_0x223ba3(0x20,_0xed5f8a._0x3b048d,_0xed5f8a._0x472eb0,0xe1)][_0x223ba3(_0xed5f8a._0x25135f,_0xed5f8a._0x4e1c6b,_0xed5f8a._0x436a38,_0xed5f8a._0x572b36)](_0x226f01),void 0x0;}finally{_0x2955be[_0x223ba3(-_0xed5f8a._0x229279,-_0xed5f8a._0x4d683c,-_0xed5f8a._0x3ac236,_0xed5f8a._0x4b2ad5)]['delete'](_0x226f01);}})());_0x2955be[_0x15bfdd(0x14,-0x11,0x1a,-0x36)][_0xb8af48(_0x6ad9a3._0xc9c806,0x332,_0x6ad9a3._0x20f9b8,_0x6ad9a3._0xa676b5)](_0x226f01,_0x50f37f);function _0xb8af48(_0x28cac7,_0x55006d,_0xc8ed05,_0x1e2dd5){return _0x3bdd(_0xc8ed05-0x5a,_0x1e2dd5);}return _0x50f37f;}async function _0x2c34b2(_0x482800,_0xfd7ae3){const _0xa26d4f={_0x479d61:0x3a6};function _0x9aab34(_0x444be3,_0x5c137a,_0x516cf1,_0x129292){return _0x3bdd(_0x516cf1- -0x319,_0x444be3);}if(!_0x22895b())return[];const _0x1e8fdf=[];function _0x2510ef(_0x58911,_0x5ce7cc,_0x420d43,_0x41d6b4){return _0x3bdd(_0x58911-_0xa26d4f._0x479d61,_0x420d43);}for(const _0x3dd7f6 of getServersForFile(_0x482800)){const _0x3ed72d=await _0x3dd7f6[_0x2510ef(0x82a,_0x434287._0x841637,0x99f,_0x434287._0x2385e2)](_0x482800);if(!_0x3ed72d)continue;const _0x4058fd=stateKey(_0x3dd7f6,_0x3ed72d);if(_0x2955be['broken'][_0x2510ef(0x765,_0x434287._0x7fbdaa,_0x434287._0x44241e,_0x434287._0x28e81d)](_0x4058fd))continue;const _0x20fcac=_0x2955be[_0x2510ef(_0x434287._0x2eaebc,0x6a0,_0x434287._0x4f8e1e,0x7a0)][_0x9aab34(-_0x434287._0x561ce1,0xc3,_0x434287._0xdd2e58,0x7)](_0xcd24ca=>_0xcd24ca['serverId']===_0x3dd7f6['id']&&_0xcd24ca[_0x2510ef(0x82a,0x944,0x864,0x7c7)]===_0x3ed72d);if(_0x20fcac){_0x1e8fdf['push'](_0x20fcac);continue;}if(!_0xfd7ae3)continue;const _0x18fa17=await _0x2a786a(_0x3dd7f6,_0x3ed72d);if(_0x18fa17)_0x1e8fdf['push'](_0x18fa17);}return _0x1e8fdf;}async function _0x3141bd(_0x425a62,_0x20b6b0=![]){const _0x5e8be8={_0x3303b9:0x82,_0x736272:0x117,_0x21af9f:0x1ad,_0xd82ad3:0x86,_0x2434c6:0x5c6,_0x474786:0x4fc,_0x3fe601:0x753,_0x401541:0x5f8,_0x21a682:0x37c,_0x12b8d4:0x2cb,_0x251b80:0x7da,_0x45d6fb:0x7f5,_0x1d9db7:0x957,_0xfbbe23:0x6d5},_0x37951b={_0x36b23b:0x108},_0x5ba9be=await _0x2c34b2(_0x425a62,!![]);function _0x407681(_0x32eb4a,_0x308845,_0x229a8a,_0x13c453){return _0x3bdd(_0x13c453- -_0x36ca5d._0x3396b9,_0x229a8a);}await Promise[_0x407681(0x118,0x208,_0x177abf._0x272ecb,0xa0)](_0x5ba9be['map'](async _0x337957=>{const _0x3cc769={_0x35d021:0x19f,_0x54455a:0x184,_0x265db3:0x6f};!_0x2955be['openFiles'][_0x1c50bb(0x157,0x12d,_0x5e8be8._0x3303b9,0x118)](_0x337957['serverId']+':'+_0x337957['root']+':'+_0x425a62)&&(await _0x337957[_0x1c50bb(_0x5e8be8._0x736272,_0x5e8be8._0x21af9f,_0x5e8be8._0xd82ad3,0xea)][_0x388f45(0x653,_0x5e8be8._0x2434c6,0x5fd,_0x5e8be8._0x474786)]({'path':_0x425a62}),_0x2955be[_0x388f45(_0x5e8be8._0x3fe601,0x69c,0x517,_0x5e8be8._0x401541)][_0x1c50bb(0x24a,_0x5e8be8._0x21a682,_0x5e8be8._0x12b8d4,0x1b4)](_0x337957['serverId']+':'+_0x337957[_0x388f45(0x874,_0x5e8be8._0x251b80,_0x5e8be8._0x45d6fb,_0x5e8be8._0x1d9db7)]+':'+_0x425a62));function _0x1c50bb(_0x35c333,_0x12f605,_0x47bd3c,_0x114040){return _0x407681(_0x35c333-_0x3cc769._0x35d021,_0x12f605-_0x3cc769._0x54455a,_0x47bd3c,_0x35c333-_0x3cc769._0x265db3);}function _0x388f45(_0x15ee56,_0x2bd4ee,_0x4e4c77,_0xfd7662){return _0x407681(_0x15ee56-0x1aa,_0x2bd4ee-_0x37951b._0x36b23b,_0xfd7662,_0x2bd4ee-0x62d);}await _0x337957[_0x388f45(0x799,_0x5e8be8._0xfbbe23,0x71c,0x858)][_0x388f45(0x6ec,0x6e8,0x7a8,0x810)]({'path':_0x425a62,'version':nextFileVersion(_0x2955be,_0x425a62)});if(_0x20b6b0)await _0x337957['waitForDiagnostics']({'path':_0x425a62});}));}async function _0x21987d(_0x43cd2a){function _0x55dfb1(_0x10b263,_0x3c5c15,_0x1bce74,_0x5011ed){return _0x3bdd(_0x10b263-0x2e2,_0x1bce74);}await _0x3141bd(_0x43cd2a[_0x1906ac(_0x1d8770._0x561a2d,0x209,0x351,_0x1d8770._0x5b08ff)],![]);function _0x1906ac(_0x23c469,_0x87ba8,_0x4212b1,_0x2a3d56){return _0x3bdd(_0x87ba8- -_0x27fff3._0x1fef09,_0x2a3d56);}return _0x2c34b2(_0x43cd2a[_0x55dfb1(0x565,0x60d,0x664,0x67a)],![]);}async function _0x5dd861(_0x5e17b3){const _0x246b9f=await _0x21987d(_0x5e17b3);function _0xd62586(_0x18e8e0,_0x4b5eff,_0x332caf,_0x58138d){return _0x3bdd(_0x332caf-_0x271136._0x492e86,_0x18e8e0);}function _0x2e6b18(_0x29533d,_0x414fb9,_0x43aed,_0x2f25fe){return _0x3bdd(_0x2f25fe-_0x36dede._0x3e58b1,_0x414fb9);}return collectClientResults(_0x246b9f['map'](_0x327b6b=>_0x327b6b[_0x2e6b18(0x279,0xf9,0x27f,0x253)][_0xd62586(0x552,0x445,0x4cc,0x507)](_0x5e17b3)));}return{'isEnabled':_0x22895b,async 'hasClients'(_0x446e09){function _0x36bdd(_0x1833aa,_0x1f94d0,_0x5ca760,_0x3e6a55){return _0x3bdd(_0x5ca760-0x273,_0x1833aa);}return(await _0x2c34b2(_0x446e09,![]))[_0x36bdd(0x626,0x572,0x6bc,_0x409a3c._0x3e1fc9)]>0x0||getServersForFile(_0x446e09)['length']>0x0;},'touchFile':_0x3141bd,async 'diagnostics'(){function _0x162dfb(_0xb7969,_0x4b1be6,_0xbac0a8,_0x5b315a){return _0x3bdd(_0xbac0a8-0x235,_0xb7969);}const _0x2830bd={};for(const _0xcddfa9 of _0x2955be['clients']){for(const [_0x1120a5,_0x5b8fd0]of _0xcddfa9[_0x162dfb(0x357,0x3cd,_0x18aee7._0x25732d,_0x18aee7._0x4e4b65)]){_0x2830bd[diagnosticsKeyToPath(_0x1120a5)]=_0x5b8fd0;}}return _0x2830bd;},async 'diagnosticsForFile'(_0x425472){await _0x3141bd(_0x425472,!![]);const _0x597b27=[];for(const _0x3b95ec of await _0x2c34b2(_0x425472,![])){for(const [_0x143299,_0x3c7926]of _0x3b95ec['diagnostics']){if(diagnosticsKeyToPath(_0x143299)===_0x425472)_0x597b27[_0x2ea5f2(0x374,_0x17c414._0x518ee2,_0x17c414._0x1cb05c,_0x17c414._0x544ddf)](..._0x3c7926);}}function _0x2ea5f2(_0x39c7c5,_0x5d65bc,_0x47e53a,_0x550d15){return _0x3bdd(_0x39c7c5-_0x145b33._0xc1d9fd,_0x5d65bc);}return _0x597b27;},async 'definition'(_0x27ecd3){function _0x3bf65a(_0x2a0f2d,_0x4166e7,_0x2bfc29,_0x5d2df2){return _0x3bdd(_0x2a0f2d- -0x63,_0x2bfc29);}function _0x669073(_0x5d9266,_0x19620e,_0x43aa1c,_0x61f84b){return _0x3bdd(_0x5d9266- -_0x4e056e._0x370883,_0x19620e);}return collectClientResults((await _0x21987d(_0x27ecd3))['map'](_0x54aa75=>_0x54aa75[_0x669073(-0x10f,-0x235,-0x18d,-0x15f)][_0x669073(0x1d4,0x217,0x24e,0x33f)](_0x27ecd3)));},async 'references'(_0xec15da){function _0x28071e(_0x29141b,_0x153cfd,_0x37548c,_0x540342){return _0x3bdd(_0x153cfd-0x14c,_0x29141b);}function _0x57d7b1(_0x1b2598,_0x428fc9,_0x51456f,_0x53dd63){return _0x3bdd(_0x53dd63-_0x1899f6._0x6fabb2,_0x1b2598);}return collectClientResults((await _0x21987d(_0xec15da))[_0x28071e(0x669,_0x1cd7ef._0x2f9de3,_0x1cd7ef._0x2c2035,_0x1cd7ef._0x291a7f)](_0x3e7eec=>_0x3e7eec['request'][_0x57d7b1(0x439,0x31f,0x35d,0x475)](_0xec15da)));},async 'hover'(_0x32f130){const _0x28453b=await Promise[_0x2ded85(0x1fb,_0x455f43._0x308f8b,0x287,0x33e)]((await _0x21987d(_0x32f130))[_0x1b6c55(0x185,0x22e,_0x455f43._0x2a98b8,_0x455f43._0x2d9457)](_0x5f3bfc=>_0x5f3bfc[_0x2ded85(0xd3,0x174,0x163,0xe0)][_0x2ded85(0x1b2,0x379,0x25f,0x1b9)](_0x32f130)));function _0x2ded85(_0x458192,_0x297092,_0x184268,_0x5dde84){return _0x3bdd(_0x184268- -0x69,_0x5dde84);}function _0x1b6c55(_0x5eebd5,_0x4aaec0,_0x20f540,_0x4915e1){return _0x3bdd(_0x4915e1- -_0x30f83d._0x4096f8,_0x4aaec0);}return _0x28453b[_0x2ded85(0x7c,0x37a,_0x455f43._0x1fbb56,_0x455f43._0x3d5f4c)](_0x7ce42e=>_0x7ce42e['status']===_0x1b6c55(-0xad,-0x17,0x14a,0x61)&&_0x7ce42e[_0x1b6c55(0x21b,0x243,0x211,0x21a)]?[_0x7ce42e[_0x2ded85(0x2fa,0x338,0x3d5,0x521)]]:[]);},async 'documentSymbol'(_0x2ac12d){function _0x36ee32(_0x489ce9,_0x340a5d,_0x1ae76f,_0x3c5e54){return _0x3bdd(_0x489ce9-0x1a0,_0x3c5e54);}function _0x30b80f(_0x183c5f,_0x219b9a,_0x5197f1,_0x242857){return _0x3bdd(_0x183c5f-0x383,_0x5197f1);}return await _0x3141bd(_0x2ac12d,![]),collectClientResults((await _0x2c34b2(_0x2ac12d,![]))[_0x36ee32(_0x23471._0x16f58c,0x589,0x64a,_0x23471._0x36be9a)](_0x3f9a3a=>_0x3f9a3a[_0x30b80f(0x54f,0x4f1,0x5c6,0x46f)][_0x30b80f(0x5b2,0x58c,0x572,0x559)](_0x2ac12d)));},async 'workspaceSymbol'(_0x42324f){function _0x29edd3(_0x3ed29e,_0x390ad6,_0x306000,_0x263718){return _0x3bdd(_0x263718- -0x342,_0x3ed29e);}function _0x266636(_0xa5f3e0,_0x59c38b,_0x52c493,_0x280fd7){return _0x3bdd(_0x52c493- -0x361,_0xa5f3e0);}return collectClientResults(_0x2955be[_0x266636(-_0x2af717._0x736f3,-0x162,-0x50,-0x167)][_0x266636(-0x144,-_0x2af717._0x194a03,_0x2af717._0x1bdfb4,_0x2af717._0x121a59)](_0x182407=>_0x182407[_0x266636(-0x23c,-0xb3,-0x195,-0x209)][_0x29edd3(0x61,-0x58,0x15e,-0x18)](_0x42324f)));},async 'implementation'(_0xa22166){function _0x1bb16e(_0x2766ac,_0x4ffe83,_0x549172,_0x25bba1){return _0x3bdd(_0x549172- -_0x5945f9._0x1bb477,_0x4ffe83);}function _0x53ef1e(_0x497d37,_0xe49202,_0x13896b,_0x433784){return _0x3bdd(_0x13896b- -0x190,_0x497d37);}return collectClientResults((await _0x21987d(_0xa22166))[_0x1bb16e(_0x591fa2._0xac0820,_0x591fa2._0x1a057b,_0x591fa2._0x157bc6,0x1ee)](_0x321e7e=>_0x321e7e[_0x53ef1e(0xa4,0x124,0x3c,0x11a)][_0x53ef1e(0x3c4,0x3b4,0x30b,0x350)](_0xa22166)));},async 'prepareCallHierarchy'(_0x50d4a8){return _0x5dd861(_0x50d4a8);},async 'incomingCalls'(_0x133c66){function _0x2cc9db(_0x4539e2,_0x29772b,_0xf78892,_0xbc0474){return _0x3bdd(_0xbc0474- -0x309,_0xf78892);}function _0x4f9963(_0x1eee1c,_0x405c95,_0x11834e,_0x164992){return _0x3bdd(_0x164992-_0x276268._0x4fb4c9,_0x11834e);}const _0x460b46=await _0x5dd861(_0x133c66),_0x112cbe=await _0x21987d(_0x133c66);return collectClientResults(_0x112cbe[_0x2cc9db(-_0x5ec229._0xb08559,-0x1ab,-_0x5ec229._0x499354,-0xa8)](_0x43b146=>_0x460b46[_0x2cc9db(0x190,0x163,-0x77,0x97)](_0x141e26=>_0x43b146[_0x4f9963(0x51d,0x5e9,0x713,0x596)][_0x2cc9db(-0xb4,-0x248,-0x233,-0x13f)](_0x141e26))));},async 'outgoingCalls'(_0x25f24f){function _0x31d8e8(_0x3a0575,_0x1174dc,_0x3bdaf6,_0x2eb05a){return _0x3bdd(_0x3a0575-0x242,_0x1174dc);}function _0x2efaef(_0x3bf9fc,_0x281ead,_0x331348,_0x226682){return _0x3bdd(_0x226682-0x146,_0x281ead);}const _0x35dd39=await _0x5dd861(_0x25f24f),_0xbd153f=await _0x21987d(_0x25f24f);return collectClientResults(_0xbd153f[_0x2efaef(0x4a6,0x43a,0x432,_0x4d74d7._0x25babd)](_0x56783c=>_0x35dd39[_0x2efaef(0x4e1,0x60b,0x65b,0x4e6)](_0x82fee7=>_0x56783c[_0x31d8e8(0x40e,0x2d1,0x4c7,0x32e)][_0x31d8e8(0x441,0x470,0x44a,0x2e2)](_0x82fee7))));},async 'shutdown'(){const _0x22b304={_0x12eb41:0x1d9};if(_0x2955be['shutdownStarted'])return;_0x2955be['shutdownStarted']=!![],await Promise['allSettled'](_0x2955be[_0x110581(_0x6980a6._0x417fc6,_0x6980a6._0x25f0f2,_0x6980a6._0x48f453,0x408)][_0x110581(_0x6980a6._0x291f66,0x5a9,0x690,_0x6980a6._0x5ec7c9)](_0x41eef8=>_0x41eef8[_0x37a7ff(0x653,0x706,0x69d,0x775)]()));function _0x110581(_0x38850e,_0x54ed2a,_0x165ff3,_0x268932){return _0x3bdd(_0x38850e-_0x22b304._0x12eb41,_0x268932);}function _0x37a7ff(_0x253d30,_0x45dda6,_0x3e64a4,_0x28dd83){return _0x3bdd(_0x28dd83-0x31c,_0x253d30);}_0x2955be[_0x37a7ff(_0x6980a6._0x4430f2,0x606,0x77a,0x62d)]=[],_0x2955be[_0x110581(_0x6980a6._0x5b31f8,0x49f,_0x6980a6._0x41a95c,0x3eb)][_0x37a7ff(_0x6980a6._0x375bb3,_0x6980a6._0x1c704a,0x7b0,0x790)](),_0x2955be['broken'][_0x37a7ff(_0x6980a6._0x1962f1,_0x6980a6._0x53de29,0x8e0,_0x6980a6._0x1e9b4f)](),_0x2955be[_0x110581(_0x6980a6._0x27a4dc,_0x6980a6._0x4eaec9,0x50b,0x541)][_0x110581(0x64d,0x7a2,_0x6980a6._0x5c00a3,_0x6980a6._0x2ceb99)](),_0x2955be[_0x37a7ff(_0x6980a6._0x1a380e,_0x6980a6._0x307c29,_0x6980a6._0x58cbb2,_0x6980a6._0x266977)][_0x110581(_0x6980a6._0x12be63,_0x6980a6._0x1f900a,_0x6980a6._0x4ce7be,0x5f1)]();},'status'(){function _0x1c1287(_0x53e082,_0x1b9111,_0x34b2f1,_0x13be12){return _0x3bdd(_0x34b2f1- -0x343,_0x53e082);}function _0x5ce568(_0x295a16,_0x1259b7,_0x1a661d,_0x1457cb){return _0x3bdd(_0x1457cb- -0x305,_0x1259b7);}return{'connectedClients':_0x2955be[_0x1c1287(_0x534f25._0x5d7182,-0x43,-_0x534f25._0x33e7fc,0x4b)][_0x1c1287(0x10,-_0x534f25._0x3e4440,0x106,0x205)]};}};}function createQuestionId(){const _0x1c3133={_0x5144f7:0x74,_0x4d6f53:0x266,_0x436d37:0x3c9,_0x28b464:0xb4,_0x564d54:0x51,_0x3999ca:0x194,_0x5e5f30:0xc3},_0x435652={_0x428f2c:0x51};function _0x33922b(_0x506e4b,_0x3316d4,_0x46ad9c,_0x4599bd){return _0x1e45aa(_0x506e4b-0x10d,_0x3316d4-_0x435652._0x428f2c,_0x46ad9c- -0x67c,_0x506e4b);}function _0x876df7(_0x14c9bc,_0x47e317,_0x22bf26,_0xa29014){return _0x1e45aa(_0x14c9bc-0x9,_0x47e317-0x1a3,_0x22bf26- -0x3e4,_0x47e317);}return _0x33922b(-0x14b,-_0x1c3133._0x5144f7,-0x2,-0x69)+Date[_0x876df7(0x335,_0x1c3133._0x4d6f53,0x26a,_0x1c3133._0x436d37)]()+'-'+Math[_0x33922b(-0x1c4,-0xa6,-0xc9,-0xc2)]()[_0x33922b(0x10f,-_0x1c3133._0x28b464,_0x1c3133._0x564d54,-0x6a)](0x24)[_0x33922b(-_0x1c3133._0x3999ca,-_0x1c3133._0x5e5f30,-0x106,-0xc0)](0x2,0x9);}function validateInput(_0x3f1a6a){const _0x1409be={_0x2d3691:0x234,_0x5dfc72:0x143,_0x21ff4b:0x270,_0x58a0ce:0x2d2,_0x495c19:0x182,_0x4aa470:0x270,_0x348cb2:0x28e,_0x1a2be4:0x1b3,_0x289d1c:0x110,_0xde75f8:0x1d5,_0x5efd9f:0xec,_0x42fa65:0x128,_0x25fbe3:0x28b,_0x4d1a28:0x1ee,_0xa76792:0x2f4,_0x5f03a1:0x15e,_0x433839:0x3e2,_0x1ef74f:0x19b,_0x5e4472:0x28e,_0x1ecd48:0x1dd,_0x445a1f:0x23a,_0x3cedcb:0x2d4,_0x38bb1b:0x190,_0x90e082:0x4ad,_0x5097b3:0x437,_0x3459b3:0x222,_0x266ff6:0x2e9,_0x3f7740:0x2bb,_0x4ded47:0x45c,_0x4211e0:0x469,_0x2a3e63:0x2d6,_0x5b6c20:0x222,_0x387336:0x2fb,_0xf8a1dc:0x26c,_0x4005a6:0x3ac,_0x703fe1:0x45e,_0x2fdc17:0x43d,_0x2f849f:0x406,_0xedefa3:0x3e5,_0x112191:0x534,_0x561c5b:0x533,_0x38caf2:0x140,_0x3effc9:0xed,_0x5ea95e:0x168,_0x341a21:0x28b,_0x593855:0x416,_0x497649:0x3f4,_0x3ac379:0x49f,_0xba393:0x480,_0x4a6285:0xab,_0x2cab55:0x2bd,_0x4ebd7b:0x330,_0x54beb5:0x331,_0x2f3707:0x289,_0x254502:0x354,_0xf340be:0x3f4,_0x165400:0x456,_0x23441b:0x52c,_0x1771ee:0x379,_0x3640ad:0x172,_0x340c61:0x141,_0x3c2a18:0x13a,_0x1b88da:0x129,_0x108be7:0x12b,_0x425113:0x1dd,_0x44387e:0x2d6};if(!Array[_0x18d7d5(0x257,0x15c,_0x1409be._0x2d3691,0x2c7)](_0x3f1a6a[_0x18d7d5(0x256,0x18f,_0x1409be._0x5dfc72,_0x1409be._0x21ff4b)])||_0x3f1a6a[_0x18d7d5(_0x1409be._0x58a0ce,_0x1409be._0x495c19,0x186,_0x1409be._0x4aa470)][_0x18d7d5(0x152,0x136,0x3db,_0x1409be._0x348cb2)]<0x1||_0x3f1a6a[_0x18d7d5(0x325,_0x1409be._0x1a2be4,_0x1409be._0x289d1c,_0x1409be._0x21ff4b)][_0x18d7d5(0x408,0x354,_0x1409be._0xde75f8,0x28e)]>0xa)throw new ToolExecutionError(_0x18d7d5(_0x1409be._0x5efd9f,_0x1409be._0x42fa65,_0x1409be._0x25fbe3,_0x1409be._0x4d1a28),{'error':'invalid_questions'});function _0x3ed7f6(_0x17da94,_0xe0ecdf,_0x2cdb08,_0x5f2265){return _0x1e45aa(_0x17da94-0x107,_0xe0ecdf-0x48,_0x17da94- -0x436,_0xe0ecdf);}function _0x18d7d5(_0x2812c7,_0x367c89,_0x212226,_0x2c72ef){return _0x55c88d(_0x2812c7-0x126,_0x2c72ef- -0x2a3,_0x2812c7,_0x2c72ef-0xd8);}for(let _0x3b94f7=0x0;_0x3b94f7<_0x3f1a6a[_0x18d7d5(_0x1409be._0xa76792,_0x1409be._0x5f03a1,0x2cc,0x270)][_0x18d7d5(0x1f0,_0x1409be._0x433839,_0x1409be._0x1ef74f,_0x1409be._0x5e4472)];_0x3b94f7+=0x1){const _0x2e7281=_0x3f1a6a[_0x18d7d5(_0x1409be._0x1ecd48,_0x1409be._0x445a1f,0x1f3,_0x1409be._0x4aa470)][_0x3b94f7];if(!_0x2e7281[_0x3ed7f6(0x2ae,0x29a,0x166,0x287)]||typeof _0x2e7281[_0x18d7d5(0x164,_0x1409be._0x3cedcb,0x2e,_0x1409be._0x38bb1b)]!=='string')throw new ToolExecutionError(_0x3ed7f6(0x3f4,_0x1409be._0x90e082,_0x1409be._0x5097b3,0x442)+(_0x3b94f7+0x1)+_0x3ed7f6(0x170,_0x1409be._0x3459b3,0x2a7,0x102));if(!_0x2e7281[_0x3ed7f6(0x2d4,0x44a,0x1cc,0x230)]||typeof _0x2e7281[_0x18d7d5(0x311,0xb4,0x232,0x1b6)]!==_0x3ed7f6(_0x1409be._0x266ff6,_0x1409be._0x3f7740,_0x1409be._0x4ded47,0x2f2))throw new ToolExecutionError(_0x3ed7f6(0x3f4,_0x1409be._0x4211e0,0x329,0x4c9)+(_0x3b94f7+0x1)+':\x20\x22topic\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(_0x2e7281['topic']['length']>0x1e)throw new ToolExecutionError(_0x18d7d5(0x41e,0x414,0x1f6,_0x1409be._0x2a3e63)+(_0x3b94f7+0x1)+_0x3ed7f6(_0x1409be._0x5b6c20,_0x1409be._0x387336,_0x1409be._0x495c19,0x122)+_0x2e7281[_0x18d7d5(0x21c,0xda,_0x1409be._0xf8a1dc,0x1b6)][_0x3ed7f6(_0x1409be._0x4005a6,_0x1409be._0x703fe1,_0x1409be._0x2fdc17,_0x1409be._0x2f849f)]);if(!Array[_0x3ed7f6(_0x1409be._0xedefa3,0x343,_0x1409be._0x112191,_0x1409be._0x561c5b)](_0x2e7281[_0x18d7d5(-0x79,0xc6,_0x1409be._0x38caf2,_0x1409be._0x3effc9)])||_0x2e7281[_0x3ed7f6(0x20b,0x384,_0x1409be._0x5ea95e,0x22c)][_0x3ed7f6(0x3ac,0x2f3,_0x1409be._0x341a21,_0x1409be._0x593855)]<0x2||_0x2e7281['options'][_0x18d7d5(0x2a9,0x173,_0x1409be._0x4d1a28,0x28e)]>0x4)throw new ToolExecutionError(_0x3ed7f6(_0x1409be._0x497649,_0x1409be._0x3ac379,0x549,_0x1409be._0xba393)+(_0x3b94f7+0x1)+_0x18d7d5(0x39,-0x131,-0x7,0x3e));for(let _0xc87f41=0x0;_0xc87f41<_0x2e7281[_0x3ed7f6(0x20b,_0x1409be._0x4a6285,0x344,0xae)][_0x18d7d5(0x203,_0x1409be._0x2cab55,_0x1409be._0x4ebd7b,0x28e)];_0xc87f41+=0x1){const _0x5d977b=_0x2e7281['options'][_0xc87f41];if(!_0x5d977b['label']||!_0x5d977b[_0x18d7d5(_0x1409be._0x54beb5,_0x1409be._0x2f3707,_0x1409be._0x254502,0x2a2)])throw new ToolExecutionError(_0x3ed7f6(_0x1409be._0xf340be,_0x1409be._0x165400,_0x1409be._0x23441b,_0x1409be._0x1771ee)+(_0x3b94f7+0x1)+',\x20Option\x20'+(_0xc87f41+0x1)+_0x3ed7f6(0x149,0x1b4,0x213,_0x1409be._0x3640ad));}if(typeof _0x2e7281[_0x3ed7f6(_0x1409be._0x340c61,_0x1409be._0x3c2a18,_0x1409be._0x1b88da,_0x1409be._0x108be7)]!==_0x3ed7f6(0x20f,_0x1409be._0x425113,_0x1409be._0x289d1c,0x33d))throw new ToolExecutionError(_0x18d7d5(0x3b1,0x403,0x424,_0x1409be._0x44387e)+(_0x3b94f7+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x5e7d40){const _0x261dc9={_0x32d83f:0x1e2},_0xa8f595={_0x36e287:0x8a};function _0x335360(_0x3f5b9b,_0x27f3d1,_0x260d97,_0xd58ea0){return _0x1e45aa(_0x3f5b9b-_0xa8f595._0x36e287,_0x27f3d1-0x72,_0x260d97- -0x2fe,_0xd58ea0);}function _0xf07abf(_0x5a78fc,_0x4a7b60,_0x257ee7,_0x4a6360){return _0x55c88d(_0x5a78fc-_0x261dc9._0x32d83f,_0x257ee7- -0x20d,_0x5a78fc,_0x4a6360-0x1d7);}return _0x5e7d40['questions']['map']((_0x322c61,_0x3e494e)=>({'id':'q'+_0x3e494e,'question':_0x322c61[_0x335360(0x3cc,0x375,0x3e6,0x53a)],'topic':_0x322c61[_0x335360(0x3ae,0x2fd,0x40c,0x516)],'options':_0x322c61[_0x335360(0x2cc,0x42e,0x343,0x244)],'multiSelect':_0x322c61['multiSelect']}));}function createResult(_0x24c73c,_0x2d21b7,_0x514a7e){const _0x3b184b={_0x247101:0x22f,_0x3ab38d:0x13a,_0xdff32f:0x16e,_0x537c36:0x248},_0x1feade={_0x113653:0xb6,_0x5edd65:0x1df};function _0x45a7a8(_0x1288d6,_0x454b34,_0x14da6d,_0x43d2e8){return _0x55c88d(_0x1288d6-_0x1feade._0x113653,_0x1288d6- -_0x1feade._0x5edd65,_0x454b34,_0x43d2e8-0x165);}const _0x55afdd={'questionId':_0x24c73c,'questionCount':_0x2d21b7,'answers':_0x514a7e};function _0x4558cf(_0x517420,_0x288c46,_0x4860bd,_0x4d0f0b){return _0x55c88d(_0x517420-0x29,_0x517420-0xf1,_0x4860bd,_0x4d0f0b-0x118);}return createToolOutput(_0x45a7a8(_0x3b184b._0x247101,_0x3b184b._0x3ab38d,_0x3b184b._0xdff32f,_0x3b184b._0x537c36)+JSON[_0x4558cf(0x5f1,0x56b,0x67a,0x706)](_0x514a7e,null,0x2),_0x55afdd);}function createAskUserTool(){const _0x1351d7={_0x12bff2:0x14b,_0x381ea4:0x347,_0x3b20a6:0x166,_0xcd44bf:0x2,_0x224e19:0x26e,_0x3e4a45:0x8c,_0x2adb0c:0x8,_0x35a642:0x142,_0x1117a4:0x118,_0x5d04ed:0x20,_0x38078b:0x142,_0x53b92a:0x25f,_0x9b3cfe:0x2c6,_0x2fab28:0x232,_0x1b1431:0x1a6,_0x594190:0x8d,_0x2e0c8f:0xa5,_0x5d5558:0xfe,_0x104430:0x27d,_0x1d3951:0x25c,_0x19cc07:0x1b0,_0x55edd5:0x27d,_0x1b265a:0x2e3,_0x328d19:0x34b,_0x30e59d:0x2f0,_0x2fae6e:0x49,_0x18d2bc:0x279,_0x18e89a:0x242,_0x58bb1f:0x27a,_0x8229bf:0x108,_0x4dec24:0x12d,_0x124d53:0x248,_0x23f88a:0x19f,_0x243d19:0x189,_0xeb95e3:0xc2,_0x56737e:0x66,_0x50e92f:0x1d9,_0x19307e:0x1e6,_0x1c93e9:0x22d,_0x2cabef:0x1e7},_0x103809={_0x49bceb:0xba,_0x1dfe38:0x66,_0x2e20dd:0x16b,_0xf68273:0x19f,_0x381214:0x18b,_0x4a50b8:0x75d,_0x4f0b52:0x60f,_0x4d0f70:0x105,_0xc69a84:0x283,_0x31ae12:0x3d5,_0x404d7c:0x368,_0x16c286:0x3e0,_0x333178:0x1c8,_0x39f604:0x4a7,_0x22bf2e:0x541,_0x5705f3:0x4e0,_0x4ed285:0x16c,_0x3173d5:0x150,_0x6872c2:0x241,_0x72c70a:0x5d6,_0x18e4cf:0x7c9,_0x239391:0x645,_0x5b5b94:0x136},_0xcc9d5d={_0xde1ce0:0x1a3,_0x1fc3e0:0x5dd};function _0x4c0b08(_0x4f2622,_0x5182e0,_0x5930af,_0x4cfdda){return _0x1e45aa(_0x4f2622-_0xcc9d5d._0xde1ce0,_0x5182e0-0x11,_0x5930af- -_0xcc9d5d._0x1fc3e0,_0x5182e0);}function _0x9a6583(_0x1cdc9c,_0x2853d3,_0x115395,_0x15bd1c){return _0x55c88d(_0x1cdc9c-0x1bf,_0x2853d3- -0x1f1,_0x1cdc9c,_0x15bd1c-0x39);}return defineTool({'name':_0x9a6583(0xbb,0x1c5,_0x1351d7._0x12bff2,_0x1351d7._0x381ea4),'description':'Use\x20this\x20tool\x20when\x20you\x20need\x20to\x20ask\x20the\x20user\x20questions\x20during\x20execution.\x20This\x20allows\x20you\x20to:\x0a1.\x20Gather\x20user\x20preferences\x20or\x20requirements\x0a2.\x20Clarify\x20ambiguous\x20instructions\x0a3.\x20Get\x20decisions\x20on\x20implementation\x20choices\x20as\x20you\x20work\x0a4.\x20Offer\x20choices\x20to\x20the\x20user\x20about\x20what\x20direction\x20to\x20take.\x0a\x0aUsage\x20notes:\x0a-\x20Users\x20will\x20always\x20be\x20able\x20to\x20select\x20\x22Other\x22\x20to\x20provide\x20custom\x20text\x20input\x0a-\x20Use\x20multiSelect:\x20true\x20to\x20allow\x20multiple\x20answers\x20to\x20be\x20selected\x20for\x20a\x20question\x0a-\x20If\x20you\x20recommend\x20a\x20specific\x20option,\x20make\x20that\x20the\x20first\x20option\x20in\x20the\x20list\x20and\x20add\x20\x22(Recommended)\x22\x20at\x20the\x20end\x20of\x20the\x20label','inputSchema':{'type':'object','properties':{'questions':{'type':'array','items':{'type':_0x9a6583(0x155,_0x1351d7._0x3b20a6,-_0x1351d7._0xcd44bf,_0x1351d7._0x224e19),'properties':{'question':{'type':_0x4c0b08(_0x1351d7._0x3e4a45,-_0x1351d7._0x2adb0c,_0x1351d7._0x35a642,0x91)},'topic':{'type':_0x4c0b08(_0x1351d7._0x1117a4,_0x1351d7._0x5d04ed,_0x1351d7._0x38078b,0x16a)},'options':{'type':_0x9a6583(_0x1351d7._0x53b92a,_0x1351d7._0x9b3cfe,_0x1351d7._0x2fab28,_0x1351d7._0x1b1431),'items':{'type':_0x4c0b08(_0x1351d7._0x594190,-_0x1351d7._0x2e0c8f,0x2b,-_0x1351d7._0x5d5558),'properties':{'label':{'type':_0x9a6583(0x1ff,_0x1351d7._0x104430,_0x1351d7._0x1d3951,0x1b8)},'description':{'type':_0x9a6583(_0x1351d7._0x19cc07,_0x1351d7._0x55edd5,_0x1351d7._0x1b265a,0x3a4)}},'required':[_0x9a6583(_0x1351d7._0x328d19,_0x1351d7._0x30e59d,0x2ae,0x436),'description']}},'multiSelect':{'type':_0x9a6583(0x28,0x1a3,0x39,_0x1351d7._0x2fae6e)}},'required':[_0x9a6583(_0x1351d7._0x18d2bc,_0x1351d7._0x18e89a,_0x1351d7._0x58bb1f,0x10e),_0x4c0b08(0x264,_0x1351d7._0x8229bf,_0x1351d7._0x4dec24,_0x1351d7._0x124d53),_0x9a6583(0x14a,_0x1351d7._0x23f88a,_0x1351d7._0x243d19,_0x1351d7._0xeb95e3),_0x4c0b08(-0x68,0xa6,-_0x1351d7._0x56737e,-_0x1351d7._0x50e92f)]}},'answers':{'type':'object','properties':{}}},'required':[_0x4c0b08(_0x1351d7._0x19307e,_0x1351d7._0x1c93e9,_0x1351d7._0x2cabef,0x1a4)]},async *'execute'(_0x49cdeb,_0x3f1231){const _0x31fc54={_0xec4b59:0x9f,_0x2dc998:0x19e,_0x221e61:0x158},_0x328f77={_0x2f599d:0x124},_0x1e11e4=_0x49cdeb;validateInput(_0x1e11e4);function _0x499581(_0x4415db,_0x2b6ec7,_0x338158,_0xa863c8){return _0x9a6583(_0xa863c8,_0x4415db-0x3e0,_0x338158-0x132,_0xa863c8-_0x328f77._0x2f599d);}const _0x4932ec=_0x3f1231['toolCallId']??createQuestionId();if(_0x1e11e4[_0x3e41d2(-_0x103809._0x49bceb,_0x103809._0x1dfe38,0x1a7,_0x103809._0x2e20dd)]&&Object[_0x3e41d2(_0x103809._0xf68273,0x2f0,0x3e7,0x214)](_0x1e11e4[_0x3e41d2(_0x103809._0x381214,0x66,0x1be,-0x96)])[_0x499581(0x720,_0x103809._0x4a50b8,_0x103809._0x4f0b52,0x87d)]>0x0)return createResult(_0x4932ec,_0x1e11e4[_0x3e41d2(_0x103809._0x4d0f70,_0x103809._0xc69a84,0x11d,_0x103809._0x31ae12)][_0x3e41d2(_0x103809._0x404d7c,0x2a1,_0x103809._0x16c286,_0x103809._0x333178)],_0x1e11e4['answers']);if(!_0x3f1231[_0x499581(_0x103809._0x39f604,_0x103809._0x22bf2e,0x5f0,_0x103809._0x5705f3)])throw new ToolExecutionError(_0x3e41d2(_0x103809._0x4ed285,0x141,_0x103809._0x3173d5,_0x103809._0x6872c2));const _0x3fdbba=buildQuestions(_0x1e11e4);function _0x3e41d2(_0x1ede2e,_0x3200a8,_0x367a87,_0x5396a7){return _0x9a6583(_0x367a87,_0x3200a8- -_0x31fc54._0xec4b59,_0x367a87-_0x31fc54._0x2dc998,_0x5396a7-_0x31fc54._0x221e61);}const _0x5c31df=await _0x3f1231['askUser']({'questionId':_0x4932ec,'questions':_0x3fdbba});yield createResult(_0x4932ec,_0x1e11e4[_0x499581(0x702,_0x103809._0x72c70a,_0x103809._0x18e4cf,_0x103809._0x239391)][_0x3e41d2(_0x103809._0x5b5b94,0x2a1,0x3c1,0x14b)],_0x5c31df);}});}import{randomUUID}from'crypto';import{StringDecoder}from'string_decoder';import{spawn as _0xd46fc8}from'child_process';import{stripVTControlCharacters}from'util';function isErrnoException(_0x56f576){return _0x56f576 instanceof Error;}function resolveCarriageReturns(_0x2c27e9){const _0x208000={_0x43890f:0x28a,_0x252f8f:0x373,_0x502d29:0x33b,_0x3d6ce9:0x375},_0x2bd79c={_0x4f8b8e:0x2e8,_0x3dd137:0x446,_0x402437:0x52c},_0x37af1f={_0x296a77:0xb2,_0x2449de:0xcf},_0x4e2eea={_0x258671:0x153,_0x45cfed:0x15c},_0x1b96dd={_0x86dacd:0xc4};function _0x9fe0c(_0x4eb10,_0x31cee8,_0x1031a5,_0x2f9032){return _0x55c88d(_0x4eb10-_0x1b96dd._0x86dacd,_0x1031a5- -0xb7,_0x31cee8,_0x2f9032-0x189);}function _0x4da25c(_0x20ae46,_0x4a9108,_0x3c11ce,_0x146e37){return _0x1e45aa(_0x20ae46-_0x4e2eea._0x258671,_0x4a9108-_0x4e2eea._0x45cfed,_0x4a9108- -0xd0,_0x3c11ce);}return _0x2c27e9[_0x9fe0c(0x206,_0x208000._0x43890f,_0x208000._0x252f8f,0x23d)]('\x0a')['map'](_0x455b4b=>{const _0x9af03c={_0x37fb8d:0xfc};function _0x932d84(_0x1522ee,_0x180764,_0x2bc4f5,_0x3d56fe){return _0x9fe0c(_0x1522ee-_0x9af03c._0x37fb8d,_0x3d56fe,_0x1522ee- -0xf2,_0x3d56fe-0x42);}if(!_0x455b4b[_0x932d84(0x34f,0x1d4,0x2f3,0x4c9)]('\x0d'))return _0x455b4b;function _0x357b14(_0x358115,_0x44d9ab,_0x3bbce3,_0x3e7ee7){return _0x9fe0c(_0x358115-0x19f,_0x3bbce3,_0x3e7ee7-_0x37af1f._0x296a77,_0x3e7ee7-_0x37af1f._0x2449de);}const _0x54c5af=_0x455b4b[_0x357b14(0x4cd,0x397,_0x2bd79c._0x4f8b8e,0x425)]('\x0d');return _0x54c5af[_0x54c5af[_0x357b14(_0x2bd79c._0x3dd137,0x404,0x458,_0x2bd79c._0x402437)]-0x1]??'';})[_0x9fe0c(0x421,0x2d3,_0x208000._0x502d29,_0x208000._0x3d6ce9)]('\x0a');}function resolveBackspaces(_0x2f4883){const _0x290e20={_0x5315b5:0x2bd,_0x1c3dc2:0x22a,_0x4c816c:0x1a0,_0x23a7a5:0x3df,_0x5297bf:0x2d3,_0x2e070d:0x1bf,_0x4f5bcb:0xdc,_0x4b681e:0x4c,_0x22293a:0x10c,_0x109e10:0xe2,_0x364d54:0x6ce,_0x1efaad:0x6b8,_0x980d45:0x7a9},_0x590aef={_0x32e88a:0x2dc},_0xb6ff71=[];function _0x5b012d(_0x3f538f,_0x6d8fc2,_0x360139,_0x1b0991){return _0x55c88d(_0x3f538f-0x163,_0x3f538f-_0x590aef._0x32e88a,_0x6d8fc2,_0x1b0991-0x1b7);}for(const _0x402930 of Array[_0x59d53d(_0x290e20._0x5315b5,0x1ca,_0x290e20._0x1c3dc2,_0x290e20._0x4c816c)](_0x2f4883)){_0x402930==='\x08'?_0xb6ff71[_0x59d53d(0x447,_0x290e20._0x23a7a5,_0x290e20._0x5297bf,_0x290e20._0x2e070d)]():_0xb6ff71[_0x59d53d(_0x290e20._0x4f5bcb,-_0x290e20._0x4b681e,_0x290e20._0x22293a,_0x290e20._0x109e10)](_0x402930);}function _0x59d53d(_0x33ecf1,_0x50e959,_0x288623,_0x235a18){return _0x1e45aa(_0x33ecf1-0x1c4,_0x50e959-0x18,_0x288623- -0x596,_0x50e959);}return _0xb6ff71[_0x5b012d(_0x290e20._0x364d54,_0x290e20._0x1efaad,0x69c,_0x290e20._0x980d45)]('');}function stripAnsiAndControls(_0x50201f){const _0x27294b={_0x4c55fe:0x4a9,_0x37d6d8:0x44c,_0x586994:0x221,_0x466e37:0x109,_0x523b38:0x24c,_0xc02fc8:0x3f5,_0x56cc95:0x41c,_0x5045a0:0x5a5,_0x1d3837:0x569,_0x358e7f:0x71e,_0x47691b:0x1e2,_0x3508f7:0x1a,_0x4105c3:0xe3,_0x55007c:0x1c9,_0x17e02e:0xa2,_0x11b7dc:0x94,_0x1eb49f:0x5a5,_0x2e7922:0x55b,_0xaf16ee:0x485,_0x2210be:0x558,_0x2e1b2e:0x520,_0x31d567:0x4c6,_0x2b4380:0x437,_0x58d283:0x211,_0xce3f84:0x132,_0x426c7e:0xe3,_0x45cc53:0x17e},_0x42dc84={_0x58fe94:0x17d,_0x388de0:0x135},_0x58c59a={_0x2aa77f:0x229,_0x4f5338:0x1e6};_0x50201f=resolveCarriageReturns(_0x50201f),_0x50201f=resolveBackspaces(_0x50201f),_0x50201f=stripVTControlCharacters(_0x50201f);function _0x3325c6(_0x1ccda0,_0x5968e6,_0x39958f,_0x25e0c7){return _0x55c88d(_0x1ccda0-0x9,_0x5968e6-_0x58c59a._0x2aa77f,_0x39958f,_0x25e0c7-_0x58c59a._0x4f5338);}const _0x5d3483='\x1b',_0x5c2561='\x07';function _0x50bb52(_0x1e193a,_0x5ac2a3,_0x625b50,_0x5a1e70){return _0x55c88d(_0x1e193a-_0x42dc84._0x58fe94,_0x625b50- -0x299,_0x5a1e70,_0x5a1e70-_0x42dc84._0x388de0);}return _0x50201f=_0x50201f[_0x3325c6(0x589,0x5a5,_0x27294b._0x4c55fe,_0x27294b._0x37d6d8)](new RegExp(_0x50bb52(0x281,_0x27294b._0x586994,_0x27294b._0x466e37,_0x27294b._0x523b38)+_0x5c2561+_0x3325c6(0x64a,0x546,_0x27294b._0xc02fc8,0x4a2)+_0x5c2561,'g'),''),_0x50201f=_0x50201f['replace'](new RegExp(_0x3325c6(0x5f4,0x545,0x6a8,_0x27294b._0x56cc95)+_0x5d3483+'\x5c\x5c','g'),''),_0x50201f=_0x50201f[_0x3325c6(0x67b,_0x27294b._0x5045a0,_0x27294b._0x1d3837,_0x27294b._0x358e7f)](new RegExp(_0x5c2561,'g'),''),_0x50201f=_0x50201f[_0x50bb52(_0x27294b._0x47691b,-_0x27294b._0x3508f7,_0x27294b._0x4105c3,_0x27294b._0x55007c)](new RegExp(_0x5d3483+_0x50bb52(-0x15c,_0x27294b._0x17e02e,0x27,-_0x27294b._0x11b7dc)+_0x5d3483+'\x5c\x5c','g'),''),_0x50201f=_0x50201f[_0x3325c6(0x48a,_0x27294b._0x1eb49f,_0x27294b._0x2e7922,_0x27294b._0xaf16ee)](new RegExp(_0x5d3483+_0x3325c6(_0x27294b._0x2210be,_0x27294b._0x2e1b2e,0x425,0x42e),'g'),''),_0x50201f=_0x50201f['replace'](/[\u0080-\u009F]/g,''),_0x50201f=_0x50201f[_0x3325c6(_0x27294b._0x31d567,_0x27294b._0x1eb49f,_0x27294b._0x2b4380,0x46f)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x50201f=_0x50201f[_0x50bb52(_0x27294b._0x58d283,_0x27294b._0xce3f84,_0x27294b._0x426c7e,_0x27294b._0x45cc53)](/[\u23CE\u2424]/g,''),_0x50201f;}function killProcessGroup(_0x393605,_0x4fadc6,_0x829968='SIGKILL'){const _0x5cdc0a={_0x5f36d7:0x51d,_0x46ca2e:0x4d7,_0x16d109:0x7f5,_0x27ac99:0x722,_0x5545dc:0x69d,_0x492239:0x72b,_0x5cce51:0x470,_0x1ed4ce:0x5eb,_0x29598c:0x49e,_0x261784:0x670,_0x3f0a23:0x526,_0x389b59:0x544,_0x277318:0x7c9,_0x240d75:0x745,_0x75b1b9:0x495,_0x24077f:0x33b,_0x2ec45d:0x714,_0x659f15:0x4d5},_0x402d0c={_0x289f2d:0x94,_0x4d59e1:0x1cb};if(!_0x393605[_0x443c5f(_0x5cdc0a._0x5f36d7,0x495,_0x5cdc0a._0x46ca2e,0x40a)])return;function _0x443c5f(_0x34aef6,_0x19235f,_0x3682c1,_0x5d1827){return _0x55c88d(_0x34aef6-0x86,_0x19235f-0x1c2,_0x5d1827,_0x5d1827-0x63);}if(_0x4fadc6)try{_0xd46fc8(_0x443c5f(_0x5cdc0a._0x16d109,0x677,0x6c1,0x7f5),[_0x5bcd0c(0x5db,_0x5cdc0a._0x27ac99,_0x5cdc0a._0x5545dc,_0x5cdc0a._0x492239),_0x393605[_0x5bcd0c(0x330,_0x5cdc0a._0x5cce51,_0x5cdc0a._0x1ed4ce,_0x5cdc0a._0x29598c)][_0x443c5f(0x583,0x5de,0x473,0x764)](),'/T','/F'],{'stdio':_0x443c5f(0x69c,_0x5cdc0a._0x261784,0x72d,0x750)});return;}catch{_0x393605[_0x5bcd0c(0x50c,0x6be,_0x5cdc0a._0x3f0a23,0x65a)](_0x829968);return;}function _0x5bcd0c(_0x3b4aaa,_0x5de752,_0x169dc7,_0x55117a){return _0x55c88d(_0x3b4aaa-_0x402d0c._0x289f2d,_0x55117a-_0x402d0c._0x4d59e1,_0x3b4aaa,_0x55117a-0x152);}try{process[_0x5bcd0c(_0x5cdc0a._0x389b59,_0x5cdc0a._0x277318,_0x5cdc0a._0x240d75,0x65a)](-_0x393605[_0x443c5f(0x5d0,_0x5cdc0a._0x75b1b9,0x417,_0x5cdc0a._0x24077f)],_0x829968);}catch{_0x393605[_0x5bcd0c(0x53a,_0x5cdc0a._0x2ec45d,_0x5cdc0a._0x659f15,0x65a)](_0x829968);}}var BackgroundProcessRegistry=class{[_0x55c88d(0x46d,0x4d8,0x3f0,0x65d)]=new Map();[_0x55c88d(0x480,0x32c,0x1f2,0x496)];[_0x55c88d(0x3a2,0x4c8,0x44f,0x4df)];[_0x55c88d(0x3c9,0x424,0x57f,0x3a5)];[_0x55c88d(0x3a6,0x4bc,0x4e6,0x362)]=0x0;constructor(_0x430981={}){const _0x3f6013={_0x220fcf:0xc6,_0x43527f:0x35,_0xece334:0x252,_0x17468b:0x22d,_0x32a010:0x156,_0x3735bf:0x97,_0x2f4c49:0x212},_0x4bb76a={_0x41eb6f:0x16d,_0x9bceb:0x54c},_0x5119ce={_0x15876a:0x29a,_0x3e2540:0x68};function _0x23c8cb(_0x481cf8,_0x6fe4b5,_0x52a2d8,_0x10e8b8){return _0x55c88d(_0x481cf8-0x2d,_0x52a2d8- -_0x5119ce._0x15876a,_0x6fe4b5,_0x10e8b8-_0x5119ce._0x3e2540);}function _0x39a1cc(_0x596abd,_0x105ebf,_0x1c2b26,_0x1d6ef3){return _0x1e45aa(_0x596abd-0x1bc,_0x105ebf-_0x4bb76a._0x41eb6f,_0x105ebf- -_0x4bb76a._0x9bceb,_0x1d6ef3);}this[_0x39a1cc(-_0x3f6013._0x220fcf,0x91,-_0x3f6013._0x43527f,-0x35)]=_0x430981['maxConcurrent']??0xa,this['maxEntries']=_0x430981[_0x39a1cc(_0x3f6013._0xece334,_0x3f6013._0x17468b,0x299,0xb0)]??0x40,this[_0x39a1cc(0x2c4,0x189,0x67,_0x3f6013._0x32a010)]=_0x430981[_0x39a1cc(_0x3f6013._0x3735bf,0x189,0x29b,_0x3f6013._0x2f4c49)]??0x100000;}[_0x55c88d(0x377,0x4d6,0x5e3,0x619)](_0x5e6073){const _0x2119d0={_0x238ef3:0x3a8,_0x1d7709:0x28d,_0x18eb13:0xcd,_0x399cf7:0x181,_0x8ce4d:0xf6,_0x1bdf49:0x2b9,_0x79e8bf:0x105,_0x230c50:0x125,_0x57f4dc:0x16,_0x106581:0x71,_0x2e8e62:0x1dd,_0x30513f:0xcb,_0x1a3b72:0x20a,_0x2406f3:0x10b,_0x339262:0x343,_0x3464b9:0x35c,_0x584444:0x2f0,_0x53e0ec:0x411,_0x39aa6d:0xc6,_0x56a237:0x29,_0x10d224:0x1d5,_0x4bed66:0x13e,_0x40afd5:0x1a,_0x595ea8:0x12b,_0x1aba60:0xac,_0x3c3c29:0x38,_0x3932ad:0x378,_0x160f79:0xd0,_0x566282:0x1bc,_0x297ca8:0x20,_0x19d7f8:0x111,_0x4c0559:0xdb,_0x19ba66:0x4a,_0xb89f02:0x100,_0x269aef:0x1cf,_0x1f4043:0x223,_0x3d01d7:0x1e9,_0x7daaa3:0x123,_0x184b6d:0x1a2,_0x123172:0x8c,_0x3ac6e1:0x234,_0x4dacfc:0x283,_0x21bc0b:0x32,_0x271cce:0x271,_0x734e59:0x16a,_0x1e98ed:0xdd,_0x49e989:0x1fc,_0x4bf97c:0x291,_0x8ac456:0x51,_0x5030cd:0x123,_0x5c3e20:0x174,_0x3941ae:0x58,_0x230f61:0x49,_0x2db563:0x9,_0x41aa1d:0x4},_0x1fd498={_0x5370b7:0x44a,_0x292fb4:0x2ef,_0xe4d2d2:0x32c,_0xae6f4f:0x23a,_0x573e30:0x32c,_0x56892b:0x273,_0x398d30:0x276,_0xc75bca:0x7a4,_0x5d2d1f:0x874,_0x110a46:0x73c},_0x29f631={_0x1f0292:0x56},_0x440b1c={_0x190607:0x490,_0x80049a:0x4dd,_0x10b705:0x490,_0x85578b:0x2b4,_0x1ace6d:0x24f,_0x296bbb:0x6a1,_0x5ed621:0x6b8,_0x5ea04a:0x7a0,_0x20faf2:0x66b,_0x5b1e56:0x5c3,_0x292172:0x46c,_0xf0f0e7:0x410,_0x35744f:0x2ed,_0x37c6e6:0x39f,_0x5c2e09:0x2e7,_0x12e5ab:0x441,_0x3cf2d3:0x3ca},_0x9935aa={_0x3478e4:0x104},_0x14c854={_0x245e69:0x1f1,_0x4e54c1:0x8d},_0x2168b0={_0x2a9c75:0x464,_0xfb30ca:0x189},_0x4bb65c={_0x1583d1:0x255},_0x559583=[...this[_0x185bc9(0x273,_0x2119d0._0x238ef3,_0x2119d0._0x1d7709,0x34a)]['values']()]['filter'](_0x22811c=>_0x22811c[_0x185bc9(0x348,0x2cc,0x43f,0x423)]===_0x185bc9(0x343,0x3b5,0x437,0x235))[_0x520798(_0x2119d0._0x18eb13,_0x2119d0._0x399cf7,0xb,_0x2119d0._0x8ce4d)];if(_0x559583>=this['maxConcurrent'])throw new ToolExecutionError(_0x185bc9(0x86,0x12f,0x1f9,0x127)+this[_0x520798(-0x138,0x34,-_0x2119d0._0x1bdf49,-0x202)]+_0x520798(-_0x2119d0._0x79e8bf,-0x148,-_0x2119d0._0x230c50,-0x115),{'running':this[_0x520798(-0x138,-0xc0,-0x260,-0x11f)]});const _0x177293='bg-'+ ++this[_0x520798(0x58,-_0x2119d0._0x57f4dc,0x41,_0x2119d0._0x106581)]+'-'+randomUUID()['slice'](0x0,0x8),_0x78f43e={'shellId':_0x177293,'command':_0x5e6073['command'],'cwd':_0x5e6073[_0x520798(-0x156,-_0x2119d0._0x2e8e62,-_0x2119d0._0x30513f,-0x1c0)],'pid':_0x5e6073[_0x520798(-0x13e,0x1e,-0x23b,-_0x2119d0._0x1a3b72)][_0x520798(-0x191,-0xb4,-_0x2119d0._0x2406f3,-0x22b)],'status':_0x185bc9(_0x2119d0._0x339262,_0x2119d0._0x3464b9,_0x2119d0._0x584444,_0x2119d0._0x53e0ec),'exitCode':null,'signal':null,'startedAt':Date[_0x185bc9(0x138,_0x2119d0._0x39aa6d,_0x2119d0._0x56a237,_0x2119d0._0x10d224)](),'child':_0x5e6073[_0x520798(-_0x2119d0._0x4bed66,_0x2119d0._0x40afd5,-_0x2119d0._0x595ea8,-0x11f)],'buffer':[],'bufferChars':0x0,'totalProduced':0x0,'totalDropped':0x0,'readCursor':0x0,'stdoutDecoder':new StringDecoder(_0x185bc9(_0x2119d0._0x399cf7,0x25f,_0x2119d0._0x1aba60,_0x2119d0._0x3c3c29)),'stderrDecoder':new StringDecoder('utf8'),'stripAnsi':_0x5e6073[_0x185bc9(0x21f,_0x2119d0._0x3932ad,0x24d,_0x2119d0._0x160f79)],'killRequested':![],'processExited':![]};_0x5e6073['child']['stdout']?.['on'](_0x185bc9(0xff,_0x2119d0._0x566282,0x118,0x24f),_0x4e7f57=>this[_0x185bc9(0x1a7,0xad,0x2ce,0xfc)](_0x78f43e,_0x78f43e['stdoutDecoder'][_0x520798(0x66,-0x10f,0x46,-0x7d)](_0x4e7f57))),_0x5e6073[_0x185bc9(0xc1,_0x2119d0._0x297ca8,_0x2119d0._0x19d7f8,-0x8c)][_0x520798(-_0x2119d0._0x4c0559,-_0x2119d0._0x19ba66,-0x19b,-0x9e)]?.['on'](_0x520798(-_0x2119d0._0xb89f02,0x12,-_0x2119d0._0x269aef,-0xea),_0x4ddf9a=>this[_0x185bc9(0x1a7,0x2e2,0x124,0x222)](_0x78f43e,_0x78f43e[_0x520798(0xff,0x181,0x1f1,-0x7b)][_0x520798(0x66,-0x39,0x36,0x161)](_0x4ddf9a))),_0x5e6073[_0x185bc9(0xc1,_0x2119d0._0x1f4043,_0x2119d0._0x3d01d7,-0x5f)][_0x185bc9(_0x2119d0._0x7daaa3,_0x2119d0._0x184b6d,0x22d,_0x2119d0._0x123172)](_0x185bc9(_0x2119d0._0x3ac6e1,0x2b2,_0x2119d0._0x3464b9,_0x2119d0._0x3932ad),()=>{const _0x46b936={_0x2430d0:0x6c,_0x3144b7:0x7e};function _0x1d564f(_0x3497f6,_0x27c632,_0x57a2b5,_0x40fb77){return _0x520798(_0x57a2b5-0x3e2,_0x3497f6,_0x57a2b5-_0x46b936._0x2430d0,_0x40fb77-_0x46b936._0x3144b7);}_0x78f43e[_0x1d564f(0x307,0x270,_0x4bb65c._0x1583d1,0x1fd)]=!![];});function _0x520798(_0x409c79,_0x182fb8,_0x48267f,_0x297f43){return _0x55c88d(_0x409c79-0x18d,_0x409c79- -_0x2168b0._0x2a9c75,_0x182fb8,_0x297f43-_0x2168b0._0xfb30ca);}function _0x185bc9(_0x4ee5b0,_0x48e7aa,_0x1d5d40,_0x217ecc){return _0x1e45aa(_0x4ee5b0-_0x14c854._0x245e69,_0x48e7aa-_0x14c854._0x4e54c1,_0x4ee5b0- -0x516,_0x217ecc);}return _0x5e6073['child'][_0x185bc9(0x123,_0x2119d0._0x4dacfc,_0x2119d0._0x21bc0b,_0x2119d0._0x271cce)](_0x520798(0x107,_0x2119d0._0x734e59,_0x2119d0._0x1e98ed,_0x2119d0._0x49e989),(_0x309791,_0x451a24)=>{const _0x2d35d8={_0x21ce04:0x1b5,_0x17dbea:0x173,_0x372e05:0x161};this[_0xc302b3(_0x440b1c._0x190607,_0x440b1c._0x80049a,0x41a,0x3fc)](_0x78f43e,_0x78f43e[_0xb5f521(0x2c2,0x233,0x10a,0x290)]['end']());function _0xb5f521(_0x4ff4f6,_0x484471,_0x555e74,_0x15bb9f){return _0x520798(_0x484471-_0x2d35d8._0x21ce04,_0x15bb9f,_0x555e74-_0x2d35d8._0x17dbea,_0x15bb9f-_0x2d35d8._0x372e05);}this[_0xc302b3(_0x440b1c._0x10b705,0x480,0x4bd,0x5bd)](_0x78f43e,_0x78f43e[_0xb5f521(0x279,_0x440b1c._0x85578b,0x3b1,_0x440b1c._0x1ace6d)][_0xc302b3(0x542,_0x440b1c._0x296bbb,0x658,_0x440b1c._0x5ed621)]());function _0xc302b3(_0x29d7d2,_0x59acf2,_0x285357,_0x17ef45){return _0x520798(_0x29d7d2-0x4e8,_0x17ef45,_0x285357-_0x9935aa._0x3478e4,_0x17ef45-0xe8);}_0x78f43e[_0xc302b3(0x631,_0x440b1c._0x5ea04a,_0x440b1c._0x20faf2,0x51a)]=_0x78f43e[_0xc302b3(0x45b,0x4c5,0x3ae,_0x440b1c._0x5b1e56)]?_0xc302b3(_0x440b1c._0x292172,0x453,_0x440b1c._0xf0f0e7,_0x440b1c._0x35744f):'exited',_0x78f43e[_0xb5f521(_0x440b1c._0x37c6e6,_0x440b1c._0x5c2e09,_0x440b1c._0x12e5ab,_0x440b1c._0x3cf2d3)]=_0x309791,_0x78f43e[_0xb5f521(0x280,0x306,0x427,0x35f)]=_0x451a24,_0x78f43e[_0xc302b3(0x3aa,0x280,0x313,0x462)]=null;}),_0x5e6073[_0x520798(-_0x2119d0._0x4bed66,-_0x2119d0._0x4bf97c,-0x18d,-_0x2119d0._0x8ac456)][_0x185bc9(_0x2119d0._0x5030cd,_0x2119d0._0x5c3e20,0x10c,-_0x2119d0._0x3941ae)]('error',_0x2a0b39=>{const _0xdd8ac={_0x10efc5:0x1e3,_0x30ce00:0x1c7};_0x78f43e[_0x2670cb(_0x1fd498._0x5370b7,_0x1fd498._0x292fb4,_0x1fd498._0xe4d2d2,_0x1fd498._0xae6f4f)]=_0x2670cb(_0x1fd498._0x573e30,_0x1fd498._0x56892b,_0x1fd498._0x398d30,0x268);function _0x2670cb(_0x4bd8b4,_0x3cc626,_0xb2d1b9,_0x53ecd4){return _0x520798(_0xb2d1b9-_0xdd8ac._0x10efc5,_0x3cc626,_0xb2d1b9-0x1a5,_0x53ecd4-_0xdd8ac._0x30ce00);}_0x78f43e[_0x4133df(_0x1fd498._0xc75bca,_0x1fd498._0x5d2d1f,_0x1fd498._0x110a46,0x701)]=_0x2a0b39['message'];function _0x4133df(_0x36cb38,_0x27f5e5,_0xbcdc9c,_0x5087a2){return _0x185bc9(_0xbcdc9c-0x4aa,_0x27f5e5-0x101,_0xbcdc9c-_0x29f631._0x1f0292,_0x36cb38);}_0x78f43e['child']=null;}),this[_0x185bc9(0x273,0x165,0x2ff,0x33e)][_0x520798(-0xef,_0x2119d0._0x230f61,-0xeb,-0x1b6)](_0x177293,_0x78f43e),this[_0x520798(-0x54,0xcf,-_0x2119d0._0x2db563,-_0x2119d0._0x41aa1d)](),_0x78f43e;}[_0x1e45aa(0x96f,0x721,0x836,0x704)](_0x480a77,_0xc673e3){const _0x31bd11={_0x3a1e4f:0x460,_0x54336b:0x3f5,_0x2a726a:0x330,_0x5e2cc9:0x361,_0x15b4ee:0x5b2,_0xbef54a:0x3fa,_0x4fc22d:0x545,_0x873e4f:0x37d,_0x47d54a:0x3da,_0x4641c0:0x259,_0x31e8e4:0x27d,_0x3e48f6:0x2a3,_0x2b7eed:0x4d6,_0xb1d5b1:0x371,_0x2d3a0f:0xdc,_0x35e090:0x2d8,_0x16db10:0x2a2,_0x123d67:0x417,_0x45d00b:0x265,_0x39ffe0:0x426,_0x274922:0x302,_0xda9938:0x387,_0x304199:0x4d0,_0x4383b8:0x581,_0x4ccf37:0x422,_0x3e482c:0x2d5,_0x4e9bf3:0x40a,_0x53b59b:0x306,_0x406d73:0x26b,_0x2da7e6:0x335,_0x1d95ed:0x18d,_0x3d2133:0x11d,_0x123ddf:0x160,_0x15c134:0x293,_0x1ba39e:0x4de,_0x3966dc:0x57f,_0x3a6928:0x40c,_0x274c88:0x3a2,_0x3036c6:0x5cf,_0x4f0c38:0x40f,_0x2d47ad:0x64d,_0x24e4f0:0x5ac,_0x30ef07:0x500,_0x2319d6:0x564},_0x538c52={_0x5e7f81:0x18,_0x22931d:0xe3,_0x4579c9:0x18f},_0x40b532=this[_0x1a3d0b(0x568,_0x31bd11._0x3a1e4f,0x4a0,_0x31bd11._0x54336b)][_0x1a3d0b(0x583,0x5b4,0x516,0x44f)](_0x480a77);if(!_0x40b532)throw new ToolExecutionError(_0x3a4379(_0x31bd11._0x2a726a,_0x31bd11._0x5e2cc9,_0x31bd11._0x15b4ee,0x46e)+_0x480a77,{'shellId':_0x480a77});const _0x40500f=_0x40b532[_0x1a3d0b(0x3b7,0x554,_0x31bd11._0xbef54a,0x44b)][_0x3a4379(_0x31bd11._0x4fc22d,0x368,0x4c1,0x3c0)](''),_0x2c98d8=Math[_0x3a4379(_0x31bd11._0x873e4f,_0x31bd11._0x47d54a,_0x31bd11._0x4641c0,0x34e)](_0x40b532[_0x1a3d0b(_0x31bd11._0x31e8e4,_0x31bd11._0x3e48f6,_0x31bd11._0x2b7eed,_0x31bd11._0xb1d5b1)],_0x40b532[_0x1a3d0b(_0x31bd11._0x2d3a0f,0x21d,_0x31bd11._0x35e090,0x251)]),_0x804d69=Math[_0x1a3d0b(_0x31bd11._0x16db10,_0x31bd11._0x123d67,_0x31bd11._0x45d00b,0x29d)](0x0,_0x40b532[_0x3a4379(0x455,0x466,_0x31bd11._0x39ffe0,_0x31bd11._0x274922)]-_0x40b532[_0x3a4379(_0x31bd11._0xda9938,_0x31bd11._0x304199,_0x31bd11._0x4383b8,_0x31bd11._0x4ccf37)]);function _0x3a4379(_0x3e2a9a,_0x2f0106,_0x4975e6,_0x265aab){return _0x1e45aa(_0x3e2a9a-0x1ca,_0x2f0106-0x16d,_0x265aab- -0x2e3,_0x3e2a9a);}function _0x1a3d0b(_0x25da78,_0x1e3d28,_0x5e85d6,_0x569a8c){return _0x55c88d(_0x25da78-_0x538c52._0x5e7f81,_0x569a8c- -_0x538c52._0x22931d,_0x5e85d6,_0x569a8c-_0x538c52._0x4579c9);}const _0x1dc046=_0x40500f[_0x3a4379(_0x31bd11._0x3e482c,0x338,0x1f6,0x293)](_0x2c98d8-_0x40b532[_0x3a4379(_0x31bd11._0x4e9bf3,0x2d0,0x1d5,0x302)]),_0x1f6528=_0x40b532['status']!=='running';let _0x9bb9fb;const _0x471392=_0xc673e3?.['regex'];if(!_0x471392)_0x9bb9fb=_0x1dc046,_0x40b532[_0x3a4379(0x56c,0x55d,_0x31bd11._0x53b59b,0x422)]=_0x40b532['totalProduced'];else{let _0x515680;try{_0x515680=new RegExp(_0x471392);}catch(_0x2a4e8f){throw new ToolExecutionError(_0x1a3d0b(_0x31bd11._0x406d73,0x382,0x2b5,_0x31bd11._0x2da7e6)+_0x2a4e8f['message'],{'shellId':_0x480a77,'regex':_0x471392});}let _0x157f27=_0x1dc046;if(!_0x1f6528){const _0x55d957=_0x1dc046[_0x1a3d0b(_0x31bd11._0x1d95ed,_0x31bd11._0x3d2133,0x1c1,0x29f)]('\x0a');_0x157f27=_0x55d957>=0x0?_0x1dc046[_0x3a4379(0x146,_0x31bd11._0x123ddf,0x163,_0x31bd11._0x15c134)](0x0,_0x55d957+0x1):'';}_0x9bb9fb=_0x157f27['split']('\x0a')[_0x3a4379(0x6fb,0x635,_0x31bd11._0x1ba39e,_0x31bd11._0x3966dc)](_0x54695a=>_0x515680[_0x1a3d0b(0x474,0x494,0x328,0x47c)](_0x54695a))['join']('\x0a'),_0x40b532[_0x3a4379(0x2ed,_0x31bd11._0x3a6928,0x41a,0x422)]=_0x2c98d8+_0x157f27[_0x3a4379(_0x31bd11._0x274c88,0x3e2,_0x31bd11._0x3036c6,0x4ff)];}const _0x429bdc=(_0x804d69>0x0?_0x1a3d0b(0x335,0x274,_0x31bd11._0x4f0c38,0x32e)+_0x804d69+'\x20chars\x20dropped]\x0a':'')+_0x9bb9fb;return{'output':_0x429bdc,'status':_0x40b532[_0x3a4379(_0x31bd11._0x2d47ad,_0x31bd11._0x24e4f0,0x65f,0x57b)],'exitCode':_0x40b532[_0x3a4379(0x569,_0x31bd11._0x30ef07,0x3df,_0x31bd11._0x2319d6)],'signal':_0x40b532['signal'],'truncated':_0x804d69>0x0};}[_0x55c88d(0x53d,0x3f5,0x464,0x394)](){const _0x309787={_0x3cdbc8:0xe7},_0x32457e={_0xb9df06:0x1ea};function _0x227845(_0x16d90d,_0x564c72,_0x3f8569,_0x2d00bd){return _0x1e45aa(_0x16d90d-0xdb,_0x564c72-_0x32457e._0xb9df06,_0x16d90d- -0x63a,_0x2d00bd);}return[...this['entries'][_0x227845(0x60,-0xe9,-0xb,-_0x309787._0x3cdbc8)]()];}[_0x1e45aa(0x82a,0x7dd,0x740,0x66c)](_0x2c8c2a){const _0x24cd4f={_0x179e5c:0x712,_0x4b6a77:0x311,_0x3a6c2e:0x970,_0x483e15:0x96f,_0x8d4317:0x836,_0x5f144e:0x963,_0x27fcba:0x4d6,_0x393ca7:0x5b4,_0xdf727d:0x2bf,_0x5a6ffc:0xb5,_0xc7d628:0xea,_0x48ec59:0x297,_0x17a4f8:0x255,_0x5af9fb:0x287,_0x24d060:0x74a,_0x96ed04:0x7d6,_0x510d4e:0x818,_0x15c6e1:0x8b6,_0x5e24b5:0x732,_0x1a77db:0x7e2,_0x1a77ce:0x729,_0x1f099a:0x7a5,_0x58c533:0x824,_0x44fb09:0x475},_0x469682={_0x4cbb6d:0x1cc,_0x58815f:0x187},_0x5ed045=this['entries'][_0x3b8ea8(_0x24cd4f._0x179e5c,0x725,0x7c0,0x929)](_0x2c8c2a);if(!_0x5ed045)throw new ToolExecutionError(_0x3b8ea8(0x5b2,0x63f,0x72e,0x63b)+_0x2c8c2a,{'shellId':_0x2c8c2a});if(_0x5ed045[_0x2a3cae(0x46d,0x455,0x525,_0x24cd4f._0x4b6a77)]===_0x3b8ea8(_0x24cd4f._0x3a6c2e,_0x24cd4f._0x483e15,_0x24cd4f._0x8d4317,_0x24cd4f._0x5f144e)&&_0x5ed045[_0x3b8ea8(_0x24cd4f._0x27fcba,0x70c,_0x24cd4f._0x393ca7,0x4df)]&&!_0x5ed045[_0x2a3cae(0x197,_0x24cd4f._0xdf727d,_0x24cd4f._0x5a6ffc,_0x24cd4f._0xc7d628)]){_0x5ed045[_0x2a3cae(_0x24cd4f._0x48ec59,_0x24cd4f._0x17a4f8,0x385,_0x24cd4f._0x5af9fb)]=!![];try{killProcessGroup(_0x5ed045['child'],process[_0x3b8ea8(_0x24cd4f._0x24d060,0x6ed,_0x24cd4f._0x96ed04,_0x24cd4f._0x510d4e)]===_0x3b8ea8(_0x24cd4f._0x15c6e1,0x87a,_0x24cd4f._0x5e24b5,_0x24cd4f._0x1a77db));}catch{}}function _0x3b8ea8(_0x4cb6bd,_0x25dcf0,_0x6ccf52,_0x2c6f5b){return _0x55c88d(_0x4cb6bd-0x45,_0x6ccf52-0x28e,_0x4cb6bd,_0x2c6f5b-0xd6);}function _0x2a3cae(_0x2f4b8b,_0x242f4c,_0x345688,_0x27d598){return _0x1e45aa(_0x2f4b8b-_0x469682._0x4cbb6d,_0x242f4c-_0x469682._0x58815f,_0x2f4b8b- -0x3f1,_0x242f4c);}return{'status':_0x5ed045[_0x3b8ea8(0x791,0x93b,0x83b,_0x24cd4f._0x1a77ce)],'exitCode':_0x5ed045[_0x3b8ea8(0x90b,_0x24cd4f._0x1f099a,_0x24cd4f._0x58c533,0x97a)],'signal':_0x5ed045[_0x2a3cae(_0x24cd4f._0x44fb09,0x3a1,0x3b5,0x396)]};}async['closeAll'](){const _0x250118={_0xc3a2fb:0x1e9,_0x6e7d86:0x57,_0xb4047e:0x1f,_0x2e6449:0x25b,_0x2f82a1:0x1a5,_0x28cef9:0x79f,_0x1f792b:0x8ed,_0x919eba:0x7cf,_0x4187c9:0x6b5,_0x24b3f5:0x620},_0x1b26fc={_0x381681:0x6a,_0x2819b9:0x95},_0x3dd4a1={_0x69a4ec:0x227};function _0x2f3c25(_0xeec41f,_0x2d55bb,_0x3eb2ef,_0x491141){return _0x55c88d(_0xeec41f-0x1b5,_0x491141-_0x3dd4a1._0x69a4ec,_0x3eb2ef,_0x491141-0xcc);}function _0x4730a2(_0x27aab9,_0x42bdc1,_0x4b8218,_0x14d05f){return _0x55c88d(_0x27aab9-_0x1b26fc._0x381681,_0x14d05f- -0x408,_0x4b8218,_0x14d05f-_0x1b26fc._0x2819b9);}for(const _0x69bba0 of this[_0x4730a2(0x81,-0x5c,_0x250118._0xc3a2fb,0xd0)][_0x4730a2(-_0x250118._0x6e7d86,-0x16f,-0x19,-_0x250118._0xb4047e)]()){if(_0x69bba0[_0x4730a2(_0x250118._0x2e6449,0x42,0x308,_0x250118._0x2f82a1)]===_0x2f3c25(0x8ef,_0x250118._0x28cef9,_0x250118._0x1f792b,_0x250118._0x919eba)&&_0x69bba0[_0x2f3c25(_0x250118._0x4187c9,_0x250118._0x24b3f5,0x6c0,0x54d)]&&!_0x69bba0['processExited']){_0x69bba0['killRequested']=!![];try{killProcessGroup(_0x69bba0[_0x2f3c25(0x457,0x628,0x650,0x54d)],process['platform']===_0x4730a2(-0x7d,-0xe5,0xbb,0x9c));}catch{}}}}[_0x55c88d(0x3dc,0x40c,0x4bb,0x4e0)](_0x363d61,_0x470d92){const _0x1ea20f={_0x6f8022:0x54c,_0xabca2c:0x3c9,_0x383c41:0x215,_0x478039:0x24b,_0x411200:0x277,_0x68d333:0x2b8,_0x434473:0x28f,_0x5365b9:0x28a,_0x4ae3ee:0x5e4,_0x25a992:0x596,_0x213ce8:0x51f,_0x1a670c:0x1d1,_0x159746:0x7e,_0xce2d1a:0x2ba,_0x727df9:0x34d,_0x158423:0x5aa,_0x1d4c05:0x617,_0x352d9f:0x51c,_0x3d6496:0x377,_0x2b1693:0x346,_0x523535:0x386,_0x40ec7b:0x2b5,_0x5a5a44:0x3bb,_0x5d6442:0x3dd,_0x56d5a7:0x402,_0x1c118b:0x4b6,_0x16c1bc:0x1d4,_0x110739:0x143,_0xc2c36f:0x3ad,_0x5038c1:0x346,_0x494a22:0x20b,_0x116f80:0x1e9,_0x193e08:0x236,_0x59f2a3:0x1fa,_0x2a2b11:0x32b,_0x348c33:0x689,_0x5f413b:0x5f5,_0x10198d:0x140,_0x187779:0x2b3},_0x44566b={_0x278f92:0x12,_0x2583a0:0x9a},_0x1bd6f2=_0x363d61[_0xe0f1d(0x302,0x5c8,_0x1ea20f._0x6f8022,0x472)]?stripAnsiAndControls(_0x470d92):_0x470d92;if(_0x1bd6f2[_0x3a06db(_0x1ea20f._0xabca2c,0x346,_0x1ea20f._0x383c41,_0x1ea20f._0x478039)]===0x0)return;_0x363d61['buffer'][_0x3a06db(_0x1ea20f._0x411200,0x206,_0x1ea20f._0x68d333,0x9f)](_0x1bd6f2);function _0x3a06db(_0x45c8cc,_0x3d0ef8,_0xafb584,_0x2f0c15){return _0x1e45aa(_0x45c8cc-0x79,_0x3d0ef8-0x1af,_0x3d0ef8- -0x49c,_0xafb584);}_0x363d61[_0x3a06db(0x329,0x1d1,_0x1ea20f._0x434473,_0x1ea20f._0x5365b9)]+=_0x1bd6f2[_0xe0f1d(_0x1ea20f._0x4ae3ee,0x453,_0x1ea20f._0x25a992,_0x1ea20f._0x213ce8)];function _0xe0f1d(_0x5a0b50,_0x3fa42e,_0x3c388e,_0x17e1e8){return _0x55c88d(_0x5a0b50-0x19d,_0x17e1e8- -_0x44566b._0x278f92,_0x3c388e,_0x17e1e8-_0x44566b._0x2583a0);}_0x363d61['totalProduced']+=_0x1bd6f2['length'];while(_0x363d61[_0x3a06db(0x9b,_0x1ea20f._0x1a670c,_0x1ea20f._0x159746,0x2ff)]>this[_0xe0f1d(_0x1ea20f._0xce2d1a,_0x1ea20f._0x727df9,0x3ec,0x412)]){const _0x355d2f=_0x363d61['bufferChars']-this[_0xe0f1d(0x58e,0x3eb,0x4e7,0x412)],_0x2dc2c4=_0x363d61[_0xe0f1d(_0x1ea20f._0x158423,0x3fa,_0x1ea20f._0x1d4c05,_0x1ea20f._0x352d9f)][0x0];_0x2dc2c4[_0x3a06db(_0x1ea20f._0x3d6496,_0x1ea20f._0x2b1693,_0x1ea20f._0x523535,_0x1ea20f._0x40ec7b)]<=_0x355d2f?(_0x363d61[_0xe0f1d(_0x1ea20f._0x5a5a44,0x543,_0x1ea20f._0x5d6442,0x51c)][_0xe0f1d(_0x1ea20f._0x56d5a7,_0x1ea20f._0x1c118b,_0x1ea20f._0x16c1bc,0x342)](),_0x363d61[_0x3a06db(0x14d,0x1d1,0x2a7,_0x1ea20f._0x110739)]-=_0x2dc2c4[_0x3a06db(_0x1ea20f._0xc2c36f,_0x1ea20f._0x5038c1,0x414,_0x1ea20f._0x494a22)],_0x363d61[_0x3a06db(0x213,0x149,0x82,_0x1ea20f._0x116f80)]+=_0x2dc2c4[_0x3a06db(_0x1ea20f._0x193e08,0x346,_0x1ea20f._0x59f2a3,_0x1ea20f._0x2a2b11)]):(_0x363d61[_0xe0f1d(_0x1ea20f._0x348c33,_0x1ea20f._0x5f413b,0x4ef,0x51c)][0x0]=_0x2dc2c4[_0xe0f1d(0x308,0x1a4,_0x1ea20f._0x10198d,_0x1ea20f._0x187779)](_0x355d2f),_0x363d61['bufferChars']-=_0x355d2f,_0x363d61['totalDropped']+=_0x355d2f);}}[_0x1e45aa(0x672,0x65c,0x6c1,0x735)](){const _0x4680d6={_0xbd9f42:0x3bb,_0x2f83c9:0x385,_0x504416:0x46d,_0x5917ac:0x17f,_0x2ec3d2:0x53,_0x552866:0x91,_0x9f436:0x391,_0x167091:0x251,_0x26c213:0x132,_0x22d44b:0x48b,_0x40bda1:0x490,_0x5b1f3a:0x2b7,_0x2c1778:0x261,_0x588331:0x189,_0x35db33:0x56,_0x1a1e29:0x12a};function _0x25428f(_0xdced90,_0x122538,_0x3a5e27,_0x5e938e){return _0x55c88d(_0xdced90-0x190,_0x3a5e27- -0x277,_0x122538,_0x5e938e-0x1c6);}function _0x5c3083(_0xa0dc6f,_0x13dbf2,_0x36d0ff,_0x4475b2){return _0x1e45aa(_0xa0dc6f-0x111,_0x13dbf2-0x85,_0xa0dc6f- -0x3ce,_0x13dbf2);}if(this[_0x5c3083(_0x4680d6._0xbd9f42,_0x4680d6._0x2f83c9,0x2cf,_0x4680d6._0x504416)][_0x25428f(-0x12,_0x4680d6._0x5917ac,_0x4680d6._0x2ec3d2,-_0x4680d6._0x552866)]<=this[_0x25428f(_0x4680d6._0x9f436,0x2d0,_0x4680d6._0x167091,0x153)])return;for(const [_0x1e24fd,_0x3a9200]of this[_0x25428f(0x151,_0x4680d6._0x26c213,0x261,0x2c5)]){if(_0x3a9200['status']!==_0x5c3083(_0x4680d6._0x22d44b,0x4b3,0x49f,_0x4680d6._0x40bda1)){this[_0x25428f(_0x4680d6._0x5b1f3a,0x3c2,_0x4680d6._0x2c1778,_0x4680d6._0x588331)][_0x25428f(0x1f8,_0x4680d6._0x35db33,_0x4680d6._0x1a1e29,0x67)](_0x1e24fd);return;}}}};function createBashOutputTool(_0x541024){const _0x55655d={_0x520d34:0x3eb,_0x58c0a:0x30d,_0x4c0d80:0x26d,_0x2879be:0x233,_0x1c0e88:0x325,_0x58c051:0x5ae,_0x37d7d8:0x32b,_0x222f74:0x42c,_0x545c01:0x3ab},_0x23f7e7={_0x34b46f:0x1e7,_0xb60554:0x46,_0x1f3ab4:0x405,_0x34479a:0x4c1,_0x344167:0x46a,_0x1d22d0:0xeb,_0x39bfa3:0x5d,_0x18d9b4:0x161,_0x5e4018:0x13d,_0x3ba179:0x2c7,_0x1d157f:0x173,_0x290770:0x72,_0x17b9f8:0x279},_0x17fb17={_0x4cb002:0x81,_0x20f224:0x24,_0x209d66:0xfe},_0x3d948c={_0x3f08df:0x85},{registry:_0x30fafa}=_0x541024;function _0x1c4f7a(_0x551af8,_0x25ffa1,_0xf395e7,_0x5bd4bd){return _0x55c88d(_0x551af8-_0x3d948c._0x3f08df,_0x25ffa1- -0x42,_0x551af8,_0x5bd4bd-0x126);}function _0x217bf7(_0x38aad0,_0x54866a,_0x19112a,_0x3a09a3){return _0x1e45aa(_0x38aad0-0x8f,_0x54866a-0x120,_0x3a09a3- -0x74,_0x19112a);}return defineTool({'name':_0x1c4f7a(0x1f4,0x277,0x311,_0x55655d._0x520d34),'description':_0x1c4f7a(_0x55655d._0x58c0a,_0x55655d._0x4c0d80,0x13d,0x1de),'inputSchema':{'type':_0x1c4f7a(_0x55655d._0x2879be,0x315,0x494,_0x55655d._0x1c0e88),'properties':{'shellId':{'type':_0x1c4f7a(0x59a,0x42c,_0x55655d._0x58c051,0x413)},'regex':{'type':_0x1c4f7a(_0x55655d._0x37d7d8,_0x55655d._0x222f74,_0x55655d._0x545c01,0x37f)}},'required':['shellId']},async *'execute'(_0x3a5638){const _0x499a61=_0x30fafa[_0x441bd9(_0x23f7e7._0x34b46f,0x162,0x2e4,_0x23f7e7._0xb60554)](_0x3a5638['shellId'],_0x3a5638[_0xf144e0(_0x23f7e7._0x1f3ab4,_0x23f7e7._0x34479a,0x46c,_0x23f7e7._0x344167)]?{'regex':_0x3a5638[_0x441bd9(-_0x23f7e7._0x1d22d0,-_0x23f7e7._0x39bfa3,-_0x23f7e7._0x18d9b4,-0x198)]}:void 0x0);function _0x441bd9(_0x11041c,_0x5434da,_0x2a6375,_0x1bc8f2){return _0x1c4f7a(_0x2a6375,_0x5434da- -0x3e1,_0x2a6375-0xaa,_0x1bc8f2-0x5f);}function _0xf144e0(_0x4b8a5d,_0x3b3799,_0x21b365,_0x252811){return _0x1c4f7a(_0x252811,_0x4b8a5d-_0x17fb17._0x4cb002,_0x21b365-_0x17fb17._0x20f224,_0x252811-_0x17fb17._0x209d66);}return createToolOutput(_0x499a61['output'],{'shellId':_0x3a5638[_0x441bd9(0x12f,0x4a,0x128,0x15c)],'status':_0x499a61[_0x441bd9(0x23a,0x18a,_0x23f7e7._0x5e4018,_0x23f7e7._0x3ba179)],'exitCode':_0x499a61[_0x441bd9(0x8c,_0x23f7e7._0x1d157f,_0x23f7e7._0x290770,_0x23f7e7._0x17b9f8)],'signal':_0x499a61['signal'],'truncated':_0x499a61['truncated']});}});}function _0x770d(){const _0x56f78b=['AgvHzgvYCW','qMfZzsbKAxjLy3rVCNK6ia','v0vcua','te9x','yMfJA2DYB3vUzfjLz2LZDhj5','C2vHCMnOugfYyw1Z','DhjPBq','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','C2HHmJu2','zxH0zw5ZAw9UCW','s2LSBgvKia','Aw5WDxrty2HLBwe','zxjYB3i','Aw5JBhvKzxm','yw50AhjVCgLJlw1LC3nHz2vZ','zhvWBgLJyxrLx3rVzg9FAwrZ','AxngAwXL','ywjVCNq','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','zNjVBuvUDhjPzxm','C3rYAw5NAwz5','Aw5WDxq','y29UBMvJDa','qMfZAa','y2HHCMfJDgvY','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','yxv0AfjLCxvPCMvK','ywDLBNrZ','zNvUy3rPB24','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','xsb0CMfUC3bVCNqGzxjYB3i6','C291CMnL','yMfZzw5HBwu','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','u3rHCNrLzcbIywnRz3jVDw5KihbYB2nLC3mG','zNjVBq','zgvMyxvSDfrPBwvVDxrnCW','yxnPzgu','r0LgodDH','CxvLC3rPB25Z','Aw52ywXPzf90B2rVx3n0yxr1CW','Aw5PDgLHBgL6zwq','y21KlMv4zq','z29uB0LTCgXLBwvUDgf0Aw9U','sfruuca','ignVBxbSzxrLzc4','lMnTza','Ag9ZDa','Dg9ju09tDhjPBMC','DxjS','u2HLBgWGBM90igzVDw5KoIa','tunqihrVB2WG','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','y291BNq','u2TPBgWGjW','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','EwfYBI5SB2nR','B2XSyw1H','DMfSDwu','A2LTAq','ANnVBMm','C2TPBgXZ','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','y29ZDa','mtK4lJe4lJaUma','yNvMzMvY','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','yMfZzty0','BgvUz3rO','z2v0','y2XPzw50','ls1ZDgrPBW','BgfUz18','AMf2yxnJCMLWDa','BgLTAxq','C3rHDhvZvgv4Da','zxzLCNK','thnW','Cgf0DgvYBIbPCYbYzxf1AxjLza','CgfJA2fNzs5QC29U','vg9KBYa','zw5NAw5LCW','ls1MAwXLCW','ChjVy2vZCW','C2H1DgrVD24','DhvWBgu','y29UBMvJDgLVBG','ygbG','zgvZy3jPChrPB24','zgvUBY5QC29U','ywDLBNrjza','CgXHDgzVCM0','CMvMzxjLBMnLCW','qgjPB21LANmVyMLVBwu','zw5NAw5L','zhj5uNvU','BwnWxW','t1bftLjpvvrfuL9bueLFs0vz','D29YA3nWywnLl3n5BwjVBa','yMvHCMvY','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','Aw1Hz2uVANbLzW','DhjHBNnMB3jT','DxrTx21LzgL1Bq','DhjPBuvUza','ls1YzwDLEha','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','l3vZCI9IAw4VC2G','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','B3bLBMfP','y2XLyxi','CMvXDwLYzwq','zgvUBY5QC29UyW','DgvZDa','l3bPza','Dg90ywW','C3rVCMfNzurPCG','C3rKzxjYrgvJB2rLCG','yxjNDw1LBNrZ','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','Ag9TzwrPCG','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','CgfJA2fNzu5HBwu','rgLHz25VC3rPyW','AxnbCNjHEq','y2XVC2u','CM9VDa','C2vHCMnOvhLWzq','C3rHCNreAxi','Dg9VBa','mte1uxz4AenL','qu5usfjpueLdx0fqsv9lrvK','z2XVyG','BwnFy2LK','rgv0ywLSoIa','pc9ZExn0zw0TCMvTAw5Kzxi+','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','Bg9VA3vW','sw52ywXPzcbvuKWGCgfYyw1LDgvY','uxvLC3rPB24G','z2v0uhjVDg90ExbLt2y','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','CMfUz2u','B2zMC2v0','BgL0zxjHBa','Aw5ZDgfSBa','A2v5CW','Dhj1zq','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','Aw1WBgvTzw50yxrPB24','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','CMvHza','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','lMXVzW','AxrLBxm','y29UDgv4DeXPBMS','Dw5RBM93BG','yxv0Ag9YAxPHDgLVBL9JB2rL','igzHAwXLzc4','uhjVz3jHBuzPBgvZ','zxH0BMfTzq','yxbPs2v5','y2HHCKnVzgvbDa','AgvHzgvY','zgLYzwn0B3j5','CgfYzw50u2vZC2LVBKLK','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','Bwf4uMvKAxjLy3rZ','zxHPDenVzgu','zgvMAw5PDgLVBG','tuLnrtOG','BM9Uzq','ywrK','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','Bwf0y2HLCW','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','zMLUywXnzxnZywDL','Aw1Hz2uVz2LM','zgLZywjSzwq','yxbWBgLJyxrPB24VANnVBG','DhLWzq','CNvUswq','zMjJBgLK','tg9HzfnRAwXS','l2jPBI9ZAa','BNbT','CNvUBMLUzW','C3rKAw8','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','ls1OAwrKzw4','Dg9VBe5HBwu','C3rHDhvZ','AxnjBNrLz2vY','AwzYyw1L','BgLUzvn0yxj0','zMLSDgvY','CgLWzq','C3vIyxjYyxK','y29UC3rYDwn0B3i','C2LNBMfS','Dg9VBenHBgXjza','Dg9VBhm','Cg9W','BMf2','uMvHzcbUzxCGB3v0Chv0igzYB20GysbIywnRz3jVDw5KihbYB2nLC3mGC3rHCNrLzcb3AxrOiejHC2GOCNvUsw5cywnRz3jVDw5KoNrYDwuPlIbszxr1CM5Zig91Dhb1DcbWCM9KDwnLzcbZAw5Jzsb0AguGBgfZDcbYzwfKoYbVChrPB25HBgX5igzPBhrLCIbSAw5LCYbIEsbHihjLz2v4lG','AhLKCMf0zu1LDge','u2L6ztOG','Aw5JB21PBMDdywXSCW','zxjYB3jnzxnZywDL','CMvXDwvZDa','Dg9KB3m','C3jJl2v4yw1WBgvZl2rLBw8UDhm','zMLUAxrL','yxnRvxnLCG','qMfZAe91Dhb1Da','Ec1HCgKTA2v5','lM51DMLU','rMLSzvjLywq','C3rKB3v0','uhjVDMLKzxiGBMfTzsbJyw5UB3qGy29UDgfPBIaNoIC','zw5HyMXLza','w1bFxL1BxhnCu10QpW','BgLUzxm','C3rHCNrZv2L0Aa','BM9Zy3jPChq','z2v0vg9KB3m','C2XPy2u','BxvSDgLtzwXLy3q','DhnJB25MAwCUANnVBG','mty5lJi1nc4WlJa','CgfZC3rOCM91z2G','C2L6zq','yNL0zuXLBMD0Aa','wKfjx0fqsv9lrvK','CxvLCNK','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','Bg93','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','z2L0AhvI','Bw9Kzq','CgLK','BwLU','BgLUzvrLEhq','r2XVyG','ChjVy2vZC0v4AxrLza','Cgf0DgvYBG','BMv3vgv4Da','r09pr0Xfx0ntrv9dwa','C2vSzwn0Aw9UuMfUz2u','lMPWzW','D2HPy2GGCMC','y29TBwfUza','qxv0Ag9YAxPHDgLVBG','yMLVBwuUANnVBG','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','zxf1ywXZ','Bwv0yxrHz3m','BwnFzwLK','CgfJA2fNzs1SB2nRlMPZB24','Aw5KzxHpzG','B3v0z29PBMDdywXSCW','C2vYDMvY','y2XPzw50twv0ywrHDgfvCMW','BgLUzuvUza','vg9Vig1HBNKGyMfJA2DYB3vUzcbWCM9JzxnZzxmGCNvUBMLUzYaO','ks4GvxnLiejHC2HpDxrWDxqGDg8GCMvHzcbPDhmGB3v0Chv0igfUzcblAwXSu2HLBgWGDg8GC3rVCcbPDc4','igj5DgvZicHVCMLNAw5HBdOG','t0zg','vw50AxrSzwq','C3jJl2fNzw50l2fNzw50lNrZ','v2vIrMv0y2G','Cg5WBs1SB2nRlNLHBwW','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','lNrZEa','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','yw5ZD2vYCW','wZ0+nY04kcLD','ienHDxnLoIa','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','BwvZC2fNzq','Cgf0Ag5HBwu','zgLZy292zxj5','lM1QCW','mtGZodqZnJbHru1bBwO','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','sw52B2TLq29TBwfUza','B3rOzxi','CMfUzg9T','DxjP','ugf0AcbUB3qGzM91BMq6ia','C2L0ztO','BgfUz3vHz2u','lMnQCW','Aw1Hz2u','ksbB','AxngAw5PDgu','Aw52ywXPzf90B2rVx2LK','sw5MB3jTyxrPB24','Dhj1BMm','y3DK','CgfJA2fNzxm','Aw5PDgLHBgL6zq','C2vZC2LVBKLK','icHWAwqG','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','DhjHBNnMB3jTCW','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','zg9JDw1LBNrtEw1IB2W','B2f1DgG','mJqWlJaUmc4W','yNvUlMXVy2TI','l29WDc9OB21LyNjLDY9IAw4VCMC','o1TExg5DkJ8','xg5DkJ8','Aw1Hz2uVD2vICa','C29YDa','y29UDgv4Da','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','tM8GzgLHz25VC3rPy3m','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','yxr0CG','Aw5FChjVz3jLC3m','y2HPBgq','zgLZy292zxj5u3rHDgu','mtKYlJe2oc4WlJa','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','DxbKyxrL','ugfJA2fNzxm','Bwf4q29Uy3vYCMvUDa','oIbPzcbYzxf1AxjLza','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','CM91BMq','C3bHD25PBMC','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','lu5VuhjVzMLSzq','uhjVz3jHBuzPBgvZkhG4nIK','Dg90ywXeCM9WCgvK','DhnJ','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','r3jLCa','vw5RBM93BIb0B29SoIa','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','Aw50zwDLCG','icHZDgf0Dxm6ia','C2vUzfjLCxvLC3q','zgLHz25VC3rPy3m','mtaUmc4WlJa','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','Bw9KzwW','z29uB0rLzMLUAxrPB24','zgf0zxrPBwu','tgLUzsa','C2fMzq','Ahr0Chm6','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','zMXVB3i','zMXHDe1HCa','CgfYC2u','Aw52ywXPzf90B2rVx3bYAw9YAxr5','D2HLCMuGCMC','B2C6DxbKyxrLzf90Aw1L','CMCUzxHL','lMPZ','y2XLyw51Ca','mZyZnJeZnNLgzuPXrq','zg9TywLUCW','C25PChbLDa','C2HPzNq','q291BgqGBM90ihjLC29SDMuGAg9ZDa','C3rHCNq','B2jQzwn0','B3bLBG','Dw5PB24','mMrRte1QDG','mti3lJaUmc4W','v2LUr2v0','CNvUsw5cywnRz3jVDw5K','B3v0Chv0','ks4Gs2LSBcbVBMuGD2L0AcblAwXSu2HLBgWGyMvMB3jLihn0yxj0Aw5NigfUB3rOzxiU','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','CMvSyxrPDMu','yxjNDw1LBNriAw50','zgf0yq','DhnZzxj2zxiUANm','Bg9HzenVBw1HBMq','B25LCNjVCG','ChjLzML4','zgfYAW','C2nYAxb0','zMLSzq','zMLSztOVlW','zNvSzMLSBgvK','zMLUzfjLzMvYzw5Jzxm','CMvMAw5L','BhmGlwXH','lI4U','y2f0y2G','Dg9VBc1VDxrWDxqTB2zMBg9Hza','qMfJA2DYB3vUzcbLEgvJDxrPB24GAxmGBM90igf2ywLSywjSzsbPBIb0AgLZignVBNrLEhqU','C2v0','B3bLBMfPlxjLC3bVBNnLCW','AxneAxjLy3rVCNK','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','y29UDgvUDc10ExbL','cMbGya','Dg9mB3DLCKnHC2u','CMvWBgfJzq','qwXSia','z29Vz2XLlwnZzq','tM8GC3vJAcbMAwXLoIaN','Bwf4','Ahr0CdO','BgfZDeLUzgv4t2y','tuvesvvn','Aw5qCM9NCMvZCW','zgLYBMfTzq','ru5pru5u','lMPZB24','B25Jzq','C3rKzxjY','CgfYC2vjBNq','yxjNDw1LBNrZvgv4Da','C3rHDgu','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','yxv0BW','D2vI','B3b0Aw9UCW','CMvTB3zLrxzLBNrmAxn0zw5LCG','zMLSBa','l3vZCI9SB2nHBc9IAw4VCMC','yM9VBgvHBG','l3vZCI9IAw4VCMC','mti1ntfeCvvurMW','uhvIBgLZAgvKoIa','ntqWngTwEKPtta','mtKYlJaUmc4W','yxv0Aa','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','mJi0lJaUmc4W','BM93','uMvMDxnPBMCGDg8GzMv0y2GGysbUB24TChvIBgLJigfKzhjLC3m','BgLZDfrVB2XZ','lw5i','zgvSzxrL','o1TE','AMf2yxnJCMLWDhjLywn0','yxnJAwK','CMvTB3zL','Dg9vChbLCKnHC2u','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','Dg9Rzw5Z','y2fWywjPBgL0AwvZ','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','igj5DgvZicH0B3rHBdOG','z2v0t3DUuhjVCgvYDhLoyw1LCW','cGPbuKDvtuvovfm6ia','CMvZDwX0CW','Ag92zxi','Aw1Hz2vZ','DxrTx2nHBxbHAwDU','AxnfBMfIBgvK','vg9Vig1HBNKGCMvKAxjLy3rZ','ugf0AcbPCYbUB3qGysbMAwXLoIa','qxnRvxnLCLrVB2W','DhvYBMrVD24','ywn0AxzL','DgHLBG','B3bLBNjVDxrLCG','y2fJAgvK','yNvMzMvYq2HHCNm','BgLUzq','y2XPzw50sw5MB3jTyxrPB24','zMLSzvbHDgG','C2vUza','AxndB250zxH0','rMLSzsb3CML0DgvUigf0ia','Bwf4qNL0zxm','qMvHCMvYia','Bwv0yq','CMvNzxG','y2vPBa','y2fSBfrVB2W','CxvLC3rPB24T','A2v5yMLUzgLUz3m','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','BwvTB3j5','AgLNAa','DMvYAwzPzxi','DgfZAW','y29TBwfUzhm','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','BxrPBwu','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','AhrTBfnUAxbWzxq','ls1NBg9IpseUz2L0lYO','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','A2LSBfjLCxvLC3rLza','ywXSu2v0DgXLza','zw52','qwDLBNqGCNvUia','EwvZ','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','z2vUzxjHBa','y29KzvzLCMLMAwvY','r0LgodLH','DgL0Bgu','DhLWzxnJCMLWDa','zgv0ywLS','Dgv4DerVy3vTzw50l2rPze9Wzw4','yMfZAwm','DxrMoa','CMvZB2X2zq','A2LSBgvK','DMfSDwvZ','rMLSzuvKAxq','y29UzMLN','C2vYDMvYCW','BM9Kzv9TB2r1BgvZ','zMfPBgvK','AwDUB3jLt3v0Chv0','AhjLzG','ChvZAa','AM9PBG','ywrKrxzLBNrmAxn0zw5LCG','A2v5','BgLZDa','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','Axnoyu4','Bg9JywXLq29TCgfYzq','y2XPzw50CW','ywXSB3DLzfrVB2XZ','ChjPB3jPDhK','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','sgLUDa','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','rMv0y2GGDgLTzwqGB3v0','yxnZAwDU','BwfYA2rVD24','CMvZDwX0','yMLYDgH0Aw1L','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','phn5C3rLBs1Yzw1PBMrLCJ4','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','ls1NBg9Ipq','Dgv4Dc9ODg1S','te9dquXbufbeqvrb','y2fSBgjHy2TvCMW','uhjVDMLKzxiGBMfTzsbJyw5UB3qGyMuGzw1WDhK','yxbWzw5K','CMvJB3jK','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','BgfUzW','zxzPy3rjzK5LzwrLza','w291Dhb1Dcb0CNvUy2f0zwq6ia','D29YA3nWywnLu3LTyM9S','rMv0y2GGywjVCNrLzcbIEsb1C2vY','zMLYC3q','ls1JB2X1Bw4','ChjLChjVy2vZCW','Ahr0Ca','sw52ywXPzcbYzwDLEdOG','ChjLCgfYzunHBgXiAwvYyxjJAhK','DhLWzxnJCMLWDhjLywn0','zg5Zl3bYB21PC2vZ','Dg9tDhjPBMC','z2L0qNjHBMnO','Dhj1zwnVBg9Y','CgvUzgLUzW','qxzHAwXHyMXLignVBw1HBMrZoG','CgXHAw50zxH0','seLhsa','BNv2Aw4','y2fWq2HHCNm','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','C2vYDMvYtMfTzq','ig1HDgnO','Cgf0Aa','C3bSAxq','CMvXDwvZDhm','DxrTx3nVDxjJzq','Aw52ywXPzf90B2rVx2L0zw0','B3bLBKzPBgvZ','zxjYB3jZ','ChjVDg90ExbL','C2v2zxjPDhK','yxjNDw1LBNroyw1LCW','CxvLC3rPB24','mJy0mJuXn2LPA0XQtq','yMLVBwuUANnVBMm','vg9KB1DYAxrL','BhnW','B25szwrPCMvJDa','ig1Z','lNbUzW','uKLgrG','DxnLCM5HBwu','zgvMyxvSDen3za','yNjVA2vU','BNvTyMvY','C3r5Bgu','CMvHC29U','Dgf2AwX5','EMfP','yM0Ynq','y29TCgXLDgvK','y3jLyxrLzef0','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','vg9WAwmGC2v0ihrVici','yMLVBwu','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','C3vKBW','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','lMPWzwC','ANnVBG','zgLNzxn0','B3b0Aw9UywW','ls1MB2XSB3C','Dg91y2HgAwXL','BhnWu2vYDMLJzq','CMvHzen1CNnVCG','z2v0u3rHDhm','rxjYB3i','ls1NBg9I','z29Vz2XLq3nLq3G','Dg9WAwm','revfueLorLjbx0fqsv9lrvK','zw51Bq','ls0T','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','Aw5PDgLHBgL6yxrPB24','ywXS','twLJCM9ZB2z0','C2v0vg9KB3m','v2fYBMLUzW','cGOTls0kcG','y2HHDgDWDa','BwfUDwfS','zgvSAw1PDgvY','BM90Awz5','DgLTzw91De1Z','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','BwLUAw1HEa','y2fSBeLK','C2HLBgXjza','C3rYAw5N','s2LSBfnOzwXS','Dg9KB3ncEvnLC3nPB24','lMPZB25J','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','BgLUzu51Bq','revfufnfruTFqvbjx0Tfwq','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','Aw5ZDhj1y3rPB25Z','y29UDgvUDa','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','y2HHBMDL','Bg9JyxrPB24','zMLUywXnzxnZywDLvgv4Da','C3jJl3nOyxjLzc90ExbLCY50CW','w01duca','zMvUy2vK','CMvJzw5JEurHExm','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','y2XPzw50x3nLy3jLDf9WB3n0','C3rYAxbbBNnP','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','BwfW','t1bftKfjx0fqsv9lrvK','C2nYDwjfBNzlzxLZ','y3jSzG','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlIbtzxqGCNvUsw5cywnRz3jVDw5KoNrYDwuGzM9YigXVBMCTCNvUBMLUzYbJB21Tyw5KCYaOC2vYDMvYCYWGD2f0y2HLCNmPoIbPDcbYzxr1CM5ZigeGC2HLBgXjzcbPBw1LzgLHDgvSEsdIGjqGCMvHzcbVDxrWDxqGD2L0AcbcyxnOt3v0Chv0igfUzcbZDg9WigL0ihDPDgGGs2LSBfnOzwXSlIbetYbot1qGvvnfiejbu0GGve9ptcbMB3iGCMvHzcbMAwXLihvZzsbgAwXLuMvHzc4Gww91ie1vu1qGChjVDMLKzsbHignVBMnPC2uGygrLC2nYAxb0Aw9UycbLEhbSywLUAw5NihDOyxqGDgHLignVBw1HBMqGzg9LCYbHBMqGD2H5ihLVDsbHCMuGCNvUBMLUzYbPDcaODgHLigDVywWGAxqGywr2yw5JzxmPiokaLcbPDcbPCYbZAg93BIb0BYb0AguGDxnLCIbMB3iGDhjHBNnWyxjLBMn5igjLzM9YzsbLEgvJDxrPB24UifrOzsbKzwzHDwX0ihrPBwvVDxqGAxmG','zgvSzwDHDgvKlxj1BI0','mc4WlJaUma','A2LSBa','iYmGu2TPBgW6ia','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','C29Tzq','yxjNCW','r0Lusfvcx0fdq0vtu19ut0TftG','yw5ZAte2','lNrTCc4','C2HLBgXqyxrO','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','zxHPDa','zMLSzvzLCNnPB25Z','B2zM','zxHPDcbJB2rLia','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','mtCZmdu4vu54CMDv','DxrTx3rLCM0','tM8GyMfJA2DYB3vUzcbWCM9JzxnZihDPDgGGAwqG','y29Kzq','B2XKvgv4Da','lMjPBG','D2LUmZi','BgLNAhq','A2LUza','AgfZ','Dgf2AwX5qxbPs2v5','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','lu5Vtg9NBW','lMDPzG','mJK2nde1m1fICxPIAa','C2vUze5VDgLMAwnHDgLVBG','AwDUB3jL','ChvIBgLZAgvKqxq','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','Aw5JBhvKzq','vw5HDxrOB3jPEMvKrxjYB3i','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','tuLosu1bwf9bueLFs0vz','DgfZA2TPBgW','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','yxjYyxK','AxnbyNnVBhv0zq','ywXSB3DLzerPCNm','z29Vz2XLq3nLs2v5','oIbPBNzHBgLKihbYAw9YAxr5','y291BNrLCG','lNrZ','zw5K','Dg9VBhmVy2fSBa','mtCYlJe2lJaUma','B25oB3rPzMLJyxrPB24','uefusa','qvbjx0Tfwq','rMLSzu5LDW','otaWohPSBejiAG','lunVBw1HBMq','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','Bwf4rw50CMLLCW','ChjVDg9JB2W','D3jPDgu','C3rKAw4','Dgv4Da','CMLWz3jLCa','ie9sia','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','yNvUlMXVy2S','zMLUza','BxrPBwvnCW','lM10CW','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','C3bHD24','tunqihnLCNzLCIa','zw50CMLLCW','vgvYBwLUyxrLigeGyMfJA2DYB3vUzcbWCM9JzxnZihn0yxj0zwqGD2L0AcbcyxnOkhj1BKLUqMfJA2DYB3vUzdP0CNvLksWGAwrLBNrPzMLLzcbIEsbPDhmGC2HLBgXjzc4','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','Agv4','AgfUzgXL','z2nSAwq','BMfTzq','DgLTzvTKyxrLDgLTzv0','BgfIzwW','C3rKB3v0rgvJB2rLCG','CMvNAw9U','AxnfCNjVCG','wefjx0fqsv9lrvK','B3jPz2LUvg9VBenHBgXjza','ygbGANnVBGO','tM8GAg92zxiGAw5MB3jTyxrPB24','ywjVCNrLza'];_0x770d=function(){return _0x56f78b;};return _0x770d();}import{spawn as _0x5e1cde}from'child_process';import{statSync}from'fs';import*as _0x2fe994 from'os';import*as _0x4b071c from'path';import{StringDecoder as _0x3d9f8a}from'string_decoder';import{stat}from'fs/promises';import*as _0x440db6 from'path';function isPathInside(_0xe4dc5e,_0x18c523){const _0x37b79a={_0x2fd73e:0x1b0,_0x274a24:0x6d,_0x44508a:0x6c,_0x177377:0x3a,_0x544983:0x189},_0x54a7ac={_0x549b8a:0x1ae,_0x3fb66f:0x99},_0x338b81={_0x4602ff:0x16c};function _0x275dea(_0x5063f6,_0x3cfdc4,_0x5e047c,_0x236d0f){return _0x55c88d(_0x5063f6-_0x338b81._0x4602ff,_0x5063f6- -0x35f,_0x236d0f,_0x236d0f-0x1de);}const _0xd1b5dc=_0x440db6['resolve'](_0xe4dc5e);function _0x2bff80(_0xe487ea,_0x110942,_0x504d3e,_0x51f8c0){return _0x1e45aa(_0xe487ea-_0x54a7ac._0x549b8a,_0x110942-_0x54a7ac._0x3fb66f,_0x504d3e- -0x5e0,_0x51f8c0);}const _0x30c4ec=_0x440db6['relative'](_0xd1b5dc,_0x18c523);return _0x30c4ec===''||!_0x30c4ec[_0x2bff80(-_0x37b79a._0x2fd73e,-0x164,-_0x37b79a._0x274a24,-_0x37b79a._0x44508a)]('..')&&!_0x440db6[_0x2bff80(_0x37b79a._0x177377,0x2af,_0x37b79a._0x544983,0x21e)](_0x30c4ec);}function resolveWorkspacePath(_0x2b9e40,_0x25e418){return resolveAllowedPath(_0x2b9e40,[],_0x25e418);}function resolveAllowedPath(_0x4d90c4,_0x3637f9,_0x414888){const _0x596553={_0x53edf9:0x284,_0x2e60cb:0x294,_0x361c92:0x125,_0x3e2012:0x339,_0xa4314f:0x1f9,_0x4684d9:0x158,_0x5e01d8:0x145,_0x2755b8:0xbc,_0x1c4063:0x5b,_0x17fb7f:0xe9,_0x28fefc:0x37},_0x4c0276={_0x3152c0:0x3e,_0x10d2fc:0x540},_0x29fc2f={_0x174506:0x15b,_0x48fe01:0x34d,_0x279641:0x1eb},_0x3570fd=_0x440db6[_0x244ceb(_0x596553._0x53edf9,_0x596553._0x2e60cb,0x158,_0x596553._0x361c92)](_0x4d90c4),_0x3d19d6=_0x440db6['resolve'](_0x3570fd,_0x414888);function _0x9d8faf(_0x1ed49a,_0x5ea4f9,_0x22dd4c,_0x372c97){return _0x55c88d(_0x1ed49a-_0x29fc2f._0x174506,_0x372c97- -_0x29fc2f._0x48fe01,_0x22dd4c,_0x372c97-_0x29fc2f._0x279641);}function _0x244ceb(_0x322984,_0x1bbba7,_0x52cadb,_0x583b19){return _0x1e45aa(_0x322984-0x1a9,_0x1bbba7-_0x4c0276._0x3152c0,_0x52cadb- -_0x4c0276._0x10d2fc,_0x1bbba7);}const _0x267e2e=[_0x3570fd,..._0x3637f9[_0x244ceb(0xfa,_0x596553._0x3e2012,_0x596553._0xa4314f,0x208)](_0x6e73e0=>_0x440db6['resolve'](_0x6e73e0))];if(_0x267e2e[_0x9d8faf(0xc8,_0x596553._0x4684d9,0x282,_0x596553._0x5e01d8)](_0x4e473d=>isPathInside(_0x4e473d,_0x3d19d6)))return _0x3d19d6;throw new ToolExecutionError(_0x9d8faf(_0x596553._0x2755b8,-_0x596553._0x1c4063,_0x596553._0x17fb7f,-_0x596553._0x28fefc)+_0x414888,{'path':_0x414888,'rootDir':_0x3570fd,'allowedDirs':_0x267e2e});}async function assertWorkspaceFile(_0x281eb5){const _0x1aa999={_0x2c6c50:0x10e,_0x4a3700:0x37};function _0x52b237(_0x47aa34,_0x542e1b,_0x1ddc89,_0x2a7c20){return _0x1e45aa(_0x47aa34-0x1ea,_0x542e1b-0xac,_0x47aa34- -0x671,_0x2a7c20);}const _0x54da2f=await stat(_0x281eb5);if(!_0x54da2f['isFile']())throw new ToolExecutionError(_0x52b237(-0xb,-0x8b,_0x1aa999._0x2c6c50,_0x1aa999._0x4a3700)+_0x281eb5,{'path':_0x281eb5});}function isProbablyBinary(_0x4dd40a){const _0x4b8d2a={_0x9de18d:0xeb,_0x3bd371:0x363,_0x151fe7:0xaa};function _0x457d75(_0x5c48cd,_0x32d712,_0x38a69f,_0x530abf){return _0x55c88d(_0x5c48cd-_0x4b8d2a._0x9de18d,_0x5c48cd- -_0x4b8d2a._0x3bd371,_0x530abf,_0x530abf-_0x4b8d2a._0x151fe7);}return _0x4dd40a[_0x457d75(0x195,0x1b4,0x19a,0x113)](0x0);}var DEFAULT_TIMEOUT_MS=0x7530,DEFAULT_DESCRIPTION=_0x55c88d(0x39f,0x48c,0x58c,0x564)+DEFAULT_TIMEOUT_MS+'ms';function buildChildEnv(_0x550a74,_0x23ab1e){const _0x5cbc89={_0x3e0ba2:0x42,_0xfbd61a:0xde,_0x537d97:0xb6,_0xb06643:0xbc,_0x57482b:0x9a,_0x130ddf:0x89,_0xdb1cf6:0x150,_0x52e7e9:0x6d,_0x22e07a:0xe,_0x5a3347:0x1d0,_0x44b2c1:0x43,_0x5e2aca:0x34d,_0x5db076:0x8c,_0x361508:0xa0,_0x3336cd:0x205,_0x53e518:0xb0},_0x5755ee={_0x3aa970:0x6cc},_0x28d622={_0x816c8a:0x5f5};function _0x5d7afd(_0x403e63,_0x378b4c,_0x693ae1,_0x2cbb16){return _0x1e45aa(_0x403e63-0x1d2,_0x378b4c-0x11b,_0x2cbb16- -_0x28d622._0x816c8a,_0x403e63);}const _0x117d51={...process[_0x278385(-_0x5cbc89._0x3e0ba2,_0x5cbc89._0xfbd61a,_0x5cbc89._0x537d97,_0x5cbc89._0xb06643)],..._0x550a74??{}};function _0x278385(_0x25346c,_0x582811,_0x86d7c2,_0x1b0ad3){return _0x1e45aa(_0x25346c-0x45,_0x582811-0xbe,_0x25346c- -_0x5755ee._0x3aa970,_0x582811);}if(_0x23ab1e['length']===0x0)return _0x117d51;if(_0x2fe994[_0x5d7afd(0xd6,0x2e6,_0x5cbc89._0x57482b,0x204)]()===_0x278385(_0x5cbc89._0x130ddf,0x16e,0x1fa,_0x5cbc89._0xdb1cf6)){const _0x56eea6=new Set(_0x23ab1e[_0x278385(_0x5cbc89._0x52e7e9,_0x5cbc89._0x22e07a,_0x5cbc89._0x5a3347,-_0x5cbc89._0x44b2c1)](_0x217ed3=>_0x217ed3['toLowerCase']()));for(const _0x124916 of Object[_0x5d7afd(0x31b,_0x5cbc89._0x5e2aca,0x30c,0x23c)](_0x117d51)){if(_0x56eea6[_0x278385(_0x5cbc89._0x5db076,0x1c,0x6a,-0xb2)](_0x124916[_0x278385(-_0x5cbc89._0x361508,-_0x5cbc89._0x3336cd,_0x5cbc89._0x53e518,_0x5cbc89._0x44b2c1)]()))delete _0x117d51[_0x124916];}}else{for(const _0xf7d397 of _0x23ab1e)delete _0x117d51[_0xf7d397];}return _0x117d51;}function mapSpawnError(_0x1b5e6a,_0x5053df){const _0x37abb5={_0x545963:0x303,_0x1ab98b:0x28d,_0x32bf16:0x671,_0x8bb900:0x763},_0x2382ea={_0xb3ac51:0x79},_0x415018={_0x4ad017:0xc2,_0x270647:0xfa};if(isErrnoException(_0x1b5e6a)&&_0x1b5e6a[_0x22c8c1(0x31b,_0x37abb5._0x545963,0x392,_0x37abb5._0x1ab98b)]==='ENOENT')return new ToolExecutionError(_0xea2b1f(0x7ca,0x961,0x7ea,0x8c9)+_0x5053df[_0xea2b1f(_0x37abb5._0x32bf16,0x5ef,_0x37abb5._0x8bb900,0x5f4)],_0x5053df);function _0x22c8c1(_0x128244,_0x3e70d6,_0x715dd1,_0x576bfa){return _0x1e45aa(_0x128244-_0x415018._0x4ad017,_0x3e70d6-_0x415018._0x270647,_0x576bfa- -0x4c5,_0x128244);}function _0xea2b1f(_0x1b1836,_0x497812,_0x22db99,_0x2c80bf){return _0x55c88d(_0x1b1836-0x1d0,_0x22db99-0x2cc,_0x497812,_0x2c80bf-_0x2382ea._0xb3ac51);}return new ToolExecutionError(_0x1b5e6a instanceof Error?_0x1b5e6a['message']:String(_0x1b5e6a),_0x5053df);}function shellExists(_0x2650e1){const _0x1b1318={_0x16d197:0xe1,_0x2c3680:0x57,_0x475471:0x464,_0xe14d93:0x5bb},_0x378158={_0x9f2358:0x755};function _0x4092ed(_0x40b756,_0x18b90f,_0x59a530,_0x369874){return _0x1e45aa(_0x40b756-0x148,_0x18b90f-0x1b,_0x59a530-0x38,_0x40b756);}function _0x46708a(_0x3a8047,_0x439102,_0x4473fd,_0x4b7c8c){return _0x1e45aa(_0x3a8047-0x16e,_0x439102-0x195,_0x4b7c8c- -_0x378158._0x9f2358,_0x3a8047);}try{const _0x5e0483=statSync(_0x2650e1);return _0x5e0483[_0x46708a(-_0x1b1318._0x16d197,-0x65,0x99,_0x1b1318._0x2c3680)]()&&(_0x5e0483[_0x4092ed(_0x1b1318._0x475471,0x5a8,_0x1b1318._0xe14d93,0x69e)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x7471dc){const _0xbdcde1={_0xd2f47b:0x66c,_0x504bf8:0x5e8,_0x316c2e:0x4f6,_0x165250:0x3c0,_0xb3152a:0x380,_0x5284c0:0x579,_0x39c2da:0x3d1,_0x432c6a:0x47c,_0x5f3dba:0x502},_0x3983d4={_0x1ef19d:0xd6,_0x2fc13c:0x2};if(_0x7471dc)return _0x7471dc;if(_0x2fe994['platform']()===_0x2abcfe(0x7e6,_0xbdcde1._0xd2f47b,_0xbdcde1._0x504bf8,0x6f1))return process['env']['ComSpec']||_0x48a436(0x38f,0x409,_0xbdcde1._0x316c2e,_0xbdcde1._0x165250);const _0x2bd38c=['/bin/bash',_0x48a436(0x41f,0x4a3,_0xbdcde1._0xb3152a,_0xbdcde1._0x5284c0),'/usr/bin/bash',_0x48a436(_0xbdcde1._0x39c2da,0x382,0x2e9,_0xbdcde1._0x432c6a)];function _0x2abcfe(_0x5c2439,_0x569f4a,_0x13b2aa,_0x2ef65d){return _0x1e45aa(_0x5c2439-0x13c,_0x569f4a-0xaa,_0x569f4a- -0xe9,_0x5c2439);}for(const _0x2f3b87 of _0x2bd38c){if(shellExists(_0x2f3b87))return _0x2f3b87;}function _0x48a436(_0x200580,_0x599db4,_0x2697b4,_0x41587f){return _0x55c88d(_0x200580-_0x3983d4._0x1ef19d,_0x200580- -0x187,_0x599db4,_0x41587f-_0x3983d4._0x2fc13c);}const _0x2648e4=process[_0x2abcfe(0x5dc,0x5a1,_0xbdcde1._0x5f3dba,0x573)]['SHELL'];if(_0x2648e4&&shellExists(_0x2648e4))return _0x2648e4;return'/bin/bash';}function buildShellArgs(_0x2ebd53,_0x51b927){const _0x2e11d4={_0x3360a0:0x438,_0x9dc26d:0x4ed,_0x526b9e:0x3f7,_0x59067c:0x613,_0x5739b3:0x65f,_0x29cd19:0xa0,_0x222ad8:0x116,_0x3c91b0:0x132,_0x4fee61:0x22c,_0xc5977f:0x341},_0x3a219d={_0xdd4740:0xd7},_0xc13908={_0x365c82:0x464,_0x14fd7a:0x14a};function _0x40c761(_0x50feab,_0x1e5f96,_0x1dec6,_0x3e8412){return _0x55c88d(_0x50feab-0x18a,_0x1dec6- -_0xc13908._0x365c82,_0x1e5f96,_0x3e8412-_0xc13908._0x14fd7a);}function _0xef9a8b(_0x6c0868,_0xe1a99b,_0x49bfdc,_0x3eafc7){return _0x55c88d(_0x6c0868-_0x3a219d._0xdd4740,_0x6c0868- -0x6c,_0xe1a99b,_0x3eafc7-0x1e);}if(_0x2fe994['platform']()===_0xef9a8b(_0x2e11d4._0x3360a0,_0x2e11d4._0x9dc26d,0x4bc,_0x2e11d4._0x526b9e)){const _0x5e60f7=/cmd(\.exe)?$/i[_0xef9a8b(0x4f3,_0x2e11d4._0x59067c,0x5b1,_0x2e11d4._0x5739b3)](_0x51b927);return _0x5e60f7?['/d','/s','/c',_0x2ebd53]:[_0x40c761(_0x2e11d4._0x29cd19,-_0x2e11d4._0x222ad8,0x46,0xfa),_0x40c761(-0x125,-0x149,-_0x2e11d4._0x3c91b0,-_0x2e11d4._0x4fee61),_0xef9a8b(0x45a,0x457,0x3fe,_0x2e11d4._0xc5977f),_0x2ebd53];}return['-c',_0x2ebd53];}function resolveWorkingDirectory(_0x5ca465,_0x34d708,_0x30a544){const _0xd7ea41={_0x336904:0x55,_0x107e64:0x1f,_0x11dd0e:0x502,_0x4c3916:0x40d},_0x352eaa={_0x3a91c0:0x1ab,_0x5dc028:0x383},_0x6078fa={_0x3686f8:0xe0},_0x458d40=resolveAllowedPath(_0x34d708,_0x30a544,_0x5ca465??'.');function _0x4f4def(_0x2b3a9e,_0x3d0d8f,_0x59ca13,_0x16fa0b){return _0x1e45aa(_0x2b3a9e-_0x6078fa._0x3686f8,_0x3d0d8f-0x1da,_0x59ca13- -0x198,_0x2b3a9e);}function _0x350cdf(_0x3e54ae,_0x51af70,_0x3959c9,_0x19debd){return _0x55c88d(_0x3e54ae-_0x352eaa._0x3a91c0,_0x51af70- -_0x352eaa._0x5dc028,_0x19debd,_0x19debd-0x1a3);}try{const _0x3d82ff=statSync(_0x458d40);if(!_0x3d82ff['isDirectory']())throw new ToolExecutionError(_0x350cdf(-0x182,-_0xd7ea41._0x336904,_0xd7ea41._0x107e64,-0x16d)+_0x458d40,{'cwd':_0x458d40});return _0x458d40;}catch(_0x5d52a2){if(_0x5d52a2 instanceof ToolExecutionError)throw _0x5d52a2;throw new ToolExecutionError(_0x4f4def(_0xd7ea41._0x11dd0e,_0xd7ea41._0x4c3916,0x459,0x38f)+_0x458d40,{'cwd':_0x458d40});}}function appendChunk(_0x25a286,_0x39cf2c,_0x5733fd,_0xb7e112,_0x4906c3){const _0x2d49fe={_0x5e8a74:0x3c7,_0x1c2d06:0x4ec,_0x2885d3:0x40b,_0xe4a269:0x5ca,_0x12c8b3:0x51a,_0x4ef166:0x443,_0xbc147c:0x3e3,_0x50fddd:0x5c5},_0x3b072a={_0x56050b:0x96,_0x59a45a:0x1f1},_0x314129={_0x2df1a4:0x78,_0x38cfa2:0xa3},_0x36bfaf=_0xb7e112?stripAnsiAndControls(_0x5733fd):_0x5733fd;if(_0x36bfaf[_0x432711(_0x2d49fe._0x5e8a74,_0x2d49fe._0x1c2d06,_0x2d49fe._0x2885d3,0x406)]===0x0)return;_0x25a286[_0xfd2bff(_0x2d49fe._0xe4a269,_0x2d49fe._0x12c8b3,0x5e5,_0x2d49fe._0x4ef166)](_0x36bfaf);function _0x432711(_0x492e3e,_0x1f759b,_0x530bf8,_0x2c5787){return _0x55c88d(_0x492e3e-_0x314129._0x2df1a4,_0x492e3e- -0x16a,_0x2c5787,_0x2c5787-_0x314129._0x38cfa2);}function _0xfd2bff(_0x3716c2,_0x2c3fa9,_0x575eda,_0x4a4599){return _0x1e45aa(_0x3716c2-_0x3b072a._0x56050b,_0x2c3fa9-_0x3b072a._0x59a45a,_0x2c3fa9- -0x188,_0x4a4599);}_0x39cf2c[_0xfd2bff(_0x2d49fe._0xbc147c,0x51a,0x437,_0x2d49fe._0x50fddd)](_0x36bfaf),_0x4906c3();}function createBashTool(_0xbebfe5={}){const _0x3e60be={_0x51cdfd:0x267,_0x2bc49c:0x260,_0x3255e2:0x6f3,_0x34d435:0x6e7,_0x219de4:0x81a,_0x149646:0x738,_0x47bf92:0x6fb,_0x4b6ca3:0x790,_0x12b3a8:0x80c,_0x22244f:0x915,_0x2aa17d:0x2d5,_0x554eb1:0x146,_0x4c31b8:0x24b,_0x456ed8:0x734,_0x2f0cd0:0x782,_0x15442f:0x7b1,_0x4ebc7c:0x391,_0x1a76a8:0x29d,_0x391eea:0x251,_0x5d40e8:0x7c4,_0x11600c:0x839,_0x36f148:0x678,_0x1dafe6:0xe7,_0x589c9e:0x198,_0x41bc52:0x4b6,_0x5e36ae:0x6f3,_0x52e929:0xad,_0x4c2f4a:0x87,_0x45e627:0x15b,_0x422f48:0xa5,_0x42093d:0x8b0,_0x1c6cda:0x840},_0x195f42={_0x1987ba:0x20a,_0x30f129:0x355,_0xb1133e:0x52e,_0x5054bb:0x3eb,_0x6b5748:0x3b0,_0x402239:0x2cd,_0x3b647f:0x365,_0xd0e1a6:0x616,_0x28d103:0x30b,_0x4945e0:0x19e,_0x162492:0xaf,_0x3a041d:0x226,_0x143e39:0x2c4,_0x20a3ee:0x486,_0x44595c:0x530,_0x4919a6:0x16e,_0x42e21a:0x176,_0x338ccf:0x537,_0x233130:0x40b,_0x3179fa:0x3c9,_0x11e27a:0x33f,_0x2565c3:0x34c,_0x4068ae:0x374,_0x2d2ad7:0x2fc,_0x50390c:0x363,_0x5d35d2:0x43a,_0x344ef9:0x496,_0x237579:0x454,_0x328d66:0x33e,_0x4f47b:0x22a,_0x5cd426:0x332,_0x57f450:0x5a0,_0x2617de:0x487,_0x5bcf35:0x449,_0x14858d:0x442,_0x2d572a:0x5ba,_0x39928e:0x50a,_0x1277cf:0xd1,_0xf36a9e:0x4af,_0x42b740:0x60f,_0x2f36db:0xc9,_0x39c784:0x137,_0x2c9b5e:0x17a,_0x15b03f:0x186,_0x1c3a47:0x218,_0x194975:0xe5,_0x3e6fb9:0x40f,_0x13695f:0x468,_0x3aca09:0x277,_0x2fa26a:0x2fd,_0x513846:0x272,_0x20493d:0x1a2,_0x5bd1f3:0x21f,_0x5b873b:0xad,_0x34fa9a:0x17c,_0xda27bb:0x514,_0x9b716c:0x338,_0x1eece1:0x20d,_0x519aee:0x2fb,_0x2d7bde:0x269,_0x4a92a7:0x168,_0x5c6e13:0x2a5,_0x1a4768:0x4ab,_0x24f505:0x3db,_0x26d7b2:0x2c0,_0x36c7b8:0x4a9,_0x5cfb05:0x341,_0x5f5de7:0x49d,_0xd406a6:0x5ca,_0x2d8cb1:0x504,_0x6514c8:0x31f,_0x1911c6:0x276,_0x2225bd:0x261,_0x4b8df6:0x113,_0x1bc80c:0x283,_0x2fbb20:0x317,_0x397dc0:0xb7,_0x53a167:0x1f4,_0x3bedd5:0x9a,_0x39339b:0x17e,_0x4cbe09:0x3be,_0x187e13:0x378,_0x4a046a:0x4bd,_0x1383cb:0x6ec,_0x321ab9:0x5a4,_0xf98ec6:0x508,_0x27ca5a:0x4a2,_0x4d2ffb:0x519,_0x22ab34:0x520,_0xbbb849:0x5dd,_0x5f3175:0x1e4,_0x672214:0x208,_0x322dee:0x46c,_0x3a5f61:0x423,_0x1f650b:0x3e1,_0x12240d:0x4c9,_0x9a4090:0xe7,_0x2ed459:0x252,_0x1e76ec:0x17b,_0x449284:0x2e9,_0x43bf5f:0x2b8,_0x287840:0x402,_0x3cd365:0x490,_0x27b0ea:0x446,_0x2a8cd8:0x450,_0x2f399a:0x4e9,_0x1d631f:0x370,_0x33affb:0x32d,_0x4e8330:0x2cb,_0x3f58ea:0x3c8,_0x5216be:0x522,_0x3e7aa5:0x411,_0x2c25cc:0x3cd,_0x58fbef:0x1fc,_0x247dda:0x353,_0x148202:0x3c0,_0x18fed2:0x227,_0x2cb6a7:0x2f5},_0x17ea0e={_0x453b07:0x172},_0xca3899={_0x4204bf:0x78b,_0x31d7b0:0x6d6},_0x5c9aaa={_0x3525e5:0x1df,_0x22dd47:0x1f2},_0x29b371={_0x2b9d8f:0x70,_0xa4db27:0x162},_0x1f13f6={_0x5e2b60:0x17e},_0x6893cd=_0x4b071c[_0x21be36(_0x3e60be._0x51cdfd,0x2c2,_0x3e60be._0x2bc49c,0x1ae)](_0xbebfe5[_0x21be36(0x184,0x35a,0x112,0x204)]??process[_0x128166(0x4bf,0x58d,_0x3e60be._0x3255e2,_0x3e60be._0x34d435)]()),_0x103b0f=_0xbebfe5[_0x128166(_0x3e60be._0x219de4,_0x3e60be._0x149646,_0x3e60be._0x47bf92,_0x3e60be._0x4b6ca3)]??[];function _0x128166(_0x1bbb10,_0x2e86fc,_0x412e0c,_0x3c1ccd){return _0x1e45aa(_0x1bbb10-_0x1f13f6._0x5e2b60,_0x2e86fc-0x149,_0x2e86fc- -0x32,_0x412e0c);}const _0x4b158a=_0xbebfe5[_0x128166(_0x3e60be._0x12b3a8,0x78f,_0x3e60be._0x22244f,0x902)]??DEFAULT_TIMEOUT_MS,_0x15bc55=_0xbebfe5[_0x21be36(_0x3e60be._0x2aa17d,_0x3e60be._0x554eb1,0x251,_0x3e60be._0x4c31b8)]??!![],_0x11a0fc=_0xbebfe5[_0x128166(0x783,0x75e,_0x3e60be._0x456ed8,0x816)]??_0x128166(0x8f3,_0x3e60be._0x2f0cd0,0x78d,_0x3e60be._0x15442f),_0xb33168=_0xbebfe5[_0x21be36(_0x3e60be._0x4ebc7c,0x164,_0x3e60be._0x1a76a8,_0x3e60be._0x391eea)]??[];function _0x21be36(_0x4373d4,_0x25f0a3,_0x171a47,_0x27b83f){return _0x55c88d(_0x4373d4-_0x29b371._0x2b9d8f,_0x27b83f- -0x239,_0x171a47,_0x27b83f-_0x29b371._0xa4db27);}const _0x21ad08=_0xbebfe5[_0x128166(0x76d,0x76d,0x65d,0x8ce)];return defineTool({'name':_0x11a0fc,'description':_0xbebfe5[_0x128166(0x656,_0x3e60be._0x5d40e8,_0x3e60be._0x11600c,_0x3e60be._0x36f148)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':'string'},'description':{'type':'string','description':'A\x20concise\x20explanation\x20of\x20what\x20this\x20command\x20does\x20and\x20why\x20you\x20are\x20running\x20it\x20—\x20the\x20goal\x20it\x20advances.\x20Shown\x20to\x20the\x20user\x20before\x20execution.\x20Be\x20specific,\x20e.g.\x20\x27Run\x20the\x20auth\x20tests\x20to\x20verify\x20the\x20token-refresh\x20fix\x27\x20rather\x20than\x20\x27run\x20tests\x27.'},'cwd':{'type':_0x21be36(_0x3e60be._0x1dafe6,0x233,_0x3e60be._0x589c9e,0x235)},'timeoutMs':{'type':_0x128166(0x5ca,0x6be,0x7ce,0x6a4)},'ignoreOutput':{'type':_0x128166(_0x3e60be._0x41bc52,0x613,0x52c,_0x3e60be._0x5e36ae)},'runInBackground':{'type':_0x21be36(_0x3e60be._0x52e929,_0x3e60be._0x4c2f4a,0x24a,_0x3e60be._0x45e627)}},'required':[_0x21be36(-0x87,0x1ab,-0x4,_0x3e60be._0x422f48),_0x128166(_0x3e60be._0x42093d,0x7c4,0x777,_0x3e60be._0x1c6cda)]},async *'execute'(_0x37489f,_0x3a442b){const _0x317fcc={_0x2b1709:0x198,_0x45368c:0x7fb,_0x6bd2ed:0x727,_0x3b905f:0x2a3},_0xa92a76={_0x4b1d28:0x3f1,_0x468e9f:0x8cd,_0xc1372e:0x7a8,_0x4ce401:0x750},_0x4d286b={_0x466b12:0x55a,_0x237414:0x635,_0x14b9d5:0x5e6,_0x263079:0x31a,_0x5288ad:0x344,_0x46fe93:0x446,_0x2cc382:0x38a},_0x1d397c={_0x5873b7:0x390,_0x573ac3:0x3f6,_0xb363fc:0x12b,_0x19f03f:0x3fe,_0x2aeb90:0x282},_0xc3aac0={_0x1a7590:0x2f},_0x101783={_0x58bf3c:0x2f,_0x12a338:0x193},_0x2d72be={_0x105096:0x1b1,_0x5eb5b3:0x34c,_0x588266:0x16d},_0x385f93={_0x1b66c1:0x19a,_0x3e627a:0x228},_0xf43455=_0x37489f[_0xf180f8(_0x195f42._0x1987ba,0x2f8,_0x195f42._0x30f129,0x32a)]??_0x4b158a;if(!Number['isFinite'](_0xf43455)||_0xf43455<0x1)throw new ToolExecutionError(_0x3c837e(_0x195f42._0xb1133e,_0x195f42._0x5054bb,0x351,_0x195f42._0x6b5748),{'command':_0x37489f[_0x3c837e(0x382,_0x195f42._0x402239,_0x195f42._0x3b647f,0x2f0)]});throwIfAborted(_0x3a442b[_0x3c837e(0x611,0x5a4,0x658,_0x195f42._0xd0e1a6)]);const _0x29f1bb=resolveWorkingDirectory(_0x37489f[_0xf180f8(_0x195f42._0x28d103,_0x195f42._0x4945e0,_0x195f42._0x162492,0xfb)],_0x6893cd,_0x103b0f),_0x5a9943=_0x37489f[_0xf180f8(_0x195f42._0x3a041d,0x27f,0x304,_0x195f42._0x143e39)]??![],_0x337c90=resolveDefaultShell(_0xbebfe5[_0x3c837e(0x55d,_0x195f42._0x20a3ee,0x392,_0x195f42._0x44595c)]),_0x5be6a6=buildShellArgs(_0x37489f[_0xf180f8(0x25e,_0x195f42._0x4919a6,_0x195f42._0x42e21a,0xcd)],_0x337c90),_0x233d27=_0x2fe994[_0x3c837e(0x424,_0x195f42._0x338ccf,_0x195f42._0x233130,_0x195f42._0x3179fa)]()===_0x3c837e(_0x195f42._0x11e27a,0x493,0x439,0x612);if(_0x37489f[_0x3c837e(0x36b,_0x195f42._0x2565c3,0x38e,_0x195f42._0x4068ae)]){if(!_0x21ad08)throw new ToolExecutionError(_0x3c837e(_0x195f42._0x2d2ad7,_0x195f42._0x50390c,0x397,0x406),{'command':_0x37489f['command']});throwIfAborted(_0x3a442b['signal']);let _0x4e038d;try{_0x4e038d=_0x5e1cde(_0x337c90,_0x5be6a6,{'cwd':_0x29f1bb,'env':buildChildEnv(_0xbebfe5[_0x3c837e(_0x195f42._0x5d35d2,0x3c8,_0x195f42._0x344ef9,_0x195f42._0x237579)],_0xb33168),'stdio':[_0xf180f8(0x3fc,_0x195f42._0x328d66,_0x195f42._0x4f47b,_0x195f42._0x5cd426),_0xf180f8(_0x195f42._0x57f450,0x442,_0x195f42._0x2617de,_0x195f42._0x5bcf35),_0xf180f8(0x38f,_0x195f42._0x14858d,_0x195f42._0x2d572a,_0x195f42._0x39928e)],'shell':![],'windowsHide':!![],'detached':!_0x233d27});}catch(_0x1c867a){throw mapSpawnError(_0x1c867a,{'command':_0x37489f[_0xf180f8(0x105,_0x195f42._0x4919a6,0xea,_0x195f42._0x1277cf)],'cwd':_0x29f1bb,'shellPath':_0x337c90});}let _0x484e8e;try{_0x484e8e=_0x21ad08[_0x3c837e(_0x195f42._0xf36a9e,0x4c5,0x42b,_0x195f42._0x42b740)]({'child':_0x4e038d,'command':_0x37489f[_0xf180f8(_0x195f42._0x2f36db,0x16e,_0x195f42._0x39c784,_0x195f42._0x2c9b5e)],'cwd':_0x29f1bb,'stripAnsi':_0x15bc55});}catch(_0x5e5ba0){_0x4e038d[_0xf180f8(_0x195f42._0x15b03f,_0x195f42._0x1c3a47,_0x195f42._0x194975,0x157)](_0xf180f8(_0x195f42._0x3e6fb9,0x387,0x3c8,_0x195f42._0x13695f),()=>{});try{killProcessGroup(_0x4e038d,_0x233d27);}catch{}throw _0x5e5ba0;}return createToolOutput(_0xf180f8(_0x195f42._0x3aca09,0x39e,0x40b,0x21f)+_0x484e8e[_0xf180f8(0x18f,_0x195f42._0x2fa26a,0x27f,0x455)]+_0xf180f8(_0x195f42._0x513846,_0x195f42._0x20493d,0x252,0x31e)+(_0x484e8e[_0xf180f8(-0x10,0x163,_0x195f42._0x5bd1f3,_0x195f42._0x5b873b)]??'?')+_0xf180f8(0x2d1,_0x195f42._0x34fa9a,0x5f,0xc0),{'shellId':_0x484e8e[_0x3c837e(0x523,0x45c,_0x195f42._0xda27bb,0x3da)],'status':_0x484e8e['status'],'command':_0x484e8e[_0x3c837e(0x2dd,0x2cd,_0x195f42._0x9b716c,0x1b1)],'description':_0x37489f['description'],'cwd':_0x484e8e[_0x3c837e(0x3eb,_0x195f42._0x2fa26a,0x2a3,0x3ed)],'pid':_0x484e8e[_0x3c837e(_0x195f42._0x1eece1,0x2c2,0x27f,0x37b)]??null});}let _0x4fef73;try{_0x4fef73=_0x5e1cde(_0x337c90,_0x5be6a6,{'cwd':_0x29f1bb,'env':buildChildEnv(_0xbebfe5[_0xf180f8(_0x195f42._0x519aee,_0x195f42._0x2d7bde,_0x195f42._0x4a92a7,0x173)],_0xb33168),'stdio':_0x5a9943?[_0xf180f8(0x33a,0x33e,_0x195f42._0x5c6e13,0x21f),_0xf180f8(_0x195f42._0x1a4768,0x33e,_0x195f42._0x24f505,_0x195f42._0x26d7b2),_0xf180f8(_0x195f42._0x36c7b8,0x33e,0x2ef,_0x195f42._0x5cfb05)]:[_0x3c837e(0x491,_0x195f42._0x5f5de7,0x618,0x342),_0x3c837e(0x4b3,0x5a1,0x569,_0x195f42._0xd406a6),_0xf180f8(0x3b9,0x442,_0x195f42._0x2d8cb1,0x4f9)],'shell':![],'windowsHide':!![],'detached':!_0x233d27});}catch(_0x9571fa){throw mapSpawnError(_0x9571fa,{'command':_0x37489f['command'],'cwd':_0x29f1bb,'shellPath':_0x337c90});}const _0x4c1362=[],_0x4dacb8=[],_0x2b3581=new _0x3d9f8a(_0xf180f8(_0x195f42._0x6514c8,_0x195f42._0x1911c6,_0x195f42._0x2225bd,_0x195f42._0x4b8df6)),_0x35c907=new _0x3d9f8a('utf8');function _0x3c837e(_0x2d3ee7,_0x21611f,_0x3f2a20,_0x21df87){return _0x21be36(_0x2d3ee7-_0x385f93._0x1b66c1,_0x21611f-0x127,_0x3f2a20,_0x21611f-_0x385f93._0x3e627a);}let _0xcdb3ec,_0x9b8592=![],_0x1fbd5f;const _0x1b81b6=()=>{if(!_0xcdb3ec)return;const _0x579a7d=_0xcdb3ec;_0xcdb3ec=void 0x0,_0x579a7d();},_0x2cc6e5=async()=>{if(_0x4dacb8[_0x411c7c(-0x19,0x75,_0x5c9aaa._0x3525e5,_0x5c9aaa._0x22dd47)]>0x0||_0x9b8592)return;function _0x411c7c(_0x37d78c,_0x2cfd7d,_0x35cddc,_0x2fb352){return _0xf180f8(_0x37d78c-_0x2d72be._0x105096,_0x2cfd7d- -_0x2d72be._0x5eb5b3,_0x35cddc-_0x2d72be._0x588266,_0x35cddc);}await new Promise(_0x481a7c=>{_0xcdb3ec=_0x481a7c;});},_0x101718=_0x1461b0=>{const _0x55ed9b={_0x4153f8:0x1c7};function _0x44b8b1(_0x1b3631,_0x4600fb,_0x49a284,_0x7beb13){return _0xf180f8(_0x1b3631-0x1f,_0x49a284-0x37c,_0x49a284-_0x55ed9b._0x4153f8,_0x1b3631);}appendChunk(_0x4c1362,_0x4dacb8,_0x2b3581[_0x44b8b1(_0xca3899._0x4204bf,0x693,_0xca3899._0x31d7b0,0x7e8)](_0x1461b0),_0x15bc55,_0x1b81b6);},_0x45adbc=_0x49683b=>{const _0x11dfcb={_0x210a91:0x4b3,_0x1e306a:0xe3};function _0x528ff6(_0x3fd884,_0x437947,_0x4d5793,_0x2d681c){return _0x3c837e(_0x3fd884-0x169,_0x3fd884- -_0x11dfcb._0x210a91,_0x4d5793,_0x2d681c-_0x11dfcb._0x1e306a);}appendChunk(_0x4c1362,_0x4dacb8,_0x35c907[_0x528ff6(0x6,0xac,-_0x17ea0e._0x453b07,0x5)](_0x49683b),_0x15bc55,_0x1b81b6);};_0x4fef73[_0x3c837e(0x28c,0x2ac,_0x195f42._0x1bc80c,_0x195f42._0x2fbb20)]?.['on'](_0xf180f8(_0x195f42._0x397dc0,_0x195f42._0x53a167,_0x195f42._0x3bedd5,_0x195f42._0x39339b),_0x101718);function _0xf180f8(_0x407dd9,_0x57b42a,_0x3dd7bf,_0x25122e){return _0x21be36(_0x407dd9-_0x101783._0x58bf3c,_0x57b42a-_0x101783._0x12a338,_0x25122e,_0x57b42a-0xc9);}_0x4fef73[_0x3c837e(_0x195f42._0x4cbe09,_0x195f42._0x187e13,_0x195f42._0x4a046a,0x4d9)]?.['on'](_0x3c837e(0x21b,0x353,0x244,0x48f),_0x45adbc);let _0xf259e7=![],_0xacc50f;const _0x26b5ba=addAbortListener(_0x3a442b[_0x3c837e(_0x195f42._0x1383cb,_0x195f42._0x321ab9,_0x195f42._0xf98ec6,_0x195f42._0x27ca5a)],()=>{const _0x53399a={_0x4b8851:0x1ae,_0x293521:0x1a9};_0x1fbd5f=toAbortError(_0x3a442b[_0x1ae4cb(0x2d1,_0x1d397c._0x5873b7,0x32d,_0x1d397c._0x573ac3)][_0x1ae4cb(0x395,_0x1d397c._0xb363fc,_0x1d397c._0x19f03f,_0x1d397c._0x2aeb90)]);function _0xd295cd(_0x5bc6ec,_0xe58365,_0x3c1f50,_0x133a1d){return _0xf180f8(_0x5bc6ec-_0xc3aac0._0x1a7590,_0x5bc6ec- -0x108,_0x3c1f50-0xdd,_0x3c1f50);}function _0x1ae4cb(_0x282008,_0x4940dd,_0x3d33e3,_0x34a57d){return _0x3c837e(_0x282008-0x1da,_0x34a57d- -_0x53399a._0x4b8851,_0x282008,_0x34a57d-_0x53399a._0x293521);}_0x9b8592=!![],_0x1b81b6();try{killProcessGroup(_0x4fef73,_0x233d27);}catch{}});try{const _0xae5ff6=new Promise((_0x39e722,_0xaff61d)=>{const _0x48a0b3={_0x48ded9:0x3d2},_0x5b52d8={_0xefc24b:0x195},_0x256e57={_0x528864:0x6e,_0x4e72eb:0x241},_0x2d57a8={_0x4caf26:0x50},_0x509c13={_0x435ae1:0x268},_0x1446d0=()=>{function _0x512421(_0x175287,_0xa207e9,_0x449c1f,_0x26b7de){return _0x3bdd(_0x26b7de-_0x509c13._0x435ae1,_0xa207e9);}function _0x59ed10(_0x5edede,_0x390a1c,_0x4cf724,_0x42451d){return _0x3bdd(_0x5edede-_0x2d57a8._0x4caf26,_0x390a1c);}_0xacc50f&&(clearTimeout(_0xacc50f),_0xacc50f=void 0x0),_0x4fef73[_0x512421(0x4fe,_0x4d286b._0x466b12,_0x4d286b._0x237414,0x61b)](_0x512421(_0x4d286b._0x14b9d5,0x739,0x5b5,0x677),_0x524fcc),_0x4fef73[_0x59ed10(0x403,_0x4d286b._0x263079,0x56b,_0x4d286b._0x5288ad)](_0x59ed10(0x4d3,_0x4d286b._0x46fe93,_0x4d286b._0x2cc382,0x45a),_0x3f54da);};function _0x150995(_0x677414,_0x182d1f,_0x39f969,_0x843967){return _0x3c837e(_0x677414-_0x256e57._0x528864,_0x39f969-_0x256e57._0x4e72eb,_0x843967,_0x843967-0x19e);}const _0x524fcc=_0x102692=>{_0x9b8592=!![],_0x1b81b6(),_0x1446d0(),_0xaff61d(_0x1fbd5f??_0x102692);};function _0x1203dd(_0x34461c,_0x3ac093,_0x6b25fa,_0x75b8f){return _0x3c837e(_0x34461c-0x1b6,_0x34461c- -0x1df,_0x3ac093,_0x75b8f-_0x5b52d8._0xefc24b);}const _0x3f54da=(_0x4840f0,_0xe9b250)=>{const _0x5d4c92={_0x3a1a71:0x15a};_0xf259e7=!![];function _0xed4572(_0x46a5e3,_0x40b68a,_0x5a9c9d,_0x437538){return _0x3bdd(_0x46a5e3-_0x5d4c92._0x3a1a71,_0x437538);}appendChunk(_0x4c1362,_0x4dacb8,_0x2b3581[_0xed4572(0x530,0x414,0x55a,_0xa92a76._0x4b1d28)](),_0x15bc55,_0x1b81b6);function _0x329f71(_0x48ff18,_0x362961,_0x34fe48,_0x22c7a8){return _0x3bdd(_0x362961-_0x48a0b3._0x48ded9,_0x22c7a8);}appendChunk(_0x4c1362,_0x4dacb8,_0x35c907[_0x329f71(_0xa92a76._0x468e9f,_0xa92a76._0xc1372e,_0xa92a76._0x4ce401,0x626)](),_0x15bc55,_0x1b81b6),_0x9b8592=!![],_0x1b81b6(),_0x1446d0();if(_0x1fbd5f){_0xaff61d(_0x1fbd5f);return;}_0x39e722({'code':_0x4840f0,'signal':_0xe9b250});};_0xacc50f=setTimeout(()=>{const _0x191b13={_0xee29a8:0x35c};_0x9b8592=!![],_0x1b81b6();function _0x56be84(_0x10e835,_0x929602,_0x352433,_0x4268a0){return _0x3bdd(_0x929602-_0x191b13._0xee29a8,_0x352433);}_0x1446d0();try{killProcessGroup(_0x4fef73,_0x233d27);}catch{}_0xaff61d(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0xf43455+_0x56be84(0x687,0x6ad,0x56a,0x6d6),{'command':_0x37489f['command'],'cwd':_0x29f1bb,'shellPath':_0x337c90,'timeoutMs':_0xf43455,'timedOut':!![]}));},_0xf43455),_0x4fef73[_0x1203dd(_0x317fcc._0x2b1709,0x18a,0x18d,0x39)](_0x150995(_0x317fcc._0x45368c,0x627,_0x317fcc._0x6bd2ed,0x666),_0x524fcc),_0x4fef73['once'](_0x1203dd(0x37b,_0x317fcc._0x3b905f,0x1f9,0x4a7),_0x3f54da);});while(_0x4dacb8[_0x3c837e(_0x195f42._0x4d2ffb,_0x195f42._0x22ab34,0x46d,_0x195f42._0xbbb849)]>0x0||!_0x9b8592){if(_0x4dacb8['length']===0x0){await _0x2cc6e5();continue;}const _0x304f94=_0x4dacb8[_0xf180f8(0x33c,_0x195f42._0x5f3175,_0x195f42._0x672214,0x240)]();_0x304f94!==void 0x0&&(yield _0x304f94);}const _0x238896=await _0xae5ff6,_0x3c24c9=_0x5a9943?_0xf180f8(_0x195f42._0x36c7b8,0x32c,0x22c,0x36f)+(_0x238896[_0x3c837e(_0x195f42._0x4a046a,0x490,0x491,_0x195f42._0x322dee)]??0x0):_0x4c1362[_0x3c837e(_0x195f42._0x3a5f61,_0x195f42._0x1f650b,0x25d,_0x195f42._0x12240d)](''),_0x5252cd={'command':_0x37489f[_0xf180f8(_0x195f42._0x9a4090,0x16e,_0x195f42._0x2ed459,_0x195f42._0x1e76ec)],'description':_0x37489f[_0xf180f8(0x3d7,0x3d5,_0x195f42._0x449284,_0x195f42._0x43bf5f)],'cwd':_0x29f1bb,'exitCode':_0x238896[_0x3c837e(_0x195f42._0x287840,_0x195f42._0x3cd365,_0x195f42._0x27b0ea,_0x195f42._0x2a8cd8)]??0x0,'signal':_0x238896[_0xf180f8(0x516,0x445,_0x195f42._0x2fbb20,_0x195f42._0x2f399a)],'ignoreOutput':_0x5a9943,'shellPath':_0x337c90,'timeoutMs':_0xf43455};if(_0x238896[_0x3c837e(0x57b,0x490,0x414,_0x195f42._0xd406a6)]!==0x0)throw new ToolExecutionError(_0x3c24c9||_0xf180f8(_0x195f42._0x1d631f,_0x195f42._0x33affb,0x3b7,_0x195f42._0x4e8330)+(_0x238896[_0x3c837e(_0x195f42._0x3f58ea,0x490,0x577,0x37b)]??0x0),_0x5252cd);return createToolOutput(_0x3c24c9,_0x5252cd);}catch(_0x330f5b){while(_0x4dacb8[_0xf180f8(_0x195f42._0x5216be,0x3c1,_0x195f42._0x3e7aa5,_0x195f42._0x2c25cc)]>0x0){const _0x14911e=_0x4dacb8['shift']();_0x14911e!==void 0x0&&(yield _0x14911e);}if(_0x330f5b instanceof ToolExecutionError)throw _0x330f5b;if(_0x1fbd5f)throw _0x1fbd5f;throw mapSpawnError(_0x330f5b,{'command':_0x37489f['command'],'cwd':_0x29f1bb,'shellPath':_0x337c90});}finally{_0xacc50f&&clearTimeout(_0xacc50f);_0x26b5ba(),_0x4fef73[_0x3c837e(0x240,0x2ac,_0x195f42._0x58fbef,0x259)]?.['off'](_0x3c837e(0x220,_0x195f42._0x247dda,0x3ef,0x427),_0x101718),_0x4fef73[_0x3c837e(0x3e8,_0x195f42._0x187e13,_0x195f42._0x148202,0x417)]?.['off'](_0x3c837e(0x235,_0x195f42._0x247dda,0x405,0x3f6),_0x45adbc);if(!_0xf259e7&&_0x4fef73[_0x3c837e(_0x195f42._0x18fed2,0x2c2,0x421,_0x195f42._0x2cb6a7)]&&!_0x4fef73['killed'])try{killProcessGroup(_0x4fef73,_0x233d27);}catch{}}}});}function createShellExecTool(_0x58aebd={}){return createBashTool(_0x58aebd);}import{readdir,readFile as _0x35878a}from'fs/promises';import{extname,join as _0xd33d1}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x516a73,join,relative as _0x52c3bc,resolve as _0x1eb8af}from'path';import{readdir as _0xe685fd,readFile as _0x39a8c0}from'fs/promises';import{join as _0x3debab,relative as _0x2cb756,sep}from'path';import{delimiter}from'path';import{mkdir as _0x483c52,rm,stat as _0x1b1b24,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x4aed35}from'path';import{unwatchFile,watchFile}from'fs';import{chmod,readFile as _0x886c95,rename,rm as _0x4f6a14,stat as _0x30b774,writeFile as _0x434359}from'fs/promises';import{homedir as _0x4d32ab}from'os';import{dirname as _0x1ccd80,isAbsolute as _0x599133,join as _0x29668f,resolve as _0x3136a2}from'path';import{parse as _0x19f56a,stringify as _0x4750e3}from'yaml';import{cp,mkdir as _0x4a9178,readFile as _0x1a7357,rm as _0x3b38a8,writeFile as _0x22bbc1}from'fs/promises';import{homedir}from'os';import{join as _0x1d7022}from'path';import{parse as _0x11d63d,stringify as _0x2ce6df}from'yaml';import{z}from'zod';import{readdir as _0x57679c,readFile as _0x2cce6f}from'fs/promises';import{join as _0x915c72}from'path';import{randomUUID as _0x21c154}from'crypto';import{mkdir as _0x887804,readdir as _0x499bb6,readFile as _0x5698c4,rename as _0x48edde,rm as _0x3632e4,writeFile as _0x5d2b78}from'fs/promises';import{homedir as _0x4cc3aa}from'os';import{basename,isAbsolute as _0x32be1d,join as _0x23dd09,relative as _0x491c07,resolve as _0x54178f}from'path';import{parse as _0x59bf73,stringify as _0x4a53c8}from'yaml';import{delimiter as _0x268376,resolve as _0x1d4e4c}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x3a2aa7){const _0x104e41={_0x370cb:0x366,_0x118cbe:0x270,_0x180976:0x362,_0x2cb9c7:0x366,_0x5e185e:0x38d,_0x3b2a6c:0x180},_0x246993={_0x5ea6dd:0xb6},_0x788215={_0x1ca204:0x1cb},_0x5a1045=[];let _0x1a4bd5='',_0x4e117f=0x0;while(_0x4e117f<_0x3a2aa7[_0x208e07(_0x104e41._0x370cb,0x1f5,0x4cd,_0x104e41._0x118cbe)]){const _0x12552c=_0x3a2aa7[_0x4e117f];if(_0x12552c==='\x5c'&&_0x4e117f+0x1<_0x3a2aa7[_0x208e07(0x366,_0x104e41._0x180976,0x281,0x4ca)])_0x1a4bd5+=_0x3a2aa7[_0x4e117f+0x1],_0x4e117f+=0x2;else{if(_0x12552c==='\x22'||_0x12552c==='\x27'){const _0x400d7a=_0x12552c;_0x4e117f++;while(_0x4e117f<_0x3a2aa7[_0x208e07(_0x104e41._0x2cb9c7,0x339,0x2c6,_0x104e41._0x5e185e)]&&_0x3a2aa7[_0x4e117f]!==_0x400d7a){_0x3a2aa7[_0x4e117f]==='\x5c'&&_0x4e117f+0x1<_0x3a2aa7[_0x208e07(0x366,0x27d,0x43a,0x24c)]?(_0x1a4bd5+=_0x3a2aa7[_0x4e117f+0x1],_0x4e117f+=0x2):(_0x1a4bd5+=_0x3a2aa7[_0x4e117f],_0x4e117f++);}_0x4e117f++;}else _0x12552c!==void 0x0&&/\s/['test'](_0x12552c)?(_0x1a4bd5&&(_0x5a1045['push'](_0x1a4bd5),_0x1a4bd5=''),_0x4e117f++):(_0x1a4bd5+=_0x12552c,_0x4e117f++);}}function _0x208e07(_0x3c28eb,_0xfd12d8,_0x239821,_0x88f306){return _0x55c88d(_0x3c28eb-0x29,_0x3c28eb- -_0x788215._0x1ca204,_0x88f306,_0x88f306-0xbf);}if(_0x1a4bd5)_0x5a1045[_0x208e07(0x226,0x299,0x2db,_0x104e41._0x3b2a6c)](_0x1a4bd5);function _0x4a428c(_0x440e6d,_0xd77229,_0x298b8f,_0x16521a){return _0x55c88d(_0x440e6d-_0x246993._0x5ea6dd,_0xd77229- -0x28b,_0x298b8f,_0x16521a-0x13);}return _0x5a1045;}function renderCommandInstructions(_0x1dbb35){const _0x26fba1={_0x3a9ece:0x38,_0x1efa1b:0x712,_0x3efbed:0x88c,_0x6a6ce3:0x712,_0x2c2d68:0x6d8,_0x33c6c0:0x6ba,_0x386986:0x811,_0x2bb2c1:0x7d9,_0x370aea:0x7e,_0x23808a:0x10,_0x14224d:0xcf,_0x2b6adb:0x1b3,_0x390bea:0x17d,_0x37269c:0x296,_0x2d34e6:0x70d,_0x49ac11:0x25,_0x2981b5:0x5a,_0xe4baad:0x29,_0x21c6c4:0x5ab,_0x2c71ec:0x7e},_0x24be75={_0x458e7d:0x109,_0x4a0687:0x16c},_0x28afec={_0x178ae5:0x14e},_0x41a02c={_0x5d5c8b:0x79,_0x2ff7ee:0x665};let _0x19e490=_0x1dbb35['instructions'];function _0x3bc582(_0x2a0ddb,_0x3b8837,_0x5225aa,_0x23e7fc){return _0x1e45aa(_0x2a0ddb-_0x41a02c._0x5d5c8b,_0x3b8837-0x149,_0x3b8837- -_0x41a02c._0x2ff7ee,_0x23e7fc);}let _0x1f37ca=![];const _0x3e25ca=tokenizeCommandArguments(_0x1dbb35['argumentsText']);_0x19e490=_0x19e490[_0x3bc582(0xe9,-_0x26fba1._0x3a9ece,-0x2a,-0x150)](/\$ARGUMENTS\[(\d+)\]/g,(_0x8e2d89,_0x2a8490)=>{return _0x1f37ca=!![],_0x3e25ca[Number(_0x2a8490)]??'';});function _0x322bfd(_0x519c66,_0x2d1fd5,_0x4fd747,_0x144c16){return _0x1e45aa(_0x519c66-0xf3,_0x2d1fd5-_0x28afec._0x178ae5,_0x519c66-0x2f,_0x2d1fd5);}_0x19e490=_0x19e490[_0x322bfd(0x65c,0x6a2,0x68e,0x631)](/\$ARGUMENTS\b/g,()=>{function _0x3eba7d(_0xae07a4,_0x3f8490,_0x5bf3fe,_0x4d33be){return _0x322bfd(_0x3f8490- -0x562,_0x5bf3fe,_0x5bf3fe-0x38,_0x4d33be-0x122);}return _0x1f37ca=!![],_0x1dbb35[_0x3eba7d(0x26c,_0x24be75._0x458e7d,_0x24be75._0x4a0687,0x8b)];});if(_0x1dbb35[_0x322bfd(_0x26fba1._0x1efa1b,_0x26fba1._0x3efbed,0x6b8,0x82a)]&&_0x1dbb35[_0x322bfd(_0x26fba1._0x6a6ce3,0x5ac,_0x26fba1._0x2c2d68,_0x26fba1._0x33c6c0)][_0x322bfd(_0x26fba1._0x386986,0x8df,_0x26fba1._0x2bb2c1,0x7b1)]>0x0)for(let _0x2beae5=0x0;_0x2beae5<_0x1dbb35[_0x3bc582(0x3,_0x26fba1._0x370aea,-_0x26fba1._0x23808a,-_0x26fba1._0x14224d)][_0x3bc582(_0x26fba1._0x2b6adb,_0x26fba1._0x390bea,0x116,_0x26fba1._0x37269c)];_0x2beae5++){const _0x195eea=_0x1dbb35['argumentNames'][_0x2beae5];if(_0x195eea){const _0x4e9462=new RegExp('\x5c$'+_0x195eea+'\x5cb','g');_0x19e490=_0x19e490[_0x322bfd(0x65c,0x650,_0x26fba1._0x2d34e6,0x739)](_0x4e9462,()=>{return _0x1f37ca=!![],_0x3e25ca[_0x2beae5]??'';});}}return _0x19e490=_0x19e490[_0x3bc582(_0x26fba1._0x49ac11,-0x38,-0x182,0x75)](/\$(\d+)\b/g,(_0x13acd5,_0x43d50d)=>{return _0x1f37ca=!![],_0x3e25ca[Number(_0x43d50d)]??'';}),!_0x1f37ca&&_0x1dbb35[_0x3bc582(_0x26fba1._0x2981b5,-_0x26fba1._0xe4baad,0x14f,0x50)]['trim']()&&(_0x19e490=_0x19e490+_0x322bfd(0x68e,0x70e,_0x26fba1._0x21c6c4,0x6e9)+_0x1dbb35[_0x3bc582(0x99,-0x29,0x78,_0x26fba1._0x2c71ec)]),_0x19e490;}var PROVIDER_API_KEY_ENVS=[{'env':_0x1e45aa(0x7a5,0x780,0x7ff,0x7a4),'provider':_0x1e45aa(0x70e,0x7a7,0x66b,0x6ee)},{'env':_0x55c88d(0x5d1,0x571,0x6ba,0x5d6),'provider':'anthropic'},{'env':_0x55c88d(0x46b,0x494,0x3ec,0x426),'provider':_0x55c88d(0x338,0x2d1,0x188,0x22d)},{'env':'GITHUB_TOKEN','provider':_0x55c88d(0x178,0x2d1,0x1bc,0x273)},{'env':_0x55c88d(0x5fd,0x4e5,0x37e,0x604),'provider':'grok'},{'env':_0x55c88d(0x3d4,0x45a,0x39d,0x594),'provider':'deepinfra'},{'env':_0x1e45aa(0x69e,0x402,0x57d,0x613),'provider':_0x55c88d(0x494,0x443,0x340,0x2e2)},{'env':'MOONSHOT_API_KEY','provider':'moonshot'},{'env':_0x55c88d(0x3d8,0x4b4,0x528,0x4ee),'provider':_0x55c88d(0x432,0x46b,0x4ea,0x4cc)},{'env':'KIMI_API_KEY','provider':_0x55c88d(0x5cf,0x527,0x48f,0x54e)},{'env':_0x55c88d(0x5da,0x489,0x59c,0x60c),'provider':_0x55c88d(0x49f,0x55b,0x476,0x56b)},{'env':_0x55c88d(0x5bb,0x474,0x449,0x497),'provider':'deepseek'}],PROVIDER_API_KEY_ENV_NAMES=PROVIDER_API_KEY_ENVS[_0x1e45aa(0x645,0x820,0x739,0x672)](_0x2fbda8=>_0x2fbda8[_0x1e45aa(0x6ef,0x80a,0x68a,0x6e1)]),SCRUBBED_ENV_KEYS=[...PROVIDER_API_KEY_ENV_NAMES,_0x1e45aa(0x619,0x7d6,0x774,0x66a),'GOOGLE_CSE_KEY',_0x55c88d(0x25e,0x2da,0x3e2,0x216)],PROTOTYPE_SENSITIVE_NAMES=new Set([...Object['getOwnPropertyNames'](Object['prototype']),'prototype']);function prototypeSafeRecord(_0x5641cb){const _0x516e7b={_0x5717ba:0x70b,_0x22afc2:0x67c,_0x25e46d:0x15a,_0x19f0d1:0x45,_0x2d5ea7:0x3d,_0x2eb5cb:0x230,_0x1a95c0:0x226,_0x23cfb5:0x256,_0xba5ac0:0x15c,_0xb54530:0x6da,_0x53ecaf:0x8c5},_0x298ed9={_0x501d21:0x5e,_0x42abbe:0x277,_0x3e7d07:0xc7,_0x57b4cc:0x12,_0xa454ef:0x304,_0x86785b:0x212,_0x595de7:0xc8,_0x9c4fa9:0x11,_0x53dd90:0x97},_0x4a6afb={_0x39b511:0x148,_0xd2aa04:0x6a7},_0x1222ee={_0x66e3e9:0x76,_0x5cbd3b:0x658},_0xd472b0={_0x21ae82:0x41,_0x21dca1:0x148},_0x2f7c2c={_0x488d0e:0x70};function _0x1126cb(_0x5a592f,_0x21577e,_0x4b4880,_0x3e05eb){return _0x1e45aa(_0x5a592f-_0x2f7c2c._0x488d0e,_0x21577e-0x137,_0x21577e- -0x5c3,_0x3e05eb);}function _0x23b01e(_0x4dd5df,_0x4d07f6,_0x15bf51,_0x23d281){return _0x1e45aa(_0x4dd5df-_0xd472b0._0x21ae82,_0x4d07f6-_0xd472b0._0x21dca1,_0x15bf51- -0x4b,_0x23d281);}return z[_0x23b01e(0x522,_0x516e7b._0x5717ba,_0x516e7b._0x22afc2,0x4fe)](_0x435edb=>{if(_0x435edb===null||typeof _0x435edb!==_0x5ba1f2(0x94,-_0x298ed9._0x501d21,-0xea,-0x2f)||Array[_0x4e696b(_0x298ed9._0x42abbe,_0x298ed9._0x3e7d07,_0x298ed9._0x57b4cc,0x178)](_0x435edb))return null;function _0x4e696b(_0x5d967f,_0x2506f,_0x39a57f,_0x228ae8){return _0x23b01e(_0x5d967f-_0x1222ee._0x66e3e9,_0x2506f-0x13a,_0x228ae8- -_0x1222ee._0x5cbd3b,_0x2506f);}const _0x375ef2=Object[_0x4e696b(0x2c3,_0x298ed9._0xa454ef,_0x298ed9._0x86785b,0x188)](_0x435edb);function _0x5ba1f2(_0x3676d7,_0x28c2a7,_0x5590da,_0x173494){return _0x23b01e(_0x3676d7-_0x4a6afb._0x39b511,_0x28c2a7-0xa6,_0x5590da- -_0x4a6afb._0xd2aa04,_0x173494);}if(_0x375ef2!==Object[_0x5ba1f2(-_0x298ed9._0x595de7,-0x191,-0x11,0x7)]&&_0x375ef2!==null)return null;return{'entries':Object[_0x5ba1f2(_0x298ed9._0x9c4fa9,-0x21,_0x298ed9._0x53dd90,0xd6)](_0x435edb)};},z[_0x1126cb(_0x516e7b._0x25e46d,_0x516e7b._0x19f0d1,-_0x516e7b._0x2d5ea7,0x57)]({'entries':z['array'](z[_0x1126cb(0xfd,_0x516e7b._0x2eb5cb,_0x516e7b._0x1a95c0,0x2af)]([z[_0x1126cb(_0x516e7b._0x23cfb5,_0x516e7b._0xba5ac0,0xdf,0xc8)](),_0x5641cb]))}))[_0x23b01e(0x866,_0x516e7b._0xb54530,0x7b9,_0x516e7b._0x53ecaf)](({entries:_0x23e65b})=>Object[_0x1126cb(0x135,0x1ed,0xf7,0x18d)](_0x23e65b));}var chatModelAuthSchemeSchema=z[_0x1e45aa(0x696,0x6b3,0x70c,0x603)](['bearer',_0x55c88d(0x38b,0x2ba,0x237,0x14f)]),apiKeyAuthSchema=z[_0x55c88d(0x2c4,0x357,0x38d,0x1e0)]({'type':z[_0x55c88d(0x4f6,0x57e,0x567,0x6d1)](_0x1e45aa(0x979,0x728,0x840,0x9b4)),'apiKey':z[_0x1e45aa(0x7ce,0x7e8,0x71f,0x83c)](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x55c88d(0x40e,0x2c9,0x374,0x1d7)](),oauthAuthSchema=z[_0x55c88d(0x4c1,0x357,0x2ed,0x48a)]({'type':z[_0x55c88d(0x451,0x57e,0x5e0,0x494)](_0x1e45aa(0x6e6,0x4c8,0x5c9,0x4c4)),'access':z[_0x1e45aa(0x805,0x62d,0x71f,0x5e6)](),'refresh':z['string'](),'expires':z['number']()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x1e45aa(0x871,0x580,0x701,0x849)]()})[_0x1e45aa(0x4f4,0x6f0,0x57a,0x62d)](),finiteNonNegative=z['number']()[_0x1e45aa(0x6d4,0x67a,0x568,0x6be)]()['nonnegative'](),chatGptAuthSchema=z[_0x1e45aa(0x4c4,0x732,0x608,0x5e3)]({'type':z[_0x55c88d(0x666,0x57e,0x440,0x489)](_0x55c88d(0x4f7,0x464,0x47e,0x3c6)),'access':z[_0x55c88d(0x3f4,0x46e,0x5b2,0x40a)]()[_0x55c88d(0x351,0x2d4,0x3e4,0x2c7)](0x1),'refresh':z['string']()[_0x55c88d(0x2e4,0x2d4,0x40c,0x2c1)](0x1),'idToken':z[_0x1e45aa(0x705,0x663,0x71f,0x792)]()[_0x55c88d(0x28c,0x2d4,0x2a7,0x3dc)](0x1),'accountId':z[_0x55c88d(0x5ec,0x46e,0x433,0x483)]()[_0x55c88d(0x296,0x2d4,0x1c4,0x244)](0x1),'expires':finiteNonNegative,'earliestRefreshAt':finiteNonNegative[_0x1e45aa(0x625,0x5c8,0x701,0x6c2)]()})[_0x55c88d(0x3fa,0x2c9,0x15d,0x19d)](),authMethodSchema=z[_0x55c88d(0x46c,0x359,0x4df,0x496)]([apiKeyAuthSchema,oauthAuthSchema,chatGptAuthSchema]),modelDefinitionSchema=z[_0x1e45aa(0x6a7,0x4a5,0x608,0x4b2)]({'id':z[_0x1e45aa(0x823,0x79c,0x71f,0x691)](),'name':z[_0x1e45aa(0x6e5,0x5fa,0x71f,0x646)]()[_0x1e45aa(0x72c,0x777,0x701,0x816)]()})[_0x1e45aa(0x491,0x6be,0x57a,0x6d4)](),modelConfigSchema=z[_0x1e45aa(0x6c2,0x620,0x60a,0x4e9)]([z[_0x1e45aa(0x8ae,0x8ce,0x82f,0x6d0)](![]),z[_0x55c88d(0x564,0x57e,0x69b,0x43b)](!![]),z[_0x1e45aa(0x884,0x5c4,0x71f,0x733)](),z[_0x1e45aa(0x758,0x77c,0x768,0x6f4)](z[_0x55c88d(0x48a,0x46e,0x472,0x2f2)]()),z[_0x1e45aa(0x770,0x682,0x768,0x615)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x55c88d(0x598,0x45b,0x338,0x58c)]([_0x55c88d(0x60c,0x4f9,0x652,0x54a),_0x55c88d(0x6a9,0x57b,0x648,0x4b9),_0x55c88d(0x4f5,0x376,0x355,0x39f),'openai-responses-ws']),providerConfigSchema=z['object']({'apiKey':z[_0x55c88d(0x46e,0x46e,0x362,0x363)]()[_0x55c88d(0x523,0x450,0x5d2,0x2ce)](),'token':z['string']()[_0x1e45aa(0x82e,0x6c1,0x701,0x80d)](),'defaultModel':z[_0x1e45aa(0x65b,0x64e,0x71f,0x7db)]()[_0x1e45aa(0x809,0x695,0x701,0x70d)](),'smallModel':z[_0x55c88d(0x5c4,0x46e,0x4a3,0x5ae)]()[_0x55c88d(0x411,0x450,0x317,0x33e)](),'currentAuth':z[_0x55c88d(0x4de,0x46e,0x599,0x339)]()[_0x55c88d(0x36b,0x450,0x440,0x574)](),'auth':z['array'](authMethodSchema)[_0x55c88d(0x3eb,0x450,0x5cf,0x467)](),'surface':chatModelSurfaceSchema[_0x1e45aa(0x602,0x69f,0x701,0x882)](),'baseUrl':z[_0x55c88d(0x2fa,0x46e,0x33e,0x44e)]()['optional'](),'models':modelConfigSchema[_0x1e45aa(0x778,0x65d,0x701,0x723)](),'customHeaders':z[_0x1e45aa(0x73b,0x7cd,0x6be,0x74c)](z['string'](),z[_0x1e45aa(0x5a0,0x766,0x71f,0x6d3)]())[_0x55c88d(0x33f,0x450,0x3b0,0x3d0)]()})[_0x55c88d(0x2a2,0x2c9,0x2ae,0x38e)](),mcpServerConfigSchema=z['object']({'command':z[_0x55c88d(0x330,0x46e,0x3ea,0x3ed)]()[_0x55c88d(0x3ec,0x450,0x36c,0x4cd)](),'args':z['array'](z[_0x1e45aa(0x836,0x859,0x71f,0x70f)]())['optional'](),'env':z['record'](z[_0x1e45aa(0x871,0x7be,0x71f,0x732)](),z[_0x1e45aa(0x78e,0x703,0x71f,0x6fa)]())['optional'](),'transport':z[_0x55c88d(0x457,0x45b,0x4dc,0x453)]([_0x55c88d(0x5a3,0x5a9,0x668,0x4ac),_0x55c88d(0x313,0x417,0x536,0x4b2)])['optional'](),'url':z[_0x1e45aa(0x74e,0x700,0x71f,0x791)]()[_0x1e45aa(0x6b3,0x742,0x701,0x703)](),'headers':z[_0x1e45aa(0x602,0x652,0x6be,0x545)](z['string'](),z['string']())[_0x55c88d(0x3dc,0x450,0x5b6,0x4a0)](),'prefix':z[_0x1e45aa(0x756,0x67d,0x71f,0x6ab)]()[_0x55c88d(0x3ce,0x450,0x3ba,0x3bf)](),'timeoutMs':z['number']()['optional'](),'enabled':z[_0x55c88d(0x3a6,0x394,0x292,0x264)]()[_0x55c88d(0x427,0x450,0x564,0x359)](),'auth':z['object']({'type':z[_0x55c88d(0x49f,0x45b,0x597,0x3d5)](['none',_0x1e45aa(0x8ee,0x7b3,0x801,0x6f2),_0x1e45aa(0x532,0x4a6,0x5c9,0x6ca)]),'token':z['string']()['optional'](),'oauth':z['object']({'clientId':z[_0x1e45aa(0x7d7,0x5ae,0x71f,0x88c)]()[_0x55c88d(0x44d,0x450,0x5c4,0x2d2)](),'clientMetadataUrl':z[_0x55c88d(0x3a4,0x46e,0x49d,0x4eb)]()[_0x1e45aa(0x7fc,0x789,0x701,0x788)](),'authorizationServer':z[_0x55c88d(0x3b5,0x46e,0x58b,0x451)]()[_0x55c88d(0x480,0x450,0x4bb,0x592)](),'scopes':z['array'](z[_0x1e45aa(0x85d,0x61a,0x71f,0x6e5)]())[_0x55c88d(0x373,0x450,0x536,0x412)](),'tokenStorageKey':z['string']()['optional']()})[_0x55c88d(0x448,0x2c9,0x2c5,0x14a)]()['optional']()})[_0x55c88d(0x2b2,0x2c9,0x2af,0x386)]()['optional']()})['passthrough'](),mcpSettingsSchema=z[_0x55c88d(0x362,0x357,0x262,0x450)]({'servers':prototypeSafeRecord(mcpServerConfigSchema)[_0x1e45aa(0x867,0x882,0x701,0x761)](),'allowedTools':prototypeSafeRecord(prototypeSafeRecord(z[_0x1e45aa(0x54e,0x64d,0x645,0x60a)]()))[_0x55c88d(0x52c,0x450,0x47c,0x345)](),'defaultTimeoutMs':z[_0x1e45aa(0x6bf,0x5b8,0x6f0,0x57e)]()[_0x55c88d(0x396,0x450,0x55c,0x461)]()})[_0x1e45aa(0x557,0x4ad,0x57a,0x477)](),skillsSettingsSchema=z[_0x1e45aa(0x617,0x657,0x608,0x723)]({'enabled':z[_0x55c88d(0x514,0x394,0x3e1,0x347)]()[_0x55c88d(0x2e6,0x450,0x4a9,0x514)](),'includeDefaults':z['boolean']()[_0x1e45aa(0x629,0x854,0x701,0x6a2)](),'directories':z[_0x1e45aa(0x7ad,0x7c4,0x768,0x8cd)](z[_0x55c88d(0x579,0x46e,0x402,0x5e2)]())['optional'](),'exclude':z['array'](z[_0x55c88d(0x30a,0x46e,0x42a,0x35b)]())[_0x1e45aa(0x5e8,0x690,0x701,0x5b6)]()})[_0x55c88d(0x436,0x2c9,0x334,0x2f9)](),commandsSettingsSchema=z['object']({'enabled':z[_0x1e45aa(0x4ce,0x67b,0x645,0x755)]()[_0x55c88d(0x528,0x450,0x475,0x415)](),'directories':z[_0x55c88d(0x47f,0x4b7,0x611,0x39e)](z[_0x1e45aa(0x81d,0x763,0x71f,0x6fb)]())[_0x55c88d(0x540,0x450,0x37a,0x38b)]()})[_0x55c88d(0x32b,0x2c9,0x19b,0x25e)](),agentsSettingsSchema=z[_0x55c88d(0x269,0x357,0x498,0x495)]({'enabled':z[_0x1e45aa(0x76a,0x644,0x645,0x6f0)]()[_0x55c88d(0x537,0x450,0x50c,0x403)](),'includeDefaults':z[_0x55c88d(0x494,0x394,0x305,0x3f0)]()['optional'](),'directories':z[_0x55c88d(0x61c,0x4b7,0x5c9,0x3c1)](z['string']())[_0x1e45aa(0x6d0,0x77d,0x701,0x886)]()})[_0x1e45aa(0x48f,0x6d2,0x57a,0x6ca)](),uiThemeSettingsSchema=z[_0x55c88d(0x1f6,0x357,0x363,0x2c7)]({'mode':z[_0x1e45aa(0x854,0x7f9,0x70c,0x726)]([_0x55c88d(0x3f2,0x38e,0x3df,0x4d6),_0x55c88d(0x288,0x369,0x3fe,0x2a8),_0x55c88d(0x4d1,0x4a5,0x491,0x483)])[_0x1e45aa(0x6e4,0x5cb,0x701,0x791)](),'colorLevel':z[_0x1e45aa(0x7e0,0x703,0x70c,0x708)]([_0x55c88d(0x27c,0x38e,0x245,0x401),_0x1e45aa(0x8c1,0x7f4,0x84a,0x734),_0x55c88d(0x38c,0x495,0x466,0x387),'ansi256',_0x1e45aa(0x608,0x549,0x6cf,0x79b)])[_0x1e45aa(0x792,0x65a,0x701,0x858)](),'backgrounds':z['enum']([_0x1e45aa(0x4fb,0x76d,0x63f,0x602),'on',_0x1e45aa(0x88b,0x5df,0x74c,0x68d)])[_0x55c88d(0x3eb,0x450,0x388,0x3b5)](),'messageStyle':z[_0x55c88d(0x430,0x45b,0x300,0x4c0)](['plain','boxed'])[_0x55c88d(0x462,0x450,0x445,0x2f8)]()})[_0x1e45aa(0x6e4,0x4c6,0x57a,0x49c)]();function _0x1e45aa(_0x45112d,_0x358dea,_0x5a2344,_0x95ab7b){return _0x3bdd(_0x5a2344-0x399,_0x95ab7b);}var statuslineSegmentSchema=z['enum']([_0x55c88d(0x338,0x341,0x1be,0x485),'session','thinking',_0x1e45aa(0x70a,0x71d,0x6fc,0x5d2),_0x1e45aa(0x663,0x747,0x65a,0x699),_0x55c88d(0x30f,0x320,0x2f0,0x3a6),_0x1e45aa(0x61a,0x59b,0x66c,0x58a),_0x55c88d(0x337,0x42b,0x559,0x4fe),'tools',_0x55c88d(0x5f7,0x52c,0x4bd,0x645),_0x55c88d(0x2f2,0x437,0x579,0x520),_0x55c88d(0x46c,0x41d,0x4a6,0x39b),_0x55c88d(0x314,0x3ca,0x2dd,0x391),_0x1e45aa(0x77a,0x59a,0x67d,0x646),'rss']),statuslineItemSchema=z[_0x1e45aa(0x6ef,0x57d,0x60a,0x6a1)]([statuslineSegmentSchema,z['literal']('|')]),statuslineRowSchema=z[_0x55c88d(0x461,0x4b7,0x446,0x578)](statuslineItemSchema),statuslineConfigSchema=z[_0x1e45aa(0x545,0x4a7,0x608,0x4f4)]({'rows':z[_0x55c88d(0x65d,0x542,0x4cf,0x48b)]([statuslineRowSchema,statuslineRowSchema])[_0x55c88d(0x424,0x450,0x53d,0x375)]()})[_0x1e45aa(0x639,0x4fe,0x57a,0x6f9)](),memorySettingsSchema=z[_0x55c88d(0x39f,0x357,0x4d5,0x2f3)]({'version':z[_0x55c88d(0x6c3,0x57e,0x53a,0x576)](0x2)['optional'](),'retrieval':z[_0x55c88d(0x309,0x357,0x47f,0x3a8)]({'engine':z['literal'](_0x1e45aa(0x815,0x736,0x6f5,0x63c))['optional'](),'candidateLimit':z[_0x1e45aa(0x6b0,0x77f,0x6f0,0x805)]()[_0x1e45aa(0x5f3,0x5f3,0x701,0x633)](),'activeCandidateLimit':z[_0x1e45aa(0x7d2,0x637,0x6f0,0x644)]()[_0x1e45aa(0x6b4,0x7f1,0x701,0x743)](),'activeEnabled':z['boolean']()[_0x1e45aa(0x7bd,0x63b,0x701,0x5fe)](),'maxQueriesPerTurn':z[_0x1e45aa(0x6df,0x740,0x6f0,0x703)]()[_0x1e45aa(0x6f0,0x5f1,0x701,0x7a4)](),'coreInjectTokenBudget':z['number']()[_0x55c88d(0x4f9,0x450,0x57b,0x321)](),'injectTokenBudget':z[_0x55c88d(0x5c3,0x43f,0x480,0x417)]()[_0x55c88d(0x49c,0x450,0x50f,0x378)](),'minScore':z[_0x1e45aa(0x681,0x86d,0x6f0,0x748)]()[_0x1e45aa(0x5e0,0x5db,0x701,0x73d)](),'freshnessHalfLifeDays':z[_0x1e45aa(0x56d,0x6ac,0x6f0,0x858)]()['optional']()})[_0x1e45aa(0x658,0x65c,0x57a,0x425)]()[_0x1e45aa(0x754,0x867,0x701,0x597)](),'extraction':z['object']({'enabled':z[_0x1e45aa(0x5b4,0x62d,0x645,0x541)]()[_0x1e45aa(0x5e0,0x580,0x701,0x716)](),'provider':z['string']()['optional'](),'model':z['string']()[_0x55c88d(0x5ab,0x450,0x59e,0x375)](),'sensitiveFilter':z[_0x55c88d(0x2ff,0x394,0x4f2,0x49c)]()['optional']()})[_0x55c88d(0x42f,0x2c9,0x34f,0x32e)]()['optional'](),'index':z[_0x55c88d(0x283,0x357,0x254,0x1de)]({'persisted':z[_0x1e45aa(0x5b6,0x573,0x645,0x644)]()['optional'](),'flushIntervalMs':z[_0x55c88d(0x3e9,0x43f,0x52e,0x539)]()['optional']()})['passthrough']()[_0x1e45aa(0x71a,0x813,0x701,0x693)](),'enabled':z[_0x1e45aa(0x736,0x521,0x645,0x5ee)]()[_0x55c88d(0x2ef,0x450,0x492,0x423)](),'saveTool':z['boolean']()[_0x55c88d(0x578,0x450,0x388,0x356)](),'model':z[_0x1e45aa(0x65f,0x7de,0x71f,0x7b4)]()[_0x55c88d(0x338,0x450,0x31f,0x423)](),'provider':z[_0x1e45aa(0x709,0x752,0x71f,0x6bb)]()['optional'](),'maxInjectionTokens':z[_0x55c88d(0x348,0x43f,0x50f,0x2c7)]()[_0x55c88d(0x491,0x450,0x431,0x484)](),'backgroundExtraction':z['boolean']()[_0x55c88d(0x53d,0x450,0x534,0x3eb)]()})['passthrough'](),recentModelSchema=z[_0x55c88d(0x391,0x357,0x4b9,0x46c)]({'provider':z[_0x55c88d(0x59e,0x46e,0x5da,0x5ef)](),'model':z[_0x1e45aa(0x61d,0x757,0x71f,0x7af)](),'usedAt':z[_0x55c88d(0x542,0x43f,0x4c5,0x370)]()})['passthrough'](),lspServerEntrySchema=z['object']({'disabled':z[_0x55c88d(0x320,0x394,0x49f,0x45e)]()[_0x1e45aa(0x80f,0x80c,0x701,0x741)](),'command':z['string']()[_0x1e45aa(0x85e,0x761,0x701,0x764)](),'args':z[_0x55c88d(0x4a5,0x4b7,0x3a5,0x431)](z['string']())[_0x55c88d(0x389,0x450,0x4e4,0x456)](),'rootMarkers':z['array'](z[_0x1e45aa(0x644,0x66a,0x71f,0x7f7)]())[_0x55c88d(0x358,0x450,0x486,0x5c4)]()})[_0x55c88d(0x2a1,0x2c9,0x351,0x2b4)](),lspConfigSchema=z[_0x1e45aa(0x54d,0x58d,0x608,0x57b)]({'enabled':z[_0x55c88d(0x4ea,0x394,0x519,0x44b)]()[_0x55c88d(0x476,0x450,0x373,0x38a)](),'servers':z[_0x1e45aa(0x638,0x6e1,0x6be,0x548)](z[_0x1e45aa(0x850,0x770,0x71f,0x5f4)](),lspServerEntrySchema)[_0x55c88d(0x3e0,0x450,0x3c9,0x497)]()})[_0x1e45aa(0x51c,0x692,0x57a,0x48f)](),serverEndpointSchema=z[_0x1e45aa(0x536,0x5b8,0x608,0x6da)]({'url':z[_0x55c88d(0x40e,0x46e,0x37e,0x545)](),'token':z['string']()[_0x55c88d(0x40e,0x450,0x493,0x310)]()})[_0x1e45aa(0x69f,0x448,0x57a,0x547)](),commandHookConfigSchema=z[_0x55c88d(0x216,0x357,0x481,0x297)]({'type':z[_0x55c88d(0x6c4,0x57e,0x470,0x688)]('command'),'command':z[_0x1e45aa(0x672,0x59c,0x71f,0x5af)](),'timeout':z[_0x1e45aa(0x5d6,0x712,0x6f0,0x604)]()['optional']()}),hookMatcherGroupSchema=z['object']({'matcher':z[_0x1e45aa(0x5fa,0x76e,0x71f,0x82d)]()[_0x1e45aa(0x820,0x63d,0x701,0x60c)](),'hooks':z[_0x55c88d(0x3ea,0x4b7,0x3e2,0x4bd)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x55c88d(0x2f0,0x357,0x356,0x3c6)]({'PreToolUse':z[_0x55c88d(0x544,0x4b7,0x581,0x4c8)](hookMatcherGroupSchema)[_0x55c88d(0x570,0x450,0x4ad,0x39f)](),'PostToolUse':z['array'](hookMatcherGroupSchema)[_0x55c88d(0x554,0x450,0x3c8,0x595)](),'UserPromptSubmit':z[_0x55c88d(0x3b6,0x4b7,0x3d1,0x5bb)](hookMatcherGroupSchema)[_0x1e45aa(0x833,0x648,0x701,0x66e)](),'Stop':z['array'](hookMatcherGroupSchema)[_0x1e45aa(0x66f,0x86f,0x701,0x5c0)](),'Notification':z[_0x55c88d(0x5ac,0x4b7,0x4ad,0x49f)](hookMatcherGroupSchema)[_0x55c88d(0x45a,0x450,0x5c5,0x339)](),'ToolApprovalRequest':z[_0x1e45aa(0x6fc,0x631,0x768,0x763)](hookMatcherGroupSchema)[_0x1e45aa(0x5e8,0x5f9,0x701,0x612)](),'SessionStart':z[_0x55c88d(0x518,0x4b7,0x629,0x41b)](hookMatcherGroupSchema)[_0x1e45aa(0x58e,0x61f,0x701,0x6fb)](),'SessionEnd':z[_0x1e45aa(0x766,0x712,0x768,0x767)](hookMatcherGroupSchema)[_0x1e45aa(0x7b8,0x82d,0x701,0x5ee)]()}),providerNameSchema=z[_0x55c88d(0x3b6,0x46e,0x434,0x31e)]()[_0x1e45aa(0x5a1,0x58d,0x585,0x6e7)](0x1,_0x55c88d(0x590,0x40b,0x560,0x4ca))[_0x1e45aa(0x57d,0x676,0x620,0x72d)](_0x3f209f=>!_0x3f209f['includes'](':'),_0x55c88d(0x387,0x2be,0x40f,0x360)),cliConfigSchema=z[_0x55c88d(0x390,0x357,0x361,0x4b4)]({'activeProvider':providerNameSchema['optional'](),'activeModel':z['string']()[_0x1e45aa(0x6cd,0x6d9,0x701,0x840)](),'apiKey':z[_0x1e45aa(0x7c7,0x895,0x71f,0x797)]()[_0x1e45aa(0x610,0x857,0x701,0x686)](),'providers':z['record'](providerNameSchema,providerConfigSchema)[_0x1e45aa(0x7c9,0x853,0x701,0x657)](),'mcp':mcpSettingsSchema[_0x1e45aa(0x72f,0x7b6,0x701,0x7ab)](),'skills':skillsSettingsSchema[_0x1e45aa(0x814,0x590,0x701,0x73f)](),'agents':agentsSettingsSchema[_0x1e45aa(0x6a2,0x6e6,0x701,0x634)](),'commands':commandsSettingsSchema[_0x55c88d(0x554,0x450,0x503,0x53e)](),'skillsEnabled':z[_0x55c88d(0x303,0x40d,0x325,0x48d)](z[_0x1e45aa(0x693,0x71b,0x71f,0x611)](),z[_0x55c88d(0x2d1,0x394,0x338,0x25b)]())['optional'](),'allowedDirs':z['array'](z[_0x55c88d(0x49e,0x46e,0x444,0x2f2)]())[_0x1e45aa(0x79d,0x60f,0x701,0x797)](),'mcpEnabled':prototypeSafeRecord(z[_0x1e45aa(0x6ef,0x683,0x645,0x558)]())[_0x55c88d(0x554,0x450,0x3b3,0x2de)](),'commandsEnabled':z[_0x1e45aa(0x58f,0x5d2,0x6be,0x6d2)](z['string'](),z[_0x55c88d(0x2b6,0x394,0x50e,0x315)]())[_0x55c88d(0x366,0x450,0x54d,0x582)](),'memory':memorySettingsSchema[_0x55c88d(0x384,0x450,0x3bb,0x38c)](),'session':z['object']({'memPersist':z[_0x55c88d(0x508,0x394,0x302,0x2ff)]()[_0x55c88d(0x300,0x450,0x402,0x5d2)](),'persistEventLog':z[_0x1e45aa(0x6a4,0x6e0,0x645,0x4bf)]()[_0x1e45aa(0x5c2,0x6e3,0x701,0x85e)](),'persistHttpLog':z[_0x55c88d(0x23b,0x394,0x42b,0x468)]()['optional']()})[_0x1e45aa(0x5eb,0x4c0,0x57a,0x413)]()[_0x1e45aa(0x5b0,0x825,0x701,0x5ed)](),'requireToolApproval':z['boolean']()[_0x1e45aa(0x6bd,0x7a7,0x701,0x6b1)](),'thinking':z[_0x55c88d(0x43d,0x45b,0x37d,0x55b)]([_0x1e45aa(0x469,0x59f,0x59f,0x5df),_0x55c88d(0x4f5,0x4ed,0x631,0x5bc),_0x1e45aa(0x4b4,0x535,0x634,0x732),_0x1e45aa(0x602,0x5fe,0x6d3,0x7ff)])[_0x55c88d(0x4ae,0x450,0x30d,0x3df)](),'streamingChunks':z['boolean']()[_0x1e45aa(0x7da,0x7c8,0x701,0x883)](),'agentsEnabled':z['record'](z[_0x1e45aa(0x7c5,0x5e4,0x71f,0x85f)](),z['boolean']())[_0x1e45aa(0x7d8,0x7b0,0x701,0x613)](),'recentModels':z[_0x1e45aa(0x60a,0x74e,0x768,0x69b)](recentModelSchema)[_0x1e45aa(0x82a,0x68c,0x701,0x777)](),'lsp':lspConfigSchema['optional'](),'servers':z[_0x55c88d(0x43a,0x40d,0x4aa,0x3dd)](z[_0x1e45aa(0x7e5,0x603,0x71f,0x646)](),serverEndpointSchema)[_0x55c88d(0x5c2,0x450,0x5d1,0x4e8)](),'ui':z['object']({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x1e45aa(0x58b,0x85f,0x701,0x718)]()})[_0x55c88d(0x20c,0x2c9,0x187,0x311)]()[_0x55c88d(0x41b,0x450,0x5bb,0x58d)](),'tools':z[_0x1e45aa(0x543,0x740,0x6be,0x570)](z[_0x1e45aa(0x864,0x804,0x71f,0x790)](),z[_0x1e45aa(0x8ec,0x919,0x83b,0x7a6)]())['optional'](),'hooks':hooksConfigSchema['optional']()})[_0x55c88d(0x182,0x2c9,0x292,0x161)](),workspaceOverlaySchema=z['object']({'root':z[_0x55c88d(0x438,0x46e,0x3f1,0x51f)]()[_0x1e45aa(0x880,0x5f8,0x701,0x600)](),'allowedDirs':z['array'](z[_0x1e45aa(0x88c,0x7fd,0x71f,0x61b)]())[_0x1e45aa(0x812,0x5e2,0x701,0x703)](),'activeProvider':providerNameSchema['optional'](),'activeModel':z[_0x1e45aa(0x84c,0x70f,0x71f,0x5a6)]()[_0x55c88d(0x5a8,0x450,0x5a7,0x4c9)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x1e45aa(0x6ae,0x73e,0x701,0x61e)](),'agents':agentsSettingsSchema[_0x55c88d(0x414,0x450,0x415,0x3d9)](),'commands':commandsSettingsSchema[_0x55c88d(0x543,0x450,0x59c,0x549)](),'hooks':hooksConfigSchema[_0x55c88d(0x4c7,0x450,0x39b,0x4d1)](),'memory':memorySettingsSchema['optional'](),'mcpEnabled':prototypeSafeRecord(z[_0x55c88d(0x471,0x394,0x48b,0x46f)]())[_0x1e45aa(0x772,0x6fe,0x701,0x5ab)](),'skillsEnabled':z['record'](z[_0x1e45aa(0x6a9,0x7eb,0x71f,0x81b)](),z[_0x55c88d(0x2c5,0x394,0x454,0x318)]())[_0x55c88d(0x4e7,0x450,0x550,0x41b)](),'agentsEnabled':z[_0x1e45aa(0x827,0x61d,0x6be,0x544)](z[_0x1e45aa(0x5af,0x671,0x71f,0x86a)](),z['boolean']())[_0x55c88d(0x3f3,0x450,0x3d1,0x45e)](),'commandsEnabled':z['record'](z['string'](),z[_0x55c88d(0x249,0x394,0x322,0x3a4)]())[_0x1e45aa(0x69d,0x5e5,0x701,0x7c5)]()})[_0x1e45aa(0x59c,0x4d6,0x57a,0x6a1)](),PROTOTYPE_SENSITIVE_NAMES2=new Set([...Object[_0x1e45aa(0x642,0x549,0x65e,0x7bc)](Object[_0x55c88d(0x390,0x430,0x49c,0x416)]),_0x1e45aa(0x840,0x695,0x6e1,0x60a)]);function buildDescription(_0x1f3cf8){const _0x2e2b23={_0x1d446e:0x5a2,_0x2ff051:0x469,_0x19c37b:0x623,_0x14f83a:0x33c,_0x1ac631:0x370,_0x28e70e:0x4b5,_0x358f33:0x421,_0x355840:0x499,_0xf7b03a:0x3fe,_0x281224:0x436,_0x1daec1:0x525,_0x2633ba:0x460,_0xa75052:0x357,_0x39acf7:0x4fc,_0x1d56a4:0x627,_0x4c5492:0x3f2,_0x223b3d:0x488,_0x1762e5:0x37b,_0xfa021e:0x405},_0x416591={_0x1ee508:0xa6,_0xbe1f04:0x277};if(_0x1f3cf8[_0x256e8b(_0x2e2b23._0x1d446e,0x56b,_0x2e2b23._0x2ff051,_0x2e2b23._0x19c37b)]===0x0)return[_0x2e0824(0x432,0x563,0x45d,_0x2e2b23._0x14f83a),_0x256e8b(_0x2e2b23._0x1ac631,0x4bb,0x597,0x5b7),_0x2e0824(_0x2e2b23._0x28e70e,_0x2e2b23._0x358f33,0x3f9,_0x2e2b23._0x355840)][_0x2e0824(_0x2e2b23._0xf7b03a,0x28d,0x2b0,_0x2e2b23._0x281224)]('\x0a');function _0x2e0824(_0x54207c,_0x158f9a,_0x2bbcc9,_0xf6c65e){return _0x1e45aa(_0x54207c-0x19f,_0x158f9a-0x134,_0x54207c- -0x2a5,_0xf6c65e);}function _0x256e8b(_0x1eda61,_0x18f40b,_0x3b17ef,_0x116aa1){return _0x1e45aa(_0x1eda61-0x182,_0x18f40b-_0x416591._0x1ee508,_0x18f40b- -_0x416591._0xbe1f04,_0x116aa1);}const _0x3f9ca6=[_0x256e8b(_0x2e2b23._0x1daec1,_0x2e2b23._0x2633ba,_0x2e2b23._0xa75052,0x39a),_0x256e8b(_0x2e2b23._0x39acf7,0x4bb,_0x2e2b23._0x1d56a4,_0x2e2b23._0x4c5492),_0x2e0824(0x42c,_0x2e2b23._0x223b3d,0x381,0x56e),..._0x1f3cf8['map'](_0x14ea78=>_0x14ea78[_0x256e8b(0x498,0x39d,0x21f,0x24b)]?'-\x20'+_0x14ea78['name']+'\x20'+_0x14ea78[_0x2e0824(0x36f,0x49a,0x430,0x2cc)]+':\x20'+_0x14ea78['description']:'-\x20'+_0x14ea78[_0x256e8b(0x513,0x519,0x417,0x604)]+':\x20'+_0x14ea78[_0x2e0824(0x551,0x573,0x66d,0x587)])];return _0x3f9ca6[_0x2e0824(0x3fe,_0x2e2b23._0x1762e5,_0x2e2b23._0xfa021e,0x3e3)]('\x0a');}function createInvokeCommandTool(_0x23084d){const _0x3d86a4={_0x2d0a35:0x431,_0x5536ac:0x4b1,_0x21616c:0x495,_0x45687c:0x379,_0x7937a1:0x41c,_0x124557:0x1ff,_0x50071c:0x453,_0x3a2c2a:0x417},_0x373704={_0x216ee5:0x277,_0xa7372e:0x1af,_0x1f8469:0x90,_0x164b1e:0xac,_0x254197:0x1dd,_0x5b917f:0x101,_0x9383ad:0x30,_0x457f5:0x5f,_0x4aff9b:0xac,_0xaf48e7:0x60,_0x574e47:0x127,_0x155105:0x4c,_0x4c4ae2:0x38,_0xfd8ab6:0xdb,_0x39dedd:0x1fa,_0x294923:0x7f,_0x67107f:0x60,_0x37d137:0x16e,_0x3700b5:0x22f,_0x4c96fc:0x253},_0x41c660={_0x2f465e:0xc5},_0x5a54ec={_0x10eb06:0x17e},_0x25e1e3={_0x88941e:0x108,_0x45e2aa:0x57};function _0x1626e0(_0x110c9b,_0x4cd2e0,_0x4fef02,_0x251a72){return _0x55c88d(_0x110c9b-_0x25e1e3._0x88941e,_0x4fef02- -_0x25e1e3._0x45e2aa,_0x110c9b,_0x251a72-0xe7);}const _0x36b985=new Map(_0x23084d['commands'][_0x1626e0(0x5a1,0x559,_0x3d86a4._0x2d0a35,_0x3d86a4._0x5536ac)](_0x347c74=>[_0x347c74['id'],_0x347c74]));function _0x37eda6(_0x127c5a,_0x413915,_0x33e601,_0x507c6e){return _0x1e45aa(_0x127c5a-0xed,_0x413915-0x121,_0x413915- -_0x5a54ec._0x10eb06,_0x127c5a);}const _0x295c36=buildDescription(_0x23084d[_0x1626e0(_0x3d86a4._0x21616c,0x4e0,_0x3d86a4._0x45687c,0x431)]);return defineTool({'name':_0x1626e0(0x37e,0x3f3,0x2a9,0x1f0),'description':_0x295c36,'inputSchema':{'type':_0x1626e0(0x402,_0x3d86a4._0x7937a1,0x300,_0x3d86a4._0x124557),'properties':{'name':{'type':'string'},'args':{'type':_0x1626e0(_0x3d86a4._0x50071c,0x3c7,_0x3d86a4._0x3a2c2a,0x29e)}},'required':['name']},async *'execute'(_0x5b5395){const _0x37db61={_0x591677:0x1cf};function _0x5c84c0(_0x16b80a,_0x2281b6,_0x476dd1,_0x19045b){return _0x37eda6(_0x476dd1,_0x16b80a- -0x3ee,_0x476dd1-0x161,_0x19045b-_0x37db61._0x591677);}const _0x13db60=_0x36b985[_0x5c84c0(_0x373704._0x216ee5,0x1e4,_0x373704._0xa7372e,0x146)](_0x5b5395['name']);if(!_0x13db60){const _0x3d8a00=Array[_0x2dc4d0(0x1d3,_0x373704._0x1f8469,_0x373704._0x164b1e,0xb0)](_0x36b985[_0x2dc4d0(_0x373704._0x254197,_0x373704._0x5b917f,-_0x373704._0x9383ad,0x267)]())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0x5b5395['name']+_0x2dc4d0(-_0x373704._0x457f5,-_0x373704._0x4aff9b,-0x150,-0x92)+_0x3d8a00,{'name':_0x5b5395[_0x2dc4d0(0x77,_0x373704._0xaf48e7,-0x5d,_0x373704._0x574e47)]});}const _0x373515=await _0x23084d[_0x5c84c0(0xab,0x131,_0x373704._0x155105,-_0x373704._0x4c4ae2)](_0x13db60),_0x186377=_0x5b5395[_0x2dc4d0(0xbb,0x14,0x136,_0x373704._0xfd8ab6)]??'';function _0x2dc4d0(_0x402a69,_0x36bfe2,_0x7c9c18,_0x2dbe53){return _0x37eda6(_0x402a69,_0x36bfe2- -0x5b2,_0x7c9c18-0x125,_0x2dbe53-_0x41c660._0x2f465e);}const _0x4df892=renderCommandInstructions({'instructions':_0x373515['instructions'],'argumentsText':_0x186377,'argumentNames':_0x373515[_0x2dc4d0(0x83,0xe5,_0x373704._0x39dedd,-_0x373704._0x294923)]});return yield createToolOutput(_0x4df892,{'id':_0x373515['id'],'name':_0x373515[_0x2dc4d0(-0xad,_0x373704._0x67107f,-0x2f,0x93)],'path':_0x13db60['source'][_0x5c84c0(_0x373704._0x37d137,_0x373704._0x3700b5,0x169,_0x373704._0x4c96fc)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x1fb475,rename as _0x3bafcb,stat as _0x176835,writeFile as _0x1bdc9e}from'fs/promises';import*as _0x507425 from'path';function detectEol(_0x3391da){const _0x5dca54={_0x5e2c41:0x2b2,_0x1317c1:0x201,_0x4ef032:0x15a,_0x1c087c:0x139,_0xf0d3b1:0x1,_0x230691:0x663,_0x1d5caa:0x50f,_0x112a62:0x67a},_0x384a7c={_0x54f704:0x2ad},_0x3f1d39={_0x515304:0x16b};function _0x59f4c3(_0x46f377,_0x307c3f,_0x32d7fb,_0x48fa18){return _0x1e45aa(_0x46f377-_0x3f1d39._0x515304,_0x307c3f-0x8d,_0x48fa18- -0xc2,_0x307c3f);}function _0x1a48bb(_0xa58a41,_0x15fe88,_0x248e45,_0x297a62){return _0x55c88d(_0xa58a41-0xff,_0x15fe88- -_0x384a7c._0x54f704,_0xa58a41,_0x297a62-0x8b);}return/\r\n/[_0x1a48bb(0x25d,_0x5dca54._0x5e2c41,0x22a,0x189)](_0x3391da[_0x1a48bb(0xfc,0x16f,_0x5dca54._0x1317c1,0x1a6)](_0x1a48bb(_0x5dca54._0x4ef032,_0x5dca54._0x1c087c,0x21e,_0x5dca54._0xf0d3b1)))?_0x59f4c3(0x7da,_0x5dca54._0x230691,_0x5dca54._0x1d5caa,_0x5dca54._0x112a62):'lf';}function normalizeToLf(_0x260b6a){const _0x470667={_0x57b00c:0x17b,_0xae110b:0x17d,_0x3e1306:0x67},_0x57999a={_0x2cf55c:0x315,_0x5ddba2:0xe1};function _0x819b5e(_0x5e0a24,_0x488c1e,_0x5d21ea,_0x37f254){return _0x55c88d(_0x5e0a24-0x1ca,_0x5d21ea- -_0x57999a._0x2cf55c,_0x488c1e,_0x37f254-_0x57999a._0x5ddba2);}return _0x260b6a[_0x819b5e(_0x470667._0x57b00c,_0x470667._0xae110b,_0x470667._0x3e1306,0xac)](/\r\n/g,'\x0a');}function convertEol(_0x5a057,_0x194261){return _0x194261==='crlf'?_0x5a057['replace'](/\n/g,'\x0d\x0a'):_0x5a057;}async function atomicWrite(_0x360338,_0x218a4f){const _0x50c00a={_0x2fde44:0x383,_0x12a35b:0x373,_0x4f414b:0x4c7,_0x51c05f:0x3e1,_0x327c1b:0x5ba,_0x1242ac:0x29a,_0x26dba1:0x38c,_0x58c4d6:0x568,_0x5e29c0:0x213,_0x3800c5:0x1bc},_0x4b8cf3={_0x5926db:0x106,_0x4edfae:0x2c2},_0x34cb52={_0x5fc9da:0x4b};function _0x90850e(_0x3f0ecb,_0x50260c,_0x13e950,_0x2a36a6){return _0x1e45aa(_0x3f0ecb-0x17,_0x50260c-0xdc,_0x3f0ecb- -_0x34cb52._0x5fc9da,_0x50260c);}const _0x3188ed=_0x507425['dirname'](_0x360338),_0x471cee=_0x507425[_0x428e08(_0x50c00a._0x2fde44,_0x50c00a._0x12a35b,_0x50c00a._0x4f414b,_0x50c00a._0x51c05f)](_0x3188ed,_0x90850e(0x6fc,0x6a8,0x699,_0x50c00a._0x327c1b)+_0x507425['basename'](_0x360338)+'.'+Date[_0x428e08(0x39f,0x27f,_0x50c00a._0x1242ac,_0x50c00a._0x26dba1)]()+'.'+Math[_0x90850e(_0x50c00a._0x58c4d6,0x5a8,0x662,0x57d)]()['toString'](0x24)[_0x428e08(_0x50c00a._0x5e29c0,0x1c7,_0x50c00a._0x3800c5,0x2b4)](0x2));function _0x428e08(_0x4c6188,_0x3e9e10,_0x2d1fc7,_0x233fa8){return _0x1e45aa(_0x4c6188-0xf2,_0x3e9e10-_0x4b8cf3._0x5926db,_0x233fa8- -_0x4b8cf3._0x4edfae,_0x2d1fc7);}await _0x1bdc9e(_0x471cee,_0x218a4f),await _0x3bafcb(_0x471cee,_0x360338);}function sha256(_0x235a10){const _0x43d381={_0x3d9e1a:0x6fe,_0x44651d:0x700,_0x5574bc:0x560,_0x61ff95:0x4c1,_0x4f1ad3:0x65c,_0x1b5df2:0x717,_0x49b8dc:0x3ac,_0x5bdb60:0x3d9},_0x1ead47={_0x2b12fb:0xc3,_0x3e809c:0x158,_0x179751:0x37f},_0x1a39dd={_0x5905f5:0x144,_0x2ad6ea:0x183,_0x588fa0:0xa4};function _0x503f71(_0x9bdb52,_0x406d38,_0x593fb9,_0x37af86){return _0x1e45aa(_0x9bdb52-_0x1a39dd._0x5905f5,_0x406d38-_0x1a39dd._0x2ad6ea,_0x593fb9- -_0x1a39dd._0x588fa0,_0x406d38);}function _0x10cea0(_0x2592cf,_0x359722,_0xc1441a,_0x2472ae){return _0x1e45aa(_0x2592cf-_0x1ead47._0x2b12fb,_0x359722-_0x1ead47._0x3e809c,_0xc1441a- -_0x1ead47._0x179751,_0x359722);}return createHash(_0x503f71(_0x43d381._0x3d9e1a,0x58c,_0x43d381._0x44651d,0x816))[_0x503f71(_0x43d381._0x5574bc,_0x43d381._0x61ff95,0x537,0x3d3)](_0x235a10)[_0x503f71(0x7aa,0x54b,_0x43d381._0x4f1ad3,_0x43d381._0x1b5df2)](_0x10cea0(_0x43d381._0x49b8dc,_0x43d381._0x5bdb60,0x40e,0x290));}function countLines(_0x42873f){const _0x36f92f={_0x43ea70:0x521,_0x2818d1:0x413,_0x4af573:0x58d,_0x43cca3:0x2d9,_0x2f66a2:0x38a,_0x56b96f:0x41e,_0x2f5cab:0x63b},_0xcf335c={_0x244e28:0x1de,_0x4a2e81:0xa4},_0x302332={_0x317cee:0x211};function _0x1b0f06(_0x4515f5,_0x3ef73d,_0x2aae93,_0x1a8a97){return _0x55c88d(_0x4515f5-0xd4,_0x1a8a97-_0x302332._0x317cee,_0x3ef73d,_0x1a8a97-0x6c);}const _0x448e0f=_0x42873f[_0x1b0f06(0x514,_0x36f92f._0x43ea70,_0x36f92f._0x2818d1,_0x36f92f._0x4af573)](/\n$/,'');function _0x13daac(_0x3fdef5,_0xc2b2f6,_0x378c8c,_0x9189a9){return _0x1e45aa(_0x3fdef5-_0xcf335c._0x244e28,_0xc2b2f6-_0xcf335c._0x4a2e81,_0x378c8c- -0x458,_0x3fdef5);}return _0x448e0f[_0x13daac(0x3de,_0x36f92f._0x43cca3,_0x36f92f._0x2f66a2,_0x36f92f._0x56b96f)]===0x0?0x0:_0x448e0f[_0x1b0f06(0x752,0x70c,0x71a,_0x36f92f._0x2f5cab)]('\x0a')['length'];}function calculateLineNumbers(_0x31b639,_0x440658,_0x1d2fa7,_0x56648c){const _0x3797b3={_0x1aebda:0x1cd,_0x1c6e49:0x13b,_0x2d3c5f:0x6e},_0x512cb3={_0x596223:0x19a,_0x47d652:0x56},_0x41a9cd={_0x224d62:0x99,_0x1db624:0x1a,_0x3d4d79:0x62},_0xad2236=_0x31b639[_0x3c5eaf(0x220,0x201,0x2df,_0x3797b3._0x1aebda)](0x0,_0x56648c)[_0x52fed1(-_0x3797b3._0x1c6e49,-0x1f9,-0x20,-0x7e)]('\x0a')[_0x52fed1(0x1b1,_0x3797b3._0x2d3c5f,-0xcd,0x89)],_0x28a21d=countLines(_0x440658);function _0x3c5eaf(_0x224b3e,_0x4ad870,_0x16a82d,_0x2edcc1){return _0x55c88d(_0x224b3e-_0x41a9cd._0x224d62,_0x16a82d-_0x41a9cd._0x1db624,_0x2edcc1,_0x2edcc1-_0x41a9cd._0x3d4d79);}const _0xe57fcd=countLines(_0x1d2fa7);function _0x52fed1(_0x543be8,_0x24e417,_0x40c714,_0x314e9a){return _0x55c88d(_0x543be8-_0x512cb3._0x596223,_0x314e9a- -0x4a8,_0x543be8,_0x314e9a-_0x512cb3._0x47d652);}return{'oldStartLine':_0xad2236,'oldEndLine':_0xad2236+_0x28a21d-0x1,'newStartLine':_0xad2236,'newEndLine':_0xad2236+_0xe57fcd-0x1,'oldLineCount':_0x28a21d,'newLineCount':_0xe57fcd};}function createFileEditTool(_0x983921={}){const _0xd1f276={_0x8113a4:0x2f8,_0x229de1:0x180,_0x29ed48:0x2ec,_0x9ef049:0x2a4,_0x10292d:0x1d6,_0x120866:0x12a,_0x568c97:0x2e3,_0x1bdd19:0x387,_0x6d39aa:0x3b1,_0x571255:0x390,_0x4a472d:0xf4,_0x377429:0x26e,_0x31cff4:0x183,_0x51b335:0x130,_0x52014e:0x28a,_0x5a9285:0x2e5,_0x8e61fe:0x24c,_0x5d0c43:0x108,_0x28e337:0x443,_0xfb6f3a:0x30e,_0x10fd69:0x2fd,_0x2b6427:0x207,_0x514a88:0x2f7,_0x28f5f9:0xe9,_0x270f10:0x2a0,_0x4a9098:0x12d,_0x1a94bd:0x103,_0x87e4e7:0x158,_0x5c4b24:0x41e},_0x55e13c={_0x187470:0x755,_0x56a65d:0x51d,_0x3a7ea9:0x672,_0x2891ef:0x648,_0x595ff2:0x3d0,_0x289e3b:0x32b,_0x56fe9a:0x341,_0x5579c1:0x3d6,_0x423020:0x338,_0x2f4502:0x238,_0x32d649:0x349,_0x4b745a:0x583,_0x3ea40a:0x4f1,_0x3f481a:0x372,_0x109cd0:0x3f5,_0x49a444:0x2dd,_0x1428c9:0x3aa,_0x5cafda:0x495,_0x476458:0x4b4,_0x171cf7:0x46e,_0x5d2d02:0x583,_0x2ef165:0x554,_0x3d5576:0x531,_0x2b60a8:0x5bf,_0x82d31d:0x59e,_0x4eaec8:0x5d6,_0x1d5ba8:0x5ce,_0x44c5d8:0x5d8,_0x23b907:0x55f,_0x26c365:0x4c7,_0x3b235e:0x499,_0x40a316:0x5e6,_0x50c356:0x4a2,_0x1f0dea:0x594,_0x205afc:0x2e7,_0xc0c775:0x424,_0x2d13fd:0x56e,_0x5a1fd4:0x403,_0x219b2d:0x49a,_0x376976:0x701,_0x4ec111:0x723,_0x25f65a:0x7bf,_0x2207fb:0x7e8,_0x34f9e7:0x701,_0x43e76d:0x616},_0x17ab8f={_0x4dea4d:0x17b},_0x398845={_0x12632c:0x1e3,_0x221758:0x6e},_0x14951f={_0x99eb57:0x118},_0x16828d=_0x507425[_0x580b86(_0xd1f276._0x8113a4,_0xd1f276._0x229de1,0x178,_0xd1f276._0x29ed48)](_0x983921[_0x580b86(_0xd1f276._0x9ef049,_0xd1f276._0x10292d,0xf9,_0xd1f276._0x120866)]??process[_0x510f56(0x3e7,_0xd1f276._0x568c97,_0xd1f276._0x1bdd19,_0xd1f276._0x6d39aa)]());function _0x580b86(_0x571364,_0x35b494,_0x2e12c6,_0x4a9cd2){return _0x1e45aa(_0x571364-0x166,_0x35b494-_0x14951f._0x99eb57,_0x35b494- -0x518,_0x2e12c6);}function _0x510f56(_0xccd841,_0x20053a,_0x7d1136,_0xc2483){return _0x55c88d(_0xccd841-_0x398845._0x12632c,_0x20053a- -0x2b,_0xc2483,_0xc2483-_0x398845._0x221758);}const _0xb8ebe4=_0x983921[_0x580b86(0x2f6,0x252,_0xd1f276._0x571255,_0xd1f276._0x4a472d)]??[],_0x238d95=_0x983921['name']??_0x580b86(_0xd1f276._0x377429,_0xd1f276._0x31cff4,_0xd1f276._0x51b335,_0xd1f276._0x52014e);return defineTool({'name':_0x238d95,'description':_0x580b86(_0xd1f276._0x5a9285,_0xd1f276._0x8e61fe,0x282,_0xd1f276._0x5d0c43),'inputSchema':{'type':'object','properties':{'filePath':{'type':'string'},'description':{'type':_0x510f56(0x457,_0xd1f276._0x28e337,0x420,_0xd1f276._0xfb6f3a),'description':'A\x20concise\x20explanation\x20of\x20what\x20this\x20edit\x20changes\x20and\x20why\x20—\x20the\x20goal\x20it\x20advances.\x20Shown\x20to\x20the\x20user\x20before\x20the\x20change\x20is\x20applied.\x20Be\x20specific,\x20e.g.\x20\x27Fix\x20the\x20token-refresh\x20race\x20in\x20the\x20auth\x20client\x27\x20rather\x20than\x20\x27edit\x20file\x27.'},'oldText':{'type':_0x580b86(_0xd1f276._0x10fd69,_0xd1f276._0x2b6427,_0xd1f276._0x514a88,_0xd1f276._0x28f5f9)},'newText':{'type':'string'},'dryRun':{'type':_0x580b86(_0xd1f276._0x270f10,_0xd1f276._0x4a9098,_0xd1f276._0x1a94bd,0x10d)}},'required':[_0x580b86(0x37,_0xd1f276._0x87e4e7,0x9d,0xa7),_0x510f56(0x55c,0x477,_0xd1f276._0x5c4b24,0x580),'newText']},async *'execute'(_0x2c0fb6){const _0x4a93a0={_0x7091ba:0x1d,_0x504ef1:0x2b9,_0x24ccf2:0xa9},_0x4c9c18=resolveAllowedPath(_0x16828d,_0xb8ebe4,_0x2c0fb6[_0x3337fa(0x6b4,0x58f,0x477,0x671)]);await assertWorkspaceFile(_0x4c9c18);const _0x112f7e=await _0x176835(_0x4c9c18),_0x4bec85=await _0x1fb475(_0x4c9c18),_0x4febb3=detectEol(_0x4bec85),_0x291163=normalizeToLf(_0x4bec85[_0x3337fa(_0x55e13c._0x187470,0x5ec,0x4ef,_0x55e13c._0x56a65d)]('utf8')),_0x4c3109=normalizeToLf(_0x2c0fb6[_0x3337fa(0x75a,_0x55e13c._0x3a7ea9,_0x55e13c._0x2891ef,0x6cf)]),_0x12f9ca=normalizeToLf(_0x2c0fb6[_0x291498(_0x55e13c._0x595ff2,_0x55e13c._0x289e3b,_0x55e13c._0x56fe9a,_0x55e13c._0x5579c1)]);function _0x291498(_0x25addc,_0x2997d8,_0x466e8f,_0x3f0848){return _0x580b86(_0x25addc-_0x4a93a0._0x7091ba,_0x2997d8-_0x4a93a0._0x504ef1,_0x466e8f,_0x3f0848-_0x4a93a0._0x24ccf2);}const _0x46ee9d=_0x291163[_0x291498(0x1fe,_0x55e13c._0x423020,_0x55e13c._0x2f4502,0x47d)](_0x4c3109);if(_0x46ee9d===-0x1){const _0x449d11=_0x4c3109[_0x291498(0x46a,0x317,_0x55e13c._0x32d649,0x309)](0x0,0x64)['replace'](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x449d11+(_0x4c3109[_0x291498(0x5a3,_0x55e13c._0x4b745a,0x4d2,_0x55e13c._0x3ea40a)]>0x64?'...':'')+'\x22',{'filePath':_0x2c0fb6[_0x291498(_0x55e13c._0x3f481a,0x411,_0x55e13c._0x109cd0,_0x55e13c._0x49a444)]});}const _0xeded12=_0x291163['slice'](0x0,_0x46ee9d)+_0x12f9ca+_0x291163[_0x3337fa(_0x55e13c._0x1428c9,_0x55e13c._0x5cafda,0x465,_0x55e13c._0x476458)](_0x46ee9d+_0x4c3109[_0x291498(_0x55e13c._0x171cf7,_0x55e13c._0x5d2d02,0x475,_0x55e13c._0x2ef165)]),_0x1427ae=convertEol(_0xeded12,_0x4febb3),_0x342f60=Buffer[_0x3337fa(0x7c7,0x6df,0x5f7,0x603)](_0x1427ae,_0x291498(0x3f6,0x438,_0x55e13c._0x3d5576,0x50f)),_0x1d8095=sha256(_0x4bec85),_0x17f3fc=sha256(_0x342f60),_0x231a95=_0x1d8095===_0x17f3fc,_0x31756b=_0x2c0fb6[_0x291498(_0x55e13c._0x2b60a8,_0x55e13c._0x82d31d,0x435,_0x55e13c._0x4eaec8)]??![];!_0x31756b&&!_0x231a95&&await atomicWrite(_0x4c9c18,_0x342f60);yield createToolOutput(_0x231a95?_0x291498(_0x55e13c._0x1d5ba8,0x57d,0x4e5,_0x55e13c._0x44c5d8):_0x31756b?_0x291498(0x669,_0x55e13c._0x23b907,_0x55e13c._0x26c365,0x419):_0x291498(0x537,_0x55e13c._0x3b235e,0x42e,0x4c8),{'filePath':_0x2c0fb6[_0x3337fa(_0x55e13c._0x40a316,0x58f,0x4fb,_0x55e13c._0x3ea40a)],'resolvedPath':_0x4c9c18,'created':_0x112f7e['birthtime'][_0x291498(_0x55e13c._0x50c356,0x56e,_0x55e13c._0x1f0dea,0x590)](),'modified':_0x112f7e[_0x291498(_0x55e13c._0x205afc,_0x55e13c._0xc0c775,0x2a6,0x41b)][_0x291498(0x5f3,_0x55e13c._0x2d13fd,0x58a,0x437)](),'size':_0x112f7e[_0x3337fa(_0x55e13c._0x5a1fd4,_0x55e13c._0x219b2d,0x37d,0x3cc)],'eol':_0x4febb3,'oldTextLength':_0x4c3109[_0x3337fa(0x886,_0x55e13c._0x376976,_0x55e13c._0x4ec111,_0x55e13c._0x25f65a)],'newTextLength':_0x12f9ca[_0x3337fa(_0x55e13c._0x2207fb,_0x55e13c._0x34f9e7,0x6ed,_0x55e13c._0x43e76d)],'bytesWritten':_0x231a95||_0x31756b?0x0:_0x342f60[_0x3337fa(_0x55e13c._0x4eaec8,0x701,0x7bd,0x788)],'beforeSha':_0x1d8095,'afterSha':_0x17f3fc,'dryRun':_0x31756b,'noChange':_0x231a95,'lineNumbers':calculateLineNumbers(_0x291163,_0x4c3109,_0x12f9ca,_0x46ee9d)});function _0x3337fa(_0x287461,_0x3c394a,_0xf6b019,_0x2052db){return _0x510f56(_0x287461-0x156,_0x3c394a-0x1fb,_0xf6b019-_0x17ab8f._0x4dea4d,_0x287461);}return void 0x0;}});}import{mkdir as _0x454091,rename as _0x23a7cb,stat as _0x413b4f,writeFile as _0x2c0ad1}from'fs/promises';import*as _0x3c1a5f from'path';async function atomicWrite2(_0x1ea760,_0x1c32fc){const _0x56f54a={_0x5e23c0:0x4c7,_0xf60168:0x40f,_0x2b8102:0x659,_0x3003d5:0x2f7,_0x454436:0x4f6,_0x429aae:0x4df,_0x3d826b:0x42f,_0x97002b:0x5b5},_0x49f9e7={_0x4d9864:0xd4},_0x22f001={_0x2df7b5:0x1d2,_0x9142e:0x1b9},_0x4c5898=_0x3c1a5f[_0x1a19fc(_0x56f54a._0x5e23c0,0x58a,0x562,0x654)](_0x1ea760);await _0x454091(_0x4c5898,{'recursive':!![]});const _0x4d281a=_0x3c1a5f['join'](_0x4c5898,_0x47d9c9(_0x56f54a._0xf60168,0x55c,_0x56f54a._0x2b8102,0x510)+_0x3c1a5f['basename'](_0x1ea760)+'.'+Date[_0x47d9c9(0x435,_0x56f54a._0x3003d5,0x41d,0x417)]()+'.'+Math[_0x1a19fc(_0x56f54a._0x454436,0x5f2,_0x56f54a._0x429aae,0x382)]()[_0x47d9c9(_0x56f54a._0x3d826b,0x5fa,_0x56f54a._0x97002b,0x496)](0x24)['slice'](0x2));function _0x47d9c9(_0x8f2263,_0x160ab2,_0x4fd83f,_0x4b45ec){return _0x55c88d(_0x8f2263-_0x22f001._0x2df7b5,_0x4b45ec-0x7a,_0x160ab2,_0x4b45ec-_0x22f001._0x9142e);}function _0x1a19fc(_0x1d6eb,_0x51b214,_0x528cc0,_0xbd0e0a){return _0x1e45aa(_0x1d6eb-0x193,_0x51b214-0x175,_0x528cc0- -_0x49f9e7._0x4d9864,_0xbd0e0a);}await _0x2c0ad1(_0x4d281a,_0x1c32fc),await _0x23a7cb(_0x4d281a,_0x1ea760);}function createFileNewTool(_0xf84fbf={}){const _0x37f2fb={_0x26f1dd:0x463,_0x4e6a3f:0x57a,_0x16e629:0x528,_0x3979bc:0x102,_0x5692a5:0x4e,_0x13f270:0x101,_0x146bf3:0x356,_0x57b391:0x455,_0x269f7f:0x4b4,_0x30700b:0x6e3,_0x424507:0x5fa,_0xa2da03:0x1a4,_0x42dd79:0x1d1,_0x4ab451:0x721,_0x1f0c0a:0x57f,_0x1b5d06:0x605,_0x4ce31f:0x21c,_0x11ae4d:0xd3,_0x51384b:0x5d1,_0x205cb0:0x4c3,_0x3fa60b:0x384,_0x35ec40:0x6d5,_0x56e2c5:0x67b,_0x28f4e5:0x5af,_0x46d909:0x554,_0x2411d9:0x6bb},_0x215686={_0x105cf1:0x335,_0xf10153:0x4f5,_0x48c451:0x3c3,_0x57807d:0x53b,_0x15e44c:0x52a,_0x38982e:0x2ee,_0x5208ed:0x435,_0x5c8bee:0x3dc,_0x56a82e:0x314,_0x4dc996:0x443,_0x125c1f:0x311,_0x32aa0e:0x3fc,_0x5185a0:0x41f,_0x2f01ea:0x3e1,_0x5cb510:0x2f5,_0x2f66d0:0x2b0,_0x1cc058:0x37c,_0x4b2c03:0x37a,_0x23a1aa:0x28e,_0xacd1bc:0x27a,_0x5e544b:0x46e,_0x129112:0x4a0},_0x44255f={_0x1966d2:0x367},_0x409cc4={_0xd067ba:0x1cd,_0x124836:0x165,_0x3a7627:0x5ec};function _0x31ce8b(_0x3e986e,_0x3aab35,_0x5112de,_0x2a89d7){return _0x1e45aa(_0x3e986e-0x14b,_0x3aab35-0x55,_0x2a89d7- -0x170,_0x5112de);}const _0x1ee01e=_0x3c1a5f[_0x31ce8b(_0x37f2fb._0x26f1dd,0x556,_0x37f2fb._0x4e6a3f,_0x37f2fb._0x16e629)](_0xf84fbf[_0x15336e(0x101,_0x37f2fb._0x3979bc,_0x37f2fb._0x5692a5,_0x37f2fb._0x13f270)]??process[_0x31ce8b(_0x37f2fb._0x146bf3,_0x37f2fb._0x57b391,0x361,0x44f)]()),_0x4dd5bd=_0xf84fbf[_0x31ce8b(_0x37f2fb._0x269f7f,_0x37f2fb._0x30700b,0x4c2,_0x37f2fb._0x424507)]??[],_0x5e3336=_0xf84fbf[_0x15336e(0x64,_0x37f2fb._0xa2da03,0x1aa,_0x37f2fb._0x42dd79)]??_0x31ce8b(_0x37f2fb._0x4ab451,_0x37f2fb._0x1f0c0a,0x663,_0x37f2fb._0x1b5d06);function _0x15336e(_0x40b56,_0x4cf75e,_0xe2445,_0x3ca8bd){return _0x1e45aa(_0x40b56-_0x409cc4._0xd067ba,_0x4cf75e-_0x409cc4._0x124836,_0x4cf75e- -_0x409cc4._0x3a7627,_0x3ca8bd);}return defineTool({'name':_0x5e3336,'description':_0x15336e(0xf1,_0x37f2fb._0x4ce31f,_0x37f2fb._0x11ae4d,0x185),'inputSchema':{'type':_0x31ce8b(_0x37f2fb._0x51384b,_0x37f2fb._0x205cb0,_0x37f2fb._0x3fa60b,0x498),'properties':{'filePath':{'type':_0x31ce8b(_0x37f2fb._0x35ec40,0x67e,_0x37f2fb._0x56e2c5,_0x37f2fb._0x28f4e5)},'content':{'type':_0x31ce8b(_0x37f2fb._0x46d909,0x5c0,_0x37f2fb._0x2411d9,_0x37f2fb._0x28f4e5)}},'required':[_0x31ce8b(0x4ba,0x557,0x547,0x500),'content']},async *'execute'(_0x302715){const _0x10293b=resolveAllowedPath(_0x1ee01e,_0x4dd5bd,_0x302715['filePath']),_0x2476ce=await _0x413b4f(_0x10293b)[_0x5e7941(0x30b,0x2fa,0x43c,0x229)](()=>!![])[_0x49a0f1(0x39e,_0x215686._0x105cf1,_0x215686._0xf10153,_0x215686._0x48c451)](()=>![]),_0x3ddcde=Buffer[_0x49a0f1(_0x215686._0x57807d,0x608,0x48c,_0x215686._0x15e44c)](_0x302715[_0x5e7941(0x3c9,0x24f,_0x215686._0x38982e,_0x215686._0x5208ed)],_0x49a0f1(0x412,0x58c,0x45e,_0x215686._0x5c8bee));function _0x5e7941(_0x355d33,_0xff2b2d,_0xacfdad,_0xa580df){return _0x31ce8b(_0x355d33-0x1c9,_0xff2b2d-0x38,_0xa580df,_0x355d33- -0x1ef);}function _0x49a0f1(_0x3fefb3,_0x3938f2,_0x4860f5,_0x2d3628){return _0x15336e(_0x3fefb3-0x1d9,_0x3fefb3-_0x44255f._0x1966d2,_0x4860f5-0xce,_0x2d3628);}return await atomicWrite2(_0x10293b,_0x3ddcde),yield createToolOutput(_0x5e7941(_0x215686._0x56a82e,_0x215686._0x4dc996,0x476,0x300)+_0x302715[_0x5e7941(_0x215686._0x125c1f,0x3b0,_0x215686._0x32aa0e,_0x215686._0x5185a0)]+'.',{'filePath':_0x302715[_0x5e7941(0x311,_0x215686._0x2f01ea,_0x215686._0x5cb510,0x199)],'resolvedPath':_0x10293b,'bytes':_0x3ddcde['length'],'lines':_0x302715[_0x5e7941(0x3c9,0x362,_0x215686._0x2f66d0,0x2c8)][_0x5e7941(_0x215686._0x1cc058,_0x215686._0x4b2c03,_0x215686._0x23a1aa,_0x215686._0xacd1bc)](/\r?\n/)['length'],'created':new Date()[_0x5e7941(_0x215686._0x5e544b,_0x215686._0x129112,0x55f,0x571)](),'overwritten':_0x2476ce}),void 0x0;}});}import{readFile as _0x3a6bb3,stat as _0x309baf}from'fs/promises';import*as _0x58140f from'path';function stripUtfBom(_0x44b19b){const _0x5849a9={_0x8df1a4:0x877,_0x562631:0x615,_0x346796:0x4ef},_0x4f9917={_0x107b79:0x5ad},_0x4b8167={_0x2d5a04:0x1a0};function _0x2ca616(_0x5c03d7,_0x38608b,_0x2c16ed,_0x986a38){return _0x55c88d(_0x5c03d7-0x7,_0x986a38-0x22a,_0x38608b,_0x986a38-_0x4b8167._0x2d5a04);}function _0x160de6(_0x3abb18,_0x4ff10b,_0x2c044a,_0x5d9c94){return _0x1e45aa(_0x3abb18-0xe,_0x4ff10b-0x1d8,_0x5d9c94- -_0x4f9917._0x107b79,_0x2c044a);}return _0x44b19b[_0x2ca616(0x645,_0x5849a9._0x8df1a4,0x8c6,0x7ba)](0x0)===0xfeff?_0x44b19b[_0x2ca616(_0x5849a9._0x562631,0x45c,0x3be,_0x5849a9._0x346796)](0x1):_0x44b19b;}function clampLine(_0x51f56c,_0x3185ce){const _0x2b043a={_0x1e0d52:0x2a4,_0x2eaa02:0x1bb,_0x20e3fa:0x1d2,_0x2db82b:0x145,_0x5931cd:0x2fc,_0x1a3b49:0x229},_0x4ba2ea={_0xeb6ac3:0x18e},_0x519d6e={_0x4d7239:0x133,_0x3adc26:0x776};if(!Number[_0x40202d(-_0x2b043a._0x1e0d52,-0x288,-_0x2b043a._0x2eaa02,-0x2c5)](_0x51f56c))return 0x1;function _0x40202d(_0xdb8e9d,_0x34b732,_0xa1da8d,_0x9963b3){return _0x1e45aa(_0xdb8e9d-0xaf,_0x34b732-_0x519d6e._0x4d7239,_0xa1da8d- -_0x519d6e._0x3adc26,_0x34b732);}function _0x2a2115(_0x2b47ad,_0x53e5ba,_0x21a25a,_0xfb88a5){return _0x55c88d(_0x2b47ad-_0x4ba2ea._0xeb6ac3,_0xfb88a5- -0xe4,_0x53e5ba,_0xfb88a5-0x13d);}return Math[_0x40202d(-0x11b,-_0x2b043a._0x20e3fa,-_0x2b043a._0x2db82b,-0x28f)](0x1,Math['min'](Math[_0x2a2115(_0x2b043a._0x5931cd,0x1f6,0x13c,_0x2b043a._0x1a3b49)](_0x51f56c),_0x3185ce));}function createFileReadTool(_0x34025f={}){const _0x50e98f={_0x145597:0x133,_0x39c469:0x1a7,_0x1573f6:0x210,_0x24ca16:0x31c,_0x4a68a2:0x279,_0x588329:0x304,_0x4bea16:0x32d,_0x176fd8:0xde,_0x86e796:0x1b2,_0x31573b:0x7c,_0x57067b:0x15,_0x931202:0x76e,_0x17d865:0x61b,_0x2305dc:0x659,_0xec7505:0x40e,_0x23f9e9:0x342,_0x1b30e9:0x2c8,_0x35eaca:0x1e9},_0x598ba4={_0xd447e4:0x40b,_0x463244:0x50b,_0x1d3919:0x48d,_0x309e69:0x5ea,_0x5639d5:0x505,_0x1480ee:0x3cb,_0x5e9db2:0x34b,_0x2ba636:0x5be,_0xc2017e:0x449,_0x40c7cf:0x571,_0x1b0307:0x4f1,_0x262cb1:0x289,_0x49e627:0x45a,_0x254f30:0x59d,_0x159d33:0x5f9,_0x18086d:0x781,_0x18c387:0x621,_0x23ee51:0x6cf,_0x403ab9:0x82b,_0x366962:0x162,_0x23f62b:0x4d3,_0x3f80a9:0x4de,_0x1ee544:0x409,_0x30c91a:0x27a,_0x2c8fad:0x3ea,_0x5756ae:0x2f5,_0x2007d4:0x2a1},_0xa81c61={_0xea39a9:0x195,_0x537307:0xc7},_0x2eae80={_0x4235d5:0x2c4,_0x2ba99c:0x1ab},_0x429410={_0x376c7a:0xde,_0x5edd58:0xeb},_0x13a5a9=_0x58140f[_0x516b23(_0x50e98f._0x145597,0x1de,_0x50e98f._0x39c469,0x104)](_0x34025f['defaultCwd']??process['cwd']());function _0x516b23(_0x14f300,_0x513463,_0x3289d1,_0x3c817c){return _0x55c88d(_0x14f300-_0x429410._0x376c7a,_0x3289d1- -0x240,_0x14f300,_0x3c817c-_0x429410._0x5edd58);}const _0x1b37fc=_0x34025f[_0x516b23(_0x50e98f._0x1573f6,_0x50e98f._0x24ca16,_0x50e98f._0x4a68a2,0x30f)]??[],_0x3d27b6=_0x34025f[_0x516b23(_0x50e98f._0x588329,_0x50e98f._0x4bea16,0x29f,0x418)]??_0x516b23(-_0x50e98f._0x176fd8,_0x50e98f._0x86e796,_0x50e98f._0x31573b,_0x50e98f._0x57067b);function _0x553d13(_0x143062,_0x1492f4,_0xce7670,_0x45e944){return _0x55c88d(_0x143062-0x93,_0xce7670-_0x2eae80._0x4235d5,_0x1492f4,_0x45e944-_0x2eae80._0x2ba99c);}return defineTool({'name':_0x3d27b6,'description':'Read\x20files\x20from\x20workspace.\x20Optionally\x20specify\x20line\x20ranges\x20(lineStart,\x20lineEnd).','inputSchema':{'type':_0x553d13(_0x50e98f._0x931202,0x4cd,_0x50e98f._0x17d865,_0x50e98f._0x2305dc),'properties':{'path':{'type':'string'},'lineStart':{'type':'number','description':_0x516b23(0x1d9,_0x50e98f._0xec7505,_0x50e98f._0x23f9e9,0x435)},'lineEnd':{'type':'number','description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':[_0x516b23(_0x50e98f._0x1b30e9,0xa4,_0x50e98f._0x35eaca,0xb3)]},async *'execute'(_0x599b74){const _0x510da7=resolveAllowedPath(_0x13a5a9,_0x1b37fc,_0x599b74[_0x5b2b88(_0x598ba4._0xd447e4,0x173,0x2cb,0x2e2)]);await assertWorkspaceFile(_0x510da7);const _0x3ae21c=await _0x309baf(_0x510da7),_0x513e3c=await _0x3a6bb3(_0x510da7);if(isProbablyBinary(_0x513e3c))throw new ToolExecutionError(_0x14cc3e(_0x598ba4._0x463244,0x683,0x589,_0x598ba4._0x1d3919)+_0x599b74['path'],{'path':_0x599b74['path']});function _0x14cc3e(_0x3a86e8,_0x435604,_0x4a6f30,_0xbeaa27){return _0x516b23(_0x435604,_0x435604-_0xa81c61._0xea39a9,_0x4a6f30-0x35f,_0xbeaa27-_0xa81c61._0x537307);}let _0x566e8a=_0x513e3c[_0x14cc3e(0x3da,0x59c,0x53b,0x553)](_0x14cc3e(0x562,_0x598ba4._0x309e69,_0x598ba4._0x5639d5,_0x598ba4._0x1480ee));const _0x11fa6e=_0x566e8a[_0x5b2b88(_0x598ba4._0x5e9db2,0x34b,_0x598ba4._0x2ba636,_0x598ba4._0xc2017e)](0x0)===0xfeff;_0x566e8a=stripUtfBom(_0x566e8a);const _0x4ec628=_0x566e8a[_0x14cc3e(0x4de,0x511,0x549,0x574)](/\r?\n/),_0x4ef817={'path':_0x599b74['path'],'resolvedPath':_0x510da7,'created':_0x3ae21c[_0x5b2b88(0x394,0x2ed,0x1bc,0x2bc)][_0x14cc3e(0x698,0x72a,0x63b,0x766)](),'modified':_0x3ae21c[_0x14cc3e(_0x598ba4._0x40c7cf,0x660,_0x598ba4._0x1b0307,0x3fe)][_0x5b2b88(0x3ef,0x31d,_0x598ba4._0x262cb1,0x3d5)](),'size':_0x3ae21c['size'],'encoding':_0x14cc3e(_0x598ba4._0x49e627,_0x598ba4._0x254f30,_0x598ba4._0x5639d5,_0x598ba4._0x159d33),'bomStripped':_0x11fa6e,'truncated':![],'totalLines':_0x4ec628['length']};function _0x5b2b88(_0x1e9784,_0x25a1ec,_0x4e4eb2,_0x424414){return _0x516b23(_0x4e4eb2,_0x25a1ec-0xb2,_0x424414-0xf9,_0x424414-0x12b);}if(_0x599b74[_0x14cc3e(_0x598ba4._0x18086d,_0x598ba4._0x18c387,_0x598ba4._0x23ee51,_0x598ba4._0x403ab9)]!==void 0x0||_0x599b74[_0x5b2b88(0xb4,0x5a,_0x598ba4._0x366962,0x1a3)]!==void 0x0){const _0x13848a=clampLine(_0x599b74[_0x5b2b88(0x3e8,0x51d,_0x598ba4._0x23f62b,0x469)]??0x1,_0x4ec628['length']),_0x31ce98=clampLine(_0x599b74['lineEnd']??_0x4ec628['length'],_0x4ec628[_0x5b2b88(_0x598ba4._0x3f80a9,_0x598ba4._0x1ee544,_0x598ba4._0x30c91a,_0x598ba4._0x2c8fad)]),_0x40b338=Math['min'](_0x13848a,_0x31ce98),_0x23c77b=Math['max'](_0x13848a,_0x31ce98),_0x47f148=_0x4ec628[_0x5b2b88(0x1a9,_0x598ba4._0x5756ae,_0x598ba4._0x2007d4,0x17e)](_0x40b338-0x1,_0x23c77b)['map']((_0x426873,_0x3295a3)=>_0x40b338+_0x3295a3+'|'+_0x426873)['join']('\x0a');return yield createToolOutput(_0x47f148,{..._0x4ef817,'lineRange':{'lineStart':_0x40b338,'lineEnd':_0x23c77b,'linesTotal':_0x4ec628['length']}}),void 0x0;}return yield createToolOutput(_0x566e8a,_0x4ef817),void 0x0;}});}import{stat as _0x5c7953}from'fs/promises';import*as _0x931a15 from'path';import{execSync,spawn as _0x461b8a}from'child_process';import{existsSync}from'fs';import{stat as _0x202ad1}from'fs/promises';import*as _0x1d3a01 from'os';import*as _0x29726e from'path';import{rgPath as _0x2e6ce8}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x41ba7e={_0x2fcd88:0x123,_0x4f4be2:0x99,_0x44474b:0x1b7,_0xcfeb25:0xfd,_0x21b1d3:0x5e,_0x25d713:0x447,_0x286bc5:0x56d,_0x20dba8:0x114,_0x561320:0x312,_0x1c915f:0x212,_0x15ac7d:0x1e5,_0x4df668:0x11e,_0x163ae1:0x8f,_0x5654c9:0x61,_0xfe6f52:0x3c0,_0x4c75cb:0x522,_0x118aac:0x321,_0x6ca55c:0x5df,_0x21701a:0x6aa,_0x4dcab5:0x5c8,_0x2bc8aa:0x1bf,_0x72b36:0x483,_0x35b944:0x178,_0x2d87b6:0x65,_0x1f9b8e:0x6c,_0x20b685:0x61,_0x538aaa:0x69,_0x177c35:0x73,_0x3694d0:0x164,_0x7e4f22:0x4b4,_0x1b3a91:0x54f,_0x1228ef:0x613,_0xc0d6b3:0x514,_0x72bcf5:0x302,_0x2105e5:0x2db,_0x5a28e7:0x30f,_0x40ce49:0x232,_0x96abbe:0x7b,_0x38af8b:0x3c,_0x4310bb:0x45,_0x47fec1:0x74,_0x341901:0xc9,_0x449b99:0x3cd,_0x5afdd2:0x274,_0x3db0a3:0x41c,_0x364aff:0x599,_0x811366:0x58d,_0x287c62:0x65f,_0x52b5cb:0x580,_0x439048:0x96,_0x16d9af:0x14,_0x57205a:0xee,_0x83bf58:0x11d,_0x1a8c5b:0x86,_0x49be6a:0x15f,_0x572260:0x99};function _0x3bae48(_0x53a676,_0x3fd76d,_0x584e4c,_0x191ebb){return _0x55c88d(_0x53a676-0x7,_0x191ebb- -0x391,_0x584e4c,_0x191ebb-0xe9);}const _0x10b119=_0x1d3a01[_0x3bae48(_0x41ba7e._0x2fcd88,0x2de,_0x41ba7e._0x4f4be2,_0x41ba7e._0x44474b)]()==='win32',_0x598a7f=_0x10b119?[_0x29726e[_0x3bae48(0x137,_0x41ba7e._0xcfeb25,-0x6a,0x61)](process[_0x3bae48(-0xd3,0x57,0x11b,0x48)][_0x3bae48(0xb7,_0x41ba7e._0x21b1d3,-0x52,0x78)]||'',_0x1e5de1(_0x41ba7e._0x25d713,_0x41ba7e._0x286bc5,0x3c0,0x516),_0x3bae48(0x93,-_0x41ba7e._0x20dba8,0xb2,-0x35),_0x1e5de1(_0x41ba7e._0x561320,_0x41ba7e._0x1c915f,_0x41ba7e._0x15ac7d,0x21d)),_0x29726e[_0x3bae48(_0x41ba7e._0x4df668,0xec,_0x41ba7e._0x163ae1,_0x41ba7e._0x5654c9)](process[_0x1e5de1(_0x41ba7e._0xfe6f52,_0x41ba7e._0x4c75cb,_0x41ba7e._0x118aac,0x271)][_0x1e5de1(0x574,0x677,_0x41ba7e._0x6ca55c,_0x41ba7e._0x21701a)]||'',_0x1e5de1(0x4b4,0x3e7,_0x41ba7e._0x4dcab5,0x3f9),_0x1e5de1(0x335,_0x41ba7e._0x2bc8aa,_0x41ba7e._0x72b36,0x427)),_0x29726e[_0x3bae48(_0x41ba7e._0x35b944,-_0x41ba7e._0x2d87b6,-_0x41ba7e._0x1f9b8e,_0x41ba7e._0x20b685)](process[_0x1e5de1(0x3c0,0x45d,0x4ed,0x33b)][_0x3bae48(-_0x41ba7e._0x538aaa,_0x41ba7e._0x177c35,-_0x41ba7e._0x3694d0,-_0x41ba7e._0x21b1d3)]||'',_0x1e5de1(_0x41ba7e._0x7e4f22,_0x41ba7e._0x1b3a91,_0x41ba7e._0x1228ef,_0x41ba7e._0xc0d6b3),'rg.exe')]:[_0x1e5de1(_0x41ba7e._0x72bcf5,_0x41ba7e._0x2105e5,_0x41ba7e._0x5a28e7,_0x41ba7e._0x40ce49),_0x3bae48(-0x8e,0x79,-_0x41ba7e._0x96abbe,0x2),_0x3bae48(0x111,_0x41ba7e._0x38af8b,-_0x41ba7e._0x4310bb,0x4),'/bin/rg'];for(const _0x52fc2c of _0x598a7f){if(existsSync(_0x52fc2c))return _0x52fc2c;}function _0x1e5de1(_0x214e16,_0x17c4ec,_0x82035b,_0x1847e9){return _0x55c88d(_0x214e16-0xd2,_0x214e16- -0x19,_0x17c4ec,_0x1847e9-0x179);}try{const _0x569077=_0x10b119?_0x3bae48(0x94,0xd8,-0x1a9,-0x45):_0x3bae48(-_0x41ba7e._0x47fec1,_0x41ba7e._0x341901,-0x128,-0xb4),_0x15b12e=execSync(_0x569077,{'encoding':_0x1e5de1(_0x41ba7e._0x449b99,0x362,_0x41ba7e._0x5afdd2,_0x41ba7e._0x3db0a3),'stdio':[_0x1e5de1(_0x41ba7e._0x364aff,_0x41ba7e._0x811366,0x4c2,_0x41ba7e._0x287c62),_0x1e5de1(_0x41ba7e._0x364aff,0x663,_0x41ba7e._0x52b5cb,0x537),_0x3bae48(_0x41ba7e._0x439048,-_0x41ba7e._0x16d9af,_0x41ba7e._0x57205a,_0x41ba7e._0x83bf58)]})[_0x3bae48(_0x41ba7e._0x1a8c5b,0xea,0xd8,_0x41ba7e._0x49be6a)]()[_0x3bae48(-0xd6,0xce,0x126,_0x41ba7e._0x572260)](/\r?\n/)[0x0];if(_0x15b12e&&existsSync(_0x15b12e))return _0x15b12e;}catch{return null;}return null;}async function filepath(){const _0x5a7250={_0x50b8d5:0x1b9},_0x237a72={_0x270d28:0x103,_0x435cfc:0x183};if(cachedRgPath)return cachedRgPath;if(_0x2e6ce8&&existsSync(_0x2e6ce8))return cachedRgPath=_0x2e6ce8,_0x2e6ce8;const _0x946ab=findSystemRipgrep();function _0x4a0134(_0x6f2abf,_0x45be07,_0x3ed64d,_0xfa8360){return _0x55c88d(_0x6f2abf-_0x237a72._0x270d28,_0xfa8360- -0x49a,_0x6f2abf,_0xfa8360-_0x237a72._0x435cfc);}if(!_0x946ab)throw new Error(_0x4a0134(-0x16b,-0x1f8,-_0x5a7250._0x50b8d5,-0x177));return cachedRgPath=_0x946ab,_0x946ab;}async function*files(_0x11380f){const _0x3ce8c6={_0x437b2a:0x230,_0x1ad96a:0xb9,_0x113b21:0x98,_0x3509e6:0x2a1,_0x2d54a0:0x204,_0x47c8be:0x1ca,_0xf81d77:0x279,_0xef6473:0xed,_0x3a101a:0x234,_0x527872:0x33,_0x5ae4be:0x95,_0x49f64f:0x3fd,_0x3f3492:0x2e0,_0x448fbe:0x193,_0xdb47e8:0x20e,_0x4a77cf:0x124,_0x8ab75a:0x43,_0x5d80dc:0x125,_0x2bc8f3:0xa8,_0xbc7df4:0x4b7,_0x22e937:0x2af,_0x56fb9a:0x208,_0x50c50f:0x1f8,_0x355f6b:0xf,_0x79d9ba:0x10a,_0x39c17e:0x155,_0x19a43c:0x490,_0x48163a:0x4a7,_0x36ef55:0x48d,_0x39e3e7:0xb3,_0x553efc:0xd7,_0x389fbb:0x196,_0x45ca93:0x143,_0x376c9f:0x4,_0x299b9b:0x12,_0x551e9b:0x9e,_0xd3021a:0xc0,_0xb964ba:0x165,_0x60fab9:0x1a0,_0x1434d2:0x1f8,_0x5e744a:0x119,_0x2789e6:0x28,_0x3640f8:0x159},_0x1c5c36={_0x30f296:0x116,_0x5def2b:0x418,_0x3463c0:0x160},_0x1c4215={_0x39a29c:0xeb,_0x179b87:0x1e8,_0x4d1fa6:0x422},_0x10c808=await filepath();function _0x9e74e1(_0x1c0218,_0x15d5c7,_0x53a45d,_0x3c3902){return _0x1e45aa(_0x1c0218-_0x1c4215._0x39a29c,_0x15d5c7-_0x1c4215._0x179b87,_0x3c3902- -_0x1c4215._0x4d1fa6,_0x53a45d);}const _0x2fa5c8=await _0x202ad1(_0x11380f[_0x4b66cb(-0x1f6,-0x10a,0x77,-_0x3ce8c6._0x437b2a)])['catch'](()=>null);function _0x4b66cb(_0x1a4792,_0x3dbb5c,_0x578419,_0x57c474){return _0x55c88d(_0x1a4792-_0x1c5c36._0x30f296,_0x3dbb5c- -_0x1c5c36._0x5def2b,_0x1a4792,_0x57c474-_0x1c5c36._0x3463c0);}if(!_0x2fa5c8?.[_0x4b66cb(_0x3ce8c6._0x1ad96a,-0xa1,-0x24,-_0x3ce8c6._0x113b21)]())throw Object[_0x9e74e1(0x2c3,_0x3ce8c6._0x3509e6,0x240,0x28f)](new Error(_0x9e74e1(_0x3ce8c6._0x2d54a0,_0x3ce8c6._0x47c8be,_0x3ce8c6._0xf81d77,0x1c8)+_0x11380f['cwd']+'\x27'),{'code':_0x4b66cb(-0x1b8,-0x92,_0x3ce8c6._0xef6473,-0x1c5)});const _0x38a518=[_0x4b66cb(_0x3ce8c6._0x3a101a,0x127,_0x3ce8c6._0x527872,_0x3ce8c6._0x5ae4be),_0x9e74e1(_0x3ce8c6._0x49f64f,0x314,0x267,_0x3ce8c6._0x3f3492),_0x4b66cb(0x25e,_0x3ce8c6._0x448fbe,0x20f,_0x3ce8c6._0xdb47e8),_0x4b66cb(-_0x3ce8c6._0x4a77cf,-_0x3ce8c6._0x8ab75a,-_0x3ce8c6._0x5d80dc,-_0x3ce8c6._0x2bc8f3)];for(const _0x42c2f5 of _0x11380f[_0x9e74e1(_0x3ce8c6._0xbc7df4,_0x3ce8c6._0x22e937,0x334,0x401)]??[]){_0x38a518['push'](_0x9e74e1(_0x3ce8c6._0x56fb9a,_0x3ce8c6._0x50c50f,0x38b,0x296)+_0x42c2f5);}const _0x56c09e=_0x461b8a(_0x10c808,_0x38a518,{'cwd':_0x11380f[_0x4b66cb(_0x3ce8c6._0x355f6b,-_0x3ce8c6._0x79d9ba,0x4c,0x4)],'stdio':[_0x4b66cb(0x34,0x96,0xbe,_0x3ce8c6._0x39c17e),_0x9e74e1(_0x3ce8c6._0x19a43c,0x47a,0x3bd,0x441),_0x9e74e1(_0x3ce8c6._0x48163a,_0x3ce8c6._0x36ef55,0x5bd,0x441)]});let _0x25f2f5='';for await(const _0x522fa0 of _0x56c09e[_0x4b66cb(-_0x3ce8c6._0x39e3e7,-0x15b,-_0x3ce8c6._0x553efc,-_0x3ce8c6._0x389fbb)]??[]){_0x25f2f5+=_0x522fa0[_0x4b66cb(-_0x3ce8c6._0x45ca93,_0x3ce8c6._0x376c9f,-0x180,-0x124)]();const _0x3c5912=_0x25f2f5[_0x4b66cb(-0xd0,_0x3ce8c6._0x299b9b,_0x3ce8c6._0x551e9b,-_0x3ce8c6._0xd3021a)](/\r?\n/);_0x25f2f5=_0x3c5912[_0x4b66cb(_0x3ce8c6._0xb964ba,_0x3ce8c6._0x60fab9,_0x3ce8c6._0x1434d2,0x217)]()??'';for(const _0x4ada3f of _0x3c5912){if(_0x4ada3f['length']>0x0)yield _0x4ada3f;}}_0x25f2f5[_0x4b66cb(0x55,0xd8,0xe,-0x52)]()[_0x4b66cb(0x24e,_0x3ce8c6._0x5e744a,_0x3ce8c6._0x2789e6,_0x3ce8c6._0x3640f8)]>0x0&&(yield _0x25f2f5['trim']());}function parseMatchLine(_0x5d7d40,_0x1bf5b5){const _0x40fd79={_0x183169:0x256,_0x2515c3:0x1d8,_0x52637b:0x21e,_0x2426c8:0x47,_0x451dc4:0x1e2,_0x5bee7b:0x275,_0x573a65:0x77,_0x4401c2:0xf4,_0x4fe310:0x125,_0x3e2c21:0xd9,_0x21d5f6:0xdc,_0x20de4c:0x4e,_0x43f865:0x18a,_0x279bab:0xdf,_0x309f25:0x22,_0x3e1904:0xfe,_0x145945:0xdb,_0x2c3a8c:0x1e9,_0x27c7ac:0xa9,_0x3d8919:0x129,_0xaafba0:0x1cf,_0x4dfc91:0xb5,_0x501ec8:0x51,_0x428ee0:0xca},_0x1bb145={_0x2ca94d:0x433},_0x58fd84={_0x409bbf:0x313,_0x319d5c:0x86};if(!_0x5d7d40||_0x5d7d40==='--')return null;const _0x1fda3b=_0x5d7d40[_0x46f1ae(_0x40fd79._0x183169,-0x58,0x14b,0x117)]('|');function _0x46f1ae(_0x4e8a3e,_0x2879d2,_0x312a34,_0x474ab6){return _0x55c88d(_0x4e8a3e-0x36,_0x474ab6- -_0x58fd84._0x409bbf,_0x312a34,_0x474ab6-_0x58fd84._0x319d5c);}if(_0x1bf5b5&&_0x1fda3b[_0x46f1ae(0x219,0x189,_0x40fd79._0x2515c3,_0x40fd79._0x52637b)]>=0x4&&Number[_0x9da540(_0x40fd79._0x2426c8,-_0x40fd79._0x451dc4,-_0x40fd79._0x5bee7b,-0x129)](Number[_0x46f1ae(-0x46,0xf1,0x1d8,_0x40fd79._0x573a65)](_0x1fda3b[0x2]??'',0xa))){const _0x4fb107=Number[_0x46f1ae(-_0x40fd79._0x4401c2,-0xbb,_0x40fd79._0x4fe310,0x77)](_0x1fda3b[0x1]??'',0xa);if(!Number['isFinite'](_0x4fb107)||!_0x1fda3b[0x0])return null;return{'filePath':_0x1fda3b[0x0],'lineNum':_0x4fb107,'lineText':_0x1fda3b[_0x46f1ae(-0x165,_0x40fd79._0x3e2c21,-_0x40fd79._0x21d5f6,-_0x40fd79._0x20de4c)](0x3)[_0x46f1ae(0xbf,0x1,_0x40fd79._0x43f865,_0x40fd79._0x279bab)]('|')};}if(_0x1fda3b[_0x9da540(-0x23,0x1c6,_0x40fd79._0x309f25,_0x40fd79._0x3e1904)]>=0x3){const _0x472afc=Number[_0x9da540(_0x40fd79._0x145945,-0x41,-_0x40fd79._0x2c3a8c,-_0x40fd79._0x27c7ac)](_0x1fda3b[0x1]??'',0xa);if(!Number[_0x9da540(-0x23e,-0x184,-0x66,-_0x40fd79._0x3d8919)](_0x472afc)||!_0x1fda3b[0x0])return null;return{'filePath':_0x1fda3b[0x0],'lineNum':_0x472afc,'lineText':_0x1fda3b[_0x46f1ae(-_0x40fd79._0xaafba0,_0x40fd79._0x4dfc91,-0x91,-0x4e)](0x2)[_0x9da540(-_0x40fd79._0x501ec8,0x10a,-_0x40fd79._0x428ee0,-0x41)]('|'),..._0x1bf5b5?{'isContext':!![]}:{}};}function _0x9da540(_0x4db0ba,_0xbaf2f2,_0x544171,_0x5c0510){return _0x55c88d(_0x4db0ba-0x97,_0x5c0510- -_0x1bb145._0x2ca94d,_0xbaf2f2,_0x5c0510-0xfc);}return null;}async function search(_0x57c221){const _0x2d5397={_0x1c43f6:0x72c,_0x791a8d:0x4fc,_0x264491:0x53,_0x5412b7:0x52,_0x29f7af:0x12e,_0x1e10ca:0x6b7,_0x3e59b3:0x624,_0x879f2f:0x746,_0x48bfd8:0x152,_0x47cc25:0xc4,_0xe8f1e1:0x59e,_0x301d29:0x728,_0x292579:0x165,_0x57881e:0xc6,_0x2ef15f:0x642,_0x1fec8f:0x46c,_0x23b045:0x580,_0x59d5ac:0x678,_0x2a68e6:0x3c,_0x1cad14:0xaf,_0x2b435c:0x48a,_0x2c23d5:0x668,_0x2af8f4:0x5f1,_0x59ca7c:0x77b,_0x241d13:0x6da,_0x3b54da:0x720,_0x2a5700:0x921,_0x1ffff5:0x8ad,_0x2862ba:0x72e,_0x398f3e:0x7,_0x313bb0:0x214,_0xbf134e:0x126,_0x15ed8c:0xbe,_0x1bae60:0x6d9,_0x1dc730:0x178,_0x3e00cd:0x16c,_0x410676:0x716,_0x2a0830:0x680,_0x62fa41:0x5ff,_0x389bf7:0x567,_0x60e4e:0x665,_0x57ec42:0x8e3,_0x36e4f6:0x7dd,_0x5c3704:0x22,_0x109cdc:0x159,_0x48c45b:0x1c7,_0x227d4a:0xfc,_0x491ae4:0x155,_0x1da192:0x5e9,_0x2e1659:0x5f8,_0x1035b8:0x579},_0x804e62={_0x2786db:0x24b,_0x171d14:0x1ef,_0xfe47a0:0x1f2,_0x4eddf5:0x14b,_0x23d939:0xd7,_0x33dcbe:0x22a,_0x21dbdc:0x126,_0x30cf4c:0x10,_0x1c988e:0x1aa,_0x3d326c:0x165,_0x55442e:0x2a5,_0x4fdf27:0x19b,_0x23c828:0x46d,_0x340469:0x616},_0x411fbd={_0xc51cc8:0x5bd,_0x431832:0x6f8,_0x59c093:0x693,_0x34a332:0x404,_0x19f8da:0x4c6,_0x10a9bd:0x69b,_0x3caad1:0x762},_0x3069a0={_0x1cf33c:0x5cf},_0x2685d3={_0x2aea5b:0x19e},_0x5ed60d=await filepath();function _0x4752bf(_0x23f9ef,_0x5b3214,_0x276f34,_0x86f120){return _0x1e45aa(_0x23f9ef-0x19d,_0x5b3214-0x179,_0x5b3214- -0x5ca,_0x276f34);}if(_0x57c221[_0x2e7eaa(_0x2d5397._0x1c43f6,_0x2d5397._0x791a8d,0x5fd,0x5d6)]){const _0x16713a=await _0x202ad1(_0x57c221[_0x4752bf(-_0x2d5397._0x264491,_0x2d5397._0x5412b7,-_0x2d5397._0x29f7af,0x1af)])[_0x2e7eaa(0x5d5,_0x2d5397._0x1e10ca,_0x2d5397._0x3e59b3,0x5dd)](()=>null);if(!_0x16713a?.['isFile']())throw Object[_0x2e7eaa(_0x2d5397._0x879f2f,0x57a,0x4f7,0x66b)](new Error(_0x4752bf(0x2,0x66,_0x2d5397._0x48bfd8,-_0x2d5397._0x47cc25)+_0x57c221[_0x2e7eaa(_0x2d5397._0xe8f1e1,_0x2d5397._0x301d29,0x68f,0x5d6)]+'\x27'),{'code':_0x4752bf(_0x2d5397._0x292579,0x6d,-_0x2d5397._0x57881e,-0xd8)});}else{const _0x352f6b=await _0x202ad1(_0x57c221[_0x2e7eaa(0x621,_0x2d5397._0x2ef15f,_0x2d5397._0x1fec8f,0x579)])[_0x2e7eaa(_0x2d5397._0x23b045,0x47a,_0x2d5397._0x59d5ac,0x5dd)](()=>null);if(!_0x352f6b?.['isDirectory']())throw Object[_0x4752bf(_0x2d5397._0x2a68e6,0xe7,0x25c,-0xc)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x57c221[_0x4752bf(0x25,-0xb,0x13e,_0x2d5397._0x1cad14)]+'\x27'),{'code':_0x2e7eaa(_0x2d5397._0x2b435c,_0x2d5397._0x2c23d5,0x654,_0x2d5397._0x2af8f4)});}function _0x2e7eaa(_0x1126c6,_0x11c42d,_0x2fe32b,_0x26e42b){return _0x1e45aa(_0x1126c6-_0x2685d3._0x2aea5b,_0x11c42d-0x1d6,_0x26e42b- -0x46,_0x2fe32b);}const _0x3c26e6=[_0x2e7eaa(_0x2d5397._0x59ca7c,0x5b7,_0x2d5397._0x241d13,0x60b),_0x2e7eaa(0x658,0x57e,_0x2d5397._0x3b54da,0x636),'--field-context-separator=|',_0x2e7eaa(_0x2d5397._0x2a5700,_0x2d5397._0x1ffff5,_0x2d5397._0x2862ba,0x7c1),_0x57c221['pattern']],_0x2206c8=typeof _0x57c221[_0x4752bf(-0x20,_0x2d5397._0x398f3e,-0x71,-0x7d)]===_0x4752bf(_0x2d5397._0x313bb0,_0x2d5397._0xbf134e,-0x3b,_0x2d5397._0x15ed8c)&&_0x57c221[_0x2e7eaa(0x422,0x438,0x54c,0x58b)]>0x0;return _0x2206c8&&_0x3c26e6[_0x2e7eaa(0x6cf,0x78a,_0x2d5397._0x1bae60,0x65c)]('-C',String(_0x57c221[_0x4752bf(_0x2d5397._0x1dc730,_0x2d5397._0x398f3e,_0x2d5397._0x3e00cd,0x106)]),_0x2e7eaa(0x52b,0x7d8,_0x2d5397._0x410676,_0x2d5397._0x2a0830)),_0x57c221['glob']&&!_0x57c221['file']&&_0x3c26e6[_0x2e7eaa(0x629,0x4e0,0x690,0x65c)](_0x2e7eaa(0x6bd,_0x2d5397._0x62fa41,_0x2d5397._0x389bf7,0x6c2),_0x57c221[_0x2e7eaa(0x961,_0x2d5397._0x60e4e,_0x2d5397._0x57ec42,_0x2d5397._0x36e4f6)]),_0x3c26e6[_0x4752bf(-_0x2d5397._0x5c3704,0xd8,_0x2d5397._0x109cdc,_0x2d5397._0x48c45b)](_0x57c221[_0x4752bf(0x1a1,_0x2d5397._0x5412b7,_0x2d5397._0x227d4a,_0x2d5397._0x491ae4)]??_0x57c221[_0x2e7eaa(_0x2d5397._0x1da192,0x5f6,_0x2d5397._0x2e1659,_0x2d5397._0x1035b8)]),await new Promise((_0x18bc09,_0x1a4595)=>{const _0x34be12={_0x4de33b:0x135,_0x41ce2e:0x187},_0x41e109={_0x3598f4:0x174,_0x4cb896:0x7a},_0x2542dd={_0x58e01d:0x5de,_0x3ef111:0x47e},_0x13ed87={_0x41504c:0xd4,_0xe3542a:0xf},_0x518669=_0x461b8a(_0x5ed60d,_0x3c26e6,{'cwd':_0x57c221[_0x2cf771(-0x159,-_0x804e62._0x2786db,-_0x804e62._0x171d14,-_0x804e62._0xfe47a0)],'stdio':['ignore',_0x2cf771(_0x804e62._0x4eddf5,_0x804e62._0x23d939,_0x804e62._0x33dcbe,_0x804e62._0x21dbdc),_0x2cf771(0x14b,_0x804e62._0x30cf4c,0x204,0x146)]});let _0x708344='',_0x5cda2f='';_0x518669[_0x2cf771(-_0x804e62._0x1c988e,-0x300,-_0x804e62._0x3d326c,-_0x804e62._0x55442e)]?.['on'](_0x2cf771(-0x103,-0x1b8,-_0x804e62._0x4fdf27,0x5d),_0x459fae=>{const _0x2a697e={_0x654490:0x146};function _0x3fb632(_0x26fa9b,_0x27b4af,_0x66c762,_0x10bf1b){return _0x269cf2(_0x26fa9b-0x1b9,_0x26fa9b-0x155,_0x66c762-_0x2a697e._0x654490,_0x10bf1b);}_0x708344+=_0x459fae[_0x3fb632(0x655,_0x3069a0._0x1cf33c,0x70f,0x722)]();});function _0x2cf771(_0x35eace,_0x45c59b,_0x38a301,_0x3e6de1){return _0x2e7eaa(_0x35eace-_0x13ed87._0x41504c,_0x45c59b-_0x13ed87._0xe3542a,_0x3e6de1,_0x35eace- -0x6d2);}_0x518669[_0x269cf2(0x564,_0x804e62._0x23c828,0x5b2,0x473)]?.['on']('data',_0x55ff7e=>{const _0x3fed57={_0x32c339:0x1f2,_0x117cca:0x27,_0x1d96fb:0x62};function _0x977eb6(_0xdd04,_0x13444d,_0xdd9e8f,_0x3b1c4a){return _0x269cf2(_0xdd04-_0x3fed57._0x32c339,_0x3b1c4a- -_0x3fed57._0x117cca,_0xdd9e8f-_0x3fed57._0x1d96fb,_0x13444d);}_0x5cda2f+=_0x55ff7e[_0x977eb6(_0x2542dd._0x58e01d,_0x2542dd._0x3ef111,0x3e4,0x4d9)]();}),_0x518669['on'](_0x269cf2(0x615,0x64f,0x57c,0x58b),_0x59b4ce=>{if(_0x59b4ce===0x1&&_0x708344===''){_0x18bc09([]);return;}function _0x1b0076(_0x1ac290,_0x2f2d87,_0x1abc6a,_0x211d68){return _0x269cf2(_0x1ac290-0x5a,_0x2f2d87- -0x5e,_0x1abc6a-0x139,_0x1ac290);}if(_0x59b4ce!==0x0&&_0x59b4ce!==0x1){_0x1a4595(new Error('ripgrep\x20failed:\x20'+_0x5cda2f));return;}function _0x15dbb4(_0x88e84f,_0x11d719,_0x33dbf6,_0x6a0f63){return _0x269cf2(_0x88e84f-_0x41e109._0x3598f4,_0x11d719-_0x41e109._0x4cb896,_0x33dbf6-0x83,_0x6a0f63);}const _0x315076=_0x57c221[_0x1b0076(0x5ef,_0x411fbd._0xc51cc8,_0x411fbd._0x431832,_0x411fbd._0x59c093)]??0x64,_0x4fb9f5=[];for(const _0x1e6483 of _0x708344[_0x15dbb4(_0x411fbd._0x34a332,0x588,_0x411fbd._0x19f8da,0x637)](/\r?\n/)){if(_0x4fb9f5[_0x15dbb4(0x6e6,0x68f,_0x411fbd._0x10a9bd,_0x411fbd._0x3caad1)]>=_0x315076)break;const _0x20000a=parseMatchLine(_0x1e6483,_0x2206c8);if(_0x20000a)_0x4fb9f5['push'](_0x20000a);}_0x18bc09(_0x4fb9f5);});function _0x269cf2(_0x374d36,_0x1ab856,_0x344d6b,_0x490217){return _0x2e7eaa(_0x374d36-_0x34be12._0x4de33b,_0x1ab856-0x59,_0x490217,_0x1ab856- -_0x34be12._0x41ce2e);}_0x518669['on'](_0x269cf2(_0x804e62._0x340469,0x5db,0x4ce,0x4d1),_0x1a4595);});}function createGlobTool(_0x5e12b2={}){const _0x4943ad={_0x578447:0xf3,_0x5b5486:0x8f,_0x5758d0:0x129,_0x2973b8:0x82,_0x307986:0x139,_0x3adeb7:0xe5,_0x1b616e:0x89,_0x5882f7:0x7f,_0x456462:0x88,_0x244986:0x5fe,_0x44e4f0:0x720,_0xb3eb02:0x8a9,_0x3ff214:0x767,_0x337917:0x2a4,_0x1210bc:0x22d,_0x48cc0b:0x303,_0x9cf6fe:0x194,_0x97a510:0x9c,_0x178971:0x111,_0x1bf144:0x1,_0x1213cf:0x101,_0x2eead5:0x796,_0x23374d:0x71c,_0x96ee03:0x62e,_0x531836:0x778,_0x4009cc:0x638,_0x2cdbe1:0x71c,_0x5b7b9b:0x162,_0x329f2c:0x1e7},_0x4ca443={_0x11e8e2:0x58f,_0x4cf4b1:0x5fb,_0x41e65c:0x646,_0x5f4a58:0x588,_0x5751e7:0x658,_0x55e3b3:0x57d,_0x3c2a23:0x6af,_0x4f9082:0x5a1,_0x30491e:0x5b2,_0xcf8357:0x5dc,_0x286463:0x5e1,_0x337c92:0x438,_0x5adbdb:0x534,_0x3f4974:0x69d,_0x3ab458:0x5e3,_0x43b648:0x60a,_0x2a4928:0x86e,_0x29e80e:0x766,_0x405699:0x77f,_0x2f2b21:0x6c1,_0x505c67:0x5af,_0x46c5b7:0x53a,_0x509ff2:0x58d,_0x584efe:0x63c,_0xe17f1f:0x450,_0x121cc5:0x4fd,_0x451370:0x4c4,_0x3b68d6:0x302,_0x4eb403:0x334,_0x5b7120:0x47d,_0x1e35b2:0x3f7,_0xa29aed:0x37a,_0x459cf4:0x42a,_0x65cc80:0x539,_0x553f5a:0x6b7,_0x1f4f65:0x59f,_0x46d8d2:0x572,_0x1a7c75:0x595,_0x40f042:0x507,_0x1f173c:0x574,_0xa476d3:0x558,_0x4ec601:0x621,_0x4d9bb2:0x6a3,_0x4263f7:0x507,_0x5830b9:0x59d,_0x1ed789:0x7a4,_0x2ef85c:0x63c},_0xc45d5a={_0x5d1a14:0x7f},_0x1a90d8={_0x5c4822:0xf1,_0x3da819:0x609},_0x521b40=_0x931a15[_0x5c11fb(0x6a,-_0x4943ad._0x578447,_0x4943ad._0x5b5486,_0x4943ad._0x5758d0)](_0x5e12b2[_0x5c11fb(_0x4943ad._0x2973b8,_0x4943ad._0x307986,_0x4943ad._0x3adeb7,-_0x4943ad._0x1b616e)]??process[_0x5c11fb(_0x4943ad._0x5882f7,0xe6,-0x4a,_0x4943ad._0x456462)]());function _0x5c11fb(_0x24de66,_0x3620cf,_0x2543fb,_0x57bd1d){return _0x1e45aa(_0x24de66-0x11,_0x3620cf-_0x1a90d8._0x5c4822,_0x2543fb- -_0x1a90d8._0x3da819,_0x3620cf);}function _0x3f7d28(_0x52ad4b,_0x48f158,_0x30b8bc,_0x5ae111){return _0x1e45aa(_0x52ad4b-0x9d,_0x48f158-0x1c4,_0x5ae111- -0x3,_0x52ad4b);}const _0x335ffe=_0x5e12b2[_0x3f7d28(_0x4943ad._0x244986,_0x4943ad._0x44e4f0,_0x4943ad._0xb3eb02,_0x4943ad._0x3ff214)]??[],_0x39b24d=_0x5e12b2[_0x5c11fb(_0x4943ad._0x337917,_0x4943ad._0x1210bc,0x1df,_0x4943ad._0x48cc0b)]??0x64,_0x5d7708=_0x5e12b2['name']??_0x5c11fb(-_0x4943ad._0x9cf6fe,_0x4943ad._0x97a510,-0x82,0x8f);return defineTool({'name':_0x5d7708,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x5c11fb(_0x4943ad._0x178971,0x48,-_0x4943ad._0x1bf144,_0x4943ad._0x1213cf),'properties':{'pattern':{'type':_0x3f7d28(_0x4943ad._0x2eead5,0x726,0x792,_0x4943ad._0x23374d)},'path':{'type':_0x3f7d28(_0x4943ad._0x96ee03,_0x4943ad._0x531836,_0x4943ad._0x4009cc,_0x4943ad._0x2cdbe1)},'limit':{'type':_0x5c11fb(_0x4943ad._0x5b7b9b,_0x4943ad._0x329f2c,0xe7,0x14c)}},'required':['pattern']},async *'execute'(_0x26b897){const _0x4b310e={_0x32b6f6:0x7d};if(_0x26b897[_0x2f2ccb(_0x4ca443._0x11e8e2,0x45f,0x507,0x66f)][_0x35afc1(0x571,0x673,0x59f,_0x4ca443._0x4cf4b1)]()['length']===0x0)throw new ToolExecutionError(_0x35afc1(0x50c,0x580,0x4df,_0x4ca443._0x41e65c),{});const _0x1d3b29=resolveAllowedPath(_0x521b40,_0x335ffe,_0x26b897[_0x2f2ccb(_0x4ca443._0x5f4a58,0x4f1,_0x4ca443._0x5751e7,_0x4ca443._0x55e3b3)]??'.'),_0x3efb5e=await _0x5c7953(_0x1d3b29)[_0x2f2ccb(0x687,_0x4ca443._0x3c2a23,_0x4ca443._0x4f9082,_0x4ca443._0x30491e)](()=>null);if(!_0x3efb5e?.[_0x2f2ccb(_0x4ca443._0xcf8357,0x70e,0x5a6,0x605)]())throw new ToolExecutionError(_0x35afc1(0x5cf,0x53b,0x72c,0x5da)+(_0x26b897[_0x35afc1(_0x4ca443._0x286463,0x5a9,_0x4ca443._0x337c92,_0x4ca443._0x5adbdb)]??'.'),{'path':_0x26b897[_0x35afc1(0x63c,_0x4ca443._0x3f4974,_0x4ca443._0x3ab458,_0x4ca443._0x5adbdb)]??'.'});const _0x3f4d2d=_0x26b897[_0x2f2ccb(_0x4ca443._0x43b648,_0x4ca443._0x2a4928,_0x4ca443._0x29e80e,_0x4ca443._0x405699)]??_0x39b24d,_0x35fa80=Math[_0x2f2ccb(_0x4ca443._0x2f2b21,0x705,_0x4ca443._0x505c67,0x639)](0x1,Math['trunc'](_0x3f4d2d)),_0x249c0c=[];function _0x35afc1(_0x320f2a,_0x1d1116,_0x336110,_0x436b78){return _0x5c11fb(_0x320f2a-_0x4b310e._0x32b6f6,_0x1d1116,_0x436b78-0x463,_0x436b78-0x167);}let _0x44cbed=![];for await(const _0x424eb5 of files({'cwd':_0x1d3b29,'glob':[_0x26b897['pattern']]})){if(_0x249c0c[_0x35afc1(_0x4ca443._0x46c5b7,0x555,_0x4ca443._0x509ff2,_0x4ca443._0x584efe)]>=_0x35fa80){_0x44cbed=!![];break;}const _0x5328db=await _0x5c7953(_0x931a15[_0x35afc1(_0x4ca443._0xe17f1f,0x4ff,0x539,_0x4ca443._0x121cc5)](_0x1d3b29,_0x424eb5))[_0x35afc1(_0x4ca443._0x451370,_0x4ca443._0x3b68d6,_0x4ca443._0x4eb403,_0x4ca443._0x5b7120)](()=>null);_0x249c0c['push']({'path':_0x424eb5,'mtime':_0x5328db?.['mtimeMs']??0x0});}_0x249c0c[_0x35afc1(_0x4ca443._0x1e35b2,0x548,_0x4ca443._0xa29aed,_0x4ca443._0x459cf4)]((_0x547da2,_0xacd16a)=>_0xacd16a[_0x2f2ccb(0x547,0x4be,0x601,0x652)]-_0x547da2['mtime']);const _0x5617c0=_0x249c0c[_0x2f2ccb(_0x4ca443._0x65cc80,_0x4ca443._0x509ff2,_0x4ca443._0x553f5a,0x7ea)](_0xe0b356=>_0xe0b356[_0x2f2ccb(0x4e3,0x6ed,0x658,0x658)]),_0x22ef83=_0x5617c0[_0x35afc1(_0x4ca443._0x1f4f65,0x4bd,_0x4ca443._0x46d8d2,0x63c)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0x26b897[_0x2f2ccb(_0x4ca443._0x1a7c75,0x3dd,_0x4ca443._0x40f042,0x450)]:''+_0x5617c0[_0x2f2ccb(_0x4ca443._0x1f173c,_0x4ca443._0xa476d3,_0x4ca443._0x4ec601,0x4b5)]('\x0a')+(_0x44cbed?_0x35afc1(0x569,0x540,_0x4ca443._0x4d9bb2,0x610):'');yield createToolOutput(_0x22ef83,{'pattern':_0x26b897[_0x2f2ccb(0x625,0x50a,_0x4ca443._0x4263f7,0x45a)],'searchPath':_0x931a15['relative'](_0x521b40,_0x1d3b29)||'.','matches':_0x5617c0,'count':_0x5617c0[_0x35afc1(_0x4ca443._0x5830b9,_0x4ca443._0x1ed789,0x56b,_0x4ca443._0x2ef85c)],'truncated':_0x44cbed});function _0x2f2ccb(_0x439564,_0x2f3774,_0x459ed1,_0x3ab16e){return _0x3f7d28(_0x3ab16e,_0x2f3774-0x114,_0x459ed1-0x9c,_0x459ed1- -_0xc45d5a._0x5d1a14);}return void 0x0;}});}import{stat as _0x2af49a}from'fs/promises';import*as _0xb85925 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x4c5459={}){const _0x2b2485={_0x546eac:0x550,_0x2c0c68:0x4a2,_0x3bf9c0:0x6f4,_0x492d32:0x788,_0x175bce:0x59a,_0x711a0:0x714,_0x91cf25:0x638,_0x4e1be5:0x3b9,_0x24e2b7:0x360,_0x23da4f:0x7d0,_0x3be7a9:0x319,_0x5c59cc:0x295,_0x553b19:0x1f2,_0x576427:0x513},_0x1d4398={_0x1d90b6:0x14e,_0x3dfc3f:0x37,_0x30a1b3:0xfa,_0x373e34:0x78,_0x3ceaae:0x104,_0x563d22:0x5,_0x46a538:0x732,_0x413d15:0x773,_0x5dde2d:0x827,_0x4c590c:0x72c,_0xa50a26:0x742,_0x78aa63:0x7a9,_0x1155e9:0x715,_0x318b16:0x147,_0x598a4e:0xea,_0x1c44a6:0x45,_0xc911c4:0x1c6,_0x5f487b:0x142,_0x4cd19b:0x288,_0x5c38b8:0x1b5,_0x3a1101:0x1f0,_0x41856a:0x708,_0x3ad2bb:0x5fa,_0x8b4713:0x90,_0x25d40a:0xec,_0x42c254:0x7a,_0x83ddb1:0xa2,_0x1bc64e:0x139,_0x5d528a:0x5,_0x5e02eb:0xb5,_0x53272f:0x1ac,_0x13a1cd:0x2d7,_0x2f4f62:0x6b5,_0x155c32:0x1ad,_0x334bbe:0x6f5,_0xf99b71:0x855,_0x2fadb5:0x79,_0x49719a:0x138,_0x233202:0x1b7,_0x12b35d:0x5f,_0x23920e:0xe3,_0x27efe6:0x1be,_0x27657f:0x44,_0x327dac:0xc8,_0xdf8edc:0x1f,_0x503c70:0x296,_0x39c948:0x19a,_0xb242ff:0x88e,_0x4422d5:0x81d,_0x34f7fa:0x732,_0x2c8ad1:0x84f,_0x83699:0x760,_0x342043:0x671,_0x3a1d0c:0x7ce,_0xe48c7c:0x5ed,_0x20d486:0x46c,_0x167e10:0x741,_0x5d83e4:0x21,_0x353280:0x234,_0x3680bc:0x21c,_0x49dbd2:0x12c,_0x3da629:0x2ec,_0x62be12:0x136,_0x2cec74:0x78,_0x548035:0x22,_0x42b6af:0x5a7,_0x45b2ec:0x6c1,_0x2d3599:0x5c1,_0x22746d:0x1df,_0x434c09:0x1f4,_0x529f7c:0x270,_0x14662f:0x175,_0x15d6ab:0x22c,_0x4dfe79:0x132,_0x14e643:0x46,_0x23754b:0xcf,_0x1879f5:0xa1,_0x5e82f7:0x5a,_0x3714ca:0x157,_0xf8be5c:0x228,_0x51f597:0x501,_0x58c476:0x4a5,_0x1b5fe6:0x5d8,_0xacba6e:0x6eb,_0x26e489:0x5b6,_0x30c63a:0x83c,_0x1ef194:0x79d,_0x23b681:0xd3},_0xf6f081={_0x548e39:0x183,_0x28d91a:0x9c},_0x11fd9d={_0x21fd8b:0xeb,_0x58b5d2:0x2e0},_0x17f58d={_0x262734:0x132,_0x6a95cb:0x48a},_0x5e957e={_0xe6b6e6:0x117},_0x119f6b=_0xb85925[_0x5c2cca(0x446,0x3d2,_0x2b2485._0x546eac,0x656)](_0x4c5459[_0x5c2cca(0x6c8,0x476,0x5a6,0x619)]??process[_0x5c2cca(0x365,0x5ca,0x477,_0x2b2485._0x2c0c68)]());function _0x5c2cca(_0x179bda,_0x2cf9be,_0x42c99b,_0x527c4d){return _0x55c88d(_0x179bda-0x170,_0x42c99b-0x169,_0x179bda,_0x527c4d-_0x5e957e._0xe6b6e6);}const _0x3f2062=_0x4c5459[_0x5c2cca(0x630,0x6d2,0x622,_0x2b2485._0x3bf9c0)]??[];function _0x171016(_0x29bebc,_0x473821,_0x2f1e58,_0x3a75d9){return _0x1e45aa(_0x29bebc-0x185,_0x473821-_0x17f58d._0x262734,_0x473821- -_0x17f58d._0x6a95cb,_0x3a75d9);}const _0x3d9226=_0x4c5459[_0x5c2cca(_0x2b2485._0x492d32,_0x2b2485._0x175bce,0x6a0,0x71a)]??0x64,_0x556766=_0x4c5459[_0x5c2cca(_0x2b2485._0x711a0,_0x2b2485._0x91cf25,0x648,0x657)]??_0x5c2cca(_0x2b2485._0x4e1be5,_0x2b2485._0x24e2b7,0x4a0,0x584);return defineTool({'name':_0x556766,'description':_0x5c2cca(0x791,0x840,0x706,_0x2b2485._0x23da4f),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x171016(_0x2b2485._0x3be7a9,_0x2b2485._0x5c59cc,0x2fd,_0x2b2485._0x553b19)},'path':{'type':_0x5c2cca(0x490,_0x2b2485._0x576427,0x5d7,0x720)},'include':{'type':'string'},'limit':{'type':'number'},'context':{'type':'number'}},'required':['pattern']},async *'execute'(_0x417284){if(_0x417284[_0x4a31e1(-0x185,-0x1e1,-0x22f,-0x1a9)][_0x4a31e1(_0x1d4398._0x1d90b6,_0x1d4398._0x3dfc3f,_0x1d4398._0x30a1b3,0x54)]()[_0x4a31e1(-0x37,_0x1d4398._0x373e34,_0x1d4398._0x3ceaae,_0x1d4398._0x563d22)]===0x0)throw new ToolExecutionError(_0x131277(0x83b,_0x1d4398._0x46a538,_0x1d4398._0x413d15,_0x1d4398._0x5dde2d),{});const _0x1b4422=resolveAllowedPath(_0x119f6b,_0x3f2062,_0x417284[_0x131277(_0x1d4398._0x4c590c,_0x1d4398._0xa50a26,_0x1d4398._0x78aa63,_0x1d4398._0x1155e9)]??'.'),_0x217faf=await _0x2af49a(_0x1b4422)[_0x4a31e1(0x17,-_0x1d4398._0x318b16,-_0x1d4398._0x598a4e,-0x17b)](()=>null);function _0x4a31e1(_0x2b677a,_0x57302e,_0x5ebc9c,_0x152168){return _0x171016(_0x2b677a-_0x11fd9d._0x21fd8b,_0x57302e- -_0x11fd9d._0x58b5d2,_0x5ebc9c-0x1b4,_0x5ebc9c);}const _0x49330b=_0x217faf?.[_0x4a31e1(_0x1d4398._0x1c44a6,0x42,-0x4b,0x6d)]()??![],_0x13be5a=_0x217faf?.[_0x4a31e1(-_0x1d4398._0xc911c4,-_0x1d4398._0x5f487b,-0x163,-0x78)]()??![];if(!_0x49330b&&!_0x13be5a)throw new ToolExecutionError(_0x4a31e1(-_0x1d4398._0x4cd19b,-_0x1d4398._0x5c38b8,-_0x1d4398._0x3a1101,-0x83)+(_0x417284[_0x131277(_0x1d4398._0x41856a,0x5fa,_0x1d4398._0x3ad2bb,0x715)]??'.'),{'path':_0x417284[_0x4a31e1(-0x143,-_0x1d4398._0x8b4713,_0x1d4398._0x25d40a,0xc4)]??'.'});const _0x32c907=_0x417284[_0x4a31e1(-0x24,0x7e,-_0x1d4398._0x42c254,-_0x1d4398._0x83ddb1)]??_0x3d9226;function _0x131277(_0x3449ad,_0x3f3a66,_0x541348,_0x3d4cfc){return _0x5c2cca(_0x541348,_0x3f3a66-0x164,_0x3d4cfc-_0xf6f081._0x548e39,_0x3d4cfc-_0xf6f081._0x28d91a);}const _0x4caf0d=Math[_0x4a31e1(-0x15b,-_0x1d4398._0x1bc64e,_0x1d4398._0x5d528a,-0x29b)](0x1,Math[_0x4a31e1(-_0x1d4398._0x5e02eb,-_0x1d4398._0x53272f,-0x95,-_0x1d4398._0x13a1cd)](_0x32c907)),_0x4f7336=await search({'cwd':_0x13be5a?_0x1b4422:_0xb85925['dirname'](_0x1b4422),'pattern':_0x417284[_0x4a31e1(-0xe4,-0x1e1,-0x260,-0x33c)],'glob':_0x13be5a?_0x417284['include']:void 0x0,'limit':_0x4caf0d,'file':_0x49330b?_0x1b4422:void 0x0,'context':_0x417284[_0x131277(0x4ff,0x729,0x4c5,0x60c)]}),_0x1007e8=new Map();for(const _0x6f94da of _0x4f7336){if(!_0x1007e8['has'](_0x6f94da['filePath'])){const _0xc5bcb7=await _0x2af49a(_0x6f94da[_0x131277(0x701,_0x1d4398._0x2f4f62,0x798,0x6ab)])[_0x4a31e1(-0x1de,-_0x1d4398._0x318b16,-0x258,-_0x1d4398._0x155c32)](()=>null);_0x1007e8['set'](_0x6f94da['filePath'],{'matches':[],'mtime':_0xc5bcb7?.[_0x131277(_0x1d4398._0x334bbe,_0x1d4398._0xf99b71,0x7df,0x7bf)]??0x0});}_0x1007e8[_0x4a31e1(-0x1,_0x1d4398._0x2fadb5,_0x1d4398._0x49719a,_0x1d4398._0x233202)](_0x6f94da[_0x4a31e1(-_0x1d4398._0x12b35d,-0xfa,-0x10,-0xee)])?.[_0x4a31e1(0x16f,_0x1d4398._0x23920e,_0x1d4398._0x27efe6,0x149)][_0x4a31e1(-_0x1d4398._0x27657f,-_0x1d4398._0x327dac,0xb2,-0x23b)](_0x6f94da);}const _0x219773=[..._0x1007e8[_0x4a31e1(-0xa5,_0x1d4398._0xdf8edc,-0x4b,0x3)]()][_0x4a31e1(-_0x1d4398._0x503c70,-_0x1d4398._0x39c948,-0x18b,-0x1c7)]((_0xe2696a,_0x4d3bc3)=>_0x4d3bc3[0x1][_0x4a31e1(-0x47,-0xe7,-0x192,-0x14)]-_0xe2696a[0x1]['mtime']),_0x2e13a9=_0x4f7336['filter'](_0x2d4d02=>!_0x2d4d02[_0x4a31e1(0x6d,-0xf8,-0x127,-0xea)])[_0x131277(_0x1d4398._0xb242ff,0x8ad,0x761,_0x1d4398._0x4422d5)],_0xa14c61=_0x4f7336[_0x131277(_0x1d4398._0x34f7fa,_0x1d4398._0x2c8ad1,0x6fd,0x81d)]>=_0x4caf0d,_0x385073=_0x49330b?_0xb85925[_0x131277(0x701,0x7da,_0x1d4398._0x83699,_0x1d4398._0x342043)](_0x1b4422):_0x1b4422;let _0x12f047='';if(_0x4f7336['length']===0x0)_0x12f047=_0x131277(0x771,_0x1d4398._0x3a1d0c,0x885,0x7de)+_0x417284[_0x131277(_0x1d4398._0xe48c7c,_0x1d4398._0x20d486,0x525,0x5c4)];else{_0x12f047='Found\x20'+_0x2e13a9+_0x131277(0x76c,_0x1d4398._0x167e10,0x855,0x714)+(_0x2e13a9===0x1?'':'es')+'\x0a';for(const [_0x35ac96,_0x3e1d3a]of _0x219773){const _0x1c633f=_0x49330b?_0xb85925[_0x131277(0x8a6,0x693,0x75b,0x7f8)](_0x35ac96):_0xb85925[_0x4a31e1(_0x1d4398._0x5d83e4,-0x157,-_0x1d4398._0x353280,-0x95)](_0x385073,_0x35ac96);_0x12f047+='\x0a'+_0x1c633f+':\x0a';for(const _0x3160dd of _0x3e1d3a[_0x4a31e1(-0x2c,0xe3,_0x1d4398._0x3680bc,_0x1d4398._0x49dbd2)]){const _0x3eda5a=_0x3160dd[_0x4a31e1(-0x1db,-0x1e4,-_0x1d4398._0x3da629,-_0x1d4398._0x62be12)][_0x4a31e1(0x65,_0x1d4398._0x2cec74,-_0x1d4398._0x548035,0x15d)]>MAX_LINE_LENGTH?_0x3160dd[_0x131277(0x6c3,_0x1d4398._0x42b6af,_0x1d4398._0x45b2ec,_0x1d4398._0x2d3599)][_0x4a31e1(-_0x1d4398._0x22746d,-_0x1d4398._0x434c09,-0xf2,-0x215)](0x0,MAX_LINE_LENGTH)+_0x4a31e1(-0x1ce,-0x148,-_0x1d4398._0x529f7c,-0x18a):_0x3160dd['lineText'],_0x546879=_0x3160dd['isContext']?'\x20\x20':'>\x20';_0x12f047+=_0x546879+_0x4a31e1(-0x38,-_0x1d4398._0x14662f,-_0x1d4398._0x15d6ab,-_0x1d4398._0x4dfe79)+_0x3160dd[_0x4a31e1(-0x12d,-_0x1d4398._0x14e643,_0x1d4398._0x23754b,0xfc)]+':\x20'+_0x3eda5a+'\x0a';}}_0xa14c61&&(_0x12f047+=_0x4a31e1(-_0x1d4398._0x1879f5,0x4c,-0xfc,_0x1d4398._0x5e82f7));}const _0x4a5d36={'searchPath':_0xb85925[_0x4a31e1(0xd,-_0x1d4398._0x3714ca,-_0x1d4398._0xf8be5c,-0x1c8)](_0x119f6b,_0x1b4422)||'.','pattern':_0x417284[_0x131277(0x5ce,_0x1d4398._0x51f597,_0x1d4398._0x58c476,0x5c4)],'matchCount':_0x2e13a9,'fileCount':_0x1007e8[_0x131277(_0x1d4398._0x1b5fe6,_0x1d4398._0xacba6e,0x6a9,_0x1d4398._0x26e489)],'truncated':_0xa14c61};return _0x13be5a&&_0x417284[_0x131277(0x845,0x8f8,_0x1d4398._0x30c63a,_0x1d4398._0x1ef194)]!==void 0x0&&(_0x4a5d36['include']=_0x417284[_0x131277(0x8f8,0x756,0x779,0x79d)]),yield createToolOutput(_0x12f047[_0x4a31e1(-0xa0,0x37,0x1,_0x1d4398._0x23b681)](),_0x4a5d36),void 0x0;}});}function createKillShellTool(_0x1a8a8c){const _0x1b233e={_0x1917c:0x4b,_0x5c7ffb:0x11a,_0xf80e89:0x59a,_0x65c643:0x6d9,_0x2b52af:0x6db,_0x3e8125:0x656},_0xc1a172={_0x467aea:0x59,_0x49e0a5:0x3f,_0x36e5bb:0x4b7,_0x191fc6:0x529,_0x554e84:0x61a,_0x890d90:0x398,_0x5463e2:0xf7,_0x34855b:0x118,_0x1ebb11:0x78,_0x4c7a7f:0x2fd,_0x56e145:0x47f,_0x4fe77c:0x432,_0x1266f1:0x23a,_0x25660e:0x15d,_0x2710ed:0x56f,_0x2a21c0:0x622,_0x2fa1af:0x558,_0x2ce3c5:0x4cf,_0x12c894:0x4c2},_0x3fb5d6={_0x2eaaf1:0x75,_0x5978aa:0x13a},_0x3987f9={_0x3ea373:0x2ac,_0x11c678:0x144},_0x45005a={_0x54b9aa:0x43},_0xac3f91={_0x18bf4:0x1f3,_0x3f1b6b:0x8a},{registry:_0x20275d}=_0x1a8a8c;function _0x4a1712(_0x250082,_0x54819b,_0x469fe8,_0x1adb3c){return _0x55c88d(_0x250082-_0xac3f91._0x18bf4,_0x250082- -0x424,_0x469fe8,_0x1adb3c-_0xac3f91._0x3f1b6b);}function _0x6be08f(_0x1403b0,_0x3af502,_0x1c4d9c,_0x42e117){return _0x1e45aa(_0x1403b0-0x1ce,_0x3af502-0x15b,_0x1403b0- -_0x45005a._0x54b9aa,_0x1c4d9c);}return defineTool({'name':_0x4a1712(_0x1b233e._0x1917c,0x68,0x14a,0x6b),'description':_0x4a1712(0xb5,0x51,_0x1b233e._0x5c7ffb,0x68),'inputSchema':{'type':'object','properties':{'shellId':{'type':_0x6be08f(0x6dc,_0x1b233e._0xf80e89,0x743,_0x1b233e._0x65c643)}},'required':[_0x6be08f(_0x1b233e._0x2b52af,0x560,0x6b8,_0x1b233e._0x3e8125)]},async *'execute'(_0x57f92f){const _0x24bbfa=_0x20275d[_0x201770(-_0xc1a172._0x467aea,-0x13f,-0x111,_0xc1a172._0x49e0a5)](_0x57f92f['shellId']);function _0x5986ab(_0x2d582a,_0x5189cd,_0x5f1904,_0x8381fc){return _0x6be08f(_0x2d582a- -_0x3987f9._0x3ea373,_0x5189cd-0x1c2,_0x5189cd,_0x8381fc-_0x3987f9._0x11c678);}function _0x201770(_0x219980,_0x5208a8,_0x46bc85,_0x3d2c6c){return _0x6be08f(_0x3d2c6c- -0x6be,_0x5208a8-_0x3fb5d6._0x2eaaf1,_0x219980,_0x3d2c6c-_0x3fb5d6._0x5978aa);}return createToolOutput(_0x5986ab(_0xc1a172._0x36e5bb,_0xc1a172._0x191fc6,_0xc1a172._0x554e84,_0xc1a172._0x890d90)+_0x57f92f[_0x201770(-_0xc1a172._0x5463e2,_0xc1a172._0x34855b,_0xc1a172._0x1ebb11,0x1d)]+_0x5986ab(_0xc1a172._0x4c7a7f,0x1d3,_0xc1a172._0x56e145,_0xc1a172._0x4fe77c)+_0x24bbfa[_0x201770(_0xc1a172._0x1266f1,0x89,0x291,_0xc1a172._0x25660e)]+').',{'shellId':_0x57f92f['shellId'],'status':_0x24bbfa[_0x5986ab(_0xc1a172._0x2710ed,0x51c,0x504,_0xc1a172._0x2a21c0)],'exitCode':_0x24bbfa[_0x5986ab(_0xc1a172._0x2fa1af,_0xc1a172._0x2ce3c5,_0xc1a172._0x12c894,0x3f3)],'signal':_0x24bbfa[_0x201770(0xb8,0x69,0x13,0x165)]});}});}import{readdir as _0xd6a5d4,readFile as _0x548f5d,stat as _0x6efb3e}from'fs/promises';import*as _0x360b39 from'path';import*as _0x4c446c from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x5ac990,_0x4e1a95){const _0x5c01d1={_0x2fbf07:0x458,_0x1ad453:0x502,_0x48dbc0:0x44a,_0x2531b2:0x377,_0x1b4e32:0x540,_0x5583cf:0x5fb,_0x40c4d2:0x677,_0x582559:0x760},_0x761432={_0x56010a:0xa0,_0x3c453c:0x19b},_0x18399d={_0x3e551e:0xe6,_0xfa1d43:0x1b};if(_0x4e1a95>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0xe099d(_0x38c97d,_0x538183,_0x15ec7b,_0x169453){return _0x55c88d(_0x38c97d-0x1b1,_0x38c97d-_0x18399d._0x3e551e,_0x538183,_0x169453-_0x18399d._0xfa1d43);}const _0x31c082=await _0x548f5d(_0x5ac990)[_0xe099d(_0x5c01d1._0x2fbf07,0x415,0x38a,0x470)](()=>null);if(!_0x31c082||isProbablyBinary(_0x31c082))return void 0x0;function _0x68ec54(_0x2ddeb5,_0x2331ea,_0x210050,_0x4a2c54){return _0x1e45aa(_0x2ddeb5-_0x761432._0x56010a,_0x2331ea-0x96,_0x2ddeb5- -_0x761432._0x3c453c,_0x4a2c54);}return _0x31c082[_0xe099d(_0x5c01d1._0x1ad453,0x405,0x512,_0x5c01d1._0x48dbc0)](_0xe099d(0x4cc,_0x5c01d1._0x2531b2,0x531,0x44b))[_0x68ec54(_0x5c01d1._0x1b4e32,0x61e,0x563,_0x5c01d1._0x5583cf)](/\r?\n/)[_0x68ec54(0x647,0x74a,_0x5c01d1._0x40c4d2,_0x5c01d1._0x582559)];}function createLsTool(_0x47e9df={}){const _0xada794={_0x56ccaf:0x51e,_0x3f1a43:0x595,_0x8a31e5:0x64f,_0x31843a:0xcd,_0x2be0f0:0x15e,_0x51bef8:0x2eb,_0x483c67:0x29e,_0x3ee839:0x40a,_0x2df4fd:0x396,_0xaf0580:0x41c,_0x3dbc82:0x2c,_0x2ce2c1:0x61,_0x2f2dc4:0x6bd,_0x57ba6c:0x432},_0xfbe718={_0x578ed1:0x50f,_0x5bd725:0x2d9,_0x49fa58:0x29b,_0x286343:0x4c0,_0x1813c3:0x327,_0x159c6a:0x3e7,_0x43c518:0x23b,_0x3713d2:0x31b,_0x110a5a:0x22c,_0x44e6d6:0x355,_0x28b2f0:0x138,_0x16e971:0x403,_0x58d6d8:0x221,_0x39845a:0x48c,_0x4d1185:0x3d0,_0x4d399a:0x430,_0x3e776d:0x4f9,_0x2ac025:0x479,_0x2252f2:0x1f8,_0x56b39a:0x697,_0xad676b:0x716,_0xcdab50:0x656,_0x4dddb7:0x3eb,_0x4ce650:0x515,_0x5b3ef1:0x580,_0x364dc1:0x231,_0x5caf00:0x374,_0x175fba:0x27e,_0x1ca374:0x10c,_0x4fde07:0x14c,_0x2bbc3d:0x308,_0x1d61b0:0xfe,_0x57e8e0:0x47a,_0x2c9baa:0x5f5,_0x5351fd:0x562,_0x563d04:0x498,_0x2390d4:0x3ae,_0x4eb2b0:0x4d0,_0x1bdc2e:0x39b,_0x58d759:0x467,_0x201206:0x492,_0x260807:0x4bc,_0x255bff:0x50b,_0x234f1f:0x624},_0x1cf109={_0x2cd4cb:0x138,_0x11eb8a:0x10c},_0x112daa={_0x11b295:0xc},_0x5ea0bc={_0x1a8dbf:0x8e},_0x5a5992={_0x3785d6:0x1d5,_0x22378c:0x1ca},_0x3e0913=_0x360b39['resolve'](_0x47e9df[_0x83e8a8(_0xada794._0x56ccaf,_0xada794._0x3f1a43,_0xada794._0x8a31e5,0x582)]??process[_0x406f2f(0x107,0x2b,_0xada794._0x31843a,_0xada794._0x2be0f0)]());function _0x406f2f(_0x1f5b70,_0x1c1d4d,_0x188ad6,_0x590291){return _0x55c88d(_0x1f5b70-_0x5a5992._0x3785d6,_0x188ad6- -0x241,_0x1c1d4d,_0x590291-_0x5a5992._0x22378c);}const _0xa402ca=_0x47e9df['allowedDirs']??[];function _0x83e8a8(_0x436870,_0x31bf3d,_0x5a2c60,_0x550a6d){return _0x1e45aa(_0x436870-0xe4,_0x31bf3d-_0x5ea0bc._0x1a8dbf,_0x436870- -0x1d0,_0x5a2c60);}const _0x477a6b=_0x47e9df[_0x406f2f(0x235,_0xada794._0x51bef8,_0xada794._0x483c67,0x251)]??'Ls';return defineTool({'name':_0x477a6b,'description':_0x83e8a8(_0xada794._0x3ee839,0x4ff,_0xada794._0x2df4fd,_0xada794._0xaf0580),'inputSchema':{'type':_0x406f2f(0x8f,-_0xada794._0x3dbc82,0x116,_0xada794._0x2ce2c1),'properties':{'path':{'type':_0x83e8a8(0x54f,_0xada794._0x2f2dc4,0x68c,_0xada794._0x57ba6c)},'limit':{'type':_0x83e8a8(0x520,0x406,0x617,0x60a)}}},async *'execute'(_0x240ed3){function _0x12ac0c(_0x5941c1,_0x556b37,_0x346c1c,_0x30cfab){return _0x83e8a8(_0x5941c1- -0x17a,_0x556b37-0x86,_0x346c1c,_0x30cfab-_0x112daa._0x11b295);}const _0x2f36c7=_0x240ed3[_0x12ac0c(0x390,0x2fd,_0xfbe718._0x578ed1,0x2df)]??'.',_0x43a32e=resolveAllowedPath(_0x3e0913,_0xa402ca,_0x2f36c7),_0xfaad3e=await _0x6efb3e(_0x43a32e)[_0x12ac0c(_0xfbe718._0x5bd725,0x1f3,0x25c,_0xfbe718._0x49fa58)](()=>null);if(!_0xfaad3e?.['isDirectory']())throw new ToolExecutionError(_0x12ac0c(0x436,_0xfbe718._0x286343,0x45a,0x398)+_0x2f36c7,{'path':_0x2f36c7});const _0x1661e9=_0x240ed3[_0x12ac0c(0x49e,_0xfbe718._0x1813c3,_0xfbe718._0x159c6a,0x339)]??0x3e8,_0x1f7737=Math[_0x12ac0c(_0xfbe718._0x43c518,0x301,0x226,_0xfbe718._0x43c518)](Math['max'](Math[_0x12ac0c(0x274,_0xfbe718._0x3713d2,0x3b9,0x373)](_0x1661e9),0x1),0x2710),_0x4bb902=await _0xd6a5d4(_0x43a32e),_0x257c26=[];for(const _0x5d325d of _0x4bb902[_0x12ac0c(_0xfbe718._0x110a5a,_0xfbe718._0x44e6d6,_0xfbe718._0x28b2f0,0xb8)](0x0,_0x1f7737)){const _0x3176f1=_0x360b39[_0x12ac0c(0x359,_0xfbe718._0x16e971,_0xfbe718._0x58d6d8,0x1e6)](_0x43a32e,_0x5d325d),_0x32d5cf=await _0x6efb3e(_0x3176f1)['catch'](()=>null);if(!_0x32d5cf)continue;let _0x34f616=_0x108fc5(_0xfbe718._0x39845a,_0xfbe718._0x4d1185,_0xfbe718._0x4d399a,0x544);if(_0x32d5cf['isFile']())_0x34f616='file';else{if(_0x32d5cf[_0x12ac0c(0x2de,0x280,0x363,0x289)]())_0x34f616=_0x12ac0c(_0xfbe718._0x3e776d,0x63b,0x66d,_0xfbe718._0x2ac025);else{if(_0x32d5cf['isSymbolicLink']())_0x34f616='symlink';}}const _0xdea384={'name':_0x5d325d,'type':_0x34f616,'size':_0x32d5cf[_0x12ac0c(0x231,0xda,0x381,_0xfbe718._0x2252f2)],'mtime':_0x32d5cf[_0x108fc5(0x61a,_0xfbe718._0x56b39a,0x7f6,_0xfbe718._0xad676b)],'mode':_0x32d5cf[_0x108fc5(_0xfbe718._0xcdab50,_0xfbe718._0x4dddb7,0x43c,_0xfbe718._0x4ce650)]},_0x4600ec=_0x34f616===_0x108fc5(0x674,_0xfbe718._0x5b3ef1,0x53c,0x5ae)?await countTextLines(_0x3176f1,_0x32d5cf[_0x12ac0c(_0xfbe718._0x364dc1,_0xfbe718._0x5caf00,_0xfbe718._0x175fba,_0xfbe718._0x1ca374)]):void 0x0;if(_0x4600ec!==void 0x0)_0xdea384[_0x12ac0c(0x228,_0xfbe718._0x4fde07,_0xfbe718._0x2bbc3d,_0xfbe718._0x1d61b0)]=_0x4600ec;_0x257c26['push'](_0xdea384);}function _0x108fc5(_0x16f479,_0xfa38d7,_0x509e3e,_0x3d105d){return _0x83e8a8(_0x3d105d-0x162,_0xfa38d7-_0x1cf109._0x2cd4cb,_0x509e3e,_0x3d105d-_0x1cf109._0x11eb8a);}_0x257c26[_0x108fc5(_0xfbe718._0x57e8e0,_0xfbe718._0x2c9baa,0x6c3,_0xfbe718._0x5351fd)]((_0x3b5dc3,_0x4f3fa4)=>_0x3b5dc3[_0x108fc5(0x7b0,0x798,0x807,0x722)][_0x108fc5(0x771,0x70c,0x524,0x63b)](_0x4f3fa4['name']));const _0x4b560a={'path':_0x2f36c7,'total':_0x257c26[_0x12ac0c(_0xfbe718._0x563d04,_0xfbe718._0x2390d4,_0xfbe718._0x4eb2b0,_0xfbe718._0x1bdc2e)],'truncated':_0x4bb902['length']>_0x1f7737,'entries':_0x257c26};return yield createToolOutput(_0x4c446c[_0x12ac0c(_0xfbe718._0x58d759,0x35f,_0xfbe718._0x201206,0x349)](_0x4b560a,{'indent':0x2,'lineWidth':0x0})[_0x12ac0c(_0xfbe718._0x260807,_0xfbe718._0x255bff,0x51a,_0xfbe718._0x234f1f)](),{'path':_0x2f36c7,'total':_0x257c26['length'],'truncated':_0x4bb902[_0x108fc5(0x8f2,0x64b,0x673,0x774)]>_0x1f7737,'limit':_0x1f7737,'entries':_0x257c26}),void 0x0;}});}import{stat as _0x85280f}from'fs/promises';import _0x8c44b9 from'path';import{fileURLToPath as _0x50f047}from'url';function severityName(_0x433c6c){const _0x390ad4={_0x38f344:0x533,_0x4765a7:0x3f3,_0x28d1b5:0x24d,_0x8d3864:0x26f,_0x3069c6:0x538,_0x5a8254:0x4aa,_0x48a0b1:0x454},_0x1934bf={_0x2d9ec8:0x115,_0xa0950e:0x320},_0x418ad4={_0x3c684b:0x181,_0x1795a2:0x370};function _0x31121a(_0x5eaadc,_0x415094,_0x4eddd2,_0x2ca491){return _0x1e45aa(_0x5eaadc-0x147,_0x415094-_0x418ad4._0x3c684b,_0x415094- -_0x418ad4._0x1795a2,_0x2ca491);}function _0x174c70(_0x2247c3,_0x9d1330,_0x3697da,_0x7829e4){return _0x1e45aa(_0x2247c3-_0x1934bf._0x2d9ec8,_0x9d1330-0x144,_0x2247c3- -_0x1934bf._0xa0950e,_0x7829e4);}switch(_0x433c6c){case 0x1:return _0x174c70(0x3e7,0x2d1,_0x390ad4._0x38f344,0x32c);case 0x2:return _0x174c70(_0x390ad4._0x4765a7,0x479,0x542,0x398);case 0x3:return _0x31121a(0xda,_0x390ad4._0x28d1b5,0x12f,0x267);case 0x4:return _0x31121a(0x345,0x33e,_0x390ad4._0x8d3864,0x1f1);default:return _0x31121a(_0x390ad4._0x3069c6,_0x390ad4._0x5a8254,_0x390ad4._0x48a0b1,0x379);}}function formatSingleHover(_0x31ca44){const _0x51aeb7={_0x3b942d:0x2be,_0x3c059b:0x316,_0x3e2803:0x469,_0x4926fd:0x3e0,_0x2893b2:0x455,_0x4cfece:0x518,_0x580971:0x696,_0x16fe84:0x612,_0x370d1a:0x391,_0x3a4ef8:0x35e,_0xca489f:0x32d,_0x55e14f:0x487,_0x2a804c:0x2d9,_0x4bcb68:0x6a4,_0x5e835b:0x466,_0x313c01:0x469,_0x4d20bb:0x441},_0x178008={_0x17ff8d:0x15f,_0x53516a:0x1b0},_0x3e262b=_0x31ca44['contents'];function _0x3d1411(_0x4fec35,_0x127769,_0xb8720a,_0x3547fb){return _0x1e45aa(_0x4fec35-0xc5,_0x127769-0x1e,_0x3547fb- -0x1ea,_0x4fec35);}if(typeof _0x3e262b===_0x85b9b(0x412,0x3da,_0x51aeb7._0x3b942d,_0x51aeb7._0x3c059b))return _0x3e262b;if(Array[_0x85b9b(0x614,0x4d6,_0x51aeb7._0x3e2803,_0x51aeb7._0x4926fd)](_0x3e262b))return _0x3e262b[_0x3d1411(0x575,0x4a3,_0x51aeb7._0x2893b2,0x54f)](_0x4552bc=>typeof _0x4552bc==='string'?_0x4552bc:_0x4552bc[_0x85b9b(0x34c,0x492,0x4ff,0x319)])[_0x3d1411(_0x51aeb7._0x4cfece,_0x51aeb7._0x580971,_0x51aeb7._0x16fe84,0x678)](Boolean)[_0x85b9b(_0x51aeb7._0x370d1a,_0x51aeb7._0x3a4ef8,_0x51aeb7._0xca489f,_0x51aeb7._0x55e14f)]('\x0a\x0a');function _0x85b9b(_0x5ebaf5,_0x2e963d,_0x5d5537,_0x370f4e){return _0x1e45aa(_0x5ebaf5-_0x178008._0x17ff8d,_0x2e963d-_0x178008._0x53516a,_0x2e963d- -0x345,_0x5d5537);}if(_0x85b9b(_0x51aeb7._0x2a804c,0x412,0x3aa,0x4d9)in _0x3e262b)return _0x3e262b['value'];return _0x3e262b['language']?_0x3d1411(_0x51aeb7._0x4bcb68,0x66b,0x4fe,0x60b)+_0x3e262b[_0x3d1411(_0x51aeb7._0x5e835b,0x353,_0x51aeb7._0x313c01,0x3cd)]+'\x0a'+_0x3e262b['value']+_0x3d1411(0x4ba,0x4e0,0x2f8,_0x51aeb7._0x4d20bb):_0x3e262b[_0x85b9b(0x35c,0x492,0x36c,0x52d)];}function formatHover(_0x4d5c41){const _0x16e253={_0x495fda:0x73f,_0x1563c5:0x5bd,_0x5ba7eb:0x475,_0x3af396:0x4ed,_0x3d8a46:0x2da,_0x51b8ae:0x4d2,_0x3c1f05:0x520,_0x96f3c3:0x47e,_0x2b60eb:0x3e0,_0x596137:0x3c6,_0x47a3da:0x445},_0x1d1875={_0x50fbf2:0x8c},_0x1a0020={_0x143804:0x3d,_0x300edb:0xda,_0xc576a8:0x34e};if(_0x4d5c41[_0x539a02(_0x16e253._0x495fda,_0x16e253._0x1563c5,_0x16e253._0x5ba7eb,_0x16e253._0x3af396)]===0x0)return _0x49326c(_0x16e253._0x3d8a46,0x44b,0x344,_0x16e253._0x51b8ae);function _0x49326c(_0x3a2526,_0x5a9b9f,_0x3d18f6,_0x4a5579){return _0x1e45aa(_0x3a2526-_0x1a0020._0x143804,_0x5a9b9f-_0x1a0020._0x300edb,_0x5a9b9f- -_0x1a0020._0xc576a8,_0x3a2526);}function _0x539a02(_0x3474c4,_0x478b91,_0x107efa,_0x45888b){return _0x55c88d(_0x3474c4-0x138,_0x478b91-_0x1d1875._0x50fbf2,_0x45888b,_0x45888b-0x106);}return _0x4d5c41['map'](formatSingleHover)[_0x539a02(_0x16e253._0x3c1f05,_0x16e253._0x96f3c3,0x33b,_0x16e253._0x2b60eb)](_0x49326c(0x476,_0x16e253._0x596137,_0x16e253._0x47a3da,0x4c7));}function locationPath(_0x2dd4c8){const _0x4dbd8b={_0x1ca9fb:0x13f,_0x1c8083:0x11d},_0x172183={_0x28f7ef:0x1f3,_0x179559:0x372,_0x1d2ebd:0x117},_0x2ef74a={_0xd52c4:0x9f};if(!_0x2dd4c8[_0x9fdece(-_0x4dbd8b._0x1ca9fb,-_0x4dbd8b._0x1c8083,0x8,-0x193)](_0x2f7372(0x6a,-0x58,-0x6,0x51)))return _0x2dd4c8;function _0x9fdece(_0x582f7b,_0x2d4c1d,_0x17e6f3,_0x5c780e){return _0x55c88d(_0x582f7b-0x35,_0x2d4c1d- -0x3df,_0x17e6f3,_0x5c780e-_0x2ef74a._0xd52c4);}function _0x2f7372(_0x4b1f33,_0x81af0a,_0x50df47,_0x1a3cb7){return _0x55c88d(_0x4b1f33-_0x172183._0x28f7ef,_0x50df47- -_0x172183._0x179559,_0x1a3cb7,_0x1a3cb7-_0x172183._0x1d2ebd);}return _0x50f047(_0x2dd4c8);}function formatLocations(_0x48b698){const _0x2f6b81={_0x11c90f:0x420,_0x1465c8:0x520,_0x17f609:0x5c1,_0xecb672:0x31d,_0xcf47f2:0x57e,_0x71b671:0x47d,_0x7ee3c3:0x3b6,_0x49362d:0x31a},_0x1f7b25={_0x294983:0x41c,_0x39f185:0x433,_0x3069ea:0x519,_0x55929c:0x3af,_0x3bb2e2:0x3b,_0x254684:0x120,_0x34f15f:0x1b,_0x5ef259:0xef,_0x2c0008:0x7f,_0x347115:0x323,_0x5d2360:0x35a,_0x120fcc:0x298,_0x52473f:0x21d},_0x4bd0c8={_0x7e4b72:0x58},_0xe42855={_0xf75e0:0x31},_0x55f8c4={_0x277f93:0x1c0,_0x2821e7:0xb,_0x929a1f:0xa4};function _0x1d2434(_0x4c1d6c,_0x1175bf,_0x5cb302,_0xd99e5c){return _0x55c88d(_0x4c1d6c-_0x55f8c4._0x277f93,_0xd99e5c- -_0x55f8c4._0x2821e7,_0x4c1d6c,_0xd99e5c-_0x55f8c4._0x929a1f);}function _0x119d41(_0x3420e8,_0x36d8e6,_0x4f2135,_0x492f10){return _0x55c88d(_0x3420e8-0x198,_0x3420e8-_0xe42855._0xf75e0,_0x36d8e6,_0x492f10-0x157);}if(_0x48b698[_0x119d41(0x562,_0x2f6b81._0x11c90f,_0x2f6b81._0x1465c8,0x404)]===0x0)return'No\x20locations\x20found';return _0x48b698[_0x1d2434(_0x2f6b81._0x17f609,_0x2f6b81._0xecb672,_0x2f6b81._0xcf47f2,_0x2f6b81._0x71b671)](_0x12a1dd=>{const _0x58240a={_0xf7f9ec:0xb7};function _0x2fdbf9(_0x45f681,_0x2686fa,_0x46c8ea,_0x13540b){return _0x119d41(_0x45f681- -0x423,_0x13540b,_0x46c8ea-0x1a5,_0x13540b-_0x58240a._0xf7f9ec);}const _0xbcd681=_0x12a1dd[_0x28b97f(_0x1f7b25._0x294983,_0x1f7b25._0x39f185,_0x1f7b25._0x3069ea,_0x1f7b25._0x55929c)][_0x2fdbf9(-0x9c,-_0x1f7b25._0x3bb2e2,-_0x1f7b25._0x254684,_0x1f7b25._0x34f15f)];function _0x28b97f(_0x115429,_0x200ce4,_0x58cbee,_0xf5fcb1){return _0x1d2434(_0xf5fcb1,_0x200ce4-0x1e6,_0x58cbee-0x1ea,_0x58cbee- -_0x4bd0c8._0x7e4b72);}return locationPath(_0x12a1dd[_0x2fdbf9(-_0x1f7b25._0x5ef259,0x59,_0x1f7b25._0x2c0008,0x2d)])+':'+(_0xbcd681[_0x28b97f(0x27f,_0x1f7b25._0x347115,_0x1f7b25._0x5d2360,_0x1f7b25._0x120fcc)]+0x1)+':'+(_0xbcd681[_0x2fdbf9(0x112,0x8f,0x116,_0x1f7b25._0x52473f)]+0x1);})[_0x119d41(0x423,_0x2f6b81._0x7ee3c3,0x448,_0x2f6b81._0x49362d)]('\x0a');}function isDocumentSymbol(_0x9c10f9){const _0x5f0864={_0x1d327c:0x7ff,_0xb3686c:0x104},_0x34da10={_0x3bfc12:0xf,_0xb154b2:0x3df},_0xcb1a78={_0x3d2d6a:0x97,_0x4aae10:0x15e,_0x3669a8:0x49};function _0x2843d8(_0x479cf1,_0x3bd7b3,_0x4cd289,_0x2973ef){return _0x1e45aa(_0x479cf1-_0xcb1a78._0x3d2d6a,_0x3bd7b3-_0xcb1a78._0x4aae10,_0x479cf1- -_0xcb1a78._0x3669a8,_0x3bd7b3);}function _0x1b73a2(_0x281a25,_0x359cce,_0x2c06e6,_0x3e8b64){return _0x55c88d(_0x281a25-_0x34da10._0x3bfc12,_0x2c06e6- -_0x34da10._0xb154b2,_0x359cce,_0x3e8b64-0x37);}return _0x2843d8(0x7e4,0x797,0x94e,_0x5f0864._0x1d327c)in _0x9c10f9&&_0x1b73a2(0x5,-0x73,-_0x5f0864._0xb3686c,-0x22c)in _0x9c10f9;}function formatSymbols(_0x7ef93f){const _0x125b52={_0x18ee75:0x2d3,_0x576b07:0xcd},_0x54d812={_0x47da3b:0x6e8,_0x12cc08:0x115,_0x56fd28:0x1d9,_0x299c02:0xa0,_0x20f8d1:0xba,_0x4a9b07:0x462,_0x107de2:0x55f,_0x4bf1b2:0x28,_0x4572eb:0x1dc,_0x4f5535:0x313,_0xbb539e:0x3f7,_0xcd27c2:0x519,_0x513acc:0x627,_0x4b3ae1:0x70d,_0x356540:0x6c9,_0xea0ca7:0x59f,_0x160b65:0x2a0,_0x4ebd4d:0x3f,_0x1f3ac1:0xf8,_0x4603e9:0x684,_0x3f3602:0x2ca,_0x31db5c:0x313,_0x4f433d:0x1ac,_0x11b446:0x438,_0x392f72:0xff,_0x24cfed:0x26d,_0x4799af:0x631,_0xeabc90:0x8f1},_0x1e7731={_0x331c8c:0x6e,_0xf23ea2:0xec},_0x203a53={_0x3614a6:0x9c,_0x2379b7:0x19d};if(_0x7ef93f[_0x11f9ca(_0x125b52._0x18ee75,_0x125b52._0x576b07,0x2ef,0x1dc)]===0x0)return'No\x20symbols\x20found';function _0x11f9ca(_0x591ebf,_0xa24ee6,_0x340228,_0x1ab6f9){return _0x1e45aa(_0x591ebf-0xeb,_0xa24ee6-0x182,_0x1ab6f9- -0x606,_0xa24ee6);}return _0x7ef93f['map'](_0x212af8=>{function _0x4cf156(_0x2089ee,_0x3eaf2f,_0x35aba9,_0x4607aa){return _0x11f9ca(_0x2089ee-_0x203a53._0x3614a6,_0x4607aa,_0x35aba9-_0x203a53._0x2379b7,_0x35aba9-0x55e);}if(isDocumentSymbol(_0x212af8))return _0x212af8[_0x4cf156(0x6b7,0x833,_0x54d812._0x47da3b,0x6f2)]+'\x20('+_0x212af8['kind']+_0x1a536e(_0x54d812._0x12cc08,_0x54d812._0x56fd28,_0x54d812._0x299c02,-_0x54d812._0x20f8d1)+(_0x212af8['range'][_0x4cf156(_0x54d812._0x4a9b07,0x41e,_0x54d812._0x107de2,0x675)][_0x1a536e(-_0x54d812._0x4bf1b2,0x285,0x154,_0x54d812._0x4572eb)]+0x1)+':'+(_0x212af8[_0x1a536e(0x297,0x3ab,_0x54d812._0x4f5535,0x3fb)][_0x4cf156(_0x54d812._0x4a9b07,_0x54d812._0xbb539e,0x55f,_0x54d812._0xcd27c2)][_0x4cf156(0x756,_0x54d812._0x513acc,_0x54d812._0x4b3ae1,0x660)]+0x1)+']';function _0x1a536e(_0x55bfb0,_0xe0f8d4,_0x4a5874,_0x2780b1){return _0x11f9ca(_0x55bfb0-0x2,_0xe0f8d4,_0x4a5874-_0x1e7731._0x331c8c,_0x4a5874-_0x1e7731._0xf23ea2);}return _0x212af8[_0x4cf156(_0x54d812._0x356540,0x686,_0x54d812._0x47da3b,_0x54d812._0xea0ca7)]+'\x20('+_0x212af8[_0x1a536e(0x2ab,0x2e4,0x23d,_0x54d812._0x160b65)]+')\x20'+locationPath(_0x212af8['location'][_0x1a536e(_0x54d812._0x4ebd4d,_0x54d812._0x1f3ac1,0x9a,0xc9)])+':'+(_0x212af8[_0x4cf156(0x57a,0x6a1,_0x54d812._0x4603e9,0x6c5)][_0x1a536e(0x1c7,_0x54d812._0x3f3602,_0x54d812._0x31db5c,_0x54d812._0x4f433d)][_0x4cf156(_0x54d812._0x11b446,0x4d4,0x55f,0x5ea)][_0x1a536e(_0x54d812._0x392f72,_0x54d812._0x24cfed,0x154,0x1f3)]+0x1)+':'+(_0x212af8['location'][_0x4cf156(_0x54d812._0x4799af,_0x54d812._0xeabc90,0x785,0x6b9)][_0x4cf156(0x3d9,0x554,_0x54d812._0x107de2,0x579)][_0x1a536e(0x118,0x391,0x29b,0x250)]+0x1);})['join']('\x0a');}function formatDiagnostics(_0x137d8b){const _0xae3ceb={_0x222c53:0xc4,_0x294862:0x22,_0x163fc0:0x7a,_0x431799:0xb5,_0x959a04:0x15c,_0x45e837:0x16f,_0x1ec529:0xfe},_0x224eda={_0x50981c:0x452,_0x251c66:0x596,_0x411d2b:0x3d1,_0x2f000b:0x33f,_0x2318df:0x202},_0x4de1c8={_0x4f7914:0x19f,_0x57105f:0x304},_0x6653e9={_0x1906a7:0x45d,_0x247f1e:0x49},_0x2658ee={_0x4d6bb3:0x1ee},_0x2a811a={_0x1a7f52:0x1b8,_0x406f7a:0x132};function _0xfd20a0(_0x28df0b,_0x5dc863,_0x1abecf,_0x36648d){return _0x55c88d(_0x28df0b-_0x2a811a._0x1a7f52,_0x28df0b- -0x43c,_0x36648d,_0x36648d-_0x2a811a._0x406f7a);}if(_0x137d8b[_0xfd20a0(0xf5,_0xae3ceb._0x222c53,_0xae3ceb._0x294862,-_0xae3ceb._0x163fc0)]===0x0)return _0x3eba31(-_0xae3ceb._0x431799,_0xae3ceb._0x959a04,0x9f,0xc6);function _0x3eba31(_0x4870db,_0x18668c,_0x17d3f3,_0x108faf){return _0x1e45aa(_0x4870db-_0x2658ee._0x4d6bb3,_0x18668c-0x34,_0x17d3f3- -0x534,_0x108faf);}return _0x137d8b['map'](_0x33ec4d=>{function _0x4d48e4(_0x24d983,_0x2f9d4a,_0x35879e,_0x5cc42f){return _0xfd20a0(_0x2f9d4a-_0x6653e9._0x1906a7,_0x2f9d4a-0x1a2,_0x35879e-_0x6653e9._0x247f1e,_0x35879e);}const _0x4a3342=_0x33ec4d['range']['start'];function _0x18dae1(_0x622f05,_0x2a30da,_0x5863bc,_0x45ab2c){return _0x3eba31(_0x622f05-_0x4de1c8._0x4f7914,_0x2a30da-0xa3,_0x5863bc-_0x4de1c8._0x57105f,_0x622f05);}return severityName(_0x33ec4d[_0x4d48e4(0x447,_0x224eda._0x50981c,0x5c4,0x40e)])+'\x20['+(_0x4a3342[_0x18dae1(0x474,_0x224eda._0x251c66,0x43e,_0x224eda._0x411d2b)]+0x1)+':'+(_0x4a3342['character']+0x1)+']\x20'+_0x33ec4d[_0x18dae1(_0x224eda._0x2f000b,_0x224eda._0x2318df,0x37b,0x34a)];})[_0x3eba31(0x285,0x4d,_0xae3ceb._0x45e837,_0xae3ceb._0x1ec529)]('\x0a');}function formatIncomingCalls(_0x4dd4ef){const _0x4afdd1={_0x4aad61:0x618,_0x36a785:0x6d6,_0x49e94d:0x62e,_0x57c36b:0x761},_0x2fa49d={_0x28990a:0x84,_0x1af802:0x75},_0x4f5d86={_0x12c762:0x11c,_0x35a798:0xa7};function _0x2fee89(_0x4cfed3,_0x59f95a,_0x397a77,_0xd857a9){return _0x55c88d(_0x4cfed3-_0x4f5d86._0x12c762,_0x59f95a- -0x332,_0xd857a9,_0xd857a9-_0x4f5d86._0x35a798);}function _0x17e1a0(_0x4e6143,_0x33c500,_0x2fbf4a,_0x5e9b22){return _0x1e45aa(_0x4e6143-0x3c,_0x33c500-_0x2fa49d._0x28990a,_0x33c500- -_0x2fa49d._0x1af802,_0x2fbf4a);}if(_0x4dd4ef['length']===0x0)return _0x17e1a0(0x619,_0x4afdd1._0x4aad61,0x779,_0x4afdd1._0x36a785);return _0x4dd4ef['map'](_0x74bfc3=>_0x74bfc3[_0x2fee89(0x237,0x1dd,0x237,0x332)][_0x17e1a0(0x5be,0x71b,0x5a9,0x5c6)])[_0x17e1a0(0x6db,_0x4afdd1._0x49e94d,_0x4afdd1._0x57c36b,0x656)]('\x0a');}function formatOutgoingCalls(_0x33368f){const _0x409d7b={_0x38bbf7:0x1fe,_0x589f5c:0x1e6,_0x2294b3:0xa7,_0x1b6479:0xa9,_0xdb32c8:0xef,_0x3c6345:0x75},_0x545f32={_0x59ea90:0x144,_0x262003:0x5e4},_0x1f683e={_0x208bb0:0x1a4,_0x458d81:0x111};function _0x3ccac0(_0x5a11f7,_0x575af6,_0x370f98,_0x3272fb){return _0x55c88d(_0x5a11f7-_0x1f683e._0x208bb0,_0x3272fb- -0x3b3,_0x5a11f7,_0x3272fb-_0x1f683e._0x458d81);}if(_0x33368f[_0x8b520d(0xf6,_0x409d7b._0x38bbf7,_0x409d7b._0x589f5c,_0x409d7b._0x2294b3)]===0x0)return _0x8b520d(0x9a,_0x409d7b._0x1b6479,_0x409d7b._0xdb32c8,_0x409d7b._0x3c6345);function _0x8b520d(_0x34b440,_0x39dc96,_0x2b8d35,_0x2cf486){return _0x1e45aa(_0x34b440-0x49,_0x39dc96-_0x545f32._0x59ea90,_0x39dc96- -_0x545f32._0x262003,_0x34b440);}return _0x33368f['map'](_0x5a4e66=>_0x5a4e66['to']['name'])['join']('\x0a');}function toStructured(_0x46ce85){const _0x43f413={_0x460ffb:0x51b,_0x122b48:0x678,_0x2afafb:0x4d1},_0x282b0a={_0x1d9ee8:0x2,_0x18767d:0x21d},_0x2a4d2d={_0xcc3002:0x236};function _0x4f100c(_0x26502d,_0x1bb7f9,_0x3899c4,_0xeff54a){return _0x1e45aa(_0x26502d-0x7e,_0x1bb7f9-0x14a,_0x3899c4- -_0x2a4d2d._0xcc3002,_0x26502d);}function _0x489057(_0x37f4d5,_0x10980b,_0x4f833a,_0x507a41){return _0x55c88d(_0x37f4d5-_0x282b0a._0x1d9ee8,_0x10980b-_0x282b0a._0x18767d,_0x507a41,_0x507a41-0x143);}return JSON[_0x489057(_0x43f413._0x460ffb,0x567,0x5a1,_0x43f413._0x122b48)](JSON[_0x4f100c(_0x43f413._0x2afafb,0x430,0x57b,0x614)](_0x46ce85));}async function assertFile(_0x554f5f){const _0xd5b6f1={_0x550216:0x1cd,_0x25189e:0x9f},_0x284f27=await _0x85280f(_0x554f5f);function _0x295f86(_0x1c1866,_0x3b5460,_0x17f2f0,_0x3f9a2f){return _0x55c88d(_0x1c1866-0x151,_0x1c1866- -_0xd5b6f1._0x550216,_0x3b5460,_0x3f9a2f-_0xd5b6f1._0x25189e);}if(!_0x284f27['isFile']())throw new ToolExecutionError(_0x295f86(0x1e8,0x271,0x1ff,0x1f3)+_0x554f5f,{'path':_0x554f5f});}function validatePosition(_0x59c2c7,_0x3008b3){const _0xc0b874={_0x11530a:0x4ba,_0x155688:0x5bf,_0x103ce5:0x6e4,_0x554363:0x526,_0x2b3391:0x576,_0x4958b3:0x352,_0x1c94a0:0x1b7},_0x77f50c={_0x41e89c:0x47},_0x5c9c3e={_0x2ab4a7:0x6e,_0x4c32c0:0x0,_0x273457:0x2a0};function _0x530a00(_0x33039f,_0x5f0f9c,_0x41695e,_0x3378d5){return _0x1e45aa(_0x33039f-_0x5c9c3e._0x2ab4a7,_0x5f0f9c-_0x5c9c3e._0x4c32c0,_0x3378d5- -_0x5c9c3e._0x273457,_0x33039f);}if(!Number[_0x530a00(0x735,0x570,_0xc0b874._0x11530a,_0xc0b874._0x155688)](_0x59c2c7)||_0x59c2c7<0x1)throw new ToolExecutionError(_0x530a00(_0xc0b874._0x103ce5,0x48e,_0xc0b874._0x554363,_0xc0b874._0x2b3391),{'line':_0x59c2c7});function _0x14953a(_0x45ef3d,_0x2f0fd2,_0x51fb95,_0x5a4a95){return _0x55c88d(_0x45ef3d-0x12,_0x45ef3d- -0x24b,_0x2f0fd2,_0x5a4a95-_0x77f50c._0x41e89c);}if(!Number[_0x14953a(0x363,0x2e5,_0xc0b874._0x4958b3,0x4d8)](_0x3008b3)||_0x3008b3<0x1)throw new ToolExecutionError(_0x530a00(0x25e,_0xc0b874._0x1c94a0,0x3bc,0x2e1),{'character':_0x3008b3});}function createLspTool(_0x801e1c={}){const _0x62e0d={_0x232b69:0x4bf,_0x42654e:0x6c8,_0x1b8bcc:0x51f,_0x18ae3c:0x474,_0x41335b:0x4be,_0x1e3869:0x348,_0x32b598:0x5e6,_0x41250c:0x5cc,_0xa0e088:0x59b,_0x5d3354:0x65c,_0x4ff168:0x58c,_0x3f68e8:0x3ce,_0x215a50:0x6cb,_0x25cd3f:0x47c,_0x166540:0x4ea,_0x528faf:0x558,_0x5afafd:0x32f,_0x2474ea:0x4b7,_0x14624b:0x47d,_0x1c6792:0x41e,_0x1c3afb:0x49b,_0x3ab610:0x673,_0xca2b79:0x45e,_0x24d4ea:0x3fa,_0x279b3d:0x3ee,_0x75b34d:0x278,_0x346a1:0x547,_0x4709da:0x46c,_0x5344d3:0x546,_0x26c8fd:0x58a,_0x23a047:0x615,_0x43060c:0x600,_0x3546a7:0x580,_0x361b41:0x6c5,_0x504a6c:0x4df},_0x101644={_0x292582:0x287,_0x4f1f96:0x38e,_0x13a782:0x289,_0x202407:0x291,_0x4399c3:0x305,_0x508ffd:0x328,_0x410a61:0x198,_0x168dc5:0xd3,_0x210391:0x163,_0x5d5e25:0x1c1,_0x443cb9:0x1a2,_0x3b868f:0x2dc,_0x317a30:0x344,_0x27ddc3:0x13d,_0x21572e:0x1f7,_0x5751d3:0x150,_0x55a2c5:0x27a,_0x16a3ce:0x197,_0x4842cc:0x1fe,_0x4b4b40:0x27f,_0x3d83fe:0x246,_0x296189:0x330,_0x3f290b:0x309,_0x136d3e:0x310,_0x5b974f:0x40f,_0x230ada:0x101,_0x35e3ac:0x14d,_0x2ee89b:0x32b,_0x458ee7:0x1d9,_0x9048ba:0x316,_0x283a78:0x1cb,_0xc76485:0x23b,_0x48ca4c:0x110,_0x7931d3:0xbf,_0x58a095:0x2b3,_0x1d51e2:0x171,_0x34cc66:0x2a5,_0x437768:0x4c9,_0x10e194:0x50d,_0x51adae:0x2aa,_0x1e29db:0x21e,_0x3a6368:0x25d,_0x4e180c:0x1f7,_0x22fbdd:0x396,_0x27adae:0x1a7,_0x248481:0x3b7,_0x3542ce:0x318,_0x59911d:0x21a,_0x19282a:0x62,_0x212bb6:0x210,_0x110c0a:0x29,_0x2ea481:0x5e,_0x48c52f:0x2a4,_0x7cf579:0x24d,_0x3187f1:0x373,_0xfd56bf:0x121,_0x47c9c5:0x24a,_0x7f2505:0x3a6,_0x30d37a:0x8f,_0x47580c:0x97,_0x5d0ae6:0x158,_0x5ddf9a:0x8,_0x352255:0x187,_0x4f8841:0x72,_0x350cb3:0x53},_0x5ab81c={_0x3bb43f:0x322,_0x29c176:0x18d},_0x4524a6={_0xee1165:0x2d3,_0x55b917:0x2f},_0x17d251={_0x3637a1:0x67},_0x225674={_0x3f88a1:0xbe,_0x246262:0x107};function _0x385a52(_0x38cb00,_0x1a90b7,_0x2032b8,_0x57f924){return _0x55c88d(_0x38cb00-_0x225674._0x3f88a1,_0x38cb00-_0x225674._0x246262,_0x1a90b7,_0x57f924-0x19f);}const _0x34d186=_0x8c44b9['resolve'](_0x801e1c[_0x17e615(_0x62e0d._0x232b69,0x5cf,_0x62e0d._0x42654e,_0x62e0d._0x1b8bcc)]??process[_0x17e615(_0x62e0d._0x18ae3c,0x4a0,_0x62e0d._0x41335b,_0x62e0d._0x1e3869)]()),_0x300957=_0x801e1c['allowedDirs']??[];function _0x17e615(_0x519485,_0x335919,_0x4c967e,_0x2dc282){return _0x1e45aa(_0x519485-_0x17d251._0x3637a1,_0x335919-0x10f,_0x335919- -0x11f,_0x519485);}const _0x1320f0=_0x801e1c[_0x385a52(_0x62e0d._0x32b598,0x553,_0x62e0d._0x41250c,_0x62e0d._0xa0e088)]??_0x17e615(_0x62e0d._0x5d3354,0x6cc,0x82a,0x639);return defineTool({'name':_0x1320f0,'description':_0x385a52(_0x62e0d._0x4ff168,0x4a1,0x4ad,0x431),'inputSchema':{'type':_0x385a52(0x45e,_0x62e0d._0x3f68e8,0x559,0x5d7),'properties':{'operation':{'type':_0x385a52(0x575,_0x62e0d._0x215a50,_0x62e0d._0x25cd3f,_0x62e0d._0x166540),'enum':[_0x385a52(0x449,_0x62e0d._0x528faf,_0x62e0d._0x5afafd,0x388),'findReferences',_0x385a52(_0x62e0d._0x2474ea,0x5a7,0x471,_0x62e0d._0x14624b),_0x385a52(_0x62e0d._0x1c6792,_0x62e0d._0x1c3afb,0x46d,0x327),_0x17e615(0x678,0x5a4,0x5c1,0x6ef),'goToImplementation',_0x17e615(_0x62e0d._0x3ab610,0x5ab,0x4c6,0x50e),_0x385a52(0x3b9,_0x62e0d._0xca2b79,0x4e0,_0x62e0d._0x24d4ea),_0x385a52(_0x62e0d._0x279b3d,0x30a,_0x62e0d._0x75b34d,_0x62e0d._0x346a1),_0x385a52(0x444,0x3d9,0x459,0x4bc)]},'filePath':{'type':'string'},'line':{'type':_0x17e615(_0x62e0d._0xca2b79,0x5d1,_0x62e0d._0x4709da,0x4cb)},'character':{'type':_0x385a52(_0x62e0d._0x5344d3,_0x62e0d._0x26c8fd,_0x62e0d._0x23a047,0x51e)},'query':{'type':_0x17e615(0x617,_0x62e0d._0x43060c,0x769,_0x62e0d._0x3546a7)}},'required':['operation','filePath','line',_0x385a52(0x60b,_0x62e0d._0x361b41,_0x62e0d._0x504a6c,0x75f)]},async *'execute'(_0x41aaac){const _0x2759e8=_0x801e1c[_0xc66b5a(0x3d2,_0x101644._0x292582,_0x101644._0x4f1f96,_0x101644._0x13a782)];if(!_0x2759e8)throw new ToolExecutionError(_0xc66b5a(0x410,_0x101644._0x202407,_0x101644._0x4399c3,_0x101644._0x508ffd));if(!_0x2759e8[_0x2ee1bb(0x195,_0x101644._0x410a61,_0x101644._0x168dc5,_0x101644._0x210391)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x36245a=_0x41aaac['operation'];validatePosition(_0x41aaac[_0x2ee1bb(_0x101644._0x5d5e25,_0x101644._0x443cb9,0x1c4,_0x101644._0x3b868f)],_0x41aaac[_0xc66b5a(_0x101644._0x317a30,0x338,0x327,0x4b1)]);if(_0x36245a===_0x2ee1bb(_0x101644._0x27ddc3,_0x101644._0x21572e,0x35d,0x245)){if(!_0x41aaac['query']?.[_0x2ee1bb(_0x101644._0x5751d3,0x2d5,_0x101644._0x55a2c5,0x2a6)]())throw new ToolExecutionError(_0x2ee1bb(0x169,0x231,_0x101644._0x16a3ce,_0x101644._0x4842cc));const _0x3b9c9c=await _0x2759e8[_0xc66b5a(_0x101644._0x4b4b40,_0x101644._0x3d83fe,_0x101644._0x296189,_0x101644._0x3f290b)](_0x41aaac['query'][_0xc66b5a(_0x101644._0x136d3e,0x324,0x2b1,_0x101644._0x5b974f)]());return yield createToolOutput(formatSymbols(_0x3b9c9c),{'operation':_0x36245a,'query':_0x41aaac[_0xc66b5a(-0x41,_0x101644._0x230ada,0x1ba,0x283)],'symbols':_0x3b9c9c}),void 0x0;}const _0xbe2fd7=resolveAllowedPath(_0x34d186,_0x300957,_0x41aaac[_0xc66b5a(_0x101644._0x35e3ac,0x1f3,_0x101644._0x2ee89b,0x16b)]);await assertFile(_0xbe2fd7);function _0xc66b5a(_0x542283,_0x44ee14,_0x6f060b,_0x1b979d){return _0x385a52(_0x44ee14- -_0x4524a6._0xee1165,_0x6f060b,_0x6f060b-_0x4524a6._0x55b917,_0x1b979d-0xd2);}if(!await _0x2759e8['hasClients'](_0xbe2fd7))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x41aaac['filePath'],{'filePath':_0x41aaac[_0xc66b5a(0x331,0x1f3,0x1d1,0x343)]});function _0x2ee1bb(_0x1e1fd8,_0x5349b1,_0x23b00c,_0x1d2c2c){return _0x385a52(_0x5349b1- -_0x5ab81c._0x3bb43f,_0x23b00c,_0x23b00c-_0x5ab81c._0x29c176,_0x1d2c2c-0x138);}await _0x2759e8[_0x2ee1bb(_0x101644._0x458ee7,0x237,_0x101644._0x9048ba,_0x101644._0x283a78)](_0xbe2fd7,!![]);const _0x22b429={'file':_0xbe2fd7,'line':_0x41aaac[_0x2ee1bb(_0x101644._0xc76485,_0x101644._0x443cb9,0x2ab,0x2ec)]-0x1,'character':_0x41aaac['character']-0x1};switch(_0x36245a){case _0x2ee1bb(_0x101644._0x48ca4c,0x195,0x13f,0x2c7):{const _0x29a995=await _0x2759e8[_0x2ee1bb(0x1e1,0x195,_0x101644._0x7931d3,_0x101644._0x58a095)](_0x22b429);return yield createToolOutput(formatHover(_0x29a995),{'operation':_0x36245a,'filePath':_0xbe2fd7,'hover':_0x29a995}),void 0x0;}case _0xc66b5a(0x159,_0x101644._0x1d51e2,_0x101644._0x34cc66,0x1db):{const _0x370ee8=await _0x2759e8['diagnosticsForFile'](_0xbe2fd7);return yield createToolOutput(formatDiagnostics(_0x370ee8),{'operation':_0x36245a,'filePath':_0xbe2fd7,'diagnostics':_0x370ee8}),void 0x0;}case'goToDefinition':{const _0x1f3f34=await _0x2759e8[_0xc66b5a(0x3c1,0x3cb,_0x101644._0x437768,_0x101644._0x10e194)](_0x22b429);return yield createToolOutput(formatLocations(_0x1f3f34),{'operation':_0x36245a,'filePath':_0xbe2fd7,'locations':_0x1f3f34}),void 0x0;}case _0x2ee1bb(_0x101644._0x51adae,0x153,_0x101644._0x1e29db,_0x101644._0x3a6368):{const _0x45c9b9=await _0x2759e8[_0xc66b5a(0x39f,0x37d,0x298,0x26c)](_0x22b429);return yield createToolOutput(formatLocations(_0x45c9b9),{'operation':_0x36245a,'filePath':_0xbe2fd7,'locations':_0x45c9b9}),void 0x0;}case _0x2ee1bb(_0x101644._0x4e180c,0x2fc,_0x101644._0x22fbdd,_0x101644._0x27adae):{const _0x40c896=await _0x2759e8[_0xc66b5a(0x3c9,_0x101644._0x248481,0x408,_0x101644._0x3542ce)](_0x22b429);return yield createToolOutput(formatLocations(_0x40c896),{'operation':_0x36245a,'filePath':_0xbe2fd7,'locations':_0x40c896}),void 0x0;}case _0x2ee1bb(_0x101644._0x59911d,0xfc,0x205,_0x101644._0x19282a):{const _0x49296c=await _0x2759e8[_0x2ee1bb(_0x101644._0x212bb6,0xfc,_0x101644._0x110c0a,-_0x101644._0x2ea481)](_0xbe2fd7);return yield createToolOutput(formatSymbols(_0x49296c),{'operation':_0x36245a,'filePath':_0xbe2fd7,'symbols':_0x49296c}),void 0x0;}case _0xc66b5a(_0x101644._0x48c52f,_0x101644._0x7cf579,0x2cb,_0x101644._0x3187f1):{const _0x5dbf8b=await _0x2759e8[_0xc66b5a(_0x101644._0xfd56bf,0x24d,_0x101644._0x47c9c5,_0x101644._0x7f2505)](_0x22b429);return yield createToolOutput(formatSymbols(_0x5dbf8b),{'operation':_0x36245a,'filePath':_0xbe2fd7,'symbols':toStructured(_0x5dbf8b)}),void 0x0;}case _0x2ee1bb(_0x101644._0x30d37a,_0x101644._0x47580c,0x107,0x15a):{const _0x50b98b=await _0x2759e8['incomingCalls'](_0x22b429);return yield createToolOutput(formatIncomingCalls(_0x50b98b),{'operation':_0x36245a,'filePath':_0xbe2fd7,'calls':toStructured(_0x50b98b)}),void 0x0;}case _0x2ee1bb(_0x101644._0x5d0ae6,0xcc,_0x101644._0x5ddf9a,_0x101644._0x352255):{const _0x11898b=await _0x2759e8[_0xc66b5a(0xc3,0x11b,_0x101644._0x4f8841,-_0x101644._0x350cb3)](_0x22b429);return yield createToolOutput(formatOutgoingCalls(_0x11898b),{'operation':_0x36245a,'filePath':_0xbe2fd7,'calls':toStructured(_0x11898b)}),void 0x0;}}}});}function _0x55c88d(_0x485fd6,_0x3c8bf8,_0x4ed560,_0x44f04b){const _0x3d6d6f={_0x2ed328:0xe8};return _0x3bdd(_0x3c8bf8-_0x3d6d6f._0x2ed328,_0x4ed560);}import{randomUUID as _0x18c0db}from'crypto';import{mkdir as _0x2a4ba2,readFile as _0x22a1fc,writeFile as _0x140973}from'fs/promises';import{join as _0x3462e3}from'path';function sanitizeStorageKey(_0x8dba2d){const _0x429a0f={_0x234e86:0xb0,_0x3b9b6a:0xca,_0x47a886:0x491,_0x6a2af7:0x5b9,_0x5bba4a:0x4c1,_0x316232:0x42d},_0x40a848={_0x58d439:0x1f,_0x2dc291:0x11a},_0x2a3e7b={_0x2ce046:0x19f,_0x5af41f:0x9f};function _0x21b8c1(_0x4a7180,_0x5acdb8,_0x43e00c,_0x2d7464){return _0x55c88d(_0x4a7180-_0x2a3e7b._0x2ce046,_0x4a7180- -0x3b6,_0x5acdb8,_0x2d7464-_0x2a3e7b._0x5af41f);}function _0x3762ad(_0x137352,_0x123304,_0x42fc62,_0x30423d){return _0x55c88d(_0x137352-_0x40a848._0x58d439,_0x30423d-0x145,_0x137352,_0x30423d-_0x40a848._0x2dc291);}return _0x8dba2d[_0x21b8c1(-0x3a,-0x181,_0x429a0f._0x234e86,-_0x429a0f._0x3b9b6a)](/[^a-zA-Z0-9_]+/g,'_')[_0x3762ad(_0x429a0f._0x47a886,_0x429a0f._0x6a2af7,0x3b4,_0x429a0f._0x5bba4a)](/^_+|_+$/g,'')||_0x3762ad(_0x429a0f._0x316232,0x4a5,0x555,0x42d);}function storagePath(_0x27dcc7){const _0x34054c={_0xf3eb7e:0x3,_0x3e1cad:0xcb,_0x249ce6:0x70,_0x428dde:0x597,_0x879946:0x5c3,_0x595132:0x64c,_0x2d084f:0x568},_0xe4591a={_0x301131:0x16f,_0x34053b:0x420},_0x4c97f7={_0x343e6b:0xa1};function _0x5dd562(_0x50702f,_0xbb2ba4,_0x59c253,_0x29ee84){return _0x1e45aa(_0x50702f-0xd5,_0xbb2ba4-0x6a,_0x50702f- -_0x4c97f7._0x343e6b,_0x29ee84);}function _0x5a7b3c(_0x36527d,_0x50a05c,_0x23450c,_0x4d5823){return _0x55c88d(_0x36527d-_0xe4591a._0x301131,_0x23450c- -_0xe4591a._0x34053b,_0x50a05c,_0x4d5823-0x44);}const _0x1fde8d=sanitizeStorageKey(_0x27dcc7[_0x5a7b3c(-0x124,-0x66,-0x35,-_0x34054c._0xf3eb7e)]['oauth']?.['tokenStorageKey']??_0x27dcc7[_0x5a7b3c(-_0x34054c._0x3e1cad,-0x168,0x7,_0x34054c._0x249ce6)]);return _0x3462e3(_0x27dcc7['storageDir'],_0x1fde8d+_0x5dd562(_0x34054c._0x428dde,_0x34054c._0x879946,_0x34054c._0x595132,_0x34054c._0x2d084f));}async function readStore(_0x1a8758){const _0xc9c348={_0x57c507:0x41d,_0x556d6c:0x2e6,_0x3c0666:0x2f3,_0x1478a3:0x2b4,_0x245984:0x2b6},_0x3e16aa={_0x1e0022:0xf6,_0x1cf8db:0x17},_0x13b7e6={_0x42c4bb:0x64,_0x47cafd:0x97};function _0x2f9b43(_0x1b6e66,_0x3d27f7,_0x24e0cb,_0xb5b13a){return _0x55c88d(_0x1b6e66-0x198,_0x24e0cb- -_0x13b7e6._0x42c4bb,_0x3d27f7,_0xb5b13a-_0x13b7e6._0x47cafd);}function _0xb9c8ab(_0x2c5e7f,_0x22eb5f,_0x30903a,_0x39f578){return _0x1e45aa(_0x2c5e7f-_0x3e16aa._0x1e0022,_0x22eb5f-_0x3e16aa._0x1cf8db,_0x2c5e7f- -0x254,_0x30903a);}try{return JSON[_0x2f9b43(_0xc9c348._0x57c507,0x32e,_0xc9c348._0x556d6c,_0xc9c348._0x3c0666)](await _0x22a1fc(_0x1a8758,_0xb9c8ab(0x443,0x306,0x5b5,0x3ec)));}catch(_0x5d4b28){if(_0x5d4b28 instanceof Error&&'code'in _0x5d4b28&&_0x5d4b28['code']===_0xb9c8ab(0x3e3,0x282,_0xc9c348._0x1478a3,_0xc9c348._0x245984))return{};throw _0x5d4b28;}}async function writeStore(_0x5ba562,_0x5442e4){const _0x3dca52={_0x55c0be:0x4e8,_0x2547ac:0x578},_0x13a49d={_0x7b2119:0x1af};await _0x2a4ba2(_0x3462e3(_0x5ba562,'..'),{'recursive':!![]});function _0x318fe3(_0x471a05,_0x5bc57c,_0x203559,_0x3dfb82){return _0x1e45aa(_0x471a05-0x146,_0x5bc57c-0xa1,_0x203559- -_0x13a49d._0x7b2119,_0x5bc57c);}await _0x140973(_0x5ba562,JSON['stringify'](_0x5442e4,null,0x2),_0x318fe3(0x426,0x5d3,_0x3dca52._0x55c0be,_0x3dca52._0x2547ac));}async function updateStore(_0x47d877,_0x10c050){const _0x2bb8da=await readStore(_0x47d877);_0x10c050(_0x2bb8da),await writeStore(_0x47d877,_0x2bb8da);}function createMcpOAuthProvider(_0x466b08){const _0x3395d6={_0x402996:0xb8,_0xdb1ac9:0x42,_0x35f67f:0xd,_0x56f42c:0x13e,_0x44c396:0xdb,_0x5f0670:0x61,_0x1a877e:0x12d,_0x258d61:0x143,_0x1d1f62:0x14,_0x15100a:0xf,_0x20546d:0xfb,_0xf3b37b:0x1af,_0x4e569c:0x1c5,_0x92c6dc:0xdd,_0x95935c:0x118,_0x44eceb:0x109,_0x4e3d8b:0x6c,_0x3afc9e:0x91,_0x11b82a:0x15,_0x5e2dfa:0x5e,_0x365a2a:0xc0,_0x36901c:0x1a1},_0x66851={_0x4a4e2c:0x590,_0x48c0b7:0x6bf,_0x96716d:0x654,_0x443c8f:0x8e4,_0x358593:0x793,_0x59df86:0x5b3,_0x187679:0x62c,_0x9cdf:0x6db,_0x595a5c:0x51b,_0x307b6d:0x3b6,_0x5c7d3e:0x270,_0x5441d2:0x4b3,_0x339944:0x4c4,_0x1b0ccf:0x4cf,_0x31f050:0x62e,_0x15837e:0x561,_0x14877e:0x63f,_0x5b86c1:0x418,_0x2b24fb:0x161,_0x153ed3:0x2c9,_0x3656ae:0x614,_0x4ca4c3:0x371,_0x41cb51:0x239,_0x52b9fc:0x65b,_0x47e05d:0x591,_0x2b5972:0x587},_0x5584e1={_0x29b82f:0x69f,_0xdd4062:0x740,_0x5a56bd:0x5f5,_0x8f4489:0x677,_0x4f7381:0xac},_0x3d4d8b={_0x551bb3:0x1a9,_0x208b89:0xe2,_0x4e6a84:0x1c9},_0x55f73e={_0x9aa97d:0x3f0,_0x959971:0x3f1,_0x32d285:0x34d,_0x4c6373:0x3a5},_0x1de78e={_0x545046:0x30a},_0x543e9e={_0x2910a8:0x1c1,_0x52f445:0x196},_0x1cbc63={_0x41f132:0x4fe,_0x59f52:0x78c,_0x59f650:0x607},_0x5d67e2={_0x2aef52:0x1e4},_0x16fd7a={_0x17cb1f:0x3be},_0x25da5a={_0x436818:0x589,_0x508b29:0x675},_0xbefde0={_0x2ba9cc:0x1ad,_0x330e38:0x65a},_0x497f1e=storagePath(_0x466b08),_0x2d3e97=_0x466b08[_0x519bf4(-_0x3395d6._0x402996,0x172,_0x3395d6._0xdb1ac9,0xeb)][_0x519bf4(-0xc3,-0xf1,-0x91,0xd9)]?.['scopes']?.[_0x519bf4(-_0x3395d6._0x35f67f,_0x3395d6._0x56f42c,0x49,_0x3395d6._0x44c396)]('\x20');function _0x59913d(_0xd8541,_0x24fb25,_0x2e2686,_0x281aac){return _0x55c88d(_0xd8541-0xa2,_0x281aac- -0x3a6,_0x24fb25,_0x281aac-0x1b9);}const _0x16954a={'client_name':'Nuvin','redirect_uris':[_0x466b08[_0x519bf4(0x34,-0x4b,_0x3395d6._0x5f0670,_0x3395d6._0x1a877e)]],'grant_types':[_0x519bf4(0x1be,_0x3395d6._0x258d61,0x1e2,0x1d5),'refresh_token'],'response_types':[_0x59913d(-_0x3395d6._0x1d1f62,_0x3395d6._0x15100a,0x10f,_0x3395d6._0x20546d)],'token_endpoint_auth_method':_0x59913d(_0x3395d6._0xf3b37b,_0x3395d6._0x4e569c,0x17c,_0x3395d6._0x92c6dc),..._0x2d3e97?{'scope':_0x2d3e97}:{}};function _0x519bf4(_0x111476,_0x229581,_0x2a76c3,_0x1182ab){return _0x1e45aa(_0x111476-_0xbefde0._0x2ba9cc,_0x229581-0x1a6,_0x2a76c3- -_0xbefde0._0x330e38,_0x1182ab);}return{'clientMetadataUrl':_0x466b08[_0x519bf4(0x7b,_0x3395d6._0x95935c,0x42,-_0x3395d6._0x44eceb)][_0x519bf4(-_0x3395d6._0x4e3d8b,-0x197,-_0x3395d6._0x3afc9e,-_0x3395d6._0x11b82a)]?.[_0x519bf4(-_0x3395d6._0x5e2dfa,-0x127,-_0x3395d6._0x365a2a,-_0x3395d6._0x36901c)],get 'redirectUrl'(){const _0x218efe={_0x4e18e9:0x614};function _0x3acfc5(_0x225c6f,_0x578cf2,_0x3ac2d4,_0x4a9dfc){return _0x519bf4(_0x225c6f-0x32,_0x578cf2-0x1c4,_0x578cf2-_0x218efe._0x4e18e9,_0x4a9dfc);}return _0x466b08[_0x3acfc5(_0x25da5a._0x436818,_0x25da5a._0x508b29,0x7a0,0x5dc)];},get 'clientMetadata'(){return _0x16954a;},async 'state'(){const _0x3c22c8={_0x31cf10:0x82,_0x202582:0x13a},_0x47c9f3={_0x4962ca:0x18b,_0x3688a5:0x18e},_0x5b1b16=await readStore(_0x497f1e);if(_0x5b1b16['state'])return _0x5b1b16[_0x648d1a(0x235,0x355,_0x5d67e2._0x2aef52,0x47c)];const _0x217370=_0x18c0db();function _0x648d1a(_0x5f0273,_0x29d145,_0x2b52f,_0x400bd7){return _0x519bf4(_0x5f0273-_0x47c9f3._0x4962ca,_0x29d145-_0x47c9f3._0x3688a5,_0x29d145-0x372,_0x2b52f);}return await updateStore(_0x497f1e,_0x1a6688=>{function _0x45a5f8(_0x429862,_0x1e81f3,_0x18f919,_0x315913){return _0x648d1a(_0x429862-0x1a8,_0x1e81f3-_0x3c22c8._0x31cf10,_0x18f919,_0x315913-_0x3c22c8._0x202582);}_0x1a6688[_0x45a5f8(0x510,0x3d7,_0x16fd7a._0x17cb1f,0x46e)]=_0x217370;}),_0x217370;},async 'clientInformation'(){const _0x177f13={_0x5dceca:0x1cd};function _0x2ce9ef(_0x191905,_0xe07583,_0x3e4fb2,_0x6674ca){return _0x519bf4(_0x191905-_0x177f13._0x5dceca,_0xe07583-0xc6,_0x6674ca-0x5f2,_0xe07583);}return(await readStore(_0x497f1e))[_0x2ce9ef(_0x1cbc63._0x41f132,0x732,_0x1cbc63._0x59f52,_0x1cbc63._0x59f650)];},async 'saveClientInformation'(_0x302512){await updateStore(_0x497f1e,_0x5f1f6f=>{_0x5f1f6f['clientInformation']=_0x302512;});},async 'tokens'(){const _0x419484={_0x15cc97:0x265};function _0x3981ac(_0x3ebcc7,_0x5c3b31,_0x1e554f,_0x1721b3){return _0x519bf4(_0x3ebcc7-0x1b0,_0x5c3b31-0x95,_0x1e554f-_0x419484._0x15cc97,_0x1721b3);}return(await readStore(_0x497f1e))[_0x3981ac(_0x543e9e._0x2910a8,0x1b2,0x265,_0x543e9e._0x52f445)];},async 'saveTokens'(_0x1b3ca2){await updateStore(_0x497f1e,_0x4f3500=>{function _0x1ce216(_0x14de3a,_0x3a5da2,_0x205023,_0x278a64){return _0x3bdd(_0x278a64- -0xbe,_0x205023);}_0x4f3500[_0x1ce216(_0x1de78e._0x545046,0x1e2,0x2b7,0x203)]=_0x1b3ca2;});},async 'redirectToAuthorization'(_0x55453e){const _0x43cb8f={_0x8cfb2f:0x16c,_0x3fee51:0x35f};function _0x3930af(_0x4e26df,_0x453123,_0x52109a,_0x9000fa){return _0x59913d(_0x4e26df-_0x43cb8f._0x8cfb2f,_0x52109a,_0x52109a-0x84,_0x453123-_0x43cb8f._0x3fee51);}await _0x466b08[_0x3930af(_0x55f73e._0x9aa97d,_0x55f73e._0x959971,_0x55f73e._0x32d285,_0x55f73e._0x4c6373)](_0x55453e);},async 'saveCodeVerifier'(_0x4b679e){const _0x105142={_0x59c333:0xed};await updateStore(_0x497f1e,_0x52a338=>{const _0x4d97f9={_0x2606a3:0x22d};function _0x39599f(_0x1457b1,_0x389688,_0x20313e,_0x113fb3){return _0x3bdd(_0x20313e- -_0x4d97f9._0x2606a3,_0x113fb3);}_0x52a338[_0x39599f(0x73,-0x17,0xca,_0x105142._0x59c333)]=_0x4b679e;});},async 'codeVerifier'(){const _0x71b125={_0x1f84a6:0x190,_0x5556d5:0x1d1,_0x1e88e7:0x5bc},_0xa0c72b=(await readStore(_0x497f1e))[_0x50cc77(_0x5584e1._0x29b82f,_0x5584e1._0xdd4062,_0x5584e1._0x5a56bd,_0x5584e1._0x8f4489)];function _0x11c345(_0x1f33d2,_0x14d939,_0x4bb42f,_0x1bf63a){return _0x59913d(_0x1f33d2-_0x3d4d8b._0x551bb3,_0x14d939,_0x4bb42f-_0x3d4d8b._0x208b89,_0x1f33d2-_0x3d4d8b._0x4e6a84);}if(!_0xa0c72b)throw new Error(_0x11c345(0x1cb,0xa3,_0x5584e1._0x4f7381,0x31a));function _0x50cc77(_0x15ba5b,_0x414b9f,_0x303b97,_0x568ba5){return _0x59913d(_0x15ba5b-_0x71b125._0x1f84a6,_0x15ba5b,_0x303b97-_0x71b125._0x5556d5,_0x303b97-_0x71b125._0x1e88e7);}return _0xa0c72b;},async 'invalidateCredentials'(_0x4e2cb3){await updateStore(_0x497f1e,_0x639c89=>{(_0x4e2cb3===_0x32c284(0x5b8,0x74e,_0x66851._0x4a4e2c,_0x66851._0x48c0b7)||_0x4e2cb3===_0x32c284(_0x66851._0x96716d,_0x66851._0x443c8f,0x7dd,_0x66851._0x358593))&&(_0x639c89[_0x32c284(0x4d8,0x716,_0x66851._0x59df86,0x61e)]=void 0x0);function _0x21d8d6(_0x47956a,_0x77de9f,_0x45ebb1,_0x36e8e0){return _0x3bdd(_0x36e8e0-0x25,_0x47956a);}(_0x4e2cb3===_0x32c284(_0x66851._0x187679,_0x66851._0x9cdf,0x60b,0x6bf)||_0x4e2cb3===_0x21d8d6(0x448,0x246,0x1cd,0x2e6))&&(_0x639c89[_0x32c284(0x5fe,0x5d6,0x55a,0x609)]=void 0x0);(_0x4e2cb3===_0x21d8d6(_0x66851._0x595a5c,_0x66851._0x307b6d,_0x66851._0x5c7d3e,0x39c)||_0x4e2cb3===_0x32c284(_0x66851._0x5441d2,_0x66851._0x339944,_0x66851._0x1b0ccf,_0x66851._0x31f050))&&(_0x639c89[_0x32c284(0x72d,0x6ef,_0x66851._0x15837e,_0x66851._0x14877e)]=void 0x0,_0x639c89[_0x21d8d6(0x2ce,_0x66851._0x5b86c1,_0x66851._0x2b24fb,_0x66851._0x153ed3)]=void 0x0);function _0x32c284(_0x570b27,_0x440b8e,_0x5aef8c,_0x284763){return _0x3bdd(_0x284763-0x348,_0x440b8e);}(_0x4e2cb3===_0x32c284(0x701,_0x66851._0x3656ae,0x58b,_0x66851._0x48c0b7)||_0x4e2cb3===_0x21d8d6(0x360,0x262,_0x66851._0x4ca4c3,_0x66851._0x41cb51))&&(_0x639c89[_0x32c284(_0x66851._0x52b9fc,_0x66851._0x47e05d,0x4d7,_0x66851._0x2b5972)]=void 0x0);});},async 'saveDiscoveryState'(_0x2e6c50){const _0x1a589f={_0x313142:0x339,_0xc3302d:0x333,_0x4cd11b:0x541};await updateStore(_0x497f1e,_0x5c0a3a=>{function _0x3a79d4(_0x28828e,_0x1fb92b,_0x5d944b,_0x723746){return _0x3bdd(_0x723746-0x1fc,_0x1fb92b);}_0x5c0a3a[_0x3a79d4(_0x1a589f._0x313142,_0x1a589f._0xc3302d,_0x1a589f._0x4cd11b,0x43b)]=_0x2e6c50;});},async 'discoveryState'(){return(await readStore(_0x497f1e))['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(_0x49e846,_0x52330f){const _0x1bcc82={_0x5102df:0x589},_0x15a845={_0x386b47:0x57};function _0x457697(_0x592d05,_0x532cdc,_0x5a23ac,_0x5ae234){return _0x55c88d(_0x592d05-0x1c5,_0x592d05- -0x147,_0x5ae234,_0x5ae234-_0x15a845._0x386b47);}const _0x5b5a43=_0x47effe=>_0x47effe[_0x457697(0x235,0x229,0xed,0x32d)](/[^a-zA-Z0-9_]+/g,'_')[_0x457697(0x235,0x31b,0x1ed,0x20d)](/^_+|_+$/g,'');function _0x5b43e7(_0x135810,_0x16efc8,_0xd3b7e0,_0x5676ba){return _0x1e45aa(_0x135810-0x15d,_0x16efc8-0x1f1,_0x135810- -0x402,_0x16efc8);}return _0x457697(0x406,0x406,_0x1bcc82._0x5102df,0x587)+_0x5b5a43(_0x49e846)+'_'+_0x5b5a43(_0x52330f);}function isObject(_0x7cb2e4){const _0x8c029e={_0x8f715:0x10d,_0x1260ee:0x230};function _0x1941e6(_0x2d788a,_0x432b6c,_0x40d35b,_0x3a380a){return _0x1e45aa(_0x2d788a-0x59,_0x432b6c-0x95,_0x40d35b- -0x5eb,_0x2d788a);}return typeof _0x7cb2e4==='object'&&_0x7cb2e4!==null&&!Array[_0x1941e6(0xda,_0x8c029e._0x8f715,_0x8c029e._0x1260ee,0x361)](_0x7cb2e4);}function toSupportedSchema(_0x2cd617){const _0x32ff33={_0x5a68fb:0x548,_0x5b86b3:0x72c,_0x499847:0x80e,_0x4d3d4c:0x6c8,_0x18b625:0x653,_0x4badf9:0x7c3,_0x575621:0x6be,_0x2e1568:0x7e0,_0x99662b:0x504,_0xfcd82:0x761,_0x37ef2b:0x5e1,_0x13a24c:0x838,_0x2a4a9d:0x718,_0x3695f8:0x60e,_0x48a2f7:0x55e,_0x521a85:0x4e0,_0xab32f7:0x626,_0xb73132:0x76c,_0x1287e0:0x7d5,_0x451c13:0x81a,_0x1ac658:0x505,_0x1f9a1f:0x638,_0x105ecf:0x7b6,_0x19f00f:0x8a5,_0xa06525:0x73f},_0x1ac531={_0x39bda0:0x1ca},_0x1baf7e={_0x1c58d9:0x6};if(!isObject(_0x2cd617))return void 0x0;function _0x238149(_0x288f4b,_0xf68dbe,_0x407ccf,_0x3406b7){return _0x55c88d(_0x288f4b-_0x1baf7e._0x1c58d9,_0x288f4b-0x214,_0xf68dbe,_0x3406b7-0x1ba);}if(_0x2cd617['type']==='string')return{'type':_0x238149(0x682,_0x32ff33._0x5a68fb,0x65d,_0x32ff33._0x5b86b3)};if(_0x2cd617[_0x49cdae(0x7ce,0x76c,_0x32ff33._0x499847,_0x32ff33._0x4d3d4c)]===_0x238149(_0x32ff33._0x18b625,_0x32ff33._0x4badf9,0x5f6,0x733)||_0x2cd617[_0x238149(0x7b6,_0x32ff33._0x575621,0x733,_0x32ff33._0x2e1568)]===_0x49cdae(0x44b,_0x32ff33._0x99662b,0x3eb,0x4a4))return{'type':_0x49cdae(_0x32ff33._0xfcd82,0x609,0x4b1,_0x32ff33._0x37ef2b)};function _0x49cdae(_0x3c620e,_0x2c0773,_0xa2f695,_0x40145f){return _0x55c88d(_0x3c620e-0x173,_0x2c0773-_0x1ac531._0x39bda0,_0xa2f695,_0x40145f-0x1ad);}if(_0x2cd617[_0x49cdae(_0x32ff33._0x13a24c,0x76c,_0x32ff33._0x2a4a9d,0x836)]===_0x49cdae(_0x32ff33._0x3695f8,_0x32ff33._0x48a2f7,0x608,_0x32ff33._0x521a85))return{'type':'boolean'};if(_0x2cd617[_0x49cdae(_0x32ff33._0xab32f7,_0x32ff33._0xb73132,_0x32ff33._0x1287e0,_0x32ff33._0x451c13)]===_0x49cdae(0x7a4,0x681,_0x32ff33._0x1ac658,0x7c4))return{'type':'array','items':toSupportedSchema(_0x2cd617[_0x238149(0x79c,0x85e,0x6b4,0x64d)])??{'type':_0x49cdae(0x543,_0x32ff33._0x1f9a1f,0x565,_0x32ff33._0x105ecf)}};if(_0x2cd617[_0x49cdae(0x626,0x76c,_0x32ff33._0x19f00f,_0x32ff33._0xa06525)]==='object')return toNuvinToolSchema(_0x2cd617);return void 0x0;}function toNuvinToolSchema(_0x2d8c9f){const _0x47e4cc={_0x356f53:0x274,_0x123a4f:0x3d2,_0x34675c:0x29,_0x15d651:0x23c,_0x4eb343:0x258,_0x4e2c13:0x138,_0x1b2a39:0x4b3,_0x3c8fac:0x368,_0x4c6e2f:0x1b3,_0x1c34c6:0x2c9,_0x4d0a64:0x47,_0x14270d:0xc5,_0x329c85:0x1b2,_0x4a9f85:0x78},_0x5de077={_0x437f0b:0x166},_0x5e4c14={_0x5ae654:0x64,_0x280413:0x5df};function _0xac3d52(_0x25f7ed,_0x369f57,_0xd39de2,_0x4b7c00){return _0x1e45aa(_0x25f7ed-_0x5e4c14._0x5ae654,_0x369f57-0x8d,_0x25f7ed- -_0x5e4c14._0x280413,_0x4b7c00);}if(!isObject(_0x2d8c9f)||_0x2d8c9f[_0xac3d52(_0x47e4cc._0x356f53,_0x47e4cc._0x123a4f,0x37b,0x3ca)]!=='object')return{'type':_0xac3d52(_0x47e4cc._0x34675c,0xbe,0x81,-0xe1),'properties':{}};const _0x5219ab={},_0x72ad0c=isObject(_0x2d8c9f['properties'])?_0x2d8c9f['properties']:{};for(const [_0xb453e6,_0xe3af2a]of Object['entries'](_0x72ad0c)){const _0x2c502a=toSupportedSchema(_0xe3af2a);if(_0x2c502a)_0x5219ab[_0xb453e6]=_0x2c502a;}const _0x3f205b=Array[_0xac3d52(_0x47e4cc._0x15d651,_0x47e4cc._0x4eb343,_0x47e4cc._0x4e2c13,0x202)](_0x2d8c9f[_0x26e03c(0x3c7,0x441,_0x47e4cc._0x1b2a39,_0x47e4cc._0x3c8fac)])?_0x2d8c9f[_0xac3d52(0x22f,0x359,0xaf,_0x47e4cc._0x4c6e2f)]['filter'](_0x23f820=>typeof _0x23f820===_0x26e03c(0x16c,0x390,0x1be,0x279)):void 0x0;function _0x26e03c(_0x35060f,_0x2713f7,_0x1247ea,_0x1322cb){return _0x1e45aa(_0x35060f-0x1c9,_0x2713f7-_0x5de077._0x437f0b,_0x1322cb- -0x4a6,_0x1247ea);}return _0x3f205b?.[_0xac3d52(0x203,0x200,_0x47e4cc._0x1c34c6,0x2a9)]?{'type':_0x26e03c(_0x47e4cc._0x4d0a64,_0x47e4cc._0x14270d,_0x47e4cc._0x329c85,0x162),'properties':_0x5219ab,'required':_0x3f205b}:{'type':_0xac3d52(0x29,0x3c,-0x3b,_0x47e4cc._0x4a9f85),'properties':_0x5219ab};}function isJsonObject(_0x15717e){const _0x3b7c92={_0x5ec606:0x37,_0x5549cc:0x8a},_0x4eaa16={_0x5dbad2:0x401,_0x567051:0x16c};function _0x57d579(_0x5adaa0,_0x22932b,_0x4f7b43,_0x13d8b1){return _0x55c88d(_0x5adaa0-0x183,_0x13d8b1- -_0x4eaa16._0x5dbad2,_0x5adaa0,_0x13d8b1-_0x4eaa16._0x567051);}return typeof _0x15717e===_0x57d579(0x4d,_0x3b7c92._0x5ec606,-_0x3b7c92._0x5549cc,-0xaa)&&_0x15717e!==null&&!Array['isArray'](_0x15717e);}function formatMcpContent(_0x315906){const _0xda6fe4={_0x280637:0x59,_0x14de52:0x20,_0x46a2f4:0x15,_0x44bcf9:0xcb,_0x21da20:0x724,_0x33f071:0x65d,_0x323f76:0x5cb},_0x4ba3d6={_0x224c80:0x76e},_0x8983ce={_0x45eac8:0x276,_0x5af7a7:0x20f,_0x20074a:0x12d,_0x49a7b9:0x6cb,_0x516783:0x535,_0x548b83:0x5bd,_0x1ae48a:0x5b8,_0x3922ed:0x63b,_0x23a43d:0x57d,_0x32ae0c:0x6b4},_0x528a2d={_0x44b66f:0x149,_0x5b4d96:0xaa,_0x52fc0b:0x60c},_0x86c2de={_0x57ad7c:0x15d,_0x42067f:0x90},_0x59f705=Array['isArray'](_0x315906[_0x2b9a20(0x2c,-0x4d,-0x17d,-0x46)])?_0x315906['content']:[];function _0x5c90a1(_0x2be51e,_0x223a9b,_0x353b81,_0xcb04d3){return _0x55c88d(_0x2be51e-0x5,_0x2be51e-_0x86c2de._0x57ad7c,_0xcb04d3,_0xcb04d3-_0x86c2de._0x42067f);}const _0x372428=_0x59f705[_0x2b9a20(-0x42,_0xda6fe4._0x280637,-0x28,-0x35)](_0x5e8b56=>{const _0x320afb={_0x51ef3a:0x1ec};if(!isObject(_0x5e8b56))return'';function _0xa106b6(_0x48e6ab,_0x57babd,_0x515a03,_0x5d97c5){return _0x2b9a20(_0x57babd,_0x57babd-_0x320afb._0x51ef3a,_0x515a03-0xa2,_0x48e6ab-0x200);}if(_0x5e8b56['type']===_0xa106b6(0x20f,0x28f,_0x8983ce._0x45eac8,0x36f)&&typeof _0x5e8b56[_0xa106b6(_0x8983ce._0x5af7a7,0x1ee,_0x8983ce._0x20074a,0x167)]===_0x1f9619(_0x8983ce._0x49a7b9,_0x8983ce._0x516783,_0x8983ce._0x548b83,0x6a0))return _0x5e8b56[_0x1f9619(0x49f,_0x8983ce._0x1ae48a,0x61b,_0x8983ce._0x3922ed)];function _0x1f9619(_0x38eaa0,_0x390298,_0x5b9b8a,_0x2daa3f){return _0x2b9a20(_0x38eaa0,_0x390298-_0x528a2d._0x44b66f,_0x5b9b8a-_0x528a2d._0x5b4d96,_0x5b9b8a-_0x528a2d._0x52fc0b);}return JSON[_0x1f9619(_0x8983ce._0x23a43d,0x579,0x64f,_0x8983ce._0x32ae0c)](_0x5e8b56);})[_0x2b9a20(0x238,-_0xda6fe4._0x14de52,0x4f,0xf4)](_0x46053a=>_0x46053a[_0x2b9a20(-0xb5,-0x8b,-0x105,0x74)]>0x0)[_0x2b9a20(-0x170,-0x144,-_0xda6fe4._0x46a2f4,-_0xda6fe4._0x44bcf9)]('\x0a');if(_0x372428[_0x5c90a1(0x68e,0x7f4,_0xda6fe4._0x21da20,0x534)]>0x0)return _0x372428;function _0x2b9a20(_0x8a8a6f,_0x1c6c95,_0x234b5d,_0xcdc65f){return _0x1e45aa(_0x8a8a6f-0x11e,_0x1c6c95-0x17c,_0xcdc65f- -_0x4ba3d6._0x224c80,_0x8a8a6f);}return JSON[_0x5c90a1(_0xda6fe4._0x33f071,0x6dd,_0xda6fe4._0x323f76,0x5e8)](_0x315906,null,0x2);}function createMcpTool(_0x32489a){const _0xe93c92={_0x5c96ef:0x4a8,_0x2ce244:0x299,_0x272033:0x23e,_0x466831:0x1d7,_0x1d055f:0x75b,_0x2ecffe:0x656,_0x52fd68:0x5f0,_0x111a81:0x19b,_0x3b71b8:0x208,_0x101a62:0x214,_0x3d1d5b:0x2fa,_0x5af357:0x219,_0x52af5f:0x1ee,_0x500734:0x47e,_0x5c8378:0x4c,_0x147378:0x4b7,_0x17805c:0x414,_0x4f17c8:0x6a7},_0x5ce59f={_0x3f5e08:0x706,_0x52025a:0x626,_0xbb8710:0x5d5,_0x53fb70:0x59b,_0x389a04:0x6d5,_0x2c990a:0x134,_0x5ddae3:0x224,_0x5f5bb4:0xa4,_0x2427de:0x20f,_0x420bab:0x6b7,_0x137c1c:0x623,_0x10fced:0x6bf,_0x4498a6:0x68f,_0x22cf8d:0x742,_0x537ab6:0x622,_0x7f664d:0x192,_0x32f6c2:0xad,_0x1e8560:0xaf,_0x17a564:0x14,_0x53804b:0x742},_0x32d33b={_0x4254c9:0x17c,_0x2e8600:0x180},_0x236936={_0x1e05cd:0x39,_0x1b4517:0x81},_0x7ec929=createMcpToolName(_0x32489a[_0x1a610c(0x52c,0x426,0x492,_0xe93c92._0x5c96ef)],_0x32489a[_0x551d78(_0xe93c92._0x2ce244,0x308,0x29d,_0xe93c92._0x272033)][_0x551d78(_0xe93c92._0x466831,0x27a,0x1a9,0x1ae)]);function _0x1a610c(_0x519c21,_0x140e56,_0xe172af,_0x1f457f){return _0x55c88d(_0x519c21-_0x236936._0x1e05cd,_0x1f457f-_0x236936._0x1b4517,_0x140e56,_0x1f457f-0x163);}function _0x551d78(_0x4b4766,_0x4fe845,_0x16da7b,_0x19aaf2){return _0x55c88d(_0x4b4766-_0x32d33b._0x4254c9,_0x19aaf2- -0x331,_0x4fe845,_0x19aaf2-_0x32d33b._0x2e8600);}return defineTool({'name':_0x7ec929,'description':_0x32489a[_0x1a610c(0x52f,_0xe93c92._0x1d055f,_0xe93c92._0x2ecffe,_0xe93c92._0x52fd68)][_0x551d78(_0xe93c92._0x111a81,_0xe93c92._0x3b71b8,0x24b,_0xe93c92._0x101a62)]??_0x551d78(0x2f7,_0xe93c92._0x3d1d5b,_0xe93c92._0x5af357,_0xe93c92._0x52af5f)+_0x32489a[_0x1a610c(0x480,0x76d,_0xe93c92._0x500734,0x5f0)][_0x551d78(0x268,_0xe93c92._0x5c8378,0x235,0x1ae)]+'\x20from\x20'+_0x32489a['serverName'],'inputSchema':toNuvinToolSchema(_0x32489a['tool'][_0x1a610c(_0xe93c92._0x147378,_0xe93c92._0x17805c,_0xe93c92._0x4f17c8,0x577)]),async *'execute'(_0x52341a){const _0x4a7db6={_0x19a72a:0x1e9},_0x1639b6={_0x21e3d8:0x113,_0x9c4f90:0x18d,_0x5425c1:0x152};function _0x281d57(_0x35576b,_0x1e8528,_0x16727a,_0xdb007d){return _0x1a610c(_0x35576b-_0x1639b6._0x21e3d8,_0x16727a,_0x16727a-_0x1639b6._0x9c4f90,_0x35576b-_0x1639b6._0x5425c1);}function _0x297fd2(_0x230e30,_0x477fd2,_0x329582,_0x293b46){return _0x551d78(_0x230e30-0x31,_0x293b46,_0x329582-_0x4a7db6._0x19a72a,_0x329582- -0x10a);}const _0x3d4ad9=await _0x32489a[_0x281d57(_0x5ce59f._0x3f5e08,0x7ec,_0x5ce59f._0x52025a,_0x5ce59f._0xbb8710)][_0x281d57(_0x5ce59f._0x53fb70,_0x5ce59f._0x389a04,0x41f,0x5ab)]({'name':_0x32489a[_0x297fd2(0x38,0xe9,_0x5ce59f._0x2c990a,0x182)][_0x297fd2(_0x5ce59f._0x5ddae3,0x1ad,_0x5ce59f._0x5f5bb4,_0x5ce59f._0x2427de)],'arguments':isJsonObject(_0x52341a)?_0x52341a:{}});if(_0x3d4ad9[_0x281d57(_0x5ce59f._0x420bab,_0x5ce59f._0x137c1c,_0x5ce59f._0x10fced,0x753)])throw new ToolExecutionError(formatMcpContent(_0x3d4ad9),{'serverName':_0x32489a[_0x281d57(0x5fa,0x622,_0x5ce59f._0x4498a6,0x494)],'toolName':_0x32489a[_0x281d57(_0x5ce59f._0x22cf8d,0x6d4,_0x5ce59f._0x537ab6,0x878)][_0x297fd2(_0x5ce59f._0x7f664d,0xef,0xa4,0x29)]});return yield createToolOutput(formatMcpContent(_0x3d4ad9),{'serverName':_0x32489a[_0x297fd2(_0x5ce59f._0x32f6c2,_0x5ce59f._0x1e8560,-_0x5ce59f._0x17a564,-0x155)],'toolName':_0x32489a[_0x281d57(_0x5ce59f._0x53804b,0x7a5,0x632,0x756)]['name'],'result':_0x3d4ad9}),void 0x0;}});}function resolvePrefix(_0xe19934,_0x300c3a){const _0x232401={_0x4f9cc:0x552,_0x27ef23:0x508},_0xaa37e2={_0x251b66:0x11c,_0x1e8692:0x1ea};function _0xa47a49(_0x545452,_0x4923e3,_0x46b829,_0x12aab3){return _0x55c88d(_0x545452-_0xaa37e2._0x251b66,_0x46b829-_0xaa37e2._0x1e8692,_0x4923e3,_0x12aab3-0x1a7);}return _0x300c3a[_0xa47a49(0x595,0x5e9,_0x232401._0x4f9cc,_0x232401._0x27ef23)]??_0xe19934;}function buildMcpHttpHeaders(_0x1bf58c){const _0x4cc626={_0x55136c:0x2ef,_0x67b180:0x2c4,_0x1d3584:0x283,_0x4cf8c1:0x174,_0x4f4523:0x124,_0x2c5525:0x20d,_0xf4ef89:0x48f,_0x4ee9fb:0x2bc,_0x3d7b67:0x32a,_0x2afb86:0x1fb,_0x19aaa4:0x166,_0xbab31:0xb9,_0x23757a:0x101,_0x975f11:0x8d,_0xe32a47:0x233,_0x2409e0:0x190,_0x52a40b:0x473,_0x3c74d0:0x297},_0x44b4cd={_0xccb679:0x1e7},_0x3b0c92={_0x392e11:0x18c,_0x5af9a7:0x4d7},_0x12360e={..._0x1bf58c[_0x4dbe56(_0x4cc626._0x55136c,_0x4cc626._0x67b180,0x2b4,_0x4cc626._0x1d3584)]??{}};_0x1bf58c[_0x4dbe56(0x211,_0x4cc626._0x4cf8c1,_0x4cc626._0x4f4523,_0x4cc626._0x2c5525)]?.[_0x4dbe56(0x26a,0x37c,0x2c0,_0x4cc626._0xf4ef89)]===_0x4dbe56(_0x4cc626._0x4ee9fb,_0x4cc626._0x3d7b67,0x205,_0x4cc626._0x2afb86)&&_0x1bf58c[_0xa58629(_0x4cc626._0x19aaa4,-0x9,0x2cb,0x225)]['token']&&_0x12360e[_0x4dbe56(-0x80,_0x4cc626._0xbab31,_0x4cc626._0x23757a,-0xad)]===void 0x0&&(_0x12360e[_0x4dbe56(0x188,_0x4cc626._0xbab31,-_0x4cc626._0x975f11,_0x4cc626._0xe32a47)]=_0xa58629(_0x4cc626._0x2409e0,0x252,0x300,0x22f)+_0x1bf58c['auth']['token']);function _0x4dbe56(_0x5d61ae,_0x4b7469,_0x2eae24,_0x1cda3c){return _0x1e45aa(_0x5d61ae-0xf0,_0x4b7469-_0x3b0c92._0x392e11,_0x4b7469- -_0x3b0c92._0x5af9a7,_0x5d61ae);}function _0xa58629(_0x5c8fa0,_0x30a4f6,_0x2e1f37,_0x421e3b){return _0x55c88d(_0x5c8fa0-0x62,_0x5c8fa0- -0x234,_0x30a4f6,_0x421e3b-_0x44b4cd._0xccb679);}return Object['keys'](_0x12360e)[_0x4dbe56(_0x4cc626._0x52a40b,0x30b,_0x4cc626._0x3c74d0,0x3af)]>0x0?_0x12360e:void 0x0;}function getErrorMessage(_0xc1807c){return _0xc1807c instanceof Error?_0xc1807c['message']:String(_0xc1807c);}function isUnauthorizedError(_0x2b3ec5){const _0x20be85={_0xc34a26:0x988,_0x395f26:0x831,_0x4235b1:0x4b2,_0x1c5a31:0x396,_0x562baa:0x2f4},_0x5dd351={_0x2e49e4:0x50,_0x21fc43:0x149},_0x1ac92d={_0x27cf6c:0x184,_0x408fb7:0x2e4,_0x384713:0x1b6};function _0x4ebd58(_0x45626e,_0x461a4b,_0x4b70cc,_0x45d492){return _0x55c88d(_0x45626e-_0x1ac92d._0x27cf6c,_0x4b70cc-_0x1ac92d._0x408fb7,_0x45626e,_0x45d492-_0x1ac92d._0x384713);}function _0x410fd5(_0x57cc03,_0x9018ec,_0x4bfb0b,_0x2361a5){return _0x55c88d(_0x57cc03-_0x5dd351._0x2e49e4,_0x2361a5- -_0x5dd351._0x21fc43,_0x4bfb0b,_0x2361a5-0x6f);}return _0x2b3ec5 instanceof Error&&_0x2b3ec5[_0x4ebd58(_0x20be85._0xc34a26,_0x20be85._0x395f26,0x898,0x9ff)][_0x410fd5(0x211,_0x20be85._0x4235b1,0x499,_0x20be85._0x1c5a31)]===_0x410fd5(0x37f,_0x20be85._0x562baa,0x4e4,0x369);}async function connectMcpServer(_0x2433f,_0x34ec2,_0x389551){const _0x131246={_0x104819:0x51e,_0x3acf59:0x5c2,_0x1735a4:0x485,_0x5b49ae:0x31c,_0x143eff:0x471,_0x43decb:0x4ba,_0xd4ecea:0x479,_0x599244:0x3b1,_0x3221f3:0x44a,_0x20f871:0x46e,_0x5c1c1d:0x670,_0x65d137:0x59b,_0x8cef44:0x345,_0x22ca31:0x13a,_0x403ee5:0x4cf,_0x134424:0x3cf,_0x5e0cea:0x62b,_0x5db5d9:0x35c,_0x37c010:0x37a,_0x37d532:0x293,_0x1e2715:0x252,_0x2b15f0:0x3ef,_0x37e9b9:0x4ad,_0x5ad1a5:0x3fc,_0x14d4d9:0x4ab,_0x9f814b:0x539,_0x80362e:0x4df,_0x58d2cd:0x28e,_0x1a338e:0x383,_0x298882:0x332,_0x413786:0x20b,_0x339a76:0x1c2,_0x364c9e:0x44a,_0x552ff0:0x42e,_0x5744f2:0x4f5,_0x32fc18:0x3b3,_0x31af10:0x4a8,_0xc21a6d:0x55c},_0x38fd9a={_0x39b666:0x386,_0x5dda0b:0x416,_0x57e7e5:0x4d6,_0x1f8aae:0x349},_0x2a74bc={_0xf8d2cf:0x174,_0x1d2552:0x2,_0x232e09:0x100},_0x1afb92={_0x554fff:0x33b},_0x429efe={_0xca94ad:0x3e1,_0x32db57:0x24a,_0x20dada:0xe9,_0x48609b:0x204,_0x4b2134:0x232,_0x3cfe85:0x303,_0x2e4398:0x2a2,_0x3a69fb:0x2db,_0x1d10ec:0x231,_0x101405:0x15,_0x3da1c0:0x246},_0x33b4ca={_0x52119c:0x172,_0x34731f:0x1c5},_0x5de771=new Client({'name':_0x261c81(_0x131246._0x104819,_0x131246._0x3acf59,_0x131246._0x1735a4,_0x131246._0x5b49ae),'version':'0.0.0'});function _0x19ad94(_0x187b8d,_0x4dbe82,_0x2ef1d5,_0x2acc0a){return _0x1e45aa(_0x187b8d-0x180,_0x4dbe82-0x184,_0x4dbe82- -0x384,_0x2ef1d5);}_0x5de771[_0x261c81(_0x131246._0x143eff,_0x131246._0x43decb,0x3c9,0x2fd)]=_0x23d7c3=>{const _0x2a2a64={_0x4cd543:0xed,_0x11d7e7:0x2d8,_0x5587e2:0x137};function _0x21b3d4(_0x51290a,_0x449eb8,_0x275677,_0x521460){return _0x19ad94(_0x51290a-_0x2a2a64._0x4cd543,_0x521460-_0x2a2a64._0x11d7e7,_0x51290a,_0x521460-_0x2a2a64._0x5587e2);}function _0x22015a(_0x17709b,_0x150e6e,_0x2f0d6d,_0x521c85){return _0x19ad94(_0x17709b-_0x33b4ca._0x52119c,_0x17709b- -0x161,_0x150e6e,_0x521c85-_0x33b4ca._0x34731f);}console[_0x22015a(0x2c3,0x1e5,0x229,_0x429efe._0xca94ad)](_0x22015a(_0x429efe._0x32db57,_0x429efe._0x20dada,_0x429efe._0x48609b,_0x429efe._0x4b2134)+_0x2433f+_0x22015a(0x2d6,_0x429efe._0x3cfe85,_0x429efe._0x2e4398,_0x429efe._0x3a69fb),_0x23d7c3[_0x22015a(0xc6,_0x429efe._0x1d10ec,_0x429efe._0x101405,_0x429efe._0x3da1c0)]);};if(_0x34ec2['transport']===_0x261c81(0x578,0x492,_0x131246._0xd4ecea,0x50e)||_0x34ec2[_0x19ad94(_0x131246._0x599244,_0x131246._0x3221f3,0x539,_0x131246._0x20f871)]){if(!_0x34ec2[_0x261c81(0x6d5,_0x131246._0x5c1c1d,0x57f,_0x131246._0x65d137)])throw new Error('MCP\x20server\x20'+_0x2433f+_0x19ad94(0x1ac,0x2ba,_0x131246._0x8cef44,_0x131246._0x22ca31));if(_0x34ec2['auth']?.[_0x19ad94(0x515,_0x131246._0x403ee5,0x5a3,0x63f)]==='oauth'&&!_0x389551?.[_0x261c81(0x29e,_0x131246._0x134424,0x37a,0x2e7)])throw new Error(_0x19ad94(0x307,0x404,0x536,0x556)+_0x2433f+_0x261c81(0x3e8,_0x131246._0x5e0cea,0x529,0x3cd));const _0x3c766e=buildMcpHttpHeaders(_0x34ec2),_0x14f868=_0x34ec2[_0x261c81(_0x131246._0x5db5d9,0x40f,0x3fc,0x56d)]?.[_0x19ad94(0x616,_0x131246._0x403ee5,0x634,0x50d)]===_0x261c81(0x3e3,0x4bd,_0x131246._0x37c010,_0x131246._0x37d532)&&_0x389551?.[_0x261c81(0x4b3,0x2cb,_0x131246._0x37c010,0x43e)]?createMcpOAuthProvider({'serverName':_0x2433f,'callbackUrl':_0x389551[_0x261c81(0x4ff,0x2aa,_0x131246._0x37c010,0x371)][_0x19ad94(_0x131246._0x1e2715,0x337,0x1b3,_0x131246._0x2b15f0)],'storageDir':_0x389551['oauth'][_0x19ad94(_0x131246._0x37e9b9,0x48f,0x51a,0x39f)],'config':_0x34ec2[_0x261c81(0x55a,0x3e9,_0x131246._0x5ad1a5,0x3b4)],'onRedirect':_0x123ac=>_0x389551[_0x19ad94(0x3c3,0x245,0x35f,0x1cc)]?.[_0x261c81(0x38f,0x544,0x49a,0x468)](_0x2433f,_0x123ac)}):void 0x0,_0x2cfd2c=new StreamableHTTPClientTransport(new URL(_0x34ec2['url']),{'authProvider':_0x14f868,'requestInit':_0x3c766e?{'headers':_0x3c766e}:void 0x0});await _0x5de771[_0x19ad94(0x531,0x42f,_0x131246._0x14d4d9,0x3a2)](_0x2cfd2c);}else{if(!_0x34ec2['command'])throw new Error(_0x261c81(0x6b6,0x3e1,_0x131246._0x9f814b,_0x131246._0x80362e)+_0x2433f+_0x261c81(0x304,_0x131246._0x58d2cd,_0x131246._0x1a338e,0x494));const _0x3dc911=new StdioClientTransport({'command':_0x34ec2[_0x19ad94(_0x131246._0x298882,_0x131246._0x413786,_0x131246._0x339a76,0x2d5)],'args':_0x34ec2[_0x261c81(_0x131246._0x364c9e,_0x131246._0x552ff0,_0x131246._0x5744f2,0x5e7)]??[],'env':_0x34ec2[_0x261c81(_0x131246._0x32fc18,_0x131246._0x31af10,0x43b,0x446)],'stderr':'pipe'});await _0x5de771[_0x19ad94(_0x131246._0xc21a6d,0x42f,0x591,0x4f9)](_0x3dc911);}function _0x261c81(_0x3cc150,_0x48bae4,_0x426e46,_0x53df8d){return _0x1e45aa(_0x3cc150-0xa7,_0x48bae4-0x17,_0x426e46- -0x24f,_0x53df8d);}return{async 'listTools'(){const _0xd61346={_0x22823f:0x1d1,_0x214e7:0x197};function _0x5791b8(_0x460803,_0x492639,_0x5def08,_0x40e83f){return _0x19ad94(_0x460803-_0xd61346._0x22823f,_0x492639-_0xd61346._0x214e7,_0x460803,_0x40e83f-0x80);}return await _0x5de771[_0x5791b8(0x498,0x463,_0x1afb92._0x554fff,0x402)]();},async 'callTool'(_0x30350b){const _0x51ab77={_0x38189d:0xe3,_0x58ae67:0x10d,_0x2353c4:0x17a};function _0x12c0bc(_0x41c209,_0x15b816,_0x458eed,_0x55efd9){return _0x261c81(_0x41c209-_0x51ab77._0x38189d,_0x15b816-_0x51ab77._0x58ae67,_0x15b816- -_0x51ab77._0x2353c4,_0x458eed);}function _0x284dfd(_0x23bd9f,_0x2d55e2,_0x345afe,_0x4eba97){return _0x261c81(_0x23bd9f-_0x2a74bc._0xf8d2cf,_0x2d55e2-_0x2a74bc._0x1d2552,_0x345afe-_0x2a74bc._0x232e09,_0x4eba97);}return await _0x5de771[_0x284dfd(0x574,_0x38fd9a._0x39b666,_0x38fd9a._0x5dda0b,0x42a)]({'method':_0x12c0bc(_0x38fd9a._0x57e7e5,0x3a7,0x2b4,_0x38fd9a._0x1f8aae),'params':_0x30350b},CallToolResultSchema);},async 'close'(){await _0x5de771['close']();}};}async function createMcpToolsFromServers(_0x30bb24){const _0x5aa2db={_0xe4867a:0x426,_0x56ef11:0x430,_0x52497d:0x4c4,_0x3757f2:0x241,_0x422742:0x310,_0x2429ba:0x39b,_0x53ce05:0x1d2,_0x5c865f:0x348,_0x36c840:0x32a,_0x2be381:0x323,_0x311ae6:0x4a3,_0x551bcb:0x68d,_0x2a8052:0x71f,_0x2f0853:0x604,_0x4be2af:0x72b,_0x3daf80:0x5bc,_0xfd3c28:0x4d5,_0x594624:0x568,_0xf80f2b:0x3f2,_0x52e9a1:0x2ab,_0x3bdc90:0x675,_0x393937:0x5e7,_0x426f25:0x3f8,_0xc3a6fb:0x5a3,_0x2a6cff:0x543,_0x562c69:0x315,_0xf35c25:0x3d2,_0x242542:0x4bb,_0x296501:0x5c5,_0x5cc983:0x543,_0x2ccb63:0x54e,_0x40d61b:0x667,_0x4b708a:0x69e,_0x3e0888:0x5a9,_0x3303c9:0x4a0,_0x42b9b6:0x3eb,_0x3e7b02:0x41a,_0x5aa5f9:0x500,_0x1cd72b:0x3f2,_0x21bfcd:0x1d9,_0x59f620:0x315,_0x5e4302:0x295,_0x3c547a:0x438,_0x48c8a8:0x561,_0x19df24:0x31b,_0x281cb4:0x41b},_0x4fa471={_0x474d21:0x740,_0x4a2a77:0x662,_0x29bf6a:0x769},_0x3813ea={_0xe1713f:0x1d1,_0x357091:0x4d},_0x1c969f={_0x2ebbb2:0x1cd},_0x4b290e={_0x40ef09:0x24d},_0x3f159c={_0x8d9b5b:0xb8,_0x55e220:0xdc,_0x1c00e4:0x42};function _0x1c59da(_0x222db7,_0x1ce227,_0x1d8fb1,_0x3a7e1e){return _0x55c88d(_0x222db7-_0x3f159c._0x8d9b5b,_0x1ce227- -_0x3f159c._0x55e220,_0x222db7,_0x3a7e1e-_0x3f159c._0x1c00e4);}const _0x26e641=_0x30bb24[_0x1c59da(0x52d,_0x5aa2db._0xe4867a,_0x5aa2db._0x56ef11,_0x5aa2db._0x52497d)]??connectMcpServer,_0x90a72d=[],_0x3f05bd={},_0x32ff94={},_0xaebcab=[];for(const [_0x3f0749,_0x1e4857]of Object['entries'](_0x30bb24[_0x1c59da(_0x5aa2db._0x3757f2,_0x5aa2db._0x422742,_0x5aa2db._0x2429ba,_0x5aa2db._0x53ce05)]??{})){if(_0x1e4857[_0x43f3d3(_0x5aa2db._0x5c865f,0x48b,_0x5aa2db._0x36c840,_0x5aa2db._0x2be381)]===![]){_0x3f05bd[_0x3f0749]={'status':_0x43f3d3(_0x5aa2db._0x311ae6,_0x5aa2db._0x551bcb,_0x5aa2db._0x2a8052,_0x5aa2db._0x2f0853)};continue;}try{const _0x394cbc=await _0x26e641(_0x3f0749,_0x1e4857,_0x30bb24[_0x43f3d3(0x720,0x5d9,_0x5aa2db._0x4be2af,0x5a7)]);_0x90a72d[_0x43f3d3(_0x5aa2db._0x3daf80,_0x5aa2db._0xfd3c28,_0x5aa2db._0x594624,0x455)](_0x394cbc);const _0x5a18e3=await _0x394cbc[_0x43f3d3(_0x5aa2db._0xf80f2b,0x2f0,_0x5aa2db._0x52e9a1,0x403)]();let _0x1ec24e=0x0;const _0x36e4c8=[];for(const _0x3385a0 of _0x5a18e3[_0x43f3d3(_0x5aa2db._0x3bdc90,0x5db,_0x5aa2db._0x393937,0x61b)]){const _0x2f54b4=_0x30bb24[_0x43f3d3(_0x5aa2db._0x426f25,_0x5aa2db._0xc3a6fb,0x5b5,0x45e)]?.[_0x3f0749]?.[_0x3385a0[_0x43f3d3(0x50d,0x65d,0x691,_0x5aa2db._0x2a6cff)]];_0x36e4c8[_0x1c59da(0x1db,_0x5aa2db._0x562c69,_0x5aa2db._0xf35c25,0x263)]({'name':_0x3385a0[_0x43f3d3(_0x5aa2db._0x242542,0x571,_0x5aa2db._0x296501,_0x5aa2db._0x5cc983)],..._0x3385a0[_0x43f3d3(_0x5aa2db._0x2ccb63,_0x5aa2db._0x40d61b,_0x5aa2db._0x4b708a,_0x5aa2db._0x3e0888)]!==void 0x0?{'description':_0x3385a0['description']}:{},..._0x3385a0[_0x43f3d3(0x497,_0x5aa2db._0x3303c9,0x4e3,0x55a)]!==void 0x0?{'inputSchema':_0x3385a0[_0x1c59da(_0x5aa2db._0x42b9b6,_0x5aa2db._0x3e7b02,_0x5aa2db._0x5aa5f9,_0x5aa2db._0x1cd72b)]}:{}});if(_0x2f54b4===![])continue;_0x1ec24e+=0x1,_0xaebcab[_0x1c59da(_0x5aa2db._0x21bfcd,_0x5aa2db._0x59f620,0x23f,_0x5aa2db._0x5e4302)](createMcpTool({'serverName':resolvePrefix(_0x3f0749,_0x1e4857),'tool':_0x3385a0,'client':_0x394cbc}));}_0x32ff94[_0x3f0749]=_0x36e4c8,_0x3f05bd[_0x3f0749]={'status':'connected','toolCount':_0x1ec24e};}catch(_0x4f2274){_0x3f05bd[_0x3f0749]=isUnauthorizedError(_0x4f2274)?{'status':_0x1c59da(0x418,0x42a,_0x5aa2db._0x3c547a,_0x5aa2db._0x48c8a8),'message':getErrorMessage(_0x4f2274)}:{'status':_0x1c59da(_0x5aa2db._0x19df24,_0x5aa2db._0x281cb4,0x2d6,0x353),'message':getErrorMessage(_0x4f2274)};}}function _0x43f3d3(_0x47e3d8,_0x20fcc6,_0x551355,_0x45f07c){return _0x1e45aa(_0x47e3d8-0x148,_0x20fcc6-0xc5,_0x45f07c- -_0x4b290e._0x40ef09,_0x47e3d8);}return{'tools':_0xaebcab,'servers':_0x3f05bd,'serverTools':_0x32ff94,async 'close'(){function _0x4f111c(_0x198337,_0x572bb2,_0x1b64b3,_0xb3f38b){return _0x1c59da(_0xb3f38b,_0x572bb2-0x6c,_0x1b64b3-0x19e,_0xb3f38b-_0x1c969f._0x2ebbb2);}function _0x4d49da(_0x1f7195,_0x477314,_0x158b1f,_0x475a58){return _0x1c59da(_0x1f7195,_0x477314-0x3bd,_0x158b1f-_0x3813ea._0xe1713f,_0x475a58-_0x3813ea._0x357091);}await Promise[_0x4d49da(0x68c,_0x4fa471._0x474d21,0x78f,_0x4fa471._0x4a2a77)](_0x90a72d[_0x4d49da(0x79d,_0x4fa471._0x29bf6a,0x5fc,0x787)](_0x3df4ee=>_0x3df4ee[_0x4d49da(0x7ca,0x84c,0x72b,0x6e4)]()));}};}function getCommand(_0x327d07){const _0x3d4eca={_0xf48436:0x5ed,_0x536639:0x555,_0x33de31:0x4e6,_0xef812d:0x5b3,_0xf94e41:0x439,_0x3014b4:0x571,_0x46ce0a:0x5a7,_0x47846f:0x543,_0x5dcf4c:0x3a1,_0x37cce1:0x44c,_0x520c0e:0x574,_0x17a616:0x34d,_0xeacb62:0x2f8},_0x149d94={_0x2e2fb7:0x7,_0x26e34c:0x98};function _0x5be97b(_0x2ae263,_0x5d5979,_0x53f4b6,_0x1d07ea){return _0x55c88d(_0x2ae263-0x6b,_0x1d07ea-_0x149d94._0x2e2fb7,_0x5d5979,_0x1d07ea-_0x149d94._0x26e34c);}function _0x56d42f(_0x347921,_0x21d16f,_0x319fe6,_0x3f8769){return _0x55c88d(_0x347921-0xfc,_0x21d16f-0x1fe,_0x319fe6,_0x3f8769-0x8);}if(_0x327d07&&typeof _0x327d07===_0x56d42f(_0x3d4eca._0xf48436,_0x3d4eca._0x536639,0x638,_0x3d4eca._0x33de31)&&!Array[_0x5be97b(0x576,_0x3d4eca._0xef812d,_0x3d4eca._0xf94e41,_0x3d4eca._0x3014b4)](_0x327d07)&&typeof _0x327d07[_0x56d42f(_0x3d4eca._0x46ce0a,0x4dc,_0x3d4eca._0x47846f,_0x3d4eca._0x5dcf4c)]===_0x5be97b(_0x3d4eca._0x37cce1,_0x3d4eca._0x520c0e,_0x3d4eca._0x17a616,0x475))return _0x327d07['command'];return _0x5be97b(_0x3d4eca._0xeacb62,0x4af,0x3b8,0x377);}var MOCK_WORKSPACE_LISTING=[_0x1e45aa(0x5dc,0x615,0x723,0x898),_0x55c88d(0x559,0x559,0x591,0x6db),_0x55c88d(0x47b,0x39b,0x2c6,0x2be),_0x1e45aa(0x6fb,0x8e2,0x7ed,0x95a),_0x55c88d(0x348,0x2f0,0x284,0x2d6),_0x1e45aa(0x7f3,0x770,0x749,0x6b6),_0x55c88d(0x2e5,0x2b6,0x328,0x1a7),_0x55c88d(0x253,0x378,0x203,0x34f),_0x1e45aa(0x86a,0x751,0x845,0x7f1),_0x1e45aa(0x5ea,0x475,0x5c4,0x5dc),_0x1e45aa(0x95f,0x78f,0x827,0x8a6),'src/agent/turn-engine.ts',_0x55c88d(0x50c,0x47d,0x44b,0x530),'src/agent/agent.test.ts',_0x1e45aa(0x72c,0x643,0x738,0x8b8),_0x55c88d(0x4ea,0x52f,0x3ed,0x3bb),'src/agent/turn-engine.test.ts'][_0x55c88d(0x387,0x3f2,0x33f,0x2ca)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':_0x55c88d(0x4e6,0x4fd,0x477,0x474),'input_schema':{'type':_0x1e45aa(0x6ff,0x576,0x608,0x596),'properties':{'command':{'type':_0x1e45aa(0x79a,0x762,0x71f,0x806)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x29d68a){return{'output':_0x29d68a,'structured':{'value':_0x29d68a}};}function createUnknownToolResult(_0x22e105){const _0x1c3183={_0x1b6788:0xf1,_0x55a675:0x17d,_0x40c82a:0x439,_0x34f267:0x3cd,_0xcf06d9:0x28c,_0x303343:0x363,_0x384937:0x4d5},_0x5f43d9={_0xcf8889:0x192,_0x4ef917:0x22};function _0xb00827(_0x48046d,_0x3b1c8b,_0x14c373,_0x252701){return _0x55c88d(_0x48046d-0x8b,_0x3b1c8b- -0x3ee,_0x252701,_0x252701-0x170);}function _0x45908f(_0x3c067b,_0x387613,_0x3135c5,_0x3961bf){return _0x55c88d(_0x3c067b-_0x5f43d9._0xcf8889,_0x3135c5- -_0x5f43d9._0x4ef917,_0x387613,_0x3961bf-0x1d);}return{'callId':_0x22e105['id'],'toolName':_0x22e105[_0xb00827(0x192,_0x1c3183._0x1b6788,_0x1c3183._0x55a675,0xfb)],'status':_0x45908f(_0x1c3183._0x40c82a,0x50f,0x4d5,0x4b9),'output':_0x45908f(_0x1c3183._0x34f267,0x34e,0x316,_0x1c3183._0xcf06d9)+_0x22e105[_0x45908f(_0x1c3183._0x303343,_0x1c3183._0x384937,0x4bd,0x3d8)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0xbd1fe9,_0x3cbd03){const _0x2aa76f={_0x12e6a2:0x207,_0x264c4d:0x1c9,_0x2a7932:0x28f},_0x5e67e8={_0xc27600:0x338};function _0x150b67(_0x368d79,_0x59c4ae,_0x1312fe,_0x45b25f){return _0x55c88d(_0x368d79-0x93,_0x1312fe- -_0x5e67e8._0xc27600,_0x45b25f,_0x45b25f-0xa3);}return{'callId':_0xbd1fe9['id'],'toolName':_0xbd1fe9['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0xbd1fe9[_0x150b67(0x1d5,_0x2aa76f._0x12e6a2,_0x2aa76f._0x264c4d,_0x2aa76f._0x2a7932)]),'exitCode':0x0},'chunks':[_0x3cbd03],'meta':createMeta()};}function createMockToolRuntime(){const _0x204a9a={_0x20feeb:0x3b1,_0x35b4f8:0x2a8,_0x43ba2a:0x74a,_0x2f8cd5:0x6d5},_0x4fbb0a=async(_0x1269e5,_0x53e7fd)=>{if(_0x1269e5['name']!=='Bash')return createUnknownToolResult(_0x1269e5);const _0x25880f=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x1269e5,_0x25880f);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x2148df,_0x158c2f){const _0x4bba5b={_0xef019:0xf};function _0x1e9b7d(_0x3d17a4,_0x350ad5,_0x294c42,_0x33cb50){return _0x3bdd(_0x33cb50-0x335,_0x294c42);}function _0x4a133c(_0x49494b,_0x1b7d3b,_0x17d9e1,_0x485f34){return _0x3bdd(_0x49494b- -_0x4bba5b._0xef019,_0x17d9e1);}return await Promise[_0x4a133c(0x368,_0x204a9a._0x20feeb,0x299,_0x204a9a._0x35b4f8)](_0x2148df[_0x1e9b7d(_0x204a9a._0x43ba2a,0x757,0x571,_0x204a9a._0x2f8cd5)](async _0x5be1af=>{return await _0x4fbb0a(_0x5be1af,_0x158c2f);}));},async 'execute'(_0x4a8015,_0x2aa516){return await _0x4fbb0a(_0x4a8015,_0x2aa516);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x4c269d={_0x3c9023:0x425};delegatedRunCounter+=0x1;function _0x370d42(_0x26861d,_0x1c9283,_0x356752,_0x259966){return _0x1e45aa(_0x26861d-0x1b2,_0x1c9283-0x11e,_0x1c9283- -0x319,_0x26861d);}return _0x370d42(0x598,_0x4c269d._0x3c9023,0x44a,0x3cc)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x3d3e84,_0x14dbad){const _0x395b68={_0x5bab67:0x365},_0x551fb0={_0x56d1bb:0x93,_0x5c2fbf:0x1a3};function _0x2a7f30(_0x210969,_0x6a6ce0,_0x1b3928,_0x302355){return _0x55c88d(_0x210969-_0x551fb0._0x56d1bb,_0x302355- -_0x551fb0._0x5c2fbf,_0x6a6ce0,_0x302355-0x1f);}return typeof _0x3d3e84===_0x2a7f30(0x42a,0x1fb,0x49c,_0x395b68._0x5bab67)?await _0x3d3e84(_0x14dbad):_0x3d3e84;}function getDelegatedAgentDefinition(_0x3b636d,_0x27173c){const _0xd12b5e={_0xe456e9:0x2cb,_0x2c030e:0x1ba},_0x318967={_0x13d24f:0x23c};function _0x433916(_0x6ae5b,_0x1252b0,_0x2e4b19,_0x5d6b47){return _0x55c88d(_0x6ae5b-0x15b,_0x6ae5b- -_0x318967._0x13d24f,_0x1252b0,_0x5d6b47-0xfb);}return _0x3b636d[_0x433916(_0xd12b5e._0xe456e9,0x32c,_0xd12b5e._0x2c030e,0x329)]?.[_0x27173c];}function createRunSummary(_0x4003fb){const _0x2ca636={_0x533d41:0x7bb,_0x1706d3:0x64d,_0xcff7c8:0x7c8,_0x37ccf2:0x664,_0x4dff64:0x82c,_0x423c87:0x728,_0xce6f49:0x56b,_0x4d67a2:0x78b,_0x564eba:0x85d,_0x31ba75:0x67c,_0x2b74dd:0x5bb,_0x5e9dd4:0x802,_0x3a4db3:0x564,_0x50abf6:0x489,_0xd83855:0x449,_0x4e82b1:0x470,_0x3d2487:0x47b,_0x5c494c:0x3d8,_0x39d9f0:0x420,_0x232ee9:0x5a6,_0x49945b:0x683},_0x4018a2={_0x2e2f98:0x1ea},_0x173ea5={_0x1d6403:0x196};function _0x5de14c(_0x573d30,_0x1cc85b,_0x3effba,_0x58d45c){return _0x55c88d(_0x573d30-0x3a,_0x573d30-_0x173ea5._0x1d6403,_0x3effba,_0x58d45c-0x18a);}function _0x2f435c(_0x43f187,_0x5e62f3,_0x32ba1d,_0x3d2255){return _0x55c88d(_0x43f187-0xa0,_0x3d2255-0x225,_0x32ba1d,_0x3d2255-_0x4018a2._0x2e2f98);}return{'runId':_0x4003fb[_0x2f435c(0x6c4,_0x2ca636._0x533d41,_0x2ca636._0x1706d3,_0x2ca636._0xcff7c8)],'agentId':_0x4003fb[_0x5de14c(0x6dd,_0x2ca636._0x37ccf2,_0x2ca636._0x4dff64,_0x2ca636._0x423c87)],'sessionId':_0x4003fb[_0x2f435c(0x656,0x6a0,_0x2ca636._0xce6f49,0x536)],'status':_0x4003fb['status'],'parentSessionId':_0x4003fb[_0x2f435c(_0x2ca636._0x4d67a2,_0x2ca636._0x564eba,0x871,0x7b8)],..._0x4003fb[_0x5de14c(_0x2ca636._0x31ba75,0x5be,_0x2ca636._0x2b74dd,_0x2ca636._0x5e9dd4)]!==void 0x0?{'originToolCallId':_0x4003fb['originToolCallId']}:{},..._0x4003fb[_0x5de14c(0x449,0x4af,_0x2ca636._0x3a4db3,_0x2ca636._0x50abf6)]!==void 0x0?{'errorMessage':_0x4003fb[_0x5de14c(_0x2ca636._0xd83855,_0x2ca636._0x4e82b1,_0x2ca636._0x3d2487,_0x2ca636._0x5c494c)]}:{},..._0x4003fb['result']?.[_0x2f435c(0x7a2,0x714,0x8c6,0x7c3)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x4003fb[_0x5de14c(0x598,_0x2ca636._0x39d9f0,_0x2ca636._0x232ee9,_0x2ca636._0x49945b)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x16f6fd,_0x104e55){const _0x3d24c4={_0x33d891:0x92,_0x26c6d9:0x5a4,_0x81f875:0x58b,_0x56dc91:0x6b9},_0x2a7235={_0x24f265:0x6a7},_0x4fa6b7={_0x32064e:0x99},_0x2c22aa=createRunSummary(_0x16f6fd);function _0x30c829(_0x1e335d,_0x2dbbbf,_0x53562e,_0xd5592d){return _0x55c88d(_0x1e335d-_0x4fa6b7._0x32064e,_0x53562e-0x11d,_0x1e335d,_0xd5592d-0xe9);}const _0x78cfae=_0x2c22aa[_0x55947c(0x13c,_0x3d24c4._0x33d891,-0x24,0x86)];function _0x55947c(_0x49126c,_0x51715e,_0x41d395,_0x1be708){return _0x1e45aa(_0x49126c-0x140,_0x51715e-0xa6,_0x1be708- -_0x2a7235._0x24f265,_0x49126c);}return createToolOutput(typeof _0x78cfae===_0x30c829(_0x3d24c4._0x26c6d9,0x659,_0x3d24c4._0x81f875,_0x3d24c4._0x56dc91)&&_0x78cfae['length']>0x0?_0x78cfae:_0x104e55,_0x2c22aa);}function getRunTerminalErrorMessage(_0x1ccdd2){const _0x201c52={_0x396eb3:0x381,_0x1a86a9:0x1eb,_0x425298:0x3d7,_0x14f9a7:0x7b9,_0x4a0bc8:0x6c3,_0x2ba556:0x85b,_0x55059a:0x4f3},_0x571464={_0x50d902:0x4f};function _0x3c9d1e(_0x5dfd27,_0xc86020,_0x66820b,_0x3f1d23){return _0x1e45aa(_0x5dfd27-_0x571464._0x50d902,_0xc86020-0x1b0,_0x5dfd27- -0xa5,_0x3f1d23);}const _0x393e50=_0x1ccdd2?.[_0x418d1c(_0x201c52._0x396eb3,_0x201c52._0x1a86a9,0x34e,_0x201c52._0x425298)]['toolResults']['at'](-0x1);function _0x418d1c(_0x5e3a95,_0x19fdbe,_0x288c15,_0x826fd3){return _0x55c88d(_0x5e3a95-0x73,_0x288c15- -0x3e,_0x19fdbe,_0x826fd3-0x1ab);}if(_0x393e50?.[_0x3c9d1e(_0x201c52._0x14f9a7,_0x201c52._0x4a0bc8,_0x201c52._0x2ba556,0x76d)]==='error'&&_0x393e50['output']['trim']()['length']>0x0)return _0x393e50[_0x3c9d1e(0x56a,_0x201c52._0x55059a,0x525,0x41e)];return void 0x0;}function formatAbortedRunMessage(_0x12e3bb,_0x52f19b){const _0x378226={_0x20c48b:0x8c,_0x1a4e5f:0x2a4,_0x372c75:0x400,_0xdeac3b:0x401,_0x41c5b3:0x12d,_0x45b88b:0x247,_0xd54dd4:0x250},_0x5eb796={_0x406415:0x1f2,_0x3c90b7:0x4fd},_0x274416={_0x2f9066:0x14c,_0x1aa898:0x1cb};function _0xfe2535(_0x3000c2,_0x5f4868,_0x717bb5,_0xa87ddc){return _0x55c88d(_0x3000c2-_0x274416._0x2f9066,_0x3000c2- -_0x274416._0x1aa898,_0x5f4868,_0xa87ddc-0xca);}const _0x5c8ede=_0xfe2535(0x20f,_0x378226._0x20c48b,0x13b,0x35b)+_0x12e3bb+'\x20was\x20aborted.';if(!_0x52f19b||_0x52f19b[_0x1ad6ac(_0x378226._0x1a4e5f,0x268,_0x378226._0x372c75,_0x378226._0xdeac3b)]()['length']===0x0||_0x52f19b===_0x5c8ede)return _0x5c8ede;function _0x1ad6ac(_0x657281,_0x3e8d12,_0x2c49f6,_0x4ef6aa){return _0x1e45aa(_0x657281-0xde,_0x3e8d12-_0x5eb796._0x406415,_0x657281- -_0x5eb796._0x3c90b7,_0x2c49f6);}return _0x5c8ede+_0xfe2535(_0x378226._0x41c5b3,0x1a9,_0x378226._0x45b88b,_0x378226._0xd54dd4)+_0x52f19b;}function createAssignTaskTool(_0x5f50b1){const _0x5511e0={_0x5e43ba:0x7b,_0x4f4d95:0x94,_0x5571cf:0x74,_0x4a54ed:0x7e,_0x3b0231:0x3b9,_0x592d94:0x539,_0x5b55d8:0x17d,_0x1a6d44:0x336,_0x2ce3f9:0x3fb},_0x95798c={_0xb72324:0x277,_0x5922d9:0x40,_0x214d35:0x13b,_0x584726:0xe9,_0x193dd8:0x7d,_0x1b4766:0x224,_0x16f959:0x16,_0x11a9b1:0xe7,_0x5a2101:0x17a,_0x3116b4:0x1d9,_0x50059f:0x13b,_0x8f1a48:0x42,_0x51953d:0xcb,_0x1f13fb:0x13b,_0x21ece4:0x1b9,_0x48a265:0x63,_0x12eba3:0x21a,_0x2bac28:0x228,_0x2bbbe1:0x172,_0x4c79dc:0x16c,_0x56c55f:0x1f2,_0x4ace6d:0x2fe,_0x20a4ab:0xea,_0x2e1755:0x176,_0x1c1011:0x1e9,_0x4be6ba:0x93,_0x68c849:0x162,_0x628956:0x75,_0x3643b3:0x32,_0x17c05f:0x137,_0x2d7afc:0x10a,_0x4d9991:0x41,_0x2bda9c:0x92,_0x282dfa:0x2bc,_0x1cd132:0x7f,_0x5bbe57:0x287,_0x49ca17:0x28a,_0x397587:0x24a,_0x494c2f:0x164,_0x41b0d0:0x30f,_0x2756b6:0x215,_0x4b736c:0x1a5,_0x432582:0x4c,_0x1ad7c8:0x1c6,_0x4206e4:0x248,_0x20895c:0x2b2,_0x219c58:0x15b,_0x11ee75:0x110,_0x5b8b1c:0x37c,_0x291b20:0x31a,_0x1c4f9a:0x227,_0x2f8962:0x155,_0x313b14:0xdd,_0x29e82e:0x13b,_0x489043:0x2ad,_0x274491:0x14c,_0x371447:0xdc,_0x15f929:0x147,_0x128c18:0x115,_0x4310eb:0xa,_0x49036d:0x8,_0x471b97:0x22c,_0x256ac1:0x112,_0x30fe28:0xbe,_0x1e46b2:0x2c3,_0x4c2d08:0x197,_0x56876b:0x1fe,_0x2b55e7:0x270,_0xada56e:0x7c},_0x4d74c8={_0x3e86ee:0x57c,_0x3179f6:0x4e0,_0x3eb1bb:0x6fd,_0x5b5f34:0x6f8,_0x651725:0x519,_0x2d6038:0x6df},_0xab7c1f={_0x1c1039:0x37,_0x22cb91:0x2b,_0x24387a:0xe5},_0x2e4fae={_0x242cb8:0x1ee},_0x535561={_0x3579ef:0x34};function _0x46c16c(_0x38517a,_0x29d295,_0x29fd98,_0x39a65c){return _0x55c88d(_0x38517a-_0x535561._0x3579ef,_0x29d295- -0x3d5,_0x38517a,_0x39a65c-0x1c1);}function _0x3a3420(_0x2a92fd,_0x129aa2,_0x16627c,_0x136a88){return _0x1e45aa(_0x2a92fd-_0x2e4fae._0x242cb8,_0x129aa2-0x15a,_0x136a88- -0x238,_0x129aa2);}return defineTool({'name':'AssignTask','description':_0x46c16c(-_0x5511e0._0x5e43ba,_0x5511e0._0x4f4d95,-0xf,-_0x5511e0._0x5571cf),'inputSchema':{'type':_0x46c16c(-0xd,-_0x5511e0._0x4a54ed,-0xe2,0xf0),'properties':{'agentId':{'type':'string'},'description':{'type':'string'},'nickname':{'type':_0x3a3420(0x3ce,_0x5511e0._0x3b0231,_0x5511e0._0x592d94,0x4e7)},'task':{'type':_0x46c16c(-0x69,0x99,0x1db,_0x5511e0._0x5b55d8)}},'required':['agentId','description',_0x3a3420(_0x5511e0._0x1a6d44,0x427,_0x5511e0._0x2ce3f9,0x448)]},async *'execute'(_0x55ffbb,_0x4fb5eb){const _0x92f85e=createDelegatedRunId(),_0x9fabcd={'agentId':_0x55ffbb[_0x4dc052(_0x95798c._0xb72324,-_0x95798c._0x5922d9,_0x95798c._0x214d35,0x13b)],'parentSessionId':_0x4fb5eb[_0x264cbb(-_0x95798c._0x584726,-0x13f,-_0x95798c._0x193dd8,-0xb9)],'runId':_0x92f85e,..._0x4fb5eb['toolCallId']!==void 0x0?{'toolCallId':_0x4fb5eb[_0x264cbb(0x38e,0x35a,0x228,0x247)]}:{}};function _0x264cbb(_0x21318f,_0x2bba9e,_0x1c3452,_0x2be2bb){return _0x46c16c(_0x21318f,_0x1c3452-0x47,_0x1c3452-0x157,_0x2be2bb-0x3d);}const _0x4ef75d=getDelegatedAgentDefinition(_0x5f50b1,_0x55ffbb[_0x4dc052(_0x95798c._0x1b4766,0xbc,_0x95798c._0x16f959,_0x95798c._0x214d35)]);if(!_0x4ef75d)throw new ToolExecutionError(_0x264cbb(0x71,0x15c,_0x95798c._0x11a9b1,_0x95798c._0x5a2101)+_0x55ffbb[_0x4dc052(0x12f,0x200,_0x95798c._0x3116b4,_0x95798c._0x50059f)],{'agentId':_0x55ffbb[_0x4dc052(-_0x95798c._0x8f1a48,_0x95798c._0x51953d,0x3c,_0x95798c._0x1f13fb)]});const _0x488a3b=new Agent(await resolveDelegatedAgentOptions(_0x4ef75d,_0x9fabcd));let _0x5a4b70={'runId':_0x92f85e,'agentId':_0x55ffbb[_0x264cbb(0x28d,0x263,_0x95798c._0x21ece4,_0x95798c._0x48a265)],'sessionId':_0x488a3b[_0x4dc052(0x7,-0xbb,-0x4a,-0xfb)],'status':_0x264cbb(0x2a6,0x1de,_0x95798c._0x12eba3,0x25c),'parentSessionId':_0x4fb5eb['sessionId'],..._0x4fb5eb[_0x264cbb(0x387,0x379,_0x95798c._0x2bac28,0x32c)]!==void 0x0?{'originToolCallId':_0x4fb5eb[_0x264cbb(_0x95798c._0x2bbbe1,0x11d,0x228,0x263)]}:{}};const _0x5216c1=new AbortController();function _0x4dc052(_0x226f43,_0x5a02a1,_0x308c34,_0x363f65){return _0x46c16c(_0x308c34,_0x363f65- -_0xab7c1f._0x1c1039,_0x308c34-_0xab7c1f._0x22cb91,_0x363f65-_0xab7c1f._0x24387a);}const _0xcb4bb8=addAbortListener(_0x4fb5eb[_0x264cbb(0x1c9,_0x95798c._0x4c79dc,0x227,0x2de)],()=>{function _0x48fb9d(_0x5371ca,_0x188818,_0x44a4b7,_0x3f1512){return _0x264cbb(_0x44a4b7,_0x188818-0x2a,_0x5371ca-0x49f,_0x3f1512-0xc9);}function _0x325685(_0x37f683,_0x5773e8,_0x543561,_0x6870d){return _0x4dc052(_0x37f683-0x175,_0x5773e8-0x7d,_0x543561,_0x5773e8-0x5d9);}_0x5216c1[_0x48fb9d(0x60d,0x590,_0x4d74c8._0x3e86ee,_0x4d74c8._0x3179f6)](_0x4fb5eb[_0x48fb9d(0x6c6,_0x4d74c8._0x3eb1bb,0x70f,_0x4d74c8._0x5b5f34)]?.[_0x325685(_0x4d74c8._0x651725,0x60e,_0x4d74c8._0x2d6038,0x747)]);});yield createToolOutput('Started\x20agent\x20run\x20'+_0x5a4b70[_0x264cbb(_0x95798c._0x56c55f,_0x95798c._0x4ace6d,0x215,_0x95798c._0x20a4ab)]+'.',{'runId':_0x5a4b70[_0x4dc052(_0x95798c._0x2e1755,0x277,0x7d,0x197)],'agentId':_0x5a4b70[_0x4dc052(0x228,0xc5,_0x95798c._0x1c1011,0x13b)],'sessionId':_0x5a4b70[_0x264cbb(_0x95798c._0x4be6ba,-_0x95798c._0x68c849,-0x7d,-0x1db)],'status':_0x5a4b70[_0x4dc052(_0x95798c._0x628956,0x103,0xf1,0x1a1)]});try{const _0x9b2776=await _0x488a3b[_0x264cbb(0xa3,0xa0,_0x95798c._0x3643b3,-0x36)](_0x55ffbb[_0x264cbb(_0x95798c._0x17c05f,-_0x95798c._0x2d7afc,_0x95798c._0x4d9991,-0x75)],{'streaming':!![],'signal':_0x5216c1[_0x4dc052(_0x95798c._0x2bda9c,_0x95798c._0x282dfa,_0x95798c._0x1cd132,0x1a9)]});_0x5a4b70={..._0x5a4b70,'status':_0x9b2776[_0x4dc052(_0x95798c._0x5bbe57,_0x95798c._0x49ca17,_0x95798c._0x397587,0x1a1)],'result':_0x9b2776};if(_0x9b2776['status']!=='completed'){const _0x587a6c=getRunTerminalErrorMessage(_0x9b2776),_0x314ffe=formatAbortedRunMessage(_0x5a4b70[_0x264cbb(_0x95798c._0x494c2f,_0x95798c._0x41b0d0,_0x95798c._0x2756b6,_0x95798c._0x4b736c)],_0x587a6c);throw new ToolExecutionError(_0x314ffe,{...createRunSummary(_0x5a4b70),'aborted':!![],'errorMessage':_0x314ffe});}return createRunSummaryOutput(_0x5a4b70,_0x264cbb(0xa2,-0x127,_0x95798c._0x432582,_0x95798c._0x1ad7c8)+_0x5a4b70['runId']+_0x4dc052(0x9a,0x240,0x19e,0x10d));}catch(_0x5034bb){if(_0x5034bb instanceof ToolExecutionError)throw _0x5034bb;if(isAbortError(_0x5034bb)||_0x5216c1[_0x4dc052(0x191,0x216,_0x95798c._0x41b0d0,0x1a9)][_0x264cbb(_0x95798c._0x4206e4,_0x95798c._0x20895c,_0x95798c._0x219c58,_0x95798c._0x11ee75)]||_0x4fb5eb[_0x264cbb(_0x95798c._0x5b8b1c,_0x95798c._0x291b20,_0x95798c._0x1c4f9a,_0x95798c._0x20a4ab)][_0x4dc052(0x4d,_0x95798c._0x2f8962,0x1d6,_0x95798c._0x313b14)]){const _0x166e4f=getRunTerminalErrorMessage(_0x5a4b70[_0x264cbb(_0x95798c._0x29e82e,0x7a,0x74,0xd5)])??(_0x5034bb instanceof Error?_0x5034bb['message']:String(_0x5034bb)),_0x4262db=formatAbortedRunMessage(_0x5a4b70[_0x264cbb(0x209,_0x95798c._0x489043,_0x95798c._0x2756b6,_0x95798c._0x274491)],_0x166e4f);_0x5a4b70={..._0x5a4b70,'status':_0x4dc052(_0x95798c._0x371447,_0x95798c._0x15f929,0x129,_0x95798c._0x313b14),'errorMessage':_0x4262db};throw new ToolExecutionError(_0x4262db,{...createRunSummary(_0x5a4b70),'aborted':!![],'errorMessage':_0x4262db});}const _0x9a90af=getRunTerminalErrorMessage(_0x5a4b70[_0x4dc052(0x126,-0x132,-_0x95798c._0x128c18,-_0x95798c._0x4310eb)])??(_0x5034bb instanceof Error?_0x5034bb[_0x4dc052(_0x95798c._0x49036d,-_0x95798c._0x471b97,-0xd4,-_0x95798c._0x256ac1)]:String(_0x5034bb))??_0x264cbb(-_0x95798c._0x30fe28,0x5d,_0x95798c._0x432582,-0xc8)+_0x5a4b70[_0x4dc052(_0x95798c._0x1e46b2,0xd5,0x263,_0x95798c._0x4c2d08)]+_0x264cbb(0x267,0xca,_0x95798c._0x56876b,_0x95798c._0x2b55e7);_0x5a4b70={..._0x5a4b70,'status':_0x4dc052(-0x15,-_0x95798c._0xada56e,-0x175,-0x1e),'errorMessage':_0x9a90af};throw new ToolExecutionError(_0x9a90af,{...createRunSummary(_0x5a4b70),'errorMessage':_0x9a90af});}finally{_0xcb4bb8();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x1c0d0c){return[createAssignTaskTool(_0x1c0d0c)];}import*as _0x4f231f from'path';function buildDescription2(_0x9317ca){const _0x4786fd={_0x406383:0x3c7,_0x5562f8:0x2cb,_0x2ba40a:0x332,_0x4706fd:0x31e,_0x25d3b8:0x39f,_0x4f1cfb:0x1d5,_0x535e03:0x2f4,_0x3ef241:0xe7,_0x1868ad:0x177,_0x2c6611:0x66b,_0x351426:0x7c3},_0x3af6a7={_0x320209:0x14c,_0x2bf1aa:0x517};if(_0x9317ca[_0x1df669(0x182,0x449,_0x4786fd._0x406383,_0x4786fd._0x5562f8)]===0x0)return _0x1df669(0x368,_0x4786fd._0x2ba40a,0x242,_0x4786fd._0x4706fd);function _0x13e16b(_0x5a92f8,_0xf978bf,_0x312a3a,_0x5293a7){return _0x55c88d(_0x5a92f8-0x80,_0x5a92f8-0x1f1,_0xf978bf,_0x5293a7-0x31);}function _0x1df669(_0x104de7,_0x168c9a,_0x80c2bc,_0x1edcd3){return _0x1e45aa(_0x104de7-_0x3af6a7._0x320209,_0x168c9a-0x1d9,_0x1edcd3- -_0x3af6a7._0x2bf1aa,_0x168c9a);}const _0x59a9c7=[_0x1df669(_0x4786fd._0x25d3b8,0x196,_0x4786fd._0x4f1cfb,_0x4786fd._0x535e03),'Skills\x20provide\x20specialized\x20knowledge\x20and\x20step-by-step\x20guidance.',_0x1df669(0x20e,0x1d0,_0x4786fd._0x3ef241,_0x4786fd._0x1868ad),'Available\x20skills\x20(skill_name:\x20description):',..._0x9317ca[_0x13e16b(0x679,0x559,_0x4786fd._0x2c6611,_0x4786fd._0x351426)](_0x3849b0=>'-\x20'+_0x3849b0[_0x1df669(0x374,0x21c,0x2b0,0x279)]+':\x20'+_0x3849b0[_0x13e16b(0x736,0x853,0x829,0x860)])];return _0x59a9c7[_0x13e16b(0x5e3,0x5fb,0x546,0x513)]('\x0a');}function createLoadSkillTool(_0x424ff3){const _0x42897a={_0x18de55:0x486,_0x4af46e:0x5e5,_0x27b601:0x6be,_0xb6d600:0x594,_0x2f37cd:0x623,_0x39c311:0x492,_0x13b420:0x53d,_0xcbc958:0x635,_0x449b22:0x5c2,_0x3d9329:0x783,_0x3999f9:0x6ff,_0x402ca0:0x3e7,_0x30e7eb:0x605,_0x300278:0x4fe,_0x3ceb30:0x492,_0x37358a:0x56f},_0x4bf068={_0x45c061:0x812,_0x1a4f3c:0x7bc,_0x2f38c1:0x6d3,_0x436c1a:0x75d,_0x3cef59:0x70e,_0x37634d:0x6da,_0x1b4ff9:0x706,_0xb8de78:0x802,_0x3b0fa8:0x7cd,_0x8391e9:0x66d,_0x4d8597:0x603,_0x247fe9:0x580,_0x530ae4:0x6bb,_0x2c5b73:0x5b4,_0x36aa76:0x846,_0x5e0eb3:0x510,_0x522fda:0x75c,_0xa2a30c:0x4c2,_0x14a53e:0x5c3,_0x32280d:0x7ea,_0x57e2eb:0x749,_0x4346bc:0x773,_0x51bfbc:0x653,_0x3bd984:0x764,_0x25e828:0x649,_0x298ad5:0x639,_0x2c7a4d:0x743,_0xc9c295:0x7f2,_0x4596fd:0x858,_0x4341fe:0x69a,_0x10d5dc:0x6fe,_0x2d0d4b:0x7da,_0x201c2f:0x5d2,_0x2bdf21:0x61a,_0x48874c:0x78c,_0x189046:0x6bc,_0x56d548:0x64a,_0x3714fd:0x606,_0x4e3f6a:0x503},_0x337ef7={_0xf2346e:0x19e,_0x3f6c51:0x90},_0x541361={_0xbd5487:0x1ab,_0x1bea76:0x3c3,_0x3a3dfc:0x21},_0x5b03b6=new Map(_0x424ff3[_0x13d189(_0x42897a._0x18de55,0x5b9,_0x42897a._0x4af46e,_0x42897a._0x27b601)][_0x13d189(_0x42897a._0xb6d600,0x518,_0x42897a._0x2f37cd,_0x42897a._0x39c311)](_0x3bd499=>[_0x3bd499[_0x4886c0(0x11c,0x158,0x6a,0xbf)],_0x3bd499]));function _0x4886c0(_0x539b26,_0x112014,_0x49ae28,_0x11d72b){return _0x55c88d(_0x539b26-_0x541361._0xbd5487,_0x539b26- -_0x541361._0x1bea76,_0x49ae28,_0x11d72b-_0x541361._0x3a3dfc);}function _0x13d189(_0x566a78,_0x5b25b1,_0x36c7b1,_0x505423){return _0x55c88d(_0x566a78-_0x337ef7._0xf2346e,_0x5b25b1-_0x337ef7._0x3f6c51,_0x566a78,_0x505423-0xa3);}const _0x44ef10=buildDescription2(_0x424ff3[_0x13d189(_0x42897a._0x13b420,0x5b9,_0x42897a._0xcbc958,_0x42897a._0x449b22)]);return defineTool({'name':_0x13d189(0x4d5,0x635,_0x42897a._0x3d9329,_0x42897a._0x3999f9),'description':_0x44ef10,'inputSchema':{'type':_0x13d189(0x35e,_0x42897a._0x402ca0,0x319,0x2a9),'properties':{'name':{'type':_0x13d189(_0x42897a._0x30e7eb,_0x42897a._0x300278,_0x42897a._0x3ceb30,0x651)}},'required':[_0x13d189(0x53b,_0x42897a._0x37358a,0x560,0x45f)]},async *'execute'(_0x4eee87){const _0x27cc8e={_0x695f57:0x147,_0x47267f:0x175};function _0x4346af(_0x152826,_0xc3f4f9,_0x57f701,_0x24a01d){return _0x4886c0(_0x57f701-0x5a0,_0xc3f4f9-_0x27cc8e._0x695f57,_0x152826,_0x24a01d-_0x27cc8e._0x47267f);}const _0xad540a=_0x5b03b6['get'](_0x4eee87['name']);if(!_0xad540a){const _0x5000f5=Array[_0x3d0491(0x70a,_0x4bf068._0x45c061,0x6bc,0x69b)](_0x5b03b6[_0x4346af(_0x4bf068._0x1a4f3c,_0x4bf068._0x2f38c1,_0x4bf068._0x436c1a,0x8d1)]())['join'](',\x20');throw new ToolExecutionError(_0x3d0491(0x71d,0x644,_0x4bf068._0x3cef59,0x815)+_0x4eee87['name']+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x5000f5,{'name':_0x4eee87[_0x3d0491(_0x4bf068._0x37634d,0x7cb,0x6cc,0x78b)]});}const _0x412ae6=await _0x424ff3['loadSkill'](_0xad540a),_0x5d73df=_0xad540a[_0x3d0491(_0x4bf068._0x1b4ff9,_0x4bf068._0xb8de78,_0x4bf068._0x3b0fa8,_0x4bf068._0x8391e9)][_0x4346af(_0x4bf068._0x4d8597,0x801,0x76f,0x889)]??_0x4f231f[_0x3d0491(_0x4bf068._0x247fe9,0x479,_0x4bf068._0x530ae4,0x6fe)](_0xad540a[_0x3d0491(0x706,_0x4bf068._0x2c5b73,_0x4bf068._0x36aa76,0x6cc)][_0x3d0491(0x624,_0x4bf068._0x5e0eb3,_0x4bf068._0x522fda,_0x4bf068._0xa2a30c)]),_0x25b18d=[_0x3d0491(0x68b,_0x4bf068._0x14a53e,0x746,_0x4bf068._0x32280d)+_0x412ae6['name'],'',_0x412ae6[_0x4346af(_0x4bf068._0x57e2eb,_0x4bf068._0x4346bc,_0x4bf068._0x51bfbc,_0x4bf068._0x3bd984)],'',_0x4346af(_0x4bf068._0x522fda,_0x4bf068._0x25e828,_0x4bf068._0x298ad5,_0x4bf068._0x2c7a4d),'Loaded\x20from:\x20'+_0xad540a[_0x3d0491(_0x4bf068._0x1b4ff9,_0x4bf068._0xc9c295,_0x4bf068._0x4596fd,0x832)][_0x3d0491(0x624,0x61d,_0x4bf068._0x4341fe,0x58d)],_0x3d0491(0x6e6,_0x4bf068._0x10d5dc,_0x4bf068._0x2d0d4b,_0x4bf068._0x201c2f)+_0x5d73df][_0x3d0491(0x5ed,0x626,0x496,_0x4bf068._0x2bdf21)]('\x0a');function _0x3d0491(_0x221bb4,_0x4b0817,_0x4f355a,_0x951974){return _0x4886c0(_0x221bb4-0x5be,_0x4b0817-0xd,_0x4f355a,_0x951974-0x7f);}return yield createToolOutput(_0x25b18d,{'id':_0x412ae6['id'],'name':_0x412ae6[_0x4346af(_0x4bf068._0x48874c,0x81f,_0x4bf068._0x189046,0x6d5)],'path':_0xad540a['source'][_0x4346af(_0x4bf068._0x56d548,0x5b5,_0x4bf068._0x3714fd,_0x4bf068._0x4e3f6a)],'baseDirectory':_0x5d73df}),void 0x0;}});}var TODO_STATUSES=new Set([_0x55c88d(0x414,0x41f,0x348,0x307),_0x55c88d(0x391,0x325,0x47c,0x294),'completed']),TODO_PRIORITIES=new Set(['high','medium','low']);function isTodoStatus(_0x3e26fb){const _0x3e44d2={_0x4f9a99:0x4cd,_0x3d806a:0x5d2,_0x2cfbc8:0x4c2,_0x479335:0x64f},_0x223c6e={_0x2a3e1b:0x45,_0x401235:0xa0,_0x359f11:0x11a},_0x3b3a62={_0x1dca04:0xc1,_0x17818e:0x107,_0x7b3fd7:0xf7};function _0x221d53(_0x74106f,_0x511eeb,_0x38fcc6,_0x5a9c47){return _0x55c88d(_0x74106f-_0x3b3a62._0x1dca04,_0x38fcc6-_0x3b3a62._0x17818e,_0x5a9c47,_0x5a9c47-_0x3b3a62._0x7b3fd7);}function _0x315d24(_0x30a3a9,_0x1d89ea,_0x584ed2,_0x212ba9){return _0x55c88d(_0x30a3a9-_0x223c6e._0x2a3e1b,_0x1d89ea-_0x223c6e._0x401235,_0x584ed2,_0x212ba9-_0x223c6e._0x359f11);}return typeof _0x3e26fb===_0x221d53(0x442,_0x3e44d2._0x4f9a99,0x575,0x623)&&TODO_STATUSES[_0x221d53(_0x3e44d2._0x3d806a,_0x3e44d2._0x2cfbc8,0x5ae,_0x3e44d2._0x479335)](_0x3e26fb);}function isTodoPriority(_0x5a3abd){const _0x50e814={_0x14517e:0xcb,_0x585368:0x109,_0x12b11e:0x9a,_0x592eb3:0xb7},_0x2d3e81={_0x449285:0xa7,_0x2a0a5e:0x4b6},_0x536511={_0x26ca1e:0xca};function _0x49e5aa(_0x2b8031,_0x526332,_0x2dfa04,_0x42c0f4){return _0x1e45aa(_0x2b8031-_0x536511._0x26ca1e,_0x526332-0x14d,_0x2b8031- -0x4e4,_0x42c0f4);}function _0x2d1180(_0x573046,_0x3bd2eb,_0x496a88,_0x4ea2cc){return _0x55c88d(_0x573046-_0x2d3e81._0x449285,_0x496a88- -_0x2d3e81._0x2a0a5e,_0x3bd2eb,_0x4ea2cc-0x14c);}return typeof _0x5a3abd===_0x2d1180(-0x4a,_0x50e814._0x14517e,-0x48,-0x14)&&TODO_PRIORITIES[_0x2d1180(_0x50e814._0x585368,_0x50e814._0x12b11e,-0xf,_0x50e814._0x592eb3)](_0x5a3abd);}var TodoStore=class{[_0x1e45aa(0x702,0x5e6,0x721,0x716)]=new Map();['getTodos'](_0x5c842e){const _0x34154a={_0x5b2cd3:0x3d3,_0x537969:0x1f2,_0x8758e7:0x276,_0x5cf6f5:0x201},_0x2064d6={_0x336587:0x2a,_0x4352e1:0x12f};function _0x32a8e4(_0x3c898a,_0xf2416c,_0x537eaf,_0x45bfed){return _0x1e45aa(_0x3c898a-_0x2064d6._0x336587,_0xf2416c-_0x2064d6._0x4352e1,_0x537eaf- -0x4ab,_0x45bfed);}function _0x1ae874(_0x10da1b,_0x1301ae,_0x523f49,_0x42ced2){return _0x1e45aa(_0x10da1b-0xc2,_0x1301ae-0x11c,_0x523f49- -0x26e,_0x10da1b);}return this[_0x32a8e4(_0x34154a._0x5b2cd3,_0x34154a._0x537969,_0x34154a._0x8758e7,_0x34154a._0x5cf6f5)][_0x32a8e4(0x3dd,0x48d,0x338,0x282)](_0x5c842e)??[];}[_0x1e45aa(0x795,0x744,0x712,0x83d)](_0x48e00c,_0x4860b6){const _0x2e7d5a={_0x2ac89d:0x33,_0x1c2076:0xf3,_0x175936:0xde,_0x5d809d:0x8a,_0x2e29d8:0x17,_0x11a460:0x71},_0x8cc549={_0x333b71:0x19d};function _0x1d9d9c(_0x3e6cf5,_0x2680d8,_0x5576e7,_0x223546){return _0x1e45aa(_0x3e6cf5-0x106,_0x2680d8-0xe6,_0x2680d8- -0x63d,_0x5576e7);}function _0x5b6d96(_0x3ff1c7,_0x59ace7,_0xc47765,_0x3f6cec){return _0x1e45aa(_0x3ff1c7-0x16d,_0x59ace7-_0x8cc549._0x333b71,_0xc47765- -0x65b,_0x3ff1c7);}this[_0x5b6d96(_0x2e7d5a._0x2ac89d,_0x2e7d5a._0x1c2076,0xc6,_0x2e7d5a._0x175936)][_0x1d9d9c(_0x2e7d5a._0x5d809d,-_0x2e7d5a._0x2e29d8,_0x2e7d5a._0x11a460,-0x18c)](_0x48e00c,_0x4860b6);}[_0x1e45aa(0x59c,0x733,0x706,0x5bc)](_0x1197c3){const _0x3c4fb1={_0x44d506:0x2b3,_0x251109:0x173,_0x8b6f49:0x308,_0x29418b:0x34e,_0x31d002:0x70e,_0x5ae26b:0x546,_0x565e51:0x336,_0x1742ce:0x262,_0x50a344:0x3ca,_0x5588de:0x486,_0x3eaa85:0x266,_0x234f1d:0x142,_0x5348ae:0x131,_0x5c690d:0x241,_0x3a6c1e:0x1bb,_0x4cf59c:0x144},_0x4fe898={_0x45f1d1:0x1c2},_0x1d4364={_0x566a9a:0x84},_0x10139e=this[_0x3bc20d(_0x3c4fb1._0x44d506,0x3f3,_0x3c4fb1._0x251109,_0x3c4fb1._0x8b6f49)](_0x1197c3),_0x2338be={'total':_0x10139e[_0x3b4097(0x307,_0x3c4fb1._0x29418b,0x4b7,0x448)],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x3b4097(_0x49bf92,_0x346f6c,_0x56e5b6,_0xe3f7d9){return _0x1e45aa(_0x49bf92-0xcb,_0x346f6c-_0x1d4364._0x566a9a,_0x346f6c- -0x494,_0x56e5b6);}for(const _0x4c3b62 of _0x10139e){if(_0x4c3b62[_0x3bc20d(0x59c,0x48a,_0x3c4fb1._0x31d002,_0x3c4fb1._0x5ae26b)]==='pending')_0x2338be[_0x3bc20d(0x40e,0x4ef,_0x3c4fb1._0x565e51,0x29a)]+=0x1;else{if(_0x4c3b62[_0x3b4097(_0x3c4fb1._0x1742ce,_0x3c4fb1._0x50a344,_0x3c4fb1._0x5588de,_0x3c4fb1._0x3eaa85)]===_0x3b4097(0x142,_0x3c4fb1._0x234f1d,0x2b8,_0x3c4fb1._0x5348ae))_0x2338be[_0x3bc20d(0x373,0x43a,_0x3c4fb1._0x5c690d,0x1ef)]+=0x1;else _0x2338be[_0x3b4097(_0x3c4fb1._0x3a6c1e,0x262,_0x3c4fb1._0x4cf59c,0x39b)]+=0x1;}}function _0x3bc20d(_0x17e6ad,_0x571394,_0x41938a,_0x5836ff){return _0x1e45aa(_0x17e6ad-_0x4fe898._0x45f1d1,_0x571394-0x154,_0x17e6ad- -0x2c2,_0x41938a);}return _0x2338be;}};function validateTodos(_0x143504){const _0x430c8d={_0x12f7a3:0xc6,_0x1dec70:0x74,_0x2cb680:0x26d,_0x50168e:0x208,_0x9805ae:0x28d,_0xcc0b85:0xe7,_0x571292:0x12d,_0x1f1bf0:0x1c8,_0x26438d:0x36b,_0x47e310:0x76,_0x2dd614:0x1ef,_0x28b1e6:0x119,_0x265c0a:0x14d,_0x5e867d:0x1a2,_0x5a637c:0x143,_0x237715:0x21a,_0x37f795:0x121,_0x267630:0x16c,_0x1dea9b:0x83,_0x5bbdfb:0x3b,_0x29a72c:0x77,_0x36aab9:0xe4,_0x2b4348:0xf4,_0x3f0e9b:0x87,_0x203646:0x214,_0x50226e:0x133,_0x413c23:0x364,_0x17c694:0x28a,_0x394891:0x9d,_0x4afb5d:0x177,_0x3061f7:0x4c,_0x2ccbac:0x1e,_0x4852d7:0x188,_0x92ee4e:0x36,_0x13fe34:0x4c,_0x5b892f:0x208,_0x1ca58b:0x8c,_0x10f719:0x279,_0x1f3331:0x398,_0x1fb262:0x2f7,_0x4af93e:0x1eb,_0xebf1e:0x207,_0x187a1b:0x1db,_0x18f92d:0xa9,_0x30d623:0xbc,_0x37adbd:0x17,_0x4d5745:0x16c,_0x4ee8ba:0x22,_0x22b7bb:0x0,_0x243822:0x2a,_0x4d4975:0x87,_0x23d0dd:0x1c,_0x3c9ee3:0x6b,_0x16f1ca:0x5f,_0x1a4b61:0x135,_0x5e0db6:0x120,_0x53e0d4:0x115,_0x390561:0x1f2,_0x5d62b0:0x8d,_0x5c780a:0x87,_0x49cd47:0x2d,_0x187f77:0xce,_0x7cb941:0x56},_0x1da751={_0x5db812:0x1a6,_0x1ec9e5:0x5da};function _0x6fcde6(_0x41bd19,_0x168c2c,_0xab3cbb,_0xde3a3b){return _0x1e45aa(_0x41bd19-0x3,_0x168c2c-_0x1da751._0x5db812,_0x168c2c- -_0x1da751._0x1ec9e5,_0xab3cbb);}if(!Array[_0x6fcde6(0x275,0x241,0x289,0x21f)](_0x143504[_0x6fcde6(-_0x430c8d._0x12f7a3,-_0x430c8d._0x1dec70,-0xeb,-0xe9)])||_0x143504[_0x59a31f(-0x309,-_0x430c8d._0x2cb680,-0x2ae,-0x1ef)][_0x6fcde6(0x38c,_0x430c8d._0x50168e,_0x430c8d._0x9805ae,0x264)]===0x0)throw new ToolExecutionError(_0x59a31f(0x6,-_0x430c8d._0xcc0b85,-0x1da,-0xf9),{'error':'invalid_todos'});function _0x59a31f(_0x3f4db1,_0x59a7f2,_0x27aa28,_0x47dc97){return _0x1e45aa(_0x3f4db1-0x12e,_0x59a7f2-0x190,_0x47dc97- -0x755,_0x27aa28);}for(let _0x244121=0x0;_0x244121<_0x143504[_0x59a31f(-_0x430c8d._0x571292,-_0x430c8d._0x1f1bf0,-0x2c3,-0x1ef)]['length'];_0x244121+=0x1){const _0x4c1e7e=_0x143504[_0x59a31f(-0x1b3,-_0x430c8d._0x26438d,-_0x430c8d._0x47e310,-_0x430c8d._0x2dd614)][_0x244121];if(!_0x4c1e7e||typeof _0x4c1e7e!==_0x59a31f(-_0x430c8d._0x28b1e6,-0x161,-0x168,-_0x430c8d._0x265c0a))throw new ToolExecutionError(_0x59a31f(_0x430c8d._0x5e867d,_0x430c8d._0x5a637c,_0x430c8d._0x237715,0x99)+(_0x244121+0x1)+_0x6fcde6(0x210,_0x430c8d._0x37f795,_0x430c8d._0x267630,_0x430c8d._0x1dea9b),{'error':_0x59a31f(-_0x430c8d._0x5bbdfb,-0x142,-0xaa,-_0x430c8d._0x29a72c)});if(typeof _0x4c1e7e['id']!=='string'||_0x4c1e7e['id'][_0x6fcde6(0xf0,0x1c7,_0x430c8d._0x36aab9,_0x430c8d._0x2b4348)]()[_0x6fcde6(0xef,0x208,_0x430c8d._0x3f0e9b,0x335)]===0x0)throw new ToolExecutionError(_0x6fcde6(0x1ce,_0x430c8d._0x203646,_0x430c8d._0x50226e,_0x430c8d._0x413c23)+(_0x244121+0x1)+_0x59a31f(-_0x430c8d._0x17c694,-0x27e,-_0x430c8d._0x394891,-_0x430c8d._0x4afb5d),{'error':_0x6fcde6(-_0x430c8d._0x3061f7,-_0x430c8d._0x2ccbac,0x68,-_0x430c8d._0x4852d7)});if(typeof _0x4c1e7e['content']!==_0x59a31f(0xb1,-0xee,0x5c,-_0x430c8d._0x92ee4e)||_0x4c1e7e['content'][_0x59a31f(0x9d,0x34,0x1c4,_0x430c8d._0x13fe34)]()[_0x6fcde6(0x25e,_0x430c8d._0x5b892f,_0x430c8d._0x1ca58b,0x152)]===0x0)throw new ToolExecutionError(_0x6fcde6(0x310,_0x430c8d._0x203646,0xee,0x1f0)+(_0x244121+0x1)+':\x20content\x20required',{'error':'invalid_todo_content'});if(!isTodoStatus(_0x4c1e7e['status']))throw new ToolExecutionError(_0x6fcde6(0x2e8,_0x430c8d._0x203646,_0x430c8d._0x10f719,_0x430c8d._0x1f3331)+(_0x244121+0x1)+':\x20invalid\x20status',{'error':_0x6fcde6(_0x430c8d._0x1fb262,_0x430c8d._0x4af93e,_0x430c8d._0xebf1e,0x11b)});if(!isTodoPriority(_0x4c1e7e[_0x59a31f(-_0x430c8d._0x187a1b,-0x10b,0xc5,-_0x430c8d._0x18f92d)]))throw new ToolExecutionError('Todo\x20'+(_0x244121+0x1)+_0x59a31f(-_0x430c8d._0x30d623,-0x5,0xe6,_0x430c8d._0x37adbd),{'error':_0x6fcde6(_0x430c8d._0x4d5745,_0x430c8d._0x4ee8ba,0x10c,_0x430c8d._0x22b7bb)});}const _0x5e3061=_0x143504[_0x6fcde6(-0x9d,-0x74,_0x430c8d._0x243822,0x5)][_0x59a31f(_0x430c8d._0x4d4975,0x5d,0x167,-_0x430c8d._0x23d0dd)](_0x596341=>_0x596341['id']);if(new Set(_0x5e3061)[_0x6fcde6(_0x430c8d._0x3c9ee3,-_0x430c8d._0x16f1ca,-_0x430c8d._0x1a4b61,_0x430c8d._0x5e0db6)]!==_0x5e3061[_0x59a31f(_0x430c8d._0x53e0d4,_0x430c8d._0x390561,0x8f,_0x430c8d._0x5d62b0)])throw new ToolExecutionError(_0x59a31f(0xaf,_0x430c8d._0x5c780a,_0x430c8d._0x49cd47,-_0x430c8d._0x187f77),{'error':_0x59a31f(0x79,-0x48,-0xb8,_0x430c8d._0x7cb941)});}function createStatsProgress(_0x29b7f2){const _0x53e19e={_0x3a7329:0x97,_0x223460:0x1f7,_0x5cd974:0x2a6,_0x302113:0x30e,_0xb73d3b:0x3fb,_0x47dab6:0x311},_0x39cd9d={_0x24a151:0xe4};function _0x46a745(_0x505429,_0x338b93,_0x4b3352,_0x1983a3){return _0x55c88d(_0x505429-0x38,_0x1983a3- -0x1de,_0x4b3352,_0x1983a3-0x150);}function _0x38ba55(_0x4aab0d,_0xc32263,_0x254a8f,_0x135cfb){return _0x55c88d(_0x4aab0d-0x13c,_0xc32263-0x2f1,_0x4aab0d,_0x135cfb-_0x39cd9d._0x24a151);}return _0x29b7f2[_0x46a745(0x380,0x436,0x3ae,0x383)]>0x0?Math[_0x46a745(0x283,0x7c,_0x53e19e._0x3a7329,0x151)](_0x29b7f2[_0x46a745(_0x53e19e._0x223460,_0x53e19e._0x5cd974,_0x53e19e._0x302113,0x267)]/_0x29b7f2[_0x46a745(_0x53e19e._0xb73d3b,0x215,_0x53e19e._0x47dab6,0x383)]*0x64)+'%':'0%';}function createReminderItems(_0x32b362){const _0xa2067a={_0x28195d:0x1ac,_0x334d0d:0xfd,_0x3cdf7b:0x733},_0x174056={_0x1e3068:0xd6};function _0xf19f20(_0x2ded75,_0x11fcbb,_0x4ed611,_0x48155e){return _0x55c88d(_0x2ded75-_0x174056._0x1e3068,_0x2ded75- -0x254,_0x48155e,_0x48155e-0x6f);}function _0x5b3298(_0x446b8b,_0x23180a,_0x23ec09,_0x5a2a10){return _0x1e45aa(_0x446b8b-_0xa2067a._0x28195d,_0x23180a-_0xa2067a._0x334d0d,_0x446b8b- -_0xa2067a._0x3cdf7b,_0x23180a);}return _0x32b362[_0x5b3298(0x6,-0xd6,0x18c,-0x43)](_0xf530fb=>({'content':_0xf530fb[_0xf19f20(0x223,0x122,0x27f,0x26b)],'status':_0xf530fb[_0xf19f20(0x359,0x3f0,0x380,0x224)],'id':_0xf530fb['id']}));}function createStructuredResult(_0xded1b9,_0x5d7dfc,_0xfea5e5,_0x5d566a){const _0x1e42d3={_0xd77742:0x138,_0x384b7e:0x69,_0xe595ce:0x101},_0x5abf20={_0x6942a4:0x14c,_0x3da176:0x23};function _0x2c614b(_0x4ccde4,_0x46ef3b,_0x305ebf,_0x535b50){return _0x55c88d(_0x4ccde4-_0x5abf20._0x6942a4,_0x535b50- -_0x5abf20._0x3da176,_0x4ccde4,_0x535b50-0x112);}function _0x58f905(_0x4428f9,_0x3255b6,_0x28e2bd,_0x224bb9){return _0x55c88d(_0x4428f9-_0x1e42d3._0xd77742,_0x4428f9- -_0x1e42d3._0x384b7e,_0x224bb9,_0x224bb9-_0x1e42d3._0xe595ce);}return{'allCompleted':_0x5d566a,'items':_0x5d7dfc['map'](_0x421ad1=>({'id':_0x421ad1['id'],'content':_0x421ad1[_0x2c614b(0x435,0x557,0x4c6,0x454)],'status':_0x421ad1[_0x58f905(0x544,0x455,0x420,0x69a)],'priority':_0x421ad1[_0x2c614b(0x4cc,0x32e,0x3a4,0x3d8)],'createdAt':_0x421ad1[_0x58f905(0x3dd,0x272,0x316,0x2e7)]})),'progress':createStatsProgress(_0xfea5e5),'recentChanges':!![],'sessionId':_0xded1b9,'stats':_0xfea5e5,'todosWritten':_0x5d7dfc[_0x58f905(0x4c8,0x353,0x568,0x565)]};}function createOutputText(_0x5cf2c5,_0x3fd332){const _0x309342={_0x2541ab:0x472,_0x2a9e8b:0x46b,_0x22bdc2:0x8de,_0x260bd2:0x7ca,_0x598812:0x84d,_0x50172c:0x646,_0x5d3535:0x58c,_0x36a329:0x5fa,_0x25a380:0x49f,_0x130882:0x48d,_0x436168:0x3f9,_0x595da8:0x917,_0x2786b6:0x8f1,_0x570e03:0x7b6},_0x255ced={_0xcab998:0x42},_0x28263b={_0x1b5a6c:0xf6};function _0x3737f2(_0x488265,_0x8063fb,_0xc0240e,_0x1f3c1f){return _0x55c88d(_0x488265-0x143,_0xc0240e-0x299,_0x1f3c1f,_0x1f3c1f-_0x28263b._0x1b5a6c);}const _0x16fb59=JSON[_0x3737f2(0x8af,0x721,0x799,0x900)](createReminderItems(_0x5cf2c5));function _0x20479f(_0x166056,_0x1c9602,_0x1db772,_0x674d57){return _0x55c88d(_0x166056-_0x255ced._0xcab998,_0x674d57- -0x64,_0x1db772,_0x674d57-0x182);}if(_0x3fd332)return _0x20479f(0x471,_0x309342._0x2541ab,_0x309342._0x2a9e8b,0x319)+_0x5cf2c5[_0x3737f2(0x758,_0x309342._0x22bdc2,_0x309342._0x260bd2,_0x309342._0x598812)]+_0x3737f2(_0x309342._0x50172c,_0x309342._0x5d3535,_0x309342._0x36a329,_0x309342._0x25a380)+_0x16fb59+_0x20479f(0x451,_0x309342._0x130882,_0x309342._0x436168,0x3a2);return _0x3737f2(_0x309342._0x595da8,_0x309342._0x2786b6,0x843,0x93f)+_0x16fb59+_0x3737f2(0x69f,0x73f,0x69f,_0x309342._0x570e03);}function createTodoWriteTool(_0x598484=new TodoStore()){const _0x5b3469={_0x36c235:0x4d5,_0x20ae20:0x58f,_0x476b9b:0x478,_0x42b3d8:0x3e0,_0x32c483:0x399,_0x5a68f9:0x297,_0xb9366d:0x49b,_0xb6009d:0x4f9,_0x470d6b:0x65c,_0x491120:0x597,_0x25bbcd:0x5ab,_0xc4383d:0x480,_0x159059:0x41b,_0x40b8d0:0x5d6,_0x539d72:0x4b0,_0x5a6aed:0x53e,_0x27ec74:0x4b0,_0x226b2e:0x3fa,_0x4a4ea5:0x5db,_0x39a698:0x4b9,_0x5d1276:0x5c6,_0x41e8bc:0x57f,_0x171ffd:0x5ef,_0x142af5:0x43d},_0x50f41d={_0x2a8692:0x331,_0x17e862:0x4b4,_0x38f431:0x39a,_0x43720d:0x355,_0x7c233a:0x5c0,_0x43bd7b:0x4a6,_0x204eca:0x481,_0x110160:0x42c,_0x5bc255:0x411,_0x139ff8:0x36e,_0xce9ea1:0x35a,_0x44581c:0x559},_0x2fc07d={_0x366d7f:0x103,_0x219c89:0x97},_0x2991a1={_0x98a09e:0x1c1},_0x2c377a={_0x477213:0x4};function _0x41d7fd(_0x4ea9fc,_0x328f2f,_0x451a68,_0x574292){return _0x55c88d(_0x4ea9fc-0x14a,_0x451a68-0x42,_0x328f2f,_0x574292-_0x2c377a._0x477213);}function _0x3ff264(_0x4a71fd,_0x442003,_0x49c050,_0x479605){return _0x55c88d(_0x4a71fd-0xda,_0x479605-0xb5,_0x4a71fd,_0x479605-_0x2991a1._0x98a09e);}return defineTool({'name':_0x41d7fd(_0x5b3469._0x36c235,_0x5b3469._0x20ae20,_0x5b3469._0x476b9b,0x3e2),'description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':_0x41d7fd(_0x5b3469._0x42b3d8,0x23f,_0x5b3469._0x32c483,_0x5b3469._0x5a68f9),'properties':{'todos':{'type':_0x41d7fd(0x429,_0x5b3469._0xb9366d,_0x5b3469._0xb6009d,0x434),'items':{'type':'object','properties':{'content':{'type':_0x3ff264(_0x5b3469._0x470d6b,0x43a,_0x5b3469._0x491120,0x523)},'status':{'type':_0x3ff264(0x58f,_0x5b3469._0x25bbcd,_0x5b3469._0xc4383d,0x523)},'priority':{'type':_0x41d7fd(_0x5b3469._0x159059,_0x5b3469._0x40b8d0,_0x5b3469._0x539d72,0x53d)},'id':{'type':_0x41d7fd(0x588,_0x5b3469._0x5a6aed,_0x5b3469._0x27ec74,0x5cc)},'createdAt':{'type':_0x41d7fd(0x529,0x521,0x4b0,_0x5b3469._0x226b2e)}},'required':[_0x41d7fd(_0x5b3469._0x4a4ea5,0x53a,_0x5b3469._0x39a698,_0x5b3469._0x5d1276),_0x41d7fd(0x705,_0x5b3469._0x41e8bc,_0x5b3469._0x171ffd,0x75d),_0x41d7fd(0x34a,0x3a1,_0x5b3469._0x142af5,0x472),'id']}}},'required':['todos']},async *'execute'(_0x450dc9,_0x26bbd6){const _0x22979c={_0x424a0b:0x82,_0x16ea69:0x95},_0x397d19=_0x450dc9;validateTodos(_0x397d19);const _0x46fb9d=_0x26bbd6[_0x3f020b(_0x50f41d._0x2a8692,_0x50f41d._0x17e862,_0x50f41d._0x38f431,_0x50f41d._0x43720d)]||'default',_0xbd7270=new Date()[_0x45d771(_0x50f41d._0x7c233a,0x555,0x53a,0x41e)](),_0x28e96d=_0x397d19['todos'][_0x45d771(0x5e1,0x33d,_0x50f41d._0x43bd7b,0x522)](_0x371c0c=>({'id':_0x371c0c['id'],'content':_0x371c0c[_0x3f020b(0x497,0x4ea,0x390,0x594)],'status':_0x371c0c[_0x3f020b(0x5cd,0x6c1,0x6fb,0x689)],'priority':_0x371c0c[_0x3f020b(0x41b,0x2b9,0x3f9,0x2a4)],'sessionId':_0x46fb9d,'createdAt':_0x371c0c[_0x45d771(0x3f1,0x48d,0x464,0x352)]||_0xbd7270,'updatedAt':_0xbd7270}));_0x598484[_0x3f020b(_0x50f41d._0x204eca,0x3f1,_0x50f41d._0x110160,_0x50f41d._0x5bc255)](_0x46fb9d,_0x28e96d);const _0x8a5c41=_0x598484[_0x3f020b(0x475,_0x50f41d._0x139ff8,0x455,_0x50f41d._0xce9ea1)](_0x46fb9d);function _0x45d771(_0x5632b6,_0x4929dd,_0x5a8721,_0x45ea79){return _0x3ff264(_0x4929dd,_0x4929dd-0x16c,_0x5a8721-_0x2fc07d._0x366d7f,_0x5a8721- -_0x2fc07d._0x219c89);}function _0x3f020b(_0x119480,_0x20193e,_0x8ba8d0,_0x586bc4){return _0x3ff264(_0x20193e,_0x20193e-0x1ae,_0x8ba8d0-_0x22979c._0x424a0b,_0x119480- -_0x22979c._0x16ea69);}const _0x3a276b=_0x28e96d['length']>0x0&&_0x28e96d[_0x3f020b(_0x50f41d._0x44581c,0x657,0x5cc,0x558)](_0x54246e=>_0x54246e[_0x3f020b(0x5cd,0x4f3,0x59f,0x637)]===_0x45d771(0x374,0x5e9,0x463,0x332));return createToolOutput(createOutputText(_0x28e96d,_0x3a276b),createStructuredResult(_0x46fb9d,_0x28e96d,_0x8a5c41,_0x3a276b));}});}import{mkdir as _0x5f2968,writeFile as _0x22d13a}from'fs/promises';import*as _0x4d4d96 from'path';function sanitizeFileName(_0x525977){const _0x3efed2={_0x1ed6a5:0x1bb,_0x4b7929:0x12b,_0x532a11:0x236,_0x42c55c:0x2dc},_0x339a1a={_0x244291:0xea};function _0x4bd389(_0x5023ec,_0x523899,_0x339213,_0x43a912){return _0x55c88d(_0x5023ec-_0x339a1a._0x244291,_0x5023ec- -0x1c1,_0x339213,_0x43a912-0x54);}return _0x525977[_0x4bd389(_0x3efed2._0x1ed6a5,_0x3efed2._0x4b7929,_0x3efed2._0x532a11,_0x3efed2._0x42c55c)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x73ce71,_0x51c4b1){const _0xfc3d4e={_0x442993:0x499,_0x4d8fad:0x367,_0x119d8d:0x3a2,_0x89a654:0x29b,_0x47103b:0x2fc,_0x2813a0:0x41d,_0x14b2f3:0x32e,_0xfb5b98:0x1ac,_0x50daeb:0x22f,_0x431e59:0x28d,_0xccea6b:0x4cf,_0x477c1c:0x3f4,_0x422a96:0x28f,_0x2ffcd2:0x2aa,_0x348df2:0x3f5,_0x1c594e:0x404,_0x13b8cd:0x349,_0x1b7f7f:0x2ba,_0x290793:0x3ce,_0x17e279:0x41b,_0x5cb1bf:0x419,_0x2264e7:0x432,_0x4431d6:0x31e,_0xb5c481:0x1e4,_0x4e767f:0x57c,_0x2dde96:0x553,_0x2dd504:0x43c,_0x4a27c0:0x53a,_0x568b95:0x5b0,_0x2952b9:0x5e8,_0x1bb40b:0x5a0,_0x58dac0:0x2e1,_0x579992:0x27d,_0x47dff2:0x2b7,_0x533f7e:0x3aa,_0x17d7e6:0x2d4,_0x4c63dc:0x389,_0x5b6383:0x32e,_0x512a54:0x302,_0x3d7312:0x40e,_0x2b3782:0x350,_0x59b74b:0x40d,_0x374ef7:0x1db,_0x5647c0:0x3b5,_0x46d1e9:0x331,_0x9bc216:0x33f,_0x1c70d8:0x3a1,_0x40e66e:0x3cd,_0xc3997b:0x4f2,_0x7319f9:0x3a2,_0x182a88:0x543,_0x2558be:0x361,_0x20b100:0x320,_0x5db56f:0x429,_0x18af8f:0x456,_0x38aaec:0x1cc},_0x3146fd={_0x25d88d:0xf5},_0x22d248={_0x46c7c1:0x13,_0x9c35de:0x37},{maxBytes:_0x321a84,sessionDir:_0x5b3e88}=_0x51c4b1;if(!_0x73ce71[_0x4b0ed3(0x29c,0x257,_0xfc3d4e._0x442993,_0xfc3d4e._0x4d8fad)]||Buffer['byteLength'](_0x73ce71[_0x4b0ed3(_0xfc3d4e._0x119d8d,0x23f,0x2c0,0x367)],'utf8')<=_0x321a84)return _0x73ce71;const _0x41364b=Buffer[_0x293f1d(_0xfc3d4e._0x89a654,0x165,_0xfc3d4e._0x47103b,_0xfc3d4e._0x2813a0)](_0x73ce71[_0x293f1d(_0xfc3d4e._0x14b2f3,0x1ae,0x229,_0xfc3d4e._0xfb5b98)],'utf8');if(!_0x5b3e88){const _0x51c4a5=_0x73ce71[_0x4b0ed3(0x46f,0x234,_0xfc3d4e._0x50daeb,_0xfc3d4e._0x4d8fad)][_0x4b0ed3(0x18f,_0xfc3d4e._0x431e59,0x39c,0x2ce)](0x0,_0x321a84);return{..._0x73ce71,'output':_0x51c4a5+(_0x293f1d(0x4a0,_0xfc3d4e._0xccea6b,_0xfc3d4e._0x477c1c,0x4be)+_0x321a84+_0x4b0ed3(_0xfc3d4e._0x422a96,_0xfc3d4e._0x2ffcd2,0x246,0x2f6)+_0x41364b+_0x293f1d(_0xfc3d4e._0x348df2,0x44b,0x2fc,0x538)),'meta':{..._0x73ce71[_0x4b0ed3(_0xfc3d4e._0x1c594e,_0xfc3d4e._0x13b8cd,_0xfc3d4e._0x1b7f7f,_0xfc3d4e._0x290793)],'truncated':!![],'originalBytes':_0x41364b,'transforms':[..._0x73ce71['meta'][_0x4b0ed3(_0xfc3d4e._0x17e279,_0xfc3d4e._0x5cb1bf,_0xfc3d4e._0x2264e7,_0xfc3d4e._0x4431d6)],_0x293f1d(0x343,_0xfc3d4e._0xb5c481,0x3cd,0x2f3)]}};}const _0x34ce4b=_0x73ce71[_0x293f1d(_0xfc3d4e._0x4e767f,_0xfc3d4e._0x2dde96,0x5fb,0x5dc)]+'_'+sanitizeFileName(_0x73ce71[_0x293f1d(_0xfc3d4e._0x2dd504,_0xfc3d4e._0x4a27c0,_0xfc3d4e._0x568b95,0x424)])+_0x293f1d(0x557,0x61d,_0xfc3d4e._0x2952b9,_0xfc3d4e._0x1bb40b),_0x315815=_0x4d4d96[_0x293f1d(0x3c2,_0xfc3d4e._0x58dac0,_0xfc3d4e._0x579992,0x393)](_0x5b3e88,_0x34ce4b);await _0x5f2968(_0x5b3e88,{'recursive':!![]});function _0x4b0ed3(_0x3fda3a,_0x3eee48,_0x1be7c9,_0x12a7dd){return _0x55c88d(_0x3fda3a-_0x22d248._0x46c7c1,_0x12a7dd-0x9,_0x3fda3a,_0x12a7dd-_0x22d248._0x9c35de);}await _0x22d13a(_0x315815,_0x73ce71['output'],_0x4b0ed3(_0xfc3d4e._0x47dff2,0x483,0x339,0x3ef));let _0x5518a7=_0x73ce71[_0x4b0ed3(0x34c,0x476,0x3cf,_0xfc3d4e._0x4d8fad)][_0x293f1d(0x295,0x200,_0xfc3d4e._0x533f7e,_0xfc3d4e._0x17d7e6)](0x0,_0x321a84);const _0x46d064=_0x5518a7['lastIndexOf']('\x0a');_0x46d064>_0x321a84*0.5&&(_0x5518a7=_0x5518a7[_0x4b0ed3(_0xfc3d4e._0x4c63dc,_0xfc3d4e._0x5b6383,_0xfc3d4e._0x2ffcd2,0x2ce)](0x0,_0x46d064));const _0x57d007=['',_0x4b0ed3(_0xfc3d4e._0x512a54,0x52e,0x358,_0xfc3d4e._0x3d7312),_0x293f1d(0x2e4,_0xfc3d4e._0x2b3782,_0xfc3d4e._0x59b74b,_0xfc3d4e._0x374ef7)+_0x321a84+_0x4b0ed3(0x35c,0x25f,0x294,_0xfc3d4e._0x5647c0)+_0x41364b+'\x20bytes).',_0x4b0ed3(0x246,0x451,_0xfc3d4e._0x46d1e9,_0xfc3d4e._0x9bc216)+_0x315815,_0x293f1d(0x330,_0xfc3d4e._0x1c70d8,_0xfc3d4e._0x40e66e,0x28d),_0x293f1d(0x545,0x440,_0xfc3d4e._0xc3997b,0x47e)]['join']('\x0a');function _0x293f1d(_0x13af41,_0x36898b,_0x5ef184,_0x473031){return _0x1e45aa(_0x13af41-_0x3146fd._0x25d88d,_0x36898b-0x139,_0x13af41- -0x2e1,_0x36898b);}return{..._0x73ce71,'output':_0x5518a7+_0x57d007,'meta':{..._0x73ce71[_0x293f1d(0x395,_0xfc3d4e._0x7319f9,0x326,0x287)],'truncated':!![],'originalBytes':_0x41364b,'transforms':[..._0x73ce71[_0x4b0ed3(_0xfc3d4e._0x182a88,_0xfc3d4e._0x2558be,_0xfc3d4e._0x20b100,0x3ce)][_0x4b0ed3(_0xfc3d4e._0x5db56f,_0xfc3d4e._0x18af8f,_0xfc3d4e._0x38aaec,0x31e)],_0x4b0ed3(0x391,0x482,0x451,0x37c)]}};}function createUpdateTopicTool(){const _0xaa8686={_0x46533d:0x652,_0x3d78f6:0x609,_0x1e1937:0x684,_0x4ed07e:0x768},_0x3c4cf3={_0x1d4e11:0x574,_0x5356ac:0x534,_0x3f6834:0x785,_0x1bd8b0:0x74b,_0x18a2eb:0x63,_0xd5efe1:0xd4,_0x3474f2:0x744},_0x2f437c={_0x2874d3:0x190},_0x21a2cf={_0x4229b4:0x2f0},_0x4f0a00={_0x34dea4:0xb6,_0x1ce04d:0x90};function _0x3c6613(_0x256534,_0xff3a41,_0x83e913,_0x221221){return _0x55c88d(_0x256534-_0x4f0a00._0x34dea4,_0x221221-_0x4f0a00._0x1ce04d,_0x83e913,_0x221221-0x1a6);}function _0x2fb685(_0x4009d0,_0x2d9ea3,_0x10ac84,_0xdec74e){return _0x55c88d(_0x4009d0-0x60,_0xdec74e-_0x21a2cf._0x4229b4,_0x2d9ea3,_0xdec74e-0x1b7);}return defineTool({'name':'UpdateTopic','description':_0x3c6613(0x399,_0xaa8686._0x46533d,_0xaa8686._0x3d78f6,0x516),'inputSchema':{'type':'object','properties':{'topic':{'type':_0x2fb685(_0xaa8686._0x1e1937,_0xaa8686._0x4ed07e,0x78d,0x75e)}},'required':['topic']},async *'execute'(_0x3949e0,_0x19b29d){const {topic:_0x55c510}=_0x3949e0;function _0x38fcde(_0x1df4b0,_0x488e42,_0x3bf82c,_0x4d1005){return _0x3c6613(_0x1df4b0-_0x2f437c._0x2874d3,_0x488e42-0xbe,_0x4d1005,_0x488e42- -0x55e);}if(typeof _0x55c510!==_0x2633b5(_0x3c4cf3._0x1d4e11,0x62a,0x6ab,0x770)||_0x55c510[_0x2633b5(_0x3c4cf3._0x5356ac,0x6ac,_0x3c4cf3._0x3f6834,_0x3c4cf3._0x1bd8b0)]()[_0x38fcde(0xdc,_0x3c4cf3._0x18a2eb,-0x74,-_0x3c4cf3._0xd5efe1)]===0x0)throw new ToolExecutionError('topic\x20must\x20be\x20a\x20non-empty\x20string',{'error':'invalid_topic'});const _0x300123=_0x55c510['trim']();_0x19b29d['setTopic']?.(_0x300123);function _0x2633b5(_0x1b7001,_0x5ab921,_0x4ce2aa,_0x1ac138){return _0x2fb685(_0x1b7001-0x141,_0x1b7001,_0x4ce2aa-0x2e,_0x5ab921- -0x134);}return yield createToolOutput(_0x2633b5(_0x3c4cf3._0x3474f2,0x604,0x5a5,0x55b)+_0x300123+'\x22',{'topic':_0x300123}),void 0x0;}});}import{readFile as _0x23d847,stat as _0x2d820a}from'fs/promises';import*as _0x26c6e2 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x1e45aa(0x557,0x716,0x63f,0x695),_0x55c88d(0x4a2,0x3cd,0x39b,0x27c),_0x1e45aa(0x548,0x5c2,0x580,0x50f),'original']),PNG_SIGNATURE=Buffer[_0x1e45aa(0x6c0,0x86b,0x7c0,0x7bd)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x3cd3a9,_0x550f96){const _0x2fe6d5={_0x46fb5e:0x81a,_0x72557c:0x8a6,_0x163bc5:0x8b0,_0x2a43b6:0xf1,_0x2a21df:0x41,_0x46ec39:0x8df,_0x4bbb8e:0x84f,_0x5544ab:0x775,_0x48d54f:0x101,_0x1b7ae7:0x3e,_0x101563:0x103,_0x554965:0x163,_0x5ce896:0x39d,_0x1ebfd7:0x34e,_0xc3034d:0x13f,_0x5ca2d9:0x355,_0x19455f:0x2be,_0x39eeb6:0x1f9,_0x371f2c:0x27f,_0x465c6a:0x82,_0x103b18:0x229,_0x10c546:0x19a,_0x18723a:0xa8,_0x392409:0x263,_0x42ab3c:0xc6,_0x1b74e3:0x21,_0x205de5:0x17a,_0x5d6b37:0x24b,_0x584d1f:0x593,_0x57a89a:0x4f3,_0x483982:0x5c9,_0x1e1898:0x6ea,_0x55479d:0x2d5,_0x5ecae0:0x124,_0x403dc1:0x199,_0x11c006:0x883,_0x124761:0x3b6,_0x22b1e3:0x2f9,_0x40c096:0x370,_0x2f940b:0x2fe,_0x4a8ebe:0x79f,_0x54294a:0x61b},_0x4e88fe={_0x4aef50:0x174,_0x4c9106:0x552},_0x3b43f5={_0xeffef0:0x79,_0x2ebbf:0x2fd,_0x262c00:0x4e};if(_0x3cd3a9[_0x64b1b6(_0x2fe6d5._0x46fb5e,_0x2fe6d5._0x72557c,_0x2fe6d5._0x163bc5,0x94c)](0x0,0x8)[_0x40ed25(-0x17,_0x2fe6d5._0x2a43b6,-0x6c,_0x2fe6d5._0x2a21df)](PNG_SIGNATURE))return'image/png';if(_0x3cd3a9[0x0]===0xff&&_0x3cd3a9[0x1]===0xd8&&_0x3cd3a9[0x2]===0xff)return _0x64b1b6(0x962,_0x2fe6d5._0x46ec39,_0x2fe6d5._0x4bbb8e,_0x2fe6d5._0x5544ab);const _0x2217b2=_0x3cd3a9['subarray'](0x0,0x6)['toString'](_0x40ed25(0x126,_0x2fe6d5._0x48d54f,_0x2fe6d5._0x1b7ae7,_0x2fe6d5._0x101563));if(_0x2217b2===_0x40ed25(_0x2fe6d5._0x554965,_0x2fe6d5._0x5ce896,_0x2fe6d5._0x1ebfd7,0x271)||_0x2217b2===_0x40ed25(0x28b,0x93,0x9e,_0x2fe6d5._0xc3034d))return _0x40ed25(0x18a,_0x2fe6d5._0x5ca2d9,0x2b5,0x2fe);if(_0x3cd3a9['subarray'](0x0,0x4)[_0x40ed25(_0x2fe6d5._0x19455f,0xb5,_0x2fe6d5._0x39eeb6,0x17b)]('ascii')===_0x40ed25(_0x2fe6d5._0x371f2c,_0x2fe6d5._0x465c6a,_0x2fe6d5._0x103b18,_0x2fe6d5._0x10c546)&&_0x3cd3a9['subarray'](0x8,0xc)[_0x40ed25(0x2d4,0x13e,_0x2fe6d5._0x18723a,0x17b)](_0x40ed25(_0x2fe6d5._0x392409,_0x2fe6d5._0x42ab3c,-_0x2fe6d5._0x1b74e3,_0x2fe6d5._0x101563))===_0x40ed25(_0x2fe6d5._0x205de5,0x233,0x135,_0x2fe6d5._0x5d6b37))return _0x64b1b6(_0x2fe6d5._0x584d1f,_0x2fe6d5._0x57a89a,0x61b,0x762);function _0x64b1b6(_0x12b338,_0x3d4532,_0x263955,_0x4ab903){return _0x55c88d(_0x12b338-_0x3b43f5._0xeffef0,_0x263955-_0x3b43f5._0x2ebbf,_0x4ab903,_0x4ab903-_0x3b43f5._0x262c00);}const _0x4f2f3f=_0x26c6e2['extname'](_0x550f96)[_0x64b1b6(_0x2fe6d5._0x483982,_0x2fe6d5._0x1e1898,0x678,0x5dc)]();function _0x40ed25(_0x5df8b3,_0x5228e2,_0xa5dc0c,_0x1bcdd1){return _0x1e45aa(_0x5df8b3-0x152,_0x5228e2-_0x4e88fe._0x4aef50,_0x1bcdd1- -_0x4e88fe._0x4c9106,_0xa5dc0c);}if(_0x4f2f3f===_0x40ed25(_0x2fe6d5._0x55479d,0x6f,_0x2fe6d5._0x5ecae0,_0x2fe6d5._0x403dc1))return'image/png';if(_0x4f2f3f==='.jpg'||_0x4f2f3f===_0x64b1b6(0x680,_0x2fe6d5._0x11c006,0x74a,0x863))return _0x40ed25(_0x2fe6d5._0x124761,0x369,_0x2fe6d5._0x22b1e3,0x2b1);if(_0x4f2f3f==='.gif')return _0x40ed25(_0x2fe6d5._0x40c096,0x1b6,0x308,_0x2fe6d5._0x2f940b);if(_0x4f2f3f==='.webp')return _0x64b1b6(0x739,_0x2fe6d5._0x4a8ebe,_0x2fe6d5._0x54294a,0x6c8);return void 0x0;}function normalizeDetail(_0x235b0d){const _0x2c0739={_0x39134b:0xf6,_0x3df6f2:0x4a,_0x3c021e:0x1c},_0x4e4be2={_0x519267:0x145,_0x1c62b6:0x45d,_0x1b5e1b:0x10b};if(_0x235b0d===void 0x0)return void 0x0;const _0x3ba4cb=_0x235b0d['trim']()['toLowerCase']();function _0x1a851e(_0x44f694,_0x771937,_0x11c255,_0x1759c7){return _0x55c88d(_0x44f694-_0x4e4be2._0x519267,_0x11c255- -_0x4e4be2._0x1c62b6,_0x771937,_0x1759c7-_0x4e4be2._0x1b5e1b);}if(!SUPPORTED_DETAILS[_0x1a851e(-0x76,-_0x2c0739._0x39134b,_0x2c0739._0x3df6f2,_0x2c0739._0x3c021e)](_0x3ba4cb))throw new ToolExecutionError('Unsupported\x20image\x20detail\x20level:\x20'+_0x235b0d,{'detail':_0x235b0d});return _0x3ba4cb;}function createViewFileTool(_0x214f6f={}){const _0x2a8171={_0x5726b8:0x34e,_0x45b984:0x348,_0x1a7ad2:0xe0,_0x1bf71e:0x31c,_0x98700:0x2d4,_0x2de52e:0x24d,_0x1470e3:0x10b,_0x436389:0xc8,_0xaa65a5:0x8f,_0x118c6c:0x2c5,_0x4bc037:0x37f,_0xe4efe0:0x4dd,_0x17c45f:0xe7},_0x73f82d={_0x56c20a:0x2ad,_0x27326e:0x22f,_0x40c931:0x324,_0x3bf81e:0x2e1,_0x5ed5d8:0x4ff,_0x54f92e:0x66e,_0x58473d:0x355,_0x5303a7:0x2a0,_0x4d4215:0x414,_0xdd0409:0x28a,_0x3b3623:0x425,_0x56ee6b:0x668,_0x1e64f7:0x78b,_0x2c3356:0x602,_0x1df698:0x771,_0x3b5b63:0x219,_0x159458:0x48a,_0x2f203a:0x417,_0x2ce28e:0x160,_0x13b32a:0x7a,_0x5c87cd:0x6,_0x6fd7c3:0x2be,_0x4b22c9:0x320,_0x5a6e7d:0x24e,_0x5b2b48:0x3f6,_0xee2787:0x3b6,_0x2747bd:0x18c,_0x36a474:0x3c9,_0x55d44d:0x41c,_0x23d3ad:0x576,_0x3b3809:0x580,_0x5b4035:0x439,_0x2c3945:0x135,_0x4a9b36:0x249,_0x30c424:0x14e,_0x3ca1cc:0x242,_0x11113a:0x7d6,_0x48d079:0x5da,_0x5567a4:0x276,_0x5bc58a:0x153,_0x5a8fe2:0x383,_0x324472:0x409,_0x5bc149:0x2c2,_0xc41879:0x2dd,_0x5fa86:0x3b4,_0x2c7b6b:0x244,_0x1b3497:0x4fc,_0x203c35:0x46b,_0x4acc72:0x631,_0x1d2db8:0x73c,_0x3de521:0x4b3,_0xbbdd43:0x4eb,_0x2a310e:0x729,_0x2fda6f:0x3c5,_0x454b4e:0x304,_0x12f0d9:0x16f,_0x5a3030:0x61d,_0x44d549:0x681,_0x2c99ca:0x63c,_0x4fbee3:0x4d0,_0x448af2:0x756},_0x3b6357={_0x317f51:0x4e,_0xe18b41:0xa0},_0x2f36aa={_0x52891b:0x110,_0x50c874:0x742},_0x2d9120=_0x26c6e2['resolve'](_0x214f6f[_0x59dd00(0x3d2,_0x2a8171._0x5726b8,0x333,0x306)]??process[_0x59dd00(_0x2a8171._0x45b984,0x21f,_0x2a8171._0x1a7ad2,0x9e)]()),_0x24cad6=_0x214f6f['allowedDirs']??[];function _0x2a6680(_0x1c3674,_0x3cf5ea,_0x4dfbbf,_0x33faf0){return _0x1e45aa(_0x1c3674-_0x2f36aa._0x52891b,_0x3cf5ea-0x77,_0x33faf0- -_0x2f36aa._0x50c874,_0x4dfbbf);}const _0x3bfe0d=_0x214f6f[_0x59dd00(_0x2a8171._0x1bf71e,_0x2a8171._0x98700,_0x2a8171._0x2de52e,0x23d)]??DEFAULT_MAX_BYTES,_0x30ae33=_0x214f6f[_0x2a6680(-0xaf,-_0x2a8171._0x1470e3,-0x59,0x4e)]??'ViewFile';function _0x59dd00(_0x50091c,_0x5ca8a4,_0x3aa682,_0x16e6e4){return _0x1e45aa(_0x50091c-_0x3b6357._0x317f51,_0x5ca8a4-_0x3b6357._0xe18b41,_0x5ca8a4- -0x3a0,_0x3aa682);}return defineTool({'name':_0x30ae33,'description':'View\x20an\x20image\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories\x20so\x20the\x20model\x20can\x20inspect\x20its\x20visual\x20content.\x20Supports\x20PNG,\x20JPEG,\x20WebP,\x20and\x20GIF\x20images.\x20Use\x20this\x20for\x20screenshots,\x20diagrams,\x20photos,\x20and\x20other\x20image\x20files;\x20use\x20FileRead\x20for\x20text\x20files.','inputSchema':{'type':'object','properties':{'path':{'type':_0x2a6680(_0x2a8171._0x436389,0xcb,_0x2a8171._0xaa65a5,-0x23)},'detail':{'type':_0x59dd00(_0x2a8171._0x118c6c,_0x2a8171._0x4bc037,0x26e,_0x2a8171._0xe4efe0)}},'required':[_0x2a6680(-0x12,0xcb,-_0x2a8171._0x17c45f,-0x68)]},async *'execute'(_0x1b6be2){const _0x4224b0={_0x39c7f8:0x13d,_0x4d7988:0x14b},_0x19278e=resolveAllowedPath(_0x2d9120,_0x24cad6,_0x1b6be2[_0x5eb26e(_0x73f82d._0x56c20a,_0x73f82d._0x27326e,0x192,0x141)]);await assertWorkspaceFile(_0x19278e);const _0xba9500=await _0x2d820a(_0x19278e);if(_0xba9500[_0x4978bc(0x3cb,0x336,_0x73f82d._0x40c931,_0x73f82d._0x3bf81e)]>_0x3bfe0d)throw new ToolExecutionError(_0x4978bc(_0x73f82d._0x5ed5d8,_0x73f82d._0x54f92e,0x5f2,0x4f1)+_0x1b6be2[_0x5eb26e(0x2ad,_0x73f82d._0x58473d,0x27a,_0x73f82d._0x5303a7)],{'path':_0x1b6be2[_0x5eb26e(0x2ad,_0x73f82d._0x4d4215,_0x73f82d._0xdd0409,_0x73f82d._0x3b3623)],'maxBytes':_0x3bfe0d,'size':_0xba9500['size']});const _0x3e72cf=await _0x23d847(_0x19278e);function _0x5eb26e(_0x4ece3b,_0x4845dc,_0x2e5753,_0x13be88){return _0x2a6680(_0x4ece3b-0xc0,_0x4845dc-0x7,_0x13be88,_0x4ece3b-0x315);}const _0x3f4402=detectImageMediaType(_0x3e72cf,_0x19278e);if(!_0x3f4402)throw new ToolExecutionError(_0x4978bc(_0x73f82d._0x56ee6b,_0x73f82d._0x1e64f7,_0x73f82d._0x2c3356,_0x73f82d._0x1df698)+_0x1b6be2[_0x4978bc(0x52a,0x5ec,0x5f9,0x512)],{'path':_0x1b6be2[_0x5eb26e(0x2ad,0x336,0x3c3,_0x73f82d._0x3b5b63)],'supported':[_0x4978bc(0x5ac,_0x73f82d._0x159458,0x6ad,0x606),_0x5eb26e(0x2d1,0x2c6,_0x73f82d._0x2f203a,0x300),_0x5eb26e(_0x73f82d._0x2ce28e,0x100,_0x73f82d._0x13b32a,_0x73f82d._0x5c87cd),_0x5eb26e(_0x73f82d._0x6fd7c3,_0x73f82d._0x4b22c9,_0x73f82d._0x5a6e7d,_0x73f82d._0x5b2b48),'.webp']});const _0x4a2e92=normalizeDetail(_0x1b6be2[_0x4978bc(0x4e4,0x596,0x474,_0x73f82d._0xee2787)]),_0x3bec28=['Viewed\x20image\x20file:\x20'+_0x1b6be2[_0x5eb26e(0x2ad,_0x73f82d._0x2747bd,0x42c,_0x73f82d._0x36a474)],_0x5eb26e(_0x73f82d._0x55d44d,_0x73f82d._0x23d3ad,_0x73f82d._0x3b3809,_0x73f82d._0x5b4035)+_0x3f4402,_0x5eb26e(0x135,_0x73f82d._0x2c3945,_0x73f82d._0x4a9b36,0x21)+_0xba9500[_0x5eb26e(_0x73f82d._0x30c424,0x27,_0x73f82d._0x3ca1cc,0x1ad)]+'\x20bytes']['concat'](_0x4a2e92?[_0x4978bc(0x675,_0x73f82d._0x11113a,0x6a4,_0x73f82d._0x48d079)+_0x4a2e92]:[])[_0x5eb26e(_0x73f82d._0x5567a4,0x317,_0x73f82d._0x5bc58a,_0x73f82d._0x5a8fe2)]('\x0a'),_0x688ffd=[{'type':_0x4978bc(_0x73f82d._0x324472,_0x73f82d._0x5bc149,_0x73f82d._0xc41879,0x4dd),'source':{'type':_0x5eb26e(_0x73f82d._0x5fa86,0x3af,0x3c1,_0x73f82d._0x2c7b6b),'media_type':_0x3f4402,'data':_0x3e72cf[_0x4978bc(0x51d,_0x73f82d._0x1b3497,_0x73f82d._0x203c35,0x3e7)](_0x4978bc(_0x73f82d._0x4acc72,_0x73f82d._0x1d2db8,_0x73f82d._0x3de521,_0x73f82d._0xbbdd43))}},{'type':_0x4978bc(0x5cd,0x572,0x495,_0x73f82d._0x2a310e),'text':_0x3bec28}];yield createToolOutput(_0x3bec28,{'path':_0x1b6be2['path'],'resolvedPath':_0x19278e,'created':_0xba9500[_0x4978bc(0x504,_0x73f82d._0x2fda6f,0x43f,0x3b5)]['toISOString'](),'modified':_0xba9500[_0x5eb26e(0x256,_0x73f82d._0x454b4e,0x15f,_0x73f82d._0x12f0d9)][_0x4978bc(_0x73f82d._0x5a3030,_0x73f82d._0x44d549,0x65f,_0x73f82d._0x2c99ca)](),'size':_0xba9500['size'],'mimeType':_0x3f4402,'encoding':_0x4978bc(0x631,0x592,_0x73f82d._0x4fbee3,_0x73f82d._0x448af2),..._0x4a2e92?{'detail':_0x4a2e92}:{}},_0x688ffd);function _0x4978bc(_0x15d4ae,_0x2c277c,_0x5961c9,_0x1f2422){return _0x2a6680(_0x15d4ae-_0x4224b0._0x39c7f8,_0x2c277c-_0x4224b0._0x4d7988,_0x1f2422,_0x15d4ae-0x592);}return void 0x0;}});}import _0x47dfee from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x1bb2c9=>{const _0x176ba5={_0x20a5f2:0x5da},_0x43ce2c={_0x2a5c71:0x1ab};function _0x431a8a(_0x5ee998,_0x41e531,_0x3e6986,_0x187a36){return _0x55c88d(_0x5ee998-_0x43ce2c._0x2a5c71,_0x5ee998-0x206,_0x187a36,_0x187a36-0x1ab);}const {lookup:_0x5917e7}=await import(_0x431a8a(0x621,_0x176ba5._0x20a5f2,0x517,0x5cd));return _0x5917e7(_0x1bb2c9,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0x3bec12){const _0x4e84ad={_0x2529c8:0x82f,_0x526150:0x6bb,_0x1aefef:0x98b},_0x3268c4={_0x2bdf4a:0xb2},_0x297b3e={_0x24471d:0x28c,_0x51045d:0x12e},_0x134a12=_0x3bec12['split']('.');if(_0x134a12[_0x360353(_0x4e84ad._0x2529c8,0x886,0x814,_0x4e84ad._0x526150)]!==0x4)return null;function _0x61d6f(_0x2f85ff,_0x4088d6,_0x1a56dc,_0x7d1fed){return _0x55c88d(_0x2f85ff-0xeb,_0x4088d6-_0x297b3e._0x24471d,_0x7d1fed,_0x7d1fed-_0x297b3e._0x51045d);}function _0x360353(_0x3ee361,_0x3f1d13,_0x304f5c,_0x38272c){return _0x55c88d(_0x3ee361-_0x3268c4._0x2bdf4a,_0x304f5c-0x2e3,_0x3f1d13,_0x38272c-0x190);}let _0xbba1=0x0;for(const _0x377ece of _0x134a12){if(!/^\d{1,3}$/[_0x360353(0x7f5,0x754,0x842,_0x4e84ad._0x1aefef)](_0x377ece))return null;const _0x112ae1=Number(_0x377ece);if(_0x112ae1>0xff)return null;_0xbba1=_0xbba1*0x100+_0x112ae1;}return _0xbba1>>>0x0;}function isBlockedIpv4(_0x2b5884){const _0x59e84d={_0x32094a:0x158,_0x46d51e:0xb0,_0xcbc25d:0x19,_0x539557:0x27a,_0x4e57c5:0x4f,_0x3eb3a2:0x27,_0x17d52a:0xf7,_0x59ef32:0xba,_0x4eb408:0x44,_0x13b0bf:0xc6,_0x2f9cc8:0x3e,_0x117f10:0x221,_0x1c9697:0x298,_0xec916b:0x205,_0x4b3bcb:0x1d4,_0x1b6867:0xb8,_0x39c44d:0xcd,_0x20a75b:0x10f,_0x4d02c9:0x2ce,_0x40e3ee:0x2a5,_0x52cd45:0x15c},_0x10d1b2={_0x487740:0xfd,_0x17c34a:0x4a},_0x2b98b8={_0x5f9668:0x63};function _0x31e1b1(_0x1977c1,_0xd0750c,_0x110c5c,_0x3e7cb8){return _0x55c88d(_0x1977c1-_0x2b98b8._0x5f9668,_0x3e7cb8- -0x475,_0xd0750c,_0x3e7cb8-0xd9);}const _0x5dd435=ipv4ToInt(_0x2b5884);if(_0x5dd435===null)return!![];const _0xb70e14=(_0x312b8b,_0x5568bd)=>{const _0x3ac496=ipv4ToInt(_0x312b8b);if(_0x3ac496===null)return![];const _0x3759db=_0x5568bd===0x0?0x0:0xffffffff<<0x20-_0x5568bd>>>0x0;return(_0x5dd435&_0x3759db)===(_0x3ac496&_0x3759db);};function _0x4e7364(_0x4a660e,_0x13dff3,_0x5ecd13,_0x31191a){return _0x1e45aa(_0x4a660e-_0x10d1b2._0x487740,_0x13dff3-_0x10d1b2._0x17c34a,_0x5ecd13- -0x633,_0x13dff3);}return _0xb70e14(_0x31e1b1(_0x59e84d._0x32094a,0x196,_0x59e84d._0x46d51e,_0x59e84d._0xcbc25d),0x8)||_0xb70e14(_0x31e1b1(-_0x59e84d._0x539557,-0x2f,-0x5,-0x137),0x8)||_0xb70e14('100.64.0.0',0xa)||_0xb70e14(_0x4e7364(0xa8,-_0x59e84d._0x4e57c5,-_0x59e84d._0x3eb3a2,-_0x59e84d._0x17d52a),0x8)||_0xb70e14(_0x4e7364(-0x112,-0x239,-_0x59e84d._0x59ef32,_0x59e84d._0x4eb408),0x10)||_0xb70e14(_0x31e1b1(0x24,0xb6,0x18a,0x4b),0xc)||_0xb70e14(_0x4e7364(_0x59e84d._0x13b0bf,0x199,0x17,_0x59e84d._0x2f9cc8),0x18)||_0xb70e14(_0x31e1b1(-0x253,-_0x59e84d._0x117f10,-_0x59e84d._0x1c9697,-0x14d),0x10)||_0xb70e14(_0x31e1b1(-0xc5,_0x59e84d._0xec916b,_0x59e84d._0x4b3bcb,_0x59e84d._0x1b6867),0xf)||_0xb70e14(_0x4e7364(-0x6e,_0x59e84d._0x39c44d,0x1a,-_0x59e84d._0x20a75b),0x4)||_0xb70e14(_0x31e1b1(-_0x59e84d._0x4d02c9,-0x173,-_0x59e84d._0x40e3ee,-_0x59e84d._0x52cd45),0x4);}function expandIpv6(_0x329e09){const _0xd1a577={_0xd0cb16:0x41,_0x211342:0x2ab,_0x41ec8c:0x135,_0x127408:0x50,_0x2cd3c2:0xe7,_0x3e6bc4:0xf,_0x1d093e:0x23,_0x2222e8:0x209,_0x109f16:0x158,_0x3556a3:0x28d,_0x2b1e76:0x21c,_0x59ba34:0x2f3,_0x314411:0x17c,_0x4cf2db:0x95,_0x2ff955:0x176,_0x3e6c4e:0x3b3,_0x5788c9:0x1a4,_0x757093:0x27c,_0x2f0c98:0x23c,_0x14fc48:0x2bc,_0x33197b:0x47,_0x1d73b7:0x65},_0x4e4dcd={_0x52a793:0xa8,_0x569bc6:0x68a},_0x1a280={_0x548e07:0xf0,_0x1743ec:0xaf,_0xc59ae3:0x526};let _0x2ddf36=_0x329e09,_0x393657;const _0x23ec2e=_0x2ddf36[_0x3ac3ec(_0xd1a577._0xd0cb16,-0x57,-0x10,-0x9)](':');_0x2ddf36[_0x4f4004(0x50,-0x8e,0x92,-0x132)](_0x23ec2e+0x1)[_0x4f4004(0x283,0x3f9,_0xd1a577._0x211342,0x136)]('.')&&(_0x393657=_0x2ddf36[_0x4f4004(0x50,-0x98,0x17e,-_0xd1a577._0x41ec8c)](_0x23ec2e+0x1),_0x2ddf36=_0x2ddf36[_0x4f4004(_0xd1a577._0x127408,_0xd1a577._0x2cd3c2,_0xd1a577._0x3e6bc4,-0x29)](0x0,_0x23ec2e+0x1));const _0x4e482a=_0x2ddf36[_0x3ac3ec(0xea,0x51,_0xd1a577._0x1d093e,0xf8)]('::');if(_0x4e482a[_0x3ac3ec(_0xd1a577._0x2222e8,_0xd1a577._0x109f16,_0xd1a577._0x3556a3,0x128)]>0x2)return null;const _0x26ea53=_0x1f3ffa=>_0x1f3ffa[_0x3ac3ec(-0xe,0x51,-0x102,0x1bf)](':')['filter'](_0x2e054c=>_0x2e054c[_0x4f4004(0x2bc,0x1f0,0x1dc,0x392)]>0x0)[_0x3ac3ec(-0xae,0xaf,-0x6d,0x10b)](_0x561f7d=>Number[_0x4f4004(0x115,0x113,0x7c,0x1a5)](_0x561f7d,0x10));function _0x4f4004(_0x3cd403,_0x396dcd,_0x46b5b8,_0x183fe9){return _0x1e45aa(_0x3cd403-_0x1a280._0x548e07,_0x396dcd-_0x1a280._0x1743ec,_0x3cd403- -_0x1a280._0xc59ae3,_0x396dcd);}const _0x486329=_0x4e482a[0x0]?_0x26ea53(_0x4e482a[0x0]):[],_0x51c800=_0x4e482a[_0x4f4004(0x2bc,_0xd1a577._0x2b1e76,0x238,_0xd1a577._0x59ba34)]===0x2&&_0x4e482a[0x1]?_0x26ea53(_0x4e482a[0x1]):[],_0x49b170=[];if(_0x393657){const _0x28e459=ipv4ToInt(_0x393657);if(_0x28e459===null)return null;_0x49b170[_0x4f4004(_0xd1a577._0x314411,_0xd1a577._0x4cf2db,0x12d,_0xd1a577._0x2ff955)](_0x28e459>>>0x10&0xffff,_0x28e459&0xffff);}const _0x30cda4=[..._0x51c800,..._0x49b170];function _0x3ac3ec(_0x442aa2,_0x4414e4,_0x26e620,_0x53955f){return _0x1e45aa(_0x442aa2-_0x4e4dcd._0x52a793,_0x4414e4-0x12,_0x4414e4- -_0x4e4dcd._0x569bc6,_0x53955f);}const _0x1c4c28=0x8-_0x486329['length']-_0x30cda4[_0x4f4004(0x2bc,_0xd1a577._0x3e6c4e,0x315,0x1cd)];if(_0x4e482a['length']===0x1)return _0x486329[_0x3ac3ec(_0xd1a577._0x5788c9,0x158,_0xd1a577._0x757093,_0xd1a577._0x2f0c98)]+_0x30cda4[_0x4f4004(_0xd1a577._0x14fc48,0x14c,0x28a,0x3d5)]===0x8?[..._0x486329,..._0x30cda4]:null;if(_0x1c4c28<0x0)return null;return[..._0x486329,...new Array(_0x1c4c28)[_0x3ac3ec(-0x194,-_0xd1a577._0x33197b,_0xd1a577._0x1d73b7,0x113)](0x0),..._0x30cda4];}function isBlockedIpv6(_0x2d7dee){const _0x447de7={_0x2e830b:0x348,_0x2945fe:0x485,_0x5580f6:0x218,_0x3e2b51:0x1c6,_0x844d62:0x133,_0x5b535f:0x15f,_0x265304:0x1b0,_0x1fcddb:0x1,_0x442477:0x1be,_0x3821ee:0x43a,_0x3cdcda:0x43d},_0x2026e7={_0x3f9830:0x7e},_0x3df2a4={_0x4989dc:0x170},_0x71f3e8=expandIpv6(_0x2d7dee);if(!_0x71f3e8||_0x71f3e8[_0x518486(0x32c,0x393,_0x447de7._0x2e830b,_0x447de7._0x2945fe)](_0x1f5d3c=>Number[_0x1474ab(0x43,0x17,0x6e,-0x4a)](_0x1f5d3c)))return!![];const _0x309d8e=_0x71f3e8[_0x518486(_0x447de7._0x5580f6,_0x447de7._0x3e2b51,_0x447de7._0x844d62,0x140)](0x0,0x7)[_0x1474ab(_0x447de7._0x5580f6,_0x447de7._0x5b535f,_0x447de7._0x265304,0x7a)](_0x5ef27e=>_0x5ef27e===0x0);if(_0x309d8e&&(_0x71f3e8[0x7]===0x0||_0x71f3e8[0x7]===0x1))return!![];if(_0x71f3e8[_0x1474ab(-_0x447de7._0x1fcddb,-_0x447de7._0x442477,-0xc4,-0x90)](0x0,0x5)[_0x518486(0x4cd,_0x447de7._0x3821ee,_0x447de7._0x3cdcda,0x548)](_0x1e975c=>_0x1e975c===0x0)&&(_0x71f3e8[0x5]===0xffff||_0x71f3e8[0x5]===0x0)){const _0x3f1416=(_0x71f3e8[0x6]<<0x10|_0x71f3e8[0x7])>>>0x0,_0x3eef05=[_0x3f1416>>>0x18&0xff,_0x3f1416>>>0x10&0xff,_0x3f1416>>>0x8&0xff,_0x3f1416&0xff][_0x1474ab(0xe7,-0x1e,0x69,0x14d)]('.');return isBlockedIpv4(_0x3eef05);}const _0x82332e=_0x71f3e8[0x0];function _0x1474ab(_0xd42eee,_0x1a867a,_0x221159,_0x2651cd){return _0x55c88d(_0xd42eee-0x132,_0x221159- -0x389,_0xd42eee,_0x2651cd-_0x3df2a4._0x4989dc);}if((_0x82332e&0xff00)===0xfc00||(_0x82332e&0xfe00)===0xfc00)return!![];if((_0x82332e&0xffc0)===0xfe80)return!![];if((_0x82332e&0xff00)===0xff00)return!![];function _0x518486(_0x2d3c94,_0x515e86,_0x1b4a61,_0x4d1508){return _0x1e45aa(_0x2d3c94-_0x2026e7._0x3f9830,_0x515e86-0x1ba,_0x515e86- -0x3b0,_0x1b4a61);}return![];}function isBlockedAddress(_0x188627){const _0x262a5d=isIP(_0x188627);if(_0x262a5d===0x4)return isBlockedIpv4(_0x188627);if(_0x262a5d===0x6)return isBlockedIpv6(_0x188627);return!![];}async function assertPublicUrl(_0x3158a3,_0x2cb69d={}){const _0x55b9ff={_0x4d425c:0x243,_0x470cff:0x91,_0x303fc1:0x2a3,_0x2f5b69:0x7a,_0x10480b:0xf8,_0x20f495:0x19,_0x26a925:0x17d,_0x504f93:0x73,_0x28df1b:0x70,_0x30923e:0x163,_0x29fe29:0x135,_0x57c741:0x258,_0x13a89b:0x36,_0x103ca4:0x1f8,_0x205c82:0xfd,_0x1bdd6e:0x27d,_0x212c65:0x1b6,_0xd9c11f:0x39d,_0x32b7e0:0x3b3,_0x2e255d:0x277,_0x437564:0x3a0,_0x48d933:0x374,_0x141771:0x154,_0x43590b:0xc7,_0x3af218:0x201,_0x3493c0:0x2c3,_0x36db60:0x236,_0xb53cf:0x1c0,_0x23ca1e:0x1f7,_0x2bb935:0x3d0,_0x4b823b:0x441,_0xb08c2a:0x161,_0x5602b1:0x1ae,_0x594e9e:0x27f,_0x155ccb:0x1fb,_0x580e80:0xd},_0xaec24e={_0x4736d0:0x79},_0x72a127={_0x138a57:0xde,_0x1e2fae:0x5b8};let _0x1b1027;try{_0x1b1027=new URL(_0x3158a3);}catch{throw new ToolExecutionError(_0x1af247(0x271,0x1b2,_0x55b9ff._0x4d425c,0x12d),{'url':_0x3158a3});}if(_0x1b1027[_0x1af247(0x1c2,_0x55b9ff._0x470cff,0x30a,_0x55b9ff._0x303fc1)]!==_0x1af247(_0x55b9ff._0x2f5b69,_0x55b9ff._0x10480b,0xa8,_0x55b9ff._0x20f495)&&_0x1b1027[_0x1af247(0x1c2,_0x55b9ff._0x26a925,_0x55b9ff._0x504f93,0x107)]!==_0x5ef34a(0x212,_0x55b9ff._0x28df1b,0x19f,_0x55b9ff._0x30923e))throw new ToolExecutionError('Only\x20http://\x20and\x20https://\x20URLs\x20are\x20supported',{'url':_0x3158a3});if(_0x1b1027[_0x1af247(_0x55b9ff._0x29fe29,_0x55b9ff._0x57c741,-_0x55b9ff._0x13a89b,_0x55b9ff._0x103ca4)]||_0x1b1027['password'])throw new ToolExecutionError(_0x1af247(_0x55b9ff._0x205c82,_0x55b9ff._0x1bdd6e,-0x56,_0x55b9ff._0x212c65),{'url':_0x1b1027[_0x5ef34a(0x329,_0x55b9ff._0xd9c11f,0x322,_0x55b9ff._0x32b7e0)]+'//'+_0x1b1027[_0x5ef34a(_0x55b9ff._0x2e255d,_0x55b9ff._0x437564,_0x55b9ff._0x48d933,0x444)]+_0x1b1027[_0x5ef34a(0xb6,0x6e,_0x55b9ff._0x141771,0x1ab)]});const _0x575801=_0x1b1027['hostname'][_0x5ef34a(0x348,0x289,0x1d5,_0x55b9ff._0x43590b)](/^\[|\]$/g,''),_0x57b923=_0x1b1027[_0x5ef34a(0x2e9,_0x55b9ff._0x3af218,0x322,_0x55b9ff._0x3493c0)]+'//'+_0x1b1027['host']+_0x1b1027[_0x5ef34a(_0x55b9ff._0x36db60,_0x55b9ff._0xb53cf,_0x55b9ff._0x141771,0xb0)];if(isIP(_0x575801)){if(isBlockedAddress(_0x575801))throw new ToolExecutionError(_0x5ef34a(0xcc,0x113,_0x55b9ff._0x23ca1e,0x14e),{'url':_0x57b923});return _0x1b1027;}const _0x54ef84=_0x2cb69d[_0x5ef34a(0x2a7,0x2d2,_0x55b9ff._0x2bb935,0x532)]??defaultLookup;let _0x364681;try{_0x364681=await _0x54ef84(_0x575801);}catch{throw new ToolExecutionError(_0x5ef34a(0x2f8,0x2ab,0x1ae,0x2ad),{'url':_0x57b923});}if(_0x364681[_0x5ef34a(_0x55b9ff._0x4b823b,0x42d,0x38a,0x2b3)]===0x0)throw new ToolExecutionError(_0x5ef34a(_0x55b9ff._0xb08c2a,0x2d5,_0x55b9ff._0x5602b1,_0x55b9ff._0x594e9e),{'url':_0x57b923});function _0x1af247(_0x13ceee,_0xe3185f,_0x1367ab,_0x37e724){return _0x1e45aa(_0x13ceee-_0x72a127._0x138a57,_0xe3185f-0x162,_0x13ceee- -_0x72a127._0x1e2fae,_0x1367ab);}for(const {address:_0x48eca4}of _0x364681){if(isBlockedAddress(_0x48eca4))throw new ToolExecutionError(_0x5ef34a(_0x55b9ff._0x155ccb,_0x55b9ff._0x36db60,0x158,-_0x55b9ff._0x580e80),{'url':_0x57b923});}function _0x5ef34a(_0x5cfc9e,_0x4e5a70,_0x1a9485,_0x4bde45){return _0x55c88d(_0x5cfc9e-0x11c,_0x1a9485- -0x1a7,_0x4e5a70,_0x4bde45-_0xaec24e._0x4736d0);}return _0x1b1027;}async function safeFetch(_0x4ba3ec,_0x3b4533={},_0x180042={}){const _0x2d9230={_0x58990f:0x725,_0xfe7b8c:0x5e3,_0x3d45e7:0x612,_0x3ec505:0x4b3,_0x2777ba:0x594,_0x45b40e:0x4f0,_0x216bdd:0x593,_0x142adf:0x45d,_0x5f2731:0x3fe,_0x4e2ffa:0x580,_0x32cd96:0x4c9,_0x5dd2f3:0x4dd,_0x4bb1ce:0x4c0,_0x20d6c1:0x520,_0x3bdab8:0x4b0,_0x25027f:0x3de,_0x136a20:0x37c,_0x488e92:0x38e,_0x401fd7:0x288,_0x24b3a9:0x38f,_0x786fd:0x567,_0x2e901:0x5bc},_0x4877b4={_0x315750:0x178,_0x2736bb:0x263},_0x5a12a1={_0x5de40e:0x101,_0x306bfa:0x155};function _0x55b7bd(_0x5edfd0,_0x145268,_0x1b923b,_0x35b4e3){return _0x1e45aa(_0x5edfd0-_0x5a12a1._0x5de40e,_0x145268-_0x5a12a1._0x306bfa,_0x1b923b- -0x33e,_0x5edfd0);}const _0x406078=_0x180042['fetchImpl']??fetch,_0x16b5a4=_0x180042[_0x6b1ad4(0x5b9,_0x2d9230._0x58990f,0x51d,_0x2d9230._0xfe7b8c)]??DEFAULT_MAX_REDIRECTS;let _0x4afccd=_0x4ba3ec;function _0x6b1ad4(_0x1b6e9d,_0x5b44f1,_0x4a2377,_0x49500c){return _0x1e45aa(_0x1b6e9d-_0x4877b4._0x315750,_0x5b44f1-0x13e,_0x49500c- -_0x4877b4._0x2736bb,_0x5b44f1);}for(let _0x49754f=0x0;;_0x49754f+=0x1){const _0x3cd91c=await assertPublicUrl(_0x4afccd,_0x180042),_0x1d65c1=await _0x406078(_0x3cd91c['toString'](),{..._0x3b4533,'redirect':_0x6b1ad4(_0x2d9230._0x3d45e7,_0x2d9230._0x3ec505,_0x2d9230._0x2777ba,0x4b3)}),_0x41778=_0x1d65c1[_0x55b7bd(_0x2d9230._0x45b40e,_0x2d9230._0x216bdd,_0x2d9230._0x142adf,0x379)][_0x6b1ad4(0x6cf,_0x2d9230._0x5f2731,0x5c1,_0x2d9230._0x4e2ffa)](_0x6b1ad4(0x3bd,0x4d2,0x379,_0x2d9230._0x32cd96));if(!REDIRECT_STATUSES[_0x6b1ad4(0x5b4,_0x2d9230._0x5dd2f3,0x5a7,0x4f5)](_0x1d65c1[_0x55b7bd(_0x2d9230._0x4bb1ce,0x502,_0x2d9230._0x20d6c1,_0x2d9230._0x3bdab8)])||!_0x41778)return _0x1d65c1;if(_0x49754f>=_0x16b5a4)throw new ToolExecutionError(_0x55b7bd(0x364,_0x2d9230._0x25027f,0x327,_0x2d9230._0x136a20),{'url':_0x3cd91c[_0x55b7bd(_0x2d9230._0x488e92,_0x2d9230._0x401fd7,_0x2d9230._0x24b3a9,0x326)]()});_0x4afccd=new URL(_0x41778,_0x3cd91c)[_0x6b1ad4(0x586,_0x2d9230._0x786fd,_0x2d9230._0x2e901,0x46a)]();}}var USER_AGENT=_0x1e45aa(0x885,0x70c,0x7a2,0x6c1),DEFAULT_TIMEOUT_MS2=0xea60;function createTimeoutSignal(_0x23331d,_0x48120e){const _0x23d496={_0x3baf82:0x12a,_0x1bc3b8:0x267,_0x427934:0x29a,_0x54c829:0x1d,_0x1e7dd3:0x11},_0x20d195={_0x3774fe:0x179,_0x27f3a0:0x126,_0x288207:0xc5},_0x5a09ed={_0x3311c5:0x12b},_0x4f8385={_0x4aee70:0x3d2,_0x46cab7:0x6},_0x1bd1bd={_0x4e56dc:0xab,_0x4373af:0x4bb};function _0x700ff0(_0x13488a,_0x23a62c,_0x376b5f,_0x52ee0c){return _0x55c88d(_0x13488a-_0x1bd1bd._0x4e56dc,_0x23a62c- -_0x1bd1bd._0x4373af,_0x13488a,_0x52ee0c-0x5d);}const _0x3b00a1=new AbortController(),_0x7bce5a=setTimeout(()=>_0x3b00a1[_0x3a0490(0x24b,0x12a,0x237,-0x34)](new Error(_0x700ff0(0xa6,-0xbc,-0xfa,-0x1f8))),_0x48120e),_0x5b601a=()=>_0x3b00a1[_0x3a0490(-0x19,0x12a,0x23d,0x21e)](_0x23331d[_0x700ff0(0xe2,-0x7a,-0x191,-0x144)]);_0x23331d['aborted']?_0x3b00a1[_0x3a0490(0x127,_0x23d496._0x3baf82,_0x23d496._0x1bc3b8,_0x23d496._0x427934)](_0x23331d[_0x3a0490(0x62,0x6f,0x8f,-0x5e)]):_0x23331d[_0x700ff0(-0x150,-0xc8,-_0x23d496._0x54c829,-_0x23d496._0x1e7dd3)](_0x3a0490(0x72,0x12a,0x22d,0x203),_0x5b601a,{'once':!![]});function _0x3a0490(_0x2ed2c5,_0x3d1d99,_0x2dc07b,_0x3fc462){return _0x55c88d(_0x2ed2c5-0x148,_0x3d1d99- -_0x4f8385._0x4aee70,_0x2dc07b,_0x3fc462-_0x4f8385._0x46cab7);}return{'signal':_0x3b00a1[_0x700ff0(0x13f,0xfa,0xe1,-0x5a)],'cleanup':()=>{const _0x501b7d={_0x508875:0x147};clearTimeout(_0x7bce5a);function _0x59970c(_0x7d3fa,_0x470c1f,_0x3636c3,_0x5677b2){return _0x700ff0(_0x5677b2,_0x7d3fa-0x696,_0x3636c3-_0x5a09ed._0x3311c5,_0x5677b2-0x44);}function _0x43726a(_0x21d9f3,_0x45227c,_0x2c9efb,_0x2711bf){return _0x700ff0(_0x21d9f3,_0x2c9efb-0xe5,_0x2c9efb-0x7c,_0x2711bf-_0x501b7d._0x508875);}_0x23331d[_0x43726a(-_0x20d195._0x3774fe,-_0x20d195._0x27f3a0,-0x45,_0x20d195._0x288207)](_0x43726a(0xc6,0x6d,0x126,0xd2),_0x5b601a);}};}function createWebFetchTool(_0x16750e={}){const _0x388117={_0x44d344:0x248,_0x29709d:0x181,_0x158440:0x7d,_0x51147a:0xc0,_0x325d91:0x2f7,_0x2cbdbd:0x273,_0xe868ce:0x24e,_0x56dcc6:0x2aa,_0x4979c9:0xaf,_0x19fc01:0x2d,_0x23f0a5:0x7b,_0x2d387f:0x71,_0x257513:0x168,_0x2a53b0:0x20f,_0x121a35:0x268,_0x2e7551:0xa5,_0x4c768d:0x31c,_0x4f6f09:0x199,_0x22600f:0x2c3,_0x52800a:0x2c5,_0x81611f:0x1ae,_0x1713ac:0x2e4,_0x39d651:0xaa,_0x49c73a:0xf8,_0x3b3c5d:0x8e,_0x1101cf:0x2f4,_0xc2c2f8:0xbb,_0x24fd70:0x23d,_0x1ca22f:0xf5,_0x5e9431:0x264,_0x77b786:0x2a3,_0x21b5d6:0x2ec,_0x200f62:0x27b},_0x4445c2={_0x56ad62:0x722,_0x5e13a4:0x4d9,_0x247258:0x75a,_0x9b13e7:0x68a,_0x3bcea3:0x621,_0xa6c018:0x6b2,_0x2e5ead:0x752,_0x1b3d89:0x77f,_0x246223:0x6d9,_0x575742:0x76f,_0x36c769:0x6c9,_0x594978:0x68a,_0x231441:0x862,_0x5b1df4:0x637,_0x55ba64:0x670,_0xff8941:0x68f,_0x1bf38f:0x5d7,_0x2eca83:0x6d3,_0x9716b9:0x578,_0x2f8654:0x508,_0x3e3637:0x51e,_0x3fa3d9:0x8d3,_0x1a175a:0x794,_0xc13167:0x5c5,_0x71799f:0x4fc,_0x596161:0x428,_0x7939d4:0x833,_0x5c6dcd:0x6c1,_0x1e80c6:0x646,_0x2ead07:0x69d,_0x4f11f4:0x6ac,_0x538c82:0x746,_0x30846c:0x538,_0x18a267:0x54d,_0x21e4bd:0x68c,_0x4a4dcd:0x3fb,_0x465779:0x411,_0xf887:0x51f,_0x27b0bf:0x5ef,_0x3fea79:0x699,_0x36c0d5:0x519,_0x515f0b:0x6bc,_0x9c7f3d:0x5a8,_0xac0a42:0x4e7,_0x1d549c:0x6b7,_0x587e1d:0x55c,_0xb9cdcc:0x6e4,_0x12e5e9:0x537,_0x312e73:0x4bd,_0x1c8b16:0x5a6,_0x4b61a4:0x66d,_0x15c771:0x698},_0x29e8ed={_0x4ee3bb:0x2f6,_0x21ea68:0x24},_0x3d9e03=_0x16750e[_0x2d66c6(0xb2,0x1e9,_0x388117._0x44d344,_0x388117._0x29709d)]??_0x35f711(-_0x388117._0x158440,_0x388117._0x51147a,-0xb,-0x3b),_0x4fa7ef=_0x16750e[_0x35f711(_0x388117._0x325d91,0x237,0x31b,_0x388117._0x2cbdbd)]??DEFAULT_TIMEOUT_MS2,_0x396700=_0x16750e[_0x35f711(0x411,0x346,0x308,0x2a0)];function _0x2d66c6(_0x27f23e,_0x2c9518,_0xbb6315,_0x926356){return _0x55c88d(_0x27f23e-0x190,_0x2c9518- -_0x29e8ed._0x4ee3bb,_0x926356,_0x926356-_0x29e8ed._0x21ea68);}const _0x5d80d1=new _0x47dfee({'headingStyle':'atx','codeBlockStyle':_0x35f711(0x115,_0x388117._0xe868ce,_0x388117._0x56dcc6,0x2ae),'bulletListMarker':'-'});_0x5d80d1[_0x2d66c6(-0xbb,_0x388117._0x4979c9,-_0x388117._0x19fc01,0x1b7)]([_0x2d66c6(_0x388117._0x23f0a5,0x74,0x1be,-_0x388117._0x2d387f),_0x35f711(_0x388117._0x257513,_0x388117._0x2a53b0,0x161,_0x388117._0x121a35),_0x2d66c6(0x146,-0x33,_0x388117._0x2e7551,-0xe2),_0x35f711(0x3da,0x37e,_0x388117._0x4c768d,0x3d6),_0x2d66c6(_0x388117._0x4f6f09,_0x388117._0x22600f,_0x388117._0x52800a,0x193),'footer',_0x2d66c6(0x265,0x29b,_0x388117._0x81611f,0x28d),_0x35f711(0x2eb,0x2e0,0x378,_0x388117._0x1713ac)]);function _0x35f711(_0x5b5a55,_0x5f4f2f,_0x1e564a,_0xa9064b){return _0x1e45aa(_0x5b5a55-0x69,_0x5f4f2f-0x9f,_0x5f4f2f- -0x4e2,_0x5b5a55);}return defineTool({'name':_0x3d9e03,'description':_0x2d66c6(0x14b,0x51,-_0x388117._0x39d651,-_0x388117._0x49c73a),'inputSchema':{'type':_0x35f711(_0x388117._0x3b3c5d,0x126,0x9e,0x13c),'properties':{'description':{'type':_0x2d66c6(_0x388117._0x1101cf,0x178,_0x388117._0xc2c2f8,0x1d2)},'url':{'type':_0x35f711(0xce,_0x388117._0x24fd70,_0x388117._0x1ca22f,_0x388117._0x5e9431)}},'required':[_0x35f711(_0x388117._0x77b786,_0x388117._0x21b5d6,0x3d3,_0x388117._0x200f62)]},async *'execute'(_0xbcb91e,_0x3129a6){const _0x3c03ce={_0x4818af:0x23,_0x4f6192:0x497,_0x45ff59:0x120},_0x24a18d=(await assertPublicUrl(_0xbcb91e['url'],{'lookup':_0x396700}))[_0x3d7b7c(_0x4445c2._0x56ad62,_0x4445c2._0x5e13a4,0x46d,0x5c1)]();if(_0x3129a6[_0x3d7b7c(0x8c1,0x700,0x75e,_0x4445c2._0x247258)][_0x2efb0f(0x5f2,_0x4445c2._0x9b13e7,0x5bb,0x567)])throw new ToolExecutionError(_0x2efb0f(0x6e1,0x5b4,0x44a,0x578),{'url':_0x24a18d});const _0x180414=createTimeoutSignal(_0x3129a6['signal'],_0x4fa7ef);let _0x4bd96d='',_0x2a3323=0x0;function _0x3d7b7c(_0xe60f89,_0x41c8aa,_0x41531b,_0x498429){return _0x35f711(_0x41c8aa,_0x498429-0x3d6,_0x41531b-0x2b,_0x498429-0x7a);}let _0x32503d;try{const _0xa22c80=await safeFetch(_0x24a18d,{'headers':{'User-Agent':USER_AGENT},'signal':_0x180414['signal']},{'lookup':_0x396700});if(!_0xa22c80['ok'])throw new ToolExecutionError('HTTP\x20'+_0xa22c80[_0x3d7b7c(0x79e,_0x4445c2._0x3bcea3,_0x4445c2._0xa6c018,_0x4445c2._0x2e5ead)]+'\x20'+_0xa22c80[_0x2efb0f(_0x4445c2._0x1b3d89,_0x4445c2._0x246223,_0x4445c2._0x575742,_0x4445c2._0x36c769)],{'url':_0x24a18d,'statusCode':_0xa22c80[_0x3d7b7c(_0x4445c2._0x594978,0x724,_0x4445c2._0x231441,0x752)]});_0x4bd96d=_0xa22c80[_0x3d7b7c(_0x4445c2._0x5b1df4,0x51e,_0x4445c2._0x55ba64,_0x4445c2._0xff8941)][_0x2efb0f(_0x4445c2._0x1bf38f,_0x4445c2._0x2eca83,0x582,0x5c4)](_0x3d7b7c(_0x4445c2._0x9716b9,0x3d7,_0x4445c2._0x2f8654,_0x4445c2._0x3e3637))??'',_0x2a3323=_0xa22c80[_0x2efb0f(0x6f9,0x74e,_0x4445c2._0x3fa3d9,0x7c2)],_0x32503d=await _0xa22c80[_0x2efb0f(_0x4445c2._0x1a175a,0x66d,_0x4445c2._0xc13167,0x5eb)]();}catch(_0x1bd209){if(_0x1bd209 instanceof ToolExecutionError)throw _0x1bd209;const _0x27f4ef=_0x1bd209 instanceof Error?_0x1bd209['message']:String(_0x1bd209);throw new ToolExecutionError(_0x27f4ef,{'url':_0x24a18d});}finally{_0x180414[_0x2efb0f(_0x4445c2._0x71799f,0x4f1,0x621,_0x4445c2._0x596161)]();}const _0x57ea8d=new Date()[_0x3d7b7c(0x7c6,_0x4445c2._0x7939d4,0x74f,_0x4445c2._0x5c6dcd)]();function _0x2efb0f(_0x640297,_0xba362b,_0x36416f,_0x1b5728){return _0x2d66c6(_0x640297-_0x3c03ce._0x4818af,_0xba362b-_0x3c03ce._0x4f6192,_0x36416f-_0x3c03ce._0x45ff59,_0x36416f);}let _0x3dee06,_0xfd597f;if(_0x4bd96d[_0x3d7b7c(0x599,_0x4445c2._0x1e80c6,0x7a3,_0x4445c2._0x2ead07)](_0x3d7b7c(0x7bd,0x812,_0x4445c2._0x4f11f4,_0x4445c2._0x538c82)))_0x3dee06=_0x3d7b7c(0x7cc,_0x4445c2._0x30846c,_0x4445c2._0x18a267,_0x4445c2._0x21e4bd)+_0x32503d+_0x3d7b7c(_0x4445c2._0x4a4dcd,_0x4445c2._0x465779,0x430,_0x4445c2._0xf887),_0xfd597f=_0x2efb0f(0x75f,_0x4445c2._0x27b0bf,0x661,0x57e);else _0x4bd96d[_0x2efb0f(0x5bd,_0x4445c2._0x3fea79,_0x4445c2._0x36c0d5,_0x4445c2._0x515f0b)](_0x3d7b7c(0x6b5,_0x4445c2._0x9c7f3d,0x57b,0x5ad))?(_0x3dee06=_0x5d80d1[_0x3d7b7c(_0x4445c2._0xac0a42,_0x4445c2._0x1d549c,0x3df,_0x4445c2._0x587e1d)](_0x32503d),_0xfd597f=_0x3d7b7c(_0x4445c2._0xb9cdcc,_0x4445c2._0x12e5e9,_0x4445c2._0x312e73,_0x4445c2._0x1c8b16)):(_0x3dee06=_0x32503d,_0xfd597f=_0x2efb0f(0x635,_0x4445c2._0x4b61a4,0x6ea,_0x4445c2._0x15c771));return yield createToolOutput(_0x3dee06,{'url':_0x24a18d,'contentType':_0x4bd96d,'statusCode':_0x2a3323,'format':_0xfd597f,'size':_0x32503d['length'],'fetchedAt':_0x57ea8d}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x1e45aa(0x42a,0x6eb,0x5a4,0x579);function normalizeUrl(_0x3872e9){const _0x1ff0e6={_0x4f8d55:0x230,_0x3b1ad4:0x107,_0x4cf88c:0x22f,_0x5eaf1b:0x206,_0x153bf6:0x11d,_0x1ab8f0:0x1b9,_0x3bfbd0:0x1e1,_0x2a8733:0x357,_0x2eec55:0x381,_0x2b6117:0xc8,_0x3fa291:0x88,_0x23cf0e:0x5d,_0x37d724:0xa3},_0x3f2db0={_0x111478:0x1c7,_0x353edd:0x5d6},_0x53e82f={_0x4c46f4:0xc7,_0x21b98b:0x11d,_0x1e61e9:0x4cd};function _0x54e723(_0x3f4c56,_0x4f31e4,_0x74ba3c,_0x37f2da){return _0x1e45aa(_0x3f4c56-_0x53e82f._0x4c46f4,_0x4f31e4-_0x53e82f._0x21b98b,_0x4f31e4- -_0x53e82f._0x1e61e9,_0x3f4c56);}function _0x44be6b(_0x2d932f,_0x3112d6,_0x358c5c,_0x2b7485){return _0x1e45aa(_0x2d932f-0x112,_0x3112d6-_0x3f2db0._0x111478,_0x2b7485- -_0x3f2db0._0x353edd,_0x3112d6);}try{const _0x4f9d21=new URL(_0x3872e9);for(const _0x1e54b9 of[_0x44be6b(_0x1ff0e6._0x4f8d55,0x23c,0x8d,_0x1ff0e6._0x3b1ad4),_0x44be6b(0xc0,0x3a1,0x153,_0x1ff0e6._0x4cf88c),_0x44be6b(0x1b4,-0xc,-0x38,0x8d),_0x44be6b(0x1b9,_0x1ff0e6._0x5eaf1b,0xe2,0x17a),'utm_content',_0x44be6b(_0x1ff0e6._0x153bf6,0x202,0x27a,_0x1ff0e6._0x1ab8f0),_0x44be6b(0x279,0x283,_0x1ff0e6._0x3bfbd0,0x27f),_0x54e723(0x3df,_0x1ff0e6._0x2a8733,_0x1ff0e6._0x2eec55,0x473),_0x54e723(0x166,_0x1ff0e6._0x2b6117,0x99,0x135)]){_0x4f9d21['searchParams']['delete'](_0x1e54b9);}return _0x4f9d21[_0x44be6b(_0x1ff0e6._0x3fa291,_0x1ff0e6._0x23cf0e,_0x1ff0e6._0x37d724,0xf7)]();}catch{return _0x3872e9;}}function cseDateRestrict(_0x209873){const _0x56a11c={_0x51479f:0x195,_0xbf46fc:0x2bd,_0x7cb028:0x1da,_0x186d76:0x1b8,_0x5801d6:0x36f,_0x5b3bba:0x394,_0x470489:0x185,_0x4212d3:0x1ff,_0x5906de:0x4c6},_0x43d0b4={_0x1d611e:0x4c,_0x3fb0d5:0x175},_0x3749d1={_0x489bee:0x25};if(_0x209873<=0x0)return void 0x0;function _0x3e767c(_0x4560e3,_0x2322d8,_0x42a5cc,_0x4b4c1b){return _0x1e45aa(_0x4560e3-0x7b,_0x2322d8-_0x3749d1._0x489bee,_0x4b4c1b- -0x479,_0x4560e3);}if(_0x209873<=0x1e)return'd'+Math[_0x3e767c(_0x56a11c._0x51479f,_0x56a11c._0xbf46fc,_0x56a11c._0x7cb028,_0x56a11c._0x186d76)](0x1,Math[_0x220461(0x33c,_0x56a11c._0x5801d6,_0x56a11c._0x5b3bba,0x4eb)](_0x209873));function _0x220461(_0x3006ab,_0x5ba376,_0x36805a,_0x465b17){return _0x55c88d(_0x3006ab-0x1c5,_0x36805a-_0x43d0b4._0x1d611e,_0x5ba376,_0x465b17-_0x43d0b4._0x3fb0d5);}if(_0x209873<=0x16d)return'm'+Math[_0x3e767c(0x192,0x347,_0x56a11c._0x470489,_0x56a11c._0x4212d3)](_0x209873/0x1e);return'y'+Math[_0x220461(_0x56a11c._0x5906de,0x44d,0x413,0x46c)](_0x209873/0x16d);}function addSiteFilters(_0xa6c6a0,_0x46ed52){const _0x4316fb={_0x1b94a0:0x3a,_0x2490c0:0x115,_0x29ed7c:0x1ec,_0x516cd2:0xd0,_0x4a061f:0xd0,_0x1ab979:0xcf,_0x131b9a:0x17d,_0x436faf:0x269,_0x29a9f9:0x278},_0x8e5ef1={_0x4eaf2e:0x116},_0x3a9f31={_0x34dcce:0x6,_0x287b82:0x94};if(_0x46ed52['length']===0x0)return _0xa6c6a0['trim']();function _0x5cc8be(_0x4e062d,_0x4fb5d8,_0x4a56fe,_0x2d1772){return _0x1e45aa(_0x4e062d-_0x3a9f31._0x34dcce,_0x4fb5d8-_0x3a9f31._0x287b82,_0x4a56fe- -0x538,_0x2d1772);}function _0xb497a3(_0x17b605,_0x36d2ee,_0x287c26,_0x1f8845){return _0x55c88d(_0x17b605-_0x8e5ef1._0x4eaf2e,_0x36d2ee- -0x4c2,_0x17b605,_0x1f8845-0x100);}return(_0xa6c6a0+'\x20('+_0x46ed52[_0xb497a3(0xa1,-_0x4316fb._0x1b94a0,_0x4316fb._0x2490c0,-0x7f)](_0x45cc1b=>_0xb497a3(-0x1ad,-0x1bd,-0x318,-0x183)+_0x45cc1b)[_0xb497a3(-_0x4316fb._0x29ed7c,-_0x4316fb._0x516cd2,-_0x4316fb._0x4a061f,-0xbb)](_0xb497a3(_0x4316fb._0x1ab979,0xc,0x109,0x6e))+')')[_0x5cc8be(_0x4316fb._0x131b9a,0x26e,_0x4316fb._0x436faf,_0x4316fb._0x29a9f9)]();}function normalizeType(_0x1e24f7){const _0x9f5523={_0x4b17cb:0x361,_0x5e57d5:0x31d,_0x191bc5:0x1e8,_0x15adbb:0xcb,_0x58653c:0x1e8,_0x104ff9:0x27e,_0x52513a:0x41f,_0x28bdd5:0x2f0,_0x20a3c5:0x353},_0x5d4301={_0xd30cd2:0xd4,_0xf8c324:0x1c9},_0x6f75a={_0x1628d9:0x9f,_0x2a37a3:0x16b};function _0x119026(_0x2be911,_0x5484a8,_0x10b35b,_0x25efca){return _0x55c88d(_0x2be911-0xc5,_0x10b35b- -_0x6f75a._0x1628d9,_0x5484a8,_0x25efca-_0x6f75a._0x2a37a3);}function _0x8fdb68(_0x353366,_0x2604d1,_0x44271e,_0x10d5df){return _0x55c88d(_0x353366-_0x5d4301._0xd30cd2,_0x10d5df- -_0x5d4301._0xf8c324,_0x353366,_0x10d5df-0x137);}return _0x1e24f7===_0x8fdb68(_0x9f5523._0x4b17cb,_0x9f5523._0x5e57d5,0x356,_0x9f5523._0x191bc5)?_0x8fdb68(0x1dd,0x16a,_0x9f5523._0x15adbb,_0x9f5523._0x58653c):_0x119026(_0x9f5523._0x104ff9,_0x9f5523._0x52513a,_0x9f5523._0x28bdd5,_0x9f5523._0x20a3c5);}async function fetchJson(_0x404aa2,_0x1f5537,_0x2451e4){const _0x1a524a={_0x1457fd:0x12f,_0x2f3d83:0xe3,_0x341cbf:0x600,_0x3f69c5:0x4d5,_0x3bfb4e:0x438,_0x3f8c47:0x23f,_0x397f46:0x535,_0x50ad70:0x435,_0x36f680:0x65c,_0x3a435d:0x4e7,_0x452c1d:0x549,_0x547acf:0x1ae,_0x2cde26:0xe0,_0x63d875:0x39,_0x11dfac:0x431,_0x4fe8b9:0x2cd,_0x16bbc2:0x34c,_0x221063:0x443,_0xcbb63f:0x54e,_0x28e286:0x481,_0x478b96:0x3e4,_0x225468:0x40e,_0xc58b8a:0x5f6,_0x589adc:0x5ff,_0x238f11:0x46a,_0x2db818:0x604,_0x2f7704:0x5ab,_0x347eba:0x56a,_0x3c4d14:0x7a,_0x1621b6:0x29,_0x33f7a4:0xef,_0x48f447:0x15d,_0x5157ef:0x46},_0x30a7c4={_0x53bc71:0x76f},_0x539d85={_0x1253c2:0x17c},_0x58cefb=await fetch(_0x404aa2,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x5bbd33(_0x1a524a._0x1457fd,-0x5d,_0x1a524a._0x2f3d83,0xbf),..._0x2451e4?.[_0x5d6703(0x4d8,_0x1a524a._0x341cbf,0x568,0x53c)]},'signal':_0x1f5537,..._0x2451e4});if(!_0x58cefb['ok']){let _0x314397,_0x515997;try{_0x314397=await _0x58cefb[_0x5d6703(0x6a3,_0x1a524a._0x3f69c5,_0x1a524a._0x3bfb4e,0x51e)]();const _0x1bab6e=JSON['parse'](_0x314397),_0x3c383c=typeof _0x1bab6e[_0x5d6703(0x48e,0x4c4,0x549,0x435)]===_0x5d6703(_0x1a524a._0x3f8c47,0x29a,0x45e,0x3a9)?_0x1bab6e[_0x5d6703(_0x1a524a._0x397f46,0x589,0x3dd,_0x1a524a._0x50ad70)][_0x5d6703(_0x1a524a._0x36f680,0x6ce,_0x1a524a._0x3a435d,_0x1a524a._0x452c1d)]:void 0x0;_0x515997=_0x1bab6e[_0x5bbd33(_0x1a524a._0x547acf,_0x1a524a._0x2cde26,_0x1a524a._0x63d875,0x144)]?.[_0x5d6703(_0x1a524a._0x11dfac,_0x1a524a._0x4fe8b9,0x2a8,_0x1a524a._0x16bbc2)]??_0x1bab6e[_0x5bbd33(-0x47,-0xa6,_0x1a524a._0x63d875,0x6f)]?.[_0x5d6703(0x32f,_0x1a524a._0x221063,_0x1a524a._0xcbb63f,_0x1a524a._0x28e286)]?.[0x0]?.[_0x5d6703(0x31a,_0x1a524a._0x478b96,0x21e,0x34c)]??_0x3c383c;}catch{}const _0x2a99ed=_0x515997?_0x5d6703(0x561,_0x1a524a._0x225468,0x48c,0x56a)+_0x58cefb[_0x5d6703(_0x1a524a._0xc58b8a,0x69f,0x5a6,_0x1a524a._0x589adc)]+':\x20'+_0x515997:_0x5d6703(_0x1a524a._0x238f11,_0x1a524a._0x2db818,_0x1a524a._0x2f7704,_0x1a524a._0x347eba)+_0x58cefb['status']+'\x20'+_0x58cefb[_0x5bbd33(0x130,-0xf5,_0x1a524a._0x3c4d14,0x5e)];throw new ToolExecutionError(_0x2a99ed,{'statusCode':_0x58cefb[_0x5bbd33(0x183,-_0x1a524a._0x1621b6,_0x1a524a._0x33f7a4,0x69)],..._0x314397?{'body':_0x314397}:{}});}function _0x5d6703(_0x50b84c,_0x524402,_0x4c31a7,_0x4a05bc){return _0x55c88d(_0x50b84c-0x167,_0x4a05bc-0x52,_0x4c31a7,_0x4a05bc-_0x539d85._0x1253c2);}function _0x5bbd33(_0x28b883,_0x46a304,_0x395037,_0x4edafc){return _0x1e45aa(_0x28b883-0x191,_0x46a304-0x9b,_0x395037- -_0x30a7c4._0x53bc71,_0x28b883);}return await _0x58cefb[_0x5bbd33(-0xa9,-_0x1a524a._0x48f447,-0x70,-_0x1a524a._0x5157ef)]();}async function hydrateResults(_0x3a6d4e,_0x111108,_0x1858b2,_0x29b781){const _0x48ef83={_0x20b03c:0x636,_0xbaa2d0:0x62f,_0x2c8277:0x526,_0x3f515a:0x419,_0x246dcc:0x3f2,_0x5111ba:0x658,_0xe78128:0x518,_0x1c6cb2:0x51a,_0x57393e:0x8,_0x356d40:0x1c,_0x215631:0x142,_0x1d65ff:0x110,_0x2ee19d:0x29c,_0x11ede9:0x602},_0x2ca4ac={_0x580d02:0x79,_0x4e3f3d:0x592},_0x64ae98={_0x3409b2:0x7f,_0x470622:0x92},_0x2c3e9c={_0x2da4a6:0x16,_0x388ab6:0x1de,_0x36099c:0xb3,_0x16be17:0xe9,_0x17fb60:0x141,_0x828f51:0xf6,_0x4bb20c:0xaf,_0x22814e:0x8d,_0x4233a6:0x1e,_0x33b87c:0x20a,_0x2ff9d1:0x209,_0x4f5a5e:0xc2,_0x306ab9:0xd1,_0x20d44e:0x101,_0x477617:0xc1,_0x25c4ef:0x7a,_0x3af0cd:0x8d,_0xfd04f2:0x4,_0x448f39:0xe3,_0x186d44:0x99,_0x27162b:0x6d,_0x55f283:0x160,_0x5ce5d4:0x45,_0x1e8240:0x31,_0x1bbd52:0xe0,_0x2f2689:0xf9,_0x290607:0x182,_0x3fdd82:0x2a,_0x1f5639:0x5b,_0x1b8cd4:0x1ac,_0x5a34b8:0xd,_0x52aed4:0xe6,_0x396ebe:0x5e,_0x2e5cbe:0xaa,_0x3582ff:0x15d,_0x595a26:0x1f1,_0x593f0d:0x1bd,_0x5a32ab:0x79,_0x528273:0x119,_0x5b8d85:0x2e,_0x46eaa4:0xe6,_0x512179:0x11f,_0x541fe3:0x36,_0x416d51:0x173,_0x531230:0x6a,_0x5ba382:0x59,_0x12214b:0x12e,_0x5fd9b3:0x12,_0x4809ce:0x20f,_0x43589f:0x55,_0x440c95:0x205},_0x22f854={_0xde6ea:0x10e},_0xb19562=await Promise[_0x443ccf(_0x48ef83._0x20b03c,_0x48ef83._0xbaa2d0,_0x48ef83._0x2c8277,0x50c)](_0x3a6d4e[_0x443ccf(_0x48ef83._0x3f515a,0x495,0x422,_0x48ef83._0x246dcc)](0x0,0xa)[_0x443ccf(0x578,_0x48ef83._0x5111ba,_0x48ef83._0xe78128,_0x48ef83._0x1c6cb2)](async _0x3868c9=>{const _0x3759ea={_0x1a4422:0x1ef};function _0x47b0ea(_0x198cb8,_0x99e25f,_0x41b0af,_0x5ade95){return _0x4ed0b4(_0x198cb8-0x5,_0x5ade95- -_0x22f854._0xde6ea,_0x99e25f,_0x5ade95-0x2e);}function _0xd6f95e(_0x34af55,_0x377ac5,_0x24b97d,_0x5dfeba){return _0x4ed0b4(_0x34af55-0x1b3,_0x5dfeba- -0x129,_0x377ac5,_0x5dfeba-_0x3759ea._0x1a4422);}try{const _0x59cff5=await safeFetch(_0x3868c9[_0x47b0ea(_0x2c3e9c._0x2da4a6,_0x2c3e9c._0x388ab6,-0x33,0x12e)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x111108,'Accept':_0xd6f95e(_0x2c3e9c._0x36099c,0xd1,-0x11f,-0x2)},'signal':_0x1858b2},{'lookup':_0x29b781});if(!_0x59cff5['ok'])return _0x3868c9;const _0x12d5cd=await _0x59cff5[_0x47b0ea(0x3f,-0x66,0x1a8,0xdd)](),_0x48a51c=load(_0x12d5cd),_0x1c7dbb=_0x48a51c(_0x47b0ea(-0x18f,-_0x2c3e9c._0x16be17,-_0x2c3e9c._0x17fb60,-_0x2c3e9c._0x828f51))['attr'](_0x47b0ea(0x132,-_0x2c3e9c._0x4bb20c,0x8d,0x88))||_0x48a51c('title')[_0xd6f95e(_0x2c3e9c._0x22814e,0x149,_0x2c3e9c._0x4233a6,0xa)]()[_0xd6f95e(0x2a,_0x2c3e9c._0x33b87c,_0x2c3e9c._0x2ff9d1,_0x2c3e9c._0x4f5a5e)]()[_0x47b0ea(_0x2c3e9c._0x306ab9,0x1d,0x21b,_0x2c3e9c._0x20d44e)](),_0x300244=_0x48a51c(_0x47b0ea(-0x30,-0x27,0x2f,_0x2c3e9c._0x477617))[_0xd6f95e(-0x153,-_0x2c3e9c._0x25c4ef,-0x33,-0xe6)]('content')||_0x48a51c('meta[property=\x27og:description\x27]')[_0xd6f95e(-_0x2c3e9c._0x3af0cd,-_0x2c3e9c._0xfd04f2,0x38,-0xe6)](_0xd6f95e(-_0x2c3e9c._0x448f39,_0x2c3e9c._0x186d44,0xe2,_0x2c3e9c._0x27162b))||_0x3868c9[_0x47b0ea(-_0x2c3e9c._0x55f283,-_0x2c3e9c._0x5ce5d4,_0x2c3e9c._0x1e8240,-0x9c)],_0x48b1df=_0x48a51c('meta[property=\x27article:published_time\x27]')[_0xd6f95e(-_0x2c3e9c._0x1bbd52,-0x9f,-0x19c,-0xe6)](_0x47b0ea(0x4a,_0x2c3e9c._0x2f2689,0x143,0x88))||_0x48a51c(_0x47b0ea(_0x2c3e9c._0x290607,_0x2c3e9c._0x3fdd82,-_0x2c3e9c._0x1f5639,0xf1))[_0xd6f95e(-_0x2c3e9c._0x1b8cd4,-_0x2c3e9c._0x5a34b8,-0x1d0,-_0x2c3e9c._0x52aed4)](_0xd6f95e(-_0x2c3e9c._0x396ebe,-_0x2c3e9c._0x2e5cbe,-0x191,-0xc7))||_0x3868c9[_0xd6f95e(_0x2c3e9c._0x3582ff,-0x8d,0x9a,0xa5)],_0x385c99=_0x48a51c(_0xd6f95e(_0x2c3e9c._0x595a26,_0x2c3e9c._0x593f0d,_0x2c3e9c._0x5a32ab,0x78))[_0xd6f95e(-_0x2c3e9c._0x528273,-0xcb,_0x2c3e9c._0x5b8d85,-_0x2c3e9c._0x46eaa4)](_0x47b0ea(_0x2c3e9c._0x512179,-0x19,-0x104,0x1));return{..._0x3868c9,'title':_0x1c7dbb||_0x3868c9[_0xd6f95e(0x8a,0x40,-_0x2c3e9c._0x541fe3,-0x29)],'snippet':_0x300244,'url':_0x385c99?normalizeUrl(new URL(_0x385c99,_0x3868c9[_0xd6f95e(_0x2c3e9c._0x416d51,-_0x2c3e9c._0x531230,_0x2c3e9c._0x5ba382,0x113)])[_0xd6f95e(_0x2c3e9c._0x12214b,-0xb0,0xcf,_0x2c3e9c._0x5fd9b3)]()):_0x3868c9[_0x47b0ea(_0x2c3e9c._0x4809ce,-_0x2c3e9c._0x43589f,_0x2c3e9c._0x440c95,_0x2c3e9c._0x12214b)],'publishedAt':_0x48b1df};}catch{return _0x3868c9;}}));function _0x443ccf(_0x3b8280,_0x4133cb,_0x2fd0c4,_0x5c689b){return _0x1e45aa(_0x3b8280-_0x64ae98._0x3409b2,_0x4133cb-_0x64ae98._0x470622,_0x4133cb- -0xe1,_0x2fd0c4);}const _0x4375f9=new Map(_0x3a6d4e[_0x4ed0b4(_0x48ef83._0x57393e,-_0x48ef83._0x356d40,0x160,-_0x48ef83._0x215631)](0x0,0xa)[_0x4ed0b4(0x1b3,0x1a7,_0x48ef83._0x1d65ff,_0x48ef83._0x2ee19d)]((_0x565248,_0x387055)=>[_0x565248[_0x4ed0b4(0x30e,0x23c,0xe4,0x38f)],_0xb19562[_0x387055]]));function _0x4ed0b4(_0x1294ae,_0x2f431b,_0x52f191,_0xff5857){return _0x1e45aa(_0x1294ae-_0x2ca4ac._0x580d02,_0x2f431b-0x9f,_0x2f431b- -_0x2ca4ac._0x4e3f3d,_0x52f191);}return _0x3a6d4e[_0x443ccf(0x689,0x658,_0x48ef83._0x11ede9,0x604)](_0x3d7129=>_0x4375f9['get'](_0x3d7129[_0x4ed0b4(0x154,0x23c,0x22f,0x22d)])??_0x3d7129);}function formatResults(_0x55db05){const _0x2d5c99={_0x35ce63:0x5c2,_0x20f742:0x43c,_0x18435c:0x2d3},_0x4e183c={_0x5d1f38:0x1fb,_0x2a7b9f:0x2c7,_0x3e967d:0x486,_0x173d81:0x517,_0x4d43e7:0x125,_0xa58fca:0x130,_0x45bac8:0x137,_0x54301e:0x12a,_0x224fa1:0x29c,_0x1b7b46:0x2d8,_0x498a73:0x344,_0x5e146a:0x336,_0x48566c:0x210,_0x117bdb:0x33a,_0x16a0ba:0x327,_0x2e227b:0x441,_0xaedffa:0x9c,_0x3ec29b:0x14,_0x16aeb1:0x126,_0x52ad1b:0x39b,_0x3d8646:0x33b,_0x347efa:0x364,_0x1794d8:0x288},_0xf647de={_0x54b231:0x8f};function _0xa3ccf0(_0xf90f69,_0x3d6a48,_0x2a32fb,_0x49ceb2){return _0x55c88d(_0xf90f69-0xca,_0x3d6a48- -_0xf647de._0x54b231,_0x2a32fb,_0x49ceb2-0x170);}if(_0x55db05[_0xa3ccf0(_0x2d5c99._0x35ce63,0x4a2,0x490,_0x2d5c99._0x20f742)]===0x0)return'No\x20results\x20found.';function _0x19a244(_0xbc6d71,_0x2171ec,_0x5245d7,_0x4de7ee){return _0x1e45aa(_0xbc6d71-0x1c5,_0x2171ec-0xcc,_0x4de7ee- -0x253,_0x2171ec);}return _0x55db05[_0xa3ccf0(_0x2d5c99._0x18435c,0x3f9,0x3e9,0x575)](_0x4450e8=>{const _0x394c70={_0x193400:0x144},_0x58346e={_0x189d70:0x12f,_0x3fa0ab:0x22b},_0x244292=[_0x4450e8['source']['rank']+'.\x20'+_0x4450e8[_0x3814b3(_0x4e183c._0x5d1f38,0x32a,0x40a,_0x4e183c._0x2a7b9f)],_0x4450e8[_0x3814b3(_0x4e183c._0x3e967d,0x466,0x516,_0x4e183c._0x173d81)]];if(_0x4450e8[_0x2463d4(0xdc,-0x72,0x99,-0xb)])_0x244292[_0x2463d4(_0x4e183c._0x4d43e7,_0x4e183c._0xa58fca,_0x4e183c._0x45bac8,0xe4)](_0x4450e8[_0x3814b3(_0x4e183c._0x54301e,_0x4e183c._0x224fa1,_0x4e183c._0x1b7b46,_0x4e183c._0x498a73)]);function _0x2463d4(_0x316183,_0x2ce792,_0x1fa363,_0xae3a25){return _0xa3ccf0(_0x316183-_0x58346e._0x189d70,_0x1fa363- -_0x58346e._0x3fa0ab,_0x2ce792,_0xae3a25-0xbf);}if(_0x4450e8[_0x3814b3(0x2aa,0x3f8,0x556,_0x4e183c._0x5e146a)])_0x244292[_0x3814b3(_0x4e183c._0x48566c,_0x4e183c._0x117bdb,_0x4e183c._0x16a0ba,_0x4e183c._0x2e227b)](_0x2463d4(_0x4e183c._0xaedffa,_0x4e183c._0x3ec29b,0xdd,0x17a)+_0x4450e8[_0x2463d4(0xca,0x372,0x1f5,_0x4e183c._0x16aeb1)]);function _0x3814b3(_0x4b1801,_0x171bf8,_0x3bc1c7,_0x451962){return _0x19a244(_0x4b1801-0xfd,_0x3bc1c7,_0x3bc1c7-_0x394c70._0x193400,_0x171bf8- -0x115);}return _0x244292[_0x3814b3(_0x4e183c._0x52ad1b,_0x4e183c._0x3d8646,_0x4e183c._0x347efa,_0x4e183c._0x1794d8)]('\x0a');})['join']('\x0a\x0a');}async function searchOllama(_0x93cd47,_0x389fa5,_0x40f81e){const _0x5a766f={_0x484f49:0x642,_0x46e077:0x5d7,_0x52c410:0x580,_0x393dc9:0x5dd,_0x5a3a8a:0x807,_0x3e2c56:0x2b8,_0x74aad2:0x46c,_0x2a5bab:0x577,_0x3ea59e:0x5a9,_0x3c8b92:0x5f2,_0x3eb22a:0x4a1,_0x3c45ae:0x581,_0x54bfcf:0x63d,_0x589800:0x61b,_0x5cc48d:0x704,_0x2ee4f3:0x6ce,_0x56b8de:0x482,_0x2e6330:0x2c1,_0x4c6487:0x39a,_0x3b6184:0x21d,_0x32b90d:0x68c},_0x3b1e87={_0x385cec:0x753,_0x44e162:0x770,_0x276f1b:0x859,_0x5237f8:0x111,_0xf3c4cb:0x148,_0x58af1c:0x1ed,_0x324811:0x75d,_0x5e8c5c:0x72b,_0x472b0e:0x829},_0x8f9459={_0x37a23:0x146},_0x1133ec={_0x3a2a17:0x1a3,_0x56e6ad:0x5},_0x5cb74b={_0x3d3bc0:0x15,_0x2fd874:0xbd},_0x3549f2=Math[_0x1cdb33(0x508,_0x5a766f._0x484f49,0x73b,_0x5a766f._0x46e077)](0x1,Math[_0x1cdb33(0x4a8,_0x5a766f._0x52c410,_0x5a766f._0x393dc9,0x52b)](0xa,_0x389fa5[_0x1cdb33(0x6f0,0x7d7,_0x5a766f._0x5a3a8a,0x778)])),_0x245fe6=addSiteFilters(_0x389fa5[_0x2247cc(0x221,0x182,_0x5a766f._0x3e2c56,0x349)],_0x389fa5[_0x1cdb33(_0x5a766f._0x74aad2,0x5b1,_0x5a766f._0x2a5bab,_0x5a766f._0x3ea59e)]),_0x2325b3=await fetchJson(_0x2247cc(0x5fa,_0x5a766f._0x3c8b92,_0x5a766f._0x3eb22a,0x48c),_0x40f81e,{'method':'POST','headers':{'Authorization':_0x1cdb33(0x610,_0x5a766f._0x3c45ae,_0x5a766f._0x54bfcf,_0x5a766f._0x589800)+_0x93cd47['apiKey']},'body':JSON[_0x1cdb33(0x82a,_0x5a766f._0x5cc48d,_0x5a766f._0x2ee4f3,0x757)]({'query':_0x245fe6,'max_results':_0x3549f2})}),_0x26b65b=_0x2325b3[_0x2247cc(_0x5a766f._0x56b8de,_0x5a766f._0x2e6330,_0x5a766f._0x4c6487,_0x5a766f._0x3b6184)]??[];function _0x2247cc(_0x499da5,_0x408787,_0x4df7f0,_0x374ca7){return _0x55c88d(_0x499da5-0xde,_0x4df7f0- -_0x5cb74b._0x3d3bc0,_0x499da5,_0x374ca7-_0x5cb74b._0x2fd874);}function _0x1cdb33(_0x3d5aff,_0x3c882b,_0x27dd25,_0x4ff961){return _0x55c88d(_0x3d5aff-_0x1133ec._0x3a2a17,_0x4ff961-0x257,_0x3c882b,_0x4ff961-_0x1133ec._0x56e6ad);}const _0x576e39=_0x26b65b['map']((_0x46124c,_0x21d282)=>{const _0x451808={_0x5e0a79:0x1a6};function _0x4502df(_0x5e28f9,_0x3b6d03,_0x3c88b9,_0xc91394){return _0x1cdb33(_0x5e28f9-_0x451808._0x5e0a79,_0x3c88b9,_0x3c88b9-0x0,_0x5e28f9- -0x1f);}const _0x12e24a=_0x46124c['url']||'';let _0x2656f5;function _0x548818(_0x1cd60b,_0xd98893,_0x448276,_0x360525){return _0x1cdb33(_0x1cd60b-0x11,_0xd98893,_0x448276-_0x8f9459._0x37a23,_0x360525- -0x3fe);}try{_0x2656f5=new URL(_0x12e24a)[_0x4502df(_0x3b1e87._0x385cec,0x7e8,_0x3b1e87._0x44e162,_0x3b1e87._0x276f1b)];}catch{_0x2656f5=null;}return{'title':_0x46124c['title']||_0x548818(_0x3b1e87._0x5237f8,0xb9,0x275,_0x3b1e87._0xf3c4cb),'url':normalizeUrl(_0x12e24a),'snippet':_0x46124c[_0x548818(0x3ec,_0x3b1e87._0x58af1c,0x377,0x2d0)]??null,'displayUrl':_0x2656f5,'favicon':null,'publishedAt':null,'source':{'engine':_0x4502df(_0x3b1e87._0x324811,_0x3b1e87._0x5e8c5c,_0x3b1e87._0x472b0e,0x673),'rank':_0x21d282+0x1}};});return{'items':_0x576e39[_0x1cdb33(_0x5a766f._0x32b90d,0x5ed,0x451,0x51c)](0x0,_0x3549f2),'engine':'ollama'};}async function searchTavily(_0x3e7daa,_0x22101f,_0x5abd30){const _0x2130a6={_0x84d402:0x6f4,_0x2670e6:0x6ec,_0x534f90:0x4a0,_0x25318c:0x3ec,_0x2b22f2:0x58b,_0x2719bf:0x732,_0x322bbe:0x76e,_0x213932:0x700,_0xccff87:0x548,_0x2de0b5:0x529,_0x5cc658:0x5b9,_0x1c898e:0x597,_0x2bf82c:0x4db,_0x331b5b:0x5c3,_0xd59f37:0x663,_0x4c0bc3:0x6d3,_0x561c9:0x7d7,_0x29f26f:0x79c,_0x2149cd:0x5df,_0x56bfb6:0x711,_0x2ba94f:0x6e6,_0x4f030a:0x56b,_0x413dfc:0x72e},_0x3dca7b={_0x3d3731:0x5eb,_0x34cf93:0x4d0,_0x1687b9:0x5ec,_0xd70732:0x4aa,_0x160f6e:0x3ab,_0x1f220a:0x28b,_0x43047d:0x533,_0x4cf4cb:0x687},_0x55cda6={_0x1d2484:0x2a9,_0x3ad52c:0x193},_0x25f74e={_0x266004:0x4c,_0x4665db:0x117,_0x263075:0x53},_0x3790a3={_0x5176db:0x3f};function _0x4ed845(_0x22b2d9,_0x4d5353,_0x12e5b5,_0x14d4a6){return _0x1e45aa(_0x22b2d9-0x13f,_0x4d5353-_0x3790a3._0x5176db,_0x22b2d9- -0xde,_0x4d5353);}const _0x43c80b=Math['max'](0x1,Math['min'](0x14,_0x22101f[_0x4ed845(_0x2130a6._0x84d402,_0x2130a6._0x2670e6,0x7e7,0x5f2)])),_0x739c5a={'query':_0x22101f[_0x4ed845(_0x2130a6._0x534f90,0x58d,0x3b9,_0x2130a6._0x25318c)],'max_results':_0x43c80b,'search_depth':_0x3e7daa['searchDepth']??_0x4bcd22(_0x2130a6._0x2b22f2,0x643,0x5f1,0x63a),'topic':_0x3e7daa['topic']??_0x4bcd22(_0x2130a6._0x2719bf,0x63c,0x709,0x6e0)};function _0x4bcd22(_0x995df6,_0xa94dc3,_0x2c99e3,_0x176905){return _0x1e45aa(_0x995df6-_0x25f74e._0x266004,_0xa94dc3-_0x25f74e._0x4665db,_0xa94dc3- -_0x25f74e._0x263075,_0x995df6);}if(_0x22101f['domains'][_0x4ed845(0x704,_0x2130a6._0x322bbe,0x848,_0x2130a6._0x213932)]>0x0)_0x739c5a['include_domains']=_0x22101f[_0x4ed845(0x525,_0x2130a6._0xccff87,_0x2130a6._0x2de0b5,_0x2130a6._0x5cc658)];const _0x594f18=await fetchJson('https://api.tavily.com/search',_0x5abd30,{'method':'POST','headers':{'Authorization':_0x4ed845(_0x2130a6._0x1c898e,_0x2130a6._0x2bf82c,_0x2130a6._0x331b5b,0x552)+_0x3e7daa['tavilyApiKey'],'Content-Type':_0x4ed845(0x774,0x677,0x838,_0x2130a6._0xd59f37)},'body':JSON[_0x4ed845(_0x2130a6._0x4c0bc3,_0x2130a6._0x561c9,_0x2130a6._0x29f26f,_0x2130a6._0x2149cd)](_0x739c5a)}),_0x49dcb3=_0x594f18['results']??[],_0x55abeb=_0x49dcb3[_0x4bcd22(_0x2130a6._0x56bfb6,_0x2130a6._0x2ba94f,_0x2130a6._0x4f030a,0x7d1)]((_0x592f54,_0x465a2a)=>{const _0x1bbd61=_0x592f54[_0x1ced73(0x4d2,_0x3dca7b._0x3d3731,0x498,0x4af)]||'';function _0x1ced73(_0x55138d,_0x3c428a,_0x12b2eb,_0x30ddce){return _0x4bcd22(_0x12b2eb,_0x55138d- -_0x55cda6._0x1d2484,_0x12b2eb-0x4,_0x30ddce-_0x55cda6._0x3ad52c);}let _0x50a438;function _0x34657e(_0x44e582,_0x331b9e,_0x51ec93,_0x5f4bb6){return _0x4ed845(_0x331b9e- -0x117,_0x5f4bb6,_0x51ec93-0xb,_0x5f4bb6-0x70);}try{_0x50a438=new URL(_0x1bbd61)[_0x1ced73(_0x3dca7b._0x34cf93,0x414,0x5fa,0x5a9)];}catch{_0x50a438=null;}return{'title':_0x592f54[_0x34657e(0x46a,0x49d,_0x3dca7b._0x1687b9,_0x3dca7b._0xd70732)]||_0x34657e(0x2ae,_0x3dca7b._0x160f6e,_0x3dca7b._0x1f220a,0x36a),'url':normalizeUrl(_0x1bbd61),'snippet':_0x592f54[_0x34657e(0x485,_0x3dca7b._0x43047d,_0x3dca7b._0x4cf4cb,0x449)]??null,'displayUrl':_0x50a438,'favicon':null,'publishedAt':null,'source':{'engine':'tavily','rank':_0x465a2a+0x1}};});return{'items':_0x55abeb['slice'](0x0,_0x43c80b),'engine':_0x4ed845(0x615,_0x2130a6._0x413dfc,0x763,0x69f)};}async function searchGoogleCse(_0x1eb60f,_0x16bcd1,_0x5b3109){const _0x190aa2={_0x3e4e16:0x230,_0x31b7f3:0x11d,_0x21f7f6:0x34a,_0x316c2a:0x201,_0x944d92:0x84,_0x5700cc:0x536,_0x3ef642:0x602,_0x542fab:0x385,_0x3d1f0a:0x208,_0x27b933:0x261,_0x5ab20e:0x337,_0x464816:0x1fa,_0x17ff1e:0x1f5,_0x246054:0x197,_0x5aa4e3:0x3ff,_0x3bd209:0x4aa,_0x15bb82:0x41b,_0xa2db71:0x67,_0x16f1b9:0x1e1,_0x4494b0:0x47,_0x835c95:0x51,_0x5743a5:0x188,_0x372837:0x12e,_0x38c249:0x8e,_0x2162ee:0x167,_0x54de5c:0x3e3,_0x4e8c6e:0x175,_0x5a733f:0x26c,_0x2ee9e8:0x3e4,_0x95c7af:0x39e,_0xef528:0x41c,_0x1727f5:0x218,_0x5d83f3:0x2d3,_0x5ef1d1:0x14b,_0x5658a9:0x405,_0x145a06:0x288,_0x41b95b:0x2dd,_0x4e5ee2:0x3a4,_0x114ede:0x13f,_0x2550ec:0x283,_0x15e2f4:0x290,_0x5dfca6:0x228,_0x9d6ca8:0x12e,_0x1d24bf:0x11e,_0x103e7b:0x272,_0x4aa74b:0x111,_0x20d6e0:0x2e,_0x30a283:0x244,_0x302cdd:0x2e5,_0x489f5a:0x254,_0x1cc0b6:0x24c,_0x114216:0x212,_0xa25173:0x2a2,_0x4cef22:0x25,_0x4f38f9:0x2ed,_0x2b8900:0x33e,_0x1a1617:0x462,_0x41af4f:0x484,_0x5b00c7:0x4b5,_0x258189:0x461,_0x341c80:0x1fc,_0x17b19a:0xef,_0xebea36:0x29c,_0x6bd4fb:0x3e6,_0x4d3b88:0x3d5,_0x18a415:0x4ad,_0x2faf19:0x4bc,_0x3268e7:0x28a,_0x58b946:0x2a8,_0x1a48cb:0x311,_0x25515f:0x326,_0x3c7bee:0x49a,_0x482c69:0x28c,_0x4816d0:0x1d5,_0x53d20f:0x578,_0x13cd62:0x34d,_0x5a7319:0x57e,_0x331cdb:0x58,_0x1519a2:0xc1,_0x200989:0x436,_0x786b1e:0x4b9,_0x315f33:0x19a,_0x4a4ff7:0x4e,_0x2acf45:0x23f,_0x5bf56f:0x2ee,_0x2fe514:0xa8,_0x22f82b:0x39d,_0x443f05:0x301,_0x46af09:0x2aa,_0x397796:0x17d,_0x362e62:0x135,_0x53e323:0x281,_0x48c51f:0x327,_0x461aa5:0xff,_0x9e489d:0x210,_0x5a2d63:0x430,_0x245a97:0x33f,_0x306f48:0x448,_0x238d8a:0xe1,_0x33faf5:0x231,_0x136a2a:0xb6,_0x48d132:0x1f8,_0x58ce45:0x11f,_0x108ecd:0x56e,_0x46ad17:0x526,_0x358ddb:0x45e,_0x588b6e:0x19d},_0x56b74e={_0x5d6302:0x247,_0x38d22f:0x1d},_0x379b3a={_0x9701c0:0x384},_0x503608=Math[_0x19c4a0(0x14f,0x1e2,0x139,_0x190aa2._0x3e4e16)](0x1,Math[_0x294d5f(_0x190aa2._0x31b7f3,_0x190aa2._0x21f7f6,_0x190aa2._0x316c2a,_0x190aa2._0x944d92)](0x32,_0x16bcd1[_0x294d5f(0x560,_0x190aa2._0x5700cc,0x44e,0x549)]));if(_0x16bcd1[_0x294d5f(_0x190aa2._0x3ef642,_0x190aa2._0x542fab,0x4aa,0x4d4)]+_0x503608>0x64)throw new ToolExecutionError(_0x19c4a0(0x370,_0x190aa2._0x3d1f0a,0x2e3,_0x190aa2._0x27b933),{'offset':_0x16bcd1['offset'],'count':_0x503608,'maxResults':0x64});function _0x294d5f(_0x3a4d8e,_0x5bad86,_0x3bd9ff,_0x3cd04a){return _0x1e45aa(_0x3a4d8e-0x158,_0x5bad86-0xb5,_0x3bd9ff- -_0x379b3a._0x9701c0,_0x3cd04a);}const _0x4c3a36=cseDateRestrict(_0x16bcd1[_0x294d5f(0x379,_0x190aa2._0x5ab20e,0x3ad,0x44c)]);function _0x19c4a0(_0x21fd4b,_0x57a801,_0x5723d9,_0x410f11){return _0x55c88d(_0x21fd4b-0xab,_0x5723d9- -_0x56b74e._0x5d6302,_0x21fd4b,_0x410f11-_0x56b74e._0x38d22f);}const _0x866a11=addSiteFilters(_0x16bcd1[_0x294d5f(0x262,0x175,_0x190aa2._0x464816,0x21c)],_0x16bcd1[_0x19c4a0(_0x190aa2._0x17ff1e,_0x190aa2._0x246054,0x10b,0x110)]);let _0x5e5bd7=0x0,_0x41e31c=_0x16bcd1[_0x294d5f(0x397,_0x190aa2._0x5aa4e3,_0x190aa2._0x3bd209,_0x190aa2._0x15bb82)]+0x1;const _0x474cd4=[];while(_0x5e5bd7<_0x503608){const _0x22f845=Math[_0x19c4a0(_0x190aa2._0xa2db71,_0x190aa2._0x16f1b9,0x8d,0x29)](0xa,_0x503608-_0x5e5bd7),_0x17a16f=new URL(_0x19c4a0(_0x190aa2._0x4494b0,-_0x190aa2._0x835c95,0xea,_0x190aa2._0x5743a5));_0x17a16f['searchParams'][_0x19c4a0(0xe7,0x145,_0x190aa2._0x372837,_0x190aa2._0x38c249)](_0x294d5f(0x37f,0x44f,0x321,0x478),_0x1eb60f[_0x19c4a0(0x137,0x2ce,0x273,_0x190aa2._0x2162ee)]),_0x17a16f[_0x19c4a0(_0x190aa2._0x54de5c,_0x190aa2._0x4e8c6e,0x2a8,_0x190aa2._0x5a733f)]['set']('cx',_0x1eb60f[_0x294d5f(_0x190aa2._0x2ee9e8,0x2fa,0x385,0x39d)]),_0x17a16f[_0x294d5f(0x39a,_0x190aa2._0x95c7af,_0x190aa2._0xef528,0x2e0)][_0x19c4a0(0x46,0x259,0x12e,_0x190aa2._0x1727f5)]('q',_0x866a11),_0x17a16f[_0x19c4a0(_0x190aa2._0x5d83f3,_0x190aa2._0x5ef1d1,0x2a8,_0x190aa2._0x5658a9)]['set']('num',String(_0x22f845)),_0x17a16f[_0x19c4a0(_0x190aa2._0x145a06,_0x190aa2._0x41b95b,0x2a8,0x17f)]['set'](_0x294d5f(_0x190aa2._0x4e5ee2,_0x190aa2._0x114ede,_0x190aa2._0x2550ec,_0x190aa2._0x15e2f4),String(_0x41e31c)),_0x17a16f['searchParams'][_0x19c4a0(_0x190aa2._0x5dfca6,-0x33,_0x190aa2._0x9d6ca8,0x6e)](_0x294d5f(_0x190aa2._0x1d24bf,0x250,_0x190aa2._0x103e7b,_0x190aa2._0x4aa74b),_0x16bcd1[_0x19c4a0(-_0x190aa2._0x20d6e0,0x1d4,0xfe,-0x1e)]?_0x294d5f(_0x190aa2._0x30a283,0x17f,_0x190aa2._0x302cdd,_0x190aa2._0x464816):_0x19c4a0(0x3c6,0x173,_0x190aa2._0x489f5a,0x1bc));_0x16bcd1[_0x19c4a0(_0x190aa2._0x1cc0b6,_0x190aa2._0x114216,0x1c8,0xd7)]&&(_0x17a16f['searchParams'][_0x19c4a0(0x134,_0x190aa2._0xa25173,_0x190aa2._0x9d6ca8,0x1d1)]('hl',_0x16bcd1['lang']),_0x17a16f['searchParams'][_0x19c4a0(_0x190aa2._0x4cef22,0x254,_0x190aa2._0x9d6ca8,0x29b)]('lr',_0x294d5f(_0x190aa2._0x4f38f9,_0x190aa2._0x2b8900,_0x190aa2._0x1a1617,0x37d)+_0x16bcd1['lang']));if(_0x16bcd1['region'])_0x17a16f[_0x294d5f(_0x190aa2._0x41af4f,_0x190aa2._0x5b00c7,0x41c,_0x190aa2._0x258189)][_0x19c4a0(_0x190aa2._0x341c80,_0x190aa2._0x17b19a,0x12e,0x269)]('gl',_0x16bcd1[_0x19c4a0(0x122,0x225,_0x190aa2._0xebea36,0x3c9)][_0x294d5f(0x43e,_0x190aa2._0x6bd4fb,0x2d3,_0x190aa2._0x4d3b88)]());if(_0x16bcd1[_0x294d5f(_0x190aa2._0x18a415,_0x190aa2._0x2faf19,0x4cf,0x5c7)]==='images')_0x17a16f[_0x19c4a0(0x3b5,_0x190aa2._0x3268e7,_0x190aa2._0x58b946,0x191)]['set'](_0x19c4a0(0x223,_0x190aa2._0x1a48cb,_0x190aa2._0x25515f,_0x190aa2._0x3c7bee),'image');if(_0x4c3a36)_0x17a16f['searchParams']['set']('dateRestrict',_0x4c3a36);const _0x26d102=await fetchJson(_0x17a16f[_0x19c4a0(0x136,_0x190aa2._0x482c69,_0x190aa2._0x4816d0,0x24b)](),_0x5b3109),_0x18a081=_0x26d102['items']??[];if(_0x18a081[_0x294d5f(_0x190aa2._0x53d20f,_0x190aa2._0x13cd62,0x45e,_0x190aa2._0x5a7319)]===0x0)break;const _0x2cbfb3=_0x5e5bd7;for(let _0x201589=0x0;_0x201589<_0x18a081['length'];_0x201589++){const _0x7aa0eb=_0x18a081[_0x201589];if(!_0x7aa0eb)continue;const _0x2545e9=_0x7aa0eb['link']||_0x7aa0eb[_0x19c4a0(-_0x190aa2._0x331cdb,-_0x190aa2._0x835c95,_0x190aa2._0x1519a2,-0x60)]?.[_0x294d5f(_0x190aa2._0x200989,0x3c9,0x4b6,_0x190aa2._0x786b1e)]||'',_0x2329ae=_0x7aa0eb[_0x19c4a0(0xe3,0x30f,_0x190aa2._0x315f33,0xe7)]||_0x7aa0eb[_0x19c4a0(-_0x190aa2._0x4a4ff7,_0x190aa2._0x2acf45,0xc1,-0x90)]?.[_0x19c4a0(0x1f9,_0x190aa2._0x5bf56f,0x19a,0x2fc)]||_0x19c4a0(0x1d9,0x1ce,_0x190aa2._0x2fe514,0x7f),_0x347ed2=_0x7aa0eb['snippet']||_0x7aa0eb[_0x294d5f(_0x190aa2._0x22f82b,0x442,_0x190aa2._0x443f05,0x1d6)]?.[_0x19c4a0(_0x190aa2._0x46af09,_0x190aa2._0x397796,_0x190aa2._0x362e62,_0x190aa2._0x53e323)](/<[^>]+>/g,''),_0x220c53=_0x7aa0eb['pagemap']?.[_0x294d5f(_0x190aa2._0x48c51f,_0x190aa2._0x461aa5,_0x190aa2._0x9e489d,0xe1)]?.[0x0]??{};let _0x431cb2;try{_0x431cb2=new URL(_0x2545e9)[_0x294d5f(_0x190aa2._0x5a2d63,_0x190aa2._0x245a97,_0x190aa2._0x306f48,0x363)];}catch{_0x431cb2=null;}_0x474cd4[_0x19c4a0(0x2ee,0x1c2,0x1aa,_0x190aa2._0x238d8a)]({'title':_0x2329ae,'url':normalizeUrl(_0x2545e9),'snippet':_0x347ed2??null,'displayUrl':_0x431cb2,'favicon':null,'publishedAt':_0x220c53[_0x19c4a0(0x328,0x30b,_0x190aa2._0x33faf5,_0x190aa2._0x136a2a)]||_0x220c53[_0x294d5f(_0x190aa2._0x48d132,_0x190aa2._0x58ce45,0x27a,0x2d9)]||null,'source':{'engine':'google-cse','rank':_0x2cbfb3+_0x201589+0x1}});}_0x5e5bd7+=_0x18a081[_0x294d5f(_0x190aa2._0x108ecd,_0x190aa2._0x46ad17,_0x190aa2._0x358ddb,0x323)],_0x41e31c+=_0x18a081[_0x19c4a0(0x183,_0x190aa2._0x1cc0b6,0x2ea,0x1ff)];if(_0x18a081[_0x19c4a0(_0x190aa2._0x588b6e,0x2d5,0x2ea,0x448)]<_0x22f845)break;}return _0x474cd4['slice'](0x0,_0x503608);}function isGoogleCseEngine(_0x13662f){return'googleCseKey'in _0x13662f;}function _0x3bdd(_0x197667,_0x472eb6){_0x197667=_0x197667-0x1c7;const _0x770d22=_0x770d();let _0x3bdd1d=_0x770d22[_0x197667];if(_0x3bdd['LDdWTW']===undefined){var _0x31d8fd=function(_0x1789e3){const _0x112f66='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x306edd='',_0x33fb2='';for(let _0x5a46d6=0x0,_0x18404d,_0x251ef4,_0x1c9354=0x0;_0x251ef4=_0x1789e3['charAt'](_0x1c9354++);~_0x251ef4&&(_0x18404d=_0x5a46d6%0x4?_0x18404d*0x40+_0x251ef4:_0x251ef4,_0x5a46d6++%0x4)?_0x306edd+=String['fromCharCode'](0xff&_0x18404d>>(-0x2*_0x5a46d6&0x6)):0x0){_0x251ef4=_0x112f66['indexOf'](_0x251ef4);}for(let _0x4a1fd2=0x0,_0xd46fc8=_0x306edd['length'];_0x4a1fd2<_0xd46fc8;_0x4a1fd2++){_0x33fb2+='%'+('00'+_0x306edd['charCodeAt'](_0x4a1fd2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x33fb2);};_0x3bdd['djzAsS']=_0x31d8fd,_0x3bdd['cnRGRy']={},_0x3bdd['LDdWTW']=!![];}const _0x1b777c=_0x770d22[0x0],_0xcf0112=_0x197667+_0x1b777c,_0x183bd7=_0x3bdd['cnRGRy'][_0xcf0112];return!_0x183bd7?(_0x3bdd1d=_0x3bdd['djzAsS'](_0x3bdd1d),_0x3bdd['cnRGRy'][_0xcf0112]=_0x3bdd1d):_0x3bdd1d=_0x183bd7,_0x3bdd1d;}function isOllamaEngine(_0x1cf676){return'apiKey'in _0x1cf676;}function isTavilyEngine(_0x2e9ea2){const _0x1543bb={_0x41d0da:0x4e5},_0x428a76={_0x5b660c:0x3};function _0x432577(_0x4e16aa,_0x4fb1a1,_0x23c116,_0x58bc04){return _0x55c88d(_0x4e16aa-0x1e7,_0x4e16aa-0x51,_0x58bc04,_0x58bc04-_0x428a76._0x5b660c);}return _0x432577(0x4f9,0x612,_0x1543bb._0x41d0da,0x65d)in _0x2e9ea2;}function createWebSearchTool(_0x403aef){const _0x3f2038={_0x244f00:0x1d1,_0x793137:0x415,_0x40fced:0x2ce,_0x47ffd0:0x31d,_0x50d238:0x1d3,_0x3a0e49:0x277,_0x554e54:0x433,_0x57f9ad:0x509,_0x39b5e9:0x389,_0x4928d4:0x213,_0x1eb3b0:0x3c5,_0x5bc3f0:0x314,_0x215970:0x2ab,_0x7ccbd8:0x30e,_0x2c735e:0x3ec,_0x310b27:0x3f0,_0x28ed1c:0x2b4,_0x3e24af:0x320,_0x3098c7:0x393,_0x3d2fa0:0x238,_0x78a2ba:0x487,_0x5acdbb:0x1dc,_0x3f3ce0:0x20c,_0x479812:0x17b,_0x1948b3:0x4f6,_0x454ea6:0x2df,_0x1e53e6:0x18a,_0x4c7a9a:0x2eb,_0x32cde4:0x150,_0x5ab08b:0x47,_0x2fd811:0xf1,_0x52aeda:0x2e8,_0x5f2a0e:0x19d,_0x2fc2ff:0xf0},_0x2ff9a8={_0x2f3b8a:0x79b,_0x2efa7c:0x7e2,_0x8dddf8:0x562,_0x54f86d:0x208,_0x494884:0x5a5,_0x48fb83:0x5e6,_0x5c6b69:0x89d,_0x1a686d:0x57b,_0x5f4e5b:0x659,_0x26e0a4:0x523,_0x586749:0x333,_0x3054fd:0x43,_0x9500d4:0x771,_0x195dc1:0x4b0,_0x1a21e1:0x8af,_0x14579e:0x863,_0x22e65a:0x8f2,_0x3c9982:0x6a0,_0x4f8a74:0x705,_0x4c04de:0x28,_0x5404df:0x1d2,_0x1cca91:0x1e3,_0x246b5c:0x748,_0x390ee4:0x88e,_0x597f55:0xc1,_0x668a78:0x6ea,_0x327500:0x861,_0x283390:0x2b,_0x536660:0xcf,_0x3ebc1a:0x7b,_0x512307:0x4,_0xf3e6d2:0x72,_0x220169:0x665,_0x516af2:0x47f,_0x4898bc:0x6bb,_0x268fec:0x4a,_0x49b985:0x6e,_0x279de8:0x6,_0x331d54:0x1ca,_0x4cc06e:0x38,_0xcd1e92:0x94c,_0x2e4c34:0x43,_0x2db306:0x2b,_0x1c2d70:0x74b,_0x335c9d:0x62b,_0x881bc3:0x607,_0x34ea4f:0x80a,_0x119ae7:0x1a7,_0x5b26cc:0x10,_0x13165b:0x76a,_0x3c6ffb:0x54c,_0x26e98c:0x43,_0xe4fbe6:0x91,_0x43b97c:0x759,_0x46b067:0x6f0,_0x19a5ea:0x6e8,_0x2b623a:0x699,_0x446784:0x56,_0x4b6a9b:0x7fb,_0x41aee2:0x7bc,_0x4d7b98:0x6d7,_0x1de994:0x670,_0x51ad46:0x74c,_0x118f1a:0x7ce,_0xb4311a:0x482,_0x4349ca:0x47d,_0x53dc07:0x9b8,_0x21b3bb:0x859,_0x11ea55:0x6e5,_0x28cbed:0x144,_0x57ee8b:0x7fa,_0x7aee3:0x86a},_0x41fa32={_0x553271:0x4c4,_0x4c4515:0x3d7,_0x17d811:0x413,_0x154f4d:0x48f,_0x24c16d:0x369,_0x3f8aba:0x564,_0x38b2d5:0x5a0,_0x5b5957:0x30e,_0x146024:0x44e},_0x59fc33={_0x247ce0:0x385,_0x19b546:0x112},_0x1707e7={_0x534fa8:0x35d};if(!_0x403aef[_0x2568f1(_0x3f2038._0x244f00,0x306,_0x3f2038._0x793137,0x2db)]||_0x403aef['engines'][_0x2568f1(0x271,0x28a,0x376,_0x3f2038._0x40fced)]===0x0)throw new Error(_0x2568f1(0x3dd,_0x3f2038._0x47ffd0,_0x3f2038._0x50d238,_0x3f2038._0x3a0e49));function _0x2568f1(_0x3967c0,_0x4fddfd,_0x1be809,_0x490c4c){return _0x55c88d(_0x3967c0-0xc4,_0x490c4c- -0x263,_0x1be809,_0x490c4c-0xc0);}const _0x56397a=_0x403aef[_0x6b78b8(_0x3f2038._0x554e54,_0x3f2038._0x57f9ad,_0x3f2038._0x39b5e9,0x32e)]??'WebSearch',_0x192ac2=_0x403aef[_0x2568f1(_0x3f2038._0x4928d4,0x440,_0x3f2038._0x1eb3b0,_0x3f2038._0x5bc3f0)];function _0x6b78b8(_0xc25848,_0x41ffab,_0xdb15e9,_0x334b3d){return _0x1e45aa(_0xc25848-0x110,_0x41ffab-0x88,_0xc25848- -_0x1707e7._0x534fa8,_0x41ffab);}return defineTool({'name':_0x56397a,'description':'Search\x20the\x20web\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x6b78b8(_0x3f2038._0x215970,_0x3f2038._0x7ccbd8,_0x3f2038._0x2c735e,0x421),'properties':{'description':{'type':_0x6b78b8(0x3c2,_0x3f2038._0x310b27,_0x3f2038._0x28ed1c,0x2dc)},'query':{'type':_0x2568f1(0x89,0x371,_0x3f2038._0x3e24af,0x20b)},'count':{'type':_0x6b78b8(_0x3f2038._0x3098c7,_0x3f2038._0x3d2fa0,_0x3f2038._0x78a2ba,0x49b)},'offset':{'type':_0x2568f1(0x22d,0x1ec,0x218,_0x3f2038._0x5acdbb)},'domains':{'type':_0x2568f1(_0x3f2038._0x3f3ce0,_0x3f2038._0x479812,0x3cc,0x254),'items':{'type':_0x6b78b8(0x3c2,_0x3f2038._0x1948b3,0x3d0,_0x3f2038._0x454ea6)}},'recencyDays':{'type':_0x2568f1(_0x3f2038._0x1e53e6,0xf4,0x7a,_0x3f2038._0x5acdbb)},'lang':{'type':_0x2568f1(_0x3f2038._0x4c7a9a,0x1b3,_0x3f2038._0x32cde4,0x20b)},'region':{'type':'string'},'safe':{'type':_0x2568f1(_0x3f2038._0x5ab08b,_0x3f2038._0x2fd811,0x121,0x131)},'type':{'type':'string'},'hydrateMeta':{'type':_0x6b78b8(_0x3f2038._0x52aeda,0x31f,_0x3f2038._0x3098c7,_0x3f2038._0x5f2a0e)}},'required':[_0x2568f1(0x12,_0x3f2038._0x2fc2ff,0x81,0x6a)]},async *'execute'(_0x2e87b9,_0x100dcf){const _0x271ab5={_0x2ad639:0x260},_0x12ffe3={_0x12d294:0xf2,_0x209acc:0x19a},_0x261432={_0xdccf34:0xac},_0x20f713=_0x2e87b9['query']['trim']();function _0x2d21b4(_0x41272d,_0xd46d51,_0x31e18,_0x4e524c){return _0x6b78b8(_0x31e18-_0x59fc33._0x247ce0,_0xd46d51,_0x31e18-0x120,_0x4e524c-_0x59fc33._0x19b546);}if(!_0x20f713)throw new ToolExecutionError(_0x2d21b4(0x7b2,_0x2ff9a8._0x2f3b8a,_0x2ff9a8._0x2efa7c,0x6e8));const _0x5a6b9d={'query':_0x20f713,'count':Math[_0x2d21b4(0x555,0x54f,0x659,_0x2ff9a8._0x8dddf8)](0x1,Math[_0x3e2c1c(-0x347,-0x1ef,-0x22e,-_0x2ff9a8._0x54f86d)](0x32,Math[_0x3e2c1c(-0xb7,-0x1b6,-0x242,-0x230)](_0x2e87b9[_0x2d21b4(0x942,0x7b9,0x7fa,0x940)]??0xa))),'offset':Math['max'](0x0,Math[_0x2d21b4(0x68a,_0x2ff9a8._0x494884,_0x2ff9a8._0x48fb83,0x674)](_0x2e87b9[_0x2d21b4(_0x2ff9a8._0x5c6b69,0x786,0x856,0x9bd)]??0x0)),'domains':_0x2e87b9['domains']??[],'recencyDays':Math[_0x2d21b4(_0x2ff9a8._0x1a686d,0x51a,_0x2ff9a8._0x5f4e5b,_0x2ff9a8._0x26e0a4)](0x0,Math[_0x3e2c1c(-0x289,-0x1b6,-_0x2ff9a8._0x586749,-0x118)](_0x2e87b9[_0x3e2c1c(0x129,-_0x2ff9a8._0x3054fd,-0xbb,-0x15b)]??0x0)),'lang':_0x2e87b9['lang']??'en','region':_0x2e87b9['region']??'','safe':_0x2e87b9[_0x2d21b4(_0x2ff9a8._0x9500d4,_0x2ff9a8._0x195dc1,0x61e,0x753)]??!![],'type':normalizeType(_0x2e87b9['type']),'hydrateMeta':_0x2e87b9['hydrateMeta']??![]};let _0x423809=[],_0x4d425f=_0x2d21b4(0x6eb,_0x2ff9a8._0x1a21e1,_0x2ff9a8._0x14579e,0x879);for(const _0x1288b6 of _0x403aef[_0x2d21b4(_0x2ff9a8._0x22e65a,_0x2ff9a8._0x3c9982,0x817,_0x2ff9a8._0x4f8a74)]){try{if(isGoogleCseEngine(_0x1288b6))_0x423809=await searchGoogleCse(_0x1288b6,_0x5a6b9d,_0x100dcf['signal']),_0x4d425f=_0x3e2c1c(_0x2ff9a8._0x4c04de,-0x145,-_0x2ff9a8._0x5404df,-_0x2ff9a8._0x1cca91);else{if(isOllamaEngine(_0x1288b6)){const _0x5129fd=await searchOllama(_0x1288b6,_0x5a6b9d,_0x100dcf[_0x2d21b4(0x81f,_0x2ff9a8._0x246b5c,_0x2ff9a8._0x390ee4,0x951)]);_0x423809=_0x5129fd[_0x3e2c1c(0x21b,0xc5,_0x2ff9a8._0x597f55,-0x16)],_0x4d425f=_0x5129fd[_0x2d21b4(0x75f,0x8f5,0x824,0x81c)];}else{if(isTavilyEngine(_0x1288b6)){const _0x9544b1=await searchTavily(_0x1288b6,_0x5a6b9d,_0x100dcf[_0x2d21b4(0x9ba,0x77d,_0x2ff9a8._0x390ee4,0x74b)]);_0x423809=_0x9544b1[_0x2d21b4(_0x2ff9a8._0x668a78,0x94d,_0x2ff9a8._0x327500,0x9ad)],_0x4d425f=_0x9544b1['engine'];}}}if(_0x423809['length']>0x0)break;}catch(_0x1bccb1){if(_0x1288b6===_0x403aef[_0x3e2c1c(_0x2ff9a8._0x283390,0x7b,_0x2ff9a8._0x536660,-0x4a)][_0x403aef[_0x3e2c1c(0x97,_0x2ff9a8._0x3ebc1a,-_0x2ff9a8._0x512307,_0x2ff9a8._0xf3e6d2)]['length']-0x1])throw _0x1bccb1;}}_0x5a6b9d[_0x2d21b4(_0x2ff9a8._0x220169,_0x2ff9a8._0x516af2,0x589,_0x2ff9a8._0x4898bc)]&&_0x423809[_0x3e2c1c(-_0x2ff9a8._0x268fec,_0x2ff9a8._0x49b985,0x20,-_0x2ff9a8._0x279de8)]>0x0&&(_0x423809=await hydrateResults(_0x423809,_0x5a6b9d[_0x3e2c1c(-0x16f,-0xb4,-_0x2ff9a8._0x331d54,-_0x2ff9a8._0x4cc06e)],_0x100dcf[_0x2d21b4(_0x2ff9a8._0xcd1e92,0x800,_0x2ff9a8._0x390ee4,0x7a9)],_0x192ac2));const _0x548401=new Set();_0x423809=_0x423809[_0x3e2c1c(0x215,0xee,_0x2ff9a8._0x2e4c34,_0x2ff9a8._0x2db306)](_0x58dcf1=>{function _0xd40779(_0x446b92,_0x58325c,_0x31d5ac,_0x2bc5c4){return _0x2d21b4(_0x446b92-0xf4,_0x58325c,_0x2bc5c4- -0x332,_0x2bc5c4-_0x261432._0xdccf34);}function _0x13a350(_0x59b4a1,_0x22e97a,_0x513bf5,_0x60dd1e){return _0x3e2c1c(_0x59b4a1-_0x12ffe3._0x12d294,_0x22e97a-0x55b,_0x513bf5-_0x12ffe3._0x209acc,_0x59b4a1);}const _0x56acb7=_0x58dcf1[_0xd40779(0x399,0x597,0x368,_0x41fa32._0x553271)][_0x13a350(_0x41fa32._0x4c4515,_0x41fa32._0x17d811,_0x41fa32._0x154f4d,_0x41fa32._0x24c16d)]();if(!_0x56acb7||_0x548401[_0xd40779(_0x41fa32._0x3f8aba,_0x41fa32._0x38b2d5,_0x41fa32._0x5b5957,_0x41fa32._0x146024)](_0x56acb7))return![];return _0x548401['add'](_0x56acb7),!![];}),_0x423809=_0x423809['map']((_0x1d67ca,_0x223f66)=>({..._0x1d67ca,'source':{..._0x1d67ca[_0x2d21b4(0x953,0x94a,0x7e4,0x82a)],'rank':_0x223f66+0x1}}));const _0x5f0a6b={};if(_0x5a6b9d[_0x2d21b4(_0x2ff9a8._0x1c2d70,0x710,_0x2ff9a8._0x335c9d,_0x2ff9a8._0x881bc3)][_0x2d21b4(0x759,0x92f,_0x2ff9a8._0x34ea4f,0x8ab)]>0x0)_0x5f0a6b[_0x3e2c1c(-_0x2ff9a8._0x119ae7,-0x171,-_0x2ff9a8._0x5b26cc,-0x2d8)]=_0x5a6b9d[_0x2d21b4(_0x2ff9a8._0x13165b,0x74e,0x62b,_0x2ff9a8._0x3c6ffb)];if(_0x5a6b9d[_0x3e2c1c(-0x158,-_0x2ff9a8._0x26e98c,-_0x2ff9a8._0xe4fbe6,0xed)]>0x0)_0x5f0a6b[_0x2d21b4(0x6fb,0x808,_0x2ff9a8._0x43b97c,0x8a2)]=_0x5a6b9d['recencyDays'];if(_0x5a6b9d[_0x2d21b4(_0x2ff9a8._0x46b067,0x72e,_0x2ff9a8._0x19a5ea,_0x2ff9a8._0x2b623a)]!=='en')_0x5f0a6b[_0x3e2c1c(0x3c,-0xb4,-0xd4,-_0x2ff9a8._0x446784)]=_0x5a6b9d[_0x2d21b4(0x6b2,0x5b1,_0x2ff9a8._0x19a5ea,0x66b)];if(_0x5a6b9d['region'])_0x5f0a6b[_0x2d21b4(_0x2ff9a8._0x4b6a9b,0x66b,_0x2ff9a8._0x41aee2,_0x2ff9a8._0x4d7b98)]=_0x5a6b9d[_0x2d21b4(_0x2ff9a8._0x1de994,_0x2ff9a8._0x51ad46,_0x2ff9a8._0x41aee2,_0x2ff9a8._0x118f1a)];function _0x3e2c1c(_0x2e87c2,_0x59ca8a,_0x5cfee1,_0x9db9e1){return _0x2568f1(_0x2e87c2-0x96,_0x59ca8a-0x116,_0x9db9e1,_0x59ca8a- -_0x271ab5._0x2ad639);}return yield createToolOutput(formatResults(_0x423809),{'engine':_0x4d425f,'count':_0x423809['length'],'items':_0x423809,'query':_0x5a6b9d[_0x2d21b4(_0x2ff9a8._0xb4311a,0x66e,0x5a6,_0x2ff9a8._0x4349ca)],...Object[_0x2d21b4(0x7fa,_0x2ff9a8._0x53dc07,_0x2ff9a8._0x21b3bb,_0x2ff9a8._0x11ea55)](_0x5f0a6b)[_0x3e2c1c(-0x1b,_0x2ff9a8._0x49b985,_0x2ff9a8._0x28cbed,0x5d)]>0x0?{'appliedFilters':_0x5f0a6b}:{},'offset':_0x5a6b9d[_0x3e2c1c(-0xc4,0xba,0x236,0x21a)],'totalRequested':_0x5a6b9d[_0x2d21b4(0x78f,0x6c2,_0x2ff9a8._0x57ee8b,_0x2ff9a8._0x7aee3)],'hydrated':_0x5a6b9d[_0x3e2c1c(-0x1d3,-0x213,-0x378,-0x222)]}),void 0x0;}});}export{BackgroundProcessRegistry,ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashOutputTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createKillShellTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};