@nuvin/agent-core 0.0.0-rc.4 → 0.0.0-rc.6

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(_0x4f4391,_0x3cb703){const _0x5b17a2={_0x1d7ff3:0x608,_0x53f202:0xa0,_0x2bd241:0x1a,_0x8a4431:0x46,_0x519cba:0xed,_0x1c041a:0x109,_0x5033f6:0x85,_0x560944:0x19,_0x106baf:0x48f,_0x161020:0x508,_0xb6ff03:0x3c,_0x2e1c88:0x529,_0x398f30:0x673,_0xd6605:0x5ee,_0xa54aaf:0x539,_0x8cf6c8:0x5f2,_0x147549:0x10,_0x4bb688:0xf1,_0x281c0b:0x4ce,_0x35fea9:0x62,_0x32ccab:0x65,_0x45185f:0x9,_0x1d287b:0x10b,_0x12f92:0x4,_0x453839:0xca},_0x1f1c8f=_0x4f4391();function _0x32e5d0(_0x5c3454,_0x123679,_0x12b7dc,_0x385049){return _0x5452(_0x12b7dc-0x377,_0x123679);}function _0x4dacf8(_0x377af0,_0x34e72b,_0x136d34,_0x3d5e45){return _0x5452(_0x136d34- -0x18f,_0x3d5e45);}while(!![]){try{const _0x6fb983=parseInt(_0x32e5d0(0x5d2,0x52e,_0x5b17a2._0x1d7ff3,0x68c))/0x1*(-parseInt(_0x4dacf8(_0x5b17a2._0x53f202,-_0x5b17a2._0x2bd241,_0x5b17a2._0x8a4431,_0x5b17a2._0x519cba))/0x2)+-parseInt(_0x4dacf8(-0xbb,-_0x5b17a2._0x1c041a,-_0x5b17a2._0x5033f6,-_0x5b17a2._0x560944))/0x3*(-parseInt(_0x32e5d0(0x4f4,_0x5b17a2._0x106baf,0x4fd,_0x5b17a2._0x161020))/0x4)+parseInt(_0x4dacf8(-0x76,_0x5b17a2._0xb6ff03,-0x3e,-0x6e))/0x5+parseInt(_0x4dacf8(-0x52,0x3f,0x34,0xf5))/0x6*(-parseInt(_0x32e5d0(0x5d1,_0x5b17a2._0x2e1c88,0x5da,_0x5b17a2._0x398f30))/0x7)+-parseInt(_0x32e5d0(_0x5b17a2._0xd6605,_0x5b17a2._0xa54aaf,_0x5b17a2._0x8cf6c8,0x525))/0x8*(-parseInt(_0x4dacf8(-0x34,0x2b,_0x5b17a2._0x147549,_0x5b17a2._0x4bb688))/0x9)+parseInt(_0x32e5d0(0x592,0x63b,0x59a,_0x5b17a2._0x281c0b))/0xa*(parseInt(_0x4dacf8(-0x42,_0x5b17a2._0x35fea9,-_0x5b17a2._0x32ccab,-_0x5b17a2._0x45185f))/0xb)+-parseInt(_0x4dacf8(_0x5b17a2._0x1d287b,_0x5b17a2._0x12f92,_0x5b17a2._0x453839,0x14b))/0xc;if(_0x6fb983===_0x3cb703)break;else _0x1f1c8f['push'](_0x1f1c8f['shift']());}catch(_0x33173a){_0x1f1c8f['push'](_0x1f1c8f['shift']());}}}(_0x226c,0xa4ed9));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-VFTQW5WK.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x2b14f8 from'os';import*as _0x5f11ce from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x2a0156 from'path';function isPathInside(_0x131922,_0x467eb2){const _0x2c0f85={_0x55985b:0x57f,_0x37ff95:0x5e7,_0x386c2b:0x55b,_0x4a313a:0x418,_0x4fad6b:0x465,_0x1d3386:0x36e},_0x533ba5={_0x5d920f:0x3e3},_0x51a815={_0x2abefd:0x240},_0x69815=_0x2a0156[_0x5808a1(_0x2c0f85._0x55985b,0x594,_0x2c0f85._0x37ff95,_0x2c0f85._0x386c2b)](_0x131922),_0x149947=_0x2a0156[_0x4c237b(0x452,_0x2c0f85._0x4a313a,0x37e,_0x2c0f85._0x4fad6b)](_0x69815,_0x467eb2);function _0x4c237b(_0xc94242,_0x6d5c98,_0x2e9f6c,_0x3d2f0c){return _0x5452(_0x2e9f6c-_0x51a815._0x2abefd,_0x3d2f0c);}function _0x5808a1(_0x4e4691,_0x4c3282,_0x3d09bc,_0x3a2922){return _0x5452(_0x4c3282-_0x533ba5._0x5d920f,_0x3d09bc);}return _0x149947===''||!_0x149947[_0x4c237b(0x3af,0x28b,_0x2c0f85._0x1d3386,0x393)]('..')&&!_0x2a0156['isAbsolute'](_0x149947);}function resolveWorkspacePath(_0xab724c,_0x180d46){return resolveAllowedPath(_0xab724c,[],_0x180d46);}function resolveAllowedPath(_0x53ffce,_0x10b35f,_0x1652d5){const _0x38249c={_0x467c95:0x1d1,_0x495cc2:0x1ad,_0x50294c:0x1e1},_0x31ce4c={_0xeffbb3:0x20},_0x52f1e0=_0x2a0156[_0x28a05e(_0x38249c._0x467c95,0x238,_0x38249c._0x495cc2,0x262)](_0x53ffce),_0x50f836=_0x2a0156['resolve'](_0x52f1e0,_0x1652d5),_0x1d5d6b=[_0x52f1e0,..._0x10b35f[_0x28a05e(0x15c,0xac,0x1ba,0x112)](_0x3ef127=>_0x2a0156[_0x408aaf(0x5,0xa4,-0xd3,0xd)](_0x3ef127))];function _0x408aaf(_0x46b7d4,_0x317251,_0x4779f3,_0x38d446){return _0x5452(_0x38d446- -0x1a4,_0x46b7d4);}if(_0x1d5d6b['some'](_0x16da1b=>isPathInside(_0x16da1b,_0x50f836)))return _0x50f836;function _0x28a05e(_0x57c33a,_0x5e429b,_0x235b8b,_0x51dd00){return _0x5452(_0x57c33a-_0x31ce4c._0xeffbb3,_0x5e429b);}throw new ToolExecutionError(_0x28a05e(0x11d,_0x38249c._0x50294c,0x7c,0x1a9)+_0x1652d5,{'path':_0x1652d5,'rootDir':_0x52f1e0,'allowedDirs':_0x1d5d6b});}async function assertWorkspaceFile(_0x2f863e){const _0x572eed={_0x29410d:0x31a,_0x9a0b34:0x2ae,_0x5c0412:0x3f2,_0x4e4e75:0x23d,_0x353c29:0x1bb},_0x21e43e={_0x282811:0x21f},_0x326f7c={_0x154e66:0xea};function _0x5bf648(_0x34b5a5,_0x1ae5e5,_0x311eda,_0x1805f8){return _0x5452(_0x34b5a5-_0x326f7c._0x154e66,_0x1805f8);}const _0x120bde=await stat(_0x2f863e);function _0x528d8d(_0x5e3d94,_0x350871,_0x59592a,_0x259fba){return _0x5452(_0x259fba-_0x21e43e._0x282811,_0x59592a);}if(!_0x120bde[_0x5bf648(_0x572eed._0x29410d,_0x572eed._0x9a0b34,_0x572eed._0x5c0412,0x319)]())throw new ToolExecutionError(_0x5bf648(_0x572eed._0x4e4e75,0x186,_0x572eed._0x353c29,0x2da)+_0x2f863e,{'path':_0x2f863e});}function isProbablyBinary(_0xd2ad73){return _0xd2ad73['includes'](0x0);}var DEFAULT_DESCRIPTION='Execute\x20a\x20shell\x20command\x20with\x20timeout\x20protection.\x20Captures\x20stdout\x20and\x20stderr.\x20Do\x20not\x20use\x20for\x20interactive\x20commands\x20that\x20require\x20user\x20input.',DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x2b907e){return _0x2b907e instanceof Error;}function shellExists(_0x5c576f){const _0x395e66={_0x4fbe7c:0x3b3,_0x463487:0x438,_0x2490e3:0x4c4,_0x538e98:0x439};function _0xd78ac7(_0x108ff6,_0x97066c,_0x2dc123,_0x44c70d){return _0x5452(_0x108ff6-0x154,_0x2dc123);}function _0xb7747a(_0x173788,_0x4273a3,_0x10843c,_0x5b5a7c){return _0x5452(_0x5b5a7c-0x208,_0x173788);}try{const _0x10be68=statSync(_0x5c576f);return _0x10be68[_0xb7747a(_0x395e66._0x4fbe7c,0x410,0x3ec,_0x395e66._0x463487)]()&&(_0x10be68[_0xb7747a(_0x395e66._0x2490e3,0x488,0x3be,_0x395e66._0x538e98)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x3f89f6){const _0x1b2730={_0x3aa718:0x1e7,_0x268762:0x220,_0x12db9f:0xe6,_0x22641a:0x123,_0x48f7ba:0x2b,_0xdadd7e:0x2b3,_0x1e7989:0x2c9,_0x3c3ac8:0x26b,_0xdb1ddb:0x11,_0x5737f8:0x146,_0x43072e:0x201,_0x768978:0x299,_0x2bb50d:0x3,_0x5dcf65:0x5,_0x32e106:0x280,_0xe40421:0x16f,_0x36d44a:0x1b2,_0x3738f7:0x23,_0x43876a:0x9c};if(_0x3f89f6)return _0x3f89f6;if(_0x2b14f8['platform']()===_0x59c4b3(0x127,_0x1b2730._0x3aa718,_0x1b2730._0x268762,0x1dc))return process[_0x3e6b15(0x1a1,_0x1b2730._0x12db9f,_0x1b2730._0x22641a,_0x1b2730._0x48f7ba)][_0x59c4b3(0x344,_0x1b2730._0xdadd7e,_0x1b2730._0x1e7989,_0x1b2730._0x3c3ac8)]||'cmd.exe';const _0x37caf0=[_0x3e6b15(0x11,-0x23,-_0x1b2730._0xdb1ddb,-0x5f),'/bin/sh',_0x59c4b3(_0x1b2730._0x5737f8,0x181,0x1d2,0x195),_0x59c4b3(_0x1b2730._0x43072e,0x20b,0x237,_0x1b2730._0x768978)];function _0x3e6b15(_0xaf450b,_0x16d8e4,_0x3520c2,_0x5d2b35){return _0x5452(_0x16d8e4- -0xff,_0xaf450b);}for(const _0x1208d6 of _0x37caf0){if(shellExists(_0x1208d6))return _0x1208d6;}const _0x3fb928=process[_0x3e6b15(-_0x1b2730._0x2bb50d,_0x1b2730._0x12db9f,_0x1b2730._0x5dcf65,0xd4)][_0x59c4b3(_0x1b2730._0x32e106,_0x1b2730._0xe40421,0x148,_0x1b2730._0x36d44a)];function _0x59c4b3(_0x130868,_0x5a67bd,_0x528db0,_0x273c84){return _0x5452(_0x273c84-0x9a,_0x528db0);}if(_0x3fb928&&shellExists(_0x3fb928))return _0x3fb928;return _0x3e6b15(-0xd9,-_0x1b2730._0x3738f7,_0x1b2730._0x43876a,0x10);}function buildShellArgs(_0x2174c3,_0x43c086){const _0xc13a99={_0xaf57ee:0x159,_0x43f2de:0x1ad,_0x7f19a9:0x257,_0x1f2554:0x1e2,_0x3ba412:0x2eb,_0x194d86:0x302,_0x2056a5:0x2a4};function _0x3dfe25(_0x171e99,_0x33310f,_0x1294a2,_0x5c60ee){return _0x5452(_0x171e99-0xef,_0x33310f);}if(_0x2b14f8[_0x417a95(_0xc13a99._0xaf57ee,_0xc13a99._0x43f2de,0x236,0x1f5)]()===_0x417a95(_0xc13a99._0x7f19a9,0x2bd,0x285,_0xc13a99._0x1f2554)){const _0x105f4a=/cmd(\.exe)?$/i['test'](_0x43c086);return _0x105f4a?['/d','/s','/c',_0x2174c3]:[_0x3dfe25(0x2eb,_0xc13a99._0x3ba412,0x2ea,0x388),'-NoProfile',_0x417a95(0x283,_0xc13a99._0x194d86,_0xc13a99._0x2056a5,0x235),_0x2174c3];}function _0x417a95(_0x5708c7,_0x3c6fa7,_0x3f8b26,_0x2c9f29){return _0x5452(_0x3f8b26-0x143,_0x3c6fa7);}return['-c',_0x2174c3];}function stripAnsiAndControls(_0x473d0d){const _0x195a7b={_0x397a19:0x445,_0x38b602:0x354,_0x3d330e:0x430,_0xcee8db:0x386,_0x15401f:0x341,_0x38f2f9:0x369,_0x299cd6:0x2df,_0x19b9aa:0x377,_0xed4e77:0x362,_0x5155a0:0x2ed,_0x3bb2e0:0x335,_0x166f30:0x369,_0x5a7693:0x2aa,_0x33cf75:0x395,_0x3ef64a:0x2ae,_0x2de24f:0x40d},_0x46ffd5={_0x5b93cc:0x1e5},_0x5a7e07={_0x2e1bb8:0x109};_0x473d0d=stripVTControlCharacters(_0x473d0d);const _0x1351fe='\x1b',_0x367c18='\x07';_0x473d0d=_0x473d0d[_0x3c4d12(0x4e0,_0x195a7b._0x397a19,0x4f4,0x3ee)](new RegExp(';[^'+_0x367c18+_0x4b3d8f(_0x195a7b._0x38b602,_0x195a7b._0x3d330e,0x344,_0x195a7b._0xcee8db)+_0x367c18,'g'),'');function _0x4b3d8f(_0x18e2ca,_0x49e97c,_0x2b897f,_0x358f48){return _0x5452(_0x2b897f-_0x5a7e07._0x2e1bb8,_0x358f48);}_0x473d0d=_0x473d0d['replace'](new RegExp(';[^\x5cn]*?'+_0x1351fe+'\x5c\x5c','g'),''),_0x473d0d=_0x473d0d[_0x4b3d8f(_0x195a7b._0x15401f,0x3d7,_0x195a7b._0x38f2f9,_0x195a7b._0x299cd6)](new RegExp(_0x367c18,'g'),''),_0x473d0d=_0x473d0d['replace'](new RegExp(_0x1351fe+_0x3c4d12(_0x195a7b._0x19b9aa,_0x195a7b._0xed4e77,0x287,_0x195a7b._0x5155a0)+_0x1351fe+'\x5c\x5c','g'),''),_0x473d0d=_0x473d0d[_0x4b3d8f(_0x195a7b._0x3bb2e0,0x28b,_0x195a7b._0x166f30,0x31e)](new RegExp(_0x1351fe+_0x4b3d8f(_0x195a7b._0x5a7693,_0x195a7b._0x33cf75,_0x195a7b._0x3ef64a,0x270),'g'),'');function _0x3c4d12(_0x3abf1d,_0x184b7c,_0x869fdb,_0x481989){return _0x5452(_0x184b7c-_0x46ffd5._0x5b93cc,_0x3abf1d);}return _0x473d0d=_0x473d0d[_0x3c4d12(0x398,0x445,0x4c8,0x50c)](/[\u0080-\u009F]/g,''),_0x473d0d=_0x473d0d[_0x4b3d8f(0x3af,_0x195a7b._0x2de24f,0x369,0x392)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x473d0d=_0x473d0d['replace'](/[\u23CE\u2424]/g,''),_0x473d0d;}function resolveWorkingDirectory(_0x49414e,_0x18368e,_0x3639fb){const _0x4aa96a={_0x6df2fe:0x3a0,_0x56c7c8:0x447,_0x7f2b7d:0x28c,_0x452369:0x30d,_0x3e8cc7:0x2db},_0x2e6ce3={_0x21f952:0x11b};function _0x4ec888(_0x593bb3,_0x5cd7b8,_0x55f852,_0x4efb82){return _0x5452(_0x55f852-0x27c,_0x5cd7b8);}const _0xe674b5=resolveAllowedPath(_0x18368e,_0x3639fb,_0x49414e??'.');function _0x5f3c6a(_0x512adc,_0xfe0d87,_0x255142,_0x3dd1a6){return _0x5452(_0x512adc-_0x2e6ce3._0x21f952,_0x3dd1a6);}try{const _0x25f265=statSync(_0xe674b5);if(!_0x25f265[_0x4ec888(_0x4aa96a._0x6df2fe,_0x4aa96a._0x56c7c8,0x3ca,0x3b3)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0xe674b5,{'cwd':_0xe674b5});return _0xe674b5;}catch(_0x21c925){if(_0x21c925 instanceof ToolExecutionError)throw _0x21c925;throw new ToolExecutionError(_0x5f3c6a(_0x4aa96a._0x7f2b7d,0x327,_0x4aa96a._0x452369,_0x4aa96a._0x3e8cc7)+_0xe674b5,{'cwd':_0xe674b5});}}function killProcessGroup(_0x5261b8,_0x242c50,_0x12ce7e=_0x12584b(0x479,0x45e,0x501,0x412)){const _0x3f5ac0={_0x1ffaff:0x1b0,_0x45ad4b:0x18b,_0x568539:0x108,_0x24c102:0x1c9,_0xc255f8:0x1b4,_0x2ac8fc:0x547,_0x4ed36f:0x4f5,_0x4be2c4:0x44b,_0x5e16c3:0x2fb,_0x5823b3:0x396,_0x4eb521:0x26f,_0x5966ba:0x223},_0x3f73b7={_0x551040:0x74},_0x52a783={_0xaaf1a5:0x6c4,_0xa83717:0x1bc};function _0x595bbe(_0x168873,_0x3bda93,_0x5d3eee,_0x1bfffd){return _0x12584b(_0x168873- -_0x52a783._0xaaf1a5,_0x3bda93-0x12e,_0x5d3eee-_0x52a783._0xa83717,_0x5d3eee);}if(!_0x5261b8['pid'])return;if(_0x242c50)try{spawn('taskkill',[_0x595bbe(-_0x3f5ac0._0x1ffaff,-_0x3f5ac0._0x45ad4b,-0x222,-_0x3f5ac0._0x568539),_0x5261b8[_0x595bbe(-_0x3f5ac0._0x24c102,-0x256,-0x1b5,-_0x3f5ac0._0xc255f8)][_0x563750(0x4af,_0x3f5ac0._0x2ac8fc,_0x3f5ac0._0x4ed36f,_0x3f5ac0._0x4be2c4)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5261b8[_0x595bbe(-0x2f5,-0x336,-_0x3f5ac0._0x5e16c3,-0x254)](_0x12ce7e);return;}function _0x563750(_0x40ef0d,_0x53d1c6,_0x10e40b,_0x3bdcde){return _0x12584b(_0x40ef0d-_0x3f73b7._0x551040,_0x53d1c6-0x109,_0x10e40b-0x143,_0x53d1c6);}try{process[_0x595bbe(-0x2f5,-_0x3f5ac0._0x5823b3,-0x21f,-_0x3f5ac0._0x4eb521)](-_0x5261b8[_0x595bbe(-0x1c9,-0x278,-_0x3f5ac0._0x5966ba,-0x226)],_0x12ce7e);}catch{_0x5261b8['kill'](_0x12ce7e);}}function appendChunk(_0x3ef77a,_0x5d3aad,_0x2a981e,_0x367965,_0x117d25){const _0x4ef7b8={_0x282f82:0x2e9,_0x51d9bd:0x207,_0x36265c:0x56,_0x338d9f:0x13,_0x45f6d1:0x2d9,_0x447969:0x2b5,_0x7fe417:0x277},_0x1bcc0b={_0x46a44f:0x43b,_0xa766b:0x1c},_0x1d640f={_0x19ddfe:0x1d7,_0x3fbd03:0x11a,_0x3347f0:0xaf},_0x3cc170=_0x367965?stripAnsiAndControls(_0x2a981e):_0x2a981e;if(_0x3cc170[_0x32108b(0x23f,_0x4ef7b8._0x282f82,_0x4ef7b8._0x51d9bd,0x122)]===0x0)return;function _0x32108b(_0x5bb9e7,_0x47ec67,_0x295acd,_0x263c80){return _0x12584b(_0x295acd- -_0x1d640f._0x19ddfe,_0x47ec67-_0x1d640f._0x3fbd03,_0x295acd-_0x1d640f._0x3347f0,_0x47ec67);}_0x3ef77a[_0x4d07bc(0xaa,-_0x4ef7b8._0x36265c,_0x4ef7b8._0x338d9f,-0x31)](_0x3cc170),_0x5d3aad[_0x32108b(_0x4ef7b8._0x45f6d1,_0x4ef7b8._0x447969,_0x4ef7b8._0x7fe417,0x2ca)](_0x3cc170);function _0x4d07bc(_0x186b50,_0x342a8c,_0x4ef000,_0x14c522){return _0x12584b(_0x4ef000- -_0x1bcc0b._0x46a44f,_0x342a8c-_0x1bcc0b._0xa766b,_0x4ef000-0x1d1,_0x342a8c);}_0x117d25();}function createBashTool(_0x1acebd={}){const _0x54cd9f={_0x262867:0x469,_0x20ce7a:0x3db,_0x4c6432:0x1d6,_0x505d61:0x1f5,_0xdf1f74:0x166,_0x4898d9:0x9c,_0x33a6a7:0x170,_0x31ff81:0x27,_0xfafd47:0xa7,_0x3eeb77:0x4d6,_0x2a0179:0x13c,_0x1aebca:0x149,_0x3d575f:0x49c,_0x2dea9d:0x438,_0x159720:0x9e,_0x4fefd2:0x72,_0x69c400:0x38,_0x228253:0x488,_0x443696:0x3f8,_0x5ade68:0x30e,_0x477d4d:0x4c5,_0x3bbffb:0x5af},_0x3e5913={_0x27d8c0:0x332,_0xfe6365:0x2a1,_0x2d57ed:0x233,_0x24b38b:0x284,_0x48c104:0x206,_0x2b2a9e:0x350,_0x1fa4b2:0x23c,_0x62440d:0x204,_0x1d71fc:0x1f6,_0x3a512:0x301,_0x4da60a:0x216,_0x1abc3e:0x276,_0x337cb3:0x328,_0x2ecf90:0x3a4,_0x5abaf7:0x39a,_0x20a7a3:0x320,_0x49f6af:0x251,_0x460aca:0x35e,_0x241db7:0x2a5,_0xae9c9b:0x3c5,_0x191201:0x2d9,_0x3dc28a:0x2b8,_0x251a53:0x1d0,_0x567052:0x20a,_0x2e8a6f:0x19b,_0x5b3f5c:0x26d,_0x5464a2:0x1b9,_0x406225:0x272,_0x28bb31:0x1bd,_0x36260f:0x3df,_0x3bd2b9:0x33f,_0x2b0d1e:0x321,_0x4e1b07:0x266,_0x5e7076:0x373,_0x529ff3:0x300,_0x4fd34f:0x2ce,_0x2937f2:0x290,_0x4fc0a0:0x1bc,_0x4c4e2d:0x1be,_0x83382a:0x15e,_0xf47134:0x303,_0x567a2c:0x404,_0x541423:0x1c2,_0x4974db:0x21c,_0x3ecae7:0x340,_0x1ce549:0x297,_0x294b31:0x322,_0x1b147f:0x14d,_0x248d39:0x314,_0x2a33ba:0x2d6,_0x1237c0:0x271,_0x15754a:0x308,_0x3afc69:0x2b3,_0x16d230:0x22f,_0x49fa0f:0x22f,_0x2a6a0a:0x2e2,_0x17518d:0x282,_0x5a26bd:0x22e,_0x51706a:0x29e,_0x57ff01:0x27b,_0x2995be:0x2a8,_0x5bafd5:0x337,_0xe0a89:0x240,_0x152cd3:0x31a,_0x35ee83:0x23f,_0x43e5ed:0x3c6,_0x3ced75:0x352,_0x4d8a90:0x2c9},_0x1307d5={_0x39aaee:0x1e4,_0x50d728:0x28},_0xe76a12={_0x2719ac:0xc3,_0x1934c7:0x102},_0x516f80={_0x2d0670:0x340,_0x37a938:0x1eb},_0x516aa5=_0x5f11ce[_0x52e748(0x391,0x552,_0x54cd9f._0x262867,_0x54cd9f._0x20ce7a)](_0x1acebd[_0x106d21(0x176,0x201,_0x54cd9f._0x4c6432,0x117)]??process[_0x106d21(0xc8,_0x54cd9f._0x505d61,_0x54cd9f._0xdf1f74,_0x54cd9f._0x4898d9)]());function _0x106d21(_0xe1aa4b,_0x48031d,_0x50ce95,_0x4cca18){return _0x12584b(_0x50ce95- -_0x516f80._0x2d0670,_0x48031d-0x1cc,_0x50ce95-_0x516f80._0x37a938,_0x4cca18);}const _0x5bf1aa=(_0x1acebd[_0x106d21(_0x54cd9f._0x33a6a7,-_0x54cd9f._0x31ff81,_0x54cd9f._0xfafd47,0x190)]??[])['map'](_0x523b82=>_0x5f11ce[_0x106d21(0x203,0x1b7,0x167,0x213)](_0x523b82));function _0x52e748(_0x52daac,_0x3cd5f8,_0x29f036,_0x25651){return _0x12584b(_0x29f036- -0x3e,_0x3cd5f8-_0xe76a12._0x2719ac,_0x29f036-_0xe76a12._0x1934c7,_0x3cd5f8);}const _0x37054f=_0x1acebd[_0x52e748(0x620,0x47a,0x535,_0x54cd9f._0x3eeb77)]??DEFAULT_TIMEOUT_MS,_0x199817=_0x1acebd['stripAnsi']??!![],_0x547c8c=_0x1acebd[_0x106d21(_0x54cd9f._0x2a0179,0x19a,_0x54cd9f._0x1aebca,0x78)]??_0x52e748(_0x54cd9f._0x3d575f,_0x54cd9f._0x2dea9d,0x432,0x47b);return defineTool({'name':_0x547c8c,'description':_0x1acebd[_0x106d21(0x157,0x8d,0xdf,_0x54cd9f._0x159720)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x106d21(_0x54cd9f._0x4fefd2,-_0x54cd9f._0x69c400,0xa2,0xf4),'properties':{'command':{'type':_0x52e748(_0x54cd9f._0x228253,0x3c7,_0x54cd9f._0x443696,0x338)},'cwd':{'type':_0x52e748(_0x54cd9f._0x5ade68,0x321,0x3f8,0x34c)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x52e748(0x45f,0x51a,_0x54cd9f._0x477d4d,_0x54cd9f._0x3bbffb)}},'required':['command']},async *'execute'(_0xf64ac7,_0x3eb1cb){const _0x20f9b7={_0x44e6cb:0xc8,_0x4de9ec:0x16a,_0xce7c3c:0x190,_0x3ae8b8:0x132,_0x252cda:0x17d,_0x1a86e0:0xa9},_0x55bc05={_0x108818:0x1bd,_0x672e04:0x16e,_0x435348:0x188,_0x3170bf:0x67,_0x42fc9b:0x154,_0x4d20a6:0x97,_0x4dc13a:0xf4,_0x28cdcc:0x75,_0x256d3e:0x6c},_0x597f5b={_0x143de2:0x100,_0x1cc9d8:0x63},_0x2da6a7={_0x13c292:0x19,_0x1c37fc:0x62,_0xa572d1:0x14},_0x5400e7={_0x3cf2a2:0xfd},_0x1b512f={_0x33a9b9:0x63,_0x1330f7:0x172},_0x5080aa=_0xf64ac7[_0x452337(_0x3e5913._0x27d8c0,0x35c,0x349,0x2cb)]??_0x37054f;if(!Number[_0x452337(0x216,0x373,_0x3e5913._0xfe6365,_0x3e5913._0x2d57ed)](_0x5080aa)||_0x5080aa<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0xf64ac7['command']});throwIfAborted(_0x3eb1cb['signal']);const _0x5b69ad=resolveWorkingDirectory(_0xf64ac7[_0x2b4850(0x1c9,0x19d,_0x3e5913._0x24b38b,_0x3e5913._0x48c104)],_0x516aa5,_0x5bf1aa),_0x12ca1e=_0xf64ac7['ignoreOutput']??![],_0x110c5=resolveDefaultShell(_0x1acebd[_0x2b4850(0x315,_0x3e5913._0x2b2a9e,0x2e5,_0x3e5913._0x1fa4b2)]),_0x547ae1=buildShellArgs(_0xf64ac7[_0x2b4850(0x1fa,_0x3e5913._0x62440d,0x1bd,_0x3e5913._0x1d71fc)],_0x110c5),_0x476fd3=_0x2b14f8['platform']()===_0x2b4850(_0x3e5913._0x3a512,0x261,_0x3e5913._0x4da60a,0x21b);let _0xb27366;try{_0xb27366=spawn(_0x110c5,_0x547ae1,{'cwd':_0x5b69ad,'env':{...process['env'],..._0x1acebd['env']??{}},'stdio':_0x12ca1e?[_0x2b4850(0x2ce,_0x3e5913._0x1abc3e,_0x3e5913._0x337cb3,_0x3e5913._0x2ecf90),_0x452337(0x3be,0x393,_0x3e5913._0x5abaf7,_0x3e5913._0x20a7a3),_0x2b4850(0x2de,_0x3e5913._0x49f6af,0x328,_0x3e5913._0x460aca)]:[_0x2b4850(0x28f,_0x3e5913._0x241db7,_0x3e5913._0x337cb3,_0x3e5913._0xae9c9b),_0x452337(0x25d,0x36e,0x2b3,0x26d),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x476fd3});}catch(_0x57143b){if(isErrnoException(_0x57143b)&&_0x57143b[_0x2b4850(0x368,_0x3e5913._0x191201,0x2ce,_0x3e5913._0x3dc28a)]===_0x452337(_0x3e5913._0x251a53,0x2a9,_0x3e5913._0x567052,0x2cb))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x110c5,{'command':_0xf64ac7['command'],'cwd':_0x5b69ad,'shellPath':_0x110c5});throw new ToolExecutionError(_0x57143b instanceof Error?_0x57143b[_0x2b4850(_0x3e5913._0x2e8a6f,_0x3e5913._0x5b3f5c,_0x3e5913._0x5464a2,0x1a1)]:String(_0x57143b),{'command':_0xf64ac7[_0x2b4850(_0x3e5913._0x406225,0x106,_0x3e5913._0x28bb31,0x2a5)],'cwd':_0x5b69ad,'shellPath':_0x110c5});}const _0x3fd670=[],_0x1345da=[],_0x1256f1=new StringDecoder(_0x2b4850(0x381,_0x3e5913._0x36260f,0x312,0x325)),_0x1e9e8c=new StringDecoder(_0x2b4850(0x244,0x3c6,0x312,0x378));let _0x17478e,_0x4b89bb=![],_0x156c1d;const _0x35dc4e=()=>{if(!_0x17478e)return;const _0x5aae21=_0x17478e;_0x17478e=void 0x0,_0x5aae21();},_0x3519df=async()=>{if(_0x1345da['length']>0x0||_0x4b89bb)return;await new Promise(_0x5dad82=>{_0x17478e=_0x5dad82;});},_0x3455bf=_0x7c9321=>{appendChunk(_0x3fd670,_0x1345da,_0x1256f1['write'](_0x7c9321),_0x199817,_0x35dc4e);},_0x3212b2=_0x540c06=>{appendChunk(_0x3fd670,_0x1345da,_0x1e9e8c['write'](_0x540c06),_0x199817,_0x35dc4e);};_0xb27366[_0x452337(_0x3e5913._0x3bd2b9,_0x3e5913._0x2b0d1e,_0x3e5913._0x4e1b07,0x1c1)]?.['on']('data',_0x3455bf);function _0x452337(_0x48ceca,_0x4b4812,_0x225c34,_0x17e0d0){return _0x52e748(_0x48ceca-_0x1b512f._0x33a9b9,_0x17e0d0,_0x225c34- -_0x1b512f._0x1330f7,_0x17e0d0-0xfb);}function _0x2b4850(_0x56b91c,_0x49fb1e,_0x5de17b,_0xe454ee){return _0x52e748(_0x56b91c-0x1a5,_0x56b91c,_0x5de17b- -_0x1307d5._0x39aaee,_0xe454ee-_0x1307d5._0x50d728);}_0xb27366[_0x452337(_0x3e5913._0x5e7076,_0x3e5913._0x529ff3,0x300,_0x3e5913._0x4fd34f)]?.['on'](_0x2b4850(_0x3e5913._0x2937f2,0x220,0x2a8,0x392),_0x3212b2);let _0x3eec6c=![],_0x477398;const _0x2c878a=addAbortListener(_0x3eb1cb[_0x2b4850(_0x3e5913._0x4fc0a0,0x1a8,0x1e4,0x27c)],()=>{_0x156c1d=toAbortError(_0x3eb1cb['signal'][_0x324ec3(-_0x2da6a7._0x13c292,0x12,_0x2da6a7._0x1c37fc,-_0x2da6a7._0xa572d1)]);function _0x324ec3(_0x40d242,_0x2041a,_0x21d150,_0x3e5c15){return _0x452337(_0x40d242-0x172,_0x2041a-_0x5400e7._0x3cf2a2,_0x21d150- -0x358,_0x2041a);}_0x4b89bb=!![],_0x35dc4e();try{killProcessGroup(_0xb27366,_0x476fd3);}catch{}});try{const _0x4c31eb=new Promise((_0x164d11,_0x50c89c)=>{const _0x229b21={_0xbd97f5:0x305,_0x55e96b:0x2a2,_0x47f2bf:0x2d6,_0x261e68:0x31f,_0x5dce10:0x208,_0x5f24f8:0x216,_0x325dce:0x225,_0x117a76:0x169,_0x20a128:0x11c},_0x2c89c3={_0x2ccadd:0x1c1,_0x4f3bcd:0x7e,_0x12cf59:0x16d,_0x3dfd7e:0x0},_0x217dec={_0x3a6ab7:0x8b};function _0x2bb0d7(_0x5e3481,_0x140a4d,_0x3c0922,_0x3b0998){return _0x452337(_0x5e3481-_0x217dec._0x3a6ab7,_0x140a4d-0x10a,_0x3c0922- -0x3a3,_0x3b0998);}function _0x1b0333(_0x3c7b92,_0x46d4e6,_0x575259,_0x9d6139){return _0x2b4850(_0x3c7b92,_0x46d4e6-_0x597f5b._0x143de2,_0x9d6139- -0x95,_0x9d6139-_0x597f5b._0x1cc9d8);}const _0x2909f9=()=>{const _0xccf355={_0x474f00:0x229};function _0x2d6c53(_0x34c32,_0x2aee11,_0x134405,_0x2aa528){return _0x5452(_0x134405- -0xf9,_0x2aa528);}function _0x35fff4(_0x5d9d7c,_0x2f0f2d,_0x4fe019,_0x54e5b1){return _0x5452(_0x2f0f2d- -_0xccf355._0x474f00,_0x4fe019);}_0x477398&&(clearTimeout(_0x477398),_0x477398=void 0x0),_0xb27366[_0x2d6c53(_0x55bc05._0x108818,0x221,_0x55bc05._0x672e04,_0x55bc05._0x435348)](_0x35fff4(-_0x55bc05._0x3170bf,-0x132,-0x1b8,-0x7d),_0x428c75),_0xb27366[_0x2d6c53(_0x55bc05._0x42fc9b,_0x55bc05._0x4d20a6,_0x55bc05._0x672e04,0x21e)](_0x35fff4(-_0x55bc05._0x4dc13a,-_0x55bc05._0x28cdcc,-_0x55bc05._0x256d3e,-0x5),_0x136c5b);},_0x428c75=_0x5da1c7=>{_0x4b89bb=!![],_0x35dc4e(),_0x2909f9(),_0x50c89c(_0x156c1d??_0x5da1c7);},_0x136c5b=(_0x23ed27,_0x471564)=>{_0x3eec6c=!![],appendChunk(_0x3fd670,_0x1345da,_0x1256f1[_0x3f0bab(-_0x2c89c3._0x2ccadd,-0x1e4,-0x253,-0x27d)](),_0x199817,_0x35dc4e);function _0x305ab9(_0x506617,_0xf93f99,_0x46d7ba,_0xc0b04a){return _0x5452(_0xc0b04a-0x13,_0x506617);}appendChunk(_0x3fd670,_0x1345da,_0x1e9e8c[_0x305ab9(_0x2c89c3._0x4f3bcd,_0x2c89c3._0x12cf59,_0x2c89c3._0x3dfd7e,0xdd)](),_0x199817,_0x35dc4e),_0x4b89bb=!![],_0x35dc4e(),_0x2909f9();function _0x3f0bab(_0x33d9c1,_0x5633a8,_0x464c65,_0x52ae84){return _0x5452(_0x5633a8- -0x2ae,_0x52ae84);}if(_0x156c1d){_0x50c89c(_0x156c1d);return;}_0x164d11({'code':_0x23ed27,'signal':_0x471564});};_0x477398=setTimeout(()=>{_0x4b89bb=!![],_0x35dc4e(),_0x2909f9();function _0x15a69e(_0x495adb,_0x22bad2,_0x5a9e6a,_0x3cb4e0){return _0x5452(_0x22bad2-0x8f,_0x3cb4e0);}try{killProcessGroup(_0xb27366,_0x476fd3);}catch{}function _0x149f1f(_0x2c91d9,_0x397248,_0x3ed4cf,_0x10c69e){return _0x5452(_0x3ed4cf- -0x36f,_0x397248);}_0x50c89c(new ToolExecutionError(_0x15a69e(_0x229b21._0xbd97f5,_0x229b21._0x55e96b,_0x229b21._0x47f2bf,_0x229b21._0x261e68)+_0x5080aa+_0x15a69e(_0x229b21._0x5dce10,_0x229b21._0x5f24f8,0x2c4,0x2ac),{'command':_0xf64ac7[_0x15a69e(_0x229b21._0x325dce,0x178,_0x229b21._0x117a76,_0x229b21._0x20a128)],'cwd':_0x5b69ad,'shellPath':_0x110c5,'timeoutMs':_0x5080aa,'timedOut':!![]}));},_0x5080aa),_0xb27366['once'](_0x1b0333(_0x20f9b7._0x44e6cb,0x132,0x18d,0x136),_0x428c75),_0xb27366[_0x1b0333(_0x20f9b7._0x4de9ec,0x169,_0x20f9b7._0xce7c3c,0x20f)](_0x2bb0d7(-_0x20f9b7._0x3ae8b8,-_0x20f9b7._0x252cda,-_0x20f9b7._0x1a86e0,-0x6c),_0x136c5b);});while(_0x1345da[_0x452337(_0x3e5913._0x4c4e2d,_0x3e5913._0x83382a,0x22e,0x179)]>0x0||!_0x4b89bb){if(_0x1345da['length']===0x0){await _0x3519df();continue;}const _0xa99d35=_0x1345da[_0x452337(0x1df,_0x3e5913._0xf47134,0x285,_0x3e5913._0x4c4e2d)]();_0xa99d35!==void 0x0&&(yield _0xa99d35);}const _0x3f4a74=await _0x4c31eb,_0x131dcd=_0x12ca1e?_0x452337(0x24c,0x3cb,0x337,_0x3e5913._0x567a2c)+(_0x3f4a74['code']??0x0):_0x3fd670[_0x2b4850(_0x3e5913._0x541423,0x384,0x29b,0x216)](''),_0x1bac2e={'command':_0xf64ac7['command'],'cwd':_0x5b69ad,'exitCode':_0x3f4a74['code']??0x0,'signal':_0x3f4a74[_0x452337(0x1b2,_0x3e5913._0x4974db,0x256,0x2a6)],'ignoreOutput':_0x12ca1e,'shellPath':_0x110c5,'timeoutMs':_0x5080aa};if(_0x3f4a74[_0x452337(_0x3e5913._0x2b2a9e,0x27e,_0x3e5913._0x3ecae7,_0x3e5913._0x1ce549)]!==0x0)throw new ToolExecutionError(_0x131dcd||'Command\x20exited\x20with\x20code\x20'+(_0x3f4a74[_0x452337(0x325,_0x3e5913._0x294b31,_0x3e5913._0x3ecae7,0x424)]??0x0),_0x1bac2e);return createToolOutput(_0x131dcd,_0x1bac2e);}catch(_0x17d2f7){while(_0x1345da[_0x452337(0x176,_0x3e5913._0x1b147f,0x22e,0x24a)]>0x0){const _0x531e39=_0x1345da['shift']();_0x531e39!==void 0x0&&(yield _0x531e39);}if(_0x17d2f7 instanceof ToolExecutionError)throw _0x17d2f7;if(_0x156c1d)throw _0x156c1d;if(isErrnoException(_0x17d2f7)&&_0x17d2f7[_0x452337(_0x3e5913._0x248d39,0x2d2,0x340,_0x3e5913._0x2a33ba)]==='ENOENT')throw new ToolExecutionError(_0x2b4850(_0x3e5913._0x1237c0,0x3a6,_0x3e5913._0x15754a,_0x3e5913._0x3afc69)+_0x110c5,{'command':_0xf64ac7[_0x452337(_0x3e5913._0x16d230,0x203,_0x3e5913._0x49fa0f,_0x3e5913._0x2a6a0a)],'cwd':_0x5b69ad,'shellPath':_0x110c5});throw new ToolExecutionError(_0x17d2f7 instanceof Error?_0x17d2f7[_0x2b4850(_0x3e5913._0x17518d,_0x3e5913._0x5a26bd,0x1b9,_0x3e5913._0x51706a)]:String(_0x17d2f7),{'command':_0xf64ac7[_0x452337(0x304,_0x3e5913._0x57ff01,0x22f,0x1c2)],'cwd':_0x5b69ad,'shellPath':_0x110c5});}finally{_0x477398&&clearTimeout(_0x477398);_0x2c878a(),_0xb27366[_0x2b4850(0x13e,0x10d,0x1f4,0x1a3)]?.['off'](_0x2b4850(0x36b,0x29c,_0x3e5913._0x2995be,0x1bc),_0x3455bf),_0xb27366[_0x452337(0x357,0x30f,0x300,_0x3e5913._0x5bafd5)]?.['off'](_0x452337(_0x3e5913._0xe0a89,0x292,_0x3e5913._0x152cd3,_0x3e5913._0x35ee83),_0x3212b2);if(!_0x3eec6c&&_0xb27366['pid']&&!_0xb27366[_0x452337(0x317,_0x3e5913._0x43e5ed,_0x3e5913._0x3ced75,_0x3e5913._0x4d8a90)])try{killProcessGroup(_0xb27366,_0x476fd3);}catch{}}}});}function _0x5452(_0x31cc41,_0x26e1d5){_0x31cc41=_0x31cc41-0xc1;const _0x226cd7=_0x226c();let _0x545229=_0x226cd7[_0x31cc41];if(_0x5452['PuTgVZ']===undefined){var _0x5cd835=function(_0xc57024){const _0x505005='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2b14f8='',_0x5f11ce='';for(let _0x2a0156=0x0,_0xe4974e,_0x16da14,_0x4d5086=0x0;_0x16da14=_0xc57024['charAt'](_0x4d5086++);~_0x16da14&&(_0xe4974e=_0x2a0156%0x4?_0xe4974e*0x40+_0x16da14:_0x16da14,_0x2a0156++%0x4)?_0x2b14f8+=String['fromCharCode'](0xff&_0xe4974e>>(-0x2*_0x2a0156&0x6)):0x0){_0x16da14=_0x505005['indexOf'](_0x16da14);}for(let _0x10177f=0x0,_0x3cac84=_0x2b14f8['length'];_0x10177f<_0x3cac84;_0x10177f++){_0x5f11ce+='%'+('00'+_0x2b14f8['charCodeAt'](_0x10177f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f11ce);};_0x5452['ZnPhAo']=_0x5cd835,_0x5452['ojvRap']={},_0x5452['PuTgVZ']=!![];}const _0x3b6772=_0x226cd7[0x0],_0x35657a=_0x31cc41+_0x3b6772,_0x4bbeab=_0x5452['ojvRap'][_0x35657a];return!_0x4bbeab?(_0x545229=_0x5452['ZnPhAo'](_0x545229),_0x5452['ojvRap'][_0x35657a]=_0x545229):_0x545229=_0x4bbeab,_0x545229;}function createShellExecTool(_0x382756={}){return createBashTool(_0x382756);}import{readdir,readFile}from'fs/promises';import{extname,join as _0xe4974e}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x16da14,join,relative as _0x4d5086,resolve as _0x10177f}from'path';import{readdir as _0x3cac84,readFile as _0x2b166c}from'fs/promises';import{join as _0x42c662,relative as _0x4130ca,sep}from'path';import{delimiter}from'path';import{mkdir,rm,stat as _0x5223b0,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x2dcec2}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4f6cc1,rename,writeFile as _0x216242}from'fs/promises';import{homedir}from'os';import{dirname as _0x217830,isAbsolute as _0x2bcd78,join as _0x566dac,resolve as _0x2818f4}from'path';import{parse as _0x44445b,stringify as _0x43f7a4}from'yaml';import{z}from'zod';import{cp,mkdir as _0x18af33,readFile as _0x1cb510,rm as _0x4304e8,writeFile as _0xdb7b1d}from'fs/promises';import{homedir as _0x3259a5}from'os';import{join as _0x5dc5a2}from'path';import{parse as _0x5917ed,stringify as _0x4b8246}from'yaml';import{readdir as _0x3678d8,readFile as _0x214386}from'fs/promises';import{join as _0x1c1b22}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x21f800){const _0x5d5439={_0x17eca5:0x5a2,_0x50c347:0x4b9,_0x26091c:0x3cf,_0x2a61e1:0x439,_0x2c95fb:0x465,_0x119699:0x483,_0x1534dd:0x1d6,_0x5d5b92:0x142,_0x5248e3:0x411,_0x771ad8:0x26,_0xe6bd8:0x7a,_0xe6cafe:0x7,_0x3351d5:0x4fd,_0x250ef1:0x60b},_0x4646cf={_0x2e1fb5:0xd0},_0x4f2df5=[];let _0x2a6927='',_0x3ca661=0x0;while(_0x3ca661<_0x21f800[_0x3e602c(0x4bb,_0x5d5439._0x17eca5,_0x5d5439._0x50c347,_0x5d5439._0x26091c)]){const _0x522cea=_0x21f800[_0x3ca661];if(_0x522cea==='\x5c'&&_0x3ca661+0x1<_0x21f800[_0x3e602c(_0x5d5439._0x2a61e1,_0x5d5439._0x2c95fb,0x4b9,_0x5d5439._0x119699)])_0x2a6927+=_0x21f800[_0x3ca661+0x1],_0x3ca661+=0x2;else{if(_0x522cea==='\x22'||_0x522cea==='\x27'){const _0x2c5ba0=_0x522cea;_0x3ca661++;while(_0x3ca661<_0x21f800[_0x13b545(-_0x5d5439._0x1534dd,-0x2bd,-0x28b,-_0x5d5439._0x5d5b92)]&&_0x21f800[_0x3ca661]!==_0x2c5ba0){_0x21f800[_0x3ca661]==='\x5c'&&_0x3ca661+0x1<_0x21f800[_0x3e602c(_0x5d5439._0x5248e3,0x567,0x4b9,0x3db)]?(_0x2a6927+=_0x21f800[_0x3ca661+0x1],_0x3ca661+=0x2):(_0x2a6927+=_0x21f800[_0x3ca661],_0x3ca661++);}_0x3ca661++;}else _0x522cea!==void 0x0&&/\s/[_0x13b545(-_0x5d5439._0x771ad8,_0x5d5439._0xe6bd8,-_0x5d5439._0xe6cafe,-0x65)](_0x522cea)?(_0x2a6927&&(_0x4f2df5['push'](_0x2a6927),_0x2a6927=''),_0x3ca661++):(_0x2a6927+=_0x522cea,_0x3ca661++);}}function _0x3e602c(_0x17acec,_0x51d5f9,_0x50cee7,_0x278fce){return _0x12584b(_0x50cee7-0xdb,_0x51d5f9-0xb3,_0x50cee7-_0x4646cf._0x2e1fb5,_0x278fce);}function _0x13b545(_0x370e6f,_0x33f2f4,_0x29d3d2,_0x4d287b){return _0x12584b(_0x370e6f- -0x5b4,_0x33f2f4-0x176,_0x29d3d2-0x1c0,_0x29d3d2);}if(_0x2a6927)_0x4f2df5[_0x3e602c(_0x5d5439._0x3351d5,0x57d,0x529,_0x5d5439._0x250ef1)](_0x2a6927);return _0x4f2df5;}function renderCommandInstructions(_0x547c31){const _0x94f902={_0xde471:0x254,_0x566e68:0x1f1,_0x385979:0x295,_0x9dcefa:0x54a,_0x40cadb:0x512,_0x16e9c2:0x4d5,_0x3d60ef:0x5aa,_0x2a25ec:0x14f,_0x1b4e03:0x10b,_0x37ddbe:0xdb,_0x53768c:0x12e,_0x12b09f:0x93,_0x1bf924:0x278,_0x444ef0:0x1a1,_0x9233b3:0x54a,_0x398600:0x604,_0x19c2c2:0x581,_0x47af1f:0x5b0,_0x4e976d:0x35d,_0x3708b1:0x281,_0x339d1d:0x318,_0x25c1ff:0x1ed,_0x2144e4:0x1d8},_0x7c9e41={_0x2b484f:0xc,_0x256042:0x1ef},_0x208750={_0x8ed572:0x5f};let _0xc2a38d=_0x547c31[_0x56b53f(_0x94f902._0xde471,_0x94f902._0x566e68,0x115,_0x94f902._0x385979)],_0x29e4f4=![];function _0x56b53f(_0x1fadc7,_0x3e3610,_0xa08e8d,_0x2985d3){return _0x12584b(_0x3e3610- -0x2d3,_0x3e3610-0x1ac,_0xa08e8d-_0x208750._0x8ed572,_0x2985d3);}const _0x1e3246=tokenizeCommandArguments(_0x547c31['argumentsText']);_0xc2a38d=_0xc2a38d[_0xbb6ad(_0x94f902._0x9dcefa,_0x94f902._0x40cadb,0x4a2,_0x94f902._0x16e9c2)](/\$ARGUMENTS\[(\d+)\]/g,(_0x123420,_0x11bf40)=>{return _0x29e4f4=!![],_0x1e3246[Number(_0x11bf40)]??'';}),_0xc2a38d=_0xc2a38d['replace'](/\$ARGUMENTS\b/g,()=>{return _0x29e4f4=!![],_0x547c31['argumentsText'];});function _0xbb6ad(_0x17fa58,_0x578217,_0xdaa830,_0xa8ec23){return _0x12584b(_0x17fa58- -_0x7c9e41._0x2b484f,_0x578217-0x129,_0xdaa830-_0x7c9e41._0x256042,_0xdaa830);}if(_0x547c31[_0xbb6ad(0x53f,_0x94f902._0x3d60ef,0x5d5,0x4ca)]&&_0x547c31['argumentNames'][_0x56b53f(_0x94f902._0x2a25ec,_0x94f902._0x1b4e03,_0x94f902._0x37ddbe,0x46)]>0x0)for(let _0x3d781e=0x0;_0x3d781e<_0x547c31['argumentNames'][_0x56b53f(_0x94f902._0x53768c,0x10b,_0x94f902._0x12b09f,0xdd)];_0x3d781e++){const _0x24a273=_0x547c31[_0x56b53f(0x219,_0x94f902._0x1bf924,_0x94f902._0x444ef0,0x1ee)][_0x3d781e];if(_0x24a273){const _0xdc6482=new RegExp('\x5c$'+_0x24a273+'\x5cb','g');_0xc2a38d=_0xc2a38d['replace'](_0xdc6482,()=>{return _0x29e4f4=!![],_0x1e3246[_0x3d781e]??'';});}}return _0xc2a38d=_0xc2a38d[_0xbb6ad(_0x94f902._0x9233b3,0x4f8,_0x94f902._0x398600,0x61c)](/\$(\d+)\b/g,(_0x4fdeb6,_0x55edf0)=>{return _0x29e4f4=!![],_0x1e3246[Number(_0x55edf0)]??'';}),!_0x29e4f4&&_0x547c31['argumentsText'][_0xbb6ad(_0x94f902._0x19c2c2,0x4ef,_0x94f902._0x47af1f,0x569)]()&&(_0xc2a38d=_0xc2a38d+_0x56b53f(_0x94f902._0x4e976d,_0x94f902._0x3708b1,_0x94f902._0x339d1d,_0x94f902._0x25c1ff)+_0x547c31[_0x56b53f(0x1df,_0x94f902._0x2144e4,0x21d,0x1bb)]),_0xc2a38d;}var chatModelAuthSchemeSchema=z[_0x46bf5b(0x430,0x386,0x3b5,0x46f)]([_0x12584b(0x42f,0x387,0x459,0x465),_0x46bf5b(0x42b,0x3f9,0x55d,0x4d5)]),apiKeyAuthSchema=z[_0x46bf5b(0x3c8,0x461,0x4cf,0x425)]({'type':z[_0x46bf5b(0x4d6,0x372,0x4e9,0x418)](_0x12584b(0x3f6,0x41c,0x477,0x3c9)),'apiKey':z[_0x46bf5b(0x3ef,0x4ed,0x3f8,0x479)](),'authScheme':chatModelAuthSchemeSchema[_0x12584b(0x57c,0x632,0x595,0x614)]()})[_0x12584b(0x3d0,0x3fd,0x33a,0x411)](),oauthAuthSchema=z[_0x46bf5b(0x3a5,0x4b9,0x379,0x425)]({'type':z[_0x46bf5b(0x3a0,0x4af,0x392,0x418)]('oauth'),'access':z[_0x46bf5b(0x461,0x50d,0x4f3,0x479)](),'refresh':z['string'](),'expires':z[_0x12584b(0x3ee,0x479,0x3ed,0x3ac)]()[_0x12584b(0x57c,0x652,0x4af,0x57d)](),'authScheme':chatModelAuthSchemeSchema[_0x46bf5b(0x69e,0x645,0x591,0x5bf)]()})[_0x46bf5b(0x430,0x402,0x3d5,0x413)](),authMethodSchema=z[_0x12584b(0x425,0x3dd,0x3fb,0x46e)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x46bf5b(0x491,0x464,0x43a,0x425)]({'id':z[_0x46bf5b(0x460,0x486,0x3ac,0x479)](),'name':z[_0x46bf5b(0x50f,0x3ec,0x536,0x479)]()['optional']()})['passthrough'](),modelConfigSchema=z['union']([z[_0x46bf5b(0x3c2,0x501,0x364,0x418)](![]),z[_0x46bf5b(0x375,0x424,0x391,0x418)](!![]),z[_0x12584b(0x436,0x484,0x3f7,0x476)](),z[_0x12584b(0x41b,0x4b8,0x370,0x4bc)](z[_0x46bf5b(0x426,0x4be,0x460,0x479)]()),z['array'](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x46bf5b(0x391,0x3d0,0x3b0,0x46f)]([_0x46bf5b(0x4f4,0x4f5,0x585,0x58a),'openai-chat-completions',_0x46bf5b(0x4be,0x48f,0x3ec,0x44d),_0x12584b(0x49d,0x544,0x47c,0x533)]),providerConfigSchema=z[_0x12584b(0x3e2,0x469,0x44e,0x3ed)]({'apiKey':z[_0x46bf5b(0x47b,0x524,0x3a2,0x479)]()[_0x12584b(0x57c,0x513,0x56d,0x4ef)](),'token':z[_0x12584b(0x436,0x493,0x4e0,0x455)]()[_0x46bf5b(0x58b,0x4ee,0x6a0,0x5bf)](),'defaultModel':z[_0x12584b(0x436,0x48b,0x3c0,0x488)]()['optional'](),'smallModel':z['string']()['optional'](),'currentAuth':z[_0x46bf5b(0x3d6,0x445,0x4f8,0x479)]()['optional'](),'auth':z[_0x12584b(0x41b,0x423,0x4ef,0x3dc)](authMethodSchema)[_0x12584b(0x57c,0x644,0x64d,0x541)](),'surface':chatModelSurfaceSchema[_0x46bf5b(0x58e,0x5b6,0x543,0x5bf)](),'baseUrl':z['string']()['optional'](),'models':modelConfigSchema[_0x46bf5b(0x666,0x630,0x671,0x5bf)](),'customHeaders':z[_0x46bf5b(0x400,0x4f0,0x39f,0x470)](z[_0x46bf5b(0x52a,0x4eb,0x4f1,0x479)](),z[_0x46bf5b(0x553,0x53e,0x3be,0x479)]())[_0x46bf5b(0x56c,0x4d4,0x59f,0x5bf)]()})['passthrough'](),mcpServerConfigSchema=z[_0x12584b(0x3e2,0x309,0x3b3,0x406)]({'command':z[_0x12584b(0x436,0x51c,0x498,0x40c)]()[_0x12584b(0x57c,0x54a,0x4ce,0x4b6)](),'args':z['array'](z[_0x46bf5b(0x41a,0x500,0x419,0x479)]())[_0x12584b(0x57c,0x4a1,0x4fa,0x557)](),'env':z[_0x12584b(0x42d,0x47c,0x3b7,0x46b)](z[_0x46bf5b(0x42e,0x4e5,0x440,0x479)](),z[_0x12584b(0x436,0x4e4,0x3f7,0x457)]())[_0x46bf5b(0x522,0x567,0x643,0x5bf)](),'transport':z['enum']([_0x46bf5b(0x68d,0x5d1,0x61e,0x5be),_0x12584b(0x561,0x634,0x5bc,0x581)])[_0x12584b(0x57c,0x4a9,0x50f,0x615)](),'url':z[_0x46bf5b(0x501,0x436,0x3cc,0x479)]()[_0x46bf5b(0x53a,0x56a,0x63a,0x5bf)](),'headers':z['record'](z[_0x46bf5b(0x3b6,0x401,0x533,0x479)](),z[_0x12584b(0x436,0x37f,0x42f,0x390)]())[_0x46bf5b(0x670,0x5c3,0x51c,0x5bf)](),'prefix':z[_0x46bf5b(0x496,0x488,0x3f4,0x479)]()[_0x46bf5b(0x572,0x57c,0x64f,0x5bf)](),'timeoutMs':z[_0x46bf5b(0x370,0x3c1,0x3b7,0x431)]()[_0x46bf5b(0x5f4,0x4fb,0x668,0x5bf)](),'enabled':z[_0x46bf5b(0x55c,0x490,0x5cb,0x546)]()[_0x46bf5b(0x59f,0x67f,0x619,0x5bf)](),'auth':z[_0x12584b(0x3e2,0x379,0x3f0,0x3f4)]({'type':z[_0x46bf5b(0x4ac,0x4fe,0x512,0x46f)](['none',_0x12584b(0x42f,0x4e8,0x34e,0x3af),_0x46bf5b(0x47f,0x4f0,0x3e5,0x456)]),'token':z[_0x46bf5b(0x4c0,0x44a,0x3bd,0x479)]()[_0x12584b(0x57c,0x4bb,0x542,0x5bc)](),'oauth':z[_0x12584b(0x3e2,0x322,0x316,0x430)]({'clientId':z['string']()['optional'](),'clientMetadataUrl':z[_0x46bf5b(0x4c6,0x480,0x530,0x479)]()[_0x12584b(0x57c,0x5d6,0x52d,0x5ef)](),'authorizationServer':z[_0x46bf5b(0x4e1,0x3e8,0x40c,0x479)]()[_0x46bf5b(0x633,0x565,0x5db,0x5bf)](),'scopes':z[_0x46bf5b(0x424,0x486,0x4d8,0x45e)](z['string']())['optional'](),'tokenStorageKey':z[_0x12584b(0x436,0x4c0,0x4d5,0x3c8)]()[_0x12584b(0x57c,0x549,0x529,0x510)]()})[_0x12584b(0x3d0,0x3ce,0x37f,0x4b0)]()[_0x12584b(0x57c,0x4e2,0x51d,0x5d0)]()})[_0x46bf5b(0x4f4,0x39b,0x4f9,0x413)]()['optional']()})[_0x12584b(0x3d0,0x397,0x375,0x43f)](),mcpSettingsSchema=z[_0x46bf5b(0x413,0x45f,0x367,0x425)]({'servers':z['record'](z[_0x12584b(0x436,0x508,0x478,0x4dc)](),mcpServerConfigSchema)[_0x12584b(0x57c,0x55f,0x4a4,0x4fb)](),'allowedTools':z[_0x12584b(0x42d,0x399,0x41b,0x37f)](z[_0x46bf5b(0x548,0x49e,0x51b,0x479)](),z[_0x46bf5b(0x3ac,0x543,0x430,0x470)](z[_0x12584b(0x436,0x417,0x466,0x35b)](),z[_0x46bf5b(0x597,0x489,0x5b7,0x546)]()))['optional'](),'defaultTimeoutMs':z[_0x12584b(0x3ee,0x3d7,0x42f,0x358)]()[_0x12584b(0x57c,0x511,0x4d0,0x4aa)]()})['passthrough'](),skillsSettingsSchema=z[_0x46bf5b(0x3b8,0x3fe,0x377,0x425)]({'enabled':z[_0x12584b(0x503,0x53f,0x555,0x59c)]()[_0x46bf5b(0x5f3,0x5c9,0x5af,0x5bf)](),'includeDefaults':z[_0x46bf5b(0x59a,0x486,0x507,0x546)]()[_0x46bf5b(0x61c,0x506,0x4f0,0x5bf)](),'directories':z[_0x12584b(0x41b,0x465,0x342,0x3d1)](z[_0x12584b(0x436,0x3e3,0x4e8,0x4fc)]())[_0x12584b(0x57c,0x50d,0x5b1,0x5fa)](),'exclude':z[_0x12584b(0x41b,0x463,0x494,0x37c)](z[_0x12584b(0x436,0x3c5,0x48a,0x4f8)]())[_0x46bf5b(0x679,0x5c8,0x59c,0x5bf)]()})[_0x46bf5b(0x44f,0x3d9,0x4df,0x413)](),commandsSettingsSchema=z[_0x12584b(0x3e2,0x391,0x41f,0x331)]({'enabled':z['boolean']()['optional'](),'directories':z[_0x46bf5b(0x3b5,0x498,0x37e,0x45e)](z[_0x46bf5b(0x530,0x4f2,0x4c6,0x479)]())[_0x46bf5b(0x5a5,0x5d4,0x4f0,0x5bf)]()})['passthrough'](),agentsSettingsSchema=z[_0x46bf5b(0x4d5,0x354,0x449,0x425)]({'enabled':z['boolean']()[_0x46bf5b(0x66b,0x549,0x631,0x5bf)](),'includeDefaults':z[_0x46bf5b(0x630,0x62a,0x536,0x546)]()['optional'](),'directories':z['array'](z['string']())[_0x46bf5b(0x574,0x4fc,0x5f9,0x5bf)]()})[_0x46bf5b(0x3a0,0x367,0x413,0x413)](),uiThemeSettingsSchema=z[_0x46bf5b(0x379,0x349,0x340,0x425)]({'mode':z[_0x12584b(0x42c,0x451,0x4f3,0x34c)]([_0x46bf5b(0x442,0x529,0x5e0,0x4fb),_0x12584b(0x497,0x3c1,0x4a5,0x4a6),_0x12584b(0x575,0x616,0x57c,0x53e)])[_0x12584b(0x57c,0x5fd,0x559,0x576)](),'colorLevel':z[_0x12584b(0x42c,0x358,0x44b,0x365)]([_0x46bf5b(0x4a6,0x54e,0x485,0x4fb),_0x12584b(0x4b1,0x42b,0x4b3,0x42b),_0x12584b(0x54c,0x4f0,0x483,0x521),'ansi256',_0x46bf5b(0x678,0x589,0x59d,0x5b3)])[_0x12584b(0x57c,0x4f7,0x4d7,0x5da)](),'backgrounds':z[_0x12584b(0x42c,0x340,0x4ca,0x3b6)]([_0x46bf5b(0x497,0x473,0x595,0x4fb),'on',_0x46bf5b(0x55f,0x58a,0x5df,0x5a0)])['optional'](),'messageStyle':z['enum']([_0x46bf5b(0x555,0x513,0x3c8,0x49d),_0x12584b(0x3e1,0x4af,0x340,0x3be)])[_0x46bf5b(0x509,0x64d,0x628,0x5bf)]()})[_0x12584b(0x3d0,0x31a,0x462,0x4b5)](),statuslineSegmentSchema=z[_0x12584b(0x42c,0x45a,0x428,0x427)](['model',_0x12584b(0x496,0x4a7,0x3cd,0x53d),_0x12584b(0x56f,0x539,0x4b3,0x4d6),_0x12584b(0x3cb,0x3ac,0x361,0x428),_0x12584b(0x4ba,0x3e9,0x485,0x480),_0x46bf5b(0x476,0x44d,0x430,0x480),_0x12584b(0x4e8,0x523,0x5b1,0x5d0),'requests',_0x12584b(0x589,0x516,0x59b,0x642),_0x46bf5b(0x51f,0x3fe,0x3bf,0x48f),_0x12584b(0x564,0x49f,0x5ab,0x4e1),_0x46bf5b(0x4f5,0x4f2,0x65c,0x582),_0x46bf5b(0x482,0x490,0x39b,0x47a),_0x46bf5b(0x4e9,0x575,0x61a,0x556),_0x12584b(0x48f,0x4b9,0x4cf,0x494)]),statuslineItemSchema=z[_0x46bf5b(0x46f,0x40b,0x499,0x468)]([statuslineSegmentSchema,z[_0x46bf5b(0x445,0x3f6,0x40d,0x418)]('|')]),statuslineRowSchema=z[_0x12584b(0x41b,0x3c8,0x463,0x4a0)](statuslineItemSchema),statuslineConfigSchema=z[_0x46bf5b(0x39e,0x440,0x3e7,0x425)]({'rows':z[_0x46bf5b(0x4a4,0x531,0x551,0x584)]([statuslineRowSchema,statuslineRowSchema])['optional']()})['passthrough'](),memorySettingsSchema=z[_0x46bf5b(0x46c,0x3f5,0x50a,0x425)]({'version':z['literal'](0x2)[_0x46bf5b(0x66b,0x682,0x65b,0x5bf)](),'retrieval':z[_0x46bf5b(0x4f7,0x3fc,0x40b,0x425)]({'engine':z[_0x12584b(0x3d5,0x39e,0x4a7,0x326)](_0x12584b(0x4d5,0x4c6,0x583,0x4a2))[_0x12584b(0x57c,0x53d,0x63c,0x4cf)](),'candidateLimit':z[_0x46bf5b(0x414,0x4b8,0x465,0x431)]()[_0x12584b(0x57c,0x560,0x4d5,0x51e)](),'activeCandidateLimit':z['number']()[_0x46bf5b(0x4d8,0x53f,0x64d,0x5bf)](),'activeEnabled':z[_0x12584b(0x503,0x57e,0x459,0x5ab)]()[_0x12584b(0x57c,0x569,0x61f,0x545)](),'maxQueriesPerTurn':z[_0x12584b(0x3ee,0x346,0x39e,0x38d)]()['optional'](),'coreInjectTokenBudget':z[_0x12584b(0x3ee,0x4c5,0x336,0x420)]()['optional'](),'injectTokenBudget':z[_0x12584b(0x3ee,0x434,0x47d,0x307)]()['optional'](),'minScore':z[_0x46bf5b(0x488,0x45c,0x491,0x431)]()[_0x12584b(0x57c,0x4a0,0x5b0,0x541)](),'freshnessHalfLifeDays':z[_0x12584b(0x3ee,0x31a,0x3e5,0x369)]()[_0x12584b(0x57c,0x57f,0x576,0x5b5)]()})[_0x46bf5b(0x419,0x36b,0x4d6,0x413)]()[_0x12584b(0x57c,0x49f,0x58b,0x5da)](),'extraction':z[_0x12584b(0x3e2,0x474,0x4b8,0x397)]({'enabled':z[_0x12584b(0x503,0x45d,0x420,0x53a)]()[_0x12584b(0x57c,0x5c6,0x5e0,0x505)](),'provider':z[_0x46bf5b(0x510,0x541,0x395,0x479)]()['optional'](),'model':z[_0x12584b(0x436,0x361,0x411,0x3d7)]()[_0x12584b(0x57c,0x56b,0x5a0,0x53b)](),'sensitiveFilter':z[_0x46bf5b(0x4ee,0x525,0x4d6,0x546)]()[_0x12584b(0x57c,0x507,0x4cc,0x564)]()})[_0x12584b(0x3d0,0x4b2,0x4a1,0x3dc)]()['optional'](),'index':z[_0x46bf5b(0x510,0x35e,0x42f,0x425)]({'persisted':z[_0x12584b(0x503,0x52a,0x51a,0x4aa)]()[_0x46bf5b(0x635,0x690,0x53b,0x5bf)](),'flushIntervalMs':z['number']()[_0x12584b(0x57c,0x63b,0x64b,0x564)]()})[_0x12584b(0x3d0,0x32a,0x340,0x374)]()[_0x12584b(0x57c,0x609,0x529,0x622)](),'enabled':z[_0x12584b(0x503,0x473,0x450,0x5b2)]()[_0x46bf5b(0x517,0x5c3,0x5cf,0x5bf)](),'saveTool':z[_0x46bf5b(0x563,0x4b0,0x516,0x546)]()['optional'](),'model':z[_0x46bf5b(0x4dd,0x453,0x4da,0x479)]()[_0x12584b(0x57c,0x5f6,0x5e4,0x668)](),'provider':z['string']()[_0x46bf5b(0x57c,0x5c9,0x5cd,0x5bf)](),'maxInjectionTokens':z[_0x46bf5b(0x397,0x4c2,0x36b,0x431)]()[_0x12584b(0x57c,0x4b7,0x4da,0x4db)](),'backgroundExtraction':z['boolean']()['optional']()})['passthrough'](),recentModelSchema=z[_0x46bf5b(0x4c1,0x43c,0x450,0x425)]({'provider':z[_0x46bf5b(0x540,0x428,0x412,0x479)](),'model':z[_0x12584b(0x436,0x505,0x50c,0x3a4)](),'usedAt':z[_0x12584b(0x3ee,0x357,0x319,0x353)]()})[_0x12584b(0x3d0,0x2ea,0x464,0x418)](),lspServerEntrySchema=z[_0x46bf5b(0x4d9,0x3c7,0x377,0x425)]({'disabled':z[_0x12584b(0x503,0x4a0,0x44d,0x4ca)]()[_0x46bf5b(0x67e,0x557,0x549,0x5bf)](),'command':z['string']()['optional'](),'args':z[_0x46bf5b(0x455,0x52c,0x385,0x45e)](z[_0x46bf5b(0x45c,0x45b,0x54a,0x479)]())[_0x46bf5b(0x55d,0x4dd,0x4de,0x5bf)](),'rootMarkers':z['array'](z['string']())[_0x12584b(0x57c,0x657,0x58d,0x58c)]()})[_0x12584b(0x3d0,0x3e9,0x33c,0x479)](),lspConfigSchema=z[_0x12584b(0x3e2,0x319,0x404,0x470)]({'enabled':z[_0x46bf5b(0x5c4,0x5ee,0x5db,0x546)]()[_0x12584b(0x57c,0x668,0x49c,0x56d)](),'servers':z[_0x12584b(0x42d,0x3ac,0x3ab,0x3be)](z['string'](),lspServerEntrySchema)[_0x12584b(0x57c,0x4f0,0x569,0x51b)]()})[_0x46bf5b(0x3f0,0x339,0x44c,0x413)](),cliConfigSchema=z[_0x12584b(0x3e2,0x39c,0x3b3,0x364)]({'activeProvider':z[_0x46bf5b(0x458,0x552,0x423,0x479)]()['optional'](),'activeModel':z['string']()['optional'](),'apiKey':z[_0x12584b(0x436,0x476,0x3e5,0x477)]()['optional'](),'providers':z['record'](z['string'](),providerConfigSchema)[_0x12584b(0x57c,0x619,0x4f2,0x64a)](),'mcp':mcpSettingsSchema[_0x46bf5b(0x6a3,0x4ee,0x66c,0x5bf)](),'skills':skillsSettingsSchema[_0x46bf5b(0x5e8,0x4f9,0x570,0x5bf)](),'agents':agentsSettingsSchema['optional'](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x12584b(0x42d,0x381,0x47b,0x3bc)](z[_0x46bf5b(0x508,0x48e,0x461,0x479)](),z[_0x12584b(0x503,0x5e7,0x472,0x49e)]())[_0x46bf5b(0x4f2,0x56e,0x4e4,0x5bf)](),'memory':memorySettingsSchema['optional'](),'session':z[_0x46bf5b(0x406,0x48f,0x4b0,0x425)]({'memPersist':z[_0x46bf5b(0x4d7,0x461,0x5ea,0x546)]()['optional'](),'persistEventLog':z['boolean']()[_0x12584b(0x57c,0x4ae,0x569,0x49e)](),'persistHttpLog':z[_0x12584b(0x503,0x492,0x5ba,0x50c)]()[_0x12584b(0x57c,0x50d,0x50a,0x600)]()})['passthrough']()[_0x12584b(0x57c,0x4e4,0x597,0x617)](),'requireToolApproval':z['boolean']()[_0x46bf5b(0x622,0x586,0x4f3,0x5bf)](),'thinking':z[_0x12584b(0x42c,0x489,0x480,0x4c1)]([_0x12584b(0x4be,0x3fb,0x466,0x492),_0x46bf5b(0x4b4,0x3d5,0x440,0x400),_0x12584b(0x53c,0x549,0x56a,0x503),_0x46bf5b(0x557,0x527,0x449,0x4b1)])['optional'](),'streamingChunks':z['boolean']()[_0x46bf5b(0x57c,0x52d,0x5c1,0x5bf)](),'agentsEnabled':z[_0x46bf5b(0x53a,0x44d,0x395,0x470)](z[_0x46bf5b(0x3a2,0x49d,0x517,0x479)](),z[_0x12584b(0x503,0x5ea,0x469,0x4d1)]())[_0x46bf5b(0x632,0x69c,0x67c,0x5bf)](),'recentModels':z[_0x46bf5b(0x545,0x40b,0x3ca,0x45e)](recentModelSchema)[_0x12584b(0x57c,0x522,0x631,0x5b5)](),'lsp':lspConfigSchema['optional'](),'ui':z[_0x12584b(0x3e2,0x397,0x2f8,0x32a)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x12584b(0x57c,0x5ea,0x534,0x62b)]()})[_0x12584b(0x3d0,0x37d,0x428,0x38d)]()['optional'](),'tools':z[_0x12584b(0x42d,0x4f0,0x445,0x3ef)](z[_0x46bf5b(0x526,0x4bc,0x3a2,0x479)](),z['unknown']())['optional']()})[_0x12584b(0x3d0,0x3f7,0x3ed,0x3a9)]();function buildDescription(_0x36a0ad){const _0x592594={_0x3f391f:0x65,_0xc97ebe:0x53,_0x3fcf10:0x457,_0x3c49d1:0x40e,_0x5ebc5b:0x337,_0x2e046d:0xab,_0x304d79:0x150,_0x433368:0x177,_0x4a1498:0xcb,_0x49ecc8:0xae,_0x86c4c7:0x3bb,_0x406c76:0x4b8,_0x499b54:0x88,_0x1689f6:0x151,_0x28a9f0:0x1c6,_0x581446:0x95,_0x2227d2:0x13,_0x5884b3:0x0,_0x5b5f8b:0xeb,_0x5380db:0x8},_0x3c5dc7={_0x29f08c:0x118};if(_0x36a0ad[_0x7cb4d0(-_0x592594._0x3f391f,-_0x592594._0xc97ebe,-0x54,-0x117)]===0x0)return[_0xec4d5b(_0x592594._0x3fcf10,0x43b,0x433,0x3ca),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0xec4d5b(0x3d0,_0x592594._0x3c49d1,_0x592594._0x5ebc5b,0x37b)][_0x7cb4d0(0x96,_0x592594._0x2e046d,0x8b,_0x592594._0x304d79)]('\x0a');const _0x5aa8ab=[_0x7cb4d0(0x10f,_0x592594._0x433368,_0x592594._0x4a1498,_0x592594._0x49ecc8),_0xec4d5b(0x3d2,_0x592594._0x86c4c7,_0x592594._0x406c76,0x4b8),_0x7cb4d0(_0x592594._0x499b54,0x9d,_0x592594._0x1689f6,_0x592594._0x28a9f0),..._0x36a0ad[_0x7cb4d0(-_0x592594._0x581446,_0x592594._0x2227d2,_0x592594._0x5884b3,_0x592594._0x5b5f8b)](_0x42be26=>_0x42be26[_0xec4d5b(0x436,0x4a1,0x370,0x4a6)]?'-\x20'+_0x42be26[_0xec4d5b(0x3e3,0x30a,0x35c,0x35b)]+'\x20'+_0x42be26[_0x7cb4d0(-0x32,0x1e,0xaa,0xd6)]+':\x20'+_0x42be26[_0x7cb4d0(-0xd2,-0xc9,-0x13,-0x8d)]:'-\x20'+_0x42be26['name']+':\x20'+_0x42be26['description'])];function _0x7cb4d0(_0x46859a,_0x3eca6e,_0x25d74b,_0x3eda26){return _0x46bf5b(_0x46859a-0x2c,_0x3eda26,_0x25d74b-_0x3c5dc7._0x29f08c,_0x25d74b- -0x475);}function _0xec4d5b(_0x146f21,_0x1ff1fc,_0x322e44,_0x5723dc){return _0x46bf5b(_0x146f21-0x7,_0x1ff1fc,_0x322e44-0xd8,_0x146f21- -0xe9);}return _0x5aa8ab[_0x7cb4d0(0x128,_0x592594._0x5380db,0x8b,-0x7)]('\x0a');}function createInvokeCommandTool(_0x52b87e){const _0x1829bc={_0x1efa40:0x87,_0x243e45:0x86,_0x583627:0x54,_0x98d874:0x5b,_0x4d0720:0x1a1,_0x4d3447:0x17d,_0x31d7b5:0xc2,_0x4f0434:0x100,_0x3ca1ec:0xeb,_0x1c48b4:0x1d,_0x170f0c:0x19c,_0x272eff:0xa6,_0x474e07:0xb9,_0x4c284e:0x8e,_0x30ef47:0x170},_0x4aa59f={_0x376cd0:0x9a,_0x3de14d:0x55,_0x101a33:0x54,_0x30b0f9:0x60,_0x241bce:0x1c7,_0x14a8ab:0x122,_0x448e2d:0x93,_0x2fa746:0xbf,_0x1fb3b2:0x6d,_0x23d6e9:0xd9,_0x4b9970:0xfc,_0x15bb6f:0x148,_0x1b754e:0x53,_0x38f828:0x177},_0x514381={_0x123111:0x173,_0x5e0a04:0x9e,_0x557b04:0x124},_0xcfcc03=new Map(_0x52b87e[_0x4d78e6(_0x1829bc._0x1efa40,_0x1829bc._0x243e45,_0x1829bc._0x583627,-_0x1829bc._0x98d874)][_0x23e2d7(-_0x1829bc._0x4d0720,-0xbd,-_0x1829bc._0x4d3447,-0x167)](_0x1cef14=>[_0x1cef14['id'],_0x1cef14])),_0x4e5b84=buildDescription(_0x52b87e[_0x23e2d7(0xb,-0x6f,-0x12e,-0x14d)]);function _0x23e2d7(_0x20a2da,_0xced61b,_0x5cbcd2,_0x46860e){return _0x12584b(_0xced61b- -0x4ef,_0xced61b-0xf6,_0x5cbcd2-0x41,_0x46860e);}function _0x4d78e6(_0x53b684,_0xb0183,_0x5b6fec,_0x445cf7){return _0x12584b(_0xb0183- -0x3fa,_0xb0183-0x1cb,_0x5b6fec-0x1cc,_0x5b6fec);}return defineTool({'name':_0x4d78e6(-0x23,0x11,-0xc8,_0x1829bc._0x31d7b5),'description':_0x4e5b84,'inputSchema':{'type':_0x4d78e6(-_0x1829bc._0x4f0434,-0x18,-_0x1829bc._0x3ca1ec,-0xb6),'properties':{'name':{'type':_0x23e2d7(-_0x1829bc._0x1c48b4,-0xb9,-_0x1829bc._0x170f0c,-_0x1829bc._0x272eff)},'args':{'type':_0x23e2d7(-0xb1,-_0x1829bc._0x474e07,-_0x1829bc._0x4c284e,-_0x1829bc._0x30ef47)}},'required':[_0x23e2d7(-0x11d,-0x66,-0x48,0x7c)]},async *'execute'(_0x111313){const _0x5a0107={_0x135563:0x180,_0x2754b7:0x3e};function _0x35034c(_0x3f55d5,_0x37f94e,_0x227a88,_0x3e39a3){return _0x4d78e6(_0x3f55d5-_0x514381._0x123111,_0x37f94e-_0x514381._0x5e0a04,_0x3f55d5,_0x3e39a3-_0x514381._0x557b04);}const _0x404c5e=_0xcfcc03['get'](_0x111313[_0x57187c(-_0x4aa59f._0x376cd0,0x2c,-0x6c,-_0x4aa59f._0x3de14d)]);function _0x57187c(_0x8d9723,_0x8f5378,_0x515a8e,_0x2bfa86){return _0x23e2d7(_0x8d9723-_0x5a0107._0x135563,_0x8f5378-0x92,_0x515a8e-_0x5a0107._0x2754b7,_0x2bfa86);}if(!_0x404c5e){const _0x241632=Array['from'](_0xcfcc03['keys']())[_0x57187c(_0x4aa59f._0x101a33,_0x4aa59f._0x30b0f9,0x119,-0x23)](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0x111313[_0x35034c(_0x4aa59f._0x241bce,0x12d,0x100,_0x4aa59f._0x14a8ab)]+'\x27\x20not\x20found.\x20Available\x20commands:\x20'+_0x241632,{'name':_0x111313[_0x35034c(0xa4,0x12d,0xaa,_0x4aa59f._0x448e2d)]});}const _0x544065=await _0x52b87e[_0x57187c(0x4e,_0x4aa59f._0x2fa746,_0x4aa59f._0x1fb3b2,0x1e)](_0x404c5e),_0x397779=_0x111313['args']??'',_0x5514b4=renderCommandInstructions({'instructions':_0x544065['instructions'],'argumentsText':_0x397779,'argumentNames':_0x544065['arguments']});return yield createToolOutput(_0x5514b4,{'id':_0x544065['id'],'name':_0x544065[_0x35034c(0x20b,0x12d,_0x4aa59f._0x23d6e9,_0x4aa59f._0x4b9970)],'path':_0x404c5e[_0x35034c(_0x4aa59f._0x15bb6f,0x221,0x143,0x251)][_0x57187c(_0x4aa59f._0x1b754e,0x111,0xe4,_0x4aa59f._0x38f828)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x57072e,rename as _0x5dc8ea,stat as _0x4f980d,writeFile as _0x23a299}from'fs/promises';import*as _0x42922e from'path';function detectEol(_0x3c9957){const _0x3ce11a={_0x563849:0x2d2,_0x1273ea:0x233,_0x3401fb:0x388,_0xd38fe5:0x526,_0x248809:0x44a,_0x5645e5:0x22b,_0x5c9bfb:0x2ea,_0x543b2a:0x359},_0x19785c={_0x454a0b:0xa5,_0x4ccb91:0x2ff},_0x4f7043={_0x5c91e9:0xea,_0x187c9e:0xf0,_0x166d1d:0x1b};function _0x44b194(_0x18d47a,_0x324ab9,_0x41273e,_0x2419a4){return _0x12584b(_0x41273e- -_0x4f7043._0x5c91e9,_0x324ab9-_0x4f7043._0x187c9e,_0x41273e-_0x4f7043._0x166d1d,_0x2419a4);}function _0xa602e1(_0x20f9b9,_0x12f2c1,_0x55c385,_0x525cec){return _0x46bf5b(_0x20f9b9-0xef,_0x12f2c1,_0x55c385-_0x19785c._0x454a0b,_0x20f9b9- -_0x19785c._0x4ccb91);}return/\r\n/[_0xa602e1(_0x3ce11a._0x563849,_0x3ce11a._0x1273ea,0x2cc,0x3bd)](_0x3c9957[_0x44b194(0x3f2,0x2b6,0x351,0x2f5)](_0x44b194(_0x3ce11a._0x3401fb,_0x3ce11a._0xd38fe5,_0x3ce11a._0x248809,0x4a9)))?_0xa602e1(0x288,_0x3ce11a._0x5645e5,_0x3ce11a._0x5c9bfb,_0x3ce11a._0x543b2a):'lf';}function normalizeToLf(_0xf494c6){return _0xf494c6['replace'](/\r\n/g,'\x0a');}function convertEol(_0x3a5f89,_0x10dc80){const _0x4efe9e={_0x54741b:0x4c9,_0x5f3893:0x57a},_0x5948e4={_0x1bdb98:0x18b};function _0x49c527(_0x5f3b89,_0x45d162,_0x3fa9ef,_0x23be04){return _0x46bf5b(_0x5f3b89-_0x5948e4._0x1bdb98,_0x45d162,_0x3fa9ef-0x1b9,_0x5f3b89- -0x43);}return _0x10dc80===_0x49c527(0x544,_0x4efe9e._0x54741b,0x492,_0x4efe9e._0x5f3893)?_0x3a5f89['replace'](/\n/g,'\x0d\x0a'):_0x3a5f89;}async function atomicWrite(_0x20a477,_0x3dcb0d){const _0x303c10={_0x5c7701:0x258,_0x3c8cd5:0x35d,_0x34a04d:0x2c3,_0x2f28ca:0x1b2,_0x30db64:0x4a7,_0x3915dd:0x43d,_0x4b4f35:0x10c,_0x581037:0x21f,_0x135888:0x1a3,_0x336d34:0x5b6,_0x5a9d73:0x50d,_0x33fb88:0x32d,_0x460198:0x416,_0x235415:0x42f},_0x3adc65={_0x16a9b5:0x68},_0x1dd565={_0x211b6f:0x6ee},_0x5c59ac=_0x42922e[_0x5b7eee(-_0x303c10._0x5c7701,-_0x303c10._0x3c8cd5,-0x2c7,-_0x303c10._0x34a04d)](_0x20a477);function _0x5b7eee(_0x3fa165,_0xeba6c0,_0x2852ef,_0x920bfa){return _0x46bf5b(_0x3fa165-0x38,_0xeba6c0,_0x2852ef-0x6d,_0x920bfa- -_0x1dd565._0x211b6f);}const _0x1b6880=_0x42922e['join'](_0x5c59ac,_0x5b7eee(-0x265,-_0x303c10._0x2f28ca,-0x27b,-0x196)+_0x42922e[_0xa82978(0x4a0,_0x303c10._0x30db64,0x555,_0x303c10._0x3915dd)](_0x20a477)+'.'+Date[_0x5b7eee(-0xf7,-_0x303c10._0x4b4f35,-_0x303c10._0x581037,-_0x303c10._0x135888)]()+'.'+Math[_0xa82978(_0x303c10._0x336d34,0x563,_0x303c10._0x5a9d73,0x5c9)]()[_0xa82978(_0x303c10._0x33fb88,_0x303c10._0x460198,_0x303c10._0x235415,0x468)](0x24)['slice'](0x2));function _0xa82978(_0x26c872,_0x11845c,_0x63792,_0x380a86){return _0x46bf5b(_0x26c872-0x1c7,_0x380a86,_0x63792-0x180,_0x11845c- -_0x3adc65._0x16a9b5);}await _0x23a299(_0x1b6880,_0x3dcb0d),await _0x5dc8ea(_0x1b6880,_0x20a477);}function sha256(_0x22e66a){const _0xf1ad66={_0x21700d:0x603,_0x267620:0x1b3,_0x49ae74:0x10d,_0x513ce3:0x179,_0x350e7d:0x58,_0x455daf:0x71,_0x5529d8:0x1b},_0x4e4d77={_0x4f8e7f:0x93},_0x16aca9={_0x14224d:0x176};function _0x2b4e40(_0x4142a6,_0x1f96ee,_0xa8a240,_0x2df999){return _0x46bf5b(_0x4142a6-_0x16aca9._0x14224d,_0xa8a240,_0xa8a240-0x1ab,_0x1f96ee-0xa9);}function _0x3c8e07(_0x46c207,_0x34e7ac,_0x427631,_0x45aef1){return _0x46bf5b(_0x46c207-_0x4e4d77._0x4f8e7f,_0x427631,_0x427631-0x68,_0x34e7ac- -0x495);}return createHash(_0x2b4e40(0x6a5,_0xf1ad66._0x21700d,0x516,0x5e5))[_0x3c8e07(_0xf1ad66._0x267620,_0xf1ad66._0x49ae74,_0xf1ad66._0x513ce3,0x145)](_0x22e66a)[_0x3c8e07(0x1bd,0xd2,-0x1b,_0xf1ad66._0x350e7d)](_0x3c8e07(0x87,_0xf1ad66._0x455daf,-_0xf1ad66._0x5529d8,-0x51));}function countLines(_0x5fd51b){const _0x57214c={_0x4cb019:0x1d5,_0x36ff31:0x21a,_0x5a3706:0x166,_0xa7edda:0x85,_0x2cd3e1:0xb3,_0x435eda:0x12c,_0x20f034:0xea},_0x152548={_0x3f1668:0x45d},_0x1b3c09={_0x7bf8cb:0x5b3},_0x256ab3=_0x5fd51b['replace'](/\n$/,'');function _0x503ca2(_0xc88447,_0x2ce87a,_0x4ca544,_0x55c7e4){return _0x12584b(_0x2ce87a- -_0x1b3c09._0x7bf8cb,_0x2ce87a-0x10,_0x4ca544-0x125,_0x55c7e4);}function _0x503efd(_0x22d58f,_0x49b5d3,_0x17ad25,_0x5941fd){return _0x46bf5b(_0x22d58f-0x12b,_0x17ad25,_0x17ad25-0x1dd,_0x22d58f- -_0x152548._0x3f1668);}return _0x256ab3[_0x503ca2(-0x173,-_0x57214c._0x4cb019,-_0x57214c._0x36ff31,-_0x57214c._0x5a3706)]===0x0?0x0:_0x256ab3[_0x503efd(_0x57214c._0xa7edda,_0x57214c._0x2cd3e1,_0x57214c._0x435eda,_0x57214c._0x20f034)]('\x0a')['length'];}function calculateLineNumbers(_0xabe60a,_0x145ecd,_0x11399c,_0x16a332){const _0x274ea9={_0x27349b:0x2b9,_0x2d71b6:0x26d,_0x4b308c:0x23c,_0x403ee6:0x1f8,_0x3f91f5:0x13f,_0x4aca87:0x130},_0x4f1a88={_0x17b6ab:0xef},_0x1d4234={_0x274c40:0x5b,_0x5c14cf:0x18a},_0x233f0b=_0xabe60a['slice'](0x0,_0x16a332)[_0x4cf0ad(0x21c,_0x274ea9._0x27349b,0x265,_0x274ea9._0x2d71b6)]('\x0a')[_0x4cf0ad(_0x274ea9._0x4b308c,_0x274ea9._0x403ee6,_0x274ea9._0x3f91f5,_0x274ea9._0x4aca87)],_0x14c3cc=countLines(_0x145ecd),_0x2e358a=countLines(_0x11399c);function _0x56b587(_0x1e2f28,_0x338441,_0x17722e,_0x593aba){return _0x12584b(_0x338441- -0x36a,_0x338441-_0x1d4234._0x274c40,_0x17722e-_0x1d4234._0x5c14cf,_0x593aba);}function _0x4cf0ad(_0x57f504,_0x4a9e09,_0x3e496e,_0x5051c6){return _0x12584b(_0x4a9e09- -0x1e6,_0x4a9e09-0x1a9,_0x3e496e-_0x4f1a88._0x17b6ab,_0x3e496e);}return{'oldStartLine':_0x233f0b,'oldEndLine':_0x233f0b+_0x14c3cc-0x1,'newStartLine':_0x233f0b,'newEndLine':_0x233f0b+_0x2e358a-0x1,'oldLineCount':_0x14c3cc,'newLineCount':_0x2e358a};}function createFileEditTool(_0x3a76a6={}){const _0x1564c2={_0x504d0a:0x552,_0x39aa04:0xce,_0x44d2a0:0x153,_0x388dd0:0x1e7,_0x37c675:0x282,_0x37119f:0x1d3,_0x25f848:0x546,_0x129dfb:0x561,_0x97bd40:0x44a,_0xa8a7f2:0x4c0,_0x451119:0x32d,_0x31e478:0x31d,_0x3fa2e2:0x1fe,_0x3ed6ab:0x258,_0x4e926:0x233,_0x3d2140:0x31f,_0x2d6f43:0x2ff,_0x522f30:0x313,_0x15b074:0x268,_0x302120:0x317,_0x26af56:0x1ab,_0x5e2365:0x23a,_0x3df04f:0x211,_0x4a36b9:0x194,_0x1c4af1:0x123,_0x166e0f:0x148,_0x18b477:0x1f6,_0x462e4a:0x5cc,_0x5a1072:0x543,_0x50b5a:0x5b0},_0x7d2fd7={_0x575ca6:0x423,_0x21f81b:0x469,_0x4d2e42:0x419,_0xd58e28:0x44c,_0x2ef154:0xe,_0x2c6384:0x72,_0x468ff4:0x532,_0x35dcdd:0x100,_0xca7e02:0x109,_0x193348:0x567,_0xcd0067:0x91,_0x16d164:0x34,_0x5f49da:0x13c,_0x59f0c0:0x158,_0x45a081:0xee,_0x21ba12:0x109,_0x211674:0x383,_0x3ca608:0x3ef,_0x34aafc:0x4ca,_0xc305d:0x3fc,_0x4fff86:0x5bf,_0x1b75c8:0x497,_0x56e296:0x52e,_0xbd82dd:0xe,_0x262691:0x70,_0x332df5:0x529,_0x3b5a52:0x530,_0x50f075:0x568,_0x589140:0x505,_0x54d523:0x5a1,_0x1b45d1:0x420,_0x2b712a:0x469,_0x346fcb:0x502,_0x16b188:0x51e,_0x2f27af:0x173,_0x3ba7f4:0x1a9,_0x2e3d91:0x11f,_0x3afd88:0xdf,_0x398706:0xf6,_0x2b87:0x5df,_0x227bb6:0x477},_0x351e6a={_0x47b08d:0x9a,_0x1d7880:0x100},_0x3bd281={_0x11010d:0x1a7},_0x2b9f3b={_0x410bdb:0xab,_0x415f76:0x101},_0x39b5b0={_0x50d90d:0x669,_0x469217:0x12a,_0x426e01:0x190};function _0x6957fe(_0x2c58b1,_0x36991b,_0x420e15,_0x1e8127){return _0x12584b(_0x36991b- -_0x39b5b0._0x50d90d,_0x36991b-_0x39b5b0._0x469217,_0x420e15-_0x39b5b0._0x426e01,_0x420e15);}const _0x4b1511=_0x42922e[_0x41d2be(_0x1564c2._0x504d0a,0x5ed,0x4a9,0x4fa)](_0x3a76a6[_0x6957fe(-_0x1564c2._0x39aa04,-_0x1564c2._0x44d2a0,-_0x1564c2._0x388dd0,-0x12b)]??process['cwd']()),_0x3ffd80=(_0x3a76a6[_0x6957fe(-0x30c,-_0x1564c2._0x37c675,-0x20e,-_0x1564c2._0x37119f)]??[])[_0x41d2be(0x4dd,_0x1564c2._0x25f848,0x4e8,0x437)](_0x3e176a=>_0x42922e[_0x6957fe(-0x2a2,-0x1c2,-0x287,-0x2a1)](_0x3e176a));function _0x41d2be(_0x14f7c7,_0x5fdf50,_0xffb40b,_0x1b7d59){return _0x12584b(_0x14f7c7-_0x2b9f3b._0x410bdb,_0x5fdf50-_0x2b9f3b._0x415f76,_0xffb40b-0x1b5,_0xffb40b);}const _0x3dc2e3=_0x3a76a6[_0x41d2be(0x534,_0x1564c2._0x129dfb,_0x1564c2._0x97bd40,_0x1564c2._0xa8a7f2)]??'FileEdit';return defineTool({'name':_0x3dc2e3,'description':'Edit\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories\x20by\x20replacing\x20the\x20first\x20exact\x20text\x20segment.','inputSchema':{'type':_0x6957fe(-_0x1564c2._0x451119,-0x287,-_0x1564c2._0x31e478,-_0x1564c2._0x3fa2e2),'properties':{'filePath':{'type':_0x6957fe(-_0x1564c2._0x3ed6ab,-_0x1564c2._0x4e926,-_0x1564c2._0x3d2140,-0x18c)},'oldText':{'type':_0x6957fe(-_0x1564c2._0x2d6f43,-0x233,-_0x1564c2._0x522f30,-0x15f)},'newText':{'type':_0x6957fe(-0x1f0,-0x233,-_0x1564c2._0x15b074,-_0x1564c2._0x302120)},'dryRun':{'type':_0x6957fe(-0xd1,-0x166,-0xbf,-_0x1564c2._0x26af56)}},'required':[_0x6957fe(-_0x1564c2._0x5e2365,-_0x1564c2._0x3df04f,-_0x1564c2._0x4a36b9,-0x23d),_0x6957fe(-_0x1564c2._0x1c4af1,-0x10d,-_0x1564c2._0x166e0f,-_0x1564c2._0x18b477),_0x41d2be(_0x1564c2._0x462e4a,0x69c,_0x1564c2._0x5a1072,_0x1564c2._0x50b5a)]},async *'execute'(_0x28f5cc){const _0x444ff7=resolveAllowedPath(_0x4b1511,_0x3ffd80,_0x28f5cc[_0x58cca3(_0x7d2fd7._0x575ca6,_0x7d2fd7._0x21f81b,0x53b,0x4bf)]);await assertWorkspaceFile(_0x444ff7);const _0x5c1282=await _0x4f980d(_0x444ff7),_0x360ccb=await _0x57072e(_0x444ff7),_0x1adb74=detectEol(_0x360ccb),_0x702f2e=normalizeToLf(_0x360ccb[_0x58cca3(_0x7d2fd7._0x4d2e42,_0x7d2fd7._0xd58e28,0x3ea,0x3a4)](_0x56d95f(-0x11,-_0x7d2fd7._0x2ef154,-0xc,_0x7d2fd7._0x2c6384))),_0x1a8b4e=normalizeToLf(_0x28f5cc['oldText']);function _0x56d95f(_0x4e3a14,_0x466d2d,_0x1ff9b0,_0xf49917){return _0x6957fe(_0x4e3a14-0xd9,_0xf49917-_0x3bd281._0x11010d,_0x1ff9b0,_0xf49917-0x19d);}const _0x2f41c2=normalizeToLf(_0x28f5cc[_0x58cca3(0x54e,_0x7d2fd7._0x468ff4,0x4ed,0x61d)]),_0x166775=_0x702f2e[_0x56d95f(0x4f,-0xda,-0x75,-0x4e)](_0x1a8b4e);if(_0x166775===-0x1){const _0x4b96d5=_0x1a8b4e[_0x56d95f(-_0x7d2fd7._0x35dcdd,-0x3c,-0x84,-_0x7d2fd7._0xca7e02)](0x0,0x64)[_0x58cca3(0x4eb,_0x7d2fd7._0x193348,0x5b8,0x5e2)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x56d95f(0xc0,-0xb7,_0x7d2fd7._0xcd0067,_0x7d2fd7._0x16d164)+_0x4b96d5+(_0x1a8b4e[_0x56d95f(-0x9f,-_0x7d2fd7._0x5f49da,-_0x7d2fd7._0x59f0c0,-0xe4)]>0x64?'...':'')+'\x22',{'filePath':_0x28f5cc[_0x56d95f(0x6d,-0x138,-_0x7d2fd7._0x45a081,-0x6a)]});}const _0x220279=_0x702f2e[_0x56d95f(-0x83,-0x12f,-0x1ad,-_0x7d2fd7._0x21ba12)](0x0,_0x166775)+_0x2f41c2+_0x702f2e[_0x58cca3(0x337,0x3ca,0x33d,0x3ac)](_0x166775+_0x1a8b4e[_0x58cca3(_0x7d2fd7._0x211674,_0x7d2fd7._0x3ca608,0x49c,_0x7d2fd7._0x34aafc)]),_0x569fe2=convertEol(_0x220279,_0x1adb74);function _0x58cca3(_0x2b2cc8,_0x3bd49a,_0x4c2f07,_0x2aca05){return _0x41d2be(_0x3bd49a- -_0x351e6a._0x47b08d,_0x3bd49a-0x1cc,_0x2aca05,_0x2aca05-_0x351e6a._0x1d7880);}const _0xea3cb4=Buffer[_0x58cca3(0x479,0x4be,_0x7d2fd7._0xc305d,0x495)](_0x569fe2,_0x58cca3(_0x7d2fd7._0x4fff86,0x545,_0x7d2fd7._0x1b75c8,0x543)),_0x4cdd72=sha256(_0x360ccb),_0xdab7e9=sha256(_0xea3cb4),_0x3422e8=_0x4cdd72===_0xdab7e9,_0x3b5b4b=_0x28f5cc[_0x58cca3(0x53a,_0x7d2fd7._0x56e296,0x5ff,0x571)]??![];return!_0x3b5b4b&&!_0x3422e8&&await atomicWrite(_0x444ff7,_0xea3cb4),yield createToolOutput(_0x3422e8?_0x56d95f(-0x2d,0x60,_0x7d2fd7._0xbd82dd,_0x7d2fd7._0x262691):_0x3b5b4b?_0x58cca3(0x4fe,_0x7d2fd7._0x332df5,_0x7d2fd7._0x3b5a52,_0x7d2fd7._0x50f075):_0x58cca3(0x52f,_0x7d2fd7._0x589140,_0x7d2fd7._0x54d523,_0x7d2fd7._0x1b45d1),{'filePath':_0x28f5cc[_0x58cca3(0x38b,_0x7d2fd7._0x2b712a,_0x7d2fd7._0x346fcb,_0x7d2fd7._0x16b188)],'resolvedPath':_0x444ff7,'created':_0x5c1282[_0x56d95f(-_0x7d2fd7._0x2f27af,-_0x7d2fd7._0x3ba7f4,-_0x7d2fd7._0x2e3d91,-_0x7d2fd7._0x3afd88)][_0x56d95f(-_0x7d2fd7._0x398706,-0x2f,-0x1a,-0x98)](),'modified':_0x5c1282[_0x58cca3(0x47e,0x4e2,0x503,0x3fd)]['toISOString'](),'size':_0x5c1282[_0x58cca3(0x48a,0x508,_0x7d2fd7._0x2b87,_0x7d2fd7._0x227bb6)],'eol':_0x1adb74,'oldTextLength':_0x1a8b4e[_0x58cca3(0x474,0x3ef,0x3df,0x4c8)],'newTextLength':_0x2f41c2['length'],'bytesWritten':_0x3422e8||_0x3b5b4b?0x0:_0xea3cb4['length'],'beforeSha':_0x4cdd72,'afterSha':_0xdab7e9,'dryRun':_0x3b5b4b,'noChange':_0x3422e8,'lineNumbers':calculateLineNumbers(_0x702f2e,_0x1a8b4e,_0x2f41c2,_0x166775)}),void 0x0;}});}import{mkdir as _0x6947d4,rename as _0x5f2356,stat as _0x7c79e3,writeFile as _0x427f0b}from'fs/promises';import*as _0x471ae7 from'path';async function atomicWrite2(_0x2bb415,_0x54d0ca){const _0x137ba3={_0xfa38a:0x206,_0x5d231a:0x213,_0x4e83de:0x1b3,_0x886b9b:0x1e3,_0x41b55c:0x1d7,_0x275214:0x318,_0x3ec6c3:0x15c,_0x3cbfaa:0x1e9,_0x584a85:0x22d,_0x44b5ad:0x184,_0x5c3082:0x22e,_0x4e94f0:0x2f},_0x51832c={_0x1a9e01:0x14b},_0x15b6ac={_0x5a3f63:0x158,_0x1033d6:0x163,_0x3a96c1:0x218},_0x253d1d=_0x471ae7[_0x567811(0x2dc,_0x137ba3._0xfa38a,_0x137ba3._0x5d231a,0x2d7)](_0x2bb415);await _0x6947d4(_0x253d1d,{'recursive':!![]});function _0x567811(_0x32f5af,_0x37f1f0,_0xfc87d5,_0x23ceeb){return _0x46bf5b(_0x32f5af-_0x15b6ac._0x5a3f63,_0x32f5af,_0xfc87d5-_0x15b6ac._0x1033d6,_0xfc87d5- -_0x15b6ac._0x3a96c1);}const _0x2cd768=_0x471ae7[_0x5f1243(_0x137ba3._0x4e83de,_0x137ba3._0x886b9b,0x29d,_0x137ba3._0x41b55c)](_0x253d1d,_0x5f1243(_0x137ba3._0x275214,0x23b,_0x137ba3._0x3ec6c3,0x17e)+_0x471ae7[_0x5f1243(_0x137ba3._0x3cbfaa,0x1f2,0x277,_0x137ba3._0x584a85)](_0x2bb415)+'.'+Date[_0x5f1243(_0x137ba3._0x44b5ad,_0x137ba3._0x5c3082,0x151,0x1be)]()+'.'+Math['random']()['toString'](0x24)[_0x5f1243(0x9b,0xdf,0x7,_0x137ba3._0x4e94f0)](0x2));await _0x427f0b(_0x2cd768,_0x54d0ca);function _0x5f1243(_0x228bcc,_0x1d81dc,_0x354de9,_0xb18634){return _0x46bf5b(_0x228bcc-_0x51832c._0x1a9e01,_0x228bcc,_0x354de9-0x1cd,_0x1d81dc- -0x31d);}await _0x5f2356(_0x2cd768,_0x2bb415);}function createFileNewTool(_0x33fc68={}){const _0x8fd5d0={_0x234b63:0x354,_0xc1c4a:0x388,_0x151049:0x49b,_0x37d7db:0x563,_0x3457ee:0x5f0,_0x83230:0x32e,_0x61fca7:0x50d,_0xcd7e53:0x455,_0x28d097:0x530,_0x271f87:0x5ad,_0x123633:0x5a1,_0x467f58:0x584},_0x45da92={_0x119279:0x30,_0x1e409c:0x54,_0x19c0fa:0xdc,_0x57b91a:0xea,_0xaaefbd:0x56,_0x591ae2:0x37e,_0x42bb9d:0x2ca,_0x5c9d49:0x334,_0x9ee264:0x11,_0x2b1d28:0xfd,_0x267489:0x4a,_0x42eb84:0x1a8,_0xbe232d:0x1d9,_0x402530:0x1a,_0x30acdc:0xc,_0x23435a:0x225,_0x32ea80:0x230,_0x49f940:0x218,_0x81d95e:0x1bf,_0x3c1746:0x228,_0x566d7e:0x230,_0x3cad37:0x78,_0x190b9f:0x119,_0x3b6fbf:0x102,_0x3801b5:0x113,_0x54e165:0x48,_0x1f338d:0x2f,_0x2f248e:0x7b,_0x255287:0x10e,_0x108756:0x53},_0x2cf54c={_0x79495c:0xc4},_0x11950b={_0x4b8865:0x87,_0xb4d4e9:0x149},_0x180b2c=_0x471ae7['resolve'](_0x33fc68[_0x56c96d(_0x8fd5d0._0x234b63,0x380,0x2c0,0x325)]??process[_0x56c96d(0x2e4,0x35e,0x375,_0x8fd5d0._0xc1c4a)]()),_0x3bd75c=(_0x33fc68['allowedDirs']??[])[_0x2d39af(_0x8fd5d0._0x151049,_0x8fd5d0._0x37d7db,_0x8fd5d0._0x3457ee,0x51b)](_0xe66935=>_0x471ae7[_0x56c96d(0x2e5,0x39a,0x36c,0x222)](_0xe66935));function _0x2d39af(_0x3edd7a,_0x22d4dd,_0x5b8d13,_0x4cf4ac){return _0x12584b(_0x4cf4ac-0xe9,_0x22d4dd-_0x11950b._0x4b8865,_0x5b8d13-_0x11950b._0xb4d4e9,_0x22d4dd);}function _0x56c96d(_0x2b72cd,_0x36de75,_0x557204,_0x565be3){return _0x12584b(_0x2b72cd- -0x1c2,_0x36de75-0x1a9,_0x557204-_0x2cf54c._0x79495c,_0x557204);}const _0x49a689=_0x33fc68[_0x56c96d(0x2c7,_0x8fd5d0._0x83230,0x36e,0x32f)]??'FileNew';return defineTool({'name':_0x49a689,'description':_0x2d39af(0x50e,0x668,_0x8fd5d0._0x61fca7,0x5f9),'inputSchema':{'type':_0x2d39af(0x570,_0x8fd5d0._0xcd7e53,_0x8fd5d0._0x28d097,0x4cb),'properties':{'filePath':{'type':_0x2d39af(0x486,0x4ae,_0x8fd5d0._0x271f87,0x51f)},'content':{'type':_0x2d39af(_0x8fd5d0._0x123633,0x60a,_0x8fd5d0._0x467f58,0x51f)}},'required':['filePath',_0x2d39af(0x4c8,0x50d,0x5e6,0x598)]},async *'execute'(_0x17a8a8){const _0x10eb3d={_0xc82332:0x771},_0x482c24={_0x490c89:0xa2};function _0x2aa53b(_0x58a5cf,_0x44102f,_0x2e8399,_0x27f259){return _0x56c96d(_0x27f259- -0x335,_0x44102f-0xd3,_0x2e8399,_0x27f259-_0x482c24._0x490c89);}const _0x356768=resolveAllowedPath(_0x180b2c,_0x3bd75c,_0x17a8a8[_0x2aa53b(-0x84,-0x163,_0x45da92._0x119279,-0x9f)]);function _0x529c97(_0xfcc7ff,_0x5a55f9,_0x23b2df,_0x4d95bb){return _0x2d39af(_0xfcc7ff-0x19,_0xfcc7ff,_0x23b2df-0x17a,_0x23b2df- -_0x10eb3d._0xc82332);}const _0x524a6b=await _0x7c79e3(_0x356768)[_0x2aa53b(_0x45da92._0x1e409c,_0x45da92._0x19c0fa,_0x45da92._0x57b91a,_0x45da92._0xaaefbd)](()=>!![])[_0x529c97(-_0x45da92._0x591ae2,-0x30d,-_0x45da92._0x42bb9d,-_0x45da92._0x5c9d49)](()=>![]),_0x188f2e=Buffer[_0x2aa53b(-_0x45da92._0x9ee264,-0x9a,-_0x45da92._0x2b1d28,-_0x45da92._0x267489)](_0x17a8a8[_0x529c97(-0x243,-_0x45da92._0x42eb84,-_0x45da92._0xbe232d,-0xec)],_0x2aa53b(-_0x45da92._0x402530,-_0x45da92._0x30acdc,0x6c,0x3d));return await atomicWrite2(_0x356768,_0x188f2e),yield createToolOutput('File\x20written\x20at\x20'+_0x17a8a8[_0x529c97(-0x274,-_0x45da92._0x23435a,-_0x45da92._0x32ea80,-_0x45da92._0x49f940)]+'.',{'filePath':_0x17a8a8[_0x529c97(-_0x45da92._0x81d95e,-_0x45da92._0x3c1746,-_0x45da92._0x566d7e,-0x204)],'resolvedPath':_0x356768,'bytes':_0x188f2e[_0x2aa53b(-0x139,-0x14e,-_0x45da92._0x3cad37,-_0x45da92._0x190b9f)],'lines':_0x17a8a8[_0x2aa53b(-_0x45da92._0x3b6fbf,-_0x45da92._0x3801b5,-0x110,-_0x45da92._0x54e165)][_0x2aa53b(-0x20,_0x45da92._0x1f338d,_0x45da92._0x2f248e,-0x58)](/\r?\n/)[_0x2aa53b(-0x116,-_0x45da92._0x255287,-0x1cb,-0x119)],'created':new Date()[_0x2aa53b(-_0x45da92._0x108756,-0x63,-0x9e,-0xcd)](),'overwritten':_0x524a6b}),void 0x0;}});}import{readFile as _0x12bee0,stat as _0x48dfd5}from'fs/promises';import*as _0x5750d3 from'path';function stripUtfBom(_0x206b2a){const _0x55d23c={_0x1a9d34:0x41c,_0x1a5818:0x422},_0x52791e={_0x2e9452:0xd3,_0x76f3b6:0x11e};function _0x5bf6a2(_0x3b8783,_0x2eb248,_0x2d5239,_0x245626){return _0x12584b(_0x2eb248- -_0x52791e._0x2e9452,_0x2eb248-_0x52791e._0x76f3b6,_0x2d5239-0x86,_0x3b8783);}return _0x206b2a[_0x5bf6a2(_0x55d23c._0x1a9d34,0x33f,0x391,_0x55d23c._0x1a5818)](0x0)===0xfeff?_0x206b2a['slice'](0x1):_0x206b2a;}function clampLine(_0x48838c,_0x25fc21){const _0x3d784e={_0x5b8fe6:0x467,_0x458a3f:0x481,_0x34f97c:0x489,_0x393758:0x4f3,_0x466c35:0x58b,_0x8ce146:0x42a,_0x50ccbe:0x3ef},_0x20848c={_0x440c68:0x12d};if(!Number[_0x373e12(_0x3d784e._0x5b8fe6,_0x3d784e._0x458a3f,0x38f,_0x3d784e._0x34f97c)](_0x48838c))return 0x1;function _0x373e12(_0x269db4,_0x2c3131,_0x59e2ad,_0x200bd9){return _0x46bf5b(_0x269db4-0x12e,_0x59e2ad,_0x59e2ad-0x17c,_0x269db4- -0x2d);}function _0x18147d(_0x5b0440,_0x369dc2,_0x2735ff,_0x15ea6d){return _0x12584b(_0x369dc2-0x6,_0x369dc2-_0x20848c._0x440c68,_0x2735ff-0x73,_0x2735ff);}return Math[_0x373e12(0x576,_0x3d784e._0x393758,_0x3d784e._0x466c35,0x610)](0x1,Math['min'](Math[_0x373e12(0x3ec,_0x3d784e._0x8ce146,0x3cc,_0x3d784e._0x50ccbe)](_0x48838c),_0x25fc21));}function createFileReadTool(_0x2eda78={}){const _0x522954={_0x292ee4:0x5e4,_0x5b33df:0x56b,_0x5b5803:0x566,_0x5a3eae:0x1f6,_0x2d835c:0x1dd,_0x5aab2f:0x28a,_0x162d43:0x2ff,_0x4b3ce9:0x1d8,_0xbe604c:0x23d,_0x3ebbc4:0x257,_0x474bf6:0x242,_0x2c9ca6:0x458,_0x7cb55c:0x530,_0x324adc:0x48c,_0x22013d:0x457,_0x3098ae:0x473,_0x5c37ca:0x2d8,_0x35e899:0x225,_0x14b971:0x3c9,_0xe83c82:0x158,_0x4bde63:0x1db,_0xac9723:0x206},_0x1b6339={_0x2923ec:0x3d0,_0x15cfb2:0x413,_0x1c150e:0x38e,_0x5406b5:0x118,_0x4e965d:0x1c0,_0x487d1e:0x199,_0x15d43e:0x157,_0x57ae73:0x199,_0x39e375:0xcc,_0x5ec9a7:0x66,_0x28c88c:0x18,_0x2ee083:0x27,_0xdf1d06:0x7e,_0x4bc547:0x354,_0x488a99:0x28b,_0xfc29ec:0x232,_0x225559:0x1a1,_0x2f1ed6:0xf7,_0x51209f:0x199,_0x4df047:0x233,_0xf9e69b:0x29b,_0x26bc93:0x2a3,_0x2eb690:0x216,_0x208ee5:0x23c,_0x2315e9:0x2f1,_0x407c7b:0x122,_0x3cd73c:0xf9,_0x5a5bbd:0x39d,_0x246e17:0x412,_0x26d937:0x2dc,_0x4e9681:0x2ac,_0x1bcd0c:0x2d2,_0xfeba9e:0x2ad,_0x132a29:0x178,_0x14fb86:0x1ed,_0x41cc51:0x193,_0x369612:0x1b0,_0x93cb0:0x1eb,_0x4790dd:0x1fe,_0x3bc4b5:0xb8,_0x2c209f:0x29,_0x5d3ce6:0x13,_0x2b7841:0x266,_0x5e0d82:0x1c3,_0x1b0b74:0x29c,_0x915b1c:0x295,_0x44f0a4:0x29d,_0x54041c:0x198,_0x45b2f7:0x56,_0x28d5fb:0x438,_0x3579c5:0x3d3,_0x15573d:0x218,_0x370034:0x20f,_0x22f415:0x1d9,_0x728dcf:0x5d,_0x441ce2:0x2be,_0x23ea71:0x21e},_0x50e2e9={_0x124dcc:0xc4,_0x26d7b0:0x60,_0x59fcb0:0x1a0},_0x29586f={_0x5bb1bc:0x102};function _0x23c56f(_0x467705,_0x59d8d8,_0x45c2a6,_0x1e9e0a){return _0x12584b(_0x467705- -0x6c6,_0x59d8d8-_0x29586f._0x5bb1bc,_0x45c2a6-0x117,_0x1e9e0a);}function _0x5eccc0(_0x396cd1,_0x1a021d,_0xbbc63d,_0x42649b){return _0x12584b(_0x1a021d-_0x50e2e9._0x124dcc,_0x1a021d-_0x50e2e9._0x26d7b0,_0xbbc63d-_0x50e2e9._0x59fcb0,_0x396cd1);}const _0x3c82e4=_0x5750d3[_0x5eccc0(_0x522954._0x292ee4,_0x522954._0x5b33df,0x485,_0x522954._0x5b5803)](_0x2eda78['defaultCwd']??process[_0x23c56f(-0x220,-0x178,-_0x522954._0x5a3eae,-_0x522954._0x2d835c)]()),_0x88ae69=(_0x2eda78[_0x23c56f(-0x2df,-_0x522954._0x5aab2f,-0x2bd,-0x2b9)]??[])[_0x23c56f(-0x294,-0x35e,-_0x522954._0x162d43,-_0x522954._0x4b3ce9)](_0x14117a=>_0x5750d3[_0x5eccc0(0x622,0x56b,0x4b2,0x4e9)](_0x14117a)),_0x3757cd=_0x2eda78[_0x23c56f(-_0x522954._0xbe604c,-_0x522954._0x3ebbc4,-0x22f,-_0x522954._0x474bf6)]??'FileRead';return defineTool({'name':_0x3757cd,'description':_0x5eccc0(_0x522954._0x2c9ca6,_0x522954._0x7cb55c,0x5d4,_0x522954._0x324adc),'inputSchema':{'type':_0x5eccc0(_0x522954._0x22013d,0x4a6,0x42c,_0x522954._0x3098ae),'properties':{'path':{'type':_0x23c56f(-0x290,-0x1a3,-0x1cc,-0x27b)},'lineStart':{'type':_0x23c56f(-_0x522954._0x5c37ca,-_0x522954._0x35e899,-0x1eb,-0x38c)},'lineEnd':{'type':_0x5eccc0(_0x522954._0x14b971,0x4b2,0x4ea,0x51c)}},'required':[_0x23c56f(-_0x522954._0xe83c82,-_0x522954._0x4bde63,-_0x522954._0xac9723,-0x1ad)]},async *'execute'(_0x5696e5){const _0x21ed6c={_0x3a1d42:0x59},_0x2be32d=resolveAllowedPath(_0x3c82e4,_0x88ae69,_0x5696e5[_0x53e251(_0x1b6339._0x2923ec,0x3cc,_0x1b6339._0x15cfb2,_0x1b6339._0x1c150e)]);await assertWorkspaceFile(_0x2be32d);const _0x8141b9=await _0x48dfd5(_0x2be32d),_0xaa944b=await _0x12bee0(_0x2be32d);function _0x282008(_0x53da11,_0x4923e2,_0x59bdae,_0xec2272){return _0x23c56f(_0x53da11-0x2f1,_0x4923e2-0x114,_0x59bdae-0xda,_0x4923e2);}if(isProbablyBinary(_0xaa944b))throw new ToolExecutionError(_0x282008(_0x1b6339._0x5406b5,0x9b,_0x1b6339._0x4e965d,0x86)+_0x5696e5[_0x282008(_0x1b6339._0x487d1e,0xfc,0x237,_0x1b6339._0x15d43e)],{'path':_0x5696e5[_0x282008(_0x1b6339._0x57ae73,0x16e,_0x1b6339._0x39e375,0x20a)]});function _0x53e251(_0x238dcd,_0x1295d9,_0x18746e,_0xc0883a){return _0x5eccc0(_0x238dcd,_0xc0883a- -0x2a4,_0x18746e-0x71,_0xc0883a-_0x21ed6c._0x3a1d42);}let _0x3e5034=_0xaa944b[_0x282008(_0x1b6339._0x5ec9a7,_0x1b6339._0x28c88c,-_0x1b6339._0x2ee083,-_0x1b6339._0xdf1d06)](_0x53e251(0x3c5,0x373,0x323,_0x1b6339._0x4bc547));const _0x2843df=_0x3e5034[_0x53e251(0x1e0,0x2c3,_0x1b6339._0x488a99,_0x1b6339._0xfc29ec)](0x0)===0xfeff;_0x3e5034=stripUtfBom(_0x3e5034);const _0x2ee39e=_0x3e5034[_0x282008(0xca,_0x1b6339._0x225559,_0x1b6339._0x2f1ed6,0xac)](/\r?\n/),_0x1d0b7f={'path':_0x5696e5[_0x282008(_0x1b6339._0x51209f,0x21f,_0x1b6339._0x4df047,0x255)],'resolvedPath':_0x2be32d,'created':_0x8141b9['birthtime'][_0x53e251(0x2df,_0x1b6339._0xf9e69b,_0x1b6339._0x26bc93,0x24a)](),'modified':_0x8141b9[_0x53e251(_0x1b6339._0x2eb690,0x27e,_0x1b6339._0x208ee5,_0x1b6339._0x2315e9)]['toISOString'](),'size':_0x8141b9[_0x282008(_0x1b6339._0x407c7b,0x124,_0x1b6339._0x3cd73c,0x67)],'encoding':_0x53e251(_0x1b6339._0x5a5bbd,_0x1b6339._0x246e17,_0x1b6339._0x26d937,0x354),'bomStripped':_0x2843df,'truncated':![],'totalLines':_0x2ee39e[_0x53e251(0x125,_0x1b6339._0x4e9681,0x1a4,0x1fe)]};if(_0x5696e5[_0x53e251(0x258,_0x1b6339._0x1bcd0c,0x286,0x1fa)]!==void 0x0||_0x5696e5[_0x53e251(0x282,0x1c7,0x2e5,_0x1b6339._0xfeba9e)]!==void 0x0){const _0xfe6e09=clampLine(_0x5696e5[_0x53e251(0x126,_0x1b6339._0x132a29,_0x1b6339._0x14fb86,0x1fa)]??0x1,_0x2ee39e[_0x53e251(_0x1b6339._0x41cc51,_0x1b6339._0x369612,_0x1b6339._0x93cb0,_0x1b6339._0x4790dd)]),_0x3a4bc4=clampLine(_0x5696e5[_0x282008(_0x1b6339._0x3bc4b5,-_0x1b6339._0x2c209f,-_0x1b6339._0x5d3ce6,0x43)]??_0x2ee39e[_0x53e251(_0x1b6339._0x2b7841,0x168,_0x1b6339._0x5e0d82,0x1fe)],_0x2ee39e[_0x53e251(_0x1b6339._0x1b0b74,_0x1b6339._0x915b1c,_0x1b6339._0x44f0a4,0x1fe)]),_0x4d8577=Math[_0x282008(0x115,0x8e,_0x1b6339._0x54041c,_0x1b6339._0x45b2f7)](_0xfe6e09,_0x3a4bc4),_0x448cc1=Math[_0x53e251(_0x1b6339._0x28d5fb,_0x1b6339._0x3579c5,0x3ad,0x380)](_0xfe6e09,_0x3a4bc4),_0x28c147=_0x2ee39e[_0x53e251(_0x1b6339._0x15573d,0x254,_0x1b6339._0x370034,_0x1b6339._0x22f415)](_0x4d8577-0x1,_0x448cc1)[_0x282008(0x5d,0x6e,_0x1b6339._0x728dcf,0x51)]((_0x2edc2e,_0xdd3f02)=>_0x4d8577+_0xdd3f02+'|'+_0x2edc2e)['join']('\x0a');return yield createToolOutput(_0x28c147,{..._0x1d0b7f,'lineRange':{'lineStart':_0x4d8577,'lineEnd':_0x448cc1,'linesTotal':_0x2ee39e[_0x53e251(_0x1b6339._0x441ce2,_0x1b6339._0x23ea71,0x169,0x1fe)]}}),void 0x0;}return yield createToolOutput(_0x3e5034,_0x1d0b7f),void 0x0;}});}import{stat as _0x527288}from'fs/promises';import*as _0x64c88e from'path';import{execSync,spawn as _0x4be4ce}from'child_process';import{existsSync}from'fs';import{stat as _0x4d0f0e}from'fs/promises';import*as _0x42d756 from'os';import*as _0x55c93b from'path';import{rgPath as _0x4fab4a}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x1d2741={_0x2f75fb:0xb6,_0x30c90f:0x95,_0x1be3e8:0x126,_0x1c8331:0x12f,_0x251a3c:0x18e,_0x4b74a2:0x8d,_0x44464d:0x90,_0x153726:0xe7,_0xade63b:0x1d0,_0x28804b:0x65,_0x3172b4:0x10a,_0x50fbc5:0x66,_0x35a818:0x1aa,_0x18fce5:0x1ef,_0x5425e6:0x17a,_0x34e53c:0x316,_0x48c4c8:0x216,_0x45b7c0:0x121,_0x124f4c:0x10e,_0x11f29f:0xdd,_0x1d322a:0x140,_0x25a8b9:0x17f,_0x15d214:0x125,_0x24f889:0x188,_0x3b1cb9:0x28b,_0x233cb7:0xc9,_0x56d7dc:0x19c,_0x47eca3:0x1b5,_0x4725d2:0x175,_0x5b26a2:0x168,_0x33180b:0x10c,_0x57bd9a:0xaf,_0x3d762c:0x14b,_0x59ea62:0x1ea,_0x590a1d:0x127,_0x32cce0:0x18c,_0x492d58:0x1c4,_0xa2506b:0x232,_0x1e3f54:0xae,_0x430ab8:0xfb,_0x600476:0x78,_0x3a57c5:0x1dd,_0x36782e:0x24b,_0x37d65b:0xfa,_0x261a7f:0x3c},_0x441b35={_0xf9bce3:0x15b},_0x4ab076={_0x14e315:0x1cc,_0x594f14:0x378},_0x2324bb=_0x42d756['platform']()===_0x2bb2fa(0x93,_0x1d2741._0x2f75fb,_0x1d2741._0x30c90f,0x107),_0x3fe5f8=_0x2324bb?[_0x55c93b[_0x2bb2fa(0x118,_0x1d2741._0x1be3e8,_0x1d2741._0x1c8331,0x1df)](process[_0x329df8(0xfb,_0x1d2741._0x251a3c,0x185,0x1a6)][_0x2bb2fa(0x86,0x14a,_0x1d2741._0x4b74a2,_0x1d2741._0x44464d)]||'','Microsoft',_0x2bb2fa(_0x1d2741._0x153726,_0x1d2741._0xade63b,0x7b,_0x1d2741._0x28804b),_0x2bb2fa(0xb4,_0x1d2741._0x3172b4,_0x1d2741._0x50fbc5,0x85)),_0x55c93b[_0x2bb2fa(0x118,0x12d,0x1db,_0x1d2741._0x35a818)](process[_0x329df8(_0x1d2741._0x18fce5,0x219,0x13d,0x1a6)][_0x329df8(_0x1d2741._0x5425e6,_0x1d2741._0x34e53c,_0x1d2741._0x48c4c8,0x230)]||'',_0x2bb2fa(0x168,_0x1d2741._0x45b7c0,_0x1d2741._0x124f4c,_0x1d2741._0x11f29f),_0x2bb2fa(_0x1d2741._0x1d322a,_0x1d2741._0x25a8b9,0x17c,0x211)),_0x55c93b[_0x329df8(_0x1d2741._0x15d214,0x15c,0x253,_0x1d2741._0x24f889)](process[_0x329df8(_0x1d2741._0x3b1cb9,_0x1d2741._0x233cb7,0xd9,0x1a6)][_0x2bb2fa(0x1b5,_0x1d2741._0x56d7dc,_0x1d2741._0x47eca3,_0x1d2741._0x4725d2)]||'',_0x2bb2fa(_0x1d2741._0x5b26a2,0x13d,0xe1,0x1a2),_0x2bb2fa(0x140,0xd7,_0x1d2741._0x33180b,_0x1d2741._0x57bd9a))]:['/opt/homebrew/bin/rg',_0x329df8(0x1dd,_0x1d2741._0x3d762c,0xd6,0x1b4),'/usr/bin/rg',_0x2bb2fa(_0x1d2741._0x59ea62,0x292,0x155,_0x1d2741._0x590a1d)];for(const _0x2c6161 of _0x3fe5f8){if(existsSync(_0x2c6161))return _0x2c6161;}function _0x329df8(_0x3167cd,_0x2d202f,_0x23a297,_0x2fcb65){return _0x46bf5b(_0x3167cd-_0x4ab076._0x14e315,_0x2d202f,_0x23a297-0xe6,_0x2fcb65- -_0x4ab076._0x594f14);}try{const _0x30f6fd=_0x2324bb?'where\x20rg':_0x329df8(_0x1d2741._0x32cce0,0x1cb,_0x1d2741._0x492d58,_0x1d2741._0xa2506b),_0x71e0ba=execSync(_0x30f6fd,{'encoding':_0x2bb2fa(0x18f,_0x1d2741._0x1e3f54,_0x1d2741._0x430ab8,0xee),'stdio':[_0x2bb2fa(0xbe,_0x1d2741._0x600476,0xd5,0x9e),'pipe','ignore']})[_0x329df8(_0x1d2741._0x3a57c5,_0x1d2741._0x36782e,0x252,0x258)]()[_0x2bb2fa(_0x1d2741._0x37d65b,0x15a,0x96,_0x1d2741._0x261a7f)](/\r?\n/)[0x0];if(_0x71e0ba&&existsSync(_0x71e0ba))return _0x71e0ba;}catch{return null;}function _0x2bb2fa(_0x1b048a,_0x3078d7,_0x5a90b0,_0x44508d){return _0x46bf5b(_0x1b048a-_0x441b35._0xf9bce3,_0x44508d,_0x5a90b0-0x1ce,_0x1b048a- -0x3e8);}return null;}async function filepath(){const _0x21b0ed={_0x120de9:0x1ae,_0x3e22b7:0x12c,_0x1ec9c6:0x1f9},_0x31cf4b={_0x3f55a1:0x274,_0x4927e5:0x1f3};function _0x4785ff(_0x409426,_0x17f6ac,_0x4d73b9,_0x59be74){return _0x12584b(_0x59be74- -_0x31cf4b._0x3f55a1,_0x17f6ac-_0x31cf4b._0x4927e5,_0x4d73b9-0x1a6,_0x4d73b9);}if(cachedRgPath)return cachedRgPath;if(_0x4fab4a&&existsSync(_0x4fab4a))return cachedRgPath=_0x4fab4a,_0x4fab4a;const _0xf5f824=findSystemRipgrep();if(!_0xf5f824)throw new Error(_0x4785ff(0x2d3,_0x21b0ed._0x120de9,_0x21b0ed._0x3e22b7,_0x21b0ed._0x1ec9c6));return cachedRgPath=_0xf5f824,_0xf5f824;}async function*files(_0x31799a){const _0x444858={_0x466326:0x125,_0x3411b1:0x2bd,_0x5c8565:0x1d,_0x21726d:0x134,_0xfd5b73:0x9c,_0x35dc28:0xd3,_0x475e79:0x1d1,_0x1c2f86:0x1c7,_0x3b13f1:0x75,_0x1beb17:0x19e,_0x5607c8:0x7f,_0x19c6b7:0x2b,_0x243348:0x2a,_0x544a41:0xd,_0x1a62f7:0x22,_0x211f72:0x50,_0x9b8ea0:0xbd,_0x2aef1e:0x56,_0x614857:0x162,_0x5d1020:0x78,_0x14ccad:0xbf,_0x47e101:0x9e,_0x1bc6c9:0xae,_0x2391e4:0xe5,_0x2ebc59:0xe8,_0x579c3f:0x217,_0x129409:0x297,_0x4a4ed9:0x9e,_0x4bfa72:0x54,_0x4a1e0b:0x3c,_0x55c55a:0x1b4,_0x1ea64c:0xf9,_0x158c0f:0x144,_0x5c80d4:0xda},_0x4b097a={_0x19d17d:0x103},_0x528600={_0xa586d1:0x4b3,_0x1867c1:0x1c2,_0x43da6a:0x1},_0x4b6675=await filepath(),_0x6a78b=await _0x4d0f0e(_0x31799a[_0x3bd0e4(-0x1fa,-0x172,-0x16f,-_0x444858._0x466326)])['catch'](()=>null);if(!_0x6a78b?.['isDirectory']())throw Object[_0x3bd0e4(-_0x444858._0x3411b1,-0x282,-0x205,-_0x444858._0x466326)](new Error(_0x599c84(0x4a,-0xe1,-0x54,_0x444858._0x5c8565)+_0x31799a['cwd']+'\x27'),{'code':'ENOENT'});function _0x599c84(_0x3edac1,_0xf6fd30,_0x349a96,_0x49a032){return _0x12584b(_0x349a96- -_0x528600._0xa586d1,_0xf6fd30-_0x528600._0x1867c1,_0x349a96-_0x528600._0x43da6a,_0x49a032);}const _0x1cd2bb=[_0x3bd0e4(-_0x444858._0x21726d,-_0x444858._0xfd5b73,-_0x444858._0x35dc28,-0x113),_0x3bd0e4(-0x1e7,-_0x444858._0x475e79,-0x173,-_0x444858._0x1c2f86),_0x3bd0e4(-0xcd,-0x1d6,-0xec,-0x16c),'--glob=!.git/*'];function _0x3bd0e4(_0x34810d,_0x943d07,_0x2fc144,_0xaa24){return _0x12584b(_0x2fc144- -0x615,_0x943d07-0xd0,_0x2fc144-_0x4b097a._0x19d17d,_0xaa24);}for(const _0x9f3e5a of _0x31799a[_0x599c84(0xd2,0x123,0x92,_0x444858._0x3b13f1)]??[]){_0x1cd2bb[_0x3bd0e4(-_0x444858._0x1beb17,-0x26d,-0x1c7,-0xff)](_0x599c84(0x32,-_0x444858._0x5607c8,-_0x444858._0x19c6b7,_0x444858._0x243348)+_0x9f3e5a);}const _0x2179f7=_0x4be4ce(_0x4b6675,_0x1cd2bb,{'cwd':_0x31799a[_0x599c84(-0xa5,-0xeb,-_0x444858._0x544a41,-0x8e)],'stdio':[_0x3bd0e4(-_0x444858._0x1a62f7,-0x8b,-0xcb,-0x8f),_0x599c84(-0xb1,0x2d,-_0x444858._0x211f72,-_0x444858._0x9b8ea0),'pipe']});let _0x4f0980='';for await(const _0x5b1e97 of _0x2179f7[_0x599c84(-_0x444858._0x2aef1e,0x17,-0x9d,-0x115)]??[]){_0x4f0980+=_0x5b1e97[_0x599c84(-0x164,-_0x444858._0x614857,-_0x444858._0x5d1020,-_0x444858._0x14ccad)]();const _0x2a2121=_0x4f0980[_0x599c84(-0x70,-0x3d,-0x14,_0x444858._0x47e101)](/\r?\n/);_0x4f0980=_0x2a2121[_0x599c84(_0x444858._0x1bc6c9,_0x444858._0x2391e4,0x5b,_0x444858._0x2ebc59)]()??'';for(const _0xaaf937 of _0x2a2121){if(_0xaaf937[_0x3bd0e4(-_0x444858._0x579c3f,-0x2c6,-0x237,-_0x444858._0x129409)]>0x0)yield _0xaaf937;}}_0x4f0980[_0x599c84(_0x444858._0x4a4ed9,_0x444858._0x4bfa72,0xda,_0x444858._0x4a1e0b)]()[_0x3bd0e4(-0x273,-0x21a,-0x237,-_0x444858._0x55c55a)]>0x0&&(yield _0x4f0980[_0x599c84(_0x444858._0x1ea64c,_0x444858._0x158c0f,_0x444858._0x5c80d4,0x5)]());}function parseMatchLine(_0x5cb837,_0x4a5f0d){const _0x3bda86={_0x59dcf3:0x245,_0x1b04c1:0x2e5,_0xf1696a:0x1b1,_0x4268d4:0x1f9,_0x5afe6e:0x1f4,_0x1b40ff:0x13f,_0x68dc24:0x1be,_0x573712:0xd1,_0x3317f3:0x10f,_0x5a3483:0xee,_0x14561b:0x16b,_0x21c65c:0xd6,_0x4ca306:0x2c8,_0x40bc13:0x226,_0x31eb2a:0x1f7,_0x4afb55:0x146},_0x3a6b4d={_0x547191:0x380},_0x534ca5={_0x52f4b8:0x2b6};if(!_0x5cb837||_0x5cb837==='--')return null;const _0xdded7b=_0x5cb837[_0x3869ae(_0x3bda86._0x59dcf3,0x22c,_0x3bda86._0x1b04c1,0x168)]('|');if(_0x4a5f0d&&_0xdded7b[_0x3869ae(_0x3bda86._0xf1696a,0x16b,0xf9,_0x3bda86._0x4268d4)]>=0x4&&Number['isFinite'](Number['parseInt'](_0xdded7b[0x2]??'',0xa))){const _0x1fb7bd=Number[_0x30ca83(_0x3bda86._0x5afe6e,_0x3bda86._0x1b40ff,_0x3bda86._0x68dc24,0xdd)](_0xdded7b[0x1]??'',0xa);if(!Number[_0x30ca83(0x167,0x33,_0x3bda86._0x573712,_0x3bda86._0x3317f3)](_0x1fb7bd)||!_0xdded7b[0x0])return null;return{'filePath':_0xdded7b[0x0],'lineNum':_0x1fb7bd,'lineText':_0xdded7b['slice'](0x3)['join']('|')};}if(_0xdded7b[_0x3869ae(_0x3bda86._0x5a3483,_0x3bda86._0x14561b,0x82,_0x3bda86._0x21c65c)]>=0x3){const _0x3b088b=Number[_0x3869ae(_0x3bda86._0x4ca306,0x2cb,0x2bb,_0x3bda86._0x40bc13)](_0xdded7b[0x1]??'',0xa);if(!Number['isFinite'](_0x3b088b)||!_0xdded7b[0x0])return null;return{'filePath':_0xdded7b[0x0],'lineNum':_0x3b088b,'lineText':_0xdded7b[_0x3869ae(_0x3bda86._0x31eb2a,_0x3bda86._0x4afb55,0x169,0x11c)](0x2)['join']('|'),..._0x4a5f0d?{'isContext':!![]}:{}};}function _0x3869ae(_0x11a292,_0x4e15fc,_0x15e386,_0x2a329f){return _0x46bf5b(_0x11a292-0x1a8,_0x11a292,_0x15e386-0xcb,_0x4e15fc- -_0x534ca5._0x52f4b8);}function _0x30ca83(_0xdf6d93,_0xd896ab,_0x1cd23a,_0x1845f1){return _0x12584b(_0x1cd23a- -_0x3a6b4d._0x547191,_0xd896ab-0x12c,_0x1cd23a-0x16b,_0x1845f1);}return null;}async function search(_0x53c14e){const _0x3e8fd6={_0x32f76f:0x40c,_0x2b0a99:0x3ee,_0x26a243:0x37b,_0x4d9177:0x3cc,_0x29e18f:0x45f,_0x2bb108:0x4c5,_0x3a3dc8:0x3ee,_0x3eb044:0x48c,_0x955b15:0x3a8,_0x4e6fec:0x3ca,_0x62359d:0x28b,_0x56c7b2:0x2b4,_0x5d48be:0x329,_0x26fc7a:0x2f3,_0x23c2a5:0x442,_0x35e065:0x93,_0x5a9208:0x8c,_0x379c8b:0x498,_0x5dff53:0x411,_0x322d1c:0x63,_0xb8f54:0x35,_0x28031a:0x33,_0x3f1b18:0x397,_0x288058:0x439,_0x1ce273:0x460,_0x479922:0x16b,_0x471efe:0x164,_0x2966dd:0x439,_0x741f91:0x42b,_0x1c5ffd:0x3b9,_0x4e891e:0x3e7,_0x4b5b87:0x485,_0x9cae3c:0x40c,_0x165c14:0x6f,_0x212a64:0x4,_0x203919:0x86,_0x113144:0xdc,_0x3353cd:0xa4,_0x3118a9:0x47,_0x17fd46:0x463,_0x45cc97:0x511,_0x1c1d40:0x3aa,_0x2f2e05:0x3b9,_0x3bf894:0x32d,_0x169047:0x5a,_0x2e73c9:0xf5},_0x362969={_0x53da71:0x35a,_0x2f6b6d:0x363,_0x1040c5:0x420,_0x2eef3c:0x372,_0x4d5718:0x245,_0x369aca:0x3d9,_0x56de98:0x3bd,_0x346f34:0x48d,_0x4b84f2:0x269,_0x580f78:0x1dc},_0x19af67={_0x16cbf9:0xd8},_0x43e322={_0x175bbe:0x1cb,_0x11ad59:0x535};function _0x4c73f4(_0x3bbc6a,_0x2bd3b7,_0x1915ca,_0x5aeb99){return _0x46bf5b(_0x3bbc6a-_0x43e322._0x175bbe,_0x5aeb99,_0x1915ca-0x2d,_0x1915ca- -_0x43e322._0x11ad59);}const _0x212edb=await filepath();if(_0x53c14e[_0x17d84f(0x3ba,0x3ee,0x42b,_0x3e8fd6._0x32f76f)]){const _0xfc3d63=await _0x4d0f0e(_0x53c14e[_0x17d84f(0x4aa,_0x3e8fd6._0x2b0a99,0x382,0x465)])['catch'](()=>null);if(!_0xfc3d63?.['isFile']())throw Object[_0x17d84f(0x2e7,_0x3e8fd6._0x26a243,_0x3e8fd6._0x4d9177,_0x3e8fd6._0x29e18f)](new Error('No\x20such\x20file:\x20\x27'+_0x53c14e[_0x17d84f(_0x3e8fd6._0x2bb108,_0x3e8fd6._0x3a3dc8,_0x3e8fd6._0x3eb044,_0x3e8fd6._0x955b15)]+'\x27'),{'code':_0x17d84f(_0x3e8fd6._0x4e6fec,0x325,_0x3e8fd6._0x62359d,_0x3e8fd6._0x56c7b2)});}else{const _0x13af78=await _0x4d0f0e(_0x53c14e['cwd'])[_0x17d84f(0x2f9,_0x3e8fd6._0x5d48be,0x3da,0x325)](()=>null);if(!_0x13af78?.['isDirectory']())throw Object[_0x17d84f(_0x3e8fd6._0x26fc7a,0x37b,0x357,_0x3e8fd6._0x23c2a5)](new Error(_0x4c73f4(0x33,-0xc5,-_0x3e8fd6._0x35e065,-_0x3e8fd6._0x5a9208)+_0x53c14e[_0x17d84f(_0x3e8fd6._0x379c8b,_0x3e8fd6._0x5dff53,0x4ec,0x485)]+'\x27'),{'code':'ENOENT'});}function _0x17d84f(_0x171b02,_0x5bd9db,_0x51bb74,_0xb1ca7a){return _0x46bf5b(_0x171b02-0x5b,_0x171b02,_0x51bb74-0x147,_0x5bd9db- -_0x19af67._0x16cbf9);}const _0x1a1db5=['-nH',_0x4c73f4(-_0x3e8fd6._0x322d1c,_0x3e8fd6._0xb8f54,-_0x3e8fd6._0x28031a,-0x6f),'--field-context-separator=|',_0x17d84f(_0x3e8fd6._0x3f1b18,_0x3e8fd6._0x288058,0x392,_0x3e8fd6._0x1ce273),_0x53c14e[_0x4c73f4(-0x8,-_0x3e8fd6._0x479922,-0x9d,-0xf7)]],_0x1d6f7a=typeof _0x53c14e[_0x4c73f4(-0x81,-0x165,-0xb5,-_0x3e8fd6._0x471efe)]==='number'&&_0x53c14e[_0x17d84f(0x36e,_0x3e8fd6._0x955b15,0x301,_0x3e8fd6._0x2966dd)]>0x0;return _0x1d6f7a&&_0x1a1db5[_0x17d84f(_0x3e8fd6._0x741f91,_0x3e8fd6._0x1c5ffd,_0x3e8fd6._0x4e891e,0x359)]('-C',String(_0x53c14e[_0x17d84f(0x361,0x3a8,_0x3e8fd6._0x4b5b87,_0x3e8fd6._0x9cae3c)]),_0x4c73f4(-0x7f,-0x96,0x3e,0x4a)),_0x53c14e['glob']&&!_0x53c14e[_0x4c73f4(-0x60,-0xf2,-_0x3e8fd6._0x165c14,_0x3e8fd6._0x212a64)]&&_0x1a1db5[_0x4c73f4(-_0x3e8fd6._0x203919,-_0x3e8fd6._0x113144,-_0x3e8fd6._0x3353cd,_0x3e8fd6._0x3118a9)](_0x17d84f(0x492,_0x3e8fd6._0x17fd46,_0x3e8fd6._0x45cc97,_0x3e8fd6._0x1c1d40),_0x53c14e['glob']),_0x1a1db5[_0x17d84f(0x467,_0x3e8fd6._0x2f2e05,0x419,_0x3e8fd6._0x3bf894)](_0x53c14e[_0x4c73f4(-_0x3e8fd6._0x169047,-_0x3e8fd6._0x2e73c9,-0x6f,-0xca)]??_0x53c14e[_0x17d84f(0x336,_0x3e8fd6._0x5dff53,0x360,0x3ef)]),await new Promise((_0x366417,_0x50ab56)=>{const _0x17353d={_0x17bd94:0x17f,_0x3f340f:0x1aa,_0x2d4e86:0x169,_0xfb9bb5:0x31a,_0x2a911f:0x311,_0x24ac2f:0x1bf,_0x234f6b:0x2b9,_0x5e28d8:0x2ca,_0x4dc272:0x1b6},_0x2f740d={_0x2fa991:0x19,_0x4ff80:0x2ac},_0x64c050={_0x395e53:0x446,_0xe0f7b8:0x96},_0x2ea222={_0x2d7b54:0x1cc,_0xe63525:0x107},_0x2fea7f={_0x164c98:0x2e1},_0x1a73a1=_0x4be4ce(_0x212edb,_0x1a1db5,{'cwd':_0x53c14e['cwd'],'stdio':['ignore',_0x17c61d(_0x362969._0x53da71,_0x362969._0x2f6b6d,0x406,_0x362969._0x1040c5),_0xb08bc4(0x28e,0x2c2,0x252,0x22a)]});let _0x3889ab='',_0x5b35ed='';_0x1a73a1[_0x17c61d(_0x362969._0x2eef3c,0x316,0x3bd,_0x362969._0x4d5718)]?.['on']('data',_0x4a42d6=>{_0x3889ab+=_0x4a42d6['toString']();});function _0xb08bc4(_0x541258,_0x2ef1fe,_0x6042ce,_0x4d482d){return _0x4c73f4(_0x541258-0x146,_0x2ef1fe-0xc5,_0x6042ce-_0x2fea7f._0x164c98,_0x2ef1fe);}function _0x17c61d(_0xca63e4,_0x276cfe,_0x5bbe6f,_0x2771a0){return _0x4c73f4(_0xca63e4-_0x2ea222._0x2d7b54,_0x276cfe-_0x2ea222._0xe63525,_0x276cfe-0x3f2,_0x5bbe6f);}_0x1a73a1['stderr']?.['on'](_0x17c61d(_0x362969._0x369aca,0x3ca,_0x362969._0x56de98,_0x362969._0x346f34),_0x5b03b3=>{_0x5b35ed+=_0x5b03b3['toString']();}),_0x1a73a1['on']('close',_0x797fb0=>{if(_0x797fb0===0x1&&_0x3889ab===''){_0x366417([]);return;}function _0x1810b5(_0x46f9aa,_0x1b9030,_0x352df5,_0x39992b){return _0xb08bc4(_0x46f9aa-0x139,_0x352df5,_0x39992b- -_0x64c050._0x395e53,_0x39992b-_0x64c050._0xe0f7b8);}function _0xb2e1b1(_0x2cf38b,_0x480dfc,_0x1357eb,_0x425dec){return _0x17c61d(_0x2cf38b-_0x2f740d._0x2fa991,_0x1357eb- -_0x2f740d._0x4ff80,_0x480dfc,_0x425dec-0x5d);}if(_0x797fb0!==0x0&&_0x797fb0!==0x1){_0x50ab56(new Error('ripgrep\x20failed:\x20'+_0x5b35ed));return;}const _0x185297=_0x53c14e['limit']??0x64,_0x50e881=[];for(const _0x370ab8 of _0x3889ab[_0x1810b5(-_0x17353d._0x17bd94,-_0x17353d._0x3f340f,-_0x17353d._0x2d4e86,-0x1b8)](/\r?\n/)){if(_0x50e881[_0x1810b5(-_0x17353d._0xfb9bb5,-_0x17353d._0x2a911f,-_0x17353d._0x24ac2f,-0x279)]>=_0x185297)break;const _0xe7e72f=parseMatchLine(_0x370ab8,_0x1d6f7a);if(_0xe7e72f)_0x50e881[_0x1810b5(-_0x17353d._0x234f6b,-_0x17353d._0x5e28d8,-_0x17353d._0x4dc272,-0x209)](_0xe7e72f);}_0x366417(_0x50e881);}),_0x1a73a1['on'](_0xb08bc4(0x2a4,_0x362969._0x4b84f2,_0x362969._0x580f78,0x209),_0x50ab56);});}function createGlobTool(_0x5472d5={}){const _0x2bcca3={_0x44d0db:0x3d1,_0x1d3150:0x496,_0x3e0ff4:0x52d,_0x4383f1:0x428,_0x432117:0x3ff,_0x184ea4:0x367,_0x9d47e1:0x448,_0x19fae9:0x30b,_0x460f8e:0x58c,_0x37d5f0:0x4aa,_0x13e1a1:0x3c1,_0x3877cc:0x409,_0x4d2cdc:0x497,_0xa0b0a9:0x54e,_0x2bdd63:0x509,_0x56217c:0x3c6,_0x3e6e71:0x501,_0x1cd349:0x438,_0x11c9fc:0x4e5,_0x1f3740:0x3a2,_0x18a9e1:0x36e,_0x46e602:0x4ab},_0x465438={_0x40ff1d:0x109,_0x4c5846:0x81,_0x573d66:0x17a,_0x5369c6:0x1ae,_0x5922a6:0x1e6,_0x4614ce:0xe8,_0x5e560d:0x1,_0x2a9ddf:0x95,_0x50ccbf:0xf,_0x44e855:0x108,_0x49d02d:0x56,_0x538820:0x19,_0xdc0e27:0x1e4,_0x4301cc:0x2c2,_0x386950:0x1b4,_0x3da809:0x1d8,_0x1de355:0x1e7,_0x54110a:0x34,_0x21ef72:0x63,_0x1f2217:0xbc,_0x17aab7:0x5f,_0xf1c6d0:0x10,_0x12041e:0xc9,_0x33ddb0:0x41,_0x265068:0xaf,_0x1a4077:0xe4,_0x56ff07:0x3c,_0x1a2e17:0x76,_0x52e067:0x123,_0x5d0ce0:0x14a,_0x3d0f74:0x1c4,_0x5f4775:0x14e,_0xf03630:0x1c1,_0x26afb7:0xe5,_0x395ee7:0x7b,_0x21762e:0x1f,_0x298750:0x1b5,_0x9af48e:0x101,_0x3b33dc:0x126,_0x300c44:0x53,_0x4d0d8c:0x20,_0x4b2cbc:0x22,_0x569c68:0x139,_0xc5941c:0x152,_0x50a917:0x86,_0x2e46a7:0x2e},_0xb056a0={_0x4bafb8:0x3a,_0x330af7:0x35f},_0x179833={_0x1dcc8c:0x1bd},_0x5e5f31={_0x546527:0x1cb},_0x315d94={_0x35253b:0x80,_0x207155:0xd1,_0x188df2:0x8b},_0x178124=_0x64c88e['resolve'](_0x5472d5[_0x3207e7(0x3c9,_0x2bcca3._0x44d0db,_0x2bcca3._0x1d3150,_0x2bcca3._0x3e0ff4)]??process['cwd']()),_0x170345=(_0x5472d5[_0x3207e7(_0x2bcca3._0x4383f1,_0x2bcca3._0x432117,_0x2bcca3._0x184ea4,0x3ca)]??[])[_0x3207e7(0x454,_0x2bcca3._0x9d47e1,0x3b2,_0x2bcca3._0x19fae9)](_0x29250a=>_0x64c88e[_0x1535e8(0x4db,0x562,0x608,0x5ef)](_0x29250a));function _0x3207e7(_0x4fe6c8,_0xeb373d,_0x3b8f51,_0x162dfb){return _0x12584b(_0x3b8f51- -_0x315d94._0x35253b,_0xeb373d-_0x315d94._0x207155,_0x3b8f51-_0x315d94._0x188df2,_0x162dfb);}const _0x1b7bd7=_0x5472d5[_0x1535e8(_0x2bcca3._0x460f8e,_0x2bcca3._0x37d5f0,0x461,0x4ed)]??0x64,_0x37d94e=_0x5472d5[_0x3207e7(0x3d5,_0x2bcca3._0x13e1a1,_0x2bcca3._0x3877cc,0x46d)]??_0x1535e8(_0x2bcca3._0x4d2cdc,_0x2bcca3._0xa0b0a9,_0x2bcca3._0x2bdd63,0x55e);function _0x1535e8(_0xf2f1b5,_0x36a47c,_0x399e5d,_0x4982cf){return _0x12584b(_0x36a47c-0xbb,_0x36a47c-_0x5e5f31._0x546527,_0x399e5d-0x162,_0x4982cf);}return defineTool({'name':_0x37d94e,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x3207e7(0x422,0x3b1,0x362,_0x2bcca3._0x56217c),'properties':{'pattern':{'type':_0x1535e8(_0x2bcca3._0x3e6e71,0x4f1,_0x2bcca3._0x1cd349,_0x2bcca3._0x11c9fc)},'path':{'type':'string'},'limit':{'type':_0x3207e7(_0x2bcca3._0x1f3740,0x452,_0x2bcca3._0x18a9e1,0x330)}},'required':[_0x3207e7(0x487,_0x2bcca3._0x46e602,0x3d5,0x471)]},async *'execute'(_0x3179f6){if(_0x3179f6[_0x247365(-0x14d,-_0x465438._0x40ff1d,-_0x465438._0x4c5846,-_0x465438._0x573d66)][_0x19f6ef(0xc4,_0x465438._0x5369c6,0x270,_0x465438._0x5922a6)]()[_0x19f6ef(_0x465438._0x4614ce,-_0x465438._0x5e560d,-_0x465438._0x2a9ddf,_0x465438._0x50ccbf)]===0x0)throw new ToolExecutionError(_0x247365(-_0x465438._0x44e855,-_0x465438._0x49d02d,-0x1ad,-0xc4),{});const _0x3db3fe=resolveAllowedPath(_0x178124,_0x170345,_0x3179f6[_0x247365(-0x34,-_0x465438._0x40ff1d,_0x465438._0x538820,-0x18)]??'.'),_0x464c43=await _0x527288(_0x3db3fe)[_0x247365(-_0x465438._0xdc0e27,-0x235,-_0x465438._0x4301cc,-0x137)](()=>null);if(!_0x464c43?.[_0x247365(-0x15e,-0x16c,-_0x465438._0x386950,-0x108)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0x3179f6[_0x19f6ef(_0x465438._0x3da809,0x18f,0x24d,_0x465438._0x1de355)]??'.'),{'path':_0x3179f6[_0x247365(-_0x465438._0x54110a,-0x5a,-_0x465438._0x21ef72,-_0x465438._0x1f2217)]??'.'});const _0x29324e=_0x3179f6[_0x19f6ef(-_0x465438._0x17aab7,_0x465438._0xf1c6d0,-_0x465438._0x12041e,-_0x465438._0x33ddb0)]??_0x1b7bd7,_0x524058=Math[_0x19f6ef(0xbe,0x181,_0x465438._0x265068,0x1a5)](0x1,Math[_0x19f6ef(0x60,-0x9,-0xde,-_0x465438._0x1a4077)](_0x29324e));function _0x247365(_0x5c5b67,_0x194759,_0x3747e8,_0x58cb88){return _0x1535e8(_0x5c5b67-0x5b,_0x5c5b67- -0x65d,_0x3747e8-_0x179833._0x1dcc8c,_0x3747e8);}const _0x3dc692=[];function _0x19f6ef(_0x103d1e,_0x25d099,_0x3973ef,_0x1d4c95){return _0x3207e7(_0x103d1e-_0xb056a0._0x4bafb8,_0x25d099-0x9a,_0x25d099- -_0xb056a0._0x330af7,_0x103d1e);}let _0x3dc1ea=![];for await(const _0x55f5f2 of files({'cwd':_0x3db3fe,'glob':[_0x3179f6[_0x19f6ef(-_0x465438._0x56ff07,_0x465438._0x1a2e17,_0x465438._0x52e067,_0x465438._0x5d0ce0)]]})){if(_0x3dc692[_0x247365(-_0x465438._0x3d0f74,-_0x465438._0x5f4775,-_0x465438._0xf03630,-0x25e)]>=_0x524058){_0x3dc1ea=!![];break;}const _0x4197a4=await _0x527288(_0x64c88e[_0x247365(-_0x465438._0x26afb7,-0xb2,-_0x465438._0x395ee7,-0x13e)](_0x3db3fe,_0x55f5f2))['catch'](()=>null);_0x3dc692[_0x19f6ef(_0x465438._0x21762e,0x6f,-_0x465438._0x5e560d,_0x465438._0xf1c6d0)]({'path':_0x55f5f2,'mtime':_0x4197a4?.[_0x19f6ef(_0x465438._0x298750,0x198,0xf2,_0x465438._0x9af48e)]??0x0});}_0x3dc692[_0x247365(-0x1da,-0xfc,-_0x465438._0x3b33dc,-0x2b9)]((_0x111638,_0x285893)=>_0x285893[_0x247365(-0xd1,-0x70,-0xaa,0x0)]-_0x111638[_0x19f6ef(0x16e,0xf2,0xbc,0x1d8)]);const _0xe5b0db=_0x3dc692[_0x19f6ef(0x136,_0x465438._0x300c44,-0x10,0x11e)](_0xf4e645=>_0xf4e645[_0x247365(-0x34,-0x97,-0xe1,0x2e)]),_0x53dfc9=_0xe5b0db[_0x19f6ef(-0x44,-_0x465438._0x5e560d,0x43,_0x465438._0x4d0d8c)]===0x0?_0x19f6ef(_0x465438._0x4b2cbc,0x6e,0x99,_0x465438._0x569c68)+_0x3179f6['pattern']:''+_0xe5b0db['join']('\x0a')+(_0x3dc1ea?_0x247365(-_0x465438._0xc5941c,-0x1ba,-0xab,-_0x465438._0x50a917):'');return yield createToolOutput(_0x53dfc9,{'pattern':_0x3179f6[_0x19f6ef(-0x3f,0x76,0xba,-_0x465438._0x2e46a7)],'searchPath':_0x64c88e['relative'](_0x178124,_0x3db3fe)||'.','matches':_0xe5b0db,'count':_0xe5b0db['length'],'truncated':_0x3dc1ea}),void 0x0;}});}import{stat as _0x3659a2}from'fs/promises';import*as _0x2d953a from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x38f110={}){const _0x1516bb={_0x561743:0xc6,_0x4e261a:0x0,_0x3de07e:0x1e,_0x2f1e2d:0x16,_0x181e44:0xa9,_0x1d2fae:0x17,_0xc01ab2:0x15,_0x5e542a:0xa1,_0x45a1a7:0x106,_0x46fe8b:0x49,_0x42f005:0x7a,_0x623d78:0xaf,_0x29d594:0x132,_0x4195ad:0x43,_0xbe5f16:0xf3,_0x28ea52:0x3b},_0x4728bf={_0x322534:0x270,_0xede9f7:0x165,_0x470b80:0x2bf,_0x40894b:0x72,_0x27c50c:0x37e,_0x557f3f:0x2ac,_0x56b8a8:0xd6,_0x439803:0x1a2,_0x596374:0x9a,_0x47d734:0x22c,_0x36ad58:0x12e,_0x5e2a9c:0x18c,_0x3df076:0x164,_0x289719:0x18d,_0xbbdb8d:0x27d,_0x25b32a:0x194,_0x18e087:0x4b,_0x175106:0x95,_0x2e0fc1:0x2de,_0x5e9110:0x31f,_0x4f6b8b:0x304,_0x5e78db:0x2a2,_0x170b88:0x97,_0xd2bfb1:0x14,_0x165b14:0x46,_0x43e8a9:0x1e,_0x4d3f24:0x59,_0x4a0c5b:0x2dc,_0x2619b2:0xbb,_0xcf13d4:0xf8,_0x47fe48:0x10c,_0x51b5a0:0x1f4,_0x3747c6:0x146,_0x1934ad:0x113,_0x49638e:0x1d3,_0x28e0a2:0x2aa,_0x3f1589:0x15d,_0x5e6413:0x82,_0x4eb904:0x74,_0x27866a:0x2d1,_0x4a704d:0x240,_0x21cd45:0x55,_0x5b0b23:0x5c,_0x5bfbc2:0xc2,_0xf65077:0xa2,_0x30c214:0x1f,_0xf9adc:0x6f,_0x5a9348:0xd7,_0x1b759c:0xb3,_0x5d9e3b:0x2,_0x4665bd:0x34,_0x136bec:0x4,_0x12a0b6:0x32,_0x5b25dc:0x9f,_0x154d1f:0x15b,_0x19d469:0x10c,_0x2c9643:0x357,_0x2280ba:0x298,_0x14cc41:0x16f,_0x47e392:0x1a9,_0x3cb4af:0xf2,_0x4408a9:0x5d,_0x5a8882:0x1b6,_0x57a005:0x128,_0x1fff0e:0x319,_0xa6dffa:0x2c8,_0xdd7ff0:0x2ac,_0x23231f:0x246,_0x5835ff:0x375,_0x219aef:0x153,_0x2438b7:0x15e,_0x4d4e88:0xe6,_0x51cfac:0x19,_0x156148:0x88,_0x9cd6e5:0x174,_0x511233:0x1f0,_0x25b334:0x1bd,_0x2d00b3:0x279,_0x45ea78:0x277,_0x4b1718:0x1b0,_0x38d8f1:0x16e,_0x34a3ee:0x1d9,_0x2b0b8e:0x2f8,_0x5d195d:0x213,_0x261f82:0x200,_0x5c4033:0x260,_0x2c6d87:0x256,_0x2a6281:0x67,_0xf48516:0x1a,_0x405740:0x1a4,_0x31cce5:0xcf,_0x54b3f0:0x16d},_0x5dd6b5={_0x441e53:0xb6,_0x4c18f8:0xce},_0x20cd39={_0x3d0959:0x1e9,_0x2a50bb:0x4d3},_0x25552c={_0x390d08:0xee},_0x61963e=_0x2d953a['resolve'](_0x38f110[_0x1867b8(_0x1516bb._0x561743,0x86,0x1,_0x1516bb._0x4e261a)]??process[_0x1867b8(-_0x1516bb._0x3de07e,_0x1516bb._0x2f1e2d,0xb8,-0x95)]()),_0x36d657=(_0x38f110[_0x1867b8(-0xb7,-_0x1516bb._0x181e44,-_0x1516bb._0x1d2fae,-0xba)]??[])[_0x1867b8(0x3a,-0x5e,-_0x1516bb._0xc01ab2,-0xe1)](_0x2843fd=>_0x2d953a[_0x45759d(-0x122,0x1d,-0x89,-0x3a)](_0x2843fd)),_0x1fdd7d=_0x38f110[_0x1867b8(-0x147,-_0x1516bb._0x5e542a,-0x170,-0x12f)]??0x64;function _0x45759d(_0x1aaf3b,_0x4fddee,_0xc8bb74,_0x3210c6){return _0x46bf5b(_0x1aaf3b-0x2e,_0x1aaf3b,_0xc8bb74-_0x25552c._0x390d08,_0x3210c6- -0x524);}function _0x1867b8(_0x57c63b,_0x1c623c,_0x20f40c,_0x4012a1){return _0x46bf5b(_0x57c63b-_0x20cd39._0x3d0959,_0x4012a1,_0x20f40c-0x1e8,_0x1c623c- -_0x20cd39._0x2a50bb);}const _0xab9ce4=_0x38f110['name']??_0x1867b8(_0x1516bb._0x45a1a7,0x35,0xa0,0x41);return defineTool({'name':_0xab9ce4,'description':_0x1867b8(-_0x1516bb._0x46fe8b,-0x8f,-0x9e,-0x11),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x1867b8(-0x131,-0x5a,-0x18,-0x9b)},'path':{'type':'string'},'include':{'type':'string'},'limit':{'type':_0x1867b8(-0x126,-0xa2,-0xaa,-_0x1516bb._0x42f005)},'context':{'type':_0x45759d(-_0x1516bb._0x623d78,-_0x1516bb._0x29d594,-_0x1516bb._0x4195ad,-_0x1516bb._0xbe5f16)}},'required':[_0x1867b8(-0xd6,-_0x1516bb._0x28ea52,0x16,-0x6f)]},async *'execute'(_0x56e48b){const _0x4dac86={_0x34ed3a:0x78,_0x59709b:0x1fa,_0xb43bc9:0x130};if(_0x56e48b[_0x54af05(-_0x4728bf._0x322534,-_0x4728bf._0xede9f7,-_0x4728bf._0x470b80,-0x235)][_0x54af05(-0x7e,-_0x4728bf._0x40894b,-0x42,-0xfd)]()[_0x54af05(-_0x4728bf._0x27c50c,-0x291,-0x2b3,-_0x4728bf._0x557f3f)]===0x0)throw new ToolExecutionError(_0x344278(_0x4728bf._0x56b8a8,_0x4728bf._0x439803,0xc0,_0x4728bf._0x596374),{});const _0x251142=resolveAllowedPath(_0x61963e,_0x36d657,_0x56e48b[_0x344278(0x255,0x1aa,0x194,_0x4728bf._0x47d734)]??'.'),_0x3b72d2=await _0x3659a2(_0x251142)['catch'](()=>null),_0x492429=_0x3b72d2?.[_0x54af05(-_0x4728bf._0x36ad58,-0x16d,-_0x4728bf._0x5e2a9c,-_0x4728bf._0x3df076)]()??![],_0x5a38d7=_0x3b72d2?.['isDirectory']()??![];if(!_0x492429&&!_0x5a38d7)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x56e48b[_0x344278(_0x4728bf._0x289719,_0x4728bf._0xbbdb8d,_0x4728bf._0x25b32a,0x210)]??'.'),{'path':_0x56e48b['path']??'.'});const _0x1121ee=_0x56e48b['limit']??_0x1fdd7d,_0x2b2451=Math[_0x54af05(-_0x4728bf._0x18e087,-_0x4728bf._0x175106,-0x190,-0x12a)](0x1,Math['trunc'](_0x1121ee)),_0x175da9=await search({'cwd':_0x5a38d7?_0x251142:_0x2d953a[_0x54af05(-_0x4728bf._0x2e0fc1,-_0x4728bf._0x5e9110,-_0x4728bf._0x4f6b8b,-_0x4728bf._0x5e78db)](_0x251142),'pattern':_0x56e48b[_0x344278(0x167,_0x4728bf._0x170b88,0x7b,-_0x4728bf._0xd2bfb1)],'glob':_0x5a38d7?_0x56e48b[_0x344278(-_0x4728bf._0x165b14,-_0x4728bf._0x43e8a9,_0x4728bf._0x4d3f24,0xb4)]:void 0x0,'limit':_0x2b2451,'file':_0x492429?_0x251142:void 0x0,'context':_0x56e48b[_0x54af05(-0x2e1,-_0x4728bf._0x4a0c5b,-0x26e,-0x24d)]}),_0x436243=new Map();for(const _0x39d588 of _0x175da9){if(!_0x436243[_0x344278(-0x64,-0xc7,0x23,-_0x4728bf._0x2619b2)](_0x39d588['filePath'])){const _0x49994c=await _0x3659a2(_0x39d588[_0x344278(_0x4728bf._0xcf13d4,0x38,0x7e,0x65)])['catch'](()=>null);_0x436243[_0x344278(0x141,0x7e,_0x4728bf._0x47fe48,0x44)](_0x39d588[_0x54af05(-0x2a7,-0x28e,-_0x4728bf._0x51b5a0,-0x232)],{'matches':[],'mtime':_0x49994c?.[_0x54af05(-_0x4728bf._0x3747c6,-0x1df,-0x1a7,-_0x4728bf._0x1934ad)]??0x0});}_0x436243[_0x344278(0x85,0x9d,0xee,_0x4728bf._0x49638e)](_0x39d588[_0x54af05(-0x2ed,-_0x4728bf._0x28e0a2,-0x2c6,-0x232)])?.['matches'][_0x344278(_0x4728bf._0x3f1589,_0x4728bf._0x5e6413,_0x4728bf._0x4eb904,0x5a)](_0x39d588);}const _0x1564a5=[..._0x436243[_0x54af05(-_0x4728bf._0x27866a,-0x1ce,-0x2c0,-_0x4728bf._0x4a704d)]()][_0x344278(0x7c,_0x4728bf._0x21cd45,-0x12,_0x4728bf._0x5b0b23)]((_0xafbedc,_0x890755)=>_0x890755[0x1]['mtime']-_0xafbedc[0x1][_0x54af05(-0x127,-0x248,-0x205,-0x1b9)]),_0x5954d6=_0x175da9[_0x344278(-_0x4728bf._0x5bfbc2,_0x4728bf._0xf65077,-_0x4728bf._0x30c214,_0x4728bf._0xf9adc)](_0x4323ae=>!_0x4323ae[_0x54af05(-0x170,-0x148,-0x21a,-0x228)])[_0x54af05(-0x2ee,-_0x4728bf._0x4f6b8b,-0x211,-0x2ac)],_0x24167a=_0x175da9[_0x344278(_0x4728bf._0x5a9348,_0x4728bf._0x1b759c,0x4,-0xbf)]>=_0x2b2451,_0x2e20eb=_0x492429?_0x2d953a['dirname'](_0x251142):_0x251142;let _0x71ff13='';function _0x344278(_0xb8317f,_0x2c7d76,_0x2d77e8,_0x4a93c9){return _0x1867b8(_0xb8317f-0xcb,_0x2d77e8-_0x5dd6b5._0x441e53,_0x2d77e8-_0x5dd6b5._0x4c18f8,_0xb8317f);}if(_0x175da9[_0x344278(-_0x4728bf._0x5d9e3b,_0x4728bf._0x4665bd,_0x4728bf._0x136bec,-0x57)]===0x0)_0x71ff13=_0x344278(-0xb1,0xa5,_0x4728bf._0x12a0b6,_0x4728bf._0x5b25dc)+_0x56e48b['pattern'];else{_0x71ff13=_0x54af05(-_0x4728bf._0x154d1f,-0xb2,-0x14a,-_0x4728bf._0x19d469)+_0x5954d6+_0x54af05(-_0x4728bf._0x2c9643,-0x1d7,-_0x4728bf._0x2280ba,-0x291)+(_0x5954d6===0x1?'':'es')+'\x0a';for(const [_0x2c5f72,_0x854fab]of _0x1564a5){const _0x37fbba=_0x492429?_0x2d953a[_0x344278(_0x4728bf._0x14cc41,_0x4728bf._0x47e392,_0x4728bf._0x3cb4af,_0x4728bf._0x4408a9)](_0x2c5f72):_0x2d953a[_0x54af05(-0x317,-0x28f,-0x302,-0x256)](_0x2e20eb,_0x2c5f72);_0x71ff13+='\x0a'+_0x37fbba+':\x0a';for(const _0x4ffb11 of _0x854fab['matches']){const _0x4982ba=_0x4ffb11[_0x54af05(-0x202,-0x48,-_0x4728bf._0x5a8882,-_0x4728bf._0x57a005)][_0x54af05(-0x22a,-_0x4728bf._0x1fff0e,-_0x4728bf._0xa6dffa,-_0x4728bf._0xdd7ff0)]>MAX_LINE_LENGTH?_0x4ffb11['lineText'][_0x54af05(-_0x4728bf._0x23231f,-_0x4728bf._0x5835ff,-0x270,-_0x4728bf._0x27866a)](0x0,MAX_LINE_LENGTH)+_0x54af05(-0xf2,-0xe7,-_0x4728bf._0x219aef,-_0x4728bf._0x2438b7):_0x4ffb11[_0x344278(0x17b,0x1fd,0x188,0x221)],_0x28619d=_0x4ffb11[_0x344278(_0x4728bf._0x4d4e88,_0x4728bf._0x51cfac,_0x4728bf._0x156148,_0x4728bf._0x9cd6e5)]?'\x20\x20':'>\x20';_0x71ff13+=_0x28619d+_0x54af05(-_0x4728bf._0x511233,-_0x4728bf._0x25b334,-_0x4728bf._0x2d00b3,-0x249)+_0x4ffb11[_0x344278(0x1bd,_0x4728bf._0x45ea78,_0x4728bf._0x4b1718,_0x4728bf._0x38d8f1)]+':\x20'+_0x4982ba+'\x0a';}}_0x24167a&&(_0x71ff13+=_0x54af05(-0x19a,-_0x4728bf._0x34a3ee,-_0x4728bf._0x2b0b8e,-0x23a));}function _0x54af05(_0x2232c4,_0x1764bb,_0x213e63,_0x276cee){return _0x1867b8(_0x2232c4-_0x4dac86._0x34ed3a,_0x276cee- -_0x4dac86._0x59709b,_0x213e63-_0x4dac86._0xb43bc9,_0x2232c4);}const _0x34023b={'searchPath':_0x2d953a[_0x54af05(-_0x4728bf._0x5d195d,-_0x4728bf._0x261f82,-_0x4728bf._0x5c4033,-_0x4728bf._0x2c6d87)](_0x61963e,_0x251142)||'.','pattern':_0x56e48b[_0x344278(-_0x4728bf._0x2a6281,0xd5,0x7b,_0x4728bf._0xf48516)],'matchCount':_0x5954d6,'fileCount':_0x436243['size'],'truncated':_0x24167a};return _0x5a38d7&&_0x56e48b['include']!==void 0x0&&(_0x34023b['include']=_0x56e48b['include']),yield createToolOutput(_0x71ff13[_0x344278(_0x4728bf._0x405740,_0x4728bf._0x31cce5,0x1b3,_0x4728bf._0x54b3f0)](),_0x34023b),void 0x0;}});}import{readdir as _0x350b78,readFile as _0x29a9a4,stat as _0x547ea8}from'fs/promises';import*as _0x2a491c from'path';import*as _0x365528 from'yaml';async function countTextLines(_0x4aef39){const _0x1f6996={_0x35efb3:0x43,_0x27b3c:0x1aa,_0x309d6f:0xc3,_0x540e42:0x37a,_0x1aaae6:0x324,_0xe92028:0x394,_0x255109:0x388,_0x1adc2c:0x156},_0x46789e={_0x187a9f:0x1d8,_0x15ed70:0x15a};function _0x31b934(_0x453c1a,_0x462f2d,_0x1b7009,_0x71316){return _0x46bf5b(_0x453c1a-_0x46789e._0x187a9f,_0x453c1a,_0x1b7009-0x26,_0x71316- -_0x46789e._0x15ed70);}function _0x462775(_0x305a9b,_0x3edec0,_0x529b14,_0x50a341){return _0x12584b(_0x50a341- -0x481,_0x3edec0-0x1d8,_0x529b14-0x1a5,_0x529b14);}const _0x1e7be3=await _0x29a9a4(_0x4aef39)[_0x462775(-_0x1f6996._0x35efb3,-0x40,-_0x1f6996._0x27b3c,-_0x1f6996._0x309d6f)](()=>null);if(!_0x1e7be3||isProbablyBinary(_0x1e7be3))return void 0x0;return _0x1e7be3[_0x31b934(_0x1f6996._0x540e42,0x25e,0x300,_0x1f6996._0x1aaae6)]('utf8')[_0x31b934(0x3dd,_0x1f6996._0xe92028,0x473,_0x1f6996._0x255109)](/\r?\n/)[_0x462775(-0x6e,-0xbc,-_0x1f6996._0x1adc2c,-0xa3)];}function createLsTool(_0x4c6ec2={}){const _0x46ecbe={_0x267c1d:0xa2,_0x313cbe:0x62,_0xb3d065:0x4,_0x454de7:0x8b,_0x25fb14:0x22d,_0x552d35:0x164,_0x4f823f:0x107,_0x39ea2d:0x17a,_0x4293e1:0x1af,_0x4733b0:0x1e3,_0x12f9b5:0x196,_0x2e49c1:0x1b7,_0x5c2c91:0x18a},_0x174bad={_0xb4d0c1:0x515,_0x18ffbc:0x59,_0x10a75e:0x4e0,_0x2c0f5b:0x520,_0xc6ded6:0x396,_0x4e4dde:0x42c,_0x26baaf:0x3ce,_0x20d565:0x2ac,_0xde1d66:0x90,_0x2ff0df:0x443,_0x365230:0x38e,_0x5b301c:0xc7,_0x5f5bec:0x4d,_0x2c1a3f:0x72,_0x4b5783:0xb9,_0x4678b6:0x3a2,_0x3e6788:0x63,_0x437dbd:0xf,_0x57c9b0:0x4f9,_0x32e056:0x4e7,_0x5e1b2c:0x14b,_0x46d886:0x66,_0x5606c2:0xc1,_0x4ad6d1:0x101,_0x402b81:0x419,_0x374340:0x4e,_0x4af1c8:0x57,_0x36322b:0x65,_0xad3e22:0x6b,_0x180ac4:0xba,_0x36a246:0x43,_0x402ad7:0x195,_0x209eca:0x9d,_0x428dab:0x131,_0x4156b1:0x6,_0x3d5915:0x19b,_0xc468de:0x429,_0x4ef0e2:0x473,_0x3d5faa:0x6f,_0x135561:0xb3,_0xa23447:0xfc,_0x3e65dd:0x14},_0x2f98e8={_0x409764:0x9d,_0x268f6b:0x93},_0xb0cb34={_0x16ef05:0x151},_0x2ffb20={_0x28cfb3:0x1c,_0x5cdb1d:0x61,_0xf8d144:0x2c6};function _0x283786(_0x2440df,_0x1d5acd,_0x535747,_0x418ed9){return _0x46bf5b(_0x2440df-_0x2ffb20._0x28cfb3,_0x535747,_0x535747-_0x2ffb20._0x5cdb1d,_0x418ed9- -_0x2ffb20._0xf8d144);}const _0x59ac35=_0x2a491c['resolve'](_0x4c6ec2[_0x17e1d7(-0xad,-_0x46ecbe._0x267c1d,-_0x46ecbe._0x313cbe,_0x46ecbe._0xb3d065)]??process['cwd']());function _0x17e1d7(_0x29eb54,_0x136767,_0x144c8f,_0x49c6fb){return _0x46bf5b(_0x29eb54-_0xb0cb34._0x16ef05,_0x49c6fb,_0x144c8f-0x48,_0x144c8f- -0x5bb);}const _0x1bfc7c=(_0x4c6ec2[_0x283786(_0x46ecbe._0x454de7,0x21b,_0x46ecbe._0x25fb14,_0x46ecbe._0x552d35)]??[])[_0x283786(_0x46ecbe._0x4f823f,_0x46ecbe._0x39ea2d,0x17a,_0x46ecbe._0x4293e1)](_0x3ea549=>_0x2a491c[_0x283786(0x149,0x1f5,0x2d4,0x224)](_0x3ea549)),_0x1aab83=_0x4c6ec2['name']??'Ls';return defineTool({'name':_0x1aab83,'description':'List\x20files\x20and\x20directories\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x17e1d7(-_0x46ecbe._0x4733b0,-0x23e,-_0x46ecbe._0x12f9b5,-_0x46ecbe._0x2e49c1),'properties':{'path':{'type':'string'},'limit':{'type':_0x17e1d7(-0x178,-0x253,-_0x46ecbe._0x5c2c91,-0x157)}}},async *'execute'(_0x34121a){const _0x589d25={_0x3bba27:0x132,_0x4b4b16:0x60,_0x150876:0x20e},_0x19d085=_0x34121a['path']??'.',_0x157050=resolveAllowedPath(_0x59ac35,_0x1bfc7c,_0x19d085);function _0x2978e4(_0xe6e746,_0x390758,_0x4ff412,_0x2dedb6){return _0x17e1d7(_0xe6e746-_0x2f98e8._0x409764,_0x390758-_0x2f98e8._0x268f6b,_0x390758-0x538,_0x4ff412);}const _0x1933b3=await _0x547ea8(_0x157050)['catch'](()=>null);if(!_0x1933b3?.['isDirectory']())throw new ToolExecutionError(_0x2978e4(0x52c,0x497,0x44a,_0x174bad._0xb4d0c1)+_0x19d085,{'path':_0x19d085});const _0x82390b=_0x34121a['limit']??0x3e8;function _0x3b5c97(_0x24facc,_0x576814,_0x4bc174,_0x35b5f8){return _0x283786(_0x24facc-_0x589d25._0x3bba27,_0x576814-_0x589d25._0x4b4b16,_0x24facc,_0x576814- -_0x589d25._0x150876);}const _0x23c341=Math[_0x3b5c97(0x51,_0x174bad._0x18ffbc,0xfd,0x10a)](Math[_0x2978e4(_0x174bad._0x10a75e,_0x174bad._0x2c0f5b,0x577,0x4f0)](Math[_0x2978e4(0x33f,_0x174bad._0xc6ded6,_0x174bad._0x4e4dde,0x317)](_0x82390b),0x1),0x2710),_0x28eb5e=await _0x350b78(_0x157050),_0x201589=[];for(const _0x5d3a7f of _0x28eb5e[_0x2978e4(_0x174bad._0x26baaf,0x379,_0x174bad._0x20d565,0x410)](0x0,_0x23c341)){const _0x334ada=_0x2a491c[_0x3b5c97(0x3,0x2c,-0x61,0x62)](_0x157050,_0x5d3a7f),_0x5f332e=await _0x547ea8(_0x334ada)['catch'](()=>null);if(!_0x5f332e)continue;let _0x3d703c='other';if(_0x5f332e[_0x3b5c97(0x12c,0x95,_0x174bad._0xde1d66,-0x56)]())_0x3d703c=_0x2978e4(0x440,_0x174bad._0x2ff0df,0x51e,_0x174bad._0x365230);else{if(_0x5f332e[_0x3b5c97(-_0x174bad._0x5b301c,-_0x174bad._0x5f5bec,-_0x174bad._0x2c1a3f,-_0x174bad._0x4b5783)]())_0x3d703c=_0x2978e4(0x4ab,0x3c4,0x309,_0x174bad._0x4678b6);else{if(_0x5f332e[_0x3b5c97(0x4d,-_0x174bad._0x3e6788,_0x174bad._0x437dbd,-0x51)]())_0x3d703c=_0x2978e4(0x42b,0x4ca,_0x174bad._0x57c9b0,_0x174bad._0x32e056);}}const _0x4b5b49={'name':_0x5d3a7f,'type':_0x3d703c,'size':_0x5f332e[_0x3b5c97(_0x174bad._0x5e1b2c,_0x174bad._0x46d886,_0x174bad._0x5606c2,_0x174bad._0x4ad6d1)],'mtime':_0x5f332e[_0x3b5c97(0x11d,0xe6,0xd,0x29)],'mode':_0x5f332e[_0x2978e4(0x45d,0x4e7,0x476,_0x174bad._0x402b81)]},_0x4e2937=_0x3d703c===_0x3b5c97(0x2,-0xe,-_0x174bad._0x374340,_0x174bad._0x4af1c8)?await countTextLines(_0x334ada):void 0x0;if(_0x4e2937!==void 0x0)_0x4b5b49[_0x3b5c97(-_0x174bad._0x36322b,_0x174bad._0xad3e22,0xd7,_0x174bad._0x180ac4)]=_0x4e2937;_0x201589[_0x3b5c97(-0x57,-_0x174bad._0x36a246,-0x51,-0x22)](_0x4b5b49);}_0x201589[_0x3b5c97(-0x137,-0xc9,-_0x174bad._0x402ad7,-_0x174bad._0x209eca)]((_0x20274a,_0x3e57fd)=>_0x20274a['name'][_0x2978e4(0x55b,0x509,0x41c,0x5f0)](_0x3e57fd[_0x3b5c97(0x23,-0x8,0x1c,0xd7)]));const _0x407d6b={'path':_0x19d085,'total':_0x201589[_0x3b5c97(-_0x174bad._0x428dab,-0xb3,-0x6f,-0x56)],'truncated':_0x28eb5e[_0x3b5c97(-_0x174bad._0x4156b1,-0xb3,-0x1e,-_0x174bad._0x3d5915)]>_0x23c341,'entries':_0x201589};return yield createToolOutput(_0x365528['stringify'](_0x407d6b,{'indent':0x2,'lineWidth':0x0})[_0x2978e4(0x3d3,_0x174bad._0xc468de,_0x174bad._0x4ef0e2,0x4e6)](),{'path':_0x19d085,'total':_0x201589[_0x3b5c97(-_0x174bad._0x3d5faa,-_0x174bad._0x135561,-_0x174bad._0xa23447,-_0x174bad._0x3e65dd)],'truncated':_0x28eb5e['length']>_0x23c341,'limit':_0x23c341,'entries':_0x201589}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x37a259,readFile as _0x5bd194,writeFile as _0x2baaf9}from'fs/promises';import{join as _0x58d769}from'path';function sanitizeStorageKey(_0x5228a0){const _0x49a43a={_0x9062d5:0x284,_0x1ce8e4:0x2df,_0x54c67f:0x340,_0x2b6527:0x604,_0x5ed5bf:0x5f3,_0x43e16b:0x551,_0x26abbb:0x529,_0x17bb83:0x45f},_0x34f194={_0x94bf00:0xad,_0x3a3d4a:0x6b},_0x51aa03={_0x3d48ef:0x3a,_0x44e131:0xad};function _0x4e72fb(_0x3e770c,_0x25b2af,_0x31b5ea,_0x196c4e){return _0x46bf5b(_0x3e770c-_0x51aa03._0x3d48ef,_0x25b2af,_0x31b5ea-_0x51aa03._0x44e131,_0x31b5ea- -0x286);}function _0x58785d(_0x22c592,_0x2a8f2e,_0x1bbc26,_0x4b1b15){return _0x46bf5b(_0x22c592-_0x34f194._0x94bf00,_0x1bbc26,_0x1bbc26-0x12a,_0x2a8f2e-_0x34f194._0x3a3d4a);}return _0x5228a0[_0x4e72fb(_0x49a43a._0x9062d5,_0x49a43a._0x1ce8e4,0x313,_0x49a43a._0x54c67f)](/[^a-zA-Z0-9_]+/g,'_')[_0x58785d(0x6cc,_0x49a43a._0x2b6527,_0x49a43a._0x5ed5bf,_0x49a43a._0x43e16b)](/^_+|_+$/g,'')||_0x58785d(0x4ea,_0x49a43a._0x26abbb,_0x49a43a._0x17bb83,0x606);}function storagePath(_0x3e753f){const _0x227858={_0x447640:0x65,_0x4342e8:0x2c7},_0x104bc7={_0x1f843c:0x1e5,_0x4426ea:0x43e},_0x5f3aab={_0x903f8a:0x12};function _0x53070c(_0x409ab3,_0x1bc339,_0x4baffb,_0x27f546){return _0x12584b(_0x4baffb- -0x155,_0x1bc339-_0x5f3aab._0x903f8a,_0x4baffb-0x5f,_0x1bc339);}const _0x1c6e9a=sanitizeStorageKey(_0x3e753f[_0xfc8c15(_0x227858._0x447640,0x97,-0x1b,-0x1b)]['oauth']?.['tokenStorageKey']??_0x3e753f[_0x53070c(0x2da,_0x227858._0x4342e8,0x3af,0x2d8)]);function _0xfc8c15(_0x478414,_0x36edff,_0x371a33,_0x4c8f1e){return _0x46bf5b(_0x478414-_0x104bc7._0x1f843c,_0x371a33,_0x371a33-0xbd,_0x478414- -_0x104bc7._0x4426ea);}return _0x58d769(_0x3e753f['storageDir'],_0x1c6e9a+'.json');}async function readStore(_0x5d8419){const _0x200e59={_0x19946a:0x41f,_0x1f7be4:0x475,_0x32c2b8:0x405,_0x4d676d:0x42d,_0x5141f3:0x4a6},_0x10f9a6={_0x20ade6:0xf8,_0x32e24e:0x1b0},_0x972789={_0x2ffc56:0x15b,_0x243583:0x3d8};function _0x3ca873(_0x97c16f,_0x2e17db,_0x11b724,_0x5c0740){return _0x46bf5b(_0x97c16f-_0x972789._0x2ffc56,_0x11b724,_0x11b724-0xca,_0x2e17db- -_0x972789._0x243583);}function _0xebdc36(_0x1f00f5,_0xb5111c,_0x35c6e8,_0x50a8b0){return _0x12584b(_0x1f00f5- -0xbf,_0xb5111c-_0x10f9a6._0x20ade6,_0x35c6e8-_0x10f9a6._0x32e24e,_0x35c6e8);}try{return JSON[_0xebdc36(_0x200e59._0x19946a,0x434,0x379,0x4d8)](await _0x5bd194(_0x5d8419,_0xebdc36(_0x200e59._0x1f7be4,_0x200e59._0x32c2b8,_0x200e59._0x4d676d,_0x200e59._0x5141f3)));}catch(_0x28c27f){if(_0x28c27f instanceof Error&&_0x3ca873(0xe3,0x15b,0xd0,0x1dc)in _0x28c27f&&_0x28c27f['code']===_0xebdc36(0x2fb,0x31d,0x2cc,0x34f))return{};throw _0x28c27f;}}async function writeStore(_0xb2fc93,_0x1253ed){const _0x3ab6c={_0xfc0b06:0xf3};function _0x18de0a(_0x30d166,_0x36c968,_0x2aeb34,_0x2b5c95){return _0x46bf5b(_0x30d166-_0x3ab6c._0xfc0b06,_0x2aeb34,_0x2aeb34-0x34,_0x36c968- -0x1a2);}await _0x37a259(_0x58d769(_0xb2fc93,'..'),{'recursive':!![]}),await _0x2baaf9(_0xb2fc93,JSON[_0x18de0a(0x1f6,0x29c,0x277,0x227)](_0x1253ed,null,0x2),'utf8');}async function updateStore(_0x4b4e6b,_0x5c2e3c){const _0x498bcc=await readStore(_0x4b4e6b);_0x5c2e3c(_0x498bcc),await writeStore(_0x4b4e6b,_0x498bcc);}function createMcpOAuthProvider(_0x3b6e9b){const _0x59812a={_0x775792:0x33b,_0x380af4:0x2c8,_0x190182:0x287,_0x2abcb5:0x2ee,_0x20d422:0x290,_0x46e594:0x25c,_0x4c3fdf:0x220,_0x11cf44:0x266,_0x1082f3:0x1b4,_0xd9c28d:0x1df,_0x66c3b4:0x447,_0x398de2:0x3f4,_0x6d3db5:0x3e3,_0x56f178:0x3a1,_0x27fb30:0x312,_0x4c6dfa:0x42a,_0x3c1474:0x3eb,_0x2ae5ff:0x1bf,_0x23f471:0x268,_0x30e757:0x10c,_0x561f2b:0x18a,_0x30cbb5:0x1d0,_0x344cbe:0x15f,_0x1d6f48:0x182,_0x3b3b52:0x94,_0x5e717a:0x199,_0x1d3d1c:0x135},_0x5e522f={_0x102ea0:0x1a5},_0x2e972b={_0x42b57f:0x40e,_0x5b2e18:0x410,_0x313014:0x2d7,_0x412078:0x41c,_0x53a7be:0x377,_0x46a204:0x334,_0x4ca4c8:0x381,_0x4018bc:0x306,_0x10cbe8:0x3a0,_0x48afeb:0x422,_0x1a8b5e:0x3c5,_0x1f5861:0x3c7,_0x59530b:0x459,_0x537c29:0x545,_0x11050e:0x51c,_0x2a0ac6:0x4c0},_0x4c404b={_0x42a1bd:0x1a2,_0x40becd:0x2b2,_0x135bb9:0x1c8,_0x1aa19d:0x252,_0x1a6b4b:0x215},_0x8760c5={_0x22d4e0:0x556,_0x4badb7:0x161},_0x5ab77c={_0x484c2f:0x96},_0x2670b5={_0x2f4704:0x221,_0x1e594b:0x133},_0x326cdd={_0x276747:0x107,_0x1befdf:0x16d},_0x2e9060={_0x3b95f0:0xcf,_0x398729:0x98},_0x303214={_0x47a772:0x164};function _0x1a5234(_0xfffb06,_0x490c83,_0x31440b,_0x346601){return _0x46bf5b(_0xfffb06-0xbf,_0x31440b,_0x31440b-_0x303214._0x47a772,_0xfffb06- -0x168);}const _0x365ab1=storagePath(_0x3b6e9b);function _0x23b7ea(_0x270d38,_0x9ea4b7,_0x36872c,_0x50cc1f){return _0x12584b(_0x50cc1f- -0x2de,_0x9ea4b7-_0x2e9060._0x3b95f0,_0x36872c-_0x2e9060._0x398729,_0x9ea4b7);}const _0x10540f=_0x3b6e9b[_0x1a5234(_0x59812a._0x775792,_0x59812a._0x380af4,0x2e2,_0x59812a._0x190182)][_0x1a5234(_0x59812a._0x2abcb5,0x39d,_0x59812a._0x20d422,_0x59812a._0x46e594)]?.[_0x23b7ea(0x214,0x1f7,_0x59812a._0x4c3fdf,0x13b)]?.[_0x23b7ea(_0x59812a._0x11cf44,0x136,_0x59812a._0x1082f3,_0x59812a._0xd9c28d)]('\x20'),_0x4bec62={'client_name':_0x23b7ea(0x1fb,0x1e2,0x2e3,0x23d),'redirect_uris':[_0x3b6e9b[_0x1a5234(_0x59812a._0x66c3b4,_0x59812a._0x398de2,_0x59812a._0x6d3db5,0x3d6)]],'grant_types':['authorization_code',_0x1a5234(0x39b,_0x59812a._0x56f178,0x43f,0x466)],'response_types':[_0x1a5234(0x3cb,_0x59812a._0x27fb30,_0x59812a._0x4c6dfa,_0x59812a._0x3c1474)],'token_endpoint_auth_method':_0x23b7ea(_0x59812a._0x2ae5ff,_0x59812a._0x23f471,_0x59812a._0x30e757,_0x59812a._0x561f2b),..._0x10540f?{'scope':_0x10540f}:{}};return{'clientMetadataUrl':_0x3b6e9b[_0x23b7ea(_0x59812a._0x30cbb5,0x1d8,_0x59812a._0x344cbe,_0x59812a._0x1d6f48)][_0x23b7ea(_0x59812a._0x3b3b52,_0x59812a._0x5e717a,0xec,_0x59812a._0x1d3d1c)]?.['clientMetadataUrl'],get 'redirectUrl'(){const _0x2db294={_0x169546:0x7e,_0x576795:0x121};function _0x539a5d(_0x3ee004,_0x221e4d,_0x4fa035,_0x5e710e){return _0x23b7ea(_0x3ee004-0x34,_0x3ee004,_0x4fa035-_0x2db294._0x169546,_0x4fa035- -_0x2db294._0x576795);}return _0x3b6e9b[_0x539a5d(_0x326cdd._0x276747,0x137,_0x326cdd._0x1befdf,0x1ea)];},get 'clientMetadata'(){return _0x4bec62;},async 'state'(){const _0x2c0730=await readStore(_0x365ab1);if(_0x2c0730['state'])return _0x2c0730['state'];const _0x3eacec=randomUUID();return await updateStore(_0x365ab1,_0x3eec41=>{function _0x560107(_0x364f76,_0x53e952,_0x3d0bc8,_0xce6ccf){return _0x5452(_0x53e952- -0x2da,_0xce6ccf);}_0x3eec41[_0x560107(-_0x2670b5._0x2f4704,-0x172,-0xc7,-_0x2670b5._0x1e594b)]=_0x3eacec;}),_0x3eacec;},async 'clientInformation'(){return(await readStore(_0x365ab1))['clientInformation'];},async 'saveClientInformation'(_0x55ce97){const _0x367c76={_0x5a4481:0x2bf};await updateStore(_0x365ab1,_0x366c21=>{const _0x6c7168={_0x30b431:0x377};function _0x55bd07(_0x3138fb,_0x2f345c,_0x17bcfa,_0x4b5178){return _0x5452(_0x4b5178- -_0x6c7168._0x30b431,_0x3138fb);}_0x366c21[_0x55bd07(-0x27a,-_0x367c76._0x5a4481,-0x288,-0x273)]=_0x55ce97;});},async 'tokens'(){const _0x1afd9d={_0x4cbfc0:0x527,_0x529ddf:0x28,_0x136586:0x12c};function _0x2efb9d(_0x3e0bbc,_0x4c1d8f,_0x568694,_0x3f26ec){return _0x1a5234(_0x4c1d8f- -_0x1afd9d._0x4cbfc0,_0x4c1d8f-_0x1afd9d._0x529ddf,_0x3e0bbc,_0x3f26ec-_0x1afd9d._0x136586);}return(await readStore(_0x365ab1))[_0x2efb9d(-0x1df,-0x192,-0xaf,-0x167)];},async 'saveTokens'(_0x4c60f1){await updateStore(_0x365ab1,_0x2fd540=>{_0x2fd540['tokens']=_0x4c60f1;});},async 'redirectToAuthorization'(_0x991a12){await _0x3b6e9b['onRedirect'](_0x991a12);},async 'saveCodeVerifier'(_0x53eee7){const _0x513191={_0x5e1527:0x92};await updateStore(_0x365ab1,_0x45c837=>{function _0xea1d47(_0x13c198,_0xf79762,_0x144483,_0x4463e1){return _0x5452(_0x144483- -_0x513191._0x5e1527,_0x4463e1);}_0x45c837[_0xea1d47(_0x5ab77c._0x484c2f,0x92,0xa1,0xdf)]=_0x53eee7;});},async 'codeVerifier'(){const _0x406ba3={_0x31effe:0x16e,_0x1057e6:0x338};function _0x400d8a(_0x8e6a5a,_0x244b39,_0x578357,_0x272b57){return _0x23b7ea(_0x8e6a5a-0x43,_0x244b39,_0x578357-_0x406ba3._0x31effe,_0x272b57-_0x406ba3._0x1057e6);}const _0xb09992=(await readStore(_0x365ab1))[_0x50e74b(-_0x4c404b._0x42a1bd,-_0x4c404b._0x40becd,-_0x4c404b._0x135bb9,-_0x4c404b._0x1aa19d)];if(!_0xb09992)throw new Error(_0x50e74b(-0x1f3,-0x1bd,-0x257,-_0x4c404b._0x1a6b4b));function _0x50e74b(_0xea0a9f,_0x5d5062,_0x31257a,_0xace17f){return _0x1a5234(_0xace17f- -_0x8760c5._0x22d4e0,_0x5d5062-0x103,_0x5d5062,_0xace17f-_0x8760c5._0x4badb7);}return _0xb09992;},async 'invalidateCredentials'(_0x414ba9){await updateStore(_0x365ab1,_0x2a4584=>{(_0x414ba9===_0x4b17d3(0x4d0,_0x2e972b._0x42b57f,0x450,_0x2e972b._0x5b2e18)||_0x414ba9==='client')&&(_0x2a4584[_0x6d7046(_0x2e972b._0x313014,0x228,0x1eb,0x30f)]=void 0x0);(_0x414ba9===_0x4b17d3(0x4d0,0x4fc,0x507,0x439)||_0x414ba9==='tokens')&&(_0x2a4584[_0x6d7046(0x397,_0x2e972b._0x412078,0x329,_0x2e972b._0x53a7be)]=void 0x0);function _0x4b17d3(_0x49bbb0,_0x9a60dc,_0x44f36a,_0x3c2477){return _0x5452(_0x49bbb0-0x2ba,_0x3c2477);}(_0x414ba9===_0x6d7046(0x3e9,0x351,0x3d8,_0x2e972b._0x46a204)||_0x414ba9===_0x6d7046(0x3d7,0x3ee,0x35a,_0x2e972b._0x4ca4c8))&&(_0x2a4584[_0x6d7046(_0x2e972b._0x4018bc,_0x2e972b._0x10cbe8,0x317,0x30a)]=void 0x0,_0x2a4584[_0x4b17d3(_0x2e972b._0x48afeb,_0x2e972b._0x1a8b5e,_0x2e972b._0x1f5861,0x41d)]=void 0x0);function _0x6d7046(_0x46813b,_0x16feae,_0x152a18,_0x240176){return _0x5452(_0x46813b-0x1d3,_0x240176);}(_0x414ba9===_0x6d7046(0x3e9,0x3df,_0x2e972b._0x59530b,0x4b4)||_0x414ba9==='discovery')&&(_0x2a4584[_0x4b17d3(_0x2e972b._0x537c29,_0x2e972b._0x11050e,0x559,_0x2e972b._0x2a0ac6)]=void 0x0);});},async 'saveDiscoveryState'(_0x3cf41f){const _0x2ac23e={_0x6074cf:0x263,_0x2a288d:0x1d6};await updateStore(_0x365ab1,_0x4ad79f=>{function _0x462b8b(_0x46410f,_0x38ccbd,_0x6d9fcc,_0x153178){return _0x5452(_0x46410f- -0x28,_0x153178);}_0x4ad79f[_0x462b8b(_0x2ac23e._0x6074cf,0x1a9,_0x2ac23e._0x2a288d,0x2b1)]=_0x3cf41f;});},async 'discoveryState'(){const _0x4f03e2={_0x276c7c:0x2d0};function _0x4a2116(_0x32a0ec,_0x53e663,_0x539213,_0x45cdf4){return _0x1a5234(_0x45cdf4- -_0x4f03e2._0x276c7c,_0x53e663-0xf9,_0x53e663,_0x45cdf4-0x1d4);}return(await readStore(_0x365ab1))[_0x4a2116(_0x5e522f._0x102ea0,0x19c,0x221,0x18c)];}};}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(_0x155b74,_0x26fbbf){const _0x5c21d8={_0x2c7c71:0x40f,_0x5a4072:0x3aa,_0x1db69e:0x42e},_0x51e43f={_0x2f1e78:0x89},_0x8291b0=_0x4c6a98=>_0x4c6a98[_0x781ea5(0x55b,0x65f,0x5c5,0x6b0)](/[^a-zA-Z0-9_]+/g,'_')[_0xdaf563(0x505,0x428,0x41e,0x439)](/^_+|_+$/g,'');function _0xdaf563(_0x157d3a,_0x3f165c,_0x503605,_0x21bb38){return _0x46bf5b(_0x157d3a-0x1e,_0x3f165c,_0x503605-_0x51e43f._0x2f1e78,_0x503605- -0x17b);}function _0x781ea5(_0x229bf8,_0x429b29,_0x2f852e,_0x3acc7d){return _0x46bf5b(_0x229bf8-0xf3,_0x429b29,_0x2f852e-0x29,_0x2f852e-0x2c);}return _0x781ea5(_0x5c21d8._0x2c7c71,_0x5c21d8._0x5a4072,_0x5c21d8._0x1db69e,0x377)+_0x8291b0(_0x155b74)+'_'+_0x8291b0(_0x26fbbf);}function isObject(_0x42d19f){const _0x5c2430={_0x446cae:0x84,_0x43461f:0x130,_0x1873de:0x83},_0x41ba34={_0x1566a7:0x45a,_0x325797:0x12a};function _0x16d349(_0x222d48,_0xb484c8,_0x2e94,_0x21cdb0){return _0x12584b(_0x2e94- -_0x41ba34._0x1566a7,_0xb484c8-0x133,_0x2e94-_0x41ba34._0x325797,_0x222d48);}return typeof _0x42d19f==='object'&&_0x42d19f!==null&&!Array[_0x16d349(-_0x5c2430._0x446cae,-_0x5c2430._0x43461f,-_0x5c2430._0x1873de,-0x57)](_0x42d19f);}function toSupportedSchema(_0x36927b){const _0x1761d3={_0x3c96ec:0x368,_0x101431:0x403,_0xc33d41:0x3cc,_0x115a8d:0x3f8,_0x581613:0x386,_0x4b9c40:0x34c,_0x4e3058:0x39d,_0x51896c:0x32e,_0x2c8c80:0x352,_0x33de98:0x4b0,_0x2b655e:0x347,_0x873ee:0x300,_0x41685b:0x3a2,_0x212ece:0x376,_0x4d6d0d:0x3e7,_0x477c6e:0x355,_0x420818:0x371,_0x173b68:0x39b,_0x2f457a:0x4a1,_0x4619a9:0x3c4,_0x16bad6:0x47f,_0x3f8818:0x324,_0x19f6ac:0x374,_0x238b23:0x325,_0x26f0ed:0x372,_0x53ca52:0x328,_0x22696b:0x4bf,_0x4e541b:0x435,_0x235f63:0x3b2},_0x274463={_0x37bd78:0x152,_0x55f9b1:0xd9,_0x20a7bc:0xea},_0x418755={_0x37dca2:0x94};if(!isObject(_0x36927b))return void 0x0;function _0x70461(_0x537cf2,_0x2d39d9,_0x141431,_0x218ce0){return _0x46bf5b(_0x537cf2-0x1ba,_0x2d39d9,_0x141431-0xe4,_0x218ce0- -_0x418755._0x37dca2);}function _0x5c5364(_0x5801c0,_0x11fc29,_0x2b6fdf,_0xe9c1b3){return _0x46bf5b(_0x5801c0-_0x274463._0x37bd78,_0x5801c0,_0x2b6fdf-_0x274463._0x55f9b1,_0x11fc29- -_0x274463._0x20a7bc);}if(_0x36927b[_0x70461(_0x1761d3._0x3c96ec,_0x1761d3._0x101431,0x452,_0x1761d3._0xc33d41)]===_0x70461(_0x1761d3._0x115a8d,0x346,_0x1761d3._0x581613,0x3e5))return{'type':_0x5c5364(_0x1761d3._0x4b9c40,0x38f,_0x1761d3._0x4e3058,_0x1761d3._0x51896c)};if(_0x36927b[_0x70461(0x348,_0x1761d3._0x2c8c80,_0x1761d3._0x33de98,0x3cc)]===_0x5c5364(0x364,_0x1761d3._0x2b655e,_0x1761d3._0x873ee,0x3eb)||_0x36927b[_0x5c5364(_0x1761d3._0x41685b,_0x1761d3._0x212ece,0x3a3,_0x1761d3._0x4d6d0d)]===_0x70461(0x414,0x41d,0x4cf,0x45b))return{'type':_0x5c5364(_0x1761d3._0x477c6e,0x347,0x41b,0x3f2)};if(_0x36927b[_0x70461(_0x1761d3._0x420818,_0x1761d3._0x173b68,0x385,_0x1761d3._0xc33d41)]===_0x70461(_0x1761d3._0x2f457a,0x554,0x567,0x4b2))return{'type':'boolean'};if(_0x36927b[_0x70461(0x2e9,_0x1761d3._0x4619a9,_0x1761d3._0x16bad6,0x3cc)]===_0x5c5364(_0x1761d3._0x3f8818,_0x1761d3._0x19f6ac,_0x1761d3._0x238b23,_0x1761d3._0x26f0ed))return{'type':_0x5c5364(0x33b,0x374,_0x1761d3._0x53ca52,0x350),'items':toSupportedSchema(_0x36927b[_0x5c5364(_0x1761d3._0x22696b,0x491,0x53d,0x570)])??{'type':_0x70461(0x46e,_0x1761d3._0x4e541b,_0x1761d3._0x235f63,0x3e5)}};if(_0x36927b[_0x5c5364(0x359,_0x1761d3._0x212ece,0x3d2,0x2e9)]==='object')return toNuvinToolSchema(_0x36927b);return void 0x0;}function toNuvinToolSchema(_0x281396){const _0x20e811={_0x2b772c:0x4a8,_0x2152f9:0x434,_0x852f81:0x429,_0x451104:0x459,_0x4be497:0x3a3,_0x418cf1:0x3fc,_0x56c879:0x568,_0x33c10a:0x352,_0x48e0a3:0x371,_0x18f1c7:0x364,_0x137fd0:0x22d,_0x8676d7:0x219,_0x45de16:0x2b2,_0x1c3651:0x431,_0x3ed8eb:0x3f5,_0x3f8efa:0x407,_0x58686a:0x4b7},_0x354283={_0x198a75:0x82,_0x977516:0x14c};if(!isObject(_0x281396)||_0x281396[_0x518c40(0x46c,0x4a7,0x4b3,0x494)]!==_0x518c40(_0x20e811._0x2b772c,_0x20e811._0x2152f9,0x493,0x459))return{'type':_0x518c40(_0x20e811._0x852f81,0x41e,0x4ef,_0x20e811._0x451104),'properties':{}};const _0x27d2b0={},_0x493820=isObject(_0x281396[_0x35fbfa(0x378,0x40b,_0x20e811._0x4be497,_0x20e811._0x418cf1)])?_0x281396[_0x518c40(_0x20e811._0x56c879,0x5c1,0x65c,0x57c)]:{};function _0x35fbfa(_0x1a8bea,_0x462747,_0x2f2b9c,_0x54f06b){return _0x46bf5b(_0x1a8bea-0x44,_0x462747,_0x2f2b9c-_0x354283._0x198a75,_0x54f06b- -_0x354283._0x977516);}for(const [_0xe01f2,_0x3fea02]of Object['entries'](_0x493820)){const _0x1db23c=toSupportedSchema(_0x3fea02);if(_0x1db23c)_0x27d2b0[_0xe01f2]=_0x1db23c;}const _0x2430e0=Array['isArray'](_0x281396['required'])?_0x281396[_0x35fbfa(_0x20e811._0x33c10a,_0x20e811._0x48e0a3,_0x20e811._0x18f1c7,0x330)][_0x35fbfa(0x201,_0x20e811._0x137fd0,_0x20e811._0x8676d7,_0x20e811._0x45de16)](_0x296ad7=>typeof _0x296ad7==='string'):void 0x0;function _0x518c40(_0x2dd77c,_0x24515e,_0x1a0b84,_0x1b926d){return _0x12584b(_0x1b926d-0x77,_0x24515e-0xe6,_0x1a0b84-0xaf,_0x24515e);}return _0x2430e0?.[_0x518c40(0x4e6,_0x20e811._0x1c3651,_0x20e811._0x3ed8eb,0x455)]?{'type':'object','properties':_0x27d2b0,'required':_0x2430e0}:{'type':_0x518c40(_0x20e811._0x3f8efa,0x39c,_0x20e811._0x58686a,0x459),'properties':_0x27d2b0};}function isJsonObject(_0x282bd5){const _0x542db8={_0x391f18:0x30d},_0x1e014e={_0xb376f6:0xc0},_0x480eb4={_0x29736c:0x296,_0x4adfd3:0x133};function _0x18b5f8(_0x3f7fb8,_0x1abc93,_0x4787db,_0x1f9293){return _0x12584b(_0x1abc93- -_0x480eb4._0x29736c,_0x1abc93-0x16e,_0x4787db-_0x480eb4._0x4adfd3,_0x4787db);}function _0x36b6f0(_0x421594,_0x2c4fb2,_0x23f5e3,_0x7a74e9){return _0x46bf5b(_0x421594-_0x1e014e._0xb376f6,_0x7a74e9,_0x23f5e3-0x47,_0x421594- -0x1db);}return typeof _0x282bd5===_0x18b5f8(0x130,0x14c,0x79,0x1fc)&&_0x282bd5!==null&&!Array[_0x36b6f0(0x23f,0x29a,0x31e,_0x542db8._0x391f18)](_0x282bd5);}function formatMcpContent(_0x5bc737){const _0x8fabc3={_0x4bad8d:0x1e3,_0x1bc2fa:0xff,_0x50a1c8:0x221,_0x4ef592:0x18f,_0x1a0969:0x1b7,_0x3cf1ca:0x118,_0x429abe:0xd1,_0x3d954b:0x147,_0x43f1d4:0xc3,_0x782695:0x12e,_0x1af0af:0x1a9,_0x2ed42d:0x13b,_0x24cb0f:0xb3,_0x1a2bee:0x1ee,_0x30240a:0x158},_0x47a703={_0x35e3a8:0x60},_0x368455={_0x43e901:0x64,_0x7b6b:0x34,_0x197e06:0x5d,_0x1da995:0x13e,_0x46e903:0x14e,_0x4b22a2:0x55,_0x36307a:0x1de,_0x4a7ea8:0x27b,_0x32b605:0x292,_0x33d270:0x200,_0x4cd22e:0x254,_0x33d7b5:0x25a,_0x275796:0x86,_0x930339:0x2a},_0x33245c={_0x7748f5:0x271},_0x218513={_0x1e42c3:0x3b3,_0x5b4742:0x193};function _0x113499(_0x3636a2,_0x514bf3,_0x1650ee,_0x18f393){return _0x12584b(_0x514bf3- -_0x218513._0x1e42c3,_0x514bf3-0x149,_0x1650ee-_0x218513._0x5b4742,_0x3636a2);}const _0x37eda6=Array['isArray'](_0x5bc737[_0x113499(_0x8fabc3._0x4bad8d,0xfc,0x107,0xa9)])?_0x5bc737[_0x113499(0x16e,0xfc,0x1a1,0x160)]:[],_0xca9ca0=_0x37eda6[_0x5db28a(_0x8fabc3._0x1bc2fa,_0x8fabc3._0x50a1c8,_0x8fabc3._0x4ef592,0x241)](_0x1d7c3d=>{const _0x8f4bbf={_0x3190d5:0xce,_0xe1c4b1:0x1a5};if(!isObject(_0x1d7c3d))return'';function _0x323db9(_0x15e8f0,_0x3e8756,_0x25ab05,_0x36bf65){return _0x113499(_0x25ab05,_0x36bf65- -_0x33245c._0x7748f5,_0x25ab05-0x1d4,_0x36bf65-0x19e);}function _0x2344e3(_0x2433dc,_0x591d5a,_0x7b256a,_0x22deb0){return _0x113499(_0x7b256a,_0x2433dc- -_0x8f4bbf._0x3190d5,_0x7b256a-_0x8f4bbf._0xe1c4b1,_0x22deb0-0x1a6);}if(_0x1d7c3d[_0x2344e3(-_0x368455._0x43e901,-_0x368455._0x7b6b,_0x368455._0x197e06,-_0x368455._0x1da995)]===_0x2344e3(-0x8f,-0x51,-_0x368455._0x46e903,_0x368455._0x4b22a2)&&typeof _0x1d7c3d[_0x323db9(-_0x368455._0x36307a,-_0x368455._0x4a7ea8,-_0x368455._0x32b605,-0x232)]===_0x323db9(-_0x368455._0x33d270,-_0x368455._0x4cd22e,-_0x368455._0x33d7b5,-0x1ee))return _0x1d7c3d['text'];return JSON[_0x2344e3(-_0x368455._0x275796,-0x5a,-0x122,-_0x368455._0x930339)](_0x1d7c3d);})[_0x5db28a(_0x8fabc3._0x1a0969,0x1ab,_0x8fabc3._0x3cf1ca,0x1fc)](_0x1a9efe=>_0x1a9efe['length']>0x0)[_0x113499(_0x8fabc3._0x429abe,0x10a,_0x8fabc3._0x3d954b,_0x8fabc3._0x43f1d4)]('\x0a');if(_0xca9ca0[_0x5db28a(_0x8fabc3._0x782695,_0x8fabc3._0x1af0af,_0x8fabc3._0x2ed42d,_0x8fabc3._0x24cb0f)]>0x0)return _0xca9ca0;function _0x5db28a(_0x3e6cbf,_0x279cee,_0xde1894,_0x3de919){return _0x46bf5b(_0x3e6cbf-_0x47a703._0x35e3a8,_0x3e6cbf,_0xde1894-0x12d,_0xde1894- -0x2e6);}return JSON[_0x5db28a(_0x8fabc3._0x1a2bee,0xf6,_0x8fabc3._0x30240a,0x117)](_0x5bc737,null,0x2);}function createMcpTool(_0x14a74f){const _0x54e88a={_0x130b4f:0x420,_0x39dcd9:0x382,_0x3d8653:0x3c4,_0x3445b7:0x288,_0x4988ff:0x25c,_0x1aa6ca:0x31d,_0x584513:0x24b,_0x271a6f:0x3a3,_0xdef1f8:0x341,_0x1c92a0:0x306,_0x31f708:0x364,_0x3770be:0x37a,_0x2b6458:0x276,_0x343f29:0x1ee,_0xe53b84:0x280,_0x91a2cd:0x177,_0x5c542d:0x3e7,_0x1f97fe:0x325,_0x39cb2b:0x392,_0x2338d0:0x18a,_0xeb68a2:0x190,_0x5a099c:0x235,_0x2af32f:0x395,_0x7a32be:0x31c,_0x4f0d12:0x39d},_0x268fd3={_0x5c6b11:0xae,_0x3d16ee:0x78,_0x5562c9:0x65,_0x570c66:0x64,_0x4b1cb2:0x135,_0x14ab02:0xd3,_0x1089fe:0x16,_0xc533e2:0x9c,_0x5ea1d6:0x156,_0x2ce96f:0xd0,_0x56b593:0xf3,_0xa55d6:0x25b,_0x18e40d:0x19a,_0x1f56f6:0x1f,_0xea5070:0x99,_0x427e80:0x16,_0x4fd1a0:0x50},_0x1a277a={_0x1c988:0x1cc,_0x15c948:0x170,_0x66ce54:0x1d},_0x34b317={_0x4c8b1e:0xc1,_0xa13962:0xee};function _0x143c34(_0x118ffb,_0x216582,_0x4bb31b,_0x485818){return _0x12584b(_0x485818- -0x140,_0x216582-0x6c,_0x4bb31b-0xfd,_0x216582);}const _0xcff9c9=createMcpToolName(_0x14a74f[_0x143c34(_0x54e88a._0x130b4f,0x3d6,_0x54e88a._0x39dcd9,_0x54e88a._0x3d8653)],_0x14a74f[_0x143c34(0x33f,0x2e5,_0x54e88a._0x3445b7,0x31d)]['name']);function _0x3611a7(_0x462e5a,_0x19f8fe,_0x331bcb,_0x4fdb4c){return _0x12584b(_0x462e5a- -0x2d3,_0x19f8fe-_0x34b317._0x4c8b1e,_0x331bcb-_0x34b317._0xa13962,_0x331bcb);}return defineTool({'name':_0xcff9c9,'description':_0x14a74f[_0x143c34(0x23d,0x2c7,_0x54e88a._0x4988ff,_0x54e88a._0x1aa6ca)][_0x143c34(_0x54e88a._0x584513,_0x54e88a._0x271a6f,0x215,0x2df)]??_0x143c34(_0x54e88a._0xdef1f8,_0x54e88a._0x1c92a0,0x44f,_0x54e88a._0x31f708)+_0x14a74f[_0x143c34(_0x54e88a._0x3770be,0x3c2,_0x54e88a._0x2b6458,0x31d)][_0x3611a7(0x1b6,_0x54e88a._0x343f29,_0x54e88a._0xe53b84,_0x54e88a._0x91a2cd)]+_0x143c34(_0x54e88a._0x5c542d,_0x54e88a._0x1f97fe,_0x54e88a._0x39cb2b,0x3ed)+_0x14a74f['serverName'],'inputSchema':toNuvinToolSchema(_0x14a74f[_0x3611a7(_0x54e88a._0x2338d0,0x224,_0x54e88a._0xeb68a2,_0x54e88a._0x5a099c)][_0x143c34(0x308,_0x54e88a._0x2af32f,_0x54e88a._0x7a32be,_0x54e88a._0x4f0d12)]),async *'execute'(_0x3be4b2){const _0xaf7cb9={_0x4f7016:0xe5,_0x13a916:0x15e},_0x38f13=await _0x14a74f[_0x4e5303(-0xb9,-0x119,-0xa0,-_0x268fd3._0x5c6b11)]['callTool']({'name':_0x14a74f['tool']['name'],'arguments':isJsonObject(_0x3be4b2)?_0x3be4b2:{}});function _0x4e5303(_0x54e15b,_0x5343a8,_0x278430,_0x4babf1){return _0x3611a7(_0x278430- -_0x1a277a._0x1c988,_0x5343a8-_0x1a277a._0x15c948,_0x5343a8,_0x4babf1-_0x1a277a._0x66ce54);}if(_0x38f13[_0x711b5b(-0xef,-0x11a,-0x1c7,-0x1d4)])throw new ToolExecutionError(formatMcpContent(_0x38f13),{'serverName':_0x14a74f[_0x4e5303(0x5c,_0x268fd3._0x3d16ee,_0x268fd3._0x5562c9,-_0x268fd3._0x570c66)],'toolName':_0x14a74f[_0x711b5b(-0xee,-_0x268fd3._0x4b1cb2,-0x1bd,-0x19a)][_0x4e5303(-0x23,_0x268fd3._0x14ab02,-_0x268fd3._0x1089fe,_0x268fd3._0xc533e2)]});yield createToolOutput(formatMcpContent(_0x38f13),{'serverName':_0x14a74f[_0x711b5b(-0x1bb,-_0x268fd3._0x5ea1d6,-_0x268fd3._0x2ce96f,-_0x268fd3._0x56b593)],'toolName':_0x14a74f[_0x711b5b(-0x185,-_0x268fd3._0xa55d6,-0x172,-_0x268fd3._0x18e40d)][_0x4e5303(_0x268fd3._0x1f56f6,_0x268fd3._0xea5070,-_0x268fd3._0x427e80,-_0x268fd3._0x4fd1a0)],'result':_0x38f13});function _0x711b5b(_0x584fe5,_0x7fc07b,_0x33b93e,_0x2e8c9a){return _0x3611a7(_0x2e8c9a- -0x324,_0x7fc07b-_0xaf7cb9._0x4f7016,_0x584fe5,_0x2e8c9a-_0xaf7cb9._0x13a916);}return void 0x0;}});}function resolvePrefix(_0x5d665a,_0x1cd8d1){return _0x1cd8d1['prefix']??_0x5d665a;}function buildMcpHttpHeaders(_0x26c344){const _0x1d984f={_0x1a0449:0x33a,_0x3d7ac4:0x422,_0x4ee7fd:0x16e,_0x425fd9:0xad,_0x31cff3:0x4d2,_0xd8915f:0x354,_0x347440:0x3f0,_0x5c4c45:0x379,_0x29b9c7:0x383,_0x461e7d:0x402,_0x46611c:0x588,_0x7e874a:0x545,_0x21dd13:0x50a,_0x24100c:0x4b2,_0x41342b:0x4e7,_0x2e7ab5:0x50a,_0x51adaf:0x238,_0x29fc44:0x15b,_0x4f2fac:0x465,_0x99ab2:0x434,_0x4de4a7:0x355,_0x102e04:0x13d,_0x2ae52a:0xbe,_0xc3b0eb:0x79,_0x4f466a:0x217,_0x1070a1:0x3af,_0x47aad0:0x3b1},_0xf49e30={_0x1ad097:0xa3,_0x5bf915:0x70},_0x4e3121={_0x20d95e:0x17c},_0xcfc321={..._0x26c344[_0x3af36f(0x49a,_0x1d984f._0x1a0449,0x501,_0x1d984f._0x3d7ac4)]??{}};_0x26c344[_0x1ec67f(_0x1d984f._0x4ee7fd,0x1c3,0x1e0,_0x1d984f._0x425fd9)]?.[_0x3af36f(0x387,_0x1d984f._0x31cff3,_0x1d984f._0xd8915f,_0x1d984f._0x347440)]===_0x3af36f(0x31f,_0x1d984f._0x5c4c45,_0x1d984f._0x29b9c7,_0x1d984f._0x461e7d)&&_0x26c344['auth']['token']&&_0xcfc321[_0x3af36f(0x50c,_0x1d984f._0x46611c,_0x1d984f._0x7e874a,_0x1d984f._0x21dd13)]===void 0x0&&(_0xcfc321[_0x3af36f(0x5d8,_0x1d984f._0x24100c,_0x1d984f._0x41342b,_0x1d984f._0x2e7ab5)]=_0x1ec67f(_0x1d984f._0x51adaf,0x22d,_0x1d984f._0x29fc44,0x152)+_0x26c344[_0x3af36f(0x4c5,_0x1d984f._0x4f2fac,0x483,_0x1d984f._0x99ab2)][_0x3af36f(0x503,_0x1d984f._0x4de4a7,0x4b3,0x41b)]);function _0x1ec67f(_0x3991af,_0x4b3868,_0x328aef,_0x8823fe){return _0x12584b(_0x3991af- -0x2f3,_0x4b3868-_0x4e3121._0x20d95e,_0x328aef-0xcd,_0x8823fe);}function _0x3af36f(_0x3a2811,_0x51da48,_0x46b165,_0x3e73c7){return _0x46bf5b(_0x3a2811-0x1ec,_0x46b165,_0x46b165-_0xf49e30._0x1ad097,_0x3e73c7- -_0xf49e30._0x5bf915);}return Object[_0x1ec67f(_0x1d984f._0x102e04,_0x1d984f._0x2ae52a,_0x1d984f._0xc3b0eb,_0x1d984f._0x4f466a)](_0xcfc321)[_0x3af36f(_0x1d984f._0x1070a1,0x3ab,0x34c,_0x1d984f._0x47aad0)]>0x0?_0xcfc321:void 0x0;}function getErrorMessage(_0x4bd6b0){const _0x104dee={_0x1894e1:0x262},_0x45b80e={_0x581223:0xdf,_0x34fbf6:0x1d7};function _0x261704(_0x57ef00,_0x5b5ac2,_0x444836,_0x572209){return _0x12584b(_0x5b5ac2- -_0x45b80e._0x581223,_0x5b5ac2-_0x45b80e._0x34fbf6,_0x444836-0x1bd,_0x572209);}return _0x4bd6b0 instanceof Error?_0x4bd6b0[_0x261704(0x321,0x2fc,0x3cd,_0x104dee._0x1894e1)]:String(_0x4bd6b0);}function isUnauthorizedError(_0x319f0c){const _0x5d927b={_0x21c9fa:0x106,_0x387bb4:0x180,_0x8ece84:0x18a},_0x3c66c8={_0x57e46f:0x2c},_0x58a1ee={_0x2e083b:0x70};function _0x19d6ea(_0x1e9cab,_0x40b246,_0x2c7214,_0x362b86){return _0x46bf5b(_0x1e9cab-0x2c,_0x40b246,_0x2c7214-0x16d,_0x1e9cab-_0x58a1ee._0x2e083b);}function _0x104541(_0x3e2050,_0x31818d,_0x2d8e13,_0x530583){return _0x12584b(_0x3e2050- -0x419,_0x31818d-0x159,_0x2d8e13-_0x3c66c8._0x57e46f,_0x2d8e13);}return _0x319f0c instanceof Error&&_0x319f0c[_0x104541(_0x5d927b._0x21c9fa,_0x5d927b._0x387bb4,0x114,_0x5d927b._0x8ece84)]['name']===_0x19d6ea(0x5b2,0x698,0x658,0x61d);}async function connectMcpServer(_0x35c2d1,_0x162106,_0x9586b6){const _0x56b16c={_0x3a52f2:0xfd,_0x356fb4:0x6d,_0x335285:0xd1,_0x409b36:0x65,_0x4f218e:0x12,_0x1e4568:0xa0,_0x345dea:0x1e2,_0x3443c2:0x129,_0x1a923d:0x1cf,_0x590c4a:0x64,_0x4e8d52:0x97,_0x5a4c2c:0x13,_0x370708:0x76,_0x4506c7:0x49,_0x5ac289:0xd6,_0x1a9967:0x29,_0x44ffb0:0x26,_0x5a14a5:0xc4,_0x568c0e:0x25,_0xf43ae0:0x9a,_0x15ef57:0x13,_0x43fea8:0x3e,_0x2de291:0xfc,_0x2f6e7b:0x4c,_0x13aa7d:0x36,_0x9a11f8:0x61,_0x29dd10:0x4b,_0x435f2d:0x1b,_0x59c539:0xf7,_0x202828:0xca,_0x2efe15:0x95,_0x23491f:0x77,_0x5846dd:0x12a,_0xb5ec57:0x104,_0x43d98f:0x25,_0x102e86:0x16c,_0x46beb5:0x5f,_0x30756e:0x60,_0x1f7c96:0x1,_0x32aec5:0x5a,_0x43a5a5:0xeb,_0x151606:0x4d,_0x2390c7:0x3f},_0x289014={_0x49ce40:0x59b,_0x3c6fef:0x520},_0x101b1f={_0x57250b:0x34,_0x5c18ed:0x28},_0x432575={_0x3039d0:0x4b6,_0x5c0de3:0x4f7},_0x18ad9e={_0x636ac7:0x47b},_0x3c861d={_0x44521d:0x159};function _0x564761(_0x25abfc,_0x401137,_0x1cc47f,_0x27ca7b){return _0x46bf5b(_0x25abfc-_0x3c861d._0x44521d,_0x25abfc,_0x1cc47f-0x1d9,_0x401137- -0x443);}function _0x9415d(_0x3fa2be,_0x5e3e80,_0x2cb683,_0x2d534c){return _0x46bf5b(_0x3fa2be-0xaa,_0x2d534c,_0x2cb683-0xbc,_0x5e3e80- -_0x18ad9e._0x636ac7);}const _0x5cb30a=new Client({'name':_0x564761(_0x56b16c._0x3a52f2,0x53,_0x56b16c._0x356fb4,_0x56b16c._0x335285),'version':_0x9415d(-0x77,-_0x56b16c._0x409b36,-_0x56b16c._0x4f218e,-_0x56b16c._0x1e4568)});if(_0x162106[_0x564761(0xbb,0x111,_0x56b16c._0x345dea,0x1ce)]===_0x9415d(0x13a,_0x56b16c._0x3443c2,0x64,_0x56b16c._0x1a923d)||_0x162106[_0x9415d(-0x79,-0x5f,-_0x56b16c._0x590c4a,0x78)]){if(!_0x162106[_0x9415d(-_0x56b16c._0x4e8d52,-0x5f,-_0x56b16c._0x4e8d52,_0x56b16c._0x5a4c2c)])throw new Error(_0x9415d(-0x12,-_0x56b16c._0x370708,-_0x56b16c._0x4506c7,-_0x56b16c._0x5ac289)+_0x35c2d1+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x162106[_0x9415d(0xca,_0x56b16c._0x1a9967,-_0x56b16c._0x44ffb0,-0x7d)]?.[_0x9415d(_0x56b16c._0x356fb4,-0x1b,-_0x56b16c._0x5a14a5,0xa8)]===_0x564761(-0x4b,_0x56b16c._0x5a4c2c,0x6d,-0x49)&&!_0x9586b6?.[_0x9415d(-0xee,-_0x56b16c._0x568c0e,-_0x56b16c._0xf43ae0,_0x56b16c._0x15ef57)])throw new Error(_0x564761(-0x18,-_0x56b16c._0x43fea8,0x3c,-_0x56b16c._0x2de291)+_0x35c2d1+_0x9415d(0x9d,_0x56b16c._0x2f6e7b,_0x56b16c._0x356fb4,_0x56b16c._0x13aa7d));const _0x326e31=buildMcpHttpHeaders(_0x162106),_0x527c46=_0x162106[_0x564761(-0x10,_0x56b16c._0x9a11f8,_0x56b16c._0x29dd10,0x52)]?.[_0x9415d(0x4,-_0x56b16c._0x435f2d,-_0x56b16c._0x59c539,-_0x56b16c._0x202828)]===_0x9415d(_0x56b16c._0x2efe15,-_0x56b16c._0x568c0e,-0xc7,-0x2f)&&_0x9586b6?.[_0x564761(_0x56b16c._0x3a52f2,0x13,-0x28,_0x56b16c._0x23491f)]?createMcpOAuthProvider({'serverName':_0x35c2d1,'callbackUrl':_0x9586b6['oauth'][_0x9415d(_0x56b16c._0x5846dd,0x134,0x1b7,0x101)],'storageDir':_0x9586b6[_0x9415d(-_0x56b16c._0xb5ec57,-_0x56b16c._0x43d98f,-0x3e,0x62)][_0x564761(_0x56b16c._0x102e86,0x153,0x101,0x1e2)],'config':_0x162106[_0x564761(0x113,_0x56b16c._0x9a11f8,0x5,-0x6c)],'onRedirect':_0x29ba4b=>_0x9586b6[_0x9415d(-0xee,-0x25,-0x19,-0x75)]?.[_0x9415d(0x121,0xe8,0x42,0x1d5)](_0x35c2d1,_0x29ba4b)}):void 0x0,_0x2820a0=new StreamableHTTPClientTransport(new URL(_0x162106[_0x9415d(0x13,-_0x56b16c._0x46beb5,_0x56b16c._0x30756e,-_0x56b16c._0x1f7c96)]),{'authProvider':_0x527c46,'requestInit':_0x326e31?{'headers':_0x326e31}:void 0x0});await _0x5cb30a[_0x9415d(0x125,0x101,0xa1,0x3b)](_0x2820a0);}else{if(!_0x162106['command'])throw new Error(_0x564761(-_0x56b16c._0x32aec5,-_0x56b16c._0x43fea8,-_0x56b16c._0x43a5a5,_0x56b16c._0x151606)+_0x35c2d1+_0x9415d(0x12a,_0x56b16c._0x2390c7,0x124,-_0x56b16c._0x4e8d52));const _0x57ca04=new StdioClientTransport({'command':_0x162106[_0x9415d(-0x93,-0x59,-0x91,-0x2d)],'args':_0x162106['args']??[],'env':_0x162106['env']});await _0x5cb30a['connect'](_0x57ca04);}return{async 'listTools'(){const _0x1ede0a={_0x504419:0x1b4};function _0x5cad41(_0x50fa3b,_0x1c5ff7,_0x1d7d37,_0x14f6dd){return _0x9415d(_0x50fa3b-_0x1ede0a._0x504419,_0x1c5ff7-0x51e,_0x1d7d37-0x119,_0x14f6dd);}return await _0x5cb30a[_0x5cad41(_0x432575._0x3039d0,_0x432575._0x5c0de3,0x48a,0x5a4)]();},async 'callTool'(_0x575408){const _0x5c83c8={_0x5966d7:0x3a2,_0x28d47a:0x48};function _0x20bc9e(_0x5c5737,_0x5e0f44,_0x185052,_0x1b39e8){return _0x564761(_0x185052,_0x5c5737- -0x53,_0x185052-0x1cc,_0x1b39e8-0x1be);}function _0x47b80c(_0x19f304,_0x543edc,_0x5e8c24,_0xa01653){return _0x9415d(_0x19f304-0x16e,_0x543edc-_0x5c83c8._0x5966d7,_0x5e8c24-_0x5c83c8._0x28d47a,_0x19f304);}return await _0x5cb30a[_0x20bc9e(0xb8,-_0x101b1f._0x57250b,_0x101b1f._0x5c18ed,0x13e)]({'method':_0x47b80c(0x453,0x402,0x3b8,0x3f2),'params':_0x575408},CallToolResultSchema);},async 'close'(){const _0x403d12={_0x32bc2d:0x12e,_0x2c3d9d:0x5c};function _0x3da821(_0x4a9db7,_0x3f7b2f,_0xddde07,_0x125319){return _0x564761(_0x3f7b2f,_0xddde07-0x4c3,_0xddde07-_0x403d12._0x32bc2d,_0x125319-_0x403d12._0x2c3d9d);}await _0x5cb30a[_0x3da821(0x4b5,_0x289014._0x49ce40,0x56d,_0x289014._0x3c6fef)]();}};}async function createMcpToolsFromServers(_0x229c94){const _0x44e8bd={_0x2d0b3a:0x187,_0x593345:0x15a,_0x3ff011:0x183,_0x5ba9cd:0x96,_0x2ed5e1:0x2b8,_0x9202de:0x1f2,_0x59d985:0x38a,_0x1a8f0a:0x237,_0x480c10:0xde,_0x40c316:0x2af,_0x2f23ce:0x24f,_0x59763b:0x45,_0x50a9f3:0x8,_0x9ed988:0x9e,_0xa8f30b:0x237,_0x48e43f:0x2fb,_0x1a2d8b:0x2bf,_0x2bc2eb:0x1c7,_0x4f50a8:0x116,_0x310892:0x2e,_0x39b5e0:0x50,_0x189f2e:0xcc,_0x3b6225:0xe},_0x19356e={_0x17f595:0x3ec,_0x223fd8:0x483,_0x1ca6d0:0x187,_0x32ffc1:0x17e,_0x31ff11:0x14e},_0x9953f6={_0x5da220:0xa3},_0x52d837={_0x1f2ded:0x420,_0x1448cd:0x133,_0x5d04b4:0xfe},_0x4c58cd=_0x229c94[_0x58b0fd(-_0x44e8bd._0x2d0b3a,-_0x44e8bd._0x593345,-_0x44e8bd._0x3ff011,-0x1ac)]??connectMcpServer;function _0x5641af(_0x97fa7d,_0x541e59,_0x468a9f,_0x7dbbc2){return _0x12584b(_0x541e59- -_0x52d837._0x1f2ded,_0x541e59-_0x52d837._0x1448cd,_0x468a9f-_0x52d837._0x5d04b4,_0x7dbbc2);}const _0x27a4f0=[],_0x4655ca={},_0x15321e=[];for(const [_0x8a8d7b,_0x341d1d]of Object['entries'](_0x229c94[_0x5641af(0x152,_0x44e8bd._0x5ba9cd,0x9c,0xbd)]??{})){if(_0x341d1d['enabled']===![]){_0x4655ca[_0x8a8d7b]={'status':_0x58b0fd(-_0x44e8bd._0x2ed5e1,-0x291,-_0x44e8bd._0x9202de,-_0x44e8bd._0x59d985)};continue;}try{const _0x10c222=await _0x4c58cd(_0x8a8d7b,_0x341d1d,_0x229c94[_0x58b0fd(-0x235,-0x216,-0x281,-_0x44e8bd._0x1a8f0a)]);_0x27a4f0[_0x5641af(0x104,0x2e,-0x94,_0x44e8bd._0x480c10)](_0x10c222);const _0x7d01fb=await _0x10c222[_0x58b0fd(-_0x44e8bd._0x40c316,-_0x44e8bd._0x2f23ce,-0x33e,-0x1ed)]();let _0x4a5e90=0x0;for(const _0x2df2be of _0x7d01fb['tools']){const _0xa0fffa=_0x229c94[_0x5641af(_0x44e8bd._0x59763b,-_0x44e8bd._0x50a9f3,-0xf,_0x44e8bd._0x9ed988)]?.[_0x8a8d7b]?.[_0x2df2be[_0x58b0fd(-_0x44e8bd._0xa8f30b,-_0x44e8bd._0x48e43f,-_0x44e8bd._0x1a2d8b,-_0x44e8bd._0x2bc2eb)]];if(_0xa0fffa===![])continue;_0x4a5e90+=0x1,_0x15321e[_0x5641af(_0x44e8bd._0x4f50a8,_0x44e8bd._0x310892,-_0x44e8bd._0x39b5e0,_0x44e8bd._0x189f2e)](createMcpTool({'serverName':resolvePrefix(_0x8a8d7b,_0x341d1d),'tool':_0x2df2be,'client':_0x10c222}));}_0x4655ca[_0x8a8d7b]={'status':_0x5641af(-0xc1,0x11,-0xa6,-_0x44e8bd._0x3b6225),'toolCount':_0x4a5e90};}catch(_0x26f17f){_0x4655ca[_0x8a8d7b]=isUnauthorizedError(_0x26f17f)?{'status':'authRequired','message':getErrorMessage(_0x26f17f)}:{'status':'error','message':getErrorMessage(_0x26f17f)};}}function _0x58b0fd(_0x842dc1,_0x575a42,_0x3dfaa3,_0x451c62){return _0x12584b(_0x842dc1- -0x6c0,_0x575a42-_0x9953f6._0x5da220,_0x3dfaa3-0x156,_0x451c62);}return{'tools':_0x15321e,'servers':_0x4655ca,async 'close'(){const _0xe4c5df={_0x1f9f91:0x50,_0x133d98:0x155};function _0x13dbc0(_0xf0ce97,_0x30d9f3,_0x24f79c,_0x1c3f01){return _0x58b0fd(_0x1c3f01-0x3dc,_0x30d9f3-_0xe4c5df._0x1f9f91,_0x24f79c-_0xe4c5df._0x133d98,_0xf0ce97);}function _0x32f68f(_0x1de757,_0x546904,_0x3e4bb9,_0x1ebf20){return _0x58b0fd(_0x3e4bb9-0x5a0,_0x546904-0x1b4,_0x3e4bb9-0xbd,_0x1de757);}await Promise[_0x32f68f(0x44d,0x410,_0x19356e._0x17f595,_0x19356e._0x223fd8)](_0x27a4f0[_0x13dbc0(0x1b5,_0x19356e._0x1ca6d0,_0x19356e._0x32ffc1,_0x19356e._0x31ff11)](_0x177ca2=>_0x177ca2['close']()));}};}function getCommand(_0x365ca9){const _0x3105b6={_0x42698f:0xa0,_0x2760ff:0xb,_0x32a159:0x26d,_0x4d1923:0x15d,_0x5d868f:0x2a8,_0x2f393e:0x27d,_0x5d68a9:0x14a,_0x11ee5d:0x10a,_0xfdfc30:0x108,_0xe692d2:0x12a},_0x48f3d4={_0x257154:0x1a2,_0x55039e:0x4b};function _0x35af58(_0xd03f89,_0x48fb1b,_0x3c734a,_0x29fe85){return _0x46bf5b(_0xd03f89-0x19d,_0x3c734a,_0x3c734a-0x12c,_0x29fe85- -0x35a);}if(_0x365ca9&&typeof _0x365ca9===_0x35af58(_0x3105b6._0x42698f,-_0x3105b6._0x2760ff,0x6b,0xcb)&&!Array[_0x2a6fcd(0x17a,_0x3105b6._0x32a159,_0x3105b6._0x4d1923,0x235)](_0x365ca9)&&typeof _0x365ca9[_0x2a6fcd(_0x3105b6._0x5d868f,0x272,_0x3105b6._0x2f393e,0x23d)]==='string')return _0x365ca9[_0x35af58(_0x3105b6._0x5d68a9,_0x3105b6._0x11ee5d,0x61,0xc8)];function _0x2a6fcd(_0x245625,_0x447524,_0x23c042,_0x4189f5){return _0x12584b(_0x4189f5- -_0x48f3d4._0x257154,_0x447524-0x191,_0x23c042-_0x48f3d4._0x55039e,_0x245625);}return _0x35af58(0x259,_0x3105b6._0xfdfc30,_0x3105b6._0xe692d2,0x1cd);}var MOCK_WORKSPACE_LISTING=[_0x46bf5b(0x60d,0x4d1,0x603,0x561),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0x12584b(0x3cc,0x3dd,0x36d,0x47f),_0x46bf5b(0x53a,0x5ee,0x4a3,0x515),_0x46bf5b(0x5a1,0x674,0x620,0x5ab),_0x46bf5b(0x4a4,0x44c,0x5c9,0x4ec),'src/examples/demo.ts','src/agent/extension-registry.ts',_0x46bf5b(0x57f,0x57c,0x472,0x523),_0x46bf5b(0x42a,0x521,0x3e5,0x452),_0x12584b(0x481,0x3d3,0x4a0,0x431),_0x12584b(0x494,0x46b,0x579,0x4e0),_0x46bf5b(0x469,0x57e,0x5fe,0x536),'src/agent/agent.test.ts',_0x12584b(0x49c,0x3e2,0x44c,0x521),_0x12584b(0x3e0,0x444,0x482,0x33b),_0x12584b(0x4d3,0x3f3,0x546,0x49d)][_0x46bf5b(0x4f8,0x4ac,0x5bd,0x500)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x12584b(0x470,0x4b5,0x48a,0x410),'description':_0x46bf5b(0x565,0x485,0x51d,0x519),'input_schema':{'type':_0x12584b(0x3e2,0x423,0x375,0x3f7),'properties':{'command':{'type':_0x46bf5b(0x417,0x50f,0x3cf,0x479)}},'required':[_0x12584b(0x3df,0x3f1,0x3e5,0x38e)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3b7455){return{'output':_0x3b7455,'structured':{'value':_0x3b7455}};}function createUnknownToolResult(_0x110136){const _0x3ff4c5={_0x4bc3b4:0xb,_0x33b5a5:0xbc,_0x343a89:0x40,_0x27145f:0x9e,_0x2e17ac:0xf},_0x3b4d15={_0x35426a:0x3e2,_0x788d20:0xf6},_0x5a8ff6={_0x2f3cba:0xce,_0xecaef2:0x1d2};function _0x219ec7(_0x5f2d22,_0x533fd8,_0x499d6d,_0x348ca2){return _0x12584b(_0x5f2d22-_0x5a8ff6._0x2f3cba,_0x533fd8-_0x5a8ff6._0xecaef2,_0x499d6d-0x128,_0x348ca2);}function _0x41849d(_0x212684,_0x41e210,_0x2f3741,_0x47030f){return _0x12584b(_0x2f3741- -_0x3b4d15._0x35426a,_0x41e210-0x6a,_0x2f3741-_0x3b4d15._0x788d20,_0x212684);}return{'callId':_0x110136['id'],'toolName':_0x110136[_0x41849d(0x175,0x146,0xa7,0x33)],'status':_0x41849d(0x53,0x25,_0x3ff4c5._0x4bc3b4,_0x3ff4c5._0x33b5a5),'output':_0x41849d(_0x3ff4c5._0x343a89,-_0x3ff4c5._0x27145f,-0x18,_0x3ff4c5._0x2e17ac)+_0x110136['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function _0x46bf5b(_0x60c3d8,_0x45310c,_0x43ac65,_0x585d0f){return _0x5452(_0x585d0f-0x339,_0x45310c);}function createSuccessToolResult(_0x3c2a62,_0x264f53){const _0x2402d1={_0x2dbdc3:0x118,_0xc88699:0x134};function _0x14f059(_0x31176e,_0x53062c,_0x2085bd,_0x38c090){return _0x46bf5b(_0x31176e-0x198,_0x31176e,_0x2085bd-0xb4,_0x38c090- -0x5b6);}return{'callId':_0x3c2a62['id'],'toolName':_0x3c2a62[_0x14f059(-_0x2402d1._0x2dbdc3,-0x1ca,-_0x2402d1._0xc88699,-0xea)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x3c2a62['input']),'exitCode':0x0},'chunks':[_0x264f53],'meta':createMeta()};}function createMockToolRuntime(){const _0x1d6932={_0x4985a1:0x12f},_0x4b0ee9={_0x244d4b:0x45},_0x1a8b0e=async(_0xeade48,_0x414948)=>{if(_0xeade48[_0xf352d5(0x238,0xdb,0x14e,0x91)]!=='Bash')return createUnknownToolResult(_0xeade48);function _0xf352d5(_0x4c23cf,_0x346f06,_0x44f626,_0x30919f){return _0x5452(_0x44f626- -_0x4b0ee9._0x244d4b,_0x30919f);}const _0x37de53=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0xeade48,_0x37de53);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x53191c,_0xfe963c){function _0x4cf2d0(_0x41afeb,_0x41a949,_0x40cac9,_0x45ad03){return _0x5452(_0x41a949-0x31,_0x41afeb);}return await Promise['all'](_0x53191c[_0x4cf2d0(_0x1d6932._0x4985a1,0x16d,0xa0,0x1fe)](async _0x544e29=>{return await _0x1a8b0e(_0x544e29,_0xfe963c);}));},async 'execute'(_0x9f946a,_0x36b70f){return await _0x1a8b0e(_0x9f946a,_0x36b70f);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x5314cf={_0x5dc619:0x180,_0x217043:0x17f},_0x2d69ca={_0x1e1f71:0xad};function _0x38a4d4(_0x15e1cc,_0x28c1c3,_0x5808be,_0x548751){return _0x12584b(_0x5808be- -0x58c,_0x28c1c3-0x90,_0x5808be-_0x2d69ca._0x1e1f71,_0x15e1cc);}return delegatedRunCounter+=0x1,_0x38a4d4(-_0x5314cf._0x5dc619,-0xdc,-_0x5314cf._0x217043,-0x265)+delegatedRunCounter;}function _0x226c(){const _0x39f9e5=['u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','C2L0ztO','Dg9VBfjLC3vSDhm','zgLYzwn0B3j5','v2vIrMv0y2G','C2LNBMfS','Aw1Hz2vZ','zgLZywjSzwq','ChvIBgLZAgvKqxq','B3bLBMfPlxjLC3bVBNnLCW','sw52B2TLq29TBwfUza','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','zgvSzwDHDgvKlxj1BI0','u0HfteW','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','yxnZAwDU','BgLZDfrVB2XZ','y2HHCKnVzgvbDa','B2f1DgG','DgL0Bgu','u2TPBgWGjW','C3rKB3v0','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','ywXSB3DLzfrVB2XZ','C2nVCgvZ','zgf0zxrPBwu','yxjYyxK','uhvIBgLZAgvKoIa','DhLWzq','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','zgvZy3jPChrPB24','mZa5munAC2jRDG','r0LgodLH','Aw1Hz2u','AxnfCNjVCG','C3rHCNrZv2L0Aa','Dw5PB24','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','D2vI','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','y29KzvzLCMLMAwvY','Dg9ju09tDhjPBMC','te9dquXbufbeqvrb','zw51Bq','CMvJB3jK','AxntEw1IB2XPy0XPBMS','yMvHCMvY','A2v5CW','y29UBMvJDgvK','BwfW','Aw5JBhvKzq','CMvSyxrPDMu','C2HPzNq','C3rYAw5N','A2v5yMLUzgLUz3m','D2LUmZi','CMvXDwLYzwq','z29Vz2XLq3nLq3G','Dg9tDhjPBMC','C3rHDhvZvgv4Da','y29UDgv4Da','Dg9VBenHBgXjza','tuLnrtOG','iYmGu2TPBgW6ia','tgLUzsa','igj5DgvZ','C3r5Bgu','AxneAxjLy3rVCNK','zM9VDgvY','C2vZC2LVBKLK','mZqXotG1ExPRrxjj','Dg9Rzw4','ugf0AcbPCYbUB3qGysbMAwXLoIa','zw50CMLLCW','Dg9vChbLCKnHC2u','y29ZDa','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','ChvZAa','AgvHzgvYCW','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','AxngAw5PDgu','ywrK','BNv2Aw4','lNbUzW','Cgf0DgvYBG','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','lunVBw1HBMq','zMLSzvbHDgG','ugfJA2fNzxm','CgXHAw4','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','B3jPz2LUvg9VBenHBgXjza','Dg9VBa','C3rHDgu','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y29UzMLN','yxv0Aa','AxndB250zxH0','CgLWzq','z29Vz2XLq3nLs2v5','DxrTx3rLCM0','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','y2XPzw50x3nLy3jLDf9WB3n0','DhjPBuvUza','yNL0zuXLBMD0Aa','DgfZAW','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZlG','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','seLhsa','BgLUAW','qMfZAa','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','DgLTzvTKyxrLDgLTzv0','w1bFxL1BxhnCu10QpW','Aw5KzxHpzG','B3v0Chv0','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','u0Lhs0Lmta','rMv0y2GGDgLTzwqGB3v0','C2vYDMvY','ntaXodK1nMDqswjOuW','ig1Z','DxrTx2nHBxbHAwDU','AhjLzG','y29TBwfUzhm','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','ywDLBNrjza','zMLSzq','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','u3rHCNrLzcbHz2vUDcbYDw4G','lMPWzW','zMLYC3q','ls1NBg9Ipq','BMfTzq','rMv0y2GGywjVCNrLzcbIEsb1C2vY','y29UBMvJDgLVBG','v2LUr2v0','BgLUzuvUza','B3jPz2LUywW','CNnZ','Aw5JBhvKzxm','y29Uy2f0','Ec1HCgKTA2v5','r2XVyG','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','ow1PEMHfAa','C2vZC2LVBG','zgfYAW','Dg9VBhmVy2fSBa','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','Cgf0DgvYBIbPCYbYzxf1AxjLza','wZ0+nY04kcLD','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','B3bLBMfPlxjLC3bVBNnLCY13CW','DxrTx2nVBNrLBNq','C3bSAxq','y2fUy2vS','BgfUzW','ls1MB2XSB3C','zxf1ywXZ','tunqihrVB2WG','zgf0zvjLC3rYAwn0','y3DK','CMvZB2X2zq','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','y2XVC2u','yxjNDw1LBNrZvgv4Da','Aw50zwDLCG','zNjVBq','yMfZzty0','y29UDgvUDa','C3rKzxjY','BM9Uzq','CNvUBMLUzW','tM8GCMvZDwX0CYbMB3vUzc4','AwzYyw1L','yxnJAwK','C2vYDMvYCW','CNvUswq','yxv0BW','mJCWD3DgyNH3','Dg9Rzw5Z','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','tg9HzgvKigzYB206ia','AM9PBG','t0zg','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','CMvMCMvZAf90B2TLBG','DxnLCM5HBwu','Ahr0CdO','Agv4','Aw5ZDhj1y3rPB25Z','r3jLCa','B25Jzq','q29Tu3bLyW','z2v0','AgLNAa','zgf0yq','mZi5mZu2D3r4DgTb','yMfZzw5HBwu','CMvTB3zL','ls1YzwDLEha','ChjVDg9JB2W','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','BxrPBwu','CgfJA2fNzs5QC29U','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','ygbGANnVBGO','yM0Ynq','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','CMvJzw5JEurHExm','B2C6DxbKyxrLzf90Aw1L','ANnVBG','zw52','yxjNDw1LBNriAw50','Aw5WDxrty2HLBwe','CgfYC2u','C2TPBgXZ','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','v2vIu2vHCMnO','BwnFzwLK','zMvUy2vK','BhmGlwXH','CMCUzxHL','C2v0','zxHPDcbJB2rLia','y2fJAgvK','l3vZCI9SB2nHBc9IAw4VCMC','BwLU','tg9HzfnRAwXS','qxnZAwDUvgfZAW','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','C3rHDhvZ','zxH0BMfTzq','y29Kzq','C2vHCMnOvhLWzq','lu5Vtg9NBW','C3jJl3nOyxjLzc90ExbLCY50CW','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','l3vZCI9IAw4VC2G','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','C2L6zq','ls1NBg9I','DgLTzw91De1Z','DMvYAwzPzxi','CgLK','BgLUzxm','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','zgvSzxrL','vw5HDxrOB3jPEMvKrxjYB3i','BgfUz18','ywrKrxzLBNrmAxn0zw5LCG','A2LSBgvK','yM9VBgvHBG','C2vYDMvYtMfTzq','ChjVCgvYDgLLCW','Aw1Hz2uVD2vICa','C2HLBgXqyxrO','BM93','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','C3LTBgLUAW','CMvXDwvZDa','ywXS','CMLWz3jLCa','Cg9W','yxr4','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','DhjHBNnWB3j0','ywjVCNq','BwvTB3j5','l3bPza','lNrTCc4','zgvMyxvSDen3za','C2HHmJu2','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','ndC0ntbtBhHWD1C','vMLLD0zPBgu','tNv2Aw4','Bg9HzenVBw1HBMq','zhj5uNvU','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','y29UC3rYDwn0B3i','B25szwrPCMvJDa','BMv3vgv4Da','yxr0CG','lMPWzwC','zgLNzxn0','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','AxngAwXL','Bw9Kzq','y2vPBa','ls1OAwrKzw4','u2HLBgWGBM90igzVDw5KoIa','qMvHCMvYia','lI4U','igzYB20G','C3vIyxjYyxK','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','ls1JB2X1Bw4','xg5DkJ8','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','ywDLBNrZ','DxrMoa','zg9TywLUCW','ywn0AxzL','qxv0Ag9YAxPHDgLVBG','AxrLBxm','y29UBMvJDa','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','y29UDgvUDc1Szw5NDgG','tuvesvvn','B2zMC2v0','CgfYC2vjBNq','z2L0qNjHBMnO','AhLKCMf0zu1LDge','DhvWBgu','ls1MAwXLCW','zxjYB3jnzxnZywDL','y3jSzG','z2XVyG','yxbWBgLJyxrPB24VANnVBG','yw50AhjVCgLJlw1LC3nHz2vZ','u2L6ztOG','Bg9JywXLq29TCgfYzq','AwDUB3jL','yxjNDw1LBNroyw1LCW','yw5ZAte2','DgHLBG','y291BNq','mJCZodKWnJrmthHJrLi','zMfPBgvK','y29UDgv4DeXPBMS','vMLLD2vKigLTywDLigzPBgu6ia','C3rVCMfNzurPCG','cGPbuKDvtuvovfm6ia','Dgv4Dc9ODg1S','CMvWBgfJzq','CMvZDwX0','CxvLCNK','nZG2muXmrffNsG','uhjVz3jHBuzPBgvZkhG4nIK','y29UDgvUDc10ExbL','B2XKvgv4Da','B2zM','BwnFy2LK','DxbKyxrL','Bwf4','Ahr0Ca','BgLUzvrLEhq','z29Vz2XLlwnZzq','BhnW','uhjVz3jHBuzPBgvZ','ywjVCNrLza','D2HPy2GGCMC','C3jJl2fNzw50l2fNzw50lNrZ','C2fMzq','CMvHC29U','Bg9HzfnRAwXS','y2fSBgjHy2TvCMW','zgv0ywLS','Cgf0Aa','DgHPBMTPBMC','Dhj1zwnVBg9Y','ndeZmZu5mMj3tuPUyq','z2nSAwq','zgvMyxvSDfrPBwvVDxrnCW','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','BgLNAhq','sw52ywXPzcbvuKWGCgfYyw1LDgvY','BxrPBwvnCW','BM9Zy3jPChq','AgvHzgvY','ignVBxbSzxrLzc4','C3rKAw8','B3b0Aw9UywW','C291CMnL','rM91BMqG','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','CMvNAw9U','zgLZy292zxj5u3rHDgu','lMDPzG','qxzHAwXHyMXLignVBw1HBMrZoG','igj5DgvZigv4y2vLzhmG','DxrTx21LzgL1Bq','rgv0ywLSoIa','mxniy1DZuW','CMfUzg9T','Dg9VBhm','BgLUzu51Bq','y2XLyw51Ca','Ahr0Chm6','DhjPBq','DgvZDa','l2jPBI9YzW','AhrTBfnUAxbWzxq','Aw1Hz2uVCg5N','C2XPy2u','ru5pru5u','zMLSDgvY','Bwf4qNL0zxm','te9x','y2f0y2G','BwnWxW','zw5K','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','tunqihnLCNzLCIa','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','ienHDxnLoIa','y29TCgXLDgvK','C2vHCMnOugfYyw1Z','Dg9mB3DLCKnHC2u','C29YDa','ls0T','vw5RBM93BIb0B29SoIa','C3vKBW','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','Bwv0yxrHz3m','C25PChbLDa','A2LSBa','CgfZC3rOCM91z2G','yM9KEq','l2jPBI9IyxnO','mc4WlJa','lNDLyNa','BgL0zxjHBa','Dhj1BMm','AxnbCNjHEq','uKLgrG','DxjS','BgLUzvn0yxj0','BwvZC2fNzq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','zMLUywXnzxnZywDL','BgvUz3rO','y29TBwfUza','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','yM94zwq','B2jQzwn0','yMLYDgH0Aw1L','DxrTx3nVDxjJzq','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','ywXSB3DLzerPCNm','zgLYBMfTzq','CgXHDgzVCM0','Aw1Hz2uVANbLzW','sfruuca','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','zxjYB3i','BNvTyMvY','BgLTAxq','qwDLBNqGCNvUia','l3vZCI9IAw4VyMfZAa','Dgv4Da','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','C2vUza','v0vcua','yxbPs2v5','zMLUywXnzxnZywDLvgv4Da','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','ig1HDgnO','y2XPzw50sw5MB3jTyxrPB24','C3rYAw5NAwz5','Ag9ZDa','AgfZ','C2nYAxb0','y2XPzw50','m0vZAerpsq'];_0x226c=function(){return _0x39f9e5;};return _0x226c();}async function resolveDelegatedAgentOptions(_0x3640f5,_0x1781f4){return typeof _0x3640f5==='function'?await _0x3640f5(_0x1781f4):_0x3640f5;}function getDelegatedAgentDefinition(_0x5b4ad9,_0xfa3bc7){const _0xef42fd={_0x2e32c6:0x60,_0x32ff6f:0x103};function _0x29ca84(_0x5b1348,_0x3cc014,_0x1123e1,_0x572960){return _0x46bf5b(_0x5b1348-0x151,_0x572960,_0x1123e1-_0xef42fd._0x2e32c6,_0x3cc014- -_0xef42fd._0x32ff6f);}return _0x5b4ad9[_0x29ca84(0x38d,0x473,0x557,0x3f8)]?.[_0xfa3bc7];}function createRunSummary(_0x1609b0){const _0x44bde6={_0x1f34dc:0x42,_0xc26937:0x22,_0x1a5f33:0x7c,_0x4f1ce:0x2b,_0x5f4103:0x57,_0x758c2e:0x6f,_0x547598:0x7e,_0x1e90a8:0x15,_0x4c80af:0xb,_0x11998c:0x9f,_0x118da3:0x117,_0xf145e9:0x158,_0x4c375a:0x2bb,_0x49ea52:0x45a,_0x2c3b85:0x46c,_0x3945ed:0xba,_0x22e3e7:0x7d,_0xe00bb9:0x90,_0x16c54d:0x29b,_0x1a5c0d:0x42a,_0x4ed251:0x53f,_0x5628a3:0x566},_0x4d6f88={_0x47aa8e:0xf8,_0x3f19b8:0x84,_0x2d6664:0x51c},_0x45c1a1={_0x153280:0x155,_0x10f368:0x0,_0x46553c:0x11a};function _0xfffce8(_0x492370,_0x1ec897,_0x11c446,_0x3820e9){return _0x46bf5b(_0x492370-_0x45c1a1._0x153280,_0x1ec897,_0x11c446-_0x45c1a1._0x10f368,_0x3820e9- -_0x45c1a1._0x46553c);}function _0x46b47c(_0x56d565,_0x39e6d0,_0x5238ff,_0x37867f){return _0x46bf5b(_0x56d565-_0x4d6f88._0x47aa8e,_0x5238ff,_0x5238ff-_0x4d6f88._0x3f19b8,_0x39e6d0- -_0x4d6f88._0x2d6664);}return{'runId':_0x1609b0[_0x46b47c(-_0x44bde6._0x1f34dc,-_0x44bde6._0xc26937,0x28,_0x44bde6._0x1a5f33)],'agentId':_0x1609b0[_0x46b47c(-_0x44bde6._0x4f1ce,-_0x44bde6._0x5f4103,-_0x44bde6._0x758c2e,-_0x44bde6._0x547598)],'sessionId':_0x1609b0[_0xfffce8(0x30d,0x315,0x3c7,0x36f)],'status':_0x1609b0[_0x46b47c(0x1d,_0x44bde6._0x1e90a8,_0x44bde6._0x4c80af,_0x44bde6._0x11998c)],'parentSessionId':_0x1609b0['parentSessionId'],..._0x1609b0[_0x46b47c(-_0x44bde6._0x118da3,-0x7d,0x1,-_0x44bde6._0xf145e9)]!==void 0x0?{'originToolCallId':_0x1609b0[_0xfffce8(0x331,_0x44bde6._0x4c375a,_0x44bde6._0x49ea52,0x385)]}:{},..._0x1609b0[_0xfffce8(0x3f6,0x3ea,0x51c,_0x44bde6._0x2c3b85)]!==void 0x0?{'errorMessage':_0x1609b0[_0x46b47c(0xd7,0x6a,_0x44bde6._0x3945ed,0x149)]}:{},..._0x1609b0[_0x46b47c(_0x44bde6._0x22e3e7,0x7e,_0x44bde6._0xe00bb9,-0x2e)]?.[_0xfffce8(0x3b4,0x2f9,_0x44bde6._0x16c54d,0x306)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1609b0[_0xfffce8(_0x44bde6._0x1a5c0d,_0x44bde6._0x4ed251,_0x44bde6._0x5628a3,0x480)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x4a65d6,_0x133907){const _0x4326a7={_0x477823:0x235,_0x374229:0x228,_0x51fc5f:0x1df,_0x5cd8ed:0x2a4,_0x34844f:0x278,_0x29f4fe:0x314},_0x25d08f={_0x21cf35:0x47};function _0x1ac717(_0x19afed,_0xd6aea1,_0x1bdf9e,_0x12f5f7){return _0x46bf5b(_0x19afed-0x17f,_0xd6aea1,_0x1bdf9e-0x1e,_0x1bdf9e- -0x71e);}const _0x1a06d0=createRunSummary(_0x4a65d6);function _0xd43e9d(_0x51d7d9,_0x4a026c,_0x1c7e5e,_0x577edf){return _0x46bf5b(_0x51d7d9-0x195,_0x4a026c,_0x1c7e5e-_0x25d08f._0x21cf35,_0x1c7e5e- -0x25b);}const _0x5739f4=_0x1a06d0[_0xd43e9d(_0x4326a7._0x477823,_0x4326a7._0x374229,_0x4326a7._0x51fc5f,_0x4326a7._0x5cd8ed)];return createToolOutput(typeof _0x5739f4===_0x1ac717(-0x2ac,-_0x4326a7._0x34844f,-0x2a5,-_0x4326a7._0x29f4fe)&&_0x5739f4['length']>0x0?_0x5739f4:_0x133907,_0x1a06d0);}function getRunTerminalErrorMessage(_0x1f1fbc){const _0xd7bc16={_0x4941ee:0x107,_0x499d72:0x50,_0x31d5c4:0x27,_0x56b728:0x470},_0x207955={_0x22168b:0x27,_0xd1ee7:0x1dc};function _0x315a4e(_0x5147d5,_0x536fb7,_0x3ab2d7,_0x6406f3){return _0x12584b(_0x5147d5- -_0x207955._0x22168b,_0x536fb7-_0x207955._0xd1ee7,_0x3ab2d7-0x2b,_0x536fb7);}const _0x4383d4=_0x1f1fbc?.[_0x215058(_0xd7bc16._0x4941ee,_0xd7bc16._0x499d72,-0x86,0x4b)][_0x215058(-0xb3,-_0xd7bc16._0x31d5c4,0x9a,-0x10)]['at'](-0x1);if(_0x4383d4?.['status']===_0x215058(0x10,-0x72,-0x8c,-0x26)&&_0x4383d4[_0x315a4e(0x44e,0x492,0x3c8,_0xd7bc16._0x56b728)]['trim']()[_0x215058(-0x11d,-0x57,-0x49,-0x35)]>0x0)return _0x4383d4['output'];function _0x215058(_0x4d9f91,_0x2f6388,_0x1269e4,_0x24e4d4){return _0x46bf5b(_0x4d9f91-0xb6,_0x2f6388,_0x1269e4-0x129,_0x24e4d4- -0x456);}return void 0x0;}function formatAbortedRunMessage(_0x5e672b,_0x433b4f){const _0x204090={_0x92d8c:0x5af,_0x458124:0x608,_0x1a5f67:0x2e9,_0x58cb4f:0x249},_0x1e76a8={_0x457a26:0x191,_0x54444e:0x138},_0x39d2f3='Agent\x20run\x20'+_0x5e672b+'\x20was\x20aborted.';if(!_0x433b4f||_0x433b4f[_0x48c9fc(0x54f,_0x204090._0x92d8c,0x558,_0x204090._0x458124)]()[_0x15587d(_0x204090._0x1a5f67,_0x204090._0x58cb4f,0x28e,0x389)]===0x0||_0x433b4f===_0x39d2f3)return _0x39d2f3;function _0x48c9fc(_0x180b41,_0x48934e,_0x355158,_0x4791ea){return _0x46bf5b(_0x180b41-0xe5,_0x355158,_0x355158-0x1d,_0x48934e- -0x21);}function _0x15587d(_0x4f136f,_0x596454,_0x308be1,_0x2048d6){return _0x46bf5b(_0x4f136f-_0x1e76a8._0x457a26,_0x2048d6,_0x308be1-0x6,_0x4f136f- -_0x1e76a8._0x54444e);}return _0x39d2f3+_0x48c9fc(0x499,0x3e6,0x337,0x436)+_0x433b4f;}function createAssignTaskTool(_0x5771d9){const _0x29a116={_0x5621cf:0xb5,_0x587b94:0x88,_0x2d2136:0x71,_0x45d296:0x13c,_0x35e244:0xb3,_0x3ebd69:0x14c,_0x1096b0:0x133,_0x218028:0x13f,_0x322615:0xec,_0x4af672:0xfc,_0x11dec6:0x39,_0x580a0e:0x198,_0x507ff3:0xfc,_0x5a852e:0x1bd,_0x12a749:0x1a5,_0x1dc9ac:0xb0,_0x37a02e:0x143,_0x4fe5ac:0x3b,_0x158cc9:0x151,_0x4d1e61:0xc7,_0x319ccb:0x160,_0x22bb4c:0x36},_0x5dbf14={_0x162cd1:0x2c1,_0x5a8b9a:0x381,_0x51f86a:0x2df,_0x553137:0x381,_0x543881:0x443,_0x42f576:0x39d,_0x42b47e:0x3c5,_0x315795:0x3e5,_0x215cb5:0x33b,_0x2482fe:0x32c,_0x1d0e27:0xb1,_0x471a06:0x1b5,_0x2f2744:0xbe,_0x204cc2:0xa6,_0x3e1683:0x5,_0x22d13f:0xf5,_0x25efbb:0x4d8,_0x236e4e:0x8c,_0x16ce6b:0x25,_0x1e46ea:0x46,_0x2e752e:0x4e,_0x28dd55:0x8,_0x335436:0x3e2,_0x4f1a86:0x5d,_0x3d26ee:0x15f,_0x245135:0x36b,_0x32e8d7:0x3fa,_0x2468b2:0xbd,_0x1a41af:0x14d,_0x4e4b65:0x20d,_0x1f7dfa:0x251,_0x139756:0x2d4,_0x357081:0x426,_0x3a655c:0x3ae,_0x478e77:0x465,_0x3be1c8:0x431,_0x3f94ee:0x211,_0x12c2f7:0x22a,_0x60a9c0:0xef,_0x2fcda8:0x116,_0x509d21:0x125,_0x390f86:0xb8,_0x203009:0x6f,_0x162a81:0x432,_0xb0dec:0x586,_0x24e00f:0x42b,_0x1f2be9:0x4bd,_0x4591dd:0x145,_0x3da230:0x14b,_0x1eacca:0x3b,_0x5e5a6e:0x272,_0x3b6aff:0x121,_0x2eacea:0x2d4,_0x4204fc:0x262,_0x27e583:0x2de,_0x146be9:0x349,_0x51d734:0x18b,_0x41394d:0x38e,_0x110cce:0x447,_0x4f0a44:0x1b9,_0x385d96:0x1c5,_0x3bdf27:0x288,_0xed18f6:0x2d2,_0x2f96da:0x12a,_0x237023:0x1ee},_0x392132={_0x345a0f:0x142,_0xad5b22:0x166},_0xc3cc26={_0x50cab3:0x12a},_0x223ee5={_0x528c92:0x29,_0x3647a8:0x1f3};function _0x193104(_0x202f51,_0x1119e2,_0x56e365,_0x425780){return _0x12584b(_0x1119e2- -0x4ba,_0x1119e2-_0x223ee5._0x528c92,_0x56e365-_0x223ee5._0x3647a8,_0x56e365);}function _0x548c4b(_0x35e659,_0x5d6ca7,_0x1370a9,_0x7a11f7){return _0x46bf5b(_0x35e659-0x106,_0x1370a9,_0x1370a9-_0xc3cc26._0x50cab3,_0x5d6ca7- -0x575);}return defineTool({'name':_0x548c4b(-_0x29a116._0x5621cf,-0x46,_0x29a116._0x587b94,_0x29a116._0x2d2136),'description':_0x548c4b(-0xc4,-0xdc,-_0x29a116._0x45d296,-_0x29a116._0x35e244),'inputSchema':{'type':_0x193104(-_0x29a116._0x3ebd69,-0xd8,-_0x29a116._0x1096b0,-_0x29a116._0x218028),'properties':{'agentId':{'type':_0x548c4b(-_0x29a116._0x322615,-_0x29a116._0x4af672,-0x1a1,-_0x29a116._0x11dec6)},'task':{'type':_0x548c4b(-_0x29a116._0x580a0e,-_0x29a116._0x507ff3,-_0x29a116._0x5a852e,-_0x29a116._0x12a749)}},'required':[_0x548c4b(-0x177,-_0x29a116._0x1dc9ac,-_0x29a116._0x37a02e,-_0x29a116._0x4fe5ac),_0x548c4b(-_0x29a116._0x158cc9,-_0x29a116._0x4d1e61,-_0x29a116._0x319ccb,-_0x29a116._0x22bb4c)]},async *'execute'(_0xf8c2f8,_0x45c431){const _0x2ae824={_0x3952f4:0x311,_0x2a5320:0x265},_0x52cf36={_0x33428e:0x8a,_0x59aa29:0x1ef},_0xa78d0b=createDelegatedRunId(),_0x3b6aa2={'agentId':_0xf8c2f8['agentId'],'parentSessionId':_0x45c431['sessionId'],'runId':_0xa78d0b,..._0x45c431[_0x5470e2(0x410,0x3c2,_0x5dbf14._0x162cd1,_0x5dbf14._0x5a8b9a)]!==void 0x0?{'toolCallId':_0x45c431[_0x5470e2(0x424,0x3cb,_0x5dbf14._0x51f86a,_0x5dbf14._0x553137)]}:{}},_0x23fe87=getDelegatedAgentDefinition(_0x5771d9,_0xf8c2f8[_0x5470e2(0x420,_0x5dbf14._0x543881,_0x5dbf14._0x42f576,_0x5dbf14._0x42b47e)]);if(!_0x23fe87)throw new ToolExecutionError(_0x5470e2(0x317,0x395,_0x5dbf14._0x315795,_0x5dbf14._0x215cb5)+_0xf8c2f8[_0x5470e2(0x459,_0x5dbf14._0x2482fe,0x346,_0x5dbf14._0x42b47e)],{'agentId':_0xf8c2f8[_0x15562f(_0x5dbf14._0x1d0e27,_0x5dbf14._0x471a06,0xe1,_0x5dbf14._0x2f2744)]});const _0x2466fb=new Agent(await resolveDelegatedAgentOptions(_0x23fe87,_0x3b6aa2));function _0x5470e2(_0x296025,_0x5d57ef,_0x2cf9fb,_0x20a201){return _0x193104(_0x296025-0xb8,_0x20a201-0x3fd,_0x296025,_0x20a201-0x1c1);}function _0x15562f(_0x5047a1,_0x3cb5f6,_0x3a5f35,_0x6145d1){return _0x193104(_0x5047a1-_0x392132._0x345a0f,_0x3a5f35-0x119,_0x6145d1,_0x6145d1-_0x392132._0xad5b22);}let _0x1cfee5={'runId':_0xa78d0b,'agentId':_0xf8c2f8[_0x15562f(_0x5dbf14._0x204cc2,0x66,0xe1,_0x5dbf14._0x3e1683)],'sessionId':_0x2466fb[_0x15562f(0x107,0xaf,0xa5,_0x5dbf14._0x22d13f)],'status':_0x5470e2(_0x5dbf14._0x25efbb,0x359,0x442,0x3f5),'parentSessionId':_0x45c431[_0x15562f(_0x5dbf14._0x236e4e,0xb6,0xa5,0x7b)],..._0x45c431[_0x15562f(-_0x5dbf14._0x16ce6b,-0x4e,0x9d,-_0x5dbf14._0x1e46ea)]!==void 0x0?{'originToolCallId':_0x45c431[_0x15562f(_0x5dbf14._0x2e752e,0x151,0x9d,-_0x5dbf14._0x28dd55)]}:{}};const _0xe65611=new AbortController(),_0xceb41b=addAbortListener(_0x45c431[_0x5470e2(0x324,_0x5dbf14._0x335436,0x27a,0x349)],()=>{const _0x535b89={_0x1dc072:0x1e,_0x3ffef6:0x10d};function _0x536737(_0x13998e,_0xf0a187,_0x3ed57e,_0x42f2dd){return _0x15562f(_0x13998e-_0x535b89._0x1dc072,_0xf0a187-_0x535b89._0x3ffef6,_0x3ed57e-0x148,_0x42f2dd);}function _0x3b240e(_0x393c14,_0x533cb3,_0x507fdb,_0x2cca5e){return _0x5470e2(_0x533cb3,_0x533cb3-_0x52cf36._0x33428e,_0x507fdb-0x149,_0x393c14- -_0x52cf36._0x59aa29);}_0xe65611['abort'](_0x45c431[_0x536737(0x123,0x1f2,0x1ad,0x18d)]?.[_0x536737(0x311,0x34e,_0x2ae824._0x3952f4,_0x2ae824._0x2a5320)]);});yield createToolOutput(_0x15562f(0xe,_0x5dbf14._0x4f1a86,0xe4,_0x5dbf14._0x3d26ee)+_0x1cfee5['runId']+'.',{'runId':_0x1cfee5[_0x5470e2(0x34c,0x411,_0x5dbf14._0x245135,_0x5dbf14._0x32e8d7)],'agentId':_0x1cfee5['agentId'],'sessionId':_0x1cfee5['sessionId'],'status':_0x1cfee5[_0x15562f(0x62,_0x5dbf14._0x2468b2,_0x5dbf14._0x1a41af,_0x5dbf14._0x4e4b65)]});try{const _0x3adfd2=await _0x2466fb[_0x5470e2(0x2d3,0x2b2,_0x5dbf14._0x1f7dfa,0x337)](_0xf8c2f8[_0x5470e2(_0x5dbf14._0x139756,_0x5dbf14._0x357081,0x314,_0x5dbf14._0x3a655c)],{'signal':_0xe65611['signal']});_0x1cfee5={..._0x1cfee5,'status':_0x3adfd2[_0x5470e2(0x4bc,0x3e8,_0x5dbf14._0x478e77,_0x5dbf14._0x3be1c8)],'result':_0x3adfd2};if(_0x3adfd2[_0x15562f(_0x5dbf14._0x3f94ee,0x107,_0x5dbf14._0x1a41af,_0x5dbf14._0x12c2f7)]!==_0x5470e2(0x23e,0x2af,0x2c2,0x308)){const _0xe8d8de=getRunTerminalErrorMessage(_0x3adfd2),_0x2ca0db=formatAbortedRunMessage(_0x1cfee5[_0x15562f(_0x5dbf14._0x60a9c0,0x1ba,_0x5dbf14._0x2fcda8,_0x5dbf14._0x509d21)],_0xe8d8de);throw new ToolExecutionError(_0x2ca0db,{...createRunSummary(_0x1cfee5),'aborted':!![],'errorMessage':_0x2ca0db});}return createRunSummaryOutput(_0x1cfee5,'Agent\x20run\x20'+_0x1cfee5[_0x15562f(_0x5dbf14._0x390f86,0x16b,0x116,_0x5dbf14._0x203009)]+_0x5470e2(_0x5dbf14._0x162a81,_0x5dbf14._0xb0dec,_0x5dbf14._0x24e00f,_0x5dbf14._0x1f2be9));}catch(_0x4c4983){if(_0x4c4983 instanceof ToolExecutionError)throw _0x4c4983;if(isAbortError(_0x4c4983)||_0xe65611[_0x15562f(_0x5dbf14._0x4591dd,_0x5dbf14._0x3da230,0x65,_0x5dbf14._0x1eacca)][_0x15562f(_0x5dbf14._0x5e5a6e,_0x5dbf14._0x3b6aff,0x1c5,0x26a)]||_0x45c431[_0x5470e2(_0x5dbf14._0x2eacea,_0x5dbf14._0x4204fc,_0x5dbf14._0x27e583,_0x5dbf14._0x146be9)]['aborted']){const _0x51b6e4=getRunTerminalErrorMessage(_0x1cfee5[_0x15562f(_0x5dbf14._0x51d734,0x15f,0x1b6,0x189)])??(_0x4c4983 instanceof Error?_0x4c4983['message']:String(_0x4c4983)),_0x5ca9ef=formatAbortedRunMessage(_0x1cfee5[_0x5470e2(_0x5dbf14._0x41394d,0x471,_0x5dbf14._0x110cce,0x3fa)],_0x51b6e4);_0x1cfee5={..._0x1cfee5,'status':_0x15562f(_0x5dbf14._0x4f0a44,0x1ff,_0x5dbf14._0x385d96,_0x5dbf14._0x3bdf27),'errorMessage':_0x5ca9ef};throw new ToolExecutionError(_0x5ca9ef,{...createRunSummary(_0x1cfee5),'aborted':!![],'errorMessage':_0x5ca9ef});}const _0x51bf55=getRunTerminalErrorMessage(_0x1cfee5['result'])??(_0x4c4983 instanceof Error?_0x4c4983[_0x5470e2(0x23b,0x2fb,_0x5dbf14._0xed18f6,0x31e)]:String(_0x4c4983))??_0x15562f(-0x20,_0x5dbf14._0x2f96da,0x4f,0x11f)+_0x1cfee5[_0x15562f(_0x5dbf14._0x237023,0x1a5,0x116,0xd6)]+'\x20failed.';_0x1cfee5={..._0x1cfee5,'status':_0x5470e2(0x4ab,0x463,0x49f,0x493),'errorMessage':_0x51bf55};throw new ToolExecutionError(_0x51bf55,{...createRunSummary(_0x1cfee5),'errorMessage':_0x51bf55});}finally{_0xceb41b();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x2a60a3){return[createAssignTaskTool(_0x2a60a3)];}import*as _0x5ddc93 from'path';function _0x12584b(_0x4707bb,_0x4949e4,_0xf65bf2,_0x4ee548){return _0x5452(_0x4707bb-0x2f6,_0x4ee548);}function buildDescription2(_0x116f24){const _0x5ba7da={_0x5984bc:0x1c1,_0x29d40d:0xaa,_0x21e6c3:0x290,_0x6ea383:0x345,_0x26aa1b:0x28e,_0x59d4c8:0x266,_0x3315d0:0x377,_0x5077e9:0x99,_0x5d7ade:0xe5,_0x3e6b72:0x2a1,_0x332398:0x2b6,_0x5e008a:0x37b,_0x5b53d2:0x9,_0x18e12f:0x150,_0x49b0e2:0x9b,_0x286c41:0x218,_0x162b7b:0x141,_0x396a49:0x37,_0x534cf3:0x4},_0x31da2f={_0x3b716b:0x10e,_0x44958d:0x75},_0x237a1b={_0x55df0a:0xed};function _0x3c4418(_0x14c310,_0x3266b3,_0x496aa2,_0x49bb94){return _0x46bf5b(_0x14c310-0x90,_0x496aa2,_0x496aa2-_0x237a1b._0x55df0a,_0x14c310- -0x25d);}if(_0x116f24[_0x3d340a(-0x1cc,-_0x5ba7da._0x5984bc,-_0x5ba7da._0x29d40d,-0xe3)]===0x0)return _0x3c4418(0x30b,0x256,_0x5ba7da._0x21e6c3,_0x5ba7da._0x6ea383);const _0x5ab3b9=[_0x3c4418(_0x5ba7da._0x26aa1b,_0x5ba7da._0x59d4c8,0x2e9,_0x5ba7da._0x3315d0),_0x3d340a(-_0x5ba7da._0x5077e9,-0x1aa,-0x151,-_0x5ba7da._0x5d7ade),_0x3c4418(_0x5ba7da._0x3e6b72,_0x5ba7da._0x332398,0x32b,_0x5ba7da._0x5e008a),_0x3d340a(-0x127,-_0x5ba7da._0x5b53d2,-_0x5ba7da._0x18e12f,-_0x5ba7da._0x49b0e2),..._0x116f24[_0x3c4418(_0x5ba7da._0x286c41,0x288,_0x5ba7da._0x162b7b,0x149)](_0x10a269=>'-\x20'+_0x10a269['name']+':\x20'+_0x10a269[_0x3c4418(0x205,0x14b,0x20c,0x27d)])];function _0x3d340a(_0x4b535e,_0x2cf588,_0x4d75ae,_0x588a8c){return _0x12584b(_0x588a8c- -0x4c1,_0x2cf588-_0x31da2f._0x3b716b,_0x4d75ae-_0x31da2f._0x44958d,_0x4d75ae);}return _0x5ab3b9[_0x3d340a(0xae,0x3c,_0x5ba7da._0x396a49,-_0x5ba7da._0x534cf3)]('\x0a');}function createLoadSkillTool(_0x52f41c){const _0x55c822={_0x2c6342:0x578,_0x165c66:0x541,_0x171732:0x2c,_0x477cfc:0xc0,_0x5c8757:0x35,_0x4d4e5c:0x78,_0x1a8450:0x469,_0x2fb806:0x3d,_0x501f63:0x77,_0x521485:0x43,_0x4ab127:0x498,_0x5a063a:0x4eb},_0x3154b0={_0x5cb5e6:0x1c0,_0x5aaa5b:0x151,_0x3818a9:0x213,_0x5c2caf:0x205,_0x34476b:0x1be,_0x112a62:0xbd,_0x466b9e:0x157,_0xfd064c:0x2da,_0x3150a3:0x218,_0x17ea1d:0x154,_0x6e9d68:0x208,_0x40876:0x276,_0x3c2c46:0x5e,_0x227d04:0x307,_0x17d78b:0x2ef,_0x306131:0x172,_0x13b4bd:0x35e,_0xfd2d4b:0x27e,_0x2f5e0e:0x10,_0x39077d:0x1a5,_0x3be693:0x1ca,_0x2e461e:0x115,_0x131386:0x1ad,_0x4b9b21:0x101,_0x4c0871:0x1db,_0x28fb87:0x221,_0x546b3f:0x153,_0x6db987:0x120,_0x382ea4:0x1e9,_0x258e1d:0x5f,_0x215ff8:0x3,_0xc545b4:0x12e,_0x40042a:0x9f,_0x1b4f66:0xcd,_0x595cad:0x1a6,_0xf4058a:0x98,_0x4d32dc:0x216},_0x2d5ebf={_0x455c3d:0x16b,_0x18d027:0x180},_0x250f41={_0x24589c:0x5b,_0x3d0515:0x157},_0x313279={_0x1c2744:0x62};function _0x4d6665(_0x11bd2d,_0x446c0b,_0x38d77f,_0x10f8ac){return _0x46bf5b(_0x11bd2d-_0x313279._0x1c2744,_0x38d77f,_0x38d77f-0x6e,_0x446c0b-0x1f);}const _0x2ee12c=new Map(_0x52f41c[_0x4d6665(_0x55c822._0x2c6342,_0x55c822._0x165c66,0x5e6,0x5ee)]['map'](_0x2548b0=>[_0x2548b0[_0x4ec020(-0x17,0x6a,0x149,0x101)],_0x2548b0])),_0x26c813=buildDescription2(_0x52f41c[_0x4ec020(-_0x55c822._0x171732,_0x55c822._0x477cfc,_0x55c822._0x5c8757,_0x55c822._0x4d4e5c)]);function _0x4ec020(_0x3d016b,_0x39ad27,_0x20e7ed,_0x456437){return _0x12584b(_0x39ad27- -0x41f,_0x39ad27-_0x250f41._0x24589c,_0x20e7ed-_0x250f41._0x3d0515,_0x3d016b);}return defineTool({'name':_0x4d6665(0x575,0x54d,0x4fe,_0x55c822._0x1a8450),'description':_0x26c813,'inputSchema':{'type':_0x4ec020(0x4d,-_0x55c822._0x2fb806,-_0x55c822._0x501f63,_0x55c822._0x521485),'properties':{'name':{'type':_0x4d6665(0x3be,_0x55c822._0x4ab127,0x3df,0x513)}},'required':[_0x4d6665(_0x55c822._0x165c66,_0x55c822._0x5a063a,0x4b6,0x541)]},async *'execute'(_0x7f6418){const _0x339538={_0x19c811:0x19b,_0x31c404:0x2d8,_0x4a8b6e:0x46},_0x4e9ba4=_0x2ee12c[_0x3929a4(0x208,0x252,_0x3154b0._0x5cb5e6,0x2b8)](_0x7f6418[_0x3929a4(_0x3154b0._0x5aaa5b,_0x3154b0._0x3818a9,_0x3154b0._0x5c2caf,_0x3154b0._0x34476b)]);if(!_0x4e9ba4){const _0x56de4e=Array['from'](_0x2ee12c[_0x5481c8(-_0x3154b0._0x112a62,-0xfc,-_0x3154b0._0x466b9e,-0x15a)]())[_0x3929a4(_0x3154b0._0xfd064c,0x247,_0x3154b0._0x3150a3,0x298)](',\x20');throw new ToolExecutionError(_0x3929a4(_0x3154b0._0x17ea1d,0x19f,_0x3154b0._0x6e9d68,_0x3154b0._0x40876)+_0x7f6418['name']+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x56de4e,{'name':_0x7f6418['name']});}const _0x180fdb=await _0x52f41c[_0x5481c8(_0x3154b0._0x3c2c46,-0xb3,0xf,-0x1f)](_0x4e9ba4),_0x1acbb5=_0x4e9ba4[_0x3929a4(0x25c,_0x3154b0._0x227d04,_0x3154b0._0x17d78b,0x28c)]['directory']??_0x5ddc93[_0x3929a4(0x19b,_0x3154b0._0x306131,0x1fc,0x22b)](_0x4e9ba4[_0x3929a4(_0x3154b0._0x13b4bd,0x307,0x379,_0x3154b0._0xfd2d4b)][_0x5481c8(0x21,0x3e,-_0x3154b0._0x2f5e0e,-0x1c)]),_0x41407e=[_0x3929a4(_0x3154b0._0x39077d,_0x3154b0._0x3be693,0x248,0x168)+_0x180fdb[_0x5481c8(-0xfb,-_0x3154b0._0x2e461e,-_0x3154b0._0x131386,-_0x3154b0._0x4b9b21)],'',_0x180fdb[_0x3929a4(0x2f4,0x24e,_0x3154b0._0x4c0871,0x286)],'',_0x3929a4(_0x3154b0._0x28fb87,_0x3154b0._0x546b3f,0x223,_0x3154b0._0x6db987),_0x3929a4(0x320,0x246,0x211,_0x3154b0._0x382ea4)+_0x4e9ba4['source'][_0x5481c8(-_0x3154b0._0x258e1d,0xbb,_0x3154b0._0x215ff8,-0x1c)],'Base\x20directory:\x20'+_0x1acbb5][_0x5481c8(0x20,-_0x3154b0._0xc545b4,-_0x3154b0._0x40042a,-_0x3154b0._0x1b4f66)]('\x0a');function _0x5481c8(_0x421d0b,_0xc1e087,_0x39afc,_0x83d895){return _0x4ec020(_0x421d0b,_0x83d895- -_0x2d5ebf._0x455c3d,_0x39afc-_0x2d5ebf._0x18d027,_0x83d895-0x1e2);}yield createToolOutput(_0x41407e,{'id':_0x180fdb['id'],'name':_0x180fdb[_0x5481c8(-0xfb,-_0x3154b0._0x595cad,-_0x3154b0._0xf4058a,-0x101)],'path':_0x4e9ba4['source'][_0x3929a4(_0x3154b0._0x4d32dc,0x2f8,0x2ba,0x3ad)],'baseDirectory':_0x1acbb5});function _0x3929a4(_0x5dc7f7,_0x121f5d,_0x250e93,_0x9a0b9c){return _0x4d6665(_0x5dc7f7-_0x339538._0x19c811,_0x121f5d- -_0x339538._0x31c404,_0x5dc7f7,_0x9a0b9c-_0x339538._0x4a8b6e);}return void 0x0;}});}import{readFile as _0x58d080,stat as _0x553619}from'fs/promises';import*as _0x21138c from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x46bf5b(0x443,0x532,0x57d,0x4fb),_0x46bf5b(0x547,0x568,0x570,0x50c),'low',_0x12584b(0x48e,0x435,0x419,0x4ab)]),PNG_SIGNATURE=Buffer[_0x12584b(0x4ad,0x4d2,0x555,0x497)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x324956,_0x3e9ef9){const _0x105005={_0x36f218:0x2e,_0x212262:0x554,_0x27bec6:0x3db,_0x1ea0a0:0x4a2,_0x380b67:0x58f,_0x474aa6:0x94,_0x7edcec:0x6eb,_0x14f230:0x6c9,_0x1f542a:0x618,_0x6cedaf:0x61,_0x1a304c:0x5f,_0x26f587:0x53,_0x2c5c56:0x6e8,_0x1b9eef:0x664,_0x10aa9e:0x3f,_0x5361d8:0x75,_0x138b79:0x87,_0x412f8d:0x3e5,_0x1680c6:0x50,_0x4f7ca5:0x11f,_0x489a9a:0x5f0,_0x4635e3:0x5ac,_0x459aaf:0x5d9,_0x5b81a5:0x14d,_0x545830:0x147,_0x98c52f:0x5cc,_0x1f18fb:0xf6,_0x31537d:0xcf,_0x4bc867:0x122,_0x5784db:0x29,_0xc6e71d:0x1c,_0x4c585d:0x6b4,_0x5342ab:0x60d,_0x1b1fba:0x68a,_0x5fcd43:0x58d},_0x1e0d0f={_0x3f4775:0x514,_0x2e7c03:0x148},_0x3107be={_0x52eab0:0xea};function _0x2836d2(_0x2b1195,_0x3b8672,_0x34928e,_0x4491bc){return _0x12584b(_0x34928e-_0x3107be._0x52eab0,_0x3b8672-0x1c2,_0x34928e-0xc6,_0x3b8672);}if(_0x324956[_0x1fe9a8(0x1a,-_0x105005._0x36f218,0x64,-0xa6)](0x0,0x8)[_0x2836d2(0x4ca,0x5bf,0x58d,_0x105005._0x212262)](PNG_SIGNATURE))return _0x2836d2(_0x105005._0x27bec6,0x409,_0x105005._0x1ea0a0,_0x105005._0x380b67);if(_0x324956[0x0]===0xff&&_0x324956[0x1]===0xd8&&_0x324956[0x2]===0xff)return _0x1fe9a8(-0x12a,-0x18a,-0x188,-_0x105005._0x474aa6);const _0x1948dc=_0x324956[_0x2836d2(_0x105005._0x7edcec,_0x105005._0x14f230,_0x105005._0x1f542a,0x6f4)](0x0,0x6)[_0x1fe9a8(-0xd9,-0x5a,-_0x105005._0x6cedaf,-0x67)](_0x2836d2(0x4e3,0x51a,0x59f,0x683));if(_0x1948dc==='GIF87a'||_0x1948dc===_0x1fe9a8(-0xf3,-_0x105005._0x1a304c,-_0x105005._0x26f587,-0x76))return'image/gif';if(_0x324956[_0x2836d2(_0x105005._0x2c5c56,0x594,0x618,_0x105005._0x1b9eef)](0x0,0x4)['toString'](_0x1fe9a8(-0x5f,_0x105005._0x10aa9e,_0x105005._0x5361d8,_0x105005._0x138b79))===_0x2836d2(0x40a,_0x105005._0x412f8d,0x4c2,0x4c0)&&_0x324956[_0x1fe9a8(0x1a,-_0x105005._0x1680c6,0x102,-0x18)](0x8,0xc)['toString']('ascii')===_0x1fe9a8(-_0x105005._0x4f7ca5,-0x44,-0xf4,-0x195))return _0x2836d2(0x681,0x64e,_0x105005._0x489a9a,_0x105005._0x4635e3);const _0x365fc6=_0x21138c[_0x2836d2(0x69c,0x5f3,_0x105005._0x459aaf,0x617)](_0x3e9ef9)[_0x1fe9a8(-_0x105005._0x5b81a5,-_0x105005._0x545830,-0x178,-0xe8)]();if(_0x365fc6===_0x2836d2(_0x105005._0x98c52f,0x619,0x53e,0x616))return _0x1fe9a8(-0x15c,-_0x105005._0x1f18fb,-_0x105005._0x31537d,-_0x105005._0x4bc867);if(_0x365fc6===_0x1fe9a8(-0x8e,-0x54,-_0x105005._0x5784db,-_0x105005._0xc6e71d)||_0x365fc6===_0x2836d2(0x5a2,_0x105005._0x4c585d,_0x105005._0x5342ab,_0x105005._0x1b1fba))return'image/jpeg';function _0x1fe9a8(_0x33ea03,_0x58dab3,_0x30068b,_0x32cc6a){return _0x12584b(_0x33ea03- -_0x1e0d0f._0x3f4775,_0x58dab3-_0x1e0d0f._0x2e7c03,_0x30068b-0x4b,_0x32cc6a);}if(_0x365fc6==='.gif')return'image/gif';if(_0x365fc6==='.webp')return _0x2836d2(0x5e8,0x609,_0x105005._0x489a9a,_0x105005._0x5fcd43);return void 0x0;}function normalizeDetail(_0x2dea33){const _0x4ddb8f={_0x2ef446:0xc8,_0x31d2e8:0x14d,_0x188f1b:0x18a,_0x233970:0x11e,_0x51aee9:0x2d,_0x5f4179:0xf7,_0x443b85:0x65,_0x195083:0x111},_0x9dec19={_0x4abe0a:0x1dd},_0x1a6fd5={_0x5c5e05:0xb8};if(_0x2dea33===void 0x0)return void 0x0;const _0xd508e1=_0x2dea33[_0x1057b3(0x109,_0x4ddb8f._0x2ef446,0x81,_0x4ddb8f._0x31d2e8)]()[_0x393e51(_0x4ddb8f._0x188f1b,0xc1,0x71,_0x4ddb8f._0x233970)]();function _0x1057b3(_0x48b5b4,_0x361edb,_0x5d120b,_0x1462ef){return _0x46bf5b(_0x48b5b4-_0x1a6fd5._0x5c5e05,_0x1462ef,_0x5d120b-0x2f,_0x361edb- -0x508);}if(!SUPPORTED_DETAILS[_0x393e51(_0x4ddb8f._0x51aee9,_0x4ddb8f._0x5f4179,0x15e,_0x4ddb8f._0x443b85)](_0xd508e1))throw new ToolExecutionError(_0x393e51(0x197,_0x4ddb8f._0x195083,0x191,0x12d)+_0x2dea33,{'detail':_0x2dea33});function _0x393e51(_0x3058f4,_0x355425,_0x28bb24,_0x2dd448){return _0x12584b(_0x355425- -0x306,_0x355425-_0x9dec19._0x4abe0a,_0x28bb24-0xe2,_0x2dd448);}return _0xd508e1;}function createViewFileTool(_0x296f0f={}){const _0x3b1009={_0x541196:0x455,_0x13257b:0x14c,_0x425ec0:0x5a7,_0x5a99c1:0x478,_0x13bfb0:0x49e,_0x10818e:0x452,_0x2e2354:0x396,_0x3920e8:0x3e4,_0x5e8f94:0x549,_0x331694:0x4b1,_0x2e1281:0x46f,_0x34f7a9:0x53a,_0x23ab10:0x5d7,_0x8f6146:0x542,_0x2e9161:0x1ab,_0x16c6d2:0x169,_0x2ee836:0x23b,_0x25a48a:0x1db,_0x423168:0x238,_0x36ade9:0x2c5,_0x50a4df:0x500,_0x38982d:0x45e,_0x562555:0x1f0,_0x1d4cee:0x271,_0x14c561:0x203},_0x4933a8={_0x52bfc4:0x4c,_0x48fd8c:0x102,_0x4d37da:0xd8,_0x4f8c4e:0x12d,_0x26787c:0x396,_0x9ac8d1:0x424,_0x776b95:0x38f,_0x5338ac:0x4d6,_0x5125ba:0x458,_0x3bdeda:0x76,_0x60b45f:0x14,_0x42d6dc:0x47a,_0x7f070c:0x427,_0x4f9031:0x50a,_0x2446d9:0x20,_0x641856:0x17,_0x9a39b1:0x4,_0x427897:0x370,_0xa8eff1:0x3f2,_0x819af5:0x2a2,_0xcfab7f:0x33e,_0x463e88:0x16f,_0xeb3e22:0x240,_0x29f474:0x2a,_0x5e788d:0x37,_0x45df51:0xed,_0x20ba21:0x47f,_0x36a0c6:0x37f,_0x43331f:0x458,_0xe1ec72:0x379,_0x3272c1:0x306,_0x5f4f87:0xb0,_0x1b7afe:0x384,_0x3408e4:0x3ba,_0x46c69e:0x3fd,_0x362149:0x3e1,_0x550029:0x249,_0x2e010f:0x32c,_0xf9e1cd:0x371,_0x566dad:0x438,_0x227c7f:0x4eb,_0x403802:0x495,_0x2b8536:0x302,_0x2bd080:0x379,_0x891b2d:0x3cc,_0x3b3f7e:0x314,_0x35a92f:0x29b,_0x15a75e:0x30c,_0x4d9052:0x359,_0x6142fd:0x325,_0x1f3616:0x398,_0x11171b:0x2c5,_0x14075e:0x238,_0x42f933:0x2dc,_0x500d06:0x38e,_0x14c938:0x458,_0x45b6f9:0x3ba,_0x403759:0x72,_0x151430:0xbc,_0xef9eab:0x15f,_0x5eea7b:0x239,_0x577f0f:0x435,_0x4c2480:0x95,_0x26dcb1:0x66},_0x216070={_0x2a9cb7:0x157,_0x43c563:0x164},_0xeacb13={_0x5869a3:0x8b,_0x57011b:0x180,_0x19eb63:0x1b},_0x54f702=_0x21138c[_0x46312e(0x406,0x4ea,_0x3b1009._0x541196,0x4cf)](_0x296f0f[_0x1f80d5(-_0x3b1009._0x13257b,-0x16d,-0x242,-0x191)]??process[_0x46312e(_0x3b1009._0x425ec0,_0x3b1009._0x5a99c1,_0x3b1009._0x13bfb0,0x4ce)]()),_0x1f2fa8=(_0x296f0f[_0x1f80d5(-0x30c,-0x255,-0x211,-0x2c0)]??[])['map'](_0x3bd5b7=>_0x21138c[_0x46312e(0x581,0x50d,0x4ba,0x4cf)](_0x3bd5b7)),_0x3dfed3=_0x296f0f[_0x46312e(_0x3b1009._0x10818e,_0x3b1009._0x2e2354,0x426,_0x3b1009._0x3920e8)]??DEFAULT_MAX_BYTES;function _0x1f80d5(_0x39ca8b,_0x50432e,_0x2abc2d,_0xeee53a){return _0x46bf5b(_0x39ca8b-0xe9,_0x2abc2d,_0x2abc2d-0xb2,_0xeee53a- -0x6ea);}function _0x46312e(_0x3bdb5d,_0x2b33de,_0x3de47e,_0xeb937f){return _0x46bf5b(_0x3bdb5d-_0xeacb13._0x5869a3,_0x3bdb5d,_0x3de47e-_0xeacb13._0x57011b,_0xeb937f- -_0xeacb13._0x19eb63);}const _0x7f528e=_0x296f0f[_0x46312e(0x474,0x418,_0x3b1009._0x5e8f94,_0x3b1009._0x331694)]??_0x46312e(_0x3b1009._0x2e1281,_0x3b1009._0x34f7a9,_0x3b1009._0x23ab10,_0x3b1009._0x8f6146);return defineTool({'name':_0x7f528e,'description':_0x1f80d5(-_0x3b1009._0x2e9161,-_0x3b1009._0x16c6d2,-0x302,-0x24c),'inputSchema':{'type':_0x1f80d5(-_0x3b1009._0x2ee836,-_0x3b1009._0x25a48a,-_0x3b1009._0x423168,-_0x3b1009._0x36ade9),'properties':{'path':{'type':_0x46312e(0x545,0x4ea,_0x3b1009._0x50a4df,_0x3b1009._0x38982d)},'detail':{'type':_0x1f80d5(-_0x3b1009._0x562555,-0x1be,-0x250,-_0x3b1009._0x1d4cee)}},'required':[_0x1f80d5(-0x63,-0x52,-_0x3b1009._0x14c561,-0x139)]},async *'execute'(_0x612a30){const _0x154bd6={_0x35b31a:0x591},_0x1f1bbc=resolveAllowedPath(_0x54f702,_0x1f2fa8,_0x612a30['path']);await assertWorkspaceFile(_0x1f1bbc);const _0x33695e=await _0x553619(_0x1f1bbc);if(_0x33695e[_0x553071(-_0x4933a8._0x52bfc4,-_0x4933a8._0x48fd8c,-_0x4933a8._0x4d37da,-_0x4933a8._0x4f8c4e)]>_0x3dfed3)throw new ToolExecutionError(_0x3adec0(0x4b9,_0x4933a8._0x26787c,0x4e1,_0x4933a8._0x9ac8d1)+_0x612a30[_0x3adec0(_0x4933a8._0x776b95,0x454,0x45d,0x458)],{'path':_0x612a30[_0x3adec0(0x3ab,0x36c,_0x4933a8._0x5338ac,_0x4933a8._0x5125ba)],'maxBytes':_0x3dfed3,'size':_0x33695e['size']});const _0x7dc22=await _0x58d080(_0x1f1bbc),_0xbc5c81=detectImageMediaType(_0x7dc22,_0x1f1bbc);function _0x553071(_0x58488c,_0x56c9ed,_0x3dd429,_0x231934){return _0x1f80d5(_0x58488c-0x1,_0x56c9ed-_0x216070._0x2a9cb7,_0x56c9ed,_0x58488c-_0x216070._0x43c563);}function _0x3adec0(_0x41a52c,_0x46c6d6,_0x49d94a,_0x18e59a){return _0x1f80d5(_0x41a52c-0x1a6,_0x46c6d6-0x23,_0x46c6d6,_0x18e59a-_0x154bd6._0x35b31a);}if(!_0xbc5c81)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x612a30[_0x553071(0x2b,-_0x4933a8._0x3bdeda,_0x4933a8._0x60b45f,0x73)],{'path':_0x612a30['path'],'supported':[_0x3adec0(_0x4933a8._0x42d6dc,_0x4933a8._0x7f070c,_0x4933a8._0x4f9031,0x46c),_0x553071(-_0x4933a8._0x2446d9,-0xcb,_0x4933a8._0x641856,-_0x4933a8._0x9a39b1),_0x3adec0(0x323,0x44f,0x313,_0x4933a8._0x427897),_0x3adec0(_0x4933a8._0xa8eff1,0x291,_0x4933a8._0x819af5,_0x4933a8._0xcfab7f),_0x553071(-_0x4933a8._0x463e88,-0x10f,-0x1fe,-_0x4933a8._0xeb3e22)]});const _0x3e9a12=normalizeDetail(_0x612a30[_0x553071(_0x4933a8._0x29f474,0xd6,_0x4933a8._0x5e788d,-0x57)]),_0x51222e=[_0x553071(0xf,_0x4933a8._0x45df51,0xa3,0xf6)+_0x612a30[_0x3adec0(0x39a,_0x4933a8._0x20ba21,_0x4933a8._0x36a0c6,_0x4933a8._0x43331f)],_0x3adec0(0x2eb,_0x4933a8._0xe1ec72,_0x4933a8._0x3272c1,0x329)+_0xbc5c81,_0x553071(0x5,0xe2,-0x77,-_0x4933a8._0x5f4f87)+_0x33695e[_0x3adec0(_0x4933a8._0x1b7afe,_0x4933a8._0x3408e4,_0x4933a8._0x46c69e,_0x4933a8._0x362149)]+_0x3adec0(0x382,0x355,_0x4933a8._0x550029,_0x4933a8._0x2e010f)][_0x3adec0(0x2de,_0x4933a8._0xf9e1cd,0x373,0x37b)](_0x3e9a12?[_0x3adec0(_0x4933a8._0x566dad,_0x4933a8._0x227c7f,_0x4933a8._0x403802,0x470)+_0x3e9a12]:[])[_0x3adec0(_0x4933a8._0x2b8536,_0x4933a8._0x2bd080,_0x4933a8._0x891b2d,0x3a7)]('\x0a'),_0x136334=[{'type':_0x3adec0(0x288,_0x4933a8._0x3b3f7e,_0x4933a8._0x35a92f,_0x4933a8._0x15a75e),'source':{'type':'base64','media_type':_0xbc5c81,'data':_0x7dc22[_0x3adec0(0x24b,0x2a2,_0x4933a8._0x4d9052,_0x4933a8._0x6142fd)](_0x3adec0(0x2c5,0x3df,0x392,_0x4933a8._0x1f3616))}},{'type':_0x3adec0(_0x4933a8._0x11171b,_0x4933a8._0x14075e,0x290,_0x4933a8._0x42f933),'text':_0x51222e}];return yield createToolOutput(_0x51222e,{'path':_0x612a30[_0x3adec0(0x4dd,0x428,_0x4933a8._0x500d06,_0x4933a8._0x14c938)],'resolvedPath':_0x1f1bbc,'created':_0x33695e['birthtime'][_0x3adec0(0x2d4,0x320,_0x4933a8._0x45b6f9,0x314)](),'modified':_0x33695e[_0x553071(-_0x4933a8._0x403759,-_0x4933a8._0x151430,-0x11e,-_0x4933a8._0xef9eab)][_0x3adec0(_0x4933a8._0x5eea7b,0x3ea,0x391,_0x4933a8._0x3b3f7e)](),'size':_0x33695e[_0x3adec0(_0x4933a8._0x577f0f,0x45d,0x305,0x3e1)],'mimeType':_0xbc5c81,'encoding':_0x553071(-_0x4933a8._0x4c2480,0x4b,0x56,-_0x4933a8._0x26dcb1),..._0x3e9a12?{'detail':_0x3e9a12}:{}},_0x136334),void 0x0;}});}import _0x1d21eb from'turndown';var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x10cae3){const _0x244fda={_0x426d1e:0x5f1,_0x44bb29:0x56f,_0x35e5bf:0xfb,_0x3f8988:0x11e,_0x225948:0x1ae,_0x4e96f7:0x5ea,_0x30b976:0x36e},_0x592d49={_0x1d5279:0x91,_0x2b5321:0x6ed},_0xb06f99={_0x5b590e:0x68};let _0x41e9ff;function _0x347210(_0x530463,_0x41da0d,_0x3d1600,_0x2b1f03){return _0x12584b(_0x2b1f03- -_0xb06f99._0x5b590e,_0x41da0d-0x178,_0x3d1600-0x1e3,_0x41da0d);}try{_0x41e9ff=new URL(_0x10cae3);}catch{throw new ToolExecutionError(_0x347210(_0x244fda._0x426d1e,_0x244fda._0x44bb29,0x526,0x50e),{'url':_0x10cae3});}if(_0x41e9ff[_0x593209(-0x29b,-0x1db,-0x291,-0x26c)]!==_0x347210(0x46b,0x429,0x446,0x45a)&&_0x41e9ff['protocol']!==_0x593209(-_0x244fda._0x35e5bf,-_0x244fda._0x3f8988,-_0x244fda._0x225948,-0x1e9))throw new ToolExecutionError(_0x347210(0x506,0x43e,_0x244fda._0x4e96f7,0x50c),{'url':_0x10cae3});if(_0x41e9ff[_0x593209(-0x21f,-0x1e9,-0x138,-0x188)]||_0x41e9ff['password'])throw new ToolExecutionError(_0x347210(_0x244fda._0x30b976,0x3f3,0x34e,0x431),{'url':_0x41e9ff['protocol']+'//'+_0x41e9ff[_0x347210(0x2b4,0x449,0x2f9,0x394)]+_0x41e9ff['pathname']});function _0x593209(_0x475c75,_0x36b3b4,_0x116294,_0x470e30){return _0x46bf5b(_0x475c75-0x150,_0x116294,_0x116294-_0x592d49._0x1d5279,_0x36b3b4- -_0x592d49._0x2b5321);}return _0x41e9ff;}function parseContentLength(_0x3215f1){const _0xa970bd={_0x2a455b:0x20,_0x2d44fb:0x77},_0x443f54={_0x9cbe64:0x431,_0x332f2c:0x64};if(!_0x3215f1)return void 0x0;function _0x505a36(_0x1fda24,_0x5485e8,_0x2236b3,_0xc5fda8){return _0x12584b(_0x1fda24- -_0x443f54._0x9cbe64,_0x5485e8-0x1a5,_0x2236b3-_0x443f54._0x332f2c,_0x5485e8);}const _0x515d7b=Number(_0x3215f1);return Number[_0x505a36(_0xa970bd._0x2a455b,-0xa4,0x8e,_0xa970bd._0x2d44fb)](_0x515d7b)&&_0x515d7b>=0x0?_0x515d7b:void 0x0;}function createTimeoutSignal(_0x195d82,_0x1363bc){const _0x27e09c={_0x25e881:0x391,_0x3d6f4c:0x35b,_0x4f19fc:0x343,_0x88158a:0x58e,_0x2cf380:0x4e5,_0x5e16f7:0x32e,_0x113743:0x31d,_0x1a7b59:0x5af,_0x210e4b:0x3bd},_0x3cad85={_0x1c1037:0x110,_0x5bc4dc:0x1c9},_0x5ec5bb={_0x28bd89:0x181,_0x4cc925:0x5a},_0x8052b3={_0x50f217:0x1a9,_0x5be5b0:0x13b},_0x4b2e6d=new AbortController();function _0x3034b8(_0x3cffa0,_0x361195,_0x2e6855,_0x12990e){return _0x46bf5b(_0x3cffa0-_0x8052b3._0x50f217,_0x12990e,_0x2e6855-_0x8052b3._0x5be5b0,_0x361195- -0x216);}const _0x31576f=setTimeout(()=>_0x4b2e6d['abort'](new Error(_0x5ec152(0x521,0x533,0x460,0x517))),_0x1363bc);function _0x5ec152(_0x5c89cb,_0x397735,_0x4cd46d,_0x2bcd7d){return _0x46bf5b(_0x5c89cb-0x177,_0x4cd46d,_0x4cd46d-_0x5ec5bb._0x28bd89,_0x2bcd7d-_0x5ec5bb._0x4cc925);}const _0x34d19c=()=>_0x4b2e6d['abort'](_0x195d82['reason']);return _0x195d82[_0x3034b8(_0x27e09c._0x25e881,0x393,_0x27e09c._0x3d6f4c,_0x27e09c._0x4f19fc)]?_0x4b2e6d[_0x5ec152(_0x27e09c._0x88158a,_0x27e09c._0x2cf380,0x614,0x5af)](_0x195d82['reason']):_0x195d82[_0x3034b8(0x367,_0x27e09c._0x5e16f7,_0x27e09c._0x113743,0x30f)](_0x5ec152(0x674,0x4f9,0x5ab,_0x27e09c._0x1a7b59),_0x34d19c,{'once':!![]}),{'signal':_0x4b2e6d[_0x5ec152(0x56e,_0x27e09c._0x210e4b,0x473,0x4a3)],'cleanup':()=>{const _0x46c26f={_0x5246f7:0x71};function _0x30c3aa(_0x43feca,_0x1cc9f6,_0x23f000,_0x455dec){return _0x3034b8(_0x43feca-_0x46c26f._0x5246f7,_0x1cc9f6- -0x44f,_0x23f000-0xa1,_0x455dec);}clearTimeout(_0x31576f),_0x195d82['removeEventListener'](_0x30c3aa(-0x6c,-_0x3cad85._0x1c1037,-_0x3cad85._0x5bc4dc,-0x107),_0x34d19c);}};}function createWebFetchTool(_0xbc9ac0={}){const _0x4b1901={_0x5158e7:0x3b4,_0x32ca3a:0x1e9,_0x1cffd8:0x2af,_0x59631b:0x35d,_0x298394:0x504,_0x4d683f:0x175,_0x1f0493:0x19c,_0x5dcef1:0x188,_0x4f917b:0x19e,_0x3e26e7:0x285,_0x43e585:0x376,_0x59fd05:0x35a,_0xdf18e8:0x39f,_0x4a44ec:0x28d,_0x29e595:0x179,_0xbee356:0x14e,_0x4f6234:0x50a,_0x845a76:0xd4,_0x11d138:0x167,_0x4ab7bc:0x226,_0x2b5efe:0x18b,_0x37b1dd:0x521,_0x14832f:0x4d5,_0x59fc47:0x579,_0x2f4793:0x342,_0x594f4a:0x3c0,_0x4f3bcb:0x2dd,_0x2a76b7:0x35f,_0x1857a6:0x37d,_0x30c6b7:0x392,_0x52d0ae:0x3db,_0x380bcc:0x2aa,_0x1f238f:0x41d,_0x2974b3:0x3fd},_0x3ad794={_0x41a1b2:0x1fe,_0x463d1a:0xb3,_0x457095:0x15f,_0x593cfe:0x176,_0x5580a8:0x4c,_0x139c22:0x200,_0x28ed05:0x92,_0x1d0e30:0xf2,_0x335699:0x19d,_0x3db9a5:0x14d,_0x1e6d7c:0xe3,_0x16cd15:0xec,_0xc1fe06:0x9,_0x692473:0x7a,_0x1e6899:0x143,_0x45a24b:0x1af,_0x2cde49:0xa7,_0x4a2199:0x9a,_0x52ca51:0x72,_0x66c5d0:0xa1,_0x5f1be3:0xe1,_0x9fe8e:0x12c,_0x4fb7fe:0x271,_0x22fae3:0x228,_0x4b1c28:0x14b,_0x92dadf:0x205,_0x3c4a57:0xf5,_0x30f202:0x23,_0x532453:0xbb,_0x19f6e2:0x48,_0x58ddb6:0x3a,_0x39e459:0x340,_0x2dfd4d:0x363,_0x2e086d:0x31,_0x5e94b2:0x8f,_0x5df0dc:0x53,_0x103611:0x196,_0x2d01c6:0x8f,_0x15d2ed:0xa2,_0x512c8b:0x4,_0x3e7cad:0x21,_0x293ea9:0x235,_0x4092d4:0x10e,_0x22c10e:0x40,_0x591365:0x1ef,_0x2a12d8:0x131,_0x1ef263:0xc2,_0x51b20e:0x1db,_0x3c76d6:0x91,_0xac11e6:0x5e,_0x24e04e:0x3c,_0x647855:0xc4,_0x4af74c:0xa8,_0x33a3e3:0x158,_0x398bcb:0x122,_0x39cd5f:0x2b6,_0x528b9f:0x113,_0x3e5e53:0x15a,_0x58eafc:0x198},_0x16d6c7={_0x204dfd:0x12b,_0x1d446c:0x44},_0x168838={_0x462839:0xc0,_0x3e4774:0x6ae},_0x22e234=_0xbc9ac0[_0x4cb797(0x3dd,0x3e5,0x3cf,0x4cb)]??_0x4cb797(0x2af,0x361,_0x4b1901._0x5158e7,0x369),_0x1e00e3=_0xbc9ac0[_0x2335a2(-0x346,-_0x4b1901._0x32ca3a,-_0x4b1901._0x1cffd8,-_0x4b1901._0x59631b)]??DEFAULT_MAX_BYTES2;function _0x2335a2(_0x59bfda,_0x55469e,_0x266e91,_0x48c2c7){return _0x46bf5b(_0x59bfda-_0x168838._0x462839,_0x59bfda,_0x266e91-0xb2,_0x266e91- -_0x168838._0x3e4774);}const _0x18647a=_0xbc9ac0['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x4346d1=new _0x1d21eb({'headingStyle':_0x4cb797(0x46d,0x46b,0x507,_0x4b1901._0x298394),'codeBlockStyle':_0x2335a2(-_0x4b1901._0x4d683f,-_0x4b1901._0x1f0493,-_0x4b1901._0x5dcef1,-0xc0),'bulletListMarker':'-'});_0x4346d1[_0x2335a2(-0x259,-0x1f3,-_0x4b1901._0x4f917b,-_0x4b1901._0x3e26e7)]([_0x4cb797(_0x4b1901._0x43e585,_0x4b1901._0x59fd05,_0x4b1901._0xdf18e8,_0x4b1901._0x4a44ec),_0x2335a2(-_0x4b1901._0x29e595,-_0x4b1901._0xbee356,-0x228,-0x2bf),_0x4cb797(0x447,0x4d4,0x412,_0x4b1901._0x4f6234),_0x2335a2(-0x281,-_0x4b1901._0x845a76,-0x1b7,-0xd7),'nav',_0x2335a2(-0x2c7,-_0x4b1901._0x11d138,-_0x4b1901._0x4ab7bc,-_0x4b1901._0x2b5efe),_0x4cb797(_0x4b1901._0x37b1dd,_0x4b1901._0x14832f,_0x4b1901._0x59fc47,0x422),'aside']);function _0x4cb797(_0x87db57,_0x5b49b3,_0x29198d,_0x4a2a0a){return _0x46bf5b(_0x87db57-_0x16d6c7._0x204dfd,_0x87db57,_0x29198d-_0x16d6c7._0x1d446c,_0x5b49b3- -0xe7);}return defineTool({'name':_0x22e234,'description':_0x4cb797(0x320,_0x4b1901._0x2f4793,_0x4b1901._0x594f4a,0x328),'inputSchema':{'type':_0x2335a2(-0x21d,-_0x4b1901._0x4f3bcb,-0x289,-_0x4b1901._0x2a76b7),'properties':{'description':{'type':_0x4cb797(_0x4b1901._0x1857a6,_0x4b1901._0x30c6b7,_0x4b1901._0x52d0ae,_0x4b1901._0x380bcc)},'url':{'type':_0x4cb797(_0x4b1901._0x1f238f,0x392,_0x4b1901._0x2974b3,0x2ee)}},'required':[_0x4cb797(0x2ee,0x335,0x24c,0x3f0)]},async *'execute'(_0x9e48bb,_0x31d19c){const _0x25c61d={_0x5e77fd:0xb5,_0x16378c:0x1a7},_0x15919f=assertFetchableUrl(_0x9e48bb[_0x1f02aa(-_0x3ad794._0x41a1b2,-_0x3ad794._0x463d1a,-_0x3ad794._0x457095,-_0x3ad794._0x593cfe)])['toString']();if(_0x31d19c[_0x1f02aa(-_0x3ad794._0x5580a8,-_0x3ad794._0x139c22,-0x132,-0xfa)][_0x1f02aa(-0x5f,-0x32,0x2e,_0x3ad794._0x28ed05)])throw new ToolExecutionError(_0x1f02aa(-0xa9,-0x11c,-0xae,-0x44),{'url':_0x15919f});const _0xd96758=createTimeoutSignal(_0x31d19c[_0x1f02aa(-0x105,-0xdf,-0x132,-_0x3ad794._0x1d0e30)],_0x18647a);let _0x378084='',_0x4dea9f=0x0,_0x29b0f3;try{const _0xe1c02b=await fetch(_0x15919f,{'headers':{'User-Agent':USER_AGENT},'signal':_0xd96758['signal']});if(!_0xe1c02b['ok'])throw new ToolExecutionError(_0x1f02aa(-_0x3ad794._0x335699,-0x139,-_0x3ad794._0x3db9a5,-_0x3ad794._0x1e6d7c)+_0xe1c02b['status']+'\x20'+_0xe1c02b[_0x1f02aa(-0x13,-_0x3ad794._0x16cd15,-0xfc,-0x19f)],{'url':_0x15919f,'statusCode':_0xe1c02b[_0x1f02aa(_0x3ad794._0xc1fe06,0x9b,-0x4a,-_0x3ad794._0x692473)]});const _0x3436e9=parseContentLength(_0xe1c02b[_0x17aa84(-_0x3ad794._0x1e6899,-0x228,-0x249,-0x21c)][_0x17aa84(-0x1d0,-_0x3ad794._0x45a24b,-0xe4,-0x117)](_0x1f02aa(-_0x3ad794._0x2cde49,_0x3ad794._0x4a2199,0x3,_0x3ad794._0x52ca51)));if(_0x3436e9!==void 0x0&&_0x3436e9>_0x1e00e3)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0x3436e9+_0x1f02aa(_0x3ad794._0x66c5d0,_0x3ad794._0x5f1be3,0x4c,_0x3ad794._0x9fe8e)+_0x1e00e3+'\x20bytes',{'url':_0x15919f,'statusCode':_0xe1c02b['status'],'contentLength':_0x3436e9,'maxBytes':_0x1e00e3});_0x378084=_0xe1c02b[_0x17aa84(-_0x3ad794._0x4fb7fe,-_0x3ad794._0x22fae3,-0x30e,-0x1cd)][_0x17aa84(-0xf7,-_0x3ad794._0x45a24b,-_0x3ad794._0x4b1c28,-_0x3ad794._0x92dadf)](_0x1f02aa(_0x3ad794._0x3c4a57,0x6e,_0x3ad794._0x30f202,_0x3ad794._0x532453))??'',_0x4dea9f=_0xe1c02b[_0x1f02aa(-0x126,_0x3ad794._0x19f6e2,-0x4a,_0x3ad794._0x58ddb6)],_0x29b0f3=await _0xe1c02b[_0x17aa84(-_0x3ad794._0x39e459,-0x285,-0x1d0,-0x1ee)]();}catch(_0x5439a3){if(_0x5439a3 instanceof ToolExecutionError)throw _0x5439a3;const _0x200eef=_0x5439a3 instanceof Error?_0x5439a3[_0x17aa84(-_0x3ad794._0x2dfd4d,-0x29c,-0x270,-0x239)]:String(_0x5439a3);throw new ToolExecutionError(_0x200eef,{'url':_0x15919f});}finally{_0xd96758[_0x1f02aa(_0x3ad794._0x2e086d,_0x3ad794._0x5e94b2,_0x3ad794._0x5df0dc,0x1f)]();}if(Buffer[_0x17aa84(-0x1c7,-0x20d,-0x1f8,-_0x3ad794._0x103611)](_0x29b0f3,_0x1f02aa(-_0x3ad794._0x2d01c6,_0x3ad794._0x15d2ed,-_0x3ad794._0x512c8b,_0x3ad794._0x3e7cad))>_0x1e00e3)throw new ToolExecutionError('Response\x20too\x20large:\x20exceeds\x20'+_0x1e00e3+_0x17aa84(-0x171,-_0x3ad794._0x293ea9,-0x1f1,-0x19f),{'url':_0x15919f,'statusCode':_0x4dea9f,'maxBytes':_0x1e00e3});const _0x1f5c99=new Date()[_0x1f02aa(-0x1f7,-0x13b,-_0x3ad794._0x4092d4,-_0x3ad794._0x22c10e)]();let _0x1399b6,_0x50b35f;function _0x1f02aa(_0x5f3652,_0x9fed49,_0x1b099d,_0x2f5c9f){return _0x2335a2(_0x5f3652,_0x9fed49-_0x25c61d._0x5e77fd,_0x1b099d-0x133,_0x2f5c9f-_0x25c61d._0x16378c);}if(_0x378084[_0x17aa84(-0x1f8,-0x1e7,-0x19c,-0x1b2)](_0x17aa84(-_0x3ad794._0x591365,-_0x3ad794._0x2a12d8,-0x19b,-0x158)))_0x1399b6=_0x17aa84(-_0x3ad794._0x1ef263,-0x1a3,-0x103,-_0x3ad794._0x51b20e)+_0x29b0f3+'\x0a```',_0x50b35f=_0x1f02aa(-_0x3ad794._0x3c76d6,-0x3b,-_0x3ad794._0xac11e6,-0x12a);else _0x378084[_0x1f02aa(_0x3ad794._0x24e04e,-_0x3ad794._0x647855,-_0x3ad794._0x4af74c,-0x117)](_0x17aa84(-_0x3ad794._0x33a3e3,-_0x3ad794._0x398bcb,-0x1f9,-0xa1))?(_0x1399b6=_0x4346d1['turndown'](_0x29b0f3),_0x50b35f='markdown'):(_0x1399b6=_0x29b0f3,_0x50b35f=_0x17aa84(-0x351,-0x285,-0x209,-_0x3ad794._0x39cd5f));function _0x17aa84(_0x45287c,_0xc79713,_0x472e76,_0x489809){return _0x2335a2(_0x489809,_0xc79713-0x30,_0xc79713- -0xc,_0x489809-0x1db);}return yield createToolOutput(_0x1399b6,{'url':_0x15919f,'contentType':_0x378084,'statusCode':_0x4dea9f,'format':_0x50b35f,'size':_0x29b0f3[_0x1f02aa(-0x1d3,-_0x3ad794._0x528b9f,-_0x3ad794._0x3e5e53,-_0x3ad794._0x58eafc)],'fetchedAt':_0x1f5c99}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x12584b(0x4d0,0x51a,0x4c9,0x51c);function normalizeUrl(_0x4b5379){const _0x1012e0={_0x591895:0x6f,_0x40fa67:0xab,_0x4a620b:0x132,_0x542f24:0x15e,_0x7ba1a5:0x146,_0x13d586:0xb6,_0x391a44:0x2e,_0xfa9f7a:0x5,_0x27f81c:0x13c,_0x15e958:0x161,_0x24d0a7:0x2e,_0x34ab53:0xa8,_0x4f5ee4:0x18,_0x9ffd2a:0x106,_0xe5911f:0x151,_0x491b92:0xea,_0x315a95:0x82,_0x12fedf:0xcd,_0x4c74e4:0x77},_0x3f8b7c={_0x5353bb:0x20,_0x4d5262:0x1d9},_0x2f97d6={_0x2d062b:0x21};function _0x4d8000(_0x2acad0,_0x3bde4e,_0x489b95,_0x49f7b8){return _0x46bf5b(_0x2acad0-0xba,_0x49f7b8,_0x489b95-_0x2f97d6._0x2d062b,_0x3bde4e- -0x496);}function _0x2d0eb1(_0x282447,_0x51e5bf,_0x421f6c,_0x2d5cbc){return _0x46bf5b(_0x282447-_0x3f8b7c._0x5353bb,_0x51e5bf,_0x421f6c-_0x3f8b7c._0x4d5262,_0x2d5cbc- -0x454);}try{const _0x3addd5=new URL(_0x4b5379);for(const _0x56ea28 of[_0x4d8000(-0xf5,-_0x1012e0._0x591895,0x4,-_0x1012e0._0x40fa67),_0x4d8000(0x54,_0x1012e0._0x4a620b,_0x1012e0._0x542f24,_0x1012e0._0x7ba1a5),_0x4d8000(-0x54,0x2b,0xaf,-0x84),_0x2d0eb1(0xb2,0xfb,_0x1012e0._0x13d586,0x54),_0x4d8000(_0x1012e0._0x391a44,0x4b,0x79,-_0x1012e0._0xfa9f7a),_0x2d0eb1(_0x1012e0._0x27f81c,0x1f6,0xf7,_0x1012e0._0x15e958),'fbclid',_0x4d8000(_0x1012e0._0x24d0a7,0x10b,0xa3,0x1bb),_0x2d0eb1(_0x1012e0._0x34ab53,0xcb,-_0x1012e0._0x4f5ee4,0xd1)]){_0x3addd5[_0x2d0eb1(0x27,-_0x1012e0._0x9ffd2a,0x46,-0x4b)][_0x2d0eb1(_0x1012e0._0xe5911f,_0x1012e0._0x491b92,0x156,0xed)](_0x56ea28);}return _0x3addd5[_0x4d8000(_0x1012e0._0x315a95,-0x18,_0x1012e0._0x12fedf,-_0x1012e0._0x4c74e4)]();}catch{return _0x4b5379;}}function cseDateRestrict(_0x5dc908){const _0x7375fa={_0x13f003:0x19f,_0x405f35:0x1b6,_0x1e5b99:0x3c1},_0x224f02={_0x3cdd31:0x19},_0xc21065={_0x397828:0x39,_0x1d9f5b:0x1d2};if(_0x5dc908<=0x0)return void 0x0;if(_0x5dc908<=0x1e)return'd'+Math[_0x4822d2(-0x17b,-_0x7375fa._0x13f003,-_0x7375fa._0x405f35,-0x130)](0x1,Math['floor'](_0x5dc908));function _0x1085e5(_0x26eb8f,_0x560936,_0x410040,_0xd132f5){return _0x46bf5b(_0x26eb8f-0x1ab,_0x26eb8f,_0x410040-_0xc21065._0x397828,_0x410040- -_0xc21065._0x1d9f5b);}if(_0x5dc908<=0x16d)return'm'+Math[_0x1085e5(_0x7375fa._0x1e5b99,0x2eb,0x399,0x46d)](_0x5dc908/0x1e);function _0x4822d2(_0x33681f,_0x5ebe06,_0x1f1db5,_0x18d366){return _0x46bf5b(_0x33681f-0x6c,_0x1f1db5,_0x1f1db5-_0x224f02._0x3cdd31,_0x33681f- -0x71e);}return'y'+Math['ceil'](_0x5dc908/0x16d);}function addSiteFilters(_0x1de8c7,_0x31775e){const _0x1f281d={_0x19d87f:0x2d2,_0x39f2e4:0x12c,_0x793ef6:0x11e,_0x50ee63:0x71,_0x3aad89:0x1f3},_0x3511fc={_0x204fc6:0x6a},_0x45e9d6={_0x3e2ca9:0xa1};function _0x119e52(_0x13e1a0,_0x2b5995,_0x4d9c5e,_0x3c41d3){return _0x12584b(_0x13e1a0- -0x39e,_0x2b5995-0x156,_0x4d9c5e-_0x45e9d6._0x3e2ca9,_0x3c41d3);}function _0x43713a(_0x3ca32c,_0x119394,_0x4f9e1a,_0x49b4b2){return _0x46bf5b(_0x3ca32c-_0x3511fc._0x204fc6,_0x3ca32c,_0x4f9e1a-0x5a,_0x119394- -0x6f3);}if(_0x31775e[_0x43713a(-0x1f7,-_0x1f281d._0x19d87f,-0x227,-0x2d3)]===0x0)return _0x1de8c7[_0x43713a(-0x6a,-0x123,-_0x1f281d._0x39f2e4,-0x197)]();return(_0x1de8c7+'\x20('+_0x31775e[_0x119e52(0x94,_0x1f281d._0x793ef6,_0x1f281d._0x50ee63,0x17e)](_0x3b19d4=>_0x119e52(0x64,0xa2,0x120,0xc8)+_0x3b19d4)[_0x43713a(-0x2ae,-_0x1f281d._0x3aad89,-0x2db,-0x118)]('\x20OR\x20')+')')['trim']();}function normalizeType(_0x12d7a0){const _0x1f946c={_0x679193:0x17e,_0x9c9807:0x1c8,_0x2b1bcf:0xf4,_0xe671c2:0x109,_0x28b204:0x19e,_0x36e7bc:0x20e,_0x4fdc7b:0x14d},_0x2fbd75={_0x5869bb:0xb5},_0x2021f5={_0x30783f:0x1a0};function _0x5b93a1(_0x25a27d,_0x16eb46,_0x877ea4,_0x381858){return _0x12584b(_0x25a27d- -0x289,_0x16eb46-_0x2021f5._0x30783f,_0x877ea4-0x2c,_0x877ea4);}function _0x59377e(_0x20c300,_0x1a8c0a,_0x2be332,_0x175228){return _0x12584b(_0x175228- -0x4b7,_0x1a8c0a-_0x2fbd75._0x5869bb,_0x2be332-0x1c2,_0x1a8c0a);}return _0x12d7a0===_0x5b93a1(_0x1f946c._0x679193,_0x1f946c._0x9c9807,_0x1f946c._0x2b1bcf,0x265)?_0x59377e(-_0x1f946c._0xe671c2,-0xcd,-0x50,-0xb0):_0x5b93a1(_0x1f946c._0x28b204,_0x1f946c._0x36e7bc,0x159,_0x1f946c._0x4fdc7b);}async function fetchJson(_0x139652,_0x53a9c3){const _0x46b69c={_0x39a9b5:0xd7,_0x4e86ca:0x12c,_0x12b6c8:0x47,_0x285d80:0xdd,_0x4b94fc:0x99,_0x182beb:0x22,_0x503580:0xa0,_0x246180:0x4c},_0x32298={_0x3a2d38:0x50f};function _0x3a19f7(_0x41206a,_0x3a7737,_0x256cf8,_0xe33613){return _0x46bf5b(_0x41206a-0x1cb,_0x256cf8,_0x256cf8-0x1d0,_0x41206a- -0x52d);}const _0x137c9d=await fetch(_0x139652,{'headers':{'User-Agent':USER_AGENT2,'Accept':'application/json'},'signal':_0x53a9c3});if(!_0x137c9d['ok']){await _0x137c9d[_0x359534(-0xe7,-_0x46b69c._0x39a9b5,-0xfb,-_0x46b69c._0x4e86ca)]?.[_0x359534(_0x46b69c._0x12b6c8,-0xe5,-0x2c,-_0x46b69c._0x285d80)]()['catch'](()=>void 0x0);throw new ToolExecutionError('HTTP\x20'+_0x137c9d[_0x359534(-_0x46b69c._0x4b94fc,0x26,_0x46b69c._0x182beb,0x24)]+'\x20'+_0x137c9d[_0x3a19f7(-0xae,-0xa7,-0xe6,0x28)],{'statusCode':_0x137c9d[_0x359534(-0x21,-_0x46b69c._0x503580,0x22,-0x4)]});}function _0x359534(_0x1d3e28,_0x1c76de,_0x159475,_0x4ab4e8){return _0x46bf5b(_0x1d3e28-0xd9,_0x1c76de,_0x159475-0x3a,_0x159475- -_0x32298._0x3a2d38);}return await _0x137c9d[_0x3a19f7(-0x10,_0x46b69c._0x246180,0x97,0x85)]();}async function hydrateResults(_0x4df9b7,_0x42bba3,_0x39efe0){const _0x187c4f={_0x41fb58:0x3c9,_0x2586da:0x4a2,_0x36cbcd:0x41c,_0x44aa0e:0x89,_0x52b1e3:0x156,_0x36807b:0x1eb,_0x4ba9ad:0x7f,_0x2fe73c:0x224,_0x561134:0x156},_0x474228={_0x909efd:0x1bb,_0x783657:0x118,_0x213909:0x1fc,_0x319ae4:0x27c,_0x34cb99:0xbb,_0x1c9184:0xc9,_0x30f97b:0x6f,_0x5d604d:0x10d,_0x1d48aa:0x176,_0x400e03:0x23c,_0x3bc784:0xa7,_0x4c3193:0x180,_0x49790f:0xc9,_0x50e8bb:0x22d,_0x436661:0x1ac,_0x35b758:0x166,_0x38379f:0x1a0,_0x3b8707:0x13f,_0x2a3d05:0xe2,_0x2d9cdc:0xb0,_0x628eda:0x40,_0x4ab741:0x110,_0x6ab4c7:0xf3,_0x1cb2bc:0xa1,_0x18326b:0xd7,_0x599a86:0xe2,_0x33db93:0x2ea,_0x94bf1e:0x1b6,_0x538c8c:0x282,_0x4dac58:0x297,_0x874cd7:0x1b3,_0x392a4c:0x1b8,_0x3fdaab:0x4f,_0x2bba96:0x78,_0x4c4476:0x1e0,_0x192ad9:0x290,_0x5ef395:0x53,_0x1d1626:0x1c9,_0x4b5e2c:0x30,_0x648d4b:0xb9,_0x2df129:0x16e,_0x4051e0:0x189,_0xcdd495:0x17d,_0x5190c8:0x1ee,_0x5819f1:0x1b8,_0x24a896:0xc8,_0x33b252:0x90,_0x15a7b6:0xc},_0x5be261={_0x7f2202:0xa8};function _0x534f0d(_0x4bffb0,_0x3cfb7b,_0x25bd7f,_0x1f0ee0){return _0x46bf5b(_0x4bffb0-0x1c7,_0x3cfb7b,_0x25bd7f-0xfc,_0x25bd7f- -_0x5be261._0x7f2202);}function _0x5ae220(_0xacc667,_0x1f8605,_0x26e31f,_0x48e160){return _0x12584b(_0x48e160- -0x588,_0x1f8605-0xd3,_0x26e31f-0x140,_0xacc667);}const _0x47e320=await Promise[_0x534f0d(_0x187c4f._0x41fb58,0x432,0x4a7,_0x187c4f._0x2586da)](_0x4df9b7[_0x534f0d(0x31f,_0x187c4f._0x36cbcd,0x354,0x31b)](0x0,0xa)[_0x5ae220(-0x16c,-_0x187c4f._0x44aa0e,-0xce,-_0x187c4f._0x52b1e3)](async _0x4edd3c=>{const _0x766e38={_0x22381a:0x1b9},_0x3e8868={_0x3c69ce:0x1e5};function _0x2f2edd(_0x3dcd1b,_0x3dd9aa,_0x4d1c46,_0xaf6f8a){return _0x534f0d(_0x3dcd1b-_0x3e8868._0x3c69ce,_0x3dd9aa,_0xaf6f8a- -0x52c,_0xaf6f8a-0xc3);}function _0xf471cf(_0x1c4428,_0x1eeb72,_0x5cc0d8,_0x453666){return _0x534f0d(_0x1c4428-_0x766e38._0x22381a,_0x1eeb72,_0x1c4428- -0x2ac,_0x453666-0x74);}try{const _0x5334e7=await fetch(_0x4edd3c[_0x2f2edd(-0x159,-_0x474228._0x909efd,-0x29b,-0x1b8)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x42bba3,'Accept':_0x2f2edd(-0xf8,-_0x474228._0x783657,-0xbe,-0x3c)},'signal':_0x39efe0});if(!_0x5334e7['ok'])return _0x4edd3c;const _0x413f3a=await _0x5334e7[_0x2f2edd(-0x227,-_0x474228._0x213909,-_0x474228._0x319ae4,-0x19f)](),_0x5b9bf4=load(_0x413f3a),_0x5add4f=_0x5b9bf4('meta[property=\x27og:title\x27]')[_0x2f2edd(0x63,-_0x474228._0x34cb99,-_0x474228._0x1c9184,-_0x474228._0x30f97b)](_0x2f2edd(-_0x474228._0x5d604d,-0x58,-0xcb,-0xe2))||_0x5b9bf4(_0xf471cf(0x103,0xf7,0x123,0x19c))[_0xf471cf(_0x474228._0x1d48aa,0xc2,_0x474228._0x400e03,0x18b)]()[_0x2f2edd(-0x162,-0x156,-0x14e,-0x19f)]()[_0x2f2edd(0xc0,-0xd1,-_0x474228._0x3bc784,-0x4)](),_0x3e22f2=_0x5b9bf4(_0x2f2edd(-_0x474228._0x4c3193,-_0x474228._0x49790f,-_0x474228._0x50e8bb,-_0x474228._0x436661))[_0xf471cf(0x211,0x285,0x181,_0x474228._0x35b758)](_0x2f2edd(-_0x474228._0x38379f,-0x1cb,-_0x474228._0x3b8707,-_0x474228._0x2a3d05))||_0x5b9bf4(_0xf471cf(_0x474228._0x2d9cdc,_0x474228._0x3bc784,0x129,_0x474228._0x628eda))[_0x2f2edd(-0x4a,-_0x474228._0x4ab741,-_0x474228._0x6ab4c7,-_0x474228._0x30f97b)](_0x2f2edd(-0x119,-_0x474228._0x1cb2bc,-_0x474228._0x18326b,-_0x474228._0x599a86))||_0x4edd3c['snippet'],_0x505e34=_0x5b9bf4(_0xf471cf(0x21e,_0x474228._0x33db93,0x2a5,_0x474228._0x94bf1e))[_0xf471cf(0x211,_0x474228._0x538c8c,_0x474228._0x4dac58,0x24b)](_0xf471cf(0x19e,_0x474228._0x874cd7,0x11e,_0x474228._0x392a4c))||_0x5b9bf4(_0x2f2edd(-_0x474228._0x3fdaab,-_0x474228._0x2bba96,-0x158,-0x11f))[_0xf471cf(0x211,_0x474228._0x4c4476,0x14e,_0x474228._0x192ad9)](_0xf471cf(0x109,0x9d,_0x474228._0x5ef395,0x1d4))||_0x4edd3c[_0xf471cf(0xf8,_0x474228._0x1d1626,_0x474228._0x4b5e2c,0x89)],_0x443a50=_0x5b9bf4(_0xf471cf(0xb2,0xc6,_0x474228._0x648d4b,0x176))['attr'](_0xf471cf(_0x474228._0x2df129,_0x474228._0x4051e0,0x124,0x248));return{..._0x4edd3c,'title':_0x5add4f||_0x4edd3c[_0x2f2edd(-0x128,-0xc6,-0x124,-_0x474228._0xcdd495)],'snippet':_0x3e22f2,'url':_0x443a50?normalizeUrl(new URL(_0x443a50,_0x4edd3c[_0x2f2edd(-_0x474228._0x5190c8,-0x170,-0x11a,-_0x474228._0x5819f1)])['toString']()):_0x4edd3c[_0xf471cf(_0x474228._0x24a896,_0x474228._0x33b252,-_0x474228._0x15a7b6,0x11f)],'publishedAt':_0x505e34};}catch{return _0x4edd3c;}})),_0x2098db=new Map(_0x4df9b7['slice'](0x0,0xa)[_0x5ae220(-0x156,-_0x187c4f._0x36807b,-0xd6,-_0x187c4f._0x52b1e3)]((_0x32f249,_0x31f379)=>[_0x32f249['url'],_0x47e320[_0x31f379]]));return _0x4df9b7[_0x5ae220(-_0x187c4f._0x4ba9ad,-_0x187c4f._0x2fe73c,-0x216,-_0x187c4f._0x561134)](_0x241260=>_0x2098db[_0x5ae220(-0xbd,-0x39,-0x75,-0xc0)](_0x241260[_0x534f0d(0x324,0x385,0x374,0x449)])??_0x241260);}function formatResults(_0x541ab3){const _0x2c9a52={_0x3881a0:0x171,_0x1c8184:0x50d,_0x1463c2:0x234,_0x4b7d9a:0x1eb,_0x133045:0x25f},_0x3c3dec={_0x453418:0x1cb,_0x3cebd1:0x342,_0x498c71:0x107,_0xa69022:0x164,_0x3507e7:0xd0,_0x3b6e80:0xee,_0x54ba74:0x13,_0x380798:0x247,_0x3e3173:0x12e,_0x682be7:0xb1,_0x21ee4a:0xf,_0x582f37:0x1a9,_0x12c990:0xdf,_0x5cc08a:0x94,_0x39ff4a:0xf1,_0x95e7d6:0x114,_0x319115:0x7f,_0x3ad682:0x94,_0x16d455:0x80,_0x13d247:0x1f1};function _0x314507(_0x271fba,_0x5cd64e,_0x4e725c,_0x58e084){return _0x46bf5b(_0x271fba-0x14c,_0x58e084,_0x4e725c-0x1cb,_0x271fba- -0x2cc);}if(_0x541ab3['length']===0x0)return _0x314507(0x22a,0x180,_0x2c9a52._0x3881a0,0x27e);function _0x6cd74b(_0x56e024,_0x477ede,_0x2e96d5,_0x37f08d){return _0x46bf5b(_0x56e024-0x19a,_0x477ede,_0x2e96d5-0x194,_0x56e024-0xab);}return _0x541ab3[_0x6cd74b(0x520,0x50d,_0x2c9a52._0x1c8184,0x439)](_0x1e074e=>{const _0x2b1dcd={_0x396286:0x131,_0x410c0d:0xe1},_0x7b2b60={_0xdff14c:0x57},_0x20bc66=[_0x1e074e[_0x3b1365(0x26a,_0x3c3dec._0x453418,0x29d,_0x3c3dec._0x3cebd1)]['rank']+'.\x20'+_0x1e074e['title'],_0x1e074e[_0x4b7f99(0x6a,_0x3c3dec._0x498c71,_0x3c3dec._0xa69022,0x9f)]];function _0x3b1365(_0xaeb6ac,_0xa1f304,_0xc6bf97,_0xc46068){return _0x314507(_0xc6bf97- -_0x7b2b60._0xdff14c,_0xa1f304-0xc2,_0xc6bf97-0xd1,_0xa1f304);}if(_0x1e074e[_0x3b1365(_0x3c3dec._0x3507e7,0xb6,_0x3c3dec._0x3b6e80,_0x3c3dec._0x54ba74)])_0x20bc66[_0x3b1365(_0x3c3dec._0x380798,0x165,0x16e,0xda)](_0x1e074e[_0x3b1365(_0x3c3dec._0x3e3173,0x8f,0xee,_0x3c3dec._0x682be7)]);function _0x4b7f99(_0x57c788,_0x267827,_0xda8fc5,_0x50e090){return _0x6cd74b(_0x50e090- -0x428,_0xda8fc5,_0xda8fc5-_0x2b1dcd._0x396286,_0x50e090-_0x2b1dcd._0x410c0d);}if(_0x1e074e[_0x4b7f99(-_0x3c3dec._0x21ee4a,_0x3c3dec._0x582f37,_0x3c3dec._0x12c990,0xcf)])_0x20bc66[_0x4b7f99(_0x3c3dec._0x5cc08a,0x196,_0x3c3dec._0x39ff4a,_0x3c3dec._0x95e7d6)](_0x4b7f99(_0x3c3dec._0x319115,_0x3c3dec._0x3ad682,0x15f,0xe2)+_0x1e074e[_0x3b1365(0x10c,_0x3c3dec._0x16d455,0x129,_0x3c3dec._0x13d247)]);return _0x20bc66['join']('\x0a');})[_0x314507(_0x2c9a52._0x1463c2,_0x2c9a52._0x4b7d9a,_0x2c9a52._0x133045,0x2e6)]('\x0a\x0a');}async function searchGoogleCse(_0x86c7bd,_0xe00fd,_0x5b1e2c){const _0x4482be={_0x41052a:0x12d,_0x3ab475:0xc9,_0xc7a73b:0x1d4,_0x2171b0:0x109,_0x1743d4:0x6b,_0x2c302e:0x336,_0x2545b3:0x10e,_0x14cdda:0x1ff,_0x2720bf:0x178,_0x5ad7bd:0xa4,_0x2265d8:0x149,_0x13d93b:0x180,_0x375a10:0x155,_0x1e986d:0x1ee,_0x383dda:0x1c5,_0x1d4316:0x9,_0x287dd7:0x9d,_0x27995e:0x69,_0x33eac5:0x129,_0x47102c:0x1e7,_0x336719:0x214,_0x8b313a:0x250,_0x597390:0x194,_0x253f39:0x1d5,_0x22c621:0x296,_0x19fee4:0x31d,_0x5c7d55:0x32c,_0x1f24f2:0x1e2,_0x41c34b:0x2ae,_0x45a4d5:0x8f,_0x18ba82:0x117,_0x5e6ae8:0x1fc,_0x47d395:0x16f,_0x4794a7:0x9,_0x2777c0:0xd8,_0x182ba9:0x4,_0x116676:0x1b9,_0x3e07e4:0x176,_0x344b85:0xcd,_0x4fc739:0xc4,_0x30c14a:0x254,_0x1a659f:0x1ac,_0xc2c2b4:0x23b,_0x191c5a:0x2e6,_0x185d27:0x282,_0x5319e7:0x2b2,_0x3bd56c:0x2a0,_0x1373f3:0x1be,_0x2459e3:0x146,_0x3800dd:0x1e4,_0x345947:0x251,_0x2f26f6:0x2d0,_0x16bc8f:0x2a1,_0x25ce83:0xeb,_0x1f6741:0x94,_0x36d9e5:0xfd,_0x208f60:0x30f,_0xae5b58:0x2b9,_0x462a7d:0x55,_0xc6a41b:0x315,_0x4e546a:0x2c4,_0x4fb717:0x330,_0x1c010d:0x25b,_0x334766:0x30e,_0x9a744b:0x124,_0x516668:0x1cd,_0x3b26df:0x202,_0x26bb80:0x27a,_0x5cff10:0x134,_0x2710ad:0x1df,_0x5ecc1b:0xb0,_0x1784e3:0xdb,_0x20131d:0x227,_0x4ba450:0x2c6,_0x3b8688:0x1fd,_0x510f3d:0x255,_0x24eaf4:0x1a4,_0x500366:0x19f,_0x3c25f6:0x2e8,_0x341037:0x21a,_0x498654:0x327,_0x2a2a02:0x21,_0x35c66b:0x105,_0x15d07c:0x21,_0x46a29a:0xb2,_0x3bb89a:0x56,_0x224afe:0x207,_0x143581:0xe4,_0x547ee7:0xe1,_0x12c088:0x49,_0x41e7b3:0x274,_0x234ed9:0xda,_0x28d733:0x40,_0x4cbd14:0x44,_0x5badc9:0xb0,_0x5cdcba:0xc,_0x174a1c:0x43,_0x4a4c4e:0x7a,_0x96883f:0x91,_0x295ae1:0x66,_0x5cd912:0x24e,_0x5c9a70:0x313,_0x59a79e:0x363,_0x88ae30:0x27d,_0x301e4a:0x21,_0x2478b8:0x4b,_0x17ec4f:0xc7,_0x5e2617:0xa8,_0x2b3f05:0x21,_0x3a74d7:0xde,_0x571479:0x167,_0x52e830:0x1d3,_0x60a333:0x104,_0x306851:0x1cb,_0x99ab46:0x113},_0xca8142={_0x1100c4:0x293},_0x302b96={_0x324379:0xd5},_0x281ec1=Math['max'](0x1,Math[_0x2a2008(_0x4482be._0x41052a,0x184,_0x4482be._0x3ab475,0x179)](0x32,_0xe00fd['count']));function _0x2a2008(_0x3afe06,_0x10921e,_0x35f083,_0x382397){return _0x46bf5b(_0x3afe06-_0x302b96._0x324379,_0x35f083,_0x35f083-0x1b3,_0x3afe06- -0x400);}if(_0xe00fd[_0x2a2008(0x180,_0x4482be._0xc7a73b,_0x4482be._0x2171b0,0x192)]+_0x281ec1>0x64)throw new ToolExecutionError(_0x2a2008(_0x4482be._0x1743d4,0x3a,-0x3c,-0x68),{'offset':_0xe00fd[_0x3244d6(0x2ed,_0x4482be._0x2c302e,0x28d,0x2be)],'count':_0x281ec1,'maxResults':0x64});const _0x36dbe8=cseDateRestrict(_0xe00fd['recencyDays']),_0x291442=addSiteFilters(_0xe00fd[_0x2a2008(0x19b,_0x4482be._0x2545b3,0xf6,_0x4482be._0x14cdda)],_0xe00fd[_0x2a2008(_0x4482be._0x2720bf,_0x4482be._0x5ad7bd,0x103,_0x4482be._0x2265d8)]);let _0x5dcdf1=0x0,_0x2fd772=_0xe00fd[_0x2a2008(_0x4482be._0x13d93b,0x184,0x25a,0x1d8)]+0x1;const _0x1d77f8=[];function _0x3244d6(_0x45232e,_0x43db18,_0x7a9585,_0x52ddf2){return _0x46bf5b(_0x45232e-0x29,_0x52ddf2,_0x7a9585-0x68,_0x45232e- -_0xca8142._0x1100c4);}while(_0x5dcdf1<_0x281ec1){const _0x3d68a4=Math['min'](0xa,_0x281ec1-_0x5dcdf1),_0x19f82f=new URL(_0x3244d6(0x221,_0x4482be._0x375a10,_0x4482be._0x1e986d,_0x4482be._0x383dda));_0x19f82f[_0x2a2008(_0x4482be._0x1d4316,-0xc6,-_0x4482be._0x287dd7,_0x4482be._0x27995e)][_0x2a2008(_0x4482be._0x33eac5,_0x4482be._0x47102c,0x1fd,0xbb)]('key',_0x86c7bd[_0x3244d6(_0x4482be._0x336719,0x130,_0x4482be._0x8b313a,_0x4482be._0x597390)]),_0x19f82f[_0x3244d6(0x176,_0x4482be._0x253f39,0x137,0xde)][_0x3244d6(_0x4482be._0x22c621,_0x4482be._0x19fee4,_0x4482be._0x5c7d55,_0x4482be._0x1f24f2)]('cx',_0x86c7bd[_0x3244d6(0x1ea,0x146,0x256,_0x4482be._0x41c34b)]),_0x19f82f['searchParams'][_0x2a2008(0x129,_0x4482be._0x45a4d5,_0x4482be._0x18ba82,0x97)]('q',_0x291442),_0x19f82f['searchParams'][_0x2a2008(0x129,_0x4482be._0x5e6ae8,_0x4482be._0x47d395,_0x4482be._0x27995e)]('num',String(_0x3d68a4)),_0x19f82f[_0x2a2008(_0x4482be._0x4794a7,0xb4,-_0x4482be._0x2777c0,_0x4482be._0x182ba9)][_0x3244d6(0x296,0x2d9,0x37f,_0x4482be._0x116676)]('start',String(_0x2fd772)),_0x19f82f[_0x3244d6(_0x4482be._0x3e07e4,_0x4482be._0x344b85,_0x4482be._0x4fc739,_0x4482be._0x30c14a)]['set']('safe',_0xe00fd[_0x2a2008(_0x4482be._0x1a659f,0x195,_0x4482be._0xc2c2b4,0x222)]?_0x3244d6(_0x4482be._0x191c5a,_0x4482be._0x185d27,0x2a4,0x2e6):_0x3244d6(0x30d,0x26b,_0x4482be._0x5319e7,0x3eb));_0xe00fd[_0x3244d6(0x251,_0x4482be._0x3bd56c,_0x4482be._0x1373f3,0x22e)]&&(_0x19f82f['searchParams'][_0x2a2008(0x129,_0x4482be._0x2459e3,0xf3,_0x4482be._0x3800dd)]('hl',_0xe00fd[_0x3244d6(_0x4482be._0x345947,_0x4482be._0x2f26f6,_0x4482be._0x16bc8f,0x333)]),_0x19f82f['searchParams'][_0x2a2008(0x129,_0x4482be._0x25ce83,0x44,_0x4482be._0x1f6741)]('lr',_0x2a2008(0x143,_0x4482be._0x36d9e5,0x8e,0xeb)+_0xe00fd[_0x3244d6(_0x4482be._0x345947,_0x4482be._0x208f60,_0x4482be._0x191c5a,_0x4482be._0xae5b58)]));if(_0xe00fd['region'])_0x19f82f[_0x2a2008(0x9,0x83,-_0x4482be._0x462a7d,-0x93)][_0x3244d6(0x296,0x1e9,_0x4482be._0xc6a41b,_0x4482be._0x4e546a)]('gl',_0xe00fd[_0x3244d6(_0x4482be._0x4fb717,_0x4482be._0x1c010d,_0x4482be._0x334766,0x252)][_0x3244d6(0x1fb,0x195,_0x4482be._0x9a744b,0x202)]());if(_0xe00fd[_0x3244d6(_0x4482be._0x516668,0x144,0x12c,0x17d)]==='images')_0x19f82f['searchParams'][_0x3244d6(0x296,_0x4482be._0x3b26df,0x22d,_0x4482be._0x26bb80)](_0x2a2008(_0x4482be._0x5cff10,0x107,_0x4482be._0x2710ad,_0x4482be._0x5ecc1b),'image');if(_0x36dbe8)_0x19f82f[_0x3244d6(0x176,0x154,_0x4482be._0x1784e3,0x21b)][_0x3244d6(0x296,_0x4482be._0x20131d,_0x4482be._0x4ba450,_0x4482be._0x3b8688)](_0x3244d6(_0x4482be._0x510f3d,0x2cb,0x197,0x217),_0x36dbe8);const _0x2234ee=await fetchJson(_0x19f82f[_0x3244d6(0x1eb,_0x4482be._0x24eaf4,_0x4482be._0x500366,0x19b)](),_0x5b1e2c),_0x27ecf5=_0x2234ee[_0x3244d6(_0x4482be._0x3c25f6,_0x4482be._0x341037,_0x4482be._0x498654,0x2a4)]??[];if(_0x27ecf5[_0x2a2008(_0x4482be._0x2a2a02,0xa,_0x4482be._0x35c66b,_0x4482be._0x15d07c)]===0x0)break;const _0x235d77=_0x5dcdf1;for(let _0x22e54c=0x0;_0x22e54c<_0x27ecf5['length'];_0x22e54c++){const _0x388a3a=_0x27ecf5[_0x22e54c];if(!_0x388a3a)continue;const _0x53d9a3=_0x388a3a[_0x2a2008(_0x4482be._0x46a29a,0x163,_0x4482be._0x3bb89a,0x64)]||_0x388a3a['image']?.[_0x2a2008(_0x4482be._0x597390,_0x4482be._0x224afe,_0x4482be._0x143581,0x27d)]||'',_0x2172ec=_0x388a3a[_0x2a2008(0x57,_0x4482be._0x27995e,_0x4482be._0x547ee7,_0x4482be._0x12c088)]||_0x388a3a['image']?.[_0x3244d6(0x1c4,0x175,0x28f,_0x4482be._0x41e7b3)]||'Untitled',_0x172b35=_0x388a3a['snippet']||_0x388a3a[_0x2a2008(-0x6,_0x4482be._0x234ed9,_0x4482be._0x28d733,-_0x4482be._0x4cbd14)]?.['replace'](/<[^>]+>/g,''),_0x96c333=_0x388a3a['pagemap']?.[_0x2a2008(0x10,0x57,_0x4482be._0x5badc9,-_0x4482be._0x5cdcba)]?.[0x0]??{};let _0x3da69f;try{_0x3da69f=new URL(_0x53d9a3)[_0x2a2008(0x3f,0x29,_0x4482be._0x174a1c,-_0x4482be._0x4a4c4e)];}catch{_0x3da69f=null;}_0x1d77f8[_0x2a2008(_0x4482be._0x96883f,0x14a,_0x4482be._0x295ae1,0x14a)]({'title':_0x2172ec,'url':normalizeUrl(_0x53d9a3),'snippet':_0x172b35??null,'displayUrl':_0x3da69f,'favicon':null,'publishedAt':_0x96c333['article:published_time']||_0x96c333[_0x3244d6(0x289,0x1dd,0x2a7,_0x4482be._0x5cd912)]||null,'source':{'engine':_0x3244d6(_0x4482be._0x5c9a70,_0x4482be._0x59a79e,_0x4482be._0x88ae30,0x3f5),'rank':_0x235d77+_0x22e54c+0x1}});}_0x5dcdf1+=_0x27ecf5[_0x2a2008(_0x4482be._0x301e4a,_0x4482be._0x2478b8,_0x4482be._0x17ec4f,-_0x4482be._0x5e2617)],_0x2fd772+=_0x27ecf5[_0x2a2008(_0x4482be._0x2b3f05,0x103,_0x4482be._0x462a7d,_0x4482be._0x3a74d7)];if(_0x27ecf5[_0x3244d6(0x18e,_0x4482be._0x571479,_0x4482be._0x52e830,_0x4482be._0x60a333)]<_0x3d68a4)break;}return _0x1d77f8[_0x3244d6(0x169,_0x4482be._0x306851,_0x4482be._0x99ab46,0x1a6)](0x0,_0x281ec1);}function createWebSearchTool(_0x48c36f){const _0x4c5757={_0x24b60f:0x61,_0x3d6d03:0xc4,_0x526e7a:0x19e,_0x2fef17:0x211,_0x44b354:0x2dd,_0x470b2e:0x21f,_0x2d46f5:0x18b,_0x6670f0:0x177,_0x4e2429:0x109,_0x377ded:0x81,_0x3f3151:0x8c,_0x57709b:0x166,_0xe37b64:0x18d,_0x239b5b:0x236,_0x40acfd:0x192,_0x40602b:0x10a,_0x5b09ba:0x107,_0x1c38ce:0x9d,_0xe82b4e:0x10d,_0x1952bc:0x1d3,_0xc709f9:0x114,_0x57dc26:0x17,_0xb9c58:0xf2,_0xa56407:0x80,_0x5987be:0x182,_0x306dc3:0xf2,_0x11b17c:0x286,_0xc920c9:0x40,_0x224ff6:0xd9},_0x52ceca={_0x3cf8a4:0x486,_0x3daf01:0x400,_0x1d4dc0:0x138,_0xaa6e1f:0x187,_0x138d9e:0x52,_0xd492bc:0x392,_0x9540d9:0xf9,_0x3a1fc2:0x17e,_0x7d3ecd:0x4d9,_0x52709a:0x408,_0x4bd531:0x9c,_0x9b4c61:0x3f6,_0xe3c972:0x455,_0x48cafd:0xe0,_0x51baec:0xa9,_0x1ec85e:0x10b,_0x3f9af2:0x1aa,_0x61790f:0xee,_0x3e2a1c:0x383,_0x4ab4a2:0x114,_0x408173:0x2ed,_0xdce2a3:0x2c5,_0x5d60c7:0xeb,_0x5325e7:0xa4,_0x4a4880:0x12a,_0x290086:0x21f,_0x5ae7ae:0x9f,_0x4d9d:0x94,_0x33fa7d:0x17b,_0x7e9c76:0x13a,_0x4ef390:0x206,_0x3029d1:0x121,_0x2c742f:0x135,_0x1d2d56:0x25,_0x5922bc:0x1f9,_0x3c7c94:0x322,_0x13c4a8:0x32c,_0x4b5443:0x32a,_0x576d7b:0x3be,_0x267e22:0x83,_0x3a56de:0xc2,_0x11bd02:0x42,_0x1a913e:0x45e,_0x8531c4:0x33e,_0x4ce26c:0x380,_0x10a553:0x12b,_0x4c84ef:0xba,_0x35103b:0x1ef,_0x1d2f2c:0x12b,_0x1c1753:0x1ed,_0x11595e:0x18d,_0x2dc02a:0xd9,_0xf97d9d:0x210,_0x21a822:0x1c4,_0x293aa2:0x72,_0x3444ca:0x43e,_0x1abb30:0x38b,_0x5e0c10:0x40b,_0x413325:0x287,_0x3684d0:0x235,_0x5de709:0x286,_0x32b796:0x103,_0x1b0a0b:0xc7,_0x25dc27:0xa0,_0x3b1806:0xb1,_0x3d973b:0x35,_0x54b6a2:0x123,_0x26e152:0xab,_0x5a29ec:0x1cf},_0x5cea79={_0x18085a:0x126},_0x44307e={_0x37d027:0xc4},_0x498591={_0x3d4bb0:0x194},_0xd1b5e8={_0x23df08:0x152};if(!_0x48c36f[_0x5819d6(-_0x4c5757._0x24b60f,-0x158,-_0x4c5757._0x3d6d03,-_0x4c5757._0x526e7a)])throw new Error(_0x43103b(_0x4c5757._0x2fef17,0x20c,_0x4c5757._0x44b354,_0x4c5757._0x470b2e));function _0x43103b(_0x5caec8,_0x106dc2,_0x23e12b,_0x55ddd2){return _0x46bf5b(_0x5caec8-0x150,_0x23e12b,_0x23e12b-_0xd1b5e8._0x23df08,_0x55ddd2- -0x3a3);}if(!_0x48c36f[_0x43103b(0x1b,_0x4c5757._0x2d46f5,_0x4c5757._0x6670f0,0xda)])throw new Error(_0x43103b(_0x4c5757._0x4e2429,_0x4c5757._0x377ded,0xc1,_0x4c5757._0x3f3151));function _0x5819d6(_0x52ea94,_0x25a343,_0x3160d4,_0x4e8ff8){return _0x46bf5b(_0x52ea94-_0x498591._0x3d4bb0,_0x4e8ff8,_0x3160d4-0x2c,_0x3160d4- -0x56b);}const _0x2e18aa=_0x48c36f[_0x43103b(_0x4c5757._0x57709b,0x1e4,_0x4c5757._0xe37b64,0x129)]??_0x43103b(0x1ad,0x14c,_0x4c5757._0x239b5b,0x181);return defineTool({'name':_0x2e18aa,'description':_0x5819d6(-_0x4c5757._0x40acfd,-0x30,-_0x4c5757._0x40602b,-0x1b7),'inputSchema':{'type':_0x43103b(_0x4c5757._0x5b09ba,0xa8,0xbc,0x82),'properties':{'description':{'type':'string'},'query':{'type':_0x5819d6(-0xb5,-0x44,-0xf2,-0x192)},'count':{'type':'number'},'offset':{'type':'number'},'domains':{'type':_0x5819d6(-0x9f,-_0x4c5757._0x1c38ce,-_0x4c5757._0xe82b4e,-_0x4c5757._0x1952bc),'items':{'type':_0x5819d6(-_0x4c5757._0xc709f9,-_0x4c5757._0x57dc26,-_0x4c5757._0xb9c58,-_0x4c5757._0xa56407)}},'recencyDays':{'type':'number'},'lang':{'type':_0x5819d6(-_0x4c5757._0x5987be,-0xe7,-_0x4c5757._0x306dc3,-0x1a7)},'region':{'type':'string'},'safe':{'type':'boolean'},'type':{'type':'string'},'hydrateMeta':{'type':_0x43103b(_0x4c5757._0x11b17c,0x1d0,0xda,0x1a3)}},'required':[_0x5819d6(-_0x4c5757._0xc920c9,-0xab,0x30,_0x4c5757._0x224ff6)]},async *'execute'(_0x4a19fe,_0x395965){const _0x16639f={_0x371861:0x3a1,_0x589bfc:0x470,_0x3e1fc0:0x38f,_0x587e23:0x368,_0x1fce9c:0x3ff,_0x92413c:0x42e,_0x5911ed:0x48d},_0x5bbee6={_0x45582b:0x1a5},_0x5f1c58=_0x4a19fe[_0xa84cd2(_0x52ceca._0x3cf8a4,0x3af,0x45f,_0x52ceca._0x3daf01)][_0x16b805(_0x52ceca._0x1d4dc0,0x164,_0x52ceca._0xaa6e1f,_0x52ceca._0x138d9e)]();function _0x16b805(_0x595f40,_0x1d220c,_0x4a8bac,_0x42d3e8){return _0x43103b(_0x595f40-_0x44307e._0x37d027,_0x1d220c-0x12c,_0x42d3e8,_0x595f40- -0xf5);}if(!_0x5f1c58)throw new ToolExecutionError('Missing\x20required\x20parameter:\x20query');const _0x367437={'query':_0x5f1c58,'count':Math['max'](0x1,Math[_0xa84cd2(0x44f,0x2fc,0x3d0,_0x52ceca._0xd492bc)](0x32,Math['trunc'](_0x4a19fe[_0x16b805(_0x52ceca._0x9540d9,0x53,0x1b5,_0x52ceca._0x3a1fc2)]??0xa))),'offset':Math[_0xa84cd2(0x4a1,0x3e2,_0x52ceca._0x7d3ecd,_0x52ceca._0x52709a)](0x0,Math[_0x16b805(-0x7f,-0x40,-0x64,-_0x52ceca._0x4bd531)](_0x4a19fe[_0xa84cd2(_0x52ceca._0x9b4c61,_0x52ceca._0xe3c972,0x31f,0x3e5)]??0x0)),'domains':_0x4a19fe[_0x16b805(_0x52ceca._0x48cafd,0x154,_0x52ceca._0x51baec,-0xb)]??[],'recencyDays':Math[_0x16b805(_0x52ceca._0x1ec85e,0x19f,_0x52ceca._0x3f9af2,_0x52ceca._0x61790f)](0x0,Math['trunc'](_0x4a19fe['recencyDays']??0x0)),'lang':_0x4a19fe['lang']??'en','region':_0x4a19fe[_0xa84cd2(0x47e,0x440,_0x52ceca._0x3e2a1c,0x428)]??'','safe':_0x4a19fe[_0x16b805(_0x52ceca._0x4ab4a2,0x1cf,0x1c2,0x188)]??!![],'type':normalizeType(_0x4a19fe[_0xa84cd2(0x2fb,_0x52ceca._0x408173,0x21e,_0x52ceca._0xdce2a3)]),'hydrateMeta':_0x4a19fe[_0xa84cd2(0x3a8,0x374,0x44e,0x3e8)]??![]};let _0x11c36d=await searchGoogleCse(_0x48c36f,_0x367437,_0x395965['signal']);_0x367437[_0x16b805(_0x52ceca._0x5d60c7,_0x52ceca._0x5325e7,0xe7,_0x52ceca._0x4a4880)]&&_0x11c36d[_0xa84cd2(_0x52ceca._0x290086,0x28a,0x21c,0x286)]>0x0&&(_0x11c36d=await hydrateResults(_0x11c36d,_0x367437[_0x16b805(0x4c,0x43,_0x52ceca._0x5ae7ae,-0x67)],_0x395965[_0x16b805(-0x4f,0xd,_0x52ceca._0x4d9d,0x8b)]));const _0x5231be=new Set();_0x11c36d=_0x11c36d[_0x16b805(-0x9a,-0x81,-_0x52ceca._0x33fa7d,-_0x52ceca._0x7e9c76)](_0x46ed6f=>{const _0x59dd89={_0x15533b:0x14b,_0x1b8173:0x111},_0x23ce80=_0x46ed6f[_0x1b6f37(_0x16639f._0x371861,_0x16639f._0x589bfc,0x43a,0x2ce)][_0x1b6f37(_0x16639f._0x3e1fc0,_0x16639f._0x587e23,_0x16639f._0x1fce9c,0x406)]();function _0x117e27(_0x310775,_0xaf1d34,_0x4334b1,_0x3d3875){return _0xa84cd2(_0x310775-_0x59dd89._0x15533b,_0x3d3875,_0x4334b1-_0x59dd89._0x1b8173,_0xaf1d34- -0xf2);}if(!_0x23ce80||_0x5231be[_0x1b6f37(0x3c5,_0x16639f._0x92413c,0x48b,_0x16639f._0x5911ed)](_0x23ce80))return![];_0x5231be[_0x1b6f37(0x41a,0x3b5,0x4e4,0x399)](_0x23ce80);function _0x1b6f37(_0x370c5a,_0x2d0b00,_0x4a9f7e,_0xe64d95){return _0xa84cd2(_0x370c5a-0xb9,_0x2d0b00,_0x4a9f7e-_0x5bbee6._0x45582b,_0x370c5a-0x120);}return!![];}),_0x11c36d=_0x11c36d[_0xa84cd2(0x2a4,0x314,_0x52ceca._0x4ef390,0x2da)]((_0x3a17ea,_0x5b5389)=>({..._0x3a17ea,'source':{..._0x3a17ea[_0xa84cd2(0x35f,0x3d5,0x43f,0x425)],'rank':_0x5b5389+0x1}}));const _0x52a0ec={};if(_0x367437[_0x16b805(0xe0,_0x52ceca._0x3029d1,_0x52ceca._0x2c742f,_0x52ceca._0x1d2d56)][_0xa84cd2(_0x52ceca._0x5922bc,_0x52ceca._0x3c7c94,_0x52ceca._0x13c4a8,0x286)]>0x0)_0x52a0ec[_0xa84cd2(_0x52ceca._0x4b5443,0x325,_0x52ceca._0x576d7b,0x3dd)]=_0x367437[_0x16b805(0xe0,0x176,0xe1,0x122)];if(_0x367437[_0x16b805(_0x52ceca._0x267e22,_0x52ceca._0x3a56de,0xee,-_0x52ceca._0x11bd02)]>0x0)_0x52a0ec[_0xa84cd2(0x3ef,_0x52ceca._0x1a913e,_0x52ceca._0x8531c4,_0x52ceca._0x4ce26c)]=_0x367437['recencyDays'];function _0xa84cd2(_0x4c1190,_0x3c250a,_0x1fdeac,_0x4a7080){return _0x43103b(_0x4c1190-_0x5cea79._0x18085a,_0x3c250a-0x133,_0x3c250a,_0x4a7080-0x208);}if(_0x367437['lang']!=='en')_0x52a0ec[_0xa84cd2(0x2fd,0x42d,0x397,0x349)]=_0x367437['lang'];if(_0x367437[_0x16b805(_0x52ceca._0x10a553,_0x52ceca._0x4c84ef,0x4a,_0x52ceca._0x35103b)])_0x52a0ec[_0x16b805(_0x52ceca._0x1d2f2c,_0x52ceca._0x1c1753,_0x52ceca._0x11595e,_0x52ceca._0x2dc02a)]=_0x367437[_0x16b805(0x12b,_0x52ceca._0xf97d9d,_0x52ceca._0x21a822,_0x52ceca._0x293aa2)];return yield createToolOutput(formatResults(_0x11c36d),{'engine':_0xa84cd2(_0x52ceca._0x3444ca,0x3e7,_0x52ceca._0x1abb30,_0x52ceca._0x5e0c10),'count':_0x11c36d[_0xa84cd2(0x237,_0x52ceca._0x413325,_0x52ceca._0x3684d0,_0x52ceca._0x5de709)],'items':_0x11c36d,'query':_0x367437[_0x16b805(_0x52ceca._0x32b796,0x1bb,0x18f,_0x52ceca._0x1b0a0b)],...Object[_0x16b805(-0x25,0xa1,_0x52ceca._0x25dc27,_0x52ceca._0x3b1806)](_0x52a0ec)[_0x16b805(-0x77,-0xff,-_0x52ceca._0x3d973b,-_0x52ceca._0x54b6a2)]>0x0?{'appliedFilters':_0x52a0ec}:{},'offset':_0x367437['offset'],'totalRequested':_0x367437[_0x16b805(0xf9,_0x52ceca._0x26e152,_0x52ceca._0x5a29ec,0x73)],'hydrated':_0x367437['hydrateMeta']}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
1
+ (function(_0xd3524f,_0x6b9d11){const _0x23b7fe={_0x4315e8:0x26b,_0x4c408d:0x34e,_0x41526c:0x2f2,_0x23a504:0x143,_0x4de9e2:0x11e,_0x324852:0x16c,_0x456048:0x382,_0x43fee6:0x265,_0x17dde6:0x28e,_0xc3afa7:0x3de,_0x37b9fb:0x410,_0x269d75:0x38a,_0xe9f060:0x30b,_0x429215:0x408,_0x340af9:0x48f,_0x1a4d26:0x284,_0x39306c:0x278,_0x19982a:0x2c8,_0x167fce:0x2c9,_0x234e5a:0x207,_0x2c6ad7:0x1d3,_0x733486:0x1fd,_0x363961:0x248,_0x37c200:0x274,_0x2187f9:0x27b,_0x314da0:0x2c3,_0x59cf6a:0x1f3,_0x299fa2:0x323},_0x304b08={_0x191c96:0x375},_0x31548a={_0x5c3b2e:0x11f},_0x23930b=_0xd3524f();function _0x5b7364(_0x2ceab8,_0x150ff4,_0x22faea,_0x360586){return _0x7ca6(_0x2ceab8-_0x31548a._0x5c3b2e,_0x360586);}function _0x13fd74(_0x4248b6,_0x59419d,_0x16db16,_0x716e0c){return _0x7ca6(_0x59419d- -_0x304b08._0x191c96,_0x716e0c);}while(!![]){try{const _0x164963=-parseInt(_0x13fd74(-0x214,-0x23f,-_0x23b7fe._0x4315e8,-0x2a5))/0x1+parseInt(_0x5b7364(_0x23b7fe._0x4c408d,0x270,_0x23b7fe._0x41526c,0x22b))/0x2*(parseInt(_0x13fd74(-0x6e,-_0x23b7fe._0x23a504,-_0x23b7fe._0x4de9e2,-_0x23b7fe._0x324852))/0x3)+parseInt(_0x5b7364(_0x23b7fe._0x456048,0x25d,_0x23b7fe._0x43fee6,_0x23b7fe._0x17dde6))/0x4+-parseInt(_0x5b7364(0x2d0,0x23d,0x2b6,_0x23b7fe._0xc3afa7))/0x5*(parseInt(_0x5b7364(_0x23b7fe._0x37b9fb,0x447,_0x23b7fe._0x269d75,_0x23b7fe._0xe9f060))/0x6)+-parseInt(_0x5b7364(_0x23b7fe._0x429215,_0x23b7fe._0x340af9,0x49c,0x304))/0x7*(-parseInt(_0x13fd74(-0x269,-_0x23b7fe._0x1a4d26,-_0x23b7fe._0x39306c,-0x1ee))/0x8)+-parseInt(_0x13fd74(-_0x23b7fe._0x19982a,-_0x23b7fe._0x167fce,-_0x23b7fe._0x234e5a,-_0x23b7fe._0x2c6ad7))/0x9*(-parseInt(_0x13fd74(-_0x23b7fe._0x733486,-0x1ea,-_0x23b7fe._0x363961,-0x2dd))/0xa)+parseInt(_0x13fd74(-0x118,-0x1a5,-0xe3,-_0x23b7fe._0x37c200))/0xb*(-parseInt(_0x13fd74(-_0x23b7fe._0x2187f9,-_0x23b7fe._0x314da0,-_0x23b7fe._0x59cf6a,-_0x23b7fe._0x299fa2))/0xc);if(_0x164963===_0x6b9d11)break;else _0x23930b['push'](_0x23930b['shift']());}catch(_0x48a9b4){_0x23930b['push'](_0x23930b['shift']());}}}(_0x2759,0x57d14));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-P54V754C.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x49be13 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x22ef16(0x16e,0x193,0x182,0x15d),'.tsx':_0x324926(-0x116,-0x14f,-0x41,-0x119),'.js':_0x22ef16(0x271,0x1e8,0x140,0xcd),'.jsx':_0x22ef16(0x1de,0x224,0x34d,0x2f7),'.mjs':'javascript','.cjs':_0x22ef16(0x227,0x1e8,0x266,0x25e),'.mts':'typescript','.cts':_0x324926(-0x6b,-0x4e,-0x122,-0x74),'.json':'json','.jsonc':'jsonc'};function getLanguageId(_0x407b64){const _0x4200ce={_0x228bf9:0xbc,_0x53f45e:0xe7,_0x4bc111:0x5c,_0x2dd95c:0x32},_0x2fc245={_0x469957:0x95,_0x1b5671:0x6f},_0x23819c={_0x4c4ade:0x103};function _0x4baf4d(_0x409ee5,_0x30e651,_0x143341,_0x30c636){return _0x22ef16(_0x30e651,_0x30c636- -_0x23819c._0x4c4ade,_0x143341-0xcd,_0x30c636-0x191);}function _0xcf145c(_0x155d4a,_0x1b33ab,_0x6399b1,_0x34870a){return _0x324926(_0x155d4a- -_0x2fc245._0x469957,_0x6399b1,_0x6399b1-0x100,_0x34870a-_0x2fc245._0x1b5671);}return EXTENSION_TO_LANGUAGE[_0x49be13[_0x4baf4d(0x1c,_0x4200ce._0x228bf9,0x6e,_0x4200ce._0x53f45e)](_0x407b64)[_0xcf145c(_0x4200ce._0x4bc111,-_0x4200ce._0x2dd95c,0x43,0xb5)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x1281c3){const _0x31b90d={_0x57657d:0x1d,_0xd38d26:0x33,_0x38cc3f:0xa0},_0x4f29b3={_0x253cbe:0x1a2};function _0x4c194c(_0x547a0d,_0x4768f0,_0x4c6ab5,_0x411ff6){return _0x22ef16(_0x411ff6,_0x4768f0- -0x14d,_0x4c6ab5-_0x4f29b3._0x253cbe,_0x411ff6-0x113);}return pathToFileURL(_0x1281c3)[_0x4c194c(_0x31b90d._0x57657d,_0x31b90d._0xd38d26,0x1b,_0x31b90d._0x38cc3f)]();}function textDocumentPosition(_0xbf8d3b){const _0x4f9cf8={_0x91bc6:0x1f3,_0x26cac3:0x1ea,_0xd48e1e:0xf2,_0x2cf685:0x1c3,_0x16e8ba:0x1f5,_0x14c912:0x1de},_0x3954fc={_0x13e7b6:0x50,_0x6edc17:0x176},_0x3d175e={_0x168b77:0x169,_0x2b9d72:0x81};function _0x1d47a6(_0x3b11cd,_0x1889b7,_0x1f66d0,_0x2a6309){return _0x324926(_0x3b11cd-_0x3d175e._0x168b77,_0x2a6309,_0x1f66d0-_0x3d175e._0x2b9d72,_0x2a6309-0x10f);}function _0x2eb53b(_0x83743d,_0x4d77a6,_0x2da49a,_0x1b1b68){return _0x324926(_0x4d77a6- -_0x3954fc._0x13e7b6,_0x1b1b68,_0x2da49a-_0x3954fc._0x6edc17,_0x1b1b68-0x103);}return{'textDocument':{'uri':uriForPath(_0xbf8d3b[_0x1d47a6(_0x4f9cf8._0x91bc6,_0x4f9cf8._0x26cac3,_0x4f9cf8._0xd48e1e,_0x4f9cf8._0x2cf685)])},'position':{'line':_0xbf8d3b[_0x1d47a6(0x205,0x120,_0x4f9cf8._0x16e8ba,_0x4f9cf8._0x14c912)],'character':_0xbf8d3b[_0x2eb53b(-0x115,-0x7c,0xb4,-0x191)]}};}function normalizeLocations(_0x409988){if(!_0x409988)return[];return Array['isArray'](_0x409988)?_0x409988:[_0x409988];}async function createLspClient(_0xee5810){const _0x4c11c6={_0x26741b:0x5b,_0x22e952:0x196,_0x3ab21e:0x119,_0x5e744e:0x1df,_0x3a06f7:0x284,_0x5e218e:0x1ad,_0x98a3e2:0xb5,_0x2747a4:0x153,_0x21dd33:0x95,_0xbc168d:0x130,_0x304619:0xee,_0x463bee:0xfe,_0x50c87e:0x80,_0x5c59c4:0x1ee,_0x24790f:0xd9,_0x391bf9:0x1a,_0x1bdf5b:0x258,_0x380040:0x4e,_0x4e8de4:0x251,_0x568591:0x165,_0x26ecb5:0xda,_0x55e565:0xee,_0x522b99:0xb3,_0x423cd4:0xd4,_0x41138a:0x25,_0x2c031c:0xe,_0xa756a2:0x1ab,_0x2d27c2:0x1d0,_0x323db3:0x12,_0x18d962:0x20,_0x29e927:0xdf,_0x3a2b9d:0x18,_0x4ab33c:0x8a,_0x298fb9:0x75,_0x4d6253:0x91},_0x3b6fc3={_0x5751e9:0x511,_0xf06f42:0x140,_0x52da76:0x297,_0x52886d:0x516,_0x149ffb:0x459,_0x2c5b33:0x638},_0x3c6a64={_0x3be3c4:0x147,_0x8fb459:0x28,_0xd7e252:0x7a,_0xc14c10:0x19c,_0x2ab8f1:0xdc,_0x5d8c27:0xc},_0x4e59c3={_0xbca23a:0x58},_0x3517={_0xfb007e:0xb6,_0x4ea988:0xd2,_0x5966f5:0x13b,_0x463fad:0x87,_0x4492c4:0x25},_0x306c91={_0x4379f8:0x1fa,_0x14de7a:0x2b9,_0x5cf8ca:0x172,_0x59b311:0x265},_0x42764={_0x4a128c:0xe3},_0x1e2fca={_0x2f0520:0x55},_0x27eab6={_0x457147:0x96,_0x291fa5:0x18a},_0x2e487c={_0x520d23:0x60,_0x11f154:0x112,_0x55472f:0x79,_0x4aff4a:0x78},_0x1d4df9={_0x5eb8b3:0x67,_0x22905e:0x137},_0x2d2e79={_0x25ee0a:0x79},_0x164b66={_0x1fc527:0x3b6,_0x5b25cb:0x453,_0x393781:0x331},_0x537c33={_0x575791:0x139},_0x32df53={_0x12b8d9:0x2d4},_0x260ca4={_0x7fa49e:0x10a,_0x3fba57:0xb3,_0x5c9b5d:0xd1},_0x55aeb3={_0x2d8ecc:0x79,_0x25ea8a:0x1a6},_0x31cfe6={_0x23d2b2:0x109},_0x180c92={_0x31b29d:0x296,_0x572771:0x221,_0x3e5ba4:0x1a8,_0xfb821d:0x2a3,_0x5c363f:0x2d2},_0x4ecc1b={_0x20d5b8:0xf3,_0x15bdb0:0x267,_0x3b7256:0x139},_0x3d4dbf={_0x2cd006:0x501,_0x30f4e6:0x491,_0x550d54:0x3d6,_0x16616b:0x48d,_0x9e1bcf:0x4a8},_0x19ede9={_0x146185:0x4b1,_0xf43a38:0x12},_0x3dbab2={_0x1b527c:0x1f2,_0xa082cd:0xda},_0x1572cd={_0x29ef54:0x113,_0x5a6bdf:0x188,_0x295437:0x124,_0x206c69:0x31a,_0x429542:0x71,_0xdf6df0:0x1e0,_0x41d39c:0x81,_0x3ad1d5:0xd0},_0x4681fa={_0x1f2810:0x172,_0x13dbed:0x239},_0x3c3120=_0xee5810[_0x34a1f7(0x248,_0x4c11c6._0x26741b,_0x4c11c6._0x22e952,_0x4c11c6._0x3ab21e)][_0x34a1f7(0x65,0x1b4,0xed,0x130)][_0x34a1f7(_0x4c11c6._0x5e744e,0x1d8,_0x4c11c6._0x3a06f7,0x288)],_0x5044f7=_0xee5810[_0x480380(-0x8b,-0x12a,-0x86,-_0x4c11c6._0x5e218e)][_0x34a1f7(_0x4c11c6._0x98a3e2,_0x4c11c6._0x2747a4,_0x4c11c6._0x21dd33,_0x4c11c6._0xbc168d)][_0x34a1f7(_0x4c11c6._0x304619,_0x4c11c6._0x463bee,-_0x4c11c6._0x50c87e,0x91)];if(!_0x3c3120||!_0x5044f7)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x37039e=createMessageConnection(new StreamMessageReader(_0x3c3120),new StreamMessageWriter(_0x5044f7)),_0x130787=new Map(),_0x204e83=new Map();let _0x37897a=![];_0x37039e[_0x480380(_0x4c11c6._0x5c59c4,0x1e2,0xc9,0x1ad)](_0x480380(-_0x4c11c6._0x24790f,-0xd7,0x4c,-_0x4c11c6._0x391bf9),_0x546138=>{const _0x45767a={_0x508da5:0xe5,_0x44e05f:0x29,_0x3d3a54:0x177};_0x130787[_0x4359ea(_0x1572cd._0x29ef54,0x15c,0x280,0xc5)](_0x546138[_0x4359ea(0xcc,_0x1572cd._0x5a6bdf,_0x1572cd._0x295437,0x27c)],_0x546138[_0x4359ea(0x310,_0x1572cd._0x206c69,0x3ba,0x22d)]);const _0x880bb6=_0x204e83['get'](_0x546138[_0x4359ea(0xcf,0x188,_0x1572cd._0x429542,_0x1572cd._0xdf6df0)]);function _0x482611(_0x1e3ee0,_0x533b21,_0x281475,_0x59fb7c){return _0x480380(_0x59fb7c,_0x533b21-_0x45767a._0x508da5,_0x1e3ee0- -_0x45767a._0x44e05f,_0x59fb7c-_0x45767a._0x3d3a54);}function _0x4359ea(_0x4ffd1d,_0x44d3dd,_0x314026,_0x249031){return _0x480380(_0x314026,_0x44d3dd-_0x4681fa._0x1f2810,_0x44d3dd-_0x4681fa._0x13dbed,_0x249031-0x129);}if(!_0x880bb6)return;_0x204e83[_0x482611(0x64,0xf8,0x30,0x39)](_0x546138[_0x4359ea(_0x1572cd._0x41d39c,0x188,_0x1572cd._0x3ad1d5,0x259)]);for(const _0x1701ca of _0x880bb6)_0x1701ca();});function _0x480380(_0x9b5067,_0x2286c1,_0x215649,_0x5ad5b2){return _0x22ef16(_0x9b5067,_0x215649- -0x1ec,_0x215649-0xed,_0x5ad5b2-0x1b1);}_0x37039e[_0x34a1f7(_0x4c11c6._0x1bdf5b,_0x4c11c6._0x380040,_0x4c11c6._0x4e8de4,0x139)]();const _0x1f9b01=await _0x37039e['sendRequest']('initialize',{'processId':process['pid'],'rootUri':uriForPath(_0xee5810[_0x34a1f7(0x139,0x46,_0x4c11c6._0x568591,0xde)]),'workspaceFolders':[{'uri':uriForPath(_0xee5810[_0x480380(-0xf7,-_0x4c11c6._0x26ecb5,-0xc1,0x23)]),'name':_0xee5810[_0x34a1f7(0x16c,0xd4,_0x4c11c6._0x55e565,_0x4c11c6._0x522b99)]['id']}],'initializationOptions':_0xee5810['handle'][_0x480380(-_0x4c11c6._0x423cd4,_0x4c11c6._0x41138a,-0x69,0x2c)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown',_0x480380(_0x4c11c6._0x2c031c,_0x4c11c6._0xa756a2,0x90,0x66)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x37039e['sendNotification'](_0x34a1f7(_0x4c11c6._0x5e744e,0xbf,_0x4c11c6._0x2d27c2,0x1ad),{});function _0x34a1f7(_0x23bda5,_0xb832ec,_0x5738e7,_0x3e4783){return _0x22ef16(_0x23bda5,_0x3e4783- -0x4d,_0x5738e7-_0x3dbab2._0x1b527c,_0x3e4783-_0x3dbab2._0xa082cd);}const _0x5ccee7={'serverId':_0xee5810[_0x34a1f7(0xbf,_0x4c11c6._0x323db3,_0x4c11c6._0x18d962,_0x4c11c6._0x522b99)]['id'],'root':_0xee5810[_0x34a1f7(_0x4c11c6._0x29e927,0x1bd,-_0x4c11c6._0x3a2b9d,0xde)],'connection':_0x37039e,'diagnostics':_0x130787,'capabilities':_0x1f9b01[_0x480380(_0x4c11c6._0x4ab33c,0x4c,_0x4c11c6._0x298fb9,_0x4c11c6._0x4d6253)]??{},'notify':{async 'open'({path:_0x33c9b2}){const _0x38d6cb={_0x2747e1:0x1fe};function _0x3a9755(_0x294647,_0xd1762b,_0xac65f7,_0x2bef19){return _0x480380(_0xd1762b,_0xd1762b-0x1d0,_0x2bef19-_0x19ede9._0x146185,_0x2bef19-_0x19ede9._0xf43a38);}const _0x102042=await readFile(_0x33c9b2,_0x3a9755(_0x3d4dbf._0x2cd006,0x3b7,_0x3d4dbf._0x30f4e6,0x494));function _0x2311f7(_0xf97a32,_0x2de77b,_0x521ee9,_0x54e68f){return _0x34a1f7(_0x521ee9,_0x2de77b-0x174,_0x521ee9-0x1ad,_0xf97a32- -_0x38d6cb._0x2747e1);}_0x37039e[_0x3a9755(_0x3d4dbf._0x550d54,0x393,_0x3d4dbf._0x16616b,_0x3d4dbf._0x9e1bcf)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x33c9b2),'languageId':getLanguageId(_0x33c9b2)??'plaintext','version':0x1,'text':_0x102042}});},async 'change'({path:_0x4ab936,version:_0x941511}){const _0x1e5cae={_0x109774:0x99};function _0x5ec397(_0x2a6bf6,_0x45b65e,_0x3c4df8,_0x51897e){return _0x34a1f7(_0x45b65e,_0x45b65e-0xa8,_0x3c4df8-_0x1e5cae._0x109774,_0x3c4df8- -0x5d);}const _0x412902=await readFile(_0x4ab936,'utf8');_0x37039e[_0x5ec397(_0x4ecc1b._0x20d5b8,_0x4ecc1b._0x15bdb0,_0x4ecc1b._0x3b7256,0xe3)]('textDocument/didChange',{'textDocument':{'uri':uriForPath(_0x4ab936),'version':_0x941511},'contentChanges':[{'text':_0x412902}]});},async 'close'({path:_0x4ac683}){function _0x5659ce(_0x2d5109,_0x24a5de,_0x114aca,_0x2906a3){return _0x34a1f7(_0x114aca,_0x24a5de-0xb,_0x114aca-0x2d,_0x2906a3-0x5);}function _0x2a74c3(_0x45ac34,_0xe87882,_0x2033fd,_0x5be8fe){return _0x34a1f7(_0x2033fd,_0xe87882-0xf8,_0x2033fd-0x17,_0xe87882-0x34e);}_0x37039e[_0x5659ce(_0x180c92._0x31b29d,0x1af,_0x180c92._0x572771,0x19b)](_0x5659ce(_0x180c92._0x3e5ba4,0x383,_0x180c92._0xfb821d,_0x180c92._0x5c363f),{'textDocument':{'uri':uriForPath(_0x4ac683)}});}},'request':{async 'definition'(_0x3ae084){function _0x28bc75(_0x3870c0,_0x1baff4,_0x4fb09b,_0x4bbd95){return _0x34a1f7(_0x4fb09b,_0x1baff4-_0x31cfe6._0x23d2b2,_0x4fb09b-0x29,_0x3870c0- -0x11e);}return normalizeLocations(await _0x37039e[_0x28bc75(_0x55aeb3._0x2d8ecc,_0x55aeb3._0x25ea8a,0x180,0x139)]('textDocument/definition',textDocumentPosition(_0x3ae084)));},async 'references'(_0x4504c7){const _0x4d26c9={_0x6a2b52:0x1ce};function _0x2fa185(_0x5c8628,_0x330d8b,_0x44e1ff,_0x1093bf){return _0x34a1f7(_0x44e1ff,_0x330d8b-0x9a,_0x44e1ff-_0x4d26c9._0x6a2b52,_0x1093bf- -0x2dd);}return normalizeLocations(await _0x37039e['sendRequest'](_0x2fa185(-0x1c0,-_0x260ca4._0x7fa49e,-_0x260ca4._0x3fba57,-_0x260ca4._0x5c9b5d),{...textDocumentPosition(_0x4504c7),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0xc9dff3){function _0x24873d(_0x51578d,_0x299f9c,_0x21d88c,_0x16d96b){return _0x34a1f7(_0x21d88c,_0x299f9c-0x4a,_0x21d88c-0x8,_0x51578d- -_0x32df53._0x12b8d9);}return await _0x37039e[_0x24873d(-0x13d,-0x101,-0x213,-_0x537c33._0x575791)]('textDocument/hover',textDocumentPosition(_0xc9dff3))??null;},async 'documentSymbol'(_0x1656d2){const _0xaf1dfb={_0x2b2e4c:0x1e5};function _0x21b556(_0xf4050a,_0x551892,_0xec6e81,_0x3c5078){return _0x34a1f7(_0x3c5078,_0x551892-0xed,_0xec6e81-0x1da,_0xec6e81-_0xaf1dfb._0x2b2e4c);}return await _0x37039e['sendRequest'](_0x21b556(_0x164b66._0x1fc527,_0x164b66._0x5b25cb,_0x164b66._0x393781,0x298),{'textDocument':{'uri':uriForPath(_0x1656d2)}})??[];},async 'workspaceSymbol'(_0x1145c4){function _0x2f78db(_0x23891b,_0x576bfd,_0x2d7a00,_0x5f0304){return _0x480380(_0x23891b,_0x576bfd-_0x2d2e79._0x25ee0a,_0x576bfd-0x479,_0x5f0304-0x1f4);}function _0x405175(_0x4258f0,_0x3c071c,_0x134b75,_0x416d22){return _0x34a1f7(_0x416d22,_0x3c071c-0xd3,_0x134b75-_0x1d4df9._0x5eb8b3,_0x4258f0- -_0x1d4df9._0x22905e);}return await _0x37039e[_0x405175(_0x2e487c._0x520d23,_0x2e487c._0x11f154,_0x2e487c._0x55472f,_0x2e487c._0x4aff4a)](_0x405175(0x122,0xc4,-0x6,0x1bf),{'query':_0x1145c4})??[];},async 'implementation'(_0x1aff6a){const _0x3d8536={_0x2aa59a:0x1bd};function _0x671950(_0x44e5f4,_0x43f30d,_0x52ac43,_0x59a8b0){return _0x34a1f7(_0x52ac43,_0x43f30d-_0x3d8536._0x2aa59a,_0x52ac43-0x78,_0x43f30d- -0x101);}return normalizeLocations(await _0x37039e[_0x671950(0x58,_0x27eab6._0x457147,_0x27eab6._0x291fa5,-0x40)]('textDocument/implementation',textDocumentPosition(_0x1aff6a)));},async 'prepareCallHierarchy'(_0x5b79ee){function _0x2aafaf(_0x5706ad,_0x18f40c,_0x1a76b2,_0x550434){return _0x480380(_0x1a76b2,_0x18f40c-0xee,_0x5706ad-0x202,_0x550434-_0x1e2fca._0x2f0520);}function _0x26c252(_0x5a23c0,_0x16d3e9,_0x3bd70f,_0x549d1b){return _0x480380(_0x549d1b,_0x16d3e9-0x2e,_0x16d3e9-_0x42764._0x4a128c,_0x549d1b-0x142);}return await _0x37039e[_0x2aafaf(_0x306c91._0x4379f8,_0x306c91._0x14de7a,0xcb,0x1c8)](_0x2aafaf(_0x306c91._0x5cf8ca,0x1de,0x90,_0x306c91._0x59b311),textDocumentPosition(_0x5b79ee))??[];},async 'incomingCalls'(_0x4b11f2){const _0x2cd2f1={_0x13275e:0x3ef},_0x87499={_0x5b5fb9:0x158,_0x2aab28:0xda,_0x1ea8ab:0x89};function _0x165803(_0x169f59,_0x2aaf56,_0x534a6d,_0x5949bb){return _0x480380(_0x2aaf56,_0x2aaf56-_0x87499._0x5b5fb9,_0x534a6d-_0x87499._0x2aab28,_0x5949bb-_0x87499._0x1ea8ab);}function _0xda1b94(_0x3feb12,_0x1a8f50,_0x46b023,_0x2f29c8){return _0x34a1f7(_0x46b023,_0x1a8f50-0x15c,_0x46b023-0x1f4,_0x2f29c8-_0x2cd2f1._0x13275e);}return await _0x37039e[_0x165803(0x8e,_0x3517._0xfb007e,_0x3517._0x4ea988,_0x3517._0x5966f5)](_0x165803(_0x3517._0x463fad,0x5c,-_0x3517._0x4492c4,0x90),{'item':_0x4b11f2})??[];},async 'outgoingCalls'(_0x418ae6){const _0x18c93c={_0x3c600c:0x180,_0x435581:0xb5,_0x346d02:0x206};function _0x52f662(_0x5073ad,_0x185e30,_0x55bfe4,_0x554877){return _0x34a1f7(_0x554877,_0x185e30-_0x18c93c._0x3c600c,_0x55bfe4-_0x18c93c._0x435581,_0x5073ad- -_0x18c93c._0x346d02);}return await _0x37039e[_0x52f662(-0x6f,-0x1c,-0x170,_0x4e59c3._0xbca23a)]('callHierarchy/outgoingCalls',{'item':_0x418ae6})??[];}},'waitForDiagnostics'({path:_0x1fcd85,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x1504c9=uriForPath(_0x1fcd85);if(_0x130787['has'](_0x1504c9))return Promise['resolve']();return new Promise(_0x416c37=>{const _0xd84f8c={_0x171306:0xcc,_0x1f35fe:0x113,_0x565887:0x112,_0x42ee46:0x15e,_0x33cbae:0xb0,_0x3571db:0x5e},_0x528bec={_0x17b86f:0x176},_0x3d2b53=setTimeout(()=>{const _0x3b9c1d={_0x3ba352:0x2bb};function _0xc9114d(_0xed4c65,_0x38a861,_0x155f82,_0xf878c1){return _0x7ca6(_0x38a861- -_0x528bec._0x17b86f,_0xed4c65);}const _0x566cbc=_0x204e83[_0xc9114d(_0xd84f8c._0x171306,_0xd84f8c._0x1f35fe,0x1c8,_0xd84f8c._0x565887)](_0x1504c9);_0x566cbc?.[_0x124bca(-0x123,-_0xd84f8c._0x42ee46,_0xd84f8c._0x33cbae,-_0xd84f8c._0x3571db)](_0x70c441);function _0x124bca(_0x31ead7,_0x4c19dd,_0x4c1ed2,_0x3ab1d8){return _0x7ca6(_0x3ab1d8- -_0x3b9c1d._0x3ba352,_0x31ead7);}if(_0x566cbc?.['size']===0x0)_0x204e83['delete'](_0x1504c9);_0x416c37();},timeoutMs);function _0x38a4c8(_0x3b827c,_0x108ae7,_0x3670c9,_0x1dd4c9){return _0x7ca6(_0x108ae7- -0x142,_0x3b827c);}const _0x70c441=()=>{clearTimeout(_0x3d2b53),_0x416c37();},_0x23429c=_0x204e83[_0x38a4c8(0x17,_0x3c6a64._0x3be3c4,_0x3c6a64._0x8fb459,_0x3c6a64._0xd7e252)](_0x1504c9)??new Set();function _0xdd6d1e(_0x524d6d,_0x5c34fc,_0x5b31c3,_0x4ab8db){return _0x7ca6(_0x4ab8db- -0xe7,_0x5c34fc);}_0x23429c[_0x38a4c8(0x1ea,_0x3c6a64._0xc14c10,0x210,0x173)](_0x70c441),_0x204e83[_0xdd6d1e(0x5e,0x67,_0x3c6a64._0x2ab8f1,_0x3c6a64._0x5d8c27)](_0x1504c9,_0x23429c);});},async 'shutdown'(){const _0x74fb67={_0x5658c5:0x1d1},_0xe6cc67={_0x1db29e:0x3ea,_0x2b1c70:0x4f};if(_0x37897a)return;function _0x463a3d(_0x559211,_0x384b9a,_0x201e27,_0x7c4d33){return _0x480380(_0x201e27,_0x384b9a-0x3e,_0x559211-_0xe6cc67._0x1db29e,_0x7c4d33-_0xe6cc67._0x2b1c70);}function _0x234cc8(_0x54b2fe,_0x4e5507,_0x5e7e12,_0x515cbf){return _0x480380(_0x515cbf,_0x4e5507-0x182,_0x54b2fe- -0x109,_0x515cbf-_0x74fb67._0x5658c5);}_0x37897a=!![];try{await _0x37039e['sendRequest']('shutdown',null),_0x37039e['sendNotification'](_0x463a3d(0x48f,0x389,_0x3b6fc3._0x5751e9,0x4b1));}catch{}finally{_0x37039e[_0x234cc8(-_0x3b6fc3._0xf06f42,-0xbe,-0x120,-0x53)](),_0xee5810[_0x463a3d(0x364,_0x3b6fc3._0x52da76,0x405,0x241)]['process'][_0x463a3d(_0x3b6fc3._0x52886d,0x4c8,_0x3b6fc3._0x149ffb,_0x3b6fc3._0x2c5b33)]();}}};return _0x5ccee7;}import{spawn as _0x90b96e}from'child_process';import{access as _0x21fab9}from'fs/promises';import _0x2cc01b from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x4f41e5 from'os';import _0x5eec36 from'path';import _0x57933c from'which';var installPromises=new Map();function sanitizePackageName(_0x270a48){const _0x21d1e4={_0x12d8a7:0x3cf,_0x4882da:0xa7,_0xa9ae32:0x9b};function _0x32881b(_0x2b5202,_0x431ddc,_0x3f1a,_0x27aa8e){return _0x324926(_0x27aa8e-_0x21d1e4._0x12d8a7,_0x431ddc,_0x3f1a-_0x21d1e4._0x4882da,_0x27aa8e-_0x21d1e4._0xa9ae32);}return _0x270a48['replace'](/^@/,'')[_0x32881b(0x3c0,0x316,0x283,0x35a)](/[/]/g,'__');}function binaryNameForPlatform(_0x48ad52){const _0x2095ea={_0x5658d3:0x234,_0x3d19ce:0x305,_0x1cbbeb:0x2ca,_0x4973c4:0x210,_0x2eeec8:0x24a},_0x1ef3a9={_0x3045ba:0xaa,_0x4866d9:0x15a},_0x251a36={_0xe985e:0x114,_0x24699c:0x5f};function _0x248f85(_0x372d53,_0x3b2cba,_0x5b2c39,_0x3f6943){return _0x22ef16(_0x5b2c39,_0x3f6943-0xd3,_0x5b2c39-_0x251a36._0xe985e,_0x3f6943-_0x251a36._0x24699c);}function _0x196695(_0xb48797,_0x3e5358,_0xdcf0d9,_0x1d16d6){return _0x22ef16(_0xb48797,_0x3e5358-_0x1ef3a9._0x3045ba,_0xdcf0d9-_0x1ef3a9._0x4866d9,_0x1d16d6-0x7f);}return process[_0x248f85(_0x2095ea._0x5658d3,0x416,0x244,_0x2095ea._0x3d19ce)]===_0x196695(_0x2095ea._0x1cbbeb,0x3a6,0x39a,0x36d)?_0x48ad52+_0x196695(_0x2095ea._0x4973c4,0x1af,_0x2095ea._0x2eeec8,0x19d):_0x48ad52;}async function exists(_0x16f71c){try{return await access(_0x16f71c),!![];}catch{return![];}}function runNpmInstall(_0x200f5b,_0x4f548e,_0x4985a3){const _0x25675c={_0xfbdac1:0x3da,_0x3f9269:0x403,_0x4bbef7:0x3db,_0x1237ff:0x4e9,_0x23f319:0x469,_0x392ea3:0x25d,_0x27117a:0x3e4,_0x266b33:0x46e,_0x2a6e02:0x3a8,_0x4c2a9f:0x365,_0x21f257:0x410},_0x35321f={_0x32527d:0x28a};return new Promise(_0x5e71a6=>{const _0x572c3d={_0x49c2fd:0x18f};function _0x95acfc(_0x5002cc,_0x5e10b1,_0x11d9dc,_0x3cee47){return _0x7ca6(_0x5e10b1-_0x35321f._0x32527d,_0x3cee47);}function _0x523ae5(_0x1c1a92,_0x10c8b6,_0x133b6a,_0x1008af){return _0x7ca6(_0x133b6a-_0x572c3d._0x49c2fd,_0x1c1a92);}const _0x20b6b5=spawn(_0x523ae5(_0x25675c._0xfbdac1,_0x25675c._0x3f9269,_0x25675c._0x4bbef7,0x450),[_0x95acfc(0x406,0x44f,0x546,_0x25675c._0x1237ff),_0x95acfc(0x65c,0x534,_0x25675c._0x23f319,0x454),_0x200f5b,_0x4f548e],{'env':_0x4985a3,'stdio':_0x523ae5(_0x25675c._0x392ea3,_0x25675c._0x27117a,0x30f,0x288)});_0x20b6b5['on']('error',()=>_0x5e71a6(![])),_0x20b6b5['on'](_0x523ae5(_0x25675c._0x266b33,_0x25675c._0x2a6e02,_0x25675c._0x4c2a9f,_0x25675c._0x21f257),_0x44349f=>_0x5e71a6(_0x44349f===0x0));});}function shouldDisableLspDownload(_0x360743=process[_0x324926(0x14,-0x30,-0x47,-0x86)]){const _0x1536ee={_0x44112a:0x219,_0x3b1414:0xd7,_0x56a193:0xad,_0x368de6:0x9f,_0x371a19:0x240,_0x25caf8:0x2eb,_0x5f38fc:0x1fd,_0x29e033:0x2a9,_0x2f4e84:0x1b9,_0xf367ff:0x3a8},_0x1305db={_0x2640b7:0x202,_0x44bb5e:0x49},_0x2c5334={_0x38d980:0x77};function _0x41edcf(_0x47301a,_0x123819,_0x1147a9,_0x469438){return _0x22ef16(_0x47301a,_0x1147a9- -0x38e,_0x1147a9-_0x2c5334._0x38d980,_0x469438-0x23);}function _0x38fcea(_0x301455,_0x1a0db8,_0x2f8435,_0x1731a6){return _0x324926(_0x301455- -_0x1305db._0x2640b7,_0x1a0db8,_0x2f8435-_0x1305db._0x44bb5e,_0x1731a6-0x195);}const _0x5c4c0c=_0x360743[_0x38fcea(-0x316,-0x29f,-_0x1536ee._0x44112a,-0x21d)]?.[_0x41edcf(-_0x1536ee._0x3b1414,-_0x1536ee._0x56a193,-_0x1536ee._0x368de6,-0x92)]();return _0x5c4c0c===_0x41edcf(-_0x1536ee._0x371a19,-_0x1536ee._0x25caf8,-_0x1536ee._0x5f38fc,-0x242)||_0x5c4c0c==='1'||_0x5c4c0c===_0x38fcea(-_0x1536ee._0x29e033,-_0x1536ee._0x2f4e84,-_0x1536ee._0xf367ff,-0x325)||_0x5c4c0c==='on';}function getLspPackageDir(_0x37171a){const _0xa615bc={_0x3cedaf:0x62,_0x9ced43:0x158,_0x3322ed:0x18f,_0x5837fd:0x264,_0x2ec7f4:0x1f1,_0x2dddc5:0x4f,_0x23e4e3:0x133,_0x86c7c3:0x6d};function _0x578447(_0x5129cc,_0x54115e,_0x64ab17,_0x3671b1){return _0x22ef16(_0x54115e,_0x64ab17- -0x116,_0x64ab17-0x18,_0x3671b1-0x1de);}function _0x18561f(_0x45af2b,_0x1d2d65,_0x4f70fb,_0xa7175d){return _0x324926(_0x45af2b- -0x107,_0x4f70fb,_0x4f70fb-0x1c6,_0xa7175d-0x2a);}return _0x5eec36['join'](_0x4f41e5[_0x18561f(-_0xa615bc._0x3cedaf,-0x44,-_0xa615bc._0x9ced43,-0x132)](),_0x18561f(-_0xa615bc._0x3322ed,-0xc6,-_0xa615bc._0x5837fd,-_0xa615bc._0x2ec7f4),_0x18561f(-_0xa615bc._0x2dddc5,-0xa1,-_0xa615bc._0x23e4e3,-0x128),_0x18561f(-0x2f,-_0xa615bc._0x86c7c3,0xf0,0x5),sanitizePackageName(_0x37171a));}function getLspBinDir(_0x255fe1){const _0x403456={_0x1d03cd:0xe,_0x26323b:0x35d},_0x20d53c={_0x5198b4:0xa5},_0x5131e6={_0x40abd4:0x131,_0x1504b4:0xb4};function _0xda9ac0(_0x3c4836,_0x33c7ea,_0x379d1d,_0x4bebf7){return _0x22ef16(_0x3c4836,_0x4bebf7-_0x5131e6._0x40abd4,_0x379d1d-_0x5131e6._0x1504b4,_0x4bebf7-0x1d2);}function _0x356545(_0x1d06c2,_0x25d60f,_0x2f255a,_0x360be0){return _0x22ef16(_0x2f255a,_0x1d06c2- -0x11,_0x2f255a-_0x20d53c._0x5198b4,_0x360be0-0x130);}return _0x5eec36[_0x356545(0x13b,_0x403456._0x1d03cd,0xdd,0xd6)](getLspPackageDir(_0x255fe1),'node_modules',_0xda9ac0(0x345,_0x403456._0x26323b,0x2b4,0x34b));}async function findPackageBinary(_0x3d15d4,_0x5c2da1){const _0xef4e96={_0x4f313b:0x1df,_0x53a158:0x1a3,_0x758def:0x10f,_0x52188e:0x1ea,_0x5e8290:0x16a},_0x1c46bb={_0xa51646:0x2ee},_0x1f835c={_0x2b3ea4:0x20c};let _0x111152=_0x5eec36[_0xe6b608(_0xef4e96._0x4f313b,0x2b1,0x189,0x114)](_0x5c2da1);function _0xe6b608(_0x2a5205,_0x1a48c6,_0x5d445e,_0x55a163){return _0x324926(_0x2a5205-_0x1f835c._0x2b3ea4,_0x1a48c6,_0x5d445e-0x122,_0x55a163-0x18b);}function _0x476de6(_0x5ad527,_0x146af0,_0x541101,_0x2d615d){return _0x324926(_0x5ad527-_0x1c46bb._0xa51646,_0x146af0,_0x541101-0x4d,_0x2d615d-0x7f);}const _0x5716f7=binaryNameForPlatform(_0x3d15d4);while(!![]){const _0x5bfe46=_0x5eec36[_0xe6b608(0x15a,_0xef4e96._0x53a158,_0xef4e96._0x758def,0x15e)](_0x111152,_0xe6b608(0x274,0x2f5,_0xef4e96._0x52188e,0x22b),_0xe6b608(0x228,0x335,_0xef4e96._0x5e8290,0x2c7),_0x5716f7);if(await exists(_0x5bfe46))return _0x5bfe46;const _0x24dc8e=_0x5eec36['dirname'](_0x111152);if(_0x24dc8e===_0x111152)return void 0x0;_0x111152=_0x24dc8e;}}async function findPathBinary(_0x3a1f5a,_0x4fbb72){const _0x4ab9e6={_0x1ec66e:0x1b5,_0x1cea4d:0x59,_0x2a9046:0x244,_0x5cc0a5:0x21b,_0x16a8eb:0x16c},_0x9fcbe5={_0x50b2bf:0x6a},_0x43e129={_0x57f6a0:0x6b,_0x5eada8:0xb3},_0x2cdefa=getLspBinDir(_0x4fbb72);function _0x1665e0(_0x5ae834,_0x1df9c9,_0x26c529,_0x1a0267){return _0x22ef16(_0x1a0267,_0x1df9c9- -_0x43e129._0x57f6a0,_0x26c529-0x13f,_0x1a0267-_0x43e129._0x5eada8);}const _0x50c25a=[_0x2cdefa,process['env']['PATH']][_0x1665e0(_0x4ab9e6._0x1ec66e,0x26d,0x1da,0x28a)](Boolean)[_0x1665e0(0xe1,0xe1,_0x4ab9e6._0x1cea4d,0xd4)](_0x5eec36[_0x91c5a4(_0x4ab9e6._0x2a9046,_0x4ab9e6._0x5cc0a5,0x1df,_0x4ab9e6._0x16a8eb)]);function _0x91c5a4(_0x40dca6,_0x1fe175,_0x15f27c,_0x814746){return _0x22ef16(_0x814746,_0x15f27c-_0x9fcbe5._0x50b2bf,_0x15f27c-0x1d7,_0x814746-0x1e1);}try{return await _0x57933c(_0x3a1f5a,{'path':_0x50c25a});}catch{return void 0x0;}}async function resolvePackageBinary(_0xf38caa){const _0x7efe4e={_0xe182a0:0x48a,_0x11ea65:0x612,_0x35ed16:0x530,_0x413f0d:0x630,_0x41ba35:0x67b,_0x572c2b:0x582,_0x5516ff:0x3cd,_0x175ac4:0x4df,_0x444fbd:0x5d7,_0x3ca123:0x530,_0x294819:0x4c8,_0x40daf2:0x542,_0x1cf913:0x5fc,_0x22b1c0:0x570,_0x11e8c9:0x572,_0x523eba:0x42f,_0x24133e:0x5f1,_0xc524f7:0x45b,_0x3cbeaf:0x506,_0x3798db:0x546},_0x4375de={_0x509baa:0x5ea,_0x4dde5c:0x3ca,_0x32f02e:0x4e7,_0xb11c92:0x5a9,_0x3a67c8:0x612},_0x119ca0={_0x98f88f:0x18e,_0x12835d:0x5b,_0x18bb99:0xf0},_0x3f5c9e={_0x4a96d6:0x1b},_0x2f1e2c=_0xf38caa[_0x23d209(0x4ef,0x55e,0x427,_0x7efe4e._0xe182a0)]??_0xf38caa[_0x23d209(_0x7efe4e._0x11ea65,0x513,0x633,_0x7efe4e._0x35ed16)],_0x3e6ec2=await findPackageBinary(_0x2f1e2c,_0xf38caa[_0x23d209(_0x7efe4e._0x413f0d,_0x7efe4e._0x41ba35,0x63f,0x585)]);function _0x23d209(_0x4bdaaa,_0x29c9f1,_0x29e78a,_0x2badb6){return _0x22ef16(_0x4bdaaa,_0x2badb6-0x2cd,_0x29e78a-0x1d7,_0x2badb6-_0x3f5c9e._0x4a96d6);}function _0xd36a93(_0x1bfb6c,_0x129262,_0x860279,_0x55da5f){return _0x324926(_0x55da5f-_0x119ca0._0x98f88f,_0x1bfb6c,_0x860279-_0x119ca0._0x12835d,_0x55da5f-_0x119ca0._0x18bb99);}if(_0x3e6ec2)return _0x3e6ec2;const _0xa87901=await findPathBinary(_0x2f1e2c,_0xf38caa['packageName']);if(_0xa87901)return _0xa87901;const _0x518aef=_0xf38caa[_0xd36a93(0x11d,0x236,0x217,0x1a2)]??process[_0x23d209(_0x7efe4e._0x572c2b,0x5ea,_0x7efe4e._0x5516ff,_0x7efe4e._0x175ac4)];if(shouldDisableLspDownload(_0x518aef))return void 0x0;const _0x40e5f9=getLspPackageDir(_0xf38caa[_0x23d209(_0x7efe4e._0x444fbd,0x559,0x5f6,_0x7efe4e._0x3ca123)]),_0x3108e6=_0xf38caa[_0x23d209(_0x7efe4e._0x294819,0x604,_0x7efe4e._0x40daf2,0x530)]+':'+_0x2f1e2c;let _0x107039=installPromises[_0x23d209(_0x7efe4e._0x1cf913,_0x7efe4e._0x22b1c0,0x4e8,_0x7efe4e._0x11e8c9)](_0x3108e6);!_0x107039&&(_0x107039=((async()=>{const _0x439fbd={_0x5e50fa:0xb0,_0x5f46a4:0x13c,_0x43dc0e:0x1e8},_0x54cd24={_0x55817d:0x93,_0x2ab7e1:0x49};await mkdir(_0x40e5f9,{'recursive':!![]});const _0xf73af2=await runNpmInstall(_0x40e5f9,_0xf38caa[_0x14cd1d(0x4bc,0x4e7,_0x4375de._0x509baa,_0x4375de._0x4dde5c)],_0x518aef);if(!_0xf73af2)return void 0x0;const _0x13b505=_0x5eec36['join'](getLspBinDir(_0xf38caa[_0x14cd1d(0x4fc,_0x4375de._0x32f02e,_0x4375de._0xb11c92,_0x4375de._0x3a67c8)]),binaryNameForPlatform(_0x2f1e2c));function _0x14cd1d(_0x4f6021,_0xb81476,_0x564141,_0x46c8c7){return _0x23d209(_0x564141,_0xb81476-_0x54cd24._0x55817d,_0x564141-0x64,_0xb81476- -_0x54cd24._0x2ab7e1);}function _0x45c42e(_0x11b1b4,_0xa79b5e,_0xff3480,_0x3df9d9){return _0xd36a93(_0x11b1b4,_0xa79b5e-_0x439fbd._0x5e50fa,_0xff3480-_0x439fbd._0x5f46a4,_0xff3480-_0x439fbd._0x43dc0e);}return await exists(_0x13b505)?_0x13b505:void 0x0;})()),installPromises[_0x23d209(0x3ef,0x353,_0x7efe4e._0x523eba,0x3dc)](_0x3108e6,_0x107039));try{return await _0x107039;}catch{return void 0x0;}finally{installPromises[_0x23d209(_0x7efe4e._0x24133e,_0x7efe4e._0xc524f7,_0x7efe4e._0x3cbeaf,_0x7efe4e._0x3798db)](_0x3108e6);}}var TYPESCRIPT_EXTENSIONS=[_0x324926(0x6c,-0xd,0x71,0x5f),_0x22ef16(0x346,0x277,0x2fd,0x2ef),_0x324926(-0x79,0xf,-0x11a,0x33),_0x324926(0xcb,0x31,0x9c,0x36),_0x324926(-0x19,-0x2f,-0x35,-0x39),_0x22ef16(0x16b,0x159,0x60,0x1d1),'.mts',_0x324926(-0xc6,-0x196,-0xe7,-0x94)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x324926(0x47,-0xc9,-0xd2,0xac),'.jsonc'],TYPESCRIPT_ROOT_MARKERS=[_0x324926(0x70,0x115,-0x3e,0x12b),'bun.lockb',_0x324926(0xf7,0x204,0x68,0x57),_0x324926(-0x9d,-0xb6,-0x152,0x40),_0x22ef16(0x11e,0x11f,0x7b,0x143),_0x22ef16(0x1e3,0x235,0x2c5,0x1b4),_0x22ef16(0x192,0x21b,0x330,0x193),_0x22ef16(0x289,0x1dc,0xc0,0x30c)],BIOME_ROOT_MARKERS=[_0x22ef16(0x179,0x18c,0xdb,0x286),'biome.jsonc','package-lock.json',_0x22ef16(0x142,0x11a,0x23e,0x224),_0x22ef16(0x350,0x2f5,0x3c5,0x3ca),_0x22ef16(0x186,0x161,0x128,0xfd),_0x22ef16(-0x10,0x11f,0x179,0x1ca),_0x324926(-0x22,-0xf0,0xc0,-0x9c)];async function exists2(_0x4d6ffb){try{return await _0x21fab9(_0x4d6ffb),!![];}catch{return![];}}async function findUp(_0x5b2b92,_0x3cdcd8){const _0xbfb29d={_0x436104:0xc2,_0x36812a:0x1ad,_0xffe945:0xbc,_0x56a339:0x3fd,_0x5122c3:0x411,_0x123e64:0x352,_0x49fb6f:0x356,_0x3826ee:0x3e7,_0x1c0ae8:0x1a,_0x5c1015:0x248,_0x489e9d:0x357,_0x57d76c:0x356},_0x2ab485={_0x5c3f71:0x14f,_0x1ddd1d:0xfd},_0x32d807={_0x273096:0xeb};function _0x2c6c08(_0x1d950a,_0x4f8557,_0x46984c,_0x283a2b){return _0x22ef16(_0x283a2b,_0x46984c-0x227,_0x46984c-0xb5,_0x283a2b-_0x32d807._0x273096);}let _0x128dee=_0x2cc01b[_0x3ca21a(_0xbfb29d._0x436104,_0xbfb29d._0x36812a,_0xbfb29d._0xffe945,0x211)](_0x5b2b92);function _0x3ca21a(_0x52587c,_0xbcf2d3,_0x2cf94d,_0x2b0403){return _0x22ef16(_0x2b0403,_0xbcf2d3- -0x24,_0x2cf94d-_0x2ab485._0x5c3f71,_0x2b0403-_0x2ab485._0x1ddd1d);}const _0x312301=_0x2cc01b[_0x2c6c08(_0xbfb29d._0x56a339,0x35c,_0xbfb29d._0x5122c3,_0xbfb29d._0x123e64)](_0x128dee);if(_0x312301)_0x128dee=_0x2cc01b[_0x2c6c08(0x2a2,0x37a,_0xbfb29d._0x49fb6f,_0xbfb29d._0x3826ee)](_0x128dee);while(!![]){for(const _0x2260f0 of _0x3cdcd8){if(await exists2(_0x2cc01b[_0x3ca21a(_0xbfb29d._0x1c0ae8,0x128,0x5c,0x15a)](_0x128dee,_0x2260f0)))return _0x128dee;}const _0x108588=_0x2cc01b[_0x2c6c08(_0xbfb29d._0x5c1015,_0xbfb29d._0x489e9d,_0xbfb29d._0x57d76c,0x3ab)](_0x128dee);if(_0x108588===_0x128dee)return void 0x0;_0x128dee=_0x108588;}}async function hasDenoRoot(_0x1deef3){const _0x793087={_0x76c63:0x300,_0x384b81:0x436,_0x18407a:0x380},_0x2d3bf6={_0x6bf39d:0x5e},_0x50b115={_0x4201d0:0xf7,_0x3756ae:0xc6};function _0x2f822b(_0x192b50,_0xb747d8,_0x220404,_0x2ed328){return _0x22ef16(_0xb747d8,_0x2ed328-0x185,_0x220404-_0x50b115._0x4201d0,_0x2ed328-_0x50b115._0x3756ae);}function _0x331f9e(_0x5e6e29,_0x40fec8,_0x6350b7,_0x4ddb4a){return _0x324926(_0x4ddb4a-0x46c,_0x6350b7,_0x6350b7-0xab,_0x4ddb4a-_0x2d3bf6._0x6bf39d);}return await exists2(_0x2cc01b['join'](_0x1deef3,'deno.json'))||await exists2(_0x2cc01b[_0x331f9e(_0x793087._0x76c63,_0x793087._0x384b81,0x33a,0x3ba)](_0x1deef3,_0x2f822b(_0x793087._0x18407a,0x292,0x3d9,0x2d5)));}async function resolveTsserverPath(_0x54c93d){const _0x4da4c2={_0x3d879e:0x77,_0x1199eb:0x1ea,_0x5d3d72:0x1b5,_0x270426:0x1f3,_0x40686e:0x247,_0x5ece26:0x119,_0xcc0e5d:0x23,_0x2e3753:0x239,_0x50e3e4:0x1eb,_0x4d35fc:0x353,_0x1cfd4c:0xb5,_0x374b8e:0x1b9,_0x50e1eb:0x261,_0x3bafcd:0x2a3,_0x686df1:0x195,_0x2bbc3:0xae,_0x53b2f5:0x2c3},_0x5c78a0={_0x59a419:0x3a2};function _0x50f23a(_0xfae6f3,_0x3eb11d,_0x41cb26,_0x7899ad){return _0x324926(_0xfae6f3- -0x4a,_0x7899ad,_0x41cb26-0x42,_0x7899ad-0x1d2);}let _0x3cbd79=_0x2cc01b[_0x50f23a(-_0x4da4c2._0x3d879e,-0x17b,-0xa9,0x14)](_0x54c93d);while(!![]){const _0x50e6fd=_0x2cc01b['join'](_0x3cbd79,'node_modules','typescript',_0x523096(-_0x4da4c2._0x1199eb,-_0x4da4c2._0x5d3d72,-_0x4da4c2._0x270426,-_0x4da4c2._0x40686e),'tsserver.js');if(await exists2(_0x50e6fd))return _0x50e6fd;const _0x2936f5=_0x2cc01b[_0x50f23a(-_0x4da4c2._0x5ece26,-_0x4da4c2._0xcc0e5d,-0x23c,-_0x4da4c2._0x2e3753)](_0x3cbd79);if(_0x2936f5===_0x3cbd79)break;_0x3cbd79=_0x2936f5;}const _0x3352cd=getLspPackageDir('typescript'),_0x30a19c=await resolvePackageBinary({'packageName':'typescript','binaryName':'tsc','startDir':_0x54c93d});function _0x523096(_0x57d025,_0x492d43,_0x42bbda,_0x2ff0c0){return _0x22ef16(_0x2ff0c0,_0x492d43- -_0x5c78a0._0x59a419,_0x42bbda-0x10c,_0x2ff0c0-0x100);}if(!_0x30a19c)return void 0x0;const _0x5dbe29=_0x2cc01b[_0x523096(-_0x4da4c2._0x50e3e4,-0x256,-_0x4da4c2._0x4d35fc,-0x1e1)](_0x3352cd,'node_modules',_0x50f23a(-_0x4da4c2._0x1cfd4c,-0x111,-_0x4da4c2._0x374b8e,-0x3a),_0x523096(-_0x4da4c2._0x50e1eb,-0x1b5,-_0x4da4c2._0x3bafcd,-0x164),_0x523096(-_0x4da4c2._0x686df1,-0x1cc,-_0x4da4c2._0x2bbc3,-_0x4da4c2._0x53b2f5));return await exists2(_0x5dbe29)?_0x5dbe29:void 0x0;}var TypeScriptServer={'id':_0x324926(-0x6b,-0x51,-0x170,-0x11e),'name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0xe740c2){const _0x24e1ea=await findUp(_0xe740c2,TYPESCRIPT_ROOT_MARKERS);if(!_0x24e1ea)return void 0x0;return await hasDenoRoot(_0x24e1ea)?void 0x0:_0x24e1ea;},async 'spawn'(_0x50681e){const _0x316723={_0x1cccfb:0x243,_0x554598:0x36c,_0xf3a6a3:0x217,_0x578dae:0x300,_0x565f78:0x39f},_0x432c0e={_0x2d4416:0x14a,_0x445ff7:0x16f},_0x2ecef5={_0x5a5c18:0x158},_0xd784e1=await resolveTsserverPath(_0x50681e);if(!_0xd784e1)return void 0x0;function _0x38798d(_0x4bba2f,_0xf04ac8,_0x30311f,_0x1c7a0a){return _0x324926(_0xf04ac8-0x345,_0x1c7a0a,_0x30311f-0xc4,_0x1c7a0a-_0x2ecef5._0x5a5c18);}const _0x237c1c=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':'typescript-language-server','startDir':_0x50681e});if(!_0x237c1c)return void 0x0;function _0x5d4c00(_0x10a6e7,_0x3ad0b3,_0x454c89,_0xf3d85){return _0x22ef16(_0x454c89,_0x10a6e7-_0x432c0e._0x2d4416,_0x454c89-0x17e,_0xf3d85-_0x432c0e._0x445ff7);}return{'process':_0x90b96e(_0x237c1c,[_0x38798d(0x311,_0x316723._0x1cccfb,_0x316723._0x554598,0x36e)],{'cwd':_0x50681e,'stdio':_0x38798d(_0x316723._0xf3a6a3,_0x316723._0x578dae,0x398,_0x316723._0x565f78)}),'initialization':{'tsserver':{'path':_0xd784e1}}};}},BiomeServer={'id':'biome','name':_0x22ef16(0x184,0x14b,0xff,0x212),'extensions':BIOME_EXTENSIONS,async 'root'(_0xe534b6){return findUp(_0xe534b6,BIOME_ROOT_MARKERS);},async 'spawn'(_0x52dc09){const _0x3780f6={_0x8ae57:0x320,_0x17bd3f:0x31f,_0x201f48:0x2a1,_0x4398fa:0x1e7,_0x236dc6:0x2a0},_0x52d892={_0x2836e5:0x32b,_0x1ee772:0x95},_0x33c66a={_0x1b66a6:0x3a},_0xada86d=await findPackageBinary(_0x4fb32e(0x2da,_0x3780f6._0x8ae57,0x3cd,_0x3780f6._0x17bd3f),_0x52dc09)??await resolvePackageBinary({'packageName':_0x46d4ba(0x3cd,_0x3780f6._0x201f48,0x1c1,_0x3780f6._0x4398fa),'binaryName':'biome','startDir':_0x52dc09});if(!_0xada86d)return void 0x0;function _0x46d4ba(_0x4447ad,_0x3f2d5f,_0x4c51ec,_0x26a496){return _0x324926(_0x3f2d5f-0x39b,_0x4c51ec,_0x4c51ec-_0x33c66a._0x1b66a6,_0x26a496-0x115);}function _0x4fb32e(_0x53bcda,_0x527756,_0x142049,_0x388a30){return _0x324926(_0x53bcda-_0x52d892._0x2836e5,_0x142049,_0x142049-0x1b4,_0x388a30-_0x52d892._0x1ee772);}return{'process':_0x90b96e(_0xada86d,[_0x4fb32e(_0x3780f6._0x236dc6,0x37b,0x3c6,0x2af),'--stdio'],{'cwd':_0x52dc09,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x2f9c03){const _0x1ef760={_0xd827ae:0x15c,_0x320632:0x5bf,_0x4fb502:0x586,_0x225202:0x4de,_0x33fab1:0x476,_0x1c65f5:0x56f},_0x42b33c={_0xd9358f:0x78};function _0x16985b(_0x221ec6,_0x344e0e,_0x360b46,_0x35a1ed){return _0x22ef16(_0x344e0e,_0x35a1ed- -0x8e,_0x360b46-_0x42b33c._0xd9358f,_0x35a1ed-0x187);}function _0x5bea87(_0x411e02,_0x4c8214,_0x22308f,_0x548c78){return _0x22ef16(_0x4c8214,_0x548c78-0x297,_0x22308f-0xff,_0x548c78-0x109);}const _0x3c7caf=_0x2cc01b[_0x16985b(0x21d,0x275,0x257,_0x1ef760._0xd827ae)](_0x2f9c03)[_0x5bea87(_0x1ef760._0x320632,0x534,0x65b,_0x1ef760._0x4fb502)]();return BUILTIN_LSP_SERVERS[_0x5bea87(_0x1ef760._0x225202,_0x1ef760._0x33fab1,0x4b0,_0x1ef760._0x1c65f5)](_0x52976c=>_0x52976c[_0x16985b(0x228,0x121,0x13d,0x1b9)]['includes'](_0x3c7caf));}function stateKey(_0xb29a71,_0x4f4355){return _0x4f4355+':'+_0xb29a71['id'];}function diagnosticsKeyToPath(_0x16c9da){const _0x25cca3={_0x19da58:0x5fd,_0x31d1f4:0x644,_0x5d9772:0x544},_0x3ecbda={_0x201193:0x4ac},_0x37f2ad={_0x14a725:0x37a};function _0xb360f0(_0x3b8642,_0x4f21bf,_0x4096cd,_0x42701b){return _0x22ef16(_0x4f21bf,_0x4096cd-_0x37f2ad._0x14a725,_0x4096cd-0x7,_0x42701b-0x1d5);}function _0x430dee(_0x2afa98,_0x1b9e79,_0x195ce5,_0x47e15d){return _0x324926(_0x47e15d-_0x3ecbda._0x201193,_0x2afa98,_0x195ce5-0x1ab,_0x47e15d-0xc2);}if(!_0x16c9da[_0xb360f0(_0x25cca3._0x19da58,0x5e1,_0x25cca3._0x31d1f4,0x63c)](_0xb360f0(_0x25cca3._0x5d9772,0x33e,0x44c,0x342)))return _0x16c9da;return fileURLToPath(_0x16c9da);}function nextFileVersion(_0x1bb28f,_0x53ddc9){const _0x5862d9={_0x3ec64b:0x1ea,_0x43408d:0x230,_0x567dba:0x2c9,_0x1e5fd5:0x2b1,_0x51563e:0x267},_0x3eaf75={_0xf8c92b:0x144},_0x6dc0f0={_0x1a5ece:0x1c0,_0x176731:0xcc};function _0x39a60a(_0x2ec6cb,_0x5dd6c1,_0x468f20,_0x56aeed){return _0x324926(_0x5dd6c1-_0x6dc0f0._0x1a5ece,_0x2ec6cb,_0x468f20-_0x6dc0f0._0x176731,_0x56aeed-0x9e);}function _0x5810a7(_0x382415,_0x56cc73,_0x1422f7,_0x51d79a){return _0x22ef16(_0x56cc73,_0x1422f7- -0x43,_0x1422f7-0x150,_0x51d79a-_0x3eaf75._0xf8c92b);}const _0x37f26b=(_0x1bb28f[_0x5810a7(_0x5862d9._0x3ec64b,_0x5862d9._0x43408d,_0x5862d9._0x567dba,_0x5862d9._0x1e5fd5)][_0x39a60a(0x172,_0x5862d9._0x51563e,0x1cd,0x2cc)](_0x53ddc9)??0x1)+0x1;return _0x1bb28f[_0x39a60a(0x2e4,0x2ce,0x3cb,0x1ce)]['set'](_0x53ddc9,_0x37f26b),_0x37f26b;}async function collectClientResults(_0x206023){const _0x28c091={_0x2e22e1:0x39d,_0x35f571:0x2dc,_0x3a8439:0x3a1},_0x6b31f3={_0x366042:0x45,_0x3bbc44:0xd0};function _0x18a851(_0xc7836b,_0x47926d,_0x3f9e16,_0x5bc93d){return _0x324926(_0x47926d-0x2b7,_0x3f9e16,_0x3f9e16-0x169,_0x5bc93d-0xff);}function _0x46fb5b(_0x31fbe3,_0xf5ca36,_0x3013d0,_0x37c981){return _0x22ef16(_0x37c981,_0x3013d0-_0x6b31f3._0x366042,_0x3013d0-_0x6b31f3._0x3bbc44,_0x37c981-0x1f2);}const _0x520041=await Promise[_0x18a851(_0x28c091._0x2e22e1,_0x28c091._0x35f571,0x357,_0x28c091._0x3a8439)](_0x206023);return _0x520041['flatMap'](_0x5f42ab=>_0x5f42ab[_0x46fb5b(0x350,0x25c,0x25d,0x313)]==='fulfilled'?_0x5f42ab[_0x18a851(0x1d9,0x2a0,0x32d,0x28e)]:[]);}function createLspService(_0x42a963={}){const _0xeff26f={_0x41aec1:0x48d,_0x31079e:0x667,_0x1dc6be:0x678},_0x1b01a0={_0xadb524:0x4e1,_0x41a301:0x3eb,_0x4cf621:0x4e1,_0x64d074:0x5d0,_0x18d99f:0x160,_0x160c1f:0x23d,_0x26761c:0x2fc,_0x44b6b3:0x68,_0x1fad20:0x67,_0xc41da6:0x8d,_0x4ea9d8:0x4c4,_0x427bd7:0x41b,_0x4f85d3:0x185,_0x598027:0x96,_0x5206c3:0x23e,_0x567274:0x4f4,_0x2ed02f:0x125,_0x184c7b:0x414,_0x3125e5:0x4c8,_0x1f5112:0x3e4},_0x1e45dd={_0x24f21b:0x56a},_0xbea5c8={_0x4e2450:0x47,_0x3a5b02:0x4a,_0x1bade3:0x81},_0x3c2a5a={_0x4a41eb:0x178},_0x36c38f={_0x324660:0x8f,_0x563511:0x85},_0xdb170c={_0x2e8f9d:0xeb,_0x4e2eae:0x16b,_0x451218:0x34},_0x1fc47e={_0x1d6682:0x81,_0x2174b2:0x3e4,_0xd374ee:0x12e},_0x12d678={_0x5c8037:0x264,_0x100be3:0x3ff,_0xc8982d:0xb3,_0x2f6693:0xad},_0x283e13={_0x54694b:0x15d},_0x393513={_0x2a7145:0x448,_0x26a040:0x442},_0x11464a={_0x3c0117:0x60},_0x1f3513={_0x433ad4:0x33f,_0x5bf74c:0x423,_0x2bb65e:0x28e},_0x4bc9aa={_0x3052a6:0x19e},_0x282e31={_0x12b2b9:0x550},_0x418634={_0x1cd5e8:0x94},_0x5bc38e={_0x482f5a:0x465,_0x30bb5f:0x2ec,_0x46ea40:0x508,_0x4d86df:0x3ff},_0x1f3a8d={_0x1cb595:0x194,_0xde346d:0x13f,_0x5bf7e0:0x7a},_0x1aa1f1={_0x5dfe8d:0xde,_0x11a7c1:0x103},_0x506d9d={_0x1d8bd5:0x522,_0x5777ac:0x483,_0x3050fc:0x44d},_0x19d5bc={_0x61dca8:0x1e1,_0x2be7d8:0x118},_0x2eccf1={_0x2c2fa2:0x249,_0x369025:0x153},_0x5d1fe6={_0x2e756c:0x17a,_0x5b3adf:0xc9},_0x5069aa={_0x3f4887:0xc},_0x3754da={_0x4e730b:0x56},_0x24ca2f={_0x59facf:0x28a},_0x9cf772={_0x2dbf01:0x52f,_0x256f49:0x665,_0x429f5f:0x5e4,_0x1f4b6b:0x543},_0x2e1b47={_0x4965da:0x293,_0x6a641b:0x1e4,_0x1dc423:0x4a,_0x2d5816:0x16b,_0x9c2bfa:0x167,_0x41973d:0x102,_0x3a9903:0x201,_0x75c951:0x195,_0x4f446f:0x23a,_0x5c4904:0xa1,_0x37f7dd:0x19,_0x4177e5:0xe1,_0x433f2f:0x17a,_0x1d9954:0x188,_0x32c88c:0x38,_0x10c3e1:0x167,_0x333746:0x17c},_0x1f19d7={_0x5dde3b:0x27,_0x5dfa52:0x162,_0x4762d3:0x40},_0x5b0367={_0x35b00f:0x204,_0xe97b9c:0x1ed,_0x2b320f:0x214,_0x543124:0x39,_0x3e65ab:0x90,_0x2affc0:0x133,_0x139ec9:0x1ec,_0x44be22:0x201,_0x19e43d:0x149},_0x360b26={_0x523b33:0x37a,_0x3272ba:0x74},_0x86bba7={_0x13fd76:0x148,_0x40ca2a:0x43,_0x2a4ddf:0x21c,_0x404262:0x5a7,_0x395673:0x57f,_0x192921:0x445,_0x1c06ca:0xef,_0x571eb2:0x1f0,_0x14c82a:0x31b,_0x360b5e:0x3e6,_0xb56aee:0x3b3,_0x31c0b8:0x39b},_0x419514={_0x55b927:0x307},_0x26392d={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x1541fc=()=>_0x42a963[_0x45dad1(0x592,0x4ac,0x3e0,0x4b4)]!==![];async function _0x5f5b9e(_0x3acbdc,_0x1f27fc){const _0x48e3cd={_0x473890:0x2a7,_0x13f8b3:0x2d5,_0x3cafab:0x3c7,_0x5848c4:0xc8,_0x40f817:0x4a,_0x356788:0x164,_0x48664c:0x136,_0x5c4f4b:0x1ae,_0x196758:0x2dc,_0xc3712b:0x391,_0x32ac35:0x440,_0x2af3d9:0xe9,_0x533334:0x149,_0x58a27:0x123,_0x3fb81b:0x58,_0x276603:0x52,_0x40f671:0x95,_0x242e89:0x300,_0x581b3d:0x312,_0x2b3d84:0x481,_0x196b25:0x2f,_0x1d2573:0xae,_0x5b2c52:0x19d},_0x19d39b={_0x45d08d:0x95,_0x3da21b:0x8b,_0x55e0db:0x2a},_0x1a78b4=stateKey(_0x3acbdc,_0x1f27fc),_0x38f93f=_0x26392d[_0x4100a2(0xd7,0x103,-0x2d,_0x86bba7._0x13fd76)][_0x4100a2(_0x86bba7._0x40ca2a,0x108,0x19e,_0x86bba7._0x2a4ddf)](_0x9baabb=>_0x9baabb[_0x4100a2(-0x77,0x7c,0x136,-0xe)]===_0x3acbdc['id']&&_0x9baabb['root']===_0x1f27fc);if(_0x38f93f)return _0x38f93f;function _0xf17010(_0x27bfb7,_0x578205,_0x1c1df8,_0x307497){return _0x45dad1(_0x27bfb7-_0x19d39b._0x45d08d,_0x1c1df8-_0x19d39b._0x3da21b,_0x307497,_0x307497-_0x19d39b._0x55e0db);}if(_0x26392d[_0xf17010(_0x86bba7._0x404262,_0x86bba7._0x395673,0x482,_0x86bba7._0x192921)][_0xf17010(0x44f,0x35e,0x414,0x405)](_0x1a78b4))return void 0x0;function _0x4100a2(_0x519333,_0x549fbf,_0x4d500f,_0x4bc58d){return _0x45dad1(_0x519333-0x1af,_0x549fbf- -_0x419514._0x55b927,_0x4d500f,_0x4bc58d-0xe3);}const _0x4437bf=_0x26392d[_0x4100a2(_0x86bba7._0x1c06ca,_0x86bba7._0x571eb2,0x29a,0x25f)]['get'](_0x1a78b4);if(_0x4437bf)return _0x4437bf;const _0x118e9e=((async()=>{const _0x730776={_0x59c7da:0x9a,_0x597606:0x16b,_0x24936c:0x5cb},_0x1fb50b={_0x1af80e:0x1be};function _0x136e14(_0x453f0d,_0x47958d,_0x142d8a,_0x44827a){return _0xf17010(_0x453f0d-0x104,_0x47958d-0x190,_0x453f0d- -_0x1fb50b._0x1af80e,_0x44827a);}function _0x2eb64c(_0x5ca8a6,_0x5e93fd,_0x2cd1b1,_0x357626){return _0xf17010(_0x5ca8a6-_0x730776._0x59c7da,_0x5e93fd-_0x730776._0x597606,_0x5e93fd- -_0x730776._0x24936c,_0x5ca8a6);}try{const _0x2f1319=await _0x3acbdc[_0x136e14(0x3b8,_0x48e3cd._0x473890,_0x48e3cd._0x13f8b3,_0x48e3cd._0x3cafab)](_0x1f27fc);if(!_0x2f1319)return _0x26392d['broken'][_0x2eb64c(0x3e,-0x2d,_0x48e3cd._0x5848c4,-_0x48e3cd._0x40f817)](_0x1a78b4),void 0x0;const _0x368118=await createLspClient({'server':_0x3acbdc,'root':_0x1f27fc,'handle':_0x2f1319}),_0x2c5c5c=_0x26392d[_0x2eb64c(-_0x48e3cd._0x356788,-_0x48e3cd._0x48664c,-_0x48e3cd._0x5c4f4b,-0x217)][_0x136e14(_0x48e3cd._0x196758,0x2c2,_0x48e3cd._0xc3712b,_0x48e3cd._0x3cafab)](_0x2f03f6=>_0x2f03f6[_0x2eb64c(-0x2bf,-0x1bd,-0x129,-0x27f)]===_0x3acbdc['id']&&_0x2f03f6[_0x136e14(0x211,0xea,0x1fe,0x1a7)]===_0x1f27fc);if(_0x2c5c5c)return await _0x368118['shutdown'](),_0x2c5c5c;return _0x26392d['clients'][_0x136e14(0x390,_0x48e3cd._0x32ac35,0x3da,0x269)](_0x368118),_0x368118;}catch{return _0x26392d[_0x2eb64c(-_0x48e3cd._0x2af3d9,-_0x48e3cd._0x533334,-_0x48e3cd._0x58a27,-_0x48e3cd._0x3fb81b)][_0x2eb64c(-_0x48e3cd._0x276603,-0x2d,0x51,_0x48e3cd._0x40f671)](_0x1a78b4),void 0x0;}finally{_0x26392d[_0x136e14(0x3c4,_0x48e3cd._0x242e89,_0x48e3cd._0x581b3d,_0x48e3cd._0x2b3d84)][_0x2eb64c(-_0x48e3cd._0x196b25,-_0x48e3cd._0x1d2573,-_0x48e3cd._0x5b2c52,0x5d)](_0x1a78b4);}})());return _0x26392d['spawning'][_0xf17010(_0x86bba7._0x14c82a,_0x86bba7._0x360b5e,_0x86bba7._0xb56aee,_0x86bba7._0x31c0b8)](_0x1a78b4,_0x118e9e),_0x118e9e;}async function _0x276e61(_0x2f7ffb,_0x4ea6b7){if(!_0x1541fc())return[];function _0x12af55(_0x2d246c,_0x154d6d,_0x5930b4,_0x121749){return _0x45dad1(_0x2d246c-0xf9,_0x5930b4- -_0x360b26._0x523b33,_0x121749,_0x121749-_0x360b26._0x3272ba);}const _0x19eedc=[];function _0x4f54b2(_0x47760c,_0x40bdcc,_0x5e5e17,_0x571737){return _0x45dad1(_0x47760c-0xd4,_0x47760c- -0x5fb,_0x5e5e17,_0x571737-0x145);}for(const _0x6872db of getServersForFile(_0x2f7ffb)){const _0x37b10e=await _0x6872db['root'](_0x2f7ffb);if(!_0x37b10e)continue;const _0x2db4e9=stateKey(_0x6872db,_0x37b10e);if(_0x26392d[_0x4f54b2(-_0x5b0367._0x35b00f,-0xea,-_0x5b0367._0xe97b9c,-_0x5b0367._0x2b320f)]['has'](_0x2db4e9))continue;const _0xad49cc=_0x26392d[_0x12af55(-0x65,_0x5b0367._0x543124,_0x5b0367._0x3e65ab,_0x5b0367._0x2affc0)][_0x4f54b2(-_0x5b0367._0x139ec9,-0xcd,-_0x5b0367._0x44be22,-0x1c3)](_0x1a3ad5=>_0x1a3ad5[_0x4f54b2(-0x278,-0x22c,-0x28c,-0x2c1)]===_0x6872db['id']&&_0x1a3ad5['root']===_0x37b10e);if(_0xad49cc){_0x19eedc['push'](_0xad49cc);continue;}if(!_0x4ea6b7)continue;const _0x30fc43=await _0x5f5b9e(_0x6872db,_0x37b10e);if(_0x30fc43)_0x19eedc[_0x12af55(0x8e,0x1c,_0x5b0367._0x19e43d,0xd4)](_0x30fc43);}return _0x19eedc;}async function _0x1205d3(_0x41503c,_0x538be7=![]){const _0xd018b0={_0x45b49a:0xd0,_0x43456d:0x119},_0x418e85={_0x490937:0xbb};function _0x1034de(_0x500377,_0x229162,_0x489383,_0x1d5bbc){return _0x45dad1(_0x500377-_0x1f19d7._0x5dde3b,_0x489383- -_0x1f19d7._0x5dfa52,_0x500377,_0x1d5bbc-_0x1f19d7._0x4762d3);}function _0x4d0d8c(_0x327f87,_0x581b34,_0x2eddbc,_0x198f94){return _0x45dad1(_0x327f87-0x1da,_0x327f87-0x66,_0x198f94,_0x198f94-_0x418e85._0x490937);}const _0x128799=await _0x276e61(_0x41503c,!![]);await Promise[_0x4d0d8c(0x568,_0x9cf772._0x2dbf01,_0x9cf772._0x256f49,_0x9cf772._0x429f5f)](_0x128799[_0x4d0d8c(_0x9cf772._0x1f4b6b,0x511,0x649,0x656)](async _0xc6fe41=>{const _0x17e08c={_0x485d6f:0x16c};function _0x49034b(_0x160a23,_0x1034d4,_0x216d73,_0x47d11e){return _0x1034de(_0x160a23,_0x1034d4-_0xd018b0._0x45b49a,_0x47d11e- -0x43,_0x47d11e-_0xd018b0._0x43456d);}function _0x4d7bf3(_0x15512e,_0x1067c4,_0x9d8ad4,_0x1c682f){return _0x1034de(_0x1c682f,_0x1067c4-_0x17e08c._0x485d6f,_0x1067c4- -0x229,_0x1c682f-0x69);}!_0x26392d['openFiles'][_0x49034b(0x130,0xc9,_0x2e1b47._0x4965da,_0x2e1b47._0x6a641b)](_0xc6fe41['serverId']+':'+_0xc6fe41[_0x4d7bf3(-0xfd,-0x47,-_0x2e1b47._0x1dc423,-_0x2e1b47._0x2d5816)]+':'+_0x41503c)&&(await _0xc6fe41[_0x4d7bf3(0x1dd,_0x2e1b47._0x9c2bfa,0x86,_0x2e1b47._0x41973d)][_0x49034b(_0x2e1b47._0x3a9903,_0x2e1b47._0x75c951,0x172,_0x2e1b47._0x4f446f)]({'path':_0x41503c}),_0x26392d[_0x4d7bf3(-_0x2e1b47._0x5c4904,_0x2e1b47._0x37f7dd,-_0x2e1b47._0x4177e5,-0x90)][_0x4d7bf3(_0x2e1b47._0x433f2f,_0x2e1b47._0x1d9954,0x181,0x145)](_0xc6fe41['serverId']+':'+_0xc6fe41[_0x4d7bf3(0x64,-0x47,-_0x2e1b47._0x32c88c,-0xb1)]+':'+_0x41503c));await _0xc6fe41[_0x4d7bf3(0x154,_0x2e1b47._0x10c3e1,0x1e9,0x194)]['change']({'path':_0x41503c,'version':nextFileVersion(_0x26392d,_0x41503c)});if(_0x538be7)await _0xc6fe41[_0x49034b(0x131,0x75,0x157,_0x2e1b47._0x333746)]({'path':_0x41503c});}));}async function _0x5d0501(_0x430a66){await _0x1205d3(_0x430a66['file'],![]);function _0xfb150c(_0x3b33ef,_0x2e4478,_0x2d1a28,_0x3ae5a0){return _0x45dad1(_0x3b33ef-0x91,_0x3b33ef- -0x217,_0x3ae5a0,_0x3ae5a0-0x2a);}return _0x276e61(_0x430a66[_0xfb150c(_0x24ca2f._0x59facf,0x380,0x1d2,0x2a8)],![]);}function _0x45dad1(_0x262c48,_0x47e7f7,_0x2eda7f,_0x15b27c){return _0x324926(_0x47e7f7-0x417,_0x2eda7f,_0x2eda7f-_0x3754da._0x4e730b,_0x15b27c-0x6f);}async function _0x112eba(_0x2dc00b){const _0x4378bc={_0x5c1e60:0x317};function _0x26f054(_0x3eecd2,_0xa6e526,_0x3cf7f2,_0x1a11f8){return _0x45dad1(_0x3eecd2-0xfd,_0x3cf7f2- -_0x4378bc._0x5c1e60,_0xa6e526,_0x1a11f8-0x180);}const _0x246185=await _0x5d0501(_0x2dc00b);function _0x53ddd7(_0x16792b,_0x41fdb8,_0x4c7c35,_0x44151f){return _0x45dad1(_0x16792b-0xa9,_0x4c7c35- -0x2bb,_0x16792b,_0x44151f-_0x5069aa._0x3f4887);}return collectClientResults(_0x246185[_0x26f054(_0x5d1fe6._0x2e756c,_0x5d1fe6._0x5b3adf,0x1c6,0x1a0)](_0x35dd11=>_0x35dd11[_0x26f054(-0x72,0x3e,0x25,0x9)][_0x26f054(-0xf3,-0x4d,0x38,-0x81)](_0x2dc00b)));}return{'isEnabled':_0x1541fc,async 'hasClients'(_0x13f4c8){const _0x54425b={_0x633fca:0x145};function _0x35220f(_0x2cf255,_0x23041f,_0x24a08a,_0x394be7){return _0x45dad1(_0x2cf255-0x22,_0x24a08a- -0x28c,_0x394be7,_0x394be7-_0x54425b._0x633fca);}return(await _0x276e61(_0x13f4c8,![]))[_0x35220f(0x296,_0x2eccf1._0x2c2fa2,0x197,_0x2eccf1._0x369025)]>0x0||getServersForFile(_0x13f4c8)['length']>0x0;},'touchFile':_0x1205d3,async 'diagnostics'(){const _0x5c3fd9={};for(const _0x5956dd of _0x26392d[_0x4916a4(_0x506d9d._0x1d8bd5,_0x506d9d._0x5777ac,0x46f,_0x506d9d._0x3050fc)]){for(const [_0x42f23b,_0x34fdf2]of _0x5956dd['diagnostics']){_0x5c3fd9[diagnosticsKeyToPath(_0x42f23b)]=_0x34fdf2;}}function _0x4916a4(_0x1a5c21,_0x4414bb,_0x4a61cd,_0xfa17cc){return _0x45dad1(_0x1a5c21-_0x19d5bc._0x61dca8,_0x1a5c21-_0x19d5bc._0x2be7d8,_0xfa17cc,_0xfa17cc-0x68);}return _0x5c3fd9;},async 'diagnosticsForFile'(_0x4632f9){function _0x511c72(_0x1b2745,_0x38a8a4,_0x3dacc2,_0x49d6aa){return _0x45dad1(_0x1b2745-_0x1aa1f1._0x5dfe8d,_0x38a8a4-0x26,_0x49d6aa,_0x49d6aa-_0x1aa1f1._0x11a7c1);}function _0x4f1f28(_0xf68230,_0x1c4dbf,_0x5a9a9b,_0x3832b0){return _0x45dad1(_0xf68230-_0x1f3a8d._0x1cb595,_0xf68230- -_0x1f3a8d._0xde346d,_0x1c4dbf,_0x3832b0-_0x1f3a8d._0x5bf7e0);}await _0x1205d3(_0x4632f9,!![]);const _0x284e5c=[];for(const _0x191c1d of await _0x276e61(_0x4632f9,![])){for(const [_0x10792d,_0x59e3d6]of _0x191c1d[_0x4f1f28(0x3a7,_0x5bc38e._0x482f5a,_0x5bc38e._0x30bb5f,0x3ee)]){if(diagnosticsKeyToPath(_0x10792d)===_0x4632f9)_0x284e5c[_0x511c72(0x54a,0x4e9,_0x5bc38e._0x46ea40,_0x5bc38e._0x4d86df)](..._0x59e3d6);}}return _0x284e5c;},async 'definition'(_0x594c1e){function _0x36f9e8(_0x1b664d,_0x1ed449,_0x24787d,_0xd8c6b7){return _0x45dad1(_0x1b664d-_0x418634._0x1cd5e8,_0x24787d- -0x53e,_0x1b664d,_0xd8c6b7-0x162);}function _0x12230b(_0x305a9e,_0xaa213a,_0x25be2a,_0x45dcda){return _0x45dad1(_0x305a9e-0x148,_0x45dcda-0x187,_0x305a9e,_0x45dcda-0x1e0);}return collectClientResults((await _0x5d0501(_0x594c1e))[_0x12230b(0x75b,0x65e,_0x282e31._0x12b2b9,0x664)](_0x31ac4b=>_0x31ac4b[_0x36f9e8(-0xd4,-0x236,-0x202,-0x200)]['definition'](_0x594c1e)));},async 'references'(_0x1d729f){const _0x1127e1={_0x3db3dd:0xac,_0x2b5826:0x44e};function _0x582a84(_0x369c49,_0x11acdd,_0x1940a7,_0x554bcf){return _0x45dad1(_0x369c49-_0x1127e1._0x3db3dd,_0x1940a7- -_0x1127e1._0x2b5826,_0x11acdd,_0x554bcf-0x18d);}function _0x5df2b8(_0x445a76,_0x354fa6,_0x1a0214,_0x1edff7){return _0x45dad1(_0x445a76-0x192,_0x445a76- -_0x4bc9aa._0x3052a6,_0x1a0214,_0x1edff7-0x159);}return collectClientResults((await _0x5d0501(_0x1d729f))[_0x5df2b8(_0x1f3513._0x433ad4,_0x1f3513._0x5bf74c,0x24c,_0x1f3513._0x2bb65e)](_0x5007b2=>_0x5007b2[_0x582a84(-0xf9,-0x97,-0x112,-0xa6)]['references'](_0x1d729f)));},async 'hover'(_0xeaf960){const _0x3deb07={_0x5d7833:0xb6,_0x4b9c63:0x16},_0x4dbe31=await Promise[_0x5aeca6(_0x393513._0x2a7145,_0x393513._0x26a040,0x3c3,0x49b)]((await _0x5d0501(_0xeaf960))[_0x3fe87a(0x53d,0x667,0x455,0x4c7)](_0x21ceb3=>_0x21ceb3[_0x5aeca6(0x34c,0x4bd,0x3e3,0x39b)][_0x5aeca6(0x588,0x57f,0x4a9,0x4ca)](_0xeaf960)));function _0x5aeca6(_0x1c2521,_0x16071d,_0x5d6cdf,_0x50d669){return _0x45dad1(_0x1c2521-_0x3deb07._0x5d7833,_0x50d669-0x5f,_0x1c2521,_0x50d669-_0x3deb07._0x4b9c63);}function _0x3fe87a(_0x1e6e9f,_0x2051f3,_0x59328e,_0x453bfb){return _0x45dad1(_0x1e6e9f-0x190,_0x1e6e9f-_0x11464a._0x3c0117,_0x59328e,_0x453bfb-0x51);}return _0x4dbe31['flatMap'](_0x278ef9=>_0x278ef9[_0x3fe87a(0x491,0x4db,0x398,0x436)]===_0x3fe87a(0x508,0x50e,0x486,0x524)&&_0x278ef9[_0x3fe87a(0x460,0x335,0x3ff,0x53d)]?[_0x278ef9['value']]:[]);},async 'documentSymbol'(_0x3638b5){await _0x1205d3(_0x3638b5,![]);function _0x51210c(_0x2117ec,_0x3e55d2,_0x54ee3f,_0x2a7716){return _0x45dad1(_0x2117ec-0x30,_0x2117ec- -0x474,_0x54ee3f,_0x2a7716-_0x283e13._0x54694b);}function _0x2e910d(_0x509c54,_0x42b7e6,_0x3966f9,_0x365b8b){return _0x45dad1(_0x509c54-0x85,_0x42b7e6- -0x3ed,_0x365b8b,_0x365b8b-0xcc);}return collectClientResults((await _0x276e61(_0x3638b5,![]))[_0x2e910d(0x153,0xf0,0x154,0x98)](_0x177171=>_0x177171['request'][_0x2e910d(0x9d,0xd7,0x47,0x1b1)](_0x3638b5)));},async 'workspaceSymbol'(_0x7ec7fa){const _0x1f1c76={_0x5c5b17:0xa8,_0x5e8ed8:0x139};function _0x34b699(_0x380700,_0x4c24ed,_0xd44b9e,_0x136973){return _0x45dad1(_0x380700-0xc7,_0xd44b9e- -0x4ef,_0x380700,_0x136973-0x145);}function _0x2140b6(_0x3c7e0b,_0x5371b3,_0x474dcb,_0x1698a4){return _0x45dad1(_0x3c7e0b-_0x1f1c76._0x5c5b17,_0x5371b3- -_0x1f1c76._0x5e8ed8,_0x3c7e0b,_0x1698a4-0x19);}return collectClientResults(_0x26392d[_0x2140b6(_0x12d678._0x5c8037,0x2d1,_0x12d678._0x100be3,0x27b)][_0x34b699(-0x18,_0x12d678._0xc8982d,-0x12,-_0x12d678._0x2f6693)](_0x35cba3=>_0x35cba3['request']['workspaceSymbol'](_0x7ec7fa)));},async 'implementation'(_0x50f2ca){const _0x3cae9b={_0x215bfd:0x126};function _0x1bef88(_0x1d1e10,_0x545d49,_0x51b79f,_0x4539ce){return _0x45dad1(_0x1d1e10-_0x1fc47e._0x1d6682,_0x51b79f- -_0x1fc47e._0x2174b2,_0x4539ce,_0x4539ce-_0x1fc47e._0xd374ee);}function _0x2f1cc6(_0x1d14ed,_0x236b98,_0x30679e,_0x142472){return _0x45dad1(_0x1d14ed-_0x3cae9b._0x215bfd,_0x236b98- -0xc7,_0x1d14ed,_0x142472-0x189);}return collectClientResults((await _0x5d0501(_0x50f2ca))['map'](_0x302a97=>_0x302a97[_0x1bef88(-0x1b2,-0xaa,-0xa8,-0x57)][_0x1bef88(0x19,0x121,0x5d,0xbd)](_0x50f2ca)));},async 'prepareCallHierarchy'(_0x58a9fc){return _0x112eba(_0x58a9fc);},async 'incomingCalls'(_0x4cf815){const _0x1b885c={_0x10c574:0xfc};function _0x11773f(_0x3b3186,_0x2e0d54,_0x5c4bcc,_0x142f24){return _0x45dad1(_0x3b3186-0xef,_0x142f24-0x194,_0x3b3186,_0x142f24-_0x1b885c._0x10c574);}function _0x193950(_0x37ea73,_0x5a5aa0,_0x5227b6,_0x22a20d){return _0x45dad1(_0x37ea73-_0xdb170c._0x2e8f9d,_0x22a20d- -_0xdb170c._0x4e2eae,_0x5a5aa0,_0x22a20d-_0xdb170c._0x451218);}const _0x57827c=await _0x112eba(_0x4cf815),_0x29950b=await _0x5d0501(_0x4cf815);return collectClientResults(_0x29950b['flatMap'](_0x372f69=>_0x57827c[_0x11773f(0x5f1,0x713,0x635,0x671)](_0x10fe6c=>_0x372f69[_0x11773f(0x3a2,0x433,0x4ee,0x4d0)]['incomingCalls'](_0x10fe6c))));},async 'outgoingCalls'(_0x24ffbe){function _0x422a44(_0x78f355,_0x425e95,_0x56b369,_0x54f0da){return _0x45dad1(_0x78f355-_0x36c38f._0x324660,_0x78f355-0x172,_0x56b369,_0x54f0da-_0x36c38f._0x563511);}const _0x4e9dad=await _0x112eba(_0x24ffbe),_0x4ae625=await _0x5d0501(_0x24ffbe);function _0x14d877(_0x55e244,_0x46fae8,_0x47b635,_0x2da6cd){return _0x45dad1(_0x55e244-0xa8,_0x47b635- -0x3ba,_0x46fae8,_0x2da6cd-_0x3c2a5a._0x4a41eb);}return collectClientResults(_0x4ae625[_0x14d877(_0xbea5c8._0x4e2450,0x89,_0xbea5c8._0x3a5b02,-_0xbea5c8._0x1bade3)](_0x964238=>_0x4e9dad[_0x14d877(0x118,0x16f,0x123,0x47)](_0x1aef31=>_0x964238[_0x422a44(0x4ae,0x45d,0x401,0x43d)][_0x14d877(0xee,-0x106,0x23,-0x1)](_0x1aef31))));},async 'shutdown'(){if(_0x26392d[_0x4c9a26(0x5c9,_0x1b01a0._0xadb524,0x5a0,0x517)])return;function _0x20c121(_0x124a60,_0x3b67d7,_0x3765ce,_0x277ca6){return _0x45dad1(_0x124a60-0x73,_0x277ca6- -_0x1e45dd._0x24f21b,_0x124a60,_0x277ca6-0x117);}_0x26392d[_0x4c9a26(_0x1b01a0._0x41a301,_0x1b01a0._0x4cf621,_0x1b01a0._0x64d074,0x56c)]=!![],await Promise[_0x20c121(-_0x1b01a0._0x18d99f,-0x3a,-_0x1b01a0._0x160c1f,-0x12e)](_0x26392d[_0x4c9a26(0x38b,0x3d9,0x488,_0x1b01a0._0x26761c)][_0x20c121(_0x1b01a0._0x44b6b3,-0x124,_0x1b01a0._0x1fad20,-_0x1b01a0._0xc41da6)](_0x3a6917=>_0x3a6917[_0x20c121(0xa6,-0xf4,0x58,-0x63)]())),_0x26392d['clients']=[],_0x26392d['spawning'][_0x4c9a26(0x3b9,0x414,_0x1b01a0._0x4ea9d8,_0x1b01a0._0x427bd7)](),_0x26392d[_0x20c121(-_0x1b01a0._0x4f85d3,-_0x1b01a0._0x598027,-0x147,-0x173)][_0x20c121(-0x1d6,-_0x1b01a0._0x5206c3,-0xb0,-0x125)](),_0x26392d[_0x4c9a26(0x4cf,_0x1b01a0._0x567274,0x443,0x57c)][_0x20c121(-0x128,-0x152,-0xab,-_0x1b01a0._0x2ed02f)]();function _0x4c9a26(_0x423999,_0x3b0368,_0x1852d9,_0x3e9ad3){return _0x45dad1(_0x423999-0x104,_0x3b0368- -0x31,_0x423999,_0x3e9ad3-0x96);}_0x26392d[_0x4c9a26(0x2f7,0x373,0x45f,0x44f)][_0x4c9a26(0x362,_0x1b01a0._0x184c7b,_0x1b01a0._0x3125e5,_0x1b01a0._0x1f5112)]();},'status'(){const _0x59524f={_0x4eb6ba:0x163},_0x25cd38={_0xd816b4:0x8,_0x3b01cd:0x2e7,_0x12b3a5:0x1b1};function _0x334f79(_0x4910c6,_0x19ee5b,_0x35bbc9,_0x74ee2){return _0x45dad1(_0x4910c6-_0x25cd38._0xd816b4,_0x74ee2- -_0x25cd38._0x3b01cd,_0x35bbc9,_0x74ee2-_0x25cd38._0x12b3a5);}function _0x192a13(_0x32a323,_0x7c11b2,_0x5f1f39,_0x42c378){return _0x45dad1(_0x32a323-0x57,_0x5f1f39-_0x59524f._0x4eb6ba,_0x32a323,_0x42c378-0xe3);}return{'connectedClients':_0x26392d[_0x192a13(0x583,_0xeff26f._0x41aec1,0x56d,0x491)][_0x192a13(_0xeff26f._0x31079e,_0xeff26f._0x1dc6be,0x586,0x53e)]};}};}import{spawn as _0x3ec891}from'child_process';import{statSync}from'fs';import*as _0x16f5a4 from'os';import*as _0x4297ba from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x5b1231 from'path';function isPathInside(_0x541d0d,_0x2b5b66){const _0xcc3711={_0x2a49d4:0x475,_0x754154:0x370,_0x3d3fab:0x5a8,_0x291460:0x52f,_0x3f38b9:0x344},_0x5db796={_0x25cee6:0x1dd},_0x436735={_0x236b9f:0x2b3,_0xc9ed4e:0x1ae};function _0x46733f(_0x1b3179,_0x55dfc3,_0x36a805,_0x1c6616){return _0x22ef16(_0x55dfc3,_0x1b3179-_0x436735._0x236b9f,_0x36a805-_0x436735._0xc9ed4e,_0x1c6616-0x24);}const _0x1e0346=_0x5b1231['resolve'](_0x541d0d);function _0x292b57(_0x277a9b,_0xcfdc6a,_0x39a082,_0x4e9499){return _0x22ef16(_0x4e9499,_0xcfdc6a- -0x34c,_0x39a082-0x15a,_0x4e9499-_0x5db796._0x25cee6);}const _0x37b6a9=_0x5b1231[_0x46733f(_0xcc3711._0x2a49d4,0x399,0x3ad,_0xcc3711._0x754154)](_0x1e0346,_0x2b5b66);return _0x37b6a9===''||!_0x37b6a9[_0x46733f(0x57d,0x551,_0xcc3711._0x3d3fab,_0xcc3711._0x291460)]('..')&&!_0x5b1231[_0x46733f(0x473,0x49c,0x549,_0xcc3711._0x3f38b9)](_0x37b6a9);}function resolveWorkspacePath(_0x120b72,_0x3a81a9){return resolveAllowedPath(_0x120b72,[],_0x3a81a9);}function _0x2759(){const _0x11c53e=['y291BNq','zgvMyxvSDen3za','y2fWywjPBgL0AwvZ','qxzHAwXHyMXLignVBw1HBMrZoG','CgfJA2fNzu5HBwu','zgLZy292zxj5','C3rKzxjY','BM9Kzv9TB2r1BgvZ','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','BNbT','C3rYAxbbBNnP','lNrZ','Aw5JB21PBMDdywXSCW','uhjVz3jHBuzPBgvZ','Dg91y2HgAwXL','CgfJA2fNzs1SB2nRlMPZB24','lMDPzG','yxnPzgu','y2XPzw50x3nLy3jLDf9WB3n0','z29uB0rLzMLUAxrPB24','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','yxjNDw1LBNroyw1LCW','z2L0qNjHBMnO','u0HfteW','lNrZEa','D3jPDgu','zgvSzxrL','vw5RBM93BIb0B29SoIa','D29YA3nWywnLu3LTyM9S','CgXHAw50zxH0','DhvWBgu','BM9Uzq','mtm0nJi2nfbfvuzVsG','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Aw1Hz2uVCg5N','C2vYDMvYtMfTzq','lw5i','A2v5yMLUzgLUz3m','yxjNDw1LBNrZ','B2jQzwn0','r2XVyG','zMLSzq','zMfPBgvK','rgLHz25VC3rPyW','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','AhrTBfnUAxbWzxq','C3rYAw5N','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNvSzMLSBgvK','igj5DgvZ','zxHPDa','zgvSzwDHDgvKlxj1BI0','zw5HyMXLza','Cgf0Ag5HBwu','tuLnrtOG','tunqihnLCNzLCIa','iYmGu2TPBgW6ia','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','BgLUzq','Ahr0Ca','B2f1DgG','Dw5RBM93BG','DhjPBuvUza','y29TBwfUzhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','DgfZAW','Ag9TzwrPCG','AxneAxjLy3rVCNK','z2v0','D29YA3nWywnLl3n5BwjVBa','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','sfruuca','tM8GC3LTyM9SCYbMB3vUza','ChvZAa','zg9JDw1LBNrtEw1IB2W','C291CMnL','uhjVz3jHBuzPBgvZkhG4nIK','ywDLBNrZ','rMLSzu5LDW','zMLUywXnzxnZywDL','C3jJl2fNzw50l2fNzw50lNrZ','C2HPzNq','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','Dg9ju09tDhjPBMC','B25oB3rPzMLJyxrPB24','BhnW','CMCUzxHL','C3rHCNreAxi','yw5ZAti1nG','Aw1Hz2uVz2LM','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','y2fUy2vS','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','B2XKvgv4Da','BwvZC2fNzq','ChjVDg9JB2W','zMLSzvbHDgG','BwfW','A2v5','ls1WCMvMAxG','D2vI','CNvUswq','lMPZEa','C3rHCNrZv2L0Aa','AxnfBMfIBgvK','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','zgLHz25VC3rPy3m','BgLNAhq','zxjYB3jnzxnZywDL','r0LgodLH','Cgf0Aa','C3bHD24','AxnfCNjVCG','Bwf0y2HLCW','C3rKB3v0','CgfJA2fNzxm','yMfZzty0','zMLSDgvY','BM90Awz5','C3rKAw8','BwvTB3j5','CMfUz2u','ienHDxnLoIa','C3bHD25PBMC','C3rYAw5NAwz5','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','CMvXDwvZDhm','zgLYzwn0B3j5','yxnZAwDU','vw5HDxrOB3jPEMvKrxjYB3i','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','DgHLBG','CxvLCNK','ywXS','zhj5uNvU','A2LUza','zNjVBq','v2vIrMv0y2G','C2H1DgrVD24','Dg9mB3DLCKnHC2u','u2L6ztOG','Bw9KzwW','Aw1Hz2vZ','C2XPy2u','vMLLD2vKigLTywDLigzPBgu6ia','yNvUlMXVy2S','l3vZCI9IAw4VyMfZAa','C2vZC2LVBG','igzHAwXLzc4','C2H1DgrVD25tDgfYDgvK','ywrK','yM0Ynq','D2LUmZi','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','ls1NBg9IpseUz2L0lYO','y29Kzq','ChjVCgvYDgLLCW','C2fMzq','CMvJB3jK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','zxjYB3i','nZuXmxjIwefrta','BNv2Aw4','BxrPBwvnCW','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','DhLWzq','B3rOzxi','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','zMLSzvzLCNnPB25Z','mZbVALbVCgm','C2HLBgXqyxrO','Cgf0DgvYBG','Aw1Hz2uVD2vICa','ChjLzML4','Aw1Hz2uVANbLzW','AhLKCMf0zu1LDge','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','y2XPzw50sw5MB3jTyxrPB24','yxjYyxK','BgfUzW','A2LSBa','zgLZy292zxj5u3rHDgu','Dgv4DerVy3vTzw50l2rPzenSB3nL','v2fYBMLUzW','CMvTB3zLrxzLBNrmAxn0zw5LCG','DxrTx3nVDxjJzq','cGOTls0kcG','y29TBwfUza','igj5DgvZigv4y2vLzhmG','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','CgfYzw50u2vZC2LVBKLK','BgfUz18','y2f0y2G','u3rHCNrLzcbHz2vUDcbYDw4G','B3bLCMf0Aw9U','mZe5nZK2mvrQAuj1Dq','vMLLD0zPBgu','AxngAwXL','z2XVyG','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','cMbGya','nZmYzgzXtLDP','DhjHBNnWB3j0','yxv0BW','C2TPBgXZ','zMLSztOVlW','CNvUBMLUzW','ywjVCNrLza','BgLZDfrVB2XZ','Agv4','q29TBwfUzcaN','Ahr0Chm6','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','Aw5JBhvKzq','yxjNDw1LBNrZvgv4Da','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','ls1JB2X1Bw4','C3rKAw4','Ag9ZDa','u2TPBgWGjW','Dg9Rzw5Z','C3rHDhvZvgv4Da','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','uMvZCg9UC2uGDg9VigXHCMDLoIbLEgnLzwrZia','l2jPBI9IyxnO','y2fSBfrVB2W','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','DhLWzxnJCMLWDhjLywn0','ywrKrxzLBNrmAxn0zw5LCG','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','BNvT','AhjLzG','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','CMLWz3jLCa','u2HLBgWGBM90igzVDw5KoIa','Bg93','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','zMvUy2vK','CMvXDwLYzwq','cGPbuKDvtuvovfm6ia','zgvMyxvSDfrPBwvVDxrnCW','q29Tu3bLyW','lI4U','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','y3DK','Dg9Rzw4','sw52B2TLq29TBwfUza','ls1ZDgrPBW','DgvZDa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','lNDLyNa','C2vYDMvY','qxnZAwDUvgfZAW','z2nSAwq','CgfNzw1HCa','qgjPB21LANmVyMLVBwu','lMnTza','ywDLBNrjza','zgvZy3jPChrPB24','D2fPDezVCKrPywDUB3n0AwnZ','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','C3LTBgLUAW','AgfZq2XPzw50CW','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','mJm1mK9iBLzvva','AwDUB3jLt3v0Chv0','C2v0','CgfYC2u','ihDHCYbHyM9YDgvKlG','yw5ZAte2','o1TE','CMfUzg9T','z29Vz2XLq3nLq3G','C2v2zxjPDhK','yxjNCW','Dg9VBfjLC3vSDhm','y2XPzw50','yNvUlMXVy2TI','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','CMvHC29U','zgf0yq','y2HHCKnVzgvbDa','EwfYBI5SB2nR','C3rHDgu','C25PChbLDa','Bg9HzenVBw1HBMq','CMvXDwvZDa','Bwf4qNL0zxm','ywn0AxzL','z29uB0LTCgXLBwvUDgf0Aw9U','C2L0ztO','CgLK','te9dquXbufbeqvrb','C2vYDMvYCW','CM9VDa','zMjJBgLK','y2vPBa','C3rHCNq','zgLYBMfTzq','yxnJAwK','uhvIBgLZAgvKoIa','C2vHCMnOugfYyw1Z','zw5K','Aw5ZDhj1y3rPB25Z','AxrLBxm','ChjLCgfYzunHBgXiAwvYyxjJAhK','ugf0AcbUB3qGzM91BMq6ia','lMn0CW','B2zMC2v0','DgL0Bgu','DxjP','zw50CMLLCW','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y3jSzG','yMfZzw5HBwu','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','C2vHCMnOvhLWzq','BgLUzvn0yxj0','BwnFy2LK','y29UBMvJDa','Cgf0DgvYBIbPCYbYzxf1AxjLza','B25Jzq','yMvHCMvY','y29UDgvUDa','zMLUywXnzxnZywDLvgv4Da','yxr0CG','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','AM9PBG','yxbWBgLJyxrPB24VANnVBG','rxjYB3i','l3vZCI9SB2nHBc9IAw4VCMC','zgvUBY5QC29UyW','zgLZywjSzwq','ntq1nJDjuM5uqwy','ChvIBgLZAgvKqxq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Bg9JyxrPB24','D2HLCMuGCMC','EwvZ','Dg9VBhmVy2fSBa','lMnQCW','B2C6DxbKyxrLzf90Aw1L','D2HPy2GGCMC','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','BhnWu2vYDMLJzq','zMLYC3q','u0Lhs0Lmta','Bg9JywXLq29TCgfYzq','Cg5WBs1SB2nRlNLHBwW','zgf0zxrPBwu','DMvYAwzPzxi','C3rVCMfNzurPCG','yw50AhjVCgLJlw1LC3nHz2vZ','AgfUzgXL','lNbUzW','Dg9Rzw5tDg9YywDLs2v5','lNrTCc4','C2vYDMvYswq','ru5pru5u','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','rMv0y2GGywjVCNrLzcbIEsb1C2vY','AgfZ','v0vcua','ksbB','BhnWlxbYB3H5','Cg9W','zgvSAw1PDgvY','lM51DMLU','BMfTzq','y29UDgv4Da','zw51Bq','DxrTx3rLCM0','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','yNL0zuXLBMD0Aa','ChjVy2vZCW','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','Dg9VBenHBgXjza','Dg9tDhjPBMC','BwLU','z29Vz2XLq3nLs2v5','Aw5PDgLHBgL6yxrPB24','yxjNDw1LBNriAw50','lMPZ','BgLZDgvU','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','CMvZDwX0','CMvWBgfJzq','B3jPz2LUvg9VBenHBgXjza','B3bLBKzPBgvZ','yMLVBwuUANnVBG','CMfUAW','sgLUDa','Aw5JBhvKzxm','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','Dhj1zq','C2nVCgvZ','DhLWzxnJCMLWDa','l3bPza','tNv2Aw4','B3jPz2LUywW','ywjVCNq','AwzYyw1L','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','rMLSzuvKAxq','AxngAw5PDgu','AwDUB3jL','ignVBxbSzxrLzc4','ANnVBG','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','y29ZDa','rgv0ywLSoIa','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','y2fSBgjHy2TvCMW','A2v5CW','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','qMfZzsbKAxjLy3rVCNK6ia','mJbMyxfewhq','Ahr0CdO','BxrPBwu','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','yxbPs2v5','C29YDa','yMLVBwu','CNnZ','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Dg9VBa','z29Vz2XLlwnZzq','AxntEw1IB2XPy0XPBMS','zgLZCg9Zzq','BgL0zxjHBa','zgfYAW','seLhsa','CgLWzq','A2LSBgvK','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','xg5DkJ8','yMLUyxj5tMfTzq','zMXVB3i','ls1MB2XSB3C','AxnbyNnVBhv0zq','ls0T','CMvSyxrPDMu','Dg9VBhm','B3v0z29PBMDdywXSCW','zxHPDcbJB2rLia','B3bLBG','zg9TywLUCW','BgLUzu51Bq','zgvMAw5PDgLVBG','qwDLBNqGCNvUia','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','vw50AxrSzwq','odG1mtv0q1bxuMy','AxnbCNjHEq','DxrMoa','AgvHzgvYCW','CMvZB2X2zq','y2HHCMfJDgvY','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','BgLTAxq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','DhnZzxj2zxiUANm','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','zM9VDgvY','tM8GzgLHz25VC3rPy3m','C2HHmJu2','B2zM','CgfJA2fNzs5QC29U','zgf0zvjLC3rYAwn0','yNjVA2vU','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','C2vZC2LVBKLK','Aw5ZDgfSBa','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','C2vUze5VDgLMAwnHDgLVBG','C2vUzfjLCxvLC3q','lM1QCW','yMLYDgH0Aw1L','DMfSDwu','AMf2yxnJCMLWDa','C2L6zq','zxH0BMfTzq','zMXHDe1HCa','mtG1mZa2ywPYDufY','BgLI','B25szwrPCMvJDa','Aw1Hz2u','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','y2XPzw50CW','y2XVC2u','BgLUAW','DxbKyxrL','B3b0Aw9UywW','zMLUza','DhjPBq','lu5Vtg9NBW','yM94zwq','Aw5PDgLHBgL6zwq','Bwf4','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','qMfZAa','CgfZC3rOCM91z2G','BNvTyMvY','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','C2LNBMfS','yxv0AfjLCxvPCMvK','BwfYA2rVD24','CgXHAw4','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','yM9KEq','DxnLCM5HBwu','CMvNAw9U','y29KzvzLCMLMAwvY','BgvUz3rO','AgLNAa','DgLTzw91De1Z','o1TExg5DkJ8','BgLUzvrLEhq','ywXSB3DLzerPCNm','ygbGANnVBGO','zxf1ywXZ','zw52','ig1Z','Bwv0yxrHz3m','DgHPBMTPBMC','C3bSAxq','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','C3rHDhvZ','Aw5WDxrty2HLBwe','lMjPBG','ANnJB25MAwCUANnVBG','yxv0Ag9YAxPHDgLVBL9JB2rL','AxndB250zxH0','BM93','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','lMPWzwC','tg9HzfnRAwXS','zgLHz25VC3rPy3ngB3jgAwXL','ywXSu2v0DgXLza','AMf2yxnJCMLWDhjLywn0','ugfJA2fNzxm','y29TCgXLDgvK','BMv3vgv4Da','Aw1WBgvTzw50yxrPB24','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','wZ0+nY04kcLD','yxr4','y2XLyxi','y29UBMvJDgvK','DxjS','yxv0Aa','zNvUy3rPB24','yM9VBgvHBG','CgXHDgzVCM0','tg9HzgvKigzYB206ia','Dhj1BMm','DhnJB25MAwCUANnVBG','l3vZCI9IAw4VC2G','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','AgvHzgvY','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','Aw5KzxHpzG','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','CMvJzw5JEurHExm','mc4WlJa','y29UzMLN','Dgv4Da','t0zg','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','BgLUzuvUza','lMPZB24','C3vIyxjYyxK','zxH0zw5ZAw9UCW','C2nYAxb0','igzYB20G','y29Uy2f0','mJm2mLbJrxvTAq','BM9Zy3jPChq','zgv0ywLS','ndi2vKTdAuLI','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','BwnFzwLK','qxv0Ag9YAxPHDgLVBG','Ag92zxi','y29UDgv4DeXPBMS','CMvTB3zL','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','y29UBMvJDgLVBG','BgfUz3vHz2u','zgLNzxn0','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','ygbG','tgLUzsa','rMLSzsb3CML0DgvUigf0ia','AxnjBNrLz2vY','Dw5PB24'];_0x2759=function(){return _0x11c53e;};return _0x2759();}function resolveAllowedPath(_0x364ad4,_0x2a0f52,_0x1666bd){const _0x7b2c3b={_0x45c591:0x9a,_0x24e4a9:0x163,_0x27af95:0xa8,_0x2e3168:0x68,_0x3b237e:0x251},_0x4d84e7={_0x135719:0xde},_0x2adb1b={_0x535d92:0x9d,_0x16ca3b:0x14e},_0xfc8713=_0x5b1231[_0x4590fe(0x1b1,_0x7b2c3b._0x45c591,-0x8a,0x63)](_0x364ad4),_0x145794=_0x5b1231['resolve'](_0xfc8713,_0x1666bd);function _0x4c4518(_0x535015,_0x5ab74e,_0x2e5da1,_0x1ed676){return _0x324926(_0x5ab74e-_0x2adb1b._0x535d92,_0x2e5da1,_0x2e5da1-0x14,_0x1ed676-_0x2adb1b._0x16ca3b);}const _0x2da842=[_0xfc8713,..._0x2a0f52[_0x4c4518(0x142,_0x7b2c3b._0x24e4a9,_0x7b2c3b._0x27af95,0x22f)](_0x33c122=>_0x5b1231[_0x4590fe(0x123,0x9a,0x195,0x1a5)](_0x33c122))];if(_0x2da842['some'](_0x2e796c=>isPathInside(_0x2e796c,_0x145794)))return _0x145794;function _0x4590fe(_0x1f2c30,_0x3caa2c,_0x1c2f3a,_0x510528){return _0x324926(_0x3caa2c-0xc7,_0x1f2c30,_0x1c2f3a-0x1a4,_0x510528-_0x4d84e7._0x135719);}throw new ToolExecutionError(_0x4c4518(_0x7b2c3b._0x2e3168,0x15d,_0x7b2c3b._0x3b237e,0x85)+_0x1666bd,{'path':_0x1666bd,'rootDir':_0xfc8713,'allowedDirs':_0x2da842});}async function assertWorkspaceFile(_0x291bc3){const _0x876466={_0x1ab3f8:0x11,_0x4a38de:0xf2},_0x7f73ac={_0x2450be:0x123,_0x55c92d:0x1b8};function _0x5aeda8(_0x149ee2,_0x26d8cc,_0x123a0e,_0x1d84c9){return _0x324926(_0x149ee2-_0x7f73ac._0x2450be,_0x123a0e,_0x123a0e-_0x7f73ac._0x55c92d,_0x1d84c9-0x46);}const _0x190b77=await stat(_0x291bc3);if(!_0x190b77[_0x5aeda8(-_0x876466._0x1ab3f8,0x8e,0x6a,-_0x876466._0x4a38de)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x291bc3,{'path':_0x291bc3});}function isProbablyBinary(_0x4fa980){const _0x335625={_0x37d91e:0x2f5,_0x4b5f68:0x1d0,_0x537189:0x140},_0x1f684c={_0x41a424:0x35f,_0x4a9d4b:0x46};function _0x4b4295(_0x40a991,_0x319aa6,_0x28c44f,_0xe43553){return _0x22ef16(_0x40a991,_0x28c44f- -_0x1f684c._0x41a424,_0x28c44f-0xe4,_0xe43553-_0x1f684c._0x4a9d4b);}return _0x4fa980[_0x4b4295(-_0x335625._0x37d91e,-0x17b,-_0x335625._0x4b5f68,-_0x335625._0x537189)](0x0);}var DEFAULT_DESCRIPTION='Execute\x20a\x20shell\x20command\x20with\x20timeout\x20protection.\x20Captures\x20stdout\x20and\x20stderr.\x20Do\x20not\x20use\x20for\x20interactive\x20commands\x20that\x20require\x20user\x20input.',DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x23691c){return _0x23691c instanceof Error;}function shellExists(_0x224e49){function _0x1f1492(_0x5f3318,_0x3248ec,_0x238fed,_0x512647){return _0x22ef16(_0x3248ec,_0x5f3318- -0x366,_0x238fed-0x1df,_0x512647-0x158);}try{const _0x5163f6=statSync(_0x224e49);return _0x5163f6[_0x1f1492(-0x29c,-0x2be,-0x1c5,-0x392)]()&&(_0x5163f6['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x169989){const _0x483823={_0x489f8b:0x551,_0x5eeefe:0x59f,_0x2775f5:0x635,_0x59be3a:0x672,_0x2e26b5:0x686,_0x1ed2cf:0x34c,_0xf7574c:0x53b,_0x1b1b35:0x578,_0x5d8e54:0x45b,_0x1003ea:0x5cb,_0x3621b8:0x66c,_0x16521b:0x382,_0xbde43b:0x48c},_0x2901cc={_0x2057c0:0x17,_0x37fa8e:0x10b},_0x30bfae={_0x530fac:0x32};if(_0x169989)return _0x169989;if(_0x16f5a4[_0x1ae0f8(_0x483823._0x489f8b,_0x483823._0x5eeefe,_0x483823._0x2775f5,0x5a8)]()===_0x1ae0f8(0x70b,0x576,0x62c,_0x483823._0x59be3a))return process[_0x1ae0f8(0x588,0x672,_0x483823._0x2e26b5,0x588)][_0x13f8a6(0x3a1,_0x483823._0x1ed2cf,0x3f1,0x2e4)]||'cmd.exe';function _0x1ae0f8(_0x5a32d6,_0x5cef8e,_0x5201c4,_0x192d0e){return _0x324926(_0x192d0e-0x574,_0x5a32d6,_0x5201c4-0x12,_0x192d0e-_0x30bfae._0x530fac);}const _0x574c4a=[_0x1ae0f8(_0x483823._0xf7574c,_0x483823._0x1b1b35,0x47e,_0x483823._0x5d8e54),'/bin/sh',_0x1ae0f8(_0x483823._0x1003ea,0x751,0x5ca,_0x483823._0x3621b8),_0x13f8a6(_0x483823._0x16521b,_0x483823._0xbde43b,0x491,0x3df)];for(const _0x10b011 of _0x574c4a){if(shellExists(_0x10b011))return _0x10b011;}function _0x13f8a6(_0x90bab1,_0x464032,_0xf634f8,_0x1440eb){return _0x324926(_0x464032-0x454,_0x90bab1,_0xf634f8-_0x2901cc._0x2057c0,_0x1440eb-_0x2901cc._0x37fa8e);}const _0x5e5f88=process['env'][_0x13f8a6(0x54e,0x4cc,0x504,0x554)];if(_0x5e5f88&&shellExists(_0x5e5f88))return _0x5e5f88;return'/bin/bash';}function buildShellArgs(_0x4e4c66,_0x5f056f){const _0x33ae31={_0x3def73:0xf6,_0x223353:0x1dc,_0x5afe7b:0xb,_0x30b8b4:0x198,_0x490a51:0x10f,_0x11c179:0x1f9,_0x49637d:0x159,_0x242f48:0xd2,_0x1b5e0f:0x70,_0x4881a2:0x5e},_0x2fc062={_0x38d835:0x58,_0x419a74:0xce};if(_0x16f5a4[_0x3b95cc(-0x1cc,-_0x33ae31._0x3def73,-0x133,-_0x33ae31._0x223353)]()===_0x3b95cc(-0x102,-0x167,_0x33ae31._0x5afe7b,-_0x33ae31._0x30b8b4)){const _0x471717=/cmd(\.exe)?$/i[_0x120177(-0x21a,-_0x33ae31._0x490a51,-_0x33ae31._0x11c179,-_0x33ae31._0x49637d)](_0x5f056f);return _0x471717?['/d','/s','/c',_0x4e4c66]:[_0x120177(-0xa3,-_0x33ae31._0x242f48,_0x33ae31._0x1b5e0f,-_0x33ae31._0x4881a2),'-NoProfile','-Command',_0x4e4c66];}function _0x120177(_0x3d632b,_0x356ec9,_0x341d63,_0x201de9){return _0x324926(_0x201de9- -_0x2fc062._0x38d835,_0x3d632b,_0x341d63-0x1b1,_0x201de9-_0x2fc062._0x419a74);}function _0x3b95cc(_0x280e45,_0x288498,_0x40466f,_0x29ace7){return _0x22ef16(_0x288498,_0x280e45- -0x3fe,_0x40466f-0x114,_0x29ace7-0x84);}return['-c',_0x4e4c66];}function resolveCarriageReturns(_0x39b4df){const _0xacfcf3={_0x5ab983:0x42f,_0x4a6d3f:0x47a,_0x3d7e0c:0x4a9,_0x4780ce:0x261,_0xfb578d:0x1cf,_0x1b0d75:0x175},_0x1008cb={_0x53d7e4:0x1d8,_0x2812a6:0x2d8,_0x1a1b85:0x184,_0x5db1eb:0x4c7,_0xdb3e8:0x4db,_0x52871b:0x57a},_0x34e549={_0x211c64:0x144},_0xa02075={_0x4448eb:0x5,_0x34764a:0x18a};function _0x5d6422(_0x121d7f,_0x2c33fd,_0x8eb353,_0x3c2fe3){return _0x324926(_0x121d7f-0x313,_0x2c33fd,_0x8eb353-_0xa02075._0x4448eb,_0x3c2fe3-_0xa02075._0x34764a);}function _0x13742e(_0x10fc52,_0x4412ec,_0x4e22d7,_0x570a9f){return _0x324926(_0x570a9f-0x385,_0x4412ec,_0x4e22d7-0x5b,_0x570a9f-_0x34e549._0x211c64);}return _0x39b4df[_0x13742e(0x2b5,_0xacfcf3._0x5ab983,_0xacfcf3._0x4a6d3f,0x39d)]('\x0a')[_0x13742e(_0xacfcf3._0x3d7e0c,0x54b,0x53c,0x44b)](_0x55463f=>{const _0x316cd3={_0xf62a07:0x1bc,_0x3280ec:0x3},_0x963876={_0x12e83e:0xef};function _0x19d1fa(_0xb91646,_0x96c4da,_0x291027,_0x45633b){return _0x5d6422(_0xb91646- -0xcc,_0x96c4da,_0x291027-0xcd,_0x45633b-_0x963876._0x12e83e);}function _0xc21d28(_0x6614f7,_0x4b31c3,_0x102e99,_0x13d4ed){return _0x5d6422(_0x4b31c3-_0x316cd3._0xf62a07,_0x102e99,_0x102e99-0x80,_0x13d4ed-_0x316cd3._0x3280ec);}if(!_0x55463f[_0x19d1fa(_0x1008cb._0x53d7e4,_0x1008cb._0x2812a6,0xd4,_0x1008cb._0x1a1b85)]('\x0d'))return _0x55463f;const _0x57e487=_0x55463f[_0xc21d28(0x60c,0x4e7,_0x1008cb._0x5db1eb,0x60a)]('\x0d');return _0x57e487[_0x57e487[_0xc21d28(0x5a7,_0x1008cb._0xdb3e8,_0x1008cb._0x52871b,0x3c7)]-0x1]??'';})[_0x5d6422(_0xacfcf3._0x4780ce,0x290,_0xacfcf3._0xfb578d,_0xacfcf3._0x1b0d75)]('\x0a');}function resolveBackspaces(_0x526bd4){const _0x368d4f={_0x2f7cc2:0x173,_0x5cd439:0x136,_0x2b5511:0x19,_0x1cc3cd:0x618,_0x1bfdbf:0x4ba,_0xef1fbb:0x50b},_0x360463={_0x27324f:0x129,_0x34c2c3:0x84},_0x5d259d={_0x234405:0x4d,_0x1b67c5:0xc4},_0x320880=[];function _0x2e93ac(_0x5783c4,_0x2c41d9,_0x4da7be,_0x2ca421){return _0x324926(_0x5783c4-0x56c,_0x2ca421,_0x4da7be-_0x5d259d._0x234405,_0x2ca421-_0x5d259d._0x1b67c5);}function _0x2720e5(_0x69d73b,_0x46bb2c,_0x548ae5,_0x1d2aad){return _0x324926(_0x1d2aad-_0x360463._0x27324f,_0x548ae5,_0x548ae5-0xb8,_0x1d2aad-_0x360463._0x34c2c3);}for(const _0x2df00c of Array[_0x2720e5(_0x368d4f._0x2f7cc2,0x21c,_0x368d4f._0x5cd439,0x217)](_0x526bd4)){_0x2df00c==='\x08'?_0x320880[_0x2720e5(-_0x368d4f._0x2b5511,0x89,0x39,0x9f)]():_0x320880[_0x2e93ac(_0x368d4f._0x1cc3cd,0x53d,0x675,0x68f)](_0x2df00c);}return _0x320880[_0x2e93ac(_0x368d4f._0x1bfdbf,0x5d4,0x4ab,_0x368d4f._0xef1fbb)]('');}function stripAnsiAndControls(_0x10a9c2){const _0x1a740f={_0x35a7e2:0x26d,_0x1bc170:0x3b9,_0x1c654b:0x1ad,_0x58b523:0x20d,_0x397ef7:0x36c,_0x97ac9f:0x259,_0x57106f:0x2dc,_0x51cccb:0x1b8,_0x27aedd:0x28a,_0x50d305:0x274,_0xdf57b3:0x29c,_0x351ec1:0x15f,_0x45cee6:0x339,_0x298d66:0x223,_0x506d8a:0x218,_0x3136eb:0x43c,_0x2b31b8:0x37d,_0x19a17b:0xfd,_0x5f549c:0x218,_0x3c5476:0x17e,_0x233d45:0x299,_0x4dd060:0x263},_0x4fd2af={_0x47cb5a:0x153},_0x4f82f8={_0x101bf3:0x8e};_0x10a9c2=resolveCarriageReturns(_0x10a9c2),_0x10a9c2=resolveBackspaces(_0x10a9c2),_0x10a9c2=stripVTControlCharacters(_0x10a9c2);function _0x304e73(_0x9f0e4e,_0x3b8923,_0x287935,_0x7010e7){return _0x324926(_0x7010e7-0x28d,_0x3b8923,_0x287935-_0x4f82f8._0x101bf3,_0x7010e7-0xf1);}const _0xce409e='\x1b',_0x27cb5d='\x07';_0x10a9c2=_0x10a9c2[_0x3907af(0x3c9,_0x1a740f._0x35a7e2,_0x1a740f._0x1bc170,0x2dc)](new RegExp(_0x3907af(_0x1a740f._0x1c654b,_0x1a740f._0x58b523,_0x1a740f._0x397ef7,0x266)+_0x27cb5d+_0x3907af(0x263,0x3cf,0x1e2,0x30f)+_0x27cb5d,'g'),'');function _0x3907af(_0x497d3c,_0x510548,_0x219f23,_0x43d0e6){return _0x22ef16(_0x510548,_0x43d0e6-_0x4fd2af._0x47cb5a,_0x219f23-0x16a,_0x43d0e6-0x51);}return _0x10a9c2=_0x10a9c2[_0x3907af(0x1db,0x368,_0x1a740f._0x97ac9f,_0x1a740f._0x57106f)](new RegExp(_0x304e73(_0x1a740f._0x51cccb,_0x1a740f._0x27aedd,_0x1a740f._0x50d305,_0x1a740f._0xdf57b3)+_0xce409e+'\x5c\x5c','g'),''),_0x10a9c2=_0x10a9c2['replace'](new RegExp(_0x27cb5d,'g'),''),_0x10a9c2=_0x10a9c2[_0x304e73(_0x1a740f._0x351ec1,_0x1a740f._0x45cee6,_0x1a740f._0x298d66,_0x1a740f._0x506d8a)](new RegExp(_0xce409e+'[P_^][\x5cs\x5cS]*?'+_0xce409e+'\x5c\x5c','g'),''),_0x10a9c2=_0x10a9c2['replace'](new RegExp(_0xce409e+_0x3907af(0x36b,_0x1a740f._0x3136eb,0x4aa,_0x1a740f._0x2b31b8),'g'),''),_0x10a9c2=_0x10a9c2[_0x304e73(0x1da,0x23c,_0x1a740f._0x19a17b,_0x1a740f._0x5f549c)](/[\u0080-\u009F]/g,''),_0x10a9c2=_0x10a9c2[_0x304e73(_0x1a740f._0x3c5476,_0x1a740f._0x233d45,_0x1a740f._0x4dd060,_0x1a740f._0x5f549c)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x10a9c2=_0x10a9c2['replace'](/[\u23CE\u2424]/g,''),_0x10a9c2;}function resolveWorkingDirectory(_0x5e5936,_0x365ec6,_0x181fd6){const _0x499b0d={_0xbdd508:0xa4,_0x260cc9:0x185,_0x1dbe16:0x2e,_0x42a357:0xa},_0x2c4ba2={_0x4aa4ce:0x6d},_0x458525={_0x137f1b:0x401};function _0x9714e3(_0x15729b,_0x46d4b7,_0x17b296,_0x3dc0d3){return _0x22ef16(_0x46d4b7,_0x17b296- -_0x458525._0x137f1b,_0x17b296-0x32,_0x3dc0d3-0x1a7);}function _0x4430eb(_0x5bcfeb,_0x1fbbda,_0x458f84,_0x14fb0b){return _0x22ef16(_0x1fbbda,_0x5bcfeb- -0x192,_0x458f84-_0x2c4ba2._0x4aa4ce,_0x14fb0b-0x99);}const _0x41856d=resolveAllowedPath(_0x365ec6,_0x181fd6,_0x5e5936??'.');try{const _0x11f925=statSync(_0x41856d);if(!_0x11f925[_0x9714e3(-_0x499b0d._0xbdd508,-_0x499b0d._0x260cc9,-0x15d,-0x1f6)]())throw new ToolExecutionError(_0x4430eb(0xa8,0x64,_0x499b0d._0x1dbe16,0x127)+_0x41856d,{'cwd':_0x41856d});return _0x41856d;}catch(_0x460eee){if(_0x460eee instanceof ToolExecutionError)throw _0x460eee;throw new ToolExecutionError(_0x4430eb(0x6a,-0x8f,_0x499b0d._0x42a357,0x15b)+_0x41856d,{'cwd':_0x41856d});}}function killProcessGroup(_0x5491b4,_0x22303c,_0x465d4a=_0x324926(-0x9f,-0xfa,-0x163,0x2f)){const _0x279c6c={_0x229df6:0x13d,_0x129e6b:0x13e,_0x3f2507:0x260,_0x5f2919:0x4bc,_0x2ca5f4:0x30b,_0x35ee51:0x2b7,_0x420253:0x172},_0x4365e7={_0x5ce289:0xcc},_0x19a4c8={_0x175f5b:0x1cd};if(!_0x5491b4[_0x5f2421(0xc9,_0x279c6c._0x229df6,_0x279c6c._0x129e6b,0xc7)])return;if(_0x22303c)try{_0x3ec891('taskkill',[_0x100910(0x283,_0x279c6c._0x3f2507,0x208,0x1c0),_0x5491b4['pid']['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5491b4[_0x100910(0x513,0x3e4,0x2df,_0x279c6c._0x5f2919)](_0x465d4a);return;}function _0x5f2421(_0x480a27,_0x3b1b12,_0x353af7,_0xb54e5c){return _0x22ef16(_0x3b1b12,_0xb54e5c- -0x61,_0x353af7-0x19b,_0xb54e5c-_0x19a4c8._0x175f5b);}function _0x100910(_0x3caa60,_0x3735cb,_0x26aa87,_0x5a8c74){return _0x22ef16(_0x5a8c74,_0x3735cb-_0x4365e7._0x5ce289,_0x26aa87-0x1ca,_0x5a8c74-0x127);}try{process[_0x5f2421(0x377,0x1bf,_0x279c6c._0x2ca5f4,_0x279c6c._0x35ee51)](-_0x5491b4[_0x5f2421(_0x279c6c._0x420253,0xae,-0x6,0xc7)],_0x465d4a);}catch{_0x5491b4['kill'](_0x465d4a);}}function appendChunk(_0x1007aa,_0x304b5a,_0x402b8e,_0x559f9d,_0x44a35c){const _0x5a1e03={_0x2f4a10:0x112,_0x5e6695:0x4aa},_0x43b720={_0x2eecae:0xd7},_0x29d3e3=_0x559f9d?stripAnsiAndControls(_0x402b8e):_0x402b8e;if(_0x29d3e3[_0x42c342(-0x1f2,-_0x5a1e03._0x2f4a10,-0x156,-0x263)]===0x0)return;_0x1007aa['push'](_0x29d3e3);function _0x42c342(_0x386359,_0x3f52ae,_0x22fd6c,_0x1332dd){return _0x22ef16(_0x3f52ae,_0x386359- -0x3fc,_0x22fd6c-0x6,_0x1332dd-0xb9);}function _0x1da810(_0x1c0d6e,_0x5c3237,_0xe7fa05,_0x46b2aa){return _0x22ef16(_0x5c3237,_0x46b2aa-0x200,_0xe7fa05-0x174,_0x46b2aa-_0x43b720._0x2eecae);}_0x304b5a[_0x1da810(0x3af,0x3a6,0x3f2,_0x5a1e03._0x5e6695)](_0x29d3e3),_0x44a35c();}function createBashTool(_0xc700dc={}){const _0x19c55d={_0x40f0ea:0x268,_0x560119:0x2ab,_0x207be2:0x209,_0x5b92f4:0x178,_0x5638de:0x1bc,_0x35ed88:0x22d,_0x1ae855:0x39c,_0xe66189:0x30f,_0x327869:0x487,_0x31bccc:0x529,_0xdb312c:0x40c,_0x7863f8:0x4a6,_0x2130f5:0x65a,_0x1133f1:0x152,_0xd96cec:0x340,_0x3a7d19:0x1e7,_0x54cea6:0x2d1,_0x110cb9:0x404,_0x23ca3d:0x3a6,_0x1ddf0f:0x2d8,_0x555ed5:0x3f1,_0x4abef9:0x35f,_0x215d53:0x190,_0x31fe2a:0x64a,_0x2c3aee:0x572,_0x3e2fa7:0x649},_0x55f573={_0x2f3706:0x40d,_0x31a07b:0x113,_0x4758f9:0x175,_0x3f92c2:0x130,_0x597511:0x2ca,_0x38dd2c:0x522,_0x5d50a9:0x1b5,_0x350062:0x1b0,_0x49cea6:0x1a0,_0x6af161:0x11e,_0x55c3f9:0x148,_0x3a15d0:0x14e,_0x573576:0x32,_0x37d9fd:0x484,_0x16312f:0xcf,_0x2ad34c:0xd2,_0x5a9924:0x20,_0x4dfbb8:0x4c8,_0x782b6e:0x42c,_0x58b042:0x39f,_0x5292ee:0xee,_0x5927f1:0x112,_0x2634bd:0x112,_0xf73c68:0x176,_0xc1b449:0x1b7,_0x551bdb:0x3af,_0x498210:0x2d0,_0x17c85a:0x1fc,_0x29f41e:0x306,_0x621df1:0x390,_0x304676:0xd9,_0x42823c:0x7b,_0x34d89f:0x3ff,_0x5c82df:0x471,_0x489844:0x36e,_0x18da42:0x29e,_0x39ba3e:0x2d9,_0x5bcaed:0x48,_0x277245:0x5b7,_0x1407dc:0x169,_0x27b104:0x37d,_0x2621c2:0x48,_0x4e8f99:0x10f,_0x2591c2:0x44,_0x5a9791:0x106,_0x4461cc:0x4af,_0x58b8ac:0x4b5,_0x57658e:0x3d4,_0x18e90d:0x36f,_0x5bf446:0x3c8,_0x106eea:0x51,_0x1c6ab6:0x1b,_0x4fe8c5:0x9e,_0x5052a3:0x265,_0xaea069:0x36c,_0x5ef989:0xbb,_0x5b6ead:0x502,_0x316faa:0xad,_0x532441:0x1c3,_0x17c5ee:0x7b,_0x1c6ceb:0x51,_0x2bea14:0xcc,_0x5213c3:0x11,_0x463411:0x132,_0x16234f:0x35,_0x277145:0x148,_0x3a988b:0x4,_0x4ed92c:0x423,_0x45d5b5:0x37f,_0x2cb12e:0x36e,_0x320c60:0x1bf,_0x5e1942:0x1ec,_0x31d99f:0x522,_0x4482e7:0x5d0,_0x3b8729:0x5dc,_0x759271:0x4c4,_0x3f4231:0x71,_0x15b5ce:0x55b,_0x1bdf5e:0x42f,_0xcbec3a:0x468,_0x15212f:0x1cd,_0x148937:0x119,_0x44cc7b:0x23a,_0x54558a:0x25e,_0x30597d:0x320,_0x4bf46f:0x1e6,_0x228e21:0xdd,_0x21bae2:0x3bd},_0x209537={_0x49db40:0x73,_0x3601cf:0x21,_0x1d6825:0x491,_0x328813:0x513,_0x461d52:0x4e0,_0x94e2e3:0x3f4,_0x22a714:0x37f},_0x1248ff={_0x179845:0xe6,_0x5da7f2:0x199,_0x65a42a:0xb2,_0x5cc7b7:0x1c7},_0x552d2f={_0x5cca9d:0x3b,_0x25a0ac:0xec},_0x436156={_0x3c614e:0x4d,_0x25d211:0x127,_0x3d8c21:0x1ae},_0x23aed4={_0x34af4f:0x528},_0x410fc2={_0x1ef8b0:0x249,_0x546e42:0xc0},_0x10f4e5=_0x4297ba['resolve'](_0xc700dc[_0x175b7e(0x206,_0x19c55d._0x40f0ea,0x3b1,_0x19c55d._0x560119)]??process['cwd']()),_0x274ec6=(_0xc700dc[_0x175b7e(_0x19c55d._0x207be2,_0x19c55d._0x5b92f4,_0x19c55d._0x5638de,0x25a)]??[])[_0x175b7e(_0x19c55d._0x35ed88,_0x19c55d._0x1ae855,_0x19c55d._0x40f0ea,_0x19c55d._0xe66189)](_0x5beb5f=>_0x4297ba[_0x175b7e(0xef,0x192,0x310,0x21c)](_0x5beb5f)),_0x1411dd=_0xc700dc[_0xfa8ad1(_0x19c55d._0x327869,0x41f,_0x19c55d._0x31bccc,_0x19c55d._0xdb312c)]??DEFAULT_TIMEOUT_MS;function _0x175b7e(_0x15f646,_0x3eff32,_0x535d12,_0x4d5d01){return _0x324926(_0x4d5d01-_0x410fc2._0x1ef8b0,_0x535d12,_0x535d12-_0x410fc2._0x546e42,_0x4d5d01-0x46);}const _0x2f982f=_0xc700dc[_0xfa8ad1(_0x19c55d._0x7863f8,0x593,_0x19c55d._0x2130f5,0x631)]??!![],_0x5549d7=_0xc700dc['name']??'Bash';function _0xfa8ad1(_0x483b6f,_0x48881,_0x3682ba,_0x47bea7){return _0x324926(_0x48881-_0x23aed4._0x34af4f,_0x47bea7,_0x3682ba-0xeb,_0x47bea7-0x189);}return defineTool({'name':_0x5549d7,'description':_0xc700dc[_0x175b7e(0x95,0xcd,0x1e5,_0x19c55d._0x1133f1)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x175b7e(_0x19c55d._0xd96cec,_0x19c55d._0x3a7d19,0x31d,_0x19c55d._0x54cea6),'properties':{'command':{'type':_0x175b7e(_0x19c55d._0x110cb9,0x371,_0x19c55d._0x23ca3d,_0x19c55d._0x1ddf0f)},'cwd':{'type':_0x175b7e(_0x19c55d._0x555ed5,0x1aa,_0x19c55d._0x4abef9,0x2d8)},'timeoutMs':{'type':_0x175b7e(0x2a8,_0x19c55d._0x215d53,0x121,0x24a)},'ignoreOutput':{'type':_0xfa8ad1(0x468,0x55b,0x573,_0x19c55d._0x31fe2a)}},'required':[_0xfa8ad1(_0x19c55d._0x2c3aee,_0x19c55d._0x3e2fa7,0x57c,0x653)]},async *'execute'(_0x1ccc25,_0x5c1824){const _0x3c5f9d={_0x284400:0xea,_0x2ef986:0x19,_0x728f5b:0x12e,_0x48d8b9:0x227,_0x4ab691:0x4a4,_0x271ac5:0x3e5},_0x589a92={_0x1a130b:0x46,_0x3c3cf6:0x76},_0x2a7437={_0x14c578:0x2bf,_0x3f4f36:0x60,_0xaddd2c:0x21d,_0x31fe3b:0x190},_0x3da28f={_0x2a5d28:0x5a},_0x2d6883={_0x3de823:0x4ce},_0x30f2d7=_0x1ccc25[_0x4417ce(0x310,_0x55f573._0x2f3706,0x496,0x40f)]??_0x1411dd;if(!Number[_0x24084a(-_0x55f573._0x31a07b,-_0x55f573._0x4758f9,-0x79,-_0x55f573._0x3f92c2)](_0x30f2d7)||_0x30f2d7<0x1)throw new ToolExecutionError(_0x4417ce(_0x55f573._0x597511,0x308,0x26c,0x2cf),{'command':_0x1ccc25[_0x4417ce(0x5eb,0x5b7,0x432,_0x55f573._0x38dd2c)]});throwIfAborted(_0x5c1824['signal']);const _0x101caa=resolveWorkingDirectory(_0x1ccc25[_0x24084a(-_0x55f573._0x5d50a9,-0xae,-0x260,-_0x55f573._0x350062)],_0x10f4e5,_0x274ec6),_0x288ff7=_0x1ccc25[_0x24084a(-_0x55f573._0x49cea6,-_0x55f573._0x6af161,-0x133,-_0x55f573._0x55c3f9)]??![];function _0x4417ce(_0x339231,_0x525347,_0x403f1f,_0x5022ba){return _0xfa8ad1(_0x339231-_0x436156._0x3c614e,_0x5022ba- -_0x436156._0x25d211,_0x403f1f-_0x436156._0x3d8c21,_0x525347);}const _0x4c0fa5=resolveDefaultShell(_0xc700dc[_0x24084a(0x60,_0x55f573._0x3a15d0,-0xb4,-_0x55f573._0x573576)]),_0x49e02d=buildShellArgs(_0x1ccc25[_0x4417ce(0x45b,0x5ac,_0x55f573._0x37d9fd,_0x55f573._0x38dd2c)],_0x4c0fa5),_0x3e2c59=_0x16f5a4[_0x24084a(-0x7c,-_0x55f573._0x16312f,-_0x55f573._0x2ad34c,_0x55f573._0x5a9924)]()==='win32';let _0x2ceb50;try{_0x2ceb50=_0x3ec891(_0x4c0fa5,_0x49e02d,{'cwd':_0x101caa,'env':{...process[_0x4417ce(_0x55f573._0x4dfbb8,0x3e3,_0x55f573._0x782b6e,0x415)],..._0xc700dc['env']??{}},'stdio':_0x288ff7?[_0x4417ce(0x3f7,0x2e0,0x44e,_0x55f573._0x58b042),_0x24084a(-0x112,-_0x55f573._0x5292ee,-0x220,-_0x55f573._0x5927f1),_0x24084a(-_0x55f573._0x2634bd,-_0x55f573._0xf73c68,-0x17b,-_0x55f573._0xc1b449)]:[_0x4417ce(_0x55f573._0x551bdb,_0x55f573._0x782b6e,_0x55f573._0x498210,0x39f),_0x24084a(-0xf5,-_0x55f573._0x17c85a,-0x192,-0x1b7),_0x4417ce(_0x55f573._0x29f41e,_0x55f573._0x621df1,0x42d,0x3bc)],'shell':![],'windowsHide':!![],'detached':!_0x3e2c59});}catch(_0x247038){if(isErrnoException(_0x247038)&&_0x247038[_0x24084a(0x51,_0x55f573._0x304676,_0x55f573._0x42823c,0x80)]===_0x4417ce(0x45f,_0x55f573._0x34d89f,_0x55f573._0x5c82df,_0x55f573._0x489844))throw new ToolExecutionError(_0x24084a(-0x1bf,-0xdd,-_0x55f573._0x18da42,-_0x55f573._0x39ba3e)+_0x4c0fa5,{'command':_0x1ccc25['command'],'cwd':_0x101caa,'shellPath':_0x4c0fa5});throw new ToolExecutionError(_0x247038 instanceof Error?_0x247038[_0x24084a(0x13,0xb2,-0xd7,-_0x55f573._0x5bcaed)]:String(_0x247038),{'command':_0x1ccc25['command'],'cwd':_0x101caa,'shellPath':_0x4c0fa5});}const _0x48fe3c=[],_0xdc34b8=[],_0x4da36c=new StringDecoder('utf8'),_0x3760db=new StringDecoder('utf8');let _0xc52800,_0x46e49f=![],_0xd85dd;const _0x2d3cb9=()=>{if(!_0xc52800)return;const _0x5e3cdb=_0xc52800;_0xc52800=void 0x0,_0x5e3cdb();},_0x5741e0=async()=>{if(_0xdc34b8[_0x2a45f7(0x25c,0x34b,0x150,0x169)]>0x0||_0x46e49f)return;function _0x2a45f7(_0x11f96f,_0xf263ac,_0x375f2f,_0x46ef99){return _0x4417ce(_0x11f96f-0x1ed,_0xf263ac,_0x375f2f-0x51,_0x11f96f- -0x1b1);}await new Promise(_0x16540b=>{_0xc52800=_0x16540b;});},_0x41ea29=_0xf0e22d=>{appendChunk(_0x48fe3c,_0xdc34b8,_0x4da36c['write'](_0xf0e22d),_0x2f982f,_0x2d3cb9);},_0x285a35=_0x1cc336=>{const _0x460be1={_0x2880b8:0x82};function _0x4adc5(_0x2b90b2,_0x46f9ce,_0x44347d,_0x297c59){return _0x4417ce(_0x2b90b2-0x93,_0x44347d,_0x44347d-0x17e,_0x297c59- -_0x460be1._0x2880b8);}appendChunk(_0x48fe3c,_0xdc34b8,_0x3760db[_0x4adc5(0x45f,_0x2d6883._0x3de823,0x41d,0x3f9)](_0x1cc336),_0x2f982f,_0x2d3cb9);};_0x2ceb50[_0x4417ce(0x488,0x52d,_0x55f573._0x277245,0x4d8)]?.['on'](_0x24084a(-0x191,-0x14a,-_0x55f573._0x1407dc,-0xf5),_0x41ea29),_0x2ceb50[_0x24084a(-0x49,-0x69,0x6e,-0x7d)]?.['on'](_0x4417ce(0x33f,0x429,_0x55f573._0x27b104,0x320),_0x285a35);let _0x547515=![];function _0x24084a(_0x1179eb,_0x21045c,_0x5a440b,_0x124101){return _0xfa8ad1(_0x1179eb-_0x552d2f._0x5cca9d,_0x1179eb- -0x5d8,_0x5a440b-_0x552d2f._0x25a0ac,_0x21045c);}let _0x3ad6bc;const _0x3a8449=addAbortListener(_0x5c1824[_0x24084a(-0xad,-0x14f,-_0x55f573._0x2621c2,-0x17d)],()=>{const _0x3d055d={_0x7834fb:0x26b};_0xd85dd=toAbortError(_0x5c1824[_0x581d96(_0x1248ff._0x179845,0x1e3,_0x1248ff._0x5da7f2,_0x1248ff._0x65a42a)][_0x201d08(-0x37d,-0x2e4,-0x378,-_0x1248ff._0x5cc7b7)]),_0x46e49f=!![];function _0x201d08(_0x57280a,_0x81d67a,_0x3352b0,_0x52c87f){return _0x4417ce(_0x57280a-_0x3da28f._0x2a5d28,_0x57280a,_0x3352b0-0x4e,_0x81d67a- -0x603);}_0x2d3cb9();function _0x581d96(_0xb505d0,_0x4f3a38,_0x353e18,_0x31d191){return _0x4417ce(_0xb505d0-0xbf,_0x4f3a38,_0x353e18-0x19d,_0x353e18- -_0x3d055d._0x7834fb);}try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}});try{const _0x59ec66=new Promise((_0x5ebd1f,_0x49d0cf)=>{const _0x3a8edb={_0x3d29a6:0x104,_0x121019:0x7e,_0x2fc46a:0x2d6},_0x4098cd={_0x5b4067:0x1d2,_0x891a1:0x69,_0xb63f5c:0x147,_0x301789:0x7e},_0x580319=()=>{_0x3ad6bc&&(clearTimeout(_0x3ad6bc),_0x3ad6bc=void 0x0);function _0x56cf37(_0x26f1ec,_0x4e01e9,_0x31df8f,_0x3a9f19){return _0x7ca6(_0x4e01e9-0x9e,_0x3a9f19);}_0x2ceb50[_0x56cf37(_0x2a7437._0x14c578,0x25d,0x173,0x348)](_0x130279(0x93,_0x2a7437._0x3f4f36,-0xd,-0x9e),_0x3e4ce6);function _0x130279(_0x4b215e,_0x432af9,_0x4e5b42,_0x5f1996){return _0x7ca6(_0x4e5b42- -0x2f5,_0x4b215e);}_0x2ceb50['off'](_0x56cf37(0x15b,0x274,_0x2a7437._0xaddd2c,_0x2a7437._0x31fe3b),_0x3755d0);},_0x3e4ce6=_0x47f38c=>{_0x46e49f=!![],_0x2d3cb9(),_0x580319(),_0x49d0cf(_0xd85dd??_0x47f38c);};function _0x58ea68(_0x367c3b,_0x343f23,_0x263167,_0x45a442){return _0x4417ce(_0x367c3b-0xef,_0x45a442,_0x263167-_0x589a92._0x1a130b,_0x367c3b- -_0x589a92._0x3c3cf6);}const _0x3755d0=(_0x217781,_0x8b0413)=>{const _0x5c3cf9={_0x561920:0x99},_0x4d61b8={_0xeb8003:0xbb};_0x547515=!![],appendChunk(_0x48fe3c,_0xdc34b8,_0x4da36c[_0x5b0518(0x2bc,0x169,_0x4098cd._0x5b4067,0x129)](),_0x2f982f,_0x2d3cb9);function _0x5b0518(_0xcadf25,_0x19e651,_0x483470,_0x245410){return _0x7ca6(_0x483470-_0x4d61b8._0xeb8003,_0xcadf25);}appendChunk(_0x48fe3c,_0xdc34b8,_0x3760db[_0x40361a(-_0x4098cd._0x891a1,_0x4098cd._0xb63f5c,-0x75,_0x4098cd._0x301789)](),_0x2f982f,_0x2d3cb9),_0x46e49f=!![],_0x2d3cb9();function _0x40361a(_0x25c349,_0x1c277f,_0x1b7664,_0x4220d0){return _0x7ca6(_0x4220d0- -_0x5c3cf9._0x561920,_0x1b7664);}_0x580319();if(_0xd85dd){_0x49d0cf(_0xd85dd);return;}_0x5ebd1f({'code':_0x217781,'signal':_0x8b0413});};_0x3ad6bc=setTimeout(()=>{function _0x33e621(_0x4ba1ee,_0x2c0416,_0x2878ff,_0x34b029){return _0x7ca6(_0x2c0416- -0x325,_0x4ba1ee);}_0x46e49f=!![];function _0x356a7b(_0x1b1a1c,_0x2b2c8e,_0x52fe73,_0x5179ec){return _0x7ca6(_0x1b1a1c-0x1a1,_0x5179ec);}_0x2d3cb9(),_0x580319();try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}_0x49d0cf(new ToolExecutionError(_0x33e621(-_0x3c5f9d._0x284400,-0x86,-_0x3c5f9d._0x2ef986,-0x94)+_0x30f2d7+_0x33e621(-0x1d,-_0x3c5f9d._0x728f5b,-_0x3c5f9d._0x48d8b9,-0x120),{'command':_0x1ccc25[_0x356a7b(_0x3c5f9d._0x4ab691,0x3f9,0x41a,_0x3c5f9d._0x271ac5)],'cwd':_0x101caa,'shellPath':_0x4c0fa5,'timeoutMs':_0x30f2d7,'timedOut':!![]}));},_0x30f2d7),_0x2ceb50[_0x34bbfd(0x45,0x142,_0x209537._0x49db40,_0x209537._0x3601cf)](_0x58ea68(_0x209537._0x1d6825,_0x209537._0x328813,_0x209537._0x461d52,_0x209537._0x94e2e3),_0x3e4ce6);function _0x34bbfd(_0x283664,_0x2d5f1f,_0x1e6f40,_0x6717cf){return _0x4417ce(_0x283664-_0x3a8edb._0x3d29a6,_0x2d5f1f,_0x1e6f40-_0x3a8edb._0x121019,_0x1e6f40- -_0x3a8edb._0x2fc46a);}_0x2ceb50['once'](_0x58ea68(_0x209537._0x22a714,0x26a,0x423,0x294),_0x3755d0);});while(_0xdc34b8[_0x24084a(-0xa4,-_0x55f573._0x4e8f99,-_0x55f573._0x2591c2,-_0x55f573._0x5a9791)]>0x0||!_0x46e49f){if(_0xdc34b8[_0x4417ce(0x4d1,_0x55f573._0x4461cc,0x507,0x40d)]===0x0){await _0x5741e0();continue;}const _0x44f0aa=_0xdc34b8[_0x4417ce(0x575,0x401,0x3d0,_0x55f573._0x58b8ac)]();_0x44f0aa!==void 0x0&&(yield _0x44f0aa);}const _0x51d932=await _0x59ec66,_0x6e73a1=_0x288ff7?_0x4417ce(_0x55f573._0x57658e,_0x55f573._0x18e90d,0x40a,_0x55f573._0x5bf446)+(_0x51d932[_0x24084a(_0x55f573._0x106eea,0x91,-_0x55f573._0x1c6ab6,-_0x55f573._0x4fe8c5)]??0x0):_0x48fe3c[_0x4417ce(_0x55f573._0x5052a3,_0x55f573._0xaea069,0x389,0x34f)](''),_0xa58e={'command':_0x1ccc25[_0x24084a(0x71,0xa0,-0x6,-_0x55f573._0x5ef989)],'cwd':_0x101caa,'exitCode':_0x51d932[_0x4417ce(0x3da,0x3fc,0x3fe,_0x55f573._0x5b6ead)]??0x0,'signal':_0x51d932[_0x24084a(-_0x55f573._0x316faa,-_0x55f573._0x532441,-0x1a2,-_0x55f573._0x17c5ee)],'ignoreOutput':_0x288ff7,'shellPath':_0x4c0fa5,'timeoutMs':_0x30f2d7};if(_0x51d932[_0x24084a(_0x55f573._0x1c6ceb,0x30,0x73,-0xcb)]!==0x0)throw new ToolExecutionError(_0x6e73a1||_0x24084a(-_0x55f573._0x2bea14,-0x8b,-_0x55f573._0x5213c3,-_0x55f573._0x463411)+(_0x51d932[_0x24084a(_0x55f573._0x1c6ceb,-_0x55f573._0x16234f,0x11,_0x55f573._0x277145)]??0x0),_0xa58e);return createToolOutput(_0x6e73a1,_0xa58e);}catch(_0x35205d){while(_0xdc34b8['length']>0x0){const _0x68d7bd=_0xdc34b8[_0x24084a(_0x55f573._0x3a988b,-0xc4,0x0,0xe1)]();_0x68d7bd!==void 0x0&&(yield _0x68d7bd);}if(_0x35205d instanceof ToolExecutionError)throw _0x35205d;if(_0xd85dd)throw _0xd85dd;if(isErrnoException(_0x35205d)&&_0x35205d[_0x24084a(0x51,-0x3d,0x118,0x96)]===_0x4417ce(_0x55f573._0x4ed92c,0x37f,_0x55f573._0x45d5b5,_0x55f573._0x2cb12e))throw new ToolExecutionError(_0x24084a(-_0x55f573._0x320c60,-_0x55f573._0x5e1942,-0x173,-0x20d)+_0x4c0fa5,{'command':_0x1ccc25[_0x4417ce(0x4bb,0x47f,_0x55f573._0x31d99f,0x522)],'cwd':_0x101caa,'shellPath':_0x4c0fa5});throw new ToolExecutionError(_0x35205d instanceof Error?_0x35205d[_0x4417ce(0x524,_0x55f573._0x4482e7,_0x55f573._0x3b8729,_0x55f573._0x759271)]:String(_0x35205d),{'command':_0x1ccc25[_0x24084a(_0x55f573._0x3f4231,0xcd,-0x18,-0xa)],'cwd':_0x101caa,'shellPath':_0x4c0fa5});}finally{_0x3ad6bc&&clearTimeout(_0x3ad6bc);_0x3a8449(),_0x2ceb50[_0x4417ce(_0x55f573._0x15b5ce,0x50d,0x542,0x4d8)]?.['off']('data',_0x41ea29),_0x2ceb50[_0x4417ce(_0x55f573._0x1bdf5e,0x3a6,0x40c,_0x55f573._0xcbec3a)]?.[_0x24084a(-0xd3,-0x10a,-_0x55f573._0x15212f,-_0x55f573._0x148937)](_0x4417ce(_0x55f573._0x44cc7b,_0x55f573._0x54558a,0x292,_0x55f573._0x30597d),_0x285a35);if(!_0x547515&&_0x2ceb50[_0x24084a(-0x186,-_0x55f573._0x4bf46f,-_0x55f573._0x228e21,-0x1f1)]&&!_0x2ceb50[_0x4417ce(0x4e6,0x293,0x3f9,_0x55f573._0x21bae2)])try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}}}});}function createShellExecTool(_0xea545c={}){return createBashTool(_0xea545c);}import{readdir,readFile as _0x25b50a}from'fs/promises';import{extname,join as _0x40af54}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x2c2125,join,relative as _0x2fdb30,resolve as _0x47b9ca}from'path';import{readdir as _0xca6ea1,readFile as _0x287108}from'fs/promises';import{join as _0x4546b9,relative as _0x229eb6,sep}from'path';import{delimiter}from'path';import{mkdir as _0x2e1abd,rm,stat as _0x2d8634,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0xa0cb3c}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4ea2af,rename,writeFile as _0x24d29a}from'fs/promises';import{homedir}from'os';import{dirname as _0x4beec0,isAbsolute as _0x520115,join as _0x4819a6,resolve as _0x5e4928}from'path';import{parse as _0x4a6239,stringify as _0x36e022}from'yaml';import{z}from'zod';import{cp,mkdir as _0x4b2c44,readFile as _0xf19864,rm as _0x21f3ee,writeFile as _0x1bbfed}from'fs/promises';import{homedir as _0x808d41}from'os';import{join as _0x364f7d}from'path';import{parse as _0x1ed70f,stringify as _0x1b1275}from'yaml';import{readdir as _0x3d7b74,readFile as _0x4f360e}from'fs/promises';import{join as _0x140150}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function _0x7ca6(_0xa63856,_0x1b1200){_0xa63856=_0xa63856-0xa4;const _0x275954=_0x2759();let _0x7ca6f9=_0x275954[_0xa63856];if(_0x7ca6['UitXLW']===undefined){var _0x18b287=function(_0x4b83e5){const _0x22a3e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49be13='',_0x90b96e='';for(let _0x21fab9=0x0,_0x2cc01b,_0x4f41e5,_0x5eec36=0x0;_0x4f41e5=_0x4b83e5['charAt'](_0x5eec36++);~_0x4f41e5&&(_0x2cc01b=_0x21fab9%0x4?_0x2cc01b*0x40+_0x4f41e5:_0x4f41e5,_0x21fab9++%0x4)?_0x49be13+=String['fromCharCode'](0xff&_0x2cc01b>>(-0x2*_0x21fab9&0x6)):0x0){_0x4f41e5=_0x22a3e4['indexOf'](_0x4f41e5);}for(let _0x57933c=0x0,_0x3ec891=_0x49be13['length'];_0x57933c<_0x3ec891;_0x57933c++){_0x90b96e+='%'+('00'+_0x49be13['charCodeAt'](_0x57933c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x90b96e);};_0x7ca6['pIboES']=_0x18b287,_0x7ca6['cNGFEP']={},_0x7ca6['UitXLW']=!![];}const _0x557557=_0x275954[0x0],_0xbda403=_0xa63856+_0x557557,_0x37d7db=_0x7ca6['cNGFEP'][_0xbda403];return!_0x37d7db?(_0x7ca6f9=_0x7ca6['pIboES'](_0x7ca6f9),_0x7ca6['cNGFEP'][_0xbda403]=_0x7ca6f9):_0x7ca6f9=_0x37d7db,_0x7ca6f9;}function tokenizeCommandArguments(_0x4bef11){const _0x4b3098={_0xbf7497:0x20,_0x2a0873:0x466,_0x16e265:0x4ca,_0x5d41e4:0xed,_0x90595a:0x115,_0xb9505f:0xe,_0x20c4c3:0x470,_0x304ad8:0x5b8},_0x1a1fc7={_0x5616e1:0x45a,_0x1e286d:0xe9},_0x3ef6b2={_0x288a42:0x1ea,_0x23f50f:0x5a};function _0x2086e9(_0x19fa75,_0x2e0acd,_0x23b117,_0x3f649b){return _0x22ef16(_0x23b117,_0x19fa75- -_0x3ef6b2._0x288a42,_0x23b117-_0x3ef6b2._0x23f50f,_0x3f649b-0xef);}function _0x27c5fd(_0x1bf140,_0x42df17,_0x25b032,_0x5a195d){return _0x324926(_0x25b032-_0x1a1fc7._0x5616e1,_0x42df17,_0x25b032-0x81,_0x5a195d-_0x1a1fc7._0x1e286d);}const _0x4257b2=[];let _0x2205b3='',_0x3bc553=0x0;while(_0x3bc553<_0x4bef11[_0x2086e9(_0x4b3098._0xbf7497,0x130,-0xd3,0xbb)]){const _0x2bd5a6=_0x4bef11[_0x3bc553];if(_0x2bd5a6==='\x5c'&&_0x3bc553+0x1<_0x4bef11[_0x27c5fd(0x3a4,0x357,0x466,0x3bf)])_0x2205b3+=_0x4bef11[_0x3bc553+0x1],_0x3bc553+=0x2;else{if(_0x2bd5a6==='\x22'||_0x2bd5a6==='\x27'){const _0x555620=_0x2bd5a6;_0x3bc553++;while(_0x3bc553<_0x4bef11[_0x27c5fd(0x4b5,0x543,_0x4b3098._0x2a0873,0x38f)]&&_0x4bef11[_0x3bc553]!==_0x555620){_0x4bef11[_0x3bc553]==='\x5c'&&_0x3bc553+0x1<_0x4bef11[_0x27c5fd(0x3e2,_0x4b3098._0x16e265,0x466,0x3b5)]?(_0x2205b3+=_0x4bef11[_0x3bc553+0x1],_0x3bc553+=0x2):(_0x2205b3+=_0x4bef11[_0x3bc553],_0x3bc553++);}_0x3bc553++;}else _0x2bd5a6!==void 0x0&&/\s/[_0x2086e9(-_0x4b3098._0x5d41e4,-0x1ce,-0x1c2,-_0x4b3098._0x90595a)](_0x2bd5a6)?(_0x2205b3&&(_0x4257b2[_0x2086e9(0xc0,-_0x4b3098._0xb9505f,0x18b,-0x53)](_0x2205b3),_0x2205b3=''),_0x3bc553++):(_0x2205b3+=_0x2bd5a6,_0x3bc553++);}}if(_0x2205b3)_0x4257b2[_0x27c5fd(0x4e1,_0x4b3098._0x20c4c3,0x506,_0x4b3098._0x304ad8)](_0x2205b3);return _0x4257b2;}function renderCommandInstructions(_0x46bf9f){const _0x25db0e={_0x48a3ac:0x255,_0x54e354:0x1b2,_0x3e613d:0x2cf,_0x49bbeb:0x3e0,_0x4bb051:0x36c,_0xf83436:0x328,_0xe88f45:0x4fd,_0x4bbc0e:0x4fe,_0xf62d0b:0x48b,_0x4ea2be:0x5e8,_0x12c5ca:0x1c2,_0x386e1a:0x25b,_0x500ecb:0x18f,_0x775e52:0x4d0,_0xf58123:0x23d,_0x3f81d1:0x319,_0x41c07b:0x20c,_0x298780:0x36a,_0x12331d:0x312,_0x26925d:0x3af,_0x381ab7:0x253},_0xa1d836={_0x596200:0x374},_0x5c960f={_0x2e063a:0x205,_0x4e6569:0x179},_0x356148={_0x58a697:0x244,_0x252c6d:0x20f,_0x654bcb:0x1d2};let _0x23bf0e=_0x46bf9f[_0x52c924(-_0x25db0e._0x48a3ac,-_0x25db0e._0x54e354,-_0x25db0e._0x3e613d,-_0x25db0e._0x49bbeb)],_0x4411c7=![];const _0x13661c=tokenizeCommandArguments(_0x46bf9f[_0x52c924(-0x37c,-_0x25db0e._0x4bb051,-_0x25db0e._0xf83436,-0x44d)]);_0x23bf0e=_0x23bf0e['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x1bdfd0,_0x5244f7)=>{return _0x4411c7=!![],_0x13661c[Number(_0x5244f7)]??'';}),_0x23bf0e=_0x23bf0e[_0x2799fc(_0x25db0e._0xe88f45,_0x25db0e._0x4bbc0e,_0x25db0e._0xf62d0b,0x46f)](/\$ARGUMENTS\b/g,()=>{const _0x7a9039={_0x1b23e3:0x1ba,_0x14ba54:0x156};function _0x1e8280(_0x209331,_0x230472,_0x43239d,_0x394c54){return _0x52c924(_0x209331-_0x7a9039._0x1b23e3,_0x230472-0x53,_0x394c54-_0x7a9039._0x14ba54,_0x230472);}return _0x4411c7=!![],_0x46bf9f[_0x1e8280(-_0x356148._0x58a697,-0x218,-_0x356148._0x252c6d,-_0x356148._0x654bcb)];});function _0x52c924(_0x2f12f7,_0x2dff60,_0xe75d50,_0x45d6c2){return _0x324926(_0xe75d50- -_0x5c960f._0x2e063a,_0x45d6c2,_0xe75d50-_0x5c960f._0x4e6569,_0x45d6c2-0x17);}if(_0x46bf9f[_0x2799fc(_0x25db0e._0x4ea2be,0x6b1,0x598,0x5fc)]&&_0x46bf9f[_0x52c924(-0x250,-0xda,-0x18f,-_0x25db0e._0x12c5ca)]['length']>0x0)for(let _0x1df128=0x0;_0x1df128<_0x46bf9f[_0x52c924(-_0x25db0e._0x386e1a,-0x1a5,-_0x25db0e._0x500ecb,-0x66)]['length'];_0x1df128++){const _0x479e3b=_0x46bf9f['argumentNames'][_0x1df128];if(_0x479e3b){const _0x497377=new RegExp('\x5c$'+_0x479e3b+'\x5cb','g');_0x23bf0e=_0x23bf0e['replace'](_0x497377,()=>{return _0x4411c7=!![],_0x13661c[_0x1df128]??'';});}}function _0x2799fc(_0x55923a,_0x460da6,_0x1a827e,_0x297e81){return _0x22ef16(_0x297e81,_0x55923a-_0xa1d836._0x596200,_0x1a827e-0xe9,_0x297e81-0x118);}return _0x23bf0e=_0x23bf0e[_0x2799fc(0x4fd,0x41b,0x57e,_0x25db0e._0x775e52)](/\$(\d+)\b/g,(_0x34ec26,_0x29362d)=>{return _0x4411c7=!![],_0x13661c[Number(_0x29362d)]??'';}),!_0x4411c7&&_0x46bf9f[_0x52c924(-0x229,-_0x25db0e._0xf58123,-0x328,-0x3f5)][_0x52c924(-_0x25db0e._0x3f81d1,-0x175,-_0x25db0e._0x41c07b,-0x17c)]()&&(_0x23bf0e=_0x23bf0e+_0x52c924(-_0x25db0e._0x298780,-0x41d,-0x30f,-0x257)+_0x46bf9f[_0x52c924(-_0x25db0e._0x12331d,-_0x25db0e._0x26925d,-_0x25db0e._0xf83436,-_0x25db0e._0x381ab7)]),_0x23bf0e;}var chatModelAuthSchemeSchema=z[_0x22ef16(0x258,0x179,0x18c,0x224)]([_0x22ef16(0x200,0x147,0x264,0x191),'x-api-key']),apiKeyAuthSchema=z[_0x324926(0x88,0xc0,0xfd,0xce)]({'type':z['literal'](_0x22ef16(0xfa,0x1ab,0x216,0x9f)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x22ef16(0x26a,0x1f5,0x307,0x304)]()})[_0x324926(0x0,-0x50,0x113,0x39)](),oauthAuthSchema=z[_0x324926(0x88,-0x3b,-0x34,0x4b)]({'type':z[_0x324926(-0x48,-0x12a,-0x15b,0x74)](_0x22ef16(0x251,0x29c,0x35c,0x256)),'access':z[_0x324926(0x8f,-0x6,0x14f,0x8e)](),'refresh':z[_0x22ef16(0x341,0x28d,0x172,0x247)](),'expires':z['number']()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x22ef16(0x101,0x1f5,0x252,0x2cd)]()})[_0x22ef16(0x309,0x1fe,0x1e1,0x174)](),authMethodSchema=z[_0x324926(0x60,0x101,0x12a,-0x5e)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x324926(0x88,0x11,-0x6e,0x89)]({'id':z[_0x324926(0x8f,0x178,0xbd,0x190)](),'name':z[_0x22ef16(0x3a6,0x28d,0x314,0x2e9)]()[_0x22ef16(0x321,0x1f5,0x203,0x16f)]()})[_0x22ef16(0x2cd,0x1fe,0x2f3,0x1cf)](),modelConfigSchema=z['union']([z[_0x22ef16(0x287,0x1b6,0x18b,0x22b)](![]),z[_0x22ef16(0x1c1,0x1b6,0x116,0xbb)](!![]),z['string'](),z[_0x324926(0x118,0x195,-0x10,0x1e9)](z['string']()),z[_0x324926(0x118,0xa3,0x111,0x151)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x22ef16(0xe3,0x179,0xd2,0x177)]([_0x324926(-0x99,-0x197,-0x186,-0x15b),'openai-chat-completions','openai-responses','openai-responses-ws']),providerConfigSchema=z['object']({'apiKey':z[_0x324926(0x8f,-0x4,-0x9d,0xd9)]()[_0x22ef16(0x1ab,0x1f5,0xd5,0x1be)](),'token':z[_0x324926(0x8f,-0x6,0x14c,0x1a3)]()[_0x22ef16(0x180,0x1f5,0x290,0x321)](),'defaultModel':z[_0x22ef16(0x1cb,0x28d,0x2a9,0x17f)]()[_0x22ef16(0x2db,0x1f5,0x266,0x256)](),'smallModel':z['string']()[_0x22ef16(0x22b,0x1f5,0x2af,0x201)](),'currentAuth':z[_0x22ef16(0x1a2,0x28d,0x267,0x1ab)]()['optional'](),'auth':z[_0x324926(0x118,0x15a,0x20f,0xc7)](authMethodSchema)[_0x22ef16(0xe2,0x1f5,0x209,0x155)](),'surface':chatModelSurfaceSchema[_0x22ef16(0x261,0x1f5,0x1be,0x20b)](),'baseUrl':z[_0x324926(0x8f,-0x41,0xf7,0x6a)]()[_0x22ef16(0x145,0x1f5,0x2f0,0x1c3)](),'models':modelConfigSchema[_0x22ef16(0x124,0x1f5,0x309,0xd1)](),'customHeaders':z[_0x22ef16(0x28b,0x302,0x419,0x1f5)](z['string'](),z[_0x324926(0x8f,0x199,0x194,0xba)]())[_0x324926(-0x9,0xc5,-0x57,0xaa)]()})[_0x22ef16(0x2f7,0x1fe,0x103,0x109)]();function _0x22ef16(_0x2fc1d7,_0x5e4ae2,_0xfab7a3,_0x3160eb){const _0x4acd76={_0x3ee272:0x1c};return _0x7ca6(_0x5e4ae2-_0x4acd76._0x3ee272,_0x2fc1d7);}function _0x324926(_0x143956,_0x2122a6,_0x2d606d,_0x26d6b9){const _0x153b01={_0x33ea06:0x1e2};return _0x7ca6(_0x143956- -_0x153b01._0x33ea06,_0x2122a6);}var mcpServerConfigSchema=z[_0x22ef16(0x25b,0x286,0x1bc,0x243)]({'command':z['string']()[_0x324926(-0x9,0x35,-0xc4,-0xc5)](),'args':z['array'](z[_0x22ef16(0x280,0x28d,0x2f7,0x362)]())['optional'](),'env':z[_0x22ef16(0x210,0x302,0x1d8,0x40d)](z[_0x324926(0x8f,0xa5,-0x94,0x63)](),z[_0x324926(0x8f,-0x2f,-0x57,0x1c)]())[_0x22ef16(0x1dc,0x1f5,0xfa,0x2c2)](),'transport':z[_0x22ef16(0x266,0x179,0x103,0x244)]([_0x324926(0xdc,0x176,0x28,-0x54),_0x324926(0x9d,0x65,0x151,0x4)])[_0x22ef16(0x248,0x1f5,0x29e,0x2a0)](),'url':z[_0x324926(0x8f,0x16f,0xa8,0x6a)]()[_0x22ef16(0x150,0x1f5,0x1b4,0x10d)](),'headers':z[_0x22ef16(0x422,0x302,0x379,0x3e2)](z[_0x22ef16(0x363,0x28d,0x274,0x30d)](),z[_0x22ef16(0x221,0x28d,0x2db,0x20c)]())['optional'](),'prefix':z[_0x324926(0x8f,0xde,0x114,-0x5)]()[_0x324926(-0x9,0xf6,0x2c,0x39)](),'timeoutMs':z[_0x324926(0x1,-0x88,0x75,-0x112)]()[_0x22ef16(0x298,0x1f5,0x241,0xed)](),'enabled':z[_0x22ef16(0x35e,0x231,0x29e,0x229)]()[_0x324926(-0x9,-0x82,0x37,0x61)](),'auth':z[_0x324926(0x88,0xe0,0xd7,0x189)]({'type':z[_0x324926(-0x85,0x1e,-0x7b,-0x16)](['none',_0x22ef16(0x39,0x147,0x23c,0x47),_0x22ef16(0x3a3,0x29c,0x198,0x173)]),'token':z[_0x324926(0x8f,0x84,0xc4,0x14e)]()[_0x22ef16(0x287,0x1f5,0x1ba,0x1c8)](),'oauth':z[_0x324926(0x88,0x8c,0x25,0x85)]({'clientId':z[_0x22ef16(0x1fc,0x28d,0x214,0x25d)]()[_0x324926(-0x9,0xbb,-0x10e,0x65)](),'clientMetadataUrl':z['string']()[_0x324926(-0x9,-0xb9,0x116,-0x6)](),'authorizationServer':z[_0x22ef16(0x1c1,0x28d,0x3a0,0x1d6)]()[_0x22ef16(0x167,0x1f5,0x1b8,0x1d6)](),'scopes':z[_0x22ef16(0x353,0x316,0x373,0x26d)](z[_0x22ef16(0x1ca,0x28d,0x395,0x34a)]())[_0x324926(-0x9,0x46,0x5a,0xc2)](),'tokenStorageKey':z[_0x22ef16(0x19e,0x28d,0x260,0x27e)]()[_0x324926(-0x9,0x7a,0xbf,0x2d)]()})[_0x324926(0x0,0x24,0x19,0x106)]()[_0x22ef16(0x1b2,0x1f5,0x20c,0x151)]()})[_0x22ef16(0x146,0x1fe,0x1f6,0x13a)]()[_0x22ef16(0x1bd,0x1f5,0x116,0x2d0)]()})[_0x324926(0x0,-0x12e,-0xdf,0x11c)](),mcpSettingsSchema=z[_0x22ef16(0x194,0x286,0x204,0x1c4)]({'servers':z[_0x22ef16(0x2fa,0x302,0x3de,0x263)](z[_0x22ef16(0x214,0x28d,0x198,0x19c)](),mcpServerConfigSchema)[_0x324926(-0x9,-0x69,-0x6d,-0x4a)](),'allowedTools':z[_0x22ef16(0x2f2,0x302,0x32f,0x27a)](z[_0x324926(0x8f,0x37,-0x9e,0x171)](),z['record'](z[_0x324926(0x8f,0x8d,0x137,-0x46)](),z['boolean']()))[_0x324926(-0x9,-0x55,-0xcc,-0x2b)](),'defaultTimeoutMs':z[_0x324926(0x1,0x106,0x11e,-0x12b)]()[_0x22ef16(0x2a9,0x1f5,0x2fe,0x2a2)]()})['passthrough'](),skillsSettingsSchema=z[_0x22ef16(0x362,0x286,0x384,0x18d)]({'enabled':z[_0x22ef16(0x25d,0x231,0x35a,0x20c)]()['optional'](),'includeDefaults':z['boolean']()[_0x22ef16(0x194,0x1f5,0xfe,0x141)](),'directories':z[_0x22ef16(0x239,0x316,0x262,0x26a)](z['string']())[_0x324926(-0x9,0xd,0x123,0xb3)](),'exclude':z['array'](z['string']())['optional']()})[_0x324926(0x0,0x15,-0xc8,0x8f)](),commandsSettingsSchema=z[_0x324926(0x88,0x180,-0x24,0x9e)]({'enabled':z['boolean']()[_0x22ef16(0x30d,0x1f5,0x19f,0x123)](),'directories':z[_0x324926(0x118,0x132,0x21f,0x1df)](z['string']())[_0x324926(-0x9,-0xdb,-0x108,-0x38)]()})[_0x324926(0x0,0x106,0x60,0x109)](),agentsSettingsSchema=z[_0x324926(0x88,-0x9a,0xa5,0xb3)]({'enabled':z[_0x22ef16(0x139,0x231,0x1fe,0x2c2)]()['optional'](),'includeDefaults':z[_0x324926(0x33,-0x56,0xad,0xd2)]()[_0x22ef16(0x1b0,0x1f5,0x2b0,0x2a3)](),'directories':z[_0x324926(0x118,0x76,0x13b,0xd1)](z[_0x324926(0x8f,-0x31,0x11,-0x1b)]())[_0x22ef16(0x242,0x1f5,0x270,0x2db)]()})[_0x324926(0x0,0x1b,-0x75,0xcb)](),uiThemeSettingsSchema=z[_0x22ef16(0x21c,0x286,0x288,0x31f)]({'mode':z[_0x324926(-0x85,-0x7d,-0x60,0x71)](['auto',_0x324926(-0x47,-0x114,-0x81,-0x134),_0x22ef16(0x39c,0x2ce,0x232,0x27a)])['optional'](),'colorLevel':z[_0x22ef16(0x206,0x179,0xe2,0x1d0)]([_0x324926(-0x12e,-0x92,-0xb2,-0x224),_0x22ef16(0x399,0x27e,0x22a,0x28c),_0x22ef16(0x1e7,0x112,0xb6,0x12a),_0x22ef16(0x28e,0x2b9,0x3af,0x219),'truecolor'])[_0x22ef16(0xcb,0x1f5,0x115,0x12a)](),'backgrounds':z[_0x22ef16(0x1ef,0x179,0xf5,0x1bd)]([_0x324926(-0x12e,-0x239,-0x1ce,-0xb7),'on',_0x22ef16(0x1d6,0x1db,0x12a,0x10f)])[_0x324926(-0x9,-0x88,-0x10a,-0x25)](),'messageStyle':z[_0x324926(-0x85,-0x13c,-0x130,-0x14e)]([_0x22ef16(0x2be,0x204,0x1d8,0x26e),_0x22ef16(0x237,0x1f9,0xfc,0x180)])['optional']()})['passthrough'](),statuslineSegmentSchema=z[_0x22ef16(0x79,0x179,0x28c,0x1f4)]([_0x324926(0xf3,0x72,0x15e,0x5b),_0x22ef16(0x289,0x2f7,0x24b,0x1ca),_0x22ef16(0x1a7,0x215,0xf4,0x293),'sudo',_0x324926(-0x11d,-0xde,-0x14d,-0x168),'context','cached',_0x22ef16(0x2a5,0x2e2,0x3d6,0x1b7),'tools',_0x22ef16(0x21c,0x1a0,0x29b,0x215),_0x22ef16(0x31d,0x2b6,0x24e,0x1ac),_0x22ef16(0x2d5,0x275,0x187,0x31f),_0x324926(0x86,0x158,0x0,0x154),_0x22ef16(0x34a,0x2db,0x3bc,0x2b3),_0x324926(-0x50,0x5a,-0x11d,0x6d)]),statuslineItemSchema=z[_0x324926(0x60,-0x76,-0x8a,-0x54)]([statuslineSegmentSchema,z[_0x324926(-0x48,0x4c,0x58,-0x54)]('|')]),statuslineRowSchema=z[_0x22ef16(0x3fd,0x316,0x3a5,0x28f)](statuslineItemSchema),statuslineConfigSchema=z[_0x22ef16(0x1ca,0x286,0x394,0x1ec)]({'rows':z[_0x324926(0x7f,0xdc,-0x29,0x55)]([statuslineRowSchema,statuslineRowSchema])[_0x22ef16(0x1f8,0x1f5,0x194,0x1ea)]()})[_0x324926(0x0,-0x10b,-0xde,-0x10f)](),memorySettingsSchema=z[_0x22ef16(0x38e,0x286,0x192,0x30e)]({'version':z['literal'](0x2)[_0x22ef16(0x312,0x1f5,0x2df,0x2ad)](),'retrieval':z[_0x324926(0x88,0x103,0x50,0x18d)]({'engine':z[_0x22ef16(0xb0,0x1b6,0x2b8,0x1aa)](_0x324926(0xfd,0x178,0xcb,0x36))[_0x324926(-0x9,0x126,-0x9f,0x59)](),'candidateLimit':z[_0x22ef16(0x11b,0x1ff,0x1c5,0xf1)]()[_0x22ef16(0x2ef,0x1f5,0x2a6,0x2f6)](),'activeCandidateLimit':z[_0x22ef16(0x18b,0x1ff,0x24f,0x1cc)]()[_0x22ef16(0x1b9,0x1f5,0x156,0x12a)](),'activeEnabled':z[_0x324926(0x33,0x5c,0xe5,0x9d)]()[_0x324926(-0x9,-0x11e,0x11f,-0x99)](),'maxQueriesPerTurn':z['number']()[_0x22ef16(0xd5,0x1f5,0x266,0x324)](),'coreInjectTokenBudget':z[_0x324926(0x1,-0x1b,0x83,-0x51)]()[_0x324926(-0x9,-0x75,-0x31,-0x6b)](),'injectTokenBudget':z[_0x22ef16(0x2a5,0x1ff,0x2c2,0x1c7)]()[_0x22ef16(0x2d8,0x1f5,0x113,0x236)](),'minScore':z['number']()[_0x22ef16(0x22d,0x1f5,0x2c2,0x1a1)](),'freshnessHalfLifeDays':z[_0x22ef16(0x1d8,0x1ff,0x297,0x130)]()[_0x22ef16(0xf8,0x1f5,0x2f8,0x1b4)]()})['passthrough']()[_0x22ef16(0x310,0x1f5,0x1ce,0x263)](),'extraction':z[_0x324926(0x88,0xb4,0x17a,-0x60)]({'enabled':z['boolean']()[_0x324926(-0x9,-0x5,0x115,-0xbf)](),'provider':z[_0x22ef16(0x19b,0x28d,0x235,0x1e8)]()[_0x22ef16(0x19e,0x1f5,0x27b,0x225)](),'model':z[_0x324926(0x8f,0xe8,0x19f,0xa9)]()[_0x22ef16(0x2f9,0x1f5,0xe4,0x1e9)](),'sensitiveFilter':z['boolean']()[_0x324926(-0x9,-0xe9,-0x102,0x47)]()})[_0x324926(0x0,0xce,-0x94,-0x80)]()[_0x324926(-0x9,0x20,0xec,0x6c)](),'index':z['object']({'persisted':z[_0x22ef16(0x206,0x231,0x311,0x229)]()[_0x22ef16(0x24d,0x1f5,0x110,0x266)](),'flushIntervalMs':z[_0x22ef16(0x307,0x1ff,0x28f,0x27c)]()[_0x324926(-0x9,-0x24,0x33,-0x12a)]()})[_0x22ef16(0x1f9,0x1fe,0x234,0x1f4)]()[_0x22ef16(0x2a0,0x1f5,0x1ac,0x1eb)](),'enabled':z['boolean']()[_0x22ef16(0x289,0x1f5,0x1e9,0x2ec)](),'saveTool':z[_0x324926(0x33,-0x20,-0x75,0x148)]()[_0x324926(-0x9,0xfc,-0x8f,0x12)](),'model':z[_0x22ef16(0x266,0x28d,0x174,0x2df)]()[_0x22ef16(0x200,0x1f5,0x2c1,0x31b)](),'provider':z[_0x324926(0x8f,-0x8e,0x166,0x19a)]()[_0x324926(-0x9,-0xd7,-0x11d,0x2a)](),'maxInjectionTokens':z['number']()[_0x22ef16(0x191,0x1f5,0x1e6,0x1f0)](),'backgroundExtraction':z[_0x324926(0x33,-0xa,0x6f,-0x37)]()[_0x22ef16(0x111,0x1f5,0x295,0x2d5)]()})[_0x324926(0x0,0xdd,-0x7e,0xfa)](),recentModelSchema=z['object']({'provider':z['string'](),'model':z[_0x324926(0x8f,0x143,-0x10,0x184)](),'usedAt':z['number']()})[_0x22ef16(0x16f,0x1fe,0x313,0x213)](),lspServerEntrySchema=z[_0x324926(0x88,-0x4e,0x99,0xef)]({'disabled':z['boolean']()['optional'](),'command':z[_0x22ef16(0x193,0x28d,0x38a,0x3b2)]()[_0x22ef16(0x265,0x1f5,0x270,0x1f1)](),'args':z[_0x22ef16(0x1e6,0x316,0x29c,0x3fd)](z['string']())['optional'](),'rootMarkers':z[_0x22ef16(0x383,0x316,0x202,0x24e)](z[_0x324926(0x8f,0xc4,0xe6,-0x84)]())['optional']()})[_0x22ef16(0x224,0x1fe,0x227,0x2c9)](),lspConfigSchema=z[_0x22ef16(0x33a,0x286,0x317,0x198)]({'enabled':z[_0x324926(0x33,0x127,0x16,-0x49)]()['optional'](),'servers':z[_0x324926(0x104,0x4,0x103,0x11c)](z[_0x324926(0x8f,-0x53,0xf5,0x8b)](),lspServerEntrySchema)[_0x324926(-0x9,0x100,0x57,-0x1e)]()})[_0x324926(0x0,-0x17,0xcf,-0x12e)](),cliConfigSchema=z[_0x22ef16(0x2b0,0x286,0x37b,0x184)]({'activeProvider':z['string']()[_0x324926(-0x9,-0xf9,-0xe2,0x11)](),'activeModel':z['string']()['optional'](),'apiKey':z[_0x22ef16(0x22d,0x28d,0x225,0x16e)]()[_0x22ef16(0x2ee,0x1f5,0xf6,0x1f7)](),'providers':z[_0x22ef16(0x3a1,0x302,0x370,0x2c6)](z[_0x22ef16(0x1f6,0x28d,0x342,0x2ef)](),providerConfigSchema)[_0x22ef16(0x139,0x1f5,0x171,0x1b4)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x324926(-0x9,0xc7,-0xcc,0xe0)](),'agents':agentsSettingsSchema['optional'](),'commands':commandsSettingsSchema[_0x324926(-0x9,0xad,0x2e,0x92)](),'skillsEnabled':z[_0x324926(0x104,0x1b9,0xbf,0x1c1)](z[_0x324926(0x8f,0x95,0x48,0xbb)](),z[_0x324926(0x33,-0xd6,0x54,0xc1)]())[_0x324926(-0x9,0x11a,-0x57,0x10f)](),'memory':memorySettingsSchema[_0x324926(-0x9,-0xd0,-0x7f,0x6c)](),'session':z[_0x324926(0x88,0xf1,0x1ab,0x130)]({'memPersist':z[_0x22ef16(0x1d4,0x231,0x1cc,0x292)]()[_0x324926(-0x9,-0x30,0xce,-0x4d)](),'persistEventLog':z[_0x22ef16(0x143,0x231,0x250,0x197)]()[_0x324926(-0x9,0xa7,0xa9,0x10d)](),'persistHttpLog':z[_0x22ef16(0x142,0x231,0x1f3,0x2c7)]()[_0x22ef16(0x2c5,0x1f5,0x2da,0x153)]()})[_0x22ef16(0x213,0x1fe,0x1f3,0x1cc)]()[_0x324926(-0x9,0xbe,0x71,0xa4)](),'requireToolApproval':z[_0x22ef16(0x21c,0x231,0x174,0x2dd)]()[_0x22ef16(0x28e,0x1f5,0x23a,0x101)](),'thinking':z[_0x324926(-0x85,-0x54,0xab,-0xb9)]([_0x22ef16(0x2b9,0x242,0x225,0x346),'LOW','MEDIUM',_0x324926(-0x46,-0x14c,0x3f,0x45)])['optional'](),'streamingChunks':z[_0x324926(0x33,0x95,-0xd1,-0x93)]()[_0x22ef16(0x172,0x1f5,0xda,0x27b)](),'agentsEnabled':z[_0x324926(0x104,0xad,0x60,0x1e7)](z[_0x22ef16(0x1e8,0x28d,0x1d5,0x1c5)](),z[_0x324926(0x33,0x35,-0xe4,0x7b)]())[_0x324926(-0x9,-0xe8,0x106,-0x2c)](),'recentModels':z['array'](recentModelSchema)['optional'](),'lsp':lspConfigSchema['optional'](),'ui':z[_0x22ef16(0x27e,0x286,0x23b,0x3a8)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x22ef16(0x303,0x1f5,0x24e,0x2b6)]()})[_0x324926(0x0,0x33,0xf7,0x76)]()[_0x324926(-0x9,-0xa5,-0xee,0x18)](),'tools':z[_0x22ef16(0x406,0x302,0x36a,0x2b7)](z[_0x22ef16(0x34d,0x28d,0x286,0x22f)](),z[_0x324926(0x9f,0xf6,0xfa,0x143)]())[_0x324926(-0x9,0x58,0xfb,0x6c)]()})['passthrough']();function buildDescription(_0x15448b){const _0x184a29={_0x2318af:0xfb,_0x53773c:0x30d,_0x3fded3:0x2a8,_0x26beee:0x325,_0x1da59e:0x123,_0x1c01be:0x81,_0x17f09c:0x6,_0x131109:0x249,_0x49ca15:0x1bb,_0x5a0cdb:0x23d,_0x28aae4:0x13d,_0x3c1cd9:0x1b9,_0x3a850d:0x3c6,_0x56b362:0xcf,_0x2c098f:0x2e,_0x47d2d6:0x3e9,_0x3d3f62:0x4bb,_0x4614e6:0x469},_0x3a23cb={_0x50fa8f:0xd5};if(_0x15448b[_0x4c50fa(-0x17e,-0xea,-0x83,-_0x184a29._0x2318af)]===0x0)return[_0x67348(_0x184a29._0x53773c,_0x184a29._0x3fded3,0x41f,_0x184a29._0x26beee),_0x4c50fa(-_0x184a29._0x1da59e,-_0x184a29._0x1c01be,-0x7b,_0x184a29._0x17f09c),_0x4c50fa(-_0x184a29._0x131109,-_0x184a29._0x49ca15,-_0x184a29._0x5a0cdb,-0x18a)][_0x4c50fa(-0x1d2,-_0x184a29._0x28aae4,-0x21b,-_0x184a29._0x3c1cd9)]('\x0a');function _0x67348(_0x253216,_0x4de4d6,_0x1b1831,_0x141b08){return _0x22ef16(_0x4de4d6,_0x253216-0x152,_0x1b1831-0x124,_0x141b08-0x12);}function _0x4c50fa(_0x5dc288,_0x42022f,_0x4c5898,_0x16b2a8){return _0x22ef16(_0x42022f,_0x16b2a8- -0x305,_0x4c5898-0xe9,_0x16b2a8-_0x3a23cb._0x50fa8f);}const _0x1f8a26=[_0x67348(_0x184a29._0x53773c,_0x184a29._0x3a850d,0x412,0x357),_0x4c50fa(-0x11f,-_0x184a29._0x56b362,-_0x184a29._0x2c098f,0x6),_0x67348(0x3b4,_0x184a29._0x47d2d6,_0x184a29._0x3d3f62,_0x184a29._0x4614e6),..._0x15448b['map'](_0x94c6f9=>_0x94c6f9[_0x4c50fa(-0x6e,-0x25f,-0x116,-0x181)]?'-\x20'+_0x94c6f9[_0x4c50fa(-0xf2,-0x240,-0x27f,-0x18e)]+'\x20'+_0x94c6f9['argumentHint']+':\x20'+_0x94c6f9[_0x67348(0x259,0x2da,0x2c3,0x18b)]:'-\x20'+_0x94c6f9[_0x67348(0x2c9,0x373,0x3b9,0x38e)]+':\x20'+_0x94c6f9['description'])];return _0x1f8a26['join']('\x0a');}function createInvokeCommandTool(_0x29bb9f){const _0x392d4c={_0x286ac2:0x494,_0x29b0b1:0x396,_0x2ca58d:0x41e,_0x3b9206:0x483,_0x52b084:0x4b9,_0x26e341:0xdf,_0x1394b3:0x7e,_0x466103:0x28b,_0x200a66:0x2f0,_0x55e157:0x557,_0x55232f:0x46e,_0x799d32:0x47b,_0x2dafa4:0x521,_0x315f29:0x5a8,_0x22681a:0x482},_0x2ba14d={_0x131a93:0xf1,_0x15e3c3:0x45,_0x2177ac:0x184,_0x1eab8b:0x266,_0x4f8cba:0x22e,_0x525c78:0x27c,_0x577a60:0x2ad,_0x1aa981:0x290,_0xcaebf1:0xb9,_0x5320d7:0x2a4,_0x17fedc:0x1f9,_0x526531:0x149,_0x4ce039:0x251,_0x1f49ce:0x316,_0x3c26ac:0x160,_0x59c793:0x18d,_0x3b7088:0x259,_0xa59d2b:0x91,_0x239b3b:0x17d,_0x400ea0:0x1ff,_0x4b5501:0x1e9,_0x52a293:0x261,_0xa64d96:0xaa,_0x572359:0x134},_0x4c629b={_0x470e52:0x1c},_0x3e2471={_0x452e84:0x221,_0x3581a4:0xea,_0x15641b:0x1e6},_0x1c8cd0={_0x1a996e:0x1c0,_0x148ef1:0x16e};function _0x2965fc(_0x3a6766,_0x19fd3c,_0x7b2732,_0x5ae5b2){return _0x324926(_0x5ae5b2-0x3f3,_0x7b2732,_0x7b2732-_0x1c8cd0._0x1a996e,_0x5ae5b2-_0x1c8cd0._0x148ef1);}function _0x4e705f(_0x3dc390,_0x32a556,_0x4d0a0f,_0x58ca8e){return _0x22ef16(_0x32a556,_0x4d0a0f- -_0x3e2471._0x452e84,_0x4d0a0f-_0x3e2471._0x3581a4,_0x58ca8e-_0x3e2471._0x15641b);}const _0x3bb47f=new Map(_0x29bb9f[_0x2965fc(0x53e,0x408,0x523,_0x392d4c._0x286ac2)][_0x2965fc(_0x392d4c._0x29b0b1,_0x392d4c._0x2ca58d,_0x392d4c._0x3b9206,_0x392d4c._0x52b084)](_0x3517f8=>[_0x3517f8['id'],_0x3517f8])),_0x38538b=buildDescription(_0x29bb9f[_0x4e705f(0xea,_0x392d4c._0x26e341,_0x392d4c._0x1394b3,0x181)]);return defineTool({'name':_0x2965fc(0x1e6,_0x392d4c._0x466103,0x3fa,_0x392d4c._0x200a66),'description':_0x38538b,'inputSchema':{'type':_0x2965fc(_0x392d4c._0x55e157,_0x392d4c._0x55232f,0x4c3,_0x392d4c._0x799d32),'properties':{'name':{'type':_0x4e705f(0x0,0xe7,0x6c,0x186)},'args':{'type':_0x2965fc(_0x392d4c._0x2dafa4,_0x392d4c._0x315f29,0x3d8,_0x392d4c._0x22681a)}},'required':['name']},async *'execute'(_0x3a99b2){const _0x46fabc=_0x3bb47f['get'](_0x3a99b2[_0x4e5679(_0x2ba14d._0x131a93,0x16c,_0x2ba14d._0x15e3c3,_0x2ba14d._0x2177ac)]);if(!_0x46fabc){const _0x44a1a6=Array[_0x4e5679(_0x2ba14d._0x1eab8b,_0x2ba14d._0x4f8cba,_0x2ba14d._0x525c78,_0x2ba14d._0x577a60)](_0x3bb47f[_0x3b3dd2(-0x151,-_0x2ba14d._0x1aa981,-0x1d7,-0x144)]())[_0x4e5679(0xc6,_0x2ba14d._0xcaebf1,0x1d2,0x1f0)](',\x20');throw new ToolExecutionError(_0x3b3dd2(-0x233,-0x257,-_0x2ba14d._0x5320d7,-_0x2ba14d._0x17fedc)+_0x3a99b2[_0x4e5679(_0x2ba14d._0x131a93,0x120,_0x2ba14d._0x526531,0x155)]+_0x4e5679(0x21a,0x1ae,0x198,_0x2ba14d._0x4ce039)+_0x44a1a6,{'name':_0x3a99b2[_0x3b3dd2(-0x14c,-_0x2ba14d._0x1f49ce,-0x204,-0x1d6)]});}function _0x3b3dd2(_0x49b91b,_0x1566da,_0x5c1c44,_0x2bcab3){return _0x2965fc(_0x49b91b-0x14b,_0x1566da-0x8e,_0x2bcab3,_0x5c1c44- -0x570);}const _0x29b268=await _0x29bb9f[_0x3b3dd2(-_0x2ba14d._0x3c26ac,-_0x2ba14d._0x59c793,-_0x2ba14d._0x3b7088,-0x252)](_0x46fabc),_0x5aef0d=_0x3a99b2[_0x4e5679(_0x2ba14d._0xa59d2b,0x2c,0x131,_0x2ba14d._0x239b3b)]??'',_0x1b56e9=renderCommandInstructions({'instructions':_0x29b268['instructions'],'argumentsText':_0x5aef0d,'argumentNames':_0x29b268[_0x4e5679(_0x2ba14d._0x400ea0,_0x2ba14d._0x4b5501,_0x2ba14d._0x52a293,0x24c)]});function _0x4e5679(_0x3a110e,_0x4c7623,_0x13abd7,_0x2e829d){return _0x2965fc(_0x3a110e-_0x4c629b._0x470e52,_0x4c7623-0x12,_0x2e829d,_0x3a110e- -0x27b);}return yield createToolOutput(_0x1b56e9,{'id':_0x29b268['id'],'name':_0x29b268[_0x3b3dd2(-0x2a3,-0x13c,-0x204,-0x16b)],'path':_0x46fabc['source'][_0x3b3dd2(-0x28,-0x7d,-_0x2ba14d._0xa64d96,-_0x2ba14d._0x572359)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x17d928,rename as _0x18cece,stat as _0x5008d2,writeFile as _0x490e93}from'fs/promises';import*as _0x395bf5 from'path';function detectEol(_0x474f4a){const _0x12c9a5={_0x55a91e:0x413,_0xf1f534:0x355,_0x279479:0x447,_0x4533ae:0x420},_0x322b45={_0x2d2564:0x1d5},_0x1de415={_0x4834f4:0xe0};function _0x4d358a(_0xe34349,_0x4ec9d9,_0x70aed7,_0x5dc130){return _0x22ef16(_0x4ec9d9,_0x70aed7-0x244,_0x70aed7-0x143,_0x5dc130-_0x1de415._0x4834f4);}function _0x5e5a74(_0x2d579b,_0x55f7b5,_0xd33b63,_0x36c3b6){return _0x324926(_0x55f7b5-0x4e0,_0xd33b63,_0xd33b63-0xcc,_0x36c3b6-_0x322b45._0x2d2564);}return/\r\n/['test'](_0x474f4a['toString'](_0x4d358a(0x3c0,0x2f0,_0x12c9a5._0x55a91e,_0x12c9a5._0xf1f534)))?_0x5e5a74(_0x12c9a5._0x279479,_0x12c9a5._0x4533ae,0x344,0x3fe):'lf';}function normalizeToLf(_0xff9c32){return _0xff9c32['replace'](/\r\n/g,'\x0a');}function convertEol(_0x1d6cb8,_0x401463){const _0x54672c={_0x257b73:0x218,_0x257d6e:0x132,_0x5a1201:0x257},_0x5eee71={_0x2924e0:0x11a};function _0x3c5fe6(_0x3d92af,_0x23c2de,_0x3dc54e,_0x185f99){return _0x324926(_0x185f99- -0x1be,_0x3dc54e,_0x3dc54e-_0x5eee71._0x2924e0,_0x185f99-0x156);}return _0x401463==='crlf'?_0x1d6cb8[_0x3c5fe6(-_0x54672c._0x257b73,-_0x54672c._0x257d6e,-_0x54672c._0x5a1201,-0x233)](/\n/g,'\x0d\x0a'):_0x1d6cb8;}async function atomicWrite(_0x53d64a,_0x117aca){const _0x7bc75d={_0x2d2cbd:0x1d4,_0x45aaa6:0xef,_0x284b65:0x1ca,_0x1dc738:0x10c,_0xc45260:0x130,_0x38f9be:0xfb,_0x2964c8:0xfa,_0xe1cbcc:0xac,_0x2ca343:0xd4,_0x1310dc:0xc1,_0x5c809d:0x6e,_0x1d20e8:0x9c,_0x2a96d6:0xf},_0x5b5601={_0x4bf09b:0x43},_0x3a041e={_0x33bfc2:0x14c};function _0x4720a9(_0x3b6177,_0x3004f2,_0xff64bb,_0x38daf1){return _0x22ef16(_0x3b6177,_0x38daf1- -0x40,_0xff64bb-_0x3a041e._0x33bfc2,_0x38daf1-0x97);}const _0x24d328=_0x395bf5[_0x4720a9(0x196,0x55,_0x7bc75d._0x2d2cbd,_0x7bc75d._0x45aaa6)](_0x53d64a),_0x2b5a06=_0x395bf5[_0x4720a9(0x1aa,_0x7bc75d._0x284b65,0x17d,_0x7bc75d._0x1dc738)](_0x24d328,_0x4720a9(0x249,0x1fd,_0x7bc75d._0xc45260,0x129)+_0x395bf5['basename'](_0x53d64a)+'.'+Date[_0x4720a9(_0x7bc75d._0x38f9be,0x2ee,0x2ce,0x1de)]()+'.'+Math[_0x4720a9(_0x7bc75d._0x2964c8,_0x7bc75d._0xe1cbcc,0x76,_0x7bc75d._0x2ca343)]()[_0x5a5108(-0x5a,-_0x7bc75d._0x1310dc,_0x7bc75d._0x5c809d,-0x1d8)](0x24)[_0x5a5108(_0x7bc75d._0x1d20e8,0xb2,-_0x7bc75d._0x2a96d6,0x10b)](0x2));await _0x490e93(_0x2b5a06,_0x117aca);function _0x5a5108(_0x5255f9,_0x119c41,_0x558bfd,_0x19cfaf){return _0x324926(_0x119c41- -_0x5b5601._0x4bf09b,_0x558bfd,_0x558bfd-0xed,_0x19cfaf-0x18c);}await _0x18cece(_0x2b5a06,_0x53d64a);}function sha256(_0x48fa4f){const _0x279711={_0x801f4b:0x98,_0xeba7a5:0xae,_0x3161df:0x100,_0x1ad279:0x2ed,_0x9f747f:0x1ff,_0x5cc4a1:0x20b,_0x3d8f35:0x298,_0x6128e1:0x407,_0x251344:0x31d},_0x18f840={_0x2e5202:0x7},_0xf9da3e={_0xa59812:0x115,_0x511429:0x170};function _0x503c64(_0x2c96aa,_0x405d60,_0x5ae263,_0x590a84){return _0x324926(_0x405d60- -0x8a,_0x590a84,_0x5ae263-_0xf9da3e._0xa59812,_0x590a84-_0xf9da3e._0x511429);}function _0x1443fb(_0xae6e51,_0x48e8ef,_0x776f7,_0x1f3e4e){return _0x22ef16(_0x776f7,_0x1f3e4e- -0x3f3,_0x776f7-0xbd,_0x1f3e4e-_0x18f840._0x2e5202);}return createHash(_0x503c64(-_0x279711._0x801f4b,-_0x279711._0xeba7a5,-0x1bb,-_0x279711._0x3161df))[_0x1443fb(-0x1c1,-_0x279711._0x1ad279,-0xf3,-_0x279711._0x9f747f)](_0x48fa4f)[_0x1443fb(-_0x279711._0x5cc4a1,-_0x279711._0x3d8f35,-0x28a,-0x19b)](_0x1443fb(-0x290,-0x3c4,-_0x279711._0x6128e1,-_0x279711._0x251344));}function countLines(_0x522998){const _0x18f56c={_0x1ceeef:0x28a,_0x2e2734:0x34a,_0x45db06:0x468,_0x561468:0x3cb,_0x433616:0x3f1,_0x1ec85d:0x385},_0x187047={_0x481481:0x1c1,_0x5b4817:0x3d},_0x47bc02={_0x4db175:0x25e};function _0x4f675f(_0x4a4564,_0x55b53e,_0x5abfb0,_0x600d9d){return _0x22ef16(_0x5abfb0,_0x4a4564-_0x47bc02._0x4db175,_0x5abfb0-0x10b,_0x600d9d-0x1a8);}function _0x13978f(_0x5db7cf,_0x7b0eab,_0x43948d,_0x40b9b9){return _0x22ef16(_0x5db7cf,_0x40b9b9-_0x187047._0x481481,_0x43948d-0x83,_0x40b9b9-_0x187047._0x5b4817);}const _0x213c65=_0x522998[_0x13978f(_0x18f56c._0x1ceeef,0x378,0x34e,_0x18f56c._0x2e2734)](/\n$/,'');return _0x213c65[_0x4f675f(_0x18f56c._0x45db06,_0x18f56c._0x561468,0x4ea,0x483)]===0x0?0x0:_0x213c65['split']('\x0a')[_0x13978f(0x4f0,_0x18f56c._0x433616,_0x18f56c._0x1ec85d,0x3cb)];}function calculateLineNumbers(_0x5b1b7f,_0x32f0ee,_0x2a716c,_0x20c1c6){const _0x4f2c25={_0x2bfc53:0x65f,_0x26547f:0x73f},_0x2c13d9={_0x1f538a:0xd6,_0x128a0a:0x5},_0x4fad74={_0x225841:0x253,_0x4cd7aa:0x74},_0x2af5b6=_0x5b1b7f[_0x4f8cd2(_0x4f2c25._0x2bfc53,0x6a1,0x727,_0x4f2c25._0x26547f)](0x0,_0x20c1c6)['split']('\x0a')[_0x4f8cd2(0x6ab,0x5b8,0x5be,0x594)],_0x48a0e7=countLines(_0x32f0ee),_0x12b30a=countLines(_0x2a716c);function _0x399871(_0x3cf385,_0x4c756c,_0x5d942f,_0x4d08ff){return _0x324926(_0x5d942f-_0x4fad74._0x225841,_0x4c756c,_0x5d942f-0x1e5,_0x4d08ff-_0x4fad74._0x4cd7aa);}function _0x4f8cd2(_0x476f56,_0x4bf241,_0x58b123,_0x18373c){return _0x324926(_0x4bf241-0x5ac,_0x58b123,_0x58b123-_0x2c13d9._0x1f538a,_0x18373c-_0x2c13d9._0x128a0a);}return{'oldStartLine':_0x2af5b6,'oldEndLine':_0x2af5b6+_0x48a0e7-0x1,'newStartLine':_0x2af5b6,'newEndLine':_0x2af5b6+_0x12b30a-0x1,'oldLineCount':_0x48a0e7,'newLineCount':_0x12b30a};}function createFileEditTool(_0x2e5e1f={}){const _0x9ce9bd={_0xa6efaa:0x27e,_0x6f2463:0x214,_0x152684:0x2c7,_0x3717c4:0x1fb,_0x3272d3:0x13b,_0x48a7dd:0x78,_0x589d6b:0x8f,_0x2b5d1a:0x112,_0x23646e:0x101,_0x364991:0x146,_0x1887ab:0xbc,_0xb323ca:0xad,_0x1199b3:0x152,_0xa72600:0x23b,_0x35f889:0x20a,_0x5689f4:0xe2,_0x2e4125:0x1ce,_0x16adae:0x1ca,_0x49c7c1:0x2f1,_0x41e0c:0x228,_0x121d61:0x2ba,_0x38dde1:0x19f,_0x20c327:0x25e,_0x385191:0xdd},_0x20e6b2={_0xdccd51:0xb1,_0x4c391c:0x16f,_0x4da086:0x198,_0x344deb:0x50a,_0x461062:0x1c5,_0x28b228:0x750,_0x5b1264:0x682,_0x11d595:0x6c3,_0x4ec6e2:0x5fd,_0x2a77a7:0x6b5,_0x18f03d:0x589,_0x45a186:0x6f3,_0x131751:0x4c9,_0x511265:0x54b,_0x372d13:0x672,_0x715858:0xce,_0x101889:0x193,_0x3ffd13:0x171,_0x485d9e:0x523,_0x4b2839:0x5cc,_0x3b4556:0x28c,_0x1bd020:0x236,_0x223e0f:0xc0,_0x162de3:0x1df,_0x1a7ff7:0x37,_0x3c7359:0x1d7,_0x4ca658:0x8a,_0x585137:0x4f,_0x3fccb4:0x7dc,_0x53068a:0x6ae,_0x31a741:0x5fe,_0x2f0aa7:0x6ac,_0x3811fa:0x58c,_0x3f9de6:0x626,_0x5e729b:0x1ae,_0x2d4b31:0x1b1,_0x4aa422:0x1ca,_0x332689:0x4ae,_0x2f6d4e:0x593,_0x40ffa9:0x4a9,_0x140591:0x19d,_0x574a97:0x2c9,_0x4e8c6a:0x262,_0x4315f7:0x1bf,_0x226476:0x10b,_0x47dce6:0xdf,_0x4691d7:0x81,_0x553241:0x56b,_0x46458c:0x60c,_0x1a7105:0x19a,_0x57a14b:0x25b,_0x2df9a1:0x557,_0x234129:0x5a2,_0x471312:0x179,_0x27e56a:0x1fd},_0x21aa8b={_0x5bce27:0x13f,_0x2f510c:0x1a0,_0x436fca:0x15c},_0x1f3dd4={_0x4b2534:0x103},_0x29e38e=_0x395bf5[_0x4a5768(0x160,_0x9ce9bd._0xa6efaa,0x16c,_0x9ce9bd._0x6f2463)](_0x2e5e1f[_0x4a5768(0x221,_0x9ce9bd._0x152684,_0x9ce9bd._0x3717c4,0x297)]??process['cwd']()),_0x29e8f8=(_0x2e5e1f['allowedDirs']??[])[_0xef44e8(0x25c,0x1b1,0x205,_0x9ce9bd._0x3272d3)](_0x74be1d=>_0x395bf5[_0x4a5768(0xd3,0x192,0x16c,0x21f)](_0x74be1d));function _0x4a5768(_0x4a899c,_0x342375,_0x4c76be,_0x7f36e6){return _0x324926(_0x4c76be-0x199,_0x7f36e6,_0x4c76be-0x1ec,_0x7f36e6-_0x1f3dd4._0x4b2534);}function _0xef44e8(_0x3c8f02,_0x1a9c4d,_0x20314f,_0x4f2306){return _0x324926(_0x20314f-_0x21aa8b._0x5bce27,_0x1a9c4d,_0x20314f-_0x21aa8b._0x2f510c,_0x4f2306-_0x21aa8b._0x436fca);}const _0x33265c=_0x2e5e1f[_0x4a5768(_0x9ce9bd._0x48a7dd,_0x9ce9bd._0x589d6b,_0x9ce9bd._0x2b5d1a,_0x9ce9bd._0x23646e)]??_0x4a5768(_0x9ce9bd._0x364991,_0x9ce9bd._0x1887ab,0x135,0x37);return defineTool({'name':_0x33265c,'description':_0x4a5768(0x188,0x148,0x1a0,0x28b),'inputSchema':{'type':_0xef44e8(_0x9ce9bd._0xb323ca,_0x9ce9bd._0x1199b3,0x1c7,_0x9ce9bd._0xa72600),'properties':{'filePath':{'type':_0x4a5768(0x21e,0x22f,0x228,_0x9ce9bd._0x35f889)},'oldText':{'type':_0xef44e8(0x2d5,_0x9ce9bd._0x5689f4,_0x9ce9bd._0x2e4125,_0x9ce9bd._0x16adae)},'newText':{'type':_0x4a5768(_0x9ce9bd._0x49c7c1,0x315,_0x9ce9bd._0x41e0c,0x16a)},'dryRun':{'type':'boolean'}},'required':[_0x4a5768(_0x9ce9bd._0x121d61,_0x9ce9bd._0x38dde1,_0x9ce9bd._0x20c327,0x14b),'oldText',_0xef44e8(0xae,_0x9ce9bd._0x385191,0x168,0x236)]},async *'execute'(_0xa99c68){const _0x4fc5eb={_0x1a3fe0:0x1a4},_0x36ff0a={_0x209de5:0xc9};function _0x119208(_0x11d514,_0x1c579f,_0x55cc6d,_0x273a32){return _0x4a5768(_0x11d514-0x109,_0x1c579f-_0x36ff0a._0x209de5,_0x1c579f-0x427,_0x55cc6d);}const _0x3ebaff=resolveAllowedPath(_0x29e38e,_0x29e8f8,_0xa99c68[_0x3b69e3(-0xc0,-_0x20e6b2._0xdccd51,-_0x20e6b2._0x4c391c,-_0x20e6b2._0x4da086)]);await assertWorkspaceFile(_0x3ebaff);const _0x4a89b1=await _0x5008d2(_0x3ebaff),_0x506d30=await _0x17d928(_0x3ebaff),_0x491b0a=detectEol(_0x506d30),_0x1827b7=normalizeToLf(_0x506d30[_0x119208(_0x20e6b2._0x344deb,0x542,0x42e,0x5e1)](_0x3b69e3(-0x1b4,-0xc3,-_0x20e6b2._0x461062,-0x272))),_0x2cb51d=normalizeToLf(_0xa99c68[_0x119208(_0x20e6b2._0x28b228,_0x20e6b2._0x5b1264,_0x20e6b2._0x11d595,0x7b1)]),_0x587ca8=normalizeToLf(_0xa99c68['newText']),_0x62f2da=_0x1827b7[_0x119208(0x631,_0x20e6b2._0x4ec6e2,0x53f,0x658)](_0x2cb51d);if(_0x62f2da===-0x1){const _0x5b4a20=_0x2cb51d[_0x119208(0x6a8,_0x20e6b2._0x2a77a7,_0x20e6b2._0x18f03d,_0x20e6b2._0x45a186)](0x0,0x64)[_0x119208(_0x20e6b2._0x131751,_0x20e6b2._0x511265,0x459,_0x20e6b2._0x372d13)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x3b69e3(-0x7b,-_0x20e6b2._0x715858,-_0x20e6b2._0x101889,-_0x20e6b2._0x3ffd13)+_0x5b4a20+(_0x2cb51d[_0x119208(_0x20e6b2._0x485d9e,_0x20e6b2._0x4b2839,0x5c3,0x6f7)]>0x64?_0x3b69e3(-_0x20e6b2._0x3b4556,-0x180,-0x23b,-_0x20e6b2._0x1bd020):'')+'\x22',{'filePath':_0xa99c68[_0x3b69e3(-_0x20e6b2._0x223e0f,-_0x20e6b2._0x162de3,-_0x20e6b2._0x1a7ff7,-_0x20e6b2._0x3c7359)]});}const _0x4e6b9e=_0x1827b7['slice'](0x0,_0x62f2da)+_0x587ca8+_0x1827b7[_0x3b69e3(-0x90,-_0x20e6b2._0x4ca658,-0xad,-_0x20e6b2._0x585137)](_0x62f2da+_0x2cb51d['length']),_0x2d6e55=convertEol(_0x4e6b9e,_0x491b0a),_0x2bea69=Buffer[_0x119208(_0x20e6b2._0x3fccb4,_0x20e6b2._0x53068a,_0x20e6b2._0x31a741,0x6a6)](_0x2d6e55,'utf8'),_0x3ac17c=sha256(_0x506d30),_0x6a5e7d=sha256(_0x2bea69),_0x454217=_0x3ac17c===_0x6a5e7d,_0x415008=_0xa99c68[_0x119208(0x5a7,_0x20e6b2._0x2f0aa7,_0x20e6b2._0x3811fa,_0x20e6b2._0x3f9de6)]??![];!_0x415008&&!_0x454217&&await atomicWrite(_0x3ebaff,_0x2bea69);function _0x3b69e3(_0x3f9ed8,_0x7b3d21,_0x5a28b0,_0x5a50b8){return _0x4a5768(_0x3f9ed8-0x8a,_0x7b3d21-_0x4fc5eb._0x1a3fe0,_0x3f9ed8- -0x31e,_0x7b3d21);}return yield createToolOutput(_0x454217?_0x3b69e3(-_0x20e6b2._0x5e729b,-0x235,-_0x20e6b2._0x2d4b31,-_0x20e6b2._0x4aa422):_0x415008?_0x119208(0x5c7,0x540,_0x20e6b2._0x332689,0x419):_0x119208(_0x20e6b2._0x2f6d4e,_0x20e6b2._0x40ffa9,0x471,0x552),{'filePath':_0xa99c68['filePath'],'resolvedPath':_0x3ebaff,'created':_0x4a89b1[_0x3b69e3(-_0x20e6b2._0x140591,-_0x20e6b2._0x574a97,-_0x20e6b2._0x4e8c6a,-_0x20e6b2._0x4315f7)][_0x3b69e3(-0xcf,-_0x20e6b2._0x226476,-_0x20e6b2._0x47dce6,-_0x20e6b2._0x4691d7)](),'modified':_0x4a89b1[_0x119208(0x488,_0x20e6b2._0x553241,0x5b3,_0x20e6b2._0x46458c)]['toISOString'](),'size':_0x4a89b1[_0x3b69e3(-_0x20e6b2._0x1a7105,-0x115,-_0x20e6b2._0x57a14b,-0x17f)],'eol':_0x491b0a,'oldTextLength':_0x2cb51d[_0x119208(0x694,_0x20e6b2._0x4b2839,_0x20e6b2._0x2df9a1,0x4aa)],'newTextLength':_0x587ca8[_0x119208(0x4b6,_0x20e6b2._0x4b2839,_0x20e6b2._0x234129,0x5ea)],'bytesWritten':_0x454217||_0x415008?0x0:_0x2bea69[_0x3b69e3(-0x179,-_0x20e6b2._0x471312,-_0x20e6b2._0x27e56a,-0x152)],'beforeSha':_0x3ac17c,'afterSha':_0x6a5e7d,'dryRun':_0x415008,'noChange':_0x454217,'lineNumbers':calculateLineNumbers(_0x1827b7,_0x2cb51d,_0x587ca8,_0x62f2da)}),void 0x0;}});}import{mkdir as _0x4bfaac,rename as _0x1ca6ad,stat as _0x449c5b,writeFile as _0x4a56ef}from'fs/promises';import*as _0x354d6c from'path';async function atomicWrite2(_0x1c11f8,_0x50c7f8){const _0x5ce1d2={_0x3a112d:0x48f,_0x3820d5:0x1d0,_0x98ddba:0x19a,_0x43252a:0x105,_0x365a44:0xf6,_0x5b21a4:0x19b,_0x1018fc:0x214},_0x23cedc={_0x1e0492:0x183,_0x5f7e4e:0x7c},_0x51b1c6=_0x354d6c['dirname'](_0x1c11f8);function _0x32e135(_0x3f9e04,_0x11055d,_0x491a13,_0x73e06d){return _0x324926(_0x3f9e04-0x54e,_0x11055d,_0x491a13-_0x23cedc._0x1e0492,_0x73e06d-_0x23cedc._0x5f7e4e);}await _0x4bfaac(_0x51b1c6,{'recursive':!![]});const _0x1664ac=_0x354d6c['join'](_0x51b1c6,'.tmp.'+_0x354d6c[_0x32e135(_0x5ce1d2._0x3a112d,0x474,0x395,0x39d)](_0x1c11f8)+'.'+Date['now']()+'.'+Math[_0x43af27(-_0x5ce1d2._0x3820d5,-0x207,-_0x5ce1d2._0x98ddba,-_0x5ce1d2._0x43252a)]()[_0x43af27(-_0x5ce1d2._0x365a44,-_0x5ce1d2._0x5b21a4,-_0x5ce1d2._0x1018fc,-0xf7)](0x24)[_0x32e135(0x643,0x698,0x690,0x587)](0x2));await _0x4a56ef(_0x1664ac,_0x50c7f8);function _0x43af27(_0xf83a55,_0x4dcb38,_0x4f072a,_0x127cb5){return _0x22ef16(_0x127cb5,_0x4dcb38- -0x31b,_0x4f072a-0xe4,_0x127cb5-0xf9);}await _0x1ca6ad(_0x1664ac,_0x1c11f8);}function createFileNewTool(_0x3f8520={}){const _0x4fec4e={_0x2f4bb5:0x5bc,_0xd682be:0x110,_0x26226b:0x196,_0x5a1f3d:0x454,_0x32faa0:0x3ce,_0x318e19:0x36a,_0x42f353:0x2e5,_0x2a9d02:0x1c8,_0x25de2c:0x400,_0xcf6d5f:0x467,_0x314997:0x184,_0x2043c9:0x16c,_0x4b29b9:0x4e3,_0x258ee1:0x44f,_0x59d131:0x590,_0x539c06:0x4d2,_0x25e23f:0x4b3,_0x266c52:0x3dd,_0x125cf5:0x1bb,_0x3f9991:0x1ef,_0x58a6a4:0x416,_0x36e3de:0x2f1},_0x3e278c={_0x332d77:0x27,_0x45224e:0x87,_0x230977:0xb6,_0x3ee741:0xab,_0x558824:0x1f0,_0x41755f:0x16,_0x441e2d:0xa0,_0x54a48a:0x15c,_0x58df3d:0xf4,_0x223f8a:0x13d,_0x1ee93e:0x6d,_0x9f8ba1:0x1c,_0x3a51cf:0x79,_0x3711bb:0x20,_0x13e6c2:0x250,_0x35a63c:0x9d,_0x5f837b:0x68,_0x22854b:0x2a2},_0xfa9a95={_0x314be1:0x105},_0x4eaf03={_0x443348:0x443,_0x76c59:0x158},_0x48653a=_0x354d6c[_0x1234f6(0x12a,0x2c8,0x1ff,0x31c)](_0x3f8520[_0x56c3ef(0x4a5,_0x4fec4e._0x2f4bb5,0x4b2,0x511)]??process[_0x1234f6(0x16,_0x4fec4e._0xd682be,0x127,_0x4fec4e._0x26226b)]());function _0x1234f6(_0x5e0b8b,_0x2e66c9,_0x35fba6,_0x4c46a2){return _0x324926(_0x35fba6-0x22c,_0x2e66c9,_0x35fba6-0x1b4,_0x4c46a2-0xc4);}const _0x345690=(_0x3f8520[_0x56c3ef(_0x4fec4e._0x5a1f3d,_0x4fec4e._0x32faa0,_0x4fec4e._0x318e19,0x335)]??[])[_0x1234f6(_0x4fec4e._0x42f353,0x33a,0x2f2,_0x4fec4e._0x2a9d02)](_0x26d9d0=>_0x354d6c[_0x56c3ef(0x416,0x4f1,0x523,0x43c)](_0x26d9d0)),_0x19b23f=_0x3f8520['name']??_0x56c3ef(0x4f4,_0x4fec4e._0x25de2c,0x598,_0x4fec4e._0xcf6d5f);function _0x56c3ef(_0x4576e7,_0x123e02,_0x4686c8,_0x382cbd){return _0x324926(_0x4576e7-_0x4eaf03._0x443348,_0x4686c8,_0x4686c8-_0x4eaf03._0x76c59,_0x382cbd-0x1f4);}return defineTool({'name':_0x19b23f,'description':_0x1234f6(0x78,_0x4fec4e._0x314997,0x13a,_0x4fec4e._0x2043c9),'inputSchema':{'type':_0x56c3ef(0x4cb,_0x4fec4e._0x4b29b9,_0x4fec4e._0x258ee1,_0x4fec4e._0x59d131),'properties':{'filePath':{'type':_0x56c3ef(_0x4fec4e._0x539c06,0x52b,_0x4fec4e._0x25e23f,_0x4fec4e._0x266c52)},'content':{'type':_0x1234f6(_0x4fec4e._0x125cf5,0x391,0x2bb,0x222)}},'required':[_0x1234f6(_0x4fec4e._0x3f9991,_0x4fec4e._0x58a6a4,_0x4fec4e._0x36e3de,0x3af),'content']},async *'execute'(_0x2ab55d){const _0x3a4b2b={_0x1a8230:0x481,_0x5ad83e:0x6e};function _0x23676b(_0xa9f33d,_0x577d88,_0xe77f9e,_0x587b2f){return _0x1234f6(_0xa9f33d-_0xfa9a95._0x314be1,_0x577d88,_0xe77f9e-0x14,_0x587b2f-0x102);}const _0xe193a1=resolveAllowedPath(_0x48653a,_0x345690,_0x2ab55d[_0x4242f0(-0x47,0xe5,-_0x3e278c._0x332d77,_0x3e278c._0x45224e)]);function _0x4242f0(_0x5d813e,_0x5cbdfd,_0x1f925d,_0x509987){return _0x56c3ef(_0x509987- -_0x3a4b2b._0x1a8230,_0x5cbdfd-_0x3a4b2b._0x5ad83e,_0x5d813e,_0x509987-0x25);}const _0x1599cd=await _0x449c5b(_0xe193a1)[_0x4242f0(_0x3e278c._0x230977,0xe5,0xde,_0x3e278c._0x3ee741)](()=>!![])[_0x4242f0(-_0x3e278c._0x558824,-0x90,-0x29b,-0x177)](()=>![]),_0x160091=Buffer[_0x4242f0(_0x3e278c._0x41755f,0x2c,_0x3e278c._0x441e2d,0xb0)](_0x2ab55d[_0x4242f0(-0x1bb,-_0x3e278c._0x54a48a,-0x4,-_0x3e278c._0x58df3d)],_0x4242f0(-_0x3e278c._0x223f8a,-0xf2,-0x18c,-_0x3e278c._0x1ee93e));return await atomicWrite2(_0xe193a1,_0x160091),yield createToolOutput(_0x4242f0(0x148,-_0x3e278c._0x9f8ba1,-_0x3e278c._0x3a51cf,_0x3e278c._0x3711bb)+_0x2ab55d['filePath']+'.',{'filePath':_0x2ab55d['filePath'],'resolvedPath':_0xe193a1,'bytes':_0x160091['length'],'lines':_0x2ab55d[_0x23676b(0x23e,_0x3e278c._0x13e6c2,0x18a,_0x3e278c._0x35a63c)]['split'](/\r?\n/)[_0x4242f0(0xe7,-_0x3e278c._0x5f837b,-0x24,-0x32)],'created':new Date()[_0x23676b(0x388,_0x3e278c._0x22854b,0x2f6,0x293)](),'overwritten':_0x1599cd}),void 0x0;}});}import{readFile as _0x2234ca,stat as _0x4b6eee}from'fs/promises';import*as _0x30f525 from'path';function stripUtfBom(_0x3b713b){const _0x124842={_0x3349a6:0x3f0,_0x4ed28d:0x3b5,_0x595493:0x1b2,_0x3a8eb9:0x98,_0x45275d:0xa0},_0x545f61={_0x5e1ec1:0x1d5};function _0x4c90f8(_0x2eb63c,_0x1cdb2d,_0x53d23d,_0x5cf7bd){return _0x324926(_0x2eb63c-0xbd,_0x5cf7bd,_0x53d23d-0x1d9,_0x5cf7bd-0x113);}function _0x14bca9(_0x1110ff,_0xcf048a,_0xba7b47,_0x40b298){return _0x22ef16(_0xcf048a,_0x1110ff-0x2d2,_0xba7b47-0x1f2,_0x40b298-_0x545f61._0x5e1ec1);}return _0x3b713b[_0x14bca9(_0x124842._0x3349a6,0x321,_0x124842._0x4ed28d,0x485)](0x0)===0xfeff?_0x3b713b[_0x4c90f8(_0x124842._0x595493,_0x124842._0x3a8eb9,0x220,_0x124842._0x45275d)](0x1):_0x3b713b;}function clampLine(_0x33af32,_0x37334c){const _0x3ae8a3={_0x46c360:0x6d},_0x45ac14={_0x4a2c68:0x13e,_0xadca33:0x1c2};function _0x19952f(_0x544c99,_0x4ee7de,_0x53f851,_0x52abed){return _0x324926(_0x4ee7de- -0x20,_0x544c99,_0x53f851-_0x45ac14._0x4a2c68,_0x52abed-_0x45ac14._0xadca33);}if(!Number['isFinite'](_0x33af32))return 0x1;return Math['max'](0x1,Math[_0x19952f(-_0x3ae8a3._0x46c360,-0x9d,-0x147,-0x187)](Math['trunc'](_0x33af32),_0x37334c));}function createFileReadTool(_0x531390={}){const _0x5904ff={_0x570567:0x367,_0x571d48:0x345,_0x558a52:0x1b4,_0x4a0fb3:0x520,_0x360090:0x47a,_0x14d672:0x2e9,_0x34e514:0x3bb,_0x43776d:0x32d,_0x47ec27:0x40a,_0x2136f2:0x410,_0x140d04:0x1a6,_0x218e6b:0x396,_0x5704fc:0x37d,_0x38470c:0x384,_0x18b38a:0x32b,_0x4025c3:0x3ef,_0x7abdc8:0x2ef,_0x4c047d:0x39a,_0x3039e8:0x461,_0x3a7242:0x3cb},_0xd40044={_0x354d25:0x58,_0x178acf:0x80,_0xba6511:0x2,_0x12254d:0x9d,_0xaf6bd3:0xb4,_0x365fc4:0xd2,_0x5f0ffd:0x1b1,_0x3ae10d:0x20b,_0x394fea:0xff,_0x24664d:0x88,_0xf53e04:0x7,_0x5e2e7d:0x56,_0x10eca8:0xe3,_0x1aae9a:0x114,_0x3d7a91:0x7d,_0x5a2052:0x37,_0x1049c2:0xd1,_0x280c49:0x22,_0x428b1c:0x97,_0x1d2c15:0x5,_0x104c2b:0xb9,_0xb181f3:0x16e,_0x2b0e71:0x163,_0x54d790:0x157,_0xae1083:0x1c5,_0x5211d9:0xd4,_0x4ef722:0x305,_0x2faf44:0x20a,_0x542a90:0x1b9,_0x1190f4:0x13b,_0x264a24:0xcb,_0x5bd372:0x1,_0x35fbf8:0x123,_0x54f667:0x119,_0x24d1a4:0x200},_0xdf9386={_0x2b8d75:0x53c,_0x247d3d:0x164},_0x4529c9={_0xf0fb39:0xf7,_0x1da7e4:0x27};function _0x184e61(_0xf07a2f,_0x29bfdb,_0x371a16,_0x317efb){return _0x22ef16(_0x317efb,_0xf07a2f-_0x4529c9._0xf0fb39,_0x371a16-0xde,_0x317efb-_0x4529c9._0x1da7e4);}function _0x3f3d72(_0x5b6c24,_0x2c3e99,_0x4aba3a,_0x5b8f46){return _0x22ef16(_0x4aba3a,_0x5b6c24-0x1f0,_0x4aba3a-0x33,_0x5b8f46-0xd9);}const _0x358fcf=_0x30f525[_0x184e61(0x2c8,_0x5904ff._0x570567,_0x5904ff._0x571d48,_0x5904ff._0x558a52)](_0x531390[_0x3f3d72(0x450,_0x5904ff._0x4a0fb3,0x396,_0x5904ff._0x360090)]??process[_0x184e61(0x1f0,0x29f,_0x5904ff._0x14d672,0x1a2)]()),_0x52bab1=(_0x531390['allowedDirs']??[])[_0x184e61(_0x5904ff._0x34e514,_0x5904ff._0x43776d,_0x5904ff._0x47ec27,_0x5904ff._0x2136f2)](_0x554b3e=>_0x30f525[_0x184e61(0x2c8,0x332,0x1cc,0x382)](_0x554b3e)),_0x8cc00d=_0x531390[_0x184e61(0x26e,_0x5904ff._0x140d04,0x29c,_0x5904ff._0x218e6b)]??'FileRead';return defineTool({'name':_0x8cc00d,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories.\x20Optionally\x20specify\x20line\x20ranges\x20(lineStart,\x20lineEnd)','inputSchema':{'type':_0x184e61(_0x5904ff._0x5704fc,0x337,0x363,0x394),'properties':{'path':{'type':_0x184e61(_0x5904ff._0x38470c,0x3d9,0x363,_0x5904ff._0x18b38a)},'lineStart':{'type':_0x3f3d72(_0x5904ff._0x4025c3,_0x5904ff._0x7abdc8,_0x5904ff._0x4c047d,_0x5904ff._0x3039e8)},'lineEnd':{'type':_0x184e61(0x2f6,0x211,0x391,0x3cf)}},'required':[_0x3f3d72(0x4c1,0x3fd,0x3f1,_0x5904ff._0x3a7242)]},async *'execute'(_0x2aa329){const _0xd9b2bc={_0x224f61:0x40d},_0x41f088=resolveAllowedPath(_0x358fcf,_0x52bab1,_0x2aa329[_0x5ccdbc(0x16,-0x16b,-0x3b,-0x7b)]);function _0x4e0c2b(_0x492c2b,_0x1821a7,_0x587781,_0x34fab2){return _0x3f3d72(_0x34fab2- -_0xd9b2bc._0x224f61,_0x1821a7-0x4d,_0x587781,_0x34fab2-0x10d);}await assertWorkspaceFile(_0x41f088);const _0x186464=await _0x4b6eee(_0x41f088),_0x3b863b=await _0x2234ca(_0x41f088);if(isProbablyBinary(_0x3b863b))throw new ToolExecutionError(_0x5ccdbc(-0x43,-_0xd40044._0x354d25,-0x30,-_0xd40044._0x178acf)+_0x2aa329[_0x5ccdbc(-0xbd,_0xd40044._0xba6511,-0x188,-0x7b)],{'path':_0x2aa329['path']});let _0x3472e2=_0x3b863b[_0x5ccdbc(-_0xd40044._0x12254d,-0x247,-0x25b,-0x1cc)](_0x4e0c2b(-_0xd40044._0xaf6bd3,-0xc1,_0xd40044._0x365fc4,-0x4e));const _0x29f92e=_0x3472e2[_0x4e0c2b(-0x33,-_0xd40044._0x5f0ffd,-_0xd40044._0x3ae10d,-_0xd40044._0x394fea)](0x0)===0xfeff;_0x3472e2=stripUtfBom(_0x3472e2);function _0x5ccdbc(_0x388216,_0x3155ae,_0x512a9e,_0x56feda){return _0x3f3d72(_0x56feda- -_0xdf9386._0x2b8d75,_0x3155ae-0x187,_0x3155ae,_0x56feda-_0xdf9386._0x247d3d);}const _0x5308d9=_0x3472e2[_0x4e0c2b(0xfc,0xf8,-_0xd40044._0x24664d,-_0xd40044._0xf53e04)](/\r?\n/),_0x53a787={'path':_0x2aa329[_0x5ccdbc(-_0xd40044._0x5e2e7d,-0xd6,0x5,-0x7b)],'resolvedPath':_0x41f088,'created':_0x186464[_0x4e0c2b(_0xd40044._0x10eca8,-_0xd40044._0x1aae9a,-_0xd40044._0x3d7a91,-_0xd40044._0x5a2052)][_0x4e0c2b(_0xd40044._0x1049c2,-_0xd40044._0x280c49,0x19b,_0xd40044._0x428b1c)](),'modified':_0x186464[_0x4e0c2b(0x87,-_0xd40044._0x1d2c15,-_0xd40044._0x104c2b,-0x74)][_0x5ccdbc(0x33,-0x44,-0x115,-0x98)](),'size':_0x186464[_0x5ccdbc(-_0xd40044._0xb181f3,-0xd2,-0x130,-_0xd40044._0x2b0e71)],'encoding':_0x5ccdbc(-_0xd40044._0x54d790,-_0xd40044._0xae1083,-_0xd40044._0x5211d9,-0x17d),'bomStripped':_0x29f92e,'truncated':![],'totalLines':_0x5308d9['length']};if(_0x2aa329[_0x5ccdbc(-0x297,-_0xd40044._0x4ef722,-0x32c,-_0xd40044._0x2faf44)]!==void 0x0||_0x2aa329['lineEnd']!==void 0x0){const _0x739fa1=clampLine(_0x2aa329['lineStart']??0x1,_0x5308d9[_0x4e0c2b(-0x125,0x10d,0x3c,-0x13)]),_0x4c614f=clampLine(_0x2aa329[_0x5ccdbc(-_0xd40044._0x542a90,-0x20,-0x194,-0x108)]??_0x5308d9['length'],_0x5308d9['length']),_0x49d26c=Math[_0x4e0c2b(-_0xd40044._0x1190f4,0x9,-0xee,-0x9c)](_0x739fa1,_0x4c614f),_0x2f1cb7=Math[_0x4e0c2b(-0x72,0x21,-_0xd40044._0x1aae9a,-0x22)](_0x739fa1,_0x4c614f),_0x10abc5=_0x5308d9[_0x4e0c2b(_0xd40044._0x264a24,0xe1,_0xd40044._0x5bd372,0xd6)](_0x49d26c-0x1,_0x2f1cb7)[_0x4e0c2b(0xe,_0xd40044._0x35fbf8,_0xd40044._0x54f667,0xa7)]((_0xa414f3,_0xa5b7c2)=>_0x49d26c+_0xa5b7c2+'|'+_0xa414f3)[_0x5ccdbc(-0x156,-0x1da,-0x155,-_0xd40044._0x24d1a4)]('\x0a');return yield createToolOutput(_0x10abc5,{..._0x53a787,'lineRange':{'lineStart':_0x49d26c,'lineEnd':_0x2f1cb7,'linesTotal':_0x5308d9['length']}}),void 0x0;}return yield createToolOutput(_0x3472e2,_0x53a787),void 0x0;}});}import{stat as _0x157cfe}from'fs/promises';import*as _0x1c059e from'path';import{execSync,spawn as _0x2ebcf7}from'child_process';import{existsSync}from'fs';import{stat as _0xf2daf8}from'fs/promises';import*as _0x7ed184 from'os';import*as _0x15c15a from'path';import{rgPath as _0x2df2da}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x89a6a2={_0x1c46f5:0x89,_0x2900fe:0x108,_0x1d7740:0x548,_0x152009:0x237,_0x2bcc3b:0x2db,_0xfb30b4:0x21e,_0x5f3797:0x54a,_0x463a75:0x450,_0xdc0935:0x284,_0x51881e:0x386,_0x3c43f5:0x88,_0x491f51:0x336,_0x3c8cc2:0x27c,_0x1979f2:0x316,_0x1aa210:0x3ac,_0x5392a8:0x5ef,_0x1a8d9d:0x522,_0x3068c9:0x24e,_0x372620:0x1f3,_0x1113a8:0x2b8,_0x4c133f:0x537,_0x576f38:0x515,_0x12d3a3:0x34,_0x5ad97e:0xac,_0x4b4834:0x413,_0x220302:0x527,_0x237747:0x149,_0x3da3c6:0x139,_0x1fabf0:0x25d,_0x566108:0x36b,_0x316aa2:0x480,_0x227ee7:0x4de,_0x518d0e:0x3f1,_0x485b9d:0x590,_0x1e2bd6:0x5a9,_0x4cd902:0x554,_0x3f5179:0x3cd,_0xefb649:0x63e,_0x14d16d:0x460},_0x5c1f06={_0xa582a3:0x0},_0x3e45b3={_0x487626:0x206,_0x372c41:0x111},_0x4e3a4b=_0x7ed184['platform']()===_0xf7016a(-_0x89a6a2._0x1c46f5,-0x28,-_0x89a6a2._0x2900fe,-0xb4),_0x1176a0=_0x4e3a4b?[_0x15c15a['join'](process[_0x1ff0b0(0x537,0x629,0x4c9,_0x89a6a2._0x1d7740)][_0xf7016a(-_0x89a6a2._0x152009,-0x36c,-_0x89a6a2._0x2bcc3b,-_0x89a6a2._0xfb30b4)]||'','Microsoft','WinGet',_0x1ff0b0(_0x89a6a2._0x5f3797,0x489,_0x89a6a2._0x463a75,0x5df)),_0x15c15a[_0xf7016a(-_0x89a6a2._0xdc0935,-_0x89a6a2._0x51881e,-0x2b8,-0x31d)](process['env'][_0xf7016a(-0xbe,-0xf6,-0x198,-_0x89a6a2._0x3c43f5)]||'',_0xf7016a(-_0x89a6a2._0x491f51,-_0x89a6a2._0x3c8cc2,-_0x89a6a2._0x1979f2,-_0x89a6a2._0x1aa210),_0x1ff0b0(0x5dc,_0x89a6a2._0x5392a8,0x50b,_0x89a6a2._0x1a8d9d)),_0x15c15a[_0xf7016a(-_0x89a6a2._0x3068c9,-_0x89a6a2._0x372620,-_0x89a6a2._0x1113a8,-0x201)](process[_0x1ff0b0(_0x89a6a2._0x4c133f,_0x89a6a2._0x576f38,0x64e,0x4bb)][_0xf7016a(-0x129,-_0x89a6a2._0x12d3a3,-0x157,-_0x89a6a2._0x5ad97e)]||'',_0x1ff0b0(_0x89a6a2._0x4b4834,0x369,0x311,_0x89a6a2._0x220302),_0xf7016a(-_0x89a6a2._0x237747,-_0x89a6a2._0x3da3c6,-0x14d,-_0x89a6a2._0x1fabf0))]:['/opt/homebrew/bin/rg',_0x1ff0b0(0x474,0x488,0x470,_0x89a6a2._0x566108),'/usr/bin/rg','/bin/rg'];for(const _0x44d8c9 of _0x1176a0){if(existsSync(_0x44d8c9))return _0x44d8c9;}function _0xf7016a(_0x46a087,_0xb102f6,_0x50e352,_0x5419e0){return _0x324926(_0x50e352- -_0x3e45b3._0x487626,_0xb102f6,_0x50e352-_0x3e45b3._0x372c41,_0x5419e0-0x12e);}function _0x1ff0b0(_0x1e0ab8,_0x2aa49c,_0x45c81e,_0x505ef7){return _0x22ef16(_0x45c81e,_0x1e0ab8-0x325,_0x45c81e-_0x5c1f06._0xa582a3,_0x505ef7-0xa6);}try{const _0x19fb87=_0x4e3a4b?_0xf7016a(-0x20c,-0x28b,-0x2ae,-0x2aa):_0x1ff0b0(_0x89a6a2._0x316aa2,0x421,0x383,0x4a2),_0x4ffb66=execSync(_0x19fb87,{'encoding':_0x1ff0b0(0x4f4,0x423,0x56c,0x4eb),'stdio':[_0x1ff0b0(_0x89a6a2._0x227ee7,_0x89a6a2._0x518d0e,0x533,0x559),_0x1ff0b0(0x4de,_0x89a6a2._0x485b9d,_0x89a6a2._0x1e2bd6,_0x89a6a2._0x4cd902),_0x1ff0b0(0x4c1,0x485,_0x89a6a2._0x3f5179,0x393)]})['trim']()[_0x1ff0b0(0x53b,_0x89a6a2._0xefb649,_0x89a6a2._0x14d16d,0x551)](/\r?\n/)[0x0];if(_0x4ffb66&&existsSync(_0x4ffb66))return _0x4ffb66;}catch{return null;}return null;}async function filepath(){const _0x902310={_0x394b09:0x3d4,_0x37c8e6:0x310},_0x3d64fb={_0x56740e:0x3f2,_0x697a44:0xe9,_0xe2cb8b:0x18};if(cachedRgPath)return cachedRgPath;if(_0x2df2da&&existsSync(_0x2df2da))return cachedRgPath=_0x2df2da,_0x2df2da;const _0x158f67=findSystemRipgrep();if(!_0x158f67)throw new Error(_0x1a3ed3(-_0x902310._0x394b09,-_0x902310._0x37c8e6,-0x312,-0x2f4));cachedRgPath=_0x158f67;function _0x1a3ed3(_0x4de105,_0x188fd8,_0x35acb0,_0x4bac63){return _0x22ef16(_0x35acb0,_0x4bac63- -_0x3d64fb._0x56740e,_0x35acb0-_0x3d64fb._0x697a44,_0x4bac63-_0x3d64fb._0xe2cb8b);}return _0x158f67;}async function*files(_0x50eb13){const _0x12d504={_0x21d4da:0x309,_0x3e4add:0x3f2,_0x1954c3:0x53a,_0x595adb:0x437,_0x2dd856:0x592,_0xf300b7:0x51a,_0x49f34e:0x487,_0x1b275c:0x2c8,_0x5f374f:0x3e6,_0x31deed:0x373,_0x1e8e4f:0x259,_0x532174:0x41d,_0x1d72e4:0x208,_0xcffe3f:0x32f,_0x132179:0x1cd,_0x3c0018:0x9e,_0x21a0a2:0x12d,_0x2dadf0:0xa,_0x4276a6:0x489,_0xe4b094:0x612,_0x512881:0x50b,_0x162ec9:0x105,_0x588760:0xb3,_0x1687d0:0x100,_0x55de36:0x435,_0x3e97ca:0x338,_0x9759ea:0x440,_0x2675ed:0xbf,_0x82763f:0x177,_0x2a29f2:0xfa},_0x2e042d={_0x15d5fa:0x236,_0x16cb21:0x16d},_0x4970f6=await filepath(),_0x7bc028=await _0xf2daf8(_0x50eb13[_0x14632b(0x2f8,0x3da,0x36a,0x32f)])[_0x14632b(0x420,_0x12d504._0x21d4da,0x2aa,0x2fb)](()=>null);if(!_0x7bc028?.[_0x14632b(_0x12d504._0x3e4add,0x535,_0x12d504._0x1954c3,0x4da)]())throw Object[_0x14632b(0x589,_0x12d504._0x595adb,_0x12d504._0x2dd856,_0x12d504._0xf300b7)](new Error(_0x14632b(_0x12d504._0x49f34e,_0x12d504._0x1b275c,_0x12d504._0x5f374f,_0x12d504._0x31deed)+_0x50eb13[_0x14632b(_0x12d504._0x1e8e4f,_0x12d504._0x532174,_0x12d504._0x1d72e4,_0x12d504._0xcffe3f)]+'\x27'),{'code':'ENOENT'});const _0x5859e4=['--files',_0x2d5ae7(-_0x12d504._0x132179,-0x10a,-0x1ac,-_0x12d504._0x3c0018),'--hidden',_0x14632b(0x610,0x650,0x5c2,0x534)];function _0x14632b(_0x3ec8b7,_0x5f22b7,_0x196a39,_0x2510a5){return _0x22ef16(_0x3ec8b7,_0x2510a5-_0x2e042d._0x15d5fa,_0x196a39-0x1d6,_0x2510a5-_0x2e042d._0x16cb21);}for(const _0x266d02 of _0x50eb13['glob']??[]){_0x5859e4['push']('--glob='+_0x266d02);}const _0x14eefd=_0x2ebcf7(_0x4970f6,_0x5859e4,{'cwd':_0x50eb13['cwd'],'stdio':[_0x2d5ae7(-0x1b7,-_0x12d504._0x21a0a2,-_0x12d504._0x2dadf0,-0x24b),'pipe','pipe']});let _0xe32f80='';function _0x2d5ae7(_0x14001b,_0x3002c5,_0x11f521,_0x284b1c){return _0x324926(_0x3002c5- -0xcb,_0x11f521,_0x11f521-0x5e,_0x284b1c-0x1e3);}for await(const _0x15b546 of _0x14eefd[_0x14632b(0x408,_0x12d504._0x4276a6,_0x12d504._0xe4b094,_0x12d504._0x512881)]??[]){_0xe32f80+=_0x15b546['toString']();const _0x41753c=_0xe32f80[_0x2d5ae7(-_0x12d504._0x162ec9,-_0x12d504._0x588760,-_0x12d504._0x1687d0,0x28)](/\r?\n/);_0xe32f80=_0x41753c['pop']()??'';for(const _0x412da6 of _0x41753c){if(_0x412da6[_0x14632b(_0x12d504._0x55de36,0x34f,_0x12d504._0x3e97ca,_0x12d504._0x9759ea)]>0x0)yield _0x412da6;}}_0xe32f80['trim']()[_0x2d5ae7(0x19,-_0x12d504._0x2675ed,-_0x12d504._0x82763f,-_0x12d504._0x2a29f2)]>0x0&&(yield _0xe32f80['trim']());}function parseMatchLine(_0x32b07b,_0x285c2a){const _0xd4c2e6={_0x4216af:0x5f6,_0x5ddca8:0x508,_0x1d00d7:0x5b9,_0x4caeb8:0x3c7,_0x42e733:0x10f,_0x301eb2:0x15,_0x540857:0x2,_0x18ef35:0x5e,_0x519c02:0x156,_0xf89cc5:0x56e,_0x481e32:0x541,_0x5bfd2e:0x6b,_0x5e6cef:0xaf,_0x5e07b8:0x6d,_0x318bee:0x97,_0x406909:0x57d},_0x3343eb={_0x24911d:0x19d},_0x5be22d={_0x286361:0x4f0,_0x35524f:0x42};function _0x223432(_0x1253d3,_0x2ecc84,_0x5046d8,_0x455349){return _0x324926(_0x5046d8-_0x5be22d._0x286361,_0x2ecc84,_0x5046d8-_0x5be22d._0x35524f,_0x455349-0xbc);}if(!_0x32b07b||_0x32b07b==='--')return null;const _0x278400=_0x32b07b[_0x223432(_0xd4c2e6._0x4216af,0x5b9,_0xd4c2e6._0x5ddca8,0x53c)]('|');if(_0x285c2a&&_0x278400['length']>=0x4&&Number[_0x223432(_0xd4c2e6._0x1d00d7,_0xd4c2e6._0x4caeb8,0x48d,0x4f9)](Number['parseInt'](_0x278400[0x2]??'',0xa))){const _0x1520e2=Number['parseInt'](_0x278400[0x1]??'',0xa);if(!Number[_0x200838(-_0xd4c2e6._0x42e733,_0xd4c2e6._0x301eb2,-_0xd4c2e6._0x540857,0x109)](_0x1520e2)||!_0x278400[0x0])return null;return{'filePath':_0x278400[0x0],'lineNum':_0x1520e2,'lineText':_0x278400[_0x200838(0x11c,_0xd4c2e6._0x18ef35,_0xd4c2e6._0x519c02,0x2b)](0x3)[_0x223432(_0xd4c2e6._0xf89cc5,_0xd4c2e6._0x481e32,0x43e,0x334)]('|')};}if(_0x278400[_0x200838(_0xd4c2e6._0x5bfd2e,_0xd4c2e6._0x5e6cef,_0xd4c2e6._0x5e07b8,0x4a)]>=0x3){const _0xcc521d=Number['parseInt'](_0x278400[0x1]??'',0xa);if(!Number[_0x200838(-_0xd4c2e6._0x318bee,0xc1,-_0xd4c2e6._0x540857,0x42)](_0xcc521d)||!_0x278400[0x0])return null;return{'filePath':_0x278400[0x0],'lineNum':_0xcc521d,'lineText':_0x278400[_0x223432(0x4d0,_0xd4c2e6._0x406909,0x5e5,0x69f)](0x2)[_0x223432(0x556,0x524,0x43e,0x38e)]('|'),..._0x285c2a?{'isContext':!![]}:{}};}function _0x200838(_0x3d9f11,_0x51ecdc,_0x1ecc7c,_0x30884b){return _0x22ef16(_0x51ecdc,_0x1ecc7c- -_0x3343eb._0x24911d,_0x1ecc7c-0x42,_0x30884b-0x9);}return null;}async function search(_0x5cfb69){const _0x51d3a3={_0xddd2d4:0x74,_0x5d3b3d:0x235,_0x1fece0:0x17a,_0x4aa082:0xf7,_0x38d857:0x1b8,_0x33db34:0xbe,_0x593a7b:0xbd,_0x1b4278:0xc1,_0x1b7ccb:0x1db,_0x5ed6d3:0x16b,_0x53a54e:0xba,_0x57449e:0x1ba,_0x199484:0x177,_0xf043e9:0x197,_0x899e89:0x103,_0x5c2504:0x101,_0x293a74:0x109,_0x5139ff:0x116,_0x36985b:0x127,_0x56562f:0x23,_0x489ca0:0x38,_0x51d515:0x1bf,_0x5cb388:0x18b,_0x199814:0x139,_0x4bb4e2:0x5b,_0xcf2af4:0xa6,_0x583abe:0x155,_0x2aa879:0x116,_0x171c15:0x24e,_0x39dc5b:0x246,_0xe24d19:0xb,_0x54fb8e:0x72,_0x666f7:0x13,_0x29b997:0x200,_0xd9083a:0x22f,_0x243978:0xce,_0x5d2747:0x159,_0x520a2e:0x33,_0x1b39fa:0xa1,_0xfdfbe3:0x21,_0x1390db:0xfc,_0x1184b6:0x20e,_0x18be5f:0x28a,_0x572879:0x22a,_0x177a2f:0xa2,_0x25c70e:0x107,_0x5867f6:0x11b,_0x3382d3:0xb,_0xf6a9f3:0x9f},_0x24af15={_0x5aa319:0x37d,_0x48e552:0x43c,_0xbc5807:0x463,_0xef4dbb:0x3d3,_0x3405bf:0x5de,_0x1e514f:0x3a9,_0x4643b8:0x4ce,_0x21be6a:0x577,_0x483107:0x4b1,_0x354d77:0x4be,_0x4ee1bb:0x432,_0x54393c:0x3bf,_0xb8251c:0x435,_0x18962b:0x588,_0x14b362:0x627,_0x37857e:0x5a6,_0x55d173:0x6a4,_0x5a5971:0x5d3},_0x28b916={_0x573afe:0x149,_0x593140:0x91},_0xbcb1bd={_0x3683d4:0x100,_0x3ebb96:0x1c},_0x3da1ea={_0x2e15bb:0x26},_0x5dae1b={_0x389df7:0x171},_0x1f893c={_0x187406:0x131},_0x538879={_0x582511:0xaa,_0xc9a508:0x76};function _0x4f4746(_0x33ec4d,_0x14b16b,_0x538747,_0x4fd2d0){return _0x22ef16(_0x14b16b,_0x33ec4d- -_0x538879._0x582511,_0x538747-0x14,_0x4fd2d0-_0x538879._0xc9a508);}const _0x2ea706=await filepath();if(_0x5cfb69[_0x3ecbe7(_0x51d3a3._0xddd2d4,0x11b,_0x51d3a3._0x5d3b3d,_0x51d3a3._0x1fece0)]){const _0x1c0715=await _0xf2daf8(_0x5cfb69[_0x3ecbe7(_0x51d3a3._0x4aa082,0x11b,0x2a,_0x51d3a3._0x38d857)])['catch'](()=>null);if(!_0x1c0715?.['isFile']())throw Object['assign'](new Error('No\x20such\x20file:\x20\x27'+_0x5cfb69[_0x3ecbe7(_0x51d3a3._0x33db34,0x11b,_0x51d3a3._0x593a7b,0xc1)]+'\x27'),{'code':_0x4f4746(_0x51d3a3._0x1b4278,_0x51d3a3._0x1b7ccb,-0x47,_0x51d3a3._0x5ed6d3)});}else{const _0xded85a=await _0xf2daf8(_0x5cfb69['cwd'])[_0x3ecbe7(-_0x51d3a3._0x53a54e,-0xa8,-_0x51d3a3._0x57449e,0x47)](()=>null);if(!_0xded85a?.['isDirectory']())throw Object[_0x3ecbe7(0xa4,_0x51d3a3._0x199484,0xc0,_0x51d3a3._0xf043e9)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x5cfb69[_0x3ecbe7(-_0x51d3a3._0x899e89,-0x74,-0x96,-_0x51d3a3._0x5c2504)]+'\x27'),{'code':_0x3ecbe7(-_0x51d3a3._0x293a74,-0x2,-0xb3,0xa9)});}const _0x19f1d4=[_0x3ecbe7(0xf2,_0x51d3a3._0x5139ff,0x1b6,_0x51d3a3._0x36985b),'--field-match-separator=|',_0x3ecbe7(-0xbf,_0x51d3a3._0x56562f,0x113,_0x51d3a3._0x489ca0),'--regexp',_0x5cfb69[_0x4f4746(0x265,_0x51d3a3._0x51d515,_0x51d3a3._0x5cb388,_0x51d3a3._0x199814)]],_0xcc47b=typeof _0x5cfb69[_0x3ecbe7(-0xed,0xb,_0x51d3a3._0x4bb4e2,_0x51d3a3._0xcf2af4)]===_0x4f4746(_0x51d3a3._0x583abe,_0x51d3a3._0x2aa879,_0x51d3a3._0x171c15,_0x51d3a3._0x39dc5b)&&_0x5cfb69[_0x3ecbe7(-0x7a,_0x51d3a3._0xe24d19,-_0x51d3a3._0x54fb8e,_0x51d3a3._0x666f7)]>0x0;function _0x3ecbe7(_0x3ba7d9,_0x546001,_0x2ec07e,_0x3da47){return _0x324926(_0x546001-0x91,_0x3ba7d9,_0x2ec07e-_0x1f893c._0x187406,_0x3da47-0x1f2);}return _0xcc47b&&_0x19f1d4[_0x4f4746(_0x51d3a3._0x29b997,0x22e,0x2cc,_0x51d3a3._0xd9083a)]('-C',String(_0x5cfb69[_0x4f4746(_0x51d3a3._0x243978,-0x2b,-0x50,_0x51d3a3._0x5d2747)]),_0x4f4746(_0x51d3a3._0x520a2e,0xf4,0x135,-_0x51d3a3._0x1b39fa)),_0x5cfb69[_0x4f4746(_0x51d3a3._0xfdfbe3,-0x8b,0x74,-_0x51d3a3._0x1390db)]&&!_0x5cfb69[_0x4f4746(0x1de,_0x51d3a3._0x1184b6,_0x51d3a3._0x18be5f,_0x51d3a3._0x572879)]&&_0x19f1d4[_0x4f4746(0x200,0x232,0x2bd,_0x51d3a3._0x2aa879)]('--glob',_0x5cfb69[_0x3ecbe7(-_0x51d3a3._0x199814,-_0x51d3a3._0x177a2f,-0xdf,-_0x51d3a3._0x199484)]),_0x19f1d4[_0x4f4746(_0x51d3a3._0x29b997,_0x51d3a3._0x25c70e,0x185,0x19e)](_0x5cfb69[_0x3ecbe7(0xc7,_0x51d3a3._0x5867f6,_0x51d3a3._0x3382d3,_0x51d3a3._0xf6a9f3)]??_0x5cfb69['cwd']),await new Promise((_0x3342cd,_0x4e62ef)=>{const _0x2c2e7b={_0x18c4b2:0x222,_0x1b8662:0x383,_0x19ea0a:0x2ae,_0x12fda8:0x324,_0x9e97b7:0x43f,_0x4d35d7:0x41e,_0x3e0035:0x3ae,_0x9b24fc:0x392,_0x36c9de:0x38a,_0x25d621:0x384},_0x52f32b={_0x1b6ab4:0xab},_0x3a3f42={_0x123f4a:0x9f,_0x2719ad:0x3e0},_0x9fc49b=_0x2ebcf7(_0x2ea706,_0x19f1d4,{'cwd':_0x5cfb69[_0x2581e0(_0x24af15._0x5aa319,0x3d0,0x362,0x40e)],'stdio':[_0xc9c94e(0x43e,0x352,0x478,0x45f),_0x2581e0(0x5fb,_0x24af15._0x48e552,_0x24af15._0xbc5807,0x4ce),_0x2581e0(_0x24af15._0xef4dbb,_0x24af15._0x3405bf,_0x24af15._0x1e514f,_0x24af15._0x4643b8)]});function _0x2581e0(_0x1cec78,_0x8e1a29,_0x334e41,_0x1187ca){return _0x4f4746(_0x1187ca-0x3bf,_0x8e1a29,_0x334e41-_0x5dae1b._0x389df7,_0x1187ca-0x40);}let _0x50c7b7='',_0x37bacb='';function _0xc9c94e(_0x1bf653,_0x2a2fd1,_0x488d4b,_0x1eb2d3){return _0x4f4746(_0x1bf653-0x34c,_0x2a2fd1,_0x488d4b-0x187,_0x1eb2d3-_0x3da1ea._0x2e15bb);}_0x9fc49b[_0xc9c94e(_0x24af15._0x21be6a,0x502,0x5a5,0x61e)]?.['on'](_0x2581e0(_0x24af15._0x483107,_0x24af15._0x354d77,0x509,_0x24af15._0x4ee1bb),_0x4e7c31=>{const _0x152a4b={_0x3a7ae8:0x13b,_0x32f6bc:0xa};function _0x2f8af1(_0x501c55,_0x9bfa8d,_0x59c80e,_0x579cfb){return _0xc9c94e(_0x59c80e- -0x3fb,_0x501c55,_0x59c80e-_0x152a4b._0x3a7ae8,_0x579cfb-_0x152a4b._0x32f6bc);}_0x50c7b7+=_0x4e7c31[_0x2f8af1(-0xe4,-_0xbcb1bd._0x3683d4,0x27,-_0xbcb1bd._0x3ebb96)]();}),_0x9fc49b[_0xc9c94e(0x507,0x46b,0x40a,0x60f)]?.['on'](_0xc9c94e(_0x24af15._0x54393c,_0x24af15._0xb8251c,0x3a2,0x40d),_0x47519e=>{function _0x3cebde(_0x25755c,_0x12099e,_0xe3d9cd,_0x5a0e2c){return _0x2581e0(_0x25755c-0x1e6,_0x5a0e2c,_0xe3d9cd-_0x3a3f42._0x123f4a,_0xe3d9cd- -_0x3a3f42._0x2719ad);}_0x37bacb+=_0x47519e[_0x3cebde(_0x28b916._0x573afe,_0x28b916._0x593140,0xb5,0x155)]();}),_0x9fc49b['on'](_0x2581e0(_0x24af15._0x18962b,0x4d0,_0x24af15._0x14b362,0x507),_0x120e16=>{const _0xdf4443={_0x120630:0x8d};if(_0x120e16===0x1&&_0x50c7b7===''){_0x3342cd([]);return;}function _0x32e709(_0x139c20,_0x47d4a6,_0x335d28,_0x31a8f7){return _0x2581e0(_0x139c20-_0xdf4443._0x120630,_0x139c20,_0x335d28-0xca,_0x335d28- -0xf3);}if(_0x120e16!==0x0&&_0x120e16!==0x1){_0x4e62ef(new Error('ripgrep\x20failed:\x20'+_0x37bacb));return;}const _0x1985fd=_0x5cfb69[_0x43e42d(_0x2c2e7b._0x18c4b2,0x2fd,_0x2c2e7b._0x1b8662,_0x2c2e7b._0x19ea0a)]??0x64,_0x1eacb4=[];for(const _0x47fedd of _0x50c7b7[_0x32e709(_0x2c2e7b._0x12fda8,_0x2c2e7b._0x9e97b7,0x438,_0x2c2e7b._0x4d35d7)](/\r?\n/)){if(_0x1eacb4['length']>=_0x1985fd)break;const _0x581bd8=parseMatchLine(_0x47fedd,_0xcc47b);if(_0x581bd8)_0x1eacb4[_0x43e42d(_0x2c2e7b._0x3e0035,_0x2c2e7b._0x9b24fc,_0x2c2e7b._0x36c9de,_0x2c2e7b._0x25d621)](_0x581bd8);}function _0x43e42d(_0x258fd5,_0x18ad21,_0x273733,_0x22d3a0){return _0x2581e0(_0x258fd5-_0x52f32b._0x1b6ab4,_0x273733,_0x273733-0x15c,_0x22d3a0- -0x23b);}_0x3342cd(_0x1eacb4);}),_0x9fc49b['on'](_0xc9c94e(_0x24af15._0x37857e,_0x24af15._0x55d173,0x5ee,_0x24af15._0x5a5971),_0x4e62ef);});}function createGlobTool(_0x271ab5={}){const _0x48dfe6={_0x3e6a51:0x2cd,_0x2784e5:0x479,_0x3f854e:0x12b,_0x179ef9:0x196,_0x3fe2ac:0x352,_0x250134:0x35a,_0x2026c7:0x2d3,_0x46d9f6:0x439,_0x5671e8:0x351,_0x318216:0x4db,_0x23fe68:0x418,_0x595da2:0x37f,_0xdc0912:0xf5,_0x5e5faa:0x2,_0x5c4d4c:0x33d,_0x24f68d:0x4d8,_0x40ca63:0x58f,_0x23b918:0x467,_0x1ad7e2:0x4b3},_0x213b58={_0x14fdf0:0x27a,_0x4b2c20:0x291,_0x12f4ec:0x1d3,_0x2afb78:0x1c6,_0x3a5f33:0x115,_0x58156c:0x131,_0x4e09da:0x100,_0x55e39b:0x61,_0x509409:0x47,_0x192b67:0x2c3,_0x30f5fb:0x1dd,_0x356326:0x2fe,_0x4fb787:0x253,_0x220295:0x172,_0x57e9ce:0x17d,_0x549c1c:0x112,_0x2ee90d:0x217,_0x356a58:0x11a,_0x14a8b2:0x1a0,_0x269a31:0x29b,_0xb2a5af:0x17b,_0x1e2691:0x13d,_0x169f10:0xb6,_0x339295:0x2fa,_0xb6d317:0x25a,_0x1e44f3:0xac,_0x2dea51:0x1f2,_0x1e9355:0x128,_0x2670cb:0xb3,_0x748f8a:0xa9,_0x46ee75:0x7e,_0x5780c1:0x4d,_0x6c3ccf:0x194,_0x2c0bc8:0x2ec,_0x4a3df7:0x260,_0x5507eb:0x289,_0x30911a:0x188,_0x267ab6:0x23b,_0x535890:0x6d,_0x54d677:0x2a0,_0x2547e8:0x2a9,_0x28d3f7:0x1e6,_0xde0775:0xc5,_0x1f263e:0x1e8,_0x5d12e2:0x30a,_0x28bb2c:0x70,_0x385585:0x240,_0x46af68:0x2eb,_0x39b17b:0x355,_0x2004b3:0x291,_0x510c47:0x9d,_0x2ae4b8:0xb9,_0x2e2462:0x7b,_0x36243a:0x18c},_0x5e2d10={_0x51004c:0x92},_0x3870eb={_0x4be48d:0x3e},_0x570885={_0x2f009a:0x3d8,_0x2723da:0x1bd},_0x401533=_0x1c059e[_0x342a12(0x31e,_0x48dfe6._0x3e6a51,0x494,0x3ab)](_0x271ab5[_0x342a12(0x41c,0x393,_0x48dfe6._0x2784e5,0x43a)]??process[_0x114886(-0x27f,-_0x48dfe6._0x3f854e,-0x21e,-_0x48dfe6._0x179ef9)]()),_0x3db5f1=(_0x271ab5[_0x342a12(0x3a7,0x48e,_0x48dfe6._0x3fe2ac,0x3e9)]??[])['map'](_0x228ae6=>_0x1c059e[_0x342a12(0x476,0x3fc,0x4c3,0x3ab)](_0x228ae6));function _0x342a12(_0x4d0f1e,_0x69ae22,_0x345bfe,_0x939b87){return _0x324926(_0x939b87-_0x570885._0x2f009a,_0x4d0f1e,_0x345bfe-_0x570885._0x2723da,_0x939b87-0x66);}const _0x310d06=_0x271ab5[_0x342a12(_0x48dfe6._0x250134,_0x48dfe6._0x2026c7,0x47e,0x3ae)]??0x64;function _0x114886(_0x43b367,_0x4640d9,_0x47b5d3,_0x159ab7){return _0x22ef16(_0x43b367,_0x159ab7- -0x28f,_0x47b5d3-0x75,_0x159ab7-_0x3870eb._0x4be48d);}const _0x2665ad=_0x271ab5[_0x342a12(0x3a2,_0x48dfe6._0x46d9f6,0x3a2,_0x48dfe6._0x5671e8)]??_0x342a12(0x3b1,0x3a9,_0x48dfe6._0x318216,0x461);return defineTool({'name':_0x2665ad,'description':_0x342a12(_0x48dfe6._0x23fe68,0x452,0x413,_0x48dfe6._0x595da2),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x114886(_0x48dfe6._0xdc0912,0xac,-0x61,-_0x48dfe6._0x5e5faa)},'path':{'type':_0x342a12(_0x48dfe6._0x5c4d4c,_0x48dfe6._0x24f68d,_0x48dfe6._0x40ca63,_0x48dfe6._0x23b918)},'limit':{'type':'number'}},'required':[_0x342a12(0x49f,0x5fd,_0x48dfe6._0x1ad7e2,0x4e9)]},async *'execute'(_0x6e415f){const _0x29f0e8={_0x3a3f5c:0x26b};if(_0x6e415f[_0x8deca5(0x3b1,_0x213b58._0x14fdf0,0x170,_0x213b58._0x4b2c20)][_0x3cdc4a(0xae,_0x213b58._0x12f4ec,_0x213b58._0x2afb78,0x1a7)]()[_0x8deca5(0x2b7,_0x213b58._0x3a5f33,0x138,0x18c)]===0x0)throw new ToolExecutionError(_0x3cdc4a(0x18e,0x121,_0x213b58._0x58156c,_0x213b58._0x4e09da),{});const _0x3d16fd=resolveAllowedPath(_0x401533,_0x3db5f1,_0x6e415f['path']??'.'),_0x2d8506=await _0x157cfe(_0x3d16fd)[_0x8deca5(-_0x213b58._0x55e39b,0x4f,0x175,_0x213b58._0x509409)](()=>null);if(!_0x2d8506?.['isDirectory']())throw new ToolExecutionError(_0x3cdc4a(_0x213b58._0x192b67,0x24f,0x2aa,0x1c9)+(_0x6e415f[_0x8deca5(0x1f0,_0x213b58._0x30f5fb,_0x213b58._0x356326,_0x213b58._0x4fb787)]??'.'),{'path':_0x6e415f[_0x8deca5(0x172,_0x213b58._0x220295,_0x213b58._0x57e9ce,0x253)]??'.'});const _0x1fe690=_0x6e415f[_0x3cdc4a(_0x213b58._0x549c1c,0x1b0,_0x213b58._0x2ee90d,_0x213b58._0x356a58)]??_0x310d06,_0x1d9f08=Math[_0x3cdc4a(_0x213b58._0x14a8b2,0x1d7,_0x213b58._0x269a31,0x305)](0x1,Math[_0x8deca5(_0x213b58._0xb2a5af,_0x213b58._0x1e2691,_0x213b58._0x169f10,0x1b6)](_0x1fe690)),_0x49e26a=[];let _0x36b40e=![];for await(const _0x5848f6 of files({'cwd':_0x3d16fd,'glob':[_0x6e415f[_0x8deca5(_0x213b58._0x339295,_0x213b58._0xb6d317,0x196,0x291)]]})){if(_0x49e26a[_0x8deca5(0x8b,0xa3,_0x213b58._0x1e44f3,0x18c)]>=_0x1d9f08){_0x36b40e=!![];break;}const _0x4e372f=await _0x157cfe(_0x1c059e[_0x3cdc4a(_0x213b58._0x2dea51,_0x213b58._0x1e9355,_0x213b58._0x2670cb,0x1bb)](_0x3d16fd,_0x5848f6))[_0x8deca5(-_0x213b58._0x748f8a,_0x213b58._0x46ee75,-_0x213b58._0x5780c1,_0x213b58._0x509409)](()=>null);_0x49e26a[_0x8deca5(0x23a,_0x213b58._0x6c3ccf,0x108,0x22c)]({'path':_0x5848f6,'mtime':_0x4e372f?.[_0x8deca5(_0x213b58._0x2c0bc8,0x30d,_0x213b58._0x4a3df7,_0x213b58._0x5507eb)]??0x0});}_0x49e26a[_0x3cdc4a(0x115,_0x213b58._0x30911a,_0x213b58._0x267ab6,_0x213b58._0x535890)]((_0x331fa1,_0x30ba5c)=>_0x30ba5c[_0x3cdc4a(0x19c,0x185,0x19d,0x1f3)]-_0x331fa1['mtime']);function _0x3cdc4a(_0x1d3b66,_0x265473,_0x3269b8,_0x482b4d){return _0x114886(_0x1d3b66,_0x265473-0x7f,_0x3269b8-0x5e,_0x265473-_0x29f0e8._0x3a3f5c);}const _0x4ca979=_0x49e26a[_0x3cdc4a(0x355,_0x213b58._0x54d677,0x37c,0x2cb)](_0x3a36e5=>_0x3a36e5[_0x3cdc4a(0x251,0x2ad,0x32c,0x392)]);function _0x8deca5(_0xe1c3e0,_0x3177f0,_0x1e491c,_0x36567a){return _0x342a12(_0x1e491c,_0x3177f0-_0x5e2d10._0x51004c,_0x1e491c-0xef,_0x36567a- -0x258);}const _0x965af4=_0x4ca979[_0x3cdc4a(_0x213b58._0x2547e8,_0x213b58._0x28d3f7,0x205,_0x213b58._0xde0775)]===0x0?_0x3cdc4a(0x112,0x163,0x34,_0x213b58._0x1f263e)+_0x6e415f[_0x3cdc4a(0x37b,0x2eb,_0x213b58._0x5d12e2,0x3f3)]:''+_0x4ca979[_0x8deca5(0x29,0x128,_0x213b58._0x28bb2c,0xce)]('\x0a')+(_0x36b40e?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');return yield createToolOutput(_0x965af4,{'pattern':_0x6e415f[_0x3cdc4a(_0x213b58._0x385585,_0x213b58._0x46af68,0x307,_0x213b58._0x39b17b)],'searchPath':_0x1c059e[_0x3cdc4a(_0x213b58._0x2004b3,0x19e,_0x213b58._0x510c47,_0x213b58._0x2ae4b8)](_0x401533,_0x3d16fd)||'.','matches':_0x4ca979,'count':_0x4ca979[_0x8deca5(0x2ab,_0x213b58._0x2e2462,0x27c,_0x213b58._0x36243a)],'truncated':_0x36b40e}),void 0x0;}});}import{stat as _0x55af11}from'fs/promises';import*as _0x4a1fb1 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x5322d1={}){const _0x2a3369={_0x352eda:0x1a1,_0x2fb703:0x20c,_0x44bb1:0x1a0,_0x12aa2f:0x32c,_0x5c13eb:0x246,_0x255547:0x2d7,_0x426db5:0x241,_0x493e44:0x23f,_0x436108:0x41b,_0x3e3667:0x313,_0x25ec44:0x3d3,_0x22e718:0x127,_0x48d081:0x1d,_0x33930e:0xaf,_0x376106:0x1c7,_0x12b2c2:0xad,_0x125792:0x26b,_0x551fab:0x1ce,_0x505446:0x2e0,_0x4cf20f:0x147,_0xa049d1:0x1a9,_0x26f307:0x4c0,_0x3befcf:0x44a,_0x4e05b6:0x581,_0xa114a3:0x511,_0xee5ae7:0x1ea,_0x256193:0x4f9,_0x4122cc:0x250,_0x369f0c:0x2c9},_0x39dcde={_0x29e972:0x500,_0x59986d:0x5ab,_0x38f8a7:0x57c,_0x227232:0x475,_0x149d8a:0x4cf,_0x5f575f:0x48f,_0x1a75fc:0x1a7,_0x4b4ee5:0x138,_0x4abab4:0x565,_0x581512:0x6d5,_0x18f0fa:0x382,_0x4f4d58:0x49c,_0x383b86:0x371,_0x3f0891:0x2fb,_0x4d7ae3:0x677,_0x421f98:0x440,_0x58c1a1:0x43f,_0x10f18d:0x4ec,_0x5502d9:0x47a,_0x54b98f:0x19f,_0x2c33f7:0x196,_0x35cf27:0x504,_0x15c5d7:0x4fc,_0x26c9b5:0x438,_0x4cd3d0:0x541,_0x5e989e:0x3cd,_0x59ece2:0x618,_0x1bdfa2:0x682,_0x26e547:0x581,_0x59d9a8:0x689,_0x1c88d2:0x35d,_0xc6de16:0x5a5,_0x1421ee:0x286,_0x4f9705:0x3c0,_0xca8374:0x3ce,_0x49c28f:0x20e,_0x54c196:0x2b6,_0x5ed5ee:0x2af,_0x28b39d:0x3c7,_0x133cc2:0x2c7,_0x13a3db:0x284,_0xa9b2f4:0x12f,_0x28258f:0x1ca,_0xa714d9:0x100,_0x1650e6:0x23b,_0x3ffd66:0x3ee,_0x30e552:0x2cb,_0x173aaf:0x1fd,_0x4b76f:0x122,_0xe719bd:0x1c1,_0x44e979:0x5c6,_0x79ee68:0x538,_0x44cfea:0x618,_0xbdcfb3:0x596,_0x2dcee4:0x53b,_0x230783:0x177,_0x3977b6:0x1f0,_0x174a1a:0x201,_0x340e16:0x2a2,_0x1138ac:0x266,_0xc0e2fd:0x1c0,_0x4ead47:0x517,_0x1f675d:0x56d,_0x48c997:0x482,_0x14ec14:0x2e6,_0x24c3cd:0x21f,_0x4a4403:0x400,_0x3e7c9b:0x4bc,_0xfaf077:0x517,_0x19c898:0x5b0,_0x48054e:0x59e,_0x43e41b:0x509,_0x2c4fa9:0x19b,_0x3aeaa0:0x210,_0x4a96a7:0x4a4,_0x126371:0x3f9,_0xa32428:0x5f4,_0x272172:0x4f2,_0x38565f:0x408,_0x1b305c:0x479,_0x371e32:0x3e3,_0x155ef8:0x376,_0xd23f95:0xa8,_0x1ff1d9:0xcd,_0x577849:0x12c,_0x517e3d:0x159,_0x45ea2e:0x1ea},_0x4f79fb={_0x220f1d:0x17a},_0x2f7385={_0x3b5736:0x13f,_0x210e11:0xdb},_0x306350={_0x5a1c25:0x1bc},_0x1d4e0f=_0x4a1fb1['resolve'](_0x5322d1[_0x3dd44b(_0x2a3369._0x352eda,_0x2a3369._0x2fb703,_0x2a3369._0x44bb1,0x179)]??process[_0x58300d(_0x2a3369._0x12aa2f,_0x2a3369._0x5c13eb,0x428,0x28d)]()),_0x2d7f75=(_0x5322d1['allowedDirs']??[])[_0x3dd44b(0x205,_0x2a3369._0x255547,_0x2a3369._0x426db5,_0x2a3369._0x493e44)](_0xbc6a60=>_0x4a1fb1[_0x58300d(0x404,0x329,0x4ce,0x3f1)](_0xbc6a60)),_0x421816=_0x5322d1[_0x58300d(0x407,_0x2a3369._0x436108,_0x2a3369._0x3e3667,_0x2a3369._0x25ec44)]??0x64;function _0x58300d(_0x5f410b,_0x570978,_0x8049c0,_0x3780ca){return _0x22ef16(_0x570978,_0x5f410b-0x233,_0x8049c0-0x1dc,_0x3780ca-_0x306350._0x5a1c25);}const _0x2090fb=_0x5322d1[_0x3dd44b(0xb8,0x149,-0x5f,_0x2a3369._0x22e718)]??'Grep';function _0x3dd44b(_0x39e548,_0x365f15,_0x13df5b,_0xcc8700){return _0x324926(_0x39e548-_0x2f7385._0x3b5736,_0x13df5b,_0x13df5b-0x1b8,_0xcc8700-_0x2f7385._0x210e11);}return defineTool({'name':_0x2090fb,'description':_0x3dd44b(_0x2a3369._0x48d081,-_0x2a3369._0x33930e,-0xe5,-0xb7),'inputSchema':{'type':_0x3dd44b(_0x2a3369._0x376106,_0x2a3369._0x12b2c2,0x273,_0x2a3369._0x125792),'properties':{'pattern':{'type':_0x3dd44b(_0x2a3369._0x551fab,_0x2a3369._0x505446,_0x2a3369._0x4cf20f,_0x2a3369._0xa049d1)},'path':{'type':_0x58300d(_0x2a3369._0x26f307,_0x2a3369._0x3befcf,_0x2a3369._0x4e05b6,_0x2a3369._0xa114a3)},'include':{'type':_0x3dd44b(0x1ce,_0x2a3369._0xee5ae7,0x18f,0x293)},'limit':{'type':'number'},'context':{'type':_0x58300d(0x432,0x3ea,0x51d,_0x2a3369._0x256193)}},'required':[_0x3dd44b(_0x2a3369._0x4122cc,0x373,_0x2a3369._0x369f0c,0x203)]},async *'execute'(_0x2f7d21){const _0x8c19b0={_0x23b783:0x3c8,_0x3794c7:0x48};if(_0x2f7d21['pattern'][_0x5454d9(_0x39dcde._0x29e972,_0x39dcde._0x59986d,0x5d8,_0x39dcde._0x38f8a7)]()[_0x5454d9(0x513,_0x39dcde._0x227232,_0x39dcde._0x149d8a,_0x39dcde._0x5f575f)]===0x0)throw new ToolExecutionError(_0x33f280(0x170,_0x39dcde._0x1a75fc,_0x39dcde._0x4b4ee5,0x7a),{});const _0x3ce8af=resolveAllowedPath(_0x1d4e0f,_0x2d7f75,_0x2f7d21[_0x5454d9(0x5da,0x4ca,_0x39dcde._0x4abab4,_0x39dcde._0x581512)]??'.'),_0x412002=await _0x55af11(_0x3ce8af)[_0x5454d9(0x3ce,_0x39dcde._0x18f0fa,_0x39dcde._0x4f4d58,_0x39dcde._0x383b86)](()=>null),_0x3d8192=_0x412002?.[_0x5454d9(0x3d3,0x43c,_0x39dcde._0x3f0891,0x482)]()??![],_0x3210fd=_0x412002?.[_0x5454d9(0x5ad,_0x39dcde._0x4d7ae3,0x550,0x4e2)]()??![];if(!_0x3d8192&&!_0x3210fd)throw new ToolExecutionError(_0x5454d9(_0x39dcde._0x421f98,_0x39dcde._0x58c1a1,_0x39dcde._0x10f18d,_0x39dcde._0x5502d9)+(_0x2f7d21['path']??'.'),{'path':_0x2f7d21['path']??'.'});const _0x5bdadf=_0x2f7d21[_0x33f280(_0x39dcde._0x54b98f,0x1f7,0x1c7,_0x39dcde._0x2c33f7)]??_0x421816,_0x252df2=Math[_0x5454d9(_0x39dcde._0x35cf27,0x4b9,0x42a,0x498)](0x1,Math[_0x5454d9(0x53d,_0x39dcde._0x15c5d7,0x465,0x652)](_0x5bdadf)),_0x35a67d=await search({'cwd':_0x3210fd?_0x3ce8af:_0x4a1fb1[_0x5454d9(_0x39dcde._0x26c9b5,_0x39dcde._0x4cd3d0,0x561,_0x39dcde._0x5e989e)](_0x3ce8af),'pattern':_0x2f7d21[_0x5454d9(_0x39dcde._0x59ece2,_0x39dcde._0x1bdfa2,_0x39dcde._0x26e547,_0x39dcde._0x59d9a8)],'glob':_0x3210fd?_0x2f7d21[_0x5454d9(0x3e3,0x4b2,0x324,_0x39dcde._0x1c88d2)]:void 0x0,'limit':_0x252df2,'file':_0x3d8192?_0x3ce8af:void 0x0,'context':_0x2f7d21['context']}),_0x3f3e38=new Map();function _0x33f280(_0x5c32b0,_0x300121,_0x54c35b,_0x3655b6){return _0x3dd44b(_0x54c35b-0xb2,_0x300121-0x11a,_0x300121,_0x3655b6-_0x4f79fb._0x220f1d);}for(const _0x35818c of _0x35a67d){if(!_0x3f3e38[_0x5454d9(0x479,0x3c4,0x4b2,_0x39dcde._0xc6de16)](_0x35818c[_0x33f280(_0x39dcde._0x1421ee,_0x39dcde._0x4f9705,0x2b6,0x3d2)])){const _0x38bb76=await _0x55af11(_0x35818c['filePath'])[_0x5454d9(_0x39dcde._0xca8374,0x3e5,_0x39dcde._0x15c5d7,0x4bb)](()=>null);_0x3f3e38[_0x33f280(0x6a,_0x39dcde._0x49c28f,0x102,0xf0)](_0x35818c['filePath'],{'matches':[],'mtime':_0x38bb76?.['mtimeMs']??0x0});}_0x3f3e38['get'](_0x35818c[_0x33f280(0x276,0x2b1,_0x39dcde._0x54c196,0x390)])?.[_0x33f280(_0x39dcde._0x5ed5ee,_0x39dcde._0x28b39d,_0x39dcde._0x133cc2,_0x39dcde._0x13a3db)]['push'](_0x35818c);}const _0x1ce4fa=[..._0x3f3e38[_0x33f280(0xbe,0x107,_0x39dcde._0xa9b2f4,0x63)]()][_0x33f280(_0x39dcde._0x28258f,_0x39dcde._0xa714d9,0x19f,0x26f)]((_0x1a0b8b,_0x30070c)=>_0x30070c[0x1][_0x5454d9(0x4b2,0x521,0x425,0x42c)]-_0x1a0b8b[0x1][_0x5454d9(0x4b2,0x567,0x5cb,0x532)]),_0x51311d=_0x35a67d[_0x33f280(_0x39dcde._0x1650e6,_0x39dcde._0x3ffd66,_0x39dcde._0x30e552,0x2f1)](_0x33f72b=>!_0x33f72b[_0x5454d9(0x526,0x5e3,0x41e,0x598)])[_0x5454d9(0x513,0x44d,0x583,0x47b)],_0x16555d=_0x35a67d[_0x33f280(0x13e,0x29d,_0x39dcde._0x173aaf,0x265)]>=_0x252df2;function _0x5454d9(_0x2080bf,_0x2f741d,_0x3802c6,_0x19d642){return _0x3dd44b(_0x2080bf-_0x8c19b0._0x23b783,_0x2f741d-0x184,_0x3802c6,_0x19d642-_0x8c19b0._0x3794c7);}const _0x4bec3c=_0x3d8192?_0x4a1fb1[_0x33f280(0x1f3,0x7f,_0x39dcde._0x4b76f,_0x39dcde._0xe719bd)](_0x3ce8af):_0x3ce8af;let _0x344fb5='';if(_0x35a67d[_0x5454d9(0x513,0x471,0x62f,_0x39dcde._0x149d8a)]===0x0)_0x344fb5=_0x5454d9(_0x39dcde._0x44e979,_0x39dcde._0x79ee68,0x631,0x4ff)+_0x2f7d21[_0x5454d9(_0x39dcde._0x44cfea,_0x39dcde._0xbdcfb3,_0x39dcde._0x2dcee4,0x70b)];else{_0x344fb5='Found\x20'+_0x51311d+'\x20match'+(_0x51311d===0x1?'':'es')+'\x0a';for(const [_0x30da4a,_0xf1d961]of _0x1ce4fa){const _0x4e5fa0=_0x3d8192?_0x4a1fb1['basename'](_0x30da4a):_0x4a1fb1[_0x33f280(_0x39dcde._0x230783,0x109,0x1b5,0xcb)](_0x4bec3c,_0x30da4a);_0x344fb5+='\x0a'+_0x4e5fa0+':\x0a';for(const _0xd96e92 of _0xf1d961[_0x33f280(0x1a4,_0x39dcde._0x3977b6,_0x39dcde._0x133cc2,0x23c)]){const _0x457521=_0xd96e92[_0x33f280(0x278,0x2f5,_0x39dcde._0x174a1a,0x24b)][_0x33f280(_0x39dcde._0x340e16,_0x39dcde._0x1138ac,_0x39dcde._0x173aaf,_0x39dcde._0xc0e2fd)]>MAX_LINE_LENGTH?_0xd96e92[_0x5454d9(_0x39dcde._0x4ead47,0x4de,_0x39dcde._0x1f675d,_0x39dcde._0x48c997)][_0x33f280(0x211,0x3ce,_0x39dcde._0x14ec14,_0x39dcde._0x24c3cd)](0x0,MAX_LINE_LENGTH)+_0x5454d9(_0x39dcde._0x4a4403,0x33a,_0x39dcde._0x3e7c9b,0x426):_0xd96e92[_0x5454d9(_0x39dcde._0xfaf077,_0x39dcde._0x19c898,_0x39dcde._0x48054e,_0x39dcde._0x43e41b)],_0x4b08f9=_0xd96e92[_0x33f280(_0x39dcde._0x2c4fa9,0xfa,_0x39dcde._0x3aeaa0,0x26b)]?'\x20\x20':'>\x20';_0x344fb5+=_0x4b08f9+_0x5454d9(0x564,_0x39dcde._0x4a96a7,0x629,0x56b)+_0xd96e92[_0x5454d9(0x4d1,_0x39dcde._0x126371,_0x39dcde._0xa32428,0x549)]+':\x20'+_0x457521+'\x0a';}}_0x16555d&&(_0x344fb5+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x5d0123={'searchPath':_0x4a1fb1['relative'](_0x1d4e0f,_0x3ce8af)||'.','pattern':_0x2f7d21['pattern'],'matchCount':_0x51311d,'fileCount':_0x3f3e38[_0x5454d9(_0x39dcde._0x272172,_0x39dcde._0x38565f,_0x39dcde._0x1b305c,0x3d6)],'truncated':_0x16555d};return _0x3210fd&&_0x2f7d21[_0x5454d9(_0x39dcde._0x371e32,0x40f,0x45f,_0x39dcde._0x155ef8)]!==void 0x0&&(_0x5d0123[_0x33f280(0x87,-0x16,0xcd,0xd8)]=_0x2f7d21[_0x33f280(_0x39dcde._0xd23f95,-0x5b,_0x39dcde._0x1ff1d9,_0x39dcde._0x577849)]),yield createToolOutput(_0x344fb5[_0x33f280(0x15e,_0x39dcde._0x517e3d,_0x39dcde._0x45ea2e,0xc2)](),_0x5d0123),void 0x0;}});}import{readdir as _0x459987,readFile as _0x10a4e3,stat as _0x537053}from'fs/promises';import*as _0x4c4afa from'path';import*as _0x272419 from'yaml';async function countTextLines(_0x42d13f){const _0x849f17={_0x5c1a37:0x1e7,_0x3ecf82:0x292,_0x8590e7:0x13e,_0x5338b4:0x140,_0x50737b:0x33,_0x20adf2:0x26e,_0xf12e46:0x395,_0x38001b:0x143,_0x3cffe7:0xde,_0x3f8744:0x6d},_0x4d52fd={_0x249b73:0x52},_0x21ed00={_0x2f87e9:0x9f,_0x56a1ed:0x21,_0x9a47f5:0x1e7},_0x35b2b6=await _0x10a4e3(_0x42d13f)[_0x5736fd(0x16c,0x164,_0x849f17._0x5c1a37,_0x849f17._0x3ecf82)](()=>null);function _0x5736fd(_0x3bf784,_0x71e3ef,_0x209c0d,_0xaaacba){return _0x22ef16(_0x3bf784,_0x71e3ef-_0x21ed00._0x2f87e9,_0x209c0d-_0x21ed00._0x56a1ed,_0xaaacba-_0x21ed00._0x9a47f5);}if(!_0x35b2b6||isProbablyBinary(_0x35b2b6))return void 0x0;function _0x45d193(_0x189bae,_0x4682cd,_0x5307ce,_0xbf32fd){return _0x22ef16(_0xbf32fd,_0x5307ce- -0x1b3,_0x5307ce-_0x4d52fd._0x249b73,_0xbf32fd-0x63);}return _0x35b2b6[_0x45d193(-_0x849f17._0x8590e7,-_0x849f17._0x5338b4,-_0x849f17._0x50737b,-0x14c)](_0x5736fd(0x234,_0x849f17._0x20adf2,_0x849f17._0xf12e46,_0x849f17._0x38001b))[_0x45d193(0x16e,_0x849f17._0x3cffe7,0x63,-_0x849f17._0x3f8744)](/\r?\n/)[_0x45d193(-0xad,-0x88,0x57,0xec)];}function createLsTool(_0x348149={}){const _0x31ebaa={_0x5d3883:0x1fe,_0x1f5015:0xd1,_0x393b93:0x126,_0x6b1f02:0x208,_0x4ed515:0x239,_0x35066d:0x3ef,_0x7e3451:0x1c7,_0x577946:0x2ef,_0x9e9ff5:0x2f7,_0x2e2800:0x38f,_0x99189d:0x1bd,_0x107660:0x2b3,_0x356b06:0x3fa,_0x5f55b3:0x2ac,_0x4cc240:0x1e2},_0x27029b={_0x25fa09:0x21,_0x5f49b8:0xc4,_0x2b283a:0x2c,_0x52e85a:0xfd,_0x3726ff:0xdc,_0x3f0947:0xef,_0x1bc3f2:0x188,_0x3520a5:0xa8,_0x4f560d:0x6b,_0x501cd7:0x28a,_0x13caca:0x266,_0x6061a1:0x38e,_0x5eb4b7:0x14f,_0x10567b:0x12e,_0x2ba50d:0x110,_0x53c7d2:0x57,_0x4be4c2:0x73,_0x53cda5:0x14a,_0x14458f:0xdb,_0x1c71d1:0x178,_0x2bd0f2:0x6,_0x49ff95:0xea,_0x4fb7d4:0x22,_0x24789c:0x31e,_0x364186:0x206,_0xdb2b37:0xdf,_0x27ce0c:0x1b4,_0x3ecc50:0xee,_0x2b6099:0x3f,_0x5c33e2:0x166,_0x2ff83d:0x49,_0x190710:0x132,_0x483df3:0x16,_0x1bf888:0x276,_0x28d86b:0x21e,_0x228b26:0x131},_0x1c0f8f={_0x4baaf2:0x325},_0x2d49f7={_0x1b8f91:0x67,_0x28b4ad:0xd1},_0x444f66={_0x3f3ea5:0x2de,_0x1b15b2:0x19d},_0x62acc6={_0xf03807:0x2e};function _0x338afb(_0x1a08d9,_0x4795c5,_0x3544c4,_0x5f3d00){return _0x22ef16(_0x5f3d00,_0x4795c5-0x2d,_0x3544c4-0x166,_0x5f3d00-_0x62acc6._0xf03807);}const _0x37fa0b=_0x4c4afa['resolve'](_0x348149[_0x338afb(0x2a3,0x28d,_0x31ebaa._0x5d3883,0x322)]??process[_0x338afb(_0x31ebaa._0x1f5015,_0x31ebaa._0x393b93,_0x31ebaa._0x6b1f02,_0x31ebaa._0x4ed515)]()),_0x16532f=(_0x348149[_0x4ef511(_0x31ebaa._0x35066d,0x29b,_0x31ebaa._0x7e3451,_0x31ebaa._0x577946)]??[])[_0x338afb(_0x31ebaa._0x9e9ff5,0x2f1,0x2e6,0x246)](_0x3e6320=>_0x4c4afa['resolve'](_0x3e6320));function _0x4ef511(_0x3bda7e,_0x531dc2,_0x4cd734,_0x1d65af){return _0x324926(_0x1d65af-_0x444f66._0x3f3ea5,_0x531dc2,_0x4cd734-0x3c,_0x1d65af-_0x444f66._0x1b15b2);}const _0x1d118e=_0x348149['name']??'Ls';return defineTool({'name':_0x1d118e,'description':_0x338afb(0x2bc,0x294,0x23a,_0x31ebaa._0x2e2800),'inputSchema':{'type':_0x338afb(_0x31ebaa._0x99189d,_0x31ebaa._0x107660,0x19d,0x331),'properties':{'path':{'type':'string'},'limit':{'type':_0x4ef511(_0x31ebaa._0x356b06,_0x31ebaa._0x5f55b3,_0x31ebaa._0x4cc240,0x2df)}}},async *'execute'(_0x4482ba){function _0x4df1ee(_0x167015,_0x4f338f,_0x5eae55,_0x1de8b2){return _0x338afb(_0x167015-_0x2d49f7._0x1b8f91,_0x4f338f- -_0x2d49f7._0x28b4ad,_0x5eae55-0x60,_0x5eae55);}const _0x12438c=_0x4482ba[_0x4df1ee(0x35c,0x22d,0x19c,0x255)]??'.',_0x470c0d=resolveAllowedPath(_0x37fa0b,_0x16532f,_0x12438c),_0x4df111=await _0x537053(_0x470c0d)[_0x4df1ee(-0x103,_0x27029b._0x25fa09,_0x27029b._0x5f49b8,-_0x27029b._0x2b283a)](()=>null);if(!_0x4df111?.['isDirectory']())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x12438c,{'path':_0x12438c});const _0x4ec222=_0x4482ba['limit']??0x3e8,_0x438211=Math['min'](Math[_0x221a72(-0x19e,-0x205,-_0x27029b._0x52e85a,-_0x27029b._0x3726ff)](Math['trunc'](_0x4ec222),0x1),0x2710);function _0x221a72(_0x34a915,_0x395a32,_0x32e6a9,_0x1b72a8){return _0x338afb(_0x34a915-0x139,_0x32e6a9- -_0x1c0f8f._0x4baaf2,_0x32e6a9-0x23,_0x395a32);}const _0x42cf48=await _0x459987(_0x470c0d),_0x88b5d2=[];for(const _0x19fe06 of _0x42cf48[_0x221a72(_0x27029b._0x3f0947,0x78,-0x5,0xc5)](0x0,_0x438211)){const _0x397b78=_0x4c4afa[_0x4df1ee(_0x27029b._0x1bc3f2,_0x27029b._0x3520a5,_0x27029b._0x4f560d,0x112)](_0x470c0d,_0x19fe06),_0x1664ff=await _0x537053(_0x397b78)['catch'](()=>null);if(!_0x1664ff)continue;let _0x5ad8a2=_0x4df1ee(_0x27029b._0x501cd7,_0x27029b._0x13caca,0x158,_0x27029b._0x6061a1);if(_0x1664ff[_0x4df1ee(0x136,0x26,-0x57,_0x27029b._0x5eb4b7)]())_0x5ad8a2=_0x221a72(-_0x27029b._0x10567b,-0x20,-0x70,-0x50);else{if(_0x1664ff['isDirectory']())_0x5ad8a2=_0x4df1ee(0x12f,0x23f,0x1ee,0x253);else{if(_0x1664ff[_0x4df1ee(0x114,_0x27029b._0x2ba50d,_0x27029b._0x53c7d2,0x19f)]())_0x5ad8a2=_0x4df1ee(_0x27029b._0x4be4c2,0x66,_0x27029b._0x53cda5,_0x27029b._0x14458f);}}const _0x6af17={'name':_0x19fe06,'type':_0x5ad8a2,'size':_0x1664ff[_0x221a72(-_0x27029b._0x1c71d1,-_0x27029b._0x2bd0f2,-0x10f,-0x1c2)],'mtime':_0x1664ff[_0x221a72(_0x27029b._0x49ff95,_0x27029b._0x4fb7d4,0xf,-0xe)],'mode':_0x1664ff['mode']},_0x37b3f7=_0x5ad8a2==='file'?await countTextLines(_0x397b78):void 0x0;if(_0x37b3f7!==void 0x0)_0x6af17['lines']=_0x37b3f7;_0x88b5d2[_0x4df1ee(_0x27029b._0x24789c,_0x27029b._0x364186,_0x27029b._0xdb2b37,0x130)](_0x6af17);}_0x88b5d2[_0x221a72(-0x12b,-_0x27029b._0x27ce0c,-0x14c,-0x1f9)]((_0x5c9c56,_0x230338)=>_0x5c9c56[_0x4df1ee(-0x6,0xd3,0x12b,0x1ff)][_0x221a72(-0x214,-0x2ba,-0x198,-0x169)](_0x230338[_0x221a72(-0x1f8,-0x125,-0x181,-0x29f)]));const _0x229627={'path':_0x12438c,'total':_0x88b5d2[_0x221a72(-0x157,0x29,-_0x27029b._0x3ecc50,-0x1ac)],'truncated':_0x42cf48[_0x4df1ee(_0x27029b._0x2b6099,_0x27029b._0x5c33e2,0x167,0x246)]>_0x438211,'entries':_0x88b5d2};return yield createToolOutput(_0x272419[_0x221a72(-_0x27029b._0x2ff83d,-_0x27029b._0x190710,-0x19,-_0x27029b._0x483df3)](_0x229627,{'indent':0x2,'lineWidth':0x0})[_0x4df1ee(0x1bf,0x1fa,_0x27029b._0x1bf888,0x154)](),{'path':_0x12438c,'total':_0x88b5d2[_0x4df1ee(0x159,0x166,0x7d,0x27d)],'truncated':_0x42cf48[_0x221a72(-_0x27029b._0x28d86b,-_0x27029b._0x228b26,-_0x27029b._0x3ecc50,-0x18b)]>_0x438211,'limit':_0x438211,'entries':_0x88b5d2}),void 0x0;}});}import{stat as _0x3bd09c}from'fs/promises';import _0x27fa61 from'path';import{fileURLToPath as _0x289588}from'url';function severityName(_0x210a9e){const _0x563d4a={_0x36e71e:0x14f,_0x5a2d54:0x11d,_0x200129:0x1c2,_0x3d10f4:0x1ba,_0x406652:0x145,_0x4d362b:0x137,_0x430a0b:0x5b,_0x16a614:0x21,_0x359e7c:0x1eb,_0x60436b:0x11d},_0x196221={_0x568330:0x32},_0x4bcc7f={_0x779b1f:0x91,_0xd19483:0x15b};function _0x127293(_0x13403a,_0x1b11ca,_0x2fd46d,_0x8917bd){return _0x324926(_0x8917bd-_0x4bcc7f._0x779b1f,_0x13403a,_0x2fd46d-0xe5,_0x8917bd-_0x4bcc7f._0xd19483);}function _0x4a2c9f(_0x4fbf24,_0x19226b,_0x3ef5c9,_0x4bfcf6){return _0x324926(_0x3ef5c9- -0x6d,_0x4bfcf6,_0x3ef5c9-0x174,_0x4bfcf6-_0x196221._0x568330);}switch(_0x210a9e){case 0x1:return _0x4a2c9f(-0x11f,-_0x563d4a._0x36e71e,-_0x563d4a._0x5a2d54,-_0x563d4a._0x200129);case 0x2:return _0x127293(_0x563d4a._0x3d10f4,_0x563d4a._0x406652,0x1d5,0x1ae);case 0x3:return'Information';case 0x4:return _0x127293(_0x563d4a._0x4d362b,_0x563d4a._0x430a0b,0x35,_0x563d4a._0x16a614);default:return _0x127293(0xdc,_0x563d4a._0x359e7c,0x1ed,_0x563d4a._0x60436b);}}function formatSingleHover(_0x31b653){const _0xc30fb5={_0x4e9c6f:0x231,_0x11e3a5:0x14e,_0x392976:0x17,_0x207df0:0x126,_0x4a7a77:0x98,_0x169b64:0xd,_0x45385e:0x7,_0x5669b6:0x1f8,_0x344be2:0xb0,_0x366a51:0xe0,_0x46261c:0xb9,_0x46a2f3:0x140,_0x34765e:0x1aa,_0x4b9984:0x85,_0x85f36d:0x2e,_0x411664:0x7f,_0x5cc0a7:0x75,_0x3e40cd:0xbd,_0x14c121:0x1e7,_0x29f062:0x228},_0x25d55a={_0x174e63:0x2e},_0x498a7c={_0x3817c3:0xad,_0x40f354:0x79},_0x5abe63=_0x31b653['contents'];if(typeof _0x5abe63===_0x1bcd23(0x181,0x12d,0x21d,_0xc30fb5._0x4e9c6f))return _0x5abe63;if(Array[_0x1bcd23(-0xbb,0x6e,-0x84,_0xc30fb5._0x11e3a5)](_0x5abe63))return _0x5abe63[_0x50f412(_0xc30fb5._0x392976,_0xc30fb5._0x207df0,_0xc30fb5._0x4a7a77,-0x81)](_0x310e81=>typeof _0x310e81===_0x50f412(-0x3d,0xf,0x61,0xc2)?_0x310e81:_0x310e81[_0x1bcd23(0x19b,0x87,0xd0,-0x2a)])[_0x50f412(-_0xc30fb5._0x169b64,_0xc30fb5._0x45385e,0xac,-0x4a)](Boolean)[_0x50f412(-_0xc30fb5._0x5669b6,-_0xc30fb5._0x344be2,-_0xc30fb5._0x366a51,-0x47)]('\x0a\x0a');function _0x1bcd23(_0x28ac5b,_0x3883e2,_0x56ab0a,_0x164c42){return _0x324926(_0x3883e2-0x9e,_0x28ac5b,_0x56ab0a-_0x498a7c._0x3817c3,_0x164c42-_0x498a7c._0x40f354);}function _0x50f412(_0x5baa40,_0x391ba1,_0x4861d0,_0x5a2929){return _0x324926(_0x4861d0- -_0x25d55a._0x174e63,_0x5baa40,_0x4861d0-0x6f,_0x5a2929-0x49);}if('kind'in _0x5abe63)return _0x5abe63[_0x1bcd23(0xa2,0x87,0x139,_0xc30fb5._0x46261c)];return _0x5abe63[_0x1bcd23(0x225,0xf7,_0xc30fb5._0x46a2f3,_0xc30fb5._0x34765e)]?_0x50f412(-_0xc30fb5._0x4b9984,_0xc30fb5._0x366a51,_0xc30fb5._0x85f36d,_0xc30fb5._0x411664)+_0x5abe63[_0x50f412(-_0xc30fb5._0x5cc0a7,0x17,0x2b,_0xc30fb5._0x3e40cd)]+'\x0a'+_0x5abe63['value']+_0x50f412(-_0xc30fb5._0x14c121,-_0xc30fb5._0x29f062,-0x15f,-0x183):_0x5abe63['value'];}function formatHover(_0xac28b0){const _0x4a7969={_0x3be335:0x4a3,_0x27eedb:0x452,_0x32b775:0x518,_0x4469f9:0x444,_0x482e39:0x561,_0x152cd8:0x50c,_0x437e47:0x316,_0x46d70b:0x565,_0x4f0684:0x681},_0x359b5d={_0x2016ca:0x32,_0x15717d:0xd8},_0x346f43={_0xb4d390:0x9d};function _0x2123a1(_0x421cee,_0x480563,_0x41e692,_0x4c0ed9){return _0x324926(_0x4c0ed9-0x446,_0x480563,_0x41e692-_0x346f43._0xb4d390,_0x4c0ed9-0x118);}function _0xe022f0(_0xd939ab,_0x39e1f9,_0x5bdb0f,_0x8bef94){return _0x22ef16(_0xd939ab,_0x8bef94-0x1ca,_0x5bdb0f-_0x359b5d._0x2016ca,_0x8bef94-_0x359b5d._0x15717d);}if(_0xac28b0[_0x2123a1(_0x4a7969._0x3be335,0x32c,0x549,_0x4a7969._0x27eedb)]===0x0)return'No\x20hover\x20information';return _0xac28b0[_0x2123a1(_0x4a7969._0x32b775,_0x4a7969._0x4469f9,_0x4a7969._0x482e39,_0x4a7969._0x152cd8)](formatSingleHover)[_0xe022f0(0x1ed,0x25a,0x2a2,_0x4a7969._0x437e47)](_0x2123a1(_0x4a7969._0x46d70b,0x501,_0x4a7969._0x4f0684,0x566));}function locationPath(_0x496d12){if(!_0x496d12['startsWith']('file://'))return _0x496d12;return _0x289588(_0x496d12);}function formatLocations(_0x8e8a05){const _0x4557e2={_0x1fb702:0x85,_0x596f69:0x17d},_0x47a781={_0x1d15c1:0x53,_0x1d6bc7:0xb},_0x3c6bfe={_0x4f88f2:0x268},_0x54407={_0x4b1afd:0x31,_0x581351:0xa7};function _0x306a4c(_0x361621,_0x626582,_0x4a47c1,_0x33cfcc){return _0x22ef16(_0x361621,_0x4a47c1-_0x54407._0x4b1afd,_0x4a47c1-_0x54407._0x581351,_0x33cfcc-0xc6);}if(_0x8e8a05['length']===0x0)return'No\x20locations\x20found';return _0x8e8a05['map'](_0x1dda24=>{const _0x1fd938={_0x4c6996:0xc7};function _0x3e5aa9(_0x4797ce,_0x3461c0,_0x2e83b0,_0x4c9ad7){return _0x7ca6(_0x4797ce-_0x1fd938._0x4c6996,_0x3461c0);}const _0x3ddcce=_0x1dda24[_0x3a10c9(0x187,-0x4e,0x9f,0x58)][_0x3e5aa9(0x1d9,0x1de,0x1db,0x1fd)];function _0x3a10c9(_0x2d07d3,_0x13fb99,_0xb3af71,_0x1845b2){return _0x7ca6(_0x1845b2- -_0x3c6bfe._0x4f88f2,_0x13fb99);}return locationPath(_0x1dda24['uri'])+':'+(_0x3ddcce['line']+0x1)+':'+(_0x3ddcce[_0x3a10c9(_0x47a781._0x1d15c1,-0xb8,-_0x47a781._0x1d6bc7,-0xb2)]+0x1);})[_0x306a4c(_0x4557e2._0x1fb702,0x11d,_0x4557e2._0x596f69,0xbb)]('\x0a');}function isDocumentSymbol(_0x4214a0){return'range'in _0x4214a0&&'selectionRange'in _0x4214a0;}function formatSymbols(_0xa78908){const _0x24fe49={_0x9246aa:0xae,_0x2c4f7:0x33d,_0x4e0db0:0x251,_0x1d0bfe:0x120,_0x5a1c6c:0x144,_0x48bc45:0x16a},_0x15d8af={_0x4e9a64:0x407,_0x585690:0x3a2,_0x42819d:0x7,_0x292361:0x467,_0x50a205:0x338,_0x519c3c:0x351,_0x25d115:0x44f,_0x2c19c6:0x4c5,_0x15bf9a:0x3d7,_0x15b13c:0x579,_0x224308:0x5a5,_0x8285c2:0x2dd,_0x1ff620:0x3fd,_0x8c181c:0x4b1,_0x34e4c6:0x320,_0x1b4b9b:0x133,_0x49336f:0x61,_0x3535d3:0x429,_0x3dae54:0x42c,_0x3c91c8:0x424,_0x141bd1:0x234,_0x5caf9a:0x507,_0x527e77:0x3ec,_0x32e5da:0x1b6,_0x174007:0x280},_0x570ff5={_0x57673c:0x3d7};function _0x50ea22(_0x45ef3d,_0xbd3b71,_0x2c11ac,_0x1d1725){return _0x22ef16(_0x1d1725,_0x2c11ac-0x1e,_0x2c11ac-0xd6,_0x1d1725-0x1f2);}if(_0xa78908[_0x3c36a2(0x5e,0x6e,0x46,-_0x24fe49._0x9246aa)]===0x0)return _0x50ea22(0x2ec,0x27f,0x2c7,0x2d8);function _0x3c36a2(_0xe7ab80,_0x267cb3,_0x54422a,_0x59e7f5){return _0x324926(_0xe7ab80-0x52,_0x59e7f5,_0x54422a-0x7d,_0x59e7f5-0x5);}return _0xa78908[_0x50ea22(_0x24fe49._0x2c4f7,0x395,0x2e2,_0x24fe49._0x4e0db0)](_0x54f75c=>{const _0x37a6a6={_0x285b4d:0x36,_0x36de52:0xe2};function _0x31cc49(_0x158ae3,_0x117594,_0x14d24c,_0x416fd4){return _0x3c36a2(_0x117594-_0x570ff5._0x57673c,_0x117594-0x165,_0x14d24c-0x141,_0x416fd4);}if(isDocumentSymbol(_0x54f75c))return _0x54f75c[_0x31cc49(_0x15d8af._0x4e9a64,_0x15d8af._0x585690,0x416,0x472)]+'\x20('+_0x54f75c[_0x429e43(_0x15d8af._0x42819d,0x3b,0xd2,0x100)]+_0x31cc49(0x430,0x39d,_0x15d8af._0x292361,_0x15d8af._0x50a205)+(_0x54f75c['range'][_0x31cc49(_0x15d8af._0x519c3c,0x359,0x34e,0x2dc)][_0x31cc49(_0x15d8af._0x25d115,_0x15d8af._0x2c19c6,_0x15d8af._0x15bf9a,0x52e)]+0x1)+':'+(_0x54f75c[_0x31cc49(_0x15d8af._0x15b13c,0x507,0x51d,_0x15d8af._0x224308)]['start'][_0x31cc49(_0x15d8af._0x8285c2,_0x15d8af._0x1ff620,_0x15d8af._0x8c181c,_0x15d8af._0x34e4c6)]+0x1)+']';function _0x429e43(_0x173ac9,_0x19aca2,_0x565453,_0x26b478){return _0x3c36a2(_0x173ac9- -0x138,_0x19aca2-_0x37a6a6._0x285b4d,_0x565453-_0x37a6a6._0x36de52,_0x565453);}return _0x54f75c[_0x429e43(-0x16d,-0x118,-_0x15d8af._0x1b4b9b,-0x105)]+'\x20('+_0x54f75c[_0x429e43(0x7,0x2d,-0xc7,_0x15d8af._0x49336f)]+')\x20'+locationPath(_0x54f75c['location']['uri'])+':'+(_0x54f75c['location']['range'][_0x31cc49(0x34f,0x359,0x409,_0x15d8af._0x3535d3)][_0x31cc49(_0x15d8af._0x3dae54,0x4c5,_0x15d8af._0x3c91c8,0x5e9)]+0x1)+':'+(_0x54f75c[_0x429e43(-0x18f,-0x21c,-_0x15d8af._0x141bd1,-0x200)][_0x31cc49(0x5f3,_0x15d8af._0x5caf9a,_0x15d8af._0x527e77,0x5d1)][_0x429e43(-_0x15d8af._0x32e5da,-0x1ef,-0x1c6,-_0x15d8af._0x174007)]['character']+0x1);})[_0x50ea22(_0x24fe49._0x1d0bfe,_0x24fe49._0x5a1c6c,_0x24fe49._0x48bc45,0x240)]('\x0a');}function formatDiagnostics(_0x2cb1bf){const _0x2d5e68={_0x5bfbac:0x3bc,_0x517b1b:0x2fe,_0x2a4114:0x498,_0x49156f:0x388,_0xd38e53:0x48d,_0x1af97a:0x2fb,_0x122deb:0x31e},_0x44e99f={_0x4e0c39:0x50c,_0x4d2ff9:0x5dd,_0x494e2d:0x601,_0xf21b67:0x475,_0x53d075:0x38c,_0x330f51:0x5f3,_0x460e5c:0x5b3,_0x22028c:0x5bf,_0x2bd519:0x4be},_0x46ed31={_0x4c9489:0x1b2,_0x18cfad:0x17d,_0x41310c:0x11},_0x1efdb1={_0x528089:0x21};function _0x1ceba1(_0x2e4214,_0x126551,_0x2d476b,_0x6f26fa){return _0x324926(_0x2d476b-0x3ad,_0x2e4214,_0x2d476b-_0x1efdb1._0x528089,_0x6f26fa-0x88);}function _0x46a44(_0x193f1c,_0x33fd8d,_0x1e3ae7,_0x8ec466){return _0x22ef16(_0x1e3ae7,_0x193f1c-_0x46ed31._0x4c9489,_0x1e3ae7-_0x46ed31._0x18cfad,_0x8ec466-_0x46ed31._0x41310c);}if(_0x2cb1bf[_0x46a44(_0x2d5e68._0x5bfbac,0x366,0x3c6,_0x2d5e68._0x517b1b)]===0x0)return _0x1ceba1(0x31a,_0x2d5e68._0x2a4114,_0x2d5e68._0x49156f,_0x2d5e68._0xd38e53);return _0x2cb1bf['map'](_0x5a80e5=>{const _0x577c2a={_0x530ea5:0x4af,_0x2206fb:0x16a},_0x168d6b={_0x332ec2:0x173,_0x4fc444:0x114},_0x1e9c59=_0x5a80e5[_0x256e0a(_0x44e99f._0x4e0c39,0x6fe,_0x44e99f._0x4d2ff9,_0x44e99f._0x494e2d)][_0x4fe64e(-0xf9,-0xb5,-0x11e,-0x1d2)];function _0x256e0a(_0x2ff2d9,_0x550db8,_0xf69e03,_0x12b51f){return _0x46a44(_0x12b51f-_0x168d6b._0x332ec2,_0x550db8-0x11,_0x550db8,_0x12b51f-_0x168d6b._0x4fc444);}function _0x4fe64e(_0x11b9a6,_0x1688fc,_0xb1379c,_0x49dfcf){return _0x1ceba1(_0x1688fc,_0x1688fc-0x73,_0x49dfcf- -_0x577c2a._0x530ea5,_0x49dfcf-_0x577c2a._0x2206fb);}return severityName(_0x5a80e5[_0x256e0a(0x3a2,_0x44e99f._0xf21b67,_0x44e99f._0x53d075,0x43b)])+'\x20['+(_0x1e9c59[_0x256e0a(_0x44e99f._0x330f51,0x5c9,_0x44e99f._0x460e5c,_0x44e99f._0x22028c)]+0x1)+':'+(_0x1e9c59['character']+0x1)+']\x20'+_0x5a80e5[_0x256e0a(0x572,0x4c9,_0x44e99f._0x2bd519,0x5e6)];})[_0x1ceba1(0x2e1,0x405,_0x2d5e68._0x1af97a,_0x2d5e68._0x122deb)]('\x0a');}function formatIncomingCalls(_0x178c04){const _0x5cee9a={_0xe59ca3:0x1f4,_0x4a0bc5:0x414,_0x54acbf:0x37f,_0x43efaf:0x49f,_0x5dc8d1:0x44b,_0x1ef839:0x207},_0x33da59={_0x5af5ed:0xc0,_0x214469:0xe};if(_0x178c04[_0x5ba072(0x3ac,0x2c5,0x2a8,0x319)]===0x0)return _0x5ba072(_0x5cee9a._0xe59ca3,0x310,0x310,_0x5cee9a._0x4a0bc5);function _0x5ba072(_0xb45e51,_0x32059c,_0x4c3851,_0x150f9d){return _0x22ef16(_0x150f9d,_0x32059c-0xbb,_0x4c3851-_0x33da59._0x5af5ed,_0x150f9d-_0x33da59._0x214469);}function _0x28952b(_0x9b7ffe,_0x188347,_0x2d7c76,_0x19ed9e){return _0x324926(_0x9b7ffe-0x1b2,_0x188347,_0x2d7c76-0x4f,_0x19ed9e-0xfd);}return _0x178c04[_0x5ba072(0x2ad,_0x5cee9a._0x54acbf,_0x5cee9a._0x43efaf,_0x5cee9a._0x5dc8d1)](_0x4053a6=>_0x4053a6['from'][_0x28952b(0x12b,-0x4,0x1e,0x7c)])[_0x5ba072(0x279,_0x5cee9a._0x1ef839,0x28d,0x2c1)]('\x0a');}function formatOutgoingCalls(_0x41647e){const _0x3b5d52={_0x213ed6:0x246,_0x248eec:0x134,_0x585c27:0x21b,_0x5a6abc:0x39d,_0x587cd4:0x2ab,_0x18f367:0x3eb,_0x4a37e4:0x2e4,_0x20bd12:0x8c,_0x56d5d7:0x274},_0x264d59={_0x573dae:0x11,_0x228df5:0x188},_0xfb1f62={_0x5da4a1:0x1e5};function _0x19d47e(_0x520e71,_0x1ac943,_0x58def3,_0x1437d4){return _0x324926(_0x58def3-0x254,_0x1437d4,_0x58def3-0xe8,_0x1437d4-_0xfb1f62._0x5da4a1);}function _0x18ac93(_0xad0894,_0x56f03b,_0x101a62,_0x54afe9){return _0x22ef16(_0x56f03b,_0x101a62-_0x264d59._0x573dae,_0x101a62-_0x264d59._0x228df5,_0x54afe9-0x11c);}if(_0x41647e[_0x18ac93(_0x3b5d52._0x213ed6,_0x3b5d52._0x248eec,_0x3b5d52._0x585c27,0x2b3)]===0x0)return _0x19d47e(_0x3b5d52._0x5a6abc,0x2cf,_0x3b5d52._0x587cd4,0x3ce);return _0x41647e[_0x18ac93(_0x3b5d52._0x18f367,_0x3b5d52._0x4a37e4,0x2d5,0x375)](_0x5a3541=>_0x5a3541['to'][_0x18ac93(0x15d,0x13e,0x188,0x110)])[_0x19d47e(_0x3b5d52._0x20bd12,0x1b1,0x1a2,_0x3b5d52._0x56d5d7)]('\x0a');}function toStructured(_0x528d48){const _0x2f51ad={_0x342dce:0x471},_0xbd5f5a={_0x99e1ee:0xe4};function _0x23fc1a(_0x11df6b,_0x5a032b,_0x53d153,_0x15e85b){return _0x324926(_0x15e85b-0x4ff,_0x5a032b,_0x53d153-_0xbd5f5a._0x99e1ee,_0x15e85b-0x10f);}return JSON[_0x23fc1a(0x471,0x2eb,_0x2f51ad._0x342dce,0x411)](JSON['stringify'](_0x528d48));}async function assertFile(_0x54ff33){const _0x234cef={_0xa94aa4:0x122,_0x37834c:0xbe},_0x12c009={_0x1bfbd6:0x17d};function _0x40028e(_0x11f64d,_0x300b11,_0x55ea9e,_0x130905){return _0x324926(_0x55ea9e-0x1cb,_0x130905,_0x55ea9e-_0x12c009._0x1bfbd6,_0x130905-0xe2);}const _0x2e032f=await _0x3bd09c(_0x54ff33);if(!_0x2e032f[_0x40028e(_0x234cef._0xa94aa4,-0x30,0x97,_0x234cef._0x37834c)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x54ff33,{'path':_0x54ff33});}function validatePosition(_0x446394,_0x17cc79){const _0x1d4c33={_0x3fd913:0x397,_0x462521:0x1c4,_0x581376:0x178,_0x4bca02:0x402,_0x530cb1:0x4b0,_0x15b935:0x437},_0x2911be={_0x22dad8:0x376,_0x57e789:0x4e,_0x2fca63:0x1bd};function _0xa2449e(_0x1605fc,_0x19e37f,_0x3f8cbc,_0x2cef4a){return _0x22ef16(_0x3f8cbc,_0x2cef4a- -0x3d5,_0x3f8cbc-0xa5,_0x2cef4a-0x90);}if(!Number[_0xa2449e(-0x268,-0xe6,-0x1fc,-0x178)](_0x446394)||_0x446394<0x1)throw new ToolExecutionError(_0x4d0652(0x450,0x411,_0x1d4c33._0x3fd913,0x357),{'line':_0x446394});function _0x4d0652(_0x5de1ad,_0x17511e,_0x24fe83,_0xbf9c6b){return _0x324926(_0x24fe83-_0x2911be._0x22dad8,_0xbf9c6b,_0x24fe83-_0x2911be._0x57e789,_0xbf9c6b-_0x2911be._0x2fca63);}if(!Number[_0xa2449e(-0x6d,-0x26a,-_0x1d4c33._0x462521,-_0x1d4c33._0x581376)](_0x17cc79)||_0x17cc79<0x1)throw new ToolExecutionError(_0x4d0652(_0x1d4c33._0x4bca02,_0x1d4c33._0x530cb1,_0x1d4c33._0x15b935,0x527),{'character':_0x17cc79});}function createLspTool(_0x175e6c={}){const _0x5df9f4={_0x568cee:0x22a,_0x5d3740:0x2a9,_0x240926:0x142,_0x567e37:0x8c,_0x398784:0x71,_0x64cafc:0x57,_0x45f153:0x30d,_0xe1613c:0x271,_0x2ba560:0x133,_0x22bded:0x5,_0x3522b7:0x181,_0xf78ab9:0xe2,_0x2cf240:0x2b4,_0x33c88e:0x27b,_0x2b1654:0x103,_0x1c5abd:0x1f2,_0x34a700:0x3c4,_0x24c330:0x310,_0x3db39f:0x28d,_0x3d5b4a:0x3c1,_0x5bb55e:0x175,_0x4169ec:0x29b,_0x3f8312:0x188,_0x5a351a:0x74,_0x25b443:0xf8,_0x3f928d:0x20c,_0x346c82:0xbe,_0x4ead11:0x78,_0x5bae55:0x36,_0x157e78:0x4d,_0x4597e2:0x8a,_0x6f0118:0xe8,_0x5b9d8f:0x174,_0x14a7ac:0x7c,_0x1fc195:0x1,_0x55102e:0x19f,_0x5954a9:0x32,_0x13537e:0x28,_0x1d6e23:0x3a1,_0x53ce48:0x230,_0x5d3853:0x2d6,_0x532568:0x96,_0x16b9f5:0x115,_0xa489f1:0x6a,_0x2682ef:0x2cb,_0x5663f6:0x30c,_0x2937c9:0x408,_0x2a0fa4:0x1df,_0x319ef8:0x21b},_0x4b7009={_0x187ffb:0x1c7,_0x4616d8:0x7d,_0x48c826:0x1a0,_0x4afd9c:0x283,_0x2f5772:0x33b,_0x3220b9:0x24,_0xe1ae24:0x112,_0x373aa:0x236,_0x3cf181:0x4e0,_0x4fee70:0x4b6,_0x15cb9b:0x3b0,_0x580801:0x4fd,_0x2e60dd:0x410,_0x1c76b6:0x366,_0x507fa1:0x51,_0x33da99:0x163,_0x5e6722:0x82,_0x3c9b35:0x9e,_0x577adc:0x2,_0x1de346:0x2a3,_0x1650ad:0x2c7,_0x58a79a:0x582,_0x50c956:0x5f9,_0x5d1145:0x5fb,_0x3fed0b:0x582,_0x1b8968:0x5aa,_0x9d8653:0x121,_0x3636dc:0x90,_0x563b9e:0x559,_0x26645c:0x120,_0x4ca762:0x209,_0x958ffd:0x4e1,_0x40f158:0x511,_0x4f6d53:0x41c,_0xd75598:0x59d,_0x4d1388:0x11f,_0x1a87f1:0x4e3,_0x17bd7f:0x483,_0x11931e:0x531,_0x2924ec:0x5dd,_0x11338f:0x488,_0x31a38a:0x1d7,_0x4d481d:0x1e7,_0x2b1198:0x617,_0x10c653:0x4e7,_0x497447:0x509,_0x1ba218:0x589,_0x36a7f8:0x56a,_0x4675f6:0x67d,_0x28c514:0x234,_0x22a55c:0x55e,_0x1256f2:0x4ae,_0x6f5506:0x5ed,_0x3cb0b6:0x472,_0x48b7be:0x535,_0x9299a7:0xe2,_0x3c7256:0x1d2},_0x31750c={_0x4d8191:0x110},_0x18bb93={_0x352d24:0x17a,_0x399275:0x10a},_0x4c9c20={_0x3d9279:0x190},_0x2c812c={_0x53bded:0x7b,_0x4e7673:0x173},_0x25bf41=_0x27fa61['resolve'](_0x175e6c[_0x295fd3(_0x5df9f4._0x568cee,0x33f,0x293,_0x5df9f4._0x5d3740)]??process[_0x295fd3(0x19a,0x111,0x7b,_0x5df9f4._0x240926)]());function _0xd8978e(_0x38c9a8,_0x46e358,_0x1e14a7,_0x55c1e4){return _0x324926(_0x38c9a8-_0x2c812c._0x53bded,_0x55c1e4,_0x1e14a7-_0x2c812c._0x4e7673,_0x55c1e4-0x19a);}function _0x295fd3(_0x1897a7,_0x4661ad,_0x1ec75b,_0x551aef){return _0x22ef16(_0x4661ad,_0x551aef-0x49,_0x1ec75b-0x1a8,_0x551aef-_0x4c9c20._0x3d9279);}const _0x517afe=(_0x175e6c[_0xd8978e(_0x5df9f4._0x567e37,0x146,-_0x5df9f4._0x398784,-_0x5df9f4._0x64cafc)]??[])[_0x295fd3(0x26c,0x27c,0x415,_0x5df9f4._0x45f153)](_0x418ded=>_0x27fa61[_0x295fd3(0x2ac,0x14b,0x154,0x21a)](_0x418ded)),_0x24ce75=_0x175e6c[_0x295fd3(0xf1,0x11a,_0x5df9f4._0xe1613c,0x1c0)]??_0xd8978e(_0x5df9f4._0x2ba560,_0x5df9f4._0x22bded,_0x5df9f4._0x3522b7,_0x5df9f4._0xf78ab9);return defineTool({'name':_0x24ce75,'description':_0x295fd3(_0x5df9f4._0x2cf240,0x1bf,_0x5df9f4._0x33c88e,0x1e8),'inputSchema':{'type':_0xd8978e(_0x5df9f4._0x2b1654,0x14f,_0x5df9f4._0x1c5abd,0xbb),'properties':{'operation':{'type':_0x295fd3(_0x5df9f4._0x34a700,_0x5df9f4._0x24c330,0x244,0x2d6),'enum':[_0x295fd3(0x2d0,0x274,0x253,0x2bb),'findReferences',_0x295fd3(_0x5df9f4._0x3db39f,_0x5df9f4._0x3d5b4a,_0x5df9f4._0x5bb55e,_0x5df9f4._0x4169ec),_0xd8978e(0x128,_0x5df9f4._0x3f8312,0x66,_0x5df9f4._0x5a351a),_0xd8978e(_0x5df9f4._0x25b443,_0x5df9f4._0x3f928d,_0x5df9f4._0x346c82,-0x20),_0xd8978e(-0x5d,-_0x5df9f4._0x4ead11,0x71,_0x5df9f4._0x5bae55),_0xd8978e(-_0x5df9f4._0x157e78,-0xbd,-_0x5df9f4._0x4597e2,-0xad),_0xd8978e(_0x5df9f4._0x6f0118,0x2,_0x5df9f4._0x5b9d8f,0x15),'outgoingCalls',_0x295fd3(0x363,0x3f3,0x2e4,0x316)]},'filePath':{'type':'string'},'line':{'type':_0xd8978e(_0x5df9f4._0x14a7ac,-_0x5df9f4._0x1fc195,_0x5df9f4._0x55102e,0xe2)},'character':{'type':_0xd8978e(_0x5df9f4._0x14a7ac,-0x47,-_0x5df9f4._0x5954a9,-_0x5df9f4._0x13537e)},'query':{'type':_0x295fd3(0x37f,_0x5df9f4._0x1d6e23,_0x5df9f4._0x53ce48,_0x5df9f4._0x5d3853)}},'required':[_0x295fd3(_0x5df9f4._0x532568,_0x5df9f4._0x16b9f5,_0x5df9f4._0xa489f1,0x110),_0x295fd3(0x41f,0x32b,_0x5df9f4._0x2682ef,_0x5df9f4._0x5663f6),_0x295fd3(0x3a8,0x2c7,_0x5df9f4._0x2937c9,0x2e3),_0x295fd3(_0x5df9f4._0x2a0fa4,0x313,0x1ef,_0x5df9f4._0x319ef8)]},async *'execute'(_0x3d76bd){const _0x44dd77=_0x175e6c[_0x33306e(-_0x4b7009._0x187ffb,-_0x4b7009._0x4616d8,-_0x4b7009._0x48c826,-0x79)];if(!_0x44dd77)throw new ToolExecutionError(_0x33306e(-_0x4b7009._0x4afd9c,-0x273,-0x23b,-_0x4b7009._0x2f5772));if(!_0x44dd77[_0x33306e(0xad,-0x15d,-0x32,_0x4b7009._0x3220b9)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x293ca2=_0x3d76bd[_0x33306e(-_0x4b7009._0xe1ae24,-0x112,-_0x4b7009._0x373aa,-0x1c7)];validatePosition(_0x3d76bd['line'],_0x3d76bd[_0xdc323a(0x485,0x491,_0x4b7009._0x3cf181,0x3b3)]);if(_0x293ca2==='workspaceSymbol'){if(!_0x3d76bd['query']?.[_0xdc323a(0x529,_0x4b7009._0x4fee70,0x55a,_0x4b7009._0x15cb9b)]())throw new ToolExecutionError(_0xdc323a(_0x4b7009._0x580801,0x469,_0x4b7009._0x2e60dd,_0x4b7009._0x1c76b6));const _0x305966=await _0x44dd77[_0x33306e(_0x4b7009._0x507fa1,-_0x4b7009._0x33da99,-_0x4b7009._0x5e6722,-_0x4b7009._0x3c9b35)](_0x3d76bd['query']['trim']());return yield createToolOutput(formatSymbols(_0x305966),{'operation':_0x293ca2,'query':_0x3d76bd[_0x33306e(0x61,_0x4b7009._0x577adc,-0x15,-0xc5)],'symbols':_0x305966}),void 0x0;}function _0x33306e(_0x4b4def,_0x5686f0,_0x4bd48b,_0x34ec06){return _0xd8978e(_0x4bd48b- -_0x18bb93._0x352d24,_0x5686f0-0x29,_0x4bd48b-_0x18bb93._0x399275,_0x34ec06);}const _0x209aec=resolveAllowedPath(_0x25bf41,_0x517afe,_0x3d76bd[_0xdc323a(0x4c3,0x582,0x681,0x4ed)]);await assertFile(_0x209aec);function _0xdc323a(_0x505211,_0xb83298,_0x5ed021,_0x278b8e){return _0x295fd3(_0x505211-_0x31750c._0x4d8191,_0x5ed021,_0x5ed021-0xa1,_0xb83298-0x276);}if(!await _0x44dd77[_0xdc323a(_0x4b7009._0x1de346,0x3ca,_0x4b7009._0x1650ad,0x432)](_0x209aec))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3d76bd[_0xdc323a(0x5c4,_0x4b7009._0x58a79a,_0x4b7009._0x50c956,_0x4b7009._0x5d1145)],{'filePath':_0x3d76bd[_0xdc323a(0x66a,_0x4b7009._0x3fed0b,_0x4b7009._0x1b8968,0x654)]});await _0x44dd77[_0x33306e(-_0x4b7009._0x9d8653,-0x6d,-_0x4b7009._0x3636dc,0x13)](_0x209aec,!![]);const _0x5d5a8f={'file':_0x209aec,'line':_0x3d76bd[_0xdc323a(0x527,_0x4b7009._0x563b9e,0x5fa,0x67c)]-0x1,'character':_0x3d76bd[_0x33306e(-0x2,-_0x4b7009._0x26645c,-0x12b,-_0x4b7009._0x4ca762)]-0x1};switch(_0x293ca2){case _0xdc323a(_0x4b7009._0x958ffd,_0x4b7009._0x40f158,_0x4b7009._0x4f6d53,_0x4b7009._0xd75598):{const _0x352210=await _0x44dd77['hover'](_0x5d5a8f);return yield createToolOutput(formatHover(_0x352210),{'operation':_0x293ca2,'filePath':_0x209aec,'hover':_0x352210}),void 0x0;}case _0x33306e(-0xf4,-0x129,-0x30,-_0x4b7009._0x4d1388):{const _0x34e66f=await _0x44dd77[_0xdc323a(0x546,_0x4b7009._0x958ffd,_0x4b7009._0x1a87f1,_0x4b7009._0x17bd7f)](_0x209aec);return yield createToolOutput(formatDiagnostics(_0x34e66f),{'operation':_0x293ca2,'filePath':_0x209aec,'diagnostics':_0x34e66f}),void 0x0;}case _0xdc323a(0x487,_0x4b7009._0x11931e,0x4de,_0x4b7009._0x2924ec):{const _0x38d067=await _0x44dd77[_0xdc323a(0x576,_0x4b7009._0x11338f,0x57f,0x5a8)](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x38d067),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x38d067}),void 0x0;}case'findReferences':{const _0x1181bf=await _0x44dd77['references'](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x1181bf),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x1181bf}),void 0x0;}case _0x33306e(-0x212,-0x29a,-_0x4b7009._0x31a38a,-_0x4b7009._0x4d481d):{const _0x1ae7ab=await _0x44dd77[_0xdc323a(_0x4b7009._0x2b1198,_0x4b7009._0x10c653,_0x4b7009._0x497447,_0x4b7009._0x1ba218)](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x1ae7ab),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x1ae7ab}),void 0x0;}case _0xdc323a(0x5a5,_0x4b7009._0x36a7f8,_0x4b7009._0x4675f6,0x578):{const _0x3f8365=await _0x44dd77[_0x33306e(-0x10a,0x2a,-0x52,-0xc8)](_0x209aec);return yield createToolOutput(formatSymbols(_0x3f8365),{'operation':_0x293ca2,'filePath':_0x209aec,'symbols':_0x3f8365}),void 0x0;}case _0x33306e(-_0x4b7009._0x28c514,-0x14c,-0x1c7,-0x17d):{const _0x204d84=await _0x44dd77['prepareCallHierarchy'](_0x5d5a8f);return yield createToolOutput(formatSymbols(_0x204d84),{'operation':_0x293ca2,'filePath':_0x209aec,'symbols':toStructured(_0x204d84)}),void 0x0;}case'incomingCalls':{const _0x519628=await _0x44dd77[_0xdc323a(_0x4b7009._0x22a55c,0x52a,_0x4b7009._0x1256f2,_0x4b7009._0x6f5506)](_0x5d5a8f);return yield createToolOutput(formatIncomingCalls(_0x519628),{'operation':_0x293ca2,'filePath':_0x209aec,'calls':toStructured(_0x519628)}),void 0x0;}case _0xdc323a(_0x4b7009._0x3cb0b6,0x483,_0x4b7009._0x48b7be,0x4d7):{const _0x4ddc28=await _0x44dd77[_0x33306e(-_0x4b7009._0x9299a7,-0x23a,-0x139,-_0x4b7009._0x3c7256)](_0x5d5a8f);return yield createToolOutput(formatOutgoingCalls(_0x4ddc28),{'operation':_0x293ca2,'filePath':_0x209aec,'calls':toStructured(_0x4ddc28)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x5e6a0e,readFile as _0x48fb55,writeFile as _0x15b151}from'fs/promises';import{join as _0x5e8cdd}from'path';function sanitizeStorageKey(_0x18beca){const _0x191186={_0x5ecc1a:0x7f,_0x66fea4:0xf6,_0x509129:0x78},_0x41dc8f={_0x23b486:0xf4,_0x18b823:0x83};function _0x205b1e(_0x4a83ef,_0x392cd2,_0x1c25e8,_0x456358){return _0x324926(_0x4a83ef-_0x41dc8f._0x23b486,_0x456358,_0x1c25e8-0x132,_0x456358-_0x41dc8f._0x18b823);}return _0x18beca[_0x205b1e(_0x191186._0x5ecc1a,_0x191186._0x66fea4,-0x34,_0x191186._0x509129)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||'server';}function storagePath(_0x5859f4){const _0x519464={_0xabf070:0x70,_0x2e0816:0x65,_0x590e8b:0x1c1,_0x1e5c23:0xc8,_0x5ce9b3:0x57,_0x26078b:0x151,_0x5802e9:0x55,_0x51a7c1:0x5e,_0x333e26:0x53,_0x3880b5:0x38},_0x26f7b9={_0x315fa0:0x224,_0x49aa44:0x8e},_0x21260a={_0x426b02:0x123,_0x39b650:0x125};function _0x310ee4(_0x3bcf18,_0x123e12,_0x34095d,_0x44e176){return _0x324926(_0x3bcf18-_0x21260a._0x426b02,_0x44e176,_0x34095d-0xe3,_0x44e176-_0x21260a._0x39b650);}const _0x1d880f=sanitizeStorageKey(_0x5859f4[_0x50c0c0(_0x519464._0xabf070,0x1c,0xb,_0x519464._0x2e0816)][_0x310ee4(_0x519464._0x590e8b,0xcc,0xce,0x2f1)]?.[_0x310ee4(0x8d,_0x519464._0x1e5c23,-_0x519464._0x5ce9b3,_0x519464._0x26078b)]??_0x5859f4[_0x50c0c0(_0x519464._0x5802e9,_0x519464._0x51a7c1,-_0x519464._0x333e26,0x11e)]);function _0x50c0c0(_0x4bb5fd,_0x53af63,_0x53c2e2,_0x55254c){return _0x22ef16(_0x53c2e2,_0x53af63- -_0x26f7b9._0x315fa0,_0x53c2e2-_0x26f7b9._0x49aa44,_0x55254c-0xdc);}return _0x5e8cdd(_0x5859f4['storageDir'],_0x1d880f+_0x50c0c0(-0xf8,0x21,0xf8,-_0x519464._0x3880b5));}async function readStore(_0x520e9e){const _0x56bcc2={_0x608480:0x2ae,_0xd5a605:0x1f0,_0x33bf01:0xb2,_0x153373:0x2b7},_0x1d488a={_0x1fff98:0x14c,_0x1ab64c:0x1b5},_0x1f0fa5={_0xd2abcd:0x8f};function _0x5ec4c9(_0x55b230,_0x20604c,_0x26c5a8,_0x2232d7){return _0x22ef16(_0x20604c,_0x26c5a8- -0x17e,_0x26c5a8-0x113,_0x2232d7-_0x1f0fa5._0xd2abcd);}function _0x22dc07(_0x4a97b8,_0x4ec765,_0x3b3151,_0x2fbfa4){return _0x22ef16(_0x4ec765,_0x3b3151-_0x1d488a._0x1fff98,_0x3b3151-_0x1d488a._0x1ab64c,_0x2fbfa4-0xd7);}try{return JSON[_0x22dc07(0x30d,_0x56bcc2._0x608480,0x25c,_0x56bcc2._0xd5a605)](await _0x48fb55(_0x520e9e,'utf8'));}catch(_0x4423e1){if(_0x4423e1 instanceof Error&&_0x5ec4c9(0xd9,0x160,0x181,_0x56bcc2._0x33bf01)in _0x4423e1&&_0x4423e1[_0x22dc07(0x4ca,0x4d3,0x44b,0x449)]===_0x22dc07(0x277,0x19e,_0x56bcc2._0x153373,0x1a2))return{};throw _0x4423e1;}}async function writeStore(_0x181e1a,_0x282d88){const _0x4d259d={_0x3b7625:0x5d3,_0x1c3c7e:0x68a,_0x4858c4:0x60a};function _0x269d1e(_0xa6dacb,_0x2fffb2,_0x363468,_0x130095){return _0x22ef16(_0x130095,_0x2fffb2-0x3ab,_0x363468-0xe8,_0x130095-0x110);}await _0x5e6a0e(_0x5e8cdd(_0x181e1a,'..'),{'recursive':!![]}),await _0x15b151(_0x181e1a,JSON[_0x269d1e(_0x4d259d._0x3b7625,_0x4d259d._0x1c3c7e,_0x4d259d._0x4858c4,0x6cd)](_0x282d88,null,0x2),'utf8');}async function updateStore(_0x1850a1,_0x5d6cbb){const _0x5ed4bd=await readStore(_0x1850a1);_0x5d6cbb(_0x5ed4bd),await writeStore(_0x1850a1,_0x5ed4bd);}function createMcpOAuthProvider(_0x4f1fda){const _0x1aa9ec={_0xcb61f8:0x11f,_0x139457:0x1b5,_0x343605:0x33,_0x5a166f:0x1cb,_0x3d188e:0x362,_0x4a0d97:0x49d,_0x4cf5e1:0x308,_0x2cc51a:0x281,_0x587643:0x15f,_0x11f60a:0x5e,_0x34faad:0x36d,_0x4fea3f:0x53c,_0x43f6d0:0x3e7,_0x3bca14:0x439,_0x3f9c85:0x55c,_0x26c88b:0xa1},_0x21d52e={_0x35eb0c:0x17c,_0x185d7a:0x112,_0x50acaa:0x1db,_0x19a6e6:0x191},_0x29c013={_0x40cafb:0xab,_0x4eecf0:0x51,_0x542ed4:0x123,_0x3e9586:0xa8,_0x19d5ee:0x77,_0x51500c:0x1de,_0x5c421b:0xa0,_0x1f78d2:0x25,_0x5af2e9:0x115,_0x40955d:0x11a,_0x3073ff:0x95,_0x42a8ef:0x195,_0x50fa97:0xb8,_0x50f08b:0x169,_0x2a9ec7:0x178,_0x5951e4:0x2a0,_0x344654:0x264,_0x2b2b51:0x2b8,_0x1f84b5:0x67,_0x437dce:0x1a6,_0x4a648d:0x81,_0x75566d:0x189},_0x3f5e32={_0x156aa8:0x2b},_0xc01c11={_0x3f0848:0x6d,_0x479a12:0xa},_0x1f4c3c={_0x32fd06:0x30d,_0x561a82:0x280},_0x5bce13={_0x3398cc:0x174,_0x8f3d0:0x7e},_0x58427e={_0x375843:0x6d9,_0x56d736:0x69e,_0x3a1016:0x65b},_0x51bd07={_0x1cdc70:0x58,_0x11bbbc:0x12},_0x1afa24={_0x41813e:0x4d,_0x4c8390:0x2c},_0xf0dd2={_0x1a859f:0x121,_0x101f94:0x97};function _0x1f36cc(_0x1d47e7,_0x42ede1,_0x5a84c8,_0x5af8f8){return _0x22ef16(_0x5af8f8,_0x5a84c8-0x21d,_0x5a84c8-0x1f3,_0x5af8f8-0x23);}const _0xc30d83=storagePath(_0x4f1fda);function _0x27cb81(_0x9998fd,_0x53b889,_0x434b8c,_0x470a08){return _0x22ef16(_0x53b889,_0x9998fd- -_0xf0dd2._0x1a859f,_0x434b8c-_0xf0dd2._0x101f94,_0x470a08-0xcf);}const _0x11b718=_0x4f1fda[_0x27cb81(_0x1aa9ec._0xcb61f8,_0x1aa9ec._0x139457,_0x1aa9ec._0x343605,_0x1aa9ec._0x5a166f)]['oauth']?.[_0x1f36cc(_0x1aa9ec._0x3d188e,_0x1aa9ec._0x4a0d97,0x3af,0x38e)]?.[_0x1f36cc(_0x1aa9ec._0x4cf5e1,0x403,0x369,_0x1aa9ec._0x2cc51a)]('\x20'),_0x1b6106={'client_name':_0x27cb81(0x74,_0x1aa9ec._0x587643,0x61,_0x1aa9ec._0x11f60a),'redirect_uris':[_0x4f1fda[_0x1f36cc(_0x1aa9ec._0x34faad,0x3af,0x3c0,0x4ec)]],'grant_types':[_0x1f36cc(_0x1aa9ec._0x4fea3f,_0x1aa9ec._0x43f6d0,_0x1aa9ec._0x3bca14,0x369),'refresh_token'],'response_types':['code'],'token_endpoint_auth_method':_0x1f36cc(0x57f,0x52f,0x48e,_0x1aa9ec._0x3f9c85),..._0x11b718?{'scope':_0x11b718}:{}};return{'clientMetadataUrl':_0x4f1fda['config'][_0x27cb81(0x17b,_0x1aa9ec._0x26c88b,0x8d,0x2a0)]?.['clientMetadataUrl'],get 'redirectUrl'(){return _0x4f1fda['callbackUrl'];},get 'clientMetadata'(){return _0x1b6106;},async 'state'(){const _0x5734a3={_0x2c4cc5:0xb6,_0x5b12a3:0x21b},_0x2ca605={_0xc902d6:0x26},_0x370389=await readStore(_0xc30d83);if(_0x370389['state'])return _0x370389['state'];const _0xbe84d5=randomUUID();return await updateStore(_0xc30d83,_0x32963a=>{function _0x2e1e80(_0xb3a050,_0x5f1f6c,_0xdb9053,_0x167f9){return _0x7ca6(_0x167f9-_0x2ca605._0xc902d6,_0x5f1f6c);}_0x32963a[_0x2e1e80(_0x5734a3._0x2c4cc5,0xf2,_0x5734a3._0x5b12a3,0x12a)]=_0xbe84d5;}),_0xbe84d5;},async 'clientInformation'(){function _0x554cce(_0x261119,_0xa0a34d,_0x24e751,_0x2a6dbf){return _0x27cb81(_0xa0a34d- -0x206,_0x261119,_0x24e751-_0x1afa24._0x41813e,_0x2a6dbf-_0x1afa24._0x4c8390);}return(await readStore(_0xc30d83))[_0x554cce(_0x51bd07._0x1cdc70,-_0x51bd07._0x11bbbc,-0x113,0xfb)];},async 'saveClientInformation'(_0x41e390){await updateStore(_0xc30d83,_0x4e41f8=>{const _0x49d804={_0x370437:0x3a5};function _0x446070(_0x4e3eea,_0x1c19a2,_0x483d2a,_0x587001){return _0x7ca6(_0x483d2a-_0x49d804._0x370437,_0x4e3eea);}_0x4e41f8[_0x446070(_0x58427e._0x375843,0x5b5,_0x58427e._0x56d736,_0x58427e._0x3a1016)]=_0x41e390;});},async 'tokens'(){function _0x2c6955(_0x13488c,_0x10385f,_0x225f98,_0x16d1cc){return _0x1f36cc(_0x13488c-0x15a,_0x10385f-_0x5bce13._0x3398cc,_0x16d1cc- -_0x5bce13._0x8f3d0,_0x13488c);}return(await readStore(_0xc30d83))[_0x2c6955(_0x1f4c3c._0x32fd06,0x22f,0x26f,_0x1f4c3c._0x561a82)];},async 'saveTokens'(_0x4484b8){const _0x2f1b5a={_0x19c2d5:0x16d},_0x9703cd={_0x4c2aeb:0x336};await updateStore(_0xc30d83,_0x19df9e=>{function _0xec0726(_0x54fd81,_0xe0981,_0x20e772,_0x3c1017){return _0x7ca6(_0xe0981- -_0x9703cd._0x4c2aeb,_0x20e772);}_0x19df9e[_0xec0726(-0x241,-0x271,-0x395,-_0x2f1b5a._0x19c2d5)]=_0x4484b8;});},async 'redirectToAuthorization'(_0x2afa2){const _0x2f1716={_0x23a7ed:0x72,_0x3344f4:0xd,_0x2f99f9:0x3fc};function _0x26f8e1(_0x4039f7,_0x489ea4,_0x43e788,_0x58bc75){return _0x1f36cc(_0x4039f7-_0x2f1716._0x23a7ed,_0x489ea4-_0x2f1716._0x3344f4,_0x58bc75- -_0x2f1716._0x2f99f9,_0x43e788);}await _0x4f1fda[_0x26f8e1(-_0xc01c11._0x3f0848,-_0xc01c11._0x479a12,0x112,0xf)](_0x2afa2);},async 'saveCodeVerifier'(_0x2b194b){const _0x1fe57d={_0x3febef:0x441,_0x17a234:0x486};await updateStore(_0xc30d83,_0x160182=>{function _0x24955e(_0x994b41,_0x50e02f,_0x1330e7,_0x3ac5e0){return _0x7ca6(_0x3ac5e0-0x1bd,_0x1330e7);}_0x160182[_0x24955e(_0x1fe57d._0x3febef,_0x1fe57d._0x17a234,0x344,0x3aa)]=_0x2b194b;});},async 'codeVerifier'(){const _0x345620={_0x404677:0x17c},_0x486885=(await readStore(_0xc30d83))['codeVerifier'];function _0x49b413(_0x203eba,_0x16c532,_0x2070b4,_0x2d812a){return _0x1f36cc(_0x203eba-_0x345620._0x404677,_0x16c532-0x2a,_0x2070b4- -0x453,_0x2d812a);}if(!_0x486885)throw new Error(_0x49b413(-0x4f,_0x3f5e32._0x156aa8,-0x87,-0x38));return _0x486885;},async 'invalidateCredentials'(_0x1fe265){await updateStore(_0xc30d83,_0x11ce6c=>{const _0x56a1c2={_0x9f3073:0x1c};(_0x1fe265===_0x6f2b4(-0x3b,-_0x29c013._0x40cafb,_0x29c013._0x4eecf0,-0x87)||_0x1fe265===_0x267d80(_0x29c013._0x542ed4,_0x29c013._0x3e9586,0x119,_0x29c013._0x19d5ee))&&(_0x11ce6c['clientInformation']=void 0x0);(_0x1fe265==='all'||_0x1fe265===_0x267d80(0x6a,_0x29c013._0x51500c,0xe1,0xbd))&&(_0x11ce6c[_0x267d80(_0x29c013._0x5c421b,-0x31,0xe1,0x134)]=void 0x0);function _0x267d80(_0x909c45,_0x3f125b,_0x28c3cf,_0x1d43a7){return _0x7ca6(_0x28c3cf-_0x56a1c2._0x9f3073,_0x1d43a7);}function _0x6f2b4(_0x3e89a8,_0x449c40,_0x591159,_0x31d651){return _0x7ca6(_0x591159- -0x27c,_0x449c40);}(_0x1fe265===_0x6f2b4(_0x29c013._0x1f78d2,0xdb,_0x29c013._0x4eecf0,-0xc8)||_0x1fe265===_0x267d80(_0x29c013._0x5af2e9,0x146,0x163,_0x29c013._0x40955d))&&(_0x11ce6c[_0x6f2b4(-_0x29c013._0x3073ff,-_0x29c013._0x42a8ef,-0x8f,-_0x29c013._0x40cafb)]=void 0x0,_0x11ce6c[_0x6f2b4(-_0x29c013._0x50fa97,-_0x29c013._0x50f08b,-_0x29c013._0x2a9ec7,-0x21d)]=void 0x0),(_0x1fe265==='all'||_0x1fe265===_0x267d80(_0x29c013._0x5951e4,0x22a,_0x29c013._0x344654,_0x29c013._0x2b2b51))&&(_0x11ce6c[_0x6f2b4(_0x29c013._0x1f84b5,_0x29c013._0x437dce,_0x29c013._0x4a648d,_0x29c013._0x75566d)]=void 0x0);});},async 'saveDiscoveryState'(_0x5186ca){const _0x3d448e={_0x3da737:0x115,_0x2a083c:0x227,_0xdda99b:0xe7};await updateStore(_0xc30d83,_0x34607e=>{const _0x9e7f84={_0x40e388:0x1e8};function _0x4a78fa(_0x40297f,_0x202d0c,_0x1f2c53,_0x18267f){return _0x7ca6(_0x40297f- -_0x9e7f84._0x40e388,_0x1f2c53);}_0x34607e[_0x4a78fa(_0x3d448e._0x3da737,_0x3d448e._0x2a083c,_0x3d448e._0xdda99b,0x7c)]=_0x5186ca;});},async 'discoveryState'(){const _0x419445={_0x41d731:0x87,_0x400da4:0x424};function _0xe0f3b5(_0x4ef518,_0x1501fb,_0x12024a,_0xee67ab){return _0x1f36cc(_0x4ef518-0x13b,_0x1501fb-_0x419445._0x41d731,_0x1501fb- -_0x419445._0x400da4,_0x4ef518);}return(await readStore(_0xc30d83))[_0xe0f3b5(_0x21d52e._0x35eb0c,_0x21d52e._0x185d7a,_0x21d52e._0x50acaa,_0x21d52e._0x19a6e6)];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x1d9b54,_0x350d92){const _0x205114={_0x31fc3d:0x239};function _0x10d093(_0x23c89e,_0x4d9aa1,_0x2be036,_0x100fb5){return _0x22ef16(_0x2be036,_0x100fb5-_0x205114._0x31fc3d,_0x2be036-0xf6,_0x100fb5-0xb4);}const _0x12a4be=_0x28ae80=>_0x28ae80['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x10d093(0x3fc,0x299,0x4c5,0x3c2)](/^_+|_+$/g,'');return'mcp_'+_0x12a4be(_0x1d9b54)+'_'+_0x12a4be(_0x350d92);}function isObject(_0x164927){return typeof _0x164927==='object'&&_0x164927!==null&&!Array['isArray'](_0x164927);}function toSupportedSchema(_0x1a7c4f){const _0x16899f={_0x32cad3:0x21d,_0x4a7ea0:0x2d2,_0x3a7990:0x1ce,_0x4d8158:0x326,_0x2dc032:0x2fe,_0x18ead8:0x327,_0x110054:0x270,_0x2494d0:0x23d,_0x9c4d72:0x235,_0x262541:0x24f,_0x15a97d:0x9e,_0x804321:0x65,_0x558bf2:0x296,_0x16911b:0x133,_0xde79b5:0x2fe,_0x2f5b65:0x3d5,_0x6809b9:0x14f,_0x4b8c90:0x241,_0x5021da:0x135,_0x219c7a:0x139},_0xdb1f1={_0x4c2fac:0x136},_0x28896b={_0x1c70c9:0x26f,_0x5213b0:0xe5};if(!isObject(_0x1a7c4f))return void 0x0;if(_0x1a7c4f['type']===_0x327fd1(0x31f,_0x16899f._0x32cad3,0x2fe,_0x16899f._0x4a7ea0))return{'type':_0x327fd1(_0x16899f._0x3a7990,_0x16899f._0x4d8158,_0x16899f._0x2dc032,0x36e)};if(_0x1a7c4f['type']===_0x327fd1(_0x16899f._0x18ead8,0x260,_0x16899f._0x110054,0x253)||_0x1a7c4f[_0x5ac2f3(_0x16899f._0x2494d0,_0x16899f._0x9c4d72,0x241,_0x16899f._0x262541)]==='integer')return{'type':'number'};function _0x327fd1(_0x264672,_0x226dec,_0x18c2cf,_0x28fe9d){return _0x324926(_0x18c2cf-_0x28896b._0x1c70c9,_0x226dec,_0x18c2cf-_0x28896b._0x5213b0,_0x28fe9d-0x41);}if(_0x1a7c4f[_0x327fd1(0x2a7,0x28b,0x37a,0x438)]===_0x5ac2f3(_0x16899f._0x15a97d,0xd6,0x169,_0x16899f._0x804321))return{'type':'boolean'};if(_0x1a7c4f['type']==='array')return{'type':'array','items':toSupportedSchema(_0x1a7c4f[_0x327fd1(_0x16899f._0x558bf2,0x253,0x1a6,_0x16899f._0x16911b)])??{'type':_0x327fd1(0x412,0x2f4,_0x16899f._0xde79b5,_0x16899f._0x2f5b65)}};function _0x5ac2f3(_0xb207aa,_0x10e84e,_0x26423d,_0x23efeb){return _0x324926(_0x26423d-_0xdb1f1._0x4c2fac,_0xb207aa,_0x26423d-0x34,_0x23efeb-0x6f);}if(_0x1a7c4f[_0x5ac2f3(_0x16899f._0x6809b9,0x210,_0x16899f._0x4b8c90,0x14c)]===_0x5ac2f3(_0x16899f._0x5021da,_0x16899f._0x219c7a,0x1be,0x2d3))return toNuvinToolSchema(_0x1a7c4f);return void 0x0;}function toNuvinToolSchema(_0x51d113){const _0x26b3ea={_0x261d23:0x224,_0x439874:0x28a,_0x541dc1:0x207,_0x5dae04:0xfe,_0x56786f:0x281,_0x451966:0x291,_0x3a6997:0xa3,_0x4daf10:0xbd,_0x1e3b54:0x8f,_0x41925a:0x10d,_0x1b3091:0x1cb,_0x2a205a:0xc5,_0x8d211f:0x114,_0x49c4dc:0x4e,_0x59bb64:0xa9,_0x4dce47:0xda},_0x6267c6={_0x4afb34:0x17f,_0x3ab6cc:0x16c,_0x3c488a:0x25},_0x25e0f9={_0x12ea46:0x74,_0x16e586:0x133};if(!isObject(_0x51d113)||_0x51d113[_0x88b75b(_0x26b3ea._0x261d23,_0x26b3ea._0x439874,0x174,0x20f)]!==_0x88b75b(0xe0,_0x26b3ea._0x541dc1,0x1ce,_0x26b3ea._0x5dae04))return{'type':'object','properties':{}};function _0x47e4a7(_0x592596,_0x36bd31,_0xef69bb,_0x38c3f1){return _0x324926(_0x38c3f1- -0x15,_0x36bd31,_0xef69bb-_0x25e0f9._0x12ea46,_0x38c3f1-_0x25e0f9._0x16e586);}const _0xfe3a25={},_0x3ec528=isObject(_0x51d113[_0x88b75b(0x1df,_0x26b3ea._0x56786f,0x318,_0x26b3ea._0x451966)])?_0x51d113[_0x88b75b(0x1dd,0x281,0x220,0x258)]:{};for(const [_0x3a4f26,_0x162e91]of Object[_0x88b75b(_0x26b3ea._0x3a6997,_0x26b3ea._0x4daf10,-0x32,0x5d)](_0x3ec528)){const _0x53498f=toSupportedSchema(_0x162e91);if(_0x53498f)_0xfe3a25[_0x3a4f26]=_0x53498f;}function _0x88b75b(_0x2e6a28,_0x43ad7c,_0x4a8e6e,_0x2a4dc0){return _0x324926(_0x43ad7c-_0x6267c6._0x4afb34,_0x4a8e6e,_0x4a8e6e-_0x6267c6._0x3ab6cc,_0x2a4dc0-_0x6267c6._0x3c488a);}const _0x2231c5=Array['isArray'](_0x51d113[_0x47e4a7(-0x41,-0xc,-_0x26b3ea._0x1e3b54,-0x120)])?_0x51d113['required'][_0x47e4a7(_0x26b3ea._0x41925a,0x18b,_0x26b3ea._0x1b3091,_0x26b3ea._0x2a205a)](_0x1b70b0=>typeof _0x1b70b0==='string'):void 0x0;return _0x2231c5?.[_0x47e4a7(-_0x26b3ea._0x8d211f,-_0x26b3ea._0x49c4dc,0xa5,-0x9)]?{'type':_0x47e4a7(0x196,0x153,_0x26b3ea._0x59bb64,0x73),'properties':_0xfe3a25,'required':_0x2231c5}:{'type':_0x88b75b(0x166,0x207,0x1c2,_0x26b3ea._0x4dce47),'properties':_0xfe3a25};}function isJsonObject(_0x195a87){const _0x5ecbec={_0x5a118d:0x470,_0x328318:0x419,_0x2d808c:0x7f,_0x35c8c0:0x67},_0x564029={_0x55564a:0xac,_0x58c791:0x12},_0x3d2031={_0x2fefd3:0x198,_0x1bc494:0x1c3};function _0x223b45(_0x35a719,_0x5834e3,_0x385083,_0x5d2942){return _0x324926(_0x35a719-0x3e8,_0x5d2942,_0x385083-_0x3d2031._0x2fefd3,_0x5d2942-_0x3d2031._0x1bc494);}function _0x52a722(_0x1db7db,_0x4a9883,_0x2e74eb,_0x55b4fa){return _0x22ef16(_0x4a9883,_0x55b4fa- -0x235,_0x2e74eb-_0x564029._0x55564a,_0x55b4fa-_0x564029._0x58c791);}return typeof _0x195a87===_0x223b45(_0x5ecbec._0x5a118d,0x51f,_0x5ecbec._0x328318,0x543)&&_0x195a87!==null&&!Array[_0x52a722(0xc2,_0x5ecbec._0x2d808c,-0x12a,-_0x5ecbec._0x35c8c0)](_0x195a87);}function formatMcpContent(_0x5a26df){const _0x494575={_0x46c44f:0xdb,_0x456e0b:0x6a,_0x3a8779:0x485,_0x30bdb9:0x1d1,_0xa31fc4:0x22d,_0x322ebc:0x1d1,_0x11110b:0x59,_0x420cc8:0x76,_0x5e5f41:0x1ec,_0x52a970:0x19b},_0x5d2492={_0x235888:0xf3,_0xcf2901:0x1df},_0x42ec7a={_0x13b436:0x224,_0x33095a:0x1e1},_0x33cfd1={_0x14bbf7:0x1a1,_0x7911c2:0x94,_0x5e22b8:0x67,_0x5b63db:0xe2,_0x3803d5:0x40,_0x59ec48:0x225,_0xbcd6ac:0x238},_0x5318e5=Array[_0x530517(_0x494575._0x46c44f,0x202,0xf3,_0x494575._0x456e0b)](_0x5a26df[_0x56ec54(0x449,0x2cc,0x36c,_0x494575._0x3a8779)])?_0x5a26df['content']:[],_0x189a96=_0x5318e5[_0x530517(_0x494575._0x30bdb9,_0x494575._0xa31fc4,0x15c,_0x494575._0x322ebc)](_0x5796c5=>{const _0x292fe5={_0x1c7f46:0x11c,_0x3bf8c6:0x53c};if(!isObject(_0x5796c5))return'';function _0xe86903(_0x4b95e3,_0x3f1f0b,_0x352a85,_0x156deb){return _0x530517(_0x4b95e3-0x4c,_0x156deb,_0x352a85-0x129,_0x156deb-0x13c);}if(_0x5796c5[_0xe86903(0x262,0x1f1,_0x33cfd1._0x14bbf7,0x1eb)]===_0x2acda6(-0xd7,-_0x33cfd1._0x7911c2,-_0x33cfd1._0x5e22b8,-0xa3)&&typeof _0x5796c5[_0x2acda6(-0xd7,-0xa0,-0xd3,-_0x33cfd1._0x5b63db)]===_0x2acda6(-0x8b,0x2c,-0x193,_0x33cfd1._0x3803d5))return _0x5796c5[_0xe86903(0x19a,_0x33cfd1._0x59ec48,0x13e,0x27e)];function _0x2acda6(_0x20bcde,_0x2dcc97,_0x22b66a,_0x5c726f){return _0x56ec54(_0x20bcde-_0x292fe5._0x1c7f46,_0x2dcc97,_0x20bcde- -_0x292fe5._0x3bf8c6,_0x5c726f-0x8);}return JSON[_0xe86903(_0x33cfd1._0xbcd6ac,0x110,0x1d8,0x2d4)](_0x5796c5);})['filter'](_0x26bc00=>_0x26bc00[_0x56ec54(0x426,0x38a,0x42e,0x512)]>0x0)[_0x530517(_0x494575._0x11110b,0x135,_0x494575._0x420cc8,-0x89)]('\x0a');if(_0x189a96['length']>0x0)return _0x189a96;function _0x56ec54(_0x1bfbad,_0x3f6be3,_0x5a6654,_0x316ea2){return _0x22ef16(_0x3f6be3,_0x5a6654-_0x42ec7a._0x13b436,_0x5a6654-0x17e,_0x316ea2-_0x42ec7a._0x33095a);}function _0x530517(_0x7ad6e7,_0x382d2f,_0x4518cd,_0x2080c9){return _0x22ef16(_0x382d2f,_0x7ad6e7- -_0x5d2492._0x235888,_0x4518cd-0x19c,_0x2080c9-_0x5d2492._0xcf2901);}return JSON[_0x530517(_0x494575._0x5e5f41,0x2db,0x2fe,_0x494575._0x52a970)](_0x5a26df,null,0x2);}function createMcpTool(_0x40ffc1){const _0x2b93f6={_0x394daf:0x6a6,_0x2097d3:0x749,_0x1632e6:0x641,_0x2f553d:0x285,_0x3a50ba:0x318,_0x3a8fde:0x571,_0x2c1fda:0x4e0,_0x140674:0x3de,_0x4ecd3a:0x4c6,_0x2034d3:0x227,_0x43b0d3:0x454,_0xfea25e:0x353,_0x4637d4:0x419,_0x8a2fda:0x345,_0x2d492f:0x518,_0x4c96f9:0x3ea,_0x2eb9f5:0x635,_0x5ec892:0x54f,_0x4dbfe8:0x5ad,_0x57250d:0x3df,_0x2273e4:0x3ba},_0x10eab1={_0x108134:0x28e,_0x539e62:0x2fb,_0x3e5c2e:0x15f,_0x436b5c:0x36f,_0x5262d1:0x96,_0x574f1:0xb0,_0x7d35b0:0x288,_0x5dfc7d:0x2db,_0x52481f:0xa1,_0x90e70c:0x1be,_0x4579e5:0x1a0,_0x16c2ee:0x157,_0x2cc1f2:0x1a8,_0x2cf4d6:0xef,_0x4eaae0:0x1fd,_0x393801:0x31d,_0x392fd8:0x249,_0x170366:0x2af,_0x1876c1:0x1e6},_0x4e6eea={_0x1304cb:0x1a5},_0x5b8190={_0x70fdc:0x174};function _0x3a2c87(_0x4a3f2e,_0x2e30fe,_0x8911e0,_0x341955){return _0x324926(_0x341955-0x5bd,_0x4a3f2e,_0x8911e0-_0x5b8190._0x70fdc,_0x341955-0x194);}const _0x2b376a=createMcpToolName(_0x40ffc1[_0x3a2c87(_0x2b93f6._0x394daf,0x666,_0x2b93f6._0x2097d3,_0x2b93f6._0x1632e6)],_0x40ffc1['tool'][_0x545de5(0x308,0x2a9,_0x2b93f6._0x2f553d,_0x2b93f6._0x3a50ba)]);function _0x545de5(_0x256829,_0x2c65b6,_0xdb23c4,_0xf5db23){return _0x22ef16(_0x256829,_0xf5db23-0x1a1,_0xdb23c4-0x166,_0xf5db23-_0x4e6eea._0x1304cb);}return defineTool({'name':_0x2b376a,'description':_0x40ffc1[_0x3a2c87(0x457,0x68e,0x47e,_0x2b93f6._0x3a8fde)][_0x3a2c87(_0x2b93f6._0x2c1fda,_0x2b93f6._0x140674,0x3aa,_0x2b93f6._0x4ecd3a)]??'MCP\x20tool\x20'+_0x40ffc1[_0x545de5(0x2fe,_0x2b93f6._0x2034d3,_0x2b93f6._0x43b0d3,_0x2b93f6._0xfea25e)][_0x545de5(0x328,_0x2b93f6._0x4637d4,_0x2b93f6._0x8a2fda,0x318)]+_0x545de5(0x4dd,0x4ac,_0x2b93f6._0x2d492f,_0x2b93f6._0x4c96f9)+_0x40ffc1[_0x3a2c87(0x60b,_0x2b93f6._0x2eb9f5,0x627,0x641)],'inputSchema':toNuvinToolSchema(_0x40ffc1[_0x3a2c87(_0x2b93f6._0x5ec892,_0x2b93f6._0x4dbfe8,0x4b2,_0x2b93f6._0x3a8fde)][_0x545de5(0x3d3,_0x2b93f6._0x57250d,0x343,_0x2b93f6._0x2273e4)]),async *'execute'(_0x1da77b){const _0x3984ad={_0x29e79c:0x53},_0x599ad4={_0x335437:0x8e,_0x49549a:0xc0,_0x102065:0x4f3},_0x55fc1b=await _0x40ffc1['client'][_0x25a604(-_0x10eab1._0x108134,-_0x10eab1._0x539e62,-_0x10eab1._0x3e5c2e,-_0x10eab1._0x436b5c)]({'name':_0x40ffc1[_0x27ff95(-0x1a0,-_0x10eab1._0x5262d1,-_0x10eab1._0x574f1,-_0x10eab1._0x7d35b0)][_0x25a604(-0x1fd,-0x258,-_0x10eab1._0x5dfc7d,-0x32b)],'arguments':isJsonObject(_0x1da77b)?_0x1da77b:{}});if(_0x55fc1b[_0x25a604(-_0x10eab1._0x52481f,-_0x10eab1._0x90e70c,-0xd3,-0x4a)])throw new ToolExecutionError(formatMcpContent(_0x55fc1b),{'serverName':_0x40ffc1['serverName'],'toolName':_0x40ffc1[_0x27ff95(-_0x10eab1._0x4579e5,-_0x10eab1._0x16c2ee,-_0x10eab1._0x2cc1f2,-_0x10eab1._0x2cf4d6)][_0x25a604(-_0x10eab1._0x4eaae0,-0x2fb,-_0x10eab1._0x393801,-_0x10eab1._0x392fd8)]});function _0x27ff95(_0x124003,_0x1b87e5,_0x4629a2,_0x5d2911){return _0x545de5(_0x4629a2,_0x1b87e5-_0x599ad4._0x335437,_0x4629a2-_0x599ad4._0x49549a,_0x124003- -_0x599ad4._0x102065);}function _0x25a604(_0x4b4191,_0xdd76c7,_0x6442e4,_0x5ead16){return _0x3a2c87(_0x6442e4,_0xdd76c7-0xd3,_0x6442e4-_0x3984ad._0x29e79c,_0x4b4191- -0x733);}return yield createToolOutput(formatMcpContent(_0x55fc1b),{'serverName':_0x40ffc1['serverName'],'toolName':_0x40ffc1[_0x25a604(-0x1c2,-_0x10eab1._0x170366,-0x2ca,-0x159)][_0x25a604(-0x1fd,-0x1da,-_0x10eab1._0x1876c1,-0x250)],'result':_0x55fc1b}),void 0x0;}});}function resolvePrefix(_0x43a119,_0x2c075d){const _0x3cf8c8={_0x476c2b:0x2e9},_0x552dce={_0x3075a1:0x1a};function _0x28c216(_0x168a06,_0x21ee8a,_0xa97e93,_0x28343f){return _0x324926(_0x168a06-0x1d6,_0x21ee8a,_0xa97e93-0x130,_0x28343f-_0x552dce._0x3075a1);}return _0x2c075d[_0x28c216(_0x3cf8c8._0x476c2b,0x2d0,0x2c1,0x2ef)]??_0x43a119;}function buildMcpHttpHeaders(_0x4fc723){const _0x331716={_0x708cac:0x300,_0x12cee7:0x439,_0x2f00a5:0x395,_0x3d8b12:0x4ab,_0xfc1ba5:0x523,_0xa0094a:0x513,_0x479f1b:0x58d,_0x49a91c:0x351,_0x58d8a8:0x37a,_0x452664:0x265,_0x1f0503:0x470,_0x1359e0:0x45b,_0x46d629:0x380,_0x3f8c78:0x401,_0x2f4cfd:0x381,_0x45f27b:0x41b,_0x4b55e6:0x22a,_0x422118:0x248,_0x5689e8:0x34b},_0x52de22={_0xcede28:0xfb},_0x22ee46={_0x36456f:0xba};function _0x30a5cd(_0x4b768a,_0x427bae,_0x1e3b16,_0x3154ea){return _0x22ef16(_0x3154ea,_0x4b768a-0x20a,_0x1e3b16-0x104,_0x3154ea-_0x22ee46._0x36456f);}const _0x51d85a={..._0x4fc723[_0x3a2787(0x232,_0x331716._0x708cac,0x213,0x3f7)]??{}};_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,_0x331716._0x2f00a5,_0x331716._0x3d8b12,_0x331716._0xfc1ba5)]?.[_0x30a5cd(_0x331716._0xa0094a,_0x331716._0x479f1b,0x4d1,0x54c)]===_0x30a5cd(_0x331716._0x49a91c,_0x331716._0x58d8a8,0x472,_0x331716._0x452664)&&_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,0x30e,_0x331716._0x1f0503,0x36b)]['token']&&_0x51d85a[_0x30a5cd(_0x331716._0x1359e0,_0x331716._0x46d629,0x507,_0x331716._0x3f8c78)]===void 0x0&&(_0x51d85a[_0x3a2787(0x40f,_0x331716._0x2f4cfd,_0x331716._0x45f27b,0x49f)]='Bearer\x20'+_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,0x4e3,0x3a3,0x3cb)][_0x3a2787(0x230,_0x331716._0x4b55e6,_0x331716._0x422118,0x1c7)]);function _0x3a2787(_0x56ad53,_0x56404a,_0x6503cb,_0x21d9c4){return _0x324926(_0x56404a-0x32e,_0x21d9c4,_0x6503cb-0x13e,_0x21d9c4-_0x52de22._0xcede28);}return Object['keys'](_0x51d85a)[_0x3a2787(_0x331716._0x5689e8,0x33a,0x377,0x469)]>0x0?_0x51d85a:void 0x0;}function getErrorMessage(_0x25e2e2){const _0x53831b={_0x512966:0x93,_0x2897d1:0x245},_0x1b5458={_0x24ed8e:0xae,_0x1e7761:0x190};function _0x3413c9(_0x3e208c,_0x59dbb9,_0x36ee1d,_0x3bf737){return _0x22ef16(_0x59dbb9,_0x36ee1d- -0x128,_0x36ee1d-_0x1b5458._0x24ed8e,_0x3bf737-_0x1b5458._0x1e7761);}return _0x25e2e2 instanceof Error?_0x25e2e2[_0x3413c9(_0x53831b._0x512966,_0x53831b._0x2897d1,0x199,0x170)]:String(_0x25e2e2);}function isUnauthorizedError(_0x2ca673){const _0x27ac9e={_0x1ba0db:0x4ab,_0x38874a:0x58e,_0x54e9bc:0x37b},_0x3b5adf={_0x540dc8:0x3c4};function _0x75f20f(_0x4dfbda,_0x171931,_0x3aa37e,_0x1d511d){return _0x324926(_0x4dfbda-_0x3b5adf._0x540dc8,_0x171931,_0x3aa37e-0x1c1,_0x1d511d-0xe4);}return _0x2ca673 instanceof Error&&_0x2ca673['constructor']['name']===_0x75f20f(_0x27ac9e._0x1ba0db,_0x27ac9e._0x38874a,0x3b2,_0x27ac9e._0x54e9bc);}async function connectMcpServer(_0x388b48,_0xaecc37,_0x40c4d9){const _0x13483e={_0xbc955a:0xb3,_0x101906:0x59,_0x59de4a:0x79,_0x4cbdc1:0x14,_0x121880:0x208,_0x40fa20:0x226,_0x2bbe1f:0x2d3,_0x5d139f:0x302,_0xa7b362:0x429,_0x4db02f:0x49f,_0x65966d:0x595,_0x23ac06:0x25,_0x575262:0x4d,_0x35cef0:0x457,_0x2f0111:0x4f7,_0xed4d5:0x49a,_0x174887:0x5b5,_0x23172a:0x41b,_0x207dca:0x5b6,_0x54371b:0x4a0,_0x54be78:0x370,_0x6162ab:0x15b,_0x30d38b:0x6c,_0x4abace:0x31f,_0x3c3346:0x19,_0x184030:0x28,_0x432b26:0x4e,_0x2c61ed:0x49,_0x32713b:0x49,_0x365c07:0x374,_0x559587:0x3b1,_0x3c6073:0x5b3,_0x30cd73:0x314,_0x45c952:0x3a7,_0x27932f:0x28c,_0x127826:0x204,_0x2f6ad6:0xef,_0x231267:0x201,_0x584641:0x25,_0x33b5c6:0x9,_0x2384fb:0x1b7,_0xb97b2c:0x12,_0x5c7034:0x1cc,_0x415c27:0xda,_0x4437ae:0x526,_0x3b3433:0x387,_0x3e00f7:0x397,_0x18bde3:0x4b,_0x557727:0x6f,_0x39f303:0x523,_0x4b4168:0x63d,_0x770424:0x13c,_0x303b22:0x197,_0x2a52a0:0x41,_0x2c930a:0xc8,_0x1d760b:0x348,_0x3805f6:0x2b3},_0x3aa491={_0x42e9cb:0x8b,_0x44a49d:0x8},_0x4658fd={_0x3a2002:0x1a7,_0x195524:0x10b},_0x8bbf21={_0x18599c:0x17f},_0x35f294={_0x347a1a:0xdc,_0x5a3dc3:0x5ab},_0x2616dd={_0xbe4dc3:0x3d5,_0x28496d:0x372},_0x4185a5={_0x20aed2:0x204},_0x384935={_0x51a5fc:0x253};function _0x9f97e3(_0x281d6e,_0x4826eb,_0x1dfd12,_0x2b776c){return _0x22ef16(_0x2b776c,_0x4826eb- -_0x384935._0x51a5fc,_0x1dfd12-0xf,_0x2b776c-0xb7);}const _0x3a6fdb=new Client({'name':_0x9f97e3(-0x7a,_0x13483e._0xbc955a,-_0x13483e._0x101906,0x17f),'version':_0x9f97e3(_0x13483e._0x59de4a,-_0x13483e._0x4cbdc1,-0x104,-0x3e)});if(_0xaecc37[_0x391cc5(_0x13483e._0x121880,_0x13483e._0x40fa20,_0x13483e._0x2bbe1f,_0x13483e._0x5d139f)]===_0x391cc5(0x3f5,_0x13483e._0xa7b362,_0x13483e._0x4db02f,_0x13483e._0x65966d)||_0xaecc37['url']){if(!_0xaecc37[_0x9f97e3(0x3c,-_0x13483e._0x23ac06,-0x5d,-_0x13483e._0x575262)])throw new Error(_0x391cc5(_0x13483e._0x35cef0,_0x13483e._0x2f0111,_0x13483e._0xed4d5,_0x13483e._0x174887)+_0x388b48+_0x391cc5(0x430,0x4e7,_0x13483e._0x23172a,0x537));if(_0xaecc37['auth']?.['type']==='oauth'&&!_0x40c4d9?.[_0x391cc5(0x46c,_0x13483e._0x207dca,_0x13483e._0x54371b,_0x13483e._0x54be78)])throw new Error(_0x9f97e3(_0x13483e._0x6162ab,0x43,-0x23,-_0x13483e._0x30d38b)+_0x388b48+_0x391cc5(0x377,0x217,_0x13483e._0x4abace,0x277));const _0x4dc713=buildMcpHttpHeaders(_0xaecc37),_0xcd6cbb=_0xaecc37[_0x9f97e3(-0x13f,-0x24,-0x38,-0x144)]?.[_0x9f97e3(-0x3a,0xb6,-_0x13483e._0x3c3346,-_0x13483e._0x184030)]===_0x9f97e3(-_0x13483e._0x432b26,_0x13483e._0x2c61ed,0x19,-0xb)&&_0x40c4d9?.[_0x9f97e3(0x132,_0x13483e._0x32713b,-0xe4,0x5)]?createMcpOAuthProvider({'serverName':_0x388b48,'callbackUrl':_0x40c4d9[_0x391cc5(_0x13483e._0x365c07,_0x13483e._0x559587,0x4a0,_0x13483e._0x3c6073)][_0x391cc5(0x2ff,_0x13483e._0x30cd73,_0x13483e._0x45c952,_0x13483e._0x27932f)],'storageDir':_0x40c4d9['oauth'][_0x9f97e3(-_0x13483e._0x127826,-_0x13483e._0x2f6ad6,-0x21f,-_0x13483e._0x231267)],'config':_0xaecc37['auth'],'onRedirect':_0x21b0b0=>_0x40c4d9['oauth']?.['onRedirect'](_0x388b48,_0x21b0b0)}):void 0x0,_0x288668=new StreamableHTTPClientTransport(new URL(_0xaecc37[_0x9f97e3(0x38,-_0x13483e._0x584641,-0xb6,0x8)]),{'authProvider':_0xcd6cbb,'requestInit':_0x4dc713?{'headers':_0x4dc713}:void 0x0});await _0x3a6fdb[_0x9f97e3(-_0x13483e._0x33b5c6,-0x10f,-0x43,-_0x13483e._0x2384fb)](_0x288668);}else{if(!_0xaecc37[_0x9f97e3(_0x13483e._0xb97b2c,0xcc,_0x13483e._0x5c7034,_0x13483e._0x415c27)])throw new Error(_0x391cc5(_0x13483e._0x4437ae,_0x13483e._0x3b3433,_0x13483e._0xed4d5,_0x13483e._0x3e00f7)+_0x388b48+_0x9f97e3(_0x13483e._0x18bde3,-0x63,0xbb,_0x13483e._0x557727));const _0x22b9f1=new StdioClientTransport({'command':_0xaecc37[_0x391cc5(0x42e,0x4bc,_0x13483e._0x39f303,_0x13483e._0x4b4168)],'args':_0xaecc37[_0x9f97e3(-0xad,-_0x13483e._0x770424,-_0x13483e._0x303b22,-0x13b)]??[],'env':_0xaecc37[_0x9f97e3(-0x9a,-_0x13483e._0x2a52a0,-_0x13483e._0x2c930a,-_0x13483e._0x18bde3)]});await _0x3a6fdb[_0x391cc5(0x2eb,0x3d7,_0x13483e._0x1d760b,_0x13483e._0x3805f6)](_0x22b9f1);}function _0x391cc5(_0x293ff6,_0x463b12,_0x56a3fb,_0x3dc1e8){return _0x22ef16(_0x463b12,_0x56a3fb-_0x4185a5._0x20aed2,_0x56a3fb-0x1b8,_0x3dc1e8-0x198);}return{async 'listTools'(){const _0x4665cb={_0x14a945:0x148};function _0x5e7c90(_0x514cab,_0x1a0f11,_0x89623,_0x2e387a){return _0x9f97e3(_0x514cab-_0x4665cb._0x14a945,_0x89623-0x4f0,_0x89623-0x63,_0x1a0f11);}return await _0x3a6fdb[_0x5e7c90(0x479,_0x2616dd._0xbe4dc3,_0x2616dd._0x28496d,0x2fd)]();},async 'callTool'(_0x191fef){const _0x1160dd={_0x2ab8d5:0x9c};function _0x3d19fb(_0xcd95d3,_0x2d8027,_0xb338fb,_0x5cc7d7){return _0x391cc5(_0xcd95d3-_0x35f294._0x347a1a,_0xb338fb,_0x5cc7d7- -_0x35f294._0x5a3dc3,_0x5cc7d7-0xa2);}function _0x24f621(_0x44e328,_0x39bc78,_0x3fefca,_0x3a56af){return _0x9f97e3(_0x44e328-_0x1160dd._0x2ab8d5,_0x44e328-0xe2,_0x3fefca-0x180,_0x3fefca);}return await _0x3a6fdb[_0x3d19fb(-0x27a,-0x24e,-0x154,-0x284)]({'method':_0x3d19fb(-0x176,-0x198,-_0x8bbf21._0x18599c,-0x24f),'params':_0x191fef},CallToolResultSchema);},async 'close'(){function _0x417160(_0x1c09a6,_0x5843f8,_0x19c018,_0x4a730b){return _0x9f97e3(_0x1c09a6-_0x4658fd._0x3a2002,_0x19c018- -0x70,_0x19c018-_0x4658fd._0x195524,_0x1c09a6);}await _0x3a6fdb[_0x417160(-_0x3aa491._0x42e9cb,0x53,-0xd1,_0x3aa491._0x44a49d)]();}};}async function createMcpToolsFromServers(_0x26176b){const _0x36eae7={_0x48da53:0x5e,_0x290dac:0xba,_0x2d5106:0x223,_0x4aca80:0x236,_0xab2318:0x2ed,_0x215e79:0x7b,_0x1bbfe6:0x12c,_0x122c47:0x177,_0xeffe5b:0x30d,_0x4d055a:0x1bd,_0x11ba54:0x250,_0x142653:0x2f5,_0x1e8736:0x286,_0x4547da:0x47e,_0x395e3d:0x29f,_0x5a5d1e:0x374,_0x2b0c5e:0x235,_0xc1ca05:0x89,_0x540a08:0x549,_0x46947f:0x49c,_0x5b0416:0x38b,_0x21b5cd:0x39c,_0x12f45b:0x409,_0x18d421:0x2a5,_0x1f3231:0x1b5},_0x281377={_0x34c331:0x513,_0x306847:0x550,_0x5be29c:0x4ee},_0xd0c836={_0x1eaf9b:0x1f8,_0x10c416:0xa4},_0x2e8ded={_0x21aaeb:0x1b1,_0x19abb6:0x4b,_0x32e287:0x48},_0x43d9e4=_0x26176b[_0x29dfbf(_0x36eae7._0x48da53,_0x36eae7._0x290dac,_0x36eae7._0x2d5106,0x13e)]??connectMcpServer,_0x3c7ad3=[],_0x4c0d91={},_0x4f6210=[];for(const [_0x3f5176,_0x38fb69]of Object[_0x24302f(0x29e,0x310,_0x36eae7._0x4aca80,_0x36eae7._0xab2318)](_0x26176b[_0x29dfbf(_0x36eae7._0x215e79,0xd9,_0x36eae7._0x1bbfe6,0x124)]??{})){if(_0x38fb69[_0x29dfbf(0x254,_0x36eae7._0x122c47,0x365,0x28d)]===![]){_0x4c0d91[_0x3f5176]={'status':_0x29dfbf(0x1a3,0xc8,0x171,0x14b)};continue;}try{const _0x362afd=await _0x43d9e4(_0x3f5176,_0x38fb69,_0x26176b[_0x29dfbf(_0x36eae7._0xeffe5b,_0x36eae7._0x4d055a,0x2bd,_0x36eae7._0x11ba54)]);_0x3c7ad3[_0x24302f(0x4e2,0x564,0x545,0x45b)](_0x362afd);const _0xbf346=await _0x362afd[_0x24302f(0x36b,0x23b,_0x36eae7._0x142653,_0x36eae7._0x1e8736)]();let _0x4dc21c=0x0;for(const _0x335488 of _0xbf346[_0x24302f(_0x36eae7._0x4547da,_0x36eae7._0x395e3d,0x2f5,_0x36eae7._0x5a5d1e)]){const _0x390b4f=_0x26176b['allowedTools']?.[_0x3f5176]?.[_0x335488[_0x29dfbf(_0x36eae7._0x2b0c5e,_0x36eae7._0xc1ca05,0x69,0x171)]];if(_0x390b4f===![])continue;_0x4dc21c+=0x1,_0x4f6210[_0x24302f(0x533,_0x36eae7._0x540a08,_0x36eae7._0x46947f,0x45b)](createMcpTool({'serverName':resolvePrefix(_0x3f5176,_0x38fb69),'tool':_0x335488,'client':_0x362afd}));}_0x4c0d91[_0x3f5176]={'status':_0x24302f(_0x36eae7._0x5b0416,_0x36eae7._0x21b5cd,_0x36eae7._0x12f45b,0x3de),'toolCount':_0x4dc21c};}catch(_0x15bdd8){_0x4c0d91[_0x3f5176]=isUnauthorizedError(_0x15bdd8)?{'status':_0x29dfbf(_0x36eae7._0x18d421,_0x36eae7._0x1f3231,_0x36eae7._0xab2318,0x1fc),'message':getErrorMessage(_0x15bdd8)}:{'status':'error','message':getErrorMessage(_0x15bdd8)};}}function _0x24302f(_0x386faf,_0x314475,_0x27431e,_0x410bc5){return _0x22ef16(_0x386faf,_0x410bc5-_0x2e8ded._0x21aaeb,_0x27431e-_0x2e8ded._0x19abb6,_0x410bc5-_0x2e8ded._0x32e287);}function _0x29dfbf(_0x5f0a6f,_0x3b7955,_0x11f950,_0x1035fd){return _0x324926(_0x1035fd-_0xd0c836._0x1eaf9b,_0x3b7955,_0x11f950-_0xd0c836._0x10c416,_0x1035fd-0x156);}return{'tools':_0x4f6210,'servers':_0x4c0d91,async 'close'(){const _0x27bd6e={_0x4f8bff:0x82,_0x1aafb7:0xef,_0x5c01f2:0x4f2},_0x34d114={_0x1bbe72:0x157};function _0x3794a0(_0x4193d8,_0x3cf9ee,_0x413808,_0x2b85ea){return _0x29dfbf(_0x4193d8-_0x34d114._0x1bbe72,_0x3cf9ee,_0x413808-0x7d,_0x4193d8-0x230);}function _0x487803(_0x4f1cd7,_0xd3b35e,_0x1a6d20,_0x8f0365){return _0x24302f(_0xd3b35e,_0xd3b35e-_0x27bd6e._0x4f8bff,_0x1a6d20-_0x27bd6e._0x1aafb7,_0x1a6d20- -_0x27bd6e._0x5c01f2);}await Promise[_0x3794a0(_0x281377._0x34c331,0x4d6,_0x281377._0x306847,0x53a)](_0x3c7ad3[_0x3794a0(_0x281377._0x5be29c,0x41d,0x471,0x3c0)](_0x4962b1=>_0x4962b1[_0x3794a0(0x41c,0x345,0x3ac,0x4da)]()));}};}function getCommand(_0x4b5d04){const _0x432ad2={_0x2b586d:0x1e3,_0x218933:0xbf,_0x13e59d:0xbd,_0x373cf9:0x2a4,_0x4ccda3:0xda,_0x3aaea0:0xb5,_0xbe0ace:0xb,_0x2eac26:0x9d,_0x375ede:0x334,_0xa3e9c9:0x2f1,_0x4a13b0:0x401,_0x89c429:0x355},_0x568878={_0x2bc7a0:0x15,_0x270f12:0x100,_0xb28902:0xbc},_0x4d2f7a={_0x38644d:0x8b,_0x506d4c:0x132};if(_0x4b5d04&&typeof _0x4b5d04==='object'&&!Array[_0x17d104(_0x432ad2._0x2b586d,_0x432ad2._0x218933,_0x432ad2._0x13e59d,_0x432ad2._0x373cf9)](_0x4b5d04)&&typeof _0x4b5d04[_0xb7145d(_0x432ad2._0x4ccda3,0xcf,-_0x432ad2._0x3aaea0,-_0x432ad2._0xbe0ace)]===_0xb7145d(-0x1c1,0x4,0xc,-_0x432ad2._0x2eac26))return _0x4b5d04[_0x17d104(_0x432ad2._0x375ede,_0x432ad2._0xa3e9c9,_0x432ad2._0x4a13b0,_0x432ad2._0x89c429)];function _0xb7145d(_0xed2352,_0x553efc,_0x57b609,_0x3bd26f){return _0x324926(_0x3bd26f- -0x12c,_0xed2352,_0x57b609-_0x4d2f7a._0x38644d,_0x3bd26f-_0x4d2f7a._0x506d4c);}function _0x17d104(_0x4162cb,_0x8f2f48,_0x22a0a3,_0x227666){return _0x22ef16(_0x227666,_0x4162cb-_0x568878._0x2bc7a0,_0x22a0a3-_0x568878._0x270f12,_0x227666-_0x568878._0xb28902);}return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x324926(0xe2,0xf2,0x20e,0x178),_0x324926(0x105,0x67,0x65,0xfe),_0x22ef16(0x2ec,0x1df,0xba,0x222),_0x324926(-0x22,0x8e,-0x60,-0x7e),_0x324926(0xb3,-0x3b,0x137,0x1c8),'src/formats/message-format.ts',_0x22ef16(0x1d8,0x280,0x325,0x329),_0x324926(0x9a,-0x49,0x13e,-0x10),_0x22ef16(0x394,0x2a1,0x2f7,0x1e6),_0x22ef16(0x1c3,0x1b0,0x145,0x1d0),_0x22ef16(0x25a,0x2fd,0x200,0x20a),_0x22ef16(0x43c,0x314,0x42a,0x25a),'src/shared/types.ts',_0x324926(0x3f,0x5d,0xd1,0x57),_0x22ef16(0x144,0x243,0x175,0x361),_0x324926(0x90,0xe9,-0x4a,0x163),_0x22ef16(0xfd,0x16e,0x27a,0x243)][_0x22ef16(0x26e,0x14c,0x6e,0xa2)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x324926(-0x1,0xe4,-0x7,-0xb),'description':_0x324926(0xe8,0x15,0x74,-0x47),'input_schema':{'type':_0x22ef16(0x15b,0x286,0x283,0x22a),'properties':{'command':{'type':_0x324926(0x8f,0x91,-0x9d,0x77)}},'required':[_0x324926(0x121,0x7a,0x223,0x7f)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x29119d){return{'output':_0x29119d,'structured':{'value':_0x29119d}};}function createUnknownToolResult(_0x4d7087){const _0x4230ef={_0x51b1d0:0x1bf,_0xe13735:0xf3,_0x456791:0x11c,_0x12fa81:0x4b8,_0xfa6c85:0xfb,_0x2e26e7:0x125,_0x53f4e8:0x1f3},_0x4a3593={_0x56b228:0x95,_0x611984:0x126,_0x1dbc7d:0x12},_0x1cf2c2={_0x4f4be5:0x2e0,_0x283bba:0x1a7,_0x23de8e:0x16};function _0x231aa2(_0x470e36,_0x1d0144,_0x1529f0,_0xd9164a){return _0x324926(_0x470e36-_0x1cf2c2._0x4f4be5,_0xd9164a,_0x1529f0-_0x1cf2c2._0x283bba,_0xd9164a-_0x1cf2c2._0x23de8e);}function _0x1f0a2f(_0x86b746,_0x44d829,_0x3f4d08,_0x5bed5c){return _0x324926(_0x5bed5c- -_0x4a3593._0x56b228,_0x86b746,_0x3f4d08-_0x4a3593._0x611984,_0x5bed5c-_0x4a3593._0x1dbc7d);}return{'callId':_0x4d7087['id'],'toolName':_0x4d7087[_0x1f0a2f(-0x20a,-_0x4230ef._0x51b1d0,-_0x4230ef._0xe13735,-_0x4230ef._0x456791)],'status':_0x231aa2(0x3e6,0x508,_0x4230ef._0x12fa81,0x304),'output':_0x1f0a2f(-_0x4230ef._0xfa6c85,-0x13b,-0x57,-0x19)+_0x4d7087[_0x1f0a2f(-_0x4230ef._0x2e26e7,-0x106,-_0x4230ef._0x53f4e8,-0x11c)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x120c86,_0x5a7744){const _0x1a84ec={_0x3416f6:0x4bc},_0x5ec0df={_0x38b421:0x21};function _0x225a4c(_0x13a586,_0x1f89c9,_0x381778,_0x53decb){return _0x22ef16(_0x13a586,_0x53decb-0x295,_0x381778-0x173,_0x53decb-_0x5ec0df._0x38b421);}return{'callId':_0x120c86['id'],'toolName':_0x120c86[_0x225a4c(_0x1a84ec._0x3416f6,0x512,0x4f9,0x40c)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x120c86['input']),'exitCode':0x0},'chunks':[_0x5a7744],'meta':createMeta()};}function createMockToolRuntime(){const _0x5330e6={_0xd394d3:0x5db,_0x5c27d1:0x6e1,_0x92da8:0x641,_0x1851be:0x5e7},_0x343e65={_0x2a52b9:0x5a},_0x26c46c=async(_0x243f34,_0x2f0645)=>{if(_0x243f34[_0x39c5ef(-0x24,-0x34,0x9c,_0x343e65._0x2a52b9)]!=='Bash')return createUnknownToolResult(_0x243f34);const _0xfb27a0=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x39c5ef(_0x3e3945,_0x436498,_0x2db64d,_0x2e7b9a){return _0x7ca6(_0x2e7b9a- -0x101,_0x2db64d);}return createSuccessToolResult(_0x243f34,_0xfb27a0);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x5af2d7,_0x1bf29c){function _0x1cfa91(_0x722f08,_0x216c5f,_0x56992c,_0x45fb82){return _0x7ca6(_0x56992c-0x399,_0x45fb82);}return await Promise['all'](_0x5af2d7[_0x1cfa91(_0x5330e6._0xd394d3,_0x5330e6._0x5c27d1,_0x5330e6._0x92da8,_0x5330e6._0x1851be)](async _0x4eb19d=>{return await _0x26c46c(_0x4eb19d,_0x1bf29c);}));},async 'execute'(_0x166c1d,_0x18dc66){return await _0x26c46c(_0x166c1d,_0x18dc66);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x187821={_0x42258d:0x2c6,_0x6fba42:0x28b},_0xcfbd56={_0x4bd7f4:0x19e,_0x42b15a:0xb5};delegatedRunCounter+=0x1;function _0x36762f(_0x4ab492,_0x221c9f,_0x165050,_0x5b81f5){return _0x324926(_0x4ab492-0x232,_0x165050,_0x165050-_0xcfbd56._0x4bd7f4,_0x5b81f5-_0xcfbd56._0x42b15a);}return _0x36762f(_0x187821._0x42258d,_0x187821._0x6fba42,0x29e,0x275)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x3ee2d6,_0x4d9e23){const _0x61c8cb={_0x2ca334:0x172,_0xedf74a:0x17},_0x4203ca={_0x44df5f:0x1ed,_0x4ee938:0x7f};function _0x3a64d9(_0x1a2b6d,_0x36194a,_0x44b1d4,_0x2565a1){return _0x22ef16(_0x2565a1,_0x44b1d4- -0x147,_0x44b1d4-_0x4203ca._0x44df5f,_0x2565a1-_0x4203ca._0x4ee938);}return typeof _0x3ee2d6===_0x3a64d9(_0x61c8cb._0x2ca334,_0x61c8cb._0xedf74a,0xe9,0x1d5)?await _0x3ee2d6(_0x4d9e23):_0x3ee2d6;}function getDelegatedAgentDefinition(_0x4494d4,_0x24e2f2){const _0x4775ff={_0x16ba79:0x65c},_0x2daeaf={_0xbc2265:0x5ac,_0x1433bc:0x112};function _0x2ad38f(_0x5a17df,_0x2d1514,_0x4b882c,_0x7797eb){return _0x324926(_0x7797eb-_0x2daeaf._0xbc2265,_0x4b882c,_0x4b882c-0x14,_0x7797eb-_0x2daeaf._0x1433bc);}return _0x4494d4[_0x2ad38f(0x546,0x67e,0x5db,_0x4775ff._0x16ba79)]?.[_0x24e2f2];}function createRunSummary(_0xdbcbc){const _0x4682f1={_0x25f175:0x10c,_0x5112af:0x72,_0xb6591:0x1e3,_0x18418a:0x11e,_0x5447e9:0x251,_0x60f515:0x2cb,_0x3eebdd:0x229,_0x42068d:0x1b5,_0x18f531:0x93,_0x1d0cec:0x262,_0xf7feb6:0x296,_0x3d03ba:0x188,_0xb7c5ed:0x193,_0x587793:0x60,_0x5e8ec0:0x164},_0x4dcfd7={_0x21aa83:0x133};function _0x49a2fb(_0x3bd2bf,_0x510515,_0x42ca35,_0x170ab0){return _0x22ef16(_0x170ab0,_0x3bd2bf- -0x310,_0x42ca35-0x19d,_0x170ab0-0x179);}function _0x5989c9(_0x19cf9c,_0x7e8e6f,_0x33dadf,_0xb669f9){return _0x22ef16(_0x19cf9c,_0x7e8e6f- -0x3d4,_0x33dadf-_0x4dcfd7._0x21aa83,_0xb669f9-0x10b);}return{'runId':_0xdbcbc[_0x5989c9(0x22,-_0x4682f1._0x25f175,-_0x4682f1._0x5112af,-_0x4682f1._0xb6591)],'agentId':_0xdbcbc['agentId'],'sessionId':_0xdbcbc[_0x49a2fb(-0x130,-_0x4682f1._0x18418a,-0x241,-0x18)],'status':_0xdbcbc[_0x5989c9(-0x14b,-0x1bc,-0x293,-_0x4682f1._0x5447e9)],'parentSessionId':_0xdbcbc[_0x5989c9(-0x3bb,-0x311,-0x31a,-_0x4682f1._0x60f515)],..._0xdbcbc['originToolCallId']!==void 0x0?{'originToolCallId':_0xdbcbc[_0x5989c9(-_0x4682f1._0x3eebdd,-0x24a,-_0x4682f1._0x42068d,-0x16c)]}:{},..._0xdbcbc['errorMessage']!==void 0x0?{'errorMessage':_0xdbcbc[_0x49a2fb(-0x41,-0xb6,-_0x4682f1._0x18f531,0xcc)]}:{},..._0xdbcbc[_0x49a2fb(-0x188,-_0x4682f1._0x1d0cec,-0x14c,-_0x4682f1._0xf7feb6)]?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0xdbcbc[_0x49a2fb(-_0x4682f1._0x3d03ba,-_0x4682f1._0xb7c5ed,-0xd3,-0xcd)][_0x49a2fb(-_0x4682f1._0x587793,0x5d,-_0x4682f1._0x5e8ec0,-0x33)])}:{}};}function createRunSummaryOutput(_0x1b7114,_0x1174c6){const _0x4be35c={_0x255821:0x1a5,_0x3e2b66:0x24f,_0x3d8b0e:0x1c7,_0x5d24b6:0x160,_0x598373:0x22f,_0x90b672:0x568,_0x389538:0x443},_0x41ac2a={_0x349e5c:0x239,_0x388b88:0x105,_0x192992:0x171},_0x56f428={_0x31226e:0x3f7,_0x4fa3b5:0x92,_0x163931:0x17e};function _0x4536e6(_0x15d12c,_0x2d2125,_0xa3fefc,_0x29ba29){return _0x22ef16(_0x29ba29,_0x15d12c- -_0x56f428._0x31226e,_0xa3fefc-_0x56f428._0x4fa3b5,_0x29ba29-_0x56f428._0x163931);}function _0x5dc622(_0x413722,_0x5c0de1,_0x1c22e9,_0xb73db5){return _0x22ef16(_0x413722,_0xb73db5-_0x41ac2a._0x349e5c,_0x1c22e9-_0x41ac2a._0x388b88,_0xb73db5-_0x41ac2a._0x192992);}const _0x310e80=createRunSummary(_0x1b7114),_0x45c53b=_0x310e80[_0x4536e6(-0x2ae,-_0x4be35c._0x255821,-_0x4be35c._0x3e2b66,-0x252)];return createToolOutput(typeof _0x45c53b===_0x4536e6(-0x16a,-_0x4be35c._0x3d8b0e,-_0x4be35c._0x5d24b6,-_0x4be35c._0x598373)&&_0x45c53b[_0x5dc622(0x3e8,0x3ee,_0x4be35c._0x90b672,_0x4be35c._0x389538)]>0x0?_0x45c53b:_0x1174c6,_0x310e80);}function getRunTerminalErrorMessage(_0x3ebbca){const _0x4ee624={_0x1f40ff:0x174,_0x328df4:0x60,_0x3cceeb:0x13f,_0x4c1fc4:0x73,_0x816419:0x4de,_0x3e0c6a:0x52b,_0x3cc22c:0x95,_0x46ad97:0x23,_0x15d06d:0x76,_0x3717d1:0x11f},_0x9364b7={_0xa3a55f:0x50},_0x37b9cc={_0x47d3ab:0x14f},_0x2d161b=_0x3ebbca?.[_0x2fbd90(0x3d5,0x3af,0x3ec,0x2e5)][_0x535536(-_0x4ee624._0x1f40ff,-0xcf,-_0x4ee624._0x328df4,-0x23e)]['at'](-0x1);function _0x535536(_0x3afeeb,_0xc58ca0,_0x39c671,_0x1d9828){return _0x22ef16(_0xc58ca0,_0x3afeeb- -0x28c,_0x39c671-_0x37b9cc._0x47d3ab,_0x1d9828-0x35);}function _0x2fbd90(_0x38030c,_0x194798,_0x297a22,_0x40bcaa){return _0x22ef16(_0x194798,_0x38030c-0x2b5,_0x297a22-0x1d4,_0x40bcaa-_0x9364b7._0xa3a55f);}if(_0x2d161b?.[_0x535536(-0x74,-0x167,-_0x4ee624._0x3cceeb,-_0x4ee624._0x4c1fc4)]===_0x2fbd90(0x5b9,_0x4ee624._0x816419,0x615,_0x4ee624._0x3e0c6a)&&_0x2d161b['output'][_0x535536(-_0x4ee624._0x3cc22c,-_0x4ee624._0x46ad97,0x3,-_0x4ee624._0x15d06d)]()[_0x535536(-0x82,0x78,-0x22,-_0x4ee624._0x3717d1)]>0x0)return _0x2d161b['output'];return void 0x0;}function formatAbortedRunMessage(_0x3cb4c4,_0x236090){const _0x5a9738={_0x2003e2:0x4de,_0x372518:0x4e8,_0x1c4f14:0x42a,_0x38fd57:0x425,_0x35bf56:0x48f,_0x4e8bb2:0x620,_0x3e3424:0x5b3,_0x1e5302:0x573,_0x2b2314:0x637,_0xa2b66:0x69f,_0x10dbe3:0x6b2,_0x197cdd:0x752},_0x50a6b8={_0x432d61:0x57a,_0x5e0f6a:0xc3},_0x2e1120={_0x4ae3ee:0x314},_0x23afd1=_0x39b429(_0x5a9738._0x2003e2,_0x5a9738._0x372518,0x576,_0x5a9738._0x1c4f14)+_0x3cb4c4+_0x39b429(_0x5a9738._0x38fd57,_0x5a9738._0x35bf56,0x41a,0x307);if(!_0x236090||_0x236090[_0x10d7e0(0x45b,_0x5a9738._0x4e8bb2,_0x5a9738._0x3e3424,_0x5a9738._0x1e5302)]()[_0x10d7e0(_0x5a9738._0x2b2314,_0x5a9738._0xa2b66,_0x5a9738._0x10dbe3,0x586)]===0x0||_0x236090===_0x23afd1)return _0x23afd1;function _0x39b429(_0x4ed37f,_0x3eefb0,_0x46316e,_0x431bb1){return _0x22ef16(_0x3eefb0,_0x4ed37f-_0x2e1120._0x4ae3ee,_0x46316e-0x168,_0x431bb1-0x18d);}function _0x10d7e0(_0x3fe94e,_0x3a8101,_0xc18bd4,_0x1bfe32){return _0x324926(_0x1bfe32-_0x50a6b8._0x432d61,_0x3a8101,_0xc18bd4-0x15c,_0x1bfe32-_0x50a6b8._0x5e0f6a);}return _0x23afd1+_0x10d7e0(0x73e,_0x5a9738._0x197cdd,0x715,0x659)+_0x236090;}function createAssignTaskTool(_0xc8ae36){const _0x4dfe4f={_0x33b9b5:0x20f,_0x268e83:0x2,_0x5c827d:0x67,_0x4ae73e:0x8c,_0x525d8d:0x261,_0x4cc838:0x148,_0x592f91:0x155,_0x59cdda:0x206,_0x193c10:0x23a,_0xb6a716:0x2ea,_0xabdaec:0xb6,_0x34ad7b:0x1d,_0x228c26:0x18,_0x5c005a:0x2cb,_0x25e425:0x21b},_0x476f0f={_0xca2372:0xa7,_0xd4e4b4:0xe1,_0x2a6696:0x1a5,_0xffe81e:0x2cb,_0x106d8f:0x1d9,_0x101cba:0x157,_0x15054f:0x1ab,_0x4c53fe:0x18a,_0xf989e3:0x2b1,_0x3184ef:0x1b7,_0xb8fb2a:0x285,_0x169660:0x1bb,_0x1b18c5:0x286,_0x547027:0x2f5,_0x5e8b62:0x100,_0x510050:0x1c3,_0x3bb496:0x1d3,_0x37b4dc:0x274,_0x164e82:0x105,_0x30a489:0x178,_0x2c1dba:0x1e5,_0x59538c:0x71,_0x50bb76:0x1d,_0xb1ee51:0x23c,_0x377ef9:0x1c4,_0x1f45a3:0x213,_0x31309c:0x135,_0x2e72cb:0x1f4,_0x428a38:0x93,_0x375f1e:0x1eb,_0x45e069:0x15b,_0x45785d:0x35,_0x51ec46:0x1fa,_0x27b4fa:0x1f6,_0x42a170:0x1bc,_0x459fdf:0xd7,_0x1233f4:0x208,_0x4fdf8f:0x2b5,_0x2ed83b:0xde,_0x134111:0x1bf,_0x33694f:0x91,_0x2be0be:0x8,_0x31bde0:0x23,_0x4cd1f3:0x189,_0x485e01:0x10e,_0x364990:0x12,_0x5d617e:0x172,_0x38f0e4:0x2c9,_0x2e81c7:0xef,_0x589f9e:0x50,_0x30de71:0x84,_0x44c805:0x7f,_0x12b452:0x1c8,_0x450b06:0x178,_0x32eb92:0x101,_0xee3005:0xc1,_0x5e305c:0x195,_0x4375fb:0x20a,_0x171dfa:0x2c6,_0x53c57c:0x6e,_0x2bf1b5:0x86,_0x2c7dc3:0x154,_0x187365:0x132,_0x30d636:0xe9,_0xe6c2b5:0xa4,_0x2e8b0c:0x1d6},_0x5402c1={_0x3f3281:0x13b,_0x15e70b:0x7f},_0x29dc08={_0x66c73b:0x1ea},_0x14a551={_0x26852d:0x177},_0x4bb889={_0x1d9985:0x22c,_0x544f71:0x1c6};function _0x50fcf2(_0x29e788,_0x26dacb,_0x4fa9c4,_0x4527aa){return _0x22ef16(_0x29e788,_0x4527aa- -_0x4bb889._0x1d9985,_0x4fa9c4-0x18e,_0x4527aa-_0x4bb889._0x544f71);}function _0x24ddff(_0x542982,_0xb70580,_0x3e300f,_0x468de9){return _0x324926(_0x468de9-_0x14a551._0x26852d,_0x542982,_0x3e300f-0x180,_0x468de9-0x78);}return defineTool({'name':_0x50fcf2(-_0x4dfe4f._0x33b9b5,-0x53,-0x1f0,-0x12b),'description':_0x50fcf2(_0x4dfe4f._0x268e83,_0x4dfe4f._0x5c827d,_0x4dfe4f._0x4ae73e,-0x7b),'inputSchema':{'type':_0x24ddff(_0x4dfe4f._0x525d8d,0x2be,_0x4dfe4f._0x4cc838,0x1ff),'properties':{'agentId':{'type':_0x24ddff(_0x4dfe4f._0x592f91,0x2aa,0x2c4,_0x4dfe4f._0x59cdda)},'description':{'type':'string'},'task':{'type':_0x24ddff(_0x4dfe4f._0x193c10,_0x4dfe4f._0xb6a716,0x298,_0x4dfe4f._0x59cdda)}},'required':['agentId',_0x24ddff(_0x4dfe4f._0xabdaec,_0x4dfe4f._0x34ad7b,_0x4dfe4f._0x228c26,0x80),_0x24ddff(0x1c4,_0x4dfe4f._0x5c005a,0x251,_0x4dfe4f._0x25e425)]},async *'execute'(_0xc768ec,_0x37a9d8){const _0x21ff9a={_0x5546d0:0x3b0,_0x3cf768:0x497,_0x2ab41e:0x4e,_0x43e531:0x1c7,_0x567901:0x14a,_0x16e732:0x3a7,_0xe599be:0x335},_0x57ca0c=createDelegatedRunId(),_0x5c0cd1={'agentId':_0xc768ec[_0x20b2be(-_0x476f0f._0xca2372,-_0x476f0f._0xd4e4b4,-_0x476f0f._0x2a6696,-_0x476f0f._0xffe81e)],'parentSessionId':_0x37a9d8[_0x98fb0a(-0x27d,-0x1ab,-0x1f4,-_0x476f0f._0x106d8f)],'runId':_0x57ca0c,..._0x37a9d8['toolCallId']!==void 0x0?{'toolCallId':_0x37a9d8[_0x98fb0a(-0x1e7,-0x369,-0x255,-0x1cb)]}:{}},_0x4ee509=getDelegatedAgentDefinition(_0xc8ae36,_0xc768ec[_0x20b2be(-0x291,-0xc3,-0x1a5,-0x76)]);if(!_0x4ee509)throw new ToolExecutionError(_0x98fb0a(-_0x476f0f._0x101cba,-0x1a7,-_0x476f0f._0x15054f,-0x22b)+_0xc768ec[_0x20b2be(-_0x476f0f._0x4c53fe,-0x14f,-0x1a5,-0x1aa)],{'agentId':_0xc768ec[_0x20b2be(-_0x476f0f._0xf989e3,-0x22b,-_0x476f0f._0x2a6696,-_0x476f0f._0x3184ef)]});const _0x2cad90=new Agent(await resolveDelegatedAgentOptions(_0x4ee509,_0x5c0cd1));let _0x321758={'runId':_0x57ca0c,'agentId':_0xc768ec[_0x20b2be(-0x24c,-0x7c,-0x1a5,-_0x476f0f._0xb8fb2a)],'sessionId':_0x2cad90[_0x98fb0a(-0x129,-_0x476f0f._0x169660,-0x1f4,-_0x476f0f._0x1b18c5)],'status':_0x20b2be(-0x131,-_0x476f0f._0x547027,-0x1d8,-0x124),'parentSessionId':_0x37a9d8[_0x98fb0a(-0x117,-_0x476f0f._0x5e8b62,-0x1f4,-0x14e)],..._0x37a9d8['toolCallId']!==void 0x0?{'originToolCallId':_0x37a9d8['toolCallId']}:{}};const _0x2c9cec=new AbortController();function _0x98fb0a(_0x523656,_0x20bccd,_0x3cf9d0,_0x88f2d4){return _0x24ddff(_0x523656,_0x20bccd-0x124,_0x3cf9d0-_0x29dc08._0x66c73b,_0x3cf9d0- -0x34d);}const _0x3e2959=addAbortListener(_0x37a9d8[_0x98fb0a(-_0x476f0f._0x510050,-0x14b,-_0x476f0f._0x3bb496,-_0x476f0f._0x37b4dc)],()=>{const _0x27fa88={_0x40aa59:0x42,_0x840454:0x5b,_0x52ea59:0x56},_0x794af3={_0x5670b2:0x19e};function _0x397206(_0x5ef1a2,_0x47b5f7,_0xe1aa21,_0x4bed00){return _0x98fb0a(_0x4bed00,_0x47b5f7-0x46,_0x47b5f7-0x5ed,_0x4bed00-_0x794af3._0x5670b2);}function _0x5e26e1(_0x4e2489,_0x594169,_0xd9a2fa,_0x2fbaf4){return _0x98fb0a(_0xd9a2fa,_0x594169-_0x27fa88._0x40aa59,_0x2fbaf4-_0x27fa88._0x840454,_0x2fbaf4-_0x27fa88._0x52ea59);}_0x2c9cec[_0x397206(0x448,_0x21ff9a._0x5546d0,_0x21ff9a._0x3cf768,0x39f)](_0x37a9d8[_0x5e26e1(-_0x21ff9a._0x2ab41e,-_0x21ff9a._0x43e531,-_0x21ff9a._0x567901,-0x178)]?.[_0x397206(_0x21ff9a._0x16e732,_0x21ff9a._0xe599be,0x2ca,0x27c)]);});yield createToolOutput(_0x20b2be(-_0x476f0f._0x164e82,-_0x476f0f._0x30a489,-_0x476f0f._0x2c1dba,-0x1e6)+_0x321758['runId']+'.',{'runId':_0x321758[_0x20b2be(-0x7c,_0x476f0f._0x59538c,_0x476f0f._0x50bb76,-0x68)],'agentId':_0x321758[_0x98fb0a(-_0x476f0f._0xb1ee51,-_0x476f0f._0x377ef9,-0x2ce,-0x21c)],'sessionId':_0x321758[_0x98fb0a(-_0x476f0f._0x1f45a3,-_0x476f0f._0x31309c,-_0x476f0f._0x2e72cb,-0x17a)],'status':_0x321758[_0x20b2be(-0x6e,-0x149,-_0x476f0f._0x428a38,-0xe7)]});function _0x20b2be(_0x9c86fb,_0x22258d,_0x50dfad,_0x13761c){return _0x50fcf2(_0x13761c,_0x22258d-0x24,_0x50dfad-_0x5402c1._0x3f3281,_0x50dfad- -_0x5402c1._0x15e70b);}try{const _0x251d0f=await _0x2cad90['send'](_0xc768ec[_0x98fb0a(-_0x476f0f._0x375f1e,-_0x476f0f._0x45e069,-0x132,-_0x476f0f._0x45785d)],{'signal':_0x2c9cec[_0x98fb0a(-0x1bd,-_0x476f0f._0x51ec46,-_0x476f0f._0x3bb496,-0x1fe)]});_0x321758={..._0x321758,'status':_0x251d0f[_0x98fb0a(-0x13a,-_0x476f0f._0x27b4fa,-_0x476f0f._0x42a170,-_0x476f0f._0x459fdf)],'result':_0x251d0f};if(_0x251d0f[_0x98fb0a(-_0x476f0f._0x1233f4,-0x197,-0x1bc,-_0x476f0f._0xca2372)]!==_0x98fb0a(-0xc4,-_0x476f0f._0x4fdf8f,-0x1ae,-0xda)){const _0x11d443=getRunTerminalErrorMessage(_0x251d0f),_0x3c87ea=formatAbortedRunMessage(_0x321758[_0x20b2be(-0xfe,-_0x476f0f._0x2ed83b,0x1d,0x11b)],_0x11d443);throw new ToolExecutionError(_0x3c87ea,{...createRunSummary(_0x321758),'aborted':!![],'errorMessage':_0x3c87ea});}return createRunSummaryOutput(_0x321758,'Agent\x20run\x20'+_0x321758[_0x98fb0a(-_0x476f0f._0x134111,-_0x476f0f._0x33694f,-0x10c,_0x476f0f._0x2be0be)]+_0x20b2be(-_0x476f0f._0x31bde0,-_0x476f0f._0x4cd1f3,-_0x476f0f._0x485e01,-_0x476f0f._0x364990));}catch(_0x604e3e){if(_0x604e3e instanceof ToolExecutionError)throw _0x604e3e;if(isAbortError(_0x604e3e)||_0x2c9cec['signal'][_0x20b2be(-0x27f,-_0x476f0f._0x5d617e,-0x1d7,-0x272)]||_0x37a9d8['signal'][_0x20b2be(-0x1d1,-0x13e,-0x1d7,-_0x476f0f._0x38f0e4)]){const _0x4c8f73=getRunTerminalErrorMessage(_0x321758['result'])??(_0x604e3e instanceof Error?_0x604e3e[_0x20b2be(0x2c,-_0x476f0f._0x2e81c7,0x16,_0x476f0f._0x589f9e)]:String(_0x604e3e)),_0x4db117=formatAbortedRunMessage(_0x321758[_0x20b2be(-0x7,-_0x476f0f._0x30de71,0x1d,-_0x476f0f._0x44c805)],_0x4c8f73);_0x321758={..._0x321758,'status':'aborted','errorMessage':_0x4db117};throw new ToolExecutionError(_0x4db117,{...createRunSummary(_0x321758),'aborted':!![],'errorMessage':_0x4db117});}const _0x5727cb=getRunTerminalErrorMessage(_0x321758[_0x98fb0a(-_0x476f0f._0x12b452,-0x1c3,-0x24c,-_0x476f0f._0x450b06)])??(_0x604e3e instanceof Error?_0x604e3e[_0x20b2be(-_0x476f0f._0x32eb92,0x58,0x16,-_0x476f0f._0xee3005)]:String(_0x604e3e))??_0x98fb0a(-_0x476f0f._0x5e305c,-0x2fe,-_0x476f0f._0x4375fb,-_0x476f0f._0x171dfa)+_0x321758[_0x20b2be(_0x476f0f._0x53c57c,_0x476f0f._0x2bf1b5,_0x476f0f._0x50bb76,-0x84)]+_0x20b2be(_0x476f0f._0x2c7dc3,_0x476f0f._0x187365,0x4d,_0x476f0f._0x30d636);_0x321758={..._0x321758,'status':_0x98fb0a(-_0x476f0f._0xe6c2b5,-_0x476f0f._0x2e8b0c,-0x14b,-0x26c),'errorMessage':_0x5727cb};throw new ToolExecutionError(_0x5727cb,{...createRunSummary(_0x321758),'errorMessage':_0x5727cb});}finally{_0x3e2959();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x3c0dd6){return[createAssignTaskTool(_0x3c0dd6)];}import*as _0x380f5b from'path';function buildDescription2(_0x402fdd){const _0x573a14={_0x1e0375:0x1e8,_0x49ff40:0x98,_0x5efc23:0xee,_0x58cc4b:0xc1,_0x498125:0x25b,_0xfca97c:0x2d,_0x599667:0xd2,_0x56abb2:0x109,_0x495779:0xdd,_0xb1141c:0x34,_0x33bff1:0x199,_0x3e377a:0x135},_0x490921={_0x13cb8c:0x2b,_0x1efe9a:0x1c4,_0xf8f669:0x185},_0x490f4e={_0x2dc73a:0x1c9,_0x59901a:0x1d6};if(_0x402fdd[_0x3a0ec2(0x268,_0x573a14._0x1e0375,0x2a7,0x2df)]===0x0)return _0x28fe46(-0x52,-_0x573a14._0x49ff40,-_0x573a14._0x5efc23,-0x140);const _0x49e604=[_0x28fe46(-0xbd,-_0x573a14._0x58cc4b,0x5d,0xa),_0x3a0ec2(_0x573a14._0x498125,0x330,0x1ea,0x229),_0x28fe46(0x7e,_0x573a14._0xfca97c,0x67,-0xab),_0x28fe46(0xe,-0x26,-_0x573a14._0x599667,-_0x573a14._0x56abb2),..._0x402fdd['map'](_0x2d21b4=>'-\x20'+_0x2d21b4['name']+':\x20'+_0x2d21b4[_0x28fe46(-0x122,-0x239,-0x16a,-0x169)])];function _0x3a0ec2(_0x11b3da,_0x12df6c,_0x57b2c0,_0x2d106a){return _0x22ef16(_0x11b3da,_0x2d106a-0xd5,_0x57b2c0-_0x490f4e._0x2dc73a,_0x2d106a-_0x490f4e._0x59901a);}function _0x28fe46(_0x34cbf0,_0x575897,_0x31b50f,_0x4f5728){return _0x324926(_0x34cbf0- -_0x490921._0x13cb8c,_0x575897,_0x31b50f-_0x490921._0x1efe9a,_0x4f5728-_0x490921._0xf8f669);}return _0x49e604[_0x28fe46(-_0x573a14._0x495779,-_0x573a14._0xb1141c,-_0x573a14._0x33bff1,-_0x573a14._0x3e377a)]('\x0a');}function createLoadSkillTool(_0x161f66){const _0x598420={_0x27476b:0x1ab,_0x4116b4:0xbc,_0x105aa9:0x5c,_0x5cb483:0xae,_0x412aa7:0x110,_0x2ceaa8:0x38,_0x3a39fb:0x78,_0x198454:0x8c,_0xb47b59:0xfa,_0x3b3534:0x12,_0x4eb9b7:0x1f1,_0x25ef7f:0xd3},_0x56ac6b={_0x2a73c4:0x588,_0x391117:0x67,_0x1d1ddf:0x147,_0xf67dd3:0x2a9,_0x1505be:0x2a0,_0x1745f3:0xc1,_0x28fece:0x12b,_0x5febb:0x9d,_0x3e1b5a:0x81,_0x3c2238:0x127,_0x22578a:0x54b,_0x48793d:0x49a,_0xb5448:0x507,_0x3585ef:0x37a,_0x4eb1b9:0x396,_0x5bfca0:0x3ef,_0x595b7d:0x4b3,_0x3da620:0x4af,_0x4eb62a:0x4ad,_0x5cda38:0x69,_0xe3d492:0x132,_0x48742a:0x18d,_0x186eb1:0x56c,_0x58f1f8:0x615,_0x41a1e6:0x457,_0x8a782c:0x574,_0x3f8c8c:0xc3,_0x18381a:0x18b,_0x5259e6:0x6e,_0x13ba55:0x69,_0xe11f2d:0x14e,_0x2002ec:0x51,_0x267a8b:0x71,_0x2d1c65:0x56c,_0x52bd1b:0x695},_0xb21afb={_0xc3fc8f:0xd5,_0x1d794c:0x40},_0x15bc9a={_0x233f0a:0x59},_0x1da874={_0x22c6c3:0x69};function _0x56f00f(_0x507856,_0x423afb,_0xe37f7c,_0x5466c3){return _0x324926(_0xe37f7c- -0x4c,_0x5466c3,_0xe37f7c-_0x1da874._0x22c6c3,_0x5466c3-0x6);}function _0xbc27f6(_0xdccfad,_0x2b9323,_0x3ed874,_0x148a26){return _0x324926(_0x3ed874-0x1d,_0xdccfad,_0x3ed874-0x1c7,_0x148a26-_0x15bc9a._0x233f0a);}const _0x5dc613=new Map(_0x161f66[_0xbc27f6(-_0x598420._0x27476b,-0x17d,-0x110,-0x15e)][_0xbc27f6(_0x598420._0x4116b4,_0x598420._0x105aa9,0xe3,0x1f6)](_0x5b3836=>[_0x5b3836[_0x56f00f(-0x197,0x2a,-0xd3,0x5d)],_0x5b3836])),_0x1def0e=buildDescription2(_0x161f66[_0xbc27f6(-_0x598420._0x5cb483,-0x1ea,-_0x598420._0x412aa7,-_0x598420._0x2ceaa8)]);return defineTool({'name':_0xbc27f6(_0x598420._0x3a39fb,-_0x598420._0x198454,0x40,0xb2),'description':_0x1def0e,'inputSchema':{'type':_0x56f00f(-0xa8,_0x598420._0xb47b59,0x3c,-0xe9),'properties':{'name':{'type':'string'}},'required':[_0x56f00f(-_0x598420._0x3b3534,-_0x598420._0x4eb9b7,-_0x598420._0x25ef7f,0x3f)]},async *'execute'(_0x2e1283){const _0x4dee27=_0x5dc613[_0x5b54f8(0x565,0x621,0x683,_0x56ac6b._0x2a73c4)](_0x2e1283[_0x178295(0x159,0x94,-_0x56ac6b._0x391117,0x56)]);function _0x178295(_0x4c2f86,_0x3b201f,_0x467e0d,_0x35b34b){return _0xbc27f6(_0x467e0d,_0x3b201f-_0xb21afb._0xc3fc8f,_0x3b201f-0xfe,_0x35b34b-_0xb21afb._0x1d794c);}function _0x5b54f8(_0x5547fe,_0x8e69d8,_0x4e8210,_0x575cc7){return _0xbc27f6(_0x8e69d8,_0x8e69d8-0x188,_0x5547fe-0x4a1,_0x575cc7-0x1b4);}if(!_0x4dee27){const _0x24d58e=Array[_0x178295(_0x56ac6b._0x1d1ddf,0x209,_0x56ac6b._0xf67dd3,_0x56ac6b._0x1505be)](_0x5dc613[_0x178295(0x16f,_0x56ac6b._0x1745f3,0x1c1,-0x64)]())['join'](',\x20');throw new ToolExecutionError(_0x178295(_0x56ac6b._0x28fece,-0x3,_0x56ac6b._0x5febb,-_0x56ac6b._0x3e1b5a)+_0x2e1283[_0x178295(0x180,0x94,_0x56ac6b._0x3c2238,0x196)]+_0x5b54f8(_0x56ac6b._0x22578a,_0x56ac6b._0x48793d,0x520,_0x56ac6b._0xb5448)+_0x24d58e,{'name':_0x2e1283[_0x5b54f8(0x437,_0x56ac6b._0x3585ef,_0x56ac6b._0x4eb1b9,0x4ed)]});}const _0x2f4ec0=await _0x161f66['loadSkill'](_0x4dee27),_0x4e9264=_0x4dee27['source']['directory']??_0x380f5b[_0x5b54f8(_0x56ac6b._0x5bfca0,0x3a6,0x46d,_0x56ac6b._0x595b7d)](_0x4dee27['source'][_0x5b54f8(0x591,0x61a,0x542,0x5e8)]),_0x5e7bd5=[_0x5b54f8(0x557,0x517,_0x56ac6b._0x3da620,_0x56ac6b._0x4eb62a)+_0x2f4ec0[_0x178295(_0x56ac6b._0x5cda38,0x94,0xd2,_0x56ac6b._0xe3d492)],'',_0x2f4ec0[_0x5b54f8(0x3f4,0x460,0x2d8,0x2cf)],'',_0x178295(0x20d,0xde,0x1c5,-0x52),_0x178295(_0x56ac6b._0x48742a,0x150,0x18f,0x9a)+_0x4dee27[_0x5b54f8(_0x56ac6b._0x186eb1,0x4d4,_0x56ac6b._0x58f1f8,_0x56ac6b._0x41a1e6)][_0x5b54f8(0x591,0x61e,_0x56ac6b._0x8a782c,0x5c9)],_0x178295(0x73,_0x56ac6b._0x3f8c8c,0x9e,_0x56ac6b._0x18381a)+_0x4e9264][_0x178295(-_0x56ac6b._0x5259e6,_0x56ac6b._0x13ba55,-0xab,0x48)]('\x0a');return yield createToolOutput(_0x5e7bd5,{'id':_0x2f4ec0['id'],'name':_0x2f4ec0[_0x178295(_0x56ac6b._0xe11f2d,0x94,-_0x56ac6b._0x2002ec,_0x56ac6b._0x267a8b)],'path':_0x4dee27[_0x5b54f8(_0x56ac6b._0x2d1c65,_0x56ac6b._0x52bd1b,0x4fb,0x48f)]['path'],'baseDirectory':_0x4e9264}),void 0x0;}});}import{readFile as _0xa712f2,stat as _0x21a7ff}from'fs/promises';import*as _0x5a9cac from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x324926(-0x12e,-0x47,-0x73,-0xa4),_0x22ef16(0x2bb,0x20b,0x244,0x264),_0x324926(-0x10e,-0x125,-0x1be,-0x215),_0x22ef16(0x1d7,0x196,0xcf,0x292)]),PNG_SIGNATURE=Buffer[_0x324926(0xee,0x111,0xd7,0x11b)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x528c74,_0x3f169c){const _0x4d9b91={_0x58aa9b:0x286,_0x174221:0x418,_0x31406b:0x246,_0x5593be:0x2ec,_0x222154:0x1d9,_0x117f16:0x26b,_0x150489:0x2f4,_0x271849:0x60,_0x265e39:0x36,_0x3ab90d:0x426,_0x53d29d:0x19b,_0x299c5c:0x155,_0xcf2bf8:0x21b,_0x47987e:0x16c,_0x280382:0x1d2,_0x3faf61:0x26b,_0x5a5861:0x35f,_0x9e24c1:0x49e,_0x598efc:0x4aa,_0x2ad877:0x3b2,_0x23bc8f:0x22d,_0x3e214f:0x37c,_0x2faeb9:0x3b4,_0x473d3e:0x118,_0x23aab2:0x275,_0x4f5da9:0x288,_0x176cfe:0x87,_0x253a3b:0x11a,_0x3ac51f:0xf4,_0x380a65:0x46e,_0x4c542e:0x3e7,_0x1ac92d:0x38c,_0x16506b:0x545,_0x525109:0x3fc,_0x326af7:0x4b8,_0x6f32c:0x371,_0x45bfee:0x426},_0x1b7284={_0x390dbf:0x19d,_0x50004e:0x12e,_0x13f449:0x8a},_0x138e19={_0x12f5b8:0x36a,_0x11a601:0xa,_0x4afcaf:0x1e8};if(_0x528c74[_0x11fc21(0x4ae,0x483,_0x4d9b91._0x58aa9b,0x3b2)](0x0,0x8)[_0x215bf0(-0x158,-0x166,-0x18a,-0x1e0)](PNG_SIGNATURE))return'image/png';if(_0x528c74[0x0]===0xff&&_0x528c74[0x1]===0xd8&&_0x528c74[0x2]===0xff)return'image/jpeg';function _0x11fc21(_0x1b05a2,_0x36d604,_0x3dff87,_0x28663b){return _0x324926(_0x28663b-_0x138e19._0x12f5b8,_0x1b05a2,_0x3dff87-_0x138e19._0x11a601,_0x28663b-_0x138e19._0x4afcaf);}function _0x215bf0(_0x13c9f6,_0x367806,_0x29a64c,_0x208ca7){return _0x324926(_0x29a64c- -_0x1b7284._0x390dbf,_0x13c9f6,_0x29a64c-_0x1b7284._0x50004e,_0x208ca7-_0x1b7284._0x13f449);}const _0x5a92f3=_0x528c74['subarray'](0x0,0x6)[_0x11fc21(_0x4d9b91._0x174221,0x2b4,_0x4d9b91._0x31406b,_0x4d9b91._0x5593be)](_0x215bf0(-_0x4d9b91._0x222154,-0x175,-_0x4d9b91._0x117f16,-_0x4d9b91._0x150489));if(_0x5a92f3==='GIF87a'||_0x5a92f3===_0x215bf0(_0x4d9b91._0x271849,_0x4d9b91._0x265e39,-0xcb,0x4))return _0x11fc21(0x399,0x4ec,0x3c7,_0x4d9b91._0x3ab90d);if(_0x528c74[_0x215bf0(-0xab,-_0x4d9b91._0x53d29d,-_0x4d9b91._0x299c5c,-0x7c)](0x0,0x4)[_0x215bf0(-0x167,-0xf2,-_0x4d9b91._0xcf2bf8,-0x102)](_0x215bf0(-_0x4d9b91._0x47987e,-_0x4d9b91._0x280382,-_0x4d9b91._0x3faf61,-_0x4d9b91._0x5a5861))==='RIFF'&&_0x528c74[_0x11fc21(_0x4d9b91._0x9e24c1,_0x4d9b91._0x598efc,0x2b2,_0x4d9b91._0x2ad877)](0x8,0xc)[_0x215bf0(-0x2aa,-0x2a6,-0x21b,-0x2f7)](_0x11fc21(_0x4d9b91._0x23bc8f,_0x4d9b91._0x3e214f,0x36f,0x29c))===_0x215bf0(-0x12f,-0x305,-0x22a,-0x14d))return _0x11fc21(0x57e,0x394,_0x4d9b91._0x2faeb9,0x47c);const _0x32d93f=_0x5a9cac[_0x215bf0(-0x13a,-_0x4d9b91._0x473d3e,-0x1b1,-0x26f)](_0x3f169c)['toLowerCase']();if(_0x32d93f===_0x215bf0(-_0x4d9b91._0x23aab2,-_0x4d9b91._0x4f5da9,-0x234,-0x352))return _0x215bf0(-_0x4d9b91._0x176cfe,-0x59,-_0x4d9b91._0x253a3b,-_0x4d9b91._0x3ac51f);if(_0x32d93f==='.jpg'||_0x32d93f===_0x11fc21(_0x4d9b91._0x380a65,0x39a,_0x4d9b91._0x4c542e,_0x4d9b91._0x1ac92d))return _0x11fc21(0x35d,0x56b,_0x4d9b91._0x16506b,0x47e);if(_0x32d93f==='.gif')return _0x11fc21(_0x4d9b91._0x525109,_0x4d9b91._0x326af7,_0x4d9b91._0x6f32c,_0x4d9b91._0x45bfee);if(_0x32d93f==='.webp')return'image/webp';return void 0x0;}function normalizeDetail(_0xd1b439){const _0x1a9fcb={_0x154a8c:0xb9,_0x3aad0f:0x17d,_0x538668:0x127,_0x103642:0x190,_0x56df62:0x1dc,_0x5a1f3e:0x2a9,_0x112357:0x344,_0x7c2088:0xf6,_0x4bba14:0x9a,_0x47747f:0x9e,_0x4e06eb:0x151,_0x100bc8:0x275},_0x243e2d={_0x24adec:0x46},_0x5c4a39={_0x1c9cc9:0x7a,_0x3f92f7:0xab,_0x39b98f:0xc};function _0x4e1604(_0x4aae4f,_0x44e883,_0x31c7fd,_0x403ec0){return _0x22ef16(_0x4aae4f,_0x31c7fd- -_0x5c4a39._0x1c9cc9,_0x31c7fd-_0x5c4a39._0x3f92f7,_0x403ec0-_0x5c4a39._0x39b98f);}if(_0xd1b439===void 0x0)return void 0x0;const _0x5ee0d1=_0xd1b439[_0x4e1604(0x1b4,_0x1a9fcb._0x154a8c,_0x1a9fcb._0x3aad0f,_0x1a9fcb._0x538668)]()[_0x5996d3(_0x1a9fcb._0x103642,_0x1a9fcb._0x56df62,_0x1a9fcb._0x5a1f3e,_0x1a9fcb._0x112357)]();if(!SUPPORTED_DETAILS[_0x4e1604(0x9f,0x203,_0x1a9fcb._0x7c2088,_0x1a9fcb._0x4bba14)](_0x5ee0d1))throw new ToolExecutionError(_0x4e1604(0xf0,_0x1a9fcb._0x47747f,_0x1a9fcb._0x4e06eb,_0x1a9fcb._0x100bc8)+_0xd1b439,{'detail':_0xd1b439});function _0x5996d3(_0x4e2006,_0x3f32aa,_0x300284,_0x1ae9fe){return _0x22ef16(_0x4e2006,_0x300284- -_0x243e2d._0x24adec,_0x300284-0x1f,_0x1ae9fe-0x50);}return _0x5ee0d1;}function createViewFileTool(_0x2206b5={}){const _0x3b1e06={_0x1c9759:0xf0,_0x54a457:0x33,_0x355abe:0x25,_0x24619a:0x3,_0x4f85eb:0x78,_0x5324ab:0xdb,_0x2295ae:0xef,_0x4f9612:0xbb,_0x593eb0:0x137,_0x391f85:0x65,_0x586d64:0x9c,_0x1f7eab:0x10b,_0x1d3cbe:0x58,_0x5a077b:0x13e,_0x982526:0x62,_0x4ad9a3:0xb2,_0x5c8341:0xdd,_0x4d0d00:0x5f,_0x3251f7:0x1d4,_0x1776ef:0x5d},_0x4f83a6={_0xbd6cb7:0x5eb,_0xe7f3f1:0x5cf,_0x843ca8:0x556,_0x24adb3:0x308,_0x2a265b:0x43e,_0x58074e:0x4b9,_0x2e44ca:0x515,_0x3dc98b:0x532,_0x44f8af:0x320,_0x442eea:0x3d2,_0x2457e9:0x3a1,_0x44db31:0x584,_0x13f2f4:0x4f9,_0x224b53:0x408,_0x2c3dbb:0x5a1,_0x2ab548:0x597,_0xd9a137:0x22,_0x568a04:0x136,_0x380b78:0x1ac,_0x19e810:0x2ce,_0x125074:0x32b,_0x38e6c7:0x3b1,_0xa74441:0x417,_0x2b4dc2:0x308,_0x132778:0x421,_0x2c4f3c:0x214,_0x9c4ee5:0x220,_0x4eae64:0x2c7,_0x500d47:0x28b,_0x2462eb:0x2eb,_0x31c269:0x1b5,_0x29b332:0x2dc,_0x2c9933:0x344,_0x4d6bb6:0x23a,_0x4ee3f7:0x226,_0x4df589:0x2d7,_0x266d24:0x1b7,_0x18657c:0x169,_0x11a7b3:0x534,_0x25c950:0x527,_0x1d4212:0x5cd,_0x54c695:0x389,_0x112b68:0x3e1,_0x8ce7bd:0x501,_0x1f881f:0x348,_0x57975e:0x2eb,_0x4772da:0x3dd,_0x420e56:0x2f6,_0x3fe73a:0x2b0},_0x317455={_0x1ee070:0x15c,_0x4e4cc2:0x435,_0x17624d:0x13e},_0x2f8c69={_0x41345e:0x1b4,_0x545d29:0x1dc},_0x22a5a8={_0x17168e:0x22d,_0x1bbf1e:0x84,_0x146130:0x137},_0x357f18=_0x5a9cac[_0x5209ee(-0x5c,-_0x3b1e06._0x1c9759,-0x6a,-0x35)](_0x2206b5[_0x5209ee(_0x3b1e06._0x54a457,_0x3b1e06._0x355abe,-_0x3b1e06._0x24619a,-_0x3b1e06._0x4f85eb)]??process[_0xc1e682(-0x148,-0x167,-_0x3b1e06._0x5324ab,-0x147)]()),_0x48071c=(_0x2206b5[_0xc1e682(-0x73,_0x3b1e06._0x2295ae,0x3b,_0x3b1e06._0x4f9612)]??[])['map'](_0x2e830e=>_0x5a9cac['resolve'](_0x2e830e));function _0x5209ee(_0x29ce90,_0x38482e,_0x4e70aa,_0x4156d7){return _0x22ef16(_0x38482e,_0x29ce90- -_0x22a5a8._0x17168e,_0x4e70aa-_0x22a5a8._0x1bbf1e,_0x4156d7-_0x22a5a8._0x146130);}function _0xc1e682(_0x342b64,_0x20241c,_0x1c97a6,_0x35ee3f){return _0x22ef16(_0x342b64,_0x1c97a6- -0x1d4,_0x1c97a6-_0x2f8c69._0x41345e,_0x35ee3f-_0x2f8c69._0x545d29);}const _0x5cda6e=_0x2206b5[_0x5209ee(-0x109,-_0x3b1e06._0x593eb0,-0x18e,-0x4e)]??DEFAULT_MAX_BYTES,_0x237f48=_0x2206b5[_0x5209ee(-0xb6,-0x1e,_0x3b1e06._0x391f85,-0x149)]??_0xc1e682(-0x14d,-_0x3b1e06._0x586d64,-_0x3b1e06._0x1f7eab,-0x11b);return defineTool({'name':_0x237f48,'description':_0x5209ee(-0x5a,-0x14,_0x3b1e06._0x1d3cbe,0xb4),'inputSchema':{'type':_0xc1e682(_0x3b1e06._0x5a077b,-_0x3b1e06._0x982526,_0x3b1e06._0x4ad9a3,_0x3b1e06._0x5c8341),'properties':{'path':{'type':_0xc1e682(0xd7,_0x3b1e06._0x4d0d00,0xb9,-0x25)},'detail':{'type':_0xc1e682(0x1b5,_0x3b1e06._0x3251f7,0xb9,_0x3b1e06._0x1776ef)}},'required':['path']},async *'execute'(_0x868aa5){const _0x2f00f9={_0x121881:0x1cf},_0x3c48b8=resolveAllowedPath(_0x357f18,_0x48071c,_0x868aa5[_0x22082d(0x595,_0x4f83a6._0xbd6cb7,_0x4f83a6._0xe7f3f1,0x532)]);await assertWorkspaceFile(_0x3c48b8);const _0x5a59c2=await _0x21a7ff(_0x3c48b8);if(_0x5a59c2[_0x22082d(0x55d,0x562,_0x4f83a6._0x843ca8,0x44a)]>_0x5cda6e)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x868aa5[_0x50a917(0x2eb,0x215,_0x4f83a6._0x24adb3,0x26c)],{'path':_0x868aa5[_0x22082d(_0x4f83a6._0x2a265b,_0x4f83a6._0x58074e,_0x4f83a6._0x2e44ca,_0x4f83a6._0x3dc98b)],'maxBytes':_0x5cda6e,'size':_0x5a59c2['size']});const _0x382da6=await _0xa712f2(_0x3c48b8),_0x173d70=detectImageMediaType(_0x382da6,_0x3c48b8);if(!_0x173d70)throw new ToolExecutionError(_0x22082d(0x46c,_0x4f83a6._0x44f8af,_0x4f83a6._0x442eea,_0x4f83a6._0x2457e9)+_0x868aa5[_0x22082d(0x4c4,_0x4f83a6._0x44db31,_0x4f83a6._0x13f2f4,_0x4f83a6._0x3dc98b)],{'path':_0x868aa5[_0x50a917(0x35e,0x407,0x308,0x3f2)],'supported':[_0x22082d(_0x4f83a6._0x224b53,0x45d,0x4bb,0x4d0),_0x22082d(0x378,_0x4f83a6._0x2c3dbb,_0x4f83a6._0x2ab548,0x481),'.jpg','.png',_0x50a917(0x16c,_0x4f83a6._0xd9a137,_0x4f83a6._0x568a04,0x1c6)]});const _0x3d0b6e=normalizeDetail(_0x868aa5[_0x50a917(0x32c,_0x4f83a6._0x380b78,0x284,_0x4f83a6._0x19e810)]),_0x190d83=[_0x50a917(0x2c9,0x394,_0x4f83a6._0x125074,0x419)+_0x868aa5[_0x50a917(_0x4f83a6._0x38e6c7,_0x4f83a6._0xa74441,_0x4f83a6._0x2b4dc2,0x3d5)],_0x50a917(0x254,0x32b,0x2cc,0x387)+_0x173d70,_0x50a917(0x3f7,0x2c4,0x327,_0x4f83a6._0x132778)+_0x5a59c2[_0x50a917(_0x4f83a6._0x2c4f3c,0x2bc,_0x4f83a6._0x9c4ee5,0x1a5)]+_0x50a917(0x1f9,0x2bf,_0x4f83a6._0x4eae64,_0x4f83a6._0x500d47)][_0x22082d(0x551,0x4f0,0x492,0x4ab)](_0x3d0b6e?[_0x50a917(_0x4f83a6._0x2462eb,0x213,0x1d8,_0x4f83a6._0x31c269)+_0x3d0b6e]:[])[_0x22082d(_0x4f83a6._0x29b332,_0x4f83a6._0x2c9933,0x4d6,0x3ad)]('\x0a');function _0x22082d(_0x31811c,_0xfe948c,_0x2c79c0,_0x31c38c){return _0xc1e682(_0x2c79c0,_0xfe948c-_0x317455._0x1ee070,_0x31c38c-_0x317455._0x4e4cc2,_0x31c38c-_0x317455._0x17624d);}const _0x2cfe4d=[{'type':_0x50a917(_0x4f83a6._0x4d6bb6,0x25b,_0x4f83a6._0x4ee3f7,0x2b7),'source':{'type':'base64','media_type':_0x173d70,'data':_0x382da6[_0x50a917(_0x4f83a6._0x4df589,0x1a4,_0x4f83a6._0x266d24,_0x4f83a6._0x18657c)](_0x22082d(_0x4f83a6._0x11a7b3,_0x4f83a6._0x25c950,_0x4f83a6._0x1d4212,0x538))}},{'type':'text','text':_0x190d83}];function _0x50a917(_0x29adae,_0x2e7e08,_0x369a18,_0x5f0de1){return _0x5209ee(_0x369a18-0x264,_0x29adae,_0x369a18-0xcd,_0x5f0de1-_0x2f00f9._0x121881);}return yield createToolOutput(_0x190d83,{'path':_0x868aa5['path'],'resolvedPath':_0x3c48b8,'created':_0x5a59c2[_0x22082d(_0x4f83a6._0x54c695,0x37d,_0x4f83a6._0x112b68,0x447)]['toISOString'](),'modified':_0x5a59c2[_0x22082d(_0x4f83a6._0x8ce7bd,0x456,_0x4f83a6._0x1f881f,0x40a)][_0x50a917(0x213,0x1f9,_0x4f83a6._0x57975e,0x23c)](),'size':_0x5a59c2['size'],'mimeType':_0x173d70,'encoding':_0x50a917(_0x4f83a6._0x4772da,_0x4f83a6._0x420e56,0x30e,_0x4f83a6._0x3fe73a),..._0x3d0b6e?{'detail':_0x3d0b6e}:{}},_0x2cfe4d),void 0x0;}});}import _0x46bcb6 from'turndown';var USER_AGENT=_0x324926(0xe3,0xe6,0x1a4,0x14b),DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x944e0b){const _0x27054c={_0x5073ec:0x4cd,_0x5e97c2:0x46d,_0x1c39ee:0x42c,_0x3e7d29:0x45e,_0x10f084:0x13a,_0x2141b7:0x109,_0x43159f:0x3e,_0xb60925:0x17d,_0x376c1a:0x5ee,_0xa0e29c:0x4da,_0x3da3e4:0x41,_0x15b715:0x4,_0x3a0038:0x4ee,_0x430ad5:0x577,_0x1d8532:0x10c,_0x5b415a:0xc0},_0x643d6={_0x4ecd78:0x21f,_0x1eb2bb:0x10d,_0x1f1494:0x161};let _0x3610cb;try{_0x3610cb=new URL(_0x944e0b);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x944e0b});}function _0x5f4658(_0x23b16d,_0x5a3683,_0x50b0a2,_0x406a46){return _0x22ef16(_0x5a3683,_0x406a46-_0x643d6._0x4ecd78,_0x50b0a2-_0x643d6._0x1eb2bb,_0x406a46-_0x643d6._0x1f1494);}function _0x495819(_0x183ae7,_0x686d79,_0x179014,_0x2f5252){return _0x22ef16(_0x686d79,_0x183ae7- -0x188,_0x179014-0x1ad,_0x2f5252-0xce);}if(_0x3610cb[_0x5f4658(_0x27054c._0x5073ec,0x46f,_0x27054c._0x5e97c2,0x4e1)]!==_0x5f4658(0x3e0,_0x27054c._0x1c39ee,_0x27054c._0x3e7d29,0x3c7)&&_0x3610cb[_0x495819(_0x27054c._0x10f084,_0x27054c._0x2141b7,_0x27054c._0x43159f,_0x27054c._0xb60925)]!==_0x495819(-0xb0,-0x1a0,0x79,-0x180))throw new ToolExecutionError(_0x5f4658(_0x27054c._0x376c1a,_0x27054c._0xa0e29c,0x4ee,0x4d2),{'url':_0x944e0b});if(_0x3610cb[_0x495819(0x7f,0x41,_0x27054c._0x3da3e4,-_0x27054c._0x15b715)]||_0x3610cb['password'])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x3610cb[_0x5f4658(_0x27054c._0x3a0038,_0x27054c._0x430ad5,0x49c,0x4e1)]+'//'+_0x3610cb['host']+_0x3610cb[_0x495819(_0x27054c._0x1d8532,0x183,_0x27054c._0x43159f,_0x27054c._0x5b415a)]});return _0x3610cb;}function parseContentLength(_0x31c5d5){if(!_0x31c5d5)return void 0x0;const _0x5832fe=Number(_0x31c5d5);return Number['isFinite'](_0x5832fe)&&_0x5832fe>=0x0?_0x5832fe:void 0x0;}function createTimeoutSignal(_0x3cadc7,_0x40fa5c){const _0x4338a9={_0x36d915:0xeb,_0x486e61:0x1b0,_0x19d515:0xfc,_0x3b89c5:0x122,_0x2bbea6:0x86,_0x4e76b9:0x169,_0x57c7af:0x1db},_0x1a0f2c={_0x55b319:0x58d,_0x2f93af:0x543,_0x4c3c39:0x24b,_0x43d758:0x366,_0x2d620a:0x26e},_0x2a3176={_0x52ed49:0x4d},_0xaf74a8=new AbortController();function _0x203bad(_0x24213f,_0x547a8f,_0x37074d,_0x543622){return _0x324926(_0x547a8f-0x1d0,_0x24213f,_0x37074d-0xa7,_0x543622-0xa3);}const _0x1f49c2=setTimeout(()=>_0xaf74a8[_0x203bad(0x249,0x169,0x1ae,0x110)](new Error('Fetch\x20timed\x20out')),_0x40fa5c),_0x45713d=()=>_0xaf74a8[_0x5359c4(0x15e,0x9c,0x128,0x20f)](_0x3cadc7[_0x5359c4(0xe3,0x86,0x1b2,0x27)]);function _0x5359c4(_0x31b885,_0x2ccb59,_0xab6d9f,_0x828324){return _0x324926(_0x31b885-0x1c5,_0x828324,_0xab6d9f-_0x2a3176._0x52ed49,_0x828324-0xa8);}return _0x3cadc7[_0x203bad(0x118,0xa6,0x1c4,_0x4338a9._0x36d915)]?_0xaf74a8['abort'](_0x3cadc7[_0x203bad(_0x4338a9._0x486e61,0xee,0xea,_0x4338a9._0x19d515)]):_0x3cadc7[_0x5359c4(0xb0,_0x4338a9._0x3b89c5,0x1a2,0x1a4)](_0x203bad(_0x4338a9._0x2bbea6,_0x4338a9._0x4e76b9,_0x4338a9._0x57c7af,0xae),_0x45713d,{'once':!![]}),{'signal':_0xaf74a8['signal'],'cleanup':()=>{const _0x17cb87={_0x29c026:0x28d,_0x1a62c3:0x1b},_0x42d270={_0x4debfc:0x1fd,_0xe292ab:0xb2};function _0x187bf7(_0x2d2e38,_0x56646c,_0x4fa5dd,_0x5088ca){return _0x203bad(_0x2d2e38,_0x56646c-_0x42d270._0x4debfc,_0x4fa5dd-0xef,_0x5088ca-_0x42d270._0xe292ab);}function _0x42afbb(_0x54cfb5,_0x1dbf6a,_0x432dd7,_0x3a5a72){return _0x203bad(_0x432dd7,_0x1dbf6a-_0x17cb87._0x29c026,_0x432dd7-_0x17cb87._0x1a62c3,_0x3a5a72-0x15b);}clearTimeout(_0x1f49c2),_0x3cadc7[_0x187bf7(0x57e,0x4eb,_0x1a0f2c._0x55b319,_0x1a0f2c._0x2f93af)](_0x187bf7(_0x1a0f2c._0x4c3c39,_0x1a0f2c._0x43d758,0x3ea,_0x1a0f2c._0x2d620a),_0x45713d);}};}function createWebFetchTool(_0xcaf1b3={}){const _0x311e44={_0x482fba:0x24d,_0x3585de:0x26f,_0xe28312:0x320,_0x33eec5:0x157,_0x2bea99:0x30d,_0x403322:0x386,_0x2cdabd:0x313,_0x424e77:0x14d,_0x814c47:0x287,_0x5cfbb9:0x37f,_0x3995f5:0x1cb,_0x34d684:0x3f6,_0xaeafa2:0x286,_0x5ba235:0x21f,_0xdf9c7:0x2a3,_0x333eff:0x31a,_0x321f68:0x475,_0x2e998e:0x3a3,_0x2b691f:0x3c2,_0x150bab:0x39a,_0x353514:0x2bf,_0x1282ed:0x2c0},_0x3aad01={_0x13c93d:0x3be,_0x1f3cb9:0x2b0,_0x55df53:0x26f,_0x1f9979:0x161,_0x511bda:0x12d,_0x58f6fe:0x2c4,_0x1e4c9c:0x4a0,_0x54c46d:0x225,_0x2ba05a:0x300,_0x1b489b:0x299,_0x1f0d28:0x44e,_0x396cfd:0x29d,_0x471217:0x342,_0x363ffb:0x2f7,_0x5cc174:0x3c0,_0x2a9a88:0x3fe,_0x3a46dd:0x56a,_0x5eeb2c:0x371,_0x5b25eb:0x4d7,_0x1c0403:0x4ce,_0x8eb19b:0x584,_0x165dd2:0x2ac,_0x2b70ba:0x2b4,_0x2bcebd:0x214,_0xfb6afb:0x412,_0x4b0c61:0x3c0,_0x1c5c10:0x4f1,_0x433054:0x3bf,_0x5ee7d3:0x3e4,_0x594251:0x4f2,_0x2cab00:0x5bb,_0x1f8fb1:0x4ca,_0x178b80:0x1df,_0x208c57:0x27b,_0x4952de:0x256,_0x4a0b8e:0x2ce,_0x32a1a0:0x472,_0x4b90f0:0x4c2,_0x5263ee:0x455,_0x311207:0x51d,_0x3331d8:0x2ea,_0x1d6358:0x3ec,_0x32792c:0x296,_0x126e7e:0x4c9,_0x10ca46:0x562,_0x3b62e1:0x448},_0x3490d0={_0x66183e:0x62,_0x134f2d:0x1a2},_0xf703c3={_0xe4f224:0x11d},_0x44577b={_0x2dfb6d:0x33};function _0x41440d(_0x5ecc3b,_0x5d96cb,_0x577af9,_0x2acbc0){return _0x22ef16(_0x5d96cb,_0x2acbc0-_0x44577b._0x2dfb6d,_0x577af9-0xbd,_0x2acbc0-0x74);}const _0x502872=_0xcaf1b3[_0x2b1679(0x193,_0x311e44._0x482fba,0x2bb,0x294)]??_0x41440d(_0x311e44._0x3585de,0x32f,0x336,_0x311e44._0xe28312),_0x57155a=_0xcaf1b3[_0x41440d(0x1f5,0x183,0xe6,_0x311e44._0x33eec5)]??DEFAULT_MAX_BYTES2,_0x55e2b1=_0xcaf1b3[_0x41440d(_0x311e44._0x2bea99,0x2f4,0x126,0x23f)]??DEFAULT_TIMEOUT_MS2;function _0x2b1679(_0x6a3eed,_0x518a1a,_0x208e68,_0x49655f){return _0x22ef16(_0x518a1a,_0x49655f-_0xf703c3._0xe4f224,_0x208e68-0x1b9,_0x49655f-0x9b);}const _0x4262cd=new _0x46bcb6({'headingStyle':_0x41440d(_0x311e44._0x403322,0x139,_0x311e44._0x2cdabd,0x25e),'codeBlockStyle':_0x41440d(0x1a6,0x20,_0x311e44._0x424e77,0x125),'bulletListMarker':'-'});return _0x4262cd[_0x41440d(0x1df,0x2d0,0x2b0,_0x311e44._0x814c47)]([_0x2b1679(_0x311e44._0x5cfbb9,0x45b,0x34e,0x365),'style',_0x41440d(0x28c,0x233,0x1c7,0x27f),_0x41440d(0x2ea,0xb1,0x2bd,_0x311e44._0x3995f5),'nav',_0x2b1679(0x1da,0x31b,_0x311e44._0x34d684,0x2f5),_0x41440d(0x391,_0x311e44._0xaeafa2,0x199,0x26c),_0x41440d(0x1f4,_0x311e44._0x5ba235,0x21b,_0x311e44._0xdf9c7)]),defineTool({'name':_0x502872,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x2b1679(0x2fe,_0x311e44._0x333eff,_0x311e44._0x321f68,_0x311e44._0x2e998e),'properties':{'description':{'type':_0x2b1679(_0x311e44._0x2b691f,_0x311e44._0x150bab,0x2e5,0x3aa)},'url':{'type':_0x41440d(0x355,0x230,_0x311e44._0x353514,_0x311e44._0x1282ed)}},'required':['url']},async *'execute'(_0x34f608,_0xbc502a){const _0x46b27b={_0x3d20a7:0x100,_0x352801:0xfd},_0x468f27=assertFetchableUrl(_0x34f608['url'])[_0x483372(0x20e,_0x3aad01._0x13c93d,0x1fb,_0x3aad01._0x1f3cb9)]();if(_0xbc502a['signal'][_0x49d84a(0x393,0x455,_0x3aad01._0x55df53,0x39d)])throw new ToolExecutionError(_0x49d84a(0x42e,0x551,0x3e7,0x3d3),{'url':_0x468f27});const _0x4a2043=createTimeoutSignal(_0xbc502a['signal'],_0x55e2b1);function _0x483372(_0x48576b,_0x2777e9,_0x2b0ad9,_0x554506){return _0x41440d(_0x48576b-0x7c,_0x2777e9,_0x2b0ad9-_0x46b27b._0x3d20a7,_0x554506-_0x46b27b._0x352801);}let _0x445ff8='';function _0x49d84a(_0xb85e7a,_0x539ed8,_0x29b3b0,_0x269516){return _0x2b1679(_0xb85e7a-0x1ec,_0x269516,_0x29b3b0-_0x3490d0._0x66183e,_0xb85e7a-_0x3490d0._0x134f2d);}let _0x51fc78=0x0,_0x50c2e8;try{const _0x152279=await fetch(_0x468f27,{'headers':{'User-Agent':USER_AGENT},'signal':_0x4a2043['signal']});if(!_0x152279['ok'])throw new ToolExecutionError('HTTP\x20'+_0x152279['status']+'\x20'+_0x152279[_0x483372(_0x3aad01._0x1f9979,_0x3aad01._0x511bda,_0x3aad01._0x58f6fe,0x212)],{'url':_0x468f27,'statusCode':_0x152279[_0x49d84a(0x4d7,0x566,0x4f1,_0x3aad01._0x1e4c9c)]});const _0x1ff4ac=parseContentLength(_0x152279[_0x483372(_0x3aad01._0x54c46d,0x384,0x286,_0x3aad01._0x2ba05a)]['get']('content-length'));if(_0x1ff4ac!==void 0x0&&_0x1ff4ac>_0x57155a)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0x1ff4ac+_0x49d84a(0x37f,_0x3aad01._0x1b489b,0x4a3,_0x3aad01._0x1f0d28)+_0x57155a+_0x483372(_0x3aad01._0x396cfd,_0x3aad01._0x471217,_0x3aad01._0x363ffb,_0x3aad01._0x5cc174),{'url':_0x468f27,'statusCode':_0x152279['status'],'contentLength':_0x1ff4ac,'maxBytes':_0x57155a});_0x445ff8=_0x152279[_0x49d84a(0x48f,_0x3aad01._0x2a9a88,0x487,0x401)][_0x49d84a(0x564,0x59e,0x624,0x46a)]('content-type')??'',_0x51fc78=_0x152279[_0x49d84a(0x4d7,_0x3aad01._0x3a46dd,0x4c8,0x48e)],_0x50c2e8=await _0x152279[_0x483372(0x43d,0x498,0x3ae,_0x3aad01._0x5eeb2c)]();}catch(_0x59f07c){if(_0x59f07c instanceof ToolExecutionError)throw _0x59f07c;const _0x3d43cd=_0x59f07c instanceof Error?_0x59f07c[_0x49d84a(0x580,_0x3aad01._0x5b25eb,_0x3aad01._0x1c0403,_0x3aad01._0x8eb19b)]:String(_0x59f07c);throw new ToolExecutionError(_0x3d43cd,{'url':_0x468f27});}finally{_0x4a2043['cleanup']();}if(Buffer[_0x483372(0x27b,0x1bd,0x342,_0x3aad01._0x165dd2)](_0x50c2e8,_0x483372(0x278,0x3ba,_0x3aad01._0x2b70ba,0x2ff))>_0x57155a)throw new ToolExecutionError(_0x483372(0x222,0x2da,0x1a1,_0x3aad01._0x2bcebd)+_0x57155a+_0x483372(_0x3aad01._0xfb6afb,0x4d8,0x325,_0x3aad01._0x4b0c61),{'url':_0x468f27,'statusCode':_0x51fc78,'maxBytes':_0x57155a});const _0x3fc7c3=new Date()[_0x483372(0x458,_0x3aad01._0x1c5c10,_0x3aad01._0x433054,_0x3aad01._0x5ee7d3)]();let _0x1f239b,_0x555aaf;if(_0x445ff8[_0x49d84a(0x44e,0x39b,0x4cb,0x4ce)](_0x49d84a(0x40c,_0x3aad01._0x594251,0x467,0x3d1)))_0x1f239b=_0x49d84a(0x4cf,0x4e6,_0x3aad01._0x2cab00,_0x3aad01._0x1f8fb1)+_0x50c2e8+_0x483372(_0x3aad01._0x178b80,0x217,_0x3aad01._0x208c57,0x1fd),_0x555aaf=_0x483372(0x293,_0x3aad01._0x4952de,0x3ab,_0x3aad01._0x4a0b8e);else _0x445ff8[_0x49d84a(_0x3aad01._0x1f0d28,0x383,_0x3aad01._0x32a1a0,0x445)]('text/html')?(_0x1f239b=_0x4262cd['turndown'](_0x50c2e8),_0x555aaf=_0x49d84a(_0x3aad01._0x4b90f0,0x425,_0x3aad01._0x5263ee,_0x3aad01._0x311207)):(_0x1f239b=_0x50c2e8,_0x555aaf=_0x483372(_0x3aad01._0x3331d8,_0x3aad01._0x1d6358,_0x3aad01._0x32792c,_0x3aad01._0x5eeb2c));return yield createToolOutput(_0x1f239b,{'url':_0x468f27,'contentType':_0x445ff8,'statusCode':_0x51fc78,'format':_0x555aaf,'size':_0x50c2e8[_0x49d84a(_0x3aad01._0x126e7e,_0x3aad01._0x10ca46,0x587,_0x3aad01._0x3b62e1)],'fetchedAt':_0x3fc7c3}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x22ef16(0x21,0xc1,-0x44,0xfb);function normalizeUrl(_0x29834a){const _0x1cba76={_0xd7eb7d:0x641,_0x4060a7:0x281,_0x3bff72:0x2c8,_0x166260:0x38e,_0x465b23:0x439,_0x1c7871:0x356,_0x1ebe0e:0x316,_0x4d058c:0x37e,_0x1504fc:0x2c5,_0x19d9d8:0x339,_0x43ca09:0x412,_0x57ceac:0x446,_0xf9184a:0x384,_0x39488c:0x36f,_0x3bfefd:0x3dd},_0x37e400={_0x498014:0x1bc,_0x113996:0x33},_0x51fb21={_0x52b1ab:0x180};function _0x47e595(_0x5cc967,_0x14267d,_0x54cbb1,_0x5c5db9){return _0x22ef16(_0x54cbb1,_0x5cc967-0x1f6,_0x54cbb1-0xf0,_0x5c5db9-_0x51fb21._0x52b1ab);}function _0x38af5a(_0x4d1338,_0x2b971a,_0x319164,_0x347157){return _0x22ef16(_0x4d1338,_0x319164-0x214,_0x319164-_0x37e400._0x498014,_0x347157-_0x37e400._0x113996);}try{const _0x914d54=new URL(_0x29834a);for(const _0x28846e of[_0x47e595(0x513,0x5cf,0x46f,_0x1cba76._0xd7eb7d),'utm_medium','utm_campaign',_0x38af5a(_0x1cba76._0x4060a7,_0x1cba76._0x3bff72,_0x1cba76._0x166260,_0x1cba76._0x465b23),'utm_content',_0x38af5a(0x1f9,_0x1cba76._0x1c7871,_0x1cba76._0x1ebe0e,0x302),_0x47e595(0x322,_0x1cba76._0x4d058c,_0x1cba76._0x1504fc,0x396),_0x47e595(_0x1cba76._0x19d9d8,0x2f5,0x23c,_0x1cba76._0x43ca09),_0x47e595(_0x1cba76._0x57ceac,0x463,0x376,0x4cc)]){_0x914d54['searchParams'][_0x38af5a(_0x1cba76._0xf9184a,0x502,0x48d,0x480)](_0x28846e);}return _0x914d54[_0x38af5a(_0x1cba76._0x39488c,_0x1cba76._0x3bfefd,0x394,0x48d)]();}catch{return _0x29834a;}}function cseDateRestrict(_0x1d5b0f){const _0x2d7c40={_0x38af2d:0xcd,_0x28ba6c:0x127,_0x3c7b5e:0x1f7,_0x25685c:0x286,_0x5a6ed7:0x2ac},_0x5bcb44={_0x28a1d2:0x3b5,_0x330aeb:0x1ae,_0x1262f1:0xc4},_0x532b0b={_0x367df2:0x3e2};function _0x414920(_0x4bd1b1,_0x817edc,_0xbfd64a,_0x5cfd5f){return _0x22ef16(_0x4bd1b1,_0x5cfd5f- -_0x532b0b._0x367df2,_0xbfd64a-0x1,_0x5cfd5f-0xf1);}if(_0x1d5b0f<=0x0)return void 0x0;if(_0x1d5b0f<=0x1e)return'd'+Math[_0x414920(-0x223,-_0x2d7c40._0x38af2d,-0x15b,-0x1e7)](0x1,Math[_0x41b886(-0x24c,-_0x2d7c40._0x28ba6c,-_0x2d7c40._0x3c7b5e,-0x249)](_0x1d5b0f));if(_0x1d5b0f<=0x16d)return'm'+Math[_0x414920(-_0x2d7c40._0x25685c,-0x1d8,-_0x2d7c40._0x5a6ed7,-0x2b5)](_0x1d5b0f/0x1e);function _0x41b886(_0x46c469,_0x251743,_0x3a86f7,_0x2c7ce0){return _0x22ef16(_0x251743,_0x3a86f7- -_0x5bcb44._0x28a1d2,_0x3a86f7-_0x5bcb44._0x330aeb,_0x2c7ce0-_0x5bcb44._0x1262f1);}return'y'+Math['ceil'](_0x1d5b0f/0x16d);}function addSiteFilters(_0x45b3a2,_0x36ae62){const _0x7d9b85={_0x4c540e:0x1c,_0x26c2e:0x33,_0x34c433:0xf8,_0xbf65ec:0x3d,_0x46013d:0xda,_0x2da360:0x93,_0xeca2fc:0x17a,_0x386bdf:0x2c0,_0x18b83b:0x19f,_0x4abe7d:0x26e},_0x31ebad={_0x2d76e3:0x53},_0x46c8d3={_0x42a396:0x198,_0x1b57ed:0x106};function _0x564ec4(_0xf4cd05,_0x28fac7,_0x2e48ee,_0x41f4cc){return _0x324926(_0x2e48ee- -_0x46c8d3._0x42a396,_0xf4cd05,_0x2e48ee-0x19b,_0x41f4cc-_0x46c8d3._0x1b57ed);}function _0x3c9f35(_0x5e67da,_0x185997,_0x3fb5cd,_0x450930){return _0x324926(_0x5e67da- -0x28,_0x450930,_0x3fb5cd-_0x31ebad._0x2d76e3,_0x450930-0x15e);}if(_0x36ae62[_0x3c9f35(-_0x7d9b85._0x4c540e,-_0x7d9b85._0x26c2e,_0x7d9b85._0x34c433,-_0x7d9b85._0xbf65ec)]===0x0)return _0x45b3a2['trim']();return(_0x45b3a2+'\x20('+_0x36ae62['map'](_0x28051f=>_0x3c9f35(-0xff,-0x68,-0xb2,-0xf6)+_0x28051f)[_0x3c9f35(-_0x7d9b85._0x46013d,-_0x7d9b85._0x2da360,0x1c,-_0x7d9b85._0xeca2fc)]('\x20OR\x20')+')')[_0x564ec4(-_0x7d9b85._0x386bdf,-0xd5,-_0x7d9b85._0x18b83b,-_0x7d9b85._0x4abe7d)]();}function normalizeType(_0x372edd){const _0x56ab8d={_0x254fba:0x380,_0x52495e:0x404,_0x1338b0:0x24b,_0x3274d5:0x355},_0x2e13b6={_0x4033e0:0x432,_0x3e95f6:0x99},_0x112762={_0x5c7df2:0x8e,_0x3b4375:0x165,_0x139238:0xa8};function _0xaec035(_0xb82538,_0x535bfc,_0x15ceb0,_0x15f71a){return _0x22ef16(_0x15ceb0,_0x15f71a-_0x112762._0x5c7df2,_0x15ceb0-_0x112762._0x3b4375,_0x15f71a-_0x112762._0x139238);}function _0x496aed(_0x77431d,_0x51ec13,_0x676a77,_0x1b812c){return _0x324926(_0x51ec13-_0x2e13b6._0x4033e0,_0x1b812c,_0x676a77-0x25,_0x1b812c-_0x2e13b6._0x3e95f6);}return _0x372edd===_0xaec035(0x355,0x35b,0x4af,_0x56ab8d._0x254fba)?_0xaec035(0x3f7,0x282,_0x56ab8d._0x52495e,0x380):_0xaec035(0x406,_0x56ab8d._0x1338b0,0x456,_0x56ab8d._0x3274d5);}async function fetchJson(_0x5292b5,_0x1bcb40){const _0x2e1268={_0x414779:0x36f,_0x5f48c3:0x4af,_0x3ba37b:0x418,_0x48eb5f:0x3c6,_0x317094:0x202,_0x2ef354:0x267,_0x2cd286:0x380,_0x1411a7:0x44a,_0x544edc:0x448,_0x44aaa2:0x3ba,_0x570edc:0x324,_0x5605a4:0x1c7,_0x209b7e:0x284,_0x34239d:0x236,_0x2f0328:0x173,_0x2acc25:0x46},_0x2bcacc={_0x598d39:0x113,_0x395b59:0x1e8};function _0x494d1f(_0x5c6d9a,_0x1f6a90,_0x4ce69a,_0xcb365f){return _0x324926(_0x1f6a90-0x3a0,_0x5c6d9a,_0x4ce69a-0x32,_0xcb365f-0x162);}const _0x312f0f=await fetch(_0x5292b5,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x494d1f(0x1dd,0x2ef,0x1f5,0x3ef)},'signal':_0x1bcb40});if(!_0x312f0f['ok']){await _0x312f0f[_0x494d1f(_0x2e1268._0x414779,0x3a8,0x314,_0x2e1268._0x5f48c3)]?.[_0x494d1f(0x54b,0x45e,_0x2e1268._0x3ba37b,_0x2e1268._0x48eb5f)]()[_0x494d1f(_0x2e1268._0x317094,_0x2e1268._0x2ef354,0x21f,_0x2e1268._0x2cd286)](()=>void 0x0);throw new ToolExecutionError(_0x494d1f(0x4e8,_0x2e1268._0x1411a7,_0x2e1268._0x544edc,0x51b)+_0x312f0f[_0x494d1f(0x360,_0x2e1268._0x44aaa2,_0x2e1268._0x570edc,0x301)]+'\x20'+_0x312f0f[_0x494d1f(_0x2e1268._0x5605a4,_0x2e1268._0x209b7e,_0x2e1268._0x34239d,0x2e3)],{'statusCode':_0x312f0f['status']});}function _0x279b32(_0x1a840f,_0x287a36,_0x2838da,_0x49e90d){return _0x324926(_0x2838da- -_0x2bcacc._0x598d39,_0x287a36,_0x2838da-0x5,_0x49e90d-_0x2bcacc._0x395b59);}return await _0x312f0f[_0x279b32(-0x278,-0x1a3,-_0x2e1268._0x2f0328,-_0x2e1268._0x2acc25)]();}async function hydrateResults(_0x60ecf9,_0x1ad353,_0x3b5c9f){const _0x1ce703={_0xa08d19:0x46f,_0xe57096:0x38c,_0x352196:0x44a,_0x53c5e6:0x3c3,_0x4a7937:0x56f,_0x202c56:0x4b2,_0x515ceb:0x585,_0x1760fd:0x3ea,_0x2eae00:0x248,_0x170130:0x434,_0x50e37c:0x344,_0x3e3675:0x40d},_0x4ca454={_0x3787cf:0xc5,_0x41da82:0x1cf},_0xda5378={_0x2f0139:0x38e,_0xbf28c3:0x397,_0x4dc576:0x294,_0x2c5ce8:0x520,_0x5f0357:0x3f3,_0x6c47d8:0x453,_0x5b43b5:0x39e,_0x22ce6a:0x4d4,_0x3c5d81:0x433,_0x204503:0x22a,_0x3bc588:0x12e,_0x478a1c:0x112,_0x5a957a:0x329,_0x2c1969:0x414,_0x26b594:0x452,_0x5403ea:0x191,_0x2f106c:0x1d2,_0x342836:0x110,_0x8115ca:0x4e7,_0x2b4b9d:0x5cc,_0x1ab35f:0x509,_0x5ab559:0x3aa,_0x74d6ff:0x18c,_0x363593:0x37c,_0x218428:0x23e,_0x445a32:0x124,_0x2d6f71:0x366,_0x150f68:0x267,_0x23e586:0x147,_0x53c432:0x4f2,_0x53039c:0x3ea,_0x479177:0x46b,_0x1e2b29:0x3f5,_0x4015a9:0x309,_0xc292ee:0x3d6,_0x513b92:0x3f5,_0x26db17:0x356,_0x230bb2:0x2fe,_0x45bbdc:0x40d,_0x217ab1:0x3fe,_0x408fbd:0x415,_0x405f46:0x2af,_0x11078f:0x23e,_0x5ea576:0x2d6,_0x149e71:0x1d5,_0x309289:0x1fe,_0x12e6c4:0x2f0,_0xd809e0:0x1c1,_0x6e1a04:0x37d,_0x5e983d:0x24e,_0x231b47:0x15a,_0x8a37b3:0x1ec,_0x203342:0x208,_0x5361cc:0x1ed},_0x2b79e3={_0x2a2368:0x190},_0x22a85d=await Promise[_0x357c64(_0x1ce703._0xa08d19,0x3f9,_0x1ce703._0xe57096,0x3ac)](_0x60ecf9[_0x357c64(0x479,0x3df,0x59c,0x54a)](0x0,0xa)[_0x357c64(_0x1ce703._0x352196,0x4a4,0x555,_0x1ce703._0x53c5e6)](async _0x139a43=>{const _0x2a4a4f={_0x1a9a70:0x125,_0xcf6e72:0x26};function _0x3433b1(_0x56e2d0,_0x192968,_0x4e37ea,_0x5ce2d5){return _0x357c64(_0x56e2d0- -0x50e,_0x4e37ea,_0x4e37ea-_0x2b79e3._0x2a2368,_0x5ce2d5-0x1f3);}function _0x598f48(_0x46bc99,_0x34e851,_0x58854b,_0x59aeb8){return _0x357c64(_0x46bc99-_0x2a4a4f._0x1a9a70,_0x34e851,_0x58854b-_0x2a4a4f._0xcf6e72,_0x59aeb8-0x176);}try{const _0x49cfc8=await fetch(_0x139a43['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x1ad353,'Accept':'text/html'},'signal':_0x3b5c9f});if(!_0x49cfc8['ok'])return _0x139a43;const _0x1653fb=await _0x49cfc8['text'](),_0x45841e=load(_0x1653fb),_0x55a906=_0x45841e(_0x598f48(_0xda5378._0x2f0139,_0xda5378._0xbf28c3,0x44e,_0xda5378._0x4dc576))[_0x598f48(0x3f5,0x470,0x4b8,_0xda5378._0x2c5ce8)](_0x598f48(_0xda5378._0x5f0357,_0xda5378._0x6c47d8,0x49c,_0xda5378._0x5b43b5))||_0x45841e(_0x598f48(0x3e5,_0xda5378._0x22ce6a,0x2e9,_0xda5378._0x3c5d81))[_0x3433b1(-_0xda5378._0x204503,-_0xda5378._0x3bc588,-_0xda5378._0x478a1c,-_0xda5378._0x5a957a)]()[_0x598f48(0x4ec,0x5f2,_0xda5378._0x2c1969,_0xda5378._0x26b594)]()[_0x3433b1(-_0xda5378._0x5403ea,-_0xda5378._0x2f106c,-_0xda5378._0x342836,-0x13a)](),_0x1cb2e0=_0x45841e(_0x598f48(_0xda5378._0x8115ca,_0xda5378._0x2b4b9d,0x5dc,_0xda5378._0x1ab35f))[_0x598f48(0x3f5,0x4a4,0x39a,_0xda5378._0x5ab559)](_0x3433b1(-0x240,-_0xda5378._0x74d6ff,-0x21d,-0x1c0))||_0x45841e(_0x598f48(0x3b4,_0xda5378._0x363593,0x383,0x2a0))[_0x3433b1(-_0xda5378._0x218428,-0x17b,-_0xda5378._0x445a32,-_0xda5378._0x2d6f71)]('content')||_0x139a43[_0x3433b1(-_0xda5378._0x150f68,-0x33f,-_0xda5378._0x23e586,-0x2ac)],_0x274279=_0x45841e(_0x598f48(0x4fa,_0xda5378._0x53c432,_0xda5378._0x53039c,_0xda5378._0x479177))[_0x598f48(_0xda5378._0x1e2b29,_0xda5378._0x4015a9,_0xda5378._0xc292ee,0x2f3)]('content')||_0x45841e('time[datetime]')[_0x598f48(_0xda5378._0x513b92,_0xda5378._0x26db17,0x513,_0xda5378._0x230bb2)](_0x598f48(_0xda5378._0x45bbdc,0x398,0x455,0x49a))||_0x139a43[_0x598f48(_0xda5378._0x217ab1,_0xda5378._0x408fbd,0x35b,0x49e)],_0x5df06a=_0x45841e(_0x3433b1(-_0xda5378._0x405f46,-0x3bb,-0x2b7,-0x1a2))[_0x3433b1(-_0xda5378._0x11078f,-_0xda5378._0x5ea576,-_0xda5378._0x149e71,-_0xda5378._0x309289)](_0x3433b1(-0x29c,-_0xda5378._0x12e6c4,-_0xda5378._0xd809e0,-_0xda5378._0x6e1a04));return{..._0x139a43,'title':_0x55a906||_0x139a43[_0x3433b1(-_0xda5378._0x5e983d,-0x25b,-0x1a2,-0x357)],'snippet':_0x1cb2e0,'url':_0x5df06a?normalizeUrl(new URL(_0x5df06a,_0x139a43[_0x3433b1(-_0xda5378._0x231b47,-0x25e,-0x181,-_0xda5378._0x8a37b3)])[_0x3433b1(-_0xda5378._0x203342,-0x22e,-_0xda5378._0x5361cc,-0x2de)]()):_0x139a43['url'],'publishedAt':_0x274279};}catch{return _0x139a43;}}));function _0x125495(_0x40b6e8,_0x37b131,_0x49d39c,_0x4336f6){return _0x324926(_0x4336f6-0x26a,_0x40b6e8,_0x49d39c-0x5d,_0x4336f6-0x42);}const _0x289228=new Map(_0x60ecf9[_0x357c64(0x479,_0x1ce703._0x4a7937,_0x1ce703._0x202c56,_0x1ce703._0x515ceb)](0x0,0xa)[_0x125495(_0x1ce703._0x1760fd,0x24a,_0x1ce703._0x2eae00,0x330)]((_0x5f2e99,_0x2d60e6)=>[_0x5f2e99[_0x125495(0x3b8,0x272,0x2e0,0x29a)],_0x22a85d[_0x2d60e6]]));function _0x357c64(_0x46901e,_0x2fb6e8,_0x188f64,_0x2b9412){return _0x22ef16(_0x2fb6e8,_0x46901e-0x186,_0x188f64-_0x4ca454._0x3787cf,_0x2b9412-_0x4ca454._0x41da82);}return _0x60ecf9[_0x125495(_0x1ce703._0x170130,_0x1ce703._0x50e37c,_0x1ce703._0x3e3675,0x330)](_0x238dcf=>_0x289228[_0x357c64(0x42b,0x53d,0x37d,0x439)](_0x238dcf['url'])??_0x238dcf);}function formatResults(_0x498a8b){const _0x5907c1={_0x4c15a9:0x53d,_0x2faad4:0x5b9,_0x2d5d28:0x570,_0x229b7a:0x396,_0x15c756:0x477,_0x44ae3b:0x311,_0x5695fb:0x489,_0x4aa970:0x485,_0x4f26c6:0x3e4,_0x3c8dfc:0x396,_0x473c26:0x411,_0x55103b:0x4d3,_0x557bc0:0x427,_0x206e33:0x3f7,_0x5c281f:0x487,_0x4cc0bc:0x4bb,_0x13c51b:0x68,_0x4171df:0x31,_0x33df2b:0x5d},_0x1ec3da={_0x252590:0x198};if(_0x498a8b['length']===0x0)return'No\x20results\x20found.';return _0x498a8b['map'](_0x1e6314=>{function _0x584224(_0x4563fa,_0x567483,_0x135685,_0x4b3f7a){return _0x7ca6(_0x4563fa- -_0x1ec3da._0x252590,_0x4b3f7a);}function _0x276dcc(_0x5bc4f1,_0xe8f59d,_0x57f3a5,_0x162d69){return _0x7ca6(_0x5bc4f1-0x2ad,_0xe8f59d);}const _0xb33afd=[_0x1e6314[_0x276dcc(_0x5907c1._0x4c15a9,_0x5907c1._0x2faad4,_0x5907c1._0x2d5d28,0x59d)][_0x276dcc(0x41e,_0x5907c1._0x229b7a,_0x5907c1._0x15c756,_0x5907c1._0x44ae3b)]+'.\x20'+_0x1e6314[_0x276dcc(0x3cb,0x4c3,_0x5907c1._0x5695fb,0x448)],_0x1e6314['url']];if(_0x1e6314['snippet'])_0xb33afd['push'](_0x1e6314[_0x276dcc(0x3b2,0x28b,_0x5907c1._0x4aa970,0x37b)]);if(_0x1e6314[_0x276dcc(_0x5907c1._0x4f26c6,_0x5907c1._0x3c8dfc,_0x5907c1._0x473c26,_0x5907c1._0x55103b)])_0xb33afd['push'](_0x276dcc(0x3c2,0x2da,_0x5907c1._0x557bc0,_0x5907c1._0x206e33)+_0x1e6314[_0x276dcc(0x3e4,_0x5907c1._0x5c281f,0x3fd,_0x5907c1._0x4cc0bc)]);return _0xb33afd[_0x584224(-_0x5907c1._0x13c51b,-_0x5907c1._0x4171df,-0x191,_0x5907c1._0x33df2b)]('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x1c1d4e,_0xa357b2,_0x25315a){const _0x2dff09={_0x2450b4:0xbc,_0x4f9ba0:0xc6,_0x51b5d3:0x282,_0x2de4ec:0x1c9,_0x3f4062:0x2cb,_0x2b9d71:0x2f9,_0x5f4d56:0x257,_0x1a8c66:0x29e,_0x5421ba:0x133,_0x479bf2:0x254,_0x3a6e82:0xf7,_0x397198:0x2cf,_0x2c4de1:0x189,_0x3d6a03:0x26c,_0x21ee31:0xcb,_0x4cc2ee:0x122,_0x196698:0x22c,_0x4b4255:0x20e,_0xb825ec:0x223,_0x4a33df:0x390,_0x3a4b0c:0x24d,_0x3e7546:0x3bc,_0x330fd2:0x3a5,_0x1ae14b:0x2a3,_0x3bfbd6:0x229,_0x803823:0x223,_0x523f5b:0x2a5,_0x1f1324:0x2b0,_0x16fd9d:0x1b9,_0x45577b:0x27a,_0x3241f5:0x2a7,_0x1964e4:0x12d,_0x5f0b55:0xc8,_0x2f9457:0xf3,_0x2630af:0xd4,_0x1e209a:0xe,_0x17e28c:0xb9,_0x377d6a:0x162,_0x2ae688:0x1b5,_0x32ecc5:0x2e2,_0x4c1425:0xbc,_0x4c7e93:0x2a8,_0x13b133:0x2c6,_0x1390ce:0xaa,_0x59ffe6:0x7f,_0x4eec12:0x190,_0xb828a4:0xd2,_0x5ea737:0x3b7,_0x43fb4e:0x153,_0x1b1d77:0x1c2,_0x586426:0x1e3,_0x18d667:0x2d0,_0x182af9:0x2a9,_0x365392:0x263,_0x41a9cc:0x210,_0x40c469:0x262,_0x5d2514:0x1ab,_0x5e1c58:0x384,_0x315b73:0x90,_0x151c7a:0x19d,_0xf9caef:0x182,_0x248a26:0x1ea,_0x22cd8d:0x266,_0x486240:0x1cc,_0x5e92d0:0x13d,_0x30177b:0x1c0,_0x21f913:0x2e3,_0x4933e4:0x256,_0x501219:0x150,_0x9b46c3:0x1e6,_0x156b82:0x1ed,_0x495372:0x132,_0x45d316:0x1c4,_0x199fc0:0x9e,_0x396565:0x1fd,_0xa26838:0x31,_0x4d251a:0x1f1,_0x2a1fca:0x1ca,_0x344b26:0x17c,_0x5c8ba5:0x1d4,_0x5093d8:0x1e6,_0x575626:0x190,_0x21f472:0x9f,_0x2580b3:0x114,_0xd40838:0xe8,_0x40f810:0x1dd,_0x37a10f:0xa8,_0x459577:0x20d,_0x57412d:0x1cb},_0x13e448={_0xfa4146:0x390};function _0x139c00(_0x8c80e0,_0x469320,_0x27542e,_0x3379ee){return _0x22ef16(_0x8c80e0,_0x469320- -_0x13e448._0xfa4146,_0x27542e-0x120,_0x3379ee-0x197);}const _0x21da77=Math[_0x139c00(-_0x2dff09._0x2450b4,-0x195,-0x19b,-0x207)](0x1,Math['min'](0x32,_0xa357b2['count']));if(_0xa357b2['offset']+_0x21da77>0x64)throw new ToolExecutionError('Google\x20CSE\x20supports\x20at\x20most\x20the\x20first\x20100\x20results',{'offset':_0xa357b2['offset'],'count':_0x21da77,'maxResults':0x64});const _0x35abf5=cseDateRestrict(_0xa357b2[_0x139c00(-_0x2dff09._0x4f9ba0,-0x152,-0x110,-_0x2dff09._0x51b5d3)]);function _0x2cf3d0(_0x1a8123,_0x497313,_0x10116b,_0x340202){return _0x324926(_0x340202- -0x1d7,_0x497313,_0x10116b-0x16a,_0x340202-0x11e);}const _0x521906=addSiteFilters(_0xa357b2['query'],_0xa357b2[_0x139c00(-0x150,-_0x2dff09._0x2de4ec,-0xad,-_0x2dff09._0x3f4062)]);let _0x4e338b=0x0,_0x978b2d=_0xa357b2[_0x139c00(-_0x2dff09._0x2b9d71,-_0x2dff09._0x5f4d56,-0x213,-0x21b)]+0x1;const _0xcf5640=[];while(_0x4e338b<_0x21da77){const _0x421b71=Math[_0x2cf3d0(-_0x2dff09._0x1a8c66,-_0x2dff09._0x5421ba,-0x294,-_0x2dff09._0x479bf2)](0xa,_0x21da77-_0x4e338b),_0x150172=new URL(_0x139c00(-0x66,-_0x2dff09._0x3a6e82,-0x1cd,-0x55));_0x150172[_0x139c00(-_0x2dff09._0x397198,-0x25e,-0x334,-0x2c8)][_0x139c00(-0x17a,-0x281,-_0x2dff09._0x2c4de1,-_0x2dff09._0x3d6a03)](_0x139c00(-0x1f9,-_0x2dff09._0x21ee31,-0x52,-_0x2dff09._0x4cc2ee),_0x1c1d4e[_0x139c00(-_0x2dff09._0x196698,-_0x2dff09._0x4b4255,-0x2d1,-0x14c)]),_0x150172['searchParams'][_0x139c00(-_0x2dff09._0xb825ec,-0x281,-_0x2dff09._0x4a33df,-0x392)]('cx',_0x1c1d4e['googleCseCx']),_0x150172[_0x2cf3d0(-0x395,-_0x2dff09._0x3a4b0c,-_0x2dff09._0x3e7546,-0x2a3)]['set']('q',_0x521906),_0x150172[_0x2cf3d0(-_0x2dff09._0x330fd2,-0x2ff,-0x3c5,-_0x2dff09._0x1ae14b)][_0x2cf3d0(-0x2fa,-_0x2dff09._0x3bfbd6,-_0x2dff09._0x803823,-0x2c6)](_0x139c00(-0x35f,-_0x2dff09._0x523f5b,-_0x2dff09._0x1f1324,-0x387),String(_0x421b71)),_0x150172[_0x139c00(-_0x2dff09._0x16fd9d,-0x25e,-0x21b,-0x34d)]['set'](_0x2cf3d0(-_0x2dff09._0x45577b,-0x376,-0x258,-_0x2dff09._0x3241f5),String(_0x978b2d)),_0x150172['searchParams']['set'](_0x2cf3d0(-_0x2dff09._0x1964e4,-_0x2dff09._0x5f0b55,-_0x2dff09._0x2f9457,-_0x2dff09._0x2630af),_0xa357b2[_0x2cf3d0(_0x2dff09._0x1e209a,-_0x2dff09._0x17e28c,-_0x2dff09._0x377d6a,-0xd4)]?_0x2cf3d0(-0x330,-0x345,-0x35a,-0x2b0):_0x139c00(-0x2b2,-_0x2dff09._0x2ae688,-_0x2dff09._0x32ecc5,-0xcc));_0xa357b2[_0x2cf3d0(0x2d,-0x4f,-_0x2dff09._0x4c1425,-0xbe)]&&(_0x150172[_0x139c00(-0x2c3,-0x25e,-0x21d,-0x137)][_0x2cf3d0(-0x33c,-0x29a,-_0x2dff09._0x4c7e93,-_0x2dff09._0x13b133)]('hl',_0xa357b2['lang']),_0x150172['searchParams'][_0x2cf3d0(-0x2c6,-0x329,-0x2ed,-0x2c6)]('lr',_0x139c00(-0x219,-0x2cc,-0x277,-0x1ae)+_0xa357b2[_0x139c00(-0x12d,-0x79,_0x2dff09._0x1390ce,-_0x2dff09._0x59ffe6)]));if(_0xa357b2['region'])_0x150172[_0x139c00(-0x34d,-0x25e,-_0x2dff09._0x4eec12,-0x35c)]['set']('gl',_0xa357b2['region']['toUpperCase']());if(_0xa357b2[_0x2cf3d0(0x34,-0x101,0x55,-0xcc)]===_0x2cf3d0(-0xf6,-_0x2dff09._0xb828a4,-0x108,-0xe3))_0x150172['searchParams']['set'](_0x2cf3d0(-_0x2dff09._0x45577b,-0x176,-_0x2dff09._0x5ea737,-0x294),_0x139c00(-0x12b,-0x1a1,-_0x2dff09._0x43fb4e,-0x1ba));if(_0x35abf5)_0x150172[_0x139c00(-_0x2dff09._0x1b1d77,-0x25e,-_0x2dff09._0x586426,-0x130)][_0x2cf3d0(-0x1d5,-0x21e,-0x1a2,-0x2c6)](_0x139c00(-_0x2dff09._0x18d667,-0x1b3,-_0x2dff09._0x182af9,-_0x2dff09._0x365392),_0x35abf5);const _0x5b9978=await fetchJson(_0x150172[_0x139c00(-0x20a,-_0x2dff09._0x41a9cc,-0x303,-_0x2dff09._0x40c469)](),_0x25315a),_0x5d108d=_0x5b9978[_0x139c00(-0x2f8,-0x25b,-_0x2dff09._0x5d2514,-_0x2dff09._0x5e1c58)]??[];if(_0x5d108d['length']===0x0)break;const _0x2eafcb=_0x4e338b;for(let _0x39f458=0x0;_0x39f458<_0x5d108d['length'];_0x39f458++){const _0xa3a95b=_0x5d108d[_0x39f458];if(!_0xa3a95b)continue;const _0x2973f7=_0xa3a95b[_0x139c00(-_0x2dff09._0x315b73,-_0x2dff09._0x151c7a,-_0x2dff09._0xf9caef,-0xb1)]||_0xa3a95b[_0x2cf3d0(-0x27e,-_0x2dff09._0x248a26,-_0x2dff09._0x22cd8d,-0x1e6)]?.[_0x139c00(-_0x2dff09._0x486240,-_0x2dff09._0x5e92d0,-_0x2dff09._0x30177b,-0xa5)]||'',_0x3fa04b=_0xa3a95b[_0x139c00(-_0x2dff09._0x21f913,-_0x2dff09._0x4933e4,-_0x2dff09._0x501219,-0x332)]||_0xa3a95b[_0x2cf3d0(-0xd0,-0x1c5,-0x2c2,-_0x2dff09._0x9b46c3)]?.[_0x139c00(-_0x2dff09._0x156b82,-_0x2dff09._0x4933e4,-0x17d,-_0x2dff09._0x495372)]||_0x139c00(-0x122,-_0x2dff09._0x45d316,-_0x2dff09._0x199fc0,-_0x2dff09._0x396565),_0x59c4b3=_0xa3a95b[_0x139c00(-0x2dc,-0x26f,-0x35d,-0x352)]||_0xa3a95b[_0x2cf3d0(-_0x2dff09._0x2ae688,-_0x2dff09._0xa26838,-_0x2dff09._0x4d251a,-0x149)]?.['replace'](/<[^>]+>/g,''),_0x2429e3=_0xa3a95b[_0x139c00(-0x204,-0x28d,-0x33a,-0x396)]?.[_0x139c00(-_0x2dff09._0x2a1fca,-_0x2dff09._0x344b26,-_0x2dff09._0x5c8ba5,-_0x2dff09._0x5093d8)]?.[0x0]??{};let _0x159704;try{_0x159704=new URL(_0x2973f7)[_0x139c00(-0x3a8,-0x2b1,-0x1b2,-0x3c1)];}catch{_0x159704=null;}_0xcf5640['push']({'title':_0x3fa04b,'url':normalizeUrl(_0x2973f7),'snippet':_0x59c4b3??null,'displayUrl':_0x159704,'favicon':null,'publishedAt':_0x2429e3[_0x139c00(-0x86,-_0x2dff09._0x575626,-0x88,-_0x2dff09._0x21f472)]||_0x2429e3[_0x139c00(-_0x2dff09._0x2580b3,-0x236,-0x10f,-0x317)]||null,'source':{'engine':_0x139c00(-_0x2dff09._0xd40838,-_0x2dff09._0x40f810,-0x27b,-0x289),'rank':_0x2eafcb+_0x39f458+0x1}});}_0x4e338b+=_0x5d108d[_0x2cf3d0(-_0x2dff09._0x37a10f,-0x21b,-_0x2dff09._0x459577,-_0x2dff09._0x57412d)],_0x978b2d+=_0x5d108d['length'];if(_0x5d108d['length']<_0x421b71)break;}return _0xcf5640['slice'](0x0,_0x21da77);}function createWebSearchTool(_0x122625){const _0x4cb5f3={_0x569df5:0x12c,_0x26b3c8:0x1f2,_0x28e835:0x15c,_0x242782:0x283,_0x2f616f:0x2cd,_0x6025ec:0x3bf,_0x2de72e:0x1bc,_0x35d59b:0x325,_0x3cef21:0x35d,_0x239aeb:0x34c,_0x619eb3:0x161,_0x59ef85:0x1cc,_0xa63957:0x2d2,_0x433a67:0x43e,_0x20ca2f:0xf0,_0x2e8448:0x178,_0x51e7f5:0xe7,_0x25d344:0x183,_0x3f2757:0x2f,_0x2a4d5e:0x55,_0x1b672c:0x4c,_0x52474b:0x3b7,_0x5e2930:0x373,_0x33980a:0x371,_0x144cdf:0x42,_0x2e08d9:0x540,_0x5f9ded:0x3f7,_0x149254:0x4b3,_0xbd7db7:0x267,_0x1136bb:0xc1,_0x256931:0x143,_0x4e5b50:0x35e,_0x5b4ee8:0x3c,_0x25500a:0x95},_0x408aa8={_0x1cdb19:0x480,_0x3847a0:0x6b,_0x9936bc:0x113,_0xdac844:0x1f8,_0x16fad7:0x2e8,_0x428553:0x2ca,_0x151d92:0x46f,_0x1b81fc:0x462,_0x6880a1:0x2a,_0x3fc1dc:0x39,_0x2ce4bc:0x6c,_0x1df5bb:0x3e2,_0x23e350:0x339,_0x328d86:0x248,_0x3882e4:0x2e7,_0xbd4eb:0x3fb,_0x49b925:0x375,_0x504e59:0x448,_0x4b192f:0x4d2,_0x113eb1:0x3ab,_0x175ba4:0x3ce,_0x49d0c2:0x2f,_0x4043b0:0x125,_0x584835:0x1a5,_0x29be49:0x577,_0x4827e2:0x4b7,_0x594ab8:0x391,_0x7d6f9e:0x4b4,_0x30af6b:0x429,_0x10cd6b:0xc,_0x1f5ea0:0x7f,_0x472312:0x13,_0x5b9e41:0x6a,_0x305908:0x97,_0x281117:0x386,_0x4ad555:0x3af,_0x529e5d:0x487,_0x58527d:0x57e,_0x1a9a6e:0x486,_0x468787:0x3e6,_0x182c48:0x48d,_0x891539:0x7f,_0x53d2c5:0x119,_0x3907c3:0x148,_0x564c83:0x472,_0x920e67:0x2a,_0x4abf58:0x3c1,_0x1f0490:0x366,_0x23c5c2:0x2df,_0x2d90d9:0x4fd,_0x10e5f5:0x14c,_0x309437:0x3f2,_0x5f0684:0x81,_0x20498b:0x127,_0x42e1cc:0x4ae,_0x6fa76c:0x303,_0x40bc9f:0x432,_0x107a6d:0x3be,_0x4061a0:0x3d6,_0x5e7682:0x2e7,_0xb8c7ee:0x246,_0x5e3518:0x40b,_0x135171:0x40d,_0x3ee8d6:0x517},_0x35e4be={_0x274bbb:0x1b8,_0x3375b4:0x4c},_0x3383c9={_0x505a9c:0x374,_0x1b0c0e:0x7d};function _0x30dcc5(_0xa7d48f,_0x518b8d,_0x21bde7,_0x438fc9){return _0x22ef16(_0xa7d48f,_0x438fc9- -_0x3383c9._0x505a9c,_0x21bde7-0x38,_0x438fc9-_0x3383c9._0x1b0c0e);}if(!_0x122625[_0x30dcc5(-0x1cf,-_0x4cb5f3._0x569df5,-0x190,-_0x4cb5f3._0x26b3c8)])throw new Error(_0x30dcc5(-0x2b5,-_0x4cb5f3._0x28e835,-0x180,-_0x4cb5f3._0x242782));if(!_0x122625[_0x118c82(_0x4cb5f3._0x2f616f,_0x4cb5f3._0x6025ec,_0x4cb5f3._0x2de72e,0x39d)])throw new Error(_0x118c82(_0x4cb5f3._0x35d59b,_0x4cb5f3._0x3cef21,_0x4cb5f3._0x239aeb,0x2ca));const _0x3ba591=_0x122625[_0x30dcc5(-0x263,-0x1d6,-0xf6,-0x1fd)]??'WebSearch';function _0x118c82(_0x2226b4,_0x2559cd,_0x2e52e5,_0x30cc40){return _0x22ef16(_0x2559cd,_0x2226b4-_0x35e4be._0x274bbb,_0x2e52e5-0x155,_0x30cc40-_0x35e4be._0x3375b4);}return defineTool({'name':_0x3ba591,'description':_0x30dcc5(-_0x4cb5f3._0x619eb3,-_0x4cb5f3._0x59ef85,-_0x4cb5f3._0xa63957,-0x1d2),'inputSchema':{'type':_0x118c82(_0x4cb5f3._0x433a67,0x331,0x315,0x3ca),'properties':{'description':{'type':_0x30dcc5(0x0,-_0x4cb5f3._0x20ca2f,-_0x4cb5f3._0x2e8448,-_0x4cb5f3._0x51e7f5)},'query':{'type':_0x30dcc5(-_0x4cb5f3._0x25d344,-_0x4cb5f3._0x3f2757,0x3e,-_0x4cb5f3._0x51e7f5)},'count':{'type':_0x30dcc5(-0x1c0,-_0x4cb5f3._0x2a4d5e,-_0x4cb5f3._0x1b672c,-0x175)},'offset':{'type':'number'},'domains':{'type':'array','items':{'type':'string'}},'recencyDays':{'type':_0x118c82(_0x4cb5f3._0x52474b,_0x4cb5f3._0x5e2930,0x4cd,_0x4cb5f3._0x33980a)},'lang':{'type':_0x30dcc5(-_0x4cb5f3._0x144cdf,-0x199,-0x42,-0xe7)},'region':{'type':_0x118c82(0x445,_0x4cb5f3._0x2e08d9,_0x4cb5f3._0x5f9ded,_0x4cb5f3._0x149254)},'safe':{'type':_0x30dcc5(-_0x4cb5f3._0xbd7db7,-0x41,-_0x4cb5f3._0x1136bb,-_0x4cb5f3._0x256931)},'type':{'type':_0x118c82(0x445,_0x4cb5f3._0x4e5b50,0x3c7,0x49e)},'hydrateMeta':{'type':'boolean'}},'required':[_0x30dcc5(_0x4cb5f3._0x5b4ee8,-0x9a,-_0x4cb5f3._0x25500a,-0x8c)]},async *'execute'(_0x165a18,_0x1b43bc){const _0x17ad05={_0x26d6ed:0xf9},_0x16b9a2={_0x3217ad:0x56d,_0x32e200:0xd1,_0x4d25f8:0x14a,_0x393dba:0x21c,_0x18e4e1:0x1e7},_0x5079e2={_0xc8d285:0x54b,_0x481a43:0x50},_0x4da911={_0x5419c0:0x1ab,_0xfd331e:0x127,_0xc3de1f:0x17f},_0x4eacac={_0x16ae85:0xed},_0xfadaf=_0x165a18[_0x2f4a7f(0x3ec,0x3f8,0x496,_0x408aa8._0x1cdb19)][_0x20ddca(-0x92,_0x408aa8._0x3847a0,-0xbc,-_0x408aa8._0x9936bc)]();if(!_0xfadaf)throw new ToolExecutionError(_0x20ddca(-0x191,-0x1aa,-0xed,-_0x408aa8._0xdac844));const _0x3e78a1={'query':_0xfadaf,'count':Math['max'](0x1,Math[_0x2f4a7f(_0x408aa8._0x16fad7,_0x408aa8._0x428553,0x32f,0x2cb)](0x32,Math[_0x2f4a7f(_0x408aa8._0x151d92,_0x408aa8._0x1b81fc,0x3e2,0x3c4)](_0x165a18[_0x20ddca(-_0x408aa8._0x6880a1,_0x408aa8._0x3fc1dc,_0x408aa8._0x2ce4bc,-0xd1)]??0xa))),'offset':Math[_0x2f4a7f(0x2d3,0x410,0x3a9,0x2e9)](0x0,Math[_0x2f4a7f(0x4bc,0x4d4,_0x408aa8._0x1df5bb,_0x408aa8._0x23e350)](_0x165a18[_0x2f4a7f(0x35a,_0x408aa8._0x328d86,_0x408aa8._0x3882e4,0x288)]??0x0)),'domains':_0x165a18[_0x2f4a7f(_0x408aa8._0xbd4eb,0x2f3,_0x408aa8._0x49b925,_0x408aa8._0x504e59)]??[],'recencyDays':Math['max'](0x0,Math[_0x2f4a7f(_0x408aa8._0x4b192f,_0x408aa8._0x113eb1,0x3e2,_0x408aa8._0x175ba4)](_0x165a18['recencyDays']??0x0)),'lang':_0x165a18['lang']??'en','region':_0x165a18[_0x20ddca(-0x81,-_0x408aa8._0x49d0c2,-_0x408aa8._0x4043b0,-_0x408aa8._0x584835)]??'','safe':_0x165a18['safe']??!![],'type':normalizeType(_0x165a18[_0x2f4a7f(0x5b3,_0x408aa8._0x29be49,_0x408aa8._0x4827e2,_0x408aa8._0x594ab8)]),'hydrateMeta':_0x165a18['hydrateMeta']??![]};let _0x5405dc=await searchGoogleCse(_0x122625,_0x3e78a1,_0x1b43bc[_0x2f4a7f(_0x408aa8._0x7d6f9e,_0x408aa8._0x30af6b,0x3af,0x2b0)]);_0x3e78a1[_0x20ddca(0x8a,0xd9,0x168,_0x408aa8._0x10cd6b)]&&_0x5405dc[_0x20ddca(-_0x408aa8._0x1f5ea0,-_0x408aa8._0x472312,-0x17b,0x26)]>0x0&&(_0x5405dc=await hydrateResults(_0x5405dc,_0x3e78a1[_0x20ddca(0x8e,_0x408aa8._0x5b9e41,-_0x408aa8._0x305908,-_0x408aa8._0x10cd6b)],_0x1b43bc[_0x2f4a7f(_0x408aa8._0x281117,0x495,_0x408aa8._0x4ad555,_0x408aa8._0x529e5d)]));function _0x20ddca(_0x55e784,_0x45c812,_0xffd57e,_0x1408b9){return _0x30dcc5(_0x1408b9,_0x45c812-0x7c,_0xffd57e-_0x4eacac._0x16ae85,_0x55e784-0xeb);}const _0x228371=new Set();_0x5405dc=_0x5405dc[_0x2f4a7f(_0x408aa8._0x58527d,0x4f8,_0x408aa8._0x1a9a6e,_0x408aa8._0x468787)](_0x378fd5=>{const _0x12e7fe=_0x378fd5['url'][_0x1417a7(0x558,0x5b1,0x6ac,_0x16b9a2._0x3217ad)]();function _0x1d2344(_0x14f4dd,_0x5a51f0,_0x54e7ca,_0x3e552f){return _0x20ddca(_0x5a51f0-_0x4da911._0x5419c0,_0x5a51f0-_0x4da911._0xfd331e,_0x54e7ca-_0x4da911._0xc3de1f,_0x3e552f);}if(!_0x12e7fe||_0x228371[_0x1d2344(-0x24,0x92,_0x16b9a2._0x32e200,_0x16b9a2._0x4d25f8)](_0x12e7fe))return![];_0x228371[_0x1d2344(0x266,_0x16b9a2._0x393dba,_0x16b9a2._0x18e4e1,0x32e)](_0x12e7fe);function _0x1417a7(_0x5743bc,_0x4a5338,_0x4fa098,_0x90a0f1){return _0x20ddca(_0x4a5338-_0x5079e2._0xc8d285,_0x4a5338-_0x5079e2._0x481a43,_0x4fa098-0x1a3,_0x4fa098);}return!![];}),_0x5405dc=_0x5405dc[_0x2f4a7f(0x59e,0x4f1,0x472,_0x408aa8._0x182c48)]((_0x1f5657,_0x2e8577)=>({..._0x1f5657,'source':{..._0x1f5657['source'],'rank':_0x2e8577+0x1}}));const _0x5abc2b={};function _0x2f4a7f(_0x3e4f72,_0x14b29c,_0x4b6f54,_0x8758e2){return _0x118c82(_0x4b6f54- -0xa,_0x3e4f72,_0x4b6f54-_0x17ad05._0x26d6ed,_0x8758e2-0x14c);}if(_0x3e78a1[_0x20ddca(-0xc2,-0x43,-0x11f,-0x1ad)][_0x20ddca(-_0x408aa8._0x891539,-0x1ae,-_0x408aa8._0x53d2c5,-_0x408aa8._0x3907c3)]>0x0)_0x5abc2b[_0x2f4a7f(0x2ab,_0x408aa8._0x564c83,0x375,0x2fa)]=_0x3e78a1['domains'];if(_0x3e78a1[_0x20ddca(-0x4b,_0x408aa8._0x920e67,-0x76,-0x74)]>0x0)_0x5abc2b[_0x2f4a7f(_0x408aa8._0x4abf58,0x324,0x3ec,_0x408aa8._0x1f0490)]=_0x3e78a1[_0x2f4a7f(0x39f,_0x408aa8._0x23c5c2,0x3ec,_0x408aa8._0x2d90d9)];if(_0x3e78a1[_0x20ddca(0x8e,0x115,0x132,_0x408aa8._0x10e5f5)]!=='en')_0x5abc2b['lang']=_0x3e78a1['lang'];if(_0x3e78a1[_0x2f4a7f(0x410,_0x408aa8._0x309437,0x3b6,0x453)])_0x5abc2b[_0x20ddca(-_0x408aa8._0x5f0684,-0x21,-_0x408aa8._0x20498b,-0x40)]=_0x3e78a1[_0x2f4a7f(0x3c0,_0x408aa8._0x42e1cc,0x3b6,_0x408aa8._0x6fa76c)];return yield createToolOutput(formatResults(_0x5405dc),{'engine':'google-cse','count':_0x5405dc['length'],'items':_0x5405dc,'query':_0x3e78a1[_0x2f4a7f(0x481,0x43a,0x496,0x3c4)],...Object[_0x2f4a7f(0x2d5,_0x408aa8._0x40bc9f,0x352,_0x408aa8._0x107a6d)](_0x5abc2b)['length']>0x0?{'appliedFilters':_0x5abc2b}:{},'offset':_0x3e78a1[_0x2f4a7f(0x373,_0x408aa8._0x4061a0,_0x408aa8._0x5e7682,_0x408aa8._0xb8c7ee)],'totalRequested':_0x3e78a1[_0x2f4a7f(0x46f,_0x408aa8._0x5e3518,_0x408aa8._0x135171,0x520)],'hydrated':_0x3e78a1[_0x2f4a7f(0x485,_0x408aa8._0x3ee8d6,0x4c1,0x3ba)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};