@nuvin/agent-core 0.0.0-rc.13 → 0.0.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-SEP4YYY3.js +1 -1
- package/dist/chunk-T7UKN6FZ.js +1 -1
- package/dist/chunk-WJMBJOVF.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +2 -2
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.d.ts +76 -0
- package/dist/hooks/index.js +1 -0
- package/dist/models/index.d.ts +3 -3
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-BZo_Yh3I.d.ts → provider-adapters-CVC34mwR.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +5 -3
- package/dist/tools/index.js +1 -1
- package/dist/{types-DQXrm4dp.d.ts → types-CSXSwpwn.d.ts} +1 -1
- package/package.json +6 -2
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x4c84ee,_0x580111){const _0x47b1fb={_0x2f88fc:0x581,_0x164e6f:0x4d7,_0x4f846b:0x64f,_0x274837:0x45e,_0x47ae18:0x652,_0x25fa9a:0x503,_0x41bb9e:0x61e,_0x10913d:0xb2,_0x1ae08d:0x17f,_0x5977eb:0xaa,_0x521927:0x5ac,_0x5e5f81:0x442,_0xb09488:0x4eb,_0x5b964f:0x517,_0x4b0b42:0x404,_0x1ba29c:0x5bb,_0x232187:0x53e,_0x252917:0x68d,_0x3b1d1a:0x562,_0x12d484:0x65e},_0x4ffc2b={_0x4a7be4:0x3ca};function _0xe5c411(_0x2660fb,_0x571ba1,_0x3f74ff,_0x5acf08){return _0x1358(_0x571ba1-0xe8,_0x2660fb);}const _0x1265dc=_0x4c84ee();function _0x550bac(_0x32d2af,_0xc233e2,_0xffc25a,_0x1e898c){return _0x1358(_0x32d2af-_0x4ffc2b._0x4a7be4,_0xffc25a);}while(!![]){try{const _0x18750c=-parseInt(_0x550bac(0x47b,0x3d8,0x473,0x43e))/0x1*(-parseInt(_0x550bac(0x5b4,0x46f,0x511,0x6a6))/0x2)+-parseInt(_0x550bac(_0x47b1fb._0x2f88fc,_0x47b1fb._0x164e6f,_0x47b1fb._0x4f846b,_0x47b1fb._0x274837))/0x3+parseInt(_0x550bac(0x508,_0x47b1fb._0x47ae18,0x3be,_0x47b1fb._0x25fa9a))/0x4*(parseInt(_0xe5c411(0x434,0x3d7,0x313,0x3ba))/0x5)+parseInt(_0x550bac(0x548,0x519,0x59e,_0x47b1fb._0x41bb9e))/0x6+-parseInt(_0xe5c411(_0x47b1fb._0x10913d,_0x47b1fb._0x1ae08d,0x22e,_0x47b1fb._0x5977eb))/0x7*(-parseInt(_0x550bac(0x515,_0x47b1fb._0x521927,_0x47b1fb._0x5e5f81,_0x47b1fb._0xb09488))/0x8)+parseInt(_0x550bac(_0x47b1fb._0x5b964f,_0x47b1fb._0x4b0b42,0x590,0x4d2))/0x9*(-parseInt(_0x550bac(0x56c,_0x47b1fb._0x1ba29c,_0x47b1fb._0x232187,_0x47b1fb._0x252917))/0xa)+-parseInt(_0x550bac(0x695,_0x47b1fb._0x3b1d1a,_0x47b1fb._0x12d484,0x7c3))/0xb*(-parseInt(_0xe5c411(0x3ca,0x2a5,0x2e2,0x385))/0xc);if(_0x18750c===_0x580111)break;else _0x1265dc['push'](_0x1265dc['shift']());}catch(_0x449ea1){_0x1265dc['push'](_0x1265dc['shift']());}}}(_0x4019,0x94122));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WJMBJOVF.js';import{getTextFromMessage}from'../chunk-SEP4YYY3.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x337454 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x357fd3(0x15d,0x1b9,0x163,0x2a3),'.tsx':_0x357fd3(0x77,0xab,0x18e,0x10d),'.js':'javascript','.jsx':_0x357fd3(0x7a,-0xbb,-0xa4,-0xba),'.mjs':_0x1343ee(-0xc2,-0x95,0x1c,0x2),'.cjs':'javascript','.mts':'typescript','.cts':_0x1343ee(0x168,0x14b,0x21f,0xb2),'.json':_0x1343ee(0x1bc,0x1b4,0xba,0xa7),'.jsonc':'jsonc'};function getLanguageId(_0x424458){const _0x147ea9={_0x5b2f31:0x540,_0x568ff:0x465},_0x9613b4={_0x1e10db:0x96,_0xe8cbdd:0x1};function _0x3646d2(_0x1ab76b,_0x487ae7,_0x24df3d,_0xfba7cf){return _0x1343ee(_0x24df3d-0x346,_0x1ab76b,_0x24df3d-_0x9613b4._0x1e10db,_0xfba7cf-_0x9613b4._0xe8cbdd);}return EXTENSION_TO_LANGUAGE[_0x337454['extname'](_0x424458)[_0x3646d2(_0x147ea9._0x5b2f31,0x461,0x45a,_0x147ea9._0x568ff)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0xe4d00){const _0x577efc={_0x41dfb1:0x36,_0x1dca27:0x52},_0x5409b6={_0x2a1f3e:0x1d4};function _0x514f7f(_0x59bc3d,_0x4f44cd,_0x2c3a48,_0x1ad2cb){return _0x357fd3(_0x59bc3d-_0x5409b6._0x2a1f3e,_0x4f44cd-0x11d,_0x1ad2cb- -0xae,_0x2c3a48);}return pathToFileURL(_0xe4d00)[_0x514f7f(-0xf8,-0x95,-_0x577efc._0x41dfb1,_0x577efc._0x1dca27)]();}function textDocumentPosition(_0x4ce09f){const _0x46a503={_0x4f538c:0x33a},_0x34ec97={_0x38d412:0x3dd,_0x2c2053:0x43};function _0x2fbf6a(_0x92a43,_0x13e304,_0xd41095,_0x553f6d){return _0x1343ee(_0xd41095-_0x34ec97._0x38d412,_0x92a43,_0xd41095-0x113,_0x553f6d-_0x34ec97._0x2c2053);}return{'textDocument':{'uri':uriForPath(_0x4ce09f[_0x2fbf6a(_0x46a503._0x4f538c,0x517,0x3cd,0x2f0)])},'position':{'line':_0x4ce09f['line'],'character':_0x4ce09f['character']}};}function normalizeLocations(_0x3b9231){const _0xbe0d89={_0x3f7fae:0x26,_0xd2fcf0:0x154},_0x17c3e1={_0x2af49e:0x1a4};if(!_0x3b9231)return[];function _0x13a4f6(_0x326542,_0x559357,_0x2817ee,_0x5ba827){return _0x1343ee(_0x2817ee- -0x23b,_0x559357,_0x2817ee-0x57,_0x5ba827-_0x17c3e1._0x2af49e);}return Array[_0x13a4f6(0x13,-_0xbe0d89._0x3f7fae,-0x13a,-_0xbe0d89._0xd2fcf0)](_0x3b9231)?_0x3b9231:[_0x3b9231];}async function createLspClient(_0x2f8a9a){const _0x304916={_0x4998d5:0x335,_0x42e3b9:0x371,_0x1594f4:0x32a,_0x449b4d:0x3ac,_0x195a85:0x3e9,_0x43d1e3:0x406,_0x1de34c:0x2df,_0x81265b:0x36b,_0x180b6b:0x6c,_0x191ec8:0x115,_0x5961c9:0x39b,_0x379cea:0x27e,_0x4c7bd5:0x94,_0x11f753:0x268,_0x28060d:0xb5,_0xd26b47:0x309,_0x25c0bc:0x282,_0xb09566:0x17b,_0x1a8ca7:0x1e,_0x1bf923:0x1b1,_0x5e0c4f:0x22,_0x501e4e:0x247,_0x1ac710:0x1ec,_0x11caff:0x332,_0x28ed2e:0x243,_0x57ec00:0x26a,_0x508345:0x67,_0x126b87:0x8b,_0x4a9cc2:0x6e,_0x13d2b1:0xd5,_0x30a0da:0xd6,_0x25732a:0x85,_0x15435f:0x1ae,_0x2b8e2f:0x19b,_0x2921e6:0x41},_0x3434ef={_0x30ea06:0x8a,_0x1a5c34:0x1a9,_0x2f7152:0x45b,_0x1ddb42:0x341,_0x3b7532:0x2d2,_0x18a805:0xf9,_0x4d0a19:0xc},_0x1f1bf0={_0xfc43fd:0x5c,_0x591fab:0x88,_0xcf199b:0xa3},_0x1c9d09={_0x53135e:0x2b4,_0xdb63b1:0x2ae,_0x40a264:0x1cb,_0x1f3377:0x3c5},_0x4651bb={_0x576d69:0x1d3},_0x372c40={_0x3d8dbb:0x19a},_0xb06469={_0x446fdd:0xc0},_0xd1affe={_0x4da30e:0xd2,_0x4243ca:0x4},_0x3113c4={_0x5596e2:0x38,_0x1e5708:0x1c},_0x1452d4={_0x59091e:0x142,_0xb209d3:0x1ba},_0x5cc922={_0x33b340:0x397,_0x30ee42:0x355,_0x20e1d5:0x4ac},_0x2eb976={_0x3aeaf3:0x529,_0x3f2c6d:0x357,_0x170b9b:0xc5,_0x55f97a:0x14c,_0x2b500d:0xd7},_0x28485d={_0x2e12f5:0x3ea,_0x38bf22:0x369,_0x1b6009:0x37a},_0x338008={_0x429b7e:0x95,_0x3d8503:0x36},_0x4925eb={_0x178ee2:0x17a,_0x5ceb3d:0x1ed,_0x50668d:0x1c2},_0x1e8abe={_0x42e6ed:0x211,_0x24a07c:0x19a,_0x5ae079:0x10b,_0x131a3c:0x1d1,_0x12964b:0x95},_0x268001={_0x4adce9:0x31a,_0x2a2071:0x225,_0x26d453:0x34e,_0x9baec7:0x264,_0x133215:0x246},_0x29b27a={_0x1a0ae7:0x57},_0x31ca72={_0x12aab8:0x1c9,_0x44971a:0xd,_0x4a70e7:0x103},_0x403302={_0x2a6882:0x129,_0x166fb5:0x1ec},_0x24c885={_0x2a5aff:0x252,_0xff4bab:0x2dd,_0x4fe042:0x22c},_0x264cf5={_0x406b7d:0x141,_0x54eb9f:0x1ae},_0x910caa={_0x21dfbd:0x11c,_0x3ba384:0x331,_0x31bc81:0x16d,_0x4761ac:0x121,_0x3349a6:0x11a,_0x2a6d4f:0x1,_0x294f39:0x90},_0x6d8dff={_0xd6e474:0x270,_0x4bbd89:0x224,_0x5e99d1:0x1d6,_0x278765:0xf7,_0x474bd0:0x3e,_0x44b8e0:0x7f,_0x5c3f61:0x58,_0x2ba0d3:0x2b,_0x2aa574:0xf1,_0x5428c3:0x203,_0x322b88:0x1f4},_0x2a94a8={_0x5dfd08:0x1bf,_0x4d4d7b:0xd8},_0x54bc81={_0xab09c0:0xf8,_0x2c046c:0xaa},_0x376dfd={_0x46aaa0:0x18d},_0x3f2237=_0x2f8a9a[_0x25cf2b(_0x304916._0x4998d5,_0x304916._0x42e3b9,0x234,_0x304916._0x1594f4)]['process'][_0x25cf2b(_0x304916._0x449b4d,_0x304916._0x195a85,_0x304916._0x43d1e3,_0x304916._0x1de34c)],_0x41133c=_0x2f8a9a[_0x25cf2b(0x31e,_0x304916._0x81265b,0x389,0x32a)]['process']['stdin'];if(!_0x3f2237||!_0x41133c)throw new Error(_0x14daad(-_0x304916._0x180b6b,-0xf,0x25,_0x304916._0x191ec8));const _0x125ec3=createMessageConnection(new StreamMessageReader(_0x3f2237),new StreamMessageWriter(_0x41133c)),_0x3b6b41=new Map();function _0x25cf2b(_0x1ee4d5,_0x586b7f,_0x459e63,_0x17ad87){return _0x357fd3(_0x1ee4d5-0x4e,_0x586b7f-0x22,_0x17ad87-_0x376dfd._0x46aaa0,_0x459e63);}const _0x58c8b2=new Map();function _0x14daad(_0x119074,_0x575783,_0x2ddc44,_0x33dc3b){return _0x357fd3(_0x119074-0x162,_0x575783-_0x54bc81._0xab09c0,_0x2ddc44-_0x54bc81._0x2c046c,_0x33dc3b);}let _0x2db6eb=![];_0x125ec3['onNotification']('textDocument/publishDiagnostics',_0x57bf36=>{const _0x1847d9={_0x2bce4c:0x139,_0x149360:0x1ef,_0xdd3beb:0x35};function _0x4302ec(_0x4f6826,_0x29895f,_0x235986,_0x28a811){return _0x25cf2b(_0x4f6826-_0x2a94a8._0x5dfd08,_0x29895f-_0x2a94a8._0x4d4d7b,_0x4f6826,_0x28a811- -0x76);}_0x3b6b41[_0x4302ec(_0x6d8dff._0xd6e474,0xe8,_0x6d8dff._0x4bbd89,0x191)](_0x57bf36[_0x35b4d5(_0x6d8dff._0x5e99d1,0xee,_0x6d8dff._0x278765,0x18e)],_0x57bf36[_0x35b4d5(-0x4c,0x63,-_0x6d8dff._0x474bd0,0x184)]);const _0x5a2a81=_0x58c8b2[_0x4302ec(-_0x6d8dff._0x44b8e0,_0x6d8dff._0x5c3f61,-_0x6d8dff._0x2ba0d3,0x79)](_0x57bf36['uri']);function _0x35b4d5(_0x4cb05e,_0x18afbe,_0x2785a9,_0x15f67b){return _0x14daad(_0x4cb05e-_0x1847d9._0x2bce4c,_0x18afbe-_0x1847d9._0x149360,_0x18afbe-_0x1847d9._0xdd3beb,_0x4cb05e);}if(!_0x5a2a81)return;_0x58c8b2[_0x35b4d5(0x193,0x220,0x233,_0x6d8dff._0x2aa574)](_0x57bf36[_0x4302ec(-0x5,_0x6d8dff._0x5428c3,_0x6d8dff._0x322b88,0x126)]);for(const _0x1e84cd of _0x5a2a81)_0x1e84cd();}),_0x125ec3[_0x25cf2b(0x158,0x351,_0x304916._0x5961c9,_0x304916._0x379cea)]();const _0x29db10=await _0x125ec3[_0x25cf2b(_0x304916._0x4c7bd5,_0x304916._0x11f753,0x1d9,0x156)](_0x14daad(_0x304916._0x28060d,0x6d,0x15b,0x165),{'processId':process[_0x25cf2b(0x2f1,0x412,0x1c9,_0x304916._0xd26b47)],'rootUri':uriForPath(_0x2f8a9a['root']),'workspaceFolders':[{'uri':uriForPath(_0x2f8a9a[_0x25cf2b(_0x304916._0x25c0bc,0x12e,0x144,_0x304916._0xb09566)]),'name':_0x2f8a9a[_0x14daad(_0x304916._0x1a8ca7,_0x304916._0x1bf923,0x137,_0x304916._0x5e0c4f)]['id']}],'initializationOptions':_0x2f8a9a[_0x14daad(0x360,0x2b2,_0x304916._0x501e4e,0x1eb)][_0x25cf2b(_0x304916._0x1ac710,_0x304916._0x11caff,_0x304916._0x28ed2e,_0x304916._0x57ec00)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x14daad(0xc8,0xba,_0x304916._0x508345,_0x304916._0x126b87),_0x14daad(_0x304916._0x4a9cc2,_0x304916._0x13d2b1,_0x304916._0x30a0da,0x134)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x125ec3[_0x14daad(-_0x304916._0x25732a,0x5e,0x44,0x8f)]('initialized',{});const _0x53d328={'serverId':_0x2f8a9a['server']['id'],'root':_0x2f8a9a[_0x25cf2b(_0x304916._0x15435f,_0x304916._0x2b8e2f,0x138,0x17b)],'connection':_0x125ec3,'diagnostics':_0x3b6b41,'capabilities':_0x29db10[_0x14daad(0x148,-0xd3,0x59,_0x304916._0x2921e6)]??{},'notify':{async 'open'({path:_0x35ee8b}){const _0x4842db={_0x377bc1:0xb4,_0x2a889b:0x1cc},_0x410246={_0x3921c8:0x147,_0x5ca659:0x123};function _0x3bc379(_0x3cb33e,_0x5e8694,_0x8334fc,_0x739797){return _0x14daad(_0x3cb33e-_0x410246._0x3921c8,_0x5e8694-_0x410246._0x5ca659,_0x8334fc- -0xd7,_0x5e8694);}function _0x36fcb5(_0x53c4f0,_0x44b4d8,_0x184aa9,_0x1ac58d){return _0x14daad(_0x53c4f0-_0x4842db._0x377bc1,_0x44b4d8-0x56,_0x1ac58d-_0x4842db._0x2a889b,_0x53c4f0);}const _0x33676f=await readFile(_0x35ee8b,'utf8');_0x125ec3[_0x36fcb5(_0x910caa._0x21dfbd,0x2bd,_0x910caa._0x3ba384,0x210)](_0x3bc379(_0x910caa._0x31bc81,0xaf,0xa3,-0x2e),{'textDocument':{'uri':uriForPath(_0x35ee8b),'languageId':getLanguageId(_0x35ee8b)??_0x3bc379(-_0x910caa._0x4761ac,_0x910caa._0x3349a6,-_0x910caa._0x2a6d4f,-_0x910caa._0x294f39),'version':0x1,'text':_0x33676f}});},async 'change'({path:_0x11c1d2,version:_0x1d03df}){function _0x37a724(_0x39e692,_0x4a3295,_0x539fa8,_0x542624){return _0x14daad(_0x39e692-_0x264cf5._0x406b7d,_0x4a3295-_0x264cf5._0x54eb9f,_0x542624-0x1e8,_0x539fa8);}const _0x4d1734=await readFile(_0x11c1d2,'utf8');_0x125ec3[_0x37a724(_0x24c885._0x2a5aff,0x2e3,_0x24c885._0xff4bab,_0x24c885._0x4fe042)]('textDocument/didChange',{'textDocument':{'uri':uriForPath(_0x11c1d2),'version':_0x1d03df},'contentChanges':[{'text':_0x4d1734}]});},async 'close'({path:_0x41d7ca}){const _0x59ae39={_0x229203:0x1};function _0xbe264c(_0x3526f5,_0x2b37a3,_0x2500f8,_0x4e2af5){return _0x14daad(_0x3526f5-0x18b,_0x2b37a3-_0x59ae39._0x229203,_0x4e2af5-0x4e,_0x3526f5);}function _0x3caf23(_0x55cd2a,_0x3f677f,_0x5e996a,_0x585b91){return _0x14daad(_0x55cd2a-_0x403302._0x2a6882,_0x3f677f-0x166,_0x585b91- -_0x403302._0x166fb5,_0x55cd2a);}_0x125ec3[_0xbe264c(0x19f,_0x31ca72._0x12aab8,-0x8d,0x92)](_0x3caf23(_0x31ca72._0x44971a,-0xba,-0x24f,-_0x31ca72._0x4a70e7),{'textDocument':{'uri':uriForPath(_0x41d7ca)}});}},'request':{async 'definition'(_0x12cd8c){const _0xe71fa4={_0x3eef36:0xe6};function _0x1c6f10(_0x4a5e94,_0x1e6e95,_0x4bbd9f,_0x4fc5c7){return _0x14daad(_0x4a5e94-0x1a6,_0x1e6e95-_0x29b27a._0x1a0ae7,_0x4fc5c7- -0x298,_0x4bbd9f);}function _0x33233e(_0x367ec1,_0x39ca3c,_0x25b88e,_0x3aee1d){return _0x25cf2b(_0x367ec1-_0xe71fa4._0x3eef36,_0x39ca3c-0x195,_0x367ec1,_0x39ca3c-0x7e);}return normalizeLocations(await _0x125ec3[_0x1c6f10(-0x136,-0x2f3,-_0x268001._0x4adce9,-_0x268001._0x2a2071)](_0x33233e(_0x268001._0x26d453,0x38e,_0x268001._0x9baec7,_0x268001._0x133215),textDocumentPosition(_0x12cd8c)));},async 'references'(_0x560be8){const _0x20f8f8={_0x3ff732:0xa7,_0xa9c59e:0xbb},_0x29b45c={_0x3af644:0x175,_0x5313f2:0x11d};function _0x28472f(_0x34a5a8,_0x469842,_0x4a2274,_0x58d61a){return _0x25cf2b(_0x34a5a8-_0x29b45c._0x3af644,_0x469842-0x93,_0x58d61a,_0x4a2274- -_0x29b45c._0x5313f2);}function _0x56e607(_0x46780f,_0x3ee620,_0x3d1cba,_0x24b533){return _0x25cf2b(_0x46780f-0x8a,_0x3ee620-_0x20f8f8._0x3ff732,_0x3ee620,_0x3d1cba-_0x20f8f8._0xa9c59e);}return normalizeLocations(await _0x125ec3[_0x56e607(0x16e,0x328,_0x1e8abe._0x42e6ed,_0x1e8abe._0x24a07c)](_0x28472f(0x15f,_0x1e8abe._0x5ae079,_0x1e8abe._0x131a3c,_0x1e8abe._0x12964b),{...textDocumentPosition(_0x560be8),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x19e26a){function _0x1efe44(_0x746d01,_0x2d0153,_0x464e17,_0x216cfc){return _0x25cf2b(_0x746d01-_0x4925eb._0x178ee2,_0x2d0153-_0x4925eb._0x5ceb3d,_0x216cfc,_0x746d01- -_0x4925eb._0x50668d);}return await _0x125ec3[_0x1efe44(-0x6c,-_0x338008._0x429b7e,0x36,-_0x338008._0x3d8503)]('textDocument/hover',textDocumentPosition(_0x19e26a))??null;},async 'documentSymbol'(_0x1c1eab){const _0x319779={_0x258bb0:0x14,_0x5d6f94:0xf3};function _0x5e4980(_0x50e28e,_0x5d41a8,_0xae793b,_0x25596c){return _0x25cf2b(_0x50e28e-_0x319779._0x258bb0,_0x5d41a8-_0x319779._0x5d6f94,_0xae793b,_0x25596c-0x150);}return await _0x125ec3['sendRequest'](_0x5e4980(_0x28485d._0x2e12f5,_0x28485d._0x38bf22,_0x28485d._0x1b6009,0x32c),{'textDocument':{'uri':uriForPath(_0x1c1eab)}})??[];},async 'workspaceSymbol'(_0x4ae23d){const _0x484d36={_0x4a399c:0xd1,_0x516ac5:0x19e},_0x3883dd={_0x364a5c:0x124,_0x904564:0x25};function _0x2ba4a1(_0x5eadb6,_0x16400f,_0x111a14,_0x4a4cc0){return _0x14daad(_0x5eadb6-_0x3883dd._0x364a5c,_0x16400f-_0x3883dd._0x904564,_0x4a4cc0- -0xc8,_0x5eadb6);}function _0x41240c(_0x22eba7,_0x361de8,_0x371002,_0x392b36){return _0x14daad(_0x22eba7-_0x484d36._0x4a399c,_0x361de8-_0x484d36._0x516ac5,_0x371002-0x3cb,_0x22eba7);}return await _0x125ec3[_0x41240c(0x496,_0x2eb976._0x3aeaf3,0x43e,_0x2eb976._0x3f2c6d)](_0x2ba4a1(-_0x2eb976._0x170b9b,-0x1b,-_0x2eb976._0x55f97a,-_0x2eb976._0x2b500d),{'query':_0x4ae23d})??[];},async 'implementation'(_0x23903d){const _0x332f45={_0x4cb228:0x129},_0x2566d7={_0x43c00f:0x241};function _0x350aa9(_0x40ee59,_0x494877,_0x339e49,_0x3b4e2f){return _0x25cf2b(_0x40ee59-0x164,_0x494877-0x199,_0x3b4e2f,_0x40ee59-_0x2566d7._0x43c00f);}function _0x1dff3f(_0x12c80f,_0xf6e5d4,_0x3a6215,_0xe41cfe){return _0x14daad(_0x12c80f-0xf,_0xf6e5d4-0x144,_0x3a6215-_0x332f45._0x4cb228,_0xf6e5d4);}return normalizeLocations(await _0x125ec3[_0x350aa9(_0x5cc922._0x33b340,0x304,_0x5cc922._0x30ee42,0x3bb)](_0x350aa9(0x410,0x540,_0x5cc922._0x20e1d5,0x3a9),textDocumentPosition(_0x23903d)));},async 'prepareCallHierarchy'(_0x3bc075){const _0x14035c={_0x1c1e12:0xbe,_0x2f1c7b:0x103};function _0x4fff6e(_0x46fde1,_0x4b32b0,_0x4bd7d0,_0x340973){return _0x25cf2b(_0x46fde1-_0x14035c._0x1c1e12,_0x4b32b0-_0x14035c._0x2f1c7b,_0x46fde1,_0x4b32b0-0x64);}return await _0x125ec3[_0x4fff6e(_0x1452d4._0x59091e,_0x1452d4._0xb209d3,0x180,0x12c)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x3bc075))??[];},async 'incomingCalls'(_0x40bb37){const _0x5af7ef={_0x3fa120:0x5c,_0x3fc17e:0x1b0};function _0x78254a(_0x34607f,_0x5b3928,_0x2072e1,_0x455af8){return _0x14daad(_0x34607f-0x180,_0x5b3928-_0x5af7ef._0x3fa120,_0x2072e1- -_0x5af7ef._0x3fc17e,_0x5b3928);}return await _0x125ec3['sendRequest'](_0x78254a(-0x12a,-0x13b,-_0x3113c4._0x5596e2,-_0x3113c4._0x1e5708),{'item':_0x40bb37})??[];},async 'outgoingCalls'(_0x318ad5){function _0x3646b4(_0x593a9b,_0x4eb2ce,_0x1bdccd,_0x4b6225){return _0x14daad(_0x593a9b-_0xd1affe._0x4da30e,_0x4eb2ce-_0xd1affe._0x4243ca,_0x1bdccd- -0x47,_0x593a9b);}function _0xe33464(_0x3c9a00,_0x164c62,_0xfd538c,_0x17e423){return _0x25cf2b(_0x3c9a00-_0xb06469._0x446fdd,_0x164c62-0x4b,_0x3c9a00,_0x17e423- -0x202);}return await _0x125ec3[_0x3646b4(-0x85,0x7d,0x2c,0x3b)](_0x3646b4(0x191,0x9d,0x1a0,_0x372c40._0x3d8dbb),{'item':_0x318ad5})??[];}},'waitForDiagnostics'({path:_0x48cb5a,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x2bff55={_0x52c8ba:0x1ed,_0x214eb6:0x1af,_0x53cf18:0x218,_0x3f2ad4:0x2a7,_0x2033ef:0x2f4,_0x43d410:0x22d,_0x22513c:0x257},_0x4ffa63={_0x28720b:0x18b},_0x1ac37c={_0xe0bf60:0x4cf,_0x532867:0x17b,_0x10e818:0x22c,_0xc791ed:0x4ad,_0x5dd32c:0x57b};function _0x3d3d75(_0xc4ee23,_0x3139eb,_0x4c3eba,_0x2761cf){return _0x14daad(_0xc4ee23-_0x4651bb._0x576d69,_0x3139eb-0x178,_0x3139eb-0x2c1,_0xc4ee23);}const _0x54c7d6=uriForPath(_0x48cb5a);if(_0x3b6b41[_0x3d3d75(_0x1c9d09._0x53135e,_0x1c9d09._0xdb63b1,_0x1c9d09._0x40a264,_0x1c9d09._0x1f3377)](_0x54c7d6))return Promise['resolve']();return new Promise(_0x10544c=>{const _0x4981c6=setTimeout(()=>{const _0x14d81d=_0x58c8b2[_0x3e7449(0x3c4,0x3e8,0x334,_0x1ac37c._0xe0bf60)](_0x54c7d6);function _0x3e7449(_0x50ae3b,_0x48bedc,_0x172837,_0x56d346){return _0x1358(_0x48bedc-0x339,_0x56d346);}function _0x38b9aa(_0x31b15d,_0x3960d5,_0x125b73,_0x248c42){return _0x1358(_0x31b15d- -0x113,_0x248c42);}_0x14d81d?.[_0x38b9aa(_0x1ac37c._0x532867,0xbb,_0x1ac37c._0x10e818,0x116)](_0x35ded8);if(_0x14d81d?.[_0x3e7449(0x4f1,0x5e4,_0x1ac37c._0xc791ed,_0x1ac37c._0x5dd32c)]===0x0)_0x58c8b2['delete'](_0x54c7d6);_0x10544c();},timeoutMs);function _0x3e454f(_0x10ee9a,_0x1c9294,_0x3f0f50,_0x11e004){return _0x3d3d75(_0x1c9294,_0x11e004- -0x219,_0x3f0f50-0x1ef,_0x11e004-0x139);}const _0x35ded8=()=>{clearTimeout(_0x4981c6),_0x10544c();};function _0x5e54b6(_0x4921e5,_0x20a07a,_0x1593db,_0x1409a9){return _0x3d3d75(_0x1593db,_0x1409a9- -0x5d7,_0x1593db-_0x4ffa63._0x28720b,_0x1409a9-0x1a9);}const _0x3a8966=_0x58c8b2[_0x3e454f(0x150,_0x2bff55._0x52c8ba,_0x2bff55._0x214eb6,0xb4)](_0x54c7d6)??new Set();_0x3a8966[_0x3e454f(_0x2bff55._0x53cf18,_0x2bff55._0x3f2ad4,_0x2bff55._0x2033ef,0x233)](_0x35ded8),_0x58c8b2[_0x3e454f(_0x2bff55._0x43d410,_0x2bff55._0x22513c,0x1c9,0x1cc)](_0x54c7d6,_0x3a8966);});},async 'shutdown'(){if(_0x2db6eb)return;_0x2db6eb=!![];function _0x2d63ff(_0x24dde3,_0x247588,_0x20ede0,_0x4fd72f){return _0x14daad(_0x24dde3-_0x1f1bf0._0xfc43fd,_0x247588-_0x1f1bf0._0x591fab,_0x24dde3- -_0x1f1bf0._0xcf199b,_0x4fd72f);}function _0x588b29(_0x4c357f,_0x403ee5,_0x15e75f,_0x3921fa){return _0x25cf2b(_0x4c357f-0x11c,_0x403ee5-0xbc,_0x3921fa,_0x15e75f-0x21a);}try{await _0x125ec3['sendRequest'](_0x2d63ff(-_0x3434ef._0x30ea06,-0xb1,-0x1a,-_0x3434ef._0x1a5c34),null),_0x125ec3[_0x588b29(_0x3434ef._0x2f7152,0x2ad,_0x3434ef._0x1ddb42,_0x3434ef._0x3b7532)]('exit');}catch{}finally{_0x125ec3[_0x2d63ff(0x13d,_0x3434ef._0x18a805,0x174,0x229)](),_0x2f8a9a['handle']['process'][_0x2d63ff(_0x3434ef._0x4d0a19,0xd2,0x76,-0x7f)]();}}};return _0x53d328;}import{spawn as _0x1b0add}from'child_process';import{access as _0x3a9a36}from'fs/promises';import _0x1573c4 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x2df844 from'os';import _0x53cfac from'path';import _0x31176f from'which';var installPromises=new Map();function sanitizePackageName(_0x5b6422){const _0x4960fe={_0x251547:0xc8,_0x334389:0x93},_0x458225={_0x36f502:0xfe,_0x4dee0c:0x15b},_0x281bf5={_0x16ddbb:0xc0,_0x4bbccd:0x1c2};function _0x1e14f6(_0x1d4888,_0x239d0b,_0x42854a,_0x5d1561){return _0x357fd3(_0x1d4888-_0x281bf5._0x16ddbb,_0x239d0b-0x18,_0x239d0b- -_0x281bf5._0x4bbccd,_0x1d4888);}function _0x4900f0(_0x1b7652,_0x46d155,_0x4c73d4,_0x4b499d){return _0x357fd3(_0x1b7652-_0x458225._0x36f502,_0x46d155-_0x458225._0x4dee0c,_0x4b499d- -0x2b,_0x4c73d4);}return _0x5b6422[_0x4900f0(0x99,-_0x4960fe._0x251547,0x34,-0x93)](/^@/,'')[_0x4900f0(-0x148,-0x16f,-0x19,-_0x4960fe._0x334389)](/[/]/g,'__');}function binaryNameForPlatform(_0xd4ce3f){const _0x555947={_0x49d602:0x101,_0x320202:0xf5,_0x28bfa2:0x139,_0x2ef085:0xbf,_0x311af3:0x64,_0x473a1d:0x100},_0x380d5={_0x2897bf:0x129},_0x104d6f={_0xd9c6b1:0xb9};function _0xd40e29(_0x4d33cc,_0x49f5c2,_0x1e31ab,_0x4d0ec9){return _0x1343ee(_0x4d33cc-0x245,_0x4d0ec9,_0x1e31ab-0x18f,_0x4d0ec9-_0x104d6f._0xd9c6b1);}function _0x147951(_0x1410bb,_0x465e96,_0x35d6cf,_0x366a55){return _0x357fd3(_0x1410bb-0x140,_0x465e96-_0x380d5._0x2897bf,_0x465e96- -0x7f,_0x35d6cf);}return process['platform']===_0x147951(_0x555947._0x49d602,_0x555947._0x320202,_0x555947._0x28bfa2,0x42)?_0xd4ce3f+_0x147951(0x16a,_0x555947._0x2ef085,_0x555947._0x311af3,_0x555947._0x473a1d):_0xd4ce3f;}async function exists(_0x21a147){try{return await access(_0x21a147),!![];}catch{return![];}}function runNpmInstall(_0x4bab6d,_0x354d6b,_0xda4682){const _0x294def={_0x3f01b0:0x1e3,_0x4067e6:0x9e,_0x4417bc:0xae,_0x378aac:0x3be,_0xd0fce7:0x5b,_0x3911fe:0x24d},_0x85ea0d={_0x12d61a:0x64};return new Promise(_0x4394b2=>{const _0xfbafff=spawn(_0x59df74(-_0x294def._0x3f01b0,0x18,-_0x294def._0x4067e6,-_0x294def._0x4417bc),['install',_0x5c2d23(0x283,_0x294def._0x378aac,0x1de,0x152),_0x4bab6d,_0x354d6b],{'env':_0xda4682,'stdio':_0x59df74(-0x60,-0x106,-0xea,_0x294def._0xd0fce7)});_0xfbafff['on']('error',()=>_0x4394b2(![]));function _0x59df74(_0x249081,_0x1b5fbe,_0x3064b2,_0x5c25f2){return _0x1358(_0x3064b2- -0x304,_0x1b5fbe);}function _0x5c2d23(_0x539240,_0x2f4919,_0x532f06,_0x1fbc05){return _0x1358(_0x539240- -_0x85ea0d._0x12d61a,_0x532f06);}_0xfbafff['on'](_0x59df74(-0x8b,-0x4a,-0x13c,-_0x294def._0x3911fe),_0x4decbb=>_0x4394b2(_0x4decbb===0x0));});}function shouldDisableLspDownload(_0x2ac054=process[_0x1343ee(0xbb,0x203,-0x7e,0x11a)]){const _0x1ce1d1={_0x3756cc:0x1a8,_0x7c4a1e:0xad,_0x4f35cf:0x76,_0x3ec141:0x516,_0x272c5e:0x604,_0x277209:0x1d7},_0x329bf3={_0x355a08:0x19},_0x6360d3={_0x5db75c:0x1ca,_0x29be38:0x142},_0x2b22b2=_0x2ac054['NUVIN_DISABLE_LSP_DOWNLOAD']?.[_0x5426a6(_0x1ce1d1._0x3756cc,0x2ac,_0x1ce1d1._0x7c4a1e,_0x1ce1d1._0x4f35cf)]();function _0x5426a6(_0x27ed3b,_0x179ee3,_0x52bacd,_0x1ab4a0){return _0x1343ee(_0x27ed3b-0x94,_0x179ee3,_0x52bacd-_0x6360d3._0x5db75c,_0x1ab4a0-_0x6360d3._0x29be38);}function _0x140d29(_0x4efde9,_0xae48f7,_0x10f1f1,_0x1a64d4){return _0x357fd3(_0x4efde9-_0x329bf3._0x355a08,_0xae48f7-0x29,_0x10f1f1-0x501,_0x1a64d4);}return _0x2b22b2===_0x140d29(0x563,_0x1ce1d1._0x3ec141,0x5bd,_0x1ce1d1._0x272c5e)||_0x2b22b2==='1'||_0x2b22b2===_0x5426a6(0x143,0x1a8,_0x1ce1d1._0x277209,0x1cd)||_0x2b22b2==='on';}function getLspPackageDir(_0x1b055d){const _0x2fe74f={_0x528d6f:0x4ac,_0x3876d0:0x630,_0x29c708:0x62b,_0x54b0de:0x6c4,_0x1e0464:0x472,_0x9485c6:0x475,_0x57373c:0x450,_0xf8b59f:0x704,_0x310cfa:0x708,_0x5f3f77:0x6ce,_0x4dbab9:0x781},_0x43b1d8={_0x27151f:0x5b,_0x24fc85:0x1b},_0x28f1e6={_0xb41c6b:0x363};function _0x4efc2b(_0x37218b,_0x49a618,_0x2cea42,_0x5c5bc2){return _0x1343ee(_0x2cea42-_0x28f1e6._0xb41c6b,_0x49a618,_0x2cea42-0xf3,_0x5c5bc2-0x3);}function _0x4f5e5e(_0x14d60b,_0x2fdb0d,_0x2b5e5a,_0x393863){return _0x1343ee(_0x2b5e5a-0x50f,_0x2fdb0d,_0x2b5e5a-_0x43b1d8._0x27151f,_0x393863-_0x43b1d8._0x24fc85);}return _0x53cfac['join'](_0x2df844[_0x4efc2b(_0x2fe74f._0x528d6f,0x474,0x41d,0x30f)](),_0x4f5e5e(_0x2fe74f._0x3876d0,0x565,_0x2fe74f._0x29c708,_0x2fe74f._0x54b0de),_0x4f5e5e(0x32d,_0x2fe74f._0x1e0464,_0x2fe74f._0x9485c6,_0x2fe74f._0x57373c),_0x4f5e5e(_0x2fe74f._0xf8b59f,_0x2fe74f._0x310cfa,_0x2fe74f._0x5f3f77,_0x2fe74f._0x4dbab9),sanitizePackageName(_0x1b055d));}function getLspBinDir(_0x5e3b82){const _0x4ed682={_0x2c1e6d:0x2cc,_0x3015c0:0x49e,_0x1a7163:0x2f4,_0x3ca4df:0x42a,_0x215263:0x327},_0x4bd5a9={_0x18ab8e:0x1dd,_0x3549d6:0xc9},_0x58d3b6={_0x4ea841:0x30b};function _0x4054de(_0x131899,_0x45da13,_0x4fa69e,_0x580906){return _0x1343ee(_0x580906-_0x58d3b6._0x4ea841,_0x4fa69e,_0x4fa69e-0xc9,_0x580906-0x85);}function _0x45f819(_0x3b7b9a,_0x553e91,_0x3648bb,_0x778c81){return _0x1343ee(_0x3648bb- -_0x4bd5a9._0x18ab8e,_0x553e91,_0x3648bb-_0x4bd5a9._0x3549d6,_0x778c81-0x18b);}return _0x53cfac[_0x4054de(_0x4ed682._0x2c1e6d,0x43e,0x2f5,0x34a)](getLspPackageDir(_0x5e3b82),_0x4054de(_0x4ed682._0x3015c0,0x350,_0x4ed682._0x1a7163,_0x4ed682._0x3ca4df),_0x4054de(0x377,0x488,_0x4ed682._0x215263,0x46f));}async function findPackageBinary(_0xde0f2f,_0xd93a12){const _0x6905ba={_0x49d6e6:0x32d,_0x1f35fe:0x468,_0x324002:0x50d,_0x5e0ee4:0x56f,_0x5896d8:0x59b,_0x13ee86:0x394},_0x3eb665={_0x553306:0x100},_0x20ddd1={_0x4b5abb:0x2fc,_0x440a4a:0x4e,_0x1235ad:0x13e};let _0x153727=_0x53cfac[_0x42b1d2(0x4cf,_0x6905ba._0x49d6e6,_0x6905ba._0x1f35fe,_0x6905ba._0x324002)](_0xd93a12);function _0x28f9d8(_0x2cf69f,_0x1dcd0b,_0x1b576c,_0x13d788){return _0x1343ee(_0x1b576c-_0x20ddd1._0x4b5abb,_0x2cf69f,_0x1b576c-_0x20ddd1._0x440a4a,_0x13d788-_0x20ddd1._0x1235ad);}function _0x42b1d2(_0x16938e,_0x3a25b2,_0x5ed524,_0x46b9b6){return _0x357fd3(_0x16938e-_0x3eb665._0x553306,_0x3a25b2-0xa6,_0x5ed524-0x405,_0x3a25b2);}const _0x9d1a99=binaryNameForPlatform(_0xde0f2f);while(!![]){const _0x22fee5=_0x53cfac['join'](_0x153727,'node_modules',_0x42b1d2(_0x6905ba._0x5e0ee4,0x5b8,0x564,_0x6905ba._0x5896d8),_0x9d1a99);if(await exists(_0x22fee5))return _0x22fee5;const _0x255c5e=_0x53cfac[_0x28f9d8(0x5e6,0x381,0x4b0,_0x6905ba._0x13ee86)](_0x153727);if(_0x255c5e===_0x153727)return void 0x0;_0x153727=_0x255c5e;}}async function findPathBinary(_0x5eba13,_0x417bc5){const _0x2b6909={_0x5c4db2:0x552,_0x577019:0x478,_0x592b3c:0x603,_0x4e56ad:0x474},_0xdce2bb={_0x3be146:0xe8},_0xa05ac0={_0x35ecdf:0x1c1},_0x56914a=getLspBinDir(_0x417bc5),_0x559439=[_0x56914a,process[_0x23e740(0x64a,_0x2b6909._0x5c4db2,_0x2b6909._0x577019,0x5c2)]['PATH']][_0x23e740(0x728,0x516,0x5e5,_0x2b6909._0x592b3c)](Boolean)['join'](_0x53cfac[_0x23e740(0x490,0x4d1,0x3a0,_0x2b6909._0x4e56ad)]);function _0x466022(_0x865abd,_0x296420,_0x34adad,_0x314427){return _0x1343ee(_0x34adad- -0x1f8,_0x296420,_0x34adad-0x18c,_0x314427-_0xa05ac0._0x35ecdf);}function _0x23e740(_0x40c6df,_0x52d8f9,_0x1ed66e,_0x13cab7){return _0x357fd3(_0x40c6df-_0xdce2bb._0x3be146,_0x52d8f9-0x14a,_0x13cab7-0x50c,_0x40c6df);}try{return await _0x31176f(_0x5eba13,{'path':_0x559439});}catch{return void 0x0;}}async function resolvePackageBinary(_0x43fa17){const _0x42e47d={_0x59c049:0xef,_0x31c7a5:0xd6,_0x2db43f:0x1bf,_0x2d7186:0x9f,_0x30a697:0xf0,_0x54bcbc:0xad,_0x1abdeb:0x3f,_0x2a74ab:0xb,_0x450293:0x272,_0xf6e630:0x229,_0x5c578b:0x159,_0x14c1f2:0x11,_0x55f90a:0x106,_0x41a556:0x12b,_0x24cdf8:0x14a,_0x1826e3:0x21f,_0x3ac230:0x149,_0x118001:0xfb,_0x3a1ca8:0x140,_0x5801c4:0x231,_0x3502be:0x16c,_0x32cc93:0x11d,_0x33cb10:0x241,_0x2ec92c:0x2ae},_0x28fe10={_0x598c08:0x138,_0x448e25:0x5b,_0x3c6cef:0x14f,_0x49d05a:0x73,_0x558be1:0x1bc},_0x40cc82={_0x2ad8ea:0x47,_0x48c928:0x114},_0x5b5090={_0x17da9d:0x9e,_0x2d0530:0x42,_0x4b1055:0x1e0},_0x1ad605={_0xba7198:0xd,_0x44198a:0x6e,_0x57edf0:0x1b9},_0x28b2f7=_0x43fa17['binaryName']??_0x43fa17['packageName'];function _0x1e7a19(_0x5b85b9,_0x7ef54b,_0x16c5ea,_0x434773){return _0x1343ee(_0x7ef54b- -_0x1ad605._0xba7198,_0x5b85b9,_0x16c5ea-_0x1ad605._0x44198a,_0x434773-_0x1ad605._0x57edf0);}const _0x227793=await findPackageBinary(_0x28b2f7,_0x43fa17[_0x1e7a19(_0x42e47d._0x59c049,0x12c,0x94,_0x42e47d._0x31c7a5)]);if(_0x227793)return _0x227793;const _0x1f045f=await findPathBinary(_0x28b2f7,_0x43fa17[_0x1e7a19(_0x42e47d._0x2db43f,_0x42e47d._0x2d7186,_0x42e47d._0x30a697,_0x42e47d._0x54bcbc)]);if(_0x1f045f)return _0x1f045f;const _0x388c34=_0x43fa17[_0x1e7a19(-_0x42e47d._0x1abdeb,0xae,0xc9,-_0x42e47d._0x2a74ab)]??process[_0x292d48(_0x42e47d._0x450293,0x1b4,_0x42e47d._0xf6e630,_0x42e47d._0x5c578b)];if(shouldDisableLspDownload(_0x388c34))return void 0x0;const _0x5dad1f=getLspPackageDir(_0x43fa17[_0x292d48(_0x42e47d._0x14c1f2,_0x42e47d._0x55f90a,_0x42e47d._0x41a556,_0x42e47d._0x24cdf8)]),_0x77d66c=_0x43fa17[_0x292d48(_0x42e47d._0x1826e3,0x8b,_0x42e47d._0x3ac230,0x14a)]+':'+_0x28b2f7;function _0x292d48(_0x5240c9,_0x3c081e,_0x972e04,_0x53d2fd){return _0x1343ee(_0x53d2fd-_0x5b5090._0x17da9d,_0x3c081e,_0x972e04-_0x5b5090._0x2d0530,_0x53d2fd-_0x5b5090._0x4b1055);}let _0x12d6a8=installPromises[_0x292d48(_0x42e47d._0x118001,-0x9e,_0x42e47d._0x3a1ca8,0x5)](_0x77d66c);!_0x12d6a8&&(_0x12d6a8=((async()=>{await mkdir(_0x5dad1f,{'recursive':!![]});function _0x42a10e(_0x34d37b,_0x539b47,_0x53d3c5,_0x488966){return _0x292d48(_0x34d37b-0x1d1,_0x539b47,_0x53d3c5-_0x40cc82._0x2ad8ea,_0x488966- -_0x40cc82._0x48c928);}const _0x5a4b75=await runNpmInstall(_0x5dad1f,_0x43fa17[_0x1aca67(0xf0,0xfd,_0x28fe10._0x598c08,0x1bc)],_0x388c34);if(!_0x5a4b75)return void 0x0;const _0x6cdeee=_0x53cfac[_0x1aca67(0x132,_0x28fe10._0x448e25,0x155,_0x28fe10._0x3c6cef)](getLspBinDir(_0x43fa17[_0x1aca67(0x2d2,0x15e,_0x28fe10._0x49d05a,_0x28fe10._0x558be1)]),binaryNameForPlatform(_0x28b2f7));function _0x1aca67(_0x2850ef,_0x256787,_0x3e68cc,_0x131942){return _0x1e7a19(_0x3e68cc,_0x131942-0x11d,_0x3e68cc-0x4a,_0x131942-0x1d4);}return await exists(_0x6cdeee)?_0x6cdeee:void 0x0;})()),installPromises[_0x292d48(_0x42e47d._0x5801c4,_0x42e47d._0x3502be,0x1fd,_0x42e47d._0x32cc93)](_0x77d66c,_0x12d6a8));try{return await _0x12d6a8;}catch{return void 0x0;}finally{installPromises[_0x292d48(0x2ea,_0x42e47d._0x33cb10,_0x42e47d._0x2ec92c,0x1e4)](_0x77d66c);}}var TYPESCRIPT_EXTENSIONS=[_0x1343ee(0xf2,0xa6,0x1d,0x1bd),_0x357fd3(-0x66,-0x10e,0x20,-0x13),'.js',_0x1343ee(0x10e,0x255,-0x32,0x168),_0x357fd3(-0x14c,0x101,-0x42,-0xa8),_0x357fd3(0xd1,-0x19,0xfb,0xf0),'.mts','.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x1343ee(-0x7f,0x74,-0x17e,-0x153),_0x357fd3(0x16b,0x15c,0xd7,-0x4c)],TYPESCRIPT_ROOT_MARKERS=[_0x1343ee(0x1d5,0x1b2,0x27d,0x30f),'bun.lockb',_0x357fd3(0x47,-0x8a,0x50,-0x37),_0x357fd3(0x15e,0x173,0x11f,0x162),_0x1343ee(0x170,0xe9,0x22c,0x1d2),_0x1343ee(0xf1,-0x35,-0x2a,0x1d3),'jsconfig.json',_0x1343ee(-0xb7,-0x7a,0x67,-0x157)],BIOME_ROOT_MARKERS=['biome.json',_0x1343ee(-0x5,-0x1e,0x9,-0x52),_0x1343ee(0x1d5,0xf2,0xf7,0xf4),'bun.lockb',_0x357fd3(0xb5,0x18e,0x50,-0xbc),_0x357fd3(0xd2,0x50,0x11f,0xf0),_0x357fd3(0x148,0x214,0x16b,0xbe),_0x1343ee(-0xb7,0x56,-0x63,-0x19a)];async function exists2(_0x121c85){try{return await _0x3a9a36(_0x121c85),!![];}catch{return![];}}async function findUp(_0x1b55ed,_0x2764ba){const _0x61aa79={_0x1a14eb:0x20f,_0x38c3d7:0x23b,_0x3de489:0xe6,_0x408554:0x226,_0x350034:0x410,_0x459569:0x242},_0x4d9a51={_0x4e4bc3:0x97},_0x318b0a={_0x3f38ae:0x15b};let _0x4ecfa8=_0x1573c4[_0x501348(-0x2e1,-0x1c3,-0x346,-0x1fd)](_0x1b55ed);function _0x53fe5a(_0x51a299,_0x541094,_0x2255ec,_0x11ac80){return _0x357fd3(_0x51a299-0x13c,_0x541094-_0x318b0a._0x3f38ae,_0x11ac80-0x197,_0x541094);}const _0x154a07=_0x1573c4['extname'](_0x4ecfa8);function _0x501348(_0x345d14,_0xbfcf9f,_0x298319,_0x253c75){return _0x357fd3(_0x345d14-_0x4d9a51._0x4e4bc3,_0xbfcf9f-0x1d9,_0x253c75- -0x260,_0xbfcf9f);}if(_0x154a07)_0x4ecfa8=_0x1573c4['dirname'](_0x4ecfa8);while(!![]){for(const _0x14452d of _0x2764ba){if(await exists2(_0x1573c4[_0x501348(-_0x61aa79._0x1a14eb,-_0x61aa79._0x38c3d7,-_0x61aa79._0x3de489,-_0x61aa79._0x408554)](_0x4ecfa8,_0x14452d)))return _0x4ecfa8;}const _0x49ee66=_0x1573c4[_0x53fe5a(0x41d,_0x61aa79._0x350034,_0x61aa79._0x459569,0x346)](_0x4ecfa8);if(_0x49ee66===_0x4ecfa8)return void 0x0;_0x4ecfa8=_0x49ee66;}}async function hasDenoRoot(_0x1639d1){const _0x49eacf={_0x2254f5:0xcd,_0x3c4853:0xbf,_0x3c9d97:0x2b,_0x2662a2:0x9,_0x177d45:0x1c8,_0xc40bf5:0x74,_0xa4812b:0x92,_0x4b411b:0x107,_0x3e4c2f:0x84,_0x570bd1:0x116},_0x3d7f73={_0x106f51:0x2c},_0xdee724={_0x473eef:0x147};function _0x41d194(_0x1b414b,_0x344a57,_0x3cd6ec,_0x474d8a){return _0x357fd3(_0x1b414b-_0xdee724._0x473eef,_0x344a57-0xde,_0x474d8a- -0xf,_0x1b414b);}function _0x55c377(_0x5b8665,_0x23409b,_0x3280c7,_0x3ca978){return _0x1343ee(_0x3ca978-0x172,_0x3280c7,_0x3280c7-0x86,_0x3ca978-_0x3d7f73._0x106f51);}return await exists2(_0x1573c4[_0x41d194(-_0x49eacf._0x2254f5,0x9a,_0x49eacf._0x3c4853,_0x49eacf._0x3c9d97)](_0x1639d1,_0x55c377(-_0x49eacf._0x2662a2,_0x49eacf._0x177d45,0x8b,0xe1)))||await exists2(_0x1573c4[_0x41d194(_0x49eacf._0xc40bf5,0x1b,_0x49eacf._0xa4812b,0x2b)](_0x1639d1,_0x55c377(_0x49eacf._0x4b411b,0x11e,_0x49eacf._0x3e4c2f,_0x49eacf._0x570bd1)));}async function resolveTsserverPath(_0x13059f){const _0x3f6cf1={_0x409877:0x274,_0x37cb97:0x3a7,_0x25e96c:0x264,_0x1292d0:0x2b1,_0x5d3af6:0x1d9,_0x142eba:0x17b,_0x4c7b9a:0x27f,_0x1f66ba:0x161,_0x404f79:0x605,_0x5d2f57:0x4b9,_0x1299c0:0x609,_0x76ad69:0x5b9,_0x4b1651:0x4f7,_0x4b1a83:0x264,_0x7e21a1:0x490,_0x5781a1:0x2fa,_0xecdd85:0x236,_0x425eeb:0x11a,_0x534609:0x4d2,_0x5bce10:0x61f,_0x50d9d7:0x6b3},_0x1f58e1={_0xad541a:0x1aa},_0xb049b0={_0x3be46d:0x78,_0x3030d6:0x456};let _0x4155e3=_0x1573c4['resolve'](_0x13059f);while(!![]){const _0x1bbae5=_0x1573c4[_0x1398fa(-0x12,0x13b,0x18f,_0x3f6cf1._0x409877)](_0x4155e3,'node_modules',_0x1398fa(_0x3f6cf1._0x37cb97,_0x3f6cf1._0x25e96c,0x378,0x265),_0x1398fa(0x226,0x17d,_0x3f6cf1._0x1292d0,_0x3f6cf1._0x5d3af6),_0x1398fa(_0x3f6cf1._0x142eba,0x28d,_0x3f6cf1._0x4c7b9a,_0x3f6cf1._0x1f66ba));if(await exists2(_0x1bbae5))return _0x1bbae5;const _0x3dac55=_0x1573c4[_0x4460a8(0x640,_0x3f6cf1._0x404f79,0x52e,_0x3f6cf1._0x5d2f57)](_0x4155e3);if(_0x3dac55===_0x4155e3)break;_0x4155e3=_0x3dac55;}const _0x466524=getLspPackageDir(_0x4460a8(_0x3f6cf1._0x1299c0,_0x3f6cf1._0x76ad69,0x57d,_0x3f6cf1._0x4b1651)),_0x4ea4c5=await resolvePackageBinary({'packageName':_0x1398fa(0x131,_0x3f6cf1._0x4b1a83,0x1e0,0x21f),'binaryName':_0x4460a8(0x63f,0x515,0x3ee,0x4be),'startDir':_0x13059f});if(!_0x4ea4c5)return void 0x0;function _0x4460a8(_0x2076ab,_0x23789c,_0x5de70d,_0x5e03da){return _0x357fd3(_0x2076ab-_0xb049b0._0x3be46d,_0x23789c-0x189,_0x23789c-_0xb049b0._0x3030d6,_0x2076ab);}const _0x4249e2=_0x1573c4[_0x4460a8(0x344,_0x3f6cf1._0x7e21a1,0x589,0x562)](_0x466524,_0x1398fa(0x358,0x21b,_0x3f6cf1._0x5781a1,_0x3f6cf1._0xecdd85),_0x1398fa(0x1ee,0x264,0x126,_0x3f6cf1._0x425eeb),_0x4460a8(0x43f,_0x3f6cf1._0x534609,0x46b,_0x3f6cf1._0x5bce10),_0x4460a8(0x691,0x5e2,_0x3f6cf1._0x50d9d7,0x4c8));function _0x1398fa(_0x2d2425,_0x590ede,_0x6b366a,_0x599e05){return _0x1343ee(_0x590ede-0xfc,_0x599e05,_0x6b366a-_0x1f58e1._0xad541a,_0x599e05-0x29);}return await exists2(_0x4249e2)?_0x4249e2:void 0x0;}var TypeScriptServer={'id':'typescript','name':_0x357fd3(0x38,0x2e,-0xd,0xc4),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x392890){const _0x59d9db=await findUp(_0x392890,TYPESCRIPT_ROOT_MARKERS);if(!_0x59d9db)return void 0x0;return await hasDenoRoot(_0x59d9db)?void 0x0:_0x59d9db;},async 'spawn'(_0x1faa24){const _0x25730d={_0x3ff22f:0x1c5,_0x23ed35:0x43d,_0x36138f:0x485,_0x1c0a45:0x22e,_0x4c9a89:0x14b,_0x3f8645:0x1},_0x369bff={_0xf4df9a:0xbb,_0x31ae4b:0x77},_0x3f2288={_0x20c677:0x14a},_0x3e9a31=await resolveTsserverPath(_0x1faa24);if(!_0x3e9a31)return void 0x0;function _0x2708f2(_0x2ebf34,_0x4edc35,_0xd7bcc9,_0x4d275f){return _0x357fd3(_0x2ebf34-_0x3f2288._0x20c677,_0x4edc35-0x1d2,_0x2ebf34-0x1e0,_0x4d275f);}function _0x24b1b0(_0x3b2dbf,_0xb8a9eb,_0xde1c8e,_0x192d29){return _0x357fd3(_0x3b2dbf-0xb5,_0xb8a9eb-_0x369bff._0xf4df9a,_0x192d29-_0x369bff._0x31ae4b,_0xde1c8e);}const _0x3723a5=await resolvePackageBinary({'packageName':_0x24b1b0(_0x25730d._0x3ff22f,0xd6,0x2d2,0x1cd),'binaryName':_0x2708f2(0x336,_0x25730d._0x23ed35,_0x25730d._0x36138f,_0x25730d._0x1c0a45),'startDir':_0x1faa24});if(!_0x3723a5)return void 0x0;return{'process':_0x1b0add(_0x3723a5,['--stdio'],{'cwd':_0x1faa24,'stdio':_0x24b1b0(-_0x25730d._0x4c9a89,-0x127,-_0x25730d._0x3f8645,0x1)}),'initialization':{'tsserver':{'path':_0x3e9a31}}};}},BiomeServer={'id':'biome','name':_0x357fd3(0xe,0x173,0x84,-0x5e),'extensions':BIOME_EXTENSIONS,async 'root'(_0x561649){return findUp(_0x561649,BIOME_ROOT_MARKERS);},async 'spawn'(_0x110b56){const _0x2395e0={_0x28fabd:0x527,_0x48331a:0x16c,_0x3ac356:0x59f,_0x4f6022:0x68d,_0x360014:0x38,_0xb36b48:0x1c9,_0x4fcb84:0x3f9,_0x50e805:0x396},_0x35c0c9={_0x1f993d:0x100,_0x3b025e:0x54},_0x362e49={_0x5484b5:0x3c8};function _0x1f527e(_0x43a153,_0xc34daa,_0x2e1a02,_0x240884){return _0x357fd3(_0x43a153-0x40,_0xc34daa-0xc6,_0x240884-_0x362e49._0x5484b5,_0xc34daa);}function _0x1ad211(_0x7104bc,_0x306534,_0x1094c3,_0x38dc94){return _0x357fd3(_0x7104bc-_0x35c0c9._0x1f993d,_0x306534-_0x35c0c9._0x3b025e,_0x38dc94-0x45,_0x306534);}const _0x236a8c=await findPackageBinary(_0x1f527e(_0x2395e0._0x28fabd,0x5a1,0x662,0x547),_0x110b56)??await resolvePackageBinary({'packageName':'@biomejs/biome','binaryName':_0x1ad211(0x18a,0x13b,_0x2395e0._0x48331a,0x1c4),'startDir':_0x110b56});if(!_0x236a8c)return void 0x0;return{'process':_0x1b0add(_0x236a8c,[_0x1f527e(_0x2395e0._0x3ac356,0x583,_0x2395e0._0x4f6022,0x58b),_0x1ad211(_0x2395e0._0x360014,0xfd,_0x2395e0._0xb36b48,0x91)],{'cwd':_0x110b56,'stdio':_0x1f527e(_0x2395e0._0x4fcb84,_0x2395e0._0x50e805,0x238,0x352)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x5a2bd8){const _0x1b9507={_0x2326f5:0x4ee,_0x1eb2de:0x573,_0x2f7907:0x4bd,_0x2153b9:0x600,_0x51863e:0x4d5,_0x25141d:0x42d,_0x2ef870:0x1cc,_0x42987d:0x3c9,_0x793350:0x27e},_0xb3a558={_0x49228f:0x1b4,_0x5ba5d7:0x187},_0x245da1={_0x19f436:0x3c1,_0x243e80:0x115};function _0x496c1e(_0x310da9,_0x248b82,_0xdf4c78,_0xfb2961){return _0x1343ee(_0x310da9-_0x245da1._0x19f436,_0xfb2961,_0xdf4c78-0x195,_0xfb2961-_0x245da1._0x243e80);}function _0x1a263f(_0x33fd94,_0x222284,_0x3ce616,_0x4fdd45){return _0x357fd3(_0x33fd94-_0xb3a558._0x49228f,_0x222284-0x112,_0x3ce616-_0xb3a558._0x5ba5d7,_0x33fd94);}const _0x343d5b=_0x1573c4[_0x496c1e(_0x1b9507._0x2326f5,_0x1b9507._0x1eb2de,_0x1b9507._0x2f7907,_0x1b9507._0x2153b9)](_0x5a2bd8)[_0x496c1e(_0x1b9507._0x51863e,0x490,_0x1b9507._0x25141d,0x504)]();return BUILTIN_LSP_SERVERS[_0x1a263f(_0x1b9507._0x2ef870,_0x1b9507._0x42987d,_0x1b9507._0x793350,0x301)](_0x1f5436=>_0x1f5436['extensions']['includes'](_0x343d5b));}function stateKey(_0x57f40f,_0x520433){return _0x520433+':'+_0x57f40f['id'];}function diagnosticsKeyToPath(_0x101f59){const _0x2078a5={_0x21479c:0x11d},_0x536ef5={_0x5600c9:0x1ef,_0x118810:0x1c1};function _0xd7bcd0(_0xf63117,_0xe7e808,_0x194961,_0x416458){return _0x1343ee(_0x416458- -_0x536ef5._0x5600c9,_0xf63117,_0x194961-0x119,_0x416458-_0x536ef5._0x118810);}if(!_0x101f59[_0xd7bcd0(-0x21d,-0x10b,-_0x2078a5._0x21479c,-0x203)]('file://'))return _0x101f59;return fileURLToPath(_0x101f59);}function nextFileVersion(_0x10c895,_0x59ea52){const _0x3d3d73={_0x34aa1d:0xa9,_0x3d4a18:0xe3,_0x2ed020:0x12d,_0x15af0b:0x300,_0x547d27:0x259,_0x3c58bd:0x357,_0x1c7398:0x13c,_0x59d619:0x24d,_0x26851a:0x141},_0x5f1c77={_0x3481f1:0x56},_0x39f858={_0x491325:0x1bd,_0x2f343d:0x10};function _0x3ed06c(_0x52df18,_0x5267d4,_0x4496d1,_0x310d3e){return _0x1343ee(_0x52df18-0x124,_0x310d3e,_0x4496d1-_0x39f858._0x491325,_0x310d3e-_0x39f858._0x2f343d);}const _0x40e698=(_0x10c895[_0x3ed06c(_0x3d3d73._0x34aa1d,_0x3d3d73._0x3d4a18,0x11c,_0x3d3d73._0x2ed020)][_0x1e2215(-_0x3d3d73._0x15af0b,-_0x3d3d73._0x547d27,-_0x3d3d73._0x3c58bd,-_0x3d3d73._0x1c7398)](_0x59ea52)??0x1)+0x1;function _0x1e2215(_0x5444c2,_0x124ca7,_0x3017ad,_0xd63169){return _0x357fd3(_0x5444c2-0x1f2,_0x124ca7-_0x5f1c77._0x3481f1,_0x124ca7- -0x1bb,_0xd63169);}return _0x10c895['fileVersions'][_0x1e2215(-_0x3d3d73._0x59d619,-_0x3d3d73._0x26851a,-0xa9,-0x154)](_0x59ea52,_0x40e698),_0x40e698;}async function collectClientResults(_0x53693c){const _0x41ae9c={_0x5cc657:0x12f,_0x2b48a4:0x77,_0x339a21:0xb5,_0x2e92b7:0x115,_0x4ad404:0xc6,_0x1ecc57:0x156},_0x4a3877={_0x4fd9f3:0xe,_0x1aba03:0x10b,_0x1e3b2a:0xc8},_0x17061d={_0x3405be:0x1f0,_0x4c4c65:0x143,_0x3b8c7b:0xba};function _0x150bd7(_0x488c04,_0x4c34eb,_0x19ffdb,_0x36ae24){return _0x357fd3(_0x488c04-_0x17061d._0x3405be,_0x4c34eb-_0x17061d._0x4c4c65,_0x4c34eb-_0x17061d._0x3b8c7b,_0x36ae24);}const _0x708c30=await Promise[_0x55ad8e(_0x41ae9c._0x5cc657,-_0x41ae9c._0x2b48a4,_0x41ae9c._0x339a21,-0x33)](_0x53693c);function _0x55ad8e(_0x59f225,_0x1f6ea5,_0x7652fc,_0x132ff8){return _0x1343ee(_0x7652fc- -_0x4a3877._0x4fd9f3,_0x1f6ea5,_0x7652fc-_0x4a3877._0x1aba03,_0x132ff8-_0x4a3877._0x1e3b2a);}return _0x708c30[_0x55ad8e(_0x41ae9c._0x2e92b7,_0x41ae9c._0x4ad404,0x7c,_0x41ae9c._0x1ecc57)](_0x2f587d=>_0x2f587d[_0x55ad8e(0x56,0x79,-0xa,-0x89)]===_0x55ad8e(0x11f,-0x3,0xcb,-0x81)?_0x2f587d[_0x150bd7(0x17a,0x7f,0x1a,0x6b)]:[]);}function createLspService(_0x512926={}){const _0x4c9ff7={_0x1454b8:0x26a},_0x1d9e47={_0x970af1:0x1f6,_0x228291:0x2e7,_0x57b926:0x27e,_0x5322d9:0x14c,_0x1f6083:0x28d,_0x31e577:0x172,_0x485e37:0x42,_0xb5a867:0x63,_0x1332ef:0x24c,_0x529df0:0x22e,_0x7a681b:0x1a1,_0x1f5881:0x27a,_0x1a3e35:0x3e,_0x3f4dc9:0xa0,_0x44d25b:0x238,_0x2e4ca2:0x13c,_0x4ee742:0x188,_0x14e0e4:0x18e,_0x7c098f:0x1ee,_0x3dc753:0x57,_0x33d541:0xca,_0x1d91bc:0xcd},_0x19c27e={_0x17f891:0x2c2,_0x3762df:0x1b6},_0x41fc23={_0x4d2c0d:0x13a,_0x5a7745:0x75},_0x10cf8a={_0x318a28:0x169},_0x2c5327={_0x5c3ca1:0x10e,_0x32c23b:0x241},_0x5026e7={_0x285134:0x74},_0x2a8e71={_0x4de443:0x260,_0x43f415:0x279,_0x4ccb10:0x1e8,_0x3d1a9a:0x1b3,_0x1f1044:0x23d},_0x63d9d2={_0x151313:0x26},_0x352a1c={_0x21bacc:0x155,_0x1ee84b:0x184},_0x2e2d05={_0x16cf22:0x1bb,_0x4dc869:0xf8},_0x2633ba={_0xc50e7b:0x2ea},_0x3f5b17={_0x29531c:0x165},_0x48ba31={_0x38d3ad:0x406,_0x35be20:0x366},_0x560588={_0x4d8eab:0x2d,_0x510551:0x5f,_0x4097bc:0x15f,_0xa65387:0x24c,_0x5e2c72:0x2af},_0x173610={_0x5037e5:0x184},_0xad07bc={_0x4ba18e:0x380},_0xb061e9={_0x34b089:0x1b6},_0x576220={_0xb0d811:0xfd,_0x66f2c:0x304,_0x6148c7:0x12d,_0x27c03d:0xc5},_0x3a6c43={_0x3585e4:0x2b,_0x2c404f:0xf2},_0x3ccf5c={_0x298b1e:0xc4,_0x14f157:0x34,_0x57731f:0x83,_0x182931:0xd,_0x45aeb5:0x58,_0x149af4:0x9d,_0x130555:0x9b,_0x2ece71:0x99},_0x56bb09={_0x37bd9e:0x19f,_0x2c44b7:0x93,_0x3cd901:0x81,_0x3e8c5c:0x246,_0x4b0d04:0x29d,_0x3de401:0x278,_0x25ed9e:0x3b9,_0x34cd3f:0x320,_0x5119d2:0x4ae,_0x3b25d8:0x160,_0x3f997c:0x24,_0x53d9f9:0x20d},_0x5eba7a={_0x26e696:0x2f3,_0x525d09:0x11a},_0x387f1c={_0x2354e9:0x76,_0xd73847:0x119};function _0x4869cc(_0x322050,_0x4c42ff,_0x4d9f1d,_0x230577){return _0x357fd3(_0x322050-0x74,_0x4c42ff-_0x387f1c._0x2354e9,_0x322050-_0x387f1c._0xd73847,_0x4c42ff);}const _0x5d27ef={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x5876e1=()=>_0x512926[_0x4869cc(0xea,0x29,-0x3a,0x12)]!==![];async function _0x3c8508(_0x50d625,_0xc7770e){const _0x34891b={_0x255682:0x14,_0x285e49:0x254,_0x5d178a:0x175,_0x2fa34e:0x4b1,_0x1ec58d:0x517,_0x5d561c:0x4c4,_0x418e6b:0x447,_0x239d4b:0x445,_0xe767bc:0x365,_0x3df74e:0x500,_0xee6311:0x4cc,_0x5f1a18:0x209,_0x5e2c45:0x269,_0x5d5f05:0x4b1,_0x119fd0:0x429,_0x416c01:0x346,_0xc4bc9a:0x4a6,_0x540dd0:0x511,_0x383639:0x3c6},_0x3ae507={_0x58c1a3:0xa2},_0x5abe8c=stateKey(_0x50d625,_0xc7770e);function _0x19ed3a(_0x26674c,_0x3e6162,_0x3fc659,_0x38f6f7){return _0x4869cc(_0x38f6f7-0x215,_0x3fc659,_0x3fc659-0x12,_0x38f6f7-0x125);}const _0x3c343a=_0x5d27ef[_0x19ed3a(_0x56bb09._0x37bd9e,0x373,0x248,0x2c3)][_0x3d6c6d(-_0x56bb09._0x2c44b7,-0x133,_0x56bb09._0x3cd901,0x13)](_0x26dd34=>_0x26dd34[_0x19ed3a(0x34c,0x458,0x27d,0x3bc)]===_0x50d625['id']&&_0x26dd34[_0x19ed3a(0x311,0x292,0x429,0x31c)]===_0xc7770e);if(_0x3c343a)return _0x3c343a;if(_0x5d27ef[_0x3d6c6d(-_0x56bb09._0x3e8c5c,-0x196,-0x36e,-_0x56bb09._0x4b0d04)]['has'](_0x5abe8c))return void 0x0;function _0x3d6c6d(_0x588531,_0x45a19e,_0xd1ea50,_0x2840ed){return _0x4869cc(_0x588531- -_0x5eba7a._0x26e696,_0x2840ed,_0xd1ea50-0x3b,_0x2840ed-_0x5eba7a._0x525d09);}const _0x38f571=_0x5d27ef['spawning'][_0x3d6c6d(-_0x56bb09._0x3de401,-_0x56bb09._0x25ed9e,-0x2c9,-_0x56bb09._0x34cd3f)](_0x5abe8c);if(_0x38f571)return _0x38f571;const _0x1096aa=((async()=>{const _0x344552={_0xbd431c:0xe2};function _0x3458dc(_0x555642,_0x3ed32b,_0x5c43aa,_0x260433){return _0x3d6c6d(_0x555642-0x36d,_0x3ed32b-_0x344552._0xbd431c,_0x5c43aa-0x1c6,_0x5c43aa);}function _0x123408(_0x45fbfd,_0x5d39c8,_0x32639c,_0x3f6328){return _0x19ed3a(_0x45fbfd-0x119,_0x5d39c8-0x1dc,_0x3f6328,_0x45fbfd-_0x3ae507._0x58c1a3);}try{const _0xd9f12e=await _0x50d625['spawn'](_0xc7770e);if(!_0xd9f12e)return _0x5d27ef[_0x3458dc(0x127,-_0x34891b._0x255682,_0x34891b._0x285e49,_0x34891b._0x5d178a)]['add'](_0x5abe8c),void 0x0;const _0x3201da=await createLspClient({'server':_0x50d625,'root':_0xc7770e,'handle':_0xd9f12e}),_0x4bb755=_0x5d27ef[_0x123408(0x365,0x30b,0x444,_0x34891b._0x2fa34e)][_0x123408(_0x34891b._0x1ec58d,_0x34891b._0x5d561c,_0x34891b._0x418e6b,_0x34891b._0x239d4b)](_0x3a4bb6=>_0x3a4bb6[_0x123408(0x45e,0x3ff,0x5a6,0x389)]===_0x50d625['id']&&_0x3a4bb6[_0x123408(0x3be,0x350,0x4bf,0x337)]===_0xc7770e);if(_0x4bb755)return await _0x3201da['shutdown'](),_0x4bb755;return _0x5d27ef[_0x123408(_0x34891b._0xe767bc,0x40b,0x42a,0x383)][_0x123408(0x42d,0x33a,_0x34891b._0x3df74e,_0x34891b._0xee6311)](_0x3201da),_0x3201da;}catch{return _0x5d27ef[_0x3458dc(0x127,0xe3,_0x34891b._0x5f1a18,_0x34891b._0x5e2c45)][_0x123408(_0x34891b._0x5d5f05,0x3d3,0x3fd,0x4fa)](_0x5abe8c),void 0x0;}finally{_0x5d27ef[_0x123408(_0x34891b._0x119fd0,_0x34891b._0x416c01,_0x34891b._0xc4bc9a,0x472)][_0x123408(_0x34891b._0x540dd0,0x467,_0x34891b._0x383639,0x572)](_0x5abe8c);}})());return _0x5d27ef[_0x19ed3a(0x400,0x240,_0x56bb09._0x5119d2,0x387)][_0x3d6c6d(-_0x56bb09._0x3b25d8,-_0x56bb09._0x3f997c,-0x169,-_0x56bb09._0x53d9f9)](_0x5abe8c,_0x1096aa),_0x1096aa;}async function _0x3b12db(_0x11400d,_0x45a210){const _0x27bd9f={_0xfd02cd:0x30f,_0x5602ed:0x2},_0x18db52={_0x3ec6f9:0xbb,_0x6b9da7:0x23};if(!_0x5876e1())return[];function _0x34137f(_0x4b3c91,_0x38209b,_0x2efe8c,_0x194ea6){return _0x4869cc(_0x4b3c91- -_0x18db52._0x3ec6f9,_0x194ea6,_0x2efe8c-0x64,_0x194ea6-_0x18db52._0x6b9da7);}function _0x2f131c(_0x232592,_0x410b20,_0x13cbaf,_0x3e8aa5){return _0x4869cc(_0x3e8aa5- -_0x27bd9f._0xfd02cd,_0x13cbaf,_0x13cbaf-0x18,_0x3e8aa5-_0x27bd9f._0x5602ed);}const _0xaaba78=[];for(const _0x519749 of getServersForFile(_0x11400d)){const _0x477f3b=await _0x519749[_0x34137f(0x4c,0x152,_0x3ccf5c._0x298b1e,0x42)](_0x11400d);if(!_0x477f3b)continue;const _0x1e378a=stateKey(_0x519749,_0x477f3b);if(_0x5d27ef[_0x34137f(-0xe,-_0x3ccf5c._0x14f157,-0x153,_0x3ccf5c._0x57731f)]['has'](_0x1e378a))continue;const _0x57b8f6=_0x5d27ef[_0x34137f(-_0x3ccf5c._0x182931,0x43,_0x3ccf5c._0x45aeb5,_0x3ccf5c._0x149af4)][_0x34137f(0x1a5,_0x3ccf5c._0x130555,_0x3ccf5c._0x2ece71,0x20b)](_0xc18ece=>_0xc18ece[_0x34137f(0xec,0xab,0x16c,0x142)]===_0x519749['id']&&_0xc18ece[_0x34137f(0x4c,-0x32,-0x74,-0xe2)]===_0x477f3b);if(_0x57b8f6){_0xaaba78['push'](_0x57b8f6);continue;}if(!_0x45a210)continue;const _0xf9d280=await _0x3c8508(_0x519749,_0x477f3b);if(_0xf9d280)_0xaaba78['push'](_0xf9d280);}return _0xaaba78;}async function _0xc4edf2(_0x558218,_0x2deb44=![]){const _0x1c9c1b={_0x4e51cd:0x198,_0x3e113a:0x1ff,_0x13cd59:0x26c,_0x2f710c:0x361,_0x46f647:0x48d,_0x217b91:0x464,_0xcc0f83:0x4e2,_0x5ba66c:0x204,_0x27395c:0x2b8,_0x2e80ba:0x15c,_0x54a3ab:0x1c1,_0x4dfc39:0xf2,_0x55ceae:0x34e,_0x2f579e:0x52e,_0xcd8a75:0x3ed,_0x206996:0x1dc,_0x25275f:0x1b2,_0x3b9460:0x521,_0x450d15:0x60a},_0x55909c={_0x12857e:0xd2},_0x5cdcc0=await _0x3b12db(_0x558218,!![]);await Promise['all'](_0x5cdcc0['map'](async _0x1380e3=>{function _0x19d7f2(_0x2da405,_0x5e4afc,_0x2653fc,_0x10ce48){return _0x1358(_0x5e4afc-0x2b2,_0x2653fc);}function _0x1fb174(_0x5e6519,_0x5385ee,_0x4c28eb,_0x42bc9a){return _0x1358(_0x5e6519- -_0x55909c._0x12857e,_0x5385ee);}!_0x5d27ef[_0x1fb174(0x204,_0x1c9c1b._0x4e51cd,_0x1c9c1b._0x3e113a,_0x1c9c1b._0x13cd59)]['has'](_0x1380e3[_0x19d7f2(_0x1c9c1b._0x2f710c,_0x1c9c1b._0x46f647,0x374,0x48e)]+':'+_0x1380e3[_0x19d7f2(_0x1c9c1b._0x217b91,0x3ed,_0x1c9c1b._0xcc0f83,0x4c6)]+':'+_0x558218)&&(await _0x1380e3['notify'][_0x19d7f2(0x50c,0x4d9,0x41f,0x45a)]({'path':_0x558218}),_0x5d27ef[_0x1fb174(_0x1c9c1b._0x5ba66c,0x30d,_0x1c9c1b._0x27395c,0x172)][_0x1fb174(_0x1c9c1b._0x2e80ba,0x17b,_0x1c9c1b._0x54a3ab,_0x1c9c1b._0x4dfc39)](_0x1380e3[_0x19d7f2(_0x1c9c1b._0x55ceae,0x48d,0x3bf,0x4f7)]+':'+_0x1380e3[_0x19d7f2(_0x1c9c1b._0x2f579e,_0x1c9c1b._0xcd8a75,0x53c,0x4ac)]+':'+_0x558218));await _0x1380e3['notify'][_0x1fb174(0xf2,_0x1c9c1b._0x206996,_0x1c9c1b._0x25275f,0x205)]({'path':_0x558218,'version':nextFileVersion(_0x5d27ef,_0x558218)});if(_0x2deb44)await _0x1380e3[_0x19d7f2(0x446,_0x1c9c1b._0x3b9460,0x44b,_0x1c9c1b._0x450d15)]({'path':_0x558218});}));}async function _0x3f68c8(_0x2b2fe6){const _0x2b9afe={_0x1370f5:0xda,_0x3545b2:0xeb};function _0x3481a8(_0x465119,_0x3a682f,_0x360297,_0x2d6bf3){return _0x4869cc(_0x2d6bf3-_0x3a6c43._0x3585e4,_0x465119,_0x360297-0x47,_0x2d6bf3-_0x3a6c43._0x2c404f);}function _0x4a6a25(_0xedda4f,_0xc92115,_0x42b390,_0x294521){return _0x4869cc(_0xc92115- -0x2c7,_0x42b390,_0x42b390-_0x2b9afe._0x1370f5,_0x294521-_0x2b9afe._0x3545b2);}return await _0xc4edf2(_0x2b2fe6[_0x4a6a25(-_0x576220._0xb0d811,-0x1c3,-_0x576220._0x66f2c,-0x10f)],![]),_0x3b12db(_0x2b2fe6[_0x4a6a25(-_0x576220._0x6148c7,-0x1c3,-_0x576220._0x27c03d,-0x1e4)],![]);}async function _0x187da7(_0x52d486){const _0x1f3683={_0x1eeee3:0x1f0},_0x1e1233={_0x1e8aa8:0x11c,_0x1cb253:0x1af};function _0x5e10fa(_0x56de89,_0x953bf8,_0x30f3f6,_0x311fef){return _0x4869cc(_0x311fef-_0x1e1233._0x1e8aa8,_0x30f3f6,_0x30f3f6-_0x1e1233._0x1cb253,_0x311fef-_0x1e1233._0x1cb253);}function _0x1fd68b(_0x32177f,_0x5dc1f8,_0x379d40,_0x44797e){return _0x4869cc(_0x32177f-0x49,_0x44797e,_0x379d40-_0x1f3683._0x1eeee3,_0x44797e-0x74);}const _0x5180c8=await _0x3f68c8(_0x52d486);return collectClientResults(_0x5180c8[_0x5e10fa(0x1fe,0x291,0x2ca,_0xb061e9._0x34b089)](_0x3c0711=>_0x3c0711[_0x1fd68b(0x1b5,0x17f,0x22e,0x2af)][_0x1fd68b(0x18f,0x23f,0x17a,0xa8)](_0x52d486)));}return{'isEnabled':_0x5876e1,async 'hasClients'(_0x2db1f7){function _0x5674d6(_0x41fcc4,_0x4d0511,_0x40e6c9,_0x444256){return _0x4869cc(_0x4d0511- -_0xad07bc._0x4ba18e,_0x444256,_0x40e6c9-0x1f0,_0x444256-0x1bc);}function _0x11e899(_0x44d045,_0x3c88a4,_0x2d3059,_0x531ee4){return _0x4869cc(_0x2d3059- -0x1fd,_0x44d045,_0x2d3059-_0x173610._0x5037e5,_0x531ee4-0x112);}return(await _0x3b12db(_0x2db1f7,![]))[_0x11e899(_0x560588._0x4d8eab,-0x136,-0xc9,-_0x560588._0x510551)]>0x0||getServersForFile(_0x2db1f7)[_0x5674d6(-_0x560588._0x4097bc,-_0x560588._0xa65387,-_0x560588._0x5e2c72,-0x391)]>0x0;},'touchFile':_0xc4edf2,async 'diagnostics'(){const _0x455fff={_0xbb120c:0x2b8,_0x55a39c:0xff};function _0x2370a(_0x263dc3,_0x3bdaea,_0x4891e9,_0x26752a){return _0x4869cc(_0x3bdaea-_0x455fff._0xbb120c,_0x4891e9,_0x4891e9-0xb0,_0x26752a-_0x455fff._0x55a39c);}const _0x34d242={};for(const _0x4fa815 of _0x5d27ef[_0x2370a(_0x48ba31._0x38d3ad,_0x48ba31._0x35be20,0x2b0,0x2b8)]){for(const [_0x226a92,_0x113c08]of _0x4fa815['diagnostics']){_0x34d242[diagnosticsKeyToPath(_0x226a92)]=_0x113c08;}}return _0x34d242;},async 'diagnosticsForFile'(_0x339907){await _0xc4edf2(_0x339907,!![]);const _0x4235b2=[];for(const _0x4e681a of await _0x3b12db(_0x339907,![])){for(const [_0x7d3406,_0x5ed54a]of _0x4e681a['diagnostics']){if(diagnosticsKeyToPath(_0x7d3406)===_0x339907)_0x4235b2[_0x28349b(0x3d5,0x424,_0x2633ba._0xc50e7b,0x3b2)](..._0x5ed54a);}}function _0x28349b(_0x4ffc89,_0x23f269,_0x20acce,_0x2a2331){return _0x4869cc(_0x23f269-0x2ae,_0x20acce,_0x20acce-0xdd,_0x2a2331-_0x3f5b17._0x29531c);}return _0x4235b2;},async 'definition'(_0x1f9b55){return collectClientResults((await _0x3f68c8(_0x1f9b55))['map'](_0x5307f4=>_0x5307f4['request']['definition'](_0x1f9b55)));},async 'references'(_0x224314){const _0x21d2b8={_0x18ac29:0x13c};function _0x1bcee5(_0x35f4ef,_0x39d6e6,_0x34fd75,_0x565f56){return _0x4869cc(_0x35f4ef-0x325,_0x34fd75,_0x34fd75-_0x21d2b8._0x18ac29,_0x565f56-0x48);}function _0x489503(_0x359716,_0xbdfe06,_0x5a3fd1,_0x2bac50){return _0x4869cc(_0xbdfe06-_0x2e2d05._0x16cf22,_0x5a3fd1,_0x5a3fd1-0x9,_0x2bac50-_0x2e2d05._0x4dc869);}return collectClientResults((await _0x3f68c8(_0x224314))[_0x489503(_0x352a1c._0x21bacc,0x255,0x37a,_0x352a1c._0x1ee84b)](_0x50f3f4=>_0x50f3f4[_0x489503(0x26f,0x327,0x261,0x365)][_0x1bcee5(0x548,0x5ac,0x690,0x546)](_0x224314)));},async 'hover'(_0x2ee21a){const _0x3aaa14={_0x3a7962:0xe8,_0x43d7a6:0x20};function _0x2606e1(_0x114fca,_0x54a865,_0x48e486,_0x5bff7c){return _0x4869cc(_0x48e486-0xa2,_0x114fca,_0x48e486-_0x3aaa14._0x3a7962,_0x5bff7c-_0x3aaa14._0x43d7a6);}function _0x570948(_0x5c745d,_0x513ec3,_0x53e89c,_0x1a6fa1){return _0x4869cc(_0x513ec3- -0x295,_0x53e89c,_0x53e89c-0x4,_0x1a6fa1-_0x63d9d2._0x151313);}const _0x994ac5=await Promise[_0x2606e1(0x382,_0x2a8e71._0x4de443,_0x2a8e71._0x43f415,0x23b)]((await _0x3f68c8(_0x2ee21a))['map'](_0x2eeea3=>_0x2eeea3['request'][_0x570948(-0x155,-0x13c,-0x141,-0xdd)](_0x2ee21a)));return _0x994ac5[_0x2606e1(_0x2a8e71._0x4ccb10,_0x2a8e71._0x3d1a9a,0x240,_0x2a8e71._0x1f1044)](_0x9d9b43=>_0x9d9b43[_0x570948(-0x255,-0x17d,-0x13e,-0x204)]==='fulfilled'&&_0x9d9b43[_0x570948(-0x1b4,-0x1b7,-0x6c,-0x147)]?[_0x9d9b43['value']]:[]);},async 'documentSymbol'(_0x3b7785){function _0x5bc830(_0x4bb17a,_0x5a6b26,_0x3b2489,_0x37a659){return _0x4869cc(_0x5a6b26- -0xe9,_0x4bb17a,_0x3b2489-0x107,_0x37a659-0xef);}function _0x19d8e4(_0x3dc239,_0x7458fb,_0x3af6b7,_0x4d96ec){return _0x4869cc(_0x3af6b7-_0x5026e7._0x285134,_0x7458fb,_0x3af6b7-0x50,_0x4d96ec-0xf8);}return await _0xc4edf2(_0x3b7785,![]),collectClientResults((await _0x3b12db(_0x3b7785,![]))[_0x19d8e4(0x5e,0x72,_0x2c5327._0x5c3ca1,_0x2c5327._0x32c23b)](_0xb006e=>_0xb006e[_0x19d8e4(0x2d3,0x2ae,0x1e0,0x158)]['documentSymbol'](_0x3b7785)));},async 'workspaceSymbol'(_0x4fe21c){const _0x383907={_0x1052f7:0x2e3,_0x526897:0x129},_0x2c4c3f={_0x5b2459:0x206,_0x12fa4c:0x31};function _0x2c035d(_0x21f709,_0xcbf7cc,_0x1f6ae8,_0x366513){return _0x4869cc(_0x1f6ae8-_0x2c4c3f._0x5b2459,_0x21f709,_0x1f6ae8-0x1bd,_0x366513-_0x2c4c3f._0x12fa4c);}function _0x39c43a(_0x2e5b80,_0x52d5c5,_0x978c64,_0xee9d7f){return _0x4869cc(_0x2e5b80-_0x383907._0x1052f7,_0x978c64,_0x978c64-0x87,_0xee9d7f-_0x383907._0x526897);}return collectClientResults(_0x5d27ef['clients'][_0x39c43a(0x37d,0x394,0x2cc,0x28b)](_0x1497e2=>_0x1497e2['request'][_0x39c43a(0x47b,0x44a,0x516,0x32e)](_0x4fe21c)));},async 'implementation'(_0x411bc3){const _0x261f99={_0xa0c8cb:0x27c,_0x53d4d9:0x14c};function _0x5cc119(_0x170732,_0x2d990c,_0x3e7be2,_0x5e1cb7){return _0x4869cc(_0x3e7be2- -0x125,_0x5e1cb7,_0x3e7be2-0x8b,_0x5e1cb7-_0x10cf8a._0x318a28);}function _0x5cf3a1(_0xf73669,_0x1172ad,_0x21c3c9,_0x57a388){return _0x4869cc(_0xf73669-_0x261f99._0xa0c8cb,_0x1172ad,_0x21c3c9-_0x261f99._0x53d4d9,_0x57a388-0x1be);}return collectClientResults((await _0x3f68c8(_0x411bc3))['map'](_0x52bcd8=>_0x52bcd8[_0x5cf3a1(0x3e8,0x393,0x50d,0x49e)][_0x5cc119(-0x135,-0x166,-0xb9,-0xa9)](_0x411bc3)));},async 'prepareCallHierarchy'(_0x510295){return _0x187da7(_0x510295);},async 'incomingCalls'(_0x220091){const _0x2a51df={_0x334b29:0x135,_0x211661:0xac},_0x2df810={_0x321f2f:0xae,_0x1ab772:0x1cb},_0x44ee6b=await _0x187da7(_0x220091);function _0x48638e(_0x19fd73,_0x296133,_0x5f414f,_0x3e324f){return _0x4869cc(_0x3e324f-_0x2df810._0x321f2f,_0x19fd73,_0x5f414f-0x7c,_0x3e324f-_0x2df810._0x1ab772);}const _0x5bdcc0=await _0x3f68c8(_0x220091);function _0x1fc2a3(_0x6d9f8a,_0x1d68c1,_0x14c6b0,_0x7628d7){return _0x4869cc(_0x14c6b0- -0x2b4,_0x7628d7,_0x14c6b0-_0x2a51df._0x334b29,_0x7628d7-_0x2a51df._0x211661);}return collectClientResults(_0x5bdcc0['flatMap'](_0x51f453=>_0x44ee6b[_0x1fc2a3(-0x14f,-0x1ca,-0x21a,-0x271)](_0x57612d=>_0x51f453[_0x48638e(0x1a6,0xee,0x26d,0x21a)][_0x48638e(-0x48,0x102,0xaa,0x107)](_0x57612d))));},async 'outgoingCalls'(_0x112080){function _0x593fab(_0x29373d,_0x956162,_0x27eb2d,_0xe9d1fd){return _0x4869cc(_0x27eb2d-0x18,_0x29373d,_0x27eb2d-_0x41fc23._0x4d2c0d,_0xe9d1fd-_0x41fc23._0x5a7745);}const _0x479cc6=await _0x187da7(_0x112080),_0x4d48f0=await _0x3f68c8(_0x112080);return collectClientResults(_0x4d48f0[_0x593fab(0x2bc,_0x19c27e._0x17f891,_0x19c27e._0x3762df,0x12d)](_0x379fda=>_0x479cc6['map'](_0x882049=>_0x379fda['request']['outgoingCalls'](_0x882049))));},async 'shutdown'(){const _0x3ab58e={_0x4047aa:0x189};if(_0x5d27ef[_0x1d6869(-0xfc,-0x314,-0x1c4,-_0x1d9e47._0x970af1)])return;function _0x1d6869(_0x5583bd,_0x5a68b8,_0x4b67ff,_0x27f35d){return _0x4869cc(_0x27f35d- -0x327,_0x4b67ff,_0x4b67ff-0x159,_0x27f35d-0x182);}function _0x40396f(_0x56c8d9,_0x43fceb,_0x50d10c,_0x44b0e5){return _0x4869cc(_0x44b0e5- -0x1d5,_0x43fceb,_0x50d10c-_0x3ab58e._0x4047aa,_0x44b0e5-0x141);}_0x5d27ef[_0x1d6869(-0x152,-0x201,-_0x1d9e47._0x228291,-0x1f6)]=!![],await Promise['allSettled'](_0x5d27ef[_0x1d6869(-0x20d,-0x12c,-0x156,-0x279)][_0x1d6869(-_0x1d9e47._0x57b926,-_0x1d9e47._0x5322d9,-0x210,-_0x1d9e47._0x1f6083)](_0x47b748=>_0x47b748['shutdown']())),_0x5d27ef['clients']=[],_0x5d27ef[_0x40396f(-_0x1d9e47._0x31e577,_0x1d9e47._0x485e37,0xb0,-_0x1d9e47._0xb5a867)][_0x1d6869(-0x34e,-0x1a9,-_0x1d9e47._0x1332ef,-_0x1d9e47._0x529df0)](),_0x5d27ef[_0x1d6869(-_0x1d9e47._0x7a681b,-0x2b6,-0x2c5,-_0x1d9e47._0x1f5881)][_0x40396f(-_0x1d9e47._0x1a3e35,-0xbf,-0x1d3,-0xdc)](),_0x5d27ef[_0x40396f(-_0x1d9e47._0x3f4dc9,-0x119,-_0x1d9e47._0x44d25b,-_0x1d9e47._0x2e4ca2)][_0x1d6869(-_0x1d9e47._0x4ee742,-_0x1d9e47._0x14e0e4,-_0x1d9e47._0x7c098f,-0x22e)](),_0x5d27ef[_0x40396f(-_0x1d9e47._0x3dc753,0x1b6,_0x1d9e47._0x33d541,_0x1d9e47._0x1d91bc)]['clear']();},'status'(){const _0x57396b={_0x48df8a:0x160,_0x3b5b84:0xf6,_0xb57de3:0x10};function _0xe8d580(_0x1ce4bb,_0x15455,_0x35eed8,_0x341fc4){return _0x4869cc(_0x35eed8-_0x57396b._0x48df8a,_0x341fc4,_0x35eed8-_0x57396b._0x3b5b84,_0x341fc4-_0x57396b._0xb57de3);}return{'connectedClients':_0x5d27ef['clients'][_0xe8d580(_0x4c9ff7._0x1454b8,0x336,0x294,0x34e)]};}};}function createQuestionId(){const _0x2af725={_0x4127fe:0x188,_0x42b465:0xab,_0x259d13:0x258,_0x17e2a1:0x160},_0x2638b6={_0x19a5aa:0x1bc,_0x3adbc7:0x81},_0xf9a66e={_0x42a95a:0x1f2};function _0x2e9a60(_0x1d033d,_0x50fbd8,_0x1d747d,_0x265faf){return _0x1343ee(_0x50fbd8-0x348,_0x265faf,_0x1d747d-_0xf9a66e._0x42a95a,_0x265faf-0x1f4);}function _0x4421ba(_0x29cbeb,_0x31b2fe,_0x5be852,_0x105812){return _0x1343ee(_0x31b2fe- -_0x2638b6._0x19a5aa,_0x29cbeb,_0x5be852-_0x2638b6._0x3adbc7,_0x105812-0x1df);}return'question-'+Date[_0x4421ba(-0x22e,-0x12b,-_0x2af725._0x4127fe,-_0x2af725._0x42b465)]()+'-'+Math[_0x4421ba(-0xb7,-0x198,-_0x2af725._0x259d13,-_0x2af725._0x17e2a1)]()['toString'](0x24)['slice'](0x2,0x9);}function validateInput(_0x3d1341){const _0x4e3740={_0x273984:0x95,_0x4694df:0x12e,_0x491d69:0x1d4,_0x165af3:0x95,_0x46f768:0x68,_0x4ef5b7:0x19f,_0x533fe0:0xb0,_0x5be29a:0x88,_0xad4b2a:0x314,_0x5753b5:0x238,_0x31bf65:0x298,_0x191ee5:0x4d5,_0x11cdfe:0x14a,_0x524ca1:0x137,_0x464fc2:0x57,_0x9d8e44:0x5b7,_0x432478:0x369,_0x368a95:0x46c,_0x40c976:0x549,_0x389917:0x17c,_0x1291fe:0x4f4,_0x5627e2:0x779,_0x16336e:0x68b,_0x2f5b80:0x69,_0x143688:0x165,_0x3383e0:0x2d4,_0x409dfd:0x1f4,_0x53d5e7:0x3fa,_0x4d4fbf:0x1c4,_0xf421c1:0x9a,_0x375e55:0x2b4,_0x100fbf:0x1ad,_0x36a588:0x748,_0x658955:0x60a,_0x235148:0x1b2,_0x3633ae:0x22e,_0x243869:0x460,_0x339643:0x5b3,_0x2c6546:0x55d,_0x36bfaf:0x227,_0x1d0144:0x2d7,_0x21d65f:0xb4,_0x1f15ae:0x58,_0x15f219:0x2d4,_0x71b84b:0x2a4,_0x5d030d:0x363,_0x2ce18b:0x602,_0x1513b5:0x66a,_0x1a06ba:0x52c,_0x2e4626:0x155,_0x3a544d:0x1e0,_0x386f74:0x1f2,_0x16c04c:0x8c,_0x569722:0x456,_0x41534d:0x58c,_0x6764af:0x253,_0x18a492:0x23e,_0x336686:0x23a,_0x24379f:0x1b9,_0xe0c8e6:0x73,_0x5f39d9:0x27c,_0x32cd77:0x799,_0x466b67:0x54f,_0x1a1fec:0x662,_0x5056fa:0x5fb,_0x1580e6:0x14a,_0x209507:0x5,_0x2dcdc0:0x1bb,_0x56a52d:0x5a7,_0x55654d:0x510,_0x5182dd:0x52c,_0x459e81:0x217,_0xe756c4:0x31f,_0x5b45e3:0x313,_0x26e7dc:0x16b,_0x24152f:0x128,_0x56a0a4:0x59e,_0x5a9fb5:0x72c,_0x273abc:0x567,_0x44adb5:0x6f5,_0x5a6c49:0x5a6,_0x4add6c:0x637,_0x3f88e3:0x42,_0x48f133:0x256,_0x587e3d:0x17d,_0x309239:0x387,_0x9e49a:0x5b6,_0x307f34:0x544,_0x1157bf:0x7b7,_0x894e21:0x630,_0x4c9800:0x664,_0x51b543:0x64f},_0x2991a6={_0x4bb095:0x12f},_0x957951={_0x17bec4:0x36};if(!Array[_0x54a846(0x22b,0x104,0x221,0x191)](_0x3d1341[_0x54a846(_0x4e3740._0x273984,_0x4e3740._0x4694df,-0x29,_0x4e3740._0x491d69)])||_0x3d1341[_0x54a846(_0x4e3740._0x165af3,-0x90,-0x49,_0x4e3740._0x46f768)][_0x54a846(0x14a,_0x4e3740._0x4ef5b7,0x63,0x194)]<0x1||_0x3d1341[_0x54a846(0x95,-_0x4e3740._0x533fe0,_0x4e3740._0x5be29a,0x1cb)]['length']>0x4)throw new ToolExecutionError(_0x54a846(0x28c,_0x4e3740._0xad4b2a,_0x4e3740._0x5753b5,_0x4e3740._0x31bf65),{'error':_0xdd7066(0x6af,0x557,_0x4e3740._0x191ee5,0x56b)});function _0xdd7066(_0x1fb3c0,_0x2ec8b6,_0x4c426e,_0x1b8c5c){return _0x357fd3(_0x1fb3c0-_0x957951._0x17bec4,_0x2ec8b6-0xbd,_0x1b8c5c-0x506,_0x2ec8b6);}function _0x54a846(_0x2f8036,_0x4a36df,_0x47f90d,_0x5e43a9){return _0x357fd3(_0x2f8036-0xee,_0x4a36df-0x1f4,_0x2f8036-_0x2991a6._0x4bb095,_0x47f90d);}for(let _0x5a385e=0x0;_0x5a385e<_0x3d1341['questions'][_0x54a846(_0x4e3740._0x11cdfe,0x268,_0x4e3740._0x524ca1,_0x4e3740._0x464fc2)];_0x5a385e+=0x1){const _0x121445=_0x3d1341[_0xdd7066(0x46c,_0x4e3740._0x9d8e44,_0x4e3740._0x432478,_0x4e3740._0x368a95)][_0x5a385e];if(!_0x121445[_0xdd7066(0x452,0x45c,0x496,_0x4e3740._0x40c976)]||typeof _0x121445[_0x54a846(0x172,0x16a,_0x4e3740._0x389917,0x270)]!==_0xdd7066(0x470,_0x4e3740._0x1291fe,0x57c,0x59b))throw new ToolExecutionError(_0xdd7066(0x67c,0x7b4,_0x4e3740._0x5627e2,_0x4e3740._0x16336e)+(_0x5a385e+0x1)+_0x54a846(0x115,_0x4e3740._0x2f5b80,_0x4e3740._0x143688,0xcd));if(!_0x121445[_0x54a846(_0x4e3740._0x3383e0,0x27e,_0x4e3740._0x409dfd,_0x4e3740._0x53d5e7)]||typeof _0x121445['header']!==_0x54a846(_0x4e3740._0x4d4fbf,0x17e,_0x4e3740._0xf421c1,0x1b1))throw new ToolExecutionError(_0x54a846(_0x4e3740._0x375e55,0x1c0,0x3e3,_0x4e3740._0x100fbf)+(_0x5a385e+0x1)+_0xdd7066(_0x4e3740._0x36a588,0x756,_0x4e3740._0x658955,0x65e));if(_0x121445[_0x54a846(0x2d4,0x3a2,_0x4e3740._0x235148,_0x4e3740._0x3633ae)][_0xdd7066(_0x4e3740._0x243869,_0x4e3740._0x339643,_0x4e3740._0x2c6546,0x521)]>0x14)throw new ToolExecutionError(_0x54a846(_0x4e3740._0x375e55,_0x4e3740._0x36bfaf,0x1ee,_0x4e3740._0x1d0144)+(_0x5a385e+0x1)+_0x54a846(0xb4,_0x4e3740._0x21d65f,0x19,_0x4e3740._0x1f15ae)+_0x121445[_0x54a846(_0x4e3740._0x15f219,_0x4e3740._0x71b84b,_0x4e3740._0x5d030d,0x1bd)]['length']);if(!Array[_0xdd7066(0x680,0x677,0x625,_0x4e3740._0x2ce18b)](_0x121445[_0xdd7066(0x660,0x57f,_0x4e3740._0x1513b5,_0x4e3740._0x1a06ba)])||_0x121445[_0x54a846(_0x4e3740._0x2e4626,_0x4e3740._0x3a544d,_0x4e3740._0x386f74,_0x4e3740._0x16c04c)][_0xdd7066(0x66c,_0x4e3740._0x569722,_0x4e3740._0x41534d,0x521)]<0x2||_0x121445[_0x54a846(0x155,_0x4e3740._0x6764af,_0x4e3740._0x18a492,_0x4e3740._0x336686)][_0x54a846(0x14a,_0x4e3740._0x24379f,_0x4e3740._0xe0c8e6,_0x4e3740._0x5f39d9)]>0x4)throw new ToolExecutionError(_0xdd7066(_0x4e3740._0x32cd77,0x64d,0x79b,0x68b)+(_0x5a385e+0x1)+_0xdd7066(_0x4e3740._0x466b67,_0x4e3740._0x1a1fec,0x539,_0x4e3740._0x5056fa));for(let _0x4e6e1c=0x0;_0x4e6e1c<_0x121445[_0x54a846(0x155,0xee,0x240,0x116)][_0x54a846(_0x4e3740._0x1580e6,_0x4e3740._0x209507,0xc0,_0x4e3740._0x2dcdc0)];_0x4e6e1c+=0x1){const _0x270230=_0x121445[_0xdd7066(0x678,_0x4e3740._0x56a52d,_0x4e3740._0x55654d,_0x4e3740._0x5182dd)][_0x4e6e1c];if(!_0x270230[_0x54a846(_0x4e3740._0x459e81,_0x4e3740._0xe756c4,_0x4e3740._0x5b45e3,_0x4e3740._0x26e7dc)]||!_0x270230[_0x54a846(_0x4e3740._0x24152f,0x65,-0xc,0x122)])throw new ToolExecutionError(_0xdd7066(0x726,_0x4e3740._0x56a0a4,_0x4e3740._0x5a9fb5,_0x4e3740._0x16336e)+(_0x5a385e+0x1)+_0xdd7066(_0x4e3740._0x273abc,_0x4e3740._0x44adb5,_0x4e3740._0x5a6c49,_0x4e3740._0x4add6c)+(_0x4e6e1c+0x1)+_0x54a846(0x92,0x79,-_0x4e3740._0x464fc2,-_0x4e3740._0x3f88e3));}if(typeof _0x121445['multiSelect']!==_0x54a846(_0x4e3740._0x48f133,0x24b,_0x4e3740._0x587e3d,_0x4e3740._0x309239))throw new ToolExecutionError(_0xdd7066(_0x4e3740._0x9e49a,_0x4e3740._0x307f34,_0x4e3740._0x1157bf,0x68b)+(_0x5a385e+0x1)+_0xdd7066(_0x4e3740._0x894e21,_0x4e3740._0x4c9800,_0x4e3740._0x894e21,_0x4e3740._0x51b543));}}function buildQuestions(_0x25d9ca){const _0x37ca7a={_0x46c4b3:0x282},_0x1a77a8={_0x43f652:0xf0};function _0xb47a54(_0x286f97,_0x56a825,_0x4fd7c9,_0x405dd9){return _0x1343ee(_0x56a825- -0x203,_0x4fd7c9,_0x4fd7c9-_0x1a77a8._0x43f652,_0x405dd9-0xbc);}function _0x36b80e(_0x1cfdad,_0x12d3aa,_0x47ce1e,_0x32a08f){return _0x1343ee(_0x1cfdad- -0x166,_0x32a08f,_0x47ce1e-0xa0,_0x32a08f-0x61);}return _0x25d9ca['questions'][_0xb47a54(-0x367,-0x27d,-0x1a1,-_0x37ca7a._0x46c4b3)]((_0x15ca9b,_0x491a7b)=>({'id':'q'+_0x491a7b,'question':_0x15ca9b[_0x36b80e(-0x11e,-0xe9,-0x197,-0x1ad)],'header':_0x15ca9b[_0x36b80e(0x44,0x101,-0x9b,0x3a)],'options':_0x15ca9b['options'],'multiSelect':_0x15ca9b[_0xb47a54(-0x34,-0xe9,-0x94,0x1f)]}));}function createResult(_0x508ef3,_0x3e62a1,_0x45d33a){const _0xecc40a={_0x2a75da:0x114,_0xb8c8e:0x1b,_0x405c67:0x1f2,_0x3bb4d3:0xe1,_0x509b9f:0x2a6},_0x144992={_0x23cee5:0xdf,_0xb49017:0x1ef},_0x5ad0ef={_0x212e47:0x167};function _0x4f0eec(_0x16deac,_0x33b058,_0x5cc2f6,_0xa392cf){return _0x1343ee(_0x5cc2f6-0x138,_0xa392cf,_0x5cc2f6-0x1c5,_0xa392cf-_0x5ad0ef._0x212e47);}function _0x316015(_0x50969c,_0x519ac2,_0x6c9204,_0x4ee3b0){return _0x1343ee(_0x50969c-_0x144992._0x23cee5,_0x519ac2,_0x6c9204-_0x144992._0xb49017,_0x4ee3b0-0x58);}const _0x1fa207={'questionId':_0x508ef3,'questionCount':_0x3e62a1,'answers':_0x45d33a};return createToolOutput(_0x316015(0x8f,_0xecc40a._0x2a75da,-0x44,-_0xecc40a._0xb8c8e)+JSON[_0x316015(_0xecc40a._0x405c67,0x20b,_0xecc40a._0x3bb4d3,_0xecc40a._0x509b9f)](_0x45d33a,null,0x2),_0x1fa207);}function createAskUserTool(){const _0x127fa8={_0x55651c:0x369,_0x355013:0x2cb,_0xb91d44:0x259,_0x113620:0x10b,_0x159855:0x1ce,_0x36887a:0x1be,_0x5d3277:0xa1,_0x2449c1:0x2d8,_0x49c6e1:0x17f,_0x4d1717:0x1b8,_0x102894:0x186,_0x2c1a7c:0x2e0,_0x49e733:0x297,_0xd5c423:0x165,_0x1cd263:0x298,_0x50b397:0x125,_0x5c23a1:0x149,_0x21e8bb:0x163,_0x101a2a:0x227,_0x3ec613:0x18e,_0x51f2d4:0xc4,_0x41f633:0x173,_0x1fdbf1:0x263,_0x93f69c:0x2e7,_0xcb850a:0x36b},_0x5ef95d={_0x44bbac:0x362,_0x2b515c:0x519,_0x3f71c4:0x56a,_0x3854ae:0x433,_0x56e7db:0x4f5,_0x4ea0bc:0x54d,_0x4542e5:0x429,_0x3a0fc2:0x411,_0x30e133:0x442,_0x44ff24:0x4de,_0x2679f9:0x416,_0x500cdc:0x507,_0x2f1831:0x155,_0x38c185:0x105,_0x145655:0x11e,_0x3048bf:0x108,_0x116942:0xae,_0x73e0a4:0x6f,_0x29ce0d:0x5a6,_0x5cdb92:0x544,_0x2310db:0x4c6,_0x3d1399:0x54e},_0x18e03b={_0x376ed0:0x6f8},_0x1a9168={_0x2415ab:0x1ae,_0x5d6391:0x10b,_0x5b1be5:0x24d},_0x2649c2={_0x24fbfc:0x172,_0x574855:0x17};function _0x10c698(_0x42265e,_0x2afbfd,_0x4e82a0,_0x24873b){return _0x1343ee(_0x24873b-_0x2649c2._0x24fbfc,_0x2afbfd,_0x4e82a0-0x1ec,_0x24873b-_0x2649c2._0x574855);}function _0x56827b(_0x108f63,_0x135987,_0x54adb2,_0x37fa4f){return _0x357fd3(_0x108f63-_0x1a9168._0x2415ab,_0x135987-_0x1a9168._0x5d6391,_0x135987- -_0x1a9168._0x5b1be5,_0x37fa4f);}return defineTool({'name':_0x10c698(0x18e,0x264,_0x127fa8._0x55651c,0x227),'description':_0x56827b(-0x1de,-_0x127fa8._0x355013,-0x26a,-0x1f2),'inputSchema':{'type':_0x10c698(0x2d0,_0x127fa8._0xb91d44,_0x127fa8._0x113620,0x1be),'properties':{'questions':{'type':'array','items':{'type':_0x10c698(_0x127fa8._0x159855,0x2ca,0x200,_0x127fa8._0x36887a),'properties':{'question':{'type':_0x56827b(-0x206,-0x1b8,-_0x127fa8._0x5d3277,-_0x127fa8._0x2449c1)},'header':{'type':_0x56827b(-_0x127fa8._0x49c6e1,-_0x127fa8._0x4d1717,-_0x127fa8._0x102894,-_0x127fa8._0x2c1a7c)},'options':{'type':'array','items':{'type':'object','properties':{'label':{'type':_0x56827b(-0x74,-0x1b8,-0x2e3,-_0x127fa8._0x49e733)},'description':{'type':'string'}},'required':[_0x56827b(-0x106,-_0x127fa8._0xd5c423,-_0x127fa8._0x1cd263,-_0x127fa8._0x50b397),'description']}},'multiSelect':{'type':'boolean'}},'required':[_0x56827b(-0x12e,-0x20a,-0x216,-_0x127fa8._0x5c23a1),_0x10c698(0x28c,0x2e5,0x38a,0x31c),_0x56827b(-_0x127fa8._0x21e8bb,-_0x127fa8._0x101a2a,-0x33a,-_0x127fa8._0x3ec613),_0x56827b(-_0x127fa8._0x51f2d4,-0x138,-_0x127fa8._0x41f633,-0x7e)]}},'answers':{'type':_0x56827b(-0x12d,-0x206,-_0x127fa8._0x1fdbf1,-0x21d),'properties':{}}},'required':[_0x56827b(-0x21d,-_0x127fa8._0x93f69c,-0x1f7,-_0x127fa8._0xcb850a)]},async *'execute'(_0x578ae6,_0x50a228){const _0x5789fe={_0x5e553a:0x2b,_0xf58795:0x1b2};function _0x12fdd4(_0x166c0a,_0x57db5c,_0x2436dd,_0x22672e){return _0x10c698(_0x166c0a-_0x5789fe._0x5e553a,_0x166c0a,_0x2436dd-0x175,_0x2436dd- -_0x5789fe._0xf58795);}const _0x1419cb=_0x578ae6;validateInput(_0x1419cb);const _0xe4d9b=_0x50a228['toolCallId']??createQuestionId();function _0x9f8f99(_0x452cdf,_0x1f56e3,_0xdf9a3f,_0x20c6fb){return _0x56827b(_0x452cdf-0x194,_0xdf9a3f-_0x18e03b._0x376ed0,_0xdf9a3f-0xa,_0x20c6fb);}if(_0x1419cb[_0x9f8f99(_0x5ef95d._0x44bbac,0x4aa,0x416,_0x5ef95d._0x2b515c)]&&Object[_0x9f8f99(_0x5ef95d._0x3f71c4,0x3a6,_0x5ef95d._0x3854ae,_0x5ef95d._0x56e7db)](_0x1419cb['answers'])['length']>0x0)return createResult(_0xe4d9b,_0x1419cb[_0x9f8f99(_0x5ef95d._0x4ea0bc,_0x5ef95d._0x4542e5,_0x5ef95d._0x3a0fc2,_0x5ef95d._0x30e133)]['length'],_0x1419cb[_0x9f8f99(0x422,_0x5ef95d._0x44ff24,_0x5ef95d._0x2679f9,_0x5ef95d._0x500cdc)]);if(!_0x50a228['askUser'])throw new ToolExecutionError(_0x12fdd4(0x10b,0x21c,_0x5ef95d._0x2f1831,_0x5ef95d._0x38c185));const _0x404789=buildQuestions(_0x1419cb),_0x176c07=await _0x50a228[_0x12fdd4(_0x5ef95d._0x145655,_0x5ef95d._0x3048bf,_0x5ef95d._0x116942,_0x5ef95d._0x73e0a4)]({'questionId':_0xe4d9b,'questions':_0x404789});yield createResult(_0xe4d9b,_0x1419cb['questions'][_0x9f8f99(_0x5ef95d._0x29ce0d,_0x5ef95d._0x5cdb92,_0x5ef95d._0x2310db,_0x5ef95d._0x3d1399)],_0x176c07);}});}import{spawn as _0x556224}from'child_process';import{statSync}from'fs';import*as _0x2a33fe from'os';import*as _0x54838e from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x34369b from'path';function _0x1358(_0x458d1f,_0x2d1c9a){_0x458d1f=_0x458d1f-0x82;const _0x4019ed=_0x4019();let _0x135831=_0x4019ed[_0x458d1f];if(_0x1358['OBAwvG']===undefined){var _0x928998=function(_0x15a7c0){const _0x23cb22='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x337454='',_0x1b0add='';for(let _0x3a9a36=0x0,_0x1573c4,_0x2df844,_0x53cfac=0x0;_0x2df844=_0x15a7c0['charAt'](_0x53cfac++);~_0x2df844&&(_0x1573c4=_0x3a9a36%0x4?_0x1573c4*0x40+_0x2df844:_0x2df844,_0x3a9a36++%0x4)?_0x337454+=String['fromCharCode'](0xff&_0x1573c4>>(-0x2*_0x3a9a36&0x6)):0x0){_0x2df844=_0x23cb22['indexOf'](_0x2df844);}for(let _0x31176f=0x0,_0x556224=_0x337454['length'];_0x31176f<_0x556224;_0x31176f++){_0x1b0add+='%'+('00'+_0x337454['charCodeAt'](_0x31176f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b0add);};_0x1358['RktPml']=_0x928998,_0x1358['vvwCsL']={},_0x1358['OBAwvG']=!![];}const _0x6bbabf=_0x4019ed[0x0],_0x29da5d=_0x458d1f+_0x6bbabf,_0x43a5f9=_0x1358['vvwCsL'][_0x29da5d];return!_0x43a5f9?(_0x135831=_0x1358['RktPml'](_0x135831),_0x1358['vvwCsL'][_0x29da5d]=_0x135831):_0x135831=_0x43a5f9,_0x135831;}function isPathInside(_0x5e1624,_0x132e81){const _0x5da788={_0x375b45:0x414,_0xb93fda:0x40f,_0x45a66d:0x3b6,_0x15e5c6:0x33b,_0x241b20:0x363,_0x2fc271:0x49c},_0x21bbdb={_0x3a9c50:0xc3,_0x1da0b2:0xe0},_0x593ec4={_0x171323:0x2d1,_0xc4d267:0xbc},_0x4a6bc0=_0x34369b['resolve'](_0x5e1624);function _0x471b53(_0x3953fc,_0x1f612d,_0x26d32a,_0x134d72){return _0x1343ee(_0x26d32a-_0x593ec4._0x171323,_0x1f612d,_0x26d32a-0x13c,_0x134d72-_0x593ec4._0xc4d267);}function _0x2061da(_0x3faa7d,_0x2c0d34,_0x41a308,_0x540b0d){return _0x1343ee(_0x2c0d34-0x34f,_0x540b0d,_0x41a308-_0x21bbdb._0x3a9c50,_0x540b0d-_0x21bbdb._0x1da0b2);}const _0x4e42bc=_0x34369b[_0x471b53(0x301,_0x5da788._0x375b45,_0x5da788._0xb93fda,_0x5da788._0x45a66d)](_0x4a6bc0,_0x132e81);return _0x4e42bc===''||!_0x4e42bc[_0x2061da(0x238,_0x5da788._0x15e5c6,_0x5da788._0x241b20,0x481)]('..')&&!_0x34369b[_0x2061da(0x457,0x4fa,0x4fe,_0x5da788._0x2fc271)](_0x4e42bc);}function resolveWorkspacePath(_0x569e57,_0x58412e){return resolveAllowedPath(_0x569e57,[],_0x58412e);}function resolveAllowedPath(_0x39167f,_0x1a6615,_0xe2ae0b){const _0x5eb6bb={_0xacb86a:0x370,_0x18e5ba:0x4bd,_0x3de533:0xb0},_0x28d9ff={_0x115a3b:0x145,_0x1f63f1:0x69,_0x227a5a:0x129},_0x3d4edd={_0x2dec03:0x15d,_0x5740ce:0x38f},_0x49444a=_0x34369b[_0xea7100(0x2f3,0x1ad,0xdf,0x1f4)](_0x39167f),_0x406a10=_0x34369b['resolve'](_0x49444a,_0xe2ae0b),_0x238b4b=[_0x49444a,..._0x1a6615['map'](_0x2621df=>_0x34369b[_0xea7100(0x177,0x1ad,0x292,0x2d9)](_0x2621df))];function _0x43eca2(_0x1200ea,_0x3d5a5d,_0x26f22b,_0xc2dc0){return _0x357fd3(_0x1200ea-0x192,_0x3d5a5d-_0x3d4edd._0x2dec03,_0x1200ea-_0x3d4edd._0x5740ce,_0x3d5a5d);}function _0xea7100(_0x2fe686,_0x20d767,_0x304384,_0x4d1cd0){return _0x1343ee(_0x20d767-_0x28d9ff._0x115a3b,_0x4d1cd0,_0x304384-_0x28d9ff._0x1f63f1,_0x4d1cd0-_0x28d9ff._0x227a5a);}if(_0x238b4b[_0x43eca2(_0x5eb6bb._0xacb86a,0x491,_0x5eb6bb._0x18e5ba,0x256)](_0x4cf931=>isPathInside(_0x4cf931,_0x406a10)))return _0x406a10;throw new ToolExecutionError(_0xea7100(0x26b,0x15b,0x127,_0x5eb6bb._0x3de533)+_0xe2ae0b,{'path':_0xe2ae0b,'rootDir':_0x49444a,'allowedDirs':_0x238b4b});}async function assertWorkspaceFile(_0x25b732){const _0x5a127d={_0x268a10:0x12c,_0x1d3f2c:0x143},_0x40dfad={_0x4cddf7:0xf1},_0x22701d={_0x10fcb0:0x11d,_0x25216a:0x1c8};function _0x3cfb05(_0x59c802,_0x5ca291,_0x50a95d,_0x2d2b12){return _0x1343ee(_0x2d2b12- -_0x22701d._0x10fcb0,_0x59c802,_0x50a95d-_0x22701d._0x25216a,_0x2d2b12-0xf7);}const _0xe07c6b=await stat(_0x25b732);function _0x3102de(_0x30fcfc,_0x23bef7,_0x4699ae,_0x7c2d0b){return _0x1343ee(_0x4699ae-0x2a4,_0x30fcfc,_0x4699ae-0x188,_0x7c2d0b-_0x40dfad._0x4cddf7);}if(!_0xe07c6b[_0x3cfb05(0x22,-0xb1,-0x174,-0x102)]())throw new ToolExecutionError(_0x3cfb05(_0x5a127d._0x268a10,-_0x5a127d._0x1d3f2c,0x27,-0x1a)+_0x25b732,{'path':_0x25b732});}function isProbablyBinary(_0x380766){const _0x5ca85e={_0x115f77:0x295,_0x4b1015:0x95};function _0x65d3c8(_0x13637f,_0x206a63,_0x5bcbfb,_0x44ad37){return _0x357fd3(_0x13637f-0x3b,_0x206a63-0x1ad,_0x44ad37-0x1eb,_0x13637f);}return _0x380766[_0x65d3c8(_0x5ca85e._0x115f77,0xdf,_0x5ca85e._0x4b1015,0x163)](0x0);}var DEFAULT_DESCRIPTION=_0x357fd3(0x214,0x1c9,0x1ca,0xe1),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x5d9163){return _0x5d9163 instanceof Error;}function shellExists(_0x587bd2){const _0x1a69c3={_0x314d41:0x34f,_0x4b23d4:0x33c,_0x2179fd:0x23c,_0x47c49f:0x405,_0x34cb20:0x376,_0x362477:0x3eb},_0x12d927={_0x198045:0x334},_0x13842e={_0x1b9331:0x2b3};function _0x50200a(_0x245443,_0x2d6df0,_0x5567f3,_0x1027e6){return _0x1343ee(_0x245443-_0x13842e._0x1b9331,_0x1027e6,_0x5567f3-0x8a,_0x1027e6-0xf5);}function _0xb89be2(_0x1dcca6,_0x456eb9,_0x15138b,_0x128e39){return _0x1343ee(_0x456eb9-_0x12d927._0x198045,_0x15138b,_0x15138b-0x125,_0x128e39-0xf9);}try{const _0x24f593=statSync(_0x587bd2);return _0x24f593[_0xb89be2(0x415,_0x1a69c3._0x314d41,_0x1a69c3._0x4b23d4,_0x1a69c3._0x2179fd)]()&&(_0x24f593[_0xb89be2(_0x1a69c3._0x47c49f,0x489,_0x1a69c3._0x34cb20,_0x1a69c3._0x362477)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x50dc73){const _0x1c8e09={_0x8d083f:0x524,_0x4698e8:0x620,_0x3b5245:0x4f8,_0x10cffd:0x4e1,_0x561d77:0x566,_0x395e77:0x664,_0x3aa466:0x5db,_0x4b91be:0x611,_0x25f055:0x5f6,_0x18c1a6:0x11b,_0x725276:0xdb,_0x222a83:0x121,_0x847798:0x83,_0x5c6bc1:0x59},_0x363322={_0x4c95aa:0x121},_0x8039f1={_0x5738d2:0x52,_0x48ef48:0xeb,_0x468a0:0x46c};if(_0x50dc73)return _0x50dc73;if(_0x2a33fe[_0x3db24a(0x608,0x605,0x63a,0x4c7)]()==='win32')return process['env'][_0x3db24a(_0x1c8e09._0x8d083f,_0x1c8e09._0x4698e8,_0x1c8e09._0x3b5245,_0x1c8e09._0x10cffd)]||_0x3db24a(_0x1c8e09._0x561d77,0x523,_0x1c8e09._0x395e77,_0x1c8e09._0x3aa466);function _0x3db24a(_0x5e3103,_0x2ac3cc,_0x3e1a61,_0xce5ff2){return _0x357fd3(_0x5e3103-_0x8039f1._0x5738d2,_0x2ac3cc-_0x8039f1._0x48ef48,_0x2ac3cc-_0x8039f1._0x468a0,_0x3e1a61);}function _0x46d110(_0x56d5e9,_0x57ba82,_0x577773,_0x424f09){return _0x1343ee(_0x424f09- -_0x363322._0x4c95aa,_0x57ba82,_0x577773-0x1ba,_0x424f09-0x12b);}const _0x5b889c=[_0x3db24a(_0x1c8e09._0x4b91be,0x58f,_0x1c8e09._0x25f055,0x521),_0x46d110(-0x5e,_0x1c8e09._0x18c1a6,-_0x1c8e09._0x725276,-0x26),_0x46d110(-0xbc,-_0x1c8e09._0x222a83,0x96,-_0x1c8e09._0x847798),'/usr/bin/sh'];for(const _0x158381 of _0x5b889c){if(shellExists(_0x158381))return _0x158381;}const _0x28cb29=process[_0x46d110(0x71,-0x109,0x68,-0x66)]['SHELL'];if(_0x28cb29&&shellExists(_0x28cb29))return _0x28cb29;return _0x46d110(0xa2,_0x1c8e09._0x5c6bc1,-0xac,0x7);}function buildShellArgs(_0x1f89ce,_0x462c2d){const _0x285e4c={_0x53be3c:0x43e,_0x27a512:0x46b,_0x4824b0:0x57,_0x22b78d:0xa7,_0x547e78:0x3be,_0x39a385:0x492},_0x36f2a5={_0x1fd0db:0x6e,_0x3291fa:0xe1};function _0x252eb0(_0x34d9ea,_0x16b56c,_0x42c721,_0x39e823){return _0x357fd3(_0x34d9ea-_0x36f2a5._0x1fd0db,_0x16b56c-0x18c,_0x16b56c- -_0x36f2a5._0x3291fa,_0x34d9ea);}function _0x56aa4b(_0x4c1dc6,_0x1835c2,_0x317d93,_0x49b051){return _0x357fd3(_0x4c1dc6-0x6a,_0x1835c2-0xeb,_0x49b051-0x2d2,_0x4c1dc6);}if(_0x2a33fe[_0x56aa4b(0x58e,_0x285e4c._0x53be3c,0x492,_0x285e4c._0x27a512)]()==='win32'){const _0x164542=/cmd(\.exe)?$/i[_0x252eb0(0xe3,_0x285e4c._0x4824b0,-_0x285e4c._0x22b78d,0xd1)](_0x462c2d);return _0x164542?['/d','/s','/c',_0x1f89ce]:[_0x56aa4b(0x40a,_0x285e4c._0x547e78,0x314,0x452),_0x56aa4b(0x5de,0x368,0x50b,_0x285e4c._0x39a385),'-Command',_0x1f89ce];}return['-c',_0x1f89ce];}function resolveCarriageReturns(_0x404eeb){const _0x7657cb={_0xa9307d:0xa8,_0x67972a:0xd8,_0x589d85:0x7,_0x147b88:0x16c,_0x31bed5:0x8d},_0x1b2f07={_0x2831fd:0x1e6,_0x17eeb0:0x497},_0x41bb67={_0x267830:0x6f0,_0x56fcee:0xc5},_0x510c08={_0x183fe4:0x199,_0x543dca:0x1e4},_0x177516={_0x446796:0xba,_0x4ec2fa:0x1cf},_0x2bee39={_0x170509:0x1d0};function _0x522626(_0x527021,_0x2ebc17,_0x51d2b3,_0xbf0940){return _0x357fd3(_0x527021-_0x2bee39._0x170509,_0x2ebc17-0x14d,_0x527021-0x132,_0x51d2b3);}function _0x32ac03(_0x1f040e,_0xb0d7f7,_0x132a4e,_0x4d3f80){return _0x357fd3(_0x1f040e-_0x177516._0x446796,_0xb0d7f7-0x1f1,_0xb0d7f7- -_0x177516._0x4ec2fa,_0x1f040e);}return _0x404eeb[_0x522626(_0x7657cb._0xa9307d,_0x7657cb._0x67972a,-_0x7657cb._0x589d85,0x3d)]('\x0a')[_0x522626(0xb3,0x175,0xbf,0x91)](_0x480289=>{if(!_0x480289[_0x196f72(0x243,0x206,0x1ed,_0x1b2f07._0x2831fd)]('\x0d'))return _0x480289;function _0x196f72(_0x4b2e13,_0xc71b6d,_0x19fdae,_0x303e23){return _0x522626(_0x4b2e13-_0x510c08._0x183fe4,_0xc71b6d-0x10a,_0xc71b6d,_0x303e23-_0x510c08._0x543dca);}function _0x341f8e(_0x7b3e7e,_0x42fb6a,_0x328ac0,_0x5b7b98){return _0x32ac03(_0x42fb6a,_0x328ac0-_0x41bb67._0x267830,_0x328ac0-_0x41bb67._0x56fcee,_0x5b7b98-0x185);}const _0x224ef6=_0x480289[_0x341f8e(0x3d7,0x5d5,_0x1b2f07._0x17eeb0,0x52d)]('\x0d');return _0x224ef6[_0x224ef6['length']-0x1]??'';})[_0x522626(_0x7657cb._0x147b88,0x174,_0x7657cb._0x31bed5,0x1e4)]('\x0a');}function resolveBackspaces(_0x88adc2){const _0x1be53c={_0x4a320e:0x30b,_0x64a472:0x429,_0x39a76b:0x434},_0x2ef6cf={_0x42a995:0x14c,_0x395825:0x72},_0x3fd9e4={_0x1e5c80:0x3c7,_0x3f1f9a:0x82,_0x3da5ac:0x1e8};function _0x1af1ef(_0x6d53a7,_0x1c3e8d,_0x1b0e34,_0x75e32a){return _0x1343ee(_0x75e32a-_0x3fd9e4._0x1e5c80,_0x6d53a7,_0x1b0e34-_0x3fd9e4._0x3f1f9a,_0x75e32a-_0x3fd9e4._0x3da5ac);}const _0x23e90a=[];for(const _0x2139bd of Array['from'](_0x88adc2)){_0x2139bd==='\x08'?_0x23e90a[_0x1af1ef(0x57b,0x493,0x543,0x46c)]():_0x23e90a[_0x1af1ef(0x4c9,0x43b,_0x1be53c._0x4a320e,_0x1be53c._0x64a472)](_0x2139bd);}function _0x126eb(_0x44d0f3,_0x55a218,_0x9dae8d,_0x48287d){return _0x357fd3(_0x44d0f3-_0x2ef6cf._0x42a995,_0x55a218-0x16c,_0x44d0f3- -_0x2ef6cf._0x395825,_0x48287d);}return _0x23e90a[_0x1af1ef(0x322,0x511,_0x1be53c._0x39a76b,0x406)]('');}function stripAnsiAndControls(_0x516cbd){const _0x3ce186={_0x5aaa82:0x3d8,_0x1212ff:0x442,_0x556f97:0x4a5,_0x2189e8:0x183,_0x1ddcb2:0x263,_0x3f8db7:0x2f2,_0x51fff3:0x213,_0x1a9ecc:0x248,_0x28c9e9:0x119,_0x379cee:0x213,_0x566914:0x1e1,_0x1088f3:0x2a3,_0xf9df26:0xc4,_0x4739ce:0x12b,_0xa22bda:0x199,_0x24feba:0x177,_0x1d3426:0x267,_0x4c2eda:0x330,_0x44948c:0x2fd,_0x59264a:0x274,_0x2a74e0:0x27e,_0x15daa8:0x207},_0x3d4eba={_0x54482b:0xf9,_0x22897f:0x19c};function _0x7d31f6(_0x715282,_0x208af4,_0x45c6d9,_0x2aa5f7){return _0x357fd3(_0x715282-_0x3d4eba._0x54482b,_0x208af4-_0x3d4eba._0x22897f,_0x208af4-0x27b,_0x2aa5f7);}function _0x2093d7(_0x42736a,_0x396349,_0x230725,_0x5f168a){return _0x357fd3(_0x42736a-0xb,_0x396349-0xd3,_0x42736a- -0x20c,_0x5f168a);}_0x516cbd=resolveCarriageReturns(_0x516cbd),_0x516cbd=resolveBackspaces(_0x516cbd),_0x516cbd=stripVTControlCharacters(_0x516cbd);const _0x36cddb='\x1b',_0x3b73cf='\x07';return _0x516cbd=_0x516cbd['replace'](new RegExp(_0x7d31f6(_0x3ce186._0x5aaa82,_0x3ce186._0x1212ff,0x3c6,_0x3ce186._0x556f97)+_0x3b73cf+_0x7d31f6(_0x3ce186._0x2189e8,0x282,_0x3ce186._0x1ddcb2,0x1a0)+_0x3b73cf,'g'),''),_0x516cbd=_0x516cbd[_0x7d31f6(_0x3ce186._0x3f8db7,_0x3ce186._0x51fff3,_0x3ce186._0x1a9ecc,_0x3ce186._0x28c9e9)](new RegExp(';[^\x5cn]*?'+_0x36cddb+'\x5c\x5c','g'),''),_0x516cbd=_0x516cbd[_0x7d31f6(0x291,_0x3ce186._0x379cee,0x232,_0x3ce186._0x566914)](new RegExp(_0x3b73cf,'g'),''),_0x516cbd=_0x516cbd[_0x7d31f6(0x2b5,_0x3ce186._0x51fff3,_0x3ce186._0x1088f3,_0x3ce186._0xf9df26)](new RegExp(_0x36cddb+'[P_^][\x5cs\x5cS]*?'+_0x36cddb+'\x5c\x5c','g'),''),_0x516cbd=_0x516cbd[_0x7d31f6(_0x3ce186._0x4739ce,_0x3ce186._0x51fff3,_0x3ce186._0xa22bda,0x117)](new RegExp(_0x36cddb+_0x7d31f6(_0x3ce186._0x24feba,_0x3ce186._0x1d3426,_0x3ce186._0x4c2eda,0x313),'g'),''),_0x516cbd=_0x516cbd['replace'](/[\u0080-\u009F]/g,''),_0x516cbd=_0x516cbd[_0x2093d7(-0x274,-0x1ed,-_0x3ce186._0x44948c,-0x29c)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x516cbd=_0x516cbd[_0x2093d7(-_0x3ce186._0x59264a,-0x2fd,-_0x3ce186._0x2a74e0,-_0x3ce186._0x15daa8)](/[\u23CE\u2424]/g,''),_0x516cbd;}function resolveWorkingDirectory(_0x59ae01,_0x58a5cc,_0x519985){const _0x9a43bd={_0x1a2a4d:0x12f},_0x3735db={_0x4c3b37:0x6b,_0x51d22f:0x93,_0x267886:0xd5},_0x3c8c04={_0x226bcf:0x11b};function _0x283589(_0x256f25,_0x135945,_0x588d84,_0x3f6eaf){return _0x357fd3(_0x256f25-0x1bd,_0x135945-_0x3c8c04._0x226bcf,_0x256f25- -0x1bb,_0x135945);}const _0x348e89=resolveAllowedPath(_0x58a5cc,_0x519985,_0x59ae01??'.');function _0x1805bc(_0x3d6085,_0x5125c8,_0x56d4a4,_0x1c731d){return _0x357fd3(_0x3d6085-_0x3735db._0x4c3b37,_0x5125c8-_0x3735db._0x51d22f,_0x5125c8-_0x3735db._0x267886,_0x3d6085);}try{const _0x38ba2c=statSync(_0x348e89);if(!_0x38ba2c['isDirectory']())throw new ToolExecutionError(_0x283589(-0x12,0x7c,-0x9a,-_0x9a43bd._0x1a2a4d)+_0x348e89,{'cwd':_0x348e89});return _0x348e89;}catch(_0x5db748){if(_0x5db748 instanceof ToolExecutionError)throw _0x5db748;throw new ToolExecutionError(_0x1805bc(0x234,0x184,0x145,0x1f2)+_0x348e89,{'cwd':_0x348e89});}}function killProcessGroup(_0x7ea4f6,_0x5be3c9,_0x418473=_0x357fd3(-0xc5,0x89,0x83,0x11b)){const _0x34c845={_0x25a1ab:0x163,_0x198ae8:0x2a,_0x49d31c:0x42,_0x474803:0xf4,_0x5e9467:0x90,_0xe51167:0xdc,_0x1e67bb:0x514,_0x2e8e30:0x6e5,_0x254909:0x5a4,_0x54d0ef:0x481,_0x3c43e8:0x102,_0x4c2f6e:0x4b},_0x42a48e={_0x88bf4b:0x49f,_0x5c83c0:0x1c7,_0x2eb51d:0xda},_0x440c30={_0x7311d8:0x31};function _0x242813(_0x128518,_0x187153,_0x42d178,_0x5b4429){return _0x1343ee(_0x42d178- -0x136,_0x5b4429,_0x42d178-_0x440c30._0x7311d8,_0x5b4429-0x105);}if(!_0x7ea4f6[_0x242813(_0x34c845._0x25a1ab,0xb9,0x4b,0x189)])return;if(_0x5be3c9)try{_0x556224(_0x242813(-0x126,_0x34c845._0x198ae8,-_0x34c845._0x49d31c,_0x34c845._0x474803),[_0x242813(-0xea,-0x1cd,-0x124,-0xae),_0x7ea4f6[_0x242813(-0xd0,_0x34c845._0x5e9467,0x4b,_0x34c845._0xe51167)][_0x38bedd(0x4fb,_0x34c845._0x1e67bb,_0x34c845._0x2e8e30,_0x34c845._0x254909)](),'/T','/F'],{'stdio':_0x38bedd(0x4ea,0x601,_0x34c845._0x54d0ef,0x571)});return;}catch{_0x7ea4f6['kill'](_0x418473);return;}function _0x38bedd(_0x54a4ab,_0x51ef61,_0x5d7765,_0x4ade86){return _0x1343ee(_0x4ade86-_0x42a48e._0x88bf4b,_0x51ef61,_0x5d7765-_0x42a48e._0x5c83c0,_0x4ade86-_0x42a48e._0x2eb51d);}try{process['kill'](-_0x7ea4f6[_0x242813(-_0x34c845._0x3c43e8,0xe1,_0x34c845._0x4c2f6e,-0x6d)],_0x418473);}catch{_0x7ea4f6['kill'](_0x418473);}}function appendChunk(_0x14fca4,_0x487d49,_0x5f05e5,_0x583721,_0xb5b484){const _0x61aa8d={_0x5a5fbe:0x4e9,_0x5e11ac:0x3e1,_0x2e38cd:0x488},_0x58311a={_0x5b6b17:0x37f};function _0x58e801(_0x595a67,_0x2ab657,_0x5642a2,_0x4ede6a){return _0x1343ee(_0x2ab657-_0x58311a._0x5b6b17,_0x5642a2,_0x5642a2-0x1d1,_0x4ede6a-0x12);}const _0x5a4c61=_0x583721?stripAnsiAndControls(_0x5f05e5):_0x5f05e5;if(_0x5a4c61['length']===0x0)return;_0x14fca4['push'](_0x5a4c61),_0x487d49[_0x58e801(_0x61aa8d._0x5a5fbe,_0x61aa8d._0x5e11ac,0x3ec,_0x61aa8d._0x2e38cd)](_0x5a4c61),_0xb5b484();}function createBashTool(_0x236887={}){const _0x4bb292={_0x4e05ed:0x2a8,_0x32316a:0x22d,_0x7275d4:0x33b,_0x521971:0x31a,_0x27178f:0x40b,_0x3180ea:0x19e,_0x40f21f:0x300,_0x36ce48:0x2ed,_0x1544fc:0x22e,_0x4052dd:0x45d,_0x704dbd:0x416,_0x92b263:0x589,_0x5bc36b:0x667,_0x15279d:0x252,_0x45dce5:0x24b,_0x70f83a:0x2ee,_0x2e8ee9:0x4fd,_0x1ab5c1:0x579,_0x574ccb:0x691,_0x1a54a5:0x2b6,_0x52d73c:0x3c6,_0xc7f363:0x380},_0x42a93d={_0x4bfe78:0x1b8,_0x638c29:0x10b,_0x213b8e:0x1b0,_0x163d30:0xfd,_0x5d4433:0x293,_0x478510:0x398,_0x495dee:0x1b6,_0x127964:0xc2,_0xaf9d87:0x43,_0x3e4279:0xd9,_0x4aaa6e:0x31,_0xd9b7a:0x216,_0x5ce989:0x301,_0x23b46a:0x311,_0x295117:0x380,_0x2d2c01:0x45e,_0x4e40dc:0x46f,_0xfcc497:0x326,_0x5cc350:0x358,_0x997533:0x5be,_0x83f114:0x321,_0x2e534d:0x482,_0x4a72e3:0x4e9,_0x2b6170:0x183,_0x150ea4:0x88,_0x5b87b6:0x9d,_0x2db2d2:0x14a,_0x5ee9b4:0x124,_0x741f0e:0x19e,_0x3a7a35:0x56,_0x172462:0x305,_0x4c9d9a:0x23a,_0x37c2aa:0x175,_0x3809e0:0x30d,_0x470daf:0x277,_0x172b47:0x241,_0x4a30ca:0x1f5,_0x26703a:0xa9,_0xf6eaa0:0x48a,_0x1e5b18:0x553,_0x30ab36:0x43d,_0x2999d4:0x3c2,_0xc21884:0x3ae,_0x58e126:0x2b6,_0x9d5245:0x49b,_0x27eb6c:0x1aa,_0x296c0f:0x1ce,_0x451a82:0x2f8,_0x39051b:0x164,_0x389789:0x223,_0x138b99:0x24f,_0x1134d2:0x2cc,_0x244ade:0x255,_0x5db6f1:0x305,_0x1502a:0x157,_0x30efb4:0x2cc,_0x3da6a2:0x2fc,_0xa96190:0x67,_0x49e903:0x28,_0x477630:0xbd,_0x17ee18:0xe,_0x5ad0f1:0x13e,_0x535026:0x2c7,_0x14327b:0x1f9,_0x58bd92:0xf5,_0x7e081e:0xf5,_0x3070d9:0x43,_0x53501b:0x1a3,_0x4a7ef0:0x19,_0x23e96c:0xee,_0x162d03:0x20c,_0x3fa751:0x3cb,_0x18798a:0x198,_0x1a8eb3:0x2f1,_0x42bc04:0x368,_0x61cfcc:0x102,_0x3842eb:0x1ab,_0x37b68a:0x104,_0x1d9601:0x3d,_0x44456b:0x12d,_0x4351bd:0x1fa,_0x42541a:0x270,_0x4b457d:0x1ce,_0x490c88:0x2bb,_0x26441a:0x1e3,_0x5aa2c5:0x2a3},_0x27bcb6={_0x5f31ed:0xf2,_0x2d1a14:0x106,_0x126885:0x48},_0x16df62={_0x22ead3:0x186,_0x7a5dad:0x2af,_0x40cae3:0xc2,_0x55a071:0x89},_0x1f0a44={_0x53cd3c:0x15e,_0xc02866:0x1c9},_0x12fbdd={_0x23705d:0x4df,_0x1aec1c:0x89,_0x154825:0x124},_0x22b3ca={_0x4048db:0x254,_0x504b29:0x177},_0x10f99a=_0x54838e[_0x11da60(_0x4bb292._0x4e05ed,_0x4bb292._0x32316a,_0x4bb292._0x7275d4,0x2bc)](_0x236887[_0x11da60(0x44a,_0x4bb292._0x521971,0x481,0x35b)]??process[_0x11da60(_0x4bb292._0x27178f,_0x4bb292._0x3180ea,_0x4bb292._0x40f21f,0x2d9)]());function _0x11da60(_0xb0cbe7,_0x6bba66,_0x3e4de4,_0x4eacf8){return _0x1343ee(_0x4eacf8-_0x22b3ca._0x4048db,_0x3e4de4,_0x3e4de4-_0x22b3ca._0x504b29,_0x4eacf8-0xe1);}const _0x14f608=(_0x236887['allowedDirs']??[])[_0x11da60(_0x4bb292._0x36ce48,0x28b,_0x4bb292._0x1544fc,0x1da)](_0x1d4291=>_0x54838e['resolve'](_0x1d4291));function _0x3cfe5e(_0x1b6833,_0x16e90d,_0x270192,_0x571a98){return _0x1343ee(_0x16e90d-_0x12fbdd._0x23705d,_0x571a98,_0x270192-_0x12fbdd._0x1aec1c,_0x571a98-_0x12fbdd._0x154825);}const _0x312415=_0x236887['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS,_0x106429=_0x236887[_0x11da60(0x29a,0x268,0x273,0x2b1)]??!![],_0x52b352=_0x236887[_0x3cfe5e(0x524,_0x4bb292._0x4052dd,_0x4bb292._0x704dbd,0x4a4)]??_0x3cfe5e(0x600,_0x4bb292._0x92b263,_0x4bb292._0x5bc36b,0x587);return defineTool({'name':_0x52b352,'description':_0x236887[_0x11da60(0x196,0x37f,0x1fe,_0x4bb292._0x15279d)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':_0x11da60(0x3a5,0x3f8,_0x4bb292._0x45dce5,_0x4bb292._0x70f83a)},'cwd':{'type':_0x3cfe5e(_0x4bb292._0x2e8ee9,_0x4bb292._0x1ab5c1,0x6a2,_0x4bb292._0x574ccb)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x11da60(_0x4bb292._0x1a54a5,_0x4bb292._0x52d73c,0x339,_0x4bb292._0xc7f363)}},'required':['command']},async *'execute'(_0x253aee,_0x10f4cf){const _0x4579a7={_0x568c47:0x43f,_0x384911:0x30f,_0x3bde26:0x1db,_0x434dc6:0x302,_0x4acebf:0x29b,_0x1e561d:0x317,_0x3c3e83:0x201},_0x383837={_0x8c27c:0x1f},_0x3d6a26={_0x4a7f4a:0xb9,_0x4a7610:0x1ce},_0x3f79de={_0xd42ef6:0xff,_0x40bc43:0xd4},_0x23d6e3={_0x21d354:0x12b,_0x21e725:0x107,_0x514ff0:0x121},_0x47d86f={_0x28ed53:0x188},_0x37f2e7={_0x37ce1a:0x83},_0xd38ca0={_0x341ca9:0x1fb},_0xe588b7={_0x211f4f:0x12c},_0xa68232=_0x253aee[_0x39133b(-0x55,0x78,0xfc,_0x42a93d._0x4bfe78)]??_0x312415;if(!Number[_0x39133b(_0x42a93d._0x638c29,0x184,_0x42a93d._0x213b8e,_0x42a93d._0x163d30)](_0xa68232)||_0xa68232<0x1)throw new ToolExecutionError(_0x390e69(_0x42a93d._0x5d4433,0x160,_0x42a93d._0x478510,_0x42a93d._0x495dee),{'command':_0x253aee[_0x39133b(_0x42a93d._0x127964,_0x42a93d._0xaf9d87,-_0x42a93d._0x3e4279,-_0x42a93d._0x4aaa6e)]});throwIfAborted(_0x10f4cf[_0x390e69(0x2af,_0x42a93d._0xd9b7a,_0x42a93d._0x5ce989,_0x42a93d._0x23b46a)]);const _0x425f62=resolveWorkingDirectory(_0x253aee[_0x390e69(0x369,0x2ce,0x493,0x351)],_0x10f99a,_0x14f608),_0x234738=_0x253aee[_0x390e69(0x43e,_0x42a93d._0x295117,0x37f,_0x42a93d._0x2d2c01)]??![],_0x34fcc3=resolveDefaultShell(_0x236887[_0x390e69(_0x42a93d._0x4e40dc,_0x42a93d._0xfcc497,_0x42a93d._0x5cc350,_0x42a93d._0x997533)]),_0x1c3b5e=buildShellArgs(_0x253aee[_0x390e69(0x25b,0x13c,_0x42a93d._0x83f114,0x25c)],_0x34fcc3),_0x4e26dc=_0x2a33fe[_0x390e69(_0x42a93d._0x2e534d,0x470,_0x42a93d._0x4a72e3,0x3d4)]()==='win32';let _0x4dd14f;try{_0x4dd14f=_0x556224(_0x34fcc3,_0x1c3b5e,{'cwd':_0x425f62,'env':{...process['env'],..._0x236887['env']??{}},'stdio':_0x234738?[_0x39133b(_0x42a93d._0x2b6170,0x19e,_0x42a93d._0x150ea4,0x1ff),_0x39133b(_0x42a93d._0x5b87b6,0x19e,0x18f,_0x42a93d._0x2db2d2),_0x39133b(_0x42a93d._0x5ee9b4,_0x42a93d._0x741f0e,0x106,_0x42a93d._0x3a7a35)]:['ignore',_0x390e69(0x273,_0x42a93d._0x172462,_0x42a93d._0x4c9d9a,_0x42a93d._0x37c2aa),_0x390e69(0x273,0x25b,_0x42a93d._0x4bfe78,0x2f1)],'shell':![],'windowsHide':!![],'detached':!_0x4e26dc});}catch(_0x3ea63e){if(isErrnoException(_0x3ea63e)&&_0x3ea63e[_0x390e69(_0x42a93d._0x3809e0,_0x42a93d._0x470daf,_0x42a93d._0x172b47,0x353)]===_0x39133b(0xcd,_0x42a93d._0x4a30ca,_0x42a93d._0x26703a,0xe3))throw new ToolExecutionError(_0x390e69(_0x42a93d._0xf6eaa0,_0x42a93d._0x1e5b18,_0x42a93d._0x30ab36,0x34f)+_0x34fcc3,{'command':_0x253aee['command'],'cwd':_0x425f62,'shellPath':_0x34fcc3});throw new ToolExecutionError(_0x3ea63e instanceof Error?_0x3ea63e['message']:String(_0x3ea63e),{'command':_0x253aee[_0x39133b(0x113,0x43,0x13d,-0x11)],'cwd':_0x425f62,'shellPath':_0x34fcc3});}const _0x187e3f=[],_0x312b0b=[],_0x45a084=new StringDecoder(_0x390e69(_0x42a93d._0x2999d4,_0x42a93d._0xc21884,_0x42a93d._0x58e126,_0x42a93d._0x9d5245)),_0x4fa4cf=new StringDecoder(_0x39133b(0x6c,_0x42a93d._0x27eb6c,_0x42a93d._0x296c0f,_0x42a93d._0x451a82));let _0x14cbc6,_0x5e3b5f=![],_0x363cae;const _0x508673=()=>{if(!_0x14cbc6)return;const _0x44f6bf=_0x14cbc6;_0x14cbc6=void 0x0,_0x44f6bf();},_0x43ced3=async()=>{const _0x57de27={_0x4a4ea3:0x2c,_0x4e7d01:0xd3,_0x465446:0x188};function _0x16b90d(_0x1b9ac7,_0x5ed1e6,_0x543c68,_0xf12568){return _0x39133b(_0x1b9ac7-_0x57de27._0x4a4ea3,_0xf12568- -_0x57de27._0x4e7d01,_0x543c68-_0x57de27._0x465446,_0x5ed1e6);}if(_0x312b0b[_0x16b90d(-0xf4,_0xe588b7._0x211f4f,0x6b,0x19)]>0x0||_0x5e3b5f)return;await new Promise(_0x1e20c6=>{_0x14cbc6=_0x1e20c6;});};function _0x390e69(_0x718f10,_0x1a3173,_0x7806fe,_0x4143a5){return _0x3cfe5e(_0x718f10-0x65,_0x718f10- -_0xd38ca0._0x341ca9,_0x7806fe-0x171,_0x7806fe);}const _0x2f3851=_0x28c916=>{const _0x30dfcb={_0x2fc0a4:0x268,_0x3ab6a4:0xe3,_0x150487:0xd2};function _0x207851(_0x2be047,_0x34aa8f,_0x194fcd,_0x5f15d5){return _0x390e69(_0x34aa8f- -_0x30dfcb._0x2fc0a4,_0x34aa8f-_0x30dfcb._0x3ab6a4,_0x194fcd,_0x5f15d5-_0x30dfcb._0x150487);}appendChunk(_0x187e3f,_0x312b0b,_0x45a084[_0x207851(_0x1f0a44._0x53cd3c,0x117,_0x1f0a44._0xc02866,0x20c)](_0x28c916),_0x106429,_0x508673);},_0x4d7a24=_0x73e2cd=>{function _0x1fa4b2(_0x27750d,_0x19140c,_0x194e9d,_0x315df){return _0x39133b(_0x27750d-0x136,_0x27750d-0x1f,_0x194e9d-_0x37f2e7._0x37ce1a,_0x315df);}appendChunk(_0x187e3f,_0x312b0b,_0x4fa4cf[_0x1fa4b2(_0x16df62._0x22ead3,_0x16df62._0x7a5dad,_0x16df62._0x40cae3,_0x16df62._0x55a071)](_0x73e2cd),_0x106429,_0x508673);};_0x4dd14f[_0x39133b(_0x42a93d._0x39051b,_0x42a93d._0x389789,0x21a,_0x42a93d._0x138b99)]?.['on'](_0x390e69(_0x42a93d._0x1134d2,0x36b,0x1d9,0x359),_0x2f3851),_0x4dd14f[_0x390e69(_0x42a93d._0x244ade,0x318,_0x42a93d._0x5db6f1,_0x42a93d._0x1502a)]?.['on'](_0x390e69(_0x42a93d._0x30efb4,0x202,_0x42a93d._0x3da6a2,0x270),_0x4d7a24);let _0x24bc3c=![],_0x152674;function _0x39133b(_0x592ff3,_0x43a900,_0x35217,_0x3617f2){return _0x11da60(_0x592ff3-0x1f2,_0x43a900-0x4b,_0x3617f2,_0x43a900- -_0x47d86f._0x28ed53);}const _0x41dbaf=addAbortListener(_0x10f4cf['signal'],()=>{function _0x5d2916(_0x1440d3,_0x31dbfb,_0xc3c4e,_0x5447bd){return _0x39133b(_0x1440d3-_0x23d6e3._0x21d354,_0xc3c4e- -_0x23d6e3._0x21e725,_0xc3c4e-_0x23d6e3._0x514ff0,_0x1440d3);}_0x363cae=toAbortError(_0x10f4cf['signal'][_0x5d2916(-_0x27bcb6._0x5f31ed,-_0x27bcb6._0x2d1a14,-0xb9,_0x27bcb6._0x126885)]),_0x5e3b5f=!![],_0x508673();try{killProcessGroup(_0x4dd14f,_0x4e26dc);}catch{}});try{const _0x2fc93b=new Promise((_0xb531ca,_0x220adf)=>{const _0x3d1f22={_0x12199a:0x3bf,_0x16f026:0x2e1},_0x4e7b9a={_0x3b62e9:0xf6,_0x22779a:0x1db},_0x1e035d=()=>{const _0x34b56={_0x13a2ac:0x229};_0x152674&&(clearTimeout(_0x152674),_0x152674=void 0x0);function _0x2fbb76(_0x59ab5d,_0x34d2e3,_0x4bf2fa,_0x2b42f3){return _0x1358(_0x2b42f3- -_0x34b56._0x13a2ac,_0x4bf2fa);}_0x4dd14f['off']('error',_0x37c875),_0x4dd14f[_0x2fbb76(-_0x3f79de._0xd42ef6,_0x3f79de._0x40bc43,0x7d,0x4d)]('close',_0x636e3e);};function _0x3d34bc(_0x93876b,_0x2ccd19,_0xe9b22e,_0x3353a8){return _0x390e69(_0xe9b22e-0xf8,_0x2ccd19-_0x4e7b9a._0x3b62e9,_0x3353a8,_0x3353a8-_0x4e7b9a._0x22779a);}const _0x37c875=_0x509eed=>{_0x5e3b5f=!![],_0x508673(),_0x1e035d(),_0x220adf(_0x363cae??_0x509eed);},_0x636e3e=(_0x44058a,_0x47f5a5)=>{_0x24bc3c=!![],appendChunk(_0x187e3f,_0x312b0b,_0x45a084['end'](),_0x106429,_0x508673),appendChunk(_0x187e3f,_0x312b0b,_0x4fa4cf[_0x23792a(0x3f8,0x335,_0x3d1f22._0x12199a,_0x3d1f22._0x16f026)](),_0x106429,_0x508673),_0x5e3b5f=!![];function _0x23792a(_0x21f4ce,_0x3ee821,_0x2d7480,_0x13a4ee){return _0x1358(_0x13a4ee-0x10c,_0x21f4ce);}_0x508673(),_0x1e035d();if(_0x363cae){_0x220adf(_0x363cae);return;}_0xb531ca({'code':_0x44058a,'signal':_0x47f5a5});};function _0x1440ca(_0x4528ab,_0x8fda0a,_0x502039,_0x3398be){return _0x390e69(_0x8fda0a- -_0x3d6a26._0x4a7f4a,_0x8fda0a-_0x3d6a26._0x4a7610,_0x3398be,_0x3398be-0x38);}_0x152674=setTimeout(()=>{const _0x3049cb={_0x10d41e:0x11b};_0x5e3b5f=!![],_0x508673(),_0x1e035d();try{killProcessGroup(_0x4dd14f,_0x4e26dc);}catch{}function _0x3128a8(_0x50daa1,_0x348c28,_0x2b02a4,_0x304a84){return _0x1358(_0x348c28- -_0x3049cb._0x10d41e,_0x304a84);}_0x220adf(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0xa68232+_0x3128a8(0x11b,_0x383837._0x8c27c,-0x115,-0x7f),{'command':_0x253aee['command'],'cwd':_0x425f62,'shellPath':_0x34fcc3,'timeoutMs':_0xa68232,'timedOut':!![]}));},_0xa68232),_0x4dd14f[_0x1440ca(_0x4579a7._0x568c47,_0x4579a7._0x384911,0x436,_0x4579a7._0x3bde26)](_0x1440ca(_0x4579a7._0x434dc6,0x3b4,_0x4579a7._0x4acebf,_0x4579a7._0x1e561d),_0x37c875),_0x4dd14f[_0x1440ca(0x372,0x30f,_0x4579a7._0x3c3e83,0x2be)]('close',_0x636e3e);});while(_0x312b0b['length']>0x0||!_0x5e3b5f){if(_0x312b0b[_0x39133b(_0x42a93d._0xa96190,0xec,0x198,_0x42a93d._0x49e903)]===0x0){await _0x43ced3();continue;}const _0x3b041b=_0x312b0b[_0x39133b(_0x42a93d._0x477630,_0x42a93d._0x17ee18,_0x42a93d._0x5ad0f1,0x15d)]();_0x3b041b!==void 0x0&&(yield _0x3b041b);}const _0x1a1f2f=await _0x2fc93b,_0x1674dd=_0x234738?_0x390e69(_0x42a93d._0x535026,0x2c9,0x36d,0x233)+(_0x1a1f2f[_0x39133b(_0x42a93d._0x14327b,_0x42a93d._0x58bd92,0xf2,0x171)]??0x0):_0x187e3f['join'](''),_0x14b99a={'command':_0x253aee['command'],'cwd':_0x425f62,'exitCode':_0x1a1f2f[_0x390e69(_0x42a93d._0x3809e0,0x245,0x404,0x3ec)]??0x0,'signal':_0x1a1f2f['signal'],'ignoreOutput':_0x234738,'shellPath':_0x34fcc3,'timeoutMs':_0xa68232};if(_0x1a1f2f[_0x39133b(0xcd,_0x42a93d._0x7e081e,0x19d,-_0x42a93d._0x3070d9)]!==0x0)throw new ToolExecutionError(_0x1674dd||_0x390e69(0x3ef,0x2d6,0x488,0x3c5)+(_0x1a1f2f[_0x390e69(_0x42a93d._0x3809e0,0x42b,0x3e6,0x2dd)]??0x0),_0x14b99a);return createToolOutput(_0x1674dd,_0x14b99a);}catch(_0x4ec585){while(_0x312b0b[_0x39133b(0xcd,0xec,-0x61,_0x42a93d._0x53501b)]>0x0){const _0x463fa5=_0x312b0b[_0x39133b(_0x42a93d._0x4a7ef0,0xe,_0x42a93d._0x23e96c,-0xdc)]();_0x463fa5!==void 0x0&&(yield _0x463fa5);}if(_0x4ec585 instanceof ToolExecutionError)throw _0x4ec585;if(_0x363cae)throw _0x363cae;if(isErrnoException(_0x4ec585)&&_0x4ec585['code']==='ENOENT')throw new ToolExecutionError(_0x39133b(0x2a2,0x272,_0x42a93d._0x162d03,0x38e)+_0x34fcc3,{'command':_0x253aee['command'],'cwd':_0x425f62,'shellPath':_0x34fcc3});throw new ToolExecutionError(_0x4ec585 instanceof Error?_0x4ec585[_0x390e69(_0x42a93d._0x3fa751,0x3b3,0x497,0x359)]:String(_0x4ec585),{'command':_0x253aee['command'],'cwd':_0x425f62,'shellPath':_0x34fcc3});}finally{_0x152674&&clearTimeout(_0x152674);_0x41dbaf(),_0x4dd14f[_0x39133b(_0x42a93d._0x18798a,0x223,_0x42a93d._0x1a8eb3,_0x42a93d._0x42bc04)]?.[_0x39133b(0x2e1,0x1fa,_0x42a93d._0x61cfcc,_0x42a93d._0x3842eb)]('data',_0x2f3851),_0x4dd14f[_0x39133b(_0x42a93d._0x37b68a,_0x42a93d._0x1d9601,0x56,0x14a)]?.[_0x39133b(_0x42a93d._0x44456b,_0x42a93d._0x4351bd,_0x42a93d._0x42541a,_0x42a93d._0x4b457d)](_0x39133b(0xe9,0xb4,0x37,0x103),_0x4d7a24);if(!_0x24bc3c&&_0x4dd14f[_0x39133b(0x314,0x24d,0x249,0x1b8)]&&!_0x4dd14f[_0x39133b(_0x42a93d._0x490c88,_0x42a93d._0x26441a,0x258,_0x42a93d._0x5aa2c5)])try{killProcessGroup(_0x4dd14f,_0x4e26dc);}catch{}}}});}function createShellExecTool(_0x910239={}){return createBashTool(_0x910239);}import{readdir,readFile as _0x2d4031}from'fs/promises';import{extname,join as _0x5c6742}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x286bc5,join,relative as _0x4fcce9,resolve as _0x5d477c}from'path';import{readdir as _0x637825,readFile as _0x41e094}from'fs/promises';import{join as _0xf74614,relative as _0x2871df,sep}from'path';import{delimiter}from'path';import{mkdir as _0x24dee0,rm,stat as _0x4c6ca6,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x188695}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x21bb7b,rename,writeFile as _0x456f1b}from'fs/promises';import{homedir as _0x32aed4}from'os';import{dirname as _0x2353b4,isAbsolute as _0x1ed128,join as _0x1234fb,resolve as _0x2245e8}from'path';import{parse as _0x276196,stringify as _0x19439f}from'yaml';import{cp,mkdir as _0x2aba26,readFile as _0x339532,rm as _0x1a02a4,writeFile as _0x8fcb15}from'fs/promises';import{homedir}from'os';import{join as _0x15ce38}from'path';import{parse as _0x5d0981,stringify as _0x4e9aac}from'yaml';import{z}from'zod';import{readdir as _0x568250,readFile as _0x2c68bd}from'fs/promises';import{join as _0x44900b}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x3850d8){const _0x3556d5={_0x40794e:0x287,_0x24add1:0x16e,_0x49b4d7:0x232,_0x1bad79:0xb0,_0x309e6e:0xad,_0x4d1c83:0x9f,_0x335dc8:0x46,_0x7c1b3d:0x147,_0x548789:0x1ab,_0x45ceff:0x98,_0x5d42ed:0x2,_0x51a163:0x123,_0x585871:0x48,_0x5ef778:0xea,_0x3638c2:0x12c,_0x10bd94:0x26b},_0x27699f={_0x351ed2:0x7d},_0x51ab35={_0x237520:0xa0},_0x415d44=[];function _0x1b9ef2(_0x2c2a53,_0x559daa,_0x157f6f,_0x1a8b89){return _0x1343ee(_0x157f6f- -0x18e,_0x559daa,_0x157f6f-0x69,_0x1a8b89-_0x51ab35._0x237520);}function _0x3ff549(_0x14b655,_0x2b857c,_0x2a53fb,_0x390a09){return _0x357fd3(_0x14b655-0xcf,_0x2b857c-0x96,_0x2b857c- -_0x27699f._0x351ed2,_0x2a53fb);}let _0x2ddbff='',_0x19c74d=0x0;while(_0x19c74d<_0x3850d8[_0x1b9ef2(-_0x3556d5._0x40794e,-0x52,-_0x3556d5._0x24add1,-_0x3556d5._0x49b4d7)]){const _0x3f37cc=_0x3850d8[_0x19c74d];if(_0x3f37cc==='\x5c'&&_0x19c74d+0x1<_0x3850d8[_0x1b9ef2(-_0x3556d5._0x1bad79,-_0x3556d5._0x309e6e,-0x16e,-_0x3556d5._0x4d1c83)])_0x2ddbff+=_0x3850d8[_0x19c74d+0x1],_0x19c74d+=0x2;else{if(_0x3f37cc==='\x22'||_0x3f37cc==='\x27'){const _0x173f4a=_0x3f37cc;_0x19c74d++;while(_0x19c74d<_0x3850d8[_0x1b9ef2(-_0x3556d5._0x335dc8,-0x123,-0x16e,-_0x3556d5._0x7c1b3d)]&&_0x3850d8[_0x19c74d]!==_0x173f4a){_0x3850d8[_0x19c74d]==='\x5c'&&_0x19c74d+0x1<_0x3850d8[_0x1b9ef2(-_0x3556d5._0x548789,-0x28a,-_0x3556d5._0x24add1,-_0x3556d5._0x45ceff)]?(_0x2ddbff+=_0x3850d8[_0x19c74d+0x1],_0x19c74d+=0x2):(_0x2ddbff+=_0x3850d8[_0x19c74d],_0x19c74d++);}_0x19c74d++;}else _0x3f37cc!==void 0x0&&/\s/[_0x3ff549(0x1c5,0xbb,-_0x3556d5._0x5d42ed,_0x3556d5._0x51a163)](_0x3f37cc)?(_0x2ddbff&&(_0x415d44[_0x3ff549(-_0x3556d5._0x585871,-0x20,-0x137,0x9f)](_0x2ddbff),_0x2ddbff=''),_0x19c74d++):(_0x2ddbff+=_0x3f37cc,_0x19c74d++);}}if(_0x2ddbff)_0x415d44[_0x1b9ef2(-_0x3556d5._0x5ef778,-0x204,-_0x3556d5._0x3638c2,-_0x3556d5._0x10bd94)](_0x2ddbff);return _0x415d44;}function renderCommandInstructions(_0x411f3e){const _0x59c652={_0x20cd4d:0x334,_0x1a6921:0x4a0,_0x28c106:0x2dd,_0x4fb8e1:0x3bd,_0x4d1888:0x340,_0x4cf416:0x2ef,_0x47c1ff:0x2e1,_0x5ed2ce:0x457,_0x4c784d:0x31e,_0x44a383:0x440,_0x52e99a:0x250,_0x22f74e:0x235,_0x19a349:0x124,_0x33d308:0x3f3,_0xf8367e:0x2ff,_0x3c5c0b:0x367},_0x426a6d={_0x3a9d3b:0x420,_0x4d9e2f:0x16d},_0x98cba7={_0x50311b:0x1b8,_0x3e03d0:0x1cc},_0x5ee757={_0x3eb5a5:0x180,_0x5d0615:0x1af},_0xa0c65c={_0x33beb3:0x298,_0x5366b4:0x16c};function _0x1a20e9(_0x3d60a0,_0x5a82ed,_0x23c758,_0x559527){return _0x1343ee(_0x559527-_0xa0c65c._0x33beb3,_0x23c758,_0x23c758-_0xa0c65c._0x5366b4,_0x559527-0x125);}let _0x467770=_0x411f3e[_0xf927df(0x2ba,0x453,0x4be,0x39c)],_0xf8b424=![];const _0x23b4df=tokenizeCommandArguments(_0x411f3e[_0xf927df(0x22a,_0x59c652._0x20cd4d,_0x59c652._0x1a6921,0x367)]);_0x467770=_0x467770['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0xc4cb52,_0x3875e6)=>{return _0xf8b424=!![],_0x23b4df[Number(_0x3875e6)]??'';}),_0x467770=_0x467770[_0xf927df(0x41c,_0x59c652._0x28c106,0x3a2,_0x59c652._0x4fb8e1)](/\$ARGUMENTS\b/g,()=>{function _0xf869ff(_0x278de2,_0x5aeb6e,_0x54e7f2,_0x1956c1){return _0xf927df(_0x278de2-_0x5ee757._0x3eb5a5,_0x5aeb6e-0x16,_0x278de2,_0x54e7f2- -_0x5ee757._0x5d0615);}return _0xf8b424=!![],_0x411f3e[_0xf869ff(0x70,0x2d7,_0x98cba7._0x50311b,_0x98cba7._0x3e03d0)];});if(_0x411f3e[_0x1a20e9(0x380,_0x59c652._0x4d1888,0x306,0x23b)]&&_0x411f3e['argumentNames'][_0x1a20e9(_0x59c652._0x4cf416,0x26a,0x37f,0x2b8)]>0x0)for(let _0x268520=0x0;_0x268520<_0x411f3e[_0xf927df(_0x59c652._0x47c1ff,0x4d6,_0x59c652._0x5ed2ce,0x3c3)][_0xf927df(0x4f1,0x4bf,_0x59c652._0x4c784d,_0x59c652._0x44a383)];_0x268520++){const _0x35750c=_0x411f3e['argumentNames'][_0x268520];if(_0x35750c){const _0x2be5d1=new RegExp('\x5c$'+_0x35750c+'\x5cb','g');_0x467770=_0x467770[_0x1a20e9(0x12b,0x31f,_0x59c652._0x52e99a,_0x59c652._0x22f74e)](_0x2be5d1,()=>{return _0xf8b424=!![],_0x23b4df[_0x268520]??'';});}}_0x467770=_0x467770[_0x1a20e9(0x247,0x180,0x266,0x235)](/\$(\d+)\b/g,(_0x9359ef,_0x391a36)=>{return _0xf8b424=!![],_0x23b4df[Number(_0x391a36)]??'';});function _0xf927df(_0x660086,_0x239785,_0x5b6e4e,_0x17210c){return _0x1343ee(_0x17210c-_0x426a6d._0x3a9d3b,_0x5b6e4e,_0x5b6e4e-0xc6,_0x17210c-_0x426a6d._0x4d9e2f);}return!_0xf8b424&&_0x411f3e['argumentsText'][_0x1a20e9(0x2a8,0x194,0x189,0x2a1)]()&&(_0x467770=_0x467770+_0x1a20e9(_0x59c652._0x19a349,0x2cb,0x21e,0x1de)+_0x411f3e[_0xf927df(0x4a5,_0x59c652._0x33d308,_0x59c652._0xf8367e,_0x59c652._0x3c5c0b)]),_0x467770;}var chatModelAuthSchemeSchema=z[_0x1343ee(-0x28,0x8c,-0x175,-0x13d)]([_0x357fd3(-0xa3,-0x32,0x54,0x109),'x-api-key']),apiKeyAuthSchema=z[_0x1343ee(0x4c,0x12f,-0xc6,-0xa8)]({'type':z[_0x357fd3(0x150,-0x1a,0xa3,0x107)](_0x1343ee(0x1ba,0x287,0x297,0x1ce)),'apiKey':z[_0x357fd3(0x7c,0x114,0x95,0x146)](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x357fd3(0x1df,0x2c2,0x19f,0xa2)](),oauthAuthSchema=z['object']({'type':z[_0x1343ee(0xa8,0xf4,0xa0,-0x11)](_0x357fd3(0x21e,0xfa,0x14b,0x84)),'access':z[_0x357fd3(0x1ba,-0xa0,0x95,-0x39)](),'refresh':z[_0x1343ee(0x9a,0x122,0x40,-0x24)](),'expires':z['number']()[_0x357fd3(0xb2,0x1da,0xd6,-0x4)](),'authScheme':chatModelAuthSchemeSchema[_0x1343ee(0xdb,0xc4,0xe3,0x91)]()})[_0x1343ee(0x1a4,0x224,0x2e3,0x19e)](),authMethodSchema=z['union']([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x1343ee(0x4c,0x150,0x104,0x89)]({'id':z[_0x357fd3(0x73,-0x4a,0x95,-0x97)](),'name':z[_0x1343ee(0x9a,0x8d,-0x70,-0x3d)]()[_0x357fd3(0x1ad,0xef,0xd6,0xa9)]()})[_0x357fd3(0x63,0x2d3,0x19f,0x29f)](),modelConfigSchema=z[_0x357fd3(-0x135,-0x111,-0xa8,-0x67)]([z[_0x357fd3(0x138,-0x9e,0xa3,0x1a3)](![]),z[_0x1343ee(0xa8,0x17,-0x22,0x105)](!![]),z[_0x357fd3(0xd5,-0x3d,0x95,0x58)](),z[_0x1343ee(-0x5b,-0x66,-0x90,-0x4)](z[_0x1343ee(0x9a,-0x18,-0x62,-0x35)]()),z['array'](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x1343ee(-0x28,0x103,0x8,0x92)](['anthropic-messages','openai-chat-completions','openai-responses',_0x357fd3(-0xbf,0x17,0x27,-0xb)]),providerConfigSchema=z['object']({'apiKey':z[_0x357fd3(-0xb,0x18d,0x95,-0x49)]()['optional'](),'token':z[_0x1343ee(0x9a,0xa1,-0x8a,0x84)]()['optional'](),'defaultModel':z['string']()[_0x1343ee(0xdb,0x19b,0x15f,-0x31)](),'smallModel':z[_0x357fd3(0x115,0x11f,0x95,0x48)]()['optional'](),'currentAuth':z['string']()[_0x357fd3(0x2f,0x168,0xd6,0x18f)](),'auth':z['array'](authMethodSchema)[_0x357fd3(0x16d,0xa5,0xd6,0x3b)](),'surface':chatModelSurfaceSchema[_0x1343ee(0xdb,0x15c,0x20f,-0x61)](),'baseUrl':z['string']()[_0x357fd3(0x1d1,0x210,0xd6,-0x5c)](),'models':modelConfigSchema[_0x1343ee(0xdb,0x30,0x16c,0x1ba)](),'customHeaders':z[_0x357fd3(0x202,0x26,0xc6,0x81)](z['string'](),z[_0x1343ee(0x9a,0x19a,-0x2b,0x158)]())[_0x1343ee(0xdb,0xb0,0x9f,0x14a)]()})[_0x357fd3(0x25b,0x2b2,0x19f,0x23a)](),mcpServerConfigSchema=z[_0x357fd3(-0x40,-0xa8,0x47,0xb2)]({'command':z[_0x357fd3(0x113,-0x7,0x95,0x96)]()[_0x357fd3(0x116,0x6e,0xd6,-0x75)](),'args':z['array'](z[_0x357fd3(-0x2b,0x98,0x95,0x30)]())['optional'](),'env':z[_0x1343ee(0xcb,0x118,0x41,0xdc)](z['string'](),z[_0x357fd3(0xb7,0x136,0x95,0x12)]())[_0x357fd3(0xd7,0x145,0xd6,0x1e1)](),'transport':z['enum']([_0x1343ee(0x16a,0x1fe,0x188,0x21e),_0x1343ee(0x159,0x12e,0x4f,0x11b)])['optional'](),'url':z[_0x357fd3(-0x5e,0xbd,0x95,0x7)]()[_0x357fd3(0x18a,0xd5,0xd6,0x125)](),'headers':z[_0x1343ee(0xcb,0x1e,0xe7,0x55)](z['string'](),z['string']())[_0x1343ee(0xdb,0x1f3,0x205,0x133)](),'prefix':z[_0x1343ee(0x9a,0xa7,0x144,0xed)]()[_0x1343ee(0xdb,0x127,0x1d,0xc)](),'timeoutMs':z[_0x357fd3(0x1a2,0x5,0x143,0x140)]()[_0x1343ee(0xdb,0x201,0x1d9,0x204)](),'enabled':z[_0x357fd3(0x142,0x85,0x127,0x12d)]()[_0x357fd3(-0x18,0x1ce,0xd6,0x15f)](),'auth':z[_0x357fd3(0x58,-0x1b,0x47,0x1d)]({'type':z[_0x357fd3(-0x176,-0x16,-0x2d,0xbb)]([_0x357fd3(0x87,0x20a,0x176,0xb4),_0x1343ee(0x59,0xaa,0xe,0x9f),_0x1343ee(0x150,0x1f3,0xa4,0x186)]),'token':z[_0x1343ee(0x9a,0xa8,0x109,-0xb1)]()[_0x357fd3(0x1a9,0x1e5,0xd6,0x6f)](),'oauth':z['object']({'clientId':z[_0x1343ee(0x9a,0x1aa,0x176,-0x31)]()[_0x1343ee(0xdb,0x10f,0x1ad,-0x3a)](),'clientMetadataUrl':z[_0x1343ee(0x9a,-0x72,0x199,0x146)]()[_0x357fd3(0x190,-0x58,0xd6,0x7c)](),'authorizationServer':z[_0x357fd3(0x13f,0xbb,0x95,-0x33)]()[_0x357fd3(0xae,0x1d6,0xd6,0x1ac)](),'scopes':z['array'](z['string']())[_0x1343ee(0xdb,0x16d,-0x67,0x19)](),'tokenStorageKey':z[_0x1343ee(0x9a,0x124,0x1ce,0x10f)]()[_0x1343ee(0xdb,0x207,0x160,0xdc)]()})[_0x357fd3(0x11f,0x186,0x19f,0x28b)]()['optional']()})[_0x357fd3(0x254,0x25d,0x19f,0x2a0)]()[_0x357fd3(0x1c3,-0x66,0xd6,0x164)]()})[_0x1343ee(0x1a4,0x1b0,0x153,0x2eb)](),mcpSettingsSchema=z['object']({'servers':z['record'](z[_0x1343ee(0x9a,-0x29,0x141,0x175)](),mcpServerConfigSchema)[_0x1343ee(0xdb,0xe,0x1d3,0x5a)](),'allowedTools':z['record'](z[_0x1343ee(0x9a,0x1bd,0x1ba,-0x82)](),z['record'](z[_0x1343ee(0x9a,-0x1d,0x17b,0x9f)](),z[_0x357fd3(0x5d,0x16c,0x127,0x1b)]()))[_0x357fd3(0x58,0xbf,0xd6,0x3b)](),'defaultTimeoutMs':z[_0x357fd3(0x1a5,0x231,0x143,0x200)]()[_0x1343ee(0xdb,0x19f,0xd8,0x154)]()})[_0x357fd3(0x13c,0x284,0x19f,0x24f)](),skillsSettingsSchema=z['object']({'enabled':z[_0x1343ee(0x12c,0x139,0x15e,0x7)]()[_0x357fd3(0xc8,0x20,0xd6,0x1dd)](),'includeDefaults':z[_0x357fd3(0x105,0x1be,0x127,0x23b)]()['optional'](),'directories':z['array'](z[_0x357fd3(-0x16,0xf3,0x95,0x15e)]())['optional'](),'exclude':z[_0x357fd3(-0x8b,0xc5,-0x60,0x46)](z[_0x1343ee(0x9a,0x199,0x1d8,0x1dd)]())['optional']()})[_0x1343ee(0x1a4,0x8c,0x10b,0x1da)](),commandsSettingsSchema=z[_0x1343ee(0x4c,0x1d,-0x5e,0x13b)]({'enabled':z[_0x357fd3(-0xc,0x26e,0x127,0x145)]()[_0x357fd3(0x8c,0x1c7,0xd6,0x200)](),'directories':z[_0x1343ee(-0x5b,-0x7d,0xaa,-0x7a)](z[_0x1343ee(0x9a,0x71,-0x3a,0x144)]())[_0x357fd3(0xa0,0x8b,0xd6,-0xf)]()})[_0x357fd3(0x7f,0x6a,0x19f,0x1d7)](),agentsSettingsSchema=z[_0x357fd3(0xa,0x152,0x47,0x4b)]({'enabled':z['boolean']()[_0x1343ee(0xdb,0x16c,0x225,0x70)](),'includeDefaults':z[_0x1343ee(0x12c,0x3b,0x208,0x12c)]()[_0x357fd3(-0x28,0x224,0xd6,0x206)](),'directories':z[_0x1343ee(-0x5b,0x2f,-0x10e,-0x19)](z['string']())[_0x357fd3(0x34,0x41,0xd6,-0x71)]()})['passthrough'](),uiThemeSettingsSchema=z[_0x357fd3(0x176,0x18f,0x47,-0x35)]({'mode':z['enum'](['auto','dark','light'])['optional'](),'colorLevel':z[_0x357fd3(0x89,-0x16a,-0x2d,-0x12e)]([_0x357fd3(0x196,0x110,0x46,0x4d),_0x357fd3(0x113,0x173,0x176,0x1cc),_0x1343ee(0xe5,0x18c,-0x56,0x1dd),_0x357fd3(-0xb8,0xb3,0x17,-0x5a),_0x1343ee(0x41,-0xeb,0x18b,0x20)])['optional'](),'backgrounds':z[_0x357fd3(0x85,-0xb4,-0x2d,-0x10f)](['auto','on',_0x1343ee(0x12e,0x176,0x144,0x1a2)])['optional'](),'messageStyle':z[_0x1343ee(-0x28,-0x164,0x1,0x5)]([_0x1343ee(0x12f,0x4c,0x1a0,0x6b),_0x357fd3(0x71,0x211,0x178,0x5e)])[_0x357fd3(0x116,0x10c,0xd6,0x97)]()})['passthrough'](),statuslineSegmentSchema=z['enum']([_0x1343ee(0x173,0x193,0x2c,0x3d),'session','thinking',_0x357fd3(-0xd6,-0xfb,-0xb5,-0x1ed),'tokens',_0x1343ee(-0xa0,0x5b,-0x153,-0x3d),'cached',_0x1343ee(0x83,0x9b,0x132,-0x58),'tools',_0x357fd3(0x194,0xe8,0x12c,0xf8),_0x357fd3(-0x19e,-0xd0,-0x9f,-0xd7),'gitBranch',_0x1343ee(0xad,0xbb,0x153,-0x37),_0x1343ee(0xeb,0x14b,-0x11,0x50),_0x357fd3(0x75,0x7a,-0x99,0x65)]),statuslineItemSchema=z[_0x357fd3(0x89,-0x7,-0xa8,-0x9b)]([statuslineSegmentSchema,z[_0x357fd3(0x178,0xa9,0xa3,-0x27)]('|')]),statuslineRowSchema=z['array'](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z['tuple']([statuslineRowSchema,statuslineRowSchema])[_0x357fd3(0x6b,0x158,0xd6,-0x5c)]()})[_0x357fd3(0x23f,0xb2,0x19f,0x11d)](),memorySettingsSchema=z[_0x357fd3(-0x9e,-0x59,0x47,-0x7f)]({'version':z[_0x357fd3(0x7e,0x172,0xa3,0x152)](0x2)[_0x1343ee(0xdb,0x222,0xf9,0x15c)](),'retrieval':z[_0x357fd3(0xb7,0xba,0x47,0x80)]({'engine':z[_0x1343ee(0xa8,0x1a,0x170,0x7c)]('bm25')['optional'](),'candidateLimit':z[_0x1343ee(0x148,0x185,0x8c,0x263)]()[_0x357fd3(0x1f,-0xd,0xd6,0x193)](),'activeCandidateLimit':z['number']()[_0x1343ee(0xdb,0x18b,0x98,0x21e)](),'activeEnabled':z[_0x1343ee(0x12c,0x267,0xe8,0xe1)]()[_0x357fd3(0x1e2,0x3c,0xd6,-0x23)](),'maxQueriesPerTurn':z[_0x1343ee(0x148,0x26f,0x136,0x80)]()['optional'](),'coreInjectTokenBudget':z[_0x357fd3(0x17b,0x14d,0x143,0x257)]()[_0x1343ee(0xdb,0x192,0xb9,0x117)](),'injectTokenBudget':z[_0x357fd3(0xb,0xf3,0x143,0x28b)]()[_0x357fd3(0x188,0x5b,0xd6,0x18f)](),'minScore':z['number']()[_0x357fd3(0x10a,0xe0,0xd6,0x8a)](),'freshnessHalfLifeDays':z[_0x1343ee(0x148,0x57,0x161,0x145)]()[_0x1343ee(0xdb,0x193,0x93,0xbb)]()})[_0x357fd3(0x11b,0x173,0x19f,0x280)]()['optional'](),'extraction':z['object']({'enabled':z[_0x357fd3(0x119,0x1c2,0x127,0x12)]()[_0x357fd3(0x1a1,0x20a,0xd6,0x129)](),'provider':z[_0x357fd3(-0xa1,0x8e,0x95,0x170)]()['optional'](),'model':z['string']()[_0x357fd3(-0x2,-0x5e,0xd6,-0x29)](),'sensitiveFilter':z[_0x1343ee(0x12c,0x22c,0x12c,0x1a8)]()[_0x1343ee(0xdb,-0x60,0x1a3,0x128)]()})[_0x1343ee(0x1a4,0x16d,0x122,0x1d7)]()[_0x357fd3(0x1f5,-0xb,0xd6,-0x5d)](),'index':z[_0x357fd3(-0xa1,0x175,0x47,-0xd1)]({'persisted':z['boolean']()[_0x1343ee(0xdb,0x15f,0x21d,0x186)](),'flushIntervalMs':z[_0x1343ee(0x148,0x28f,0x1c,0x233)]()['optional']()})['passthrough']()[_0x1343ee(0xdb,0x7c,-0x6e,0x34)](),'enabled':z[_0x1343ee(0x12c,0xe1,0x1e4,0xb4)]()[_0x1343ee(0xdb,0xb9,-0x12,0x122)](),'saveTool':z['boolean']()['optional'](),'model':z[_0x1343ee(0x9a,0x5,0xd5,0x195)]()[_0x1343ee(0xdb,0x17a,0x173,0x80)](),'provider':z[_0x357fd3(0x15b,-0x1e,0x95,0x5d)]()[_0x1343ee(0xdb,0x15a,-0x3,-0x21)](),'maxInjectionTokens':z[_0x357fd3(0x16c,0x1e0,0x143,0x80)]()['optional'](),'backgroundExtraction':z[_0x1343ee(0x12c,0x16b,0x72,0x6b)]()[_0x357fd3(0x1d4,-0x35,0xd6,0x130)]()})[_0x1343ee(0x1a4,0x23f,0x20b,0x2cb)](),recentModelSchema=z['object']({'provider':z[_0x1343ee(0x9a,0x157,0x187,-0x73)](),'model':z[_0x1343ee(0x9a,0xdf,0x10c,-0xa6)](),'usedAt':z['number']()})[_0x357fd3(0x2ab,0x298,0x19f,0x10e)](),lspServerEntrySchema=z[_0x357fd3(-0xa5,0x1b,0x47,-0x24)]({'disabled':z[_0x357fd3(0x16f,0xf0,0x127,0x10a)]()[_0x357fd3(-0x68,0x208,0xd6,-0x68)](),'command':z['string']()[_0x1343ee(0xdb,0x1b4,0x173,0x13b)](),'args':z[_0x1343ee(-0x5b,0xbd,-0x104,-0x13)](z[_0x1343ee(0x9a,0x53,0x185,-0xd)]())[_0x1343ee(0xdb,0x181,0x53,0x1b)](),'rootMarkers':z[_0x1343ee(-0x5b,0xe3,-0xe1,0xa9)](z[_0x1343ee(0x9a,0x1df,0x125,0xd5)]())[_0x1343ee(0xdb,0x109,0x1ef,0x42)]()})[_0x1343ee(0x1a4,0x247,0x266,0x7f)](),lspConfigSchema=z[_0x357fd3(0x2e,0x84,0x47,0x16d)]({'enabled':z['boolean']()['optional'](),'servers':z['record'](z[_0x1343ee(0x9a,0xbb,0x39,0xec)](),lspServerEntrySchema)[_0x1343ee(0xdb,0x48,0x1b,0x1e8)]()})[_0x357fd3(0x172,0x1a3,0x19f,0x15c)](),cliConfigSchema=z[_0x1343ee(0x4c,0xd5,0xf5,0xdf)]({'activeProvider':z[_0x357fd3(0x18,0x16,0x95,0x1be)]()[_0x357fd3(0x219,0x24,0xd6,0x21b)](),'activeModel':z[_0x357fd3(0x150,0x1e3,0x95,0x140)]()[_0x1343ee(0xdb,0x156,0x19a,0x4)](),'apiKey':z['string']()[_0x1343ee(0xdb,0x196,0xb0,0x161)](),'providers':z['record'](z[_0x1343ee(0x9a,0x126,0x1b8,0x174)](),providerConfigSchema)[_0x357fd3(0x1a9,0x145,0xd6,0x1d0)](),'mcp':mcpSettingsSchema[_0x357fd3(0x114,0x13d,0xd6,0x12d)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x357fd3(0x1e1,0xad,0xd6,0x8a)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x1343ee(0xcb,0x9d,0x1fa,0x9b)](z[_0x1343ee(0x9a,0xa9,0x121,-0x95)](),z[_0x357fd3(0xda,0x15f,0x127,0x13f)]())[_0x1343ee(0xdb,0xf4,-0x6a,0x21a)](),'memory':memorySettingsSchema[_0x1343ee(0xdb,0x115,0x17f,0x21b)](),'session':z[_0x1343ee(0x4c,-0xe5,-0xb0,0x4f)]({'memPersist':z['boolean']()[_0x357fd3(-0x2f,0x221,0xd6,0x193)](),'persistEventLog':z['boolean']()['optional'](),'persistHttpLog':z[_0x1343ee(0x12c,0xc7,0xae,0x9b)]()[_0x357fd3(0x14c,0x1d5,0xd6,0x172)]()})['passthrough']()[_0x1343ee(0xdb,0xb4,0x1d1,0x8)](),'requireToolApproval':z[_0x357fd3(0x13f,0x182,0x127,0x243)]()[_0x357fd3(0x95,0x189,0xd6,-0x22)](),'thinking':z[_0x357fd3(-0x15c,-0x168,-0x2d,0xec)]([_0x1343ee(0x7e,-0x61,-0x27,0x21),_0x357fd3(0x14d,0x36,0x86,-0xc3),_0x1343ee(0x1be,0x1ca,0x127,0xf9),_0x1343ee(-0x27,-0xdc,0xd1,0x93)])[_0x1343ee(0xdb,-0x5e,0x48,0x13)](),'streamingChunks':z[_0x1343ee(0x12c,0x197,0x12e,-0x8)]()[_0x357fd3(0xd0,-0x4e,0xd6,0xc7)](),'agentsEnabled':z[_0x357fd3(0x1fa,0xe9,0xc6,0x188)](z[_0x357fd3(-0xa3,0x51,0x95,-0xa5)](),z[_0x357fd3(0x122,0x139,0x127,-0x5)]())[_0x1343ee(0xdb,-0x3b,0xe3,0xd)](),'recentModels':z[_0x1343ee(-0x5b,-0x188,0x30,-0x3)](recentModelSchema)[_0x1343ee(0xdb,-0x6b,0x11f,0xad)](),'lsp':lspConfigSchema['optional'](),'ui':z[_0x357fd3(-0x64,-0x4a,0x47,0x170)]({'theme':uiThemeSettingsSchema[_0x1343ee(0xdb,0x177,-0x54,0x1a1)](),'statusline':statuslineConfigSchema['optional']()})[_0x357fd3(0x19c,0xe6,0x19f,0x155)]()[_0x357fd3(-0x29,0x86,0xd6,-0x10)](),'tools':z['record'](z[_0x1343ee(0x9a,-0x3,0x95,0x12e)](),z[_0x1343ee(-0xb3,-0x64,-0xd3,0x8d)]())[_0x357fd3(0x74,0xb1,0xd6,-0x35)]()})[_0x1343ee(0x1a4,0x1f7,0xa6,0x6c)]();function buildDescription(_0x623b0b){const _0x1dfd6d={_0x5ce353:0x66,_0xcd5b8c:0x0,_0x8c909d:0xb0,_0x1a514f:0x45,_0x44ebce:0x17,_0x17f17d:0x1bd,_0x297128:0xb9,_0x402651:0x291,_0x2093fe:0x2fa,_0x146c8d:0x210,_0x2aa687:0x46a,_0x20a795:0xd6,_0x105c88:0x38,_0x3431cc:0x2cd,_0x440716:0x456,_0x7a1532:0x6d,_0x3906d1:0xc,_0x185f23:0x75,_0xb406af:0x3c8,_0x3d3a82:0x36c,_0x46a3f6:0x3a,_0x15ebf7:0x55},_0xb072eb={_0x198659:0x1d2},_0x6c8cbe={_0x969656:0x86};function _0x4b9189(_0x44b9e4,_0x5d2cbc,_0x2ae166,_0x3dd3b9){return _0x357fd3(_0x44b9e4-0x0,_0x5d2cbc-_0x6c8cbe._0x969656,_0x3dd3b9-0x2a,_0x2ae166);}function _0x534f90(_0x408935,_0x1ce837,_0x2f77e4,_0x594230){return _0x1343ee(_0x1ce837-0x2aa,_0x594230,_0x2f77e4-0x6e,_0x594230-_0xb072eb._0x198659);}if(_0x623b0b[_0x4b9189(-_0x1dfd6d._0x5ce353,_0x1dfd6d._0xcd5b8c,-_0x1dfd6d._0x8c909d,_0x1dfd6d._0x1a514f)]===0x0)return[_0x4b9189(_0x1dfd6d._0x44ebce,-0x4e,_0x1dfd6d._0x17f17d,_0x1dfd6d._0x297128),_0x534f90(_0x1dfd6d._0x402651,_0x1dfd6d._0x2093fe,0x1c2,_0x1dfd6d._0x146c8d),_0x534f90(0x400,_0x1dfd6d._0x2aa687,0x59f,0x4fd)][_0x4b9189(_0x1dfd6d._0x20a795,-0x5,-_0x1dfd6d._0x105c88,0x64)]('\x0a');const _0x2e2bc8=[_0x534f90(_0x1dfd6d._0x3431cc,0x33e,_0x1dfd6d._0x440716,0x33d),_0x4b9189(-_0x1dfd6d._0x7a1532,_0x1dfd6d._0x3906d1,-0x2e,_0x1dfd6d._0x185f23),_0x534f90(_0x1dfd6d._0xb406af,0x2fd,_0x1dfd6d._0x3d3a82,0x22c),..._0x623b0b[_0x4b9189(_0x1dfd6d._0x46a3f6,0xaf,-0x12,-_0x1dfd6d._0x15ebf7)](_0x15f295=>_0x15f295[_0x534f90(0x5a7,0x473,0x3eb,0x34e)]?'-\x20'+_0x15f295['name']+'\x20'+_0x15f295['argumentHint']+':\x20'+_0x15f295[_0x4b9189(-0x8f,0xb4,0x6f,0x23)]:'-\x20'+_0x15f295['name']+':\x20'+_0x15f295[_0x4b9189(0x93,0x84,0x71,0x23)])];return _0x2e2bc8['join']('\x0a');}function createInvokeCommandTool(_0x28d765){const _0x4b8bb4={_0x4641f1:0x27a,_0x5bd2fa:0x350,_0x3f60c9:0x349,_0x3331c7:0x376,_0x352d27:0x4a1,_0x1a672f:0x40c,_0x4fb7bb:0x457,_0x3db00d:0x435,_0x337f66:0x307,_0x185b41:0x305,_0x2672b1:0x3a2,_0x548ab7:0x71,_0x4bd564:0x10d,_0x1414c8:0x16e,_0x5b1924:0xf,_0x458bea:0x91,_0x5c3337:0x94},_0x479e82={_0x10147f:0xac,_0x5772eb:0x139,_0x31ed9b:0x200,_0x48b8e8:0x138,_0x6bea97:0x1df,_0x202825:0x2c3,_0x20087f:0x1c9,_0x4a0803:0x36c,_0x4cc310:0x12b,_0x51756c:0x160,_0x217a55:0x31c,_0x336cc9:0x3e6,_0x1a6289:0x1cf,_0x3ceeb5:0x36,_0x62999c:0x10f,_0xd2e861:0x2d,_0x58c3eb:0x2b8,_0x2d7d1b:0x3cc,_0x5638ca:0x322,_0x49e5b2:0x3bf},_0x4c4bb6={_0x108bb3:0x84,_0x35b301:0x100,_0x1f5370:0x78},_0x5cf15e={_0x1f72e7:0x3c3,_0x1546b7:0x14f};function _0x35e2a3(_0x2cfa87,_0x19a2ad,_0x427906,_0xcaf4c4){return _0x1343ee(_0x427906-_0x5cf15e._0x1f72e7,_0xcaf4c4,_0x427906-0x1c8,_0xcaf4c4-_0x5cf15e._0x1546b7);}const _0xe1949f=new Map(_0x28d765['commands'][_0x35e2a3(_0x4b8bb4._0x4641f1,_0x4b8bb4._0x5bd2fa,_0x4b8bb4._0x3f60c9,0x41d)](_0xcc20c8=>[_0xcc20c8['id'],_0xcc20c8])),_0x268335=buildDescription(_0x28d765[_0x35e2a3(_0x4b8bb4._0x3331c7,_0x4b8bb4._0x352d27,_0x4b8bb4._0x1a672f,_0x4b8bb4._0x4fb7bb)]);function _0x3f73a6(_0xd081f2,_0x17c8fe,_0x4c60cd,_0x4b382b){return _0x357fd3(_0xd081f2-_0x4c4bb6._0x108bb3,_0x17c8fe-_0x4c4bb6._0x35b301,_0xd081f2-_0x4c4bb6._0x1f5370,_0x17c8fe);}return defineTool({'name':_0x35e2a3(0x248,_0x4b8bb4._0x3db00d,_0x4b8bb4._0x337f66,0x3db),'description':_0x268335,'inputSchema':{'type':_0x35e2a3(_0x4b8bb4._0x185b41,_0x4b8bb4._0x2672b1,0x40f,0x38e),'properties':{'name':{'type':_0x3f73a6(0x10d,_0x4b8bb4._0x548ab7,0x25c,0x97)},'args':{'type':_0x3f73a6(_0x4b8bb4._0x4bd564,_0x4b8bb4._0x1414c8,0xc5,0x4)}},'required':[_0x3f73a6(-_0x4b8bb4._0x5b1924,0xe,-_0x4b8bb4._0x458bea,-_0x4b8bb4._0x5c3337)]},async *'execute'(_0xd582c4){const _0x58decc={_0x2dfd02:0x244,_0x4fa170:0xa6},_0x318b1d={_0x4c0a1e:0x5,_0x54a8ba:0x119,_0x1f3fbe:0xfa};function _0x1f1316(_0x160749,_0x52061d,_0x13c503,_0x54be99){return _0x3f73a6(_0x13c503- -_0x318b1d._0x4c0a1e,_0x52061d,_0x13c503-_0x318b1d._0x54a8ba,_0x54be99-_0x318b1d._0x1f3fbe);}const _0x596b55=_0xe1949f['get'](_0xd582c4[_0x1f1316(0x16,0xd3,-0x14,_0x479e82._0x10147f)]);if(!_0x596b55){const _0x12d203=Array[_0x1f1316(_0x479e82._0x5772eb,_0x479e82._0x31ed9b,_0x479e82._0x48b8e8,_0x479e82._0x6bea97)](_0xe1949f['keys']())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0xd582c4['name']+'\x27\x20not\x20found.\x20Available\x20commands:\x20'+_0x12d203,{'name':_0xd582c4[_0x461f1c(0x235,_0x479e82._0x202825,_0x479e82._0x20087f,_0x479e82._0x4a0803)]});}const _0x4ca242=await _0x28d765[_0x461f1c(0x2b6,0x285,0x2dc,0x190)](_0x596b55),_0x4c629a=_0xd582c4[_0x461f1c(0x464,0x48f,0x3a5,0x53a)]??'',_0x15733e=renderCommandInstructions({'instructions':_0x4ca242[_0x461f1c(0x233,0x2de,_0x479e82._0x4cc310,_0x479e82._0x51756c)],'argumentsText':_0x4c629a,'argumentNames':_0x4ca242[_0x461f1c(_0x479e82._0x217a55,_0x479e82._0x336cc9,0x45c,_0x479e82._0x1a6289)]});function _0x461f1c(_0x170f07,_0x3e797c,_0x52d376,_0xdad4e3){return _0x3f73a6(_0x170f07-_0x58decc._0x2dfd02,_0x52d376,_0x52d376-0x11d,_0xdad4e3-_0x58decc._0x4fa170);}return yield createToolOutput(_0x15733e,{'id':_0x4ca242['id'],'name':_0x4ca242[_0x1f1316(-_0x479e82._0x3ceeb5,-_0x479e82._0x62999c,-0x14,_0x479e82._0xd2e861)],'path':_0x596b55['source'][_0x461f1c(_0x479e82._0x58c3eb,_0x479e82._0x2d7d1b,_0x479e82._0x5638ca,_0x479e82._0x49e5b2)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x2fd670,rename as _0x4139db,stat as _0x4bd0a3,writeFile as _0x303aec}from'fs/promises';import*as _0x1192c7 from'path';function _0x1343ee(_0x3c3801,_0x5d0c2b,_0x867222,_0xa597){return _0x1358(_0x3c3801- -0x148,_0x5d0c2b);}function detectEol(_0x4d763a){const _0x38408c={_0x155200:0x3bc,_0x36da51:0x1d6,_0x1e12b5:0x2d2,_0x2a4f87:0x4a,_0x33102b:0x134,_0xc6bd54:0xc8,_0x1722bb:0x2aa,_0x1a1148:0x2a2},_0x324865={_0x100133:0x128},_0x5736df={_0x4e8109:0x105};function _0x2fd3be(_0x3cbdfe,_0x4b34f9,_0x56d9fd,_0x5c4354){return _0x1343ee(_0x5c4354-0x1be,_0x4b34f9,_0x56d9fd-0x159,_0x5c4354-_0x5736df._0x4e8109);}function _0x1084a3(_0x3b909a,_0x440393,_0x2c4b96,_0x31f4d5){return _0x1343ee(_0x440393- -_0x324865._0x100133,_0x3b909a,_0x2c4b96-0x7a,_0x31f4d5-0x4b);}return/\r\n/[_0x2fd3be(_0x38408c._0x155200,_0x38408c._0x36da51,_0x38408c._0x1e12b5,0x2fb)](_0x4d763a['toString'](_0x1084a3(-0x113,-_0x38408c._0x2a4f87,-_0x38408c._0x33102b,_0x38408c._0xc6bd54)))?_0x2fd3be(_0x38408c._0x1722bb,_0x38408c._0x1a1148,0x1aa,0x1fa):'lf';}function normalizeToLf(_0x1ff12b){const _0x415531={_0x57f1b8:0x4e,_0x58aa59:0x61},_0x20113b={_0x214a37:0x1a};function _0xc398c7(_0x3c6db8,_0x17abe5,_0x264f08,_0x474be7){return _0x357fd3(_0x3c6db8-0x13b,_0x17abe5-0x1e7,_0x3c6db8-_0x20113b._0x214a37,_0x264f08);}return _0x1ff12b[_0xc398c7(-_0x415531._0x57f1b8,-0x119,-_0x415531._0x58aa59,-0xf5)](/\r\n/g,'\x0a');}function convertEol(_0x4be9c6,_0x26d384){const _0x23c588={_0x27e534:0x2b2,_0x14c5ab:0x3e,_0x3f8b91:0x18},_0x8e5f98={_0x30b508:0x35,_0x5f4849:0x330},_0x3f7aac={_0x4d73ac:0xb3};function _0x2bc54a(_0x3f2da5,_0x2105b6,_0x160d5e,_0x2ebbf0){return _0x1343ee(_0x2105b6- -_0x3f7aac._0x4d73ac,_0x3f2da5,_0x160d5e-0x110,_0x2ebbf0-0x19f);}function _0x4d8f9c(_0x44369b,_0x28bc69,_0x3374fb,_0x47255d){return _0x357fd3(_0x44369b-_0x8e5f98._0x30b508,_0x28bc69-0x182,_0x28bc69-_0x8e5f98._0x5f4849,_0x44369b);}return _0x26d384===_0x4d8f9c(0x36f,0x367,_0x23c588._0x27e534,0x321)?_0x4be9c6[_0x2bc54a(-0x3d,-0x116,-_0x23c588._0x14c5ab,_0x23c588._0x3f8b91)](/\n/g,'\x0d\x0a'):_0x4be9c6;}async function atomicWrite(_0x14ebc0,_0x264cd8){const _0x9e6748={_0x634a6c:0x16d,_0x4699bf:0x35,_0x51c5e1:0xe5,_0x442ab0:0xf7,_0x36f601:0x435,_0x2b1969:0x123,_0x44629d:0x135,_0x4bb528:0xef},_0x46b610={_0x313116:0x24},_0x16cad0={_0x25c5c3:0x5,_0x16b5ad:0x10b},_0x43e659=_0x1192c7['dirname'](_0x14ebc0),_0x58a77b=_0x1192c7[_0x35445e(-0xd1,-_0x9e6748._0x634a6c,-0xff,-0x52)](_0x43e659,'.tmp.'+_0x1192c7[_0x2ec465(0x450,0x374,0x45f,0x518)](_0x14ebc0)+'.'+Date[_0x35445e(-0x7f,-_0x9e6748._0x4699bf,-_0x9e6748._0x51c5e1,-_0x9e6748._0x442ab0)]()+'.'+Math[_0x2ec465(0x42d,0x539,0x478,_0x9e6748._0x36f601)]()[_0x35445e(-0xb,_0x9e6748._0x2b1969,0xe0,_0x9e6748._0x44629d)](0x24)[_0x35445e(0x61,-0x75,_0x9e6748._0x4bb528,0x107)](0x2));await _0x303aec(_0x58a77b,_0x264cd8);function _0x35445e(_0x24e1eb,_0x59f60a,_0x46f7be,_0x4193d1){return _0x357fd3(_0x24e1eb-0xe1,_0x59f60a-_0x16cad0._0x25c5c3,_0x24e1eb- -_0x16cad0._0x16b5ad,_0x4193d1);}function _0x2ec465(_0x4e9ebd,_0x2a5bf9,_0x5a8c10,_0xa722f0){return _0x1343ee(_0x5a8c10-0x454,_0xa722f0,_0x5a8c10-0x127,_0xa722f0-_0x46b610._0x313116);}await _0x4139db(_0x58a77b,_0x14ebc0);}function sha256(_0x5ec71d){const _0x552382={_0x44e6f4:0x52b,_0x497fa0:0x572,_0x56cced:0x244,_0x2ace89:0x3a0,_0x79b23d:0xf7,_0x5ede8d:0x15},_0x11d325={_0x445a78:0x1e4,_0x5eb139:0x388},_0x2cbbe0={_0x5772c3:0xa5};function _0x4bf512(_0xb32334,_0x14db39,_0x7b598b,_0x5c466a){return _0x357fd3(_0xb32334-0xf,_0x14db39-_0x2cbbe0._0x5772c3,_0x14db39- -0x3f,_0xb32334);}function _0xfe9efe(_0x4d7027,_0x56a718,_0x41e795,_0x1ba1ac){return _0x357fd3(_0x4d7027-_0x11d325._0x445a78,_0x56a718-0x1e7,_0x56a718-_0x11d325._0x5eb139,_0x4d7027);}return createHash(_0xfe9efe(_0x552382._0x44e6f4,0x4bb,_0x552382._0x497fa0,0x5d8))[_0xfe9efe(_0x552382._0x56cced,0x34b,0x36f,_0x552382._0x2ace89)](_0x5ec71d)['digest'](_0x4bf512(-_0x552382._0x79b23d,-0x2a,_0x552382._0x5ede8d,-0xeb));}function countLines(_0x5650f2){const _0x5c292b={_0x42b63b:0x27f,_0x5e2c4a:0x3ef,_0x4a5494:0x2cc},_0x37cb47={_0x56532d:0x356};function _0x3bb0dc(_0x16dddf,_0x3a54bb,_0x1e35ed,_0x21a2df){return _0x357fd3(_0x16dddf-0x11a,_0x3a54bb-0xe4,_0x1e35ed-0x234,_0x16dddf);}function _0x5f228e(_0x32ff9a,_0x455181,_0x171021,_0x5e0ad8){return _0x357fd3(_0x32ff9a-0x1c7,_0x455181-0x117,_0x5e0ad8-_0x37cb47._0x56532d,_0x32ff9a);}const _0x2ff48e=_0x5650f2[_0x5f228e(0x3c1,0x3a5,_0x5c292b._0x42b63b,0x2ee)](/\n$/,'');return _0x2ff48e['length']===0x0?0x0:_0x2ff48e[_0x5f228e(0x2c7,0x1f5,_0x5c292b._0x5e2c4a,_0x5c292b._0x4a5494)]('\x0a')['length'];}function calculateLineNumbers(_0x229d7e,_0x2c8491,_0x20a273,_0xc3b1a6){const _0x39d250={_0x3394d3:0x420,_0x4df4ed:0x52f,_0x2b5558:0x371},_0x1ab826={_0x16b6b5:0x1d2,_0x5bbc55:0x4c,_0x385547:0x2ce},_0x212ed9={_0x583716:0x30d,_0x117207:0x65,_0x35455f:0x161};function _0x1163d6(_0x49a4d4,_0x5f21ea,_0x312ff7,_0x297d7e){return _0x1343ee(_0x297d7e-_0x212ed9._0x583716,_0x49a4d4,_0x312ff7-_0x212ed9._0x117207,_0x297d7e-_0x212ed9._0x35455f);}const _0x5b6f6b=_0x229d7e[_0x1163d6(0x59a,_0x39d250._0x3394d3,_0x39d250._0x4df4ed,0x47e)](0x0,_0xc3b1a6)[_0x3ee8cc(_0x39d250._0x2b5558,0x2a3,0x226,0x244)]('\x0a')['length'];function _0x3ee8cc(_0x25490c,_0x4eca66,_0x31a8a9,_0x2c6cd2){return _0x357fd3(_0x25490c-_0x1ab826._0x16b6b5,_0x4eca66-_0x1ab826._0x5bbc55,_0x2c6cd2-_0x1ab826._0x385547,_0x25490c);}const _0x11725e=countLines(_0x2c8491),_0x599bc3=countLines(_0x20a273);return{'oldStartLine':_0x5b6f6b,'oldEndLine':_0x5b6f6b+_0x11725e-0x1,'newStartLine':_0x5b6f6b,'newEndLine':_0x5b6f6b+_0x599bc3-0x1,'oldLineCount':_0x11725e,'newLineCount':_0x599bc3};}function createFileEditTool(_0xca634d={}){const _0xef7af8={_0x40012a:0x36e,_0x20c328:0x183,_0x636281:0x22a,_0x2ded2c:0x339,_0x15d76c:0x17b,_0x589d9c:0x2c9,_0x20ae36:0x5a,_0x9caf3e:0xeb,_0x17caf0:0x33,_0x5936e5:0x313,_0x1d1e62:0x216,_0x860a6d:0x30f,_0x591be7:0x2db,_0xe43d93:0x337,_0x586512:0x322,_0xf7e187:0x22f,_0x326b6e:0x30e,_0x1eab74:0x211,_0x2ab20c:0x20e,_0x3a16f0:0xd6,_0x1c2bf0:0x168,_0x12527f:0x14f,_0x531351:0x2ad,_0x4e77cc:0x136,_0x1256a9:0x16c,_0x5ce487:0x14a,_0x1aeedf:0x11a,_0x4e1db5:0x101},_0x443d65={_0x5ca46f:0x3da,_0x207849:0x363,_0x4241db:0x259,_0x4dad74:0x11e,_0x9ba17a:0x258,_0x3be7b1:0x381,_0x16bca5:0x4ed,_0x5c217e:0x39e,_0x1ff60d:0x1d,_0x2e7555:0x17b,_0x557a4f:0xd8,_0x58c01e:0x1f8,_0x61c770:0x2cf,_0x19458a:0x20a,_0xbc556:0x448,_0xf5c2ec:0xd0,_0x5cb21b:0x17e,_0x4091cf:0x1b6,_0x321036:0x2cf,_0x4faabb:0x2aa,_0x40c68d:0x212,_0x18eab1:0x328,_0x4f9fb3:0x349,_0x5035b3:0x3d4,_0x3ac184:0x21b,_0x1b06e8:0x33c,_0x117db7:0x21d,_0x37cd60:0x2a2,_0x314cf0:0x3e0,_0x52f0e0:0x410,_0x4c40f3:0x532,_0x3a9b39:0x176,_0x279642:0x2d8,_0x246f20:0x21b,_0x357aaa:0x18a,_0x5222f0:0x18e,_0x3cdbbc:0x13a,_0x226c70:0xcb,_0x44f75f:0x1e5,_0x14960b:0x16d,_0x16e31a:0x1e5,_0x4aac37:0x228,_0x321024:0x2c0,_0x43d0e9:0x34f,_0x5cc0db:0x26f,_0x3a9267:0x132,_0x586eaf:0x14b,_0x37653f:0x27e,_0x1a113b:0x150},_0x50e8ff={_0x5e0bd1:0x184,_0x2a0831:0x64},_0x2cd9ce={_0x3b0711:0x9c},_0x4d861d={_0x2feab2:0x151,_0x3da771:0xcd},_0xbc707d={_0x290601:0x37},_0x4ed5b2=_0x1192c7[_0x65ed95(_0xef7af8._0x40012a,_0xef7af8._0x20c328,0x377,_0xef7af8._0x636281)](_0xca634d[_0x65ed95(_0xef7af8._0x2ded2c,_0xef7af8._0x15d76c,0x2f8,_0xef7af8._0x589d9c)]??process[_0x59bdc4(_0xef7af8._0x20ae36,-0x60,-_0xef7af8._0x9caf3e,-_0xef7af8._0x17caf0)]()),_0x1a7c5f=(_0xca634d[_0x59bdc4(-_0xef7af8._0x5936e5,-0x11e,-_0xef7af8._0x1d1e62,-0x134)]??[])[_0x59bdc4(-0x330,-_0xef7af8._0x860a6d,-0x1ea,-0x2a2)](_0x52acba=>_0x1192c7[_0x65ed95(0x147,0x310,0x1f6,0x22a)](_0x52acba)),_0xe69bd7=_0xca634d[_0x59bdc4(-_0xef7af8._0x591be7,-0xca,-0x1f2,-0x2a6)]??'FileEdit';function _0x59bdc4(_0x29c0bc,_0x2bf805,_0x4c9a55,_0x2a39b9){return _0x1343ee(_0x4c9a55- -0x170,_0x2bf805,_0x4c9a55-0x12d,_0x2a39b9-_0xbc707d._0x290601);}function _0x65ed95(_0x560dbf,_0x1cd651,_0x25f346,_0x2daec1){return _0x1343ee(_0x2daec1-0x1c2,_0x25f346,_0x25f346-_0x4d861d._0x2feab2,_0x2daec1-_0x4d861d._0x3da771);}return defineTool({'name':_0xe69bd7,'description':_0x65ed95(_0xef7af8._0xe43d93,0x124,_0xef7af8._0x586512,_0xef7af8._0xf7e187),'inputSchema':{'type':_0x65ed95(0x122,_0xef7af8._0x326b6e,_0xef7af8._0x1eab74,_0xef7af8._0x2ab20c),'properties':{'filePath':{'type':_0x59bdc4(-0x14,-0x8a,-_0xef7af8._0x3a16f0,-_0xef7af8._0x1c2bf0)},'oldText':{'type':_0x65ed95(_0xef7af8._0x12527f,0x1f3,0x1e3,0x25c)},'newText':{'type':'string'},'dryRun':{'type':_0x65ed95(0x2a6,0x430,0x2f4,0x2ee)}},'required':[_0x65ed95(_0xef7af8._0x531351,0x84,_0xef7af8._0x4e77cc,_0xef7af8._0x1256a9),_0x59bdc4(-_0xef7af8._0x5ce487,-0x155,-0x151,-0x24b),_0x59bdc4(_0xef7af8._0x1aeedf,-_0xef7af8._0x4e1db5,-0x30,-0x78)]},async *'execute'(_0x5bb20e){const _0x444a58=resolveAllowedPath(_0x4ed5b2,_0x1a7c5f,_0x5bb20e[_0xaa83a9(0x254,0x109,0x108,0x34)]);await assertWorkspaceFile(_0x444a58);const _0x28ac73=await _0x4bd0a3(_0x444a58),_0x4ffe8f=await _0x2fd670(_0x444a58),_0x135571=detectEol(_0x4ffe8f),_0x573078=normalizeToLf(_0x4ffe8f[_0x2fe395(0x3a9,_0x443d65._0x5ca46f,_0x443d65._0x207849,0x364)]('utf8')),_0x7dd6d5=normalizeToLf(_0x5bb20e[_0xaa83a9(_0x443d65._0x4241db,_0x443d65._0x4dad74,0x17d,_0x443d65._0x9ba17a)]),_0x2150c7=normalizeToLf(_0x5bb20e[_0x2fe395(_0x443d65._0x3be7b1,_0x443d65._0x16bca5,_0x443d65._0x5c217e,0x319)]);function _0x2fe395(_0x498c76,_0x54f391,_0x20ac4e,_0x10193a){return _0x65ed95(_0x498c76-0xdd,_0x54f391-0x12e,_0x10193a,_0x20ac4e-_0x2cd9ce._0x3b0711);}const _0x55e5f6=_0x573078[_0xaa83a9(_0x443d65._0x1ff60d,_0x443d65._0x2e7555,_0x443d65._0x557a4f,_0x443d65._0x58c01e)](_0x7dd6d5);if(_0x55e5f6===-0x1){const _0x14d203=_0x7dd6d5[_0xaa83a9(0x3d2,0x2c1,_0x443d65._0x61c770,0x210)](0x0,0x64)[_0x2fe395(0x244,0x2e1,0x1fb,_0x443d65._0x19458a)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x2fe395(0x407,0x2ba,0x3f5,_0x443d65._0xbc556)+_0x14d203+(_0x7dd6d5[_0xaa83a9(_0x443d65._0xf5c2ec,0x10b,_0x443d65._0x5cb21b,0x1be)]>0x64?'...':'')+'\x22',{'filePath':_0x5bb20e['filePath']});}const _0x5b7828=_0x573078[_0xaa83a9(0x1ff,_0x443d65._0x4091cf,_0x443d65._0x321036,_0x443d65._0x4091cf)](0x0,_0x55e5f6)+_0x2150c7+_0x573078[_0xaa83a9(0x212,_0x443d65._0x4faabb,0x2cf,0x339)](_0x55e5f6+_0x7dd6d5['length']),_0x128ef4=convertEol(_0x5b7828,_0x135571),_0x2f1f32=Buffer[_0x2fe395(0x40f,_0x443d65._0x40c68d,_0x443d65._0x18eab1,_0x443d65._0x4f9fb3)](_0x128ef4,_0x2fe395(_0x443d65._0x5035b3,_0x443d65._0x3ac184,_0x443d65._0x1b06e8,0x2bb)),_0x48969d=sha256(_0x4ffe8f),_0xc1d77d=sha256(_0x2f1f32),_0x1eb0fc=_0x48969d===_0xc1d77d;function _0xaa83a9(_0x11fd73,_0x6b7a2c,_0x160a98,_0x2b9d73){return _0x65ed95(_0x11fd73-0x81,_0x6b7a2c-_0x50e8ff._0x5e0bd1,_0x2b9d73,_0x160a98- -_0x50e8ff._0x2a0831);}const _0x35de80=_0x5bb20e[_0xaa83a9(_0x443d65._0x117db7,0x252,_0x443d65._0x37cd60,0x239)]??![];return!_0x35de80&&!_0x1eb0fc&&await atomicWrite(_0x444a58,_0x2f1f32),yield createToolOutput(_0x1eb0fc?_0x2fe395(0x402,_0x443d65._0x314cf0,_0x443d65._0x52f0e0,_0x443d65._0x4c40f3):_0x35de80?_0x2fe395(0x1a1,0x185,0x264,_0x443d65._0x3a9b39):_0xaa83a9(_0x443d65._0x279642,0x215,_0x443d65._0x246f20,_0x443d65._0x357aaa),{'filePath':_0x5bb20e[_0x2fe395(0x2b7,0xd2,0x208,_0x443d65._0x5222f0)],'resolvedPath':_0x444a58,'created':_0x28ac73[_0xaa83a9(_0x443d65._0x3cdbbc,_0x443d65._0x226c70,_0x443d65._0x44f75f,0x20d)]['toISOString'](),'modified':_0x28ac73[_0x2fe395(_0x443d65._0x14960b,_0x443d65._0x16e31a,0x297,_0x443d65._0x4aac37)][_0xaa83a9(_0x443d65._0x321024,_0x443d65._0x43d0e9,_0x443d65._0x5cc0db,_0x443d65._0x3a9267)](),'size':_0x28ac73[_0x2fe395(0x36c,0x2b4,0x3c1,0x346)],'eol':_0x135571,'oldTextLength':_0x7dd6d5[_0xaa83a9(0x92,_0x443d65._0x586eaf,_0x443d65._0x5cb21b,0x18f)],'newTextLength':_0x2150c7[_0x2fe395(0x2d0,0x320,_0x443d65._0x37653f,0x1db)],'bytesWritten':_0x1eb0fc||_0x35de80?0x0:_0x2f1f32[_0xaa83a9(0x272,0x24b,0x17e,_0x443d65._0x1a113b)],'beforeSha':_0x48969d,'afterSha':_0xc1d77d,'dryRun':_0x35de80,'noChange':_0x1eb0fc,'lineNumbers':calculateLineNumbers(_0x573078,_0x7dd6d5,_0x2150c7,_0x55e5f6)}),void 0x0;}});}import{mkdir as _0x2f56b0,rename as _0x84194b,stat as _0x589c7f,writeFile as _0x5d8be8}from'fs/promises';import*as _0x4e1f2e from'path';async function atomicWrite2(_0x22386e,_0x1cc145){const _0x155223={_0xf39b29:0x5f4,_0x12e29b:0x678,_0x498ac2:0x56d,_0x3da115:0x5c3,_0x400768:0x470,_0x41ef4f:0x50b,_0x1d9bee:0x44b,_0x5eab0e:0x3dc,_0x1f9786:0x3e6,_0x5899f6:0x2cd,_0x4207fa:0x3c2},_0x2c53d1={_0x1824e0:0x67,_0x30b738:0x445},_0x415537={_0x4641bc:0xe},_0x1900a2=_0x4e1f2e[_0x82aa59(0x5a9,0x64e,_0x155223._0xf39b29,_0x155223._0x12e29b)](_0x22386e);await _0x2f56b0(_0x1900a2,{'recursive':!![]});const _0x4196aa=_0x4e1f2e[_0x82aa59(_0x155223._0x498ac2,_0x155223._0x3da115,0x47f,0x589)](_0x1900a2,_0x3bf9ce(0x55f,0x43a,0x364,_0x155223._0x400768)+_0x4e1f2e[_0x82aa59(_0x155223._0x41ef4f,0x369,_0x155223._0x1d9bee,_0x155223._0x5eab0e)](_0x22386e)+'.'+Date['now']()+'.'+Math[_0x3bf9ce(0x514,_0x155223._0x1f9786,_0x155223._0x5899f6,_0x155223._0x4207fa)]()['toString'](0x24)[_0x3bf9ce(0x41b,0x533,0x40d,0x575)](0x2));await _0x5d8be8(_0x4196aa,_0x1cc145);function _0x3bf9ce(_0x2fde32,_0x28fd3b,_0x330e16,_0x39e9d3){return _0x1343ee(_0x28fd3b-0x3c2,_0x2fde32,_0x330e16-_0x415537._0x4641bc,_0x39e9d3-0x88);}function _0x82aa59(_0x373397,_0x22e904,_0x498c5a,_0x510313){return _0x357fd3(_0x373397-_0x2c53d1._0x1824e0,_0x22e904-0x1f,_0x498c5a-_0x2c53d1._0x30b738,_0x373397);}await _0x84194b(_0x4196aa,_0x22386e);}function createFileNewTool(_0x1cd24b={}){const _0x5ab836={_0x1d0c72:0xb5,_0x4fad2a:0x2c6,_0x1c4aea:0x197,_0x248ee4:0x69,_0x1234ff:0x4ce,_0x16f850:0x5c9,_0x52d250:0x5b3,_0x28644f:0x46f,_0x4c77fd:0x57b,_0x47fc06:0x465,_0x26cf71:0x95,_0x2cc401:0xa1,_0x38648c:0x34d,_0x198532:0x25f,_0x3df492:0x6b,_0x243cee:0x299,_0x383399:0x15d,_0x3e9e09:0x77,_0xb4256b:0x53,_0xc79ed7:0x386,_0xd4657f:0x2ef,_0x335154:0x7b,_0x4a1d61:0x1c9,_0x2557d4:0xd9,_0x474b6f:0x17b,_0x318488:0x349,_0x55b926:0x3dc},_0x2c4250={_0x32fd25:0x558,_0x568aeb:0x4a9,_0x45f32e:0x3a6,_0x355c93:0x6,_0x29b349:0x2d,_0x1c947b:0x13c,_0x2d3e8d:0x588,_0x5613e8:0xb6,_0x2e5a3e:0x294,_0x19446c:0xc3,_0x1282fc:0x60b,_0xb8eec6:0x4c8},_0x488ad2={_0x227da1:0x133,_0x3417e4:0x48},_0xe4ab74={_0x3f70f9:0x145,_0x428a0f:0x134},_0x855e18={_0x3250cf:0x3c7,_0x5648b5:0x67},_0x224d55=_0x4e1f2e[_0xbbf8d8(_0x5ab836._0x1d0c72,_0x5ab836._0x4fad2a,_0x5ab836._0x1c4aea,_0x5ab836._0x248ee4)](_0x1cd24b[_0x2987df(_0x5ab836._0x1234ff,_0x5ab836._0x16f850,_0x5ab836._0x52d250,_0x5ab836._0x28644f)]??process[_0x2987df(0x44c,_0x5ab836._0x4c77fd,_0x5ab836._0x47fc06,0x452)]());function _0x2987df(_0x564d01,_0xc3636f,_0x1cd5ce,_0x4bb0d1){return _0x1343ee(_0x564d01-_0x855e18._0x3250cf,_0xc3636f,_0x1cd5ce-0x183,_0x4bb0d1-_0x855e18._0x5648b5);}const _0x303feb=(_0x1cd24b[_0xbbf8d8(-_0x5ab836._0x26cf71,-0x45,0x89,_0x5ab836._0x2cc401)]??[])[_0x2987df(_0x5ab836._0x38648c,0x3a7,_0x5ab836._0x198532,0x34d)](_0x56a937=>_0x4e1f2e[_0x2987df(0x42f,0x395,0x3bc,0x4fa)](_0x56a937)),_0x293004=_0x1cd24b[_0xbbf8d8(-0x97,-_0x5ab836._0x3df492,0xad,0x78)]??_0xbbf8d8(0x269,_0x5ab836._0x243cee,_0x5ab836._0x383399,0x1b3);function _0xbbf8d8(_0x3b9cc7,_0x1ceeed,_0x4598ff,_0x1ebc10){return _0x357fd3(_0x3b9cc7-0x142,_0x1ceeed-_0xe4ab74._0x3f70f9,_0x4598ff-_0xe4ab74._0x428a0f,_0x1ceeed);}return defineTool({'name':_0x293004,'description':_0xbbf8d8(-_0x5ab836._0x3e9e09,-_0x5ab836._0xb4256b,0xc0,0xeb),'inputSchema':{'type':_0x2987df(0x413,0x43c,_0x5ab836._0xc79ed7,_0x5ab836._0xd4657f),'properties':{'filePath':{'type':'string'},'content':{'type':_0xbbf8d8(_0x5ab836._0x335154,0x1f5,_0x5ab836._0x4a1d61,0x13e)}},'required':[_0xbbf8d8(0x1cc,0x56,_0x5ab836._0x2557d4,_0x5ab836._0x474b6f),_0xbbf8d8(_0x5ab836._0x318488,0x1f6,0x300,_0x5ab836._0x55b926)]},async *'execute'(_0x3fe9be){const _0x519151={_0x58f31f:0x1ae},_0x19a010=resolveAllowedPath(_0x224d55,_0x303feb,_0x3fe9be[_0x4eede4(0x4a4,_0x2c4250._0x32fd25,0x43a,_0x2c4250._0x568aeb)]),_0x5c3cc6=await _0x589c7f(_0x19a010)[_0x2d1914(-0x266,-0x140,-0x240,-0x1b7)](()=>!![])[_0x2d1914(-0x1f8,-_0x2c4250._0x45f32e,-0x276,-0x1d7)](()=>![]),_0x222869=Buffer['from'](_0x3fe9be[_0x2d1914(-0x104,-_0x2c4250._0x355c93,-_0x2c4250._0x29b349,-_0x2c4250._0x1c947b)],'utf8');await atomicWrite2(_0x19a010,_0x222869);function _0x2d1914(_0x2b82fe,_0x3a41ff,_0x5dba07,_0xdf5093){return _0x2987df(_0x5dba07- -0x5c5,_0xdf5093,_0x5dba07-_0x519151._0x58f31f,_0xdf5093-0xf0);}function _0x4eede4(_0x5cc122,_0x422ef4,_0x377654,_0x5baa90){return _0x2987df(_0x5cc122-_0x488ad2._0x227da1,_0x5baa90,_0x377654-_0x488ad2._0x3417e4,_0x5baa90-0x45);}return yield createToolOutput('File\x20written\x20at\x20'+_0x3fe9be[_0x4eede4(0x4a4,0x588,_0x2c4250._0x2d3e8d,0x3d8)]+'.',{'filePath':_0x3fe9be['filePath'],'resolvedPath':_0x19a010,'bytes':_0x222869['length'],'lines':_0x3fe9be['content']['split'](/\r?\n/)[_0x2d1914(-_0x2c4250._0x5613e8,-_0x2c4250._0x2e5a3e,-0x1de,-_0x2c4250._0x19446c)],'created':new Date()[_0x4eede4(_0x2c4250._0x1282fc,_0x2c4250._0xb8eec6,0x4ed,0x6a8)](),'overwritten':_0x5c3cc6}),void 0x0;}});}import{readFile as _0x43cdd8,stat as _0x812dbd}from'fs/promises';import*as _0x559911 from'path';function stripUtfBom(_0x293c54){const _0x33601a={_0x2bcd51:0x3d2,_0x4ca4d5:0x1f9,_0x375321:0x2d4,_0x270f4e:0x30},_0x2c312d={_0x40d082:0x407};function _0x5aaf7d(_0x36ed14,_0x25b455,_0x1a8741,_0x49ee02){return _0x1343ee(_0x25b455-_0x2c312d._0x40d082,_0x49ee02,_0x1a8741-0xaa,_0x49ee02-0x30);}function _0x54f19d(_0xb4f294,_0x305b45,_0x65f18e,_0x445560){return _0x357fd3(_0xb4f294-0x151,_0x305b45-0x1a9,_0x305b45- -0x23a,_0x65f18e);}return _0x293c54[_0x54f19d(-_0x33601a._0x2bcd51,-0x292,-_0x33601a._0x4ca4d5,-_0x33601a._0x375321)](0x0)===0xfeff?_0x293c54[_0x54f19d(-0xf6,-0xce,_0x33601a._0x270f4e,0x67)](0x1):_0x293c54;}function clampLine(_0x25ca53,_0x1c201b){const _0x505430={_0x181cf2:0x2e4,_0x487781:0x507,_0x15ccc8:0x3fa,_0x12a5ba:0x23c,_0x24da90:0x25b,_0x2861c0:0x390,_0x43deb0:0x482,_0x38e4c7:0x349,_0x120ac1:0x2c9,_0x89e0cb:0x184},_0x1a2534={_0x15a46d:0x331,_0xf5365c:0x7b};function _0xe22f40(_0x5cce37,_0xb6e26e,_0x372e20,_0x4e981f){return _0x1343ee(_0x372e20-0x342,_0x5cce37,_0x372e20-0x105,_0x4e981f-0x53);}function _0x54023e(_0x6805f5,_0x2f5c30,_0xfa3b83,_0x5e380c){return _0x1343ee(_0x2f5c30-_0x1a2534._0x15a46d,_0x5e380c,_0xfa3b83-_0x1a2534._0xf5365c,_0x5e380c-0x89);}if(!Number[_0xe22f40(_0x505430._0x181cf2,_0x505430._0x487781,_0x505430._0x15ccc8,0x2ca)](_0x25ca53))return 0x1;return Math[_0x54023e(0x427,0x30f,_0x505430._0x12a5ba,_0x505430._0x24da90)](0x1,Math[_0xe22f40(_0x505430._0x2861c0,_0x505430._0x43deb0,_0x505430._0x38e4c7,0x3d6)](Math[_0x54023e(0x274,_0x505430._0x120ac1,_0x505430._0x89e0cb,0x318)](_0x25ca53),_0x1c201b));}function createFileReadTool(_0x3fa5cc={}){const _0x47783f={_0xdccea1:0x162,_0x53574b:0x1fe,_0x1f13cf:0x162,_0x2f29cd:0xc0,_0x426158:0xfd,_0x59e4e4:0x18,_0x25325e:0x183,_0x3c89c6:0x17e,_0x539ec9:0x66,_0x21db96:0x43,_0x526dca:0xc5,_0x3c582e:0x14a,_0xbe4c79:0x26c,_0x14f766:0xfc,_0x222e90:0xd9,_0x21c5c5:0x171,_0x2ae0be:0x352,_0x7047a0:0x225,_0x481644:0x4e,_0x2103d8:0x6e,_0x828323:0x14},_0x5a0668={_0x28c824:0xbf,_0x17a19a:0x7,_0x5a95dd:0x5e,_0x19aac5:0xe4,_0x1bfc5c:0xb8,_0xd971f4:0xde,_0x792418:0x111,_0x3b592b:0xbc,_0x332bd5:0x242,_0x17cf03:0x1ee,_0x4fb9e9:0x2fe,_0x4ac248:0x1a2,_0x349d76:0xac,_0x4b1198:0x54,_0x7b8b47:0x2d9,_0x15cbe8:0x197,_0x118f69:0xc,_0x4b67f2:0x273,_0x52e7ce:0x226,_0x500933:0x2e5,_0x53fed7:0x91,_0x2fee4f:0x9c,_0x4a685a:0x73,_0x4feb09:0x35,_0x2001f3:0x2e,_0x3392aa:0x16f,_0x460781:0x181,_0x4578ad:0x252,_0x22d100:0x258,_0xe434e9:0x339,_0x169bdb:0xab,_0x1245c7:0x117,_0x16755e:0x4f,_0xb3b7fd:0xee,_0x4df6c7:0x179,_0x22f7af:0x20,_0x4c1b56:0x1a5},_0x566d4e={_0x1e99ba:0x1eb,_0xad7322:0x191},_0x28de58={_0x1b8b48:0x151,_0x3a83f5:0x7e},_0x1f3333=_0x559911['resolve'](_0x3fa5cc['defaultCwd']??process[_0x533ca0(_0x47783f._0xdccea1,_0x47783f._0x53574b,_0x47783f._0x1f13cf,0x251)]()),_0x2dcb92=(_0x3fa5cc[_0x533ca0(-_0x47783f._0x2f29cd,_0x47783f._0x426158,0x37,-_0x47783f._0x59e4e4)]??[])[_0x533ca0(0x154,_0x47783f._0x25325e,0x63,0xd9)](_0x27eace=>_0x559911[_0x533ca0(0xa0,0x108,0x145,0x28c)](_0x27eace));function _0x533ca0(_0x1bb070,_0x1b8cd7,_0x564c73,_0x4a6541){return _0x1343ee(_0x564c73-0xdd,_0x1bb070,_0x564c73-_0x28de58._0x1b8b48,_0x4a6541-_0x28de58._0x3a83f5);}function _0x23b704(_0x1c6cbd,_0x2c2280,_0x438ab1,_0x48ffa0){return _0x357fd3(_0x1c6cbd-0xdf,_0x2c2280-_0x566d4e._0x1e99ba,_0x1c6cbd- -_0x566d4e._0xad7322,_0x438ab1);}const _0x493f1e=_0x3fa5cc[_0x533ca0(0x7,_0x47783f._0x3c89c6,0x5b,0x43)]??'FileRead';return defineTool({'name':_0x493f1e,'description':_0x23b704(-_0x47783f._0x539ec9,-0x36,-_0x47783f._0x21db96,_0x47783f._0x526dca),'inputSchema':{'type':_0x23b704(-_0x47783f._0x3c582e,-0x191,-0x57,-_0x47783f._0xbe4c79),'properties':{'path':{'type':_0x23b704(-_0x47783f._0x14f766,-_0x47783f._0x222e90,-0x12e,-0x10b)},'lineStart':{'type':_0x533ca0(_0x47783f._0x21c5c5,_0x47783f._0x2ae0be,_0x47783f._0x7047a0,0x1dd)},'lineEnd':{'type':_0x23b704(-_0x47783f._0x481644,_0x47783f._0x2103d8,0xbd,_0x47783f._0x828323)}},'required':['path']},async *'execute'(_0x4648de){const _0x58e460={_0x2b94f0:0x32},_0x4bd626=resolveAllowedPath(_0x1f3333,_0x2dcb92,_0x4648de[_0x21e085(_0x5a0668._0x28c824,-_0x5a0668._0x17a19a,-_0x5a0668._0x5a95dd,-0x54)]);await assertWorkspaceFile(_0x4bd626);const _0x4e7a48=await _0x812dbd(_0x4bd626),_0x25995=await _0x43cdd8(_0x4bd626);function _0x21e085(_0x19e709,_0x2cd8df,_0x1582cf,_0x4e6ca4){return _0x23b704(_0x4e6ca4-0x141,_0x2cd8df-0x87,_0x2cd8df,_0x4e6ca4-0x82);}if(isProbablyBinary(_0x25995))throw new ToolExecutionError(_0x21e085(-_0x5a0668._0x19aac5,-_0x5a0668._0x1bfc5c,-0x7b,0x6b)+_0x4648de[_0x5f501b(0xcd,_0x5a0668._0xd971f4,_0x5a0668._0x792418,_0x5a0668._0x3b592b)],{'path':_0x4648de['path']});function _0x5f501b(_0x5c7cd5,_0x35b063,_0x44138d,_0x4a54a2){return _0x23b704(_0x44138d-0x2a6,_0x35b063-_0x58e460._0x2b94f0,_0x4a54a2,_0x4a54a2-0x186);}let _0x1448b4=_0x25995['toString'](_0x5f501b(0x2ca,_0x5a0668._0x332bd5,_0x5a0668._0x17cf03,_0x5a0668._0x4fb9e9));const _0x55eab0=_0x1448b4[_0x21e085(0x50,-_0x5a0668._0x4ac248,-0x1d,-0xa8)](0x0)===0xfeff;_0x1448b4=stripUtfBom(_0x1448b4);const _0x5ac73c=_0x1448b4['split'](/\r?\n/),_0x2c977c={'path':_0x4648de[_0x21e085(-0x89,0xb7,-_0x5a0668._0x349d76,-_0x5a0668._0x4b1198)],'resolvedPath':_0x4bd626,'created':_0x4e7a48[_0x5f501b(_0x5a0668._0x7b8b47,0x107,_0x5a0668._0x15cbe8,0x223)]['toISOString'](),'modified':_0x4e7a48[_0x5f501b(0x268,_0x5a0668._0x118f69,0x149,0x62)]['toISOString'](),'size':_0x4e7a48[_0x5f501b(0x2c8,0x376,_0x5a0668._0x4b67f2,0x34f)],'encoding':_0x5f501b(_0x5a0668._0x52e7ce,_0x5a0668._0x500933,_0x5a0668._0x17cf03,0xf4),'bomStripped':_0x55eab0,'truncated':![],'totalLines':_0x5ac73c[_0x21e085(_0x5a0668._0x53fed7,_0x5a0668._0x2fee4f,_0x5a0668._0x4a685a,-_0x5a0668._0x4feb09)]};if(_0x4648de[_0x5f501b(_0x5a0668._0x2001f3,0x244,_0x5a0668._0x3392aa,_0x5a0668._0x460781)]!==void 0x0||_0x4648de[_0x21e085(0x1e7,_0x5a0668._0x4578ad,_0x5a0668._0x22d100,0x15b)]!==void 0x0){const _0x241b40=clampLine(_0x4648de[_0x21e085(0xf7,-_0x5a0668._0x17a19a,-0x85,0xa)]??0x1,_0x5ac73c['length']),_0x33fb1c=clampLine(_0x4648de[_0x5f501b(_0x5a0668._0xe434e9,0x1b8,0x2c0,0x197)]??_0x5ac73c['length'],_0x5ac73c['length']),_0x419ec8=Math[_0x5f501b(-0x2f,_0x5a0668._0x169bdb,_0x5a0668._0x1245c7,0x15)](_0x241b40,_0x33fb1c),_0x1804a9=Math[_0x5f501b(0x1fd,-_0x5a0668._0x16755e,_0x5a0668._0xb3b7fd,0x182)](_0x241b40,_0x33fb1c),_0x1cb5ac=_0x5ac73c[_0x5f501b(_0x5a0668._0x4df6c7,0x1d7,0x281,0x161)](_0x419ec8-0x1,_0x1804a9)['map']((_0xf38eda,_0x13b98d)=>_0x419ec8+_0x13b98d+'|'+_0xf38eda)[_0x21e085(0xc7,-_0x5a0668._0x22f7af,-0x7e,-0x16)]('\x0a');return yield createToolOutput(_0x1cb5ac,{..._0x2c977c,'lineRange':{'lineStart':_0x419ec8,'lineEnd':_0x1804a9,'linesTotal':_0x5ac73c[_0x5f501b(0x20d,_0x5a0668._0x4c1b56,0x130,0x70)]}}),void 0x0;}return yield createToolOutput(_0x1448b4,_0x2c977c),void 0x0;}});}import{stat as _0x559b94}from'fs/promises';import*as _0x1e0b4a from'path';import{execSync,spawn as _0x6da36d}from'child_process';import{existsSync}from'fs';import{stat as _0x4c6efb}from'fs/promises';import*as _0x3d4a1a from'os';import*as _0x168a63 from'path';import{rgPath as _0x48fb7f}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0xf173e={_0x31063c:0x39f,_0x330394:0x434,_0x3fbff5:0x3ad,_0x13e996:0x4ca,_0x2ee67a:0x40f,_0x4aef:0x405,_0x571fbb:0x1a1,_0x5ce1ac:0x1b,_0x28fa44:0x3f5,_0x3beca2:0x529,_0x5ee4b1:0x7c,_0x143ee0:0x112,_0x338ce8:0x241,_0x1f957a:0x37,_0x589f4f:0xb1,_0x414830:0x6f,_0x2ad324:0x103,_0x46a15e:0xbb,_0x2bc076:0x2,_0x5bf1c0:0x126,_0x5179c9:0x108,_0x32be2d:0x156,_0x4169b2:0xd7,_0x325418:0x10b,_0x561e10:0x54,_0x279a1d:0x2e0,_0x3f8080:0x1f1,_0x5169ce:0x352,_0x51c27a:0x445,_0x5d0dbe:0x331,_0x3c7680:0x367,_0x54b9e7:0x3b5,_0x2a8cbe:0xc1,_0x7429:0x3e7,_0x585f9d:0x356,_0x306f2f:0x2dd,_0x296888:0x343,_0x463d1f:0x294,_0x29c4cb:0x3e0,_0x1a6dc:0x1aa,_0x1a2d48:0x1a3,_0x71f3d2:0x225,_0x981211:0x1d2,_0x3f253d:0x19,_0x2fad81:0xff,_0x462ea4:0x29f,_0x59612f:0x26a,_0x4ce761:0x354,_0xd9e00b:0x1d9,_0x1c2545:0x25a},_0xad447a={_0x3af56a:0x29b},_0x1f8253={_0x5f1c62:0x7};function _0x203451(_0x1ec1d3,_0x5635d9,_0x15f5af,_0x2eb326){return _0x357fd3(_0x1ec1d3-_0x1f8253._0x5f1c62,_0x5635d9-0xcf,_0x1ec1d3- -0xb4,_0x15f5af);}const _0xf4834e=_0x3d4a1a[_0x2d0451(_0xf173e._0x31063c,_0xf173e._0x330394,_0xf173e._0x3fbff5,_0xf173e._0x13e996)]()===_0x2d0451(0x2ee,_0xf173e._0x2ee67a,_0xf173e._0x4aef,0x360);function _0x2d0451(_0x4957fa,_0x17655e,_0x38a6a9,_0x2394e2){return _0x357fd3(_0x4957fa-0x37,_0x17655e-0x117,_0x17655e-_0xad447a._0x3af56a,_0x4957fa);}const _0xc457c7=_0xf4834e?[_0x168a63[_0x203451(-0x7a,-_0xf173e._0x571fbb,-_0xf173e._0x5ce1ac,0x17)](process['env']['LOCALAPPDATA']||'',_0x2d0451(0x486,_0xf173e._0x28fa44,0x4b1,_0xf173e._0x3beca2),'WinGet',_0x203451(-_0xf173e._0x5ee4b1,0x2b,-0x164,-0x22)),_0x168a63['join'](process[_0x203451(0x2,0x70,_0xf173e._0x143ee0,-0x60)][_0x2d0451(_0xf173e._0x338ce8,0x1fa,0x197,0x149)]||'',_0x203451(_0xf173e._0x1f957a,-_0xf173e._0x589f4f,0x75,0xf3),_0x203451(-_0xf173e._0x414830,-_0xf173e._0x2ad324,-0x137,_0xf173e._0x46a15e)),_0x168a63['join'](process[_0x203451(_0xf173e._0x2bc076,_0xf173e._0x5bf1c0,0x16,0xa9)][_0x203451(-_0xf173e._0x5179c9,-0x1e,-_0xf173e._0x32be2d,-0x1b9)]||'',_0x203451(0x37,-_0xf173e._0x4169b2,-_0xf173e._0x325418,-_0xf173e._0x561e10),_0x2d0451(0x2cc,_0xf173e._0x279a1d,0x276,_0xf173e._0x3f8080))]:[_0x2d0451(_0xf173e._0x5169ce,_0xf173e._0x51c27a,0x301,0x547),_0x2d0451(_0xf173e._0x5d0dbe,_0xf173e._0x3c7680,0x257,_0xf173e._0x54b9e7),_0x203451(_0xf173e._0x2a8cbe,-0x68,0x146,0x111),'/bin/rg'];for(const _0x374d51 of _0xc457c7){if(existsSync(_0x374d51))return _0x374d51;}try{const _0x28b561=_0xf4834e?'where\x20rg':_0x2d0451(0x4bd,_0xf173e._0x7429,_0xf173e._0x585f9d,_0xf173e._0x306f2f),_0x53a337=execSync(_0x28b561,{'encoding':_0x2d0451(_0xf173e._0x296888,0x374,_0xf173e._0x463d1f,_0xf173e._0x29c4cb),'stdio':[_0x2d0451(0x1f6,0x225,_0xf173e._0x1a6dc,_0xf173e._0x1a2d48),_0x2d0451(0x2dd,_0xf173e._0x71f3d2,_0xf173e._0x981211,0x339),_0x203451(_0xf173e._0x3f253d,0xa5,-0xf8,_0xf173e._0x2fad81)]})[_0x2d0451(0x2ca,_0xf173e._0x462ea4,_0xf173e._0x59612f,_0xf173e._0x4ce761)]()[_0x203451(-0x13e,-_0xf173e._0xd9e00b,-_0xf173e._0x1c2545,-0x207)](/\r?\n/)[0x0];if(_0x53a337&&existsSync(_0x53a337))return _0x53a337;}catch{return null;}return null;}async function filepath(){const _0x238290={_0x30ea51:0x13f,_0x52ffc5:0x34,_0x45858f:0x7c};if(cachedRgPath)return cachedRgPath;if(_0x48fb7f&&existsSync(_0x48fb7f))return cachedRgPath=_0x48fb7f,_0x48fb7f;function _0x44a9dd(_0x123468,_0x5c9523,_0x7ba251,_0x3cc980){return _0x1343ee(_0x3cc980- -0x141,_0x5c9523,_0x7ba251-0x8b,_0x3cc980-0x12d);}const _0x1ab41e=findSystemRipgrep();if(!_0x1ab41e)throw new Error(_0x44a9dd(0x136,_0x238290._0x30ea51,-_0x238290._0x52ffc5,_0x238290._0x45858f));return cachedRgPath=_0x1ab41e,_0x1ab41e;}async function*files(_0x1079f2){const _0x35f98e={_0x557e38:0x294,_0x5053a8:0x34f,_0x1d5820:0x358,_0x5eb418:0x418,_0x419cf3:0x2cf,_0x3e640b:0x1e6,_0x542675:0x14d,_0x1fbbae:0x19e,_0x47e154:0x1d5,_0x1b1905:0x2ce,_0x33a390:0x32e,_0x549e5e:0x3ab,_0x400896:0x273,_0x4bdbe0:0x254,_0x18d572:0x334,_0x485f96:0x243,_0x5511f7:0x228,_0x380e53:0x336,_0x5f2eb2:0xe0,_0x4063d1:0x3d,_0x47cd93:0x1fd,_0x1969f6:0x35d,_0x2f499c:0x373,_0x33dd6e:0x309,_0x1b43fa:0x1ed,_0x5ed47a:0x2d0,_0x46e4e4:0x313,_0x1b6142:0x2a1,_0x5dce81:0x26c,_0x3825fd:0x1f9,_0x107e6c:0x277},_0x3aeffc={_0x133802:0x9f},_0x4c6755={_0xfedf93:0x101,_0x1d1315:0x144};function _0x34512f(_0x4ead4b,_0x3a5e95,_0x517b67,_0x3dd23c){return _0x1343ee(_0x4ead4b-0x1be,_0x517b67,_0x517b67-_0x4c6755._0xfedf93,_0x3dd23c-_0x4c6755._0x1d1315);}const _0xc66808=await filepath(),_0x144140=await _0x4c6efb(_0x1079f2[_0x34512f(0x243,_0x35f98e._0x557e38,_0x35f98e._0x5053a8,_0x35f98e._0x1d5820)])['catch'](()=>null);if(!_0x144140?.[_0x516e82(_0x35f98e._0x5eb418,0x33c,_0x35f98e._0x419cf3,0x215)]())throw Object['assign'](new Error(_0x34512f(0x271,0x147,_0x35f98e._0x3e640b,_0x35f98e._0x542675)+_0x1079f2[_0x34512f(0x243,_0x35f98e._0x1fbbae,0x1b7,_0x35f98e._0x47e154)]+'\x27'),{'code':_0x34512f(0x2e7,0x2b7,0x212,_0x35f98e._0x1b1905)});const _0x2a14c9=['--files',_0x516e82(_0x35f98e._0x33a390,0x3f4,0x3c8,_0x35f98e._0x549e5e),'--hidden','--glob=!.git/*'];for(const _0x1ec1cf of _0x1079f2[_0x516e82(_0x35f98e._0x400896,0x2c9,_0x35f98e._0x4bdbe0,0x18f)]??[]){_0x2a14c9['push'](_0x516e82(0x23c,0x295,0x303,_0x35f98e._0x18d572)+_0x1ec1cf);}function _0x516e82(_0x5e281d,_0x23bb45,_0x4f56d1,_0x1b0f80){return _0x1343ee(_0x23bb45-0x26e,_0x1b0f80,_0x4f56d1-_0x3aeffc._0x133802,_0x1b0f80-0x161);}const _0x1004ee=_0x6da36d(_0xc66808,_0x2a14c9,{'cwd':_0x1079f2[_0x34512f(_0x35f98e._0x485f96,0x17e,0x17a,_0x35f98e._0x5511f7)],'stdio':[_0x34512f(0x290,_0x35f98e._0x380e53,0x15b,0x2cc),_0x34512f(0x14d,_0x35f98e._0x5f2eb2,0x99,_0x35f98e._0x4063d1),_0x516e82(0x298,_0x35f98e._0x47cd93,0xbc,0x2a5)]});let _0x48158d='';for await(const _0x322376 of _0x1004ee[_0x34512f(0x315,0x1e4,0x345,0x349)]??[]){_0x48158d+=_0x322376[_0x516e82(_0x35f98e._0x1969f6,_0x35f98e._0x2f499c,0x471,_0x35f98e._0x33dd6e)]();const _0x36c636=_0x48158d[_0x34512f(0x139,_0x35f98e._0x1b43fa,0x1c4,0xcc)](/\r?\n/);_0x48158d=_0x36c636[_0x516e82(_0x35f98e._0x5ed47a,_0x35f98e._0x46e4e4,0x2eb,0x2d4)]()??'';for(const _0x1e12d1 of _0x36c636){if(_0x1e12d1[_0x34512f(0x1de,_0x35f98e._0x1b6142,_0x35f98e._0x5dce81,0x184)]>0x0)yield _0x1e12d1;}}_0x48158d[_0x34512f(0x1c7,0x259,0x2c7,0x17f)]()['length']>0x0&&(yield _0x48158d[_0x516e82(_0x35f98e._0x3825fd,_0x35f98e._0x107e6c,0x1d1,_0x35f98e._0x33a390)]());}function parseMatchLine(_0x5c6189,_0x4adb70){const _0x4d5c55={_0x508493:0x131,_0x37d164:0x155,_0x5320f3:0x9b,_0x4935de:0x1e,_0x44fc4b:0x1e9,_0x2948a1:0x11f,_0xbe352:0x2e7,_0x8111d1:0x408,_0xa05310:0x2d4,_0x12dc54:0x2f2,_0x169455:0x22e,_0xe3b671:0x2f0,_0x2a2c25:0x7a,_0x158b52:0x56,_0x1c7e43:0xcd,_0x3cce49:0x218,_0x1977f3:0x1d8};if(!_0x5c6189||_0x5c6189==='--')return null;const _0x2d2a3e=_0x5c6189[_0x5ba96e(-_0x4d5c55._0x508493,-_0x4d5c55._0x37d164,-_0x4d5c55._0x5320f3,-_0x4d5c55._0x4935de)]('|');function _0x10d94b(_0x24507a,_0x200f48,_0x39dbd1,_0x321321){return _0x1343ee(_0x321321-0x166,_0x24507a,_0x39dbd1-0x1b6,_0x321321-0xf8);}if(_0x4adb70&&_0x2d2a3e['length']>=0x4&&Number[_0x5ba96e(_0x4d5c55._0x44fc4b,-0x2e,0x14e,_0x4d5c55._0x2948a1)](Number[_0x10d94b(0x259,_0x4d5c55._0xbe352,_0x4d5c55._0x8111d1,_0x4d5c55._0xa05310)](_0x2d2a3e[0x2]??'',0xa))){const _0x1e3c59=Number[_0x10d94b(_0x4d5c55._0x12dc54,0x295,_0x4d5c55._0x169455,0x2d4)](_0x2d2a3e[0x1]??'',0xa);if(!Number['isFinite'](_0x1e3c59)||!_0x2d2a3e[0x0])return null;return{'filePath':_0x2d2a3e[0x0],'lineNum':_0x1e3c59,'lineText':_0x2d2a3e['slice'](0x3)[_0x10d94b(_0x4d5c55._0xe3b671,0x163,0x28d,0x1a5)]('|')};}if(_0x2d2a3e[_0x5ba96e(-_0x4d5c55._0x2a2c25,0xcd,-_0x4d5c55._0x158b52,0x87)]>=0x3){const _0x4716ad=Number['parseInt'](_0x2d2a3e[0x1]??'',0xa);if(!Number['isFinite'](_0x4716ad)||!_0x2d2a3e[0x0])return null;return{'filePath':_0x2d2a3e[0x0],'lineNum':_0x4716ad,'lineText':_0x2d2a3e[_0x5ba96e(_0x4d5c55._0x1c7e43,_0x4d5c55._0x3cce49,0x1a5,_0x4d5c55._0x1977f3)](0x2)['join']('|'),..._0x4adb70?{'isContext':!![]}:{}};}function _0x5ba96e(_0x339862,_0x4c3e7a,_0x123040,_0x461e5f){return _0x1343ee(_0x461e5f-0x67,_0x4c3e7a,_0x123040-0xf3,_0x461e5f-0x130);}return null;}async function search(_0x577398){const _0xbbc67e={_0x382e1a:0x139,_0x1be444:0xff,_0x384b7f:0x12c,_0x2644e2:0x3,_0x4618fa:0xf3,_0xd4a953:0x1fc,_0x2776b8:0xcf,_0x6c0d83:0xf6,_0x55dfac:0x1b,_0x3e7163:0xdf,_0x1ca9b0:0x89,_0x66558f:0x3e,_0x267c68:0x28,_0x201169:0x186,_0xb92bdc:0x11d,_0x1df79a:0x36,_0x5927db:0x2,_0x4429ef:0x1a7,_0x79e6bc:0x194,_0x4ad2b6:0x220,_0x73aa:0xec,_0x2a9b72:0x18a,_0x4f6e53:0xd4,_0x233d07:0x13,_0x51bdad:0xac,_0x45e8ee:0x11f,_0x186d80:0xb1,_0x157c4b:0x11,_0x481e19:0xce,_0x4b1eba:0x1d1,_0x4e1910:0x2ca,_0x1fda72:0x213,_0x4b865e:0x255,_0x3d851e:0x234,_0x2882ff:0xb2,_0x557079:0x1ad,_0x17f4d5:0xfb,_0x288389:0x149,_0x3a4834:0x1f2},_0x320e79={_0x1c7e6a:0x325,_0x4c59b9:0x21a,_0x8dcca5:0x2ff,_0x106048:0x22f,_0xaaf460:0x162,_0x59ac3d:0x2cc,_0x53fff:0x3f7,_0x31f7b6:0x394,_0x666dd6:0x441,_0x3ba358:0x17f,_0x144774:0x2e0,_0x530b28:0x288,_0x5a9403:0x35c,_0x59d028:0x173,_0xecda53:0x389,_0x3f1b6b:0x45a,_0x35521b:0x515,_0x1ec859:0x598},_0x35fb32={_0x2a1ba4:0x29},_0x64fb7a={_0x2560ed:0x1fa},_0x4b3060={_0x5cb2c4:0x10f,_0x921a4:0x73,_0x277269:0x114},_0x4ea6c2={_0x27c742:0x11f};function _0x4f1104(_0x2d9694,_0x384d92,_0x41ee37,_0x555016){return _0x357fd3(_0x2d9694-_0x4ea6c2._0x27c742,_0x384d92-0x2f,_0x2d9694- -0x109,_0x384d92);}const _0x422b69=await filepath();if(_0x577398[_0x25bf5b(0xfd,0x8e,_0xbbc67e._0x382e1a,_0xbbc67e._0x1be444)]){const _0x4a5b6d=await _0x4c6efb(_0x577398['file'])[_0x25bf5b(_0xbbc67e._0x384b7f,-_0xbbc67e._0x2644e2,-0x55,0x97)](()=>null);if(!_0x4a5b6d?.[_0x4f1104(-_0xbbc67e._0x4618fa,-_0xbbc67e._0xd4a953,-0x229,-0x9d)]())throw Object[_0x25bf5b(_0xbbc67e._0x2776b8,0x24,0x1aa,_0xbbc67e._0x6c0d83)](new Error(_0x25bf5b(0x243,0x316,0x29c,0x26b)+_0x577398['file']+'\x27'),{'code':_0x4f1104(_0xbbc67e._0x55dfac,_0xbbc67e._0x3e7163,-0x110,-0x2a)});}else{const _0x51f215=await _0x4c6efb(_0x577398[_0x4f1104(-_0xbbc67e._0x1ca9b0,-_0xbbc67e._0x66558f,-0x1d5,_0xbbc67e._0x267c68)])[_0x4f1104(-_0xbbc67e._0x201169,-0x25b,-0xec,-0xed)](()=>null);if(!_0x51f215?.[_0x4f1104(-0x40,-_0xbbc67e._0xb92bdc,0x33,-0x189)]())throw Object['assign'](new Error(_0x4f1104(-0x5b,_0xbbc67e._0x1df79a,_0xbbc67e._0x5927db,-_0xbbc67e._0x4429ef)+_0x577398[_0x25bf5b(0x15d,0x217,0xf2,_0xbbc67e._0x79e6bc)]+'\x27'),{'code':'ENOENT'});}const _0x106146=[_0x25bf5b(0x1c1,_0xbbc67e._0x4ad2b6,_0xbbc67e._0x73aa,0x1b0),_0x25bf5b(0x82,0x9e,0x100,_0xbbc67e._0x2a9b72),_0x25bf5b(0x1d5,-0x7d,0x170,0xb0),_0x4f1104(0x7f,_0xbbc67e._0x4f6e53,_0xbbc67e._0x233d07,0x1af),_0x577398[_0x4f1104(-0x1b5,-_0xbbc67e._0x51bdad,-_0xbbc67e._0x45e8ee,-0xbd)]];function _0x25bf5b(_0x435b7e,_0x326bc3,_0x721657,_0x7868c4){return _0x357fd3(_0x435b7e-_0x4b3060._0x5cb2c4,_0x326bc3-_0x4b3060._0x921a4,_0x7868c4-_0x4b3060._0x277269,_0x721657);}const _0x1a3a12=typeof _0x577398['context']===_0x4f1104(0x3a,-_0xbbc67e._0x186d80,_0xbbc67e._0x157c4b,_0xbbc67e._0x481e19)&&_0x577398[_0x4f1104(-0x1ae,-0x25f,-_0xbbc67e._0x4b1eba,-_0xbbc67e._0x4e1910)]>0x0;return _0x1a3a12&&_0x106146['push']('-C',String(_0x577398['context']),_0x25bf5b(0x326,_0xbbc67e._0x1fda72,_0xbbc67e._0x4b865e,_0xbbc67e._0x1fda72)),_0x577398[_0x25bf5b(_0xbbc67e._0x3d851e,_0xbbc67e._0x2882ff,_0xbbc67e._0x557079,0x16a)]&&!_0x577398[_0x25bf5b(0xc1,0x3,0x8d,_0xbbc67e._0x1be444)]&&_0x106146['push'](_0x4f1104(-_0xbbc67e._0x157c4b,-0x93,_0xbbc67e._0x17f4d5,-0x7c),_0x577398['glob']),_0x106146['push'](_0x577398['file']??_0x577398[_0x25bf5b(_0xbbc67e._0x288389,0x95,_0xbbc67e._0x3a4834,0x194)]),await new Promise((_0x383319,_0x32c37c)=>{const _0x3cacef={_0x52a450:0x480,_0x65c813:0x51c,_0x5725b8:0x526,_0x53327e:0x287,_0x42e773:0x491,_0x474a6b:0x5ab,_0x4220fb:0x3c4},_0x455c47={_0x5b49d7:0x178},_0x5b89ca={_0x11da79:0xe6},_0x252183={_0x54b9d5:0xce},_0x23a621={_0x1d9f9d:0x3d},_0x414294={_0x33f550:0x44b,_0x16cc86:0x195},_0x5cf687=_0x6da36d(_0x422b69,_0x106146,{'cwd':_0x577398[_0x2d6a33(_0x320e79._0x1c7e6a,0x1d9,0x45e,_0x320e79._0x4c59b9)],'stdio':[_0x2d6a33(0x372,0x4be,0x374,_0x320e79._0x8dcca5),_0x2d6a33(_0x320e79._0x106048,0x349,0xfa,_0x320e79._0xaaf460),_0xdb3f41(0x298,0x192,0x242,_0x320e79._0x59ac3d)]});let _0x541d2d='',_0x510e83='';_0x5cf687[_0x2d6a33(_0x320e79._0x53fff,_0x320e79._0x31f7b6,_0x320e79._0x666dd6,0x305)]?.['on']('data',_0x1f7d70=>{function _0x1c7b19(_0x283a33,_0x262afc,_0x211b3e,_0x58fddc){return _0xdb3f41(_0x283a33- -_0x414294._0x33f550,_0x211b3e,_0x211b3e-0x17a,_0x58fddc-_0x414294._0x16cc86);}_0x541d2d+=_0x1f7d70[_0x1c7b19(-_0x23a621._0x1d9f9d,-0x154,0x16,0x9d)]();});function _0xdb3f41(_0x34d5df,_0x19498b,_0x27a1df,_0x1c9973){return _0x25bf5b(_0x34d5df-0x18c,_0x19498b-0xeb,_0x19498b,_0x34d5df-_0x64fb7a._0x2560ed);}_0x5cf687[_0x2d6a33(0x211,_0x320e79._0x3ba358,0x32f,_0x320e79._0x144774)]?.['on'](_0x2d6a33(_0x320e79._0x530b28,_0x320e79._0x5a9403,0x293,_0x320e79._0x59d028),_0xd8e116=>{function _0x23be2c(_0x50d5a6,_0x452894,_0x513548,_0x512898){return _0x2d6a33(_0x50d5a6- -0x4cd,_0x452894-0x9c,_0x513548-_0x252183._0x54b9d5,_0x512898);}_0x510e83+=_0xd8e116[_0x23be2c(-0x128,-0x162,-_0x35fb32._0x2a1ba4,-0x245)]();});function _0x2d6a33(_0x3c2503,_0x375efb,_0x5df08a,_0xbe2313){return _0x4f1104(_0x3c2503-0x3ae,_0xbe2313,_0x5df08a-0x6,_0xbe2313-_0x5b89ca._0x11da79);}_0x5cf687['on'](_0xdb3f41(_0x320e79._0xecda53,0x292,_0x320e79._0x3f1b6b,0x378),_0x16a39c=>{const _0x43562b={_0x3c3682:0x18f,_0x42ca9d:0x179};if(_0x16a39c===0x1&&_0x541d2d===''){_0x383319([]);return;}if(_0x16a39c!==0x0&&_0x16a39c!==0x1){_0x32c37c(new Error(_0x200eef(_0x3cacef._0x52a450,_0x3cacef._0x65c813,_0x3cacef._0x5725b8,0x56a)+_0x510e83));return;}function _0x200eef(_0xfd23ca,_0x1c8e64,_0x15a82a,_0x1afc30){return _0x2d6a33(_0xfd23ca-0xd0,_0x1c8e64-0x2d,_0x15a82a-_0x455c47._0x5b49d7,_0x1c8e64);}function _0x502a17(_0x171d85,_0xcb839a,_0x2b1086,_0x537bf3){return _0x2d6a33(_0x171d85-_0x43562b._0x3c3682,_0xcb839a-0xcd,_0x2b1086-_0x43562b._0x42ca9d,_0xcb839a);}const _0x3a8ffb=_0x577398['limit']??0x64,_0x219afd=[];for(const _0x20f0bd of _0x541d2d[_0x200eef(0x2eb,_0x3cacef._0x53327e,0x2c6,0x210)](/\r?\n/)){if(_0x219afd['length']>=_0x3a8ffb)break;const _0x41fa9c=parseMatchLine(_0x20f0bd,_0x1a3a12);if(_0x41fa9c)_0x219afd[_0x502a17(_0x3cacef._0x42e773,_0x3cacef._0x474a6b,_0x3cacef._0x4220fb,0x587)](_0x41fa9c);}_0x383319(_0x219afd);}),_0x5cf687['on'](_0xdb3f41(0x492,0x3ed,_0x320e79._0x35521b,_0x320e79._0x1ec859),_0x32c37c);});}function createGlobTool(_0x108e8e={}){const _0x18b29c={_0x19f9d9:0x7e,_0x2b064d:0x170,_0x2c4a3c:0xd2,_0x200ba5:0x107,_0x1f8b55:0x74,_0x1ebbbb:0x19c,_0x1755a9:0x132,_0x2a8db8:0x247,_0x5e4d8e:0x387,_0x501673:0x231,_0x495f9c:0x194,_0x2c1430:0x24a,_0x5ca2f0:0x277,_0xb788f4:0x1bd,_0x470195:0x12c,_0x278bcd:0x228},_0x266cc8={_0x5bb553:0xb5,_0x6b3f2e:0x2c0,_0xb2ad4d:0x147,_0xae8053:0x188,_0x48b0e5:0x1af,_0x5e8b8c:0x2de,_0x419683:0x3f2,_0x41ff8a:0x342,_0x3a8864:0x3af,_0x32d0f5:0x50e,_0xa7f1a6:0x18b,_0x2da9b2:0x22d,_0x15a9c8:0x120,_0x1e43ef:0x176,_0x323ddd:0x2c8,_0x448183:0x120,_0x2dab1:0x166,_0x14508f:0x193,_0x45dd10:0x1bd,_0x410f2e:0xc2,_0xf8c101:0x145,_0x3bd81e:0x2b4,_0x28775b:0x234,_0x711ce5:0x316,_0x45fcc8:0x362,_0x343100:0x2cc,_0x14f979:0x8a,_0x1b88e1:0x29c,_0x4b0ba9:0x324,_0x59a6ba:0x389,_0x1a7987:0x268,_0x3b9468:0x285,_0x507866:0x1c0,_0x1ecb1a:0x110,_0x3ec6af:0x2f8,_0x36dbe2:0x123,_0x1aaa81:0x44c,_0x548606:0x2af,_0x58aa00:0x14d,_0x2da980:0x19d,_0x120e84:0x2d1,_0x25d6fc:0x138},_0x29eddc={_0x4103b7:0xc4,_0x179ddd:0x152},_0x2b1684={_0xbd3f83:0x143},_0x58b107={_0x5ea0bb:0x153},_0x32bc97=_0x1e0b4a['resolve'](_0x108e8e[_0x4d736c(0x291,0x31d,0x3cc,0x2eb)]??process['cwd']());function _0x4d736c(_0x59502b,_0xe8f0b9,_0x3a0dcf,_0x4d4fcd){return _0x357fd3(_0x59502b-_0x58b107._0x5ea0bb,_0xe8f0b9-0x166,_0xe8f0b9-0x21b,_0x4d4fcd);}function _0x6d3319(_0x615b75,_0x312329,_0x51742e,_0x3899b5){return _0x357fd3(_0x615b75-_0x2b1684._0xbd3f83,_0x312329-0x122,_0x615b75-0x303,_0x312329);}const _0x176b69=(_0x108e8e[_0x4d736c(_0x18b29c._0x19f9d9,_0x18b29c._0x2b064d,_0x18b29c._0x2c4a3c,_0x18b29c._0x200ba5)]??[])[_0x4d736c(_0x18b29c._0x1f8b55,_0x18b29c._0x1ebbbb,_0x18b29c._0x1755a9,_0x18b29c._0x2a8db8)](_0x45f455=>_0x1e0b4a['resolve'](_0x45f455)),_0xfd07d7=_0x108e8e[_0x6d3319(0x30c,_0x18b29c._0x5e4d8e,0x405,0x3bd)]??0x64,_0x5534d7=_0x108e8e[_0x4d736c(_0x18b29c._0x501673,_0x18b29c._0x495f9c,0xf7,_0x18b29c._0x2c1430)]??_0x6d3319(0x2b6,_0x18b29c._0x5ca2f0,_0x18b29c._0xb788f4,0x284);return defineTool({'name':_0x5534d7,'description':_0x4d736c(_0x18b29c._0x470195,0x24b,0x1c5,0x38c),'inputSchema':{'type':_0x6d3319(0x34a,0x36b,_0x18b29c._0x278bcd,0x482),'properties':{'pattern':{'type':'string'},'path':{'type':'string'},'limit':{'type':'number'}},'required':[_0x4d736c(0x234,0x16f,0x28,0x293)]},async *'execute'(_0x892ea6){const _0x46923d={_0x292da1:0x17b};if(_0x892ea6[_0x315ced(0x14e,0x124,0x51,_0x266cc8._0x5bb553)][_0x320e55(0x243,_0x266cc8._0x6b3f2e,_0x266cc8._0xb2ad4d,_0x266cc8._0xae8053)]()[_0x320e55(0x25a,_0x266cc8._0x48b0e5,_0x266cc8._0x5e8b8c,0x21e)]===0x0)throw new ToolExecutionError(_0x320e55(_0x266cc8._0x419683,_0x266cc8._0x41ff8a,_0x266cc8._0x3a8864,_0x266cc8._0x32d0f5),{});const _0x586d65=resolveAllowedPath(_0x32bc97,_0x176b69,_0x892ea6['path']??'.'),_0x3dc69b=await _0x559b94(_0x586d65)['catch'](()=>null);function _0x315ced(_0x4abe50,_0x374d7b,_0x163a5b,_0x1b3ede){return _0x6d3319(_0x4abe50- -0x109,_0x374d7b,_0x163a5b-0x2e,_0x1b3ede-_0x46923d._0x292da1);}if(!_0x3dc69b?.['isDirectory']())throw new ToolExecutionError(_0x320e55(_0x266cc8._0xa7f1a6,0xfd,_0x266cc8._0x2da9b2,_0x266cc8._0x15a9c8)+(_0x892ea6['path']??'.'),{'path':_0x892ea6[_0x320e55(0x23b,_0x266cc8._0x1e43ef,_0x266cc8._0x323ddd,_0x266cc8._0x448183)]??'.'});const _0x188514=_0x892ea6['limit']??_0xfd07d7,_0x265027=Math[_0x315ced(0x1d3,0x1c1,0x14d,_0x266cc8._0x2dab1)](0x1,Math['trunc'](_0x188514)),_0x4faab4=[];let _0x339f9f=![];for await(const _0x2d7d8e of files({'cwd':_0x586d65,'glob':[_0x892ea6[_0x320e55(_0x266cc8._0x14508f,_0x266cc8._0x45dd10,_0x266cc8._0x410f2e,_0x266cc8._0xf8c101)]]})){if(_0x4faab4[_0x315ced(0x215,0x2db,0x345,_0x266cc8._0x3bd81e)]>=_0x265027){_0x339f9f=!![];break;}const _0x455574=await _0x559b94(_0x1e0b4a[_0x315ced(_0x266cc8._0x28775b,_0x266cc8._0x711ce5,_0x266cc8._0x45fcc8,_0x266cc8._0x343100)](_0x586d65,_0x2d7d8e))[_0x320e55(0x1c2,_0x266cc8._0x14f979,0x2cd,0xde)](()=>null);_0x4faab4[_0x320e55(_0x266cc8._0x1b88e1,0x2a7,_0x266cc8._0x4b0ba9,_0x266cc8._0x59a6ba)]({'path':_0x2d7d8e,'mtime':_0x455574?.[_0x320e55(0x1b3,0x29a,_0x266cc8._0x1a7987,_0x266cc8._0x3b9468)]??0x0});}function _0x320e55(_0x42baf6,_0x9dd37c,_0x773ca5,_0xa59c30){return _0x6d3319(_0x42baf6- -_0x29eddc._0x4103b7,_0x9dd37c,_0x773ca5-_0x29eddc._0x179ddd,_0xa59c30-0x1b7);}_0x4faab4['sort']((_0xb1e4ed,_0x439331)=>_0x439331[_0x320e55(0x273,0x2f9,0x3b4,0x1b9)]-_0xb1e4ed[_0x315ced(0x22e,0x1ac,0x23a,0x223)]);const _0x3112a4=_0x4faab4[_0x320e55(_0x266cc8._0x507866,_0x266cc8._0x1ecb1a,_0x266cc8._0x3ec6af,0x2ca)](_0x15160=>_0x15160['path']),_0x47aef7=_0x3112a4[_0x315ced(0x215,_0x266cc8._0x36dbe2,0x12d,0xfa)]===0x0?_0x320e55(0x302,0x2c6,_0x266cc8._0x1aaa81,0x37a)+_0x892ea6['pattern']:''+_0x3112a4[_0x315ced(0x234,_0x266cc8._0x548606,_0x266cc8._0x58aa00,0x194)]('\x0a')+(_0x339f9f?_0x320e55(_0x266cc8._0x2da980,0x2d0,_0x266cc8._0x120e84,_0x266cc8._0x25d6fc):'');return yield createToolOutput(_0x47aef7,{'pattern':_0x892ea6['pattern'],'searchPath':_0x1e0b4a['relative'](_0x32bc97,_0x586d65)||'.','matches':_0x3112a4,'count':_0x3112a4[_0x315ced(0x215,0x177,0x1e9,0x321)],'truncated':_0x339f9f}),void 0x0;}});}import{stat as _0x261f74}from'fs/promises';import*as _0x77a6d1 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x11e8a0={}){const _0x277a3c={_0xb2a212:0x61b,_0x1aa8f4:0x3ec,_0x50027f:0x55f,_0x3e8f35:0x41c,_0x3a3b16:0x460,_0x77c720:0x53b,_0x8846ca:0x1ba,_0x1490ed:0x235,_0x354a23:0x250,_0x510e96:0x455,_0x7c9789:0x403,_0x1b8a6f:0x4a,_0x308692:0xaf,_0x2c1eb6:0x50e,_0x3d0baf:0x4bb,_0x19b35c:0x440,_0x507d98:0x24b,_0x1a04f5:0x5a,_0x41e312:0x121,_0x35ebd6:0xd8,_0x35437d:0x5f9,_0x5be6c8:0x194,_0x25daf4:0x11b,_0x27e6c5:0x6e6,_0x3d1a62:0x6d2,_0x1660c6:0x6bd,_0x2dfa69:0x252,_0xc1e94c:0x1df},_0x13de22={_0x1b6a34:0xd1,_0x84681a:0xaf,_0x5015b4:0x198,_0x39b2da:0xa,_0x286597:0x115,_0x2ef16a:0x11a,_0x41db1a:0x3df,_0xa49104:0x2f3,_0x24c01d:0x29,_0x2cc972:0x102,_0x58fbf6:0x1a,_0x264c17:0x14,_0x177bbf:0x21a,_0x52f466:0xea,_0x50f2e7:0x341,_0x26aaba:0x202,_0x4dcc4a:0x1a8,_0xb9d8b8:0x1ea,_0x97c1d3:0x5f,_0x51d6bb:0x1f3,_0x6427eb:0xc3,_0x402539:0xd3,_0x53c8e9:0xe5,_0x306a46:0x10b,_0x4c690e:0x4d,_0x1def73:0x95,_0x17885b:0x61,_0x14e458:0x135,_0x194e09:0x7c,_0x2b116d:0x83,_0x133746:0x16f,_0x410a75:0x1a1,_0x1f0c40:0x234,_0x58f4c2:0x1a2,_0x1a31ed:0xb4,_0x5cea49:0xbc,_0x1e2b60:0x2ec,_0x5c1f52:0x1ba,_0x3b90af:0xc4,_0xca6101:0x3a,_0x20a488:0xe5,_0x56149a:0x1f2,_0x39be39:0xb1,_0x5adfdc:0x10e,_0x184cd4:0xb,_0x423885:0xcb,_0x2bab84:0xa2,_0x1aaf9d:0x85,_0x423ca6:0x97,_0x2e1569:0x2ba,_0x39aa9e:0x1a5,_0x4033b1:0x180,_0x3318cf:0xa,_0x53f7ac:0xe1,_0xada720:0xaf,_0x12cb8c:0x19c,_0x50cdb4:0x1bd,_0x21ce4d:0x2ef,_0xc7fbe9:0x3ca,_0x2d6ae3:0xa,_0x56a3d8:0x2d,_0x414269:0xe9,_0x53c406:0xd4,_0x33219e:0x82,_0x418b67:0x61,_0xc2f279:0x94,_0x38149b:0x2c,_0x550e08:0x76,_0x43271e:0x1a6,_0x390837:0x30e,_0x50ea14:0x51,_0x2b61d8:0x1c5,_0x4df894:0x7b,_0x163ba6:0x28e,_0x88afeb:0x2bd,_0x457927:0xa6,_0x246600:0x4d,_0x20f036:0x206,_0x25b468:0x2b9,_0x15c014:0x3ea,_0x210f9b:0x22b,_0x2e9414:0x5c,_0x4be505:0x35,_0x2da88e:0xe,_0x9ae168:0x73,_0x5adbbd:0xf7,_0xca3586:0xbf,_0x21cbc8:0x53,_0x48f70b:0x6d,_0x4565e5:0x9e,_0x282a4d:0x72,_0x2b3012:0x114,_0x4c1766:0xad,_0x5b8eea:0x8,_0x414ac4:0xfb,_0x1582ea:0x139,_0x151024:0x18e,_0x20b79e:0x1e8,_0x2c268f:0xab,_0x3fea1e:0x80,_0xd4a286:0x2e,_0x13903c:0xdd,_0x11eff8:0x70,_0x2e502d:0x167,_0x1ef020:0x285},_0xbf890f={_0x1aa1b3:0x1aa},_0x388eb2={_0x18686f:0x1b8,_0x2194ba:0x2f6},_0x1e8874={_0x5e41f7:0x9e,_0x2be1f8:0x154},_0x32033f={_0x5174b8:0x4c7},_0x18ca5a=_0x77a6d1[_0x217a4b(0x52a,_0x277a3c._0xb2a212,_0x277a3c._0x1aa8f4,0x43e)](_0x11e8a0[_0x217a4b(0x5c9,_0x277a3c._0x50027f,0x576,0x67c)]??process[_0x217a4b(0x547,0x4c9,0x577,0x54a)]()),_0x52c6a1=(_0x11e8a0[_0x217a4b(_0x277a3c._0x3e8f35,_0x277a3c._0x3a3b16,0x4a1,_0x277a3c._0x77c720)]??[])[_0x132f4e(-_0x277a3c._0x8846ca,-0x245,-_0x277a3c._0x1490ed,-0x2ed)](_0x5cc044=>_0x77a6d1[_0x217a4b(0x52a,0x569,0x48b,0x5e1)](_0x5cc044)),_0x55d968=_0x11e8a0[_0x132f4e(-_0x277a3c._0x354a23,-0x2b1,-0x1ad,-0x29a)]??0x64;function _0x217a4b(_0x59ac83,_0x210f59,_0x7134ac,_0x42da02){return _0x357fd3(_0x59ac83-0x159,_0x210f59-0x9f,_0x59ac83-_0x32033f._0x5174b8,_0x210f59);}const _0x17c520=_0x11e8a0[_0x217a4b(0x440,_0x277a3c._0x510e96,_0x277a3c._0x7c9789,0x3de)]??_0x132f4e(_0x277a3c._0x1b8a6f,-0x15b,-_0x277a3c._0x308692,-0x188);function _0x132f4e(_0x3b87fa,_0x2ee287,_0x2c7e90,_0x2d79c3){return _0x357fd3(_0x3b87fa-_0x1e8874._0x5e41f7,_0x2ee287-_0x1e8874._0x2be1f8,_0x2c7e90- -0x1b6,_0x2ee287);}return defineTool({'name':_0x17c520,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20or\x20allowed\x20directory\x20file\x20contents.','inputSchema':{'type':_0x217a4b(_0x277a3c._0x2c1eb6,0x5cd,_0x277a3c._0x3d0baf,_0x277a3c._0x19b35c),'properties':{'pattern':{'type':_0x132f4e(-_0x277a3c._0x507d98,-_0x277a3c._0x1a04f5,-_0x277a3c._0x41e312,-_0x277a3c._0x35ebd6)},'path':{'type':_0x217a4b(0x55c,_0x277a3c._0x35437d,0x4b7,0x69e)},'include':{'type':_0x132f4e(-_0x277a3c._0x5be6c8,-0x95,-0x121,-_0x277a3c._0x25daf4)},'limit':{'type':_0x217a4b(0x60a,_0x277a3c._0x27e6c5,_0x277a3c._0x3d1a62,_0x277a3c._0x1660c6)},'context':{'type':'number'}},'required':[_0x132f4e(-_0x277a3c._0x2dfa69,-_0x277a3c._0xc1e94c,-0x262,-0x35e)]},async *'execute'(_0x14cf27){function _0x4cadb7(_0x439ab1,_0x13b644,_0x24e0a5,_0x35f611){return _0x132f4e(_0x439ab1-_0x388eb2._0x18686f,_0x35f611,_0x24e0a5-_0x388eb2._0x2194ba,_0x35f611-0x1c0);}if(_0x14cf27[_0x4145bc(-_0x13de22._0x1b6a34,-0x209,-_0x13de22._0x84681a,-_0x13de22._0x5015b4)]['trim']()[_0x4145bc(-_0x13de22._0x39b2da,-_0x13de22._0x286597,-0x99,-_0x13de22._0x2ef16a)]===0x0)throw new ToolExecutionError(_0x4cadb7(_0x13de22._0x41db1a,0x401,_0x13de22._0xa49104,0x33a),{});const _0x33f428=resolveAllowedPath(_0x18ca5a,_0x52c6a1,_0x14cf27[_0x4145bc(-_0x13de22._0x24c01d,-0x2a,_0x13de22._0x2cc972,-0xc2)]??'.'),_0x888977=await _0x261f74(_0x33f428)[_0x4145bc(-0xa2,-_0x13de22._0x58fbf6,_0x13de22._0x264c17,-0x15a)](()=>null),_0x1ae173=_0x888977?.[_0x4cadb7(_0x13de22._0x177bbf,0x1dc,0x156,_0x13de22._0x52f466)]()??![],_0x23615a=_0x888977?.[_0x4cadb7(_0x13de22._0x50f2e7,_0x13de22._0x26aaba,0x209,_0x13de22._0x4dcc4a)]()??![];if(!_0x1ae173&&!_0x23615a)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x14cf27[_0x4cadb7(-0x5,_0x13de22._0xb9d8b8,0x13c,0xb)]??'.'),{'path':_0x14cf27[_0x4cadb7(_0x13de22._0x97c1d3,0x241,0x13c,0x1ec)]??'.'});const _0x407cc0=_0x14cf27['limit']??_0x55d968,_0x2a73f7=Math['max'](0x1,Math[_0x4cadb7(_0x13de22._0x51d6bb,_0x13de22._0x6427eb,_0x13de22._0x402539,-0x1f)](_0x407cc0)),_0x174682=await search({'cwd':_0x23615a?_0x33f428:_0x77a6d1[_0x4145bc(0x18a,0x6a,_0x13de22._0x53c8e9,0x6e)](_0x33f428),'pattern':_0x14cf27[_0x4cadb7(0x17a,0x180,0x94,_0x13de22._0x306a46)],'glob':_0x23615a?_0x14cf27[_0x4145bc(-0x70,-_0x13de22._0x4c690e,-_0x13de22._0x1def73,_0x13de22._0x17885b)]:void 0x0,'limit':_0x2a73f7,'file':_0x1ae173?_0x33f428:void 0x0,'context':_0x14cf27['context']}),_0x111e88=new Map();for(const _0x214946 of _0x174682){if(!_0x111e88[_0x4cadb7(_0x13de22._0x14e458,-_0x13de22._0x194e09,_0x13de22._0x2b116d,-0x8e)](_0x214946[_0x4cadb7(_0x13de22._0x133746,_0x13de22._0x410a75,0xe5,_0x13de22._0x1f0c40)])){const _0x3feefc=await _0x261f74(_0x214946[_0x4145bc(-0x80,0xad,-_0x13de22._0x58f4c2,-_0x13de22._0x1a31ed)])[_0x4cadb7(0x13a,_0x13de22._0x5cea49,0xc3,0xca)](()=>null);_0x111e88[_0x4cadb7(_0x13de22._0x1e2b60,0xa2,_0x13de22._0x5c1f52,_0x13de22._0x3b90af)](_0x214946[_0x4cadb7(_0x13de22._0xca6101,0x29,_0x13de22._0x20a488,_0x13de22._0x56149a)],{'matches':[],'mtime':_0x3feefc?.[_0x4145bc(-_0x13de22._0x39be39,-_0x13de22._0x5adfdc,-0x1c3,_0x13de22._0x184cd4)]??0x0});}_0x111e88[_0x4cadb7(-0x59,_0x13de22._0x423885,_0x13de22._0x2bab84,_0x13de22._0x1aaf9d)](_0x214946[_0x4145bc(-0x80,-0x1b3,0x15,-_0x13de22._0x423ca6)])?.['matches'][_0x4cadb7(_0x13de22._0x2e1569,_0x13de22._0x39aa9e,0x19d,0x90)](_0x214946);}const _0x38a110=[..._0x111e88['entries']()][_0x4cadb7(-0x31,_0x13de22._0x4033b1,0xe2,0x150)]((_0x4b4801,_0x50e426)=>_0x50e426[0x1]['mtime']-_0x4b4801[0x1][_0x4cadb7(0x110,0x1ff,0x174,0xd4)]),_0x3305c4=_0x174682['filter'](_0x1808a7=>!_0x1808a7['isContext'])[_0x4145bc(-_0x13de22._0x3318cf,-_0x13de22._0x53f7ac,0xd3,_0x13de22._0xada720)],_0xbbf968=_0x174682[_0x4cadb7(_0x13de22._0x12cb8c,0x260,0x15b,0x11d)]>=_0x2a73f7,_0xde8e3a=_0x1ae173?_0x77a6d1[_0x4cadb7(_0x13de22._0x50cdb4,0x42b,_0x13de22._0x21ce4d,_0x13de22._0xc7fbe9)](_0x33f428):_0x33f428;let _0x25fa61='';function _0x4145bc(_0x2fbee7,_0x5e5fca,_0x4650f4,_0x27aebc){return _0x132f4e(_0x2fbee7-_0xbf890f._0x1aa1b3,_0x5e5fca,_0x2fbee7-0x191,_0x27aebc-0xf6);}if(_0x174682[_0x4145bc(-_0x13de22._0x2d6ae3,_0x13de22._0x56a3d8,0x134,0xa2)]===0x0)_0x25fa61=_0x4cadb7(0xb2,_0x13de22._0x414269,0xf0,_0x13de22._0x53c406)+_0x14cf27[_0x4cadb7(-_0x13de22._0x33219e,-_0x13de22._0x418b67,_0x13de22._0xc2f279,_0x13de22._0x38149b)];else{_0x25fa61='Found\x20'+_0x3305c4+_0x4cadb7(0x17d,0x3e,0xb1,0xac)+(_0x3305c4===0x1?'':'es')+'\x0a';for(const [_0x5e2f24,_0x5ba527]of _0x38a110){const _0x102b4f=_0x1ae173?_0x77a6d1[_0x4cadb7(_0x13de22._0x550e08,0xfb,0x146,0xb3)](_0x5e2f24):_0x77a6d1[_0x4cadb7(_0x13de22._0x43271e,_0x13de22._0x390837,0x279,0x26b)](_0xde8e3a,_0x5e2f24);_0x25fa61+='\x0a'+_0x102b4f+':\x0a';for(const _0x3f4114 of _0x5ba527[_0x4cadb7(-_0x13de22._0x50ea14,_0x13de22._0x2b61d8,_0x13de22._0x4df894,0x88)]){const _0x86c3bc=_0x3f4114['lineText']['length']>MAX_LINE_LENGTH?_0x3f4114[_0x4cadb7(0x194,0x36e,_0x13de22._0x163ba6,_0x13de22._0x88afeb)][_0x4145bc(0x147,_0x13de22._0x457927,0x1ed,_0x13de22._0x246600)](0x0,MAX_LINE_LENGTH)+_0x4cadb7(0x327,_0x13de22._0x20f036,_0x13de22._0x25b468,_0x13de22._0x15c014):_0x3f4114[_0x4145bc(0x129,0x23d,0xb8,_0x13de22._0x210f9b)],_0x3ac0ca=_0x3f4114[_0x4145bc(0x81,_0x13de22._0x2e9414,0x16d,_0x13de22._0x4be505)]?'\x20\x20':'>\x20';_0x25fa61+=_0x3ac0ca+_0x4145bc(0x2d,-_0x13de22._0x2da88e,-_0x13de22._0x9ae168,_0x13de22._0x5adbbd)+_0x3f4114[_0x4145bc(_0x13de22._0xca3586,_0x13de22._0x21cbc8,-_0x13de22._0x48f70b,0x12d)]+':\x20'+_0x86c3bc+'\x0a';}}_0xbbf968&&(_0x25fa61+=_0x4cadb7(0x2,0x195,_0x13de22._0x4565e5,_0x13de22._0x282a4d));}const _0x5d3890={'searchPath':_0x77a6d1[_0x4145bc(_0x13de22._0x2b3012,_0x13de22._0x4c1766,0x240,_0x13de22._0x39aa9e)](_0x18ca5a,_0x33f428)||'.','pattern':_0x14cf27[_0x4145bc(-0xd1,-_0x13de22._0x5b8eea,-_0x13de22._0x414ac4,0x49)],'matchCount':_0x3305c4,'fileCount':_0x111e88[_0x4145bc(_0x13de22._0x1582ea,0x256,_0x13de22._0x151024,_0x13de22._0x20b79e)],'truncated':_0xbbf968};return _0x23615a&&_0x14cf27[_0x4145bc(-0x70,_0x13de22._0x2c268f,-_0x13de22._0x3fea1e,-_0x13de22._0xd4a286)]!==void 0x0&&(_0x5d3890[_0x4145bc(-0x70,_0x13de22._0x13903c,-0x6b,-0xf6)]=_0x14cf27[_0x4145bc(-_0x13de22._0x11eff8,-0x1e,-0x6e,-0x106)]),yield createToolOutput(_0x25fa61[_0x4cadb7(_0x13de22._0x2e502d,_0x13de22._0x1ef020,0x144,0x6d)](),_0x5d3890),void 0x0;}});}import{readdir as _0x445d23,readFile as _0x581455,stat as _0x5d6145}from'fs/promises';import*as _0xc8103b from'path';import*as _0x43ab67 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x2f6a23,_0x585370){const _0x4ad8e1={_0xfa870d:0x7,_0x112665:0xfd,_0x496362:0x94,_0x57a6e3:0x8c,_0x34c8ca:0x16f,_0x10099d:0x4da},_0x11a03e={_0x457e44:0x16a},_0x314d96={_0x53e78e:0x1ca,_0x284093:0xf0};if(_0x585370>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x394595(_0x3359c0,_0x24ec12,_0x5c6284,_0x3f8038){return _0x1343ee(_0x3359c0-0x4ba,_0x3f8038,_0x5c6284-_0x314d96._0x53e78e,_0x3f8038-_0x314d96._0x284093);}function _0x52baef(_0x1fd2ce,_0x39dd90,_0x571480,_0x2b9acb){return _0x1343ee(_0x2b9acb- -_0x11a03e._0x457e44,_0x39dd90,_0x571480-0x0,_0x2b9acb-0xcd);}const _0x5de663=await _0x581455(_0x2f6a23)['catch'](()=>null);if(!_0x5de663||isProbablyBinary(_0x5de663))return void 0x0;return _0x5de663['toString'](_0x52baef(-_0x4ad8e1._0xfa870d,-_0x4ad8e1._0x112665,-_0x4ad8e1._0x496362,-_0x4ad8e1._0x57a6e3))[_0x52baef(-_0x4ad8e1._0x34c8ca,-0xb1,-0x2e8,-0x1ef)](/\r?\n/)[_0x394595(_0x4ad8e1._0x10099d,0x586,0x447,0x4ab)];}function createLsTool(_0x4d14be={}){const _0x11cbb9={_0x572ed0:0x2c8,_0x43e8b8:0x50e,_0x29777b:0x3ce,_0x964f0:0x570,_0x1e6d54:0x400,_0x4ebcb7:0x384,_0x4d11b0:0x3dd,_0x70108:0x3ad,_0x4e45c0:0x418},_0x124f9f={_0x59b3a1:0x40f,_0x4c34ac:0x4a6,_0x21e3a8:0x369,_0x41af37:0x13c,_0x763599:0x2fc,_0x36abbc:0x2ea,_0x416d62:0x3fd,_0x56c798:0x4d8,_0x2750b7:0x3e4,_0x7c0c52:0x3ec,_0x53ff52:0x481,_0x3774b3:0x2a8,_0x2819fc:0x26b,_0x29dfce:0x1c6,_0x497752:0x254,_0x31695b:0x455,_0x27c23e:0x6ae,_0x47625b:0x26d,_0x385489:0x322,_0x5e6241:0x2ab,_0x2a513b:0x396,_0xa56f15:0x521,_0x225dac:0x2f3,_0x39e9eb:0x1b6,_0xdd1bb0:0x3ab,_0x2e08f3:0x5c3,_0xa96ad4:0x4a4,_0x262f68:0x501,_0x226885:0x571,_0x165b63:0x4b7,_0x2efe55:0x569,_0xcd1a99:0x387,_0x175821:0x443,_0x2285c1:0x3fe,_0x3e695b:0x2ec,_0x59f823:0x480,_0x40133d:0x114,_0x48a819:0x27c,_0x2ce353:0x24e,_0x568dd2:0x1f6,_0x4d03ed:0x3ec,_0x20a962:0x45b,_0x320525:0x341,_0x34c90a:0x26e,_0x1e297e:0x18c,_0x484c1a:0x246,_0x19335d:0x36d,_0xcc6832:0x32f,_0x19f903:0x4a3,_0x2e4382:0x45c,_0x41676e:0x3c1},_0x26ddf9={_0x1ff535:0x152},_0x6679ac={_0x5e5e66:0x88},_0x4fc258=_0xc8103b[_0x13030e(_0x11cbb9._0x572ed0,_0x11cbb9._0x43e8b8,0x3d9,_0x11cbb9._0x29777b)](_0x4d14be[_0x3bc3dd(_0x11cbb9._0x964f0,0x582,0x45f,_0x11cbb9._0x1e6d54)]??process[_0x3bc3dd(_0x11cbb9._0x4ebcb7,0x31e,0x3dd,0x3df)]()),_0x302cb5=(_0x4d14be[_0x13030e(_0x11cbb9._0x4d11b0,0x31a,0x2be,0x2c0)]??[])['map'](_0x5653b5=>_0xc8103b[_0x13030e(0x2d6,0x39f,0x44a,0x3ce)](_0x5653b5));function _0x13030e(_0x55b118,_0x4a8b0b,_0x5d19f6,_0x2a2723){return _0x357fd3(_0x55b118-0x1de,_0x4a8b0b-_0x6679ac._0x5e5e66,_0x2a2723-0x36b,_0x5d19f6);}function _0x3bc3dd(_0x45feb6,_0x19f519,_0x4843a7,_0x29aa3c){return _0x357fd3(_0x45feb6-0x54,_0x19f519-_0x26ddf9._0x1ff535,_0x4843a7-0x35d,_0x19f519);}const _0x3e2639=_0x4d14be['name']??'Ls';return defineTool({'name':_0x3e2639,'description':'List\x20files\x20and\x20directories\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x3bc3dd(_0x11cbb9._0x70108,_0x11cbb9._0x4e45c0,0x3a4,0x2de),'properties':{'path':{'type':'string'},'limit':{'type':'number'}}},async *'execute'(_0x2d6d54){const _0x451d89={_0x1b964b:0xb6},_0x174834={_0x52dfb9:0xf1,_0x403d05:0x62};function _0x20df99(_0x3cff70,_0x4db23c,_0x2e50dc,_0x473851){return _0x3bc3dd(_0x3cff70-_0x174834._0x52dfb9,_0x473851,_0x4db23c- -0x12a,_0x473851-_0x174834._0x403d05);}const _0x385028=_0x2d6d54[_0x562ee9(_0x124f9f._0x59b3a1,_0x124f9f._0x4c34ac,_0x124f9f._0x21e3a8,0x514)]??'.',_0x3b0719=resolveAllowedPath(_0x4fc258,_0x302cb5,_0x385028),_0x53bf25=await _0x5d6145(_0x3b0719)[_0x20df99(0x9a,0x1b6,_0x124f9f._0x41af37,0x198)](()=>null);if(!_0x53bf25?.[_0x20df99(0x345,_0x124f9f._0x763599,_0x124f9f._0x36abbc,_0x124f9f._0x416d62)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x385028,{'path':_0x385028});const _0x47e8e6=_0x2d6d54['limit']??0x3e8,_0x2b92db=Math[_0x562ee9(0x415,_0x124f9f._0x56c798,_0x124f9f._0x2750b7,0x4f9)](Math[_0x562ee9(_0x124f9f._0x7c0c52,_0x124f9f._0x53ff52,0x528,_0x124f9f._0x3774b3)](Math[_0x20df99(_0x124f9f._0x2819fc,_0x124f9f._0x29dfce,_0x124f9f._0x497752,0x1f1)](_0x47e8e6),0x1),0x2710),_0x318174=await _0x445d23(_0x3b0719),_0x132dd5=[];for(const _0x123ab7 of _0x318174[_0x562ee9(0x57f,_0x124f9f._0x31695b,_0x124f9f._0x27c23e,0x5bd)](0x0,_0x2b92db)){const _0x188778=_0xc8103b[_0x20df99(0x18b,_0x124f9f._0x47625b,_0x124f9f._0x385489,_0x124f9f._0x5e6241)](_0x3b0719,_0x123ab7),_0x4c532d=await _0x5d6145(_0x188778)[_0x562ee9(_0x124f9f._0x2a513b,0x31d,0x462,0x427)](()=>null);if(!_0x4c532d)continue;let _0x3b69c5='other';if(_0x4c532d['isFile']())_0x3b69c5=_0x562ee9(0x3fe,0x49d,0x3a2,_0x124f9f._0xa56f15);else{if(_0x4c532d['isDirectory']())_0x3b69c5=_0x20df99(0x28c,_0x124f9f._0x225dac,_0x124f9f._0x39e9eb,_0x124f9f._0xdd1bb0);else{if(_0x4c532d['isSymbolicLink']())_0x3b69c5=_0x562ee9(_0x124f9f._0x2e08f3,_0x124f9f._0xa96ad4,0x617,_0x124f9f._0x262f68);}}const _0x23be9b={'name':_0x123ab7,'type':_0x3b69c5,'size':_0x4c532d[_0x562ee9(_0x124f9f._0x226885,_0x124f9f._0x165b63,0x445,_0x124f9f._0x2efe55)],'mtime':_0x4c532d[_0x562ee9(_0x124f9f._0xcd1a99,0x44a,_0x124f9f._0x175821,0x45f)],'mode':_0x4c532d[_0x20df99(0x3e9,0x383,0x2d6,0x2cd)]},_0x397e41=_0x3b69c5===_0x562ee9(_0x124f9f._0x2285c1,_0x124f9f._0x3e695b,0x534,_0x124f9f._0x59f823)?await countTextLines(_0x188778,_0x4c532d['size']):void 0x0;if(_0x397e41!==void 0x0)_0x23be9b['lines']=_0x397e41;_0x132dd5['push'](_0x23be9b);}_0x132dd5[_0x20df99(_0x124f9f._0x40133d,0x1d5,_0x124f9f._0x48a819,0xa7)]((_0x216d66,_0x35ba5e)=>_0x216d66[_0x562ee9(0x38c,0x29e,0x366,0x4ca)]['localeCompare'](_0x35ba5e[_0x20df99(0x16c,0x1ac,0x279,0x251)]));function _0x562ee9(_0x49dac5,_0x2ff993,_0x5b58c7,_0x1ae4bd){return _0x3bc3dd(_0x49dac5-0x1a6,_0x1ae4bd,_0x49dac5-_0x451d89._0x1b964b,_0x1ae4bd-0x70);}const _0x59f015={'path':_0x385028,'total':_0x132dd5[_0x20df99(0x35c,_0x124f9f._0x2ce353,0x1a8,_0x124f9f._0x568dd2)],'truncated':_0x318174[_0x562ee9(0x42e,_0x124f9f._0x4d03ed,_0x124f9f._0x20a962,0x340)]>_0x2b92db,'entries':_0x132dd5};return yield createToolOutput(_0x43ab67[_0x20df99(0x235,_0x124f9f._0x320525,0x249,_0x124f9f._0x34c90a)](_0x59f015,{'indent':0x2,'lineWidth':0x0})[_0x20df99(_0x124f9f._0x1e297e,_0x124f9f._0x484c1a,_0x124f9f._0x19335d,_0x124f9f._0xcc6832)](),{'path':_0x385028,'total':_0x132dd5[_0x562ee9(0x42e,_0x124f9f._0x19f903,0x3d1,_0x124f9f._0x2e4382)],'truncated':_0x318174[_0x562ee9(0x42e,_0x124f9f._0x41676e,0x346,0x525)]>_0x2b92db,'limit':_0x2b92db,'entries':_0x132dd5}),void 0x0;}});}import{stat as _0x57be1}from'fs/promises';import _0x36c066 from'path';import{fileURLToPath as _0x44e357}from'url';function severityName(_0x1236a5){const _0x170f12={_0x370b32:0x6e,_0xf89669:0xa4,_0x523cb3:0x319,_0x4d55ac:0x3a7,_0x4c6532:0x419,_0x204e93:0x47d,_0x5b3574:0x2c7,_0x215fed:0x392};function _0x226f0f(_0xad54cc,_0x17243c,_0x3c31fe,_0x541c30){return _0x357fd3(_0xad54cc-0xba,_0x17243c-0x4e,_0x541c30-0x325,_0x17243c);}function _0x42c4da(_0xdaa361,_0x30f1a2,_0x5ef8b6,_0x3c15a8){return _0x357fd3(_0xdaa361-0x54,_0x30f1a2-0x145,_0x5ef8b6-0xa5,_0x3c15a8);}switch(_0x1236a5){case 0x1:return _0x42c4da(-_0x170f12._0x370b32,_0x170f12._0xf89669,0xad,0xe5);case 0x2:return _0x226f0f(_0x170f12._0x523cb3,_0x170f12._0x4d55ac,0x322,_0x170f12._0x4c6532);case 0x3:return'Information';case 0x4:return'Hint';default:return _0x226f0f(_0x170f12._0x204e93,_0x170f12._0x5b3574,0x27b,_0x170f12._0x215fed);}}function formatSingleHover(_0x1d4ce5){const _0x49fd7c={_0x15c53c:0xe,_0x489fa0:0x28e,_0x408fef:0x19a,_0x235c90:0x1c2,_0x58ebdb:0x2d7,_0xb0245e:0x35c,_0x4ca0dd:0x80,_0x1af2cc:0x1b1,_0x52baa3:0x16,_0x37dc98:0x10f,_0x242f04:0x1e,_0x257056:0x162,_0x25d731:0x5c,_0x236b92:0x17,_0x2cbb35:0x168,_0x48a651:0x93,_0x1dcf5c:0xa,_0x37e33f:0x143,_0xf4a629:0x60,_0x3b0c56:0xe,_0x4b9037:0x277,_0x108236:0x293,_0x16c44c:0x147,_0xa76fc3:0x32d,_0xeb8c61:0x293},_0x4e1e6a={_0x23c8d4:0x25,_0x10ec5e:0x258},_0x5e4ed7=_0x1d4ce5['contents'];function _0x316cf1(_0x1676ee,_0x5df81c,_0x275cff,_0xc589f3){return _0x1343ee(_0x275cff- -0x5d,_0x1676ee,_0x275cff-0x1e0,_0xc589f3-0x23);}if(typeof _0x5e4ed7===_0x316cf1(-_0x49fd7c._0x15c53c,0x21,0x3d,-0xb5))return _0x5e4ed7;function _0x3913cc(_0x43c398,_0x2a87e1,_0x251745,_0x435d31){return _0x357fd3(_0x43c398-0x52,_0x2a87e1-_0x4e1e6a._0x23c8d4,_0x251745- -_0x4e1e6a._0x10ec5e,_0x2a87e1);}if(Array[_0x3913cc(-_0x49fd7c._0x489fa0,-0x8b,-0x15c,-0x8d)](_0x5e4ed7))return _0x5e4ed7[_0x3913cc(-_0x49fd7c._0x408fef,-_0x49fd7c._0x235c90,-_0x49fd7c._0x58ebdb,-_0x49fd7c._0xb0245e)](_0xb4ccfd=>typeof _0xb4ccfd===_0x316cf1(0x5c,-0x4d,0x3d,0xf2)?_0xb4ccfd:_0xb4ccfd['value'])[_0x316cf1(0x7e,_0x49fd7c._0x4ca0dd,0x9f,_0x49fd7c._0x1af2cc)](Boolean)[_0x316cf1(-_0x49fd7c._0x52baa3,_0x49fd7c._0x37dc98,-_0x49fd7c._0x242f04,-_0x49fd7c._0x257056)]('\x0a\x0a');if(_0x316cf1(-_0x49fd7c._0x25d731,0x7d,-_0x49fd7c._0x236b92,0x51)in _0x5e4ed7)return _0x5e4ed7[_0x316cf1(-0x127,-_0x49fd7c._0x2cbb35,-_0x49fd7c._0x48a651,-_0x49fd7c._0x1dcf5c)];return _0x5e4ed7['language']?_0x3913cc(-_0x49fd7c._0x37e33f,-_0x49fd7c._0xf4a629,-0xc4,_0x49fd7c._0x3b0c56)+_0x5e4ed7['language']+'\x0a'+_0x5e4ed7[_0x3913cc(-0x333,-_0x49fd7c._0x4b9037,-_0x49fd7c._0x108236,-0x2a1)]+_0x3913cc(-0x14b,-0xf4,-0x11e,-0x65):_0x5e4ed7[_0x3913cc(-_0x49fd7c._0x16c44c,-_0x49fd7c._0xa76fc3,-_0x49fd7c._0xeb8c61,-0x15e)];}function formatHover(_0x11884a){const _0x3c51e0={_0x3925b6:0x259,_0x15fc0f:0x293,_0x2f4c62:0x21a,_0x3f81a6:0x27,_0x8321e3:0xca},_0x398df8={_0x43ea70:0xab,_0x460454:0x37};if(_0x11884a[_0x3354ec(0x274,_0x3c51e0._0x3925b6,0x291,0x18c)]===0x0)return _0x3354ec(0x20a,0x314,0x25c,0x15b);function _0x3354ec(_0x594e8c,_0x27de49,_0x2d97a3,_0x42548f){return _0x1343ee(_0x594e8c-0x254,_0x42548f,_0x2d97a3-0x83,_0x42548f-0x180);}function _0x3aefc3(_0xd679a,_0x972435,_0x41ffff,_0xad17fc){return _0x357fd3(_0xd679a-_0x398df8._0x43ea70,_0x972435-_0x398df8._0x460454,_0xd679a- -0x103,_0x41ffff);}return _0x11884a['map'](formatSingleHover)[_0x3354ec(_0x3c51e0._0x15fc0f,_0x3c51e0._0x2f4c62,0x2b6,0x2d9)](_0x3aefc3(-0xd4,-0xb6,-_0x3c51e0._0x3f81a6,-_0x3c51e0._0x8321e3));}function locationPath(_0x51e705){const _0x39d342={_0x5c411a:0xfa,_0x2cdc2b:0xab,_0xb8ed0f:0x240,_0x252c5c:0x93},_0xde7893={_0x5c988b:0xe6};if(!_0x51e705[_0x3973a1(-_0x39d342._0x5c411a,-_0x39d342._0x2cdc2b,-_0x39d342._0xb8ed0f,-_0x39d342._0x252c5c)]('file://'))return _0x51e705;function _0x3973a1(_0x56e193,_0x35cddb,_0x5ec714,_0x3a5215){return _0x1343ee(_0x56e193- -_0xde7893._0x5c988b,_0x35cddb,_0x5ec714-0xf8,_0x3a5215-0x126);}return _0x44e357(_0x51e705);}function formatLocations(_0x31ce60){const _0x45f8ca={_0x3a99fe:0x1bd,_0x26c144:0x2b3,_0x3f51f2:0x18a,_0x5ef58f:0x1fa,_0x42c8e1:0x33b,_0x32c7c9:0x142},_0x214392={_0x3541e6:0x32e,_0x4d23ba:0x3e3,_0xd05b12:0xf,_0x4452b2:0x131,_0x3f3e70:0x47,_0xf1441c:0x5c8,_0x50eee4:0x647,_0x2f4a2d:0x64d,_0x40dbab:0x49d,_0x3a5a7b:0x5aa},_0x55c1f8={_0x2cb9e3:0x30},_0x4023ad={_0x1da3cf:0x108,_0x276f5e:0xdf},_0x2c8b44={_0x4ce6f2:0x239};function _0x33b40b(_0xbcacb,_0x31d212,_0x5ee76b,_0x4364c9){return _0x1343ee(_0xbcacb- -_0x2c8b44._0x4ce6f2,_0x5ee76b,_0x5ee76b-0x76,_0x4364c9-0x107);}if(_0x31ce60['length']===0x0)return _0x33b40b(-0x268,-_0x45f8ca._0x3a99fe,-0x13a,-0x20d);function _0x362170(_0x5ec75d,_0x34d202,_0x50d751,_0x1371c8){return _0x1343ee(_0x1371c8-0x1ac,_0x34d202,_0x50d751-_0x4023ad._0x1da3cf,_0x1371c8-_0x4023ad._0x276f5e);}return _0x31ce60[_0x33b40b(-_0x45f8ca._0x26c144,-0x26a,-_0x45f8ca._0x3f51f2,-0x275)](_0x16be0a=>{const _0x23a253={_0x2cf9c6:0xde,_0xa2f9fd:0x256};function _0x2d3f47(_0x5a0c27,_0x173098,_0x31ee30,_0x3dbbaa){return _0x362170(_0x5a0c27-_0x23a253._0x2cf9c6,_0x5a0c27,_0x31ee30-0x7,_0x3dbbaa-_0x23a253._0xa2f9fd);}function _0xd6213c(_0x2150d8,_0x198712,_0x23bb04,_0x1249f8){return _0x33b40b(_0x23bb04-_0x55c1f8._0x2cb9e3,_0x198712-0x18a,_0x198712,_0x1249f8-0x144);}const _0x168451=_0x16be0a[_0x2d3f47(_0x214392._0x3541e6,0x4ef,0x46c,_0x214392._0x4d23ba)][_0xd6213c(-0x7b,-_0x214392._0xd05b12,-_0x214392._0x4452b2,-_0x214392._0x3f3e70)];return locationPath(_0x16be0a['uri'])+':'+(_0x168451[_0x2d3f47(0x39a,_0x214392._0xf1441c,0x506,0x4b3)]+0x1)+':'+(_0x168451[_0x2d3f47(_0x214392._0x50eee4,_0x214392._0x2f4a2d,_0x214392._0x40dbab,_0x214392._0x3a5a7b)]+0x1);})[_0x33b40b(-_0x45f8ca._0x5ef58f,-_0x45f8ca._0x42c8e1,-0x205,-_0x45f8ca._0x32c7c9)]('\x0a');}function isDocumentSymbol(_0x4b86d8){const _0x51ce27={_0x30721e:0x33b},_0x1b352a={_0x73ed6b:0xff};function _0x48c149(_0x2fcd67,_0x4104e3,_0x87909b,_0x3bb22b){return _0x357fd3(_0x2fcd67-_0x1b352a._0x73ed6b,_0x4104e3-0xe4,_0x87909b-0x2c3,_0x2fcd67);}return'range'in _0x4b86d8&&_0x48c149(0x36a,0x3a7,_0x51ce27._0x30721e,0x40d)in _0x4b86d8;}function formatSymbols(_0x474f5d){const _0x4884d4={_0x1fa71c:0x15,_0x285b17:0x2f,_0x119913:0x1e1,_0x1139ca:0x119,_0x56bff1:0x12e},_0xb0304c={_0x463cc7:0x44a,_0x3d3e3c:0x393,_0xdc3f45:0xf,_0x14a43d:0x2d6,_0x4a1bbe:0x2e6,_0x3fa13f:0xfe,_0x4ece6f:0x296,_0x5e21ad:0xa1,_0x49c58a:0x57,_0x34e049:0xe5,_0x3cf0ff:0x1ff,_0x353757:0x222,_0x11605c:0x189,_0x5ee5da:0x1ac,_0x286863:0x5b,_0xaea837:0x5,_0x540e96:0x9f,_0x36e5fb:0x150,_0x4720b4:0x77,_0x3666aa:0x16c,_0x4bcc1c:0x202,_0x46ef95:0x1dc,_0x1c7e36:0x188,_0x23038c:0x1ef,_0x3e978f:0x20,_0x21c684:0x1ca,_0x452c96:0xc1,_0x3b5745:0x1bd},_0x3fbade={_0x3ede87:0x17e},_0x42ee72={_0x1a8ea0:0x3c,_0x159bc7:0x12a,_0x28989b:0x19e},_0x174435={_0x2b78d2:0x102,_0x124e02:0x1aa};function _0x2d46b1(_0x36c227,_0x322863,_0x4dddb1,_0x5d1299){return _0x1343ee(_0x5d1299- -_0x174435._0x2b78d2,_0x36c227,_0x4dddb1-_0x174435._0x124e02,_0x5d1299-0x11);}function _0x711070(_0xdac5e8,_0x303933,_0x3975bd,_0x29405b){return _0x357fd3(_0xdac5e8-_0x42ee72._0x1a8ea0,_0x303933-_0x42ee72._0x159bc7,_0x3975bd- -_0x42ee72._0x28989b,_0x29405b);}if(_0x474f5d['length']===0x0)return _0x711070(0x129,_0x4884d4._0x1fa71c,_0x4884d4._0x285b17,0xd7);return _0x474f5d[_0x711070(-_0x4884d4._0x119913,-0x343,-0x21d,-0x268)](_0x1a87d6=>{const _0x760cfe={_0x12fffa:0x18a,_0xe3e693:0x2e};function _0x2cee9b(_0x416ba0,_0x54a742,_0x45d5b6,_0x2b4160){return _0x711070(_0x416ba0-0x44,_0x54a742-_0x3fbade._0x3ede87,_0x45d5b6-0xbc,_0x2b4160);}function _0x5d9616(_0x4440a4,_0x353268,_0x4b86e5,_0x4a3be0){return _0x2d46b1(_0x353268,_0x353268-_0x760cfe._0x12fffa,_0x4b86e5-_0x760cfe._0xe3e693,_0x4a3be0-0x310);}if(isDocumentSymbol(_0x1a87d6))return _0x1a87d6['name']+'\x20('+_0x1a87d6['kind']+_0x5d9616(_0xb0304c._0x463cc7,_0xb0304c._0x3d3e3c,0x2d0,0x3ba)+(_0x1a87d6[_0x5d9616(0x28f,0x2f3,0x20d,0x1ef)][_0x2cee9b(-0x20,0xa,-_0xb0304c._0xdc3f45,-0x7b)]['line']+0x1)+':'+(_0x1a87d6['range'][_0x5d9616(0x2b8,_0xb0304c._0x14a43d,0x226,_0xb0304c._0x4a1bbe)][_0x2cee9b(0x1f1,0x59,0xc1,0x149)]+0x1)+']';return _0x1a87d6[_0x5d9616(0x267,_0xb0304c._0x3fa13f,_0xb0304c._0x4ece6f,0x18c)]+'\x20('+_0x1a87d6[_0x2cee9b(-0xed,-0x81,-_0xb0304c._0x5e21ad,-_0xb0304c._0x49c58a)]+')\x20'+locationPath(_0x1a87d6[_0x5d9616(0x237,0x1d9,_0xb0304c._0x34e049,0x16c)][_0x5d9616(0xef,0x2f2,_0xb0304c._0x3cf0ff,_0xb0304c._0x353757)])+':'+(_0x1a87d6[_0x2cee9b(-0x1ae,-0x23e,-_0xb0304c._0x11605c,-_0xb0304c._0x5ee5da)][_0x2cee9b(-0xf4,-0x24a,-0x106,0x44)]['start'][_0x2cee9b(_0xb0304c._0x286863,-0xf6,-0x36,_0xb0304c._0xaea837)]+0x1)+':'+(_0x1a87d6[_0x5d9616(_0xb0304c._0x540e96,_0xb0304c._0x36e5fb,_0xb0304c._0x4720b4,_0xb0304c._0x3666aa)][_0x5d9616(_0xb0304c._0x4bcc1c,_0xb0304c._0x46ef95,_0xb0304c._0x1c7e36,_0xb0304c._0x23038c)]['start'][_0x2cee9b(_0xb0304c._0x3e978f,_0xb0304c._0x21c684,_0xb0304c._0x452c96,_0xb0304c._0x3b5745)]+0x1);})[_0x2d46b1(-_0x4884d4._0x1139ca,0x3e,-_0x4884d4._0x56bff1,-0xc3)]('\x0a');}function formatDiagnostics(_0x1ab6c3){const _0x28ab11={_0x568df4:0x5b,_0x3ef565:0x85,_0x1bc554:0x188,_0x3fa837:0x109,_0x4dd374:0x1c2},_0x16cb73={_0x4c53c7:0x2d6,_0x1d3329:0x270,_0x43adf0:0x1b3,_0x519572:0x28f,_0x1cde37:0x3ca,_0x67bb5e:0x2a0,_0x33dca8:0x249,_0x84030f:0x32f,_0x10e29d:0x2b4,_0x4e4e51:0x33f},_0x4a3f45={_0x3ff679:0x183,_0x3e8f6c:0x88,_0x4821d0:0x72},_0x527661={_0x33d1cb:0x1b0,_0x2b932c:0x34b};function _0x4e0643(_0x40fdba,_0x7781e0,_0x4a7420,_0x2fe3c9){return _0x357fd3(_0x40fdba-_0x527661._0x33d1cb,_0x7781e0-0x1aa,_0x40fdba-_0x527661._0x2b932c,_0x7781e0);}function _0x340056(_0x3e8a6f,_0x5bd649,_0x2fdaf1,_0x474141){return _0x1343ee(_0x5bd649-_0x4a3f45._0x3ff679,_0x474141,_0x2fdaf1-_0x4a3f45._0x3e8f6c,_0x474141-_0x4a3f45._0x4821d0);}if(_0x1ab6c3[_0x340056(_0x28ab11._0x568df4,0x1a3,0x11f,_0x28ab11._0x3ef565)]===0x0)return'No\x20diagnostics';return _0x1ab6c3[_0x340056(_0x28ab11._0x1bc554,_0x28ab11._0x3fa837,0x136,0x7d)](_0x4c1388=>{const _0x509984={_0x39c408:0x161,_0x21281c:0x1b2},_0x469ae7={_0x1cd559:0x1e};function _0x337bd0(_0x553d46,_0x198476,_0x5bb3c1,_0x62aecc){return _0x340056(_0x553d46-0x9d,_0x5bb3c1-0x15,_0x5bb3c1-_0x469ae7._0x1cd559,_0x198476);}const _0x1c4f2e=_0x4c1388['range'][_0x337bd0(0x33f,_0x16cb73._0x4c53c7,_0x16cb73._0x1d3329,0x337)];function _0x46997d(_0x496d68,_0x5d15c3,_0x59c334,_0x2e3219){return _0x4e0643(_0x5d15c3- -0x1bf,_0x2e3219,_0x59c334-_0x509984._0x39c408,_0x2e3219-_0x509984._0x21281c);}return severityName(_0x4c1388[_0x46997d(_0x16cb73._0x43adf0,_0x16cb73._0x519572,_0x16cb73._0x1cde37,0x2ec)])+'\x20['+(_0x1c4f2e[_0x337bd0(_0x16cb73._0x67bb5e,0x384,0x249,0x220)]+0x1)+':'+(_0x1c4f2e[_0x46997d(_0x16cb73._0x33dca8,_0x16cb73._0x84030f,_0x16cb73._0x10e29d,0x37d)]+0x1)+']\x20'+_0x4c1388[_0x46997d(_0x16cb73._0x4e4e51,0x26e,0x29a,0x2bb)];})[_0x340056(0x85,_0x28ab11._0x4dd374,0x83,0x22b)]('\x0a');}function formatIncomingCalls(_0xa91c9c){const _0x496eb5={_0x24ff69:0x1e9,_0x2d6b00:0x25b,_0x2272d2:0x158,_0x16a938:0xbb,_0x496990:0x29,_0x30c500:0x38,_0x1f4f84:0x35,_0x35d4c1:0x243,_0x1a45df:0x27a,_0x1a7a19:0x235,_0x5bfaaf:0x26a},_0xa0acfd={_0x4d7458:0xaf,_0x25e769:0x18f,_0x481138:0x161},_0x41bed8={_0x47b45c:0x10e};function _0x575f62(_0x354d39,_0x64a9ef,_0x12de62,_0x2c078b){return _0x357fd3(_0x354d39-_0x41bed8._0x47b45c,_0x64a9ef-0x3e,_0x64a9ef-0x240,_0x12de62);}if(_0xa91c9c[_0x575f62(_0x496eb5._0x24ff69,_0x496eb5._0x2d6b00,_0x496eb5._0x2272d2,0x154)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x3cdd22(_0x445236,_0x2d6fc1,_0xfcfc4b,_0x3b14ad){return _0x1343ee(_0x3b14ad-_0xa0acfd._0x4d7458,_0xfcfc4b,_0xfcfc4b-_0xa0acfd._0x25e769,_0x3b14ad-_0xa0acfd._0x481138);}return _0xa91c9c[_0x3cdd22(_0x496eb5._0x16a938,_0x496eb5._0x496990,_0x496eb5._0x30c500,_0x496eb5._0x1f4f84)](_0x41aa10=>_0x41aa10[_0x575f62(0x3d5,0x305,0x362,0x317)][_0x3cdd22(-0xd4,0x26,0xf4,0x2d)])[_0x575f62(_0x496eb5._0x35d4c1,_0x496eb5._0x1a45df,_0x496eb5._0x1a7a19,_0x496eb5._0x5bfaaf)]('\x0a');}function formatOutgoingCalls(_0x577552){const _0x51d25c={_0x12f7a0:0xde,_0x139a4e:0x28,_0x52534a:0x5f1,_0x16649d:0x4e1},_0x33cc12={_0x2abeee:0xf1,_0x3f7a5b:0xfd},_0x4870cc={_0x563754:0x1af};if(_0x577552[_0x2b91b1(0x118,-0x32,0xea,_0x51d25c._0x12f7a0)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x5adc00(_0x2d9c5e,_0x3990b8,_0x3c0b35,_0x1a2de3){return _0x357fd3(_0x2d9c5e-0x13b,_0x3990b8-_0x4870cc._0x563754,_0x1a2de3-0x4a7,_0x3c0b35);}function _0x2b91b1(_0x368b0d,_0x505977,_0x23cdfb,_0x11d6df){return _0x357fd3(_0x368b0d-_0x33cc12._0x2abeee,_0x505977-0x29,_0x368b0d-_0x33cc12._0x3f7a5b,_0x11d6df);}return _0x577552[_0x2b91b1(0x7e,-0x14,-_0x51d25c._0x139a4e,0x1b8)](_0x232b23=>_0x232b23['to'][_0x5adc00(0x498,0x3e3,0x53f,0x420)])[_0x5adc00(0x586,_0x51d25c._0x52534a,0x3c9,_0x51d25c._0x16649d)]('\x0a');}function toStructured(_0x596734){const _0x1991de={_0x35274e:0x5fa,_0x82eb2d:0x660,_0x598d42:0x656,_0x3d5650:0x536,_0x24242d:0x60d},_0x394753={_0x1ffd11:0x186,_0xd111d2:0x19c,_0x569c4c:0x428},_0x3870de={_0x4299ff:0x119};function _0x387891(_0x403b8f,_0x13d9dc,_0x437d45,_0x536091){return _0x1343ee(_0x437d45-0x2a6,_0x536091,_0x437d45-_0x3870de._0x4299ff,_0x536091-0xac);}function _0x399525(_0x5bca43,_0x4eb4da,_0x4e3ddb,_0x2342ac){return _0x357fd3(_0x5bca43-_0x394753._0x1ffd11,_0x4eb4da-_0x394753._0xd111d2,_0x4eb4da-_0x394753._0x569c4c,_0x4e3ddb);}return JSON[_0x399525(0x6ee,_0x1991de._0x35274e,0x60f,_0x1991de._0x82eb2d)](JSON[_0x399525(_0x1991de._0x598d42,_0x1991de._0x3d5650,0x67a,_0x1991de._0x24242d)](_0x596734));}async function assertFile(_0x36a699){const _0xe028ea={_0x18f011:0xdf,_0x69b749:0x5de,_0x29588f:0x644},_0x10d566={_0x2d4543:0x1b7,_0x1df976:0xf5},_0x4c0384={_0x18dfa3:0x44c},_0x4fbbb1=await _0x57be1(_0x36a699);function _0x39b5f7(_0x486c0f,_0x3c495d,_0x42aadd,_0x5e9791){return _0x1343ee(_0x3c495d-_0x4c0384._0x18dfa3,_0x42aadd,_0x42aadd-0x1cf,_0x5e9791-0x13f);}function _0x3acf0d(_0x10a03d,_0xe4abaf,_0x4f6384,_0x15ae85){return _0x357fd3(_0x10a03d-0x157,_0xe4abaf-_0x10d566._0x2d4543,_0xe4abaf- -_0x10d566._0x1df976,_0x10a03d);}if(!_0x4fbbb1[_0x3acf0d(-0x157,-_0xe028ea._0x18f011,-0x1e4,-0xb6)]())throw new ToolExecutionError(_0x39b5f7(_0xe028ea._0x69b749,0x54f,_0xe028ea._0x29588f,0x516)+_0x36a699,{'path':_0x36a699});}function validatePosition(_0x56ef95,_0xf4f177){const _0x4df86f={_0x1cfed4:0x54d,_0x5a363e:0x491},_0x526c86={_0x32477d:0xc2},_0x5e7d48={_0x588d5b:0x3e0,_0xaa0bec:0x13c,_0x57dfdc:0xc4};if(!Number[_0x394e0e(0x680,0x5de,0x62a,_0x4df86f._0x1cfed4)](_0x56ef95)||_0x56ef95<0x1)throw new ToolExecutionError(_0x2f5352(0x358,0x3bc,0x480,0x35d),{'line':_0x56ef95});function _0x2f5352(_0x3e3b6a,_0x11c9b0,_0x52161e,_0x45b53f){return _0x1343ee(_0x3e3b6a-_0x5e7d48._0x588d5b,_0x45b53f,_0x52161e-_0x5e7d48._0xaa0bec,_0x45b53f-_0x5e7d48._0x57dfdc);}function _0x394e0e(_0x17603b,_0x2977c1,_0x5441e9,_0x3df76b){return _0x357fd3(_0x17603b-0x1dc,_0x2977c1-_0x526c86._0x32477d,_0x3df76b-0x43a,_0x2977c1);}if(!Number[_0x394e0e(0x4f3,_0x4df86f._0x5a363e,0x521,0x54d)](_0xf4f177)||_0xf4f177<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0xf4f177});}function createLspTool(_0x4812ef={}){const _0x53dbfb={_0x57042c:0x594,_0x44dcdb:0x50e,_0x30d1b3:0x134,_0x16a13a:0x297,_0x1f5121:0x164,_0x1b393c:0x212,_0x1b8c41:0x293,_0x1316e8:0x1e6,_0x535f18:0x158,_0x18d232:0x3e6,_0x5f5667:0x467,_0x279d4b:0x45e,_0x1fb7c7:0x360,_0x267826:0x38c,_0x545aad:0x28b,_0x3ec7c2:0x384,_0x1340a8:0x3ec,_0x4b5bc6:0x343,_0x52b20f:0x262,_0x12eb9a:0x2df,_0x26ed2a:0x249,_0x584e80:0x309,_0x4d53df:0x23b,_0x5ac25a:0x185,_0x2d9682:0x244,_0x5889b4:0x296,_0x312ba4:0x36f,_0x4817ba:0x444,_0x47cce5:0x2f4,_0x4d8cc2:0x21a,_0x45e896:0x169,_0x2fe775:0x30,_0xf1b8bf:0x4c8,_0x2e2243:0x63b,_0x2d3fc6:0x128,_0x50f89b:0x1d1,_0x38ad70:0x161,_0x283012:0x31d,_0x260c27:0x331,_0x9f6d82:0x3f3,_0xf2e391:0x17a,_0x23c138:0x115,_0x8334b6:0xf1},_0x59a471={_0x2d4baa:0x736,_0x308ed8:0x5d2,_0x2c3819:0x642,_0x183f2c:0x74,_0x15ea85:0x3c,_0x5180dc:0x191,_0x4d52db:0x7c,_0x3fa6a3:0x5ae,_0x29646a:0x509,_0x3f81c2:0x60f,_0x86c242:0x55d,_0x1b716d:0x10,_0xb3891:0x5a9,_0x316112:0x4eb,_0x3acc25:0x3ee,_0xccf68b:0x58d,_0x45bf04:0x470,_0x2e295a:0x3f0,_0x47c3df:0x411,_0x55ca47:0x4ff,_0x258c43:0x5c8,_0x103ca5:0x5a5,_0x7f19b1:0x4b4,_0x49fa7e:0x562,_0x28dff7:0x54e,_0x459f6f:0x59b,_0x15fc51:0xb4,_0x5c53f6:0x83,_0x172bf6:0x111,_0x70b161:0x1a2,_0xd9bf1e:0x245,_0x34fe3d:0x8d,_0x310872:0x452,_0x321da8:0x4a8,_0xe7a044:0x4ac,_0x35fad3:0x5c7,_0x4508e2:0x488,_0x4ddc56:0x4ac,_0x376a82:0x552,_0x277098:0x6ba,_0x5deb75:0x8f,_0x28b341:0xdf,_0x569ac1:0x60,_0x1e48e4:0x69,_0x4a28f4:0x57,_0x366df6:0xd8,_0x27a4c0:0x170,_0xa83300:0x9c,_0x172b46:0x29c,_0x2c96ba:0x43f,_0x2af0b2:0x4a5,_0xc1b4a3:0x449,_0x351587:0x506,_0x5a7286:0x1b8,_0x4a65dc:0xb1,_0x235543:0x499,_0x533e82:0xed,_0xdfbf93:0x193,_0xadaa02:0x1ef},_0x5bcbeb={_0x51de1f:0x26b,_0x7c10aa:0x16c},_0x43cd76={_0x4d5e95:0xd9,_0x352e36:0x65};function _0x2d4923(_0x1583c6,_0x2444f5,_0x15e327,_0x5c1d18){return _0x357fd3(_0x1583c6-_0x43cd76._0x4d5e95,_0x2444f5-_0x43cd76._0x352e36,_0x5c1d18-0x40b,_0x15e327);}function _0x4218c8(_0x5349ee,_0x32397f,_0x118a62,_0x23c1d3){return _0x1343ee(_0x118a62- -_0x5bcbeb._0x51de1f,_0x23c1d3,_0x118a62-0x148,_0x23c1d3-_0x5bcbeb._0x7c10aa);}const _0x452475=_0x36c066[_0x2d4923(0x454,_0x53dbfb._0x57042c,_0x53dbfb._0x44dcdb,0x46e)](_0x4812ef[_0x4218c8(-_0x53dbfb._0x30d1b3,-_0x53dbfb._0x16a13a,-_0x53dbfb._0x1f5121,-_0x53dbfb._0x1b393c)]??process[_0x4218c8(-_0x53dbfb._0x1b8c41,-0x2e4,-_0x53dbfb._0x1316e8,-_0x53dbfb._0x535f18)]()),_0x3e4723=(_0x4812ef[_0x2d4923(_0x53dbfb._0x18d232,_0x53dbfb._0x5f5667,_0x53dbfb._0x279d4b,_0x53dbfb._0x1fb7c7)]??[])[_0x2d4923(0x425,0x45c,_0x53dbfb._0x267826,0x38c)](_0x468d6d=>_0x36c066[_0x2d4923(0x48e,0x43c,0x445,0x46e)](_0x468d6d)),_0x249374=_0x4812ef[_0x2d4923(_0x53dbfb._0x545aad,0x2ba,0x428,_0x53dbfb._0x3ec7c2)]??_0x2d4923(_0x53dbfb._0x1340a8,0x34a,_0x53dbfb._0x4b5bc6,0x415);return defineTool({'name':_0x249374,'description':_0x4218c8(-_0x53dbfb._0x52b20f,-0x36d,-0x2d4,-_0x53dbfb._0x12eb9a),'inputSchema':{'type':_0x4218c8(-_0x53dbfb._0x26ed2a,-_0x53dbfb._0x584e80,-0x21f,-0x1d2),'properties':{'operation':{'type':'string','enum':['goToDefinition','findReferences',_0x4218c8(-_0x53dbfb._0x4d53df,-_0x53dbfb._0x5ac25a,-0x226,-_0x53dbfb._0x2d9682),'documentSymbol',_0x4218c8(-_0x53dbfb._0x5889b4,-0x2d6,-0x1e7,-0x25f),'goToImplementation',_0x4218c8(-0x240,-_0x53dbfb._0x312ba4,-0x239,-0x13f),_0x4218c8(-0x474,-0x264,-0x326,-0x2f9),'outgoingCalls',_0x2d4923(0x274,0x2a6,_0x53dbfb._0x4817ba,0x38f)]},'filePath':{'type':_0x4218c8(-_0x53dbfb._0x47cce5,-_0x53dbfb._0x4d8cc2,-0x1d1,-_0x53dbfb._0x45e896)},'line':{'type':_0x4218c8(-0x1c5,-0x17d,-0x123,-_0x53dbfb._0x2fe775)},'character':{'type':_0x2d4923(_0x53dbfb._0xf1b8bf,_0x53dbfb._0x2e2243,0x4b6,0x54e)},'query':{'type':_0x4218c8(-0x141,-_0x53dbfb._0x2d3fc6,-_0x53dbfb._0x50f89b,-_0x53dbfb._0x38ad70)}},'required':[_0x2d4923(_0x53dbfb._0x283012,0x2e9,0x45a,0x402),_0x2d4923(_0x53dbfb._0x260c27,_0x53dbfb._0x9f6d82,0x33a,0x3b0),_0x4218c8(-_0x53dbfb._0xf2e391,-0x1e5,-0x1ba,-_0x53dbfb._0x23c138),_0x4218c8(0x47,-_0x53dbfb._0x8334b6,-0xc3,-_0x53dbfb._0x535f18)]},async *'execute'(_0x37cbd1){const _0x597f0f={_0x39642c:0x4c1},_0x4a2031=_0x4812ef[_0x502e16(0x65a,0x69d,0x602,_0x59a471._0x2d4baa)];if(!_0x4a2031)throw new ToolExecutionError('LSP\x20service\x20is\x20not\x20available');if(!_0x4a2031[_0x502e16(_0x59a471._0x308ed8,_0x59a471._0x2c3819,0x544,0x592)]())throw new ToolExecutionError(_0x5348a3(_0x59a471._0x183f2c,_0x59a471._0x15ea85,_0x59a471._0x5180dc,_0x59a471._0x4d52db));const _0x502b6b=_0x37cbd1[_0x502e16(0x5b0,_0x59a471._0x3fa6a3,0x463,0x58b)];validatePosition(_0x37cbd1['line'],_0x37cbd1[_0x502e16(_0x59a471._0x29646a,0x4f6,_0x59a471._0x3f81c2,_0x59a471._0x86c242)]);if(_0x502b6b===_0x5348a3(_0x59a471._0x1b716d,-0x13f,-0x69,-0x37)){if(!_0x37cbd1['query']?.['trim']())throw new ToolExecutionError(_0x5348a3(-0x129,0xad,-0x13a,-0x91));const _0x3cad32=await _0x4a2031[_0x502e16(0x608,_0x59a471._0xb3891,_0x59a471._0x316112,_0x59a471._0x3acc25)](_0x37cbd1['query'][_0x502e16(0x4cb,_0x59a471._0xccf68b,_0x59a471._0x45bf04,0x451)]());return yield createToolOutput(formatSymbols(_0x3cad32),{'operation':_0x502b6b,'query':_0x37cbd1['query'],'symbols':_0x3cad32}),void 0x0;}const _0x2ac78b=resolveAllowedPath(_0x452475,_0x3e4723,_0x37cbd1[_0x502e16(_0x59a471._0x2e295a,0x457,_0x59a471._0x47c3df,_0x59a471._0x55ca47)]);await assertFile(_0x2ac78b);if(!await _0x4a2031[_0x502e16(_0x59a471._0x258c43,_0x59a471._0x103ca5,_0x59a471._0x7f19b1,_0x59a471._0x49fa7e)](_0x2ac78b))throw new ToolExecutionError(_0x502e16(0x6a9,_0x59a471._0x28dff7,_0x59a471._0x459f6f,0x5a5)+_0x37cbd1[_0x5348a3(-_0x59a471._0x15fc51,-0x151,-_0x59a471._0x5c53f6,-_0x59a471._0x172bf6)],{'filePath':_0x37cbd1[_0x5348a3(-_0x59a471._0x70b161,-0xe5,-_0x59a471._0xd9bf1e,-0x111)]});function _0x5348a3(_0x323422,_0x2e34a9,_0x4396fe,_0x933771){return _0x2d4923(_0x323422-0x7f,_0x2e34a9-0x42,_0x4396fe,_0x933771- -_0x597f0f._0x39642c);}await _0x4a2031['touchFile'](_0x2ac78b,!![]);const _0x293562={'file':_0x2ac78b,'line':_0x37cbd1[_0x5348a3(_0x59a471._0x34fe3d,-0x108,0x7d,-0xa)]-0x1,'character':_0x37cbd1[_0x5348a3(0x1a0,-0x32,0x221,0xed)]-0x1};function _0x502e16(_0x3be731,_0x119a69,_0x46f808,_0x4b77c4){return _0x2d4923(_0x3be731-0x150,_0x119a69-0xff,_0x4b77c4,_0x46f808-0x61);}switch(_0x502b6b){case _0x502e16(_0x59a471._0x310872,_0x59a471._0x321da8,_0x59a471._0xe7a044,_0x59a471._0x35fad3):{const _0x1d93ef=await _0x4a2031[_0x502e16(0x5e5,_0x59a471._0x4508e2,_0x59a471._0x4ddc56,_0x59a471._0x376a82)](_0x293562);return yield createToolOutput(formatHover(_0x1d93ef),{'operation':_0x502b6b,'filePath':_0x2ac78b,'hover':_0x1d93ef}),void 0x0;}case'diagnostics':{const _0x29299d=await _0x4a2031[_0x502e16(_0x59a471._0x277098,0x65d,0x56d,0x4e3)](_0x2ac78b);return yield createToolOutput(formatDiagnostics(_0x29299d),{'operation':_0x502b6b,'filePath':_0x2ac78b,'diagnostics':_0x29299d}),void 0x0;}case _0x5348a3(-_0x59a471._0x5deb75,0x92,_0x59a471._0x28b341,_0x59a471._0x569ac1):{const _0x3aee2a=await _0x4a2031[_0x5348a3(-_0x59a471._0x1e48e4,0x13a,0x8e,_0x59a471._0x4a28f4)](_0x293562);return yield createToolOutput(formatLocations(_0x3aee2a),{'operation':_0x502b6b,'filePath':_0x2ac78b,'locations':_0x3aee2a}),void 0x0;}case _0x5348a3(0xb0,-0xd4,-0xdd,-0x81):{const _0x5d7ec3=await _0x4a2031['references'](_0x293562);return yield createToolOutput(formatLocations(_0x5d7ec3),{'operation':_0x502b6b,'filePath':_0x2ac78b,'locations':_0x5d7ec3}),void 0x0;}case _0x5348a3(-_0x59a471._0x366df6,-0x1dc,-0x1b1,-_0x59a471._0x27a4c0):{const _0x1e57de=await _0x4a2031[_0x5348a3(-0x54,-_0x59a471._0xa83300,-_0x59a471._0x172b46,-0x163)](_0x293562);return yield createToolOutput(formatLocations(_0x1e57de),{'operation':_0x502b6b,'filePath':_0x2ac78b,'locations':_0x1e57de}),void 0x0;}case _0x502e16(_0x59a471._0x2c96ba,_0x59a471._0x2af0b2,0x449,0x48d):{const _0x36ba03=await _0x4a2031[_0x502e16(0x456,0x4d1,_0x59a471._0xc1b4a3,_0x59a471._0x351587)](_0x2ac78b);return yield createToolOutput(formatSymbols(_0x36ba03),{'operation':_0x502b6b,'filePath':_0x2ac78b,'symbols':_0x36ba03}),void 0x0;}case _0x5348a3(-_0x59a471._0x5a7286,-0x94,_0x59a471._0x4a65dc,-0x89):{const _0x942c99=await _0x4a2031[_0x502e16(0x3c8,0x496,_0x59a471._0x235543,0x39a)](_0x293562);return yield createToolOutput(formatSymbols(_0x942c99),{'operation':_0x502b6b,'filePath':_0x2ac78b,'symbols':toStructured(_0x942c99)}),void 0x0;}case'incomingCalls':{const _0x3e01d7=await _0x4a2031['incomingCalls'](_0x293562);return yield createToolOutput(formatIncomingCalls(_0x3e01d7),{'operation':_0x502b6b,'filePath':_0x2ac78b,'calls':toStructured(_0x3e01d7)}),void 0x0;}case _0x5348a3(_0x59a471._0x533e82,_0x59a471._0xdfbf93,_0x59a471._0xadaa02,0xe5):{const _0x129a3a=await _0x4a2031['outgoingCalls'](_0x293562);return yield createToolOutput(formatOutgoingCalls(_0x129a3a),{'operation':_0x502b6b,'filePath':_0x2ac78b,'calls':toStructured(_0x129a3a)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x379786,readFile as _0x4d3522,writeFile as _0x168237}from'fs/promises';import{join as _0x438555}from'path';function sanitizeStorageKey(_0x1573ab){const _0x5b8fae={_0x271407:0x166,_0x28dc91:0x29,_0x1fde36:0x98},_0x11d8a2={_0x263259:0x161};function _0x1c0c9f(_0x28c8b0,_0x5a2aa9,_0x3bb118,_0x224e83){return _0x357fd3(_0x28c8b0-0x84,_0x5a2aa9-_0x11d8a2._0x263259,_0x224e83- -0xba,_0x28c8b0);}function _0x2a8317(_0x22ec21,_0x154e6e,_0x58f110,_0x3fd416){return _0x1343ee(_0x3fd416- -0x12a,_0x154e6e,_0x58f110-0x9b,_0x3fd416-0x54);}return _0x1573ab[_0x1c0c9f(0xd,-_0x5b8fae._0x271407,-0x260,-0x122)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||_0x2a8317(-0x148,-0x12e,_0x5b8fae._0x28dc91,-_0x5b8fae._0x1fde36);}function storagePath(_0x3241bf){const _0x22eaee={_0x1e8dc9:0x1b7,_0x4576fb:0xda,_0x2f50c5:0x5b,_0x26f07b:0xbb,_0x24f0e5:0x11a},_0x29df7b={_0x260a3c:0xc5,_0x1520ca:0x1b1},_0x44c397={_0x3b8aa7:0x1ed,_0x3ce4b1:0xf0},_0x181093=sanitizeStorageKey(_0x3241bf[_0x57ce54(-_0x22eaee._0x1e8dc9,-0x209,-0x4e,-0x118)][_0x57ce54(_0x22eaee._0x4576fb,0xcd,-0x5f,_0x22eaee._0x2f50c5)]?.[_0x57ce54(-_0x22eaee._0x26f07b,-_0x22eaee._0x24f0e5,0x73,-0x95)]??_0x3241bf['serverName']);function _0x57ce54(_0x4a54cb,_0x182689,_0x1775e9,_0x49f2f1){return _0x357fd3(_0x4a54cb-_0x44c397._0x3b8aa7,_0x182689-0x125,_0x49f2f1- -_0x44c397._0x3ce4b1,_0x1775e9);}function _0x1457e5(_0x33a44c,_0x35ba08,_0x1faa61,_0x1e51fe){return _0x1343ee(_0x1faa61-_0x29df7b._0x260a3c,_0x33a44c,_0x1faa61-_0x29df7b._0x1520ca,_0x1e51fe-0xa7);}return _0x438555(_0x3241bf['storageDir'],_0x181093+'.json');}async function readStore(_0x459037){const _0x4b1880={_0x4735eb:0x2f2,_0x293047:0x20c,_0x13a213:0xc,_0x13d8eb:0x5,_0x4fb46f:0x363,_0x4ea613:0x33c,_0x1b85bf:0x2bc},_0x22fddd={_0x3ad1:0x214,_0x4f127d:0x1c4};function _0x386771(_0x29ef02,_0x593049,_0x395955,_0x2a42b7){return _0x1343ee(_0x29ef02-_0x22fddd._0x3ad1,_0x2a42b7,_0x395955-0x74,_0x2a42b7-_0x22fddd._0x4f127d);}function _0x1dd650(_0x128fe4,_0x3eaa88,_0x453bb7,_0x3aa42f){return _0x1343ee(_0x3aa42f- -0x2e,_0x128fe4,_0x453bb7-0x1a4,_0x3aa42f-0x10a);}try{return JSON['parse'](await _0x4d3522(_0x459037,_0x386771(_0x4b1880._0x4735eb,0x37e,0x272,_0x4b1880._0x293047)));}catch(_0x5efdb4){if(_0x5efdb4 instanceof Error&&_0x1dd650(_0x4b1880._0x13a213,0x1f,-0x138,-_0x4b1880._0x13d8eb)in _0x5efdb4&&_0x5efdb4['code']===_0x386771(0x33d,_0x4b1880._0x4fb46f,_0x4b1880._0x4ea613,_0x4b1880._0x1b85bf))return{};throw _0x5efdb4;}}async function writeStore(_0x337a20,_0x25a20f){const _0x10606e={_0xde1014:0x535,_0x300afd:0x3ac,_0xbfaa48:0x39a,_0x98cd36:0x472,_0x2fb72f:0x48d},_0x1f3131={_0x1e74db:0xc3},_0x208b29={_0x153b1b:0x3af,_0x345f4a:0xec};function _0x8ae5f2(_0x29290c,_0x138f64,_0x1fe1a2,_0x589c96){return _0x1343ee(_0x1fe1a2-_0x208b29._0x153b1b,_0x29290c,_0x1fe1a2-_0x208b29._0x345f4a,_0x589c96-0x168);}await _0x379786(_0x438555(_0x337a20,'..'),{'recursive':!![]});function _0x1ca237(_0x48244c,_0x103c59,_0x497f7c,_0x52b667){return _0x357fd3(_0x48244c-0x58,_0x103c59-_0x1f3131._0x1e74db,_0x497f7c-0x4,_0x52b667);}await _0x168237(_0x337a20,JSON[_0x8ae5f2(_0x10606e._0xde1014,_0x10606e._0x300afd,0x4c2,_0x10606e._0xbfaa48)](_0x25a20f,null,0x2),_0x8ae5f2(0x4e4,_0x10606e._0x98cd36,_0x10606e._0x2fb72f,0x498));}async function updateStore(_0x40cfc8,_0x2d8f8c){const _0x28a14c=await readStore(_0x40cfc8);_0x2d8f8c(_0x28a14c),await writeStore(_0x40cfc8,_0x28a14c);}function createMcpOAuthProvider(_0x166c21){const _0x4b0e1a={_0x153069:0x22b,_0x2d0c94:0x103,_0x2cec09:0x1b2,_0x1c3ebe:0x134,_0xa79134:0x219,_0x1bb542:0x184,_0x5131a0:0x12a,_0x5ee90d:0x15d,_0x466c12:0x1ba,_0x1f118d:0x2bb,_0x2c0b05:0x42,_0x2a6345:0x127,_0xd56ad1:0x10f,_0x18a84b:0x207,_0x53c4c1:0x52,_0x353ca0:0xd,_0xd4dc60:0x31,_0x479d1c:0x6f,_0x18ca92:0x94,_0x2d3bc3:0x138},_0x37cbc6={_0x4b12de:0x622,_0xbbebe4:0x72f,_0x5d4dd5:0x618,_0x1340db:0x274,_0x31985b:0x2bc,_0x4c6da5:0xe8,_0x3a1743:0x1a6,_0x17c39b:0x310,_0x14866a:0x2f0,_0x30ac67:0x1df,_0xa47591:0x4d2,_0x351575:0x567,_0x4485c7:0x5ea,_0x1604b4:0x4f7,_0x13cdc5:0x139,_0x3c3ed8:0x2ed,_0x449447:0x15e,_0x486879:0x96,_0x1cd61a:0x18c,_0x5e8833:0x2bc,_0x21eb7a:0x470,_0x3d8a0b:0x3e9,_0x100789:0x5a1,_0x56b5f1:0x45d},_0xae176a={_0x353fd6:0x2cf},_0xdaaa7c={_0x3257bb:0xd4},_0xd5f68b={_0x3c70b7:0x140,_0x5f2739:0xb1},_0x1164f9={_0x3c654d:0x108,_0x4240c1:0x9e},_0x4cbfab={_0x43a86c:0xea,_0xf160a3:0x106},_0x3ad1a5={_0x18fbe6:0x35f,_0x4b08e4:0x502,_0x2ebfe4:0x41f},_0x4810e8={_0x3a099a:0x9b,_0x2129b5:0x99,_0x261b9d:0x255,_0x540ad2:0x299,_0x45f110:0x284},_0x1761c5={_0x95c908:0x117,_0x4a0cd4:0xb9},_0x1e16c5={_0x4616e7:0x163},_0x32f79f={_0x3d8f89:0x6f},_0x1d6c82={_0x47fbfc:0x376},_0x53e620={_0xb2d596:0x1ef};function _0x33fce8(_0x147192,_0x23fe35,_0x5bc3a2,_0x1ed2cb){return _0x1343ee(_0x5bc3a2-0x145,_0x1ed2cb,_0x5bc3a2-0xdf,_0x1ed2cb-0xec);}const _0xea087f=storagePath(_0x166c21),_0x2d840d=_0x166c21['config'][_0x2e5e21(_0x4b0e1a._0x153069,_0x4b0e1a._0x2d0c94,0x20c,_0x4b0e1a._0x2cec09)]?.[_0x2e5e21(_0x4b0e1a._0x1c3ebe,-0x51,0x8c,0xbb)]?.[_0x33fce8(_0x4b0e1a._0xa79134,0x29a,_0x4b0e1a._0x1bb542,_0x4b0e1a._0x5131a0)]('\x20');function _0x2e5e21(_0x1601af,_0x221dad,_0xe45b53,_0x807d0a){return _0x1343ee(_0xe45b53-0xbc,_0x221dad,_0xe45b53-0x1de,_0x807d0a-_0x53e620._0xb2d596);}const _0x31cffc={'client_name':_0x2e5e21(_0x4b0e1a._0x5ee90d,0x208,_0x4b0e1a._0x466c12,0xbc),'redirect_uris':[_0x166c21[_0x33fce8(0x1c6,0x210,_0x4b0e1a._0x1f118d,0x1ab)]],'grant_types':[_0x2e5e21(_0x4b0e1a._0x2c0b05,_0x4b0e1a._0x2a6345,0xcc,_0x4b0e1a._0xd56ad1),_0x2e5e21(_0x4b0e1a._0x18a84b,0x4e,0xde,-_0x4b0e1a._0x53c4c1)],'response_types':[_0x2e5e21(-_0x4b0e1a._0x353ca0,0x16d,0xe5,0x98)],'token_endpoint_auth_method':_0x2e5e21(-0x77,_0x4b0e1a._0xd4dc60,0x90,-_0x4b0e1a._0x479d1c),..._0x2d840d?{'scope':_0x2d840d}:{}};return{'clientMetadataUrl':_0x166c21[_0x2e5e21(0x77,0x179,0x99,_0x4b0e1a._0x18ca92)][_0x2e5e21(_0x4b0e1a._0x2d3bc3,0x123,0x20c,0x151)]?.['clientMetadataUrl'],get 'redirectUrl'(){const _0x421d33={_0x158420:0x4d,_0x4969e6:0x34};function _0x467c7e(_0x1ac6b7,_0x145b3c,_0x5c8416,_0xb777b2){return _0x2e5e21(_0x1ac6b7-_0x421d33._0x158420,_0x1ac6b7,_0x5c8416-0x252,_0xb777b2-_0x421d33._0x4969e6);}return _0x166c21[_0x467c7e(0x4c0,0x3fe,0x484,_0x1d6c82._0x47fbfc)];},get 'clientMetadata'(){return _0x31cffc;},async 'state'(){const _0x5e8dcc=await readStore(_0xea087f);if(_0x5e8dcc[_0x2422e2(0x1be,_0x4810e8._0x3a099a,0x2f4,_0x4810e8._0x2129b5)])return _0x5e8dcc[_0x284ccd(-_0x4810e8._0x261b9d,-_0x4810e8._0x540ad2,-_0x4810e8._0x45f110,-0x189)];function _0x2422e2(_0x1308e6,_0x121bec,_0x49a7d0,_0x42ff3f){return _0x2e5e21(_0x1308e6-0x16f,_0x42ff3f,_0x1308e6-0x1bf,_0x42ff3f-_0x32f79f._0x3d8f89);}const _0x392dfe=randomUUID();function _0x284ccd(_0x1c65aa,_0x2d2a17,_0x200a23,_0x511355){return _0x2e5e21(_0x1c65aa-0x45,_0x511355,_0x200a23- -0x283,_0x511355-_0x1e16c5._0x4616e7);}return await updateStore(_0xea087f,_0x310f8e=>{const _0x803bcd={_0x2dc8bb:0x1b};function _0x23968d(_0x205a17,_0x77f07,_0x33da9d,_0x3937dd){return _0x2422e2(_0x3937dd- -0x105,_0x77f07-_0x803bcd._0x2dc8bb,_0x33da9d-0x48,_0x33da9d);}_0x310f8e[_0x23968d(_0x1761c5._0x95c908,0x21,-0x23,_0x1761c5._0x4a0cd4)]=_0x392dfe;}),_0x392dfe;},async 'clientInformation'(){const _0x92b8c1={_0x173b2:0x106};function _0x5c6a6e(_0x46665a,_0x1d3b6e,_0x2660fc,_0x1ca5a3){return _0x33fce8(_0x46665a-0x25,_0x1d3b6e-_0x92b8c1._0x173b2,_0x1ca5a3-0x345,_0x1d3b6e);}return(await readStore(_0xea087f))[_0x5c6a6e(_0x3ad1a5._0x18fbe6,_0x3ad1a5._0x4b08e4,_0x3ad1a5._0x2ebfe4,0x487)];},async 'saveClientInformation'(_0x122772){await updateStore(_0xea087f,_0x431279=>{function _0x4b27cd(_0x31b518,_0x1d574f,_0x44ae1b,_0x5c2e76){return _0x1358(_0x31b518- -0x168,_0x44ae1b);}_0x431279[_0x4b27cd(-0x23,_0x4cbfab._0x43a86c,-0x11,_0x4cbfab._0xf160a3)]=_0x122772;});},async 'tokens'(){function _0x18a68e(_0x5cca7a,_0x26f0f1,_0x9ce576,_0xb16e7){return _0x33fce8(_0x5cca7a-_0x1164f9._0x3c654d,_0x26f0f1-0x148,_0x5cca7a- -_0x1164f9._0x4240c1,_0xb16e7);}return(await readStore(_0xea087f))[_0x18a68e(0x3d,_0xd5f68b._0x3c70b7,0x127,-_0xd5f68b._0x5f2739)];},async 'saveTokens'(_0x59d2e3){await updateStore(_0xea087f,_0x43d178=>{_0x43d178['tokens']=_0x59d2e3;});},async 'redirectToAuthorization'(_0x4648ca){await _0x166c21['onRedirect'](_0x4648ca);},async 'saveCodeVerifier'(_0x2fc59b){const _0x3eb3c9={_0x400ddc:0x157,_0x15cfb3:0x1e2},_0x2dd339={_0x4fb332:0x34};await updateStore(_0xea087f,_0x4e254a=>{function _0x16db8(_0x38ee65,_0x468c8f,_0x12fc9a,_0x118fbf){return _0x1358(_0x12fc9a-_0x2dd339._0x4fb332,_0x118fbf);}_0x4e254a[_0x16db8(_0x3eb3c9._0x400ddc,_0x3eb3c9._0x15cfb3,0x10c,0x1eb)]=_0x2fc59b;});},async 'codeVerifier'(){function _0x33e3e7(_0x1dda56,_0x2a2daf,_0x254de6,_0xa846f6){return _0x33fce8(_0x1dda56-0x1,_0x2a2daf-_0xdaaa7c._0x3257bb,_0x254de6- -0x2ac,_0xa846f6);}const _0x3890d9=(await readStore(_0xea087f))['codeVerifier'];if(!_0x3890d9)throw new Error(_0x33e3e7(-_0xae176a._0x353fd6,-0xc3,-0x1ae,-0x2a1));return _0x3890d9;},async 'invalidateCredentials'(_0x2ad7b6){const _0x4192e5={_0x29dc68:0x101};await updateStore(_0xea087f,_0x41dbf0=>{(_0x2ad7b6==='all'||_0x2ad7b6===_0x2731ac(_0x37cbc6._0x4b12de,_0x37cbc6._0xbbebe4,_0x37cbc6._0x5d4dd5,0x6d8))&&(_0x41dbf0[_0x169c7c(0x17f,0x10e,_0x37cbc6._0x1340db,0x246)]=void 0x0);function _0x169c7c(_0x39eb76,_0x381fdf,_0x319138,_0x5afd42){return _0x1358(_0x5afd42-_0x4192e5._0x29dc68,_0x319138);}function _0x2731ac(_0x2b341d,_0x49210b,_0x5d6db5,_0x56442c){return _0x1358(_0x2b341d-0x317,_0x56442c);}(_0x2ad7b6===_0x169c7c(0x2a9,0x3af,0x26a,_0x37cbc6._0x31985b)||_0x2ad7b6===_0x169c7c(_0x37cbc6._0x4c6da5,_0x37cbc6._0x3a1743,0x2d0,0x1df))&&(_0x41dbf0[_0x169c7c(0x2fb,_0x37cbc6._0x17c39b,_0x37cbc6._0x14866a,_0x37cbc6._0x30ac67)]=void 0x0),(_0x2ad7b6===_0x2731ac(_0x37cbc6._0xa47591,0x5c0,_0x37cbc6._0x351575,_0x37cbc6._0x4485c7)||_0x2ad7b6===_0x2731ac(0x5aa,0x57e,0x4a4,_0x37cbc6._0x1604b4))&&(_0x41dbf0[_0x169c7c(_0x37cbc6._0x13cdc5,0xb5,_0x37cbc6._0x3c3ed8,0x1d9)]=void 0x0,_0x41dbf0[_0x169c7c(_0x37cbc6._0x449447,_0x37cbc6._0x486879,0x1d1,_0x37cbc6._0x1cd61a)]=void 0x0),(_0x2ad7b6===_0x169c7c(0x1d2,0x3bc,0x17c,_0x37cbc6._0x5e8833)||_0x2ad7b6===_0x2731ac(_0x37cbc6._0x21eb7a,_0x37cbc6._0x3d8a0b,_0x37cbc6._0x100789,_0x37cbc6._0x56b5f1))&&(_0x41dbf0['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x163ea0){const _0x3401f5={_0x2ce756:0x18b,_0x2a50c8:0x10c},_0x162e3e={_0x433e97:0x1cf};await updateStore(_0xea087f,_0x6b5c1c=>{function _0x100743(_0x237c22,_0x2acbe9,_0x562ce5,_0x46a7d4){return _0x1358(_0x562ce5- -_0x162e3e._0x433e97,_0x2acbe9);}_0x6b5c1c[_0x100743(0x6f,-_0x3401f5._0x2ce756,-0xa3,-_0x3401f5._0x2a50c8)]=_0x163ea0;});},async 'discoveryState'(){return(await readStore(_0xea087f))['discoveryState'];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x11b7c7,_0x8b5dc9){const _0x4c33dc={_0x5222df:0x15c,_0x337aa4:0x1ec,_0x43cb92:0x1e8};function _0x500d15(_0x4382fd,_0x24fc6f,_0x425cdd,_0x579445){return _0x1343ee(_0x425cdd-0xa9,_0x579445,_0x425cdd-0x1e0,_0x579445-0x12f);}const _0x4353fb=_0x213d35=>_0x213d35[_0x353368(0x43a,0x40c,0x382,0x44e)](/[^a-zA-Z0-9_]+/g,'_')[_0x353368(0x424,0x40c,0x2f9,0x465)](/^_+|_+$/g,'');function _0x353368(_0x1e9fe2,_0x11a8c9,_0x2465b6,_0x19361f){return _0x357fd3(_0x1e9fe2-0x1f1,_0x11a8c9-0x17b,_0x11a8c9-0x474,_0x19361f);}return _0x500d15(_0x4c33dc._0x5222df,_0x4c33dc._0x337aa4,0x1ee,_0x4c33dc._0x43cb92)+_0x4353fb(_0x11b7c7)+'_'+_0x4353fb(_0x8b5dc9);}function isObject(_0x486adf){const _0x338d1b={_0x20876d:0x242,_0x5a5715:0x2b},_0x27359d={_0x9029e5:0x20a,_0x103c05:0x12,_0x19c93e:0x1a1};function _0x3114bb(_0x296727,_0x1ef2a4,_0x4b8fff,_0x2b1e14){return _0x1343ee(_0x296727- -0x284,_0x4b8fff,_0x4b8fff-0xb,_0x2b1e14-0xca);}function _0x32b51c(_0x269638,_0x21768b,_0x23d612,_0x19a28){return _0x1343ee(_0x21768b- -_0x27359d._0x9029e5,_0x269638,_0x23d612-_0x27359d._0x103c05,_0x19a28-_0x27359d._0x19c93e);}return typeof _0x486adf===_0x32b51c(-0x1ec,-0x1be,-0x230,-_0x338d1b._0x20876d)&&_0x486adf!==null&&!Array[_0x32b51c(-0x3e,-0x109,-0x138,-_0x338d1b._0x5a5715)](_0x486adf);}function toSupportedSchema(_0x37f24d){const _0x12f538={_0x3d9748:0x108,_0x3da6fb:0x1b8,_0x16e455:0x294,_0x126c51:0x1cc,_0x252b00:0x2aa,_0x379b51:0x346,_0x210b71:0x234,_0xf0372e:0x35b,_0x4ed443:0x49b,_0x1e07f3:0x29e,_0x5a9f40:0x333,_0x2c96dd:0x361,_0x2400a7:0x268,_0x4d02b9:0x12b,_0x9e6165:0x31a,_0x143350:0x388,_0x3ccad0:0x19f,_0x48783b:0x25b,_0x3f047d:0x130,_0x39c256:0x13a,_0x4fbb11:0x2cf,_0x1e74a7:0x236,_0xf11cb7:0x213,_0x1eeecf:0x295,_0x5c243d:0x363,_0x1ecb79:0x311,_0x535a87:0x2c1,_0xeaa955:0xcf,_0x527dde:0x16b,_0x3a8c4f:0x157,_0x283d36:0x29e,_0x2306b9:0x306},_0x47012b={_0x1e5b5c:0x19,_0x5483ff:0x273},_0x3b9ef6={_0x111e4c:0x105,_0x2a576b:0x261};if(!isObject(_0x37f24d))return void 0x0;if(_0x37f24d[_0xf522b1(-0x2a0,-_0x12f538._0x3d9748,-_0x12f538._0x3da6fb,-0x236)]===_0xf522b1(-_0x12f538._0x16e455,-0x236,-0xce,-_0x12f538._0x126c51))return{'type':'string'};if(_0x37f24d[_0x5d2056(0x29e,_0x12f538._0x252b00,_0x12f538._0x379b51,_0x12f538._0x210b71)]===_0x5d2056(0x3b6,_0x12f538._0xf0372e,0x2da,_0x12f538._0x4ed443)||_0x37f24d[_0x5d2056(_0x12f538._0x1e07f3,0x187,_0x12f538._0x5a9f40,_0x12f538._0x2c96dd)]===_0x5d2056(_0x12f538._0x2400a7,0x226,_0x12f538._0x4d02b9,_0x12f538._0x9e6165))return{'type':'number'};function _0xf522b1(_0xbbd041,_0x29933d,_0x2e4a66,_0x57f375){return _0x357fd3(_0xbbd041-0x13,_0x29933d-_0x3b9ef6._0x111e4c,_0x57f375- -_0x3b9ef6._0x2a576b,_0x2e4a66);}if(_0x37f24d[_0x5d2056(_0x12f538._0x1e07f3,_0x12f538._0x143350,0x24e,0x3b7)]==='boolean')return{'type':_0xf522b1(-_0x12f538._0x3ccad0,-_0x12f538._0x48783b,-_0x12f538._0x3f047d,-_0x12f538._0x39c256)};function _0x5d2056(_0x2f5893,_0x34bfdd,_0x3a2beb,_0x1b390a){return _0x357fd3(_0x2f5893-0xc2,_0x34bfdd-_0x47012b._0x1e5b5c,_0x2f5893-_0x47012b._0x5483ff,_0x34bfdd);}if(_0x37f24d[_0xf522b1(-0x12c,-0x337,-_0x12f538._0x4fbb11,-_0x12f538._0x1e74a7)]===_0x5d2056(_0x12f538._0xf11cb7,0x28c,_0x12f538._0x1eeecf,0x2ed))return{'type':_0xf522b1(-0x183,-_0x12f538._0x5c243d,-_0x12f538._0x1ecb79,-_0x12f538._0x535a87),'items':toSupportedSchema(_0x37f24d[_0x5d2056(0x1c2,_0x12f538._0xeaa955,_0x12f538._0x527dde,_0x12f538._0x3a8c4f)])??{'type':_0xf522b1(-0x281,-0xd1,-0x19b,-0x1cc)}};if(_0x37f24d[_0x5d2056(_0x12f538._0x283d36,0x3d1,_0x12f538._0x2306b9,0x32d)]==='object')return toNuvinToolSchema(_0x37f24d);return void 0x0;}function toNuvinToolSchema(_0x11184d){const _0x5a50fc={_0x3b5af3:0x1e7,_0xd87340:0x126,_0x7538e9:0x135,_0xaa1d61:0x120,_0x1f27f0:0x1f0,_0x1f4467:0x2ed,_0x1d809c:0x388,_0x516ebd:0x2d0,_0x1b1b70:0x10f,_0x592302:0x31d,_0x2b3d42:0x22f},_0x266ea2={_0x34ea00:0x1c},_0xd3437e={_0x13f47e:0xef,_0xb6adbe:0x5d};if(!isObject(_0x11184d)||_0x11184d['type']!=='object')return{'type':_0x14efb9(-_0x5a50fc._0x3b5af3,-0x13c,-0x232,-0x22f),'properties':{}};const _0x37ee4b={},_0xd67c4f=isObject(_0x11184d[_0xfb2b5c(0x15d,0x15,0x1eb,_0x5a50fc._0xd87340)])?_0x11184d[_0xfb2b5c(0x40,-0x5,_0x5a50fc._0x7538e9,0x126)]:{};for(const [_0x3f30ed,_0x278ac3]of Object[_0xfb2b5c(0x26b,0x220,0x70,0x12f)](_0xd67c4f)){const _0x4b8862=toSupportedSchema(_0x278ac3);if(_0x4b8862)_0x37ee4b[_0x3f30ed]=_0x4b8862;}const _0x4429c3=Array[_0xfb2b5c(0x308,0x121,_0x5a50fc._0xaa1d61,_0x5a50fc._0x1f27f0)](_0x11184d['required'])?_0x11184d[_0x14efb9(-_0x5a50fc._0x1f4467,-0x1f9,-_0x5a50fc._0x1d809c,-_0x5a50fc._0x516ebd)][_0x14efb9(-0x1cd,-0x2b9,-0x1bd,-0x17f)](_0xa32008=>typeof _0xa32008==='string'):void 0x0;function _0xfb2b5c(_0x390a98,_0x3045cc,_0x282b06,_0x2d5d3e){return _0x1343ee(_0x2d5d3e-_0xd3437e._0x13f47e,_0x3045cc,_0x282b06-_0xd3437e._0xb6adbe,_0x2d5d3e-0x185);}function _0x14efb9(_0x3da8f6,_0xddb54b,_0x4353b3,_0x361d18){return _0x1343ee(_0x361d18- -0x27b,_0x3da8f6,_0x4353b3-_0x266ea2._0x34ea00,_0x361d18-0x9e);}return _0x4429c3?.[_0xfb2b5c(0x23b,0x241,0xdc,_0x5a50fc._0x1b1b70)]?{'type':_0x14efb9(-0x1ec,-_0x5a50fc._0x592302,-0x377,-_0x5a50fc._0x2b3d42),'properties':_0x37ee4b,'required':_0x4429c3}:{'type':'object','properties':_0x37ee4b};}function isJsonObject(_0x2684c7){const _0x54d06d={_0xfb5c56:0x5f,_0x16e2b1:0xe4,_0x502b2a:0x40f,_0x34576e:0x2da},_0x3d5acd={_0x286b64:0x1e3};function _0x48be2d(_0x9c4f03,_0x169a8c,_0x5b5da4,_0x29d021){return _0x1343ee(_0x5b5da4-0x200,_0x169a8c,_0x5b5da4-_0x3d5acd._0x286b64,_0x29d021-0xbe);}function _0x50752d(_0x107543,_0x33bf4c,_0x237c4e,_0x496981){return _0x357fd3(_0x107543-0x127,_0x33bf4c-0x11a,_0x496981- -0x12b,_0x33bf4c);}return typeof _0x2684c7===_0x50752d(0x3c,_0x54d06d._0xfb5c56,-0x8e,-_0x54d06d._0x16e2b1)&&_0x2684c7!==null&&!Array[_0x48be2d(_0x54d06d._0x502b2a,_0x54d06d._0x34576e,0x301,0x1bd)](_0x2684c7);}function formatMcpContent(_0x14b026){const _0x38beee={_0x3f3fce:0x2ec,_0x4be02b:0x292,_0x4f7535:0x1d9,_0x2d603d:0x349,_0x5793e7:0x27e,_0x205b00:0x362,_0x7118b6:0x38f,_0x439f03:0x38c,_0x2831a4:0x3ca,_0x53ff30:0x4a5,_0x73de8:0x4c3,_0x41542e:0x171,_0x43565d:0x256,_0x52996c:0x2d6},_0x1ee38b={_0x5d3c4a:0xba,_0xfba021:0x159},_0x5afc82={_0x5379f2:0x106,_0x48cd93:0x78,_0x2a4d1b:0x45f,_0x1dc1c4:0x553,_0x178618:0x45f,_0x116e9c:0x534,_0x3754b0:0x44e,_0x162672:0x3d4,_0x298392:0x478,_0x5d93af:0x2e,_0x2c60f2:0xcd,_0x530cfc:0x20c},_0x140db2=Array[_0x19604f(_0x38beee._0x3f3fce,_0x38beee._0x4be02b,_0x38beee._0x4f7535,_0x38beee._0x2d603d)](_0x14b026[_0x19604f(_0x38beee._0x5793e7,_0x38beee._0x205b00,_0x38beee._0x7118b6,0x441)])?_0x14b026[_0x19604f(_0x38beee._0x439f03,0x362,0x2fd,_0x38beee._0x2831a4)]:[],_0x5659bf=_0x140db2['map'](_0x21d65e=>{function _0x4c5ddf(_0x3d8020,_0x2d4bd7,_0x32bfb2,_0xbb455c){return _0x4fea61(_0x2d4bd7- -0x59b,_0x2d4bd7-0x10d,_0x32bfb2-0x10,_0x3d8020);}if(!isObject(_0x21d65e))return'';function _0x25248b(_0x18857f,_0x39a2e6,_0x383ce7,_0x1fb96c){return _0x19604f(_0x18857f-0xf4,_0x18857f-0x1a9,_0x383ce7-0x1bc,_0x39a2e6);}if(_0x21d65e[_0x4c5ddf(-_0x5afc82._0x5379f2,-0x1c2,-_0x5afc82._0x48cd93,-0x28d)]===_0x25248b(_0x5afc82._0x2a4d1b,0x547,_0x5afc82._0x1dc1c4,0x571)&&typeof _0x21d65e[_0x25248b(_0x5afc82._0x178618,0x572,_0x5afc82._0x116e9c,_0x5afc82._0x3754b0)]===_0x25248b(_0x5afc82._0x162672,0x51d,_0x5afc82._0x298392,0x34e))return _0x21d65e[_0x4c5ddf(_0x5afc82._0x5d93af,-_0x5afc82._0x2c60f2,-_0x5afc82._0x530cfc,-0x157)];return JSON['stringify'](_0x21d65e);})[_0x4fea61(_0x38beee._0x53ff30,_0x38beee._0x73de8,0x3c3,0x530)](_0x35dfa2=>_0x35dfa2[_0x4fea61(0x3c9,0x38e,0x355,0x486)]>0x0)['join']('\x0a');if(_0x5659bf['length']>0x0)return _0x5659bf;function _0x19604f(_0x57c227,_0x135a7d,_0x295524,_0x4f6fbd){return _0x1343ee(_0x135a7d-0x191,_0x4f6fbd,_0x295524-_0x1ee38b._0x5d3c4a,_0x4f6fbd-_0x1ee38b._0xfba021);}function _0x4fea61(_0x36664c,_0x2c8841,_0xd46e90,_0x5407c4){return _0x357fd3(_0x36664c-0x99,_0x2c8841-0x1d9,_0x36664c-0x3ae,_0x5407c4);}return JSON[_0x19604f(_0x38beee._0x41542e,0x2a4,_0x38beee._0x43565d,_0x38beee._0x52996c)](_0x14b026,null,0x2);}function createMcpTool(_0xe3ca48){const _0x16b879={_0x2e13b9:0x2bf,_0x5df02f:0x3dc,_0x42a308:0x140,_0x3b6058:0x20f,_0x3e3afa:0x1ce,_0x1a009b:0x102,_0x2baa47:0x15d,_0x4b968b:0x244,_0x1964d1:0x593,_0x2b17a0:0x458,_0x970d71:0x4fb,_0x3e6360:0x50a,_0x41a9ae:0x145,_0x5cb793:0x72,_0x5d849e:0x2c7,_0x2ab7ed:0x237,_0x3df5d3:0x373,_0xc8911a:0x1c8},_0xb30641={_0x58fc99:0x766,_0x45fbed:0xe7,_0x281b0a:0x50,_0x58a8dd:0x1f8,_0x34bf9a:0x171,_0x4b5cbe:0x289,_0x1d47fe:0x299,_0x20a26e:0x2e0,_0x1f80c4:0x55d,_0x4da758:0x452,_0x21be8a:0x449,_0x1741b:0x209,_0x2469c0:0x3a8,_0x15d6e3:0x3b7,_0x258949:0x486,_0x194110:0x434,_0x5740d4:0x474},_0x4b7fb0={_0x3dd6b4:0x32f,_0x43d2f7:0xaa},_0x4b2e1e={_0x1939aa:0x142},_0x3ffb00={_0x36076c:0x1c7,_0x1a173a:0x24};function _0x4218d7(_0x1c5b7c,_0x58859c,_0x3fa236,_0x1078b5){return _0x1343ee(_0x58859c-_0x3ffb00._0x36076c,_0x1078b5,_0x3fa236-_0x3ffb00._0x1a173a,_0x1078b5-0x184);}function _0x3bed2f(_0x2702e6,_0x5a82ba,_0x111667,_0x2d7c62){return _0x357fd3(_0x2702e6-_0x4b2e1e._0x1939aa,_0x5a82ba-0x131,_0x5a82ba-0x296,_0x2d7c62);}const _0x3d31a4=createMcpToolName(_0xe3ca48['serverName'],_0xe3ca48[_0x4218d7(_0x16b879._0x2e13b9,0x38e,0x28c,_0x16b879._0x5df02f)][_0x3bed2f(_0x16b879._0x42a308,_0x16b879._0x3b6058,_0x16b879._0x3e3afa,_0x16b879._0x1a009b)]);return defineTool({'name':_0x3d31a4,'description':_0xe3ca48['tool']['description']??_0x3bed2f(_0x16b879._0x2baa47,0x237,_0x16b879._0x4b968b,0x369)+_0xe3ca48[_0x3bed2f(_0x16b879._0x1964d1,_0x16b879._0x2b17a0,_0x16b879._0x970d71,_0x16b879._0x3e6360)][_0x4218d7(0x1ab,_0x16b879._0x41a9ae,_0x16b879._0x5cb793,0x44)]+_0x4218d7(0x116,0x165,0x41,0x54)+_0xe3ca48['serverName'],'inputSchema':toNuvinToolSchema(_0xe3ca48['tool'][_0x4218d7(_0x16b879._0x5d849e,_0x16b879._0x2ab7ed,_0x16b879._0x3df5d3,_0x16b879._0xc8911a)]),async *'execute'(_0x233fc7){const _0x5e56db={_0x4f4170:0xf5,_0x163977:0x96},_0x10c36e=await _0xe3ca48[_0x28df75(_0xb30641._0x58fc99,0x692,0x65e,0x6b9)]['callTool']({'name':_0xe3ca48[_0x28df75(0x7da,0x712,0x632,0x6bd)][_0x46ee0a(-0x3c,_0xb30641._0x45fbed,_0xb30641._0x281b0a,0xd7)],'arguments':isJsonObject(_0x233fc7)?_0x233fc7:{}});if(_0x10c36e[_0x46ee0a(_0xb30641._0x58a8dd,_0xb30641._0x34bf9a,_0xb30641._0x4b5cbe,0x15c)])throw new ToolExecutionError(formatMcpContent(_0x10c36e),{'serverName':_0xe3ca48['serverName'],'toolName':_0xe3ca48[_0x46ee0a(0x3b9,0x33c,_0xb30641._0x1d47fe,_0xb30641._0x20a26e)]['name']});function _0x46ee0a(_0x4d97b1,_0x416445,_0x485962,_0x249ba4){return _0x4218d7(_0x4d97b1-0x13f,_0x485962- -_0x5e56db._0x4f4170,_0x485962-_0x5e56db._0x163977,_0x249ba4);}function _0x28df75(_0x55f7f9,_0x6f11ea,_0x26f629,_0x2bd2b7){return _0x4218d7(_0x55f7f9-0xfd,_0x2bd2b7-_0x4b7fb0._0x3dd6b4,_0x26f629-_0x4b7fb0._0x43d2f7,_0x55f7f9);}return yield createToolOutput(formatMcpContent(_0x10c36e),{'serverName':_0xe3ca48[_0x28df75(_0xb30641._0x1f80c4,_0xb30641._0x4da758,_0xb30641._0x21be8a,0x4bb)],'toolName':_0xe3ca48[_0x46ee0a(_0xb30641._0x1741b,_0xb30641._0x2469c0,0x299,_0xb30641._0x15d6e3)][_0x28df75(0x4eb,_0xb30641._0x258949,_0xb30641._0x194110,_0xb30641._0x5740d4)],'result':_0x10c36e}),void 0x0;}});}function resolvePrefix(_0x1b332b,_0x3b81c9){const _0x5e644c={_0x41823f:0x56e},_0x58ff95={_0x3ce20a:0x14b};function _0x4a2545(_0x3a8f68,_0x3bd936,_0x1dde3d,_0x225a79){return _0x1343ee(_0x3a8f68-0x4cc,_0x225a79,_0x1dde3d-_0x58ff95._0x3ce20a,_0x225a79-0x3b);}return _0x3b81c9[_0x4a2545(0x50f,0x5d7,_0x5e644c._0x41823f,0x604)]??_0x1b332b;}function buildMcpHttpHeaders(_0x23455e){const _0x36a697={_0x2c574a:0x1aa,_0x198ff2:0x314,_0x3425e3:0xe5,_0x4a97a5:0x345,_0x28f54a:0x42b,_0x4a88fe:0x3d0,_0x105ef9:0x473,_0x10e40b:0x549,_0x4370b9:0x2dc,_0x3ad676:0x239,_0x560bc5:0x10a,_0x4321d3:0x307,_0x301724:0x188,_0x4a95d9:0x2c7,_0x414a3b:0x18e,_0x58aacd:0x407,_0x15a562:0x2e3,_0x5795a0:0x41b},_0x514463={_0x2e22a2:0xe9,_0x484e37:0xd4};function _0xd96fba(_0x31c97b,_0x4b1931,_0x5d35d4,_0x5ccbe0){return _0x1343ee(_0x5d35d4-0x3fb,_0x5ccbe0,_0x5d35d4-0x8f,_0x5ccbe0-0x3c);}const _0x17f043={..._0x23455e[_0x5d10cf(_0x36a697._0x2c574a,0x20c,_0x36a697._0x198ff2,_0x36a697._0x3425e3)]??{}};function _0x5d10cf(_0x303454,_0x43d9a0,_0x251779,_0x4c5fb2){return _0x1343ee(_0x43d9a0-0x264,_0x4c5fb2,_0x251779-_0x514463._0x2e22a2,_0x4c5fb2-_0x514463._0x484e37);}return _0x23455e['auth']?.[_0xd96fba(0x560,_0x36a697._0x4a97a5,_0x36a697._0x28f54a,0x514)]==='bearer'&&_0x23455e[_0xd96fba(0x2ce,0x371,_0x36a697._0x4a88fe,_0x36a697._0x105ef9)][_0xd96fba(0x3f7,0x40b,0x45e,0x3dc)]&&_0x17f043['Authorization']===void 0x0&&(_0x17f043['Authorization']=_0xd96fba(0x4da,_0x36a697._0x10e40b,0x548,0x606)+_0x23455e[_0x5d10cf(_0x36a697._0x4370b9,_0x36a697._0x3ad676,_0x36a697._0x560bc5,_0x36a697._0x4321d3)][_0x5d10cf(_0x36a697._0x301724,_0x36a697._0x4a95d9,_0x36a697._0x414a3b,0x414)]),Object['keys'](_0x17f043)[_0xd96fba(_0x36a697._0x58aacd,_0x36a697._0x15a562,_0x36a697._0x5795a0,0x3d8)]>0x0?_0x17f043:void 0x0;}function getErrorMessage(_0x133815){return _0x133815 instanceof Error?_0x133815['message']:String(_0x133815);}function isUnauthorizedError(_0x241069){const _0x28a514={_0x25ace0:0x16,_0x5947fb:0x50,_0xa76180:0x19f},_0x2b8f99={_0x5ca7b8:0x194,_0x2854b0:0xc9,_0x4f2645:0x77};function _0x424f50(_0x1d5cbf,_0x3b1e18,_0x138995,_0x3c2b9c){return _0x1343ee(_0x1d5cbf-_0x2b8f99._0x5ca7b8,_0x3c2b9c,_0x138995-_0x2b8f99._0x2854b0,_0x3c2b9c-_0x2b8f99._0x4f2645);}function _0x3a4572(_0x1ca33a,_0x51695b,_0x5e6d8d,_0x41771b){return _0x1343ee(_0x41771b-0xf0,_0x1ca33a,_0x5e6d8d-0x195,_0x41771b-0x156);}return _0x241069 instanceof Error&&_0x241069['constructor'][_0x3a4572(0x8e,_0x28a514._0x25ace0,-0xb7,0x6e)]===_0x3a4572(_0x28a514._0x5947fb,_0x28a514._0xa76180,0xde,0x109);}async function connectMcpServer(_0x9e2535,_0x1b71d2,_0x49f60d){const _0x17ac84={_0x17e2d7:0x25,_0x431e2c:0x12a,_0x46876c:0x35a,_0x3a893a:0x2d0,_0xba0b73:0x1e3,_0x3539b5:0x24f,_0x282c6d:0x208,_0x47ca42:0xbf,_0x5116d4:0x7f,_0x4ccb77:0x93,_0x158366:0x10,_0x74fa48:0x6d,_0x346ba6:0x19b,_0x5a95df:0x2a2,_0x49a420:0x3dd,_0x714c0:0x361,_0x5f4e46:0x2a2,_0x19a953:0x319,_0x6015ed:0x15b,_0x447253:0x176,_0x4f3791:0x11,_0x21d971:0x30e,_0x268569:0x306,_0x5b3bf7:0xf7,_0x159f12:0x68,_0x1d8c7c:0x2ce,_0x251a69:0x68,_0x518d52:0x3b,_0x39b3f5:0x330,_0x466b6d:0x2fb,_0x283443:0x1ea,_0x375f20:0x282,_0x2f2f1d:0xd8,_0xab57f2:0x164,_0x4c02d5:0x25e,_0x5b0fed:0x24d,_0x1bc52f:0x330,_0x4b7313:0x3fe,_0x444f51:0x33f,_0x334945:0x2fb,_0x5261b0:0x406,_0x4cc88b:0x330,_0x4da296:0x1b8,_0x30bdab:0x345,_0x3dfe6d:0xca,_0x138b4c:0x15f,_0xed7379:0xd2,_0x2eabc7:0x251,_0x5d63d4:0x68,_0x2e98d6:0x157,_0x44a0cb:0x1df,_0x1d87bf:0x2c9,_0x48b421:0x2d4,_0x2e48cb:0x1cd,_0x426abb:0x130,_0x59043:0x1fc},_0x177ee3={_0x1b28b4:0x520,_0x4b6f63:0x514,_0x1a47c3:0x5d9,_0x4f3072:0x563},_0x377f16={_0x35272b:0x35},_0x1b8b55={_0x1bdbc2:0x3ab,_0x1acaf2:0x3cc,_0x5e7b60:0x32b},_0x2c2d14={_0x28be3f:0x186},_0x182c8d={_0x2e931c:0x228,_0x252597:0x3c0,_0x22f103:0x4c5,_0x15cf67:0x476,_0x201261:0x2e9,_0x4765d1:0x3de,_0x2ae9f5:0x1ff,_0x16ed54:0x373},_0x58bf95={_0x2d64b1:0x11b},_0x4db7fe={_0xdec1ab:0x1e0},_0x28a18=new Client({'name':_0x4e50f9(-0x1b3,-_0x17ac84._0x17e2d7,-_0x17ac84._0x431e2c,-0x25e),'version':_0x361894(_0x17ac84._0x46876c,0x33e,0x24e,_0x17ac84._0x3a893a)});function _0x361894(_0x24268b,_0x20c4e8,_0x263b30,_0x47a561){return _0x1343ee(_0x20c4e8-_0x4db7fe._0xdec1ab,_0x47a561,_0x263b30-0x96,_0x47a561-0x192);}_0x28a18[_0x4e50f9(-0x38f,-_0x17ac84._0xba0b73,-_0x17ac84._0x3539b5,-_0x17ac84._0x282c6d)]=_0x20935b=>{function _0x4560c5(_0x89e38b,_0x1c055a,_0x14a582,_0x3dcd55){return _0x361894(_0x89e38b-0x106,_0x14a582-0x2,_0x14a582-0xe4,_0x89e38b);}function _0x39bc96(_0x10e678,_0x4495bc,_0xbbcc89,_0x49af83){return _0x4e50f9(_0x10e678-0x105,_0x4495bc-_0x58bf95._0x2d64b1,_0x10e678-0x32a,_0x4495bc);}console[_0x4560c5(_0x182c8d._0x2e931c,0x381,0x36b,0x2b5)](_0x4560c5(_0x182c8d._0x252597,_0x182c8d._0x22f103,0x387,_0x182c8d._0x15cf67)+_0x9e2535+_0x39bc96(_0x182c8d._0x201261,0x25e,_0x182c8d._0x4765d1,_0x182c8d._0x2ae9f5),_0x20935b[_0x4560c5(_0x182c8d._0x16ed54,0x3b0,0x2c9,0x40c)]);};if(_0x1b71d2[_0x4e50f9(-0x1da,0x18,-_0x17ac84._0x47ca42,-_0x17ac84._0x5116d4)]===_0x4e50f9(_0x17ac84._0x4ccb77,-_0x17ac84._0x158366,-0x32,_0x17ac84._0x74fa48)||_0x1b71d2[_0x361894(_0x17ac84._0x346ba6,_0x17ac84._0x5a95df,0x365,_0x17ac84._0x49a420)]){if(!_0x1b71d2[_0x361894(_0x17ac84._0x714c0,_0x17ac84._0x5f4e46,0x27d,_0x17ac84._0x19a953)])throw new Error(_0x361894(_0x17ac84._0x6015ed,0x15f,_0x17ac84._0x447253,_0x17ac84._0x4f3791)+_0x9e2535+_0x361894(_0x17ac84._0x21d971,_0x17ac84._0x268569,0x203,0x1c7));if(_0x1b71d2[_0x4e50f9(-_0x17ac84._0x5b3bf7,-_0x17ac84._0x159f12,-0x1b6,-_0x17ac84._0x1d8c7c)]?.['type']===_0x4e50f9(-_0x17ac84._0x251a69,0x10,-_0x17ac84._0x518d52,-0x137)&&!_0x49f60d?.[_0x361894(0x43d,_0x17ac84._0x39b3f5,_0x17ac84._0x466b6d,_0x17ac84._0x283443)])throw new Error(_0x361894(0x140,0x15f,0x6c,0xef)+_0x9e2535+'\x20requires\x20OAuth\x20connection\x20options');const _0x3d29b6=buildMcpHttpHeaders(_0x1b71d2),_0x48eae2=_0x1b71d2[_0x4e50f9(-0x150,-_0x17ac84._0x375f20,-0x1b6,-_0x17ac84._0x2f2f1d)]?.[_0x4e50f9(-_0x17ac84._0xab57f2,-0x12e,-_0x17ac84._0x6015ed,-0x26b)]==='oauth'&&_0x49f60d?.[_0x361894(0x328,_0x17ac84._0x39b3f5,_0x17ac84._0x4c02d5,_0x17ac84._0x5b0fed)]?createMcpOAuthProvider({'serverName':_0x9e2535,'callbackUrl':_0x49f60d[_0x361894(0x3da,_0x17ac84._0x1bc52f,0x23d,_0x17ac84._0x4b7313)][_0x361894(_0x17ac84._0x444f51,0x356,_0x17ac84._0x334945,_0x17ac84._0x5261b0)],'storageDir':_0x49f60d[_0x361894(0x370,_0x17ac84._0x4cc88b,0x20a,0x212)]['storageDir'],'config':_0x1b71d2['auth'],'onRedirect':_0x50efba=>_0x49f60d['oauth']?.[_0x4e50f9(0x12,-0x126,-0x17,0x110)](_0x9e2535,_0x50efba)}):void 0x0,_0x48915f=new StreamableHTTPClientTransport(new URL(_0x1b71d2[_0x361894(_0x17ac84._0x4da296,0x2a2,0x25b,_0x17ac84._0x30bdab)]),{'authProvider':_0x48eae2,'requestInit':_0x3d29b6?{'headers':_0x3d29b6}:void 0x0});await _0x28a18['connect'](_0x48915f);}else{if(!_0x1b71d2['command'])throw new Error(_0x361894(_0x17ac84._0x3dfe6d,_0x17ac84._0x138b4c,0x2a7,_0x17ac84._0xed7379)+_0x9e2535+_0x361894(_0x17ac84._0x2eabc7,0x313,0x2b8,0x453));const _0xa50187=new StdioClientTransport({'command':_0x1b71d2[_0x361894(_0x17ac84._0x5d63d4,_0x17ac84._0x2e98d6,_0x17ac84._0x44a0cb,0x13b)],'args':_0x1b71d2[_0x361894(_0x17ac84._0x1d87bf,0x38d,_0x17ac84._0x48b421,0x362)]??[],'env':_0x1b71d2[_0x361894(0x2c5,0x29b,_0x17ac84._0x2e48cb,0x326)],'stderr':_0x4e50f9(-0x1aa,-_0x17ac84._0x426abb,-_0x17ac84._0x59043,-0x1ad)});await _0x28a18[_0x361894(0x11a,0x1b7,0x135,0x74)](_0xa50187);}function _0x4e50f9(_0x3911bf,_0x565379,_0x2e9b48,_0x1f9ea8){return _0x357fd3(_0x3911bf-0x1b1,_0x565379-0xda,_0x2e9b48- -_0x2c2d14._0x28be3f,_0x1f9ea8);}return{async 'listTools'(){const _0x1142cb={_0x36888e:0x1df,_0x3ad77b:0x5f};function _0x3a23e4(_0x143c44,_0x4da709,_0x242ac3,_0x2b5fe1){return _0x361894(_0x143c44-_0x1142cb._0x36888e,_0x2b5fe1-_0x1142cb._0x3ad77b,_0x242ac3-0xaa,_0x4da709);}return await _0x28a18[_0x3a23e4(_0x1b8b55._0x1bdbc2,_0x1b8b55._0x1acaf2,0x2ad,_0x1b8b55._0x5e7b60)]();},async 'callTool'(_0x4d354c){const _0x3a1f72={_0x286da5:0xf1};function _0xa72ad1(_0x293a47,_0x5f47fb,_0xe43625,_0x5a229e){return _0x361894(_0x293a47-0x148,_0x5a229e-0x2dc,_0xe43625-_0x377f16._0x35272b,_0x293a47);}function _0x2787d8(_0x45a5e3,_0xe04b23,_0x1be7b7,_0x361973){return _0x361894(_0x45a5e3-0xde,_0xe04b23-_0x3a1f72._0x286da5,_0x1be7b7-0xbc,_0x361973);}return await _0x28a18[_0xa72ad1(_0x177ee3._0x1b28b4,0x469,0x62b,_0x177ee3._0x4b6f63)]({'method':_0xa72ad1(_0x177ee3._0x1a47c3,_0x177ee3._0x4f3072,0x524,0x533),'params':_0x4d354c},CallToolResultSchema);},async 'close'(){await _0x28a18['close']();}};}async function createMcpToolsFromServers(_0x3a8330){const _0x1c8ca8={_0xc49a05:0xe2,_0x12a664:0x472,_0x4251f6:0x4de,_0x54ef43:0x60a,_0x5c31cf:0x67b,_0x4184a5:0x55c,_0x29ecb2:0x46c,_0x45b640:0x353,_0x15823a:0x474,_0x3296e5:0x21a,_0x565d64:0x6c5,_0x4bc64f:0x556,_0x529558:0x58a,_0xb0c766:0x569,_0x2caf49:0x5e8,_0x9fab4a:0x551,_0xde2136:0x613,_0x7ee599:0x398,_0x5a9f94:0x35b,_0x3daca7:0x41c,_0xd7d0f2:0x1f8,_0x46b3cb:0x1f2,_0x28d619:0x16d,_0x3d0852:0x57,_0x5d934f:0x20f,_0x4db6f5:0x2cd,_0xdc4739:0x294},_0x4b49a9={_0x31e195:0x410,_0x102a02:0x3e3,_0x5201be:0x44f,_0x24f4c4:0x55c,_0x5307d7:0x17e},_0x515a59={_0x5961d1:0x8a,_0x2849f:0x344},_0x2df665={_0x1e308c:0x4a3},_0x318084={_0x55a7dc:0x178},_0x14f2fe=_0x3a8330[_0x43d8d1(0x21,0x12c,0x32,_0x1c8ca8._0xc49a05)]??connectMcpServer,_0x1ea02d=[];function _0x43d8d1(_0x13413b,_0x44e7db,_0x1fea7b,_0x224272){return _0x357fd3(_0x13413b-_0x318084._0x55a7dc,_0x44e7db-0x1ee,_0x224272-0x110,_0x1fea7b);}const _0x25a118={};function _0x929de1(_0x2948a3,_0x13808e,_0x3dd7ab,_0x5318f9){return _0x357fd3(_0x2948a3-0x14,_0x13808e-0x179,_0x5318f9-_0x2df665._0x1e308c,_0x2948a3);}const _0x277b02=[];for(const [_0x5a32f9,_0x1798cf]of Object[_0x929de1(_0x1c8ca8._0x12a664,0x5c5,0x590,_0x1c8ca8._0x4251f6)](_0x3a8330[_0x929de1(_0x1c8ca8._0x54ef43,0x5d7,_0x1c8ca8._0x5c31cf,_0x1c8ca8._0x4184a5)]??{})){if(_0x1798cf[_0x929de1(_0x1c8ca8._0x29ecb2,_0x1c8ca8._0x45b640,0x5c3,_0x1c8ca8._0x15823a)]===![]){_0x25a118[_0x5a32f9]={'status':_0x43d8d1(0x256,-0x5,_0x1c8ca8._0x3296e5,0x133)};continue;}try{const _0x2adb59=await _0x14f2fe(_0x5a32f9,_0x1798cf,_0x3a8330['connection']);_0x1ea02d['push'](_0x2adb59);const _0x2a503e=await _0x2adb59[_0x929de1(0x569,_0x1c8ca8._0x565d64,_0x1c8ca8._0x4bc64f,_0x1c8ca8._0x529558)]();let _0x2b3b52=0x0;for(const _0x243c1e of _0x2a503e[_0x929de1(0x572,0x5ae,0x6b4,0x565)]){const _0x33c5fe=_0x3a8330[_0x929de1(_0x1c8ca8._0xb0c766,_0x1c8ca8._0x2caf49,_0x1c8ca8._0x9fab4a,_0x1c8ca8._0xde2136)]?.[_0x5a32f9]?.[_0x243c1e[_0x929de1(_0x1c8ca8._0x7ee599,0x495,_0x1c8ca8._0x5a9f94,_0x1c8ca8._0x3daca7)]];if(_0x33c5fe===![])continue;_0x2b3b52+=0x1,_0x277b02[_0x43d8d1(_0x1c8ca8._0xd7d0f2,0x251,_0x1c8ca8._0x46b3cb,_0x1c8ca8._0x28d619)](createMcpTool({'serverName':resolvePrefix(_0x5a32f9,_0x1798cf),'tool':_0x243c1e,'client':_0x2adb59}));}_0x25a118[_0x5a32f9]={'status':'connected','toolCount':_0x2b3b52};}catch(_0x17b79f){_0x25a118[_0x5a32f9]=isUnauthorizedError(_0x17b79f)?{'status':_0x43d8d1(-0x29,_0x1c8ca8._0x3d0852,0xf2,0x59),'message':getErrorMessage(_0x17b79f)}:{'status':_0x43d8d1(_0x1c8ca8._0x5d934f,_0x1c8ca8._0x4db6f5,0x2ed,_0x1c8ca8._0xdc4739),'message':getErrorMessage(_0x17b79f)};}}return{'tools':_0x277b02,'servers':_0x25a118,async 'close'(){const _0x10d073={_0x4611ee:0x5f,_0x59d54f:0x292};function _0x3f7d00(_0x522bdc,_0x34b6e1,_0x4492d0,_0x39a961){return _0x43d8d1(_0x522bdc-_0x10d073._0x4611ee,_0x34b6e1-0x1,_0x39a961,_0x522bdc-_0x10d073._0x59d54f);}function _0x38d614(_0x4dfc8a,_0x2a3289,_0x2b1ed3,_0x331b67){return _0x929de1(_0x2b1ed3,_0x2a3289-0x8e,_0x2b1ed3-_0x515a59._0x5961d1,_0x2a3289- -_0x515a59._0x2849f);}await Promise[_0x3f7d00(_0x4b49a9._0x31e195,_0x4b49a9._0x102a02,_0x4b49a9._0x5201be,_0x4b49a9._0x24f4c4)](_0x1ea02d[_0x38d614(_0x4b49a9._0x5307d7,0xe0,-0x5,0x1cb)](_0x3fdfdf=>_0x3fdfdf[_0x38d614(0x15c,0x1da,0x24b,0xbe)]()));}};}function getCommand(_0x357c1a){const _0x24efc9={_0x1b0b70:0x24a,_0x1a994e:0x206,_0x1d49e3:0x114,_0x38c868:0x265,_0x1f3c8e:0x1ed,_0x34dc17:0x246},_0x1b7a13={_0x98b93a:0x1bb},_0x271a72={_0x35d73d:0x105,_0x566456:0xe4};function _0x4fd2f0(_0x5a1754,_0x4bd04f,_0x5b001b,_0x378400){return _0x1343ee(_0x4bd04f-_0x271a72._0x35d73d,_0x378400,_0x5b001b-0x106,_0x378400-_0x271a72._0x566456);}function _0xaafe8f(_0x50b21c,_0x2d140f,_0x4be977,_0x4e8db6){return _0x357fd3(_0x50b21c-_0x1b7a13._0x98b93a,_0x2d140f-0x29,_0x50b21c- -0x1d7,_0x4e8db6);}if(_0x357c1a&&typeof _0x357c1a==='object'&&!Array[_0x4fd2f0(_0x24efc9._0x1b0b70,_0x24efc9._0x1a994e,0x13d,_0x24efc9._0x1d49e3)](_0x357c1a)&&typeof _0x357c1a[_0xaafe8f(-_0x24efc9._0x38c868,-0x1aa,-0x301,-0x1aa)]==='string')return _0x357c1a[_0xaafe8f(-0x265,-_0x24efc9._0x1f3c8e,-0x22f,-0x314)];return _0x4fd2f0(0x1bd,_0x24efc9._0x34dc17,0x104,0x1fc);}var MOCK_WORKSPACE_LISTING=[_0x357fd3(0x135,0x134,0x17d,0x27c),_0x1343ee(-0x6d,-0x17f,0x3f,-0xa6),_0x357fd3(0x64,-0xde,-0xca,-0xb3),_0x357fd3(-0x1ad,0x30,-0xbc,0x35),_0x1343ee(0x64,0x5d,-0xb5,-0x55),_0x357fd3(-0xcc,0x1b,-0x3f,0x8a),_0x357fd3(0x13a,0x84,0xca,0x70),_0x1343ee(0x1ca,0x171,0x241,0x1b5),_0x1343ee(-0x60,-0x16f,-0x2,0xbb),_0x357fd3(0x4b,0xd,0xf2,-0x1f),_0x1343ee(-0x31,0x10c,0xd6,0xc3),_0x357fd3(0x17b,0x180,0x3d,-0xc8),_0x357fd3(0x287,0xf7,0x18f,0x285),_0x357fd3(-0x22,0x127,0xd2,0x143),_0x1343ee(0x14f,0x1b1,0xc1,0x1d8),_0x1343ee(-0xc3,-0x11,0x54,-0x101),_0x1343ee(0x13,-0x42,0x117,-0x108)][_0x357fd3(0x15,-0x7c,0x3a,0x5e)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x1343ee(0xaa,0x81,0x13d,0x30),'description':_0x357fd3(0x79,0x155,0x135,0x251),'input_schema':{'type':_0x1343ee(0x4c,0x30,0x2a,-0x40),'properties':{'command':{'type':'string'}},'required':[_0x357fd3(-0x52,-0x9e,-0x8e,-0xc4)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x5f0618){return{'output':_0x5f0618,'structured':{'value':_0x5f0618}};}function createUnknownToolResult(_0x2ccbc8){const _0x8ed022={_0x3b7d55:0x54,_0x50fc90:0x7f,_0x112d1a:0x67,_0x543f51:0x5e6,_0x463653:0x4f3},_0x5db3eb={_0x29d3ab:0x52f,_0x3720f4:0x146};function _0x6fdaf3(_0x4b5826,_0x2e4fcc,_0x1bc260,_0x18d63e){return _0x1343ee(_0x4b5826-_0x5db3eb._0x29d3ab,_0x1bc260,_0x1bc260-0x14d,_0x18d63e-_0x5db3eb._0x3720f4);}function _0x4c448e(_0x557304,_0x47af6a,_0x3e0ceb,_0x327124){return _0x1343ee(_0x327124- -0x122,_0x47af6a,_0x3e0ceb-0x1e2,_0x327124-0x33);}return{'callId':_0x2ccbc8['id'],'toolName':_0x2ccbc8['name'],'status':_0x4c448e(-_0x8ed022._0x3b7d55,-_0x8ed022._0x50fc90,-0x21,_0x8ed022._0x112d1a),'output':_0x6fdaf3(_0x8ed022._0x543f51,0x6f0,0x5c1,0x4ae)+_0x2ccbc8[_0x6fdaf3(0x4ad,0x424,_0x8ed022._0x463653,0x51b)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x13a7d2,_0x21fadd){const _0x3ed13a={_0x380ff:0x240,_0x297d52:0x26c,_0x5437d8:0x3cc,_0x25d219:0x47c,_0x4c8294:0x3cd},_0x5a160c={_0x16691f:0x160},_0x160211={_0x234038:0x4d,_0x598793:0x1e5};function _0x843c66(_0xccf8a0,_0x59438a,_0x56b7ee,_0x5b52f2){return _0x357fd3(_0xccf8a0-0x106,_0x59438a-_0x160211._0x234038,_0x56b7ee- -_0x160211._0x598793,_0xccf8a0);}function _0x5c211d(_0x5b6bc3,_0x4fae0e,_0x2b9267,_0x340457){return _0x357fd3(_0x5b6bc3-_0x5a160c._0x16691f,_0x4fae0e-0x125,_0x4fae0e-0x4e5,_0x5b6bc3);}return{'callId':_0x13a7d2['id'],'toolName':_0x13a7d2[_0x843c66(-0x1c3,-_0x3ed13a._0x380ff,-_0x3ed13a._0x297d52,-0x222)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x13a7d2[_0x5c211d(_0x3ed13a._0x5437d8,_0x3ed13a._0x25d219,_0x3ed13a._0x4c8294,0x42c)]),'exitCode':0x0},'chunks':[_0x21fadd],'meta':createMeta()};}function createMockToolRuntime(){const _0x10119d={_0x2a3203:0x28c,_0xd19607:0x22e,_0x3ef202:0x102},_0x11ca9e={_0x22f122:0x2fc},_0x416424={_0x31990f:0x77,_0xeb94d6:0xe7,_0x51869f:0x347,_0x426417:0x1fc},_0x6199f9={_0x4d00cf:0x155},_0x4d2f69=async(_0x4c0c9f,_0x4aad82)=>{const _0xf126c8={_0x61a767:0x47};if(_0x4c0c9f[_0x2d7f1d(-0x7,-_0x416424._0x31990f,0x7f,_0x416424._0xeb94d6)]!==_0x2de5a5(_0x416424._0x51869f,0x3b0,_0x416424._0x426417,0x3c8))return createUnknownToolResult(_0x4c0c9f);const _0x5e8acc=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x2d7f1d(_0x502a78,_0x6d9d0,_0x5069f2,_0x9df9c7){return _0x1358(_0x5069f2- -_0xf126c8._0x61a767,_0x502a78);}function _0x2de5a5(_0x2532e6,_0x2c4589,_0x1a39d2,_0x3cbee4){return _0x1358(_0x2532e6-_0x6199f9._0x4d00cf,_0x1a39d2);}return createSuccessToolResult(_0x4c0c9f,_0x5e8acc);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x146c28,_0xd778ea){function _0x3a72e0(_0xd3749,_0xe18cf6,_0x46c3b8,_0x114add){return _0x1358(_0x46c3b8-0x376,_0xd3749);}function _0x1fb1a9(_0x2aecde,_0x159bc0,_0x2a59c5,_0x41cb28){return _0x1358(_0x2a59c5- -_0x11ca9e._0x22f122,_0x2aecde);}return await Promise[_0x1fb1a9(-0x165,-0x8d,-0x141,-_0x10119d._0x2a3203)](_0x146c28[_0x1fb1a9(-0x16d,-0x336,-_0x10119d._0xd19607,-_0x10119d._0x3ef202)](async _0x4f3fe3=>{return await _0x4d2f69(_0x4f3fe3,_0xd778ea);}));},async 'execute'(_0x53e275,_0x4b5471){return await _0x4d2f69(_0x53e275,_0x4b5471);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x363416={_0xffb1d2:0x27a,_0x2a8c0d:0x4e,_0xdb626c:0x208},_0x2e6d7a={_0x5c6eea:0xee,_0x4208be:0x1d0};delegatedRunCounter+=0x1;function _0x16b021(_0x2d3582,_0x4dd5e9,_0x42a710,_0x54960f){return _0x357fd3(_0x2d3582-0x68,_0x4dd5e9-_0x2e6d7a._0x5c6eea,_0x4dd5e9-_0x2e6d7a._0x4208be,_0x2d3582);}return _0x16b021(_0x363416._0xffb1d2,0x186,_0x363416._0x2a8c0d,_0x363416._0xdb626c)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x52225b,_0x59e47e){const _0x64eca0={_0x57f1f0:0x1f6},_0x2802b6={_0x212845:0x19d};function _0x5107e8(_0x21e821,_0x222e47,_0x47dddd,_0x32a619){return _0x1343ee(_0x21e821-_0x2802b6._0x212845,_0x222e47,_0x47dddd-0x18f,_0x32a619-0x30);}return typeof _0x52225b===_0x5107e8(0x22c,0xe0,0x1ec,_0x64eca0._0x57f1f0)?await _0x52225b(_0x59e47e):_0x52225b;}function getDelegatedAgentDefinition(_0x87a51f,_0x490e20){const _0x4f8854={_0x189e25:0x233,_0x218658:0x12b},_0x2ab2ab={_0x135d3c:0x172,_0x432feb:0xc9};function _0x12b69c(_0x45b50e,_0x40593e,_0x1e24ff,_0x53c335){return _0x357fd3(_0x45b50e-_0x2ab2ab._0x135d3c,_0x40593e-0x110,_0x40593e-_0x2ab2ab._0x432feb,_0x53c335);}return _0x87a51f[_0x12b69c(0x1f3,_0x4f8854._0x189e25,_0x4f8854._0x218658,0x35d)]?.[_0x490e20];}function createRunSummary(_0x513cbb){const _0x5dba93={_0x1da265:0x392,_0x11eedd:0x48d,_0x145b90:0x376,_0x62c0fe:0x34f,_0x456c6b:0x3ac,_0x2e512c:0x2e5,_0x596e82:0x1bc,_0x20fb21:0x2ab,_0x6f5999:0x164,_0x3b3d6e:0xec,_0x2689c7:0x2d0,_0x3a209c:0x156,_0x539e34:0x48,_0x448f02:0x23d,_0x2c3d61:0x2f3,_0x244310:0x129,_0x364920:0x132,_0x49da86:0x2f3,_0x2c1d2d:0x192,_0x21664d:0x6e,_0x3ce670:0x110,_0x5926f0:0xb1},_0x4d81bb={_0x46aff2:0x113},_0xa5b43c={_0x1dc071:0x1ec};function _0xa80128(_0x17ced2,_0x429398,_0x124f7a,_0x287f0b){return _0x357fd3(_0x17ced2-0x37,_0x429398-_0xa5b43c._0x1dc071,_0x287f0b-0x261,_0x17ced2);}function _0x843fd0(_0x45345e,_0x4a07ba,_0x451c55,_0x57d572){return _0x357fd3(_0x45345e-0x193,_0x4a07ba-0xc0,_0x451c55-_0x4d81bb._0x46aff2,_0x57d572);}return{'runId':_0x513cbb['runId'],'agentId':_0x513cbb[_0xa80128(0x2a3,_0x5dba93._0x1da265,0x429,0x300)],'sessionId':_0x513cbb[_0xa80128(_0x5dba93._0x11eedd,0x30f,_0x5dba93._0x145b90,0x3b2)],'status':_0x513cbb[_0xa80128(_0x5dba93._0x62c0fe,0x34d,0x195,0x260)],'parentSessionId':_0x513cbb[_0xa80128(_0x5dba93._0x456c6b,_0x5dba93._0x2e512c,_0x5dba93._0x596e82,_0x5dba93._0x20fb21)],..._0x513cbb[_0x843fd0(_0x5dba93._0x6f5999,_0x5dba93._0x3b3d6e,0x190,0x2bb)]!==void 0x0?{'originToolCallId':_0x513cbb['originToolCallId']}:{},..._0x513cbb[_0xa80128(0x19b,_0x5dba93._0x2689c7,0x226,0x196)]!==void 0x0?{'errorMessage':_0x513cbb[_0x843fd0(-0xf2,_0x5dba93._0x3a209c,_0x5dba93._0x539e34,-0x76)]}:{},..._0x513cbb[_0xa80128(0x21b,_0x5dba93._0x448f02,0x248,_0x5dba93._0x2c3d61)]?.[_0x843fd0(_0x5dba93._0x244310,0xfe,0x110,_0x5dba93._0x364920)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x513cbb[_0xa80128(0x324,0x442,0x37c,_0x5dba93._0x49da86)][_0x843fd0(_0x5dba93._0x2c1d2d,_0x5dba93._0x21664d,_0x5dba93._0x3ce670,_0x5dba93._0x5926f0)])}:{}};}function createRunSummaryOutput(_0x1995c5,_0x4861e1){const _0x4ccc45=createRunSummary(_0x1995c5),_0x3746a2=_0x4ccc45['finalMessageText'];return createToolOutput(typeof _0x3746a2==='string'&&_0x3746a2['length']>0x0?_0x3746a2:_0x4861e1,_0x4ccc45);}function getRunTerminalErrorMessage(_0x5f327c){const _0x129ad8={_0x897c6c:0x181,_0x4acd09:0x362,_0xbf7697:0x25d,_0x5c2163:0x222,_0xa81ccc:0x231,_0x4eccc4:0x35d,_0x195e44:0x54a,_0x596005:0x556,_0x269867:0xe2,_0x202ab5:0x14d,_0x4b80b8:0x22d,_0x148da3:0x125,_0x150fec:0x136,_0x19000e:0x464,_0x59a2f5:0x56a},_0x5873bc={_0x72b818:0x22},_0x5978c7={_0x2ad2c7:0x1df},_0x2dca6e=_0x5f327c?.[_0x13b285(0x121,_0x129ad8._0x897c6c,_0x129ad8._0x4acd09,_0x129ad8._0xbf7697)]['toolResults']['at'](-0x1);function _0x7a8035(_0x3bb4fe,_0x1ff88c,_0x48d52b,_0x1b08fe){return _0x357fd3(_0x3bb4fe-_0x5978c7._0x2ad2c7,_0x1ff88c-0x1a8,_0x48d52b- -0x151,_0x1b08fe);}function _0x13b285(_0x5cae8b,_0x404fed,_0x43a023,_0x15610c){return _0x1343ee(_0x15610c-0x31a,_0x5cae8b,_0x43a023-_0x5873bc._0x72b818,_0x15610c-0xa3);}if(_0x2dca6e?.[_0x13b285(0x3c1,_0x129ad8._0x5c2163,_0x129ad8._0xa81ccc,0x31e)]===_0x7a8035(-0x10f,0x6c,0x33,0x51)&&_0x2dca6e[_0x13b285(_0x129ad8._0x4eccc4,_0x129ad8._0x195e44,_0x129ad8._0x596005,0x47f)][_0x7a8035(-_0x129ad8._0x269867,-0x1a1,-_0x129ad8._0x202ab5,-_0x129ad8._0x4b80b8)]()[_0x7a8035(-_0x129ad8._0x148da3,-0x165,-_0x129ad8._0x150fec,-0x214)]>0x0)return _0x2dca6e[_0x13b285(_0x129ad8._0x19000e,0x482,_0x129ad8._0x59a2f5,0x47f)];return void 0x0;}function formatAbortedRunMessage(_0x27f012,_0xefd374){const _0x3d0388={_0xd1bb50:0x156,_0x34966e:0x2e0,_0x491c49:0x293,_0x4d5c62:0x2b5,_0x3683f4:0x257,_0x2b55e3:0x191,_0x1f72fb:0x12c,_0x495571:0x233,_0x35b1d6:0x144},_0x23c529={_0x198902:0x1bf,_0x528bbc:0x83},_0x19231f=_0x3e4bcf(-_0x3d0388._0xd1bb50,-0x70,-0x85,-0xdf)+_0x27f012+'\x20was\x20aborted.';function _0x3e4bcf(_0xa04ae4,_0x3bb265,_0xfbb6ce,_0x30968f){return _0x357fd3(_0xa04ae4-0x165,_0x3bb265-0x78,_0xa04ae4- -0x272,_0x3bb265);}function _0x36485c(_0x3fc0d5,_0x6c51a5,_0x4bb6fb,_0x2d8423){return _0x1343ee(_0x6c51a5- -0xef,_0x2d8423,_0x4bb6fb-_0x23c529._0x198902,_0x2d8423-_0x23c529._0x528bbc);}if(!_0xefd374||_0xefd374[_0x3e4bcf(-0x26e,-_0x3d0388._0x34966e,-_0x3d0388._0x491c49,-_0x3d0388._0x4d5c62)]()[_0x3e4bcf(-_0x3d0388._0x3683f4,-_0x3d0388._0x2b55e3,-_0x3d0388._0x1f72fb,-0x149)]===0x0||_0xefd374===_0x19231f)return _0x19231f;return _0x19231f+_0x3e4bcf(-0x16d,-0x1bd,-_0x3d0388._0x495571,-_0x3d0388._0x35b1d6)+_0xefd374;}function createAssignTaskTool(_0x4a4f58){const _0x559a22={_0x417727:0x202,_0x538e8c:0x122,_0x24b0a8:0x206,_0x4dc278:0x396,_0x362b9b:0x24a,_0x2a7a2e:0x31a,_0x4b0c7e:0x1b7,_0xa0a241:0x383,_0x1e67d4:0x287,_0x5ba0e1:0x254,_0x51cbd4:0x129,_0x275c2a:0x1b9,_0x404c9f:0x39b,_0x3b6126:0x430,_0x9599c4:0x328},_0x3623b6={_0x157e8d:0x44,_0x3f6842:0xb1,_0x58c85c:0x68,_0x520e31:0x111,_0x4222d9:0x141,_0x148460:0x22,_0x16b779:0x26,_0x17f6ba:0xa,_0x1e43c1:0x1c9,_0x3a8ffd:0x48,_0x1e4bb3:0x217,_0x3a363b:0x242,_0x41eced:0x238,_0x5ce26f:0x1fb,_0x30fe0b:0x1b1,_0x31d589:0x22b,_0x3d1588:0x101,_0x408760:0x19e,_0x2b4c82:0x1cc,_0x4d1434:0x2f4,_0x433256:0x207,_0x3b279d:0x192,_0x5834a6:0x104,_0x29b3e6:0xb3,_0x461ecb:0xef,_0x3cfe5b:0x5,_0x55e899:0x52,_0x283e11:0x1b,_0x1711c5:0x16,_0x1835d3:0x237,_0x431c47:0x16b,_0x3a31b6:0x79,_0x8e875d:0xcc,_0x294f18:0x251,_0x145442:0x13d,_0x3bdf52:0x128,_0x54075d:0x260,_0x2c2cb8:0x1d8,_0x59e758:0x18c,_0xdbf0b6:0x189,_0x2d0bb9:0x148,_0x521ca2:0x77,_0x467c26:0x7a,_0x2ef1b9:0x1c2,_0x28e40a:0x272,_0x45e464:0x14b,_0x5564a5:0x237,_0x369d39:0x213,_0x35631a:0x2d8,_0x10af75:0x323,_0xddf292:0x2bf,_0x521281:0x382,_0x1a17ce:0x2f0,_0x3a0f99:0x2e,_0x395a8e:0x9a,_0x142a95:0x15,_0x2adf13:0x11,_0x251adb:0x28,_0x97cb6f:0x1c3,_0x504c5b:0x235,_0x5af6cc:0x31b,_0x2a3d6d:0x31a,_0x42bea4:0xde,_0x155b3f:0x1b7,_0x17f9e8:0x203,_0x510220:0x136,_0x5b9030:0x217,_0xe5241c:0x1fe,_0x42e0e2:0x1e3,_0x26ddf0:0x52,_0x7d4c53:0xa3,_0x2bf1d3:0x2,_0x48476e:0x1b,_0x190ddd:0x36,_0x428c3a:0x19,_0x4ed2fa:0x15b,_0x5aefff:0x32c,_0x22eefd:0x202},_0x2db180={_0x175f3d:0x366,_0x5675d3:0x435,_0x1d9149:0x3d0,_0x56b017:0x1ad,_0x21c777:0x21c,_0x27d3df:0x31e,_0x380dc6:0x29f},_0x7ef712={_0x378a61:0x3c2,_0x17688e:0x110},_0x238b5c={_0x5dc7de:0x132};function _0x3eb7e8(_0x354a47,_0x333e72,_0x5b4b78,_0x5b3bd6){return _0x357fd3(_0x354a47-_0x238b5c._0x5dc7de,_0x333e72-0x1da,_0x5b4b78-0x1bf,_0x333e72);}function _0x1a6c5e(_0x59aa43,_0x6fb4a7,_0x520943,_0x390644){return _0x1343ee(_0x390644-_0x7ef712._0x378a61,_0x59aa43,_0x520943-_0x7ef712._0x17688e,_0x390644-0x13f);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':_0x3eb7e8(_0x559a22._0x417727,_0x559a22._0x538e8c,_0x559a22._0x24b0a8,0x33f),'properties':{'agentId':{'type':_0x3eb7e8(_0x559a22._0x4dc278,_0x559a22._0x362b9b,0x254,_0x559a22._0x2a7a2e)},'description':{'type':'string'},'nickname':{'type':_0x3eb7e8(0x199,_0x559a22._0x4b0c7e,0x254,_0x559a22._0xa0a241)},'task':{'type':_0x3eb7e8(_0x559a22._0x1e67d4,0x283,_0x559a22._0x5ba0e1,0x12c)}},'required':[_0x3eb7e8(_0x559a22._0x51cbd4,0x271,0x25e,_0x559a22._0x275c2a),_0x1a6c5e(_0x559a22._0x404c9f,_0x559a22._0x3b6126,_0x559a22._0x9599c4,0x3c0),'task']},async *'execute'(_0x4893e6,_0x128667){const _0x4aedd9={_0x106824:0x1df,_0x3c5f81:0x123},_0x1decb5={_0x2bba1d:0x146,_0x1a6451:0x142},_0x30a7f2=createDelegatedRunId(),_0x5399cf={'agentId':_0x4893e6[_0x44fbcd(-0xc4,-0xa5,0x26,0x117)],'parentSessionId':_0x128667[_0x44fbcd(-_0x3623b6._0x157e8d,_0x3623b6._0x3f6842,0xd8,_0x3623b6._0x58c85c)],'runId':_0x30a7f2,..._0x128667[_0x3a6f35(0x122,_0x3623b6._0x520e31,_0x3623b6._0x4222d9,-0x2c)]!==void 0x0?{'toolCallId':_0x128667['toolCallId']}:{}},_0x5d4f61=getDelegatedAgentDefinition(_0x4a4f58,_0x4893e6[_0x44fbcd(-0x30,_0x3623b6._0x148460,_0x3623b6._0x16b779,0x9e)]);if(!_0x5d4f61)throw new ToolExecutionError(_0x44fbcd(-_0x3623b6._0x17f6ba,-_0x3623b6._0x1e43c1,-0x8a,_0x3623b6._0x3a8ffd)+_0x4893e6[_0x3a6f35(_0x3623b6._0x1e4bb3,_0x3623b6._0x3a363b,_0x3623b6._0x41eced,_0x3623b6._0x5ce26f)],{'agentId':_0x4893e6[_0x3a6f35(0x351,_0x3623b6._0x3a363b,0x122,0x38f)]});function _0x44fbcd(_0x5ca97e,_0x5c9666,_0x4d9930,_0xbf7014){return _0x3eb7e8(_0x5ca97e-_0x1decb5._0x2bba1d,_0xbf7014,_0x4d9930- -0x238,_0xbf7014-_0x1decb5._0x1a6451);}const _0x1f19aa=new Agent(await resolveDelegatedAgentOptions(_0x5d4f61,_0x5399cf));function _0x3a6f35(_0x269620,_0x2bc4bf,_0x3e054b,_0x3f5556){return _0x3eb7e8(_0x269620-_0x4aedd9._0x106824,_0x269620,_0x2bc4bf- -0x1c,_0x3f5556-_0x4aedd9._0x3c5f81);}let _0x5e709c={'runId':_0x30a7f2,'agentId':_0x4893e6[_0x3a6f35(_0x3623b6._0x30fe0b,_0x3623b6._0x3a363b,0x220,_0x3623b6._0x31d589)],'sessionId':_0x1f19aa['sessionId'],'status':_0x44fbcd(_0x3623b6._0x3d1588,_0x3623b6._0x408760,0xfe,0x5d),'parentSessionId':_0x128667[_0x3a6f35(_0x3623b6._0x2b4c82,_0x3623b6._0x4d1434,0x392,0x415)],..._0x128667[_0x44fbcd(-_0x3623b6._0x433256,-_0x3623b6._0x3b279d,-0x10b,-_0x3623b6._0x5834a6)]!==void 0x0?{'originToolCallId':_0x128667['toolCallId']}:{}};const _0x4d252c=new AbortController(),_0x1df3e6=addAbortListener(_0x128667[_0x44fbcd(-0x171,0x45,-_0x3623b6._0x29b3e6,0x7d)],()=>{const _0x3eb255={_0x176311:0x73},_0x2c5990={_0x528927:0x71,_0x2bdf4d:0x166};function _0x595677(_0x38c0cc,_0x454e42,_0x216d7c,_0x21e922){return _0x3a6f35(_0x216d7c,_0x38c0cc-0x142,_0x216d7c-_0x2c5990._0x528927,_0x21e922-_0x2c5990._0x2bdf4d);}function _0x2e01e4(_0x3ed054,_0x31fcf7,_0xcb690c,_0x22a8c2){return _0x44fbcd(_0x3ed054-_0x3eb255._0x176311,_0x31fcf7-0x189,_0x31fcf7- -0xf0,_0x3ed054);}_0x4d252c[_0x595677(_0x2db180._0x175f3d,_0x2db180._0x5675d3,0x311,_0x2db180._0x1d9149)](_0x128667[_0x595677(0x2ab,_0x2db180._0x56b017,0x342,_0x2db180._0x21c777)]?.[_0x2e01e4(-0x1a6,-0x1ec,-_0x2db180._0x27d3df,-_0x2db180._0x380dc6)]);});yield createToolOutput(_0x44fbcd(0x1,-_0x3623b6._0x461ecb,-_0x3623b6._0x3cfe5b,-0xc4)+_0x5e709c[_0x44fbcd(-0xfb,-_0x3623b6._0x55e899,_0x3623b6._0x283e11,_0x3623b6._0x1711c5)]+'.',{'runId':_0x5e709c[_0x3a6f35(0x256,_0x3623b6._0x1835d3,_0x3623b6._0x431c47,0x2af)],'agentId':_0x5e709c[_0x44fbcd(0x11d,_0x3623b6._0x3a31b6,0x26,-_0x3623b6._0x8e875d)],'sessionId':_0x5e709c['sessionId'],'status':_0x5e709c['status']});try{const _0x31df89=await _0x1f19aa[_0x44fbcd(-_0x3623b6._0x294f18,-_0x3623b6._0x145442,-_0x3623b6._0x3bdf52,-_0x3623b6._0x54075d)](_0x4893e6[_0x3a6f35(_0x3623b6._0x2c2cb8,_0x3623b6._0x59e758,0xe5,_0x3623b6._0xdbf0b6)],{'signal':_0x4d252c[_0x3a6f35(_0x3623b6._0x2d0bb9,0x169,_0x3623b6._0x521ca2,0x178)]});_0x5e709c={..._0x5e709c,'status':_0x31df89[_0x44fbcd(-0x103,0x6d,-_0x3623b6._0x467c26,0x15)],'result':_0x31df89};if(_0x31df89[_0x3a6f35(0x2b7,0x1a2,0x10e,0x267)]!==_0x3a6f35(_0x3623b6._0x2ef1b9,_0x3623b6._0x28e40a,0x138,0x1f1)){const _0x5e7fea=getRunTerminalErrorMessage(_0x31df89),_0x2170fa=formatAbortedRunMessage(_0x5e709c[_0x3a6f35(_0x3623b6._0x45e464,_0x3623b6._0x5564a5,_0x3623b6._0x369d39,_0x3623b6._0x35631a)],_0x5e7fea);throw new ToolExecutionError(_0x2170fa,{...createRunSummary(_0x5e709c),'aborted':!![],'errorMessage':_0x2170fa});}return createRunSummaryOutput(_0x5e709c,_0x3a6f35(_0x3623b6._0x10af75,_0x3623b6._0xddf292,_0x3623b6._0x521281,_0x3623b6._0x1a17ce)+_0x5e709c[_0x3a6f35(0x27e,0x237,0x1bf,0x10e)]+_0x44fbcd(0x13d,0x16,0x1e,0xb7));}catch(_0x1e2445){if(_0x1e2445 instanceof ToolExecutionError)throw _0x1e2445;if(isAbortError(_0x1e2445)||_0x4d252c[_0x44fbcd(-_0x3623b6._0x3a0f99,_0x3623b6._0x395a8e,-_0x3623b6._0x29b3e6,-_0x3623b6._0x142a95)][_0x44fbcd(-0x2a,-_0x3623b6._0x2adf13,-_0x3623b6._0x251adb,0x123)]||_0x128667[_0x3a6f35(0x1f2,0x169,_0x3623b6._0x97cb6f,0xce)]['aborted']){const _0x3fe71b=getRunTerminalErrorMessage(_0x5e709c[_0x3a6f35(0x30e,_0x3623b6._0x504c5b,_0x3623b6._0x5af6cc,0x34f)])??(_0x1e2445 instanceof Error?_0x1e2445['message']:String(_0x1e2445)),_0x56512e=formatAbortedRunMessage(_0x5e709c[_0x3a6f35(0x2f0,0x237,0x2d5,_0x3623b6._0x2a3d6d)],_0x3fe71b);_0x5e709c={..._0x5e709c,'status':_0x44fbcd(-0x8c,-0x112,-0x28,-_0x3623b6._0x42bea4),'errorMessage':_0x56512e};throw new ToolExecutionError(_0x56512e,{...createRunSummary(_0x5e709c),'aborted':!![],'errorMessage':_0x56512e});}const _0x49f2cb=getRunTerminalErrorMessage(_0x5e709c[_0x3a6f35(0x34e,0x235,_0x3623b6._0x155b3f,_0x3623b6._0x17f9e8)])??(_0x1e2445 instanceof Error?_0x1e2445[_0x3a6f35(_0x3623b6._0x510220,0x285,_0x3623b6._0x5b9030,_0x3623b6._0xe5241c)]:String(_0x1e2445))??_0x44fbcd(_0x3623b6._0x42e0e2,-_0x3623b6._0x26ddf0,_0x3623b6._0x7d4c53,0xa1)+_0x5e709c[_0x44fbcd(-0x130,-_0x3623b6._0x2bf1d3,_0x3623b6._0x48476e,_0x3623b6._0x190ddd)]+_0x44fbcd(-_0x3623b6._0x428c3a,-_0x3623b6._0x145442,-0x127,-_0x3623b6._0x4ed2fa);_0x5e709c={..._0x5e709c,'status':_0x3a6f35(_0x3623b6._0x5aefff,0x31d,0x3bf,_0x3623b6._0x22eefd),'errorMessage':_0x49f2cb};throw new ToolExecutionError(_0x49f2cb,{...createRunSummary(_0x5e709c),'errorMessage':_0x49f2cb});}finally{_0x1df3e6();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x33211c){return[createAssignTaskTool(_0x33211c)];}import*as _0x2b4434 from'path';function buildDescription2(_0x4446d1){const _0x341f93={_0x2480d7:0x2c3,_0x383928:0x2c6,_0x30cff2:0x19a,_0x5e16bb:0x285,_0x19c650:0x3df,_0x4c71b4:0x272,_0x5584d5:0x278,_0x48de44:0x242,_0x4fcd85:0x2b1,_0x3bf919:0x1dd,_0x38c034:0x226},_0x4a9ceb={_0x597c35:0x10a},_0x2616ba={_0x59901a:0x12f};function _0x4d80ab(_0xf7abca,_0x51891c,_0x66a446,_0x5aea38){return _0x1343ee(_0x66a446-0x187,_0x5aea38,_0x66a446-_0x2616ba._0x59901a,_0x5aea38-0x7f);}if(_0x4446d1[_0x4d80ab(0x1c9,_0x341f93._0x2480d7,0x1a7,_0x341f93._0x383928)]===0x0)return _0x13143a(0x7a,0x1e4,0x187,0x140);function _0x13143a(_0xa7f08b,_0x35cb14,_0x5f317d,_0x59f7d5){return _0x357fd3(_0xa7f08b-_0x4a9ceb._0x597c35,_0x35cb14-0x1bc,_0x5f317d-0x1a3,_0x59f7d5);}const _0x48b5c6=[_0x4d80ab(_0x341f93._0x30cff2,_0x341f93._0x5e16bb,0x2a9,_0x341f93._0x19c650),'Skills\x20provide\x20specialized\x20knowledge\x20and\x20step-by-step\x20guidance.','Use\x20this\x20when\x20a\x20task\x20matches\x20an\x20available\x20skill\x20description.',_0x13143a(_0x341f93._0x4c71b4,0x2b9,_0x341f93._0x5584d5,0x2f0),..._0x4446d1[_0x4d80ab(0x218,_0x341f93._0x48de44,0x10d,0x1c3)](_0x41645c=>'-\x20'+_0x41645c[_0x4d80ab(0x249,0x169,0x105,0xcd)]+':\x20'+_0x41645c[_0x4d80ab(0x215,0x70,0x185,0x1d6)])];return _0x48b5c6[_0x13143a(_0x341f93._0x4fcd85,0x20b,_0x341f93._0x3bf919,_0x341f93._0x38c034)]('\x0a');}function createLoadSkillTool(_0x222f0c){const _0x209aa6={_0x6facb4:0x30c,_0x4fa688:0x3b4,_0xe01f00:0x548,_0x2ac3ac:0x1f0},_0x1a9109={_0x3f44dc:0x27a,_0x23f8f9:0x2d8,_0x2306ae:0x4a5,_0xeb25cc:0x3a4,_0x15e5d2:0x4cc,_0xab30c5:0x3ec,_0x14b87d:0x4d5,_0x2667a7:0x3b3,_0x44cc7c:0x377,_0x43f8b2:0x4b2,_0x429ad2:0x309,_0x49e710:0x291,_0x1191d0:0x1ca,_0x3db5d8:0x491,_0x2c5b04:0x5d4,_0x3a8c9d:0x419,_0x294672:0x506,_0x1cbe68:0x4f4,_0x33ae75:0x4eb,_0xfb6be7:0x631,_0x475dc5:0x439,_0xc956de:0x506,_0x493992:0x270,_0x24e06c:0x45e,_0x238793:0x4bb,_0x9a24c6:0x269,_0x345430:0x291,_0x3a06bc:0x159,_0xd9f9bb:0x31b,_0x8ef4a0:0x2fd,_0x8a2bff:0x4f1,_0x3ae19e:0x523,_0x45dad3:0x58d,_0x4f5b4f:0x515,_0x107031:0x40d,_0x34868b:0x38e,_0x56634b:0x3a4,_0x48ac56:0x3d5,_0x3317b7:0x427,_0x1a6fd9:0x3e6,_0x4601ae:0x51e,_0x32849a:0x465,_0x3e1631:0x375,_0x3c6754:0x4b1,_0x147edb:0x364,_0x552360:0x56a,_0x14d5b9:0x427},_0x357568={_0x39a487:0x56},_0x518a78={_0x144f58:0x594},_0x566ff1={_0x3bc3bf:0x8b},_0x3857e={_0x4afd82:0x25,_0xc66aa9:0x3a8},_0x2612f5=new Map(_0x222f0c[_0x10e670(_0x209aa6._0x6facb4,0x318,0x34b,_0x209aa6._0x4fa688)]['map'](_0x1db981=>[_0x1db981['name'],_0x1db981]));function _0x10e670(_0x28b56e,_0x5f52e6,_0x29219b,_0x4ff839){return _0x357fd3(_0x28b56e-_0x3857e._0x4afd82,_0x5f52e6-0xd3,_0x5f52e6-_0x3857e._0xc66aa9,_0x28b56e);}function _0x33fe21(_0x471845,_0x3ed82a,_0x2e7924,_0x5b3915){return _0x357fd3(_0x471845-0x16d,_0x3ed82a-_0x566ff1._0x3bc3bf,_0x5b3915- -0x169,_0x471845);}const _0x5dfda5=buildDescription2(_0x222f0c['skills']);return defineTool({'name':_0x10e670(0x49e,0x565,0x447,_0x209aa6._0xe01f00),'description':_0x5dfda5,'inputSchema':{'type':'object','properties':{'name':{'type':'string'}},'required':[_0x33fe21(-0x291,-0x2eb,-0x122,-_0x209aa6._0x2ac3ac)]},async *'execute'(_0x42cb48){const _0x2347f2=_0x2612f5[_0x21bf2e(0x37d,_0x1a9109._0x3f44dc,_0x1a9109._0x23f8f9,0x3ba)](_0x42cb48[_0x2be6b3(0x39e,_0x1a9109._0x2306ae,0x344,_0x1a9109._0xeb25cc)]);function _0x2be6b3(_0x59f794,_0x1e110a,_0x53d043,_0x54d7ad){return _0x33fe21(_0x1e110a,_0x1e110a-0x1ec,_0x53d043-0xe5,_0x54d7ad-_0x518a78._0x144f58);}function _0x21bf2e(_0x5aa8c3,_0xf89b9e,_0x1de29f,_0x2b2121){return _0x33fe21(_0x2b2121,_0xf89b9e-0x193,_0x1de29f-_0x357568._0x39a487,_0xf89b9e-0x481);}if(!_0x2347f2){const _0x20e6be=Array[_0x21bf2e(_0x1a9109._0x15e5d2,0x3dd,0x4b3,0x346)](_0x2612f5[_0x2be6b3(_0x1a9109._0xab30c5,0x3a2,_0x1a9109._0x14b87d,_0x1a9109._0x2667a7)]())[_0x2be6b3(0x497,_0x1a9109._0x44cc7c,0x43f,0x465)](',\x20');throw new ToolExecutionError(_0x21bf2e(0x51c,0x3fb,_0x1a9109._0x43f8b2,0x41b)+_0x42cb48[_0x21bf2e(_0x1a9109._0x429ad2,_0x1a9109._0x49e710,0x25d,_0x1a9109._0x1191d0)]+_0x2be6b3(0x51c,0x58a,0x3d1,0x4c9)+_0x20e6be,{'name':_0x42cb48['name']});}const _0x43a37c=await _0x222f0c['loadSkill'](_0x2347f2),_0x2f0e7a=_0x2347f2[_0x2be6b3(_0x1a9109._0x3db5d8,_0x1a9109._0x2c5b04,_0x1a9109._0x3a8c9d,_0x1a9109._0x294672)][_0x2be6b3(_0x1a9109._0x1cbe68,0x5dd,0x4a0,_0x1a9109._0x33ae75)]??_0x2b4434['dirname'](_0x2347f2[_0x2be6b3(_0x1a9109._0xfb6be7,0x5b9,_0x1a9109._0x475dc5,_0x1a9109._0xc956de)][_0x21bf2e(0x214,0x314,_0x1a9109._0x493992,_0x1a9109._0xeb25cc)]),_0x29c876=[_0x21bf2e(_0x1a9109._0x24e06c,0x37c,_0x1a9109._0x238793,0x405)+_0x43a37c[_0x21bf2e(_0x1a9109._0x9a24c6,_0x1a9109._0x345430,0x351,_0x1a9109._0x3a06bc)],'',_0x43a37c['instructions'],'',_0x21bf2e(0x448,_0x1a9109._0xd9f9bb,_0x1a9109._0x8ef4a0,0x38a),_0x2be6b3(_0x1a9109._0x8a2bff,_0x1a9109._0x3ae19e,0x4f8,_0x1a9109._0x45dad3)+_0x2347f2[_0x21bf2e(_0x1a9109._0x4f5b4f,0x3f3,_0x1a9109._0x107031,_0x1a9109._0x34868b)][_0x2be6b3(_0x1a9109._0x56634b,_0x1a9109._0x48ac56,0x564,_0x1a9109._0x3317b7)],_0x2be6b3(_0x1a9109._0x429ad2,0x362,0x479,_0x1a9109._0x1a6fd9)+_0x2f0e7a][_0x2be6b3(0x35b,_0x1a9109._0x4601ae,0x44a,_0x1a9109._0x32849a)]('\x0a');return yield createToolOutput(_0x29c876,{'id':_0x43a37c['id'],'name':_0x43a37c['name'],'path':_0x2347f2[_0x21bf2e(0x48e,0x3f3,_0x1a9109._0x3e1631,_0x1a9109._0x3c6754)][_0x2be6b3(0x357,_0x1a9109._0x147edb,_0x1a9109._0x552360,_0x1a9109._0x14d5b9)],'baseDirectory':_0x2f0e7a}),void 0x0;}});}var TODO_STATUSES=new Set([_0x1343ee(0x177,0x1f9,0x199,0x4f),'in_progress',_0x357fd3(0x1ea,0x1ff,0xcf,0xda)]),TODO_PRIORITIES=new Set(['high','medium','low']);function isTodoStatus(_0xedfb8d){const _0x1ccfe5={_0x3df28f:0x64,_0x272a39:0x10f,_0x3ed9af:0x10e,_0x4b7449:0x101,_0x19d7f1:0x11f,_0x2dce28:0x80,_0xcda0ae:0xc},_0x22e34e={_0x459848:0x16a},_0x27aa7a={_0x3f6cb5:0x10e,_0x263373:0x1cd,_0x47bf8f:0xb1};function _0x46c544(_0x16a095,_0x5d3ab3,_0x212780,_0x45c32b){return _0x357fd3(_0x16a095-_0x27aa7a._0x3f6cb5,_0x5d3ab3-_0x27aa7a._0x263373,_0x45c32b-_0x27aa7a._0x47bf8f,_0x212780);}function _0x5235ff(_0x31a83d,_0x63921,_0x185f9d,_0x4d139d){return _0x357fd3(_0x31a83d-0x1b5,_0x63921-_0x22e34e._0x459848,_0x31a83d- -0x9a,_0x63921);}return typeof _0xedfb8d===_0x5235ff(-0x5,-_0x1ccfe5._0x3df28f,-_0x1ccfe5._0x272a39,-_0x1ccfe5._0x3ed9af)&&TODO_STATUSES[_0x46c544(_0x1ccfe5._0x4b7449,_0x1ccfe5._0x19d7f1,_0x1ccfe5._0x2dce28,-_0x1ccfe5._0xcda0ae)](_0xedfb8d);}function isTodoPriority(_0x364943){const _0x5322b0={_0x3eb45e:0x91,_0x5e5645:0x3e0,_0x580d4a:0x42c},_0x2d665e={_0x383fa5:0x88,_0x4a7f6c:0x56,_0x25c394:0x49d};function _0x351976(_0x1a95ef,_0x274344,_0xfe7dd2,_0x45766c){return _0x357fd3(_0x1a95ef-_0x2d665e._0x383fa5,_0x274344-_0x2d665e._0x4a7f6c,_0x274344-_0x2d665e._0x25c394,_0x45766c);}function _0x954d32(_0x2200f5,_0x3588a5,_0x57823e,_0x46716c){return _0x1343ee(_0x2200f5- -0x182,_0x46716c,_0x57823e-0x60,_0x46716c-0x50);}return typeof _0x364943===_0x954d32(-0xe8,-0x235,-_0x5322b0._0x3eb45e,-0x217)&&TODO_PRIORITIES[_0x351976(0x2f6,_0x5322b0._0x5e5645,_0x5322b0._0x580d4a,0x328)](_0x364943);}function _0x4019(){const _0x5e3318=['zw5K','BwnFzwLK','zNvUy3rPB24','Dg9VBc1VDxrWDxqTB2zMBg9Hza','BM93','C2vYDMvY','C2vYDMvYswq','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','CMvZDwX0CW','AwzYyw1L','CMvZDwX0','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','CNvUswq','C3rYAw5N','D3jPDgu','ignVBxbSzxrLzc4','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','l3vZCI9IAw4VyMfZAa','Dg9KB3ncEvnLC3nPB24','lNbUzW','lw5i','mtm3mg5Uz3jzza','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','ywDLBNrjza','Cg9W','Aw52ywXPzf90B2rVx2LK','oIbJB250zw50ihjLCxvPCMvK','BgL0zxjHBa','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','qMfZAa','AxndB250zxH0','CgfJA2fNzu5HBwu','A2v5yMLUzgLUz3m','yMfZAwm','EwvZ','rgv0ywLSoIa','BgLUzq','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','qxnRvxnLCLrVB2W','Aw5PDgLHBgL6zq','vw5RBM93BIb0B29SoIa','AxngAw5PDgu','Aw1Hz2uVANbLzW','Ag9TzwrPCG','zw52','y21KlMv4zq','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C2vYDMvYCW','vg9KBYa','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','Dhj1zq','DxjS','ywXSu2v0DgXLza','DhnJ','zgLYzwn0B3j5','y29UDgv4DeXPBMS','Dg9VBhm','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','Aw1Hz2uVz2LM','zNjVBq','CMvJB3jK','DhjHBNnWB3j0','Ahr0CdO','AxneAxjLy3rVCNK','C3jJl2v4yw1WBgvZl2rLBw8UDhm','C2v0vg9KB3m','l3vZCI9SB2nHBc9IAw4VCMC','AwDUB3jL','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','y29TCgXLDgvK','Dgv4DerVy3vTzw50l2rPze9Wzw4','CMvJzw5JEurHExm','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','C3rHCNq','zNvSzMLSBgvK','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','B3b0Aw9UywW','lMPZB25J','AxnfBMfIBgvK','DxrMoa','B3bLBG','C291CMnL','Aw1Hz2u','Aw5PDgLHBgL6yxrPB24','ChvIBgLZAgvKqxq','B25Jzq','yw5ZAte2','ywrK','BwvZC2fNzq','u2TPBgWGjW','BgLUzu51Bq','CM91BMq','BwvTB3j5','BgLZDfrVB2XZ','BgfIzwW','yxnRvxnLCG','v0vcua','CMLWz3jLCa','DhnJB25MAwCUANnVBG','lNrZ','zgv0ywLS','DgfZA2TPBgW','AhjLzG','BgLZDgvU','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','qwXSia','v2fYBMLUzW','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','l2jPBI9ZAa','zMLSDgvY','ls1NBg9I','tNv2Aw4','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','lMnQCW','AxnbCNjHEq','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','ugf0AcbPCYbUB3qGysbMAwXLoIa','ls1JB2X1Bw4','Dg9tDhjPBMC','zgLHz25VC3rPy3ngB3jgAwXL','zgvMyxvSDen3za','C2v2zxjPDhK','DxrTx2nVBNrLBNq','ienHDxnLoIa','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','r3jLCa','Dg9vChbLCKnHC2u','lMPZEa','CMvMzxjLBMnLCW','CMLWz3jLCcbMywLSzwq6ia','Dg9ju09tDhjPBMC','zgvMAw5PDgLVBG','C3rYAw5NAwz5','Dg9mB3DLCKnHC2u','Ag9ZDa','uKLgrG','A2LSBgvK','AxnjBNrLz2vY','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','BxvSDgLtzwXLy3q','z29uB0rLzMLUAxrPB24','lM51DMLU','DxrTx2nHBxbHAwDU','BNbT','BM9Kzv9TB2r1BgvZ','DxrTx3rLCM0','qwDLBNqGCNvUia','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','rMv0y2GGDgLTzwqGB3v0','Cg5WBs1SB2nRlNLHBwW','Dgv4Da','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','D2fPDezVCKrPywDUB3n0AwnZ','l2jPBI9IyxnO','ru5pru5u','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','C3vIyxjYyxK','yM9VBgvHBG','zxH0BMfTzq','B2zM','CgXHAw4','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqP','y29ZDa','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','AhrTBfnUAxbWzxq','lcbpChrPB24G','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','C2HHmJu2','C3rHCNreAxi','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','zgLZCg9Zzq','y291BNq','DgvZDa','CMvSyxrPDMu','cMbGya','BMv3vgv4Da','BhmGlwXH','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','lMnTza','zhj5uNvU','BwnWxW','zgvSzxrL','DxrTx21LzgL1Bq','BNvTyMvY','lMPWzW','xsb0CMfUC3bVCNqGzxjYB3i6','DMvYAwzPzxi','zMLUza','qMvHCMvYia','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','B2f1DgG','D2HPy2GGCMC','yxnPzgu','BgLUzvrLEhq','zgf0zvjLC3rYAwn0','Bw9Kzq','C2vZC2LVBKLK','C3rKB3v0','DgLTzvTKyxrLDgLTzv0','Ahr0Ca','AwDUB3jLt3v0Chv0','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','tM8GC3vJAcbMAwXLoIaN','oIaIAgvHzgvYiIbMAwvSzcbPCYbYzxf1AxjLzcbHBMqGBxvZDcbIzsbHihn0CMLUzW','mc4WlJa','twLJCM9ZB2z0','zxzLCNK','v2vIrMv0y2G','txvZDcbWCM92AwrLideTncbXDwvZDgLVBNm','C2L6zq','lMjPBG','B3v0Chv0','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','tg9HzgvKigzYB206ia','DhLWzxnJCMLWDa','y2fSBeLK','C3rKAw8','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','zM9VDgvY','CxvLCNK','CgfYC2vjBNq','ywDLBNrZ','EwfYBI5SB2nR','C2XPy2u','BgfUzW','Bw9KzwW','B25szwrPCMvJDa','ywXSB3DLzfrVB2XZ','y2fSBgjHy2TvCMW','CgvUzgLUzW','z29Vz2XLlwnZzq','D2LUmZi','l3vZCI9IAw4VCMC','BM9Uzq','CNvUBMLUzW','yM94zwq','lI4U','zMfPBgvK','yxr4','CgLK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','mtfothznDKe','yMLVBwu','lu5Vtg9NBW','ls1MB2XSB3C','Aw5qCM9NCMvZCW','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','zxjYB3i','uxvLC3rPB24G','C2HLBgXqyxrO','zw5NAw5LCW','ls1YzwDLEha','B3bLBKzPBgvZ','C2fMzq','Aw52ywXPzf90B2rVx2nVBNrLBNq','DhnZzxj2zxiUANm','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','DhLWzxnJCMLWDhjLywn0','C3jJl3nOyxjLzc90ExbLCY50CW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','BwnFy2LK','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','CgfZC3DVCMq','ygbG','sw52ywXPzcbvuKWGCgfYyw1LDgvY','BhnWu2vYDMLJzq','lNDLyNa','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','CgXHDgzVCM0','ls1WCMvMAxG','B3v0z29PBMDdywXSCW','Aw52ywXPzf90B2rVx3n0yxr1CW','AgfUzgXL','tuLnrtOG','CgfZC3rOCM91z2G','w01duca','u2HLBgWGBM90igzVDw5KoIa','ntbmsfD4CNi','y2HHCMfJDgvY','DgL0Bgu','AgvHzgvY','AxnbyNnVBhv0zq','ksbB','yxjNCW','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','l29WDc9OB21LyNjLDY9IAw4VCMC','BgLUzuvUza','y3jLyxrLzef0','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','r0LgodDH','zgLYBMfTzq','C3LTBgLUAW','yxr0CG','AxnfCNjVCG','Cgf0DgvYBIbPCYbYzxf1AxjLza','q29Tu3bLyW','yxbPs2v5','zhvWBgLJyxrLx3rVzg9FAwrZ','ANnVBG','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','tuvesvvn','CgfJA2fNzxm','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','lMXVzW','tg9HzfnRAwXS','y2XPzw50','ie9sia','lu5VuhjVzMLSzq','CMvNAw9U','Dg9VBa','BhnWlxbYB3H5','yxjNDw1LBNriAw50','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','v2vIu2vHCMnO','o1TE','y29Uy2f0','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','y29UDgvUDa','tM8GC3LTyM9SCYbMB3vUza','Dgv4Dc9ODg1S','DxnLCM5HBwu','CgfJA2fNzs1SB2nRlMPZB24','CMvTB3zLrxzLBNrmAxn0zw5LCG','CgfYC2u','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','zxjYB3jnzxnZywDL','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','B25LCNjVCG','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','AMf2yxnJCMLWDa','igj5DgvZks4','Bwf0y2HLCW','B2C6DxbKyxrLzf90Aw1L','C2HPzNq','C3rHDgu','sw52B2TLq29TBwfUza','Aw5JB21PBMDdywXSCW','cGPbuKDvtuvovfm6ia','yxjNDw1LBNrZvgv4Da','AgfZ','CgfJA2fNzs5QC29U','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','z29uB0LTCgXLBwvUDgf0Aw9U','D29YA3nWywnLl3n5BwjVBa','Dw5RBM93BG','yxv0AfjLCxvPCMvK','n3n3weDPrW','C3vKBW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','Aw1Hz2uVD2vICa','zMvUy2vK','AxrLBxm','Bg93','C2vUza','igzHAwXLzc4','Aw1WBgvTzw50yxrPB24','Cgf0DgvYBG','ywXSB3DLzerPCNm','B2zMC2v0','AhLKCMf0zu1LDge','Dw5PB24','Bg9JyxrPB24','Aw5FChjVz3jLC3m','y29UDgv4Da','AMf2yxnJCMLWDhjLywn0','igj5DgvZicH0B3rHBdOG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','uhjVz3jHBuzPBgvZ','Aw1Hz2vZ','BhnW','z2v0','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','ntu1y291uMHK','vw50AxrSzwq','CxvLC3rPB25Z','CNnZ','zgvSAw1PDgvY','z2v0vg9KB3m','zgvUBY5QC29U','yw5ZD2vYCW','C3rKzxjY','AgLNAa','Dg9VBenHBgXjza','C2H1DgrVD24','C2TPBgXZ','ig1HDgnO','y29TBwfUza','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','BxrPBwvnCW','Aw5KzxHpzG','C3bSAxq','Aw5ZDhj1y3rPB25Z','Aw5JBhvKzxm','BMfTzq','tunqihnLCNzLCIa','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','lMPZB24','CMvHC29U','z29Vz2XLq3nLs2v5','z2v0u3rHDhm','zMLSzvzLCNnPB25Z','BwfW','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','y2f0y2G','zgLHz25VC3rPy3m','oIaIAgvHzgvYiIbTDxn0igjLig1HEcaYmcbJAgfYywn0zxjZlcbNB3qG','zgf0zxrPBwu','C2vHCMnOrgvWDgG','A2v5CW','yNL0zuXLBMD0Aa','CgLWzq','y29KzvzLCMLMAwvY','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','C25PChbLDa','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','z2nSAwq','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','Dg9Rzw5Z','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','Dhj1BMm','yNjVA2vU','y2XPzw50CW','C2vHCMnOugfYyw1Z','Aw5WDxq','CMvWBgfJzq','igzYB20G','C2vUze5VDgLMAwnHDgLVBG','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ywn0AxzL','yxjNDw1LBNroyw1LCW','zgvUBY5QC29UyW','yxjYyxK','tunqihrVB2WG','C29YDa','AgvHzgvYCW','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','zMLSzvbHDgG','CMvXDwLYzwq','DgLTzw91De1Z','y2HHCKnVzgvbDa','zg9TywLUCW','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','uhjVz3jHBuzPBgvZkhG4nIK','C2L0ztO','z29Vz2XLq3nLq3G','y2fWywjPBgL0AwvZ','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','tM8GAg92zxiGAw5MB3jTyxrPB24','y2XLyw51Ca','r2XVyG','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','Aw5JBhvKzq','zgvSzwDHDgvKlxj1BI0','Dg9KB3m','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','DgHLBG','Aw52ywXPzf90B2rVCW','qMfZzsbKAxjLy3rVCNK6ia','phn5C3rLBs1Yzw1PBMrLCJ4','BwfYA2rVD24','lM1QCW','zgvMyxvSDa','C2vYDMvYtMfTzq','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','C2nYAxb0','DxbKyxrL','Dg9WAwm','DMfSDwu','C2LNBMfS','Bwv0yq','CgfNzw1HCa','C2vUzfjLCxvLC3q','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','C2nVCgvZ','tM8GBg9JyxrPB25ZigzVDw5K','Dgf2AwX5','pc9ZExn0zw0TCMvTAw5Kzxi+','y2XPzw50x3nLy3jLDf9WB3n0','yxv0Aa','zw5HyMXLza','y29UBMvJDa','zw51Bq','seLhsa','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','yxbWBgLJyxrPB24VANnVBG','ygbGANnVBGO','y29UzMLN','Bwf4','Dg9VBe5HBwu','zxjYB3jZ','CMfUz2u','zg9JDw1LBNrtEw1IB2W','zxHPDcbJB2rLia','zgLZy292zxj5u3rHDgu','y2XLyxi','C29Tzq','yxnZAwDU','zgf0yq','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','Aw52ywXPzf90B2rVx2L0zw0','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','C3rHCNrZv2L0Aa','Aw5JBhvKzv9KB21HAw5Z','DgfZAW','C3rHDhvZvgv4Da','zMLSzq','wZ0+nY04kcLD','ig1Z','CM9VDa','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','mJe4mZmYv3n6A1nI','ue9tva','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','Aw50zwDLCG','yMLVBwuUANnVBMm','B3bLCMf0Aw9U','y2XPzw50sw5MB3jTyxrPB24','zgvZy3jPChrPB24','Bg9HzenVBw1HBMq','Aw1Hz2uVCg5N','Cgf0Aa','zMLUywXnzxnZywDL','mtqZmtaXnKvABLr4Cq','C3rHDhvZ','nZC0rhrKt2zo','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','BwLU','ls0T','DhjPBq','A2LSBa','yMfZzw5HBwu','xg5DkJ8','rxjYB3i','BgLTAxq','thnW','yxv0Ag9YAxPHDgLVBL9JB2rL','zgLZy292zxj5','l3bPza','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','DxjP','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','ChjPB3jPDhK','DhjPBuvUza','vw5HDxrOB3jPEMvKrxjYB3i','Agv4','AxngAwXL','yw5ZAti1nG','C2H1DgrVD25tDgfYDgvK','BgLUAW','B2XKvgv4Da','BgvUz3rO','Aw52ywXPzf90B2rVx3bYAw9YAxr5','CMvMCMvZAf90B2TLBG','yMfZzty0','CMfUzg9T','lNrZEa','yxnJAwK','ls1NBg9Ipq','zgLZywjSzwq','y29Kzq','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','B3b0Aw9UCW','B3bLBMfPlxjLC3bVBNnLCY13CW','ChjVDg9JB2W','rMLSzu5LDW','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','DhLWzq','CgXHAw50zxH0','ChjLCgfYzunHBgXiAwvYyxjJAhK','B2XSyw1H','cGOTls0kcG','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','ndKYntiWohfYCuPqBq','ChjVCgvYDgLLCW','zMLYC3q','BxrPBwu','zMLUzfjLzMvYzw5Jzxm','sfruuca','y3jSzG','ugfJA2fNzxm','lMDPzG','AM9PBG','zw50CMLLCW','Dhj1zwnVBg9Y','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','ChjLzML4','Dgv4DerVy3vTzw50l2rPzenSB3nL','Ag92zxi','A2LUza','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','CxvLC3rPB24','y29TBwfUzhm','CMCUzxHL','yxv0BW','B2jQzwn0','AgfZq2XPzw50CW','y2vPBa','CgfYzw50u2vZC2LVBKLK','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','ls1ZDgrPBW','Bwv0yxrHz3m','qxzHAwXHyMXLignVBw1HBMrZoG','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','yNvUlMXVy2S','ywjVCNrLza','tgLUzsa','CMvXDwvZDa','yMvHCMvY','mZK1mJbyr2HLC2O','z2XVyG','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','C3rYAxbbBNnP','C3bHD25PBMC','BgLUzvn0yxj0','Dg9Rzw5tDg9YywDLs2v5','BNv2Aw4','ChvZAa','Dg9Rzw4','C3jJl2fNzw50l2fNzw50lNrZ','yxjNDw1LBNrZ','Dgf2AwX5qxbPs2v5','lMPWzwC','CMvZB2X2zq','iYmGu2TPBgW6ia','Aw52ywXPzf9XDwvZDgLVBNm','Dg90ywW','zMjJBgLK','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','mZaXmZC2mxnQr3LtAG','Aw5WDxrty2HLBwe','u2L6ztOG','rgLHz25VC3rPyW','ywXS','zw5NAw5L','mZaYndG0qLHzvMvV','BMf2','Dg9VBhmVy2fSBa','lNrTCc4','u3rHCNrLzcbHz2vUDcbYDw4G','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','y2HHBMDL','C2vSzwn0Aw9UuMfUz2u','t0zg','C2v0','y2XVC2u','BgLI','B3jPz2LUvg9VBenHBgXjza','CMvXDwvZDhm','D29YA3nWywnLu3LTyM9S','y3DK','ywjVCNq','yMLYDgH0Aw1L','u0Lhs0Lmta','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','zMXHDe1HCa','te9x','vg9KB1DYAxrL'];_0x4019=function(){return _0x5e3318;};return _0x4019();}var TodoStore=class{[_0x1343ee(0x9f,0xf5,0x96,0x154)]=new Map();[_0x357fd3(-0x175,-0x39,-0x97,-0x2e)](_0x15c6f6){const _0x28222f={_0x2d3f76:0x454,_0x538509:0x576,_0x2085b8:0x46c},_0x3a9b8c={_0xd7b1c3:0x150,_0x1259c3:0x1dd};function _0x23e058(_0x44c3ae,_0x4887d6,_0x316f26,_0x564460){return _0x357fd3(_0x44c3ae-_0x3a9b8c._0xd7b1c3,_0x4887d6-_0x3a9b8c._0x1259c3,_0x44c3ae-0x4f2,_0x564460);}return this['todosBySession'][_0x23e058(_0x28222f._0x2d3f76,0x4c9,_0x28222f._0x538509,_0x28222f._0x2085b8)](_0x15c6f6)??[];}['setTodos'](_0x41c28c,_0x110d30){const _0x4b7d64={_0x3d108c:0x196},_0x5185fb={_0x12c9be:0x4b,_0x5c8788:0x197};function _0x5afbd3(_0x4037c4,_0x3d93c3,_0x5a050d,_0x1975d9){return _0x1343ee(_0x4037c4-0x32,_0x1975d9,_0x5a050d-_0x5185fb._0x12c9be,_0x1975d9-_0x5185fb._0x5c8788);}this['todosBySession'][_0x5afbd3(0xb1,0x1df,_0x4b7d64._0x3d108c,0x6c)](_0x41c28c,_0x110d30);}[_0x357fd3(-0x18d,-0xf4,-0x81,0xca)](_0x19cd8){const _0x550fab={_0x30c648:0x33f,_0x2e924f:0x33b,_0x44aacc:0x556,_0x33dbe1:0x378,_0x52cee4:0x519,_0x19ac76:0x593,_0x73814b:0x330,_0x11509a:0x520,_0x62dfc2:0x5b1,_0x217e53:0x525,_0x3827f1:0x4f3,_0x3a0ba5:0x56f,_0x23777b:0x4f6,_0x201b91:0x4a8},_0x40026b={_0x55f766:0x4a0},_0x5d652c={_0x2cba51:0xeb,_0x5c5826:0x85},_0x997660=this['getTodos'](_0x19cd8);function _0x1bc40(_0x634d5d,_0x3480d2,_0x4dfa66,_0x51c5df){return _0x357fd3(_0x634d5d-_0x5d652c._0x2cba51,_0x3480d2-_0x5d652c._0x5c5826,_0x4dfa66-0x2da,_0x3480d2);}const _0x1f9864={'total':_0x997660['length'],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x4f7481(_0xee9755,_0x15895e,_0x1cd809,_0x4cb47a){return _0x357fd3(_0xee9755-0x1b0,_0x15895e-0xde,_0x15895e-_0x40026b._0x55f766,_0x4cb47a);}for(const _0x12fbdc of _0x997660){if(_0x12fbdc['status']==='pending')_0x1f9864[_0x1bc40(_0x550fab._0x30c648,_0x550fab._0x2e924f,0x44c,_0x550fab._0x44aacc)]+=0x1;else{if(_0x12fbdc[_0x4f7481(_0x550fab._0x33dbe1,0x49f,_0x550fab._0x52cee4,_0x550fab._0x19ac76)]===_0x4f7481(0x361,0x3fa,_0x550fab._0x73814b,0x4f2))_0x1f9864[_0x4f7481(_0x550fab._0x11509a,0x622,_0x550fab._0x62dfc2,_0x550fab._0x217e53)]+=0x1;else _0x1f9864[_0x4f7481(_0x550fab._0x3827f1,_0x550fab._0x3a0ba5,_0x550fab._0x23777b,_0x550fab._0x201b91)]+=0x1;}}return _0x1f9864;}};function validateTodos(_0x4302f0){const _0x452b8b={_0x2c5435:0x37,_0x507cb1:0x1cf,_0x597dc8:0x32b,_0x59edf7:0x471,_0x4edad2:0x4fa,_0x3ccdb7:0x4d0,_0x13cda6:0x45a,_0x482732:0x1c6,_0x5c7bee:0x15d,_0x5803c7:0x19d,_0x48e017:0x7b,_0x1bc79b:0x1d1,_0x181750:0xe2,_0x5933c3:0xb1,_0xaf311b:0x2e1,_0x1cb9a8:0x1d,_0x1a6703:0xe4,_0x434fcc:0x107,_0x565567:0x11f,_0x30935f:0x8e,_0x27e711:0x1a1,_0x44455d:0x564,_0x1db426:0x206,_0x3c2c37:0x0,_0x30aee8:0x122,_0xaeb9bb:0xd4,_0x4ad689:0x31,_0x3216c8:0x30,_0x2b8799:0x4d,_0x283123:0x5f,_0x1aa908:0x198,_0x1e2973:0x4c2,_0xbc84d5:0x408,_0x3fca76:0x4ad,_0x752a53:0x550,_0x1e7b92:0x4aa,_0xc4ef98:0x77,_0x4015b2:0x11,_0x963d7d:0x4bf,_0x3769fd:0x3a5,_0x291f14:0x523,_0x25e7e1:0x62b,_0x4dc4ae:0x4a,_0x305954:0x1c0,_0x528bfe:0x180,_0x79f906:0x130,_0x5e3057:0x40a,_0x884452:0x3a4,_0x5d5441:0x4af,_0x1834ef:0x405,_0x3ee2ac:0x423,_0x19b7f4:0x52e,_0x4e082d:0x536,_0xe48b94:0x54a,_0x47b700:0x634},_0x456515={_0x520345:0x128,_0x35cce4:0x19c},_0x5e3ead={_0x174170:0xa7};function _0xf6516f(_0x6b9151,_0x50ad08,_0x2607bc,_0x29af2e){return _0x357fd3(_0x6b9151-0x17d,_0x50ad08-_0x5e3ead._0x174170,_0x50ad08-0x408,_0x6b9151);}if(!Array[_0x3033c3(-0x12a,0x97,-0xa0,-_0x452b8b._0x2c5435)](_0x4302f0['todos'])||_0x4302f0['todos']['length']===0x0)throw new ToolExecutionError(_0x3033c3(-0x11f,-0xcd,-0x1e4,-_0x452b8b._0x507cb1),{'error':_0xf6516f(_0x452b8b._0x597dc8,0x3c2,_0x452b8b._0x59edf7,_0x452b8b._0x4edad2)});for(let _0x4aa2cb=0x0;_0x4aa2cb<_0x4302f0[_0xf6516f(_0x452b8b._0x3ccdb7,0x3bf,0x354,_0x452b8b._0x13cda6)]['length'];_0x4aa2cb+=0x1){const _0x5c93ea=_0x4302f0[_0x3033c3(-_0x452b8b._0x482732,-0x156,-0x1e5,-_0x452b8b._0x5c7bee)][_0x4aa2cb];if(!_0x5c93ea||typeof _0x5c93ea!==_0x3033c3(-0x100,-_0x452b8b._0x5803c7,-0x155,-0x282))throw new ToolExecutionError(_0x3033c3(-_0x452b8b._0x48e017,-_0x452b8b._0x1bc79b,-_0x452b8b._0x181750,-0xac)+(_0x4aa2cb+0x1)+_0x3033c3(0x8,-_0x452b8b._0x5933c3,-0xef,-0x1a),{'error':_0xf6516f(0x4c6,0x3ed,0x3fd,_0x452b8b._0xaf311b)});if(typeof _0x5c93ea['id']!==_0x3033c3(_0x452b8b._0x1cb9a8,-_0x452b8b._0x1a6703,-_0x452b8b._0x434fcc,-_0x452b8b._0x565567)||_0x5c93ea['id'][_0x3033c3(-_0x452b8b._0x30935f,-_0x452b8b._0x27e711,-0x198,-0xd9)]()[_0xf6516f(0x339,0x423,0x4ca,_0x452b8b._0x44455d)]===0x0)throw new ToolExecutionError(_0x3033c3(-0x17a,-_0x452b8b._0x1db426,-0xe2,-0x222)+(_0x4aa2cb+0x1)+':\x20id\x20required',{'error':_0x3033c3(_0x452b8b._0x3c2c37,-0x19f,-0xfb,-0x125)});if(typeof _0x5c93ea[_0x3033c3(_0x452b8b._0x30aee8,_0x452b8b._0xaeb9bb,0x30,0x10d)]!==_0x3033c3(0x1b,-0x180,-0x107,_0x452b8b._0x4ad689)||_0x5c93ea[_0x3033c3(0xa,0x103,_0x452b8b._0x3216c8,_0x452b8b._0x2b8799)][_0x3033c3(-0xc1,-_0x452b8b._0x283123,-_0x452b8b._0x1aa908,-0x106)]()['length']===0x0)throw new ToolExecutionError(_0xf6516f(0x5a4,_0x452b8b._0x1e2973,_0x452b8b._0xbc84d5,_0x452b8b._0x3fca76)+(_0x4aa2cb+0x1)+_0xf6516f(_0x452b8b._0x752a53,_0x452b8b._0x1e7b92,0x54a,0x3ff),{'error':_0x3033c3(0x61,-_0x452b8b._0xc4ef98,-_0x452b8b._0x4015b2,-0x12f)});if(!isTodoStatus(_0x5c93ea[_0xf6516f(0x33c,0x407,0x35b,_0x452b8b._0x963d7d)]))throw new ToolExecutionError(_0xf6516f(0x560,_0x452b8b._0x1e2973,_0x452b8b._0x3769fd,0x50d)+(_0x4aa2cb+0x1)+':\x20invalid\x20status',{'error':_0xf6516f(_0x452b8b._0x291f14,0x5a4,_0x452b8b._0x25e7e1,0x5b0)});if(!isTodoPriority(_0x5c93ea[_0x3033c3(-0x71,-0x2c7,-0x18a,-_0x452b8b._0x4dc4ae)]))throw new ToolExecutionError('Todo\x20'+(_0x4aa2cb+0x1)+':\x20invalid\x20priority',{'error':_0x3033c3(-_0x452b8b._0x305954,-0xb3,-_0x452b8b._0x528bfe,-_0x452b8b._0x79f906)});}function _0x3033c3(_0x10f52f,_0x17dc51,_0x1bcb10,_0x2fd7e3){return _0x357fd3(_0x10f52f-_0x456515._0x520345,_0x17dc51-0x1d9,_0x1bcb10- -_0x456515._0x35cce4,_0x17dc51);}const _0x2fba30=_0x4302f0[_0xf6516f(_0x452b8b._0x5e3057,0x3bf,0x2de,_0x452b8b._0x884452)][_0xf6516f(_0x452b8b._0x5d5441,0x389,_0x452b8b._0x1834ef,0x4a8)](_0x5a3705=>_0x5a3705['id']);if(new Set(_0x2fba30)['size']!==_0x2fba30[_0xf6516f(0x426,_0x452b8b._0x3ee2ac,0x2e4,0x3cc)])throw new ToolExecutionError(_0xf6516f(_0x452b8b._0x19b7f4,0x5d1,0x4f8,0x618),{'error':_0xf6516f(_0x452b8b._0x4e082d,0x5be,_0x452b8b._0xe48b94,_0x452b8b._0x47b700)});}function createStatsProgress(_0x205c15){const _0x4b2d73={_0x2b3f6b:0x415,_0x1c0516:0x378,_0x3f1be5:0x377},_0x38cefa={_0x5bbe81:0x3d7,_0x4687d5:0x188},_0x249b72={_0x22b185:0x14,_0x3d8089:0x1ab,_0x59838f:0x1b};function _0xb47848(_0x43ebf5,_0x57946b,_0x10e429,_0x3bd818){return _0x357fd3(_0x43ebf5-_0x249b72._0x22b185,_0x57946b-_0x249b72._0x3d8089,_0x43ebf5-_0x249b72._0x59838f,_0x3bd818);}function _0x31dab6(_0x561cc2,_0x5933e5,_0x38a3b2,_0x41fa6a){return _0x1343ee(_0x561cc2-_0x38cefa._0x5bbe81,_0x41fa6a,_0x38a3b2-_0x38cefa._0x4687d5,_0x41fa6a-0x135);}return _0x205c15['total']>0x0?Math[_0x31dab6(0x4c1,_0x4b2d73._0x2b3f6b,_0x4b2d73._0x1c0516,0x3fd)](_0x205c15['completed']/_0x205c15[_0x31dab6(0x442,0x4d9,_0x4b2d73._0x3f1be5,0x38d)]*0x64)+'%':'0%';}function createReminderItems(_0x144002){const _0x21d3d1={_0x50d500:0x4a6},_0x3da7b7={_0x3fe090:0x31b,_0xc6ecb7:0x67};function _0x31fed1(_0x23c9ea,_0x29df81,_0x15f38e,_0xe71bc1){return _0x1343ee(_0x29df81-_0x3da7b7._0x3fe090,_0x23c9ea,_0x15f38e-_0x3da7b7._0xc6ecb7,_0xe71bc1-0x1d0);}function _0x51c7e8(_0x3353f2,_0x59c144,_0x43b2c0,_0x164357){return _0x1343ee(_0x3353f2-0x520,_0x43b2c0,_0x43b2c0-0x108,_0x164357-0x16d);}return _0x144002[_0x51c7e8(_0x21d3d1._0x50d500,0x4b3,0x50d,0x44f)](_0x80a8d7=>({'content':_0x80a8d7[_0x51c7e8(0x6f1,0x6ff,0x61c,0x6f8)],'status':_0x80a8d7[_0x31fed1(0x206,0x31f,0x37e,0x3dd)],'id':_0x80a8d7['id']}));}function createStructuredResult(_0x57ba74,_0x11d918,_0x84d548,_0xeda0ca){const _0x1b5630={_0x5f1382:0x1a8,_0x2215bf:0x2c,_0x361345:0x33},_0x4f58c3={_0x3ccf5e:0x1c4,_0x5e856a:0x167},_0x1e88b5={_0x13dde9:0xe9};function _0x569e09(_0x7aa8cf,_0x51dd12,_0x12790b,_0x16929e){return _0x1343ee(_0x16929e- -0x5d,_0x51dd12,_0x12790b-_0x1e88b5._0x13dde9,_0x16929e-0xd5);}function _0x12fb4f(_0x2a0d77,_0x139562,_0x691416,_0x4fafcb){return _0x1343ee(_0x139562- -0xbb,_0x691416,_0x691416-_0x4f58c3._0x3ccf5e,_0x4fafcb-_0x4f58c3._0x5e856a);}return{'allCompleted':_0xeda0ca,'items':_0x11d918[_0x569e09(-_0x1b5630._0x5f1382,-_0x1b5630._0x2215bf,-0x12c,-0xd7)](_0x374619=>({'id':_0x374619['id'],'content':_0x374619[_0x569e09(0x18c,0x1d4,0xcb,0x174)],'status':_0x374619['status'],'priority':_0x374619[_0x12fb4f(0x70,-0xa4,-0x95,-0x144)],'createdAt':_0x374619['createdAt']})),'progress':createStatsProgress(_0x84d548),'recentChanges':!![],'sessionId':_0x57ba74,'stats':_0x84d548,'todosWritten':_0x11d918[_0x12fb4f(0x3c,-0x9b,_0x1b5630._0x361345,-0x6b)]};}function _0x357fd3(_0x4ba444,_0x2d9e40,_0x34d829,_0x2c9089){return _0x1358(_0x34d829- -0x14d,_0x2c9089);}function createOutputText(_0x17c837,_0x1851d2){const _0x3888e7={_0x38f91d:0x71,_0x2cdf76:0x127,_0xa1949:0x22e,_0x18affa:0x161,_0x101f9a:0x6e,_0x4acf47:0xec,_0x373dfa:0x2cc,_0x47c20b:0x359,_0x11adf7:0x29c,_0x3890fc:0x1ac,_0x3bbbf5:0x135,_0x992903:0x161},_0x340598={_0x2719f8:0xc4},_0x5d205b={_0x176d8e:0xaa,_0x4bdd63:0x176};function _0x3201d0(_0x446b47,_0x3adca2,_0x30eb81,_0x1c7a23){return _0x357fd3(_0x446b47-_0x5d205b._0x176d8e,_0x3adca2-0x12e,_0x446b47- -_0x5d205b._0x4bdd63,_0x1c7a23);}const _0x36edd8=JSON[_0x3201d0(-0x68,-_0x3888e7._0x38f91d,-0xa3,-0x19a)](createReminderItems(_0x17c837));if(_0x1851d2)return _0x571770(_0x3888e7._0x2cdf76,0x1ce,_0x3888e7._0xa1949,0x1bc)+_0x17c837[_0x3201d0(-0x15b,-0x18e,-_0x3888e7._0x18affa,-_0x3888e7._0x101f9a)]+_0x3201d0(-0x182,-_0x3888e7._0x4acf47,-0x219,-0x25f)+_0x36edd8+'.\x0a</system-reminder>';function _0x571770(_0x434a4f,_0x1e5a1e,_0xa1a466,_0x1e538c){return _0x1343ee(_0x1e538c-_0x340598._0x2719f8,_0x434a4f,_0xa1a466-0x1ce,_0x1e538c-0x12a);}return _0x571770(0x18a,_0x3888e7._0x373dfa,_0x3888e7._0x47c20b,_0x3888e7._0x11adf7)+_0x36edd8+_0x571770(_0x3888e7._0x3890fc,_0x3888e7._0x3bbbf5,0xb5,_0x3888e7._0x992903);}function createTodoWriteTool(_0x499ac1=new TodoStore()){const _0x3dc3e6={_0x3127cd:0x3be,_0x4867c4:0x59c,_0x5a165a:0x395,_0x2c3ee6:0x327,_0x298981:0x1c3,_0x14df09:0x4f6,_0x505d7c:0x46b,_0x1ac1cd:0x587,_0xac6185:0x4b9,_0x3c096f:0x5eb,_0x2399a6:0x5be,_0x286977:0x5f0,_0x10cf70:0x4f6,_0x8622ec:0x359,_0x90b809:0x436},_0x1174a4={_0x29c047:0x361,_0x1119a2:0x37b,_0x5a44c5:0x2a7,_0x5db1e6:0x3a2,_0x1a0498:0x360,_0x4fe1ef:0x42b,_0x342f3c:0x541,_0x10c7aa:0x482,_0x38bb39:0x5ae,_0xe5d4df:0x2f4,_0x27f33c:0x203,_0x1eb05c:0x28f,_0x5bdfe0:0x308,_0x4bd2f1:0x3a3,_0x22b58e:0x4e6,_0x535bea:0x44a,_0x355d19:0x439,_0x52ef3e:0x468,_0x136d56:0x3f5,_0x310c7a:0x50e,_0x4b8e6c:0x3dd},_0x506d5a={_0x1c3a87:0x1a2},_0x527e0c={_0x103632:0x1de},_0x590b49={_0xe80567:0x1bc,_0x27e16f:0x60,_0x33cac9:0x424};function _0x171369(_0x14d25f,_0x1a7a45,_0x125dda,_0x35f163){return _0x357fd3(_0x14d25f-_0x590b49._0xe80567,_0x1a7a45-_0x590b49._0x27e16f,_0x1a7a45-_0x590b49._0x33cac9,_0x125dda);}function _0x51273d(_0x4746be,_0x2d4ba2,_0x559e9e,_0x24adf9){return _0x1343ee(_0x24adf9-0x33d,_0x4746be,_0x559e9e-0x1ec,_0x24adf9-_0x527e0c._0x103632);}return defineTool({'name':_0x171369(0x59d,0x4ab,_0x3dc3e6._0x3127cd,_0x3dc3e6._0x4867c4),'description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':_0x171369(0x532,0x46b,_0x3dc3e6._0x5a165a,0x59c),'properties':{'todos':{'type':_0x51273d(_0x3dc3e6._0x2c3ee6,0x1f2,_0x3dc3e6._0x298981,0x2e2),'items':{'type':_0x171369(_0x3dc3e6._0x14df09,_0x3dc3e6._0x505d7c,0x3e4,_0x3dc3e6._0x1ac1cd),'properties':{'content':{'type':_0x171369(0x593,_0x3dc3e6._0xac6185,0x572,_0x3dc3e6._0x3c096f)},'status':{'type':'string'},'priority':{'type':'string'},'id':{'type':'string'},'createdAt':{'type':_0x171369(0x446,_0x3dc3e6._0xac6185,0x488,_0x3dc3e6._0x2399a6)}},'required':[_0x171369(0x5b2,_0x3dc3e6._0x286977,0x510,0x571),_0x171369(_0x3dc3e6._0x10cf70,0x423,_0x3dc3e6._0x8622ec,0x548),_0x171369(0x4b9,_0x3dc3e6._0x90b809,0x4af,0x477),'id']}}},'required':['todos']},async *'execute'(_0x42c324,_0xf82a94){const _0x4555b1=_0x42c324;function _0x4bdcb8(_0x4e6bf1,_0x674b94,_0x38ce5f,_0x2f28f2){return _0x171369(_0x4e6bf1-0x10b,_0x38ce5f- -_0x506d5a._0x1c3a87,_0x2f28f2,_0x2f28f2-0x4b);}validateTodos(_0x4555b1);const _0x549da2=_0xf82a94[_0x4bdcb8(0x330,0x477,0x3d3,0x348)]||_0x4bdcb8(_0x1174a4._0x29c047,_0x1174a4._0x1119a2,0x241,_0x1174a4._0x5a44c5),_0x4d320e=new Date()[_0x4bdcb8(_0x1174a4._0x5db1e6,_0x1174a4._0x1a0498,0x38e,0x27c)](),_0x5c41f4=_0x4555b1[_0x1b902d(_0x1174a4._0x4fe1ef,_0x1174a4._0x342f3c,_0x1174a4._0x10c7aa,_0x1174a4._0x38bb39)][_0x4bdcb8(_0x1174a4._0xe5d4df,0x1b5,_0x1174a4._0x27f33c,0x2ad)](_0x292dff=>({'id':_0x292dff['id'],'content':_0x292dff[_0x1b902d(0x5be,0x5b6,0x697,0x7c1)],'status':_0x292dff[_0x4bdcb8(0x3b4,0x362,0x281,0x34d)],'priority':_0x292dff[_0x4bdcb8(0x149,0x352,0x294,0x178)],'sessionId':_0x549da2,'createdAt':_0x292dff[_0x4bdcb8(0x3fc,0x56b,0x42e,0x36d)]||_0x4d320e,'updatedAt':_0x4d320e}));_0x499ac1[_0x4bdcb8(_0x1174a4._0x1eb05c,_0x1174a4._0x5bdfe0,0x34d,0x20b)](_0x549da2,_0x5c41f4);const _0x3f84c3=_0x499ac1[_0x1b902d(_0x1174a4._0x4bd2f1,_0x1174a4._0x22b58e,_0x1174a4._0x535bea,_0x1174a4._0x355d19)](_0x549da2);function _0x1b902d(_0x5dec4a,_0xc010f0,_0x4859d1,_0x4f39ac){return _0x51273d(_0xc010f0,_0xc010f0-0xa5,_0x4859d1-0xb,_0x4859d1-0x189);}const _0x38ca2d=_0x5c41f4[_0x1b902d(_0x1174a4._0x52ef3e,_0x1174a4._0x136d56,0x4e6,0x3b6)]>0x0&&_0x5c41f4[_0x4bdcb8(0x4a5,_0x1174a4._0x310c7a,_0x1174a4._0x4b8e6c,0x3e9)](_0x273941=>_0x273941[_0x1b902d(0x515,0x463,0x4ca,0x4ab)]===_0x1b902d(0x6d6,0x61b,0x59a,0x587));return createToolOutput(createOutputText(_0x5c41f4,_0x38ca2d),createStructuredResult(_0x549da2,_0x5c41f4,_0x3f84c3,_0x38ca2d));}});}import{mkdir as _0x4582d4,writeFile as _0x509488}from'fs/promises';import*as _0x55c39a from'path';function sanitizeFileName(_0x2eda8d){const _0x4dd6ba={_0x26bea8:0x270,_0x13fded:0x12b};function _0x2ce825(_0xfef4ce,_0x275f7f,_0x380885,_0x39d330){return _0x1343ee(_0xfef4ce- -0x20d,_0x275f7f,_0x380885-0x5c,_0x39d330-0x13f);}return _0x2eda8d[_0x2ce825(-_0x4dd6ba._0x26bea8,-_0x4dd6ba._0x13fded,-0x374,-0x260)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x9570c0,_0x3fbd2d){const _0x2fcde5={_0x4c8fbe:0x116,_0x4ed82d:0x224,_0x2c0f71:0xba,_0x1e4a57:0xc1,_0x2cc222:0x140,_0x24b4a2:0x13c,_0x30d000:0x41,_0x182899:0x95,_0x53b31c:0x8f,_0xd5ed21:0x15,_0x276875:0xa4,_0x50d0ed:0x122,_0x1ff786:0x209,_0x3198c2:0x2c,_0xdc65fd:0x9f,_0x82f0f8:0x9e,_0x480e00:0x1e5,_0x4df8ae:0xa8,_0xc9722f:0x15c,_0x32111c:0x117,_0x1a1418:0x2e,_0x486939:0x41,_0x1c06b1:0x101,_0x15b9f3:0x83,_0x3fe319:0x70,_0xc15ac8:0x11a,_0x39c74a:0xb0,_0x188a82:0x221,_0x461a19:0x172,_0x4acb6a:0x6a,_0x579574:0x4d,_0xbf1ad8:0x119,_0x4fc7c8:0xd9,_0x579d7b:0x17f,_0x1d7e49:0x213,_0x4c00a2:0xc8,_0x147f55:0x48,_0x202ced:0xbb,_0x12becc:0x156,_0x1d102a:0x25a,_0x3cd761:0x8e,_0xf1d54:0x7e,_0x5c800d:0x3a,_0x3295b4:0x15,_0x55bd82:0x1a5,_0x674b3b:0x8d,_0x56c581:0x1d,_0x2bf088:0x1f8,_0x320a46:0x23a,_0x4fc000:0x110,_0x43fc55:0x3e,_0x1972bc:0x98,_0x785da7:0x108,_0x24c51c:0x130,_0x1435f4:0xc3,_0x266a8f:0x1f,_0x1033f2:0x10,_0x5dda53:0xd,_0xbacd90:0x40,_0xfdaf1d:0x73,_0x5a363a:0xd},_0x269922={_0x165eea:0x105,_0x265209:0x1a1},_0x3bb3d5={_0x4785d5:0x4f,_0xfa4694:0x1b2},{maxBytes:_0x54236,sessionDir:_0x3c418e}=_0x3fbd2d;if(!_0x9570c0[_0x25f6be(_0x2fcde5._0x4c8fbe,_0x2fcde5._0x4ed82d,_0x2fcde5._0x2c0f71,0x18a)]||Buffer[_0x25f6be(-_0x2fcde5._0x1e4a57,-0x1de,0x17,-_0x2fcde5._0x2cc222)](_0x9570c0[_0x3d790d(_0x2fcde5._0x24b4a2,_0x2fcde5._0x30d000,0xc8,0x7a)],'utf8')<=_0x54236)return _0x9570c0;const _0x2b10e2=Buffer[_0x25f6be(-0xc1,-0x137,-_0x2fcde5._0x182899,0x40)](_0x9570c0[_0x3d790d(0x4c,-0x74,0xc8,0x49)],_0x25f6be(_0x2fcde5._0x53b31c,0xb0,_0x2fcde5._0xd5ed21,_0x2fcde5._0x276875));if(!_0x3c418e){const _0x3fbfbe=_0x9570c0['output'][_0x25f6be(_0x2fcde5._0x50d0ed,_0x2fcde5._0x1ff786,_0x2fcde5._0x3198c2,_0x2fcde5._0xdc65fd)](0x0,_0x54236);return{..._0x9570c0,'output':_0x3fbfbe+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x54236+'\x20bytes\x20(original:\x20'+_0x2b10e2+_0x3d790d(-_0x2fcde5._0x82f0f8,-_0x2fcde5._0x480e00,-_0x2fcde5._0x4df8ae,-_0x2fcde5._0xc9722f)),'meta':{..._0x9570c0['meta'],'truncated':!![],'originalBytes':_0x2b10e2,'transforms':[..._0x9570c0[_0x25f6be(-0x83,-_0x2fcde5._0x32111c,-0xc9,-_0x2fcde5._0x1a1418)]['transforms'],_0x25f6be(_0x2fcde5._0x486939,-0xaa,-_0x2fcde5._0x1c06b1,_0x2fcde5._0x15b9f3)]}};}const _0x4b61b1=_0x9570c0[_0x25f6be(-_0x2fcde5._0x3fe319,0x99,-0xf9,0x8b)]+'_'+sanitizeFileName(_0x9570c0[_0x25f6be(_0x2fcde5._0xc15ac8,_0x2fcde5._0x39c74a,_0x2fcde5._0x188a82,0x45)])+_0x25f6be(_0x2fcde5._0x461a19,_0x2fcde5._0x4acb6a,_0x2fcde5._0x579574,0x235),_0xd03f7e=_0x55c39a[_0x25f6be(-0x10,_0x2fcde5._0xbf1ad8,0xf0,_0x2fcde5._0x4fc7c8)](_0x3c418e,_0x4b61b1);function _0x25f6be(_0x3b893a,_0x51b771,_0x37b5e2,_0x11ce5b){return _0x1343ee(_0x3b893a- -_0x3bb3d5._0x4785d5,_0x51b771,_0x37b5e2-0x1eb,_0x11ce5b-_0x3bb3d5._0xfa4694);}await _0x4582d4(_0x3c418e,{'recursive':!![]}),await _0x509488(_0xd03f7e,_0x9570c0[_0x3d790d(_0x2fcde5._0x579d7b,_0x2fcde5._0x1d7e49,_0x2fcde5._0x4c00a2,-0x71)],_0x3d790d(0x43,_0x2fcde5._0x147f55,_0x2fcde5._0x30d000,-_0x2fcde5._0x202ced));function _0x3d790d(_0x565127,_0x7e275b,_0x4c8748,_0x20d1d6){return _0x357fd3(_0x565127-_0x269922._0x165eea,_0x7e275b-_0x269922._0x265209,_0x4c8748- -0x98,_0x7e275b);}let _0x5e88ce=_0x9570c0['output'][_0x25f6be(0x122,_0x2fcde5._0x12becc,0x12,_0x2fcde5._0x1d102a)](0x0,_0x54236);const _0x26e2c8=_0x5e88ce['lastIndexOf']('\x0a');_0x26e2c8>_0x54236*0.5&&(_0x5e88ce=_0x5e88ce['slice'](0x0,_0x26e2c8));const _0x31ea12=['',_0x25f6be(-_0x2fcde5._0x3cd761,_0x2fcde5._0xf1d54,-_0x2fcde5._0x5c800d,_0x2fcde5._0x3295b4),_0x3d790d(_0x2fcde5._0x55bd82,0x1db,_0x2fcde5._0x674b3b,_0x2fcde5._0x56c581)+_0x54236+_0x3d790d(-0x91,-_0x2fcde5._0x2bf088,-0x13b,-_0x2fcde5._0x320a46)+_0x2b10e2+_0x25f6be(-_0x2fcde5._0x4fc000,-_0x2fcde5._0x43fc55,-_0x2fcde5._0x1972bc,-0x58),_0x3d790d(-0xb5,-0x24f,-_0x2fcde5._0x785da7,-_0x2fcde5._0x24c51c)+_0xd03f7e,_0x3d790d(0xd,-0x178,-_0x2fcde5._0x1435f4,-0x100),_0x3d790d(-0xb2,-0x8f,-0xca,-_0x2fcde5._0x266a8f)][_0x25f6be(-_0x2fcde5._0x1033f2,-_0x2fcde5._0x5dda53,_0x2fcde5._0x50d0ed,_0x2fcde5._0xbacd90)]('\x0a');return{..._0x9570c0,'output':_0x5e88ce+_0x31ea12,'meta':{..._0x9570c0['meta'],'truncated':!![],'originalBytes':_0x2b10e2,'transforms':[..._0x9570c0[_0x3d790d(_0x2fcde5._0xfdaf1d,-0x2e,-0xd1,-0x192)]['transforms'],_0x3d790d(0xd9,-0xbe,-_0x2fcde5._0x5a363a,-0x15a)]}};}import{readFile as _0x2cb141,stat as _0x2a4432}from'fs/promises';import*as _0x62d54c from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x357fd3(0x1,0x5a,0x46,0x132),_0x1343ee(-0x8e,0x52,-0x56,-0x166),_0x357fd3(-0x1fe,-0x8e,-0xb0,-0x16d),'original']),PNG_SIGNATURE=Buffer[_0x357fd3(0x1ff,0x1a8,0xc5,-0x6c)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x298886,_0x12486a){const _0x5087a7={_0x504995:0x1bb,_0x3384ff:0x364,_0x33676a:0x294,_0x7c5562:0x36b,_0x6024af:0x2d9,_0x25c71d:0x411,_0x1b8771:0x2ce,_0x1f7f74:0x400,_0x102572:0x145,_0xae7b5:0x169,_0x4e3374:0x385,_0x42edb7:0x413,_0x5ded3a:0x3f1,_0x55f5ad:0x455,_0x1a6142:0x407,_0x9474f9:0x16c,_0x48d957:0x26e,_0x38d050:0x1dd,_0x1b4de8:0x143,_0x4d72b1:0x24e,_0x32bed5:0x336,_0x4a5775:0x289,_0x33918f:0x22d,_0x23661b:0x3e,_0x5a52d4:0x1f4,_0x46f7df:0x3a7,_0x58cfd7:0x337,_0x1bc1ba:0x33c,_0x34e422:0x108,_0x55d6e3:0x14b,_0x4e663e:0x2f9,_0x43b647:0x2c5,_0x2dc192:0x2cf},_0x2f45ec={_0x314fe5:0xf8},_0x497929={_0x25595a:0x7a,_0x10e202:0x33c};function _0x3fb428(_0x2529e8,_0x5ef1a0,_0x28fe23,_0x2ef347){return _0x357fd3(_0x2529e8-_0x497929._0x25595a,_0x5ef1a0-0x83,_0x28fe23-_0x497929._0x10e202,_0x2ef347);}if(_0x298886[_0x58338b(-0x214,-0x152,-0x169,-0x285)](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x58338b(-_0x5087a7._0x504995,-_0x5087a7._0x3384ff,-_0x5087a7._0x33676a,-0x183);if(_0x298886[0x0]===0xff&&_0x298886[0x1]===0xd8&&_0x298886[0x2]===0xff)return'image/jpeg';const _0x54cd31=_0x298886['subarray'](0x0,0x6)['toString'](_0x58338b(-_0x5087a7._0x7c5562,-_0x5087a7._0x6024af,-0x26e,-0x2c2));if(_0x54cd31===_0x3fb428(_0x5087a7._0x25c71d,0x45f,0x4ea,0x5d1)||_0x54cd31==='GIF89a')return _0x3fb428(_0x5087a7._0x1b8771,0x41b,_0x5087a7._0x1f7f74,0x496);if(_0x298886[_0x58338b(-_0x5087a7._0x102572,-0x12a,-_0x5087a7._0xae7b5,-0xe9)](0x0,0x4)[_0x3fb428(_0x5087a7._0x4e3374,_0x5087a7._0x42edb7,0x43c,_0x5087a7._0x5ded3a)]('ascii')===_0x3fb428(_0x5087a7._0x55f5ad,0x4c7,0x44d,0x31d)&&_0x298886[_0x3fb428(_0x5087a7._0x1a6142,0x321,0x462,0x47b)](0x8,0xc)['toString'](_0x58338b(-0x3ae,-_0x5087a7._0x9474f9,-_0x5087a7._0x48d957,-_0x5087a7._0x38d050))===_0x58338b(-_0x5087a7._0x1b4de8,-0x1ac,-0x1a5,-_0x5087a7._0x4d72b1))return _0x3fb428(0x17c,_0x5087a7._0x32bed5,_0x5087a7._0x4a5775,0x2f7);function _0x58338b(_0x32a577,_0x2378b6,_0x5781cf,_0x3d6470){return _0x357fd3(_0x32a577-0x1cb,_0x2378b6-_0x2f45ec._0x314fe5,_0x5781cf- -0x28f,_0x2378b6);}const _0x4e0af6=_0x62d54c[_0x58338b(-_0x5087a7._0x33918f,-0x65,-0x167,-_0x5087a7._0x23661b)](_0x12486a)['toLowerCase']();if(_0x4e0af6===_0x58338b(-0xb3,-0x165,-_0x5087a7._0x5a52d4,-0x1da))return _0x3fb428(_0x5087a7._0x46f7df,0x271,_0x5087a7._0x58cfd7,_0x5087a7._0x1bc1ba);if(_0x4e0af6===_0x58338b(-0x196,-_0x5087a7._0x34e422,-_0x5087a7._0x55d6e3,-0x14)||_0x4e0af6===_0x3fb428(0x400,0x290,0x39e,0x3f1))return _0x58338b(-0x2fd,-_0x5087a7._0x4e663e,-0x1db,-0x19e);if(_0x4e0af6===_0x3fb428(0x395,_0x5087a7._0x43b647,0x375,_0x5087a7._0x2dc192))return'image/gif';if(_0x4e0af6==='.webp')return'image/webp';return void 0x0;}function normalizeDetail(_0x4f7920){const _0x11ed9a={_0x742b0a:0x4cb,_0x24349d:0x579,_0x16ae31:0x33b,_0x4f6adc:0x263,_0x4d3463:0x699},_0x50c806={_0x2a6f0a:0x13a},_0x5d9667={_0x41150b:0x1};function _0x3f7855(_0x35ccc1,_0x392b69,_0x477670,_0x1bb7f6){return _0x1343ee(_0x477670-0x45c,_0x35ccc1,_0x477670-0x1b7,_0x1bb7f6-_0x5d9667._0x41150b);}function _0x2083ab(_0x28425f,_0x508008,_0x136e01,_0x3c10df){return _0x357fd3(_0x28425f-0xf6,_0x508008-_0x50c806._0x2a6f0a,_0x28425f-0x3f8,_0x136e01);}if(_0x4f7920===void 0x0)return void 0x0;const _0x148ab3=_0x4f7920[_0x3f7855(_0x11ed9a._0x742b0a,_0x11ed9a._0x24349d,0x465,0x3aa)]()['toLowerCase']();if(!SUPPORTED_DETAILS[_0x2083ab(_0x11ed9a._0x16ae31,0x42e,0x310,_0x11ed9a._0x4f6adc)](_0x148ab3))throw new ToolExecutionError(_0x2083ab(0x55e,0x55d,0x613,_0x11ed9a._0x4d3463)+_0x4f7920,{'detail':_0x4f7920});return _0x148ab3;}function createViewFileTool(_0x586391={}){const _0x577229={_0x34a924:0x2d2,_0x29c67a:0x35c,_0x38c036:0x3ed,_0x2d5ef4:0x3e4,_0x3d9c16:0x337,_0x1f707c:0x393,_0x3995fa:0xee,_0x130e71:0x20a,_0x5adf96:0x205,_0x4ddbe6:0x11a,_0x2607c8:0x267,_0x45ddac:0x68,_0x96339:0x149,_0x3fea67:0xec,_0x4a07b0:0x244,_0x52006c:0x2ba,_0x6952ea:0x195,_0x9dd5e9:0x2dc,_0x5da6e2:0x2b9},_0x5733f2={_0xa25caa:0x616,_0xd7bca4:0x63a,_0x1f41a5:0x6e8,_0x3522c8:0x57a,_0x1bddc7:0x6,_0x568c40:0x110,_0x1efd07:0x5bd,_0x2c5f87:0x525,_0xb3b111:0x7f,_0x4537eb:0x10f,_0xa46114:0x2d,_0x1ed624:0x127,_0x2dbbe8:0x145,_0x5a7773:0x44a,_0x3ba097:0x6bb,_0xba52fb:0x2,_0x391058:0x4e,_0x479b51:0x43,_0x595828:0xa7,_0x12e002:0x50d,_0x2a40ff:0x771,_0x5053a7:0x22,_0x1dff32:0xc5,_0x1c17f5:0x4ca,_0x439853:0x4d3,_0x1bde2d:0x116,_0x5657e7:0x6b,_0x5c14de:0x4c6,_0x1bea48:0x622,_0x3f20e1:0x463,_0x3a0a5c:0xe8,_0x124deb:0x113,_0x3d38b0:0x103,_0x4a1d09:0x51f,_0x373353:0x34,_0x4f508e:0x5d8,_0x24f51b:0x725,_0x2e366a:0x6f8,_0x46671b:0x246,_0xd9cbae:0x1da,_0x446fe0:0x408,_0x3f806f:0x54b,_0x31988b:0x100,_0x5317a2:0x4ec,_0x2f50b9:0x60d,_0x4cda4e:0x55a,_0x5c7898:0x5af,_0x477965:0x35,_0x3821e4:0xd0,_0x14d734:0x25,_0x5bd9a2:0x3c,_0x1fc853:0x46e,_0x47e73f:0x46f},_0xf9c30={_0x529bad:0x31f},_0x486f1b={_0x5abdba:0x1b9},_0x462487={_0x322c04:0x17d,_0x7c0e06:0x50},_0x5eb096={_0x3850e0:0xe4};function _0x4ee12d(_0x2a09e6,_0x3af20e,_0x270919,_0x280a4e){return _0x357fd3(_0x2a09e6-_0x5eb096._0x3850e0,_0x3af20e-0x1dd,_0x2a09e6-0x199,_0x270919);}const _0x4f9d03=_0x62d54c['resolve'](_0x586391[_0x12bbc2(_0x577229._0x34a924,_0x577229._0x29c67a,_0x577229._0x38c036,_0x577229._0x2d5ef4)]??process[_0x12bbc2(0x250,_0x577229._0x3d9c16,_0x577229._0x1f707c,0x11b)]()),_0x15683a=(_0x586391[_0x4ee12d(_0x577229._0x3995fa,_0x577229._0x130e71,_0x577229._0x5adf96,0x136)]??[])[_0x4ee12d(_0x577229._0x4ddbe6,_0x577229._0x2607c8,_0x577229._0x45ddac,0x76)](_0x2a9805=>_0x62d54c[_0x12bbc2(0x233,0x17a,0x330,0x125)](_0x2a9805)),_0x305e1a=_0x586391['maxBytes']??DEFAULT_MAX_BYTES;function _0x12bbc2(_0x38edbf,_0x56194b,_0x32f10f,_0x2ffac1){return _0x1343ee(_0x38edbf-0x1cb,_0x2ffac1,_0x32f10f-_0x462487._0x322c04,_0x2ffac1-_0x462487._0x7c0e06);}const _0x275d54=_0x586391[_0x12bbc2(_0x577229._0x96339,0x1e5,0x1e1,0x67)]??'ViewFile';return defineTool({'name':_0x275d54,'description':_0x4ee12d(0x202,_0x577229._0x3fea67,0x14d,_0x577229._0x4a07b0),'inputSchema':{'type':'object','properties':{'path':{'type':_0x4ee12d(0x22e,_0x577229._0x52006c,0x2ce,0x2a3)},'detail':{'type':'string'}},'required':[_0x4ee12d(_0x577229._0x6952ea,_0x577229._0x9dd5e9,0x9f,_0x577229._0x5da6e2)]},async *'execute'(_0x4d841e){const _0x2a839f=resolveAllowedPath(_0x4f9d03,_0x15683a,_0x4d841e['path']);await assertWorkspaceFile(_0x2a839f);const _0x2e6215=await _0x2a4432(_0x2a839f);if(_0x2e6215[_0x2ca7a9(_0x5733f2._0xa25caa,_0x5733f2._0xd7bca4,_0x5733f2._0x1f41a5,_0x5733f2._0x3522c8)]>_0x305e1a)throw new ToolExecutionError(_0x45fb68(_0x5733f2._0x1bddc7,-0x1a,-0x1d,_0x5733f2._0x568c40)+_0x4d841e['path'],{'path':_0x4d841e[_0x2ca7a9(0x4b4,_0x5733f2._0x1efd07,0x3f0,_0x5733f2._0x2c5f87)],'maxBytes':_0x305e1a,'size':_0x2e6215[_0x45fb68(_0x5733f2._0xb3b111,_0x5733f2._0x4537eb,_0x5733f2._0xa46114,_0x5733f2._0x1ed624)]});const _0x5c3349=await _0x2cb141(_0x2a839f),_0x583dfe=detectImageMediaType(_0x5c3349,_0x2a839f);if(!_0x583dfe)throw new ToolExecutionError(_0x45fb68(-0x2f,-_0x5733f2._0x2dbbe8,-0x34,-0x12a)+_0x4d841e['path'],{'path':_0x4d841e['path'],'supported':[_0x2ca7a9(0x4f1,0x639,0x5b8,_0x5733f2._0x5a7773),'.jpeg','.jpg','.png',_0x2ca7a9(0x64f,_0x5733f2._0x3ba097,0x639,0x6c5)]});const _0x25ab04=normalizeDetail(_0x4d841e[_0x45fb68(-_0x5733f2._0xba52fb,-_0x5733f2._0x391058,-_0x5733f2._0x479b51,-_0x5733f2._0x595828)]),_0x4795e0=['Viewed\x20image\x20file:\x20'+_0x4d841e['path'],_0x2ca7a9(0x656,_0x5733f2._0x12e002,_0x5733f2._0x2a40ff,0x608)+_0x583dfe,_0x45fb68(-0x10c,-_0x5733f2._0x5053a7,-_0x5733f2._0x1dff32,-0x29)+_0x2e6215[_0x2ca7a9(0x616,0x4dc,_0x5733f2._0x1c17f5,_0x5733f2._0x439853)]+'\x20bytes'][_0x45fb68(_0x5733f2._0x1bde2d,_0x5733f2._0x5657e7,0x97,0x1c6)](_0x25ab04?[_0x45fb68(-0x102,0x37,-0x86,-0xb)+_0x25ab04]:[])[_0x2ca7a9(0x4f2,_0x5733f2._0x5c14de,0x48a,0x591)]('\x0a'),_0x27df85=[{'type':_0x2ca7a9(0x594,_0x5733f2._0x1bea48,_0x5733f2._0x3f20e1,0x6bc),'source':{'type':_0x45fb68(-_0x5733f2._0x3a0a5c,-0x113,-_0x5733f2._0x124deb,-_0x5733f2._0x3d38b0),'media_type':_0x583dfe,'data':_0x5c3349[_0x2ca7a9(0x5b8,0x650,_0x5733f2._0x4a1d09,0x5e9)](_0x45fb68(-_0x5733f2._0x373353,-0x6,-0x113,-0x75))}},{'type':_0x2ca7a9(_0x5733f2._0x4f508e,_0x5733f2._0x24f51b,0x4b2,_0x5733f2._0x2e366a),'text':_0x4795e0}];yield createToolOutput(_0x4795e0,{'path':_0x4d841e[_0x45fb68(-0x160,-_0x5733f2._0x46671b,-0x135,-_0x5733f2._0xd9cbae)],'resolvedPath':_0x2a839f,'created':_0x2e6215[_0x2ca7a9(0x53a,_0x5733f2._0x446fe0,_0x5733f2._0x3f806f,0x547)][_0x45fb68(0xc0,-0x7c,-0x25,-_0x5733f2._0x31988b)](),'modified':_0x2e6215[_0x2ca7a9(_0x5733f2._0x5317a2,_0x5733f2._0x2f50b9,_0x5733f2._0x4cda4e,_0x5733f2._0x5c7898)][_0x45fb68(-_0x5733f2._0x477965,_0x5733f2._0x3821e4,-_0x5733f2._0x14d734,-_0x5733f2._0x5bd9a2)](),'size':_0x2e6215[_0x45fb68(-0x53,-0xf8,_0x5733f2._0xa46114,0x162)],'mimeType':_0x583dfe,'encoding':_0x2ca7a9(0x4d6,_0x5733f2._0x1fc853,0x39f,_0x5733f2._0x47e73f),..._0x25ab04?{'detail':_0x25ab04}:{}},_0x27df85);function _0x45fb68(_0x73bec1,_0xf02b31,_0x376b65,_0x5c757a){return _0x12bbc2(_0x376b65- -0x301,_0xf02b31-0x63,_0x376b65-_0x486f1b._0x5abdba,_0x5c757a);}function _0x2ca7a9(_0x5df1f5,_0x1f4ddd,_0x216f15,_0x35e781){return _0x4ee12d(_0x5df1f5-_0xf9c30._0x529bad,_0x1f4ddd-0xcf,_0x1f4ddd,_0x35e781-0x175);}return void 0x0;}});}import _0x511744 from'turndown';var USER_AGENT=_0x357fd3(0x1af,0x72,0xfa,0x28),DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x36f4fc){const _0x2fe6a5={_0x512a38:0x5ea,_0x45152e:0x5c0,_0x354021:0x663,_0x5c2397:0x110,_0x556ee1:0x25b,_0x2c18f4:0x1c7,_0xb04397:0x51d,_0x5f0c47:0x42f,_0xcdb8bc:0x648,_0x378e2a:0x2ee,_0x21e6ad:0xed,_0x1995b7:0x20e,_0x4358d6:0x198,_0xd3c96f:0x87,_0x5788de:0x37,_0x32f662:0x20,_0x2b5c81:0x722,_0x5474ee:0x5b1,_0x1beddb:0x3ee,_0x330821:0x5d5},_0x54a0ff={_0x481f6b:0x2d,_0x4110b2:0x8};let _0x187257;function _0x4d0393(_0xa0bea3,_0x16b1e1,_0x282725,_0x3df038){return _0x357fd3(_0xa0bea3-0xa1,_0x16b1e1-0x129,_0x3df038- -0x1ef,_0x16b1e1);}try{_0x187257=new URL(_0x36f4fc);}catch{throw new ToolExecutionError(_0x320878(_0x2fe6a5._0x512a38,0x505,_0x2fe6a5._0x45152e,_0x2fe6a5._0x354021),{'url':_0x36f4fc});}function _0x320878(_0x62d531,_0x2aa84,_0x191797,_0x4182d2){return _0x1343ee(_0x62d531-0x450,_0x2aa84,_0x191797-_0x54a0ff._0x481f6b,_0x4182d2-_0x54a0ff._0x4110b2);}if(_0x187257[_0x4d0393(-_0x2fe6a5._0x5c2397,-_0x2fe6a5._0x556ee1,-0x147,-_0x2fe6a5._0x2c18f4)]!==_0x320878(_0x2fe6a5._0xb04397,_0x2fe6a5._0x5f0c47,0x59e,_0x2fe6a5._0xcdb8bc)&&_0x187257[_0x4d0393(-_0x2fe6a5._0x378e2a,-0xcb,-0x22b,-0x1c7)]!=='https:')throw new ToolExecutionError(_0x4d0393(-0x25d,-_0x2fe6a5._0x21e6ad,-_0x2fe6a5._0x1995b7,-_0x2fe6a5._0x4358d6),{'url':_0x36f4fc});if(_0x187257[_0x4d0393(-_0x2fe6a5._0xd3c96f,_0x2fe6a5._0x5788de,0x44,-_0x2fe6a5._0x32f662)]||_0x187257[_0x320878(0x5e8,0x5e8,_0x2fe6a5._0x2b5c81,0x68a)])throw new ToolExecutionError(_0x320878(0x465,_0x2fe6a5._0x5474ee,0x3a4,_0x2fe6a5._0x1beddb),{'url':_0x187257['protocol']+'//'+_0x187257[_0x320878(0x565,0x5e6,_0x2fe6a5._0x330821,0x5fc)]+_0x187257['pathname']});return _0x187257;}function createTimeoutSignal(_0x31171b,_0x4df3db){const _0x2ad718={_0x33f22c:0x2eb,_0x10c993:0x36f,_0x4178ce:0x186,_0x4f6ceb:0x2c1},_0x24f059={_0x3ddc96:0x4c,_0x2cd255:0x127},_0x152ec4={_0x14933d:0xc1},_0x139e36={_0x2b5f23:0x151,_0x2dcf25:0x1eb,_0x31eb0b:0x1d4},_0x478975={_0x49abfe:0x260,_0x4297be:0x158},_0x29055a=new AbortController();function _0x182870(_0x23a1b0,_0x4445b9,_0x36ca95,_0x4c294a){return _0x1343ee(_0x4c294a- -_0x478975._0x49abfe,_0x23a1b0,_0x36ca95-_0x478975._0x4297be,_0x4c294a-0x13f);}const _0x585113=setTimeout(()=>_0x29055a[_0x216454(-0x82,-0x15b,-0xcb,-0x1f7)](new Error(_0x182870(-0x11,-0xe1,-0x180,-0x13d))),_0x4df3db),_0x26321c=()=>_0x29055a[_0x216454(-0x1db,-0xdf,-0xcb,-0xdf)](_0x31171b['reason']);function _0x216454(_0x421c95,_0x8ebb64,_0x4db159,_0x395dc2){return _0x1343ee(_0x4db159- -_0x139e36._0x2b5f23,_0x421c95,_0x4db159-_0x139e36._0x2dcf25,_0x395dc2-_0x139e36._0x31eb0b);}return _0x31171b['aborted']?_0x29055a['abort'](_0x31171b[_0x182870(-0x1a3,-_0x2ad718._0x33f22c,-_0x2ad718._0x10c993,-0x2de)]):_0x31171b['addEventListener']('abort',_0x26321c,{'once':!![]}),{'signal':_0x29055a[_0x216454(-0x23d,-0x130,-_0x2ad718._0x4178ce,-_0x2ad718._0x4f6ceb)],'cleanup':()=>{const _0x17a917={_0x9e20ec:0x39};clearTimeout(_0x585113);function _0x5a550b(_0x5d0aec,_0x452564,_0x3f9cea,_0x48a868){return _0x216454(_0x3f9cea,_0x452564-_0x152ec4._0x14933d,_0x452564- -0x12a,_0x48a868-0x4d);}function _0x1979d2(_0x3b10ab,_0x25d791,_0x33ccde,_0x391cfc){return _0x182870(_0x25d791,_0x25d791-0x193,_0x33ccde-_0x17a917._0x9e20ec,_0x33ccde-0xb3);}_0x31171b[_0x1979d2(-0x90,0xb2,0x29,0x132)](_0x1979d2(-0xab,-_0x24f059._0x3ddc96,-_0x24f059._0x2cd255,-0x1ba),_0x26321c);}};}function createWebFetchTool(_0x2cb148={}){const _0xd53a88={_0x5acd45:0x136,_0xeb3967:0x1da,_0xad2efa:0x248,_0x177d95:0x2a5,_0x4f5ed1:0x165,_0x21765f:0x344,_0x39f257:0x34,_0x22300f:0x38f,_0x1ee585:0x3f6,_0x47ab1b:0x2d0,_0x5788e4:0x1e5,_0x16e373:0x2f2,_0x3ed2a0:0x2bc,_0x59911c:0x273,_0x408308:0x192,_0x402858:0x1cb,_0x5b8874:0xba,_0x37bd5e:0x2db,_0x1f3f84:0x49f,_0x47babd:0x401,_0x35aeff:0x16a,_0x2b5759:0xb3,_0x55ac89:0xc5,_0x1ef544:0x215,_0x9e7994:0x1a5,_0x2160d5:0x79,_0x11e2a7:0x113,_0x1c9e30:0x448,_0x50c75a:0x393},_0x55a415={_0x180abf:0xa8,_0x1646a8:0x105,_0x49b0f7:0x136,_0x5f4625:0x12c,_0x30271e:0x25c,_0x4d73ef:0x27f,_0x56aecb:0x1b7,_0x49f23b:0xc0,_0x21538c:0x14f,_0x309d3f:0x251,_0x1cfd88:0x127,_0x548e33:0x17e,_0x1bd367:0x133,_0x3cd4a4:0xe4,_0x75e5ae:0x61,_0x2d6a0a:0x128,_0x3ef2bb:0xbd,_0x54c073:0x1f2,_0x1b2648:0x31,_0x59de0e:0xc0,_0xced684:0x154,_0x5e0d50:0x4e,_0x537f91:0x9b,_0x49602e:0x2f,_0x22c0f0:0x198,_0x1b249f:0xb2,_0x5edae2:0x71,_0x158ce0:0x159,_0x160f4a:0x13a,_0x4eca08:0x205,_0x2d1e81:0x193,_0x5b795d:0x1d4,_0xdb5c2e:0x13b,_0x2c38d1:0x89,_0x34c440:0x157,_0x4c89f4:0x250,_0x489db5:0x1c6,_0xcb3a06:0xee,_0x12ebab:0x154,_0x112038:0x249,_0x170539:0xc0,_0x471282:0x64,_0x23f49b:0x66,_0x2c61ef:0x131,_0xf6e2d3:0xca,_0x1442e4:0x18f},_0x253fd3={_0x5aa0a4:0x35e},_0xb1c4a={_0x49cc4f:0x1b3,_0x5a4792:0x47b,_0x290e09:0xa6},_0x509f99={_0x4d24a3:0x2fe},_0x4aed9d={_0x4ea9ca:0x79,_0xd00b0e:0xe4},_0x4893e5=_0x2cb148['name']??_0x4ecabd(0x2d7,_0xd53a88._0x5acd45,_0xd53a88._0xeb3967,0xc1),_0xe34368=_0x2cb148[_0x5d6782(_0xd53a88._0xad2efa,_0xd53a88._0x177d95,0x2ab,0x161)]??DEFAULT_TIMEOUT_MS2;function _0x4ecabd(_0x3fce67,_0x3d059e,_0x31e6f5,_0x16e959){return _0x1343ee(_0x31e6f5-_0x4aed9d._0x4ea9ca,_0x3fce67,_0x31e6f5-_0x4aed9d._0xd00b0e,_0x16e959-0x16);}function _0x5d6782(_0x4531ea,_0x2c0485,_0x2e250a,_0x25d8a0){return _0x357fd3(_0x4531ea-0xb,_0x2c0485-0x8d,_0x2c0485-_0x509f99._0x4d24a3,_0x25d8a0);}const _0xcdad3b=new _0x511744({'headingStyle':_0x4ecabd(_0xd53a88._0x4f5ed1,_0xd53a88._0x21765f,0x1f9,0x127),'codeBlockStyle':_0x4ecabd(0x0,-0x10b,-_0xd53a88._0x39f257,-0xfd),'bulletListMarker':'-'});return _0xcdad3b['remove']([_0x5d6782(0x1cd,0x2c0,0x3ba,0x27b),'style','noscript',_0x5d6782(0x444,_0xd53a88._0x22300f,0x362,_0xd53a88._0x1ee585),_0x4ecabd(0x185,0x6,0xef,0x1c0),_0x4ecabd(_0xd53a88._0x47ab1b,0x297,_0xd53a88._0x5788e4,_0xd53a88._0x16e373),_0x4ecabd(_0xd53a88._0x3ed2a0,0x1ea,0x223,_0xd53a88._0x59911c),_0x4ecabd(_0xd53a88._0x408308,0x23e,_0xd53a88._0x402858,_0xd53a88._0x5b8874)]),defineTool({'name':_0x4893e5,'description':_0x5d6782(_0xd53a88._0x37bd5e,0x391,_0xd53a88._0x1f3f84,_0xd53a88._0x47babd),'inputSchema':{'type':_0x4ecabd(_0xd53a88._0x35aeff,_0xd53a88._0x2b5759,_0xd53a88._0x55ac89,_0xd53a88._0x1ef544),'properties':{'description':{'type':_0x4ecabd(_0xd53a88._0x9e7994,_0xd53a88._0x2160d5,_0xd53a88._0x11e2a7,0xd3)},'url':{'type':_0x5d6782(_0xd53a88._0x1c9e30,_0xd53a88._0x50c75a,0x444,0x3d9)}},'required':[_0x4ecabd(0x15a,0x24a,0x13b,0x22a)]},async *'execute'(_0x5c1218,_0x6e1c2d){const _0x59ee50=assertFetchableUrl(_0x5c1218['url'])['toString']();if(_0x6e1c2d[_0x40b423(-0x9a,-_0x55a415._0x180abf,-_0x55a415._0x1646a8,-0x64)][_0x3644dd(-0x245,-_0x55a415._0x49b0f7,-_0x55a415._0x5f4625,-0x1b4)])throw new ToolExecutionError('Fetch\x20aborted\x20by\x20user',{'url':_0x59ee50});const _0x219153=createTimeoutSignal(_0x6e1c2d[_0x3644dd(-_0x55a415._0x30271e,-_0x55a415._0x4d73ef,-_0x55a415._0x56aecb,-0x2e8)],_0xe34368);let _0x2bea74='',_0x552cc9=0x0,_0x58ac0f;try{const _0x1b70ff=await fetch(_0x59ee50,{'headers':{'User-Agent':USER_AGENT},'signal':_0x219153[_0x3644dd(-_0x55a415._0x49f23b,-_0x55a415._0x21538c,-0x1b7,-_0x55a415._0x309d3f)]});if(!_0x1b70ff['ok'])throw new ToolExecutionError('HTTP\x20'+_0x1b70ff[_0x3644dd(-0x4e,-_0x55a415._0x1cfd88,-_0x55a415._0x548e33,-0x1af)]+'\x20'+_0x1b70ff[_0x3644dd(-_0x55a415._0x1bd367,-0x1e0,-0x193,-_0x55a415._0x3cd4a4)],{'url':_0x59ee50,'statusCode':_0x1b70ff[_0x40b423(-_0x55a415._0x75e5ae,-0x37,0x7,-_0x55a415._0x2d6a0a)]});_0x2bea74=_0x1b70ff[_0x40b423(-_0x55a415._0x3ef2bb,-0x1ef,0x70,-0x17f)][_0x40b423(-0xfe,0x2d,-_0x55a415._0x54c073,-_0x55a415._0x1b2648)]('content-type')??'',_0x552cc9=_0x1b70ff[_0x40b423(-0x61,-0xe3,-0x7c,0xc3)],_0x58ac0f=await _0x1b70ff[_0x40b423(_0x55a415._0x59de0e,_0x55a415._0xced684,_0x55a415._0x5e0d50,_0x55a415._0x180abf)]();}catch(_0x4ee9fa){if(_0x4ee9fa instanceof ToolExecutionError)throw _0x4ee9fa;const _0x5b52cd=_0x4ee9fa instanceof Error?_0x4ee9fa[_0x3644dd(-0x11,-0x9a,-_0x55a415._0x537f91,_0x55a415._0x49602e)]:String(_0x4ee9fa);throw new ToolExecutionError(_0x5b52cd,{'url':_0x59ee50});}finally{_0x219153[_0x3644dd(-_0x55a415._0x22c0f0,-0x27d,-0x1cb,-0x2ce)]();}const _0x186eda=new Date()[_0x3644dd(_0x55a415._0x1b249f,0x64,-_0x55a415._0x5edae2,-_0x55a415._0x158ce0)]();let _0x45fba1,_0x6f9174;function _0x3644dd(_0x2ea380,_0x5a509e,_0x24eb06,_0xaaea9c){return _0x5d6782(_0x2ea380-_0xb1c4a._0x49cc4f,_0x24eb06- -_0xb1c4a._0x5a4792,_0x24eb06-_0xb1c4a._0x290e09,_0x5a509e);}if(_0x2bea74[_0x3644dd(-_0x55a415._0x160f4a,-0x2f9,-_0x55a415._0x4eca08,-0x222)](_0x3644dd(-_0x55a415._0x2d1e81,-_0x55a415._0x5b795d,-0x1a7,-_0x55a415._0xdb5c2e)))_0x45fba1=_0x40b423(-_0x55a415._0x2c38d1,-0x1af,-0x195,-0x1a5)+_0x58ac0f+'\x0a```',_0x6f9174=_0x40b423(_0x55a415._0x34c440,0x1ec,_0x55a415._0x4c89f4,0x189);else _0x2bea74[_0x3644dd(-_0x55a415._0x489db5,-_0x55a415._0xcb3a06,-_0x55a415._0x4eca08,-0x1ea)](_0x40b423(0x16e,_0x55a415._0x34c440,0xc8,_0x55a415._0x12ebab))?(_0x45fba1=_0xcdad3b['turndown'](_0x58ac0f),_0x6f9174=_0x3644dd(-0x9a,-0xe6,-0x1c0,-_0x55a415._0x112038)):(_0x45fba1=_0x58ac0f,_0x6f9174=_0x40b423(_0x55a415._0x170539,-_0x55a415._0x471282,-_0x55a415._0x23f49b,_0x55a415._0x2c61ef));yield createToolOutput(_0x45fba1,{'url':_0x59ee50,'contentType':_0x2bea74,'statusCode':_0x552cc9,'format':_0x6f9174,'size':_0x58ac0f[_0x40b423(-0x45,-_0x55a415._0xf6e2d3,-_0x55a415._0x1442e4,-0x42)],'fetchedAt':_0x186eda});function _0x40b423(_0x19f256,_0x3f0a43,_0x1f368b,_0x20b550){return _0x5d6782(_0x19f256-0x134,_0x19f256- -_0x253fd3._0x5aa0a4,_0x1f368b-0x1a,_0x3f0a43);}return void 0x0;}});}import{load}from'cheerio';var USER_AGENT2='Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20Chrome/123.0.0.0\x20Safari/537.36\x20NuvinBot/1.0';function normalizeUrl(_0x5219e5){const _0x1620d4={_0x4bccb3:0x226,_0xa03aa7:0x48f,_0x1c12fc:0x28d,_0x3c6135:0x34d,_0x3d7862:0x20e,_0x433076:0x336,_0x32aaea:0x350,_0x4a5a2c:0x330,_0x54ea94:0x3c5,_0x14790f:0x2aa,_0x487000:0x188,_0x53c67b:0x2bc,_0x5a0002:0x508,_0x2f97a9:0x472,_0x2824ae:0x487,_0x3fdd8f:0x425,_0x16488c:0x30d,_0x4e8fc5:0x2b3,_0x53ae4c:0x452,_0x42b3e7:0x332,_0x13b7c7:0x2ea},_0x461cb6={_0x4cbce2:0x1de,_0x586e7d:0x232},_0xb3fd52={_0x3b985:0x372,_0x5565f4:0x3a};function _0x14a73a(_0x3b217e,_0x4f937b,_0x124c57,_0x23985d){return _0x1343ee(_0x3b217e-_0xb3fd52._0x3b985,_0x23985d,_0x124c57-0x1b8,_0x23985d-_0xb3fd52._0x5565f4);}function _0x348a76(_0x349ee7,_0x412491,_0x30d411,_0x456897){return _0x357fd3(_0x349ee7-_0x461cb6._0x4cbce2,_0x412491-0x110,_0x412491-_0x461cb6._0x586e7d,_0x349ee7);}try{const _0x28f426=new URL(_0x5219e5);for(const _0x447aad of['utm_source',_0x348a76(_0x1620d4._0x4bccb3,0x374,0x33b,0x328),_0x14a73a(_0x1620d4._0xa03aa7,0x3a2,0x398,0x4ea),_0x348a76(_0x1620d4._0x1c12fc,_0x1620d4._0x3c6135,0x3b5,_0x1620d4._0x3d7862),_0x348a76(0x405,_0x1620d4._0x433076,0x453,0x330),_0x14a73a(0x306,_0x1620d4._0x32aaea,_0x1620d4._0x4a5a2c,_0x1620d4._0x54ea94),_0x348a76(_0x1620d4._0x14790f,0x299,_0x1620d4._0x487000,_0x1620d4._0x53c67b),_0x14a73a(_0x1620d4._0x5a0002,0x4de,_0x1620d4._0x2f97a9,0x48f),_0x14a73a(0x400,_0x1620d4._0x2824ae,0x2f4,_0x1620d4._0x3fdd8f)]){_0x28f426[_0x14a73a(_0x1620d4._0x16488c,0x1c4,_0x1620d4._0x4e8fc5,0x3e7)]['delete'](_0x447aad);}return _0x28f426[_0x348a76(_0x1620d4._0x53ae4c,_0x1620d4._0x42b3e7,_0x1620d4._0x13b7c7,0x206)]();}catch{return _0x5219e5;}}function cseDateRestrict(_0x5934eb){const _0x27d7ad={_0x30299b:0x180,_0x353bb5:0x52,_0x55120a:0x3e4};function _0x21a4f6(_0x406572,_0x3f3d57,_0x4e8c7c,_0x36d217){return _0x1343ee(_0x3f3d57- -0x30,_0x36d217,_0x4e8c7c-0x188,_0x36d217-0x50);}if(_0x5934eb<=0x0)return void 0x0;function _0x11f9c7(_0x812146,_0x5a1425,_0x18b3be,_0x1acf4c){return _0x1343ee(_0x5a1425-0x3bd,_0x812146,_0x18b3be-0x3f,_0x1acf4c-0x169);}if(_0x5934eb<=0x1e)return'd'+Math[_0x21a4f6(-_0x27d7ad._0x30299b,-_0x27d7ad._0x353bb5,-0x138,-0x56)](0x1,Math['floor'](_0x5934eb));if(_0x5934eb<=0x16d)return'm'+Math[_0x11f9c7(_0x27d7ad._0x55120a,0x40b,0x350,0x3ed)](_0x5934eb/0x1e);return'y'+Math[_0x21a4f6(-0x1d,0x1e,0x12b,0x5b)](_0x5934eb/0x16d);}function addSiteFilters(_0x11570a,_0xe1e697){const _0x3ffdff={_0x469424:0x34b,_0xdb515f:0x31b,_0x2e1e57:0x3c1,_0x216b1d:0x26d,_0x5452d8:0x27e,_0x1d20dc:0x1ea,_0x45e11c:0x238,_0x27fda0:0xd1,_0x35976c:0x2be,_0x128a95:0x608,_0x592488:0x663,_0x4b4e81:0x26d,_0x3a2d6b:0x373},_0x2c140d={_0x3072f9:0x4},_0x3e20fa={_0x466bfd:0x1b1};if(_0xe1e697[_0x503195(0x284,_0x3ffdff._0x469424,_0x3ffdff._0xdb515f,_0x3ffdff._0x2e1e57)]===0x0)return _0x11570a[_0x503195(_0x3ffdff._0x216b1d,0x25d,_0x3ffdff._0x5452d8,0x3ba)]();function _0x2f125a(_0x196e39,_0x19e671,_0x4f22fb,_0x1c1b56){return _0x357fd3(_0x196e39-0x1c5,_0x19e671-_0x3e20fa._0x466bfd,_0x4f22fb-0x406,_0x1c1b56);}function _0x503195(_0x2f402f,_0x3d598c,_0x2c2213,_0x2e2305){return _0x1343ee(_0x2f402f-0x264,_0x3d598c,_0x2c2213-_0x2c140d._0x3072f9,_0x2e2305-0x150);}return(_0x11570a+'\x20('+_0xe1e697[_0x503195(_0x3ffdff._0x1d20dc,_0x3ffdff._0x45e11c,_0x3ffdff._0x27fda0,_0x3ffdff._0x35976c)](_0xa2e045=>_0x503195(0x216,0x215,0x24b,0x191)+_0xa2e045)['join'](_0x2f125a(_0x3ffdff._0x128a95,0x5f4,0x5c5,_0x3ffdff._0x592488))+')')[_0x503195(_0x3ffdff._0x4b4e81,0x2fd,0x172,_0x3ffdff._0x3a2d6b)]();}function normalizeType(_0x49efa1){const _0x5b35ec={_0xee50ab:0xb4,_0x3f332a:0x131,_0x8068c1:0x2a9,_0x4d1965:0x1ea,_0x2e65e0:0x1a6,_0x48fd88:0x328},_0x146c4c={_0x15bc4d:0x174},_0x34fc12={_0x2e4410:0xf2,_0x1bc18f:0x1f1,_0x5ea851:0x24b};function _0x2abe77(_0x143254,_0x55091e,_0x5c2fbe,_0x6c91e3){return _0x357fd3(_0x143254-_0x34fc12._0x2e4410,_0x55091e-_0x34fc12._0x1bc18f,_0x143254-_0x34fc12._0x5ea851,_0x6c91e3);}function _0x2a6152(_0x19eb23,_0x4587ae,_0x239a73,_0x5515a9){return _0x1343ee(_0x5515a9-0x285,_0x19eb23,_0x239a73-0x13b,_0x5515a9-_0x146c4c._0x15bc4d);}return _0x49efa1===_0x2a6152(_0x5b35ec._0xee50ab,_0x5b35ec._0x3f332a,_0x5b35ec._0x8068c1,_0x5b35ec._0x4d1965)?_0x2a6152(_0x5b35ec._0x2e65e0,0x214,_0x5b35ec._0x48fd88,_0x5b35ec._0x4d1965):'web';}async function fetchJson(_0x12bfd0,_0xa9fe9d,_0x293693){const _0x19528c={_0x1455d0:0x14e,_0x5c4416:0x479,_0x288847:0x90,_0x4f8420:0xcd,_0x25094a:0x54e,_0x3792a6:0x3ed,_0x3cf125:0x54,_0x534d7d:0x5a,_0x58167e:0x553,_0x52a4bf:0x59e,_0x5535a9:0x97,_0x279ab0:0x167,_0x305d53:0x25b,_0x4c9cd2:0x10c,_0x4bcf9d:0x12,_0x3d80f0:0x16,_0x173b56:0x32,_0x35daaa:0x24f,_0x5e349a:0x186,_0x256ad5:0x143,_0x573037:0x138,_0x2e4b79:0x4,_0x35e87c:0x30b,_0x3d6372:0x352,_0x55f2b2:0x274,_0x40bc68:0x6e,_0x46bead:0x20c,_0x12e469:0x3f4,_0x1cb7c1:0x4d8,_0x5861cf:0x577},_0x810771={_0x129ff3:0x144},_0x21b66a={_0x542dbe:0x147,_0x5c3a40:0x161,_0x510ab6:0x1ea};function _0x699b01(_0x21fc45,_0x300daa,_0x2e13a0,_0x3c0ef3){return _0x1343ee(_0x21fc45- -_0x21b66a._0x542dbe,_0x300daa,_0x2e13a0-_0x21b66a._0x5c3a40,_0x3c0ef3-_0x21b66a._0x510ab6);}const _0x53d5a9=await fetch(_0x12bfd0,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x699b01(-0x16c,-_0x19528c._0x1455d0,-0x96,-0x157),..._0x293693?.['headers']},'signal':_0xa9fe9d,..._0x293693});if(!_0x53d5a9['ok']){let _0x40ba63,_0x352a88;try{_0x40ba63=await _0x53d5a9[_0x23c549(_0x19528c._0x5c4416,0x441,0x484,0x364)]();const _0x1170ac=JSON[_0x699b01(_0x19528c._0x288847,0x172,_0x19528c._0x4f8420,_0x19528c._0x4f8420)](_0x40ba63),_0x1f201e=typeof _0x1170ac[_0x23c549(_0x19528c._0x25094a,0x40f,_0x19528c._0x3792a6,0x3e6)]==='object'?_0x1170ac[_0x699b01(-_0x19528c._0x3cf125,-_0x19528c._0x534d7d,-0x148,-0xa8)]['error']:void 0x0;_0x352a88=_0x1170ac[_0x23c549(0x373,0x4a5,_0x19528c._0x58167e,_0x19528c._0x52a4bf)]?.[_0x23c549(0x3de,0x403,0x427,0x31c)]??_0x1170ac[_0x699b01(0x42,_0x19528c._0x5535a9,-0x86,-0x21)]?.[_0x699b01(-_0x19528c._0x279ab0,-0x19f,-0x1e0,-_0x19528c._0x305d53)]?.[0x0]?.['message']??_0x1f201e;}catch{}const _0x39f914=_0x352a88?_0x699b01(-_0x19528c._0x4c9cd2,-_0x19528c._0x4bcf9d,-0x22,-_0x19528c._0x3d80f0)+_0x53d5a9['status']+':\x20'+_0x352a88:_0x699b01(-0x10c,-_0x19528c._0x173b56,-_0x19528c._0x35daaa,-_0x19528c._0x5e349a)+_0x53d5a9[_0x699b01(-_0x19528c._0x256ad5,-0x27a,-_0x19528c._0x573037,-_0x19528c._0x2e4b79)]+'\x20'+_0x53d5a9[_0x23c549(0x29a,_0x19528c._0x35e87c,_0x19528c._0x3d6372,_0x19528c._0x55f2b2)];throw new ToolExecutionError(_0x39f914,{'statusCode':_0x53d5a9[_0x699b01(-0x143,-_0x19528c._0x40bc68,-0x8e,-_0x19528c._0x46bead)],..._0x40ba63?{'body':_0x40ba63}:{}});}function _0x23c549(_0x2732c7,_0xce39e4,_0xa6c469,_0x5b4980){return _0x357fd3(_0x2732c7-0x92,_0xce39e4-_0x810771._0x129ff3,_0xce39e4-0x321,_0x5b4980);}return await _0x53d5a9[_0x23c549(_0x19528c._0x12e469,_0x19528c._0x1cb7c1,0x49d,_0x19528c._0x5861cf)]();}async function hydrateResults(_0x2b628f,_0x63b2ca,_0x20dcaf){const _0x14fe8b={_0x19cb43:0xaf,_0x4cd669:0x423,_0x23c0ab:0x4f2,_0x3feccc:0x473,_0x3d11cd:0x311,_0x20c5b3:0x30d,_0x3296b9:0x2e0,_0x5754c5:0x13,_0x10a201:0x136,_0x1a7926:0x2c8,_0x3579e6:0x382,_0x5f4db4:0x34a,_0x2b9d6b:0x348},_0x4d3309={_0x14f11a:0xa7,_0x2ef993:0x307},_0x3bb127={_0x2b5cbf:0x3e9,_0x1565f2:0x2d9,_0x36dce9:0x292,_0x5383d9:0x3cd,_0x541d71:0x33b,_0x13dca4:0x10b,_0x16bf07:0x181,_0x4298b9:0x1c4,_0x461736:0x22,_0x38dd1a:0xd8,_0x244173:0x64,_0x1b429b:0x20e,_0x299975:0x485,_0x3a8583:0x2a9,_0x273ba7:0x3bf,_0x36b69f:0x256,_0x5a28fd:0x17f,_0x1ad5c5:0x29c,_0x428b74:0x14e,_0x4cc67b:0x169,_0x8783a7:0xfe,_0x2ef0b8:0xc8,_0x4fa3fd:0x285,_0xdd0e81:0x3d3,_0x1d4f0d:0xeb,_0x26bf83:0x4ff,_0x487564:0x3cc,_0x5c829a:0x76,_0x54595d:0xbe,_0x18286e:0x1c5,_0x45f7e5:0xec,_0x3af95e:0x2fc,_0xe9916d:0x356,_0x39450c:0x323,_0xd32a5e:0x4d2,_0x5b385d:0x334,_0x565f5a:0x2a4,_0x232d2a:0x3b0,_0x3ebb0e:0x29e,_0x35ea92:0x468,_0xf27917:0x1b9,_0x4ecb23:0xfe,_0x35fff2:0x2a1,_0x372b4f:0x1bf,_0x1fd960:0x1c3,_0x15681f:0x251,_0x49bda8:0x23d,_0x509494:0xe2,_0xfb07b2:0xe5,_0x1163c0:0x4,_0x39585c:0xf9,_0x2ae626:0x189},_0x209ed9={_0x7859a1:0x1e8},_0x5ed178={_0x575824:0x15e,_0x507175:0x80};function _0xf62ca9(_0x182dee,_0x55f82f,_0x524a54,_0x100ddf){return _0x1343ee(_0x182dee- -0x184,_0x100ddf,_0x524a54-0x10a,_0x100ddf-0x1ad);}const _0x39b05d=await Promise[_0xf62ca9(-0x111,-0x3,-_0x14fe8b._0x19cb43,-0x254)](_0x2b628f[_0x3256c2(_0x14fe8b._0x4cd669,0x4bd,_0x14fe8b._0x23c0ab,_0x14fe8b._0x3feccc)](0x0,0xa)[_0xf62ca9(-0x1fe,-_0x14fe8b._0x3d11cd,-_0x14fe8b._0x20c5b3,-_0x14fe8b._0x3296b9)](async _0x412906=>{function _0x501d6d(_0x1b53c8,_0x5c11a3,_0x233e94,_0x100fd9){return _0xf62ca9(_0x100fd9-0x39a,_0x5c11a3-_0x5ed178._0x575824,_0x233e94-_0x5ed178._0x507175,_0x5c11a3);}function _0x1de217(_0xf8349e,_0xff40cb,_0x15d059,_0x140973){return _0xf62ca9(_0xff40cb- -0x10a,_0xff40cb-0x79,_0x15d059-_0x209ed9._0x7859a1,_0x140973);}try{const _0x367fcd=await fetch(_0x412906[_0x501d6d(0x286,0x427,0x3ba,0x2d8)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x63b2ca,'Accept':_0x501d6d(0x4bc,0x4a1,0x38c,_0x3bb127._0x2b5cbf)},'signal':_0x20dcaf});if(!_0x367fcd['ok'])return _0x412906;const _0x1505be=await _0x367fcd[_0x501d6d(_0x3bb127._0x1565f2,_0x3bb127._0x36dce9,_0x3bb127._0x5383d9,_0x3bb127._0x541d71)](),_0x3b6c65=load(_0x1505be),_0x2a6844=_0x3b6c65(_0x1de217(-_0x3bb127._0x13dca4,-0xfc,-_0x3bb127._0x16bf07,-_0x3bb127._0x4298b9))[_0x1de217(-_0x3bb127._0x461736,-_0x3bb127._0x38dd1a,-_0x3bb127._0x244173,-_0x3bb127._0x1b429b)]('content')||_0x3b6c65(_0x501d6d(0x317,_0x3bb127._0x299975,_0x3bb127._0x3a8583,_0x3bb127._0x273ba7))[_0x1de217(-0x265,-_0x3bb127._0x36b69f,-_0x3bb127._0x5a28fd,-_0x3bb127._0x1ad5c5)]()[_0x1de217(-_0x3bb127._0x428b74,-_0x3bb127._0x4cc67b,-_0x3bb127._0x8783a7,-_0x3bb127._0x2ef0b8)]()[_0x1de217(-0x2fe,-_0x3bb127._0x4fa3fd,-_0x3bb127._0xdd0e81,-0x333)](),_0x341ed3=_0x3b6c65(_0x1de217(-0x2fd,-0x1e5,-0x23b,-_0x3bb127._0x1d4f0d))[_0x501d6d(0x507,0x44c,_0x3bb127._0x26bf83,_0x3bb127._0x487564)]('content')||_0x3b6c65(_0x1de217(-_0x3bb127._0x5c829a,-_0x3bb127._0x54595d,-_0x3bb127._0x18286e,0x4))[_0x1de217(0x4a,-0xd8,-0x130,-_0x3bb127._0x45f7e5)](_0x1de217(-0xee,-0xbd,-0xae,-0xe5))||_0x412906[_0x1de217(-0x2a9,-_0x3bb127._0x3af95e,-0x35c,-0x1f8)],_0x3b60e1=_0x3b6c65(_0x1de217(-_0x3bb127._0xe9916d,-0x25f,-_0x3bb127._0x39450c,-0x193))[_0x501d6d(0x281,0x27d,_0x3bb127._0xd32a5e,0x3cc)](_0x501d6d(_0x3bb127._0x5b385d,0x2c1,_0x3bb127._0x565f5a,0x3e7))||_0x3b6c65(_0x501d6d(_0x3bb127._0x232d2a,0x400,_0x3bb127._0x3ebb0e,0x36e))[_0x501d6d(0x3be,_0x3bb127._0x26bf83,_0x3bb127._0x35ea92,_0x3bb127._0x487564)](_0x501d6d(0x10e,_0x3bb127._0xf27917,0x158,0x1a1))||_0x412906[_0x1de217(-0x6f,-0x1ab,-_0x3bb127._0x4ecb23,-0x248)],_0x1a245a=_0x3b6c65(_0x501d6d(_0x3bb127._0x1ad5c5,_0x3bb127._0x35fff2,0x11d,_0x3bb127._0x372b4f))['attr'](_0x1de217(-_0x3bb127._0x1fd960,-0x199,-_0x3bb127._0x15681f,-_0x3bb127._0x49bda8));return{..._0x412906,'title':_0x2a6844||_0x412906[_0x1de217(-_0x3bb127._0x509494,-_0x3bb127._0xfb07b2,_0x3bb127._0x1163c0,-_0x3bb127._0x39585c)],'snippet':_0x341ed3,'url':_0x1a245a?normalizeUrl(new URL(_0x1a245a,_0x412906[_0x1de217(-0x189,-0x1cc,-0x1e4,-0xf8)])[_0x1de217(-0x9f,-_0x3bb127._0x2ae626,-0x2b9,-0x22d)]()):_0x412906[_0x1de217(-0x1e1,-0x1cc,-0x132,-0x99)],'publishedAt':_0x3b60e1};}catch{return _0x412906;}})),_0x5ed6c1=new Map(_0x2b628f[_0xf62ca9(-_0x14fe8b._0x5754c5,0x89,-0x14,_0x14fe8b._0x10a201)](0x0,0xa)[_0x3256c2(_0x14fe8b._0x1a7926,0x2ff,0x236,0x288)]((_0x1ca047,_0x5d8436)=>[_0x1ca047[_0xf62ca9(-0xc2,-0x164,-0xd1,-0x96)],_0x39b05d[_0x5d8436]]));function _0x3256c2(_0x366a2c,_0x30eef2,_0x5d12a4,_0x294021){return _0x357fd3(_0x366a2c-_0x4d3309._0x14f11a,_0x30eef2-0x6a,_0x294021-_0x4d3309._0x2ef993,_0x30eef2);}return _0x2b628f[_0x3256c2(_0x14fe8b._0x3579e6,_0x14fe8b._0x5f4db4,_0x14fe8b._0x2b9d6b,0x288)](_0x2412dc=>_0x5ed6c1[_0xf62ca9(-0x21d,-0x1ec,-0x1b9,-0x1dc)](_0x2412dc[_0x3256c2(0x3d0,0x32a,0x2e2,0x3c4)])??_0x2412dc);}function formatResults(_0x36cdce){const _0x2a8bcb={_0x235d40:0x4a4,_0x14c50a:0x137},_0x4f7cf9={_0x2eab5a:0x23c,_0x5bddc5:0x1b3,_0x40ea76:0x114,_0x276fef:0xe4,_0x3bb196:0x18a,_0x4b57c1:0x92,_0x15c1bf:0x1c,_0xaaeaa0:0xd,_0x2fb17f:0x9e,_0x377341:0x1a6,_0x1f05df:0xd2,_0x454872:0x15e,_0x25e2db:0x13d},_0x636dc7={_0x248856:0x176,_0x5953ab:0xdd},_0x258704={_0x1ea5e6:0x30};function _0x1be90f(_0x2f5d0f,_0x30a2d3,_0x14fd94,_0xa83cfe){return _0x1343ee(_0x2f5d0f-0x436,_0xa83cfe,_0x14fd94-0x1f2,_0xa83cfe-_0x258704._0x1ea5e6);}if(_0x36cdce['length']===0x0)return'No\x20results\x20found.';function _0x230168(_0x235bab,_0x3a9e01,_0x24a8c2,_0x1d71fc){return _0x1343ee(_0x3a9e01- -_0x636dc7._0x248856,_0x235bab,_0x24a8c2-_0x636dc7._0x5953ab,_0x1d71fc-0x1ef);}return _0x36cdce[_0x1be90f(0x3bc,0x506,_0x2a8bcb._0x235d40,0x453)](_0x23a522=>{const _0x4b2d50={_0x47b2cd:0x36e,_0x210098:0x50},_0x2f0aa8=[_0x23a522['source']['rank']+'.\x20'+_0x23a522[_0x173811(_0x4f7cf9._0x2eab5a,_0x4f7cf9._0x5bddc5,0x1c4,_0x4f7cf9._0x40ea76)],_0x23a522[_0x2888da(0x18e,_0x4f7cf9._0x276fef,_0x4f7cf9._0x3bb196,0x71)]];function _0x173811(_0x4d29d0,_0x5c32be,_0x5440ac,_0x236171){return _0x1be90f(_0x4d29d0- -0x3a3,_0x5c32be-0xb9,_0x5440ac-0xe3,_0x236171);}if(_0x23a522[_0x173811(0x25,_0x4f7cf9._0x4b57c1,_0x4f7cf9._0x15c1bf,-_0x4f7cf9._0xaaeaa0)])_0x2f0aa8[_0x173811(0xf5,0x21c,0xc2,0x150)](_0x23a522[_0x173811(0x25,-0xbd,-0xc3,-0x7c)]);function _0x2888da(_0x247ffb,_0x595616,_0x5ed0e6,_0x32dd1c){return _0x1be90f(_0x5ed0e6- -_0x4b2d50._0x47b2cd,_0x595616-0x1a8,_0x5ed0e6-_0x4b2d50._0x210098,_0x595616);}if(_0x23a522['publishedAt'])_0x2f0aa8[_0x173811(0xf5,-0x1c,0x157,_0x4f7cf9._0x2fb17f)]('Published:\x20'+_0x23a522[_0x2888da(_0x4f7cf9._0x377341,0x2d3,0x1ab,0x8f)]);return _0x2f0aa8[_0x173811(_0x4f7cf9._0x1f05df,0x138,_0x4f7cf9._0x454872,_0x4f7cf9._0x25e2db)]('\x0a');})[_0x230168(-0xbb,-_0x2a8bcb._0x14c50a,-0x187,-0x224)]('\x0a\x0a');}async function searchOllama(_0x12b0e1,_0x3bbda6,_0x34d333){const _0x466b98={_0xca533e:0x1a9,_0x21534e:0x120,_0xdfa58a:0x75,_0x1f6bec:0x23,_0xe0efda:0x87,_0x2207fa:0x7c,_0x5ab711:0x216,_0x18fd1d:0x63,_0x72c4e4:0x6b,_0x5ccfdc:0xe5,_0x1413b1:0xe7,_0x4f997c:0xa,_0x339373:0xcc,_0xb5bde7:0xfb,_0x2d0cf7:0x7d,_0x1fb176:0xc5,_0x4fc323:0xc5,_0x360187:0x5b,_0x474462:0xa4,_0x28cec5:0xa3},_0x608851={_0x367448:0x51e,_0x586f5b:0x55c,_0x262063:0x5e2,_0x159bd8:0x54,_0x4d5dc1:0x510},_0x1760ec={_0x154609:0x572},_0x147d73={_0x1c139c:0x259},_0x129956={_0x4a4def:0x1b0,_0x40770f:0x13d},_0x4fea86={_0x29f98b:0x1e2,_0x77478b:0x63},_0x288b83=Math[_0x131255(-0x1e8,-0x138,-0x165,-0x22e)](0x1,Math[_0x4e6266(-0xde,-_0x466b98._0xca533e,-_0x466b98._0x21534e,-0x1f7)](0xa,_0x3bbda6[_0x4e6266(-0x23,-0x74,-0xda,-_0x466b98._0xdfa58a)])),_0x1a2bdb=addSiteFilters(_0x3bbda6[_0x131255(-_0x466b98._0x1f6bec,0x57,-0x2,-_0x466b98._0xe0efda)],_0x3bbda6['domains']),_0x25503d=await fetchJson('https://ollama.com/api/web_search',_0x34d333,{'method':_0x131255(-_0x466b98._0x2207fa,-0x11f,-0x1f8,-_0x466b98._0x5ab711),'headers':{'Authorization':_0x4e6266(-0xe5,-_0x466b98._0x18fd1d,_0x466b98._0x72c4e4,-_0x466b98._0x5ccfdc)+_0x12b0e1[_0x4e6266(-_0x466b98._0x1413b1,_0x466b98._0x4f997c,0x14d,-0x48)]},'body':JSON[_0x131255(-_0x466b98._0x339373,-0x3,-0x8,-_0x466b98._0xb5bde7)]({'query':_0x1a2bdb,'max_results':_0x288b83})});function _0x131255(_0x48550c,_0x595269,_0x17b46a,_0xed75b4){return _0x1343ee(_0x595269- -0x116,_0xed75b4,_0x17b46a-_0x4fea86._0x29f98b,_0xed75b4-_0x4fea86._0x77478b);}function _0x4e6266(_0xddace5,_0x3525e5,_0x22689c,_0x29bfe8){return _0x1343ee(_0x3525e5- -_0x129956._0x4a4def,_0xddace5,_0x22689c-0x19a,_0x29bfe8-_0x129956._0x40770f);}const _0x14f933=_0x25503d['results']??[],_0xec20e5=_0x14f933[_0x131255(-0x18a,-0x190,-_0x466b98._0x2d0cf7,-_0x466b98._0x1fb176)]((_0x3e48ab,_0x4d2645)=>{const _0x2ed7ec=_0x3e48ab[_0x3b82dc(_0x608851._0x367448,_0x608851._0x586f5b,0x5df,0x63a)]||'';let _0x1be88c;function _0x1edd63(_0x5c7b8c,_0x3b639a,_0x24930c,_0x42634c){return _0x131255(_0x5c7b8c-0x13d,_0x24930c-_0x147d73._0x1c139c,_0x24930c-0x26,_0x42634c);}try{_0x1be88c=new URL(_0x2ed7ec)[_0x3b82dc(0x571,_0x608851._0x262063,0x5b6,0x4fb)];}catch{_0x1be88c=null;}function _0x3b82dc(_0x159bbe,_0x1b7564,_0x464d94,_0x3d0d0a){return _0x131255(_0x159bbe-0x12d,_0x159bbe-_0x1760ec._0x154609,_0x464d94-0x15e,_0x3d0d0a);}return{'title':_0x3e48ab['title']||_0x1edd63(-0x38,0x27,0xad,-_0x608851._0x159bd8),'url':normalizeUrl(_0x2ed7ec),'snippet':_0x3e48ab['content']??null,'displayUrl':_0x1be88c,'favicon':null,'publishedAt':null,'source':{'engine':_0x3b82dc(0x48f,0x422,_0x608851._0x4d5dc1,0x45e),'rank':_0x4d2645+0x1}};});return{'items':_0xec20e5[_0x131255(-_0x466b98._0x4fc323,_0x466b98._0x360187,0x109,_0x466b98._0x474462)](0x0,_0x288b83),'engine':_0x131255(-0x11f,-0xe3,-_0x466b98._0x28cec5,-0xe2)};}async function searchTavily(_0x4ebb25,_0x5f4eb9,_0x195d1e){const _0xa3b97c={_0x1c4bff:0x461,_0x2a776d:0x3cf,_0x351ee4:0x407,_0x3a2604:0x502,_0x46470a:0x535,_0x234e93:0x52d,_0x2dd685:0x794,_0x3e7c86:0x472,_0x5d44ca:0x361,_0x38150b:0x544,_0x4a983b:0x48d,_0x45b13b:0x421,_0xac5f53:0x494,_0x189987:0x411,_0x3163f0:0x3ca,_0x3eac5b:0x5ca,_0x40c246:0x4e7,_0x21024c:0x4da,_0x181f8c:0x3e8,_0x478c39:0x633,_0x12fd49:0x767,_0x51f86e:0x512,_0x53e021:0x3b8,_0x2e6f4f:0x381,_0x573950:0x4c3,_0x56119f:0x57b,_0x37c259:0x47f,_0x2a4132:0x50d,_0x418505:0x693,_0x495f04:0x44f,_0x47c90e:0x607,_0xff4326:0x41c},_0x523cd5={_0x10cca9:0xbf,_0x1ce13b:0x4c,_0x18be16:0xbd,_0x46f684:0x1d8,_0x540cfd:0xbb,_0x5730b6:0x33,_0x5bfe6b:0x10c,_0x5955cf:0x117,_0x3b1e1f:0x179,_0x4e4659:0x171,_0x29579b:0x86,_0x4257c5:0x30,_0x252c12:0x5d},_0x2185d5={_0x3151d0:0x5c,_0x5f27f3:0xf3},_0x3fc3de={_0x4beea3:0x55c},_0x3cb1db={_0x18b6b5:0xfb,_0x1e5652:0x4eb},_0x263180={_0x224d3b:0x1e1,_0x1e2276:0xd3,_0x97bc1b:0x3f6},_0x499f23=Math[_0x2e585c(_0xa3b97c._0x1c4bff,_0xa3b97c._0x2a776d,_0xa3b97c._0x351ee4,0x4f1)](0x1,Math[_0x24c314(0x4ed,0x611,_0xa3b97c._0x3a2604,_0xa3b97c._0x46470a)](0x14,_0x5f4eb9[_0x2e585c(0x64c,_0xa3b97c._0x234e93,0x5e3,0x46c)])),_0x374b4a={'query':_0x5f4eb9[_0x24c314(0x653,_0xa3b97c._0x2dd685,0x72c,0x5de)],'max_results':_0x499f23,'search_depth':_0x4ebb25[_0x24c314(_0xa3b97c._0x3e7c86,0x375,_0xa3b97c._0x5d44ca,0x342)]??_0x24c314(0x594,0x600,_0xa3b97c._0x38150b,_0xa3b97c._0x4a983b),'topic':_0x4ebb25[_0x24c314(0x4af,0x42c,_0xa3b97c._0x45b13b,_0xa3b97c._0xac5f53)]??'general'};if(_0x5f4eb9['domains'][_0x2e585c(0x41b,_0xa3b97c._0x189987,_0xa3b97c._0x3163f0,0x3ce)]>0x0)_0x374b4a[_0x24c314(0x4d3,0x597,_0xa3b97c._0x3eac5b,_0xa3b97c._0x40c246)]=_0x5f4eb9['domains'];function _0x2e585c(_0x84e2f3,_0x44c90f,_0x4252cb,_0x458d4c){return _0x357fd3(_0x84e2f3-_0x263180._0x224d3b,_0x44c90f-_0x263180._0x1e2276,_0x44c90f-_0x263180._0x97bc1b,_0x4252cb);}const _0x4a0844=await fetchJson('https://api.tavily.com/search',_0x195d1e,{'method':_0x2e585c(_0xa3b97c._0x21024c,_0xa3b97c._0x181f8c,0x3a2,0x389),'headers':{'Authorization':_0x24c314(_0xa3b97c._0x478c39,_0xa3b97c._0x12fd49,0x504,_0xa3b97c._0x51f86e)+_0x4ebb25[_0x2e585c(0x4ef,0x457,0x4b7,0x4f7)],'Content-Type':_0x2e585c(_0xa3b97c._0x53e021,0x3cc,_0xa3b97c._0x2e6f4f,_0xa3b97c._0x573950)},'body':JSON['stringify'](_0x374b4a)});function _0x24c314(_0x331c15,_0x33f891,_0x2ed46c,_0x5bdb42){return _0x357fd3(_0x331c15-0xdf,_0x33f891-_0x3cb1db._0x18b6b5,_0x331c15-_0x3cb1db._0x1e5652,_0x2ed46c);}const _0x396074=_0x4a0844[_0x24c314(_0xa3b97c._0x56119f,_0xa3b97c._0x37c259,0x47e,0x68a)]??[],_0x489539=_0x396074[_0x24c314(0x46c,0x47a,0x471,0x449)]((_0x1a40e0,_0x1db58f)=>{const _0x23600a=_0x1a40e0[_0x4bbc36(_0x523cd5._0x10cca9,_0x523cd5._0x1ce13b,0x8,0x137)]||'';let _0x38bf99;function _0x4bbc36(_0x55270b,_0x3c999d,_0x1e5683,_0x1840a0){return _0x24c314(_0x3c999d- -_0x3fc3de._0x4beea3,_0x3c999d-0x1aa,_0x1e5683,_0x1840a0-0x63);}function _0x323a69(_0x3b871e,_0x2ac474,_0x29a0e6,_0x34ef36){return _0x2e585c(_0x3b871e-_0x2185d5._0x3151d0,_0x2ac474- -0x449,_0x34ef36,_0x34ef36-_0x2185d5._0x5f27f3);}try{_0x38bf99=new URL(_0x23600a)[_0x323a69(0xbf,_0x523cd5._0x18be16,0x101,_0x523cd5._0x46f684)];}catch{_0x38bf99=null;}return{'title':_0x1a40e0[_0x323a69(0x257,0x151,_0x523cd5._0x540cfd,_0x523cd5._0x5730b6)]||_0x4bbc36(-0xd3,-_0x523cd5._0x5bfe6b,-_0x523cd5._0x5955cf,-0x1b),'url':normalizeUrl(_0x23600a),'snippet':_0x1a40e0[_0x323a69(0x272,_0x523cd5._0x3b1e1f,0x7e,0x1d1)]??null,'displayUrl':_0x38bf99,'favicon':null,'publishedAt':null,'source':{'engine':_0x323a69(-_0x523cd5._0x4e4659,-_0x523cd5._0x29579b,_0x523cd5._0x4257c5,-_0x523cd5._0x252c12),'rank':_0x1db58f+0x1}};});return{'items':_0x489539[_0x2e585c(_0xa3b97c._0x2a4132,0x562,0x551,_0xa3b97c._0x418505)](0x0,_0x499f23),'engine':_0x24c314(0x4b8,_0xa3b97c._0x495f04,_0xa3b97c._0x47c90e,_0xa3b97c._0xff4326)};}async function searchGoogleCse(_0x1e4850,_0x333fdd,_0x4c6e12){const _0x1bd02e={_0x2e715d:0x251,_0x346f35:0x98,_0x4bddbd:0xd9,_0x2e8124:0x581,_0x3c1bed:0x51f,_0xc9a67c:0x532,_0x2f4cae:0x16c,_0x3b1cc2:0x185,_0x57a805:0x5e2,_0x407de4:0x6be,_0x4e2262:0x681,_0x206bae:0x3a0,_0x1550d0:0x419,_0x5bb68a:0x424,_0x4b6f4f:0x51b,_0xbe68e5:0x411,_0x10a45d:0x13,_0x5dd637:0x132,_0x3c2898:0x52,_0x344f03:0xb1,_0x3d52b8:0x2bb,_0x1f6b73:0x196,_0x33ea2a:0x20d,_0x578e6b:0x145,_0x4937e8:0x1c3,_0x354399:0x49,_0x50d3be:0x61,_0x435f06:0x6,_0x57b05f:0xc4,_0xbdb303:0x15d,_0x2df4f5:0x18e,_0x297a19:0x2,_0x1b3f78:0xe7,_0x41b5ce:0xd5,_0x55ef12:0x16,_0x351edc:0x3f8,_0x56c2ac:0x466,_0x1ef4dd:0x473,_0xf0b15c:0x4c4,_0x18ab78:0x5de,_0x372f6e:0x5c9,_0x3dde9c:0x3e8,_0x5454e6:0x48c,_0xa010f5:0x61,_0x497a46:0x5c,_0x3e9691:0x13a,_0x57ae04:0x5a,_0x14006f:0x456,_0x170ae1:0x61,_0x10a266:0x4ca,_0x13e214:0x584,_0x3ee8e6:0x4f3,_0xd75e5c:0x65b,_0x574612:0x145,_0x295e1f:0x229,_0x4801c3:0x4c4,_0x578d72:0x47b,_0x2f89a2:0x6a,_0x48b4a3:0x60b,_0x5f5094:0x56c,_0x19ef14:0x68a,_0x5d6b32:0x748,_0x395690:0x3e0,_0x5e0f77:0x61,_0x52458c:0x5,_0x4226ed:0x54b,_0x5c364c:0x6c5,_0x190d55:0x552,_0x2bed35:0x416,_0x333fab:0x475,_0x4a5c10:0x4d8,_0x3804e0:0x577,_0x317636:0x65,_0x1b9062:0x79,_0x1499c5:0x74,_0x594d44:0x54a,_0x39ffa8:0x3fd,_0x59e9cf:0x20c,_0x261c30:0x15f,_0xe0b4b6:0x17b,_0x5720ec:0x6f,_0x133b1a:0x1aa,_0x35272c:0x545,_0x103c00:0x1a4,_0x53124f:0xc2,_0x1d05c5:0x1d3,_0x2a856b:0x1,_0x11ac25:0x12b,_0xe8c562:0xb,_0x3cde4d:0xaf,_0x51950e:0xff,_0x59df0d:0x6f9,_0xe23ad8:0x578,_0xdaf5f8:0x402,_0x327b65:0x516,_0xa28523:0x4e7,_0x11211e:0x176,_0x505567:0xa9,_0x2fd41e:0x244,_0x2c74e0:0x57a,_0x190d51:0x3e2,_0x3c68fd:0x491,_0x1c2052:0x328,_0x12dc7d:0x370,_0x4530aa:0x3fd,_0x2f19c7:0x4eb,_0x4a02ec:0x497,_0x436a3f:0x41e,_0x1d4f4e:0x55a,_0x44a407:0x488,_0x408afe:0x386,_0x2cfdf0:0x48d,_0x49cad7:0x2e7,_0x1fe58e:0x86,_0x273d00:0xa1,_0x46846d:0xc0,_0x33129f:0x72,_0xfc6884:0x612,_0x1a8539:0x525},_0x4a8915={_0x8584aa:0xe0},_0x4c6708={_0x246fd9:0xda,_0x48b18a:0x188,_0x3e3578:0x44a},_0xf50c60=Math[_0x1301f5(-_0x1bd02e._0x2e715d,-0x102,-0x153,-0x23)](0x1,Math[_0x1301f5(-_0x1bd02e._0x346f35,-_0x1bd02e._0x4bddbd,-0x1f5,-0x229)](0x32,_0x333fdd[_0x10c7f8(_0x1bd02e._0x2e8124,_0x1bd02e._0x3c1bed,_0x1bd02e._0xc9a67c,0x590)]));if(_0x333fdd[_0x1301f5(-_0x1bd02e._0x2f4cae,-_0x1bd02e._0x3b1cc2,-0x223,-0x68)]+_0xf50c60>0x64)throw new ToolExecutionError(_0x10c7f8(_0x1bd02e._0x57a805,_0x1bd02e._0x407de4,0x4d8,_0x1bd02e._0x4e2262),{'offset':_0x333fdd[_0x10c7f8(_0x1bd02e._0x206bae,_0x1bd02e._0x1550d0,_0x1bd02e._0x5bb68a,0x28f)],'count':_0xf50c60,'maxResults':0x64});const _0xb8f5be=cseDateRestrict(_0x333fdd[_0x10c7f8(_0x1bd02e._0x4b6f4f,0x3f1,0x53e,_0x1bd02e._0xbe68e5)]),_0x53e336=addSiteFilters(_0x333fdd[_0x1301f5(-_0x1bd02e._0x10a45d,0x8d,0x1c4,-0x8c)],_0x333fdd[_0x1301f5(-0xb0,-_0x1bd02e._0x5dd637,-0x17c,-_0x1bd02e._0x3c2898)]);let _0x631979=0x0;function _0x10c7f8(_0x67fb7e,_0x89320e,_0x1ba252,_0x2c9b00){return _0x357fd3(_0x67fb7e-_0x4c6708._0x246fd9,_0x89320e-_0x4c6708._0x48b18a,_0x67fb7e-_0x4c6708._0x3e3578,_0x2c9b00);}let _0x38c191=_0x333fdd[_0x1301f5(-_0x1bd02e._0x344f03,-_0x1bd02e._0x3b1cc2,-_0x1bd02e._0x3d52b8,-0x292)]+0x1;const _0x5480ce=[];while(_0x631979<_0xf50c60){const _0xf564b5=Math['min'](0xa,_0xf50c60-_0x631979),_0x15b742=new URL(_0x1301f5(-0xa1,-_0x1bd02e._0x1f6b73,-0xe1,-_0x1bd02e._0x33ea2a));_0x15b742[_0x1301f5(-0x75,-_0x1bd02e._0x578e6b,-_0x1bd02e._0x4937e8,-0x11)][_0x1301f5(-_0x1bd02e._0x354399,-_0x1bd02e._0x50d3be,_0x1bd02e._0x435f06,_0x1bd02e._0x57b05f)]('key',_0x1e4850[_0x1301f5(-0x14e,-_0x1bd02e._0xbdb303,-0x1d0,-_0x1bd02e._0x2df4f5)]),_0x15b742[_0x1301f5(_0x1bd02e._0x297a19,-_0x1bd02e._0x578e6b,-0x48,-_0x1bd02e._0x1b3f78)][_0x1301f5(-0x34,-0x61,-_0x1bd02e._0x41b5ce,_0x1bd02e._0x55ef12)]('cx',_0x1e4850[_0x10c7f8(_0x1bd02e._0x351edc,_0x1bd02e._0x56c2ac,0x509,_0x1bd02e._0x1ef4dd)]),_0x15b742[_0x1301f5(-0x11,-0x145,-0x1c4,-0x1ec)]['set']('q',_0x53e336),_0x15b742[_0x1301f5(-0x43,-_0x1bd02e._0x578e6b,-0x67,-0x9b)][_0x10c7f8(_0x1bd02e._0xf0b15c,0x42a,_0x1bd02e._0x18ab78,_0x1bd02e._0x372f6e)]('num',String(_0xf564b5)),_0x15b742[_0x10c7f8(0x3e0,_0x1bd02e._0x3dde9c,0x326,_0x1bd02e._0x5454e6)][_0x1301f5(-_0x1bd02e._0x1f6b73,-_0x1bd02e._0xa010f5,-_0x1bd02e._0x497a46,-_0x1bd02e._0x3e9691)](_0x1301f5(0x13,-0x8,-_0x1bd02e._0x57ae04,-0xd1),String(_0x38c191)),_0x15b742[_0x10c7f8(0x3e0,0x2d6,0x37a,_0x1bd02e._0x14006f)][_0x1301f5(-0x3,-_0x1bd02e._0x170ae1,-0x7b,-0x17e)](_0x10c7f8(0x5d4,0x64e,_0x1bd02e._0x10a266,_0x1bd02e._0x13e214),_0x333fdd['safe']?_0x1301f5(-0xac,-0x13e,-0x186,-0x94):_0x10c7f8(0x573,0x634,0x5f2,0x500));_0x333fdd[_0x10c7f8(0x5b7,_0x1bd02e._0x3ee8e6,0x69e,_0x1bd02e._0xd75e5c)]&&(_0x15b742[_0x1301f5(-0x194,-0x145,-0x165,-0x113)][_0x1301f5(0xd1,-0x61,-_0x1bd02e._0x354399,-0x73)]('hl',_0x333fdd['lang']),_0x15b742[_0x1301f5(-0xef,-_0x1bd02e._0x574612,-0x127,-_0x1bd02e._0x295e1f)][_0x10c7f8(_0x1bd02e._0x4801c3,0x47e,0x53d,_0x1bd02e._0x578d72)]('lr','lang_'+_0x333fdd[_0x1301f5(0x1d1,0x92,-_0x1bd02e._0x55ef12,_0x1bd02e._0x2f89a2)]));if(_0x333fdd[_0x10c7f8(_0x1bd02e._0x48b4a3,_0x1bd02e._0x5f5094,_0x1bd02e._0x19ef14,_0x1bd02e._0x5d6b32)])_0x15b742[_0x10c7f8(_0x1bd02e._0x395690,0x355,0x494,0x3a8)][_0x1301f5(-0x88,-_0x1bd02e._0x5e0f77,-0x145,-_0x1bd02e._0x52458c)]('gl',_0x333fdd[_0x10c7f8(_0x1bd02e._0x48b4a3,_0x1bd02e._0x4226ed,0x4ca,_0x1bd02e._0x5c364c)][_0x10c7f8(_0x1bd02e._0x190d55,_0x1bd02e._0x2bed35,0x483,0x644)]());if(_0x333fdd[_0x10c7f8(_0x1bd02e._0x333fab,_0x1bd02e._0x4a5c10,0x487,_0x1bd02e._0x3804e0)]===_0x1301f5(-_0x1bd02e._0x295e1f,-0x17b,-_0x1bd02e._0x317636,-_0x1bd02e._0x1b9062))_0x15b742['searchParams']['set']('searchType','image');if(_0xb8f5be)_0x15b742['searchParams']['set'](_0x1301f5(0x13,_0x1bd02e._0x1499c5,0x39,0x112),_0xb8f5be);const _0x550055=await fetchJson(_0x15b742[_0x10c7f8(_0x1bd02e._0x594d44,0x5d8,_0x1bd02e._0x39ffa8,0x508)](),_0x4c6e12),_0x3d71cd=_0x550055[_0x1301f5(-_0x1bd02e._0x59e9cf,-0x18c,-_0x1bd02e._0x261c30,-_0x1bd02e._0xe0b4b6)]??[];if(_0x3d71cd[_0x1301f5(_0x1bd02e._0x5720ec,-0xc0,-_0x1bd02e._0x133b1a,-0xa0)]===0x0)break;const _0x12adca=_0x631979;for(let _0x1b041a=0x0;_0x1b041a<_0x3d71cd[_0x10c7f8(0x465,0x4e1,0x4bd,_0x1bd02e._0x35272c)];_0x1b041a++){const _0x337408=_0x3d71cd[_0x1b041a];if(!_0x337408)continue;const _0x3c190a=_0x337408[_0x1301f5(-_0x1bd02e._0x103c00,-_0x1bd02e._0x53124f,-_0x1bd02e._0x1d05c5,0xd)]||_0x337408[_0x1301f5(-0x31,_0x1bd02e._0x2a856b,_0x1bd02e._0x11ac25,-_0x1bd02e._0xe8c562)]?.[_0x1301f5(_0x1bd02e._0x3cde4d,-0x1a,0x57,_0x1bd02e._0x51950e)]||'',_0x2eed40=_0x337408[_0x10c7f8(0x5ee,_0x1bd02e._0x59df0d,_0x1bd02e._0xe23ad8,0x4ea)]||_0x337408[_0x10c7f8(0x526,_0x1bd02e._0xdaf5f8,_0x1bd02e._0x327b65,_0x1bd02e._0xa28523)]?.['title']||_0x1301f5(-0x46,-_0x1bd02e._0x11211e,-_0x1bd02e._0x505567,-_0x1bd02e._0x2fd41e),_0x47787d=_0x337408['snippet']||_0x337408[_0x10c7f8(_0x1bd02e._0x2c74e0,0x5f9,0x4a2,0x507)]?.[_0x10c7f8(_0x1bd02e._0x190d51,_0x1bd02e._0x3c68fd,_0x1bd02e._0x1c2052,_0x1bd02e._0x12dc7d)](/<[^>]+>/g,''),_0x9a2a7d=_0x337408[_0x10c7f8(0x412,_0x1bd02e._0x4530aa,0x2cd,_0x1bd02e._0x2f19c7)]?.[_0x10c7f8(_0x1bd02e._0x4a02ec,_0x1bd02e._0x436a3f,0x5bf,0x4ea)]?.[0x0]??{};let _0x1259bc;try{_0x1259bc=new URL(_0x3c190a)[_0x10c7f8(_0x1bd02e._0x1d4f4e,_0x1bd02e._0x44a407,0x68c,0x575)];}catch{_0x1259bc=null;}_0x5480ce['push']({'title':_0x2eed40,'url':normalizeUrl(_0x3c190a),'snippet':_0x47787d??null,'displayUrl':_0x1259bc,'favicon':null,'publishedAt':_0x9a2a7d['article:published_time']||_0x9a2a7d[_0x10c7f8(_0x1bd02e._0x408afe,0x366,_0x1bd02e._0x2cfdf0,_0x1bd02e._0x49cad7)]||null,'source':{'engine':_0x1301f5(_0x1bd02e._0x1fe58e,0x98,0x15e,-_0x1bd02e._0x273d00),'rank':_0x12adca+_0x1b041a+0x1}});}_0x631979+=_0x3d71cd['length'],_0x38c191+=_0x3d71cd['length'];if(_0x3d71cd[_0x1301f5(-0x139,-_0x1bd02e._0x46846d,0x8f,-_0x1bd02e._0x33129f)]<_0xf564b5)break;}function _0x1301f5(_0x5e2e10,_0x44325,_0x26d2d7,_0x593707){return _0x1343ee(_0x44325- -_0x4a8915._0x8584aa,_0x593707,_0x26d2d7-0xa6,_0x593707-0x17e);}return _0x5480ce[_0x10c7f8(0x5b6,_0x1bd02e._0xfc6884,0x6a7,_0x1bd02e._0x1a8539)](0x0,_0xf50c60);}function isGoogleCseEngine(_0x1a59d4){return'googleCseKey'in _0x1a59d4;}function isOllamaEngine(_0x16d27e){const _0x44ade7={_0x349141:0x5c,_0xeaced6:0x38,_0x5e9554:0xe4},_0x3e8f6d={_0x5cec4b:0x16c,_0x5796c4:0xcb,_0xa45ec4:0x299};function _0x6f6968(_0x4f2114,_0x1aa0f8,_0x12258b,_0x563cd3){return _0x357fd3(_0x4f2114-_0x3e8f6d._0x5cec4b,_0x1aa0f8-_0x3e8f6d._0x5796c4,_0x563cd3- -_0x3e8f6d._0xa45ec4,_0x4f2114);}return _0x6f6968(-_0x44ade7._0x349141,-_0x44ade7._0xeaced6,-0xcc,-_0x44ade7._0x5e9554)in _0x16d27e;}function isTavilyEngine(_0x42355c){return'tavilyApiKey'in _0x42355c;}function createWebSearchTool(_0x3a0abe){const _0x11e4f0={_0x3dda2c:0x124,_0x31bbbd:0x23,_0x442c06:0x31d,_0x12ab83:0x3f0,_0x1a5e83:0x1e8,_0x478c06:0x251,_0x1d3737:0x1b1,_0x2b0224:0x20b,_0x6f86f6:0x1c5,_0x46f7bc:0xd9,_0x3d29dc:0x39,_0x440d3c:0x1dd,_0x2280ba:0x9e,_0x1dad33:0x1de,_0x4497ea:0x109,_0x208ce0:0x1d1,_0x351c5e:0xcf,_0x472514:0x67,_0x462841:0xa8,_0x4df773:0x74,_0x1176a1:0x2d9,_0x24e9a0:0xaa,_0x5477df:0x21,_0x321478:0xb3,_0x1d3054:0x136,_0x502d26:0x25f,_0x47d66d:0x209,_0x42b688:0xa6,_0x5a4518:0x103,_0x224105:0x1cc,_0x523cb4:0x4b,_0x450d3b:0x40,_0x10a12a:0x5b,_0x438351:0x110,_0x90edf2:0x2bd,_0xc4aa3b:0x3d4,_0x47537f:0x300,_0x51fe55:0x22b,_0x44da90:0xe3,_0x4fdc83:0x3d,_0x52199c:0x112},_0x48c130={_0x2c9b87:0x559,_0x593d09:0x4d3,_0x5f4b6b:0x3b0,_0x2a598e:0x3e7,_0x4eaa7f:0x406,_0x10c5d5:0x3f7,_0x2e7169:0x2b2,_0x5d954d:0x33e,_0x97b77d:0x1d0,_0x510bf9:0x426,_0x838d6b:0x201,_0x10a504:0x2d5,_0x3292e8:0x22e,_0x1958df:0x261,_0x176e99:0x2f7,_0x4b5764:0x22f,_0x4add30:0x368,_0x31f381:0x489,_0x2f4126:0x310,_0x222a3c:0x548,_0x59f139:0x492,_0x340a78:0x536,_0x12fde2:0x365,_0x38ff83:0x5e5,_0x513d4a:0x49a,_0x2ed3bf:0x297,_0x1a02cd:0x1bc,_0xa73d9:0x3a1,_0x38be31:0x26a,_0x82d3:0x263,_0x4778e5:0x342,_0x5ce5de:0x37a,_0x1393f8:0x38f,_0x3deb60:0x326,_0x5838d6:0x58a,_0x30eba3:0x4e0,_0xf89add:0x24e,_0x5cb773:0xe4,_0x430160:0x230,_0x25dc5e:0x1a5,_0x4d296b:0x295,_0x15b26e:0x57e,_0x355385:0x35d,_0x451dba:0x4be,_0x5d9d0c:0x3ed,_0x3cb04b:0x4c0,_0x19192c:0x1d8,_0x567392:0x16a,_0x18c901:0x25a,_0x17c623:0x282,_0x33b746:0x249,_0x1e1941:0x476,_0x33523a:0x37e,_0x40b363:0x5b3,_0x333217:0x4c1,_0x3e79f4:0x3aa,_0xea19c5:0x4d8,_0x44cf97:0x477,_0x72306c:0x3c4,_0x5c7681:0x3bb,_0x4f5ef7:0x564,_0x29e378:0x3e6,_0x24f5cf:0x32f,_0x4e8259:0x449,_0x10cb78:0x3e4,_0x259799:0x325,_0x3b3e83:0x2ef,_0x42d4ae:0x373,_0x4b3d3a:0x3ec,_0x43133e:0x398,_0x5a5d50:0x2da,_0x502f0e:0x433,_0x4db574:0x31f,_0x337755:0x3c3,_0x2e0eed:0x500,_0x2bf115:0x427,_0xe455d7:0x320},_0x51a809={_0x12172f:0x37,_0x124d84:0x52d,_0x4a2fd2:0x187},_0x104cda={_0x23e39b:0x196},_0x1a261d={_0x224ba9:0x1ac,_0x5f34ef:0xb1,_0x27d5d3:0x164};if(!_0x3a0abe[_0xc7b8a0(_0x11e4f0._0x3dda2c,0xdd,_0x11e4f0._0x31bbbd,-0x113)]||_0x3a0abe[_0x500062(_0x11e4f0._0x442c06,_0x11e4f0._0x12ab83,_0x11e4f0._0x1a5e83,_0x11e4f0._0x478c06)][_0x500062(_0x11e4f0._0x1d3737,0x22e,0x2bb,0x83)]===0x0)throw new Error(_0x500062(_0x11e4f0._0x2b0224,_0x11e4f0._0x6f86f6,0x24e,0x21c));const _0x4b65aa=_0x3a0abe['name']??_0xc7b8a0(-_0x11e4f0._0x46f7bc,_0x11e4f0._0x3d29dc,0x62,-0x61);function _0xc7b8a0(_0x49e0c8,_0x4e1531,_0x1e6d27,_0x2fd258){return _0x357fd3(_0x49e0c8-_0x1a261d._0x224ba9,_0x4e1531-_0x1a261d._0x5f34ef,_0x1e6d27- -_0x1a261d._0x27d5d3,_0x4e1531);}function _0x500062(_0x242525,_0x88a95f,_0x4469b0,_0x5cdaec){return _0x357fd3(_0x242525-0x85,_0x88a95f-0x8,_0x242525-_0x104cda._0x23e39b,_0x5cdaec);}return defineTool({'name':_0x4b65aa,'description':'Search\x20the\x20web\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x500062(_0x11e4f0._0x440d3c,_0x11e4f0._0x2280ba,_0x11e4f0._0x2b0224,_0x11e4f0._0x1dad33),'properties':{'description':{'type':_0xc7b8a0(-_0x11e4f0._0x4497ea,-_0x11e4f0._0x208ce0,-_0x11e4f0._0x351c5e,_0x11e4f0._0x472514)},'query':{'type':_0xc7b8a0(-0x198,-_0x11e4f0._0x462841,-0xcf,-_0x11e4f0._0x4df773)},'count':{'type':_0x500062(_0x11e4f0._0x1176a1,0x271,0x1aa,0x280)},'offset':{'type':_0xc7b8a0(-0x89,-_0x11e4f0._0x24e9a0,-_0x11e4f0._0x5477df,_0x11e4f0._0x321478)},'domains':{'type':_0x500062(_0x11e4f0._0x1d3054,_0x11e4f0._0x502d26,_0x11e4f0._0x47d66d,_0x11e4f0._0x42b688),'items':{'type':_0xc7b8a0(-_0x11e4f0._0x5a4518,-_0x11e4f0._0x224105,-_0x11e4f0._0x351c5e,0x5e)}},'recencyDays':{'type':'number'},'lang':{'type':_0xc7b8a0(_0x11e4f0._0x523cb4,-_0x11e4f0._0x450d3b,-_0x11e4f0._0x351c5e,-0x133)},'region':{'type':_0xc7b8a0(-_0x11e4f0._0x10a12a,0x0,-0xcf,-_0x11e4f0._0x438351)},'safe':{'type':_0x500062(_0x11e4f0._0x90edf2,_0x11e4f0._0xc4aa3b,_0x11e4f0._0x47537f,0x31c)},'type':{'type':_0x500062(_0x11e4f0._0x51fe55,0x157,0x2a9,_0x11e4f0._0x44da90)},'hydrateMeta':{'type':_0xc7b8a0(0xbd,-0x34,-_0x11e4f0._0x4fdc83,-_0x11e4f0._0x52199c)}},'required':['query']},async *'execute'(_0x51d827,_0x26ff06){const _0x3c83c2={_0x1ac1eb:0x68},_0x49573d={_0x3a3ca0:0x559,_0x12dcb4:0x4e8,_0x544c53:0x112,_0x332af5:0x146,_0x496ee6:0x302,_0x204c4f:0x261},_0x546cf9={_0x361e91:0x1e5,_0x5f2b4c:0x138},_0x589dd4={_0xb0d649:0xfd,_0x46afac:0xd6},_0x4873b3=_0x51d827[_0x156f75(_0x48c130._0x2c9b87,0x57c,_0x48c130._0x593d09,0x531)]['trim']();if(!_0x4873b3)throw new ToolExecutionError(_0x1acb22(_0x48c130._0x5f4b6b,0x421,_0x48c130._0x2a598e,_0x48c130._0x4eaa7f));const _0x506219={'query':_0x4873b3,'count':Math[_0x1acb22(0x16f,0x39e,_0x48c130._0x10c5d5,_0x48c130._0x2e7169)](0x1,Math['min'](0x32,Math[_0x1acb22(_0x48c130._0x5d954d,_0x48c130._0x97b77d,0x214,0x26c)](_0x51d827['count']??0xa))),'offset':Math[_0x156f75(0x4e1,0x45f,_0x48c130._0x510bf9,0x3a2)](0x0,Math[_0x1acb22(_0x48c130._0x838d6b,_0x48c130._0x10a504,_0x48c130._0x3292e8,0x26c)](_0x51d827[_0x1acb22(_0x48c130._0x1958df,_0x48c130._0x176e99,0x217,_0x48c130._0x4b5764)]??0x0)),'domains':_0x51d827['domains']??[],'recencyDays':Math[_0x156f75(_0x48c130._0x4add30,_0x48c130._0x31f381,_0x48c130._0x2f4126,0x3a2)](0x0,Math['trunc'](_0x51d827['recencyDays']??0x0)),'lang':_0x51d827[_0x156f75(_0x48c130._0x222a3c,_0x48c130._0x59f139,0x43f,_0x48c130._0x340a78)]??'en','region':_0x51d827[_0x1acb22(0x3b3,_0x48c130._0x12fde2,_0x48c130._0x38ff83,_0x48c130._0x513d4a)]??'','safe':_0x51d827['safe']??!![],'type':normalizeType(_0x51d827['type']),'hydrateMeta':_0x51d827['hydrateMeta']??![]};let _0x4dfae5=[];function _0x156f75(_0x45c895,_0x4ccd60,_0x64f4ba,_0x1cb416){return _0xc7b8a0(_0x45c895-_0x51a809._0x12172f,_0x64f4ba,_0x1cb416-_0x51a809._0x124d84,_0x1cb416-_0x51a809._0x4a2fd2);}let _0xae761f=_0x1acb22(_0x48c130._0x2ed3bf,0x310,_0x48c130._0x1a02cd,0x221);for(const _0x1330bc of _0x3a0abe[_0x1acb22(0x4ee,0x330,_0x48c130._0xa73d9,0x460)]){try{if(isGoogleCseEngine(_0x1330bc))_0x4dfae5=await searchGoogleCse(_0x1330bc,_0x506219,_0x26ff06[_0x156f75(0x2ff,0x334,_0x48c130._0x38be31,0x38f)]),_0xae761f='google-cse';else{if(isOllamaEngine(_0x1330bc)){const _0x38093b=await searchOllama(_0x1330bc,_0x506219,_0x26ff06['signal']);_0x4dfae5=_0x38093b['items'],_0xae761f=_0x38093b[_0x1acb22(_0x48c130._0x82d3,0x43f,_0x48c130._0x4778e5,0x348)];}else{if(isTavilyEngine(_0x1330bc)){const _0x2bb2f0=await searchTavily(_0x1330bc,_0x506219,_0x26ff06[_0x156f75(0x415,0x4c9,_0x48c130._0x5ce5de,_0x48c130._0x1393f8)]);_0x4dfae5=_0x2bb2f0[_0x156f75(0x3fa,_0x48c130._0x3deb60,0x316,0x318)],_0xae761f=_0x2bb2f0['engine'];}}}if(_0x4dfae5['length']>0x0)break;}catch(_0x5cca3b){if(_0x1330bc===_0x3a0abe[_0x1acb22(_0x48c130._0x5838d6,0x514,_0x48c130._0x30eba3,0x460)][_0x3a0abe['engines']['length']-0x1])throw _0x5cca3b;}}_0x506219[_0x1acb22(_0x48c130._0xf89add,_0x48c130._0x5cb773,0x16c,_0x48c130._0x430160)]&&_0x4dfae5[_0x1acb22(_0x48c130._0x25dc5e,0x273,_0x48c130._0x4d296b,0x2f4)]>0x0&&(_0x4dfae5=await hydrateResults(_0x4dfae5,_0x506219[_0x1acb22(_0x48c130._0x15b26e,0x52c,_0x48c130._0x355385,0x446)],_0x26ff06[_0x156f75(0x2e0,0x402,_0x48c130._0x451dba,_0x48c130._0x1393f8)]));const _0xc92cb8=new Set();_0x4dfae5=_0x4dfae5[_0x156f75(0x457,0x3ee,_0x48c130._0x5d9d0c,_0x48c130._0x3cb04b)](_0x1fa341=>{const _0x55f101=_0x1fa341[_0x14bd1b(0x403,0x4ed,_0x49573d._0x3a3ca0,_0x49573d._0x12dcb4)]['toLowerCase']();if(!_0x55f101||_0xc92cb8[_0xb2e731(0x1b,_0x49573d._0x544c53,_0x49573d._0x332af5,0xbe)](_0x55f101))return![];function _0xb2e731(_0x4d1879,_0x5b102b,_0x46046a,_0x30d2fe){return _0x1acb22(_0x4d1879-0x84,_0x5b102b-_0x589dd4._0xb0d649,_0x4d1879,_0x46046a- -_0x589dd4._0x46afac);}_0xc92cb8[_0xb2e731(0x2e6,_0x49573d._0x496ee6,0x2e4,_0x49573d._0x204c4f)](_0x55f101);function _0x14bd1b(_0x1082a4,_0x380bed,_0x59be64,_0x276d87){return _0x156f75(_0x1082a4-_0x546cf9._0x361e91,_0x380bed-_0x546cf9._0x5f2b4c,_0x59be64,_0x276d87-0x62);}return!![];}),_0x4dfae5=_0x4dfae5[_0x1acb22(_0x48c130._0x19192c,0x121,_0x48c130._0x567392,_0x48c130._0x18c901)]((_0x415f58,_0x43d180)=>({..._0x415f58,'source':{..._0x415f58[_0x156f75(0x5e1,0x430,0x4fb,0x4a4)],'rank':_0x43d180+0x1}}));const _0x3a3bf7={};if(_0x506219[_0x1acb22(0x2ab,0x204,0x15c,_0x48c130._0x17c623)]['length']>0x0)_0x3a3bf7['domains']=_0x506219[_0x1acb22(_0x48c130._0x33b746,0x1d1,0x3a7,_0x48c130._0x17c623)];if(_0x506219[_0x1acb22(0x270,0x2bf,_0x48c130._0x1e1941,0x3aa)]>0x0)_0x3a3bf7[_0x156f75(_0x48c130._0x33523a,0x48f,_0x48c130._0x40b363,0x49a)]=_0x506219[_0x1acb22(0x364,_0x48c130._0x333217,0x2fa,_0x48c130._0x3e79f4)];if(_0x506219['lang']!=='en')_0x3a3bf7['lang']=_0x506219[_0x1acb22(0x3e5,_0x48c130._0xea19c5,0x587,0x446)];if(_0x506219[_0x156f75(_0x48c130._0x44cf97,0x634,0x558,_0x48c130._0x5838d6)])_0x3a3bf7[_0x1acb22(_0x48c130._0x72306c,0x3f6,0x353,0x49a)]=_0x506219[_0x1acb22(_0x48c130._0x5c7681,0x5a9,_0x48c130._0x4f5ef7,0x49a)];function _0x1acb22(_0x338ca5,_0x2b5823,_0x20d3b8,_0x1e56aa){return _0x500062(_0x1e56aa-0x143,_0x2b5823-0x122,_0x20d3b8-_0x3c83c2._0x1ac1eb,_0x20d3b8);}return yield createToolOutput(formatResults(_0x4dfae5),{'engine':_0xae761f,'count':_0x4dfae5[_0x156f75(_0x48c130._0x29e378,_0x48c130._0x24f5cf,_0x48c130._0x4e8259,_0x48c130._0x10cb78)],'items':_0x4dfae5,'query':_0x506219['query'],...Object[_0x156f75(0x3dc,_0x48c130._0x259799,_0x48c130._0x3b3e83,0x351)](_0x3a3bf7)[_0x156f75(_0x48c130._0x42d4ae,_0x48c130._0x4b3d3a,_0x48c130._0x43133e,0x3e4)]>0x0?{'appliedFilters':_0x3a3bf7}:{},'offset':_0x506219[_0x156f75(0x3c6,_0x48c130._0x5a5d50,_0x48c130._0x502f0e,_0x48c130._0x4db574)],'totalRequested':_0x506219[_0x156f75(0x417,0x3cb,_0x48c130._0x337755,_0x48c130._0x2e0eed)],'hydrated':_0x506219[_0x156f75(0x368,_0x48c130._0x2bf115,0x361,_0x48c130._0xe455d7)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|
|
1
|
+
(function(_0x17dff1,_0x4facdb){const _0x4723a5={_0x26c090:0x3b,_0x4ac5cf:0x82,_0x24f21f:0x56c,_0x42dbb2:0x29,_0x31bcaf:0x1b4,_0x2e2486:0x181,_0x4d0697:0xba,_0x6a831e:0x17,_0x304640:0x594,_0x10ed1d:0x4cb,_0x56f346:0x36f,_0x2029fc:0x1d6,_0x4214f2:0x157,_0x4c15d8:0x651,_0x20bc84:0x5fd,_0x141eef:0x23e,_0x2655c0:0x3ba,_0x56deb0:0x388},_0x434bf4={_0x1d1734:0x15b};function _0x2203f5(_0x592d38,_0x15be39,_0x281046,_0x63961d){return _0x1e3a(_0x63961d-_0x434bf4._0x1d1734,_0x281046);}function _0x575c50(_0xfa7213,_0x3ee0c9,_0x5d60dc,_0x12825e){return _0x1e3a(_0x5d60dc- -0x38c,_0x3ee0c9);}const _0x5ea843=_0x17dff1();while(!![]){try{const _0x16bda3=parseInt(_0x575c50(_0x4723a5._0x26c090,0xf7,_0x4723a5._0x4ac5cf,0x11c))/0x1+-parseInt(_0x2203f5(0x5f6,_0x4723a5._0x24f21f,0x6bf,0x581))/0x2+-parseInt(_0x575c50(0x17c,_0x4723a5._0x42dbb2,0x28,0x62))/0x3*(-parseInt(_0x575c50(_0x4723a5._0x31bcaf,_0x4723a5._0x2e2486,_0x4723a5._0x4d0697,_0x4723a5._0x6a831e))/0x4)+parseInt(_0x2203f5(_0x4723a5._0x304640,_0x4723a5._0x10ed1d,_0x4723a5._0x56f346,0x4a4))/0x5+parseInt(_0x575c50(-_0x4723a5._0x2029fc,-0xc2,-0x1a9,-_0x4723a5._0x4214f2))/0x6+parseInt(_0x2203f5(0x53d,_0x4723a5._0x4c15d8,_0x4723a5._0x20bc84,0x5ba))/0x7+-parseInt(_0x2203f5(0x4a6,0x539,0x49d,0x41a))/0x8*(parseInt(_0x2203f5(_0x4723a5._0x141eef,0x496,_0x4723a5._0x2655c0,_0x4723a5._0x56deb0))/0x9);if(_0x16bda3===_0x4facdb)break;else _0x5ea843['push'](_0x5ea843['shift']());}catch(_0x2cdfb8){_0x5ea843['push'](_0x5ea843['shift']());}}}(_0x3422,0x675c1));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WJMBJOVF.js';import{getTextFromMessage}from'../chunk-SEP4YYY3.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0xf87fb7 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x567203(0x2ba,0x24a,0x241,0x34c),'.tsx':_0x567203(-0x124,0xe3,0x2c,0x4d),'.js':'javascript','.jsx':_0x567203(0x1c9,0x2b2,0x239,0x304),'.mjs':_0x567203(-0x3a,0x17b,0xdb,0xc1),'.cjs':_0x29bb69(-0x108,-0x59,-0xcb,-0x6),'.mts':'typescript','.cts':_0x567203(0x1b2,0x376,0x241,0x354),'.json':_0x567203(-0xb5,0x42,0x27,0x83),'.jsonc':_0x567203(-0x82,0xea,-0x2f,-0x73)};function getLanguageId(_0x111567){const _0x24e5f3={_0x1c89d4:0x6a9,_0x4ba926:0x424,_0x30961a:0x3f3},_0x169be1={_0x1483af:0x5b0};function _0x10bcf4(_0xfe1af0,_0x5d2407,_0x13801f,_0x497a64){return _0x567203(_0x5d2407,_0x5d2407-0x19e,_0x13801f-0x22d,_0x497a64-0x16e);}function _0x57f71d(_0x13a218,_0xd6a8a3,_0x82b392,_0x40a6dc){return _0x567203(_0x40a6dc,_0xd6a8a3-0xdf,_0x82b392-_0x169be1._0x1483af,_0x40a6dc-0x4b);}return EXTENSION_TO_LANGUAGE[_0xf87fb7[_0x57f71d(0x654,0x681,_0x24e5f3._0x1c89d4,0x6c8)](_0x111567)[_0x10bcf4(_0x24e5f3._0x4ba926,_0x24e5f3._0x30961a,0x312,_0x24e5f3._0x4ba926)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x575336){const _0x512691={_0x51958f:0xa5,_0x54c88f:0x62},_0xda4f62={_0x14fbc6:0x80};function _0xc858d4(_0x41d6f6,_0x55114d,_0x31480e,_0x41a8d8){return _0x567203(_0x41d6f6,_0x55114d-_0xda4f62._0x14fbc6,_0x55114d-0x5e,_0x41a8d8-0x2c);}return pathToFileURL(_0x575336)[_0xc858d4(0x53,0x4c,-_0x512691._0x51958f,_0x512691._0x54c88f)]();}function textDocumentPosition(_0x4a8f5f){const _0x67452e={_0x2596f3:0x571,_0x1e4cff:0x51c,_0x51b534:0x2b,_0x13bf5d:0x3,_0x32a8a7:0x1d,_0x2bcb21:0x1cd,_0x19744e:0x18d},_0x38136a={_0x2404df:0x1a},_0x1b0376={_0x41a959:0xbb,_0x53b2ab:0x472};function _0x1fe8d0(_0x338224,_0x29d82f,_0x169a9a,_0x491582){return _0x567203(_0x169a9a,_0x29d82f-_0x1b0376._0x41a959,_0x338224-_0x1b0376._0x53b2ab,_0x491582-0x68);}function _0x1fd1f9(_0x2d16af,_0x623e58,_0x5dad89,_0x4f9de6){return _0x567203(_0x2d16af,_0x623e58-_0x38136a._0x2404df,_0x4f9de6- -0xd6,_0x4f9de6-0x1c8);}return{'textDocument':{'uri':uriForPath(_0x4a8f5f[_0x1fe8d0(_0x67452e._0x2596f3,0x44c,_0x67452e._0x1e4cff,0x458)])},'position':{'line':_0x4a8f5f[_0x1fd1f9(_0x67452e._0x51b534,-_0x67452e._0x13bf5d,_0x67452e._0x32a8a7,0x44)],'character':_0x4a8f5f[_0x1fd1f9(_0x67452e._0x2bcb21,0x9f,0x20a,_0x67452e._0x19744e)]}};}function normalizeLocations(_0x3efc72){if(!_0x3efc72)return[];return Array['isArray'](_0x3efc72)?_0x3efc72:[_0x3efc72];}async function createLspClient(_0x1fcf3c){const _0x4933db={_0x4a16e8:0x20d,_0x192527:0x32e,_0x283b6f:0x276,_0x12abbd:0x1b7,_0x402a2a:0x1d2,_0x256283:0x3d1,_0xdc4a45:0x421,_0x4c86ec:0x36a,_0x57d016:0x1ac,_0x359fc0:0x9,_0x15fa53:0x6e,_0x45a74e:0xae,_0x511c9c:0x7e,_0x5b4707:0x1d,_0x564930:0x4c,_0x3dd0f7:0x2c2,_0x1caf4b:0x1f3,_0xca1cd3:0x4a,_0x1e3e05:0x78,_0x178d52:0xe,_0x5d5b9c:0x1f,_0x29c07d:0xa6,_0x23bf06:0x6d,_0x4cf6f6:0x114,_0x59c1e8:0xc9,_0x2783c3:0x45d,_0x5b915c:0x8c,_0xd1b6f0:0x50,_0x183933:0x373,_0x56173b:0x208,_0x34f56c:0x25c,_0x1b8a51:0x14e,_0x4090be:0x26,_0x48c66f:0x16c,_0x517022:0x2fc,_0x5d7b20:0x1db,_0x278574:0xc0,_0x1ff308:0x20b,_0xf6570f:0x157,_0x2594d8:0x257,_0x4bcfcf:0x263,_0x2c162f:0x12b},_0x33f467={_0x5b3e2a:0x135,_0x586e50:0x260,_0x2aaba4:0x428,_0x2b1497:0x179,_0x415f4b:0x184,_0x37fc86:0x238},_0x48a059={_0x112885:0x1ce,_0x2d9591:0x20e},_0x5f05aa={_0x304750:0x120,_0x5d4c0f:0x1c3,_0x118560:0x5da,_0x2c5bda:0x57b,_0x5d90ee:0x4ed},_0x23d468={_0x1c59fa:0x59,_0x38a6bd:0x115,_0x472923:0xb5,_0xbe8875:0x2e3,_0xe67cd6:0x439},_0x507b1c={_0x115b57:0x1ee,_0x1ef56d:0x268,_0x5a9d37:0x501},_0x1983e9={_0x5caf3a:0xcb},_0x39476e={_0x449773:0x165,_0x3c4294:0x14,_0x929eec:0x53},_0x455410={_0x5ec5f1:0x74,_0x222842:0x7d},_0x3d0a03={_0x382da4:0x2d2,_0x949f0e:0x7f},_0x33514b={_0x26d021:0xbe},_0x21b72c={_0x3d8430:0x28c,_0x203311:0x127,_0x308d19:0x23d},_0x198796={_0x249812:0xb8,_0x53157a:0x1},_0x5a4aa7={_0x28bdad:0x77,_0x22a7a6:0x189},_0x58bf14={_0x278c80:0x2e1,_0x3fd8fd:0x2e9,_0x285762:0x360},_0x41fe16={_0x3b95a4:0x168,_0x192fb0:0x2be},_0x38c563={_0x3c3346:0xc,_0x204514:0x10c},_0x158af1={_0x4b1b78:0x1fe,_0x43f22f:0x15f,_0x3600d7:0x1bf,_0x51b8bc:0x21c,_0x3ed81f:0x30e,_0x4c1fd3:0x242},_0x449c45={_0x55da20:0xc0,_0x381ce4:0x2c7},_0x4b71d3={_0x370f1d:0x675,_0x25385a:0x6b9,_0x419c58:0x3b9,_0x4582c6:0x187,_0x2e7beb:0x2ca},_0x2f4337={_0x52d091:0x3f,_0x4f54df:0x2a2},_0x409e07={_0x375e22:0x1ce,_0x251211:0x126,_0x7d7a87:0x238,_0x5e2255:0x56},_0x3e0172={_0x9f724c:0x1a2,_0x192175:0x50b,_0x4783fe:0x3d5,_0x32d912:0x51d},_0x362120={_0x175f0d:0xe7},_0xd34b47={_0x2635b1:0x4,_0x13029a:0x7c},_0x34c8e3={_0x5d8a8e:0x2e3,_0x316409:0x2d7,_0x56c060:0x271,_0x306023:0x335,_0x303094:0x346},_0x46ffd6={_0x598e89:0x1da,_0xcfe080:0x5b,_0x318cee:0xb1},_0x3264a8={_0x373de4:0x379,_0x41dccd:0x115},_0x16ff80={_0x263e1a:0xc0},_0x319603={_0x5308e0:0x1d4},_0x4f53a6=_0x1fcf3c[_0x41cf89(_0x4933db._0x4a16e8,0x120,0x10e,0x13d)][_0x2eae83(0x218,_0x4933db._0x192527,_0x4933db._0x283b6f,0x374)][_0x2eae83(_0x4933db._0x12abbd,0x235,_0x4933db._0x402a2a,0x228)],_0x4ed3a7=_0x1fcf3c[_0x2eae83(_0x4933db._0x256283,0x4eb,_0x4933db._0xdc4a45,_0x4933db._0x4c86ec)][_0x41cf89(-_0x4933db._0x57d016,-0xc8,-_0x4933db._0x359fc0,-_0x4933db._0x15fa53)][_0x41cf89(-0x52,_0x4933db._0x45a74e,-0x42,_0x4933db._0x511c9c)];if(!_0x4f53a6||!_0x4ed3a7)throw new Error(_0x41cf89(0x36,_0x4933db._0x5b4707,_0x4933db._0x564930,-0x80));const _0x36ff29=createMessageConnection(new StreamMessageReader(_0x4f53a6),new StreamMessageWriter(_0x4ed3a7)),_0x4b3f0a=new Map();function _0x41cf89(_0x472541,_0x26e6b3,_0x21d9a2,_0x4658cd){return _0x567203(_0x472541,_0x26e6b3-_0x319603._0x5308e0,_0x4658cd- -0xfd,_0x4658cd-0x62);}const _0x1b2b48=new Map();let _0x360b0b=![];function _0x2eae83(_0x573b70,_0x5a58eb,_0x373031,_0x4c2816){return _0x29bb69(_0x573b70-0x16,_0x373031-0x31b,_0x5a58eb,_0x4c2816-_0x16ff80._0x263e1a);}_0x36ff29[_0x2eae83(_0x4933db._0x3dd0f7,0xb6,_0x4933db._0x1caf4b,0xd4)](_0x41cf89(-_0x4933db._0xca1cd3,_0x4933db._0x1e3e05,0x20e,0xdc),_0x5793bf=>{const _0x2b84f6={_0x4b4534:0x19d,_0x5233f6:0x19e};_0x4b3f0a[_0x1147ae(-0x2,-_0x46ffd6._0x598e89,-0xc8,-0x213)](_0x5793bf['uri'],_0x5793bf[_0x1147ae(-0x1d7,_0x46ffd6._0xcfe080,-_0x46ffd6._0x318cee,-0x94)]);const _0x3a4129=_0x1b2b48['get'](_0x5793bf['uri']);function _0x558e53(_0x786549,_0x2e18e0,_0xb155a1,_0x11664b){return _0x2eae83(_0x786549-0x19d,_0x11664b,_0x2e18e0-_0x2b84f6._0x4b4534,_0x11664b-_0x2b84f6._0x5233f6);}if(!_0x3a4129)return;_0x1b2b48['delete'](_0x5793bf['uri']);function _0x1147ae(_0x2d2f32,_0x139ed7,_0x508345,_0x41ec30){return _0x2eae83(_0x2d2f32-0x1db,_0x2d2f32,_0x508345- -_0x3264a8._0x373de4,_0x41ec30-_0x3264a8._0x41dccd);}for(const _0x19100b of _0x3a4129)_0x19100b();}),_0x36ff29[_0x41cf89(_0x4933db._0x178d52,_0x4933db._0x5d5b9c,0x24,-_0x4933db._0x29c07d)]();const _0x52e140=await _0x36ff29[_0x41cf89(-_0x4933db._0x23bf06,-_0x4933db._0x4cf6f6,-0x167,-_0x4933db._0x59c1e8)]('initialize',{'processId':process[_0x2eae83(_0x4933db._0x2783c3,0x282,0x3d0,0x3b5)],'rootUri':uriForPath(_0x1fcf3c[_0x41cf89(0xca,0x18a,-_0x4933db._0x5b915c,_0x4933db._0xd1b6f0)]),'workspaceFolders':[{'uri':uriForPath(_0x1fcf3c[_0x2eae83(0x20e,_0x4933db._0x183933,0x334,_0x4933db._0x56173b)]),'name':_0x1fcf3c['server']['id']}],'initializationOptions':_0x1fcf3c[_0x41cf89(_0x4933db._0x34f56c,0x144,0x13,0x13d)][_0x41cf89(_0x4933db._0x1b8a51,-_0x4933db._0x4090be,0x1b4,0xd6)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown',_0x2eae83(_0x4933db._0x48c66f,_0x4933db._0x517022,0x1bb,0x27a)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x36ff29[_0x2eae83(_0x4933db._0x5d7b20,_0x4933db._0x278574,_0x4933db._0x1ff308,_0x4933db._0xf6570f)]('initialized',{});const _0x21dee3={'serverId':_0x1fcf3c['server']['id'],'root':_0x1fcf3c['root'],'connection':_0x36ff29,'diagnostics':_0x4b3f0a,'capabilities':_0x52e140[_0x41cf89(-_0x4933db._0x2594d8,-_0x4933db._0x4bcfcf,-0x27b,-_0x4933db._0x2c162f)]??{},'notify':{async 'open'({path:_0x43dbb0}){const _0x366e72={_0x1139c8:0x1d,_0x4be394:0x10b},_0x2b7c12=await readFile(_0x43dbb0,_0x20f505(_0x34c8e3._0x5d8a8e,0x1ef,0x406,_0x34c8e3._0x316409));function _0x20f505(_0x26971b,_0x5ec3ca,_0x192b36,_0x39fc30){return _0x41cf89(_0x5ec3ca,_0x5ec3ca-0x13c,_0x192b36-0xc1,_0x26971b-0x34a);}function _0x578df1(_0x4d29d3,_0x442f10,_0x4a50b7,_0x46322a){return _0x41cf89(_0x46322a,_0x442f10-_0x366e72._0x1139c8,_0x4a50b7-_0x366e72._0x4be394,_0x4a50b7-0x1a8);}_0x36ff29[_0x20f505(_0x34c8e3._0x56c060,0x3c1,_0x34c8e3._0x306023,0x388)](_0x20f505(0x230,0x301,0x22d,_0x34c8e3._0x303094),{'textDocument':{'uri':uriForPath(_0x43dbb0),'languageId':getLanguageId(_0x43dbb0)??'plaintext','version':0x1,'text':_0x2b7c12}});},async 'change'({path:_0x29773a,version:_0x366c8a}){const _0x55a5a2=await readFile(_0x29773a,_0x2eca0c(0x349,_0x3e0172._0x9f724c,0x2f9,0x412));function _0x2eca0c(_0x5bc28b,_0x184ccd,_0x30be3b,_0x5f354f){return _0x2eae83(_0x5bc28b-_0xd34b47._0x2635b1,_0x5bc28b,_0x30be3b-_0xd34b47._0x13029a,_0x5f354f-0x1c1);}function _0x40aaea(_0x30cc1f,_0x34d2b3,_0x3d2326,_0x462543){return _0x41cf89(_0x30cc1f,_0x34d2b3-0x131,_0x3d2326-_0x362120._0x175f0d,_0x34d2b3-0x3a4);}_0x36ff29['sendNotification'](_0x40aaea(0x56f,_0x3e0172._0x192175,_0x3e0172._0x4783fe,_0x3e0172._0x32d912),{'textDocument':{'uri':uriForPath(_0x29773a),'version':_0x366c8a},'contentChanges':[{'text':_0x55a5a2}]});},async 'close'({path:_0x2eb5cd}){const _0x1bcde8={_0x5a0e39:0x331,_0x4203ef:0x1a};function _0x553285(_0x51d2c8,_0xa92e80,_0x726cb,_0x31513c){return _0x2eae83(_0x51d2c8-0xe3,_0xa92e80,_0x31513c- -0x201,_0x31513c-0x25);}function _0x1d7b62(_0x4dac70,_0x27d853,_0x5b50b5,_0x49b36f){return _0x2eae83(_0x4dac70-0x4d,_0x4dac70,_0x5b50b5- -_0x1bcde8._0x5a0e39,_0x49b36f-_0x1bcde8._0x4203ef);}_0x36ff29[_0x1d7b62(-_0x409e07._0x375e22,-0x191,-_0x409e07._0x251211,-_0x409e07._0x7d7a87)](_0x553285(0x1bb,_0x409e07._0x5e2255,0x74,0x115),{'textDocument':{'uri':uriForPath(_0x2eb5cd)}});}},'request':{async 'definition'(_0x4ea651){const _0x58fc4c={_0x2ffc9b:0x35d,_0x5d9c73:0x116};function _0xafb819(_0x9fb873,_0x517474,_0xfd821a,_0x1deaec){return _0x41cf89(_0x9fb873,_0x517474-_0x2f4337._0x52d091,_0xfd821a-0x17f,_0x1deaec-_0x2f4337._0x4f54df);}function _0x5c99e6(_0x4bbdcb,_0x5b0c06,_0x41d150,_0x2fd5a2){return _0x2eae83(_0x4bbdcb-0x6f,_0x2fd5a2,_0x41d150-_0x58fc4c._0x2ffc9b,_0x2fd5a2-_0x58fc4c._0x5d9c73);}return normalizeLocations(await _0x36ff29[_0x5c99e6(_0x4b71d3._0x370f1d,0x6a8,0x578,_0x4b71d3._0x25385a)](_0xafb819(_0x4b71d3._0x419c58,0x31b,_0x4b71d3._0x4582c6,_0x4b71d3._0x2e7beb),textDocumentPosition(_0x4ea651)));},async 'references'(_0x2b0438){const _0x2ccc50={_0x92b42:0x1de,_0x342b90:0x7e};function _0x2c1143(_0x3520e0,_0x31d686,_0x4b0571,_0x1e1ef8){return _0x2eae83(_0x3520e0-_0x2ccc50._0x92b42,_0x31d686,_0x3520e0- -_0x2ccc50._0x342b90,_0x1e1ef8-0xae);}function _0x40ece6(_0xae7943,_0x1d21c3,_0x1f21dd,_0x3ef2f5){return _0x41cf89(_0x3ef2f5,_0x1d21c3-0xf3,_0x1f21dd-_0x449c45._0x55da20,_0xae7943-_0x449c45._0x381ce4);}return normalizeLocations(await _0x36ff29[_0x40ece6(_0x158af1._0x4b1b78,_0x158af1._0x43f22f,_0x158af1._0x3600d7,0x2e9)](_0x2c1143(_0x158af1._0x51b8bc,_0x158af1._0x3ed81f,0x33e,_0x158af1._0x4c1fd3),{...textDocumentPosition(_0x2b0438),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x4f4492){function _0x96acfd(_0x413088,_0x1a9218,_0x94389f,_0xd92f95){return _0x2eae83(_0x413088-0xf6,_0x1a9218,_0xd92f95-_0x38c563._0x3c3346,_0xd92f95-_0x38c563._0x204514);}function _0x20df02(_0x5192ed,_0x178261,_0x3407c4,_0x202a0e){return _0x41cf89(_0x5192ed,_0x178261-_0x41fe16._0x3b95a4,_0x3407c4-0x1c6,_0x178261-_0x41fe16._0x192fb0);}return await _0x36ff29[_0x96acfd(_0x58bf14._0x278c80,0x27e,0x16f,0x227)](_0x20df02(0x206,_0x58bf14._0x3fd8fd,0x364,_0x58bf14._0x285762),textDocumentPosition(_0x4f4492))??null;},async 'documentSymbol'(_0x547677){const _0x1c8399={_0x47f3fc:0xb3};function _0x1eba5f(_0x19d060,_0x4bf033,_0x4864c0,_0x4b8f5f){return _0x2eae83(_0x19d060-_0x1c8399._0x47f3fc,_0x4bf033,_0x19d060- -0x3ba,_0x4b8f5f-0x9f);}return await _0x36ff29[_0x1eba5f(-0x19f,-0x27e,-0xc9,-0x18d)]('textDocument/documentSymbol',{'textDocument':{'uri':uriForPath(_0x547677)}})??[];},async 'workspaceSymbol'(_0x2928e6){return await _0x36ff29['sendRequest']('workspace/symbol',{'query':_0x2928e6})??[];},async 'implementation'(_0x189139){function _0x3f3888(_0x46aa3f,_0x26c197,_0xcade2c,_0x4cbd83){return _0x2eae83(_0x46aa3f-0xd,_0xcade2c,_0x26c197-_0x5a4aa7._0x28bdad,_0x4cbd83-_0x5a4aa7._0x22a7a6);}function _0x207716(_0x34019c,_0x20921f,_0x2335ce,_0x3767d9){return _0x2eae83(_0x34019c-_0x198796._0x249812,_0x3767d9,_0x20921f-0x2a,_0x3767d9-_0x198796._0x53157a);}return normalizeLocations(await _0x36ff29[_0x3f3888(_0x21b72c._0x3d8430,0x292,0x302,0x298)](_0x3f3888(_0x21b72c._0x203311,_0x21b72c._0x308d19,0x221,0x232),textDocumentPosition(_0x189139)));},async 'prepareCallHierarchy'(_0x2ad81a){const _0x5837a6={_0x4490cf:0x41};function _0x191dd7(_0x26e2e0,_0x1f90ff,_0x4d8c4c,_0x7f33f5){return _0x41cf89(_0x7f33f5,_0x1f90ff-0xe0,_0x4d8c4c-0x1d4,_0x4d8c4c-_0x5837a6._0x4490cf);}return await _0x36ff29['sendRequest'](_0x191dd7(0x98,0xc,-0x7f,_0x33514b._0x26d021),textDocumentPosition(_0x2ad81a))??[];},async 'incomingCalls'(_0x33eb15){function _0x96c815(_0x2acfd6,_0xf9d682,_0x5a642d,_0x23d5c5){return _0x2eae83(_0x2acfd6-0x5a,_0x5a642d,_0x23d5c5- -_0x3d0a03._0x382da4,_0x23d5c5-_0x3d0a03._0x949f0e);}function _0x47fefb(_0x5c9d9c,_0x274935,_0x460687,_0x12cd70){return _0x41cf89(_0x460687,_0x274935-0x1a5,_0x460687-_0x455410._0x5ec5f1,_0x274935-_0x455410._0x222842);}return await _0x36ff29[_0x47fefb(-_0x39476e._0x449773,-0x4c,0xbc,_0x39476e._0x3c4294)](_0x96c815(0x48,0x4f,_0x39476e._0x929eec,0x8f),{'item':_0x33eb15})??[];},async 'outgoingCalls'(_0x308084){const _0x4ea453={_0x53406e:0x1bc};function _0xc494f9(_0x3a36c7,_0x20553f,_0x280915,_0x30bcc2){return _0x2eae83(_0x3a36c7-0x98,_0x30bcc2,_0x3a36c7-_0x1983e9._0x5caf3a,_0x30bcc2-0x1a6);}function _0x14b0a4(_0x2cd5ca,_0x12e825,_0x5726e2,_0x51ad5f){return _0x41cf89(_0x5726e2,_0x12e825-0x111,_0x5726e2-0x1d9,_0x12e825-_0x4ea453._0x53406e);}return await _0x36ff29[_0xc494f9(0x2e6,0x225,_0x507b1c._0x115b57,_0x507b1c._0x1ef56d)](_0xc494f9(0x3c4,0x3e0,_0x507b1c._0x5a9d37,0x413),{'item':_0x308084})??[];}},'waitForDiagnostics'({path:_0x10bae1,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x399e1c={_0x43bbac:0x443},_0x3e1d17={_0x544c10:0x12e,_0x5465d3:0x19b},_0x5c7b4c={_0x3f73b7:0x5},_0x36a3e5={_0x4d3587:0x1d1,_0x4a7b77:0x293};function _0x4238af(_0x290f26,_0x55fe30,_0x485d70,_0x3d1fb7){return _0x2eae83(_0x290f26-_0x36a3e5._0x4d3587,_0x55fe30,_0x485d70- -_0x36a3e5._0x4a7b77,_0x3d1fb7-0x1d5);}const _0x30ccd9=uriForPath(_0x10bae1);function _0x278760(_0x3081e9,_0x36e6b6,_0x4309da,_0x569445){return _0x41cf89(_0x3081e9,_0x36e6b6-0x146,_0x4309da-_0x5c7b4c._0x3f73b7,_0x36e6b6-0x5d2);}if(_0x4b3f0a[_0x4238af(0x221,_0x5f05aa._0x304750,_0x5f05aa._0x5d4c0f,0x27b)](_0x30ccd9))return Promise[_0x278760(_0x5f05aa._0x118560,_0x5f05aa._0x2c5bda,_0x5f05aa._0x5d90ee,0x44a)]();return new Promise(_0x16cc05=>{const _0x36625d={_0x4d449a:0x4b6,_0x39faa4:0x3f0,_0x1e4eec:0x3d0,_0x541629:0x566,_0x19f829:0x44e};function _0x2ce582(_0x6af824,_0x3d7444,_0x18257e,_0x4fe777){return _0x4238af(_0x6af824-_0x3e1d17._0x544c10,_0x3d7444,_0x4fe777-0x342,_0x4fe777-_0x3e1d17._0x5465d3);}const _0x4401ed=setTimeout(()=>{const _0x5e6f4a={_0x3b383f:0x1fc};function _0x374e17(_0x374003,_0x2be58e,_0x24114e,_0x2afee3){return _0x1e3a(_0x374003-_0x5e6f4a._0x3b383f,_0x2afee3);}const _0x5457f4=_0x1b2b48['get'](_0x30ccd9);_0x5457f4?.[_0x717c32(_0x36625d._0x4d449a,_0x36625d._0x39faa4,0x44c,_0x36625d._0x1e4eec)](_0x32cbc7);if(_0x5457f4?.['size']===0x0)_0x1b2b48[_0x374e17(_0x36625d._0x541629,0x541,0x659,_0x36625d._0x19f829)](_0x30ccd9);function _0x717c32(_0x519968,_0x4c241b,_0x3747e9,_0x114de4){return _0x1e3a(_0x3747e9-0xe2,_0x4c241b);}_0x16cc05();},timeoutMs),_0x32cbc7=()=>{clearTimeout(_0x4401ed),_0x16cc05();};function _0x3bb437(_0x22d371,_0x14456c,_0x316817,_0x6fe1e9){return _0x278760(_0x14456c,_0x316817- -_0x399e1c._0x43bbac,_0x316817-0xef,_0x6fe1e9-0x1f);}const _0x530ba9=_0x1b2b48[_0x3bb437(_0x23d468._0x1c59fa,0x203,_0x23d468._0x38a6bd,_0x23d468._0x472923)](_0x30ccd9)??new Set();_0x530ba9[_0x2ce582(_0x23d468._0xbe8875,_0x23d468._0xe67cd6,0x352,0x301)](_0x32cbc7),_0x1b2b48['set'](_0x30ccd9,_0x530ba9);});},async 'shutdown'(){const _0x4d9f82={_0x11e780:0x1a3,_0x1d69c2:0x227};function _0x591c74(_0x229d5f,_0x541a14,_0x5d5e5f,_0x216ee7){return _0x41cf89(_0x5d5e5f,_0x541a14-0xbd,_0x5d5e5f-_0x48a059._0x112885,_0x541a14-_0x48a059._0x2d9591);}if(_0x360b0b)return;_0x360b0b=!![];function _0x46cb8a(_0x43cc30,_0x123d1e,_0x29c601,_0x1422bb){return _0x41cf89(_0x123d1e,_0x123d1e-0x96,_0x29c601-_0x4d9f82._0x11e780,_0x43cc30-_0x4d9f82._0x1d69c2);}try{await _0x36ff29['sendRequest']('shutdown',null),_0x36ff29[_0x591c74(0x208,_0x33f467._0x5b3e2a,0xf3,_0x33f467._0x586e50)](_0x46cb8a(0x2d6,_0x33f467._0x2aaba4,0x2d6,0x380));}catch{}finally{_0x36ff29[_0x46cb8a(0x170,_0x33f467._0x2b1497,_0x33f467._0x415f4b,0x151)](),_0x1fcf3c[_0x46cb8a(0x364,0x35a,_0x33f467._0x37fc86,0x4b5)]['process']['kill']();}}};return _0x21dee3;}import{spawn as _0x421f46}from'child_process';import{access as _0x3b43f5}from'fs/promises';import _0x2771dd from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x2b97b1 from'os';import _0x181397 from'path';import _0x2406e1 from'which';var installPromises=new Map();function sanitizePackageName(_0x45e1dd){const _0x417442={_0x4b43b8:0x64,_0x17a30c:0xf1,_0x49703d:0x409},_0x53273f={_0x328144:0x112,_0xa4a74b:0x12e,_0x465fff:0x8c},_0x160301={_0x2f2b46:0x1a9,_0x15fce8:0x320};function _0x44593a(_0xc1c385,_0x5323bf,_0x2786c7,_0x147e22){return _0x567203(_0x147e22,_0x5323bf-_0x160301._0x2f2b46,_0x2786c7-_0x160301._0x15fce8,_0x147e22-0x129);}function _0x767bc4(_0x13d70e,_0x5e28f1,_0x2fce73,_0x1be898){return _0x567203(_0x5e28f1,_0x5e28f1-_0x53273f._0x328144,_0x13d70e- -_0x53273f._0xa4a74b,_0x1be898-_0x53273f._0x465fff);}return _0x45e1dd[_0x767bc4(-0x45,-_0x417442._0x4b43b8,0x11,_0x417442._0x17a30c)](/^@/,'')[_0x44593a(0x494,0x4d7,_0x417442._0x49703d,0x558)](/[/]/g,'__');}function binaryNameForPlatform(_0x48a429){const _0x261713={_0x349a95:0x5f1,_0x2fb5e4:0x554,_0xfde587:0x2b8,_0x16eb2d:0x387,_0x519b21:0x57c},_0x134745={_0x47861c:0x51e,_0x1b2a6c:0x1c8},_0xfc4e64={_0x856a37:0x49a,_0x5afaf4:0x12e};function _0x246952(_0x447619,_0xdad0ff,_0x13c8f8,_0x227b1c){return _0x29bb69(_0x447619-0x1c6,_0xdad0ff-_0xfc4e64._0x856a37,_0x447619,_0x227b1c-_0xfc4e64._0x5afaf4);}function _0x4a51ef(_0x42ed09,_0x4ec503,_0x68be97,_0x5c20bf){return _0x567203(_0x4ec503,_0x4ec503-0x83,_0x42ed09-_0x134745._0x47861c,_0x5c20bf-_0x134745._0x1b2a6c);}return process[_0x4a51ef(_0x261713._0x349a95,0x621,0x533,_0x261713._0x2fb5e4)]===_0x246952(_0x261713._0xfde587,_0x261713._0x16eb2d,0x406,0x321)?_0x48a429+_0x4a51ef(0x586,0x5fd,_0x261713._0x519b21,0x526):_0x48a429;}async function exists(_0x5112de){try{return await access(_0x5112de),!![];}catch{return![];}}function runNpmInstall(_0x35c540,_0x5524a5,_0xe9d22a){const _0x3c79e2={_0xee21f6:0x393,_0x27edb4:0x13b,_0x35bc98:0x113,_0x52eedd:0x2a,_0x383de2:0x65,_0x10ce1e:0xd7,_0x511204:0x3b0,_0x1ae414:0x451,_0x338da2:0x107,_0x1f6dce:0x17d,_0x7a987e:0x67,_0x1c9874:0xd,_0x58a8a0:0x11c,_0x2536c6:0x135},_0x16b4c8={_0x5dce98:0xa6},_0x2dbff6={_0x1c3153:0x319};return new Promise(_0x2d6b56=>{function _0x12a685(_0x1f409d,_0x5d6ff9,_0xe8573f,_0x4ad705){return _0x1e3a(_0x1f409d- -_0x2dbff6._0x1c3153,_0xe8573f);}const _0x4c9a25=spawn(_0x5e5cb8(0x2ea,_0x3c79e2._0xee21f6,0x24a,0x2d4),[_0x12a685(_0x3c79e2._0x27edb4,_0x3c79e2._0x35bc98,_0x3c79e2._0x52eedd,_0x3c79e2._0x383de2),_0x12a685(0x71,0x136,-_0x3c79e2._0x10ce1e,0x169),_0x35c540,_0x5524a5],{'env':_0xe9d22a,'stdio':_0x5e5cb8(0x359,_0x3c79e2._0x511204,0x468,_0x3c79e2._0x1ae414)});_0x4c9a25['on'](_0x12a685(-_0x3c79e2._0x338da2,-_0x3c79e2._0x1f6dce,-_0x3c79e2._0x7a987e,-0x39),()=>_0x2d6b56(![]));function _0x5e5cb8(_0x33fc21,_0x3d2cb1,_0x167cc7,_0x4cf054){return _0x1e3a(_0x33fc21- -_0x16b4c8._0x5dce98,_0x3d2cb1);}_0x4c9a25['on'](_0x12a685(_0x3c79e2._0x1c9874,-0xa9,_0x3c79e2._0x58a8a0,_0x3c79e2._0x2536c6),_0x2b06dc=>_0x2d6b56(_0x2b06dc===0x0));});}function shouldDisableLspDownload(_0x27ee2e=process[_0x29bb69(-0x155,-0x60,0x4d,0xe3)]){const _0x192412={_0xbc499c:0x2a,_0xa0a562:0x4f,_0x29d255:0xe},_0x1ec6c8={_0xf943c9:0x10c,_0x586d13:0x1c8};function _0x2c4d27(_0x4a292e,_0x5a3218,_0x14e435,_0x33f444){return _0x567203(_0x5a3218,_0x5a3218-_0x1ec6c8._0xf943c9,_0x33f444-0x15,_0x33f444-_0x1ec6c8._0x586d13);}const _0xfeb55=_0x27ee2e['NUVIN_DISABLE_LSP_DOWNLOAD']?.['toLowerCase']();return _0xfeb55==='true'||_0xfeb55==='1'||_0xfeb55===_0x2c4d27(_0x192412._0xbc499c,_0x192412._0xa0a562,-0x8,_0x192412._0x29d255)||_0xfeb55==='on';}function getLspPackageDir(_0x2d4730){const _0x40a5d3={_0x5bf879:0x2c,_0x1078b4:0x26,_0x2e8f0a:0x47,_0xb10fdf:0x23,_0x5c45bc:0xe0,_0x1314a5:0x6d,_0x26686e:0x531,_0x204c8b:0x416,_0x4b45dc:0x4ef,_0x43044a:0x496,_0x3a81c3:0x17d},_0x41acef={_0x4aee2c:0x19f,_0x28c690:0x49},_0x36bc50={_0x45f8ff:0x57};function _0x15353f(_0x3b84ad,_0x1fa905,_0x495aac,_0x418891){return _0x567203(_0x495aac,_0x1fa905-0x6b,_0x418891-0x2b1,_0x418891-_0x36bc50._0x45f8ff);}function _0x24f3b5(_0x457a1e,_0x3ff06f,_0x4328fa,_0x5055ab){return _0x29bb69(_0x457a1e-_0x41acef._0x4aee2c,_0x5055ab- -0x8a,_0x4328fa,_0x5055ab-_0x41acef._0x28c690);}return _0x181397['join'](_0x2b97b1[_0x24f3b5(_0x40a5d3._0x5bf879,-0xb0,_0x40a5d3._0x1078b4,-_0x40a5d3._0x2e8f0a)](),_0x24f3b5(-0x18b,_0x40a5d3._0xb10fdf,_0x40a5d3._0x5c45bc,-_0x40a5d3._0x1314a5),_0x15353f(_0x40a5d3._0x26686e,_0x40a5d3._0x204c8b,_0x40a5d3._0x4b45dc,_0x40a5d3._0x43044a),_0x24f3b5(-_0x40a5d3._0x3a81c3,-0x12c,-0x14f,-0x1dc),sanitizePackageName(_0x2d4730));}function getLspBinDir(_0x2b7e29){const _0xf964fd={_0x1aa1a9:0x18c,_0x117548:0x297,_0x3af542:0xb4};function _0x12e8f3(_0x22a99b,_0x176a9f,_0x3e41ae,_0x22431c){return _0x29bb69(_0x22a99b-0x1df,_0x22431c-0x16e,_0x3e41ae,_0x22431c-0xfa);}function _0x42bcd3(_0x25d55c,_0x1d8c3a,_0x3e8b92,_0x20ef41){return _0x29bb69(_0x25d55c-0xd6,_0x20ef41-0x29d,_0x3e8b92,_0x20ef41-0x1a6);}return _0x181397[_0x42bcd3(0x21a,_0xf964fd._0x1aa1a9,0x207,_0xf964fd._0x117548)](getLspPackageDir(_0x2b7e29),_0x42bcd3(0x2d4,0x9c,_0xf964fd._0x3af542,0x1b3),'.bin');}async function findPackageBinary(_0x1a41a3,_0x2caff1){const _0x34de90={_0x39a894:0x455,_0x4d67cf:0x411,_0x27c591:0x31f,_0x1ff1a3:0x402,_0x409198:0x326,_0x3bb0fc:0x3ed,_0x33879b:0x398,_0x5c0f28:0x463},_0x39c826={_0xa7738f:0x16c};function _0x33d919(_0x5e8309,_0x2eee11,_0x1a4ed5,_0x2274e0){return _0x567203(_0x5e8309,_0x2eee11-0x27,_0x2274e0-0x438,_0x2274e0-_0x39c826._0xa7738f);}let _0x2484cd=_0x181397[_0x6f4f14(_0x34de90._0x39a894,0x45e,_0x34de90._0x4d67cf,_0x34de90._0x27c591)](_0x2caff1);const _0x4229c2=binaryNameForPlatform(_0x1a41a3);function _0x6f4f14(_0x46f957,_0x56ebb3,_0x34f9d4,_0x411c65){return _0x567203(_0x411c65,_0x56ebb3-0x15d,_0x56ebb3-0x3b8,_0x411c65-0x10);}while(!![]){const _0x1f9aa3=_0x181397['join'](_0x2484cd,_0x6f4f14(0x3f8,_0x34de90._0x1ff1a3,0x4cf,0x417),'.bin',_0x4229c2);if(await exists(_0x1f9aa3))return _0x1f9aa3;const _0x24f14f=_0x181397[_0x6f4f14(_0x34de90._0x409198,_0x34de90._0x3bb0fc,_0x34de90._0x33879b,_0x34de90._0x5c0f28)](_0x2484cd);if(_0x24f14f===_0x2484cd)return void 0x0;_0x2484cd=_0x24f14f;}}async function findPathBinary(_0x311b43,_0x3850aa){const _0x37daac={_0x3ef9bf:0x4fc,_0x3aede6:0x506,_0x2167ec:0x3d4,_0x286fc8:0x4b4,_0x29f0c4:0x59e},_0x33ff98=getLspBinDir(_0x3850aa),_0x3913e1=[_0x33ff98,process[_0x938bf5(0x46b,_0x37daac._0x3ef9bf,_0x37daac._0x3aede6,0x56d)]['PATH']][_0x938bf5(0x426,0x3fa,_0x37daac._0x2167ec,_0x37daac._0x286fc8)](Boolean)[_0x938bf5(0x494,_0x37daac._0x29f0c4,0x643,0x5c7)](_0x181397[_0x938bf5(0x5d9,0x5fa,0x525,0x562)]);function _0x341eea(_0x411050,_0x5436a7,_0x3800b9,_0x474089){return _0x567203(_0x5436a7,_0x5436a7-0x143,_0x3800b9-0x29b,_0x474089-0x151);}function _0x938bf5(_0x834f4d,_0x54e392,_0x312ba9,_0x596d4a){return _0x567203(_0x834f4d,_0x54e392-0x198,_0x596d4a-0x499,_0x596d4a-0x10c);}try{return await _0x2406e1(_0x311b43,{'path':_0x3913e1});}catch{return void 0x0;}}async function resolvePackageBinary(_0x4cfcaf){const _0x471aee={_0x1cbf0e:0x2de,_0x506e1e:0x219,_0x9639e6:0x134,_0x345f06:0xf7,_0x419c3a:0x35,_0x39826e:0xb5,_0x428f67:0x102,_0xbe18e6:0x30,_0x80a0af:0x14b,_0x41a0b2:0x167,_0xefd9cd:0x7a,_0x5adf4c:0x7a,_0x37eeee:0x2a,_0x447696:0xdf,_0xc07fd3:0x364,_0x1c5635:0x228,_0x26486b:0x200},_0xaeb870={_0x214c6c:0x1fa,_0x1a356f:0x33d,_0x56d0d6:0x1b0,_0x1aeb85:0x2f1},_0x4c7c80={_0x46bde4:0x167},_0x2437d1={_0x32b58f:0x14e,_0x3ff911:0xb5},_0x35b7ac=_0x4cfcaf[_0x305da7(0x290,0x402,_0x471aee._0x1cbf0e,_0x471aee._0x506e1e)]??_0x4cfcaf[_0x32e476(_0x471aee._0x9639e6,-_0x471aee._0x345f06,0x2a,_0x471aee._0x419c3a)],_0x1410ab=await findPackageBinary(_0x35b7ac,_0x4cfcaf[_0x32e476(-0x1c0,0x28,-_0x471aee._0x39826e,0x35)]);if(_0x1410ab)return _0x1410ab;const _0x1425bc=await findPathBinary(_0x35b7ac,_0x4cfcaf[_0x32e476(0xdd,_0x471aee._0x428f67,0x2a,_0x471aee._0xbe18e6)]);if(_0x1425bc)return _0x1425bc;function _0x305da7(_0x3e0f1b,_0x11a1ec,_0x5304f1,_0x1dbef9){return _0x29bb69(_0x3e0f1b-0x12e,_0x5304f1-0x3fe,_0x1dbef9,_0x1dbef9-0x177);}function _0x32e476(_0x106c4b,_0x3cfcfd,_0x79853d,_0x28ced7){return _0x567203(_0x106c4b,_0x3cfcfd-0x163,_0x79853d- -_0x2437d1._0x32b58f,_0x28ced7-_0x2437d1._0x3ff911);}const _0x3cb861=_0x4cfcaf[_0x32e476(-_0x471aee._0x80a0af,-_0x471aee._0x41a0b2,-_0x471aee._0xefd9cd,0x75)]??process[_0x32e476(-0x9b,-0xb8,-_0x471aee._0x5adf4c,-0x150)];if(shouldDisableLspDownload(_0x3cb861))return void 0x0;const _0x4662f2=getLspPackageDir(_0x4cfcaf['packageName']),_0x76cf09=_0x4cfcaf[_0x32e476(0xdf,-0x11d,_0x471aee._0x37eeee,_0x471aee._0x447696)]+':'+_0x35b7ac;let _0x477f0a=installPromises[_0x305da7(_0x471aee._0xc07fd3,_0x471aee._0x1c5635,0x34d,_0x471aee._0x26486b)](_0x76cf09);!_0x477f0a&&(_0x477f0a=((async()=>{await mkdir(_0x4662f2,{'recursive':!![]});function _0x2c3049(_0x54b3e1,_0x10b0f0,_0xc4fc89,_0x30cb88){return _0x32e476(_0xc4fc89,_0x10b0f0-0x136,_0x10b0f0-0x3c7,_0x30cb88-_0x4c7c80._0x46bde4);}function _0x34d32d(_0x555600,_0xf7d644,_0x14a7a9,_0xd8e4db){return _0x32e476(_0x14a7a9,_0xf7d644-0x1cb,_0x555600-0x1d0,_0xd8e4db-0x87);}const _0x583ccc=await runNpmInstall(_0x4662f2,_0x4cfcaf[_0x34d32d(_0xaeb870._0x214c6c,_0xaeb870._0x1a356f,0x1a0,0x2f5)],_0x3cb861);if(!_0x583ccc)return void 0x0;const _0x553b09=_0x181397[_0x34d32d(_0xaeb870._0x56d0d6,0x2af,_0xaeb870._0x1aeb85,0x1c5)](getLspBinDir(_0x4cfcaf['packageName']),binaryNameForPlatform(_0x35b7ac));return await exists(_0x553b09)?_0x553b09:void 0x0;})()),installPromises['set'](_0x76cf09,_0x477f0a));try{return await _0x477f0a;}catch{return void 0x0;}finally{installPromises['delete'](_0x76cf09);}}var TYPESCRIPT_EXTENSIONS=[_0x567203(0xe3,0x31,0xc3,-0x59),_0x567203(0x109,0x110,-0x2,0xb1),_0x29bb69(-0xbf,-0xe1,-0x7b,-0x1f1),_0x29bb69(-0x241,-0x14d,-0x1b9,-0x28),'.mjs','.cjs',_0x29bb69(-0x47,-0xb5,0x53,-0x1a1),_0x567203(0x1a8,0x352,0x23e,0x1ef)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x29bb69(-0x168,-0x13a,-0x1a4,-0x132),_0x29bb69(-0xa3,-0x156,-0x172,-0x291)],TYPESCRIPT_ROOT_MARKERS=['package-lock.json',_0x567203(0x99,0xd0,0x122,0x120),_0x567203(-0xe7,-0xa3,-0x17,0xfe),'pnpm-lock.yaml',_0x567203(-0xee,0xd9,0x1c,-0xce),_0x29bb69(0x1a2,0x118,-0x33,0x1da),'jsconfig.json',_0x29bb69(0x28,-0xc6,-0x1ad,-0x12f)],BIOME_ROOT_MARKERS=['biome.json',_0x567203(0xc7,0x1dc,0x1e0,0x130),_0x29bb69(-0x104,0x3,-0x34,-0x13a),_0x29bb69(-0x139,-0x12,-0x81,-0x8d),_0x567203(-0x37,0x2e,-0x17,0xe3),_0x29bb69(-0x13a,0x11,0xed,0x32),'yarn.lock',_0x567203(-0xd6,0x193,0x6e,0x166)];async function exists2(_0x58bbac){try{return await _0x3b43f5(_0x58bbac),!![];}catch{return![];}}async function findUp(_0xf56013,_0x188872){const _0xb44cf2={_0x5b30b9:0x5b8,_0x2365e6:0x48b,_0x500e5d:0x371,_0x35075d:0x584,_0x33e9fd:0x5d5,_0x1aa4a:0x185,_0x386e0f:0xb0,_0x341582:0xb7},_0x29ef73={_0x314600:0x74};function _0x47b443(_0x238b41,_0x43c813,_0x1921af,_0x2ab625){return _0x29bb69(_0x238b41-0x1db,_0x43c813-0x58a,_0x1921af,_0x2ab625-_0x29ef73._0x314600);}let _0x2517df=_0x2771dd['resolve'](_0xf56013);function _0x203e96(_0x19f99d,_0x207669,_0x5ee34a,_0x30d4f8){return _0x567203(_0x5ee34a,_0x207669-0x3d,_0x207669- -0x1d5,_0x30d4f8-0xe0);}const _0x1e815a=_0x2771dd['extname'](_0x2517df);if(_0x1e815a)_0x2517df=_0x2771dd[_0x47b443(_0xb44cf2._0x5b30b9,_0xb44cf2._0x2365e6,_0xb44cf2._0x500e5d,0x4e6)](_0x2517df);while(!![]){for(const _0x52b371 of _0x188872){if(await exists2(_0x2771dd[_0x47b443(0x474,_0xb44cf2._0x35075d,_0xb44cf2._0x33e9fd,0x693)](_0x2517df,_0x52b371)))return _0x2517df;}const _0x4c227d=_0x2771dd[_0x203e96(-_0xb44cf2._0x1aa4a,-0x1a0,-_0xb44cf2._0x386e0f,-_0xb44cf2._0x341582)](_0x2517df);if(_0x4c227d===_0x2517df)return void 0x0;_0x2517df=_0x4c227d;}}async function hasDenoRoot(_0x25c0d4){const _0x4d3ce2={_0xd61d2d:0x177,_0x38c5ac:0x63,_0x2f49bc:0x5c,_0x42d1ac:0x22,_0x21f805:0xd3,_0x1316c2:0x100,_0x45198f:0x187,_0x11d74d:0x14d,_0x578b66:0x111,_0x202e51:0xf5},_0x39d38={_0x210bcf:0x9},_0x1aa048={_0x5cc6b9:0x1b,_0x3ef4b5:0x1cc};function _0x5d7d7e(_0xbe31eb,_0x2ee631,_0x5da197,_0x191463){return _0x567203(_0xbe31eb,_0x2ee631-0x6b,_0x2ee631- -_0x1aa048._0x5cc6b9,_0x191463-_0x1aa048._0x3ef4b5);}function _0x584af3(_0x8a9f73,_0x676585,_0x899284,_0x1d6c94){return _0x567203(_0x1d6c94,_0x676585-0xdb,_0x899284- -0x191,_0x1d6c94-_0x39d38._0x210bcf);}return await exists2(_0x2771dd[_0x584af3(-0x3c,-_0x4d3ce2._0xd61d2d,-_0x4d3ce2._0x38c5ac,-0x103)](_0x25c0d4,_0x584af3(-_0x4d3ce2._0x2f49bc,-_0x4d3ce2._0x42d1ac,-0xf0,-_0x4d3ce2._0x21f805)))||await exists2(_0x2771dd[_0x5d7d7e(0x10e,0x113,0x21c,_0x4d3ce2._0x1316c2)](_0x25c0d4,_0x584af3(-_0x4d3ce2._0x45198f,-_0x4d3ce2._0x11d74d,-_0x4d3ce2._0x578b66,-_0x4d3ce2._0x202e51)));}async function resolveTsserverPath(_0x4143e0){const _0xf7c319={_0x17a1f4:0x576,_0x1bfc50:0x562,_0x1d2e86:0x3e1,_0x2288df:0x633,_0x1ed653:0x554,_0x184492:0x596,_0x34b0bf:0x5d6,_0x2c2e32:0x667,_0x4e1b08:0x6d2,_0x4e1fe4:0x5bb,_0x2c7833:0x46a,_0x26fc24:0x4c2,_0x59bdc9:0x512,_0x38610c:0x6ff,_0x548299:0x667,_0x3ae6f5:0x790,_0x58c325:0x6d0,_0x58a3d0:0x509,_0x1800e7:0x4d5,_0x3230fb:0x400,_0x245538:0x39e,_0x52d439:0x4e6,_0x590148:0x3a4,_0x4a25b5:0x3c3,_0x15fdae:0x4e9,_0x2e1233:0x5a9,_0x1069d8:0x5f9,_0x324196:0x749,_0x3d4989:0x54d,_0x537d2b:0x69b,_0x32868d:0x3de,_0x535840:0x500},_0x519d58={_0x2983b2:0x1d4,_0x2a64c7:0x4ec,_0x33fdcc:0x18d},_0x2eb11c={_0x13a404:0x161};let _0x4c8766=_0x2771dd[_0x56c4ff(_0xf7c319._0x17a1f4,0x4cc,_0xf7c319._0x1bfc50,_0xf7c319._0x1d2e86)](_0x4143e0);function _0x56c4ff(_0x4778a2,_0x31b8d9,_0x2d2848,_0x1165ee){return _0x567203(_0x1165ee,_0x31b8d9-0x77,_0x31b8d9-0x426,_0x1165ee-_0x2eb11c._0x13a404);}while(!![]){const _0x16a13e=_0x2771dd[_0x56c4ff(_0xf7c319._0x2288df,_0xf7c319._0x1ed653,_0xf7c319._0x184492,_0xf7c319._0x34b0bf)](_0x4c8766,_0x56c4ff(0x481,0x470,0x420,0x3d2),_0x56c4ff(0x686,_0xf7c319._0x2c2e32,0x6ed,0x58e),_0x56c4ff(_0xf7c319._0x4e1b08,_0xf7c319._0x4e1fe4,0x60d,0x474),_0x56c4ff(0x355,_0xf7c319._0x2c7833,_0xf7c319._0x26fc24,0x591));if(await exists2(_0x16a13e))return _0x16a13e;const _0x47c7ef=_0x2771dd[_0x56c4ff(_0xf7c319._0x59bdc9,0x45b,0x359,0x3b4)](_0x4c8766);if(_0x47c7ef===_0x4c8766)break;_0x4c8766=_0x47c7ef;}const _0x212884=getLspPackageDir(_0x56c4ff(_0xf7c319._0x38610c,_0xf7c319._0x548299,_0xf7c319._0x3ae6f5,_0xf7c319._0x58c325)),_0x189fe1=await resolvePackageBinary({'packageName':'typescript','binaryName':_0x56c4ff(_0xf7c319._0x58a3d0,_0xf7c319._0x1800e7,_0xf7c319._0x3230fb,0x3b0),'startDir':_0x4143e0});function _0x8257ca(_0x14cc65,_0xfeb761,_0x1bff5f,_0x2f4b08){return _0x29bb69(_0x14cc65-_0x519d58._0x2983b2,_0x1bff5f-_0x519d58._0x2a64c7,_0x2f4b08,_0x2f4b08-_0x519d58._0x33fdcc);}if(!_0x189fe1)return void 0x0;const _0x1be5f8=_0x2771dd[_0x8257ca(_0xf7c319._0x245538,0x524,_0xf7c319._0x52d439,_0xf7c319._0x590148)](_0x212884,_0x8257ca(0x35f,0x460,0x402,_0xf7c319._0x4a25b5),_0x8257ca(_0xf7c319._0x15fdae,_0xf7c319._0x2e1233,_0xf7c319._0x1069d8,_0xf7c319._0x324196),_0x8257ca(0x5a2,0x573,_0xf7c319._0x3d4989,_0xf7c319._0x537d2b),_0x56c4ff(_0xf7c319._0x32868d,0x46a,0x3ae,_0xf7c319._0x535840));return await exists2(_0x1be5f8)?_0x1be5f8:void 0x0;}var TypeScriptServer={'id':'typescript','name':_0x29bb69(-0x89,-0xfc,-0x189,-0x3f),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0xe14cde){const _0x37350c=await findUp(_0xe14cde,TYPESCRIPT_ROOT_MARKERS);if(!_0x37350c)return void 0x0;return await hasDenoRoot(_0x37350c)?void 0x0:_0x37350c;},async 'spawn'(_0x62a769){const _0x27f27c={_0x458646:0x6b9,_0x4513a0:0x836,_0xba651c:0x78a,_0x1ecc9e:0x61a,_0x1404b9:0x706},_0x55795e={_0x4d6423:0xe3,_0x2a33f1:0xa5},_0x46a0da={_0x4bf3d4:0x8b};function _0x10a47b(_0x2ecaf6,_0x36278b,_0x4dc17b,_0x2a93e5){return _0x567203(_0x36278b,_0x36278b-_0x46a0da._0x4bf3d4,_0x4dc17b-0x528,_0x2a93e5-0x25);}function _0x56fad9(_0x47a163,_0x4eb7c4,_0xd28481,_0x202a8e){return _0x567203(_0x47a163,_0x4eb7c4-0x31,_0xd28481- -_0x55795e._0x4d6423,_0x202a8e-_0x55795e._0x2a33f1);}const _0x457198=await resolveTsserverPath(_0x62a769);if(!_0x457198)return void 0x0;const _0x25fd11=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':_0x10a47b(_0x27f27c._0x458646,_0x27f27c._0x4513a0,_0x27f27c._0xba651c,0x809),'startDir':_0x62a769});if(!_0x25fd11)return void 0x0;return{'process':_0x421f46(_0x25fd11,['--stdio'],{'cwd':_0x62a769,'stdio':_0x10a47b(0x633,0x641,_0x27f27c._0x1ecc9e,_0x27f27c._0x1404b9)}),'initialization':{'tsserver':{'path':_0x457198}}};}},BiomeServer={'id':'biome','name':_0x567203(0xb,0x1ae,0x116,0x3a),'extensions':BIOME_EXTENSIONS,async 'root'(_0x5359ef){return findUp(_0x5359ef,BIOME_ROOT_MARKERS);},async 'spawn'(_0x59e482){const _0x1e8431={_0x254743:0xb,_0x5c0058:0x1a6,_0x489984:0x310,_0x52170a:0x1d1,_0x2f8f04:0x324,_0x3415a5:0x22e,_0x156e46:0x416,_0x27d55c:0x2d9,_0x295c36:0xec,_0x12cca0:0x28d},_0x17e50c={_0x4a9ba1:0x184};function _0x540183(_0x3e9a64,_0xd288cd,_0x551edf,_0x4c244c){return _0x567203(_0xd288cd,_0xd288cd-0xbb,_0x3e9a64-0x1f2,_0x4c244c-0x42);}const _0x12c81e=await findPackageBinary(_0x1eea09(-0x66,-_0x1e8431._0x254743,-_0x1e8431._0x5c0058,-0xc6),_0x59e482)??await resolvePackageBinary({'packageName':'@biomejs/biome','binaryName':_0x540183(_0x1e8431._0x489984,0x2a5,0x3a7,_0x1e8431._0x52170a),'startDir':_0x59e482});if(!_0x12c81e)return void 0x0;function _0x1eea09(_0xd2b56,_0x41e893,_0x55bb86,_0x49bcef){return _0x567203(_0x49bcef,_0x41e893-0x6f,_0xd2b56- -_0x17e50c._0x4a9ba1,_0x49bcef-0x135);}return{'process':_0x421f46(_0x12c81e,[_0x540183(_0x1e8431._0x2f8f04,_0x1e8431._0x3415a5,_0x1e8431._0x156e46,_0x1e8431._0x27d55c),_0x1eea09(-0x15b,-_0x1e8431._0x295c36,-0x152,-_0x1e8431._0x12cca0)],{'cwd':_0x59e482,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x55ca04){const _0x3ddfc7={_0x25e869:0x1e8,_0x1b1bd3:0x22f,_0xfb7657:0x2b1,_0x501805:0x1df,_0x776778:0x181},_0x38ed03={_0x14ca7b:0xcb},_0x390d6b={_0x3fe9cb:0xdc,_0xb56b83:0x1cb};function _0x3fd750(_0xd73c06,_0x416f20,_0xe47693,_0x1bab33){return _0x567203(_0x1bab33,_0x416f20-_0x390d6b._0x3fe9cb,_0x416f20-0xa6,_0x1bab33-_0x390d6b._0xb56b83);}const _0x328cae=_0x2771dd[_0x3fd750(_0x3ddfc7._0x25e869,0x19f,_0x3ddfc7._0x1b1bd3,_0x3ddfc7._0xfb7657)](_0x55ca04)['toLowerCase']();function _0x467fc3(_0x332b21,_0x52d64f,_0x339af2,_0x4987e9){return _0x29bb69(_0x332b21-0x183,_0x52d64f-_0x38ed03._0x14ca7b,_0x4987e9,_0x4987e9-0xa);}return BUILTIN_LSP_SERVERS[_0x3fd750(0xcf,0xc1,_0x3ddfc7._0x501805,_0x3ddfc7._0x776778)](_0x3c0308=>_0x3c0308[_0x3fd750(0x1c4,0x202,0x1c6,0x17a)][_0x3fd750(0x249,0x1ef,0x13e,0x2cc)](_0x328cae));}function stateKey(_0x1aa862,_0x5654b8){return _0x5654b8+':'+_0x1aa862['id'];}function diagnosticsKeyToPath(_0x1189c5){const _0x45278d={_0x395998:0x4b6,_0x47e1ea:0x5ef,_0x2312a0:0x46e,_0xf6b9f0:0x5b3,_0xb0e9de:0xc2,_0x2bc518:0x130,_0x2de217:0xf2,_0x11c129:0x57},_0xecb72e={_0x4a5841:0x13e},_0x7e2af2={_0xdc7ecf:0x6e0,_0x2ca487:0x1c};function _0x15e5c9(_0x44eda9,_0x34bff3,_0x1ac3fb,_0x556df3){return _0x29bb69(_0x44eda9-0xfc,_0x556df3-_0x7e2af2._0xdc7ecf,_0x34bff3,_0x556df3-_0x7e2af2._0x2ca487);}function _0x2a1018(_0x36933d,_0x3de2bf,_0x166877,_0x28f3f6){return _0x567203(_0x3de2bf,_0x3de2bf-0x1f1,_0x28f3f6-0x53,_0x28f3f6-_0xecb72e._0x4a5841);}if(!_0x1189c5[_0x15e5c9(_0x45278d._0x395998,_0x45278d._0x47e1ea,_0x45278d._0x2312a0,_0x45278d._0xf6b9f0)](_0x2a1018(-_0x45278d._0xb0e9de,_0x45278d._0x2bc518,-_0x45278d._0x2de217,_0x45278d._0x11c129)))return _0x1189c5;return fileURLToPath(_0x1189c5);}function nextFileVersion(_0x49d9cf,_0x55512f){const _0x167d52={_0x483a39:0xcb},_0x4092aa={_0x56e363:0xa4,_0x5726df:0x62},_0x21cca9={_0x108963:0x244,_0x142ea6:0x1a6};function _0x3beb26(_0x48ade1,_0x56b5a6,_0x57e9f7,_0x178a4c){return _0x29bb69(_0x48ade1-0x12a,_0x178a4c-_0x21cca9._0x108963,_0x48ade1,_0x178a4c-_0x21cca9._0x142ea6);}const _0x43bd44=(_0x49d9cf['fileVersions']['get'](_0x55512f)??0x1)+0x1;_0x49d9cf[_0x36ee95(-0x118,-0x181,-0xbf,-_0x167d52._0x483a39)][_0x36ee95(-0x9f,-0xf7,-0x77,-0xcc)](_0x55512f,_0x43bd44);function _0x36ee95(_0x110285,_0x522ba7,_0x62121a,_0x2c6430){return _0x29bb69(_0x110285-_0x4092aa._0x56e363,_0x2c6430- -_0x4092aa._0x5726df,_0x522ba7,_0x2c6430-0x1f);}return _0x43bd44;}async function collectClientResults(_0x12bd8f){const _0xa4dc33={_0x3f03c0:0x95},_0x1c6643={_0x264ec8:0x33c},_0x458218={_0x5d0634:0x11b};function _0x4b5ba6(_0x4976ab,_0x4899af,_0x291e92,_0x48c873){return _0x29bb69(_0x4976ab-_0x458218._0x5d0634,_0x48c873- -0x90,_0x4976ab,_0x48c873-0x17);}function _0x41ac8d(_0x3ae0a7,_0x210129,_0x181b22,_0x38d120){return _0x29bb69(_0x3ae0a7-0xf3,_0x181b22-_0x1c6643._0x264ec8,_0x210129,_0x38d120-0x2a);}const _0x5c9c61=await Promise['allSettled'](_0x12bd8f);return _0x5c9c61[_0x4b5ba6(-_0xa4dc33._0x3f03c0,-0x19f,-0x192,-0x182)](_0x289177=>_0x289177['status']===_0x4b5ba6(-0x130,-0x111,-0xb6,-0x193)?_0x289177[_0x4b5ba6(-0x3e,-0x1a,-0xad,-0x4e)]:[]);}function createLspService(_0x28d2e1={}){const _0x4e1edb={_0xc6102f:0x3fa,_0x4ab6a4:0x365,_0x3d44f9:0x2b5,_0x65b775:0xa2,_0x1df005:0x193},_0x54bff3={_0x42a18c:0x363,_0x1a8fdd:0x412,_0x4b81bd:0x3aa,_0x21aca9:0x362,_0x86abd3:0x412,_0x2f27d7:0x37f,_0x1444de:0x3b4,_0x56f42e:0x3db,_0x10668b:0x3f6,_0x25615a:0x2cf,_0x1d7af1:0x2ca,_0x433d05:0x12c,_0x10acab:0x1d5,_0xe37c61:0x11a,_0x4a3325:0x2fe,_0x4d14ac:0x3de,_0x4c7caf:0x2a9,_0x308fcf:0x2d9,_0x581d2b:0x2ab,_0x812716:0x13b,_0x57a07b:0x261,_0x5b6383:0x2ab,_0x4a9d32:0x3ca},_0x11125a={_0x3b0f1c:0x4aa},_0x109ef5={_0x5981e4:0x479,_0xf0e1d7:0x3ee},_0x2d4b66={_0x4228b9:0x3a9,_0x120420:0x90,_0x3944bd:0xd0},_0x3f903b={_0x569170:0x14a,_0x5e06b3:0x189,_0x5d3f22:0x19f},_0x5f3c6f={_0x16eccd:0x1a4,_0x59bbcd:0x13e},_0x218f08={_0x39c42e:0x374,_0x513997:0x15a,_0x360182:0x10e},_0x3729ae={_0x39af2c:0x14c,_0x2c3c3e:0xb5},_0x23491a={_0x573d33:0x496},_0x5d2450={_0x321394:0x114},_0xa6c360={_0x100c61:0x242,_0x374377:0x153},_0x3447f0={_0x17cd88:0x0},_0x27e74d={_0xae09a4:0x13a},_0x39fe8f={_0xf98c9b:0x365},_0x50ef84={_0x50794a:0x490,_0x5c1243:0x5b8},_0x3983dc={_0x3dfb2c:0x159,_0x5a5098:0x1d},_0x2f6573={_0x5b5c40:0x1b1,_0x5ebd32:0xae,_0x1e889f:0x72,_0x4b70e3:0xcd},_0x4f7261={_0xb92a2b:0x49c,_0x145ac5:0x11b},_0x1b9fe1={_0x1d0f8d:0x192,_0x5a4c6d:0x1e6},_0x31b6a8={_0x39edde:0x1a3,_0x9ae764:0x20c,_0x2382fc:0x2b2,_0x32c8a1:0x1ec,_0x222ebc:0x121},_0x3c6915={_0x19a5a0:0x164},_0x2485d8={_0x3a2bbd:0x203},_0x5e62b3={_0x452ccc:0x73,_0x34a01e:0x3},_0xf29f03={_0x2a0cc8:0x199,_0x7ed79a:0xb7},_0x5aedcc={_0x1e5759:0x193},_0x3c572d={_0x47e25e:0x262,_0x37399d:0x2c8,_0x3fdcb5:0x2d8},_0x20c9fb={_0x1801f4:0x759,_0x12ddaa:0x66e,_0x135371:0x110,_0xbf9c96:0x16,_0x181c7d:0xc6},_0xd0660e={_0x37c1d0:0xaf,_0x21e8f7:0x100,_0x23c093:0x2c,_0x1870f6:0x50,_0x33d8f0:0x2e,_0x262846:0x2f,_0x15a549:0x77,_0x29eed3:0x17e,_0x41f9ee:0x101,_0x569ec9:0xff,_0x527d3e:0x86,_0x203c1c:0xd5,_0x1be118:0x10a,_0xb25570:0x248,_0x4548d7:0x15b,_0x3ec342:0xfb,_0x35246b:0x42,_0x1c8272:0x149,_0x5e6e55:0xca,_0x38c256:0x1fb,_0x3a355e:0xa2,_0x25fe0e:0x1a4,_0x1ce201:0x94,_0x7f26d0:0xb0,_0x51cc21:0x16b,_0x4f32e0:0x34},_0x5529dc={_0x509f35:0x332,_0x270cec:0x1e9,_0x5816b4:0x11c,_0x237274:0x2f5,_0x406e2d:0x27e,_0x213e90:0x3b,_0x38c04b:0x6e,_0x47edec:0xd6,_0x1bb842:0x45,_0x4a3231:0x80,_0x161578:0x2df,_0x3add0a:0x308,_0x2adf0a:0x2f0},_0x3d63be={_0x16b24c:0xd2,_0x498460:0x1f4,_0x14291c:0x28,_0x290e64:0x6ca,_0x1ac9ad:0x7e2,_0x4f237a:0x5d0,_0x42c81f:0x6b9,_0x31ceec:0xb9,_0x565ff7:0x525,_0x1c8012:0x478,_0x2a4de3:0x56f},_0x5e21fc={_0x29f520:0x12d,_0x487961:0x556,_0x157abc:0x158,_0x18f70b:0x235,_0x22b5a2:0x1ee,_0x5d8ec0:0xfc,_0x196cc0:0x80,_0x44e9a5:0x15a,_0xd72361:0x443,_0x56c995:0x3f9,_0x102967:0x4d1,_0x44a737:0x41b,_0xc2d267:0x5a7,_0x105547:0x578,_0x263b7b:0x255,_0x3915de:0xea,_0x16932c:0xbc,_0x3e7e5b:0x50},_0x32f4df={_0x471487:0x447,_0x43540e:0xfc},_0x13b24d={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x3afd8b=()=>_0x28d2e1[_0x523e17(0x104,0x12,0xb5,0x154)]!==![];async function _0x33749c(_0x1f89a3,_0x1b33e7){const _0x297a71={_0x2dfc9c:0x16b,_0x38d677:0x117,_0x5953e8:0x165},_0x294e64=stateKey(_0x1f89a3,_0x1b33e7),_0x2cec71=_0x13b24d[_0x84d12e(_0x3d63be._0x16b24c,0x98,0x8a,0xfc)][_0x84d12e(0x174,_0x3d63be._0x498460,-_0x3d63be._0x14291c,0xe4)](_0x33df1b=>_0x33df1b[_0x84d12e(0x83,0x27f,0x175,0x130)]===_0x1f89a3['id']&&_0x33df1b[_0x84d12e(0x137,0x200,0x23b,0x183)]===_0x1b33e7);if(_0x2cec71)return _0x2cec71;if(_0x13b24d[_0xfaaa82(0x5aa,_0x3d63be._0x290e64,0x61f,0x6bb)][_0xfaaa82(0x779,_0x3d63be._0x1ac9ad,_0x3d63be._0x4f237a,_0x3d63be._0x42c81f)](_0x294e64))return void 0x0;const _0x56d117=_0x13b24d['spawning'][_0x84d12e(0xd,0x1f0,0x1f8,_0x3d63be._0x31ceec)](_0x294e64);function _0xfaaa82(_0x137357,_0x863162,_0x1dc6b7,_0x476879){return _0x523e17(_0x476879-_0x32f4df._0x471487,_0x863162-0x134,_0x863162,_0x476879-_0x32f4df._0x43540e);}function _0x84d12e(_0x8ae3e5,_0x288a41,_0x52e239,_0x52ef98){return _0x523e17(_0x52ef98-0x33,_0x288a41-0x77,_0x288a41,_0x52ef98-0x34);}if(_0x56d117)return _0x56d117;const _0xc4ce36=((async()=>{const _0x450503={_0x50d639:0x168,_0x177609:0x145,_0x5c2e4a:0x5f4};function _0x4caed3(_0x582b2a,_0x559b7f,_0x566eb0,_0x4b62fd){return _0xfaaa82(_0x582b2a-_0x450503._0x50d639,_0x4b62fd,_0x566eb0-_0x450503._0x177609,_0x566eb0- -_0x450503._0x5c2e4a);}function _0x11f9cb(_0x45a2b1,_0x548794,_0x3e77fe,_0x2a7fc5){return _0xfaaa82(_0x45a2b1-_0x297a71._0x2dfc9c,_0x45a2b1,_0x3e77fe-_0x297a71._0x38d677,_0x548794- -_0x297a71._0x5953e8);}try{const _0x4affa5=await _0x1f89a3[_0x4caed3(0x4f,_0x5e21fc._0x29f520,0x61,0x140)](_0x1b33e7);if(!_0x4affa5)return _0x13b24d[_0x11f9cb(0x68d,_0x5e21fc._0x487961,0x453,0x42c)][_0x4caed3(-0x226,-_0x5e21fc._0x157abc,-0x13f,-_0x5e21fc._0x18f70b)](_0x294e64),void 0x0;const _0x348089=await createLspClient({'server':_0x1f89a3,'root':_0x1b33e7,'handle':_0x4affa5}),_0x37f40e=_0x13b24d['clients'][_0x4caed3(-_0x5e21fc._0x22b5a2,-0x18,-_0x5e21fc._0x5d8ec0,-0xbc)](_0xf2ac31=>_0xf2ac31[_0x4caed3(-0x79,-0x7,-0xb0,-0x139)]===_0x1f89a3['id']&&_0xf2ac31[_0x4caed3(-0x168,-0x109,-0x5d,-0x1a6)]===_0x1b33e7);if(_0x37f40e)return await _0x348089[_0x4caed3(-_0x5e21fc._0x196cc0,-0x10,0x47,_0x5e21fc._0x44e9a5)](),_0x37f40e;return _0x13b24d[_0x11f9cb(0x402,0x3ab,_0x5e21fc._0xd72361,_0x5e21fc._0x56c995)][_0x11f9cb(_0x5e21fc._0x102967,_0x5e21fc._0x102967,0x57d,_0x5e21fc._0x44a737)](_0x348089),_0x348089;}catch{return _0x13b24d[_0x11f9cb(0x5e9,_0x5e21fc._0x487961,_0x5e21fc._0xc2d267,_0x5e21fc._0x105547)][_0x4caed3(-0x7a,-_0x5e21fc._0x263b7b,-0x13f,-_0x5e21fc._0x3915de)](_0x294e64),void 0x0;}finally{_0x13b24d[_0x4caed3(0x53,_0x5e21fc._0x16932c,-0x68,_0x5e21fc._0x3e7e5b)]['delete'](_0x294e64);}})());return _0x13b24d[_0xfaaa82(_0x3d63be._0x565ff7,_0x3d63be._0x1c8012,0x4d9,0x58c)][_0xfaaa82(0x457,_0x3d63be._0x2a4de3,0x3e9,0x514)](_0x294e64,_0xc4ce36),_0xc4ce36;}async function _0x2a3de4(_0xed50e3,_0x3102a2){const _0x31e6dc={_0x16090d:0x7d,_0x48edf3:0xd},_0x23ea67={_0x2de5f4:0x1b5,_0x191480:0x17c};function _0x101f8d(_0x3c731a,_0x350024,_0x48a065,_0x18e85c){return _0x523e17(_0x350024- -0x8b,_0x350024-_0x23ea67._0x2de5f4,_0x3c731a,_0x18e85c-_0x23ea67._0x191480);}if(!_0x3afd8b())return[];const _0x46fba6=[];for(const _0x25f0d1 of getServersForFile(_0xed50e3)){const _0x564eb7=await _0x25f0d1['root'](_0xed50e3);if(!_0x564eb7)continue;const _0x456458=stateKey(_0x25f0d1,_0x564eb7);if(_0x13b24d[_0x101f8d(_0x5529dc._0x509f35,_0x5529dc._0x270cec,_0x5529dc._0x5816b4,_0x5529dc._0x237274)][_0xa95c85(0x3f2,0x2ef,0x2b9,_0x5529dc._0x406e2d)](_0x456458))continue;const _0x4d7cc0=_0x13b24d[_0x101f8d(-_0x5529dc._0x213e90,0x3e,-0xf7,-_0x5529dc._0x38c04b)][_0x101f8d(-_0x5529dc._0x47edec,0x26,-_0x5529dc._0x1bb842,-_0x5529dc._0x4a3231)](_0x5722c3=>_0x5722c3[_0xa95c85(0xca,0x17a,0x1c5,0x290)]===_0x25f0d1['id']&&_0x5722c3[_0x101f8d(0x18f,0xc5,0xe9,-0x70)]===_0x564eb7);if(_0x4d7cc0){_0x46fba6[_0xa95c85(0x371,0x26c,_0x5529dc._0x161578,_0x5529dc._0x3add0a)](_0x4d7cc0);continue;}if(!_0x3102a2)continue;const _0x336d67=await _0x33749c(_0x25f0d1,_0x564eb7);if(_0x336d67)_0x46fba6[_0xa95c85(_0x5529dc._0x2adf0a,0x26c,0x268,0x116)](_0x336d67);}function _0xa95c85(_0x1840b6,_0x598030,_0x49eacd,_0x1621ea){return _0x523e17(_0x598030-_0x31e6dc._0x16090d,_0x598030-_0x31e6dc._0x48edf3,_0x49eacd,_0x1621ea-0x180);}return _0x46fba6;}async function _0x1dd5c(_0x38b90c,_0x219e38=![]){const _0x3870ae={_0x43e1ab:0xd4},_0x59b1a3={_0x46484f:0xa4,_0x5143a1:0x1c4},_0x4ebdef={_0xad5591:0x5cc,_0x380e2d:0x1e1},_0xe3a171=await _0x2a3de4(_0x38b90c,!![]);function _0x12c0f3(_0x56484c,_0x42fa4b,_0x62632f,_0x5288bd){return _0x523e17(_0x5288bd-_0x4ebdef._0xad5591,_0x42fa4b-_0x4ebdef._0x380e2d,_0x62632f,_0x5288bd-0x69);}function _0x4974a9(_0x554e31,_0x3970a4,_0xbee7c2,_0x5e0996){return _0x523e17(_0x554e31-0x115,_0x3970a4-_0x59b1a3._0x46484f,_0xbee7c2,_0x5e0996-_0x59b1a3._0x5143a1);}await Promise[_0x12c0f3(_0x20c9fb._0x1801f4,0x7b6,0x6ef,_0x20c9fb._0x12ddaa)](_0xe3a171[_0x4974a9(_0x20c9fb._0x135371,_0x20c9fb._0xbf9c96,0x1fd,_0x20c9fb._0x181c7d)](async _0x18de99=>{const _0x1880e8={_0x37dc58:0x174};function _0x2e97b2(_0x2759b4,_0x53a05c,_0x520fbf,_0x4ff3b2){return _0x12c0f3(_0x2759b4-_0x3870ae._0x43e1ab,_0x53a05c-0x41,_0x2759b4,_0x520fbf- -0x793);}function _0x11fece(_0x34bec4,_0xa76b4e,_0x970255,_0x3c7d8c){return _0x4974a9(_0xa76b4e- -_0x1880e8._0x37dc58,_0xa76b4e-0x18d,_0x970255,_0x3c7d8c-0x1f0);}!_0x13b24d[_0x11fece(_0xd0660e._0x37c1d0,-0x2a,_0xd0660e._0x21e8f7,-0xa2)]['has'](_0x18de99[_0x2e97b2(-0x92,_0xd0660e._0x23c093,-0xca,-_0xd0660e._0x1870f6)]+':'+_0x18de99[_0x2e97b2(-_0xd0660e._0x33d8f0,-_0xd0660e._0x262846,-_0xd0660e._0x15a549,-0x133)]+':'+_0x38b90c)&&(await _0x18de99[_0x11fece(0x4e,_0xd0660e._0x29eed3,0x29f,0x1e4)][_0x2e97b2(-_0xd0660e._0x41f9ee,-_0xd0660e._0x569ec9,-_0xd0660e._0x527d3e,0x58)]({'path':_0x38b90c}),_0x13b24d[_0x11fece(-0x111,-0x2a,-_0xd0660e._0x203c1c,_0xd0660e._0x1be118)][_0x2e97b2(-_0xd0660e._0xb25570,-_0xd0660e._0x4548d7,-0x159,-_0xd0660e._0x3ec342)](_0x18de99[_0x2e97b2(_0xd0660e._0x35246b,-_0xd0660e._0x1c8272,-_0xd0660e._0x5e6e55,-_0xd0660e._0x38c256)]+':'+_0x18de99[_0x2e97b2(0x59,-_0xd0660e._0x3a355e,-0x77,-_0xd0660e._0x25fe0e)]+':'+_0x38b90c));await _0x18de99[_0x2e97b2(-0xbe,-_0xd0660e._0x1ce201,0x16,_0xd0660e._0x7f26d0)][_0x2e97b2(-0x1aa,-0x89,-_0xd0660e._0x51cc21,-0x1dc)]({'path':_0x38b90c,'version':nextFileVersion(_0x13b24d,_0x38b90c)});if(_0x219e38)await _0x18de99[_0x2e97b2(-0x118,0x13,-_0xd0660e._0x4f32e0,-0x13f)]({'path':_0x38b90c});}));}async function _0x1c1b8b(_0x15ee93){const _0x1b2b05={_0x15dc71:0x1c6,_0x23c47e:0x1f2};await _0x1dd5c(_0x15ee93['file'],![]);function _0x3e0489(_0x216667,_0x6ce785,_0x4a97f6,_0x3da5f6){return _0x523e17(_0x6ce785-_0x1b2b05._0x15dc71,_0x6ce785-0x10c,_0x3da5f6,_0x3da5f6-_0x1b2b05._0x23c47e);}return _0x2a3de4(_0x15ee93[_0x3e0489(_0x3c572d._0x47e25e,_0x3c572d._0x37399d,_0x3c572d._0x3fdcb5,0x258)],![]);}async function _0x2532f3(_0xd729f6){const _0x2c5078={_0x48f232:0x103,_0x24eadc:0x4d};function _0x568dff(_0x45e561,_0x206c54,_0x3acc90,_0x36893e){return _0x523e17(_0x206c54- -_0x2c5078._0x48f232,_0x206c54-0x3,_0x36893e,_0x36893e-_0x2c5078._0x24eadc);}function _0x258e75(_0x5dee36,_0x268830,_0x12ee4c,_0xc31d9f){return _0x523e17(_0x268830-0x16f,_0x268830-_0x5aedcc._0x1e5759,_0x5dee36,_0xc31d9f-0x26);}const _0x72ce09=await _0x1c1b8b(_0xd729f6);return collectClientResults(_0x72ce09[_0x568dff(-_0xf29f03._0x2a0cc8,-0x108,-_0xf29f03._0x7ed79a,-0x5c)](_0x5c5da4=>_0x5c5da4[_0x568dff(0x22a,0xee,-0xd,0xda)][_0x258e75(0x21d,0x292,0x18e,0x183)](_0xd729f6)));}function _0x523e17(_0x1c1a4e,_0x59408a,_0x1445c7,_0x5b8a96){return _0x567203(_0x1445c7,_0x59408a-_0x5e62b3._0x452ccc,_0x1c1a4e-_0x5e62b3._0x34a01e,_0x5b8a96-0x19c);}return{'isEnabled':_0x3afd8b,async 'hasClients'(_0x4bc29c){function _0x1e03ae(_0x3fbe9e,_0x3bc16e,_0x45143,_0x224456){return _0x523e17(_0x3bc16e-_0x2485d8._0x3a2bbd,_0x3bc16e-0x8b,_0x3fbe9e,_0x224456-0x1b3);}function _0x14d986(_0x24d253,_0x4e788c,_0x225c0b,_0x89999){return _0x523e17(_0x89999- -_0x3c6915._0x19a5a0,_0x4e788c-0x119,_0x24d253,_0x89999-0x7e);}return(await _0x2a3de4(_0x4bc29c,![]))[_0x1e03ae(_0x31b6a8._0x39edde,0x1ec,_0x31b6a8._0x9ae764,0x2c3)]>0x0||getServersForFile(_0x4bc29c)[_0x1e03ae(_0x31b6a8._0x2382fc,_0x31b6a8._0x32c8a1,_0x31b6a8._0x222ebc,0xa1)]>0x0;},'touchFile':_0x1dd5c,async 'diagnostics'(){function _0x9d9bd3(_0xf7b869,_0x266516,_0xd0fa6f,_0x144a9a){return _0x523e17(_0x266516- -_0x1b9fe1._0x1d0f8d,_0x266516-0x196,_0xf7b869,_0x144a9a-_0x1b9fe1._0x5a4c6d);}function _0x34e7a5(_0x65b5be,_0x4a2172,_0x2d1618,_0xd0bfc5){return _0x523e17(_0x2d1618-_0x4f7261._0xb92a2b,_0x4a2172-0x1ac,_0x4a2172,_0xd0bfc5-_0x4f7261._0x145ac5);}const _0x39ed03={};for(const _0x436020 of _0x13b24d[_0x9d9bd3(-0x1ce,-0xc9,0x4,-_0x2f6573._0x5b5c40)]){for(const [_0x1553da,_0x5ed1c6]of _0x436020[_0x9d9bd3(-0x112,-_0x2f6573._0x5ebd32,_0x2f6573._0x1e889f,-_0x2f6573._0x4b70e3)]){_0x39ed03[diagnosticsKeyToPath(_0x1553da)]=_0x5ed1c6;}}return _0x39ed03;},async 'diagnosticsForFile'(_0x2a8b41){const _0x564ec8={_0x158990:0x13d,_0x3de2d8:0x27};await _0x1dd5c(_0x2a8b41,!![]);function _0x55ac7a(_0x1128dd,_0x5ec066,_0x3814e0,_0xea4900){return _0x523e17(_0x3814e0-_0x564ec8._0x158990,_0x5ec066-0x9f,_0x5ec066,_0xea4900-_0x564ec8._0x3de2d8);}const _0x4497f9=[];for(const _0x32b3a2 of await _0x2a3de4(_0x2a8b41,![])){for(const [_0xcb16ff,_0x1727be]of _0x32b3a2[_0x55ac7a(0x152,0x2e2,0x221,0x378)]){if(diagnosticsKeyToPath(_0xcb16ff)===_0x2a8b41)_0x4497f9[_0x18e46e(_0x50ef84._0x50794a,0x587,_0x50ef84._0x5c1243,0x51e)](..._0x1727be);}}function _0x18e46e(_0x3eaed4,_0x22d161,_0x5788c3,_0x1c03fe){return _0x523e17(_0x5788c3-0x3c9,_0x22d161-_0x3983dc._0x3dfb2c,_0x1c03fe,_0x1c03fe-_0x3983dc._0x5a5098);}return _0x4497f9;},async 'definition'(_0x1b842c){const _0x2105a0={_0x41c6de:0x135};function _0x3c6938(_0x6a6fac,_0x4b8bba,_0x4d618f,_0x278ea1){return _0x523e17(_0x4d618f-_0x39fe8f._0xf98c9b,_0x4b8bba-0x62,_0x4b8bba,_0x278ea1-0x1f0);}function _0x28a993(_0x278714,_0x544980,_0x4e45ea,_0x105517){return _0x523e17(_0x544980- -_0x2105a0._0x41c6de,_0x544980-0xfb,_0x4e45ea,_0x105517-0x78);}return collectClientResults((await _0x1c1b8b(_0x1b842c))[_0x28a993(-0x218,-_0x27e74d._0xae09a4,-0x167,-0x224)](_0x430d52=>_0x430d52[_0x28a993(0x1fe,0xbc,0x16e,0x205)]['definition'](_0x1b842c)));},async 'references'(_0x6866cc){function _0x2844a2(_0x2e7ef5,_0x505bcf,_0x295c2b,_0x54c179){return _0x523e17(_0x54c179-0x158,_0x505bcf-0x167,_0x2e7ef5,_0x54c179-_0x3447f0._0x17cd88);}function _0x2442b6(_0x10b88b,_0x211572,_0x2b82f1,_0x170f0c){return _0x523e17(_0x211572- -0x102,_0x211572-0x17f,_0x170f0c,_0x170f0c-0x188);}return collectClientResults((await _0x1c1b8b(_0x6866cc))[_0x2844a2(0x126,_0xa6c360._0x100c61,0x26e,_0xa6c360._0x374377)](_0x32d881=>_0x32d881['request'][_0x2442b6(0x28d,0x16c,0x71,0x279)](_0x6866cc)));},async 'hover'(_0x431883){const _0x2fdc5d={_0x241d38:0xf6};function _0x5af93a(_0x1b068b,_0xf71043,_0x6dff82,_0x2b140c){return _0x523e17(_0x1b068b-0x25d,_0xf71043-_0x5d2450._0x321394,_0x2b140c,_0x2b140c-0x141);}function _0x114690(_0x41f29d,_0x185e85,_0x35a08e,_0x97045e){return _0x523e17(_0x97045e- -0x153,_0x185e85-_0x2fdc5d._0x241d38,_0x41f29d,_0x97045e-0xae);}const _0x22b8a4=await Promise[_0x5af93a(0x3e6,0x44e,_0x23491a._0x573d33,0x41c)]((await _0x1c1b8b(_0x431883))['map'](_0x5a9e48=>_0x5a9e48[_0x5af93a(0x44e,0x521,0x33b,0x51d)][_0x5af93a(0x3fa,0x403,0x526,0x3ec)](_0x431883)));return _0x22b8a4['flatMap'](_0x36cc83=>_0x36cc83[_0x114690(-0x1a,0x1b3,0xb,0x11d)]==='fulfilled'&&_0x36cc83[_0x5af93a(0x3d6,0x349,0x4d7,0x397)]?[_0x36cc83[_0x5af93a(0x3d6,0x3b5,0x29e,0x4a6)]]:[]);},async 'documentSymbol'(_0x1a6a98){return await _0x1dd5c(_0x1a6a98,![]),collectClientResults((await _0x2a3de4(_0x1a6a98,![]))['map'](_0x1b8a17=>_0x1b8a17['request']['documentSymbol'](_0x1a6a98)));},async 'workspaceSymbol'(_0x4ddfe9){const _0x5ee5b6={_0x36804e:0x17e};function _0x2c2932(_0x543650,_0x39bce7,_0x2018b7,_0xb0937f){return _0x523e17(_0xb0937f- -_0x5ee5b6._0x36804e,_0x39bce7-0x8e,_0x2018b7,_0xb0937f-0x2e);}function _0x1ce5d8(_0x3ccccf,_0x2e934c,_0x5a89e1,_0x24546d){return _0x523e17(_0x2e934c-0x5b2,_0x2e934c-0x194,_0x5a89e1,_0x24546d-0xb2);}return collectClientResults(_0x13b24d[_0x2c2932(-0x1dd,-0xeb,-_0x3729ae._0x39af2c,-_0x3729ae._0x2c3c3e)][_0x2c2932(-0x1a3,-0x289,-0x129,-0x183)](_0x4443d8=>_0x4443d8[_0x2c2932(0x17b,0x181,-0xb6,0x73)]['workspaceSymbol'](_0x4ddfe9)));},async 'implementation'(_0x2414ce){function _0x196419(_0x68fc60,_0x6062a,_0x2df417,_0x4e58b1){return _0x523e17(_0x68fc60-_0x218f08._0x39c42e,_0x6062a-_0x218f08._0x513997,_0x2df417,_0x4e58b1-_0x218f08._0x360182);}function _0x39cf68(_0x122985,_0x4ee7a4,_0x3fe07f,_0x2296c7){return _0x523e17(_0x2296c7-_0x5f3c6f._0x16eccd,_0x4ee7a4-0x4c,_0x3fe07f,_0x2296c7-_0x5f3c6f._0x59bbcd);}return collectClientResults((await _0x1c1b8b(_0x2414ce))[_0x39cf68(_0x3f903b._0x569170,_0x3f903b._0x5e06b3,0x283,_0x3f903b._0x5d3f22)](_0x20aa82=>_0x20aa82[_0x39cf68(0x42e,0x458,0x3e9,0x395)]['implementation'](_0x2414ce)));},async 'prepareCallHierarchy'(_0x505ed4){return _0x2532f3(_0x505ed4);},async 'incomingCalls'(_0xdd327c){const _0x55b640={_0x236bc2:0x1dd};function _0x556b0f(_0xa91430,_0x28fa8a,_0xf64374,_0x24ff6e){return _0x523e17(_0x28fa8a-_0x55b640._0x236bc2,_0x28fa8a-0xf4,_0xa91430,_0x24ff6e-0x187);}const _0x489c46=await _0x2532f3(_0xdd327c),_0x5b2b31=await _0x1c1b8b(_0xdd327c);function _0x2bd053(_0x2ea32a,_0x52a44f,_0x1a82a9,_0x2d54ac){return _0x523e17(_0x2d54ac-_0x2d4b66._0x4228b9,_0x52a44f-_0x2d4b66._0x120420,_0x52a44f,_0x2d54ac-_0x2d4b66._0x3944bd);}return collectClientResults(_0x5b2b31[_0x2bd053(_0x109ef5._0x5981e4,0x47e,0x318,_0x109ef5._0xf0e1d7)](_0x1664df=>_0x489c46[_0x2bd053(0x366,0x2cf,0x3d5,0x3a4)](_0x393fbc=>_0x1664df[_0x2bd053(0x5fa,0x5f7,0x61f,0x59a)][_0x556b0f(0x31f,0x1d5,0x1be,0x91)](_0x393fbc))));},async 'outgoingCalls'(_0xa9c693){const _0x5b1ac9={_0x338cbb:0x4a1,_0x3bb5a4:0x113},_0x4eb0b7={_0x2079b8:0x194,_0x52d0ac:0xca};function _0x2d31ab(_0x6be36d,_0x143ebd,_0x2edb9e,_0x34d315){return _0x523e17(_0x2edb9e-0xc6,_0x143ebd-_0x4eb0b7._0x2079b8,_0x143ebd,_0x34d315-_0x4eb0b7._0x52d0ac);}const _0x2f791a=await _0x2532f3(_0xa9c693),_0x298bce=await _0x1c1b8b(_0xa9c693);function _0x151e46(_0xb175d1,_0x596d99,_0x50574e,_0x1c810b){return _0x523e17(_0x596d99-_0x5b1ac9._0x338cbb,_0x596d99-_0x5b1ac9._0x3bb5a4,_0x1c810b,_0x1c810b-0x12a);}return collectClientResults(_0x298bce[_0x151e46(0x551,0x4e6,_0x11125a._0x3b0f1c,0x39c)](_0x3babf8=>_0x2f791a['map'](_0x1ddaa1=>_0x3babf8[_0x151e46(0x7ad,0x692,0x559,0x69a)][_0x151e46(0x5a3,0x69f,0x5c3,0x7f4)](_0x1ddaa1))));},async 'shutdown'(){const _0x4065e1={_0x5d4af1:0x174,_0x1ff99b:0x17d},_0x2e005a={_0x1d4820:0x1da,_0x532cef:0xf7,_0x53fc25:0xdf};if(_0x13b24d[_0x885983(0x34b,_0x54bff3._0x42a18c,_0x54bff3._0x1a8fdd,_0x54bff3._0x4b81bd)])return;function _0x885983(_0x16241e,_0x410614,_0x19c0fe,_0x19e83){return _0x523e17(_0x19c0fe-_0x2e005a._0x1d4820,_0x410614-_0x2e005a._0x532cef,_0x19e83,_0x19e83-_0x2e005a._0x53fc25);}_0x13b24d[_0x885983(0x417,_0x54bff3._0x21aca9,_0x54bff3._0x86abd3,_0x54bff3._0x2f27d7)]=!![],await Promise[_0xf4cbe(_0x54bff3._0x1444de,0x407,0x401,0x38a)](_0x13b24d[_0xf4cbe(_0x54bff3._0x56f42e,_0x54bff3._0x10668b,_0x54bff3._0x25615a,_0x54bff3._0x1d7af1)][_0x885983(_0x54bff3._0x433d05,0x2d8,_0x54bff3._0x10acab,_0x54bff3._0xe37c61)](_0x41264e=>_0x41264e[_0xf4cbe(0x396,0x31b,0x49f,0x3f5)]())),_0x13b24d['clients']=[];function _0xf4cbe(_0x23d74f,_0x14bfb0,_0xe14f2c,_0x43d293){return _0x523e17(_0x43d293-0x201,_0x14bfb0-_0x4065e1._0x5d4af1,_0x14bfb0,_0x43d293-_0x4065e1._0x1ff99b);}_0x13b24d['spawning'][_0xf4cbe(_0x54bff3._0x4a3325,_0x54bff3._0x4d14ac,_0x54bff3._0x4c7caf,0x2d2)](),_0x13b24d['broken'][_0xf4cbe(0x1f3,_0x54bff3._0x308fcf,0x280,0x2d2)](),_0x13b24d['fileVersions'][_0x885983(0x361,0x38c,_0x54bff3._0x581d2b,0x214)](),_0x13b24d[_0x885983(_0x54bff3._0x812716,0x28d,0x20f,0x236)][_0x885983(0x2c1,_0x54bff3._0x57a07b,_0x54bff3._0x5b6383,_0x54bff3._0x4a9d32)]();},'status'(){const _0x550c45={_0xcd11c6:0x1aa,_0x547541:0x19,_0x31d928:0x9c};function _0x34dfe1(_0x32a72e,_0x8358e2,_0x413e89,_0x36000c){return _0x523e17(_0x36000c-_0x550c45._0xcd11c6,_0x8358e2-_0x550c45._0x547541,_0x8358e2,_0x36000c-_0x550c45._0x31d928);}function _0x267bd9(_0x3f372e,_0x12e0b2,_0x2f942d,_0x13603a){return _0x523e17(_0x2f942d-0x29c,_0x12e0b2-0x15b,_0x13603a,_0x13603a-0x1eb);}return{'connectedClients':_0x13b24d[_0x267bd9(0x35c,_0x4e1edb._0xc6102f,_0x4e1edb._0x4ab6a4,0x244)][_0x34dfe1(_0x4e1edb._0x3d44f9,_0x4e1edb._0x65b775,0x2d1,_0x4e1edb._0x1df005)]};}};}function createQuestionId(){const _0x2656a8={_0x63a72d:0x7f,_0x265bd2:0x2ca,_0x18ce92:0x9d,_0x5232da:0x15a},_0x4c89bf={_0x20847e:0xaa},_0x2f067f={_0x991f51:0x124,_0x4c6845:0x1c7};function _0x2f381b(_0xbe9498,_0x16f8cb,_0x19620e,_0xceb4ee){return _0x29bb69(_0xbe9498-_0x2f067f._0x991f51,_0xceb4ee-0x9a,_0xbe9498,_0xceb4ee-_0x2f067f._0x4c6845);}function _0x439c74(_0x1be525,_0x201f7c,_0xb6b6fa,_0x525ae8){return _0x29bb69(_0x1be525-_0x4c89bf._0x20847e,_0x1be525-0x1e3,_0xb6b6fa,_0x525ae8-0x169);}return _0x2f381b(_0x2656a8._0x63a72d,-0x11b,-0x64,-0x22)+Date[_0x439c74(_0x2656a8._0x265bd2,0x36a,0x32e,0x279)]()+'-'+Math['random']()[_0x439c74(_0x2656a8._0x18ce92,_0x2656a8._0x5232da,0x5,-0x1e)](0x24)['slice'](0x2,0x9);}function validateInput(_0x1fe9b5){const _0x5c31e2={_0x456ede:0x2c1,_0x502eb2:0x213,_0x4e7be5:0x100,_0x381ef4:0x1a,_0x590f83:0x160,_0x18bda4:0x1e1,_0x596892:0x461,_0x4042d7:0x56d,_0x326341:0x526,_0x4fc407:0x66e,_0x28cfbe:0x5aa,_0x214ba4:0x526,_0x412ffc:0x1ae,_0x31afba:0xa,_0x3ab7ba:0x286,_0x2a8ca7:0x25f,_0x3e41a5:0x507,_0x213f51:0x38,_0x4bafc3:0x88,_0x2331bf:0x64,_0x132db3:0x211,_0xe6e5df:0x319,_0x4de177:0x394,_0x5cfc53:0x225,_0x2ed3c7:0x293,_0x5c4d2d:0x2b4,_0x72d6b8:0x1ce,_0x514f9c:0xf,_0x3fc1de:0xae,_0x4815a1:0x519,_0x30ecd3:0x71d,_0x5c956f:0x16b,_0x1bb41b:0x2fb,_0x17cd63:0x20d,_0x41e244:0x95,_0x2edbd2:0x166,_0x238f9b:0x1f4,_0x151fa3:0x30d,_0x3dbe8c:0x34b,_0x4a0408:0x44e,_0x1b39ac:0x5d9,_0x158d43:0x28f,_0x9954f7:0x35e,_0x33b250:0x594,_0x3ae0d3:0x504,_0x42ec2c:0x57c,_0x51795b:0x666,_0x89b126:0x75a,_0x5de5a0:0x5ee,_0x1b4766:0x62c,_0x795c0d:0x76e,_0x560978:0x666,_0x444b6:0x55b,_0x4a4819:0x21f,_0x9e4d08:0x1bd,_0x54782a:0x2a0,_0x1ea1c2:0x38c,_0x463fbf:0x2d9,_0x35e9a4:0x166,_0x3e0744:0x21e,_0x56da8f:0x5ec,_0x4e3ace:0x783,_0x479d9f:0x2e1,_0x54b146:0x24b,_0x4f8646:0x5bc,_0x40e20e:0x51b,_0x46c815:0x55c,_0x406aeb:0x523},_0x20291e={_0x333a20:0x59c},_0xfd7ee={_0xa3ea64:0x1ac,_0x254e46:0x1d6,_0xafbfd7:0x189};function _0x5de67b(_0x25349f,_0x31b18d,_0x252278,_0x48c52a){return _0x29bb69(_0x25349f-_0xfd7ee._0xa3ea64,_0x252278-_0xfd7ee._0x254e46,_0x48c52a,_0x48c52a-_0xfd7ee._0xafbfd7);}function _0x33b195(_0x4e3ab0,_0x38cc33,_0x10b8b6,_0xcfef59){return _0x29bb69(_0x4e3ab0-0x1dd,_0xcfef59-_0x20291e._0x333a20,_0x4e3ab0,_0xcfef59-0x124);}if(!Array[_0x5de67b(0x347,_0x5c31e2._0x456ede,_0x5c31e2._0x502eb2,_0x5c31e2._0x4e7be5)](_0x1fe9b5[_0x5de67b(_0x5c31e2._0x381ef4,0x14d,_0x5c31e2._0x590f83,_0x5c31e2._0x18bda4)])||_0x1fe9b5[_0x33b195(_0x5c31e2._0x596892,0x47c,_0x5c31e2._0x4042d7,_0x5c31e2._0x326341)]['length']<0x1||_0x1fe9b5[_0x33b195(_0x5c31e2._0x4fc407,_0x5c31e2._0x28cfbe,0x429,_0x5c31e2._0x214ba4)][_0x5de67b(0x134,_0x5c31e2._0x412ffc,0x88,-_0x5c31e2._0x31afba)]>0xa)throw new ToolExecutionError(_0x5de67b(_0x5c31e2._0x3ab7ba,0x3ad,0x2e4,_0x5c31e2._0x2a8ca7),{'error':'invalid_questions'});for(let _0x349089=0x0;_0x349089<_0x1fe9b5[_0x33b195(0x4ca,0x47b,_0x5c31e2._0x3e41a5,0x526)][_0x5de67b(-_0x5c31e2._0x213f51,-0x2f,_0x5c31e2._0x4bafc3,-_0x5c31e2._0x2331bf)];_0x349089+=0x1){const _0x273a10=_0x1fe9b5[_0x5de67b(0x297,0x1bc,0x160,0x13d)][_0x349089];if(!_0x273a10['question']||typeof _0x273a10[_0x5de67b(_0x5c31e2._0x132db3,0x2f5,_0x5c31e2._0xe6e5df,_0x5c31e2._0x4de177)]!==_0x5de67b(_0x5c31e2._0x5cfc53,_0x5c31e2._0x2ed3c7,0x153,0x102))throw new ToolExecutionError(_0x5de67b(_0x5c31e2._0x5c4d2d,0x18f,0x266,_0x5c31e2._0x72d6b8)+(_0x349089+0x1)+_0x5de67b(_0x5c31e2._0x514f9c,_0x5c31e2._0x3fc1de,0xc0,0x15));if(!_0x273a10[_0x33b195(_0x5c31e2._0x4815a1,_0x5c31e2._0x30ecd3,0x536,0x5eb)]||typeof _0x273a10[_0x5de67b(_0x5c31e2._0x5c956f,0x2cd,0x225,_0x5c31e2._0x1bb41b)]!=='string')throw new ToolExecutionError(_0x5de67b(0x2e8,0x34b,0x266,_0x5c31e2._0x17cd63)+(_0x349089+0x1)+':\x20\x22topic\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(_0x273a10['topic'][_0x5de67b(-0x3c,0x153,0x88,-_0x5c31e2._0x514f9c)]>0x1e)throw new ToolExecutionError(_0x5de67b(0x360,0x393,0x266,0x220)+(_0x349089+0x1)+_0x5de67b(-0x91,0x2a,_0x5c31e2._0x41e244,0x1e8)+_0x273a10[_0x5de67b(_0x5c31e2._0x2edbd2,_0x5c31e2._0x238f9b,0x225,_0x5c31e2._0x151fa3)][_0x33b195(_0x5c31e2._0x3dbe8c,0x571,0x3f6,_0x5c31e2._0x4a0408)]);if(!Array[_0x33b195(0x646,0x50e,0x488,_0x5c31e2._0x1b39ac)](_0x273a10[_0x5de67b(_0x5c31e2._0x158d43,_0x5c31e2._0x9954f7,0x2a0,0x3d6)])||_0x273a10['options'][_0x33b195(_0x5c31e2._0x33b250,_0x5c31e2._0x3ae0d3,0x439,0x44e)]<0x2||_0x273a10[_0x33b195(0x6a4,_0x5c31e2._0x42ec2c,0x67a,_0x5c31e2._0x51795b)]['length']>0x4)throw new ToolExecutionError(_0x33b195(_0x5c31e2._0x89b126,0x65d,_0x5c31e2._0x5de5a0,_0x5c31e2._0x1b4766)+(_0x349089+0x1)+':\x20must\x20have\x202-4\x20options');for(let _0x2b9d19=0x0;_0x2b9d19<_0x273a10[_0x33b195(0x53f,_0x5c31e2._0x795c0d,0x581,_0x5c31e2._0x560978)][_0x33b195(0x521,0x4ae,_0x5c31e2._0x444b6,0x44e)];_0x2b9d19+=0x1){const _0x2ce090=_0x273a10[_0x5de67b(_0x5c31e2._0x4a4819,_0x5c31e2._0x9e4d08,_0x5c31e2._0x54782a,_0x5c31e2._0x1ea1c2)][_0x2b9d19];if(!_0x2ce090[_0x5de67b(_0x5c31e2._0x463fbf,0x24e,0x1ab,0x299)]||!_0x2ce090[_0x5de67b(-0x4a,0x1eb,0xcc,0x144)])throw new ToolExecutionError(_0x5de67b(_0x5c31e2._0x35e9a4,0x38d,0x266,_0x5c31e2._0x3e0744)+(_0x349089+0x1)+_0x33b195(_0x5c31e2._0x56da8f,_0x5c31e2._0x4e3ace,0x754,0x675)+(_0x2b9d19+0x1)+':\x20both\x20\x22label\x22\x20and\x20\x22description\x22\x20are\x20required');}if(typeof _0x273a10[_0x5de67b(_0x5c31e2._0x479d9f,_0x5c31e2._0x54b146,0x23f,0x379)]!==_0x33b195(_0x5c31e2._0x4f8646,_0x5c31e2._0x40e20e,_0x5c31e2._0x46c815,_0x5c31e2._0x406aeb))throw new ToolExecutionError(_0x5de67b(0x224,0x392,0x266,0x282)+(_0x349089+0x1)+_0x33b195(0x59f,0x5d4,0x5da,0x6b0));}}function buildQuestions(_0x1804ac){const _0x21f336={_0x52d874:0x48d,_0x476e81:0x565},_0x41702d={_0x44cb70:0x46},_0x5b017f={_0xe2a6e8:0x24};function _0x36ef4d(_0x3dd160,_0x327677,_0x674ca,_0x591eb1){return _0x567203(_0x591eb1,_0x327677-0xb1,_0x3dd160-0x3a2,_0x591eb1-_0x5b017f._0xe2a6e8);}function _0x4fbb8a(_0xf1a3b1,_0x231047,_0x1581a9,_0x44190f){return _0x29bb69(_0xf1a3b1-0xc9,_0x44190f- -_0x41702d._0x44cb70,_0x231047,_0x44190f-0x1f4);}return _0x1804ac[_0x36ef4d(0x460,_0x21f336._0x52d874,_0x21f336._0x476e81,0x47e)]['map']((_0x1243b0,_0x41a744)=>({'id':'q'+_0x41a744,'question':_0x1243b0[_0x36ef4d(0x619,0x6c2,0x4e6,0x58d)],'topic':_0x1243b0[_0x4fbb8a(0x68,0x65,-0x14e,0x9)],'options':_0x1243b0[_0x4fbb8a(-0xd1,0x1ac,0x76,0x84)],'multiSelect':_0x1243b0[_0x36ef4d(0x53f,0x615,0x544,0x4fb)]}));}function createResult(_0x39ba5c,_0x1d2c34,_0x12a4db){const _0xd278f1={_0x11e182:0xc},_0x23e223={_0x36fbbf:0x52,_0x4b29ca:0x1d1};function _0x369ee0(_0x5e9c6f,_0x596cb1,_0x4b866b,_0x333a91){return _0x29bb69(_0x5e9c6f-0xe3,_0x596cb1-_0x23e223._0x36fbbf,_0x333a91,_0x333a91-_0x23e223._0x4b29ca);}const _0x592e2e={'questionId':_0x39ba5c,'questionCount':_0x1d2c34,'answers':_0x12a4db};return createToolOutput(_0x369ee0(-0xfe,-0xa3,_0xd278f1._0x11e182,0x2d)+JSON['stringify'](_0x12a4db,null,0x2),_0x592e2e);}function createAskUserTool(){const _0x43c730={_0x42ebf0:0xdd,_0x4e2453:0x47,_0x239154:0x83,_0x56cf92:0x4f,_0x11a49e:0x1ca,_0x2a57ec:0x23e,_0x57aa16:0x159,_0x5b0086:0x33,_0x342a4a:0x34,_0x16f805:0x4e,_0x47fa5b:0x28b,_0x4236e4:0x29b,_0x13ffbe:0x159,_0x345e07:0x1c4,_0x21ad1d:0x1ea,_0x5c0d6f:0xe1,_0x4aa1d3:0x1bf,_0x410a36:0x2c,_0x79d37b:0x1a5,_0x2d3a6b:0x5a,_0x3e0fe2:0x2b0,_0x30c6d8:0x249,_0x3b1332:0x167,_0x5f0d85:0x8,_0x2d8dcd:0x6,_0x498073:0x10b},_0x12043a={_0x492d21:0x5f6,_0x3981b9:0x5da,_0x1190f8:0x5c3,_0x2bc12b:0x1af,_0x1cba05:0x1a3,_0x17358d:0x211,_0x55723b:0x729,_0x473b8e:0x617,_0x526a42:0x675,_0x443df6:0x75d,_0x3e7ca8:0x135,_0x108210:0x3a6,_0x146e80:0x39d,_0x299319:0x481,_0x48fb71:0x431,_0x3e5605:0x280,_0x4d20a4:0x256},_0x2f701a={_0x5c1157:0x1e},_0x4850b8={_0x4fade9:0x24};function _0x188c50(_0xf0e1fe,_0x281786,_0x3911bf,_0x30ea29){return _0x29bb69(_0xf0e1fe-0x7b,_0x30ea29-_0x4850b8._0x4fade9,_0x3911bf,_0x30ea29-0x131);}function _0x5ac1ab(_0x43d3d2,_0x322c17,_0x19d22a,_0x496808){return _0x29bb69(_0x43d3d2-0x104,_0x496808-0x164,_0x43d3d2,_0x496808-_0x2f701a._0x5c1157);}return defineTool({'name':_0x188c50(0x98,-0x32,_0x43c730._0x42ebf0,_0x43c730._0x4e2453),'description':_0x188c50(_0x43c730._0x239154,-_0x43c730._0x56cf92,-0x118,-0xc),'inputSchema':{'type':_0x188c50(0x105,0x1cd,0x179,0x108),'properties':{'questions':{'type':_0x5ac1ab(_0x43c730._0x11a49e,_0x43c730._0x2a57ec,0x1a,_0x43c730._0x57aa16),'items':{'type':_0x188c50(_0x43c730._0x5b0086,0x205,-_0x43c730._0x342a4a,0x108),'properties':{'question':{'type':'string'},'topic':{'type':_0x5ac1ab(0x1d6,_0x43c730._0x16f805,0x235,0xe1)},'options':{'type':_0x5ac1ab(_0x43c730._0x47fa5b,_0x43c730._0x4236e4,0x2ac,_0x43c730._0x13ffbe),'items':{'type':_0x188c50(0x69,-0x4b,_0x43c730._0x345e07,0x108),'properties':{'label':{'type':_0x5ac1ab(0x206,_0x43c730._0x21ad1d,0x59,_0x43c730._0x5c0d6f)},'description':{'type':'string'}},'required':[_0x5ac1ab(0x242,_0x43c730._0x4aa1d3,0x10a,0x139),_0x5ac1ab(-_0x43c730._0x410a36,0xb8,_0x43c730._0x79d37b,_0x43c730._0x2d3a6b)]}},'multiSelect':{'type':'boolean'}},'required':[_0x188c50(_0x43c730._0x3e0fe2,0x1e6,_0x43c730._0x30c6d8,_0x43c730._0x3b1332),_0x188c50(0x1ae,-_0x43c730._0x5f0d85,_0x43c730._0x2d8dcd,0x73),_0x188c50(_0x43c730._0x498073,0x1ed,0x1e4,0xee),'multiSelect']}},'answers':{'type':'object','properties':{}}},'required':['questions']},async *'execute'(_0x3ee657,_0x17528d){const _0x167b77={_0x2b84d3:0x19e,_0x534fdf:0x63,_0x1d867e:0x576},_0x15bc85={_0x21088d:0x103},_0x22cdfc=_0x3ee657;validateInput(_0x22cdfc);function _0x4812c9(_0x18b78c,_0xb6ca29,_0x83adb9,_0x2b9a2c){return _0x5ac1ab(_0x83adb9,_0xb6ca29-0xb4,_0x83adb9-_0x15bc85._0x21088d,_0xb6ca29-0x192);}const _0x4c7130=_0x17528d[_0x223d84(_0x12043a._0x492d21,0x705,_0x12043a._0x3981b9,_0x12043a._0x1190f8)]??createQuestionId();if(_0x22cdfc[_0x4812c9(_0x12043a._0x2bc12b,_0x12043a._0x1cba05,0x80,_0x12043a._0x17358d)]&&Object[_0x223d84(_0x12043a._0x55723b,0x5b2,0x655,_0x12043a._0x473b8e)](_0x22cdfc['answers'])['length']>0x0)return createResult(_0x4c7130,_0x22cdfc[_0x223d84(_0x12043a._0x526a42,_0x12043a._0x443df6,0x689,0x664)]['length'],_0x22cdfc[_0x4812c9(_0x12043a._0x3e7ca8,0x1a3,0xaf,0x2ab)]);function _0x223d84(_0x408908,_0x4d364f,_0x6330d9,_0x281b8b){return _0x5ac1ab(_0x408908,_0x4d364f-_0x167b77._0x2b84d3,_0x6330d9-_0x167b77._0x534fdf,_0x281b8b-_0x167b77._0x1d867e);}if(!_0x17528d['askUser'])throw new ToolExecutionError(_0x4812c9(_0x12043a._0x108210,_0x12043a._0x146e80,_0x12043a._0x299319,_0x12043a._0x48fb71));const _0x150de5=buildQuestions(_0x22cdfc),_0x5c9aa5=await _0x17528d['askUser']({'questionId':_0x4c7130,'questions':_0x150de5});yield createResult(_0x4c7130,_0x22cdfc[_0x4812c9(0x2d4,_0x12043a._0x3e5605,0x2bb,_0x12043a._0x4d20a4)][_0x4812c9(0x211,0x1a8,0x18a,0x194)],_0x5c9aa5);}});}import{spawn as _0x5f0d5f}from'child_process';import{statSync}from'fs';import*as _0x3d01ca from'os';import*as _0x5eb127 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x40d5e2 from'path';function isPathInside(_0x560d99,_0x19f977){const _0x3fa897={_0x21c4e8:0x134,_0x48b175:0xff,_0x3f42d9:0x1af,_0x2298e0:0x45e,_0x59c94a:0x488,_0x2a8402:0x336,_0x4180be:0x9b,_0x3bcf87:0x1be,_0x2fbc6b:0x189},_0x54507a={_0x5630d9:0x4b},_0x5956c0={_0x7a7130:0x481,_0x41c5b4:0x1a4};function _0x2e317d(_0x35e824,_0xe56336,_0x450c33,_0x764ca){return _0x567203(_0xe56336,_0xe56336-0x63,_0x450c33-_0x5956c0._0x7a7130,_0x764ca-_0x5956c0._0x41c5b4);}const _0x25472f=_0x40d5e2[_0x47d731(-_0x3fa897._0x21c4e8,-_0x3fa897._0x48b175,-_0x3fa897._0x3f42d9,0x35)](_0x560d99);function _0x47d731(_0x4d90f4,_0x3ade6a,_0x2ed10a,_0x497ee4){return _0x29bb69(_0x4d90f4-0x103,_0x3ade6a- -0x71,_0x4d90f4,_0x497ee4-_0x54507a._0x5630d9);}const _0x363c32=_0x40d5e2[_0x47d731(-0x123,-0x130,-0x13f,-0xa8)](_0x25472f,_0x19f977);return _0x363c32===''||!_0x363c32[_0x2e317d(0x48a,_0x3fa897._0x2298e0,_0x3fa897._0x59c94a,_0x3fa897._0x2a8402)]('..')&&!_0x40d5e2[_0x47d731(-0x12,_0x3fa897._0x4180be,_0x3fa897._0x3bcf87,_0x3fa897._0x2fbc6b)](_0x363c32);}function resolveWorkspacePath(_0x44d1ae,_0x24dd9c){return resolveAllowedPath(_0x44d1ae,[],_0x24dd9c);}function resolveAllowedPath(_0x131720,_0x4827ce,_0x5a9065){const _0x308379={_0x2fdc1d:0x132,_0x49caf0:0x5,_0x13aaf3:0xee,_0xede733:0x23,_0x515405:0xe1,_0x49c086:0x5,_0x19d72a:0xae,_0xf03041:0x10a,_0x488046:0x13c,_0x51d228:0x22,_0x4b2a3e:0x1b6,_0x5e2a52:0x12a,_0x30504e:0x87,_0x88c155:0x237,_0x354ab9:0xa1,_0x1200e3:0x2de},_0x3cc7ec={_0x2f1233:0x30,_0x1db072:0x7c},_0x61ed2b={_0x49ed94:0x89};function _0x49bad2(_0x4615df,_0x1ebaaa,_0x2e4d88,_0x3479ca){return _0x29bb69(_0x4615df-0x1f0,_0x1ebaaa-_0x61ed2b._0x49ed94,_0x4615df,_0x3479ca-0x195);}const _0x400912=_0x40d5e2[_0x49bad2(_0x308379._0x2fdc1d,-_0x308379._0x49caf0,-_0x308379._0x13aaf3,_0x308379._0xede733)](_0x131720);function _0x154297(_0x4a4ee9,_0x2b96be,_0x520193,_0x52e3a6){return _0x567203(_0x4a4ee9,_0x2b96be-_0x3cc7ec._0x2f1233,_0x520193- -0x1a,_0x52e3a6-_0x3cc7ec._0x1db072);}const _0x210303=_0x40d5e2[_0x49bad2(_0x308379._0x515405,-_0x308379._0x49c086,-_0x308379._0x19d72a,-_0x308379._0xf03041)](_0x400912,_0x5a9065),_0x2271e7=[_0x400912,..._0x4827ce[_0x154297(0x1a,-_0x308379._0x488046,-_0x308379._0x51d228,-0x12)](_0x3adbd2=>_0x40d5e2[_0x49bad2(0x5a,-0x5,0x4d,0xd8)](_0x3adbd2))];if(_0x2271e7[_0x154297(_0x308379._0x4b2a3e,_0x308379._0x5e2a52,0x164,_0x308379._0x30504e)](_0x43b30d=>isPathInside(_0x43b30d,_0x210303)))return _0x210303;throw new ToolExecutionError(_0x49bad2(_0x308379._0x88c155,0x188,_0x308379._0x354ab9,_0x308379._0x1200e3)+_0x5a9065,{'path':_0x5a9065,'rootDir':_0x400912,'allowedDirs':_0x2271e7});}async function assertWorkspaceFile(_0x176a03){const _0x2b688e={_0xbfcb69:0xab,_0x3ed758:0x5ab},_0x33464f={_0x583d08:0x5,_0x4aad35:0x6a8};function _0xcd3299(_0x322842,_0x134611,_0x30f17b,_0x307567){return _0x29bb69(_0x322842-0x66,_0x30f17b-0x82,_0x322842,_0x307567-0x1a0);}function _0x2b4b62(_0x1b9564,_0x167bc9,_0x432121,_0x2cdf3e){return _0x29bb69(_0x1b9564-_0x33464f._0x583d08,_0x2cdf3e-_0x33464f._0x4aad35,_0x1b9564,_0x2cdf3e-0x168);}const _0x1c586d=await stat(_0x176a03);if(!_0x1c586d[_0xcd3299(0x198,_0x2b688e._0xbfcb69,0x49,-0xd7)]())throw new ToolExecutionError(_0x2b4b62(0x80f,0x71f,_0x2b688e._0x3ed758,0x6f8)+_0x176a03,{'path':_0x176a03});}function isProbablyBinary(_0x296bfc){const _0x32a17d={_0x3e1d6a:0x105,_0x261c6b:0x13b,_0x5d7afc:0x117},_0x4c16da={_0xd14a64:0x102};function _0x4e9d48(_0x1907d9,_0x566209,_0x441479,_0x59025d){return _0x29bb69(_0x1907d9-0x1a3,_0x59025d-_0x4c16da._0xd14a64,_0x1907d9,_0x59025d-0x1ac);}return _0x296bfc[_0x4e9d48(_0x32a17d._0x3e1d6a,_0x32a17d._0x261c6b,0x5f,_0x32a17d._0x5d7afc)](0x0);}var DEFAULT_DESCRIPTION=_0x29bb69(0x0,-0x143,-0x171,-0x55),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x47f287){return _0x47f287 instanceof Error;}function shellExists(_0x34eee2){const _0x5b0598={_0x4e6690:0x416,_0x5f4788:0x3b9,_0x161de3:0x5ef,_0x2137e6:0x5f6},_0x139a8f={_0x2c8efc:0xcd},_0x41a85f={_0x14dd94:0x1f,_0x1de47d:0x194};function _0x6edd81(_0x35a346,_0x217fad,_0x47ebdf,_0x98ba9d){return _0x567203(_0x35a346,_0x217fad-_0x41a85f._0x14dd94,_0x217fad- -_0x41a85f._0x1de47d,_0x98ba9d-0xc2);}function _0x7136d5(_0x27a50d,_0x3d53ef,_0x51f629,_0x5c0118){return _0x29bb69(_0x27a50d-0x7b,_0x51f629-0x3f2,_0x27a50d,_0x5c0118-_0x139a8f._0x2c8efc);}try{const _0x511dfc=statSync(_0x34eee2);return _0x511dfc[_0x7136d5(0x30d,_0x5b0598._0x4e6690,_0x5b0598._0x5f4788,0x35b)]()&&(_0x511dfc[_0x7136d5(_0x5b0598._0x161de3,0x3d0,0x4c7,_0x5b0598._0x2137e6)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x4f2bcc){const _0x192253={_0xb9add7:0x292,_0x3e1736:0x189,_0x4aef75:0x118,_0x53756e:0x2ec,_0x3dbba1:0x1ae,_0x5d7faf:0x2d1,_0x512288:0x2da,_0x93e713:0x1c4,_0x4e4189:0x397,_0x1c0c5f:0x161,_0x4aef85:0x124,_0x49b027:0x292,_0x3db364:0x2af,_0x469885:0x27d,_0x3cd8f2:0x218,_0x2b3dde:0x286,_0x1f9c39:0x28b},_0x2872b6={_0x59acd9:0x117,_0x5db5c3:0x1f6,_0x4f4823:0x41},_0xf6fe97={_0x2c501c:0x35b};if(_0x4f2bcc)return _0x4f2bcc;if(_0x3d01ca[_0x53144f(0x195,_0x192253._0xb9add7,0x27d,_0x192253._0x3e1736)]()==='win32')return process[_0x53144f(0x196,_0x192253._0x4aef75,_0x192253._0x53756e,_0x192253._0x3dbba1)][_0x347090(0x3b0,0x346,_0x192253._0x5d7faf,0x334)]||'cmd.exe';const _0x5b9374=['/bin/bash',_0x347090(0x36f,0x24a,_0x192253._0x512288,0x27a),_0x53144f(0x271,_0x192253._0x93e713,_0x192253._0x4e4189,_0x192253._0x1c0c5f),'/usr/bin/sh'];for(const _0x19a243 of _0x5b9374){if(shellExists(_0x19a243))return _0x19a243;}function _0x347090(_0x1fecd6,_0x39e2fc,_0x4efe8b,_0x1bb28a){return _0x29bb69(_0x1fecd6-0xfa,_0x39e2fc-_0xf6fe97._0x2c501c,_0x1fecd6,_0x1bb28a-0x112);}const _0x3638b4=process[_0x53144f(0x196,0x215,_0x192253._0x4aef85,_0x192253._0x49b027)][_0x347090(_0x192253._0x3db364,_0x192253._0x469885,0x39c,_0x192253._0x3cd8f2)];if(_0x3638b4&&shellExists(_0x3638b4))return _0x3638b4;function _0x53144f(_0x3840c4,_0x1922b2,_0x52edc6,_0x6922ec){return _0x29bb69(_0x3840c4-_0x2872b6._0x59acd9,_0x3840c4-_0x2872b6._0x5db5c3,_0x52edc6,_0x6922ec-_0x2872b6._0x4f4823);}return _0x347090(0x2ac,0x24c,_0x192253._0x2b3dde,_0x192253._0x1f9c39);}function buildShellArgs(_0x2abff6,_0x31caad){const _0xdc2223={_0x3d2cea:0x44,_0x510f51:0x183,_0x1b802d:0x5b,_0x87165f:0x33e,_0x28598a:0x204,_0x2d6b0c:0x2a0,_0x2517c7:0x246},_0x56b94f={_0x55bdba:0x19f,_0x3fffe7:0x22,_0x4e6da6:0x23},_0x4184ce={_0x2a529f:0x70};function _0xe869cc(_0x1d1d54,_0xdddc02,_0x26499c,_0x4274c8){return _0x29bb69(_0x1d1d54-_0x4184ce._0x2a529f,_0x26499c-0x169,_0xdddc02,_0x4274c8-0x18);}function _0x18fee3(_0x470376,_0x5d7721,_0x144124,_0x129ea3){return _0x567203(_0x144124,_0x5d7721-_0x56b94f._0x55bdba,_0x5d7721-_0x56b94f._0x3fffe7,_0x129ea3-_0x56b94f._0x4e6da6);}if(_0x3d01ca[_0xe869cc(0x115,_0xdc2223._0x3d2cea,0x108,0xcd)]()===_0xe869cc(_0xdc2223._0x510f51,0x15b,0x56,-_0xdc2223._0x1b802d)){const _0x17e2b7=/cmd(\.exe)?$/i['test'](_0x31caad);return _0x17e2b7?['/d','/s','/c',_0x2abff6]:['-NoLogo',_0xe869cc(0x1c2,0x2b4,0x247,_0xdc2223._0x87165f),_0x18fee3(_0xdc2223._0x28598a,0x19e,_0xdc2223._0x2d6b0c,_0xdc2223._0x2517c7),_0x2abff6];}return['-c',_0x2abff6];}function resolveCarriageReturns(_0x25ca59){const _0x32d020={_0x2ed14a:0x5b,_0x5cb9ec:0xf5,_0x5220d9:0x1e7,_0x489866:0x122,_0xedd024:0xb1,_0x503461:0xdd},_0x5a16de={_0x2bde37:0xd0,_0x2e3828:0x287,_0x3835d0:0x293,_0x5e93a1:0x139},_0x5b21fc={_0x560ff9:0x128,_0x1c043f:0xe9},_0x3000a5={_0x4e3f33:0xcb},_0x410b89={_0x49ca16:0x1df};function _0x4e7bfc(_0x4c9c0d,_0x55d824,_0x3f34b0,_0x1b88eb){return _0x567203(_0x3f34b0,_0x55d824-0x59,_0x55d824- -_0x410b89._0x49ca16,_0x1b88eb-0x1f);}function _0x558206(_0x439ed7,_0x14ac97,_0x4433bd,_0x3bbaa5){return _0x29bb69(_0x439ed7-_0x3000a5._0x4e3f33,_0x14ac97- -0x6d,_0x439ed7,_0x3bbaa5-0x126);}return _0x25ca59[_0x4e7bfc(-_0x32d020._0x2ed14a,-_0x32d020._0x5cb9ec,-0x8f,-0x1f5)]('\x0a')[_0x4e7bfc(-0x2ba,-_0x32d020._0x5220d9,-_0x32d020._0x489866,-0x1d5)](_0x4ae547=>{const _0x4fc6f9={_0x103ae6:0xd7,_0x5740f2:0xdb};function _0x3264f7(_0x120623,_0xeaa03,_0x197e60,_0x404a2d){return _0x558206(_0x197e60,_0x120623-_0x5b21fc._0x560ff9,_0x197e60-_0x5b21fc._0x1c043f,_0x404a2d-0xd9);}if(!_0x4ae547[_0x3264f7(_0x5a16de._0x2bde37,-0x1d,-0x15,0x4)]('\x0d'))return _0x4ae547;function _0x590056(_0x1c8cc3,_0x4bb97f,_0x731b40,_0x594291){return _0x4e7bfc(_0x1c8cc3-_0x4fc6f9._0x103ae6,_0x594291-0x376,_0x1c8cc3,_0x594291-_0x4fc6f9._0x5740f2);}const _0x47323e=_0x4ae547['split']('\x0d');return _0x47323e[_0x47323e[_0x590056(_0x5a16de._0x2e3828,_0x5a16de._0x3835d0,_0x5a16de._0x5e93a1,0x17d)]-0x1]??'';})[_0x4e7bfc(-0x122,-_0x32d020._0xedd024,-_0x32d020._0x503461,-0x10a)]('\x0a');}function resolveBackspaces(_0x29903b){const _0xca9e4e={_0x582c49:0x49c,_0x236cfb:0x451,_0x4dd815:0x531,_0xf3139c:0x5ca},_0xeda0d3={_0x1e29ee:0x686,_0x1300bd:0x5c},_0x48c706={_0x3bc97c:0xa0,_0x27e9a4:0x3ed,_0x25a635:0x113},_0x589612=[];for(const _0x20519a of Array[_0x58d0ab(_0xca9e4e._0x582c49,0x3f5,_0xca9e4e._0x236cfb,0x4bc)](_0x29903b)){_0x20519a==='\x08'?_0x589612['pop']():_0x589612[_0x58d0ab(0x562,_0xca9e4e._0x4dd815,_0xca9e4e._0xf3139c,0x5d9)](_0x20519a);}function _0x58d0ab(_0x478f27,_0x38366a,_0x49d0f4,_0x3638e5){return _0x567203(_0x49d0f4,_0x38366a-_0x48c706._0x3bc97c,_0x3638e5-_0x48c706._0x27e9a4,_0x3638e5-_0x48c706._0x25a635);}function _0x5b9810(_0x2bf688,_0x28ea18,_0x12b6ed,_0x4e2106){return _0x29bb69(_0x2bf688-0x130,_0x28ea18-_0xeda0d3._0x1e29ee,_0x12b6ed,_0x4e2106-_0xeda0d3._0x1300bd);}return _0x589612['join']('');}function stripAnsiAndControls(_0x4e88ec){const _0x1c27e8={_0x6ce669:0x200,_0x43f379:0x25,_0x1fdc28:0x2d,_0x22f22a:0x65,_0x47b3db:0xbf,_0x8f73bf:0x59,_0x238481:0x46,_0x3e38c2:0x35f,_0xcea36a:0x53,_0x564466:0x0,_0x41d3fb:0x43a,_0x69584a:0x4df,_0x4250c9:0xd,_0x15e812:0x35,_0x2ae01d:0x29,_0x1a629b:0xf1,_0x31221e:0x1c,_0x21e9ec:0x22b,_0xd92ac2:0x1fd,_0x312b07:0x283,_0x6ec741:0x5eb,_0x5bf986:0x574,_0x3755b7:0x15a,_0x344a53:0x13d,_0x1e093e:0xd2,_0x2bdfa7:0x7a},_0x17df06={_0x2948f5:0x1ce,_0x3f804d:0x450,_0x1bbbf1:0x1d6},_0x45d273={_0x83b3a3:0x1da,_0xcf1789:0x1b5};_0x4e88ec=resolveCarriageReturns(_0x4e88ec),_0x4e88ec=resolveBackspaces(_0x4e88ec),_0x4e88ec=stripVTControlCharacters(_0x4e88ec);const _0x4e5cad='\x1b',_0x5acfa0='\x07';_0x4e88ec=_0x4e88ec[_0x2b28af(-0xf1,-_0x1c27e8._0x6ce669,-0x163,-0x21b)](new RegExp(_0x2b28af(0x6f,-_0x1c27e8._0x43f379,0x188,0x20)+_0x5acfa0+_0x2b28af(-_0x1c27e8._0x1fdc28,_0x1c27e8._0x22f22a,-_0x1c27e8._0x47b3db,0xa4)+_0x5acfa0,'g'),''),_0x4e88ec=_0x4e88ec[_0x2b28af(-0xf1,0x1,-_0x1c27e8._0x8f73bf,-_0x1c27e8._0x238481)](new RegExp(_0x1b0870(0x41a,0x469,0x4bb,_0x1c27e8._0x3e38c2)+_0x4e5cad+'\x5c\x5c','g'),''),_0x4e88ec=_0x4e88ec[_0x2b28af(-0xf1,-0x1e1,_0x1c27e8._0xcea36a,_0x1c27e8._0x564466)](new RegExp(_0x5acfa0,'g'),''),_0x4e88ec=_0x4e88ec[_0x1b0870(_0x1c27e8._0x41d3fb,0x539,_0x1c27e8._0x69584a,0x5f2)](new RegExp(_0x4e5cad+_0x2b28af(_0x1c27e8._0x4250c9,_0x1c27e8._0x15e812,0x29,_0x1c27e8._0x2ae01d)+_0x4e5cad+'\x5c\x5c','g'),'');function _0x2b28af(_0x27a024,_0x4c73b8,_0x9bfb2a,_0xf0e098){return _0x567203(_0x4c73b8,_0x4c73b8-0x174,_0x27a024- -_0x45d273._0x83b3a3,_0xf0e098-_0x45d273._0xcf1789);}function _0x1b0870(_0x2bb3c0,_0x12b05c,_0x397a96,_0x439876){return _0x567203(_0x439876,_0x12b05c-_0x17df06._0x2948f5,_0x12b05c-_0x17df06._0x3f804d,_0x439876-_0x17df06._0x1bbbf1);}return _0x4e88ec=_0x4e88ec[_0x2b28af(-_0x1c27e8._0x1a629b,-_0x1c27e8._0x31221e,-0x144,-_0x1c27e8._0x21e9ec)](new RegExp(_0x4e5cad+_0x2b28af(-0x154,-0x92,-_0x1c27e8._0xd92ac2,-_0x1c27e8._0x312b07),'g'),''),_0x4e88ec=_0x4e88ec[_0x1b0870(_0x1c27e8._0x6ec741,0x539,_0x1c27e8._0x5bf986,0x4ca)](/[\u0080-\u009F]/g,''),_0x4e88ec=_0x4e88ec[_0x2b28af(-0xf1,-_0x1c27e8._0x3755b7,-_0x1c27e8._0x344a53,-0x17)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x4e88ec=_0x4e88ec[_0x2b28af(-_0x1c27e8._0x1a629b,-_0x1c27e8._0x1e093e,-_0x1c27e8._0x2bdfa7,0x19)](/[\u23CE\u2424]/g,''),_0x4e88ec;}function resolveWorkingDirectory(_0x26e7f9,_0x412615,_0x13f116){const _0x316c13={_0x260b0a:0x7b7,_0x13245a:0x5fa,_0x501a8c:0x219,_0x592acb:0x1a5,_0x315e18:0x11},_0x1d5a96={_0x333590:0x481,_0x12a688:0x127},_0x51a47d=resolveAllowedPath(_0x412615,_0x13f116,_0x26e7f9??'.');function _0xe6b22(_0x4c4b6c,_0x44b840,_0x427c00,_0xc72381){return _0x567203(_0x44b840,_0x44b840-0x7e,_0x427c00-_0x1d5a96._0x333590,_0xc72381-_0x1d5a96._0x12a688);}function _0xb1d544(_0xfa7022,_0x24e9d4,_0x222911,_0x197f0a){return _0x29bb69(_0xfa7022-0x67,_0xfa7022-0x21f,_0x197f0a,_0x197f0a-0x1c6);}try{const _0x121ea3=statSync(_0x51a47d);if(!_0x121ea3[_0xe6b22(_0x316c13._0x260b0a,0x649,0x67b,_0x316c13._0x13245a)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0x51a47d,{'cwd':_0x51a47d});return _0x51a47d;}catch(_0x5967fe){if(_0x5967fe instanceof ToolExecutionError)throw _0x5967fe;throw new ToolExecutionError(_0xb1d544(0xc4,_0x316c13._0x501a8c,_0x316c13._0x592acb,_0x316c13._0x315e18)+_0x51a47d,{'cwd':_0x51a47d});}}function killProcessGroup(_0x5e1378,_0x2c657b,_0x154962='SIGKILL'){const _0x4d2b7d={_0x24ef8b:0x54f,_0x54edfc:0x4de,_0xfa2051:0x57b,_0x281cb3:0x43c,_0x289c3d:0x673,_0x1f62c9:0x582,_0x5a32b1:0x68a,_0xa38f7a:0x489},_0x4b61a4={_0x2ad0d1:0x2e,_0x140e8b:0x1ab},_0x442e6c={_0x5d6d70:0x1e4};if(!_0x5e1378[_0x3d0d85(_0x4d2b7d._0x24ef8b,0x673,0x5ef,0x5ae)])return;function _0x3d0d85(_0x23dcf9,_0x15b238,_0x67e110,_0x48b6a6){return _0x29bb69(_0x23dcf9-0xb6,_0x15b238-0x5be,_0x23dcf9,_0x48b6a6-_0x442e6c._0x5d6d70);}function _0x1d9545(_0x4f2b63,_0x316d72,_0x4bb7b7,_0x466a13){return _0x29bb69(_0x4f2b63-_0x4b61a4._0x2ad0d1,_0x466a13-0x5fe,_0x4bb7b7,_0x466a13-_0x4b61a4._0x140e8b);}if(_0x2c657b)try{_0x5f0d5f('taskkill',[_0x3d0d85(_0x4d2b7d._0x54edfc,0x616,0x75b,0x6c3),_0x5e1378['pid']['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5e1378['kill'](_0x154962);return;}try{process[_0x3d0d85(0x6a8,_0x4d2b7d._0xfa2051,_0x4d2b7d._0x281cb3,0x5fe)](-_0x5e1378[_0x3d0d85(0x55e,_0x4d2b7d._0x289c3d,_0x4d2b7d._0x1f62c9,0x603)],_0x154962);}catch{_0x5e1378[_0x3d0d85(_0x4d2b7d._0x5a32b1,_0x4d2b7d._0xfa2051,0x4d5,_0x4d2b7d._0xa38f7a)](_0x154962);}}function appendChunk(_0xf81a19,_0x5e1549,_0x38ac29,_0x5d927d,_0x50615a){const _0x2e47c5={_0x3313fd:0x109,_0x32d784:0x125,_0x2d6cdf:0x2f,_0x52c6d8:0x1a8,_0x29daf8:0x191,_0x41b85c:0x41,_0x4cc2e5:0xb7,_0x36dd6a:0x1d7},_0x3a120e={_0x357e0e:0x2c,_0x1d9926:0x198},_0x12f4c0=_0x5d927d?stripAnsiAndControls(_0x38ac29):_0x38ac29;if(_0x12f4c0[_0x2bf418(_0x2e47c5._0x3313fd,_0x2e47c5._0x32d784,-0x23,-_0x2e47c5._0x2d6cdf)]===0x0)return;function _0x4d3e78(_0x5f2990,_0x2e6173,_0x9f228d,_0x59d3ed){return _0x29bb69(_0x5f2990-_0x3a120e._0x357e0e,_0x9f228d-0xd9,_0x59d3ed,_0x59d3ed-_0x3a120e._0x1d9926);}_0xf81a19[_0x4d3e78(_0x2e47c5._0x52c6d8,0x203,_0x2e47c5._0x29daf8,_0x2e47c5._0x41b85c)](_0x12f4c0);function _0x2bf418(_0x56ef3b,_0x3738ad,_0x693e39,_0xd8e30d){return _0x29bb69(_0x56ef3b-0xfa,_0xd8e30d-0x11f,_0x693e39,_0xd8e30d-0x111);}_0x5e1549[_0x2bf418(0x1d6,_0x2e47c5._0x4cc2e5,0xdd,_0x2e47c5._0x36dd6a)](_0x12f4c0),_0x50615a();}function createBashTool(_0x3b4135={}){const _0x589073={_0x4be4aa:0x2d1,_0x1e0fdd:0x3ee,_0x511647:0x371,_0x2fb012:0x4e8,_0x5c9f64:0x3a4,_0x20e0fc:0x349,_0x3ef338:0x323,_0x1b2148:0x31d,_0x232399:0x3ef,_0x1d5267:0x3d8,_0x133e64:0x3c0,_0x5d1fef:0x68e,_0x1a9bc1:0x6bd,_0x1eeda8:0x648,_0x1935f6:0x335,_0x3e1ab0:0x430,_0x30dd99:0x37f,_0x8aec79:0x383,_0x1f657d:0x515,_0x2f7b43:0x3cb,_0x259451:0x462,_0xb9faf6:0x389,_0x1673a8:0x41f,_0x8f5d82:0x403},_0x363fc4={_0x102487:0x78c,_0x3ab04e:0x6cb,_0x3bc66e:0x7a5,_0x513415:0x8e4,_0x3f05ff:0x594,_0x50347c:0x159,_0x420f3e:0xf9,_0x2a2d92:0x61c,_0x19614b:0x5c9,_0x2edc2f:0x70b,_0x3b7e5e:0x7fa,_0x5f2fb6:0x6a9,_0x5ac98a:0x600,_0x36613b:0x162,_0x42b41e:0x65,_0x27ef40:0x137,_0x35f81a:0xb8,_0x46d1ce:0x90,_0x55eed5:0x79,_0x9bfd94:0x91,_0x5a58fe:0x124,_0x392c32:0x1c,_0x328d36:0x147,_0xbb3bfc:0xb6,_0x325e83:0x20d,_0x1fe4ee:0xe1,_0x4e06c8:0x659,_0x450541:0x780,_0x1f5f10:0x68c,_0x3f1031:0x737,_0x4cdc1c:0xfc,_0x4ba5bc:0x1d7,_0x4f579a:0x55f,_0x16d474:0x66c,_0x26280d:0x5c7,_0x55e31d:0x5ce,_0x188198:0x5c1,_0x31fc1e:0x54d,_0x23a9dd:0x628,_0x52d917:0x630,_0x3e02f5:0x4d9,_0x12e2f0:0x595,_0x2ca728:0x4fe,_0x599408:0x477,_0x109acb:0x507,_0x91abcf:0x119,_0x104672:0x24,_0x4ed1c8:0x6,_0x542c08:0x3f,_0x283989:0x55,_0x3067fb:0x12c,_0xb44b6a:0x699,_0x224450:0xc8,_0x3492c:0x535,_0x3bdcb3:0x71c,_0x1a5bd1:0x8e3,_0x1ec6e2:0x846,_0x3d333c:0x5d,_0x5d15a0:0x826,_0x19c41c:0x180,_0x3031a0:0x4a,_0x2b73e5:0xfb,_0x3ef6b1:0x112,_0x243b63:0x227,_0x43eb01:0x580,_0x5b1df4:0x769,_0x32b194:0x6a3,_0x41869e:0x101,_0x86cfe7:0xd3,_0x48bf30:0x1f6,_0x8de5d8:0x7,_0x3cb8cd:0x4e,_0x3b53ec:0xf7,_0x4d4084:0xb0,_0x58fe6c:0x9f,_0x34190f:0x24,_0x50194a:0x36,_0x2ec356:0x198,_0x380e2c:0x7e,_0x570b2a:0x7f8,_0xc60c0d:0xbe,_0x10de3f:0x129,_0x3e895e:0x17c,_0x38c100:0x674,_0x5b7421:0x7bf,_0x480e28:0x3b,_0x601d98:0x16a,_0x49ec60:0x128},_0x2530b4={_0x1ceed7:0x1d,_0x59c016:0x94},_0x56db26={_0x149d5a:0x9c,_0x9bc69a:0x6a,_0x37e5ed:0x82},_0x46f32f={_0x30302b:0x1e2},_0x19e1b1={_0x5d15c9:0x162},_0x2252a6={_0x5ce13a:0x160,_0x39275d:0x402},_0x2568e1=_0x5eb127[_0x501fad(0x2a6,0x43a,_0x589073._0x4be4aa,0x374)](_0x3b4135[_0x501fad(_0x589073._0x1e0fdd,_0x589073._0x511647,0x27c,0x2b6)]??process['cwd']()),_0x564120=(_0x3b4135['allowedDirs']??[])['map'](_0xaa65be=>_0x5eb127[_0x501fad(0x2d5,0x469,0x3f9,0x374)](_0xaa65be)),_0x161612=_0x3b4135['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS,_0x68a52b=_0x3b4135[_0x345ad6(_0x589073._0x2fb012,_0x589073._0x5c9f64,0x32f,0x3b6)]??!![];function _0x501fad(_0x3ede1a,_0x31e5e9,_0x1e61eb,_0x58c8c4){return _0x29bb69(_0x3ede1a-_0x2252a6._0x5ce13a,_0x58c8c4-_0x2252a6._0x39275d,_0x1e61eb,_0x58c8c4-0x11b);}function _0x345ad6(_0x4611df,_0x27b26d,_0x41b292,_0x5c9150){return _0x29bb69(_0x4611df-0x147,_0x27b26d-0x4e2,_0x41b292,_0x5c9150-_0x19e1b1._0x5d15c9);}const _0x2c047c=_0x3b4135['name']??_0x345ad6(_0x589073._0x20e0fc,0x3d6,_0x589073._0x3ef338,_0x589073._0x1b2148);return defineTool({'name':_0x2c047c,'description':_0x3b4135[_0x345ad6(_0x589073._0x232399,_0x589073._0x1d5267,0x298,_0x589073._0x133e64)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x345ad6(_0x589073._0x5d1fef,0x5c6,_0x589073._0x1a9bc1,_0x589073._0x1eeda8),'properties':{'command':{'type':_0x501fad(0x3ce,_0x589073._0x1935f6,_0x589073._0x3e1ab0,_0x589073._0x30dd99)},'cwd':{'type':_0x345ad6(_0x589073._0x8aec79,0x45f,_0x589073._0x1e0fdd,0x513)},'timeoutMs':{'type':_0x345ad6(0x51f,0x54a,_0x589073._0x1f657d,0x442)},'ignoreOutput':{'type':_0x501fad(0x42d,_0x589073._0x2f7b43,_0x589073._0x259451,_0x589073._0xb9faf6)}},'required':[_0x501fad(0x483,_0x589073._0x1673a8,0x381,_0x589073._0x8f5d82)]},async *'execute'(_0x2a27e3,_0x37eecc){const _0x2f5534={_0x21c2a1:0xff,_0x5a37fd:0x22,_0x254225:0x1ce,_0x198b86:0x286,_0x96fb3f:0x184,_0x532372:0x163,_0xa7ccb:0x99,_0x48bca1:0x1ba,_0x2564be:0x75},_0x12becf={_0x3e4808:0x279,_0x4722b7:0x1b4,_0x2a257e:0x57,_0xd94060:0xa0},_0x528050={_0x5b9347:0x3ef,_0x45fb15:0x707,_0x144ff9:0x6f5,_0x510a8:0x832},_0x5beaa2={_0x1b2e22:0x3d5,_0x190d47:0x73,_0x545041:0x1c3},_0x4cfd08={_0x3c2e05:0x708,_0x1b125c:0x1e5},_0x38ddb7={_0x4d307d:0xf8},_0x2f8dd0={_0x470799:0x513,_0x58a551:0x319},_0x1f73f8={_0x3f4826:0x564,_0x4597ce:0xe8,_0x16ec55:0x11},_0xeb4fa7={_0x32b376:0x92,_0x29bd64:0xdb},_0x30cb92=_0x2a27e3[_0x599d5d(0x649,0x6e7,_0x363fc4._0x102487,0x84c)]??_0x161612;if(!Number['isFinite'](_0x30cb92)||_0x30cb92<0x1)throw new ToolExecutionError(_0x599d5d(_0x363fc4._0x3ab04e,0x6e0,_0x363fc4._0x3bc66e,_0x363fc4._0x513415),{'command':_0x2a27e3['command']});throwIfAborted(_0x37eecc[_0x599d5d(0x504,_0x363fc4._0x3f05ff,0x627,0x5ab)]);const _0x67bff4=resolveWorkingDirectory(_0x2a27e3['cwd'],_0x2568e1,_0x564120),_0x1abc83=_0x2a27e3['ignoreOutput']??![],_0x3cfcaa=resolveDefaultShell(_0x3b4135[_0x13d909(-_0x363fc4._0x50347c,-_0x363fc4._0x420f3e,-0x1c5,-0x1ea)]);function _0x599d5d(_0x4ec214,_0x202ceb,_0x37abf1,_0x3f42bb){return _0x345ad6(_0x4ec214-_0xeb4fa7._0x32b376,_0x37abf1-0x228,_0x202ceb,_0x3f42bb-_0xeb4fa7._0x29bd64);}const _0x14fcbb=buildShellArgs(_0x2a27e3[_0x599d5d(_0x363fc4._0x2a2d92,_0x363fc4._0x19614b,_0x363fc4._0x2edc2f,_0x363fc4._0x3b7e5e)],_0x3cfcaa),_0x4ad5fe=_0x3d01ca[_0x599d5d(0x632,0x5af,_0x363fc4._0x5f2fb6,_0x363fc4._0x5ac98a)]()===_0x13d909(-0xbb,-_0x363fc4._0x36613b,-0x54,-0x48);let _0x8d9653;try{_0x8d9653=_0x5f0d5f(_0x3cfcaa,_0x14fcbb,{'cwd':_0x67bff4,'env':{...process[_0x13d909(-0xac,-0xaf,0xd,-_0x363fc4._0x42b41e)],..._0x3b4135[_0x13d909(-_0x363fc4._0x27ef40,-0xaf,-_0x363fc4._0x35f81a,-0x1a7)]??{}},'stdio':_0x1abc83?[_0x13d909(_0x363fc4._0x46d1ce,0x7d,0xb3,-0x35),'ignore','ignore']:['ignore',_0x13d909(-_0x363fc4._0x55eed5,-_0x363fc4._0x9bfd94,-0x1df,-_0x363fc4._0x5a58fe),_0x13d909(-_0x363fc4._0x392c32,-0x91,0x2e,-0x17d)],'shell':![],'windowsHide':!![],'detached':!_0x4ad5fe});}catch(_0x150d61){if(isErrnoException(_0x150d61)&&_0x150d61[_0x13d909(_0x363fc4._0x328d36,0xed,0x99,0x46)]===_0x13d909(-0xa9,-_0x363fc4._0xbb3bfc,-_0x363fc4._0x325e83,-0x1bc))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x3cfcaa,{'command':_0x2a27e3[_0x13d909(_0x363fc4._0x1fe4ee,-0x4e,0x31,-0x100)],'cwd':_0x67bff4,'shellPath':_0x3cfcaa});throw new ToolExecutionError(_0x150d61 instanceof Error?_0x150d61[_0x599d5d(0x86d,_0x363fc4._0x4e06c8,_0x363fc4._0x450541,0x663)]:String(_0x150d61),{'command':_0x2a27e3[_0x599d5d(_0x363fc4._0x1f5f10,_0x363fc4._0x3f1031,_0x363fc4._0x2edc2f,0x67c)],'cwd':_0x67bff4,'shellPath':_0x3cfcaa});}const _0x408f5d=[],_0x1b7f3a=[],_0x4e9eec=new StringDecoder(_0x13d909(-_0x363fc4._0x4cdc1c,-0xed,-0x5c,-_0x363fc4._0x4ba5bc)),_0x2d2d44=new StringDecoder(_0x599d5d(_0x363fc4._0x4f579a,0x72d,_0x363fc4._0x16d474,_0x363fc4._0x26280d));let _0x4c195e,_0xa6521a=![];function _0x13d909(_0x3131a7,_0x4a6389,_0x16d4d3,_0x5c990d){return _0x345ad6(_0x3131a7-0x115,_0x4a6389- -0x531,_0x3131a7,_0x5c990d-_0x46f32f._0x30302b);}let _0x2dd5a1;const _0x2da0eb=()=>{if(!_0x4c195e)return;const _0x2684f3=_0x4c195e;_0x4c195e=void 0x0,_0x2684f3();},_0x2a4ec0=async()=>{function _0x317d5b(_0x28ded7,_0x56666e,_0x230626,_0x551bb8){return _0x13d909(_0x56666e,_0x28ded7-_0x1f73f8._0x3f4826,_0x230626-_0x1f73f8._0x4597ce,_0x551bb8-_0x1f73f8._0x16ec55);}if(_0x1b7f3a[_0x317d5b(0x3c7,_0x2f8dd0._0x470799,_0x2f8dd0._0x58a551,0x47e)]>0x0||_0xa6521a)return;await new Promise(_0x4f1eeb=>{_0x4c195e=_0x4f1eeb;});},_0x2e72e8=_0x382f8a=>{const _0x3ec278={_0x329b2c:0x119};function _0x204d27(_0x37b860,_0x2edf0e,_0x388169,_0x319562){return _0x599d5d(_0x37b860-0xd3,_0x319562,_0x2edf0e- -0x5d5,_0x319562-_0x3ec278._0x329b2c);}appendChunk(_0x408f5d,_0x1b7f3a,_0x4e9eec[_0x204d27(-_0x56db26._0x149d5a,_0x56db26._0x9bc69a,0x34,_0x56db26._0x37e5ed)](_0x382f8a),_0x68a52b,_0x2da0eb);},_0x3dc2d6=_0x46575e=>{function _0x4506bc(_0x2b7bda,_0x216bf8,_0x5dfcfe,_0x282c21){return _0x599d5d(_0x2b7bda-_0x38ddb7._0x4d307d,_0x282c21,_0x5dfcfe- -0x622,_0x282c21-0x1da);}appendChunk(_0x408f5d,_0x1b7f3a,_0x2d2d44[_0x4506bc(-0xe2,0x146,_0x2530b4._0x1ceed7,_0x2530b4._0x59c016)](_0x46575e),_0x68a52b,_0x2da0eb);};_0x8d9653[_0x599d5d(_0x363fc4._0x55e31d,0x6af,_0x363fc4._0x188198,0x4f0)]?.['on'](_0x599d5d(_0x363fc4._0x31fc1e,_0x363fc4._0x23a9dd,_0x363fc4._0x52d917,0x6c8),_0x2e72e8),_0x8d9653[_0x13d909(0xe2,0x7e,-0x8a,0x68)]?.['on']('data',_0x3dc2d6);let _0x2873c6=![],_0xcb6e42;const _0x2dc0f6=addAbortListener(_0x37eecc[_0x599d5d(_0x363fc4._0x3e02f5,0x574,0x627,_0x363fc4._0x12e2f0)],()=>{_0x2dd5a1=toAbortError(_0x37eecc[_0x23b54e(0x2a3,0x2bb,_0x528050._0x5b9347,0x3ad)][_0xca273b(_0x528050._0x45fb15,_0x528050._0x144ff9,_0x528050._0x510a8,0x7b3)]);function _0xca273b(_0x46c48d,_0x3f2067,_0x34656f,_0x260919){return _0x13d909(_0x260919,_0x3f2067-_0x4cfd08._0x3c2e05,_0x34656f-0xd4,_0x260919-_0x4cfd08._0x1b125c);}_0xa6521a=!![],_0x2da0eb();function _0x23b54e(_0x21bc52,_0x464a95,_0x24cfbc,_0x4cfb11){return _0x13d909(_0x24cfbc,_0x21bc52-_0x5beaa2._0x1b2e22,_0x24cfbc-_0x5beaa2._0x190d47,_0x4cfb11-_0x5beaa2._0x545041);}try{killProcessGroup(_0x8d9653,_0x4ad5fe);}catch{}});try{const _0x9a7fdf=new Promise((_0x34241c,_0x111786)=>{const _0x1876d1={_0x570813:0xec,_0x4460d4:0x772,_0x2e5e66:0x1e0},_0x5e8a4d={_0x15b6b4:0x5a5,_0x16069c:0x6f6,_0x13395c:0x56d},_0x2907e1={_0x5634f9:0x38b},_0x4d042d={_0x2bd3ed:0x7b7};function _0x3ca71b(_0x2667e1,_0x4f3827,_0x30319c,_0xe0846d){return _0x599d5d(_0x2667e1-0x144,_0x2667e1,_0x30319c- -_0x4d042d._0x2bd3ed,_0xe0846d-0x24);}const _0x366f3a=()=>{_0xcb6e42&&(clearTimeout(_0xcb6e42),_0xcb6e42=void 0x0);function _0x112dd9(_0x200d1a,_0x496bb2,_0x39caa9,_0x3fb23b){return _0x1e3a(_0x3fb23b- -0x3c6,_0x39caa9);}function _0x580958(_0x4156ab,_0xb6962b,_0x27c471,_0x24a39e){return _0x1e3a(_0x27c471-_0x2907e1._0x5634f9,_0x24a39e);}_0x8d9653['off'](_0x112dd9(-0x1cc,-0x248,-_0x12becf._0x3e4808,-_0x12becf._0x4722b7),_0x2099fe),_0x8d9653['off'](_0x112dd9(-0x1b5,0x85,_0x12becf._0x2a257e,-_0x12becf._0xd94060),_0x48ba62);},_0x2099fe=_0x2def4a=>{_0xa6521a=!![],_0x2da0eb(),_0x366f3a(),_0x111786(_0x2dd5a1??_0x2def4a);},_0x48ba62=(_0x28c137,_0x276266)=>{_0x2873c6=!![],appendChunk(_0x408f5d,_0x1b7f3a,_0x4e9eec['end'](),_0x68a52b,_0x2da0eb),appendChunk(_0x408f5d,_0x1b7f3a,_0x2d2d44[_0x569f5(_0x5e8a4d._0x15b6b4,_0x5e8a4d._0x16069c,_0x5e8a4d._0x13395c,0x48a)](),_0x68a52b,_0x2da0eb),_0xa6521a=!![],_0x2da0eb();function _0x569f5(_0x5e8719,_0x18744,_0x2c70b8,_0x79656f){return _0x1e3a(_0x5e8719-0x2c7,_0x79656f);}_0x366f3a();if(_0x2dd5a1){_0x111786(_0x2dd5a1);return;}_0x34241c({'code':_0x28c137,'signal':_0x276266});};function _0x55f208(_0x2f017a,_0x19730e,_0x2170bb,_0x37fd46){return _0x599d5d(_0x2f017a-_0x1876d1._0x570813,_0x19730e,_0x37fd46- -_0x1876d1._0x4460d4,_0x37fd46-_0x1876d1._0x2e5e66);}_0xcb6e42=setTimeout(()=>{_0xa6521a=!![],_0x2da0eb(),_0x366f3a();try{killProcessGroup(_0x8d9653,_0x4ad5fe);}catch{}_0x111786(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0x30cb92+'\x20ms',{'command':_0x2a27e3['command'],'cwd':_0x67bff4,'shellPath':_0x3cfcaa,'timeoutMs':_0x30cb92,'timedOut':!![]}));},_0x30cb92),_0x8d9653[_0x3ca71b(-0x131,-0x49,-_0x2f5534._0x21c2a1,_0x2f5534._0x5a37fd)](_0x3ca71b(-0x2c4,-0x1c9,-_0x2f5534._0x254225,-_0x2f5534._0x198b86),_0x2099fe),_0x8d9653[_0x55f208(-_0x2f5534._0x96fb3f,-_0x2f5534._0x532372,-_0x2f5534._0xa7ccb,-0xba)](_0x55f208(-0x101,-0x4f,-_0x2f5534._0x48bca1,-_0x2f5534._0x2564be),_0x48ba62);});while(_0x1b7f3a['length']>0x0||!_0xa6521a){if(_0x1b7f3a[_0x599d5d(_0x363fc4._0x2ca728,_0x363fc4._0x599408,0x5bc,_0x363fc4._0x109acb)]===0x0){await _0x2a4ec0();continue;}const _0x2124f2=_0x1b7f3a['shift']();_0x2124f2!==void 0x0&&(yield _0x2124f2);}const _0x1a1f3d=await _0x9a7fdf,_0x5c2b13=_0x1abc83?_0x13d909(-_0x363fc4._0x91abcf,-_0x363fc4._0x104672,-_0x363fc4._0x4ed1c8,-0x97)+(_0x1a1f3d['code']??0x0):_0x408f5d[_0x13d909(-_0x363fc4._0x542c08,-_0x363fc4._0x283989,-_0x363fc4._0x3067fb,0xfa)](''),_0x189d7f={'command':_0x2a27e3[_0x599d5d(0x63b,0x79e,0x70b,_0x363fc4._0xb44b6a)],'cwd':_0x67bff4,'exitCode':_0x1a1f3d[_0x13d909(0x235,0xed,-0x2c,_0x363fc4._0x224450)]??0x0,'signal':_0x1a1f3d[_0x599d5d(0x4f3,_0x363fc4._0x3492c,0x627,_0x363fc4._0x3bdcb3)],'ignoreOutput':_0x1abc83,'shellPath':_0x3cfcaa,'timeoutMs':_0x30cb92};if(_0x1a1f3d[_0x599d5d(0x709,_0x363fc4._0x1a5bd1,_0x363fc4._0x1ec6e2,0x775)]!==0x0)throw new ToolExecutionError(_0x5c2b13||_0x13d909(0x1a2,0xcc,-_0x363fc4._0x3d333c,-0x81)+(_0x1a1f3d[_0x599d5d(_0x363fc4._0x5d15a0,0x727,0x846,0x91c)]??0x0),_0x189d7f);return createToolOutput(_0x5c2b13,_0x189d7f);}catch(_0x436d13){while(_0x1b7f3a['length']>0x0){const _0x2adb95=_0x1b7f3a[_0x13d909(-_0x363fc4._0x19c41c,-0x93,_0x363fc4._0x3031a0,-_0x363fc4._0x2b73e5)]();_0x2adb95!==void 0x0&&(yield _0x2adb95);}if(_0x436d13 instanceof ToolExecutionError)throw _0x436d13;if(_0x2dd5a1)throw _0x2dd5a1;if(isErrnoException(_0x436d13)&&_0x436d13[_0x13d909(_0x363fc4._0x3ef6b1,0xed,_0x363fc4._0x243b63,-0x7)]===_0x599d5d(_0x363fc4._0x43eb01,_0x363fc4._0x5b1df4,_0x363fc4._0x32b194,0x631))throw new ToolExecutionError(_0x13d909(0x34,-_0x363fc4._0x41869e,-_0x363fc4._0x86cfe7,-_0x363fc4._0x48bf30)+_0x3cfcaa,{'command':_0x2a27e3[_0x13d909(-_0x363fc4._0x8de5d8,-_0x363fc4._0x3cb8cd,-_0x363fc4._0x3b53ec,-0x2f)],'cwd':_0x67bff4,'shellPath':_0x3cfcaa});throw new ToolExecutionError(_0x436d13 instanceof Error?_0x436d13['message']:String(_0x436d13),{'command':_0x2a27e3[_0x13d909(-0x128,-_0x363fc4._0x3cb8cd,0xab,-0x165)],'cwd':_0x67bff4,'shellPath':_0x3cfcaa});}finally{_0xcb6e42&&clearTimeout(_0xcb6e42);_0x2dc0f6(),_0x8d9653['stdout']?.[_0x13d909(_0x363fc4._0x4d4084,_0x363fc4._0x58fe6c,-_0x363fc4._0x34190f,-_0x363fc4._0x50194a)]('data',_0x2e72e8),_0x8d9653[_0x13d909(_0x363fc4._0x2ec356,_0x363fc4._0x380e2c,0x142,0x105)]?.[_0x599d5d(0x8bf,0x7d9,_0x363fc4._0x570b2a,0x7e9)](_0x13d909(-_0x363fc4._0xc60c0d,-_0x363fc4._0x10de3f,-_0x363fc4._0x3e895e,-0x1d2),_0x3dc2d6);if(!_0x2873c6&&_0x8d9653[_0x599d5d(0x7f3,_0x363fc4._0x38c100,_0x363fc4._0x5b7421,0x889)]&&!_0x8d9653[_0x13d909(-_0x363fc4._0x480e28,-0x42,-_0x363fc4._0x601d98,-_0x363fc4._0x49ec60)])try{killProcessGroup(_0x8d9653,_0x4ad5fe);}catch{}}}});}function createShellExecTool(_0x142c01={}){return createBashTool(_0x142c01);}import{readdir,readFile as _0x45e8bb}from'fs/promises';import{extname,join as _0x5ede0b}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x1bd5ad,join,relative as _0xa48818,resolve as _0x1d1143}from'path';import{readdir as _0x51efe6,readFile as _0x2e1a22}from'fs/promises';import{join as _0x37a5d3,relative as _0x49ed4a,sep}from'path';import{delimiter}from'path';import{mkdir as _0x359e8d,rm,stat as _0x5a2546,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x31c946}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x30cf29,rename,writeFile as _0x15df74}from'fs/promises';import{homedir as _0x11f299}from'os';import{dirname as _0x36e0d9,isAbsolute as _0x5f51cb,join as _0x1381a0,resolve as _0x4bf9bb}from'path';import{parse as _0x52eb53,stringify as _0xb58a98}from'yaml';import{cp,mkdir as _0x242cf2,readFile as _0x29ef6f,rm as _0x318e04,writeFile as _0x7a1b9}from'fs/promises';import{homedir}from'os';import{join as _0x403b18}from'path';import{parse as _0x5b0bd4,stringify as _0x12166c}from'yaml';import{z}from'zod';import{readdir as _0x5988e8,readFile as _0x5d7e0e}from'fs/promises';import{join as _0x24c170}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x2a0d14){const _0x553a82={_0x1f18fc:0x8b,_0x200f0c:0x22d,_0x54626c:0x1da,_0x317967:0xb5,_0x39fe5d:0xb,_0x3829f2:0x9f,_0x3502a8:0x117,_0x3b2dce:0x43,_0x5f4b84:0x60},_0xd993b3={_0x3adc00:0x18c},_0x305cb9=[];let _0x4b15ac='',_0x17967a=0x0;function _0x4852a5(_0x338222,_0x462f6c,_0x22f8de,_0x578fec){return _0x29bb69(_0x338222-0xbf,_0x578fec-0x4d9,_0x462f6c,_0x578fec-0x6f);}function _0x240298(_0x43f3d2,_0x1816a2,_0x288da3,_0x13a1d6){return _0x567203(_0x43f3d2,_0x1816a2-0x2d,_0x13a1d6- -_0xd993b3._0x3adc00,_0x13a1d6-0x181);}while(_0x17967a<_0x2a0d14['length']){const _0x21adf5=_0x2a0d14[_0x17967a];if(_0x21adf5==='\x5c'&&_0x17967a+0x1<_0x2a0d14['length'])_0x4b15ac+=_0x2a0d14[_0x17967a+0x1],_0x17967a+=0x2;else{if(_0x21adf5==='\x22'||_0x21adf5==='\x27'){const _0x4cf06a=_0x21adf5;_0x17967a++;while(_0x17967a<_0x2a0d14[_0x240298(-0x2a6,-_0x553a82._0x1f18fc,-0x8c,-0x1a6)]&&_0x2a0d14[_0x17967a]!==_0x4cf06a){_0x2a0d14[_0x17967a]==='\x5c'&&_0x17967a+0x1<_0x2a0d14[_0x240298(-_0x553a82._0x200f0c,-0x2ee,-0x23d,-0x1a6)]?(_0x4b15ac+=_0x2a0d14[_0x17967a+0x1],_0x17967a+=0x2):(_0x4b15ac+=_0x2a0d14[_0x17967a],_0x17967a++);}_0x17967a++;}else _0x21adf5!==void 0x0&&/\s/[_0x240298(-0x50,-_0x553a82._0x54626c,-0x116,-_0x553a82._0x317967)](_0x21adf5)?(_0x4b15ac&&(_0x305cb9[_0x240298(-_0x553a82._0x39fe5d,0x3b,-_0x553a82._0x3829f2,0x60)](_0x4b15ac),_0x4b15ac=''),_0x17967a++):(_0x4b15ac+=_0x21adf5,_0x17967a++);}}if(_0x4b15ac)_0x305cb9[_0x240298(-0xca,_0x553a82._0x3502a8,_0x553a82._0x3b2dce,_0x553a82._0x5f4b84)](_0x4b15ac);return _0x305cb9;}function renderCommandInstructions(_0x4fa46c){const _0x481881={_0x5c6dcb:0x5de,_0x20d542:0x46c,_0xff017b:0x43d,_0x2a508c:0x441,_0x5c62ba:0x459,_0x5c2f2c:0x558,_0x5be37b:0x58c,_0x29ea58:0x503,_0x45f0c6:0x61d,_0x4290f1:0x58c,_0x4c2cd2:0x47f,_0x260212:0x571,_0x1bf94c:0x58c,_0x2beff7:0x53f,_0x51f732:0x463,_0x57c868:0x6e1,_0x2739f2:0x5ee,_0x42d2d3:0x552,_0x11541a:0x37d,_0x3958ea:0x5e9,_0x4edc13:0x48c,_0x3de2df:0x3d7,_0x1c4534:0x482,_0x5a4922:0x339,_0x5e2070:0x4a2,_0x362848:0x342,_0x6b65dc:0x418,_0x572591:0x40e,_0x1e7e96:0x40d},_0x4a13ac={_0x42c9df:0xbe},_0x3a7623={_0x1fe664:0x490,_0x48d25d:0x5fe};function _0x2f04de(_0x18f8a7,_0x20f752,_0x3e6b21,_0x8aa1e7){return _0x29bb69(_0x18f8a7-0x181,_0x20f752-0x4e2,_0x3e6b21,_0x8aa1e7-0x15b);}let _0x31c9d2=_0x4fa46c[_0x2f04de(_0x481881._0x5c6dcb,0x52f,0x4be,0x671)],_0x1acbf0=![];const _0x23b20f=tokenizeCommandArguments(_0x4fa46c['argumentsText']);_0x31c9d2=_0x31c9d2[_0x42911e(0x441,_0x481881._0x20d542,_0x481881._0xff017b,0x48b)](/\$ARGUMENTS\[(\d+)\]/g,(_0x485e63,_0x8bccab)=>{return _0x1acbf0=!![],_0x23b20f[Number(_0x8bccab)]??'';}),_0x31c9d2=_0x31c9d2[_0x42911e(_0x481881._0x2a508c,_0x481881._0x5c62ba,_0x481881._0x5c2f2c,0x3bb)](/\$ARGUMENTS\b/g,()=>{const _0x130743={_0x54bfb2:0x15d};function _0x1afecb(_0x65a43f,_0x2b44a7,_0x150574,_0x2f8ed8){return _0x42911e(_0x2f8ed8-0x105,_0x2b44a7-_0x130743._0x54bfb2,_0x150574-0x1ee,_0x65a43f);}return _0x1acbf0=!![],_0x4fa46c[_0x1afecb(_0x3a7623._0x1fe664,0x452,_0x3a7623._0x48d25d,0x587)];});if(_0x4fa46c[_0x2f04de(0x5d9,_0x481881._0x5be37b,_0x481881._0x29ea58,0x51c)]&&_0x4fa46c[_0x2f04de(_0x481881._0x45f0c6,_0x481881._0x4290f1,_0x481881._0x4c2cd2,_0x481881._0x260212)]['length']>0x0)for(let _0xc528fd=0x0;_0xc528fd<_0x4fa46c[_0x2f04de(0x6dd,_0x481881._0x1bf94c,_0x481881._0x2beff7,_0x481881._0x51f732)]['length'];_0xc528fd++){const _0x1b178d=_0x4fa46c[_0x2f04de(_0x481881._0x57c868,0x58c,_0x481881._0x2739f2,0x6c5)][_0xc528fd];if(_0x1b178d){const _0x51acc9=new RegExp('\x5c$'+_0x1b178d+'\x5cb','g');_0x31c9d2=_0x31c9d2[_0x2f04de(_0x481881._0x42d2d3,0x497,_0x481881._0x11541a,_0x481881._0x3958ea)](_0x51acc9,()=>{return _0x1acbf0=!![],_0x23b20f[_0xc528fd]??'';});}}function _0x42911e(_0x566e3f,_0x30a813,_0x3e9164,_0x454c0e){return _0x29bb69(_0x566e3f-_0x4a13ac._0x42c9df,_0x566e3f-0x48c,_0x454c0e,_0x454c0e-0x3b);}return _0x31c9d2=_0x31c9d2[_0x2f04de(0x3ba,0x497,_0x481881._0x4edc13,_0x481881._0x3de2df)](/\$(\d+)\b/g,(_0x352967,_0x427d0e)=>{return _0x1acbf0=!![],_0x23b20f[Number(_0x427d0e)]??'';}),!_0x1acbf0&&_0x4fa46c[_0x42911e(_0x481881._0x1c4534,_0x481881._0x5a4922,_0x481881._0x5e2070,0x46f)][_0x42911e(_0x481881._0x362848,0x3e6,_0x481881._0x6b65dc,_0x481881._0x572591)]()&&(_0x31c9d2=_0x31c9d2+_0x42911e(0x3d4,_0x481881._0x1e7e96,0x4e3,0x3c4)+_0x4fa46c[_0x42911e(0x482,0x4dc,0x432,0x446)]),_0x31c9d2;}var chatModelAuthSchemeSchema=z[_0x567203(0x1b7,0x108,0x87,0x136)](['bearer',_0x29bb69(0x4f,0xce,-0x27,-0x56)]),apiKeyAuthSchema=z[_0x29bb69(-0x43,0xe4,-0x62,0x17b)]({'type':z[_0x29bb69(0xac,0x132,0x246,0x86)](_0x567203(0x2c3,0x1b1,0x22d,0x12b)),'apiKey':z[_0x29bb69(-0x1a,-0x83,0xc0,-0x1ad)](),'authScheme':chatModelAuthSchemeSchema[_0x567203(-0xe6,0x1c,-0x36,0x113)]()})[_0x29bb69(0x146,0x83,0x145,0x11e)](),oauthAuthSchema=z[_0x567203(0x2c6,0x30f,0x218,0x277)]({'type':z['literal'](_0x567203(-0x61,0x7,0x4f,0x72)),'access':z['string'](),'refresh':z['string'](),'expires':z[_0x29bb69(-0x16,0x68,-0x7a,0x193)]()['optional'](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x567203(0xc4,0x11d,0x1b7,0x2fc)](),authMethodSchema=z[_0x29bb69(-0x143,-0xd6,0x1b,-0x144)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z['string'](),'name':z[_0x567203(-0x1c,0x83,0xb1,0xe7)]()[_0x567203(0x3d,0x9d,-0x36,0x76)]()})[_0x29bb69(0x13f,0x83,0x16d,0x1b6)](),modelConfigSchema=z[_0x29bb69(-0x20c,-0xd6,-0x19b,-0x204)]([z[_0x29bb69(0x140,0x132,-0x1a,0x60)](![]),z['literal'](!![]),z[_0x567203(0xbd,0x152,0xb1,-0x13)](),z[_0x567203(0x117,0x12f,0x129,0x130)](z[_0x567203(-0x59,0x5a,0xb1,-0x6a)]()),z[_0x567203(0x1db,0x9b,0x129,0x268)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x29bb69(-0x1c7,-0xad,0x9b,-0x1e3)](['anthropic-messages',_0x29bb69(0x1b,0x98,0x141,-0xae),_0x567203(0xd9,0xf,0x12b,0x10),_0x29bb69(0x2f,-0xd5,-0x12c,-0x1e1)]),providerConfigSchema=z['object']({'apiKey':z[_0x29bb69(-0x23,-0x83,-0x37,-0x13c)]()[_0x567203(0xf9,0xa4,-0x36,-0x9e)](),'token':z[_0x29bb69(-0x1d4,-0x83,0x42,0x23)]()['optional'](),'defaultModel':z['string']()[_0x567203(-0x35,0x6e,-0x36,0x4b)](),'smallModel':z['string']()[_0x567203(0x3f,-0x147,-0x36,0x10)](),'currentAuth':z[_0x567203(0x97,0x149,0xb1,0x1b0)]()[_0x567203(-0x17e,-0x79,-0x36,-0x2b)](),'auth':z['array'](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x567203(-0x174,-0x153,-0x36,0x6c)](),'baseUrl':z[_0x567203(0xb,0x27,0xb1,-0x98)]()[_0x29bb69(-0x20c,-0x16a,-0x139,-0x24d)](),'models':modelConfigSchema[_0x567203(-0x148,0x54,-0x36,-0x108)](),'customHeaders':z['record'](z[_0x567203(-0x13,-0xa,0xb1,-0x98)](),z['string']())[_0x29bb69(-0x31,-0x16a,-0x1ad,-0x154)]()})['passthrough'](),mcpServerConfigSchema=z[_0x29bb69(0x1d7,0xe4,0x21a,-0xd)]({'command':z['string']()[_0x29bb69(-0xf0,-0x16a,-0x244,-0x10b)](),'args':z[_0x29bb69(0x118,-0xb,0x9f,0x61)](z[_0x29bb69(-0x43,-0x83,0x54,-0xf9)]())[_0x567203(-0x34,0x5e,-0x36,0x86)](),'env':z[_0x29bb69(0x8d,0x133,0x11b,0x23c)](z[_0x567203(0x11a,0x127,0xb1,0x9)](),z['string']())[_0x29bb69(-0x168,-0x16a,-0x2a1,-0x96)](),'transport':z[_0x29bb69(0x20,-0xad,-0x2,-0x15d)]([_0x29bb69(0xfa,0x8d,-0x61,-0x48),_0x567203(-0x3b,0x96,0xb,-0x75)])[_0x567203(0x9b,-0xeb,-0x36,-0x94)](),'url':z['string']()[_0x567203(-0xbd,0x35,-0x36,0x2a)](),'headers':z[_0x567203(0x32b,0x370,0x267,0x237)](z[_0x567203(0x13,0x6,0xb1,0xf9)](),z[_0x29bb69(-0x133,-0x83,0xb6,-0x1aa)]())[_0x29bb69(-0x78,-0x16a,-0x14e,-0x29b)](),'prefix':z[_0x567203(0x128,-0x46,0xb1,0x172)]()[_0x567203(-0x25,-0x140,-0x36,-0x34)](),'timeoutMs':z[_0x567203(0x29f,0x284,0x19c,0x1c4)]()[_0x567203(0x23,0x88,-0x36,-0x110)](),'enabled':z[_0x29bb69(-0x153,-0x79,-0xef,0xb5)]()[_0x29bb69(-0xb3,-0x16a,-0x7b,-0x16a)](),'auth':z[_0x29bb69(0x176,0xe4,0x1db,0x11d)]({'type':z[_0x567203(0xf2,0x51,0x87,0x160)]([_0x567203(-0xc3,-0xa2,0x73,0x13b),_0x29bb69(0x46,-0x36,0x10a,0x9b),_0x567203(-0xf8,-0x90,0x4f,0xcf)]),'token':z[_0x567203(0x1ec,0x1ab,0xb1,0x71)]()[_0x567203(0x11f,0x8d,-0x36,-0xce)](),'oauth':z[_0x567203(0x322,0x242,0x218,0x27f)]({'clientId':z[_0x567203(0x195,-0x74,0xb1,0x1e0)]()[_0x29bb69(-0x266,-0x16a,-0x15b,-0x104)](),'clientMetadataUrl':z[_0x567203(0x16,0xfb,0xb1,0x17e)]()[_0x567203(-0xd7,0x86,-0x36,0x7b)](),'authorizationServer':z[_0x567203(0x1ba,0x37,0xb1,0x1be)]()[_0x29bb69(-0x218,-0x16a,-0xd4,-0x20e)](),'scopes':z[_0x29bb69(-0xa9,-0xb,-0x97,-0xf8)](z[_0x29bb69(-0x3f,-0x83,-0xa4,-0xa7)]())[_0x29bb69(-0xa0,-0x16a,-0x117,-0x7a)](),'tokenStorageKey':z[_0x567203(0x128,0x9f,0xb1,0xcf)]()[_0x567203(-0x26,0x85,-0x36,0x75)]()})[_0x567203(0x6a,0xff,0x1b7,0x2e0)]()['optional']()})[_0x567203(0x209,0x148,0x1b7,0x1a2)]()[_0x567203(-0x44,-0x2e,-0x36,0x11d)]()})[_0x567203(0x122,0x1ed,0x1b7,0x1d8)](),mcpSettingsSchema=z['object']({'servers':z['record'](z['string'](),mcpServerConfigSchema)[_0x29bb69(-0x102,-0x16a,-0xe1,-0x12c)](),'allowedTools':z['record'](z['string'](),z['record'](z[_0x29bb69(0x9a,-0x83,0x29,-0x12)](),z[_0x567203(-0xe,0x1d9,0xbb,-0x1)]()))[_0x29bb69(-0x72,-0x16a,-0x1e9,-0xb8)](),'defaultTimeoutMs':z[_0x567203(0x247,0x4e,0x19c,0xff)]()[_0x29bb69(-0x19c,-0x16a,-0x2b,-0x24d)]()})[_0x567203(0x119,0x1e0,0x1b7,0x2db)](),skillsSettingsSchema=z['object']({'enabled':z[_0x29bb69(-0x77,-0x79,-0x76,0xa4)]()[_0x29bb69(-0x236,-0x16a,-0xed,-0x143)](),'includeDefaults':z[_0x567203(-0x45,0x12d,0xbb,0x1c)]()[_0x567203(-0x80,-0xb1,-0x36,-0x43)](),'directories':z[_0x567203(0x7c,0x13,0x129,0x19f)](z[_0x567203(0x14c,-0x63,0xb1,0x7f)]())[_0x29bb69(-0x6b,-0x16a,-0x288,-0x73)](),'exclude':z[_0x567203(0x241,0x199,0x129,0x45)](z[_0x29bb69(-0xb0,-0x83,0x21,0x4c)]())[_0x29bb69(-0x75,-0x16a,-0x24e,-0x115)]()})[_0x29bb69(0x119,0x83,-0x85,0xb1)](),commandsSettingsSchema=z[_0x29bb69(0x224,0xe4,0x15b,-0x6)]({'enabled':z['boolean']()['optional'](),'directories':z[_0x567203(0x134,0x1b4,0x129,0x1dc)](z[_0x29bb69(-0x70,-0x83,0x80,0xa7)]())[_0x29bb69(-0xa5,-0x16a,-0xc1,-0x1bf)]()})[_0x29bb69(-0xb1,0x83,0x9a,0x162)](),agentsSettingsSchema=z[_0x29bb69(0x14f,0xe4,0x232,0x89)]({'enabled':z[_0x29bb69(-0xb8,-0x79,-0x17e,-0xdb)]()['optional'](),'includeDefaults':z[_0x567203(0x106,0x1ae,0xbb,0x14e)]()['optional'](),'directories':z['array'](z[_0x29bb69(-0xed,-0x83,0x35,0xb9)]())[_0x567203(0x101,-0xb7,-0x36,0x6f)]()})[_0x29bb69(0x6d,0x83,0x2f,0xb5)]();function _0x567203(_0x373501,_0x2de387,_0x3841bb,_0xe22617){return _0x1e3a(_0x3841bb- -0x1ff,_0x373501);}var uiThemeSettingsSchema=z[_0x29bb69(-0x10,0xe4,0x1cc,0x31)]({'mode':z['enum']([_0x567203(0x53,-0x67,0x9,0x3a),_0x29bb69(-0x66,0xbc,-0x95,0x7d),_0x29bb69(0x1c9,0xb2,0x181,0x1d5)])[_0x29bb69(-0x3f,-0x16a,-0x122,-0x67)](),'colorLevel':z[_0x29bb69(-0x1ae,-0xad,0x21,-0x9a)]([_0x567203(-0xc2,0xb2,0x9,0x11d),_0x29bb69(0x41,-0xc1,-0xc7,-0x1e2),'ansi16',_0x567203(0x2d0,0xe2,0x237,0x260),_0x29bb69(0x44,-0x54,0xd5,0xc5)])[_0x567203(-0x31,-0x135,-0x36,0x4b)](),'backgrounds':z[_0x567203(-0x80,-0x89,0x87,-0x76)]([_0x29bb69(-0x216,-0x12b,-0x3d,-0x11c),'on',_0x567203(0x16d,0x132,0x222,0x105)])[_0x29bb69(-0x1f,-0x16a,-0x25a,-0x248)](),'messageStyle':z['enum']([_0x567203(0x114,-0x71,0x74,0x27),_0x29bb69(-0x17a,-0x56,0xc4,0xf7)])['optional']()})['passthrough'](),statuslineSegmentSchema=z[_0x29bb69(-0x1b0,-0xad,0x7b,-0x1ac)]([_0x29bb69(-0x1bc,-0x11d,-0xce,-0xc0),_0x567203(0x152,0x108,0xaa,0x131),'thinking','sudo',_0x567203(0x169,0x2d5,0x1bf,0x1c4),_0x29bb69(-0x12a,-0x158,-0xc9,-0x1f5),_0x567203(0x15e,0x13e,0x13f,0x106),_0x567203(0x366,0x15b,0x21a,0x10a),_0x29bb69(0x202,0x11d,0x25c,0x12a),_0x567203(-0xb2,-0x27,0x5c,0x72),_0x29bb69(0x6f,0xb1,0x1ef,0xf2),_0x29bb69(-0xf5,-0x10,-0xcc,-0xa),_0x29bb69(-0xf8,-0x8b,-0xac,0xbd),'memory',_0x29bb69(-0xda,-0x32,-0xc8,-0xd)]),statuslineItemSchema=z[_0x29bb69(-0xdc,-0xd6,0x71,-0x4e)]([statuslineSegmentSchema,z[_0x29bb69(0x44,0x132,0x129,0x93)]('|')]),statuslineRowSchema=z[_0x29bb69(-0x20,-0xb,0x93,-0x101)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x567203(0x176,-0xe6,0x60,0x14d)]([statuslineRowSchema,statuslineRowSchema])[_0x29bb69(-0x2ba,-0x16a,-0x1f0,-0x4f)]()})[_0x29bb69(-0x2e,0x83,0x106,-0xd1)](),memorySettingsSchema=z[_0x29bb69(0x4e,0xe4,0x47,0x16d)]({'version':z[_0x29bb69(-0x19,0x132,0x3b,0x287)](0x2)[_0x29bb69(-0x137,-0x16a,-0x1d6,-0x2a5)](),'retrieval':z[_0x29bb69(0x19d,0xe4,0x129,-0x44)]({'engine':z[_0x29bb69(-0x1c,0x132,-0x2,-0x1b)](_0x29bb69(0x160,0x88,0x1da,-0xc2))['optional'](),'candidateLimit':z[_0x29bb69(-0xd1,0x68,-0x72,-0x13)]()[_0x29bb69(-0x146,-0x16a,-0x109,-0x16)](),'activeCandidateLimit':z['number']()[_0x567203(-0xce,0x39,-0x36,-0x18c)](),'activeEnabled':z['boolean']()[_0x567203(-0x5b,-0x89,-0x36,-0x4c)](),'maxQueriesPerTurn':z[_0x567203(0x2ab,0xb8,0x19c,0x249)]()[_0x567203(-0xb6,0x5,-0x36,-0xb8)](),'coreInjectTokenBudget':z[_0x567203(0x13b,0x20d,0x19c,0x21c)]()[_0x567203(0x38,0xd0,-0x36,0x4)](),'injectTokenBudget':z[_0x29bb69(-0xcb,0x68,0xa,0x7c)]()[_0x29bb69(-0x2a0,-0x16a,-0x28f,-0x7f)](),'minScore':z['number']()['optional'](),'freshnessHalfLifeDays':z[_0x29bb69(0x1be,0x68,0xd3,-0x94)]()['optional']()})[_0x567203(0x1d1,0x1f2,0x1b7,0x2d4)]()[_0x567203(-0x12,-0xb7,-0x36,0xb8)](),'extraction':z['object']({'enabled':z[_0x29bb69(-0xa7,-0x79,-0x9f,0x9a)]()[_0x567203(-0x78,-0x144,-0x36,-0x72)](),'provider':z['string']()['optional'](),'model':z['string']()[_0x29bb69(-0x209,-0x16a,-0x2a7,-0x2b4)](),'sensitiveFilter':z[_0x567203(0x178,0x5,0xbb,0x1db)]()['optional']()})[_0x567203(0x2b0,0x10f,0x1b7,0x181)]()['optional'](),'index':z['object']({'persisted':z['boolean']()['optional'](),'flushIntervalMs':z[_0x29bb69(-0x81,0x68,0x167,0xd6)]()[_0x567203(-0xcb,0x68,-0x36,-0xe2)]()})[_0x567203(0x190,0xc6,0x1b7,0x22b)]()[_0x29bb69(-0x1b6,-0x16a,-0x14e,-0x224)](),'enabled':z['boolean']()[_0x567203(-0xa3,-0x77,-0x36,-0xbf)](),'saveTool':z[_0x29bb69(0x66,-0x79,-0x2e,-0x1b7)]()[_0x29bb69(-0x109,-0x16a,-0x32,-0x209)](),'model':z['string']()[_0x567203(-0x142,-0x116,-0x36,-0xcf)](),'provider':z[_0x29bb69(-0xff,-0x83,-0x45,0x84)]()[_0x29bb69(-0x10c,-0x16a,-0x80,-0xc1)](),'maxInjectionTokens':z[_0x29bb69(0x3a,0x68,0x137,0x103)]()[_0x29bb69(-0x20f,-0x16a,-0x14c,-0x4e)](),'backgroundExtraction':z['boolean']()[_0x567203(-0x74,0x27,-0x36,-0x13f)]()})['passthrough'](),recentModelSchema=z[_0x29bb69(0x1df,0xe4,-0x6,0xb0)]({'provider':z[_0x567203(0x194,-0x42,0xb1,-0x9e)](),'model':z[_0x567203(0x42,0x1dd,0xb1,0x180)](),'usedAt':z['number']()})[_0x29bb69(0xa9,0x83,0xb1,-0xb)](),lspServerEntrySchema=z['object']({'disabled':z['boolean']()[_0x29bb69(-0x19c,-0x16a,-0xfe,-0x248)](),'command':z[_0x567203(0x5b,0x1d1,0xb1,-0x39)]()[_0x567203(0xb5,0xc6,-0x36,-0x13d)](),'args':z[_0x29bb69(-0x128,-0xb,-0x117,-0xdc)](z[_0x567203(-0x34,0x83,0xb1,0x109)]())['optional'](),'rootMarkers':z[_0x29bb69(-0x51,-0xb,-0x5,-0x6b)](z['string']())[_0x567203(-0xe,-0x16a,-0x36,0xdd)]()})[_0x29bb69(0xd6,0x83,-0x5e,0xb1)](),lspConfigSchema=z[_0x29bb69(0x1ae,0xe4,0x150,-0x68)]({'enabled':z[_0x29bb69(0xb7,-0x79,-0x150,-0x23)]()[_0x567203(-0x126,-0x17c,-0x36,-0x84)](),'servers':z[_0x29bb69(0x118,0x133,0x25d,0xff)](z[_0x29bb69(0x7a,-0x83,-0xe4,-0x39)](),lspServerEntrySchema)[_0x29bb69(-0x25d,-0x16a,-0x242,-0x168)]()})[_0x567203(0x19c,0x2db,0x1b7,0x101)](),commandHookConfigSchema=z[_0x567203(0x227,0x1dc,0x218,0x325)]({'type':z[_0x29bb69(0x93,0x132,0xb4,0x5)](_0x567203(0x117,-0xc,0x135,0x184)),'command':z[_0x29bb69(-0x176,-0x83,-0xe0,-0xd0)](),'timeout':z[_0x567203(0x105,0xde,0x19c,0x105)]()[_0x567203(-0xc5,-0x5b,-0x36,-0x11b)]()}),hookMatcherGroupSchema=z[_0x567203(0x252,0x1e0,0x218,0x1c3)]({'matcher':z[_0x567203(0x179,0x11b,0xb1,0x3c)]()[_0x567203(0xf0,-0xa1,-0x36,0x6d)](),'hooks':z[_0x29bb69(-0x3,-0xb,0xa3,-0xf6)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x29bb69(0x73,0xe4,0x30,-0x6a)]({'PreToolUse':z[_0x29bb69(0x13a,-0xb,0xa1,0x49)](hookMatcherGroupSchema)[_0x567203(0xd,-0xa4,-0x36,0x71)](),'PostToolUse':z[_0x29bb69(-0x35,-0xb,0x12c,-0xf4)](hookMatcherGroupSchema)[_0x29bb69(-0xf5,-0x16a,-0x1a2,-0x64)](),'UserPromptSubmit':z[_0x567203(0x21f,0xab,0x129,-0x27)](hookMatcherGroupSchema)[_0x567203(-0x6e,-0x147,-0x36,-0xf3)](),'Stop':z['array'](hookMatcherGroupSchema)[_0x567203(0x10a,0x8e,-0x36,-0x35)](),'Notification':z[_0x567203(0x246,0x1d1,0x129,0x28)](hookMatcherGroupSchema)[_0x29bb69(-0x253,-0x16a,-0x247,-0xc7)](),'SessionStart':z['array'](hookMatcherGroupSchema)[_0x29bb69(-0x217,-0x16a,-0x107,-0x230)](),'SessionEnd':z[_0x567203(0x164,-0x2c,0x129,0x10c)](hookMatcherGroupSchema)[_0x567203(-0x125,-0x31,-0x36,-0xc8)]()}),cliConfigSchema=z[_0x567203(0x134,0x1ae,0x218,0xe8)]({'activeProvider':z[_0x29bb69(-0x197,-0x83,0x4b,0x57)]()[_0x567203(-0x47,0x55,-0x36,0xfa)](),'activeModel':z['string']()['optional'](),'apiKey':z['string']()[_0x29bb69(-0x63,-0x16a,-0x2b7,-0x120)](),'providers':z[_0x29bb69(0x106,0x133,0x278,0x3f)](z['string'](),providerConfigSchema)[_0x567203(-0x132,-0x66,-0x36,-0x187)](),'mcp':mcpSettingsSchema[_0x567203(0xb8,-0xc9,-0x36,-0x10d)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x567203(-0x167,0x7f,-0x36,-0x188)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x29bb69(0xa3,0x133,0x14e,0x1f3)](z[_0x29bb69(-0xea,-0x83,-0x135,-0x101)](),z[_0x567203(-0x5c,0x0,0xbb,-0x71)]())[_0x567203(0xa,0x14,-0x36,0xbc)](),'memory':memorySettingsSchema[_0x567203(-0xff,-0xcf,-0x36,0x6c)](),'session':z[_0x567203(0x115,0x142,0x218,0x262)]({'memPersist':z[_0x567203(0xc3,0x87,0xbb,0x37)]()[_0x567203(-0x88,0x84,-0x36,-0x17f)](),'persistEventLog':z[_0x29bb69(-0x74,-0x79,0x9d,-0x120)]()['optional'](),'persistHttpLog':z[_0x29bb69(-0x6e,-0x79,-0x130,-0x5a)]()['optional']()})['passthrough']()[_0x567203(0x11,0x94,-0x36,0xfc)](),'requireToolApproval':z[_0x29bb69(-0x11b,-0x79,0x38,-0x115)]()[_0x567203(-0x98,0x93,-0x36,-0x17b)](),'thinking':z[_0x567203(-0x44,-0x9b,0x87,0x132)]([_0x567203(0x142,0x2ef,0x1d6,0x245),_0x567203(0xdc,0x153,0x43,0x17b),'MEDIUM',_0x567203(0x9a,-0x21,0xb5,-0x2)])[_0x567203(0x72,-0x152,-0x36,0x5b)](),'streamingChunks':z[_0x567203(-0x72,-0x1e,0xbb,-0x5c)]()[_0x567203(0xec,0x101,-0x36,-0x3c)](),'agentsEnabled':z[_0x29bb69(0x5,0x133,0x164,0x70)](z['string'](),z[_0x29bb69(0xb6,-0x79,-0x1d,-0x14e)]())[_0x29bb69(-0xf2,-0x16a,-0x90,-0x206)](),'recentModels':z[_0x29bb69(0x6c,-0xb,-0x140,-0xcd)](recentModelSchema)[_0x29bb69(-0x68,-0x16a,-0x2a7,-0x1b6)](),'lsp':lspConfigSchema[_0x567203(-0x137,-0xf2,-0x36,0xd1)](),'ui':z[_0x567203(0x27b,0x1c5,0x218,0x21e)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x567203(-0x16a,0xfd,-0x36,0x33)]()})[_0x29bb69(0x18c,0x83,-0xae,0x10b)]()['optional'](),'tools':z['record'](z[_0x567203(0x71,0x11d,0xb1,-0xc)](),z[_0x567203(0x179,0x20b,0x1d1,0xc1)]())['optional'](),'hooks':hooksConfigSchema['optional']()})[_0x567203(0x2ac,0xcf,0x1b7,0x19a)]();function buildDescription(_0x4a7b6f){const _0x526ef1={_0x387a1d:0x35b,_0x5510b1:0x326,_0x533bed:0x1aa,_0x23a24b:0x200,_0x246879:0xbe,_0x1ac8f9:0x34a,_0x112d68:0x78d,_0x7e902:0x5e7,_0x2dce88:0x6e4,_0x5c7b76:0x773,_0x55800e:0x641,_0x429afd:0x57e,_0x2199b8:0x497,_0x573164:0x7b3,_0x598561:0x6b9},_0xc3a4a5={_0x177e64:0x1c4,_0x370c54:0x58b,_0x1b6764:0x2c},_0x2a10b6={_0x45c691:0x301,_0x571b50:0x65};if(_0x4a7b6f['length']===0x0)return[_0x7d01af(_0x526ef1._0x387a1d,0x3c9,_0x526ef1._0x5510b1,0x292),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x7d01af(_0x526ef1._0x533bed,_0x526ef1._0x23a24b,0x208,_0x526ef1._0x246879)][_0x7d01af(0x3cb,_0x526ef1._0x1ac8f9,0x2fb,0x41d)]('\x0a');function _0x7d01af(_0xf6e637,_0x3a6fd3,_0x53b4e3,_0xe6a6df){return _0x29bb69(_0xf6e637-0x36,_0x53b4e3-_0x2a10b6._0x45c691,_0x3a6fd3,_0xe6a6df-_0x2a10b6._0x571b50);}function _0x53d502(_0x5acf65,_0xf6993f,_0x50da3a,_0xd3e3ed){return _0x567203(_0x5acf65,_0xf6993f-_0xc3a4a5._0x177e64,_0xd3e3ed-_0xc3a4a5._0x370c54,_0xd3e3ed-_0xc3a4a5._0x1b6764);}const _0x6011a4=[_0x53d502(_0x526ef1._0x112d68,_0x526ef1._0x7e902,0x625,_0x526ef1._0x2dce88),_0x53d502(0x62e,_0x526ef1._0x5c7b76,0x758,_0x526ef1._0x55800e),_0x53d502(0x608,_0x526ef1._0x429afd,0x6ef,0x626),..._0x4a7b6f[_0x53d502(_0x526ef1._0x2199b8,0x5cd,0x6c9,0x583)](_0x48c14e=>_0x48c14e[_0x53d502(0x72a,0x74a,0x788,0x700)]?'-\x20'+_0x48c14e[_0x53d502(0x86a,0x731,0x8c9,0x7a1)]+'\x20'+_0x48c14e[_0x7d01af(0x2e8,0x402,0x342,0x39a)]+':\x20'+_0x48c14e[_0x53d502(0x6ba,0x70c,0x5aa,0x5b5)]:'-\x20'+_0x48c14e['name']+':\x20'+_0x48c14e['description'])];return _0x6011a4[_0x53d502(0x649,_0x526ef1._0x573164,0x7d7,_0x526ef1._0x598561)]('\x0a');}function createInvokeCommandTool(_0x47c677){const _0x54b8cf={_0x32b71f:0xf4,_0xcd1cf:0xfe,_0x2d9566:0x375,_0x58710e:0x1da,_0x3df169:0x8a,_0x4d33c8:0x128,_0x305ceb:0x244,_0x122942:0x2b4,_0x26fc72:0x419,_0x9981c2:0x379,_0x433297:0x40c,_0x265729:0x3fc,_0x2de143:0x33b,_0x2684e3:0x2a5,_0x32f86f:0x234,_0xfaa095:0x37a},_0x1bf610={_0x4d8199:0x31,_0x3b41bd:0x162,_0x3c16a3:0x319,_0x3474b4:0x2ac,_0x2d2473:0x129,_0x1807a7:0x1eb,_0x5c7c39:0x9a,_0x30c417:0x18d,_0x437316:0x472,_0x33aa97:0x33f,_0x30126f:0x311,_0xa60b23:0x1fa,_0x33bbcd:0x225,_0xa5a54:0x275,_0xcbc1c0:0x46,_0x9faacf:0x14a,_0x5dccc7:0x63,_0xad9f08:0x41,_0x2f215e:0x47,_0x2235c2:0x257,_0x1a61af:0x16a,_0x57ea55:0x17d},_0x1f3eae={_0x514334:0xd8,_0x2a68eb:0x11b},_0x62bdac={_0x2ca5fd:0x1a8},_0x7b1459={_0xdf5720:0x15d};function _0xfb628a(_0x51d3f8,_0xa3bf42,_0x4b6e28,_0x40024c){return _0x567203(_0xa3bf42,_0xa3bf42-_0x7b1459._0xdf5720,_0x51d3f8-0x1e2,_0x40024c-0xd9);}const _0x32a35e=new Map(_0x47c677[_0x3a4287(0x244,_0x54b8cf._0x32b71f,_0x54b8cf._0xcd1cf,_0x54b8cf._0x2d9566)][_0xfb628a(_0x54b8cf._0x58710e,0x2e7,_0x54b8cf._0x3df169,_0x54b8cf._0x4d33c8)](_0x2b5401=>[_0x2b5401['id'],_0x2b5401]));function _0x3a4287(_0x13a3a9,_0x4f25ba,_0x56d3e5,_0x156917){return _0x29bb69(_0x13a3a9-_0x62bdac._0x2ca5fd,_0x13a3a9-0x328,_0x156917,_0x156917-0x66);}const _0x1ca6ba=buildDescription(_0x47c677[_0x3a4287(_0x54b8cf._0x305ceb,0x107,0x1d2,_0x54b8cf._0x122942)]);return defineTool({'name':_0x3a4287(_0x54b8cf._0x26fc72,0x56c,0x3f1,_0x54b8cf._0x9981c2),'description':_0x1ca6ba,'inputSchema':{'type':_0x3a4287(_0x54b8cf._0x433297,0x4aa,0x435,_0x54b8cf._0x265729),'properties':{'name':{'type':_0xfb628a(0x293,_0x54b8cf._0x2de143,0x16f,0x3d2)},'args':{'type':_0x3a4287(_0x54b8cf._0x2684e3,_0x54b8cf._0x32f86f,0x26b,_0x54b8cf._0xfaa095)}},'required':['name']},async *'execute'(_0x43181b){const _0x557065={_0x43cd6c:0x296};function _0x343668(_0x3be1a3,_0x5642c5,_0x283700,_0x2e9e78){return _0xfb628a(_0x2e9e78- -_0x557065._0x43cd6c,_0x3be1a3,_0x283700-0x13f,_0x2e9e78-0x105);}const _0x15ca7e=_0x32a35e[_0x343668(-0x3f,0x8f,0x59,-_0x1bf610._0x4d8199)](_0x43181b[_0x343668(0x18e,0xc3,0x47,_0x1bf610._0x3b41bd)]);if(!_0x15ca7e){const _0x3ab5f3=Array[_0x39600c(_0x1bf610._0x3c16a3,_0x1bf610._0x3474b4,_0x1bf610._0x2d2473,_0x1bf610._0x1807a7)](_0x32a35e[_0x39600c(0x139,0xaa,_0x1bf610._0x5c7c39,_0x1bf610._0x30c417)]())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0x43181b[_0x39600c(_0x1bf610._0x437316,_0x1bf610._0x33aa97,_0x1bf610._0x30126f,0x332)]+_0x39600c(_0x1bf610._0xa60b23,0x260,0x32a,0x313)+_0x3ab5f3,{'name':_0x43181b[_0x343668(_0x1bf610._0x33bbcd,_0x1bf610._0xa5a54,_0x1bf610._0xcbc1c0,0x162)]});}const _0x39542c=await _0x47c677['loadCommand'](_0x15ca7e),_0x444d3f=_0x43181b[_0x343668(-_0x1bf610._0x9faacf,_0x1bf610._0x5dccc7,-_0x1bf610._0xad9f08,-_0x1bf610._0x2f215e)]??'',_0x850f47=renderCommandInstructions({'instructions':_0x39542c['instructions'],'argumentsText':_0x444d3f,'argumentNames':_0x39542c[_0x39600c(0x36a,0x232,0x25b,_0x1bf610._0x2235c2)]});function _0x39600c(_0x508f29,_0x5a0c61,_0x2aa132,_0x4840fd){return _0x3a4287(_0x4840fd- -_0x1f3eae._0x514334,_0x5a0c61-_0x1f3eae._0x2a68eb,_0x2aa132-0xb2,_0x2aa132);}return yield createToolOutput(_0x850f47,{'id':_0x39542c['id'],'name':_0x39542c[_0x343668(0x62,_0x1bf610._0x1a61af,_0x1bf610._0x57ea55,0x162)],'path':_0x15ca7e['source']['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x3d4b58,rename as _0x1f8e35,stat as _0xa329f1,writeFile as _0x1ec8a3}from'fs/promises';import*as _0x2be4ac from'path';function detectEol(_0x250dfc){const _0x15aada={_0x4d7d1b:0x53e,_0x26b3f4:0x52e,_0x142bee:0x3e6,_0x252c16:0x438,_0x687f29:0x4c3,_0xf7c4d:0x2d5,_0x2fef6a:0x39c,_0x4cbbe6:0x2df},_0x58cf32={_0x2cf6c7:0x561},_0x1dd38b={_0x397a31:0x17e};function _0x20905e(_0x4c9c63,_0x584bc8,_0x1edd84,_0x59a61a){return _0x567203(_0x59a61a,_0x584bc8-_0x1dd38b._0x397a31,_0x584bc8-0x2a0,_0x59a61a-0x8a);}function _0x401830(_0x207fee,_0x3e1981,_0x2fcd27,_0x5c644a){return _0x29bb69(_0x207fee-0x9a,_0x5c644a-_0x58cf32._0x2cf6c7,_0x3e1981,_0x5c644a-0x82);}return/\r\n/['test'](_0x250dfc[_0x401830(_0x15aada._0x4d7d1b,_0x15aada._0x26b3f4,_0x15aada._0x142bee,0x41b)](_0x401830(0x46d,0x613,_0x15aada._0x252c16,_0x15aada._0x687f29)))?_0x20905e(_0x15aada._0xf7c4d,_0x15aada._0x2fef6a,0x250,_0x15aada._0x4cbbe6):'lf';}function normalizeToLf(_0x25b6d7){const _0x40c0a7={_0x41909e:0xb0,_0x58f909:0x3e,_0x5e7207:0x70},_0x1a030d={_0x4a1d8a:0x25};function _0x5b1ca9(_0x247924,_0x48731e,_0xff7e43,_0x37aff9){return _0x29bb69(_0x247924-0x1b,_0x37aff9- -_0x1a030d._0x4a1d8a,_0x247924,_0x37aff9-0xf5);}return _0x25b6d7[_0x5b1ca9(-_0x40c0a7._0x41909e,-0x4c,_0x40c0a7._0x58f909,-_0x40c0a7._0x5e7207)](/\r\n/g,'\x0a');}function convertEol(_0x20117b,_0x572a42){const _0x427e17={_0x30d088:0x4ec,_0x37b7e1:0x476},_0x1cc184={_0x14a40c:0x1ce,_0x3005ef:0x14c},_0x505f40={_0x2a3108:0x89};function _0x36000f(_0x437c61,_0x35a98a,_0x37f20a,_0x15b160){return _0x29bb69(_0x437c61-_0x505f40._0x2a3108,_0x437c61-0x393,_0x37f20a,_0x15b160-0x22);}function _0x19e1f7(_0x17c5b8,_0x2e3dfc,_0x3f4d3c,_0x3b0a6b){return _0x29bb69(_0x17c5b8-_0x1cc184._0x14a40c,_0x3b0a6b-0x4a7,_0x2e3dfc,_0x3b0a6b-_0x1cc184._0x3005ef);}return _0x572a42===_0x19e1f7(_0x427e17._0x30d088,0x3a1,0x441,0x46f)?_0x20117b[_0x19e1f7(0x3d3,_0x427e17._0x37b7e1,0x46c,0x45c)](/\n/g,'\x0d\x0a'):_0x20117b;}async function atomicWrite(_0x44ddc8,_0x18f217){const _0x4a556d={_0x1adc39:0x523,_0x2ca83e:0x578,_0x206b52:0x589,_0x45fb45:0x726,_0x2600a1:0x61c,_0x16950c:0x74c,_0x1186ed:0x641,_0x46bc70:0x74a,_0x3b6907:0x7fb,_0x47bd80:0x3c5,_0x1c7b09:0x1d7,_0x30584e:0x396,_0x4e5887:0x275,_0x4b3e96:0x50,_0x5294c4:0xb5,_0x2318d9:0x1e4,_0x2f4bea:0x22f},_0x270d79={_0x1f8565:0x1da},_0x2b8362={_0x2f13f2:0x1b},_0x5dfe02=_0x2be4ac[_0x182368(0x5c9,0x589,_0x4a556d._0x1adc39,_0x4a556d._0x2ca83e)](_0x44ddc8);function _0x39afdd(_0x3be9fb,_0x30e43b,_0xc9a5c2,_0x3399f5){return _0x29bb69(_0x3be9fb-0x77,_0x3399f5-0x18e,_0x30e43b,_0x3399f5-_0x2b8362._0x2f13f2);}const _0x39ed0d=_0x2be4ac[_0x182368(_0x4a556d._0x206b52,_0x4a556d._0x45fb45,_0x4a556d._0x2600a1,_0x4a556d._0x16950c)](_0x5dfe02,_0x182368(_0x4a556d._0x1186ed,0x6df,_0x4a556d._0x46bc70,_0x4a556d._0x3b6907)+_0x2be4ac[_0x39afdd(0x1dc,_0x4a556d._0x47bd80,_0x4a556d._0x1c7b09,0x2b0)](_0x44ddc8)+'.'+Date[_0x39afdd(0x365,_0x4a556d._0x30584e,0x37b,_0x4a556d._0x4e5887)]()+'.'+Math[_0x39afdd(0x119,-0x8e,-_0x4a556d._0x4b3e96,0x5c)]()[_0x39afdd(-_0x4a556d._0x5294c4,0x3e,0x19c,0x48)](0x24)[_0x39afdd(0xf8,0xde,_0x4a556d._0x2318d9,_0x4a556d._0x2f4bea)](0x2));await _0x1ec8a3(_0x39ed0d,_0x18f217);function _0x182368(_0x5d1c62,_0x1ed492,_0x3baa46,_0x1fb06c){return _0x29bb69(_0x5d1c62-0x58,_0x3baa46-0x622,_0x1fb06c,_0x1fb06c-_0x270d79._0x1f8565);}await _0x1f8e35(_0x39ed0d,_0x44ddc8);}function sha256(_0x3d02c2){const _0x21c1ee={_0x53924f:0x798,_0x3d22e8:0x6eb,_0x29af21:0x872,_0x18562d:0x7c1,_0x3cfbed:0x6d5,_0x3e2fa3:0x59b,_0x36c9a5:0x652},_0x17a855={_0x2b41ec:0x1cf,_0x28f1a1:0x30c,_0x2abf2c:0x1e5},_0x405857={_0x102bc4:0x6ac,_0x5b5e34:0x1c2};function _0x37d43a(_0x5a4a23,_0x2b2c2d,_0x20dcb2,_0x1635ea){return _0x29bb69(_0x5a4a23-0x6f,_0x5a4a23-_0x405857._0x102bc4,_0x1635ea,_0x1635ea-_0x405857._0x5b5e34);}function _0x2b0206(_0x559249,_0x489aa6,_0x1508fa,_0x1a6002){return _0x29bb69(_0x559249-_0x17a855._0x2b41ec,_0x1a6002-_0x17a855._0x28f1a1,_0x489aa6,_0x1a6002-_0x17a855._0x2abf2c);}return createHash(_0x37d43a(_0x21c1ee._0x53924f,_0x21c1ee._0x3d22e8,0x7cd,0x79d))['update'](_0x3d02c2)[_0x37d43a(0x738,0x675,_0x21c1ee._0x29af21,_0x21c1ee._0x18562d)](_0x37d43a(0x664,_0x21c1ee._0x3cfbed,_0x21c1ee._0x3e2fa3,_0x21c1ee._0x36c9a5));}function countLines(_0x36dac0){const _0x3c2e9b={_0x1e9b82:0x2fe,_0x16bc49:0x3e4,_0x2b2a1d:0x38d,_0x582d84:0x66b,_0x515c53:0x121},_0x240a56={_0x31b45d:0xce},_0x1ada92=_0x36dac0['replace'](/\n$/,'');function _0x14fb56(_0x30518c,_0x364728,_0x5dea6a,_0x4e94bc){return _0x567203(_0x4e94bc,_0x364728-0x104,_0x30518c-0x13b,_0x4e94bc-0x38);}function _0x353f1c(_0x3777bb,_0x284982,_0x4f1ec3,_0x528db7){return _0x29bb69(_0x3777bb-0x197,_0x528db7-0x562,_0x4f1ec3,_0x528db7-_0x240a56._0x31b45d);}return _0x1ada92[_0x353f1c(_0x3c2e9b._0x1e9b82,_0x3c2e9b._0x16bc49,_0x3c2e9b._0x2b2a1d,0x414)]===0x0?0x0:_0x1ada92[_0x353f1c(0x42a,_0x3c2e9b._0x582d84,0x435,0x518)]('\x0a')[_0x14fb56(_0x3c2e9b._0x515c53,-0x32,0x14d,0x18)];}function calculateLineNumbers(_0x4ffbf0,_0x55a4c4,_0x293de9,_0x5f50ef){const _0x116696={_0x457a53:0x3c1,_0x65161b:0x299,_0x3001a3:0x206,_0x17a489:0x195},_0x4390da={_0x237dfb:0xb2,_0x1fc097:0x1a7},_0x34699f={_0x207445:0x2e3,_0x381677:0x124},_0x160041=_0x4ffbf0[_0x5f4e33(0x35b,0x45b,_0x116696._0x457a53,0x384)](0x0,_0x5f50ef)[_0x5f4e33(0x18b,0x1ce,0x2ed,_0x116696._0x65161b)]('\x0a')[_0x5f4e33(0x15b,0x2dc,_0x116696._0x3001a3,_0x116696._0x17a489)];function _0x5f4e33(_0x1183a9,_0x2a9115,_0xd4ab14,_0x1abb01){return _0x29bb69(_0x1183a9-0x1c5,_0x1abb01-_0x34699f._0x207445,_0x1183a9,_0x1abb01-_0x34699f._0x381677);}const _0x231b95=countLines(_0x55a4c4);function _0x1091a2(_0x2b45a5,_0xe57e1,_0x26da06,_0x418f1d){return _0x567203(_0x2b45a5,_0xe57e1-_0x4390da._0x237dfb,_0x418f1d-0x559,_0x418f1d-_0x4390da._0x1fc097);}const _0x18f6a2=countLines(_0x293de9);return{'oldStartLine':_0x160041,'oldEndLine':_0x160041+_0x231b95-0x1,'newStartLine':_0x160041,'newEndLine':_0x160041+_0x18f6a2-0x1,'oldLineCount':_0x231b95,'newLineCount':_0x18f6a2};}function createFileEditTool(_0x582252={}){const _0x195e73={_0x14cc2e:0x80b,_0x172447:0x60e,_0x3a9c34:0x611,_0x2faa9d:0x444,_0x37e4e9:0xe6,_0x126791:0x50,_0x3b8344:0x22,_0x372186:0xc9,_0x6a9e85:0x89,_0x1ff70a:0x10e,_0xa4be75:0x56b,_0x496973:0x5a6,_0xe91ff4:0x5a1,_0x46d6cd:0x658,_0x18b400:0x6e0,_0x7f040b:0x5b0,_0x24e09b:0x32,_0x9de6c9:0xf1,_0x1293b7:0x1be,_0x3bd09e:0x783,_0x231b7b:0x6bb,_0xf287b5:0x772,_0x5b02a2:0x67a},_0x4fd1dd={_0x8b31fc:0x175,_0x39c7b5:0x214,_0x3dbb5a:0x1c5,_0x52eff8:0x1c2,_0x1ebc04:0x2c7,_0x170891:0x387,_0x1d54b0:0x286,_0x408597:0xb3,_0x5ae23e:0x21f,_0x3754fc:0x1a3,_0x3a8588:0x261,_0x57e70b:0x2e5,_0x5594ec:0x273,_0x5b55d3:0x3ee,_0xb414a4:0x33c,_0x352816:0x3a8,_0x4a0120:0x112,_0x4aebcf:0x193,_0x27cede:0x9a,_0x2ecef7:0x104,_0x97cf80:0x1c3,_0x22d3e8:0x209,_0x5540ec:0x28,_0x4df423:0x10d,_0xf68965:0x2d6,_0x27f44d:0x1a4,_0x42118d:0x1e1,_0x4e4631:0x1ee,_0x5a6a98:0x153,_0x3985a8:0x24c,_0x10374d:0x1aa,_0x270661:0x113,_0x15ee8a:0x109,_0x490f4f:0x59,_0xfcecb5:0x197,_0x3f3288:0x283,_0x47c190:0x175,_0x3e4c07:0x2c4,_0x16660e:0x1b8,_0x4493a3:0x9c,_0x310186:0x2df,_0x47c7bb:0x256,_0x37c9af:0x249,_0x150285:0x2e4,_0x2f42cf:0x22d,_0x43ef6d:0x1f9,_0x31cc2f:0x11d,_0x2d897e:0x131,_0x2fea66:0x194},_0x1b9955={_0x54a73c:0x5,_0x143214:0x334},_0x206e5e={_0x2deca5:0xf8,_0x292053:0x4f5},_0xe38a3={_0x11491a:0xc9,_0x2f4443:0x13a},_0x4a419f=_0x2be4ac['resolve'](_0x582252[_0x227dca(0x4fa,0x4fe,0x4dd,0x52f)]??process['cwd']());function _0x592e35(_0x2eef78,_0x5631bf,_0x238210,_0x2e4b83){return _0x567203(_0x5631bf,_0x5631bf-_0xe38a3._0x11491a,_0x238210- -_0xe38a3._0x2f4443,_0x2e4b83-0x2f);}const _0x4e6a63=(_0x582252[_0x227dca(0x79f,0x625,0x73b,_0x195e73._0x14cc2e)]??[])[_0x227dca(_0x195e73._0x172447,_0x195e73._0x3a9c34,0x4ed,_0x195e73._0x2faa9d)](_0x1e55df=>_0x2be4ac['resolve'](_0x1e55df));function _0x227dca(_0x4d2a06,_0x2e2387,_0x4849bc,_0x2f8618){return _0x567203(_0x2f8618,_0x2e2387-_0x206e5e._0x2deca5,_0x4849bc-_0x206e5e._0x292053,_0x2f8618-0x1a7);}const _0x5286f2=_0x582252['name']??_0x592e35(0x1aa,0x111,0xf8,0x1a3);return defineTool({'name':_0x5286f2,'description':_0x592e35(_0x195e73._0x37e4e9,-_0x195e73._0x126791,-_0x195e73._0x3b8344,-0x48),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0x592e35(0x85,_0x195e73._0x372186,-_0x195e73._0x6a9e85,-_0x195e73._0x1ff70a)},'oldText':{'type':_0x227dca(0x617,_0x195e73._0xa4be75,_0x195e73._0x496973,0x46a)},'newText':{'type':_0x227dca(0x54b,_0x195e73._0xe91ff4,0x5a6,_0x195e73._0x46d6cd)},'dryRun':{'type':_0x227dca(_0x195e73._0x18b400,0x4e3,_0x195e73._0x7f040b,0x610)}},'required':[_0x592e35(-_0x195e73._0x24e09b,-0x87,-_0x195e73._0x9de6c9,-_0x195e73._0x1293b7),_0x227dca(0x5d6,_0x195e73._0x3bd09e,_0x195e73._0x231b7b,_0x195e73._0xf287b5),_0x227dca(0x625,0x5fb,0x57d,_0x195e73._0x5b02a2)]},async *'execute'(_0x39f27e){const _0x22c9ca={_0x47a595:0xab},_0x46d3ed=resolveAllowedPath(_0x4a419f,_0x4e6a63,_0x39f27e[_0x42b47f(_0x4fd1dd._0x8b31fc,0x1cb,0x198,_0x4fd1dd._0x39c7b5)]);await assertWorkspaceFile(_0x46d3ed);const _0x408449=await _0xa329f1(_0x46d3ed),_0x497c55=await _0x3d4b58(_0x46d3ed),_0x4228cb=detectEol(_0x497c55),_0x4afa75=normalizeToLf(_0x497c55[_0x46aec6(0x2ad,0x108,0x1af,_0x4fd1dd._0x3dbb5a)](_0x42b47f(_0x4fd1dd._0x52eff8,_0x4fd1dd._0x1ebc04,0x27f,0x1cc))),_0x15b60b=normalizeToLf(_0x39f27e[_0x46aec6(0x3cc,0x243,_0x4fd1dd._0x170891,_0x4fd1dd._0x1d54b0)]),_0x497022=normalizeToLf(_0x39f27e[_0x42b47f(0x1b4,_0x4fd1dd._0x408597,0x2ee,0x70)]),_0x2873f7=_0x4afa75[_0x42b47f(_0x4fd1dd._0x5ae23e,0x2a9,_0x4fd1dd._0x3754fc,_0x4fd1dd._0x3a8588)](_0x15b60b);if(_0x2873f7===-0x1){const _0x101cc5=_0x15b60b[_0x42b47f(0x301,0x421,_0x4fd1dd._0x57e70b,_0x4fd1dd._0x5594ec)](0x0,0x64)[_0x46aec6(0x253,_0x4fd1dd._0x5b55d3,0x2aa,0x373)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x42b47f(_0x4fd1dd._0xb414a4,_0x4fd1dd._0x352816,0x3ba,0x415)+_0x101cc5+(_0x15b60b[_0x42b47f(_0x4fd1dd._0x4a0120,-0x3,_0x4fd1dd._0x4aebcf,_0x4fd1dd._0x27cede)]>0x64?_0x42b47f(_0x4fd1dd._0x2ecef7,_0x4fd1dd._0x97cf80,_0x4fd1dd._0x22d3e8,-_0x4fd1dd._0x5540ec):'')+'\x22',{'filePath':_0x39f27e[_0x46aec6(0x1f3,_0x4fd1dd._0x4df423,0x20a,0x234)]});}const _0x849e2=_0x4afa75[_0x42b47f(0x301,0x39d,0x40a,_0x4fd1dd._0xf68965)](0x0,_0x2873f7)+_0x497022+_0x4afa75[_0x46aec6(0x489,0x426,0x396,0x2c0)](_0x2873f7+_0x15b60b[_0x42b47f(0x112,_0x4fd1dd._0x27f44d,_0x4fd1dd._0x42118d,_0x4fd1dd._0x4e4631)]),_0xc0b2bb=convertEol(_0x849e2,_0x4228cb),_0x2c1ae2=Buffer[_0x42b47f(0x1fb,0x10f,0x2b6,_0x4fd1dd._0x5a6a98)](_0xc0b2bb,'utf8'),_0xe7e0ed=sha256(_0x497c55),_0x46fc54=sha256(_0x2c1ae2),_0x14492f=_0xe7e0ed===_0x46fc54,_0x25c6f1=_0x39f27e[_0x42b47f(0x2cb,0x414,_0x4fd1dd._0x3985a8,0x2d3)]??![];function _0x46aec6(_0x593ccc,_0x2fae5f,_0x386cc4,_0x5f5dcb){return _0x227dca(_0x593ccc-_0x1b9955._0x54a73c,_0x2fae5f-0xae,_0x386cc4- -_0x1b9955._0x143214,_0x593ccc);}!_0x25c6f1&&!_0x14492f&&await atomicWrite(_0x46d3ed,_0x2c1ae2);function _0x42b47f(_0x16ab32,_0x38c1a3,_0x31f3ec,_0x3d1868){return _0x227dca(_0x16ab32-_0x22c9ca._0x47a595,_0x38c1a3-0x1b3,_0x16ab32- -0x3c9,_0x3d1868);}return yield createToolOutput(_0x14492f?_0x42b47f(_0x4fd1dd._0x10374d,_0x4fd1dd._0x270661,0x1d1,_0x4fd1dd._0x15ee8a):_0x25c6f1?_0x46aec6(_0x4fd1dd._0x490f4f,0x1ee,_0x4fd1dd._0xfcecb5,_0x4fd1dd._0x3f3288):'Edit\x20applied\x20successfully.',{'filePath':_0x39f27e[_0x42b47f(_0x4fd1dd._0x47c190,_0x4fd1dd._0x3e4c07,0x22b,0x177)],'resolvedPath':_0x46d3ed,'created':_0x408449['birthtime'][_0x42b47f(0x162,0xba,_0x4fd1dd._0x16660e,_0x4fd1dd._0x4493a3)](),'modified':_0x408449[_0x42b47f(_0x4fd1dd._0x310186,_0x4fd1dd._0x47c7bb,0x1ff,_0x4fd1dd._0x37c9af)]['toISOString'](),'size':_0x408449[_0x46aec6(0x254,_0x4fd1dd._0x150285,_0x4fd1dd._0x2f42cf,0x32c)],'eol':_0x4228cb,'oldTextLength':_0x15b60b['length'],'newTextLength':_0x497022[_0x42b47f(_0x4fd1dd._0x4a0120,_0x4fd1dd._0x43ef6d,0x25b,_0x4fd1dd._0x31cc2f)],'bytesWritten':_0x14492f||_0x25c6f1?0x0:_0x2c1ae2[_0x46aec6(_0x4fd1dd._0x2d897e,0x139,0x1a7,_0x4fd1dd._0x2fea66)],'beforeSha':_0xe7e0ed,'afterSha':_0x46fc54,'dryRun':_0x25c6f1,'noChange':_0x14492f,'lineNumbers':calculateLineNumbers(_0x4afa75,_0x15b60b,_0x497022,_0x2873f7)}),void 0x0;}});}import{mkdir as _0x13b0ce,rename as _0x5f511d,stat as _0x139e39,writeFile as _0x249eb4}from'fs/promises';import*as _0x5e8310 from'path';async function atomicWrite2(_0x3cdd12,_0x2fbca3){const _0x41f41d={_0x3a5312:0x272,_0x1932b0:0xfd,_0x236421:0x4dd,_0xa2fa63:0x557,_0x4c5775:0x578,_0x2bfa1b:0x796,_0x393c85:0x3f9,_0x47bbda:0x4df,_0xa00887:0x546,_0x44990e:0x4f5,_0x37ecd8:0x418,_0x3a4310:0x2ca,_0x17caf8:0x24a,_0x5d879d:0x555,_0x21de72:0x65b,_0x57027e:0x5fe},_0x3b432f={_0x130974:0x179,_0x51a04f:0x55d,_0x2aa2b5:0xfe},_0x2ea3de=_0x5e8310[_0x2144a0(0x213,0xcb,_0x41f41d._0x3a5312,_0x41f41d._0x1932b0)](_0x3cdd12);await _0x13b0ce(_0x2ea3de,{'recursive':!![]});function _0x2144a0(_0x1c9f2e,_0x26ea51,_0x53345d,_0x49cecd){return _0x29bb69(_0x1c9f2e-0x1b9,_0x1c9f2e-0x312,_0x26ea51,_0x49cecd-0xc4);}const _0x36ada3=_0x5e8310[_0x4b527d(_0x41f41d._0x236421,0x69f,_0x41f41d._0xa2fa63,0x618)](_0x2ea3de,'.tmp.'+_0x5e8310[_0x4b527d(_0x41f41d._0x4c5775,_0x41f41d._0x2bfa1b,0x67f,0x6cc)](_0x3cdd12)+'.'+Date[_0x2144a0(_0x41f41d._0x393c85,_0x41f41d._0x47bbda,_0x41f41d._0xa00887,_0x41f41d._0x44990e)]()+'.'+Math[_0x4b527d(_0x41f41d._0x37ecd8,0x551,0x42b,0x325)]()[_0x2144a0(0x1cc,_0x41f41d._0x3a4310,_0x41f41d._0x17caf8,0x177)](0x24)[_0x4b527d(_0x41f41d._0x5d879d,_0x41f41d._0x21de72,_0x41f41d._0x57027e,0x4b9)](0x2));function _0x4b527d(_0x353b71,_0x397d8c,_0x3d81ff,_0x115640){return _0x29bb69(_0x353b71-_0x3b432f._0x130974,_0x3d81ff-_0x3b432f._0x51a04f,_0x115640,_0x115640-_0x3b432f._0x2aa2b5);}await _0x249eb4(_0x36ada3,_0x2fbca3),await _0x5f511d(_0x36ada3,_0x3cdd12);}function createFileNewTool(_0x2a4baa={}){const _0x14fe7c={_0xcbcc82:0x623,_0x3b8d83:0x382,_0x24cafe:0x361,_0x143d77:0x4bb,_0x23d047:0x554,_0x55ab56:0x7b9,_0xba10e4:0x442,_0x366c5a:0x558,_0x119d54:0x2f7,_0x1aa796:0x43e,_0x211828:0x646,_0x18902a:0x794,_0x7ae945:0x50f,_0x262cdf:0x74a,_0x5dcbaf:0x572,_0x6fb3b6:0x4ab,_0x4702ce:0x52a,_0xbbbfbe:0x37d,_0x75d97c:0x648,_0x2e3fa2:0x5e9,_0x31285c:0x4bd,_0xb8a65c:0x4f7,_0x421f5e:0x611,_0x2c67c0:0x45f,_0x3a5896:0x54c},_0x2c9239={_0x454a07:0x472,_0x50f027:0x73c,_0x2a3cfd:0x6fe,_0x4c8b37:0x776,_0xda4861:0x62d,_0x3fd0e1:0x8a1,_0x55233e:0x6e0,_0x43b80c:0x469,_0x4ee064:0x4b4,_0x168620:0x55e,_0xe11b01:0x701,_0x16c4c8:0x617,_0x513866:0x6be,_0x303032:0x717,_0x39e2a2:0x616,_0x34bce0:0x4c9,_0x4f7657:0x81a,_0x309591:0x6ea,_0x5b3501:0x718,_0x2042cb:0x462,_0x242a2c:0x4bb,_0x1629e7:0x52c,_0x523d61:0x347,_0xc4cb3c:0x428,_0x49ae01:0x3fa,_0x58ee0a:0x56c},_0x46f2aa={_0x233fec:0xb6,_0x4c1898:0x188},_0x9f7da2={_0x1e3999:0x10a},_0x1054e3={_0x54410f:0x1e3};function _0x2333a2(_0x45f277,_0x28c9f6,_0x3d6b6b,_0x595855){return _0x567203(_0x28c9f6,_0x28c9f6-_0x1054e3._0x54410f,_0x45f277-0x430,_0x595855-0x9a);}const _0x11ad9c=_0x5e8310[_0x2333a2(0x4d6,_0x14fe7c._0xcbcc82,0x38f,0x48d)](_0x2a4baa[_0x4ef365(_0x14fe7c._0x3b8d83,_0x14fe7c._0x24cafe,0x375,0x42e)]??process[_0x4ef365(0x5c9,_0x14fe7c._0x143d77,0x4b9,0x5a8)]());function _0x4ef365(_0x32a5de,_0x300411,_0x3a9870,_0x3bdff5){return _0x29bb69(_0x32a5de-_0x9f7da2._0x1e3999,_0x3bdff5-0x57a,_0x3a9870,_0x3bdff5-0x16);}const _0x53944c=(_0x2a4baa[_0x2333a2(0x676,_0x14fe7c._0x23d047,_0x14fe7c._0x55ab56,0x64e)]??[])[_0x4ef365(_0x14fe7c._0xba10e4,_0x14fe7c._0x366c5a,_0x14fe7c._0x119d54,_0x14fe7c._0x1aa796)](_0x52030e=>_0x5e8310[_0x4ef365(0x45b,0x524,0x4de,0x4ec)](_0x52030e)),_0x5dd44c=_0x2a4baa[_0x2333a2(_0x14fe7c._0x211828,_0x14fe7c._0x18902a,_0x14fe7c._0x7ae945,_0x14fe7c._0x262cdf)]??_0x4ef365(_0x14fe7c._0x5dcbaf,0x4f4,0x4a1,_0x14fe7c._0x6fb3b6);return defineTool({'name':_0x5dd44c,'description':_0x4ef365(0x515,_0x14fe7c._0x4702ce,_0x14fe7c._0xbbbfbe,0x45c),'inputSchema':{'type':_0x2333a2(_0x14fe7c._0x75d97c,_0x14fe7c._0x2e3fa2,0x794,0x646),'properties':{'filePath':{'type':_0x4ef365(_0x14fe7c._0x31285c,0x3f0,0x5fe,_0x14fe7c._0xb8a65c)},'content':{'type':_0x4ef365(_0x14fe7c._0x421f5e,0x5b1,0x560,_0x14fe7c._0xb8a65c)}},'required':[_0x2333a2(0x479,0x509,0x4ca,_0x14fe7c._0x2c67c0),_0x2333a2(_0x14fe7c._0x3a5896,0x53b,0x512,0x41f)]},async *'execute'(_0x5eba77){const _0x40bd6a={_0x3a02a7:0x12,_0x41731f:0x1cd},_0x4af248=resolveAllowedPath(_0x11ad9c,_0x53944c,_0x5eba77[_0x3a78de(_0x2c9239._0x454a07,0x409,0x46f,0x48b)]);function _0x16c2a2(_0x33bbba,_0x5e358d,_0x5c6a84,_0x239268){return _0x4ef365(_0x33bbba-0x7a,_0x5e358d-_0x46f2aa._0x233fec,_0x5e358d,_0x5c6a84-_0x46f2aa._0x4c1898);}const _0x57c2ad=await _0x139e39(_0x4af248)[_0x16c2a2(_0x2c9239._0x50f027,_0x2c9239._0x2a3cfd,0x7fe,_0x2c9239._0x4c8b37)](()=>!![])[_0x16c2a2(_0x2c9239._0xda4861,0x856,0x755,_0x2c9239._0x3fd0e1)](()=>![]),_0x596378=Buffer[_0x16c2a2(0x7e5,0x650,0x69d,_0x2c9239._0x55233e)](_0x5eba77[_0x3a78de(0x5a8,_0x2c9239._0x43b80c,_0x2c9239._0x4ee064,_0x2c9239._0x168620)],'utf8');await atomicWrite2(_0x4af248,_0x596378),yield createToolOutput(_0x16c2a2(0x706,0x7d2,_0x2c9239._0xe11b01,0x67f)+_0x5eba77[_0x16c2a2(0x676,0x672,_0x2c9239._0x16c4c8,0x676)]+'.',{'filePath':_0x5eba77[_0x16c2a2(0x5eb,_0x2c9239._0x513866,_0x2c9239._0x16c4c8,_0x2c9239._0x303032)],'resolvedPath':_0x4af248,'bytes':_0x596378[_0x16c2a2(_0x2c9239._0x39e2a2,_0x2c9239._0x34bce0,0x5b4,0x4f0)],'lines':_0x5eba77[_0x16c2a2(0x7f8,_0x2c9239._0x4f7657,_0x2c9239._0x309591,_0x2c9239._0x5b3501)][_0x3a78de(_0x2c9239._0x2042cb,0x41b,_0x2c9239._0x242a2c,_0x2c9239._0x1629e7)](/\r?\n/)[_0x3a78de(0x427,_0x2c9239._0x523d61,0x341,_0x2c9239._0xc4cb3c)],'created':new Date()[_0x3a78de(_0x2c9239._0x49ae01,_0x2c9239._0x58ee0a,0x51e,0x478)](),'overwritten':_0x57c2ad});function _0x3a78de(_0xdcd43a,_0x973396,_0x4d44e7,_0x203756){return _0x2333a2(_0x203756-_0x40bd6a._0x3a02a7,_0x973396,_0x4d44e7-0x179,_0x203756-_0x40bd6a._0x41731f);}return void 0x0;}});}import{readFile as _0x343ce4,stat as _0x25200c}from'fs/promises';import*as _0x1d452b from'path';function stripUtfBom(_0x378dab){return _0x378dab['charCodeAt'](0x0)===0xfeff?_0x378dab['slice'](0x1):_0x378dab;}function clampLine(_0x6dc4e2,_0x4dbac7){const _0x5cb77b={_0x2f97cc:0x7d,_0x2ebbe6:0x110,_0x44f2cb:0x711,_0x3a54cd:0x60c,_0x10ba18:0x17,_0x47aebe:0xca,_0x114ffe:0x80},_0x20f794={_0x446ccf:0xf7,_0x5ce1d8:0x543},_0x4608e3={_0x8ec13d:0x11a,_0x100e83:0x1e5};function _0x24d6a7(_0x570c91,_0x282fe4,_0x16d7a0,_0x457769){return _0x567203(_0x457769,_0x282fe4-_0x4608e3._0x8ec13d,_0x570c91- -_0x4608e3._0x100e83,_0x457769-0xa6);}if(!Number[_0x24d6a7(-0x8a,-0x19b,_0x5cb77b._0x2f97cc,-_0x5cb77b._0x2ebbe6)](_0x6dc4e2))return 0x1;function _0x280abc(_0x4ae9a4,_0xc54b93,_0x44da2b,_0x1204cc){return _0x567203(_0x4ae9a4,_0xc54b93-_0x20f794._0x446ccf,_0xc54b93-_0x20f794._0x5ce1d8,_0x1204cc-0x54);}return Math[_0x280abc(_0x5cb77b._0x44f2cb,0x5dd,0x4be,_0x5cb77b._0x3a54cd)](0x1,Math['min'](Math[_0x24d6a7(-_0x5cb77b._0x10ba18,-_0x5cb77b._0x47aebe,_0x5cb77b._0x114ffe,-0x2b)](_0x6dc4e2),_0x4dbac7));}function createFileReadTool(_0x216272={}){const _0x3395c2={_0x5e9d55:0x25d,_0x155a9e:0x16,_0x1863a6:0xf1,_0x3332e4:0x7d,_0x3a0e5c:0x57a,_0x42b3af:0x594,_0x5527a9:0x583,_0x5751a8:0x2f3,_0x5c35cc:0x251,_0x266ef5:0x2ab,_0x24e0da:0x644,_0x333c6d:0x73e,_0x5d5ae2:0x6ac,_0x155b0e:0x7b4,_0xaa8d65:0x2e6,_0x4e99ed:0x231,_0x2fce76:0x76b,_0x411c50:0x757,_0x194d08:0x191,_0x485b4c:0x32d,_0x15343c:0x2fe,_0x4c9463:0x637,_0x3637b2:0x5ef,_0x5396c2:0x6a7},_0x5a128f={_0x26de33:0x5ab,_0x30e3e7:0x6c2,_0x5c4566:0x277,_0x2fd8cd:0x621,_0xa17bff:0x765,_0x2409bd:0x761,_0x3bbf2e:0x24d,_0x3c0240:0x118,_0x434bb6:0x23b,_0x406484:0x68f,_0x3d2766:0xfb,_0x2938b7:0x33e,_0x5528c9:0xb7,_0x4ff9da:0x21,_0x3e51f5:0x77,_0x26458f:0x24e,_0x3e6320:0x15f,_0x2d6b37:0x518,_0x2d036d:0x611,_0x4be315:0x70b,_0x21f0d3:0x63b,_0x358073:0x1d1,_0x2c0ef3:0x88,_0x3a304c:0x2d1,_0x21e78c:0x32a,_0x7b2f46:0x317,_0x27f6a4:0x1d1,_0x5fdd76:0x265,_0x2f8dfe:0x18b,_0x4dc440:0x9c,_0x2b9316:0x58,_0x13e4cd:0x170,_0x2eb22e:0x517,_0x823e7a:0x58b,_0x175456:0x6fd,_0x170fd5:0x7d3,_0x515068:0x834,_0x4e230a:0x7b8,_0x52ddc2:0x77a,_0x140f50:0x645,_0x3cfa87:0x4e8,_0x1a4d43:0x767,_0x2d5196:0x6b3,_0x32939f:0x6d3,_0x28654d:0x175},_0x53095f={_0x24521d:0x1d},_0x49cca3={_0x5e426c:0x59c},_0x58ed66={_0x323aca:0x89,_0x4b1f70:0x95,_0x3290a4:0x162},_0x588794=_0x1d452b[_0xd23f6e(_0x3395c2._0x5e9d55,_0x3395c2._0x155a9e,_0x3395c2._0x1863a6,0x13b)](_0x216272[_0xd23f6e(0x1aa,-0x9f,-0x96,_0x3395c2._0x3332e4)]??process['cwd']());function _0xd23f6e(_0x1dc165,_0xcf6db3,_0x2de4c8,_0x2c009b){return _0x567203(_0xcf6db3,_0xcf6db3-_0x58ed66._0x323aca,_0x2c009b-_0x58ed66._0x4b1f70,_0x2c009b-_0x58ed66._0x3290a4);}const _0x15fbf1=(_0x216272['allowedDirs']??[])[_0x449f02(0x6b3,_0x3395c2._0x3a0e5c,_0x3395c2._0x42b3af,_0x3395c2._0x5527a9)](_0x2ae602=>_0x1d452b[_0x449f02(0x6f7,0x755,0x642,0x73e)](_0x2ae602)),_0x2e99da=_0x216272[_0xd23f6e(_0x3395c2._0x5751a8,0x26a,_0x3395c2._0x5c35cc,_0x3395c2._0x266ef5)]??_0x449f02(0x886,0x723,0x7af,0x69c);function _0x449f02(_0x583421,_0x2808b2,_0x56d5e8,_0x4d1cbe){return _0x567203(_0x2808b2,_0x2808b2-0x129,_0x56d5e8-_0x49cca3._0x5e426c,_0x4d1cbe-0x87);}return defineTool({'name':_0x2e99da,'description':_0x449f02(_0x3395c2._0x24e0da,_0x3395c2._0x333c6d,0x73e,0x5fe),'inputSchema':{'type':_0x449f02(_0x3395c2._0x5d5ae2,0x87d,_0x3395c2._0x155b0e,0x80e),'properties':{'path':{'type':'string'},'lineStart':{'type':_0xd23f6e(0x101,_0x3395c2._0xaa8d65,0x259,_0x3395c2._0x4e99ed),'description':_0x449f02(_0x3395c2._0x2fce76,0x577,0x6a4,_0x3395c2._0x411c50)},'lineEnd':{'type':_0xd23f6e(0x2df,_0x3395c2._0x194d08,_0x3395c2._0x485b4c,0x231),'description':_0xd23f6e(0x3f3,0x3b9,0x377,_0x3395c2._0x15343c)}},'required':[_0x449f02(_0x3395c2._0x4c9463,_0x3395c2._0x3637b2,_0x3395c2._0x5396c2,0x67b)]},async *'execute'(_0x42641a){const _0x5425ae={_0x39d20c:0x108,_0x3e4207:0x73,_0x3d8397:0x510},_0x5364d8=resolveAllowedPath(_0x588794,_0x15fbf1,_0x42641a[_0x2c6df2(_0x5a128f._0x26de33,_0x5a128f._0x30e3e7,0x719,0x6b0)]);await assertWorkspaceFile(_0x5364d8);const _0x434bbd=await _0x25200c(_0x5364d8),_0x3b9d10=await _0x343ce4(_0x5364d8);if(isProbablyBinary(_0x3b9d10))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x42641a[_0x3b00e0(_0x5a128f._0x5c4566,0x220,0x1f0,0x1f4)],{'path':_0x42641a[_0x2c6df2(_0x5a128f._0x2fd8cd,_0x5a128f._0xa17bff,_0x5a128f._0x2409bd,0x6b0)]});let _0x2d5023=_0x3b9d10[_0x2c6df2(0x63e,0x630,0x54b,0x593)](_0x3b00e0(0x11f,0x1ab,_0x5a128f._0x3bbf2e,0x112));const _0x4d8dd6=_0x2d5023[_0x3b00e0(0x24c,_0x5a128f._0x3c0240,0x1d3,_0x5a128f._0x434bb6)](0x0)===0xfeff;_0x2d5023=stripUtfBom(_0x2d5023);function _0x2c6df2(_0x31d008,_0x24a8ee,_0x2fe269,_0x534bcc){return _0xd23f6e(_0x31d008-_0x5425ae._0x39d20c,_0x24a8ee,_0x2fe269-_0x5425ae._0x3e4207,_0x534bcc-_0x5425ae._0x3d8397);}const _0x41f3ed=_0x2d5023[_0x2c6df2(0x7ce,0x7d2,0x7b8,_0x5a128f._0x406484)](/\r?\n/),_0x25c472={'path':_0x42641a[_0x3b00e0(0x1e3,0x220,_0x5a128f._0x3d2766,0x1f9)],'resolvedPath':_0x5364d8,'created':_0x434bbd[_0x3b00e0(_0x5a128f._0x2938b7,0x31a,0x39f,0x2be)][_0x3b00e0(_0x5a128f._0x5528c9,0x14b,_0x5a128f._0x4ff9da,0x1bf)](),'modified':_0x434bbd['mtime'][_0x3b00e0(_0x5a128f._0x3e51f5,0x14b,_0x5a128f._0x26458f,_0x5a128f._0x3e6320)](),'size':_0x434bbd[_0x2c6df2(0x618,0x5dd,_0x5a128f._0x2d6b37,_0x5a128f._0x2d036d)],'encoding':_0x2c6df2(_0x5a128f._0x4be315,0x599,0x6c9,_0x5a128f._0x21f0d3),'bomStripped':_0x4d8dd6,'truncated':![],'totalLines':_0x41f3ed['length']};function _0x3b00e0(_0x987b13,_0x4b941f,_0x125574,_0x3d8f8a){return _0x449f02(_0x987b13-_0x53095f._0x24521d,_0x987b13,_0x4b941f- -0x487,_0x3d8f8a-0x57);}if(_0x42641a['lineStart']!==void 0x0||_0x42641a[_0x3b00e0(0x2e1,_0x5a128f._0x358073,_0x5a128f._0x2c0ef3,0x27d)]!==void 0x0){const _0x5df328=clampLine(_0x42641a[_0x3b00e0(_0x5a128f._0x3a304c,_0x5a128f._0x21e78c,0x45b,_0x5a128f._0x7b2f46)]??0x1,_0x41f3ed['length']),_0x324a1a=clampLine(_0x42641a[_0x3b00e0(0x19a,_0x5a128f._0x27f6a4,_0x5a128f._0x5fdd76,_0x5a128f._0x2f8dfe)]??_0x41f3ed[_0x3b00e0(_0x5a128f._0x4dc440,0xfb,_0x5a128f._0x2b9316,_0x5a128f._0x13e4cd)],_0x41f3ed[_0x2c6df2(0x5ab,_0x5a128f._0x2eb22e,0x50c,_0x5a128f._0x823e7a)]),_0x271b93=Math[_0x2c6df2(_0x5a128f._0x175456,0x69b,_0x5a128f._0x170fd5,0x792)](_0x5df328,_0x324a1a),_0x492e42=Math[_0x2c6df2(0x75f,0x751,0x6de,0x63f)](_0x5df328,_0x324a1a),_0x238b71=_0x41f3ed[_0x2c6df2(_0x5a128f._0x515068,0x89e,_0x5a128f._0x4e230a,_0x5a128f._0x52ddc2)](_0x271b93-0x1,_0x492e42)[_0x2c6df2(_0x5a128f._0x140f50,0x5f2,_0x5a128f._0x3cfa87,0x59d)]((_0x2a986d,_0x404aff)=>_0x271b93+_0x404aff+'|'+_0x2a986d)[_0x2c6df2(_0x5a128f._0x1a4d43,_0x5a128f._0x2d5196,0x660,_0x5a128f._0x32939f)]('\x0a');return yield createToolOutput(_0x238b71,{..._0x25c472,'lineRange':{'lineStart':_0x271b93,'lineEnd':_0x492e42,'linesTotal':_0x41f3ed[_0x3b00e0(0x1c6,_0x5a128f._0x3d2766,-0x2b,_0x5a128f._0x28654d)]}}),void 0x0;}return yield createToolOutput(_0x2d5023,_0x25c472),void 0x0;}});}import{stat as _0x7d1af9}from'fs/promises';import*as _0x48e2cd from'path';import{execSync,spawn as _0xf94bf1}from'child_process';import{existsSync}from'fs';import{stat as _0x406bf9}from'fs/promises';import*as _0x533475 from'os';import*as _0x34f915 from'path';import{rgPath as _0x2ac5ca}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x30d480={_0x295805:0x1ca,_0xd4c177:0xe7,_0x10ba1c:0x3f8,_0x24a490:0x507,_0x276465:0x504,_0x4d87e7:0x2a0,_0x253843:0x32,_0x2664ae:0xb2,_0x36b65a:0x21d,_0x46a412:0x1ef,_0x240347:0x9d,_0xb69863:0x4,_0x2d3efe:0xf8,_0x4065b0:0x6e,_0xff873a:0xe6,_0x20a57d:0x253,_0xe308da:0x65,_0x21b9b7:0x72,_0x2804ee:0x168,_0x5c23e6:0xf6,_0x25b186:0x3c1,_0x26f118:0x2c8,_0x3df64c:0x4a7,_0x1e3628:0x56c,_0x530fbf:0x4ab,_0x5491c0:0x497,_0x8a1a9a:0x3b5,_0x55c3ec:0x2f4,_0x3c6d4c:0x283,_0x5d4e7b:0x423,_0x65e279:0x1b5,_0x167707:0x152,_0xcc3b59:0x286,_0x43f2cc:0x18d,_0x36f7ac:0x10,_0x222cf3:0x92,_0x419c20:0x164,_0x1f67c5:0x3ea,_0x35301f:0x42c,_0x2ebca8:0x4ba,_0x57e83a:0x326,_0x326a1d:0x3f8,_0x47ca7e:0x383,_0x29b380:0x2f3,_0x4e6acc:0x3df,_0x18b735:0x16,_0x102f04:0x14f,_0x195625:0xc8,_0x3c725d:0x4fc,_0x306762:0x7e,_0x155eda:0x1d0},_0x30a6b2={_0x2d36e3:0x60},_0x435b3d={_0x5db904:0x46},_0x2cf9fd=_0x533475[_0x391e55(-0x18b,-0x49,-_0x30d480._0x295805,-_0x30d480._0xd4c177)]()===_0x5d2663(0x30e,_0x30d480._0x10ba1c,0x370,0x30d),_0x49fe1b=_0x2cf9fd?[_0x34f915['join'](process[_0x5d2663(0x3c1,_0x30d480._0x24a490,_0x30d480._0x276465,_0x30d480._0x4d87e7)][_0x391e55(-_0x30d480._0x253843,0x1ac,0x1e5,_0x30d480._0x2664ae)]||'',_0x391e55(-0x2e0,-0x174,-_0x30d480._0x36b65a,-_0x30d480._0x46a412),_0x391e55(-_0x30d480._0x240347,-_0x30d480._0xb69863,-0x2f,-0xba),_0x391e55(-_0x30d480._0x2d3efe,0x107,-0x2b,0x43)),_0x34f915['join'](process[_0x391e55(0x23,-0x10a,-_0x30d480._0x4065b0,-_0x30d480._0xff873a)]['ProgramFiles']||'',_0x5d2663(0x35d,0x2e6,0x341,_0x30d480._0x20a57d),_0x391e55(-_0x30d480._0xe308da,-0xb0,0x19c,_0x30d480._0x21b9b7)),_0x34f915[_0x391e55(0x31,-_0x30d480._0x2804ee,-_0x30d480._0x5c23e6,-0x8c)](process[_0x5d2663(_0x30d480._0x25b186,_0x30d480._0x26f118,0x28f,_0x30d480._0x3df64c)][_0x5d2663(0x50a,_0x30d480._0x1e3628,0x4bc,0x409)]||'','ripgrep','rg.exe')]:[_0x5d2663(0x49e,0x499,_0x30d480._0x530fbf,_0x30d480._0x5491c0),_0x5d2663(_0x30d480._0x8a1a9a,_0x30d480._0x55c3ec,_0x30d480._0x3c6d4c,_0x30d480._0x5d4e7b),_0x391e55(-_0x30d480._0x65e279,-_0x30d480._0x167707,-_0x30d480._0xcc3b59,-_0x30d480._0x43f2cc),_0x391e55(_0x30d480._0x36f7ac,-_0x30d480._0x222cf3,_0x30d480._0x419c20,0x42)];for(const _0x188ec7 of _0x49fe1b){if(existsSync(_0x188ec7))return _0x188ec7;}function _0x5d2663(_0x49a984,_0x371704,_0x511b5f,_0x38335a){return _0x567203(_0x371704,_0x371704-_0x435b3d._0x5db904,_0x49a984-0x2ed,_0x38335a-0xd);}function _0x391e55(_0x5edcd9,_0xeb4b61,_0x4b823e,_0x4e21f6){return _0x29bb69(_0x5edcd9-0x152,_0x4e21f6- -0x86,_0x4b823e,_0x4e21f6-_0x30a6b2._0x2d36e3);}try{const _0x36e9f5=_0x2cf9fd?_0x5d2663(_0x30d480._0x1f67c5,0x3d5,_0x30d480._0x35301f,_0x30d480._0x2ebca8):_0x5d2663(0x345,0x497,_0x30d480._0x57e83a,_0x30d480._0x326a1d),_0x1ff6f5=execSync(_0x36e9f5,{'encoding':_0x5d2663(_0x30d480._0x47ca7e,0x487,_0x30d480._0x29b380,0x483),'stdio':[_0x5d2663(_0x30d480._0x4e6acc,0x2d8,0x4bc,0x2fe),_0x391e55(-_0x30d480._0x18b735,-_0x30d480._0x102f04,-0x2a,-_0x30d480._0x195625),_0x5d2663(0x4ed,0x5c2,0x554,_0x30d480._0x3c725d)]})[_0x391e55(-0x2bb,-0x225,-_0x30d480._0x306762,-_0x30d480._0x155eda)]()['split'](/\r?\n/)[0x0];if(_0x1ff6f5&&existsSync(_0x1ff6f5))return _0x1ff6f5;}catch{return null;}return null;}async function filepath(){const _0xc18cb={_0xbf8ddb:0x361},_0x20a8a8={_0x70439e:0x1eb,_0x3621cc:0x19c};if(cachedRgPath)return cachedRgPath;function _0x3e8320(_0x5ba205,_0x1f4358,_0x11ff2f,_0x26ff42){return _0x567203(_0x5ba205,_0x1f4358-0xec,_0x26ff42-_0x20a8a8._0x70439e,_0x26ff42-_0x20a8a8._0x3621cc);}if(_0x2ac5ca&&existsSync(_0x2ac5ca))return cachedRgPath=_0x2ac5ca,_0x2ac5ca;const _0x46ee54=findSystemRipgrep();if(!_0x46ee54)throw new Error(_0x3e8320(0x399,0x428,_0xc18cb._0xbf8ddb,0x2f7));return cachedRgPath=_0x46ee54,_0x46ee54;}async function*files(_0x460684){const _0x2b9a3d={_0x20103a:0x75b,_0x1f9e41:0x797,_0x4c8694:0x7a9,_0x48cfd9:0x734,_0x324128:0x8b2,_0x3df5c0:0x7c7,_0x2fa045:0x834,_0x5dc92c:0x804,_0x514e07:0x864,_0x46e00d:0x7d2,_0x4966da:0x210,_0x140230:0x204,_0x43a4b3:0xbd,_0x56dcb2:0x129,_0x33972f:0x76,_0x13962b:0x55,_0x3deb64:0xe0,_0x308170:0x7da,_0x48609d:0x624,_0x2ec675:0x5db,_0x5f1abc:0x646,_0x12d2cd:0x33,_0xb7dfec:0x7a0,_0x323af8:0x670,_0x1f5306:0x2bc,_0x598b69:0x2a9,_0x17a502:0x24a,_0x47e485:0x499},_0x1c956f={_0x4dde0d:0x42,_0x1df5df:0x3},_0x20ab92=await filepath(),_0x4088e4=await _0x406bf9(_0x460684['cwd'])[_0x4b1609(_0x2b9a3d._0x20103a,_0x2b9a3d._0x1f9e41,_0x2b9a3d._0x4c8694,_0x2b9a3d._0x48cfd9)](()=>null);if(!_0x4088e4?.[_0x4b1609(0x7ce,_0x2b9a3d._0x324128,0x7e2,_0x2b9a3d._0x3df5c0)]())throw Object[_0x4b1609(0x78d,0x75d,_0x2b9a3d._0x2fa045,0x80a)](new Error(_0x4b1609(0x768,_0x2b9a3d._0x5dc92c,0x73c,0x719)+_0x460684[_0x4b1609(0x736,0x7cb,_0x2b9a3d._0x514e07,_0x2b9a3d._0x46e00d)]+'\x27'),{'code':'ENOENT'});function _0x4b1609(_0x351048,_0x328274,_0x12b4b0,_0xf0f6bd){return _0x29bb69(_0x351048-0x14b,_0x351048-0x708,_0x12b4b0,_0xf0f6bd-0x1d);}const _0x4a817f=['--files','--follow',_0x4b1609(0x78e,0x6f4,0x737,0x80e),'--glob=!.git/*'];for(const _0x19f2c2 of _0x460684[_0x3693ab(_0x2b9a3d._0x4966da,_0x2b9a3d._0x140230,0xce,_0x2b9a3d._0x43a4b3)]??[]){_0x4a817f[_0x3693ab(0x180,_0x2b9a3d._0x56dcb2,_0x2b9a3d._0x33972f,-_0x2b9a3d._0x13962b)](_0x3693ab(-0xce,0x23,-0x18,_0x2b9a3d._0x3deb64)+_0x19f2c2);}const _0x660aa6=_0xf94bf1(_0x20ab92,_0x4a817f,{'cwd':_0x460684[_0x4b1609(0x736,_0x2b9a3d._0x308170,0x85e,_0x2b9a3d._0x48609d)],'stdio':['ignore','pipe','pipe']});let _0x5466d4='';function _0x3693ab(_0x3a71a5,_0x51dce1,_0x34a7a5,_0x30b0fb){return _0x29bb69(_0x3a71a5-0x14e,_0x34a7a5- -_0x1c956f._0x4dde0d,_0x30b0fb,_0x30b0fb-_0x1c956f._0x1df5df);}for await(const _0x6fabdc of _0x660aa6[_0x4b1609(0x5bf,0x640,_0x2b9a3d._0x2ec675,_0x2b9a3d._0x5f1abc)]??[]){_0x5466d4+=_0x6fabdc[_0x3693ab(-0x123,-0x35,-0x188,-_0x2b9a3d._0x12d2cd)]();const _0x58a08e=_0x5466d4[_0x4b1609(0x6be,_0x2b9a3d._0xb7dfec,0x702,_0x2b9a3d._0x323af8)](/\r?\n/);_0x5466d4=_0x58a08e[_0x3693ab(-0x52,-0x36,-0x40,-0x2d)]()??'';for(const _0x15ccda of _0x58a08e){if(_0x15ccda['length']>0x0)yield _0x15ccda;}}_0x5466d4[_0x3693ab(-_0x2b9a3d._0x1f5306,-_0x2b9a3d._0x598b69,-0x18c,-_0x2b9a3d._0x17a502)]()['length']>0x0&&(yield _0x5466d4[_0x4b1609(0x5be,0x6d7,_0x2b9a3d._0x47e485,0x52d)]());}function parseMatchLine(_0xc100a9,_0x296385){const _0xd0021d={_0x1c9b95:0x12a,_0x12119f:0x124,_0xade117:0x2b8,_0x447429:0x2c9,_0x684fd5:0x2da,_0x29ba58:0x2e8,_0x25936e:0x2d7,_0x2385f3:0x29c,_0x1209c7:0x2ae,_0x4b7438:0x193,_0x5939b2:0x169,_0x1ec676:0x403,_0xc1500a:0x100,_0x4ba2f9:0xc,_0x3cf32e:0x86},_0x28b969={_0x11a6df:0x163},_0x5a026c={_0x32e866:0x16e};if(!_0xc100a9||_0xc100a9==='--')return null;const _0x3a0a6a=_0xc100a9[_0x848727(-0x82,-0x170,-0x65,-_0xd0021d._0x1c9b95)]('|');function _0xa31319(_0x112393,_0x167411,_0x12ff02,_0x289fde){return _0x567203(_0x12ff02,_0x167411-0xca,_0x167411-_0x5a026c._0x32e866,_0x289fde-0x16a);}function _0x848727(_0x5b3abd,_0x2cb129,_0x3949fa,_0x43575f){return _0x567203(_0x2cb129,_0x2cb129-0x17d,_0x3949fa- -0x14f,_0x43575f-_0x28b969._0x11a6df);}if(_0x296385&&_0x3a0a6a['length']>=0x4&&Number[_0x848727(0xd6,-_0xd0021d._0x12119f,0xc,0x105)](Number['parseInt'](_0x3a0a6a[0x2]??'',0xa))){const _0x16e248=Number['parseInt'](_0x3a0a6a[0x1]??'',0xa);if(!Number[_0xa31319(_0xd0021d._0xade117,_0xd0021d._0x447429,0x2f3,_0xd0021d._0x684fd5)](_0x16e248)||!_0x3a0a6a[0x0])return null;return{'filePath':_0x3a0a6a[0x0],'lineNum':_0x16e248,'lineText':_0x3a0a6a[_0xa31319(0x256,0x343,0x3f4,_0xd0021d._0x29ba58)](0x3)[_0xa31319(_0xd0021d._0x25936e,_0xd0021d._0x2385f3,_0xd0021d._0x1209c7,_0xd0021d._0x4b7438)]('|')};}if(_0x3a0a6a[_0x848727(-0x145,-0x207,-_0xd0021d._0x5939b2,-0x24c)]>=0x3){const _0x1f5ebb=Number[_0xa31319(0x17a,0x2bd,0x21b,_0xd0021d._0x1ec676)](_0x3a0a6a[0x1]??'',0xa);if(!Number[_0x848727(-_0xd0021d._0xc1500a,0x4,_0xd0021d._0x4ba2f9,0x102)](_0x1f5ebb)||!_0x3a0a6a[0x0])return null;return{'filePath':_0x3a0a6a[0x0],'lineNum':_0x1f5ebb,'lineText':_0x3a0a6a[_0x848727(_0xd0021d._0x3cf32e,-0xa2,_0xd0021d._0x3cf32e,0x122)](0x2)['join']('|'),..._0x296385?{'isContext':!![]}:{}};}return null;}async function search(_0x26ea7e){const _0x3b199d={_0x1c2a5c:0x618,_0xb6389c:0x576,_0x2ee3c4:0x6a0,_0x5ed2c8:0x7b1,_0x217e31:0x76d,_0x30c6b3:0x553,_0x1b60bc:0x52d,_0x453e20:0x5fa,_0x2776c5:0x6d2,_0x407859:0x78b,_0x15e3e0:0x2b0,_0x9163ea:0x35d,_0x317eba:0x426,_0xc19188:0x75a,_0xbd69c4:0x6bc,_0x2ad6fc:0x5fe,_0x8f3088:0x6e8,_0x374550:0x5e6,_0x1114c7:0x67b,_0x5aa256:0x680,_0x4efce1:0x374,_0x239b32:0x40b,_0xe6f8d3:0x4f7,_0x54a0c9:0x67e,_0x362564:0x713,_0x3be25c:0x4f2,_0xdca3f1:0x415,_0x51bce8:0x418,_0x39ca85:0x4ca,_0xad18c3:0x3e6,_0x1918fd:0x524,_0x1c075e:0x46c,_0x4fa2ee:0x25b,_0x21656d:0x17f,_0xdacca7:0x3a0,_0x58c12e:0x28c,_0x21876d:0x1e3,_0xd3fdcd:0x696,_0x21401b:0x4f5,_0x1a12c8:0x420,_0x12638f:0x366,_0x164b52:0x34c,_0x370c1d:0x260,_0x41984c:0x272,_0x1b09fe:0x66d,_0x4d7885:0x705,_0x491e3a:0x84e,_0x3ad8c6:0x651,_0x32069f:0x5a9,_0x549d2b:0x46b,_0x153cf4:0x4bf,_0x1d1e4b:0x4c8,_0x24b149:0x619,_0x5cc627:0x57c,_0x111c31:0x3fc,_0x384e44:0x37f,_0xeef390:0x4c3,_0x2c4e66:0x470,_0x59cca5:0x333,_0xd3a38a:0x6ff,_0x5e8026:0x629,_0x299c36:0x530,_0x4f821a:0x393},_0x3edda4={_0x42f492:0x250,_0x585a72:0x45c,_0x178202:0x34e,_0x209ffb:0x3a0,_0x45ceaf:0x2de,_0x2b7227:0x1df,_0x36b6ba:0x18f,_0x5d9a1a:0x386,_0x4cef00:0x2d6,_0xbd4c99:0x387,_0x2c17f7:0x1df,_0x492e87:0x292,_0x51ea2a:0x243,_0x70456c:0x2c8},_0x2b17e9={_0xaefbee:0x511,_0x4e9dab:0x4a8,_0xff8adb:0xac,_0x361ed8:0x4da,_0x4bd8fc:0x4cd,_0x10d3f5:0x495,_0x4b9fc3:0x29c,_0x87ee31:0x2bb},_0x5cee1a={_0xee15cc:0x82,_0xba988d:0x98,_0x5fae70:0x11c},_0x41d537={_0x5be650:0xe4,_0x164014:0x519,_0x5a1531:0x51},_0x19401b={_0x3e78b3:0x6},_0x1cbb87=await filepath();if(_0x26ea7e[_0x6256ae(0x5cc,_0x3b199d._0x1c2a5c,0x5c9,0x6f6)]){const _0x4274c1=await _0x406bf9(_0x26ea7e['file'])[_0x6256ae(_0x3b199d._0xb6389c,_0x3b199d._0x2ee3c4,_0x3b199d._0x5ed2c8,_0x3b199d._0x217e31)](()=>null);if(!_0x4274c1?.[_0x6256ae(_0x3b199d._0x30c6b3,0x614,0x739,_0x3b199d._0x1b60bc)]())throw Object[_0x6256ae(_0x3b199d._0x453e20,_0x3b199d._0x2776c5,0x6c8,_0x3b199d._0x407859)](new Error(_0x49d317(_0x3b199d._0x15e3e0,_0x3b199d._0x9163ea,0x3d0,_0x3b199d._0x317eba)+_0x26ea7e[_0x6256ae(_0x3b199d._0xc19188,0x618,_0x3b199d._0xbd69c4,_0x3b199d._0x2ad6fc)]+'\x27'),{'code':_0x6256ae(_0x3b199d._0x8f3088,_0x3b199d._0x374550,0x572,0x66b)});}else{const _0x32582e=await _0x406bf9(_0x26ea7e[_0x6256ae(0x52a,_0x3b199d._0x1114c7,_0x3b199d._0x5aa256,0x575)])[_0x49d317(_0x3b199d._0x4efce1,_0x3b199d._0x239b32,0x521,_0x3b199d._0xe6f8d3)](()=>null);if(!_0x32582e?.[_0x6256ae(_0x3b199d._0x54a0c9,_0x3b199d._0x362564,0x640,0x82b)]())throw Object[_0x49d317(_0x3b199d._0x3be25c,0x43d,_0x3b199d._0xdca3f1,0x465)](new Error(_0x49d317(0x4aa,_0x3b199d._0x51bce8,0x4e8,_0x3b199d._0x39ca85)+_0x26ea7e[_0x49d317(0x327,_0x3b199d._0xad18c3,_0x3b199d._0x1918fd,_0x3b199d._0x1c075e)]+'\x27'),{'code':'ENOENT'});}const _0x48c38c=[_0x49d317(0x25e,_0x3b199d._0x4fa2ee,0x1c6,_0x3b199d._0x21656d),_0x49d317(_0x3b199d._0xdacca7,_0x3b199d._0x58c12e,_0x3b199d._0x21876d,0x2e4),_0x6256ae(0x640,_0x3b199d._0xd3fdcd,0x57e,0x54e),'--regexp',_0x26ea7e['pattern']];function _0x49d317(_0x58fdcb,_0xb482a0,_0x1b4321,_0x3118c3){return _0x567203(_0x1b4321,_0xb482a0-0x2f,_0xb482a0-0x284,_0x3118c3-_0x19401b._0x3e78b3);}const _0x52ff33=typeof _0x26ea7e[_0x6256ae(0x410,_0x3b199d._0x21401b,0x4cb,0x479)]===_0x49d317(0x2f6,_0x3b199d._0x1a12c8,0x4d8,_0x3b199d._0x12638f)&&_0x26ea7e[_0x49d317(_0x3b199d._0x164b52,_0x3b199d._0x370c1d,0x10c,_0x3b199d._0x41984c)]>0x0;_0x52ff33&&_0x48c38c[_0x6256ae(_0x3b199d._0x1b09fe,_0x3b199d._0x4d7885,0x62d,_0x3b199d._0x491e3a)]('-C',String(_0x26ea7e['context']),_0x6256ae(_0x3b199d._0x3ad8c6,0x5a6,_0x3b199d._0x32069f,_0x3b199d._0x549d2b));_0x26ea7e[_0x49d317(_0x3b199d._0x153cf4,_0x3b199d._0x1d1e4b,_0x3b199d._0x24b149,_0x3b199d._0x5cc627)]&&!_0x26ea7e['file']&&_0x48c38c[_0x49d317(0x320,0x470,_0x3b199d._0x111c31,0x59e)](_0x49d317(0x3ed,0x41f,0x2ff,_0x3b199d._0x384e44),_0x26ea7e[_0x49d317(_0x3b199d._0xeef390,0x4c8,0x53d,0x416)]);_0x48c38c[_0x49d317(0x4fe,_0x3b199d._0x2c4e66,_0x3b199d._0x59cca5,0x3e8)](_0x26ea7e[_0x6256ae(_0x3b199d._0xd3a38a,0x618,_0x3b199d._0x5e8026,_0x3b199d._0x299c36)]??_0x26ea7e[_0x49d317(0x2fc,_0x3b199d._0xad18c3,0x3be,_0x3b199d._0x4f821a)]);function _0x6256ae(_0x45c99c,_0x1ef3f3,_0x23f280,_0x59b456){return _0x567203(_0x45c99c,_0x1ef3f3-_0x41d537._0x5be650,_0x1ef3f3-_0x41d537._0x164014,_0x59b456-_0x41d537._0x5a1531);}return await new Promise((_0x544115,_0x556b96)=>{const _0x5457ff={_0x4df6ad:0x25e,_0x52ac71:0xe,_0x6b8d9d:0x72},_0x489f07={_0x7d14e:0xae},_0x120a0f={_0x2b0e58:0x2e},_0x532271={_0x2c37bf:0x17f,_0x1acd70:0x278,_0x31b03d:0x260},_0x4dfa00={_0x4652af:0xb7};function _0x53f0f9(_0x573d25,_0x1cc352,_0x80b143,_0x55789e){return _0x49d317(_0x573d25-_0x5cee1a._0xee15cc,_0x55789e- -_0x5cee1a._0xba988d,_0x573d25,_0x55789e-_0x5cee1a._0x5fae70);}const _0x5a9e27=_0xf94bf1(_0x1cbb87,_0x48c38c,{'cwd':_0x26ea7e[_0x53f0f9(_0x3edda4._0x42f492,_0x3edda4._0x585a72,0x2d3,_0x3edda4._0x178202)],'stdio':['ignore',_0x53f0f9(0x218,_0x3edda4._0x209ffb,0x2d7,_0x3edda4._0x45ceaf),'pipe']});let _0x41bf96='',_0x40ac80='';_0x5a9e27['stdout']?.['on'](_0x2b0a7b(_0x3edda4._0x2b7227,0x269,0x223,_0x3edda4._0x36b6ba),_0x26b11d=>{function _0x592353(_0x50ede6,_0x5b955c,_0x2ceb94,_0x11aeab){return _0x2b0a7b(_0x50ede6-0xc,_0x11aeab,_0x2ceb94-_0x4dfa00._0x4652af,_0x11aeab-0x1ce);}_0x41bf96+=_0x26b11d[_0x592353(_0x532271._0x2c37bf,0x1c1,_0x532271._0x1acd70,_0x532271._0x31b03d)]();});function _0x2b0a7b(_0x28a8d5,_0x232790,_0x5c8597,_0x5a50ae){return _0x6256ae(_0x232790,_0x28a8d5- -0x394,_0x5c8597-_0x120a0f._0x2b0e58,_0x5a50ae-0x159);}_0x5a9e27[_0x2b0a7b(_0x3edda4._0x5d9a1a,_0x3edda4._0x4cef00,0x3a3,_0x3edda4._0xbd4c99)]?.['on'](_0x2b0a7b(_0x3edda4._0x2c17f7,_0x3edda4._0x492e87,0x32f,_0x3edda4._0x51ea2a),_0x44efe7=>{const _0x4c4a82={_0xfd8bef:0x180,_0x588bdb:0x98};function _0x45519b(_0x53f10e,_0x1fa1e3,_0x47acd1,_0x24d896){return _0x2b0a7b(_0x1fa1e3- -0x152,_0x53f10e,_0x47acd1-_0x4c4a82._0xfd8bef,_0x24d896-_0x4c4a82._0x588bdb);}_0x40ac80+=_0x44efe7[_0x45519b(-0xe1,0x21,-0x90,-_0x489f07._0x7d14e)]();}),_0x5a9e27['on']('close',_0x5be8ea=>{const _0xa39e51={_0x156060:0x76,_0x5594c7:0x17c};function _0x5b76da(_0x3dade4,_0x5b66c5,_0x38dffc,_0x19208b){return _0x2b0a7b(_0x38dffc-_0x5457ff._0x4df6ad,_0x5b66c5,_0x38dffc-_0x5457ff._0x52ac71,_0x19208b-_0x5457ff._0x6b8d9d);}if(_0x5be8ea===0x1&&_0x41bf96===''){_0x544115([]);return;}function _0x1f7c89(_0x1993b0,_0x18e5c1,_0x1f6f79,_0x428461){return _0x53f0f9(_0x1f6f79,_0x18e5c1-_0xa39e51._0x156060,_0x1f6f79-_0xa39e51._0x5594c7,_0x18e5c1- -0x11d);}if(_0x5be8ea!==0x0&&_0x5be8ea!==0x1){_0x556b96(new Error(_0x5b76da(0x52d,_0x2b17e9._0xaefbee,_0x2b17e9._0x4e9dab,0x3fb)+_0x40ac80));return;}const _0x1a7c3c=_0x26ea7e[_0x1f7c89(0xa6,_0x2b17e9._0xff8adb,-0x7d,0xce)]??0x64,_0x56bc30=[];for(const _0xd4a10 of _0x41bf96[_0x5b76da(_0x2b17e9._0x361ed8,0x50d,_0x2b17e9._0x4bd8fc,0x41c)](/\r?\n/)){if(_0x56bc30[_0x5b76da(0x47b,0x424,0x3c9,_0x2b17e9._0x10d3f5)]>=_0x1a7c3c)break;const _0x26eff2=parseMatchLine(_0xd4a10,_0x52ff33);if(_0x26eff2)_0x56bc30[_0x1f7c89(_0x2b17e9._0x4b9fc3,_0x2b17e9._0x87ee31,0x2a2,0x189)](_0x26eff2);}_0x544115(_0x56bc30);}),_0x5a9e27['on'](_0x53f0f9(0x1a4,_0x3edda4._0x70456c,0x133,0x1ff),_0x556b96);});}function createGlobTool(_0x414d20={}){const _0x2e64df={_0x46c1bc:0xf5,_0x5aad75:0x56,_0xc52363:0x19f,_0x58b62a:0x2a3,_0x5ef705:0xb8,_0x2e8a48:0x13f,_0x3e62e8:0x117,_0x3ce2d9:0x2a2,_0x3a1f43:0x273,_0x51604f:0x148,_0x101d3d:0x1ec,_0x50a496:0x7b,_0x208e3e:0xc0,_0x39772e:0x131,_0x218845:0x6b,_0x294a4c:0x182,_0x37c0fa:0xfe,_0x1c3931:0x298,_0x5e2ae5:0x102,_0x5ac04e:0x1f9,_0x1e30df:0x204,_0x5029c5:0x11e},_0x518fac={_0x4131d8:0xd3,_0x2988d7:0x19c,_0x1ad5ab:0x434,_0xbaf876:0x2c1,_0xeab636:0x2f0,_0x5f0d4b:0x13d,_0x4af4f3:0x231,_0x3e7643:0x143,_0xaa5dc3:0x127,_0x4155c2:0x38f,_0x1b86a2:0x52b,_0x261a2e:0x516,_0x42313e:0x3df,_0x2cf20c:0x14a,_0x22f5a7:0x1e6,_0x519269:0x33f,_0x28462a:0x3fd,_0x24e11b:0x31f,_0xca8d1f:0x194,_0x235dbd:0x5e1,_0x4013ec:0x3e5,_0x287e64:0x19b,_0x22116b:0x58c,_0x3b3654:0x384,_0x4b0f44:0x262,_0x35c154:0x274,_0x133e33:0x16e,_0x3b8ee7:0x1b0,_0x2541a7:0x411,_0x360a43:0x221,_0x391619:0xc1,_0x208ff3:0x12f,_0x272613:0x369,_0x40bf0a:0x36c,_0x1f4bbc:0x2ec,_0x553ba7:0x1d0,_0xdfa547:0xf9,_0x4f84dc:0xd4,_0x55d9ea:0x19c,_0x17ccaf:0x1a3,_0x27d706:0x1cf,_0x3aa9aa:0x118,_0x50bc71:0x454,_0x4f94df:0x456},_0x47a040={_0x39ffd7:0x146,_0x4d822c:0xd6},_0x2fda2a={_0x156ec9:0x426,_0x5ab350:0xef,_0x49f8b5:0x99},_0x354648={_0x594334:0xb6},_0x455df8={_0x373ddd:0x18},_0x13ffe9=_0x48e2cd[_0x3b3c05(0x51,0xfa,_0x2e64df._0x46c1bc,0x103)](_0x414d20[_0x27d401(-0x134,-0x27b,-0x277,-_0x2e64df._0x5aad75)]??process[_0x3b3c05(0x10d,_0x2e64df._0xc52363,0xbd,0x1bf)]());function _0x27d401(_0x28cda3,_0x7882c5,_0x222327,_0x2dbd48){return _0x29bb69(_0x28cda3-0x17c,_0x28cda3-_0x455df8._0x373ddd,_0x7882c5,_0x2dbd48-0x1b6);}function _0x3b3c05(_0x22f4cb,_0x1e968c,_0xce8d84,_0x1ba894){return _0x567203(_0x1e968c,_0x1e968c-0x64,_0x1ba894-0x5d,_0x1ba894-_0x354648._0x594334);}const _0x5aedbf=(_0x414d20[_0x3b3c05(0x3a5,0x38f,0x1f7,_0x2e64df._0x58b62a)]??[])[_0x3b3c05(-_0x2e64df._0x5ef705,0xd,0xb0,0x55)](_0x103e49=>_0x48e2cd[_0x3b3c05(0x15a,0x21e,0xbe,0x103)](_0x103e49)),_0x2009f4=_0x414d20[_0x27d401(-_0x2e64df._0x2e8a48,-_0x2e64df._0x3e62e8,0x8,-0x6c)]??0x64,_0x25fce4=_0x414d20[_0x3b3c05(_0x2e64df._0x3ce2d9,0x399,0x19a,_0x2e64df._0x3a1f43)]??_0x3b3c05(_0x2e64df._0x51604f,0x2bd,_0x2e64df._0x101d3d,0x1a4);return defineTool({'name':_0x25fce4,'description':_0x27d401(-0x78,-_0x2e64df._0x50a496,0xac,-0x4d),'inputSchema':{'type':_0x27d401(0xfc,0x4c,_0x2e64df._0x208e3e,_0x2e64df._0x39772e),'properties':{'pattern':{'type':_0x27d401(-_0x2e64df._0x218845,-0xc6,-_0x2e64df._0x294a4c,-_0x2e64df._0x37c0fa)},'path':{'type':'string'},'limit':{'type':_0x3b3c05(0x305,_0x2e64df._0x1c3931,_0x2e64df._0x5e2ae5,_0x2e64df._0x5ac04e)}},'required':[_0x3b3c05(_0x2e64df._0x1e30df,0x157,0x3a,_0x2e64df._0x5029c5)]},async *'execute'(_0x13af73){if(_0x13af73[_0x10aa75(0x265,_0x518fac._0x4131d8,_0x518fac._0x2988d7,0x127)]['trim']()[_0x4632bb(_0x518fac._0x1ad5ab,_0x518fac._0xbaf876,_0x518fac._0xeab636,0x1f3)]===0x0)throw new ToolExecutionError(_0x10aa75(_0x518fac._0x5f0d4b,0x14c,_0x518fac._0x4af4f3,_0x518fac._0x3e7643),{});const _0x319185=resolveAllowedPath(_0x13ffe9,_0x5aedbf,_0x13af73[_0x4632bb(0x2ff,0x560,0x415,0x3f7)]??'.'),_0x5778e8=await _0x7d1af9(_0x319185)[_0x10aa75(_0x518fac._0xaa5dc3,_0x518fac._0x4155c2,0x262,0x1df)](()=>null);if(!_0x5778e8?.['isDirectory']())throw new ToolExecutionError(_0x4632bb(_0x518fac._0x1b86a2,_0x518fac._0x261a2e,0x44e,_0x518fac._0x42313e)+(_0x13af73['path']??'.'),{'path':_0x13af73[_0x10aa75(0x282,_0x518fac._0x2cf20c,_0x518fac._0x22f5a7,0x162)]??'.'});function _0x4632bb(_0x4d51cd,_0x2d77cf,_0x28e6ef,_0x20db13){return _0x27d401(_0x28e6ef-_0x2fda2a._0x156ec9,_0x4d51cd,_0x28e6ef-_0x2fda2a._0x5ab350,_0x20db13-_0x2fda2a._0x49f8b5);}const _0x31815c=_0x13af73[_0x4632bb(_0x518fac._0x519269,_0x518fac._0x28462a,0x2e7,_0x518fac._0x24e11b)]??_0x2009f4,_0x33909c=Math[_0x10aa75(0x25c,0x38,0x175,_0x518fac._0xca8d1f)](0x1,Math[_0x4632bb(0x38a,_0x518fac._0x235dbd,0x4d8,_0x518fac._0x4013ec)](_0x31815c)),_0x8caf42=[];let _0x3b078d=![];for await(const _0x5e6660 of files({'cwd':_0x319185,'glob':[_0x13af73[_0x4632bb(0x3d2,0x339,0x3cb,0x4c3)]]})){if(_0x8caf42[_0x10aa75(_0x518fac._0x287e64,0x156,0xc1,0x1eb)]>=_0x33909c){_0x3b078d=!![];break;}const _0x354066=await _0x7d1af9(_0x48e2cd[_0x4632bb(0x57f,0x38b,0x438,_0x518fac._0x22116b)](_0x319185,_0x5e6660))[_0x10aa75(_0x518fac._0x3b3654,0x2ff,_0x518fac._0x4b0f44,0x11c)](()=>null);_0x8caf42['push']({'path':_0x5e6660,'mtime':_0x354066?.[_0x10aa75(_0x518fac._0x35c154,_0x518fac._0x133e33,_0x518fac._0x3b8ee7,0x27d)]??0x0});}function _0x10aa75(_0x22b25d,_0x369d00,_0xd90ad1,_0x3144f2){return _0x3b3c05(_0x22b25d-_0x47a040._0x39ffd7,_0x369d00,_0xd90ad1-_0x47a040._0x4d822c,_0xd90ad1-0x7e);}_0x8caf42[_0x4632bb(_0x518fac._0x2541a7,0x350,0x2d6,_0x518fac._0x360a43)]((_0x981b40,_0x405f68)=>_0x405f68[_0x10aa75(0x1e9,0x29d,0x28e,0x359)]-_0x981b40[_0x10aa75(0x23a,0x152,0x28e,0x1e4)]);const _0x2626e9=_0x8caf42['map'](_0x2c706f=>_0x2c706f[_0x4632bb(0x4bc,0x3eb,0x415,0x2ed)]),_0x770ace=_0x2626e9[_0x10aa75(-0x57,0x50,_0x518fac._0x391619,_0x518fac._0x208ff3)]===0x0?_0x10aa75(_0x518fac._0x272613,_0x518fac._0x40bf0a,_0x518fac._0x1f4bbc,_0x518fac._0x553ba7)+_0x13af73[_0x10aa75(_0x518fac._0xdfa547,_0x518fac._0x4f84dc,_0x518fac._0x55d9ea,0x23c)]:''+_0x2626e9[_0x10aa75(0x194,0x300,0x209,0x2a7)]('\x0a')+(_0x3b078d?_0x10aa75(_0x518fac._0x17ccaf,0x189,_0x518fac._0x27d706,_0x518fac._0x3aa9aa):'');return yield createToolOutput(_0x770ace,{'pattern':_0x13af73[_0x4632bb(_0x518fac._0x50bc71,0x423,0x3cb,_0x518fac._0x4f94df)],'searchPath':_0x48e2cd['relative'](_0x13ffe9,_0x319185)||'.','matches':_0x2626e9,'count':_0x2626e9['length'],'truncated':_0x3b078d}),void 0x0;}});}import{stat as _0x1ad4fa}from'fs/promises';import*as _0x17b5cc from'path';var MAX_LINE_LENGTH=0x7d0;function _0x29bb69(_0x1dae78,_0x34e7d7,_0x1d4d2f,_0x4ca2cd){const _0x1ae74e={_0x2d00f6:0x333};return _0x1e3a(_0x34e7d7- -_0x1ae74e._0x2d00f6,_0x1d4d2f);}function createGrepTool(_0x4d5f79={}){const _0x6ba5f8={_0x427ef5:0x1ed,_0x5ca7c5:0xa2,_0x2d3f6c:0x1f7,_0x1f23fb:0xc4,_0x12ca50:0x66,_0x200f43:0x17,_0x34d375:0x6e1,_0x644613:0x5c5,_0x586f33:0x216,_0x4a04e8:0x560,_0x5de561:0x478,_0x4166c7:0x5bd,_0x535eb0:0x748,_0x5081bb:0x6b1,_0x4209a1:0x5b7,_0xc84947:0x9e,_0x395065:0x7f,_0x3ce47f:0x63a,_0x5767ec:0x6b3,_0x5a3526:0x26,_0x385fc9:0x283,_0x1d5414:0x473,_0x523784:0x54c,_0x12af86:0x74,_0x48efcf:0xea,_0x56b897:0x12e,_0x571553:0x26,_0x375adc:0x38,_0x5ded0e:0xc0,_0x3de538:0x43,_0x78356:0x2f,_0x5d1d53:0x57d,_0x2d8a76:0x64f,_0x3885a8:0x55c},_0x4df0a0={_0x211e42:0x1d9,_0x57cf6d:0x14e,_0x7a9a3b:0x1a,_0xc5be91:0x118,_0x164c09:0x102,_0x4b1167:0x3a0,_0x311a8a:0x24b,_0x4c7629:0x6fc,_0x5f5af4:0x5db,_0x42532d:0x60d,_0x3a1bf8:0x376,_0x5694aa:0x43b,_0x2738f1:0x4ec,_0x17c662:0x3d7,_0x49ab92:0x26,_0x118223:0xa1,_0xc81e93:0xc,_0x3ca029:0xaa,_0x44ae16:0x1a8,_0x28cbb5:0x535,_0x4e3447:0x662,_0x36cd2e:0x543,_0x2bbc0b:0x349,_0x3f8dec:0x416,_0x3f06ae:0x4a2,_0x21300e:0x4eb,_0x5282df:0x50e,_0x14956c:0x554,_0x491208:0x3a0,_0x2324d0:0x42a,_0x1d8630:0x46b,_0x3dfcc2:0x524,_0x42f7f9:0x42a,_0x2d346b:0x518,_0x1061a3:0x1a9,_0x375387:0x238,_0x44a92e:0x24b,_0x1fff18:0x341,_0x5ee925:0x4ab,_0x186c3b:0x37b,_0x467774:0x33,_0x63d4b9:0x17b,_0x53b61e:0xe4,_0x23dafa:0x74,_0x31312c:0x4f2,_0x3007ab:0x5bc,_0x243a5f:0x5ed,_0x3d5200:0x513,_0x59c256:0x6c7,_0x5d4060:0x5cd,_0x4cd5c7:0x641,_0x5c7e93:0x31b,_0x2c94df:0x2c1,_0x449f3e:0x24e,_0x5a08a4:0x1dc,_0x5621c3:0x25b,_0x4b2186:0x256,_0x3979df:0x2a1,_0x58c56b:0x3ea,_0x17bb2a:0x424,_0x14f8f3:0x3bf,_0x57f42e:0x427,_0x5cd9be:0x3c7,_0x487e7f:0x4d7,_0x905ad1:0x523,_0x5a9e3c:0x50b,_0x5f4def:0x1d5,_0x543c98:0x59,_0x1a48ef:0x58,_0x39de22:0x2af,_0x33464e:0x29c,_0x3ab8af:0x272,_0x13dc59:0x210,_0x48761a:0x17d,_0x30f0ee:0x308,_0x4cc776:0x31a,_0x16c771:0x314,_0x244918:0x4c5,_0x1f2474:0x565,_0x4edd0b:0x329,_0xb68310:0x1e3,_0x562042:0x32e,_0x3c434f:0x299,_0x2698aa:0x464,_0x182001:0x280,_0x3855dc:0x5b6,_0xb5c6f1:0x584,_0x2a0648:0x363,_0x3823e6:0x636,_0x22958e:0x57a,_0x275119:0x65b,_0x268916:0x4d5,_0x5dd24c:0x48b,_0x1dfc71:0x1,_0x6557dc:0x139,_0x139873:0x155,_0x120164:0x437,_0x4e0d07:0x4a2,_0x5e614d:0x537,_0x59f9ea:0x467,_0x3f1d23:0xb7,_0x1ddb4b:0x1f7,_0x3e120e:0x2a3,_0x5ba4ac:0x477,_0x15d08c:0x1f1},_0x3e445d={_0x526d0c:0xe7},_0x31b645=_0x17b5cc['resolve'](_0x4d5f79[_0x47b25b(-_0x6ba5f8._0x427ef5,-_0x6ba5f8._0x5ca7c5,-_0x6ba5f8._0x2d3f6c,-_0x6ba5f8._0x1f23fb)]??process[_0x47b25b(-0x44,_0x6ba5f8._0x12ca50,-0x7d,_0x6ba5f8._0x200f43)]()),_0x511904=(_0x4d5f79[_0x4275b4(0x7d0,0x6f1,_0x6ba5f8._0x34d375,_0x6ba5f8._0x644613)]??[])[_0x47b25b(-0x27c,-0xa0,-0x1e7,-_0x6ba5f8._0x586f33)](_0x48578e=>_0x17b5cc[_0x47b25b(-0xbc,-0x21,-0x139,-0x1e3)](_0x48578e)),_0x4541b7=_0x4d5f79[_0x4275b4(0x3a8,_0x6ba5f8._0x4a04e8,_0x6ba5f8._0x5de561,_0x6ba5f8._0x4166c7)]??0x64,_0x583748=_0x4d5f79[_0x4275b4(0x655,_0x6ba5f8._0x535eb0,_0x6ba5f8._0x5081bb,_0x6ba5f8._0x4209a1)]??'Grep';function _0x4275b4(_0x15d2ab,_0x54028a,_0x40cf08,_0x1c47a1){return _0x567203(_0x54028a,_0x54028a-0x87,_0x40cf08-0x49b,_0x1c47a1-0x130);}function _0x47b25b(_0x195a60,_0x234a95,_0x595653,_0x4b5c5b){return _0x567203(_0x195a60,_0x234a95-0xf3,_0x595653- -0x1df,_0x4b5c5b-_0x3e445d._0x526d0c);}return defineTool({'name':_0x583748,'description':_0x47b25b(-_0x6ba5f8._0xc84947,_0x6ba5f8._0x395065,-0x18,0x6e),'inputSchema':{'type':_0x4275b4(0x654,_0x6ba5f8._0x3ce47f,_0x6ba5f8._0x5767ec,0x64b),'properties':{'pattern':{'type':_0x47b25b(0x22,-_0x6ba5f8._0x5a3526,-0x12e,-_0x6ba5f8._0x385fc9)},'path':{'type':_0x4275b4(_0x6ba5f8._0x1d5414,0x5a1,_0x6ba5f8._0x523784,0x486)},'include':{'type':_0x47b25b(-_0x6ba5f8._0x12af86,-_0x6ba5f8._0x48efcf,-_0x6ba5f8._0x56b897,_0x6ba5f8._0x571553)},'limit':{'type':_0x47b25b(_0x6ba5f8._0x375adc,_0x6ba5f8._0x5ded0e,-_0x6ba5f8._0x3de538,_0x6ba5f8._0x78356)},'context':{'type':_0x4275b4(0x729,_0x6ba5f8._0x5d1d53,0x637,0x616)}},'required':[_0x4275b4(_0x6ba5f8._0x2d8a76,0x699,_0x6ba5f8._0x3885a8,0x43e)]},async *'execute'(_0x68ff4){const _0x17488={_0x192f09:0xb2,_0x5ea4a7:0x5c0,_0x320324:0x1d2},_0x263959={_0x25169b:0x30,_0x444a89:0x33};if(_0x68ff4[_0x1e1a70(0x86,_0x4df0a0._0x211e42,0x185,0x25a)]['trim']()[_0x1e1a70(_0x4df0a0._0x57cf6d,-0x5a,0xaa,-_0x4df0a0._0x7a9a3b)]===0x0)throw new ToolExecutionError(_0x1e1a70(_0x4df0a0._0xc5be91,0x13c,0x21a,_0x4df0a0._0x164c09),{});const _0x37805a=resolveAllowedPath(_0x31b645,_0x511904,_0x68ff4['path']??'.'),_0x459055=await _0x1ad4fa(_0x37805a)[_0x1e1a70(0x21b,_0x4df0a0._0x4b1167,_0x4df0a0._0x311a8a,0x263)](()=>null),_0x2efd80=_0x459055?.['isFile']()??![],_0x1dff19=_0x459055?.[_0x26b7cf(_0x4df0a0._0x4c7629,0x57c,_0x4df0a0._0x5f5af4,0x6a5)]()??![];if(!_0x2efd80&&!_0x1dff19)throw new ToolExecutionError(_0x26b7cf(0x532,_0x4df0a0._0x42532d,0x4b7,_0x4df0a0._0x3a1bf8)+(_0x68ff4[_0x26b7cf(_0x4df0a0._0x5694aa,0x3cd,_0x4df0a0._0x2738f1,_0x4df0a0._0x17c662)]??'.'),{'path':_0x68ff4['path']??'.'});const _0x5484e7=_0x68ff4[_0x1e1a70(-0x33,-_0x4df0a0._0x49ab92,_0x4df0a0._0x118223,_0x4df0a0._0xc81e93)]??_0x4541b7,_0x207d43=Math[_0x1e1a70(0x4a,_0x4df0a0._0x3ca029,0x15e,_0x4df0a0._0x44ae16)](0x1,Math[_0x26b7cf(_0x4df0a0._0x28cbb5,_0x4df0a0._0x4e3447,0x5af,0x4bf)](_0x5484e7)),_0x36210b=await search({'cwd':_0x1dff19?_0x37805a:_0x17b5cc[_0x26b7cf(_0x4df0a0._0x36cd2e,_0x4df0a0._0x2bbc0b,_0x4df0a0._0x3f8dec,0x4f5)](_0x37805a),'pattern':_0x68ff4[_0x26b7cf(0x37a,0x5d4,_0x4df0a0._0x3f06ae,_0x4df0a0._0x21300e)],'glob':_0x1dff19?_0x68ff4[_0x26b7cf(0x456,0x53d,_0x4df0a0._0x5282df,_0x4df0a0._0x14956c)]:void 0x0,'limit':_0x207d43,'file':_0x2efd80?_0x37805a:void 0x0,'context':_0x68ff4[_0x26b7cf(0x2e8,_0x4df0a0._0x491208,0x3bd,0x42e)]}),_0x114a75=new Map();for(const _0x2b452b of _0x36210b){if(!_0x114a75['has'](_0x2b452b[_0x26b7cf(0x57d,0x547,_0x4df0a0._0x2324d0,_0x4df0a0._0x1d8630)])){const _0x45c903=await _0x1ad4fa(_0x2b452b[_0x26b7cf(0x475,_0x4df0a0._0x3dfcc2,_0x4df0a0._0x42f7f9,_0x4df0a0._0x2d346b)])[_0x1e1a70(_0x4df0a0._0x1061a3,_0x4df0a0._0x375387,_0x4df0a0._0x44a92e,_0x4df0a0._0x1fff18)](()=>null);_0x114a75[_0x26b7cf(0x3b8,0x556,_0x4df0a0._0x5ee925,_0x4df0a0._0x186c3b)](_0x2b452b[_0x1e1a70(0x16c,0xb0,0x10d,-_0x4df0a0._0x467774)],{'matches':[],'mtime':_0x45c903?.['mtimeMs']??0x0});}_0x114a75[_0x1e1a70(_0x4df0a0._0x63d4b9,0x1c,0x147,0x16b)](_0x2b452b[_0x1e1a70(_0x4df0a0._0x53b61e,0x25c,0x10d,_0x4df0a0._0x23dafa)])?.[_0x26b7cf(_0x4df0a0._0x31312c,_0x4df0a0._0x3007ab,0x4d8,_0x4df0a0._0x243a5f)][_0x26b7cf(_0x4df0a0._0x3d5200,_0x4df0a0._0x59c256,_0x4df0a0._0x5d4060,_0x4df0a0._0x4cd5c7)](_0x2b452b);}const _0xc64b5f=[..._0x114a75[_0x1e1a70(_0x4df0a0._0x5c7e93,_0x4df0a0._0x2c94df,_0x4df0a0._0x449f3e,_0x4df0a0._0x5a08a4)]()][_0x26b7cf(_0x4df0a0._0x5621c3,_0x4df0a0._0x4b2186,0x3ad,_0x4df0a0._0x3979df)]((_0x170d05,_0xcbc7d)=>_0xcbc7d[0x1][_0x1e1a70(0x200,0x255,0x277,0x16d)]-_0x170d05[0x1][_0x26b7cf(0x50c,0x4fa,0x594,0x669)]),_0x2cc5ce=_0x36210b[_0x26b7cf(_0x4df0a0._0x58c56b,_0x4df0a0._0x17bb2a,0x3fc,0x495)](_0x1ce3d7=>!_0x1ce3d7[_0x1e1a70(0x107,0x7c,0xf3,0x4e)])['length'],_0x19cf6a=_0x36210b[_0x26b7cf(_0x4df0a0._0x14f8f3,_0x4df0a0._0x57f42e,_0x4df0a0._0x5cd9be,_0x4df0a0._0x487e7f)]>=_0x207d43,_0x57136d=_0x2efd80?_0x17b5cc[_0x26b7cf(0x2d4,_0x4df0a0._0x905ad1,0x416,_0x4df0a0._0x5a9e3c)](_0x37805a):_0x37805a;let _0x1d7ab2='';if(_0x36210b[_0x1e1a70(_0x4df0a0._0x5f4def,_0x4df0a0._0x543c98,0xaa,-_0x4df0a0._0x1a48ef)]===0x0)_0x1d7ab2='No\x20matches\x20found\x20for\x20pattern:\x20'+_0x68ff4[_0x1e1a70(_0x4df0a0._0x39de22,_0x4df0a0._0x33464e,0x185,_0x4df0a0._0x3ab8af)];else{_0x1d7ab2='Found\x20'+_0x2cc5ce+_0x1e1a70(_0x4df0a0._0x13dc59,_0x4df0a0._0x48761a,0x1ea,0x169)+(_0x2cc5ce===0x1?'':'es')+'\x0a';for(const [_0x212f62,_0x3fb07e]of _0xc64b5f){const _0x57742c=_0x2efd80?_0x17b5cc[_0x1e1a70(0x206,_0x4df0a0._0x30f0ee,_0x4df0a0._0x4cc776,_0x4df0a0._0x16c771)](_0x212f62):_0x17b5cc[_0x26b7cf(_0x4df0a0._0x244918,0x470,0x456,0x368)](_0x57136d,_0x212f62);_0x1d7ab2+='\x0a'+_0x57742c+':\x0a';for(const _0x237e11 of _0x3fb07e[_0x26b7cf(_0x4df0a0._0x1f2474,0x549,0x4d8,0x3d7)]){const _0x1de5e8=_0x237e11[_0x1e1a70(_0x4df0a0._0x4edd0b,_0x4df0a0._0xb68310,_0x4df0a0._0x562042,_0x4df0a0._0x3c434f)][_0x26b7cf(0x39d,0x411,0x3c7,_0x4df0a0._0x2698aa)]>MAX_LINE_LENGTH?_0x237e11[_0x1e1a70(0x37b,_0x4df0a0._0x182001,0x32e,0x21c)][_0x26b7cf(0x486,0x58c,_0x4df0a0._0x3855dc,_0x4df0a0._0xb5c6f1)](0x0,MAX_LINE_LENGTH)+'...':_0x237e11[_0x1e1a70(_0x4df0a0._0x2a0648,0x46d,0x32e,0x361)],_0x51a046=_0x237e11['isContext']?'\x20\x20':'>\x20';_0x1d7ab2+=_0x51a046+_0x26b7cf(_0x4df0a0._0x3823e6,0x5f8,_0x4df0a0._0x22958e,_0x4df0a0._0x275119)+_0x237e11['lineNum']+':\x20'+_0x1de5e8+'\x0a';}}_0x19cf6a&&(_0x1d7ab2+=_0x26b7cf(0x457,_0x4df0a0._0x268916,0x4d5,_0x4df0a0._0x5dd24c));}const _0x48c328={'searchPath':_0x17b5cc[_0x1e1a70(0xa4,_0x4df0a0._0x1dfc71,_0x4df0a0._0x6557dc,_0x4df0a0._0x139873)](_0x31b645,_0x37805a)||'.','pattern':_0x68ff4[_0x26b7cf(_0x4df0a0._0x120164,0x3e6,_0x4df0a0._0x4e0d07,0x4a2)],'matchCount':_0x2cc5ce,'fileCount':_0x114a75[_0x26b7cf(_0x4df0a0._0x5e614d,_0x4df0a0._0x59f9ea,0x44d,0x534)],'truncated':_0x19cf6a};_0x1dff19&&_0x68ff4[_0x1e1a70(_0x4df0a0._0x3f1d23,_0x4df0a0._0x1ddb4b,0x1f1,_0x4df0a0._0x3e120e)]!==void 0x0&&(_0x48c328[_0x26b7cf(0x56b,_0x4df0a0._0x5ba4ac,0x50e,0x4e6)]=_0x68ff4[_0x1e1a70(0x316,0x1c5,_0x4df0a0._0x15d08c,0x2c1)]);function _0x1e1a70(_0x2ef8b3,_0x539e5c,_0x491f94,_0x5a1dbb){return _0x4275b4(_0x2ef8b3-_0x263959._0x25169b,_0x2ef8b3,_0x491f94- -0x3d7,_0x5a1dbb-_0x263959._0x444a89);}function _0x26b7cf(_0x30fd56,_0x3e0c10,_0x4552bc,_0x2e96cc){return _0x47b25b(_0x2e96cc,_0x3e0c10-_0x17488._0x192f09,_0x4552bc-_0x17488._0x5ea4a7,_0x2e96cc-_0x17488._0x320324);}return yield createToolOutput(_0x1d7ab2['trim'](),_0x48c328),void 0x0;}});}import{readdir as _0x380be8,readFile as _0x11c380,stat as _0x41f86c}from'fs/promises';import*as _0x1272bf from'path';import*as _0x42a7fc from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x3672ed,_0x3351a1){const _0x501523={_0x25e7c2:0x357,_0x394d98:0x373,_0x19387a:0x276,_0x228d06:0x4a0,_0x2f1d7a:0x3cf,_0x537e5f:0x288},_0x13afd4={_0x10436e:0xe8,_0x14782a:0x2f};function _0x373b1f(_0x5130ac,_0x1da60c,_0x4528d5,_0x5403b6){return _0x567203(_0x5403b6,_0x1da60c-0x1a,_0x1da60c-0x1ec,_0x5403b6-0x1d4);}if(_0x3351a1>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;const _0xf21e6b=await _0x11c380(_0x3672ed)[_0x373b1f(_0x501523._0x25e7c2,_0x501523._0x394d98,_0x501523._0x19387a,_0x501523._0x228d06)](()=>null);function _0x1ba458(_0x57c3e6,_0xdc170d,_0x5d7794,_0x4f7c26){return _0x567203(_0x5d7794,_0xdc170d-_0x13afd4._0x10436e,_0x4f7c26-0x14,_0x4f7c26-_0x13afd4._0x14782a);}if(!_0xf21e6b||isProbablyBinary(_0xf21e6b))return void 0x0;return _0xf21e6b[_0x1ba458(-0x82,-0x2d,0x13a,0x2)](_0x373b1f(0x2a6,0x282,0x1d9,0x317))[_0x373b1f(0x1f8,0x2d6,_0x501523._0x2f1d7a,_0x501523._0x537e5f)](/\r?\n/)['length'];}function createLsTool(_0x927ce1={}){const _0x138e8a={_0x2a94e3:0x40f,_0x83d7a0:0x440,_0xa2afe0:0x187,_0x3250fc:0xef,_0x174f45:0x720,_0x393479:0x707,_0x5eab7c:0x6c4,_0x3b2af3:0x6cf,_0x36b870:0x638,_0xa84379:0x694,_0x394cf7:0x749,_0x45c652:0x6c7,_0xb4b1f7:0x696,_0x5a4e89:0x7bc,_0x181135:0xbe,_0x3c04c3:0x2d,_0x2b81ca:0x100},_0x59adba={_0x6d9208:0x14c,_0x48747c:0x19e,_0x508c5f:0x3b3,_0x1b92a8:0x2b0,_0x35a755:0x23b,_0x3f0bfa:0x2c3,_0x3dba33:0x2e4,_0x823bd8:0x277,_0x1ae7d3:0xae,_0x4dfce6:0xea,_0x5e6d5e:0x64,_0x214549:0x22e,_0x30f0a7:0x151,_0x315caa:0x2b0,_0x3d278a:0x10c,_0x1bf67f:0x1cd,_0x2087a3:0x20f,_0x1439c1:0x1f6,_0x15d456:0x1c2,_0x40f1ad:0x209,_0x194575:0x1f6,_0x5e5c4a:0x166,_0x10cf79:0x206,_0x1ac4e9:0x169,_0x33c5aa:0x207,_0x343fa3:0x19f,_0x4413d8:0x121,_0x56e87c:0x116,_0x42264f:0x1b,_0x29917e:0x1a7,_0xdc8b01:0x345,_0x2a6a5d:0x22d,_0xcb17cb:0xc6,_0x288d65:0x1f,_0x24deb0:0x252,_0x280afe:0xd4,_0x5dc563:0x190,_0x1874d4:0x1a9,_0x1088e3:0x213,_0x356454:0x310,_0x4694f2:0x1b0,_0xc1c2b1:0x261,_0x51e8ec:0x119},_0x2b52c2={_0x1903d9:0x1a5,_0x1a6af6:0x43d},_0x51d7f2={_0x24c3d7:0x84,_0x21ea77:0x34b},_0x470c8c={_0x195c8d:0x16f,_0x4cc6c8:0x139},_0x13d379={_0x535f80:0x47e},_0x3b159f=_0x1272bf[_0x59aa09(_0x138e8a._0x2a94e3,0x5c5,0x524,_0x138e8a._0x83d7a0)](_0x927ce1[_0x294af0(-_0x138e8a._0xa2afe0,-0x9e,-0x43,-0x2b6)]??process[_0x294af0(-0xd,-0x1c,_0x138e8a._0x3250fc,-0xbc)]()),_0x9910e1=(_0x927ce1[_0x59aa09(_0x138e8a._0x174f45,_0x138e8a._0x393479,_0x138e8a._0x5eab7c,_0x138e8a._0x3b2af3)]??[])['map'](_0x59f26a=>_0x1272bf[_0x59aa09(0x678,0x601,0x524,0x653)](_0x59f26a));function _0x59aa09(_0x54251b,_0x38a0fd,_0x438895,_0x485dc5){return _0x567203(_0x485dc5,_0x38a0fd-0x184,_0x438895-_0x13d379._0x535f80,_0x485dc5-0x188);}function _0x294af0(_0x5fc244,_0x502903,_0x298bda,_0x454237){return _0x567203(_0x502903,_0x502903-0x7a,_0x5fc244- -_0x470c8c._0x195c8d,_0x454237-_0x470c8c._0x4cc6c8);}const _0x39ef04=_0x927ce1[_0x59aa09(_0x138e8a._0x36b870,0x759,_0x138e8a._0xa84379,0x6da)]??'Ls';return defineTool({'name':_0x39ef04,'description':_0x294af0(-0x3e,-0x129,0x5b,0x4d),'inputSchema':{'type':_0x59aa09(_0x138e8a._0x394cf7,_0x138e8a._0x45c652,_0x138e8a._0xb4b1f7,_0x138e8a._0x5a4e89),'properties':{'path':{'type':_0x294af0(-_0x138e8a._0x181135,-0xac,-0xc7,-0x16a)},'limit':{'type':_0x294af0(_0x138e8a._0x3c04c3,0xc3,-0x111,-_0x138e8a._0x2b81ca)}}},async *'execute'(_0x59d855){function _0x52a39a(_0x10bffd,_0x385cff,_0x33145e,_0x5f082e){return _0x59aa09(_0x10bffd-0x7c,_0x385cff-_0x51d7f2._0x24c3d7,_0x5f082e- -_0x51d7f2._0x21ea77,_0x10bffd);}const _0x86c785=_0x59d855[_0x415c2e(0x1b9,_0x59adba._0x6d9208,0xcb,0x294)]??'.';function _0x415c2e(_0x2a50bf,_0x4ff839,_0x366fee,_0x83b630){return _0x59aa09(_0x2a50bf-0x173,_0x4ff839-_0x2b52c2._0x1903d9,_0x4ff839- -_0x2b52c2._0x1a6af6,_0x2a50bf);}const _0x554d45=resolveAllowedPath(_0x3b159f,_0x9910e1,_0x86c785),_0x22df23=await _0x41f86c(_0x554d45)[_0x52a39a(0x2ba,_0x59adba._0x48747c,_0x59adba._0x508c5f,0x2ba)](()=>null);if(!_0x22df23?.[_0x415c2e(_0x59adba._0x1b92a8,_0x59adba._0x35a755,0x2a5,0x2de)]())throw new ToolExecutionError(_0x52a39a(_0x59adba._0x3f0bfa,_0x59adba._0x3dba33,0x3a0,_0x59adba._0x823bd8)+_0x86c785,{'path':_0x86c785});const _0x2b2f26=_0x59d855[_0x415c2e(-_0x59adba._0x1ae7d3,0x1e,-_0x59adba._0x4dfce6,_0x59adba._0x5e6d5e)]??0x3e8,_0x202e98=Math[_0x415c2e(0x216,_0x59adba._0x214549,0x145,_0x59adba._0x30f0a7)](Math[_0x52a39a(0x1d9,_0x59adba._0x315caa,_0x59adba._0x3d278a,_0x59adba._0x1bf67f)](Math[_0x415c2e(0x1d6,_0x59adba._0x2087a3,_0x59adba._0x1439c1,0x1c7)](_0x2b2f26),0x1),0x2710),_0x1286b7=await _0x380be8(_0x554d45),_0x4e9a47=[];for(const _0x44d096 of _0x1286b7['slice'](0x0,_0x202e98)){const _0x45a059=_0x1272bf[_0x52a39a(0x265,_0x59adba._0x15d456,0x2b6,0x261)](_0x554d45,_0x44d096),_0x5655ac=await _0x41f86c(_0x45a059)['catch'](()=>null);if(!_0x5655ac)continue;let _0x2d5466=_0x415c2e(_0x59adba._0x40f1ad,0x1ca,0x218,_0x59adba._0x194575);if(_0x5655ac[_0x415c2e(0xc0,0x13c,0xc4,_0x59adba._0x5e5c4a)]())_0x2d5466=_0x415c2e(0x1fa,0x140,0xa9,_0x59adba._0x10cf79);else{if(_0x5655ac['isDirectory']())_0x2d5466='directory';else{if(_0x5655ac['isSymbolicLink']())_0x2d5466='symlink';}}const _0x11d0ac={'name':_0x44d096,'type':_0x2d5466,'size':_0x5655ac[_0x52a39a(_0x59adba._0x1ac4e9,0x68,_0x59adba._0x33c5aa,_0x59adba._0x343fa3)],'mtime':_0x5655ac[_0x415c2e(_0x59adba._0x4413d8,_0x59adba._0x56e87c,0x47,_0x59adba._0x42264f)],'mode':_0x5655ac['mode']},_0x1963d5=_0x2d5466==='file'?await countTextLines(_0x45a059,_0x5655ac['size']):void 0x0;if(_0x1963d5!==void 0x0)_0x11d0ac[_0x415c2e(_0x59adba._0x29917e,0x26b,_0x59adba._0xdc8b01,0x1ae)]=_0x1963d5;_0x4e9a47[_0x415c2e(0x110,_0x59adba._0x2a6a5d,0x13a,0x2bb)](_0x11d0ac);}_0x4e9a47[_0x415c2e(0x10e,0xd,-_0x59adba._0xcb17cb,_0x59adba._0x288d65)]((_0x46d2a2,_0x5457dd)=>_0x46d2a2[_0x52a39a(0x3b6,0x494,0x422,0x349)][_0x415c2e(0x171,0x229,0x285,0x125)](_0x5457dd[_0x52a39a(0x2b1,0x234,0x302,0x349)]));const _0x4e684c={'path':_0x86c785,'total':_0x4e9a47[_0x52a39a(_0x59adba._0x24deb0,0x236,0x1d0,0x119)],'truncated':_0x1286b7[_0x52a39a(_0x59adba._0x280afe,0x18c,0x1e3,0x119)]>_0x202e98,'entries':_0x4e9a47};return yield createToolOutput(_0x42a7fc[_0x52a39a(0x107,_0x59adba._0x5dc563,_0x59adba._0x1874d4,0x10e)](_0x4e684c,{'indent':0x2,'lineWidth':0x0})[_0x52a39a(0x1da,0x43b,_0x59adba._0x1088e3,_0x59adba._0x356454)](),{'path':_0x86c785,'total':_0x4e9a47['length'],'truncated':_0x1286b7[_0x52a39a(_0x59adba._0x4694f2,0x13e,_0x59adba._0xc1c2b1,_0x59adba._0x51e8ec)]>_0x202e98,'limit':_0x202e98,'entries':_0x4e9a47}),void 0x0;}});}import{stat as _0x36d21e}from'fs/promises';import _0x499672 from'path';import{fileURLToPath as _0x197636}from'url';function severityName(_0x5baab9){const _0x220e8a={_0x44a647:0x28d,_0x1cdc44:0x4cb,_0x10c213:0x247,_0x46bb2f:0x4c2,_0xff942b:0x471,_0x1164f6:0x56e,_0x5b668c:0x593,_0x2da2bd:0x6bb},_0x4445de={_0x3a103a:0x231,_0x10e73d:0x1d0},_0x95ec69={_0x3afaa7:0x191};function _0x32607f(_0x2fe704,_0x17134b,_0x4d728e,_0x133e2d){return _0x29bb69(_0x2fe704-_0x95ec69._0x3afaa7,_0x4d728e-0x488,_0x17134b,_0x133e2d-0x158);}function _0x4cd89b(_0x41dde5,_0x42b21f,_0x5d43a8,_0x2ba9f2){return _0x567203(_0x2ba9f2,_0x42b21f-0xaa,_0x5d43a8-_0x4445de._0x3a103a,_0x2ba9f2-_0x4445de._0x10e73d);}switch(_0x5baab9){case 0x1:return'Error';case 0x2:return _0x32607f(_0x220e8a._0x44a647,0x48c,0x3e0,_0x220e8a._0x1cdc44);case 0x3:return _0x32607f(0x3be,_0x220e8a._0x10c213,0x37a,0x233);case 0x4:return _0x32607f(_0x220e8a._0x46bb2f,0x5bb,_0x220e8a._0xff942b,0x5a6);default:return _0x32607f(0x6d1,_0x220e8a._0x1164f6,_0x220e8a._0x5b668c,_0x220e8a._0x2da2bd);}}function formatSingleHover(_0xc3053a){const _0x4a563a={_0x1e8a68:0x504,_0x31d2c5:0x4e1,_0x192ac5:0x3f9,_0x8d1e7:0x3d2,_0x4b5d43:0x2c3,_0x1c8408:0x419,_0x4fde7b:0x40f,_0x12d764:0x249,_0x108c36:0x401,_0x4e6b5d:0x605,_0x3e0f9a:0x5aa,_0xf57d12:0x2f5,_0x483c7e:0x3af,_0x3093e8:0x2e8,_0x5e14c1:0x1f3,_0x2296b9:0x288,_0x9f0ff6:0x21c,_0x2bc195:0x285,_0x5adf9c:0x400,_0x180883:0x497,_0x53d63d:0x524,_0x27b59b:0x417,_0x1816bd:0x169,_0x4bed65:0x21a,_0x433a50:0x59d,_0x5e64ec:0x4fa},_0x19d7f2={_0x105153:0x154,_0x1469ff:0x255},_0x126e3d={_0x244587:0x3e,_0x119736:0x10},_0x4281c9=_0xc3053a[_0x4fa9c1(_0x4a563a._0x1e8a68,0x641,_0x4a563a._0x31d2c5,_0x4a563a._0x192ac5)];function _0x4fa9c1(_0x5494c1,_0x1a30ab,_0x4a6be8,_0x133d49){return _0x29bb69(_0x5494c1-_0x126e3d._0x244587,_0x5494c1-0x455,_0x4a6be8,_0x133d49-_0x126e3d._0x119736);}if(typeof _0x4281c9===_0x4fa9c1(_0x4a563a._0x8d1e7,_0x4a563a._0x4b5d43,0x466,_0x4a563a._0x1c8408))return _0x4281c9;if(Array[_0x4fa9c1(0x492,0x5d8,_0x4a563a._0x4fde7b,0x359)](_0x4281c9))return _0x4281c9['map'](_0xc53c32=>typeof _0xc53c32===_0x4fa9c1(0x3d2,0x4b2,0x360,0x2ef)?_0xc53c32:_0xc53c32['value'])[_0x4fa9c1(0x33c,_0x4a563a._0x12d764,0x2f3,_0x4a563a._0x108c36)](Boolean)['join']('\x0a\x0a');if(_0x4fa9c1(0x4ea,_0x4a563a._0x4e6b5d,_0x4a563a._0x3e0f9a,0x39b)in _0x4281c9)return _0x4281c9[_0x507b7d(0x297,_0x4a563a._0xf57d12,_0x4a563a._0x483c7e,_0x4a563a._0x3093e8)];function _0x507b7d(_0x19bc4c,_0x48191f,_0x4d0467,_0x3ab6f8){return _0x29bb69(_0x19bc4c-_0x19d7f2._0x105153,_0x19bc4c-_0x19d7f2._0x1469ff,_0x3ab6f8,_0x3ab6f8-0x26);}return _0x4281c9[_0x507b7d(_0x4a563a._0x5e14c1,0x206,_0x4a563a._0x2296b9,_0x4a563a._0x9f0ff6)]?_0x507b7d(0x2b0,0x2ae,_0x4a563a._0x2bc195,_0x4a563a._0x5adf9c)+_0x4281c9[_0x507b7d(0x1f3,0x227,0x322,0x24f)]+'\x0a'+_0x4281c9[_0x4fa9c1(_0x4a563a._0x180883,0x37e,_0x4a563a._0x53d63d,_0x4a563a._0x27b59b)]+_0x507b7d(_0x4a563a._0x1816bd,0x234,_0x4a563a._0x4bed65,0x50):_0x4281c9[_0x4fa9c1(0x497,_0x4a563a._0x433a50,0x5e6,_0x4a563a._0x5e64ec)];}function formatHover(_0x370471){const _0x327bb7={_0x2d231a:0x4b,_0x484323:0x2b0,_0x1a9ab7:0x19a,_0x2c9e24:0x22e,_0x1d0e32:0x1e1,_0x5cc21b:0x423,_0x1a5f45:0x26d,_0x59190e:0x38b},_0x5713ac={_0x3f7e3:0xc5,_0x17a9f0:0x71},_0x3c4d17={_0x3492a9:0x116,_0x4d4f39:0xf2,_0x32ae21:0x5d};function _0x56b118(_0x339fc7,_0x5c1fa4,_0x15743b,_0x391680){return _0x567203(_0x5c1fa4,_0x5c1fa4-_0x3c4d17._0x3492a9,_0x15743b-_0x3c4d17._0x4d4f39,_0x391680-_0x3c4d17._0x32ae21);}if(_0x370471[_0x8b03ee(0x14c,0x188,0x3d,_0x327bb7._0x2d231a)]===0x0)return _0x8b03ee(_0x327bb7._0x484323,0x194,0x205,0x1d6);function _0x8b03ee(_0x2b2ea4,_0x5f5392,_0x85f3b7,_0x29cb6f){return _0x29bb69(_0x2b2ea4-_0x5713ac._0x3f7e3,_0x5f5392-0x2d6,_0x2b2ea4,_0x29cb6f-_0x5713ac._0x17a9f0);}return _0x370471[_0x8b03ee(0x128,_0x327bb7._0x1a9ab7,_0x327bb7._0x2c9e24,_0x327bb7._0x1d0e32)](formatSingleHover)[_0x8b03ee(0x3f2,0x2d0,_0x327bb7._0x5cc21b,_0x327bb7._0x1a5f45)](_0x56b118(_0x327bb7._0x59190e,0x381,0x2d1,0x302));}function locationPath(_0x3c7897){const _0x579cbc={_0x295b1b:0x251,_0x1c4bc1:0x277,_0x495334:0x19a},_0x3b8e65={_0x12029c:0x2d},_0x30f123={_0x5d8159:0x163};if(!_0x3c7897[_0x298ae3(-0x197,-_0x579cbc._0x295b1b,-_0x579cbc._0x1c4bc1,-0xc8)](_0x298ae3(-_0x579cbc._0x495334,-0x99,-0x243,-0xe0)))return _0x3c7897;function _0x298ae3(_0x49af0c,_0x22f3ea,_0x58e1bf,_0x2a7f68){return _0x29bb69(_0x49af0c-_0x30f123._0x5d8159,_0x49af0c- -0x6a,_0x22f3ea,_0x2a7f68-0x97);}function _0x1734ff(_0x33f878,_0x36e16f,_0x27e5d2,_0x404ff9){return _0x29bb69(_0x33f878-_0x3b8e65._0x12029c,_0x33f878-0x651,_0x36e16f,_0x404ff9-0x98);}return _0x197636(_0x3c7897);}function formatLocations(_0x4eaef1){const _0x1b6119={_0x22dc65:0xed,_0x352a2c:0x194,_0x447040:0x6b,_0x5ead48:0x1d5,_0x3e8e94:0x85,_0x8f681:0x238,_0x4ef9d9:0x16e,_0x2a8b70:0xb0,_0x3e50cb:0x45,_0x30fbc2:0x5b},_0x2a7450={_0x22eee8:0x32e,_0x346239:0x440,_0x5239c9:0x272,_0x5deb76:0x75d,_0x5c4014:0x30f,_0xb40049:0x30a,_0x349287:0x1f3,_0x3e3aeb:0x218,_0x4e5424:0x226,_0x59abef:0x371},_0x399b72={_0x452fa1:0x1c6,_0x44b5e2:0x9f},_0x38afcc={_0x548f60:0x99};if(_0x4eaef1[_0x39a1a8(-0xe3,-0xd8,-_0x1b6119._0x22dc65,-0x52)]===0x0)return _0x2735e1(-_0x1b6119._0x352a2c,-0x1d9,-_0x1b6119._0x447040,-0x4b);function _0x2735e1(_0x218dcb,_0x4d69a2,_0x200f55,_0x4c154b){return _0x29bb69(_0x218dcb-0x33,_0x218dcb- -_0x38afcc._0x548f60,_0x4c154b,_0x4c154b-0x14a);}function _0x39a1a8(_0x18e6ea,_0x1e6dbb,_0x487225,_0x209d1e){return _0x29bb69(_0x18e6ea-_0x399b72._0x452fa1,_0x487225-0x61,_0x209d1e,_0x209d1e-_0x399b72._0x44b5e2);}return _0x4eaef1[_0x2735e1(-_0x1b6119._0x5ead48,-_0x1b6119._0x3e8e94,-_0x1b6119._0x8f681,-_0x1b6119._0x4ef9d9)](_0x61458=>{const _0x4a3b14={_0x2efb0e:0x2d5,_0x54a473:0x6a,_0x451543:0x6f};function _0x29c400(_0x3d4f98,_0x5590ca,_0x5c665a,_0x52657e){return _0x39a1a8(_0x3d4f98-0x7e,_0x5590ca-0xdb,_0x5590ca-0x66d,_0x5c665a);}function _0x96a04c(_0x1aa1d5,_0x2dbf23,_0x94f9e1,_0x3c7180){return _0x2735e1(_0x1aa1d5-_0x4a3b14._0x2efb0e,_0x2dbf23-_0x4a3b14._0x54a473,_0x94f9e1-_0x4a3b14._0x451543,_0x2dbf23);}const _0x3cc8dd=_0x61458[_0x96a04c(_0x2a7450._0x22eee8,_0x2a7450._0x346239,0x2a3,_0x2a7450._0x5239c9)][_0x29c400(0x6e3,0x771,_0x2a7450._0x5deb76,0x851)];return locationPath(_0x61458[_0x96a04c(_0x2a7450._0x5c4014,_0x2a7450._0xb40049,0x3ef,_0x2a7450._0x349287)])+':'+(_0x3cc8dd[_0x96a04c(0x222,_0x2a7450._0x3e3aeb,_0x2a7450._0x4e5424,_0x2a7450._0x59abef)]+0x1)+':'+(_0x3cc8dd['character']+0x1);})[_0x39a1a8(_0x1b6119._0x2a8b70,_0x1b6119._0x3e50cb,_0x1b6119._0x30fbc2,0xfa)]('\x0a');}function isDocumentSymbol(_0x1c8e50){const _0x487ba6={_0x5e5442:0x6e7,_0x45efff:0x6c6,_0x390e1e:0x768,_0x5758a9:0x75b,_0x12de63:0x6ae,_0x402524:0x7c8,_0x1e5567:0x6af},_0x20bfe7={_0x3e3639:0x1d},_0xf0c163={_0x6a1fbd:0x676,_0x475842:0xd9};function _0x2dacc2(_0x5503ed,_0x574aa0,_0x2a79fa,_0x5cd342){return _0x29bb69(_0x5503ed-0x195,_0x5cd342-_0xf0c163._0x6a1fbd,_0x574aa0,_0x5cd342-_0xf0c163._0x475842);}function _0x192a12(_0x305e7a,_0x41b71a,_0x452666,_0x3a4f78){return _0x29bb69(_0x305e7a-0x180,_0x452666-0x37d,_0x3a4f78,_0x3a4f78-_0x20bfe7._0x3e3639);}return _0x2dacc2(_0x487ba6._0x5e5442,_0x487ba6._0x45efff,0x8b2,_0x487ba6._0x390e1e)in _0x1c8e50&&_0x2dacc2(_0x487ba6._0x5758a9,_0x487ba6._0x12de63,_0x487ba6._0x402524,_0x487ba6._0x1e5567)in _0x1c8e50;}function formatSymbols(_0x13250d){const _0x7869a1={_0x1f79c1:0x17b,_0x258268:0x4f8,_0x207f86:0x47d},_0x41b1a3={_0x9bf033:0x140,_0x1f2e93:0x4fa,_0x41381c:0x697,_0x3c42e6:0xc4,_0x4a2046:0x4e6,_0x157dbd:0x5ad,_0xa70555:0x524,_0x1c7fa9:0x20f,_0x23c7e6:0x255,_0x11cc34:0xd6,_0xbe18d0:0x1a3,_0x2a1d64:0x17d,_0x4d3c2b:0x598,_0x39dcfd:0x591,_0x12a0b1:0x5d3,_0x59e1be:0x188,_0x362009:0x4ec,_0x1cce04:0x92,_0x106647:0x10d,_0x2f4be1:0x5f2,_0x6f842f:0x19b,_0x3e909a:0x14,_0x142741:0x85,_0x546631:0xcc,_0x4c859c:0x1a3,_0x34c284:0x115},_0x174458={_0x27e690:0x287,_0x486a2c:0x12b},_0x39aac6={_0x360815:0x205,_0x526d33:0x132},_0x47cbba={_0x39be06:0x145,_0x4a6271:0xee},_0x27eb10={_0x27e693:0x15b,_0xe9c0f9:0x34f,_0x4b8917:0xe};function _0x564460(_0x128d38,_0xf728a7,_0x2d807a,_0xcb9f1){return _0x567203(_0xf728a7,_0xf728a7-_0x27eb10._0x27e693,_0x2d807a-_0x27eb10._0xe9c0f9,_0xcb9f1-_0x27eb10._0x4b8917);}function _0x1218cc(_0x1a8fa8,_0x3104b3,_0x5d0e68,_0x2dd40b){return _0x567203(_0x3104b3,_0x3104b3-0x164,_0x1a8fa8-_0x47cbba._0x39be06,_0x2dd40b-_0x47cbba._0x4a6271);}if(_0x13250d['length']===0x0)return'No\x20symbols\x20found';return _0x13250d[_0x1218cc(0x13d,_0x7869a1._0x1f79c1,0x179,0x89)](_0x3c5655=>{function _0x45fb23(_0x27fa25,_0x956877,_0x4e1316,_0x1eb1aa){return _0x1218cc(_0x4e1316- -_0x39aac6._0x360815,_0x27fa25,_0x4e1316-_0x39aac6._0x526d33,_0x1eb1aa-0x131);}if(isDocumentSymbol(_0x3c5655))return _0x3c5655['name']+'\x20('+_0x3c5655['kind']+_0x45fb23(0x229,_0x41b1a3._0x9bf033,0x19e,0x271)+(_0x3c5655[_0x5af53f(0x711,0x5f2,_0x41b1a3._0x1f2e93,_0x41b1a3._0x41381c)][_0x45fb23(_0x41b1a3._0x3c42e6,0x1a8,0x117,0x1e8)][_0x5af53f(0x3de,_0x41b1a3._0x4a2046,_0x41b1a3._0x157dbd,_0x41b1a3._0xa70555)]+0x1)+':'+(_0x3c5655[_0x45fb23(_0x41b1a3._0x1c7fa9,0xe5,0x166,0x1e)][_0x45fb23(_0x41b1a3._0x23c7e6,0xa7,0x117,0x1e6)][_0x45fb23(_0x41b1a3._0x11cc34,0x2b5,_0x41b1a3._0xbe18d0,_0x41b1a3._0x2a1d64)]+0x1)+']';function _0x5af53f(_0x46be16,_0x2159d8,_0x134010,_0x5d01d7){return _0x1218cc(_0x2159d8-_0x174458._0x27e690,_0x5d01d7,_0x134010-0x161,_0x5d01d7-_0x174458._0x486a2c);}return _0x3c5655['name']+'\x20('+_0x3c5655[_0x5af53f(0x64d,0x595,_0x41b1a3._0x4d3c2b,0x461)]+')\x20'+locationPath(_0x3c5655[_0x5af53f(0x61d,_0x41b1a3._0x39dcfd,0x43c,0x56f)][_0x5af53f(0x5b3,_0x41b1a3._0x12a0b1,0x4d4,0x721)])+':'+(_0x3c5655['location']['range'][_0x45fb23(-0x30,0x15f,0x117,_0x41b1a3._0x59e1be)][_0x5af53f(_0x41b1a3._0x362009,0x4e6,0x4f6,0x56a)]+0x1)+':'+(_0x3c5655[_0x45fb23(_0x41b1a3._0x1cce04,_0x41b1a3._0x106647,0x105,0x1c6)][_0x5af53f(0x4c2,_0x41b1a3._0x2f4be1,0x4df,0x535)][_0x45fb23(_0x41b1a3._0x6f842f,-_0x41b1a3._0x3e909a,0x117,_0x41b1a3._0x142741)][_0x45fb23(_0x41b1a3._0x546631,0x1fd,_0x41b1a3._0x4c859c,_0x41b1a3._0x34c284)]+0x1);})[_0x564460(0x3c1,_0x7869a1._0x258268,_0x7869a1._0x207f86,0x456)]('\x0a');}function formatDiagnostics(_0x267677){const _0x34f545={_0x5a8083:0x318,_0x21db33:0x29f,_0x1cdba0:0x203,_0x2cb970:0x2ac},_0x165d23={_0x5cd87d:0x322,_0x3c8e69:0x402,_0x102ef4:0x167,_0x3c9fbb:0x3c3,_0x3a7e6b:0x593,_0x118e13:0x590,_0xb84547:0x6b8,_0x5ea3de:0x789},_0x528ea5={_0xdf8a5e:0x1c5,_0x45f9c2:0x1a0},_0x5455a3={_0xf20ae2:0x16a};if(_0x267677['length']===0x0)return _0x3d89c5(_0x34f545._0x5a8083,_0x34f545._0x21db33,0x218,0x113);function _0x3d89c5(_0x2992a3,_0x1cf81c,_0x20102b,_0x6692ac){return _0x567203(_0x2992a3,_0x1cf81c-_0x5455a3._0xf20ae2,_0x20102b-0xd5,_0x6692ac-0x62);}function _0x3fd8c0(_0x4afb1d,_0x36f0d6,_0x4a0da6,_0x1ecffe){return _0x29bb69(_0x4afb1d-_0x528ea5._0xdf8a5e,_0x1ecffe-0x2d6,_0x4a0da6,_0x1ecffe-_0x528ea5._0x45f9c2);}return _0x267677['map'](_0x22fe34=>{const _0x2d01d0={_0x264ae2:0x439,_0x4167c2:0xe2},_0x480e3e={_0x1fb2bd:0x8d,_0x1a5521:0x19,_0xfee67:0x11b},_0x299824=_0x22fe34[_0x440b3(_0x165d23._0x5cd87d,_0x165d23._0x3c8e69,0x2e2,0x254)][_0x440b3(0x219,_0x165d23._0x102ef4,0x293,_0x165d23._0x3c9fbb)];function _0x440b3(_0x2097db,_0x4689e1,_0x275ea8,_0x468288){return _0x3d89c5(_0x2097db,_0x4689e1-_0x480e3e._0x1fb2bd,_0x275ea8- -_0x480e3e._0x1a5521,_0x468288-_0x480e3e._0xfee67);}function _0x18577a(_0x703b22,_0xd91af1,_0x2cd357,_0x4bb5e9){return _0x3d89c5(_0x2cd357,_0xd91af1-0xeb,_0x703b22-_0x2d01d0._0x264ae2,_0x4bb5e9-_0x2d01d0._0x4167c2);}return severityName(_0x22fe34[_0x18577a(_0x165d23._0x3a7e6b,0x457,0x6dd,_0x165d23._0x118e13)])+'\x20['+(_0x299824['line']+0x1)+':'+(_0x299824[_0x440b3(0x38f,0x233,0x31f,0x1e2)]+0x1)+']\x20'+_0x22fe34[_0x18577a(_0x165d23._0xb84547,0x78f,0x61b,_0x165d23._0x5ea3de)];})[_0x3d89c5(0x2d3,0x2db,_0x34f545._0x1cdba0,_0x34f545._0x2cb970)]('\x0a');}function formatIncomingCalls(_0x2965c2){const _0x555f55={_0x42b3c5:0x2b4,_0xe1480a:0x386,_0x1d44cd:0x4ec,_0x1f8482:0x54f,_0x53c542:0x2be,_0xb7641:0x194},_0x564e9c={_0x18ed32:0x96},_0x2c69ad={_0x18ab68:0x4c};function _0x5b7d46(_0x5a6263,_0x58ac54,_0x14b553,_0x43a3f8){return _0x29bb69(_0x5a6263-_0x2c69ad._0x18ab68,_0x14b553-0x2c4,_0x5a6263,_0x43a3f8-0x13f);}function _0x50414f(_0x56163a,_0x282bef,_0x58dbf4,_0x2e1318){return _0x29bb69(_0x56163a-_0x564e9c._0x18ed32,_0x56163a-0x5de,_0x58dbf4,_0x2e1318-0x90);}if(_0x2965c2['length']===0x0)return _0x5b7d46(0x2f5,_0x555f55._0x42b3c5,0x382,_0x555f55._0xe1480a);return _0x2965c2[_0x50414f(0x4a2,_0x555f55._0x1d44cd,_0x555f55._0x1f8482,0x4d9)](_0x4a610b=>_0x4a610b[_0x50414f(0x579,0x574,0x54f,0x5c1)][_0x50414f(0x6c0,0x5b3,0x5fd,0x6c1)])[_0x5b7d46(0x296,0x2ef,_0x555f55._0x53c542,_0x555f55._0xb7641)]('\x0a');}function formatOutgoingCalls(_0x107ccc){const _0xab54a4={_0x3e1df5:0x20,_0xc5a903:0xa8,_0xd3b203:0x1a0,_0xe870cc:0x124,_0x3b73b5:0x15a,_0x530cb1:0xdc},_0x3f2d89={_0x21868c:0x29},_0xa98539={_0x4cf9f3:0x2f,_0x507b54:0x260,_0x4f1d7a:0xd4};function _0x2091b3(_0x40a4d8,_0xebaa3f,_0x486cc3,_0x40e12a){return _0x29bb69(_0x40a4d8-_0xa98539._0x4cf9f3,_0xebaa3f-_0xa98539._0x507b54,_0x40a4d8,_0x40e12a-_0xa98539._0x4f1d7a);}function _0x2ac040(_0xf01bf1,_0x65d9fa,_0x3fe289,_0x107cf1){return _0x567203(_0x65d9fa,_0x65d9fa-_0x3f2d89._0x21868c,_0x107cf1- -0x52,_0x107cf1-0x8c);}if(_0x107ccc[_0x2ac040(_0xab54a4._0x3e1df5,0xeb,-0x11,-0x6c)]===0x0)return _0x2ac040(0x2f7,_0xab54a4._0xc5a903,0x154,_0xab54a4._0xd3b203);return _0x107ccc[_0x2091b3(0x5a,_0xab54a4._0xe870cc,-0x31,0x1ca)](_0xde2b7=>_0xde2b7['to'][_0x2091b3(0x456,0x342,0x306,0x423)])[_0x2ac040(0x226,_0xab54a4._0x3b73b5,0x16d,_0xab54a4._0x530cb1)]('\x0a');}function toStructured(_0x3360d8){const _0x14e934={_0x347637:0x136,_0x116376:0x2c7,_0x4906cc:0xe7,_0xd62849:0x57,_0x3b197d:0x62},_0x49ea74={_0x4dc538:0x82},_0x264d20={_0x4d8d66:0x18c};function _0xdce46b(_0x2c1938,_0x1fb924,_0x1cd6e7,_0x2fcd5f){return _0x29bb69(_0x2c1938-0x79,_0x2c1938-0x6e8,_0x1fb924,_0x2fcd5f-_0x264d20._0x4d8d66);}function _0x5ec5e9(_0x2ef8f2,_0x400b32,_0x25e529,_0x49df6d){return _0x29bb69(_0x2ef8f2-0x33,_0x2ef8f2-0x240,_0x25e529,_0x49df6d-_0x49ea74._0x4dc538);}return JSON[_0x5ec5e9(0x21b,_0x14e934._0x347637,_0x14e934._0x116376,0x226)](JSON[_0x5ec5e9(_0x14e934._0x4906cc,-_0x14e934._0xd62849,_0x14e934._0x3b197d,0x18b)](_0x3360d8));}async function assertFile(_0x3e57f0){const _0x1ae7a4={_0x29c004:0x3b3,_0x44c46b:0x3e8},_0x519da1={_0x2e120f:0x22f},_0x29cb34=await _0x36d21e(_0x3e57f0);function _0x1f3b0e(_0x227dc1,_0x1f9c85,_0x24a675,_0x2862cb){return _0x567203(_0x2862cb,_0x1f9c85-0x10d,_0x227dc1-_0x519da1._0x2e120f,_0x2862cb-0x6a);}if(!_0x29cb34['isFile']())throw new ToolExecutionError(_0x1f3b0e(_0x1ae7a4._0x29c004,0x321,0x266,_0x1ae7a4._0x44c46b)+_0x3e57f0,{'path':_0x3e57f0});}function validatePosition(_0x329171,_0x2a3150){const _0x30ae19={_0x948f26:0x635,_0x3e7e50:0x6cf,_0x800ce3:0x30d,_0x20532a:0x2c2,_0x485ff7:0x272,_0x462379:0x3a9},_0x1ab9a0={_0x4779f8:0x1c9,_0x467c90:0xc0},_0x4547f5={_0x2b7518:0x88};function _0x5c4361(_0x1f56cc,_0x31bb8c,_0x550c9f,_0x59573f){return _0x567203(_0x31bb8c,_0x31bb8c-_0x4547f5._0x2b7518,_0x1f56cc-0x1c0,_0x59573f-0x82);}if(!Number[_0x57b677(0x585,0x6b7,_0x30ae19._0x948f26,_0x30ae19._0x3e7e50)](_0x329171)||_0x329171<0x1)throw new ToolExecutionError(_0x5c4361(0x3a4,0x46e,_0x30ae19._0x800ce3,_0x30ae19._0x20532a),{'line':_0x329171});function _0x57b677(_0x52d9d6,_0x2b0734,_0x111b68,_0x4b1153){return _0x29bb69(_0x52d9d6-_0x1ab9a0._0x4779f8,_0x52d9d6-0x607,_0x4b1153,_0x4b1153-_0x1ab9a0._0x467c90);}if(!Number[_0x5c4361(_0x30ae19._0x485ff7,0x396,0x146,_0x30ae19._0x462379)](_0x2a3150)||_0x2a3150<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x2a3150});}function createLspTool(_0x4c21fa={}){const _0x400fee={_0x5b50eb:0x189,_0x42fb89:0xf8,_0x51b709:0x646,_0x55006e:0x690,_0x4c3e6e:0x72a,_0x543e4f:0x70c,_0x12b486:0xdb,_0x2b1e54:0x3a,_0x320f4b:0x41,_0x3358d9:0x2db,_0x2159a1:0x3e5,_0x3cdf01:0x1a7,_0x51a978:0x275,_0x276bae:0x1d9,_0x2f7694:0x68f,_0x475afb:0x672,_0x2156b3:0x4ee,_0x5210c4:0x6c4,_0x38447b:0x556,_0x4ce9dd:0x500,_0xbd2fbe:0x8,_0x569169:0x1fb,_0x586b82:0x614,_0xe77544:0x6df,_0x21b7e9:0x595,_0x24da32:0x5db,_0x520500:0x220,_0x45c8b5:0x1d1,_0x598883:0x1d3,_0x8366aa:0x196,_0x23a7fe:0x9a,_0x3acbeb:0x541,_0x31f4d5:0x68c,_0x45b0be:0x45a,_0x1a1b20:0x52d,_0x517d83:0x5fe,_0x21dda6:0x635,_0xc3a87b:0x69e,_0x2584cc:0x346},_0x402f21={_0x11e9df:0x191,_0x248abb:0x2c,_0x525115:0xd6,_0x2dba9f:0x636,_0x3861c7:0x510,_0x501aa9:0x5e9,_0x11ed15:0x4ed,_0x34362c:0x546,_0x6a054:0xd6,_0x4f2666:0x124,_0x1f5038:0xf9,_0x2da065:0x218,_0x490712:0x169,_0x4385d7:0x487,_0x2b561c:0x546,_0xec530c:0x4d3,_0x3fe7ad:0x831,_0x18eebe:0x700,_0x3d7b3c:0x638,_0x2ab099:0x705,_0x452970:0x2e,_0x299cbd:0x54,_0x2dcc06:0x3f,_0x501a9c:0xad,_0x474efd:0x17b,_0x238031:0x1b9,_0x65b3ca:0x209,_0x214975:0x1b5,_0x2f894c:0x165,_0x326e07:0x21f,_0x4c50b4:0x291,_0x24fc16:0x551,_0x4c24a2:0xfa,_0x414604:0x4c,_0x4c47cc:0x93,_0x1e0699:0x210,_0x35391f:0x178,_0x4fdfb9:0x107,_0x20050d:0x1a3,_0x51daae:0x87,_0x44b885:0x6dd,_0x56e00d:0x6b3,_0x2e5733:0x823,_0x218d88:0x3f,_0xaa7ba8:0x1c5,_0x1b2029:0x220,_0x1aac15:0x16a,_0xb61aaa:0x185,_0x4a8701:0x9d,_0x2cb641:0xdc,_0x1b50aa:0x129},_0x259819={_0x391612:0x64},_0x5678fe={_0x43b73b:0x127,_0x14b187:0x13b},_0x1c25af={_0x457720:0x1b9,_0x1f6a27:0x217},_0x8f6e4a={_0x534eaa:0x70,_0x46e090:0x618,_0x1f1392:0xef},_0x4698ae=_0x499672[_0x4bf5c1(_0x400fee._0x5b50eb,0xc5,_0x400fee._0x42fb89,0xcd)](_0x4c21fa['defaultCwd']??process[_0x502a15(_0x400fee._0x51b709,0x555,0x6d1,_0x400fee._0x55006e)]()),_0x558947=(_0x4c21fa[_0x502a15(_0x400fee._0x4c3e6e,0x6eb,_0x400fee._0x543e4f,0x827)]??[])[_0x4bf5c1(_0x400fee._0x12b486,0x13,_0x400fee._0x2b1e54,-_0x400fee._0x320f4b)](_0x50f010=>_0x499672[_0x4bf5c1(0x189,0x49,0x127,0x285)](_0x50f010));function _0x502a15(_0x321b43,_0x27712d,_0x1e2d85,_0x2d35b4){return _0x29bb69(_0x321b43-_0x8f6e4a._0x534eaa,_0x321b43-_0x8f6e4a._0x46e090,_0x1e2d85,_0x2d35b4-_0x8f6e4a._0x1f1392);}function _0x4bf5c1(_0x1f496e,_0x4ecdc1,_0x111ef1,_0x365165){return _0x29bb69(_0x1f496e-_0x1c25af._0x457720,_0x1f496e-_0x1c25af._0x1f6a27,_0x4ecdc1,_0x365165-0x4c);}const _0x1068fe=_0x4c21fa['name']??'Lsp';return defineTool({'name':_0x1068fe,'description':_0x4bf5c1(_0x400fee._0x3358d9,_0x400fee._0x2159a1,0x215,_0x400fee._0x3cdf01),'inputSchema':{'type':'object','properties':{'operation':{'type':'string','enum':['goToDefinition',_0x4bf5c1(_0x400fee._0x51a978,0x296,_0x400fee._0x276bae,0x1f5),_0x502a15(0x67e,_0x400fee._0x2f7694,_0x400fee._0x475afb,0x70f),_0x502a15(0x632,_0x400fee._0x2156b3,_0x400fee._0x5210c4,0x6cd),_0x502a15(_0x400fee._0x38447b,0x40a,_0x400fee._0x4ce9dd,0x5ef),_0x4bf5c1(0xb8,_0x400fee._0xbd2fbe,0x1af,_0x400fee._0x569169),_0x502a15(0x604,0x56a,0x64f,_0x400fee._0x586b82),'incomingCalls',_0x502a15(_0x400fee._0xe77544,0x826,0x6c5,0x69d),'diagnostics']},'filePath':{'type':_0x502a15(_0x400fee._0x21b7e9,_0x400fee._0x24da32,0x6ad,0x466)},'line':{'type':_0x4bf5c1(0x27f,0x35e,_0x400fee._0x520500,_0x400fee._0x45c8b5)},'character':{'type':'number'},'query':{'type':_0x4bf5c1(0x194,_0x400fee._0x598883,_0x400fee._0x8366aa,_0x400fee._0x23a7fe)}},'required':[_0x502a15(_0x400fee._0x3acbeb,_0x400fee._0x31f4d5,_0x400fee._0x45b0be,0x60d),_0x502a15(_0x400fee._0x1a1b20,0x550,0x474,0x5b1),_0x502a15(_0x400fee._0x517d83,0x6c3,_0x400fee._0x21dda6,_0x400fee._0xc3a87b),_0x4bf5c1(_0x400fee._0x2584cc,0x36d,0x498,0x3b0)]},async *'execute'(_0x3e4d59){const _0x1bcf91=_0x4c21fa['lspService'];function _0x71ee33(_0x519330,_0x3a6db3,_0xc2876d,_0x28325e){return _0x4bf5c1(_0x519330- -_0x5678fe._0x43b73b,_0xc2876d,_0xc2876d-0x49,_0x28325e-_0x5678fe._0x14b187);}if(!_0x1bcf91)throw new ToolExecutionError(_0x71ee33(0xa4,_0x402f21._0x11e9df,_0x402f21._0x248abb,0x10e));if(!_0x1bcf91[_0x71ee33(-0x6a,_0x402f21._0x525115,-0x149,0x82)]())throw new ToolExecutionError(_0x285197(_0x402f21._0x2dba9f,_0x402f21._0x3861c7,0x6b6,0x585));const _0x565086=_0x3e4d59[_0x285197(_0x402f21._0x501aa9,0x59f,_0x402f21._0x11ed15,_0x402f21._0x34362c)];validatePosition(_0x3e4d59[_0x71ee33(_0x402f21._0x6a054,0x62,0x33,_0x402f21._0x4f2666)],_0x3e4d59['character']);if(_0x565086==='workspaceSymbol'){if(!_0x3e4d59[_0x71ee33(_0x402f21._0x1f5038,_0x402f21._0x2da065,0x30,_0x402f21._0x490712)]?.[_0x285197(_0x402f21._0x4385d7,0x4d6,_0x402f21._0x2b561c,_0x402f21._0xec530c)]())throw new ToolExecutionError(_0x285197(_0x402f21._0x3fe7ad,_0x402f21._0x18eebe,_0x402f21._0x3d7b3c,_0x402f21._0x2ab099));const _0x41abde=await _0x1bcf91[_0x71ee33(_0x402f21._0x452970,_0x402f21._0x299cbd,0xcf,-_0x402f21._0x2dcc06)](_0x3e4d59['query'][_0x71ee33(-0x5a,-_0x402f21._0x501a9c,-0xce,-_0x402f21._0x474efd)]());return yield createToolOutput(formatSymbols(_0x41abde),{'operation':_0x565086,'query':_0x3e4d59[_0x71ee33(0xf9,0x4f,0x1bc,_0x402f21._0x238031)],'symbols':_0x41abde}),void 0x0;}const _0x49353a=resolveAllowedPath(_0x4698ae,_0x558947,_0x3e4d59['filePath']);await assertFile(_0x49353a);if(!await _0x1bcf91[_0x71ee33(_0x402f21._0x65b3ca,_0x402f21._0x214975,0x137,0x111)](_0x49353a))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3e4d59['filePath'],{'filePath':_0x3e4d59['filePath']});function _0x285197(_0x1a4a5c,_0x325f6e,_0x56c1d9,_0xba6f72){return _0x4bf5c1(_0xba6f72-0x406,_0x56c1d9,_0x56c1d9-_0x259819._0x391612,_0xba6f72-0x10d);}await _0x1bcf91['touchFile'](_0x49353a,!![]);const _0x487861={'file':_0x49353a,'line':_0x3e4d59[_0x71ee33(0xd6,_0x402f21._0x2f894c,0x1e1,0x111)]-0x1,'character':_0x3e4d59[_0x71ee33(_0x402f21._0x326e07,0x246,0x149,_0x402f21._0x4c50b4)]-0x1};switch(_0x565086){case'hover':{const _0x15a19a=await _0x1bcf91[_0x285197(0x720,_0x402f21._0x24fc16,0x771,0x683)](_0x487861);return yield createToolOutput(formatHover(_0x15a19a),{'operation':_0x565086,'filePath':_0x49353a,'hover':_0x15a19a}),void 0x0;}case _0x71ee33(0x9d,_0x402f21._0x4c24a2,0xba,0xa5):{const _0x3180a8=await _0x1bcf91['diagnosticsForFile'](_0x49353a);return yield createToolOutput(formatDiagnostics(_0x3180a8),{'operation':_0x565086,'filePath':_0x49353a,'diagnostics':_0x3180a8}),void 0x0;}case _0x71ee33(_0x402f21._0x414604,-0x38,-_0x402f21._0x4c47cc,0x103):{const _0x592760=await _0x1bcf91[_0x71ee33(_0x402f21._0x1e0699,_0x402f21._0x35391f,0x2b6,_0x402f21._0x4fdfb9)](_0x487861);return yield createToolOutput(formatLocations(_0x592760),{'operation':_0x565086,'filePath':_0x49353a,'locations':_0x592760}),void 0x0;}case _0x71ee33(0x14e,_0x402f21._0x20050d,_0x402f21._0x51daae,0x27b):{const _0x52b095=await _0x1bcf91[_0x285197(_0x402f21._0x44b885,_0x402f21._0x56e00d,0x7c0,0x754)](_0x487861);return yield createToolOutput(formatLocations(_0x52b095),{'operation':_0x565086,'filePath':_0x49353a,'locations':_0x52b095}),void 0x0;}case'goToImplementation':{const _0x53e70b=await _0x1bcf91[_0x285197(0x67d,0x803,_0x402f21._0x2e5733,0x70a)](_0x487861);return yield createToolOutput(formatLocations(_0x53e70b),{'operation':_0x565086,'filePath':_0x49353a,'locations':_0x53e70b}),void 0x0;}case _0x71ee33(0x10a,0x19d,_0x402f21._0x218d88,_0x402f21._0xaa7ba8):{const _0xa7c8d8=await _0x1bcf91['documentSymbol'](_0x49353a);return yield createToolOutput(formatSymbols(_0xa7c8d8),{'operation':_0x565086,'filePath':_0x49353a,'symbols':_0xa7c8d8}),void 0x0;}case _0x71ee33(0xdc,0x19e,_0x402f21._0x1b2029,_0x402f21._0x1aac15):{const _0x4b0b5d=await _0x1bcf91['prepareCallHierarchy'](_0x487861);return yield createToolOutput(formatSymbols(_0x4b0b5d),{'operation':_0x565086,'filePath':_0x49353a,'symbols':toStructured(_0x4b0b5d)}),void 0x0;}case'incomingCalls':{const _0x1869c4=await _0x1bcf91[_0x71ee33(-0x4f,-_0x402f21._0xb61aaa,-_0x402f21._0x4a8701,-0x90)](_0x487861);return yield createToolOutput(formatIncomingCalls(_0x1869c4),{'operation':_0x565086,'filePath':_0x49353a,'calls':toStructured(_0x1869c4)}),void 0x0;}case _0x71ee33(0x1b7,0x1f1,_0x402f21._0x2cb641,_0x402f21._0x1b50aa):{const _0xea6921=await _0x1bcf91[_0x71ee33(0x1b7,0x145,0x205,_0x402f21._0x1b50aa)](_0x487861);return yield createToolOutput(formatOutgoingCalls(_0xea6921),{'operation':_0x565086,'filePath':_0x49353a,'calls':toStructured(_0xea6921)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x406012,readFile as _0x8d1d0,writeFile as _0x4bb16a}from'fs/promises';import{join as _0x3700c6}from'path';function sanitizeStorageKey(_0x4185e9){const _0x4b84cd={_0x2ad219:0x640,_0x57aeee:0x6a9,_0x5df7f0:0x583,_0x22034c:0x56a,_0x439037:0x545},_0x1ede07={_0x4f09de:0x172,_0x53458a:0xe5},_0x323de6={_0x36625c:0x481};function _0x582525(_0xd2a4df,_0x4c48ee,_0x5e0b17,_0x2e039f){return _0x567203(_0x4c48ee,_0x4c48ee-0xaf,_0x5e0b17-_0x323de6._0x36625c,_0x2e039f-0x1da);}function _0x11d141(_0x46d5fb,_0x1eb810,_0x299253,_0x16f58e){return _0x567203(_0x46d5fb,_0x1eb810-_0x1ede07._0x4f09de,_0x299253-0x385,_0x16f58e-_0x1ede07._0x53458a);}return _0x4185e9[_0x582525(_0x4b84cd._0x2ad219,_0x4b84cd._0x57aeee,0x56a,_0x4b84cd._0x5df7f0)](/[^a-zA-Z0-9_]+/g,'_')[_0x582525(0x574,0x4ad,_0x4b84cd._0x22034c,0x45b)](/^_+|_+$/g,'')||_0x582525(0x48b,0x675,_0x4b84cd._0x439037,0x487);}function storagePath(_0x1e3516){const _0x50e2d0={_0x2ff3fd:0x19c,_0x36644f:0x260,_0x3de85a:0x40c,_0x3f6f3f:0x562,_0x41bc99:0x456,_0x5d9dc5:0x3d4,_0x1702e4:0x1fd,_0x238af8:0x185},_0xa3cc37={_0x56cef9:0x5c,_0x277064:0x156},_0x1134a4={_0x9e98:0x13a,_0x51e65f:0xcb};function _0x301e0c(_0x5d1f51,_0x4170c8,_0x469128,_0x5bc80a){return _0x567203(_0x469128,_0x4170c8-_0x1134a4._0x9e98,_0x4170c8-0x3bd,_0x5bc80a-_0x1134a4._0x51e65f);}function _0x1cf5bd(_0x4bae6c,_0x451dea,_0x239ebf,_0x376919){return _0x567203(_0x239ebf,_0x451dea-0xd5,_0x4bae6c-_0xa3cc37._0x56cef9,_0x376919-_0xa3cc37._0x277064);}const _0x3409e5=sanitizeStorageKey(_0x1e3516[_0x1cf5bd(_0x50e2d0._0x2ff3fd,0x60,0x2ea,_0x50e2d0._0x36644f)][_0x301e0c(0x356,_0x50e2d0._0x3de85a,_0x50e2d0._0x3f6f3f,0x522)]?.[_0x301e0c(_0x50e2d0._0x41bc99,0x48d,_0x50e2d0._0x5d9dc5,0x5b8)]??_0x1e3516['serverName']);return _0x3700c6(_0x1e3516[_0x1cf5bd(_0x50e2d0._0x1702e4,0x324,_0x50e2d0._0x238af8,0x121)],_0x3409e5+'.json');}async function readStore(_0x628ea2){const _0x5403bb={_0x5572fd:0x3dd,_0x15a1a0:0x235,_0x2b6843:0x39b,_0x2f620b:0x3f5,_0x26004e:0x336,_0x3f6d7a:0x2de,_0x5df5c7:0x1da,_0xf3be01:0x461,_0x31d356:0x361},_0x1fd007={_0xefbe61:0x1c5,_0x290b4e:0x412,_0xe6c99c:0xdf},_0x98df24={_0x4ee358:0x63};function _0x905454(_0x3c09a0,_0xbf4c79,_0x26f1c4,_0xfad96e){return _0x29bb69(_0x3c09a0-_0x98df24._0x4ee358,_0xfad96e-0x37c,_0x26f1c4,_0xfad96e-0x162);}function _0x14c3c9(_0x425fa6,_0x32ed5f,_0x1ee2d5,_0x4606ec){return _0x29bb69(_0x425fa6-_0x1fd007._0xefbe61,_0x1ee2d5-_0x1fd007._0x290b4e,_0x425fa6,_0x4606ec-_0x1fd007._0xe6c99c);}try{return JSON[_0x905454(_0x5403bb._0x5572fd,_0x5403bb._0x15a1a0,_0x5403bb._0x2b6843,0x357)](await _0x8d1d0(_0x628ea2,_0x905454(0x377,_0x5403bb._0x2f620b,_0x5403bb._0x26004e,_0x5403bb._0x3f6d7a)));}catch(_0x25a251){if(_0x25a251 instanceof Error&&'code'in _0x25a251&&_0x25a251['code']===_0x905454(_0x5403bb._0x5df5c7,_0x5403bb._0xf3be01,_0x5403bb._0x31d356,0x315))return{};throw _0x25a251;}}async function writeStore(_0x146e58,_0x532ed9){const _0x59381d={_0x1f67a5:0x4c4},_0x10522d={_0x2ff38c:0x4c3,_0xd9b1c2:0x1a1},_0x37fcb1={_0x596fc2:0x11a,_0x53243c:0x57f,_0x2cb14a:0x9};function _0x5b5a17(_0x4b3b5c,_0x34a3ca,_0x4783ac,_0x396129){return _0x29bb69(_0x4b3b5c-_0x37fcb1._0x596fc2,_0x396129-_0x37fcb1._0x53243c,_0x4783ac,_0x396129-_0x37fcb1._0x2cb14a);}await _0x406012(_0x3700c6(_0x146e58,'..'),{'recursive':!![]});function _0x29c639(_0x11cdcb,_0x1277b0,_0x399c56,_0x5cd8e0){return _0x567203(_0x11cdcb,_0x1277b0-0x81,_0x1277b0-_0x10522d._0x2ff38c,_0x5cd8e0-_0x10522d._0xd9b1c2);}await _0x4bb16a(_0x146e58,JSON[_0x5b5a17(0x54c,_0x59381d._0x1f67a5,0x317,0x426)](_0x532ed9,null,0x2),_0x29c639(0x591,0x559,0x542,0x5f3));}async function updateStore(_0x10aaa0,_0x7d9821){const _0x58bb97=await readStore(_0x10aaa0);_0x7d9821(_0x58bb97),await writeStore(_0x10aaa0,_0x58bb97);}function createMcpOAuthProvider(_0x3d4762){const _0x144e7a={_0xba9813:0x6ef,_0x4495de:0x22f,_0x1a6abd:0x28c,_0x2fc6c6:0x1b0,_0xcb7485:0x3e6,_0xea6ced:0x3fb,_0x4025d8:0x30a,_0x193a61:0x576,_0x39690d:0x35c,_0x46a15d:0x2d2,_0x776a46:0x203,_0xb677bf:0x345,_0xe2fe39:0x49c,_0x39eeab:0x3b8},_0x1d6aa6={_0x2adc1e:0x3b7,_0x1a6a5b:0x360},_0x51a475={_0x27f92a:0x14d,_0x3e9656:0x1dc,_0x318404:0xf,_0x288016:0x2ad,_0x2bc2ec:0x156,_0x3a88af:0x349,_0x14ffe2:0x4b3,_0x1b3c1c:0x45b,_0x1c7ced:0x36c,_0x3f2de5:0x382,_0x1f9b35:0x26d,_0x49f35b:0x333,_0x507bee:0x30c,_0x111c64:0x326,_0x3eee2e:0xcf,_0x599f76:0xbd,_0x259ad3:0x3a1,_0x2acd50:0x4e9,_0x21176c:0x480,_0x2a4856:0x3d9,_0x108299:0x1dc,_0x3023e4:0x32,_0x3f7304:0xa5,_0x513534:0x30,_0x2611c3:0x86,_0x3c70a4:0x3d0,_0x48de16:0x444,_0x556031:0x4f7},_0x4ed6fb={_0x4e93d5:0x337,_0x5a9fd2:0x4c9},_0x534b56={_0x26700a:0x2b,_0x37f49f:0x124,_0x34db71:0x41},_0x477f04={_0x1cd0c2:0x6b9,_0x355ecd:0x762},_0x541779={_0x3d15bd:0x4bb,_0x1de317:0x4aa},_0xe1311={_0xfc0c30:0x687,_0x4fa323:0x687},_0x35f8f7={_0x5c4eae:0xf3,_0x3beaff:0x126},_0x290cfc={_0x1a876b:0x125},_0x51529f={_0x4ff50e:0x64,_0xb90f76:0x186},_0x3c22be={_0x59f00a:0x469},_0x15543f=storagePath(_0x3d4762);function _0x44102e(_0x2e5b89,_0x336aea,_0x2384c8,_0x32e178){return _0x29bb69(_0x2e5b89-0x16e,_0x32e178-0x295,_0x2384c8,_0x32e178-0x4e);}function _0x2f560(_0x24d1bd,_0x460143,_0x36d34d,_0x3da7b1){return _0x567203(_0x36d34d,_0x460143-0x1c9,_0x3da7b1-_0x3c22be._0x59f00a,_0x3da7b1-0x12b);}const _0xba05de=_0x3d4762[_0x2f560(0x4bf,_0x144e7a._0xba9813,0x58c,0x5a9)][_0x44102e(0x24a,_0x144e7a._0x4495de,_0x144e7a._0x1a6abd,_0x144e7a._0x2fc6c6)]?.[_0x44102e(_0x144e7a._0xcb7485,_0x144e7a._0xea6ced,0x3cd,_0x144e7a._0x4025d8)]?.[_0x2f560(0x46c,0x5d6,_0x144e7a._0x193a61,0x597)]('\x20'),_0x250db2={'client_name':_0x44102e(0x1ff,0x3bd,_0x144e7a._0x39690d,0x272),'redirect_uris':[_0x3d4762['callbackUrl']],'grant_types':[_0x44102e(_0x144e7a._0x46a15d,0x11b,0x28b,_0x144e7a._0x776a46),'refresh_token'],'response_types':[_0x44102e(0x4e9,0x463,_0x144e7a._0xb677bf,0x3d1)],'token_endpoint_auth_method':_0x2f560(_0x144e7a._0xe2fe39,0x46e,0x48c,0x4fa),..._0xba05de?{'scope':_0xba05de}:{}};return{'clientMetadataUrl':_0x3d4762[_0x44102e(_0x144e7a._0x39eeab,0x3b1,0x2dd,0x2a1)]['oauth']?.['clientMetadataUrl'],get 'redirectUrl'(){function _0x44c7bc(_0x50a51e,_0x5b0589,_0x3d0c7b,_0x52a1b2){return _0x44102e(_0x50a51e-0xd6,_0x5b0589-_0x51529f._0x4ff50e,_0x52a1b2,_0x5b0589-_0x51529f._0xb90f76);}return _0x3d4762[_0x44c7bc(0x47a,0x39e,0x2b7,0x39c)];},get 'clientMetadata'(){return _0x250db2;},async 'state'(){const _0x63a8bc=await readStore(_0x15543f);if(_0x63a8bc['state'])return _0x63a8bc['state'];const _0x5583c5=randomUUID();return await updateStore(_0x15543f,_0x1719f8=>{_0x1719f8['state']=_0x5583c5;}),_0x5583c5;},async 'clientInformation'(){return(await readStore(_0x15543f))['clientInformation'];},async 'saveClientInformation'(_0x46857c){const _0x399311={_0xf0eba4:0x178};await updateStore(_0x15543f,_0x2c7173=>{const _0x208566={_0x5269a6:0x26c};function _0x223c1d(_0x1aaa8b,_0x2b7632,_0xee826d,_0xc41697){return _0x1e3a(_0xee826d- -_0x208566._0x5269a6,_0xc41697);}_0x2c7173[_0x223c1d(_0x399311._0xf0eba4,0x87,0x163,0x231)]=_0x46857c;});},async 'tokens'(){function _0x995cf2(_0x53efd3,_0x5e67e2,_0x3f1b17,_0x143547){return _0x2f560(_0x53efd3-_0x290cfc._0x1a876b,_0x5e67e2-0x1a6,_0x3f1b17,_0x53efd3- -0x55a);}return(await readStore(_0x15543f))[_0x995cf2(0xce,_0x35f8f7._0x5c4eae,_0x35f8f7._0x3beaff,0x18f)];},async 'saveTokens'(_0x3b8705){await updateStore(_0x15543f,_0x2c5c02=>{const _0xa9e769={_0x299914:0x2c9};function _0x3ec2cd(_0x4cf344,_0x278360,_0x3f04f8,_0x3300af){return _0x1e3a(_0x4cf344-_0xa9e769._0x299914,_0x3300af);}_0x2c5c02[_0x3ec2cd(_0xe1311._0xfc0c30,0x5e7,0x65c,_0xe1311._0x4fa323)]=_0x3b8705;});},async 'redirectToAuthorization'(_0x34bffc){const _0x5cb29c={_0x30ba62:0x198};function _0x1bdcb7(_0x497d71,_0x5b9873,_0x94c6c2,_0x1354c1){return _0x2f560(_0x497d71-0x88,_0x5b9873-_0x5cb29c._0x30ba62,_0x94c6c2,_0x497d71- -0x1c5);}await _0x3d4762[_0x1bdcb7(_0x541779._0x3d15bd,0x58b,0x3c8,_0x541779._0x1de317)](_0x34bffc);},async 'saveCodeVerifier'(_0x21c998){await updateStore(_0x15543f,_0x1bddb6=>{function _0x168ab1(_0x59ec11,_0x4747ea,_0x3b4e20,_0x358339){return _0x1e3a(_0x4747ea-0x2c3,_0x358339);}_0x1bddb6[_0x168ab1(_0x477f04._0x1cd0c2,0x6c8,_0x477f04._0x355ecd,0x815)]=_0x21c998;});},async 'codeVerifier'(){const _0x2628a2=(await readStore(_0x15543f))['codeVerifier'];function _0x3a375d(_0x2d1975,_0x3c6270,_0x30f201,_0x52baf1){return _0x2f560(_0x2d1975-_0x534b56._0x26700a,_0x3c6270-_0x534b56._0x37f49f,_0x2d1975,_0x52baf1- -_0x534b56._0x34db71);}if(!_0x2628a2)throw new Error(_0x3a375d(_0x4ed6fb._0x4e93d5,0x48b,_0x4ed6fb._0x5a9fd2,0x453));return _0x2628a2;},async 'invalidateCredentials'(_0x11a027){const _0x37fe66={_0x1166f0:0xe4};await updateStore(_0x15543f,_0x5c7143=>{const _0x2dea49={_0xa1d541:0x151};(_0x11a027===_0x568270(_0x51a475._0x27f92a,0xf9,_0x51a475._0x3e9656,_0x51a475._0x318404)||_0x11a027===_0x568270(_0x51a475._0x288016,_0x51a475._0x2bc2ec,_0x51a475._0x3a88af,0x251))&&(_0x5c7143[_0xabc67d(0x473,0x404,0x444,_0x51a475._0x14ffe2)]=void 0x0);function _0xabc67d(_0x52394f,_0x4c295f,_0x347df,_0x2765a8){return _0x1e3a(_0x2765a8-_0x37fe66._0x1166f0,_0x52394f);}function _0x568270(_0x12d5c4,_0x1a0ac9,_0x5a33ac,_0x582314){return _0x1e3a(_0x12d5c4- -_0x2dea49._0xa1d541,_0x5a33ac);}(_0x11a027===_0xabc67d(0x3d7,_0x51a475._0x1b3c1c,_0x51a475._0x1c7ced,_0x51a475._0x3f2de5)||_0x11a027==='tokens')&&(_0x5c7143[_0x568270(_0x51a475._0x1f9b35,_0x51a475._0x49f35b,_0x51a475._0x507bee,_0x51a475._0x111c64)]=void 0x0),(_0x11a027===_0x568270(0x14d,0x1b4,_0x51a475._0x3eee2e,_0x51a475._0x599f76)||_0x11a027===_0x568270(0xbf,-0x53,0x38,0x102))&&(_0x5c7143[_0xabc67d(0x423,0x4a5,_0x51a475._0x259ad3,_0x51a475._0x2acd50)]=void 0x0,_0x5c7143[_0xabc67d(_0x51a475._0x21176c,_0x51a475._0x2a4856,0x3e5,0x4b5)]=void 0x0),(_0x11a027===_0x568270(_0x51a475._0x27f92a,0x26,_0x51a475._0x108299,_0x51a475._0x3023e4)||_0x11a027===_0x568270(_0x51a475._0x3f7304,0x185,_0x51a475._0x513534,-_0x51a475._0x2611c3))&&(_0x5c7143[_0xabc67d(0x55b,_0x51a475._0x3c70a4,_0x51a475._0x48de16,_0x51a475._0x556031)]=void 0x0);});},async 'saveDiscoveryState'(_0x4c0765){await updateStore(_0x15543f,_0x8bb862=>{function _0xde55f4(_0x1e1763,_0x56ea7d,_0x4074a5,_0x37c422){return _0x1e3a(_0x4074a5- -0xe0,_0x56ea7d);}_0x8bb862[_0xde55f4(0x2ae,0x2eb,0x333,0x202)]=_0x4c0765;});},async 'discoveryState'(){const _0x4cc570={_0x22e97e:0x112,_0x5b4867:0x31d};function _0x564f12(_0x1c7369,_0x5607f4,_0x3ac202,_0x37ec77){return _0x2f560(_0x1c7369-_0x4cc570._0x22e97e,_0x5607f4-0xf8,_0x1c7369,_0x3ac202- -_0x4cc570._0x5b4867);}return(await readStore(_0x15543f))[_0x564f12(0x412,_0x1d6aa6._0x2adc1e,_0x1d6aa6._0x1a6a5b,0x47b)];}};}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(_0x28949a,_0x20c360){const _0x85ede6={_0xc63b0f:0x9c,_0x1debba:0x1b7,_0x4ba84f:0xf1},_0x3628c4={_0xefe0b2:0x130,_0x5e6b00:0x520,_0x3b2775:0xfc},_0x20e638=_0x4dafdc=>_0x4dafdc[_0x48f518(0x1f0,0x29b,0x309,0x309)](/[^a-zA-Z0-9_]+/g,'_')[_0x48f518(0x2e0,0x29b,0x3b3,0x1fc)](/^_+|_+$/g,'');function _0x48f518(_0x932604,_0xf1205,_0x24dc40,_0x312558){return _0x29bb69(_0x932604-0x10e,_0xf1205-0x2e6,_0x312558,_0x312558-0x19c);}function _0x54a7d8(_0x376f31,_0x2ee45b,_0x7688f1,_0x19eb83){return _0x567203(_0x7688f1,_0x2ee45b-_0x3628c4._0xefe0b2,_0x2ee45b-_0x3628c4._0x5e6b00,_0x19eb83-_0x3628c4._0x3b2775);}return _0x48f518(_0x85ede6._0xc63b0f,_0x85ede6._0x1debba,_0x85ede6._0x4ba84f,0x212)+_0x20e638(_0x28949a)+'_'+_0x20e638(_0x20c360);}function isObject(_0x41f723){const _0x3ebc45={_0x4af872:0x339,_0x3f3f39:0x599},_0x32d0a1={_0x58c756:0x2d8},_0x17bf68={_0x166dce:0x11c,_0x4459f1:0x55d};function _0xf94976(_0x50e5c9,_0x14332b,_0x1a199a,_0x39b0e4){return _0x567203(_0x1a199a,_0x14332b-_0x17bf68._0x166dce,_0x14332b-_0x17bf68._0x4459f1,_0x39b0e4-0x115);}function _0x44c1f1(_0x36b1c0,_0x39174a,_0x555e54,_0x3b6172){return _0x567203(_0x555e54,_0x39174a-0xb4,_0x36b1c0-_0x32d0a1._0x58c756,_0x3b6172-0x163);}return typeof _0x41f723===_0xf94976(0x7a7,0x775,0x837,0x641)&&_0x41f723!==null&&!Array[_0x44c1f1(0x449,0x420,_0x3ebc45._0x4af872,_0x3ebc45._0x3f3f39)](_0x41f723);}function toSupportedSchema(_0xb394e0){const _0x6bedda={_0x5ca100:0x10e,_0x1761e5:0x2a,_0x487bee:0x23b,_0xf18b64:0xf3,_0x6d6401:0xbd,_0x18de31:0x94,_0x2e5c65:0x45,_0x33ac37:0xf5,_0x2f0098:0xc4,_0x3b6466:0x149,_0x4ee8a4:0x132,_0x5828c5:0xfc,_0x543eaf:0x263,_0x59820b:0x1e6,_0x157997:0x10b,_0x15d28b:0xcc,_0x4b24de:0x38,_0xf07426:0x68,_0x5a4236:0x222,_0x95125b:0x3e,_0xd6893:0x115,_0x52688b:0x17c,_0x599dc3:0x1b3,_0x349a83:0x32,_0x22a715:0x52,_0x2f1994:0xa4},_0x532694={_0x51fdcf:0x92};if(!isObject(_0xb394e0))return void 0x0;if(_0xb394e0[_0x5ca514(-0x1bf,-_0x6bedda._0x5ca100,_0x6bedda._0x1761e5,-_0x6bedda._0x487bee)]===_0x3401de(0x5e,_0x6bedda._0xf18b64,-_0x6bedda._0x6d6401,0x6b))return{'type':'string'};if(_0xb394e0[_0x5ca514(-_0x6bedda._0x18de31,-0x10e,-0x1b1,-0x1ee)]===_0x3401de(0x149,0x197,0x104,0x228)||_0xb394e0[_0x3401de(0x65,-_0x6bedda._0x2e5c65,_0x6bedda._0x33ac37,0xe0)]===_0x3401de(_0x6bedda._0x2f0098,-0x52,0x1,0xa1))return{'type':_0x3401de(_0x6bedda._0x3b6466,_0x6bedda._0x4ee8a4,_0x6bedda._0x5828c5,0x27e)};if(_0xb394e0[_0x5ca514(-_0x6bedda._0x543eaf,-0x10e,-_0x6bedda._0x59820b,-0x12a)]===_0x5ca514(-0x81,-_0x6bedda._0x157997,-_0x6bedda._0x15d28b,-_0x6bedda._0x4b24de))return{'type':_0x3401de(_0x6bedda._0xf07426,0x116,-0xa8,0x15a)};function _0x3401de(_0x1d3fde,_0x251305,_0x4b1663,_0x567f0d){return _0x29bb69(_0x1d3fde-0x6b,_0x1d3fde-0xe1,_0x4b1663,_0x567f0d-0x2c);}function _0x5ca514(_0x3e44d5,_0x35c983,_0x304a54,_0x5ec7bd){return _0x29bb69(_0x3e44d5-0xef,_0x35c983- -_0x532694._0x51fdcf,_0x304a54,_0x5ec7bd-0x1e7);}if(_0xb394e0['type']===_0x5ca514(-0x7b,-0x9d,-0x126,-0x6a))return{'type':_0x3401de(0xd6,_0x6bedda._0x5a4236,0x141,-_0x6bedda._0x95125b),'items':toSupportedSchema(_0xb394e0[_0x5ca514(-0x182,-0x181,-0x223,-0x4f)])??{'type':_0x5ca514(0xb,-_0x6bedda._0xd6893,-0xe2,-_0x6bedda._0x52688b)}};if(_0xb394e0[_0x5ca514(-0x1a2,-0x10e,-_0x6bedda._0x599dc3,_0x6bedda._0x349a83)]===_0x5ca514(0xaf,_0x6bedda._0x22a715,0xf1,_0x6bedda._0x2f1994))return toNuvinToolSchema(_0xb394e0);return void 0x0;}function toNuvinToolSchema(_0x49a12a){const _0x4fe8e9={_0x175a09:0x5d1,_0x36b251:0x461,_0x5da708:0x543,_0x4d1c66:0x734,_0x555bb9:0x69a,_0x1a49d5:0x363,_0x1b1d85:0x470,_0x1a682c:0x6a6,_0x8ea043:0x614,_0x5c8004:0x776,_0x28a21c:0x872,_0x531f84:0x721,_0x2ccc7e:0x7c1,_0x234040:0x537,_0x3467ba:0x43b,_0x3a4d62:0x546,_0x21878c:0x3f6,_0x4ab9ea:0x471,_0x404b85:0x67e,_0x3659ba:0x676},_0x156c24={_0x35597a:0xd7,_0x510294:0x51c,_0x5814d7:0x2d},_0x4159fc={_0x51be7c:0x14d,_0xb822a5:0x1a3};if(!isObject(_0x49a12a)||_0x49a12a[_0x1a8115(_0x4fe8e9._0x175a09,_0x4fe8e9._0x36b251,_0x4fe8e9._0x5da708,0x4c2)]!==_0x483a74(_0x4fe8e9._0x4d1c66,_0x4fe8e9._0x555bb9,0x722,0x778))return{'type':_0x483a74(0x734,0x6c5,0x678,0x71e),'properties':{}};const _0x3198d9={};function _0x1a8115(_0x38027d,_0x416490,_0x41c8c2,_0x17fd9b){return _0x567203(_0x17fd9b,_0x416490-_0x4159fc._0x51be7c,_0x41c8c2-0x48b,_0x17fd9b-_0x4159fc._0xb822a5);}function _0x483a74(_0x32a1be,_0x14ae2a,_0x30590b,_0x462188){return _0x567203(_0x30590b,_0x14ae2a-_0x156c24._0x35597a,_0x32a1be-_0x156c24._0x510294,_0x462188-_0x156c24._0x5814d7);}const _0x159c22=isObject(_0x49a12a[_0x1a8115(0x4b8,_0x4fe8e9._0x1a49d5,_0x4fe8e9._0x1b1d85,0x43c)])?_0x49a12a['properties']:{};for(const [_0x1caf00,_0x5849e3]of Object[_0x483a74(_0x4fe8e9._0x1a682c,_0x4fe8e9._0x8ea043,0x6d1,0x7f4)](_0x159c22)){const _0x17ffab=toSupportedSchema(_0x5849e3);if(_0x17ffab)_0x3198d9[_0x1caf00]=_0x17ffab;}const _0x4ec0f3=Array['isArray'](_0x49a12a['required'])?_0x49a12a[_0x483a74(_0x4fe8e9._0x5c8004,_0x4fe8e9._0x28a21c,_0x4fe8e9._0x531f84,_0x4fe8e9._0x2ccc7e)][_0x483a74(_0x4fe8e9._0x234040,0x514,0x492,_0x4fe8e9._0x3467ba)](_0x587810=>typeof _0x587810===_0x1a8115(0x49c,0x4be,0x53c,0x60b)):void 0x0;return _0x4ec0f3?.[_0x1a8115(_0x4fe8e9._0x3a4d62,_0x4fe8e9._0x21878c,_0x4fe8e9._0x4ab9ea,0x3cc)]?{'type':_0x483a74(0x734,0x83d,_0x4fe8e9._0x404b85,_0x4fe8e9._0x3659ba),'properties':_0x3198d9,'required':_0x4ec0f3}:{'type':'object','properties':_0x3198d9};}function isJsonObject(_0x2d6fa2){return typeof _0x2d6fa2==='object'&&_0x2d6fa2!==null&&!Array['isArray'](_0x2d6fa2);}function formatMcpContent(_0x4ca263){const _0x5eb59d={_0x2f3d4a:0x759,_0x584586:0x630,_0x2c5479:0x577,_0x1d2e70:0x61c},_0x2e8335={_0x19145c:0x1c,_0x8e08e:0x69},_0x3a2169={_0x18af73:0x6b},_0x3497f8={_0x3776b3:0x3e6,_0x48bb41:0x2cb,_0x52d9c3:0x455,_0x340efb:0x33c,_0x1d2a35:0x301,_0x336b50:0x2b1,_0x26a343:0x2f3,_0x38ab2a:0x200,_0x2df43b:0x41b,_0x5cc22b:0xaf},_0x17823b={_0x489dd1:0x120},_0x444918={_0x32dacf:0x42e},_0x5875ee=Array['isArray'](_0x4ca263[_0x128c62(_0x5eb59d._0x2f3d4a,0x61e,0x523,0x4d7)])?_0x4ca263['content']:[],_0x3dd382=_0x5875ee['map'](_0x3679b1=>{if(!isObject(_0x3679b1))return'';function _0x5153df(_0x58acc9,_0x2d1b2c,_0x5a47f0,_0x27d133){return _0x128c62(_0x58acc9-0x1de,_0x58acc9- -_0x444918._0x32dacf,_0x27d133,_0x27d133-0x1eb);}function _0x45e6ca(_0x112871,_0x475de8,_0x370099,_0x119878){return _0x128c62(_0x112871-0x1b8,_0x112871- -0x1f0,_0x475de8,_0x119878-_0x17823b._0x489dd1);}if(_0x3679b1[_0x45e6ca(0x3ca,_0x3497f8._0x3776b3,0x4b3,_0x3497f8._0x48bb41)]===_0x45e6ca(0x531,_0x3497f8._0x52d9c3,0x3e5,0x469)&&typeof _0x3679b1[_0x5153df(0x2f3,0x3b1,0x2fe,_0x3497f8._0x340efb)]===_0x45e6ca(0x3c3,_0x3497f8._0x1d2a35,0x46d,_0x3497f8._0x336b50))return _0x3679b1[_0x5153df(_0x3497f8._0x26a343,_0x3497f8._0x38ab2a,0x19d,_0x3497f8._0x2df43b)];return JSON[_0x5153df(_0x3497f8._0x5cc22b,0x138,0x1c5,0x190)](_0x3679b1);})['filter'](_0x3b42d1=>_0x3b42d1['length']>0x0)[_0x128c62(0x6a5,_0x5eb59d._0x584586,0x635,_0x5eb59d._0x2c5479)]('\x0a');function _0x128c62(_0x27522d,_0xb9220f,_0x3e396b,_0x48c940){return _0x567203(_0x3e396b,_0xb9220f-_0x3a2169._0x18af73,_0xb9220f-0x502,_0x48c940-0x15);}if(_0x3dd382[_0x128c62(_0x5eb59d._0x1d2e70,0x4e8,0x593,0x457)]>0x0)return _0x3dd382;function _0x3fe2ed(_0x20842c,_0x4a4e12,_0x535604,_0x3921c2){return _0x567203(_0x20842c,_0x4a4e12-_0x2e8335._0x19145c,_0x535604- -0x44,_0x3921c2-_0x2e8335._0x8e08e);}return JSON['stringify'](_0x4ca263,null,0x2);}function createMcpTool(_0xd57e33){const _0x220003={_0x76ca21:0x90,_0xd7d61f:0x6c,_0x4ed877:0x9d,_0x578fab:0x1a8,_0x3cea63:0x3,_0x17d0bd:0xe5,_0x498b66:0x177,_0x22a548:0x16c,_0x3ef12e:0xf7,_0x288457:0x12e,_0x5e5ad3:0x241,_0x219799:0x2c2,_0x3ad038:0x35e,_0x13483a:0x340,_0x51b323:0x3,_0x3ba9fd:0x10f},_0x265a22={_0x5c4b14:0x198,_0x110079:0x23e,_0x4ffd72:0x28c,_0x27f166:0x1a4,_0x5725ef:0x102,_0x544e43:0x1a9,_0x42ba07:0xdd,_0x380544:0xb3,_0x291f36:0x1c8,_0x58193b:0xe9,_0x36f46b:0x305,_0x1d232e:0x1e9,_0x374a3e:0x30a,_0x35f1fe:0x83,_0x1427fc:0x1ac,_0x5cdbb4:0x90,_0x2cefde:0x1a4,_0x210c7e:0x2d0},_0x166fc0={_0x502736:0x162,_0x235987:0x5e},_0x3d63b3={_0x385b8e:0x198,_0x537a98:0x169};function _0x5a2962(_0x27a44e,_0x4a60ae,_0x54d95b,_0x33b769){return _0x567203(_0x54d95b,_0x4a60ae-0x5a,_0x4a60ae- -0x6b,_0x33b769-0xd5);}function _0xd400ee(_0x318ce1,_0x561a05,_0x2ba6cf,_0x10ace3){return _0x29bb69(_0x318ce1-_0x3d63b3._0x385b8e,_0x561a05-_0x3d63b3._0x537a98,_0x2ba6cf,_0x10ace3-0x1c4);}const _0x542423=createMcpToolName(_0xd57e33[_0xd400ee(_0x220003._0x76ca21,0x24,0xad,_0x220003._0xd7d61f)],_0xd57e33[_0x5a2962(-0xf5,-_0x220003._0x4ed877,-_0x220003._0x578fab,0xf)]['name']);return defineTool({'name':_0x542423,'description':_0xd57e33[_0xd400ee(-0x113,_0x220003._0x3cea63,0x38,-_0x220003._0x17d0bd)][_0xd400ee(0x161,0x5f,-0x84,_0x220003._0x498b66)]??_0x5a2962(_0x220003._0x22a548,0x8d,_0x220003._0x3ef12e,0x148)+_0xd57e33[_0xd400ee(_0x220003._0x288457,0x3,0x2e,0x137)][_0x5a2962(_0x220003._0x5e5ad3,0x1ab,0x1f4,_0x220003._0x219799)]+_0xd400ee(_0x220003._0x3ad038,0x2a8,0x250,_0x220003._0x13483a)+_0xd57e33[_0x5a2962(-0x19b,-0x7c,-0x1b7,-0xa2)],'inputSchema':toNuvinToolSchema(_0xd57e33[_0xd400ee(0x16,_0x220003._0x51b323,-_0x220003._0x3ba9fd,0x111)]['inputSchema']),async *'execute'(_0x4141ea){const _0x5456ea={_0xe64056:0x5d,_0xb8b8dd:0x14c,_0x16e4d9:0x11d};function _0x1f7802(_0x44c4b1,_0x3a58b0,_0x32b55f,_0x198237){return _0xd400ee(_0x44c4b1-_0x166fc0._0x502736,_0x44c4b1- -0xa7,_0x3a58b0,_0x198237-_0x166fc0._0x235987);}const _0x1abcd7=await _0xd57e33[_0x5a96a9(0x3c,0x11b,0x48,_0x265a22._0x5c4b14)][_0x1f7802(0x202,_0x265a22._0x110079,0x25a,_0x265a22._0x4ffd72)]({'name':_0xd57e33['tool'][_0x1f7802(_0x265a22._0x27f166,0x19f,0x29e,0x100)],'arguments':isJsonObject(_0x4141ea)?_0x4141ea:{}});if(_0x1abcd7[_0x5a96a9(-0x142,-_0x265a22._0x5725ef,-_0x265a22._0x544e43,-_0x265a22._0x42ba07)])throw new ToolExecutionError(formatMcpContent(_0x1abcd7),{'serverName':_0xd57e33[_0x5a96a9(-0x1a9,-_0x265a22._0x380544,-_0x265a22._0x291f36,-0x100)],'toolName':_0xd57e33[_0x5a96a9(-_0x265a22._0x58193b,-_0x265a22._0x36f46b,-_0x265a22._0x1d232e,-_0x265a22._0x374a3e)]['name']});yield createToolOutput(formatMcpContent(_0x1abcd7),{'serverName':_0xd57e33[_0x1f7802(-_0x265a22._0x35f1fe,-0x14c,-_0x265a22._0x1427fc,0xb1)],'toolName':_0xd57e33[_0x1f7802(-0xa4,-0x63,0x35,-_0x265a22._0x5cdbb4)][_0x1f7802(_0x265a22._0x2cefde,0x257,0x297,_0x265a22._0x210c7e)],'result':_0x1abcd7});function _0x5a96a9(_0x45a65d,_0x474555,_0x4db2c8,_0x18d312){return _0x5a2962(_0x45a65d-_0x5456ea._0xe64056,_0x4db2c8- -_0x5456ea._0xb8b8dd,_0x45a65d,_0x18d312-_0x5456ea._0x16e4d9);}return void 0x0;}});}function resolvePrefix(_0x34869a,_0x324d0e){const _0x29b561={_0x21f1b7:0x3d8,_0x331b75:0x49d},_0x3907e1={_0x2e1fa1:0x1c2,_0x43a2e0:0x38f,_0x506d83:0x1a5};function _0x4849ba(_0x27bfb8,_0x5bf143,_0x561b9b,_0x2bd30a){return _0x567203(_0x561b9b,_0x5bf143-_0x3907e1._0x2e1fa1,_0x2bd30a-_0x3907e1._0x43a2e0,_0x2bd30a-_0x3907e1._0x506d83);}return _0x324d0e[_0x4849ba(_0x29b561._0x21f1b7,0x546,0x3fc,_0x29b561._0x331b75)]??_0x34869a;}function buildMcpHttpHeaders(_0x3ef493){const _0x23e81b={_0x160867:0x308,_0x344277:0x409,_0x12cc27:0x2ec,_0x41e744:0x3f5,_0x4847f4:0x52a,_0x38604d:0x218,_0xcc141b:0x2ef,_0x262019:0x121,_0x15a6d5:0x1c1,_0x3d0771:0x4b8,_0x46f02e:0x3d3,_0x1221fe:0x3e4,_0x97d5f4:0x1e2,_0xfebc61:0x24c,_0x56e54c:0x330,_0x5a8f50:0x2ad,_0x370678:0x1cc,_0x2611d9:0x1ac,_0x5d136a:0x2f,_0x4aee16:0x1a5},_0x443b1c={_0x1eaccb:0xed,_0x40765c:0x63},_0x3c6795={_0x6b5683:0x93};function _0x1b001f(_0x55633f,_0x21e83f,_0x514095,_0x48eb11){return _0x567203(_0x55633f,_0x21e83f-0x1c9,_0x48eb11-0x16e,_0x48eb11-_0x3c6795._0x6b5683);}function _0x56989c(_0x54b5e1,_0x4b7e52,_0x36d1e7,_0x2acfb1){return _0x567203(_0x2acfb1,_0x4b7e52-_0x443b1c._0x1eaccb,_0x54b5e1-0x160,_0x2acfb1-_0x443b1c._0x40765c);}const _0x50602b={..._0x3ef493[_0x56989c(_0x23e81b._0x160867,_0x23e81b._0x344277,_0x23e81b._0x12cc27,_0x23e81b._0x41e744)]??{}};return _0x3ef493[_0x1b001f(0x2b5,0x454,_0x23e81b._0x4847f4,0x3d3)]?.[_0x56989c(_0x23e81b._0x38604d,0xe3,_0x23e81b._0xcc141b,_0x23e81b._0x262019)]===_0x1b001f(0x143,_0x23e81b._0x15a6d5,0x1a8,0x26c)&&_0x3ef493[_0x1b001f(0x410,0x34f,_0x23e81b._0x3d0771,_0x23e81b._0x46f02e)][_0x1b001f(_0x23e81b._0x1221fe,_0x23e81b._0x97d5f4,_0x23e81b._0xfebc61,_0x23e81b._0x56e54c)]&&_0x50602b[_0x56989c(0x1c3,_0x23e81b._0x5a8f50,_0x23e81b._0x370678,0xc5)]===void 0x0&&(_0x50602b['Authorization']=_0x56989c(_0x23e81b._0x2611d9,0x64,0x106,0x2c2)+_0x3ef493[_0x56989c(0x3c5,0x4a0,0x4fa,0x36f)][_0x1b001f(0x3b7,0x34d,0x3b8,_0x23e81b._0x56e54c)]),Object['keys'](_0x50602b)[_0x56989c(0x146,0x7b,_0x23e81b._0x5d136a,_0x23e81b._0x4aee16)]>0x0?_0x50602b:void 0x0;}function getErrorMessage(_0x7bf6b1){const _0x1c88b8={_0x2f1c68:0x380,_0x5dc607:0x1e4},_0x5e310e={_0x14832b:0xc9,_0x5ca148:0x296,_0x1c3b2b:0x84};function _0x32926a(_0x574291,_0x136ae9,_0x558d68,_0x263e5b){return _0x29bb69(_0x574291-_0x5e310e._0x14832b,_0x574291-_0x5e310e._0x5ca148,_0x263e5b,_0x263e5b-_0x5e310e._0x1c3b2b);}return _0x7bf6b1 instanceof Error?_0x7bf6b1[_0x32926a(0x30c,0x3fb,_0x1c88b8._0x2f1c68,_0x1c88b8._0x5dc607)]:String(_0x7bf6b1);}function isUnauthorizedError(_0x4cc8b3){const _0x2da9d8={_0xf62070:0x38,_0x2d817c:0x15b,_0x4a879b:0x79e,_0x30727f:0x769,_0x47a99e:0x57c,_0x1739bd:0x8c,_0x27db23:0x194},_0x27db5a={_0x5e3737:0xd5,_0x13c1ad:0x177},_0x55c7e2={_0x31d357:0x570};function _0x44495b(_0x2ad901,_0x4d262f,_0x47dd24,_0x3b5c38){return _0x29bb69(_0x2ad901-0xf7,_0x4d262f-_0x55c7e2._0x31d357,_0x47dd24,_0x3b5c38-0x1ac);}function _0x4f9e36(_0x365234,_0x498991,_0x5bf876,_0x52db0e){return _0x29bb69(_0x365234-_0x27db5a._0x5e3737,_0x498991-_0x27db5a._0x13c1ad,_0x5bf876,_0x52db0e-0x11d);}return _0x4cc8b3 instanceof Error&&_0x4cc8b3[_0x4f9e36(_0x2da9d8._0xf62070,0x18e,0x196,_0x2da9d8._0x2d817c)][_0x44495b(_0x2da9d8._0x4a879b,0x652,_0x2da9d8._0x30727f,_0x2da9d8._0x47a99e)]===_0x4f9e36(-0xa7,0x50,_0x2da9d8._0x1739bd,_0x2da9d8._0x27db23);}async function connectMcpServer(_0x3848db,_0x30faa2,_0x1c7879){const _0x5dc2e9={_0x1d0aff:0x692,_0x12e4a1:0x65a,_0x28f24a:0x745,_0x3235f7:0x659,_0x4deb7e:0x7c7,_0x17ff8b:0x494,_0x41610d:0x636,_0x391976:0x691,_0x67929d:0x77f,_0x47f034:0x5bf,_0x430aef:0x61e,_0xdcb628:0x6ab,_0x30246a:0x65e,_0x3fc655:0x734,_0xaaa691:0x577,_0x4f1bf1:0x541,_0x1cf444:0x681,_0x481613:0x5bb,_0x257b86:0x4d8,_0xc081a9:0x52d,_0xdd6c57:0x43f,_0x2e784f:0x50a,_0x2c61a7:0x4d9,_0x497e96:0x697,_0x49b8cd:0x8f6,_0xf90923:0x908,_0x452f8d:0x60c,_0x279f9d:0x5a3,_0x15155b:0x6f8,_0xc4b63c:0x64a,_0x24a437:0x74c,_0x4ce954:0x681,_0x43e81a:0x4ec,_0x3ad46f:0x416,_0x1fd57b:0x82d,_0x293040:0x73c,_0x1574eb:0x6f5,_0x7ea3bf:0x7e6,_0x4728cb:0x691,_0x42061a:0x54f,_0x2f8698:0x61b,_0x91782e:0x5d5,_0x11a3bb:0x61d,_0x45efb4:0x642,_0x196c7e:0x65e,_0x19d9b3:0x48c,_0x392b0f:0x3a2,_0x15a8eb:0x64e,_0x5f1853:0x70b,_0x5337c6:0x431,_0x2d8de5:0x585,_0x58401c:0x71f,_0x48d500:0x50f,_0x18752b:0x4c7,_0x168eb5:0x61c},_0x44a219={_0x20b320:0x532,_0x116824:0x367,_0x86f070:0x42a},_0x35ae62={_0x1dc9b3:0x437,_0xd7117e:0x45,_0x3cc7d3:0x135},_0x16ad86={_0x54d0aa:0x8d,_0x460cfd:0x37},_0x5650b9={_0x5ba542:0xc9,_0x569cf4:0x64a},_0x3de438={_0xf21018:0x8,_0x20b9bb:0x158},_0x214a27={_0x595fef:0x100,_0x5aa29d:0x1ef,_0x55ad99:0x253,_0x2d8ae3:0x190},_0x2867c7={_0x55cb92:0x4cb},_0x338887={_0x574a3e:0x11d,_0x6cda07:0x554,_0x8373d3:0x197};function _0x23c435(_0x2d620b,_0x376bb9,_0x565397,_0x19a7ba){return _0x567203(_0x376bb9,_0x376bb9-_0x338887._0x574a3e,_0x19a7ba-_0x338887._0x6cda07,_0x19a7ba-_0x338887._0x8373d3);}const _0x228037=new Client({'name':'nuvin','version':_0x23c435(_0x5dc2e9._0x1d0aff,_0x5dc2e9._0x12e4a1,_0x5dc2e9._0x28f24a,_0x5dc2e9._0x3235f7)});_0x228037['onerror']=_0x5e925a=>{const _0x10a07b={_0x25b6a4:0x19e,_0x101519:0xb3,_0xe72245:0x53e};function _0x3a99f0(_0x352437,_0x4860c4,_0x3cdd8d,_0x236b8c){return _0x23c435(_0x352437-0x65,_0x3cdd8d,_0x3cdd8d-0x16d,_0x236b8c- -_0x2867c7._0x55cb92);}function _0x1bfcbd(_0x578bca,_0x2a77c6,_0x29d075,_0x2677c2){return _0x23c435(_0x578bca-_0x10a07b._0x25b6a4,_0x2677c2,_0x29d075-_0x10a07b._0x101519,_0x29d075- -_0x10a07b._0xe72245);}console[_0x1bfcbd(-0x6e,-_0x214a27._0x595fef,0x29,-0x7e)](_0x3a99f0(_0x214a27._0x5aa29d,0x251,_0x214a27._0x55ad99,_0x214a27._0x2d8ae3)+_0x3848db+']\x20transport\x20error:',_0x5e925a['message']);};function _0x3dd92b(_0x301852,_0x453af6,_0x88eef,_0x2bfbe7){return _0x29bb69(_0x301852-_0x3de438._0xf21018,_0x453af6-0x5bd,_0x88eef,_0x2bfbe7-_0x3de438._0x20b9bb);}if(_0x30faa2[_0x23c435(0x6b6,_0x5dc2e9._0x4deb7e,0x585,0x6be)]===_0x3dd92b(0x441,_0x5dc2e9._0x17ff8b,0x4f8,0x52b)||_0x30faa2[_0x3dd92b(_0x5dc2e9._0x41610d,_0x5dc2e9._0x391976,_0x5dc2e9._0x67929d,0x666)]){if(!_0x30faa2[_0x3dd92b(_0x5dc2e9._0x47f034,_0x5dc2e9._0x391976,_0x5dc2e9._0x430aef,_0x5dc2e9._0xdcb628)])throw new Error(_0x23c435(0x628,0x77a,0x715,_0x5dc2e9._0x30246a)+_0x3848db+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x30faa2[_0x3dd92b(_0x5dc2e9._0x3fc655,0x6ee,0x6b7,0x5ab)]?.[_0x3dd92b(_0x5dc2e9._0xaaa691,_0x5dc2e9._0x4f1bf1,_0x5dc2e9._0x1cf444,0x40e)]===_0x23c435(0x49f,_0x5dc2e9._0x481613,0x47e,0x5a3)&&!_0x1c7879?.[_0x3dd92b(0x525,_0x5dc2e9._0x257b86,0x5c5,_0x5dc2e9._0xc081a9)])throw new Error(_0x3dd92b(_0x5dc2e9._0xdd6c57,0x593,0x619,0x49f)+_0x3848db+_0x3dd92b(0x471,_0x5dc2e9._0x2e784f,_0x5dc2e9._0x2c61a7,0x57e));const _0x143b3a=buildMcpHttpHeaders(_0x30faa2),_0x6ef2b6=_0x30faa2[_0x23c435(_0x5dc2e9._0x497e96,_0x5dc2e9._0x49b8cd,_0x5dc2e9._0xf90923,0x7b9)]?.[_0x23c435(0x66b,0x605,0x4f0,_0x5dc2e9._0x452f8d)]==='oauth'&&_0x1c7879?.[_0x23c435(0x66c,0x552,0x457,_0x5dc2e9._0x279f9d)]?createMcpOAuthProvider({'serverName':_0x3848db,'callbackUrl':_0x1c7879[_0x23c435(0x6fa,_0x5dc2e9._0x15155b,_0x5dc2e9._0xc4b63c,_0x5dc2e9._0x279f9d)][_0x23c435(_0x5dc2e9._0x24a437,_0x5dc2e9._0x4ce954,_0x5dc2e9._0x43e81a,0x60b)],'storageDir':_0x1c7879[_0x3dd92b(0x44c,0x4d8,0x558,_0x5dc2e9._0x3ad46f)][_0x23c435(_0x5dc2e9._0x1fd57b,0x5bd,_0x5dc2e9._0x293040,_0x5dc2e9._0x1574eb)],'config':_0x30faa2[_0x23c435(0x7b7,0x881,0x7bf,0x7b9)],'onRedirect':_0xdff116=>_0x1c7879['oauth']?.[_0x3dd92b(0x666,0x6a0,0x591,0x5b3)](_0x3848db,_0xdff116)}):void 0x0,_0xfd867=new StreamableHTTPClientTransport(new URL(_0x30faa2[_0x3dd92b(_0x5dc2e9._0x7ea3bf,_0x5dc2e9._0x4728cb,_0x5dc2e9._0x42061a,_0x5dc2e9._0x2f8698)]),{'authProvider':_0x6ef2b6,'requestInit':_0x143b3a?{'headers':_0x143b3a}:void 0x0});await _0x228037[_0x3dd92b(0x3e0,0x521,0x504,0x438)](_0xfd867);}else{if(!_0x30faa2['command'])throw new Error(_0x23c435(_0x5dc2e9._0x91782e,_0x5dc2e9._0x11a3bb,_0x5dc2e9._0x45efb4,_0x5dc2e9._0x196c7e)+_0x3848db+_0x3dd92b(0x61f,0x4e4,_0x5dc2e9._0x19d9b3,_0x5dc2e9._0x392b0f));const _0x34207f=new StdioClientTransport({'command':_0x30faa2[_0x3dd92b(_0x5dc2e9._0x15a8eb,0x5be,0x713,_0x5dc2e9._0x5f1853)],'args':_0x30faa2[_0x3dd92b(0x3e1,0x4f6,_0x5dc2e9._0x5337c6,_0x5dc2e9._0x2d8de5)]??[],'env':_0x30faa2[_0x23c435(0x6a3,0x72e,_0x5dc2e9._0x58401c,0x628)],'stderr':_0x23c435(0x5cc,0x794,_0x5dc2e9._0x48d500,0x646)});await _0x228037[_0x23c435(_0x5dc2e9._0x18752b,_0x5dc2e9._0x2f8698,_0x5dc2e9._0x168eb5,0x5ec)](_0x34207f);}return{async 'listTools'(){function _0x7592c0(_0x2a9259,_0x1bf960,_0xaa9d7,_0x3dd801){return _0x3dd92b(_0x2a9259-_0x5650b9._0x5ba542,_0x2a9259- -_0x5650b9._0x569cf4,_0x1bf960,_0x3dd801-0x1b1);}return await _0x228037[_0x7592c0(-_0x16ad86._0x54d0aa,-0xa0,-0x17c,_0x16ad86._0x460cfd)]();},async 'callTool'(_0x35bb3e){const _0x2e322a={_0x3b0a37:0x2cf},_0x51a37f={_0x58cf31:0xa2,_0x318067:0x4ba};function _0x1ec9e5(_0xafca46,_0x2c0c0e,_0x271d55,_0x32ee90){return _0x23c435(_0xafca46-_0x51a37f._0x58cf31,_0x271d55,_0x271d55-0x23,_0x32ee90- -_0x51a37f._0x318067);}function _0x194aac(_0x27a12b,_0x3ea419,_0x5f4daa,_0xbc7ad2){return _0x23c435(_0x27a12b-0xc8,_0x5f4daa,_0x5f4daa-0x1a3,_0x3ea419- -_0x2e322a._0x3b0a37);}return await _0x228037[_0x194aac(_0x35ae62._0x1dc9b3,0x473,0x3d1,0x519)]({'method':_0x1ec9e5(-_0x35ae62._0xd7117e,0x48,_0x35ae62._0x3cc7d3,0xfc),'params':_0x35bb3e},CallToolResultSchema);},async 'close'(){function _0x20c99b(_0x52b675,_0x14818b,_0x456b5d,_0x429c1b){return _0x23c435(_0x52b675-0x74,_0x456b5d,_0x456b5d-0xae,_0x429c1b- -0x1ee);}await _0x228037[_0x20c99b(_0x44a219._0x20b320,_0x44a219._0x116824,_0x44a219._0x86f070,0x48d)]();}};}async function createMcpToolsFromServers(_0x3c0d16){const _0x37040c={_0xe99c27:0x4b8,_0xb9b2b6:0x3f6,_0x5cc6a0:0x2d0,_0x33ce43:0x513,_0x3ef58c:0x612,_0x11e08a:0x677,_0x233548:0x454,_0x4bbb2d:0x573,_0x3fd273:0x45f,_0x2499cd:0x36d,_0x4e5f0a:0x2ae,_0x18a9e6:0x5c6,_0x35bcf1:0x6b1,_0x3c260c:0x50d,_0x342f11:0x4c7,_0x2e267b:0x49a,_0x1fd194:0x492,_0x5cd5d8:0x4f8,_0x7f164d:0x439,_0x775ec8:0x5dc,_0x31bade:0x674,_0x40330c:0x716,_0x3e1730:0x590,_0xf8f6e1:0x4f7,_0x63ded2:0x66a,_0x438363:0x6aa,_0x47a6dc:0x5e3,_0x13d62a:0x49b},_0x1d8011={_0x166ebd:0x367,_0x2fb934:0x35f,_0x37510a:0x273},_0x1b9ecb={_0x4d7f41:0x2b4,_0x13dc9e:0x151},_0x4639fd={_0x4f9178:0x8b,_0x839c8b:0x5bc,_0x12ee5e:0x28},_0x2441ec={_0x548891:0x492,_0x5543ee:0x142};function _0x384107(_0x4d3186,_0x4f082b,_0x2c2200,_0x5975b9){return _0x29bb69(_0x4d3186-0xc8,_0x4f082b-_0x2441ec._0x548891,_0x2c2200,_0x5975b9-_0x2441ec._0x5543ee);}const _0x63ee7c=_0x3c0d16[_0x384107(_0x37040c._0xe99c27,_0x37040c._0xb9b2b6,_0x37040c._0x5cc6a0,_0x37040c._0x33ce43)]??connectMcpServer,_0x3380ff=[];function _0xddbd15(_0x3a8f25,_0x326d7e,_0x2a917a,_0x5e53d1){return _0x29bb69(_0x3a8f25-_0x4639fd._0x4f9178,_0x326d7e-_0x4639fd._0x839c8b,_0x5e53d1,_0x5e53d1-_0x4639fd._0x12ee5e);}const _0x3e7165={},_0x1f23c6=[];for(const [_0x15faa3,_0x47df3e]of Object[_0xddbd15(0x4d1,_0x37040c._0x3ef58c,0x5b5,_0x37040c._0x11e08a)](_0x3c0d16[_0x384107(0x39c,_0x37040c._0x233548,_0x37040c._0x4bbb2d,0x40c)]??{})){if(_0x47df3e[_0x384107(0x59e,_0x37040c._0x3fd273,0x395,0x43c)]===![]){_0x3e7165[_0x15faa3]={'status':_0x384107(0x3b0,_0x37040c._0x2499cd,_0x37040c._0x4e5f0a,0x24e)};continue;}try{const _0x31b970=await _0x63ee7c(_0x15faa3,_0x47df3e,_0x3c0d16[_0xddbd15(_0x37040c._0x18a9e6,0x67b,0x63c,_0x37040c._0x35bcf1)]);_0x3380ff[_0x384107(_0x37040c._0x3c260c,0x54a,_0x37040c._0x342f11,_0x37040c._0x2e267b)](_0x31b970);const _0x5ea7f9=await _0x31b970[_0x384107(0x3dd,_0x37040c._0x1fd194,_0x37040c._0x5cd5d8,0x53f)]();let _0x5b9072=0x0;for(const _0x4f863c of _0x5ea7f9['tools']){const _0x5a7eda=_0x3c0d16[_0xddbd15(_0x37040c._0x7f164d,0x56c,0x617,_0x37040c._0x775ec8)]?.[_0x15faa3]?.[_0x4f863c['name']];if(_0x5a7eda===![])continue;_0x5b9072+=0x1,_0x1f23c6[_0xddbd15(0x544,_0x37040c._0x31bade,_0x37040c._0x40330c,_0x37040c._0x3e1730)](createMcpTool({'serverName':resolvePrefix(_0x15faa3,_0x47df3e),'tool':_0x4f863c,'client':_0x31b970}));}_0x3e7165[_0x15faa3]={'status':_0xddbd15(0x505,_0x37040c._0xf8f6e1,0x3df,0x448),'toolCount':_0x5b9072};}catch(_0x1df333){_0x3e7165[_0x15faa3]=isUnauthorizedError(_0x1df333)?{'status':_0xddbd15(0x580,_0x37040c._0x63ded2,0x682,_0x37040c._0x438363),'message':getErrorMessage(_0x1df333)}:{'status':_0xddbd15(_0x37040c._0x47a6dc,_0x37040c._0x13d62a,0x3fc,0x4d0),'message':getErrorMessage(_0x1df333)};}}return{'tools':_0x1f23c6,'servers':_0x3e7165,async 'close'(){const _0x4157e8={_0x4f699c:0x9e,_0x2d2508:0x118,_0x482d91:0x174};function _0x5d6054(_0xa07462,_0x3612a5,_0xa3c661,_0x466c9b){return _0x384107(_0xa07462-_0x4157e8._0x4f699c,_0xa07462- -_0x4157e8._0x2d2508,_0x3612a5,_0x466c9b-_0x4157e8._0x482d91);}function _0x4a6fe(_0x229ddf,_0x3b78c2,_0x4e34a3,_0x379364){return _0xddbd15(_0x229ddf-0xab,_0x379364- -_0x1b9ecb._0x4d7f41,_0x4e34a3-_0x1b9ecb._0x13dc9e,_0x229ddf);}await Promise[_0x4a6fe(0x15d,_0x1d8011._0x166ebd,_0x1d8011._0x2fb934,_0x1d8011._0x37510a)](_0x3380ff['map'](_0x3b4a9e=>_0x3b4a9e[_0x4a6fe(0x1ab,0x3fe,0x2da,0x2fb)]()));}};}function getCommand(_0x5d089a){const _0x494d3f={_0x30a660:0x5b2,_0x5b61eb:0x621,_0x5e4b35:0x6e6,_0x3741ad:0xbb,_0x5033ac:0x151,_0x38111d:0x1fb,_0x4180e2:0x13f,_0xafba15:0xf5,_0x23caf3:0x11b},_0x1a091f={_0x16e06f:0x5aa,_0x242f51:0x5c},_0x1ca5f2={_0x33dd0e:0x8,_0x1c4c28:0x57};function _0x1155c9(_0x13d02e,_0x321057,_0xd2c891,_0x389cd0){return _0x29bb69(_0x13d02e-_0x1ca5f2._0x33dd0e,_0xd2c891-0x13e,_0x13d02e,_0x389cd0-_0x1ca5f2._0x1c4c28);}if(_0x5d089a&&typeof _0x5d089a===_0x467495(0x6dd,0x7bf,0x713,0x68e)&&!Array[_0x467495(_0x494d3f._0x30a660,_0x494d3f._0x5b61eb,_0x494d3f._0x5e4b35,0x5e7)](_0x5d089a)&&typeof _0x5d089a['command']===_0x1155c9(0x39,0x15d,_0x494d3f._0x3741ad,0x1b2))return _0x5d089a[_0x1155c9(_0x494d3f._0x5033ac,_0x494d3f._0x38111d,_0x494d3f._0x4180e2,0x15e)];function _0x467495(_0x3c34fe,_0x6f55be,_0x899dce,_0x458ae1){return _0x29bb69(_0x3c34fe-0x12b,_0x458ae1-_0x1a091f._0x16e06f,_0x899dce,_0x458ae1-_0x1a091f._0x242f51);}return _0x1155c9(0x3d,-0x4c,_0x494d3f._0xafba15,_0x494d3f._0x23caf3);}var MOCK_WORKSPACE_LISTING=[_0x567203(0x13e,0x12a,0x25f,0x341),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0x29bb69(-0x18,-0xa6,-0xb1,0xb),_0x29bb69(-0x150,-0xc6,0x3d,-0xac),'src/agent/agent.ts',_0x29bb69(-0x19,-0xbd,-0x9c,-0x116),_0x567203(0x178,0x7e,0x54,0xe7),_0x567203(0x124,0x9e,0xb0,0x28),_0x567203(0x161,0x239,0x16c,0x259),_0x567203(0x1cd,0x72,0xee,0xa4),_0x29bb69(-0xdf,-0xb0,-0x1dc,-0xc3),_0x567203(0x17f,-0x1e,0x110,0x16),'src/shared/types.ts',_0x29bb69(-0x1e1,-0xd0,-0x18e,-0x222),_0x567203(0x19b,0x161,0x228,0x32c),'src/formats/provider-adapters.test.ts','src/agent/turn-engine.test.ts'][_0x567203(0x74,0x71,0x12e,0x1ed)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x29bb69(-0xd6,-0x10c,-0x22,-0x1fb),'description':_0x567203(0x15b,0xf9,0xbd,-0x3b),'input_schema':{'type':'object','properties':{'command':{'type':_0x567203(0x2f,0x120,0xb1,0x79)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x105fcb){return{'output':_0x105fcb,'structured':{'value':_0x105fcb}};}function createUnknownToolResult(_0x26de3b){const _0x3cdf67={_0x2c89d2:0x485,_0x53abe4:0x2a3,_0xdb4ad0:0x326},_0x92550e={_0x1ae764:0xda,_0x2f236b:0x169,_0x3d2954:0x110},_0x3d8f2d={_0x536650:0x323};function _0x162acf(_0xb14842,_0x439ae9,_0x1e70a0,_0x5c12f7){return _0x29bb69(_0xb14842-0x15d,_0xb14842-_0x3d8f2d._0x536650,_0x5c12f7,_0x5c12f7-0x43);}function _0x30d74c(_0x3dd11d,_0x48a84f,_0x28ba97,_0x288349){return _0x567203(_0x288349,_0x48a84f-_0x92550e._0x1ae764,_0x48a84f-_0x92550e._0x2f236b,_0x288349-_0x92550e._0x3d2954);}return{'callId':_0x26de3b['id'],'toolName':_0x26de3b[_0x162acf(0x405,0x335,0x40e,_0x3cdf67._0x2c89d2)],'status':'error','output':_0x30d74c(_0x3cdf67._0x53abe4,0x24f,0x2b9,_0x3cdf67._0xdb4ad0)+_0x26de3b[_0x162acf(0x405,0x353,0x30b,0x484)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x4456a2,_0x5e30e3){const _0x1721a3={_0x14b81b:0x24,_0xfe9f96:0x52},_0x2c8469={_0x1665bd:0x14d},_0x35c61c={_0x53c4fc:0x19a,_0x41fc5e:0x194};function _0x5129f7(_0x30f543,_0x1523ac,_0x18ede5,_0x35f653){return _0x567203(_0x30f543,_0x1523ac-_0x35c61c._0x53c4fc,_0x35f653- -_0x35c61c._0x41fc5e,_0x35f653-0x75);}function _0x2a77f4(_0x430948,_0x4edef3,_0x2e230b,_0x5e7da8){return _0x29bb69(_0x430948-_0x2c8469._0x1665bd,_0x430948-0x53a,_0x2e230b,_0x5e7da8-0x25);}return{'callId':_0x4456a2['id'],'toolName':_0x4456a2[_0x5129f7(-_0x1721a3._0x14b81b,0x14f,-_0x1721a3._0xfe9f96,0x82)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x4456a2[_0x5129f7(-0x103,-0x251,-0x38,-0x17a)]),'exitCode':0x0},'chunks':[_0x5e30e3],'meta':createMeta()};}function createMockToolRuntime(){const _0x2e5463={_0x27f759:0x6dd,_0xe24613:0x670,_0x5c4c0a:0x4d2,_0x1d1d58:0x506},_0x25c450={_0x36ce67:0x32,_0x1a0376:0xc1,_0x3ee321:0x25a,_0x2f6071:0xaf,_0x378af8:0x15c,_0x8a3599:0x68,_0x19fd4d:0xe6},_0x1b99ad=async(_0x2e6562,_0x2719b0)=>{const _0x1e1448={_0x1cbb4c:0x30d};function _0x4fe6f8(_0x5668c6,_0x24c85a,_0x458ed4,_0x2548cd){return _0x1e3a(_0x2548cd- -_0x1e1448._0x1cbb4c,_0x458ed4);}function _0x2763a0(_0x296680,_0x651a95,_0x340f80,_0x57e5ab){return _0x1e3a(_0x651a95- -0x3dc,_0x296680);}if(_0x2e6562[_0x4fe6f8(_0x25c450._0x36ce67,_0x25c450._0x1a0376,_0x25c450._0x3ee321,0x108)]!==_0x4fe6f8(-_0x25c450._0x2f6071,-_0x25c450._0x378af8,_0x25c450._0x8a3599,-_0x25c450._0x19fd4d))return createUnknownToolResult(_0x2e6562);const _0x10bc6f=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x2e6562,_0x10bc6f);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xcbfefd,_0x388698){function _0x1e9726(_0xb6e715,_0x46d53a,_0x2b4dfe,_0x349da9){return _0x1e3a(_0x349da9-0x3d2,_0xb6e715);}function _0x49f191(_0x42e4b7,_0x545dbd,_0x102ee6,_0x2ab2d0){return _0x1e3a(_0x545dbd- -0x32d,_0x2ab2d0);}return await Promise[_0x1e9726(_0x2e5463._0x27f759,0x553,0x5bc,_0x2e5463._0xe24613)](_0xcbfefd[_0x1e9726(_0x2e5463._0x5c4c0a,0x6c0,_0x2e5463._0x1d1d58,0x5c9)](async _0x546944=>{return await _0x1b99ad(_0x546944,_0x388698);}));},async 'execute'(_0x2fb40e,_0x5e799b){return await _0x1b99ad(_0x2fb40e,_0x5e799b);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x56582d={_0x4d2a1f:0x3ec,_0x4c5860:0x3e2,_0x32297c:0x492},_0x2c1232={_0x3e7304:0x1d8,_0x5e218a:0x3a2,_0x4c5f7b:0x147};function _0x249da2(_0x25061d,_0xa7db6e,_0x4e51bb,_0x3b4fed){return _0x29bb69(_0x25061d-_0x2c1232._0x3e7304,_0x4e51bb-_0x2c1232._0x5e218a,_0x25061d,_0x3b4fed-_0x2c1232._0x4c5f7b);}return delegatedRunCounter+=0x1,_0x249da2(0x38b,_0x56582d._0x4d2a1f,_0x56582d._0x4c5860,_0x56582d._0x32297c)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x155f14,_0x1c4fb9){const _0x439980={_0x44f411:0x441,_0x5ab1f2:0x356},_0x189ef7={_0x30c196:0xcf};function _0x1d9c04(_0x43b684,_0x16bd82,_0x1a610e,_0x1b0f0a){return _0x567203(_0x16bd82,_0x16bd82-0x12c,_0x1b0f0a-0x389,_0x1b0f0a-_0x189ef7._0x30c196);}return typeof _0x155f14===_0x1d9c04(_0x439980._0x44f411,0x330,0x48d,_0x439980._0x5ab1f2)?await _0x155f14(_0x1c4fb9):_0x155f14;}function getDelegatedAgentDefinition(_0x3fb83e,_0x461000){const _0x3128ba={_0x2a6f2c:0x81,_0x23056b:0x134},_0x55f710={_0x4e84ab:0x12b,_0x5e55af:0x1e5};function _0x21cc05(_0x2c5ec0,_0x384f68,_0xda4e80,_0x3eaf7e){return _0x29bb69(_0x2c5ec0-_0x55f710._0x4e84ab,_0x3eaf7e-0x11c,_0x2c5ec0,_0x3eaf7e-_0x55f710._0x5e55af);}return _0x3fb83e[_0x21cc05(0x3b,0x12a,_0x3128ba._0x2a6f2c,_0x3128ba._0x23056b)]?.[_0x461000];}function createRunSummary(_0x2d1d71){const _0x5a5fb1={_0x532ab4:0x3a4,_0xa9bbcd:0x1bc,_0x3ebceb:0x1b9,_0x4d6a0f:0x458,_0x5471fe:0x2ea,_0x2be574:0x399,_0x1bbd0e:0x26a,_0x2b28dd:0x415,_0x278554:0x2c4,_0x11c2de:0xd8,_0x411a2b:0xea,_0x35681b:0x27d,_0x1ba3b3:0x39d,_0x5a146b:0x1a5,_0x220588:0x3a7,_0x5baf49:0x295},_0x38fe41={_0x11860f:0x11,_0x3dfe2e:0x260},_0x210791={_0x20fde1:0x41,_0xe398f3:0xfe,_0x10c8c0:0x170};function _0x134fde(_0x1cd44f,_0xa6e93,_0x78f977,_0xacabf4){return _0x567203(_0xa6e93,_0xa6e93-_0x210791._0x20fde1,_0xacabf4-_0x210791._0xe398f3,_0xacabf4-_0x210791._0x10c8c0);}function _0x5d46a7(_0x4edb91,_0x5248ee,_0x28ef50,_0x1599de){return _0x29bb69(_0x4edb91-_0x38fe41._0x11860f,_0x1599de-_0x38fe41._0x3dfe2e,_0x5248ee,_0x1599de-0x153);}return{'runId':_0x2d1d71[_0x5d46a7(0x2aa,_0x5a5fb1._0x532ab4,0x268,0x281)],'agentId':_0x2d1d71['agentId'],'sessionId':_0x2d1d71[_0x134fde(_0x5a5fb1._0xa9bbcd,0x23e,_0x5a5fb1._0x3ebceb,0x11e)],'status':_0x2d1d71[_0x5d46a7(0x3cf,_0x5a5fb1._0x4d6a0f,_0x5a5fb1._0x5471fe,_0x5a5fb1._0x2be574)],'parentSessionId':_0x2d1d71[_0x5d46a7(_0x5a5fb1._0x1bbd0e,_0x5a5fb1._0x2b28dd,0x3ff,_0x5a5fb1._0x278554)],..._0x2d1d71['originToolCallId']!==void 0x0?{'originToolCallId':_0x2d1d71[_0x5d46a7(_0x5a5fb1._0x11c2de,0x13b,_0x5a5fb1._0x411a2b,0x1fd)]}:{},..._0x2d1d71[_0x134fde(_0x5a5fb1._0x35681b,_0x5a5fb1._0x1ba3b3,0x414,0x31c)]!==void 0x0?{'errorMessage':_0x2d1d71['errorMessage']}:{},..._0x2d1d71[_0x5d46a7(0x267,0x1e0,0x2a6,0x2c3)]?.[_0x5d46a7(0x1fe,0x243,0xd5,_0x5a5fb1._0x5a146b)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x2d1d71[_0x134fde(0x1c4,_0x5a5fb1._0x220588,0x2eb,_0x5a5fb1._0x5baf49)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x586a00,_0x2d2209){const _0x210198={_0x2f4be4:0x2d8,_0x1a44c5:0x3d1,_0x4723b1:0x325},_0x36e7ef={_0xc96ca0:0x164,_0x6ec77d:0x3e};function _0x4c9643(_0x5b5837,_0x31b35e,_0x384fa6,_0x3d9efc){return _0x29bb69(_0x5b5837-_0x36e7ef._0xc96ca0,_0x31b35e-0x2f9,_0x3d9efc,_0x3d9efc-_0x36e7ef._0x6ec77d);}const _0x2acf67=createRunSummary(_0x586a00),_0x42f988=_0x2acf67[_0x4c9643(0x3c7,_0x210198._0x2f4be4,_0x210198._0x1a44c5,_0x210198._0x4723b1)];return createToolOutput(typeof _0x42f988==='string'&&_0x42f988['length']>0x0?_0x42f988:_0x2d2209,_0x2acf67);}function getRunTerminalErrorMessage(_0x14fd7c){const _0x475b43={_0x5a4154:0xaf,_0x2cdcec:0x54,_0x4300b5:0x1ec,_0x5c8045:0x221,_0x368b38:0x21f,_0x32e9d7:0x235,_0x25a674:0x1b4,_0x347308:0x35a,_0x394e57:0x246,_0x2495bc:0x83,_0x12c23c:0x75,_0x5bcfd2:0x172,_0x4201cd:0x52,_0x1f0428:0xb6,_0x4642a0:0xbd,_0x2dfd30:0x4a},_0x34e0c3={_0x595738:0x15d,_0x43e60e:0x15c,_0x1d1daf:0x109};function _0x26dca6(_0x3eaf26,_0x2289a1,_0xbff07e,_0x2cdf38){return _0x567203(_0x2289a1,_0x2289a1-_0x34e0c3._0x595738,_0x2cdf38- -_0x34e0c3._0x43e60e,_0x2cdf38-_0x34e0c3._0x1d1daf);}const _0x5e6f9a=_0x14fd7c?.[_0x26dca6(-0x5,_0x475b43._0x5a4154,_0x475b43._0x2cdcec,0x76)][_0x54f371(_0x475b43._0x4300b5,0x26a,_0x475b43._0x5c8045,_0x475b43._0x368b38)]['at'](-0x1);if(_0x5e6f9a?.[_0x54f371(_0x475b43._0x32e9d7,_0x475b43._0x25a674,_0x475b43._0x347308,0x15c)]===_0x26dca6(-0x18f,-0x1da,-_0x475b43._0x394e57,-0x149)&&_0x5e6f9a[_0x54f371(0x16e,0x157,0xb3,_0x475b43._0x2495bc)][_0x26dca6(-0x163,-_0x475b43._0x12c23c,-0x95,-_0x475b43._0x5bcfd2)]()[_0x54f371(-_0x475b43._0x4201cd,0x101,-_0x475b43._0x1f0428,-0x35)]>0x0)return _0x5e6f9a[_0x26dca6(0x75,-0x5c,-_0x475b43._0x4642a0,_0x475b43._0x2dfd30)];function _0x54f371(_0x4ec1d0,_0x2ee124,_0x4b46ba,_0x20fec7){return _0x567203(_0x20fec7,_0x2ee124-0x1d3,_0x4ec1d0- -0x38,_0x20fec7-0x17d);}return void 0x0;}function formatAbortedRunMessage(_0x2af95b,_0x3f0d4d){const _0x3a3af3={_0x15958f:0x6b6,_0x1a1237:0x626,_0x30c4be:0x569,_0x5cb54d:0x4e8,_0x38ef40:0x713,_0x814c65:0x684,_0x1938e1:0x5fe},_0x5229ed={_0x39cc0c:0x70b},_0xf4f043={_0x69b618:0x6e};function _0x58ded1(_0x5f1c0b,_0x4284e1,_0x5a3c1a,_0x169a65){return _0x29bb69(_0x5f1c0b-_0xf4f043._0x69b618,_0x5a3c1a-0x6e5,_0x169a65,_0x169a65-0x103);}const _0x167311='Agent\x20run\x20'+_0x2af95b+_0x58ded1(_0x3a3af3._0x15958f,0x5f7,0x5eb,0x5f7);if(!_0x3f0d4d||_0x3f0d4d[_0x58ded1(_0x3a3af3._0x1a1237,_0x3a3af3._0x30c4be,0x59b,_0x3a3af3._0x5cb54d)]()['length']===0x0||_0x3f0d4d===_0x167311)return _0x167311;function _0x2e9b2b(_0x5d5dfa,_0x4e250b,_0x5322ee,_0x12ec0f){return _0x29bb69(_0x5d5dfa-0x3a,_0x5d5dfa-_0x5229ed._0x39cc0c,_0x4e250b,_0x12ec0f-0x181);}return _0x167311+_0x58ded1(_0x3a3af3._0x38ef40,_0x3a3af3._0x814c65,_0x3a3af3._0x1938e1,0x5ea)+_0x3f0d4d;}function createAssignTaskTool(_0x2598aa){const _0x1bf7b4={_0x4a90f0:0x61b,_0x49a499:0x582,_0x4b1413:0x5d8,_0x238303:0x5d6,_0x40007b:0x404,_0x2413c8:0x502,_0x43251b:0x5be,_0x395ea6:0x60e,_0x4a5965:0x502,_0x371a44:0x4a8,_0x5ca21e:0x524,_0x223150:0x13,_0x782c7d:0x98,_0x39852b:0x32,_0x3de846:0x625,_0x400aa1:0x4d3,_0x4e8f38:0x64e,_0x17be10:0x16e,_0x575104:0x11f,_0x366455:0x1,_0x1e46a4:0x52,_0x1df174:0x69,_0x4657b9:0xac,_0x4f93fe:0x92},_0x4f9d3b={_0x122e83:0x193,_0x190bd0:0x1f8,_0x3ab310:0xae,_0x56d09e:0x64,_0x162d7a:0x4,_0x3d7d9d:0xc5,_0x1849d9:0x6e,_0x50b738:0x24,_0x307099:0x12,_0x1b1eff:0xda,_0x30f759:0x67,_0x44e553:0x128,_0x51631d:0x150,_0x317c5e:0x51,_0x1d87f5:0xc6,_0x29ed43:0x14f,_0x55df5a:0x150,_0x17e835:0xd5,_0xfe83f:0xd0,_0x27672a:0x198,_0x31ba30:0x85,_0x25f0de:0x3e,_0x2c5549:0x64,_0x363e93:0xd8,_0x3888eb:0xd0,_0x53314d:0xf2,_0x340131:0x1b4,_0x38af1b:0x15,_0x57512a:0x11,_0x5cc57d:0x112,_0x191908:0x21,_0x801408:0x294,_0x15aa67:0x1f7,_0x16b013:0x21c,_0x390b21:0x28d,_0x932593:0x27,_0x4b9f94:0x10,_0x23dd87:0x2e0,_0x3b002c:0x2fa,_0x435417:0x1e9,_0x278212:0x178,_0xfc4553:0x14a,_0x5de380:0x5,_0x32c580:0xd1,_0x6398d0:0x11d,_0x8b2548:0x6a,_0x4050ab:0xd1,_0x493ff0:0x176,_0x350721:0x37,_0x28cb7a:0x33,_0x446e08:0xeb,_0x4ca014:0x2c,_0x367366:0x167,_0x4e0b2c:0x80,_0x5dbbda:0x6e,_0x54a9ad:0x8c,_0x3e6049:0x111,_0xd046b8:0x27f,_0x1bf429:0x1e2,_0x4e501e:0x6f,_0x435fbb:0x169,_0x3e30fe:0x48,_0x3e1df7:0x2c,_0x53385e:0xc,_0x4601ee:0x247,_0x5d5938:0x10e,_0x217f3c:0x276,_0x253cf4:0x19,_0x44b1ee:0x66,_0x1e86bd:0xbb,_0x44d63e:0xed},_0xfdbf9b={_0x5094a7:0x108},_0x4d973f={_0x162dba:0x15,_0x1c9200:0x163},_0x29616c={_0x116a73:0x16a,_0x3796fc:0x585,_0x40776c:0x16f};function _0x48a208(_0x516789,_0x26b176,_0x5d22d1,_0x16ce04){return _0x29bb69(_0x516789-_0x29616c._0x116a73,_0x516789-_0x29616c._0x3796fc,_0x16ce04,_0x16ce04-_0x29616c._0x40776c);}function _0x291ae1(_0x24a90b,_0x358a4c,_0x327dab,_0x5d0bb4){return _0x29bb69(_0x24a90b-0x119,_0x327dab- -_0x4d973f._0x162dba,_0x358a4c,_0x5d0bb4-_0x4d973f._0x1c9200);}return defineTool({'name':_0x48a208(_0x1bf7b4._0x4a90f0,0x4ed,_0x1bf7b4._0x49a499,_0x1bf7b4._0x4b1413),'description':_0x48a208(0x4f9,_0x1bf7b4._0x238303,0x616,_0x1bf7b4._0x40007b),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x48a208(_0x1bf7b4._0x2413c8,0x611,_0x1bf7b4._0x43251b,_0x1bf7b4._0x395ea6)},'description':{'type':_0x48a208(_0x1bf7b4._0x4a5965,0x479,0x588,0x531)},'nickname':{'type':_0x48a208(_0x1bf7b4._0x4a5965,_0x1bf7b4._0x371a44,0x402,_0x1bf7b4._0x5ca21e)},'task':{'type':_0x291ae1(_0x1bf7b4._0x223150,0x1a,-_0x1bf7b4._0x782c7d,_0x1bf7b4._0x39852b)}},'required':[_0x48a208(_0x1bf7b4._0x3de846,0x5fd,_0x1bf7b4._0x400aa1,_0x1bf7b4._0x4e8f38),_0x291ae1(-0x1e3,-_0x1bf7b4._0x17be10,-_0x1bf7b4._0x575104,_0x1bf7b4._0x366455),_0x291ae1(_0x1bf7b4._0x1e46a4,-_0x1bf7b4._0x1df174,_0x1bf7b4._0x4657b9,_0x1bf7b4._0x4f93fe)]},async *'execute'(_0x24d7ca,_0x5eb396){const _0x184691={_0x137352:0x580,_0x386da2:0x430,_0xa28652:0x2f3,_0x25d329:0x331,_0x43e364:0x1af,_0x2b38da:0x2ed,_0x10ba85:0x2f0,_0x33e6fa:0x38d,_0x325ab7:0x350,_0x251029:0x231,_0x5f1f57:0x253},_0x169997=createDelegatedRunId(),_0x445324={'agentId':_0x24d7ca[_0x4fa286(0x11c,0x1aa,_0x4f9d3b._0x122e83,_0x4f9d3b._0x190bd0)],'parentSessionId':_0x5eb396[_0xaabf85(_0x4f9d3b._0x3ab310,0xbb,-_0x4f9d3b._0x56d09e,_0x4f9d3b._0x162d7a)],'runId':_0x169997,..._0x5eb396[_0x4fa286(_0x4f9d3b._0x3d7d9d,-_0x4f9d3b._0x1849d9,-_0x4f9d3b._0x50b738,_0x4f9d3b._0x307099)]!==void 0x0?{'toolCallId':_0x5eb396[_0xaabf85(-_0x4f9d3b._0x1b1eff,-0x17c,-_0x4f9d3b._0x30f759,-_0x4f9d3b._0x44e553)]}:{}};function _0x4fa286(_0x4e444e,_0x4b23f8,_0x1888f9,_0x271945){return _0x291ae1(_0x4e444e-0x1ad,_0x4e444e,_0x1888f9-_0xfdbf9b._0x5094a7,_0x271945-0xa2);}const _0x2406bc=getDelegatedAgentDefinition(_0x2598aa,_0x24d7ca[_0xaabf85(0x147,0x169,_0x4f9d3b._0x51631d,0xa7)]);if(!_0x2406bc)throw new ToolExecutionError(_0xaabf85(-0x5b,-_0x4f9d3b._0x317c5e,-0x83,-_0x4f9d3b._0x1d87f5)+_0x24d7ca[_0xaabf85(0x123,_0x4f9d3b._0x29ed43,_0x4f9d3b._0x55df5a,_0x4f9d3b._0x17e835)],{'agentId':_0x24d7ca['agentId']});const _0x351371=new Agent(await resolveDelegatedAgentOptions(_0x2406bc,_0x445324));function _0xaabf85(_0x4c4c9e,_0x406ed6,_0x435749,_0x340171){return _0x291ae1(_0x4c4c9e-0xbf,_0x4c4c9e,_0x435749-0xc5,_0x340171-0x10c);}let _0xc6750d={'runId':_0x169997,'agentId':_0x24d7ca[_0xaabf85(_0x4f9d3b._0xfe83f,0x290,0x150,0x249)],'sessionId':_0x351371['sessionId'],'status':_0xaabf85(-_0x4f9d3b._0x27672a,-0x9e,-_0x4f9d3b._0x31ba30,-0x48),'parentSessionId':_0x5eb396[_0xaabf85(_0x4f9d3b._0x25f0de,-0x142,-_0x4f9d3b._0x2c5549,-_0x4f9d3b._0x363e93)],..._0x5eb396[_0xaabf85(0xac,-0x133,-0x67,-0xb6)]!==void 0x0?{'originToolCallId':_0x5eb396[_0xaabf85(_0x4f9d3b._0x3888eb,-0xbd,-0x67,0x60)]}:{}};const _0x4c0e71=new AbortController(),_0x37329d=addAbortListener(_0x5eb396['signal'],()=>{const _0x30262d={_0x5731e0:0x9f,_0x5c28ac:0x107},_0x1496ef={_0x4bec1a:0x1a7};function _0xe6788b(_0x5542af,_0x55df08,_0x5d7949,_0x4d79b9){return _0xaabf85(_0x5542af,_0x55df08-0x1c5,_0x55df08-0x264,_0x4d79b9-_0x1496ef._0x4bec1a);}function _0x54d266(_0x1a126e,_0x44650a,_0x3adc14,_0x4742a1){return _0xaabf85(_0x44650a,_0x44650a-_0x30262d._0x5731e0,_0x4742a1-0x336,_0x4742a1-_0x30262d._0x5c28ac);}_0x4c0e71[_0xe6788b(_0x184691._0x137352,_0x184691._0x386da2,_0x184691._0xa28652,_0x184691._0x25d329)](_0x5eb396[_0xe6788b(_0x184691._0x43e364,0x231,_0x184691._0x2b38da,_0x184691._0x10ba85)]?.[_0xe6788b(_0x184691._0x33e6fa,_0x184691._0x325ab7,_0x184691._0x251029,_0x184691._0x5f1f57)]);});yield createToolOutput('Started\x20agent\x20run\x20'+_0xc6750d[_0xaabf85(-0x23,_0x4f9d3b._0x53314d,0xd1,0xaf)]+'.',{'runId':_0xc6750d[_0x4fa286(0x54,_0x4f9d3b._0x340131,0x114,_0x4f9d3b._0x38af1b)],'agentId':_0xc6750d['agentId'],'sessionId':_0xc6750d[_0x4fa286(-_0x4f9d3b._0x57512a,-_0x4f9d3b._0x5cc57d,-_0x4f9d3b._0x191908,-0xfb)],'status':_0xc6750d[_0xaabf85(0x1b9,0xf9,0x1e9,0x243)]});try{const _0xfbabb6=await _0x351371[_0x4fa286(_0x4f9d3b._0x801408,_0x4f9d3b._0x15aa67,_0x4f9d3b._0x16b013,0x1c3)](_0x24d7ca[_0xaabf85(0x216,_0x4f9d3b._0x390b21,0x171,0x23b)],{'signal':_0x4c0e71[_0x4fa286(0xfb,_0x4f9d3b._0x932593,_0x4f9d3b._0x4b9f94,-0x12e)]});_0xc6750d={..._0xc6750d,'status':_0xfbabb6[_0x4fa286(_0x4f9d3b._0x23dd87,0x2bf,0x22c,0x300)],'result':_0xfbabb6};if(_0xfbabb6[_0xaabf85(_0x4f9d3b._0x3b002c,0x169,_0x4f9d3b._0x435417,_0x4f9d3b._0x278212)]!==_0x4fa286(0x32,0x294,0x177,0x160)){const _0x20dca4=getRunTerminalErrorMessage(_0xfbabb6),_0x37bb82=formatAbortedRunMessage(_0xc6750d[_0xaabf85(_0x4f9d3b._0xfc4553,_0x4f9d3b._0x5de380,_0x4f9d3b._0x32c580,_0x4f9d3b._0x6398d0)],_0x20dca4);throw new ToolExecutionError(_0x37bb82,{...createRunSummary(_0xc6750d),'aborted':!![],'errorMessage':_0x37bb82});}return createRunSummaryOutput(_0xc6750d,'Agent\x20run\x20'+_0xc6750d[_0xaabf85(0x27,-_0x4f9d3b._0x8b2548,_0x4f9d3b._0x4050ab,_0x4f9d3b._0x493ff0)]+_0x4fa286(_0x4f9d3b._0x350721,0x1b2,0x13f,0x10));}catch(_0x14cf13){if(_0x14cf13 instanceof ToolExecutionError)throw _0x14cf13;if(isAbortError(_0x14cf13)||_0x4c0e71[_0xaabf85(-0x20,-0x13e,-_0x4f9d3b._0x28cb7a,0xe9)][_0x4fa286(0x9b,_0x4f9d3b._0x446e08,-_0x4f9d3b._0x4ca014,-0x153)]||_0x5eb396[_0x4fa286(_0x4f9d3b._0x367366,-_0x4f9d3b._0x4e0b2c,0x10,-0x8d)][_0x4fa286(_0x4f9d3b._0x5dbbda,-0x3,-0x2c,_0x4f9d3b._0x54a9ad)]){const _0x2e3508=getRunTerminalErrorMessage(_0xc6750d[_0x4fa286(_0x4f9d3b._0x3e6049,0x243,0x156,_0x4f9d3b._0xd046b8)])??(_0x14cf13 instanceof Error?_0x14cf13[_0x4fa286(_0x4f9d3b._0x1bf429,_0x4f9d3b._0x4e501e,_0x4f9d3b._0x435fbb,0xe9)]:String(_0x14cf13)),_0x11d123=formatAbortedRunMessage(_0xc6750d[_0xaabf85(0x1f3,-0x75,0xd1,0x0)],_0x2e3508);_0xc6750d={..._0xc6750d,'status':_0x4fa286(_0x4f9d3b._0x3e30fe,-0x41,-_0x4f9d3b._0x3e1df7,-_0x4f9d3b._0x53385e),'errorMessage':_0x11d123};throw new ToolExecutionError(_0x11d123,{...createRunSummary(_0xc6750d),'aborted':!![],'errorMessage':_0x11d123});}const _0x1bb8c7=getRunTerminalErrorMessage(_0xc6750d[_0x4fa286(_0x4f9d3b._0x31ba30,_0x4f9d3b._0x4601ee,0x156,0x9d)])??(_0x14cf13 instanceof Error?_0x14cf13[_0x4fa286(_0x4f9d3b._0x5d5938,0x13d,0x169,_0x4f9d3b._0x217f3c)]:String(_0x14cf13))??'Agent\x20run\x20'+_0xc6750d['runId']+_0xaabf85(-_0x4f9d3b._0x38af1b,0x87,_0x4f9d3b._0x253cf4,-_0x4f9d3b._0x44b1ee);_0xc6750d={..._0xc6750d,'status':_0xaabf85(-_0x4f9d3b._0x1e86bd,_0x4f9d3b._0x44d63e,-0x4d,0xae),'errorMessage':_0x1bb8c7};throw new ToolExecutionError(_0x1bb8c7,{...createRunSummary(_0xc6750d),'errorMessage':_0x1bb8c7});}finally{_0x37329d();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0xfe03ca){return[createAssignTaskTool(_0xfe03ca)];}import*as _0x72f446 from'path';function buildDescription2(_0x53b196){const _0x16089e={_0x3090df:0x37d,_0x275172:0x274,_0x7eb308:0x2e3,_0x1e3c62:0x314,_0x5e3f77:0x297,_0x139dc3:0x38f,_0x573e6c:0x2e7,_0x59e7a5:0x454,_0x31c978:0x1f3,_0x321703:0x3d2,_0x28b7c3:0x242,_0x55f134:0x2ab,_0x51ee8b:0x3fe,_0x3457ed:0x217,_0x5b8a59:0x36e,_0x418e59:0x344,_0x3c239a:0x3be};if(_0x53b196[_0x33f87c(0x226,_0x16089e._0x3090df,_0x16089e._0x275172,_0x16089e._0x7eb308)]===0x0)return _0x36097a(_0x16089e._0x1e3c62,0x39f,_0x16089e._0x5e3f77,_0x16089e._0x139dc3);function _0x36097a(_0xabc120,_0x214230,_0x3e99bf,_0x28ed9f){return _0x29bb69(_0xabc120-0x2a,_0xabc120-0x205,_0x214230,_0x28ed9f-0x170);}const _0x225cb3=[_0x33f87c(0x3f4,_0x16089e._0x573e6c,_0x16089e._0x59e7a5,0x508),_0x33f87c(0x28b,_0x16089e._0x31c978,_0x16089e._0x321703,_0x16089e._0x28b7c3),_0x33f87c(0x2a7,_0x16089e._0x55f134,0x3bd,_0x16089e._0x51ee8b),'Available\x20skills\x20(skill_name:\x20description):',..._0x53b196[_0x36097a(0xc9,0x9c,0x200,_0x16089e._0x3457ed)](_0x4c9ec5=>'-\x20'+_0x4c9ec5['name']+':\x20'+_0x4c9ec5[_0x36097a(0xfb,0x196,0x1,0x12b)])];function _0x33f87c(_0x3b1860,_0x4d0277,_0x410cf7,_0x169746){return _0x567203(_0x169746,_0x4d0277-0xec,_0x3b1860-0x240,_0x169746-0x1);}return _0x225cb3[_0x33f87c(_0x16089e._0x5b8a59,0x35b,_0x16089e._0x418e59,_0x16089e._0x3c239a)]('\x0a');}function createLoadSkillTool(_0x33e9a7){const _0x36b2c5={_0x198160:0x116,_0x3073a9:0x138,_0x192ed3:0x22c,_0x28cdb9:0x315,_0x58b04a:0x32,_0x30bf6c:0xc1,_0x18fdcc:0xe4,_0x511a3a:0x52,_0x27352d:0x1b1,_0x2e202e:0xc4},_0x25f1b1={_0x506395:0x34a,_0x235c40:0x508,_0x3622fa:0x425,_0x36922c:0x506,_0x5b25ba:0x556,_0x5d6549:0x3cb,_0x36d892:0x4b1,_0xc2edca:0x4bf,_0x1daedd:0x3f7,_0x5383db:0x472,_0x4f8de0:0x374,_0x57adce:0x4d8,_0x5f0694:0x58e,_0x2ee8dc:0x62c,_0x385dee:0x4f9,_0x4ce572:0x511,_0x444f55:0x4c5,_0x15ae08:0x3c7,_0x3e280c:0x32c,_0x4ddd9b:0x3d5,_0x32c5e2:0x49d,_0x3ba4f9:0x470,_0x3d9d9b:0x51a,_0xde44da:0x5cf,_0x32e572:0x6de,_0x20bc6e:0x5c9,_0x335eaa:0x448,_0x145de1:0x4ad,_0x43495a:0x4ca,_0x32766d:0x3b2,_0xe7e350:0x4b3,_0x5a3e39:0x3d2,_0xeee8a8:0x31c,_0x1fff57:0x42f,_0x4c69b4:0x567,_0x4b8ab7:0x467,_0x597bd7:0x43a,_0x24dbe4:0x303,_0x2a68c4:0x3ad,_0x4aceb6:0x3bb,_0x2dd28f:0x3c2,_0x5852e5:0x4dd,_0x243a84:0x43f,_0xdf10bf:0x426,_0x2205e7:0x560,_0x342006:0x49d},_0x5ea5c6={_0x375ca1:0x3dd,_0x59fa58:0x78},_0x49617c={_0x390e0f:0x198},_0x34ccd0={_0x22e07c:0x157,_0x56dc8c:0x116,_0x1306ab:0x173},_0x2a23dd={_0x15554f:0xb9,_0x422d66:0x174},_0x18b34a=new Map(_0x33e9a7[_0x16f9c3(0xb,-0x109,0xfd,-_0x36b2c5._0x198160)][_0x4b1d08(0xfb,_0x36b2c5._0x3073a9,_0x36b2c5._0x192ed3,_0x36b2c5._0x28cdb9)](_0x4e3241=>[_0x4e3241[_0x16f9c3(0x100,0x101,0x2f,0x9a)],_0x4e3241]));function _0x4b1d08(_0x843b42,_0x534aa0,_0xb2c522,_0x5e7ecc){return _0x567203(_0x5e7ecc,_0x534aa0-_0x2a23dd._0x15554f,_0xb2c522-0x234,_0x5e7ecc-_0x2a23dd._0x422d66);}function _0x16f9c3(_0x2d4d85,_0x7a7753,_0x188a74,_0xf98c69){return _0x567203(_0x188a74,_0x7a7753-_0x34ccd0._0x22e07c,_0x2d4d85- -_0x34ccd0._0x56dc8c,_0xf98c69-_0x34ccd0._0x1306ab);}const _0x54c0b2=buildDescription2(_0x33e9a7[_0x16f9c3(0xb,_0x36b2c5._0x58b04a,-0x36,0x83)]);return defineTool({'name':_0x16f9c3(-_0x36b2c5._0x30bf6c,-_0x36b2c5._0x18fdcc,-0x15c,-_0x36b2c5._0x511a3a),'description':_0x54c0b2,'inputSchema':{'type':'object','properties':{'name':{'type':_0x16f9c3(-0x65,-_0x36b2c5._0x27352d,-0xbf,-_0x36b2c5._0x2e202e)}},'required':['name']},async *'execute'(_0x24ac1e){const _0x38bca8=_0x18b34a[_0x49915d(0x1f4,0x47d,0x3bb,_0x25f1b1._0x506395)](_0x24ac1e[_0x49915d(0x3a8,0x59f,_0x25f1b1._0x235c40,0x4dd)]);function _0x20ed22(_0x531523,_0x3954dd,_0x37b72c,_0x44727e){return _0x4b1d08(_0x531523-_0x49617c._0x390e0f,_0x3954dd-0x7b,_0x44727e-0x15e,_0x531523);}if(!_0x38bca8){const _0xe33fa9=Array['from'](_0x18b34a[_0x20ed22(_0x25f1b1._0x3622fa,0x383,0x4b2,0x403)]())[_0x49915d(0x3f7,0x4c7,0x355,0x3f5)](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x24ac1e[_0x20ed22(_0x25f1b1._0x36922c,0x531,0x465,0x5a8)]+_0x49915d(_0x25f1b1._0x5b25ba,_0x25f1b1._0x5d6549,0x423,_0x25f1b1._0x36d892)+_0xe33fa9,{'name':_0x24ac1e['name']});}const _0x2f9101=await _0x33e9a7[_0x49915d(_0x25f1b1._0xc2edca,_0x25f1b1._0x1daedd,0x4fb,_0x25f1b1._0x5383db)](_0x38bca8),_0x4acbaa=_0x38bca8[_0x20ed22(_0x25f1b1._0x4f8de0,0x380,_0x25f1b1._0x57adce,0x43f)][_0x20ed22(_0x25f1b1._0x5f0694,_0x25f1b1._0x2ee8dc,_0x25f1b1._0x385dee,_0x25f1b1._0x4ce572)]??_0x72f446[_0x20ed22(0x39a,0x31c,_0x25f1b1._0x444f55,_0x25f1b1._0x15ae08)](_0x38bca8[_0x49915d(0x477,_0x25f1b1._0x3e280c,0x456,0x374)][_0x20ed22(0x4ae,0x3ae,_0x25f1b1._0x4ddd9b,_0x25f1b1._0x32c5e2)]),_0xe49178=[_0x20ed22(_0x25f1b1._0x3ba4f9,0x456,0x60e,_0x25f1b1._0x3d9d9b)+_0x2f9101[_0x20ed22(_0x25f1b1._0xde44da,_0x25f1b1._0x32e572,_0x25f1b1._0x20bc6e,0x5a8)],'',_0x2f9101[_0x49915d(0x451,0x4f1,0x3ab,_0x25f1b1._0x335eaa)],'','---',_0x49915d(0x43c,_0x25f1b1._0x145de1,0x406,_0x25f1b1._0x43495a)+_0x38bca8[_0x20ed22(_0x25f1b1._0x32766d,0x3a8,0x58a,0x43f)][_0x49915d(0x28d,_0x25f1b1._0xe7e350,0x464,_0x25f1b1._0x5a3e39)],_0x49915d(_0x25f1b1._0xeee8a8,_0x25f1b1._0x1fff57,_0x25f1b1._0x4c69b4,_0x25f1b1._0x4b8ab7)+_0x4acbaa][_0x49915d(_0x25f1b1._0x597bd7,_0x25f1b1._0x24dbe4,0x3cc,0x3f5)]('\x0a');yield createToolOutput(_0xe49178,{'id':_0x2f9101['id'],'name':_0x2f9101[_0x49915d(_0x25f1b1._0x2a68c4,_0x25f1b1._0x4aceb6,_0x25f1b1._0x2dd28f,_0x25f1b1._0x5852e5)],'path':_0x38bca8[_0x20ed22(0x591,0x446,0x450,_0x25f1b1._0x243a84)][_0x20ed22(_0x25f1b1._0xdf10bf,_0x25f1b1._0x2205e7,0x565,_0x25f1b1._0x342006)],'baseDirectory':_0x4acbaa});function _0x49915d(_0x38fd28,_0x1f65b8,_0x41f180,_0x54fa86){return _0x16f9c3(_0x54fa86-_0x5ea5c6._0x375ca1,_0x1f65b8-_0x5ea5c6._0x59fa58,_0x38fd28,_0x54fa86-0x6c);}return void 0x0;}});}var TODO_STATUSES=new Set([_0x29bb69(-0x140,-0x104,-0x1cb,-0x56),_0x29bb69(0xff,0x2d,-0x44,-0x120),_0x29bb69(0xb8,0x84,0x179,-0xb3)]),TODO_PRIORITIES=new Set([_0x29bb69(-0x154,-0x161,-0x9d,-0x1fb),_0x29bb69(-0x16c,-0x140,-0x231,-0x1cf),_0x567203(0x2a8,0x22b,0x168,0x83)]);function isTodoStatus(_0x178ce5){const _0x3ab6ec={_0x1e25c1:0x3f0,_0x491a3a:0x41e,_0x835dd2:0x4f1,_0x24a874:0x523},_0x136efe={_0x397190:0x178,_0x35c6b7:0x1b7};function _0x26f1a3(_0x11b18b,_0x596790,_0x32fa05,_0x12428a){return _0x29bb69(_0x11b18b-0xdc,_0x11b18b-0x3da,_0x32fa05,_0x12428a-0x89);}function _0x4091e3(_0x4dc920,_0x2205c0,_0x5ba7f0,_0x182324){return _0x567203(_0x5ba7f0,_0x2205c0-_0x136efe._0x397190,_0x182324-0x1c0,_0x182324-_0x136efe._0x35c6b7);}return typeof _0x178ce5===_0x26f1a3(0x357,0x23c,_0x3ab6ec._0x1e25c1,0x308)&&TODO_STATUSES[_0x4091e3(_0x3ab6ec._0x491a3a,_0x3ab6ec._0x835dd2,_0x3ab6ec._0x24a874,0x42f)](_0x178ce5);}function isTodoPriority(_0x4fe644){const _0x11fde3={_0x7f1dad:0x3ea,_0x12a707:0x207,_0x7380d1:0x236},_0x5874a8={_0x59e2b1:0x14a,_0x583d7a:0x1b7};function _0x2196c9(_0x260797,_0x54df5b,_0x39e5cc,_0x10647a){return _0x567203(_0x10647a,_0x54df5b-_0x5874a8._0x59e2b1,_0x54df5b-0x25d,_0x10647a-_0x5874a8._0x583d7a);}return typeof _0x4fe644===_0x2196c9(_0x11fde3._0x7f1dad,0x30e,_0x11fde3._0x12a707,_0x11fde3._0x7380d1)&&TODO_PRIORITIES['has'](_0x4fe644);}var TodoStore=class{[_0x29bb69(0xda,0x24,-0xba,0xb7)]=new Map();[_0x567203(0x2e7,0x13d,0x276,0x351)](_0x2a9f47){const _0xa2098b={_0x5747b0:0x40,_0x566579:0x31,_0x1a6ebd:0x59f,_0x5d00bd:0x5f4},_0x1d4f3d={_0x51c34c:0x55,_0x51549d:0x1c3};function _0x450f5c(_0x10fb20,_0x329fb5,_0x14c14e,_0x2680e2){return _0x29bb69(_0x10fb20-0x1b1,_0x14c14e- -_0x1d4f3d._0x51c34c,_0x329fb5,_0x2680e2-_0x1d4f3d._0x51549d);}function _0x45f1f6(_0x107097,_0x1b2d1b,_0x41cf9,_0x3bb60f){return _0x29bb69(_0x107097-0x1b6,_0x107097-0x650,_0x41cf9,_0x3bb60f-0xf1);}return this[_0x450f5c(-_0xa2098b._0x5747b0,-0x47,-_0xa2098b._0x566579,-0x94)][_0x45f1f6(_0xa2098b._0x1a6ebd,0x6a4,_0xa2098b._0x5d00bd,0x485)](_0x2a9f47)??[];}[_0x567203(0x129,-0x3c,0x33,-0x9f)](_0x3283f0,_0x579ddf){const _0x1988f9={_0x1c664e:0x74,_0x518c8b:0x1b5,_0x4d811f:0xb6,_0x357c6c:0x3c},_0x5cba56={_0x1df6d2:0x2b,_0x2d86eb:0x18a};function _0x58e9d6(_0xdb5a45,_0x556768,_0x74d89d,_0xc6b4e1){return _0x567203(_0xc6b4e1,_0x556768-_0x5cba56._0x1df6d2,_0xdb5a45- -0xe4,_0xc6b4e1-_0x5cba56._0x2d86eb);}this[_0x58e9d6(_0x1988f9._0x1c664e,_0x1988f9._0x518c8b,-_0x1988f9._0x4d811f,-_0x1988f9._0x357c6c)]['set'](_0x3283f0,_0x579ddf);}['getStats'](_0x33ab37){const _0x194885={_0x6b3297:0x6c8,_0x3175b:0x80a,_0x328a7f:0xb0,_0x238d2b:0x136,_0x5ea23f:0x1ef,_0x139fc6:0x21b,_0x5242aa:0x1bf,_0x4fd5d0:0x567,_0x49e798:0x67,_0x3da94f:0x22,_0x2ee3f3:0x196,_0x489f99:0x21b,_0x53bb7f:0x1f1,_0x4e957f:0x75d,_0x305ccd:0x82a,_0x1737f9:0x62f},_0x29d156={_0x415806:0x3f},_0x2c54e8={_0x2985a0:0x0},_0xfb2217=this[_0x4329f2(_0x194885._0x6b3297,0x7ad,_0x194885._0x3175b,0x679)](_0x33ab37),_0x40c500={'total':_0xfb2217[_0x135589(-0xe6,-_0x194885._0x328a7f,-0x6c,0x80)],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x135589(_0x2ba2fa,_0x2482a0,_0x199a7d,_0x1c023f){return _0x567203(_0x1c023f,_0x2482a0-_0x2c54e8._0x2985a0,_0x199a7d- -0x52,_0x1c023f-0x1e3);}function _0x4329f2(_0x247f0a,_0x373d22,_0x247d8c,_0x2479b4){return _0x567203(_0x2479b4,_0x373d22-_0x29d156._0x415806,_0x373d22-0x537,_0x2479b4-0x179);}for(const _0x42aa7d of _0xfb2217){if(_0x42aa7d[_0x135589(_0x194885._0x238d2b,_0x194885._0x5ea23f,_0x194885._0x139fc6,_0x194885._0x5242aa)]===_0x4329f2(0x5ff,_0x194885._0x4fd5d0,0x4ce,0x679))_0x40c500[_0x135589(-_0x194885._0x49e798,-0x171,-_0x194885._0x3da94f,-0x15c)]+=0x1;else{if(_0x42aa7d[_0x135589(0x156,_0x194885._0x2ee3f3,_0x194885._0x489f99,_0x194885._0x53bb7f)]===_0x4329f2(_0x194885._0x4e957f,0x698,0x70b,0x669))_0x40c500['inProgress']+=0x1;else _0x40c500[_0x4329f2(_0x194885._0x305ccd,0x6ef,0x693,_0x194885._0x1737f9)]+=0x1;}}return _0x40c500;}};function validateTodos(_0x516bcd){const _0x300174={_0x408da5:0x2d6,_0x4a5e1e:0x428,_0x1d49f7:0x487,_0xe332ed:0x28c,_0x54c6e5:0x4ac,_0x3606fa:0x26e,_0x226f1c:0x4df,_0xb1fedc:0x428,_0x4eafb3:0x596,_0x50ef4f:0x382,_0x2c3945:0x354,_0x376bc7:0x435,_0x13993b:0x3ac,_0x37767f:0x45a,_0x1f1639:0x595,_0x1ea8fe:0x3be,_0x22a484:0x3b4,_0x108a69:0x42f,_0x254776:0x532,_0x23aea6:0x406,_0x916d4d:0x6ad,_0x372b3c:0x4eb,_0x49a8e4:0x4c3,_0x808938:0x38b,_0x3e18f9:0x2d1,_0x414a2d:0x3e3,_0x34c7d5:0x40b,_0x510fc5:0x4fe,_0xcb8d15:0x3db,_0x3b0a60:0x368,_0x568e69:0x421,_0x17ef52:0x471,_0x3332b4:0x413,_0x21894a:0x48d,_0x34b7e6:0x364,_0x5ecaba:0x2e9,_0x16a1f6:0x40f,_0x52b93d:0x3e8,_0xbafff0:0x38d,_0x4529f7:0x5eb,_0xc0506:0x626,_0x1de2ff:0x590,_0x13449a:0x54d,_0x1886a6:0x5c8,_0x3b7385:0x527,_0x2bd29d:0x29e,_0x1fa1a0:0x4e7,_0x12f53:0x5a3,_0x49bcc0:0x473,_0x47c9f7:0x29c,_0x3ef175:0x2b7,_0x2c0240:0x218,_0x1dc61d:0x32b,_0x337447:0x2c2,_0x3751da:0x5e8,_0x47bcd3:0x5a0},_0xf332a4={_0x1a16b8:0x2bf,_0x383fe5:0x1b1};if(!Array[_0x4d0416(0x4cc,0x4fa,0x430,0x564)](_0x516bcd[_0x4d0416(_0x300174._0x408da5,0x54d,_0x300174._0x4a5e1e,0x2fe)])||_0x516bcd[_0xcb4646(0x4e7,0x462,_0x300174._0x1d49f7,0x411)]['length']===0x0)throw new ToolExecutionError('Parameter\x20\x22todos\x22\x20must\x20be\x20a\x20non-empty\x20array',{'error':_0xcb4646(0x390,_0x300174._0xe332ed,_0x300174._0x54c6e5,_0x300174._0x3606fa)});function _0xcb4646(_0x8ce78f,_0x5b6cbf,_0x4ac7b4,_0x2f8718){return _0x29bb69(_0x8ce78f-0x66,_0x8ce78f-0x4b2,_0x2f8718,_0x2f8718-0x1b5);}for(let _0x2bbec9=0x0;_0x2bbec9<_0x516bcd['todos'][_0x4d0416(0x259,0x174,0x2a5,0x25b)];_0x2bbec9+=0x1){const _0x1a0c84=_0x516bcd[_0x4d0416(0x51e,_0x300174._0x226f1c,_0x300174._0xb1fedc,0x3fc)][_0x2bbec9];if(!_0x1a0c84||typeof _0x1a0c84!==_0xcb4646(_0x300174._0x4eafb3,0x588,0x577,0x485))throw new ToolExecutionError(_0x4d0416(_0x300174._0x50ef4f,0x3cc,_0x300174._0x2c3945,0x373)+(_0x2bbec9+0x1)+_0x4d0416(_0x300174._0x376bc7,0x3c4,_0x300174._0x13993b,0x2d5),{'error':_0xcb4646(_0x300174._0x37767f,_0x300174._0x1f1639,_0x300174._0x1ea8fe,_0x300174._0x22a484)});if(typeof _0x1a0c84['id']!==_0xcb4646(_0x300174._0x108a69,0x359,0x2eb,_0x300174._0x254776)||_0x1a0c84['id']['trim']()['length']===0x0)throw new ToolExecutionError(_0x4d0416(0x30c,0x2f6,_0x300174._0x2c3945,_0x300174._0x23aea6)+(_0x2bbec9+0x1)+_0xcb4646(0x5f3,_0x300174._0x916d4d,0x5ae,_0x300174._0x372b3c),{'error':_0x4d0416(0x5b5,0x5bd,_0x300174._0x49a8e4,_0x300174._0x808938)});if(typeof _0x1a0c84[_0x4d0416(_0x300174._0x3e18f9,_0x300174._0x414a2d,0x3db,_0x300174._0x34c7d5)]!=='string'||_0x1a0c84[_0x4d0416(0x3e3,_0x300174._0x510fc5,_0x300174._0xcb8d15,0x28b)][_0xcb4646(_0x300174._0x3b0a60,0x23e,_0x300174._0x568e69,_0x300174._0x17ef52)]()['length']===0x0)throw new ToolExecutionError(_0xcb4646(_0x300174._0x3332b4,_0x300174._0x21894a,_0x300174._0x34b7e6,0x304)+(_0x2bbec9+0x1)+_0x4d0416(_0x300174._0x5ecaba,0x3f3,_0x300174._0x16a1f6,0x497),{'error':_0xcb4646(_0x300174._0x52b93d,_0x300174._0xbafff0,0x443,0x3b5)});if(!isTodoStatus(_0x1a0c84[_0xcb4646(_0x300174._0x4529f7,_0x300174._0xc0506,0x538,0x519)]))throw new ToolExecutionError('Todo\x20'+(_0x2bbec9+0x1)+_0xcb4646(0x5d1,_0x300174._0x1de2ff,_0x300174._0x13449a,0x5e2),{'error':'invalid_todo_status'});if(!isTodoPriority(_0x1a0c84[_0xcb4646(_0x300174._0x1886a6,0x5ab,_0x300174._0x3b7385,0x6d4)]))throw new ToolExecutionError(_0xcb4646(0x413,0x366,0x40a,0x547)+(_0x2bbec9+0x1)+_0x4d0416(0x21f,0x2e1,0x373,_0x300174._0x2bd29d),{'error':'invalid_todo_priority'});}const _0x3a82eb=_0x516bcd[_0xcb4646(_0x300174._0x1fa1a0,_0x300174._0x12f53,_0x300174._0x49bcc0,0x3b6)][_0x4d0416(_0x300174._0x47c9f7,0x226,_0x300174._0x3ef175,0x298)](_0x2bd735=>_0x2bd735['id']);function _0x4d0416(_0x5d2fdb,_0x22532d,_0x41627f,_0x2df302){return _0x567203(_0x5d2fdb,_0x22532d-0x195,_0x41627f-_0xf332a4._0x1a16b8,_0x2df302-_0xf332a4._0x383fe5);}if(new Set(_0x3a82eb)[_0x4d0416(_0x300174._0x2c0240,0x299,_0x300174._0x1dc61d,0x412)]!==_0x3a82eb['length'])throw new ToolExecutionError(_0x4d0416(0x33d,0x2e4,_0x300174._0x22a484,_0x300174._0x337447),{'error':_0x4d0416(_0x300174._0x3751da,0x458,0x4e8,_0x300174._0x47bcd3)});}function createStatsProgress(_0x4f457a){const _0x532ded={_0x5f3d69:0x30c,_0x534c67:0x4f0,_0xdcd7fb:0x406,_0x4ec401:0x441,_0x557b58:0x3a9},_0x58e919={_0x24256b:0x2b3,_0x58fba7:0x19b},_0xf62df0={_0x7b9135:0x181,_0x487e8c:0x21};function _0x3a56e1(_0x381ead,_0x2880cb,_0x4d1793,_0x3c817e){return _0x29bb69(_0x381ead-_0xf62df0._0x7b9135,_0x381ead-0x698,_0x3c817e,_0x3c817e-_0xf62df0._0x487e8c);}function _0x60dc5d(_0x1737e9,_0xd8e158,_0x41f1eb,_0x2abd09){return _0x567203(_0xd8e158,_0xd8e158-0x194,_0x1737e9-_0x58e919._0x24256b,_0x2abd09-_0x58e919._0x58fba7);}return _0x4f457a[_0x60dc5d(0x441,_0x532ded._0x5f3d69,0x361,0x4aa)]>0x0?Math[_0x60dc5d(_0x532ded._0x534c67,0x3e9,0x3f0,_0x532ded._0xdcd7fb)](_0x4f457a['completed']/_0x4f457a[_0x60dc5d(_0x532ded._0x4ec401,_0x532ded._0x557b58,0x423,0x51f)]*0x64)+'%':'0%';}function createReminderItems(_0x2adf51){const _0x332fdf={_0xc1da7e:0x340},_0x407f4b={_0x19ea86:0xa1,_0x4dcf81:0xd8},_0x189e3d={_0x2986c1:0x5cf};function _0x2a5b29(_0x1dc9b0,_0x15e545,_0x12662d,_0x48ff52){return _0x29bb69(_0x1dc9b0-0x1c6,_0x12662d-_0x189e3d._0x2986c1,_0x1dc9b0,_0x48ff52-0x137);}function _0x5e2d0d(_0x4a8771,_0x11dcce,_0x1373ec,_0x2c27b8){return _0x29bb69(_0x4a8771-_0x407f4b._0x19ea86,_0x4a8771-0x65f,_0x11dcce,_0x2c27b8-_0x407f4b._0x4dcf81);}return _0x2adf51[_0x2a5b29(0x58c,_0x332fdf._0xc1da7e,0x493,0x551)](_0x55465f=>({'content':_0x55465f[_0x5e2d0d(0x647,0x563,0x640,0x779)],'status':_0x55465f[_0x5e2d0d(0x798,0x865,0x857,0x6bf)],'id':_0x55465f['id']}));}function createStructuredResult(_0x1932df,_0xa0a7a4,_0x2f6171,_0x5927fe){const _0x1827af={_0x250d23:0x2ac,_0x394d50:0x304},_0x26676b={_0x2b98e6:0x1a1},_0x154290={_0x26a4eb:0x99,_0x5bc11f:0x3e8};function _0x41660f(_0x2911f0,_0x1a1622,_0x2c8545,_0x166ab5){return _0x29bb69(_0x2911f0-_0x154290._0x26a4eb,_0x2911f0-_0x154290._0x5bc11f,_0x166ab5,_0x166ab5-0x6a);}function _0x2d4b80(_0x4d6ce9,_0x2c44e6,_0x479370,_0x8775d1){return _0x567203(_0x4d6ce9,_0x2c44e6-0x1b4,_0x8775d1-0x3d3,_0x8775d1-_0x26676b._0x2b98e6);}return{'allCompleted':_0x5927fe,'items':_0xa0a7a4[_0x41660f(_0x1827af._0x250d23,0x3f5,_0x1827af._0x394d50,0x1b1)](_0x4248c4=>({'id':_0x4248c4['id'],'content':_0x4248c4[_0x41660f(0x3d0,0x2ff,0x47c,0x2c7)],'status':_0x4248c4[_0x2d4b80(0x73e,0x5ab,0x625,0x640)],'priority':_0x4248c4[_0x41660f(0x4fe,0x491,0x3ff,0x50a)],'createdAt':_0x4248c4['createdAt']})),'progress':createStatsProgress(_0x2f6171),'recentChanges':!![],'sessionId':_0x1932df,'stats':_0x2f6171,'todosWritten':_0xa0a7a4['length']};}function createOutputText(_0x66ecde,_0x4a610a){const _0x89ef9f={_0x4bced5:0x23,_0x3a685e:0x24f,_0x417f20:0xc6,_0x356b0d:0x3b,_0x312d70:0x56,_0x561bdd:0x1ce,_0x5ddf11:0x1d9,_0x5c03b3:0xb4,_0x4f5d40:0xf,_0x5a5fb9:0x112,_0x51251e:0xa9,_0x2e1d33:0x185,_0x4abcd3:0x152},_0x882a4a={_0x4ada71:0x9e,_0x237409:0x138},_0x4fa0dd={_0x372573:0x136,_0x5059cf:0x9b},_0x1bd221=JSON[_0x18de97(-_0x89ef9f._0x4bced5,-0x10b,-0xad,0x133)](createReminderItems(_0x66ecde));if(_0x4a610a)return _0x18de97(0x13b,0x214,_0x89ef9f._0x3a685e,_0x89ef9f._0x417f20)+_0x66ecde[_0x18de97(-0x18,_0x89ef9f._0x356b0d,-0x123,_0x89ef9f._0x312d70)]+_0x18de97(0x236,0x14c,_0x89ef9f._0x561bdd,0x2c9)+_0x1bd221+_0x18de97(0xa9,0x189,_0x89ef9f._0x5ddf11,-0x5f);function _0x18de97(_0x48d724,_0x35fa85,_0x579c35,_0x52cfed){return _0x29bb69(_0x48d724-0x116,_0x48d724-_0x4fa0dd._0x372573,_0x35fa85,_0x52cfed-_0x4fa0dd._0x5059cf);}function _0xf19714(_0xc1a8cf,_0x5cec9d,_0x54fb69,_0x51988e){return _0x567203(_0xc1a8cf,_0x5cec9d-_0x882a4a._0x4ada71,_0x5cec9d-0x26,_0x51988e-_0x882a4a._0x237409);}return _0xf19714(_0x89ef9f._0x5c03b3,0x45,_0x89ef9f._0x4f5d40,-_0x89ef9f._0x5a5fb9)+_0x1bd221+_0x18de97(_0x89ef9f._0x51251e,0x38,_0x89ef9f._0x2e1d33,_0x89ef9f._0x4abcd3);}function createTodoWriteTool(_0x26afa4=new TodoStore()){const _0x44b4f3={_0x140a96:0x247,_0x20b441:0x111,_0x476052:0x58f,_0x1648f8:0x5b8,_0x1247e7:0x6a7,_0x16f053:0x7fd,_0x3ff8ec:0x6ff,_0x47104d:0x632,_0x3f9fc5:0x540,_0x5eba1b:0x1c6,_0x5d3641:0x70,_0x5b53ef:0x434,_0x37f784:0x455,_0x258f0f:0x11a,_0x38cb32:0x343,_0x59ac22:0x11c,_0x2094e8:0x128,_0x1a4d44:0x221,_0x1e3d73:0x15f},_0x2f69fe={_0x64c38c:0x6a0,_0x36ffd5:0x5cd,_0x2b96e8:0x4bf,_0x464c7e:0x387,_0x5f4e46:0x4ac,_0x50be5a:0x5a7,_0x402e0a:0x4de,_0x18c229:0x5df,_0x19d5be:0x130,_0x559633:0x7,_0x372bb2:0x173,_0x2faa13:0xf5,_0x4ff613:0x1ac,_0xc1173:0x4d6,_0x4e83a5:0x683,_0x51b9fd:0xaa,_0x282b63:0x142,_0x468e63:0x1ad,_0xcf0003:0x59,_0x3369c9:0x71d},_0x50c368={_0x4bc01d:0x2f,_0x3872c9:0x48f},_0x512849={_0x22256c:0x41};function _0x24673e(_0x4e04a3,_0x1cd797,_0x24207f,_0x4c26ed){return _0x567203(_0x24207f,_0x1cd797-0x1c3,_0x1cd797- -_0x512849._0x22256c,_0x4c26ed-0x145);}function _0x2df583(_0x41c683,_0x5d3a1a,_0x31de56,_0x1c3fc1){return _0x567203(_0x31de56,_0x5d3a1a-_0x50c368._0x4bc01d,_0x41c683-_0x50c368._0x3872c9,_0x1c3fc1-0x15b);}return defineTool({'name':'TodoWrite','description':_0x24673e(_0x44b4f3._0x140a96,_0x44b4f3._0x20b441,0x91,-0x3b),'inputSchema':{'type':_0x2df583(0x6a7,0x5ca,_0x44b4f3._0x476052,0x79e),'properties':{'todos':{'type':_0x2df583(_0x44b4f3._0x1648f8,0x615,0x534,0x5fe),'items':{'type':_0x2df583(_0x44b4f3._0x1247e7,_0x44b4f3._0x16f053,_0x44b4f3._0x3ff8ec,_0x44b4f3._0x47104d),'properties':{'content':{'type':'string'},'status':{'type':_0x2df583(_0x44b4f3._0x3f9fc5,0x579,0x56f,0x4db)},'priority':{'type':_0x24673e(_0x44b4f3._0x5eba1b,_0x44b4f3._0x5d3641,0xba,0x8f)},'id':{'type':_0x2df583(0x540,_0x44b4f3._0x5b53ef,_0x44b4f3._0x37f784,0x4b8)},'createdAt':{'type':'string'}},'required':[_0x24673e(0x21d,0xdb,_0x44b4f3._0x258f0f,-0x51),_0x24673e(0x19b,0x22c,_0x44b4f3._0x38cb32,_0x44b4f3._0x59ac22),'priority','id']}}},'required':[_0x24673e(0x70,_0x44b4f3._0x2094e8,_0x44b4f3._0x1a4d44,_0x44b4f3._0x1e3d73)]},async *'execute'(_0xc61e0b,_0x41854f){const _0x4ce5af={_0x1c3bac:0x19,_0x1de266:0xb4,_0x17e287:0x19e},_0x54471b={_0x50c973:0x11a};function _0x3eaaf0(_0x5043dd,_0x35b000,_0x16e5be,_0x30b6a1){return _0x24673e(_0x5043dd-0x146,_0x35b000- -0xe7,_0x30b6a1,_0x30b6a1-_0x54471b._0x50c973);}const _0x5eef1c=_0xc61e0b;validateTodos(_0x5eef1c);const _0x52bdbb=_0x41854f['sessionId']||_0x58db7d(_0x2f69fe._0x64c38c,_0x2f69fe._0x36ffd5,0x6de,0x6a7),_0xd13eae=new Date()[_0x58db7d(_0x2f69fe._0x2b96e8,_0x2f69fe._0x464c7e,_0x2f69fe._0x5f4e46,_0x2f69fe._0x50be5a)](),_0x20e0ef=_0x5eef1c[_0x58db7d(0x71a,_0x2f69fe._0x402e0a,_0x2f69fe._0x18c229,0x613)][_0x3eaaf0(-0xcf,-_0x2f69fe._0x19d5be,-_0x2f69fe._0x559633,-0x8b)](_0x3a1b19=>({'id':_0x3a1b19['id'],'content':_0x3a1b19[_0x58db7d(0x631,0x5fc,0x592,0x5e7)],'status':_0x3a1b19[_0x3eaaf0(0x1d3,0x145,0x45,0xe3)],'priority':_0x3a1b19[_0x58db7d(0x5dc,0x80c,0x6c0,0x7a5)],'sessionId':_0x52bdbb,'createdAt':_0x3a1b19[_0x3eaaf0(-0x152,-0x128,-0x128,-0xfa)]||_0xd13eae,'updatedAt':_0xd13eae}));_0x26afa4[_0x3eaaf0(-_0x2f69fe._0x372bb2,-_0x2f69fe._0x2faa13,-0x9a,-_0x2f69fe._0x4ff613)](_0x52bdbb,_0x20e0ef);const _0x301ceb=_0x26afa4[_0x58db7d(_0x2f69fe._0xc1173,_0x2f69fe._0x4e83a5,0x5db,0x702)](_0x52bdbb);function _0x58db7d(_0x3aadf1,_0x433db5,_0xd8f4cc,_0x153cc1){return _0x2df583(_0xd8f4cc- -_0x4ce5af._0x1c3bac,_0x433db5-_0x4ce5af._0x1de266,_0x153cc1,_0x153cc1-_0x4ce5af._0x17e287);}const _0x1f8d97=_0x20e0ef[_0x3eaaf0(-_0x2f69fe._0x51b9fd,-_0x2f69fe._0x282b63,-_0x2f69fe._0x468e63,-_0x2f69fe._0xcf0003)]>0x0&&_0x20e0ef[_0x58db7d(_0x2f69fe._0x3369c9,0x50e,0x628,0x5b3)](_0x3cacef=>_0x3cacef[_0x58db7d(0x6c0,0x63c,0x6e3,0x62e)]===_0x58db7d(0x53a,0x780,0x62e,0x6d7));return createToolOutput(createOutputText(_0x20e0ef,_0x1f8d97),createStructuredResult(_0x52bdbb,_0x20e0ef,_0x301ceb,_0x1f8d97));}});}import{mkdir as _0x4b0df1,writeFile as _0x3d16ed}from'fs/promises';import*as _0x142ded from'path';function sanitizeFileName(_0x413e4b){const _0x3a76f0={_0x5a2290:0x19},_0x57fb15={_0x7ddd90:0x199};function _0xc8f8aa(_0xcddb35,_0x54002f,_0x1371f6,_0x234ce9){return _0x29bb69(_0xcddb35-0x1ab,_0xcddb35-0x115,_0x54002f,_0x234ce9-_0x57fb15._0x7ddd90);}return _0x413e4b[_0xc8f8aa(0xca,-_0x3a76f0._0x5a2290,0x3,0x184)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x51b10c,_0x465f5b){const _0x4a4e2b={_0x487e0b:0x16b,_0x994d27:0x134,_0x34fb94:0x166,_0x269884:0x5,_0x2b94b4:0xa,_0x10dfd0:0x144,_0xf6094d:0x33,_0x4e6362:0x14c,_0x231154:0x4d,_0x2810b3:0x26,_0x4ec61f:0x69,_0x2be3fb:0xee,_0xc04f5a:0xd,_0x329d63:0xdb,_0x23cba5:0x8c,_0x1c63dd:0xa9,_0x3ec1ef:0x21,_0x2d422f:0x15b,_0x5dda9d:0xd6,_0x1a6d3f:0x179,_0x1173b7:0x70,_0x569b99:0x58,_0x5c646a:0x130,_0x32b86f:0xbc,_0x455d6c:0x90,_0x42cc32:0x24,_0x518092:0x120,_0x3050f0:0x226,_0x1891f6:0x83,_0x31b026:0x245,_0x55960d:0x101,_0x25de51:0x121,_0x43ed8b:0x54,_0x88bac2:0x23d,_0xc1f68c:0x124,_0x220e07:0x24d,_0x3fb529:0x1a6,_0x5df6a4:0x1ef,_0x26553c:0x59,_0x3fa69e:0xee,_0x4917f7:0xf6,_0x5737f8:0x6a,_0xf0bb76:0x170,_0x58459f:0xb4,_0x31fb12:0x27,_0x2c017d:0xd6,_0x22c8f2:0x15b,_0x54f13c:0x2f5},_0x1cce1b={_0x821d68:0xf9,_0x4613ef:0x72},_0x44a1f2={_0x4daa35:0x15e},{maxBytes:_0x254592,sessionDir:_0x1d4e77}=_0x465f5b;if(!_0x51b10c[_0x1380f0(_0x4a4e2b._0x487e0b,_0x4a4e2b._0x994d27,0x63,_0x4a4e2b._0x34fb94)]||Buffer['byteLength'](_0x51b10c['output'],_0x3d5c3a(-0x14c,-0x276,-0x216,-_0x4a4e2b._0x269884))<=_0x254592)return _0x51b10c;function _0x3d5c3a(_0x314be1,_0x215348,_0x14c116,_0x3a59da){return _0x567203(_0x14c116,_0x215348-_0x44a1f2._0x4daa35,_0x314be1- -0x1e2,_0x3a59da-0x11f);}const _0x2dc66a=Buffer['byteLength'](_0x51b10c[_0x3d5c3a(-0x3c,_0x4a4e2b._0x2b94b4,-_0x4a4e2b._0x10dfd0,-_0x4a4e2b._0xf6094d)],_0x3d5c3a(-_0x4a4e2b._0x4e6362,-_0x4a4e2b._0x231154,-_0x4a4e2b._0x2810b3,-_0x4a4e2b._0x4ec61f));if(!_0x1d4e77){const _0x32358b=_0x51b10c[_0x3d5c3a(-0x3c,_0x4a4e2b._0x2be3fb,0xd5,-0xf0)][_0x3d5c3a(-_0x4a4e2b._0xc04f5a,0x105,0x86,-_0x4a4e2b._0x329d63)](0x0,_0x254592);return{..._0x51b10c,'output':_0x32358b+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x254592+_0x3d5c3a(_0x4a4e2b._0x23cba5,0x146,-_0x4a4e2b._0x1c63dd,0x1b)+_0x2dc66a+'\x20bytes).\x20No\x20session\x20directory\x20available\x20for\x20file\x20offload.\x0a</system-reminder>'),'meta':{..._0x51b10c[_0x1380f0(-_0x4a4e2b._0x3ec1ef,0xd6,0x206,0xd7)],'truncated':!![],'originalBytes':_0x2dc66a,'transforms':[..._0x51b10c[_0x1380f0(_0x4a4e2b._0x2d422f,_0x4a4e2b._0x5dda9d,0x203,0x1dd)][_0x1380f0(0x224,0xfd,0x19a,-0x4f)],_0x1380f0(0x273,0x1c9,0xeb,_0x4a4e2b._0x1a6d3f)]}};}const _0x3faf61=_0x51b10c[_0x3d5c3a(_0x4a4e2b._0x1173b7,0x8e,0x113,0x123)]+'_'+sanitizeFileName(_0x51b10c[_0x1380f0(0x192,0xfc,0x17c,_0x4a4e2b._0x569b99)])+'.log',_0x182a3e=_0x142ded[_0x1380f0(_0x4a4e2b._0x5c646a,_0x4a4e2b._0x32b86f,0xeb,0x36)](_0x1d4e77,_0x3faf61);function _0x1380f0(_0x4f4999,_0x42a964,_0x58a786,_0x3cd881){return _0x567203(_0x4f4999,_0x42a964-_0x1cce1b._0x821d68,_0x42a964- -_0x1cce1b._0x4613ef,_0x3cd881-0x1e5);}await _0x4b0df1(_0x1d4e77,{'recursive':!![]}),await _0x3d16ed(_0x182a3e,_0x51b10c[_0x1380f0(0x27c,0x134,0x1c0,_0x4a4e2b._0x455d6c)],_0x1380f0(0x1e,_0x4a4e2b._0x42cc32,_0x4a4e2b._0x518092,-0x6));let _0x808408=_0x51b10c[_0x1380f0(_0x4a4e2b._0x3050f0,_0x4a4e2b._0x994d27,_0x4a4e2b._0x1891f6,_0x4a4e2b._0x31b026)][_0x3d5c3a(-0xd,-_0x4a4e2b._0x2d422f,_0x4a4e2b._0x55960d,-_0x4a4e2b._0x23cba5)](0x0,_0x254592);const _0x11b25a=_0x808408[_0x1380f0(_0x4a4e2b._0x25de51,0xf5,_0x4a4e2b._0x43ed8b,0x218)]('\x0a');_0x11b25a>_0x254592*0.5&&(_0x808408=_0x808408[_0x3d5c3a(-0xd,-0x6a,0x10,0x88)](0x0,_0x11b25a));const _0x10ffef=['','<system-reminder>',_0x1380f0(_0x4a4e2b._0x88bac2,_0x4a4e2b._0xc1f68c,-0x21,_0x4a4e2b._0x220e07)+_0x254592+_0x3d5c3a(-_0x4a4e2b._0x3fb529,-0x270,-0xd6,-_0x4a4e2b._0x5df6a4)+_0x2dc66a+_0x3d5c3a(-0x142,-_0x4a4e2b._0x26553c,-0x159,-0x237),'Full\x20output\x20saved\x20to:\x20'+_0x182a3e,_0x1380f0(-0x4a,0x4d,_0x4a4e2b._0x3fa69e,-_0x4a4e2b._0x4917f7),_0x1380f0(-_0x4a4e2b._0x5737f8,0x75,_0x4a4e2b._0xf0bb76,-0x13)][_0x3d5c3a(-_0x4a4e2b._0x58459f,0x9a,-0x1b8,-_0x4a4e2b._0x31fb12)]('\x0a');return{..._0x51b10c,'output':_0x808408+_0x10ffef,'meta':{..._0x51b10c[_0x1380f0(0x1b0,_0x4a4e2b._0x2c017d,_0x4a4e2b._0x22c8f2,0x10e)],'truncated':!![],'originalBytes':_0x2dc66a,'transforms':[..._0x51b10c['meta']['transforms'],_0x1380f0(_0x4a4e2b._0x54f13c,0x1c9,0x118,0x77)]}};}import{readFile as _0xfca914,stat as _0x2712c5}from'fs/promises';function _0x3422(){const _0x39a1ce=['vg9KBYa','DxrMoa','BMf2','y29UBMvJDa','C3rHCNreAxi','Bwf4','qxzHAwXHyMXLignVBw1HBMrZoG','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','igzHAwXLzc4','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','ywXS','igj5DgvZks4','zgvUBY5QC29U','yxv0Ag9YAxPHDgLVBL9JB2rL','DgL0Bgu','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','yMfZAwm','CMvZB2X2zq','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','A2v5yMLUzgLUz3m','C2vZC2LVBG','B2XSyw1H','AwzYyw1L','C291CMnL','zMLUza','DhnJ','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','C3rYAw5N','AxnjBNrLz2vY','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','oIbPBNzHBgLKihbYAw9YAxr5','seLhsa','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','y2fSBgjHy2TvCMW','DhLWzq','r0LgodLH','C2vHCMnOvhLWzq','yM9VBgvHBG','BgLUzuvUza','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','CxvLC3rPB25Z','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','mJu0odK2serADwDr','Cgf0DgvYBG','z2nSAwq','lNrZ','C2vYDMvY','CMLWz3jLCcbMywLSzwq6ia','y2XPzw50CW','Aw1Hz2uVD2vICa','l3vZCI9SB2nHBc9IAw4VCMC','zgvSAw1PDgvY','C2v0','zMLSzvzLCNnPB25Z','Ahr0CdO','ru5pru5u','y2XLyxi','zNjVBq','Dg9Rzw5tDg9YywDLs2v5','B3jPz2LUvg9VBenHBgXjza','BgfUz3vHz2u','CgXHDgzVCM0','zw52','BxrPBwvnCW','ugf0AcbUB3qGzM91BMq6ia','DgvZDa','yxr4','tM8GC3vJAcbMAwXLoIaN','C3vIyxjYyxK','AMf2yxnJCMLWDa','Aw52ywXPzf90B2rVx2L0zw0','B2C6DxbKyxrLzf90Aw1L','yM94zwq','zw5K','Dhj1zwnVBg9Y','zgLHz25VC3rPy3m','B25Jzq','y29Uy2f0','ywXSB3DLzfrVB2XZ','Dg9mB3DLCKnHC2u','vw5RBM93BIb0B29SoIa','pc9ZExn0zw0TCMvTAw5Kzxi+','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','CMvWBgfJzq','C3bSAxq','BhmGlwXH','Agv4','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','Dgf2AwX5','C2HPzNq','A2LSBa','CgLWzq','Aw5KzxHpzG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','C2vYDMvYCW','Bwf0y2HLCW','tunqihrVB2WG','zxH0BMfTzq','C2vYDMvYswq','AxngAwXL','y3jSzG','D2HLCMuGCMC','yMvHCMvY','zMLSzq','v2LUr2v0','zw5HyMXLza','CNnZ','tuLnrtOG','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','mc4WlJa','Bwf4qNL0zxm','w01duca','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','BgfIzwW','tunqihnLCNzLCIa','Cgf0Aa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','ChjLzML4','CgfYC2u','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','tNv2Aw4','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','zMLUywXnzxnZywDLvgv4Da','DxrTx2nVBNrLBNq','AgvHzgvY','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','Aw50zwDLCG','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','vMLLD0zPBgu','BgLUzq','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','y29UDgvUDa','sgLUDa','yMLVBwu','q29Tu3bLyW','ChjLCgfYzunHBgXiAwvYyxjJAhK','C2TPBgXZ','yNvUlMXVy2TI','uKLgrG','z2L0qNjHBMnO','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','ig1HDgnO','y2XVC2u','Dgv4DerVy3vTzw50l2HVDMvY','yxjYyxK','yxjNDw1LBNrZvgv4Da','B3bLBMfPlxjLC3bVBNnLCW','DxrTx2nHBxbHAwDU','Aw5JBhvKzq','AM9PBG','Dgv4DerVy3vTzw50l2rPzenSB3nL','zgf0zxrPBwu','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','BhnWlxbYB3H5','rMLSzsb3CML0DgvUigf0ia','BgLZDfrVB2XZ','y29TBwfUza','Cg9W','CgfJA2fNzs1SB2nRlMPZB24','Aw1Hz2uVANbLzW','qwXSia','C2vHCMnOrgvWDgG','yxjNDw1LBNrZ','y29UDgvUDc10ExbL','CxvLCNK','B3bLBG','y2fJAgvK','y29UzMLN','A2LSBgvK','C3bHD25PBMC','tM8GzgLHz25VC3rPy3m','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','Cg5WBs1SB2nRlNLHBwW','yxnJAwK','r2XVyG','Bwv0yq','Aw5JBhvKzxm','mJa1mZi1mfnUtwPYsG','y29UC3rYDwn0B3i','ywDLBNrZ','CM9VDa','zg9JDw1LBNrtEw1IB2W','CgfYC2vjBNq','oIbJB250zw50ihjLCxvPCMvK','lM51DMLU','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','vw50AxrSzwq','lMPWzW','CNvUswq','Cgf0DgvYBIbPCYbYzxf1AxjLza','qxnRvxnLCLrVB2W','Dg9KB3ncEvnLC3nPB24','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','z29Vz2XLlwnZzq','AxngAw5PDgu','zxH0zw5ZAw9UCW','BNvT','ls1NBg9Ipq','zxHPDcbJB2rLia','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','Aw5FChjVz3jLC3m','y3DK','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','Aw1Hz2vZ','z2v0u3rHDhm','y29UDgv4DeXPBMS','BgfZDeLUzgv4t2y','Bg93','Dg9KB3m','DhjHBNnWB3j0','zgvSzxrL','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','C2vSzwn0Aw9UuMfUz2u','y2fSBeLK','DhjHBNnMB3jTCW','CMvHC29U','AxnbCNjHEq','y291BNq','uhvIBgLZAgvKoIa','zgvSzwDHDgvKlxj1BI0','yxjNDw1LBNriAw50','DMfSDwu','Ag9TzwrPCG','CgfJA2fNzu5HBwu','AhLKCMf0zu1LDge','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','C3rKAw4','lunVBw1HBMq','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','C29Tzq','zgLYzwn0B3j5','ignVBxbSzxrLzc4','Aw5ZDhj1y3rPB25Z','ie9sia','Dg9WAwm','ugf0AcbPCYbUB3qGysbMAwXLoIa','yxnPzgu','ywXSu2v0DgXLza','y2f0y2G','iYmGu2TPBgW6ia','B3rOzxi','zw50CMLLCW','ls1WCMvMAxG','l3bPza','BgLUAW','Dg90ywW','ygbG','D2fPDezVCKrPywDUB3n0AwnZ','BNbT','zMLUzfjLzMvYzw5Jzxm','yMfZzty0','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','BgLI','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','CMvZDwX0','CgfYzw50u2vZC2LVBKLK','tgLUzsa','Ag92zxi','ls1NBg9I','BNvTyMvY','BxvSDgLtzwXLy3q','C2L0ztO','zhj5uNvU','qMfZzsbKAxjLy3rVCNK6ia','C3rVCMfNzurPCG','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','BM9Zy3jPChq','C3rHDhvZvgv4Da','BgfUz18','B3v0Chv0','C2nYAxb0','AgvHzgvYCW','C2nVCgvZ','BwvZC2fNzq','Bg9HzfnRAwXS','zxHPDa','xg5DkJ8','B2zMC2v0','l3vZCI9IAw4VyMfZAa','ywn0AxzL','l29WDc9OB21LyNjLDY9IAw4VCMC','zxzLCNK','BxrPBwu','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','mtHMyLLjBKS','DgLTzw91De1Z','CgfZC3rOCM91z2G','y29TCgXLDgvK','yxnZAwDU','ls1OAwrKzw4','DgLTzvTKyxrLDgLTzv0','yM0Ynq','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','CMvJzw5JEurHExm','Dg9Rzw5Z','zgLNzxn0','C3rKAw8','Dg9Rzw4','DxnLCM5HBwu','uxvLC3rPB24G','Bg9JyxrPB24','B2XKvgv4Da','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','lNbUzW','A2LUza','qxnZAwDUvgfZAW','B3jPz2LUywW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','zgv0ywLS','Dhj1BMm','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','y2XPzw50sw5MB3jTyxrPB24','Dw5RBM93BG','C3rHDgu','Aw5PDgLHBgL6yxrPB24','ywDLBNrjza','C2XPy2u','t0zg','C3rHCNq','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','BM90Awz5','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','zg9TywLUCW','DhjPBuvUza','yxjNDw1LBNroyw1LCW','cGOTls0kcG','yMLVBwuUANnVBMm','Bwv0yxrHz3m','yxv0AfjLCxvPCMvK','y29UDgvUDhm','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','BhnW','BgLNAhq','w1bFxL1BxhnCu10QpW','Bg9JywXLq29TCgfYzq','CgLK','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','sw52ywXPzcbvuKWGCgfYyw1LDgvY','ChvZAa','BwLU','CMvXDwvZDa','CgfZC3DVCMq','zgfYAW','C2H1DgrVD24','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','y29UBMvJDgLVBG','BwnFzwLK','DgfZAW','rgv0ywLSoIa','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','AxneAxjLy3rVCNK','B3v0z29PBMDdywXSCW','l2jPBI9YzW','ugfJA2fNzxm','B3b0Aw9UCW','y2XPzw50','AwDUB3jL','C3rKzxjY','Ec1HCgKTA2v5','tg9HzgvKigzYB206ia','Aw52ywXPzf90B2rVx2LK','yMLYDgH0Aw1L','y29KzvzLCMLMAwvY','DxjP','DxjS','Bw9Kzq','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','C3bHD24','A2v5','lcbpChrPB24G','zw5NAw5LCW','ndu1odCWBNfpsNvi','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','lu5VuhjVzMLSzq','rMLSzvjLywq','zgLZy292zxj5u3rHDgu','BgLUzvn0yxj0','BMfTzq','B25szwrPCMvJDa','B2jQzwn0','Dgf2AwX5qxbPs2v5','CMvXDwvZDhm','BM93','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','uhjVz3jHBuzPBgvZkhG4nIK','zxjYB3jnzxnZywDL','Dgv4Da','C2HHmJu2','Aw1WBgvTzw50yxrPB24','B2zM','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBfjLC3vSDhm','sw52B2TLq29TBwfUza','CMfUz2u','mta2nJeXmKrmugv2Aa','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','zhvWBgLJyxrLx3rVzg9FAwrZ','BgLUzxm','C25PChbLDa','CMCUzxHL','yxbPs2v5','Dgv4Dc9ODg1S','ue9tva','DgHLBG','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','rMLSzuvKAxq','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','C2H1DgrVD25tDgfYDgvK','CMvNAw9U','yw5ZAti1nG','DxrTx3nVDxjJzq','AMf2yxnJCMLWDhjLywn0','AgfUzgXL','Dg9VBc1VDxrWDxqTB2zMBg9Hza','Aw1Hz2uVz2LM','CM91BMq','lMn0CW','rgLHz25VC3rPyW','AxnbyNnVBhv0zq','DhLWzxnJCMLWDa','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','z2XVyG','zw5NAw5L','ywXSB3DLzerPCNm','mJG3mtGWqw9Av3bP','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','o1TE','ChjPB3jPDhK','zMvUy2vK','DhnJB25MAwCUANnVBG','AgfZq2XPzw50CW','C2fMzq','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','ywjVCNq','Dg9VBhm','Dg9VBe5HBwu','oIbPBNzHBgLKihn0yxr1CW','zgvMAw5PDgLVBG','Aw5ZDgfSBa','yMfZzw5HBwu','v2vIrMv0y2G','lNDLyNa','CMfUAW','CMvXDwLYzwq','DxrTx3rLCM0','lNrTCc4','C2vUza','ksbB','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','ndmWmJK3mhHHrw9myW','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','y2HHCMfJDgvY','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','yxv0Aa','BgL0zxjHBa','CMvJB3jK','zgvMyxvSDa','u3rVCcbYzwfKAw5Nigf0ihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','BgLUzvrLEhq','CMvMzxjLBMnLCW','te9dquXbufbeqvrb','C3rHDhvZ','igj5DgvZicHVCMLNAw5HBdOG','AgfZ','y29Kzq','yNjVA2vU','ywrKrxzLBNrmAxn0zw5LCG','igzYB20G','y2fSBfrVB2W','oIbPzcbYzxf1AxjLza','z2v0vg9KB3m','CxvLC3rPB24','B3b0Aw9UywW','twLJCM9ZB2z0','C29YDa','zNvUy3rPB24','Dg9VBa','y2vPBa','lMDPzG','ANnVBMm','y2fWywjPBgL0AwvZ','AgLNAa','CgXHAw50zxH0','z29uB0LTCgXLBwvUDgf0Aw9U','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','lw5i','lI4U','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','AxnfBMfIBgvK','C3rYAw5NAwz5','y29UDgv4Da','BgLTAxq','lMPZB25J','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','DhvYBMrVD24','yw5ZD2vYCW','CgfJA2fNzxm','Dgv4DerVy3vTzw50l2rPze9Wzw4','mZa2mdqXne5hvezUqG','ChjVCgvYDgLLCW','BgvUz3rO','lMPZEa','zgvMyxvSDen3za','yNvUlMXVy2S','DhjPBq','C3rKB3v0','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','Dg9tDhjPBMC','C2vYDMvYtMfTzq','Ag9ZDa','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','tM8GAg92zxiGAw5MB3jTyxrPB24','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','BwvKAxvT','Aw5JB21PBMDdywXSCW','C3rYAxbbBNnP','zgLZy292zxj5','BwfW','EwvZ','lMPZB24','ChjVDg9JB2W','ChvIBgLZAgvKqxq','CgfNzw1HCa','lNrZEa','CNvUBMLUzW','y3jLyxrLzef0','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','CMfUzg9T','y2HHCKnVzgvbDa','zMLSztOVlW','BwnWxW','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','C3rHCNrZv2L0Aa','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','yxv0BW','zMXVB3i','Ahr0Ca','B25oB3rPzMLJyxrPB24','vw5HDxrOB3jPEMvKrxjYB3i','AxnfCNjVCG','zgLZywjSzwq','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','DMvYAwzPzxi','Aw52ywXPzf90B2rVCW','zxjYB3i','yMLUyxj5tMfTzq','ywjVCNrLza','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','Bw9KzwW','sfruuca','o1TExg5DkJ8','Aw5WDxq','zMLSDgvY','EwfYBI5SB2nR','Dg9VBenHBgXjza','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','C2vZC2LVBKLK','D2LUmZi','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','l2jPBI9ZAa','C2vUze5VDgLMAwnHDgLVBG','l2jPBI9IyxnO','sw5MB3jTyxrPB24','ANnVBG','qMfZAa','ls1ZDgrPBW','zgvZy3jPChrPB24','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','DhLWzxnJCMLWDhjLywn0','l3vZCI9IAw4VCMC','nde0z0jkywr1','AxndB250zxH0','CgvUzgLUzW','zNvSzMLSBgvK','B3bLBKzPBgvZ','C2v0vg9KB3m','C2vUzfjLCxvLC3q','zgLYBMfTzq','Dg9ju09tDhjPBMC','zMfPBgvK','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','tM8GBg9JyxrPB25ZigzVDw5K','ihDHCYbHyM9YDgvKlG','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','igj5DgvZicH0B3rHBdOG','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','lMPWzwC','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','zM9VDgvY','yxbWBgLJyxrPB24VANnVBG','zMXHDe1HCa','te9x','DhnZzxj2zxiUANm','AxrLBxm','zgLZCg9Zzq','BgfUzW','cMbGya','zMLSzvbHDgG','BM9Kzv9TB2r1BgvZ','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','qMvHCMvYia','ienHDxnLoIa','Aw1Hz2u','B2f1DgG','y29TBwfUzhm','C2LNBMfS','y2XLyw51Ca','lMPZ','C3jJl2v4yw1WBgvZl2rLBw8UDhm','tg9HzfnRAwXS','u0HfteW','BgLZDgvU','D2HPy2GGCMC','y2HHBMDL','zgf0yq','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','y29ZDa','B3bLCMf0Aw9U','Dw5PB24','B3bLBMfPlxjLC3bVBNnLCY13CW','DhvWBgu','CMvZDwX0CW','Dg9VBhmVy2fSBa','qxv0Ag9YAxPHDgLVBG','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','rMLSzu5LDW','Ahr0Chm6','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','lMnTza','D3jPDgu','Aw52ywXPzf90B2rVx2nVBNrLBNq','ywrK','C2L6zq','yxjNCW','CgfJA2fNzs5QC29U','y29UBMvJDgvK','CMLWz3jLCa','A2v5CW','D29YA3nWywnLu3LTyM9S','BM9Uzq','CgXHAw4','CMvSyxrPDMu','z29Vz2XLq3nLs2v5','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','CxvLC3rPB24T','zMLUywXnzxnZywDL','yxr0CG','rMv0y2GGywjVCNrLzcbIEsb1C2vY','cGPbuKDvtuvovfm6ia','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','lM10CW','zgvUBY5QC29UyW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','u2HLBgWGBM90igzVDw5KoIa','z2v0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','C2v2zxjPDhK','wZ0+nY04kcLD','zw51Bq','BMv3vgv4Da','AhrTBfnUAxbWzxq','C2HLBgXqyxrO','C2vHCMnOugfYyw1Z','v2fYBMLUzW','ls1JB2X1Bw4','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','ChjVy2vZCW','z29uB0rLzMLUAxrPB24','y2XPzw50x3nLy3jLDf9WB3n0','zgf0zvjLC3rYAwn0','zMLYC3q','v0vcua'];_0x3422=function(){return _0x39a1ce;};return _0x3422();}import*as _0x5c4e31 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x567203(0x29,-0x14d,0x9,0x98),_0x29bb69(-0xbc,-0x161,-0xb9,-0x14c),_0x567203(0x169,0x284,0x168,0x59),_0x29bb69(-0x53,0x97,0x166,0x14c)]),PNG_SIGNATURE=Buffer[_0x567203(0x17,0xa,0xcf,0x1b0)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x49e418,_0x3efd1d){const _0x325816={_0x47b2f8:0x2d2,_0xcebfc4:0x1da,_0x680a84:0xcc,_0x31031a:0x15b,_0x1709f1:0x2f8,_0x35fad6:0x597,_0xcd5d4d:0x344,_0x2700af:0x2a0,_0x1e9285:0x179,_0x10ef99:0x18a,_0x20096a:0x160,_0x1094fa:0x336,_0x16e36c:0x1e8,_0x750a11:0xc1,_0x1aad77:0x239,_0x206c88:0x90,_0x64c76b:0x1c5,_0x5e862e:0x1bc,_0x42caff:0x20c,_0x6fc736:0x29c,_0x435df6:0x3f2,_0x1d64c8:0x363,_0x223790:0x2a9,_0x1621fb:0x151,_0xcdb473:0x20b,_0x5b24e8:0x169,_0x54684e:0x2a3,_0x1ca6d5:0x1d4,_0x2e8988:0x309,_0x399b52:0x1ae,_0x353502:0x187,_0x146635:0x6d,_0x3a5294:0x2b8,_0x4058ae:0x26a,_0x113e51:0x289,_0x3c4b28:0x315,_0x4ca5cf:0x417,_0x4cd45e:0x2ab,_0x37c01d:0x1ef,_0x147893:0x24e,_0x256992:0x1fe,_0x4b576a:0x269,_0x2f6db8:0xbe,_0x33f786:0x446,_0x201f58:0x57e,_0xfea441:0x249,_0x12b9d4:0x2d7,_0x434775:0x241},_0x3a3d86={_0x5ba223:0x32,_0x524479:0x170},_0x1a88a6={_0x5e14da:0x196,_0x372c46:0xa2,_0x42ea80:0xa3};function _0x5be24b(_0x14417c,_0x5984c7,_0x5a851e,_0x1f15cf){return _0x567203(_0x14417c,_0x5984c7-_0x1a88a6._0x5e14da,_0x5984c7-_0x1a88a6._0x372c46,_0x1f15cf-_0x1a88a6._0x42ea80);}if(_0x49e418[_0x3d8a82(0x1e5,0x2ea,0x2b4,0x268)](0x0,0x8)['equals'](PNG_SIGNATURE))return'image/png';if(_0x49e418[0x0]===0xff&&_0x49e418[0x1]===0xd8&&_0x49e418[0x2]===0xff)return _0x5be24b(_0x325816._0x47b2f8,_0x325816._0xcebfc4,0x2b8,0x166);const _0x3c4d52=_0x49e418['subarray'](0x0,0x6)['toString']('ascii');if(_0x3c4d52==='GIF87a'||_0x3c4d52===_0x5be24b(_0x325816._0x680a84,_0x325816._0x31031a,0x139,0x1ac))return _0x3d8a82(_0x325816._0x1709f1,0x44c,_0x325816._0x35fad6,_0x325816._0xcd5d4d);if(_0x49e418[_0x5be24b(_0x325816._0x2700af,0x17c,0x18b,_0x325816._0x1e9285)](0x0,0x4)[_0x3d8a82(_0x325816._0x10ef99,0x1fe,0x2c9,_0x325816._0x20096a)](_0x5be24b(_0x325816._0x1094fa,_0x325816._0x16e36c,_0x325816._0x750a11,_0x325816._0x1aad77))===_0x5be24b(_0x325816._0x206c88,_0x325816._0x64c76b,_0x325816._0x5e862e,0x271)&&_0x49e418[_0x3d8a82(_0x325816._0x42caff,0x2ea,_0x325816._0x6fc736,0x26e)](0x8,0xc)['toString'](_0x3d8a82(_0x325816._0x435df6,0x356,0x300,_0x325816._0x1d64c8))===_0x3d8a82(_0x325816._0x223790,0x2a4,_0x325816._0x1621fb,_0x325816._0xcdb473))return _0x5be24b(0x2ba,_0x325816._0x5b24e8,_0x325816._0x54684e,_0x325816._0x1ca6d5);const _0x32ed2b=_0x5c4e31[_0x3d8a82(0x2cd,_0x325816._0x2e8988,0x309,0x329)](_0x3efd1d)[_0x5be24b(_0x325816._0x399b52,_0x325816._0x353502,_0x325816._0x146635,0x1c8)]();if(_0x32ed2b===_0x5be24b(_0x325816._0x3a5294,_0x325816._0x4058ae,_0x325816._0x113e51,_0x325816._0x3c4b28))return'image/png';function _0x3d8a82(_0x1c72bc,_0x2c46c4,_0x528af4,_0x55dd4e){return _0x29bb69(_0x1c72bc-_0x3a3d86._0x5ba223,_0x2c46c4-0x344,_0x528af4,_0x55dd4e-_0x3a3d86._0x524479);}if(_0x32ed2b===_0x3d8a82(_0x325816._0x4ca5cf,0x364,0x2ab,_0x325816._0x4cd45e)||_0x32ed2b===_0x3d8a82(_0x325816._0x37c01d,_0x325816._0x147893,0x229,_0x325816._0x256992))return'image/jpeg';if(_0x32ed2b===_0x3d8a82(_0x325816._0x4b576a,0x1e0,0x2cc,_0x325816._0x2f6db8))return _0x3d8a82(0x570,0x44c,_0x325816._0x33f786,_0x325816._0x201f58);if(_0x32ed2b==='.webp')return _0x3d8a82(_0x325816._0xfea441,_0x325816._0x12b9d4,_0x325816._0x434775,0x225);return void 0x0;}function normalizeDetail(_0x50c266){const _0x45934c={_0x33f8b9:0x4df,_0x13efb8:0x611,_0x21c3b9:0x744,_0x355647:0x7f},_0x511a2e={_0x31217c:0x9b,_0x6baedb:0x1fe},_0x5f0d99={_0x1813e9:0x4f5};function _0xa74bdf(_0x51b9e6,_0x4460b0,_0x511135,_0x3cac1b){return _0x567203(_0x511135,_0x4460b0-0x12,_0x3cac1b-_0x5f0d99._0x1813e9,_0x3cac1b-0x1e1);}if(_0x50c266===void 0x0)return void 0x0;const _0x29ebc7=_0x50c266[_0xa74bdf(0x59a,0x39b,0x432,_0x45934c._0x33f8b9)]()['toLowerCase']();function _0x2416ad(_0x3fcf4d,_0x4240b5,_0x5b8033,_0xc33c){return _0x29bb69(_0x3fcf4d-_0x511a2e._0x31217c,_0x5b8033-_0x511a2e._0x6baedb,_0x4240b5,_0xc33c-0x1a9);}if(!SUPPORTED_DETAILS[_0xa74bdf(_0x45934c._0x13efb8,0x6c8,_0x45934c._0x21c3b9,0x764)](_0x29ebc7))throw new ToolExecutionError(_0x2416ad(0x1b8,0x74,0xb7,_0x45934c._0x355647)+_0x50c266,{'detail':_0x50c266});return _0x29ebc7;}function createViewFileTool(_0x5ddd96={}){const _0x48cfc7={_0x2626b0:0x3ac,_0x1f0a67:0x58c,_0x361f47:0x5cf,_0x2edbb4:0x6b3,_0x44852a:0xd0,_0x34274c:0x4b,_0x12f6b9:0x129,_0x5cd3ca:0x163,_0x1b1cb7:0x586,_0x324b7a:0x4d,_0x4d123e:0x90,_0x4f621c:0x83,_0x40a67b:0x94,_0x16f527:0x14f,_0x3aca69:0xcf,_0x51680a:0x543,_0xdbb1f4:0x619,_0x258def:0x5b6},_0xcc2b27={_0x160345:0xeb,_0x3bf1c0:0x132,_0x22b4e8:0x103,_0x2c9189:0x2d8,_0x5b4014:0x228,_0x39d140:0x371,_0xbff99f:0x4b2,_0x1a4b21:0x3b5,_0x4eb819:0x54,_0x2ec705:0xa0,_0x172f37:0xd6,_0x2bf6de:0x107,_0x5626a3:0x3af,_0x1adc71:0x4c7,_0x5a757d:0x394,_0x2850ce:0x333,_0x4417b9:0x3a3,_0x85e429:0x2dd,_0x210cc1:0x3f3,_0x1fe9aa:0x2c7,_0x1fb319:0x285,_0x12f0e8:0x6d,_0x2eb9ad:0x86,_0x1da928:0x123,_0x5b6842:0x125,_0x4de24d:0x1c6,_0x2a55a6:0x2d4,_0x3fce43:0x352,_0x525201:0x2bf,_0x29b24f:0x1c,_0x511963:0x84,_0x2634e6:0x4d0,_0x29a1ed:0x323,_0x1abe9c:0x2ea,_0x1b24f2:0x2ac,_0x5f5618:0x28d,_0x424cd4:0x220,_0x3bbfba:0x20a,_0x5b2116:0x51,_0xd88657:0xd8,_0x377333:0x80,_0x2cfccc:0x21,_0x44b9e8:0x7d,_0x1c048d:0x57,_0x50de76:0x296,_0x1d2df6:0x530,_0x107144:0x3db,_0x201102:0x37,_0x5bb2c3:0x6f,_0x1c78c1:0x10c,_0x25f6cb:0x119,_0x2efb71:0x2c8,_0x149406:0x3c1,_0x2ce9d9:0x36f,_0x16b553:0xd6,_0x862741:0x11a,_0x548cc8:0x51,_0x5f35df:0x55},_0x857969={_0x11de09:0xc1,_0x579253:0x1cb},_0x3663da={_0x57c126:0x46d,_0x41c068:0x63};function _0x276591(_0x5b43fe,_0x2a9fc5,_0x24ff16,_0x5dffb4){return _0x567203(_0x24ff16,_0x2a9fc5-0x100,_0x5dffb4-_0x3663da._0x57c126,_0x5dffb4-_0x3663da._0x41c068);}const _0x4470c7=_0x5c4e31[_0x5d7beb(-0x125,0x30,-0x1c,-0x23a)](_0x5ddd96[_0x276591(0x33b,_0x48cfc7._0x2626b0,_0x48cfc7._0x1f0a67,0x455)]??process[_0x276591(0x4f5,0x4f6,0x655,_0x48cfc7._0x361f47)]()),_0x4a0c37=(_0x5ddd96[_0x276591(0x688,0x77b,0x6ae,_0x48cfc7._0x2edbb4)]??[])['map'](_0x2b88d4=>_0x5c4e31[_0x5d7beb(-0x125,-0x265,-0x13a,0x27)](_0x2b88d4));function _0x5d7beb(_0x1439c5,_0x342dce,_0x34ebdd,_0x30f9d0){return _0x567203(_0x34ebdd,_0x342dce-_0x857969._0x11de09,_0x1439c5- -_0x857969._0x579253,_0x30f9d0-0xbe);}const _0x3128e7=_0x5ddd96[_0x5d7beb(-0xc5,-0xd5,-_0x48cfc7._0x44852a,-0xd6)]??DEFAULT_MAX_BYTES,_0x1dfcba=_0x5ddd96[_0x5d7beb(_0x48cfc7._0x34274c,0x174,_0x48cfc7._0x12f6b9,_0x48cfc7._0x5cd3ca)]??_0x276591(0x651,0x45a,0x5af,_0x48cfc7._0x1b1cb7);return defineTool({'name':_0x1dfcba,'description':'View\x20an\x20image\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories\x20so\x20the\x20model\x20can\x20inspect\x20its\x20visual\x20content.\x20Supports\x20PNG,\x20JPEG,\x20WebP,\x20and\x20GIF\x20images.\x20Use\x20this\x20for\x20screenshots,\x20diagrams,\x20photos,\x20and\x20other\x20image\x20files;\x20use\x20FileRead\x20for\x20text\x20files.','inputSchema':{'type':_0x5d7beb(_0x48cfc7._0x324b7a,_0x48cfc7._0x4d123e,-_0x48cfc7._0x4f621c,-_0x48cfc7._0x40a67b),'properties':{'path':{'type':_0x5d7beb(-0x11a,-0x245,-0x164,-_0x48cfc7._0x16f527)},'detail':{'type':_0x5d7beb(-0x11a,-0xab,-_0x48cfc7._0x3aca69,-0xd0)}},'required':[_0x276591(_0x48cfc7._0x51680a,_0x48cfc7._0xdbb1f4,_0x48cfc7._0x258def,0x578)]},async *'execute'(_0x5c805a){const _0x5229aa={_0x30064f:0x89,_0x135023:0x59},_0x1fc727={_0x44b879:0x96},_0x116f70=resolveAllowedPath(_0x4470c7,_0x4a0c37,_0x5c805a[_0x1e1bee(-0x37,-_0xcc2b27._0x160345,-_0xcc2b27._0x3bf1c0,-0x145)]);await assertWorkspaceFile(_0x116f70);function _0x215e71(_0x3f4221,_0x47d4ee,_0x323d91,_0x143550){return _0x276591(_0x3f4221-0x9e,_0x47d4ee-_0x1fc727._0x44b879,_0x47d4ee,_0x143550- -0x2b1);}const _0x48ab7f=await _0x2712c5(_0x116f70);if(_0x48ab7f[_0x215e71(_0xcc2b27._0x22b4e8,0x132,_0xcc2b27._0x2c9189,_0xcc2b27._0x5b4014)]>_0x3128e7)throw new ToolExecutionError(_0x215e71(_0xcc2b27._0x39d140,0x509,_0xcc2b27._0xbff99f,_0xcc2b27._0x1a4b21)+_0x5c805a['path'],{'path':_0x5c805a[_0x1e1bee(-0x37,_0xcc2b27._0x4eb819,-0x76,-_0xcc2b27._0x2ec705)],'maxBytes':_0x3128e7,'size':_0x48ab7f[_0x1e1bee(-_0xcc2b27._0x172f37,-0x151,-_0xcc2b27._0x2bf6de,-0x87)]});const _0x2ade8c=await _0xfca914(_0x116f70);function _0x1e1bee(_0x2dec32,_0x1da6a4,_0x28da40,_0x5d25e2){return _0x5d7beb(_0x2dec32-_0x5229aa._0x30064f,_0x1da6a4-0x11b,_0x5d25e2,_0x5d25e2-_0x5229aa._0x135023);}const _0x3743ef=detectImageMediaType(_0x2ade8c,_0x116f70);if(!_0x3743ef)throw new ToolExecutionError(_0x215e71(0x45f,_0xcc2b27._0x5626a3,_0xcc2b27._0x1adc71,_0xcc2b27._0x5a757d)+_0x5c805a[_0x215e71(_0xcc2b27._0x2850ce,_0xcc2b27._0x4417b9,_0xcc2b27._0x85e429,0x2c7)],{'path':_0x5c805a[_0x215e71(0x3ae,_0xcc2b27._0x210cc1,0x297,_0xcc2b27._0x1fe9aa)],'supported':[_0x215e71(0x1d4,0x129,_0xcc2b27._0x1fb319,0x18c),_0x1e1bee(-0x104,-0x159,-_0xcc2b27._0x12f0e8,-0x85),_0x215e71(0x43d,0x3ff,0x414,0x310),_0x1e1bee(_0xcc2b27._0x2eb9ad,0x3b,0x96,_0xcc2b27._0x1da928),_0x1e1bee(0x116,_0xcc2b27._0x5b6842,_0xcc2b27._0x4de24d,0x1da)]});const _0x1e4eca=normalizeDetail(_0x5c805a[_0x1e1bee(0x8b,-0x2b,0x171,-0x80)]),_0x28524c=['Viewed\x20image\x20file:\x20'+_0x5c805a[_0x215e71(0x3e1,0x170,0x271,0x2c7)],_0x215e71(_0xcc2b27._0x2a55a6,0x321,_0xcc2b27._0x3fce43,_0xcc2b27._0x525201)+_0x3743ef,'Size:\x20'+_0x48ab7f['size']+'\x20bytes'][_0x1e1bee(-0x5f,_0xcc2b27._0x29b24f,-0x17b,_0xcc2b27._0x511963)](_0x1e4eca?[_0x215e71(0x358,_0xcc2b27._0x2634e6,_0xcc2b27._0x29a1ed,0x3b2)+_0x1e4eca]:[])[_0x215e71(0x23a,0x384,0x199,_0xcc2b27._0x1abe9c)]('\x0a'),_0x249ff8=[{'type':_0x215e71(_0xcc2b27._0x1b24f2,_0xcc2b27._0x5f5618,_0xcc2b27._0x424cd4,_0xcc2b27._0x3bbfba),'source':{'type':_0x1e1bee(_0xcc2b27._0x5b2116,_0xcc2b27._0xd88657,_0xcc2b27._0x377333,0x17e),'media_type':_0x3743ef,'data':_0x2ade8c[_0x1e1bee(-0x154,-0x92,-_0xcc2b27._0x2cfccc,-0x21d)](_0x1e1bee(0x51,_0xcc2b27._0x44b9e8,-_0xcc2b27._0x1c048d,0x8d))}},{'type':_0x215e71(_0xcc2b27._0x50de76,0x493,_0xcc2b27._0x1d2df6,_0xcc2b27._0x107144),'text':_0x28524c}];return yield createToolOutput(_0x28524c,{'path':_0x5c805a[_0x1e1bee(-_0xcc2b27._0x201102,-_0xcc2b27._0x5bb2c3,_0xcc2b27._0x1c78c1,_0xcc2b27._0x25f6cb)],'resolvedPath':_0x116f70,'created':_0x48ab7f[_0x215e71(0x349,0x2fd,_0xcc2b27._0x2efb71,_0xcc2b27._0x149406)][_0x1e1bee(-0x10c,-0x19c,-0x2e,-0x19b)](),'modified':_0x48ab7f[_0x215e71(0x2c3,0x2ca,0x31a,_0xcc2b27._0x2ce9d9)]['toISOString'](),'size':_0x48ab7f[_0x1e1bee(-_0xcc2b27._0x16b553,-_0xcc2b27._0x862741,-_0xcc2b27._0x44b9e8,0x6e)],'mimeType':_0x3743ef,'encoding':_0x1e1bee(_0xcc2b27._0x548cc8,0x7b,-_0xcc2b27._0x5f35df,0x131),..._0x1e4eca?{'detail':_0x1e4eca}:{}},_0x249ff8),void 0x0;}});}import _0x498201 from'turndown';var USER_AGENT=_0x567203(0x1b5,0x12e,0x1bd,0x157),DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x4e9b3e){const _0x4653be={_0x6fb7bf:0x6c0,_0x44e0e3:0x725,_0x3c37bf:0x60a,_0x5484bf:0x645,_0xf9c7b6:0x88,_0x16da7e:0x1e,_0x9784c8:0x33,_0x3425f0:0x4b8,_0x977c72:0x564,_0x4e0e04:0x44e,_0x41268e:0x1dc,_0x37a281:0xc1,_0x4070ef:0x174,_0x3f1295:0x1d1,_0x1c2edd:0x1ae,_0x59031f:0x1e6,_0xe7f6e3:0x15b,_0x2d7094:0x730,_0x3d58b6:0x4bc,_0x14330e:0x3d0},_0x2ca813={_0x3fda40:0xad,_0x55af6d:0x4d},_0x5618c4={_0x5029ae:0x1e8};let _0x282524;try{_0x282524=new URL(_0x4e9b3e);}catch{throw new ToolExecutionError(_0x50357d(_0x4653be._0x6fb7bf,_0x4653be._0x44e0e3,0x6e9,0x601),{'url':_0x4e9b3e});}function _0x66a675(_0x400c49,_0x200b50,_0x367c78,_0x11c5ca){return _0x29bb69(_0x400c49-0x17e,_0x367c78-0x157,_0x200b50,_0x11c5ca-_0x5618c4._0x5029ae);}if(_0x282524['protocol']!==_0x50357d(_0x4653be._0x3c37bf,0x4b9,0x5ca,_0x4653be._0x5484bf)&&_0x282524[_0x66a675(0xfb,_0x4653be._0xf9c7b6,_0x4653be._0x16da7e,-_0x4653be._0x9784c8)]!==_0x50357d(0x60c,_0x4653be._0x3425f0,_0x4653be._0x977c72,_0x4653be._0x4e0e04))throw new ToolExecutionError(_0x66a675(0x14c,_0x4653be._0x41268e,_0x4653be._0x37a281,_0x4653be._0x4070ef),{'url':_0x4e9b3e});if(_0x282524[_0x66a675(_0x4653be._0x3f1295,_0x4653be._0x1c2edd,_0x4653be._0x59031f,0x28c)]||_0x282524[_0x66a675(0x233,0x153,0x212,_0x4653be._0xe7f6e3)])throw new ToolExecutionError(_0x50357d(0x549,0x6d0,0x661,_0x4653be._0x2d7094),{'url':_0x282524[_0x50357d(_0x4653be._0x3d58b6,_0x4653be._0x14330e,0x4f9,0x506)]+'//'+_0x282524['host']+_0x282524['pathname']});function _0x50357d(_0x4b385c,_0x3171d1,_0x125269,_0x4001b5){return _0x29bb69(_0x4b385c-_0x2ca813._0x3fda40,_0x125269-0x632,_0x4001b5,_0x4001b5-_0x2ca813._0x55af6d);}return _0x282524;}function _0x1e3a(_0x5ae72a,_0x4b541f){_0x5ae72a=_0x5ae72a-0x1c9;const _0x34228b=_0x3422();let _0x1e3a7b=_0x34228b[_0x5ae72a];if(_0x1e3a['elkCJR']===undefined){var _0xefc910=function(_0x323a51){const _0x56f8fa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf87fb7='',_0x421f46='';for(let _0x3b43f5=0x0,_0x2771dd,_0x2b97b1,_0x181397=0x0;_0x2b97b1=_0x323a51['charAt'](_0x181397++);~_0x2b97b1&&(_0x2771dd=_0x3b43f5%0x4?_0x2771dd*0x40+_0x2b97b1:_0x2b97b1,_0x3b43f5++%0x4)?_0xf87fb7+=String['fromCharCode'](0xff&_0x2771dd>>(-0x2*_0x3b43f5&0x6)):0x0){_0x2b97b1=_0x56f8fa['indexOf'](_0x2b97b1);}for(let _0x2406e1=0x0,_0x5f0d5f=_0xf87fb7['length'];_0x2406e1<_0x5f0d5f;_0x2406e1++){_0x421f46+='%'+('00'+_0xf87fb7['charCodeAt'](_0x2406e1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x421f46);};_0x1e3a['XZKhuk']=_0xefc910,_0x1e3a['dgrAYK']={},_0x1e3a['elkCJR']=!![];}const _0x1a4fdc=_0x34228b[0x0],_0x575eff=_0x5ae72a+_0x1a4fdc,_0x42659f=_0x1e3a['dgrAYK'][_0x575eff];return!_0x42659f?(_0x1e3a7b=_0x1e3a['XZKhuk'](_0x1e3a7b),_0x1e3a['dgrAYK'][_0x575eff]=_0x1e3a7b):_0x1e3a7b=_0x42659f,_0x1e3a7b;}function createTimeoutSignal(_0x3409a8,_0x1cfb0b){const _0x3c693a={_0x273f44:0x201,_0x4554d0:0x105,_0x3ea193:0x18e,_0x46955c:0x144,_0x1af210:0x5d3,_0x13018c:0x528,_0x29a2ae:0x591,_0x253635:0x3,_0x8b31a0:0xd8,_0x2c08ca:0xe,_0x330f15:0x127},_0x87f604={_0x42b360:0x6b5,_0x260dcf:0x623,_0xd8ea4f:0x545,_0x13c830:0x6b3},_0xb2ffff={_0x5deecd:0x22a},_0xb495c7={_0x4c0344:0xe4,_0x1aa28e:0x2b6},_0x28172c={_0x1ac8f4:0xb7,_0x46fbb4:0x1c2},_0x25bc99=new AbortController(),_0x45e840=setTimeout(()=>_0x25bc99['abort'](new Error('Fetch\x20timed\x20out')),_0x1cfb0b),_0x2c6c47=()=>_0x25bc99[_0x2d5c08(0x1fc,0x215,0x32b,0x203)](_0x3409a8['reason']);function _0x2d5c08(_0x347f1,_0x48bcff,_0x13cfbb,_0x38ba84){return _0x29bb69(_0x347f1-_0x28172c._0x1ac8f4,_0x347f1-0xe0,_0x38ba84,_0x38ba84-_0x28172c._0x46fbb4);}_0x3409a8[_0x400ff5(_0x3c693a._0x273f44,0x2cb,0x1de,0x275)]?_0x25bc99[_0x2d5c08(0x1fc,_0x3c693a._0x4554d0,_0x3c693a._0x3ea193,0xf6)](_0x3409a8[_0x2d5c08(0x11c,-0x31,_0x3c693a._0x46955c,0x0)]):_0x3409a8[_0x400ff5(_0x3c693a._0x1af210,_0x3c693a._0x13018c,_0x3c693a._0x29a2ae,0x5e1)]('abort',_0x2c6c47,{'once':!![]});function _0x400ff5(_0x105c35,_0x119679,_0x327108,_0x442afe){return _0x567203(_0x105c35,_0x119679-_0xb495c7._0x4c0344,_0x119679-_0xb495c7._0x1aa28e,_0x442afe-0xd);}return{'signal':_0x25bc99[_0x2d5c08(-_0x3c693a._0x253635,-_0x3c693a._0x8b31a0,_0x3c693a._0x2c08ca,_0x3c693a._0x330f15)],'cleanup':()=>{const _0x30eb2a={_0x12c869:0x4b7};function _0x4827e5(_0x50b05d,_0x46f988,_0x496954,_0x4d80b8){return _0x2d5c08(_0x50b05d-_0xb2ffff._0x5deecd,_0x46f988-0x106,_0x496954-0xa,_0x496954);}function _0x56dd37(_0x50bf10,_0x54dcfa,_0x23a358,_0x53f75d){return _0x2d5c08(_0x54dcfa-_0x30eb2a._0x12c869,_0x54dcfa-0x59,_0x23a358-0x1c7,_0x23a358);}clearTimeout(_0x45e840),_0x3409a8[_0x56dd37(_0x87f604._0x42b360,0x686,_0x87f604._0x260dcf,_0x87f604._0xd8ea4f)](_0x56dd37(0x7fe,_0x87f604._0x13c830,0x5e7,0x5a8),_0x2c6c47);}};}function createWebFetchTool(_0x496d41={}){const _0x692528={_0x37e512:0x827,_0x46930f:0x772,_0x3a42b5:0x746,_0x21c215:0x5c7,_0x34afdc:0x497,_0x5267a:0x747,_0x2c022d:0x775,_0x302be1:0x662,_0x7f2e48:0x69f,_0xede4df:0x53c,_0x2f6535:0x59b,_0x37e6e3:0x593,_0x52e4e1:0x53b,_0xa71831:0x541,_0x74d8e8:0x53c,_0x4e84e4:0x716,_0x4e2f54:0x578,_0x547019:0x73e,_0x2ae90b:0x674,_0x2f12c4:0x65c,_0x3d8fc9:0x739,_0x35dbad:0x724,_0x265fe4:0x6cd,_0x1d9a30:0x60f,_0x2234b6:0x5e1},_0x178c40={_0x2a7464:0x551,_0x4037a9:0x5eb,_0x2c190c:0x89,_0x5c9f21:0x214,_0x4e1b9e:0xcc,_0x5d0362:0x8e,_0x565d31:0x90,_0x3dff6b:0xce,_0x4218ef:0x69,_0x2af195:0x19c,_0x2cc82a:0x571,_0x2b927b:0x4a8,_0x17dfac:0x37d,_0x496833:0x464,_0xf545f:0x8c,_0x412d73:0xcb,_0x27ceb5:0x5fb,_0x1b9248:0x6d,_0x5a2988:0xea,_0x583c98:0x1f7,_0x2e0aa1:0x1b3,_0x213da9:0x584,_0x45d32a:0x5d5,_0x5152eb:0x4b8,_0x9c93e4:0x5e9,_0x44c35f:0x637,_0x5844bc:0x6a4,_0x2effa2:0x165,_0x3cfa8c:0x47f,_0x572b72:0x4e0,_0x588cae:0x551,_0x3bb56f:0x3a7,_0x465056:0x4ca,_0x12f681:0x4ac,_0x49649b:0x5e8,_0x5f325b:0x5a6,_0x43c970:0x23,_0x56be71:0x72,_0x24332f:0x4b,_0x21ea59:0x309,_0x5e08b2:0x42e,_0x3dc6ca:0x37e,_0x789b92:0xf9,_0x2242f5:0x52,_0x577fe1:0xda,_0x2393e7:0x225,_0xe3fd02:0x64c,_0x3df7cd:0x413,_0x139fb1:0x559,_0x20af2d:0x524},_0x4bcff4={_0x448597:0x4fc,_0x4eeed0:0x1a7},_0x1ea6ea={_0x4285b7:0x623},_0x2241ac=_0x496d41[_0x31421(0x5cf,0x705,_0x692528._0x37e512,_0x692528._0x46930f)]??_0x31421(0x7f5,_0x692528._0x3a42b5,0x648,0x6ca),_0x1feeb8=_0x496d41[_0x236ef2(0x6b2,0x57a,0x5cf,0x73e)]??DEFAULT_TIMEOUT_MS2,_0x36d62c=new _0x498201({'headingStyle':_0x31421(0x5df,_0x692528._0x21c215,0x635,_0x692528._0x34afdc),'codeBlockStyle':_0x236ef2(_0x692528._0x5267a,_0x692528._0x2c022d,_0x692528._0x302be1,0x721),'bulletListMarker':'-'});_0x36d62c['remove']([_0x31421(0x605,0x696,0x753,0x5eb),'style',_0x236ef2(_0x692528._0x7f2e48,0x5e8,0x554,0x7f3),_0x31421(_0x692528._0xede4df,_0x692528._0x2f6535,0x5f2,0x488),_0x236ef2(_0x692528._0x37e6e3,_0x692528._0x52e4e1,0x6a0,_0x692528._0xa71831),_0x236ef2(_0x692528._0x74d8e8,0x479,0x64a,0x535),_0x236ef2(0x611,0x53a,_0x692528._0x4e84e4,_0x692528._0x4e2f54),_0x31421(_0x692528._0x547019,_0x692528._0x2ae90b,0x538,0x7b6)]);function _0x31421(_0x571e20,_0x2a6ce6,_0x2d2e2b,_0x23ad7e){return _0x29bb69(_0x571e20-0x137,_0x2a6ce6-_0x1ea6ea._0x4285b7,_0x571e20,_0x23ad7e-0xc7);}function _0x236ef2(_0x520fba,_0x76b439,_0x19d722,_0x527396){return _0x567203(_0x527396,_0x76b439-0x151,_0x520fba-_0x4bcff4._0x448597,_0x527396-_0x4bcff4._0x4eeed0);}return defineTool({'name':_0x2241ac,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x236ef2(0x714,_0x692528._0x2f12c4,_0x692528._0x3d8fc9,_0x692528._0x35dbad),'properties':{'description':{'type':_0x236ef2(0x5ad,0x46f,0x67a,_0x692528._0x265fe4)},'url':{'type':'string'}},'required':[_0x236ef2(0x704,_0x692528._0x1d9a30,0x6d6,_0x692528._0x2234b6)]},async *'execute'(_0x43515b,_0x30e262){const _0x5aa7ba={_0x5b5733:0x1bd,_0x5ce9bd:0x86},_0x3bf6fe={_0x1bd26f:0xb0},_0x1b3aed=assertFetchableUrl(_0x43515b[_0x3c8b2f(_0x178c40._0x2a7464,0x635,0x6d0,_0x178c40._0x4037a9)])[_0x205ea1(-_0x178c40._0x2c190c,-_0x178c40._0x5c9f21,-_0x178c40._0x4e1b9e,-_0x178c40._0x5d0362)]();if(_0x30e262[_0x205ea1(_0x178c40._0x565d31,_0x178c40._0x3dff6b,-_0x178c40._0x4218ef,-0x2a)][_0x205ea1(-_0x178c40._0x2af195,-0x52,-0xa5,0x82)])throw new ToolExecutionError(_0x3c8b2f(_0x178c40._0x2cc82a,_0x178c40._0x2b927b,_0x178c40._0x17dfac,_0x178c40._0x496833),{'url':_0x1b3aed});const _0x10b11=createTimeoutSignal(_0x30e262[_0x205ea1(-0x64,_0x178c40._0xf545f,-_0x178c40._0x4218ef,-_0x178c40._0x412d73)],_0x1feeb8);function _0x205ea1(_0x6beb38,_0x1b0347,_0x400683,_0x58c34b){return _0x236ef2(_0x400683- -0x5b6,_0x1b0347-0x1eb,_0x400683-_0x3bf6fe._0x1bd26f,_0x6beb38);}let _0x2006f2='',_0x34fd18=0x0,_0x30688f;try{const _0x2e1e46=await fetch(_0x1b3aed,{'headers':{'User-Agent':USER_AGENT},'signal':_0x10b11['signal']});if(!_0x2e1e46['ok'])throw new ToolExecutionError('HTTP\x20'+_0x2e1e46[_0x3c8b2f(0x7a5,0x69a,_0x178c40._0x27ceb5,0x5db)]+'\x20'+_0x2e1e46[_0x205ea1(-_0x178c40._0x1b9248,-0x57,_0x178c40._0x5a2988,0x12c)],{'url':_0x1b3aed,'statusCode':_0x2e1e46[_0x205ea1(0x197,_0x178c40._0x583c98,_0x178c40._0x2e0aa1,0x1ef)]});_0x2006f2=_0x2e1e46[_0x3c8b2f(_0x178c40._0x213da9,_0x178c40._0x45d32a,0x5e9,_0x178c40._0x5152eb)]['get'](_0x3c8b2f(_0x178c40._0x9c93e4,0x569,_0x178c40._0x44c35f,_0x178c40._0x5844bc))??'',_0x34fd18=_0x2e1e46['status'],_0x30688f=await _0x2e1e46[_0x205ea1(0x2b5,0x2b8,_0x178c40._0x2effa2,0x1e3)]();}catch(_0x35f600){if(_0x35f600 instanceof ToolExecutionError)throw _0x35f600;const _0x1e744a=_0x35f600 instanceof Error?_0x35f600['message']:String(_0x35f600);throw new ToolExecutionError(_0x1e744a,{'url':_0x1b3aed});}finally{_0x10b11[_0x3c8b2f(0x591,_0x178c40._0x3cfa8c,_0x178c40._0x572b72,_0x178c40._0x588cae)]();}function _0x3c8b2f(_0x2def95,_0x180acd,_0x4683f1,_0x38d3a0){return _0x236ef2(_0x180acd- -0xcf,_0x180acd-_0x5aa7ba._0x5b5733,_0x4683f1-_0x5aa7ba._0x5ce9bd,_0x2def95);}const _0x5c4a1f=new Date()[_0x3c8b2f(_0x178c40._0x3bb56f,0x463,_0x178c40._0x465056,0x548)]();let _0x2f9ace,_0x3fc2f2;if(_0x2006f2[_0x3c8b2f(_0x178c40._0x12f681,0x576,_0x178c40._0x49649b,0x46a)](_0x3c8b2f(0x3ec,0x46e,0x44a,_0x178c40._0x5f325b)))_0x2f9ace='```json\x0a'+_0x30688f+_0x205ea1(_0x178c40._0x43c970,-0x41,-_0x178c40._0x56be71,_0x178c40._0x24332f),_0x3fc2f2=_0x3c8b2f(_0x178c40._0x21ea59,0x454,_0x178c40._0x5e08b2,_0x178c40._0x3dc6ca);else _0x2006f2['includes'](_0x205ea1(_0x178c40._0x789b92,0x1ee,0x174,_0x178c40._0x2242f5))?(_0x2f9ace=_0x36d62c[_0x205ea1(-0x115,-0xf8,-_0x178c40._0x577fe1,-_0x178c40._0x2393e7)](_0x30688f),_0x3fc2f2='markdown'):(_0x2f9ace=_0x30688f,_0x3fc2f2=_0x3c8b2f(0x770,_0x178c40._0xe3fd02,0x5f0,0x680));return yield createToolOutput(_0x2f9ace,{'url':_0x1b3aed,'contentType':_0x2006f2,'statusCode':_0x34fd18,'format':_0x3fc2f2,'size':_0x30688f[_0x3c8b2f(0x40f,_0x178c40._0x3df7cd,_0x178c40._0x139fb1,_0x178c40._0x20af2d)],'fetchedAt':_0x5c4a1f}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x29bb69(0x114,-0x19,-0xf3,0x26);function normalizeUrl(_0x9f79a1){const _0x382669={_0x1f0616:0x82f,_0x14d4ce:0x785,_0x5697a8:0x63d,_0x5048e7:0x38d,_0x554d06:0x6c5,_0x4e7c61:0x8fa,_0xef2da7:0x281,_0x10d162:0x323,_0x5d68e6:0x56b,_0x517149:0x455,_0x48f40:0x41a,_0x148686:0x3cc,_0x45dc9:0x644,_0xe72ec5:0x53b},_0x4d3b4b={_0x57e523:0x7c,_0x4d2afb:0x681,_0x360168:0x166},_0x4a06d9={_0x293d23:0x155};function _0x327367(_0x57eaea,_0xf14264,_0x6ef21f,_0x4b3c64){return _0x567203(_0x57eaea,_0xf14264-0x17a,_0x4b3c64-0x261,_0x4b3c64-_0x4a06d9._0x293d23);}function _0x3b5dce(_0x134e22,_0x1e43ef,_0x30b1f6,_0x2ae018){return _0x29bb69(_0x134e22-_0x4d3b4b._0x57e523,_0x1e43ef-_0x4d3b4b._0x4d2afb,_0x134e22,_0x2ae018-_0x4d3b4b._0x360168);}try{const _0x29aca6=new URL(_0x9f79a1);for(const _0x410517 of[_0x3b5dce(_0x382669._0x1f0616,_0x382669._0x14d4ce,0x638,_0x382669._0x5697a8),'utm_medium',_0x327367(0x33c,0x303,0x3d0,_0x382669._0x5048e7),_0x3b5dce(_0x382669._0x554d06,0x7a8,_0x382669._0x4e7c61,0x784),_0x3b5dce(0x558,0x661,0x5f4,0x6d1),_0x327367(_0x382669._0xef2da7,0x2de,0x46f,_0x382669._0x10d162),'fbclid','mc_cid',_0x327367(_0x382669._0x5d68e6,0x36f,0x3eb,_0x382669._0x517149)]){_0x29aca6[_0x327367(0x2f7,0x1fd,0x2b3,0x2ec)][_0x327367(0x403,_0x382669._0x48f40,0x472,_0x382669._0x148686)](_0x410517);}return _0x29aca6[_0x3b5dce(_0x382669._0x45dc9,_0x382669._0xe72ec5,0x618,0x46a)]();}catch{return _0x9f79a1;}}function cseDateRestrict(_0x410453){const _0x434854={_0x23ce4a:0x3a,_0x187e80:0x10f,_0x32c025:0xd5,_0x52d567:0xb6},_0x87cd86={_0x3eb8e7:0x1df,_0x2e983a:0x704},_0x666467={_0x32a174:0x171,_0x11b706:0xaf};if(_0x410453<=0x0)return void 0x0;if(_0x410453<=0x1e)return'd'+Math[_0x21d064(-_0x434854._0x23ce4a,_0x434854._0x187e80,_0x434854._0x32c025,_0x434854._0x52d567)](0x1,Math[_0x21d064(0x44,0xe7,0x148,0x26)](_0x410453));function _0x21d064(_0x33516c,_0x78b0a1,_0x30bca7,_0x5b426a){return _0x29bb69(_0x33516c-_0x666467._0x32a174,_0x5b426a-0x150,_0x30bca7,_0x5b426a-_0x666467._0x11b706);}function _0x4acd56(_0x13a8de,_0x8fcef7,_0x1e9334,_0x34e426){return _0x29bb69(_0x13a8de-_0x87cd86._0x3eb8e7,_0x13a8de-_0x87cd86._0x2e983a,_0x34e426,_0x34e426-0x152);}if(_0x410453<=0x16d)return'm'+Math[_0x21d064(-0x33,-0x7f,0x50,-0x15)](_0x410453/0x1e);return'y'+Math[_0x21d064(0xf0,-0x10a,-0x41,-0x15)](_0x410453/0x16d);}function addSiteFilters(_0x4c45d8,_0x360597){const _0x14a6a7={_0x39ac33:0xe5,_0x583af2:0xf0,_0x34a4ee:0x1fc,_0x53edd4:0x83,_0x4a60dc:0x73e,_0x28091:0x281,_0x3454b0:0x2a8,_0x4884e2:0x16,_0x9e0c90:0x2},_0xc65490={_0x4d7bb4:0x169,_0x247261:0xd2};function _0x406608(_0x190ba8,_0x50d5e1,_0x5e1d69,_0x5022cc){return _0x29bb69(_0x190ba8-0x1b3,_0x5022cc-0x6bb,_0x50d5e1,_0x5022cc-0x143);}function _0x2bae41(_0x4f4b58,_0x274924,_0x3396f6,_0x4e2eb2){return _0x29bb69(_0x4f4b58-_0xc65490._0x4d7bb4,_0x4f4b58-0x233,_0x274924,_0x4e2eb2-_0xc65490._0x247261);}if(_0x360597[_0x2bae41(_0x14a6a7._0x39ac33,0x1d8,0x3c,0x1ef)]===0x0)return _0x4c45d8[_0x2bae41(0xe9,_0x14a6a7._0x583af2,_0x14a6a7._0x34a4ee,_0x14a6a7._0x53edd4)]();return(_0x4c45d8+'\x20('+_0x360597['map'](_0x414b45=>_0x2bae41(0x29d,0x2de,0x218,0x37d)+_0x414b45)[_0x406608(0x6f6,_0x14a6a7._0x4a60dc,0x65c,0x6b5)](_0x2bae41(_0x14a6a7._0x28091,_0x14a6a7._0x3454b0,0x22f,0x136))+')')[_0x2bae41(0xe9,_0x14a6a7._0x4884e2,-_0x14a6a7._0x9e0c90,0x22f)]();}function normalizeType(_0x314302){return _0x314302==='images'?'images':'web';}async function fetchJson(_0x527c6d,_0x10c157,_0x38c6f8){const _0x2a8cd3={_0x1f517b:0x4fe,_0x1c7661:0x495,_0x4bb2d7:0x358,_0x2daa18:0x295,_0x5899a6:0x5cc,_0x58595a:0x4a2,_0x94e9f0:0x2e9,_0x2f352f:0x351,_0x573ef1:0x3d0,_0x271694:0x575,_0x2dbe1d:0x68a,_0x3ea302:0x6a7,_0x287b69:0x5d8,_0x4491a9:0x14c,_0x31e28f:0x225,_0x1c3221:0x2,_0x164c3d:0x513,_0x5735a6:0x4d0,_0x14d6c6:0x5be,_0x14e39d:0x667,_0x37cc5d:0x70c,_0x4db198:0x71b,_0x410447:0x39,_0x30b388:0x55c,_0x40440f:0x5d0,_0x58f3a3:0x766,_0x1dabe6:0x4d5,_0x19873b:0x3ce,_0xbe4a2f:0x658,_0xa7e652:0x87a,_0x1b057e:0x4b2,_0x48c643:0x7c2,_0x25df68:0x73c,_0x534176:0x636,_0x5b7898:0x1dd},_0x71b590={_0x3d68ad:0x1c4,_0x31cd66:0x139,_0x3ba027:0x1ae},_0x48b232={_0x5bc383:0x1f4,_0x387d56:0xaa},_0x4d38cd=await fetch(_0x527c6d,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x706dc5(0x5dc,_0x2a8cd3._0x1f517b,0x570,_0x2a8cd3._0x1c7661),..._0x38c6f8?.['headers']},'signal':_0x10c157,..._0x38c6f8});function _0x706dc5(_0x491273,_0x58d524,_0xf25987,_0x4ba028){return _0x29bb69(_0x491273-_0x48b232._0x5bc383,_0x58d524-0x5f1,_0x4ba028,_0x4ba028-_0x48b232._0x387d56);}function _0x1f018a(_0x2d2e70,_0x4e2855,_0x47dfb3,_0x2436a1){return _0x567203(_0x47dfb3,_0x4e2855-_0x71b590._0x3d68ad,_0x2d2e70-_0x71b590._0x31cd66,_0x2436a1-_0x71b590._0x3ba027);}if(!_0x4d38cd['ok']){let _0x4596a1,_0x16396c;try{_0x4596a1=await _0x4d38cd[_0x1f018a(_0x2a8cd3._0x4bb2d7,_0x2a8cd3._0x2daa18,0x295,0x3bc)]();const _0x1a4d9c=JSON[_0x706dc5(0x6ce,_0x2a8cd3._0x5899a6,_0x2a8cd3._0x58595a,0x54f)](_0x4596a1),_0x3116a0=typeof _0x1a4d9c[_0x1f018a(0x306,_0x2a8cd3._0x94e9f0,0x1eb,0x278)]===_0x1f018a(_0x2a8cd3._0x2f352f,_0x2a8cd3._0x573ef1,0x2c0,0x430)?_0x1a4d9c[_0x706dc5(_0x2a8cd3._0x271694,_0x2a8cd3._0x2dbe1d,_0x2a8cd3._0x3ea302,_0x2a8cd3._0x287b69)][_0x1f018a(_0x2a8cd3._0x4491a9,_0x2a8cd3._0x31e28f,0x238,_0x2a8cd3._0x1c3221)]:void 0x0;_0x16396c=_0x1a4d9c[_0x706dc5(_0x2a8cd3._0x164c3d,_0x2a8cd3._0x5735a6,_0x2a8cd3._0x14d6c6,0x386)]?.[_0x706dc5(0x51f,_0x2a8cd3._0x14e39d,_0x2a8cd3._0x37cc5d,_0x2a8cd3._0x4db198)]??_0x1a4d9c[_0x1f018a(_0x2a8cd3._0x4491a9,-0x3,_0x2a8cd3._0x410447,0xfb)]?.['errors']?.[0x0]?.[_0x706dc5(_0x2a8cd3._0x30b388,_0x2a8cd3._0x14e39d,_0x2a8cd3._0x40440f,_0x2a8cd3._0x58f3a3)]??_0x3116a0;}catch{}const _0x573dd7=_0x16396c?_0x706dc5(0x51e,_0x2a8cd3._0x1dabe6,0x4e8,_0x2a8cd3._0x19873b)+_0x4d38cd[_0x706dc5(0x790,0x72a,_0x2a8cd3._0xbe4a2f,_0x2a8cd3._0xa7e652)]+':\x20'+_0x16396c:_0x706dc5(0x4b1,0x4d5,_0x2a8cd3._0x1b057e,0x5c0)+_0x4d38cd[_0x706dc5(0x5d6,0x72a,_0x2a8cd3._0x48c643,0x785)]+'\x20'+_0x4d38cd[_0x706dc5(_0x2a8cd3._0x25df68,0x661,0x5ac,_0x2a8cd3._0x534176)];throw new ToolExecutionError(_0x573dd7,{'statusCode':_0x4d38cd['status'],..._0x4596a1?{'body':_0x4596a1}:{}});}return await _0x4d38cd[_0x1f018a(0x160,0x20e,0x259,_0x2a8cd3._0x5b7898)]();}async function hydrateResults(_0x1ba91b,_0x24b19d,_0x37ca18){const _0x235b73={_0x5bfba2:0x40b,_0x44370b:0x420,_0x308c0a:0x446,_0x2a96b5:0x32e,_0x256762:0x22c,_0x1d4449:0xda,_0x269d06:0x2b8,_0x24fb80:0x172},_0x760e63={_0x276c81:0x4c,_0x245c28:0x16a,_0x4ce9e0:0x10b},_0x469f5c={_0x1542d0:0x3f},_0x40f980={_0x18905b:0x1cb,_0x3058d1:0x3c4,_0x1c475d:0x298,_0x5d4020:0x2fb,_0x3f0821:0x49,_0x5a0d86:0xe2,_0x36c4a8:0x1ba,_0x470218:0x14c,_0x4c9513:0x22e,_0x47a945:0x22d,_0x5ca044:0x337,_0x553acf:0x1f8,_0x4f3a61:0xcf,_0x11fbd9:0x568,_0x1f60fc:0x62b,_0x1af570:0x3d0,_0x3f93ee:0x470,_0x32fcd5:0x282,_0x2ed7db:0x32b,_0x3b43f6:0x55b,_0x3d2d13:0x297,_0x15d280:0x22a,_0x26c77c:0x35d,_0x4762ae:0xd8,_0x44f696:0x95,_0x31fd89:0x146,_0x21c661:0x18f,_0x45280a:0x179,_0x6a2610:0x17f,_0x207449:0x138,_0x314762:0x120,_0x10d7eb:0x410,_0x58597e:0x316,_0x48c34e:0x32,_0xfd4cf9:0xca,_0x18450c:0x1c0},_0x1c5e7c=await Promise['all'](_0x1ba91b[_0x482b72(_0x235b73._0x5bfba2,_0x235b73._0x44370b,0x409,_0x235b73._0x308c0a)](0x0,0xa)[_0x482b72(_0x235b73._0x2a96b5,0x12d,_0x235b73._0x256762,0x234)](async _0x46ff76=>{const _0x34f42d={_0x516522:0xb3},_0x4433bb={_0x37b280:0xea,_0x196089:0x18e,_0x511457:0x4c0};function _0x2bb899(_0x4d33b3,_0x382790,_0x12f260,_0x586532){return _0x22eecf(_0x4d33b3-_0x4433bb._0x37b280,_0x382790-_0x4433bb._0x196089,_0x12f260,_0x4d33b3-_0x4433bb._0x511457);}function _0x105649(_0x39bc94,_0x2e2d14,_0x42e8f8,_0x267c8f){return _0x482b72(_0x39bc94-0x22,_0x39bc94,_0x2e2d14- -0x158,_0x267c8f-_0x34f42d._0x516522);}try{const _0x5688b2=await fetch(_0x46ff76['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x24b19d,'Accept':_0x105649(_0x40f980._0x18905b,0x30a,0x202,_0x40f980._0x3058d1)},'signal':_0x37ca18});if(!_0x5688b2['ok'])return _0x46ff76;const _0x3e6365=await _0x5688b2[_0x105649(_0x40f980._0x1c475d,_0x40f980._0x5d4020,0x449,0x335)](),_0x4f0a61=load(_0x3e6365),_0x25f864=_0x4f0a61(_0x105649(_0x40f980._0x3f0821,_0x40f980._0x5a0d86,0xd6,0xb0))[_0x105649(_0x40f980._0x36c4a8,0x156,0x3d,0x99)]('content')||_0x4f0a61('title')[_0x105649(0x2b,0x16f,0xd2,_0x40f980._0x470218)]()[_0x105649(0x24c,0x2fb,_0x40f980._0x4c9513,0x3b8)]()[_0x2bb899(0x340,0x2a4,0x211,_0x40f980._0x47a945)](),_0x33df76=_0x4f0a61('meta[name=\x27description\x27]')[_0x105649(0xd9,0x156,0x180,0x1f5)](_0x105649(_0x40f980._0x5ca044,_0x40f980._0x553acf,0x1ce,_0x40f980._0x4f3a61))||_0x4f0a61('meta[property=\x27og:description\x27]')[_0x2bb899(0x3d0,0x4d0,0x3cc,0x371)]('content')||_0x46ff76[_0x2bb899(0x581,_0x40f980._0x11fbd9,_0x40f980._0x1f60fc,0x5dc)],_0x1fd884=_0x4f0a61('meta[property=\x27article:published_time\x27]')[_0x2bb899(_0x40f980._0x1af570,_0x40f980._0x3f93ee,_0x40f980._0x32fcd5,_0x40f980._0x2ed7db)](_0x2bb899(0x472,_0x40f980._0x3b43f6,0x351,0x3b9))||_0x4f0a61(_0x105649(0x35e,_0x40f980._0x3d2d13,0x1bd,_0x40f980._0x15d280))['attr'](_0x105649(0x146,0x20c,_0x40f980._0x26c77c,0x128))||_0x46ff76[_0x105649(-0x9,_0x40f980._0x4762ae,0x47,_0x40f980._0x44f696)],_0x258f44=_0x4f0a61(_0x105649(_0x40f980._0x31fd89,0x23c,_0x40f980._0x21c661,0x2f4))[_0x2bb899(_0x40f980._0x1af570,0x3c9,0x4ee,0x370)]('href');return{..._0x46ff76,'title':_0x25f864||_0x46ff76[_0x105649(_0x40f980._0x45280a,_0x40f980._0x6a2610,_0x40f980._0x207449,_0x40f980._0x314762)],'snippet':_0x33df76,'url':_0x258f44?normalizeUrl(new URL(_0x258f44,_0x46ff76[_0x105649(_0x40f980._0x10d7eb,0x2e4,0x396,_0x40f980._0x58597e)])[_0x105649(_0x40f980._0x48c34e,_0x40f980._0xfd4cf9,_0x40f980._0x18450c,-0x45)]()):_0x46ff76['url'],'publishedAt':_0x1fd884};}catch{return _0x46ff76;}}));function _0x482b72(_0xb37ea8,_0x5d71c3,_0xfb5f38,_0x124408){return _0x567203(_0x5d71c3,_0x5d71c3-_0x469f5c._0x1542d0,_0xfb5f38-0x234,_0x124408-0xa4);}const _0x47f084=new Map(_0x1ba91b[_0x22eecf(-0x6d,-0x31,_0x235b73._0x1d4449,0x6b)](0x0,0xa)['map']((_0x397c8e,_0x5b2aaf)=>[_0x397c8e[_0x482b72(0x50c,0x4a7,0x43c,0x3c1)],_0x1c5e7c[_0x5b2aaf]]));function _0x22eecf(_0x26bdda,_0x537b0c,_0x53f029,_0x29aa73){return _0x567203(_0x53f029,_0x537b0c-_0x760e63._0x276c81,_0x29aa73- -_0x760e63._0x245c28,_0x29aa73-_0x760e63._0x4ce9e0);}return _0x1ba91b[_0x22eecf(-0x138,-_0x235b73._0x269d06,-0x9b,-_0x235b73._0x24fb80)](_0x72c301=>_0x47f084[_0x482b72(0x358,0x3a5,0x2b7,0x294)](_0x72c301[_0x22eecf(0x1aa,0x142,0xa7,0x9e)])??_0x72c301);}function formatResults(_0x3246d8){const _0x13a4ce={_0x57beab:0x303,_0x346f5e:0x272,_0x4a1d6d:0x561},_0x4bd0a5={_0x211d46:0x3fe,_0x2c8305:0x44a,_0xf3f2d9:0x18e,_0x7854:0x39,_0xc06b74:0x3bd,_0x2ded49:0x391,_0xacf58e:0x348,_0x5bec8b:0x32e,_0x435583:0x313,_0x4d4850:0x451,_0x47c9e0:0x316,_0x4a91f3:0x230,_0x12110e:0x446,_0x3f9312:0x495,_0x2a3582:0x414,_0x3bb737:0x318,_0x3ba419:0x211,_0x178644:0x206,_0x2da83e:0x1bd,_0x18dc8c:0x171,_0x1ab755:0xe7,_0x3862e5:0x135,_0x4ab365:0x2c6},_0x3fe9a8={_0x4ae36a:0x30b},_0x35fce={_0x3efa42:0x49c};function _0x50de72(_0x16dc8f,_0x44260c,_0x387248,_0x1a2aa9){return _0x29bb69(_0x16dc8f-0xe7,_0x1a2aa9-_0x35fce._0x3efa42,_0x16dc8f,_0x1a2aa9-0x11d);}function _0x2a9fed(_0x1d1351,_0xffa71a,_0x2a8bd9,_0x325439){return _0x567203(_0x325439,_0xffa71a-0xb6,_0x1d1351-_0x3fe9a8._0x4ae36a,_0x325439-0xea);}if(_0x3246d8['length']===0x0)return'No\x20results\x20found.';return _0x3246d8[_0x2a9fed(_0x13a4ce._0x57beab,0x405,_0x13a4ce._0x346f5e,0x238)](_0x2f85af=>{const _0x5e1c95={_0x3a9bbf:0x190},_0x15fbf5={_0x216953:0x166,_0x4063c7:0x105},_0x2991a8=[_0x2f85af[_0x1c270b(0x38c,0x252,0x385,0x32b)][_0x1c270b(0x2f7,_0x4bd0a5._0x211d46,0x341,_0x4bd0a5._0x2c8305)]+'.\x20'+_0x2f85af[_0xc20041(0xdc,0xed,_0x4bd0a5._0xf3f2d9,_0x4bd0a5._0x7854)],_0x2f85af['url']];if(_0x2f85af[_0xc20041(0x217,_0x4bd0a5._0xc06b74,0x316,0x35b)])_0x2991a8[_0x1c270b(0x3f6,_0x4bd0a5._0x2ded49,_0x4bd0a5._0xacf58e,_0x4bd0a5._0x5bec8b)](_0x2f85af[_0xc20041(_0x4bd0a5._0x435583,_0x4bd0a5._0x4d4850,_0x4bd0a5._0x47c9e0,_0x4bd0a5._0x4a91f3)]);function _0x1c270b(_0x446689,_0x332c49,_0x3da3e0,_0x4c64ae){return _0x2a9fed(_0x332c49- -_0x15fbf5._0x216953,_0x332c49-_0x15fbf5._0x4063c7,_0x3da3e0-0xbb,_0x446689);}if(_0x2f85af['publishedAt'])_0x2991a8[_0x1c270b(_0x4bd0a5._0x12110e,0x391,_0x4bd0a5._0x3f9312,_0x4bd0a5._0x2a3582)](_0x1c270b(0x2b8,_0x4bd0a5._0x3bb737,_0x4bd0a5._0x3ba419,_0x4bd0a5._0x178644)+_0x2f85af[_0xc20041(_0x4bd0a5._0x2da83e,_0x4bd0a5._0x18dc8c,_0x4bd0a5._0x1ab755,_0x4bd0a5._0x3862e5)]);function _0xc20041(_0x5c31b2,_0x532980,_0x56f082,_0x48af39){return _0x2a9fed(_0x56f082- -0x220,_0x532980-0xfc,_0x56f082-_0x5e1c95._0x3a9bbf,_0x5c31b2);}return _0x2991a8[_0x1c270b(0x23f,0x2d3,0x1ad,_0x4bd0a5._0x4ab365)]('\x0a');})[_0x2a9fed(0x439,_0x13a4ce._0x4a1d6d,0x310,0x3a9)]('\x0a\x0a');}async function searchOllama(_0x57eae0,_0x4a1a6f,_0x1fea9e){const _0xf15434={_0x3fe8fb:0x277,_0x418fd7:0x203,_0x282e94:0x332,_0x41f0a5:0x1e6,_0x29d690:0x468,_0x47d57f:0x529,_0x4164b6:0x5ec,_0x25586e:0x40f,_0x2e91ec:0x3d5,_0x4c5658:0x35f,_0x31646f:0x56b,_0x4a6702:0x2a8,_0x3b2dc9:0x74,_0x4f1244:0x144,_0x22f918:0xab,_0x314ba9:0x1ca,_0x544d38:0x199,_0x56b7b5:0x38b,_0x1ada65:0x402},_0x62392c={_0xf6cf06:0x61,_0x5a268d:0x96,_0x815140:0xdf,_0x2a3f98:0xc2,_0x2cf219:0x104,_0x3a9d50:0x38,_0x345a7f:0x28d,_0x31c6b4:0x12,_0x55af47:0xc8},_0x19a781={_0x2ed490:0x4b,_0xce34ef:0x80},_0x5c1394={_0xd57c2c:0x29d,_0x167b59:0x17d},_0xce1ee0={_0x2de9eb:0x82,_0x7691a6:0x470,_0x758b89:0x1ba},_0x44411c=Math[_0x48605f(_0xf15434._0x3fe8fb,_0xf15434._0x418fd7,_0xf15434._0x282e94,_0xf15434._0x41f0a5)](0x1,Math[_0x523789(0x53c,0x3e9,_0xf15434._0x29d690,_0xf15434._0x47d57f)](0xa,_0x4a1a6f[_0x523789(0x5a7,0x5ef,_0xf15434._0x4164b6,0x4ae)])),_0x1f2fc8=addSiteFilters(_0x4a1a6f[_0x523789(0x3f7,0x5c5,_0xf15434._0x25586e,0x479)],_0x4a1a6f[_0x523789(0x52d,_0xf15434._0x2e91ec,0x5da,0x518)]);function _0x523789(_0xd1e0e9,_0x9d0cd9,_0x1d379c,_0x54d067){return _0x29bb69(_0xd1e0e9-_0xce1ee0._0x2de9eb,_0x54d067-_0xce1ee0._0x7691a6,_0x9d0cd9,_0x54d067-_0xce1ee0._0x758b89);}const _0x36561f=await fetchJson(_0x523789(0x438,_0xf15434._0x4c5658,0x402,0x35e),_0x1fea9e,{'method':_0x523789(0x561,0x49d,0x61b,_0xf15434._0x31646f),'headers':{'Authorization':_0x48605f(0x1d4,0x1b5,0x28c,_0xf15434._0x4a6702)+_0x57eae0[_0x48605f(0x494,0x396,0x301,0x437)]},'body':JSON[_0x48605f(_0xf15434._0x3b2dc9,_0xf15434._0x4f1244,_0xf15434._0x22f918,0x1e3)]({'query':_0x1f2fc8,'max_results':_0x44411c})}),_0x3a75ef=_0x36561f[_0x48605f(0x213,_0xf15434._0x314ba9,_0xf15434._0x544d38,0xf8)]??[];function _0x48605f(_0x4d21d6,_0x1e0c0e,_0x32f18b,_0x452497){return _0x29bb69(_0x4d21d6-0x42,_0x1e0c0e-_0x5c1394._0xd57c2c,_0x32f18b,_0x452497-_0x5c1394._0x167b59);}const _0x3986d5=_0x3a75ef[_0x523789(0x2a9,_0xf15434._0x56b7b5,_0xf15434._0x1ada65,0x334)]((_0x368457,_0x4e1184)=>{const _0x4a796c={_0x2b65ff:0x14a,_0x3e72a1:0x129},_0x152c8b=_0x368457[_0x14312e(0xd7,0x1b,0xfe,_0x62392c._0xf6cf06)]||'';let _0xd9895e;function _0x14312e(_0x3eea67,_0xfd1a2e,_0x3c7c0f,_0x2a9a8d){return _0x523789(_0x3eea67-_0x4a796c._0x2b65ff,_0xfd1a2e,_0x3c7c0f-_0x4a796c._0x3e72a1,_0x3c7c0f- -0x446);}function _0x40d4b6(_0xeafc8a,_0x4f7209,_0x406861,_0x27407b){return _0x523789(_0xeafc8a-_0x19a781._0x2ed490,_0x27407b,_0x406861-_0x19a781._0xce34ef,_0xeafc8a- -0x31d);}try{_0xd9895e=new URL(_0x152c8b)[_0x14312e(-_0x62392c._0x5a268d,-_0x62392c._0x815140,-0x11a,-0x21c)];}catch{_0xd9895e=null;}return{'title':_0x368457[_0x40d4b6(_0x62392c._0x2a3f98,0x19b,_0x62392c._0x2cf219,-_0x62392c._0x3a9d50)]||_0x40d4b6(0x172,_0x62392c._0x345a7f,0x271,0xbf),'url':normalizeUrl(_0x152c8b),'snippet':_0x368457[_0x14312e(0x112,0xb3,_0x62392c._0x31c6b4,-0x54)]??null,'displayUrl':_0xd9895e,'favicon':null,'publishedAt':null,'source':{'engine':_0x14312e(-0xfd,-0x10b,-0x5f,_0x62392c._0x55af47),'rank':_0x4e1184+0x1}};});return{'items':_0x3986d5['slice'](0x0,_0x44411c),'engine':'ollama'};}async function searchTavily(_0x13cf40,_0x2b804b,_0x6c7d58){const _0x52d3c0={_0x5dd360:0x698,_0x135941:0x795,_0x5123be:0x646,_0x6bfad:0x799,_0x4f6e91:0x6de,_0x3d4084:0x6b8,_0x9727dd:0x60a,_0x54fa1a:0x6e9,_0x14ba76:0x677,_0x41695f:0x721,_0x165e57:0x6e6,_0x5f4ae4:0x65a,_0x5d2771:0x63f,_0x3f41bd:0x651,_0x1473b8:0x568,_0x207094:0x582,_0x8516e4:0x69c,_0x2a4a5f:0x7db,_0x476c6e:0x567,_0x15abef:0x322,_0x57aa7f:0x60d,_0x3ced68:0x3e8,_0x45b760:0x3dd,_0x31cca7:0x3cd,_0x23d4b4:0x5f0,_0x2a0a90:0x5ba,_0x2fefd0:0x6e7,_0x433a29:0x4de},_0x3aa83d={_0x30bda0:0x6da,_0x4562c5:0x27f,_0x483ee3:0x2ec,_0x4340c6:0x1f6,_0x3220ca:0x1ff,_0x5f05f3:0x575,_0x1e0aaf:0x5cd,_0x4f79f5:0x650,_0x3ce535:0x625,_0x55a622:0x648,_0xa89e17:0x588,_0x4e6e22:0x5ee,_0x10e5bd:0x715,_0x1b29a4:0x4a3,_0x1f0a8c:0x5c1},_0x5db4d3={_0x398b28:0x13f},_0x14d32b={_0x28c929:0x8d},_0x371bf3={_0x2aabf7:0x1b5};function _0xa61c7f(_0x496ed6,_0x352b84,_0x557a4e,_0x31f9b4){return _0x29bb69(_0x496ed6-0x36,_0x31f9b4-0x6e0,_0x496ed6,_0x31f9b4-_0x371bf3._0x2aabf7);}function _0xff4699(_0x49e844,_0x1914ef,_0x19a19c,_0x1fdfd8){return _0x29bb69(_0x49e844-0x106,_0x1914ef-0x519,_0x49e844,_0x1fdfd8-_0x14d32b._0x28c929);}const _0x104245=Math[_0xa61c7f(_0x52d3c0._0x5dd360,0x675,_0x52d3c0._0x135941,_0x52d3c0._0x5123be)](0x1,Math[_0xa61c7f(0x787,0x7eb,0x741,_0x52d3c0._0x6bfad)](0x14,_0x2b804b['count'])),_0x13201d={'query':_0x2b804b[_0xa61c7f(_0x52d3c0._0x4f6e91,_0x52d3c0._0x3d4084,_0x52d3c0._0x9727dd,_0x52d3c0._0x54fa1a)],'max_results':_0x104245,'search_depth':_0x13cf40[_0xa61c7f(0x6b7,_0x52d3c0._0x14ba76,_0x52d3c0._0x41695f,_0x52d3c0._0x165e57)]??_0xa61c7f(_0x52d3c0._0x5f4ae4,_0x52d3c0._0x5d2771,0x516,_0x52d3c0._0x3f41bd),'topic':_0x13cf40[_0xff4699(0x585,_0x52d3c0._0x1473b8,0x520,_0x52d3c0._0x207094)]??'general'};if(_0x2b804b['domains']['length']>0x0)_0x13201d['include_domains']=_0x2b804b['domains'];const _0x3fefb1=await fetchJson('https://api.tavily.com/search',_0x6c7d58,{'method':_0xa61c7f(0x72a,0x6fe,_0x52d3c0._0x8516e4,_0x52d3c0._0x2a4a5f),'headers':{'Authorization':'Bearer\x20'+_0x13cf40[_0xff4699(0x6f6,0x5fe,0x729,_0x52d3c0._0x476c6e)],'Content-Type':'application/json'},'body':JSON[_0xff4699(_0x52d3c0._0x15abef,0x3c0,0x382,0x4b9)](_0x13201d)}),_0x242923=_0x3fefb1[_0xa61c7f(0x53a,0x599,0x700,_0x52d3c0._0x57aa7f)]??[],_0x14f8f9=_0x242923[_0xff4699(_0x52d3c0._0x3ced68,_0x52d3c0._0x45b760,_0x52d3c0._0x31cca7,0x447)]((_0x52c24f,_0x4e86a2)=>{const _0x21b94={_0x3fa12c:0xed,_0x28e7ef:0x4c};function _0x49ed91(_0x87da1d,_0x51d2fe,_0x16e300,_0x3d22f6){return _0xff4699(_0x3d22f6,_0x87da1d-_0x21b94._0x3fa12c,_0x16e300-0xc8,_0x3d22f6-_0x21b94._0x28e7ef);}function _0x4df6ed(_0x3604d1,_0x145302,_0x1f1517,_0x1c1267){return _0xa61c7f(_0x145302,_0x145302-_0x5db4d3._0x398b28,_0x1f1517-0x1f3,_0x1f1517- -0x3a6);}const _0x353d7b=_0x52c24f[_0x49ed91(_0x3aa83d._0x30bda0,0x79e,0x630,0x5e8)]||'';let _0x255be3;try{_0x255be3=new URL(_0x353d7b)[_0x4df6ed(_0x3aa83d._0x4562c5,_0x3aa83d._0x483ee3,_0x3aa83d._0x4340c6,_0x3aa83d._0x3220ca)];}catch{_0x255be3=null;}return{'title':_0x52c24f[_0x49ed91(_0x3aa83d._0x5f05f3,0x4f4,_0x3aa83d._0x1e0aaf,_0x3aa83d._0x4f79f5)]||_0x49ed91(_0x3aa83d._0x3ce535,_0x3aa83d._0x55a622,_0x3aa83d._0xa89e17,0x710),'url':normalizeUrl(_0x353d7b),'snippet':_0x52c24f[_0x49ed91(_0x3aa83d._0x4e6e22,0x72b,_0x3aa83d._0x10e5bd,_0x3aa83d._0x1b29a4)]??null,'displayUrl':_0x255be3,'favicon':null,'publishedAt':null,'source':{'engine':_0x49ed91(_0x3aa83d._0x1f0a8c,0x470,0x497,0x70b),'rank':_0x4e86a2+0x1}};});return{'items':_0x14f8f9[_0xff4699(_0x52d3c0._0x23d4b4,_0x52d3c0._0x2a0a90,_0x52d3c0._0x2fefd0,_0x52d3c0._0x433a29)](0x0,_0x104245),'engine':'tavily'};}async function searchGoogleCse(_0x431007,_0x36c4bb,_0x22f67c){const _0x5e517f={_0x2c38f5:0x187,_0x230c07:0x1cc,_0x210ead:0xbd,_0x15e880:0x24,_0x29e7e4:0xde,_0x11b7dc:0xb2,_0x3c68c2:0x68,_0x270608:0x13,_0x2905ed:0xb3,_0x7e46b8:0x161,_0x2c0a4a:0x13,_0x23a9b1:0x13d,_0x23530a:0x227,_0x56591b:0x89,_0x2a1d03:0x217,_0x18b737:0x10a,_0x420490:0x13e,_0x12d8b6:0x113,_0x116ac5:0x20d,_0x445556:0x103,_0x21b020:0x134,_0x4070f0:0xa8,_0x435108:0x112,_0xc7000a:0x228,_0x27ebbd:0x10d,_0x117d96:0x2a,_0x28276a:0x1a9,_0x571461:0x15b,_0x35f550:0x8d,_0x280d7f:0x6,_0x63d693:0x157,_0xe97724:0x130,_0x21ecaa:0x1d1,_0x1d5baf:0xff,_0x5dfa04:0xb8,_0x493a11:0xe7,_0x5b6011:0xd2,_0x9c8ffd:0x55,_0x2a3148:0x5c,_0x1291a7:0xf2,_0x482f2c:0x1cf,_0x3c642a:0x1a8,_0x58616:0x148,_0x3bb461:0x1aa,_0x52368c:0x154,_0x136e1e:0x30,_0x3701cc:0x98,_0x3bba67:0xf7,_0x3ad255:0x59,_0x5934a0:0x95,_0x39741e:0x1d1,_0x5f1271:0x13e,_0x1f658b:0x295,_0x1b0aa8:0x79,_0x463f9c:0x22,_0x217704:0xb1,_0x363106:0x8d,_0x1cff69:0x287,_0x3a0fe3:0x13e,_0x531fa3:0x150,_0x5e99d2:0x104,_0x305a2d:0x78,_0x7d2f4d:0x182,_0x31f1b6:0x6d,_0x73869e:0x9,_0x57ec49:0xa5,_0x4abfab:0x162,_0x2ce25e:0x163,_0x22c076:0x55,_0x3ad977:0xcc,_0x2ebc1f:0xb8,_0x537bcc:0x140,_0x5bcdee:0xdf,_0x4003ec:0x65,_0xbf2e4a:0x35,_0x4dbc5f:0x130,_0xf404f5:0x218,_0x3dd751:0x166,_0x2193b1:0x10c,_0x406b1c:0x169,_0x1db464:0x177,_0x56522f:0x1ab,_0x3ccc61:0x56,_0x3423c1:0x171,_0x3c6eba:0x33,_0x40a8e3:0x3c,_0xf9adb3:0x16b,_0xe9c001:0x17b,_0x14cc5e:0x118,_0x111132:0xc9,_0xa6365:0x71,_0x39b23d:0x45,_0xced6bb:0x129,_0x5881f2:0xb4,_0x19c6b2:0x22a,_0x218807:0x109,_0x22c39d:0x126,_0x450937:0x20c,_0x113998:0xd4,_0x33fdb7:0x84,_0x441747:0x14,_0xedd4ba:0x6e,_0x4ec3f4:0xce,_0x372055:0x1cc,_0x14193f:0x21c,_0x2f15f1:0x187,_0x2d8b47:0x51,_0x1705c5:0x1a0,_0x47f118:0x289,_0x428023:0x162,_0x1b9629:0x167,_0x59e9bc:0x1eb,_0x59fc7b:0x226,_0x3942c0:0x6f,_0x13ec10:0x1e3,_0xe7f5dc:0x1f6,_0x37db94:0x3},_0x7773bb={_0x538667:0x9a},_0xb613f7={_0x27e33c:0x157};function _0x137c35(_0x4a6d2e,_0x5db4a5,_0x286e01,_0x13ef24){return _0x567203(_0x4a6d2e,_0x5db4a5-0x152,_0x13ef24- -_0xb613f7._0x27e33c,_0x13ef24-0x132);}function _0x2042ef(_0x23c962,_0x6fb78b,_0x383f9a,_0xf51858){return _0x567203(_0xf51858,_0x6fb78b-_0x7773bb._0x538667,_0x23c962- -0x1c9,_0xf51858-0x105);}const _0x1c39b1=Math[_0x137c35(-_0x5e517f._0x2c38f5,-_0x5e517f._0x230c07,-0xd,-_0x5e517f._0x210ead)](0x1,Math[_0x2042ef(_0x5e517f._0x15e880,-_0x5e517f._0x29e7e4,-0xc5,-_0x5e517f._0x11b7dc)](0x32,_0x36c4bb[_0x2042ef(-0x57,_0x5e517f._0x3c68c2,-_0x5e517f._0x270608,-0x153)]));if(_0x36c4bb['offset']+_0x1c39b1>0x64)throw new ToolExecutionError(_0x137c35(-0x1f,-0x2d,0xcc,_0x5e517f._0x2905ed),{'offset':_0x36c4bb[_0x137c35(-0x9a,-0x6,-0x19,0x57)],'count':_0x1c39b1,'maxResults':0x64});const _0x1a0df3=cseDateRestrict(_0x36c4bb[_0x137c35(0x3a,0xb7,0x26,0x67)]),_0x42a816=addSiteFilters(_0x36c4bb[_0x2042ef(-0x8c,-_0x5e517f._0x7e46b8,-0x1e,-0xec)],_0x36c4bb[_0x2042ef(_0x5e517f._0x2c0a4a,0x73,_0x5e517f._0x23a9b1,0xf)]);let _0xd6147a=0x0,_0x4a8e29=_0x36c4bb[_0x137c35(0x149,_0x5e517f._0x7e46b8,-0xd6,0x57)]+0x1;const _0x40aa22=[];while(_0xd6147a<_0x1c39b1){const _0x2d6a17=Math['min'](0xa,_0x1c39b1-_0xd6147a),_0x56de8e=new URL(_0x137c35(_0x5e517f._0x23530a,_0x5e517f._0x56591b,_0x5e517f._0x2a1d03,_0x5e517f._0x18b737));_0x56de8e[_0x2042ef(-_0x5e517f._0x420490,-0x16c,-_0x5e517f._0x12d8b6,-_0x5e517f._0x116ac5)][_0x137c35(-0x1c2,-_0x5e517f._0x445556,-0xef,-0x8d)](_0x2042ef(0x43,_0x5e517f._0x21b020,-_0x5e517f._0x4070f0,-_0x5e517f._0x435108),_0x431007[_0x137c35(-_0x5e517f._0xc7000a,-_0x5e517f._0x27ebbd,-_0x5e517f._0x117d96,-0xe1)]),_0x56de8e['searchParams'][_0x137c35(-_0x5e517f._0x28276a,-_0x5e517f._0x571461,-0x125,-_0x5e517f._0x35f550)]('cx',_0x431007['googleCseCx']),_0x56de8e['searchParams'][_0x137c35(_0x5e517f._0x280d7f,0x4c,-0x1c,-0x8d)]('q',_0x42a816),_0x56de8e[_0x2042ef(-0x13e,-_0x5e517f._0x63d693,-_0x5e517f._0xe97724,-_0x5e517f._0x21ecaa)][_0x2042ef(-_0x5e517f._0x1d5baf,-0x1f0,-0x14e,-0x13)](_0x137c35(_0x5e517f._0x5dfa04,_0x5e517f._0x493a11,-_0x5e517f._0x5b6011,_0x5e517f._0x280d7f),String(_0x2d6a17)),_0x56de8e[_0x137c35(-0xb6,_0x5e517f._0x9c8ffd,-0x1c1,-0xcc)][_0x137c35(_0x5e517f._0x2a3148,-0x36,-_0x5e517f._0x1291a7,-0x8d)]('start',String(_0x4a8e29)),_0x56de8e[_0x2042ef(-0x13e,-0x84,-0x138,-_0x5e517f._0x482f2c)]['set'](_0x137c35(_0x5e517f._0x3c642a,_0x5e517f._0x58616,0xfa,0xf7),_0x36c4bb[_0x137c35(_0x5e517f._0x3bb461,_0x5e517f._0x52368c,0x22b,0xf7)]?_0x137c35(_0x5e517f._0x136e1e,_0x5e517f._0x3701cc,_0x5e517f._0x3bba67,_0x5e517f._0x3ad255):'off');_0x36c4bb[_0x137c35(-_0x5e517f._0x5934a0,-0x1ee,-_0x5e517f._0x39741e,-0x110)]&&(_0x56de8e[_0x2042ef(-_0x5e517f._0x5f1271,-_0x5e517f._0x1f658b,-0x123,-0xbc)][_0x137c35(_0x5e517f._0x1b0aa8,_0x5e517f._0x463f9c,-_0x5e517f._0x217704,-_0x5e517f._0x363106)]('hl',_0x36c4bb[_0x2042ef(-0x182,-_0x5e517f._0x1cff69,-0x12d,-0x10d)]),_0x56de8e[_0x2042ef(-_0x5e517f._0x3a0fe3,-0x3c,-_0x5e517f._0x531fa3,-0x16)]['set']('lr',_0x137c35(_0x5e517f._0x5e99d2,-_0x5e517f._0x305a2d,-0x3,0x4e)+_0x36c4bb[_0x2042ef(-_0x5e517f._0x7d2f4d,-0xd1,-0x178,-_0x5e517f._0x3c642a)]));if(_0x36c4bb[_0x2042ef(_0x5e517f._0x31f1b6,_0x5e517f._0x73869e,_0x5e517f._0x57ec49,_0x5e517f._0x4abfab)])_0x56de8e[_0x137c35(-0x58,-_0x5e517f._0x2ce25e,-_0x5e517f._0x22c076,-_0x5e517f._0x3ad977)]['set']('gl',_0x36c4bb[_0x137c35(0x1b0,_0x5e517f._0x2ebc1f,_0x5e517f._0x537bcc,_0x5e517f._0x5bcdee)]['toUpperCase']());if(_0x36c4bb[_0x2042ef(-0x111,-0x267,-0x11a,-0x20)]===_0x2042ef(-_0x5e517f._0x4003ec,-0xf8,0xc3,_0x5e517f._0xbf2e4a))_0x56de8e['searchParams'][_0x2042ef(-0xff,-0x25,-0x11e,0x3f)](_0x137c35(-0x165,-_0x5e517f._0x21b020,-_0x5e517f._0x4dbc5f,-0x9d),'image');if(_0x1a0df3)_0x56de8e[_0x137c35(-_0x5e517f._0xf404f5,-0x3f,-_0x5e517f._0x3dd751,-_0x5e517f._0x3ad977)][_0x137c35(-_0x5e517f._0x2193b1,-0x11d,-0x53,-0x8d)](_0x2042ef(-0x137,-0xc5,-0x47,-0x1a0),_0x1a0df3);const _0x3c359f=await fetchJson(_0x56de8e[_0x137c35(-0x1de,-0x27f,-0x2bf,-_0x5e517f._0x406b1c)](),_0x22f67c),_0x481612=_0x3c359f[_0x137c35(-_0x5e517f._0x1db464,-0x20c,-_0x5e517f._0x56522f,-0x112)]??[];if(_0x481612[_0x137c35(-_0x5e517f._0x3ccc61,-0x281,-0x2a9,-_0x5e517f._0x3423c1)]===0x0)break;const _0x595141=_0xd6147a;for(let _0x269454=0x0;_0x269454<_0x481612[_0x137c35(-0x64,-0x1fc,-_0x5e517f._0x3c6eba,-0x171)];_0x269454++){const _0x4fe0dc=_0x481612[_0x269454];if(!_0x4fe0dc)continue;const _0x427e16=_0x4fe0dc[_0x2042ef(-_0x5e517f._0x40a8e3,0xb6,-_0x5e517f._0xf9adb3,-0x6b)]||_0x4fe0dc[_0x2042ef(-_0x5e517f._0xe9c001,-0x292,-0x19b,-_0x5e517f._0x14cc5e)]?.[_0x2042ef(-0x63,_0x5e517f._0x111132,-_0x5e517f._0x7d2f4d,_0x5e517f._0xa6365)]||'',_0x79275d=_0x4fe0dc[_0x137c35(-_0x5e517f._0x39b23d,-0x1cb,-_0x5e517f._0xced6bb,-_0x5e517f._0x5881f2)]||_0x4fe0dc[_0x137c35(-0x20e,-_0x5e517f._0x19c6b2,-0x20d,-_0x5e517f._0x218807)]?.[_0x2042ef(-_0x5e517f._0x22c39d,-0xeb,-0xa,0x28)]||'Untitled',_0x21c668=_0x4fe0dc[_0x137c35(0xfe,_0x5e517f._0x450937,0x53,_0x5e517f._0x113998)]||_0x4fe0dc[_0x137c35(-_0x5e517f._0x33fdb7,-_0x5e517f._0x441747,-_0x5e517f._0xedd4ba,-_0x5e517f._0x4ec3f4)]?.[_0x137c35(-0x132,-0x61,0x6f,-0x6e)](/<[^>]+>/g,''),_0x505f6b=_0x4fe0dc[_0x2042ef(-_0x5e517f._0x372055,-0xbc,-_0x5e517f._0x14193f,-0x283)]?.[_0x137c35(_0x5e517f._0x2f15f1,-_0x5e517f._0x2d8b47,_0x5e517f._0x1705c5,0x8a)]?.[0x0]??{};let _0x3ea370;try{_0x3ea370=new URL(_0x427e16)[_0x137c35(-_0x5e517f._0x47f118,-_0x5e517f._0x428023,-_0x5e517f._0x1b9629,-0x167)];}catch{_0x3ea370=null;}_0x40aa22[_0x137c35(0x1c,-0xb3,_0x5e517f._0x59e9bc,0x95)]({'title':_0x79275d,'url':normalizeUrl(_0x427e16),'snippet':_0x21c668??null,'displayUrl':_0x3ea370,'favicon':null,'publishedAt':_0x505f6b[_0x2042ef(-0xbc,-0x1fa,-0x1c6,_0x5e517f._0x33fdb7)]||_0x505f6b[_0x2042ef(-0xec,-0xbb,-_0x5e517f._0x59fc7b,-0xf3)]||null,'source':{'engine':_0x2042ef(-_0x5e517f._0x3942c0,-0x180,-0x9b,0x8c),'rank':_0x595141+_0x269454+0x1}});}_0xd6147a+=_0x481612['length'],_0x4a8e29+=_0x481612[_0x2042ef(-_0x5e517f._0x13ec10,-0x227,-0x1b8,-0x32e)];if(_0x481612[_0x137c35(-_0x5e517f._0xe7f5dc,-0x1c,-0x3c,-0x171)]<_0x2d6a17)break;}return _0x40aa22[_0x2042ef(0xc,0xc7,0x36,_0x5e517f._0x37db94)](0x0,_0x1c39b1);}function isGoogleCseEngine(_0x41ef7d){const _0x32d1e8={_0x5c1555:0x9e},_0x4e0abc={_0xcb2503:0x15c};function _0x3e21b0(_0x3a1403,_0x2719b7,_0x56e12d,_0xfb964e){return _0x29bb69(_0x3a1403-0x7d,_0x56e12d-_0x4e0abc._0xcb2503,_0x3a1403,_0xfb964e-0x1b2);}return _0x3e21b0(0x1d6,0x113,_0x32d1e8._0x5c1555,0x2f)in _0x41ef7d;}function isOllamaEngine(_0x4474fe){const _0x317777={_0x556c07:0x139,_0x5525ac:0x105,_0x2fa602:0x39,_0x197767:0x1fa},_0x27d624={_0x4ab51c:0x159,_0x3705fe:0xc};function _0x580658(_0x5c17ae,_0x5adb55,_0x5dd8f2,_0x5413dd){return _0x29bb69(_0x5c17ae-_0x27d624._0x4ab51c,_0x5adb55-_0x27d624._0x3705fe,_0x5c17ae,_0x5413dd-0x185);}return _0x580658(_0x317777._0x556c07,_0x317777._0x5525ac,-_0x317777._0x2fa602,_0x317777._0x197767)in _0x4474fe;}function isTavilyEngine(_0x24208a){const _0x546c8b={_0x24cae2:0x280,_0x57f199:0x34a},_0xdb433={_0x2a2aa5:0x5a,_0xadcab0:0x2d5,_0x339c4c:0x104};function _0x496e00(_0x17f893,_0x8f7aef,_0x4380eb,_0x1a7419){return _0x29bb69(_0x17f893-_0xdb433._0x2a2aa5,_0x8f7aef-_0xdb433._0xadcab0,_0x17f893,_0x1a7419-_0xdb433._0x339c4c);}return _0x496e00(_0x546c8b._0x24cae2,0x3ba,_0x546c8b._0x57f199,0x4ff)in _0x24208a;}function createWebSearchTool(_0x2432f5){const _0x3bca9f={_0x25cc57:0x5d1,_0x129ac3:0x5b7,_0x5707f7:0x453,_0x33d40a:0x18,_0x563f2a:0x50,_0x9c308e:0x45b,_0x335a84:0x50f,_0x317a96:0x4e2,_0x14de0b:0x322,_0x27bc21:0x227,_0x5b0dce:0x455,_0x56250d:0x4cb,_0x17c458:0x44d,_0x38848d:0x3f2,_0x12fe6a:0x44d,_0x3e5be4:0x34b,_0x4e6d8f:0x4f,_0x39d1d4:0x9a,_0x2891fa:0xbe,_0x33b0d6:0x292,_0x40fd48:0x1a9,_0x328701:0x295,_0x364e19:0xbe,_0x3d08cd:0x23d,_0x3c7919:0x352,_0x48118f:0x23b,_0x583c8c:0x36c,_0x8dd76f:0x102,_0x4df66b:0x497,_0x272899:0x11c},_0x545b51={_0x117779:0x426,_0x49f443:0x589,_0x3cae2e:0x435,_0x6f33ef:0x53e,_0x4ba072:0x43a,_0x133bc7:0x55d,_0x418c6b:0x52e,_0x378dfe:0x583,_0x942204:0x51e,_0x333b40:0x569,_0x33ea3b:0x65a,_0x2e0cb8:0x518,_0x9a3184:0x717,_0x3b7dbc:0x5a9,_0x23963b:0x4f1,_0xcd0c4:0x5f9,_0x5b31c6:0x55e,_0x2f44f9:0x69f,_0xaf26ad:0x5df,_0x2e3d8e:0x75d,_0x195d9f:0x5f1,_0x4e121f:0x758,_0x2d22fa:0x763,_0x510acf:0x70c,_0x12b51f:0x3df,_0x222c42:0x6f9,_0xb6fc72:0x5fb,_0x41d78b:0x61c,_0x21c05d:0x731,_0x29f072:0x7dd,_0x3110e1:0x699,_0x324abe:0x619,_0x1db220:0x659,_0x3e92e1:0x6b8,_0x4a0fe0:0x3f8,_0x32fbd6:0x49c,_0x49c904:0x495,_0x4197fd:0x610,_0x4f76fe:0x508,_0x312a56:0x4ef,_0x127fb0:0x55c,_0x233799:0x571,_0x453511:0x54a,_0x2bf21c:0x690,_0x592451:0x55b,_0x398ba0:0x3a5,_0x2f9213:0x431,_0xccd568:0x540,_0x24a8e9:0x6d1,_0x2101b4:0x733,_0xea8ab8:0x710,_0x51a319:0x5ea,_0x3a1019:0x659,_0xced2ec:0x657,_0x1fbea7:0x63c,_0x40539d:0x735,_0xed8110:0x68f,_0x4278af:0x385,_0x31ead8:0x3bd,_0x5252c6:0x337,_0x22815f:0x466,_0x446e99:0x523,_0x2a1f67:0x524,_0x52b121:0x627,_0x320cf8:0x717,_0x4500e6:0x4a9,_0x53fa33:0x3e9,_0x1046ed:0x469,_0x44e9cc:0x69f,_0x2a8a79:0x751,_0xbca401:0x6d1,_0xccba0:0x502,_0x2b3d86:0x651,_0x43553d:0x728,_0x639493:0x527,_0x196d28:0x5dd,_0x4a2420:0x50a,_0x1f509d:0x599,_0x29ea22:0x59f,_0xd03e4b:0x587,_0xa76ef5:0x539,_0x1fab7d:0x598,_0x1c1b8f:0x573,_0x18e29e:0x65b,_0x473508:0x697,_0x59a5f6:0x7bd,_0x363abb:0x76b,_0x1ebc0e:0x572,_0x18e121:0x76e,_0x155ba5:0x52f,_0x3704de:0x681,_0x3ada9f:0x711,_0x450591:0x4a9,_0x339404:0x5cb,_0x10fd03:0x526,_0x49900b:0x570,_0x2c04c0:0x699,_0x4698d5:0x5a3,_0x379510:0x5bd,_0x23eaa3:0x5c4},_0xb969ed={_0x49af2:0x4b},_0x113379={_0x55a278:0x212,_0x55da3b:0x100},_0x54e251={_0x585797:0x178},_0x5e4a76={_0x347236:0x15c};if(!_0x2432f5[_0x207039(0x496,_0x3bca9f._0x25cc57,0x4bf,0x4a8)]||_0x2432f5[_0x207039(_0x3bca9f._0x129ac3,_0x3bca9f._0x5707f7,0x4bf,0x5e5)][_0x6c59a3(-0xb9,-0xd,_0x3bca9f._0x33d40a,-_0x3bca9f._0x563f2a)]===0x0)throw new Error(_0x207039(0x1eb,0x2b3,0x2c1,0x294));function _0x6c59a3(_0x2ea5f1,_0x2035d7,_0x4daf0c,_0x37e248){return _0x567203(_0x2ea5f1,_0x2035d7-_0x5e4a76._0x347236,_0x2035d7-0xd,_0x37e248-0x130);}const _0x3e586a=_0x2432f5['name']??'WebSearch';function _0x207039(_0x3d2717,_0x1e6bb0,_0x1782c5,_0x5b0efe){return _0x567203(_0x3d2717,_0x1e6bb0-_0x54e251._0x585797,_0x1782c5-0x2b1,_0x5b0efe-0x1e7);}return defineTool({'name':_0x3e586a,'description':_0x207039(_0x3bca9f._0x9c308e,_0x3bca9f._0x335a84,_0x3bca9f._0x317a96,0x572),'inputSchema':{'type':_0x6c59a3(0x1b2,0x225,_0x3bca9f._0x14de0b,_0x3bca9f._0x27bc21),'properties':{'description':{'type':_0x207039(0x319,0x43e,0x362,_0x3bca9f._0x5b0dce)},'query':{'type':'string'},'count':{'type':_0x207039(0x47e,_0x3bca9f._0x56250d,_0x3bca9f._0x17c458,_0x3bca9f._0x38848d)},'offset':{'type':_0x207039(0x39c,0x403,_0x3bca9f._0x12fe6a,_0x3bca9f._0x3e5be4)},'domains':{'type':_0x6c59a3(_0x3bca9f._0x4e6d8f,0x136,0x16d,0x9),'items':{'type':_0x6c59a3(_0x3bca9f._0x39d1d4,_0x3bca9f._0x2891fa,0x57,0x106)}},'recencyDays':{'type':_0x6c59a3(_0x3bca9f._0x33b0d6,_0x3bca9f._0x40fd48,0x12a,_0x3bca9f._0x328701)},'lang':{'type':_0x6c59a3(-0x6a,_0x3bca9f._0x364e19,0x1cf,0xf)},'region':{'type':_0x207039(_0x3bca9f._0x3d08cd,0x349,0x362,0x38a)},'safe':{'type':_0x207039(_0x3bca9f._0x3c7919,_0x3bca9f._0x48118f,_0x3bca9f._0x583c8c,0x380)},'type':{'type':_0x6c59a3(0x5e,0xbe,-0x77,_0x3bca9f._0x8dd76f)},'hydrateMeta':{'type':_0x207039(0x37a,_0x3bca9f._0x4df66b,0x36c,0x367)}},'required':[_0x6c59a3(0x171,0x14a,_0x3bca9f._0x272899,0x142)]},async *'execute'(_0x23c478,_0x4055cb){const _0x3c0e64={_0x6565b8:0x67e,_0x18e902:0x6d8,_0x372a33:0x6ee,_0x14fca4:0x5cb,_0x541bd4:0x74a,_0x2c7b51:0x648,_0x713d67:0x6e0,_0x1d3370:0x755,_0x3dfec4:0x639,_0x11eedd:0x4e8,_0x5d1a51:0x5f1},_0x3270fb={_0x1f8067:0xed},_0x3fbe15={_0x2226d4:0x23,_0x56d46b:0x109},_0x48a76b=_0x23c478[_0x4dd429(0x540,0x612,0x588,0x55b)][_0x4dd429(_0x545b51._0x117779,_0x545b51._0x49f443,_0x545b51._0x3cae2e,0x382)]();if(!_0x48a76b)throw new ToolExecutionError(_0xa425fb(0x4af,0x3f2,_0x545b51._0x6f33ef,_0x545b51._0x4ba072));const _0x1b0294={'query':_0x48a76b,'count':Math[_0xa425fb(_0x545b51._0x133bc7,_0x545b51._0x418c6b,_0x545b51._0x378dfe,_0x545b51._0x942204)](0x1,Math['min'](0x32,Math[_0x4dd429(_0x545b51._0x333b40,_0x545b51._0x33ea3b,0x619,_0x545b51._0x2e0cb8)](_0x23c478['count']??0xa))),'offset':Math['max'](0x0,Math[_0x4dd429(_0x545b51._0x9a3184,0x700,0x619,0x645)](_0x23c478[_0x4dd429(_0x545b51._0x3b7dbc,_0x545b51._0x23963b,_0x545b51._0xcd0c4,_0x545b51._0x5b31c6)]??0x0)),'domains':_0x23c478[_0xa425fb(_0x545b51._0x2f44f9,_0x545b51._0xaf26ad,_0x545b51._0x2e3d8e,_0x545b51._0x195d9f)]??[],'recencyDays':Math[_0xa425fb(0x55d,0x45a,0x42f,0x554)](0x0,Math[_0x4dd429(0x6bb,_0x545b51._0x4e121f,0x619,0x68a)](_0x23c478[_0xa425fb(0x681,0x6eb,_0x545b51._0x2d22fa,_0x545b51._0x510acf)]??0x0)),'lang':_0x23c478[_0xa425fb(0x50a,0x4f3,_0x545b51._0x12b51f,0x484)]??'en','region':_0x23c478[_0xa425fb(_0x545b51._0x222c42,_0x545b51._0xb6fc72,_0x545b51._0x41d78b,0x62b)]??'','safe':_0x23c478[_0x4dd429(_0x545b51._0x21c05d,_0x545b51._0x29f072,_0x545b51._0x3110e1,0x550)]??!![],'type':normalizeType(_0x23c478['type']),'hydrateMeta':_0x23c478['hydrateMeta']??![]};let _0x5211ff=[],_0x33f0ff='unknown';for(const _0x3571f7 of _0x2432f5[_0x4dd429(_0x545b51._0x324abe,0x70e,_0x545b51._0x1db220,_0x545b51._0x3e92e1)]){try{if(isGoogleCseEngine(_0x3571f7))_0x5211ff=await searchGoogleCse(_0x3571f7,_0x1b0294,_0x4055cb[_0xa425fb(0x514,0x576,0x647,0x581)]),_0x33f0ff='google-cse';else{if(isOllamaEngine(_0x3571f7)){const _0x359b7f=await searchOllama(_0x3571f7,_0x1b0294,_0x4055cb[_0x4dd429(_0x545b51._0x4a0fe0,0x3c0,_0x545b51._0x32fbd6,0x5bb)]);_0x5211ff=_0x359b7f[_0x4dd429(0x3f9,0x516,0x490,_0x545b51._0x49c904)],_0x33f0ff=_0x359b7f[_0x4dd429(0x7ca,0x5e7,0x690,_0x545b51._0x4197fd)];}else{if(isTavilyEngine(_0x3571f7)){const _0x36d990=await searchTavily(_0x3571f7,_0x1b0294,_0x4055cb['signal']);_0x5211ff=_0x36d990[_0xa425fb(_0x545b51._0x4f76fe,_0x545b51._0x312a56,_0x545b51._0x127fb0,0x599)],_0x33f0ff=_0x36d990[_0x4dd429(_0x545b51._0x233799,_0x545b51._0x453511,_0x545b51._0x2bf21c,0x6e1)];}}}if(_0x5211ff[_0x4dd429(_0x545b51._0x592451,_0x545b51._0x398ba0,_0x545b51._0x2f9213,_0x545b51._0xccd568)]>0x0)break;}catch(_0x18843d){if(_0x3571f7===_0x2432f5[_0xa425fb(_0x545b51._0x24a8e9,_0x545b51._0x2101b4,0x639,_0x545b51._0xea8ab8)][_0x2432f5[_0x4dd429(0x64f,_0x545b51._0x51a319,_0x545b51._0x3a1019,_0x545b51._0xced2ec)][_0x4dd429(0x338,0x537,_0x545b51._0x2f9213,0x4a5)]-0x1])throw _0x18843d;}}_0x1b0294[_0xa425fb(_0x545b51._0x1fbea7,_0x545b51._0x40539d,_0x545b51._0xed8110,0x713)]&&_0x5211ff[_0x4dd429(0x4aa,0x370,0x431,0x431)]>0x0&&(_0x5211ff=await hydrateResults(_0x5211ff,_0x1b0294['lang'],_0x4055cb[_0x4dd429(_0x545b51._0x4278af,0x52e,0x49c,0x3c5)]));const _0x2e0525=new Set();_0x5211ff=_0x5211ff[_0x4dd429(_0x545b51._0x31ead8,_0x545b51._0x5252c6,_0x545b51._0x22815f,_0x545b51._0x446e99)](_0x203a80=>{function _0x38932f(_0x5f5237,_0x52bce3,_0x1160d3,_0x39015d){return _0xa425fb(_0x39015d-_0x3fbe15._0x2226d4,_0x1160d3,_0x1160d3-_0x3fbe15._0x56d46b,_0x39015d-0x1dd);}const _0x465a1e=_0x203a80[_0x38932f(0x5f0,_0x3c0e64._0x6565b8,_0x3c0e64._0x18e902,_0x3c0e64._0x372a33)][_0x38932f(0x5f0,0x5a2,0x4d1,_0x3c0e64._0x14fca4)]();if(!_0x465a1e||_0x2e0525[_0x38932f(_0x3c0e64._0x541bd4,_0x3c0e64._0x2c7b51,_0x3c0e64._0x713d67,_0x3c0e64._0x1d3370)](_0x465a1e))return![];_0x2e0525[_0x45654a(_0x3c0e64._0x3dfec4,_0x3c0e64._0x11eedd,0x506,_0x3c0e64._0x5d1a51)](_0x465a1e);function _0x45654a(_0x31e72f,_0x2fde2f,_0x109a1,_0x1db34e){return _0x4dd429(_0x31e72f-_0x3270fb._0x1f8067,_0x109a1,_0x2fde2f-0x32,_0x1db34e-0x173);}return!![];}),_0x5211ff=_0x5211ff[_0xa425fb(0x4bb,0x58d,_0x545b51._0x2a1f67,0x418)]((_0x3b044d,_0x3d5de3)=>({..._0x3b044d,'source':{..._0x3b044d[_0xa425fb(0x570,0x46b,0x57e,0x5a1)],'rank':_0x3d5de3+0x1}}));function _0xa425fb(_0x3f39ba,_0x5a310a,_0x22cde0,_0x48b6b7){return _0x207039(_0x5a310a,_0x5a310a-0x4,_0x3f39ba-_0x113379._0x55a278,_0x48b6b7-_0x113379._0x55da3b);}function _0x4dd429(_0xe71364,_0x454cf2,_0x12291c,_0x311869){return _0x207039(_0x454cf2,_0x454cf2-_0xb969ed._0x49af2,_0x12291c-0x19a,_0x311869-0x9);}const _0x442a70={};if(_0x1b0294[_0x4dd429(0x581,0x6f0,_0x545b51._0x52b121,_0x545b51._0x320cf8)][_0xa425fb(_0x545b51._0x4500e6,_0x545b51._0x53fa33,_0x545b51._0x1046ed,0x532)]>0x0)_0x442a70[_0xa425fb(_0x545b51._0x44e9cc,0x631,0x5dd,_0x545b51._0x2a8a79)]=_0x1b0294[_0x4dd429(_0x545b51._0xbca401,_0x545b51._0xccba0,_0x545b51._0x52b121,_0x545b51._0x2b3d86)];if(_0x1b0294[_0x4dd429(_0x545b51._0x43553d,_0x545b51._0x639493,0x609,_0x545b51._0x196d28)]>0x0)_0x442a70[_0x4dd429(0x6e7,0x50e,0x609,0x5b8)]=_0x1b0294['recencyDays'];if(_0x1b0294[_0xa425fb(_0x545b51._0x4a2420,_0x545b51._0x1f509d,_0x545b51._0x29ea22,0x444)]!=='en')_0x442a70[_0xa425fb(_0x545b51._0x4a2420,0x55d,_0x545b51._0xd03e4b,_0x545b51._0xa76ef5)]=_0x1b0294[_0xa425fb(0x50a,_0x545b51._0x1fab7d,_0x545b51._0x1c1b8f,_0x545b51._0x18e29e)];if(_0x1b0294[_0xa425fb(0x6f9,_0x545b51._0x473508,_0x545b51._0x59a5f6,_0x545b51._0x363abb)])_0x442a70[_0x4dd429(_0x545b51._0x1ebc0e,0x678,0x681,_0x545b51._0x18e121)]=_0x1b0294[_0x4dd429(_0x545b51._0x155ba5,0x790,_0x545b51._0x3704de,_0x545b51._0x3ada9f)];return yield createToolOutput(formatResults(_0x5211ff),{'engine':_0x33f0ff,'count':_0x5211ff[_0xa425fb(_0x545b51._0x450591,_0x545b51._0x339404,0x543,_0x545b51._0x10fd03)],'items':_0x5211ff,'query':_0x1b0294['query'],...Object['keys'](_0x442a70)[_0x4dd429(_0x545b51._0x49900b,0x420,_0x545b51._0x2f9213,0x3b0)]>0x0?{'appliedFilters':_0x442a70}:{},'offset':_0x1b0294['offset'],'totalRequested':_0x1b0294[_0x4dd429(_0x545b51._0x2c04c0,_0x545b51._0x4698d5,_0x545b51._0x379510,0x5c6)],'hydrated':_0x1b0294[_0x4dd429(0x4b5,0x57a,_0x545b51._0x23eaa3,0x673)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|