@nuvin/agent-core 0.0.0-rc.2 → 0.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -1
- package/dist/chunk-LXQDGX4K.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-VFTQW5WK.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +7 -9
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +91 -1
- package/dist/tools/index.js +1 -1
- package/package.json +8 -4
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1ad655,_0x2f5a78){const _0xc3cde8={_0xbacc46:0x1a3,_0x4649f3:0x95,_0x1fa49e:0x1b0,_0x1ea531:0x162,_0x3c819f:0xd7,_0x5711f8:0x1ce,_0x25c649:0x1e9,_0x5ab0c6:0x215,_0x5e8ea5:0x129,_0x3002c4:0x194,_0x247184:0x16d,_0x1889bf:0xf8,_0xacc32f:0x9a,_0x57e7b7:0xe1,_0x52c3a2:0x8c,_0x11f852:0x146,_0x14aed9:0x136,_0x3a5de2:0x11d,_0x1f1764:0x158,_0x343950:0x119,_0x14f661:0x1ac,_0x1ca499:0x1bb,_0x5af842:0x186,_0x583062:0x136,_0x1dc58a:0x243},_0x2b2f87={_0x451b51:0x329},_0xc36003=_0x1ad655();function _0x394927(_0x4f21a1,_0x23ec7,_0x50dab8,_0x13aaf9){return _0x3e7e(_0x4f21a1- -_0x2b2f87._0x451b51,_0x23ec7);}function _0x27a1e8(_0x5f68a1,_0x184126,_0x405cf9,_0x37447b){return _0x3e7e(_0x405cf9- -0xbd,_0x37447b);}while(!![]){try{const _0x4926d8=parseInt(_0x27a1e8(_0xc3cde8._0xbacc46,_0xc3cde8._0x4649f3,0x130,0xff))/0x1*(-parseInt(_0x27a1e8(0x13c,_0xc3cde8._0x1fa49e,_0xc3cde8._0x1ea531,_0xc3cde8._0x3c819f))/0x2)+parseInt(_0x27a1e8(0x1d6,0x22a,_0xc3cde8._0x5711f8,_0xc3cde8._0x25c649))/0x3+-parseInt(_0x27a1e8(0x1a8,_0xc3cde8._0x5ab0c6,0x1af,0x114))/0x4*(parseInt(_0x27a1e8(_0xc3cde8._0x5e8ea5,_0xc3cde8._0x3002c4,_0xc3cde8._0x247184,0xce))/0x5)+parseInt(_0x394927(-_0xc3cde8._0x1889bf,-_0xc3cde8._0xacc32f,-0x143,-_0xc3cde8._0x57e7b7))/0x6*(parseInt(_0x394927(-0xfb,-0x5b,-0x113,-_0xc3cde8._0x52c3a2))/0x7)+parseInt(_0x394927(-_0xc3cde8._0x11f852,-0x184,-_0xc3cde8._0x14aed9,-_0xc3cde8._0x3a5de2))/0x8*(-parseInt(_0x394927(-_0xc3cde8._0x1f1764,-_0xc3cde8._0x343950,-0x194,-0x122))/0x9)+-parseInt(_0x394927(-_0xc3cde8._0x14f661,-0x118,-_0xc3cde8._0x1ca499,-_0xc3cde8._0x343950))/0xa+-parseInt(_0x27a1e8(0xb7,_0xc3cde8._0x5af842,_0xc3cde8._0x583062,0x109))/0xb*(-parseInt(_0x27a1e8(_0xc3cde8._0x1dc58a,0x241,0x19c,0x1b1))/0xc);if(_0x4926d8===_0x2f5a78)break;else _0xc36003['push'](_0xc36003['shift']());}catch(_0x5f3361){_0xc36003['push'](_0xc36003['shift']());}}}(_0x2dbf,0x3792b));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 _0x201fde from'os';import*as _0x239355 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x256f33(0x3bb,0x388,0x35f,0x32a),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x2b25f0){return _0x2b25f0 instanceof Error;}function shellExists(_0x56f770){const _0x438a47={_0x71aa25:0x13e,_0x42fc9c:0xf2,_0x56ba1a:0x12e,_0x209ab8:0x33,_0x142029:0x42},_0xddd810={_0x305263:0x178},_0x856056={_0x3983a8:0x2e2};function _0xc3a736(_0x551685,_0x1c13f8,_0x208df9,_0x1e8b28){return _0x256f33(_0x551685,_0x1c13f8-0x72,_0x208df9- -_0x856056._0x3983a8,_0x1e8b28-0x7f);}function _0x279be3(_0x2cd222,_0xd7831f,_0x15e9f6,_0x22f865){return _0x256f33(_0x22f865,_0xd7831f-_0xddd810._0x305263,_0xd7831f- -0x52f,_0x22f865-0xe6);}try{const _0x4e2bd3=statSync(_0x56f770);return _0x4e2bd3[_0xc3a736(_0x438a47._0x71aa25,0x48,_0x438a47._0x42fc9c,_0x438a47._0x56ba1a)]()&&(_0x4e2bd3[_0xc3a736(-_0x438a47._0x209ab8,_0x438a47._0x142029,0x41,-0x3a)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x5979d8){const _0x35a7e7={_0x496e62:0x2d,_0x2dd25f:0x59,_0x4f105a:0x12,_0x4c2711:0x44,_0x43c6f6:0x37,_0x290f46:0x42,_0x4a1a54:0x6c,_0x8d03f1:0xeb,_0x52711f:0x3e,_0x4cc585:0x1d,_0xef53d6:0x3c,_0x4e227e:0x37,_0x26a8c7:0x68,_0x2c0f9b:0x46,_0x56442c:0xb1},_0x2e19d2={_0x2273eb:0x3d1},_0x727909={_0x4e83f0:0x9d};function _0x1b7904(_0x44c78d,_0x26c78f,_0x4e3656,_0x25074d){return _0x256f33(_0x44c78d,_0x26c78f-_0x727909._0x4e83f0,_0x26c78f- -0x3d1,_0x25074d-0x80);}if(_0x5979d8)return _0x5979d8;function _0x315ba7(_0x3540ca,_0x223da8,_0x552ea8,_0x2f11f9){return _0x256f33(_0x3540ca,_0x223da8-0x15c,_0x552ea8- -_0x2e19d2._0x2273eb,_0x2f11f9-0xcd);}if(_0x201fde[_0x315ba7(-0x135,-0x10b,-0xa3,-0x144)]()==='win32')return process[_0x315ba7(0x83,0x8,-0x5,0x87)][_0x1b7904(_0x35a7e7._0x496e62,-_0x35a7e7._0x2dd25f,_0x35a7e7._0x4f105a,-0xc2)]||'cmd.exe';const _0x5cc5ca=[_0x315ba7(0x61,0xb5,_0x35a7e7._0x4c2711,0x6d),_0x1b7904(-_0x35a7e7._0x43c6f6,-_0x35a7e7._0x290f46,-0xce,-_0x35a7e7._0x4a1a54),_0x315ba7(-0xc6,-_0x35a7e7._0x8d03f1,-_0x35a7e7._0x52711f,_0x35a7e7._0x4cc585),_0x1b7904(_0x35a7e7._0xef53d6,-0x47,-0xc5,-0x81)];for(const _0x578ca9 of _0x5cc5ca){if(shellExists(_0x578ca9))return _0x578ca9;}const _0x42f58e=process['env'][_0x1b7904(-_0x35a7e7._0x43c6f6,-_0x35a7e7._0x4e227e,0x28,-0x12)];if(_0x42f58e&&shellExists(_0x42f58e))return _0x42f58e;return _0x315ba7(_0x35a7e7._0x26a8c7,_0x35a7e7._0x2c0f9b,_0x35a7e7._0x4c2711,_0x35a7e7._0x56442c);}function _0x3e7e(_0x52683,_0x1e7d0b){_0x52683=_0x52683-0x139;const _0x2dbf10=_0x2dbf();let _0x3e7ef6=_0x2dbf10[_0x52683];if(_0x3e7e['FYNXnO']===undefined){var _0x4b729b=function(_0x3cdd88){const _0x32d611='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x201fde='',_0x239355='';for(let _0x45391b=0x0,_0x53d907,_0x15a2a1,_0xe33de0=0x0;_0x15a2a1=_0x3cdd88['charAt'](_0xe33de0++);~_0x15a2a1&&(_0x53d907=_0x45391b%0x4?_0x53d907*0x40+_0x15a2a1:_0x15a2a1,_0x45391b++%0x4)?_0x201fde+=String['fromCharCode'](0xff&_0x53d907>>(-0x2*_0x45391b&0x6)):0x0){_0x15a2a1=_0x32d611['indexOf'](_0x15a2a1);}for(let _0x975f79=0x0,_0x53331e=_0x201fde['length'];_0x975f79<_0x53331e;_0x975f79++){_0x239355+='%'+('00'+_0x201fde['charCodeAt'](_0x975f79)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x239355);};_0x3e7e['uzdnik']=_0x4b729b,_0x3e7e['wBaXkF']={},_0x3e7e['FYNXnO']=!![];}const _0x5eba02=_0x2dbf10[0x0],_0x7d8cc3=_0x52683+_0x5eba02,_0x1cbd0b=_0x3e7e['wBaXkF'][_0x7d8cc3];return!_0x1cbd0b?(_0x3e7ef6=_0x3e7e['uzdnik'](_0x3e7ef6),_0x3e7e['wBaXkF'][_0x7d8cc3]=_0x3e7ef6):_0x3e7ef6=_0x1cbd0b,_0x3e7ef6;}function buildShellArgs(_0x26adb3,_0x3ec7de){const _0xea1e18={_0x868f92:0x146,_0x1a2aa3:0xa3,_0x2e5d7e:0x34b,_0x2d0454:0x35c,_0x19d1e6:0x94,_0x49938f:0x95},_0x15904f={_0x579137:0xb8},_0x19505f={_0x203508:0x463,_0x5541b1:0xd5};function _0x2b92c9(_0x301f12,_0x5a7535,_0x4bce6a,_0x37e473){return _0x256f33(_0x5a7535,_0x5a7535-0xf4,_0x4bce6a- -_0x19505f._0x203508,_0x37e473-_0x19505f._0x5541b1);}function _0x1a2651(_0x352212,_0x59e441,_0x2bd32a,_0x3a7ec3){return _0x256f33(_0x352212,_0x59e441-_0x15904f._0x579137,_0x2bd32a- -0x6b,_0x3a7ec3-0x160);}if(_0x201fde['platform']()===_0x2b92c9(-0xf9,-0x1b1,-_0xea1e18._0x868f92,-_0xea1e18._0x1a2aa3)){const _0xd095c8=/cmd(\.exe)?$/i[_0x1a2651(_0xea1e18._0x2e5d7e,_0xea1e18._0x2d0454,0x31a,0x391)](_0x3ec7de);return _0xd095c8?['/d','/s','/c',_0x26adb3]:[_0x2b92c9(-0x70,0x10,-_0xea1e18._0x19d1e6,-0xac),'-NoProfile',_0x2b92c9(-_0xea1e18._0x49938f,0x12,-0x84,-0x7a),_0x26adb3];}return['-c',_0x26adb3];}function stripAnsiAndControls(_0x4cace5){const _0x1d7130={_0x6c63cd:0x152,_0x2243c7:0x18c,_0x4e3c7c:0x43,_0x358214:0xa7,_0x42d78d:0x41,_0x4be5d0:0x16e,_0x273728:0x2a,_0x1627a6:0xf,_0x435285:0x1e0,_0x1720f0:0x246,_0x3d62d0:0x6c,_0x2b719a:0x7d,_0x3b5a31:0x133,_0x23e7a8:0xb7,_0x418c71:0x149,_0x25a931:0x1bf,_0x5f4b38:0x1a4,_0x206b96:0x71,_0x3b7dad:0xea,_0x875e38:0x168,_0x342623:0x237,_0x4625ac:0x1ad},_0x32d9b7={_0x57f7ec:0x147,_0x2d3150:0x2b9},_0x1b9944={_0x54adba:0x1db,_0x3cf1df:0x373,_0x2c2230:0x18a};_0x4cace5=stripVTControlCharacters(_0x4cace5);const _0x19b6c8='\x1b',_0x5516ea='\x07';_0x4cace5=_0x4cace5[_0x54c943(_0x1d7130._0x6c63cd,_0x1d7130._0x2243c7,0xea,0x126)](new RegExp(';[^'+_0x5516ea+_0x54c943(-_0x1d7130._0x4e3c7c,-_0x1d7130._0x358214,-_0x1d7130._0x42d78d,0x69)+_0x5516ea,'g'),''),_0x4cace5=_0x4cace5[_0x54c943(_0x1d7130._0x4be5d0,0x165,0xea,0x60)](new RegExp(_0x54c943(-0x6e,-_0x1d7130._0x273728,-0x2f,_0x1d7130._0x1627a6)+_0x19b6c8+'\x5c\x5c','g'),''),_0x4cace5=_0x4cace5[_0x216afb(0x1a2,_0x1d7130._0x435285,_0x1d7130._0x1720f0,0x1a4)](new RegExp(_0x5516ea,'g'),''),_0x4cace5=_0x4cace5['replace'](new RegExp(_0x19b6c8+_0x54c943(-0xb0,-_0x1d7130._0x3d62d0,-0x26,_0x1d7130._0x2b719a)+_0x19b6c8+'\x5c\x5c','g'),''),_0x4cace5=_0x4cace5['replace'](new RegExp(_0x19b6c8+_0x216afb(0x199,_0x1d7130._0x3b5a31,_0x1d7130._0x23e7a8,_0x1d7130._0x418c71),'g'),'');function _0x54c943(_0x27241f,_0xb47953,_0x2d41db,_0x26c177){return _0x256f33(_0x26c177,_0xb47953-_0x1b9944._0x54adba,_0x2d41db- -_0x1b9944._0x3cf1df,_0x26c177-_0x1b9944._0x2c2230);}_0x4cace5=_0x4cace5[_0x216afb(0x222,0x1fe,_0x1d7130._0x25a931,_0x1d7130._0x5f4b38)](/[\u0080-\u009F]/g,''),_0x4cace5=_0x4cace5[_0x54c943(0xc5,_0x1d7130._0x206b96,_0x1d7130._0x3b7dad,_0x1d7130._0x875e38)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x216afb(_0x51aaee,_0x5db96e,_0x33baba,_0x4414f6){return _0x256f33(_0x5db96e,_0x5db96e-_0x32d9b7._0x57f7ec,_0x4414f6- -_0x32d9b7._0x2d3150,_0x4414f6-0x89);}return _0x4cace5=_0x4cace5[_0x216afb(_0x1d7130._0x342623,0x24b,_0x1d7130._0x4625ac,0x1a4)](/[\u23CE\u2424]/g,''),_0x4cace5;}function resolveWorkingDirectory(_0x43b442,_0x9a9268){const _0xe0df55={_0x4d7b06:0x2c4,_0x321d61:0x374,_0x4f0460:0x34a,_0x36cbb6:0x372,_0x3f83e0:0x209,_0x592e1f:0x165,_0x4fa0e7:0x136},_0x57f6fe={_0x4593ba:0xf2,_0x321552:0x2b},_0x6c5147={_0x426538:0x10b};function _0x570b8e(_0x48666d,_0xe6ccfe,_0x329517,_0x2eaf21){return _0x256f33(_0xe6ccfe,_0xe6ccfe-0x10,_0x329517- -0x472,_0x2eaf21-_0x6c5147._0x426538);}const _0x55be7e=_0x43b442?_0x239355[_0x570b8e(-0x156,-0x106,-0x106,-0x190)](_0x43b442)?_0x43b442:_0x239355['resolve'](_0x9a9268,_0x43b442):_0x9a9268;function _0x26c0c6(_0x1b60b4,_0x21afbb,_0x2e0126,_0x1b3719){return _0x256f33(_0x21afbb,_0x21afbb-_0x57f6fe._0x4593ba,_0x2e0126- -_0x57f6fe._0x321552,_0x1b3719-0x117);}try{const _0x14912e=statSync(_0x55be7e);if(!_0x14912e['isDirectory']())throw new ToolExecutionError(_0x26c0c6(_0xe0df55._0x4d7b06,_0xe0df55._0x321d61,_0xe0df55._0x4f0460,_0xe0df55._0x36cbb6)+_0x55be7e,{'cwd':_0x55be7e});return _0x55be7e;}catch(_0x5c6693){if(_0x5c6693 instanceof ToolExecutionError)throw _0x5c6693;throw new ToolExecutionError(_0x570b8e(-0x11a,-_0xe0df55._0x3f83e0,-_0xe0df55._0x592e1f,-_0xe0df55._0x4fa0e7)+_0x55be7e,{'cwd':_0x55be7e});}}function killProcessGroup(_0x49066b,_0xf217b2,_0xf1a09f=_0x379285(0x71,0x22,-0x20,0xe)){const _0x1b5252={_0xda283b:0x3ad,_0xc2c70b:0x354,_0x1fd016:0x381,_0x4034c9:0x3aa,_0x14016f:0x329,_0x4c37a6:0x459,_0xe8fa45:0x3e1,_0x136376:0x40d,_0xef32a2:0x401,_0x4302a0:0x3d9,_0x1ad4c6:0x357,_0x2a73b1:0x46d,_0x538878:0x3ea,_0x52b4bd:0x3c0},_0x4a6b55={_0x2e9c56:0x41a,_0x21c7c3:0xb4},_0x26d32c={_0x330233:0x156,_0x43b6e2:0x72};function _0x1df4e5(_0x2e19e7,_0xb28401,_0x53964e,_0x27eb29){return _0x256f33(_0xb28401,_0xb28401-0xca,_0x2e19e7-_0x26d32c._0x330233,_0x27eb29-_0x26d32c._0x43b6e2);}if(!_0x49066b['pid'])return;if(_0xf217b2)try{spawn(_0x412496(_0x1b5252._0xda283b,_0x1b5252._0xc2c70b,0x352,0x352),['/pid',_0x49066b[_0x412496(_0x1b5252._0x1fd016,0x454,_0x1b5252._0x4034c9,_0x1b5252._0x14016f)][_0x412496(_0x1b5252._0x4c37a6,0x3ee,_0x1b5252._0xe8fa45,0x37c)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x49066b[_0x412496(_0x1b5252._0x136376,_0x1b5252._0xef32a2,_0x1b5252._0x4302a0,0x34c)](_0xf1a09f);return;}function _0x412496(_0x1d651d,_0x4bfcbb,_0x14b014,_0x3ba58d){return _0x379285(_0x1d651d-0x70,_0x14b014-_0x4a6b55._0x2e9c56,_0x14b014-_0x4a6b55._0x21c7c3,_0x4bfcbb);}try{process[_0x412496(_0x1b5252._0x1ad4c6,_0x1b5252._0x2a73b1,0x3d9,0x450)](-_0x49066b[_0x1df4e5(0x510,0x544,0x539,0x51f)],_0xf1a09f);}catch{_0x49066b[_0x412496(0x410,_0x1b5252._0x538878,0x3d9,_0x1b5252._0x52b4bd)](_0xf1a09f);}}function appendChunk(_0x5a6f67,_0x1a3fce,_0x230d25,_0x257b73,_0x579ec8){const _0x30608e={_0xc3b003:0x24e,_0x5bf326:0x342,_0x1eba0c:0x5e6,_0x4894a3:0x49b},_0x3e66a3={_0x54f113:0x566},_0x3f87f2={_0x37e5be:0xfe};function _0x390deb(_0x4de953,_0x26b4a4,_0x24ecf3,_0x4144ea){return _0x256f33(_0x26b4a4,_0x26b4a4-0x58,_0x24ecf3- -0x62,_0x4144ea-_0x3f87f2._0x37e5be);}const _0x251dcf=_0x257b73?stripAnsiAndControls(_0x230d25):_0x230d25;function _0x4294ff(_0x531f12,_0x3d6610,_0x489914,_0x483fd6){return _0x379285(_0x531f12-0x38,_0x489914-_0x3e66a3._0x54f113,_0x489914-0x13c,_0x531f12);}if(_0x251dcf[_0x390deb(0x2e2,_0x30608e._0xc3b003,0x2a3,_0x30608e._0x5bf326)]===0x0)return;_0x5a6f67[_0x4294ff(0x5dd,0x634,0x58d,_0x30608e._0x1eba0c)](_0x251dcf),_0x1a3fce[_0x390deb(0x36d,_0x30608e._0x4894a3,0x3ef,0x3ae)](_0x251dcf),_0x579ec8();}function createBashTool(_0x553791={}){const _0x22558c={_0x4f590a:0x2b5,_0x318b8c:0x273,_0x25c993:0xb3,_0x43c827:0x60,_0x269b94:0x137,_0x8b3afc:0xa3,_0x4b28d5:0x165,_0x1a5921:0x9e,_0xbdab0d:0x4b,_0x4d4ad2:0x59,_0x3f68a2:0x7f,_0xfe8c88:0x6e,_0x1130f4:0x15,_0x1a330d:0x1e8,_0x1ea6af:0x1cf,_0x4a5c9a:0x39,_0xead4d1:0x55,_0x1c52cc:0x56,_0x3b0676:0xa5,_0x52bee9:0x70,_0x437ea3:0xac,_0x517be8:0x27,_0x323ef3:0x83},_0x4d5d05={_0x191a54:0x15d,_0x486012:0x111,_0x150323:0x7c,_0x186506:0x2c3,_0xe7a194:0x247,_0x335dfa:0x13e,_0x101083:0xa8,_0x1d2736:0xfb,_0x2d052:0x222,_0x16a231:0x1c5,_0x59f3b0:0x17a,_0x29c5b1:0x356,_0x43aa93:0x21e,_0x4a1e14:0x17b,_0x2b7475:0xfd,_0x15e8b2:0x158,_0x1d1bf3:0x229,_0x4da8a9:0x2a0,_0x326f5f:0x23d,_0x23f7d7:0x2a8,_0x436416:0x22d,_0x2d8c28:0x235,_0x3648ff:0xbd,_0x22de03:0x136,_0x4b27de:0x213,_0x347eca:0x75,_0x36182a:0x8,_0x25b30d:0x79,_0x8aa9e7:0x38,_0x3f5878:0x12,_0x3ead34:0x6d,_0x1636fb:0x10a,_0x2f1550:0x266,_0xe86bac:0x293,_0x199a69:0x2ba,_0xab4291:0x2c9,_0x377465:0x29c,_0x2750ed:0x250,_0x31097e:0xc2,_0x4278be:0xf3,_0x191edb:0xc0,_0x1ed714:0x162,_0x501fa7:0xdd,_0x25f542:0x93,_0x89840a:0x5e,_0x3f2e1e:0x56,_0x38a03a:0x5b,_0x3f4bd8:0xa8,_0x2df10b:0x17f,_0x4d93f2:0xb8,_0x44f20b:0xb3,_0x5dd983:0x17c,_0x15b99b:0xec,_0x2b0027:0xe9,_0x441ddc:0x185,_0x40babe:0x1c,_0x1ec407:0xb,_0x40399c:0x2ab,_0x1bc56c:0x26c,_0x287d87:0x32c,_0x34d581:0x1d4,_0x32fef7:0x75,_0x4bffe8:0x94,_0x103f9c:0x22,_0xef8532:0x24,_0x1a04c4:0x1d1,_0x3ed7f0:0x126,_0x23598c:0x153,_0x9e666e:0xc8,_0x4879e2:0x18d,_0x4f94d2:0x7d,_0x3dbbe6:0x218,_0x4eae21:0x1ce,_0x34f56d:0x23,_0x406803:0x4e,_0x5d4f95:0x44,_0x597130:0x240,_0x2b7b3a:0x1f0,_0x16d331:0x8a,_0xaf37c0:0x9,_0x48307d:0x2a0,_0x5826ff:0xc0,_0x52b266:0x114,_0x263d82:0x5,_0x5d2a30:0x53,_0xf8c630:0x152,_0x2283ad:0x123},_0x23e679={_0x103726:0x4ec,_0x413d38:0x571,_0x5cd29e:0x5b9},_0x1c5929={_0x2a4961:0x25c,_0x22910c:0x47,_0x216d60:0x1a1},_0x2c846a={_0x4e4893:0x71,_0x213aa9:0x191},_0x909039={_0x11cafd:0x25b},_0x13aeac=_0x239355[_0x4179f1(0x286,_0x22558c._0x4f590a,0x218,_0x22558c._0x318b8c)](_0x553791[_0x574674(_0x22558c._0x25c993,0xa5,0x8,_0x22558c._0x43c827)]??process[_0x4179f1(_0x22558c._0x269b94,_0x22558c._0x8b3afc,_0x22558c._0x4b28d5,0x102)]()),_0x542ae1=_0x553791[_0x574674(-_0x22558c._0x1a5921,_0x22558c._0xbdab0d,-_0x22558c._0x4d4ad2,-0xb5)]??DEFAULT_TIMEOUT_MS;function _0x4179f1(_0x8ce223,_0x3420bb,_0x4c5430,_0x38a962){return _0x379285(_0x8ce223-0xa9,_0x8ce223-_0x909039._0x11cafd,_0x4c5430-0x69,_0x4c5430);}const _0x19e7c7=_0x553791['stripAnsi']??!![],_0x3f76f2=_0x553791[_0x574674(0xcd,-0x11,_0x22558c._0x3f68a2,-0x5)]??_0x574674(-0x3d,_0x22558c._0xfe8c88,_0x22558c._0x1130f4,0x15);function _0x574674(_0x43f055,_0x440559,_0x5b0824,_0x1ee6f9){return _0x379285(_0x43f055-0x166,_0x5b0824-_0x2c846a._0x4e4893,_0x5b0824-_0x2c846a._0x213aa9,_0x43f055);}return defineTool({'name':_0x3f76f2,'description':_0x553791[_0x574674(0x4b,-0xd6,-0x49,-0xcb)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x4179f1(0x22f,0x1ce,_0x22558c._0x1a330d,_0x22558c._0x1ea6af),'properties':{'command':{'type':_0x4179f1(0x189,0x22d,0x1fc,0x145)},'cwd':{'type':'string'},'timeoutMs':{'type':_0x574674(-_0x22558c._0x4a5c9a,0x72,_0x22558c._0xead4d1,_0x22558c._0x1c52cc)},'ignoreOutput':{'type':_0x574674(-0x77,-_0x22558c._0x3b0676,-_0x22558c._0x52bee9,-_0x22558c._0x437ea3)}},'required':[_0x574674(0xb6,_0x22558c._0x517be8,0x95,_0x22558c._0x323ef3)]},async *'execute'(_0x244aa8,_0x2e8498){const _0x14523d={_0x171728:0x452,_0x4fdac2:0x49c,_0x5cac25:0x3cf,_0x4376de:0x45b},_0x3dde7f={_0x132bc1:0x26d,_0x1069b0:0x28c},_0x4aee6b={_0x2b9d9d:0x147},_0x1e332a={_0x5eeb9c:0x37a,_0x550e26:0x284,_0x156757:0x249},_0x432ba3={_0x5af964:0x2f0},_0xe6252a={_0x225ddf:0x157,_0x2da529:0xca,_0x264318:0x5c},_0x5e89a6={_0x247fac:0xcd},_0x349aec={_0x2b3a2a:0x216},_0x5b17df=_0x244aa8['timeoutMs']??_0x542ae1;if(!Number['isFinite'](_0x5b17df)||_0x5b17df<0x1)throw new ToolExecutionError(_0x4f59ad(-_0x4d5d05._0x191a54,-_0x4d5d05._0x486012,-_0x4d5d05._0x150323,-0x7c),{'command':_0x244aa8[_0x14a266(0x2ab,_0x4d5d05._0x186506,_0x4d5d05._0xe7a194,0x220)]});throwIfAborted(_0x2e8498[_0x4f59ad(-_0x4d5d05._0x335dfa,-_0x4d5d05._0x101083,-_0x4d5d05._0x1d2736,-0xd3)]);const _0x5a6823=resolveWorkingDirectory(_0x244aa8['cwd'],_0x13aeac),_0x6f86c6=_0x244aa8[_0x14a266(0x1d8,_0x4d5d05._0x2d052,_0x4d5d05._0x16a231,0x1d1)]??![],_0x65c42=resolveDefaultShell(_0x553791[_0x14a266(0x172,_0x4d5d05._0x59f3b0,0x1a3,0x1a8)]);function _0x14a266(_0x1fdcb5,_0xa65d97,_0x3946b7,_0x2f24ec){return _0x574674(_0x2f24ec,_0xa65d97-0x89,_0x1fdcb5-_0x349aec._0x2b3a2a,_0x2f24ec-0xab);}const _0x3e170d=buildShellArgs(_0x244aa8[_0x14a266(0x2ab,_0x4d5d05._0x29c5b1,_0x4d5d05._0x43aa93,0x34d)],_0x65c42),_0x5e6e04=_0x201fde[_0x4f59ad(-_0x4d5d05._0x4a1e14,-_0x4d5d05._0x2b7475,-0x15b,-_0x4d5d05._0x15e8b2)]()==='win32';let _0x1ef4be;try{_0x1ef4be=spawn(_0x65c42,_0x3e170d,{'cwd':_0x5a6823,'env':{...process[_0x14a266(_0x4d5d05._0x1d1bf3,_0x4d5d05._0x4da8a9,0x27f,_0x4d5d05._0x326f5f)],..._0x553791[_0x14a266(0x229,0x290,_0x4d5d05._0x23f7d7,0x224)]??{}},'stdio':_0x6f86c6?[_0x14a266(0x1cb,_0x4d5d05._0x436416,_0x4d5d05._0x2d8c28,0x1b2),'ignore',_0x4f59ad(-0xf2,-_0x4d5d05._0x3648ff,-_0x4d5d05._0x22de03,-0x10f)]:['ignore',_0x14a266(_0x4d5d05._0x4b27de,0x297,0x246,0x1b8),_0x4f59ad(-0xf0,-_0x4d5d05._0x347eca,-0xdf,0x5)],'shell':![],'windowsHide':!![],'detached':!_0x5e6e04});}catch(_0x1e5725){if(isErrnoException(_0x1e5725)&&_0x1e5725[_0x4f59ad(-0x44,-_0x4d5d05._0x36182a,-_0x4d5d05._0x25b30d,_0x4d5d05._0x8aa9e7)]===_0x4f59ad(_0x4d5d05._0x3f5878,-_0x4d5d05._0x3ead34,-_0x4d5d05._0x1636fb,-0x49))throw new ToolExecutionError(_0x14a266(_0x4d5d05._0x2f1550,_0x4d5d05._0xe86bac,_0x4d5d05._0x199a69,0x2b4)+_0x65c42,{'command':_0x244aa8['command'],'cwd':_0x5a6823,'shellPath':_0x65c42});throw new ToolExecutionError(_0x1e5725 instanceof Error?_0x1e5725['message']:String(_0x1e5725),{'command':_0x244aa8[_0x14a266(0x2ab,0x2a1,0x289,_0x4d5d05._0xab4291)],'cwd':_0x5a6823,'shellPath':_0x65c42});}const _0x1d52d9=[],_0x1903e1=[],_0x21ba8d=new StringDecoder(_0x4f59ad(-0x3f,0x14,0x62,0x7c)),_0x2f98ce=new StringDecoder(_0x14a266(_0x4d5d05._0x377465,_0x4d5d05._0x2750ed,0x1f5,0x1f6));let _0xf7b58d,_0x3d429f=![],_0x352a69;const _0x56665c=()=>{if(!_0xf7b58d)return;const _0x5c138e=_0xf7b58d;_0xf7b58d=void 0x0,_0x5c138e();},_0x335df0=async()=>{if(_0x1903e1['length']>0x0||_0x3d429f)return;await new Promise(_0x12ddb4=>{_0xf7b58d=_0x12ddb4;});},_0x1d2865=_0x41d63f=>{function _0x3a06a5(_0x41dc7d,_0x279d5c,_0x246185,_0x102ef4){return _0x14a266(_0x279d5c- -0x355,_0x279d5c-_0x5e89a6._0x247fac,_0x246185-0x10e,_0x41dc7d);}appendChunk(_0x1d52d9,_0x1903e1,_0x21ba8d[_0x3a06a5(-_0xe6252a._0x225ddf,-_0xe6252a._0x2da529,-_0xe6252a._0x264318,-0xc0)](_0x41d63f),_0x19e7c7,_0x56665c);},_0x398cdb=_0x16ba56=>{function _0x5583c8(_0x12ff8e,_0xb658a4,_0x2b31b9,_0x191d69){return _0x4f59ad(_0x12ff8e-0xfa,_0x191d69-_0x432ba3._0x5af964,_0x12ff8e,_0x191d69-0x53);}appendChunk(_0x1d52d9,_0x1903e1,_0x2f98ce[_0x5583c8(_0x1e332a._0x5eeb9c,_0x1e332a._0x550e26,_0x1e332a._0x156757,0x2f3)](_0x16ba56),_0x19e7c7,_0x56665c);};function _0x4f59ad(_0x5921e3,_0x27614a,_0x2d5d67,_0x432dae){return _0x4179f1(_0x27614a- -_0x1c5929._0x2a4961,_0x27614a-_0x1c5929._0x22910c,_0x2d5d67,_0x432dae-_0x1c5929._0x216d60);}_0x1ef4be[_0x4f59ad(-_0x4d5d05._0x31097e,-_0x4d5d05._0x4278be,-0x4a,-0x17a)]?.['on'](_0x4f59ad(-0x145,-_0x4d5d05._0x191edb,-_0x4d5d05._0x1ed714,-_0x4d5d05._0x501fa7),_0x1d2865),_0x1ef4be[_0x4f59ad(-0x5d,-_0x4d5d05._0x25f542,-0x119,-_0x4d5d05._0x89840a)]?.['on'](_0x4f59ad(-0x83,-0xc0,-_0x4d5d05._0x3f2e1e,-_0x4d5d05._0x38a03a),_0x398cdb);let _0x41918e=![],_0x466177;const _0x275be9=addAbortListener(_0x2e8498[_0x4f59ad(-0xab,-_0x4d5d05._0x3f4bd8,-0xc7,0x7)],()=>{_0x352a69=toAbortError(_0x2e8498['signal'][_0x3df23f(_0x23e679._0x103726,0x5fc,_0x23e679._0x413d38,_0x23e679._0x5cd29e)]),_0x3d429f=!![];function _0x3df23f(_0x27e004,_0x10beeb,_0x3166cf,_0x7a6239){return _0x4f59ad(_0x27e004-0xd2,_0x3166cf-0x648,_0x10beeb,_0x7a6239-_0x4aee6b._0x2b9d9d);}_0x56665c();try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}});try{const _0xe513b4=new Promise((_0x5db0ad,_0xf5348d)=>{const _0x297979={_0x573835:0x1bf},_0x103ba2={_0x288335:0xfe,_0x386d02:0x6e,_0x9c5c1a:0x17f,_0x23aa7d:0x465,_0xf0875d:0x488,_0x21e300:0x456},_0x3bc52a={_0x47d40f:0x249,_0x56c485:0x277,_0x1cc96e:0x182,_0x1fd1b1:0xc7},_0x4e1e35={_0x3c4964:0x228,_0x3dd2b9:0x155};function _0x59059a(_0x50ec82,_0x3a4502,_0x222484,_0x3b205f){return _0x14a266(_0x222484-_0x4e1e35._0x3c4964,_0x3a4502-0xd5,_0x222484-_0x4e1e35._0x3dd2b9,_0x3b205f);}const _0x236b86=()=>{function _0x5919dc(_0xce1556,_0x450139,_0x2e9d5c,_0x2811be){return _0x3e7e(_0x2e9d5c-0x68,_0x2811be);}function _0x196cf7(_0x4a6cbb,_0x4bad28,_0x24274c,_0x5e0b38){return _0x3e7e(_0x4bad28- -0x25c,_0x4a6cbb);}_0x466177&&(clearTimeout(_0x466177),_0x466177=void 0x0),_0x1ef4be['off'](_0x5919dc(0x1be,_0x3bc52a._0x47d40f,0x26d,_0x3bc52a._0x56c485),_0x3be897),_0x1ef4be['off'](_0x196cf7(-_0x3bc52a._0x1cc96e,-0x11b,-_0x3bc52a._0x1fd1b1,-0xc3),_0x376b68);},_0x3be897=_0x55629c=>{_0x3d429f=!![],_0x56665c(),_0x236b86(),_0xf5348d(_0x352a69??_0x55629c);},_0x376b68=(_0x34d4ab,_0x556290)=>{const _0xe1044e={_0x283c1d:0xfe};_0x41918e=!![];function _0x53c973(_0x31c16f,_0xd199d2,_0x38ef27,_0xbd5bde){return _0x3e7e(_0x31c16f-_0xe1044e._0x283c1d,_0xbd5bde);}appendChunk(_0x1d52d9,_0x1903e1,_0x21ba8d[_0x53c973(_0x3dde7f._0x132bc1,0x2ef,0x2f6,_0x3dde7f._0x1069b0)](),_0x19e7c7,_0x56665c),appendChunk(_0x1d52d9,_0x1903e1,_0x2f98ce['end'](),_0x19e7c7,_0x56665c),_0x3d429f=!![],_0x56665c(),_0x236b86();if(_0x352a69){_0xf5348d(_0x352a69);return;}_0x5db0ad({'code':_0x34d4ab,'signal':_0x556290});};_0x466177=setTimeout(()=>{const _0x13397e={_0x5e7204:0x31a};_0x3d429f=!![];function _0x5eb3cb(_0x2b96e9,_0xf4e43d,_0x414eb2,_0x37948e){return _0x3e7e(_0x37948e-0x1d0,_0x414eb2);}_0x56665c(),_0x236b86();function _0x56d4cb(_0x31ebdd,_0x500b02,_0x3604ee,_0x3af1a8){return _0x3e7e(_0x31ebdd- -_0x13397e._0x5e7204,_0x500b02);}try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}_0xf5348d(new ToolExecutionError(_0x56d4cb(-_0x103ba2._0x288335,-0xee,-_0x103ba2._0x386d02,-0xe6)+_0x5b17df+_0x56d4cb(-0x1a3,-_0x103ba2._0x9c5c1a,-0x24c,-0x221),{'command':_0x244aa8[_0x5eb3cb(0x407,_0x103ba2._0x23aa7d,_0x103ba2._0xf0875d,_0x103ba2._0x21e300)],'cwd':_0x5a6823,'shellPath':_0x65c42,'timeoutMs':_0x5b17df,'timedOut':!![]}));},_0x5b17df),_0x1ef4be['once'](_0x59059a(0x4c3,0x489,_0x14523d._0x171728,_0x14523d._0x4fdac2),_0x3be897);function _0x10af4b(_0x4793c8,_0x263004,_0x52c67f,_0x539368){return _0x14a266(_0x52c67f- -_0x297979._0x573835,_0x263004-0x9a,_0x52c67f-0x2e,_0x539368);}_0x1ef4be[_0x59059a(_0x14523d._0x5cac25,0x3ee,0x40b,_0x14523d._0x4376de)]('close',_0x376b68);});while(_0x1903e1[_0x14a266(0x162,_0x4d5d05._0x2df10b,_0x4d5d05._0x4d93f2,0x169)]>0x0||!_0x3d429f){if(_0x1903e1[_0x14a266(0x162,_0x4d5d05._0x44f20b,_0x4d5d05._0x5dd983,0x1da)]===0x0){await _0x335df0();continue;}const _0x5f3267=_0x1903e1[_0x4f59ad(-_0x4d5d05._0x15b99b,-_0x4d5d05._0x2b0027,-_0x4d5d05._0x441ddc,-0x190)]();_0x5f3267!==void 0x0&&(yield _0x5f3267);}const _0xdc7ea0=await _0xe513b4,_0x32a8c9=_0x6f86c6?_0x4f59ad(-_0x4d5d05._0x40babe,-0x3e,0x38,-_0x4d5d05._0x1ec407)+(_0xdc7ea0[_0x4f59ad(-0x5e,-0x8,-0x8c,0x9a)]??0x0):_0x1d52d9['join'](''),_0x3cf0b4={'command':_0x244aa8[_0x14a266(_0x4d5d05._0x40399c,0x231,_0x4d5d05._0x1bc56c,0x2cc)],'cwd':_0x5a6823,'exitCode':_0xdc7ea0[_0x14a266(0x280,_0x4d5d05._0x287d87,0x292,_0x4d5d05._0x34d581)]??0x0,'signal':_0xdc7ea0['signal'],'ignoreOutput':_0x6f86c6,'shellPath':_0x65c42,'timeoutMs':_0x5b17df};if(_0xdc7ea0[_0x4f59ad(0x35,-_0x4d5d05._0x36182a,-_0x4d5d05._0x32fef7,-_0x4d5d05._0x4bffe8)]!==0x0)throw new ToolExecutionError(_0x32a8c9||_0x4f59ad(_0x4d5d05._0x103f9c,-_0x4d5d05._0x8aa9e7,0x34,_0x4d5d05._0xef8532)+(_0xdc7ea0['code']??0x0),_0x3cf0b4);return createToolOutput(_0x32a8c9,_0x3cf0b4);}catch(_0x303480){while(_0x1903e1[_0x4f59ad(-_0x4d5d05._0x1a04c4,-_0x4d5d05._0x3ed7f0,-0x116,-_0x4d5d05._0x5dd983)]>0x0){const _0xe1061e=_0x1903e1[_0x4f59ad(-_0x4d5d05._0x23598c,-0xe9,-_0x4d5d05._0x9e666e,-_0x4d5d05._0x4879e2)]();_0xe1061e!==void 0x0&&(yield _0xe1061e);}if(_0x303480 instanceof ToolExecutionError)throw _0x303480;if(_0x352a69)throw _0x352a69;if(isErrnoException(_0x303480)&&_0x303480[_0x4f59ad(0x37,-0x8,0x81,-0x4d)]===_0x4f59ad(0x3d,-0x6d,-_0x4d5d05._0x4f94d2,-0x119))throw new ToolExecutionError(_0x14a266(0x266,_0x4d5d05._0x3dbbe6,_0x4d5d05._0x4eae21,0x2c1)+_0x65c42,{'command':_0x244aa8[_0x4f59ad(0x1c,_0x4d5d05._0x34f56d,-_0x4d5d05._0x406803,_0x4d5d05._0x5d4f95)],'cwd':_0x5a6823,'shellPath':_0x65c42});throw new ToolExecutionError(_0x303480 instanceof Error?_0x303480[_0x14a266(0x275,_0x4d5d05._0x597130,_0x4d5d05._0x2b7b3a,0x21a)]:String(_0x303480),{'command':_0x244aa8[_0x4f59ad(-_0x4d5d05._0x16d331,_0x4d5d05._0x34f56d,-_0x4d5d05._0xaf37c0,-0x2f)],'cwd':_0x5a6823,'shellPath':_0x65c42});}finally{_0x466177&&clearTimeout(_0x466177);_0x275be9(),_0x1ef4be['stdout']?.[_0x14a266(0x28d,0x2e2,_0x4d5d05._0x48307d,0x20d)](_0x4f59ad(-0x12d,-_0x4d5d05._0x5826ff,-_0x4d5d05._0x52b266,-0xbb),_0x1d2865),_0x1ef4be[_0x4f59ad(-0x6e,-0x93,-0x8d,-0xad)]?.[_0x4f59ad(0x6e,_0x4d5d05._0x263d82,-0x82,-_0x4d5d05._0x5d2a30)]('data',_0x398cdb);if(!_0x41918e&&_0x1ef4be['pid']&&!_0x1ef4be[_0x4f59ad(-_0x4d5d05._0xf8c630,-_0x4d5d05._0x2283ad,-0xfb,-0xb4)])try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}}}});}function createShellExecTool(_0x2a2315={}){return createBashTool(_0x2a2315);}import{renderCommandInstructions}from'@nuvin/config';function buildDescription(_0x583933){const _0x343f53={_0x19fc73:0x3fe,_0x317ac1:0x384,_0xb5b74a:0x368,_0x2e98ef:0x530,_0x28609a:0x501,_0x469cbd:0x4c3,_0x2dc67e:0x3ee,_0x520bea:0x493,_0x3e4698:0x53f,_0x329e7f:0x3f6,_0x4d6c94:0x446,_0x21548b:0x491,_0x4ee50d:0x4d7,_0x76fd67:0x4c5,_0x5e4621:0x3f8,_0x19a0b0:0x4ca,_0x165568:0x47b,_0xc9da71:0x40f,_0x3a072e:0x3e4,_0x1b6800:0x3f1,_0x539e3e:0x3f5,_0x4b7d5e:0x524,_0x5623f5:0x491,_0x43371e:0x507},_0x3f3344={_0x2dd5b3:0x13d,_0x168655:0x4a9},_0xa98e3d={_0x5a5ab6:0x12d};if(_0x583933[_0x47bc14(_0x343f53._0x19fc73,_0x343f53._0x317ac1,_0x343f53._0xb5b74a,0x3b0)]===0x0)return[_0x5ca373(0x45b,_0x343f53._0x2e98ef,_0x343f53._0x28609a,_0x343f53._0x469cbd),_0x5ca373(_0x343f53._0x2dc67e,0x44e,_0x343f53._0x520bea,_0x343f53._0x3e4698),_0x47bc14(_0x343f53._0x329e7f,_0x343f53._0x4d6c94,0x3ca,0x49d)][_0x5ca373(0x496,0x521,_0x343f53._0x21548b,0x4d0)]('\x0a');const _0x440841=[_0x5ca373(_0x343f53._0x4ee50d,0x4c7,_0x343f53._0x28609a,_0x343f53._0x76fd67),_0x47bc14(_0x343f53._0x5e4621,0x45b,_0x343f53._0x19a0b0,_0x343f53._0x165568),_0x47bc14(_0x343f53._0x19fc73,_0x343f53._0xc9da71,_0x343f53._0x3a072e,_0x343f53._0x1b6800),..._0x583933[_0x47bc14(0x47b,_0x343f53._0x539e3e,0x460,0x3eb)](_0x55cb24=>_0x55cb24[_0x5ca373(0x39e,0x38c,0x424,0x3af)]?'-\x20'+_0x55cb24[_0x5ca373(0x479,0x56f,0x4ef,0x535)]+'\x20'+_0x55cb24['argumentHint']+':\x20'+_0x55cb24['description']:'-\x20'+_0x55cb24['name']+':\x20'+_0x55cb24[_0x5ca373(0x3a6,0x422,0x427,0x469)])];function _0x5ca373(_0x1df1b0,_0x522ad3,_0x429fe4,_0x4b2fe3){return _0x379285(_0x1df1b0-_0xa98e3d._0x5a5ab6,_0x429fe4-0x4e1,_0x429fe4-0x1a4,_0x4b2fe3);}function _0x47bc14(_0x2c9aa5,_0x301d52,_0x3d4c2d,_0x18d0a0){return _0x379285(_0x2c9aa5-_0x3f3344._0x2dd5b3,_0x301d52-_0x3f3344._0x168655,_0x3d4c2d-0x10a,_0x3d4c2d);}return _0x440841[_0x5ca373(_0x343f53._0x4b7d5e,0x443,_0x343f53._0x5623f5,_0x343f53._0x43371e)]('\x0a');}function createInvokeCommandTool(_0x4f4e39){const _0x4ede8d={_0x3b0c92:0x8c,_0x20c37d:0x35,_0x59f622:0xe,_0xea530:0xbc,_0x519a64:0x13,_0x2431b7:0xc9,_0x3714b5:0x167,_0x3850db:0xd3,_0x489c77:0xc4},_0x121e30={_0x1ce922:0x3c3,_0x2244ac:0x3ee,_0xf17f69:0x73,_0x116662:0x4,_0x3ab040:0x1f,_0x3fb053:0x2,_0x37df07:0x92,_0x3af4fd:0x85,_0x9efe18:0x51,_0x1a3c03:0x9e,_0xc05d84:0xe2,_0x346b3c:0x430,_0x5aa773:0x73,_0x3c84f2:0x10c,_0x271d75:0x3f5,_0xfe7873:0x431,_0x41a78c:0x3d2,_0x482ff6:0x3c1,_0x16ea84:0x396,_0x2c138e:0x434,_0x38f084:0x48c,_0x230271:0x556,_0x559c9a:0x187},_0x18271c={_0x61af4e:0x395,_0x1b8141:0xfe},_0x3aa099={_0x1ed101:0x1c4},_0x25f7c2={_0x413b1b:0x1db},_0x40370f={_0x179251:0x41,_0x5337dd:0x113,_0x4ba441:0x1c},_0x2ec491=new Map(_0x4f4e39[_0x44a891(-0x21,-_0x4ede8d._0x3b0c92,-0x13,0x45)][_0x44a891(_0x4ede8d._0x20c37d,0x68,0x5f,_0x4ede8d._0x59f622)](_0x484706=>[_0x484706['id'],_0x484706])),_0x113357=buildDescription(_0x4f4e39[_0x44a891(-0x7,-_0x4ede8d._0xea530,-_0x4ede8d._0x519a64,-_0x4ede8d._0x20c37d)]);function _0x44a891(_0x2a2fd2,_0x4e1691,_0x431a4e,_0x52fed8){return _0x379285(_0x2a2fd2-_0x40370f._0x179251,_0x431a4e-_0x40370f._0x5337dd,_0x431a4e-_0x40370f._0x4ba441,_0x4e1691);}function _0x2cd82b(_0x3c47ca,_0x3aae7d,_0x125757,_0x784d14){return _0x256f33(_0x784d14,_0x3aae7d-_0x25f7c2._0x413b1b,_0x3c47ca- -0x2e7,_0x784d14-0x196);}return defineTool({'name':'InvokeCommand','description':_0x113357,'inputSchema':{'type':_0x2cd82b(0x117,_0x4ede8d._0x2431b7,_0x4ede8d._0x3714b5,0x1ba),'properties':{'name':{'type':'string'},'args':{'type':'string'}},'required':[_0x2cd82b(0x151,0x1b0,_0x4ede8d._0x3850db,_0x4ede8d._0x489c77)]},async *'execute'(_0x323ec2){const _0x731f40=_0x2ec491[_0x1e0a6f(0x467,0x43d,_0x121e30._0x1ce922,_0x121e30._0x2244ac)](_0x323ec2[_0x5b7379(-_0x121e30._0xf17f69,-_0x121e30._0x116662,-_0x121e30._0x3ab040,-_0x121e30._0x3fb053)]);if(!_0x731f40){const _0x332827=Array[_0x5b7379(-_0x121e30._0x37df07,-_0x121e30._0x3af4fd,-_0x121e30._0x9efe18,-_0x121e30._0x1a3c03)](_0x2ec491['keys']())['join'](',\x20');throw new ToolExecutionError(_0x5b7379(-_0x121e30._0xc05d84,-0xc8,-0xaf,-0xd3)+_0x323ec2['name']+_0x1e0a6f(0x45c,0x4d2,_0x121e30._0x346b3c,0x4cc)+_0x332827,{'name':_0x323ec2[_0x5b7379(-_0x121e30._0x5aa773,-_0x121e30._0x3c84f2,-0x18,-0xa0)]});}const _0x331178=await _0x4f4e39[_0x1e0a6f(_0x121e30._0x271d75,0x44a,0x44d,_0x121e30._0xfe7873)](_0x731f40);function _0x5b7379(_0x3eeef1,_0x103374,_0x20a273,_0x2e088f){return _0x2cd82b(_0x3eeef1- -_0x3aa099._0x1ed101,_0x103374-0x197,_0x20a273-0xe2,_0x2e088f);}const _0x2fef70=_0x323ec2['args']??'',_0x738393=renderCommandInstructions({'instructions':_0x331178[_0x1e0a6f(_0x121e30._0x41a78c,_0x121e30._0x482ff6,_0x121e30._0x16ea84,_0x121e30._0x2c138e)],'argumentsText':_0x2fef70,'argumentNames':_0x331178['arguments']});function _0x1e0a6f(_0x4ff3b7,_0x4defff,_0x5ad346,_0x1665cb){return _0x2cd82b(_0x4ff3b7-_0x18271c._0x61af4e,_0x4defff-_0x18271c._0x1b8141,_0x5ad346-0xd5,_0x5ad346);}return yield createToolOutput(_0x738393,{'id':_0x331178['id'],'name':_0x331178[_0x1e0a6f(0x4e6,0x50d,_0x121e30._0x38f084,_0x121e30._0x230271)],'path':_0x731f40[_0x5b7379(-0x103,-0x10e,-0xd3,-_0x121e30._0x559c9a)]['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile,rename,stat as _0x45391b,writeFile}from'fs/promises';import*as _0x53d907 from'path';import{stat}from'fs/promises';import*as _0x15a2a1 from'path';function resolveWorkspacePath(_0x2e2038,_0x31d6b5){const _0x206334={_0x3ebb17:0x3bc,_0x46e691:0x46d,_0x4c0dce:0x46f,_0x120fb6:0x45e,_0x405408:0x4ff},_0xb2f82f={_0x1e5d1b:0x152,_0x50b814:0x19c},_0x47dc5b=_0x15a2a1['resolve'](_0x2e2038);function _0x2be495(_0x391165,_0x35d515,_0x58ca35,_0x1024f3){return _0x379285(_0x391165-0xd4,_0x35d515-0x54d,_0x58ca35-0x1b,_0x1024f3);}const _0x408015=_0x15a2a1[_0x2be495(0x535,0x578,0x502,0x5d2)](_0x47dc5b,_0x31d6b5);function _0x12ed12(_0x5812ee,_0xdeb0e7,_0x5a530c,_0x160f48){return _0x256f33(_0x5a530c,_0xdeb0e7-0xb1,_0x160f48- -_0xb2f82f._0x1e5d1b,_0x160f48-_0xb2f82f._0x50b814);}const _0x34034f=_0x15a2a1[_0x2be495(0x3dd,0x443,_0x206334._0x3ebb17,_0x206334._0x46e691)](_0x47dc5b,_0x408015);if(_0x34034f===''||!_0x34034f[_0x2be495(0x465,0x4d3,_0x206334._0x4c0dce,_0x206334._0x120fb6)]('..')&&!_0x15a2a1[_0x12ed12(0x283,0x1e4,0x22f,0x21a)](_0x34034f))return _0x408015;throw new ToolExecutionError(_0x2be495(_0x206334._0x405408,0x45e,0x497,0x424)+_0x31d6b5,{'path':_0x31d6b5,'rootDir':_0x47dc5b});}async function assertWorkspaceFile(_0x15c6c7){const _0x597400={_0x38a60c:0x233},_0x28a975={_0x510567:0x23};function _0x503638(_0x5cab81,_0x39a9b3,_0x7d7081,_0x27fd89){return _0x379285(_0x5cab81-_0x28a975._0x510567,_0x39a9b3-0x269,_0x7d7081-0x14c,_0x7d7081);}const _0x120bf5=await stat(_0x15c6c7);if(!_0x120bf5['isFile']())throw new ToolExecutionError(_0x503638(_0x597400._0x38a60c,0x29a,0x329,0x334)+_0x15c6c7,{'path':_0x15c6c7});}function isProbablyBinary(_0x38f1b1){const _0x5b0b7a={_0x25c7b3:0x1e3},_0x648104={_0x26494c:0x19c,_0x174e8a:0xe4};function _0x2331a9(_0x3f5780,_0x291b76,_0x497b01,_0x508280){return _0x256f33(_0x3f5780,_0x291b76-0x1e3,_0x497b01- -_0x648104._0x26494c,_0x508280-_0x648104._0x174e8a);}return _0x38f1b1[_0x2331a9(0x149,0x277,_0x5b0b7a._0x25c7b3,0x1df)](0x0);}function detectEol(_0x39114b){const _0x5575f4={_0x5055d2:0x305,_0x37be8c:0x1be,_0x4707b2:0x378,_0x3a889b:0x349,_0x26896d:0x413},_0x4bf5e5={_0x461394:0x562,_0x541a31:0x139};function _0x2c6fe9(_0x4a465b,_0x5d991e,_0x45a398,_0x34e7e7){return _0x379285(_0x4a465b-0x1a1,_0x5d991e-0x431,_0x45a398-0xba,_0x34e7e7);}function _0x1acabe(_0x4f1514,_0x14d642,_0x12d4fd,_0x213f0b){return _0x256f33(_0x4f1514,_0x14d642-0x15d,_0x12d4fd- -_0x4bf5e5._0x461394,_0x213f0b-_0x4bf5e5._0x541a31);}return/\r\n/[_0x2c6fe9(_0x5575f4._0x5055d2,0x38c,0x3f9,0x35f)](_0x39114b['toString'](_0x1acabe(-_0x5575f4._0x37be8c,-0x143,-0x123,-0x18e)))?_0x2c6fe9(_0x5575f4._0x4707b2,0x36b,_0x5575f4._0x3a889b,_0x5575f4._0x26896d):'lf';}function normalizeToLf(_0x26dbc5){const _0x1a3169={_0xf6fc65:0x30e,_0x1bdd7:0x2da},_0x3d41f7={_0x5e1cd7:0x186};function _0x3c8dfe(_0x37794d,_0x26f29c,_0x32fe4b,_0x1a936d){return _0x256f33(_0x37794d,_0x26f29c-0x113,_0x1a936d- -0x1b9,_0x1a936d-_0x3d41f7._0x5e1cd7);}return _0x26dbc5[_0x3c8dfe(_0x1a3169._0xf6fc65,_0x1a3169._0x1bdd7,0x2b5,0x2a4)](/\r\n/g,'\x0a');}function convertEol(_0x117654,_0x513dcf){const _0x41f18d={_0x592fc0:0x32,_0x53906f:0xc0,_0x3e3534:0x1a,_0x2c96d8:0x82,_0x41bbbd:0x5b,_0x32aebe:0xdf},_0x347132={_0x254cf9:0x1ea,_0x37bb4e:0xc};function _0x479b64(_0x173e4a,_0x30e6d6,_0x4d088f,_0x54599d){return _0x379285(_0x173e4a-_0x347132._0x254cf9,_0x4d088f-0x223,_0x4d088f-_0x347132._0x37bb4e,_0x30e6d6);}function _0x365796(_0x3627da,_0x28e243,_0x3b4359,_0x4bb205){return _0x256f33(_0x28e243,_0x28e243-0x19f,_0x4bb205- -0x37e,_0x4bb205-0xce);}return _0x513dcf===_0x365796(0x48,-_0x41f18d._0x592fc0,-_0x41f18d._0x53906f,-_0x41f18d._0x3e3534)?_0x117654[_0x365796(_0x41f18d._0x2c96d8,_0x41f18d._0x41bbbd,0x78,_0x41f18d._0x32aebe)](/\n/g,'\x0d\x0a'):_0x117654;}async function atomicWrite(_0x4b64d6,_0x190759){const _0x5d4374={_0x2baef7:0x396,_0xef847d:0x36e,_0x517334:0x5b,_0x259c16:0x402,_0x580f54:0x3ea,_0x4b24cd:0x4a7,_0x3c146c:0x93,_0x358fab:0x1d,_0x16db3a:0x70,_0x4c89df:0x7b,_0x538af9:0x3ae,_0x487b15:0x2ed},_0x218db1={_0x5c1ce1:0xae,_0x9fcfd5:0xc0},_0x4887c6={_0x2fbb14:0x1e0,_0x486b02:0x93,_0x3a73b3:0x14b};function _0x2053db(_0x329731,_0x4b7432,_0xcc4143,_0xdeb2d0){return _0x379285(_0x329731-_0x4887c6._0x2fbb14,_0x329731- -_0x4887c6._0x486b02,_0xcc4143-_0x4887c6._0x3a73b3,_0xcc4143);}const _0x2c02fc=_0x53d907[_0x39a9ab(_0x5d4374._0x2baef7,_0x5d4374._0xef847d,0x344,0x2d8)](_0x4b64d6),_0x309e11=_0x53d907[_0x2053db(-0xe3,-_0x5d4374._0x517334,-0x9d,-0x9e)](_0x2c02fc,_0x39a9ab(0x483,_0x5d4374._0x259c16,_0x5d4374._0x580f54,_0x5d4374._0x4b24cd)+_0x53d907[_0x2053db(-_0x5d4374._0x3c146c,-0x19,-0x122,-_0x5d4374._0x358fab)](_0x4b64d6)+'.'+Date[_0x2053db(-_0x5d4374._0x16db3a,-0xab,-0xbc,-0x59)]()+'.'+Math[_0x2053db(-_0x5d4374._0x4c89df,-0x9f,-0x18,-0x105)]()['toString'](0x24)[_0x39a9ab(0x3cb,0x383,_0x5d4374._0x538af9,_0x5d4374._0x487b15)](0x2));await writeFile(_0x309e11,_0x190759);function _0x39a9ab(_0x2fd6e2,_0x577b7e,_0x14746a,_0x4cd3ee){return _0x379285(_0x2fd6e2-_0x218db1._0x5c1ce1,_0x577b7e-0x3fb,_0x14746a-_0x218db1._0x9fcfd5,_0x14746a);}await rename(_0x309e11,_0x4b64d6);}function sha256(_0x464b0a){const _0x2c7bbc={_0x53f21f:0xdd,_0x7ffa82:0x40,_0xa33529:0x76,_0x24bfbb:0x22b,_0x1d41b1:0xe9,_0x45d6ea:0xba},_0x2d6ee9={_0x2a4de5:0xad},_0xb67482={_0x8c1f54:0x5f,_0x3c7222:0x218};function _0xbd2345(_0x52b838,_0x55e858,_0x4c7261,_0x54d03e){return _0x256f33(_0x4c7261,_0x55e858-_0xb67482._0x8c1f54,_0x52b838- -_0xb67482._0x3c7222,_0x54d03e-0x150);}function _0x531612(_0x5f4070,_0x2b355d,_0x1e5aa3,_0x4acada){return _0x256f33(_0x1e5aa3,_0x2b355d-_0x2d6ee9._0x2a4de5,_0x5f4070- -0x31b,_0x4acada-0x1e8);}return createHash('sha256')[_0x531612(_0x2c7bbc._0x53f21f,_0x2c7bbc._0x7ffa82,0x132,_0x2c7bbc._0xa33529)](_0x464b0a)[_0xbd2345(0x1ff,_0x2c7bbc._0x24bfbb,0x152,0x172)](_0x531612(_0x2c7bbc._0x1d41b1,0x16d,0x177,_0x2c7bbc._0x45d6ea));}function countLines(_0x2678e1){const _0x2fac5c={_0x43cd69:0x35f,_0x290a79:0x23a,_0x3a0077:0x2ce,_0x6cf3d5:0x2db,_0x4d8035:0x25c,_0x1e9d52:0x182},_0x1795b5={_0x35f082:0x51},_0x144a57={_0x4793e8:0xf4},_0x3e38ef=_0x2678e1['replace'](/\n$/,'');function _0x4bc1b7(_0x3e7a4d,_0x3034d5,_0xa14fca,_0x33ef4a){return _0x256f33(_0x33ef4a,_0x3034d5-0x17b,_0x3e7a4d- -0x183,_0x33ef4a-_0x144a57._0x4793e8);}function _0x301ada(_0x2ba4fe,_0x1f6191,_0xe95bbc,_0x4b663c){return _0x256f33(_0x2ba4fe,_0x1f6191-_0x1795b5._0x35f082,_0x4b663c- -0x37,_0x4b663c-0xeb);}return _0x3e38ef[_0x301ada(_0x2fac5c._0x43cd69,_0x2fac5c._0x290a79,0x29e,_0x2fac5c._0x3a0077)]===0x0?0x0:_0x3e38ef[_0x4bc1b7(_0x2fac5c._0x6cf3d5,_0x2fac5c._0x4d8035,0x25f,0x274)]('\x0a')[_0x4bc1b7(_0x2fac5c._0x1e9d52,0x21c,0x215,0x211)];}function calculateLineNumbers(_0x285618,_0x21c1af,_0x7789b0,_0x542a38){const _0xd4e46c={_0x4b4a0d:0x4fe},_0x2cdc85={_0x506c41:0xc7,_0x1a6668:0x65},_0x5185e5=_0x285618['slice'](0x0,_0x542a38)[_0x25d772(_0xd4e46c._0x4b4a0d,0x507,0x4c3,0x44e)]('\x0a')['length'],_0x1d08a7=countLines(_0x21c1af),_0x47c396=countLines(_0x7789b0);function _0x25d772(_0x320163,_0x282cd8,_0x559785,_0x8e73ee){return _0x256f33(_0x282cd8,_0x282cd8-_0x2cdc85._0x506c41,_0x559785-_0x2cdc85._0x1a6668,_0x8e73ee-0x147);}return{'oldStartLine':_0x5185e5,'oldEndLine':_0x5185e5+_0x1d08a7-0x1,'newStartLine':_0x5185e5,'newEndLine':_0x5185e5+_0x47c396-0x1,'oldLineCount':_0x1d08a7,'newLineCount':_0x47c396};}function createFileEditTool(_0x568750={}){const _0x3f82ef={_0x5a85fe:0x52a,_0x357769:0x513,_0x352292:0x45d,_0x56b9f8:0x502,_0x68827:0x52d,_0x359949:0x634,_0x3c05a3:0x5c6,_0x342f8d:0x465,_0x4aeba6:0x3cf,_0x5b5e19:0x5c5,_0x3bbb99:0x584,_0x28367b:0x393,_0x4314f5:0x3a4,_0x25c9a5:0x348,_0x3cf51a:0x564,_0x34c24c:0x39b,_0x18521d:0x5b3,_0x29ac45:0x637,_0x53c998:0x602,_0x38ef1b:0x601},_0x27503a={_0x11dd50:0x55d,_0x592afd:0x4b7,_0x49877d:0x4ca,_0xd6f4ec:0x575,_0xf1ddf8:0x1a1,_0x577b33:0xa8,_0x2a1355:0x1c9,_0x2d8068:0x4cb,_0x33dbad:0x130,_0x1a1b88:0x1cd,_0xcc2a95:0x251,_0x33eea9:0x1d6,_0xeaac34:0x3f7,_0x3343c8:0x3f4,_0xa59309:0x425,_0x26ba25:0x539,_0x59757a:0x426,_0xebac8b:0x1fa,_0x4b500a:0x473,_0x45949f:0x497,_0x4767af:0x423,_0x5e76af:0x52e,_0x48f03f:0x5bf,_0x51f397:0x4e9,_0x5eb536:0x17f,_0x1371e8:0x1e1,_0x57735b:0x4c0,_0x4063db:0x4e4,_0x3cb320:0x30f,_0x4a4fd1:0x202,_0x50c7b5:0x123,_0x2ef34a:0x1bc,_0x3f5b85:0x4cc,_0x3c31b7:0x48b,_0x2ce55f:0x584,_0x15736c:0x59f,_0x2900d8:0x4d2,_0x1e51de:0x1ce,_0x22db3a:0x293,_0x3ed545:0x3f4,_0x168b17:0x404,_0x281391:0x218,_0x39d719:0x283,_0x358e7e:0x2fe,_0x13a58d:0x38a,_0x7a2c5d:0x473},_0x813bdc={_0x2d9d5c:0x16d,_0x2e79d4:0x10d},_0x11371a={_0x39e395:0x152,_0x4e1f2e:0x47c},_0x1cac3e={_0x5b3fc2:0x1fc},_0x10b224=_0x53d907[_0x29fb3e(_0x3f82ef._0x5a85fe,0x4a7,0x423,_0x3f82ef._0x357769)](_0x568750['defaultCwd']??process[_0x16b523(0x565,_0x3f82ef._0x352292,_0x3f82ef._0x56b9f8,_0x3f82ef._0x68827)]()),_0x4fff5b=_0x568750[_0x16b523(0x648,0x5d7,_0x3f82ef._0x359949,_0x3f82ef._0x3c05a3)]??_0x29fb3e(_0x3f82ef._0x342f8d,_0x3f82ef._0x4aeba6,0x3ac,0x356);function _0x16b523(_0x3179af,_0x12bb59,_0x4f6eb2,_0x3891ff){return _0x256f33(_0x3891ff,_0x12bb59-0x1dc,_0x4f6eb2-_0x1cac3e._0x5b3fc2,_0x3891ff-0x3f);}function _0x29fb3e(_0xefd89b,_0x2f799d,_0x5547e5,_0x350b0e){return _0x379285(_0xefd89b-_0x11371a._0x39e395,_0x2f799d-_0x11371a._0x4e1f2e,_0x5547e5-0x18d,_0x5547e5);}return defineTool({'name':_0x4fff5b,'description':_0x16b523(_0x3f82ef._0x5b5e19,0x61c,_0x3f82ef._0x3bbb99,0x611),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0x29fb3e(0x324,0x3aa,_0x3f82ef._0x28367b,0x3d5)},'oldText':{'type':_0x29fb3e(_0x3f82ef._0x4314f5,0x3aa,_0x3f82ef._0x25c9a5,0x325)},'newText':{'type':_0x16b523(0x5c7,_0x3f82ef._0x357769,0x554,_0x3f82ef._0x3cf51a)},'dryRun':{'type':_0x29fb3e(0x319,_0x3f82ef._0x34c24c,0x3e8,0x2f9)}},'required':[_0x16b523(0x668,0x658,0x5da,0x663),_0x16b523(0x5d4,_0x3f82ef._0x18521d,_0x3f82ef._0x29ac45,0x5c0),_0x16b523(0x6f6,_0x3f82ef._0x53c998,0x653,_0x3f82ef._0x38ef1b)]},async *'execute'(_0x1ca109){const _0xb0e14f={_0x994b9:0x1e5,_0x45fa56:0x784},_0x30082=resolveWorkspacePath(_0x10b224,_0x1ca109[_0x468dbb(_0x27503a._0x11dd50,0x4cd,_0x27503a._0x592afd,0x445)]);await assertWorkspaceFile(_0x30082);const _0x3e7898=await _0x45391b(_0x30082),_0x1c4605=await readFile(_0x30082);function _0x17f7d5(_0x1c2fef,_0x20d0f5,_0x536e7b,_0x3945a2){return _0x16b523(_0x1c2fef-_0xb0e14f._0x994b9,_0x20d0f5-0x1e1,_0x20d0f5- -_0xb0e14f._0x45fa56,_0x1c2fef);}const _0x47099d=detectEol(_0x1c4605),_0x2a720f=normalizeToLf(_0x1c4605[_0x468dbb(_0x27503a._0x49877d,0x4e0,_0x27503a._0xd6f4ec,0x49f)](_0x17f7d5(-0x111,-0x149,-_0x27503a._0xf1ddf8,-_0x27503a._0x577b33))),_0xd8cdb0=normalizeToLf(_0x1ca109[_0x17f7d5(-_0x27503a._0x2a1355,-0x14d,-0xf5,-0x114)]),_0x41b94c=normalizeToLf(_0x1ca109[_0x468dbb(_0x27503a._0x2d8068,0x546,0x4ed,0x595)]),_0x2effa5=_0x2a720f[_0x17f7d5(-0x12d,-_0x27503a._0x33dbad,-0x123,-_0x27503a._0x1a1b88)](_0xd8cdb0);if(_0x2effa5===-0x1){const _0x51838a=_0xd8cdb0[_0x17f7d5(-_0x27503a._0xcc2a95,-_0x27503a._0x33eea9,-0x249,-0x19d)](0x0,0x64)['replace'](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x51838a+(_0xd8cdb0[_0x468dbb(_0x27503a._0xeaac34,_0x27503a._0x3343c8,0x403,_0x27503a._0xa59309)]>0x64?_0x468dbb(_0x27503a._0x26ba25,0x49b,_0x27503a._0x59757a,0x4d7):'')+'\x22',{'filePath':_0x1ca109['filePath']});}function _0x468dbb(_0x42a782,_0x1e48a6,_0xaa1c7c,_0x3ebf8d){return _0x16b523(_0x42a782-_0x813bdc._0x2d9d5c,_0x1e48a6-0x129,_0x1e48a6- -_0x813bdc._0x2e79d4,_0xaa1c7c);}const _0xd2a920=_0x2a720f['slice'](0x0,_0x2effa5)+_0x41b94c+_0x2a720f[_0x17f7d5(-0x1e1,-0x1d6,-_0x27503a._0xebac8b,-0x21b)](_0x2effa5+_0xd8cdb0[_0x468dbb(_0x27503a._0x4b500a,0x3f4,_0x27503a._0x45949f,_0x27503a._0x4767af)]),_0x1b79d1=convertEol(_0xd2a920,_0x47099d),_0x3923bc=Buffer['from'](_0x1b79d1,_0x468dbb(0x505,_0x27503a._0x5e76af,_0x27503a._0x48f03f,_0x27503a._0x51f397)),_0x114a7c=sha256(_0x1c4605),_0x2fb23e=sha256(_0x3923bc),_0x296daf=_0x114a7c===_0x2fb23e,_0x1b6d89=_0x1ca109[_0x17f7d5(-_0x27503a._0x5eb536,-_0x27503a._0x1371e8,-0x250,-0x24b)]??![];return!_0x1b6d89&&!_0x296daf&&await atomicWrite(_0x30082,_0x3923bc),yield createToolOutput(_0x296daf?'No\x20changes\x20(content\x20identical).':_0x1b6d89?_0x468dbb(_0x27503a._0x57735b,_0x27503a._0x4063db,0x53b,0x44c):_0x17f7d5(-0x260,-0x26c,-_0x27503a._0x3cb320,-0x249),{'filePath':_0x1ca109[_0x17f7d5(-_0x27503a._0x4a4fd1,-0x1aa,-_0x27503a._0x50c7b5,-_0x27503a._0x2ef34a)],'resolvedPath':_0x30082,'created':_0x3e7898[_0x468dbb(0x45d,_0x27503a._0x3f5b85,0x4e3,_0x27503a._0x3c31b7)][_0x468dbb(_0x27503a._0x2ce55f,0x524,_0x27503a._0x15736c,_0x27503a._0x2900d8)](),'modified':_0x3e7898['mtime']['toISOString'](),'size':_0x3e7898[_0x17f7d5(-_0x27503a._0x1e51de,-0x236,-0x1d9,-_0x27503a._0x22db3a)],'eol':_0x47099d,'oldTextLength':_0xd8cdb0[_0x468dbb(0x44e,_0x27503a._0x3ed545,_0x27503a._0x168b17,0x349)],'newTextLength':_0x41b94c[_0x17f7d5(-_0x27503a._0x281391,-_0x27503a._0x39d719,-_0x27503a._0x358e7e,-0x332)],'bytesWritten':_0x296daf||_0x1b6d89?0x0:_0x3923bc[_0x468dbb(_0x27503a._0x13a58d,0x3f4,0x347,_0x27503a._0x7a2c5d)],'beforeSha':_0x114a7c,'afterSha':_0x2fb23e,'dryRun':_0x1b6d89,'noChange':_0x296daf,'lineNumbers':calculateLineNumbers(_0x2a720f,_0xd8cdb0,_0x41b94c,_0x2effa5)}),void 0x0;}});}import{mkdir,rename as _0xe33de0,stat as _0x975f79,writeFile as _0x53331e}from'fs/promises';import*as _0x160027 from'path';async function atomicWrite2(_0x3a0976,_0x1e5da3){const _0x33c6c2={_0x14a13d:0x537,_0x305a16:0x305,_0x3abe45:0x36e,_0x1ea67d:0x5a3,_0x4824da:0x3f7,_0x4415f9:0x38a,_0x3e7903:0x429,_0x3580f3:0x423,_0x367ae3:0x37f,_0x1dd14d:0x58b,_0x1f041e:0x540,_0x94d72a:0x25f,_0x38a81b:0x298},_0x156a70={_0xd8a2a:0xc3,_0x1856e5:0x167},_0x316f8f={_0x442260:0x5c4};function _0x23f566(_0x5f161b,_0x232ce9,_0x50a87b,_0x3e8834){return _0x379285(_0x5f161b-0x1a3,_0x5f161b-_0x316f8f._0x442260,_0x50a87b-0x76,_0x50a87b);}const _0xa804d4=_0x160027[_0x23f566(_0x33c6c2._0x14a13d,0x4f5,0x4b9,0x4bb)](_0x3a0976);await mkdir(_0xa804d4,{'recursive':!![]});function _0x333183(_0x2a2639,_0x2ddcd5,_0x20670c,_0xa9f070){return _0x256f33(_0x20670c,_0x2ddcd5-0xb3,_0xa9f070- -_0x156a70._0xd8a2a,_0xa9f070-_0x156a70._0x1856e5);}const _0x42ade8=_0x160027['join'](_0xa804d4,_0x333183(0x3ce,_0x33c6c2._0x305a16,0x36a,_0x33c6c2._0x3abe45)+_0x160027[_0x23f566(0x5c4,_0x33c6c2._0x1ea67d,0x64e,0x588)](_0x3a0976)+'.'+Date[_0x333183(_0x33c6c2._0x4824da,0x41a,0x3ca,_0x33c6c2._0x4415f9)]()+'.'+Math[_0x333183(_0x33c6c2._0x3e7903,0x344,_0x33c6c2._0x3580f3,_0x33c6c2._0x367ae3)]()[_0x23f566(_0x33c6c2._0x1dd14d,_0x33c6c2._0x1f041e,0x612,0x594)](0x24)[_0x333183(_0x33c6c2._0x94d72a,_0x33c6c2._0x38a81b,0x293,0x2ef)](0x2));await _0x53331e(_0x42ade8,_0x1e5da3),await _0xe33de0(_0x42ade8,_0x3a0976);}function createFileNewTool(_0xb81aa={}){const _0xce4127={_0xc580f4:0x4b9,_0x3906d7:0x53a,_0x380622:0x49d,_0x24640b:0x1d0,_0x1df666:0x4e6,_0x28690f:0x4dc,_0x35ef1e:0x32c,_0x1eee09:0x2f5,_0x5bb934:0x2e6,_0x39b05b:0x31c,_0x520a70:0x30d,_0x3161e7:0x2f3,_0x52e5aa:0x443,_0x3e650a:0x2da,_0x3c9a9d:0x2ef,_0x298084:0x284},_0x2ccefc={_0x13911c:0x1fb,_0x45d577:0x1cd,_0x2792ab:0x1e5,_0x56d741:0x180,_0x179116:0x19b,_0x100df6:0x174,_0x392575:0x4b7,_0x192591:0x430,_0x5d0601:0x3d3,_0x11eb60:0x4d9,_0x859a61:0x3a8,_0x444bd4:0x247,_0x535b61:0x19c,_0x2d8689:0x32e,_0x591463:0x346,_0x51767c:0x4c4,_0x1d68bd:0x35d,_0x3b6b37:0x3c3,_0x214734:0x18b,_0x46d30c:0x145,_0x1aafbe:0x178,_0x1869af:0xb8},_0x56e25f={_0x19731f:0x199},_0x3dd7a2={_0x231096:0xa3,_0x48bc85:0x154,_0x58b9f0:0x155},_0x5e26a4=_0x160027[_0x9590c8(_0xce4127._0xc580f4,_0xce4127._0x3906d7,_0xce4127._0x380622,0x4aa)](_0xb81aa[_0x9590c8(0x3de,0x3ae,0x409,0x41a)]??process[_0x22ec8d(0x1a4,_0xce4127._0x24640b,0x129,0x1b2)]());function _0x22ec8d(_0x1479f2,_0x1dd9f7,_0x187be7,_0x47e0b1){return _0x256f33(_0x1dd9f7,_0x1dd9f7-_0x3dd7a2._0x231096,_0x47e0b1- -_0x3dd7a2._0x48bc85,_0x47e0b1-_0x3dd7a2._0x58b9f0);}const _0x450649=_0xb81aa[_0x9590c8(_0xce4127._0x1df666,_0xce4127._0x28690f,0x480,0x46a)]??_0x9590c8(0x41a,_0xce4127._0x35ef1e,0x3d5,0x333);function _0x9590c8(_0x1cc969,_0x5ce6bc,_0x59e6f6,_0x130192){return _0x379285(_0x1cc969-0x10e,_0x59e6f6-0x472,_0x59e6f6-0xf2,_0x5ce6bc);}return defineTool({'name':_0x450649,'description':_0x22ec8d(0x2f4,0x365,_0xce4127._0x1eee09,_0xce4127._0x5bb934),'inputSchema':{'type':_0x22ec8d(_0xce4127._0x39b05b,_0xce4127._0x520a70,_0xce4127._0x3161e7,0x2aa),'properties':{'filePath':{'type':'string'},'content':{'type':_0x9590c8(0x2fd,_0xce4127._0x52e5aa,0x3a0,0x43f)}},'required':['filePath',_0x22ec8d(_0xce4127._0x3e650a,0x2e2,_0xce4127._0x3c9a9d,_0xce4127._0x298084)]},async *'execute'(_0x4488d2){const _0x23cd80={_0x39da50:0x5c2,_0x23e1f1:0x1f2},_0x12b3c0=resolveWorkspacePath(_0x5e26a4,_0x4488d2[_0x22d873(-0x22f,-0x19c,-_0x2ccefc._0x13911c,-0x17d)]),_0x49295e=await _0x975f79(_0x12b3c0)[_0x22d873(-_0x2ccefc._0x45d577,-0x1c9,-0x1e8,-0x253)](()=>!![])[_0x22d873(-_0x2ccefc._0x2792ab,-_0x2ccefc._0x56d741,-0x1e1,-_0x2ccefc._0x179116)](()=>![]);function _0x1afc9a(_0x38a6bd,_0x35124b,_0x4b5749,_0x4ef0dc){return _0x22ec8d(_0x38a6bd-_0x56e25f._0x19731f,_0x4b5749,_0x4b5749-0x10b,_0x35124b-0x1ac);}const _0x2354cf=Buffer[_0x22d873(-_0x2ccefc._0x100df6,-0x161,-0x20d,-0xef)](_0x4488d2[_0x1afc9a(_0x2ccefc._0x392575,_0x2ccefc._0x192591,0x428,0x41a)],'utf8');await atomicWrite2(_0x12b3c0,_0x2354cf),yield createToolOutput(_0x1afc9a(_0x2ccefc._0x5d0601,0x43a,_0x2ccefc._0x11eb60,_0x2ccefc._0x859a61)+_0x4488d2[_0x22d873(-_0x2ccefc._0x444bd4,-_0x2ccefc._0x535b61,-0x19e,-0x1b9)]+'.',{'filePath':_0x4488d2['filePath'],'resolvedPath':_0x12b3c0,'bytes':_0x2354cf[_0x1afc9a(0x3ee,0x35d,_0x2ccefc._0x2d8689,_0x2ccefc._0x591463)],'lines':_0x4488d2[_0x22d873(-0x155,-0x1a2,-0x105,-0x194)][_0x1afc9a(0x498,0x4b6,_0x2ccefc._0x51767c,0x520)](/\r?\n/)[_0x1afc9a(_0x2ccefc._0x5d0601,_0x2ccefc._0x1d68bd,0x364,_0x2ccefc._0x3b6b37)],'created':new Date()[_0x22d873(-_0x2ccefc._0x214734,-_0x2ccefc._0x46d30c,-_0x2ccefc._0x1aafbe,-_0x2ccefc._0x1869af)](),'overwritten':_0x49295e});function _0x22d873(_0x17f6ca,_0x35fe3f,_0x3c0526,_0x831eb6){return _0x9590c8(_0x17f6ca-0x105,_0x3c0526,_0x35fe3f- -_0x23cd80._0x39da50,_0x831eb6-_0x23cd80._0x23e1f1);}return void 0x0;}});}import{readFile as _0x249222,stat as _0x28098d}from'fs/promises';import*as _0x4c0422 from'path';function stripUtfBom(_0x5957ab){const _0x252139={_0xb48936:0x625,_0x1443f1:0x5ce,_0x2130b5:0x604},_0x24b5b4={_0x21b8d2:0x646,_0x4eea22:0x94};function _0x55a847(_0x348cdd,_0x3c4b90,_0x2aa521,_0x34efb2){return _0x379285(_0x348cdd-0xab,_0x3c4b90-_0x24b5b4._0x21b8d2,_0x2aa521-_0x24b5b4._0x4eea22,_0x348cdd);}return _0x5957ab['charCodeAt'](0x0)===0xfeff?_0x5957ab[_0x55a847(_0x252139._0xb48936,_0x252139._0x1443f1,_0x252139._0x2130b5,0x673)](0x1):_0x5957ab;}function clampLine(_0x271f6a,_0x228ba1){const _0x8adca3={_0x33692e:0x68,_0xba5115:0x184,_0x15607c:0x125,_0x389f8f:0x144,_0x1e1b32:0x1dc},_0x23139c={_0x3bc0ec:0x515};function _0x1fe826(_0xb287e,_0x460424,_0x2980be,_0x2e269a){return _0x256f33(_0x2980be,_0x460424-0x131,_0x2e269a- -0x4e6,_0x2e269a-0xdc);}function _0x382924(_0x36a363,_0x5f295c,_0x500114,_0x484f6a){return _0x256f33(_0x484f6a,_0x5f295c-0xa7,_0x500114- -_0x23139c._0x3bc0ec,_0x484f6a-0xf0);}if(!Number[_0x1fe826(-_0x8adca3._0x33692e,-_0x8adca3._0xba5115,-0x167,-0xe9)](_0x271f6a))return 0x1;return Math[_0x382924(-0x1ae,-0xb0,-_0x8adca3._0x15607c,-0x1d4)](0x1,Math[_0x1fe826(-0x91,-0x35,-0x9,-0x96)](Math[_0x382924(-0x23d,-_0x8adca3._0x389f8f,-_0x8adca3._0x1e1b32,-0x238)](_0x271f6a),_0x228ba1));}function createFileReadTool(_0x5648b0={}){const _0x235b9f={_0x596b00:0x200,_0x1d9d5f:0x74,_0x4e5e1f:0x11,_0x4db706:0xe4,_0x1e5ecd:0xdf,_0x23076b:0x7f,_0x39c0f0:0xc4,_0x303271:0xd8,_0x923f42:0x4b,_0x989bb6:0x34,_0x277d93:0x1bc,_0x478a06:0x17d,_0x3f8aa5:0x20e,_0x1e26fc:0x62,_0x5a1a8b:0x108,_0x2f6812:0x67},_0x396799={_0x8f3abc:0x22,_0x8a7dda:0x64,_0x27ac2e:0x62,_0x2b5749:0x8b,_0x1da447:0x83,_0x3e2499:0xb3,_0x180097:0x22,_0x386276:0x17,_0x1cf623:0x4e,_0x32c9fa:0x1db,_0x466e9f:0x16d,_0x565b79:0xcf,_0x10a23b:0xa2,_0x2b5227:0x39,_0x447fe9:0xfe,_0x11c8d8:0x132,_0x4c4d63:0x11b,_0x45dbab:0xf0,_0x181f9d:0x2e,_0x4d4de5:0x4c,_0x37adb7:0x50,_0x118a88:0x14d,_0x2604eb:0x1c0,_0x5495bc:0x19d,_0x3c9b85:0xb5,_0x486f98:0x9d,_0x40fed4:0x102,_0x332a33:0xdc,_0x1bf335:0xba,_0x255bf8:0x37,_0x223a31:0xce,_0x24db21:0x40,_0x1335d3:0x7f,_0x44631b:0x9a,_0x2104dc:0x47,_0x8f92f:0x115,_0x4314cd:0x6c,_0x2ff2d7:0x46,_0x2b859c:0x189,_0xc62ecd:0xdb,_0x343ea0:0xa4,_0x12050f:0xa9,_0x3d3e3a:0x15,_0xcc201e:0x74,_0x5f3f01:0x160,_0x49ec77:0xf4,_0x32a04a:0x100,_0x52dcc8:0x116,_0x378f70:0x52},_0x14ad0f={_0x528f65:0x1b},_0x58647c={_0x1d054f:0x134},_0x16020d=_0x4c0422['resolve'](_0x5648b0[_0x46edce(0x17b,0x13a,_0x235b9f._0x596b00,0x1c1)]??process[_0x342b0b(0x3d,-_0x235b9f._0x1d9d5f,0x29,-0x1c)]());function _0x342b0b(_0x1661f3,_0x220127,_0x4ad652,_0x430b70){return _0x379285(_0x1661f3-0x66,_0x4ad652-0x14d,_0x4ad652-_0x58647c._0x1d054f,_0x1661f3);}const _0x2dc893=_0x5648b0['name']??_0x342b0b(_0x235b9f._0x4e5e1f,0x55,0x81,_0x235b9f._0x4db706);function _0x46edce(_0x2376d3,_0x365210,_0xad8b3e,_0x4b0815){return _0x256f33(_0x365210,_0x365210-0x1bc,_0x4b0815- -0x200,_0x4b0815-_0x14ad0f._0x528f65);}return defineTool({'name':_0x2dc893,'description':_0x46edce(0x17c,0xb2,_0x235b9f._0x1e5ecd,0x102),'inputSchema':{'type':_0x342b0b(_0x235b9f._0x23076b,_0x235b9f._0x39c0f0,0x121,0x124),'properties':{'path':{'type':_0x342b0b(_0x235b9f._0x303271,_0x235b9f._0x923f42,0x7b,_0x235b9f._0x989bb6)},'lineStart':{'type':'number'},'lineEnd':{'type':_0x46edce(_0x235b9f._0x277d93,_0x235b9f._0x478a06,0x1d3,_0x235b9f._0x3f8aa5)}},'required':[_0x342b0b(_0x235b9f._0x1e26fc,0x1a4,_0x235b9f._0x5a1a8b,_0x235b9f._0x2f6812)]},async *'execute'(_0x4d0236){const _0x4ae0d6={_0x416d52:0x1d2,_0x2f9b6b:0x13,_0x341ee7:0x1e6},_0x38d5bf={_0x4e63de:0x207},_0x355850=resolveWorkspacePath(_0x16020d,_0x4d0236[_0x169ac4(-_0x396799._0x8f3abc,_0x396799._0x8a7dda,_0x396799._0x27ac2e,_0x396799._0x2b5749)]);await assertWorkspaceFile(_0x355850);const _0x1e5aff=await _0x28098d(_0x355850),_0x185022=await _0x249222(_0x355850);if(isProbablyBinary(_0x185022))throw new ToolExecutionError(_0x169ac4(-0xf6,-_0x396799._0x1da447,-0x6b,-_0x396799._0x3e2499)+_0x4d0236['path'],{'path':_0x4d0236[_0x169ac4(-_0x396799._0x180097,-_0x396799._0x386276,-0x9e,0x4c)]});let _0x2d66ff=_0x185022[_0x169ac4(-0x16,_0x396799._0x1cf623,0x41,-0x10)](_0xe4489e(0x14f,_0x396799._0x32c9fa,_0x396799._0x466e9f,_0x396799._0x565b79));const _0x3478b9=_0x2d66ff[_0xe4489e(0x73,0x2,_0x396799._0x10a23b,_0x396799._0x2b5227)](0x0)===0xfeff;function _0x169ac4(_0x7b9342,_0x278585,_0x1d6c6b,_0x43c56c){return _0x46edce(_0x7b9342-0x18c,_0x278585,_0x1d6c6b-0x30,_0x7b9342- -_0x38d5bf._0x4e63de);}_0x2d66ff=stripUtfBom(_0x2d66ff);const _0x2508ad=_0x2d66ff[_0xe4489e(0x16e,0x1b6,_0x396799._0x447fe9,_0x396799._0x11c8d8)](/\r?\n/),_0x4b68a7={'path':_0x4d0236[_0xe4489e(0xf5,0x18d,_0x396799._0x4c4d63,_0x396799._0x45dbab)],'resolvedPath':_0x355850,'created':_0x1e5aff['birthtime'][_0x169ac4(_0x396799._0x181f9d,_0x396799._0x4d4de5,0xc8,-_0x396799._0x37adb7)](),'modified':_0x1e5aff[_0xe4489e(_0x396799._0x118a88,0x124,_0x396799._0x2604eb,0x159)][_0xe4489e(0x145,0x19a,0x1f2,_0x396799._0x5495bc)](),'size':_0x1e5aff[_0x169ac4(-_0x396799._0x3c9b85,-0xbb,-_0x396799._0x486f98,-0xc5)],'encoding':'utf8','bomStripped':_0x3478b9,'truncated':![],'totalLines':_0x2508ad[_0x169ac4(-_0x396799._0x40fed4,-0x95,-_0x396799._0x332a33,-_0x396799._0x1bf335)]};if(_0x4d0236[_0xe4489e(_0x396799._0x255bf8,_0x396799._0x223a31,0x1c,-_0x396799._0x24db21)]!==void 0x0||_0x4d0236[_0x169ac4(0x1,-_0x396799._0x1335d3,_0x396799._0x44631b,-0x5d)]!==void 0x0){const _0x2f3ccf=clampLine(_0x4d0236[_0x169ac4(-0xe0,-_0x396799._0x2104dc,-_0x396799._0x8f92f,-_0x396799._0x4314cd)]??0x1,_0x2508ad[_0xe4489e(0x15,-_0x396799._0x2ff2d7,0x1d,0x40)]),_0x3e2c9b=clampLine(_0x4d0236[_0xe4489e(0x118,0xf4,_0x396799._0x2b859c,_0x396799._0xc62ecd)]??_0x2508ad[_0x169ac4(-_0x396799._0x40fed4,-0x1af,-_0x396799._0x343ea0,-_0x396799._0x12050f)],_0x2508ad[_0xe4489e(_0x396799._0x3d3e3a,_0x396799._0xcc201e,0xf,0x37)]),_0x36fee4=Math[_0xe4489e(_0x396799._0x5f3f01,0x1ba,0x1c4,_0x396799._0x49ec77)](_0x2f3ccf,_0x3e2c9b),_0x4ccdbb=Math[_0xe4489e(_0x396799._0x32a04a,0x61,0x196,0x62)](_0x2f3ccf,_0x3e2c9b),_0x4ddd38=_0x2508ad[_0x169ac4(-0x55,-0x6b,-0x6f,-0x46)](_0x36fee4-0x1,_0x4ccdbb)[_0xe4489e(0x86,_0x396799._0x52dcc8,_0x396799._0x378f70,0x3d)]((_0x1a2ecb,_0x41a4f7)=>_0x36fee4+_0x41a4f7+'|'+_0x1a2ecb)['join']('\x0a');return yield createToolOutput(_0x4ddd38,{..._0x4b68a7,'lineRange':{'lineStart':_0x36fee4,'lineEnd':_0x4ccdbb,'linesTotal':_0x2508ad['length']}}),void 0x0;}function _0xe4489e(_0x18c74d,_0x575338,_0x2e5afc,_0x372db6){return _0x342b0b(_0x575338,_0x575338-_0x4ae0d6._0x416d52,_0x18c74d- -_0x4ae0d6._0x2f9b6b,_0x372db6-_0x4ae0d6._0x341ee7);}return yield createToolOutput(_0x2d66ff,_0x4b68a7),void 0x0;}});}import{stat as _0x7d6eb9}from'fs/promises';import*as _0xf57af5 from'path';import{execSync,spawn as _0x4b517b}from'child_process';import{existsSync}from'fs';function _0x256f33(_0x23ce33,_0x4ff4eb,_0x48f723,_0x20145a){return _0x3e7e(_0x48f723-0x1c8,_0x23ce33);}import{stat as _0x57e0fb}from'fs/promises';import*as _0xde0cd4 from'os';import*as _0x40b7d0 from'path';import{rgPath as _0x221eff}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x30c326={_0x210e5d:0x249,_0xa62251:0x249,_0x16ccfd:0x23b,_0x815e7a:0x38a,_0x54b361:0x429,_0x34b676:0x3e2,_0x5b7f1d:0x37c,_0x5e4083:0x3fb,_0x5aeda8:0x42a,_0x54d0e1:0x39f,_0x12255e:0x3be,_0x2c4997:0x2ca,_0x100833:0x20d,_0xb247e6:0x137,_0x4aad52:0x17e,_0x1cd2d0:0x1cf,_0x445bf9:0xff,_0x442e8b:0x18c,_0x2d5f52:0x2f3,_0x3ab0da:0x2d8,_0x441ef0:0x337,_0x12b0f1:0x35a,_0x433411:0x403,_0x4151f5:0x1e1,_0x3054e2:0x259,_0x3d7469:0x2d8,_0x27dce3:0x2c6,_0x253543:0x2c2,_0x28c367:0x298,_0x3e4431:0x34e,_0x1cb5df:0x244,_0x5826ec:0x16e,_0x726928:0x265,_0xc1dae7:0x250,_0x3a2b8c:0x182,_0x428ae9:0x24c,_0x48ac25:0x1b2,_0x56ece4:0x241,_0x380148:0x33c,_0x2354b8:0x3e3,_0x507330:0x435,_0x2b8df9:0x47e,_0x27af3a:0x366,_0x32236b:0x414,_0xc8ad43:0x1d4,_0x5d332f:0x279,_0x39f384:0x1ea,_0x4d1a7c:0x341,_0x75ff67:0x337},_0x54d5f3={_0x5493f3:0x1a7,_0x2cf6a5:0x3da},_0x1a99e4={_0x4df8a4:0x48,_0x4c9e27:0xfc};function _0x3d6aa7(_0x16beda,_0x4b4db1,_0x226314,_0x221d3f){return _0x256f33(_0x4b4db1,_0x4b4db1-_0x1a99e4._0x4df8a4,_0x221d3f- -0x558,_0x221d3f-_0x1a99e4._0x4c9e27);}const _0x5160e1=_0xde0cd4[_0x362b44(0x2dc,0x2de,0x288,0x2b5)]()===_0x3d6aa7(-0x1ae,-_0x30c326._0x210e5d,-_0x30c326._0xa62251,-_0x30c326._0x16ccfd),_0xf0b8e6=_0x5160e1?[_0x40b7d0[_0x362b44(0x2f4,_0x30c326._0x815e7a,_0x30c326._0x54b361,0x3b2)](process[_0x362b44(_0x30c326._0x34b676,_0x30c326._0x5b7f1d,0x35f,0x3a3)][_0x362b44(0x3cf,_0x30c326._0x5e4083,0x3ca,_0x30c326._0x5aeda8)]||'',_0x362b44(_0x30c326._0x54d0e1,0x3dd,_0x30c326._0x12255e,0x3da),'WinGet',_0x362b44(0x3f1,0x352,0x2e1,_0x30c326._0x2c4997)),_0x40b7d0[_0x3d6aa7(-_0x30c326._0x100833,-_0x30c326._0xb247e6,-0x133,-_0x30c326._0x4aad52)](process[_0x3d6aa7(-_0x30c326._0x1cd2d0,-0x1ef,-_0x30c326._0x445bf9,-_0x30c326._0x442e8b)][_0x362b44(0x2a1,0x301,0x31d,_0x30c326._0x2d5f52)]||'',_0x362b44(0x317,_0x30c326._0x3ab0da,0x314,_0x30c326._0x441ef0),'rg.exe'),_0x40b7d0[_0x362b44(0x3c0,0x38a,_0x30c326._0x12b0f1,_0x30c326._0x433411)](process[_0x3d6aa7(-_0x30c326._0x4151f5,-0x1ea,-0x210,-_0x30c326._0x442e8b)]['ProgramFiles(x86)']||'',_0x362b44(_0x30c326._0x3054e2,_0x30c326._0x3d7469,_0x30c326._0x27dce3,0x35f),_0x362b44(_0x30c326._0x253543,0x334,_0x30c326._0x28c367,_0x30c326._0x3e4431))]:[_0x3d6aa7(-0x17c,-0x1be,-_0x30c326._0x1cb5df,-0x1d1),_0x3d6aa7(-_0x30c326._0x5826ec,-0x19d,-0x17c,-0x109),_0x3d6aa7(-_0x30c326._0x726928,-_0x30c326._0xc1dae7,-_0x30c326._0x3a2b8c,-0x210),'/bin/rg'];for(const _0xedd34d of _0xf0b8e6){if(existsSync(_0xedd34d))return _0xedd34d;}try{const _0x22e679=_0x5160e1?_0x3d6aa7(-0x2a7,-_0x30c326._0x428ae9,-_0x30c326._0x48ac25,-_0x30c326._0x56ece4):_0x362b44(_0x30c326._0x380148,_0x30c326._0x2354b8,_0x30c326._0x507330,_0x30c326._0x2b8df9),_0x59338a=execSync(_0x22e679,{'encoding':'utf8','stdio':['pipe',_0x362b44(0x33a,_0x30c326._0x27af3a,0x3a4,_0x30c326._0x32236b),_0x3d6aa7(-_0x30c326._0xc8ad43,-0x1dd,-_0x30c326._0x5d332f,-_0x30c326._0x39f384)]})[_0x362b44(0x380,_0x30c326._0x4d1a7c,0x3c8,_0x30c326._0x75ff67)]()['split'](/\r?\n/)[0x0];if(_0x59338a&&existsSync(_0x59338a))return _0x59338a;}catch{return null;}function _0x362b44(_0x1f5b26,_0x34c151,_0x1e6f16,_0x3820f6){return _0x379285(_0x1f5b26-_0x54d5f3._0x5493f3,_0x34c151-_0x54d5f3._0x2cf6a5,_0x1e6f16-0x92,_0x1f5b26);}return null;}async function filepath(){const _0x483e74={_0x1080be:0x319,_0xe880c0:0x29a},_0x43caf6={_0x39ac02:0x150,_0x191d03:0x13f,_0x426d71:0x177};if(cachedRgPath)return cachedRgPath;function _0x375b15(_0x407126,_0x595ed5,_0x33337b,_0x57cb8b){return _0x256f33(_0x595ed5,_0x595ed5-_0x43caf6._0x39ac02,_0x57cb8b- -_0x43caf6._0x191d03,_0x57cb8b-_0x43caf6._0x426d71);}if(_0x221eff&&existsSync(_0x221eff))return cachedRgPath=_0x221eff,_0x221eff;const _0x45f7f7=findSystemRipgrep();if(!_0x45f7f7)throw new Error(_0x375b15(_0x483e74._0x1080be,0x2e2,0x207,_0x483e74._0xe880c0));return cachedRgPath=_0x45f7f7,_0x45f7f7;}async function*files(_0xcae39f){const _0x41cc96={_0x9a4a6a:0x40d,_0x549aea:0x591,_0x41fa5a:0x5f4,_0xee1990:0x4fa,_0x5e49b6:0x444,_0x4c701b:0x493,_0x189ff7:0x5d1,_0x1b73b9:0x51a,_0x3adb82:0x4d1,_0x24876c:0x5f5,_0x3d74b7:0x528,_0x51ee6d:0x5f2,_0x346bf8:0x62d,_0x5d6256:0x533,_0x28750b:0x500,_0x421db3:0x5a5,_0x14e288:0x62a,_0x322ca5:0x5f4,_0x28e4f8:0x455,_0x4ea5c2:0x56d,_0xb3000a:0x49b,_0x1ea424:0x511,_0x19ddc0:0x58c,_0x1fbc3e:0x58f,_0x5f1633:0x559,_0x49cb95:0x5e4,_0x2f0c6d:0x566,_0x544c20:0x4e4,_0x5105d7:0x583,_0x51304b:0x458,_0x4cc5f0:0x492,_0x138890:0x443,_0x9b3e5c:0x3fa,_0x418bb4:0x435,_0x940486:0x51f,_0x585147:0x549,_0x26802d:0x4d4,_0x403fab:0x4ce,_0x4e3a0d:0x4cf},_0x26a3f5={_0x1e65e1:0x198},_0x2e43b1=await filepath(),_0x4fc8ae=await _0x57e0fb(_0xcae39f[_0x4ce764(_0x41cc96._0x9a4a6a,0x4c6,0x444,0x3f7)])['catch'](()=>null);if(!_0x4fc8ae?.['isDirectory']())throw Object[_0x6f333b(_0x41cc96._0x549aea,0x67c,0x5e4,_0x41cc96._0x41fa5a)](new Error(_0x6f333b(0x59d,0x4b7,_0x41cc96._0xee1990,0x4b7)+_0xcae39f[_0x4ce764(0x3b2,0x4a5,_0x41cc96._0x5e49b6,_0x41cc96._0x4c701b)]+'\x27'),{'code':'ENOENT'});const _0x56dc8e=['--files',_0x4ce764(_0x41cc96._0x189ff7,_0x41cc96._0x1b73b9,0x53d,_0x41cc96._0x3adb82),_0x6f333b(_0x41cc96._0x24876c,_0x41cc96._0x3d74b7,0x56d,_0x41cc96._0x51ee6d),_0x4ce764(_0x41cc96._0x346bf8,_0x41cc96._0x5d6256,0x581,0x5bb)];for(const _0x482584 of _0xcae39f[_0x6f333b(0x561,0x497,_0x41cc96._0x28750b,0x58d)]??[]){_0x56dc8e[_0x6f333b(_0x41cc96._0x421db3,_0x41cc96._0x14e288,_0x41cc96._0x322ca5,0x65b)](_0x4ce764(0x44b,0x451,0x474,_0x41cc96._0x28e4f8)+_0x482584);}const _0x5aed23=_0x4b517b(_0x2e43b1,_0x56dc8e,{'cwd':_0xcae39f['cwd'],'stdio':[_0x6f333b(_0x41cc96._0x4ea5c2,_0x41cc96._0xb3000a,_0x41cc96._0x1ea424,0x5aa),_0x6f333b(_0x41cc96._0x19ddc0,0x55a,0x559,0x543),_0x6f333b(_0x41cc96._0x1fbc3e,0x4fb,_0x41cc96._0x5f1633,_0x41cc96._0x49cb95)]});function _0x4ce764(_0x71b08c,_0x1e1e6d,_0x5cca31,_0x5b5de3){return _0x379285(_0x71b08c-0xd2,_0x5cca31-0x568,_0x5cca31-0x19b,_0x71b08c);}let _0xf899c='';for await(const _0x15b94e of _0x5aed23['stdout']??[]){_0xf899c+=_0x15b94e[_0x6f333b(0x5c8,_0x41cc96._0x2f0c6d,0x594,0x62c)]();const _0x11ff72=_0xf899c['split'](/\r?\n/);_0xf899c=_0x11ff72[_0x4ce764(0x50b,_0x41cc96._0x544c20,_0x41cc96._0x5105d7,0x5d5)]()??'';for(const _0x1e5e53 of _0x11ff72){if(_0x1e5e53[_0x4ce764(_0x41cc96._0x51304b,_0x41cc96._0x4cc5f0,_0x41cc96._0x138890,_0x41cc96._0x9b3e5c)]>0x0)yield _0x1e5e53;}}function _0x6f333b(_0x124431,_0x2983e7,_0x36523c,_0x22df96){return _0x379285(_0x124431-_0x26a3f5._0x1e65e1,_0x36523c-0x5cd,_0x36523c-0x193,_0x22df96);}_0xf899c[_0x4ce764(_0x41cc96._0x418bb4,_0x41cc96._0x940486,0x4cf,_0x41cc96._0x585147)]()[_0x6f333b(0x524,_0x41cc96._0x26802d,0x4a8,_0x41cc96._0x403fab)]>0x0&&(yield _0xf899c[_0x4ce764(0x507,0x43d,_0x41cc96._0x4e3a0d,0x44a)]());}function parseMatchLine(_0x1e2b78,_0x33bba0){const _0x292517={_0x360109:0x4d9,_0x4d3578:0x4ad,_0x32f734:0x45b,_0x148988:0x1aa,_0x40f22c:0x1b4,_0x1fee01:0x1a4,_0x12e121:0x44d,_0x58289a:0x4f0,_0x6bd135:0x25d,_0x5a2634:0x1fb,_0xb5e560:0x1e1,_0x1be079:0x22f,_0x1d6591:0x13e,_0x231e64:0x1b0,_0x217a3e:0x467,_0x4f4bca:0x3db,_0x1779f9:0x271,_0x3e0346:0x3a3,_0x5e641e:0x231,_0x266f0b:0x1e6,_0x34a5e3:0x15e,_0x21c4e9:0x1f6},_0x1dec60={_0x2a9352:0x66,_0x292080:0x427,_0x5eae46:0x87},_0x3e7e7d={_0x5b6b82:0x1b2,_0x3d7e49:0x228};function _0x418c35(_0x39ecd5,_0x265959,_0x122e73,_0x483017){return _0x379285(_0x39ecd5-_0x3e7e7d._0x5b6b82,_0x122e73-_0x3e7e7d._0x3d7e49,_0x122e73-0x1e2,_0x265959);}if(!_0x1e2b78||_0x1e2b78==='--')return null;const _0x41755c=_0x1e2b78[_0x2604c(_0x292517._0x360109,_0x292517._0x4d3578,_0x292517._0x32f734,0x3ed)]('|');if(_0x33bba0&&_0x41755c['length']>=0x4&&Number[_0x418c35(_0x292517._0x148988,_0x292517._0x40f22c,0x1fb,_0x292517._0x1fee01)](Number['parseInt'](_0x41755c[0x2]??'',0xa))){const _0x2d4c0f=Number[_0x2604c(0x3f7,_0x292517._0x12e121,0x445,_0x292517._0x58289a)](_0x41755c[0x1]??'',0xa);if(!Number[_0x418c35(_0x292517._0x6bd135,0x1e1,_0x292517._0x5a2634,_0x292517._0xb5e560)](_0x2d4c0f)||!_0x41755c[0x0])return null;return{'filePath':_0x41755c[0x0],'lineNum':_0x2d4c0f,'lineText':_0x41755c[_0x418c35(_0x292517._0x1be079,_0x292517._0x1d6591,_0x292517._0x231e64,0x1e4)](0x3)[_0x2604c(_0x292517._0x217a3e,0x3e8,0x3d7,_0x292517._0x4f4bca)]('|')};}function _0x2604c(_0x394752,_0x1beab9,_0x32246b,_0x14b048){return _0x379285(_0x394752-_0x1dec60._0x2a9352,_0x32246b-_0x1dec60._0x292080,_0x32246b-_0x1dec60._0x5eae46,_0x394752);}if(_0x41755c[_0x2604c(_0x292517._0x1779f9,0x28a,0x302,_0x292517._0x3e0346)]>=0x3){const _0x45f809=Number[_0x418c35(_0x292517._0x5e641e,_0x292517._0x266f0b,0x246,0x22b)](_0x41755c[0x1]??'',0xa);if(!Number[_0x418c35(_0x292517._0x34a5e3,0x1a4,_0x292517._0x5a2634,0x17c)](_0x45f809)||!_0x41755c[0x0])return null;return{'filePath':_0x41755c[0x0],'lineNum':_0x45f809,'lineText':_0x41755c['slice'](0x2)[_0x418c35(0x26b,0x22f,0x1d8,_0x292517._0x21c4e9)]('|'),..._0x33bba0?{'isContext':!![]}:{}};}return null;}async function search(_0x5e1a10){const _0xf70c42={_0x91a382:0xdb,_0x3123ac:0x93,_0xc4f5b:0x5c6,_0x30269e:0x622,_0x553f9d:0x57e,_0x8e9a08:0x4ab,_0x31b716:0x54c,_0x57e487:0x4d9,_0x1b1961:0x4c5,_0x4910b9:0x460,_0xd4a7c9:0x1b,_0x19ed98:0x6f,_0x56a40c:0x2,_0x423585:0x26,_0x54b651:0x62,_0x278e0d:0x47,_0x524bd1:0x4b0,_0x24bee9:0x51e,_0x1df8f2:0x40e,_0x21502a:0x443,_0x4b72d2:0x2d,_0x282ec8:0x43,_0x9952db:0x526,_0x2818b6:0x47b,_0x4b54a7:0x4de,_0x4507ec:0x51f,_0x386c91:0x547,_0x3ed0db:0x4c8,_0x2ce88c:0x36,_0x6b34a5:0x36,_0x31365e:0x16,_0x1c6430:0x512,_0x1ae48d:0x68,_0x309af1:0xb8,_0xcce87e:0xcb,_0x41ca2:0x50a,_0x3e8e28:0xd9,_0x4b1c52:0x108},_0x3f7a6f={_0x47fabf:0x33d,_0x4c560a:0x278,_0x5aa664:0x37a,_0x459a34:0x321,_0xfc0a7c:0x368,_0x1393ab:0x3b9,_0x548ad1:0x37c,_0x509e66:0x40b,_0x43f542:0x3ab,_0x419f0a:0x451,_0x1f2fb3:0x38d,_0x59e97:0x312,_0x17c199:0x463,_0x2b432f:0x461,_0x342546:0x2d9,_0x5e7018:0x3db,_0x5d4d19:0x3c0,_0x4f8861:0x45c,_0xb4b26e:0x35e,_0x2f6ea2:0x2b3,_0x4776ad:0x3e0,_0x50894f:0x393},_0x209521={_0x3b9d28:0x67},_0x486228={_0x3d86ef:0x14a},_0x1afe23=await filepath();if(_0x5e1a10['file']){const _0x39de2f=await _0x57e0fb(_0x5e1a10[_0x341b6f(0x30,_0xf70c42._0x91a382,_0xf70c42._0x3123ac,-0x16)])['catch'](()=>null);if(!_0x39de2f?.['isFile']())throw Object[_0x24f402(_0xf70c42._0xc4f5b,_0xf70c42._0x30269e,_0xf70c42._0x553f9d,0x5d7)](new Error('No\x20such\x20file:\x20\x27'+_0x5e1a10[_0x24f402(0x54b,_0xf70c42._0x8e9a08,_0xf70c42._0x31b716,_0xf70c42._0x57e487)]+'\x27'),{'code':_0x24f402(_0xf70c42._0x1b1961,0x525,0x4fb,_0xf70c42._0x4910b9)});}else{const _0x571826=await _0x57e0fb(_0x5e1a10['cwd'])[_0x341b6f(_0xf70c42._0xd4a7c9,_0xf70c42._0x19ed98,0xbb,_0xf70c42._0x56a40c)](()=>null);if(!_0x571826?.[_0x341b6f(-0x51,-0x7d,-0x62,-_0xf70c42._0x423585)]())throw Object[_0x341b6f(_0xf70c42._0x54b651,0xee,-_0xf70c42._0x278e0d,-0x28)](new Error(_0x24f402(0x3f9,_0xf70c42._0x524bd1,0x494,_0xf70c42._0x24bee9)+_0x5e1a10[_0x24f402(_0xf70c42._0x1df8f2,0x47f,_0xf70c42._0x21502a,0x3f2)]+'\x27'),{'code':'ENOENT'});}const _0x1d7d80=[_0x341b6f(_0xf70c42._0x4b72d2,-0x6d,-_0xf70c42._0x54b651,-_0xf70c42._0x282ec8),'--field-match-separator=|','--field-context-separator=|',_0x24f402(_0xf70c42._0x9952db,0x4f0,0x505,0x49d),_0x5e1a10['pattern']],_0x2c79e2=typeof _0x5e1a10[_0x24f402(0x464,_0xf70c42._0x2818b6,_0xf70c42._0x4b54a7,_0xf70c42._0x4507ec)]==='number'&&_0x5e1a10[_0x24f402(0x46f,_0xf70c42._0x386c91,0x4de,_0xf70c42._0x3ed0db)]>0x0;_0x2c79e2&&_0x1d7d80[_0x341b6f(0x72,_0xf70c42._0x2ce88c,0x6c,-_0xf70c42._0x6b34a5)]('-C',String(_0x5e1a10[_0x341b6f(-0x3e,0x18,-_0xf70c42._0x31365e,-0x54)]),_0x24f402(_0xf70c42._0x1c6430,0x559,0x4bd,0x4f5));_0x5e1a10['glob']&&!_0x5e1a10['file']&&_0x1d7d80['push'](_0x341b6f(_0xf70c42._0x1ae48d,_0xf70c42._0x309af1,_0xf70c42._0xcce87e,0xec),_0x5e1a10[_0x24f402(0x3f8,_0xf70c42._0x41ca2,0x49a,0x490)]);_0x1d7d80['push'](_0x5e1a10['file']??_0x5e1a10[_0x341b6f(-_0xf70c42._0x3e8e28,-_0xf70c42._0x4b1c52,-0x6d,-0x124)]);function _0x24f402(_0x428f4b,_0x19afd4,_0x3f6476,_0x388cd5){return _0x256f33(_0x428f4b,_0x19afd4-_0x486228._0x3d86ef,_0x3f6476-0x13d,_0x388cd5-0x3c);}function _0x341b6f(_0x567ee7,_0x17e10a,_0x1771a2,_0x1d8029){return _0x256f33(_0x17e10a,_0x17e10a-0x56,_0x567ee7- -0x3df,_0x1d8029-_0x209521._0x3b9d28);}return await new Promise((_0x2c4fbd,_0x449a82)=>{const _0x1f9880={_0x42f54a:0x3a4,_0x12dc86:0x1be,_0x43d21e:0x22b,_0x54fdb1:0x36e,_0x250612:0x454,_0x626f8f:0x2fa,_0x2a9b1f:0x31d},_0x549725={_0x24a38c:0x148,_0x987775:0x3a,_0x1a8be2:0x41},_0x4d4efe={_0x50b82b:0x434,_0x45ef8b:0x48},_0x1f0da5={_0x2983cb:0x197,_0x13972f:0x1a3},_0x1aeb1d=_0x4b517b(_0x1afe23,_0x1d7d80,{'cwd':_0x5e1a10[_0x12bba1(_0x3f7a6f._0x47fabf,0x346,_0x3f7a6f._0x4c560a,0x2cc)],'stdio':[_0x4115a4(_0x3f7a6f._0x5aa664,0x3c3,_0x3f7a6f._0x459a34,0x3f3),_0x12bba1(_0x3f7a6f._0xfc0a7c,0x411,_0x3f7a6f._0x1393ab,_0x3f7a6f._0x548ad1),_0x4115a4(0x490,_0x3f7a6f._0x509e66,_0x3f7a6f._0x43f542,_0x3f7a6f._0x419f0a)]});let _0x41a616='',_0x4ed41b='';function _0x12bba1(_0x46daea,_0x39b39e,_0x2e5e25,_0x156d2e){return _0x341b6f(_0x156d2e-0x3a5,_0x46daea,_0x2e5e25-_0x1f0da5._0x2983cb,_0x156d2e-_0x1f0da5._0x13972f);}_0x1aeb1d[_0x4115a4(0x3c1,_0x3f7a6f._0x1f2fb3,_0x3f7a6f._0x59e97,0x36b)]?.['on'](_0x4115a4(0x43a,0x3c0,_0x3f7a6f._0x17c199,_0x3f7a6f._0x2b432f),_0x42cef5=>{_0x41a616+=_0x42cef5['toString']();});function _0x4115a4(_0x449f27,_0x4013fc,_0x215b32,_0x437435){return _0x341b6f(_0x4013fc-_0x4d4efe._0x50b82b,_0x215b32,_0x215b32-_0x4d4efe._0x45ef8b,_0x437435-0x1ca);}_0x1aeb1d[_0x12bba1(_0x3f7a6f._0x342546,0x2d1,_0x3f7a6f._0x5e7018,0x35e)]?.['on'](_0x4115a4(0x32b,_0x3f7a6f._0x5d4d19,0x398,_0x3f7a6f._0x4f8861),_0x5ca8c5=>{_0x4ed41b+=_0x5ca8c5['toString']();}),_0x1aeb1d['on'](_0x4115a4(0x368,_0x3f7a6f._0xb4b26e,_0x3f7a6f._0x2f6ea2,_0x3f7a6f._0x4776ad),_0x4af882=>{const _0x145cc5={_0x5d4511:0x102,_0x33bb60:0x54c,_0x453419:0x12};if(_0x4af882===0x1&&_0x41a616===''){_0x2c4fbd([]);return;}if(_0x4af882!==0x0&&_0x4af882!==0x1){_0x449a82(new Error(_0x22053a(0x35c,0x34d,_0x1f9880._0x42f54a,0x3ca)+_0x4ed41b));return;}const _0x6a1178=_0x5e1a10[_0x380f61(-_0x1f9880._0x12dc86,-0x1e3,-_0x1f9880._0x43d21e,-0x254)]??0x64;function _0x22053a(_0x20dcf9,_0x5c0bde,_0x3bfa13,_0x569fae){return _0x12bba1(_0x20dcf9,_0x5c0bde-_0x549725._0x24a38c,_0x3bfa13-_0x549725._0x987775,_0x3bfa13- -_0x549725._0x1a8be2);}function _0x380f61(_0x4d8fb9,_0x2fcd15,_0x1c1c88,_0x493a92){return _0x4115a4(_0x4d8fb9-_0x145cc5._0x5d4511,_0x2fcd15- -_0x145cc5._0x33bb60,_0x4d8fb9,_0x493a92-_0x145cc5._0x453419);}const _0x560377=[];for(const _0x34b206 of _0x41a616[_0x22053a(0x48c,_0x1f9880._0x54fdb1,0x3e3,_0x1f9880._0x250612)](/\r?\n/)){if(_0x560377[_0x22053a(0x265,_0x1f9880._0x626f8f,0x28a,_0x1f9880._0x2a9b1f)]>=_0x6a1178)break;const _0x5b1395=parseMatchLine(_0x34b206,_0x2c79e2);if(_0x5b1395)_0x560377['push'](_0x5b1395);}_0x2c4fbd(_0x560377);}),_0x1aeb1d['on'](_0x12bba1(0x414,0x36a,0x34b,_0x3f7a6f._0x50894f),_0x449a82);});}function createGlobTool(_0x2f174e={}){const _0x17ebdc={_0x42dd02:0xc4,_0x5c3a0d:0xe2,_0x35045e:0x6f,_0x253e9b:0xd9,_0x565a21:0x98,_0x3553ab:0x11c,_0x3eaf5e:0x8e,_0x2d2b2a:0x1aa,_0x25854f:0x1a5,_0x341929:0xb7,_0x6f17d1:0xa0,_0x1b2d0a:0x1cc,_0x16db6d:0x190,_0x508cd6:0x20d,_0x20213:0x236,_0x2034db:0x70,_0x5cf9f1:0x34,_0x1e308c:0x48,_0x470a48:0x72},_0x4b5423={_0x1a548d:0xaa,_0x10e400:0x1f1,_0x5c502c:0x142,_0x2a52c8:0x20b,_0x6606c:0x20d,_0x35a9bc:0x4a9,_0x984d99:0x53c,_0x4bd88c:0x53f,_0x44bd49:0x5bd,_0x1b89a0:0x645,_0x5a5a4b:0x432,_0x1aabcb:0x10f,_0x3f5ae4:0x5e4,_0x5044d8:0x565,_0xf0000:0x4b8,_0x2b80b2:0x514,_0x26d0ab:0x63a,_0x466df7:0x445,_0x2fb957:0x48f,_0x4f3e50:0x4dd,_0x2198c1:0x206,_0x461b33:0x158,_0x4a4420:0xca,_0x2a3ac8:0x421,_0x17f14a:0x57e,_0x404055:0x51d,_0x2f6201:0x641,_0x1d36fd:0xdb,_0xf4bb9c:0x70,_0x2f006b:0x103,_0x49f55a:0x1a1,_0xaa8ad3:0x562,_0x515fcd:0x4c6,_0x5eb637:0x568,_0x5f4161:0x509,_0x564618:0x1d8,_0x3309d8:0x135,_0x5b883e:0x553,_0x136a6f:0x5af,_0x548055:0x5a0,_0x5d6602:0x64d,_0x2c7fc2:0x1a5,_0x34f5c1:0x249,_0x2811f8:0x234,_0xcfe35f:0x2ae,_0x4edd4a:0x27a},_0x4a7241={_0x2bba5f:0x732,_0x3719f3:0xd4},_0x368d84={_0x52c69b:0x60,_0x3da3cb:0x164,_0x27d971:0x1ae},_0x3c8777={_0x2efcdf:0x1bb,_0x1b5d8b:0x6,_0x333016:0x75},_0x2e07f8=_0xf57af5[_0x5885cd(_0x17ebdc._0x42dd02,0x25,-0x1f,-0x20)](_0x2f174e[_0x5885cd(-_0x17ebdc._0x5c3a0d,-_0x17ebdc._0x35045e,0x36,-_0x17ebdc._0x253e9b)]??process['cwd']());function _0x5885cd(_0x24b0b4,_0x32bea5,_0x9035f8,_0x1b0fa8){return _0x379285(_0x24b0b4-_0x3c8777._0x2efcdf,_0x32bea5- -_0x3c8777._0x1b5d8b,_0x9035f8-_0x3c8777._0x333016,_0x24b0b4);}const _0x5b00ea=_0x2f174e[_0x5885cd(-_0x17ebdc._0x565a21,-_0x17ebdc._0x3553ab,-_0x17ebdc._0x3eaf5e,-_0x17ebdc._0x2d2b2a)]??0x64,_0x160d3f=_0x2f174e[_0x52cc33(-0x156,-0xd7,-0x12b,-_0x17ebdc._0x25854f)]??_0x5885cd(-0x97,-_0x17ebdc._0x341929,-_0x17ebdc._0x6f17d1,-0x4d);function _0x52cc33(_0x5695f5,_0x48cdaf,_0x41c755,_0x5d96bf){return _0x379285(_0x5695f5-_0x368d84._0x52c69b,_0x5695f5- -_0x368d84._0x3da3cb,_0x41c755-_0x368d84._0x27d971,_0x48cdaf);}return defineTool({'name':_0x160d3f,'description':_0x52cc33(-0x150,-_0x17ebdc._0x1b2d0a,-0xd4,-0xff),'inputSchema':{'type':_0x52cc33(-_0x17ebdc._0x16db6d,-0x108,-0x1c3,-0x1b5),'properties':{'pattern':{'type':_0x52cc33(-0x236,-_0x17ebdc._0x508cd6,-0x2b9,-0x292)},'path':{'type':_0x52cc33(-_0x17ebdc._0x20213,-0x22e,-0x1ff,-0x1d2)},'limit':{'type':'number'}},'required':[_0x5885cd(_0x17ebdc._0x2034db,-_0x17ebdc._0x5cf9f1,-_0x17ebdc._0x1e308c,-_0x17ebdc._0x470a48)]},async *'execute'(_0x131a72){function _0x511e41(_0x278e7d,_0x2a4b53,_0x524a8b,_0x378dac){return _0x52cc33(_0x524a8b-0x3a,_0x278e7d,_0x524a8b-0x92,_0x378dac-0x196);}if(_0x131a72[_0x511e41(-_0x4b5423._0x1a548d,-_0x4b5423._0x10e400,-0x158,-0xc0)][_0x511e41(-_0x4b5423._0x5c502c,-_0x4b5423._0x2a52c8,-0x1c3,-_0x4b5423._0x6606c)]()[_0x483bad(0x4c7,0x527,_0x4b5423._0x35a9bc,0x4ac)]===0x0)throw new ToolExecutionError(_0x483bad(_0x4b5423._0x984d99,0x4ef,_0x4b5423._0x4bd88c,0x5af),{});const _0x3a14ab=resolveWorkspacePath(_0x2e07f8,_0x131a72[_0x483bad(0x5b6,0x5d3,0x589,_0x4b5423._0x44bd49)]??'.'),_0x5330d9=await _0x7d6eb9(_0x3a14ab)[_0x483bad(0x588,_0x4b5423._0x1b89a0,0x59e,0x5cd)](()=>null);if(!_0x5330d9?.['isDirectory']())throw new ToolExecutionError(_0x483bad(0x551,0x55d,0x4cf,_0x4b5423._0x5a5a4b)+(_0x131a72[_0x511e41(-0x144,-_0x4b5423._0x1aabcb,-0x16f,-0x190)]??'.'),{'path':_0x131a72[_0x483bad(_0x4b5423._0x3f5ae4,0x5f5,0x589,0x50c)]??'.'});const _0x8e8849=_0x131a72[_0x483bad(0x4a4,_0x4b5423._0x5044d8,_0x4b5423._0xf0000,0x4aa)]??_0x5b00ea,_0x5f5daf=Math[_0x483bad(0x5f1,_0x4b5423._0x2b80b2,0x594,_0x4b5423._0x26d0ab)](0x1,Math[_0x483bad(_0x4b5423._0x466df7,_0x4b5423._0x2fb957,_0x4b5423._0x4f3e50,0x4fb)](_0x8e8849)),_0x5d5171=[];let _0xcda608=![];for await(const _0x2d7b78 of files({'cwd':_0x3a14ab,'glob':[_0x131a72[_0x511e41(-_0x4b5423._0x2198c1,-0x165,-_0x4b5423._0x461b33,-_0x4b5423._0x4a4420)]]})){if(_0x5d5171[_0x483bad(_0x4b5423._0x2a3ac8,0x4f9,0x4a9,0x3fa)]>=_0x5f5daf){_0xcda608=!![];break;}const _0x757ad=await _0x7d6eb9(_0xf57af5[_0x483bad(0x4f8,0x5d4,_0x4b5423._0x17f14a,_0x4b5423._0x404055)](_0x3a14ab,_0x2d7b78))[_0x483bad(0x532,0x529,0x59e,_0x4b5423._0x2f6201)](()=>null);_0x5d5171[_0x511e41(-_0x4b5423._0x1d36fd,-_0x4b5423._0xf4bb9c,-_0x4b5423._0x2f006b,-_0x4b5423._0x49f55a)]({'path':_0x2d7b78,'mtime':_0x757ad?.[_0x483bad(_0x4b5423._0xaa8ad3,_0x4b5423._0x515fcd,_0x4b5423._0x5eb637,_0x4b5423._0x5f4161)]??0x0});}_0x5d5171['sort']((_0x597f11,_0x4ecc15)=>_0x4ecc15[_0x511e41(-0x17c,-0x97,-0x117,-0xea)]-_0x597f11[_0x483bad(0x5a4,0x674,0x5e1,0x5a7)]);const _0xecf5ed=_0x5d5171[_0x511e41(-_0x4b5423._0x564618,-_0x4b5423._0x3309d8,-0x1de,-0x1cb)](_0x3f3d98=>_0x3f3d98[_0x483bad(0x5b1,0x601,0x589,0x598)]),_0x2fe03a=_0xecf5ed[_0x483bad(_0x4b5423._0x5b883e,0x4cf,0x4a9,0x42b)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0x131a72[_0x483bad(_0x4b5423._0x136a6f,0x5b9,_0x4b5423._0x548055,_0x4b5423._0x5d6602)]:''+_0xecf5ed['join']('\x0a')+(_0xcda608?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');function _0x483bad(_0x128a8a,_0x516737,_0x394e88,_0x2eefa8){return _0x52cc33(_0x394e88-_0x4a7241._0x2bba5f,_0x516737,_0x394e88-_0x4a7241._0x3719f3,_0x2eefa8-0x18b);}return yield createToolOutput(_0x2fe03a,{'pattern':_0x131a72['pattern'],'searchPath':_0xf57af5[_0x511e41(-_0x4b5423._0x2c7fc2,-_0x4b5423._0x34f5c1,-_0x4b5423._0x2811f8,-_0x4b5423._0xcfe35f)](_0x2e07f8,_0x3a14ab)||'.','matches':_0xecf5ed,'count':_0xecf5ed[_0x511e41(-0x212,-0x236,-0x24f,-_0x4b5423._0x4edd4a)],'truncated':_0xcda608}),void 0x0;}});}import{stat as _0x23bbfb}from'fs/promises';import*as _0x5f05d7 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x3015ff={}){const _0x452d69={_0x209a2c:0x231,_0x3a3436:0x2f0,_0x1ad966:0x1a0,_0x3e80ba:0x178,_0x2c5856:0x12b,_0x54226d:0x9c,_0x3121b6:0x11f,_0x5c3ffc:0x56,_0x17aac0:0x16c,_0xa7a587:0x211,_0x2f654d:0x215,_0x47b063:0x1ad,_0xfe8059:0x246,_0x42a8ac:0x225,_0x4a1f8d:0x213},_0x283306={_0x134004:0x10,_0x39ba0d:0xef,_0xc832e1:0x68,_0x3a0f0f:0x73,_0x21df52:0x19,_0x2ed134:0x145,_0x3d0041:0xa5,_0x569e10:0x9,_0x4059d0:0x3c,_0xa6626f:0x5b,_0x2a4cdf:0x3b,_0x27294e:0x32,_0xedf57f:0xe,_0x389190:0x50,_0x3d76a2:0x27,_0x38670e:0x75,_0x2909a7:0x11e,_0x4d16b8:0x129,_0x3e2ef5:0x8f,_0x2f8d6d:0x41,_0x4d83e4:0x21,_0x444c2a:0x23,_0x297775:0xa3,_0x2af1e4:0x6b,_0x281dcb:0x4a,_0x120e72:0x7,_0x363861:0x29,_0x293b8e:0x52,_0x188904:0x3a,_0x2c395f:0x19,_0x2b4fc7:0xf,_0x3d55be:0xb0,_0x123dbe:0xa0,_0x4dc2d2:0x8,_0x30df2b:0x69,_0x11bea5:0x1f,_0x1443e3:0x75,_0x31effa:0xd9,_0x3a2032:0x25,_0x3bd979:0x76,_0x1e7353:0x22,_0x1644cb:0x20,_0x1518f3:0xa7,_0x12418e:0x7f,_0x455444:0x19,_0xb6fab1:0x15,_0x5c9547:0x66,_0x5aacee:0xb5,_0x141eba:0x122,_0x1a4cd0:0x64,_0x3ae065:0x48,_0x4cf69a:0x1,_0x29cc28:0xe4,_0x6c3622:0x6c,_0x106488:0x5c,_0x19b464:0x52,_0x4c5817:0x108,_0x17602a:0xc,_0x1920d2:0x137,_0xe28944:0x128,_0x4009cd:0x7c,_0x588e4b:0x84,_0x5c2829:0x1d,_0x20c4ed:0x2a,_0x586694:0x5b,_0x21efc1:0xd,_0x24f77a:0x2a,_0x556d48:0x7b,_0x1e7618:0x65,_0x5778ab:0x18,_0x86ffa4:0x57,_0x3744d9:0xa2,_0x49b813:0x40,_0x3f17ec:0x59,_0x347424:0x41,_0x430fee:0x36,_0xf3993c:0xe7,_0xaea688:0xb1,_0x2217e0:0xce,_0x193262:0x52},_0x501d6b={_0x17abbe:0x5},_0x49ecda={_0x481fa1:0x154},_0x4ae5c7={_0x42b415:0x241,_0x45da48:0x8b},_0x4f3a31=_0x5f05d7['resolve'](_0x3015ff[_0x44b826(_0x452d69._0x209a2c,0x1d1,0x18d,0x1d8)]??process[_0x465979(-_0x452d69._0x3a3436,-0x1ac,-0x28a,-0x251)]());function _0x44b826(_0x3f4814,_0x3e4233,_0x2ccc9a,_0x47ac9f){return _0x379285(_0x3f4814-0xcd,_0x47ac9f-_0x4ae5c7._0x42b415,_0x2ccc9a-_0x4ae5c7._0x45da48,_0x2ccc9a);}const _0x1a7fba=_0x3015ff[_0x44b826(0x1aa,_0x452d69._0x1ad966,_0x452d69._0x3e80ba,_0x452d69._0x2c5856)]??0x64,_0x1739d7=_0x3015ff[_0x465979(-0x18d,-0x17b,-_0x452d69._0x54226d,-_0x452d69._0x3121b6)]??'Grep';function _0x465979(_0x4f9585,_0x358f62,_0x5e2fc4,_0x2de5eb){return _0x256f33(_0x5e2fc4,_0x358f62-_0x49ecda._0x481fa1,_0x2de5eb- -0x557,_0x2de5eb-0x97);}return defineTool({'name':_0x1739d7,'description':_0x465979(-0x192,-0x7e,-_0x452d69._0x5c3ffc,-0xfb),'inputSchema':{'type':_0x44b826(0x1a5,_0x452d69._0x17aac0,_0x452d69._0xa7a587,_0x452d69._0x2f654d),'properties':{'pattern':{'type':_0x44b826(_0x452d69._0x47b063,_0x452d69._0x2f654d,0xec,0x16f)},'path':{'type':_0x465979(-0x220,-0x204,-_0x452d69._0xfe8059,-0x1ff)},'include':{'type':'string'},'limit':{'type':_0x44b826(0x1c2,0x183,0x29d,_0x452d69._0x42a8ac)},'context':{'type':'number'}},'required':[_0x44b826(0x1e7,_0x452d69._0x2f654d,0x1ba,_0x452d69._0x4a1f8d)]},async *'execute'(_0x4a33b3){const _0x16e09e={_0xc24c72:0x1f4};if(_0x4a33b3[_0x385657(-_0x283306._0x134004,0xdd,_0x283306._0x39ba0d,0x52)][_0x385657(-_0x283306._0xc832e1,-0x3e,-_0x283306._0x3a0f0f,-_0x283306._0x21df52)]()[_0x385657(-0xb1,-0xb9,-_0x283306._0x2ed134,-_0x283306._0x3d0041)]===0x0)throw new ToolExecutionError(_0xefac3d(0x53,-_0x283306._0x569e10,-0x4a,-0x1d),{});const _0x35a248=resolveWorkspacePath(_0x4f3a31,_0x4a33b3[_0x385657(-_0x283306._0x4059d0,0xd2,_0x283306._0xa6626f,_0x283306._0x2a4cdf)]??'.'),_0xd18f0=await _0x23bbfb(_0x35a248)[_0x385657(_0x283306._0x27294e,_0x283306._0xedf57f,0xa4,_0x283306._0x389190)](()=>null),_0x53506d=_0xd18f0?.[_0x385657(_0x283306._0x3d76a2,-_0x283306._0x38670e,0x16,0x2a)]()??![],_0x257c8e=_0xd18f0?.['isDirectory']()??![];function _0x385657(_0x146b4e,_0x4608e6,_0xbdd40,_0xbfcc96){return _0x465979(_0x146b4e-0x179,_0x4608e6-_0x16e09e._0xc24c72,_0x146b4e,_0xbfcc96-0x1ad);}if(!_0x53506d&&!_0x257c8e)throw new ToolExecutionError(_0x385657(-_0x283306._0x2909a7,-0xe7,-_0x283306._0x4d16b8,-_0x283306._0x3e2ef5)+(_0x4a33b3[_0x385657(0x76,0xd5,0x42,0x3b)]??'.'),{'path':_0x4a33b3[_0xefac3d(0x33,_0x283306._0x2f8d6d,_0x283306._0x4d83e4,_0x283306._0x444c2a)]??'.'});const _0x4718ed=_0x4a33b3[_0xefac3d(-0x5,-0x90,-0x5,-0x13d)]??_0x1a7fba;function _0xefac3d(_0x41c6fe,_0x3a6210,_0x33263a,_0x424a86){return _0x465979(_0x41c6fe-_0x501d6b._0x17abbe,_0x3a6210-0x85,_0x424a86,_0x3a6210-0x1b3);}const _0x110bb0=Math[_0x385657(0x8b,0x4c,_0x283306._0x297775,0x46)](0x1,Math[_0xefac3d(-0xcb,-_0x283306._0x2af1e4,-_0x283306._0x281dcb,-0xad)](_0x4718ed)),_0x34a29c=await search({'cwd':_0x257c8e?_0x35a248:_0x5f05d7[_0xefac3d(0x9f,-_0x283306._0x120e72,_0x283306._0x363861,0x86)](_0x35a248),'pattern':_0x4a33b3['pattern'],'glob':_0x257c8e?_0x4a33b3[_0xefac3d(-_0x283306._0x293b8e,-0x74,-_0x283306._0x188904,-_0x283306._0x2c395f)]:void 0x0,'limit':_0x110bb0,'file':_0x53506d?_0x35a248:void 0x0,'context':_0x4a33b3[_0x385657(-0x8f,_0x283306._0x2b4fc7,-_0x283306._0x3d55be,-0x9)]}),_0x4e3ddb=new Map();for(const _0x49778f of _0x34a29c){if(!_0x4e3ddb[_0x385657(0x4b,_0x283306._0x123dbe,_0x283306._0x4dc2d2,_0x283306._0x30df2b)](_0x49778f[_0x385657(_0x283306._0x11bea5,_0x283306._0x1443e3,_0x283306._0x31effa,0x34)])){const _0x24b74c=await _0x23bbfb(_0x49778f[_0xefac3d(-0x5b,0x3a,0x53,-0x57)])[_0xefac3d(-0x9,0x56,-_0x283306._0x3a2032,-_0x283306._0x27294e)](()=>null);_0x4e3ddb[_0xefac3d(_0x283306._0x3bd979,0x5,_0x283306._0x1e7353,0x1c)](_0x49778f['filePath'],{'matches':[],'mtime':_0x24b74c?.[_0xefac3d(0xb7,_0x283306._0x1644cb,_0x283306._0x1518f3,_0x283306._0x12418e)]??0x0});}_0x4e3ddb[_0xefac3d(-_0x283306._0x455444,_0x283306._0xb6fab1,-0x4f,0x23)](_0x49778f[_0x385657(0xc0,_0x283306._0x5c9547,_0x283306._0x5aacee,0x34)])?.['matches'][_0x385657(_0x283306._0x141eba,_0x283306._0x1a4cd0,0x7f,0xa7)](_0x49778f);}const _0x14fa9e=[..._0x4e3ddb['entries']()]['sort']((_0x16309e,_0x2eb2cf)=>_0x2eb2cf[0x1][_0xefac3d(0x107,0x99,0x61,0xd4)]-_0x16309e[0x1][_0xefac3d(0x41,0x99,0xb1,0x67)]),_0x59a08d=_0x34a29c[_0xefac3d(_0x283306._0x3ae065,-0x61,-0x104,-0xde)](_0x286136=>!_0x286136[_0x385657(-0xd9,-0x3d,-0xd3,-0x5c)])[_0xefac3d(-0x92,-0x9f,-0xf5,-0x18)],_0x432e05=_0x34a29c['length']>=_0x110bb0,_0x2b76c0=_0x53506d?_0x5f05d7[_0x385657(0x58,-0x54,0x40,-0xd)](_0x35a248):_0x35a248;let _0x7ed387='';if(_0x34a29c[_0xefac3d(-_0x283306._0x4cf69a,-0x9f,0x8,_0x283306._0x4dc2d2)]===0x0)_0x7ed387=_0x385657(-0x97,-_0x283306._0x29cc28,-0x14,-_0x283306._0x6c3622)+_0x4a33b3[_0x385657(-_0x283306._0x106488,0xad,-0x37,_0x283306._0x19b464)];else{_0x7ed387=_0x385657(_0x283306._0x4c5817,0xd2,-_0x283306._0x17602a,0x63)+_0x59a08d+_0xefac3d(_0x283306._0x1920d2,0x93,_0x283306._0xe28944,_0x283306._0x4009cd)+(_0x59a08d===0x1?'':'es')+'\x0a';for(const [_0x55a622,_0x35ae22]of _0x14fa9e){const _0x3b93d7=_0x53506d?_0x5f05d7['basename'](_0x55a622):_0x5f05d7[_0xefac3d(-0x1,-_0x283306._0x588e4b,_0x283306._0x5c2829,-0x11)](_0x2b76c0,_0x55a622);_0x7ed387+='\x0a'+_0x3b93d7+':\x0a';for(const _0x489f45 of _0x35ae22['matches']){const _0x18c8b7=_0x489f45[_0xefac3d(-0x62,-_0x283306._0x20c4ed,-0x55,-_0x283306._0x586694)][_0x385657(-0x78,-_0x283306._0x21efc1,-0xd0,-0xa5)]>MAX_LINE_LENGTH?_0x489f45[_0xefac3d(0x78,-_0x283306._0x24f77a,-0x5c,-_0x283306._0x3a2032)][_0x385657(_0x283306._0x556d48,_0x283306._0x3bd979,-_0x283306._0x1e7618,0x8)](0x0,MAX_LINE_LENGTH)+_0x385657(0x1,0x5,-_0x283306._0x5778ab,0x2):_0x489f45['lineText'],_0x34afd3=_0x489f45[_0x385657(-_0x283306._0x86ffa4,-_0x283306._0x3744d9,-0x50,-_0x283306._0x106488)]?'\x20\x20':'>\x20';_0x7ed387+=_0x34afd3+_0x385657(0x4,0xd4,-_0x283306._0x49b813,_0x283306._0x3f17ec)+_0x489f45[_0x385657(-0x70,_0x283306._0x347424,0x5c,-_0x283306._0x430fee)]+':\x20'+_0x18c8b7+'\x0a';}}_0x432e05&&(_0x7ed387+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x129e8c={'searchPath':_0x5f05d7[_0x385657(-_0x283306._0xf3993c,-_0x283306._0xaea688,-0xb9,-0x8a)](_0x4f3a31,_0x35a248)||'.','pattern':_0x4a33b3['pattern'],'matchCount':_0x59a08d,'fileCount':_0x4e3ddb[_0xefac3d(-_0x283306._0x2217e0,-_0x283306._0x193262,_0x283306._0x134004,-0x87)],'truncated':_0x432e05};return _0x257c8e&&_0x4a33b3['include']!==void 0x0&&(_0x129e8c['include']=_0x4a33b3['include']),yield createToolOutput(_0x7ed387['trim'](),_0x129e8c),void 0x0;}});}import{readdir,readFile as _0x5f0278,stat as _0x52ee5c}from'fs/promises';import*as _0x2aee41 from'path';import*as _0x19893e from'yaml';async function countTextLines(_0x3d4902){const _0x272a7f={_0x32eef5:0x12f,_0x191f1b:0x94,_0x4ce39a:0xf2,_0x419a60:0x122,_0x55a9a9:0x14c,_0x1ce1b8:0xb7,_0xde929f:0xa4,_0x2d707f:0x85,_0x4df082:0x17a,_0x529ce2:0x200},_0xa29d05={_0x2bacee:0x1a},_0xb36858={_0x34fa2b:0x12e,_0x39b5d7:0x17a};function _0x4a3757(_0x27e12d,_0x55a067,_0x51f1fc,_0x51abd6){return _0x379285(_0x27e12d-_0xb36858._0x34fa2b,_0x51f1fc- -0x161,_0x51f1fc-_0xb36858._0x39b5d7,_0x51abd6);}function _0x2ff6e4(_0x443dbe,_0x3fcb33,_0x1aecd9,_0xe44d56){return _0x256f33(_0x443dbe,_0x3fcb33-0x187,_0xe44d56- -0x4e3,_0xe44d56-_0xa29d05._0x2bacee);}const _0x4056cc=await _0x5f0278(_0x3d4902)['catch'](()=>null);if(!_0x4056cc||isProbablyBinary(_0x4056cc))return void 0x0;return _0x4056cc[_0x2ff6e4(-_0x272a7f._0x32eef5,-_0x272a7f._0x191f1b,-0x143,-_0x272a7f._0x4ce39a)](_0x4a3757(-_0x272a7f._0x419a60,-_0x272a7f._0x419a60,-_0x272a7f._0x55a9a9,-_0x272a7f._0x1ce1b8))[_0x2ff6e4(-0x90,-0x132,-_0x272a7f._0xde929f,-_0x272a7f._0x2d707f)](/\r?\n/)[_0x2ff6e4(-_0x272a7f._0x4df082,-0x267,-_0x272a7f._0x529ce2,-0x1de)];}function createLsTool(_0x3a2e2c={}){const _0x2ef39d={_0x1af4c0:0x399,_0x576514:0x3ee,_0x43ce6:0x361,_0x34919c:0x462,_0x2c57b4:0x333,_0x8d90f0:0x2f8,_0x164c4e:0x123,_0xfd1866:0x3a5,_0x40cf01:0x168,_0x6608ae:0xd1},_0x16eee5={_0x23534c:0x49f,_0x28b92f:0x402,_0x2bb05a:0x38a,_0xcd424b:0x3d0,_0xbcd3d8:0x4ae,_0x12756a:0x52b,_0x3663bd:0x3aa,_0x24ff11:0x31b,_0x404f25:0x4d1,_0x1352e5:0x428,_0x2d8b08:0x415,_0x53f676:0x469,_0x281b49:0x43a,_0x31f253:0x4e7,_0x30aed6:0x565,_0x54e8a1:0x41f,_0x211fdd:0x472,_0x2a2dca:0x453,_0x48c651:0x474,_0xc9ae28:0x404,_0x3fde27:0x3bb,_0x11b759:0x48e,_0x42ad8c:0x451,_0x544b5a:0x43f,_0x1ee15e:0x447,_0x251762:0x41e,_0x5a7bd6:0x45a,_0x4b6c9a:0x44f,_0x266ed2:0x4d3,_0x18fd93:0x485,_0x4a7642:0x416,_0x500084:0x4fb,_0x4c5bcc:0x4f5,_0x53132f:0x588,_0x33b4a4:0x3b9,_0x4bfc99:0x3cd,_0x5cf637:0x370,_0x23b1ac:0x316,_0x2e2b3e:0x37b,_0x43c563:0x504,_0x424c60:0x3f2,_0xb82b:0x3b9,_0x3f5e49:0x37b,_0x2d09b5:0x368,_0x19aa1f:0x39d},_0x37b00f={_0xd3de4b:0x49},_0x8fa8a7={_0x3028d7:0x457,_0x1875d8:0x1c7},_0x14e1bd={_0x46fc4e:0x14f,_0x350413:0x1c9},_0x2b7661=_0x2aee41['resolve'](_0x3a2e2c[_0x8a3991(_0x2ef39d._0x1af4c0,_0x2ef39d._0x576514,_0x2ef39d._0x43ce6,_0x2ef39d._0x34919c)]??process[_0x8a3991(0x303,_0x2ef39d._0x2c57b4,_0x2ef39d._0x8d90f0,0x340)]());function _0x1a018c(_0x408269,_0x1c726b,_0xdcdfe9,_0x1c06e3){return _0x379285(_0x408269-0x1cb,_0xdcdfe9-_0x14e1bd._0x46fc4e,_0xdcdfe9-_0x14e1bd._0x350413,_0x1c06e3);}function _0x8a3991(_0x3a3478,_0x1f7059,_0x2785a8,_0x5d71f0){return _0x379285(_0x3a3478-0x19,_0x1f7059-_0x8fa8a7._0x3028d7,_0x2785a8-_0x8fa8a7._0x1875d8,_0x3a3478);}const _0x94823b=_0x3a2e2c['name']??'Ls';return defineTool({'name':_0x94823b,'description':'List\x20files\x20and\x20directories\x20in\x20a\x20workspace\x20directory.','inputSchema':{'type':_0x1a018c(0x140,0x8c,_0x2ef39d._0x164c4e,0x117),'properties':{'path':{'type':_0x8a3991(_0x2ef39d._0xfd1866,0x385,_0x2ef39d._0x2c57b4,0x3b5)},'limit':{'type':_0x1a018c(_0x2ef39d._0x40cf01,0xdf,0x133,_0x2ef39d._0x6608ae)}}},async *'execute'(_0x54a99e){const _0x396673={_0x2d0b1c:0xa1},_0x2bc236=_0x54a99e[_0x37e411(0x48f,_0x16eee5._0x23534c,0x459,0x3fa)]??'.',_0x15f293=resolveWorkspacePath(_0x2b7661,_0x2bc236);function _0x241013(_0x230526,_0x2cef5c,_0x4c3dbf,_0x207ab0){return _0x8a3991(_0x230526,_0x4c3dbf-_0x37b00f._0xd3de4b,_0x4c3dbf-0x123,_0x207ab0-0xca);}const _0x59e368=await _0x52ee5c(_0x15f293)['catch'](()=>null);if(!_0x59e368?.['isDirectory']())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x2bc236,{'path':_0x2bc236});const _0x1f475c=_0x54a99e[_0x241013(_0x16eee5._0x28b92f,0x2ea,_0x16eee5._0x2bb05a,_0x16eee5._0xcd424b)]??0x3e8,_0x226c7d=Math['min'](Math[_0x37e411(0x49a,_0x16eee5._0xbcd3d8,_0x16eee5._0x12756a,0x3f5)](Math[_0x241013(0x418,_0x16eee5._0x3663bd,0x3af,_0x16eee5._0x24ff11)](_0x1f475c),0x1),0x2710),_0xc3970d=await readdir(_0x15f293),_0x3b2bde=[];function _0x37e411(_0x274eb7,_0x2e90b7,_0x5ec9e3,_0xbe7092){return _0x1a018c(_0x274eb7-_0x396673._0x2d0b1c,_0x2e90b7-0x119,_0x274eb7-0x385,_0xbe7092);}for(const _0x5223ae of _0xc3970d[_0x241013(0x404,_0x16eee5._0x404f25,_0x16eee5._0x1352e5,_0x16eee5._0x2d8b08)](0x0,_0x226c7d)){const _0x2c6057=_0x2aee41['join'](_0x15f293,_0x5223ae),_0x17ae14=await _0x52ee5c(_0x2c6057)[_0x37e411(0x4a4,_0x16eee5._0x53f676,0x4a0,0x480)](()=>null);if(!_0x17ae14)continue;let _0x45437c=_0x37e411(0x4bb,_0x16eee5._0x281b49,_0x16eee5._0x31f253,_0x16eee5._0x30aed6);if(_0x17ae14[_0x241013(_0x16eee5._0x54e8a1,0x4d1,0x44a,_0x16eee5._0x211fdd)]())_0x45437c='file';else{if(_0x17ae14[_0x241013(_0x16eee5._0x2a2dca,_0x16eee5._0x48c651,_0x16eee5._0xc9ae28,_0x16eee5._0x3fde27)]())_0x45437c=_0x241013(0x3d3,_0x16eee5._0x11b759,_0x16eee5._0x42ad8c,_0x16eee5._0x544b5a);else{if(_0x17ae14[_0x241013(_0x16eee5._0x1ee15e,0x46f,0x447,0x42a)]())_0x45437c='symlink';}}const _0x4114e8={'name':_0x5223ae,'type':_0x45437c,'size':_0x17ae14[_0x241013(_0x16eee5._0x251762,0x44d,0x3c8,_0x16eee5._0x5a7bd6)],'mtime':_0x17ae14['mtimeMs'],'mode':_0x17ae14['mode']},_0x5d57ad=_0x45437c===_0x241013(_0x16eee5._0x4b6c9a,_0x16eee5._0x266ed2,_0x16eee5._0x18fd93,_0x16eee5._0x4a7642)?await countTextLines(_0x2c6057):void 0x0;if(_0x5d57ad!==void 0x0)_0x4114e8['lines']=_0x5d57ad;_0x3b2bde[_0x37e411(_0x16eee5._0x500084,_0x16eee5._0x4c5bcc,_0x16eee5._0x53132f,_0x16eee5._0x12756a)](_0x4114e8);}_0x3b2bde[_0x37e411(_0x16eee5._0x33b4a4,0x403,0x330,_0x16eee5._0x4bfc99)]((_0x4e3d31,_0x140423)=>_0x4e3d31[_0x241013(0x44e,0x4e0,0x4ae,0x4b0)][_0x37e411(0x411,0x392,0x368,0x458)](_0x140423[_0x37e411(0x4e2,0x45d,0x57b,0x4c6)]));const _0x2ffb37={'path':_0x2bc236,'total':_0x3b2bde[_0x241013(_0x16eee5._0x5cf637,0x361,0x37b,0x337)],'truncated':_0xc3970d[_0x241013(_0x16eee5._0x23b1ac,0x34f,_0x16eee5._0x2e2b3e,0x331)]>_0x226c7d,'entries':_0x3b2bde};return yield createToolOutput(_0x19893e[_0x241013(_0x16eee5._0x43c563,0x532,0x493,0x4b2)](_0x2ffb37,{'indent':0x2,'lineWidth':0x0})[_0x241013(_0x16eee5._0x424c60,_0x16eee5._0xb82b,0x3c2,0x437)](),{'path':_0x2bc236,'total':_0x3b2bde[_0x241013(0x320,0x3de,_0x16eee5._0x3f5e49,0x369)],'truncated':_0xc3970d[_0x37e411(0x3af,0x366,_0x16eee5._0x2d09b5,_0x16eee5._0x19aa1f)]>_0x226c7d,'limit':_0x226c7d,'entries':_0x3b2bde}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x4536a1,readFile as _0x5782e9,writeFile as _0x4ed649}from'fs/promises';import{join as _0x1b158c}from'path';function sanitizeStorageKey(_0x141828){const _0x1ea37d={_0x49dfa1:0x4d3,_0x34b4f0:0x4fb,_0x398808:0x57b,_0x6fd84a:0x4f5,_0x47de3d:0x454,_0x138625:0x45f,_0x255615:0x4d0},_0x54cb62={_0x33ae28:0x5e,_0x15c71f:0x1d9},_0xc9086={_0x281d39:0x127,_0x3fbabc:0x14d};function _0x2025c4(_0x4d5a9e,_0x10dd60,_0x3891a3,_0x123774){return _0x256f33(_0x123774,_0x10dd60-_0xc9086._0x281d39,_0x10dd60-0x2d,_0x123774-_0xc9086._0x3fbabc);}function _0x58adc6(_0x4f7c34,_0x1e17f2,_0x1c0a81,_0xff574e){return _0x256f33(_0xff574e,_0x1e17f2-_0x54cb62._0x33ae28,_0x4f7c34-0x9b,_0xff574e-_0x54cb62._0x15c71f);}return _0x141828[_0x58adc6(0x4f8,_0x1ea37d._0x49dfa1,_0x1ea37d._0x34b4f0,0x4f2)](/[^a-zA-Z0-9_]+/g,'_')[_0x58adc6(0x4f8,_0x1ea37d._0x398808,_0x1ea37d._0x6fd84a,_0x1ea37d._0x47de3d)](/^_+|_+$/g,'')||_0x2025c4(0x3ba,_0x1ea37d._0x138625,0x3b6,_0x1ea37d._0x255615);}function storagePath(_0x5302df){const _0x23c810={_0x6eecca:0x330},_0x1d69f8={_0x38c548:0x1b8},_0x35d0a0=sanitizeStorageKey(_0x5302df['config']['oauth']?.['tokenStorageKey']??_0x5302df['serverName']);function _0x38e942(_0x4361d8,_0x54a0e1,_0x3e6419,_0x244fec){return _0x379285(_0x4361d8-0x164,_0x54a0e1-0x481,_0x3e6419-_0x1d69f8._0x38c548,_0x3e6419);}function _0x1172be(_0x1a13ab,_0x888919,_0x31c675,_0x3942b5){return _0x379285(_0x1a13ab-0x97,_0x3942b5-0x17e,_0x31c675-0xe4,_0x31c675);}return _0x1b158c(_0x5302df[_0x38e942(0x464,0x446,0x4e7,0x4af)],_0x35d0a0+_0x38e942(0x45a,0x3bd,_0x23c810._0x6eecca,0x3ad));}async function readStore(_0x411ab9){const _0x9310ef={_0xd5fa25:0x4f9,_0x18b45a:0x423,_0x51d723:0x584,_0x30adcf:0x5dc,_0x4c676b:0x594,_0x308ff6:0x43f,_0x14f3ae:0x481,_0x271dfc:0x453,_0x17850a:0x51e,_0x1c7454:0x502,_0x28dbcd:0x526},_0x565eec={_0x50e88d:0xd8,_0x1544ae:0x5e,_0xcd7ec0:0x6d},_0x253362={_0x5eb1b8:0x154};function _0x1da6de(_0x1760cc,_0x1cf448,_0x4e23f9,_0x3df8f4){return _0x256f33(_0x4e23f9,_0x1cf448-0x1db,_0x1cf448-0x160,_0x3df8f4-_0x253362._0x5eb1b8);}function _0x4935a6(_0x230d22,_0x30d0bd,_0x1930b3,_0x4b8a6f){return _0x256f33(_0x230d22,_0x30d0bd-_0x565eec._0x50e88d,_0x1930b3-_0x565eec._0x1544ae,_0x4b8a6f-_0x565eec._0xcd7ec0);}try{return JSON['parse'](await _0x5782e9(_0x411ab9,_0x4935a6(0x4ae,_0x9310ef._0xd5fa25,0x49d,_0x9310ef._0x18b45a)));}catch(_0x3de9ef){if(_0x3de9ef instanceof Error&&_0x1da6de(_0x9310ef._0x51d723,0x583,_0x9310ef._0x30adcf,_0x9310ef._0x4c676b)in _0x3de9ef&&_0x3de9ef[_0x4935a6(_0x9310ef._0x308ff6,0x416,_0x9310ef._0x14f3ae,_0x9310ef._0x271dfc)]===_0x1da6de(0x533,_0x9310ef._0x17850a,_0x9310ef._0x1c7454,_0x9310ef._0x28dbcd))return{};throw _0x3de9ef;}}async function writeStore(_0x35c5b4,_0x32284a){const _0x1f977d={_0x1c3cf8:0xcf,_0x534003:0x180},_0x3d75a2={_0x430e10:0x1b3,_0x5dd770:0x235},_0x420a3f={_0x1d0c60:0xe4};function _0x27146e(_0x26de08,_0x38d824,_0x1a9da5,_0x164fe5){return _0x379285(_0x26de08-_0x420a3f._0x1d0c60,_0x1a9da5- -0x131,_0x1a9da5-0x1cf,_0x38d824);}await _0x4536a1(_0x1b158c(_0x35c5b4,'..'),{'recursive':!![]});function _0x410ebb(_0x121cd3,_0x2b2a6e,_0x4f4d81,_0x4d7145){return _0x379285(_0x121cd3-_0x3d75a2._0x430e10,_0x2b2a6e-_0x3d75a2._0x5dd770,_0x4f4d81-0x75,_0x4f4d81);}await _0x4ed649(_0x35c5b4,JSON[_0x27146e(-0xa9,-0x16a,-0x13e,-_0x1f977d._0x1c3cf8)](_0x32284a,null,0x2),_0x27146e(-0x107,-0xf2,-0x11c,-_0x1f977d._0x534003));}async function updateStore(_0x5f246a,_0x5e7d21){const _0x2731bb=await readStore(_0x5f246a);_0x5e7d21(_0x2731bb),await writeStore(_0x5f246a,_0x2731bb);}function _0x379285(_0x4e8f35,_0x2d5908,_0x49d7c3,_0x376412){return _0x3e7e(_0x2d5908- -0x262,_0x376412);}function createMcpOAuthProvider(_0x45e35f){const _0x2d4d98={_0x139456:0x8d,_0x521a5c:0xc7,_0x4784f5:0x575,_0x4efda0:0x5ad,_0x2c1eb9:0x256,_0xe22ab:0x238,_0x4c6321:0x1b0,_0x23c8c7:0x125,_0x53cd7a:0x192,_0x3aa3f8:0x85,_0x708920:0xea,_0x1e1b79:0x624,_0x499585:0x581,_0x37b9e6:0x5f8,_0x48d28c:0x299,_0x592988:0x21c,_0x53354f:0x582,_0xb75576:0x51b,_0x193fa0:0x48c,_0x50ea08:0x507},_0xddd4e3={_0x358f08:0x54c,_0x20083a:0x63a},_0x2c9f74={_0xecaf76:0x166,_0x30c35d:0x41b},_0x40c3ec={_0x31f505:0x56a,_0x860be7:0x503,_0x122ea6:0x2f,_0x2f8cb1:0x4b,_0x142bbe:0xb4,_0xe273ef:0x18,_0x593a9c:0x8a,_0x1cc84a:0x3b8,_0x57d700:0x41c,_0x15813a:0x4e5,_0x1f16f3:0x503,_0x1a28b7:0x12,_0x3ca61e:0x8e,_0x4a9c39:0xbd},_0xad440c={_0x4f8797:0x2d1,_0x3e65f9:0x257,_0xfdd703:0x295},_0x1cd880={_0x19c4b9:0x10a,_0x36cf87:0x125},_0x48f863={_0x228958:0x53e,_0xd7acf5:0x4d2,_0x208405:0x59f},_0x357b6e={_0x1f21bf:0x22d,_0x549a8e:0x1cc,_0x14625c:0x1cb},_0x166fa5={_0x3d83b3:0xf4,_0x30dca0:0xf1,_0xed2b81:0x32e},_0x162ab6={_0x4500d8:0x272,_0x3f8f1f:0x161},_0xafb8dd={_0x338cf8:0x471,_0x54ad16:0x4b4},_0x1f339a={_0x55b82b:0x40,_0x555ee7:0x1a},_0x273e43={_0x47cf73:0x118},_0x32383f={_0x19f624:0x89},_0x3bef52=storagePath(_0x45e35f);function _0x4fb5df(_0x58cf9,_0x355c9a,_0x12ede7,_0x44b306){return _0x256f33(_0x44b306,_0x355c9a-_0x32383f._0x19f624,_0x12ede7- -0x223,_0x44b306-0x119);}const _0xb019a9=_0x45e35f[_0x4fb5df(_0x2d4d98._0x139456,_0x2d4d98._0x521a5c,0x138,0x1b8)]['oauth']?.[_0x3f7ccb(0x62c,_0x2d4d98._0x4784f5,0x659,0x5e5)]?.[_0x3f7ccb(0x5b7,0x529,0x554,_0x2d4d98._0x4efda0)]('\x20');function _0x3f7ccb(_0x12c870,_0x5a644c,_0x240a61,_0x475862){return _0x379285(_0x12c870-0x180,_0x475862-0x5fd,_0x240a61-_0x273e43._0x47cf73,_0x240a61);}const _0x5d70c7={'client_name':_0x4fb5df(_0x2d4d98._0x2c1eb9,_0x2d4d98._0xe22ab,0x1c0,_0x2d4d98._0x4c6321),'redirect_uris':[_0x45e35f[_0x4fb5df(_0x2d4d98._0x23c8c7,_0x2d4d98._0x53cd7a,0x1cb,0x268)]],'grant_types':[_0x4fb5df(0x166,_0x2d4d98._0x3aa3f8,0x123,_0x2d4d98._0x708920),_0x3f7ccb(_0x2d4d98._0x1e1b79,0x5c8,_0x2d4d98._0x499585,_0x2d4d98._0x37b9e6)],'response_types':[_0x4fb5df(0x288,_0x2d4d98._0x48d28c,0x200,_0x2d4d98._0x592988)],'token_endpoint_auth_method':'client_secret_post',..._0xb019a9?{'scope':_0xb019a9}:{}};return{'clientMetadataUrl':_0x45e35f[_0x3f7ccb(0x489,_0x2d4d98._0x53354f,_0x2d4d98._0xb75576,0x52e)][_0x3f7ccb(0x48b,0x483,_0x2d4d98._0x193fa0,_0x2d4d98._0x50ea08)]?.[_0x3f7ccb(0x4ac,0x44b,0x514,0x4dd)],get 'redirectUrl'(){return _0x45e35f['callbackUrl'];},get 'clientMetadata'(){return _0x5d70c7;},async 'state'(){const _0x1adaa9={_0x352019:0x170,_0x3abd2b:0x2f9},_0x4a51ab=await readStore(_0x3bef52);if(_0x4a51ab['state'])return _0x4a51ab[_0x2e856e(_0x162ab6._0x4500d8,_0x162ab6._0x3f8f1f,0x1e3,0x246)];const _0x2bcdc7=randomUUID();function _0x2e856e(_0x6c989e,_0x8c4125,_0x2e8e7a,_0x1af963){return _0x4fb5df(_0x6c989e-0x1c5,_0x8c4125-_0x1f339a._0x55b82b,_0x2e8e7a- -_0x1f339a._0x555ee7,_0x6c989e);}return await updateStore(_0x3bef52,_0x1a1f8c=>{function _0x1d0054(_0x50503f,_0x1bf84f,_0x4c42fd,_0x3da561){return _0x2e856e(_0x1bf84f,_0x1bf84f-_0x1adaa9._0x352019,_0x50503f-_0x1adaa9._0x3abd2b,_0x3da561-0x1b8);}_0x1a1f8c[_0x1d0054(0x4dc,_0xafb8dd._0x338cf8,0x4b9,_0xafb8dd._0x54ad16)]=_0x2bcdc7;}),_0x2bcdc7;},async 'clientInformation'(){function _0x4220a7(_0xa1e5a9,_0x8db61d,_0x221399,_0x2fe6d3){return _0x3f7ccb(_0xa1e5a9-_0x166fa5._0x3d83b3,_0x8db61d-_0x166fa5._0x30dca0,_0xa1e5a9,_0x2fe6d3- -_0x166fa5._0xed2b81);}return(await readStore(_0x3bef52))[_0x4220a7(_0x357b6e._0x1f21bf,0x148,_0x357b6e._0x549a8e,_0x357b6e._0x14625c)];},async 'saveClientInformation'(_0x2552d6){const _0x1aa01b={_0x1a1893:0x4d7,_0x14f190:0x429};await updateStore(_0x3bef52,_0x19877d=>{function _0x1d3c83(_0x198beb,_0x3e0b8d,_0x4b6c41,_0x288cc6){return _0x3e7e(_0x288cc6-0x2cb,_0x198beb);}_0x19877d[_0x1d3c83(0x472,_0x1aa01b._0x1a1893,0x3a4,_0x1aa01b._0x14f190)]=_0x2552d6;});},async 'tokens'(){const _0x5c5fe7={_0x1f5026:0x104};function _0x1eebea(_0x16cc47,_0x395eb8,_0x75d17,_0x4d3f0c){return _0x4fb5df(_0x16cc47-0xe,_0x395eb8-_0x5c5fe7._0x1f5026,_0x16cc47-0x40c,_0x395eb8);}return(await readStore(_0x3bef52))[_0x1eebea(_0x48f863._0x228958,0x5ec,_0x48f863._0xd7acf5,_0x48f863._0x208405)];},async 'saveTokens'(_0x3c7989){const _0x4d03ce={_0x4c11ca:0x156,_0x221612:0x1a3};await updateStore(_0x3bef52,_0x216ac=>{function _0x1e1dde(_0x5d3da2,_0x2b32fd,_0x50c775,_0x21c004){return _0x3e7e(_0x50c775-0x16,_0x2b32fd);}_0x216ac[_0x1e1dde(0x170,_0x4d03ce._0x4c11ca,_0x4d03ce._0x221612,0x1e6)]=_0x3c7989;});},async 'redirectToAuthorization'(_0x3e89a4){function _0x38eb74(_0x3d2fa8,_0x2a21ff,_0x1ba0d3,_0x5ee701){return _0x4fb5df(_0x3d2fa8-0xe8,_0x2a21ff-0x1c7,_0x2a21ff- -0x166,_0x5ee701);}await _0x45e35f[_0x38eb74(-0x88,-0x7d,-_0x1cd880._0x19c4b9,-_0x1cd880._0x36cf87)](_0x3e89a4);},async 'saveCodeVerifier'(_0x49d9a7){await updateStore(_0x3bef52,_0x14e564=>{_0x14e564['codeVerifier']=_0x49d9a7;});},async 'codeVerifier'(){const _0x5e8d91={_0x4d0e8f:0x98};function _0x5de785(_0x2fe3fe,_0x2128f9,_0x3d93bd,_0x48f420){return _0x4fb5df(_0x2fe3fe-_0x5e8d91._0x4d0e8f,_0x2128f9-0x193,_0x48f420-0xe3,_0x3d93bd);}const _0x430d84=(await readStore(_0x3bef52))[_0x5de785(_0xad440c._0x4f8797,_0xad440c._0x3e65f9,0x215,_0xad440c._0xfdd703)];if(!_0x430d84)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x430d84;},async 'invalidateCredentials'(_0x5de60a){await updateStore(_0x3bef52,_0x502d37=>{const _0x1c3372={_0x37cb44:0x1a5};(_0x5de60a===_0x32a95f(_0x40c3ec._0x31f505,0x5ad,0x458,_0x40c3ec._0x860be7)||_0x5de60a===_0x33f865(-0x3d,_0x40c3ec._0x122ea6,-_0x40c3ec._0x2f8cb1,-0x67))&&(_0x502d37['clientInformation']=void 0x0);function _0x32a95f(_0x56a355,_0xfa87c2,_0x460a79,_0x1fc36e){return _0x3e7e(_0x1fc36e-0x28f,_0x56a355);}function _0x33f865(_0x5541bb,_0x276a69,_0x2c07b5,_0x45c1f7){return _0x3e7e(_0x2c07b5- -_0x1c3372._0x37cb44,_0x276a69);}(_0x5de60a==='all'||_0x5de60a===_0x33f865(0x84,-_0x40c3ec._0x142bbe,-_0x40c3ec._0xe273ef,-_0x40c3ec._0x593a9c))&&(_0x502d37[_0x32a95f(0x3f3,_0x40c3ec._0x1cc84a,0x48c,_0x40c3ec._0x57d700)]=void 0x0),(_0x5de60a===_0x32a95f(0x5a5,_0x40c3ec._0x15813a,0x540,_0x40c3ec._0x1f16f3)||_0x5de60a===_0x33f865(-_0x40c3ec._0x1a28b7,-0x33,0x39,0x79))&&(_0x502d37['codeVerifier']=void 0x0,_0x502d37[_0x33f865(0xb5,_0x40c3ec._0x3ca61e,0xb3,0x41)]=void 0x0),(_0x5de60a===_0x33f865(0x47,_0x40c3ec._0x4a9c39,0xcf,0x21)||_0x5de60a==='discovery')&&(_0x502d37['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x52219e){const _0x2546d6={_0x279a67:0x574,_0x27ba89:0x503};await updateStore(_0x3bef52,_0x1d98f4=>{function _0x33c705(_0x180b5b,_0x4c2f31,_0x1f20e3,_0x1b096e){return _0x3e7e(_0x1f20e3-0x3a5,_0x180b5b);}_0x1d98f4[_0x33c705(0x4c8,0x5f0,_0x2546d6._0x279a67,_0x2546d6._0x27ba89)]=_0x52219e;});},async 'discoveryState'(){function _0x43dbac(_0x1a47f7,_0x13ae04,_0x186cae,_0x33bcdf){return _0x4fb5df(_0x1a47f7-0x120,_0x13ae04-_0x2c9f74._0xecaf76,_0x13ae04-_0x2c9f74._0x30c35d,_0x33bcdf);}return(await readStore(_0x3bef52))[_0x43dbac(_0xddd4e3._0x358f08,0x58f,0x543,_0xddd4e3._0x20083a)];}};}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(_0x5413e3,_0x258c2b){const _0x4cc7f4={_0x6a621c:0x14e,_0x4c6961:0x1cd},_0x5165eb={_0x20323a:0x174};function _0x5e35af(_0x305199,_0x2c20a4,_0x40f9c2,_0x38f8a2){return _0x379285(_0x305199-0xda,_0x2c20a4-0x263,_0x40f9c2-_0x5165eb._0x20323a,_0x40f9c2);}const _0x2502b7=_0x19d349=>_0x19d349['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'');return _0x5e35af(0x1cd,0x14f,_0x4cc7f4._0x6a621c,_0x4cc7f4._0x4c6961)+_0x2502b7(_0x5413e3)+'_'+_0x2502b7(_0x258c2b);}function isObject(_0x4cf332){const _0x530749={_0x8a2151:0x1e1,_0x575c98:0x177,_0x25ba0f:0x181},_0x280b67={_0x36eb4d:0x1e0,_0x5a3390:0x181};function _0x1f19d8(_0x2b31d8,_0x49978a,_0x400ffb,_0x2c37cd){return _0x256f33(_0x49978a,_0x49978a-_0x280b67._0x36eb4d,_0x2c37cd- -0x4be,_0x2c37cd-_0x280b67._0x5a3390);}return typeof _0x4cf332==='object'&&_0x4cf332!==null&&!Array[_0x1f19d8(-0x168,-_0x530749._0x8a2151,-_0x530749._0x575c98,-_0x530749._0x25ba0f)](_0x4cf332);}function toSupportedSchema(_0x121c49){const _0x5a12e1={_0x79ef04:0x447,_0x36efc9:0x3de,_0x29b377:0x39d,_0x273fa2:0x361,_0x59a5db:0x39d,_0x145773:0x341,_0x4a36e0:0x361,_0x3e936c:0x340,_0x252fa0:0x45f,_0x218b0d:0x342,_0xa07bd7:0x371,_0x2cddde:0x363,_0x5262b3:0x20f,_0x7c65c5:0x290,_0x28c625:0x2b7,_0x2e18b3:0x43d,_0x1699c7:0x480,_0x3cf3b9:0x366,_0x275057:0x363,_0x9536c1:0x3a7,_0x2ef132:0x1ef,_0x8e6b07:0x352,_0x322413:0x355,_0x32ad63:0x331,_0x3115bf:0x407,_0x2877bc:0x419,_0x261b70:0x363,_0x2d7cbb:0x2f8,_0x50ff86:0x46a},_0x4bf66f={_0x7ec498:0x66,_0x3ec4df:0xf3},_0x7ba6e3={_0x19e60e:0x88,_0x315f03:0xd0};if(!isObject(_0x121c49))return void 0x0;function _0x33e1e5(_0x168ad7,_0x2af910,_0x29605d,_0x2def8f){return _0x256f33(_0x2def8f,_0x2af910-_0x7ba6e3._0x19e60e,_0x29605d-0x9,_0x2def8f-_0x7ba6e3._0x315f03);}if(_0x121c49[_0x33e1e5(_0x5a12e1._0x79ef04,0x4bf,0x45f,0x41a)]===_0x33e1e5(_0x5a12e1._0x36efc9,_0x5a12e1._0x29b377,_0x5a12e1._0x273fa2,0x2e2))return{'type':_0x33e1e5(_0x5a12e1._0x59a5db,_0x5a12e1._0x145773,_0x5a12e1._0x4a36e0,_0x5a12e1._0x3e936c)};if(_0x121c49[_0x33e1e5(0x4d3,0x3e4,_0x5a12e1._0x252fa0,0x448)]===_0x2c22d0(_0x5a12e1._0x218b0d,0x320,0x31b,_0x5a12e1._0xa07bd7)||_0x121c49[_0x2c22d0(0x2f5,0x2dd,_0x5a12e1._0x2cddde,0x2be)]===_0x2c22d0(_0x5a12e1._0x5262b3,_0x5a12e1._0x7c65c5,0x218,_0x5a12e1._0x28c625))return{'type':_0x33e1e5(_0x5a12e1._0x2e18b3,0x43d,0x417,_0x5a12e1._0x1699c7)};if(_0x121c49[_0x2c22d0(_0x5a12e1._0x3cf3b9,0x341,_0x5a12e1._0x275057,_0x5a12e1._0x9536c1)]===_0x2c22d0(0x303,_0x5a12e1._0x2ef132,0x256,0x303))return{'type':'boolean'};if(_0x121c49[_0x2c22d0(_0x5a12e1._0x8e6b07,0x37b,0x363,_0x5a12e1._0x322413)]===_0x2c22d0(0x3c6,0x2b6,0x35f,_0x5a12e1._0x32ad63))return{'type':'array','items':toSupportedSchema(_0x121c49[_0x33e1e5(0x472,_0x5a12e1._0x3115bf,_0x5a12e1._0x2877bc,0x403)])??{'type':_0x33e1e5(0x3a7,_0x5a12e1._0x261b70,0x361,_0x5a12e1._0x2d7cbb)}};function _0x2c22d0(_0x375118,_0x1f8d66,_0x72a28c,_0x38602c){return _0x256f33(_0x1f8d66,_0x1f8d66-_0x4bf66f._0x7ec498,_0x72a28c- -_0x4bf66f._0x3ec4df,_0x38602c-0x131);}if(_0x121c49[_0x2c22d0(0x3a5,0x345,_0x5a12e1._0x275057,0x330)]===_0x33e1e5(0x3cc,_0x5a12e1._0x50ff86,0x407,0x3c8))return toNuvinToolSchema(_0x121c49);return void 0x0;}function toNuvinToolSchema(_0x13b657){const _0x413b94={_0x18f2db:0x180,_0x202082:0xb1,_0x4dedf6:0x1b9,_0x50d74c:0x126,_0x21eeb5:0x176,_0x12f8d8:0x15c,_0x581bd0:0x155,_0x41950f:0x100,_0x3bf419:0xc4,_0x5b31e3:0x8a,_0x2d9af1:0x7f,_0x2f9b7b:0x1bf,_0x381d52:0x20a,_0x3c5b98:0x1c0,_0x3aeac9:0x8e,_0x4fd2a4:0xc2,_0x11e1e0:0xd8,_0x4ee9cb:0xe1,_0x4a4b7c:0xb4,_0xff9510:0x23e,_0x60cc31:0x17c,_0x2c5dac:0x176,_0x593b10:0x21e,_0x157f85:0x176,_0x1294a6:0xef},_0x3d33d8={_0x5c48c5:0x1a2},_0x2267e9={_0x20097b:0x18a};if(!isObject(_0x13b657)||_0x13b657[_0x193c2a(-0xfd,-0x124,-_0x413b94._0x18f2db,-_0x413b94._0x202082)]!==_0x5d7e4e(_0x413b94._0x4dedf6,_0x413b94._0x50d74c,_0x413b94._0x21eeb5,_0x413b94._0x12f8d8))return{'type':_0x193c2a(-_0x413b94._0x581bd0,-0x142,-_0x413b94._0x41950f,-_0x413b94._0x3bf419),'properties':{}};const _0x4e10aa={};function _0x193c2a(_0x4789a2,_0x55e890,_0x20dba0,_0xc20541){return _0x256f33(_0x20dba0,_0x55e890-0x1f2,_0x4789a2- -0x553,_0xc20541-_0x2267e9._0x20097b);}function _0x5d7e4e(_0x3441dd,_0x3357cf,_0x4b9de0,_0x3e866d){return _0x379285(_0x3441dd-0x17b,_0x4b9de0-_0x3d33d8._0x5c48c5,_0x4b9de0-0x2e,_0x3357cf);}const _0x3db17b=isObject(_0x13b657[_0x5d7e4e(_0x413b94._0x5b31e3,_0x413b94._0x2d9af1,0xd4,0x90)])?_0x13b657['properties']:{};for(const [_0x5a4ae3,_0x10599c]of Object[_0x193c2a(-_0x413b94._0x2f9b7b,-_0x413b94._0x381d52,-_0x413b94._0x3c5b98,-0x148)](_0x3db17b)){const _0x4e7f83=toSupportedSchema(_0x10599c);if(_0x4e7f83)_0x4e10aa[_0x5a4ae3]=_0x4e7f83;}const _0x2dd4c1=Array['isArray'](_0x13b657['required'])?_0x13b657[_0x5d7e4e(0x41,_0x413b94._0x3aeac9,_0x413b94._0x4fd2a4,_0x413b94._0x11e1e0)][_0x5d7e4e(_0x413b94._0x4ee9cb,0xa2,0xbb,_0x413b94._0x4a4b7c)](_0xe0b6a4=>typeof _0xe0b6a4===_0x193c2a(-0x1fb,-0x1ef,-0x1b9,-0x1a6)):void 0x0;return _0x2dd4c1?.[_0x193c2a(-0x24e,-0x214,-0x260,-_0x413b94._0xff9510)]?{'type':_0x5d7e4e(0x20b,_0x413b94._0x60cc31,_0x413b94._0x2c5dac,_0x413b94._0x593b10),'properties':_0x4e10aa,'required':_0x2dd4c1}:{'type':_0x5d7e4e(0x188,0xf6,_0x413b94._0x157f85,_0x413b94._0x1294a6),'properties':_0x4e10aa};}function isJsonObject(_0x24560b){const _0x5c3c37={_0x2abdd8:0x1cb,_0x44927c:0x196,_0x4dc9fd:0x11b,_0x404c85:0x1a9},_0xc9af6a={_0x1b5788:0x31},_0x2bead2={_0x3b128b:0x1ef,_0x45321e:0xd1};function _0x2a1c11(_0x25895d,_0x42c154,_0x107c6f,_0x45cfed){return _0x379285(_0x25895d-_0x2bead2._0x3b128b,_0x107c6f-0x109,_0x107c6f-_0x2bead2._0x45321e,_0x45cfed);}function _0x2c9b91(_0x1bd116,_0x5c2893,_0x5b6b9f,_0x2ab759){return _0x256f33(_0x2ab759,_0x5c2893-0x2e,_0x5c2893- -0x268,_0x2ab759-_0xc9af6a._0x1b5788);}return typeof _0x24560b===_0x2c9b91(_0x5c3c37._0x2abdd8,_0x5c3c37._0x44927c,_0x5c3c37._0x4dc9fd,_0x5c3c37._0x404c85)&&_0x24560b!==null&&!Array[_0x2c9b91(0xbf,0xd5,0xad,0xe3)](_0x24560b);}function formatMcpContent(_0x4246bb){const _0x261830={_0x58c09d:0x53b,_0x19abb1:0x46a,_0x49d9c6:0x4c1,_0x12faaf:0x4ff,_0x5acc15:0x495,_0x1dce76:0x4f2,_0x2369c5:0x4c3,_0x3aad10:0x388,_0x216e3a:0x2ee,_0x3cf736:0x3db,_0x3bd54f:0x4e1,_0x52954d:0x450,_0x253e3b:0x469},_0x49a8e7={_0x1b8118:0xeb,_0x148968:0x7a},_0xec0314={_0x246e06:0x8b,_0x47313d:0x63,_0x2bfc94:0x4a,_0x39536e:0x7f,_0x90c53:0x69,_0x378ab8:0x49,_0x2cfaee:0x25,_0x448a2c:0x4fd,_0x5a8206:0x51b,_0xc348b9:0x567},_0x411c9d={_0x2ac415:0x1c0,_0x36bf1a:0x51},_0x2128a5=Array[_0x34248f(0x47e,_0x261830._0x58c09d,0x4a3,0x42c)](_0x4246bb[_0x221bec(0x4ca,0x417,0x424,_0x261830._0x19abb1)])?_0x4246bb[_0x221bec(_0x261830._0x49d9c6,0x4bf,0x424,0x40d)]:[];function _0x34248f(_0x324002,_0x278a5b,_0x11ff08,_0xce7dd7){return _0x379285(_0x324002-_0x411c9d._0x2ac415,_0x11ff08-0x590,_0x11ff08-_0x411c9d._0x36bf1a,_0xce7dd7);}const _0x4f2cc6=_0x2128a5[_0x34248f(0x4ca,0x4a4,0x4dc,_0x261830._0x12faaf)](_0x38de06=>{const _0x58eff1={_0x3358f5:0x115,_0x4306d5:0x5a1},_0x56ca7a={_0x345f62:0x198,_0x808ebb:0x74,_0x1a2d0a:0x86};if(!isObject(_0x38de06))return'';function _0x275a56(_0x3bfdab,_0x531c0d,_0x42a78d,_0x17eccd){return _0x34248f(_0x3bfdab-_0x56ca7a._0x345f62,_0x531c0d-_0x56ca7a._0x808ebb,_0x531c0d- -_0x56ca7a._0x1a2d0a,_0x17eccd);}function _0x34e344(_0x4191d6,_0x4c7cdf,_0xae9afb,_0x423fe4){return _0x34248f(_0x4191d6-_0x58eff1._0x3358f5,_0x4c7cdf-0x16a,_0x423fe4- -_0x58eff1._0x4306d5,_0x4c7cdf);}if(_0x38de06['type']===_0x34e344(-_0xec0314._0x246e06,_0xec0314._0x47313d,-_0xec0314._0x2bfc94,-0x25)&&typeof _0x38de06['text']===_0x34e344(-0x9c,-0x183,-_0xec0314._0x39536e,-0xe3))return _0x38de06[_0x34e344(_0xec0314._0x90c53,-_0xec0314._0x2bfc94,_0xec0314._0x378ab8,-_0xec0314._0x2cfaee)];return JSON[_0x275a56(0x52e,_0xec0314._0x448a2c,_0xec0314._0x5a8206,_0xec0314._0xc348b9)](_0x38de06);})[_0x221bec(0x39a,0x34f,0x38f,0x315)](_0x4fe85b=>_0x4fe85b[_0x221bec(0x351,0x378,0x351,0x3c7)]>0x0)[_0x34248f(_0x261830._0x5acc15,_0x261830._0x1dce76,0x540,_0x261830._0x2369c5)]('\x0a');if(_0x4f2cc6[_0x221bec(_0x261830._0x3aad10,_0x261830._0x216e3a,0x351,_0x261830._0x3cf736)]>0x0)return _0x4f2cc6;function _0x221bec(_0x6758ec,_0x1868ae,_0x3c05fd,_0x4d944b){return _0x256f33(_0x1868ae,_0x1868ae-_0x49a8e7._0x1b8118,_0x3c05fd-0x4c,_0x4d944b-_0x49a8e7._0x148968);}return JSON[_0x221bec(_0x261830._0x3bd54f,_0x261830._0x52954d,_0x261830._0x253e3b,0x406)](_0x4246bb,null,0x2);}function createMcpTool(_0x3ea129){const _0x5750b6={_0xe6594a:0x127,_0x5f063c:0x20e,_0x1ce6ed:0x18f,_0x48f217:0x1a1,_0x1b404c:0x113,_0x55905d:0x252,_0x23adb8:0x1e6,_0x372b47:0x1d3,_0x4f6793:0x226,_0x169488:0x1cf,_0x2cd664:0x192,_0x439212:0x114,_0x265af7:0xbd,_0x20d253:0x42,_0x478c87:0x66,_0x47a4c5:0xc1,_0x58f23f:0xd2},_0x1f32a1={_0x530951:0x3bc,_0x3e0155:0x375,_0xe7ba7d:0x4ab,_0x410d68:0x495,_0x3a30bd:0x440,_0x57a269:0x43a,_0x571abc:0x4cd,_0x5e7513:0x48e,_0x189690:0x496,_0x3bfbd5:0x436,_0x3d268b:0x427,_0x5280cf:0x4e5,_0x1f52cb:0x4c7,_0x31d711:0x4e1,_0x28eece:0x443,_0x216e2d:0x467},_0x3e9869={_0x25314b:0x113,_0x5bb42a:0x5c5},_0x422a97={_0x2b9c76:0x139},_0x3e047a={_0x6c117a:0x101},_0x4ef6a9={_0x25a6d0:0x556,_0x58c122:0xb6};function _0x4d28eb(_0x58ada3,_0x1ec83f,_0x5a7b79,_0x565708){return _0x256f33(_0x565708,_0x1ec83f-0x1f3,_0x5a7b79- -_0x4ef6a9._0x25a6d0,_0x565708-_0x4ef6a9._0x58c122);}const _0xb38765=createMcpToolName(_0x3ea129['serverName'],_0x3ea129[_0x4d28eb(-_0x5750b6._0xe6594a,-_0x5750b6._0x5f063c,-0x18b,-0x162)][_0x18d27c(0x161,0x12a,0x12d,_0x5750b6._0x1ce6ed)]);function _0x18d27c(_0x2ff948,_0x369dd5,_0x3d0a4f,_0x2081fe){return _0x379285(_0x2ff948-0xd2,_0x369dd5-0x11c,_0x3d0a4f-_0x3e047a._0x6c117a,_0x2ff948);}return defineTool({'name':_0xb38765,'description':_0x3ea129[_0x4d28eb(-0x14e,-_0x5750b6._0x48f217,-0x18b,-_0x5750b6._0x1b404c)][_0x4d28eb(-_0x5750b6._0x55905d,-0x22a,-_0x5750b6._0x23adb8,-_0x5750b6._0x372b47)]??_0x18d27c(0xef,0xc8,0x3d,0x8b)+_0x3ea129[_0x4d28eb(-_0x5750b6._0x4f6793,-_0x5750b6._0x169488,-0x18b,-_0x5750b6._0x2cd664)]['name']+'\x20from\x20'+_0x3ea129[_0x4d28eb(-0xca,-0x7c,-0x120,-_0x5750b6._0x439212)],'inputSchema':toNuvinToolSchema(_0x3ea129[_0x18d27c(0xe5,_0x5750b6._0x265af7,_0x5750b6._0x20d253,_0x5750b6._0x478c87)][_0x18d27c(_0x5750b6._0x47a4c5,0xd3,_0x5750b6._0x58f23f,0x45)]),async *'execute'(_0x162c0d){const _0x2add15=await _0x3ea129[_0x3f25dd(0x3cd,0x409,_0x1f32a1._0x530951,_0x1f32a1._0x3e0155)][_0x3f25dd(_0x1f32a1._0xe7ba7d,_0x1f32a1._0x410d68,0x3ff,_0x1f32a1._0x3a30bd)]({'name':_0x3ea129[_0x442178(_0x1f32a1._0x57a269,0x3a7,0x3a4,0x3d5)]['name'],'arguments':isJsonObject(_0x162c0d)?_0x162c0d:{}});if(_0x2add15[_0x3f25dd(_0x1f32a1._0x571abc,_0x1f32a1._0x5e7513,0x51c,_0x1f32a1._0x189690)])throw new ToolExecutionError(formatMcpContent(_0x2add15),{'serverName':_0x3ea129[_0x3f25dd(0x4e1,0x511,_0x1f32a1._0x3bfbd5,0x4ed)],'toolName':_0x3ea129[_0x3f25dd(0x476,0x3db,_0x1f32a1._0x3d268b,0x3cc)][_0x3f25dd(0x4e3,_0x1f32a1._0x5280cf,0x552,_0x1f32a1._0x1f52cb)]});function _0x3f25dd(_0x5b71cf,_0x159fc2,_0x25dccf,_0x1f0391){return _0x18d27c(_0x25dccf,_0x5b71cf-0x3b9,_0x25dccf-0x1bf,_0x1f0391-_0x422a97._0x2b9c76);}function _0x442178(_0x8c3f98,_0x2fc73e,_0x229805,_0x5973e8){return _0x4d28eb(_0x8c3f98-_0x3e9869._0x25314b,_0x2fc73e-0x1c5,_0x8c3f98-_0x3e9869._0x5bb42a,_0x5973e8);}return yield createToolOutput(formatMcpContent(_0x2add15),{'serverName':_0x3ea129[_0x3f25dd(_0x1f32a1._0x31d711,_0x1f32a1._0x28eece,_0x1f32a1._0x216e2d,0x453)],'toolName':_0x3ea129[_0x442178(0x43a,0x45e,0x466,0x3e1)]['name'],'result':_0x2add15}),void 0x0;}});}function resolvePrefix(_0x26bc2a,_0x1fa89e){const _0x1e0f7f={_0x5692fd:0xc6,_0x2eec03:0x1e5};function _0x3fc907(_0x2ac9bc,_0x26194f,_0x33df8e,_0x17395a){return _0x379285(_0x2ac9bc-0x1bd,_0x17395a- -0x162,_0x33df8e-0x12d,_0x2ac9bc);}return _0x1fa89e[_0x3fc907(-_0x1e0f7f._0x5692fd,-0x13d,-_0x1e0f7f._0x2eec03,-0x148)]??_0x26bc2a;}function buildMcpHttpHeaders(_0x3beaee){const _0x51cc22={_0x4e37f6:0x74,_0x2ad9ac:0x84,_0x1667bd:0x93,_0x4ef4e5:0xea,_0x47801f:0x116,_0x1d7d8a:0x63,_0x3e28df:0x199,_0x27f3ce:0x1cf,_0x591413:0x9b,_0x498578:0xb0,_0xe8274b:0x28,_0x307a45:0x62},_0x5228d1={_0x65de8d:0x12c,_0x4d6570:0x83,_0x209f1c:0xc8},_0x3d5251={_0x5404db:0x66,_0x2cf822:0x14a};function _0x873f2c(_0x1ad76e,_0x5307c5,_0x4f7a38,_0x57412f){return _0x379285(_0x1ad76e-_0x3d5251._0x5404db,_0x5307c5- -_0x3d5251._0x2cf822,_0x4f7a38-0x1b2,_0x57412f);}const _0x3b0e89={..._0x3beaee[_0x420eb3(-_0x51cc22._0x4e37f6,-0x5c,-_0x51cc22._0x2ad9ac,-0x119)]??{}};function _0x420eb3(_0x403cf5,_0x13b133,_0x2920ac,_0x4ea98a){return _0x379285(_0x403cf5-_0x5228d1._0x65de8d,_0x403cf5-_0x5228d1._0x4d6570,_0x2920ac-_0x5228d1._0x209f1c,_0x13b133);}return _0x3beaee[_0x873f2c(-0x195,-0x21e,-0x1f7,-0x253)]?.[_0x873f2c(-_0x51cc22._0x1667bd,-0x11e,-_0x51cc22._0x4ef4e5,-_0x51cc22._0x47801f)]===_0x420eb3(-0x29,-0x80,-0x7e,-_0x51cc22._0x1d7d8a)&&_0x3beaee['auth'][_0x873f2c(-_0x51cc22._0x3e28df,-0x20a,-_0x51cc22._0x27f3ce,-0x1be)]&&_0x3b0e89['Authorization']===void 0x0&&(_0x3b0e89[_0x420eb3(0x75,_0x51cc22._0x591413,0xe3,0x34)]=_0x420eb3(0x54,_0x51cc22._0x498578,0xde,-0x3b)+_0x3beaee['auth']['token']),Object[_0x420eb3(0x85,-_0x51cc22._0xe8274b,_0x51cc22._0x307a45,0x12f)](_0x3b0e89)['length']>0x0?_0x3b0e89:void 0x0;}function getErrorMessage(_0x49c531){const _0x2a1280={_0x39d392:0x185,_0x246de2:0x141,_0x4b004f:0x1e9},_0x58fcd5={_0x24552:0x156};function _0xe8f968(_0x55a55d,_0x494d8e,_0x38c8f1,_0x241086){return _0x379285(_0x55a55d-0x1de,_0x241086- -_0x58fcd5._0x24552,_0x38c8f1-0x10b,_0x55a55d);}return _0x49c531 instanceof Error?_0x49c531[_0xe8f968(-_0x2a1280._0x39d392,-_0x2a1280._0x246de2,-_0x2a1280._0x4b004f,-0x168)]:String(_0x49c531);}function isUnauthorizedError(_0x5176e0){const _0x5b3d4d={_0x2b5948:0x25},_0x5be173={_0x4d36bf:0xc8,_0x5f4b0d:0x15f},_0x5793fb={_0x1c7e44:0x26,_0x2ec5a2:0x197};function _0x57cfa9(_0x46fefb,_0x535cd8,_0x5ccc13,_0x443306){return _0x379285(_0x46fefb-_0x5793fb._0x1c7e44,_0x5ccc13-0x4b5,_0x5ccc13-_0x5793fb._0x2ec5a2,_0x46fefb);}function _0xd0f00f(_0x1e3d1b,_0x2e0260,_0x48d210,_0x2c728d){return _0x379285(_0x1e3d1b-0x1f2,_0x2c728d-_0x5be173._0x4d36bf,_0x48d210-_0x5be173._0x5f4b0d,_0x48d210);}return _0x5176e0 instanceof Error&&_0x5176e0[_0xd0f00f(0x5f,-0x6a,_0x5b3d4d._0x2b5948,0x2a)][_0x57cfa9(0x4c7,0x42d,0x4c3,0x474)]==='UnauthorizedError';}async function connectMcpServer(_0x212c98,_0x330ad6,_0xbd115a){const _0xfbfd53={_0x2b792b:0x1c1,_0x3fcc0f:0x20b,_0x41d1fb:0x29a,_0x5a34a4:0x271,_0x11aa48:0x2cb,_0x156883:0x222,_0xcb39c1:0x64,_0x28bde8:0x1e,_0x4b3ba1:0x177,_0x4bc2f6:0x224,_0x3a9f21:0xd1,_0x3c32d4:0xfd,_0x368b2f:0x45,_0x297a9a:0x1f,_0x5a9df6:0x206,_0x520ff8:0x13,_0x501a58:0x1,_0x5ae9d4:0x6a,_0x322250:0x185,_0xe80d49:0x101,_0x444bce:0x300,_0x1974f4:0x1dd,_0x100c11:0x31,_0xa54b1a:0x5e,_0x109310:0x219,_0x1f6f66:0x5c,_0x40f30e:0x1af,_0x2511db:0x190,_0x5cf743:0x12f,_0x35843e:0x2f0,_0x4cb0f3:0x1eb,_0x1fc3b7:0x2b5,_0x3f69cc:0x9a,_0xe5bf7c:0x78,_0x32ab7d:0x243,_0x40c523:0x2a2,_0x9e033c:0x2ed,_0x149699:0x211,_0x867a3d:0xe7,_0x4b315a:0x80,_0x29d633:0x151,_0x53e3a7:0x12e,_0xa090c7:0x1d1,_0x4c31de:0x14f},_0x398e84={_0x5b7c62:0xa5,_0x1bdc6f:0x105},_0x21d48f={_0x52681d:0xa7,_0x206356:0x92},_0x15c83d={_0x1216b4:0xea,_0x5369a0:0x159},_0x161fbb={_0x49af81:0x173},_0x1e1dc5={_0x213f59:0xed};function _0x4ede52(_0x290737,_0x27eb90,_0x445736,_0x12a37f){return _0x256f33(_0x12a37f,_0x27eb90-_0x1e1dc5._0x213f59,_0x27eb90- -0x355,_0x12a37f-0xb2);}function _0x11607a(_0x1974a8,_0x43f396,_0x144952,_0x26122b){return _0x379285(_0x1974a8-0x1c8,_0x1974a8- -_0x161fbb._0x49af81,_0x144952-0x24,_0x43f396);}const _0x5017e2=new Client({'name':_0x11607a(-0x1bd,-_0xfbfd53._0x2b792b,-0x120,-_0xfbfd53._0x3fcc0f),'version':_0x11607a(-_0xfbfd53._0x41d1fb,-_0xfbfd53._0x5a34a4,-_0xfbfd53._0x11aa48,-_0xfbfd53._0x156883)});if(_0x330ad6[_0x4ede52(-_0xfbfd53._0xcb39c1,-0x29,0x2b,_0xfbfd53._0x28bde8)]===_0x11607a(-0x1b3,-0x1af,-0x15d,-0x248)||_0x330ad6[_0x11607a(-_0xfbfd53._0x4b3ba1,-0x218,-0xd1,-_0xfbfd53._0x4bc2f6)]){if(!_0x330ad6[_0x4ede52(0xb8,_0xfbfd53._0x3a9f21,_0xfbfd53._0x3c32d4,0x145)])throw new Error(_0x4ede52(-_0xfbfd53._0x368b2f,0x1e,_0xfbfd53._0x297a9a,0x32)+_0x212c98+_0x11607a(-0x263,-_0xfbfd53._0x5a9df6,-0x26a,-0x218));if(_0x330ad6[_0x4ede52(-_0xfbfd53._0x520ff8,_0xfbfd53._0x501a58,-0x40,-_0xfbfd53._0x5ae9d4)]?.[_0x4ede52(_0xfbfd53._0x322250,_0xfbfd53._0xe80d49,0xdd,0x176)]===_0x11607a(-0x269,-0x2f5,-_0xfbfd53._0x444bce,-0x2c3)&&!_0xbd115a?.['oauth'])throw new Error(_0x11607a(-0x22a,-_0xfbfd53._0x1974f4,-0x1c8,-0x183)+_0x212c98+'\x20requires\x20OAuth\x20connection\x20options');const _0x3a66bb=buildMcpHttpHeaders(_0x330ad6),_0x394ac5=_0x330ad6[_0x4ede52(_0xfbfd53._0x100c11,0x1,-_0xfbfd53._0xa54b1a,-0x24)]?.['type']===_0x11607a(-0x269,-_0xfbfd53._0x109310,-0x2d5,-0x2ab)&&_0xbd115a?.['oauth']?createMcpOAuthProvider({'serverName':_0x212c98,'callbackUrl':_0xbd115a[_0x4ede52(0xd,-0x21,0x58,_0xfbfd53._0x1f6f66)][_0x11607a(-_0xfbfd53._0x40f30e,-_0xfbfd53._0x2511db,-0x175,-_0xfbfd53._0x5cf743)],'storageDir':_0xbd115a[_0x11607a(-0x269,-_0xfbfd53._0x35843e,-_0xfbfd53._0x4cb0f3,-_0xfbfd53._0x1fc3b7)][_0x4ede52(0xa7,_0xfbfd53._0x3f69cc,_0xfbfd53._0xe5bf7c,_0xfbfd53._0x3c32d4)],'config':_0x330ad6[_0x11607a(-0x247,-_0xfbfd53._0x32ab7d,-_0xfbfd53._0x40c523,-_0xfbfd53._0x9e033c)],'onRedirect':_0x2affa3=>_0xbd115a[_0x4ede52(0x75,-0x21,-0x97,0x78)]?.[_0x11607a(-0x291,-0x209,-0x324,-0x333)](_0x212c98,_0x2affa3)}):void 0x0,_0x47186a=new StreamableHTTPClientTransport(new URL(_0x330ad6[_0x11607a(-_0xfbfd53._0x4b3ba1,-_0xfbfd53._0x149699,-0xcb,-0x116)]),{'authProvider':_0x394ac5,'requestInit':_0x3a66bb?{'headers':_0x3a66bb}:void 0x0});await _0x5017e2[_0x11607a(-0x183,-0x168,-0xeb,-0x13f)](_0x47186a);}else{if(!_0x330ad6[_0x11607a(-0x14f,-0x167,-_0xfbfd53._0x867a3d,-_0xfbfd53._0x3c32d4)])throw new Error(_0x11607a(-0x22a,-0x27b,-0x25d,-0x1f4)+_0x212c98+_0x4ede52(0xa,0x22,0x1a,-_0xfbfd53._0x4b315a));const _0x52e13c=new StdioClientTransport({'command':_0x330ad6[_0x4ede52(_0xfbfd53._0x29d633,0xf9,0x4b,0x188)],'args':_0x330ad6[_0x4ede52(0x9b,0x9f,0xfc,_0xfbfd53._0x53e3a7)]??[],'env':_0x330ad6[_0x11607a(-_0xfbfd53._0xa090c7,-_0xfbfd53._0x4c31de,-0x1d6,-0x228)]});await _0x5017e2['connect'](_0x52e13c);}return{async 'listTools'(){const _0x30ae67={_0x2fbeae:0x30d,_0x4cc91c:0x61,_0x148e11:0xb5};function _0x3a2f06(_0x2f58d8,_0x3a57fc,_0x544f23,_0x44cf57){return _0x11607a(_0x2f58d8-_0x30ae67._0x2fbeae,_0x44cf57,_0x544f23-_0x30ae67._0x4cc91c,_0x44cf57-_0x30ae67._0x148e11);}return await _0x5017e2[_0x3a2f06(0xd5,_0x15c83d._0x1216b4,_0x15c83d._0x5369a0,0xdc)]();},async 'callTool'(_0x2f9fa9){function _0x4e87e8(_0x5b6091,_0x1015b4,_0x6ae893,_0x490e81){return _0x4ede52(_0x5b6091-_0x21d48f._0x52681d,_0x5b6091-_0x21d48f._0x206356,_0x6ae893-0xc,_0x490e81);}return await _0x5017e2[_0x4e87e8(_0x398e84._0x5b7c62,0x116,0xa,_0x398e84._0x1bdc6f)]({'method':'tools/call','params':_0x2f9fa9},CallToolResultSchema);},async 'close'(){await _0x5017e2['close']();}};}async function createMcpToolsFromServers(_0x3051ba){const _0x47bd50={_0x44a1a7:0x155,_0x99d16e:0x1d3,_0x19ce55:0x22a,_0x22b3ae:0x174,_0xf6acf7:0x2c6,_0x5c1c0a:0x1c7,_0x3fdd7a:0x20f,_0x2e879e:0x21a,_0x3089b:0x233,_0x1aa0a6:0x1b5,_0x572d36:0x1c6,_0x54b7d7:0x1f8,_0x4bc1a2:0x22d,_0x6eb8d4:0x227,_0xc93540:0x62,_0x51d270:0x29f,_0x150671:0x2ff,_0x2cafde:0x28c,_0x31b9bc:0x116,_0x2c8ab9:0x205,_0xad24c6:0x29a,_0x236774:0x213,_0x8320ba:0x1e7,_0x17d6e0:0xfa},_0x3c09e9={_0x54b3ed:0x235,_0x421b42:0x2a6},_0x49caeb={_0x15c48e:0x5af,_0x9631ff:0x12f},_0x1ca2be=_0x3051ba[_0x329c3b(-_0x47bd50._0x44a1a7,-_0x47bd50._0x99d16e,-0x12f,-0x12d)]??connectMcpServer,_0xd609ea=[];function _0x329c3b(_0x2d0ec7,_0xf19f6f,_0x4d357c,_0x26420){return _0x256f33(_0xf19f6f,_0xf19f6f-0x18e,_0x26420- -0x547,_0x26420-0xbb);}const _0x4c56fd={},_0x236b39=[];for(const [_0x18a894,_0x3a3db3]of Object[_0x329c3b(-_0x47bd50._0x19ce55,-_0x47bd50._0x22b3ae,-0x23f,-0x1b3)](_0x3051ba[_0x329c3b(-_0x47bd50._0xf6acf7,-_0x47bd50._0x5c1c0a,-_0x47bd50._0x3fdd7a,-_0x47bd50._0x2e879e)]??{})){if(_0x3a3db3[_0x329c3b(-_0x47bd50._0x3089b,-0x15e,-_0x47bd50._0x1aa0a6,-_0x47bd50._0x572d36)]===![]){_0x4c56fd[_0x18a894]={'status':_0x4a92da(-_0x47bd50._0x54b7d7,-_0x47bd50._0x4bc1a2,-0x220,-0x222)};continue;}try{const _0x1febd8=await _0x1ca2be(_0x18a894,_0x3a3db3,_0x3051ba[_0x329c3b(-_0x47bd50._0x6eb8d4,-_0x47bd50._0x99d16e,-0x245,-0x1e6)]);_0xd609ea[_0x329c3b(-0x11d,-0x87,-_0x47bd50._0xc93540,-0xf6)](_0x1febd8);const _0x50d522=await _0x1febd8['listTools']();let _0x531a1f=0x0;for(const _0x307f65 of _0x50d522[_0x4a92da(-_0x47bd50._0x51d270,-0x2f2,-0x205,-_0x47bd50._0x150671)]){const _0x12d39b=_0x3051ba[_0x329c3b(-_0x47bd50._0x2cafde,-0x27d,-0x2d4,-0x235)]?.[_0x18a894]?.[_0x307f65['name']];if(_0x12d39b===![])continue;_0x531a1f+=0x1,_0x236b39[_0x329c3b(-_0x47bd50._0x31b9bc,-0x97,-0x192,-0xf6)](createMcpTool({'serverName':resolvePrefix(_0x18a894,_0x3a3db3),'tool':_0x307f65,'client':_0x1febd8}));}_0x4c56fd[_0x18a894]={'status':_0x329c3b(-_0x47bd50._0x4bc1a2,-0x149,-0x183,-0x188),'toolCount':_0x531a1f};}catch(_0x4b6a5c){_0x4c56fd[_0x18a894]=isUnauthorizedError(_0x4b6a5c)?{'status':_0x4a92da(-_0x47bd50._0x2c8ab9,-_0x47bd50._0xad24c6,-0x223,-_0x47bd50._0x236774),'message':getErrorMessage(_0x4b6a5c)}:{'status':_0x329c3b(-_0x47bd50._0x8320ba,-0x1bc,-_0x47bd50._0x17d6e0,-0x17a),'message':getErrorMessage(_0x4b6a5c)};}}function _0x4a92da(_0xa13c06,_0x22b70d,_0x3b95f2,_0x58443b){return _0x256f33(_0x22b70d,_0x22b70d-0xf5,_0xa13c06- -_0x49caeb._0x15c48e,_0x58443b-_0x49caeb._0x9631ff);}return{'tools':_0x236b39,'servers':_0x4c56fd,async 'close'(){const _0x25af2f={_0x5b22d2:0x3a8,_0x4e1ea5:0xe7},_0x56acc7={_0x19573f:0x1f3,_0x4a9a6f:0x60,_0x28e182:0x25};function _0x5aca1c(_0x5dd534,_0x4c3886,_0x56f764,_0x439027){return _0x4a92da(_0x5dd534-_0x56acc7._0x19573f,_0x4c3886,_0x56f764-_0x56acc7._0x4a9a6f,_0x439027-_0x56acc7._0x28e182);}function _0x58e1d5(_0x4075e8,_0x54e9f9,_0x224289,_0xbcfdda){return _0x4a92da(_0x4075e8-_0x25af2f._0x5b22d2,_0x54e9f9,_0x224289-0xbc,_0xbcfdda-_0x25af2f._0x4e1ea5);}await Promise[_0x58e1d5(_0x3c09e9._0x54b3ed,_0x3c09e9._0x421b42,0x1db,0x1c4)](_0xd609ea['map'](_0x782ff0=>_0x782ff0[_0x58e1d5(0x102,0x11f,0xe8,0xea)]()));}};}function getCommand(_0x2a64c2){const _0x5aa126={_0x44f818:0x51b,_0x3f74c9:0x4b2,_0x5cadc2:0x5aa,_0x4800b2:0x6a7,_0x1895dc:0x4b6,_0x12b197:0x4f0,_0x5dd50c:0x581},_0xe6d824={_0x4e702b:0x607,_0x5a966a:0xb4},_0x7a99ec={_0x22cc96:0xad,_0x584935:0x1ae};function _0x259d8b(_0x386603,_0xd60d45,_0x1b97d2,_0x23928d){return _0x379285(_0x386603-_0x7a99ec._0x22cc96,_0x386603-0x5f6,_0x1b97d2-_0x7a99ec._0x584935,_0xd60d45);}function _0x5e511d(_0x2987fd,_0x4d14df,_0x5cdab1,_0x55510f){return _0x379285(_0x2987fd-0x1ad,_0x5cdab1-_0xe6d824._0x4e702b,_0x5cdab1-_0xe6d824._0x5a966a,_0x4d14df);}if(_0x2a64c2&&typeof _0x2a64c2==='object'&&!Array['isArray'](_0x2a64c2)&&typeof _0x2a64c2[_0x5e511d(0x5f8,0x69c,0x62b,0x66e)]===_0x5e511d(_0x5aa126._0x44f818,0x4ae,0x535,_0x5aa126._0x3f74c9))return _0x2a64c2[_0x259d8b(0x61a,_0x5aa126._0x5cadc2,0x640,_0x5aa126._0x4800b2)];return _0x5e511d(_0x5aa126._0x1895dc,0x593,_0x5aa126._0x12b197,_0x5aa126._0x5dd50c);}var MOCK_WORKSPACE_LISTING=[_0x379285(-0xeb,-0x7b,-0x96,-0x5b),_0x256f33(0x431,0x3a2,0x427,0x394),_0x256f33(0x4a3,0x439,0x454,0x3d1),_0x256f33(0x355,0x2c7,0x359,0x32d),_0x256f33(0x32e,0x3c9,0x382,0x2e9),_0x379285(-0x7,-0x33,-0x54,-0x8e),_0x379285(-0x5b,-0x23,-0xb9,-0x23),_0x256f33(0x48f,0x3d4,0x414,0x36c),_0x256f33(0x2fe,0x409,0x395,0x353),_0x256f33(0x35e,0x3ef,0x3e6,0x478),_0x256f33(0x306,0x3a8,0x3b3,0x38d),_0x379285(-0xee,-0x85,-0x2d,-0xb),_0x379285(-0x2b,-0x94,0x1,-0x32),_0x256f33(0x3f2,0x371,0x401,0x3da),_0x379285(0x31,-0x25,-0xa0,-0x9d),_0x379285(-0xb1,-0x86,-0x96,-0xcc),_0x379285(-0x141,-0xfb,-0x135,-0xa0)][_0x256f33(0x45a,0x3f5,0x3da,0x3b7)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x256f33(0x44b,0x408,0x3ce,0x36c),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x379285(-0xc0,-0x2c,-0xc4,-0x66),'properties':{'command':{'type':_0x379285(-0xef,-0xd2,-0x11a,-0xb8)}},'required':[_0x379285(-0x6c,0x24,0x3f,-0x53)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x50eb32){return{'output':_0x50eb32,'structured':{'value':_0x50eb32}};}function createUnknownToolResult(_0x4681b6){const _0x549c46={_0xfe0b98:0xe0,_0x4fffb1:0x17f},_0x7c02cf={_0x5a74f4:0x42},_0x559dfb={_0x150b5a:0xe1};function _0x575988(_0x4e92a3,_0x437866,_0x3a8066,_0x575d87){return _0x256f33(_0x437866,_0x437866-0x38,_0x3a8066- -0x1d,_0x575d87-_0x559dfb._0x150b5a);}function _0x5db796(_0x559177,_0x320420,_0x14c1aa,_0x1d1a2e){return _0x256f33(_0x1d1a2e,_0x320420-0x97,_0x320420- -0x571,_0x1d1a2e-_0x7c02cf._0x5a74f4);}return{'callId':_0x4681b6['id'],'toolName':_0x4681b6[_0x5db796(-0x13c,-0x139,-_0x549c46._0xfe0b98,-_0x549c46._0x4fffb1)],'status':_0x5db796(-0x13e,-0x1a4,-0x175,-0x129),'output':'Unknown\x20tool:\x20'+_0x4681b6['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x1e6ea3,_0x1321e4){return{'callId':_0x1e6ea3['id'],'toolName':_0x1e6ea3['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x1e6ea3['input']),'exitCode':0x0},'chunks':[_0x1321e4],'meta':createMeta()};}function createMockToolRuntime(){const _0x2938c1={_0x5d2f9e:0x2c7,_0x3fc773:0x24e,_0x56ce66:0x2af,_0x220a5e:0x46a,_0x414561:0x3dc,_0x34c780:0x34a},_0x2fcad8=async(_0x3e37f7,_0x1d052a)=>{function _0x3f34d4(_0x5ce891,_0x58de46,_0x4b81d0,_0x981c8c){return _0x3e7e(_0x981c8c-0x3f,_0x5ce891);}if(_0x3e37f7[_0x3f34d4(_0x2938c1._0x5d2f9e,_0x2938c1._0x3fc773,0x217,_0x2938c1._0x56ce66)]!==_0x15bfe9(0x453,_0x2938c1._0x220a5e,_0x2938c1._0x414561,_0x2938c1._0x34c780))return createUnknownToolResult(_0x3e37f7);function _0x15bfe9(_0x58f039,_0x324211,_0x5b0629,_0x46bb09){return _0x3e7e(_0x5b0629-0x1d6,_0x46bb09);}const _0x405964=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x3e37f7,_0x405964);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xfc7860,_0x553cd6){function _0x582786(_0x7dfcaa,_0x4a427a,_0xb566ee,_0x219230){return _0x3e7e(_0x7dfcaa-0x2d1,_0x4a427a);}return await Promise[_0x582786(0x545,0x514,0x5ac,0x55a)](_0xfc7860['map'](async _0x2f602f=>{return await _0x2fcad8(_0x2f602f,_0x553cd6);}));},async 'execute'(_0x54e5e0,_0x47337d){return await _0x2fcad8(_0x54e5e0,_0x47337d);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x319604,_0x2ef346){const _0x502957={_0x21e6b9:0x1ad,_0x441857:0x11f},_0x2cc3d0={_0x2fde80:0x196,_0x33246a:0x159};function _0x329d84(_0x379642,_0x4fd4a1,_0x5c816f,_0x4201cb){return _0x256f33(_0x4fd4a1,_0x4fd4a1-_0x2cc3d0._0x2fde80,_0x5c816f- -_0x2cc3d0._0x33246a,_0x4201cb-0x8c);}return typeof _0x319604===_0x329d84(_0x502957._0x21e6b9,_0x502957._0x441857,0x1c6,0x196)?await _0x319604(_0x2ef346):_0x319604;}function getDelegatedAgentDefinition(_0x4e4df4,_0x131907){const _0x3691f0={_0x40f3b3:0x169,_0x35e4ee:0x210},_0x14c943={_0x2403cf:0x115,_0x4714d3:0x1a4};function _0x4d83d6(_0x676707,_0x32a412,_0x42d019,_0x2a2d05){return _0x379285(_0x676707-_0x14c943._0x2403cf,_0x32a412-_0x14c943._0x4714d3,_0x42d019-0xe4,_0x2a2d05);}return _0x4e4df4[_0x4d83d6(_0x3691f0._0x40f3b3,0x1ba,_0x3691f0._0x35e4ee,0x1d1)]?.[_0x131907];}function createRunSummary(_0x4263dc){const _0x2742b3={_0x53d8d2:0x182,_0x26803a:0x153,_0x17641a:0x13d,_0x48087f:0x1b2,_0x3695bb:0xd1,_0x5a7d81:0xfb,_0x56fe12:0x5a,_0x2a779d:0x1b6,_0x5f036c:0x129,_0x1dfdd4:0x187,_0x5b7f2f:0x20e,_0x2c378f:0x2e0,_0x4bd0c8:0x262,_0x103595:0x294,_0x3e552d:0x236,_0x3a8709:0x1d8,_0x51d376:0x1fe,_0x4ca3b4:0x1b9,_0x447e63:0x15e,_0x5528d2:0x13a},_0x1fefdd={_0x3e6616:0x1d1},_0x184c5={_0x319500:0x253};function _0x3ee08c(_0x47716b,_0x3bb423,_0x5375c1,_0xe34c67){return _0x379285(_0x47716b-0xc9,_0x5375c1-_0x184c5._0x319500,_0x5375c1-0x1aa,_0x3bb423);}function _0xece20c(_0x866434,_0x200479,_0x4a5645,_0x4fb35a){return _0x256f33(_0x4a5645,_0x200479-_0x1fefdd._0x3e6616,_0x200479- -0x299,_0x4fb35a-0xc1);}return{'runId':_0x4263dc['runId'],'agentId':_0x4263dc[_0x3ee08c(0x13b,_0x2742b3._0x53d8d2,_0x2742b3._0x26803a,0x1a4)],'sessionId':_0x4263dc[_0xece20c(_0x2742b3._0x17641a,0x12a,_0x2742b3._0x48087f,_0x2742b3._0x3695bb)],'status':_0x4263dc[_0xece20c(0xf7,0xe3,_0x2742b3._0x5a7d81,_0x2742b3._0x56fe12)],'parentSessionId':_0x4263dc[_0xece20c(_0x2742b3._0x2a779d,_0x2742b3._0x5f036c,0x16c,_0x2742b3._0x1dfdd4)],..._0x4263dc[_0x3ee08c(0x1e0,_0x2742b3._0x5b7f2f,0x262,0x2a4)]!==void 0x0?{'originToolCallId':_0x4263dc[_0x3ee08c(0x22e,_0x2742b3._0x2c378f,_0x2742b3._0x4bd0c8,_0x2742b3._0x103595)]}:{},..._0x4263dc[_0x3ee08c(_0x2742b3._0x3e552d,_0x2742b3._0x3a8709,0x215,0x263)]!==void 0x0?{'errorMessage':_0x4263dc['errorMessage']}:{},..._0x4263dc[_0x3ee08c(0x28c,0x1d4,0x247,_0x2742b3._0x51d376)]?.[_0xece20c(0xa7,0x13a,_0x2742b3._0x4ca3b4,0x156)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x4263dc['result'][_0xece20c(_0x2742b3._0x447e63,_0x2742b3._0x5528d2,0x157,0x1c1)])}:{}};}function createRunSummaryOutput(_0x42cee2,_0x4bf771){const _0x47713e={_0x58ac30:0x3e7,_0x5d42e5:0x41a,_0x3a947c:0x25f,_0x10d1da:0x1f4},_0x581882={_0x48e0b5:0xe4,_0x4c7cec:0x169},_0x2603ec={_0x174d29:0x1a0,_0xacb850:0xa6},_0x5227d2=createRunSummary(_0x42cee2);function _0x32edbe(_0x51a75d,_0x15462c,_0x15e229,_0x2cfc5f){return _0x256f33(_0x15462c,_0x15462c-_0x2603ec._0x174d29,_0x51a75d- -_0x2603ec._0xacb850,_0x2cfc5f-0x1e4);}function _0x35ac8d(_0x3ab1e6,_0xc84fb4,_0x585721,_0x295d8e){return _0x379285(_0x3ab1e6-_0x581882._0x48e0b5,_0x295d8e-0x53d,_0x585721-_0x581882._0x4c7cec,_0x585721);}const _0x25be20=_0x5227d2[_0x35ac8d(0x36b,_0x47713e._0x58ac30,0x3c4,_0x47713e._0x5d42e5)];return createToolOutput(typeof _0x25be20==='string'&&_0x25be20[_0x32edbe(_0x47713e._0x3a947c,_0x47713e._0x10d1da,0x2d3,0x2a3)]>0x0?_0x25be20:_0x4bf771,_0x5227d2);}function getRunTerminalErrorMessage(_0x1f158d){const _0x5a5dd0={_0x5c1967:0x1e9,_0x5980e6:0x202,_0x488e85:0x2d6,_0x5552ea:0x20a,_0x3c3289:0x20,_0x1bc4a8:0x15,_0x25c694:0x20f,_0xd6c1c0:0x1c1,_0x98da0f:0x242,_0x4e365d:0x248,_0x8a38e7:0x1ad,_0x4b58f0:0x126},_0xac59dc={_0x4f36bc:0x153,_0x10a2ec:0x237},_0xce030b={_0x38da81:0xd6,_0x355190:0x72,_0x45ad7f:0x157},_0x121317=_0x1f158d?.[_0x104ecb(_0x5a5dd0._0x5c1967,0x22d,_0x5a5dd0._0x5980e6,_0x5a5dd0._0x488e85)][_0x2cff27(0x7f,0x3d,0x5f,-0x19)]['at'](-0x1);function _0x2cff27(_0xec01e9,_0x494d5e,_0x55834f,_0x447d62){return _0x379285(_0xec01e9-_0xce030b._0x38da81,_0x447d62-_0xce030b._0x355190,_0x55834f-_0xce030b._0x45ad7f,_0xec01e9);}function _0x104ecb(_0x3b1814,_0x47e89c,_0x5d7b99,_0x10bab9){return _0x379285(_0x3b1814-_0xac59dc._0x4f36bc,_0x47e89c-_0xac59dc._0x10a2ec,_0x5d7b99-0x10,_0x10bab9);}if(_0x121317?.[_0x104ecb(_0x5a5dd0._0x5552ea,0x189,0x16c,0xfe)]===_0x2cff27(-0x1e,-_0x5a5dd0._0x3c3289,_0x5a5dd0._0x1bc4a8,_0x5a5dd0._0x1bc4a8)&&_0x121317['output'][_0x104ecb(_0x5a5dd0._0x25c694,0x19e,_0x5a5dd0._0xd6c1c0,_0x5a5dd0._0x98da0f)]()['length']>0x0)return _0x121317[_0x104ecb(_0x5a5dd0._0x4e365d,_0x5a5dd0._0x8a38e7,0x18a,_0x5a5dd0._0x4b58f0)];return void 0x0;}function formatAbortedRunMessage(_0x151c65,_0xb525aa){const _0x589337={_0x278d5c:0xae,_0x28e72b:0x109,_0x19e752:0x18c,_0x4f33d5:0x2b0,_0x277333:0x213,_0x474950:0x25a,_0x3bb039:0x297,_0x395c58:0x171,_0x2633f8:0xdb},_0x2ffde3={_0x269e85:0x175,_0x2f1f12:0x1ed,_0x50fdb3:0x83},_0x4b06be='Agent\x20run\x20'+_0x151c65+_0x312af5(_0x589337._0x278d5c,0x18e,_0x589337._0x28e72b,0x12c);function _0x1782c4(_0x1bea5d,_0x1c8cce,_0x5b6d48,_0x2195dd){return _0x256f33(_0x1bea5d,_0x1c8cce-0xec,_0x1c8cce- -0xf2,_0x2195dd-0x1d0);}function _0x312af5(_0x2da6eb,_0x3e5bde,_0x414fdf,_0x17b867){return _0x379285(_0x2da6eb-_0x2ffde3._0x269e85,_0x17b867-_0x2ffde3._0x2f1f12,_0x414fdf-_0x2ffde3._0x50fdb3,_0x2da6eb);}if(!_0xb525aa||_0xb525aa[_0x312af5(_0x589337._0x19e752,0x18f,0x1ef,0x154)]()[_0x1782c4(_0x589337._0x4f33d5,_0x589337._0x277333,_0x589337._0x474950,_0x589337._0x3bb039)]===0x0||_0xb525aa===_0x4b06be)return _0x4b06be;return _0x4b06be+_0x312af5(0xeb,0x119,_0x589337._0x395c58,_0x589337._0x2633f8)+_0xb525aa;}function createAssignTaskTool(_0x1202f8){const _0xd0f9f8={_0x245ec1:0x442,_0xbcfb98:0x500,_0x619704:0x4f7,_0x51556b:0x2e,_0x336144:0x74},_0x1e683d={_0x5ca5bb:0xf1,_0x2f3f98:0x14f,_0x219c80:0xea,_0x5657da:0x194,_0x5b3e41:0x195,_0x13175d:0x63,_0x5d2ab1:0xaf,_0x84ef4:0x34,_0xf840f7:0x148,_0x342bec:0x1b5,_0x24925a:0x17d,_0x33ec0e:0xd9,_0x3e5716:0xf0,_0x2c3aa4:0xd4,_0x3d2039:0x51,_0x2b8dd1:0x4b,_0x16ca18:0x1b1,_0x2838ba:0xdc,_0x352073:0xfd,_0x3633b8:0x10,_0x177203:0xf3,_0x439363:0x4f,_0x114f59:0x101,_0x149869:0xe0,_0x3c5b95:0x157,_0x132c35:0xdf,_0x4fa407:0x173,_0x39fd68:0x1d,_0x1b33d0:0x25,_0x4335fb:0x108,_0x6e00ca:0x9f,_0x1d4bde:0x10f,_0x17e697:0x16e,_0x286cf8:0x11a,_0xa3cb0b:0x3b,_0x1767b8:0x2,_0x206afa:0xa3,_0x222d4e:0xe2,_0x5d2aae:0xb5,_0x532de6:0xaa,_0x458658:0x143,_0x2bd3b:0xb1,_0x351041:0x98,_0x59031f:0x2c,_0x516586:0xbf,_0xb9eb8c:0xaa,_0x255d12:0x3,_0x7f352c:0xf,_0x108e60:0x16,_0x440b24:0x86,_0xbf1aa6:0x121,_0x1febd5:0x17c,_0x1448db:0x13a,_0x2cb7c8:0xaa,_0x27c2d6:0xf4,_0x1327b2:0xb4,_0x5b26f5:0x7d,_0x5341ad:0xd2,_0x43a3ce:0xef,_0x29766e:0x197,_0x311419:0x23,_0x458065:0x40},_0x1f354c={_0x26f23e:0xc9,_0x53205c:0x121,_0x5c4d41:0x1fb},_0x2763d7={_0x13a5ca:0x180};function _0x46041d(_0x3afc55,_0x1ee401,_0x13d049,_0x215881){return _0x379285(_0x3afc55-0xd5,_0x3afc55-0x5b3,_0x13d049-_0x2763d7._0x13a5ca,_0x215881);}function _0x20f632(_0x3b100e,_0xb3ef05,_0x182140,_0x5499ab){return _0x256f33(_0x182140,_0xb3ef05-0x12,_0x5499ab- -0x26f,_0x5499ab-0xb6);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':'object','properties':{'agentId':{'type':_0x46041d(0x4e1,0x58f,0x57f,_0xd0f9f8._0x245ec1)},'task':{'type':_0x46041d(0x4e1,_0xd0f9f8._0xbcfb98,_0xd0f9f8._0x619704,0x4ff)}},'required':[_0x20f632(_0xd0f9f8._0x51556b,_0xd0f9f8._0x336144,0xdf,0xbb),'task']},async *'execute'(_0x1c73bb,_0xd4b07d){const _0x4b58b0={_0x12665c:0x25a,_0x34914c:0x194},_0x5ef7e3={_0x2881ae:0x5a4},_0x3a6309={_0x3bce54:0x1cb,_0x3a33dc:0xc0},_0x2d6812=createDelegatedRunId(),_0x59ba52={'agentId':_0x1c73bb[_0x2430d1(-_0x1e683d._0x5ca5bb,-_0x1e683d._0x2f3f98,-0x19d,-0x75)],'parentSessionId':_0xd4b07d['sessionId'],'runId':_0x2d6812,..._0xd4b07d['toolCallId']!==void 0x0?{'toolCallId':_0xd4b07d[_0x2430d1(-_0x1e683d._0x219c80,-0xa3,-_0x1e683d._0x5657da,-_0x1e683d._0x5b3e41)]}:{}},_0x537c4f=getDelegatedAgentDefinition(_0x1202f8,_0x1c73bb['agentId']);if(!_0x537c4f)throw new ToolExecutionError(_0x2430d1(0x0,-_0x1e683d._0x13175d,0x99,-0x45)+_0x1c73bb['agentId'],{'agentId':_0x1c73bb[_0x11a455(_0x1e683d._0x5d2ab1,0x50,0x15e,_0x1e683d._0x84ef4)]});function _0x11a455(_0x457af5,_0xceae07,_0x14a58b,_0x3fbe3a){return _0x20f632(_0x457af5-_0x3a6309._0x3bce54,_0xceae07-_0x3a6309._0x3a33dc,_0xceae07,_0x457af5- -0xc);}const _0x363d6d=new Agent(await resolveDelegatedAgentOptions(_0x537c4f,_0x59ba52));let _0x1a37f4={'runId':_0x2d6812,'agentId':_0x1c73bb['agentId'],'sessionId':_0x363d6d[_0x11a455(_0x1e683d._0xf840f7,0xd8,_0x1e683d._0x342bec,_0x1e683d._0x24925a)],'status':_0x2430d1(-0xda,-0xce,-0x147,-_0x1e683d._0x33ec0e),'parentSessionId':_0xd4b07d[_0x2430d1(-0x58,-_0x1e683d._0x3e5716,-_0x1e683d._0x2c3aa4,_0x1e683d._0x3d2039)],..._0xd4b07d['toolCallId']!==void 0x0?{'originToolCallId':_0xd4b07d[_0x2430d1(-_0x1e683d._0x219c80,-0xc4,-_0x1e683d._0x2b8dd1,-0x17d)]}:{}};function _0x2430d1(_0x1be12e,_0x3eee41,_0x1deec1,_0x4b5050){return _0x46041d(_0x1be12e- -_0x5ef7e3._0x2881ae,_0x3eee41-0xe8,_0x1deec1-0x192,_0x3eee41);}const _0x473b20=new AbortController(),_0x761865=addAbortListener(_0xd4b07d[_0x11a455(0x108,0xc2,0x14a,0xa8)],()=>{const _0x53aa3b={_0x32cf31:0xea};function _0x5ab3ed(_0x1fed4e,_0x22bc59,_0x58b597,_0x4de07e){return _0x11a455(_0x4de07e- -_0x4b58b0._0x12665c,_0x22bc59,_0x58b597-0xce,_0x4de07e-_0x4b58b0._0x34914c);}function _0x5baf0b(_0xf50f84,_0x15289e,_0x2d6c79,_0x11dc55){return _0x11a455(_0x15289e-0x475,_0x2d6c79,_0x2d6c79-_0x53aa3b._0x32cf31,_0x11dc55-0x1a9);}_0x473b20[_0x5ab3ed(-0x190,-0x144,-_0x1f354c._0x26f23e,-_0x1f354c._0x53205c)](_0xd4b07d[_0x5ab3ed(-0x111,-_0x1f354c._0x5c4d41,-0x121,-0x152)]?.['reason']);});yield createToolOutput(_0x11a455(0x1ad,0x250,_0x1e683d._0x16ca18,0x120)+_0x1a37f4['runId']+'.',{'runId':_0x1a37f4[_0x2430d1(-0x7f,-_0x1e683d._0x2838ba,-_0x1e683d._0x352073,_0x1e683d._0x3633b8)],'agentId':_0x1a37f4[_0x11a455(_0x1e683d._0x5d2ab1,_0x1e683d._0x177203,0xe0,0x150)],'sessionId':_0x1a37f4[_0x2430d1(-0x58,0x27,-_0x1e683d._0x439363,-0xbf)],'status':_0x1a37f4[_0x11a455(_0x1e683d._0x114f59,_0x1e683d._0x149869,0x1a4,_0x1e683d._0x3c5b95)]});try{const _0x22a6f1=await _0x363d6d[_0x11a455(0xd5,_0x1e683d._0x132c35,_0x1e683d._0x4fa407,0x9d)](_0x1c73bb[_0x2430d1(-0x7d,-_0x1e683d._0x39fd68,-0xf,_0x1e683d._0x1b33d0)],{'signal':_0x473b20[_0x11a455(_0x1e683d._0x4335fb,0x173,0x18a,0x167)]});_0x1a37f4={..._0x1a37f4,'status':_0x22a6f1['status'],'result':_0x22a6f1};if(_0x22a6f1[_0x2430d1(-_0x1e683d._0x6e00ca,-0x85,-_0x1e683d._0x1d4bde,-0x7c)]!==_0x11a455(0x117,0x172,_0x1e683d._0x17e697,_0x1e683d._0x286cf8)){const _0x41b415=getRunTerminalErrorMessage(_0x22a6f1),_0x2969d4=formatAbortedRunMessage(_0x1a37f4[_0x2430d1(-0x7f,-0x7c,-_0x1e683d._0xa3cb0b,-_0x1e683d._0x1767b8)],_0x41b415);throw new ToolExecutionError(_0x2969d4,{...createRunSummary(_0x1a37f4),'aborted':!![],'errorMessage':_0x2969d4});}return createRunSummaryOutput(_0x1a37f4,_0x11a455(_0x1e683d._0x2c3aa4,0x168,_0x1e683d._0x206afa,_0x1e683d._0x222d4e)+_0x1a37f4[_0x11a455(0x121,0x19b,0x13a,0x127)]+'\x20completed.');}catch(_0x143442){if(_0x143442 instanceof ToolExecutionError)throw _0x143442;if(isAbortError(_0x143442)||_0x473b20[_0x11a455(0x108,0x143,0x62,_0x1e683d._0x5d2aae)][_0x11a455(_0x1e683d._0x532de6,_0x1e683d._0x458658,_0x1e683d._0x2bd3b,0x24)]||_0xd4b07d[_0x2430d1(-_0x1e683d._0x351041,-_0x1e683d._0x59031f,-0x104,-_0x1e683d._0x516586)][_0x11a455(_0x1e683d._0xb9eb8c,0x2a,0x14f,0x33)]){const _0x40c9f9=getRunTerminalErrorMessage(_0x1a37f4[_0x2430d1(_0x1e683d._0x255d12,-0xa6,0xa4,-_0x1e683d._0x7f352c)])??(_0x143442 instanceof Error?_0x143442[_0x2430d1(-0x3,-_0x1e683d._0x108e60,_0x1e683d._0x440b24,0x27)]:String(_0x143442)),_0x47aa53=formatAbortedRunMessage(_0x1a37f4[_0x11a455(_0x1e683d._0xbf1aa6,0x18d,_0x1e683d._0x1febd5,_0x1e683d._0x1448db)],_0x40c9f9);_0x1a37f4={..._0x1a37f4,'status':_0x11a455(_0x1e683d._0x2cb7c8,_0x1e683d._0x27c2d6,0x1,_0x1e683d._0x1327b2),'errorMessage':_0x47aa53};throw new ToolExecutionError(_0x47aa53,{...createRunSummary(_0x1a37f4),'aborted':!![],'errorMessage':_0x47aa53});}const _0x4344e9=getRunTerminalErrorMessage(_0x1a37f4['result'])??(_0x143442 instanceof Error?_0x143442[_0x11a455(0x19d,0x1ec,0x194,0x167)]:String(_0x143442))??_0x11a455(0xd4,0x157,0x58,_0x1e683d._0x5b26f5)+_0x1a37f4[_0x11a455(_0x1e683d._0xbf1aa6,_0x1e683d._0x5341ad,_0x1e683d._0x43a3ce,_0x1e683d._0x29766e)]+_0x11a455(0x18b,0xe1,0x1d0,0x120);_0x1a37f4={..._0x1a37f4,'status':_0x2430d1(0x2e,-_0x1e683d._0x311419,0x8,-_0x1e683d._0x458065),'errorMessage':_0x4344e9};throw new ToolExecutionError(_0x4344e9,{...createRunSummary(_0x1a37f4),'errorMessage':_0x4344e9});}finally{_0x761865();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x1eaeec){return[createAssignTaskTool(_0x1eaeec)];}function _0x2dbf(){const _0x885b49=['B2zM','lNrTCc4','C2vYDMvY','D2HPy2GGCMC','ody4oduYruPzAvbw','Dg9ju09tDhjPBMC','C2vYDMvYtMfTzq','ig1HDgnO','BMfTzq','B3jPz2LUvg9VBenHBgXjza','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','B2XKvgv4Da','ywXS','BxrPBwu','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','DxrMoa','ywDLBNrZ','yxnZAwDU','CMfUzg9T','ls1NBg9IpseUz2L0lYO','ChjLzML4','Cg9W','u2TPBgWGjW','ls1NBg9I','CgfYC2vjBNq','zMfPBgvK','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','te9dquXbufbeqvrb','u0Lhs0Lmta','BM93','y29TBwfUza','l3vZCI9SB2nHBc9IAw4VCMC','BwLU','ChvZAa','yxjYyxK','mJqZmdu0DwPdu1bZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','CMvZB2X2zq','DhLWzq','BMv3vgv4Da','Aw5KzxHpzG','C2TPBgXZ','yxv0BW','ugf0AcbPCYbUB3qGysbMAwXLoIa','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','CMvWBgfJzq','C3bSAxq','vMLLD2vKigLTywDLigzPBgu6ia','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uUie9WDgLVBMfSBhKGC3bLy2LMEsbSAw5LihjHBMDLCY4','mc4WlJa','y29TBwfUzhm','BgvUz3rO','y3DK','zMLUywXnzxnZywDLvgv4Da','A2LSBgvK','y2XVC2u','y2XPzw50twv0ywrHDgfvCMW','Aw50zwDLCG','B25szwrPCMvJDa','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','C29YDa','Dg9VBhm','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ywXSB3DLzfrVB2XZ','BhmGlwXH','BgLTAxq','C2HLBgXqyxrO','BwnWxW','D2HLCMuGCMC','ienHDxnLoIa','Aw1Hz2uVCg5N','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','ugf0AcbUB3qGzM91BMq6ia','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','D2LUmZi','rgv0ywLSoIa','zNvUy3rPB24','CMvSyxrPDMu','tuLnrtOG','y2XPzw50','Bw9Kzq','Aw5ZDhj1y3rPB25Z','ywjVCNrLza','y2XPzw50sw5MB3jTyxrPB24','BgLUzvn0yxj0','CMLWz3jLCa','lMPWzW','ywDLBNrjza','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','DhjHBNnWB3j0','C2vYDMvYCW','CgXHDgzVCM0','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','Aw5JBhvKzq','Dg9VBenHBgXjza','xg5DkJ8','AgvHzgvYCW','B2f1DgG','Dg9mB3DLCKnHC2u','ls1NBg9Ipq','zw5K','C3rKB3v0','Dhj1BMm','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','tg9HzgvKigzYB206ia','AxnbCNjHEq','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ig1Z','Aw1Hz2u','CNvUBMLUzW','C2HPzNq','zMLSDgvY','o1TExg5DkJ8','mZi2mZq2mfH6AgvKAa','yxv0Ag9YAxPHDgLVBL9JB2rL','Bg9HzenVBw1HBMq','l3vZCI9IAw4VCMC','yM9VBgvHBG','CMvXDwLYzwq','C3vIyxjYyxK','DhjPBuvUza','w1bFxL1BxhnCu10QpW','AxndB250zxH0','qwDLBNqGCNvUia','C2vUza','uhjVz3jHBuzPBgvZ','C2L6zq','lNDLyNa','CMvHC29U','Dg9Rzw5Z','yxv0Aa','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','C3rYAw5N','CgfJA2fNzs5QC29U','Aw1Hz2uVD2vICa','y29UzMLN','ChjVCgvYDgLLCW','z2XVyG','rMLSzvjLywq','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','zgvMyxvSDfrPBwvVDxrnCW','y29UBMvJDgLVBG','DgfZA2TPBgW','y2HHCKnVzgvbDa','y3jSzG','BgLZDfrVB2XZ','lMPZB24','Bg9JywXLq29TCgfYzq','CMvXDwvZDa','ihDHCYbHyM9YDgvKlG','Dg9Rzw4','zgf0yq','AxnbyNnVBhv0zq','yxjNDw1LBNriAw50','AwDUB3jL','AgLNAa','zgvZy3jPChrPB24','Bg9HzfnRAwXS','zgv0ywLS','tunqihnLCNzLCIa','BgLUzu51Bq','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','BwfW','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','q29Tu3bLyW','r2XVyG','BgLUzvrLEhq','AwDUB3jLt3v0Chv0','C3rHDhvZ','rMLSzuvKAxq','yMvHCMvY','Aw5JBhvKzxm','ls1JB2X1Bw4','zw5HyMXLza','C3jJl2fNzw50l2fNzw50lNrZ','C2LNBMfS','CMCUzxHL','DgvZDa','B25Jzq','l29WDc9OB21LyNjLDY9IAw4VCMC','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','yxnJAwK','l3vZCI9IAw4VC2G','ls0T','y29UC3rYDwn0B3i','rMLSzu5LDW','AxneAxjLy3rVCNK','l2jPBI9ZAa','qxzHAwXHyMXLignVBw1HBMrZoG','DhjPBq','y29TCgXLDgvK','l3vZCI9IAw4VyMfZAa','zw50CMLLCW','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','C3jJl3nOyxjLzc90ExbLCY50CW','zgLZy292zxj5u3rHDgu','C3rKzxjY','ouLkr1PwyG','u0HfteW','Cgf0DgvYBIbPCYbYzxf1AxjLza','CNvUswq','zgLYBMfTzq','DgfZAW','Dg9VBfjLC3vSDhm','B3v0Chv0','y29UDgv4Da','ugfJA2fNzxm','B3jPz2LUywW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','DMvYAwzPzxi','zhj5uNvU','C291CMnL','C2v0','yxv0AfjLCxvPCMvK','mtC0odi0oeXfvKjJEa','lI4U','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbZBYb0AguGBw9KzwWGy2fUigLUC3bLy3qGAxrZihzPC3vHBcbJB250zw50lIbtDxbWB3j0CYbqtKCSiePqruCSifDLyLaSigfUzcbhsuyGAw1Hz2vZlIbvC2uGDgHPCYbMB3iGC2nYzwvUC2HVDhmSigrPywDYyw1ZlcbWAg90B3mSigfUzcbVDgHLCIbPBwfNzsbMAwXLCZSGDxnLiezPBgvszwfKigzVCIb0zxH0igzPBgvZlG','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','C3rHCNrZv2L0Aa','DgHLBG','C2XPy2u','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','ywjVCNq','mxzOtwfPvW','CgLWzq','zgLZywjSzwq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','z2v0','CgLK','mti1otK4nfnpBgTysa','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','lMDPzG','ru5pru5u','y29UBMvJDgvK','Aw1Hz2uVz2LM','zgvMyxvSDen3za','CgfYzw50u2vZC2LVBKLK','C2vZC2LVBKLK','BxrPBwvnCW','r0LgodLH','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','ls1YzwDLEha','q29TBwfUzcaN','ls1OAwrKzw4','Dg9VBa','zw52','zxjYB3i','qMfZAa','lu5Vtg9NBW','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','AxntEw1IB2XPy0XPBMS','lMPWzwC','zMLUywXnzxnZywDL','AxngAwXL','y29KzvzLCMLMAwvY','tunqihrVB2WG','igj5DgvZ','y29UDgvUDa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','AM9PBG','zgLYzwn0B3j5','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','yMLYDgH0Aw1L','zMLSzvbHDgG','lunVBw1HBMq','BNv2Aw4','Aw5WDxrty2HLBwe','rMLSzsb3CML0DgvUigf0ia','tNv2Aw4','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','Cgf0Aa','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','nta2mZqWC2Hbwvvb','y29Uy2f0','A2LSBa','Ahr0Ca','uKLgrG','zxjYB3jnzxnZywDL','zxHPDcbJB2rLia','y2fSBgjHy2TvCMW','C3rVCMfNzurPCG','Bwf4','Dg9tDhjPBMC','nvzNuMrXsW','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','yxjNCW','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','mJfqzLH5qKe','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','DxbKyxrL','ndKXmdm0vMzhsxjy','y2f0y2G','qMvHCMvYia','Cgf0DgvYBG','AxngAw5PDgu','B2jQzwn0','ls1MB2XSB3C','y2fSBfrVB2W','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','wZ0+nY04kcLD','tgLUzsa','Agv4','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','igzHAwXLzc4','C3jJl2v4yw1WBgvZl2rLBw8UDhm','BgLUzuvUza','u2HLBgWGBM90igzVDw5KoIa','yMfZzty0','vMLLD0zPBgu','lw5i','rM91BMqG','BNvTyMvY','zMLSzq','AxrLBxm','B3rOzxi','C2nVCgvZ','AgfZ','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','l2jPBI9IyxnO','Dgv4Da','zgLNzxn0','BwvZC2fNzq','zNjVBq','y29UBMvJDa','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','qxv0Ag9YAxPHDgLVBG','C3rYAw5NAwz5','CMvZDwX0','CMLWz3jLCcbMywLSzwq6ia','C3rHDgu','otzZsKfgvKK','AxnfCNjVCG','y29Kzq','Aw1Hz2uVANbLzW','CMvMCMvZAf90B2TLBG','DxjS','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','u3rHCNrLzcbHz2vUDcbYDw4G','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','yMfZzw5HBwu','Bg93','A2v5CW','twLJCM9ZB2z0','D3jPDgu','tg9HzfnRAwXS'];_0x2dbf=function(){return _0x885b49;};return _0x2dbf();}import*as _0x1583dd from'path';function buildDescription2(_0x44f5dc){const _0x4de9fe={_0x4baf3d:0x108,_0x1d4b6d:0x14d,_0x215711:0x1ef,_0x51f78a:0x275,_0x5f2017:0x231,_0x210db5:0x426,_0x1b15ca:0x3dc,_0x5da662:0x1ed,_0x2c83d1:0x204,_0x43847d:0x448,_0x4430ac:0x484},_0x42d3c6={_0x448af8:0x19d,_0x5e72b:0x272,_0x380c21:0xe8};if(_0x44f5dc[_0x2c1209(0x121,0x16f,_0x4de9fe._0x4baf3d,_0x4de9fe._0x1d4b6d)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';function _0x2c1209(_0x55a943,_0xeed7b,_0x2cc830,_0x2dcb22){return _0x379285(_0x55a943-_0x42d3c6._0x448af8,_0x2dcb22-_0x42d3c6._0x5e72b,_0x2cc830-_0x42d3c6._0x380c21,_0x2cc830);}const _0x3c3bfd=[_0x2c1209(_0x4de9fe._0x215711,_0x4de9fe._0x51f78a,_0x4de9fe._0x5f2017,0x218),_0x4d295a(0x457,0x45a,_0x4de9fe._0x210db5,_0x4de9fe._0x1b15ca),_0x2c1209(0x208,_0x4de9fe._0x5da662,0x1ba,_0x4de9fe._0x2c83d1),'Available\x20skills\x20(skill_name:\x20description):',..._0x44f5dc['map'](_0x3e2841=>'-\x20'+_0x3e2841[_0x2c1209(0x245,0x2d9,0x21f,0x280)]+':\x20'+_0x3e2841['description'])];function _0x4d295a(_0x18174e,_0x5da29e,_0x57aa57,_0x4ea9b3){return _0x379285(_0x18174e-0x14e,_0x57aa57-0x498,_0x57aa57-0x16d,_0x4ea9b3);}return _0x3c3bfd[_0x4d295a(0x47a,0x3bd,_0x4de9fe._0x43847d,_0x4de9fe._0x4430ac)]('\x0a');}function createLoadSkillTool(_0x50ca7a){const _0x2aa3c5={_0x51331c:0x94,_0x27bc83:0x6b,_0x350a0c:0x42e,_0x21356e:0x464,_0xc471ba:0x478,_0x1a9e8f:0x4f7,_0xf8efca:0x51d,_0x85a7a7:0x4c1,_0x282acb:0x595,_0x176caf:0x4ec,_0x419796:0x4fd,_0x5093f6:0x48e},_0xfd531f={_0x152c17:0x1fe,_0x15af96:0x297,_0x307e31:0x1ff,_0x10a264:0x19a,_0x557f2b:0x21f,_0x562d99:0x2f5,_0x399673:0xc4,_0x9caafc:0xdd,_0x36cb8f:0xa1,_0x2db11a:0x244,_0x493bb1:0x22f,_0xd36ec4:0x2f0,_0x13f4e7:0x5,_0x117e7a:0x5a,_0x22c3e2:0x65,_0x17231b:0x1d,_0xead245:0x46,_0x5945eb:0x28,_0x44ff4f:0x48,_0x426114:0x3b,_0x9f51b5:0x63,_0x439ce8:0x40,_0x2e3390:0x3c,_0x1e1770:0x25,_0x232094:0x1f1,_0x2d1b0c:0x206,_0x2d5e81:0x1d0,_0x4eb854:0x28c,_0x5eea0b:0x205,_0xff2b15:0x64,_0x5119cf:0xe9,_0x3dedaf:0x12a,_0xe708bf:0x197,_0x41e369:0xef,_0x221317:0x148,_0x4c0114:0x1f8,_0x25f0e7:0x196,_0x20cb0a:0x1d2,_0x5aa82c:0xb,_0x3b03b4:0x2f,_0x5c0169:0x98},_0x46523e={_0x260674:0x125},_0xf24e51={_0x58cf29:0x1d9,_0x566443:0x9a};function _0x1a58a3(_0x2a2cd8,_0x5eb572,_0x47accd,_0xdf4983){return _0x379285(_0x2a2cd8-_0xf24e51._0x58cf29,_0xdf4983- -_0xf24e51._0x566443,_0x47accd-0x39,_0x2a2cd8);}const _0x3561cf=new Map(_0x50ca7a[_0x1a58a3(-0x66,-0x109,-_0x2aa3c5._0x51331c,-_0x2aa3c5._0x27bc83)][_0x2c9237(_0x2aa3c5._0x350a0c,_0x2aa3c5._0x21356e,0x3e7,_0x2aa3c5._0xc471ba)](_0x5e7d92=>[_0x5e7d92[_0x2c9237(0x53b,0x526,0x4c7,0x52c)],_0x5e7d92])),_0xbaefd7=buildDescription2(_0x50ca7a['skills']);function _0x2c9237(_0x5b3e2d,_0x8e21ba,_0x108617,_0x2ec7b6){return _0x256f33(_0x2ec7b6,_0x8e21ba-0x1e,_0x8e21ba-0xee,_0x2ec7b6-_0x46523e._0x260674);}return defineTool({'name':_0x2c9237(_0x2aa3c5._0x1a9e8f,_0x2aa3c5._0xf8efca,0x55f,_0x2aa3c5._0x85a7a7),'description':_0xbaefd7,'inputSchema':{'type':_0x2c9237(_0x2aa3c5._0x282acb,_0x2aa3c5._0x176caf,0x4f6,_0x2aa3c5._0x419796),'properties':{'name':{'type':'string'}},'required':[_0x2c9237(0x4e9,0x526,0x574,_0x2aa3c5._0x5093f6)]},async *'execute'(_0x52369b){const _0x1db22f={_0x20653b:0x179,_0x4b7ff3:0x1a7},_0x388fb8={_0x160a54:0xf2},_0x197f69=_0x3561cf[_0x10035f(0x194,0x1c5,0x183,0x223)](_0x52369b[_0x10035f(_0xfd531f._0x152c17,0x244,_0xfd531f._0x15af96,_0xfd531f._0x307e31)]);function _0x10035f(_0x4a4fa8,_0x5b5e60,_0x1873ce,_0x5cb1fb){return _0x1a58a3(_0x5cb1fb,_0x5b5e60-_0x388fb8._0x160a54,_0x1873ce-0x120,_0x5b5e60-0x2d0);}if(!_0x197f69){const _0x41473e=Array[_0x10035f(0x2ac,0x225,_0xfd531f._0x10a264,0x1e6)](_0x3561cf['keys']())[_0x10035f(0x22d,0x1e6,_0xfd531f._0x557f2b,0x1db)](',\x20');throw new ToolExecutionError(_0x10035f(_0xfd531f._0x562d99,0x252,0x1e1,0x242)+_0x52369b[_0x4cdd22(0x85,_0xfd531f._0x399673,_0xfd531f._0x9caafc,_0xfd531f._0x36cb8f)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x41473e,{'name':_0x52369b[_0x10035f(0x20e,_0xfd531f._0x2db11a,_0xfd531f._0x493bb1,_0xfd531f._0xd36ec4)]});}function _0x4cdd22(_0x57d4cf,_0x3a176b,_0x148e1e,_0xda24e2){return _0x1a58a3(_0xda24e2,_0x3a176b-_0x1db22f._0x20653b,_0x148e1e-_0x1db22f._0x4b7ff3,_0x57d4cf-0x111);}const _0x56d4b3=await _0x50ca7a[_0x4cdd22(-0x42,_0xfd531f._0x13f4e7,-_0xfd531f._0x117e7a,-_0xfd531f._0x22c3e2)](_0x197f69),_0x355d32=_0x197f69[_0x4cdd22(-0xb,-_0xfd531f._0x17231b,_0xfd531f._0xead245,-0x57)][_0x4cdd22(_0xfd531f._0x5945eb,-_0xfd531f._0x44ff4f,_0xfd531f._0x426114,_0xfd531f._0x9f51b5)]??_0x1583dd[_0x4cdd22(-0x16,-_0xfd531f._0x439ce8,_0xfd531f._0x2e3390,-_0xfd531f._0x1e1770)](_0x197f69['source'][_0x10035f(0x28e,_0xfd531f._0x232094,_0xfd531f._0x2d1b0c,_0xfd531f._0x2d5e81)]),_0x21c780=['##\x20Skill:\x20'+_0x56d4b3[_0x10035f(0x226,0x244,_0xfd531f._0x4eb854,_0xfd531f._0x5eea0b)],'',_0x56d4b3[_0x4cdd22(-0x8f,-_0xfd531f._0xff2b15,-_0xfd531f._0x5119cf,-_0xfd531f._0x3dedaf)],'',_0x10035f(0x12f,_0xfd531f._0xe708bf,0x1c4,0x204),_0x10035f(_0xfd531f._0x41e369,_0xfd531f._0x221317,0x1d4,0x18c)+_0x197f69[_0x10035f(_0xfd531f._0x4c0114,0x1b4,0x1fa,0x175)][_0x10035f(_0xfd531f._0x25f0e7,0x1f1,_0xfd531f._0x20cb0a,0x298)],'Base\x20directory:\x20'+_0x355d32]['join']('\x0a');return yield createToolOutput(_0x21c780,{'id':_0x56d4b3['id'],'name':_0x56d4b3['name'],'path':_0x197f69[_0x4cdd22(-_0xfd531f._0x5aa82c,_0xfd531f._0x3b03b4,_0xfd531f._0x5c0169,-0x44)]['path'],'baseDirectory':_0x355d32}),void 0x0;}});}import{readFile as _0x161915,stat as _0x177acc}from'fs/promises';import*as _0x363047 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x379285(0x8b,0x30,0x17,0x3f),_0x256f33(0x386,0x3b0,0x36f,0x3ba),_0x256f33(0x3b7,0x41b,0x42b,0x461),_0x379285(-0xcf,-0x87,-0xd4,-0x44)]),PNG_SIGNATURE=Buffer[_0x379285(-0x56,-0x11,-0x9,0x82)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x1b0a41,_0x5c611b){const _0x80ed40={_0xfa31b4:0x151,_0x6c6c93:0x187,_0x592e46:0x193,_0x3e4d28:0x23d,_0x5e28ef:0x26d,_0x2c3346:0x25d,_0x23cd77:0x203,_0x18ac76:0x4b,_0x583f18:0x5,_0x23dc13:0x7c,_0x3d85ac:0xba,_0x530ba7:0x241,_0x21536d:0x1d7,_0x422163:0x21b,_0x580da5:0x189,_0x19f19a:0x1c5,_0x58fde5:0x2fa,_0x1c02f7:0x26b,_0x2ae7bb:0x114,_0xd2e5b:0xc4,_0xaa5ae6:0x26c,_0x2dcf55:0x1f2,_0x34c59f:0x1cf,_0x19e3de:0x16c,_0x1e11f6:0x23b,_0x20534e:0x1d4,_0x59c785:0x85,_0x195f3a:0x47,_0x51d87a:0x89,_0x3ef042:0x58,_0x3baf35:0x89,_0x5eeeae:0xd3,_0x530a16:0x1a4,_0x52052f:0x239,_0x1d93cb:0x1b9},_0x3fc258={_0x151e69:0x11f};if(_0x1b0a41['subarray'](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x21dce8(0x1f1,_0x80ed40._0xfa31b4,_0x80ed40._0x6c6c93,_0x80ed40._0x592e46);if(_0x1b0a41[0x0]===0xff&&_0x1b0a41[0x1]===0xd8&&_0x1b0a41[0x2]===0xff)return _0x21dce8(0x256,0x344,_0x80ed40._0x3e4d28,0x29e);function _0x21dce8(_0x2e8fb2,_0x421484,_0x395c0c,_0x1c6b97){return _0x256f33(_0x395c0c,_0x421484-0x1c9,_0x1c6b97- -0x186,_0x1c6b97-0x168);}const _0x1f19ea=_0x1b0a41['subarray'](0x0,0x6)[_0x21dce8(_0x80ed40._0x5e28ef,0x1be,0x29d,0x26b)](_0x21dce8(0x1fa,_0x80ed40._0x2c3346,0x168,_0x80ed40._0x23cd77));if(_0x1f19ea==='GIF87a'||_0x1f19ea===_0x5bb3be(_0x80ed40._0x18ac76,-_0x80ed40._0x583f18,_0x80ed40._0x23dc13,_0x80ed40._0x3d85ac))return _0x21dce8(0x1d9,_0x80ed40._0x530ba7,_0x80ed40._0x21536d,0x23a);if(_0x1b0a41[_0x21dce8(_0x80ed40._0x422163,_0x80ed40._0x580da5,0x258,_0x80ed40._0x19f19a)](0x0,0x4)[_0x21dce8(0x297,0x1fd,_0x80ed40._0x58fde5,_0x80ed40._0x1c02f7)](_0x21dce8(0x1c1,0x175,0x236,0x203))===_0x5bb3be(_0x80ed40._0x2ae7bb,0xcf,0xa2,_0x80ed40._0xd2e5b)&&_0x1b0a41['subarray'](0x8,0xc)[_0x21dce8(0x1d6,_0x80ed40._0xaa5ae6,0x208,0x26b)](_0x21dce8(0x1b8,_0x80ed40._0x2dcf55,_0x80ed40._0x34c59f,0x203))==='WEBP')return _0x21dce8(_0x80ed40._0x19e3de,0x218,_0x80ed40._0x1e11f6,_0x80ed40._0x20534e);const _0x2208ce=_0x363047['extname'](_0x5c611b)[_0x5bb3be(_0x80ed40._0x59c785,-_0x80ed40._0x195f3a,-0x14,-0x7f)]();if(_0x2208ce==='.png')return'image/png';if(_0x2208ce===_0x5bb3be(_0x80ed40._0x51d87a,_0x80ed40._0x3ef042,-0x20,-0xd)||_0x2208ce===_0x5bb3be(0xd3,0x15,_0x80ed40._0x3baf35,_0x80ed40._0x5eeeae))return'image/jpeg';if(_0x2208ce===_0x21dce8(_0x80ed40._0x530a16,_0x80ed40._0x52052f,0x210,0x237))return _0x21dce8(0x266,0x26e,_0x80ed40._0x1d93cb,0x23a);function _0x5bb3be(_0x30d5ae,_0x57de9b,_0x180c30,_0x5e33fd){return _0x379285(_0x30d5ae-_0x3fc258._0x151e69,_0x180c30-0xe1,_0x180c30-0xab,_0x5e33fd);}if(_0x2208ce==='.webp')return _0x21dce8(0x244,0x1b2,0x25a,_0x80ed40._0x20534e);return void 0x0;}function normalizeDetail(_0x5d632c){const _0x46518b={_0x285f1e:0x1ab,_0x19cf82:0x240,_0x57b348:0x2b6,_0x5964cf:0x23c,_0x1fa0ba:0x224,_0xc032e9:0x2d0},_0x33a977={_0x3914ef:0x2d,_0x5179a3:0x167},_0x4afc35={_0x3417d4:0x2c,_0x5bad71:0x2a0};function _0x464b23(_0x585ef3,_0x11dfe8,_0x24f58c,_0x3e866a){return _0x379285(_0x585ef3-_0x4afc35._0x3417d4,_0x585ef3-_0x4afc35._0x5bad71,_0x24f58c-0x5b,_0x11dfe8);}function _0x4afda1(_0x5810a1,_0x10d362,_0x522220,_0x375587){return _0x256f33(_0x375587,_0x10d362-_0x33a977._0x3914ef,_0x522220-0xd5,_0x375587-_0x33a977._0x5179a3);}if(_0x5d632c===void 0x0)return void 0x0;const _0x48ed17=_0x5d632c['trim']()[_0x464b23(_0x46518b._0x285f1e,0x15d,_0x46518b._0x19cf82,0x115)]();if(!SUPPORTED_DETAILS[_0x464b23(0x289,_0x46518b._0x57b348,0x266,0x30d)](_0x48ed17))throw new ToolExecutionError(_0x464b23(_0x46518b._0x5964cf,_0x46518b._0x1fa0ba,_0x46518b._0xc032e9,0x20f)+_0x5d632c,{'detail':_0x5d632c});return _0x48ed17;}function createViewFileTool(_0x41588e={}){const _0x403a70={_0x42221c:0x2a6,_0x4a6c67:0x2f6,_0x189563:0x594,_0x2a2404:0x54b,_0x40ca88:0x504,_0x46263e:0x569,_0x3c4904:0x1ff,_0x2e9e5f:0x282,_0x424908:0x55a,_0x402d8e:0x5fe,_0x4fe735:0x4a3,_0x50cdd5:0x4b4,_0x3487fc:0x4dc,_0x31522c:0x254,_0x354f53:0x1e9,_0x3f8f0e:0x591,_0x49aabc:0x541,_0x2f74d8:0x521},_0x449640={_0x2edc37:0x383,_0x1f1baf:0x37e,_0x3653d3:0x228,_0x514a1f:0x2d7,_0x2af400:0x26f,_0x5a0aa3:0x2ff,_0x25deb2:0x32d,_0x4efd93:0x2cc,_0x348d08:0x77,_0x2e1741:0x3cf,_0x3d101a:0x67,_0x2ca8c1:0x71,_0x43a659:0x4b,_0x554f9f:0x20f,_0x270311:0x26d,_0x1fbfc7:0x20f,_0x43bcd3:0x2d2,_0xa80abd:0x28c,_0x507e92:0x2aa,_0x782af2:0x2b8,_0x46caec:0x21b,_0x32dd82:0x192,_0x26e4dc:0x1a2,_0x481258:0x21f,_0x54c565:0x199,_0x16a440:0x2f8,_0x59a13f:0x25e,_0x194319:0x2f1,_0x266f72:0xa5,_0x5346ea:0x1ea,_0x1233ee:0x2bb,_0x158c69:0x2a0,_0x365343:0x134,_0x2b8d6d:0x63,_0x48357a:0x7d,_0x499674:0x3c2,_0x70ea96:0x38f,_0x1ed00b:0xb6,_0x540e8f:0xee,_0x2f1bd1:0x3a8,_0x5bcdcb:0x251,_0x24292c:0xc2,_0x56432c:0xc1,_0x541dcc:0x34f,_0x4c7475:0x3cd,_0x3ada68:0x2be,_0x211cd7:0x14,_0x476c28:0x66,_0x532764:0x31},_0x47abd4={_0x22d389:0xc2,_0x79c50a:0x4c6,_0xd20844:0x1ba},_0x1309cc={_0x104f60:0x1a8,_0x4a0dfc:0x5ac};function _0x31763e(_0x435e1b,_0xcaa171,_0x94ff5c,_0x838665){return _0x256f33(_0x94ff5c,_0xcaa171-_0x1309cc._0x104f60,_0xcaa171- -_0x1309cc._0x4a0dfc,_0x838665-0x153);}const _0x516bff=_0x363047['resolve'](_0x41588e['defaultCwd']??process[_0x31763e(-0x269,-_0x403a70._0x42221c,-0x25e,-_0x403a70._0x4a6c67)]());function _0x46923b(_0x427f64,_0x3ce1be,_0x21a371,_0x1ddbab){return _0x256f33(_0x1ddbab,_0x3ce1be-0x183,_0x3ce1be-0x15c,_0x1ddbab-0x17c);}const _0x2806cd=_0x41588e['maxBytes']??DEFAULT_MAX_BYTES,_0x5b58de=_0x41588e[_0x46923b(0x58d,_0x403a70._0x189563,0x59c,_0x403a70._0x2a2404)]??_0x46923b(_0x403a70._0x40ca88,0x567,0x4f7,_0x403a70._0x46263e);return defineTool({'name':_0x5b58de,'description':_0x31763e(-0x221,-_0x403a70._0x3c4904,-_0x403a70._0x2e9e5f,-0x27b),'inputSchema':{'type':_0x46923b(0x50e,_0x403a70._0x424908,0x54f,_0x403a70._0x402d8e),'properties':{'path':{'type':_0x46923b(_0x403a70._0x4fe735,_0x403a70._0x50cdd5,_0x403a70._0x3487fc,0x480)},'detail':{'type':_0x31763e(-0x253,-_0x403a70._0x31522c,-0x2be,-_0x403a70._0x354f53)}},'required':[_0x46923b(_0x403a70._0x3f8f0e,_0x403a70._0x49aabc,0x5ad,_0x403a70._0x2f74d8)]},async *'execute'(_0x2aa89f){const _0x1e68b3={_0x472be2:0x1bd},_0x48ba46=resolveWorkspacePath(_0x516bff,_0x2aa89f[_0x2e9141(_0x449640._0x2edc37,0x2ff,_0x449640._0x1f1baf,0x3a4)]);await assertWorkspaceFile(_0x48ba46);const _0x54b400=await _0x177acc(_0x48ba46);if(_0x54b400['size']>_0x2806cd)throw new ToolExecutionError(_0x2e9141(0x2a1,_0x449640._0x3653d3,_0x449640._0x514a1f,_0x449640._0x2af400)+_0x2aa89f[_0x2e9141(0x36e,_0x449640._0x5a0aa3,_0x449640._0x25deb2,_0x449640._0x4efd93)],{'path':_0x2aa89f['path'],'maxBytes':_0x2806cd,'size':_0x54b400[_0x1cdf65(-0xe,0x12,-_0x449640._0x348d08,-0x22)]});function _0x2e9141(_0x2c7713,_0x4e3a7c,_0x350358,_0x251a6f){return _0x31763e(_0x2c7713-_0x47abd4._0x22d389,_0x4e3a7c-_0x47abd4._0x79c50a,_0x251a6f,_0x251a6f-_0x47abd4._0xd20844);}const _0x5f300e=await _0x161915(_0x48ba46),_0x172bff=detectImageMediaType(_0x5f300e,_0x48ba46);if(!_0x172bff)throw new ToolExecutionError(_0x2e9141(_0x449640._0x2e1741,0x343,0x397,0x3ec)+_0x2aa89f[_0x1cdf65(_0x449640._0x3d101a,0x8d,0x6f,_0x449640._0x2ca8c1)],{'path':_0x2aa89f[_0x1cdf65(0x61,0x98,0x10f,0x71)],'supported':['.gif','.jpeg',_0x1cdf65(-0x14,-0xd4,-0xf4,-_0x449640._0x43a659),'.png',_0x2e9141(_0x449640._0x554f9f,_0x449640._0x270311,0x28c,_0x449640._0x1fbfc7)]});const _0x4bf582=normalizeDetail(_0x2aa89f[_0x2e9141(_0x449640._0x43bcd3,_0x449640._0xa80abd,_0x449640._0x507e92,0x250)]);function _0x1cdf65(_0x19b490,_0x97f0cf,_0x4038e2,_0x471385){return _0x46923b(_0x19b490-0x10e,_0x471385- -0x4d0,_0x4038e2-_0x1e68b3._0x472be2,_0x4038e2);}const _0x4727f0=[_0x2e9141(_0x449640._0x782af2,_0x449640._0x46caec,_0x449640._0x32dd82,_0x449640._0x26e4dc)+_0x2aa89f[_0x2e9141(0x2e7,_0x449640._0x5a0aa3,0x33e,0x365)],_0x2e9141(_0x449640._0x481258,0x23b,0x1d4,_0x449640._0x54c565)+_0x172bff,'Size:\x20'+_0x54b400[_0x2e9141(0x24a,0x26c,0x243,_0x449640._0x16a440)]+_0x2e9141(_0x449640._0x59a13f,_0x449640._0x194319,0x383,0x399)][_0x1cdf65(-0x1e,_0x449640._0x266f72,0x50,0x74)](_0x4bf582?[_0x2e9141(_0x449640._0x3653d3,0x238,_0x449640._0x5346ea,0x259)+_0x4bf582]:[])['join']('\x0a'),_0x2632e0=[{'type':_0x2e9141(_0x449640._0x1233ee,0x25a,_0x449640._0x158c69,0x2d6),'source':{'type':_0x1cdf65(0x46,_0x449640._0x365343,-0x9,0x96),'media_type':_0x172bff,'data':_0x5f300e[_0x1cdf65(0x5e,0xe6,_0x449640._0x2b8d6d,_0x449640._0x48357a)](_0x2e9141(_0x449640._0x499674,0x324,0x283,_0x449640._0x70ea96))}},{'type':_0x1cdf65(_0x449640._0x1ed00b,0x149,_0x449640._0x540e8f,0xa2),'text':_0x4727f0}];return yield createToolOutput(_0x4727f0,{'path':_0x2aa89f[_0x2e9141(_0x449640._0x2f1bd1,_0x449640._0x5a0aa3,0x322,_0x449640._0x5bcdcb)],'resolvedPath':_0x48ba46,'created':_0x54b400['birthtime'][_0x1cdf65(0x1c,_0x449640._0x24292c,0x29,_0x449640._0x56432c)](),'modified':_0x54b400['mtime'][_0x2e9141(0x339,_0x449640._0x541dcc,_0x449640._0x4c7475,_0x449640._0x3ada68)](),'size':_0x54b400[_0x1cdf65(-_0x449640._0x211cd7,-_0x449640._0x476c28,_0x449640._0x532764,-0x22)],'mimeType':_0x172bff,'encoding':_0x1cdf65(0x100,0x5f,0xee,0x96),..._0x4bf582?{'detail':_0x4bf582}:{}},_0x2632e0),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,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|
|
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};
|