@nuvin/agent-core 0.0.0-rc.17 → 0.0.0-rc.19

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.
Files changed (90) hide show
  1. package/dist/VERSION +2 -2
  2. package/dist/agent/agent.d.ts +28 -0
  3. package/dist/agent/context-compactor.d.ts +8 -0
  4. package/dist/agent/extension-registry.d.ts +3 -0
  5. package/dist/agent/index.d.ts +8 -99
  6. package/dist/agent/index.js +1 -1
  7. package/dist/agent/messages-to-text.d.ts +3 -0
  8. package/dist/agent/metrics.d.ts +30 -0
  9. package/dist/agent/topic-reminder-extension.d.ts +32 -0
  10. package/dist/agent/turn-engine.d.ts +3 -0
  11. package/dist/chunk-FFIZ6TKW.js +1 -1
  12. package/dist/chunk-HRU363DY.js +1 -0
  13. package/dist/chunk-NHBKADBW.js +1 -0
  14. package/dist/chunk-NYZR4XKO.js +1 -1
  15. package/dist/chunk-QDOE7NWO.js +1 -0
  16. package/dist/chunk-X7VAACWY.js +1 -1
  17. package/dist/formats/base64-image-content.d.ts +4 -0
  18. package/dist/formats/index.d.ts +4 -39
  19. package/dist/formats/index.js +1 -1
  20. package/dist/formats/message-format.d.ts +33 -0
  21. package/dist/formats/provider-adapters.d.ts +3 -0
  22. package/dist/hooks/executor.d.ts +3 -0
  23. package/dist/hooks/extensions.d.ts +28 -0
  24. package/dist/hooks/index.d.ts +7 -76
  25. package/dist/hooks/index.js +1 -1
  26. package/dist/hooks/registry.d.ts +8 -0
  27. package/dist/hooks/types.d.ts +40 -0
  28. package/dist/lsp/client.d.ts +11 -0
  29. package/dist/lsp/index.d.ts +24 -0
  30. package/dist/lsp/installer.d.ts +11 -0
  31. package/dist/lsp/language.d.ts +2 -0
  32. package/dist/lsp/server.d.ts +6 -0
  33. package/dist/lsp/types.d.ts +68 -0
  34. package/dist/models/anthropic-model.d.ts +27 -0
  35. package/dist/models/anthropic-surface.d.ts +5 -0
  36. package/dist/models/chat-model.d.ts +31 -0
  37. package/dist/models/github-model.d.ts +32 -0
  38. package/dist/models/http-transport.d.ts +10 -0
  39. package/dist/models/index.d.ts +16 -390
  40. package/dist/models/index.js +1 -1
  41. package/dist/models/mock-model.d.ts +15 -0
  42. package/dist/models/model-errors.d.ts +16 -0
  43. package/dist/models/model-limits.d.ts +7 -0
  44. package/dist/models/model-registry.d.ts +44 -0
  45. package/dist/models/model-surface-router.d.ts +19 -0
  46. package/dist/models/model-transports.d.ts +17 -0
  47. package/dist/models/openai-model.d.ts +60 -0
  48. package/dist/models/openai-surfaces.d.ts +74 -0
  49. package/dist/models/provider-adapter.d.ts +23 -0
  50. package/dist/models/provider-session.d.ts +16 -0
  51. package/dist/models/routed-model.d.ts +90 -0
  52. package/dist/shared/abort.d.ts +9 -0
  53. package/dist/shared/index.d.ts +5 -22
  54. package/dist/shared/index.js +1 -1
  55. package/dist/shared/reasoning-config.d.ts +5 -0
  56. package/dist/shared/turn-failed.d.ts +6 -0
  57. package/dist/{types-3UUDPpJs.d.ts → shared/types.d.ts} +172 -162
  58. package/dist/tools/ask-user-tool.d.ts +55 -0
  59. package/dist/tools/bash-tool.d.ts +63 -0
  60. package/dist/tools/command-tool.d.ts +23 -0
  61. package/dist/tools/file-edit-tool.d.ts +29 -0
  62. package/dist/tools/file-new-tool.d.ts +21 -0
  63. package/dist/tools/file-read-tool.d.ts +27 -0
  64. package/dist/tools/glob-tool.d.ts +26 -0
  65. package/dist/tools/grep-tool.d.ts +34 -0
  66. package/dist/tools/index.d.ts +28 -809
  67. package/dist/tools/index.js +1 -1
  68. package/dist/tools/internal-tool-runtime.d.ts +8 -0
  69. package/dist/tools/ls-tool.d.ts +20 -0
  70. package/dist/tools/lsp-tool.d.ts +36 -0
  71. package/dist/tools/mcp-oauth-provider.d.ts +11 -0
  72. package/dist/tools/mcp-server-manager.d.ts +43 -0
  73. package/dist/tools/mcp-tool-adapter.d.ts +47 -0
  74. package/dist/tools/mock-tool-runtime.d.ts +3 -0
  75. package/dist/tools/ripgrep.d.ts +20 -0
  76. package/dist/tools/runtime-manager-tools.d.ts +58 -0
  77. package/dist/tools/skill-tool.d.ts +33 -0
  78. package/dist/tools/todo-write-tool.d.ts +66 -0
  79. package/dist/tools/tool-output-offload.d.ts +12 -0
  80. package/dist/tools/tools.d.ts +24 -0
  81. package/dist/tools/update-topic-tool.d.ts +12 -0
  82. package/dist/tools/view-file-tool.d.ts +22 -0
  83. package/dist/tools/web-fetch-tool.d.ts +20 -0
  84. package/dist/tools/web-search-tool.d.ts +72 -0
  85. package/dist/tools/workspace-paths.d.ts +5 -0
  86. package/package.json +2 -2
  87. package/dist/chunk-SEP4YYY3.js +0 -1
  88. package/dist/chunk-T7UKN6FZ.js +0 -1
  89. package/dist/chunk-WHYFEBOU.js +0 -1
  90. package/dist/provider-adapters-Bupd2RBH.d.ts +0 -5
@@ -1 +1 @@
1
- (function(_0x41e6f9,_0x203129){const _0x1c705a={_0x8ea646:0x437,_0x24fba4:0x497,_0x3ed07b:0x541,_0x2eae13:0x4b0,_0x3d34e2:0x5e0,_0x33b80c:0x4dc,_0x541e83:0x727,_0x5c5ade:0x507,_0x20965f:0x551,_0x13153c:0x352,_0x589115:0x392,_0x26af34:0x48d,_0x438abd:0x40d,_0x4d962a:0x4bd,_0x54ab0b:0x47a,_0x4a4e01:0x3e8,_0x254e0c:0x5b9,_0x4e82b3:0x568,_0x2972c4:0x4c4};function _0x4cda73(_0x36ed7d,_0x419485,_0x17a599,_0x18c22e){return _0x25c6(_0x18c22e-0x14a,_0x17a599);}function _0x3b54e0(_0xeb92d3,_0x234c4e,_0xb85de,_0x3c694e){return _0x25c6(_0xeb92d3-0x245,_0x3c694e);}const _0x2b08c7=_0x41e6f9();while(!![]){try{const _0x46d6ec=-parseInt(_0x3b54e0(_0x1c705a._0x8ea646,_0x1c705a._0x24fba4,_0x1c705a._0x3ed07b,_0x1c705a._0x2eae13))/0x1+parseInt(_0x3b54e0(_0x1c705a._0x3d34e2,_0x1c705a._0x33b80c,_0x1c705a._0x541e83,_0x1c705a._0x5c5ade))/0x2+parseInt(_0x3b54e0(0x44b,0x30d,_0x1c705a._0x20965f,_0x1c705a._0x13153c))/0x3*(-parseInt(_0x4cda73(0x496,_0x1c705a._0x589115,0x408,_0x1c705a._0x26af34))/0x4)+-parseInt(_0x3b54e0(0x458,0x536,_0x1c705a._0x438abd,0x593))/0x5+-parseInt(_0x4cda73(0x398,0x3aa,0x439,_0x1c705a._0x4d962a))/0x6+parseInt(_0x3b54e0(_0x1c705a._0x54ab0b,0x499,_0x1c705a._0x4a4e01,_0x1c705a._0x254e0c))/0x7+parseInt(_0x3b54e0(0x602,0x5b6,_0x1c705a._0x4e82b3,_0x1c705a._0x2972c4))/0x8;if(_0x46d6ec===_0x203129)break;else _0x2b08c7['push'](_0x2b08c7['shift']());}catch(_0x4defad){_0x2b08c7['push'](_0x2b08c7['shift']());}}}(_0x2bb3,0xdff2f));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WHYFEBOU.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 _0x3616d8 from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':'typescriptreact','.js':_0x5a3b3d(0x27c,0x2b3,0x323,0x294),'.jsx':_0x5a3b3d(0x4cd,0x35b,0x39e,0x3c3),'.mjs':'javascript','.cjs':_0x29b8eb(0x524,0x59a,0x638,0x549),'.mts':_0x29b8eb(0x47c,0x477,0x4cc,0x458),'.cts':_0x29b8eb(0x461,0x477,0x4ff,0x53f),'.json':'json','.jsonc':_0x5a3b3d(0x330,0x2ca,0x351,0x320)};function getLanguageId(_0x4b4948){const _0x2a9cc9={_0x179d70:0x3cb,_0x20070c:0x3a5,_0x4c216b:0x3e5},_0x8c04a2={_0xf9708:0x106};function _0x17ebb3(_0x18df74,_0x1b4888,_0x5d6d58,_0xd1ebe6){return _0x5a3b3d(_0x1b4888,_0x1b4888-0x7c,_0xd1ebe6- -0x1,_0xd1ebe6-_0x8c04a2._0xf9708);}return EXTENSION_TO_LANGUAGE[_0x3616d8['extname'](_0x4b4948)[_0x17ebb3(_0x2a9cc9._0x179d70,_0x2a9cc9._0x20070c,_0x2a9cc9._0x4c216b,0x3ac)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x311844){const _0x248d23={_0x86f5e2:0x394,_0x42ec98:0x2c7,_0x515621:0x2c0},_0x3800c6={_0x4a991c:0x89};function _0x3f6958(_0x337c99,_0x2a1633,_0x21317c,_0x159499){return _0x29b8eb(_0x337c99-0x45,_0x2a1633- -_0x3800c6._0x4a991c,_0x21317c-0x58,_0x21317c);}return pathToFileURL(_0x311844)[_0x3f6958(0x2b3,_0x248d23._0x86f5e2,_0x248d23._0x42ec98,_0x248d23._0x515621)]();}function textDocumentPosition(_0xb91da9){const _0x5e8c20={_0x33ed5f:0xbc,_0x5c069a:0x103,_0xc4f193:0x11f},_0x141ef8={_0x1e2cee:0x113,_0x422dff:0x50d,_0x38423c:0x24},_0x4b4375={_0x44b841:0x42,_0x2c2182:0x5f6,_0x1737b8:0x10a};function _0x18ef0f(_0x5ced9a,_0x254318,_0x61451e,_0x1603c2){return _0x29b8eb(_0x5ced9a-_0x4b4375._0x44b841,_0x1603c2- -_0x4b4375._0x2c2182,_0x61451e-_0x4b4375._0x1737b8,_0x254318);}function _0x4b2cfb(_0x45f4b6,_0x30f3ea,_0x5f13f7,_0x5e85bf){return _0x29b8eb(_0x45f4b6-_0x141ef8._0x1e2cee,_0x5f13f7- -_0x141ef8._0x422dff,_0x5f13f7-_0x141ef8._0x38423c,_0x5e85bf);}return{'textDocument':{'uri':uriForPath(_0xb91da9[_0x4b2cfb(0x175,_0x5e8c20._0x33ed5f,_0x5e8c20._0x5c069a,0x55)])},'position':{'line':_0xb91da9['line'],'character':_0xb91da9[_0x18ef0f(0xb5,_0x5e8c20._0xc4f193,-0x80,0x8)]}};}function normalizeLocations(_0xf3376e){const _0x42f1ab={_0x5871c8:0x124,_0x50e4d1:0xaf,_0xac5eb0:0xa1,_0x509967:0x80},_0x29fbdb={_0x101c23:0x12a,_0x397e0d:0x44};if(!_0xf3376e)return[];function _0x526b12(_0x18bbf1,_0x400d66,_0x391bfe,_0x345b45){return _0x29b8eb(_0x18bbf1-_0x29fbdb._0x101c23,_0x345b45- -0x60d,_0x391bfe-_0x29fbdb._0x397e0d,_0x391bfe);}return Array[_0x526b12(-_0x42f1ab._0x5871c8,-_0x42f1ab._0x50e4d1,-_0x42f1ab._0xac5eb0,-_0x42f1ab._0x509967)](_0xf3376e)?_0xf3376e:[_0xf3376e];}async function createLspClient(_0x4deb56){const _0x52d75e={_0x312bb3:0x499,_0x368749:0x44f,_0x37efa5:0x7cf,_0xd5ee97:0x40a,_0x15eb11:0x6a0,_0x7b9991:0x61c,_0x59040e:0x3bb,_0x3a2553:0x43b,_0x49192e:0x44a,_0x1f4eb6:0x2bf,_0xfd2c1f:0x495,_0x25325e:0x55b,_0x39b868:0x5fe,_0xec0cd9:0x42e,_0x34874b:0x237,_0x301e2c:0x3fc,_0x19e308:0x404,_0x56d736:0x258,_0x65bdc5:0x272,_0x120f5b:0x2f8,_0x10a45c:0x54c,_0x2d4327:0x550,_0x822abd:0x64e,_0x26aba3:0x4c7,_0x4c044d:0x4b0,_0x5829d5:0x414,_0x2eca0a:0x6c1,_0x40fd70:0x614,_0x5d4844:0x5dd,_0x1b71be:0x71f,_0x1e0377:0x7da,_0x14b7e7:0x259,_0x27f1c1:0x3ff,_0xdbac0d:0x384,_0x418cde:0x532,_0x1343bc:0x47c,_0x1b7651:0x66a,_0x49b05c:0x784,_0x588eb7:0x681,_0x28774f:0x717,_0x761676:0x4e6,_0x76a1c2:0x34f,_0x564a52:0x3af,_0x5500bc:0x485,_0x74d816:0x583,_0x1d1c0c:0x523,_0x38ad14:0x614},_0x4377e0={_0x28bed7:0x4b3,_0x52376f:0x40f,_0x213b05:0x542,_0x12186c:0x418,_0x1cb3ae:0x425,_0x3fa1ae:0x376,_0x427577:0x420,_0x4974c7:0x5d},_0x183209={_0x4d7b60:0x5cf,_0x958582:0x18,_0x42b8a2:0x67},_0x10563e={_0x574d22:0x2c},_0x36f269={_0x1e3b3a:0x9b},_0x401857={_0x4b5e86:0x103,_0x195305:0x9e,_0x1770f2:0x33},_0x4de721={_0x55d586:0x58b,_0x2106c5:0x1da},_0x212a7c={_0x577df7:0x58a,_0x1ffb19:0x5c9,_0xc3d133:0x39d,_0x95aecc:0x1fb,_0x190a62:0x34c,_0x22e0a5:0x24f},_0x91801c={_0x1edd59:0x144},_0x13f19c={_0x2c0055:0x1b5,_0x241b0d:0x22c,_0xee6a8:0x2bd},_0x4b879d={_0x4b3556:0x392,_0x5c27fe:0x42},_0x1041a9={_0x2bf15d:0x2ed},_0x3cf265={_0x3e1480:0x4cf,_0x1ef79e:0x3f4},_0x478641={_0x1c35d6:0x57a,_0x2aea89:0x5a6,_0x2f6eca:0x53f},_0x1a28ac={_0x5af53d:0x4a4},_0xaa1f2d={_0x4a46e9:0x1bb},_0x3785a5={_0x36b7a6:0x1b,_0x4ded20:0x34,_0x421dd6:0x7e,_0x71dbf1:0x149,_0x345c58:0x7a},_0x19c5e1={_0x819677:0x580,_0x3fead4:0x5d7},_0x5c46cd={_0x177fe0:0x20e,_0xc5561:0x331,_0xcfea2f:0x126},_0x16de0a={_0x555334:0x49,_0x452be4:0xa1},_0x51c92d={_0x21e786:0x394,_0x44c382:0x3b8,_0xa8c54c:0x448,_0x2b00fd:0x496,_0xe3b6d:0x42e,_0x5231fd:0x340,_0x352137:0xc7,_0x337136:0x28,_0x41dea6:0x7,_0x3dfa20:0x369,_0x1aa1ad:0x232,_0xf05c5:0x42e,_0xe7b34b:0x44f,_0x1a4809:0x1ac,_0x151620:0x34},_0x44916b={_0xb0ad90:0x1d2},_0x5848d9={_0x120104:0x3b1},_0x17fd3b=_0x4deb56[_0x4d700c(_0x52d75e._0x312bb3,0x530,0x306,_0x52d75e._0x368749)][_0x9e49f3(_0x52d75e._0x37efa5,0x68f,0x718,0x72f)]['stdout'],_0x441068=_0x4deb56[_0x4d700c(0x486,_0x52d75e._0xd5ee97,0x37b,0x44f)][_0x9e49f3(_0x52d75e._0x15eb11,0x68f,_0x52d75e._0x7b9991,0x609)][_0x4d700c(_0x52d75e._0x59040e,_0x52d75e._0x3a2553,_0x52d75e._0x49192e,0x30d)];if(!_0x17fd3b||!_0x441068)throw new Error(_0x4d700c(_0x52d75e._0x1f4eb6,0x49b,_0x52d75e._0xfd2c1f,0x40a));const _0x5b7a4f=createMessageConnection(new StreamMessageReader(_0x17fd3b),new StreamMessageWriter(_0x441068)),_0x30662a=new Map(),_0x36c6b1=new Map();function _0x4d700c(_0x5f2e9b,_0xed840e,_0x3a35bd,_0x554b64){return _0x5a3b3d(_0x3a35bd,_0xed840e-0x9e,_0x554b64-0xe1,_0x554b64-0xdc);}let _0x15f4b4=![];function _0x9e49f3(_0x3e7933,_0x3edae0,_0x1cac58,_0x2a9dc5){return _0x5a3b3d(_0x3e7933,_0x3edae0-0x161,_0x3edae0-_0x5848d9._0x120104,_0x2a9dc5-0x177);}_0x5b7a4f[_0x9e49f3(0x5d6,_0x52d75e._0x25325e,_0x52d75e._0x39b868,_0x52d75e._0xec0cd9)]('textDocument/publishDiagnostics',_0x4af771=>{const _0xdb05b7={_0x239dc4:0x18};_0x30662a[_0x36c6ee(_0x51c92d._0x21e786,_0x51c92d._0x44c382,_0x51c92d._0xa8c54c,_0x51c92d._0x2b00fd)](_0x4af771[_0x36c6ee(0x413,_0x51c92d._0xe3b6d,0x55a,_0x51c92d._0x5231fd)],_0x4af771[_0x258f75(-_0x51c92d._0x352137,-_0x51c92d._0x337136,-0x90,-_0x51c92d._0x41dea6)]);function _0x36c6ee(_0x404943,_0xaa5703,_0x1a845c,_0x1fc442){return _0x4d700c(_0x404943-_0xdb05b7._0x239dc4,_0xaa5703-0x76,_0x404943,_0xaa5703-0x59);}const _0xa0429b=_0x36c6b1[_0x36c6ee(0x3b5,_0x51c92d._0x3dfa20,0x3da,_0x51c92d._0x1aa1ad)](_0x4af771[_0x36c6ee(0x3ef,_0x51c92d._0xf05c5,_0x51c92d._0xe7b34b,0x3fb)]);if(!_0xa0429b)return;function _0x258f75(_0x4e68d6,_0x3b9e42,_0x377ef9,_0x58f042){return _0x4d700c(_0x4e68d6-0x9c,_0x3b9e42-_0x44916b._0xb0ad90,_0x4e68d6,_0x3b9e42- -0x4b8);}_0x36c6b1[_0x258f75(-0xd0,-_0x51c92d._0x1a4809,-0x17b,-0x26a)](_0x4af771[_0x258f75(-_0x51c92d._0x151620,-0xe3,-0x1b9,-0x40)]);for(const _0x591eb7 of _0xa0429b)_0x591eb7();}),_0x5b7a4f[_0x4d700c(0x39a,0x4bb,0x53b,0x4a4)]();const _0x1fa905=await _0x5b7a4f[_0x4d700c(_0x52d75e._0x34874b,_0x52d75e._0x301e2c,_0x52d75e._0x19e308,0x2ee)](_0x4d700c(_0x52d75e._0x56d736,0x397,_0x52d75e._0x65bdc5,_0x52d75e._0x120f5b),{'processId':process[_0x9e49f3(_0x52d75e._0x10a45c,_0x52d75e._0x2d4327,_0x52d75e._0x822abd,0x540)],'rootUri':uriForPath(_0x4deb56[_0x4d700c(_0x52d75e._0x26aba3,0x5bf,0x422,_0x52d75e._0x4c044d)]),'workspaceFolders':[{'uri':uriForPath(_0x4deb56[_0x4d700c(0x54a,0x5bd,_0x52d75e._0x5829d5,_0x52d75e._0x4c044d)]),'name':_0x4deb56[_0x9e49f3(_0x52d75e._0x2eca0a,0x67f,_0x52d75e._0x40fd70,0x736)]['id']}],'initializationOptions':_0x4deb56[_0x9e49f3(_0x52d75e._0x5d4844,_0x52d75e._0x1b71be,0x6d0,_0x52d75e._0x1e0377)]['initialization']??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x4d700c(_0x52d75e._0x14b7e7,_0x52d75e._0x27f1c1,0x259,_0x52d75e._0xdbac0d),_0x4d700c(0x587,0x495,_0x52d75e._0x418cde,_0x52d75e._0x1343bc)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x5b7a4f[_0x9e49f3(0x63b,_0x52d75e._0x1b7651,0x6aa,_0x52d75e._0x49b05c)](_0x9e49f3(_0x52d75e._0x588eb7,0x6d7,0x743,_0x52d75e._0x28774f),{});const _0x4a59be={'serverId':_0x4deb56[_0x4d700c(_0x52d75e._0x761676,_0x52d75e._0x76a1c2,0x428,_0x52d75e._0x564a52)]['id'],'root':_0x4deb56[_0x4d700c(_0x52d75e._0x5500bc,0x3cb,_0x52d75e._0x74d816,0x4b0)],'connection':_0x5b7a4f,'diagnostics':_0x30662a,'capabilities':_0x1fa905[_0x9e49f3(0x547,_0x52d75e._0x1d1c0c,0x45f,_0x52d75e._0x38ad14)]??{},'notify':{async 'open'({path:_0x80de30}){function _0x3d8273(_0x24b9db,_0xb942ae,_0x1d58b0,_0x4dbc95){return _0x9e49f3(_0xb942ae,_0x24b9db- -0x533,_0x1d58b0-0xad,_0x4dbc95-0x12);}function _0x2b42d4(_0x1317fa,_0x17a3c6,_0xeb3cef,_0x1ff6c5){return _0x9e49f3(_0x1317fa,_0xeb3cef- -0x446,_0xeb3cef-_0x16de0a._0x555334,_0x1ff6c5-_0x16de0a._0x452be4);}const _0x585655=await readFile(_0x80de30,_0x2b42d4(0x25f,_0x5c46cd._0x177fe0,0x319,_0x5c46cd._0xc5561));_0x5b7a4f[_0x2b42d4(0x302,_0x5c46cd._0xcfea2f,0x224,0x326)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x80de30),'languageId':getLanguageId(_0x80de30)??_0x3d8273(0x219,0x23d,0x10a,0x265),'version':0x1,'text':_0x585655}});},async 'change'({path:_0xa470e0,version:_0x5267f0}){const _0x1764fa={_0x43b167:0x2d1,_0x33d7f4:0x149},_0x4adbd8=await readFile(_0xa470e0,_0x23dbbb(_0x19c5e1._0x819677,0x56c,0x48e,_0x19c5e1._0x3fead4));function _0x23dbbb(_0x284db8,_0x3bb612,_0x4bcd58,_0x4d1622){return _0x9e49f3(_0x3bb612,_0x4bcd58- -_0x1764fa._0x43b167,_0x4bcd58-_0x1764fa._0x33d7f4,_0x4d1622-0x4c);}_0x5b7a4f['sendNotification']('textDocument/didChange',{'textDocument':{'uri':uriForPath(_0xa470e0),'version':_0x5267f0},'contentChanges':[{'text':_0x4adbd8}]});},async 'close'({path:_0x516515}){const _0x2bb942={_0x28d9a6:0x1c8,_0x57c06e:0x94};function _0x554c74(_0x1495c9,_0xc228a7,_0x17c1a0,_0x3919fb){return _0x4d700c(_0x1495c9-0x114,_0xc228a7-0x1c9,_0x1495c9,_0x3919fb- -0x489);}function _0x31a9bf(_0x22bbdb,_0x3c9aab,_0x11d181,_0x5ceef2){return _0x4d700c(_0x22bbdb-_0x2bb942._0x28d9a6,_0x3c9aab-0x171,_0x11d181,_0x5ceef2- -_0x2bb942._0x57c06e);}_0x5b7a4f[_0x554c74(_0x3785a5._0x36b7a6,_0x3785a5._0x4ded20,-0xf7,-0xef)](_0x554c74(_0x3785a5._0x421dd6,-0x145,-_0x3785a5._0x71dbf1,-_0x3785a5._0x345c58),{'textDocument':{'uri':uriForPath(_0x516515)}});}},'request':{async 'definition'(_0x2d141e){function _0x7530a3(_0x28f6dd,_0x44e03b,_0x1d4520,_0x2e7a04){return _0x9e49f3(_0x1d4520,_0x2e7a04- -0xc2,_0x1d4520-_0xaa1f2d._0x4a46e9,_0x2e7a04-0x40);}return normalizeLocations(await _0x5b7a4f[_0x7530a3(0x4a7,_0x1a28ac._0x5af53d,0x5e5,0x4fc)]('textDocument/definition',textDocumentPosition(_0x2d141e)));},async 'references'(_0x180574){return normalizeLocations(await _0x5b7a4f['sendRequest']('textDocument/references',{...textDocumentPosition(_0x180574),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x5b5586){const _0x45554c={_0xf9c7a0:0x1e0,_0x33e79b:0x1ba};function _0x30aa58(_0x256e4e,_0x3becd2,_0x158441,_0x1ac589){return _0x4d700c(_0x256e4e-0x137,_0x3becd2-_0x45554c._0xf9c7a0,_0x158441,_0x256e4e- -_0x45554c._0x33e79b);}return await _0x5b7a4f['sendRequest'](_0x30aa58(0x183,0x39,0x11c,0x154),textDocumentPosition(_0x5b5586))??null;},async 'documentSymbol'(_0x53358a){const _0x4cfa6b={_0x3b7168:0x6f};function _0x5aa15a(_0x17b4ce,_0xf67d1f,_0x296602,_0x1dc5ac){return _0x4d700c(_0x17b4ce-0x1c4,_0xf67d1f-_0x4cfa6b._0x3b7168,_0xf67d1f,_0x1dc5ac-0x25b);}return await _0x5b7a4f['sendRequest'](_0x5aa15a(_0x478641._0x1c35d6,_0x478641._0x2aea89,_0x478641._0x2f6eca,0x4b3),{'textDocument':{'uri':uriForPath(_0x53358a)}})??[];},async 'workspaceSymbol'(_0x453458){function _0x1125eb(_0x4da2fe,_0x4fe79c,_0x1ae361,_0x5c24ed){return _0x4d700c(_0x4da2fe-0x88,_0x4fe79c-0x9f,_0x4fe79c,_0x1ae361-0x106);}return await _0x5b7a4f[_0x1125eb(0x523,_0x3cf265._0x3e1480,_0x3cf265._0x1ef79e,0x379)]('workspace/symbol',{'query':_0x453458})??[];},async 'implementation'(_0x23eb02){const _0x415329={_0x520dfa:0x2a1,_0x114b41:0x47,_0x109439:0x80};function _0x5c7efb(_0x49a036,_0x446326,_0x30089a,_0x19a24c){return _0x9e49f3(_0x19a24c,_0x49a036- -_0x415329._0x520dfa,_0x30089a-_0x415329._0x114b41,_0x19a24c-_0x415329._0x109439);}return normalizeLocations(await _0x5b7a4f['sendRequest'](_0x5c7efb(0x406,0x305,_0x1041a9._0x2bf15d,0x340),textDocumentPosition(_0x23eb02)));},async 'prepareCallHierarchy'(_0xa01ca2){const _0x50224e={_0x1755a3:0xfa};function _0x350c28(_0x4fcefb,_0x251886,_0xe46d,_0x28cbbe){return _0x4d700c(_0x4fcefb-0x195,_0x251886-_0x50224e._0x1755a3,_0x4fcefb,_0x251886-0x280);}function _0x5de88b(_0x248223,_0x124d3f,_0x47e75b,_0xb77fcc){return _0x9e49f3(_0xb77fcc,_0x47e75b- -_0x4b879d._0x4b3556,_0x47e75b-_0x4b879d._0x5c27fe,_0xb77fcc-0xb9);}return await _0x5b7a4f[_0x5de88b(_0x13f19c._0x2c0055,0x1e8,_0x13f19c._0x241b0d,0x2be)](_0x5de88b(_0x13f19c._0xee6a8,0x332,0x2ca,0x367),textDocumentPosition(_0xa01ca2))??[];},async 'incomingCalls'(_0xb94db5){function _0x1bfd79(_0x15965f,_0x56e9b0,_0x1c0c87,_0x261a43){return _0x4d700c(_0x15965f-0xa4,_0x56e9b0-0x114,_0x15965f,_0x1c0c87-0x29c);}function _0x5c524c(_0x7cf34a,_0x277dbe,_0x474938,_0x5cfc67){return _0x4d700c(_0x7cf34a-0x104,_0x277dbe-_0x91801c._0x1edd59,_0x7cf34a,_0x5cfc67- -0xd3);}return await _0x5b7a4f[_0x1bfd79(0x67c,0x56b,_0x212a7c._0x577df7,_0x212a7c._0x1ffb19)](_0x5c524c(_0x212a7c._0xc3d133,_0x212a7c._0x95aecc,_0x212a7c._0x190a62,_0x212a7c._0x22e0a5),{'item':_0xb94db5})??[];},async 'outgoingCalls'(_0x2d30f3){function _0x4f8e74(_0x302688,_0x4dac0a,_0x2eb8b4,_0x5211a9){return _0x9e49f3(_0x5211a9,_0x2eb8b4- -0x48e,_0x2eb8b4-0x50,_0x5211a9-0x118);}function _0x5617d6(_0x11e209,_0x462f93,_0x1a92a0,_0x110580){return _0x9e49f3(_0x11e209,_0x110580- -_0x4de721._0x55d586,_0x1a92a0-_0x4de721._0x2106c5,_0x110580-0xd4);}return await _0x5b7a4f[_0x4f8e74(_0x401857._0x4b5e86,0x64,0x130,_0x401857._0x195305)](_0x5617d6(_0x401857._0x1770f2,0x3f,0x17b,0x109),{'item':_0x2d30f3})??[];}},'waitForDiagnostics'({path:_0x198a3c,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x357139={_0x4f5dca:0x7c,_0x68d522:0xdd,_0x15cde9:0x42,_0x56dc2c:0x1f7,_0x446567:0xbd},_0x5d1cb6={_0x1d6d5e:0x1b4,_0x645983:0x10d,_0x107d0c:0x40},_0x37c8d4={_0x14f405:0x1c6,_0x5cb659:0x7f,_0x5cd9be:0x4c,_0x50da5b:0xb1,_0x539d36:0x191,_0x3ba96f:0x1c,_0x546920:0x16b,_0x590528:0xe2,_0x1699bf:0xc7,_0x4d76aa:0x7b,_0x5a354f:0xbb},_0x966d4d=uriForPath(_0x198a3c);if(_0x30662a['has'](_0x966d4d))return Promise[_0x453079(0xb,_0x10563e._0x574d22,0x3c,0x7d)]();function _0x453079(_0x2b8853,_0x232952,_0x3bf47d,_0x9858e3){return _0x9e49f3(_0x9858e3,_0x232952- -0x5ee,_0x3bf47d-0x1a9,_0x9858e3-_0x36f269._0x1e3b3a);}return new Promise(_0x46cec3=>{const _0x59bf1e={_0x429a51:0x106,_0x1861db:0x50},_0x499557=setTimeout(()=>{const _0x16494d={_0x502750:0x17e},_0x2eac66=_0x36c6b1[_0xacba1e(_0x37c8d4._0x14f405,_0x37c8d4._0x5cb659,-_0x37c8d4._0x5cd9be,0x1aa)](_0x966d4d);_0x2eac66?.[_0xacba1e(-_0x37c8d4._0x50da5b,0x7b,_0x37c8d4._0x539d36,0xac)](_0x536446);if(_0x2eac66?.[_0xacba1e(0x109,_0x37c8d4._0x3ba96f,_0x37c8d4._0x546920,-_0x37c8d4._0x590528)]===0x0)_0x36c6b1[_0xacba1e(-_0x37c8d4._0x1699bf,_0x37c8d4._0x4d76aa,0x48,_0x37c8d4._0x5a354f)](_0x966d4d);function _0xacba1e(_0x536a3f,_0x107fb9,_0x24ac78,_0x2a80c5){return _0x25c6(_0x107fb9- -_0x16494d._0x502750,_0x24ac78);}function _0x180459(_0xa5d040,_0x464e0b,_0x50cee6,_0x3e8a33){return _0x25c6(_0x3e8a33- -0x11c,_0xa5d040);}_0x46cec3();},timeoutMs);function _0x55c040(_0x311ecb,_0x30a3bc,_0x1d7113,_0x48f7ec){return _0x453079(_0x311ecb-_0x5d1cb6._0x1d6d5e,_0x30a3bc- -_0x5d1cb6._0x645983,_0x1d7113-_0x5d1cb6._0x107d0c,_0x311ecb);}const _0x536446=()=>{clearTimeout(_0x499557),_0x46cec3();},_0xd271f8=_0x36c6b1[_0x1b458f(-_0x357139._0x4f5dca,_0x357139._0x68d522,0x167,_0x357139._0x15cde9)](_0x966d4d)??new Set();_0xd271f8['add'](_0x536446);function _0x1b458f(_0x324bd1,_0x149382,_0x251844,_0x4b7eeb){return _0x453079(_0x324bd1-_0x59bf1e._0x429a51,_0x4b7eeb-_0x59bf1e._0x1861db,_0x251844-0x184,_0x149382);}_0x36c6b1[_0x55c040(-0x21b,-0xcc,-_0x357139._0x56dc2c,-_0x357139._0x446567)](_0x966d4d,_0xd271f8);});},async 'shutdown'(){const _0xd738ab={_0x6d6100:0x242};if(_0x15f4b4)return;function _0x33e367(_0x514310,_0x37dcc9,_0x2cf87a,_0x4a7d39){return _0x9e49f3(_0x514310,_0x37dcc9- -_0x183209._0x4d7b60,_0x2cf87a-_0x183209._0x958582,_0x4a7d39-_0x183209._0x42b8a2);}_0x15f4b4=!![];function _0xdbda18(_0x20479e,_0x485828,_0x130b27,_0x1f345c){return _0x9e49f3(_0x20479e,_0x485828- -_0xd738ab._0x6d6100,_0x130b27-0x7,_0x1f345c-0x1dd);}try{await _0x5b7a4f['sendRequest'](_0xdbda18(0x5e0,_0x4377e0._0x28bed7,_0x4377e0._0x52376f,_0x4377e0._0x213b05),null),_0x5b7a4f['sendNotification'](_0xdbda18(0x347,0x301,_0x4377e0._0x12186c,_0x4377e0._0x1cb3ae));}catch{}finally{_0x5b7a4f[_0xdbda18(_0x4377e0._0x3fa1ae,_0x4377e0._0x427577,0x53a,0x31c)](),_0x4deb56[_0x33e367(_0x4377e0._0x4974c7,0x150,0x72,0x25d)]['process']['kill']();}}};return _0x4a59be;}import{spawn as _0x161bc7}from'child_process';function _0x5a3b3d(_0x4ef5ce,_0x264f5e,_0x58424c,_0x1f8066){const _0x4720b3={_0x53e44f:0x32};return _0x25c6(_0x58424c-_0x4720b3._0x53e44f,_0x4ef5ce);}import{access as _0x398af1}from'fs/promises';import _0x3d9733 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x12c25d from'os';import _0x4b2d32 from'path';import _0xac7403 from'which';var installPromises=new Map();function sanitizePackageName(_0x5e8780){const _0x375fdc={_0x371ba1:0x265,_0x3d7c75:0x12d,_0xd3ab07:0x72d,_0x5deb64:0x5d8},_0x492ec8={_0x5d7e65:0x83,_0x30aab5:0x35b,_0x4a3748:0x1b1};function _0x265285(_0x129d54,_0x3da142,_0xc919be,_0xdd384e){return _0x5a3b3d(_0x129d54,_0x3da142-_0x492ec8._0x5d7e65,_0xc919be-_0x492ec8._0x30aab5,_0xdd384e-_0x492ec8._0x4a3748);}function _0x27b7ea(_0x54da4f,_0x5c3c13,_0x32fcca,_0x5bd6f3){return _0x5a3b3d(_0x5bd6f3,_0x5c3c13-0x141,_0x54da4f- -0x194,_0x5bd6f3-0xfd);}return _0x5e8780[_0x27b7ea(0x21f,_0x375fdc._0x371ba1,0x22d,_0x375fdc._0x3d7c75)](/^@/,'')[_0x265285(_0x375fdc._0xd3ab07,_0x375fdc._0x5deb64,0x70e,0x6aa)](/[/]/g,'__');}function binaryNameForPlatform(_0x2e91f2){const _0x50ccd4={_0x282eda:0xd1},_0x37b5c3={_0x1222fb:0x114,_0x16bfb2:0x79},_0x1f8328={_0x4c2e67:0x330,_0x153679:0x1c0};function _0x46f4e4(_0x172e42,_0x214692,_0x255dc0,_0x457fed){return _0x5a3b3d(_0x172e42,_0x214692-0x125,_0x214692- -_0x1f8328._0x4c2e67,_0x457fed-_0x1f8328._0x153679);}function _0x3a68b8(_0x58f2ef,_0x532e9c,_0x2b19da,_0x3ed3ec){return _0x5a3b3d(_0x58f2ef,_0x532e9c-_0x37b5c3._0x1222fb,_0x532e9c-_0x37b5c3._0x16bfb2,_0x3ed3ec-0x154);}return process[_0x3a68b8(0x2ad,0x225,0x1ba,0x1aa)]===_0x46f4e4(-_0x50ccd4._0x282eda,-0x69,-0x92,0xb4)?_0x2e91f2+'.cmd':_0x2e91f2;}async function exists(_0x39e94c){try{return await access(_0x39e94c),!![];}catch{return![];}}function runNpmInstall(_0xd2f639,_0x9718d1,_0x5ce67a){const _0x57261f={_0x41aceb:0x16a,_0x46669e:0x151,_0x20349f:0x1a2,_0x4f5287:0x426,_0x58c971:0x469,_0x2e76bf:0x27d,_0x288a35:0x1d1,_0x24b187:0xa4,_0x368f44:0x6a};return new Promise(_0x2278e7=>{const _0x3bd511={_0x34e223:0xd9},_0x3aef81=spawn('npm',[_0x550166(0x23e,_0x57261f._0x41aceb,_0x57261f._0x46669e,_0x57261f._0x20349f),_0x5303a9(_0x57261f._0x4f5287,_0x57261f._0x58c971,0x321,_0x57261f._0x2e76bf),_0xd2f639,_0x9718d1],{'env':_0x5ce67a,'stdio':_0x550166(_0x57261f._0x288a35,0x121,0x1ca,0x122)});_0x3aef81['on']('error',()=>_0x2278e7(![]));function _0x550166(_0x3bba36,_0x5f53a9,_0x24da70,_0x3e5393){return _0x25c6(_0x3bba36- -0xc7,_0x24da70);}function _0x5303a9(_0x3c91bf,_0x55de7b,_0x3d6aba,_0x3593db){return _0x25c6(_0x3d6aba-_0x3bd511._0x34e223,_0x3c91bf);}_0x3aef81['on'](_0x550166(_0x57261f._0x24b187,-0xa,0x1a8,_0x57261f._0x368f44),_0x225893=>_0x2278e7(_0x225893===0x0));});}function shouldDisableLspDownload(_0x37b018=process['env']){const _0x23211f={_0x4917c9:0x421,_0x7b1177:0x355,_0x5e2897:0x5bd,_0x526e93:0x4ef,_0x174831:0x592,_0x596365:0x459},_0x237b7d={_0x1ffa86:0x94,_0x4719d7:0xb3},_0x779b0e={_0x331fd0:0xf8};function _0x569334(_0x103c65,_0x17862c,_0x46415d,_0x374ea2){return _0x29b8eb(_0x103c65-0xf4,_0x17862c- -_0x779b0e._0x331fd0,_0x46415d-0x187,_0x374ea2);}function _0xa5af41(_0x5c1a4e,_0x1e1236,_0x2f0e48,_0x162a71){return _0x5a3b3d(_0x5c1a4e,_0x1e1236-_0x237b7d._0x1ffa86,_0x2f0e48-0x210,_0x162a71-_0x237b7d._0x4719d7);}const _0xf85755=_0x37b018[_0xa5af41(_0x23211f._0x4917c9,0x325,0x3f7,_0x23211f._0x7b1177)]?.[_0xa5af41(0x54f,0x52a,0x5bd,_0x23211f._0x5e2897)]();return _0xf85755===_0xa5af41(0x54e,_0x23211f._0x526e93,0x440,0x54d)||_0xf85755==='1'||_0xf85755===_0x569334(_0x23211f._0x174831,0x51f,0x577,_0x23211f._0x596365)||_0xf85755==='on';}function getLspPackageDir(_0xac0fcc){const _0xca0ed6={_0x5293dc:0x1b3,_0x18c65e:0x46,_0x347a7d:0x144,_0x269ca6:0x106,_0x196b1e:0x83,_0x32070c:0x15b,_0xda579f:0x560,_0x351d48:0x68e,_0x57173c:0x72f},_0x45a598={_0x55db3b:0x149,_0x5883a1:0x57},_0x250a1f={_0x3e0195:0x133};function _0x308e33(_0x1bc3ab,_0xab5b9b,_0x6adbc2,_0x466b0d){return _0x29b8eb(_0x1bc3ab-_0x250a1f._0x3e0195,_0x6adbc2-0x2b,_0x6adbc2-0x101,_0x1bc3ab);}function _0x254067(_0x52902e,_0xaf32db,_0x44bf46,_0x4abb2f){return _0x29b8eb(_0x52902e-_0x45a598._0x55db3b,_0xaf32db- -0x4f3,_0x44bf46-_0x45a598._0x5883a1,_0x44bf46);}return _0x4b2d32[_0x254067(-_0xca0ed6._0x5293dc,-0x9f,0x60,-0xee)](_0x12c25d[_0x254067(-_0xca0ed6._0x18c65e,0x3f,_0xca0ed6._0x347a7d,_0xca0ed6._0x269ca6)](),_0x254067(-0x90,-0x5b,_0xca0ed6._0x196b1e,-_0xca0ed6._0x32070c),_0x308e33(0x644,_0xca0ed6._0xda579f,0x561,0x57b),_0x308e33(0x66a,0x6e6,_0xca0ed6._0x351d48,_0xca0ed6._0x57173c),sanitizePackageName(_0xac0fcc));}function getLspBinDir(_0x50c09a){const _0x384f64={_0x5c7942:0x426,_0x477fc4:0x2a8,_0x13047e:0x3c7,_0x2fbdb2:0x39a},_0x3eadb0={_0x567169:0x14f},_0x3aede8={_0x5c52dd:0x15e};function _0x4d0559(_0x35ce8d,_0x829ccd,_0x224e5e,_0x3c5460){return _0x5a3b3d(_0x224e5e,_0x829ccd-0x10e,_0x3c5460-_0x3aede8._0x5c52dd,_0x3c5460-0x1f);}function _0x437359(_0x38f456,_0x4488c0,_0xcb799b,_0x466f18){return _0x29b8eb(_0x38f456-_0x3eadb0._0x567169,_0x38f456- -0x5b7,_0xcb799b-0x1bc,_0xcb799b);}return _0x4b2d32['join'](getLspPackageDir(_0x50c09a),_0x4d0559(_0x384f64._0x5c7942,0x2ed,_0x384f64._0x477fc4,0x377),_0x4d0559(0x24f,_0x384f64._0x13047e,0x314,_0x384f64._0x2fbdb2));}async function findPackageBinary(_0x2f0414,_0x37d0a2){const _0x57ad26={_0xd10cca:0x1e6,_0x48a579:0x16e,_0x283a8d:0x1da,_0x1f973d:0xaf,_0x9d3efd:0x12b},_0x1499f2={_0x28ba44:0xe4,_0x4f6974:0x2bd,_0x431fad:0xa8},_0x4f43c4={_0x2f5886:0x168};let _0x23ceb1=_0x4b2d32['resolve'](_0x37d0a2);const _0x12885b=binaryNameForPlatform(_0x2f0414);function _0x522a96(_0x40c091,_0x55651f,_0x5c5044,_0x5d9bbf){return _0x5a3b3d(_0x5d9bbf,_0x55651f-_0x4f43c4._0x2f5886,_0x40c091- -0x34a,_0x5d9bbf-0x1bd);}function _0x260663(_0x72c75d,_0x3365f0,_0x29acce,_0x36b539){return _0x29b8eb(_0x72c75d-_0x1499f2._0x28ba44,_0x29acce- -_0x1499f2._0x4f6974,_0x29acce-_0x1499f2._0x431fad,_0x72c75d);}while(!![]){const _0x38c7de=_0x4b2d32['join'](_0x23ceb1,_0x260663(_0x57ad26._0xd10cca,0x1ea,0x1d3,_0x57ad26._0x48a579),_0x260663(0x1dc,_0x57ad26._0x283a8d,0x1f6,_0x57ad26._0x1f973d),_0x12885b);if(await exists(_0x38c7de))return _0x38c7de;const _0x495add=_0x4b2d32[_0x260663(0xff,0x4f,_0x57ad26._0x9d3efd,0x7b)](_0x23ceb1);if(_0x495add===_0x23ceb1)return void 0x0;_0x23ceb1=_0x495add;}}async function findPathBinary(_0x5760f6,_0x1ce52b){const _0xa89a42={_0x16e733:0x42e,_0x582c0a:0x340,_0x5e6551:0x4e4,_0xd8dec0:0x3d8,_0x114e87:0x615},_0x47c1ca={_0x182c6f:0x3c},_0x3a0711={_0x4ebfea:0x55,_0x436736:0x172};function _0x26b4e0(_0x48b081,_0x566c96,_0x347586,_0xdc6871){return _0x5a3b3d(_0x48b081,_0x566c96-_0x3a0711._0x4ebfea,_0x566c96-_0x3a0711._0x436736,_0xdc6871-0x128);}const _0x91a31e=getLspBinDir(_0x1ce52b);function _0x9df9ae(_0x3035aa,_0x5316ec,_0x4c9371,_0x32eb7f){return _0x29b8eb(_0x3035aa-0xdf,_0x32eb7f- -_0x47c1ca._0x182c6f,_0x4c9371-0x172,_0x5316ec);}const _0x81ff1c=[_0x91a31e,process[_0x26b4e0(0x49e,_0xa89a42._0x16e733,_0xa89a42._0x582c0a,0x3ca)][_0x26b4e0(_0xa89a42._0x5e6551,0x4ad,0x5a1,0x47a)]][_0x9df9ae(_0xa89a42._0xd8dec0,_0xa89a42._0x114e87,0x5ac,0x4d8)](Boolean)['join'](_0x4b2d32[_0x26b4e0(0x59d,0x454,0x3ba,0x4bd)]);try{return await _0xac7403(_0x5760f6,{'path':_0x81ff1c});}catch{return void 0x0;}}async function resolvePackageBinary(_0x5a2bb5){const _0x28b148={_0x30959e:0x184,_0x4dc045:0x2b9,_0x327219:0x2a9,_0xb7a14f:0x435,_0x3079a2:0x203,_0x1d8e70:0x44e,_0x1e5b7f:0x366},_0xa1c5de={_0x1b8e2c:0x15,_0x5283f3:0x12a,_0x4fb6f7:0xe7,_0x4d9ec8:0xbd,_0x16eec8:0x3,_0x506b76:0x368,_0x446449:0x472},_0x42b705={_0x28ba84:0x1a0},_0x5064fa={_0x1bf8b9:0xda,_0x3793f1:0x1e0},_0x443b27={_0x48f637:0x51,_0x5a2a27:0x2e1};function _0x329226(_0x150b50,_0x3380af,_0x872d89,_0x2cdd45){return _0x29b8eb(_0x150b50-_0x443b27._0x48f637,_0x872d89- -_0x443b27._0x5a2a27,_0x872d89-0x12d,_0x3380af);}const _0x28aa59=_0x5a2bb5['binaryName']??_0x5a2bb5[_0x329226(_0x28b148._0x30959e,_0x28b148._0x4dc045,0x2a9,0x33b)],_0x5483e0=await findPackageBinary(_0x28aa59,_0x5a2bb5['startDir']);function _0x2a918b(_0x5c3d7c,_0x4c3a2f,_0x4f12c3,_0x42e946){return _0x29b8eb(_0x5c3d7c-_0x5064fa._0x1bf8b9,_0x4f12c3- -0xfe,_0x4f12c3-_0x5064fa._0x3793f1,_0x5c3d7c);}if(_0x5483e0)return _0x5483e0;const _0x3ef8f1=await findPathBinary(_0x28aa59,_0x5a2bb5[_0x329226(0x265,0x3df,_0x28b148._0x327219,0x290)]);if(_0x3ef8f1)return _0x3ef8f1;const _0x2a37c7=_0x5a2bb5['env']??process[_0x2a918b(0x4d5,0x4a8,_0x28b148._0xb7a14f,0x479)];if(shouldDisableLspDownload(_0x2a37c7))return void 0x0;const _0x8b3d15=getLspPackageDir(_0x5a2bb5[_0x2a918b(0x480,0x4da,0x48c,0x462)]),_0x165888=_0x5a2bb5['packageName']+':'+_0x28aa59;let _0x186694=installPromises[_0x2a918b(0x477,0x2de,0x3a8,0x4ec)](_0x165888);!_0x186694&&(_0x186694=((async()=>{const _0x103690={_0x5c3b53:0x3f,_0x584ac4:0x17f};await mkdir(_0x8b3d15,{'recursive':!![]});function _0x65b012(_0x4af462,_0x46ca2e,_0xcaa6ac,_0x53da4d){return _0x329226(_0x4af462-_0x42b705._0x28ba84,_0xcaa6ac,_0x4af462-0xbf,_0x53da4d-0x24);}const _0x31eee6=await runNpmInstall(_0x8b3d15,_0x5a2bb5[_0x53b440(-_0xa1c5de._0x1b8e2c,0x261,_0xa1c5de._0x5283f3,0x1ff)],_0x2a37c7);if(!_0x31eee6)return void 0x0;const _0x14a174=_0x4b2d32[_0x53b440(_0xa1c5de._0x4fb6f7,_0xa1c5de._0x4d9ec8,-0xc,-_0xa1c5de._0x16eec8)](getLspBinDir(_0x5a2bb5[_0x65b012(_0xa1c5de._0x506b76,0x447,_0xa1c5de._0x446449,0x3d3)]),binaryNameForPlatform(_0x28aa59));function _0x53b440(_0x4126ef,_0x1afcd7,_0x507f46,_0x4b6ca3){return _0x329226(_0x4126ef-_0x103690._0x5c3b53,_0x4126ef,_0x507f46- -_0x103690._0x584ac4,_0x4b6ca3-0x70);}return await exists(_0x14a174)?_0x14a174:void 0x0;})()),installPromises[_0x329226(_0x28b148._0x3079a2,0x241,0x214,0xca)](_0x165888,_0x186694));try{return await _0x186694;}catch{return void 0x0;}finally{installPromises[_0x2a918b(_0x28b148._0x1d8e70,0x2df,0x3a4,_0x28b148._0x1e5b7f)](_0x165888);}}function _0x25c6(_0xe1d07b,_0x490a17){_0xe1d07b=_0xe1d07b-0x134;const _0x2bb382=_0x2bb3();let _0x25c6d6=_0x2bb382[_0xe1d07b];if(_0x25c6['uWhyol']===undefined){var _0x550117=function(_0x5e482a){const _0x238a8b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3616d8='',_0x161bc7='';for(let _0x398af1=0x0,_0x3d9733,_0x12c25d,_0x4b2d32=0x0;_0x12c25d=_0x5e482a['charAt'](_0x4b2d32++);~_0x12c25d&&(_0x3d9733=_0x398af1%0x4?_0x3d9733*0x40+_0x12c25d:_0x12c25d,_0x398af1++%0x4)?_0x3616d8+=String['fromCharCode'](0xff&_0x3d9733>>(-0x2*_0x398af1&0x6)):0x0){_0x12c25d=_0x238a8b['indexOf'](_0x12c25d);}for(let _0xac7403=0x0,_0x18e9d3=_0x3616d8['length'];_0xac7403<_0x18e9d3;_0xac7403++){_0x161bc7+='%'+('00'+_0x3616d8['charCodeAt'](_0xac7403)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x161bc7);};_0x25c6['IJcYVt']=_0x550117,_0x25c6['rPDOqT']={},_0x25c6['uWhyol']=!![];}const _0x4097ae=_0x2bb382[0x0],_0x3f890b=_0xe1d07b+_0x4097ae,_0x37c034=_0x25c6['rPDOqT'][_0x3f890b];return!_0x37c034?(_0x25c6d6=_0x25c6['IJcYVt'](_0x25c6d6),_0x25c6['rPDOqT'][_0x3f890b]=_0x25c6d6):_0x25c6d6=_0x37c034,_0x25c6d6;}var TYPESCRIPT_EXTENSIONS=[_0x29b8eb(0x469,0x47a,0x3d8,0x3e5),_0x29b8eb(0x662,0x59f,0x57a,0x4b2),_0x5a3b3d(0x47e,0x2d2,0x361,0x43c),_0x5a3b3d(0x2d2,0x321,0x331,0x28c),'.mjs',_0x5a3b3d(0x3bc,0x222,0x36c,0x3a6),_0x29b8eb(0x506,0x571,0x431,0x42a),_0x5a3b3d(0x189,0x30f,0x2d1,0x36b)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x29b8eb(0x56d,0x4ed,0x592,0x606)],TYPESCRIPT_ROOT_MARKERS=['package-lock.json','bun.lockb','bun.lock',_0x5a3b3d(0x235,0x265,0x222,0xdf),_0x29b8eb(0x48b,0x44e,0x39c,0x313),'tsconfig.json','jsconfig.json',_0x29b8eb(0x46b,0x511,0x434,0x461)],BIOME_ROOT_MARKERS=[_0x5a3b3d(0x281,0x1c8,0x30d,0x36c),'biome.jsonc',_0x5a3b3d(0x1de,0x2f4,0x246,0x240),_0x5a3b3d(0x32e,0x2a1,0x3b5,0x47a),'bun.lock','pnpm-lock.yaml',_0x29b8eb(0x547,0x44e,0x478,0x3f6),_0x29b8eb(0x404,0x511,0x3d6,0x413)];async function exists2(_0x47e970){try{return await _0x398af1(_0x47e970),!![];}catch{return![];}}async function findUp(_0xb095fd,_0x2571af){const _0x3b8bdd={_0x42f466:0xad,_0x3b27bf:0x77,_0x2010d7:0xb4,_0x584011:0x55,_0x2d181b:0x6ac,_0x4b348e:0x5c4,_0x370cd8:0x65b,_0x52e7f9:0x5d7,_0x4ffd22:0x4af,_0x273fb7:0x4df,_0x51c3ab:0x6a,_0x10b667:0x140},_0x189941={_0x56ac11:0x1cf};function _0x4ccd57(_0x35bd87,_0x3e3654,_0x50f5f9,_0x519db9){return _0x29b8eb(_0x35bd87-0x26,_0x50f5f9- -0x42c,_0x50f5f9-0x9,_0x519db9);}let _0x3e609b=_0x3d9733[_0x4ccd57(_0x3b8bdd._0x42f466,-_0x3b8bdd._0x3b27bf,_0x3b8bdd._0x2010d7,-_0x3b8bdd._0x584011)](_0xb095fd);const _0x425560=_0x3d9733[_0x39dfe8(_0x3b8bdd._0x2d181b,_0x3b8bdd._0x4b348e,_0x3b8bdd._0x370cd8,_0x3b8bdd._0x52e7f9)](_0x3e609b);if(_0x425560)_0x3e609b=_0x3d9733[_0x39dfe8(0x385,0x5af,_0x3b8bdd._0x4ffd22,_0x3b8bdd._0x273fb7)](_0x3e609b);function _0x39dfe8(_0x7bf4ca,_0x5dc093,_0x5120f9,_0x531417){return _0x29b8eb(_0x7bf4ca-_0x189941._0x56ac11,_0x5120f9-0xc7,_0x5120f9-0x1ea,_0x7bf4ca);}while(!![]){for(const _0x56f00f of _0x2571af){if(await exists2(_0x3d9733[_0x39dfe8(0x5b3,0x3fc,0x51b,0x447)](_0x3e609b,_0x56f00f)))return _0x3e609b;}const _0x52ca4d=_0x3d9733[_0x4ccd57(_0x3b8bdd._0x51c3ab,-_0x3b8bdd._0x10b667,-0x44,-0x147)](_0x3e609b);if(_0x52ca4d===_0x3e609b)return void 0x0;_0x3e609b=_0x52ca4d;}}async function hasDenoRoot(_0x5a03e0){const _0x3541c6={_0x1b82e8:0x1ce,_0xee4654:0x105,_0x312020:0x151,_0x59006d:0x24c,_0x30ea1d:0x2a4,_0x1ead5e:0x1fb,_0x3a7d08:0x250,_0x3beb2e:0x1ae,_0x55ef67:0x1c7},_0x1f6cf0={_0x1eb945:0x9},_0x3248ca={_0x430bde:0x1e};function _0xc4a158(_0x36c1ac,_0x313a2b,_0x22bfdc,_0x172d8a){return _0x5a3b3d(_0x36c1ac,_0x313a2b-0x132,_0x313a2b-_0x3248ca._0x430bde,_0x172d8a-0x17);}function _0x5d276d(_0x5c6172,_0x171ba1,_0x5a8642,_0x315f3d){return _0x5a3b3d(_0x5a8642,_0x171ba1-_0x1f6cf0._0x1eb945,_0x171ba1- -0xf,_0x315f3d-0x153);}return await exists2(_0x3d9733[_0x5d276d(0x230,_0x3541c6._0x1b82e8,_0x3541c6._0xee4654,_0x3541c6._0x312020)](_0x5a03e0,_0x5d276d(0x2c2,0x379,_0x3541c6._0x59006d,0x3a7)))||await exists2(_0x3d9733[_0xc4a158(_0x3541c6._0x30ea1d,_0x3541c6._0x1ead5e,0x325,0x2ca)](_0x5a03e0,_0xc4a158(_0x3541c6._0x3a7d08,_0x3541c6._0x3beb2e,_0x3541c6._0x55ef67,0x5d)));}async function resolveTsserverPath(_0x3c8024){const _0x3b3d86={_0x552489:0xd2,_0x213f3f:0x2d,_0x4a5510:0x37,_0x4814cc:0x1f4,_0x523ff7:0x10e,_0x53da41:0x2,_0x2850c5:0x408,_0x452856:0x3b2,_0x220cde:0x243,_0x7ee1c4:0x47f,_0x2df22d:0x37c,_0x4f27fb:0x29,_0x1b2f80:0x66,_0x33b4e4:0x3,_0x3e497d:0xf5,_0x5b5ae2:0x523,_0x2efc11:0x647,_0x2f027d:0x47d,_0x2ac54c:0xd1,_0x4352ea:0x140,_0x4ae676:0x17,_0x3eaaac:0x1,_0x47497e:0x98,_0xd1a523:0x6,_0x2b822f:0x50,_0x935f99:0xc7,_0x3cc4e9:0x503,_0x355b21:0x47f,_0x3d6d52:0x403,_0x52198e:0x4de},_0x480197={_0x3e840d:0x5c,_0x391ceb:0x15d,_0x5dcd51:0x1ac};let _0x9409fc=_0x3d9733['resolve'](_0x3c8024);function _0x5a9984(_0xa1f35a,_0x5022ba,_0x22c4e,_0x55215f){return _0x5a3b3d(_0x22c4e,_0x5022ba-0x6c,_0x5022ba- -0x10b,_0x55215f-0x81);}while(!![]){const _0x38270b=_0x3d9733[_0x5a9984(0x114,_0x3b3d86._0x552489,_0x3b3d86._0x213f3f,_0x3b3d86._0x4a5510)](_0x9409fc,_0x5a9984(_0x3b3d86._0x4814cc,_0x3b3d86._0x523ff7,-_0x3b3d86._0x53da41,-0x2),_0x30d100(_0x3b3d86._0x2850c5,0x35d,_0x3b3d86._0x452856,_0x3b3d86._0x220cde),_0x30d100(0x56b,_0x3b3d86._0x7ee1c4,0x36e,_0x3b3d86._0x2df22d),'tsserver.js');if(await exists2(_0x38270b))return _0x38270b;const _0xbf7df1=_0x3d9733[_0x5a9984(-_0x3b3d86._0x4f27fb,_0x3b3d86._0x1b2f80,0x5a,_0x3b3d86._0x33b4e4)](_0x9409fc);if(_0xbf7df1===_0x9409fc)break;_0x9409fc=_0xbf7df1;}function _0x30d100(_0x531ea4,_0x347eb8,_0x442f9e,_0x255f43){return _0x5a3b3d(_0x531ea4,_0x347eb8-_0x480197._0x3e840d,_0x347eb8-_0x480197._0x391ceb,_0x255f43-_0x480197._0x5dcd51);}const _0x5f5532=getLspPackageDir(_0x5a9984(0xe1,_0x3b3d86._0x3e497d,_0x3b3d86._0x1b2f80,0xd4)),_0x91177d=await resolvePackageBinary({'packageName':'typescript','binaryName':_0x30d100(0x3e9,_0x3b3d86._0x5b5ae2,_0x3b3d86._0x2efc11,_0x3b3d86._0x2f027d),'startDir':_0x3c8024});if(!_0x91177d)return void 0x0;const _0x24ddc5=_0x3d9733[_0x5a9984(_0x3b3d86._0x2ac54c,_0x3b3d86._0x552489,_0x3b3d86._0x4352ea,_0x3b3d86._0x4ae676)](_0x5f5532,_0x5a9984(_0x3b3d86._0x3eaaac,_0x3b3d86._0x523ff7,_0x3b3d86._0x47497e,0x20a),_0x5a9984(-_0x3b3d86._0xd1a523,_0x3b3d86._0x3e497d,_0x3b3d86._0x2b822f,_0x3b3d86._0x935f99),_0x30d100(_0x3b3d86._0x3cc4e9,_0x3b3d86._0x355b21,0x506,_0x3b3d86._0x3d6d52),_0x30d100(0x4b7,0x42d,_0x3b3d86._0x52198e,0x3ce));return await exists2(_0x24ddc5)?_0x24ddc5:void 0x0;}var TypeScriptServer={'id':'typescript','name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x4cb8b0){const _0x4a4411=await findUp(_0x4cb8b0,TYPESCRIPT_ROOT_MARKERS);if(!_0x4a4411)return void 0x0;return await hasDenoRoot(_0x4a4411)?void 0x0:_0x4a4411;},async 'spawn'(_0x3708b4){const _0x39b4c6={_0x39fac2:0xea,_0x1be791:0x20,_0x396a8e:0x512,_0x3978ac:0x53d,_0x25d0f7:0x35e,_0x480223:0x2da,_0x18c9ff:0x3f4},_0x344237={_0x590890:0x178,_0x53ce62:0xa3},_0x272ae5={_0x436062:0x88,_0x10b45a:0x9b},_0x4e6149=await resolveTsserverPath(_0x3708b4);function _0x53a2e8(_0x38d025,_0x2685b1,_0x5a89b0,_0x254422){return _0x5a3b3d(_0x2685b1,_0x2685b1-_0x272ae5._0x436062,_0x5a89b0-0x284,_0x254422-_0x272ae5._0x10b45a);}function _0x7e3f9e(_0x5c181c,_0x5a7f36,_0x54992a,_0x3b996c){return _0x5a3b3d(_0x5c181c,_0x5a7f36-0x196,_0x5a7f36- -_0x344237._0x590890,_0x3b996c-_0x344237._0x53ce62);}if(!_0x4e6149)return void 0x0;const _0x445366=await resolvePackageBinary({'packageName':_0x7e3f9e(0x290,0x167,_0x39b4c6._0x39fac2,_0x39b4c6._0x1be791),'binaryName':'typescript-language-server','startDir':_0x3708b4});if(!_0x445366)return void 0x0;return{'process':_0x161bc7(_0x445366,[_0x53a2e8(0x530,0x624,_0x39b4c6._0x396a8e,_0x39b4c6._0x3978ac)],{'cwd':_0x3708b4,'stdio':_0x53a2e8(_0x39b4c6._0x25d0f7,_0x39b4c6._0x480223,_0x39b4c6._0x18c9ff,0x418)}),'initialization':{'tsserver':{'path':_0x4e6149}}};}},BiomeServer={'id':_0x5a3b3d(0x2c8,0x3b2,0x2a6,0x215),'name':'Biome\x20Language\x20Server','extensions':BIOME_EXTENSIONS,async 'root'(_0x2b9b20){return findUp(_0x2b9b20,BIOME_ROOT_MARKERS);},async 'spawn'(_0x525bfc){const _0x1c7b96={_0x1c7c4f:0x17d,_0x4dec24:0x7e,_0x6f3a52:0x169,_0x358465:0x36,_0x3c89c6:0x3d,_0x28c6ec:0x13b,_0x16532d:0xb6,_0x457f87:0x34,_0x4e194d:0x1d1,_0x5ddc9c:0xb8},_0x55194e={_0x35dac1:0x44f},_0x5b7dba={_0x2b899c:0x123,_0x1086cf:0x49f,_0x1b0dc5:0x1cc},_0x1b2fc8=await findPackageBinary(_0x1cdc70(_0x1c7b96._0x1c7c4f,_0x1c7b96._0x4dec24,0x180,0x1bd),_0x525bfc)??await resolvePackageBinary({'packageName':_0x451b2f(_0x1c7b96._0x6f3a52,0x21b,0x9e,_0x1c7b96._0x358465),'binaryName':_0x1cdc70(0x152,_0x1c7b96._0x4dec24,-_0x1c7b96._0x3c89c6,_0x1c7b96._0x28c6ec),'startDir':_0x525bfc});function _0x1cdc70(_0x5d9588,_0x4f2d70,_0x67dfd1,_0xa1805){return _0x29b8eb(_0x5d9588-_0x5b7dba._0x2b899c,_0x4f2d70- -_0x5b7dba._0x1086cf,_0x67dfd1-_0x5b7dba._0x1b0dc5,_0xa1805);}if(!_0x1b2fc8)return void 0x0;function _0x451b2f(_0x540e5d,_0x2f8188,_0x337e47,_0x449472){return _0x29b8eb(_0x540e5d-0x107,_0x540e5d- -_0x55194e._0x35dac1,_0x337e47-0xce,_0x337e47);}return{'process':_0x161bc7(_0x1b2fc8,['lsp-proxy',_0x451b2f(_0x1c7b96._0x16532d,-0x69,0x38,-_0x1c7b96._0x457f87)],{'cwd':_0x525bfc,'stdio':_0x1cdc70(-_0x1c7b96._0x4e194d,-_0x1c7b96._0x5ddc9c,-0x16,0x77)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x1cc593){const _0x257cb0={_0x42aa6d:0x2a,_0x5c3861:0xa7,_0x56a70b:0xa},_0x3cc32e={_0x343e22:0x3d6,_0x4fa858:0x118},_0x47bbbf={_0x12aa71:0x46c,_0x13b8a7:0x7d};function _0x3990b1(_0x4c75bd,_0x4b2fc2,_0x30c81a,_0x9a9820){return _0x29b8eb(_0x4c75bd-0x6b,_0x9a9820- -_0x47bbbf._0x12aa71,_0x30c81a-_0x47bbbf._0x13b8a7,_0x4c75bd);}function _0x55abb6(_0x3a07b3,_0x363c02,_0x3ba2be,_0x516ff7){return _0x29b8eb(_0x3a07b3-0x172,_0x3a07b3- -_0x3cc32e._0x343e22,_0x3ba2be-_0x3cc32e._0x4fa858,_0x363c02);}const _0x4c3a61=_0x3d9733['extname'](_0x1cc593)['toLowerCase']();return BUILTIN_LSP_SERVERS[_0x3990b1(_0x257cb0._0x42aa6d,-_0x257cb0._0x5c3861,-_0x257cb0._0x56a70b,0xa8)](_0x4dd866=>_0x4dd866[_0x3990b1(-0x51,-0xa6,-0x21,-0x38)][_0x3990b1(0x1b2,0x1b6,0x10f,0x150)](_0x4c3a61));}function stateKey(_0x29ce6c,_0x45b282){return _0x45b282+':'+_0x29ce6c['id'];}function diagnosticsKeyToPath(_0x43bde4){const _0x265f0a={_0x4bc9ca:0x49},_0x539dc4={_0x205e89:0x403};if(!_0x43bde4['startsWith'](_0xbc3d6b(-_0x265f0a._0x4bc9ca,-0xcb,-0x51,-0x162)))return _0x43bde4;function _0xbc3d6b(_0xeb1d9,_0x4741be,_0x33229a,_0x3ef05c){return _0x5a3b3d(_0x3ef05c,_0x4741be-0x1b0,_0x4741be- -_0x539dc4._0x205e89,_0x3ef05c-0x1d2);}return fileURLToPath(_0x43bde4);}function nextFileVersion(_0x11a2aa,_0x3788bd){const _0xa4473f={_0x4d7a0a:0xcf,_0x31aad6:0x39c,_0x37fc54:0x3c8},_0x443a61={_0x246670:0x3f8,_0x4f675e:0x1ef},_0x24b5a5={_0x2bd944:0xcd,_0x19cad2:0x73};function _0x2d377b(_0x57bd23,_0x2db7a6,_0x52961c,_0x301c43){return _0x5a3b3d(_0x301c43,_0x2db7a6-_0x24b5a5._0x2bd944,_0x57bd23-_0x24b5a5._0x19cad2,_0x301c43-0x60);}const _0x349c53=(_0x11a2aa[_0x501365(-0x9b,-_0xa4473f._0x4d7a0a,-0xcb,-0x1e3)][_0x2d377b(0x2a2,_0xa4473f._0x31aad6,_0xa4473f._0x37fc54,0x227)](_0x3788bd)??0x1)+0x1;_0x11a2aa['fileVersions'][_0x2d377b(0x2f1,0x2b3,0x3dd,0x200)](_0x3788bd,_0x349c53);function _0x501365(_0x5ee331,_0x410f86,_0x3bed84,_0x2a4684){return _0x5a3b3d(_0x2a4684,_0x410f86-0x1cc,_0x5ee331- -_0x443a61._0x246670,_0x2a4684-_0x443a61._0x4f675e);}return _0x349c53;}async function collectClientResults(_0x5c72ab){const _0x2126d6={_0x488f4d:0x589,_0x4a64b7:0x5b6,_0x32f830:0x4a0},_0x5d0bf4={_0x293bf3:0x48},_0x32293c=await Promise[_0x461815(0x665,_0x2126d6._0x488f4d,_0x2126d6._0x4a64b7,_0x2126d6._0x32f830)](_0x5c72ab);function _0x461815(_0xf0107a,_0x3dc4ba,_0x363ed3,_0x3cde5e){return _0x5a3b3d(_0xf0107a,_0x3dc4ba-0x13a,_0x363ed3-0x2cf,_0x3cde5e-0x18);}function _0x4cd72b(_0x3e44d2,_0x3e6b44,_0x4fda77,_0x492181){return _0x5a3b3d(_0x492181,_0x3e6b44-0xb7,_0x3e44d2- -0x39d,_0x492181-_0x5d0bf4._0x293bf3);}return _0x32293c['flatMap'](_0x2999cb=>_0x2999cb[_0x461815(0x4ae,0x41f,0x4f6,0x471)]==='fulfilled'?_0x2999cb[_0x461815(0x589,0x626,0x65e,0x6f4)]:[]);}function createLspService(_0x163890={}){const _0x1a85ca={_0x163587:0x7c,_0x38b995:0x2f,_0x42b4f6:0x113,_0x15d8e3:0x158,_0x54c2ee:0x1a1},_0xae86dc={_0x180ed3:0x96,_0x1c71a1:0x4aa},_0x8035b5={_0x4ee09a:0x13d},_0x1e025c={_0xf45d95:0x336,_0xed2de2:0x348,_0x597c32:0xbc,_0x373035:0x155,_0x44f05f:0x22,_0x100932:0x84,_0x267efa:0x1e0,_0x305a4a:0x30e,_0x190343:0x2db,_0x42f2ad:0x2d7,_0x46a5f9:0x2a,_0x20ee19:0x319,_0x44e9c9:0x1bd,_0x85c53c:0x2f0,_0x58c60c:0x1e0,_0x2f11d7:0x26a,_0x1744c6:0x196,_0x50884e:0x25b,_0x5b0a84:0x206},_0x2ccc73={_0x46c558:0x732},_0x2a7c2f={_0x1dc986:0x1ad},_0x256450={_0x27088a:0x109,_0x21c1a6:0x717},_0xc5fa9={_0xf9ef7a:0x15c,_0x4edc8d:0x1f0,_0xab1799:0xf1},_0x121ffa={_0x30f680:0x30c,_0x4c04a6:0x2cd},_0x326947={_0x534cb9:0x35d,_0x1e9daa:0x244},_0x2d3b4f={_0x2a499e:0x1ee,_0x58bba3:0x246},_0x3d2ec9={_0x5af7cc:0x144,_0x54a5a7:0x1d7,_0x464e5a:0x125,_0x4ba480:0x352},_0x17166a={_0x5742bf:0xd9},_0x6ef885={_0x235b3c:0x6fc},_0x39c167={_0x4e7739:0xd6,_0x13c99b:0x19b,_0x5738e6:0x1aa,_0x2ad7cc:0x415,_0x27c973:0x502},_0x381f6a={_0x30f798:0xa8,_0x4d088a:0x594},_0x9c595f={_0x3574a3:0x16d},_0x1ffea6={_0x58d93e:0x20d},_0x2bd88e={_0xf20a4e:0x194,_0x2662f7:0x16e,_0x3f67af:0x54a},_0x12eaea={_0x53c010:0x9a,_0x43842f:0x191},_0x4d1404={_0x1b3abf:0x20e,_0x1b4845:0x188},_0x24ce7d={_0x5a0a70:0xa2,_0xe3b29a:0x195,_0x11a822:0x23,_0x4f22b4:0x32},_0x55c986={_0x5ee943:0x45,_0x1fead5:0x7d,_0x506253:0x533},_0x1d8734={_0x316000:0x17,_0x2bc699:0x8f,_0xc15a01:0x1d3,_0x503d15:0x93,_0x5887e0:0x131},_0x53a826={_0x62ddc9:0x9e},_0x1c2552={_0x1e9ba:0x3ea,_0x23e288:0x4c9},_0x443233={_0x154240:0xc9,_0x2102c1:0xc9,_0x3b9d7a:0x16e},_0x4342c9={_0x1b1659:0x5d6,_0x2eaaf0:0x712,_0x4393c7:0x821,_0x35c187:0x74e,_0x18ef41:0x714,_0x23121e:0x622},_0x4e6533={_0x378aef:0x3e,_0x138b04:0x8},_0x44380e={_0x53d48c:0x383,_0x359e56:0x77},_0x538e99={_0x1ea576:0x50a,_0x4b966b:0x642},_0x5620b3={_0x1caeb1:0x123,_0xac639e:0x1c3,_0x2e61f2:0x6e,_0x3d11ed:0xf0,_0x558903:0x1b0,_0x34abc3:0x14f,_0x3831db:0x308,_0x4069a6:0x2f0,_0x445c55:0x334,_0x113f2a:0x44f,_0x350ef1:0x165,_0x50c252:0x54,_0x32d40e:0x2a3,_0x540370:0x198,_0x145db1:0x36,_0x5dd44d:0x103,_0x2ef3c8:0x3a1,_0x12c412:0x2bb},_0x338d72={_0x45352d:0x25,_0x14e8f9:0x5f},_0xe09db9={_0x188f5b:0xbe,_0x373f83:0x3b,_0x47b835:0x96,_0x4f3340:0x5,_0x2a2449:0x12d},_0x137b33={_0x5b3b6b:0x6c,_0x4a0bed:0x1eb,_0x2cbed6:0x116,_0x3f5d14:0x10,_0x5a49b9:0x4f,_0x28f68e:0xab,_0x4a52b1:0xc4,_0x3eb922:0x191,_0xd30dfc:0x166},_0x28b3e2={_0x4787bb:0x1b4,_0x4a89e4:0xbe,_0xfcf8f2:0x470},_0x5e0c07={_0x2f664e:0xd9,_0x18a51d:0x69,_0x329fea:0x505,_0x3e9720:0x411,_0x481307:0x8a,_0x3e99af:0x95,_0x29826a:0x395,_0x16d345:0x380,_0x38cf71:0x3ee,_0x3a64a3:0x3ae,_0x1b0f73:0x34a,_0x477764:0x399,_0x212f93:0x168,_0x592afb:0xf6,_0x39d8cc:0x468,_0x625fc1:0x27c,_0x40e305:0x36e,_0x17c389:0x2b0},_0x3f987b={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x9b5065=()=>_0x163890[_0x240430(0x551,0x4af,0x506,0x3de)]!==![];async function _0x11a393(_0x18bca8,_0x4e95c5){const _0x3df623={_0x3c58f9:0x7b,_0x34c647:0x5d0},_0x5a8a69={_0x4097c2:0x15b,_0x32c3df:0x1a8},_0x2a2a61=stateKey(_0x18bca8,_0x4e95c5),_0x2ab58f=_0x3f987b[_0x173893(0xfb,-0x50,0xa6,-_0x137b33._0x5b3b6b)][_0x3688b1(_0x137b33._0x4a0bed,0x125,0x160,0x116)](_0x1759fd=>_0x1759fd[_0x3688b1(0x1c3,0x8d,-0x7f,0x163)]===_0x18bca8['id']&&_0x1759fd[_0x3688b1(0x2a2,0x2e2,0x1c6,0x30f)]===_0x4e95c5);if(_0x2ab58f)return _0x2ab58f;if(_0x3f987b['broken'][_0x173893(-0x183,0x43,-0xc7,-_0x137b33._0x2cbed6)](_0x2a2a61))return void 0x0;const _0x43decf=_0x3f987b[_0x173893(-_0x137b33._0x3f5d14,-0x13,0x76,_0x137b33._0x5a49b9)]['get'](_0x2a2a61);if(_0x43decf)return _0x43decf;const _0x107ac4=((async()=>{const _0x378cf9={_0xd70d89:0x13e};function _0x25247a(_0x257287,_0x704159,_0x507d57,_0x53f179){return _0x3688b1(_0x257287-_0x5a8a69._0x4097c2,_0x53f179-_0x5a8a69._0x32c3df,_0x507d57,_0x53f179-0xe4);}function _0x228530(_0x30b27f,_0x4fb944,_0x1c4c00,_0x57eff4){return _0x173893(_0x30b27f-0x1e8,_0x4fb944-_0x378cf9._0xd70d89,_0x4fb944- -0x21,_0x57eff4);}try{const _0x494444=await _0x18bca8[_0x228530(-0x72,_0x5e0c07._0x2f664e,-_0x5e0c07._0x18a51d,0xcd)](_0x4e95c5);if(!_0x494444)return _0x3f987b[_0x25247a(0x2f7,0x360,_0x5e0c07._0x329fea,_0x5e0c07._0x3e9720)][_0x228530(0x2c,_0x5e0c07._0x481307,-0x56,_0x5e0c07._0x3e99af)](_0x2a2a61),void 0x0;const _0x2f9a5d=await createLspClient({'server':_0x18bca8,'root':_0x4e95c5,'handle':_0x494444}),_0x3c4265=_0x3f987b[_0x25247a(_0x5e0c07._0x29826a,_0x5e0c07._0x16d345,_0x5e0c07._0x38cf71,_0x5e0c07._0x3a64a3)][_0x25247a(_0x5e0c07._0x1b0f73,0x378,_0x5e0c07._0x477764,0x2cd)](_0x3752e6=>_0x3752e6[_0x228530(-0x239,-0xf4,0x23,-0x21f)]===_0x18bca8['id']&&_0x3752e6[_0x25247a(0x45b,0x59b,0x463,0x48a)]===_0x4e95c5);if(_0x3c4265)return await _0x2f9a5d[_0x228530(_0x5e0c07._0x212f93,0xd6,_0x5e0c07._0x592afb,0x14b)](),_0x3c4265;return _0x3f987b[_0x25247a(0x479,_0x5e0c07._0x39d8cc,_0x5e0c07._0x625fc1,_0x5e0c07._0x3a64a3)]['push'](_0x2f9a5d),_0x2f9a5d;}catch{return _0x3f987b['broken']['add'](_0x2a2a61),void 0x0;}finally{_0x3f987b['spawning'][_0x25247a(_0x5e0c07._0x40e305,0x2bc,_0x5e0c07._0x17c389,0x2e6)](_0x2a2a61);}})());function _0x173893(_0x8fd2e,_0xb16188,_0x100bcd,_0x4999c2){return _0x240430(_0x8fd2e-_0x3df623._0x3c58f9,_0xb16188-0x4c,_0x100bcd- -_0x3df623._0x34c647,_0x4999c2);}function _0x3688b1(_0x7a2daa,_0x441eeb,_0x56c352,_0x357dac){return _0x240430(_0x7a2daa-_0x28b3e2._0x4787bb,_0x441eeb-_0x28b3e2._0x4a89e4,_0x441eeb- -_0x28b3e2._0xfcf8f2,_0x56c352);}return _0x3f987b[_0x3688b1(0x189,0x1d6,_0x137b33._0x28f68e,_0x137b33._0x4a52b1)][_0x3688b1(0xe6,_0x137b33._0x3eb922,_0x137b33._0xd30dfc,0x10a)](_0x2a2a61,_0x107ac4),_0x107ac4;}async function _0x4d7220(_0x3d2005,_0x24cc53){const _0x12bbe4={_0x1d7d62:0x193,_0x5ef043:0x17f,_0x4e472b:0x3ba},_0x4ea40f={_0x3b04ff:0x66b};function _0x2e59bd(_0x16e39f,_0x1a7862,_0x55c1de,_0x1c6772){return _0x240430(_0x16e39f-0x12d,_0x1a7862-0xe6,_0x16e39f- -_0x4ea40f._0x3b04ff,_0x1a7862);}if(!_0x9b5065())return[];const _0x1d488d=[];function _0x32f4bd(_0x36e5e5,_0x668ef7,_0x54a93f,_0x352b41){return _0x240430(_0x36e5e5-_0x12bbe4._0x1d7d62,_0x668ef7-_0x12bbe4._0x5ef043,_0x352b41- -_0x12bbe4._0x4e472b,_0x54a93f);}for(const _0x2c3eb5 of getServersForFile(_0x3d2005)){const _0x12b156=await _0x2c3eb5['root'](_0x3d2005);if(!_0x12b156)continue;const _0x10bdb8=stateKey(_0x2c3eb5,_0x12b156);if(_0x3f987b[_0x2e59bd(0x6e,_0xe09db9._0x188f5b,_0xe09db9._0x373f83,0xf4)]['has'](_0x10bdb8))continue;const _0x5aeefb=_0x3f987b['clients']['find'](_0xbcbe43=>_0xbcbe43[_0x32f4bd(0x178,0x1c7,0x27a,0x143)]===_0x2c3eb5['id']&&_0xbcbe43[_0x2e59bd(0xe7,0x1b,-0x15,0x32)]===_0x12b156);if(_0x5aeefb){_0x1d488d[_0x2e59bd(-_0xe09db9._0x47b835,-_0xe09db9._0x4f3340,-0xa0,-_0xe09db9._0x2a2449)](_0x5aeefb);continue;}if(!_0x24cc53)continue;const _0x3444f6=await _0x11a393(_0x2c3eb5,_0x12b156);if(_0x3444f6)_0x1d488d['push'](_0x3444f6);}return _0x1d488d;}async function _0x41ec04(_0x5b653f,_0xec4cf9=![]){const _0x2b3707={_0x2bfbae:0xfd,_0xa4e064:0x1c6};function _0x2ac743(_0x514a0f,_0x1d83c4,_0x1a891b,_0x5b9f85){return _0x240430(_0x514a0f-0x121,_0x1d83c4-0x5e,_0x5b9f85- -0x26c,_0x514a0f);}function _0x988f2d(_0x2c447c,_0x9233b,_0x13dfa6,_0x5d0331){return _0x240430(_0x2c447c-_0x338d72._0x45352d,_0x9233b-0xcb,_0x2c447c- -_0x338d72._0x14e8f9,_0x9233b);}const _0x511dbf=await _0x4d7220(_0x5b653f,!![]);await Promise[_0x2ac743(0x295,_0x538e99._0x1ea576,0x475,0x3cc)](_0x511dbf[_0x988f2d(0x6f8,0x6ff,_0x538e99._0x4b966b,0x60f)](async _0x18237e=>{const _0xbc1bfa={_0x565f28:0x1cc};function _0x4fe73(_0x1488cf,_0x295ffb,_0x2d0b87,_0x362fd4){return _0x2ac743(_0x295ffb,_0x295ffb-_0xbc1bfa._0x565f28,_0x2d0b87-0x1f0,_0x2d0b87- -0x233);}!_0x3f987b[_0x45afba(0x2a5,_0x5620b3._0x1caeb1,0x1b1,0x2ad)][_0x45afba(_0x5620b3._0xac639e,_0x5620b3._0x2e61f2,_0x5620b3._0x3d11ed,_0x5620b3._0x558903)](_0x18237e['serverId']+':'+_0x18237e['root']+':'+_0x5b653f)&&(await _0x18237e[_0x45afba(0x23f,_0x5620b3._0x34abc3,0x1fe,0x199)][_0x45afba(_0x5620b3._0x3831db,_0x5620b3._0x4069a6,_0x5620b3._0x445c55,_0x5620b3._0x113f2a)]({'path':_0x5b653f}),_0x3f987b[_0x4fe73(_0x5620b3._0x350ef1,_0x5620b3._0x50c252,0x12b,0x245)][_0x4fe73(0x14e,_0x5620b3._0x32d40e,0x1dc,_0x5620b3._0x540370)](_0x18237e[_0x4fe73(_0x5620b3._0x145db1,0x121,0x5e,_0x5620b3._0x5dd44d)]+':'+_0x18237e[_0x4fe73(0x205,_0x5620b3._0x2ef3c8,0x2b3,_0x5620b3._0x12c412)]+':'+_0x5b653f));await _0x18237e['notify'][_0x45afba(0x32a,0x3c9,0x35d,0x3d1)]({'path':_0x5b653f,'version':nextFileVersion(_0x3f987b,_0x5b653f)});function _0x45afba(_0x4dfb6d,_0x55fa04,_0x1e8c05,_0x43d113){return _0x2ac743(_0x55fa04,_0x55fa04-_0x2b3707._0x2bfbae,_0x1e8c05-_0x2b3707._0xa4e064,_0x1e8c05- -0x1ad);}if(_0xec4cf9)await _0x18237e['waitForDiagnostics']({'path':_0x5b653f});}));}function _0x240430(_0x35f2e4,_0xf505fd,_0x302a69,_0x3e4dda){return _0x5a3b3d(_0x3e4dda,_0xf505fd-0x43,_0x302a69-_0x44380e._0x53d48c,_0x3e4dda-_0x44380e._0x359e56);}async function _0x31e2e7(_0x36c405){const _0x5545e0={_0x1b4e0b:0x1c8,_0x14d9b7:0x14};function _0x1e93bb(_0x5878b8,_0x3d6ab7,_0x1a0cbc,_0x4e4ed6){return _0x240430(_0x5878b8-_0x5545e0._0x1b4e0b,_0x3d6ab7-0x196,_0x1a0cbc-_0x5545e0._0x14d9b7,_0x4e4ed6);}await _0x41ec04(_0x36c405[_0x1d5320(_0x4342c9._0x1b1659,_0x4342c9._0x2eaaf0,0x714,_0x4342c9._0x4393c7)],![]);function _0x1d5320(_0x33dd26,_0xf233a8,_0x901285,_0x260c13){return _0x240430(_0x33dd26-_0x4e6533._0x378aef,_0xf233a8-0xf2,_0x901285- -_0x4e6533._0x138b04,_0xf233a8);}return _0x4d7220(_0x36c405[_0x1d5320(_0x4342c9._0x35c187,0x61a,_0x4342c9._0x18ef41,_0x4342c9._0x23121e)],![]);}async function _0x109842(_0x528047){const _0x57ee29={_0x1adb3f:0xf7};function _0x346dc0(_0x4187e7,_0x265fe2,_0x4c8ea0,_0x1116f0){return _0x240430(_0x4187e7-_0x443233._0x154240,_0x265fe2-_0x443233._0x2102c1,_0x265fe2- -_0x443233._0x3b9d7a,_0x4c8ea0);}const _0x2fa745=await _0x31e2e7(_0x528047);function _0x16f41a(_0x3f0b97,_0x5734f1,_0x6ae346,_0x1ee9c4){return _0x240430(_0x3f0b97-0x9a,_0x5734f1-_0x57ee29._0x1adb3f,_0x1ee9c4- -0x562,_0x5734f1);}return collectClientResults(_0x2fa745[_0x16f41a(0x307,0x2b1,0xee,0x1f5)](_0x528c3d=>_0x528c3d[_0x16f41a(0x255,0x2c7,0x1a6,0x19d)][_0x16f41a(0x99,0x87,0x1dd,0xa4)](_0x528047)));}return{'isEnabled':_0x9b5065,async 'hasClients'(_0xf9fa78){const _0x5b02ba={_0x18074d:0x9b};function _0x3a4c2b(_0x49ddb5,_0x319b94,_0x42aace,_0x1137c2){return _0x240430(_0x49ddb5-0x110,_0x319b94-_0x5b02ba._0x18074d,_0x319b94- -0x122,_0x1137c2);}return(await _0x4d7220(_0xf9fa78,![]))['length']>0x0||getServersForFile(_0xf9fa78)[_0x3a4c2b(_0x1c2552._0x1e9ba,0x4ac,_0x1c2552._0x23e288,0x5ea)]>0x0;},'touchFile':_0x41ec04,async 'diagnostics'(){const _0x2a444e={_0x50c3b9:0x1a3};function _0x516f28(_0xe1add9,_0x26f79a,_0x5d7e87,_0x4d29ff){return _0x240430(_0xe1add9-0xea,_0x26f79a-0x17d,_0x26f79a- -_0x53a826._0x62ddc9,_0x5d7e87);}function _0x240f2f(_0x5ddcbf,_0x2cc733,_0x43104c,_0x3c2584){return _0x240430(_0x5ddcbf-_0x2a444e._0x50c3b9,_0x2cc733-0x16b,_0x5ddcbf- -0x68d,_0x2cc733);}const _0x1571a3={};for(const _0x461596 of _0x3f987b[_0x240f2f(-_0x1d8734._0x316000,-0x32,-_0x1d8734._0x2bc699,0xf)]){for(const [_0xdea5d3,_0x3da9a7]of _0x461596[_0x240f2f(0xa5,_0x1d8734._0xc15a01,_0x1d8734._0x503d15,_0x1d8734._0x5887e0)]){_0x1571a3[diagnosticsKeyToPath(_0xdea5d3)]=_0x3da9a7;}}return _0x1571a3;},async 'diagnosticsForFile'(_0xb93e70){function _0x355074(_0x4cf331,_0x46c34f,_0x51ff20,_0x1d0e4c){return _0x240430(_0x4cf331-_0x55c986._0x5ee943,_0x46c34f-_0x55c986._0x1fead5,_0x4cf331- -_0x55c986._0x506253,_0x1d0e4c);}await _0x41ec04(_0xb93e70,!![]);const _0x2dc3ed=[];for(const _0x54fe43 of await _0x4d7220(_0xb93e70,![])){for(const [_0x4a4c0e,_0x29b79c]of _0x54fe43['diagnostics']){if(diagnosticsKeyToPath(_0x4a4c0e)===_0xb93e70)_0x2dc3ed[_0x355074(_0x24ce7d._0x5a0a70,_0x24ce7d._0xe3b29a,_0x24ce7d._0x11a822,-_0x24ce7d._0x4f22b4)](..._0x29b79c);}}return _0x2dc3ed;},async 'definition'(_0x4c21e7){const _0x57986c={_0x55e15a:0x45,_0x2a2d1f:0x83};function _0x2be72b(_0x451d4d,_0x34883b,_0x3ff1f2,_0x8bb048){return _0x240430(_0x451d4d-_0x57986c._0x55e15a,_0x34883b-_0x57986c._0x2a2d1f,_0x8bb048- -0x676,_0x3ff1f2);}function _0x5af10f(_0x6e3b72,_0x40f0a5,_0x35960e,_0x88784d){return _0x240430(_0x6e3b72-0x141,_0x40f0a5-0x11,_0x35960e- -0x50b,_0x6e3b72);}return collectClientResults((await _0x31e2e7(_0x4c21e7))[_0x2be72b(_0x4d1404._0x1b3abf,0x59,_0x4d1404._0x1b4845,0xe1)](_0x4302aa=>_0x4302aa['request'][_0x2be72b(-0x112,-0x111,-0x1d5,-0x132)](_0x4c21e7)));},async 'references'(_0x4db801){function _0x42aac0(_0x3a0423,_0xce006b,_0x5e2034,_0x2a614c){return _0x240430(_0x3a0423-_0x12eaea._0x53c010,_0xce006b-_0x12eaea._0x43842f,_0xce006b- -0x671,_0x5e2034);}function _0x10eae6(_0x4c1faf,_0x4b8b84,_0x10e120,_0x2221ae){return _0x240430(_0x4c1faf-_0x2bd88e._0xf20a4e,_0x4b8b84-_0x2bd88e._0x2662f7,_0x2221ae- -_0x2bd88e._0x3f67af,_0x4c1faf);}return collectClientResults((await _0x31e2e7(_0x4db801))[_0x10eae6(0x281,0x25f,0x24a,_0x1ffea6._0x58d93e)](_0x3ba499=>_0x3ba499['request'][_0x10eae6(0x88,-0xaa,-0x169,-0x20)](_0x4db801)));},async 'hover'(_0x20b568){function _0x45c7b3(_0x3eb38c,_0x174efc,_0x214c24,_0x1209ae){return _0x240430(_0x3eb38c-0xf1,_0x174efc-_0x9c595f._0x3574a3,_0x1209ae- -0x285,_0x174efc);}function _0x2dbd48(_0x3839be,_0x2eb740,_0x46d1c8,_0xe2de6c){return _0x240430(_0x3839be-_0x381f6a._0x30f798,_0x2eb740-0x11f,_0x3839be- -_0x381f6a._0x4d088a,_0x46d1c8);}const _0x5d1cd7=await Promise[_0x2dbd48(_0x39c167._0x4e7739,_0x39c167._0x13c99b,_0x39c167._0x5738e6,0x84)]((await _0x31e2e7(_0x20b568))['map'](_0x579ff8=>_0x579ff8['request'][_0x2dbd48(0x17b,0x1e8,0x262,0x2b6)](_0x20b568)));return _0x5d1cd7[_0x45c7b3(0x57b,0x606,_0x39c167._0x2ad7cc,_0x39c167._0x27c973)](_0x102b1f=>_0x102b1f['status']===_0x2dbd48(0x1df,0x12f,0x206,0x1ae)&&_0x102b1f[_0x45c7b3(0x36e,0x38e,0x377,0x48d)]?[_0x102b1f[_0x2dbd48(0x17e,0x52,0x273,0x277)]]:[]);},async 'documentSymbol'(_0x57e34b){function _0x1e3f39(_0x5c9286,_0x7895,_0x3a9d2c,_0x3a9695){return _0x240430(_0x5c9286-0x5b,_0x7895-0x8c,_0x5c9286- -_0x6ef885._0x235b3c,_0x7895);}return await _0x41ec04(_0x57e34b,![]),collectClientResults((await _0x4d7220(_0x57e34b,![]))['map'](_0x30ec68=>_0x30ec68['request'][_0x1e3f39(-0x73,-0x13,-0x50,0x48)](_0x57e34b)));},async 'workspaceSymbol'(_0x566d79){const _0x300008={_0x3a3a02:0x6d};function _0x2e0a1c(_0x3884ee,_0x20bd24,_0x27f60f,_0x583183){return _0x240430(_0x3884ee-0x1aa,_0x20bd24-_0x300008._0x3a3a02,_0x583183- -0x651,_0x20bd24);}function _0x59045b(_0x5872f9,_0x281d37,_0x5e3539,_0x505a9a){return _0x240430(_0x5872f9-_0x17166a._0x5742bf,_0x281d37-0x6b,_0x5e3539- -0x405,_0x5872f9);}return collectClientResults(_0x3f987b[_0x59045b(_0x3d2ec9._0x5af7cc,_0x3d2ec9._0x54a5a7,0x271,_0x3d2ec9._0x464e5a)][_0x59045b(0x361,0x2af,_0x3d2ec9._0x4ba480,0x21c)](_0x56139c=>_0x56139c[_0x59045b(0x2e4,0x219,0x2fa,0x1fe)]['workspaceSymbol'](_0x566d79)));},async 'implementation'(_0x5a0639){const _0x1a188a={_0xcfec08:0x1cf};function _0x5c6919(_0x20aac0,_0x537998,_0x3d5df3,_0x9a4c09){return _0x240430(_0x20aac0-_0x1a188a._0xcfec08,_0x537998-0x4a,_0x9a4c09- -0x513,_0x20aac0);}function _0x538f63(_0x370965,_0x8f1b6b,_0x2f7909,_0x58aae7){return _0x240430(_0x370965-_0x2d3b4f._0x2a499e,_0x8f1b6b-0xa4,_0x370965- -_0x2d3b4f._0x58bba3,_0x2f7909);}return collectClientResults((await _0x31e2e7(_0x5a0639))[_0x5c6919(_0x326947._0x534cb9,0x136,0x1fa,_0x326947._0x1e9daa)](_0x299ac2=>_0x299ac2[_0x538f63(0x4b9,0x56c,0x5ed,0x571)]['implementation'](_0x5a0639)));},async 'prepareCallHierarchy'(_0x21af5a){return _0x109842(_0x21af5a);},async 'incomingCalls'(_0x2f70a3){const _0xe5e8ee={_0x308247:0x4e},_0x5c1a44={_0x125d10:0xb1,_0x1f7999:0x13b},_0x32a1c6=await _0x109842(_0x2f70a3);function _0x227165(_0x2d532c,_0x409acf,_0x24cf88,_0x3649ab){return _0x240430(_0x2d532c-0xce,_0x409acf-_0x5c1a44._0x125d10,_0x3649ab- -_0x5c1a44._0x1f7999,_0x409acf);}const _0x54864b=await _0x31e2e7(_0x2f70a3);function _0x46c9a3(_0x262dab,_0x3894c9,_0x384bc1,_0x547f86){return _0x240430(_0x262dab-_0xe5e8ee._0x308247,_0x3894c9-0x43,_0x3894c9- -0x47b,_0x547f86);}return collectClientResults(_0x54864b[_0x46c9a3(0x2bf,_0x121ffa._0x30f680,_0x121ffa._0x4c04a6,0x38b)](_0x28c194=>_0x32a1c6['map'](_0xae4b79=>_0x28c194[_0x227165(0x50c,0x5b2,0x5c0,0x5c4)]['incomingCalls'](_0xae4b79))));},async 'outgoingCalls'(_0x16f88f){const _0x2acc3e=await _0x109842(_0x16f88f);function _0x80cb7a(_0xa96490,_0x40c7ac,_0x30295f,_0x5e87f0){return _0x240430(_0xa96490-_0xc5fa9._0xf9ef7a,_0x40c7ac-_0xc5fa9._0x4edc8d,_0x30295f- -_0xc5fa9._0xab1799,_0xa96490);}function _0x586bb5(_0x3c0209,_0x11c641,_0x300963,_0x53e842){return _0x240430(_0x3c0209-_0x256450._0x27088a,_0x11c641-0xbd,_0x3c0209- -_0x256450._0x21c1a6,_0x11c641);}const _0x40403c=await _0x31e2e7(_0x16f88f);return collectClientResults(_0x40403c[_0x586bb5(0x70,-0x3f,0x151,_0x2a7c2f._0x1dc986)](_0xb8c1a2=>_0x2acc3e['map'](_0x3cfa70=>_0xb8c1a2[_0x80cb7a(0x67f,0x5f9,0x60e,0x572)][_0x80cb7a(0x54f,0x694,0x64e,0x70e)](_0x3cfa70))));},async 'shutdown'(){const _0x462eaa={_0x3de8aa:0x36f};if(_0x3f987b['shutdownStarted'])return;_0x3f987b[_0x482bc1(0x28f,0x32c,_0x1e025c._0xf45d95,_0x1e025c._0xed2de2)]=!![],await Promise['allSettled'](_0x3f987b[_0x46c76d(-0x1d8,-_0x1e025c._0x597c32,-_0x1e025c._0x373035,-0x169)]['map'](_0x57a1ce=>_0x57a1ce['shutdown']())),_0x3f987b[_0x46c76d(-_0x1e025c._0x44f05f,-0xbc,-_0x1e025c._0x100932,-_0x1e025c._0x267efa)]=[],_0x3f987b[_0x482bc1(0x23c,_0x1e025c._0x305a4a,_0x1e025c._0x190343,_0x1e025c._0x42f2ad)]['clear']();function _0x482bc1(_0x4da5d1,_0x272b83,_0x413ffb,_0x3b8840){return _0x240430(_0x4da5d1-0x12c,_0x272b83-0x96,_0x3b8840- -_0x462eaa._0x3de8aa,_0x4da5d1);}function _0x46c76d(_0x3a3e35,_0x222ba0,_0x2a9c98,_0x11e42e){return _0x240430(_0x3a3e35-0x113,_0x222ba0-0xba,_0x222ba0- -_0x2ccc73._0x46c558,_0x11e42e);}_0x3f987b[_0x46c76d(-0x184,-0x59,-_0x1e025c._0x46a5f9,-0xb7)][_0x482bc1(0x16f,0x2dd,_0x1e025c._0x20ee19,0x206)](),_0x3f987b[_0x46c76d(-0x4a,-0x52,-0x84,0xc7)][_0x482bc1(_0x1e025c._0x44e9c9,_0x1e025c._0x85c53c,_0x1e025c._0x58c60c,0x206)](),_0x3f987b[_0x482bc1(_0x1e025c._0x2f11d7,0x208,_0x1e025c._0x1744c6,_0x1e025c._0x50884e)][_0x482bc1(0x167,0x171,0x182,_0x1e025c._0x5b0a84)]();},'status'(){function _0x1d3d0c(_0x5c6898,_0xf50654,_0x10a44c,_0x104882){return _0x240430(_0x5c6898-_0x8035b5._0x4ee09a,_0xf50654-0x122,_0x10a44c- -0x6a5,_0x5c6898);}function _0x2a666b(_0x1373b1,_0x4dd58b,_0x54bbd1,_0x5eff5d){return _0x240430(_0x1373b1-_0xae86dc._0x180ed3,_0x4dd58b-0x42,_0x5eff5d- -_0xae86dc._0x1c71a1,_0x54bbd1);}return{'connectedClients':_0x3f987b[_0x1d3d0c(-0x10d,-_0x1a85ca._0x163587,-_0x1a85ca._0x38b995,_0x1a85ca._0x42b4f6)][_0x1d3d0c(-0xcc,-_0x1a85ca._0x15d8e3,-0xd7,-_0x1a85ca._0x54c2ee)]};}};}function createQuestionId(){const _0x4aaa5b={_0x55fc5e:0x1ed,_0x1f9ed2:0x126},_0x429555={_0x4ec913:0x157,_0x2b0e52:0x499,_0x3707b8:0x10};function _0x3982cd(_0x4a88bc,_0x51191b,_0x4e0fb1,_0x2ec8bd){return _0x5a3b3d(_0x4e0fb1,_0x51191b-0x82,_0x2ec8bd-0xfe,_0x2ec8bd-0x11c);}function _0x1af708(_0x1e438a,_0x5dd10f,_0x10dd88,_0x117b8a){return _0x29b8eb(_0x1e438a-_0x429555._0x4ec913,_0x117b8a- -_0x429555._0x2b0e52,_0x10dd88-_0x429555._0x3707b8,_0x10dd88);}return'question-'+Date['now']()+'-'+Math[_0x1af708(_0x4aaa5b._0x55fc5e,0x278,0x27c,0x197)]()['toString'](0x24)[_0x1af708(-0x48,-0xc3,_0x4aaa5b._0x1f9ed2,0x20)](0x2,0x9);}function validateInput(_0x3d4150){const _0x178263={_0x385a27:0x414,_0x193526:0x345,_0x209b23:0x1d,_0x138c95:0x89,_0x317826:0xd6,_0xb61822:0x39c,_0x52f5a1:0x270,_0x34278c:0x2d7,_0xda5c41:0x4f0,_0x48458f:0x4c3,_0x5def89:0xff,_0x5ba41f:0x44,_0x3afa2f:0x3b3,_0xf87d45:0x16e,_0x29271a:0x18a,_0xe5aeee:0x270,_0x1d7cc9:0x22f,_0x3b3010:0xc6,_0x73041f:0x1b5,_0x1621ca:0x3bc,_0x14266e:0x33d,_0x3f9e75:0x3f9,_0x4d5d3c:0xe1,_0x451c91:0x112,_0x5902cf:0x54,_0x53fd24:0x46d,_0x2d82b2:0x395,_0x3981a6:0x24d,_0x46e0f2:0x3a2,_0x57af27:0x2b8,_0x9daa52:0x1f8,_0x2d5987:0x3a5,_0x1c0213:0x2d7,_0x4db719:0x34c,_0xc5fdac:0x243,_0x286aed:0x39f,_0x22034a:0x19e,_0x230642:0xb4,_0x5b337f:0x197,_0x5a44a3:0x1e1,_0x43dd06:0xf5,_0x440d05:0x1df,_0x3130e1:0x1f2,_0x2a1871:0x19d,_0x5aa95b:0x1cc,_0x12b233:0x302,_0x376935:0x29c,_0x19614d:0x328,_0x19e8e4:0x2c4,_0x587053:0x1c5,_0x119a42:0x1fd,_0x41eb44:0x270,_0x3a5bf7:0x270,_0x4c8dea:0x362,_0x5cd708:0x263,_0x36e6ec:0x18f,_0x30af57:0x248,_0x8780af:0x272,_0x5424dd:0x1a0,_0x5ec516:0x8e,_0x334a3c:0x1b8,_0x236d0c:0x51,_0x1b3147:0x27f,_0x55fc13:0x27d,_0x3e2132:0x409,_0x511f49:0x4ee,_0x4b8d16:0x329,_0x2afa1d:0x2ca,_0x4f2482:0x8c,_0x261146:0x37},_0x486378={_0x4bf87e:0x417,_0x12fa73:0x15c},_0x1929bc={_0x4b4668:0xb1};function _0x49bcb4(_0x4a32ca,_0x3620f9,_0x5d7e97,_0x1d191a){return _0x29b8eb(_0x4a32ca-0x13a,_0x5d7e97- -0x252,_0x5d7e97-_0x1929bc._0x4b4668,_0x4a32ca);}function _0x5d68e4(_0x35090c,_0x1df0b4,_0x4793cb,_0x191595){return _0x5a3b3d(_0x35090c,_0x1df0b4-0x146,_0x4793cb- -_0x486378._0x4bf87e,_0x191595-_0x486378._0x12fa73);}if(!Array[_0x49bcb4(_0x178263._0x385a27,_0x178263._0x193526,0x33b,0x2c5)](_0x3d4150[_0x5d68e4(-0x1d0,_0x178263._0x209b23,-_0x178263._0x138c95,-_0x178263._0x317826)])||_0x3d4150[_0x49bcb4(0x489,0x28f,0x3b3,_0x178263._0xb61822)][_0x49bcb4(0x302,0x262,_0x178263._0x52f5a1,_0x178263._0x34278c)]<0x1||_0x3d4150[_0x49bcb4(0x332,_0x178263._0xda5c41,0x3b3,_0x178263._0x48458f)][_0x49bcb4(0x38e,0x33b,_0x178263._0x52f5a1,0x121)]>0xa)throw new ToolExecutionError(_0x5d68e4(-_0x178263._0x5def89,0x9e,-_0x178263._0x5ba41f,-0x172),{'error':'invalid_questions'});for(let _0x3bba94=0x0;_0x3bba94<_0x3d4150[_0x49bcb4(0x4d2,0x470,_0x178263._0x3afa2f,0x289)][_0x49bcb4(_0x178263._0xf87d45,_0x178263._0x29271a,_0x178263._0xe5aeee,_0x178263._0x1d7cc9)];_0x3bba94+=0x1){const _0x18abf5=_0x3d4150[_0x5d68e4(-_0x178263._0x3b3010,0x33,-0x89,-_0x178263._0x73041f)][_0x3bba94];if(!_0x18abf5[_0x49bcb4(0x248,_0x178263._0x1621ca,_0x178263._0x14266e,_0x178263._0x3f9e75)]||typeof _0x18abf5[_0x5d68e4(-_0x178263._0x4d5d3c,-_0x178263._0x451c91,-0xff,-_0x178263._0x5902cf)]!==_0x49bcb4(0x3ad,_0x178263._0x53fd24,_0x178263._0x2d82b2,0x487))throw new ToolExecutionError('Question\x20'+(_0x3bba94+0x1)+_0x5d68e4(-0x1cc,-_0x178263._0x3981a6,-0x112,-0x1a8));if(!_0x18abf5[_0x5d68e4(-0x1d5,-_0x178263._0x46e0f2,-0x25d,-_0x178263._0x57af27)]||typeof _0x18abf5[_0x49bcb4(0xa9,0x27d,0x1df,_0x178263._0x9daa52)]!=='string')throw new ToolExecutionError(_0x49bcb4(_0x178263._0x2d5987,0x20a,_0x178263._0x1c0213,0x266)+(_0x3bba94+0x1)+_0x49bcb4(0x1fa,0x37d,_0x178263._0x4db719,_0x178263._0xc5fdac));if(_0x18abf5['topic']['length']>0x1e)throw new ToolExecutionError(_0x49bcb4(_0x178263._0x286aed,_0x178263._0x22034a,0x2d7,0x411)+(_0x3bba94+0x1)+_0x5d68e4(_0x178263._0x230642,-_0x178263._0x5b337f,-0x47,0x50)+_0x18abf5[_0x49bcb4(_0x178263._0x5a44a3,_0x178263._0x43dd06,_0x178263._0x440d05,_0x178263._0x3130e1)][_0x5d68e4(-0x281,-_0x178263._0x2a1871,-_0x178263._0x5aa95b,-0x262)]);if(!Array[_0x49bcb4(_0x178263._0x12b233,0x254,0x33b,0x2ef)](_0x18abf5[_0x5d68e4(-0x3a7,-0x2fa,-_0x178263._0x376935,-0x3c5)])||_0x18abf5[_0x5d68e4(-0x25a,-_0x178263._0x19614d,-_0x178263._0x376935,-_0x178263._0x19e8e4)][_0x49bcb4(_0x178263._0x587053,0x2ae,_0x178263._0xe5aeee,0x2bc)]<0x2||_0x18abf5['options'][_0x49bcb4(_0x178263._0x119a42,0x1f8,_0x178263._0x41eb44,0x2e7)]>0x4)throw new ToolExecutionError(_0x49bcb4(_0x178263._0x3a5bf7,0x1c3,0x2d7,_0x178263._0x4c8dea)+(_0x3bba94+0x1)+_0x49bcb4(_0x178263._0x5cd708,_0x178263._0x36e6ec,0x212,_0x178263._0x19614d));for(let _0x4aa2a4=0x0;_0x4aa2a4<_0x18abf5['options']['length'];_0x4aa2a4+=0x1){const _0x2d3934=_0x18abf5[_0x49bcb4(_0x178263._0x30af57,_0x178263._0x8780af,_0x178263._0x5424dd,_0x178263._0x5ec516)][_0x4aa2a4];if(!_0x2d3934[_0x49bcb4(0x3a0,0x422,0x2db,_0x178263._0x334a3c)]||!_0x2d3934['description'])throw new ToolExecutionError(_0x5d68e4(-_0x178263._0x236d0c,-_0x178263._0x1b3147,-0x165,-_0x178263._0x55fc13)+(_0x3bba94+0x1)+_0x49bcb4(_0x178263._0x3e2132,0x42b,0x3c6,_0x178263._0x511f49)+(_0x4aa2a4+0x1)+_0x49bcb4(_0x178263._0x4b8d16,0x1cd,0x256,0x180));}if(typeof _0x18abf5[_0x49bcb4(0x3af,0x3b3,_0x178263._0x2afa1d,0x38b)]!==_0x5d68e4(_0x178263._0x5ba41f,-0x153,-_0x178263._0x4f2482,_0x178263._0x261146))throw new ToolExecutionError('Question\x20'+(_0x3bba94+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x39d105){const _0x50b892={_0x1769bb:0xaf,_0x1e1961:0x6e},_0x172433={_0x5cfe9d:0x3fc,_0x78c792:0xe2},_0xb942f0={_0x5995c4:0x17a,_0x499a1f:0x1b7};function _0x14f06f(_0x370ab6,_0x4a9642,_0x514790,_0x518371){return _0x29b8eb(_0x370ab6-_0xb942f0._0x5995c4,_0x4a9642- -0xf0,_0x514790-_0xb942f0._0x499a1f,_0x370ab6);}function _0xde131a(_0x10de2a,_0x64ad75,_0x26b487,_0x286986){return _0x5a3b3d(_0x64ad75,_0x64ad75-0x182,_0x286986- -_0x172433._0x5cfe9d,_0x286986-_0x172433._0x78c792);}return _0x39d105[_0xde131a(-0x193,-0xf5,_0x50b892._0x1769bb,-_0x50b892._0x1e1961)]['map']((_0x23e618,_0x1457d3)=>({'id':'q'+_0x1457d3,'question':_0x23e618['question'],'topic':_0x23e618[_0x14f06f(0x2f4,0x341,0x3f8,0x48f)],'options':_0x23e618[_0xde131a(-0x224,-0x2e1,-0x18b,-0x281)],'multiSelect':_0x23e618['multiSelect']}));}function createResult(_0x258abf,_0x264837,_0x22f05b){const _0x50f23b={_0x297ed4:0x482,_0x5f13c3:0x77c},_0x4846f2={_0x124b2f:0x61},_0x579445={_0x3db885:0x6b,_0x32601f:0x8d},_0x1c0d1f={'questionId':_0x258abf,'questionCount':_0x264837,'answers':_0x22f05b};function _0x526090(_0x19d72d,_0x3b0a59,_0x43e9ca,_0x4818ae){return _0x29b8eb(_0x19d72d-0x1b3,_0x43e9ca-_0x579445._0x3db885,_0x43e9ca-_0x579445._0x32601f,_0x19d72d);}function _0x5720b9(_0x158d04,_0x2b2c06,_0x838ed9,_0x4d1c83){return _0x5a3b3d(_0x2b2c06,_0x2b2c06-0x61,_0x158d04-0x1aa,_0x4d1c83-_0x4846f2._0x124b2f);}return createToolOutput(_0x526090(0x43d,0x3bc,_0x50f23b._0x297ed4,0x55e)+JSON[_0x526090(0x54e,_0x50f23b._0x5f13c3,0x654,0x72a)](_0x22f05b,null,0x2),_0x1c0d1f);}function createAskUserTool(){const _0x246350={_0x178030:0x1e3,_0x1edcec:0xfa,_0x335877:0x1ae,_0x4bf917:0x28c,_0x343a3a:0x193,_0x555e2e:0x173,_0x2ee2c7:0x18e,_0x108456:0x249,_0x5d1cf3:0x24c,_0x342aa1:0x18c,_0x48e61a:0x33d,_0x36bf93:0x281,_0xe0fce9:0x192,_0x58c84c:0x20c,_0x14e2e1:0x221,_0x5e3b99:0x329,_0x3455b6:0x267,_0x25e9c4:0xe,_0x3e4d3b:0x34,_0x709f1d:0x13d,_0x4dd43d:0x57,_0x59ce94:0x26a},_0x538607={_0x4771fe:0x573,_0x1483f3:0x5a6,_0x3c7782:0x4d1,_0x2972f3:0x350,_0x32bc92:0x330,_0x5edf83:0x3e2,_0x458ffb:0x42f,_0x194993:0x292,_0x53db2b:0x27a,_0x232f83:0x2be,_0x7aaac7:0x3ee,_0x13c949:0x440,_0x574d60:0x4bb,_0x4e2984:0x25c,_0x273922:0x10d,_0x1a9f47:0x30d,_0xd6e315:0x528,_0x2af310:0x3f1,_0x3627b8:0x48d,_0x244990:0x596,_0xf75af4:0x60f,_0x2f248f:0x61f,_0x9a79b7:0x1b7},_0x102ae5={_0x58d6a0:0x99,_0x58a5b4:0x146,_0xa8741f:0x3c4},_0xc99b10={_0xd3235a:0x1d3,_0xf5795:0xce},_0x291859={_0x4b9656:0x1ab,_0x42f01b:0x3c4};function _0x17acba(_0x4e9c17,_0x6f54d3,_0x3ac992,_0xf0c03d){return _0x29b8eb(_0x4e9c17-_0x291859._0x4b9656,_0xf0c03d- -_0x291859._0x42f01b,_0x3ac992-0xa2,_0x4e9c17);}function _0x4fa6ae(_0xbff1bb,_0x4e3fd0,_0x10f809,_0x1dd729){return _0x29b8eb(_0xbff1bb-_0xc99b10._0xd3235a,_0x1dd729- -0x39b,_0x10f809-_0xc99b10._0xf5795,_0x10f809);}return defineTool({'name':_0x4fa6ae(0xea,_0x246350._0x178030,_0x246350._0x1edcec,0x201),'description':_0x17acba(0x181,_0x246350._0x335877,0x23e,_0x246350._0x4bf917),'inputSchema':{'type':'object','properties':{'questions':{'type':_0x4fa6ae(_0x246350._0x343a3a,_0x246350._0x555e2e,_0x246350._0x2ee2c7,0x1b5),'items':{'type':'object','properties':{'question':{'type':_0x4fa6ae(0x162,_0x246350._0x108456,0x18a,_0x246350._0x5d1cf3)},'topic':{'type':_0x4fa6ae(_0x246350._0x342aa1,0x249,_0x246350._0x48e61a,_0x246350._0x5d1cf3)},'options':{'type':'array','items':{'type':'object','properties':{'label':{'type':_0x4fa6ae(0x349,0x2d4,0x26a,0x24c)},'description':{'type':'string'}},'required':[_0x4fa6ae(_0x246350._0x36bf93,0xa8,0x156,_0x246350._0xe0fce9),_0x4fa6ae(_0x246350._0x58c84c,0x2c8,_0x246350._0x14e2e1,0x23e)]}},'multiSelect':{'type':_0x4fa6ae(0x3ab,_0x246350._0x5e3b99,0x28b,_0x246350._0x3455b6)}},'required':['question','topic',_0x4fa6ae(_0x246350._0x25e9c4,-_0x246350._0x3e4d3b,_0x246350._0x709f1d,_0x246350._0x4dd43d),'multiSelect']}},'answers':{'type':'object','properties':{}}},'required':[_0x4fa6ae(0x20f,0x2b6,0x3b8,_0x246350._0x59ce94)]},async *'execute'(_0x5c58a6,_0x132a13){const _0x515089=_0x5c58a6;validateInput(_0x515089);function _0x1b113d(_0x5ca3c0,_0x104928,_0x41e539,_0x130057){return _0x4fa6ae(_0x5ca3c0-_0x102ae5._0x58d6a0,_0x104928-_0x102ae5._0x58a5b4,_0x41e539,_0x130057-_0x102ae5._0xa8741f);}function _0x15a325(_0x47de89,_0x2ae474,_0x57ed08,_0x366777){return _0x4fa6ae(_0x47de89-0x116,_0x2ae474-0x4b,_0x366777,_0x57ed08-0x189);}const _0x3c007e=_0x132a13[_0x1b113d(_0x538607._0x4771fe,0x623,_0x538607._0x1483f3,0x661)]??createQuestionId();if(_0x515089[_0x1b113d(0x33f,_0x538607._0x3c7782,_0x538607._0x2972f3,0x479)]&&Object[_0x15a325(0x2b2,_0x538607._0x32bc92,_0x538607._0x5edf83,_0x538607._0x458ffb)](_0x515089['answers'])[_0x15a325(_0x538607._0x194993,_0x538607._0x53db2b,0x2b0,_0x538607._0x232f83)]>0x0)return createResult(_0x3c007e,_0x515089[_0x15a325(_0x538607._0x7aaac7,_0x538607._0x13c949,0x3f3,_0x538607._0x574d60)]['length'],_0x515089[_0x15a325(_0x538607._0x4e2984,_0x538607._0x273922,0x23e,_0x538607._0x1a9f47)]);if(!_0x132a13['askUser'])throw new ToolExecutionError(_0x1b113d(_0x538607._0xd6e315,_0x538607._0x2af310,_0x538607._0x3627b8,0x471));const _0x120400=buildQuestions(_0x515089),_0x32989a=await _0x132a13[_0x1b113d(_0x538607._0x244990,_0x538607._0xf75af4,0x60d,_0x538607._0x2f248f)]({'questionId':_0x3c007e,'questions':_0x120400});yield createResult(_0x3c007e,_0x515089['questions'][_0x15a325(0x3d5,_0x538607._0x9a79b7,0x2b0,0x3b9)],_0x32989a);}});}import{spawn as _0x18e9d3}from'child_process';import{statSync}from'fs';import*as _0x574e20 from'os';import*as _0x9375b9 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x329d4c from'path';function isPathInside(_0x388127,_0x2c3913){const _0x150ac5={_0x1543a3:0xb7,_0x3ae5ca:0xbe,_0x1125e2:0x93,_0x264a7e:0x49,_0x14ef38:0xa0,_0x2fd0c2:0xde,_0x5af659:0x7f,_0x43410c:0x115},_0x20f894={_0x59ec0e:0x325};function _0x28a9a7(_0x1d294e,_0x5c4c92,_0x4dc2ae,_0x106f11){return _0x5a3b3d(_0x1d294e,_0x5c4c92-0x13,_0x106f11-_0x20f894._0x59ec0e,_0x106f11-0x106);}function _0x20c4e0(_0x38515e,_0x3fd7f0,_0x21593a,_0x32bfd9){return _0x5a3b3d(_0x32bfd9,_0x3fd7f0-0x1bd,_0x38515e- -0x320,_0x32bfd9-0x159);}const _0x4705b5=_0x329d4c[_0x20c4e0(-_0x150ac5._0x1543a3,0x7d,-_0x150ac5._0x3ae5ca,-0x139)](_0x388127),_0x2038fb=_0x329d4c['relative'](_0x4705b5,_0x2c3913);return _0x2038fb===''||!_0x2038fb[_0x20c4e0(-_0x150ac5._0x1125e2,-_0x150ac5._0x264a7e,-_0x150ac5._0x14ef38,-_0x150ac5._0x2fd0c2)]('..')&&!_0x329d4c[_0x20c4e0(-_0x150ac5._0x5af659,0x5a,-_0x150ac5._0x43410c,0x5f)](_0x2038fb);}function resolveWorkspacePath(_0x6cbe48,_0x9b21fc){return resolveAllowedPath(_0x6cbe48,[],_0x9b21fc);}function resolveAllowedPath(_0x37a5ae,_0x2593df,_0x570645){const _0x169ac7={_0x396ced:0x5cd,_0x70bab5:0x66d,_0x5388e2:0x6c9,_0x56a17f:0x3c7,_0x449d05:0x445,_0x4d5d45:0x6a1,_0xd73412:0x5b0,_0x4a25b1:0x50b,_0x2ec603:0x50a,_0x2f082d:0x3aa,_0x35f65a:0x3cc,_0x1aaed9:0x2be},_0x1a1414={_0x392eb2:0x62,_0x18d3cb:0x19f},_0x1af43f={_0xa05872:0xa4},_0x210b9e=_0x329d4c[_0x16b98a(_0x169ac7._0x396ced,0x6fc,_0x169ac7._0x70bab5,_0x169ac7._0x5388e2)](_0x37a5ae),_0x309c51=_0x329d4c[_0x57d4d8(0x561,_0x169ac7._0x56a17f,0x477,_0x169ac7._0x449d05)](_0x210b9e,_0x570645),_0x4d956a=[_0x210b9e,..._0x2593df[_0x57d4d8(0x67a,0x484,_0x169ac7._0x4d5d45,_0x169ac7._0xd73412)](_0xaa142b=>_0x329d4c['resolve'](_0xaa142b))];function _0x57d4d8(_0x254b60,_0x38bc13,_0x720141,_0x310b61){return _0x29b8eb(_0x254b60-0x39,_0x310b61- -0x9b,_0x720141-_0x1af43f._0xa05872,_0x720141);}if(_0x4d956a[_0x57d4d8(_0x169ac7._0x4a25b1,_0x169ac7._0x2ec603,_0x169ac7._0x2f082d,0x40a)](_0xe8b6c9=>isPathInside(_0xe8b6c9,_0x309c51)))return _0x309c51;function _0x16b98a(_0x1b32b0,_0x443451,_0x173142,_0x5788ed){return _0x5a3b3d(_0x5788ed,_0x443451-_0x1a1414._0x392eb2,_0x1b32b0-0x364,_0x5788ed-_0x1a1414._0x18d3cb);}throw new ToolExecutionError(_0x57d4d8(_0x169ac7._0x35f65a,_0x169ac7._0x1aaed9,0x37e,0x40e)+_0x570645,{'path':_0x570645,'rootDir':_0x210b9e,'allowedDirs':_0x4d956a});}async function assertWorkspaceFile(_0x46ba5e){const _0x4983fe={_0x36c259:0x62,_0x54f7c2:0x117},_0x248bd2={_0xcf298f:0x36a},_0x264d35=await stat(_0x46ba5e);function _0x38f48e(_0x5647c3,_0x4c8d8b,_0x53d858,_0x2938a2){return _0x5a3b3d(_0x5647c3,_0x4c8d8b-0x72,_0x53d858- -_0x248bd2._0xcf298f,_0x2938a2-0xa3);}if(!_0x264d35['isFile']())throw new ToolExecutionError(_0x38f48e(-_0x4983fe._0x36c259,-0x76,-0x176,-_0x4983fe._0x54f7c2)+_0x46ba5e,{'path':_0x46ba5e});}function isProbablyBinary(_0x48c075){return _0x48c075['includes'](0x0);}var DEFAULT_DESCRIPTION=_0x5a3b3d(0x19f,0x16b,0x29c,0x25a),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x203e0a){return _0x203e0a instanceof Error;}function shellExists(_0x1fbacc){const _0x567824={_0x469a42:0x41,_0x1cb734:0x56,_0xce7b6d:0xc5,_0x182ef5:0xc6},_0x18b49e={_0x8ee210:0x57a};function _0x1fc9ff(_0x465bc5,_0x20d15a,_0x1b56a0,_0x46b19c){return _0x29b8eb(_0x465bc5-0x13,_0x465bc5- -_0x18b49e._0x8ee210,_0x1b56a0-0x1a,_0x20d15a);}try{const _0x2e037b=statSync(_0x1fbacc);return _0x2e037b['isFile']()&&(_0x2e037b[_0x1fc9ff(-_0x567824._0x469a42,-_0x567824._0x1cb734,_0x567824._0xce7b6d,_0x567824._0x182ef5)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x20fe12){const _0x396454={_0xb35fd1:0x163,_0x532ef1:0x22c,_0x1231c8:0x78,_0x34cfa8:0x12c,_0x3b22d8:0x40,_0x419d6a:0x53,_0x4f94a4:0x1a2,_0x5e53eb:0x1ba,_0x247ba4:0x26e,_0x541781:0x10f,_0x3a4a05:0x212,_0x15f2a2:0x1d0,_0x30eea:0x167,_0x51e375:0x7a,_0x42a0f6:0x1eb,_0x1eb3fc:0xb7,_0x40f948:0x51,_0x1d4d22:0x73,_0x5d01b8:0x38,_0x144471:0x7e},_0x32dc23={_0x4298b2:0x150,_0x9452da:0x1e0},_0x3e84f5={_0x1d7a0a:0x1d0};if(_0x20fe12)return _0x20fe12;if(_0x574e20[_0x185a18(-_0x396454._0xb35fd1,-_0x396454._0x532ef1,-0x36,-0x1ac)]()===_0x185a18(-0x48,-_0x396454._0x1231c8,-_0x396454._0x34cfa8,-_0x396454._0x3b22d8))return process[_0x185a18(-_0x396454._0x419d6a,-0x4c,-0x87,-_0x396454._0x4f94a4)]['ComSpec']||'cmd.exe';const _0x2c2db2=[_0x484549(_0x396454._0x5e53eb,0x189,_0x396454._0x247ba4,_0x396454._0x541781),_0x185a18(-0xcc,-_0x396454._0x3a4a05,-_0x396454._0x15f2a2,-_0x396454._0x30eea),'/usr/bin/bash',_0x484549(_0x396454._0x51e375,0x123,_0x396454._0x42a0f6,0xbe)];function _0x484549(_0x5d0845,_0x58ab0d,_0x4b7ced,_0x525287){return _0x29b8eb(_0x5d0845-_0x3e84f5._0x1d7a0a,_0x58ab0d- -0x2fd,_0x4b7ced-0x1b9,_0x5d0845);}for(const _0x2b6dcb of _0x2c2db2){if(shellExists(_0x2b6dcb))return _0x2b6dcb;}function _0x185a18(_0x2a92a0,_0x5f51e5,_0x2e54fc,_0xab4490){return _0x29b8eb(_0x2a92a0-_0x32dc23._0x4298b2,_0x2a92a0- -0x586,_0x2e54fc-_0x32dc23._0x9452da,_0x2e54fc);}const _0x59f0b0=process[_0x185a18(-0x53,-_0x396454._0x1eb3fc,-_0x396454._0x40f948,-0xaf)]['SHELL'];if(_0x59f0b0&&shellExists(_0x59f0b0))return _0x59f0b0;return _0x185a18(-0x100,-_0x396454._0x1d4d22,_0x396454._0x5d01b8,-_0x396454._0x144471);}function buildShellArgs(_0x4f9635,_0x2f09e3){const _0x5368b4={_0x3403b5:0x59f,_0x5cc21c:0x513,_0x45ef1c:0x580,_0x55267d:0x5d0,_0x3bff6f:0x562,_0x32a6a9:0x632,_0x2cfb7c:0x48b,_0xc859e2:0x556,_0x2d27e1:0x60b,_0xc2b1a1:0x52a,_0x3d6133:0x7b},_0x5d5eec={_0x4529a6:0x1d0};function _0x5eace5(_0x1e5b06,_0x3e8b12,_0x3caaa4,_0x4bfed1){return _0x29b8eb(_0x1e5b06-0xa0,_0x1e5b06- -0x4ce,_0x3caaa4-_0x5d5eec._0x4529a6,_0x3caaa4);}function _0x55ad78(_0x4899f9,_0xf24def,_0xcb4cf3,_0x30c24d){return _0x29b8eb(_0x4899f9-0xba,_0x30c24d-0x69,_0xcb4cf3-0x1b7,_0x4899f9);}if(_0x574e20['platform']()==='win32'){const _0x489590=/cmd(\.exe)?$/i[_0x55ad78(_0x5368b4._0x3403b5,_0x5368b4._0x5cc21c,0x4e0,_0x5368b4._0x45ef1c)](_0x2f09e3);return _0x489590?['/d','/s','/c',_0x4f9635]:[_0x55ad78(_0x5368b4._0x55267d,_0x5368b4._0x3bff6f,0x74f,_0x5368b4._0x32a6a9),_0x55ad78(_0x5368b4._0x2cfb7c,_0x5368b4._0xc859e2,_0x5368b4._0x2d27e1,_0x5368b4._0xc2b1a1),_0x5eace5(-0x75,-0x120,-0x8a,-_0x5368b4._0x3d6133),_0x4f9635];}return['-c',_0x4f9635];}function resolveCarriageReturns(_0x2d70c6){const _0x4e8c4e={_0x3ea2e9:0x574,_0x3c6637:0x540,_0x2a9497:0x600,_0x1c14c8:0x23e,_0x18f4da:0x349},_0x547f21={_0x32eaeb:0x6f,_0x4cdf8e:0x27,_0x5283c0:0x56,_0xab9ea4:0x111,_0x2f87a7:0xee,_0x532fc5:0x172},_0x1578e1={_0x3b7d6a:0x1e6},_0x327573={_0x57239f:0x15e,_0x3c6699:0x1b6,_0x306078:0x529},_0x343c9b={_0x1e3512:0x11e};function _0x405f7a(_0x393e0e,_0x41dcc4,_0x29471c,_0x27ae63){return _0x29b8eb(_0x393e0e-0x5b,_0x27ae63- -0x119,_0x29471c-0x191,_0x393e0e);}function _0x3103ed(_0x36272d,_0x37abf1,_0x4e9475,_0x3cd657){return _0x5a3b3d(_0x3cd657,_0x37abf1-_0x343c9b._0x1e3512,_0x4e9475-0x16c,_0x3cd657-0x145);}return _0x2d70c6['split']('\x0a')[_0x3103ed(_0x4e8c4e._0x3ea2e9,0x62a,_0x4e8c4e._0x3c6637,_0x4e8c4e._0x2a9497)](_0x2c6f86=>{function _0x77d653(_0x92e578,_0x472713,_0x369174,_0x50450c){return _0x3103ed(_0x92e578-_0x327573._0x57239f,_0x472713-_0x327573._0x3c6699,_0x472713- -_0x327573._0x306078,_0x92e578);}if(!_0x2c6f86['includes']('\x0d'))return _0x2c6f86;const _0x57fbd1=_0x2c6f86[_0x77d653(-_0x547f21._0x32eaeb,-_0x547f21._0x4cdf8e,-_0x547f21._0x5283c0,_0x547f21._0xab9ea4)]('\x0d');function _0x47f795(_0x4b66aa,_0x427c5d,_0x427cb5,_0x30beef){return _0x3103ed(_0x4b66aa-0xd,_0x427c5d-_0x1578e1._0x3b7d6a,_0x30beef- -0x3a,_0x427c5d);}return _0x57fbd1[_0x57fbd1[_0x77d653(-_0x547f21._0x2f87a7,-_0x547f21._0x532fc5,-0x176,-0xfd)]-0x1]??'';})[_0x3103ed(_0x4e8c4e._0x1c14c8,0x3cd,_0x4e8c4e._0x18f4da,0x202)]('\x0a');}function resolveBackspaces(_0xd145ec){const _0xb63549={_0x45cb4c:0x35d,_0x48a069:0x318,_0x2ebbe7:0x3e0,_0x155740:0x43c,_0x5e2616:0x39a,_0x499a07:0x409},_0x5e4bcc={_0x539c64:0x1d3,_0x21ffc2:0x5ff},_0x8f1491={_0x2af468:0x1db,_0x43e9b0:0x1b7};function _0x2fc736(_0x2394d6,_0x31d14b,_0x51955b,_0x40d90b){return _0x5a3b3d(_0x2394d6,_0x31d14b-_0x8f1491._0x2af468,_0x51955b-_0x8f1491._0x43e9b0,_0x40d90b-0x1af);}function _0x2d00bf(_0x50ce47,_0x51d647,_0x4c4e83,_0x5d9196){return _0x29b8eb(_0x50ce47-_0x5e4bcc._0x539c64,_0x5d9196- -_0x5e4bcc._0x21ffc2,_0x4c4e83-0x1c,_0x51d647);}const _0x36a939=[];for(const _0x899840 of Array[_0x2fc736(0x403,_0xb63549._0x45cb4c,0x369,_0xb63549._0x48a069)](_0xd145ec)){_0x899840==='\x08'?_0x36a939[_0x2fc736(0x575,_0xb63549._0x2ebbe7,0x4be,_0xb63549._0x155740)]():_0x36a939[_0x2fc736(_0xb63549._0x5e2616,0x3f0,_0xb63549._0x499a07,0x547)](_0x899840);}return _0x36a939['join']('');}function stripAnsiAndControls(_0x18c240){const _0x56cf28={_0x6705c2:0x44e,_0x15c67b:0x507,_0x5ec572:0x302,_0x412d08:0x66f,_0x19206d:0x29c,_0x45b10d:0x3e9,_0x301e93:0x5cf,_0x32f91a:0x6e4,_0x6a0b04:0x698,_0x4b2a47:0x299,_0x1c61fc:0x546,_0x641ec5:0x4e2,_0x430b1f:0x44e,_0x49587a:0x347,_0x32d2c9:0x555,_0x26e3aa:0x390,_0x417046:0x576},_0x5410e0={_0x119855:0x21c},_0x5f9e6c={_0x392d82:0x1d9,_0x1a26c4:0x1dc};_0x18c240=resolveCarriageReturns(_0x18c240),_0x18c240=resolveBackspaces(_0x18c240),_0x18c240=stripVTControlCharacters(_0x18c240);function _0x1e9ee7(_0x453638,_0x171266,_0x5d5ce6,_0x3458ce){return _0x29b8eb(_0x453638-_0x5f9e6c._0x392d82,_0x453638- -_0x5f9e6c._0x1a26c4,_0x5d5ce6-0x171,_0x5d5ce6);}const _0x49f750='\x1b',_0x1a5628='\x07';_0x18c240=_0x18c240[_0x1e9ee7(_0x56cf28._0x6705c2,0x447,_0x56cf28._0x15c67b,_0x56cf28._0x5ec572)](new RegExp(';[^'+_0x1a5628+_0x27d23b(0x535,_0x56cf28._0x412d08,0x561,0x4f3)+_0x1a5628,'g'),''),_0x18c240=_0x18c240[_0x1e9ee7(0x44e,0x4f2,0x592,0x50f)](new RegExp(_0x1e9ee7(_0x56cf28._0x19206d,_0x56cf28._0x45b10d,0x26d,0x3ee)+_0x49f750+'\x5c\x5c','g'),''),_0x18c240=_0x18c240[_0x27d23b(_0x56cf28._0x301e93,_0x56cf28._0x32f91a,_0x56cf28._0x6a0b04,0x5ad)](new RegExp(_0x1a5628,'g'),''),_0x18c240=_0x18c240[_0x27d23b(0x5cf,0x539,0x5ed,0x487)](new RegExp(_0x49f750+_0x1e9ee7(0x342,0x445,_0x56cf28._0x4b2a47,0x3a8)+_0x49f750+'\x5c\x5c','g'),''),_0x18c240=_0x18c240['replace'](new RegExp(_0x49f750+_0x27d23b(0x4a4,0x4c6,_0x56cf28._0x1c61fc,_0x56cf28._0x641ec5),'g'),''),_0x18c240=_0x18c240[_0x1e9ee7(_0x56cf28._0x430b1f,_0x56cf28._0x49587a,0x4ce,_0x56cf28._0x32d2c9)](/[\u0080-\u009F]/g,''),_0x18c240=_0x18c240[_0x1e9ee7(0x44e,_0x56cf28._0x26e3aa,_0x56cf28._0x417046,0x43e)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x18c240=_0x18c240['replace'](/[\u23CE\u2424]/g,'');function _0x27d23b(_0x373e7e,_0x42a1ca,_0x55b39e,_0x434dc1){return _0x5a3b3d(_0x434dc1,_0x42a1ca-0x1f1,_0x373e7e-_0x5410e0._0x119855,_0x434dc1-0x129);}return _0x18c240;}function resolveWorkingDirectory(_0x34a75f,_0x1f56b0,_0x33b311){const _0x5b6a9a={_0x9759b8:0x2db,_0x2ed5f7:0x1f9,_0x142bb2:0xc8,_0x1cc48d:0xae,_0x43a7d5:0x43,_0x449bb0:0x157},_0x3e0026={_0x5e9547:0x137,_0x3c0144:0x33f,_0x580a67:0x8d},_0x266da4={_0x50caf6:0x1e3},_0x287a31=resolveAllowedPath(_0x1f56b0,_0x33b311,_0x34a75f??'.');function _0x5c3d47(_0x1f0e70,_0x2feca6,_0x4aff54,_0x100123){return _0x5a3b3d(_0x100123,_0x2feca6-_0x266da4._0x50caf6,_0x1f0e70- -0x3ae,_0x100123-0x11f);}function _0xaaa76b(_0xca84b0,_0x34cbf2,_0x5600f2,_0x2c7051){return _0x29b8eb(_0xca84b0-_0x3e0026._0x5e9547,_0x5600f2- -_0x3e0026._0x3c0144,_0x5600f2-_0x3e0026._0x580a67,_0x2c7051);}try{const _0x1e16fb=statSync(_0x287a31);if(!_0x1e16fb[_0x5c3d47(-0x18f,-0x29d,-_0x5b6a9a._0x9759b8,-_0x5b6a9a._0x2ed5f7)]())throw new ToolExecutionError(_0xaaa76b(_0x5b6a9a._0x142bb2,0x148,0x19e,_0x5b6a9a._0x1cc48d)+_0x287a31,{'cwd':_0x287a31});return _0x287a31;}catch(_0xbd51a){if(_0xbd51a instanceof ToolExecutionError)throw _0xbd51a;throw new ToolExecutionError(_0x5c3d47(-0xc9,_0x5b6a9a._0x43a7d5,-_0x5b6a9a._0x449bb0,-0x34)+_0x287a31,{'cwd':_0x287a31});}}function killProcessGroup(_0x294442,_0x4e8569,_0x5d51e9=_0x29b8eb(0x3fc,0x4d5,0x574,0x566)){const _0x2661ea={_0x4d1752:0x1a5,_0x3b1d06:0xf5,_0x45f599:0x223,_0x2d7103:0x80,_0x116bfd:0x186,_0x5574b2:0x220,_0x308101:0x71,_0x3226d3:0x176,_0x40c777:0x125,_0x44510f:0x1c0,_0xb9f6f8:0x1e7,_0xa71d22:0xb2,_0x180dd4:0x2d,_0x1b2c59:0x1c4,_0x505c53:0x2b8,_0x523b1a:0x2f5,_0x891c31:0x35,_0x580132:0x254,_0x205836:0x2b2},_0x37f7b5={_0x151260:0x37d},_0x224110={_0x418974:0xf6,_0x355f77:0x98,_0x1eaf54:0xa8};function _0x3eed5f(_0x3f8650,_0x3fc6b4,_0x3fee56,_0x39385b){return _0x5a3b3d(_0x3fee56,_0x3fc6b4-_0x224110._0x418974,_0x3f8650-_0x224110._0x355f77,_0x39385b-_0x224110._0x1eaf54);}if(!_0x294442[_0x3eed5f(0x237,0x2fc,_0x2661ea._0x4d1752,0x252)])return;function _0x13d7ee(_0x367b6f,_0x70ae3b,_0x5d7610,_0x105cc3){return _0x29b8eb(_0x367b6f-0x125,_0x367b6f- -_0x37f7b5._0x151260,_0x5d7610-0x14d,_0x70ae3b);}if(_0x4e8569)try{_0x18e9d3(_0x13d7ee(0x164,_0x2661ea._0x3b1d06,_0x2661ea._0x45f599,_0x2661ea._0x2d7103),[_0x13d7ee(0x154,_0x2661ea._0x116bfd,_0x2661ea._0x5574b2,_0x2661ea._0x308101),_0x294442[_0x13d7ee(0x99,_0x2661ea._0x3226d3,_0x2661ea._0x40c777,_0x2661ea._0x44510f)][_0x13d7ee(0xa0,_0x2661ea._0xb9f6f8,-_0x2661ea._0xa71d22,-_0x2661ea._0x180dd4)](),'/T','/F'],{'stdio':_0x13d7ee(_0x2661ea._0x1b2c59,0xbe,_0x2661ea._0x505c53,_0x2661ea._0x523b1a)});return;}catch{_0x294442['kill'](_0x5d51e9);return;}try{process['kill'](-_0x294442[_0x13d7ee(0x99,0x125,0x1eb,-_0x2661ea._0x891c31)],_0x5d51e9);}catch{_0x294442[_0x3eed5f(0x27b,0x296,_0x2661ea._0x580132,_0x2661ea._0x205836)](_0x5d51e9);}}function appendChunk(_0x51bc36,_0x38ebed,_0x1ed1ed,_0x47ad83,_0x5c46d0){const _0x4baaf5={_0x25cf11:0x98,_0x4eacd4:0x21,_0x218918:0x36,_0x5bfbd8:0x163,_0x38feb1:0x54,_0x3b121a:0x99},_0x2c73f1={_0x338f21:0x253,_0x17e6d1:0x18f},_0x2d361a={_0x110db2:0x3c},_0x487693=_0x47ad83?stripAnsiAndControls(_0x1ed1ed):_0x1ed1ed;function _0x30f4dd(_0x529ea7,_0x455118,_0x13b150,_0x41c935){return _0x5a3b3d(_0x41c935,_0x455118-_0x2d361a._0x110db2,_0x13b150- -0x1b3,_0x41c935-0x156);}if(_0x487693[_0x30f4dd(0x63,-0xb2,_0x4baaf5._0x25cf11,-_0x4baaf5._0x4eacd4)]===0x0)return;function _0x58069f(_0x18a5fd,_0xb8bb88,_0x4357db,_0x1d1b2c){return _0x5a3b3d(_0x18a5fd,_0xb8bb88-0xb,_0x4357db- -_0x2c73f1._0x338f21,_0x1d1b2c-_0x2c73f1._0x17e6d1);}_0x51bc36[_0x30f4dd(_0x4baaf5._0x218918,_0x4baaf5._0x5bfbd8,0x9f,-_0x4baaf5._0x38feb1)](_0x487693),_0x38ebed[_0x58069f(-0xcf,-_0x4baaf5._0x3b121a,-0x1,-0x45)](_0x487693),_0x5c46d0();}function createBashTool(_0x2f89ea={}){const _0x4d4595={_0x509c2b:0x583,_0x17fdd8:0x606,_0x5e9c08:0x5f3,_0x4e507f:0x831,_0x379830:0x740,_0x99ac78:0x672,_0x54bc7c:0x77e,_0x4f53dc:0x712,_0x584308:0x46c,_0x1ac066:0x4dc,_0x5ed9a6:0x410,_0x10f4da:0x3b3,_0x3b6a66:0x2b8,_0x54494d:0x1ac,_0x127bbf:0x550,_0x5df6bd:0x70e,_0x1e2d7c:0x754,_0x1e5b32:0x536,_0x87f054:0x694,_0x58e336:0x58b,_0x204f02:0x68a,_0x3a0f57:0x4d7,_0x4d2789:0x506,_0x5b7c4a:0x725,_0x3996a4:0x7a2,_0x54df5b:0x82a,_0x280577:0x6ca},_0x15ba3d={_0x31bc7b:0x495,_0x4a9952:0x6dd,_0x39abdc:0x515,_0x591da8:0x5b3,_0x19f67d:0x258,_0x3a0421:0x5c6,_0x12f184:0x717,_0x7dddb5:0x11f,_0x2c5d0f:0x168,_0x4ccb43:0x138,_0x500fa1:0x509,_0xf6f4f9:0x649,_0x39cea3:0x18e,_0x59205c:0x7b,_0x380c3e:0xd8,_0x3d6c36:0x27,_0x1229bb:0x9,_0x499e81:0xd9,_0x1e8d06:0x137,_0x897db9:0x24c,_0x3ba760:0x165,_0x3a8ca0:0xf6,_0x5690c6:0x54d,_0x9db484:0x4de,_0x70d491:0x4c3,_0x1aaf49:0x463,_0x305fdd:0x632,_0x300ae3:0x53d,_0x437688:0x124,_0x48a920:0x21d,_0x15bc8b:0x125,_0x223947:0x3b6,_0x105361:0x15,_0x48c78a:0xf3,_0x520d69:0x13b,_0x2cdf03:0x3c,_0x447b6:0x1bd,_0x4b256a:0x273,_0x42fcf6:0x181,_0x337c14:0x56d,_0x1d9a7c:0x652,_0x532fdf:0x72,_0x38fafe:0x16c,_0x36a346:0x25a,_0x5256d9:0x36f,_0x1871bb:0x14e,_0x30f555:0x278,_0x4f04d6:0x14f,_0x4163c4:0x19d,_0x3ac084:0x149,_0x383b8b:0x366,_0x2a723d:0x2c,_0x334b37:0x28,_0x5be3be:0x571,_0x5ca04b:0x454,_0x410320:0x60d,_0x1e56f4:0x11f,_0x122bcf:0x22b,_0x1407b6:0x1f,_0x4610de:0x36d,_0x1c40da:0x418,_0x2afec5:0xc6,_0x2c6b5a:0xaf,_0x127164:0x519,_0x504482:0x4c6,_0x349e70:0x414,_0x40a22a:0x40a,_0x1e598c:0x127,_0x205813:0x111,_0x3f279a:0x534,_0xbd29b6:0x407,_0x15bd8b:0x3ec,_0x42a43d:0x517,_0x583aa2:0x41a,_0x37f82e:0x4be,_0x3f843c:0x5de,_0x29c57f:0x502,_0x742ffd:0x606,_0x569c57:0x5b5,_0x54a522:0x65e,_0x5cbb87:0x17e,_0x58414b:0x109,_0x39a56a:0x203,_0x3bc68c:0x746,_0x412a52:0x652,_0x5ae0f8:0x406,_0x4468cf:0x38b,_0x1ded87:0x14d,_0x17e1af:0x15d,_0x1ae4a0:0x17e,_0x1b6de6:0x18f,_0x19a3db:0x140,_0x946120:0x4f0,_0x3d5193:0x665,_0x137aad:0x587},_0x28d67e={_0x1c989e:0x184,_0x595b50:0x10e},_0x5c8c3c={_0x4976db:0x66,_0x280217:0x3f4},_0xe20e87={_0x273d93:0x1ed,_0x520e8b:0x3f8};function _0x5ebd60(_0x5f1ee0,_0x124380,_0x5280ec,_0x13cdb7){return _0x29b8eb(_0x5f1ee0-_0xe20e87._0x273d93,_0x124380- -_0xe20e87._0x520e8b,_0x5280ec-0x1d8,_0x5280ec);}function _0x10ebab(_0x24654c,_0x54a932,_0x28ccdf,_0x50263e){return _0x29b8eb(_0x24654c-0x13c,_0x54a932-0xa3,_0x28ccdf-0x1b1,_0x28ccdf);}const _0x1de56e=_0x9375b9[_0x10ebab(0x473,_0x4d4595._0x509c2b,_0x4d4595._0x17fdd8,_0x4d4595._0x5e9c08)](_0x2f89ea[_0x10ebab(_0x4d4595._0x4e507f,0x715,0x5d6,_0x4d4595._0x379830)]??process[_0x10ebab(0x5a2,_0x4d4595._0x99ac78,_0x4d4595._0x54bc7c,_0x4d4595._0x4f53dc)]()),_0x4bd265=(_0x2f89ea[_0x10ebab(_0x4d4595._0x584308,_0x4d4595._0x1ac066,_0x4d4595._0x5ed9a6,_0x4d4595._0x10f4da)]??[])[_0x5ebd60(_0x4d4595._0x3b6a66,0x253,_0x4d4595._0x54494d,0x337)](_0x162407=>_0x9375b9[_0x5ebd60(0xaa,0xe8,0x1b,0x194)](_0x162407)),_0x5e6838=_0x2f89ea[_0x10ebab(0x579,0x65d,0x5ef,0x604)]??DEFAULT_TIMEOUT_MS,_0x2c6958=_0x2f89ea['stripAnsi']??!![],_0x3ba67d=_0x2f89ea['name']??_0x10ebab(0x751,0x666,_0x4d4595._0x127bbf,_0x4d4595._0x5df6bd);return defineTool({'name':_0x3ba67d,'description':_0x2f89ea[_0x10ebab(_0x4d4595._0x1e2d7c,0x67c,_0x4d4595._0x1e5b32,0x5bb)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':_0x10ebab(_0x4d4595._0x87f054,0x68a,_0x4d4595._0x58e336,0x580)},'cwd':{'type':_0x10ebab(0x6b9,_0x4d4595._0x204f02,0x668,0x64d)},'timeoutMs':{'type':_0x10ebab(0x5df,0x587,_0x4d4595._0x3a0f57,_0x4d4595._0x4d2789)},'ignoreOutput':{'type':_0x10ebab(0x7c2,0x6a5,_0x4d4595._0x5b7c4a,_0x4d4595._0x3996a4)}},'required':[_0x10ebab(0x7aa,0x6f9,_0x4d4595._0x54df5b,_0x4d4595._0x280577)]},async *'execute'(_0x3e69ee,_0x5ef909){const _0x4570fd={_0x39bc4e:0x22d,_0x5b18bb:0x399,_0x57dded:0x437,_0x1b587b:0x475,_0x36711b:0x3f3},_0x2578db={_0x32b6be:0x371},_0x47e1f4={_0x3dd094:0x187},_0x5dabf3={_0x2ab133:0x213},_0x2139f6={_0x3e98e2:0x41a,_0x1a8143:0x391,_0x331a9d:0x4bb},_0x194e2a={_0x227d12:0x34},_0x5a675b={_0x5f0922:0x1af},_0x2ece78={_0x4d35d0:0x68,_0x4a69f3:0x4},_0x410f7d=_0x3e69ee[_0x2d2700(0x6de,0x6e9,0x58c,0x5a8)]??_0x5e6838;function _0x2f8302(_0x272276,_0x239632,_0x5eec3f,_0x5ba595){return _0x5ebd60(_0x272276-_0x2ece78._0x4d35d0,_0x272276- -_0x2ece78._0x4a69f3,_0x5eec3f,_0x5ba595-0x1a3);}if(!Number[_0x2d2700(_0x15ba3d._0x31bc7b,_0x15ba3d._0x4a9952,_0x15ba3d._0x39abdc,_0x15ba3d._0x591da8)](_0x410f7d)||_0x410f7d<0x1)throw new ToolExecutionError(_0x2f8302(0x172,0x221,0x86,_0x15ba3d._0x19f67d),{'command':_0x3e69ee[_0x2d2700(_0x15ba3d._0x3a0421,_0x15ba3d._0x12f184,0x661,0x652)]});throwIfAborted(_0x5ef909[_0x2f8302(_0x15ba3d._0x7dddb5,0x11f,_0x15ba3d._0x2c5d0f,_0x15ba3d._0x4ccb43)]);const _0x34795c=resolveWorkingDirectory(_0x3e69ee[_0x2d2700(0x49f,_0x15ba3d._0x500fa1,_0x15ba3d._0xf6f4f9,0x5cb)],_0x1de56e,_0x4bd265),_0x44abad=_0x3e69ee[_0x2f8302(0x116,_0x15ba3d._0x39cea3,_0x15ba3d._0x59205c,_0x15ba3d._0x380c3e)]??![],_0x5b9253=resolveDefaultShell(_0x2f89ea['shellPath']),_0x4b856a=buildShellArgs(_0x3e69ee['command'],_0x5b9253),_0x23d78e=_0x574e20[_0x2f8302(_0x15ba3d._0x3d6c36,_0x15ba3d._0x1229bb,-0xdd,-0x5e)]()==='win32';let _0x3a2b24;try{_0x3a2b24=_0x18e9d3(_0x5b9253,_0x4b856a,{'cwd':_0x34795c,'env':{...process[_0x2f8302(0x137,0x274,0xb5,_0x15ba3d._0x499e81)],..._0x2f89ea[_0x2f8302(_0x15ba3d._0x1e8d06,_0x15ba3d._0x897db9,0xb9,0x21)]??{}},'stdio':_0x44abad?[_0x2f8302(0x145,_0x15ba3d._0x3ba760,_0x15ba3d._0x3a8ca0,0x226),_0x2d2700(_0x15ba3d._0x5690c6,0x55d,_0x15ba3d._0x9db484,0x53d),_0x2d2700(_0x15ba3d._0x70d491,_0x15ba3d._0x1aaf49,_0x15ba3d._0x305fdd,_0x15ba3d._0x300ae3)]:[_0x2f8302(0x145,_0x15ba3d._0x437688,_0x15ba3d._0x48a920,_0x15ba3d._0x15bc8b),_0x2d2700(0x4ae,_0x15ba3d._0x223947,0x3f8,0x3e3),_0x2f8302(-_0x15ba3d._0x105361,-_0x15ba3d._0x48c78a,-_0x15ba3d._0x520d69,_0x15ba3d._0x2cdf03)],'shell':![],'windowsHide':!![],'detached':!_0x23d78e});}catch(_0x4f4530){if(isErrnoException(_0x4f4530)&&_0x4f4530[_0x2f8302(_0x15ba3d._0x447b6,0x1ba,0x8d,0x24c)]===_0x2f8302(_0x15ba3d._0x4b256a,_0x15ba3d._0x42fcf6,0x181,0x3af))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x5b9253,{'command':_0x3e69ee[_0x2d2700(0x622,0x5ca,_0x15ba3d._0x337c14,_0x15ba3d._0x1d9a7c)],'cwd':_0x34795c,'shellPath':_0x5b9253});throw new ToolExecutionError(_0x4f4530 instanceof Error?_0x4f4530[_0x2f8302(_0x15ba3d._0x532fdf,_0x15ba3d._0x38fafe,0x16a,0x86)]:String(_0x4f4530),{'command':_0x3e69ee[_0x2f8302(_0x15ba3d._0x36a346,_0x15ba3d._0x5256d9,0x23e,_0x15ba3d._0x1871bb)],'cwd':_0x34795c,'shellPath':_0x5b9253});}const _0x5aa5fc=[],_0x8f903=[];function _0x2d2700(_0x406b7b,_0x1effd4,_0x3b11bd,_0x36557){return _0x5ebd60(_0x406b7b-_0x5c8c3c._0x4976db,_0x36557-_0x5c8c3c._0x280217,_0x3b11bd,_0x36557-0x46);}const _0x1e4224=new StringDecoder(_0x2f8302(0x229,_0x15ba3d._0x30f555,_0x15ba3d._0x4f04d6,0x35e)),_0x530816=new StringDecoder(_0x2f8302(0x229,_0x15ba3d._0x4163c4,_0x15ba3d._0x3ac084,_0x15ba3d._0x383b8b));let _0x50f72a,_0x4db9ec=![],_0x36ebf3;const _0x43ba19=()=>{if(!_0x50f72a)return;const _0x1be33c=_0x50f72a;_0x50f72a=void 0x0,_0x1be33c();},_0x1a8e92=async()=>{const _0x3ebd73={_0x524752:0xa4,_0x482ac3:0x139};function _0x41f4ad(_0x5d469d,_0x3c145e,_0x124951,_0x29c632){return _0x2f8302(_0x124951-_0x3ebd73._0x524752,_0x3c145e-_0x3ebd73._0x482ac3,_0x5d469d,_0x29c632-0x16);}if(_0x8f903[_0x41f4ad(0x241,0x17e,0x16a,_0x5a675b._0x5f0922)]>0x0||_0x4db9ec)return;await new Promise(_0x56f40=>{_0x50f72a=_0x56f40;});},_0x1816a4=_0x1ba081=>{function _0x5e87bf(_0x3eec1e,_0x3c1d53,_0x15e41c,_0x4b0498){return _0x2f8302(_0x15e41c- -0x10a,_0x3c1d53-0xcd,_0x3c1d53,_0x4b0498-0x45);}appendChunk(_0x5aa5fc,_0x8f903,_0x1e4224[_0x5e87bf(_0x28d67e._0x1c989e,_0x28d67e._0x595b50,0x7c,0x12d)](_0x1ba081),_0x2c6958,_0x43ba19);},_0x564e82=_0x11411f=>{function _0x43b80c(_0x2e3f0e,_0x4a1ab5,_0x2b406c,_0x343f11){return _0x2f8302(_0x343f11-0x335,_0x4a1ab5-_0x194e2a._0x227d12,_0x4a1ab5,_0x343f11-0x4c);}appendChunk(_0x5aa5fc,_0x8f903,_0x530816[_0x43b80c(_0x2139f6._0x3e98e2,_0x2139f6._0x1a8143,0x606,_0x2139f6._0x331a9d)](_0x11411f),_0x2c6958,_0x43ba19);};_0x3a2b24[_0x2f8302(0x2c,0x79,-_0x15ba3d._0x2a723d,_0x15ba3d._0x334b37)]?.['on']('data',_0x1816a4),_0x3a2b24[_0x2d2700(0x55b,_0x15ba3d._0x5be3be,_0x15ba3d._0x5ca04b,0x4bb)]?.['on'](_0x2d2700(_0x15ba3d._0x410320,0x46e,0x58f,0x587),_0x564e82);let _0x50a3f8=![],_0x20f90e;const _0x1a9a96=addAbortListener(_0x5ef909[_0x2f8302(_0x15ba3d._0x1e56f4,_0x15ba3d._0x122bcf,-_0x15ba3d._0x1407b6,0x1f4)],()=>{const _0x23f3fc={_0x277223:0x110,_0x3d392d:0x20,_0xaf4763:0x17a};_0x36ebf3=toAbortError(_0x5ef909[_0x2f1870(0x2f0,0x11a,0x22f,_0x5dabf3._0x2ab133)]['reason']),_0x4db9ec=!![];function _0x2f1870(_0x234f99,_0x24e918,_0x1a3830,_0x24830f){return _0x2f8302(_0x1a3830-_0x23f3fc._0x277223,_0x24e918-_0x23f3fc._0x3d392d,_0x24e918,_0x24830f-_0x23f3fc._0xaf4763);}_0x43ba19();try{killProcessGroup(_0x3a2b24,_0x23d78e);}catch{}});try{const _0x59d9e2=new Promise((_0x204d22,_0x2e0d20)=>{const _0x333f41={_0x36e955:0x2ea,_0x55c0e:0x158,_0x4ab77c:0x1cf,_0x493a03:0x215,_0x5673db:0x15c},_0x4661ba={_0x189bdd:0x4b6,_0x2a7853:0x489,_0xaca871:0x3e2,_0x3bf818:0x416},_0x18bbca={_0x1aa384:0x2e5,_0x3eeb53:0x24d,_0xfb7e8e:0x6a,_0x2dfef8:0xf9,_0x352eed:0xb9,_0xa0ba9:0xbf,_0x16e18f:0x138,_0x38a973:0x2e1,_0x1b3ab8:0x149},_0x170296={_0x5419c5:0x359};function _0x197894(_0x51f9e4,_0x8ca4f3,_0x32de87,_0xc6d8eb){return _0x2f8302(_0x8ca4f3-0x20,_0x8ca4f3-_0x47e1f4._0x3dd094,_0x32de87,_0xc6d8eb-0xfd);}const _0x2180bc=()=>{_0x20f90e&&(clearTimeout(_0x20f90e),_0x20f90e=void 0x0);_0x3a2b24[_0x42c62e(0x337,_0x18bbca._0x1aa384,0x349,_0x18bbca._0x3eeb53)](_0x39ccca(0x7,_0x18bbca._0xfb7e8e,0xdf,-_0x18bbca._0x2dfef8),_0xd825d5);function _0x39ccca(_0x434a20,_0x426272,_0x48e21f,_0x55cb8e){return _0x25c6(_0x434a20- -_0x170296._0x5419c5,_0x426272);}function _0x42c62e(_0x366231,_0x2df9a2,_0x347c6b,_0x1e1ef8){return _0x25c6(_0x2df9a2-0x45,_0x366231);}_0x3a2b24[_0x39ccca(-_0x18bbca._0x352eed,-0x5,-_0x18bbca._0xa0ba9,-_0x18bbca._0x16e18f)](_0x39ccca(-0x1ee,-0x178,-_0x18bbca._0x38a973,-_0x18bbca._0x1b3ab8),_0x61ab8b);},_0xd825d5=_0x6fbf92=>{_0x4db9ec=!![],_0x43ba19(),_0x2180bc(),_0x2e0d20(_0x36ebf3??_0x6fbf92);},_0x61ab8b=(_0x191431,_0x4f3eda)=>{_0x50a3f8=!![],appendChunk(_0x5aa5fc,_0x8f903,_0x1e4224[_0x2456fa(_0x4661ba._0x189bdd,_0x4661ba._0x2a7853,_0x4661ba._0xaca871,_0x4661ba._0x3bf818)](),_0x2c6958,_0x43ba19),appendChunk(_0x5aa5fc,_0x8f903,_0x530816['end'](),_0x2c6958,_0x43ba19),_0x4db9ec=!![],_0x43ba19(),_0x2180bc();function _0x2456fa(_0x3f0879,_0x158ce8,_0x38a6cd,_0x5b514e){return _0x25c6(_0x38a6cd-0x38,_0x158ce8);}if(_0x36ebf3){_0x2e0d20(_0x36ebf3);return;}_0x204d22({'code':_0x191431,'signal':_0x4f3eda});};_0x20f90e=setTimeout(()=>{function _0x2ae288(_0x530379,_0x176e01,_0x5ab726,_0x206a7d){return _0x25c6(_0x206a7d- -0x336,_0x530379);}_0x4db9ec=!![];function _0x2f0a7c(_0x48435b,_0x10d49b,_0x5c7f0b,_0xd79acf){return _0x25c6(_0x5c7f0b- -0x2f7,_0xd79acf);}_0x43ba19(),_0x2180bc();try{killProcessGroup(_0x3a2b24,_0x23d78e);}catch{}_0x2e0d20(new ToolExecutionError(_0x2ae288(-_0x333f41._0x36e955,-0x310,-_0x333f41._0x55c0e,-_0x333f41._0x4ab77c)+_0x410f7d+_0x2f0a7c(-0x171,-_0x333f41._0x493a03,-_0x333f41._0x5673db,-0x105),{'command':_0x3e69ee['command'],'cwd':_0x34795c,'shellPath':_0x5b9253,'timeoutMs':_0x410f7d,'timedOut':!![]}));},_0x410f7d),_0x3a2b24['once'](_0x197894(0x189,_0x4570fd._0x39bc4e,0x1cb,0x11c),_0xd825d5);function _0x407471(_0x1f36eb,_0x5bd7e1,_0x35790b,_0x5a87fa){return _0x2f8302(_0x35790b-_0x2578db._0x32b6be,_0x5bd7e1-0xb2,_0x5bd7e1,_0x5a87fa-0x1e8);}_0x3a2b24[_0x407471(_0x4570fd._0x5b18bb,_0x4570fd._0x57dded,_0x4570fd._0x1b587b,_0x4570fd._0x36711b)]('close',_0x61ab8b);});while(_0x8f903[_0x2d2700(_0x15ba3d._0x4610de,0x419,_0x15ba3d._0x1c40da,0x4be)]>0x0||!_0x4db9ec){if(_0x8f903[_0x2f8302(_0x15ba3d._0x2afec5,0x172,_0x15ba3d._0x2c6b5a,0x163)]===0x0){await _0x1a8e92();continue;}const _0xf0fa12=_0x8f903['shift']();_0xf0fa12!==void 0x0&&(yield _0xf0fa12);}const _0x21551a=await _0x59d9e2,_0xd73f2a=_0x44abad?_0x2d2700(_0x15ba3d._0x127164,_0x15ba3d._0x504482,_0x15ba3d._0x349e70,_0x15ba3d._0x40a22a)+(_0x21551a[_0x2f8302(_0x15ba3d._0x447b6,0x29f,_0x15ba3d._0x1e598c,0x192)]??0x0):_0x5aa5fc[_0x2f8302(0x58,_0x15ba3d._0x205813,0xa7,0x1d)](''),_0x4cde89={'command':_0x3e69ee['command'],'cwd':_0x34795c,'exitCode':_0x21551a[_0x2d2700(0x5af,_0x15ba3d._0x3f279a,0x46a,0x5b5)]??0x0,'signal':_0x21551a[_0x2d2700(_0x15ba3d._0xbd29b6,_0x15ba3d._0x15bd8b,0x5f0,_0x15ba3d._0x42a43d)],'ignoreOutput':_0x44abad,'shellPath':_0x5b9253,'timeoutMs':_0x410f7d};if(_0x21551a['code']!==0x0)throw new ToolExecutionError(_0xd73f2a||'Command\x20exited\x20with\x20code\x20'+(_0x21551a['code']??0x0),_0x4cde89);return createToolOutput(_0xd73f2a,_0x4cde89);}catch(_0x296d9b){while(_0x8f903[_0x2d2700(_0x15ba3d._0x583aa2,0x453,0x3d0,_0x15ba3d._0x37f82e)]>0x0){const _0x2a375e=_0x8f903[_0x2d2700(0x5cf,0x4e4,0x6aa,_0x15ba3d._0x3f843c)]();_0x2a375e!==void 0x0&&(yield _0x2a375e);}if(_0x296d9b instanceof ToolExecutionError)throw _0x296d9b;if(_0x36ebf3)throw _0x36ebf3;if(isErrnoException(_0x296d9b)&&_0x296d9b[_0x2d2700(_0x15ba3d._0x29c57f,0x5da,_0x15ba3d._0x742ffd,_0x15ba3d._0x569c57)]===_0x2d2700(0x65e,_0x15ba3d._0x54a522,0x5b7,0x66b))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x5b9253,{'command':_0x3e69ee[_0x2f8302(0x25a,_0x15ba3d._0x5cbb87,_0x15ba3d._0x58414b,_0x15ba3d._0x39a56a)],'cwd':_0x34795c,'shellPath':_0x5b9253});throw new ToolExecutionError(_0x296d9b instanceof Error?_0x296d9b['message']:String(_0x296d9b),{'command':_0x3e69ee[_0x2d2700(_0x15ba3d._0x3bc68c,0x69d,0x61f,_0x15ba3d._0x412a52)],'cwd':_0x34795c,'shellPath':_0x5b9253});}finally{_0x20f90e&&clearTimeout(_0x20f90e);_0x1a9a96(),_0x3a2b24[_0x2d2700(_0x15ba3d._0x5ae0f8,_0x15ba3d._0x4468cf,0x445,0x424)]?.[_0x2f8302(_0x15ba3d._0x1ded87,_0x15ba3d._0x17e1af,_0x15ba3d._0x1ae4a0,0x26c)](_0x2f8302(_0x15ba3d._0x1b6de6,0x217,0x4b,_0x15ba3d._0x19a3db),_0x1816a4),_0x3a2b24['stderr']?.['off'](_0x2d2700(_0x15ba3d._0x946120,0x6d2,_0x15ba3d._0x3d5193,_0x15ba3d._0x137aad),_0x564e82);if(!_0x50a3f8&&_0x3a2b24[_0x2f8302(0x1a,-0x3,0x28,-0x3b)]&&!_0x3a2b24[_0x2f8302(0x25b,0x2e3,0x1bf,0x2b3)])try{killProcessGroup(_0x3a2b24,_0x23d78e);}catch{}}}});}function createShellExecTool(_0x5573f5={}){return createBashTool(_0x5573f5);}import{readdir,readFile as _0x715d06}from'fs/promises';import{extname,join as _0x522aa5}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x18569d,join,relative as _0x313c2f,resolve as _0x200945}from'path';import{readdir as _0x22fde2,readFile as _0x47e332}from'fs/promises';import{join as _0x3f24b0,relative as _0x491086,sep}from'path';import{delimiter}from'path';import{mkdir as _0x3f5bd7,rm,stat as _0x303dd5,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x4cf726}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x1be535,rename,writeFile as _0x4de3be}from'fs/promises';import{homedir as _0x2a9a7c}from'os';import{dirname as _0x238b15,isAbsolute as _0x43c54c,join as _0x55cd4c,resolve as _0x3fbb96}from'path';import{parse as _0x548eb7,stringify as _0x37904d}from'yaml';import{cp,mkdir as _0x1a52f8,readFile as _0xa22781,rm as _0x3dad43,writeFile as _0x88400a}from'fs/promises';import{homedir}from'os';import{join as _0x324ac8}from'path';import{parse as _0x5c8b55,stringify as _0x1b55a5}from'yaml';import{z}from'zod';import{readdir as _0x40184f,readFile as _0x4168c7}from'fs/promises';import{join as _0x47f8cc}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x10d1b6){const _0x211893={_0x1febf9:0x71,_0x15820b:0x151,_0x20de7b:0xb8,_0x12a9dd:0xac,_0x3c2204:0x42,_0x2f89e4:0x118,_0x50c9d0:0x35,_0x4b59da:0x80,_0x15f5bf:0x12d,_0x269e38:0xc4},_0x6a65aa={_0xd086ce:0x5f6,_0x496f94:0x4},_0x32b1eb={_0x867977:0x59,_0x51e6fe:0x5da,_0x4418ee:0x1e},_0x44edb6=[];function _0x14c96a(_0x5de8e9,_0x30a3b8,_0x3262e6,_0x5d3ba8){return _0x29b8eb(_0x5de8e9-_0x32b1eb._0x867977,_0x3262e6- -_0x32b1eb._0x51e6fe,_0x3262e6-_0x32b1eb._0x4418ee,_0x5d3ba8);}function _0x44a4d6(_0x22a2da,_0x529a04,_0x3d74a1,_0x577a5d){return _0x29b8eb(_0x22a2da-0x16,_0x529a04- -_0x6a65aa._0xd086ce,_0x3d74a1-_0x6a65aa._0x496f94,_0x3d74a1);}let _0x52d612='',_0x9e9569=0x0;while(_0x9e9569<_0x10d1b6['length']){const _0x5ec496=_0x10d1b6[_0x9e9569];if(_0x5ec496==='\x5c'&&_0x9e9569+0x1<_0x10d1b6[_0x44a4d6(-_0x211893._0x1febf9,-0x134,-_0x211893._0x15820b,-_0x211893._0x20de7b)])_0x52d612+=_0x10d1b6[_0x9e9569+0x1],_0x9e9569+=0x2;else{if(_0x5ec496==='\x22'||_0x5ec496==='\x27'){const _0x4c83c3=_0x5ec496;_0x9e9569++;while(_0x9e9569<_0x10d1b6[_0x14c96a(-_0x211893._0x12a9dd,-_0x211893._0x3c2204,-_0x211893._0x2f89e4,-0x21d)]&&_0x10d1b6[_0x9e9569]!==_0x4c83c3){_0x10d1b6[_0x9e9569]==='\x5c'&&_0x9e9569+0x1<_0x10d1b6['length']?(_0x52d612+=_0x10d1b6[_0x9e9569+0x1],_0x9e9569+=0x2):(_0x52d612+=_0x10d1b6[_0x9e9569],_0x9e9569++);}_0x9e9569++;}else _0x5ec496!==void 0x0&&/\s/[_0x44a4d6(-_0x211893._0x50c9d0,-0xdf,-_0x211893._0x4b59da,0x32)](_0x5ec496)?(_0x52d612&&(_0x44edb6[_0x44a4d6(-0x19e,-_0x211893._0x15f5bf,0x5,-_0x211893._0x269e38)](_0x52d612),_0x52d612=''),_0x9e9569++):(_0x52d612+=_0x5ec496,_0x9e9569++);}}if(_0x52d612)_0x44edb6['push'](_0x52d612);return _0x44edb6;}function renderCommandInstructions(_0x1f9a91){const _0x4e7c0e={_0x514a7d:0x14b,_0x261b7f:0x224,_0x10cfa3:0x65,_0x1dcc57:0x1a,_0x2b2166:0x2e5,_0x3f0a9d:0x1bc,_0x4a5f57:0x7f,_0x49c114:0xad,_0x1f21c6:0x15,_0x2d8839:0x74,_0x410eab:0xff,_0x5b4f7c:0x25b,_0x159fc3:0x211,_0x12684a:0x167,_0x33aa9b:0x278,_0x238638:0x172,_0x2000d8:0x162,_0x557608:0x8e,_0x1bdcfd:0xd3,_0x499b84:0xd4,_0x16f42d:0x2,_0x4205d0:0xc2},_0x526409={_0x38ec0f:0x1e8,_0x33d449:0x1ac},_0x459dcb={_0x11643a:0xcf,_0x370a89:0x16};let _0x1a708f=_0x1f9a91[_0x495f97(-_0x4e7c0e._0x514a7d,-_0x4e7c0e._0x261b7f,-_0x4e7c0e._0x10cfa3,-_0x4e7c0e._0x1dcc57)],_0x1eff77=![];const _0x20a2d0=tokenizeCommandArguments(_0x1f9a91[_0x424456(_0x4e7c0e._0x2b2166,0x308,_0x4e7c0e._0x3f0a9d,0x264)]);function _0x495f97(_0x273275,_0xbb1686,_0x3e91bc,_0x219e17){return _0x5a3b3d(_0x3e91bc,_0xbb1686-_0x459dcb._0x11643a,_0x273275- -0x334,_0x219e17-_0x459dcb._0x370a89);}function _0x424456(_0x1788e4,_0x4954a1,_0x2429c6,_0x2a34f4){return _0x5a3b3d(_0x1788e4,_0x4954a1-_0x526409._0x38ec0f,_0x2429c6- -0x24c,_0x2a34f4-_0x526409._0x33d449);}_0x1a708f=_0x1a708f[_0x495f97(_0x4e7c0e._0x4a5f57,0x1af,-_0x4e7c0e._0x49c114,0x7e)](/\$ARGUMENTS\[(\d+)\]/g,(_0x4e2102,_0x5157c2)=>{return _0x1eff77=!![],_0x20a2d0[Number(_0x5157c2)]??'';}),_0x1a708f=_0x1a708f[_0x495f97(_0x4e7c0e._0x4a5f57,-_0x4e7c0e._0x1f21c6,0x19,0x39)](/\$ARGUMENTS\b/g,()=>{return _0x1eff77=!![],_0x1f9a91['argumentsText'];});if(_0x1f9a91['argumentNames']&&_0x1f9a91['argumentNames'][_0x495f97(-0xe9,-_0x4e7c0e._0x2d8839,-0x90,-0x1aa)]>0x0)for(let _0x2996b2=0x0;_0x2996b2<_0x1f9a91[_0x424456(_0x4e7c0e._0x410eab,0x11e,0x1a8,_0x4e7c0e._0x5b4f7c)]['length'];_0x2996b2++){const _0x4af3a5=_0x1f9a91[_0x424456(0x1b7,0x13f,0x1a8,0x2f4)][_0x2996b2];if(_0x4af3a5){const _0x5b5d95=new RegExp('\x5c$'+_0x4af3a5+'\x5cb','g');_0x1a708f=_0x1a708f['replace'](_0x5b5d95,()=>{return _0x1eff77=!![],_0x20a2d0[_0x2996b2]??'';});}}return _0x1a708f=_0x1a708f[_0x424456(_0x4e7c0e._0x159fc3,0x10f,_0x4e7c0e._0x12684a,_0x4e7c0e._0x33aa9b)](/\$(\d+)\b/g,(_0x452b61,_0x944651)=>{return _0x1eff77=!![],_0x20a2d0[Number(_0x944651)]??'';}),!_0x1eff77&&_0x1f9a91[_0x424456(0x233,_0x4e7c0e._0x238638,0x1bc,0x306)][_0x495f97(-_0x4e7c0e._0x2000d8,-_0x4e7c0e._0x557608,-0x19d,-0x17a)]()&&(_0x1a708f=_0x1a708f+_0x424456(-0x205,-0x7a,-_0x4e7c0e._0x1bdcfd,-0x30)+_0x1f9a91[_0x495f97(_0x4e7c0e._0x499b84,-0x49,_0x4e7c0e._0x16f42d,_0x4e7c0e._0x4205d0)]),_0x1a708f;}var chatModelAuthSchemeSchema=z[_0x5a3b3d(0x83,0x1fb,0x193,0x244)]([_0x5a3b3d(0x283,0x1f6,0x1ef,0x21c),_0x29b8eb(0x465,0x3e3,0x4b2,0x4d3)]),apiKeyAuthSchema=z[_0x5a3b3d(0x33c,0x462,0x310,0x29a)]({'type':z[_0x29b8eb(0x5cc,0x47e,0x476,0x3ee)]('apiKey'),'apiKey':z[_0x5a3b3d(0x39f,0x406,0x370,0x3c0)](),'authScheme':chatModelAuthSchemeSchema[_0x29b8eb(0x5ff,0x4c3,0x567,0x57d)]()})[_0x5a3b3d(0x3ca,0x478,0x3e3,0x4f0)](),oauthAuthSchema=z[_0x5a3b3d(0x445,0x38e,0x310,0x435)]({'type':z['literal'](_0x29b8eb(0x4f4,0x635,0x677,0x5ef)),'access':z['string'](),'refresh':z[_0x5a3b3d(0x49c,0x387,0x370,0x2c3)](),'expires':z[_0x29b8eb(0x40a,0x4e4,0x540,0x3a5)]()[_0x29b8eb(0x3d2,0x4c3,0x3ee,0x436)](),'authScheme':chatModelAuthSchemeSchema[_0x5a3b3d(0x1fc,0x20e,0x24c,0x218)]()})['passthrough'](),authMethodSchema=z[_0x29b8eb(0x56d,0x44f,0x51d,0x56b)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z[_0x5a3b3d(0x286,0x33b,0x370,0x35e)](),'name':z['string']()[_0x5a3b3d(0x26c,0x34f,0x24c,0x341)]()})[_0x29b8eb(0x6e3,0x65a,0x5ef,0x5b0)](),modelConfigSchema=z[_0x5a3b3d(0x312,0x170,0x1d8,0x1a5)]([z['literal'](![]),z[_0x29b8eb(0x513,0x47e,0x562,0x5b8)](!![]),z[_0x29b8eb(0x4dd,0x5e7,0x689,0x70f)](),z[_0x5a3b3d(0x31e,0x303,0x2d9,0x1f3)](z['string']()),z[_0x5a3b3d(0x242,0x1d6,0x2d9,0x3a8)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x5a3b3d(0x206,0x27d,0x193,0x178)]([_0x29b8eb(0x619,0x4cb,0x485,0x38f),'openai-chat-completions',_0x5a3b3d(0x16a,0x2b0,0x187,0x1da),_0x5a3b3d(0x24f,0x40c,0x2fc,0x236)]),providerConfigSchema=z['object']({'apiKey':z[_0x5a3b3d(0x389,0x44e,0x370,0x3ca)]()[_0x5a3b3d(0x1f7,0x1e8,0x24c,0x365)](),'token':z['string']()['optional'](),'defaultModel':z[_0x29b8eb(0x5f1,0x5e7,0x548,0x683)]()[_0x29b8eb(0x481,0x4c3,0x5e1,0x553)](),'smallModel':z['string']()[_0x5a3b3d(0x35f,0x153,0x24c,0x344)](),'currentAuth':z[_0x29b8eb(0x540,0x5e7,0x4fd,0x59e)]()[_0x29b8eb(0x3f1,0x4c3,0x429,0x4b0)](),'auth':z[_0x29b8eb(0x62a,0x550,0x615,0x53a)](authMethodSchema)[_0x5a3b3d(0x1be,0x18b,0x24c,0x1d9)](),'surface':chatModelSurfaceSchema[_0x5a3b3d(0x10f,0x16f,0x24c,0x317)](),'baseUrl':z[_0x5a3b3d(0x2be,0x482,0x370,0x37c)]()['optional'](),'models':modelConfigSchema[_0x29b8eb(0x52e,0x4c3,0x453,0x53b)](),'customHeaders':z['record'](z['string'](),z['string']())[_0x5a3b3d(0x24a,0x399,0x24c,0x19f)]()})[_0x29b8eb(0x615,0x65a,0x747,0x62b)](),mcpServerConfigSchema=z[_0x29b8eb(0x655,0x587,0x599,0x65f)]({'command':z[_0x29b8eb(0x506,0x5e7,0x5e0,0x529)]()[_0x29b8eb(0x3f0,0x4c3,0x4bf,0x405)](),'args':z['array'](z[_0x5a3b3d(0x32d,0x256,0x370,0x460)]())[_0x5a3b3d(0x1b8,0x273,0x24c,0x317)](),'env':z[_0x29b8eb(0x55f,0x4e5,0x5d9,0x3c2)](z[_0x5a3b3d(0x3fa,0x457,0x370,0x29c)](),z[_0x5a3b3d(0x4be,0x3ad,0x370,0x407)]())[_0x5a3b3d(0x21a,0x2e1,0x24c,0x27e)](),'transport':z[_0x29b8eb(0x4e8,0x40a,0x394,0x506)]([_0x29b8eb(0x39a,0x456,0x49d,0x45d),_0x29b8eb(0x413,0x55d,0x626,0x4d1)])[_0x5a3b3d(0x2e4,0x1a7,0x24c,0x11f)](),'url':z[_0x29b8eb(0x52b,0x5e7,0x51d,0x636)]()[_0x29b8eb(0x5ee,0x4c3,0x60e,0x4b3)](),'headers':z[_0x5a3b3d(0x1df,0x15d,0x26e,0x2d6)](z[_0x29b8eb(0x4a3,0x5e7,0x5ac,0x61e)](),z[_0x5a3b3d(0x347,0x3b3,0x370,0x2d8)]())[_0x5a3b3d(0x111,0x1b4,0x24c,0x136)](),'prefix':z[_0x29b8eb(0x521,0x5e7,0x582,0x517)]()[_0x29b8eb(0x470,0x4c3,0x37b,0x462)](),'timeoutMs':z[_0x5a3b3d(0x232,0x297,0x26d,0x18a)]()[_0x29b8eb(0x481,0x4c3,0x5cc,0x5a8)](),'enabled':z[_0x29b8eb(0x6fe,0x602,0x5bc,0x4e6)]()[_0x5a3b3d(0x159,0x29d,0x24c,0x35e)](),'auth':z[_0x5a3b3d(0x243,0x3be,0x310,0x300)]({'type':z[_0x5a3b3d(0x149,0x235,0x193,0xcd)](['none',_0x29b8eb(0x4f4,0x466,0x524,0x458),_0x5a3b3d(0x303,0x42f,0x3be,0x4b6)]),'token':z[_0x29b8eb(0x600,0x5e7,0x64f,0x4af)]()[_0x29b8eb(0x533,0x4c3,0x42f,0x607)](),'oauth':z[_0x5a3b3d(0x374,0x234,0x310,0x301)]({'clientId':z[_0x29b8eb(0x4af,0x5e7,0x500,0x71a)]()[_0x5a3b3d(0x1c7,0x36c,0x24c,0x17f)](),'clientMetadataUrl':z[_0x29b8eb(0x735,0x5e7,0x6b1,0x5f2)]()[_0x29b8eb(0x423,0x4c3,0x572,0x49c)](),'authorizationServer':z['string']()[_0x29b8eb(0x483,0x4c3,0x562,0x3bb)](),'scopes':z[_0x29b8eb(0x4df,0x550,0x4d1,0x5ad)](z[_0x29b8eb(0x6af,0x5e7,0x6a2,0x55d)]())[_0x5a3b3d(0xff,0x376,0x24c,0x269)](),'tokenStorageKey':z[_0x5a3b3d(0x41a,0x46f,0x370,0x38a)]()[_0x5a3b3d(0x116,0x26b,0x24c,0x291)]()})[_0x5a3b3d(0x295,0x30c,0x3e3,0x4b0)]()['optional']()})[_0x5a3b3d(0x4ac,0x4dc,0x3e3,0x4a8)]()[_0x5a3b3d(0x109,0x327,0x24c,0x1e9)]()})['passthrough'](),mcpSettingsSchema=z[_0x5a3b3d(0x3c5,0x391,0x310,0x387)]({'servers':z['record'](z[_0x29b8eb(0x5e4,0x5e7,0x609,0x641)](),mcpServerConfigSchema)[_0x5a3b3d(0x16c,0x392,0x24c,0x14a)](),'allowedTools':z[_0x5a3b3d(0x227,0x225,0x26e,0x200)](z['string'](),z[_0x29b8eb(0x5c0,0x4e5,0x5dc,0x478)](z['string'](),z[_0x5a3b3d(0x305,0x28d,0x38b,0x31d)]()))[_0x5a3b3d(0x177,0x35b,0x24c,0x38f)](),'defaultTimeoutMs':z['number']()['optional']()})['passthrough'](),skillsSettingsSchema=z[_0x5a3b3d(0x268,0x3ce,0x310,0x426)]({'enabled':z[_0x29b8eb(0x4cd,0x602,0x5bc,0x670)]()[_0x29b8eb(0x431,0x4c3,0x55a,0x4d9)](),'includeDefaults':z[_0x29b8eb(0x5d5,0x602,0x5e1,0x515)]()['optional'](),'directories':z[_0x29b8eb(0x5b1,0x550,0x621,0x5b3)](z[_0x29b8eb(0x5c6,0x5e7,0x6c1,0x579)]())[_0x5a3b3d(0x232,0x38d,0x24c,0x1f8)](),'exclude':z['array'](z[_0x5a3b3d(0x270,0x3f3,0x370,0x223)]())[_0x5a3b3d(0x1b6,0x317,0x24c,0x39e)]()})['passthrough'](),commandsSettingsSchema=z[_0x5a3b3d(0x216,0x3ac,0x310,0x3a4)]({'enabled':z[_0x5a3b3d(0x2b8,0x31b,0x38b,0x4b2)]()[_0x5a3b3d(0x2f7,0x292,0x24c,0x2ad)](),'directories':z[_0x29b8eb(0x67b,0x550,0x463,0x50f)](z[_0x5a3b3d(0x2ae,0x468,0x370,0x2a9)]())[_0x29b8eb(0x385,0x4c3,0x4ac,0x5c2)]()})[_0x5a3b3d(0x324,0x2e3,0x3e3,0x3f4)](),agentsSettingsSchema=z['object']({'enabled':z[_0x5a3b3d(0x38c,0x27d,0x38b,0x49c)]()[_0x5a3b3d(0x32e,0x268,0x24c,0x36a)](),'includeDefaults':z[_0x29b8eb(0x4b5,0x602,0x5a0,0x4bc)]()[_0x5a3b3d(0x1b6,0x1a8,0x24c,0x2e3)](),'directories':z[_0x5a3b3d(0x1ea,0x190,0x2d9,0x386)](z[_0x5a3b3d(0x2f8,0x2cf,0x370,0x3a0)]())[_0x5a3b3d(0x365,0x182,0x24c,0x286)]()})[_0x29b8eb(0x61a,0x65a,0x691,0x6bd)](),uiThemeSettingsSchema=z[_0x5a3b3d(0x416,0x2fd,0x310,0x460)]({'mode':z[_0x5a3b3d(0x13b,0xb6,0x193,0x22d)](['auto',_0x29b8eb(0x4f2,0x479,0x4c7,0x3bd),_0x5a3b3d(0x313,0x277,0x3a9,0x456)])['optional'](),'colorLevel':z[_0x5a3b3d(0xb2,0xd3,0x193,0x2c3)]([_0x29b8eb(0x40d,0x4dc,0x46d,0x489),_0x29b8eb(0x468,0x531,0x502,0x618),_0x5a3b3d(0x45f,0x3af,0x3d5,0x28f),_0x5a3b3d(0x11b,0x23a,0x258,0x18b),'truecolor'])[_0x29b8eb(0x56c,0x4c3,0x577,0x428)](),'backgrounds':z[_0x29b8eb(0x4f6,0x40a,0x447,0x47d)]([_0x29b8eb(0x5ed,0x4dc,0x5ed,0x44a),'on',_0x29b8eb(0x4b7,0x549,0x4ec,0x3ff)])['optional'](),'messageStyle':z[_0x5a3b3d(0xa9,0xa8,0x193,0x18b)](['plain','boxed'])[_0x29b8eb(0x591,0x4c3,0x380,0x503)]()})[_0x29b8eb(0x796,0x65a,0x670,0x5f0)](),statuslineSegmentSchema=z[_0x5a3b3d(0x252,0x109,0x193,0x1e3)]([_0x5a3b3d(0x2e9,0x1f2,0x1e1,0xbb),'session',_0x5a3b3d(0x216,0x335,0x363,0x45b),_0x5a3b3d(0x1c7,0x2fa,0x292,0x26c),_0x5a3b3d(0x3a0,0x25e,0x2ac,0x349),'context','cached','requests',_0x5a3b3d(0x462,0x2f0,0x34b,0x2c6),_0x5a3b3d(0x339,0x31c,0x23f,0x2e8),_0x5a3b3d(0x292,0x2ce,0x2bf,0x1a4),_0x5a3b3d(0x211,0x412,0x2da,0x2ea),_0x29b8eb(0x4fc,0x5a7,0x649,0x4df),_0x29b8eb(0x45e,0x52b,0x528,0x443),_0x5a3b3d(0x43b,0x50c,0x402,0x3e8)]),statuslineItemSchema=z[_0x5a3b3d(0x25d,0x2be,0x1d8,0xb3)]([statuslineSegmentSchema,z['literal']('|')]),statuslineRowSchema=z['array'](statuslineItemSchema),statuslineConfigSchema=z[_0x29b8eb(0x64f,0x587,0x58e,0x4a6)]({'rows':z[_0x5a3b3d(0x2d9,0x27b,0x2fd,0x243)]([statuslineRowSchema,statuslineRowSchema])[_0x29b8eb(0x5fe,0x4c3,0x3f1,0x400)]()})[_0x5a3b3d(0x531,0x3ee,0x3e3,0x4ca)](),memorySettingsSchema=z[_0x29b8eb(0x647,0x587,0x4db,0x500)]({'version':z[_0x5a3b3d(0x1f0,0x24f,0x207,0x318)](0x2)['optional'](),'retrieval':z['object']({'engine':z[_0x5a3b3d(0x1a7,0x158,0x207,0x18e)](_0x29b8eb(0x407,0x472,0x471,0x50a))[_0x5a3b3d(0x117,0x2c3,0x24c,0x389)](),'candidateLimit':z[_0x29b8eb(0x59b,0x4e4,0x4c9,0x5f1)]()['optional'](),'activeCandidateLimit':z[_0x29b8eb(0x43f,0x4e4,0x3ae,0x4bd)]()[_0x5a3b3d(0x12c,0x182,0x24c,0x302)](),'activeEnabled':z[_0x5a3b3d(0x2c8,0x46f,0x38b,0x24b)]()[_0x29b8eb(0x60d,0x4c3,0x4ff,0x385)](),'maxQueriesPerTurn':z['number']()[_0x29b8eb(0x4f4,0x4c3,0x5a0,0x3a7)](),'coreInjectTokenBudget':z['number']()[_0x29b8eb(0x4d5,0x4c3,0x467,0x4a9)](),'injectTokenBudget':z[_0x29b8eb(0x4c5,0x4e4,0x3e2,0x619)]()[_0x5a3b3d(0x321,0x194,0x24c,0x1e1)](),'minScore':z[_0x29b8eb(0x5fe,0x4e4,0x5f5,0x572)]()[_0x29b8eb(0x5e0,0x4c3,0x466,0x511)](),'freshnessHalfLifeDays':z['number']()[_0x5a3b3d(0x103,0x2c8,0x24c,0x28a)]()})['passthrough']()['optional'](),'extraction':z[_0x5a3b3d(0x363,0x20f,0x310,0x3ac)]({'enabled':z[_0x5a3b3d(0x34d,0x2ce,0x38b,0x3ed)]()[_0x5a3b3d(0x16e,0x228,0x24c,0x22f)](),'provider':z[_0x5a3b3d(0x484,0x426,0x370,0x43b)]()[_0x5a3b3d(0x185,0x151,0x24c,0x127)](),'model':z[_0x5a3b3d(0x426,0x382,0x370,0x35e)]()[_0x5a3b3d(0x368,0x25a,0x24c,0x247)](),'sensitiveFilter':z[_0x29b8eb(0x650,0x602,0x6b9,0x5f5)]()[_0x5a3b3d(0x15a,0x2ca,0x24c,0x371)]()})[_0x5a3b3d(0x473,0x4ed,0x3e3,0x423)]()['optional'](),'index':z[_0x29b8eb(0x69e,0x587,0x4eb,0x63e)]({'persisted':z['boolean']()[_0x5a3b3d(0x2cb,0x1a6,0x24c,0x28d)](),'flushIntervalMs':z[_0x29b8eb(0x46e,0x4e4,0x3cc,0x612)]()[_0x5a3b3d(0x1a3,0x1b8,0x24c,0x12b)]()})[_0x29b8eb(0x600,0x65a,0x62b,0x52b)]()[_0x29b8eb(0x55c,0x4c3,0x492,0x375)](),'enabled':z[_0x5a3b3d(0x434,0x4d2,0x38b,0x3d8)]()[_0x5a3b3d(0x2fe,0x378,0x24c,0x102)](),'saveTool':z[_0x5a3b3d(0x3f2,0x3da,0x38b,0x48d)]()['optional'](),'model':z[_0x5a3b3d(0x4a3,0x2f7,0x370,0x27f)]()[_0x29b8eb(0x5a3,0x4c3,0x5de,0x439)](),'provider':z[_0x29b8eb(0x5de,0x5e7,0x584,0x6e5)]()[_0x5a3b3d(0x328,0x14f,0x24c,0x36f)](),'maxInjectionTokens':z[_0x5a3b3d(0x3ad,0x190,0x26d,0x398)]()[_0x5a3b3d(0x1d9,0x2ca,0x24c,0x295)](),'backgroundExtraction':z['boolean']()[_0x29b8eb(0x512,0x4c3,0x534,0x608)]()})[_0x29b8eb(0x793,0x65a,0x6b8,0x59a)](),recentModelSchema=z['object']({'provider':z[_0x5a3b3d(0x2fe,0x387,0x370,0x412)](),'model':z['string'](),'usedAt':z['number']()})[_0x29b8eb(0x6ee,0x65a,0x5d4,0x5b3)](),lspServerEntrySchema=z['object']({'disabled':z[_0x5a3b3d(0x3a2,0x37f,0x38b,0x2e6)]()[_0x5a3b3d(0x359,0x132,0x24c,0x156)](),'command':z[_0x29b8eb(0x555,0x5e7,0x603,0x691)]()[_0x5a3b3d(0x2b2,0x303,0x24c,0x2db)](),'args':z[_0x5a3b3d(0x367,0x34c,0x2d9,0x3a4)](z[_0x5a3b3d(0x3fa,0x452,0x370,0x2fb)]())['optional'](),'rootMarkers':z['array'](z[_0x5a3b3d(0x3d6,0x23e,0x370,0x433)]())['optional']()})[_0x29b8eb(0x6ee,0x65a,0x5df,0x58c)](),lspConfigSchema=z['object']({'enabled':z[_0x29b8eb(0x720,0x602,0x58b,0x61f)]()[_0x29b8eb(0x56f,0x4c3,0x512,0x614)](),'servers':z[_0x29b8eb(0x4c2,0x4e5,0x434,0x58b)](z['string'](),lspServerEntrySchema)[_0x29b8eb(0x380,0x4c3,0x3e2,0x524)]()})[_0x5a3b3d(0x357,0x385,0x3e3,0x309)](),serverEndpointSchema=z['object']({'url':z[_0x5a3b3d(0x2d0,0x3f3,0x370,0x34c)](),'token':z[_0x5a3b3d(0x369,0x332,0x370,0x2a5)]()[_0x5a3b3d(0x2d6,0x297,0x24c,0x21b)]()})[_0x5a3b3d(0x3b4,0x48c,0x3e3,0x3eb)](),commandHookConfigSchema=z[_0x29b8eb(0x6bd,0x587,0x4ab,0x6d7)]({'type':z[_0x29b8eb(0x3be,0x47e,0x33d,0x3da)]('command'),'command':z['string'](),'timeout':z[_0x29b8eb(0x5e3,0x4e4,0x412,0x46a)]()[_0x29b8eb(0x3dd,0x4c3,0x4ec,0x3cb)]()}),hookMatcherGroupSchema=z[_0x5a3b3d(0x380,0x1be,0x310,0x383)]({'matcher':z[_0x29b8eb(0x6aa,0x5e7,0x54f,0x6b7)]()[_0x5a3b3d(0x332,0x17f,0x24c,0x254)](),'hooks':z['array'](commandHookConfigSchema)}),hooksConfigSchema=z['object']({'PreToolUse':z['array'](hookMatcherGroupSchema)['optional'](),'PostToolUse':z[_0x5a3b3d(0x1f2,0x395,0x2d9,0x2fc)](hookMatcherGroupSchema)['optional'](),'UserPromptSubmit':z[_0x29b8eb(0x448,0x550,0x589,0x496)](hookMatcherGroupSchema)[_0x29b8eb(0x37f,0x4c3,0x55f,0x433)](),'Stop':z[_0x5a3b3d(0x1c4,0x3fc,0x2d9,0x3a3)](hookMatcherGroupSchema)['optional'](),'Notification':z['array'](hookMatcherGroupSchema)[_0x29b8eb(0x534,0x4c3,0x381,0x5ad)](),'SessionStart':z[_0x5a3b3d(0x228,0x394,0x2d9,0x24a)](hookMatcherGroupSchema)[_0x29b8eb(0x4c8,0x4c3,0x53c,0x4c9)](),'SessionEnd':z['array'](hookMatcherGroupSchema)['optional']()}),cliConfigSchema=z[_0x29b8eb(0x5a4,0x587,0x6d9,0x5c9)]({'activeProvider':z['string']()[_0x29b8eb(0x513,0x4c3,0x5fa,0x58b)](),'activeModel':z[_0x29b8eb(0x4eb,0x5e7,0x5b3,0x509)]()['optional'](),'apiKey':z[_0x29b8eb(0x696,0x5e7,0x571,0x58a)]()[_0x29b8eb(0x47a,0x4c3,0x403,0x543)](),'providers':z[_0x5a3b3d(0x2fc,0x35c,0x26e,0x216)](z[_0x5a3b3d(0x369,0x2fc,0x370,0x46d)](),providerConfigSchema)[_0x5a3b3d(0x263,0x35b,0x24c,0x1ba)](),'mcp':mcpSettingsSchema[_0x5a3b3d(0x26e,0x161,0x24c,0x1bb)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x5a3b3d(0x1c8,0x1fd,0x24c,0x346)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x5a3b3d(0x30a,0x1c9,0x26e,0x29a)](z['string'](),z[_0x5a3b3d(0x457,0x4ae,0x38b,0x420)]())[_0x5a3b3d(0x126,0x11e,0x24c,0x1ed)](),'memory':memorySettingsSchema['optional'](),'session':z[_0x29b8eb(0x4f8,0x587,0x5e2,0x6b0)]({'memPersist':z[_0x29b8eb(0x690,0x602,0x6d1,0x6ed)]()[_0x5a3b3d(0x152,0x1e0,0x24c,0x322)](),'persistEventLog':z[_0x29b8eb(0x530,0x602,0x5a8,0x5b8)]()['optional'](),'persistHttpLog':z[_0x29b8eb(0x69e,0x602,0x4ed,0x583)]()[_0x29b8eb(0x602,0x4c3,0x5fa,0x5f1)]()})[_0x5a3b3d(0x34e,0x445,0x3e3,0x2df)]()['optional'](),'requireToolApproval':z['boolean']()[_0x5a3b3d(0x1e3,0x167,0x24c,0x293)](),'thinking':z[_0x5a3b3d(0x2a9,0x12d,0x193,0x201)]([_0x5a3b3d(0x1dc,0x2f7,0x1ea,0x2ec),_0x5a3b3d(0x334,0x3e7,0x34d,0x40b),_0x29b8eb(0x3de,0x4c8,0x57c,0x396),_0x5a3b3d(0x4f7,0x3ac,0x3a8,0x39f)])['optional'](),'streamingChunks':z[_0x29b8eb(0x51c,0x602,0x4ca,0x5e2)]()[_0x5a3b3d(0x1e3,0x206,0x24c,0x182)](),'agentsEnabled':z['record'](z[_0x29b8eb(0x543,0x5e7,0x4b7,0x595)](),z[_0x5a3b3d(0x426,0x44c,0x38b,0x457)]())[_0x29b8eb(0x605,0x4c3,0x504,0x561)](),'recentModels':z[_0x29b8eb(0x474,0x550,0x5ec,0x646)](recentModelSchema)['optional'](),'lsp':lspConfigSchema[_0x5a3b3d(0xfc,0x329,0x24c,0x1ea)](),'servers':z['record'](z[_0x29b8eb(0x4dd,0x5e7,0x5c2,0x6e9)](),serverEndpointSchema)[_0x29b8eb(0x483,0x4c3,0x598,0x548)](),'ui':z['object']({'theme':uiThemeSettingsSchema[_0x5a3b3d(0x254,0x1b2,0x24c,0x2bd)](),'statusline':statuslineConfigSchema[_0x29b8eb(0x379,0x4c3,0x49a,0x556)]()})[_0x5a3b3d(0x492,0x3e4,0x3e3,0x50b)]()[_0x5a3b3d(0x123,0x392,0x24c,0x326)](),'tools':z['record'](z['string'](),z['unknown']())[_0x29b8eb(0x387,0x4c3,0x4ac,0x571)](),'hooks':hooksConfigSchema['optional']()})['passthrough']();function buildDescription(_0x347650){const _0x37e507={_0x540ff7:0xbf,_0x5263c5:0x355,_0x56f9a3:0x26e,_0x539922:0x1b8,_0x219e84:0x26c,_0x2ecd43:0x65,_0xe9a3f3:0xc,_0x18e925:0x197,_0x45f677:0x23d,_0x3ac311:0x281,_0x23b37d:0x2fb,_0x1c0f0d:0x2db},_0x1c9c1d={_0x16bf9b:0x14,_0x5da2d8:0x163};if(_0x347650[_0x466775(-_0x37e507._0x540ff7,-0x1c4,-0x233,-0x2e0)]===0x0)return[_0x466775(-_0x37e507._0x5263c5,-_0x37e507._0x56f9a3,-_0x37e507._0x539922,-_0x37e507._0x219e84),_0x29fbb4(-0x89,-_0x37e507._0x2ecd43,-0x163,-0xf1),_0x29fbb4(0x1,-0x132,-0xee,-_0x37e507._0xe9a3f3)]['join']('\x0a');function _0x29fbb4(_0x558a24,_0x403c4c,_0x44741e,_0x1d39cc){return _0x29b8eb(_0x558a24-_0x1c9c1d._0x16bf9b,_0x403c4c- -0x5af,_0x44741e-_0x1c9c1d._0x5da2d8,_0x1d39cc);}function _0x466775(_0x155cdf,_0x55faee,_0x13bc82,_0x4b3cb1){return _0x29b8eb(_0x155cdf-0x12,_0x55faee- -0x686,_0x13bc82-0x75,_0x13bc82);}const _0x2e625f=[_0x29fbb4(-0xc7,-_0x37e507._0x18e925,-_0x37e507._0x45f677,-_0x37e507._0x3ac311),_0x29fbb4(-0x41,-0x65,-0x120,-0xe0),'Available\x20commands:',..._0x347650['map'](_0x1a3ab4=>_0x1a3ab4[_0x29fbb4(-0x232,-0x1aa,-0x16b,-0x1c4)]?'-\x20'+_0x1a3ab4[_0x466775(-0x3e3,-0x293,-0x235,-0x388)]+'\x20'+_0x1a3ab4[_0x466775(-0x371,-0x281,-0x2e5,-0x3a2)]+':\x20'+_0x1a3ab4[_0x466775(0x2,-0xad,-0x39,0x72)]:'-\x20'+_0x1a3ab4[_0x29fbb4(-0x127,-0x1bc,-0x289,-0x1d0)]+':\x20'+_0x1a3ab4['description'])];return _0x2e625f[_0x466775(-_0x37e507._0x23b37d,-0x232,-_0x37e507._0x1c0f0d,-0x2ac)]('\x0a');}function createInvokeCommandTool(_0x30944c){const _0x8872f5={_0x18d1b6:0x3a3,_0x5a9be7:0x401,_0x297655:0x36c,_0x3be110:0x264,_0x290871:0x198,_0x297896:0x239,_0x38a877:0x33b,_0x5bd35a:0x1eb,_0x4cefb3:0x468,_0x6c7c1:0x265,_0x4e6e4e:0x344,_0x34cdca:0x259,_0x17be26:0x735,_0x1270af:0x6a8,_0x26413f:0xba},_0xf6b596={_0x18b5c6:0x34e,_0x1687e6:0x339,_0xbb914f:0x4c,_0x3ae89e:0x22d,_0x916163:0x1e4,_0x21cefd:0xe3,_0x2215e5:0x5cc,_0x56d52e:0x484,_0x5c952c:0x520,_0x391d66:0x4f3,_0x2c8fed:0x35a,_0x149395:0x311,_0x24893d:0x38c,_0x3e818d:0x286,_0x41882e:0x325,_0x354aaf:0x21c,_0x16a80a:0x3f,_0x2a6df5:0xfd,_0x357c49:0x1d5,_0x119809:0x21d,_0x2cab04:0x479,_0x49335d:0x563,_0x1220d6:0x436,_0xd3dfe6:0x6e,_0x1ad477:0xbb,_0x2d51ba:0x99,_0x4b156e:0x248,_0x4e559d:0xc,_0x548a78:0x368},_0x6f166f={_0x253f33:0xdd},_0x97e228={_0x11db4b:0x24a,_0x1eb094:0x16b},_0x3cdb47={_0x2fe6c1:0x338,_0x103b04:0x9};function _0x1ae86c(_0xb9f8e,_0xb65c0f,_0x5dc614,_0x48c743){return _0x5a3b3d(_0xb9f8e,_0xb65c0f-0x17f,_0x48c743-_0x3cdb47._0x2fe6c1,_0x48c743-_0x3cdb47._0x103b04);}function _0x1afe54(_0x205d41,_0x48e471,_0x556b21,_0x568a44){return _0x29b8eb(_0x205d41-0x103,_0x556b21- -_0x97e228._0x11db4b,_0x556b21-_0x97e228._0x1eb094,_0x568a44);}const _0x48d8fb=new Map(_0x30944c['commands'][_0x1afe54(_0x8872f5._0x18d1b6,0x2e1,_0x8872f5._0x5a9be7,_0x8872f5._0x297655)](_0x23baf8=>[_0x23baf8['id'],_0x23baf8])),_0x44e845=buildDescription(_0x30944c[_0x1afe54(_0x8872f5._0x3be110,_0x8872f5._0x290871,_0x8872f5._0x297896,_0x8872f5._0x38a877)]);return defineTool({'name':'InvokeCommand','description':_0x44e845,'inputSchema':{'type':_0x1afe54(0x346,_0x8872f5._0x5bd35a,0x33d,_0x8872f5._0x4cefb3),'properties':{'name':{'type':_0x1afe54(_0x8872f5._0x6c7c1,_0x8872f5._0x4e6e4e,0x39d,_0x8872f5._0x34cdca)},'args':{'type':_0x1ae86c(0x7ad,_0x8872f5._0x17be26,0x742,_0x8872f5._0x1270af)}},'required':[_0x1afe54(0xdd,0x233,0x1a9,_0x8872f5._0x26413f)]},async *'execute'(_0x1e8a3a){const _0x4e8eab={_0x2d5dc6:0x15b},_0x209c37=_0x48d8fb[_0x19c4c5(_0xf6b596._0x18b5c6,0x393,0x2f2,_0xf6b596._0x1687e6)](_0x1e8a3a[_0x1758b9(_0xf6b596._0xbb914f,0x4e,0xaf,0x176)]);if(!_0x209c37){const _0x5750ab=Array[_0x1758b9(0x1b4,0x84,0x71,0x134)](_0x48d8fb[_0x1758b9(0x1eb,0x24f,_0xf6b596._0x3ae89e,0x32c)]())[_0x1758b9(_0xf6b596._0x916163,0xaf,0x67,_0xf6b596._0x21cefd)](',\x20');throw new ToolExecutionError(_0x19c4c5(_0xf6b596._0x2215e5,_0xf6b596._0x56d52e,_0xf6b596._0x5c952c,_0xf6b596._0x391d66)+_0x1e8a3a[_0x19c4c5(_0xf6b596._0x2c8fed,_0xf6b596._0x149395,_0xf6b596._0x24893d,_0xf6b596._0x3e818d)]+_0x1758b9(_0xf6b596._0x41882e,_0xf6b596._0x354aaf,0x280,0x34a)+_0x5750ab,{'name':_0x1e8a3a[_0x1758b9(-_0xf6b596._0x16a80a,0x4e,-_0xf6b596._0x2a6df5,0x169)]});}const _0x15e05f=await _0x30944c[_0x1758b9(0x15f,_0xf6b596._0x357c49,_0xf6b596._0x119809,0x287)](_0x209c37),_0x391759=_0x1e8a3a[_0x19c4c5(_0xf6b596._0x2cab04,_0xf6b596._0x49335d,0x45a,_0xf6b596._0x1220d6)]??'',_0x9edc43=renderCommandInstructions({'instructions':_0x15e05f[_0x1758b9(_0xf6b596._0xd3dfe6,_0xf6b596._0x1ad477,0x115,0x1bf)],'argumentsText':_0x391759,'argumentNames':_0x15e05f[_0x1758b9(-0x1e,_0xf6b596._0x2d51ba,0x1e5,0x6)]});function _0x19c4c5(_0x2b18c0,_0x5689f5,_0x2c8f3c,_0x36857a){return _0x1afe54(_0x2b18c0-0x162,_0x5689f5-0xc,_0x36857a-_0x6f166f._0x253f33,_0x2c8f3c);}function _0x1758b9(_0x15ffd2,_0x59b88c,_0x45f7f5,_0x1e934c){return _0x1afe54(_0x15ffd2-0x1d5,_0x59b88c-0xa7,_0x59b88c- -_0x4e8eab._0x2d5dc6,_0x15ffd2);}return yield createToolOutput(_0x9edc43,{'id':_0x15e05f['id'],'name':_0x15e05f['name'],'path':_0x209c37[_0x1758b9(0x177,0x11f,_0xf6b596._0x4b156e,-_0xf6b596._0x4e559d)][_0x1758b9(0x20d,0x239,_0xf6b596._0x548a78,0x151)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x410a33,rename as _0xc7ec64,stat as _0x472b91,writeFile as _0x31ad07}from'fs/promises';import*as _0x2481db from'path';function detectEol(_0x56cc07){const _0x4091bb={_0x1dbc59:0x63e,_0x107ca2:0x642,_0x224f92:0x517,_0xa70591:0x2a,_0x4627e1:0x118,_0x1ed182:0x4d9,_0x1cf61c:0x6a5,_0x39fbf4:0x625,_0x165ac8:0x512},_0x4f3a4a={_0x554cc8:0xd8,_0x54df63:0x54},_0x3e112c={_0x24abff:0x0};function _0x35f183(_0x37ccbb,_0x4ff811,_0x2c4d4d,_0x34f5f9){return _0x29b8eb(_0x37ccbb-0x8f,_0x2c4d4d-_0x3e112c._0x24abff,_0x2c4d4d-0x4b,_0x34f5f9);}function _0xe6f247(_0x57573c,_0x32614e,_0x73d4ee,_0x52c822){return _0x29b8eb(_0x57573c-_0x4f3a4a._0x554cc8,_0x57573c- -0x3f3,_0x73d4ee-_0x4f3a4a._0x54df63,_0x73d4ee);}return/\r\n/[_0x35f183(_0x4091bb._0x1dbc59,_0x4091bb._0x107ca2,_0x4091bb._0x224f92,0x473)](_0x56cc07[_0xe6f247(_0x4091bb._0xa70591,0xd8,0x24,_0x4091bb._0x4627e1)](_0x35f183(_0x4091bb._0x1ed182,_0x4091bb._0x1cf61c,_0x4091bb._0x39fbf4,_0x4091bb._0x165ac8)))?'crlf':'lf';}function normalizeToLf(_0x28e374){const _0x1dec4f={_0x332341:0x4ea,_0x28255f:0x5b5,_0x4c95f2:0x46d},_0x2bdaa7={_0x4913a1:0x130,_0x200369:0x140};function _0x167a9f(_0x1ddbbc,_0x2aabdd,_0x4369b9,_0x384d80){return _0x29b8eb(_0x1ddbbc-_0x2bdaa7._0x4913a1,_0x1ddbbc- -_0x2bdaa7._0x200369,_0x4369b9-0x1db,_0x4369b9);}return _0x28e374[_0x167a9f(_0x1dec4f._0x332341,_0x1dec4f._0x28255f,_0x1dec4f._0x4c95f2,0x3e8)](/\r\n/g,'\x0a');}function convertEol(_0x2b6763,_0x11014a){const _0x438d38={_0x4c1b7c:0x1d5,_0x2a5828:0x1f5},_0xdfaa0a={_0x34655e:0x455,_0x3b42fe:0x1ee};function _0x193737(_0x393f67,_0x1068ac,_0x39cda8,_0x1e519d){return _0x29b8eb(_0x393f67-0x1c0,_0x1068ac- -_0xdfaa0a._0x34655e,_0x39cda8-_0xdfaa0a._0x3b42fe,_0x393f67);}return _0x11014a==='crlf'?_0x2b6763[_0x193737(0x29d,_0x438d38._0x4c1b7c,0x22c,_0x438d38._0x2a5828)](/\n/g,'\x0d\x0a'):_0x2b6763;}async function atomicWrite(_0x10ac33,_0x457774){const _0x1c5d69={_0x6864ed:0x53c,_0x460e18:0x5f6,_0xd80c8b:0x614,_0x2309cd:0x6b5,_0x35ec58:0x452,_0x24f8de:0x406,_0x2a013c:0x3ee,_0x23de1c:0x2d6,_0x4c9c16:0x187,_0x2442e5:0x13d},_0x112b80={_0x1c000d:0x1cb,_0x33c4d7:0x5f6},_0x1d73cf={_0x17d24b:0x157},_0x4986c1=_0x2481db['dirname'](_0x10ac33);function _0x8457dc(_0xf532b8,_0x1adbae,_0xa12030,_0x7b4093){return _0x29b8eb(_0xf532b8-_0x1d73cf._0x17d24b,_0x1adbae- -0x2f,_0xa12030-0x1d1,_0x7b4093);}const _0xee9493=_0x2481db[_0x8457dc(_0x1c5d69._0x6864ed,0x425,0x400,0x3ba)](_0x4986c1,_0x8457dc(_0x1c5d69._0x460e18,0x5a6,0x45d,0x512)+_0x2481db[_0x8457dc(0x632,_0x1c5d69._0xd80c8b,_0x1c5d69._0x2309cd,0x681)](_0x10ac33)+'.'+Date[_0x8457dc(0x3eb,_0x1c5d69._0x35ec58,_0x1c5d69._0x24f8de,0x3d6)]()+'.'+Math['random']()[_0x8457dc(0x51f,_0x1c5d69._0x2a013c,_0x1c5d69._0x23de1c,0x427)](0x24)[_0x51772c(-0x226,-0xc9,-_0x1c5d69._0x4c9c16,-_0x1c5d69._0x2442e5)](0x2));function _0x51772c(_0x1a07c5,_0x5b3f40,_0x47da12,_0x1ba8f2){return _0x29b8eb(_0x1a07c5-_0x112b80._0x1c000d,_0x1ba8f2- -_0x112b80._0x33c4d7,_0x47da12-0x22,_0x47da12);}await _0x31ad07(_0xee9493,_0x457774),await _0xc7ec64(_0xee9493,_0x10ac33);}function sha256(_0x2ac874){const _0x334d37={_0x5df16b:0x61f,_0x4f5fbd:0x6c6,_0x2da9a2:0x5c2,_0x2d9856:0x697},_0xd24374={_0x37f8f2:0x2ea,_0xa5920b:0x115},_0x4cd8da={_0x469240:0x154,_0x520168:0x2e7};function _0x4f0fac(_0x5f301d,_0x3ac8fa,_0xbef375,_0x5b8a8e){return _0x5a3b3d(_0x5f301d,_0x3ac8fa-_0x4cd8da._0x469240,_0xbef375-_0x4cd8da._0x520168,_0x5b8a8e-0x1e6);}function _0x4e8604(_0x5a003a,_0x40f3cd,_0x2df443,_0x32ed8f){return _0x5a3b3d(_0x2df443,_0x40f3cd-0x17b,_0x40f3cd-_0xd24374._0x37f8f2,_0x32ed8f-_0xd24374._0xa5920b);}return createHash(_0x4f0fac(_0x334d37._0x5df16b,_0x334d37._0x4f5fbd,_0x334d37._0x2da9a2,0x59e))[_0x4f0fac(0x6a7,_0x334d37._0x2d9856,0x63b,0x69a)](_0x2ac874)['digest']('hex');}function countLines(_0x1cf70f){const _0x1259a1={_0x208410:0x267,_0xc31872:0x153,_0x2e053f:0x19,_0x58f1ca:0x140,_0x8066bb:0xb9,_0x1b19e9:0x90,_0x5f304a:0x35e},_0xf1be2e={_0x306375:0x44},_0x36b10c={_0x2d3d4a:0x7d};function _0xc9b99c(_0x4a3937,_0x5e72fe,_0x12b30a,_0x1e794e){return _0x29b8eb(_0x4a3937-0x1dc,_0x5e72fe- -0x4d7,_0x12b30a-_0x36b10c._0x2d3d4a,_0x12b30a);}const _0x427a58=_0x1cf70f[_0xc9b99c(_0x1259a1._0x208410,_0x1259a1._0xc31872,_0x1259a1._0x2e053f,0xc6)](/\n$/,'');function _0x187387(_0x26c97d,_0x1d876d,_0xc5406d,_0x433116){return _0x5a3b3d(_0xc5406d,_0x1d876d-0x1c,_0x26c97d-_0xf1be2e._0x306375,_0x433116-0x1f0);}return _0x427a58[_0xc9b99c(-_0x1259a1._0x58f1ca,-0x15,_0x1259a1._0x8066bb,0x72)]===0x0?0x0:_0x427a58[_0xc9b99c(0x201,0x136,_0x1259a1._0x1b19e9,0x257)]('\x0a')[_0x187387(0x28f,0x3b2,_0x1259a1._0x5f304a,0x31e)];}function calculateLineNumbers(_0x29230d,_0x578164,_0x2d0dc0,_0x38f830){const _0x2f83ce={_0x46fc0b:0x9a,_0x2ae547:0x156,_0x3c4529:0x67,_0x2d665e:0xd4,_0x1d8f7e:0x148},_0x3e9afa={_0x23fe7a:0x1b7,_0x35576d:0x145},_0x15bc20={_0x1f56e3:0x1c8},_0x41682d=_0x29230d[_0x38c3b0(-_0x2f83ce._0x46fc0b,-_0x2f83ce._0x2ae547,_0x2f83ce._0x3c4529,-_0x2f83ce._0x2d665e)](0x0,_0x38f830)['split']('\x0a')[_0x3a4f60(-0x8c,-0x5a,-_0x2f83ce._0x1d8f7e,-0x15d)],_0x54c30c=countLines(_0x578164);function _0x3a4f60(_0x9cb81,_0x3770d6,_0x41c27b,_0x4a1f8e){return _0x29b8eb(_0x9cb81-_0x15bc20._0x1f56e3,_0x4a1f8e- -0x61f,_0x41c27b-0x33,_0x9cb81);}function _0x38c3b0(_0xdadd07,_0x13bcd6,_0x622800,_0x5812cd){return _0x29b8eb(_0xdadd07-_0x3e9afa._0x23fe7a,_0xdadd07- -0x553,_0x622800-_0x3e9afa._0x35576d,_0x13bcd6);}const _0x1bfcbf=countLines(_0x2d0dc0);return{'oldStartLine':_0x41682d,'oldEndLine':_0x41682d+_0x54c30c-0x1,'newStartLine':_0x41682d,'newEndLine':_0x41682d+_0x1bfcbf-0x1,'oldLineCount':_0x54c30c,'newLineCount':_0x1bfcbf};}function createFileEditTool(_0x30e4ef={}){const _0x2cc831={_0x41dae6:0x9a,_0x25b4f2:0x2e8,_0xa29975:0x98,_0x9b2765:0xd5,_0x47adc9:0x12d,_0x126b5c:0x1eb,_0x5d0236:0x2ed,_0x4a7263:0x9,_0x4e3dea:0x35,_0xc5409c:0x77,_0x15b797:0x10f,_0x3ee888:0x18b,_0x89be3f:0x217,_0x558a0a:0x10a,_0x7abd85:0x1dc,_0x8dc9be:0x1fd,_0x306bb6:0x1a3,_0xaae75e:0x63,_0x4a5570:0x112},_0x5956bd={_0x12edf2:0xf1,_0xc46c5d:0x241,_0x447f69:0x44,_0x340d7d:0x112,_0xd22fd8:0xe9,_0x430717:0x125,_0x231505:0x1a2,_0x1bdc92:0x11f,_0x1dec0a:0x10c,_0x13e6b2:0x2f,_0x34d1f8:0x115,_0x46fb62:0x174,_0x500220:0x265,_0x2f8825:0x1,_0x3cee65:0x225,_0x222bf7:0x4d,_0x5e4bd2:0x4a,_0xa1983f:0x6f,_0x1962bb:0x22c,_0x19de27:0x272,_0x2deb05:0x8,_0x525c6c:0x117,_0x5bca0e:0x48,_0x28f26f:0x15,_0x1b5069:0x1b2,_0x1ec484:0xdd,_0x30feab:0x1,_0x48c170:0x1ba,_0x49ef81:0x26c,_0x936123:0x109,_0x53d34c:0x12,_0x5c9f5c:0x7c,_0x3cba8c:0x65,_0x2acaf5:0x271,_0x4ce9be:0x186,_0x1aefe3:0x379,_0x18445f:0xe0,_0x145068:0xd6,_0x126e0b:0xee,_0x1762fc:0x167,_0x5cdf39:0x263,_0x4e37ad:0x8f,_0x450034:0xf1,_0x2da898:0x172,_0x32b8b2:0x164,_0x16d1e9:0x58,_0xcc00dc:0x30,_0x515f53:0x253,_0x4cef75:0x27d,_0x54a105:0x34e,_0x10fbe3:0x16,_0x3898e3:0x133,_0x430837:0x19f,_0x5501ca:0xc3,_0x278f06:0x120},_0x3cb399={_0x5a88d1:0x8e},_0x1e2f8a={_0x31f3fd:0x478},_0x4fd597=_0x2481db[_0x54919b(-_0x2cc831._0x41dae6,-0x172,-0x244,-0x246)](_0x30e4ef[_0x160e55(0x107,_0x2cc831._0x25b4f2,0x1fa,0x27a)]??process['cwd']()),_0x4a2893=(_0x30e4ef[_0x160e55(-_0x2cc831._0xa29975,0xd3,-0x3f,_0x2cc831._0x9b2765)]??[])[_0x160e55(0x1d0,0x22b,0x1d3,_0x2cc831._0x47adc9)](_0x1aecd8=>_0x2481db[_0x160e55(-0x8,-0x28,0x68,0x192)](_0x1aecd8));function _0x160e55(_0x528279,_0x11ad08,_0x3e3c1f,_0x65d33e){return _0x29b8eb(_0x528279-0xcf,_0x3e3c1f- -_0x1e2f8a._0x31f3fd,_0x3e3c1f-0x63,_0x11ad08);}function _0x54919b(_0x15982c,_0x5c6ec0,_0x2c17d8,_0x28be23){return _0x29b8eb(_0x15982c-0x75,_0x5c6ec0- -0x652,_0x2c17d8-0x18c,_0x2c17d8);}const _0x4966cd=_0x30e4ef[_0x54919b(-_0x2cc831._0x126b5c,-0x25f,-_0x2cc831._0x5d0236,-0x265)]??_0x54919b(0x118,_0x2cc831._0x4a7263,_0x2cc831._0x4e3dea,-0x49);return defineTool({'name':_0x4966cd,'description':_0x160e55(-0x9d,0x2b,-_0x2cc831._0xc5409c,-0x194),'inputSchema':{'type':_0x160e55(0x30,0xc1,_0x2cc831._0x15b797,_0x2cc831._0x3ee888),'properties':{'filePath':{'type':_0x160e55(_0x2cc831._0x89be3f,0xa2,0x16f,0xb8)},'oldText':{'type':_0x54919b(-_0x2cc831._0x558a0a,-0x6b,0xbe,0xb4)},'newText':{'type':'string'},'dryRun':{'type':_0x160e55(0x2bf,_0x2cc831._0x7abd85,0x18a,_0x2cc831._0x8dc9be)}},'required':['filePath',_0x160e55(0x102,0x263,_0x2cc831._0x306bb6,0x1df),_0x160e55(-_0x2cc831._0xaae75e,0x176,0x43,_0x2cc831._0x4a5570)]},async *'execute'(_0x7d7f69){const _0x41495e={_0xac48f:0x7b,_0x30aa12:0x296};function _0x450b06(_0x222fa8,_0x73d03a,_0x3a9cdd,_0xd9fd7){return _0x160e55(_0x222fa8-0x4a,_0x3a9cdd,_0x73d03a- -_0x3cb399._0x5a88d1,_0xd9fd7-0x2e);}const _0x28e798=resolveAllowedPath(_0x4fd597,_0x4a2893,_0x7d7f69[_0x1f600f(0x191,_0x5956bd._0x12edf2,_0x5956bd._0xc46c5d,_0x5956bd._0x447f69)]);await assertWorkspaceFile(_0x28e798);const _0x1af18f=await _0x472b91(_0x28e798),_0x5e67a4=await _0x410a33(_0x28e798),_0x4c3f9c=detectEol(_0x5e67a4),_0x250931=normalizeToLf(_0x5e67a4[_0x450b06(-_0x5956bd._0x340d7d,-_0x5956bd._0xd22fd8,-_0x5956bd._0x430717,0x30)](_0x450b06(_0x5956bd._0x231505,_0x5956bd._0x1bdc92,_0x5956bd._0x1dec0a,_0x5956bd._0x13e6b2))),_0x47474d=normalizeToLf(_0x7d7f69[_0x450b06(0x196,_0x5956bd._0x34d1f8,_0x5956bd._0x46fb62,_0x5956bd._0x500220)]),_0x162683=normalizeToLf(_0x7d7f69['newText']),_0x34c7d5=_0x250931[_0x450b06(0x1a9,0x11b,-_0x5956bd._0x2f8825,_0x5956bd._0x3cee65)](_0x47474d);if(_0x34c7d5===-0x1){const _0x5c7c1e=_0x47474d[_0x450b06(0xfb,-_0x5956bd._0x222bf7,_0x5956bd._0x5e4bd2,_0x5956bd._0xa1983f)](0x0,0x64)[_0x450b06(0x157,0x124,_0x5956bd._0x1962bb,_0x5956bd._0x19de27)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x450b06(-_0x5956bd._0x2deb05,-0x2c,-_0x5956bd._0x525c6c,-0x71)+_0x5c7c1e+(_0x47474d[_0x450b06(-0x63,-0x44,0x64,-0x10)]>0x64?'...':'')+'\x22',{'filePath':_0x7d7f69[_0x1f600f(_0x5956bd._0x5bca0e,0xf1,0x18d,-_0x5956bd._0x28f26f)]});}function _0x1f600f(_0x48b7d9,_0x5a9fe8,_0x5a024c,_0x38150c){return _0x54919b(_0x48b7d9-_0x41495e._0xac48f,_0x5a9fe8-_0x41495e._0x30aa12,_0x5a024c,_0x38150c-0x186);}const _0x472b07=_0x250931['slice'](0x0,_0x34c7d5)+_0x162683+_0x250931[_0x450b06(-0x9d,-_0x5956bd._0x222bf7,-0xba,0x29)](_0x34c7d5+_0x47474d['length']),_0x3602eb=convertEol(_0x472b07,_0x4c3f9c),_0x408e14=Buffer[_0x450b06(-_0x5956bd._0x1b5069,-_0x5956bd._0x1ec484,-_0x5956bd._0x30feab,-_0x5956bd._0x48c170)](_0x3602eb,_0x450b06(0x20f,0x11f,_0x5956bd._0x49ef81,_0x5956bd._0x936123)),_0x37fad5=sha256(_0x5e67a4),_0x563d63=sha256(_0x408e14),_0x263f99=_0x37fad5===_0x563d63,_0xd45f36=_0x7d7f69[_0x450b06(_0x5956bd._0x53d34c,-_0x5956bd._0x5c9f5c,-0x5b,_0x5956bd._0x3cba8c)]??![];return!_0xd45f36&&!_0x263f99&&await atomicWrite(_0x28e798,_0x408e14),yield createToolOutput(_0x263f99?_0x1f600f(0x1a5,_0x5956bd._0x2acaf5,_0x5956bd._0x4ce9be,_0x5956bd._0x1aefe3):_0xd45f36?_0x450b06(0x56,-_0x5956bd._0x18445f,0x1,-_0x5956bd._0x145068):_0x450b06(_0x5956bd._0x126e0b,_0x5956bd._0x1762fc,_0x5956bd._0x5cdf39,_0x5956bd._0x4e37ad),{'filePath':_0x7d7f69[_0x1f600f(-0x22,_0x5956bd._0x450034,_0x5956bd._0x2da898,_0x5956bd._0x32b8b2)],'resolvedPath':_0x28e798,'created':_0x1af18f[_0x450b06(0x7c,-_0x5956bd._0x16d1e9,_0x5956bd._0xcc00dc,-0x41)][_0x1f600f(_0x5956bd._0x515f53,_0x5956bd._0x4cef75,_0x5956bd._0x54a105,0x389)](),'modified':_0x1af18f['mtime'][_0x450b06(-_0x5956bd._0x10fbe3,_0x5956bd._0x3898e3,_0x5956bd._0x430837,0x220)](),'size':_0x1af18f[_0x450b06(-0x98,-_0x5956bd._0x5501ca,-_0x5956bd._0x278f06,0x7e)],'eol':_0x4c3f9c,'oldTextLength':_0x47474d['length'],'newTextLength':_0x162683['length'],'bytesWritten':_0x263f99||_0xd45f36?0x0:_0x408e14[_0x1f600f(0x21,0x106,-0x33,0xe6)],'beforeSha':_0x37fad5,'afterSha':_0x563d63,'dryRun':_0xd45f36,'noChange':_0x263f99,'lineNumbers':calculateLineNumbers(_0x250931,_0x47474d,_0x162683,_0x34c7d5)}),void 0x0;}});}import{mkdir as _0x2a5cc8,rename as _0xee2bfb,stat as _0x4d98df,writeFile as _0x3a6bd4}from'fs/promises';import*as _0x473ad3 from'path';async function atomicWrite2(_0x25912f,_0x1c585f){const _0x449deb={_0x295135:0x638,_0x470555:0x4fa,_0x5079d3:0xfd,_0x2889ff:0x187,_0x1eed75:0x239,_0x239a05:0x27e,_0x4ef688:0x15e,_0x3ad931:0xce},_0x4cf143={_0x29993f:0x1da,_0x10cbe9:0xca},_0x1baf3b={_0xa02803:0xbf},_0x63e7a4=_0x473ad3['dirname'](_0x25912f);await _0x2a5cc8(_0x63e7a4,{'recursive':!![]});const _0x415dd9=_0x473ad3[_0x5bc859(0x436,_0x449deb._0x295135,0x4f1,_0x449deb._0x470555)](_0x63e7a4,'.tmp.'+_0x473ad3['basename'](_0x25912f)+'.'+Date[_0x49b1aa(_0x449deb._0x5079d3,0x99,0x132,_0x449deb._0x2889ff)]()+'.'+Math[_0x49b1aa(_0x449deb._0x1eed75,0x424,0x2e1,_0x449deb._0x239a05)]()[_0x49b1aa(0xfc,_0x449deb._0x4ef688,_0x449deb._0x3ad931,-0x4)](0x24)['slice'](0x2));await _0x3a6bd4(_0x415dd9,_0x1c585f);function _0x49b1aa(_0x113240,_0x130be0,_0x42a7a2,_0x4066bb){return _0x5a3b3d(_0x113240,_0x130be0-0xe2,_0x42a7a2- -0xd8,_0x4066bb-_0x1baf3b._0xa02803);}function _0x5bc859(_0x34bee3,_0x2327fd,_0x396422,_0x3b55da){return _0x5a3b3d(_0x2327fd,_0x2327fd-_0x4cf143._0x29993f,_0x396422-0x314,_0x3b55da-_0x4cf143._0x10cbe9);}await _0xee2bfb(_0x415dd9,_0x25912f);}function createFileNewTool(_0x52ab6e={}){const _0x4510f8={_0x8ea531:0x1d2,_0x998e58:0xf8,_0x9ffc16:0x43f,_0x97c778:0x364,_0x4beae6:0x2c1,_0x36af7c:0x53,_0x4286cb:0x404,_0x1d7b95:0x36c,_0x530874:0xca,_0x154402:0x9b,_0x2e8d31:0x2ef,_0x1992e4:0x332,_0x1162ed:0x2d9,_0x259ea4:0x380,_0x270a07:0x1a3,_0x5aa75a:0x23,_0x27b7ff:0x96},_0x444ee7={_0x1db94d:0x22,_0x33ba87:0x121,_0x3430a9:0x252,_0x21d1b5:0x9d,_0x3c2507:0x277,_0x3b2062:0x428,_0x5130c1:0x72,_0x64979d:0x16f,_0x28a9a4:0x1c9,_0x29a335:0x121,_0x35e8b7:0x23b,_0x226fdf:0x1a6,_0x5d42cc:0x220,_0x1bdbb4:0x158,_0x1c9ff7:0x285,_0x9ad7bd:0x25f,_0x5ad4d5:0x11e,_0x48fd8e:0x230,_0x31f4b8:0x2f6,_0x33d08f:0x1fe,_0xf48180:0x2ad},_0x2dcaa0={_0x553f96:0x1d8},_0x552e27={_0xe0f2f5:0x6c},_0x18d243={_0x1c9f88:0x136,_0x137294:0x77},_0x239374={_0x554448:0x123},_0x56247e=_0x473ad3[_0x5f1893(0x18b,_0x4510f8._0x8ea531,0x134,_0x4510f8._0x998e58)](_0x52ab6e[_0x5f1893(_0x4510f8._0x9ffc16,_0x4510f8._0x97c778,0x3ae,0x3cf)]??process[_0x5f1893(0x176,_0x4510f8._0x4beae6,0x1f1,0x2b9)]());function _0x20e8b7(_0x51d9d8,_0x4cf0ed,_0x15a862,_0x1d9a83){return _0x29b8eb(_0x51d9d8-0x5f,_0x1d9a83- -0x564,_0x15a862-_0x239374._0x554448,_0x4cf0ed);}function _0x5f1893(_0x5d1b48,_0x580996,_0x2fe80c,_0x2d102b){return _0x5a3b3d(_0x2fe80c,_0x580996-_0x18d243._0x1c9f88,_0x580996- -0x97,_0x2d102b-_0x18d243._0x137294);}const _0x577bd0=(_0x52ab6e[_0x20e8b7(-0x203,-_0x4510f8._0x36af7c,-0x262,-0x12b)]??[])[_0x5f1893(_0x4510f8._0x4286cb,0x33d,0x329,_0x4510f8._0x1d7b95)](_0x37db1e=>_0x473ad3[_0x5f1893(0x270,0x1d2,0x267,0xf7)](_0x37db1e)),_0x574f80=_0x52ab6e[_0x20e8b7(-_0x4510f8._0x530874,-0x1a1,-0x21,-0x171)]??'FileNew';return defineTool({'name':_0x574f80,'description':_0x5f1893(0xc4,0x18f,_0x4510f8._0x154402,0x1d8),'inputSchema':{'type':_0x5f1893(_0x4510f8._0x2e8d31,0x279,_0x4510f8._0x1992e4,0x340),'properties':{'filePath':{'type':_0x5f1893(0x220,_0x4510f8._0x1162ed,0x318,0x1f1)},'content':{'type':_0x5f1893(0x417,0x2d9,_0x4510f8._0x259ea4,_0x4510f8._0x270a07)}},'required':['filePath',_0x20e8b7(_0x4510f8._0x5aa75a,_0x4510f8._0x27b7ff,-0xb3,-0x3d)]},async *'execute'(_0x2a319a){const _0x5c05dc=resolveAllowedPath(_0x56247e,_0x577bd0,_0x2a319a[_0x564468(_0x444ee7._0x1db94d,0x1eb,_0x444ee7._0x33ba87,0xc3)]);function _0x5f50f2(_0x515ac5,_0x301b4a,_0x3f49cc,_0x2d4079){return _0x5f1893(_0x515ac5-0x1a0,_0x515ac5-_0x552e27._0xe0f2f5,_0x301b4a,_0x2d4079-0x1a3);}const _0x57f570=await _0x4d98df(_0x5c05dc)[_0x5f50f2(0x18d,0x1fa,0xbe,_0x444ee7._0x3430a9)](()=>!![])['catch'](()=>![]),_0x2ec13b=Buffer[_0x564468(-0x2b,0x17,_0x444ee7._0x21d1b5,0x115)](_0x2a319a['content'],_0x5f50f2(0x383,0x2a1,_0x444ee7._0x3c2507,_0x444ee7._0x3b2062));function _0x564468(_0x410d43,_0x3c94c0,_0x479d2e,_0x1536aa){return _0x20e8b7(_0x410d43-0x160,_0x410d43,_0x479d2e-0x144,_0x479d2e-_0x2dcaa0._0x553f96);}return await atomicWrite2(_0x5c05dc,_0x2ec13b),yield createToolOutput(_0x564468(_0x444ee7._0x5130c1,0x84,_0x444ee7._0x64979d,0x4b)+_0x2a319a[_0x564468(_0x444ee7._0x28a9a4,0x174,_0x444ee7._0x29a335,_0x444ee7._0x35e8b7)]+'.',{'filePath':_0x2a319a[_0x564468(0x1fa,_0x444ee7._0x226fdf,0x121,0xc6)],'resolvedPath':_0x5c05dc,'bytes':_0x2ec13b[_0x5f50f2(_0x444ee7._0x5d42cc,0x100,0xe2,_0x444ee7._0x1bdbb4)],'lines':_0x2a319a[_0x5f50f2(_0x444ee7._0x1c9ff7,_0x444ee7._0x9ad7bd,0x283,0x325)][_0x5f50f2(0x36b,0x290,0x389,0x47a)](/\r?\n/)[_0x564468(_0x444ee7._0x5ad4d5,0x152,0x136,_0x444ee7._0x48fd8e)],'created':new Date()[_0x564468(_0x444ee7._0x31f4b8,_0x444ee7._0x33d08f,_0x444ee7._0xf48180,_0x444ee7._0x33d08f)](),'overwritten':_0x57f570}),void 0x0;}});}import{readFile as _0x40f52a,stat as _0x1fe6d1}from'fs/promises';import*as _0x2aa889 from'path';function stripUtfBom(_0x4a8183){const _0x3fb2de={_0x355150:0x249,_0xbefc53:0x391,_0x261cb7:0x1b4},_0x4946e4={_0x554374:0x1ea};function _0x336317(_0x56c323,_0x541246,_0x44f718,_0x496e1c){return _0x29b8eb(_0x56c323-0x10d,_0x44f718- -_0x4946e4._0x554374,_0x44f718-0x18f,_0x56c323);}return _0x4a8183[_0x336317(_0x3fb2de._0x355150,_0x3fb2de._0xbefc53,0x2ee,_0x3fb2de._0x261cb7)](0x0)===0xfeff?_0x4a8183['slice'](0x1):_0x4a8183;}function clampLine(_0x4ff3e7,_0x585c29){const _0xfa6376={_0x350cef:0x537,_0x5bbebd:0x57c,_0x3e7cf4:0x42c,_0x23ceb4:0x4d7,_0x28b230:0x1a4,_0x2ccdee:0x12f,_0x5189f5:0x107,_0x290a55:0x38,_0x44333c:0x20a,_0x44b973:0xc8,_0x5179a3:0x5d5,_0x2651df:0x659,_0x7862e8:0x5e7,_0x30f13d:0x6cb},_0x4acba2={_0x53bc61:0x96},_0x2b0060={_0xa073d8:0x1f7};function _0x41d90a(_0x267fc5,_0x418c6,_0x182e1b,_0x4c86cd){return _0x5a3b3d(_0x418c6,_0x418c6-0xf4,_0x267fc5-_0x2b0060._0xa073d8,_0x4c86cd-0x155);}function _0x1512c7(_0x34b50c,_0x48aee0,_0x147713,_0xeb7ea6){return _0x29b8eb(_0x34b50c-_0x4acba2._0x53bc61,_0xeb7ea6- -0x3ab,_0x147713-0x1bc,_0x147713);}if(!Number[_0x41d90a(_0xfa6376._0x350cef,_0xfa6376._0x5bbebd,_0xfa6376._0x3e7cf4,_0xfa6376._0x23ceb4)](_0x4ff3e7))return 0x1;return Math[_0x1512c7(_0xfa6376._0x28b230,_0xfa6376._0x2ccdee,0x13f,_0xfa6376._0x5189f5)](0x1,Math[_0x1512c7(_0xfa6376._0x290a55,0x56,_0xfa6376._0x44333c,_0xfa6376._0x44b973)](Math[_0x41d90a(_0xfa6376._0x5179a3,_0xfa6376._0x2651df,_0xfa6376._0x7862e8,_0xfa6376._0x30f13d)](_0x4ff3e7),_0x585c29));}function createFileReadTool(_0x1d56cb={}){const _0x4b5b55={_0x180ef0:0x80,_0x1b301e:0xbc,_0x568e5f:0xd,_0x4b4a6d:0xff,_0x1faf65:0x160,_0x39b12e:0x2b7,_0x2bea63:0x27,_0x2670c6:0x21,_0xac8ef:0x1b,_0x53ea53:0x93,_0x28773c:0x611,_0x48a6fc:0x5cf,_0x28b118:0x7c,_0x4892a3:0x9a,_0x4ab93f:0x1c8,_0x42bbaf:0xe4,_0x326c54:0x1a9,_0x2892f5:0x8c,_0xee20d4:0x4a5,_0x30ef95:0x533,_0x18cf00:0x5d6,_0x2b9a23:0x657,_0x44a7b9:0x5c6},_0x3cf84a={_0x40ba89:0x30b,_0x43bae5:0x2da,_0x105ddf:0x35e,_0x23cfc5:0x15d,_0x3714c5:0xea,_0x3c22e4:0x196,_0x2a0836:0x111,_0x404967:0x51,_0x49ff88:0x14f,_0x5d3a7f:0x1a0,_0x1d9a06:0x30b,_0x2c284c:0x1ca,_0x4f9f78:0xb,_0x49caa5:0x12b,_0xcca466:0xc5,_0x419afc:0x283,_0x41f7d0:0x3b1,_0x5892fb:0x443,_0x356591:0x25b,_0x4fbc1b:0x170,_0x5f3f1d:0x203,_0x586ff1:0xf2,_0x3902ec:0x48,_0x1399d0:0x43,_0x562443:0x181,_0x4e3a47:0x1a6,_0x523d7e:0x39c,_0x1e8250:0x1c5,_0x1c5581:0x24,_0x3960bc:0x18,_0x559000:0x114,_0x15dc40:0xd4,_0x5b41ee:0x117,_0x4578fd:0x2df,_0x105bb7:0x2f0,_0x49692c:0x1e6,_0x25ad7b:0x2b5,_0x2e2db5:0x112,_0x3bd0c8:0xdd,_0x45a7d7:0x2d,_0x221f87:0x1c0,_0x4fe2d6:0x2b4},_0x9417b={_0x1757cc:0x660},_0x31a653={_0x32153e:0x2bb},_0x2ae8f5={_0x25edca:0x18};function _0x265942(_0x1eda8c,_0x124af9,_0xcffdeb,_0x26db0c){return _0x29b8eb(_0x1eda8c-0x1db,_0x124af9- -_0x2ae8f5._0x25edca,_0xcffdeb-0x51,_0x1eda8c);}const _0x51ab53=_0x2aa889[_0x2b3cfa(-_0x4b5b55._0x180ef0,_0x4b5b55._0x1b301e,_0x4b5b55._0x568e5f,0x77)](_0x1d56cb[_0x2b3cfa(0x112,_0x4b5b55._0x4b4a6d,0x140,0x5c)]??process[_0x265942(0x65e,0x5b7,0x6d8,0x529)]()),_0x1f5f0a=(_0x1d56cb['allowedDirs']??[])[_0x2b3cfa(0xeb,0xd7,0xcf,0x225)](_0x1b36d2=>_0x2aa889[_0x265942(0x556,0x4c8,0x537,0x4d8)](_0x1b36d2));function _0x2b3cfa(_0x9ce8ad,_0x43a9f5,_0x1b594b,_0x4dd91c){return _0x5a3b3d(_0x1b594b,_0x43a9f5-0xdd,_0x9ce8ad- -0x2e9,_0x4dd91c-0xb4);}const _0x9cd6a4=_0x1d56cb['name']??_0x2b3cfa(-0x165,-_0x4b5b55._0x1faf65,-0xee,-_0x4b5b55._0x39b12e);return defineTool({'name':_0x9cd6a4,'description':_0x265942(0x330,0x402,0x494,0x3ac),'inputSchema':{'type':_0x2b3cfa(_0x4b5b55._0x2bea63,_0x4b5b55._0x2670c6,_0x4b5b55._0xac8ef,_0x4b5b55._0x53ea53),'properties':{'path':{'type':_0x265942(_0x4b5b55._0x28773c,_0x4b5b55._0x48a6fc,0x6e1,0x5c1)},'lineStart':{'type':_0x2b3cfa(-_0x4b5b55._0x28b118,-0x53,-0xa7,-0xa8),'description':_0x2b3cfa(-_0x4b5b55._0x4892a3,-0x99,-0x11,-_0x4b5b55._0x4ab93f)},'lineEnd':{'type':_0x2b3cfa(-0x7c,-_0x4b5b55._0x42bbaf,-_0x4b5b55._0x326c54,_0x4b5b55._0x2892f5),'description':_0x265942(_0x4b5b55._0xee20d4,0x5c8,_0x4b5b55._0x30ef95,_0x4b5b55._0x18cf00)}},'required':[_0x265942(_0x4b5b55._0x2b9a23,_0x4b5b55._0x44a7b9,0x600,0x53b)]},async *'execute'(_0x26cb3a){const _0x4845e5=resolveAllowedPath(_0x51ab53,_0x1f5f0a,_0x26cb3a[_0x2fd4ac(-0x1e5,-0xa7,-0x9a,0x47)]);await assertWorkspaceFile(_0x4845e5);const _0xc79172=await _0x1fe6d1(_0x4845e5),_0x5005f2=await _0x40f52a(_0x4845e5);if(isProbablyBinary(_0x5005f2))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x26cb3a[_0x115676(_0x3cf84a._0x40ba89,_0x3cf84a._0x43bae5,0x30c,_0x3cf84a._0x105ddf)],{'path':_0x26cb3a[_0x2fd4ac(-0xf3,-_0x3cf84a._0x23cfc5,-0x9a,-_0x3cf84a._0x3714c5)]});function _0x115676(_0x4f91ae,_0x16860d,_0x359057,_0x3ae0bf){return _0x265942(_0x3ae0bf,_0x4f91ae- -_0x31a653._0x32153e,_0x359057-0x95,_0x3ae0bf-0x2c);}function _0x2fd4ac(_0x169446,_0x155766,_0x2c6831,_0x3ee3c4){return _0x265942(_0x155766,_0x2c6831- -_0x9417b._0x1757cc,_0x2c6831-0xcb,_0x3ee3c4-0x77);}let _0x466e57=_0x5005f2[_0x2fd4ac(-0x343,-_0x3cf84a._0x3c22e4,-0x25b,-_0x3cf84a._0x2a0836)](_0x2fd4ac(0xd6,_0x3cf84a._0x404967,-0x53,-_0x3cf84a._0x49ff88));const _0xf4b299=_0x466e57[_0x2fd4ac(-0xfc,-0x1f4,-_0x3cf84a._0x5d3a7f,-0x21b)](0x0)===0xfeff;_0x466e57=stripUtfBom(_0x466e57);const _0x286c6b=_0x466e57['split'](/\r?\n/),_0xb68cef={'path':_0x26cb3a[_0x115676(_0x3cf84a._0x1d9a06,0x44e,0x34f,0x346)],'resolvedPath':_0x4845e5,'created':_0xc79172[_0x2fd4ac(-0x252,-0x1d4,-_0x3cf84a._0x2c284c,-0x10b)][_0x2fd4ac(_0x3cf84a._0x4f9f78,-_0x3cf84a._0x49caa5,-0x3f,_0x3cf84a._0xcca466)](),'modified':_0xc79172[_0x115676(0x315,0x2a6,_0x3cf84a._0x419afc,_0x3cf84a._0x41f7d0)][_0x115676(0x366,0x32c,_0x3cf84a._0x5892fb,_0x3cf84a._0x356591)](),'size':_0xc79172[_0x115676(_0x3cf84a._0x4fbc1b,0x4d,0x22f,_0x3cf84a._0x5f3f1d)],'encoding':'utf8','bomStripped':_0xf4b299,'truncated':![],'totalLines':_0x286c6b[_0x2fd4ac(-0xe9,-_0x3cf84a._0x586ff1,-0x1b6,-0x2aa)]};if(_0x26cb3a[_0x2fd4ac(-_0x3cf84a._0x3902ec,-_0x3cf84a._0x1399d0,-0x114,-_0x3cf84a._0x562443)]!==void 0x0||_0x26cb3a[_0x115676(0x279,_0x3cf84a._0x4e3a47,_0x3cf84a._0x523d7e,_0x3cf84a._0x1e8250)]!==void 0x0){const _0x16c373=clampLine(_0x26cb3a[_0x2fd4ac(-_0x3cf84a._0x1c5581,_0x3cf84a._0x3960bc,-_0x3cf84a._0x559000,-_0x3cf84a._0x15dc40)]??0x1,_0x286c6b['length']),_0x467922=clampLine(_0x26cb3a[_0x2fd4ac(-0x9e,-_0x3cf84a._0x5b41ee,-0x12c,-0x246)]??_0x286c6b['length'],_0x286c6b['length']),_0x144aba=Math[_0x2fd4ac(-_0x3cf84a._0x4578fd,-0x34e,-0x205,-_0x3cf84a._0x105bb7)](_0x16c373,_0x467922),_0x57fb5f=Math['max'](_0x16c373,_0x467922),_0xa0c09e=_0x286c6b[_0x115676(_0x3cf84a._0x49692c,_0x3cf84a._0x25ad7b,0x2a9,_0x3cf84a._0x2e2db5)](_0x144aba-0x1,_0x57fb5f)[_0x2fd4ac(-_0x3cf84a._0x3bd0c8,-0xa5,-_0x3cf84a._0x45a7d7,-0x2)]((_0x47304f,_0x539bd7)=>_0x144aba+_0x539bd7+'|'+_0x47304f)[_0x2fd4ac(-_0x3cf84a._0x221f87,-0xf0,-0x224,-0x224)]('\x0a');return yield createToolOutput(_0xa0c09e,{..._0xb68cef,'lineRange':{'lineStart':_0x144aba,'lineEnd':_0x57fb5f,'linesTotal':_0x286c6b[_0x2fd4ac(-0x17f,-_0x3cf84a._0x4fe2d6,-0x1b6,-0x2ea)]}}),void 0x0;}return yield createToolOutput(_0x466e57,_0xb68cef),void 0x0;}});}import{stat as _0x31e8f5}from'fs/promises';import*as _0x56fdaf from'path';import{execSync,spawn as _0x2501f2}from'child_process';import{existsSync}from'fs';import{stat as _0x5da7bb}from'fs/promises';import*as _0x1e53c9 from'os';import*as _0x3beeb9 from'path';import{rgPath as _0x5e0cfd}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x48c4a2={_0x3ff96e:0x24e,_0xe953b3:0x256,_0x1c1c1c:0x4af,_0x49a601:0x98,_0x31965e:0x188,_0x437583:0x314,_0xc28693:0x248,_0x229aeb:0x3d7,_0x4fccbc:0x481,_0x5d0167:0x21b,_0x5853a2:0x274,_0x5857ae:0x37e,_0x3eb15e:0x539,_0xea5850:0x402,_0x57e8a2:0x2aa,_0x5b3c9d:0xf1,_0x48cd4a:0x202,_0x5d1248:0x231,_0x4c5a4b:0xa,_0x14f9aa:0xf9,_0x3e9269:0x83,_0x53d04c:0x494,_0x5a2e76:0x24b,_0x5a7b35:0x352,_0x22d31c:0x24c,_0x407393:0x1b5,_0x591585:0x24e,_0x3f2b3b:0x3ce,_0x21eee7:0x107,_0x1abd5e:0xd5,_0x21fec1:0xb8,_0xa2ae3c:0x33,_0x576d1a:0x14c,_0x2918df:0x341,_0x62046f:0x112,_0x258739:0x236,_0x2e9054:0x348,_0xd152fa:0x23,_0x4409a8:0x9b,_0x35c5b2:0x310,_0x32338f:0x45c},_0x22166a={_0x3bfd11:0x365,_0x43cc42:0xde},_0x137041={_0x5bdc9b:0xc6,_0x393176:0x91},_0xba2024=_0x1e53c9[_0x1a5e62(-_0x48c4a2._0x3ff96e,-0x1c3,-0x1e2,-0x1b9)]()===_0x265e86(_0x48c4a2._0xe953b3,_0x48c4a2._0x1c1c1c,0x2ad,0x38d);function _0x265e86(_0x5c2ae2,_0x579409,_0x423b78,_0x5296eb){return _0x5a3b3d(_0x423b78,_0x579409-0x1d0,_0x5296eb-_0x137041._0x5bdc9b,_0x5296eb-_0x137041._0x393176);}function _0x1a5e62(_0x23a0c,_0x586e52,_0x1b6571,_0x34e967){return _0x5a3b3d(_0x586e52,_0x586e52-0xb,_0x34e967- -_0x22166a._0x3bfd11,_0x34e967-_0x22166a._0x43cc42);}const _0xdb8ece=_0xba2024?[_0x3beeb9[_0x1a5e62(-0xaa,-0x167,-_0x48c4a2._0x49a601,-_0x48c4a2._0x31965e)](process['env'][_0x265e86(0x1ed,_0x48c4a2._0x437583,0x379,_0x48c4a2._0xc28693)]||'',_0x265e86(0x50d,0x42b,_0x48c4a2._0x229aeb,_0x48c4a2._0x4fccbc),_0x1a5e62(-_0x48c4a2._0x5d0167,-_0x48c4a2._0x5853a2,-0xb0,-0x1c3),_0x265e86(_0x48c4a2._0x5857ae,_0x48c4a2._0x3eb15e,0x33f,_0x48c4a2._0xea5850)),_0x3beeb9['join'](process[_0x265e86(0x4a5,0x44f,_0x48c4a2._0x57e8a2,0x382)][_0x1a5e62(-_0x48c4a2._0x5b3c9d,-0x13b,0x2f,-0xcc)]||'','ripgrep',_0x1a5e62(-0x161,0xe9,0x9d,-0x49)),_0x3beeb9[_0x1a5e62(-_0x48c4a2._0x48cd4a,-_0x48c4a2._0x5d1248,-0x204,-_0x48c4a2._0x31965e)](process[_0x1a5e62(-0x1a5,-0x199,-0x137,-0xa9)][_0x1a5e62(0x1b1,_0x48c4a2._0x4c5a4b,_0x48c4a2._0x14f9aa,_0x48c4a2._0x3e9269)]||'',_0x265e86(_0x48c4a2._0x53d04c,0x2ad,_0x48c4a2._0x5a2e76,_0x48c4a2._0x5a7b35),'rg.exe')]:[_0x265e86(_0x48c4a2._0x22d31c,_0x48c4a2._0x407393,0x213,0x253),_0x265e86(_0x48c4a2._0x591585,0x405,_0x48c4a2._0x3f2b3b,0x2d6),_0x1a5e62(_0x48c4a2._0x21eee7,_0x48c4a2._0x1abd5e,_0x48c4a2._0x21fec1,-_0x48c4a2._0xa2ae3c),_0x1a5e62(-0x45,-_0x48c4a2._0x576d1a,-0x96,-0x196)];for(const _0xde2795 of _0xdb8ece){if(existsSync(_0xde2795))return _0xde2795;}try{const _0x5e3fbb=_0xba2024?_0x265e86(0x214,0x377,0x213,_0x48c4a2._0x2918df):'which\x20rg',_0x8a3cc0=execSync(_0x5e3fbb,{'encoding':_0x1a5e62(-0xb,_0x48c4a2._0x62046f,0xaf,0x49),'stdio':['pipe',_0x265e86(_0x48c4a2._0x258739,_0x48c4a2._0x2e9054,0x103,_0x48c4a2._0x258739),_0x1a5e62(-0xa1,-0x1f,_0x48c4a2._0xd152fa,-_0x48c4a2._0x4409a8)]})['trim']()[_0x265e86(_0x48c4a2._0x35c5b2,0x4d2,0x346,_0x48c4a2._0x32338f)](/\r?\n/)[0x0];if(_0x8a3cc0&&existsSync(_0x8a3cc0))return _0x8a3cc0;}catch{return null;}return null;}async function filepath(){const _0x510062={_0x2b64ab:0x6f2,_0x2288a4:0x669},_0x288a4b={_0x130c32:0x1be,_0x335bd4:0x99,_0x4dd968:0xa5};if(cachedRgPath)return cachedRgPath;if(_0x5e0cfd&&existsSync(_0x5e0cfd))return cachedRgPath=_0x5e0cfd,_0x5e0cfd;function _0x48031d(_0x430c68,_0x56c59a,_0x2a31d6,_0x214aac){return _0x29b8eb(_0x430c68-_0x288a4b._0x130c32,_0x56c59a-_0x288a4b._0x335bd4,_0x2a31d6-_0x288a4b._0x4dd968,_0x214aac);}const _0x107bdf=findSystemRipgrep();if(!_0x107bdf)throw new Error(_0x48031d(0x732,_0x510062._0x2b64ab,0x6f0,_0x510062._0x2288a4));return cachedRgPath=_0x107bdf,_0x107bdf;}async function*files(_0x4372e2){const _0xd47df6={_0x3e37cb:0x6a3,_0x2603ef:0x6a2,_0x320299:0x77a,_0x401f60:0x35d,_0x36a4bd:0x3fa,_0xda905e:0x2f2,_0x523be3:0x41e,_0xcce69:0x5be,_0x5e3c15:0x62d,_0xce44b9:0x4fa,_0x3f1fc8:0x743,_0x227e67:0x660,_0x24d34a:0x861,_0x212b1c:0x301,_0x363229:0x2c1,_0x12c870:0x398,_0x1f93d0:0x31c,_0x406d3b:0x561,_0x2b916f:0x4d7,_0x38f305:0x2fd,_0x4bff53:0x278,_0x32b53a:0x45e,_0x4dc9e9:0x331,_0x370874:0x372,_0x25e604:0x2ab,_0x352b87:0x30f,_0x4193a2:0x3d1,_0x47a84c:0x44d,_0x1b5d36:0x451,_0xd6a348:0x4bb,_0x3626df:0x5ce,_0x402d49:0x4d1,_0x528ddc:0x458,_0x30a66c:0x414,_0xe933c0:0x6e1,_0x382ae6:0x5b2,_0x16f4bc:0x6d6,_0x46c3df:0x597,_0x2605c9:0x2e7,_0x2c5cda:0x3c1,_0x159cea:0x2c3,_0x37af32:0x1da,_0x230281:0x28f},_0x4f21c5={_0x4ddae0:0x1ba},_0x21e98e={_0x4ddca6:0xa,_0x1aacef:0x34b},_0x8caf48=await filepath(),_0x3d7e27=await _0x5da7bb(_0x4372e2[_0x6764fd(_0xd47df6._0x3e37cb,_0xd47df6._0x2603ef,_0xd47df6._0x320299,0x72b)])[_0x362532(_0xd47df6._0x401f60,_0xd47df6._0x36a4bd,0x1bc,_0xd47df6._0xda905e)](()=>null);if(!_0x3d7e27?.[_0x6764fd(0x56a,0x672,0x5c3,_0xd47df6._0x523be3)]())throw Object['assign'](new Error(_0x6764fd(_0xd47df6._0xcce69,0x61c,_0xd47df6._0x5e3c15,_0xd47df6._0xce44b9)+_0x4372e2['cwd']+'\x27'),{'code':_0x6764fd(_0xd47df6._0x3f1fc8,_0xd47df6._0x227e67,_0xd47df6._0x24d34a,0x66a)});const _0x1fc56d=[_0x362532(_0xd47df6._0x212b1c,_0xd47df6._0x363229,0x3d4,0x2c8),_0x362532(_0xd47df6._0x12c870,0x2bb,0x3e1,_0xd47df6._0x1f93d0),'--hidden',_0x362532(_0xd47df6._0x406d3b,_0xd47df6._0x2b916f,_0xd47df6._0x38f305,0x442)];for(const _0x1b937d of _0x4372e2[_0x362532(_0xd47df6._0x4bff53,_0xd47df6._0x32b53a,0x28b,_0xd47df6._0x4dc9e9)]??[]){_0x1fc56d[_0x362532(_0xd47df6._0x370874,_0xd47df6._0x25e604,0x2f3,_0xd47df6._0x352b87)](_0x362532(0x37a,_0xd47df6._0x4193a2,_0xd47df6._0x47a84c,_0xd47df6._0x1b5d36)+_0x1b937d);}function _0x6764fd(_0x1a37a0,_0x2e4428,_0x4c6713,_0x4481d9){return _0x5a3b3d(_0x4c6713,_0x2e4428-_0x21e98e._0x4ddca6,_0x1a37a0-_0x21e98e._0x1aacef,_0x4481d9-0xa3);}function _0x362532(_0xf08596,_0x63fe04,_0x53b74a,_0x2b3e25){return _0x29b8eb(_0xf08596-0x19b,_0x2b3e25- -_0x4f21c5._0x4ddae0,_0x53b74a-0x160,_0x53b74a);}const _0x4e9614=_0x2501f2(_0x8caf48,_0x1fc56d,{'cwd':_0x4372e2['cwd'],'stdio':['ignore',_0x6764fd(_0xd47df6._0xd6a348,_0xd47df6._0x3626df,_0xd47df6._0x402d49,0x5f4),'pipe']});let _0x5409c0='';for await(const _0x58e62c of _0x4e9614['stdout']??[]){_0x5409c0+=_0x58e62c[_0x6764fd(0x4f1,0x4e4,_0xd47df6._0x528ddc,_0xd47df6._0x30a66c)]();const _0x3c604f=_0x5409c0[_0x6764fd(_0xd47df6._0xe933c0,_0xd47df6._0x382ae6,_0xd47df6._0x16f4bc,0x797)](/\r?\n/);_0x5409c0=_0x3c604f[_0x6764fd(0x652,_0xd47df6._0x46c3df,0x56b,0x6ad)]()??'';for(const _0x25f993 of _0x3c604f){if(_0x25f993[_0x362532(0x2e1,0x276,0x1f5,0x308)]>0x0)yield _0x25f993;}}_0x5409c0[_0x362532(_0xd47df6._0x2605c9,0x1fb,0x1f3,0x28f)]()[_0x362532(0x430,_0xd47df6._0x2c5cda,_0xd47df6._0x159cea,0x308)]>0x0&&(yield _0x5409c0[_0x362532(0x16a,0x2b4,_0xd47df6._0x37af32,_0xd47df6._0x230281)]());}function parseMatchLine(_0x3eb33d,_0x206a70){const _0x5c7f09={_0x4c1a6f:0x4a,_0x907155:0x90,_0x199f1b:0x10d,_0x2415f1:0xa5,_0x34ad1a:0xb6,_0x3b6b83:0x77,_0x2f8475:0x31,_0x3bdc22:0x58,_0x4cf042:0xf8,_0x1699bb:0xbd,_0x47abbb:0x204,_0x45cc5f:0x9b,_0x2a1906:0xec,_0x1cdcb0:0xd4,_0x145f6b:0x6,_0x53be82:0x6b,_0x153254:0xb0,_0x42a65e:0x2d},_0x2d4981={_0x5df477:0x14a},_0x14ea5f={_0x288ccc:0x140,_0x27a05f:0x3a};if(!_0x3eb33d||_0x3eb33d==='--')return null;const _0x5a73b8=_0x3eb33d[_0x17cb29(0x60,0xd4,0xc,-0xf)]('|');if(_0x206a70&&_0x5a73b8[_0x3f0975(-0x174,-0x4f,_0x5c7f09._0x4c1a6f,-0x103)]>=0x4&&Number[_0x17cb29(-_0x5c7f09._0x907155,0x7e,_0x5c7f09._0x199f1b,-0x44)](Number[_0x17cb29(0x1e,-0xd4,-0x1cc,-0x173)](_0x5a73b8[0x2]??'',0xa))){const _0x5b1e14=Number['parseInt'](_0x5a73b8[0x1]??'',0xa);if(!Number[_0x17cb29(_0x5c7f09._0x2415f1,0x7e,-_0x5c7f09._0x34ad1a,-_0x5c7f09._0x3b6b83)](_0x5b1e14)||!_0x5a73b8[0x0])return null;return{'filePath':_0x5a73b8[0x0],'lineNum':_0x5b1e14,'lineText':_0x5a73b8[_0x3f0975(-_0x5c7f09._0x2f8475,-_0x5c7f09._0x3bdc22,-0x1c,_0x5c7f09._0x4cf042)](0x3)[_0x3f0975(-0x14f,-_0x5c7f09._0x1699bb,-_0x5c7f09._0x47abbb,-_0x5c7f09._0x45cc5f)]('|')};}function _0x3f0975(_0x30f6c2,_0x237212,_0x5e6bf6,_0x42d39f){return _0x29b8eb(_0x30f6c2-_0x14ea5f._0x288ccc,_0x237212- -0x511,_0x5e6bf6-_0x14ea5f._0x27a05f,_0x30f6c2);}if(_0x5a73b8[_0x17cb29(-_0x5c7f09._0x2a1906,-0x77,-0x14b,-0xaa)]>=0x3){const _0xa0b3d=Number[_0x17cb29(-0x1ec,-_0x5c7f09._0x1cdcb0,-0x1ff,_0x5c7f09._0x145f6b)](_0x5a73b8[0x1]??'',0xa);if(!Number[_0x17cb29(-_0x5c7f09._0x53be82,0x7e,0xbe,0x60)](_0xa0b3d)||!_0x5a73b8[0x0])return null;return{'filePath':_0x5a73b8[0x0],'lineNum':_0xa0b3d,'lineText':_0x5a73b8[_0x3f0975(_0x5c7f09._0x153254,-0x58,0xf8,0xc5)](0x2)[_0x17cb29(_0x5c7f09._0x42a65e,-0xe5,-0xed,-0x1b3)]('|'),..._0x206a70?{'isContext':!![]}:{}};}function _0x17cb29(_0x2390bf,_0x2f43a4,_0x44cbb8,_0x5295eb){return _0x29b8eb(_0x2390bf-_0x2d4981._0x5df477,_0x2f43a4- -0x539,_0x44cbb8-0x16,_0x5295eb);}return null;}async function search(_0x4e3996){const _0x52a590={_0x1fd318:0x46,_0x133856:0x70f,_0x3053a6:0x5cb,_0x45d724:0x49,_0xb9d27a:0x3d,_0x12ec2f:0x239,_0x5e160a:0x1cd,_0x3d7024:0x5f7,_0x1422bf:0x677,_0xcfb10b:0x5ab,_0x565aca:0x27,_0x3ffed2:0x15c,_0x3a610f:0x4fd,_0x2d9680:0x60b,_0xbb5ed2:0x5e9,_0x3320d3:0x68f,_0x2324ad:0x603,_0x256fbf:0x770,_0x3ccfdf:0x6ce,_0x3850d0:0xc9,_0x5e7fd5:0x5ec,_0x13cc0f:0x71b,_0x5bf0b2:0x728,_0x4815bc:0x6c5,_0x5837c0:0x775,_0x4d2e04:0x64a,_0x3d9997:0x56f,_0x5a25a6:0x4af,_0x597132:0x7ae,_0x11f39f:0x676,_0x1b2e3b:0x534,_0x3642f6:0x5c9,_0x58441d:0x612,_0x8dcd3d:0x70d,_0x2e8677:0x74a,_0x289b53:0x676,_0x214b38:0x492,_0x376076:0x5c8,_0x4cf273:0x4cf,_0x382676:0x56f,_0x480c49:0x676,_0x44332f:0x6ec,_0x38633c:0x1d6,_0x44fbbd:0x5cd,_0x10d56c:0x84b,_0x40bc4e:0x59b,_0x5469d4:0x5ea,_0x433f88:0x2c,_0x208ff0:0x17c,_0x49f770:0xe8,_0xa1c9b5:0x689},_0x5e4ad3={_0x3bec16:0x493,_0x876b37:0x5b1,_0x3f1799:0x29f,_0x53db59:0x4b2,_0x2225ce:0x4ff,_0x2a2a1c:0x5fb,_0x55a556:0x52f,_0x338487:0x661,_0x4c98f3:0x7b6,_0x4a7773:0x6f0},_0x4064a4={_0x7b4142:0x247},_0x4ff255={_0x3f3263:0x2c1},_0x42186d={_0x27c96f:0xa1,_0x355b3b:0x2a,_0x426219:0xcf},_0xa43200={_0x366009:0xad},_0x350970={_0x442806:0x30,_0x59dd7c:0xe2},_0x44b9d5={_0x3ed54d:0x14e,_0x10db2d:0x645},_0xd9e2b9=await filepath();function _0x2b9d99(_0x4a5ee1,_0x43c7b1,_0x27f0a1,_0x1d3f6b){return _0x29b8eb(_0x4a5ee1-_0x44b9d5._0x3ed54d,_0x27f0a1- -_0x44b9d5._0x10db2d,_0x27f0a1-0x3,_0x4a5ee1);}if(_0x4e3996[_0x2b9d99(-0xaf,_0x52a590._0x1fd318,-0x35,0xa5)]){const _0x2557fd=await _0x5da7bb(_0x4e3996[_0x381875(0x69b,0x79f,_0x52a590._0x133856,_0x52a590._0x3053a6)])['catch'](()=>null);if(!_0x2557fd?.['isFile']())throw Object[_0x2b9d99(0x144,-_0x52a590._0x45d724,0x27,_0x52a590._0xb9d27a)](new Error(_0x2b9d99(-0x1b0,-0x22e,-_0x52a590._0x12ec2f,-_0x52a590._0x5e160a)+_0x4e3996['file']+'\x27'),{'code':_0x2b9d99(-0x13,-0x18,0x2a,-0xa5)});}else{const _0x3f4c18=await _0x5da7bb(_0x4e3996[_0x381875(0x806,0x664,0x6ce,_0x52a590._0x3d7024)])[_0x381875(_0x52a590._0x1422bf,0x489,_0x52a590._0xcfb10b,0x6a7)](()=>null);if(!_0x3f4c18?.['isDirectory']())throw Object[_0x2b9d99(0x10e,-0x11,_0x52a590._0x565aca,_0x52a590._0x3ffed2)](new Error(_0x381875(_0x52a590._0x3a610f,_0x52a590._0x2d9680,_0x52a590._0xbb5ed2,_0x52a590._0x3320d3)+_0x4e3996[_0x381875(_0x52a590._0x2324ad,_0x52a590._0x256fbf,_0x52a590._0x3ccfdf,0x65c)]+'\x27'),{'code':_0x2b9d99(0x146,_0x52a590._0x3850d0,0x2a,-0x124)});}const _0x29105b=['-nH',_0x381875(0x599,0x49e,0x4e1,0x427),_0x381875(_0x52a590._0x5e7fd5,_0x52a590._0x13cc0f,_0x52a590._0x5bf0b2,0x845),_0x381875(0x681,_0x52a590._0x4815bc,_0x52a590._0x5837c0,_0x52a590._0x4d2e04),_0x4e3996[_0x381875(0x538,0x680,_0x52a590._0x3d9997,_0x52a590._0x5a25a6)]],_0x196579=typeof _0x4e3996[_0x381875(0x75d,_0x52a590._0x597132,_0x52a590._0x11f39f,_0x52a590._0x1b2e3b)]===_0x381875(_0x52a590._0x3642f6,_0x52a590._0x58441d,0x5e3,0x535)&&_0x4e3996[_0x381875(_0x52a590._0x8dcd3d,_0x52a590._0x2e8677,_0x52a590._0x289b53,0x608)]>0x0;_0x196579&&_0x29105b[_0x381875(0x4ae,_0x52a590._0x214b38,_0x52a590._0x376076,_0x52a590._0x4cf273)]('-C',String(_0x4e3996[_0x381875(_0x52a590._0x382676,0x5f5,_0x52a590._0x480c49,_0x52a590._0x44332f)]),_0x2b9d99(-0xac,-0x17d,-0x11b,-_0x52a590._0x38633c));_0x4e3996['glob']&&!_0x4e3996[_0x381875(0x5e3,_0x52a590._0x44fbbd,_0x52a590._0x133856,_0x52a590._0x10d56c)]&&_0x29105b['push']('--glob',_0x4e3996[_0x381875(_0x52a590._0x40bc4e,0x55f,_0x52a590._0x5469d4,0x5c8)]);_0x29105b[_0x2b9d99(-_0x52a590._0x433f88,-0x2b9,-_0x52a590._0x208ff0,-_0x52a590._0x49f770)](_0x4e3996[_0x381875(_0x52a590._0x5837c0,0x664,_0x52a590._0x133856,_0x52a590._0xa1c9b5)]??_0x4e3996['cwd']);function _0x381875(_0x3a7844,_0x570f8e,_0x2737c7,_0x38d8f7){return _0x5a3b3d(_0x570f8e,_0x570f8e-_0x350970._0x442806,_0x2737c7-0x376,_0x38d8f7-_0x350970._0x59dd7c);}return await new Promise((_0x4d29a,_0x57c047)=>{const _0x357ca1={_0x1663a9:0x102,_0x1a1793:0x27,_0x266cf3:0x7a,_0x555640:0xe3,_0xcbbaba:0x4a,_0xb0d17a:0xf3,_0x327d3d:0x98,_0x54bc40:0x1cd,_0x195089:0x9f},_0x36e784=_0x2501f2(_0xd9e2b9,_0x29105b,{'cwd':_0x4e3996[_0x52b064(0x580,0x77e,0x6e5,0x63f)],'stdio':[_0x52b064(0x65f,_0x5e4ad3._0x3bec16,0x5f0,_0x5e4ad3._0x876b37),'pipe',_0x12d206(_0x5e4ad3._0x3f1799,0x269,0x26d,0x2a3)]});function _0x52b064(_0x332ae7,_0x3ba587,_0x235269,_0x9a0277){return _0x381875(_0x332ae7-_0xa43200._0x366009,_0x3ba587,_0x9a0277- -0x8f,_0x9a0277-0xa6);}let _0x21bc90='',_0xd83ecc='';_0x36e784[_0x52b064(_0x5e4ad3._0x53db59,0x3f1,0x4cd,0x498)]?.['on'](_0x52b064(0x62a,_0x5e4ad3._0x2225ce,0x5f2,_0x5e4ad3._0x2a2a1c),_0x421809=>{function _0x33b687(_0x4a8ee3,_0x1c6670,_0x304733,_0x317d35){return _0x12d206(_0x317d35- -0x206,_0x304733,_0x304733-0x132,_0x317d35-0xf4);}_0x21bc90+=_0x421809[_0x33b687(0x43,_0x42186d._0x27c96f,_0x42186d._0x355b3b,_0x42186d._0x426219)]();}),_0x36e784[_0x52b064(0x544,0x66f,0x668,_0x5e4ad3._0x55a556)]?.['on'](_0x52b064(0x6bf,_0x5e4ad3._0x338487,0x70f,0x5fb),_0x4c547b=>{const _0x307bc2={_0x196f45:0x11b,_0xc91896:0x699};function _0x5abee5(_0x5eacc1,_0xc68f80,_0x296f79,_0x3e9291){return _0x52b064(_0x5eacc1-0x176,_0x296f79,_0x296f79-_0x307bc2._0x196f45,_0xc68f80- -_0x307bc2._0xc91896);}_0xd83ecc+=_0x4c547b[_0x5abee5(-0xea,-0x20c,-_0x4ff255._0x3f3263,-0x17f)]();});function _0x12d206(_0x345509,_0x50d29e,_0x2d610e,_0x8dab98){return _0x381875(_0x345509-0x1b9,_0x50d29e,_0x345509- -_0x4064a4._0x7b4142,_0x8dab98-0x1ef);}_0x36e784['on']('close',_0x33fad1=>{const _0x440cad={_0x1bdeb1:0x98,_0x42bfaf:0x1b2,_0x15484e:0x476},_0x10f545={_0x183059:0x17f,_0x484096:0x49a};if(_0x33fad1===0x1&&_0x21bc90===''){_0x4d29a([]);return;}function _0x3ee473(_0x2e3af1,_0x22a712,_0x275fc0,_0x544aec){return _0x52b064(_0x2e3af1-0x14f,_0x2e3af1,_0x275fc0-_0x10f545._0x183059,_0x544aec- -_0x10f545._0x484096);}if(_0x33fad1!==0x0&&_0x33fad1!==0x1){_0x57c047(new Error(_0x157816(_0x357ca1._0x1663a9,-_0x357ca1._0x1a1793,0x6a,_0x357ca1._0x266cf3)+_0xd83ecc));return;}const _0x463a1c=_0x4e3996[_0x3ee473(-_0x357ca1._0x555640,_0x357ca1._0xcbbaba,-0x11c,-0x18)]??0x64;function _0x157816(_0x4afdd0,_0x4740e1,_0x34e2b5,_0x2b198b){return _0x52b064(_0x4afdd0-_0x440cad._0x1bdeb1,_0x34e2b5,_0x34e2b5-_0x440cad._0x42bfaf,_0x4afdd0- -_0x440cad._0x15484e);}const _0x4a1320=[];for(const _0xb9a191 of _0x21bc90['split'](/\r?\n/)){if(_0x4a1320[_0x3ee473(_0x357ca1._0xb0d17a,0x68,-0x6b,_0x357ca1._0x327d3d)]>=_0x463a1c)break;const _0x32c03e=parseMatchLine(_0xb9a191,_0x196579);if(_0x32c03e)_0x4a1320[_0x3ee473(-0x6e,0x1d2,_0x357ca1._0x54bc40,_0x357ca1._0x195089)](_0x32c03e);}_0x4d29a(_0x4a1320);}),_0x36e784['on'](_0x52b064(_0x5e4ad3._0x4c98f3,0x70a,_0x5e4ad3._0x4a7773,0x679),_0x57c047);});}function createGlobTool(_0x3986e6={}){const _0x2890ad={_0x508d02:0xd0,_0x16195e:0x101,_0x338268:0x137,_0x2ca118:0x18c,_0x166ad1:0x18f,_0x492047:0x170,_0x2011a8:0x83,_0x876b39:0x28,_0x14ad0e:0x136,_0x4e64c3:0x231,_0x4877ac:0xc4,_0x4906c9:0x105,_0xb8f696:0x1d9,_0x3c2b82:0x17c,_0x3d2060:0x123,_0x24257e:0x7f,_0x2fa91d:0xbe,_0x1476be:0x4f,_0x13c7ff:0xc8,_0x561112:0xa4,_0x5eb88f:0x66,_0x61b9b2:0x4c,_0x3de341:0x78,_0x1eb8e1:0xc7,_0x2ed7ba:0x178},_0x127364={_0x32fc2a:0x6cc,_0x5e1879:0x5a3,_0x1bb90c:0x5e7,_0x506a7e:0x4cf,_0x522db8:0x5f5,_0x15093c:0x611,_0x28bb36:0x6a0,_0x38b526:0x6d7,_0x38107c:0x6e3,_0x1c6d9d:0x7dd,_0x3177e2:0x775,_0x309171:0x727,_0x173a7c:0x7d7,_0x388884:0x787,_0x31413b:0x5f9,_0x3ceb48:0x66b,_0x111d9d:0x629,_0x720d8b:0x77a,_0x50955b:0x4af,_0xa4a5a:0x5a3,_0x16a4cb:0x6f4,_0x49b645:0x571,_0xeec95c:0x577,_0x3dbe74:0x535,_0x29075b:0x71d,_0x24ce78:0x4e7,_0x371025:0x59b,_0x3f58fc:0x5a7,_0x589cb0:0x54e,_0x2100c9:0x6a4,_0x6d44a9:0x6a1,_0x52ed31:0x721,_0x2d3f47:0x667,_0x534c61:0x572,_0x5d9829:0x614,_0x379bd7:0x70f,_0x1cb0a8:0x6ae,_0x6a120a:0x5e9,_0x1af0f4:0x5c0,_0x5cda74:0x5c4,_0x41d151:0x595,_0x31c5b1:0x457,_0x3717ae:0x54e,_0x41ebde:0x579,_0x53cd32:0x648,_0x482917:0x7c2,_0x2b9ada:0x530,_0x35a21f:0x670},_0x130136={_0x1bb1e4:0x694,_0xd57963:0x16a},_0x311921={_0x578384:0x4e3,_0xc7a9f1:0x3a},_0x3840b9=_0x56fdaf[_0x349451(-0x8f,-_0x2890ad._0x508d02,0x91,-_0x2890ad._0x16195e)](_0x3986e6[_0x168061(0xc2,_0x2890ad._0x338268,_0x2890ad._0x2ca118,_0x2890ad._0x166ad1)]??process[_0x168061(_0x2890ad._0x492047,_0x2890ad._0x2011a8,-_0x2890ad._0x876b39,0xec)]()),_0x3ad9fd=(_0x3986e6[_0x349451(-_0x2890ad._0x14ad0e,-0x198,-0x20d,-_0x2890ad._0x4e64c3)]??[])[_0x349451(0xdc,_0x2890ad._0x4877ac,_0x2890ad._0x4906c9,_0x2890ad._0xb8f696)](_0x2dcf63=>_0x56fdaf['resolve'](_0x2dcf63)),_0x34c2bb=_0x3986e6['limit']??0x64;function _0x168061(_0x53604b,_0x12f4e9,_0x3c651e,_0x5badf5){return _0x29b8eb(_0x53604b-0x168,_0x5badf5- -_0x311921._0x578384,_0x3c651e-_0x311921._0xc7a9f1,_0x3c651e);}const _0x50fd69=_0x3986e6[_0x349451(-_0x2890ad._0x3c2b82,-0x25d,-0xcf,-_0x2890ad._0x3d2060)]??_0x349451(-_0x2890ad._0x24257e,-_0x2890ad._0x2fa91d,_0x2890ad._0x1476be,-_0x2890ad._0x13c7ff);function _0x349451(_0x268030,_0x357020,_0x3e25e2,_0x4f0e77){return _0x29b8eb(_0x268030-0x1d7,_0x268030- -0x56f,_0x3e25e2-0x19c,_0x3e25e2);}return defineTool({'name':_0x50fd69,'description':_0x168061(0x1eb,0x105,0x250,0x137),'inputSchema':{'type':_0x168061(0x115,-_0x2890ad._0x1476be,0x90,_0x2890ad._0x561112),'properties':{'pattern':{'type':_0x168061(_0x2890ad._0x5eb88f,_0x2890ad._0x61b9b2,0x51,0x104)},'path':{'type':_0x349451(_0x2890ad._0x3de341,0x151,-0x7a,0xcc)},'limit':{'type':_0x168061(_0x2890ad._0x14ad0e,-0x15,_0x2890ad._0x1eb8e1,0x1)}},'required':[_0x168061(-0x70,-0x73,-_0x2890ad._0x2ed7ba,-0x73)]},async *'execute'(_0x352916){const _0x108f90={_0x494ae0:0x14c,_0x2c04c8:0x616};if(_0x352916[_0xc08eb7(0x544,_0x127364._0x32fc2a,_0x127364._0x5e1879,_0x127364._0x1bb90c)]['trim']()[_0xc08eb7(_0x127364._0x506a7e,0x65c,_0x127364._0x522db8,_0x127364._0x15093c)]===0x0)throw new ToolExecutionError(_0x73c1d5(0x6db,_0x127364._0x28bb36,_0x127364._0x38b526,0x678),{});const _0x88b700=resolveAllowedPath(_0x3840b9,_0x3ad9fd,_0x352916[_0xc08eb7(_0x127364._0x38107c,_0x127364._0x1c6d9d,0x711,_0x127364._0x3177e2)]??'.'),_0x3f90cf=await _0x31e8f5(_0x88b700)[_0xc08eb7(0x6d8,0x53e,0x5df,_0x127364._0x309171)](()=>null);if(!_0x3f90cf?.[_0xc08eb7(0x691,0x5bd,0x5c9,0x4f0)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0x352916['path']??'.'),{'path':_0x352916[_0x73c1d5(_0x127364._0x173a7c,_0x127364._0x388884,_0x127364._0x31413b,0x703)]??'.'});const _0x59703f=_0x352916['limit']??_0x34c2bb,_0x276a62=Math['max'](0x1,Math[_0x73c1d5(_0x127364._0x3ceb48,0x7cc,_0x127364._0x111d9d,_0x127364._0x720d8b)](_0x59703f)),_0x4a3f20=[];function _0xc08eb7(_0xc6dd7,_0x39b35e,_0x57f1c3,_0x4e4f97){return _0x168061(_0xc6dd7-_0x108f90._0x494ae0,_0x39b35e-0xff,_0x4e4f97,_0x57f1c3-_0x108f90._0x2c04c8);}let _0x1ab42f=![];for await(const _0x949a1f of files({'cwd':_0x88b700,'glob':[_0x352916[_0xc08eb7(0x465,_0x127364._0x50955b,_0x127364._0xa4a5a,_0x127364._0x16a4cb)]]})){if(_0x4a3f20['length']>=_0x276a62){_0x1ab42f=!![];break;}const _0x538266=await _0x31e8f5(_0x56fdaf[_0xc08eb7(_0x127364._0x49b645,0x683,0x587,_0x127364._0xeec95c)](_0x88b700,_0x949a1f))[_0xc08eb7(_0x127364._0x3dbe74,_0x127364._0x29075b,0x5df,0x639)](()=>null);_0x4a3f20[_0xc08eb7(_0x127364._0x24ce78,_0x127364._0x371025,0x5fc,0x6d5)]({'path':_0x949a1f,'mtime':_0x538266?.[_0xc08eb7(_0x127364._0x3f58fc,_0x127364._0x589cb0,0x667,_0x127364._0x2100c9)]??0x0});}_0x4a3f20['sort']((_0x413338,_0x5f468f)=>_0x5f468f[_0xc08eb7(0x800,0x7d2,0x71b,0x7aa)]-_0x413338['mtime']);const _0x45d461=_0x4a3f20[_0x73c1d5(_0x127364._0x6d44a9,0x7e9,_0x127364._0x52ed31,0x770)](_0x5d7877=>_0x5d7877[_0xc08eb7(0x6b2,0x69d,0x711,0x607)]),_0x4acc40=_0x45d461[_0x73c1d5(_0x127364._0x2d3f47,0x550,_0x127364._0x534c61,0x5e7)]===0x0?_0xc08eb7(_0x127364._0x5d9829,0x805,_0x127364._0x379bd7,_0x127364._0x1cb0a8)+_0x352916[_0x73c1d5(_0x127364._0x6a120a,_0x127364._0x1af0f4,_0x127364._0x5cda74,_0x127364._0x41d151)]:''+_0x45d461[_0x73c1d5(_0x127364._0x31c5b1,_0x127364._0x3717ae,0x521,_0x127364._0x41ebde)]('\x0a')+(_0x1ab42f?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');yield createToolOutput(_0x4acc40,{'pattern':_0x352916[_0xc08eb7(_0x127364._0x53cd32,0x6eb,0x5a3,0x578)],'searchPath':_0x56fdaf[_0x73c1d5(_0x127364._0x482917,0x59a,_0x127364._0x2b9ada,_0x127364._0x35a21f)](_0x3840b9,_0x88b700)||'.','matches':_0x45d461,'count':_0x45d461['length'],'truncated':_0x1ab42f});function _0x73c1d5(_0x3aceae,_0x33ddd3,_0x904945,_0x19b4e5){return _0x349451(_0x19b4e5-_0x130136._0x1bb1e4,_0x33ddd3-0x14e,_0x3aceae,_0x19b4e5-_0x130136._0xd57963);}return void 0x0;}});}import{stat as _0x2c35a3}from'fs/promises';import*as _0x2e1638 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x5e3113={}){const _0x55b768={_0x330fc1:0xa3,_0xa6bea7:0x197,_0x7f5a6d:0x85,_0x25bb27:0x114,_0x2440ee:0x23d,_0x2c856a:0xac,_0x140942:0x32,_0x5c9c61:0xc0,_0x300716:0x76,_0x44f097:0x6e,_0x186526:0x1b,_0x2209fd:0x138,_0x2a8459:0x14e,_0x13d7bc:0x267,_0x72df07:0x2cb,_0xfdd54c:0x25f,_0x136f1a:0x89,_0x5d310d:0x169,_0x52e680:0x244,_0x13bc92:0x1bf,_0x49d7a9:0x92,_0x904448:0x1f},_0x158670={_0x163f34:0x20c,_0x350c0f:0xfe,_0x347568:0x170,_0x25ad46:0x1d5,_0x4a3e3b:0x87,_0x37fcb3:0x209,_0xe93bfb:0x196,_0x3d2a0b:0x2a1,_0x210df7:0x2fd,_0x1448db:0x300,_0x35e72f:0x2de,_0xefa19e:0x350,_0x17c931:0xa0,_0x8491f0:0x71,_0x1bcf21:0x204,_0x2c5c57:0x10b,_0x57fce6:0x1b2,_0x3edea4:0x164,_0x515c31:0x1e6,_0x26d0ea:0xfe,_0x539d01:0x53,_0x2176d7:0x114,_0x9647a8:0x183,_0x378277:0x137,_0x3e72d6:0x277,_0x34b7bb:0x167,_0x2d719c:0x47,_0x22aa72:0x14c,_0x21d956:0x1b2,_0x4fe9c5:0x1ad,_0x56a0db:0xfb,_0x2efa29:0x12f,_0xd98762:0x317,_0x4c4243:0x273,_0x98fdc6:0x2b4,_0x1ad62e:0x102,_0x10c270:0x1f0,_0x2499fe:0x1c2,_0x160142:0x95,_0x49dfff:0x22b,_0x246604:0x13b,_0x5831f0:0x22e,_0x2515e3:0x230,_0x5a5201:0x157,_0x5b3c97:0x7d,_0xabff2a:0x1cc,_0x46cc63:0x332,_0x3d7b29:0x21f,_0x2a10f0:0x22f,_0x1b8e05:0x214,_0x10874d:0x30,_0x23ff67:0x76,_0x6a5a9:0x254,_0x223ecf:0x272,_0x160fc6:0x26,_0xc830f3:0x242,_0xbb7bad:0x170,_0x37c966:0x152,_0xdad38d:0x9a,_0x3204e4:0x2d1,_0x50215c:0x207,_0x18a841:0xf4,_0x27c042:0x1fc,_0x3c8885:0x119,_0x202e3e:0x1ba,_0x5c4b8b:0x1aa,_0xe51c58:0x25,_0x2cb0d8:0x13c,_0x1c62c6:0x27b,_0x4bfd43:0x1f3,_0x5348e2:0x42d,_0x31b602:0x2f0,_0x1bddd3:0x13e,_0x213871:0x1da,_0x129695:0x88,_0x48eaa2:0xd1,_0x197627:0x2dc,_0x1c4e4f:0x2ba,_0x40a1b4:0x207},_0x2ee7b4={_0x13ea3e:0x180,_0x478841:0x197,_0x1eafe4:0x188};function _0x4a41f4(_0x2e9e51,_0x5bb11d,_0x85c0c4,_0xdc77b8){return _0x5a3b3d(_0x2e9e51,_0x5bb11d-_0x2ee7b4._0x13ea3e,_0x85c0c4- -_0x2ee7b4._0x478841,_0xdc77b8-_0x2ee7b4._0x1eafe4);}const _0x534f5d=_0x2e1638['resolve'](_0x5e3113['defaultCwd']??process[_0x251769(0x111,0x191,_0x55b768._0x330fc1,_0x55b768._0xa6bea7)]()),_0x296fa6=(_0x5e3113[_0x251769(-_0x55b768._0x7f5a6d,-_0x55b768._0x25bb27,0x37,-0x3a)]??[])[_0x4a41f4(0x1cd,0xfb,_0x55b768._0x2440ee,0x27d)](_0xa5be93=>_0x2e1638[_0x4a41f4(0x161,0x20c,0xd2,-0x69)](_0xa5be93));function _0x251769(_0x442444,_0x5e0af4,_0x4d9638,_0x513a89){return _0x29b8eb(_0x442444-0xd7,_0x442444- -0x4be,_0x4d9638-0x22,_0x4d9638);}const _0x2029cb=_0x5e3113[_0x251769(-_0x55b768._0x2c856a,-_0x55b768._0x140942,-_0x55b768._0x5c9c61,_0x55b768._0x300716)]??0x64,_0x460463=_0x5e3113[_0x4a41f4(-0x48,-_0x55b768._0x44f097,-_0x55b768._0x186526,-0x13a)]??_0x4a41f4(_0x55b768._0x2209fd,_0x55b768._0x2a8459,_0x55b768._0x13d7bc,0x146);return defineTool({'name':_0x460463,'description':_0x4a41f4(0x103,_0x55b768._0x72df07,0x1a7,_0x55b768._0xfdd54c),'inputSchema':{'type':_0x251769(0xc9,0x1b9,_0x55b768._0x136f1a,_0x55b768._0x5d310d),'properties':{'pattern':{'type':_0x251769(0x129,0x21b,0x9c,0x128)},'path':{'type':_0x4a41f4(0x28d,0x258,0x1d9,_0x55b768._0x52e680)},'include':{'type':'string'},'limit':{'type':_0x251769(0x26,0x56,-0x100,0x157)},'context':{'type':_0x4a41f4(_0x55b768._0x13bc92,_0x55b768._0x49d7a9,0xd6,-_0x55b768._0x904448)}},'required':['pattern']},async *'execute'(_0x5afd9c){const _0x22c459={_0x3c96d8:0x110},_0x370e00={_0x19c9b1:0x9c};if(_0x5afd9c[_0x2f0a40(0x92,_0x158670._0x163f34,_0x158670._0x350c0f,_0x158670._0x347568)]['trim']()[_0x2f0a40(0x10e,0x1b0,0x173,0x1c2)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x2b3e02=resolveAllowedPath(_0x534f5d,_0x296fa6,_0x5afd9c[_0x2f0a40(0x2b5,_0x158670._0x25ad46,0x20b,0x2de)]??'.'),_0xbd26=await _0x2c35a3(_0x2b3e02)['catch'](()=>null),_0x3e326e=_0xbd26?.['isFile']()??![],_0x2fb9d8=_0xbd26?.[_0x2f0a40(0xb6,_0x158670._0x4a3e3b,_0x158670._0x37fcb3,_0x158670._0xe93bfb)]()??![];if(!_0x3e326e&&!_0x2fb9d8)throw new ToolExecutionError(_0x480b2e(0x23c,_0x158670._0x3d2a0b,0x387,_0x158670._0x210df7)+(_0x5afd9c[_0x2f0a40(0x3d9,0x18e,_0x158670._0x1448db,_0x158670._0x35e72f)]??'.'),{'path':_0x5afd9c[_0x480b2e(0x1c7,0x26c,_0x158670._0x347568,_0x158670._0xefa19e)]??'.'});function _0x480b2e(_0x57ab0c,_0x18ae4c,_0x1c24e4,_0x4ea5e3){return _0x4a41f4(_0x4ea5e3,_0x18ae4c-0x5e,_0x18ae4c-_0x370e00._0x19c9b1,_0x4ea5e3-0x28);}const _0xd1adad=_0x5afd9c[_0x480b2e(0x1ef,_0x158670._0x17c931,_0x158670._0x8491f0,0x1cc)]??_0x2029cb,_0x1700d7=Math[_0x2f0a40(0x231,_0x158670._0x1bcf21,_0x158670._0x2c5c57,_0x158670._0x57fce6)](0x1,Math['trunc'](_0xd1adad)),_0x3a9434=await search({'cwd':_0x2fb9d8?_0x2b3e02:_0x2e1638[_0x2f0a40(0x14a,0x16,_0x158670._0x3edea4,0xe8)](_0x2b3e02),'pattern':_0x5afd9c[_0x480b2e(_0x158670._0x515c31,_0x158670._0x26d0ea,0x25,-_0x158670._0x539d01)],'glob':_0x2fb9d8?_0x5afd9c[_0x2f0a40(0x2f4,0xf8,_0x158670._0x2176d7,0x207)]:void 0x0,'limit':_0x1700d7,'file':_0x3e326e?_0x2b3e02:void 0x0,'context':_0x5afd9c[_0x2f0a40(0x19c,_0x158670._0x9647a8,_0x158670._0x378277,_0x158670._0x3e72d6)]}),_0x1dd311=new Map();for(const _0x1e6316 of _0x3a9434){if(!_0x1dd311[_0x2f0a40(_0x158670._0x34b7bb,-_0x158670._0x2d719c,_0x158670._0x22aa72,0xfd)](_0x1e6316['filePath'])){const _0x2071c4=await _0x2c35a3(_0x1e6316[_0x2f0a40(0x17d,_0x158670._0x21d956,0xa3,_0x158670._0x4fe9c5)])[_0x2f0a40(_0x158670._0x56a0db,_0x158670._0x2efa29,0xe4,0x1ac)](()=>null);_0x1dd311[_0x2f0a40(_0x158670._0xd98762,0x1be,_0x158670._0x4c4243,0x1f5)](_0x1e6316[_0x2f0a40(_0x158670._0x98fdc6,0x2a5,_0x158670._0x1ad62e,0x1ad)],{'matches':[],'mtime':_0x2071c4?.[_0x480b2e(_0x158670._0x10c270,_0x158670._0x2499fe,_0x158670._0x160142,0x1a8)]??0x0});}_0x1dd311['get'](_0x1e6316[_0x480b2e(_0x158670._0x49dfff,_0x158670._0x246604,0xee,_0x158670._0x5831f0)])?.['matches'][_0x480b2e(_0x158670._0x2515e3,_0x158670._0x5a5201,_0x158670._0x5b3c97,_0x158670._0xabff2a)](_0x1e6316);}function _0x2f0a40(_0x552581,_0x3a690b,_0x2366b4,_0x1c5d95){return _0x4a41f4(_0x552581,_0x3a690b-0x164,_0x1c5d95-0x10e,_0x1c5d95-_0x22c459._0x3c96d8);}const _0x32e668=[..._0x1dd311[_0x2f0a40(0x261,_0x158670._0x46cc63,0x2cf,_0x158670._0x3d7b29)]()]['sort']((_0x2e7b60,_0x4d61d1)=>_0x4d61d1[0x1][_0x2f0a40(0x28b,0x3dc,0x29c,0x2e8)]-_0x2e7b60[0x1][_0x480b2e(0x337,0x276,0x23d,0x2f0)]),_0x3cc23c=_0x3a9434[_0x2f0a40(_0x158670._0x2a10f0,0x28d,0x1e1,_0x158670._0x1b8e05)](_0x30550b=>!_0x30550b[_0x2f0a40(0x1ec,0x276,0x1ff,0x2ed)])[_0x2f0a40(0x2ab,0x30f,0x80,0x1c2)],_0x4ebb7b=_0x3a9434[_0x480b2e(0x10c,0x150,0x1d4,_0x158670._0x10874d)]>=_0x1700d7,_0x3811d8=_0x3e326e?_0x2e1638[_0x480b2e(0x59,_0x158670._0x23ff67,-0x2c,0x9f)](_0x2b3e02):_0x2b3e02;let _0x11fdc5='';if(_0x3a9434[_0x480b2e(_0x158670._0x6a5a9,0x150,0xf1,_0x158670._0x223ecf)]===0x0)_0x11fdc5='No\x20matches\x20found\x20for\x20pattern:\x20'+_0x5afd9c[_0x2f0a40(_0x158670._0x160fc6,_0x158670._0xc830f3,0x256,_0x158670._0xbb7bad)];else{_0x11fdc5=_0x2f0a40(_0x158670._0x37c966,_0x158670._0xdad38d,0x24d,0x127)+_0x3cc23c+_0x480b2e(0x18c,0x2bd,0x3ac,0x3d6)+(_0x3cc23c===0x1?'':'es')+'\x0a';for(const [_0x4cac9f,_0x15272a]of _0x32e668){const _0x3620ef=_0x3e326e?_0x2e1638[_0x480b2e(0x365,_0x158670._0x3204e4,_0x158670._0x50215c,0x2af)](_0x4cac9f):_0x2e1638[_0x480b2e(_0x158670._0x18a841,0x1d9,0x297,_0x158670._0x27c042)](_0x3811d8,_0x4cac9f);_0x11fdc5+='\x0a'+_0x3620ef+':\x0a';for(const _0x4e5103 of _0x15272a[_0x480b2e(0x165,0x19a,0x71,_0x158670._0x17c931)]){const _0x4071f5=_0x4e5103[_0x480b2e(0x32,0x10a,_0x158670._0x3c8885,_0x158670._0x202e3e)]['length']>MAX_LINE_LENGTH?_0x4e5103[_0x480b2e(0x1d5,0x10a,_0x158670._0x5c4b8b,_0x158670._0xe51c58)]['slice'](0x0,MAX_LINE_LENGTH)+'...':_0x4e5103[_0x480b2e(_0x158670._0x2cb0d8,0x10a,-0x41,0xca)],_0x3356c4=_0x4e5103[_0x480b2e(_0x158670._0xefa19e,_0x158670._0x1c62c6,0x29d,_0x158670._0x4bfd43)]?'\x20\x20':'>\x20';_0x11fdc5+=_0x3356c4+_0x2f0a40(0x286,_0x158670._0x5348e2,0x22c,_0x158670._0x31b602)+_0x4e5103['lineNum']+':\x20'+_0x4071f5+'\x0a';}}_0x4ebb7b&&(_0x11fdc5+=_0x2f0a40(0x26a,_0x158670._0x1bddd3,_0x158670._0x213871,0x238));}const _0x57e9c1={'searchPath':_0x2e1638['relative'](_0x534f5d,_0x2b3e02)||'.','pattern':_0x5afd9c[_0x2f0a40(0x36,0x117,0x73,0x170)],'matchCount':_0x3cc23c,'fileCount':_0x1dd311[_0x480b2e(_0x158670._0x129695,_0x158670._0x48eaa2,0x1d7,_0x158670._0x37c966)],'truncated':_0x4ebb7b};return _0x2fb9d8&&_0x5afd9c['include']!==void 0x0&&(_0x57e9c1[_0x2f0a40(_0x158670._0x5a5201,_0x158670._0x197627,0x156,0x207)]=_0x5afd9c[_0x2f0a40(_0x158670._0x1c4e4f,0xca,0x241,_0x158670._0x40a1b4)]),yield createToolOutput(_0x11fdc5['trim'](),_0x57e9c1),void 0x0;}});}import{readdir as _0x5dd67b,readFile as _0x3edb12,stat as _0x3d78d9}from'fs/promises';import*as _0x459b3f from'path';import*as _0x341657 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x251f96,_0x394bd6){const _0x52eed9={_0x3ea917:0x92,_0x266557:0x6c,_0x301091:0xf7,_0x3069a5:0x161},_0x319780={_0x31f5f9:0x8d,_0x57852a:0x175,_0x1bad02:0x3b},_0x9b8320={_0x325c51:0x7b};if(_0x394bd6>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x9e067f(_0x4c653e,_0x193c6a,_0x36f5b9,_0x95f517){return _0x29b8eb(_0x4c653e-0x130,_0x193c6a- -0x5b9,_0x36f5b9-_0x9b8320._0x325c51,_0x95f517);}function _0xbe1b05(_0x5b96e7,_0x57a921,_0x4629b8,_0x2a1c35){return _0x5a3b3d(_0x2a1c35,_0x57a921-_0x319780._0x31f5f9,_0x5b96e7- -_0x319780._0x57852a,_0x2a1c35-_0x319780._0x1bad02);}const _0x132157=await _0x3edb12(_0x251f96)[_0x9e067f(-0xee,-0x10d,-0x19d,-0x2e)](()=>null);if(!_0x132157||isProbablyBinary(_0x132157))return void 0x0;return _0x132157['toString'](_0x9e067f(_0x52eed9._0x3ea917,_0x52eed9._0x266557,-0x38,-0x9))[_0xbe1b05(0x221,0x1cf,0x2f4,0xe8)](/\r?\n/)[_0x9e067f(-0x211,-_0x52eed9._0x301091,-_0x52eed9._0x3069a5,-0x123)];}function createLsTool(_0x556424={}){const _0xd05778={_0x4bff44:0x124,_0x3e7134:0x12d,_0x34b63c:0x214,_0x114470:0x16c,_0x183fb5:0x1a3,_0x3a247f:0x17b,_0x20e18b:0x3e,_0x414906:0x28,_0x56d005:0x1d4,_0xebe83:0x1b3,_0xd669d2:0x1e6,_0x4d8e65:0x2bf,_0x39dc17:0xca,_0x2399b2:0xbc,_0x182495:0x18a,_0x15edc8:0x81,_0x12f61b:0x95,_0x36f7fe:0x41,_0x14f21c:0x161,_0x4cceb0:0xbd},_0x20b348={_0x4921a2:0x22a,_0x42112d:0x2c3,_0x5f93a6:0xf8,_0x34c621:0xb,_0xb35a39:0x19,_0x3eb23c:0x3b,_0x46b2e9:0x10a,_0x1f1125:0x714,_0xe4420d:0x62c,_0x4f0e3f:0x325,_0x101846:0xbf,_0x5c8e50:0xdc,_0x5f404b:0x41,_0x4644f2:0xfe,_0x369409:0x1f5,_0x1f0bff:0x63b,_0x3fcd0e:0x5eb,_0x49a97b:0x4c5,_0x25b9b3:0x5c9,_0x1c7050:0x56a,_0x531171:0x47,_0x515d5d:0x3a3,_0x2b456a:0xe2,_0x398d51:0xe3,_0x5410a3:0x153,_0x428766:0x1f8,_0x4b73e7:0x18e,_0x4e3aa7:0x6a,_0xb34640:0x2ce,_0x4609e3:0x336,_0x9977c0:0x1c1,_0x183d21:0x8f,_0x3b7cd3:0x24,_0x53e818:0x503,_0x5f1c85:0x581,_0x1b9206:0x649,_0x2dadbe:0x57b,_0x56b7a5:0x518,_0x8337df:0x52e,_0x1d932b:0x115,_0x404ea7:0x121,_0x4a51dd:0x5cd,_0x352b18:0x4da,_0x649f4b:0x519,_0x322dc9:0x11f,_0x5a6d6d:0x4b,_0x2ca3b1:0xd,_0x177d6b:0x10e,_0x447d14:0xf4},_0x43dec0={_0x4a9b6b:0x259,_0x15c39f:0x13c},_0x56124d={_0x2e4d1c:0x1ea},_0x14834f={_0x18a7bc:0x28f,_0xc9bf88:0x5a},_0x2c8429={_0x4a447d:0x5};function _0x469116(_0x267d85,_0x26d538,_0x4979b1,_0x220dfd){return _0x5a3b3d(_0x220dfd,_0x26d538-0x166,_0x26d538- -0x396,_0x220dfd-_0x2c8429._0x4a447d);}const _0x31e5d0=_0x459b3f[_0x469116(-_0xd05778._0x4bff44,-_0xd05778._0x3e7134,-0x167,-0x14c)](_0x556424[_0x1168db(_0xd05778._0x34b63c,_0xd05778._0x114470,_0xd05778._0x183fb5,0x121)]??process[_0x469116(-_0xd05778._0x3a247f,-_0xd05778._0x20e18b,-0xa1,_0xd05778._0x414906)]()),_0xbfd1cd=(_0x556424[_0x469116(-0xd2,-_0xd05778._0x56d005,-0x1ab,-0x25a)]??[])[_0x1168db(0x0,0x145,0x21a,_0xd05778._0xebe83)](_0xfca2ad=>_0x459b3f['resolve'](_0xfca2ad));function _0x1168db(_0x130541,_0x367903,_0x16dadb,_0x582d50){return _0x5a3b3d(_0x130541,_0x367903-0x7c,_0x367903- -_0x14834f._0x18a7bc,_0x582d50-_0x14834f._0xc9bf88);}const _0x25a0d2=_0x556424[_0x469116(-0x23c,-0x21a,-_0xd05778._0xd669d2,-_0xd05778._0x4d8e65)]??'Ls';return defineTool({'name':_0x25a0d2,'description':_0x1168db(-0x72,-0x3a,-_0xd05778._0x39dc17,_0xd05778._0x2399b2),'inputSchema':{'type':_0x1168db(_0xd05778._0x182495,_0xd05778._0x15edc8,_0xd05778._0x12f61b,-_0xd05778._0x36f7fe),'properties':{'path':{'type':'string'},'limit':{'type':_0x1168db(-_0xd05778._0x14f21c,-0x22,-_0xd05778._0x4cceb0,-0x91)}}},async *'execute'(_0x4c5203){const _0xb20ced=_0x4c5203[_0x54cebf(_0x20b348._0x4921a2,0x321,_0x20b348._0x42112d,0x2fa)]??'.';function _0x2a1c84(_0x37267f,_0x129935,_0xeea836,_0x21e9d4){return _0x1168db(_0x37267f,_0x21e9d4-0x553,_0xeea836-0x1df,_0x21e9d4-_0x56124d._0x2e4d1c);}const _0x390a76=resolveAllowedPath(_0x31e5d0,_0xbfd1cd,_0xb20ced),_0x2e0ec3=await _0x3d78d9(_0x390a76)[_0x54cebf(_0x20b348._0x5f93a6,-_0x20b348._0x34c621,0xf5,0x219)](()=>null);if(!_0x2e0ec3?.[_0x54cebf(0xe2,_0x20b348._0xb35a39,-_0x20b348._0x3eb23c,_0x20b348._0x46b2e9)]())throw new ToolExecutionError(_0x2a1c84(0x52c,_0x20b348._0x1f1125,0x5f8,_0x20b348._0xe4420d)+_0xb20ced,{'path':_0xb20ced});const _0x5ccf23=_0x4c5203[_0x2a1c84(0x576,_0x20b348._0x4f0e3f,0x4d9,0x45f)]??0x3e8,_0x569111=Math[_0x54cebf(_0x20b348._0x101846,_0x20b348._0x5c8e50,-0x8b,-_0x20b348._0x5f404b)](Math[_0x54cebf(_0x20b348._0x4644f2,0x14,0x54,0x249)](Math[_0x54cebf(0x2a1,_0x20b348._0x369409,0x1fd,0x3b2)](_0x5ccf23),0x1),0x2710);function _0x54cebf(_0x519912,_0x4417fe,_0x4fcd32,_0x52271d){return _0x469116(_0x519912-0x1dd,_0x519912-_0x43dec0._0x4a9b6b,_0x4fcd32-_0x43dec0._0x15c39f,_0x4fcd32);}const _0x304667=await _0x5dd67b(_0x390a76),_0x53c124=[];for(const _0x3f2893 of _0x304667[_0x2a1c84(_0x20b348._0x1f0bff,_0x20b348._0x3fcd0e,_0x20b348._0x49a97b,0x506)](0x0,_0x569111)){const _0x20cbb6=_0x459b3f['join'](_0x390a76,_0x3f2893),_0x343dd=await _0x3d78d9(_0x20cbb6)[_0x2a1c84(_0x20b348._0x25b9b3,_0x20b348._0x1c7050,0x506,0x4f9)](()=>null);if(!_0x343dd)continue;let _0x173542=_0x54cebf(0x10c,0x1bf,_0x20b348._0x531171,-0x40);if(_0x343dd[_0x2a1c84(_0x20b348._0x515d5d,0x494,0x569,0x46c)]())_0x173542='file';else{if(_0x343dd[_0x54cebf(_0x20b348._0x2b456a,_0x20b348._0x398d51,_0x20b348._0x5410a3,_0x20b348._0x428766)]())_0x173542=_0x54cebf(_0x20b348._0x4b73e7,_0x20b348._0x4e3aa7,_0x20b348._0xb34640,0x247);else{if(_0x343dd[_0x54cebf(0x2ca,_0x20b348._0x4609e3,0x373,0x306)]())_0x173542=_0x54cebf(_0x20b348._0x9977c0,0x2d3,0x1ad,0x30e);}}const _0x488da7={'name':_0x3f2893,'type':_0x173542,'size':_0x343dd[_0x54cebf(_0x20b348._0x183d21,-0x82,0x1a8,_0x20b348._0x3b7cd3)],'mtime':_0x343dd[_0x2a1c84(0x4f6,_0x20b348._0x53e818,0x55f,_0x20b348._0x5f1c85)],'mode':_0x343dd[_0x2a1c84(_0x20b348._0x1b9206,_0x20b348._0x2dadbe,_0x20b348._0x56b7a5,0x586)]},_0x2e9db8=_0x173542===_0x2a1c84(_0x20b348._0x8337df,0x776,0x5cd,0x65d)?await countTextLines(_0x20cbb6,_0x343dd[_0x54cebf(0x8f,0x135,0x15b,0x1db)]):void 0x0;if(_0x2e9db8!==void 0x0)_0x488da7['lines']=_0x2e9db8;_0x53c124[_0x54cebf(_0x20b348._0x1d932b,0x10b,0x1f1,_0x20b348._0x404ea7)](_0x488da7);}_0x53c124['sort']((_0x357283,_0x5e7e35)=>_0x357283['name']['localeCompare'](_0x5e7e35[_0x54cebf(0x3f,-0x84,0x13d,-0x48)]));const _0x3d700c={'path':_0xb20ced,'total':_0x53c124[_0x2a1c84(_0x20b348._0x4a51dd,_0x20b348._0x352b18,_0x20b348._0x649f4b,0x50f)],'truncated':_0x304667[_0x54cebf(0x10e,0xf1,0x211,-0x14)]>_0x569111,'entries':_0x53c124};return yield createToolOutput(_0x341657[_0x54cebf(0x235,0x2c1,0x295,0x367)](_0x3d700c,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0xb20ced,'total':_0x53c124[_0x54cebf(0x10e,_0x20b348._0x322dc9,_0x20b348._0x5a6d6d,_0x20b348._0x2ca3b1)],'truncated':_0x304667[_0x54cebf(_0x20b348._0x177d6b,0x1d,_0x20b348._0x447d14,0x1db)]>_0x569111,'limit':_0x569111,'entries':_0x53c124}),void 0x0;}});}import{stat as _0x524210}from'fs/promises';import _0x4158e2 from'path';import{fileURLToPath as _0x5217f5}from'url';function severityName(_0x4a5f80){const _0x4da00d={_0x5232ea:0x6cc,_0x5bbea6:0x204,_0x1283e3:0x24d,_0x2477e3:0x193,_0xa3c299:0x669,_0x1279bd:0x65c,_0x5f4dd2:0x664,_0x164197:0x178,_0xaafacf:0x102},_0x1e5c91={_0x3c8905:0x143},_0x3129aa={_0x56f67f:0x1a,_0x1b357e:0xc6,_0x1bbd53:0x6f};function _0x4f3675(_0xc56077,_0x45fbff,_0x586d5a,_0x1e31ee){return _0x5a3b3d(_0x1e31ee,_0x45fbff-_0x3129aa._0x56f67f,_0x586d5a- -_0x3129aa._0x1b357e,_0x1e31ee-_0x3129aa._0x1bbd53);}function _0x4bd003(_0x415ac6,_0x30b733,_0x2bd117,_0x4a8bf4){return _0x29b8eb(_0x415ac6-0x1ac,_0x30b733-0x112,_0x2bd117-_0x1e5c91._0x3c8905,_0x4a8bf4);}switch(_0x4a5f80){case 0x1:return _0x4bd003(0x81b,0x6d9,_0x4da00d._0x5232ea,0x73f);case 0x2:return _0x4f3675(_0x4da00d._0x5bbea6,_0x4da00d._0x1283e3,_0x4da00d._0x2477e3,0x1ef);case 0x3:return _0x4bd003(_0x4da00d._0xa3c299,0x618,_0x4da00d._0x1279bd,_0x4da00d._0x5f4dd2);case 0x4:return _0x4f3675(0x86,0x1d9,_0x4da00d._0x164197,0x2b);default:return _0x4f3675(0x11e,0x158,_0x4da00d._0xaafacf,-0x4f);}}function formatSingleHover(_0x2ab72e){const _0x25a266={_0x17785a:0x293,_0x1448c0:0x5cf,_0x5715e9:0x6ba,_0x323119:0x68d,_0x3ab15c:0x5c8,_0x2d1751:0x499,_0x349c50:0x58e,_0x11b946:0x4bd,_0x43a39e:0x418,_0x797ec:0x707,_0x3ea5a4:0x645,_0x56322b:0x602,_0xe48765:0x648},_0xbf9013={_0x4c003b:0x11f},_0x38548d={_0x5b36a7:0x7b,_0x598932:0x75},_0x55f774=_0x2ab72e[_0xfab34f(0x36a,0x390,_0x25a266._0x17785a,0x386)];if(typeof _0x55f774==='string')return _0x55f774;function _0xfab34f(_0x376a54,_0x14257e,_0x40bdf4,_0x4b7608){return _0x5a3b3d(_0x4b7608,_0x14257e-_0x38548d._0x5b36a7,_0x376a54-0x14f,_0x4b7608-_0x38548d._0x598932);}function _0x423d97(_0x114f36,_0x39accf,_0x1d0dfb,_0x1d8a76){return _0x29b8eb(_0x114f36-0x117,_0x1d0dfb-0x42,_0x1d0dfb-_0xbf9013._0x4c003b,_0x114f36);}if(Array[_0x423d97(0x640,0x68d,_0x25a266._0x1448c0,_0x25a266._0x5715e9)](_0x55f774))return _0x55f774[_0x423d97(0x551,0x58a,_0x25a266._0x323119,0x69e)](_0x392066=>typeof _0x392066===_0x423d97(0x56f,0x70b,0x629,0x54f)?_0x392066:_0x392066[_0xfab34f(0x4de,0x407,0x4d2,0x4f9)])['filter'](Boolean)[_0x423d97(_0x25a266._0x3ab15c,_0x25a266._0x2d1751,0x496,0x4a8)]('\x0a\x0a');if(_0x423d97(0x6cc,_0x25a266._0x349c50,0x6b5,0x5eb)in _0x55f774)return _0x55f774[_0xfab34f(0x4de,_0x25a266._0x11b946,_0x25a266._0x43a39e,0x5d3)];return _0x55f774[_0x423d97(_0x25a266._0x797ec,_0x25a266._0x3ea5a4,0x5c3,_0x25a266._0x56322b)]?'```'+_0x55f774['language']+'\x0a'+_0x55f774['value']+'\x0a```':_0x55f774[_0x423d97(0x5c2,0x675,_0x25a266._0xe48765,0x631)];}function formatHover(_0x3dd493){const _0xe14047={_0x16599a:0x144,_0x51f1c6:0x22e,_0xff9662:0x624,_0x5626b9:0x673,_0x1debb1:0x587},_0x40ae4d={_0x44cd78:0x170,_0x2d85c7:0x2ed},_0x159e82={_0x21c794:0x105,_0x1e4c56:0xd9,_0x288d19:0x112};function _0x414dce(_0x50679e,_0x403c7d,_0x25bd15,_0x3582c4){return _0x5a3b3d(_0x50679e,_0x403c7d-_0x159e82._0x21c794,_0x3582c4- -_0x159e82._0x1e4c56,_0x3582c4-_0x159e82._0x288d19);}if(_0x3dd493[_0x414dce(_0xe14047._0x16599a,_0xe14047._0x51f1c6,0x287,0x172)]===0x0)return _0x15ea1a(0x777,_0xe14047._0xff9662,0x767,_0xe14047._0x5626b9);function _0x15ea1a(_0x3eb3a5,_0x46d2d3,_0x3b6d3e,_0x45d12f){return _0x5a3b3d(_0x3b6d3e,_0x46d2d3-_0x40ae4d._0x44cd78,_0x45d12f-_0x40ae4d._0x2d85c7,_0x45d12f-0x16f);}return _0x3dd493[_0x15ea1a(_0xe14047._0x1debb1,0x810,0x6ce,0x6c1)](formatSingleHover)['join']('\x0a\x0a---\x0a\x0a');}function locationPath(_0x5e6eed){const _0x1f2ab={_0x459487:0x110,_0x56621f:0xc,_0x256caf:0x4e},_0x135a07={_0x1a563a:0x16a},_0x3b171f={_0x504c7c:0x4f8,_0x13dc4b:0xc2};function _0x488e79(_0x231d4c,_0x487d76,_0x152e1f,_0x4b7ba1){return _0x29b8eb(_0x231d4c-0x162,_0x4b7ba1- -_0x3b171f._0x504c7c,_0x152e1f-_0x3b171f._0x13dc4b,_0x487d76);}function _0x321ed4(_0x52dc92,_0x5db94f,_0x1ebb5b,_0x68e88a){return _0x29b8eb(_0x52dc92-0x16e,_0x5db94f- -0x4b,_0x1ebb5b-_0x135a07._0x1a563a,_0x1ebb5b);}if(!_0x5e6eed[_0x488e79(-_0x1f2ab._0x459487,-0xfa,0x5,_0x1f2ab._0x56621f)](_0x488e79(-0x5b,_0x1f2ab._0x256caf,0x3e,0xb7)))return _0x5e6eed;return _0x5217f5(_0x5e6eed);}function formatLocations(_0x406bd5){const _0x300873={_0x67d5d1:0x237,_0x3fe93e:0x3f6,_0x2b5233:0x238,_0x5bc06a:0x45c,_0x560cf2:0x1f5,_0x23288e:0x265},_0x71a2e={_0x5081d6:0xee,_0x1e990e:0x0,_0x48df73:0x57,_0x58dca3:0x14f,_0x57aad6:0xdc,_0x36ea5a:0x71e,_0xeb085b:0x6c3},_0x116cf4={_0x129db4:0x164},_0x158c5d={_0x190d47:0x2a};function _0x22d518(_0x2e56f1,_0x3a87ad,_0x19e096,_0x5822f2){return _0x5a3b3d(_0x3a87ad,_0x3a87ad-0x1c,_0x19e096-0x88,_0x5822f2-_0x158c5d._0x190d47);}function _0x37019c(_0x2c2748,_0x4a8361,_0x516b8c,_0x1e3813){return _0x5a3b3d(_0x2c2748,_0x4a8361-0x7e,_0x1e3813-0x194,_0x1e3813-_0x116cf4._0x129db4);}if(_0x406bd5[_0x22d518(0x276,0x230,0x2d3,_0x300873._0x67d5d1)]===0x0)return _0x22d518(_0x300873._0x3fe93e,_0x300873._0x2b5233,0x313,0x2f1);return _0x406bd5[_0x22d518(0x457,0x39c,_0x300873._0x5bc06a,0x398)](_0x2d1d36=>{const _0x1a2b80={_0x47724a:0xd1},_0x8f4d88={_0x3dbd18:0x178,_0x5dde2a:0x9d};function _0x34a48f(_0x266744,_0x22e4fb,_0x271d25,_0x45367e){return _0x37019c(_0x271d25,_0x22e4fb-_0x8f4d88._0x3dbd18,_0x271d25-_0x8f4d88._0x5dde2a,_0x22e4fb- -0x488);}function _0x133186(_0x5f05f1,_0x5719ac,_0x26d302,_0x525e10){return _0x37019c(_0x26d302,_0x5719ac-_0x1a2b80._0x47724a,_0x26d302-0x1de,_0x5f05f1-0x136);}const _0x218d94=_0x2d1d36['range']['start'];return locationPath(_0x2d1d36[_0x34a48f(_0x71a2e._0x5081d6,_0x71a2e._0x1e990e,0x13a,_0x71a2e._0x48df73)])+':'+(_0x218d94[_0x34a48f(-0x15a,-_0x71a2e._0x58dca3,-0xae,-_0x71a2e._0x57aad6)]+0x1)+':'+(_0x218d94[_0x133186(0x651,_0x71a2e._0x36ea5a,_0x71a2e._0xeb085b,0x6ae)]+0x1);})[_0x22d518(0x293,_0x300873._0x560cf2,_0x300873._0x23288e,0x388)]('\x0a');}function isDocumentSymbol(_0x58e801){const _0x2525ee={_0x458468:0x5e9,_0xb4cc5b:0x284,_0x78326a:0x2a0,_0x28232e:0x174},_0x4d8642={_0x2c9fcd:0xd1},_0x95394b={_0x154bc5:0x115};function _0x24ad2d(_0x58f401,_0x146438,_0x334d9f,_0x166a49){return _0x29b8eb(_0x58f401-0x14e,_0x146438-_0x95394b._0x154bc5,_0x334d9f-0xc2,_0x166a49);}function _0x34e2f7(_0x2030a4,_0x2a89f8,_0x47ef17,_0x3e629d){return _0x29b8eb(_0x2030a4-_0x4d8642._0x2c9fcd,_0x47ef17- -0x685,_0x47ef17-0x6,_0x2a89f8);}return _0x24ad2d(0x72e,_0x2525ee._0x458468,0x5ee,0x67e)in _0x58e801&&_0x34e2f7(-0x2a3,-_0x2525ee._0xb4cc5b,-_0x2525ee._0x78326a,-_0x2525ee._0x28232e)in _0x58e801;}function formatSymbols(_0x138c32){const _0x32ffe7={_0x4e82a5:0x55d,_0xdbdc48:0x4f8,_0x5db48c:0x4c3,_0x3a9491:0x4c1},_0x422e4a={_0x1acf9b:0x3e7,_0x41ac63:0x1a3,_0xdc318f:0xed,_0x588c55:0x27,_0x36180a:0x68,_0x2662bf:0x53,_0xcf3d8f:0x205,_0x27b472:0x2c1,_0x1bfe0:0x3e1,_0x52f6cb:0x200,_0x5eb98d:0x0,_0x34be8b:0xf3,_0x164eed:0x1b7,_0x586289:0x144,_0x3ed6c9:0x1c2,_0x427c8f:0x184,_0x58eb15:0x9c,_0x4f2869:0xb1,_0x12627a:0x14a,_0x5bb38e:0x55,_0x371adb:0xa5,_0x210c68:0x414,_0x365b74:0x1b,_0x9b2bf3:0x53,_0x46867c:0x1cc,_0x589e2d:0x393,_0x402adf:0x3af,_0x9d1b7f:0x403,_0x5c1228:0x2bb,_0x558217:0x33e,_0x290475:0x1e9,_0x18ad93:0x30b,_0x7aa077:0xfa,_0x163dc3:0x1dc},_0x3ab56c={_0x4eda4c:0x6c},_0x1e2bfc={_0x2056fc:0x164,_0xfd02e6:0xaf},_0x4d69d0={_0x4faacc:0x167,_0x1b29b8:0x2ec};if(_0x138c32[_0x5346e2(0x537,0x5ab,_0x32ffe7._0x4e82a5,0x4b6)]===0x0)return _0x512e47(0x4af,_0x32ffe7._0xdbdc48,_0x32ffe7._0x5db48c,0x5e8);function _0x5346e2(_0x1dd999,_0x33b9b9,_0x3c21cc,_0x471880){return _0x5a3b3d(_0x33b9b9,_0x33b9b9-_0x4d69d0._0x4faacc,_0x1dd999-_0x4d69d0._0x1b29b8,_0x471880-0xc3);}function _0x512e47(_0x3af918,_0x370ba0,_0x3fe3a8,_0xf82dc9){return _0x5a3b3d(_0xf82dc9,_0x370ba0-_0x1e2bfc._0x2056fc,_0x3af918-_0x1e2bfc._0xfd02e6,_0xf82dc9-0x10c);}return _0x138c32[_0x512e47(0x483,_0x32ffe7._0x3a9491,0x518,0x503)](_0x350a1a=>{const _0xd1a814={_0x5001f4:0x1d1,_0x573ec1:0x6c};function _0x10eb59(_0x2d52ad,_0x5a9148,_0x5a9e8b,_0x36afdd){return _0x5346e2(_0x36afdd- -0x52f,_0x5a9e8b,_0x5a9e8b-0x1a4,_0x36afdd-_0x3ab56c._0x4eda4c);}if(isDocumentSymbol(_0x350a1a))return _0x350a1a[_0x277c32(_0x422e4a._0x1acf9b,_0x422e4a._0x41ac63,0x2ba,0x297)]+'\x20('+_0x350a1a['kind']+_0x10eb59(-_0x422e4a._0xdc318f,0xfb,-0x91,-_0x422e4a._0x588c55)+(_0x350a1a[_0x10eb59(0x8b,0xa2,-0xc9,0x1a)][_0x10eb59(0x92,-0x10b,_0x422e4a._0x36180a,-_0x422e4a._0x2662bf)][_0x277c32(0x3fd,_0x422e4a._0xcf3d8f,_0x422e4a._0x27b472,0x2c0)]+0x1)+':'+(_0x350a1a['range'][_0x277c32(_0x422e4a._0x1bfe0,_0x422e4a._0x52f6cb,0x388,0x30b)][_0x10eb59(_0x422e4a._0x5eb98d,_0x422e4a._0x34be8b,_0x422e4a._0x164eed,_0x422e4a._0x586289)]+0x1)+']';function _0x277c32(_0x1e0beb,_0x2bd5d5,_0x431eb6,_0x3d987a){return _0x5346e2(_0x3d987a- -_0xd1a814._0x5001f4,_0x431eb6,_0x431eb6-0x199,_0x3d987a-_0xd1a814._0x573ec1);}return _0x350a1a['name']+'\x20('+_0x350a1a['kind']+')\x20'+locationPath(_0x350a1a[_0x10eb59(_0x422e4a._0x3ed6c9,_0x422e4a._0x427c8f,-_0x422e4a._0x58eb15,0xa5)][_0x10eb59(0x45,0xf7,0x16d,_0x422e4a._0x4f2869)])+':'+(_0x350a1a[_0x10eb59(0x16c,_0x422e4a._0x12627a,-_0x422e4a._0x5bb38e,_0x422e4a._0x371adb)][_0x277c32(0x4a5,_0x422e4a._0x210c68,0x32e,0x378)][_0x10eb59(-_0x422e4a._0x365b74,-0xed,0xb4,-_0x422e4a._0x9b2bf3)][_0x277c32(0x172,0x1a1,_0x422e4a._0x46867c,0x2c0)]+0x1)+':'+(_0x350a1a[_0x277c32(_0x422e4a._0x589e2d,_0x422e4a._0x402adf,0x34f,_0x422e4a._0x9d1b7f)]['range'][_0x277c32(_0x422e4a._0x5c1228,_0x422e4a._0x558217,_0x422e4a._0x290475,_0x422e4a._0x18ad93)][_0x10eb59(_0x422e4a._0x7aa077,_0x422e4a._0x163dc3,0xb,_0x422e4a._0x586289)]+0x1);})[_0x512e47(0x28c,0x37b,0x2be,0x343)]('\x0a');}function formatDiagnostics(_0x121225){const _0x419a21={_0x33b0b0:0x186,_0x3b5b62:0x202,_0x5340db:0x3a3,_0x363303:0xb0},_0x2f09d1={_0x5247ce:0x188,_0x224d61:0x1c5,_0x3c9333:0x162,_0x2236fb:0x15b,_0x68b4f3:0x255,_0x417415:0x1b5,_0x12f30b:0x3b7,_0x53a9b4:0x4c4,_0x472732:0x3e8},_0x6120bf={_0xffedfd:0xd9,_0x3931b2:0xcf},_0x30a00d={_0x2b32e7:0x134},_0xbbf4f2={_0x5d4aa0:0xd0,_0x451b57:0x3a4};function _0x536661(_0x20aab7,_0x3bf6dd,_0x10a8b7,_0x29a44b){return _0x29b8eb(_0x20aab7-_0xbbf4f2._0x5d4aa0,_0x20aab7- -_0xbbf4f2._0x451b57,_0x10a8b7-0x1bf,_0x3bf6dd);}function _0x2ec701(_0x2d6e8e,_0x5eed93,_0x110d98,_0x19aa3f){return _0x29b8eb(_0x2d6e8e-0x175,_0x110d98- -0x2a8,_0x110d98-_0x30a00d._0x2b32e7,_0x2d6e8e);}if(_0x121225['length']===0x0)return _0x536661(0x1be,_0x419a21._0x33b0b0,_0x419a21._0x3b5b62,0x2cc);return _0x121225[_0x2ec701(0x487,0x389,_0x419a21._0x5340db,0x4dc)](_0x2f30ff=>{const _0x2a019b={_0x22d8a4:0x1b6};function _0x561056(_0x2bc028,_0x44053d,_0x54dd8e,_0x160af3){return _0x2ec701(_0x44053d,_0x44053d-_0x6120bf._0xffedfd,_0x54dd8e-0x2fe,_0x160af3-_0x6120bf._0x3931b2);}function _0x2fda97(_0x6af6f4,_0x469bf8,_0x324c1d,_0x3454a4){return _0x2ec701(_0x324c1d,_0x469bf8-_0x2a019b._0x22d8a4,_0x6af6f4- -0x173,_0x3454a4-0x1e1);}const _0x65797c=_0x2f30ff[_0x2fda97(0xb9,_0x2f09d1._0x5247ce,_0x2f09d1._0x224d61,_0x2f09d1._0x3c9333)][_0x561056(0x3bc,0x503,0x4bd,0x4d5)];return severityName(_0x2f30ff[_0x2fda97(_0x2f09d1._0x2236fb,_0x2f09d1._0x68b4f3,0x40,_0x2f09d1._0x417415)])+'\x20['+(_0x65797c['line']+0x1)+':'+(_0x65797c['character']+0x1)+']\x20'+_0x2f30ff[_0x561056(0x42f,_0x2f09d1._0x12f30b,_0x2f09d1._0x53a9b4,_0x2f09d1._0x472732)];})[_0x536661(_0x419a21._0x363303,0x1d,0x15c,0x21)]('\x0a');}function formatIncomingCalls(_0x5c5d54){const _0x20ee56={_0x3c4498:0x314,_0x2c28da:0x1b1,_0x524cd3:0x227,_0x147506:0x392,_0x3106f7:0x471},_0x276b83={_0x588f8d:0x178};function _0x231357(_0x49d946,_0xb2d232,_0x222d6b,_0x3ea47f){return _0x5a3b3d(_0x3ea47f,_0xb2d232-0x1f,_0xb2d232-0x73,_0x3ea47f-0x16b);}function _0xa31014(_0x3edd95,_0x48f072,_0x17b5b2,_0x109f1e){return _0x29b8eb(_0x3edd95-_0x276b83._0x588f8d,_0x48f072- -0x1da,_0x17b5b2-0x1e8,_0x17b5b2);}if(_0x5c5d54[_0x231357(_0x20ee56._0x3c4498,0x2be,_0x20ee56._0x2c28da,_0x20ee56._0x524cd3)]===0x0)return'No\x20call\x20hierarchy\x20results';return _0x5c5d54[_0xa31014(_0x20ee56._0x147506,_0x20ee56._0x3106f7,0x446,0x45c)](_0x5c94e8=>_0x5c94e8[_0x231357(0x13d,0x225,0x254,0x317)]['name'])['join']('\x0a');}function formatOutgoingCalls(_0x2c780d){const _0x18c66c={_0x473aec:0x7e,_0x101e70:0x85,_0xd616af:0x463},_0x1780cb={_0x710700:0xa6,_0x275c20:0x51a},_0x457209={_0x2662ed:0x139};function _0x268d11(_0x182f70,_0x567ca2,_0x10263d,_0x500e81){return _0x29b8eb(_0x182f70-_0x457209._0x2662ed,_0x500e81- -0xe2,_0x10263d-0x114,_0x182f70);}function _0xc47f6b(_0x377b28,_0x21bff4,_0x2a91f2,_0x1d3663){return _0x29b8eb(_0x377b28-_0x1780cb._0x710700,_0x1d3663- -_0x1780cb._0x275c20,_0x2a91f2-0xeb,_0x377b28);}if(_0x2c780d[_0xc47f6b(-0x1d,_0x18c66c._0x473aec,_0x18c66c._0x101e70,-0x58)]===0x0)return _0x268d11(0x37c,_0x18c66c._0xd616af,0x479,0x415);return _0x2c780d['map'](_0x44f8fb=>_0x44f8fb['to'][_0xc47f6b(-0x217,-0x25b,0x24,-0x127)])['join']('\x0a');}function toStructured(_0xe54e17){const _0x224fd5={_0x2a6cb9:0x60b,_0x2bf97d:0x78d,_0x4662d8:0x643},_0x500cd2={_0xd087ed:0x2e5};function _0x57d537(_0x2a54d5,_0x34c01a,_0xf574c3,_0x124fdb){return _0x5a3b3d(_0x124fdb,_0x34c01a-0x14d,_0x34c01a-_0x500cd2._0xd087ed,_0x124fdb-0x1c3);}function _0x134d21(_0x23029c,_0x2b0928,_0x5e2789,_0x419940){return _0x29b8eb(_0x23029c-0x12c,_0x419940-0x5a,_0x5e2789-0x15a,_0x2b0928);}return JSON[_0x134d21(0x740,0x625,0x724,_0x224fd5._0x2a6cb9)](JSON[_0x134d21(0x6b4,_0x224fd5._0x2bf97d,0x772,_0x224fd5._0x4662d8)](_0xe54e17));}async function assertFile(_0x20e54a){const _0x34fcea={_0x559ee9:0xb7};function _0x2371c0(_0x4df165,_0x1b407e,_0x5e0f81,_0x569b3b){return _0x5a3b3d(_0x4df165,_0x1b407e-0x127,_0x5e0f81-_0x34fcea._0x559ee9,_0x569b3b-0xac);}const _0x46281b=await _0x524210(_0x20e54a);if(!_0x46281b['isFile']())throw new ToolExecutionError(_0x2371c0(0x39f,0x2e9,0x2ab,0x2af)+_0x20e54a,{'path':_0x20e54a});}function validatePosition(_0x101af2,_0x1cff72){const _0x116a79={_0x3e4eea:0x1a3,_0x165b29:0xc1,_0x9a55c1:0x23c,_0x5495f3:0x11b,_0xedd300:0x11f,_0x2105da:0x37d,_0x6d6922:0x380},_0x3f58bc={_0x45702d:0x156,_0x379192:0x65a,_0x3edd9c:0x18},_0x2b8af3={_0x15cf16:0xee};if(!Number[_0x2291c8(0x3b2,0x4d2,0x361,0x4e4)](_0x101af2)||_0x101af2<0x1)throw new ToolExecutionError(_0x3ee910(-_0x116a79._0x3e4eea,-_0x116a79._0x165b29,-0x1b6,-_0x116a79._0x9a55c1),{'line':_0x101af2});function _0x2291c8(_0x49bb1a,_0x5b2a32,_0x5e3a98,_0x58c31c){return _0x5a3b3d(_0x5e3a98,_0x5b2a32-0xb4,_0x49bb1a-_0x2b8af3._0x15cf16,_0x58c31c-0x1e8);}function _0x3ee910(_0x25ca35,_0x1f28e2,_0x2276d7,_0x2f3c6c){return _0x29b8eb(_0x25ca35-_0x3f58bc._0x45702d,_0x2276d7- -_0x3f58bc._0x379192,_0x2276d7-_0x3f58bc._0x3edd9c,_0x2f3c6c);}if(!Number[_0x3ee910(-_0x116a79._0x165b29,-_0x116a79._0x5495f3,-_0x116a79._0xedd300,-0xe7)](_0x1cff72)||_0x1cff72<0x1)throw new ToolExecutionError(_0x2291c8(0x2f2,0x373,_0x116a79._0x2105da,_0x116a79._0x6d6922),{'character':_0x1cff72});}function createLspTool(_0x5750dc={}){const _0x343762={_0x2823e1:0x379,_0x541b4f:0x4ca,_0x4481e8:0x42a,_0x1a722d:0x35b,_0x1273e2:0xf6,_0x1f1ca8:0x1b8,_0x50819f:0x179,_0x32e401:0x3c4,_0x59266b:0x4f6,_0x17434d:0x3df,_0x4aed42:0x22e,_0xba2e88:0x2ed,_0x3a0615:0x1a6,_0x562d7f:0x313,_0x4affbf:0x24c,_0x51ae4c:0x1ca,_0x4e2a19:0x3d5,_0x3f09d0:0x266,_0x50b8c5:0x20a,_0x48a769:0x359,_0xb51596:0xbe,_0x199a49:0x259,_0x45181d:0x2e9,_0x33a482:0x3cb,_0xd6033f:0x324,_0x6a6793:0x343,_0x39311b:0x38b,_0x73249d:0x43f,_0x1eb38e:0x1f4,_0xe7324e:0x13e,_0x209733:0x1c0,_0x5b06d2:0x39f,_0x2e568a:0x3d5,_0x51c3fb:0x42f,_0x1630c4:0x41a,_0x4fc66f:0x1e3,_0x4bffb9:0x1bd,_0x236784:0x28e,_0x45ced1:0x27f,_0x5c67db:0x2e4},_0x57bf54={_0x10036d:0x6d,_0x1cc35e:0x37,_0x392ce1:0x6a,_0x2a0ad9:0xd9,_0x5a44fa:0x1b3,_0x315a49:0x7a,_0x8d07ea:0x8d,_0x2eb8cc:0x5d,_0x2c128b:0x43,_0x2a73fa:0x5b,_0x3e2740:0x48,_0x1bb688:0x1a5,_0x379688:0x1f6,_0x29390e:0x13a,_0x1413ba:0xa,_0x4fdbe7:0x205,_0x4d5204:0x98,_0x34b506:0x186,_0x2040cb:0xd0,_0x2c40a4:0xaa,_0x8ad623:0x14,_0x5e1246:0x1f7,_0x865740:0x78,_0x3fe9e9:0x20,_0x54cc9d:0x11c,_0x5d82b3:0x256,_0x117ade:0x7d,_0x37bb86:0x176,_0x306415:0xe4,_0x439485:0x9a,_0xc48f2d:0x9b,_0x5da80c:0x5,_0x3a5e57:0x4f,_0x260229:0x2b,_0x310500:0x58,_0x5cb989:0x39,_0x573693:0x10,_0x539feb:0x12d,_0x529d15:0xdd,_0x12ccb5:0x172,_0x1b6ee2:0x86,_0x2994ac:0xa8,_0x2a95eb:0xa6,_0x112b13:0x1de,_0x4596d3:0x71,_0x14c22d:0x19d},_0x40d4fc={_0x2404ad:0x13f,_0x465ee6:0x1e2},_0x4650d2={_0x250df9:0x79,_0x379272:0xae},_0x10156f=_0x4158e2[_0x1ae631(0x338,0x29f,0x255,_0x343762._0x2823e1)](_0x5750dc[_0x1ae631(_0x343762._0x541b4f,0x4be,0x530,_0x343762._0x4481e8)]??process['cwd']()),_0x12e896=(_0x5750dc[_0x21843b(0x149,0xf0,0x9,0x4a)]??[])[_0x21843b(_0x343762._0x1a722d,0x28f,0x39d,0x29d)](_0x2f816c=>_0x4158e2[_0x1ae631(0x338,0x1e7,0x47f,0x2e7)](_0x2f816c));function _0x21843b(_0x13817,_0x3805cd,_0xad584d,_0x301273){return _0x5a3b3d(_0x301273,_0x3805cd-0x7c,_0x13817- -_0x4650d2._0x250df9,_0x301273-_0x4650d2._0x379272);}const _0x94a1f7=_0x5750dc[_0x21843b(0x103,_0x343762._0x1273e2,_0x343762._0x1f1ca8,_0x343762._0x50819f)]??'Lsp';function _0x1ae631(_0x1ca983,_0xe4d1b8,_0x8855f0,_0x39168b){return _0x29b8eb(_0x1ca983-_0x40d4fc._0x2404ad,_0x1ca983- -0x1a8,_0x8855f0-_0x40d4fc._0x465ee6,_0x8855f0);}return defineTool({'name':_0x94a1f7,'description':_0x1ae631(_0x343762._0x32e401,0x3c6,0x321,_0x343762._0x59266b),'inputSchema':{'type':_0x1ae631(_0x343762._0x17434d,0x372,0x419,0x410),'properties':{'operation':{'type':_0x21843b(0x2f7,_0x343762._0x4aed42,_0x343762._0xba2e88,_0x343762._0x3a0615),'enum':['goToDefinition',_0x21843b(0x157,0x263,0x18b,0x20a),_0x21843b(_0x343762._0x562d7f,_0x343762._0x4affbf,0x1e1,_0x343762._0x51ae4c),_0x1ae631(_0x343762._0x4e2a19,0x30c,0x340,0x3f7),_0x21843b(0x163,_0x343762._0x3f09d0,0x127,0x1e2),'goToImplementation',_0x21843b(_0x343762._0x50b8c5,_0x343762._0x48a769,_0x343762._0xb51596,_0x343762._0x199a49),_0x1ae631(_0x343762._0x45181d,_0x343762._0x33a482,0x2a6,_0x343762._0xd6033f),_0x21843b(_0x343762._0x6a6793,0x43d,_0x343762._0x39311b,0x46e),'diagnostics']},'filePath':{'type':_0x1ae631(_0x343762._0x73249d,0x324,0x4d4,0x3a8)},'line':{'type':_0x21843b(_0x343762._0x1eb38e,_0x343762._0xe7324e,_0x343762._0x209733,0x1de)},'character':{'type':_0x1ae631(0x33c,_0x343762._0x5b06d2,_0x343762._0x2e568a,_0x343762._0x51c3fb)},'query':{'type':'string'}},'required':[_0x21843b(0x337,0x289,0x383,_0x343762._0x1630c4),_0x21843b(0x1bd,_0x343762._0x4fc66f,0x7a,_0x343762._0x4bffb9),_0x1ae631(0x274,_0x343762._0x236784,0x2a0,_0x343762._0x45ced1),_0x21843b(0x30e,_0x343762._0x5c67db,0x41a,0x1ec)]},async *'execute'(_0x2825b9){const _0x48c775={_0x33d93d:0x29d,_0x36acfa:0x150},_0x3d8960={_0x57984a:0x1a6,_0x4faf87:0x22,_0x3ae42a:0x178},_0xe9cf6=_0x5750dc[_0x3219e9(_0x57bf54._0x10036d,-0x9c,-0x3c,-_0x57bf54._0x1cc35e)];if(!_0xe9cf6)throw new ToolExecutionError('LSP\x20service\x20is\x20not\x20available');if(!_0xe9cf6['isEnabled']())throw new ToolExecutionError(_0x3219e9(_0x57bf54._0x392ce1,_0x57bf54._0x2a0ad9,_0x57bf54._0x5a44fa,0xd1));const _0x26d5e=_0x2825b9[_0x3bebb4(0x1e7,0x230,0x191,0x1d0)];function _0x3bebb4(_0x10e60b,_0x1f79e8,_0x53d9a9,_0x40a57f){return _0x21843b(_0x53d9a9- -_0x3d8960._0x57984a,_0x1f79e8-_0x3d8960._0x4faf87,_0x53d9a9-_0x3d8960._0x3ae42a,_0x1f79e8);}validatePosition(_0x2825b9[_0x3bebb4(-0xc8,-0x3e,-_0x57bf54._0x315a49,_0x57bf54._0x8d07ea)],_0x2825b9[_0x3219e9(0x71,0x13e,_0x57bf54._0x2eb8cc,-0x9e)]);if(_0x26d5e===_0x3bebb4(_0x57bf54._0x2c128b,-0x67,-0x43,0xec)){if(!_0x2825b9[_0x3219e9(-0x1ad,-0x2f6,-0xa2,-_0x57bf54._0x2a73fa)]?.[_0x3219e9(-0x144,-_0x57bf54._0x3e2740,-_0x57bf54._0x1bb688,-_0x57bf54._0x379688)]())throw new ToolExecutionError('workspaceSymbol\x20requires\x20a\x20non-empty\x20query');const _0x18c555=await _0xe9cf6[_0x3219e9(-_0x57bf54._0x29390e,-0x1ec,_0x57bf54._0x1413ba,-_0x57bf54._0x4fdbe7)](_0x2825b9['query']['trim']());return yield createToolOutput(formatSymbols(_0x18c555),{'operation':_0x26d5e,'query':_0x2825b9[_0x3bebb4(-0x45,-0x150,-0xb6,_0x57bf54._0x4d5204)],'symbols':_0x18c555}),void 0x0;}const _0xbdb0c9=resolveAllowedPath(_0x10156f,_0x12e896,_0x2825b9[_0x3219e9(-0xe0,-_0x57bf54._0x34b506,-_0x57bf54._0x2040cb,-0x1a6)]);await assertFile(_0xbdb0c9);if(!await _0xe9cf6[_0x3219e9(_0x57bf54._0x2c40a4,-0x5,0x113,_0x57bf54._0x8ad623)](_0xbdb0c9))throw new ToolExecutionError(_0x3219e9(-0x119,-0x6c,-0x1f6,-_0x57bf54._0x5e1246)+_0x2825b9['filePath'],{'filePath':_0x2825b9['filePath']});function _0x3219e9(_0x39a8ec,_0xc3de13,_0x514b42,_0x1143ee){return _0x21843b(_0x39a8ec- -_0x48c775._0x33d93d,_0xc3de13-_0x48c775._0x36acfa,_0x514b42-0x126,_0x1143ee);}await _0xe9cf6[_0x3bebb4(_0x57bf54._0x865740,0x18,-0x9,_0x57bf54._0x3fe9e9)](_0xbdb0c9,!![]);const _0xc33662={'file':_0xbdb0c9,'line':_0x2825b9[_0x3bebb4(-0x16a,-_0x57bf54._0x54cc9d,-_0x57bf54._0x315a49,-0xa3)]-0x1,'character':_0x2825b9[_0x3bebb4(0x79,_0x57bf54._0x5d82b3,0x168,_0x57bf54._0x117ade)]-0x1};switch(_0x26d5e){case _0x3bebb4(_0x57bf54._0x37bb86,_0x57bf54._0x306415,0x16d,0xf7):{const _0x38c274=await _0xe9cf6['hover'](_0xc33662);return yield createToolOutput(formatHover(_0x38c274),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'hover':_0x38c274}),void 0x0;}case _0x3bebb4(0x1c7,_0x57bf54._0x439485,0x190,0x2e2):{const _0x284f83=await _0xe9cf6['diagnosticsForFile'](_0xbdb0c9);return yield createToolOutput(formatDiagnostics(_0x284f83),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'diagnostics':_0x284f83}),void 0x0;}case _0x3bebb4(0x236,0x24c,0x172,_0x57bf54._0xc48f2d):{const _0x23f2a6=await _0xe9cf6['definition'](_0xc33662);return yield createToolOutput(formatLocations(_0x23f2a6),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'locations':_0x23f2a6}),void 0x0;}case _0x3bebb4(-_0x57bf54._0x5da80c,-0x27,-_0x57bf54._0x3a5e57,-0xf1):{const _0xd63876=await _0xe9cf6[_0x3219e9(-0x16f,-0x256,-0x1b9,-_0x57bf54._0x260229)](_0xc33662);return yield createToolOutput(formatLocations(_0xd63876),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'locations':_0xd63876}),void 0x0;}case'goToImplementation':{const _0x1ffbbf=await _0xe9cf6[_0x3bebb4(-0xba,-0x83,_0x57bf54._0x310500,_0x57bf54._0x5cb989)](_0xc33662);return yield createToolOutput(formatLocations(_0x1ffbbf),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'locations':_0x1ffbbf}),void 0x0;}case _0x3219e9(-_0x57bf54._0x573693,0x8d,_0x57bf54._0x539feb,-0xfd):{const _0x3784de=await _0xe9cf6[_0x3bebb4(0x46,_0x57bf54._0x529d15,0xe7,0xc7)](_0xbdb0c9);return yield createToolOutput(formatSymbols(_0x3784de),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'symbols':_0x3784de}),void 0x0;}case'prepareCallHierarchy':{const _0x265c7b=await _0xe9cf6[_0x3bebb4(_0x57bf54._0x12ccb5,-_0x57bf54._0x1b6ee2,0x64,-0xa6)](_0xc33662);return yield createToolOutput(formatSymbols(_0x265c7b),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'symbols':toStructured(_0x265c7b)}),void 0x0;}case'incomingCalls':{const _0x1101d0=await _0xe9cf6[_0x3bebb4(-0x2c,-0x12,-_0x57bf54._0x5da80c,_0x57bf54._0x2994ac)](_0xc33662);return yield createToolOutput(formatIncomingCalls(_0x1101d0),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'calls':toStructured(_0x1101d0)}),void 0x0;}case _0x3219e9(_0x57bf54._0x2a95eb,0x9,0xf,_0x57bf54._0x112b13):{const _0x155cc1=await _0xe9cf6[_0x3bebb4(0x1ae,_0x57bf54._0x4596d3,_0x57bf54._0x14c22d,0xe0)](_0xc33662);return yield createToolOutput(formatOutgoingCalls(_0x155cc1),{'operation':_0x26d5e,'filePath':_0xbdb0c9,'calls':toStructured(_0x155cc1)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x4b43b4,readFile as _0x23d347,writeFile as _0x5c6bdd}from'fs/promises';import{join as _0x2d3f9a}from'path';function sanitizeStorageKey(_0x202f1b){const _0x103e3a={_0x458f7c:0x9c,_0x303ab4:0x382};function _0x51a3ce(_0x5e48dc,_0x1a3424,_0x261fc3,_0x166b24){return _0x5a3b3d(_0x261fc3,_0x1a3424-_0x103e3a._0x458f7c,_0x1a3424-_0x103e3a._0x303ab4,_0x166b24-0xd7);}return _0x202f1b['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||_0x51a3ce(0x5ea,0x650,0x6b7,0x578);}function storagePath(_0x51eb0e){const _0x560280={_0xb7c37d:0x32d,_0x2c5515:0x21e,_0x599ea7:0x22b,_0x11037b:0x33e,_0x3ce9d3:0x274,_0x480565:0x314,_0x166d49:0x23c,_0x5a1296:0x178,_0x4a4fee:0x512,_0x475966:0x45e,_0x3821dc:0x3d6,_0x4e30e8:0x1d2},_0x20ef90={_0x1660d1:0x168,_0x4865b7:0x87};function _0x301f37(_0x49458b,_0x2a6b83,_0x42214f,_0x1b0f0c){return _0x5a3b3d(_0x1b0f0c,_0x2a6b83-_0x20ef90._0x1660d1,_0x42214f- -0x46,_0x1b0f0c-_0x20ef90._0x4865b7);}function _0x5a6cf1(_0x4735fc,_0xb283c,_0x5991ac,_0xfa643a){return _0x5a3b3d(_0xfa643a,_0xb283c-0x85,_0xb283c-0x4f,_0xfa643a-0x9c);}const _0x50a157=sanitizeStorageKey(_0x51eb0e[_0x301f37(0x369,0x2c7,_0x560280._0xb7c37d,_0x560280._0x2c5515)]['oauth']?.[_0x5a6cf1(_0x560280._0x599ea7,_0x560280._0x11037b,_0x560280._0x3ce9d3,_0x560280._0x480565)]??_0x51eb0e[_0x301f37(0x2c7,_0x560280._0x166d49,_0x560280._0x5a1296,0x26b)]);return _0x2d3f9a(_0x51eb0e[_0x5a6cf1(_0x560280._0x4a4fee,0x455,_0x560280._0x475966,_0x560280._0x3821dc)],_0x50a157+_0x301f37(0x102,0x87,_0x560280._0x4e30e8,0x11d));}async function readStore(_0x184790){const _0x39e137={_0x2b6ea7:0x291,_0x2ad5d1:0x119,_0x425b97:0x38c,_0x3ad44a:0x12d,_0x375334:0x363,_0x1bef51:0x363,_0x170e73:0x259,_0xa9f649:0x394,_0x2e5f8b:0x1c8,_0x3adf75:0x45b,_0x1351c1:0x365},_0x2af3b0={_0x243b5b:0x158,_0x5d2b60:0x360},_0x127c2f={_0x5f4f59:0xfe};function _0x12e274(_0x4765c0,_0x407d6a,_0x38aeef,_0x23851e){return _0x29b8eb(_0x4765c0-_0x127c2f._0x5f4f59,_0x407d6a- -0x60,_0x38aeef-0x6a,_0x4765c0);}function _0x41aa9f(_0x1f16b3,_0x3669ce,_0x273b1b,_0x7c4599){return _0x29b8eb(_0x1f16b3-_0x2af3b0._0x243b5b,_0x7c4599- -_0x2af3b0._0x5d2b60,_0x273b1b-0x1d3,_0x1f16b3);}try{return JSON[_0x41aa9f(_0x39e137._0x2b6ea7,0x205,_0x39e137._0x2ad5d1,0x251)](await _0x23d347(_0x184790,_0x41aa9f(0x1f2,0x3f9,_0x39e137._0x425b97,0x2c5)));}catch(_0x29c42a){if(_0x29c42a instanceof Error&&_0x41aa9f(_0x39e137._0x3ad44a,_0x39e137._0x375334,_0x39e137._0x1bef51,_0x39e137._0x170e73)in _0x29c42a&&_0x29c42a[_0x41aa9f(0x139,0x323,_0x39e137._0xa9f649,0x259)]===_0x41aa9f(_0x39e137._0x2e5f8b,_0x39e137._0x3adf75,_0x39e137._0x1351c1,0x30f))return{};throw _0x29c42a;}}async function writeStore(_0x54ef83,_0x2adf59){const _0x26a504={_0x40837e:0xd0,_0x3edb95:0x5b,_0x5a7291:0xa7,_0x3bc295:0x95,_0x361920:0x30,_0x1ad0e1:0x63,_0x4277ce:0x13d},_0xd26bcf={_0x187366:0xce},_0x4c51fe={_0xa7aab6:0x688};function _0x4e2e03(_0x671cfd,_0xe0150c,_0x2e67e2,_0x63a806){return _0x29b8eb(_0x671cfd-0x17,_0x2e67e2- -_0x4c51fe._0xa7aab6,_0x2e67e2-0x1a,_0x671cfd);}await _0x4b43b4(_0x2d3f9a(_0x54ef83,'..'),{'recursive':!![]});function _0x30deb3(_0x1755c4,_0x30a73e,_0x244196,_0x349cdf){return _0x5a3b3d(_0x244196,_0x30a73e-0x158,_0x30a73e- -0x317,_0x349cdf-_0xd26bcf._0x187366);}await _0x5c6bdd(_0x54ef83,JSON[_0x30deb3(-_0x26a504._0x40837e,_0x26a504._0x3edb95,_0x26a504._0x5a7291,0xf9)](_0x2adf59,null,0x2),_0x4e2e03(-_0x26a504._0x3bc295,-_0x26a504._0x361920,-_0x26a504._0x1ad0e1,-_0x26a504._0x4277ce));}async function updateStore(_0xc36e05,_0x5447b3){const _0x5cacfc=await readStore(_0xc36e05);_0x5447b3(_0x5cacfc),await writeStore(_0xc36e05,_0x5cacfc);}function createMcpOAuthProvider(_0x36c107){const _0x20f13d={_0x10f089:0xed,_0x15692d:0xf8,_0x14082e:0x4b,_0x395b16:0x215,_0x1d59b3:0x1e1,_0x2ef1f5:0x3a,_0x166c9b:0x3,_0x343940:0x30,_0x442ac:0x115,_0x501d6b:0x13e,_0x2de1aa:0x2de,_0x5618db:0x263,_0x46bcdf:0x30d,_0x8d4dcf:0xe0,_0x2b30f0:0xd1,_0x56ba90:0x37,_0x123c51:0xdd,_0x48ed0b:0xb6,_0x2254db:0x1a6,_0x15bf05:0x8f,_0x4d9660:0x1cd,_0x454488:0x164,_0x2d6c20:0xd2,_0x487d56:0x218,_0x5aba29:0x1e2,_0x5bcffc:0x64,_0x35b33e:0xa3},_0x2e7774={_0x5e1613:0x583,_0xca3733:0x5fc,_0x26ca67:0x5e6,_0x43602e:0xdd,_0x27e18f:0xc9,_0xfea6b6:0x596,_0x5485b6:0x547,_0x2e6879:0x5f3,_0x356f0d:0x62b,_0x2ce2b0:0x743,_0x2eb6a4:0x5a9,_0x412619:0x729,_0x1a82ac:0x4ab,_0x206d0e:0x55f,_0x135e4d:0x512,_0x284e3a:0x484,_0x3887ef:0x5ac,_0x162b85:0x3e3,_0x1cc6a5:0x691},_0x5abce1={_0x128d9a:0x2a3,_0x21effe:0x3ef,_0x208acf:0x220},_0x2c384a={_0x5ae5d3:0x161},_0x55a83f={_0x242b24:0x204,_0x8fa5d6:0xf7,_0x1781e5:0xbf},_0x4e873c={_0x48d8bf:0x3b1,_0x548c95:0x20b},_0x539c9d={_0x557f7c:0x326},_0x4d6263={_0x108384:0x622,_0x162df:0x5ea},_0x27889a={_0x1604b9:0x76},_0x2e58c3={_0x270440:0x559},_0x3e2d63={_0x27a5f4:0xb6,_0x1aa478:0x154,_0x3709fe:0xb3},_0x33e26a={_0x37aee7:0x85},_0x4ffa88={_0xb9ed09:0xd2},_0x1bd07a={_0x5c731c:0xe1};function _0x5913db(_0x2271f1,_0x318c95,_0x477826,_0x555405){return _0x5a3b3d(_0x2271f1,_0x318c95-0x2d,_0x477826- -0x1dc,_0x555405-_0x1bd07a._0x5c731c);}const _0x5e86fc=storagePath(_0x36c107);function _0x5cf309(_0x55a4fe,_0x386164,_0x2773c4,_0x48f647){return _0x5a3b3d(_0x55a4fe,_0x386164-0x30,_0x48f647- -0x3be,_0x48f647-_0x4ffa88._0xb9ed09);}const _0x356b06=_0x36c107[_0x5cf309(-_0x20f13d._0x10f089,-_0x20f13d._0x15692d,-0x197,-_0x20f13d._0x14082e)]['oauth']?.[_0x5913db(0x13,-0x9,0xfb,_0x20f13d._0x395b16)]?.[_0x5cf309(-0xba,-0x19f,-0x2cf,-_0x20f13d._0x1d59b3)]('\x20'),_0x1a42e2={'client_name':_0x5cf309(_0x20f13d._0x2ef1f5,_0x20f13d._0x166c9b,-_0x20f13d._0x343940,-_0x20f13d._0x442ac),'redirect_uris':[_0x36c107[_0x5cf309(-_0x20f13d._0x501d6b,-_0x20f13d._0x2de1aa,-_0x20f13d._0x5618db,-0x258)]],'grant_types':[_0x5913db(_0x20f13d._0x46bcdf,_0x20f13d._0x8d4dcf,0x209,_0x20f13d._0x2b30f0),_0x5cf309(-_0x20f13d._0x56ba90,-_0x20f13d._0x123c51,-0xbc,0x14)],'response_types':[_0x5cf309(-_0x20f13d._0x48ed0b,-0xd2,-0xaf,-0x7c)],'token_endpoint_auth_method':_0x5cf309(-_0x20f13d._0x2254db,-0x18f,-_0x20f13d._0x15bf05,-_0x20f13d._0x4d9660),..._0x356b06?{'scope':_0x356b06}:{}};return{'clientMetadataUrl':_0x36c107[_0x5cf309(-_0x20f13d._0x454488,-_0x20f13d._0x2d6c20,0x59,-0x4b)][_0x5913db(0x214,_0x20f13d._0x487d56,_0x20f13d._0x5aba29,0x2d8)]?.[_0x5cf309(0x32,-0xf7,_0x20f13d._0x5bcffc,-_0x20f13d._0x35b33e)],get 'redirectUrl'(){function _0x575396(_0x230c61,_0x47014e,_0x1ac7f4,_0x1fbc6f){return _0x5cf309(_0x1ac7f4,_0x47014e-0x168,_0x1ac7f4-_0x33e26a._0x37aee7,_0x1fbc6f-0x559);}return _0x36c107[_0x575396(0x213,0x2e3,0x314,0x301)];},get 'clientMetadata'(){return _0x1a42e2;},async 'state'(){const _0x181bff=await readStore(_0x5e86fc);if(_0x181bff['state'])return _0x181bff['state'];const _0x40f160=randomUUID();return await updateStore(_0x5e86fc,_0x2bf372=>{function _0x3c8eb4(_0x112752,_0x1f6b9f,_0x49797d,_0x5b25dc){return _0x25c6(_0x5b25dc- -0x36f,_0x1f6b9f);}_0x2bf372[_0x3c8eb4(-0x1d4,-_0x3e2d63._0x27a5f4,-_0x3e2d63._0x1aa478,-_0x3e2d63._0x3709fe)]=_0x40f160;}),_0x40f160;},async 'clientInformation'(){return(await readStore(_0x5e86fc))['clientInformation'];},async 'saveClientInformation'(_0xb6cf7c){const _0x20cc82={_0xed0b18:0x323};await updateStore(_0x5e86fc,_0x56e63c=>{function _0x1bcbfd(_0x4a19e5,_0x1b3bdd,_0x5300d8,_0x43c35e){return _0x25c6(_0x4a19e5-_0x20cc82._0xed0b18,_0x5300d8);}_0x56e63c[_0x1bcbfd(0x5d5,_0x2e58c3._0x270440,0x4e2,0x5a8)]=_0xb6cf7c;});},async 'tokens'(){function _0x257737(_0x189fba,_0x574abd,_0x2cf9d0,_0x547a03){return _0x5cf309(_0x574abd,_0x574abd-_0x27889a._0x1604b9,_0x2cf9d0-0x55,_0x189fba-0x734);}return(await readStore(_0x5e86fc))[_0x257737(_0x4d6263._0x108384,_0x4d6263._0x162df,0x64c,0x6a6)];},async 'saveTokens'(_0xf9f0da){const _0x3f5431={_0x569cef:0x385};await updateStore(_0x5e86fc,_0x5184b4=>{const _0x5e4e87={_0x4762c9:0x16f};function _0x24df19(_0x4bc5a6,_0x9c901e,_0x4f6324,_0x402bc7){return _0x25c6(_0x9c901e-_0x5e4e87._0x4762c9,_0x402bc7);}_0x5184b4[_0x24df19(0x3e1,0x3e9,0x43f,_0x3f5431._0x569cef)]=_0xf9f0da;});},async 'redirectToAuthorization'(_0x277e44){function _0x1c8664(_0x301b97,_0xf9f6ac,_0x772a28,_0x23db0c){return _0x5913db(_0x301b97,_0xf9f6ac-0x1b0,_0xf9f6ac-_0x539c9d._0x557f7c,_0x23db0c-0x4e);}await _0x36c107[_0x1c8664(_0x4e873c._0x48d8bf,0x324,_0x4e873c._0x548c95,0x469)](_0x277e44);},async 'saveCodeVerifier'(_0x3acbde){await updateStore(_0x5e86fc,_0x6a698=>{function _0x424075(_0x35e7f5,_0x3a90fb,_0x2b2911,_0x54f10f){return _0x25c6(_0x2b2911- -0x258,_0x54f10f);}_0x6a698[_0x424075(0x217,_0x55a83f._0x242b24,_0x55a83f._0x8fa5d6,_0x55a83f._0x1781e5)]=_0x3acbde;});},async 'codeVerifier'(){const _0x4b9a54={_0x3f2d34:0xcc,_0x1e886e:0xe9},_0x549417=(await readStore(_0x5e86fc))[_0x553b61(_0x5abce1._0x128d9a,0x4b1,0x37c,_0x5abce1._0x21effe)];if(!_0x549417)throw new Error(_0x553b61(0xf6,0x2c6,_0x5abce1._0x208acf,0x2c5));function _0xd839cf(_0x51e816,_0x59af84,_0x5966c6,_0x27420c){return _0x5913db(_0x5966c6,_0x59af84-0x180,_0x51e816-0x366,_0x27420c-_0x2c384a._0x5ae5d3);}function _0x553b61(_0x25291d,_0x356725,_0x590273,_0x1be4b8){return _0x5cf309(_0x25291d,_0x356725-_0x4b9a54._0x3f2d34,_0x590273-_0x4b9a54._0x1e886e,_0x590273-0x3b9);}return _0x549417;},async 'invalidateCredentials'(_0x1c5047){await updateStore(_0x5e86fc,_0x447592=>{(_0x1c5047===_0x197413(_0x2e7774._0x5e1613,_0x2e7774._0xca3733,_0x2e7774._0x26ca67,0x5e2)||_0x1c5047===_0x2b89ee(-_0x2e7774._0x43602e,-0x33,-_0x2e7774._0x27e18f,-0x6f))&&(_0x447592['clientInformation']=void 0x0);function _0x2b89ee(_0x43a045,_0x29a41f,_0x542912,_0xdc2881){return _0x25c6(_0xdc2881- -0x2e7,_0x29a41f);}(_0x1c5047===_0x197413(_0x2e7774._0xfea6b6,_0x2e7774._0xca3733,0x6fb,_0x2e7774._0x5485b6)||_0x1c5047===_0x197413(0x4bd,_0x2e7774._0x2e6879,_0x2e7774._0x356f0d,0x72e))&&(_0x447592[_0x197413(0x611,_0x2e7774._0x2e6879,_0x2e7774._0x2ce2b0,_0x2e7774._0x2eb6a4)]=void 0x0);function _0x197413(_0x1c85e8,_0x52a61e,_0x1b2b50,_0x4d75a4){return _0x25c6(_0x52a61e-0x379,_0x4d75a4);}(_0x1c5047===_0x197413(_0x2e7774._0x412619,0x5fc,0x576,_0x2e7774._0x1a82ac)||_0x1c5047===_0x197413(_0x2e7774._0x206d0e,_0x2e7774._0x135e4d,_0x2e7774._0x284e3a,0x4bc))&&(_0x447592[_0x2b89ee(0xdb,0xa6,0x8,0x68)]=void 0x0,_0x447592[_0x197413(0x595,0x635,0x6a7,_0x2e7774._0x3887ef)]=void 0x0),(_0x1c5047===_0x2b89ee(-0x45,-0xf5,0xcb,-0x64)||_0x1c5047===_0x197413(0x45c,0x4af,_0x2e7774._0x162b85,0x4fe))&&(_0x447592[_0x197413(0x6b1,0x5e9,0x58b,_0x2e7774._0x1cc6a5)]=void 0x0);});},async 'saveDiscoveryState'(_0x5d41ee){await updateStore(_0x5e86fc,_0x3d438a=>{_0x3d438a['discoveryState']=_0x5d41ee;});},async 'discoveryState'(){return(await readStore(_0x5e86fc))['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(_0x223cae,_0x2abd1e){const _0x5391e2={_0x5712b3:0x4fa},_0x399e3b={_0x12ebc9:0x1cf,_0x143668:0x65,_0x3d7b9b:0x168};function _0x4599ff(_0x5af46f,_0x17d300,_0x418fc3,_0x1f534d){return _0x29b8eb(_0x5af46f-_0x399e3b._0x12ebc9,_0x5af46f- -_0x399e3b._0x143668,_0x418fc3-_0x399e3b._0x3d7b9b,_0x17d300);}const _0x467e33=_0x16cf93=>_0x16cf93['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x4f5ff1(0x1a4,0x10c,0x198,0x1bc)](/^_+|_+$/g,'');function _0x4f5ff1(_0x55fec9,_0x21cc95,_0xb251a,_0x4cca64){return _0x5a3b3d(_0xb251a,_0x21cc95-0x19e,_0x4cca64- -0x1f7,_0x4cca64-0x1a1);}return _0x4599ff(0x4a9,0x47d,_0x5391e2._0x5712b3,0x5de)+_0x467e33(_0x223cae)+'_'+_0x467e33(_0x2abd1e);}function isObject(_0x2ad2cb){const _0x37baac={_0x55ca6f:0x7e2,_0x36d028:0x6e5,_0x24cd18:0x547,_0x56e6e7:0x676},_0x682f74={_0x103c00:0xf1},_0x53062a={_0x213f59:0x9d};function _0x705ae(_0x33e4c7,_0x3963c0,_0x16a5da,_0x32c66d){return _0x5a3b3d(_0x32c66d,_0x3963c0-0xf5,_0x16a5da-0x382,_0x32c66d-_0x53062a._0x213f59);}function _0x4aa01b(_0x250c41,_0x4b443e,_0x21855b,_0x57a72f){return _0x5a3b3d(_0x57a72f,_0x4b443e-_0x682f74._0x103c00,_0x21855b-0x44,_0x57a72f-0x8);}return typeof _0x2ad2cb===_0x705ae(_0x37baac._0x55ca6f,0x65b,0x692,_0x37baac._0x36d028)&&_0x2ad2cb!==null&&!Array[_0x705ae(_0x37baac._0x24cd18,_0x37baac._0x56e6e7,0x698,0x6c3)](_0x2ad2cb);}function toSupportedSchema(_0x83068f){const _0x503da9={_0x3c15d5:0x120,_0xd1e8:0x10,_0x175a8b:0x2e,_0x2da3f7:0x1c1,_0x55160c:0x314,_0x4cd39a:0x352,_0x2e38b5:0x362,_0x52429d:0x1ca,_0x1756d1:0x2e3,_0x412ca6:0x1fa,_0x29e73a:0x2b6,_0x58d50a:0x102,_0x468ff1:0x10b,_0x5b60b8:0xb,_0x5bd3d8:0x184,_0x1eaf2d:0x333,_0x8405f6:0x21e,_0x3f3d1f:0x241,_0x426d41:0x103,_0x39297b:0x293,_0x1758b3:0x120,_0xfa14ae:0x35f,_0x5ccb71:0x3b3,_0x5a24c2:0x27f,_0x36c047:0x37,_0x3d9193:0x17b,_0x38082b:0xde,_0x2e44d6:0x203,_0x284279:0x284,_0x7ed501:0x348,_0x13eb00:0xf,_0xc241ad:0x2ff,_0x4ff7d6:0x355,_0x30dec6:0x120,_0x4b203a:0x1c8,_0x3ccb5d:0x2e4,_0x1d34ff:0x3ac,_0xde2524:0x208},_0x56cde3={_0x2c9ee2:0x14d,_0x2c477b:0xd6},_0x1f7877={_0x49c6e7:0x4d};if(!isObject(_0x83068f))return void 0x0;function _0x2ce7d1(_0x5d1177,_0x5f4bdb,_0x293aab,_0x2be094){return _0x5a3b3d(_0x293aab,_0x5f4bdb-0x18,_0x5d1177- -0x2c,_0x2be094-_0x1f7877._0x49c6e7);}if(_0x83068f[_0x241df3(_0x503da9._0x3c15d5,-_0x503da9._0xd1e8,0x23d,_0x503da9._0x175a8b)]===_0x241df3(0x29a,_0x503da9._0x2da3f7,_0x503da9._0x55160c,_0x503da9._0x4cd39a))return{'type':_0x2ce7d1(0x344,0x48e,0x42e,_0x503da9._0x2e38b5)};if(_0x83068f[_0x2ce7d1(_0x503da9._0x52429d,0x2c8,0x203,_0x503da9._0x1756d1)]===_0x2ce7d1(0x241,_0x503da9._0x412ca6,_0x503da9._0x29e73a,_0x503da9._0x58d50a)||_0x83068f[_0x241df3(0x120,_0x503da9._0x468ff1,-_0x503da9._0x5b60b8,_0x503da9._0x5bd3d8)]===_0x2ce7d1(0x311,_0x503da9._0x1eaf2d,_0x503da9._0x8405f6,0x3b8))return{'type':_0x2ce7d1(_0x503da9._0x3f3d1f,0x11f,_0x503da9._0x426d41,_0x503da9._0x39297b)};if(_0x83068f[_0x241df3(_0x503da9._0x1758b3,0x267,0x164,0x93)]==='boolean')return{'type':_0x2ce7d1(_0x503da9._0xfa14ae,_0x503da9._0x5ccb71,_0x503da9._0x5a24c2,0x336)};function _0x241df3(_0x25291b,_0x1d0d59,_0x10c5f4,_0x179046){return _0x5a3b3d(_0x10c5f4,_0x1d0d59-_0x56cde3._0x2c9ee2,_0x25291b- -_0x56cde3._0x2c477b,_0x179046-0x33);}if(_0x83068f[_0x241df3(0x120,_0x503da9._0x36c047,_0x503da9._0x3d9193,_0x503da9._0x38082b)]===_0x241df3(_0x503da9._0x2e44d6,0x349,_0x503da9._0x284279,_0x503da9._0x52429d))return{'type':_0x2ce7d1(0x2ad,_0x503da9._0x7ed501,0x1fd,0x32a),'items':toSupportedSchema(_0x83068f[_0x241df3(0x11f,0x24,_0x503da9._0x13eb00,0xdb)])??{'type':_0x2ce7d1(0x344,_0x503da9._0xc241ad,_0x503da9._0x4ff7d6,0x2dc)}};if(_0x83068f[_0x241df3(_0x503da9._0x30dec6,-0x16,_0x503da9._0x4b203a,0x190)]===_0x2ce7d1(_0x503da9._0x3ccb5d,_0x503da9._0x1d34ff,_0x503da9._0xde2524,0x1ed))return toNuvinToolSchema(_0x83068f);return void 0x0;}function toNuvinToolSchema(_0x53e75f){const _0x447b24={_0x4a1108:0x50e,_0x553ea3:0x5a8,_0x568b61:0x3c7,_0x361b30:0x56a,_0x1747f9:0x4ae,_0x310d1d:0x4cb,_0x3f560a:0x3fc,_0x3feb13:0x2c6,_0x3c9062:0x490,_0x15004b:0x5d9,_0x152577:0x5b5,_0xe30d32:0x504,_0x59e4f5:0x61f,_0x21766e:0x48c},_0x4adc7f={_0x340bca:0xd1,_0x54dd0c:0x1dc};function _0x3384ef(_0x3efef5,_0x12e095,_0x4c4d3f,_0x2843a7){return _0x29b8eb(_0x3efef5-_0x4adc7f._0x340bca,_0x3efef5-0xa1,_0x4c4d3f-_0x4adc7f._0x54dd0c,_0x2843a7);}if(!isObject(_0x53e75f)||_0x53e75f[_0x3384ef(_0x447b24._0x4a1108,_0x447b24._0x553ea3,0x3df,_0x447b24._0x568b61)]!==_0x5c5133(_0x447b24._0x361b30,0x4c4,_0x447b24._0x1747f9,0x5f8))return{'type':'object','properties':{}};const _0x4d51e4={},_0x35b4df=isObject(_0x53e75f[_0x3384ef(0x482,_0x447b24._0x310d1d,_0x447b24._0x3f560a,0x509)])?_0x53e75f[_0x5c5133(0x3c4,0x4e6,_0x447b24._0x3feb13,0x395)]:{};for(const [_0x1a5f70,_0x11864f]of Object['entries'](_0x35b4df)){const _0x1bb8ea=toSupportedSchema(_0x11864f);if(_0x1bb8ea)_0x4d51e4[_0x1a5f70]=_0x1bb8ea;}function _0x5c5133(_0x570699,_0x351864,_0x10717c,_0x5ed278){return _0x5a3b3d(_0x5ed278,_0x351864-0x87,_0x570699-0x25a,_0x5ed278-0x1f2);}const _0x38269a=Array[_0x5c5133(0x570,_0x447b24._0x3c9062,0x522,_0x447b24._0x15004b)](_0x53e75f['required'])?_0x53e75f['required'][_0x3384ef(_0x447b24._0x152577,0x637,0x4c2,0x497)](_0x2d133c=>typeof _0x2d133c===_0x5c5133(0x5ca,0x4ec,0x57e,0x4bc)):void 0x0;return _0x38269a?.['length']?{'type':_0x5c5133(0x56a,_0x447b24._0xe30d32,0x5bc,_0x447b24._0xe30d32),'properties':_0x4d51e4,'required':_0x38269a}:{'type':_0x5c5133(0x56a,0x58f,_0x447b24._0x59e4f5,_0x447b24._0x21766e),'properties':_0x4d51e4};}function isJsonObject(_0x431272){const _0x511b84={_0x39efa2:0x2e2},_0x2447b7={_0x311510:0x28,_0xd23863:0xfb};function _0x16cfca(_0x505fb8,_0x3f5cc5,_0x179ab7,_0x5dd696){return _0x29b8eb(_0x505fb8-_0x2447b7._0x311510,_0x5dd696- -0x2ab,_0x179ab7-_0x2447b7._0xd23863,_0x3f5cc5);}return typeof _0x431272==='object'&&_0x431272!==null&&!Array[_0x16cfca(0x320,0x1d3,0x20d,_0x511b84._0x39efa2)](_0x431272);}function formatMcpContent(_0x350206){const _0x2a19ef={_0x311740:0x8c,_0x17d9f7:0xcd,_0x285610:0x2ad,_0x2f43d0:0x296,_0x319e1b:0x3cd,_0x16c391:0x3cd,_0x1f6d9e:0x49,_0x434c4c:0x3e,_0x38759e:0x53,_0x337dda:0x1a8,_0x39b21e:0x201},_0x1d0684={_0x53e143:0x1eb,_0x473958:0x11d},_0x3b52e0={_0x1e1398:0x3e8,_0x319033:0x1c0},_0x4a0cb5={_0x394e4d:0x17e,_0x38c6af:0x120,_0x489966:0x10c,_0x569597:0x16c,_0x5f0309:0x22c,_0x25c67b:0x6b,_0x5c86b7:0x17e,_0x7d4b5a:0x238},_0x35e52={_0x54f231:0xdb,_0x2ce989:0x93,_0x353198:0x72},_0x41ad95={_0x46f328:0x64,_0x56c50f:0x12b},_0x2a9d25=Array[_0x2ea2aa(0x20d,_0x2a19ef._0x311740,0x1a5,_0x2a19ef._0x17d9f7)](_0x350206[_0xfdf29c(_0x2a19ef._0x285610,_0x2a19ef._0x2f43d0,0x354,_0x2a19ef._0x319e1b)])?_0x350206[_0xfdf29c(0x51e,0x47d,0x2f2,_0x2a19ef._0x16c391)]:[],_0x5375ec=_0x2a9d25['map'](_0xaf247c=>{function _0x57a8f6(_0x71e9c1,_0x22087a,_0x338a47,_0x538fc){return _0xfdf29c(_0x22087a,_0x22087a-_0x41ad95._0x46f328,_0x338a47-0x148,_0x338a47- -_0x41ad95._0x56c50f);}if(!isObject(_0xaf247c))return'';if(_0xaf247c['type']===_0x4045fa(0x1be,_0x4a0cb5._0x394e4d,0x180,_0x4a0cb5._0x38c6af)&&typeof _0xaf247c['text']===_0x4045fa(_0x4a0cb5._0x489966,_0x4a0cb5._0x569597,_0x4a0cb5._0x5f0309,0x14a))return _0xaf247c[_0x4045fa(_0x4a0cb5._0x25c67b,_0x4a0cb5._0x5c86b7,0x1a1,0x83)];function _0x4045fa(_0x367999,_0x4ba565,_0x4ed5f3,_0x584ae6){return _0x2ea2aa(_0x584ae6,_0x4ba565-_0x35e52._0x54f231,_0x4ba565- -_0x35e52._0x2ce989,_0x584ae6-_0x35e52._0x353198);}return JSON[_0x4045fa(0x7a,0x16e,0x61,_0x4a0cb5._0x7d4b5a)](_0xaf247c);})[_0x2ea2aa(_0x2a19ef._0x1f6d9e,0x230,0x12c,_0x2a19ef._0x434c4c)](_0x5b8ed5=>_0x5b8ed5[_0x2ea2aa(0x19c,0xda,0xda,0x63)]>0x0)['join']('\x0a');function _0x2ea2aa(_0x485dda,_0x4179a6,_0x36b4c9,_0x1d4a09){return _0x29b8eb(_0x485dda-0xd7,_0x36b4c9- -_0x3b52e0._0x1e1398,_0x36b4c9-_0x3b52e0._0x319033,_0x485dda);}function _0xfdf29c(_0x595f72,_0x4892ab,_0x29c41a,_0x502b97){return _0x5a3b3d(_0x595f72,_0x4892ab-_0x1d0684._0x53e143,_0x502b97-_0x1d0684._0x473958,_0x502b97-0x15b);}if(_0x5375ec[_0x2ea2aa(0xf1,-_0x2a19ef._0x38759e,0xda,0x20e)]>0x0)return _0x5375ec;return JSON[_0x2ea2aa(0x143,_0x2a19ef._0x337dda,_0x2a19ef._0x39b21e,0x29f)](_0x350206,null,0x2);}function createMcpTool(_0x3b7fd8){const _0x17a8b7={_0x451d84:0x3c,_0xd7ae1d:0x52,_0x1422fa:0x1a,_0x5cd5f8:0x361,_0x4aad21:0x34a,_0x1e8e45:0x12,_0x389245:0x6c,_0x54af3d:0x1a4,_0x2f628e:0xd4,_0x1b9df1:0x1fb,_0x28c4e4:0x11a,_0x4709e9:0x28d,_0x15d466:0x24d,_0x3ac18d:0x25,_0x400598:0x1d0,_0x428e71:0x1cd,_0x361ae6:0x24b,_0x24854e:0x247},_0x1ee1df={_0x4f6888:0x60d,_0x3ed912:0x573,_0x31380d:0x110,_0x3a6e89:0xa4,_0x50e93c:0xc5,_0x20bd83:0x606,_0x3d240b:0x4ee,_0x4e55eb:0x583,_0x18bc6e:0x3e1,_0xee399e:0x4f8,_0x31eab0:0x4c0,_0xa73f2e:0x5c2,_0x23fe01:0xa7,_0x350401:0x152},_0x26a889={_0x3e2a64:0x162,_0x2131c3:0x193},_0x32d0dc={_0x26da39:0x3ac,_0x29f260:0x19a},_0x5058c4={_0x23018c:0x10a},_0x138eb9={_0x1c74b8:0xd9,_0x2de2ff:0x41b,_0x2e5040:0x1dc};function _0x167e0f(_0x5510cc,_0x4b29e7,_0x361c3f,_0x46510f){return _0x29b8eb(_0x5510cc-_0x138eb9._0x1c74b8,_0x46510f- -_0x138eb9._0x2de2ff,_0x361c3f-_0x138eb9._0x2e5040,_0x4b29e7);}const _0x189d8d=createMcpToolName(_0x3b7fd8[_0x167e0f(_0x17a8b7._0x451d84,-_0x17a8b7._0xd7ae1d,0xfe,_0x17a8b7._0x1422fa)],_0x3b7fd8[_0x5b3a34(_0x17a8b7._0x5cd5f8,0x100,0x216,_0x17a8b7._0x4aad21)]['name']);function _0x5b3a34(_0x2bda0f,_0x3f7ba1,_0x3233f4,_0x355ed4){return _0x29b8eb(_0x2bda0f-_0x5058c4._0x23018c,_0x3233f4- -0x2d9,_0x3233f4-0x23,_0x3f7ba1);}return defineTool({'name':_0x189d8d,'description':_0x3b7fd8['tool']['description']??'MCP\x20tool\x20'+_0x3b7fd8[_0x167e0f(-_0x17a8b7._0x1e8e45,_0x17a8b7._0x389245,_0x17a8b7._0x54af3d,_0x17a8b7._0x2f628e)][_0x5b3a34(_0x17a8b7._0x1b9df1,0x9,_0x17a8b7._0x28c4e4,0x181)]+_0x5b3a34(_0x17a8b7._0x4709e9,_0x17a8b7._0x15d466,0x213,0xde)+_0x3b7fd8[_0x5b3a34(0x5b,_0x17a8b7._0x3ac18d,0x15c,_0x17a8b7._0x400598)],'inputSchema':toNuvinToolSchema(_0x3b7fd8[_0x167e0f(0xad,-0x16,0x128,0xd4)][_0x167e0f(0x166,_0x17a8b7._0x428e71,_0x17a8b7._0x361ae6,_0x17a8b7._0x24854e)]),async *'execute'(_0x1eeafd){const _0x17e85f=await _0x3b7fd8['client']['callTool']({'name':_0x3b7fd8[_0x3ad3ae(_0x1ee1df._0x4f6888,0x553,0x5c2,_0x1ee1df._0x3ed912)][_0x72b252(0x6c,_0x1ee1df._0x31380d,_0x1ee1df._0x3a6e89,_0x1ee1df._0x50e93c)],'arguments':isJsonObject(_0x1eeafd)?_0x1eeafd:{}});if(_0x17e85f[_0x3ad3ae(_0x1ee1df._0x20bd83,0x4b7,_0x1ee1df._0x3d240b,0x582)])throw new ToolExecutionError(formatMcpContent(_0x17e85f),{'serverName':_0x3b7fd8[_0x3ad3ae(0x3ed,_0x1ee1df._0x4e55eb,0x508,_0x1ee1df._0x18bc6e)],'toolName':_0x3b7fd8[_0x3ad3ae(_0x1ee1df._0xee399e,_0x1ee1df._0x31eab0,_0x1ee1df._0xa73f2e,0x6fa)]['name']});function _0x3ad3ae(_0x470041,_0xa18bb9,_0xd69413,_0x3e163f){return _0x5b3a34(_0x470041-0x28,_0xa18bb9,_0xd69413-_0x32d0dc._0x26da39,_0x3e163f-_0x32d0dc._0x29f260);}yield createToolOutput(formatMcpContent(_0x17e85f),{'serverName':_0x3b7fd8[_0x72b252(_0x1ee1df._0x23fe01,_0x1ee1df._0x350401,0x282,0x1c7)],'toolName':_0x3b7fd8[_0x3ad3ae(0x5b9,0x48c,_0x1ee1df._0xa73f2e,0x508)]['name'],'result':_0x17e85f});function _0x72b252(_0x92a280,_0x230506,_0x1d4720,_0x4322da){return _0x167e0f(_0x92a280-_0x26a889._0x3e2a64,_0x92a280,_0x1d4720-_0x26a889._0x2131c3,_0x230506-0x138);}return void 0x0;}});}function resolvePrefix(_0x3cd66d,_0x42aa59){const _0x589de5={_0xaf12af:0x5a6,_0x298514:0x520,_0x24c499:0x4d0},_0x4ae0c3={_0x42d9e1:0x31,_0x45cf49:0x198};function _0x22ec1a(_0x99601d,_0x104266,_0x269665,_0x29356c){return _0x5a3b3d(_0x104266,_0x104266-_0x4ae0c3._0x42d9e1,_0x269665-0x1a9,_0x29356c-_0x4ae0c3._0x45cf49);}return _0x42aa59[_0x22ec1a(0x4fd,_0x589de5._0xaf12af,_0x589de5._0x298514,_0x589de5._0x24c499)]??_0x3cd66d;}function buildMcpHttpHeaders(_0x36d59b){const _0x12b2aa={_0x2fb0df:0xe0,_0x48e9ea:0x19b,_0x37008c:0x9,_0x118de4:0x151,_0x10666f:0x4f4,_0x78203a:0x454,_0x2cfffd:0x504,_0x3dd38f:0x3ed,_0x23ab13:0xbb,_0x23a9d1:0x48e,_0x2f7046:0x4ca,_0x5e5338:0x4a3,_0x4095cd:0xe7,_0x26f7b5:0x1f,_0x1f6033:0x164,_0xfe70aa:0x6d6,_0x5d4f3b:0x5a8,_0x18e6fc:0x5d4,_0x5581f4:0x67b,_0x4e7682:0x62a,_0x51fd78:0x52d,_0x23d072:0x170,_0x3bc4fa:0x182},_0x380ed7={_0x2d02b9:0xe7,_0x4a52a9:0xa6},_0xd9eac9={_0x3b828a:0x315,_0x55a7cc:0xdd},_0x137d28={..._0x36d59b[_0x514bc8(-_0x12b2aa._0x2fb0df,-_0x12b2aa._0x48e9ea,-0xc7,-0x76)]??{}};_0x36d59b[_0x514bc8(-_0x12b2aa._0x37008c,-_0x12b2aa._0x118de4,0xc,0x2c)]?.[_0x5b6de8(0x634,0x50b,_0x12b2aa._0x10666f,_0x12b2aa._0x78203a)]===_0x5b6de8(0x62b,_0x12b2aa._0x2cfffd,_0x12b2aa._0x3dd38f,0x5fd)&&_0x36d59b[_0x514bc8(-0x9,_0x12b2aa._0x23ab13,0x77,0x11e)]['token']&&_0x137d28[_0x5b6de8(_0x12b2aa._0x23a9d1,_0x12b2aa._0x2f7046,_0x12b2aa._0x5e5338,0x391)]===void 0x0&&(_0x137d28[_0x514bc8(-_0x12b2aa._0x4095cd,_0x12b2aa._0x26f7b5,-_0x12b2aa._0x1f6033,-0xdc)]=_0x5b6de8(0x5a4,0x699,0x648,_0x12b2aa._0xfe70aa)+_0x36d59b[_0x5b6de8(0x545,_0x12b2aa._0x5d4f3b,_0x12b2aa._0x18e6fc,0x65d)][_0x5b6de8(0x6dd,_0x12b2aa._0x5581f4,_0x12b2aa._0x4e7682,_0x12b2aa._0x51fd78)]);function _0x5b6de8(_0x5ac473,_0x57748d,_0x6bd003,_0x3f6d4f){return _0x5a3b3d(_0x6bd003,_0x57748d-0x4a,_0x57748d-_0xd9eac9._0x3b828a,_0x3f6d4f-_0xd9eac9._0x55a7cc);}function _0x514bc8(_0x32ea6c,_0x5f36fb,_0x2e2324,_0x175b23){return _0x29b8eb(_0x32ea6c-_0x380ed7._0x2d02b9,_0x32ea6c- -0x513,_0x2e2324-_0x380ed7._0x4a52a9,_0x5f36fb);}return Object[_0x514bc8(0xe1,_0x12b2aa._0x23d072,_0x12b2aa._0x3bc4fa,0x196)](_0x137d28)['length']>0x0?_0x137d28:void 0x0;}function getErrorMessage(_0x2de15f){const _0x17e452={_0x400c11:0x47,_0x2c7625:0x20e},_0x45fab={_0x45c759:0x38,_0x1f21c2:0x19f};function _0x54c13c(_0x30ec74,_0x1a0740,_0x3b2cb1,_0x4f719c){return _0x29b8eb(_0x30ec74-_0x45fab._0x45c759,_0x4f719c- -0x37a,_0x3b2cb1-_0x45fab._0x1f21c2,_0x1a0740);}return _0x2de15f instanceof Error?_0x2de15f[_0x54c13c(_0x17e452._0x400c11,0x1c2,_0x17e452._0x2c7625,0xf4)]:String(_0x2de15f);}function isUnauthorizedError(_0x28bb9f){const _0x122030={_0x9236f3:0x2f5,_0x4666b6:0x3e7,_0xa379e:0x2a,_0x1b7bef:0xb6,_0x1bda1d:0xf0},_0x464fbe={_0x57bca5:0x177,_0x3f4b5a:0xc8};function _0x5a6310(_0x4425ce,_0x184bd0,_0x39c487,_0x33a043){return _0x5a3b3d(_0x33a043,_0x184bd0-0x9c,_0x184bd0- -0xc6,_0x33a043-0x191);}function _0x6f767(_0x1cafe0,_0x1c82ed,_0x322b02,_0x545c8b){return _0x5a3b3d(_0x322b02,_0x1c82ed-_0x464fbe._0x57bca5,_0x545c8b-0x114,_0x545c8b-_0x464fbe._0x3f4b5a);}return _0x28bb9f instanceof Error&&_0x28bb9f[_0x6f767(_0x122030._0x9236f3,_0x122030._0x4666b6,0x3ca,0x391)][_0x5a6310(_0x122030._0xa379e,_0x122030._0x1b7bef,0x1cc,0x17a)]===_0x5a6310(_0x122030._0x1bda1d,0x1fa,0x2c3,0xf8);}async function connectMcpServer(_0x24cdcf,_0x23b193,_0x36b887){const _0x142f52={_0x336083:0x1d5,_0x2c7a12:0x1d8,_0x474fcc:0x3d5,_0x265fc6:0x2a2,_0x3018e6:0x2bd,_0x1f5cbe:0x2f8,_0x24e03c:0x9a,_0x4c9bb6:0x6a,_0x47b02c:0x119,_0x118c2d:0x97,_0x3a1418:0x154,_0x3d38cc:0xda,_0x30d0c8:0x270,_0x15a5ac:0x440,_0x285d30:0x394,_0x54281e:0x4d5,_0x35dc84:0x71,_0x3fd349:0x17,_0x3095a8:0x124,_0x446c4c:0xb9,_0x1c7753:0x464,_0xa9085b:0x2ec,_0x4f5865:0x133,_0x3b2bde:0x8,_0x29b1cb:0x13c,_0x5586bf:0x112,_0xc1ce6c:0x18a,_0x237cb9:0x3c,_0x4152fa:0x13f,_0x1b43f7:0x1fb,_0x22a385:0x20a,_0x3c0be2:0x188,_0x44d265:0x2d2,_0x8a8bb8:0x38b,_0x47591e:0x3b5,_0x40fa50:0x35d,_0xbc5fdd:0x1ff,_0x1d6c82:0x499,_0x2be095:0x328,_0x2b1022:0x4bd,_0x155204:0x302,_0x2a17a6:0x304,_0x2b2ac2:0x2a7,_0x328b83:0x2bc},_0x129cfa={_0x1eb818:0x202,_0x14de69:0x250},_0x392ff9={_0xb361d0:0x1cb},_0x5454a5={_0x145efb:0x164,_0x1a71b1:0x4c},_0x34ffc1={_0x59c91e:0x128,_0x44296a:0xce},_0x3db6f3={_0x4e91ea:0x188},_0x19666e={_0x382e72:0x181,_0x1ba96d:0x3cd,_0x2f3510:0x281,_0x3e6789:0xa9,_0x190f1f:0x10,_0x1fff7d:0x150},_0x2a0c4e={_0x148691:0x1,_0x381ee7:0x167},_0x33ac7d={_0x515fc0:0x19},_0x180fea={_0x9203ff:0x17d,_0x1dca9c:0xb5};function _0x4cff39(_0x2188e1,_0x24aec6,_0x15e008,_0x1e9f45){return _0x5a3b3d(_0x24aec6,_0x24aec6-_0x180fea._0x9203ff,_0x2188e1- -0x34d,_0x1e9f45-_0x180fea._0x1dca9c);}function _0x231bfc(_0x17d48e,_0xff2799,_0x2669c9,_0x2ccd3d){return _0x5a3b3d(_0x2669c9,_0xff2799-_0x33ac7d._0x515fc0,_0xff2799- -0x2a,_0x2ccd3d-0xd0);}const _0x5e734a=new Client({'name':'nuvin','version':_0x231bfc(0xde,_0x142f52._0x336083,0x2bf,_0x142f52._0x2c7a12)});_0x5e734a[_0x231bfc(_0x142f52._0x474fcc,_0x142f52._0x265fc6,_0x142f52._0x3018e6,_0x142f52._0x1f5cbe)]=_0x2af226=>{const _0x38025e={_0x312202:0x1a5,_0x3df3ca:0x1b8};function _0x3aaa25(_0x3f407d,_0x18eaea,_0x3e70fd,_0x31d9c7){return _0x231bfc(_0x3f407d-_0x2a0c4e._0x148691,_0x18eaea-0x379,_0x31d9c7,_0x31d9c7-_0x2a0c4e._0x381ee7);}function _0x5d6efe(_0x449146,_0x4cef89,_0x5a19bf,_0x558a64){return _0x231bfc(_0x449146-_0x38025e._0x312202,_0x558a64- -0x15e,_0x449146,_0x558a64-_0x38025e._0x3df3ca);}console[_0x3aaa25(0x6cb,0x6e1,0x5fc,0x7fd)](_0x5d6efe(0x1fd,_0x19666e._0x382e72,_0x19666e._0x1ba96d,_0x19666e._0x2f3510)+_0x24cdcf+_0x5d6efe(_0x19666e._0x3e6789,-0x21,-0x3,-_0x19666e._0x190f1f),_0x2af226[_0x5d6efe(_0x19666e._0x1fff7d,-0x11,0x169,0x6f)]);};if(_0x23b193[_0x4cff39(-0x22,_0x142f52._0x24e03c,-0x48,_0x142f52._0x4c9bb6)]==='http'||_0x23b193[_0x4cff39(-_0x142f52._0x47b02c,-0x28,-0x5,-0x8a)]){if(!_0x23b193[_0x4cff39(-_0x142f52._0x47b02c,-0x1d4,-_0x142f52._0x118c2d,-0x258)])throw new Error('MCP\x20server\x20'+_0x24cdcf+_0x4cff39(-0x188,-0x15d,-_0x142f52._0x3a1418,-0x2b3));if(_0x23b193['auth']?.[_0x231bfc(0x2a2,0x1cc,_0x142f52._0x3d38cc,_0x142f52._0x30d0c8)]===_0x231bfc(_0x142f52._0x15a5ac,_0x142f52._0x285d30,_0x142f52._0x54281e,0x407)&&!_0x36b887?.[_0x4cff39(_0x142f52._0x35dc84,_0x142f52._0x3fd349,0x9f,0x3c)])throw new Error(_0x4cff39(-_0x142f52._0x3095a8,-0x159,-0x3,-0x160)+_0x24cdcf+'\x20requires\x20OAuth\x20connection\x20options');const _0xab6fd=buildMcpHttpHeaders(_0x23b193),_0x1a1c0f=_0x23b193['auth']?.[_0x231bfc(0x230,0x1cc,0xd5,0xea)]===_0x4cff39(_0x142f52._0x35dc84,0x18f,-_0x142f52._0x446c4c,0x25)&&_0x36b887?.[_0x231bfc(0x2f5,_0x142f52._0x285d30,_0x142f52._0x1c7753,_0x142f52._0xa9085b)]?createMcpOAuthProvider({'serverName':_0x24cdcf,'callbackUrl':_0x36b887[_0x4cff39(_0x142f52._0x35dc84,0x14d,_0x142f52._0x4f5865,_0x142f52._0x3b2bde)][_0x231bfc(0x26,_0x142f52._0x29b1cb,_0x142f52._0x5586bf,_0x142f52._0xc1ce6c)],'storageDir':_0x36b887['oauth'][_0x4cff39(0xb9,-0x1e,_0x142f52._0x237cb9,_0x142f52._0x4152fa)],'config':_0x23b193['auth'],'onRedirect':_0x1976bc=>_0x36b887[_0x4cff39(0x71,-0x8c,0x13c,0x118)]?.[_0x4cff39(-0x173,-0x12d,-0xfb,-0x248)](_0x24cdcf,_0x1976bc)}):void 0x0,_0x423855=new StreamableHTTPClientTransport(new URL(_0x23b193[_0x231bfc(_0x142f52._0x1b43f7,_0x142f52._0x22a385,_0x142f52._0x3c0be2,0x30d)]),{'authProvider':_0x1a1c0f,'requestInit':_0xab6fd?{'headers':_0xab6fd}:void 0x0});await _0x5e734a[_0x231bfc(0x1ff,0x1ab,_0x142f52._0x44d265,0x14e)](_0x423855);}else{if(!_0x23b193[_0x231bfc(_0x142f52._0x8a8bb8,_0x142f52._0x47591e,_0x142f52._0x40fa50,0x4e8)])throw new Error(_0x231bfc(0x335,_0x142f52._0xbc5fdd,0x14f,0xfe)+_0x24cdcf+_0x231bfc(0x33c,0x39e,_0x142f52._0x1d6c82,0x29c));const _0x55dd12=new StdioClientTransport({'command':_0x23b193[_0x231bfc(0x335,0x3b5,_0x142f52._0x2be095,_0x142f52._0x2b1022)],'args':_0x23b193[_0x231bfc(0x2d7,_0x142f52._0x155204,0x44e,_0x142f52._0x2a17a6)]??[],'env':_0x23b193['env'],'stderr':_0x4cff39(-0x1dd,-0x18c,-_0x142f52._0x2b2ac2,-0x2a0)});await _0x5e734a[_0x231bfc(0x2ea,0x1ab,_0x142f52._0x328b83,0x14c)](_0x55dd12);}return{async 'listTools'(){function _0x411127(_0x7bddc,_0x159d6f,_0x49798d,_0x1a44bd){return _0x4cff39(_0x7bddc-0x11a,_0x159d6f,_0x49798d-0x115,_0x1a44bd-_0x3db6f3._0x4e91ea);}return await _0x5e734a[_0x411127(_0x34ffc1._0x59c91e,0x1ae,_0x34ffc1._0x44296a,0x136)]();},async 'callTool'(_0x8616a){function _0x6d7868(_0x4659b6,_0x17aab3,_0x549da9,_0x380c9e){return _0x4cff39(_0x380c9e-0x30a,_0x4659b6,_0x549da9-0x76,_0x380c9e-0x1c1);}return await _0x5e734a['request']({'method':_0x6d7868(0xb0,_0x5454a5._0x145efb,_0x5454a5._0x1a71b1,0x13b),'params':_0x8616a},CallToolResultSchema);},async 'close'(){function _0x24e446(_0xb1e70,_0x5832a8,_0x5bfd5b,_0x583027){return _0x231bfc(_0xb1e70-_0x392ff9._0xb361d0,_0x5832a8- -0x375,_0x5bfd5b,_0x583027-0x134);}await _0x5e734a[_0x24e446(-0x350,-_0x129cfa._0x1eb818,-0x2f9,-_0x129cfa._0x14de69)]();}};}async function createMcpToolsFromServers(_0x1b7203){const _0x348324={_0x83596b:0x1e0,_0x2a8aae:0xd5,_0x17b9f3:0xa4,_0x4ba11e:0x30f,_0x2d9ae7:0x1ce,_0x76c68f:0x82,_0x26cc81:0x25b,_0x32ee49:0x1a2,_0x247cd4:0x201,_0x402da0:0xfc,_0x17cb87:0x110,_0x20946e:0x13d,_0x260291:0x3f5,_0x1a7407:0x385,_0x569b31:0x30e,_0xa644f:0xb2,_0x28bcaa:0x234,_0x31f8f7:0xfb,_0x33128d:0x3b},_0x4a9241={_0x314804:0x511},_0x152601={_0x521145:0x43},_0x54ad42={_0x5ed3f7:0x1d0},_0x259b59=_0x1b7203[_0x193a36(-_0x348324._0x83596b,-0x179,-0xc2,-_0x348324._0x2a8aae)]??connectMcpServer,_0x2cb3b3=[],_0xb28b0e={},_0x743ef1=[];function _0x4cc712(_0x50aa0e,_0x4e9aab,_0x101b5f,_0x2f417d){return _0x29b8eb(_0x50aa0e-0x4,_0x4e9aab- -0x2f7,_0x101b5f-_0x54ad42._0x5ed3f7,_0x50aa0e);}function _0x193a36(_0x23476f,_0x46e3ba,_0x153491,_0x43acef){return _0x29b8eb(_0x23476f-0x25,_0x153491- -0x50e,_0x153491-_0x152601._0x521145,_0x46e3ba);}for(const [_0x513d09,_0x1e19dc]of Object[_0x4cc712(0x1d6,0x228,0x11a,0x1ed)](_0x1b7203[_0x193a36(0x0,_0x348324._0x17b9f3,0x9c,-0x79)]??{})){if(_0x1e19dc['enabled']===![]){_0xb28b0e[_0x513d09]={'status':_0x4cc712(_0x348324._0x4ba11e,_0x348324._0x2d9ae7,_0x348324._0x76c68f,0x267)};continue;}try{const _0x668e5c=await _0x259b59(_0x513d09,_0x1e19dc,_0x1b7203['connection']);_0x2cb3b3['push'](_0x668e5c);const _0x362d7c=await _0x668e5c[_0x4cc712(0x42b,0x2db,_0x348324._0x26cc81,_0x348324._0x32ee49)]();let _0x52040b=0x0;for(const _0x2f41cb of _0x362d7c[_0x193a36(-0x76,_0x348324._0x247cd4,0xb4,0x16c)]){const _0x1cead8=_0x1b7203[_0x4cc712(0x134,0x19e,0x1b4,0xd7)]?.[_0x513d09]?.[_0x2f41cb[_0x4cc712(0xf0,_0x348324._0x402da0,_0x348324._0x17cb87,_0x348324._0x20946e)]];if(_0x1cead8===![])continue;_0x52040b+=0x1,_0x743ef1[_0x193a36(0x2d,0x31,-0x45,-0x38)](createMcpTool({'serverName':resolvePrefix(_0x513d09,_0x1e19dc),'tool':_0x2f41cb,'client':_0x668e5c}));}_0xb28b0e[_0x513d09]={'status':_0x4cc712(_0x348324._0x260291,_0x348324._0x1a7407,_0x348324._0x569b31,0x4bd),'toolCount':_0x52040b};}catch(_0x1276b8){_0xb28b0e[_0x513d09]=isUnauthorizedError(_0x1276b8)?{'status':'authRequired','message':getErrorMessage(_0x1276b8)}:{'status':_0x193a36(_0x348324._0xa644f,_0x348324._0x28bcaa,_0x348324._0x31f8f7,_0x348324._0x33128d),'message':getErrorMessage(_0x1276b8)};}}return{'tools':_0x743ef1,'servers':_0xb28b0e,async 'close'(){const _0x6560a3={_0x4802ff:0x20e,_0x542d49:0xcf,_0x5865aa:0x7e};function _0x5075f8(_0x2f4ed5,_0xefd690,_0x3a75f3,_0x2cd2ba){return _0x4cc712(_0x3a75f3,_0x2f4ed5-0x3d7,_0x3a75f3-0x133,_0x2cd2ba-0xd8);}function _0x4a2bf7(_0x5f3134,_0x4add06,_0x467a18,_0x5b7460){return _0x4cc712(_0x5f3134,_0x4add06-_0x6560a3._0x4802ff,_0x467a18-_0x6560a3._0x542d49,_0x5b7460-_0x6560a3._0x5865aa);}await Promise[_0x4a2bf7(0x58d,0x443,0x550,0x4ec)](_0x2cb3b3[_0x4a2bf7(0x472,0x562,_0x4a9241._0x314804,0x671)](_0x508493=>_0x508493[_0x5075f8(0x4f4,0x497,0x433,0x5e5)]()));}};}function getCommand(_0x471ad6){const _0x138583={_0x38cdc5:0x673,_0x198c9e:0x5d3,_0xcd249f:0x5e3,_0x6b804d:0x6b3,_0x32bc01:0x610,_0x2558f8:0x528,_0x330918:0x6de,_0x43800f:0x5fa,_0x4c8bb0:0x5a1,_0x30d11b:0x5f7},_0x40cca5={_0x4f97b0:0x189,_0x46f2a8:0x231,_0x318e9c:0x43},_0x3f6867={_0x2f9252:0xfb};function _0x20020f(_0xbdf8c9,_0x3f416e,_0x37fcd4,_0x115ac3){return _0x5a3b3d(_0x3f416e,_0x3f416e-_0x3f6867._0x2f9252,_0x37fcd4-0x2c3,_0x115ac3-0x135);}function _0x2db5de(_0x209be2,_0x2cf1e0,_0x1971e3,_0x311d81){return _0x5a3b3d(_0x1971e3,_0x2cf1e0-_0x40cca5._0x4f97b0,_0x2cf1e0-_0x40cca5._0x46f2a8,_0x311d81-_0x40cca5._0x318e9c);}if(_0x471ad6&&typeof _0x471ad6===_0x20020f(0x52d,_0x138583._0x38cdc5,_0x138583._0x198c9e,_0x138583._0xcd249f)&&!Array[_0x20020f(0x602,0x497,0x5d9,0x681)](_0x471ad6)&&typeof _0x471ad6[_0x2db5de(_0x138583._0x6b804d,_0x138583._0x32bc01,_0x138583._0x2558f8,_0x138583._0x330918)]===_0x2db5de(_0x138583._0x43800f,_0x138583._0x4c8bb0,0x639,_0x138583._0x30d11b))return _0x471ad6['command'];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x29b8eb(0x546,0x63b,0x597,0x64d),'docs/plans/2026-04-16-mock-agent-loop-implementation.md','docs/plans/2026-04-16-public-tools-api-implementation.md','package.json',_0x5a3b3d(0x289,0x169,0x215,0x2f0),_0x29b8eb(0x597,0x49a,0x576,0x41c),_0x5a3b3d(0x11c,0xb0,0x181,0x22c),_0x29b8eb(0x727,0x60c,0x55f,0x65b),_0x5a3b3d(0x1f5,0x313,0x298,0x22a),'src/tools/mock-tool-runtime.ts',_0x29b8eb(0x5c2,0x5f5,0x52b,0x55c),_0x5a3b3d(0x33e,0x1e4,0x2e0,0x229),'src/shared/types.ts','src/agent/agent.test.ts',_0x5a3b3d(0x2d6,0x15f,0x1b9,0x71),_0x5a3b3d(0xf5,0x25a,0x1db,0x23d),'src/agent/turn-engine.test.ts'][_0x5a3b3d(0x192,0xc2,0x1dd,0x2b2)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':_0x29b8eb(0x321,0x42e,0x49d,0x33f),'input_schema':{'type':_0x29b8eb(0x6c9,0x587,0x69e,0x4f7),'properties':{'command':{'type':_0x29b8eb(0x59c,0x5e7,0x4b8,0x721)}},'required':[_0x5a3b3d(0x29a,0x4be,0x3df,0x4eb)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x5b02c9){return{'output':_0x5b02c9,'structured':{'value':_0x5b02c9}};}function createUnknownToolResult(_0x991509){const _0x49ef2c={_0x1aaa27:0x48,_0x2b3497:0x91},_0x531682={_0x24a2cb:0xa};function _0x4aa032(_0x4366ce,_0x1b3df4,_0x2c51f8,_0x339b98){return _0x29b8eb(_0x4366ce-0x85,_0x339b98- -0x660,_0x2c51f8-_0x531682._0x24a2cb,_0x4366ce);}return{'callId':_0x991509['id'],'toolName':_0x991509['name'],'status':'error','output':_0x4aa032(_0x49ef2c._0x1aaa27,0x144,_0x49ef2c._0x2b3497,-0xc)+_0x991509['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x46bd03,_0x45f243){const _0x782dcd={_0xff9b83:0x28,_0x318d2e:0xb1,_0x13192c:0x4},_0x1dc48e={_0x3ea88f:0x352};function _0x427775(_0x26c620,_0x327937,_0x1a3aca,_0x26b13b){return _0x5a3b3d(_0x1a3aca,_0x327937-0x158,_0x327937- -_0x1dc48e._0x3ea88f,_0x26b13b-0x111);}return{'callId':_0x46bd03['id'],'toolName':_0x46bd03['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x46bd03[_0x427775(_0x782dcd._0xff9b83,_0x782dcd._0x318d2e,0x4,-_0x782dcd._0x13192c)]),'exitCode':0x0},'chunks':[_0x45f243],'meta':createMeta()};}function createMockToolRuntime(){const _0x2ca5e8={_0x238efd:0x1d7},_0x2c2652={_0xe25f60:0x181,_0xaacb19:0x119,_0x215520:0xce,_0x37a1dc:0x93,_0x500e4d:0x1c4},_0x43c48e=async(_0x4119fd,_0x149893)=>{function _0x1e3e77(_0x2c9a16,_0x3d0742,_0xafde19,_0x54f37a){return _0x25c6(_0x3d0742-0x42,_0xafde19);}function _0x325479(_0x1c56c8,_0x5da526,_0x4dba15,_0x45ff72){return _0x25c6(_0x4dba15- -0x7c,_0x45ff72);}if(_0x4119fd[_0x325479(_0x2c2652._0xe25f60,_0x2c2652._0xaacb19,_0x2c2652._0x215520,_0x2c2652._0x37a1dc)]!==_0x325479(0x1e4,_0x2c2652._0x500e4d,0x29e,0x36a))return createUnknownToolResult(_0x4119fd);const _0xd15591=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x4119fd,_0xd15591);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x50ca42,_0x3047ba){const _0xbec83={_0x4a87fb:0x223};function _0x43e800(_0x599c22,_0x31da94,_0x288267,_0x4bd1e4){return _0x25c6(_0x31da94- -_0xbec83._0x4a87fb,_0x599c22);}function _0x35a964(_0x5a3125,_0x35214f,_0x2895d5,_0x3c53a1){return _0x25c6(_0x3c53a1- -0x285,_0x2895d5);}return await Promise[_0x43e800(-0x10,0x60,0x108,0x37)](_0x50ca42[_0x35a964(0x40,_0x2ca5e8._0x238efd,0x196,0x11d)](async _0x13e0c4=>{return await _0x43c48e(_0x13e0c4,_0x3047ba);}));},async 'execute'(_0x218e05,_0x4d95a5){return await _0x43c48e(_0x218e05,_0x4d95a5);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x5be11f,_0x6bb7fd){const _0x51e201={_0x3eb67f:0x863,_0x58aa3e:0x6b4},_0x5d0aaa={_0x55fabb:0x315};function _0x4c680b(_0xb07f71,_0x5ec553,_0x415f37,_0x285023){return _0x5a3b3d(_0x285023,_0x5ec553-0xd7,_0x415f37-_0x5d0aaa._0x55fabb,_0x285023-0x69);}return typeof _0x5be11f===_0x4c680b(_0x51e201._0x3eb67f,_0x51e201._0x58aa3e,0x716,0x625)?await _0x5be11f(_0x6bb7fd):_0x5be11f;}function getDelegatedAgentDefinition(_0x1fad1d,_0x597443){const _0x321f03={_0x42242e:0x500,_0x2e60b0:0x5eb,_0x1b3103:0x577,_0x1b2b6c:0x6ca},_0x3607f5={_0x44df5b:0x1b5,_0x2665f9:0x102,_0x433f45:0x1ca};function _0x55525b(_0x537d3c,_0x3a2d2e,_0x291ae9,_0x4a6a70){return _0x29b8eb(_0x537d3c-_0x3607f5._0x44df5b,_0x3a2d2e-_0x3607f5._0x2665f9,_0x291ae9-_0x3607f5._0x433f45,_0x537d3c);}return _0x1fad1d[_0x55525b(_0x321f03._0x42242e,_0x321f03._0x2e60b0,_0x321f03._0x1b3103,_0x321f03._0x1b2b6c)]?.[_0x597443];}function createRunSummary(_0xb2d212){const _0x220209={_0x39cc4e:0x265,_0x227ab3:0x1cf,_0x588992:0x429,_0x4395ac:0x525,_0xc07ad4:0x85,_0x243566:0x79,_0x3ed7f8:0x16c,_0x1e69ad:0x135,_0x3c50ec:0x4ea,_0x2be5ca:0x41c,_0x5e6224:0x51c,_0x3fd8ac:0x3d1,_0x232d89:0xe9,_0x1de145:0x43,_0x417b5d:0x101,_0x352a7b:0x83,_0x204f30:0x581,_0x5304f7:0x51d,_0x39cfb3:0x56d,_0x141890:0x51d,_0x1809f0:0x412,_0x306b09:0x4ae,_0x169a88:0xe6,_0x1ccc21:0x25},_0x31dda0={_0x2c8ff4:0x129,_0x56d9ea:0x28a},_0xc3d30c={_0x4dd32e:0x1bf};function _0x13b8b0(_0x163875,_0x5749bf,_0x5221ac,_0xd4eec1){return _0x5a3b3d(_0x5221ac,_0x5749bf-_0xc3d30c._0x4dd32e,_0x5749bf-0x14f,_0xd4eec1-0x1c9);}function _0x508f50(_0x3dd419,_0x2ac916,_0x30cfb8,_0x438532){return _0x5a3b3d(_0x438532,_0x2ac916-_0x31dda0._0x2c8ff4,_0x2ac916- -_0x31dda0._0x56d9ea,_0x438532-0x189);}return{'runId':_0xb2d212[_0x13b8b0(_0x220209._0x39cc4e,0x315,0x40c,_0x220209._0x227ab3)],'agentId':_0xb2d212[_0x508f50(0x10b,0x135,0x104,0x1d)],'sessionId':_0xb2d212[_0x13b8b0(_0x220209._0x588992,_0x220209._0x4395ac,0x41a,0x4ac)],'status':_0xb2d212[_0x508f50(-0xb6,-0x63,-0x25,_0x220209._0xc07ad4)],'parentSessionId':_0xb2d212[_0x508f50(-0x26,-_0x220209._0x243566,-_0x220209._0x3ed7f8,-_0x220209._0x1e69ad)],..._0xb2d212[_0x13b8b0(_0x220209._0x3c50ec,_0x220209._0x2be5ca,_0x220209._0x5e6224,_0x220209._0x3fd8ac)]!==void 0x0?{'originToolCallId':_0xb2d212[_0x508f50(_0x220209._0x232d89,_0x220209._0x1de145,_0x220209._0x417b5d,_0x220209._0x352a7b)]}:{},..._0xb2d212[_0x13b8b0(_0x220209._0x204f30,_0x220209._0x5304f7,0x617,_0x220209._0x39cfb3)]!==void 0x0?{'errorMessage':_0xb2d212[_0x13b8b0(0x540,_0x220209._0x141890,_0x220209._0x1809f0,_0x220209._0x306b09)]}:{},..._0xb2d212[_0x508f50(-0xae,-0x101,-0x8c,-0x183)]?.[_0x508f50(_0x220209._0x169a88,_0x220209._0x1ccc21,-0x12d,-0x59)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0xb2d212[_0x508f50(-0x1c7,-0x101,-0x15a,-0x189)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x58e062,_0x5428cc){const _0x4bb531={_0x423421:0x128,_0x3ea391:0x17d,_0x523c85:0x1f6,_0x2d0059:0x156},_0x26987f={_0x397bfb:0x182},_0x499a32={_0x163710:0x1aa};function _0x175005(_0x168c7a,_0x4cf228,_0x3badfb,_0x5fd2af){return _0x5a3b3d(_0x4cf228,_0x4cf228-_0x499a32._0x163710,_0x3badfb- -0x55,_0x5fd2af-0x42);}const _0x2c1dd5=createRunSummary(_0x58e062);function _0x44fd1f(_0x24dba8,_0x2bb241,_0x495ae5,_0x4cc9c0){return _0x29b8eb(_0x24dba8-0x3c,_0x2bb241-0xec,_0x495ae5-_0x26987f._0x397bfb,_0x24dba8);}const _0xb7d8c5=_0x2c1dd5['finalMessageText'];return createToolOutput(typeof _0xb7d8c5===_0x44fd1f(0x761,0x6d3,0x5e0,0x7c3)&&_0xb7d8c5[_0x175005(_0x4bb531._0x423421,_0x4bb531._0x3ea391,_0x4bb531._0x523c85,_0x4bb531._0x2d0059)]>0x0?_0xb7d8c5:_0x5428cc,_0x2c1dd5);}function getRunTerminalErrorMessage(_0x53ef5a){const _0x30d660={_0x4848af:0x62a,_0x85d58f:0x50a,_0x12fba0:0x66b,_0xf4ca2f:0x55e,_0x412136:0x39a,_0x24efb4:0x4cf,_0x561cd4:0x5df,_0x22aec4:0x510,_0xfb121b:0x5ce,_0x5cdca6:0x427,_0x5d456a:0x2e9},_0xdb75d6={_0x3d2cca:0x1dc},_0x1e21cc={_0x1346ff:0x227,_0x301c36:0x190};function _0x43715b(_0x432e12,_0x6bd14d,_0x487b53,_0x43ce45){return _0x5a3b3d(_0x43ce45,_0x6bd14d-0x66,_0x432e12-_0x1e21cc._0x1346ff,_0x43ce45-_0x1e21cc._0x301c36);}function _0x52c7d5(_0x15f58e,_0x10a241,_0x4cce55,_0x346bc2){return _0x5a3b3d(_0x4cce55,_0x10a241-0x12d,_0x10a241-_0xdb75d6._0x3d2cca,_0x346bc2-0x7d);}const _0x16f3d9=_0x53ef5a?.[_0x43715b(0x515,_0x30d660._0x4848af,0x507,0x65b)][_0x52c7d5(_0x30d660._0x85d58f,0x5b6,_0x30d660._0x12fba0,_0x30d660._0xf4ca2f)]['at'](-0x1);if(_0x16f3d9?.[_0x43715b(0x44e,_0x30d660._0x412136,0x36e,_0x30d660._0x24efb4)]===_0x43715b(0x5b9,_0x30d660._0x561cd4,0x4a9,0x540)&&_0x16f3d9[_0x43715b(_0x30d660._0x22aec4,_0x30d660._0xfb121b,0x40c,_0x30d660._0x4848af)]['trim']()[_0x52c7d5(0x3ea,_0x30d660._0x5cdca6,_0x30d660._0x5d456a,0x4df)]>0x0)return _0x16f3d9['output'];return void 0x0;}function formatAbortedRunMessage(_0x3baafe,_0x3ebe23){const _0x975e90={_0x47439c:0x2a8,_0x18b9ab:0x387,_0x30b0f7:0x45b,_0x30a24f:0x16d,_0xddb876:0x5b,_0x7509cf:0x236,_0x43e000:0x37b},_0x5e7700={_0x282dbd:0x1c5,_0x260cd4:0x1a2},_0x1ca287={_0x3be79c:0x249,_0x219fbe:0x3a};function _0x21114b(_0x59f4c7,_0x540a73,_0x554891,_0x3d0f99){return _0x29b8eb(_0x59f4c7-0x1d6,_0x540a73- -_0x1ca287._0x3be79c,_0x554891-_0x1ca287._0x219fbe,_0x59f4c7);}const _0x461cf6='Agent\x20run\x20'+_0x3baafe+_0x21114b(_0x975e90._0x47439c,_0x975e90._0x18b9ab,0x43c,_0x975e90._0x30b0f7);if(!_0x3ebe23||_0x3ebe23['trim']()[_0x24ecee(_0x975e90._0x30a24f,0xd0,_0x975e90._0xddb876,0x19a)]===0x0||_0x3ebe23===_0x461cf6)return _0x461cf6;function _0x24ecee(_0x650f9f,_0x5e792,_0x4a89fe,_0x5a0385){return _0x5a3b3d(_0x650f9f,_0x5e792-_0x5e7700._0x282dbd,_0x4a89fe- -0x1f0,_0x5a0385-_0x5e7700._0x260cd4);}return _0x461cf6+_0x21114b(0xf7,_0x975e90._0x7509cf,0x25c,_0x975e90._0x43e000)+_0x3ebe23;}function createAssignTaskTool(_0x4088f0){const _0x23e0f7={_0x339a79:0x5d3,_0x26dec5:0x6dd,_0x47e56b:0x631,_0x5b36fd:0x5e1,_0x23b2e3:0x691,_0x8093e3:0x7b8,_0x500354:0x213,_0x38b0e2:0x249,_0x8b684b:0x3a5,_0xc63907:0x616,_0x25ce2b:0x710,_0x3634b3:0x815,_0x3af382:0x59b,_0x392d77:0x6e0,_0x2fb902:0x647,_0x244c15:0x7c0,_0x1310ed:0x683},_0x1d2130={_0x2ac47a:0x3f1,_0x111d27:0x738,_0xa6f031:0x49e,_0x5caffa:0x3ad,_0x379b7e:0x33f,_0x3f0fa3:0x65c,_0x519a46:0x527,_0x45a485:0x29b,_0x24318f:0x4b6,_0x5d78ce:0x6f6,_0x228a5e:0x42a,_0x4c4401:0x3ab,_0x370e3b:0x3c2,_0x10583b:0x731,_0x1bcfc9:0x58a,_0x58e943:0x5ea,_0x442500:0x3ff,_0x55c929:0x49e,_0x10cd16:0x65e,_0x160d95:0x640,_0x1f1946:0x546,_0x32d1ad:0x340,_0x49bc93:0x5ab,_0x15a21c:0x38c,_0x3530dd:0x49a,_0x4f1625:0x31c,_0x543604:0x2f5,_0x25181c:0x343,_0x365ee2:0x213,_0x57fb29:0x419,_0x2439be:0x51f,_0x417c58:0x3f2,_0x346e4e:0x4c9,_0x2a3a8c:0x5b5,_0x31a1f5:0x717,_0xc35c2a:0x699,_0x7df48:0xf7,_0x27031d:0x191,_0x432852:0x1a2,_0x241305:0x378,_0x2fa54d:0x3a5,_0x32264d:0x5b8,_0x2b3e69:0x4e6,_0x45e3a3:0x291,_0x1cf44c:0x209,_0x346f43:0x4c8,_0x5669ee:0x4bd,_0x5c6631:0x25a,_0x2096e6:0x2e3,_0x1ed253:0x209,_0x5a5e94:0x6c,_0x4b38c2:0x144,_0x2fc67a:0x468,_0x3c3e11:0x449,_0xfb1060:0x499,_0x44f0eb:0x1bb,_0x35e66a:0x2a1,_0x5b0bbc:0x1e3,_0x42c4b0:0x56f,_0x58f188:0x43e,_0x5134bf:0x468,_0x519533:0x367,_0x55d20e:0x49b,_0x3de794:0x418},_0x485eca={_0x542d86:0x143,_0x99136a:0x16},_0x456671={_0x3825cb:0xf5,_0x694497:0x2cc},_0x40afbe={_0xc2d68d:0x14f,_0x59aaf9:0xff},_0x77063d={_0x334ea6:0x0};function _0x11a099(_0x2968dd,_0x418278,_0x1e51e3,_0x176e4a){return _0x5a3b3d(_0x1e51e3,_0x418278-0x17a,_0x418278- -0x2a,_0x176e4a-_0x77063d._0x334ea6);}function _0x3407b8(_0x120331,_0x51f49a,_0x37221e,_0x651ec6){return _0x29b8eb(_0x120331-_0x40afbe._0xc2d68d,_0x37221e-0xaa,_0x37221e-_0x40afbe._0x59aaf9,_0x651ec6);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':_0x3407b8(_0x23e0f7._0x339a79,_0x23e0f7._0x26dec5,_0x23e0f7._0x47e56b,0x715),'properties':{'agentId':{'type':_0x3407b8(_0x23e0f7._0x5b36fd,0x703,_0x23e0f7._0x23b2e3,_0x23e0f7._0x8093e3)},'description':{'type':'string'},'nickname':{'type':_0x11a099(_0x23e0f7._0x500354,0x346,_0x23e0f7._0x38b0e2,_0x23e0f7._0x8b684b)},'task':{'type':_0x3407b8(_0x23e0f7._0xc63907,0x687,_0x23e0f7._0x23b2e3,_0x23e0f7._0x25ce2b)}},'required':[_0x3407b8(_0x23e0f7._0x3634b3,_0x23e0f7._0x3af382,_0x23e0f7._0x392d77,_0x23e0f7._0x2fb902),_0x3407b8(_0x23e0f7._0x244c15,0x616,_0x23e0f7._0x1310ed,0x616),'task']},async *'execute'(_0x2ade94,_0x3643d7){const _0x30999e={_0x3fc31a:0x1ad,_0x4f4e64:0x1db,_0x46746e:0x316,_0x2bbed2:0xf3,_0x40ff73:0x14d,_0x1b5a40:0x20};function _0x237964(_0x1dbe87,_0xdc32e1,_0x2da716,_0x1dd289){return _0x11a099(_0x1dbe87-_0x456671._0x3825cb,_0x1dd289-_0x456671._0x694497,_0xdc32e1,_0x1dd289-0x148);}const _0x44cb25=createDelegatedRunId(),_0xac84e={'agentId':_0x2ade94[_0x30e5e1(_0x1d2130._0x2ac47a,0x280,0x352,0x3ab)],'parentSessionId':_0x3643d7['sessionId'],'runId':_0x44cb25,..._0x3643d7[_0x237964(0x64f,0x61b,_0x1d2130._0x111d27,0x663)]!==void 0x0?{'toolCallId':_0x3643d7[_0x30e5e1(0x4a8,_0x1d2130._0xa6f031,0x2e6,_0x1d2130._0x5caffa)]}:{}},_0x14a817=getDelegatedAgentDefinition(_0x4088f0,_0x2ade94[_0x30e5e1(_0x1d2130._0x379b7e,0x490,0x417,0x3ab)]);if(!_0x14a817)throw new ToolExecutionError(_0x237964(_0x1d2130._0x3f0fa3,0x513,0x4d8,_0x1d2130._0x519a46)+_0x2ade94[_0x30e5e1(0x3ac,_0x1d2130._0x45a485,_0x1d2130._0x24318f,0x3ab)],{'agentId':_0x2ade94[_0x237964(_0x1d2130._0x5d78ce,0x592,0x60d,0x661)]});const _0x2056b9=new Agent(await resolveDelegatedAgentOptions(_0x14a817,_0xac84e));function _0x30e5e1(_0x68f18e,_0x4a0fa5,_0x4d7dc1,_0x23641a){return _0x11a099(_0x68f18e-_0x485eca._0x542d86,_0x23641a-_0x485eca._0x99136a,_0x68f18e,_0x23641a-0x1ac);}let _0x5666f2={'runId':_0x44cb25,'agentId':_0x2ade94[_0x30e5e1(0x4f1,0x4cd,_0x1d2130._0x228a5e,_0x1d2130._0x4c4401)],'sessionId':_0x2056b9[_0x30e5e1(0x318,0x499,0x482,_0x1d2130._0x370e3b)],'status':_0x237964(_0x1d2130._0x10583b,_0x1d2130._0x1bcfc9,0x4bb,_0x1d2130._0x58e943),'parentSessionId':_0x3643d7['sessionId'],..._0x3643d7[_0x30e5e1(0x3e2,_0x1d2130._0x442500,_0x1d2130._0x55c929,_0x1d2130._0x5caffa)]!==void 0x0?{'originToolCallId':_0x3643d7['toolCallId']}:{}};const _0x23eff9=new AbortController(),_0xae00da=addAbortListener(_0x3643d7[_0x237964(_0x1d2130._0x10cd16,_0x1d2130._0x160d95,0x5b9,_0x1d2130._0x1f1946)],()=>{const _0x19eb3f={_0x408402:0x116,_0x4a9bbc:0x416},_0x490013={_0x2a233c:0x31b};function _0x40bd0c(_0x3eda4f,_0x4f99d4,_0x371983,_0x51c8a4){return _0x30e5e1(_0x3eda4f,_0x4f99d4-0xdd,_0x371983-0xb7,_0x4f99d4-_0x490013._0x2a233c);}function _0x4b66d0(_0x41bf51,_0x34deb5,_0x171a34,_0x4a3c16){return _0x237964(_0x41bf51-_0x19eb3f._0x408402,_0x171a34,_0x171a34-0xa2,_0x34deb5- -_0x19eb3f._0x4a9bbc);}_0x23eff9[_0x4b66d0(_0x30999e._0x3fc31a,_0x30999e._0x4f4e64,_0x30999e._0x46746e,0x1d8)](_0x3643d7[_0x4b66d0(0xb0,0x130,_0x30999e._0x2bbed2,0x1f8)]?.[_0x4b66d0(_0x30999e._0x40ff73,0x1,-_0x30999e._0x1b5a40,-0x1a)]);});yield createToolOutput('Started\x20agent\x20run\x20'+_0x5666f2[_0x237964(0x51c,_0x1d2130._0x32d1ad,0x360,0x468)]+'.',{'runId':_0x5666f2[_0x237964(0x496,0x5b2,_0x1d2130._0x49bc93,0x468)],'agentId':_0x5666f2[_0x237964(0x730,0x779,0x5cd,0x661)],'sessionId':_0x5666f2[_0x30e5e1(_0x1d2130._0x15a21c,_0x1d2130._0x3530dd,0x3da,0x3c2)],'status':_0x5666f2[_0x237964(0x490,0x4e9,0x3ad,0x4c9)]});try{const _0x404c08=await _0x2056b9[_0x30e5e1(0x45f,0x345,_0x1d2130._0x4f1625,0x3a0)](_0x2ade94['task'],{'signal':_0x23eff9['signal']});_0x5666f2={..._0x5666f2,'status':_0x404c08[_0x30e5e1(0x1dc,_0x1d2130._0x543604,_0x1d2130._0x25181c,_0x1d2130._0x365ee2)],'result':_0x404c08};if(_0x404c08[_0x237964(_0x1d2130._0x57fb29,_0x1d2130._0x2439be,_0x1d2130._0x417c58,_0x1d2130._0x346e4e)]!==_0x237964(_0x1d2130._0x2a3a8c,_0x1d2130._0x31a1f5,0x723,_0x1d2130._0xc35c2a)){const _0x207b46=getRunTerminalErrorMessage(_0x404c08),_0x32e2c4=formatAbortedRunMessage(_0x5666f2['runId'],_0x207b46);throw new ToolExecutionError(_0x32e2c4,{...createRunSummary(_0x5666f2),'aborted':!![],'errorMessage':_0x32e2c4});}return createRunSummaryOutput(_0x5666f2,_0x30e5e1(0x234,_0x1d2130._0x7df48,_0x1d2130._0x27031d,_0x1d2130._0x432852)+_0x5666f2[_0x237964(_0x1d2130._0x241305,_0x1d2130._0x2fa54d,0x44e,0x468)]+_0x30e5e1(0x202,0x93,0xdc,0x1ab));}catch(_0x5b7048){if(_0x5b7048 instanceof ToolExecutionError)throw _0x5b7048;if(isAbortError(_0x5b7048)||_0x23eff9[_0x237964(0x475,_0x1d2130._0x32264d,_0x1d2130._0x2b3e69,0x546)][_0x30e5e1(0x2d6,0x1bc,_0x1d2130._0x45e3a3,_0x1d2130._0x1cf44c)]||_0x3643d7[_0x237964(_0x1d2130._0x346f43,_0x1d2130._0x5669ee,0x5d2,0x546)][_0x30e5e1(0x1cb,_0x1d2130._0x5c6631,_0x1d2130._0x2096e6,_0x1d2130._0x1ed253)]){const _0x472e42=getRunTerminalErrorMessage(_0x5666f2[_0x30e5e1(_0x1d2130._0x5a5e94,_0x1d2130._0x4b38c2,0x50,0x175)])??(_0x5b7048 instanceof Error?_0x5b7048[_0x237964(_0x1d2130._0x2fc67a,0x4b8,_0x1d2130._0x3c3e11,_0x1d2130._0xfb1060)]:String(_0x5b7048)),_0x147c6c=formatAbortedRunMessage(_0x5666f2['runId'],_0x472e42);_0x5666f2={..._0x5666f2,'status':'aborted','errorMessage':_0x147c6c};throw new ToolExecutionError(_0x147c6c,{...createRunSummary(_0x5666f2),'aborted':!![],'errorMessage':_0x147c6c});}const _0x4ae46f=getRunTerminalErrorMessage(_0x5666f2[_0x30e5e1(0x1d0,0x190,_0x1d2130._0x44f0eb,0x175)])??(_0x5b7048 instanceof Error?_0x5b7048[_0x30e5e1(_0x1d2130._0x35e66a,0x222,0x134,_0x1d2130._0x5b0bbc)]:String(_0x5b7048))??'Agent\x20run\x20'+_0x5666f2[_0x237964(0x3e8,_0x1d2130._0x42c4b0,_0x1d2130._0x58f188,_0x1d2130._0x5134bf)]+_0x30e5e1(0x1b2,0xd7,0x264,0x1e4);_0x5666f2={..._0x5666f2,'status':_0x237964(_0x1d2130._0x519533,0x360,_0x1d2130._0x55d20e,_0x1d2130._0x3de794),'errorMessage':_0x4ae46f};throw new ToolExecutionError(_0x4ae46f,{...createRunSummary(_0x5666f2),'errorMessage':_0x4ae46f});}finally{_0xae00da();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x4f95a6){return[createAssignTaskTool(_0x4f95a6)];}import*as _0x5195c7 from'path';function buildDescription2(_0x677e93){const _0x3c408e={_0x4331b4:0x2d7,_0x4ba93c:0x52a,_0x556c92:0x2b9,_0x23c310:0x42f,_0xfda6f7:0x531,_0x4e602a:0x599,_0x51d598:0x5d3,_0x363fea:0x3ce,_0x1782d1:0x389,_0x548517:0x191,_0xe77b1f:0xb6},_0x68abcf={_0x369343:0xe0,_0x541e2c:0x239,_0x27aa5b:0xee},_0x489b0d={_0x3c2965:0x67,_0x52a961:0x6};function _0xfe0d70(_0x454457,_0x11d849,_0x2f8c22,_0x4322b1){return _0x5a3b3d(_0x11d849,_0x11d849-_0x489b0d._0x3c2965,_0x454457- -_0x489b0d._0x52a961,_0x4322b1-0x93);}function _0xb2aef6(_0x3cf853,_0x55907b,_0x1b6599,_0x5976f7){return _0x5a3b3d(_0x3cf853,_0x55907b-_0x68abcf._0x369343,_0x55907b-_0x68abcf._0x541e2c,_0x5976f7-_0x68abcf._0x27aa5b);}if(_0x677e93[_0xfe0d70(0x245,_0x3c408e._0x4331b4,0x335,0x15c)]===0x0)return _0xb2aef6(0x53b,_0x3c408e._0x4ba93c,0x47e,0x655);const _0x39634c=['Load\x20a\x20skill\x20to\x20get\x20detailed\x20instructions\x20for\x20a\x20specific\x20task.',_0xfe0d70(0x308,_0x3c408e._0x556c92,_0x3c408e._0x23c310,0x269),_0xb2aef6(0x6a1,0x582,0x50b,_0x3c408e._0xfda6f7),_0xb2aef6(_0x3c408e._0x4e602a,_0x3c408e._0x51d598,0x6cb,0x589),..._0x677e93[_0xfe0d70(_0x3c408e._0x363fea,0x4c7,_0x3c408e._0x1782d1,0x502)](_0x14b09c=>'-\x20'+_0x14b09c[_0xfe0d70(0x176,0xcd,0x285,0x61)]+':\x20'+_0x14b09c[_0xfe0d70(0x35c,0x23b,0x3dd,0x3fd)])];return _0x39634c[_0xfe0d70(0x1d7,_0x3c408e._0x548517,0x1d7,_0x3c408e._0xe77b1f)]('\x0a');}function createLoadSkillTool(_0x33e320){const _0x451e30={_0xd74215:0x21b,_0x4be057:0x32b,_0x2c2173:0x23d,_0x38ab75:0x213,_0x3e3e1f:0xea,_0x3bb298:0x20,_0x39d5ed:0xfb},_0x351c67={_0x19b2fd:0x291,_0x1698f5:0x1e5,_0x2679c8:0x268,_0x33ec77:0x20b,_0x5f2507:0xc0,_0x5adfe2:0x577,_0x5c6edc:0x4ad,_0x5a7856:0x4b5,_0x12e7a9:0x2ef,_0x4565d5:0x220,_0x1ba9ae:0xd7,_0x29e5a3:0x3ef,_0x3eab79:0x3e8,_0x32f88b:0x3f0,_0x2921c3:0x2b3,_0x417173:0x37f,_0x15ba5e:0x37d,_0x31a86c:0x49b,_0x5e12f4:0x538,_0x5c970e:0x401},_0x3e59df={_0x12a065:0xa9,_0x226cc8:0x247},_0x5f3c79={_0x16966a:0x6,_0x41735f:0x2d6,_0xed7657:0x123},_0x1c9da7={_0x3b3b80:0x182,_0x10741b:0x92},_0x1167bc=new Map(_0x33e320['skills']['map'](_0x7fed2=>[_0x7fed2[_0x23e41b(0xea,0x14f,0xe5,0x157)],_0x7fed2]));function _0x23e41b(_0x45a9a8,_0x46757b,_0x1c4ecb,_0x51ceef){return _0x5a3b3d(_0x1c4ecb,_0x46757b-_0x1c9da7._0x3b3b80,_0x45a9a8- -_0x1c9da7._0x10741b,_0x51ceef-0x138);}function _0x31aed9(_0x4cc418,_0x292c1a,_0x4f7453,_0x3a51b5){return _0x5a3b3d(_0x4cc418,_0x292c1a-_0x5f3c79._0x16966a,_0x3a51b5-_0x5f3c79._0x41735f,_0x3a51b5-_0x5f3c79._0xed7657);}const _0x3b1837=buildDescription2(_0x33e320[_0x23e41b(_0x451e30._0xd74215,_0x451e30._0x4be057,0x25b,0x146)]);return defineTool({'name':_0x23e41b(_0x451e30._0x2c2173,0x1ff,0x35b,0x1b0),'description':_0x3b1837,'inputSchema':{'type':_0x23e41b(0x27e,0x1d9,0x25a,_0x451e30._0x38ab75),'properties':{'name':{'type':'string'}},'required':[_0x23e41b(_0x451e30._0x3e3e1f,-_0x451e30._0x3bb298,_0x451e30._0x39d5ed,0x13c)]},async *'execute'(_0x52d941){const _0x1cb667={_0x2fdf0d:0xd5},_0x1bc9c1=_0x1167bc['get'](_0x52d941['name']);if(!_0x1bc9c1){const _0x2626b6=Array[_0x4edc03(0x2f2,0x4fb,_0x351c67._0x19b2fd,0x3b3)](_0x1167bc['keys']())[_0x582afb(0x26c,0x1a4,_0x351c67._0x1698f5,_0x351c67._0x2679c8)](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x52d941[_0x582afb(_0x351c67._0x33ec77,_0x351c67._0x5f2507,0x33b,0x139)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x2626b6,{'name':_0x52d941[_0x4edc03(0x361,0x36d,0x3f1,0x37d)]});}const _0x11ffdf=await _0x33e320[_0x4edc03(0x37d,_0x351c67._0x5adfe2,0x378,0x46d)](_0x1bc9c1);function _0x582afb(_0x4cb8ef,_0x1d5a8c,_0x2192a0,_0x3fad28){return _0x31aed9(_0x3fad28,_0x1d5a8c-0xa1,_0x2192a0-_0x3e59df._0x12a065,_0x4cb8ef- -_0x3e59df._0x226cc8);}const _0x196c7b=_0x1bc9c1['source'][_0x4edc03(0x5d8,_0x351c67._0x5c6edc,0x5c7,0x4cc)]??_0x5195c7['dirname'](_0x1bc9c1['source'][_0x582afb(0x3f6,0x337,_0x351c67._0x5a7856,0x479)]),_0x760537=['##\x20Skill:\x20'+_0x11ffdf['name'],'',_0x11ffdf[_0x582afb(0x278,0x395,_0x351c67._0x12e7a9,0x343)],'',_0x582afb(_0x351c67._0x4565d5,0x307,_0x351c67._0x1ba9ae,0x319),'Loaded\x20from:\x20'+_0x1bc9c1[_0x582afb(0x2dc,0x26b,_0x351c67._0x29e5a3,0x2cf)][_0x582afb(0x3f6,_0x351c67._0x3eab79,0x3f0,0x4d6)],_0x4edc03(0x590,0x638,0x65d,0x525)+_0x196c7b][_0x4edc03(0x4f5,_0x351c67._0x32f88b,_0x351c67._0x2921c3,0x3de)]('\x0a');function _0x4edc03(_0xd24c4c,_0x12bfcd,_0x4c5eb2,_0x57e593){return _0x31aed9(_0x4c5eb2,_0x12bfcd-0x93,_0x4c5eb2-0x185,_0x57e593- -_0x1cb667._0x2fdf0d);}return yield createToolOutput(_0x760537,{'id':_0x11ffdf['id'],'name':_0x11ffdf[_0x4edc03(_0x351c67._0x417173,0x3d5,0x40c,_0x351c67._0x15ba5e)],'path':_0x1bc9c1['source'][_0x582afb(0x3f6,_0x351c67._0x31a86c,_0x351c67._0x5e12f4,_0x351c67._0x5c970e)],'baseDirectory':_0x196c7b}),void 0x0;}});}var TODO_STATUSES=new Set([_0x5a3b3d(0x29f,0x24f,0x1bb,0x7b),_0x5a3b3d(0x4cc,0x3a7,0x3e6,0x4d3),'completed']),TODO_PRIORITIES=new Set([_0x29b8eb(0x674,0x583,0x67e,0x458),'medium',_0x5a3b3d(0x4d3,0x3c0,0x3ee,0x2f9)]);function isTodoStatus(_0x2cb9bf){const _0x586bf={_0x366c48:0x36f,_0x49c118:0x3b2,_0x140867:0x1bb,_0x2b4828:0x167},_0x3a0496={_0x1db2c1:0x1c8},_0x400420={_0xf6a703:0x122,_0x4b931a:0x53};function _0x569e88(_0x1f9f0c,_0x6eef83,_0x296bff,_0x40c979){return _0x29b8eb(_0x1f9f0c-_0x400420._0xf6a703,_0x296bff- -0x105,_0x296bff-_0x400420._0x4b931a,_0x40c979);}function _0x123ac6(_0x674f29,_0x161b56,_0x3f267c,_0x14cb91){return _0x5a3b3d(_0x3f267c,_0x161b56-0xb,_0x14cb91- -0x28,_0x14cb91-_0x3a0496._0x1db2c1);}return typeof _0x2cb9bf===_0x123ac6(_0x586bf._0x366c48,_0x586bf._0x49c118,0x499,0x348)&&TODO_STATUSES[_0x123ac6(0x112,_0x586bf._0x140867,_0x586bf._0x2b4828,0x15e)](_0x2cb9bf);}function isTodoPriority(_0x41a65f){const _0x5ede92={_0x3bea78:0x4,_0x3a272b:0x8d},_0x3f9724={_0x4d511f:0x5,_0x30fc5b:0x2cf};function _0x15b76f(_0x413ebc,_0x273be1,_0x32a0a0,_0x59dc39){return _0x5a3b3d(_0x413ebc,_0x273be1-_0x3f9724._0x4d511f,_0x273be1-_0x3f9724._0x30fc5b,_0x59dc39-0x6a);}function _0x5939da(_0x137aac,_0x13e23e,_0x451f30,_0x526a03){return _0x29b8eb(_0x137aac-0x137,_0x526a03- -0x674,_0x451f30-0x89,_0x137aac);}return typeof _0x41a65f===_0x5939da(-0x21,0x4f,-_0x5ede92._0x3bea78,-_0x5ede92._0x3a272b)&&TODO_PRIORITIES[_0x15b76f(0x4f5,0x455,0x3b1,0x54e)](_0x41a65f);}var TodoStore=class{[_0x29b8eb(0x63c,0x63e,0x6b8,0x6c5)]=new Map();[_0x29b8eb(0x4ec,0x40d,0x52a,0x4c2)](_0x1aa4b7){const _0x3a6ecc={_0x30b065:0x59f,_0x40df50:0x6c6},_0x881088={_0x256559:0x29b,_0x283268:0x10f};function _0x205799(_0x3b3e67,_0x40258a,_0x2f8b6d,_0x22a61d){return _0x5a3b3d(_0x2f8b6d,_0x40258a-0x135,_0x22a61d-_0x881088._0x256559,_0x22a61d-_0x881088._0x283268);}return this[_0x205799(_0x3a6ecc._0x30b065,_0x3a6ecc._0x40df50,0x5bb,0x662)]['get'](_0x1aa4b7)??[];}['setTodos'](_0x3c01ea,_0x4ac947){this['todosBySession']['set'](_0x3c01ea,_0x4ac947);}[_0x29b8eb(0x431,0x3fc,0x4a1,0x4af)](_0x14d730){const _0x489b7d={_0x26806d:0x137,_0xb604dd:0x1d,_0x440381:0x7c,_0x372acc:0x15b,_0x495cf6:0x1a0,_0x1267bb:0x31a,_0x487792:0x194,_0x180321:0x2c9,_0x4ba63b:0x1e7,_0x28d393:0x72,_0x5dcb19:0xdd,_0x515525:0x18e,_0x5a1eb0:0x11,_0x1887d6:0xd4,_0x24c09e:0x139},_0xac4e0f={_0x539c99:0x28};function _0x2d0d10(_0x2e2658,_0x5375fd,_0x50fe84,_0x1a83bb){return _0x5a3b3d(_0x5375fd,_0x5375fd-_0xac4e0f._0x539c99,_0x2e2658- -0x408,_0x1a83bb-0x11);}const _0x45c426=this['getTodos'](_0x14d730),_0x1a66c5={'total':_0x45c426[_0x3a4b72(_0x489b7d._0x26806d,-0xa9,_0x489b7d._0xb604dd,0x6a)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0x2e1a99 of _0x45c426){if(_0x2e1a99[_0x3a4b72(_0x489b7d._0x440381,0x194,_0x489b7d._0x372acc,0x46)]===_0x2d0d10(-0x24d,-_0x489b7d._0x495cf6,-0x20e,-_0x489b7d._0x1267bb))_0x1a66c5['pending']+=0x1;else{if(_0x2e1a99[_0x2d0d10(-0x1e1,-_0x489b7d._0x487792,-0x259,-_0x489b7d._0x180321)]==='in_progress')_0x1a66c5[_0x3a4b72(_0x489b7d._0x4ba63b,_0x489b7d._0x28d393,_0x489b7d._0x5dcb19,_0x489b7d._0x515525)]+=0x1;else _0x1a66c5[_0x2d0d10(-_0x489b7d._0x5a1eb0,-_0x489b7d._0x1887d6,0x14,-_0x489b7d._0x24c09e)]+=0x1;}}function _0x3a4b72(_0x988858,_0x27ada6,_0x457e0c,_0x53f240){return _0x5a3b3d(_0x27ada6,_0x27ada6-0x10,_0x53f240- -0x1e1,_0x53f240-0xf0);}return _0x1a66c5;}};function validateTodos(_0x4ddceb){const _0x50f297={_0x2eab2f:0x563,_0x41cfb9:0x57d,_0x414051:0x4cf,_0x386d5a:0x548,_0xc6bf08:0x4cd,_0x1229e:0x409,_0x4087a9:0x414,_0x534979:0x5b6,_0x405adf:0x498,_0x3aa26c:0x46d,_0x409c86:0x49d,_0x468182:0xcd,_0x5ea504:0x130,_0x19e524:0xc9,_0x4bb076:0x576,_0x4aafa1:0xd1,_0x5b7f71:0x28,_0x184f00:0x5e9,_0x81a2b5:0x548,_0x288c98:0x4c6,_0x4c816e:0x43a,_0x2f8bac:0x10d,_0x37d64f:0x6a,_0x4c28df:0x5d3,_0x547f72:0x505,_0x35ab41:0x502,_0x2f13c3:0x542,_0x4fb8c0:0x5bd,_0x1d21f4:0x68b,_0x547649:0x45a,_0xce199:0x12b,_0xaa9ad7:0x102,_0x3e7b9c:0x1d,_0x15396b:0x17,_0x1256e4:0x196,_0x3e9140:0x4f,_0x162761:0xfd,_0x54d123:0x10f,_0x4ad812:0x3d,_0x309d18:0x51,_0x49684b:0xac,_0x3049b5:0xb8,_0x4ee436:0x4a,_0x25fd8b:0x482,_0x66016d:0x447,_0x4e4141:0x580,_0x2fd4e4:0x49b,_0x5a9569:0x18a,_0x4a0289:0x75,_0x388049:0x71,_0x25a8c4:0xa4,_0x5577ab:0x5a2,_0x1a78e8:0x4f5,_0xfc09b8:0x561,_0x5b24c5:0x5ac,_0x10f844:0x5ef,_0x2e7e77:0x8e,_0x15d5ad:0x64,_0x58f10e:0x479,_0x42cf29:0x313,_0x325e92:0x4d3,_0x5312d3:0x5f9,_0x49a548:0x5d6,_0x33b60a:0x63e,_0x45c0c8:0x67c},_0x6b8bc0={_0x2614c7:0x4ea};if(!Array[_0x49fedb(0x4be,_0x50f297._0x2eab2f,_0x50f297._0x41cfb9,_0x50f297._0x414051)](_0x4ddceb[_0x49fedb(0x5fa,_0x50f297._0x386d5a,0x4bb,0x4a3)])||_0x4ddceb[_0x49fedb(_0x50f297._0xc6bf08,0x548,_0x50f297._0x1229e,_0x50f297._0x4087a9)][_0x49fedb(_0x50f297._0x534979,_0x50f297._0x405adf,_0x50f297._0x3aa26c,_0x50f297._0x409c86)]===0x0)throw new ToolExecutionError(_0x51aa89(-_0x50f297._0x468182,-_0x50f297._0x5ea504,-0x36,-_0x50f297._0x19e524),{'error':'invalid_todos'});function _0x51aa89(_0x2ac485,_0x3cde81,_0x3335e4,_0x4aa60d){return _0x29b8eb(_0x2ac485-0x62,_0x3335e4- -_0x6b8bc0._0x2614c7,_0x3335e4-0x3d,_0x3cde81);}function _0x49fedb(_0x10cea4,_0x1538d7,_0x2d4fb0,_0x1f6bd1){return _0x5a3b3d(_0x10cea4,_0x1538d7-0x9c,_0x1538d7-0x24d,_0x1f6bd1-0x4a);}for(let _0x3b09da=0x0;_0x3b09da<_0x4ddceb[_0x49fedb(_0x50f297._0x4bb076,_0x50f297._0x386d5a,0x4d0,0x400)][_0x51aa89(-0x14,_0x50f297._0x4aafa1,-_0x50f297._0x5b7f71,-0x105)];_0x3b09da+=0x1){const _0x5d1c0b=_0x4ddceb[_0x49fedb(_0x50f297._0x184f00,_0x50f297._0x81a2b5,_0x50f297._0x288c98,_0x50f297._0x4c816e)][_0x3b09da];if(!_0x5d1c0b||typeof _0x5d1c0b!=='object')throw new ToolExecutionError(_0x51aa89(-_0x50f297._0x2f8bac,-0x10f,-_0x50f297._0x37d64f,-0x3d)+(_0x3b09da+0x1)+_0x49fedb(_0x50f297._0x4c28df,_0x50f297._0x547f72,0x4c2,_0x50f297._0x35ab41),{'error':_0x51aa89(-0x13e,0x11,-0x20,-0x134)});if(typeof _0x5d1c0b['id']!==_0x49fedb(_0x50f297._0x2f13c3,_0x50f297._0x4fb8c0,0x60a,_0x50f297._0x1d21f4)||_0x5d1c0b['id']['trim']()[_0x49fedb(0x57d,0x498,0x506,_0x50f297._0x547649)]===0x0)throw new ToolExecutionError(_0x51aa89(-0x54,-_0x50f297._0xce199,-0x6a,-0x12a)+(_0x3b09da+0x1)+_0x51aa89(-_0x50f297._0xaa9ad7,0x69,-_0x50f297._0x3e7b9c,0x30),{'error':_0x51aa89(_0x50f297._0x15396b,0x8f,0xe7,_0x50f297._0x1256e4)});if(typeof _0x5d1c0b['content']!==_0x51aa89(_0x50f297._0x3e9140,0xf5,_0x50f297._0x162761,0xe7)||_0x5d1c0b[_0x51aa89(_0x50f297._0x54d123,0x170,_0x50f297._0x4ad812,0x67)][_0x51aa89(-0x178,-_0x50f297._0x309d18,-0xa1,-_0x50f297._0x49684b)]()['length']===0x0)throw new ToolExecutionError(_0x51aa89(-0x189,-_0x50f297._0x3049b5,-_0x50f297._0x37d64f,-_0x50f297._0x4ee436)+(_0x3b09da+0x1)+_0x49fedb(_0x50f297._0x25fd8b,_0x50f297._0x66016d,_0x50f297._0x4e4141,_0x50f297._0x2fd4e4),{'error':_0x51aa89(-_0x50f297._0x5a9569,-_0x50f297._0x4a0289,-0xc0,-_0x50f297._0x388049)});if(!isTodoStatus(_0x5d1c0b[_0x51aa89(0x4e,-0x17a,-0x4c,_0x50f297._0x25a8c4)]))throw new ToolExecutionError(_0x49fedb(_0x50f297._0x5577ab,0x456,0x399,_0x50f297._0x1a78e8)+(_0x3b09da+0x1)+_0x49fedb(_0x50f297._0xfc09b8,_0x50f297._0x5b24c5,0x661,_0x50f297._0x10f844),{'error':_0x51aa89(0xf8,0x67,_0x50f297._0x2e7e77,-_0x50f297._0x15d5ad)});if(!isTodoPriority(_0x5d1c0b[_0x49fedb(_0x50f297._0x58f10e,0x3c1,0x29c,0x39c)]))throw new ToolExecutionError(_0x49fedb(_0x50f297._0x42cf29,0x456,_0x50f297._0x325e92,0x311)+(_0x3b09da+0x1)+':\x20invalid\x20priority',{'error':'invalid_todo_priority'});}const _0x57efe6=_0x4ddceb['todos']['map'](_0x3c6565=>_0x3c6565['id']);if(new Set(_0x57efe6)['size']!==_0x57efe6['length'])throw new ToolExecutionError(_0x49fedb(0x54c,_0x50f297._0x5312d3,0x6ef,_0x50f297._0x49a548),{'error':_0x49fedb(0x579,_0x50f297._0x33b60a,_0x50f297._0x45c0c8,0x786)});}function createStatsProgress(_0x335b83){const _0xe0d874={_0x396914:0x392,_0x706f49:0x4c2,_0x3bbfcb:0x4ba,_0x164e9e:0x3bf,_0x5b8818:0x2de,_0x2fb733:0x4ed,_0x1267d1:0x28b,_0x21777f:0x249,_0x36f7ef:0x2d9};function _0x43d6d7(_0x4437a2,_0x3793a4,_0x799bd2,_0x26d0e2){return _0x5a3b3d(_0x799bd2,_0x3793a4-0x10,_0x3793a4- -0x13,_0x26d0e2-0x190);}function _0xe9d335(_0x343877,_0x3f03ea,_0x13103a,_0x25bbc8){return _0x29b8eb(_0x343877-0xd4,_0x25bbc8- -0x120,_0x13103a-0x18c,_0x13103a);}return _0x335b83['total']>0x0?Math[_0xe9d335(_0xe0d874._0x396914,_0xe0d874._0x706f49,_0xe0d874._0x3bbfcb,0x390)](_0x335b83[_0x43d6d7(_0xe0d874._0x164e9e,0x3e4,_0xe0d874._0x5b8818,_0xe0d874._0x2fb733)]/_0x335b83[_0x43d6d7(0x156,_0xe0d874._0x1267d1,_0xe0d874._0x21777f,_0xe0d874._0x36f7ef)]*0x64)+'%':'0%';}function createReminderItems(_0x2cf021){function _0x3b6751(_0x337a34,_0x25fcae,_0x96f1f0,_0x2120ea){return _0x5a3b3d(_0x96f1f0,_0x25fcae-0x14b,_0x337a34-0x155,_0x2120ea-0x74);}return _0x2cf021['map'](_0x254ec6=>({'content':_0x254ec6[_0x3b6751(0x405,0x483,0x424,0x44a)],'status':_0x254ec6['status'],'id':_0x254ec6['id']}));}function createStructuredResult(_0x14ec8d,_0x17ee71,_0x185b22,_0x3a5b5c){const _0x6c0615={_0x27ddc2:0x333,_0x11ea98:0x35e,_0x38b185:0x304},_0x5664cb={_0x4ed374:0x27},_0x219811={_0x279d77:0x1e2,_0x5ae408:0x5c};function _0x4c3390(_0xf8b231,_0x340c45,_0x27f4b6,_0x1ea139){return _0x5a3b3d(_0x340c45,_0x340c45-_0x219811._0x279d77,_0x27f4b6- -0x3f7,_0x1ea139-_0x219811._0x5ae408);}function _0x57be94(_0x5eb1ef,_0x3f387e,_0x331a99,_0x572224){return _0x5a3b3d(_0x5eb1ef,_0x3f387e-0x2f,_0x3f387e- -0x76,_0x572224-_0x5664cb._0x4ed374);}return{'allCompleted':_0x3a5b5c,'items':_0x17ee71[_0x57be94(_0x6c0615._0x27ddc2,_0x6c0615._0x11ea98,0x259,_0x6c0615._0x38b185)](_0x52449f=>({'id':_0x52449f['id'],'content':_0x52449f[_0x4c3390(-0xdd,-0x214,-0x147,-0x252)],'status':_0x52449f[_0x57be94(0x169,0x1b1,0x1ed,0x2ba)],'priority':_0x52449f[_0x4c3390(-0x2b4,-0x26b,-0x283,-0x386)],'createdAt':_0x52449f[_0x57be94(0xcd,0x172,0x14d,0xf1)]})),'progress':createStatsProgress(_0x185b22),'recentChanges':!![],'sessionId':_0x14ec8d,'stats':_0x185b22,'todosWritten':_0x17ee71['length']};}function createOutputText(_0xfe82e4,_0xf3391c){const _0x56e10e={_0x9ebfd9:0x586,_0x249b25:0x3f3,_0x6f47:0x2d9,_0x43a7b7:0x404,_0x3edcc7:0x349,_0x265343:0xcf,_0xade655:0x15d},_0xf30520={_0x184a0f:0xca,_0x372dd9:0x19b},_0x5a484b={_0x5523d3:0x2d6};function _0x97d475(_0x102a9a,_0x1c9600,_0x3979bd,_0x19dfba){return _0x5a3b3d(_0x3979bd,_0x1c9600-0xf7,_0x102a9a- -_0x5a484b._0x5523d3,_0x19dfba-0x18d);}const _0x34831b=JSON['stringify'](createReminderItems(_0xfe82e4));if(_0xf3391c)return'All\x20'+_0xfe82e4['length']+_0x2952fd(0x6cc,0x480,_0x56e10e._0x9ebfd9,0x5aa)+_0x34831b+_0x2952fd(_0x56e10e._0x249b25,_0x56e10e._0x6f47,0x370,_0x56e10e._0x43a7b7);function _0x2952fd(_0xb3cfd1,_0x2d0892,_0x4027f0,_0x54a49e){return _0x29b8eb(_0xb3cfd1-0x1c8,_0x54a49e- -_0xf30520._0x184a0f,_0x4027f0-_0xf30520._0x372dd9,_0x4027f0);}return _0x2952fd(0x2fd,0x375,0x44d,_0x56e10e._0x3edcc7)+_0x34831b+_0x97d475(-0x7f,-_0x56e10e._0x265343,-_0x56e10e._0xade655,-0x50);}function createTodoWriteTool(_0x35157f=new TodoStore()){const _0x3858c6={_0x417252:0xe2,_0xf180a7:0x29f,_0x1df56d:0x24f,_0xde01b7:0x187,_0x21ee88:0x3ed,_0x30f169:0x2a5,_0x4f07a9:0x2fc,_0x5b2079:0x2b4,_0x8729a2:0x1e1,_0x518d84:0x14f,_0x7380d0:0x155,_0x5f0dc0:0x6d,_0x2d7f18:0x54,_0x47cfde:0x1a0,_0xc2985f:0x236,_0x6d1e73:0x278,_0x20ce23:0x134,_0x16b188:0x20b,_0x43da10:0x278,_0x48d2d1:0x12e},_0x428801={_0x31e70d:0x5e0,_0x3cd73b:0x49f,_0x5d8cdf:0x475,_0x224a46:0x550,_0x55e81d:0x614,_0x3bb3e4:0x574,_0x2b23cc:0x416,_0xf89f1e:0x53b,_0x5dd9f1:0x57a,_0x470313:0x5a4,_0x1a80d3:0x43c,_0x35bea8:0x5de,_0xc63272:0x216,_0x1a9c2a:0x239,_0x4c9ba4:0x1e5,_0x480176:0xed,_0x23bbed:0xc6,_0x21ee53:0x110},_0x12d4a2={_0x32eacf:0x1f4},_0xcf8787={_0x2fa7cb:0x1ee,_0x2593a9:0xf8,_0x470fbb:0xfb},_0x363c8d={_0x135908:0xb0};function _0x2310a8(_0x231e1b,_0x53ac4a,_0x175a01,_0x4caa85){return _0x5a3b3d(_0x231e1b,_0x53ac4a-0xb2,_0x53ac4a- -0x352,_0x4caa85-_0x363c8d._0x135908);}function _0x515032(_0x1be837,_0x1931e9,_0x1e148e,_0x1ecf5e){return _0x5a3b3d(_0x1be837,_0x1931e9-_0xcf8787._0x2fa7cb,_0x1ecf5e- -_0xcf8787._0x2593a9,_0x1ecf5e-_0xcf8787._0x470fbb);}return defineTool({'name':_0x515032(_0x3858c6._0x417252,_0x3858c6._0xf180a7,_0x3858c6._0x1df56d,_0x3858c6._0xde01b7),'description':_0x515032(0x1f0,0x3d7,_0x3858c6._0x21ee88,_0x3858c6._0x30f169),'inputSchema':{'type':_0x515032(0x242,0x2df,_0x3858c6._0x4f07a9,0x218),'properties':{'todos':{'type':_0x515032(0x1c1,_0x3858c6._0x5b2079,0x217,_0x3858c6._0x8729a2),'items':{'type':'object','properties':{'content':{'type':_0x2310a8(_0x3858c6._0x518d84,0x1e,0x15c,-0xfc)},'status':{'type':_0x515032(0x2ae,0x220,_0x3858c6._0x7380d0,0x278)},'priority':{'type':_0x2310a8(-_0x3858c6._0x5f0dc0,0x1e,-0x93,-_0x3858c6._0x2d7f18)},'id':{'type':_0x515032(_0x3858c6._0x47cfde,_0x3858c6._0xc2985f,0x239,_0x3858c6._0x6d1e73)},'createdAt':{'type':_0x515032(0x1dc,_0x3858c6._0x20ce23,_0x3858c6._0x16b188,_0x3858c6._0x43da10)}},'required':[_0x2310a8(-0x1b1,-0xa2,0x8c,-_0x3858c6._0x48d2d1),'status',_0x2310a8(-0x8c,-0x1de,-0x14b,-0x298),'id']}}},'required':['todos']},async *'execute'(_0x3ff207,_0x133a1d){const _0x1bf70a={_0x45a250:0x178},_0x40416f=_0x3ff207;function _0x7d240e(_0x3b366f,_0x89eb2c,_0x332b06,_0x222a8c){return _0x2310a8(_0x222a8c,_0x89eb2c-0x4cb,_0x332b06-_0x1bf70a._0x45a250,_0x222a8c-0xf9);}validateTodos(_0x40416f);const _0x3e99b4=_0x133a1d[_0x7d240e(_0x428801._0x31e70d,0x54f,0x5d5,_0x428801._0x3cd73b)]||_0x7d240e(_0x428801._0x5d8cdf,_0x428801._0x224a46,_0x428801._0x55e81d,_0x428801._0x3bb3e4),_0x2b4484=new Date()[_0x7d240e(_0x428801._0x2b23cc,_0x428801._0xf89f1e,0x3f6,0x4b5)](),_0x3dfe87=_0x40416f[_0x7d240e(_0x428801._0x5dd9f1,0x474,_0x428801._0x470313,0x37b)][_0x7d240e(_0x428801._0x1a80d3,0x54d,0x4ac,_0x428801._0x35bea8)](_0x3618e9=>({'id':_0x3618e9['id'],'content':_0x3618e9[_0x7d240e(0x310,0x429,0x55f,0x465)],'status':_0x3618e9[_0x1d3453(0xc9,-0x71,0x1f7,0x6c)],'priority':_0x3618e9[_0x1d3453(0x16,-0x11d,0xc6,-0x83)],'sessionId':_0x3e99b4,'createdAt':_0x3618e9[_0x1d3453(0x8a,-0xb,0x2b,0x184)]||_0x2b4484,'updatedAt':_0x2b4484}));_0x35157f[_0x1d3453(_0x428801._0xc63272,_0x428801._0x1a9c2a,0x1f3,_0x428801._0x4c9ba4)](_0x3e99b4,_0x3dfe87);function _0x1d3453(_0x1bbcba,_0x2ca34a,_0x3c4cd1,_0x49e7ba){return _0x2310a8(_0x3c4cd1,_0x1bbcba-_0x12d4a2._0x32eacf,_0x3c4cd1-0x14c,_0x49e7ba-0xc);}const _0xcc692e=_0x35157f['getStats'](_0x3e99b4),_0x1a0df8=_0x3dfe87[_0x1d3453(_0x428801._0x480176,0xce,_0x428801._0x23bbed,_0x428801._0x21ee53)]>0x0&&_0x3dfe87['every'](_0x3db049=>_0x3db049[_0x7d240e(0x46c,0x3a0,0x43a,0x3c2)]==='completed');return createToolOutput(createOutputText(_0x3dfe87,_0x1a0df8),createStructuredResult(_0x3e99b4,_0x3dfe87,_0xcc692e,_0x1a0df8));}});}import{mkdir as _0x4cd4b5,writeFile as _0x34e567}from'fs/promises';import*as _0x500f4f from'path';function sanitizeFileName(_0x58376e){const _0x1450f6={_0x140545:0x58a,_0x1c66af:0x3c3},_0x2d911d={_0x101102:0x13f};function _0x9a6251(_0x54a36f,_0x2499b1,_0x3a93ad,_0x23d496){return _0x29b8eb(_0x54a36f-0x123,_0x3a93ad- -0x19a,_0x3a93ad-_0x2d911d._0x101102,_0x54a36f);}return _0x58376e[_0x9a6251(0x372,_0x1450f6._0x140545,0x490,_0x1450f6._0x1c66af)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x10cbab,_0x365e0f){const _0x245a6b={_0x1e8406:0x34b,_0x9a4d95:0x54f,_0x2b0510:0x315,_0x792f41:0x53f,_0x77be13:0x42c,_0x447e9e:0x52a,_0x31e84d:0x46f,_0x4313df:0x377,_0x30549f:0x2bb,_0x2fddcc:0x449,_0x461818:0x33b,_0x2c1f3c:0x351,_0x5ece27:0x435,_0x3b9315:0x55a,_0x47dbbd:0x520,_0xfcab17:0x44a,_0x31a2cd:0x4a9,_0x2d48ce:0x4f4,_0x400065:0x4d6,_0x3b3527:0x60e,_0x54f50a:0x496,_0x19b6a6:0x546,_0x778496:0x4da,_0xf99849:0x2cd,_0x27b3b9:0x507,_0x316f6d:0x40a,_0x5980f2:0x3fa,_0x17a4d3:0x523,_0x4433cd:0x23d,_0x51efe7:0x379,_0x15fce9:0x403,_0x42ffb7:0x353,_0x41a141:0x411,_0x5ef279:0x429,_0x4b90c2:0x4b2,_0x254f69:0x3bc,_0x4ebbaf:0x495,_0x4182dd:0x2ff,_0x3cefb3:0x2c0,_0x29ac34:0x2f5,_0x7a1b62:0x3e3,_0x5da540:0x2bb,_0x425221:0x313,_0x1716ea:0x351,_0x44de93:0x4a8,_0x5493fc:0x44a,_0x4b98c9:0x4aa,_0x57cf1f:0x3d8,_0x7b54cd:0x2cd},_0x28672b={_0x5409e5:0x19a,_0x4deba8:0x166,_0x12b9ae:0x1b3},_0x508d5f={_0x1edac5:0x142,_0x41d2ed:0x177},{maxBytes:_0x4bea78,sessionDir:_0x451bb8}=_0x365e0f;if(!_0x10cbab[_0x4d320b(0x3da,_0x245a6b._0x1e8406,0x41e,0x4c0)]||Buffer[_0x4d320b(0x3da,0x3d6,0x44f,_0x245a6b._0x9a4d95)](_0x10cbab['output'],'utf8')<=_0x4bea78)return _0x10cbab;function _0x4d320b(_0x11b3d3,_0x13308e,_0x47512a,_0x175ec6){return _0x29b8eb(_0x11b3d3-0x19,_0x47512a- -_0x508d5f._0x1edac5,_0x47512a-_0x508d5f._0x41d2ed,_0x175ec6);}const _0x1350f7=Buffer['byteLength'](_0x10cbab[_0x4d320b(_0x245a6b._0x2b0510,_0x245a6b._0x792f41,0x41e,0x422)],'utf8');if(!_0x451bb8){const _0x772bac=_0x10cbab[_0x4d320b(0x3f6,_0x245a6b._0x77be13,0x41e,_0x245a6b._0x447e9e)][_0x4d320b(0x3d3,_0x245a6b._0x31e84d,_0x245a6b._0x4313df,_0x245a6b._0x30549f)](0x0,_0x4bea78);return{..._0x10cbab,'output':_0x772bac+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x4bea78+'\x20bytes\x20(original:\x20'+_0x1350f7+_0x5dae92(0x389,_0x245a6b._0x2fddcc,_0x245a6b._0x461818,0x24b)),'meta':{..._0x10cbab['meta'],'truncated':!![],'originalBytes':_0x1350f7,'transforms':[..._0x10cbab[_0x5dae92(0x2e7,0x391,_0x245a6b._0x2c1f3c,_0x245a6b._0x5ece27)][_0x4d320b(_0x245a6b._0x3b9315,_0x245a6b._0x47dbbd,_0x245a6b._0xfcab17,_0x245a6b._0x31a2cd)],'tool-output-offload']}};}const _0x1bf819=_0x10cbab['toolName']+'_'+sanitizeFileName(_0x10cbab[_0x5dae92(0x3a4,_0x245a6b._0x2d48ce,_0x245a6b._0x400065,_0x245a6b._0x3b3527)])+_0x5dae92(_0x245a6b._0x54f50a,_0x245a6b._0x19b6a6,_0x245a6b._0x778496,0x52d),_0x31ed04=_0x500f4f[_0x5dae92(0x309,0x2e9,0x2ee,_0x245a6b._0xf99849)](_0x451bb8,_0x1bf819);await _0x4cd4b5(_0x451bb8,{'recursive':!![]}),await _0x34e567(_0x31ed04,_0x10cbab[_0x5dae92(_0x245a6b._0x27b3b9,_0x245a6b._0x316f6d,_0x245a6b._0x5980f2,0x311)],'utf8');function _0x5dae92(_0x301add,_0x18d012,_0x2347ad,_0x17037e){return _0x29b8eb(_0x301add-_0x28672b._0x5409e5,_0x2347ad- -_0x28672b._0x4deba8,_0x2347ad-_0x28672b._0x12b9ae,_0x17037e);}let _0x18b22d=_0x10cbab[_0x5dae92(0x4b6,0x507,0x3fa,_0x245a6b._0x17a4d3)][_0x5dae92(0x45a,_0x245a6b._0x4433cd,0x353,_0x245a6b._0x51efe7)](0x0,_0x4bea78);const _0xabbfea=_0x18b22d['lastIndexOf']('\x0a');_0xabbfea>_0x4bea78*0.5&&(_0x18b22d=_0x18b22d[_0x5dae92(_0x245a6b._0x15fce9,0x329,_0x245a6b._0x42ffb7,0x34c)](0x0,_0xabbfea));const _0x8a706b=['',_0x4d320b(_0x245a6b._0x41a141,0x30c,0x3a0,_0x245a6b._0x5ef279),'Tool\x20output\x20was\x20truncated\x20at\x20'+_0x4bea78+_0x4d320b(_0x245a6b._0x4b90c2,0x2cd,_0x245a6b._0x254f69,_0x245a6b._0x4ebbaf)+_0x1350f7+_0x5dae92(0x16c,_0x245a6b._0x4182dd,0x2af,_0x245a6b._0x3cefb3),'Full\x20output\x20saved\x20to:\x20'+_0x31ed04,'Use\x20FileRead\x20with\x20lineStart/lineEnd\x20to\x20inspect\x20specific\x20sections\x20of\x20the\x20full\x20output.',_0x5dae92(_0x245a6b._0x29ac34,0x24d,0x2fc,_0x245a6b._0x7a1b62)][_0x5dae92(_0x245a6b._0x5da540,0x305,0x2ee,0x25d)]('\x0a');return{..._0x10cbab,'output':_0x18b22d+_0x8a706b,'meta':{..._0x10cbab[_0x5dae92(0x3a3,_0x245a6b._0x425221,_0x245a6b._0x1716ea,0x38b)],'truncated':!![],'originalBytes':_0x1350f7,'transforms':[..._0x10cbab['meta'][_0x4d320b(0x4cb,_0x245a6b._0x44de93,_0x245a6b._0x5493fc,_0x245a6b._0x4b98c9)],_0x4d320b(_0x245a6b._0x57cf1f,0x40f,_0x245a6b._0x7b54cd,0x35e)]}};}function createUpdateTopicTool(){const _0x2fb227={_0x5a9c0f:0x35,_0x5e6b66:0x82,_0x9f3f16:0x59,_0x1e49e5:0xa1,_0x331cb4:0x285,_0x5a6882:0x32a,_0x148315:0x396,_0x117202:0xbc,_0x506149:0x45f},_0x124e69={_0x74fc7c:0x1ef,_0x4d23bb:0x12a,_0x1ad26d:0x199,_0x3faa56:0x6c,_0x403f19:0x195,_0x4ba185:0x4f,_0x55c4a7:0x16b,_0x121dcf:0x11f,_0x589f5e:0x180},_0x52922c={_0x10e3b0:0x58,_0x13cb9c:0xb4},_0x30fa41={_0x61fb6d:0xf2};function _0x28a527(_0x49d8c2,_0x3ed74c,_0x55d322,_0x132ab4){return _0x29b8eb(_0x49d8c2-_0x30fa41._0x61fb6d,_0x132ab4- -0x1d3,_0x55d322-0x1b9,_0x3ed74c);}function _0x421391(_0x5684b4,_0x368bd0,_0x39a355,_0x1d315e){return _0x29b8eb(_0x5684b4-_0x52922c._0x10e3b0,_0x5684b4- -0x5ca,_0x39a355-_0x52922c._0x13cb9c,_0x39a355);}return defineTool({'name':_0x421391(-_0x2fb227._0x5a9c0f,_0x2fb227._0x5e6b66,-_0x2fb227._0x9f3f16,-_0x2fb227._0x1e49e5),'description':_0x28a527(_0x2fb227._0x331cb4,_0x2fb227._0x5a6882,0x2ff,_0x2fb227._0x148315),'inputSchema':{'type':_0x421391(-0x43,0x5,-0xce,-_0x2fb227._0x117202),'properties':{'topic':{'type':_0x28a527(_0x2fb227._0x506149,0x4bc,0x2c4,0x414)}},'required':['topic']},async *'execute'(_0x2446e6,_0x4d6497){const _0x3439ac={_0x262624:0x9c};function _0x4c598c(_0x3ffc83,_0x946721,_0x431b14,_0x2d047e){return _0x421391(_0x431b14-0x1,_0x946721-0x1c0,_0x946721,_0x2d047e-0x93);}const {topic:_0x2d16d8}=_0x2446e6;if(typeof _0x2d16d8!==_0x5956f5(0xb9,_0x124e69._0x74fc7c,_0x124e69._0x4d23bb,0x14d)||_0x2d16d8[_0x4c598c(-0x251,-_0x124e69._0x1ad26d,-0x180,-0x152)]()[_0x5956f5(-_0x124e69._0x3faa56,0x70,-0xe1,-_0x124e69._0x403f19)]===0x0)throw new ToolExecutionError(_0x5956f5(-_0x124e69._0x4ba185,-_0x124e69._0x55c4a7,0x19,-0x71),{'error':'invalid_topic'});const _0x1fbb84=_0x2d16d8[_0x4c598c(-0x262,-_0x124e69._0x121dcf,-_0x124e69._0x589f5e,-0x50)]();_0x4d6497['setTopic']?.(_0x1fbb84),yield createToolOutput(_0x4c598c(-0xf5,-0x1ae,-0x68,_0x124e69._0x3faa56)+_0x1fbb84+'\x22',{'topic':_0x1fbb84});function _0x5956f5(_0x2a37b1,_0x18fbf8,_0x574ece,_0x295ab3){return _0x421391(_0x2a37b1-_0x3439ac._0x262624,_0x18fbf8-0x84,_0x295ab3,_0x295ab3-0x1a9);}return void 0x0;}});}import{readFile as _0x342c77,stat as _0x4e0978}from'fs/promises';import*as _0x5967c2 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x5a3b3d(0x1ee,0x1bc,0x265,0x388),_0x29b8eb(0x49a,0x583,0x66d,0x57a),_0x5a3b3d(0x4e3,0x3db,0x3ee,0x2ae),_0x29b8eb(0x3ed,0x440,0x425,0x510)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x67ff8f,_0x22b70e){const _0x3851bf={_0x2ec476:0x24f,_0x533c12:0x3e4,_0x49218d:0x55b,_0x3a2ac3:0x61d,_0x1a2f65:0x508,_0x4c4100:0x4c4,_0x7bf473:0x3ef,_0x3e572e:0x32e,_0x17b3e8:0x531,_0x5e7034:0x6f6,_0x6eb52d:0x5e8,_0x3e5df5:0x5ce,_0x48f79e:0x3d9,_0x111472:0x2cc,_0x47c645:0x3b6,_0x5ad1d6:0x370,_0x24b202:0x32d,_0x5066a3:0x3ba,_0x271acb:0x482,_0x5083bb:0x377,_0x282359:0x3d1,_0x2c7ce4:0x40f,_0x4209a6:0x3d0,_0x368077:0x3ae,_0x29ad7:0x3c5,_0xd68508:0x3b9,_0x339282:0x5d8,_0x455cb3:0x3b9,_0x22e713:0x42c,_0x30e946:0x3ac,_0x7a14e6:0x34d,_0x1fc2dc:0x448,_0x330f14:0x624,_0x7aa54f:0x52d,_0x456210:0x5dd,_0x390f50:0x598,_0x395fdc:0x67d,_0x1f6e36:0x623,_0x4c9d79:0x72e,_0x22fa46:0x509,_0x275f2d:0x49b,_0x2bdb06:0x2a0,_0x3eb5a4:0x3ae,_0x40c1e8:0x2be,_0x4d6cf7:0x2d6},_0x172c67={_0x43b1fa:0x17e,_0x3cfd38:0x13d,_0x23615c:0xf},_0x3ac24a={_0x2f0838:0x22b,_0x536bcd:0x7c};if(_0x67ff8f['subarray'](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x3e70c8(0x27a,0x39d,_0x3851bf._0x2ec476,_0x3851bf._0x533c12);if(_0x67ff8f[0x0]===0xff&&_0x67ff8f[0x1]===0xd8&&_0x67ff8f[0x2]===0xff)return _0xe1f49b(0x5a1,_0x3851bf._0x49218d,0x624,_0x3851bf._0x3a2ac3);const _0x4143aa=_0x67ff8f[_0xe1f49b(0x2f8,0x3c9,0x3ba,0x35f)](0x0,0x6)[_0xe1f49b(_0x3851bf._0x1a2f65,0x4fb,0x3d1,0x374)](_0xe1f49b(0x2fb,_0x3851bf._0x4c4100,_0x3851bf._0x7bf473,_0x3851bf._0x3e572e));function _0xe1f49b(_0x4f98bb,_0x5d8f28,_0x2cbf3a,_0xdc7a0d){return _0x5a3b3d(_0x5d8f28,_0x5d8f28-0x167,_0x2cbf3a-_0x3ac24a._0x2f0838,_0xdc7a0d-_0x3ac24a._0x536bcd);}if(_0x4143aa==='GIF87a'||_0x4143aa===_0xe1f49b(_0x3851bf._0x17b3e8,0x483,0x410,0x356))return _0xe1f49b(0x64a,_0x3851bf._0x5e7034,_0x3851bf._0x6eb52d,_0x3851bf._0x3e5df5);function _0x3e70c8(_0x3f9a65,_0x5926ff,_0x291b71,_0x1bf914){return _0x5a3b3d(_0x1bf914,_0x5926ff-_0x172c67._0x43b1fa,_0x5926ff-_0x172c67._0x3cfd38,_0x1bf914-_0x172c67._0x23615c);}if(_0x67ff8f[_0x3e70c8(_0x3851bf._0x48f79e,_0x3851bf._0x111472,0x1ff,_0x3851bf._0x47c645)](0x0,0x4)[_0xe1f49b(0x434,_0x3851bf._0x5ad1d6,0x3d1,0x3fa)](_0xe1f49b(0x31d,0x3b4,0x3ef,0x412))==='RIFF'&&_0x67ff8f[_0xe1f49b(0x3a5,_0x3851bf._0x24b202,_0x3851bf._0x5066a3,_0x3851bf._0x271acb)](0x8,0xc)[_0xe1f49b(_0x3851bf._0x5083bb,0x521,_0x3851bf._0x282359,0x353)](_0xe1f49b(0x30c,0x454,_0x3851bf._0x7bf473,_0x3851bf._0x2c7ce4))==='WEBP')return _0x3e70c8(_0x3851bf._0x4209a6,_0x3851bf._0x368077,_0x3851bf._0x29ad7,_0x3851bf._0xd68508);const _0x345a1c=_0x5967c2['extname'](_0x22b70e)[_0xe1f49b(0x50f,0x5b8,_0x3851bf._0x339282,0x67b)]();if(_0x345a1c===_0x3e70c8(0x3c1,_0x3851bf._0x455cb3,0x350,_0x3851bf._0x22e713))return _0x3e70c8(_0x3851bf._0x30e946,0x39d,_0x3851bf._0x7a14e6,0x26f);if(_0x345a1c==='.jpg'||_0x345a1c===_0xe1f49b(0x567,_0x3851bf._0x1fc2dc,0x53d,0x5f1))return _0xe1f49b(0x6ef,0x5d3,_0x3851bf._0x330f14,0x673);if(_0x345a1c===_0xe1f49b(_0x3851bf._0x7aa54f,_0x3851bf._0x456210,_0x3851bf._0x390f50,_0x3851bf._0x395fdc))return _0xe1f49b(0x6e2,_0x3851bf._0x1f6e36,0x5e8,_0x3851bf._0x4c9d79);if(_0x345a1c===_0xe1f49b(_0x3851bf._0x22fa46,0x50d,0x571,_0x3851bf._0x275f2d))return _0x3e70c8(_0x3851bf._0x2bdb06,_0x3851bf._0x3eb5a4,_0x3851bf._0x40c1e8,_0x3851bf._0x4d6cf7);return void 0x0;}function normalizeDetail(_0xa4cf5b){const _0x4c7b45={_0x159687:0x206,_0x305d7b:0x16a,_0x53ec3d:0x3b4,_0x47fe27:0x4f1,_0x3cbcea:0x25a,_0x4328da:0x10c,_0x25bbe6:0x15b,_0x14e2f6:0x315},_0x38a54a={_0x2962b7:0x11d};function _0x14c207(_0xc087fc,_0x4e2fd6,_0xee04d8,_0x1cf665){return _0x29b8eb(_0xc087fc-0x101,_0xc087fc- -0x243,_0xee04d8-0x2a,_0x1cf665);}if(_0xa4cf5b===void 0x0)return void 0x0;const _0x4a5820=_0xa4cf5b[_0x14c207(_0x4c7b45._0x159687,0x1f6,0xc3,_0x4c7b45._0x305d7b)]()[_0x3103e9(_0x4c7b45._0x53ec3d,0x3b4,_0x4c7b45._0x47fe27,0x2ac)]();function _0x3103e9(_0xde89d8,_0xbf1f5a,_0x375193,_0x1329ca){return _0x5a3b3d(_0x1329ca,_0xbf1f5a-0x18e,_0xbf1f5a-0x7,_0x1329ca-_0x38a54a._0x2962b7);}if(!SUPPORTED_DETAILS[_0x14c207(0x1ba,_0x4c7b45._0x3cbcea,_0x4c7b45._0x4328da,_0x4c7b45._0x25bbe6)](_0x4a5820))throw new ToolExecutionError(_0x14c207(0x387,0x3c7,0x3b1,_0x4c7b45._0x14e2f6)+_0xa4cf5b,{'detail':_0xa4cf5b});return _0x4a5820;}function createViewFileTool(_0x22455b={}){const _0x1c0e91={_0x1c0a64:0x564,_0x1f8bd5:0x569,_0x1f8f7e:0x57a,_0x5a4d06:0x1c9,_0x18f1cb:0x16f,_0x3b512a:0x292,_0x126c6d:0x87,_0x4cc61a:0x516,_0x21e159:0x555,_0x5d6ff9:0x103,_0x15a98e:0x3,_0x158333:0x96,_0x1ff941:0x4e4,_0x1db4db:0x42a,_0x4bbea2:0x39c,_0x47ac0d:0x306,_0x1accf7:0x29e,_0xc38f74:0x1ac,_0x48f05d:0x1e6,_0x3300dc:0x3f5,_0x28aae5:0x4d8,_0x246019:0x4d0,_0x51ee7a:0x43f,_0x304e61:0x573},_0x2a06da={_0x106476:0x364,_0x3989c6:0x1b4,_0xc74b0:0x3ea,_0x2c595f:0x446,_0x1cfb2a:0x33e,_0x512609:0x175,_0xf2a30e:0x29e,_0x439d09:0x2ac,_0x5e59d3:0x325,_0x29cd9c:0x21f,_0x5ac60f:0x3b3,_0x5e7fbf:0x263,_0x292e56:0x3a6,_0x46bf4c:0x498,_0x9de045:0x480,_0x54c9f9:0x661,_0x18c140:0x585,_0x490f8b:0x4cf,_0x50d3b9:0x5ff,_0x39c481:0x4a5,_0x50e8f7:0x364,_0x1f5e78:0x186,_0x12ee1d:0x18a,_0x2ef5cc:0x1c1,_0x3a5de3:0x2a3,_0xf95454:0x396,_0x150ada:0x3b4,_0x3a22d6:0x6af,_0x3c5e22:0x37e,_0x3c65de:0x5ab,_0x62df31:0x4cc,_0x7a417d:0x286,_0x35911b:0x231,_0x429b41:0xed,_0x4741e4:0x20b,_0x3b9df8:0x5ff,_0x2d28dd:0x610,_0x15b766:0x81,_0x322aa0:0x254,_0x24c070:0x1a0,_0x19f72e:0xb8,_0x22034f:0x1ac,_0x31c4a0:0x208,_0x114455:0x272,_0x218dae:0x219,_0x3696a6:0x1c0,_0x38e4aa:0xeb,_0x59e645:0x2c7,_0x174dd0:0x14d,_0x57c405:0xfd,_0x5537c1:0x2dc,_0x1e477e:0x36f,_0x609954:0x2f4,_0x229b36:0x307,_0xd81178:0x339,_0x47a4f9:0x1a4,_0x2fbcf8:0x1f1,_0x3d75bd:0x59,_0x3a5a05:0x111,_0x4488f0:0x52c},_0x5f4d1a={_0x386bc:0x181},_0x35bb00={_0x49f1ee:0x1aa,_0x29564b:0x33e},_0x2092e3={_0x6984cc:0x120},_0x231521={_0x26418b:0x169,_0xacdf97:0x14c},_0x2332b8=_0x5967c2['resolve'](_0x22455b[_0x42869c(_0x1c0e91._0x1c0a64,0x5b8,_0x1c0e91._0x1f8bd5,_0x1c0e91._0x1f8f7e)]??process[_0x1ba957(_0x1c0e91._0x5a4d06,_0x1c0e91._0x18f1cb,_0x1c0e91._0x3b512a,0x238)]()),_0x77396b=(_0x22455b[_0x1ba957(_0x1c0e91._0x126c6d,0x19b,0xf0,0xa2)]??[])[_0x42869c(0x53d,_0x1c0e91._0x4cc61a,_0x1c0e91._0x21e159,0x4ac)](_0x5475dc=>_0x5967c2['resolve'](_0x5475dc)),_0x43ea17=_0x22455b['maxBytes']??DEFAULT_MAX_BYTES;function _0x42869c(_0x5410e,_0x1f109c,_0x2fbe08,_0x5ec050){return _0x5a3b3d(_0x2fbe08,_0x1f109c-0x15,_0x5410e-_0x231521._0x26418b,_0x5ec050-_0x231521._0xacdf97);}function _0x1ba957(_0x4d8fa,_0xe3344a,_0x2e9c02,_0x47ebaf){return _0x5a3b3d(_0x2e9c02,_0xe3344a-0xec,_0x47ebaf- -_0x2092e3._0x6984cc,_0x47ebaf-0x164);}const _0x804aa2=_0x22455b[_0x1ba957(_0x1c0e91._0x5d6ff9,_0x1c0e91._0x15a98e,_0x1c0e91._0x158333,0x5c)]??_0x42869c(_0x1c0e91._0x1ff941,0x5bc,0x512,_0x1c0e91._0x1db4db);return defineTool({'name':_0x804aa2,'description':_0x42869c(_0x1c0e91._0x4bbea2,_0x1c0e91._0x47ac0d,_0x1c0e91._0x1accf7,0x284),'inputSchema':{'type':_0x1ba957(0x18c,_0x1c0e91._0xc38f74,_0x1c0e91._0x48f05d,0x1f0),'properties':{'path':{'type':_0x1ba957(0x307,0x2c0,0x110,0x250)},'detail':{'type':_0x42869c(0x4d9,0x407,_0x1c0e91._0x3300dc,_0x1c0e91._0x28aae5)}},'required':[_0x42869c(_0x1c0e91._0x246019,_0x1c0e91._0x51ee7a,_0x1c0e91._0x304e61,0x5bc)]},async *'execute'(_0x23df22){const _0x2ddeee=resolveAllowedPath(_0x2332b8,_0x77396b,_0x23df22[_0x4cf642(_0x2a06da._0x106476,_0x2a06da._0x3989c6,0x3b8,0x2ac)]);await assertWorkspaceFile(_0x2ddeee);const _0x207596=await _0x4e0978(_0x2ddeee);if(_0x207596[_0x13f5e0(0x2cc,0x3be,_0x2a06da._0xc74b0,0x345)]>_0x43ea17)throw new ToolExecutionError(_0x13f5e0(0x498,0x4b1,_0x2a06da._0x2c595f,0x48d)+_0x23df22[_0x4cf642(_0x2a06da._0x1cfb2a,_0x2a06da._0x512609,_0x2a06da._0xf2a30e,_0x2a06da._0x439d09)],{'path':_0x23df22[_0x4cf642(0x3b4,_0x2a06da._0x5e59d3,_0x2a06da._0x29cd9c,_0x2a06da._0x439d09)],'maxBytes':_0x43ea17,'size':_0x207596['size']});const _0x3ad1dc=await _0x342c77(_0x2ddeee),_0x2fae74=detectImageMediaType(_0x3ad1dc,_0x2ddeee);if(!_0x2fae74)throw new ToolExecutionError(_0x13f5e0(_0x2a06da._0x5ac60f,_0x2a06da._0x5e7fbf,_0x2a06da._0x292e56,_0x2a06da._0x46bf4c)+_0x23df22[_0x13f5e0(_0x2a06da._0x9de045,_0x2a06da._0x54c9f9,_0x2a06da._0x18c140,_0x2a06da._0x490f8b)],{'path':_0x23df22[_0x13f5e0(0x6a7,0x576,0x585,_0x2a06da._0x50d3b9)],'supported':['.gif',_0x13f5e0(_0x2a06da._0x39c481,0x4bd,0x530,0x47d),_0x4cf642(0x1ec,0x309,_0x2a06da._0x50e8f7,0x266),_0x4cf642(0x2a8,_0x2a06da._0x1f5e78,_0x2a06da._0x12ee1d,_0x2a06da._0x2ef5cc),_0x4cf642(_0x2a06da._0x3a5de3,_0x2a06da._0xf95454,_0x2a06da._0x150ada,0x28b)]});function _0x13f5e0(_0x5a37cf,_0x3aeaef,_0x5bbd7a,_0x1eb846){return _0x1ba957(_0x5a37cf-0x1b,_0x3aeaef-_0x35bb00._0x49f1ee,_0x5a37cf,_0x5bbd7a-_0x35bb00._0x29564b);}const _0x53a1b1=normalizeDetail(_0x23df22[_0x13f5e0(0x44e,0x43a,0x573,_0x2a06da._0x3a22d6)]),_0x4bd7ab=[_0x13f5e0(_0x2a06da._0x3c5e22,_0x2a06da._0x3c65de,0x4a8,_0x2a06da._0x62df31)+_0x23df22[_0x13f5e0(0x5c0,0x461,_0x2a06da._0x18c140,0x5b3)],_0x4cf642(_0x2a06da._0x7a417d,_0x2a06da._0x35911b,_0x2a06da._0x429b41,_0x2a06da._0x4741e4)+_0x2fae74,_0x13f5e0(_0x2a06da._0x3b9df8,0x6ee,_0x2a06da._0x2d28dd,0x6d4)+_0x207596[_0x4cf642(0x250,_0x2a06da._0x15b766,_0x2a06da._0x322aa0,0x111)]+'\x20bytes']['concat'](_0x53a1b1?['Detail:\x20'+_0x53a1b1]:[])['join']('\x0a'),_0x64f208=[{'type':_0x4cf642(0x11c,0x56,_0x2a06da._0x24c070,_0x2a06da._0x19f72e),'source':{'type':_0x4cf642(0x23f,_0x2a06da._0x22034f,_0x2a06da._0x31c4a0,_0x2a06da._0x114455),'media_type':_0x2fae74,'data':_0x3ad1dc[_0x4cf642(_0x2a06da._0x218dae,0x169,_0x2a06da._0x3696a6,_0x2a06da._0x38e4aa)]('base64')}},{'type':_0x4cf642(0x3ab,0x218,0x29e,_0x2a06da._0x59e645),'text':_0x4bd7ab}];function _0x4cf642(_0x36464a,_0x472bb5,_0x5857f3,_0x3bf79c){return _0x1ba957(_0x36464a-0xbf,_0x472bb5-_0x5f4d1a._0x386bc,_0x472bb5,_0x3bf79c-0x65);}return yield createToolOutput(_0x4bd7ab,{'path':_0x23df22[_0x13f5e0(0x455,0x6a6,0x585,0x597)],'resolvedPath':_0x2ddeee,'created':_0x207596[_0x4cf642(_0x2a06da._0x174dd0,0x1f4,_0x2a06da._0x57c405,0x17c)][_0x4cf642(_0x2a06da._0x5537c1,_0x2a06da._0x1e477e,_0x2a06da._0x609954,_0x2a06da._0x229b36)](),'modified':_0x207596['mtime'][_0x4cf642(_0x2a06da._0xd81178,0x3c2,0x1d3,_0x2a06da._0x229b36)](),'size':_0x207596[_0x4cf642(_0x2a06da._0x47a4f9,_0x2a06da._0x2fbcf8,_0x2a06da._0x3d75bd,_0x2a06da._0x3a5a05)],'mimeType':_0x2fae74,'encoding':_0x13f5e0(_0x2a06da._0x4488f0,0x612,0x54b,0x56f),..._0x53a1b1?{'detail':_0x53a1b1}:{}},_0x64f208),void 0x0;}});}import _0x25731e from'turndown';var USER_AGENT=_0x5a3b3d(0x157,0x1b6,0x296,0x28e),DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0xf909b2){const _0x5b3ca4={_0x397294:0x36a,_0x4b43b7:0x2be,_0x4fd4bb:0x3cc,_0xab5791:0x313,_0x825915:0x14e,_0x37f930:0x1b6,_0x27d6cd:0x1d2,_0x5b0c51:0xa5,_0x310599:0x135,_0x55fb66:0x16b,_0x5134c9:0x3c3,_0x3d9fe9:0x36b,_0x355de5:0x30d,_0x216e82:0x1b9,_0x4b4d4c:0x22c,_0x1a86e2:0x139,_0x4c00ab:0x96,_0x2fea72:0x79,_0x2a30c4:0xfa,_0x4800b4:0xbc},_0x5c0024={_0x11ac61:0x5e},_0xd5f270={_0x4cd61d:0x16c,_0x11cb6f:0x25f};let _0x179d62;try{_0x179d62=new URL(_0xf909b2);}catch{throw new ToolExecutionError(_0x1307d8(0x373,_0x5b3ca4._0x397294,0x432,0x31e),{'url':_0xf909b2});}if(_0x179d62[_0x1307d8(_0x5b3ca4._0x4b43b7,0x2cf,_0x5b3ca4._0x4fd4bb,_0x5b3ca4._0xab5791)]!==_0x486c40(_0x5b3ca4._0x825915,_0x5b3ca4._0x37f930,_0x5b3ca4._0x27d6cd,_0x5b3ca4._0x5b0c51)&&_0x179d62['protocol']!=='https:')throw new ToolExecutionError(_0x486c40(-0x2c,0x143,-0x46,0x7e),{'url':_0xf909b2});if(_0x179d62[_0x486c40(0xaa,_0x5b3ca4._0x310599,_0x5b3ca4._0x55fb66,0xef)]||_0x179d62[_0x1307d8(_0x5b3ca4._0x5134c9,_0x5b3ca4._0x3d9fe9,0x360,_0x5b3ca4._0x355de5)])throw new ToolExecutionError(_0x486c40(_0x5b3ca4._0x216e82,0x3a,_0x5b3ca4._0x4b4d4c,_0x5b3ca4._0x1a86e2),{'url':_0x179d62[_0x486c40(-0x14d,0x75,-_0x5b3ca4._0x4c00ab,-_0x5b3ca4._0x2fea72)]+'//'+_0x179d62[_0x486c40(0x88,_0x5b3ca4._0x2a30c4,-_0x5b3ca4._0x4800b4,_0x5b3ca4._0x2fea72)]+_0x179d62[_0x486c40(0xa6,0x26f,0x24a,0x182)]});function _0x486c40(_0x38fef8,_0x543eee,_0x705c00,_0x1e035b){return _0x5a3b3d(_0x705c00,_0x543eee-_0xd5f270._0x4cd61d,_0x1e035b- -_0xd5f270._0x11cb6f,_0x1e035b-0x1ec);}function _0x1307d8(_0x1cffab,_0xf5a8d4,_0x261d98,_0x254297){return _0x29b8eb(_0x1cffab-_0x5c0024._0x11ac61,_0xf5a8d4- -0x18e,_0x261d98-0x51,_0x1cffab);}return _0x179d62;}function createTimeoutSignal(_0x472fb2,_0x5d52af){const _0x2c60db={_0x2eb246:0x3cc,_0x152866:0x5bf,_0x2df795:0x66a,_0x4d3f8f:0x5b7,_0x35ab0b:0x5b8,_0x473142:0x666,_0x1f6d7e:0x50c,_0x4b7747:0x503},_0x511ba3={_0x164756:0x4ef,_0x2e52e2:0x50d,_0x3a629b:0x40e},_0x4225ed={_0x5850d3:0x34},_0x5c219a={_0x20c4d5:0x17c,_0x124577:0x1d3};function _0xb0eff9(_0x54c4b5,_0x65faa7,_0x57469e,_0x4a7fad){return _0x29b8eb(_0x54c4b5-_0x5c219a._0x20c4d5,_0x54c4b5- -0xf,_0x57469e-_0x5c219a._0x124577,_0x4a7fad);}const _0x1abc5f=new AbortController(),_0x358fb7=setTimeout(()=>_0x1abc5f[_0xb0eff9(0x5b7,0x6f4,0x6aa,0x541)](new Error('Fetch\x20timed\x20out')),_0x5d52af);function _0x48614e(_0x209fe2,_0x14fb45,_0x455c8f,_0x43ce6d){return _0x29b8eb(_0x209fe2-0x132,_0x209fe2- -0x4aa,_0x455c8f-_0x4225ed._0x5850d3,_0x43ce6d);}const _0x2d3871=()=>_0x1abc5f[_0xb0eff9(0x5b7,0x58c,0x6eb,0x5a5)](_0x472fb2[_0x48614e(-0xbe,-0x1bb,-0x12b,-0x1e9)]);return _0x472fb2[_0xb0eff9(0x485,0x510,0x599,_0x2c60db._0x2eb246)]?_0x1abc5f[_0x48614e(0x11c,0xb3,0xc5,0xb8)](_0x472fb2['reason']):_0x472fb2[_0xb0eff9(_0x2c60db._0x152866,_0x2c60db._0x2df795,0x4eb,0x6e5)](_0xb0eff9(_0x2c60db._0x4d3f8f,0x4c6,_0x2c60db._0x35ab0b,_0x2c60db._0x473142),_0x2d3871,{'once':!![]}),{'signal':_0x1abc5f[_0xb0eff9(_0x2c60db._0x1f6d7e,_0x2c60db._0x4b7747,0x650,0x562)],'cleanup':()=>{const _0x55ea9b={_0x36af53:0x4b7,_0x427e1b:0x181};clearTimeout(_0x358fb7);function _0x12606a(_0x4faf56,_0x373d7e,_0x2e3676,_0x596153){return _0x48614e(_0x4faf56-_0x55ea9b._0x36af53,_0x373d7e-0xf0,_0x2e3676-_0x55ea9b._0x427e1b,_0x2e3676);}function _0x411bc0(_0x4d8d47,_0x2d0492,_0x33ff39,_0x400e41){return _0xb0eff9(_0x2d0492-0x79,_0x2d0492-0x195,_0x33ff39-0xef,_0x33ff39);}_0x472fb2[_0x411bc0(0x4d6,_0x511ba3._0x164756,_0x511ba3._0x2e52e2,_0x511ba3._0x3a629b)](_0x12606a(0x5d3,0x68a,0x71a,0x573),_0x2d3871);}};}function _0x29b8eb(_0x4f5559,_0x425171,_0x27b52f,_0x27cb13){return _0x25c6(_0x425171-0x2a9,_0x27cb13);}function createWebFetchTool(_0x54a5cf={}){const _0x27dbda={_0x223dc9:0x22,_0x53bcf3:0x21f,_0x16da9d:0x107,_0x4b8d0b:0x3e,_0x371ea5:0x140,_0x41fc86:0x3,_0x27203c:0xc8,_0x417096:0x79,_0xe7b7e:0xba,_0x34027f:0x163,_0x4b77e7:0x164,_0x541660:0x8,_0x354921:0xc,_0x3eaf03:0x139,_0x28b941:0x49,_0x1417a2:0x56,_0x2fc98c:0x30,_0x3e3e42:0x115,_0x255564:0x3d,_0x5d10e9:0x45,_0x2176de:0x211,_0x80e28f:0x11c,_0x10d46f:0x63,_0x3d2716:0x32,_0x4bdf10:0xd9,_0x26e93a:0x1de,_0x1e0b25:0x1bd,_0x167f3b:0xd2,_0x440cb4:0x134,_0xae0ed8:0xa6,_0x39da09:0x1b,_0x24d11e:0xed,_0x261c01:0x8a,_0x48130a:0x14},_0x45b243={_0x228be5:0x10d,_0x27b30a:0x181,_0x11c9f8:0x1e1,_0x49c5ee:0x238,_0x23a81a:0x6e,_0x4fba00:0x139,_0x48fa63:0x19,_0x9f837b:0x17,_0x41c755:0x196,_0x2795b2:0x1e9,_0x34fd80:0x6a,_0x2004dd:0x88,_0x7c4d51:0x9a,_0x20bd88:0x1c6,_0xadfa74:0x212,_0x1deea5:0x11f,_0x289b1e:0xc6,_0x39b2ec:0x1d,_0x261eef:0xee,_0x65f156:0xb3,_0x3cf11d:0xf4,_0x20df55:0xd1,_0x486622:0xd7,_0x3f962e:0x7b,_0x4ddf3a:0xc3,_0x131e3e:0x58,_0x17d8b0:0x16,_0xc9f589:0x1db,_0x144bd9:0xdc,_0x15b671:0x2f8,_0x2e564a:0x11a,_0x5a00ff:0xba,_0x2960c9:0xb2,_0x103f62:0x10e,_0x4edfa3:0x144,_0xb8c4c5:0x2a9,_0x3eec58:0x303,_0x235b65:0x15,_0x5dc6df:0x1c,_0x2da825:0xff,_0x36d04f:0x1a6,_0x37d1d6:0x94,_0x17a9fc:0x21,_0x209356:0x6,_0x31f0d0:0x63,_0x3cec9c:0x20,_0x576db3:0xa2,_0x1169a1:0x10,_0x59af95:0x7a,_0x3dd290:0x4,_0x273993:0x16b},_0x224c06={_0x2c8ff9:0x11f},_0x256e44={_0x216389:0x48,_0x28ceaf:0xa9},_0x1812b1={_0xc28487:0x283},_0x43d3f3={_0x457a89:0x4bf},_0x4cfee2=_0x54a5cf[_0x33031a(_0x27dbda._0x223dc9,-_0x27dbda._0x53bcf3,-0x20b,-_0x27dbda._0x16da9d)]??'WebFetch',_0x81fcb4=_0x54a5cf[_0x33031a(0x17d,-_0x27dbda._0x4b8d0b,_0x27dbda._0x371ea5,0xb2)]??DEFAULT_TIMEOUT_MS2;function _0x8b03a6(_0x4d9d61,_0x581854,_0x317b6d,_0x5baa7a){return _0x29b8eb(_0x4d9d61-0x77,_0x317b6d- -_0x43d3f3._0x457a89,_0x317b6d-0x7,_0x4d9d61);}function _0x33031a(_0x1580dc,_0x4dc8a8,_0x63ae90,_0x19a944){return _0x5a3b3d(_0x4dc8a8,_0x4dc8a8-0x11b,_0x19a944- -_0x1812b1._0xc28487,_0x19a944-0x18);}const _0x415d14=new _0x25731e({'headingStyle':'atx','codeBlockStyle':'fenced','bulletListMarker':'-'});return _0x415d14[_0x8b03a6(0xc,_0x27dbda._0x41fc86,-_0x27dbda._0x27203c,-_0x27dbda._0x417096)]([_0x8b03a6(_0x27dbda._0xe7b7e,0xb0,0x15f,_0x27dbda._0x34027f),_0x33031a(0x1c0,0x2a6,0x37,_0x27dbda._0x4b77e7),_0x33031a(_0x27dbda._0x541660,_0x27dbda._0x354921,-_0x27dbda._0x3eaf03,-_0x27dbda._0x28b941),_0x33031a(-0x45,0xad,-_0x27dbda._0x1417a2,-0x13),_0x33031a(_0x27dbda._0x2fc98c,_0x27dbda._0x3e3e42,-_0x27dbda._0x255564,_0x27dbda._0x5d10e9),_0x8b03a6(0x23f,_0x27dbda._0x2176de,_0x27dbda._0x80e28f,_0x27dbda._0x10d46f),_0x8b03a6(-0x8b,-_0x27dbda._0x3d2716,-0x34,-0x16f),_0x33031a(0x1cf,_0x27dbda._0x4bdf10,_0x27dbda._0x26e93a,0x134)]),defineTool({'name':_0x4cfee2,'description':_0x33031a(-_0x27dbda._0x1e0b25,-0x11d,-_0x27dbda._0x167f3b,-0x114),'inputSchema':{'type':'object','properties':{'description':{'type':_0x33031a(_0x27dbda._0x440cb4,_0x27dbda._0xae0ed8,_0x27dbda._0x39da09,_0x27dbda._0x24d11e)},'url':{'type':'string'}},'required':[_0x8b03a6(-0x26,_0x27dbda._0x261c01,-_0x27dbda._0x48130a,0x11a)]},async *'execute'(_0x3ce839,_0x2fc9f7){const _0x5d47ab=assertFetchableUrl(_0x3ce839[_0x2cf917(0x95,0x85,0x1b1,_0x45b243._0x228be5)])[_0x30080b(-_0x45b243._0x27b30a,-0xe5,-0x158,0x42)]();if(_0x2fc9f7[_0x2cf917(0x105,0x26,_0x45b243._0x11c9f8,_0x45b243._0x49c5ee)][_0x30080b(-0xe3,-_0x45b243._0x23a81a,-_0x45b243._0x4fba00,0xb9)])throw new ToolExecutionError('Fetch\x20aborted\x20by\x20user',{'url':_0x5d47ab});const _0x3147c4=createTimeoutSignal(_0x2fc9f7[_0x30080b(-0xe9,_0x45b243._0x48fa63,0x2d,-_0x45b243._0x9f837b)],_0x81fcb4);let _0x4e0fa1='';function _0x2cf917(_0x15e2b0,_0x2670a8,_0x2fc05b,_0x281093){return _0x8b03a6(_0x2670a8,_0x2670a8-_0x256e44._0x216389,_0x15e2b0-_0x256e44._0x28ceaf,_0x281093-0xae);}let _0x5d1344=0x0,_0x101695;try{const _0x236154=await fetch(_0x5d47ab,{'headers':{'User-Agent':USER_AGENT},'signal':_0x3147c4[_0x2cf917(0x105,0xc2,0x216,_0x45b243._0x41c755)]});if(!_0x236154['ok'])throw new ToolExecutionError(_0x30080b(-_0x45b243._0x2795b2,-0xf1,0x57,-_0x45b243._0x34fd80)+_0x236154[_0x2cf917(_0x45b243._0x2004dd,-_0x45b243._0x7c4d51,0x7d,_0x45b243._0x20bd88)]+'\x20'+_0x236154[_0x2cf917(_0x45b243._0xadfa74,0x120,_0x45b243._0x1deea5,_0x45b243._0x289b1e)],{'url':_0x5d47ab,'statusCode':_0x236154['status']});_0x4e0fa1=_0x236154[_0x2cf917(_0x45b243._0x39b2ec,_0x45b243._0x261eef,-_0x45b243._0x65f156,0x41)]['get'](_0x2cf917(-0x14,-_0x45b243._0x3cf11d,-0xb9,_0x45b243._0x20df55))??'',_0x5d1344=_0x236154['status'],_0x101695=await _0x236154[_0x30080b(_0x45b243._0x486622,0xf7,_0x45b243._0x3f962e,_0x45b243._0x4ddf3a)]();}catch(_0x5598b9){if(_0x5598b9 instanceof ToolExecutionError)throw _0x5598b9;const _0x2101df=_0x5598b9 instanceof Error?_0x5598b9[_0x2cf917(_0x45b243._0x131e3e,0xa,_0x45b243._0x17d8b0,-0x83)]:String(_0x5598b9);throw new ToolExecutionError(_0x2101df,{'url':_0x5d47ab});}finally{_0x3147c4[_0x2cf917(_0x45b243._0xc9f589,0xf9,_0x45b243._0x144bd9,_0x45b243._0x15b671)]();}const _0x1c7e9c=new Date()[_0x30080b(0x20e,0x137,0x1b8,0xbb)]();let _0x4fb127;function _0x30080b(_0x5730af,_0x2f1766,_0x1cf92d,_0x550f58){return _0x8b03a6(_0x550f58,_0x2f1766-_0x224c06._0x2c8ff9,_0x2f1766- -0x43,_0x550f58-0x199);}let _0x42645c;if(_0x4e0fa1[_0x30080b(_0x45b243._0x2e564a,_0x45b243._0x5a00ff,0x30,0x1fc)](_0x30080b(-_0x45b243._0x2960c9,-_0x45b243._0x103f62,-_0x45b243._0x4edfa3,0x1d)))_0x4fb127=_0x2cf917(0x200,_0x45b243._0xb8c4c5,_0x45b243._0x3eec58,0x263)+_0x101695+_0x2cf917(_0x45b243._0x235b65,-0xd8,-0x12c,0x12),_0x42645c=_0x30080b(0xd3,-_0x45b243._0x5dc6df,0x9d,-_0x45b243._0x2da825);else _0x4e0fa1[_0x2cf917(_0x45b243._0x36d04f,0x221,0x7c,_0x45b243._0x37d1d6)](_0x2cf917(_0x45b243._0x17a9fc,_0x45b243._0x209356,-0x10b,_0x45b243._0x31f0d0))?(_0x4fb127=_0x415d14[_0x2cf917(-_0x45b243._0x3cec9c,_0x45b243._0x576db3,-0xcd,-0x7e)](_0x101695),_0x42645c=_0x2cf917(0x104,0x1,_0x45b243._0x1169a1,-_0x45b243._0x5dc6df)):(_0x4fb127=_0x101695,_0x42645c=_0x30080b(_0x45b243._0x59af95,0xf7,0xa5,0x1d2));return yield createToolOutput(_0x4fb127,{'url':_0x5d47ab,'contentType':_0x4e0fa1,'statusCode':_0x5d1344,'format':_0x42645c,'size':_0x101695[_0x2cf917(0xac,_0x45b243._0x3dd290,0x176,_0x45b243._0x273993)],'fetchedAt':_0x1c7e9c}),void 0x0;}});}function _0x2bb3(){const _0x45ead6=['yxv0BW','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','ntC5nJuZmMjezwPvEa','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','CMvZB2X2zq','DgfZA2TPBgW','phn5C3rLBs1Yzw1PBMrLCJ4','Bg9HzfnRAwXS','BNvTyMvY','CMvJB3jK','ANnVBG','AwzYyw1L','Aw1Hz2uVD2vICa','ywDLBNrZ','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','z2XVyG','igzYB20G','lMPZB25J','Aw1WBgvTzw50yxrPB24','Dg9VBa','r2XVyG','ls1WCMvMAxG','D2HLCMuGCMC','lNbUzW','y29UC3rYDwn0B3i','C2v0','vg9KB1DYAxrL','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','sw52ywXPzcbvuKWGCgfYyw1LDgvY','CgfZC3DVCMq','ChjLCgfYzunHBgXiAwvYyxjJAhK','rMLSzsb3CML0DgvUigf0ia','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','BwnFy2LK','igj5DgvZicH0B3rHBdOG','wZ0+nY04kcLD','B25Jzq','vMLLD2vKigLTywDLigzPBgu6ia','tM8GBg9JyxrPB25ZigzVDw5K','CMLWz3jLCa','C3rHCNrZv2L0Aa','ls1ZDgrPBW','sw5MB3jTyxrPB24','Aw5JBhvKzq','CMLWz3jLCcbMywLSzwq6ia','C3vKBW','yxv0Aa','BM90Awz5','Bwf0y2HLCW','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','BwnWxW','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','uhjVz3jHBuzPBgvZ','CgfJA2fNzs5QC29U','AwDUB3jLt3v0Chv0','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','zMLSDgvY','Dg90ywW','y291BNq','DgvZDa','AxnbyNnVBhv0zq','zgLZy292zxj5u3rHDgu','BwfYA2rVD24','C2LNBMfS','BxvSDgLtzwXLy3q','yMLVBwu','w1bFxL1BxhnCu10QpW','zw50CMLLCW','tNv2Aw4','y2XPzw50','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','Dg9Rzw5Z','C2TPBgXZ','yxbPs2v5','zMLUywXnzxnZywDL','y29UDgvUDa','zgLZCg9Zzq','uxvLC3rPB24G','ls1JB2X1Bw4','BwvTB3j5','ywXS','BgfIzwW','AhrTBfnUAxbWzxq','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','C2vUze5VDgLMAwnHDgLVBG','BM9Uzq','Ag9TzwrPCG','zw52','BxrPBwvnCW','C2vHCMnOrgvWDgG','BhnW','vw5HDxrOB3jPEMvKrxjYB3i','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','Bw9Kzq','C3bHD25PBMC','AxnjBNrLz2vY','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','tuLnrtOG','D2LUmZi','BMf2','C2vHCMnOugfYyw1Z','AwDUB3jL','zgLYzwn0B3j5','B25LCNjVCG','B3jPz2LUvg9VBenHBgXjza','C2vYDMvY','tg9HzfnRAwXS','DhnZzxj2zxiUANm','lMn0CW','B2zM','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','CMvSyxrPDMu','BgLUzuvUza','BNvT','C2nVCgvZ','Ag9ZDa','yxjYyxK','z2L0qNjHBMnO','C2HHmJu2','Cgf0DgvYBIbPCYbYzxf1AxjLza','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','ChjVy2vZCW','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','y29UDgv4DeXPBMS','zgvSAw1PDgvY','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','y2XPzw50sw5MB3jTyxrPB24','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','Ahr0Ca','ywXSu2v0DgXLza','Bg9JyxrPB24','B3v0Chv0','vg9WAwmGC2v0ihrVici','tM8GzgLHz25VC3rPy3m','AhLKCMf0zu1LDge','BgLUzvn0yxj0','C3rHDgu','Dg9Rzw5tDg9YywDLs2v5','ue9tva','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','y2XPzw50CW','DxjP','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','ywrK','z29Vz2XLq3nLq3G','lM10CW','Dg9KB3m','B3bLBMfPlxjLC3bVBNnLCY13CW','DhvWBgu','C3LTBgLUAW','C2v2zxjPDhK','y29UDgv4Da','Aw52ywXPzf90B2rVx3n0yxr1CW','CMvZDwX0CW','Bg9HzenVBw1HBMq','Ahr0CdO','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','zg9JDw1LBNrtEw1IB2W','Cg9W','z29Vz2XLlwnZzq','DxrTx3rLCM0','BgfUz3vHz2u','D3jPDgu','AgLNAa','yMLVBwuUANnVBG','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','ChvIBgLZAgvKqxq','B2jQzwn0','BgfUz18','lMPWzwC','CgfJA2fNzu5HBwu','zgf0yq','DhjHBNnMB3jTCW','AxnbCNjHEq','tM8GCMvZDwX0CYbMB3vUzc4','CxvLC3rPB24','xg5DkJ8','yNL0zuXLBMD0Aa','y2XPzw50twv0ywrHDgfvCMW','CMCUzxHL','zxH0BMfTzq','DxbKyxrLvg9WAwm','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','DxrTx2nVBNrLBNq','lMPWzW','BgLI','AMf2yxnJCMLWDa','qMfZzsbKAxjLy3rVCNK6ia','qxnRvxnLCLrVB2W','Aw5PDgLHBgL6zwq','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','lNrZEa','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','v2vIu2vHCMnO','DhjHBNnWB3j0','yxjNCW','yMfZzty0','Dgv4DerVy3vTzw50l2rPzenSB3nL','CMvNAw9U','A2v5yMLUzgLUz3m','lMPZEa','l3vZCI9IAw4VCMC','C2vYDMvYCW','C2H1DgrVD25tDgfYDgvK','DgLTzw91De1Z','zw5NAw5LCW','Aw5ZDgfSBa','zMLSztOVlW','CgfNzw1HCa','CgfYC2u','uefusa','ugfJA2fNzxm','Aw50zwDLCG','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','Dg9vChbLCKnHC2u','AxngAw5PDgu','qgjPB21LANmVyMLVBwu','y29Kzq','zgvMyxvSDfrPBwvVDxrnCW','C2H1DgrVD24','Aw5JBhvKzxm','lNDLyNa','C3bHD24','CNvUBMLUzW','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Dg9VBhm','qMfZAa','te9x','DxnLCM5HBwu','ywjVCNq','rxjYB3i','ANnVBMm','lu5Vtg9NBW','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','DxbKyxrL','zgv0ywLS','yNjVA2vU','ywrKrxzLBNrmAxn0zw5LCG','y3DK','ihDHCYbHyM9YDgvKlG','Aw52ywXPzf90B2rVx2LK','BgLZDfrVB2XZ','AhjLzG','zMLSzvzLCNnPB25Z','lNrTCc4','oIbPBNzHBgLKihn0yxr1CW','B2zMC2v0','lMPZ','zgvZy3jPChrPB24','DgHPBMTPBMC','zM9VDgvY','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','Dg9Rzw4','Cgf0Aa','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','u3rVCcbYzwfKAw5Nigf0ihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','D2vI','C2HPzNq','lMnQCW','lMDPzG','AgfUzgXL','Aw5qCM9NCMvZCW','C3rYAw5N','BxrPBwu','C3rYAw5NAwz5','y29UzMLN','C2v0vg9KB3m','mZK3ndy2me9mBuHhsG','AxndB250zxH0','ChjLzML4','uhvIBgLZAgvKoIa','tgLUzsa','y2XLyw51Ca','vMLLD0zPBgu','CMvXDwvZDa','A2v5CW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','yxnRvxnLCG','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','y29KzvzLCMLMAwvY','Dgv4Da','BhnWu2vYDMLJzq','qMvHCMvYia','ls1NBg9IpseUz2L0lYO','tM8GAg92zxiGAw5MB3jTyxrPB24','y2HHCMfJDgvY','zgvUBY5QC29U','yxr0CG','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','yM9VBgvHBG','Ag92zxi','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','CxvLC3rPB25Z','DMfSDwu','DgL0Bgu','z29uB0rLzMLUAxrPB24','zxjYB3i','z2nSAwq','ls1NBg9Ipq','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','C3bSAxq','B2XSyw1H','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','zMLSzq','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','CgXHAw50zxH0','ugf0AcbUB3qGzM91BMq6ia','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','AMf2yxnJCMLWDhjLywn0','ygbGANnVBGO','EwvZ','lcbpChrPB24G','y2vPBa','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','B2XKvgv4Da','nZi3mdq1ogzzvuL3ra','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','C2nYAxb0','seLhsa','BgLNAhq','Aw5KzxHpzG','Dw5RBM93BG','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','Dg9mB3DLCKnHC2u','DxrMoa','zgLHz25VC3rPy3m','B3bLCMf0Aw9U','C3rHDhvZvgv4Da','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','CMvWBgfJzq','C2vUza','yNvUlMXVy2TI','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','yxnPzgu','ig1HDgnO','CMfUzg9T','Aw1Hz2vZ','twLJCM9ZB2z0','B3v0z29PBMDdywXSCW','Aw1Hz2uVz2LM','B2f1DgG','ywDLBNrjza','AgfZq2XPzw50CW','Dg9VBenHBgXjza','Dg9ju09tDhjPBMC','BgLZDgvU','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','y2fSBeLK','DhnJ','Dg9KB3ncEvnLC3nPB24','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','lMXVzW','B3bLBG','yMfZAwm','yMfZzw5HBwu','mZm3mZG5nKrrsfjTta','zxjYB3jnzxnZywDL','CM9VDa','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','BwnFzwLK','CMvMCMvZAf90B2TLBG','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','BwfW','yw5ZAte2','C2vZC2LVBKLK','zgvMyxvSDa','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','Dg9VBfjLC3vSDhm','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','zw5K','vw5RBM93BIb0B29SoIa','Dhj1BMm','y29TBwfUza','A2LSBgvK','Cgf0Ag5HBwu','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CgfZC3rOCM91z2G','rMLSzuvKAxq','yxv0Ag9YAxPHDgLVBL9JB2rL','Aw5FChjVz3jLC3m','C3r5Bgu','uhjVz3jHBuzPBgvZkhG4nIK','q29TBwfUzcaN','zw5NAw5L','Aw5WDxrty2HLBwe','CgfJA2fNzxm','BgLUAW','Bg93','mtC2ody4nZjoA0TnCvK','zNvSzMLSBgvK','zhvWBgLJyxrLx3rVzg9FAwrZ','u2L6ztOG','y2HHBMDL','yxjNDw1LBNroyw1LCW','yxnZAwDU','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','y29TCgXLDgvK','ru5pru5u','Aw1Hz2uVANbLzW','zMjJBgLK','zgvMyxvSDen3za','A2LUza','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','r3jLCa','ls1YzwDLEha','tM8GC3LTyM9SCYbMB3vUza','zNvUy3rPB24','CNnZ','Aw5WDxq','zMXHDe1HCa','y29UBMvJDgvK','C3rVCMfNzurPCG','AxntEw1IB2XPy0XPBMS','yxjNDw1LBNrZvgv4Da','w01duca','y2fSBgjHy2TvCMW','B2C6DxbKyxrLzf90Aw1L','zgLZy292zxj5','CxvLCNK','ChjVCgvYDgLLCW','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','Ec1HCgKTA2v5','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','C2vSzwn0Aw9UuMfUz2u','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','CgLWzq','zgLYBMfTzq','y2fWywjPBgL0AwvZ','Aw1Hz2u','ChjPB3jPDhK','CMvHC29U','zMfPBgvK','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','xsb0CMfUC3bVCNqGzxjYB3i6','cGPbuKDvtuvovfm6ia','C2vYDMvYswq','B3b0Aw9UCW','BMfTzq','yxbWBgLJyxrPB24VANnVBG','Dg9VBhmVy2fSBa','DhvYBMrVD24','CMvTB3zL','C3jJl2v4yw1WBgvZl2rLBw8UDhm','te9dquXbufbeqvrb','zw5HyMXLza','rMLSzvjLywq','z2v0u3rHDhm','AgfZ','B3bLBMfPlxjLC3bVBNnLCW','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','CMvZDwX0','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','y29UDgvUDc10ExbL','z29Vz2XLq3nLs2v5','l29WDc9OB21LyNjLDY9IAw4VCMC','yxjNDw1LBNriAw50','C3vIyxjYyxK','zgvUBY5QC29UyW','ls0T','zxHPDa','zw51Bq','zgf0zvjLC3rYAwn0','tM8GC3vJAcbMAwXLoIaN','z2v0vg9KB3m','zxHPDcbJB2rLia','Dg9VBc1VDxrWDxqTB2zMBg9Hza','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','sfruuca','BgLTAxq','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','y2XVC2u','igj5DgvZks4','CgLK','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','v2LUr2v0','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','AxnfCNjVCG','BgLUzq','Dg9tDhjPBMC','CMvMzxjLBMnLCW','AxngAwXL','l3vZCI9IAw4VC2G','B25oB3rPzMLJyxrPB24','CMvJzw5JEurHExm','CgXHDgzVCM0','ie9sia','CMfUAW','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','rM91BMqG','C3rKB3v0','zNjVBq','Aw52ywXPzf90B2rVx2nVBNrLBNq','cMbGya','qxv0Ag9YAxPHDgLVBG','qwDLBNqGCNvUia','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','DgHLBG','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','Dg9WAwm','CgvUzgLUzW','AgvHzgvYCW','zxH0zw5ZAw9UCW','C2vYDMvYtMfTzq','ignVBxbSzxrLzc4','Dgv4Dc9ODg1S','zgvMAw5PDgLVBG','ywXSB3DLzerPCNm','Bwv0yxrHz3m','yxnJAwK','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','CNvUswq','yxjNDw1LBNrZ','rgLHz25VC3rPyW','B3jPz2LUywW','zgf0zxrPBwu','DMvYAwzPzxi','C2L6zq','ig1Z','C25PChbLDa','l2jPBI9YzW','zMLUzfjLzMvYzw5Jzxm','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','DhjPBq','Dgf2AwX5','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','y29UBMvJDa','zMLYC3q','EwfYBI5SB2nR','Dw5PB24','yw5ZD2vYCW','B25szwrPCMvJDa','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','D29YA3nWywnLu3LTyM9S','AM9PBG','DxrTx3nVDxjJzq','C3rKAw8','vw50AxrSzwq','Bw9KzwW','lunVBw1HBMq','A2LSBa','C2vHCMnOvhLWzq','r0LgodLH','ChjVDg9JB2W','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','y3jLyxrLzef0','Aw5ZDhj1y3rPB25Z','t0zg','pc9ZExn0zw0TCMvTAw5Kzxi+','BgfUzW','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','CgfYC2vjBNq','yMvHCMvY','C3rHCNq','y2XPzw50x3nLy3jLDf9WB3n0','y2XLyxi','Dgf2AwX5qxbPs2v5','ugf0AcbPCYbUB3qGysbMAwXLoIa','AxrLBxm','DhLWzq','BwvZC2fNzq','igzHAwXLzc4','Cgf0DgvYBG','oIbJB250zw50ihjLCxvPCMvK','yM0Ynq','BwLU','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','C2fMzq','mc4WlJa','DhLWzxnJCMLWDa','o1TExg5DkJ8','zgfYAW','lNrZ','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','BgLUzvrLEhq','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','BgL0zxjHBa','ienHDxnLoIa','vg9KBYa','BM93','ls1MAwXLCW','y29TBwfUzhm','C2vUzfjLCxvLC3q','CMvTB3zLrxzLBNrmAxn0zw5LCG','l2jPBI9IyxnO','l3vZCI9SB2nHBc9IAw4VCMC','CgfYzw50u2vZC2LVBKLK','zMLUza','zhj5uNvU','AgvHzgvY','C3jJl2fNzw50l2fNzw50lNrZ','Dg91y2HgAwXL','Aw5PDgLHBgL6zq','lMPZB24','BM9Kzv9TB2r1BgvZ','Aw5JB21PBMDdywXSCW','y29UDgvUDhm','ksbB','ywjVCNrLza','ywXSB3DLzfrVB2XZ','AxneAxjLy3rVCNK','zxjYB3jZ','lM51DMLU','Cg5WBs1SB2nRlNLHBwW','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','mtm3ntK0ouTJv0P0rq','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','C3rHDhvZ','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','tunqihnLCNzLCIa','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','zgvSzxrL','C3rKAw4','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','C29Tzq','z2v0','Dhj1zq','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','DxjS','y2f0y2G','zMLSzvbHDgG','yMLYDgH0Aw1L','m21evwXIra','CM91BMq','BM9Zy3jPChq','Bwf4','lMjPBG','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','sgLUDa','y29ZDa','Bwv0yq','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','C2XPy2u','l2jPBI9ZAa','BMv3vgv4Da','mteZnJe1nwnbtMn3vq','CgfJA2fNzs1SB2nRlMPZB24','B3bLBKzPBgvZ','C3rKzxjY','B3rOzxi','lu5VuhjVzMLSzq','BgvUz3rO','B3b0Aw9UywW','C291CMnL','zgLZywjSzwq','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','zMXVB3i','tuvesvvn','ChvZAa','Aw52ywXPzf90B2rVx2L0zw0','yw50AhjVCgLJlw1LC3nHz2vZ','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','oIbPzcbYzxf1AxjLza','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','yw5ZAti1nG','v2fYBMLUzW','l3bPza','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','Dgv4DerVy3vTzw50l2HVDMvY','CMfUz2u','u0Lhs0Lmta','ls1MB2XSB3C','Aw1Hz2uVCg5N','y2HHCKnVzgvbDa','DxrTx2nHBxbHAwDU','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','zg9TywLUCW'];_0x2bb3=function(){return _0x45ead6;};return _0x2bb3();}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(_0x1af3fb){const _0x4b6e35={_0x44b9b5:0x572,_0x5957b1:0x4e0,_0x173126:0x619,_0x3770d0:0x5c1,_0x5df6f8:0x4ec,_0x2ef095:0x617,_0x2a88d7:0x6d3,_0x503b64:0x6a3,_0x2458dc:0x5fe,_0x1b8fe2:0x59f,_0x2c1254:0xe,_0x4ab04b:0x2b,_0x3d099c:0x596,_0x1a3c7e:0x6cc,_0xd26c21:0x484,_0x3922b2:0x8a,_0xe04e0c:0x59a,_0x59f663:0x539,_0x16b3f6:0x269,_0x13a61a:0x11a},_0x4d9882={_0x55c694:0x10e},_0x33173c={_0x25e1ad:0x18e,_0x27100d:0xcf};function _0x217109(_0x491acc,_0x2904b8,_0x3aa273,_0x3170a9){return _0x29b8eb(_0x491acc-_0x33173c._0x25e1ad,_0x3aa273- -0x66f,_0x3aa273-_0x33173c._0x27100d,_0x491acc);}function _0x111e6c(_0x4d7da2,_0xc7ccad,_0x2d2006,_0x23bdcc){return _0x29b8eb(_0x4d7da2-0xa0,_0x4d7da2-0x99,_0x2d2006-_0x4d9882._0x55c694,_0x2d2006);}try{const _0x53303c=new URL(_0x1af3fb);for(const _0x46ff0e of[_0x111e6c(0x4ee,0x4ad,0x3bb,0x5b7),'utm_medium',_0x111e6c(_0x4b6e35._0x44b9b5,0x661,0x48f,_0x4b6e35._0x5957b1),_0x111e6c(_0x4b6e35._0x173126,_0x4b6e35._0x3770d0,_0x4b6e35._0x5df6f8,_0x4b6e35._0x2ef095),_0x111e6c(0x630,_0x4b6e35._0x2a88d7,0x77c,0x5ed),_0x111e6c(_0x4b6e35._0x503b64,0x6a6,_0x4b6e35._0x2458dc,_0x4b6e35._0x1b8fe2),_0x217109(_0x4b6e35._0x2c1254,0x27,0x2,_0x4b6e35._0x4ab04b),_0x111e6c(_0x4b6e35._0x3d099c,_0x4b6e35._0x1a3c7e,_0x4b6e35._0xd26c21,0x6dd),_0x217109(_0x4b6e35._0x3922b2,0x33,-0x27,0x89)]){_0x53303c[_0x111e6c(0x5d9,_0x4b6e35._0xe04e0c,_0x4b6e35._0x59f663,0x519)][_0x217109(-_0x4b6e35._0x16b3f6,-_0x4b6e35._0x13a61a,-0x1cd,-0x1d7)](_0x46ff0e);}return _0x53303c['toString']();}catch{return _0x1af3fb;}}function cseDateRestrict(_0x1c58b0){const _0x1d7105={_0x14d8c4:0x244,_0x4c92b0:0x2b2,_0x32f014:0x196,_0x34c79a:0x1df,_0x5a8d35:0x324,_0x44b532:0x36c,_0x372aac:0x223,_0x55ff07:0x431},_0x598c13={_0x4d259f:0xf0,_0x2ff21f:0x15a};function _0x214735(_0x6f3979,_0x11c8e9,_0x2cf6ca,_0x22e7fb){return _0x5a3b3d(_0x6f3979,_0x11c8e9-0x71,_0x11c8e9- -0x7e,_0x22e7fb-0x10b);}function _0x5fa281(_0x386c99,_0x5b77b3,_0xb4ee68,_0x56b827){return _0x29b8eb(_0x386c99-_0x598c13._0x4d259f,_0x56b827- -0x31c,_0xb4ee68-_0x598c13._0x2ff21f,_0x386c99);}if(_0x1c58b0<=0x0)return void 0x0;if(_0x1c58b0<=0x1e)return'd'+Math[_0x5fa281(0x28f,_0x1d7105._0x14d8c4,_0x1d7105._0x4c92b0,_0x1d7105._0x32f014)](0x1,Math[_0x214735(0x1e5,0x1d2,0x2b7,0xc0)](_0x1c58b0));if(_0x1c58b0<=0x16d)return'm'+Math[_0x214735(_0x1d7105._0x34c79a,_0x1d7105._0x5a8d35,0x1f6,_0x1d7105._0x44b532)](_0x1c58b0/0x1e);return'y'+Math[_0x5fa281(_0x1d7105._0x372aac,_0x1d7105._0x55ff07,0x31c,0x2fd)](_0x1c58b0/0x16d);}function addSiteFilters(_0x4964bb,_0x1dcdbd){const _0x4cc243={_0x2cc7cd:0x248,_0x10f19f:0x14c,_0xdecd5b:0xfb,_0x58364f:0x169,_0x141c4d:0x2ab,_0x1f991c:0x149,_0x31466f:0x2f6,_0x43ca39:0x21f,_0x136a58:0x2b2,_0xc2df56:0x2d2,_0x291610:0x1c5},_0x22a7d9={_0x54206f:0x78},_0x156571={_0x5011a0:0x125,_0x681f72:0x1a0};function _0x236d63(_0x35edc4,_0x530e03,_0x3ccacf,_0x55511d){return _0x5a3b3d(_0x3ccacf,_0x530e03-_0x156571._0x5011a0,_0x530e03- -0x397,_0x55511d-_0x156571._0x681f72);}if(_0x1dcdbd[_0x236d63(-_0x4cc243._0x2cc7cd,-_0x4cc243._0x10f19f,-_0x4cc243._0xdecd5b,-_0x4cc243._0x58364f)]===0x0)return _0x4964bb[_0x4de915(-_0x4cc243._0x141c4d,-0x22a,-0x114,-0x16e)]();function _0x4de915(_0x28d253,_0x357854,_0xe4df04,_0x4200c6){return _0x29b8eb(_0x28d253-0x106,_0x357854- -0x673,_0xe4df04-_0x22a7d9._0x54206f,_0x28d253);}return(_0x4964bb+'\x20('+_0x1dcdbd[_0x4de915(0x29,-0x28,-_0x4cc243._0x1f991c,0xdd)](_0x2d3c24=>'site:'+_0x2d3c24)[_0x4de915(-_0x4cc243._0x31466f,-_0x4cc243._0x43ca39,-0x22a,-0x103)](_0x236d63(-_0x4cc243._0x136a58,-0x1ea,-_0x4cc243._0xc2df56,-0x1e1))+')')[_0x236d63(-0x2a9,-_0x4cc243._0x291610,-0x2c5,-0x24c)]();}function normalizeType(_0x4b4934){const _0x2b8440={_0x13ce3f:0x1e0,_0x105d1c:0x195,_0x55e381:0x1d,_0x370df2:0x19d,_0x1596ee:0x80},_0x570255={_0x2277f3:0x153,_0x436c0e:0x557},_0x3a533b={_0x23520f:0x64c,_0x1f07b9:0x4f};function _0x9098ec(_0x3117be,_0x46a43a,_0x85fccd,_0x2409fe){return _0x29b8eb(_0x3117be-0x1b3,_0x85fccd- -_0x3a533b._0x23520f,_0x85fccd-_0x3a533b._0x1f07b9,_0x3117be);}function _0x2c6ecc(_0x4ebaf8,_0x1fae4d,_0x5af651,_0xfc09fa){return _0x29b8eb(_0x4ebaf8-_0x570255._0x2277f3,_0x5af651- -_0x570255._0x436c0e,_0x5af651-0x1d9,_0x1fae4d);}return _0x4b4934===_0x2c6ecc(0x1f3,0x221,0xda,_0x2b8440._0x13ce3f)?_0x2c6ecc(_0x2b8440._0x105d1c,_0x2b8440._0x55e381,0xda,0xf1):_0x2c6ecc(_0x2b8440._0x370df2,0x19b,0x8a,_0x2b8440._0x1596ee);}async function fetchJson(_0x400fac,_0x478396,_0x31e7cc){const _0xe18d36={_0xe841c8:0x58f,_0x3e7e14:0x553,_0x3e0a79:0x66a,_0x45bd55:0x719,_0x181675:0x6ff,_0xb84bb5:0x700,_0x262f5f:0x6d1,_0x460ffe:0x5ba,_0x1301cd:0x72a,_0x4beddf:0x76,_0x3f15c9:0x17c,_0xb1cb09:0x20e,_0x2c9e07:0x6b5,_0x4e94b7:0x729,_0x154e52:0x670,_0x5407ec:0xcd,_0x277e16:0x31b,_0x3d6d0a:0x23a,_0x8a916b:0xb8,_0x44a10e:0x12,_0x48be64:0xe9,_0x463529:0x75,_0x477a30:0x139,_0x1ac266:0x673,_0x292200:0x531,_0x5a617d:0x5a6,_0x442228:0x5be,_0x1310df:0xff},_0x7078e3={_0x38e512:0x1f4,_0x5450e4:0x8d},_0x10e478={_0x212a2d:0x12b,_0x33e9e5:0x194,_0x58a82e:0x113},_0x454c10=await fetch(_0x400fac,{'headers':{'User-Agent':USER_AGENT2,'Accept':'application/json',..._0x31e7cc?.[_0x507389(0x65a,_0xe18d36._0xe841c8,_0xe18d36._0x3e7e14,0x5cd)]},'signal':_0x478396,..._0x31e7cc});function _0x359438(_0x2fdf0a,_0x138d62,_0x554701,_0x5821a9){return _0x5a3b3d(_0x2fdf0a,_0x138d62-_0x10e478._0x212a2d,_0x554701- -_0x10e478._0x33e9e5,_0x5821a9-_0x10e478._0x58a82e);}if(!_0x454c10['ok']){let _0x1fe43c,_0x238ea0;try{_0x1fe43c=await _0x454c10[_0x507389(0x80c,_0xe18d36._0x3e0a79,_0xe18d36._0x45bd55,_0xe18d36._0x181675)]();const _0x53379c=JSON[_0x507389(_0xe18d36._0xb84bb5,0x809,_0xe18d36._0x262f5f,_0xe18d36._0x460ffe)](_0x1fe43c),_0x4528d1=typeof _0x53379c[_0x507389(0x747,_0xe18d36._0x1301cd,0x6ec,0x63e)]===_0x359438(0x91,_0xe18d36._0x4beddf,_0xe18d36._0x3f15c9,_0xe18d36._0xb1cb09)?_0x53379c['detail'][_0x359438(0x27c,0x28e,0x1fe,0x335)]:void 0x0;_0x238ea0=_0x53379c[_0x507389(_0xe18d36._0x2c9e07,0x728,_0xe18d36._0x4e94b7,_0xe18d36._0x154e52)]?.[_0x359438(_0xe18d36._0x5407ec,-0x45,0x63,0x151)]??_0x53379c[_0x359438(_0xe18d36._0x277e16,_0xe18d36._0x3d6d0a,0x1fe,0x163)]?.[_0x359438(_0xe18d36._0x8a916b,-_0xe18d36._0x44a10e,0x8c,_0xe18d36._0x48be64)]?.[0x0]?.['message']??_0x4528d1;}catch{}const _0xc4d6ef=_0x238ea0?_0x507389(0x55c,0x420,0x531,0x433)+_0x454c10[_0x359438(-_0xe18d36._0x463529,_0xe18d36._0x477a30,0x93,0xcc)]+':\x20'+_0x238ea0:_0x507389(0x644,_0xe18d36._0x1ac266,_0xe18d36._0x292200,_0xe18d36._0x5a617d)+_0x454c10[_0x507389(0x675,0x46d,0x5be,0x661)]+'\x20'+_0x454c10['statusText'];throw new ToolExecutionError(_0xc4d6ef,{'statusCode':_0x454c10[_0x507389(0x648,0x50b,_0xe18d36._0x442228,0x67d)],..._0x1fe43c?{'body':_0x1fe43c}:{}});}function _0x507389(_0x4a1ead,_0x4623fa,_0x385562,_0x385758){return _0x29b8eb(_0x4a1ead-_0x7078e3._0x38e512,_0x385562-0x120,_0x385562-_0x7078e3._0x5450e4,_0x4623fa);}return await _0x454c10[_0x359438(0x1d7,0x76,0xdb,_0xe18d36._0x1310df)]();}async function hydrateResults(_0x2957c9,_0x361130,_0x617f6b){const _0x1a0b9c={_0x2a3dae:0x10c,_0x28e1de:0x1,_0x4534d5:0x62,_0x8800a4:0x48,_0x362720:0x4de,_0x1b7a30:0x275,_0xd6e009:0x254,_0xe8c7c0:0x14a},_0x1f080f={_0x4e15fe:0x58b,_0x24fb38:0x68a,_0x46eb30:0x4dd,_0x435675:0x3d3,_0x52d21c:0x455,_0x3dc455:0x363,_0x2ede29:0x1ab,_0x201da5:0x6e0,_0x552577:0x59e,_0x54a65f:0x795,_0x4a6042:0x63b,_0x270d59:0x175,_0x108647:0x6d9,_0x4f0465:0x62d,_0xae1373:0x4f7,_0x3d36fd:0x4b1,_0xcf932e:0x399,_0x37fa64:0x3c3,_0x1aea07:0x607,_0x3a6d5d:0x6f1,_0x998767:0x6e0,_0x12f71d:0x64c,_0x32a174:0x71a,_0x25304b:0x675,_0x2c3cfb:0x66c,_0x2187e2:0x654,_0x112844:0x4c3,_0x2631a0:0x6e0,_0x318134:0x607,_0x24a06d:0x726,_0x43dbb9:0x49f,_0x9fb7d5:0x42e,_0x478d4a:0x379,_0x3f531d:0x521,_0xe53e8a:0x64f,_0x59407d:0x6b3,_0x458a57:0x7f2,_0xe83c17:0x70c,_0x90cc21:0x4d2,_0x257678:0x40a,_0x310655:0x48b,_0x2fc974:0x65f,_0x2e34fd:0x547,_0x377539:0x574,_0x12a34c:0x615,_0x27ca4a:0x3b8,_0x48952c:0x2c4},_0x54a95e={_0x33d7f5:0x1e8},_0x4b9731={_0x47d2f5:0x149,_0x94bcc6:0x28a};function _0x2df1c9(_0x5b577e,_0xeaa984,_0xefbb44,_0xfb29f0){return _0x5a3b3d(_0xeaa984,_0xeaa984-_0x4b9731._0x47d2f5,_0xfb29f0- -_0x4b9731._0x94bcc6,_0xfb29f0-0x12a);}const _0x39bd98=await Promise[_0x2df1c9(0x1e,0x14c,-_0x1a0b9c._0x2a3dae,0x2b)](_0x2957c9[_0x2df1c9(_0x1a0b9c._0x28e1de,_0x1a0b9c._0x4534d5,0x56,-_0x1a0b9c._0x8800a4)](0x0,0xa)[_0x2df1c9(0x50,0x171,0x13c,0x14a)](async _0x198efe=>{const _0x509e04={_0x2b9b1a:0x3c};function _0xb5fad(_0x5eb4a2,_0x91532,_0x5ed688,_0x5db2c2){return _0x1a7fec(_0x91532- -0x2ee,_0x91532-_0x54a95e._0x33d7f5,_0x5ed688,_0x5db2c2-0x139);}function _0x5abd51(_0x5e171f,_0x692400,_0x45185c,_0x152586){return _0x1a7fec(_0x5e171f- -_0x509e04._0x2b9b1a,_0x692400-0x7d,_0x692400,_0x152586-0x1c0);}try{const _0x159bec=await fetch(_0x198efe[_0x5abd51(_0x1f080f._0x4e15fe,0x622,_0x1f080f._0x24fb38,_0x1f080f._0x46eb30)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x361130,'Accept':_0x5abd51(0x517,_0x1f080f._0x435675,0x58a,_0x1f080f._0x52d21c)},'signal':_0x617f6b});if(!_0x159bec['ok'])return _0x198efe;const _0x2a0d67=await _0x159bec[_0x5abd51(0x6d9,0x744,0x826,0x68e)](),_0x5c7f6f=load(_0x2a0d67),_0x4477ec=_0x5c7f6f(_0xb5fad(0x1c0,0x279,_0x1f080f._0x3dc455,_0x1f080f._0x2ede29))[_0x5abd51(_0x1f080f._0x201da5,0x764,_0x1f080f._0x552577,_0x1f080f._0x54a65f)](_0x5abd51(0x607,0x636,0x6a9,_0x1f080f._0x4a6042))||_0x5c7f6f('title')[_0xb5fad(0x305,0x27b,0x16e,_0x1f080f._0x270d59)]()[_0x5abd51(_0x1f080f._0x108647,_0x1f080f._0x4f0465,0x796,0x6b3)]()[_0x5abd51(0x529,_0x1f080f._0xae1373,_0x1f080f._0x3d36fd,0x4d1)](),_0x397ebe=_0x5c7f6f(_0xb5fad(_0x1f080f._0xcf932e,0x44b,0x43e,0x4f7))[_0xb5fad(_0x1f080f._0x37fa64,0x42e,0x51e,0x4ce)](_0x5abd51(_0x1f080f._0x1aea07,_0x1f080f._0x3a6d5d,0x6de,0x6f0))||_0x5c7f6f('meta[property=\x27og:description\x27]')[_0x5abd51(_0x1f080f._0x998767,_0x1f080f._0x12f71d,0x703,_0x1f080f._0x32a174)](_0x5abd51(0x607,_0x1f080f._0x25304b,_0x1f080f._0x2c3cfb,0x577))||_0x198efe[_0x5abd51(0x525,0x435,_0x1f080f._0x2187e2,_0x1f080f._0x112844)],_0x1c18e4=_0x5c7f6f(_0xb5fad(0x40c,0x47d,0x5c4,0x5b4))[_0x5abd51(_0x1f080f._0x2631a0,0x63a,0x67c,0x7ad)](_0x5abd51(_0x1f080f._0x318134,0x4be,0x624,_0x1f080f._0x24a06d))||_0x5c7f6f('time[datetime]')[_0xb5fad(_0x1f080f._0x43dbb9,_0x1f080f._0x9fb7d5,0x4d4,_0x1f080f._0x478d4a)](_0x5abd51(_0x1f080f._0x3f531d,0x4ef,0x493,_0x1f080f._0xe53e8a))||_0x198efe['publishedAt'],_0x421db7=_0x5c7f6f('link[rel=\x27canonical\x27]')[_0x5abd51(0x6e0,0x622,0x744,0x5c5)](_0x5abd51(_0x1f080f._0x59407d,_0x1f080f._0x458a57,_0x1f080f._0xe83c17,0x7ef));return{..._0x198efe,'title':_0x4477ec||_0x198efe[_0xb5fad(_0x1f080f._0x90cc21,0x435,0x3fa,_0x1f080f._0x257678)],'snippet':_0x397ebe,'url':_0x421db7?normalizeUrl(new URL(_0x421db7,_0x198efe[_0x5abd51(0x58b,0x668,_0x1f080f._0x310655,_0x1f080f._0x2fc974)])[_0x5abd51(0x4fd,_0x1f080f._0x2e34fd,_0x1f080f._0x377539,_0x1f080f._0x12a34c)]()):_0x198efe[_0xb5fad(0x26c,0x2d9,_0x1f080f._0x27ca4a,_0x1f080f._0x48952c)],'publishedAt':_0x1c18e4};}catch{return _0x198efe;}}));function _0x1a7fec(_0x44cf26,_0x542e05,_0x4a3c3d,_0x523833){return _0x29b8eb(_0x44cf26-0x130,_0x44cf26-0x11c,_0x4a3c3d-0x19b,_0x4a3c3d);}const _0x1d0951=new Map(_0x2957c9[_0x1a7fec(0x5d5,0x4fa,0x550,_0x1a0b9c._0x362720)](0x0,0xa)['map']((_0x31e1d5,_0x2eb272)=>[_0x31e1d5[_0x1a7fec(0x5c7,0x53f,0x692,0x62f)],_0x39bd98[_0x2eb272]]));return _0x2957c9[_0x2df1c9(0x1f1,_0x1a0b9c._0x1b7a30,_0x1a0b9c._0xd6e009,_0x1a0b9c._0xe8c7c0)](_0x3824db=>_0x1d0951[_0x2df1c9(0xde,-0xae,-0x71,-0x5b)](_0x3824db[_0x2df1c9(-0x1a6,-0x181,0xd4,-0x56)])??_0x3824db);}function formatResults(_0x34158a){const _0x15b336={_0x24f0c6:0x6d,_0x27935b:0xd3,_0x2e209f:0x147,_0x51b403:0x39,_0x5624c3:0x25c,_0xcf4463:0x316,_0x4a1530:0x2d0,_0x536448:0xd9,_0x38b9a1:0x194},_0x125e8c={_0x14383c:0x330,_0x1f68b1:0x3dc,_0x56a547:0x40c,_0x50b192:0x505,_0x2862ac:0x3a0,_0x2ec096:0x300,_0x343bbf:0x3a9,_0xc24f34:0x45d,_0x3c3b0b:0x3fc,_0x560260:0x44c,_0x587805:0x3c7,_0x2a27e9:0x439,_0x3053e4:0x214,_0x116b82:0x343,_0x22df48:0x4a6,_0x37ab14:0x4b4,_0x1b8365:0x443,_0x542312:0x4d2,_0x50cfff:0x392,_0x2738be:0x484},_0x2ce61b={_0x3dfc30:0x198,_0x27bebd:0x13f,_0x581e28:0x182},_0x89a640={_0x556dfb:0x16c,_0x22ccfe:0x104},_0x46864d={_0x285699:0x103};function _0x38118(_0x271d60,_0x3ba1a3,_0x591385,_0x417752){return _0x5a3b3d(_0x591385,_0x3ba1a3-0x12b,_0x271d60- -0x23,_0x417752-_0x46864d._0x285699);}if(_0x34158a[_0x5858c6(_0x15b336._0x24f0c6,_0x15b336._0x27935b,_0x15b336._0x2e209f,_0x15b336._0x51b403)]===0x0)return _0x38118(0x2f4,0x26c,0x39b,0x1a3);function _0x5858c6(_0x22b4f1,_0x431e4d,_0x478f02,_0x2b1b90){return _0x5a3b3d(_0x2b1b90,_0x431e4d-_0x89a640._0x556dfb,_0x478f02- -_0x89a640._0x22ccfe,_0x2b1b90-0x1ef);}return _0x34158a[_0x5858c6(_0x15b336._0x5624c3,_0x15b336._0xcf4463,_0x15b336._0x4a1530,0x395)](_0x529483=>{const _0xc474b7={_0x55d65e:0x161,_0x3e9264:0x7c};function _0x16981f(_0x480914,_0x672d4d,_0xf8ddbd,_0x49120e){return _0x5858c6(_0x480914-_0xc474b7._0x55d65e,_0x672d4d-_0xc474b7._0x3e9264,_0x49120e-0x25e,_0x672d4d);}function _0x3571c5(_0xbe90ba,_0x123464,_0x4773a9,_0x4b1697){return _0x38118(_0x4b1697-_0x2ce61b._0x3dfc30,_0x123464-_0x2ce61b._0x27bebd,_0xbe90ba,_0x4b1697-_0x2ce61b._0x581e28);}const _0x1d4d36=[_0x529483['source'][_0x16981f(0x31a,0x1bf,_0x125e8c._0x14383c,0x308)]+'.\x20'+_0x529483[_0x3571c5(0x527,_0x125e8c._0x1f68b1,_0x125e8c._0x56a547,_0x125e8c._0x50b192)],_0x529483[_0x3571c5(0x404,_0x125e8c._0x2862ac,_0x125e8c._0x2ec096,_0x125e8c._0x343bbf)]];if(_0x529483[_0x3571c5(_0x125e8c._0xc24f34,_0x125e8c._0x3c3b0b,0x316,0x343)])_0x1d4d36[_0x3571c5(0x331,0x473,_0x125e8c._0x560260,_0x125e8c._0x587805)](_0x529483[_0x3571c5(0x3d9,_0x125e8c._0x2a27e9,_0x125e8c._0x3053e4,_0x125e8c._0x116b82)]);if(_0x529483[_0x16981f(0x5a5,0x4d8,0x525,0x469)])_0x1d4d36[_0x3571c5(_0x125e8c._0x22df48,0x303,_0x125e8c._0x37ab14,0x3c7)](_0x16981f(0x46e,_0x125e8c._0x1b8365,0x3d9,_0x125e8c._0x542312)+_0x529483[_0x3571c5(0x3af,0x34d,_0x125e8c._0x50cfff,_0x125e8c._0x2738be)]);return _0x1d4d36['join']('\x0a');})[_0x5858c6(0x4f,0x1b6,_0x15b336._0x536448,_0x15b336._0x38b9a1)]('\x0a\x0a');}async function searchOllama(_0x2f0f7a,_0x17cb59,_0x3ea614){const _0x960bdc={_0xb49f24:0x4f6,_0x560961:0x3e8,_0x1a8673:0x13a,_0x4a8d87:0x87,_0x165774:0x1b8,_0x519491:0x523,_0x3c6e00:0x511,_0x4e616e:0x3dc,_0x74fce9:0x21a,_0x28a5eb:0x33f,_0x220d7a:0x67e,_0x29f7cd:0x5f8,_0x137b19:0x65e,_0x6e3dc1:0x5a8,_0x49d5ee:0x586,_0x18b6b9:0x500,_0x562be2:0x5da,_0x24569c:0x53c,_0x2ce86e:0x563,_0x3c64b7:0x765,_0x5d8601:0x592,_0x1e60ca:0x562},_0x37a3d4={_0x4ec92a:0x259,_0x8e9365:0x29d,_0x8d6ff5:0x2c1,_0x3ca3f4:0x412,_0xc07ee:0x431,_0x1fe95b:0x4a4,_0x1630f7:0x4cd},_0xad8852={_0x53b80e:0x42},_0x589977={_0x343e41:0x16c,_0x32d237:0x132},_0x33102c={_0x257592:0x17a,_0x124acb:0x4f},_0x438165={_0x5329c6:0x1bf,_0x22f70a:0x83};function _0x16c9b9(_0x25c6a5,_0x45b467,_0x43fe6b,_0x33d19f){return _0x29b8eb(_0x25c6a5-_0x438165._0x5329c6,_0x45b467-_0x438165._0x22f70a,_0x43fe6b-0x97,_0x25c6a5);}const _0x3ec389=Math['max'](0x1,Math[_0x16c9b9(0x521,_0x960bdc._0xb49f24,0x442,_0x960bdc._0x560961)](0xa,_0x17cb59['count'])),_0x56b358=addSiteFilters(_0x17cb59[_0x32fd1e(0x234,_0x960bdc._0x1a8673,_0x960bdc._0x4a8d87,_0x960bdc._0x165774)],_0x17cb59['domains']),_0x3bf079=await fetchJson(_0x32fd1e(_0x960bdc._0x519491,0x402,_0x960bdc._0x3c6e00,_0x960bdc._0x4e616e),_0x3ea614,{'method':_0x32fd1e(0x485,0x2c5,_0x960bdc._0x74fce9,_0x960bdc._0x28a5eb),'headers':{'Authorization':_0x16c9b9(0x604,_0x960bdc._0x220d7a,0x5f5,_0x960bdc._0x29f7cd)+_0x2f0f7a[_0x16c9b9(_0x960bdc._0x137b19,_0x960bdc._0x6e3dc1,_0x960bdc._0x49d5ee,0x5ec)]},'body':JSON['stringify']({'query':_0x56b358,'max_results':_0x3ec389})}),_0x545c35=_0x3bf079[_0x16c9b9(_0x960bdc._0x18b6b9,0x5fc,0x506,0x734)]??[];function _0x32fd1e(_0x52be66,_0xb54e4e,_0x4c2179,_0x4b8df5){return _0x5a3b3d(_0x4c2179,_0xb54e4e-_0x33102c._0x257592,_0x4b8df5-_0x33102c._0x124acb,_0x4b8df5-0x25);}const _0x13aa82=_0x545c35[_0x16c9b9(_0x960bdc._0x562be2,0x6ce,0x64b,0x596)]((_0x5854e3,_0x5c8ae9)=>{const _0x30b5ca=_0x5854e3['url']||'';let _0x5b1b75;try{_0x5b1b75=new URL(_0x30b5ca)['host'];}catch{_0x5b1b75=null;}function _0x1d7715(_0x116c33,_0x47aab8,_0x213a54,_0x241588){return _0x32fd1e(_0x116c33-0x165,_0x47aab8-_0x589977._0x343e41,_0x116c33,_0x213a54-_0x589977._0x32d237);}function _0x1974fe(_0x154d56,_0x136044,_0x22dac8,_0x3e5112){return _0x16c9b9(_0x22dac8,_0x136044- -0x421,_0x22dac8-_0xad8852._0x53b80e,_0x3e5112-0x3);}return{'title':_0x5854e3[_0x1974fe(_0x37a3d4._0x4ec92a,0x269,0x322,0x3b7)]||_0x1d7715(_0x37a3d4._0x8e9365,_0x37a3d4._0x8d6ff5,0x361,0x436),'url':normalizeUrl(_0x30b5ca),'snippet':_0x5854e3[_0x1d7715(_0x37a3d4._0x3ca3f4,0x551,_0x37a3d4._0xc07ee,_0x37a3d4._0x1fe95b)]??null,'displayUrl':_0x5b1b75,'favicon':null,'publishedAt':null,'source':{'engine':_0x1d7715(0x5d2,0x5d1,0x518,_0x37a3d4._0x1630f7),'rank':_0x5c8ae9+0x1}};});return{'items':_0x13aa82[_0x16c9b9(0x51a,_0x960bdc._0x24569c,0x57d,_0x960bdc._0x2ce86e)](0x0,_0x3ec389),'engine':_0x16c9b9(_0x960bdc._0x3c64b7,0x691,_0x960bdc._0x5d8601,_0x960bdc._0x1e60ca)};}async function searchTavily(_0x41b313,_0x3cc38d,_0x5e8cf2){const _0x490e3f={_0x3939d4:0x250,_0x3d55a3:0x302,_0x3014d0:0x38f,_0x3d6daf:0x248,_0x1363b2:0x2c9,_0x464827:0x405,_0x14cc30:0x1b6,_0x1bf3fc:0x1a2,_0x319e20:0x309,_0x167287:0x40d,_0x57dc67:0x4a1,_0x35aa68:0x5b9,_0x2b5bb7:0x5a4,_0x5bffa0:0x290,_0x18df70:0x360,_0x4e1e94:0x19c,_0x286404:0x239,_0x258555:0x28e,_0x5be8ec:0x28b,_0x14cc5e:0x23b,_0x318391:0x368,_0x42f1b8:0x2be,_0x72121f:0x252,_0x5f51eb:0x253,_0x1139b5:0x31b,_0x35100d:0x467,_0x55f4f6:0x2bc,_0x39d9f4:0x293,_0x2f464f:0x35c,_0x120bd7:0x2a9,_0x4957c8:0x31a,_0x20e10d:0x377},_0xc8736e={_0x1024b7:0x3ef,_0x2d855a:0x5d9,_0x40d6d2:0x663,_0x19b5a4:0x5d0,_0x54a7fb:0x60e,_0x186f92:0x79f,_0x2cf33e:0xf9,_0x402997:0x4d,_0x8c7d64:0xbd,_0xe2100c:0xba,_0x459803:0x84,_0x2c3514:0x13},_0x1af2f1={_0x4c8f4e:0x6a,_0x2c6cd1:0x1a1,_0xe7a744:0x2e},_0x5b3934={_0x1e8a7a:0x40};function _0x3a520e(_0x49b9bb,_0x35681a,_0x416dc0,_0x592865){return _0x29b8eb(_0x49b9bb-_0x5b3934._0x1e8a7a,_0x49b9bb- -0x24d,_0x416dc0-0x85,_0x592865);}function _0x40445e(_0x55c9b9,_0x41b93f,_0x24646c,_0x3dfa3f){return _0x29b8eb(_0x55c9b9-_0x1af2f1._0x4c8f4e,_0x55c9b9- -_0x1af2f1._0x2c6cd1,_0x24646c-_0x1af2f1._0xe7a744,_0x3dfa3f);}const _0x426089=Math[_0x40445e(0x311,_0x490e3f._0x3939d4,0x1ed,_0x490e3f._0x3d55a3)](0x1,Math[_0x40445e(0x2d2,0x258,_0x490e3f._0x3014d0,_0x490e3f._0x3d6daf)](0x14,_0x3cc38d[_0x3a520e(_0x490e3f._0x1363b2,_0x490e3f._0x464827,_0x490e3f._0x14cc30,_0x490e3f._0x1bf3fc)])),_0x476a34={'query':_0x3cc38d[_0x40445e(0x23f,0x17c,_0x490e3f._0x319e20,0x38c)],'max_results':_0x426089,'search_depth':_0x41b313[_0x3a520e(0x2e8,0x22d,0x3b4,_0x490e3f._0x167287)]??_0x40445e(_0x490e3f._0x57dc67,0x4bc,_0x490e3f._0x35aa68,_0x490e3f._0x2b5bb7),'topic':_0x41b313[_0x40445e(_0x490e3f._0x5bffa0,0x23c,0x306,0x239)]??'general'};if(_0x3cc38d[_0x3a520e(0x28e,_0x490e3f._0x18df70,_0x490e3f._0x4e1e94,_0x490e3f._0x286404)][_0x3a520e(0x275,0x3ae,0x203,0x2fd)]>0x0)_0x476a34['include_domains']=_0x3cc38d[_0x3a520e(_0x490e3f._0x258555,0x24a,_0x490e3f._0x5be8ec,_0x490e3f._0x14cc5e)];const _0x3c36b9=await fetchJson(_0x3a520e(0x405,_0x490e3f._0x318391,_0x490e3f._0x42f1b8,0x2de),_0x5e8cf2,{'method':_0x3a520e(0x31a,0x2c2,_0x490e3f._0x72121f,0x251),'headers':{'Authorization':_0x3a520e(0x3ae,0x3e8,0x321,0x46f)+_0x41b313['tavilyApiKey'],'Content-Type':_0x40445e(_0x490e3f._0x5f51eb,_0x490e3f._0x1139b5,0x270,0x322)},'body':JSON[_0x3a520e(0x39c,0x2d4,0x3d1,_0x490e3f._0x35100d)](_0x476a34)}),_0x1fec5a=_0x3c36b9[_0x40445e(0x3d8,_0x490e3f._0x55f4f6,0x362,0x429)]??[],_0x22a489=_0x1fec5a['map']((_0x339494,_0x57b0e4)=>{const _0x3ef013={_0x103163:0x6d,_0x395302:0xe6},_0x4b19d7={_0x2c3c79:0x373,_0x4005ab:0x1cf};function _0x1d31c3(_0x4ba1be,_0x3dad49,_0x2534a8,_0x58e152){return _0x40445e(_0x2534a8- -_0x4b19d7._0x2c3c79,_0x3dad49-_0x4b19d7._0x4005ab,_0x2534a8-0x180,_0x3dad49);}const _0x4a0f00=_0x339494[_0x4988b4(0x485,0x502,_0xc8736e._0x1024b7,_0xc8736e._0x2d855a)]||'';let _0x336ea4;function _0x4988b4(_0x21991b,_0x3a1f8d,_0x50c33d,_0x295826){return _0x40445e(_0x3a1f8d-0x1f8,_0x3a1f8d-_0x3ef013._0x103163,_0x50c33d-_0x3ef013._0x395302,_0x295826);}try{_0x336ea4=new URL(_0x4a0f00)[_0x4988b4(_0xc8736e._0x40d6d2,0x5a6,_0xc8736e._0x19b5a4,_0xc8736e._0x54a7fb)];}catch{_0x336ea4=null;}return{'title':_0x339494[_0x4988b4(0x639,0x65e,0x751,_0xc8736e._0x186f92)]||_0x1d31c3(-_0xc8736e._0x2cf33e,-_0xc8736e._0x402997,-_0xc8736e._0x8c7d64,-0x136),'url':normalizeUrl(_0x4a0f00),'snippet':_0x339494[_0x1d31c3(_0xc8736e._0xe2100c,-_0xc8736e._0x459803,_0xc8736e._0x2c3514,0xf2)]??null,'displayUrl':_0x336ea4,'favicon':null,'publishedAt':null,'source':{'engine':'tavily','rank':_0x57b0e4+0x1}};});return{'items':_0x22a489[_0x40445e(0x318,_0x490e3f._0x39d9f4,_0x490e3f._0x2f464f,0x368)](0x0,_0x426089),'engine':_0x40445e(_0x490e3f._0x120bd7,0x327,_0x490e3f._0x4957c8,_0x490e3f._0x20e10d)};}async function searchGoogleCse(_0x2640c1,_0x416520,_0x3ced05){const _0x1a77cc={_0x23181e:0x50f,_0xa2a17:0x532,_0x44cf1e:0x484,_0x4f495a:0x498,_0x40a8e5:0x423,_0x2a9ac8:0x486,_0x20bb2f:0x45e,_0x5e3d59:0x414,_0x39c7a1:0x430,_0x5b70c8:0x45e,_0x4802bb:0x53b,_0x2a8c70:0x410,_0x4520d2:0x338,_0x2ed72a:0x446,_0x380daf:0x41d,_0x1115cd:0x324,_0x137699:0x239,_0x9353bc:0x453,_0x132dba:0x2ef,_0xb89f80:0x3f7,_0x1ac4c3:0x3c7,_0x43ca57:0x4f7,_0x56b1b3:0x53f,_0x2ff60c:0x349,_0xb43f94:0x583,_0x1aa418:0x485,_0x43cb9c:0x340,_0x3922a4:0x334,_0x534bfd:0x2d1,_0x3faed4:0x26b,_0x31f816:0x4b1,_0x4347c0:0x43b,_0x2817f2:0x3ec,_0x56144e:0x50d,_0x547b2b:0x47c,_0x3cb9e9:0x50c,_0x1a99e2:0x42e,_0x1a521e:0x4bf,_0x361f3b:0x412,_0x3a9703:0x346,_0x58a262:0x481,_0x4f6fa7:0x394,_0x41de3f:0x36b,_0x335c6e:0x37f,_0x631529:0x44e,_0x55ffc9:0x551,_0x49e204:0x514,_0x439017:0x453,_0x108e65:0x5a5,_0x5e6d66:0x3cf,_0x552eb8:0x348,_0x27d9fb:0x326,_0x25b528:0x37a,_0x25eb51:0x3c7,_0x1c18db:0x3e5,_0x42127d:0x572,_0x271c4f:0x292,_0xc7982a:0x1d9,_0x2e6109:0x181,_0x36ee54:0x1c3,_0xe1b8fc:0x20e,_0x46ce64:0x3ca,_0x42820e:0x510,_0x570f46:0x27d,_0x488d64:0x3ba,_0x4fef04:0x349,_0x2334c3:0x285,_0x296dcc:0x3a8,_0x1d8743:0x348,_0x44497a:0x22a,_0x5e6a44:0x292,_0x4fd551:0x3df,_0x54dfd6:0x3d2,_0x3170f5:0x332,_0xc22d6d:0x565,_0x318d1e:0x419,_0x43ba34:0x588,_0x16c820:0x271,_0x5042a9:0x355,_0xf2340a:0x565,_0x234e51:0x42f,_0x4a3aa9:0x550,_0x1e5cf9:0x3b5,_0x23b9c1:0x31c,_0x344019:0x2b3,_0x36fd52:0x3ba,_0x1bd504:0x32e,_0x19c363:0x2d6,_0x5ea29f:0x50e,_0x4427e0:0x42c,_0x13cfbb:0x58c,_0x4f3091:0x3fa,_0x3e29dd:0x2c1,_0x1c2f4a:0x2fd,_0x57404c:0x3d6,_0x44ad69:0x31d,_0x343e87:0x483,_0x2fdfd2:0x350,_0x15f70e:0x427,_0x1b9162:0x55f,_0x51f3e3:0x612,_0x39db4e:0x33c,_0x39e585:0x25e,_0xe0af25:0x2a7,_0x21903c:0x33b,_0x9387a7:0x36a,_0x5c623b:0x420,_0x1b9839:0x4a2,_0x155c58:0x24e},_0x5abb3d={_0x2bcb86:0x87,_0x2d5561:0x1d5},_0x406944=Math['max'](0x1,Math['min'](0x32,_0x416520[_0x1826f5(0x474,_0x1a77cc._0x23181e,_0x1a77cc._0xa2a17,0x401)]));if(_0x416520[_0x3a41dd(_0x1a77cc._0x44cf1e,0x45e,_0x1a77cc._0x4f495a,0x48e)]+_0x406944>0x64)throw new ToolExecutionError(_0x3a41dd(0x4ee,0x3c3,_0x1a77cc._0x40a8e5,_0x1a77cc._0x2a9ac8),{'offset':_0x416520[_0x3a41dd(0x369,_0x1a77cc._0x20bb2f,0x4cc,0x35f)],'count':_0x406944,'maxResults':0x64});function _0x3a41dd(_0x18c2b8,_0x8c41,_0x231080,_0x28f3f9){return _0x5a3b3d(_0x231080,_0x8c41-0x183,_0x8c41-0xfe,_0x28f3f9-0x4c);}const _0x14918e=cseDateRestrict(_0x416520['recencyDays']),_0x5a1ce7=addSiteFilters(_0x416520[_0x1826f5(0x33e,0x2a2,_0x1a77cc._0x5e3d59,_0x1a77cc._0x39c7a1)],_0x416520['domains']);let _0x5388ff=0x0,_0x26bd35=_0x416520[_0x3a41dd(0x341,_0x1a77cc._0x5b70c8,_0x1a77cc._0x4802bb,0x55b)]+0x1;const _0x5df084=[];while(_0x5388ff<_0x406944){const _0x595364=Math[_0x3a41dd(0x2ce,0x2fa,_0x1a77cc._0x2a8c70,_0x1a77cc._0x4520d2)](0xa,_0x406944-_0x5388ff),_0x5ec4c9=new URL(_0x3a41dd(_0x1a77cc._0x2ed72a,_0x1a77cc._0x380daf,_0x1a77cc._0x1115cd,0x3af));_0x5ec4c9['searchParams']['set']('key',_0x2640c1[_0x1826f5(0x361,0x3e4,_0x1a77cc._0x137699,0x390)]),_0x5ec4c9['searchParams'][_0x1826f5(_0x1a77cc._0x9353bc,0x50d,0x3c9,0x4d3)]('cx',_0x2640c1[_0x3a41dd(_0x1a77cc._0x132dba,_0x1a77cc._0xb89f80,0x2ba,0x45f)]),_0x5ec4c9[_0x3a41dd(0x2c9,_0x1a77cc._0x1ac4c3,_0x1a77cc._0x43ca57,0x3e0)][_0x1826f5(0x453,0x34a,0x400,0x4e3)]('q',_0x5a1ce7),_0x5ec4c9['searchParams']['set'](_0x1826f5(0x4ab,0x3c7,_0x1a77cc._0x56b1b3,0x3eb),String(_0x595364)),_0x5ec4c9[_0x3a41dd(0x33e,0x3c7,0x39e,0x3b3)]['set']('start',String(_0x26bd35)),_0x5ec4c9[_0x3a41dd(_0x1a77cc._0x2ff60c,0x3c7,0x37c,0x36d)][_0x1826f5(0x453,_0x1a77cc._0xb43f94,_0x1a77cc._0x1aa418,0x31f)](_0x1826f5(0x3d3,_0x1a77cc._0x43cb9c,0x29b,0x38f),_0x416520[_0x3a41dd(_0x1a77cc._0x3922a4,0x2fc,_0x1a77cc._0x534bfd,_0x1a77cc._0x3faed4)]?'active':'off');_0x416520[_0x1826f5(0x3c1,0x445,0x357,_0x1a77cc._0x31f816)]&&(_0x5ec4c9[_0x3a41dd(_0x1a77cc._0x4347c0,0x3c7,_0x1a77cc._0x2817f2,_0x1a77cc._0x56144e)][_0x1826f5(_0x1a77cc._0x9353bc,_0x1a77cc._0x547b2b,_0x1a77cc._0x3cb9e9,0x3aa)]('hl',_0x416520[_0x1826f5(0x3c1,0x3c3,_0x1a77cc._0x1a99e2,_0x1a77cc._0x1a521e)]),_0x5ec4c9['searchParams'][_0x1826f5(0x453,_0x1a77cc._0x361f3b,0x4c0,0x523)]('lr',_0x3a41dd(_0x1a77cc._0x3a9703,0x40f,_0x1a77cc._0x58a262,_0x1a77cc._0x4f6fa7)+_0x416520['lang']));if(_0x416520['region'])_0x5ec4c9[_0x3a41dd(0x3aa,0x3c7,_0x1a77cc._0x41de3f,_0x1a77cc._0x335c6e)]['set']('gl',_0x416520[_0x3a41dd(0x484,0x42d,_0x1a77cc._0x631529,_0x1a77cc._0x55ffc9)][_0x1826f5(_0x1a77cc._0x49e204,0x521,0x5ea,0x5d7)]());if(_0x416520['type']==='images')_0x5ec4c9['searchParams'][_0x1826f5(_0x1a77cc._0x439017,0x319,_0x1a77cc._0x108e65,0x3b9)](_0x1826f5(0x3b9,_0x1a77cc._0x5e6d66,0x2a2,0x34c),_0x1826f5(_0x1a77cc._0x552eb8,0x379,0x409,_0x1a77cc._0x27d9fb));if(_0x14918e)_0x5ec4c9[_0x3a41dd(_0x1a77cc._0x25b528,_0x1a77cc._0x25eb51,0x4ab,_0x1a77cc._0x1c18db)][_0x1826f5(0x453,0x3dd,0x45d,_0x1a77cc._0x42127d)](_0x3a41dd(0x34a,_0x1a77cc._0x271c4f,_0x1a77cc._0xc7982a,_0x1a77cc._0x2e6109),_0x14918e);const _0x1dd08d=await fetchJson(_0x5ec4c9[_0x3a41dd(_0x1a77cc._0x36ee54,0x2a4,0x1b0,_0x1a77cc._0xe1b8fc)](),_0x3ced05),_0x1b00c6=_0x1dd08d[_0x1826f5(_0x1a77cc._0x46ce64,_0x1a77cc._0x42820e,_0x1a77cc._0x570f46,_0x1a77cc._0x488d64)]??[];if(_0x1b00c6[_0x3a41dd(0x42c,_0x1a77cc._0x4fef04,0x36e,_0x1a77cc._0x2334c3)]===0x0)break;const _0x54b4b6=_0x5388ff;for(let _0x1aa6dd=0x0;_0x1aa6dd<_0x1b00c6[_0x3a41dd(0x398,0x349,0x2e1,_0x1a77cc._0x296dcc)];_0x1aa6dd++){const _0x55946d=_0x1b00c6[_0x1aa6dd];if(!_0x55946d)continue;const _0x2ccae1=_0x55946d[_0x3a41dd(0x4a7,0x4eb,0x445,0x589)]||_0x55946d[_0x1826f5(_0x1a77cc._0x1d8743,_0x1a77cc._0x44497a,_0x1a77cc._0x5e6a44,0x235)]?.[_0x3a41dd(_0x1a77cc._0x3cb9e9,_0x1a77cc._0x4fd551,_0x1a77cc._0x54dfd6,_0x1a77cc._0x3170f5)]||'',_0x548d80=_0x55946d[_0x1826f5(_0x1a77cc._0xc22d6d,_0x1a77cc._0x318d1e,0x56a,_0x1a77cc._0x43ba34)]||_0x55946d[_0x3a41dd(0x25e,_0x1a77cc._0x16c820,0x142,_0x1a77cc._0x5042a9)]?.[_0x1826f5(_0x1a77cc._0xf2340a,_0x1a77cc._0x234e51,_0x1a77cc._0x4a3aa9,0x41e)]||_0x1826f5(_0x1a77cc._0x1e5cf9,_0x1a77cc._0x3faed4,0x4c6,_0x1a77cc._0x23b9c1),_0x20b4b9=_0x55946d[_0x3a41dd(_0x1a77cc._0x344019,0x2cc,_0x1a77cc._0x36fd52,0x18e)]||_0x55946d[_0x3a41dd(_0x1a77cc._0x1bd504,0x3b5,0x32f,_0x1a77cc._0x19c363)]?.[_0x3a41dd(0x58c,0x4b1,0x370,0x4af)](/<[^>]+>/g,''),_0x23f39f=_0x55946d[_0x1826f5(_0x1a77cc._0x5ea29f,_0x1a77cc._0x4427e0,0x472,_0x1a77cc._0x13cfbb)]?.[_0x3a41dd(_0x1a77cc._0x4f3091,_0x1a77cc._0x3e29dd,_0x1a77cc._0x1c2f4a,0x1f6)]?.[0x0]??{};let _0x15bf95;try{_0x15bf95=new URL(_0x2ccae1)[_0x3a41dd(0x289,_0x1a77cc._0x57404c,_0x1a77cc._0x44ad69,_0x1a77cc._0x343e87)];}catch{_0x15bf95=null;}_0x5df084[_0x3a41dd(0x2fc,_0x1a77cc._0x2fdfd2,0x26f,_0x1a77cc._0x15f70e)]({'title':_0x548d80,'url':normalizeUrl(_0x2ccae1),'snippet':_0x20b4b9??null,'displayUrl':_0x15bf95,'favicon':null,'publishedAt':_0x23f39f[_0x1826f5(_0x1a77cc._0x1b9162,0x46a,0x594,_0x1a77cc._0x51f3e3)]||_0x23f39f[_0x1826f5(_0x1a77cc._0x39db4e,0x2ef,_0x1a77cc._0x39e585,_0x1a77cc._0xe0af25)]||null,'source':{'engine':_0x3a41dd(0x4b1,0x406,_0x1a77cc._0x21903c,_0x1a77cc._0x9387a7),'rank':_0x54b4b6+_0x1aa6dd+0x1}});}_0x5388ff+=_0x1b00c6['length'],_0x26bd35+=_0x1b00c6[_0x1826f5(_0x1a77cc._0x5c623b,0x475,_0x1a77cc._0x1b9839,0x472)];if(_0x1b00c6[_0x3a41dd(_0x1a77cc._0x155c58,0x349,0x3bb,0x274)]<_0x595364)break;}function _0x1826f5(_0xc832fd,_0x33ccc0,_0x39aaf6,_0x219835){return _0x5a3b3d(_0x219835,_0x33ccc0-_0x5abb3d._0x2bcb86,_0xc832fd-_0x5abb3d._0x2d5561,_0x219835-0x20);}return _0x5df084['slice'](0x0,_0x406944);}function isGoogleCseEngine(_0x155f35){const _0x4920f0={_0x3d4472:0x4c3,_0x37a8e3:0x546},_0x385b05={_0x29ffe9:0xe9,_0x29bf2c:0x337};function _0x5607f5(_0x4985f3,_0x40114c,_0xc9ed1c,_0x54ebca){return _0x5a3b3d(_0x40114c,_0x40114c-_0x385b05._0x29ffe9,_0x4985f3-_0x385b05._0x29bf2c,_0x54ebca-0xfc);}return _0x5607f5(_0x4920f0._0x3d4472,_0x4920f0._0x37a8e3,0x4d6,0x3dc)in _0x155f35;}function isOllamaEngine(_0x1c8cfe){const _0x14047d={_0x591e5d:0x237,_0x4ea8ba:0x230,_0x591f5a:0x135,_0x498eed:0x370},_0x2fca4e={_0x3c455a:0xb7,_0x343cc7:0x2ee,_0x55ecc2:0x75};function _0x3f9fe9(_0x3b6b24,_0x3d83a5,_0xfed197,_0x3b5c1c){return _0x29b8eb(_0x3b6b24-_0x2fca4e._0x3c455a,_0x3b6b24- -_0x2fca4e._0x343cc7,_0xfed197-_0x2fca4e._0x55ecc2,_0x3b5c1c);}return _0x3f9fe9(_0x14047d._0x591e5d,_0x14047d._0x4ea8ba,_0x14047d._0x591f5a,_0x14047d._0x498eed)in _0x1c8cfe;}function isTavilyEngine(_0x22a896){const _0x47aa58={_0x2d3d3c:0x29c,_0x2e1481:0xd0},_0x5b4a8f={_0x47eb91:0xfa,_0x538ac3:0x39};function _0x5c3d2b(_0x7d57f6,_0x386660,_0x5ab1b6,_0x3b23d8){return _0x5a3b3d(_0x386660,_0x386660-_0x5b4a8f._0x47eb91,_0x5ab1b6- -0x35a,_0x3b23d8-_0x5b4a8f._0x538ac3);}return _0x5c3d2b(-0x291,-_0x47aa58._0x2d3d3c,-0x167,-_0x47aa58._0x2e1481)in _0x22a896;}function createWebSearchTool(_0x35e2e6){const _0xe31070={_0x23369a:0x7d6,_0x367c15:0x7c2,_0x107be9:0x548,_0x2b2436:0x5a0,_0x137b9b:0x6e6,_0x481c5d:0x53a,_0x10f0b4:0x5e9,_0x5bfe6e:0x3b4,_0x20a97c:0x620,_0x270b3e:0x5c6,_0x4bb733:0x5e4,_0x4f3028:0x538,_0x2c8e55:0x57b,_0x2fa853:0x699,_0xeb822a:0x634,_0x4e3cdc:0x645,_0x27d9f6:0x6f9,_0x48a466:0x6a8,_0x5066c8:0x6f9,_0x7a7cc8:0x691,_0x327338:0x5f6,_0x45dcf9:0x68b,_0x4df3bd:0x5c9,_0xf3d10a:0x5bd,_0x16dcb0:0x4d3,_0x46cdf4:0x61d,_0x280c76:0x5f6,_0x428d37:0x62b,_0x21d081:0x6f9,_0x1865ea:0x7a8,_0x45f021:0x793,_0x5976e2:0x75b,_0x3c7d8e:0x5b8,_0x3f20ca:0x741,_0x25f858:0x6a6},_0x216b51={_0x8ab513:0x146,_0x423008:0x128,_0x2af875:0x255,_0x3dd03:0x1d1,_0xbd5f15:0x8f,_0xefcb20:0x16c,_0x1b37a0:0x11b,_0x20e512:0x23a,_0x425b7d:0x2d3,_0x251fcd:0x58,_0x34e55e:0x127,_0x37f44c:0x236,_0x430f4b:0x259,_0x3e622a:0x16e,_0x2494c4:0x1ab,_0x70f4dc:0x1aa,_0x37a18f:0xc8,_0x376949:0x1eb,_0xcfc1fb:0x185,_0x27cb67:0x189,_0x3c69c7:0x173,_0x468d21:0x2a8,_0x4193ab:0xb5,_0x1bd4b5:0x205,_0x450b69:0x234,_0x4b90be:0x25a,_0x34a7a7:0x307,_0x417ac4:0x1ed,_0x5b670a:0x154,_0x219de4:0x3bd,_0x40e5bf:0x2a3,_0x629572:0x34,_0x4755c8:0x10d,_0x4b2329:0x2d,_0x49016b:0x2c8,_0x60c09b:0x244,_0x387f81:0x1c1,_0x4f90f4:0x1d7,_0xe4a42:0xa5,_0x1b06af:0x190,_0x1503be:0x357,_0x1d9d19:0x335,_0x2f42a9:0x1d6,_0x8e0f15:0x10c,_0x2c53f6:0x1f4,_0x128bd6:0x115,_0x1842ea:0x98,_0x3681e8:0x46,_0x5d07c7:0xcd,_0x45c5d6:0x32,_0x1bd06c:0x22e,_0x44aa0c:0x2f6,_0x4332c0:0x16f,_0x15e78b:0xbe,_0x2291e8:0xfd,_0x40a07d:0x184,_0xaff87b:0x1ff,_0x584f3c:0xbe,_0x931143:0xca,_0x9068d9:0x39,_0x48bf0b:0x42,_0x161d1b:0x261,_0x390d6a:0x129,_0x3e7823:0x1eb,_0x4cd7e7:0x197,_0x23e5e3:0x231,_0x4e0ba0:0x26,_0x3fd3ba:0x69,_0x3f4985:0x46,_0xca251e:0x295,_0x57b9b1:0x3ce,_0x59632b:0x56,_0x45e93e:0x118,_0x342cfe:0x24a,_0xed4e12:0x33,_0x4d072c:0xd7,_0xa1e167:0x168,_0x5f003b:0x287,_0x2b3d5b:0x21b,_0x3bf5a5:0x2d1,_0x8a8b19:0x36d,_0x149185:0x156,_0x540297:0x30f},_0x32c619={_0x247128:0x356,_0x19f6d2:0x181},_0x562843={_0x51e5a7:0x45d,_0x1234df:0x2f0,_0x4d4915:0x354,_0x220e33:0x144},_0x4b884f={_0x810792:0x1ba,_0xbc9c98:0x1ce},_0x121903={_0x4cbc83:0x90},_0x11bec9={_0x55eb0b:0x355};function _0x47bdc(_0x441b9a,_0x15422b,_0xdce8cf,_0x449026){return _0x5a3b3d(_0xdce8cf,_0x15422b-0x14a,_0x441b9a-_0x11bec9._0x55eb0b,_0x449026-0x4);}if(!_0x35e2e6[_0x47bdc(0x68b,_0xe31070._0x23369a,_0xe31070._0x367c15,_0xe31070._0x107be9)]||_0x35e2e6['engines'][_0x47bdc(_0xe31070._0x2b2436,_0xe31070._0x137b9b,_0xe31070._0x481c5d,_0xe31070._0x10f0b4)]===0x0)throw new Error('WebSearch\x20requires\x20at\x20least\x20one\x20search\x20engine\x20configured');const _0x578b40=_0x35e2e6[_0x47bdc(0x4d1,_0xe31070._0x5bfe6e,0x49f,_0xe31070._0x20a97c)]??_0x227e08(0x6b3,0x7a5,0x578,_0xe31070._0x270b3e);function _0x227e08(_0x459144,_0x486749,_0x5b58e0,_0x1e4f65){return _0x5a3b3d(_0x1e4f65,_0x486749-0x99,_0x459144-0x389,_0x1e4f65-_0x121903._0x4cbc83);}return defineTool({'name':_0x578b40,'description':_0x227e08(_0xe31070._0x4bb733,_0xe31070._0x4f3028,_0xe31070._0x2c8e55,0x599),'inputSchema':{'type':_0x227e08(_0xe31070._0x2fa853,_0xe31070._0xeb822a,_0xe31070._0x4e3cdc,0x753),'properties':{'description':{'type':_0x227e08(_0xe31070._0x27d9f6,0x81d,0x828,_0xe31070._0x48a466)},'query':{'type':_0x227e08(_0xe31070._0x5066c8,0x634,0x743,_0xe31070._0x7a7cc8)},'count':{'type':_0x227e08(_0xe31070._0x327338,0x747,_0xe31070._0x45dcf9,_0xe31070._0x4df3bd)},'offset':{'type':_0x227e08(0x5f6,0x4b6,_0xe31070._0xf3d10a,_0xe31070._0x16dcb0)},'domains':{'type':'array','items':{'type':_0x47bdc(0x6c5,0x66f,0x5f0,_0xe31070._0x46cdf4)}},'recencyDays':{'type':_0x227e08(_0xe31070._0x280c76,0x58f,0x565,_0xe31070._0x428d37)},'lang':{'type':_0x227e08(_0xe31070._0x21d081,_0xe31070._0x1865ea,_0xe31070._0x45f021,_0xe31070._0x5976e2)},'region':{'type':_0x227e08(0x6f9,0x77c,0x6ad,_0xe31070._0x3c7d8e)},'safe':{'type':_0x227e08(0x714,0x776,_0xe31070._0x3f20ca,_0xe31070._0x25f858)},'type':{'type':'string'},'hydrateMeta':{'type':'boolean'}},'required':['query']},async *'execute'(_0xa2112a,_0x43b48f){const _0x143454=_0xa2112a[_0x2999f6(0x80,-_0x216b51._0x8ab513,-0x3d,-_0x216b51._0x423008)][_0x2b8b7f(_0x216b51._0x2af875,0x1a1,_0x216b51._0x3dd03,0x1ba)]();if(!_0x143454)throw new ToolExecutionError(_0x2b8b7f(0x103,_0x216b51._0xbd5f15,_0x216b51._0xefcb20,_0x216b51._0x1b37a0));const _0x4fac29={'query':_0x143454,'count':Math[_0x2b8b7f(0xee,0x371,_0x216b51._0x20e512,0x13a)](0x1,Math[_0x2b8b7f(0x1ad,_0x216b51._0x425b7d,0x1fb,0x130)](0x32,Math['trunc'](_0xa2112a[_0x2999f6(-_0x216b51._0x251fcd,0x1d8,0xf9,0x202)]??0xa))),'offset':Math[_0x2b8b7f(_0x216b51._0x34e55e,0x310,0x23a,_0x216b51._0x37f44c)](0x0,Math['trunc'](_0xa2112a['offset']??0x0)),'domains':_0xa2112a['domains']??[],'recencyDays':Math[_0x2b8b7f(_0x216b51._0x430f4b,0x1b6,_0x216b51._0x20e512,_0x216b51._0x3e622a)](0x0,Math['trunc'](_0xa2112a[_0x2b8b7f(_0x216b51._0x2494c4,0x90,_0x216b51._0x70f4dc,0xf9)]??0x0)),'lang':_0xa2112a[_0x2b8b7f(_0x216b51._0x37a18f,0x1b9,_0x216b51._0x376949,_0x216b51._0xcfc1fb)]??'en','region':_0xa2112a[_0x2999f6(0x16b,0x2a0,_0x216b51._0x27cb67,_0x216b51._0x3c69c7)]??'','safe':_0xa2112a[_0x2b8b7f(_0x216b51._0x468d21,_0x216b51._0x4193ab,0x1fd,0x1b9)]??!![],'type':normalizeType(_0xa2112a[_0x2b8b7f(0x321,0x282,0x1f5,0x14c)]),'hydrateMeta':_0xa2112a['hydrateMeta']??![]};let _0x47d9ae=[];function _0x2999f6(_0x395f5c,_0x3596ff,_0x54f425,_0x4468f0){return _0x47bdc(_0x54f425- -0x4fb,_0x3596ff-_0x4b884f._0x810792,_0x395f5c,_0x4468f0-_0x4b884f._0xbc9c98);}let _0x289696=_0x2999f6(0x342,0x145,_0x216b51._0x1bd4b5,0x25b);for(const _0x5c4d1c of _0x35e2e6[_0x2999f6(0x119,_0x216b51._0x450b69,0x190,0xe1)]){try{if(isGoogleCseEngine(_0x5c4d1c))_0x47d9ae=await searchGoogleCse(_0x5c4d1c,_0x4fac29,_0x43b48f['signal']),_0x289696=_0x2b8b7f(_0x216b51._0x4b90be,0x2e8,_0x216b51._0x34a7a7,0x2f5);else{if(isOllamaEngine(_0x5c4d1c)){const _0x21ae5f=await searchOllama(_0x5c4d1c,_0x4fac29,_0x43b48f[_0x2b8b7f(_0x216b51._0x417ac4,_0x216b51._0x5b670a,0x2a3,0x237)]);_0x47d9ae=_0x21ae5f['items'],_0x289696=_0x21ae5f['engine'];}else{if(isTavilyEngine(_0x5c4d1c)){const _0x35ff76=await searchTavily(_0x5c4d1c,_0x4fac29,_0x43b48f[_0x2b8b7f(0x251,_0x216b51._0x219de4,_0x216b51._0x40e5bf,0x34f)]);_0x47d9ae=_0x35ff76[_0x2999f6(-_0x216b51._0x629572,_0x216b51._0x4755c8,0x4f,-_0x216b51._0x4b2329)],_0x289696=_0x35ff76[_0x2999f6(0x103,_0x216b51._0x49016b,_0x216b51._0x60c09b,_0x216b51._0x387f81)];}}}if(_0x47d9ae[_0x2999f6(-0x9e,_0x216b51._0x4f90f4,_0x216b51._0xe4a42,-0x54)]>0x0)break;}catch(_0x52ba1d){if(_0x5c4d1c===_0x35e2e6[_0x2999f6(0x59,0x143,_0x216b51._0x1b06af,0x20d)][_0x35e2e6[_0x2b8b7f(_0x216b51._0x1503be,0x459,_0x216b51._0x1d9d19,0x212)][_0x2999f6(0x9c,_0x216b51._0x2f42a9,0xa5,_0x216b51._0x8e0f15)]-0x1])throw _0x52ba1d;}}_0x4fac29['hydrateMeta']&&_0x47d9ae[_0x2999f6(_0x216b51._0x2c53f6,0x189,0xa5,_0x216b51._0x128bd6)]>0x0&&(_0x47d9ae=await hydrateResults(_0x47d9ae,_0x4fac29[_0x2999f6(_0x216b51._0x1842ea,0xfe,_0x216b51._0x3681e8,-0x52)],_0x43b48f['signal']));const _0x612f5f=new Set();_0x47d9ae=_0x47d9ae[_0x2999f6(0x214,_0x216b51._0x5d07c7,0xf7,_0x216b51._0x45c5d6)](_0x2693eb=>{const _0x5ddc83={_0x2906b8:0xb6,_0x31a901:0x4f};function _0x1ee28a(_0x1b1329,_0x4d53d9,_0x338e92,_0x293b75){return _0x2b8b7f(_0x1b1329-_0x5ddc83._0x2906b8,_0x293b75,_0x4d53d9- -0x351,_0x293b75-_0x5ddc83._0x31a901);}const _0x4313d6=_0x2693eb[_0x332075(0x284,_0x562843._0x51e5a7,_0x562843._0x1234df,_0x562843._0x4d4915)][_0x1ee28a(-0xde,0x5b,_0x562843._0x220e33,0x9d)]();function _0x332075(_0x5b8ec0,_0x247bff,_0xb994a,_0x17bacb){return _0x2b8b7f(_0x5b8ec0-0x1d5,_0x5b8ec0,_0x17bacb-0x121,_0x17bacb-0x169);}if(!_0x4313d6||_0x612f5f['has'](_0x4313d6))return![];return _0x612f5f['add'](_0x4313d6),!![];}),_0x47d9ae=_0x47d9ae[_0x2999f6(0x164,0x120,_0x216b51._0x1bd06c,_0x216b51._0x44aa0c)]((_0x1b5274,_0x36c59d)=>({..._0x1b5274,'source':{..._0x1b5274[_0x2b8b7f(0x2d1,0x24d,0x24c,0x1c1)],'rank':_0x36c59d+0x1}}));const _0x8d16d={};function _0x2b8b7f(_0xe6994e,_0x37a44b,_0xdb4dab,_0x3287b7){return _0x47bdc(_0xdb4dab- -_0x32c619._0x247128,_0x37a44b-0xdc,_0x37a44b,_0x3287b7-_0x32c619._0x19f6d2);}if(_0x4fac29['domains']['length']>0x0)_0x8d16d[_0x2999f6(-0x6a,_0x216b51._0x4332c0,_0x216b51._0x15e78b,_0x216b51._0x2291e8)]=_0x4fac29[_0x2999f6(_0x216b51._0x40a07d,_0x216b51._0xaff87b,_0x216b51._0x584f3c,0xb7)];if(_0x4fac29[_0x2999f6(-0x35,_0x216b51._0x931143,0x5,_0x216b51._0x9068d9)]>0x0)_0x8d16d[_0x2999f6(0x54,_0x216b51._0x48bf0b,0x5,-0x1b)]=_0x4fac29['recencyDays'];if(_0x4fac29[_0x2b8b7f(_0x216b51._0x161d1b,_0x216b51._0x390d6a,_0x216b51._0x3e7823,_0x216b51._0x4cd7e7)]!=='en')_0x8d16d[_0x2b8b7f(_0x216b51._0x23e5e3,0xad,0x1eb,0x27b)]=_0x4fac29[_0x2999f6(_0x216b51._0x4e0ba0,-_0x216b51._0x3fd3ba,_0x216b51._0x3f4985,0xd1)];if(_0x4fac29[_0x2b8b7f(_0x216b51._0xca251e,_0x216b51._0x57b9b1,0x32e,0x41c)])_0x8d16d[_0x2999f6(0x2a1,0x119,0x189,_0x216b51._0x59632b)]=_0x4fac29['region'];return yield createToolOutput(formatResults(_0x47d9ae),{'engine':_0x289696,'count':_0x47d9ae[_0x2b8b7f(0x257,_0x216b51._0x45e93e,_0x216b51._0x342cfe,0x298)],'items':_0x47d9ae,'query':_0x4fac29[_0x2b8b7f(_0x216b51._0xed4e12,_0x216b51._0x4d072c,_0x216b51._0xa1e167,_0x216b51._0x5f003b)],...Object[_0x2999f6(0x221,_0x216b51._0x2b3d5b,0x1d7,_0x216b51._0x931143)](_0x8d16d)['length']>0x0?{'appliedFilters':_0x8d16d}:{},'offset':_0x4fac29[_0x2b8b7f(0x340,_0x216b51._0x3bf5a5,0x35f,_0x216b51._0x8a8b19)],'totalRequested':_0x4fac29[_0x2b8b7f(0x194,_0x216b51._0x149185,0x29e,_0x216b51._0x540297)],'hydrated':_0x4fac29[_0x2b8b7f(_0x216b51._0x2c53f6,0x21b,0x2eb,0x3a5)]}),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,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
1
+ (function(_0x96e18e,_0x4a6008){const _0x4db256={_0x6ada57:0xf2,_0x52a802:0x168,_0x2752a9:0x12,_0x22dba7:0xcc,_0x36cafc:0x425,_0x2d8cd6:0x2a2,_0x11285a:0x3bf,_0x1db7d4:0x32f,_0x20bdd4:0x10d,_0x1176f5:0x110,_0x3054f6:0x268,_0x30ae97:0x5b0,_0xfd65d6:0x14,_0x1d25d4:0x25,_0x2c6a5d:0x38d,_0x46fd4c:0x3aa,_0x20af67:0x343,_0x5a404d:0x383,_0x5da3ee:0x676,_0x277d11:0x539,_0x24fcef:0x6c9,_0xd8f0c:0x632},_0x1a7cd0={_0x5a05c2:0x17f},_0x180362={_0x382eb6:0x1d8},_0x50f0cf=_0x96e18e();function _0x310497(_0x256126,_0x22858b,_0x1d5aa0,_0x101d39){return _0x27a7(_0x1d5aa0- -_0x180362._0x382eb6,_0x256126);}function _0x1c50bb(_0x579b07,_0x1a5887,_0x471f32,_0x3815fd){return _0x27a7(_0x3815fd-_0x1a7cd0._0x5a05c2,_0x1a5887);}while(!![]){try{const _0x37e689=parseInt(_0x310497(0x4d,0xfa,_0x4db256._0x6ada57,_0x4db256._0x52a802))/0x1*(parseInt(_0x310497(-_0x4db256._0x2752a9,0x59,0xfd,_0x4db256._0x22dba7))/0x2)+parseInt(_0x1c50bb(_0x4db256._0x36cafc,_0x4db256._0x2d8cd6,_0x4db256._0x11285a,_0x4db256._0x1db7d4))/0x3*(-parseInt(_0x310497(_0x4db256._0x20bdd4,_0x4db256._0x1176f5,0x254,_0x4db256._0x3054f6))/0x4)+-parseInt(_0x310497(0x131,0xd8,0x114,0x1c5))/0x5*(-parseInt(_0x310497(0x132,0x4a,0xeb,0x15f))/0x6)+-parseInt(_0x1c50bb(0x693,0x482,0x4c7,_0x4db256._0x30ae97))/0x7+-parseInt(_0x310497(_0x4db256._0xfd65d6,_0x4db256._0x1d25d4,0xf9,0x1ba))/0x8+-parseInt(_0x1c50bb(0x2ae,0x36b,_0x4db256._0x2c6a5d,_0x4db256._0x46fd4c))/0x9*(-parseInt(_0x1c50bb(0x258,_0x4db256._0x20af67,0x35f,_0x4db256._0x5a404d))/0xa)+parseInt(_0x1c50bb(0x408,0x5b7,_0x4db256._0x5da3ee,_0x4db256._0x277d11))/0xb*(parseInt(_0x1c50bb(_0x4db256._0x24fcef,_0x4db256._0xd8f0c,0x647,0x57c))/0xc);if(_0x37e689===_0x4a6008)break;else _0x50f0cf['push'](_0x50f0cf['shift']());}catch(_0x37a8c8){_0x50f0cf['push'](_0x50f0cf['shift']());}}}(_0x3d53,0xd2f94));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-HRU363DY.js';import{getTextFromMessage}from'../chunk-QDOE7NWO.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 _0x323bca from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x23b1c2(0x2ea,0x370,0x246,0x105),'.tsx':_0x57b9de(0x3bb,0x510,0x42f,0x536),'.js':_0x23b1c2(0x207,0x341,0x274,0x125),'.jsx':'javascriptreact','.mjs':_0x23b1c2(0x281,0x1ac,0x274,0x217),'.cjs':_0x23b1c2(0x1f2,0x246,0x274,0x338),'.mts':_0x23b1c2(0x332,0x33a,0x246,0x2ff),'.cts':_0x57b9de(0x335,0x2a6,0x2f4,0x254),'.json':_0x57b9de(0x520,0x30b,0x3e2,0x2fe),'.jsonc':'jsonc'};function getLanguageId(_0x1b2582){const _0x3a8daa={_0x1f5e55:0x67d},_0x12b115={_0x3c941e:0x29,_0x1fe8b8:0xf1,_0x4ca291:0x53};function _0x15d685(_0x16baa8,_0x345dd2,_0x4af7cf,_0x1583c8){return _0x57b9de(_0x16baa8-_0x12b115._0x3c941e,_0x1583c8,_0x4af7cf-_0x12b115._0x1fe8b8,_0x1583c8-_0x12b115._0x4ca291);}return EXTENSION_TO_LANGUAGE[_0x323bca['extname'](_0x1b2582)[_0x15d685(_0x3a8daa._0x1f5e55,0x723,0x653,0x57e)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x5ef32b){return pathToFileURL(_0x5ef32b)['toString']();}function textDocumentPosition(_0x53bbaf){const _0x1193ff={_0x5da736:0x72d,_0x5a5870:0x57a,_0xebf613:0x5d8,_0x271b38:0x5c3,_0x7c8199:0x498},_0x1bcdd0={_0x418db2:0x1cc,_0x1af795:0x27};function _0x20a38c(_0x5c30ee,_0x12b421,_0x50c2c3,_0x2ae493){return _0x57b9de(_0x5c30ee-0x52,_0x50c2c3,_0x2ae493-_0x1bcdd0._0x418db2,_0x2ae493-_0x1bcdd0._0x1af795);}function _0x4c2691(_0x54600d,_0x135bcd,_0x262cc5,_0x2b3980){return _0x57b9de(_0x54600d-0x1cc,_0x135bcd,_0x262cc5-0x114,_0x2b3980-0x87);}return{'textDocument':{'uri':uriForPath(_0x53bbaf[_0x20a38c(_0x1193ff._0x5da736,0x724,0x84d,0x733)])},'position':{'line':_0x53bbaf[_0x4c2691(0x49c,_0x1193ff._0x5a5870,0x573,_0x1193ff._0xebf613)],'character':_0x53bbaf[_0x4c2691(_0x1193ff._0x271b38,0x54f,0x500,_0x1193ff._0x7c8199)]}};}function normalizeLocations(_0x135450){if(!_0x135450)return[];return Array['isArray'](_0x135450)?_0x135450:[_0x135450];}async function createLspClient(_0xbd1098){const _0x31f720={_0x3886f6:0x252,_0x4f2a71:0x1df,_0x3f42f7:0x16,_0xd676:0xee,_0x251def:0x56,_0x48ecc2:0xcb,_0x2ae971:0x198,_0x5f0156:0xae,_0x4d37e7:0x14c,_0x102259:0x4,_0xa5a0f1:0x32a,_0x35a958:0x205,_0x88d397:0x25a,_0x1d284a:0xe5,_0x4da10a:0x170,_0x57a35a:0x194,_0x4d9941:0x74,_0x48a680:0x19e,_0x528241:0x8c,_0x323818:0x11b,_0x336aa4:0x189,_0x1ec607:0x18b,_0x2f9331:0x17f,_0x5ba618:0x141},_0x101fd2={_0x4da790:0xe3,_0x53eebe:0x1aa,_0x67d5:0x181,_0x2fcdfa:0x3e7,_0x1feb89:0x448,_0x3decb3:0xd7,_0x3f6103:0x5d,_0xb9f2d4:0x333,_0xaf9759:0x3eb,_0x1b2e57:0x1c4,_0x467361:0x1d7,_0x7f6a04:0x181},_0x43bb70={_0x35b24d:0x15f,_0x5072db:0xe},_0x54336b={_0x13de8a:0x15a},_0x4ab99d={_0x1ae4ef:0x1cc,_0x3059aa:0x2d0},_0x2bd260={_0x41d0af:0xfe,_0x41918c:0x2b,_0x4462d:0x1d0},_0x41272a={_0x208f6a:0x244,_0x4c3baf:0xcc,_0x540ca9:0x193},_0xb9354={_0x298590:0x1d9,_0x3a1cb1:0x15c,_0x419210:0xe9,_0x3c9364:0x57a,_0x420c1b:0x595},_0x568f49={_0x553229:0x106},_0x36d2b1={_0x59117c:0x267,_0x34a7d8:0x339},_0x38563b={_0x497078:0x16b},_0x43a182={_0x12e92e:0x4fa},_0x2a53ab={_0x504c4f:0x70f,_0x3a66cc:0x731,_0x1d49db:0x585,_0x1f68ad:0x6d4},_0x3b917e={_0x56e067:0x526,_0x4daab6:0x35b},_0x33f059={_0x5d25a8:0x14b,_0x803d86:0xf8},_0x862c87={_0x586d43:0x1bd,_0x14ca6a:0x21},_0x47b42d={_0x4f9a56:0x5a2,_0xd3338e:0x243,_0x111039:0x41},_0x242ec7={_0x1ee699:0x651,_0xce3ab6:0x798,_0x41103a:0x6b2,_0x229ad4:0x52b},_0x4a8f01={_0x229e92:0x3d9,_0x17155f:0x4b4,_0x59afb9:0x412,_0x26b6b2:0x3d4,_0x3da561:0x3a7},_0x16482a={_0x1d6775:0x373,_0x110b83:0x14e,_0x529bf3:0x48},_0x5d1f1f={_0x13e41f:0x248,_0x4cace3:0x11e},_0x442a81={_0x6d2867:0x15f,_0x164358:0x243,_0x441ec0:0xc5,_0x4c14bb:0x171,_0x15dc70:0x702,_0x117d86:0x736},_0xe92002={_0x394b1b:0x88},_0x2ad9ca={_0x4ed455:0x11b,_0x34e339:0x280,_0x382bdf:0x24d,_0x4c5692:0x10a,_0x449b2f:0x20},_0x217e9e={_0x1f2d41:0x2a7,_0x5f15f7:0x29a,_0x464b29:0x1d6,_0x1f6b81:0x15b},_0x25e962={_0x4f12d1:0x57b},_0x5ac7df={_0x1bbc4f:0x93,_0x4b2e9e:0x265},_0x56de4a={_0x8c7eab:0x453,_0xb3ed31:0x555,_0xd1874d:0x592,_0x1fd785:0x6b0,_0x36a328:0x6c9,_0x287862:0x77d,_0x8b2559:0x5a4,_0x3393ad:0x707,_0x377fa2:0x816},_0x2a6963={_0x43d91c:0x4c1,_0x2abb65:0x5a},_0x457244={_0x3c84b6:0x19b,_0x585a29:0x35f,_0x4641ed:0x175},_0x3bcf4e=_0xbd1098['handle']['process'][_0x4c1332(_0x31f720._0x3886f6,0x212,_0x31f720._0x4f2a71,0x193)],_0x3d7f40=_0xbd1098['handle'][_0x39418f(_0x31f720._0x3f42f7,-0x10,-_0x31f720._0xd676,0xc0)][_0x39418f(0xd9,-0x70,-_0x31f720._0x251def,_0x31f720._0x48ecc2)];function _0x4c1332(_0x1c22b7,_0x50deaa,_0x2172b7,_0x32af5c){return _0x23b1c2(_0x1c22b7-0xc5,_0x50deaa,_0x2172b7- -0x1b5,_0x32af5c-0x45);}if(!_0x3bcf4e||!_0x3d7f40)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');function _0x39418f(_0x41b740,_0x1ae908,_0x2e6f21,_0x38f924){return _0x57b9de(_0x41b740-_0x457244._0x3c84b6,_0x41b740,_0x1ae908- -_0x457244._0x585a29,_0x38f924-_0x457244._0x4641ed);}const _0x45512f=createMessageConnection(new StreamMessageReader(_0x3bcf4e),new StreamMessageWriter(_0x3d7f40)),_0x4a7e34=new Map(),_0x5e8b99=new Map();let _0x13b2d1=![];_0x45512f[_0x39418f(0x99,_0x31f720._0x2ae971,0x2dc,0x13b)]('textDocument/publishDiagnostics',_0x4209a2=>{const _0x5a5153={_0x2563be:0x557,_0x1f8ef3:0x17};_0x4a7e34[_0x3c5399(0x553,_0x56de4a._0x8c7eab,_0x56de4a._0xb3ed31,0x693)](_0x4209a2['uri'],_0x4209a2['diagnostics']);const _0x3765a0=_0x5e8b99[_0x304504(0x52e,_0x56de4a._0xd1874d,_0x56de4a._0x1fd785,_0x56de4a._0x36a328)](_0x4209a2[_0x3c5399(_0x56de4a._0x287862,0x639,0x684,_0x56de4a._0x8b2559)]);if(!_0x3765a0)return;function _0x3c5399(_0x52db42,_0x4767f9,_0x51c0d7,_0x52e5c6){return _0x4c1332(_0x52db42-0xd1,_0x52db42,_0x51c0d7-_0x2a6963._0x43d91c,_0x52e5c6-_0x2a6963._0x2abb65);}_0x5e8b99[_0x304504(0x84c,_0x56de4a._0x3393ad,0x84a,_0x56de4a._0x377fa2)](_0x4209a2['uri']);function _0x304504(_0x569bba,_0x48eeaf,_0x419ebd,_0x4d704c){return _0x39418f(_0x569bba,_0x48eeaf-_0x5a5153._0x2563be,_0x419ebd-0x15c,_0x4d704c-_0x5a5153._0x1f8ef3);}for(const _0x33f463 of _0x3765a0)_0x33f463();}),_0x45512f[_0x39418f(_0x31f720._0x5f0156,_0x31f720._0x4d37e7,0xc2,_0x31f720._0x102259)]();const _0x314940=await _0x45512f[_0x4c1332(0x2ce,_0x31f720._0xa5a0f1,0x23d,0x234)]('initialize',{'processId':process[_0x39418f(0x2d8,0x221,_0x31f720._0x35a958,0x2a5)],'rootUri':uriForPath(_0xbd1098[_0x4c1332(_0x31f720._0x88d397,_0x31f720._0x1d284a,_0x31f720._0x4da10a,_0x31f720._0x57a35a)]),'workspaceFolders':[{'uri':uriForPath(_0xbd1098[_0x39418f(0x63,_0x31f720._0x4d9941,_0x31f720._0x48a680,0x1a3)]),'name':_0xbd1098['server']['id']}],'initializationOptions':_0xbd1098['handle'][_0x39418f(-_0x31f720._0x528241,-_0x31f720._0x102259,_0x31f720._0x323818,0x3f)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown','plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x45512f[_0x39418f(0x285,0x223,0x33d,0x2ef)](_0x4c1332(0xe7,_0x31f720._0x336aa4,0x1e2,0x257),{});const _0x228f65={'serverId':_0xbd1098[_0x4c1332(0x184,0xa3,_0x31f720._0x1ec607,0x216)]['id'],'root':_0xbd1098[_0x4c1332(_0x31f720._0x2f9331,0x54,0x170,_0x31f720._0x5ba618)],'connection':_0x45512f,'diagnostics':_0x4a7e34,'capabilities':_0x314940['capabilities']??{},'notify':{async 'open'({path:_0x19556e}){const _0x1c9dd3={_0xe0a249:0x18,_0x20abdb:0x113};function _0x39d36d(_0x4b41b2,_0x5493ad,_0x5b73a1,_0x2a2e3b){return _0x39418f(_0x5493ad,_0x5b73a1-0x44b,_0x5b73a1-_0x1c9dd3._0xe0a249,_0x2a2e3b-_0x1c9dd3._0x20abdb);}function _0x50cce8(_0x44bcd9,_0xb4e56f,_0x3c299b,_0x3e6f01){return _0x4c1332(_0x44bcd9-_0x5ac7df._0x1bbc4f,_0xb4e56f,_0x44bcd9-_0x5ac7df._0x4b2e9e,_0x3e6f01-0x5);}const _0x1200d8=await readFile(_0x19556e,'utf8');_0x45512f[_0x39d36d(0x6dc,0x612,0x66e,_0x25e962._0x4f12d1)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x19556e),'languageId':getLanguageId(_0x19556e)??_0x50cce8(0x306,0x284,0x32f,0x3f9),'version':0x1,'text':_0x1200d8}});},async 'change'({path:_0x3a8582,version:_0x1b5064}){const _0x917c7b={_0x379022:0x1ea,_0x3df44f:0x45},_0x532a83={_0x1d9a45:0x66};function _0x394c96(_0x3155f2,_0x324285,_0x235fd8,_0x5e7fbe){return _0x4c1332(_0x3155f2-0x1f3,_0x3155f2,_0x235fd8-0x92,_0x5e7fbe-_0x532a83._0x1d9a45);}const _0xd9bb62=await readFile(_0x3a8582,'utf8');function _0xcd9feb(_0x5cc45f,_0x2ad3cb,_0x3e3364,_0x1585a0){return _0x4c1332(_0x5cc45f-_0x917c7b._0x379022,_0x5cc45f,_0x1585a0-0x2b,_0x1585a0-_0x917c7b._0x3df44f);}_0x45512f[_0x394c96(_0x217e9e._0x1f2d41,_0x217e9e._0x5f15f7,0x3b1,0x305)](_0xcd9feb(0x102,_0x217e9e._0x464b29,0x28c,_0x217e9e._0x1f6b81),{'textDocument':{'uri':uriForPath(_0x3a8582),'version':_0x1b5064},'contentChanges':[{'text':_0xd9bb62}]});},async 'close'({path:_0x45fb97}){const _0x141a5b={_0x463efa:0x197,_0x2f900e:0x127,_0x3cee96:0x90};function _0x146a78(_0x25016d,_0x11eb51,_0x43c092,_0x1afb74){return _0x39418f(_0x25016d,_0x43c092- -0x110,_0x43c092-0x122,_0x1afb74-0xdb);}function _0x3c7496(_0xab9bb0,_0xd5be5b,_0x4a5a7f,_0x15598d){return _0x4c1332(_0xab9bb0-_0x141a5b._0x463efa,_0xab9bb0,_0xd5be5b- -_0x141a5b._0x2f900e,_0x15598d-_0x141a5b._0x3cee96);}_0x45512f[_0x3c7496(_0x2ad9ca._0x4ed455,0x1f8,0x28f,_0x2ad9ca._0x34e339)](_0x146a78(_0x2ad9ca._0x382bdf,0x1be,_0x2ad9ca._0x4c5692,-_0x2ad9ca._0x449b2f),{'textDocument':{'uri':uriForPath(_0x45fb97)}});}},'request':{async 'definition'(_0x17d4b9){const _0x251a1f={_0x9abe1a:0x5c2};function _0x4c4b73(_0x12b0bd,_0x1839cc,_0x38900e,_0x5c07fb){return _0x39418f(_0x38900e,_0x5c07fb-0x30,_0x38900e-0x1a9,_0x5c07fb-_0xe92002._0x394b1b);}function _0x154e0a(_0x469d98,_0x4f51bd,_0x7c7f93,_0xfe250d){return _0x39418f(_0xfe250d,_0x469d98-_0x251a1f._0x9abe1a,_0x7c7f93-0x34,_0xfe250d-0x4e);}return normalizeLocations(await _0x45512f[_0x4c4b73(_0x442a81._0x6d2867,_0x442a81._0x164358,_0x442a81._0x441ec0,_0x442a81._0x4c14bb)](_0x154e0a(_0x442a81._0x15dc70,0x675,0x74e,_0x442a81._0x117d86),textDocumentPosition(_0x17d4b9)));},async 'references'(_0x5004e6){function _0x4db8b7(_0xba5dcb,_0x4717a5,_0x381651,_0x16aafc){return _0x4c1332(_0xba5dcb-0xc0,_0xba5dcb,_0x4717a5- -_0x5d1f1f._0x13e41f,_0x16aafc-_0x5d1f1f._0x4cace3);}function _0x2bab02(_0x5897ed,_0x4ce202,_0x91ced9,_0x266570){return _0x39418f(_0x91ced9,_0x4ce202-_0x16482a._0x1d6775,_0x91ced9-_0x16482a._0x110b83,_0x266570-_0x16482a._0x529bf3);}return normalizeLocations(await _0x45512f[_0x2bab02(_0x4a8f01._0x229e92,_0x4a8f01._0x17155f,_0x4a8f01._0x59afb9,0x5b8)](_0x2bab02(0x453,_0x4a8f01._0x26b6b2,_0x4a8f01._0x3da561,0x434),{...textDocumentPosition(_0x5004e6),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x1d8477){const _0x17e092={_0x7938d8:0x510};function _0xcf1541(_0x50c837,_0x250933,_0x3c17e0,_0x4ee930){return _0x39418f(_0x3c17e0,_0x50c837-_0x17e092._0x7938d8,_0x3c17e0-0x14b,_0x4ee930-0x1da);}return await _0x45512f[_0xcf1541(_0x242ec7._0x1ee699,_0x242ec7._0xce3ab6,_0x242ec7._0x41103a,_0x242ec7._0x229ad4)]('textDocument/hover',textDocumentPosition(_0x1d8477))??null;},async 'documentSymbol'(_0x3338d8){const _0x3154a6={_0x5dbdd6:0x34b};function _0x3ec6b7(_0x39c977,_0x3e5cb7,_0x175104,_0x260ca2){return _0x39418f(_0x260ca2,_0x3e5cb7-_0x3154a6._0x5dbdd6,_0x175104-0x56,_0x260ca2-0xd2);}function _0x399455(_0x3e090f,_0x1332c2,_0x89343b,_0x3789d5){return _0x39418f(_0x3789d5,_0x1332c2- -0x6,_0x89343b-0x13e,_0x3789d5-0x181);}return await _0x45512f[_0x3ec6b7(0x48a,0x48c,_0x47b42d._0x4f9a56,0x56b)](_0x399455(0x192,0x172,_0x47b42d._0xd3338e,_0x47b42d._0x111039),{'textDocument':{'uri':uriForPath(_0x3338d8)}})??[];},async 'workspaceSymbol'(_0x36c08e){function _0x581256(_0x66f77d,_0x33bb2e,_0x5047bf,_0x10c0e5){return _0x4c1332(_0x66f77d-_0x862c87._0x586d43,_0x10c0e5,_0x66f77d- -0x81,_0x10c0e5-_0x862c87._0x14ca6a);}function _0x350cb3(_0x3207b4,_0x32db36,_0x42527d,_0x1811d5){return _0x39418f(_0x42527d,_0x1811d5-0x319,_0x42527d-_0x33f059._0x5d25a8,_0x1811d5-_0x33f059._0x803d86);}return await _0x45512f[_0x350cb3(0x456,0x500,_0x3b917e._0x56e067,0x45a)](_0x350cb3(0x23b,0x206,_0x3b917e._0x4daab6,0x2e4),{'query':_0x36c08e})??[];},async 'implementation'(_0x213a4b){const _0x500a1c={_0x27e711:0x45a},_0x2bf1a7={_0xa3835:0x1f3};function _0x5019a6(_0x35e362,_0x373487,_0x5ee9f1,_0x3ed896){return _0x39418f(_0x35e362,_0x373487-0x5ce,_0x5ee9f1-_0x2bf1a7._0xa3835,_0x3ed896-0x1c);}function _0x1cff59(_0x3ba3a2,_0x2746b0,_0x585f40,_0x11ac5a){return _0x39418f(_0x11ac5a,_0x585f40-_0x500a1c._0x27e711,_0x585f40-0x1c,_0x11ac5a-0x7);}return normalizeLocations(await _0x45512f[_0x5019a6(0x783,_0x2a53ab._0x504c4f,_0x2a53ab._0x3a66cc,0x624)](_0x1cff59(0x607,_0x2a53ab._0x1d49db,0x622,_0x2a53ab._0x1f68ad),textDocumentPosition(_0x213a4b)));},async 'prepareCallHierarchy'(_0x104fc8){const _0x1985d5={_0xa9c81d:0x179,_0x35b6ee:0x2c9};function _0x379680(_0x231e49,_0x106957,_0x2824c6,_0x1742cc){return _0x4c1332(_0x231e49-_0x1985d5._0xa9c81d,_0x231e49,_0x1742cc-_0x1985d5._0x35b6ee,_0x1742cc-0x25);}return await _0x45512f[_0x379680(0x658,_0x43a182._0x12e92e,0x60d,0x506)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x104fc8))??[];},async 'incomingCalls'(_0x22f2ec){function _0x1d0a4b(_0x5206a9,_0x52d404,_0x34fd1d,_0x496bbc){return _0x4c1332(_0x5206a9-0x6d,_0x5206a9,_0x496bbc-0xdb,_0x496bbc-_0x38563b._0x497078);}return await _0x45512f[_0x1d0a4b(0x21e,_0x36d2b1._0x59117c,_0x36d2b1._0x34a7d8,0x318)]('callHierarchy/incomingCalls',{'item':_0x22f2ec})??[];},async 'outgoingCalls'(_0xdc36d5){const _0x81a99={_0x350fb5:0x134,_0x4a1971:0xbe};function _0x6b03b(_0x4086d0,_0x3d2ec1,_0x33fa73,_0x10c488){return _0x4c1332(_0x4086d0-_0x81a99._0x350fb5,_0x3d2ec1,_0x33fa73- -0xe1,_0x10c488-_0x81a99._0x4a1971);}function _0x48ea2d(_0x2957e0,_0x4acf47,_0x121e3a,_0x1ac39a){return _0x4c1332(_0x2957e0-0x9d,_0x4acf47,_0x2957e0-0x4bf,_0x1ac39a-_0x568f49._0x553229);}return await _0x45512f[_0x6b03b(0x161,_0xb9354._0x298590,_0xb9354._0x3a1cb1,_0xb9354._0x419210)](_0x48ea2d(0x6c9,_0xb9354._0x3c9364,0x57b,_0xb9354._0x420c1b),{'item':_0xdc36d5})??[];}},'waitForDiagnostics'({path:_0x360e17,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x3488af=uriForPath(_0x360e17);function _0x3c34e6(_0x1493c5,_0x5b6fb9,_0x39386c,_0x46aa18){return _0x4c1332(_0x1493c5-0x47,_0x1493c5,_0x39386c-0x1df,_0x46aa18-0x1e);}if(_0x4a7e34[_0x43df28(0x140,0x3cf,0x294,_0x4ab99d._0x1ae4ef)](_0x3488af))return Promise[_0x43df28(0x343,0x270,_0x4ab99d._0x3059aa,0x33d)]();function _0x43df28(_0x1799cd,_0x9c647f,_0x41a028,_0x449ec7){return _0x39418f(_0x9c647f,_0x41a028-_0x41272a._0x208f6a,_0x41a028-_0x41272a._0x4c3baf,_0x449ec7-_0x41272a._0x540ca9);}return new Promise(_0x24112b=>{const _0x1a0458={_0x47f759:0x1cc},_0x3e058b={_0x2d3511:0x182,_0x23f993:0x598,_0x7f4c68:0x645,_0x1b8f33:0x622,_0x22be2e:0x5f3,_0x2a0ebc:0x701},_0x509421={_0x1792bc:0x259},_0x40073a=setTimeout(()=>{function _0x1ac1cb(_0x4c872e,_0x2fdf80,_0x33404f,_0x25d78b){return _0x27a7(_0x4c872e- -0x54,_0x33404f);}const _0x5a2c25=_0x5e8b99[_0x1ac1cb(0x200,_0x3e058b._0x2d3511,0xef,0x256)](_0x3488af);_0x5a2c25?.['delete'](_0x4573a6);function _0x51d9cf(_0x3f0c8d,_0x2dc95d,_0x566a24,_0x352047){return _0x27a7(_0x3f0c8d-_0x509421._0x1792bc,_0x352047);}if(_0x5a2c25?.[_0x51d9cf(0x5c7,_0x3e058b._0x23f993,_0x3e058b._0x7f4c68,0x589)]===0x0)_0x5e8b99[_0x51d9cf(_0x3e058b._0x1b8f33,0x5e0,_0x3e058b._0x22be2e,_0x3e058b._0x2a0ebc)](_0x3488af);_0x24112b();},timeoutMs);function _0x1632c6(_0x147636,_0x56b059,_0x3abcdc,_0x3c5373){return _0x3c34e6(_0x3c5373,_0x56b059-0x1c8,_0x3abcdc- -0x108,_0x3c5373-_0x1a0458._0x47f759);}const _0x4573a6=()=>{clearTimeout(_0x40073a),_0x24112b();};function _0x427c4b(_0x4ef252,_0x14c604,_0x285119,_0x318c77){return _0x43df28(_0x4ef252-0x6c,_0x318c77,_0x14c604- -0x2bc,_0x318c77-0xa3);}const _0xb22245=_0x5e8b99['get'](_0x3488af)??new Set();_0xb22245[_0x427c4b(-0x4e,_0x2bd260._0x41d0af,-_0x2bd260._0x41918c,0x81)](_0x4573a6),_0x5e8b99[_0x427c4b(-0x14a,-0xe0,-0xfa,-_0x2bd260._0x4462d)](_0x3488af,_0xb22245);});},async 'shutdown'(){function _0x877100(_0x16eb01,_0x1e8ca1,_0x16f11f,_0x234585){return _0x4c1332(_0x16eb01-0xca,_0x234585,_0x1e8ca1-0xc8,_0x234585-_0x54336b._0x13de8a);}if(_0x13b2d1)return;_0x13b2d1=!![];function _0x5a87b5(_0x2c02d7,_0x738631,_0x5dbe9d,_0x1d876e){return _0x39418f(_0x1d876e,_0x738631- -0x1c7,_0x5dbe9d-_0x43bb70._0x35b24d,_0x1d876e-_0x43bb70._0x5072db);}try{await _0x45512f['sendRequest'](_0x5a87b5(-_0x101fd2._0x4da790,-0x21a,-_0x101fd2._0x53eebe,-_0x101fd2._0x67d5),null),_0x45512f[_0x877100(0x4f9,_0x101fd2._0x2fcdfa,_0x101fd2._0x1feb89,0x528)](_0x5a87b5(-_0x101fd2._0x3decb3,-_0x101fd2._0x67d5,-_0x101fd2._0x3f6103,-0x2a0));}catch{}finally{_0x45512f[_0x877100(_0x101fd2._0xb9f2d4,_0x101fd2._0xaf9759,0x4ce,0x3c6)](),_0xbd1098[_0x5a87b5(-0x19d,-0x18a,-0x9a,-0x134)][_0x5a87b5(-_0x101fd2._0x1b2e57,-_0x101fd2._0x467361,-_0x101fd2._0x7f6a04,-0x29a)][_0x5a87b5(-0x237,-0x164,-0x128,-0x211)]();}}};return _0x228f65;}import{spawn as _0x3586d2}from'child_process';import{access as _0x3cc5cf}from'fs/promises';import _0x5b6570 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x5ae67b from'os';import _0x16b600 from'path';import _0x259d3 from'which';var installPromises=new Map();function sanitizePackageName(_0x258e84){return _0x258e84['replace'](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0x14f67c){const _0x493ba0={_0x1c7559:0x1d0,_0x4a41fb:0x1f,_0x3dc97e:0x13},_0x425f24={_0x4d7cc7:0x380,_0x32b0a1:0x198},_0x4d80ec={_0x346753:0x4ff,_0x3b9d14:0x9f};function _0x59b873(_0x4a3ac9,_0x4036f3,_0x3523c9,_0x39fd35){return _0x57b9de(_0x4a3ac9-0x49,_0x3523c9,_0x39fd35- -_0x4d80ec._0x346753,_0x39fd35-_0x4d80ec._0x3b9d14);}function _0x778b4d(_0xa5e81b,_0x257adc,_0x13f995,_0x5167e1){return _0x23b1c2(_0xa5e81b-0x1b2,_0xa5e81b,_0x257adc- -_0x425f24._0x4d7cc7,_0x5167e1-_0x425f24._0x32b0a1);}return process[_0x59b873(-0x156,-0x2fa,-0x1c9,-_0x493ba0._0x1c7559)]==='win32'?_0x14f67c+_0x59b873(-_0x493ba0._0x4a41fb,-0xa4,-0x8,-_0x493ba0._0x3dc97e):_0x14f67c;}async function exists(_0x274812){try{return await access(_0x274812),!![];}catch{return![];}}function runNpmInstall(_0x5c096c,_0xa0e529,_0x17d130){const _0x222e5d={_0x596911:0x1db,_0x47afa4:0x7f6,_0x35bdbf:0x620};return new Promise(_0x29afa1=>{const _0x3e0b9c={_0x560ae5:0x38d};function _0x37bd9a(_0x4bcbd2,_0x146d25,_0x25bb6d,_0x4a2b7f){return _0x27a7(_0x25bb6d- -0x1c,_0x4bcbd2);}const _0x2fb8a9=spawn('npm',['install','--prefix',_0x5c096c,_0xa0e529],{'env':_0x17d130,'stdio':_0x37bd9a(_0x222e5d._0x596911,0x35d,0x20c,0x299)});_0x2fb8a9['on'](_0x5241ac(_0x222e5d._0x47afa4,0x76c,_0x222e5d._0x35bdbf,0x6f6),()=>_0x29afa1(![]));function _0x5241ac(_0x59189c,_0x44dc5f,_0x17e380,_0x2804f1){return _0x27a7(_0x2804f1-_0x3e0b9c._0x560ae5,_0x44dc5f);}_0x2fb8a9['on'](_0x5241ac(0x63d,0x54c,0x74f,0x678),_0x410e2d=>_0x29afa1(_0x410e2d===0x0));});}function shouldDisableLspDownload(_0x520a14=process['env']){const _0x1f91ca={_0x12f814:0x22d,_0x3a8f60:0x2f2,_0x54bf84:0x37f,_0x4f4f16:0x5bc,_0x58cd62:0x3b1,_0x271b26:0x505,_0x23c2a4:0x4af,_0x516cbb:0x522,_0x420325:0x55c,_0x374e41:0x41f,_0x1ef58c:0x686,_0x1f9e96:0x5ec},_0x611f92={_0x3eebe1:0x134,_0x43be1d:0x6a},_0x20aace={_0x38118f:0x19a};function _0x365ca4(_0x61444e,_0x3fad8e,_0x4ff69e,_0x2f4a67){return _0x23b1c2(_0x61444e-0x12c,_0x4ff69e,_0x3fad8e-0x127,_0x2f4a67-_0x20aace._0x38118f);}function _0x3cba7f(_0xbeca9c,_0x3960f3,_0x154e4a,_0x13e88e){return _0x23b1c2(_0xbeca9c-_0x611f92._0x3eebe1,_0xbeca9c,_0x154e4a-0x51,_0x13e88e-_0x611f92._0x43be1d);}const _0xf2870=_0x520a14[_0x3cba7f(_0x1f91ca._0x12f814,_0x1f91ca._0x3a8f60,_0x1f91ca._0x54bf84,0x461)]?.[_0x3cba7f(_0x1f91ca._0x4f4f16,_0x1f91ca._0x58cd62,_0x1f91ca._0x271b26,_0x1f91ca._0x23c2a4)]();return _0xf2870===_0x365ca4(_0x1f91ca._0x516cbb,0x541,_0x1f91ca._0x420325,_0x1f91ca._0x374e41)||_0xf2870==='1'||_0xf2870===_0x365ca4(_0x1f91ca._0x1ef58c,0x57d,_0x1f91ca._0x1f9e96,0x65e)||_0xf2870==='on';}function getLspPackageDir(_0x2eaace){const _0x56b20e={_0x5bc510:0x3c4,_0x54688e:0x377,_0x89c936:0x290,_0x409caf:0x1d2,_0x2b7b7e:0x4c7},_0x575c98={_0x504cec:0x187},_0x3bc56f={_0x32a526:0x165,_0x3a57a8:0x25,_0x1bce3e:0x41};function _0x5c221f(_0x3b2b1c,_0x2611dd,_0x28889b,_0x28aa37){return _0x57b9de(_0x3b2b1c-_0x3bc56f._0x32a526,_0x28889b,_0x3b2b1c-_0x3bc56f._0x3a57a8,_0x28aa37-_0x3bc56f._0x1bce3e);}function _0xa72af4(_0x3bcbb6,_0x5128d5,_0x565b44,_0xaec2a3){return _0x57b9de(_0x3bcbb6-0x190,_0xaec2a3,_0x3bcbb6- -0x121,_0xaec2a3-_0x575c98._0x504cec);}return _0x16b600[_0x5c221f(_0x56b20e._0x5bc510,0x2db,0x2a2,_0x56b20e._0x54688e)](_0x5ae67b[_0xa72af4(_0x56b20e._0x89c936,0x17c,0x2df,_0x56b20e._0x409caf)](),_0x5c221f(0x3d8,0x522,0x404,_0x56b20e._0x2b7b7e),'lsp','packages',sanitizePackageName(_0x2eaace));}function getLspBinDir(_0x49d6a3){const _0x299449={_0x5bf7ea:0x4d8,_0x25dbe0:0x3c2,_0x3bd2d6:0x4f9,_0x486574:0x4e6,_0x4b1cb2:0x6d9},_0x178762={_0x1ed309:0xea,_0x54c9ac:0x186},_0x57a7fc={_0x48b758:0x1e2,_0x548c3a:0xa5};function _0x245d9c(_0x40e6ba,_0x4428ec,_0x5e1961,_0x23dfc6){return _0x23b1c2(_0x40e6ba-_0x57a7fc._0x48b758,_0x40e6ba,_0x23dfc6-0x227,_0x23dfc6-_0x57a7fc._0x548c3a);}function _0x29f90d(_0x1d0e09,_0x2e601c,_0x5f5406,_0x45e8ed){return _0x57b9de(_0x1d0e09-_0x178762._0x1ed309,_0x1d0e09,_0x5f5406-0x151,_0x45e8ed-_0x178762._0x54c9ac);}return _0x16b600[_0x29f90d(_0x299449._0x5bf7ea,_0x299449._0x25dbe0,0x4f0,0x5a9)](getLspPackageDir(_0x49d6a3),_0x29f90d(_0x299449._0x3bd2d6,0x64a,0x613,_0x299449._0x486574),_0x29f90d(0x570,0x72e,0x69d,_0x299449._0x4b1cb2));}async function findPackageBinary(_0x1de2c9,_0x4d3539){const _0x291bec={_0x3fdfb9:0x5a4,_0x2bef7b:0x55a,_0x284d37:0x1a3,_0x2357d2:0x82,_0x99b592:0x2c6,_0x4a6948:0x316,_0x48221b:0x350,_0x4e0313:0x45f,_0x17c910:0x413,_0x10cfa2:0x310},_0x387d9b={_0x3e1186:0xb1},_0x565af3={_0x2dbb12:0x8,_0x2be322:0x1c9};function _0x46141c(_0x42085c,_0x5266f7,_0x7779cd,_0x360c47){return _0x23b1c2(_0x42085c-_0x565af3._0x2dbb12,_0x7779cd,_0x5266f7-_0x565af3._0x2be322,_0x360c47-0x148);}function _0x574fa9(_0x18f5e6,_0x460f2f,_0x3d1f61,_0xf150bd){return _0x23b1c2(_0x18f5e6-_0x387d9b._0x3e1186,_0xf150bd,_0x18f5e6- -0x14e,_0xf150bd-0x9f);}let _0x1089fc=_0x16b600[_0x46141c(_0x291bec._0x3fdfb9,0x506,_0x291bec._0x2bef7b,0x3b8)](_0x4d3539);const _0x2a0f21=binaryNameForPlatform(_0x1de2c9);while(!![]){const _0x49d57c=_0x16b600[_0x574fa9(_0x291bec._0x284d37,0x83,_0x291bec._0x2357d2,0x5b)](_0x1089fc,_0x574fa9(_0x291bec._0x99b592,0x3ea,0x40b,_0x291bec._0x4a6948),_0x574fa9(_0x291bec._0x48221b,_0x291bec._0x4e0313,0x297,_0x291bec._0x17c910),_0x2a0f21);if(await exists(_0x49d57c))return _0x49d57c;const _0x1c97d0=_0x16b600[_0x574fa9(0x26e,0x201,_0x291bec._0x10cfa2,0x1ef)](_0x1089fc);if(_0x1c97d0===_0x1089fc)return void 0x0;_0x1089fc=_0x1c97d0;}}async function findPathBinary(_0x310ee,_0x540494){const _0x3b8fbe={_0x3a0834:0x58c,_0x342702:0x5d7,_0xd9947d:0x5fb},_0x24812e={_0x285c81:0x181,_0x59fd92:0x30a,_0x6fc4bc:0x1ec},_0x2758a2={_0x1eadbb:0x1d5,_0xce0182:0xce},_0x368ca8=getLspBinDir(_0x540494),_0xd29780=[_0x368ca8,process[_0xe6a50(0x616,0x469,0x4eb,_0x3b8fbe._0x3a0834)]['PATH']]['filter'](Boolean)[_0x123203(0x59c,_0x3b8fbe._0x342702,0x563,_0x3b8fbe._0xd9947d)](_0x16b600[_0xe6a50(0x6ad,0x65f,0x649,0x528)]);function _0xe6a50(_0x1c79d3,_0x4d77c8,_0x142588,_0x121005){return _0x57b9de(_0x1c79d3-_0x2758a2._0x1eadbb,_0x4d77c8,_0x142588-0xe9,_0x121005-_0x2758a2._0xce0182);}function _0x123203(_0x508fc6,_0x117a73,_0xf548e4,_0x1767ba){return _0x23b1c2(_0x508fc6-_0x24812e._0x285c81,_0x117a73,_0x1767ba-_0x24812e._0x59fd92,_0x1767ba-_0x24812e._0x6fc4bc);}try{return await _0x259d3(_0x310ee,{'path':_0xd29780});}catch{return void 0x0;}}async function resolvePackageBinary(_0x1c7f33){const _0x5bbc53={_0x1e6b76:0x62e,_0x4bebb0:0x615,_0x4237cc:0x399,_0x5152ca:0x2,_0x3ddb1c:0x120,_0x47520e:0x418,_0x2cf917:0x367,_0x176f17:0x3b2,_0x14bb85:0xd7,_0x48b275:0xd,_0x51dc14:0x527,_0x409267:0x38c,_0x34a73e:0x3fb,_0x35d830:0x4df,_0x5918e9:0xd4,_0x3a6211:0xbb,_0x17e32a:0x6d,_0x55f63f:0x75,_0x3f67e0:0x180,_0x890baa:0x20a},_0x4c4bf7={_0x51cba9:0x645,_0x45c0cf:0x610,_0x22a088:0x597,_0x1b0744:0x529,_0x47b794:0x4d0,_0xbdc591:0x79e,_0xae8014:0x5e1,_0x497e4d:0x660},_0x1ae865={_0x3efaf2:0x176},_0x369305={_0x202baa:0x50},_0x1ee257={_0x2890ad:0x40f};function _0x725279(_0xfb3bc6,_0x33fd47,_0x49742a,_0x1cb462){return _0x57b9de(_0xfb3bc6-0x89,_0x33fd47,_0x49742a- -_0x1ee257._0x2890ad,_0x1cb462-0x10b);}const _0x4187b7=_0x1c7f33[_0x725279(-0x1a5,-0x241,-0x112,0x3f)]??_0x1c7f33[_0x380296(_0x5bbc53._0x1e6b76,_0x5bbc53._0x4bebb0,_0x5bbc53._0x4237cc,0x4df)],_0x1771d5=await findPackageBinary(_0x4187b7,_0x1c7f33['startDir']);if(_0x1771d5)return _0x1771d5;const _0x146508=await findPathBinary(_0x4187b7,_0x1c7f33[_0x725279(0x130,_0x5bbc53._0x5152ca,_0x5bbc53._0x3ddb1c,-0xd)]);if(_0x146508)return _0x146508;const _0x149b61=_0x1c7f33[_0x380296(_0x5bbc53._0x47520e,_0x5bbc53._0x2cf917,0x480,_0x5bbc53._0x176f17)]??process[_0x725279(_0x5bbc53._0x14bb85,-0xf9,-_0x5bbc53._0x48b275,0x3)];if(shouldDisableLspDownload(_0x149b61))return void 0x0;const _0xd82fd5=getLspPackageDir(_0x1c7f33[_0x380296(_0x5bbc53._0x51dc14,_0x5bbc53._0x409267,_0x5bbc53._0x34a73e,_0x5bbc53._0x35d830)]),_0x5124d2=_0x1c7f33[_0x725279(0xfc,_0x5bbc53._0x5918e9,0x120,0x96)]+':'+_0x4187b7;function _0x380296(_0xf4290c,_0x52c2f5,_0x234b3c,_0x4a0c09){return _0x57b9de(_0xf4290c-0x1f,_0xf4290c,_0x4a0c09- -_0x369305._0x202baa,_0x4a0c09-0x1a3);}let _0x1355e4=installPromises[_0x725279(-_0x5bbc53._0x3a6211,-_0x5bbc53._0x17e32a,-_0x5bbc53._0x55f63f,-0xf2)](_0x5124d2);!_0x1355e4&&(_0x1355e4=((async()=>{const _0x29be03={_0x2c9042:0xca};function _0x786f8f(_0x32f0e3,_0x33416c,_0x30f7e1,_0x311119){return _0x725279(_0x32f0e3-_0x29be03._0x2c9042,_0x311119,_0x32f0e3-0x64b,_0x311119-0x1b);}await mkdir(_0xd82fd5,{'recursive':!![]});function _0x52f6e1(_0x12d5f4,_0x37034c,_0x5ae09f,_0x103c13){return _0x725279(_0x12d5f4-_0x1ae865._0x3efaf2,_0x5ae09f,_0x103c13-0x540,_0x103c13-0x71);}const _0x5037ff=await runNpmInstall(_0xd82fd5,_0x1c7f33[_0x52f6e1(_0x4c4bf7._0x51cba9,_0x4c4bf7._0x45c0cf,_0x4c4bf7._0x22a088,0x660)],_0x149b61);if(!_0x5037ff)return void 0x0;const _0x341918=_0x16b600[_0x52f6e1(0x4e5,0x4ad,_0x4c4bf7._0x1b0744,_0x4c4bf7._0x47b794)](getLspBinDir(_0x1c7f33[_0x52f6e1(_0x4c4bf7._0xbdc591,_0x4c4bf7._0xae8014,0x5ce,_0x4c4bf7._0x497e4d)]),binaryNameForPlatform(_0x4187b7));return await exists(_0x341918)?_0x341918:void 0x0;})()),installPromises[_0x380296(0x2b7,_0x5bbc53._0x3f67e0,_0x5bbc53._0x890baa,0x2a7)](_0x5124d2,_0x1355e4));try{return await _0x1355e4;}catch{return void 0x0;}finally{installPromises['delete'](_0x5124d2);}}var TYPESCRIPT_EXTENSIONS=[_0x57b9de(0x562,0x58a,0x55c,0x5f9),_0x23b1c2(0x58e,0x5f2,0x4a8,0x5e7),_0x57b9de(0x229,0x3ff,0x372,0x43c),_0x23b1c2(0x3b8,0x4c7,0x40b,0x304),'.mjs',_0x23b1c2(0x2b7,0x291,0x35e,0x3cc),_0x23b1c2(0x4e2,0x3dd,0x3d6,0x47a),_0x57b9de(0x4ff,0x4f3,0x531,0x4fe)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x23b1c2(0x47d,0x466,0x39b,0x3c3)],TYPESCRIPT_ROOT_MARKERS=[_0x23b1c2(0x447,0x2e0,0x306,0x443),_0x57b9de(0x4c4,0x499,0x4ce,0x560),_0x57b9de(0x454,0x4a3,0x3d7,0x3c9),'pnpm-lock.yaml',_0x23b1c2(0x37f,0x2f9,0x27b,0x2ee),'tsconfig.json',_0x23b1c2(0x48a,0x625,0x4db,0x4c8),_0x23b1c2(0x15d,0x249,0x292,0x3e2)],BIOME_ROOT_MARKERS=[_0x57b9de(0x355,0x54b,0x4a7,0x477),_0x57b9de(0x602,0x523,0x52a,0x466),'package-lock.json',_0x57b9de(0x52e,0x4fa,0x4ce,0x5c6),_0x57b9de(0x3fc,0x3c1,0x3d7,0x4ad),_0x57b9de(0x617,0x479,0x4df,0x459),_0x57b9de(0x330,0x2c5,0x329,0x42a),_0x23b1c2(0x1d0,0x373,0x292,0x1cb)];async function exists2(_0x514613){try{return await _0x3cc5cf(_0x514613),!![];}catch{return![];}}async function findUp(_0x344d2a,_0x1240f2){const _0xd4c835={_0x187bad:0xb0,_0x597374:0x19d,_0x2ab7b3:0x31,_0x26078b:0x36,_0x1d5061:0x3a,_0x1d3f07:0x93,_0x3f9037:0x24e,_0x49aee5:0x29d,_0x18ba2a:0x179,_0x2b6ad5:0x18e},_0x94e8dd={_0x5d160c:0x72},_0x333500={_0x4b748e:0x10e,_0x3bb795:0x3ed};function _0xaee3(_0x3df6f9,_0x18c702,_0x2351ab,_0x2483a6){return _0x23b1c2(_0x3df6f9-_0x333500._0x4b748e,_0x2351ab,_0x3df6f9- -_0x333500._0x3bb795,_0x2483a6-0xb1);}let _0x231692=_0x5b6570[_0xaee3(-_0xd4c835._0x187bad,-_0xd4c835._0x597374,0x29,-0x42)](_0x344d2a);function _0x5d78c4(_0x491b7a,_0x331e94,_0x1d2188,_0x5c3ac8){return _0x57b9de(_0x491b7a-0x1bc,_0x491b7a,_0x5c3ac8- -0x2dc,_0x5c3ac8-_0x94e8dd._0x5d160c);}const _0x19102a=_0x5b6570['extname'](_0x231692);if(_0x19102a)_0x231692=_0x5b6570[_0xaee3(-_0xd4c835._0x2ab7b3,-_0xd4c835._0x26078b,-0x49,_0xd4c835._0x1d5061)](_0x231692);while(!![]){for(const _0xaf0c34 of _0x1240f2){if(await exists2(_0x5b6570[_0xaee3(-0xfc,0x56,-_0xd4c835._0x1d3f07,-_0xd4c835._0x3f9037)](_0x231692,_0xaf0c34)))return _0x231692;}const _0x1f50dc=_0x5b6570[_0x5d78c4(_0xd4c835._0x49aee5,0x211,_0xd4c835._0x18ba2a,_0xd4c835._0x2b6ad5)](_0x231692);if(_0x1f50dc===_0x231692)return void 0x0;_0x231692=_0x1f50dc;}}async function hasDenoRoot(_0x34eca1){const _0x53dfcd={_0x415d01:0x4e,_0x210c4e:0x1d,_0x13654d:0x5a,_0x38552e:0x550,_0x339512:0x3ce,_0x2d7eef:0x33,_0x1bc557:0x5a,_0x1f83ca:0xe8,_0x398334:0x6f,_0x111154:0xb4},_0x66c3ec={_0x5f0644:0x148,_0x268a1c:0x34b},_0x4228d4={_0x3e1b37:0x1ab};function _0x317dec(_0x4cd2f2,_0x3d59d8,_0x4ae996,_0x4be3b8){return _0x23b1c2(_0x4cd2f2-0xfb,_0x3d59d8,_0x4ae996-_0x4228d4._0x3e1b37,_0x4be3b8-0x37);}function _0x1bbe9f(_0x16e1bb,_0x54e8a0,_0xc01d60,_0x65515){return _0x23b1c2(_0x16e1bb-_0x66c3ec._0x5f0644,_0x16e1bb,_0xc01d60- -_0x66c3ec._0x268a1c,_0x65515-0x10e);}return await exists2(_0x5b6570[_0x1bbe9f(_0x53dfcd._0x415d01,-_0x53dfcd._0x210c4e,-_0x53dfcd._0x13654d,-0xd9)](_0x34eca1,_0x317dec(0x4a4,_0x53dfcd._0x38552e,0x439,_0x53dfcd._0x339512)))||await exists2(_0x5b6570[_0x1bbe9f(0xe,-_0x53dfcd._0x2d7eef,-_0x53dfcd._0x1bc557,_0x53dfcd._0x1f83ca)](_0x34eca1,_0x1bbe9f(0x191,-_0x53dfcd._0x398334,_0x53dfcd._0x111154,0x47)));}async function resolveTsserverPath(_0x4b1be9){const _0x4ffe4e={_0x120506:0x2fd,_0x50c790:0x459,_0x2ad704:0x4ef,_0x17e188:0x3f4,_0x1e029a:0x3a9,_0x2d0d28:0x283,_0x1b4c78:0x765,_0x3a46f2:0x5eb,_0x29c4cb:0x44b,_0x221061:0x2a4,_0x2ba9f5:0x39c,_0x5719f0:0x65b,_0x1e3ba1:0x5f4,_0x137b6c:0x6df,_0xbb90a2:0x615,_0x26e966:0x41a,_0x2af299:0x49f,_0xce0bdc:0x3f4,_0x513087:0x355,_0x19ccac:0x55f,_0x2ed3c8:0x56a,_0x260257:0x147,_0x3f3d25:0x386,_0x5f3c99:0x4b5,_0x3df819:0x3fa,_0x2e1ec8:0x4b6},_0x45cb10={_0x8a302c:0x20},_0x246b55={_0xf71937:0x174,_0x2dbc2e:0x324,_0x5adf23:0x55};let _0x5a8833=_0x5b6570['resolve'](_0x4b1be9);while(!![]){const _0x6bd1c6=_0x5b6570[_0x3bd2dc(0x41e,0x299,0x2d1,_0x4ffe4e._0x120506)](_0x5a8833,_0x3bd2dc(_0x4ffe4e._0x50c790,_0x4ffe4e._0x2ad704,_0x4ffe4e._0x17e188,0x3bd),'typescript',_0x3bd2dc(_0x4ffe4e._0x1e029a,0x1bc,_0x4ffe4e._0x2d0d28,0x374),_0x3a0060(0x669,_0x4ffe4e._0x1b4c78,_0x4ffe4e._0x3a46f2,0x6d8));if(await exists2(_0x6bd1c6))return _0x6bd1c6;const _0x442b5d=_0x5b6570[_0x3bd2dc(_0x4ffe4e._0x29c4cb,_0x4ffe4e._0x221061,_0x4ffe4e._0x2ba9f5,0x48f)](_0x5a8833);if(_0x442b5d===_0x5a8833)break;_0x5a8833=_0x442b5d;}function _0x3a0060(_0xe2beeb,_0x50c11f,_0x534426,_0x454617){return _0x23b1c2(_0xe2beeb-_0x246b55._0xf71937,_0xe2beeb,_0x454617-_0x246b55._0x2dbc2e,_0x454617-_0x246b55._0x5adf23);}const _0x145ddb=getLspPackageDir(_0x3a0060(0x52a,0x5ca,0x4d3,0x56a)),_0x13d65b=await resolvePackageBinary({'packageName':_0x3a0060(0x4d4,0x655,_0x4ffe4e._0x5719f0,0x56a),'binaryName':'tsc','startDir':_0x4b1be9});if(!_0x13d65b)return void 0x0;const _0xcae7ed=_0x5b6570[_0x3a0060(_0x4ffe4e._0x1e3ba1,_0x4ffe4e._0x1b4c78,_0x4ffe4e._0x137b6c,_0x4ffe4e._0xbb90a2)](_0x145ddb,_0x3bd2dc(_0x4ffe4e._0x26e966,_0x4ffe4e._0x2af299,_0x4ffe4e._0xce0bdc,_0x4ffe4e._0x513087),_0x3a0060(0x50d,0x657,_0x4ffe4e._0x19ccac,_0x4ffe4e._0x2ed3c8),_0x3bd2dc(_0x4ffe4e._0x260257,_0x4ffe4e._0x3f3d25,_0x4ffe4e._0x2d0d28,0x2bb),_0x3bd2dc(_0x4ffe4e._0x5f3c99,_0x4ffe4e._0x3df819,0x394,_0x4ffe4e._0x2e1ec8));function _0x3bd2dc(_0x3f8fcc,_0x5484d9,_0x349850,_0x2d9d34){return _0x23b1c2(_0x3f8fcc-0xc4,_0x3f8fcc,_0x349850- -_0x45cb10._0x8a302c,_0x2d9d34-0x106);}return await exists2(_0xcae7ed)?_0xcae7ed:void 0x0;}var TypeScriptServer={'id':'typescript','name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x3fdf32){const _0x426d08=await findUp(_0x3fdf32,TYPESCRIPT_ROOT_MARKERS);if(!_0x426d08)return void 0x0;return await hasDenoRoot(_0x426d08)?void 0x0:_0x426d08;},async 'spawn'(_0x12f547){const _0x50862a={_0x2be6a1:0x642,_0x239206:0x53c,_0x224a2e:0x46e,_0x25f80f:0x564,_0x22fac1:0x456},_0x5d6522={_0x415011:0x120},_0x5ca869={_0x166277:0xd1,_0x4744ba:0x154},_0x3edd41=await resolveTsserverPath(_0x12f547);function _0x4df3f0(_0x111568,_0x319fc9,_0x54eaf4,_0x517232){return _0x57b9de(_0x111568-0xbc,_0x54eaf4,_0x111568-_0x5ca869._0x166277,_0x517232-_0x5ca869._0x4744ba);}function _0x2f01f7(_0x5e243f,_0x38e3b7,_0x590513,_0x1d7733){return _0x23b1c2(_0x5e243f-0x1d3,_0x38e3b7,_0x5e243f-_0x5d6522._0x415011,_0x1d7733-0x68);}if(!_0x3edd41)return void 0x0;const _0x4d0f9e=await resolvePackageBinary({'packageName':_0x2f01f7(0x505,_0x50862a._0x2be6a1,_0x50862a._0x239206,_0x50862a._0x224a2e),'binaryName':_0x4df3f0(_0x50862a._0x25f80f,0x482,_0x50862a._0x22fac1,0x425),'startDir':_0x12f547});if(!_0x4d0f9e)return void 0x0;return{'process':_0x3586d2(_0x4d0f9e,[_0x4df3f0(0x640,0x50e,0x53e,0x54d)],{'cwd':_0x12f547,'stdio':'pipe'}),'initialization':{'tsserver':{'path':_0x3edd41}}};}},BiomeServer={'id':_0x57b9de(0x4ca,0x3b2,0x40b,0x44e),'name':_0x57b9de(0x3bb,0x458,0x50d,0x4b7),'extensions':BIOME_EXTENSIONS,async 'root'(_0x29621f){return findUp(_0x29621f,BIOME_ROOT_MARKERS);},async 'spawn'(_0x4f4242){const _0x96c117={_0x3fca5c:0x335,_0x2b3709:0x30e,_0x2ae174:0x33c,_0x43f44c:0x3e8,_0x540dc4:0x388,_0xe6abe7:0x1a6,_0x4ddf80:0x286,_0x475e16:0x2ca,_0x3c52c3:0x3e8,_0x30d399:0x49f,_0x770808:0x350},_0x1f5686={_0x15780f:0x52},_0x41b2a6=await findPackageBinary(_0x235c38(0x349,0x284,0x18e,_0x96c117._0x3fca5c),_0x4f4242)??await resolvePackageBinary({'packageName':_0x235c38(0x33f,_0x96c117._0x2b3709,_0x96c117._0x2ae174,_0x96c117._0x43f44c),'binaryName':_0x235c38(_0x96c117._0x540dc4,0x284,_0x96c117._0xe6abe7,_0x96c117._0x4ddf80),'startDir':_0x4f4242});function _0x235c38(_0x257e9c,_0x360e2d,_0x1cc80c,_0x4141d4){return _0x57b9de(_0x257e9c-0x1b,_0x4141d4,_0x360e2d- -0x187,_0x4141d4-0x2f);}if(!_0x41b2a6)return void 0x0;function _0x11c6a2(_0x2c0076,_0x37081c,_0x23b819,_0x23e122){return _0x57b9de(_0x2c0076-_0x1f5686._0x15780f,_0x23e122,_0x2c0076- -0xb,_0x23e122-0x1e3);}return{'process':_0x3586d2(_0x41b2a6,['lsp-proxy',_0x235c38(_0x96c117._0x475e16,_0x96c117._0x3c52c3,_0x96c117._0x30d399,_0x96c117._0x770808)],{'cwd':_0x4f4242,'stdio':_0x235c38(0x2f7,0x3e6,0x418,0x4ac)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x1081a4){const _0x9c71a2={_0x1f4260:0x42b,_0x3d4c33:0x3d3,_0x1d9085:0x4ab,_0x2eeff8:0x328,_0x2e52b5:0x2f6,_0x29abcf:0x36a},_0x484e95={_0x24b6d7:0x154,_0x18ee0c:0x50c};function _0x5aab54(_0x24163c,_0x379026,_0x145640,_0x1a0888){return _0x57b9de(_0x24163c-_0x484e95._0x24b6d7,_0x145640,_0x24163c- -_0x484e95._0x18ee0c,_0x1a0888-0xd9);}function _0x406d32(_0xcacb0b,_0x37e6e1,_0x472ca9,_0x24a286){return _0x57b9de(_0xcacb0b-0x10d,_0x37e6e1,_0x24a286- -0xb7,_0x24a286-0xdd);}const _0x34dc15=_0x5b6570['extname'](_0x1081a4)[_0x406d32(_0x9c71a2._0x1f4260,_0x9c71a2._0x3d4c33,0x4c6,_0x9c71a2._0x1d9085)]();return BUILTIN_LSP_SERVERS[_0x406d32(_0x9c71a2._0x2eeff8,_0x9c71a2._0x2e52b5,_0x9c71a2._0x29abcf,0x3d1)](_0xfdd16a=>_0xfdd16a[_0x5aab54(-0xac,-0x11d,-0x87,0xa)][_0x5aab54(-0x9b,0x7d,-0x1b6,-0xb4)](_0x34dc15));}function stateKey(_0x4e2d40,_0x2fbaa7){return _0x2fbaa7+':'+_0x4e2d40['id'];}function diagnosticsKeyToPath(_0x45dd59){const _0x4be5b7={_0x53bbd4:0x10e,_0x2ea8eb:0x64,_0x51aa6e:0x1ac},_0x38433b={_0x6dce90:0x30d,_0x51e820:0x12c},_0x2f833d={_0x5369af:0x19f};function _0x1ad68d(_0x1b6402,_0x50de89,_0x2da314,_0x53c44c){return _0x23b1c2(_0x1b6402-0x8a,_0x1b6402,_0x53c44c- -0x337,_0x53c44c-_0x2f833d._0x5369af);}if(!_0x45dd59[_0x4a8270(0x146,-0x6d,_0x4be5b7._0x53bbd4,0x62)](_0x1ad68d(_0x4be5b7._0x2ea8eb,_0x4be5b7._0x51aa6e,0x216,0x1ad)))return _0x45dd59;function _0x4a8270(_0x2abe4b,_0x3b44a4,_0x1787fa,_0xaf9549){return _0x23b1c2(_0x2abe4b-0x1c5,_0x2abe4b,_0xaf9549- -_0x38433b._0x6dce90,_0xaf9549-_0x38433b._0x51e820);}return fileURLToPath(_0x45dd59);}function nextFileVersion(_0x47f07c,_0x15a6ab){const _0x1858a3={_0x27188f:0x475,_0x767ffe:0x3c9,_0x5be8b:0x2cc,_0x508bde:0x341,_0x56514d:0x3d1,_0x455a33:0x268},_0x8c78de={_0x1e26af:0x19e},_0x4b6002={_0x431bb0:0xe5,_0x16b157:0x14c};function _0x1b6628(_0xc3bb78,_0x5c7f45,_0x50ecda,_0x4b6e0f){return _0x23b1c2(_0xc3bb78-0x140,_0x4b6e0f,_0x50ecda-_0x4b6002._0x431bb0,_0x4b6e0f-_0x4b6002._0x16b157);}const _0x4270e4=(_0x47f07c[_0x1b6628(_0x1858a3._0x27188f,0x4f8,_0x1858a3._0x767ffe,0x37f)][_0x1b6628(_0x1858a3._0x5be8b,_0x1858a3._0x508bde,_0x1858a3._0x56514d,0x2dd)](_0x15a6ab)??0x1)+0x1;_0x47f07c['fileVersions'][_0x3c5251(0x2b9,0x1ff,_0x1858a3._0x455a33,0x26b)](_0x15a6ab,_0x4270e4);function _0x3c5251(_0xc5868,_0xfe4072,_0x45af11,_0x378cfc){return _0x57b9de(_0xc5868-_0x8c78de._0x1e26af,_0x45af11,_0xfe4072- -0xf8,_0x378cfc-0x1ec);}return _0x4270e4;}async function collectClientResults(_0x5f48bc){const _0x91939c={_0x29468e:0x519},_0x42cc34={_0x196032:0x11d},_0x557c23={_0x54ae94:0x52};function _0x104672(_0x4349b8,_0x2adc2d,_0xb653e1,_0x470ef5){return _0x57b9de(_0x4349b8-0x1d2,_0x470ef5,_0x4349b8-0x141,_0x470ef5-_0x557c23._0x54ae94);}const _0x35bd15=await Promise[_0x25cb25(0x27c,0x39f,0x264,0x2ce)](_0x5f48bc);function _0x25cb25(_0x23484b,_0x58f831,_0x848217,_0x1694d6){return _0x23b1c2(_0x23484b-0xd7,_0x1694d6,_0x58f831-_0x42cc34._0x196032,_0x1694d6-0x14f);}return _0x35bd15[_0x25cb25(0x59a,0x44e,_0x91939c._0x29468e,0x3fd)](_0x4b308d=>_0x4b308d[_0x104672(0x611,0x5fa,0x687,0x709)]===_0x25cb25(0x515,0x41d,0x45a,0x53f)?_0x4b308d[_0x25cb25(0x36b,0x473,0x3cc,0x503)]:[]);}function createLspService(_0x110de5={}){const _0xf60581={_0x343163:0x661},_0x2717c1={_0xf3321b:0x6},_0x1109a3={_0x2376a4:0x1ba,_0x3fa9da:0x1d6,_0x37f12e:0x162,_0x11e975:0x143,_0xca9c69:0x68,_0x6acc5c:0x17c,_0x3504b0:0x12d,_0x3e9ac6:0x369,_0xcd8995:0x272,_0x2ad8f4:0xe1,_0x1309b6:0x185,_0x580825:0x2e,_0x2567ee:0x67,_0x3ead29:0x5c,_0x1d6df1:0x3c,_0x2e0248:0x298,_0x2e578e:0x169,_0x15df9d:0x218,_0x26bdaf:0x173,_0x1f339c:0x35c,_0x397621:0x1e4,_0x41bad5:0xf3,_0x1d584a:0x220,_0x12755f:0x67},_0x4acfe5={_0x1b20af:0x2cb},_0x3743fb={_0xdb0ac9:0xaf},_0x24b173={_0x44d09a:0xe7},_0x510506={_0x134560:0x5cf,_0x415335:0x6b2,_0x5c74fe:0x67a},_0x709598={_0x2cfcc8:0x85,_0x27f860:0x17d},_0x5f342d={_0x1aaceb:0x137},_0x59ed72={_0x5661de:0x58,_0x1b09f5:0x17a,_0x5afc91:0x10},_0x22fd57={_0x1a72c0:0x1be,_0x4ecd4d:0x1a4},_0x5580cf={_0x23c5a7:0x24f,_0x2cc8a1:0x1e2},_0x4b7e26={_0x2f66d:0x29c,_0x3927ae:0x25,_0x8c1b8e:0x1c3},_0x2b6e49={_0x4d9cac:0x168,_0x31966a:0x85,_0x1ce06c:0x12a},_0x3effbb={_0x1ebd1c:0x3d0},_0x34e8e3={_0x298abf:0xd4,_0x3fe6d1:0x124},_0x35a2d2={_0x83ce83:0x47b,_0x100dee:0x378,_0x1af755:0x5c2,_0x1c3a15:0x6bc,_0x3f2bb5:0x651},_0x28e710={_0x516ff5:0xd1,_0x5497c2:0x13d,_0x365f81:0xa2},_0x2b2558={_0x5ebadb:0x3a7,_0x9ebd7e:0x73,_0x2879db:0x7},_0x588ea1={_0xe7a862:0x6a,_0x4016f8:0x18f,_0x4dcaf7:0xa3},_0x2aef4d={_0x3bd85e:0x500,_0x44745c:0x1bb},_0x57ea5f={_0x437572:0x8a,_0x122a5c:0x93},_0x68360f={_0x2186fc:0x369,_0x473ab3:0x463,_0x58f0f5:0x3d1},_0x3fc3b9={_0x237fb4:0x63a,_0x3d0a45:0x557},_0x565d9f={_0x532d93:0x205},_0x5a9fed={_0x2b1ed8:0x3b1,_0x147b8f:0x5aa,_0x1e4a8f:0x465,_0x2a3163:0x204,_0x304f64:0x61,_0x39f371:0x56,_0x461dd7:0x22a},_0x3cb019={_0x3680d9:0xc,_0x3b0f35:0x9f},_0x1bc3fa={_0x4922cc:0x512,_0x48ecde:0x2de,_0xd0b949:0x373,_0x34c77e:0x312,_0x18d958:0x2a0,_0x11e251:0x386,_0xbb4c9f:0x1ff,_0x1d2357:0x410,_0x29f17d:0x3c5,_0x5c20e3:0x260,_0x2b571e:0x3d1,_0x2fbe20:0x200,_0x4d2319:0x208,_0x538db3:0x15f,_0x7d0cc0:0x140},_0x5775be={_0x5e893a:0xd3,_0x42b93b:0x17,_0x4428e2:0xc2,_0x4c8806:0x338,_0x482c31:0x2e7,_0x379581:0x245,_0x14994f:0x4ae,_0x395fa2:0x44a,_0x557c79:0x7e,_0x249b49:0x2f,_0x2739cf:0xaa,_0xb3cdbc:0x88,_0x345006:0x184,_0x4bf2cd:0x10a,_0x10d8af:0xde,_0x5dcd04:0x44a,_0x50243e:0x43f,_0x2d8b95:0x4d4,_0xcb3360:0x379,_0x42cc0a:0x290,_0x1dd5c7:0x2f3,_0x4a249c:0x331,_0x309dfe:0x284},_0x30f2f4={_0x5b3823:0x6f},_0x5b87e9={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x178edb=()=>_0x110de5[_0x5cb44f(0x581,0x4e6,0x504,0x531)]!==![];async function _0x1a93a8(_0x11acdd,_0x10b95f){const _0x1a7194={_0x4eed62:0x1c5,_0x49f9a3:0x1e0};function _0x5d81b0(_0x2ddace,_0x53365b,_0x1ce3fd,_0x1988d5){return _0x5cb44f(_0x1ce3fd- -0x122,_0x53365b,_0x1ce3fd-0x1cb,_0x1988d5-_0x30f2f4._0x5b3823);}const _0x22f8d6=stateKey(_0x11acdd,_0x10b95f),_0x89f392=_0x5b87e9[_0x35c87c(0x534,0x574,_0x1bc3fa._0x4922cc,0x663)][_0x5d81b0(_0x1bc3fa._0x48ecde,_0x1bc3fa._0xd0b949,0x268,0x347)](_0x2f2ef8=>_0x2f2ef8[_0x5d81b0(0x16b,0x2c5,0x23d,0x216)]===_0x11acdd['id']&&_0x2f2ef8[_0x5d81b0(0x3f1,0x40a,0x2ba,0x304)]===_0x10b95f);if(_0x89f392)return _0x89f392;if(_0x5b87e9[_0x5d81b0(_0x1bc3fa._0x34c77e,_0x1bc3fa._0x18d958,0x2b0,0x2bb)][_0x5d81b0(_0x1bc3fa._0x11e251,_0x1bc3fa._0xbb4c9f,0x296,0x16b)](_0x22f8d6))return void 0x0;const _0x59c55b=_0x5b87e9[_0x35c87c(_0x1bc3fa._0x1d2357,_0x1bc3fa._0x29f17d,0x358,_0x1bc3fa._0x5c20e3)][_0x35c87c(0x3cf,0x487,_0x1bc3fa._0x2b571e,0x31f)](_0x22f8d6);if(_0x59c55b)return _0x59c55b;const _0x12d118=((async()=>{const _0xb429ba={_0x44bfcc:0x2fd,_0x5c3353:0xcb},_0x2eb498={_0x2adaff:0x1e4};function _0x16e43c(_0x3e78c9,_0x44335b,_0xc942b8,_0x442c80){return _0x35c87c(_0x3e78c9-_0x2eb498._0x2adaff,_0x44335b,_0x3e78c9- -0xc8,_0x442c80-0xe1);}function _0x5ca48d(_0x516ded,_0x23809e,_0x16e662,_0x2cd10b){return _0x5d81b0(_0x516ded-0x12d,_0x2cd10b,_0x16e662- -_0xb429ba._0x44bfcc,_0x2cd10b-_0xb429ba._0x5c3353);}try{const _0x2a085c=await _0x11acdd[_0x5ca48d(_0x5775be._0x5e893a,_0x5775be._0x42b93b,_0x5775be._0x4428e2,0x6a)](_0x10b95f);if(!_0x2a085c)return _0x5b87e9[_0x16e43c(_0x5775be._0x4c8806,_0x5775be._0x482c31,0x379,_0x5775be._0x379581)][_0x16e43c(0x444,_0x5775be._0x14994f,0x559,0x541)](_0x22f8d6),void 0x0;const _0x12df42=await createLspClient({'server':_0x11acdd,'root':_0x10b95f,'handle':_0x2a085c}),_0x312020=_0x5b87e9[_0x16e43c(_0x5775be._0x395fa2,0x49c,0x50e,0x31a)][_0x5ca48d(-_0x5775be._0x557c79,-_0x5775be._0x249b49,-0x95,-_0x5775be._0x2739cf)](_0x45c001=>_0x45c001[_0x5ca48d(-0x17,-0x8e,-0xc0,-0x1c)]===_0x11acdd['id']&&_0x45c001[_0x5ca48d(0x4,0x3d,-0x43,-0xd)]===_0x10b95f);if(_0x312020)return await _0x12df42[_0x5ca48d(-_0x5775be._0xb3cdbc,-_0x5775be._0x345006,-_0x5775be._0x4bf2cd,-_0x5775be._0x10d8af)](),_0x312020;return _0x5b87e9[_0x16e43c(_0x5775be._0x5dcd04,0x378,0x47e,_0x5775be._0x50243e)][_0x16e43c(0x3b2,0x360,_0x5775be._0x2d8b95,_0x5775be._0xcb3360)](_0x12df42),_0x12df42;}catch{return _0x5b87e9['broken']['add'](_0x22f8d6),void 0x0;}finally{_0x5b87e9[_0x16e43c(_0x5775be._0x42cc0a,_0x5775be._0x1dd5c7,_0x5775be._0x4a249c,_0x5775be._0x309dfe)][_0x16e43c(0x47e,0x597,0x480,0x3a3)](_0x22f8d6);}})());_0x5b87e9[_0x5d81b0(0x286,_0x1bc3fa._0x2fbe20,_0x1bc3fa._0x4d2319,_0x1bc3fa._0x538db3)][_0x5d81b0(_0x1bc3fa._0x7d0cc0,0x197,0x1de,0x252)](_0x22f8d6,_0x12d118);function _0x35c87c(_0x540f3f,_0x324358,_0x393525,_0x1af389){return _0x5cb44f(_0x393525-0x2e,_0x324358,_0x393525-_0x1a7194._0x4eed62,_0x1af389-_0x1a7194._0x49f9a3);}return _0x12d118;}function _0x5cb44f(_0x4cf5dc,_0x3e9518,_0x20f3b8,_0x5b0422){return _0x57b9de(_0x4cf5dc-_0x3cb019._0x3680d9,_0x3e9518,_0x4cf5dc-0x9,_0x5b0422-_0x3cb019._0x3b0f35);}async function _0x14fa3e(_0x27e8f6,_0xf0a19e){const _0x12519e={_0xfdecda:0x34e,_0x3b8394:0x190};function _0x37ed00(_0x86cacf,_0x1862ae,_0x13d1c0,_0x4948b4){return _0x5cb44f(_0x13d1c0-0x93,_0x1862ae,_0x13d1c0-0x5b,_0x4948b4-0x5);}function _0x27efb5(_0x2ec4d9,_0x3b1405,_0x6c84e9,_0x242f39){return _0x5cb44f(_0x6c84e9- -_0x12519e._0xfdecda,_0x3b1405,_0x6c84e9-_0x12519e._0x3b8394,_0x242f39-0xf);}if(!_0x178edb())return[];const _0x3d2475=[];for(const _0x17cd4b of getServersForFile(_0x27e8f6)){const _0x33f9ce=await _0x17cd4b['root'](_0x27e8f6);if(!_0x33f9ce)continue;const _0x1083f4=stateKey(_0x17cd4b,_0x33f9ce);if(_0x5b87e9[_0x37ed00(_0x5a9fed._0x2b1ed8,_0x5a9fed._0x147b8f,_0x5a9fed._0x1e4a8f,0x527)]['has'](_0x1083f4))continue;const _0x4cfbbf=_0x5b87e9[_0x27efb5(0x16a,_0x5a9fed._0x2a3163,0x196,0x230)][_0x27efb5(-_0x5a9fed._0x304f64,-_0x5a9fed._0x39f371,0x3c,-0xa2)](_0x3a3fa5=>_0x3a3fa5[_0x27efb5(0x159,0xe8,0x11,-0x69)]===_0x17cd4b['id']&&_0x3a3fa5[_0x37ed00(0x48c,0x499,0x46f,0x3ca)]===_0x33f9ce);if(_0x4cfbbf){_0x3d2475['push'](_0x4cfbbf);continue;}if(!_0xf0a19e)continue;const _0x201598=await _0x1a93a8(_0x17cd4b,_0x33f9ce);if(_0x201598)_0x3d2475[_0x27efb5(_0x5a9fed._0x461dd7,0x1cb,0xfe,0xfa)](_0x201598);}return _0x3d2475;}async function _0x1f13e7(_0x3f10ec,_0x1908cd=![]){const _0x559739={_0x34f4da:0x29c,_0x14a21d:0x3b9,_0x2fba7f:0x2de,_0x133461:0x206,_0x169874:0x35b,_0x1c1f57:0x210,_0x4ff6de:0x36c,_0x22372f:0x404,_0x1f0fab:0x24a,_0x3a1af0:0x268,_0xecad46:0x3d0,_0x56452b:0x481,_0x9af658:0x415,_0x2b69b0:0x35b,_0x120241:0x256,_0x41fe6e:0x41c,_0x1ef368:0x33f,_0x2410af:0x4dc};function _0x4f782d(_0x188173,_0x151ae8,_0x14eceb,_0x2f70d2){return _0x5cb44f(_0x151ae8-_0x565d9f._0x532d93,_0x14eceb,_0x14eceb-0x4,_0x2f70d2-0x18c);}const _0x1a0e03=await _0x14fa3e(_0x3f10ec,!![]);await Promise[_0x4f782d(0x5c7,_0x3fc3b9._0x237fb4,_0x3fc3b9._0x3d0a45,0x62a)](_0x1a0e03['map'](async _0x474be3=>{const _0x32ac82={_0x3b1edc:0x13d,_0x13f0b5:0x286,_0x49a4fa:0x1ca},_0x429ba8={_0x2ba757:0x313,_0x3f16b3:0xb9};!_0x5b87e9[_0x5cb5d5(_0x559739._0x34f4da,0x2e2,_0x559739._0x14a21d,0x2a7)]['has'](_0x474be3[_0x5cb5d5(0x29c,_0x559739._0x2fba7f,_0x559739._0x133461,0x1cd)]+':'+_0x474be3[_0x5cb5d5(0x2ac,_0x559739._0x169874,0x430,_0x559739._0x1c1f57)]+':'+_0x3f10ec)&&(await _0x474be3[_0x5cb5d5(0x2e3,_0x559739._0x4ff6de,_0x559739._0x22372f,_0x559739._0x1f0fab)][_0x10bdd4(0x376,_0x559739._0x3a1af0,0x323,0x241)]({'path':_0x3f10ec}),_0x5b87e9['openFiles'][_0x10bdd4(_0x559739._0xecad46,_0x559739._0x56452b,0x342,0x494)](_0x474be3['serverId']+':'+_0x474be3[_0x5cb5d5(_0x559739._0x9af658,_0x559739._0x2b69b0,0x2f5,_0x559739._0x120241)]+':'+_0x3f10ec));function _0x10bdd4(_0x13b7b5,_0x211ac8,_0x279541,_0x16b08a){return _0x4f782d(_0x13b7b5-0x124,_0x13b7b5- -_0x429ba8._0x2ba757,_0x16b08a,_0x16b08a-_0x429ba8._0x3f16b3);}function _0x5cb5d5(_0x29fd45,_0x480fe5,_0x6916b4,_0x3c9c91){return _0x4f782d(_0x29fd45-_0x32ac82._0x3b1edc,_0x480fe5- -_0x32ac82._0x13f0b5,_0x29fd45,_0x3c9c91-_0x32ac82._0x49a4fa);}await _0x474be3[_0x10bdd4(0x2df,0x3c2,0x19d,_0x559739._0x41fe6e)][_0x5cb5d5(_0x559739._0x1ef368,0x3d7,_0x559739._0x2410af,0x31c)]({'path':_0x3f10ec,'version':nextFileVersion(_0x5b87e9,_0x3f10ec)});if(_0x1908cd)await _0x474be3['waitForDiagnostics']({'path':_0x3f10ec});}));}async function _0x230e0b(_0x3f7b35){await _0x1f13e7(_0x3f7b35[_0x5cbce6(_0x68360f._0x2186fc,0x340,_0x68360f._0x473ab3,_0x68360f._0x58f0f5)],![]);function _0x5cbce6(_0x2abc44,_0x4fd132,_0x399e42,_0x53af16){return _0x5cb44f(_0x4fd132- -0x230,_0x2abc44,_0x399e42-0x172,_0x53af16-0x5a);}return _0x14fa3e(_0x3f7b35['file'],![]);}async function _0x3f45ce(_0x24c149){const _0x1bd115={_0xbca3f6:0x17,_0x576041:0xb4};function _0x4182e5(_0x5ddb38,_0x1c61f2,_0x5b2785,_0x304a51){return _0x5cb44f(_0x304a51-_0x1bd115._0xbca3f6,_0x5b2785,_0x5b2785-_0x1bd115._0x576041,_0x304a51-0xe3);}function _0x3d00a2(_0x20e28a,_0x4de9f0,_0x44d649,_0x4a02ab){return _0x5cb44f(_0x4de9f0- -0x4b3,_0x20e28a,_0x44d649-0x86,_0x4a02ab-0x2f);}const _0x244278=await _0x230e0b(_0x24c149);return collectClientResults(_0x244278[_0x3d00a2(-0x9b,_0x57ea5f._0x437572,0xf7,-_0x57ea5f._0x122a5c)](_0x5eb96f=>_0x5eb96f[_0x3d00a2(-0x12c,-0x111,-0x23d,-0x25d)][_0x4182e5(0x2a4,0x357,0x30a,0x33a)](_0x24c149)));}return{'isEnabled':_0x178edb,async 'hasClients'(_0x2a2efc){function _0x47084c(_0x29782d,_0x4dee17,_0x578db2,_0x496b77){return _0x5cb44f(_0x496b77- -0x11a,_0x29782d,_0x578db2-0xd6,_0x496b77-0x84);}function _0x12f12b(_0x3566e8,_0x585c1b,_0x3971ad,_0x2b9be6){return _0x5cb44f(_0x585c1b- -_0x2aef4d._0x3bd85e,_0x2b9be6,_0x3971ad-0x1a7,_0x2b9be6-_0x2aef4d._0x44745c);}return(await _0x14fa3e(_0x2a2efc,![]))[_0x12f12b(-_0x588ea1._0xe7a862,0x60,_0x588ea1._0x4016f8,-0x14)]>0x0||getServersForFile(_0x2a2efc)[_0x12f12b(-0xac,0x60,0xdd,-_0x588ea1._0x4dcaf7)]>0x0;},'touchFile':_0x1f13e7,async 'diagnostics'(){const _0x371afc={_0x33dc6c:0x166},_0x26b206={};function _0x4d7a28(_0x18aad5,_0xae0dac,_0x25fe3a,_0x5563c7){return _0x5cb44f(_0x5563c7- -0x504,_0x25fe3a,_0x25fe3a-0x1ba,_0x5563c7-_0x371afc._0x33dc6c);}for(const _0x116d97 of _0x5b87e9[_0x296f16(_0x28e710._0x516ff5,0x8f,0x74,_0x28e710._0x5497c2)]){for(const [_0x22210c,_0xab4a7d]of _0x116d97[_0x296f16(-0xfc,0x70,-0xb1,-_0x28e710._0x365f81)]){_0x26b206[diagnosticsKeyToPath(_0x22210c)]=_0xab4a7d;}}function _0x296f16(_0x1ce34e,_0x301415,_0x3e021a,_0x2eb44a){return _0x5cb44f(_0x2eb44a- -_0x2b2558._0x5ebadb,_0x3e021a,_0x3e021a-_0x2b2558._0x9ebd7e,_0x2eb44a-_0x2b2558._0x2879db);}return _0x26b206;},async 'diagnosticsForFile'(_0x16aad3){const _0x479250={_0x581472:0x3f0,_0x1e9516:0x6e};await _0x1f13e7(_0x16aad3,!![]);const _0x5cb80a=[];function _0x11fedc(_0x3f13b4,_0x55754a,_0x51fd97,_0x1f14fb){return _0x5cb44f(_0x3f13b4-0x176,_0x1f14fb,_0x51fd97-0x190,_0x1f14fb-0x1d3);}for(const _0x399bec of await _0x14fa3e(_0x16aad3,![])){for(const [_0x430b19,_0x5cbb9b]of _0x399bec[_0x11fedc(_0x35a2d2._0x83ce83,0x529,_0x35a2d2._0x100dee,0x575)]){if(diagnosticsKeyToPath(_0x430b19)===_0x16aad3)_0x5cb80a[_0x11fedc(_0x35a2d2._0x1af755,0x64a,_0x35a2d2._0x1c3a15,_0x35a2d2._0x3f2bb5)](..._0x5cbb9b);}}function _0x38e275(_0x91371e,_0x502df3,_0x1800cf,_0x13239d){return _0x5cb44f(_0x502df3- -_0x479250._0x581472,_0x91371e,_0x1800cf-_0x479250._0x1e9516,_0x13239d-0x176);}return _0x5cb80a;},async 'definition'(_0x370f0b){const _0x92052e={_0x26e236:0x48c,_0x5dc73e:0x70};function _0x5ed218(_0x220cfd,_0x334cd6,_0x48efda,_0x5a3cb3){return _0x5cb44f(_0x220cfd- -_0x92052e._0x26e236,_0x5a3cb3,_0x48efda-0x13c,_0x5a3cb3-_0x92052e._0x5dc73e);}function _0x27490c(_0x33a2d9,_0x43b5d0,_0x31280f,_0x4fa2fa){return _0x5cb44f(_0x4fa2fa- -0xd2,_0x33a2d9,_0x31280f-_0x34e8e3._0x298abf,_0x4fa2fa-_0x34e8e3._0x3fe6d1);}return collectClientResults((await _0x230e0b(_0x370f0b))[_0x27490c(0x528,_0x3effbb._0x1ebd1c,0x4e3,0x46b)](_0x563f04=>_0x563f04['request'][_0x27490c(0x31a,0x2b7,0x394,0x3cb)](_0x370f0b)));},async 'references'(_0x227d01){const _0x30be5f={_0x1a9d37:0x1d,_0x4148a4:0x1e9},_0x527b28={_0x3feb08:0x4b8};function _0x2659a0(_0x5830a6,_0x948013,_0x3afd86,_0x5b1561){return _0x5cb44f(_0x3afd86- -_0x527b28._0x3feb08,_0x5830a6,_0x3afd86-0xe1,_0x5b1561-0x136);}function _0x5a1b3b(_0x5b9fe9,_0x33709a,_0x17dc81,_0x3f37fc){return _0x5cb44f(_0x5b9fe9- -_0x30be5f._0x1a9d37,_0x33709a,_0x17dc81-_0x30be5f._0x4148a4,_0x3f37fc-0x1b9);}return collectClientResults((await _0x230e0b(_0x227d01))[_0x2659a0(0x174,_0x2b6e49._0x4d9cac,_0x2b6e49._0x31966a,_0x2b6e49._0x1ce06c)](_0x246678=>_0x246678[_0x5a1b3b(0x385,0x32a,0x2a0,0x236)][_0x5a1b3b(0x361,0x3bb,0x326,0x2f4)](_0x227d01)));},async 'hover'(_0x4d82fd){function _0x20e601(_0xf75f67,_0xf25b0b,_0x59a35f,_0x495d14){return _0x5cb44f(_0x59a35f- -_0x4b7e26._0x2f66d,_0xf75f67,_0x59a35f-_0x4b7e26._0x3927ae,_0x495d14-_0x4b7e26._0x8c1b8e);}function _0x4c0e05(_0x2e342e,_0x303c2b,_0xcf24ba,_0x14de7d){return _0x5cb44f(_0x303c2b- -_0x5580cf._0x23c5a7,_0x2e342e,_0xcf24ba-0xb8,_0x14de7d-_0x5580cf._0x2cc8a1);}const _0xcb003e=await Promise[_0x4c0e05(-0x52,0xea,-0xf,0x128)]((await _0x230e0b(_0x4d82fd))[_0x4c0e05(0x204,0x2ee,0x38e,0x3ff)](_0x2248e2=>_0x2248e2[_0x20e601(0x15c,0x94,0x106,0x43)]['hover'](_0x4d82fd)));return _0xcb003e[_0x20e601(_0x22fd57._0x1a72c0,0x210,0x14c,_0x22fd57._0x4ecd4d)](_0x3953ec=>_0x3953ec[_0x20e601(0x34c,0x11e,0x23d,0x2eb)]===_0x20e601(0x1be,0x1a5,0x11b,0xaa)&&_0x3953ec[_0x20e601(0xff,0x35,0x171,0xe7)]?[_0x3953ec[_0x20e601(0x5c,0x296,0x171,0x4b)]]:[]);},async 'documentSymbol'(_0x459cc1){const _0x1ba461={_0x2190d9:0x453,_0x4b6b84:0xe8};function _0x5a3781(_0x238fdb,_0x3cf343,_0x3339f1,_0x31f438){return _0x5cb44f(_0x3cf343- -_0x1ba461._0x2190d9,_0x3339f1,_0x3339f1-0x197,_0x31f438-_0x1ba461._0x4b6b84);}await _0x1f13e7(_0x459cc1,![]);function _0x2fe696(_0x7ba4af,_0x4ba00f,_0x2ec6d8,_0x563240){return _0x5cb44f(_0x563240- -_0x59ed72._0x5661de,_0x4ba00f,_0x2ec6d8-_0x59ed72._0x1b09f5,_0x563240-_0x59ed72._0x5afc91);}return collectClientResults((await _0x14fa3e(_0x459cc1,![]))['map'](_0x5337a8=>_0x5337a8[_0x5a3781(-0xbf,-0xb1,-0x171,-0x3d)][_0x5a3781(-0x24,-0x6a,-0x81,0xa7)](_0x459cc1)));},async 'workspaceSymbol'(_0x7e0b34){function _0x530b0e(_0x2e38d2,_0x3694eb,_0x4015f6,_0x151c9b){return _0x5cb44f(_0x3694eb- -0x48b,_0x4015f6,_0x4015f6-0xe0,_0x151c9b-_0x5f342d._0x1aaceb);}function _0x446f69(_0x57bf4a,_0x1cf3b1,_0x42608b,_0x19da68){return _0x5cb44f(_0x19da68-0xc1,_0x1cf3b1,_0x42608b-_0x709598._0x2cfcc8,_0x19da68-_0x709598._0x27f860);}return collectClientResults(_0x5b87e9[_0x446f69(0x6a1,0x54a,_0x510506._0x134560,0x5a5)][_0x446f69(_0x510506._0x415335,_0x510506._0x5c74fe,0x585,0x5fe)](_0x2cc006=>_0x2cc006[_0x446f69(0x51b,0x36e,0x3b3,0x463)][_0x530b0e(0x18,0xcd,0x85,0x1ac)](_0x7e0b34)));},async 'implementation'(_0x15c6bc){const _0x2d9496={_0x1110a3:0x13a};function _0x540725(_0x229177,_0x103ba5,_0x475acc,_0x289c52){return _0x5cb44f(_0x475acc- -0x197,_0x103ba5,_0x475acc-_0x2d9496._0x1110a3,_0x289c52-0xd7);}return collectClientResults((await _0x230e0b(_0x15c6bc))['map'](_0x1626e5=>_0x1626e5[_0x540725(0x325,0x112,0x20b,0x100)]['implementation'](_0x15c6bc)));},async 'prepareCallHierarchy'(_0x564a73){return _0x3f45ce(_0x564a73);},async 'incomingCalls'(_0x2aaa63){const _0x1331a6={_0x46b4b6:0x73},_0x2b359b={_0x36d78c:0x24,_0x5b6304:0x2a};function _0xc3f349(_0xf3fd63,_0x13b543,_0x9f60cd,_0x40f173){return _0x5cb44f(_0x40f173- -_0x2b359b._0x36d78c,_0xf3fd63,_0x9f60cd-_0x2b359b._0x5b6304,_0x40f173-0xb2);}const _0x5a5ac9=await _0x3f45ce(_0x2aaa63),_0xf40907=await _0x230e0b(_0x2aaa63);function _0x16c51e(_0x2a61e5,_0xb0def0,_0x14b44a,_0x40b423){return _0x5cb44f(_0xb0def0- -0x345,_0x14b44a,_0x14b44a-0x1e3,_0x40b423-_0x1331a6._0x46b4b6);}return collectClientResults(_0xf40907[_0x16c51e(0x156,0xa3,0x101,_0x24b173._0x44d09a)](_0xa62f6=>_0x5a5ac9[_0x16c51e(0xdd,0x1f8,0x179,0x161)](_0x150f6c=>_0xa62f6[_0xc3f349(0x2a7,0x319,0x40d,0x37e)]['incomingCalls'](_0x150f6c))));},async 'outgoingCalls'(_0x238351){const _0xf28b56={_0x109694:0x1e1,_0x7b54c9:0x1d1};function _0x1e0971(_0x11c4be,_0xc7ae6a,_0x4dc6b9,_0x209f48){return _0x5cb44f(_0x209f48- -_0x3743fb._0xdb0ac9,_0x4dc6b9,_0x4dc6b9-0xe8,_0x209f48-0x168);}const _0xe26948=await _0x3f45ce(_0x238351),_0x4c6898=await _0x230e0b(_0x238351);function _0x42fb6f(_0x3aa9c7,_0x40008a,_0xa43167,_0x4e35f4){return _0x5cb44f(_0x4e35f4-0x1e4,_0x3aa9c7,_0xa43167-_0xf28b56._0x109694,_0x4e35f4-_0xf28b56._0x7b54c9);}return collectClientResults(_0x4c6898[_0x42fb6f(0x6a0,0x65c,0x5d7,0x5cc)](_0x4e08ad=>_0xe26948[_0x1e0971(0x4d4,0x3a6,0x57d,0x48e)](_0x3b9c71=>_0x4e08ad['request'][_0x42fb6f(0x7e5,0x681,0x809,0x6d1)](_0x3b9c71))));},async 'shutdown'(){const _0xdf8e68={_0x5792b9:0x47c,_0x321c96:0x6e};if(_0x5b87e9['shutdownStarted'])return;_0x5b87e9[_0x49aea3(_0x1109a3._0x2376a4,0x24f,0xe5,_0x1109a3._0x3fa9da)]=!![];function _0x49aea3(_0x4435fe,_0x3cf694,_0x3a2d4d,_0x366847){return _0x5cb44f(_0x366847- -_0x4acfe5._0x1b20af,_0x3cf694,_0x3a2d4d-0x8a,_0x366847-0xd6);}await Promise[_0x516e8b(-_0x1109a3._0x37f12e,-_0x1109a3._0x11e975,-0x26b,-0x165)](_0x5b87e9[_0x516e8b(0xde,_0x1109a3._0xca9c69,_0x1109a3._0x6acc5c,-0x81)][_0x49aea3(0x37a,_0x1109a3._0x3504b0,_0x1109a3._0x3e9ac6,_0x1109a3._0xcd8995)](_0x482412=>_0x482412['shutdown']()));function _0x516e8b(_0x102e8a,_0x525e49,_0x1f29bb,_0x49081e){return _0x5cb44f(_0x525e49- -_0xdf8e68._0x5792b9,_0x1f29bb,_0x1f29bb-_0xdf8e68._0x321c96,_0x49081e-0x198);}_0x5b87e9[_0x516e8b(-_0x1109a3._0x2ad8f4,0x68,_0x1109a3._0x1309b6,-0xe4)]=[],_0x5b87e9['spawning'][_0x516e8b(-_0x1109a3._0x580825,_0x1109a3._0x2567ee,-0x20,-_0x1109a3._0x3ead29)](),_0x5b87e9[_0x49aea3(0x130,0x115,_0x1109a3._0x1d6df1,0x107)][_0x49aea3(_0x1109a3._0x2e0248,0x2e9,_0x1109a3._0x2e578e,_0x1109a3._0x15df9d)](),_0x5b87e9[_0x49aea3(_0x1109a3._0x26bdaf,0xdf,0xc9,0xd0)][_0x49aea3(_0x1109a3._0x1f339c,_0x1109a3._0x397621,0x2e3,0x218)](),_0x5b87e9[_0x516e8b(-_0x1109a3._0x41bad5,-0x119,-_0x1109a3._0x1d584a,0x29)][_0x516e8b(-0x83,_0x1109a3._0x12755f,0xb5,0xe5)]();},'status'(){function _0x59ae0f(_0x34eddf,_0x1e91aa,_0x593f9a,_0x2b266d){return _0x5cb44f(_0x593f9a-0x1aa,_0x34eddf,_0x593f9a-0x108,_0x2b266d-_0x2717c1._0xf3321b);}return{'connectedClients':_0x5b87e9['clients'][_0x59ae0f(_0xf60581._0x343163,0x6cc,0x70a,0x5fc)]};}};}function createQuestionId(){const _0x54052e={_0x4871b7:0x34a,_0x9a0024:0x280,_0x576c6e:0x423,_0x2e1217:0x13c,_0x4d3d79:0x274,_0x49d0ad:0x185,_0x4167cf:0x3c5,_0x5dea4e:0x2a4,_0x2fb370:0x222,_0x59b5de:0x2c8,_0x3e7b0d:0x483,_0x2d8bdc:0x100,_0x2c9675:0xd6},_0x2d3893={_0xa2f510:0x178,_0x3e0537:0x177},_0x2b1e54={_0x4e3159:0x3cf,_0x548c85:0x15d};function _0x53ebb8(_0x52897b,_0x3f3271,_0x278683,_0x368ac3){return _0x57b9de(_0x52897b-0x1b5,_0x3f3271,_0x52897b- -_0x2b1e54._0x4e3159,_0x368ac3-_0x2b1e54._0x548c85);}function _0x2354e2(_0x2279c8,_0x49ec98,_0x3223dd,_0x52e2bc){return _0x57b9de(_0x2279c8-_0x2d3893._0xa2f510,_0x3223dd,_0x49ec98- -0x152,_0x52e2bc-_0x2d3893._0x3e0537);}return _0x2354e2(0x254,_0x54052e._0x4871b7,_0x54052e._0x9a0024,_0x54052e._0x576c6e)+Date[_0x2354e2(_0x54052e._0x2e1217,_0x54052e._0x4d3d79,_0x54052e._0x49d0ad,_0x54052e._0x4167cf)]()+'-'+Math[_0x2354e2(0x169,_0x54052e._0x5dea4e,_0x54052e._0x2fb370,_0x54052e._0x59b5de)]()[_0x2354e2(0x30e,0x39e,_0x54052e._0x3e7b0d,0x4d2)](0x24)[_0x53ebb8(0x71,_0x54052e._0x2d8bdc,-0x5f,_0x54052e._0x2c9675)](0x2,0x9);}function validateInput(_0x21fda0){const _0x4fa5fc={_0x46b4d3:0x1ff,_0x4da47c:0x2cc,_0x2b5fc7:0x32b,_0xfde35b:0x3ee,_0x5e69b8:0x2f7,_0x6b2f69:0x38a,_0x57ce34:0xe9,_0x91fbe1:0x269,_0x148a80:0x198,_0x159a67:0x198,_0x5c58ef:0x1cb,_0x3a64e:0x273,_0x35160d:0x244,_0x42ac42:0x18d,_0x21a5d8:0x314,_0x2fcf26:0x296,_0xb8e1e4:0x2be,_0x42ff31:0x1f6,_0x32e7de:0x198,_0x20c2da:0x1f7,_0x53e453:0x197,_0x3df213:0x198,_0x4a1a26:0x36b,_0x275d7d:0x335,_0x2885e8:0x38a,_0x4e6d7e:0x2a4,_0xd2a26f:0x3de,_0x504d65:0x178,_0x426724:0x1ca,_0x581bce:0xe8,_0x3309bb:0x2ce,_0x1a3eee:0x25e,_0x191a83:0x23,_0x28b891:0x10e,_0x16cb56:0x1e8,_0x5e1f76:0xe6,_0x46cb7b:0x1da,_0x46eb6b:0x232,_0x16f9b9:0x385,_0x2eb354:0x3f9,_0x416166:0x218,_0x5cc93f:0x252,_0x12f800:0x251,_0x32d5ef:0x248,_0x420592:0x332,_0x1caebc:0x20c,_0xc75437:0x2fd,_0x34da61:0x410,_0x1cb284:0x1f9,_0x5dc43a:0x312,_0x399810:0x141,_0x45fb70:0x1e1,_0x324b8a:0x36d,_0xe6c632:0x283,_0x454e2d:0xe5,_0x58c292:0x20c,_0x356774:0x1d3,_0x3d13d9:0x2d4,_0xcf7da1:0x3c6,_0x1efe91:0x1fd,_0x90622d:0x3f7,_0x567755:0x270,_0x28a96f:0x93,_0x3c650b:0x68,_0x944bb:0x10,_0x513fec:0xe1,_0x2288e7:0x27c,_0x4646ef:0x23c,_0x43c28e:0x22c,_0x283205:0x3cb,_0x57fc48:0x238,_0x1a7d27:0x287,_0x452351:0x175},_0x52e84f={_0x34b320:0x225},_0x542535={_0x17c35c:0x8e,_0x4a70f9:0x384};function _0x176134(_0x3d7b72,_0x3b7016,_0x5e3241,_0x18d396){return _0x57b9de(_0x3d7b72-_0x542535._0x17c35c,_0x5e3241,_0x18d396- -_0x542535._0x4a70f9,_0x18d396-0x68);}function _0x4703c2(_0x3afce2,_0x3a550e,_0x4471d0,_0x18b348){return _0x57b9de(_0x3afce2-0x7c,_0x3afce2,_0x3a550e- -_0x52e84f._0x34b320,_0x18b348-0x1aa);}if(!Array[_0x4703c2(_0x4fa5fc._0x46b4d3,_0x4fa5fc._0x4da47c,0x1ed,_0x4fa5fc._0x2b5fc7)](_0x21fda0[_0x4703c2(_0x4fa5fc._0xfde35b,_0x4fa5fc._0x5e69b8,0x2e2,_0x4fa5fc._0x6b2f69)])||_0x21fda0[_0x176134(_0x4fa5fc._0x57ce34,0x210,_0x4fa5fc._0x91fbe1,_0x4fa5fc._0x148a80)]['length']<0x1||_0x21fda0[_0x176134(0x88,0x1a1,0xbf,_0x4fa5fc._0x159a67)]['length']>0xa)throw new ToolExecutionError(_0x4703c2(0x2cf,_0x4fa5fc._0x5c58ef,0x1da,_0x4fa5fc._0x3a64e),{'error':_0x4703c2(0x1a8,_0x4fa5fc._0x35160d,_0x4fa5fc._0x42ac42,_0x4fa5fc._0x21a5d8)});for(let _0x1f7d2d=0x0;_0x1f7d2d<_0x21fda0[_0x176134(_0x4fa5fc._0x2fcf26,_0x4fa5fc._0xb8e1e4,_0x4fa5fc._0x42ff31,_0x4fa5fc._0x32e7de)][_0x176134(0x2fe,_0x4fa5fc._0x20c2da,0x253,0x1d3)];_0x1f7d2d+=0x1){const _0x21b8aa=_0x21fda0[_0x176134(0x9c,0x276,_0x4fa5fc._0x53e453,_0x4fa5fc._0x3df213)][_0x1f7d2d];if(!_0x21b8aa[_0x4703c2(_0x4fa5fc._0x4a1a26,0x2a4,0x155,_0x4fa5fc._0x275d7d)]||typeof _0x21b8aa[_0x4703c2(_0x4fa5fc._0x2885e8,_0x4fa5fc._0x4e6d7e,0x3bf,_0x4fa5fc._0xd2a26f)]!=='string')throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x504d65,_0x4fa5fc._0x426724,0x1a6,0x1ca));if(!_0x21b8aa[_0x176134(0xb2,_0x4fa5fc._0x581bce,0x17b,0x16f)]||typeof _0x21b8aa[_0x4703c2(0x1b8,_0x4fa5fc._0x3309bb,0x2a5,_0x4fa5fc._0x1a3eee)]!==_0x4703c2(_0x4fa5fc._0x191a83,_0x4fa5fc._0x28b891,_0x4fa5fc._0x16cb56,0x1b4))throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x5e1f76,_0x4fa5fc._0x46cb7b,_0x4fa5fc._0x46eb6b,0x31e));if(_0x21b8aa[_0x4703c2(_0x4fa5fc._0x16f9b9,_0x4fa5fc._0x3309bb,0x1b5,_0x4fa5fc._0x2eb354)]['length']>0x1e)throw new ToolExecutionError(_0x4703c2(0x426,0x2d4,_0x4fa5fc._0x416166,_0x4fa5fc._0x5cc93f)+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x12f800,0x139,_0x4fa5fc._0x32d5ef,0x37)+_0x21b8aa['topic'][_0x4703c2(0x32e,_0x4fa5fc._0x420592,0x368,0x276)]);if(!Array[_0x4703c2(_0x4fa5fc._0x1caebc,_0x4fa5fc._0x4da47c,0x37a,_0x4fa5fc._0xc75437)](_0x21b8aa[_0x4703c2(0x315,0x36b,0x37e,_0x4fa5fc._0x34da61)])||_0x21b8aa[_0x176134(_0x4fa5fc._0x1cb284,_0x4fa5fc._0x5dc43a,_0x4fa5fc._0x399810,0x20c)][_0x4703c2(_0x4fa5fc._0x45fb70,0x332,_0x4fa5fc._0x324b8a,0x28f)]<0x2||_0x21b8aa[_0x176134(0xc3,_0x4fa5fc._0xe6c632,_0x4fa5fc._0x454e2d,_0x4fa5fc._0x58c292)][_0x176134(0x2ad,0x2a2,0x272,_0x4fa5fc._0x356774)]>0x4)throw new ToolExecutionError(_0x4703c2(0x338,_0x4fa5fc._0x3d13d9,0x41c,_0x4fa5fc._0xcf7da1)+(_0x1f7d2d+0x1)+':\x20must\x20have\x202-4\x20options');for(let _0x47768f=0x0;_0x47768f<_0x21b8aa['options'][_0x4703c2(_0x4fa5fc._0x1efe91,0x332,0x46d,_0x4fa5fc._0x90622d)];_0x47768f+=0x1){const _0x5d4207=_0x21b8aa[_0x176134(0xd8,_0x4fa5fc._0x567755,0x18f,_0x4fa5fc._0x58c292)][_0x47768f];if(!_0x5d4207[_0x176134(-_0x4fa5fc._0x28a96f,-0x71,-_0x4fa5fc._0x3c650b,_0x4fa5fc._0x944bb)]||!_0x5d4207['description'])throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(0x1c3,_0x4fa5fc._0x513fec,_0x4fa5fc._0x426724,0x25)+(_0x47768f+0x1)+_0x4703c2(_0x4fa5fc._0x2288e7,0x225,_0x4fa5fc._0x4646ef,0x1ec));}if(typeof _0x21b8aa[_0x4703c2(_0x4fa5fc._0x43c28e,_0x4fa5fc._0xe6c632,0x34d,_0x4fa5fc._0x283205)]!=='boolean')throw new ToolExecutionError(_0x176134(0x50,_0x4fa5fc._0x57fc48,_0x4fa5fc._0x1a7d27,_0x4fa5fc._0x452351)+(_0x1f7d2d+0x1)+_0x176134(0xb9,-0x10a,_0x4fa5fc._0x454e2d,-0x68));}}function buildQuestions(_0x246c31){const _0x1ace1a={_0x2d1e9b:0x10,_0xbad679:0xc1},_0x274d27={_0x5b4988:0x71,_0x195d82:0x344,_0x13a514:0xad},_0x43762f={_0x3f9994:0xb,_0x1ce2e5:0x367,_0x1e2342:0x18c};function _0xa729e4(_0x99e0b8,_0x564247,_0xc0f5f8,_0x25636f){return _0x23b1c2(_0x99e0b8-_0x43762f._0x3f9994,_0x564247,_0xc0f5f8- -_0x43762f._0x1ce2e5,_0x25636f-_0x43762f._0x1e2342);}function _0x2bd618(_0x5521bc,_0x35d5e9,_0x4d3aad,_0x168b60){return _0x23b1c2(_0x5521bc-_0x274d27._0x5b4988,_0x4d3aad,_0x35d5e9- -_0x274d27._0x195d82,_0x168b60-_0x274d27._0x13a514);}return _0x246c31['questions'][_0x2bd618(0x267,0x142,_0x1ace1a._0x2d1e9b,_0x1ace1a._0xbad679)]((_0x368024,_0x30fa24)=>({'id':'q'+_0x30fa24,'question':_0x368024[_0xa729e4(-0x3b,-0x7f,0xb4,-0x9)],'topic':_0x368024[_0x2bd618(0x153,0x101,-0x33,0x66)],'options':_0x368024[_0x2bd618(0x2c6,0x19e,0x136,0x101)],'multiSelect':_0x368024[_0x2bd618(-0x53,0xb6,-0x9a,0x60)]}));}function createResult(_0x2bbf44,_0x5aaa9e,_0x2e6dd4){const _0x1e6e68={_0x3910d7:0xc9,_0x5ad9cf:0xcd,_0x1a9c6b:0x50,_0x3f2102:0x10e,_0x585790:0x1a,_0x3be268:0x2d,_0xd13e9e:0xc4},_0x30f499={_0x2cf071:0x3ef,_0x29f27c:0x130},_0x58424a={_0x10382a:0x1ab,_0x41b579:0x34d,_0x1d6eda:0x1b3},_0xb0fbf={'questionId':_0x2bbf44,'questionCount':_0x5aaa9e,'answers':_0x2e6dd4};function _0x1e869a(_0x553759,_0x326517,_0x1aea15,_0x306af9){return _0x57b9de(_0x553759-_0x58424a._0x10382a,_0x553759,_0x306af9- -_0x58424a._0x41b579,_0x306af9-_0x58424a._0x1d6eda);}function _0xde61e0(_0x524639,_0x39b237,_0xd6b7d0,_0x575d02){return _0x57b9de(_0x524639-0x164,_0x39b237,_0xd6b7d0- -_0x30f499._0x2cf071,_0x575d02-_0x30f499._0x29f27c);}return createToolOutput(_0x1e869a(_0x1e6e68._0x3910d7,_0x1e6e68._0x5ad9cf,_0x1e6e68._0x1a9c6b,0x76)+JSON[_0xde61e0(-_0x1e6e68._0x3f2102,_0x1e6e68._0x585790,_0x1e6e68._0x3be268,_0x1e6e68._0xd13e9e)](_0x2e6dd4,null,0x2),_0xb0fbf);}function createAskUserTool(){const _0xd6f1a5={_0x1c8850:0xd5,_0x3ae371:0xf5,_0x1edff9:0x104,_0x1695bd:0x7,_0x1cf108:0x78,_0x512492:0xd0,_0xc68223:0x167,_0x1ca0f7:0x2de,_0x4d3973:0x1a9,_0xd02490:0x52,_0x410485:0xde,_0x406b6a:0x1e,_0x340521:0x4f,_0x5daf01:0x14,_0x185a13:0xa3,_0x15b788:0x1bc,_0x466a5f:0x6f,_0x27045f:0xe6,_0x2ae5db:0x153,_0x58f818:0x66,_0x373674:0x3e,_0x109d75:0x14,_0x28acba:0xf0,_0xa72054:0xa4,_0xaa6a1e:0x11b,_0x40c30e:0x119},_0x22dacb={_0x1e8aba:0x25c,_0x2c09bc:0x221,_0x58f4cd:0x118,_0x5dff67:0x186,_0x4802bc:0x107,_0x3fb359:0x12,_0x3218d0:0xa0,_0x2d247d:0x89,_0x6d76fe:0x43e,_0x26644e:0x2c8,_0x2ed027:0x2,_0x5c8ec9:0x1eb,_0x1350ba:0x18e,_0x173be6:0x384,_0x5bc736:0x317,_0x5c905e:0x3bc,_0x2280aa:0x4be,_0x2304b1:0xa2,_0x5df90f:0x65,_0x5b6474:0x3f5,_0x2c7e09:0x2e5},_0x2bbc7e={_0x3ea4c5:0x1d6},_0xbc3c44={_0x4c6382:0x63,_0x157be3:0x166};function _0x4d38ae(_0x48aa48,_0x2662db,_0xdadaae,_0x35e8ea){return _0x57b9de(_0x48aa48-_0xbc3c44._0x4c6382,_0x35e8ea,_0xdadaae- -0x403,_0x35e8ea-_0xbc3c44._0x157be3);}function _0x28808f(_0x489f04,_0x56f0de,_0x1f30bd,_0x53bfba){return _0x57b9de(_0x489f04-0x19f,_0x53bfba,_0x1f30bd- -0x4dc,_0x53bfba-_0x2bbc7e._0x3ea4c5);}return defineTool({'name':'AskUserTool','description':_0x28808f(0xfc,0x118,0xa3,0x131),'inputSchema':{'type':'object','properties':{'questions':{'type':_0x28808f(-_0xd6f1a5._0x1c8850,-_0xd6f1a5._0x3ae371,-_0xd6f1a5._0x1edff9,-0x241),'items':{'type':'object','properties':{'question':{'type':_0x4d38ae(-_0xd6f1a5._0x1695bd,_0xd6f1a5._0x1cf108,-_0xd6f1a5._0x512492,0x7c)},'topic':{'type':_0x28808f(-_0xd6f1a5._0xc68223,-_0xd6f1a5._0x1ca0f7,-_0xd6f1a5._0x4d3973,-0xfa)},'options':{'type':'array','items':{'type':_0x28808f(0x15,-0x9b,-_0xd6f1a5._0xd02490,_0xd6f1a5._0x410485),'properties':{'label':{'type':_0x4d38ae(-_0xd6f1a5._0x406b6a,_0xd6f1a5._0x340521,-0xd0,-0x65)},'description':{'type':_0x4d38ae(0x31,-_0xd6f1a5._0x5daf01,-0xd0,0x5f)}},'required':[_0x4d38ae(_0xd6f1a5._0x185a13,-_0xd6f1a5._0x15b788,-_0xd6f1a5._0x466a5f,-0xfd),'description']}},'multiSelect':{'type':_0x28808f(-_0xd6f1a5._0x27045f,_0xd6f1a5._0x2ae5db,_0xd6f1a5._0x58f818,-0xe8)}},'required':[_0x28808f(-0x107,-0x3c,-0x13,_0xd6f1a5._0x373674),_0x4d38ae(-_0xd6f1a5._0x109d75,0x132,_0xd6f1a5._0x28acba,_0xd6f1a5._0xa72054),'options','multiSelect']}},'answers':{'type':_0x4d38ae(_0xd6f1a5._0xaa6a1e,-0x9,0x87,0xad),'properties':{}}},'required':[_0x4d38ae(0x1c,0x1eb,_0xd6f1a5._0x40c30e,0x186)]},async *'execute'(_0x121c79,_0x4515bb){const _0x1eaa20={_0x3a4053:0xe1,_0x5e3f32:0x25},_0x1c63f2={_0x4dc1da:0x37a},_0x219d6e=_0x121c79;validateInput(_0x219d6e);const _0x4bc2f4=_0x4515bb[_0x528f82(0x2c1,0x402,_0x22dacb._0x1e8aba,_0x22dacb._0x2c09bc)]??createQuestionId();function _0x528f82(_0x29df6c,_0x246e9f,_0x181271,_0x22ad3f){return _0x28808f(_0x29df6c-0x43,_0x246e9f-0x145,_0x29df6c-_0x1c63f2._0x4dc1da,_0x246e9f);}if(_0x219d6e[_0xb720dc(-_0x22dacb._0x58f4cd,-_0x22dacb._0x5dff67,-_0x22dacb._0x4802bc,-0x239)]&&Object[_0xb720dc(-0x13b,-0x89,0x82,_0x22dacb._0x3fb359)](_0x219d6e[_0xb720dc(-0x27e,-_0x22dacb._0x5dff67,-0x3d,-0x158)])[_0xb720dc(0xd7,_0x22dacb._0x3218d0,_0x22dacb._0x2d247d,0xfe)]>0x0)return createResult(_0x4bc2f4,_0x219d6e[_0x528f82(0x3ba,_0x22dacb._0x6d76fe,0x375,_0x22dacb._0x26644e)][_0xb720dc(-_0x22dacb._0x2ed027,0xa0,_0x22dacb._0x5c8ec9,_0x22dacb._0x1350ba)],_0x219d6e['answers']);if(!_0x4515bb[_0x528f82(0x3c7,_0x22dacb._0x173be6,_0x22dacb._0x5bc736,0x3c5)])throw new ToolExecutionError(_0x528f82(0x32a,0x1e2,0x392,0x460));const _0x3a634d=buildQuestions(_0x219d6e),_0x3e03c0=await _0x4515bb[_0x528f82(0x3c7,_0x22dacb._0x5c905e,_0x22dacb._0x2280aa,0x2e3)]({'questionId':_0x4bc2f4,'questions':_0x3a634d});function _0xb720dc(_0x5e71d6,_0x149dce,_0x11fe5d,_0xd119ba){return _0x28808f(_0x5e71d6-_0x1eaa20._0x3a4053,_0x149dce-0xa4,_0x149dce-_0x1eaa20._0x5e3f32,_0x11fe5d);}yield createResult(_0x4bc2f4,_0x219d6e[_0xb720dc(-_0x22dacb._0x2304b1,_0x22dacb._0x5df90f,-0x24,-0x2e)][_0x528f82(_0x22dacb._0x5b6474,0x3a9,_0x22dacb._0x2c7e09,0x49b)],_0x3e03c0);}});}import{spawn as _0x4be518}from'child_process';import{statSync}from'fs';import*as _0x1eb728 from'os';import*as _0x181fe3 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x412fb5 from'path';function isPathInside(_0x55dce9,_0x5e7de4){const _0x486e5d={_0x206d04:0x675,_0x4ded9f:0x690,_0x8e8de:0x5ac,_0x470c98:0x7ba},_0x1022b8={_0x56c232:0x53},_0x4e9115={_0x24f78a:0x1a6,_0x745555:0x258,_0xfa17e7:0x82},_0x3bb2d9=_0x412fb5['resolve'](_0x55dce9);function _0x53db91(_0x28e160,_0x5d18af,_0xb79ab2,_0x171c77){return _0x57b9de(_0x28e160-_0x4e9115._0x24f78a,_0x5d18af,_0x28e160-_0x4e9115._0x745555,_0x171c77-_0x4e9115._0xfa17e7);}const _0x510683=_0x412fb5['relative'](_0x3bb2d9,_0x5e7de4);function _0x1e705a(_0x527530,_0x3d6a8d,_0x37e62a,_0x367838){return _0x23b1c2(_0x527530-0x7b,_0x37e62a,_0x527530- -0x371,_0x367838-_0x1022b8._0x56c232);}return _0x510683===''||!_0x510683[_0x53db91(_0x486e5d._0x206d04,0x646,_0x486e5d._0x4ded9f,0x6d1)]('..')&&!_0x412fb5[_0x53db91(0x6d0,0x78a,_0x486e5d._0x8e8de,_0x486e5d._0x470c98)](_0x510683);}function resolveWorkspacePath(_0x4380e8,_0x3721cf){return resolveAllowedPath(_0x4380e8,[],_0x3721cf);}function resolveAllowedPath(_0x1d05da,_0x5811e7,_0x4b551d){const _0x3d5fa6={_0x1b6030:0x545,_0x5a1e7d:0x401,_0x93d131:0x411,_0x389a8d:0x54a,_0xe5ab54:0x5be,_0x27b64d:0x5a1,_0x3bf7d8:0x41a,_0x61b83f:0x50b,_0x28b51f:0x4e0,_0x2480af:0x548,_0x18434f:0x4d1},_0x167f7a={_0x229fea:0xbd},_0x2a3c32={_0xec226:0x9,_0x2a1625:0x16},_0x254dbc=_0x412fb5[_0x317f82(0x4aa,_0x3d5fa6._0x1b6030,_0x3d5fa6._0x5a1e7d,0x329)](_0x1d05da);function _0x317f82(_0x55b01e,_0x130ab4,_0x1498fb,_0x3e41bb){return _0x57b9de(_0x55b01e-_0x2a3c32._0xec226,_0x130ab4,_0x1498fb-_0x2a3c32._0x2a1625,_0x3e41bb-0xc9);}function _0x57c3f5(_0x17db19,_0x44ea82,_0x23877b,_0x14ae78){return _0x57b9de(_0x17db19-0x19c,_0x44ea82,_0x14ae78-0x154,_0x14ae78-_0x167f7a._0x229fea);}const _0x52fa15=_0x412fb5['resolve'](_0x254dbc,_0x4b551d),_0x5d4a2c=[_0x254dbc,..._0x5811e7[_0x317f82(_0x3d5fa6._0x93d131,0x67d,_0x3d5fa6._0x389a8d,_0x3d5fa6._0xe5ab54)](_0x2127e7=>_0x412fb5[_0x57c3f5(0x5fa,0x5b4,0x4b2,0x53f)](_0x2127e7))];if(_0x5d4a2c[_0x317f82(_0x3d5fa6._0x27b64d,_0x3d5fa6._0x3bf7d8,_0x3d5fa6._0x61b83f,0x542)](_0x3e43fd=>isPathInside(_0x3e43fd,_0x52fa15)))return _0x52fa15;throw new ToolExecutionError(_0x57c3f5(0x584,_0x3d5fa6._0x28b51f,_0x3d5fa6._0x2480af,_0x3d5fa6._0x18434f)+_0x4b551d,{'path':_0x4b551d,'rootDir':_0x254dbc,'allowedDirs':_0x5d4a2c});}async function assertWorkspaceFile(_0x1715bb){const _0x5617cc={_0x547e05:0x344,_0xbf75ba:0x3fe,_0x170cf3:0x487,_0x3c71a5:0x36,_0x50598e:0x20,_0x520558:0x91},_0x187439={_0x810167:0x411,_0x29dffb:0x27},_0x2ed0a7={_0x13ab94:0xff};function _0x275a58(_0xad228e,_0x1fdc38,_0x3b0600,_0x42a815){return _0x23b1c2(_0xad228e-0x15a,_0xad228e,_0x1fdc38-0x178,_0x42a815-_0x2ed0a7._0x13ab94);}const _0x235f5b=await stat(_0x1715bb);function _0x1628aa(_0x1736bf,_0x339f12,_0x29dae0,_0x4cd363){return _0x23b1c2(_0x1736bf-0x67,_0x339f12,_0x1736bf- -_0x187439._0x810167,_0x4cd363-_0x187439._0x29dffb);}if(!_0x235f5b[_0x275a58(_0x5617cc._0x547e05,_0x5617cc._0xbf75ba,_0x5617cc._0x170cf3,0x4ba)]())throw new ToolExecutionError(_0x1628aa(-_0x5617cc._0x3c71a5,-0x39,-_0x5617cc._0x50598e,_0x5617cc._0x520558)+_0x1715bb,{'path':_0x1715bb});}function isProbablyBinary(_0xfd22a8){const _0x4a0689={_0x2c6708:0xd2,_0x4074a5:0x15d},_0x275b6e={_0x10eb47:0x314,_0x8ef873:0x83};function _0x419d38(_0x13a958,_0x1c07d9,_0x27a43a,_0xc64209){return _0x57b9de(_0x13a958-0xf8,_0x1c07d9,_0xc64209- -_0x275b6e._0x10eb47,_0xc64209-_0x275b6e._0x8ef873);}return _0xfd22a8[_0x419d38(0x284,_0x4a0689._0x2c6708,0x78,_0x4a0689._0x4074a5)](0x0);}var DEFAULT_DESCRIPTION=_0x57b9de(0x642,0x511,0x518,0x667),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x202c65){return _0x202c65 instanceof Error;}function shellExists(_0x7154c6){try{const _0x36c634=statSync(_0x7154c6);return _0x36c634['isFile']()&&(_0x36c634['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x39252c){const _0x34eb91={_0x58df23:0x40,_0x2d9d54:0x10,_0x2226a9:0x1,_0x2a3640:0x113,_0x46e1ad:0x0,_0x255eb3:0xb5,_0xbe8630:0x1ce,_0x20ae68:0x162,_0xb6d078:0x2b5,_0x501661:0x2b3,_0x21032e:0x15d,_0xfa691c:0x1fe,_0x41c458:0x368,_0x557a42:0x1f3,_0x3b0bd6:0xc6,_0x650bfd:0x2f6,_0x21e8d3:0x1df,_0x218aec:0x184,_0x3921aa:0x1d2},_0x28b11e={_0x40b63a:0x175,_0x1db512:0x18a};function _0x35fbdf(_0x191889,_0x122970,_0x429766,_0x4969b5){return _0x23b1c2(_0x191889-0xe2,_0x429766,_0x191889- -0x241,_0x4969b5-0x162);}if(_0x39252c)return _0x39252c;if(_0x1eb728[_0x35fbdf(_0x34eb91._0x58df23,0xc6,-_0x34eb91._0x2d9d54,_0x34eb91._0x2226a9)]()==='win32')return process[_0x35fbdf(_0x34eb91._0x2a3640,_0x34eb91._0x46e1ad,_0x34eb91._0x255eb3,_0x34eb91._0xbe8630)][_0x35fbdf(_0x34eb91._0x20ae68,_0x34eb91._0xb6d078,_0x34eb91._0x501661,0x67)]||'cmd.exe';const _0x48288a=[_0x35fbdf(_0x34eb91._0x21032e,_0x34eb91._0xfa691c,0x132,0x1a1),_0x35fbdf(0x52,-0x15,0x149,0xd9),_0x3e2446(0x22d,0x440,0x316,_0x34eb91._0x41c458),_0x35fbdf(0x239,0x107,_0x34eb91._0x557a42,0x384)];for(const _0x3e749f of _0x48288a){if(shellExists(_0x3e749f))return _0x3e749f;}const _0x36def1=process[_0x3e2446(_0x34eb91._0x3b0bd6,0x293,_0x34eb91._0x650bfd,_0x34eb91._0x21e8d3)]['SHELL'];function _0x3e2446(_0x1e4f79,_0x52e5ad,_0xb2e898,_0x3eda11){return _0x23b1c2(_0x1e4f79-0xa3,_0x1e4f79,_0x3eda11- -_0x28b11e._0x40b63a,_0x3eda11-_0x28b11e._0x1db512);}if(_0x36def1&&shellExists(_0x36def1))return _0x36def1;return _0x3e2446(0x366,_0x34eb91._0x218aec,_0x34eb91._0x3921aa,0x229);}function buildShellArgs(_0x2314d0,_0x1f07a3){const _0x52eecb={_0x22ea0b:0x54e,_0x51bb59:0x44a,_0x180ec6:0x2fd,_0x1f9b32:0x4ba,_0x114329:0x550,_0x33709d:0x410,_0x20558e:0x6df,_0x39c26c:0x659,_0x21f036:0x420,_0x2862b6:0x498,_0x1c00bb:0x4b1,_0x427ee8:0x581,_0x100249:0x3ac,_0x665bdc:0x4f8,_0x214ff8:0x4bf},_0x96bd83={_0x5842ef:0xac,_0x193ce3:0xdc,_0x4b506d:0x104};function _0x73ecfa(_0x4094ca,_0x1082dc,_0x311a31,_0x1be2ca){return _0x57b9de(_0x4094ca-0x8,_0x4094ca,_0x311a31-0x11b,_0x1be2ca-0x1d4);}function _0x278c67(_0x4e285b,_0x2ca4ff,_0x32850d,_0x334d0f){return _0x23b1c2(_0x4e285b-_0x96bd83._0x5842ef,_0x334d0f,_0x32850d-_0x96bd83._0x193ce3,_0x334d0f-_0x96bd83._0x4b506d);}if(_0x1eb728[_0x73ecfa(0x2fd,_0x52eecb._0x22ea0b,_0x52eecb._0x51bb59,_0x52eecb._0x180ec6)]()===_0x73ecfa(_0x52eecb._0x1f9b32,_0x52eecb._0x114329,_0x52eecb._0x33709d,0x43b)){const _0x7a0dd=/cmd(\.exe)?$/i[_0x73ecfa(_0x52eecb._0x20558e,0x514,0x5ed,_0x52eecb._0x39c26c)](_0x1f07a3);return _0x7a0dd?['/d','/s','/c',_0x2314d0]:['-NoLogo',_0x73ecfa(_0x52eecb._0x21f036,_0x52eecb._0x2862b6,_0x52eecb._0x1c00bb,_0x52eecb._0x427ee8),_0x278c67(0x52a,_0x52eecb._0x100249,_0x52eecb._0x665bdc,_0x52eecb._0x214ff8),_0x2314d0];}return['-c',_0x2314d0];}function resolveCarriageReturns(_0xfed06a){const _0x5e8fe4={_0x33a6a9:0x107,_0x367c81:0xf6,_0x4974ee:0x43,_0x4ca582:0x100,_0x2610cb:0x72,_0x296381:0x127,_0x8748fa:0xe0},_0x5997a={_0x3f0dce:0x265,_0x246561:0x1bb,_0x1765b8:0x15c},_0x24fa03={_0x5e65ef:0x8b,_0x1c5c52:0x3d1},_0x31885b={_0x289020:0x376,_0x26c74c:0x85};function _0x310290(_0x3c3e88,_0x3c5435,_0x54e13b,_0x1d045c){return _0x23b1c2(_0x3c3e88-0xc7,_0x3c3e88,_0x54e13b- -_0x31885b._0x289020,_0x1d045c-_0x31885b._0x26c74c);}function _0x250a03(_0x1e59f9,_0x144a3e,_0x20726e,_0x59b69e){return _0x23b1c2(_0x1e59f9-_0x24fa03._0x5e65ef,_0x1e59f9,_0x59b69e- -_0x24fa03._0x1c5c52,_0x59b69e-0x63);}return _0xfed06a[_0x310290(0x56,_0x5e8fe4._0x33a6a9,_0x5e8fe4._0x367c81,-_0x5e8fe4._0x4974ee)]('\x0a')[_0x250a03(0x181,-0x31,_0x5e8fe4._0x4ca582,0xb5)](_0x24cf0b=>{const _0x5687fc={_0x5bb5fc:0xa2,_0x24e1d8:0x18e,_0x2cbd1a:0x204};if(!_0x24cf0b[_0x46e4ce(0x135,0x1f6,_0x5997a._0x3f0dce,_0x5997a._0x246561)]('\x0d'))return _0x24cf0b;function _0x46e4ce(_0x20e477,_0x51d3c4,_0x4fd67a,_0xe5eb05){return _0x250a03(_0x20e477,_0x51d3c4-_0x5687fc._0x5bb5fc,_0x4fd67a-_0x5687fc._0x24e1d8,_0x51d3c4-_0x5687fc._0x2cbd1a);}function _0x452fa1(_0x10f636,_0x5c2d31,_0x4fed59,_0x544982){return _0x310290(_0x5c2d31,_0x5c2d31-0x1b8,_0x4fed59-0x98,_0x544982-0x1e0);}const _0x5cf7e6=_0x24cf0b['split']('\x0d');return _0x5cf7e6[_0x5cf7e6[_0x452fa1(_0x5997a._0x1765b8,0x1c6,0x1cb,0x178)]-0x1]??'';})[_0x250a03(-0x162,_0x5e8fe4._0x2610cb,-_0x5e8fe4._0x296381,-_0x5e8fe4._0x8748fa)]('\x0a');}function resolveBackspaces(_0x16e683){const _0x1847a4={_0x31fece:0x150,_0x37eecd:0x3,_0x217199:0xbf,_0x14bbb1:0x6e,_0x7e589:0x85,_0x162d09:0x161},_0x32f4bb={_0xddf269:0x9f,_0x66fffa:0x452,_0x16c10f:0x1ac},_0x3b1cc0={_0x3b23e6:0x1dc,_0x22a0c8:0x468};function _0x20e2aa(_0x227c63,_0x3465ab,_0x416109,_0x5b62a1){return _0x57b9de(_0x227c63-_0x3b1cc0._0x3b23e6,_0x416109,_0x227c63- -_0x3b1cc0._0x22a0c8,_0x5b62a1-0x9f);}function _0x24f0ac(_0xc722c6,_0x5cea96,_0x150a95,_0x3a9f55){return _0x23b1c2(_0xc722c6-_0x32f4bb._0xddf269,_0x5cea96,_0x3a9f55- -_0x32f4bb._0x66fffa,_0x3a9f55-_0x32f4bb._0x16c10f);}const _0x3ef72c=[];for(const _0x15881b of Array['from'](_0x16e683)){_0x15881b==='\x08'?_0x3ef72c[_0x20e2aa(-0xee,0x1,-0x22c,-_0x1847a4._0x31fece)]():_0x3ef72c[_0x24f0ac(_0x1847a4._0x37eecd,-_0x1847a4._0x217199,_0x1847a4._0x14bbb1,-0xbd)](_0x15881b);}return _0x3ef72c[_0x24f0ac(-_0x1847a4._0x7e589,-0x21c,-0x1c5,-_0x1847a4._0x162d09)]('');}function _0x27a7(_0x59f3f6,_0x2c8001){_0x59f3f6=_0x59f3f6-0x1a7;const _0x3d53d4=_0x3d53();let _0x27a7e7=_0x3d53d4[_0x59f3f6];if(_0x27a7['Tryhwh']===undefined){var _0x509f0c=function(_0x33be50){const _0x408d87='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x323bca='',_0x3586d2='';for(let _0x3cc5cf=0x0,_0x5b6570,_0x5ae67b,_0x16b600=0x0;_0x5ae67b=_0x33be50['charAt'](_0x16b600++);~_0x5ae67b&&(_0x5b6570=_0x3cc5cf%0x4?_0x5b6570*0x40+_0x5ae67b:_0x5ae67b,_0x3cc5cf++%0x4)?_0x323bca+=String['fromCharCode'](0xff&_0x5b6570>>(-0x2*_0x3cc5cf&0x6)):0x0){_0x5ae67b=_0x408d87['indexOf'](_0x5ae67b);}for(let _0x259d3=0x0,_0x4be518=_0x323bca['length'];_0x259d3<_0x4be518;_0x259d3++){_0x3586d2+='%'+('00'+_0x323bca['charCodeAt'](_0x259d3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3586d2);};_0x27a7['PfaliV']=_0x509f0c,_0x27a7['wMeNQS']={},_0x27a7['Tryhwh']=!![];}const _0x25d84d=_0x3d53d4[0x0],_0x63a7a1=_0x59f3f6+_0x25d84d,_0x5b22bb=_0x27a7['wMeNQS'][_0x63a7a1];return!_0x5b22bb?(_0x27a7e7=_0x27a7['PfaliV'](_0x27a7e7),_0x27a7['wMeNQS'][_0x63a7a1]=_0x27a7e7):_0x27a7e7=_0x5b22bb,_0x27a7e7;}function stripAnsiAndControls(_0x18fe4c){const _0x1f859f={_0x23a328:0x8f,_0x1a33c4:0x16f,_0x2a403d:0x131,_0x52ade2:0x5d,_0x29a9c1:0x59,_0x1e3aa3:0x60,_0x25b220:0x28a,_0x2745fa:0x233,_0x4a6075:0x321,_0xda3cb9:0xb0,_0x3bcf66:0x143,_0x4aa7ee:0x3cb,_0x34e7d5:0x326,_0x41d1fc:0x1d3,_0x292f6b:0xb8,_0x58daf4:0x61,_0x47f086:0x101,_0x866db4:0x27,_0x421ec2:0x10e},_0x24430a={_0x5b21dc:0x119};function _0x416360(_0x4be6da,_0x49632b,_0x378bbf,_0x481d25){return _0x23b1c2(_0x4be6da-0x152,_0x481d25,_0x49632b- -0x3b0,_0x481d25-0x63);}function _0x206ee1(_0x45a2e4,_0x59020b,_0x1cacb1,_0x57fd4e){return _0x23b1c2(_0x45a2e4-0xc2,_0x59020b,_0x1cacb1- -_0x24430a._0x5b21dc,_0x57fd4e-0x76);}_0x18fe4c=resolveCarriageReturns(_0x18fe4c),_0x18fe4c=resolveBackspaces(_0x18fe4c),_0x18fe4c=stripVTControlCharacters(_0x18fe4c);const _0x361220='\x1b',_0x1029b3='\x07';return _0x18fe4c=_0x18fe4c[_0x416360(0x18f,_0x1f859f._0x23a328,_0x1f859f._0x1a33c4,_0x1f859f._0x2a403d)](new RegExp(_0x416360(0x13e,0x19,0x2d,0xa0)+_0x1029b3+_0x416360(-0x13e,-_0x1f859f._0x52ade2,_0x1f859f._0x29a9c1,-0x2d)+_0x1029b3,'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(-_0x1f859f._0x1e3aa3,_0x1f859f._0x23a328,-0x22,-0x25)](new RegExp(_0x206ee1(_0x1f859f._0x25b220,_0x1f859f._0x2745fa,0x37e,_0x1f859f._0x4a6075)+_0x361220+'\x5c\x5c','g'),''),_0x18fe4c=_0x18fe4c['replace'](new RegExp(_0x1029b3,'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(0x98,0x8f,_0x1f859f._0xda3cb9,_0x1f859f._0x3bcf66)](new RegExp(_0x361220+'[P_^][\x5cs\x5cS]*?'+_0x361220+'\x5c\x5c','g'),''),_0x18fe4c=_0x18fe4c[_0x206ee1(0x462,_0x1f859f._0x4aa7ee,_0x1f859f._0x34e7d5,_0x1f859f._0x41d1fc)](new RegExp(_0x361220+_0x416360(-0xf0,-_0x1f859f._0x292f6b,-0x6e,-_0x1f859f._0x58daf4),'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(0x3b,0x8f,0x0,_0x1f859f._0x47f086)](/[\u0080-\u009F]/g,''),_0x18fe4c=_0x18fe4c[_0x206ee1(0x326,0x205,0x326,0x248)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x18fe4c=_0x18fe4c[_0x416360(-_0x1f859f._0x866db4,0x8f,_0x1f859f._0x421ec2,0x8d)](/[\u23CE\u2424]/g,''),_0x18fe4c;}function resolveWorkingDirectory(_0x447afb,_0x37b372,_0x1d017f){const _0x7d438d={_0x32fcc6:0x26},_0x5bf951={_0x1b39b5:0x72},_0x218733={_0x3fe06c:0x105};function _0x12b63d(_0x390cc9,_0x49d080,_0x13d3f4,_0x217df2){return _0x57b9de(_0x390cc9-0x9e,_0x390cc9,_0x13d3f4- -0x49,_0x217df2-_0x218733._0x3fe06c);}const _0x5d113e=resolveAllowedPath(_0x37b372,_0x1d017f,_0x447afb??'.');function _0x1a54fb(_0x183c0c,_0x131b3b,_0x47e2da,_0x4f43d2){return _0x57b9de(_0x183c0c-_0x5bf951._0x1b39b5,_0x4f43d2,_0x131b3b- -0x2ad,_0x4f43d2-0x14d);}try{const _0x47f054=statSync(_0x5d113e);if(!_0x47f054[_0x1a54fb(0x9e,0x158,0x155,0xd6)]())throw new ToolExecutionError(_0x1a54fb(0x33e,0x269,0x15d,0x23b)+_0x5d113e,{'cwd':_0x5d113e});return _0x5d113e;}catch(_0x4fa75d){if(_0x4fa75d instanceof ToolExecutionError)throw _0x4fa75d;throw new ToolExecutionError(_0x1a54fb(0x202,0xdd,0x133,-_0x7d438d._0x32fcc6)+_0x5d113e,{'cwd':_0x5d113e});}}function killProcessGroup(_0x2cb3c6,_0x5994b9,_0x3730d8=_0x23b1c2(0x29e,0x41c,0x330,0x1e0)){const _0x310c4d={_0x36ef7f:0xc4,_0x146f33:0x15c,_0x2df8df:0x1c2,_0x2dd576:0x29,_0xdc4430:0x1b1,_0x485225:0x167,_0x5db02c:0x73,_0xad9322:0x166,_0x2ffadf:0x5d5,_0x79eb9:0x734,_0x3fad6e:0x4b9,_0x3279f7:0x485,_0x4f7b12:0x45b},_0x27db4f={_0x57c52d:0xf0,_0x53809f:0x387},_0x2b9dd4={_0x44e41e:0x175};function _0x5081e3(_0x142927,_0x349bb4,_0x3d63f0,_0x5937d4){return _0x57b9de(_0x142927-0xfc,_0x3d63f0,_0x142927-_0x2b9dd4._0x44e41e,_0x5937d4-0x1c7);}if(!_0x2cb3c6['pid'])return;if(_0x5994b9)try{_0x4be518(_0x15843d(0xc9,_0x310c4d._0x36ef7f,_0x310c4d._0x146f33,_0x310c4d._0x2df8df),[_0x15843d(-0xa0,0x15b,0x3d,0xa1),_0x2cb3c6['pid']['toString'](),'/T','/F'],{'stdio':_0x15843d(-0x188,-0xa1,-0xc7,_0x310c4d._0x2dd576)});return;}catch{_0x2cb3c6['kill'](_0x3730d8);return;}function _0x15843d(_0x204477,_0x1b1f1e,_0x2bbf7d,_0x1806d5){return _0x23b1c2(_0x204477-_0x27db4f._0x57c52d,_0x204477,_0x2bbf7d- -_0x27db4f._0x53809f,_0x1806d5-0x187);}try{process[_0x15843d(-_0x310c4d._0xdc4430,-_0x310c4d._0x485225,-_0x310c4d._0x5db02c,-_0x310c4d._0xad9322)](-_0x2cb3c6[_0x5081e3(0x6f5,0x725,_0x310c4d._0x2ffadf,_0x310c4d._0x79eb9)],_0x3730d8);}catch{_0x2cb3c6[_0x5081e3(0x537,_0x310c4d._0x3fad6e,_0x310c4d._0x3279f7,_0x310c4d._0x4f7b12)](_0x3730d8);}}function appendChunk(_0x4bbca7,_0x3b1b91,_0x1c96cc,_0x273d6d,_0x1f7206){const _0x3e8143={_0x11f2b2:0x393,_0x4e1523:0x340,_0x259b05:0x427},_0x5b17ad={_0x1d1e85:0x115,_0x5d47c0:0x39},_0x461be5=_0x273d6d?stripAnsiAndControls(_0x1c96cc):_0x1c96cc;function _0x19b1a3(_0x3a9363,_0x4b14b4,_0x391a3b,_0x301d1a){return _0x23b1c2(_0x3a9363-0x172,_0x391a3b,_0x3a9363- -_0x5b17ad._0x1d1e85,_0x301d1a-_0x5b17ad._0x5d47c0);}if(_0x461be5[_0x19b1a3(0x394,_0x3e8143._0x11f2b2,_0x3e8143._0x4e1523,_0x3e8143._0x259b05)]===0x0)return;_0x4bbca7['push'](_0x461be5),_0x3b1b91['push'](_0x461be5),_0x1f7206();}function createBashTool(_0x2bc824={}){const _0x11ffde={_0x2bb5c1:0x3d5,_0x34971d:0x38b,_0x3d3806:0x323,_0x736844:0x308,_0x51d501:0x2d1,_0x560955:0x396,_0x181091:0x3e9,_0x250f82:0x413,_0x2e8a6b:0x428,_0x5310c5:0x4d9,_0x3b598f:0x448,_0x2fca52:0x61a,_0x8b61bd:0x4d4,_0x4e4632:0x434,_0x488320:0x451,_0x1926ac:0x3cb,_0x2a4e78:0x308,_0x134220:0x1d7,_0x158545:0x27e,_0x4056cf:0x2e9,_0xfdccea:0x26e,_0x114d13:0x511,_0xe4b22b:0x3f0,_0x3751f8:0x348,_0x22a647:0x2d3,_0xdb5a6a:0x3f3},_0x56e15b={_0x2d6a5b:0x66f,_0xd59e72:0x613,_0x3e1c7a:0x64e,_0x3d3d0f:0x51c,_0x4e278d:0x369,_0x984fb:0x3c9,_0x45e0e2:0x4b1,_0x13fc5c:0x616,_0x1acba8:0x55c,_0x240a72:0x63e,_0x2dadaf:0x735,_0x12d7b9:0x663,_0x2d5bf4:0x528,_0x1898f5:0x5da,_0x51fbba:0x3ed,_0x3ada6d:0x4b7,_0x184e7a:0x4d6,_0x4ad758:0x62a,_0x598b03:0x54c,_0x4a3f8d:0x69a,_0x4deae6:0x63f,_0x246b67:0x4dc,_0x4af58d:0x4d2,_0x1bc46c:0x2d0,_0x1106fa:0x46e,_0x4dcffe:0x369,_0x50d1ca:0x4ab,_0x46c723:0x519,_0x260183:0x458,_0x201275:0x417,_0x438025:0x8bb,_0x3aaeb5:0x89e,_0x53a0d5:0x8d0,_0x10d0e4:0x798,_0x3f812e:0x7f0,_0x509ebc:0x6cd,_0x15134e:0x6ce,_0x480813:0x86d,_0x223d7b:0x814,_0x558924:0x761,_0x3c6868:0x4ef,_0x2c333e:0x4d5,_0x6d9842:0x4eb,_0x2b7e8d:0x704,_0xbbae97:0x89a,_0x417973:0x875,_0x3b7872:0x53e,_0x39aed4:0x611,_0x2f6217:0x40c,_0x5e9968:0x542,_0xdefba:0x600,_0x2b833b:0x5e5,_0x1a1ba7:0x57b,_0x44b961:0x4a9,_0x510c4d:0x717,_0x299378:0x5ed,_0x2849ef:0x593,_0x4bbf34:0x5df,_0xd324ad:0x5fa,_0xd37019:0x61c,_0x3a3fc2:0x5ca,_0x30edf6:0x5a1,_0x3db712:0x68a,_0x5a913e:0x4db,_0x561a18:0x567,_0x407843:0x522,_0xd6773f:0x55a,_0x4aed3e:0x730,_0x5c8e28:0x887,_0x4e2843:0x5f9,_0x32ca25:0x4b0,_0x10d329:0x5e7,_0x2c326a:0x4a0,_0x31c793:0x57b,_0x11e085:0x451,_0x39da56:0x77c,_0x3d7e4f:0x655,_0x3a6b1d:0x6d0,_0x4da60f:0x5ea,_0x3fdc95:0x55c,_0x542eb7:0x608,_0x27a9fb:0x6a9,_0x2014ff:0x419,_0x29f75a:0x594,_0x3ac561:0x6af,_0x2046e3:0x517,_0x529c04:0x786,_0x56e86a:0x438,_0x185855:0x611,_0x1b5c9b:0x53f},_0x2d4c4a={_0x4173b5:0x126},_0x134f3e={_0x3710ae:0x77b},_0x5e2487={_0x5d37cc:0x156},_0x2f0011={_0x509989:0x90,_0x495aba:0x15c},_0x4440d5={_0x50c0b0:0x141,_0x4df927:0x84},_0x35863f={_0xf6e7c:0xc0,_0x3db76a:0x78},_0x341f79=_0x181fe3[_0x532c59(_0x11ffde._0x2bb5c1,0x267,0x26f,_0x11ffde._0x34971d)](_0x2bc824[_0x24ac5f(_0x11ffde._0x3d3806,0x408,_0x11ffde._0x736844,0x227)]??process[_0x24ac5f(_0x11ffde._0x51d501,_0x11ffde._0x560955,0x32d,_0x11ffde._0x181091)]());function _0x24ac5f(_0xf2634a,_0x2c97fd,_0x30a171,_0x2aa6d2){return _0x57b9de(_0xf2634a-0x10e,_0x2c97fd,_0xf2634a- -_0x35863f._0xf6e7c,_0x2aa6d2-_0x35863f._0x3db76a);}const _0x431ac8=(_0x2bc824[_0x24ac5f(_0x11ffde._0x250f82,_0x11ffde._0x2e8a6b,_0x11ffde._0x5310c5,0x50c)]??[])[_0x532c59(0x3fc,_0x11ffde._0x3b598f,_0x11ffde._0x2fca52,_0x11ffde._0x8b61bd)](_0x651871=>_0x181fe3[_0x532c59(0x357,0x446,0x3df,0x38b)](_0x651871)),_0x2f7efd=_0x2bc824[_0x24ac5f(_0x11ffde._0x4e4632,0x339,_0x11ffde._0x488320,_0x11ffde._0x1926ac)]??DEFAULT_TIMEOUT_MS;function _0x532c59(_0x4725f5,_0x5480a0,_0x476aa3,_0x5a3f40){return _0x23b1c2(_0x4725f5-_0x4440d5._0x50c0b0,_0x4725f5,_0x5a3f40-0x4e,_0x5a3f40-_0x4440d5._0x4df927);}const _0x2ab0aa=_0x2bc824[_0x24ac5f(_0x11ffde._0x2a4e78,_0x11ffde._0x134220,_0x11ffde._0x158545,0x3c8)]??!![],_0x136543=_0x2bc824['name']??_0x24ac5f(0x27b,_0x11ffde._0x4056cf,0x36f,_0x11ffde._0xfdccea);return defineTool({'name':_0x136543,'description':_0x2bc824['description']??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x24ac5f(0x3ca,_0x11ffde._0x114d13,0x283,0x29e),'properties':{'command':{'type':'string'},'cwd':{'type':_0x532c59(_0x11ffde._0xe4b22b,0x3b5,_0x11ffde._0x3751f8,_0x11ffde._0x22a647)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':'boolean'}},'required':[_0x24ac5f(_0x11ffde._0xdb5a6a,0x425,0x2bf,0x2c4)]},async *'execute'(_0x4da20f,_0xa525ab){const _0x30e10d={_0x2a3580:0x44b,_0x577603:0x2e8,_0x4f235e:0x40c,_0x233b30:0x54b,_0x950af0:0x680},_0x52ece7={_0x34ca94:0x127,_0x3d1344:0xa2,_0x196d57:0x21a},_0x519994={_0xf1fac:0x2d3,_0x1f8134:0x426,_0x19f457:0x3b3},_0x491138={_0x4cfc61:0x2d2,_0x1815fb:0x1c7},_0x598cad={_0x2c800e:0x603},_0x466be3={_0x2708f6:0x1bc},_0x12ded6={_0xf33a6d:0x1e7,_0xf609f4:0xb0},_0x1ab551=_0x4da20f[_0x50cf3b(_0x56e15b._0x2d6a5b,_0x56e15b._0xd59e72,_0x56e15b._0x3e1c7a,_0x56e15b._0x3d3d0f)]??_0x2f7efd;if(!Number[_0x284a54(_0x56e15b._0x4e278d,_0x56e15b._0x984fb,0x3a7,0x440)](_0x1ab551)||_0x1ab551<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x4da20f[_0x284a54(_0x56e15b._0x45e0e2,_0x56e15b._0x13fc5c,_0x56e15b._0x1acba8,0x489)]});throwIfAborted(_0xa525ab[_0x50cf3b(0x62e,_0x56e15b._0x240a72,_0x56e15b._0x2dadaf,_0x56e15b._0x12d7b9)]);const _0x22e319=resolveWorkingDirectory(_0x4da20f[_0x284a54(0x348,0x508,0x43a,_0x56e15b._0x2d5bf4)],_0x341f79,_0x431ac8),_0xf73d3d=_0x4da20f[_0x284a54(_0x56e15b._0x1898f5,_0x56e15b._0x51fbba,_0x56e15b._0x3ada6d,_0x56e15b._0x184e7a)]??![],_0x3dff44=resolveDefaultShell(_0x2bc824[_0x50cf3b(_0x56e15b._0x4ad758,_0x56e15b._0x598b03,_0x56e15b._0x4a3f8d,_0x56e15b._0x4deae6)]),_0x45ea53=buildShellArgs(_0x4da20f['command'],_0x3dff44),_0x3bdb06=_0x1eb728[_0x50cf3b(0x598,0x573,_0x56e15b._0x246b67,0x55a)]()===_0x284a54(_0x56e15b._0x4af58d,_0x56e15b._0x1bc46c,0x39e,_0x56e15b._0x1106fa);let _0x25fb16;try{_0x25fb16=_0x4be518(_0x3dff44,_0x45ea53,{'cwd':_0x22e319,'env':{...process[_0x284a54(0x3cc,_0x56e15b._0x4dcffe,0x4ab,0x5f3)],..._0x2bc824[_0x284a54(0x362,0x5d6,_0x56e15b._0x50d1ca,0x502)]??{}},'stdio':_0xf73d3d?['ignore',_0x284a54(_0x56e15b._0x46c723,0x56a,0x417,0x337),_0x284a54(0x3dc,_0x56e15b._0x260183,0x417,0x34c)]:[_0x284a54(0x334,0x2df,_0x56e15b._0x201275,0x337),_0x50cf3b(_0x56e15b._0x438025,_0x56e15b._0x3aaeb5,_0x56e15b._0x53a0d5,_0x56e15b._0x10d0e4),_0x50cf3b(_0x56e15b._0x3f812e,_0x56e15b._0x509ebc,_0x56e15b._0x15134e,_0x56e15b._0x10d0e4)],'shell':![],'windowsHide':!![],'detached':!_0x3bdb06});}catch(_0x3c1ccb){if(isErrnoException(_0x3c1ccb)&&_0x3c1ccb[_0x50cf3b(0x6ad,_0x56e15b._0x480813,_0x56e15b._0x223d7b,_0x56e15b._0x558924)]==='ENOENT')throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x3dff44,{'command':_0x4da20f['command'],'cwd':_0x22e319,'shellPath':_0x3dff44});throw new ToolExecutionError(_0x3c1ccb instanceof Error?_0x3c1ccb['message']:String(_0x3c1ccb),{'command':_0x4da20f['command'],'cwd':_0x22e319,'shellPath':_0x3dff44});}function _0x50cf3b(_0xa82835,_0x2f8fcf,_0x3c4ddd,_0xa427c8){return _0x532c59(_0x2f8fcf,_0x2f8fcf-_0x2f0011._0x509989,_0x3c4ddd-_0x2f0011._0x495aba,_0xa427c8-0x28b);}const _0x189567=[],_0x16de8e=[],_0x4c0cd9=new StringDecoder('utf8'),_0x2d4da6=new StringDecoder('utf8');let _0x226bed,_0x295f9e=![],_0x11b86f;const _0x135874=()=>{if(!_0x226bed)return;const _0x3fb3e4=_0x226bed;_0x226bed=void 0x0,_0x3fb3e4();};function _0x284a54(_0x1754e4,_0x4e8ce2,_0x5aa4c0,_0x7d036d){return _0x532c59(_0x1754e4,_0x4e8ce2-0x15c,_0x5aa4c0-_0x5e2487._0x5d37cc,_0x5aa4c0-0x109);}const _0x35dc71=async()=>{function _0x32f7dc(_0x30efce,_0x226e1a,_0x5729ea,_0x1d0fd1){return _0x284a54(_0x226e1a,_0x226e1a-_0x12ded6._0xf33a6d,_0x30efce-0x3e,_0x1d0fd1-_0x12ded6._0xf609f4);}if(_0x16de8e[_0x32f7dc(0x63e,_0x134f3e._0x3710ae,0x5f7,0x553)]>0x0||_0x295f9e)return;await new Promise(_0x30ddd3=>{_0x226bed=_0x30ddd3;});},_0xf7f030=_0x4d7a2a=>{function _0x3b95aa(_0x573993,_0x5a218,_0x4768d2,_0x562656){return _0x50cf3b(_0x573993-0x180,_0x5a218,_0x4768d2-_0x466be3._0x2708f6,_0x4768d2- -0x1e2);}appendChunk(_0x189567,_0x16de8e,_0x4c0cd9[_0x3b95aa(_0x598cad._0x2c800e,0x5d9,0x4f5,0x5aa)](_0x4d7a2a),_0x2ab0aa,_0x135874);},_0x393ac4=_0x2e2c89=>{const _0x32e020={_0x28ef00:0x131,_0x30fdbc:0x38e,_0x353419:0x66};function _0x495454(_0x40b9e0,_0x50b6c1,_0x265a70,_0x1c1fc3){return _0x284a54(_0x1c1fc3,_0x50b6c1-_0x32e020._0x28ef00,_0x50b6c1- -_0x32e020._0x30fdbc,_0x1c1fc3-_0x32e020._0x353419);}appendChunk(_0x189567,_0x16de8e,_0x2d4da6[_0x495454(_0x491138._0x4cfc61,_0x491138._0x1815fb,0x2c8,0x108)](_0x2e2c89),_0x2ab0aa,_0x135874);};_0x25fb16[_0x284a54(_0x56e15b._0x3c6868,_0x56e15b._0x2c333e,_0x56e15b._0x6d9842,0x537)]?.['on'](_0x50cf3b(0x674,0x79f,_0x56e15b._0x2b7e8d,0x793),_0xf7f030),_0x25fb16[_0x50cf3b(_0x56e15b._0xbbae97,_0x56e15b._0x417973,0x74f,0x786)]?.['on'](_0x284a54(_0x56e15b._0x3b7872,0x6cc,_0x56e15b._0x39aed4,0x575),_0x393ac4);let _0x47dcc9=![],_0x257e51;const _0x159ec6=addAbortListener(_0xa525ab[_0x284a54(0x461,_0x56e15b._0x2f6217,0x4e1,0x56f)],()=>{const _0x5c5d5d={_0x5132ff:0x91,_0x1458b3:0x533};function _0x5304f5(_0x27b089,_0x5a594b,_0x308584,_0x3f561c){return _0x284a54(_0x3f561c,_0x5a594b-_0x5c5d5d._0x5132ff,_0x308584- -_0x5c5d5d._0x1458b3,_0x3f561c-0x68);}_0x11b86f=toAbortError(_0xa525ab['signal'][_0x5304f5(-0x103,0x2,-_0x2d4c4a._0x4173b5,-0xec)]),_0x295f9e=!![],_0x135874();try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}});try{const _0x75572c=new Promise((_0x30e2d9,_0x3a76cc)=>{const _0x380100={_0x260c34:0x13b,_0x2a09db:0x243,_0xcb8f13:0x269,_0x5e34d8:0x1f7,_0x19b000:0x244,_0x3ab8d6:0xd3,_0x3af6e8:0x1a0,_0xc3ed38:0x57},_0x5335fc={_0x618d16:0x72,_0x178137:0xbe,_0xb86091:0x1e4,_0xcc8acd:0x21a,_0x28fa69:0x73,_0x5e93ff:0x385,_0x42ad0a:0x336,_0x2bec24:0x33c},_0x32c5be={_0x3cc23e:0x1a6};function _0x2f808c(_0x57ba6b,_0x211ac0,_0x2c2365,_0xfa09c7){return _0x284a54(_0x57ba6b,_0x211ac0-0x126,_0x211ac0-_0x32c5be._0x3cc23e,_0xfa09c7-0x154);}const _0x14db04=()=>{function _0xd88536(_0x57c2c9,_0x41b5b0,_0x5b179d,_0x47473e){return _0x27a7(_0x57c2c9-0x9a,_0x47473e);}_0x257e51&&(clearTimeout(_0x257e51),_0x257e51=void 0x0);function _0x2d0d3f(_0x1bcd4a,_0x34c40f,_0x184a38,_0xdc600b){return _0x27a7(_0x34c40f- -0x185,_0x1bcd4a);}_0x25fb16[_0x2d0d3f(-0x89,_0x5335fc._0x618d16,_0x5335fc._0x178137,0x13e)](_0x2d0d3f(0x235,_0x5335fc._0xb86091,_0x5335fc._0xcc8acd,0x94),_0x1e63a7),_0x25fb16[_0x2d0d3f(0x137,0x72,_0x5335fc._0x28fa69,0x1b7)](_0xd88536(_0x5335fc._0x5e93ff,0x270,_0x5335fc._0x42ad0a,_0x5335fc._0x2bec24),_0x5963ea);},_0x1e63a7=_0x1d6adc=>{_0x295f9e=!![],_0x135874(),_0x14db04(),_0x3a76cc(_0x11b86f??_0x1d6adc);},_0x5963ea=(_0x997ca7,_0xe562bd)=>{function _0x18e246(_0x4ba1b1,_0x34206a,_0x5c3455,_0x4a909f){return _0x27a7(_0x4ba1b1-0x11a,_0x5c3455);}_0x47dcc9=!![],appendChunk(_0x189567,_0x16de8e,_0x4c0cd9['end'](),_0x2ab0aa,_0x135874),appendChunk(_0x189567,_0x16de8e,_0x2d4da6[_0x18e246(_0x519994._0xf1fac,0x1d8,_0x519994._0x1f8134,_0x519994._0x19f457)](),_0x2ab0aa,_0x135874),_0x295f9e=!![],_0x135874(),_0x14db04();if(_0x11b86f){_0x3a76cc(_0x11b86f);return;}_0x30e2d9({'code':_0x997ca7,'signal':_0xe562bd});};_0x257e51=setTimeout(()=>{_0x295f9e=!![],_0x135874(),_0x14db04();function _0xba8e1b(_0x2e2539,_0x4f7bc8,_0x500877,_0x3b24d0){return _0x27a7(_0x500877- -0x1cd,_0x3b24d0);}try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}function _0x1df7e3(_0x964003,_0x328294,_0x575a35,_0x41e1ff){return _0x27a7(_0x964003-0x39,_0x41e1ff);}_0x3a76cc(new ToolExecutionError(_0xba8e1b(0x1fb,0x94,_0x380100._0x260c34,0x1c8)+_0x1ab551+_0x1df7e3(_0x380100._0x2a09db,_0x380100._0xcb8f13,0x1c5,_0x380100._0x5e34d8),{'command':_0x4da20f[_0xba8e1b(_0x380100._0x19b000,_0x380100._0x3ab8d6,_0x380100._0x3af6e8,_0x380100._0xc3ed38)],'cwd':_0x22e319,'shellPath':_0x3dff44,'timeoutMs':_0x1ab551,'timedOut':!![]}));},_0x1ab551);function _0x3eea33(_0xf8acbf,_0x4ef3fa,_0x39abaf,_0x2131a7){return _0x50cf3b(_0xf8acbf-_0x52ece7._0x34ca94,_0xf8acbf,_0x39abaf-_0x52ece7._0x3d1344,_0x39abaf- -_0x52ece7._0x196d57);}_0x25fb16[_0x3eea33(_0x30e10d._0x2a3580,0x402,0x39c,_0x30e10d._0x577603)](_0x3eea33(0x4ea,0x5b1,0x4c0,_0x30e10d._0x4f235e),_0x1e63a7),_0x25fb16['once'](_0x2f808c(_0x30e10d._0x233b30,_0x30e10d._0x950af0,0x5ca,0x5ab),_0x5963ea);});while(_0x16de8e[_0x284a54(0x740,_0x56e15b._0x5e9968,_0x56e15b._0xdefba,_0x56e15b._0x2b833b)]>0x0||!_0x295f9e){if(_0x16de8e['length']===0x0){await _0x35dc71();continue;}const _0x4f6e54=_0x16de8e[_0x284a54(_0x56e15b._0x1a1ba7,0x4f7,_0x56e15b._0x44b961,0x389)]();_0x4f6e54!==void 0x0&&(yield _0x4f6e54);}const _0x4185d2=await _0x75572c,_0x1c6bd2=_0xf73d3d?_0x284a54(_0x56e15b._0x510c4d,0x709,_0x56e15b._0x299378,0x678)+(_0x4185d2[_0x284a54(0x4d2,_0x56e15b._0x2849ef,_0x56e15b._0x4bbf34,_0x56e15b._0xd324ad)]??0x0):_0x189567[_0x50cf3b(0x487,_0x56e15b._0xd37019,0x5ca,_0x56e15b._0x3a3fc2)](''),_0x14f461={'command':_0x4da20f[_0x50cf3b(_0x56e15b._0x30edf6,0x68e,0x7c7,0x6de)],'cwd':_0x22e319,'exitCode':_0x4185d2['code']??0x0,'signal':_0x4185d2[_0x50cf3b(0x61c,_0x56e15b._0x3db712,0x55e,0x663)],'ignoreOutput':_0xf73d3d,'shellPath':_0x3dff44,'timeoutMs':_0x1ab551};if(_0x4185d2['code']!==0x0)throw new ToolExecutionError(_0x1c6bd2||'Command\x20exited\x20with\x20code\x20'+(_0x4185d2[_0x284a54(_0x56e15b._0x5a913e,0x510,0x5df,_0x56e15b._0x561a18)]??0x0),_0x14f461);return createToolOutput(_0x1c6bd2,_0x14f461);}catch(_0x128a5b){while(_0x16de8e[_0x284a54(0x50b,_0x56e15b._0x407843,0x600,_0x56e15b._0xd6773f)]>0x0){const _0x331d59=_0x16de8e['shift']();_0x331d59!==void 0x0&&(yield _0x331d59);}if(_0x128a5b instanceof ToolExecutionError)throw _0x128a5b;if(_0x11b86f)throw _0x11b86f;if(isErrnoException(_0x128a5b)&&_0x128a5b[_0x50cf3b(_0x56e15b._0x4aed3e,0x890,_0x56e15b._0x5c8e28,0x761)]===_0x284a54(0x4b8,_0x56e15b._0x4e2843,_0x56e15b._0x32ca25,0x4f2))throw new ToolExecutionError(_0x284a54(0x616,0x598,_0x56e15b._0x10d329,0x722)+_0x3dff44,{'command':_0x4da20f[_0x284a54(_0x56e15b._0x2c326a,_0x56e15b._0x31c793,_0x56e15b._0x1acba8,_0x56e15b._0x11e085)],'cwd':_0x22e319,'shellPath':_0x3dff44});throw new ToolExecutionError(_0x128a5b instanceof Error?_0x128a5b[_0x50cf3b(_0x56e15b._0x39da56,_0x56e15b._0x3d7e4f,0x794,_0x56e15b._0x3a6b1d)]:String(_0x128a5b),{'command':_0x4da20f[_0x284a54(_0x56e15b._0x4da60f,0x592,_0x56e15b._0x3fdc95,_0x56e15b._0x542eb7)],'cwd':_0x22e319,'shellPath':_0x3dff44});}finally{_0x257e51&&clearTimeout(_0x257e51);_0x159ec6(),_0x25fb16[_0x284a54(0x39f,0x637,0x4eb,0x5ae)]?.[_0x50cf3b(_0x56e15b._0x27a9fb,_0x56e15b._0x2014ff,_0x56e15b._0x29f75a,0x568)](_0x284a54(_0x56e15b._0x3ac561,0x568,_0x56e15b._0x39aed4,_0x56e15b._0x2046e3),_0xf7f030),_0x25fb16[_0x50cf3b(0x656,0x664,0x80b,_0x56e15b._0x529c04)]?.[_0x50cf3b(0x44d,0x5cb,_0x56e15b._0x56e86a,0x568)](_0x284a54(0x55f,0x5c2,_0x56e15b._0x185855,0x73b),_0x393ac4);if(!_0x47dcc9&&_0x25fb16[_0x284a54(0x618,_0x56e15b._0x1b5c9b,0x629,0x609)]&&!_0x25fb16['killed'])try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}}}});}function createShellExecTool(_0x301293={}){return createBashTool(_0x301293);}import{readdir,readFile as _0x2e547c}from'fs/promises';import{extname,join as _0x50860e}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0xcae7df,join,relative as _0x76c7e4,resolve as _0x4c8a54}from'path';import{readdir as _0x2cc386,readFile as _0x299a8d}from'fs/promises';import{join as _0x2a6f36,relative as _0x13780c,sep}from'path';import{delimiter}from'path';import{mkdir as _0x554e1b,rm,stat as _0x5d7b2d,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x366b9f}from'path';function _0x23b1c2(_0x3bf939,_0x538070,_0x3ce014,_0x1e7a6e){const _0x3fa5b1={_0x2b344e:0x98};return _0x27a7(_0x3ce014-_0x3fa5b1._0x2b344e,_0x538070);}import{unwatchFile,watchFile}from'fs';import{readFile as _0x14c8b9,rename,writeFile as _0x5adb06}from'fs/promises';import{homedir as _0x126b8c}from'os';import{dirname as _0x4da8c1,isAbsolute as _0x1bf174,join as _0x2c4418,resolve as _0x3f8134}from'path';import{parse as _0x22d8a9,stringify as _0x8dc396}from'yaml';import{cp,mkdir as _0x2618bb,readFile as _0x1c5dce,rm as _0x5d6a99,writeFile as _0x4f7c10}from'fs/promises';import{homedir}from'os';function _0x57b9de(_0x868b3,_0x3890f3,_0x54eaf0,_0x54e61d){return _0x27a7(_0x54eaf0-0x146,_0x3890f3);}import{join as _0x7226ea}from'path';import{parse as _0x4165ec,stringify as _0x107e68}from'yaml';import{z}from'zod';import{readdir as _0x4c4a93,readFile as _0x185b1b}from'fs/promises';import{join as _0x3759ee}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x73a299){const _0x35e952={_0x44b22a:0x1e9,_0x3bfac6:0xe8,_0x381594:0x329,_0x379324:0x101,_0x214806:0x1e9,_0x3849eb:0x457,_0x35d626:0x2c9,_0x5602a2:0x3dd,_0x1f6a01:0x319,_0x3f7901:0x371,_0x121162:0x27e},_0x2baebc={_0x339c70:0x36e,_0x4ecf0a:0x1ba},_0x30989f={_0x3e4285:0x12f,_0x1aef7d:0x92};function _0x1a61e9(_0x22b62d,_0x5a9127,_0x18d251,_0x5ca85c){return _0x57b9de(_0x22b62d-_0x30989f._0x3e4285,_0x5ca85c,_0x5a9127- -0x12a,_0x5ca85c-_0x30989f._0x1aef7d);}function _0x507276(_0x28f641,_0x473231,_0x3a5511,_0x37186b){return _0x57b9de(_0x28f641-0x1ba,_0x28f641,_0x3a5511- -_0x2baebc._0x339c70,_0x37186b-_0x2baebc._0x4ecf0a);}const _0x2494bd=[];let _0x2109c8='',_0x332a02=0x0;while(_0x332a02<_0x73a299[_0x507276(0x207,0x12f,_0x35e952._0x44b22a,_0x35e952._0x3bfac6)]){const _0x398295=_0x73a299[_0x332a02];if(_0x398295==='\x5c'&&_0x332a02+0x1<_0x73a299[_0x507276(_0x35e952._0x381594,_0x35e952._0x379324,_0x35e952._0x214806,0x320)])_0x2109c8+=_0x73a299[_0x332a02+0x1],_0x332a02+=0x2;else{if(_0x398295==='\x22'||_0x398295==='\x27'){const _0xc678e6=_0x398295;_0x332a02++;while(_0x332a02<_0x73a299['length']&&_0x73a299[_0x332a02]!==_0xc678e6){_0x73a299[_0x332a02]==='\x5c'&&_0x332a02+0x1<_0x73a299['length']?(_0x2109c8+=_0x73a299[_0x332a02+0x1],_0x332a02+=0x2):(_0x2109c8+=_0x73a299[_0x332a02],_0x332a02++);}_0x332a02++;}else _0x398295!==void 0x0&&/\s/['test'](_0x398295)?(_0x2109c8&&(_0x2494bd[_0x1a61e9(_0x35e952._0x3849eb,0x319,_0x35e952._0x35d626,_0x35e952._0x5602a2)](_0x2109c8),_0x2109c8=''),_0x332a02++):(_0x2109c8+=_0x398295,_0x332a02++);}}if(_0x2109c8)_0x2494bd[_0x1a61e9(0x36a,_0x35e952._0x1f6a01,_0x35e952._0x3f7901,_0x35e952._0x121162)](_0x2109c8);return _0x2494bd;}function renderCommandInstructions(_0x21f573){const _0x5a53f3={_0x1322c5:0x43,_0x1a2a02:0x17b,_0x46da99:0x112,_0xbb535c:0x3,_0x7fbe8:0xd0,_0x37afa9:0x118,_0x59c863:0x68,_0x41d69d:0xa3,_0x4ee3e7:0x4b,_0xad9823:0x147,_0x5dc170:0xa3,_0x372403:0x72,_0x5b84a0:0x148,_0x4a99bf:0x13a,_0x54e28d:0x33,_0x4d4e4a:0x2b9,_0x48a6ae:0x288,_0x7267a1:0x2f2,_0x2c9249:0x3a5,_0x3ad266:0x1d1,_0xf518e:0x1db,_0x5a9690:0x18,_0x10fd46:0x17},_0x39f955={_0x5112e4:0xe1,_0x32930e:0x41d,_0x4ff2d4:0x1b1},_0x439301={_0x3387b5:0x65,_0x3e1223:0x63},_0x293f68={_0x4d31d6:0x1fe},_0x4aca09={_0x32817d:0x14c};let _0xf6275d=_0x21f573['instructions'],_0xc5e18f=![];const _0x2e552a=tokenizeCommandArguments(_0x21f573[_0x118467(_0x5a53f3._0x1322c5,0x80,0xde,_0x5a53f3._0x1a2a02)]);_0xf6275d=_0xf6275d[_0x118467(0x30b,0x213,0x2b5,0x1fd)](/\$ARGUMENTS\[(\d+)\]/g,(_0x5bca90,_0x271f3f)=>{return _0xc5e18f=!![],_0x2e552a[Number(_0x271f3f)]??'';}),_0xf6275d=_0xf6275d[_0x6f4ac2(_0x5a53f3._0x46da99,-_0x5a53f3._0xbb535c,_0x5a53f3._0x7fbe8,_0x5a53f3._0x37afa9)](/\$ARGUMENTS\b/g,()=>{_0xc5e18f=!![];function _0x39c494(_0x534077,_0x7844b8,_0x54ca6b,_0x1f7651){return _0x118467(_0x534077,_0x7844b8-0x126,_0x1f7651-0x43,_0x1f7651-_0x4aca09._0x32817d);}return _0x21f573[_0x39c494(_0x293f68._0x4d31d6,0xb2,-0x19,0x121)];});function _0x118467(_0x2d80ae,_0x587920,_0x14d2c0,_0x4b5c4e){return _0x23b1c2(_0x2d80ae-_0x439301._0x3387b5,_0x2d80ae,_0x14d2c0- -0x18a,_0x4b5c4e-_0x439301._0x3e1223);}if(_0x21f573[_0x6f4ac2(0xec,-_0x5a53f3._0x59c863,_0x5a53f3._0x41d69d,-_0x5a53f3._0x4ee3e7)]&&_0x21f573[_0x6f4ac2(_0x5a53f3._0xad9823,0x109,_0x5a53f3._0x5dc170,_0x5a53f3._0x372403)][_0x6f4ac2(_0x5a53f3._0x5b84a0,0xc3,_0x5a53f3._0x4a99bf,_0x5a53f3._0x54e28d)]>0x0)for(let _0x52b2ec=0x0;_0x52b2ec<_0x21f573[_0x118467(0x1a8,_0x5a53f3._0x4d4e4a,_0x5a53f3._0x48a6ae,0x2d3)][_0x118467(_0x5a53f3._0x7267a1,0x1e8,0x31f,0x2d7)];_0x52b2ec++){const _0x3768db=_0x21f573['argumentNames'][_0x52b2ec];if(_0x3768db){const _0x188db1=new RegExp('\x5c$'+_0x3768db+'\x5cb','g');_0xf6275d=_0xf6275d['replace'](_0x188db1,()=>{return _0xc5e18f=!![],_0x2e552a[_0x52b2ec]??'';});}}function _0x6f4ac2(_0x2cba47,_0x2701bd,_0x396d98,_0x5d5ebe){return _0x57b9de(_0x2cba47-_0x39f955._0x5112e4,_0x5d5ebe,_0x396d98- -_0x39f955._0x32930e,_0x5d5ebe-_0x39f955._0x4ff2d4);}return _0xf6275d=_0xf6275d[_0x118467(0x198,0x3f3,0x2b5,_0x5a53f3._0x2c9249)](/\$(\d+)\b/g,(_0x5cc107,_0x1cd89d)=>{return _0xc5e18f=!![],_0x2e552a[Number(_0x1cd89d)]??'';}),!_0xc5e18f&&_0x21f573['argumentsText'][_0x6f4ac2(-_0x5a53f3._0x3ad266,-_0x5a53f3._0xf518e,-0xbc,-_0x5a53f3._0x5a9690)]()&&(_0xf6275d=_0xf6275d+'\x0a\x0aARGUMENTS:\x20'+_0x21f573[_0x118467(-_0x5a53f3._0x10fd46,0x206,0xde,0x196)]),_0xf6275d;}var chatModelAuthSchemeSchema=z[_0x57b9de(0x5e1,0x6b4,0x58e,0x5b0)]([_0x57b9de(0x26e,0x256,0x346,0x276),_0x23b1c2(0x451,0x30e,0x339,0x44e)]),apiKeyAuthSchema=z['object']({'type':z[_0x57b9de(0x590,0x365,0x4a2,0x53a)](_0x57b9de(0x2d2,0x382,0x3b0,0x4e3)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x57b9de(0x44a,0x494,0x427,0x43f)]()})[_0x57b9de(0x4f8,0x3f8,0x4e5,0x452)](),oauthAuthSchema=z[_0x23b1c2(0x2a2,0x3fb,0x3dc,0x2f9)]({'type':z['literal'](_0x23b1c2(0x495,0x53d,0x4a7,0x450)),'access':z[_0x23b1c2(0x39e,0x21d,0x285,0x2ac)](),'refresh':z[_0x57b9de(0x39f,0x3cf,0x333,0x258)](),'expires':z[_0x57b9de(0x560,0x45c,0x51d,0x624)]()[_0x23b1c2(0x416,0x2ea,0x379,0x3c1)](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x23b1c2(0x2f5,0x404,0x437,0x57e)](),authMethodSchema=z[_0x23b1c2(0x3c8,0x4a8,0x42e,0x424)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z[_0x23b1c2(0x13d,0x37e,0x285,0x253)](),'name':z['string']()['optional']()})[_0x57b9de(0x58a,0x52b,0x4e5,0x3ec)](),modelConfigSchema=z[_0x57b9de(0x482,0x5b5,0x4dc,0x613)]([z[_0x23b1c2(0x42a,0x4de,0x3f4,0x378)](![]),z[_0x23b1c2(0x53f,0x338,0x3f4,0x4e9)](!![]),z[_0x23b1c2(0x343,0x2ff,0x285,0x3a7)](),z[_0x57b9de(0x495,0x35a,0x3d8,0x3f2)](z[_0x57b9de(0x2e3,0x370,0x333,0x24a)]()),z[_0x23b1c2(0x2d3,0x43e,0x32a,0x43d)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x23b1c2(0x4a0,0x3b1,0x4e0,0x585)]([_0x57b9de(0x3f0,0x394,0x418,0x3b3),'openai-chat-completions',_0x57b9de(0x3cf,0x3d7,0x3a3,0x4a0),_0x23b1c2(0x33e,0x343,0x455,0x582)]),providerConfigSchema=z[_0x23b1c2(0x433,0x3f3,0x3dc,0x42c)]({'apiKey':z[_0x23b1c2(0x218,0x28c,0x285,0x181)]()['optional'](),'token':z[_0x57b9de(0x258,0x39b,0x333,0x213)]()['optional'](),'defaultModel':z[_0x57b9de(0x241,0x348,0x333,0x29c)]()[_0x57b9de(0x3b8,0x44f,0x427,0x3ca)](),'smallModel':z['string']()[_0x57b9de(0x401,0x4fb,0x427,0x319)](),'currentAuth':z[_0x23b1c2(0x20a,0x2d9,0x285,0x319)]()[_0x57b9de(0x51e,0x4b7,0x427,0x2e3)](),'auth':z['array'](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x23b1c2(0x48c,0x377,0x379,0x44e)](),'baseUrl':z['string']()['optional'](),'models':modelConfigSchema[_0x57b9de(0x42f,0x3da,0x427,0x4ab)](),'customHeaders':z[_0x23b1c2(0x524,0x312,0x40f,0x3d4)](z['string'](),z[_0x57b9de(0x462,0x421,0x333,0x203)]())[_0x23b1c2(0x3eb,0x4a1,0x379,0x4a1)]()})[_0x23b1c2(0x2e8,0x568,0x437,0x46c)](),mcpServerConfigSchema=z[_0x57b9de(0x407,0x5a1,0x48a,0x5b6)]({'command':z['string']()[_0x57b9de(0x547,0x4a3,0x427,0x419)](),'args':z[_0x57b9de(0x515,0x2e2,0x3d8,0x29d)](z['string']())['optional'](),'env':z[_0x57b9de(0x4e8,0x3bd,0x4bd,0x4cd)](z['string'](),z[_0x23b1c2(0x287,0x2c8,0x285,0x188)]())[_0x57b9de(0x564,0x3e4,0x427,0x33e)](),'transport':z[_0x23b1c2(0x581,0x555,0x4e0,0x3df)](['stdio',_0x23b1c2(0x4c1,0x535,0x450,0x360)])[_0x23b1c2(0x2b5,0x39d,0x379,0x2ca)](),'url':z[_0x57b9de(0x3ab,0x231,0x333,0x33c)]()[_0x57b9de(0x564,0x4cf,0x427,0x521)](),'headers':z[_0x57b9de(0x3a2,0x574,0x4bd,0x5b4)](z[_0x57b9de(0x1e5,0x404,0x333,0x319)](),z[_0x23b1c2(0x17b,0x322,0x285,0x1f6)]())[_0x23b1c2(0x2c5,0x39d,0x379,0x399)](),'prefix':z['string']()['optional'](),'timeoutMs':z['number']()[_0x57b9de(0x3dc,0x50b,0x427,0x2e5)](),'enabled':z[_0x23b1c2(0x351,0x53a,0x494,0x3bc)]()[_0x23b1c2(0x490,0x226,0x379,0x3a1)](),'auth':z[_0x23b1c2(0x527,0x4af,0x3dc,0x3fc)]({'type':z['enum']([_0x57b9de(0x500,0x44a,0x446,0x572),_0x57b9de(0x2ba,0x211,0x346,0x39d),_0x23b1c2(0x49d,0x5b2,0x4a7,0x499)]),'token':z['string']()['optional'](),'oauth':z[_0x57b9de(0x53d,0x481,0x48a,0x5ac)]({'clientId':z[_0x23b1c2(0x181,0x208,0x285,0x1e7)]()[_0x57b9de(0x4e8,0x574,0x427,0x3e7)](),'clientMetadataUrl':z[_0x57b9de(0x29e,0x1eb,0x333,0x2f5)]()[_0x23b1c2(0x2d9,0x410,0x379,0x49e)](),'authorizationServer':z['string']()[_0x23b1c2(0x2f0,0x377,0x379,0x3d7)](),'scopes':z[_0x57b9de(0x4c2,0x4fa,0x3d8,0x2cf)](z[_0x57b9de(0x2d5,0x36a,0x333,0x38b)]())[_0x23b1c2(0x235,0x399,0x379,0x22f)](),'tokenStorageKey':z[_0x57b9de(0x255,0x274,0x333,0x1f3)]()[_0x57b9de(0x418,0x38e,0x427,0x56b)]()})[_0x23b1c2(0x328,0x421,0x437,0x3ff)]()['optional']()})['passthrough']()['optional']()})[_0x23b1c2(0x2f0,0x3c0,0x437,0x3c0)](),mcpSettingsSchema=z[_0x57b9de(0x3ab,0x518,0x48a,0x340)]({'servers':z[_0x57b9de(0x4d2,0x5de,0x4bd,0x3e2)](z[_0x57b9de(0x2cf,0x280,0x333,0x1fd)](),mcpServerConfigSchema)['optional'](),'allowedTools':z[_0x57b9de(0x435,0x3c3,0x4bd,0x469)](z['string'](),z[_0x57b9de(0x5f6,0x460,0x4bd,0x4de)](z[_0x23b1c2(0x2ad,0x365,0x285,0x38f)](),z[_0x57b9de(0x598,0x4f1,0x542,0x655)]()))[_0x23b1c2(0x451,0x245,0x379,0x44c)](),'defaultTimeoutMs':z[_0x23b1c2(0x4e8,0x37d,0x46f,0x47f)]()['optional']()})['passthrough'](),skillsSettingsSchema=z['object']({'enabled':z['boolean']()['optional'](),'includeDefaults':z[_0x57b9de(0x46a,0x4bd,0x542,0x4af)]()['optional'](),'directories':z[_0x57b9de(0x525,0x460,0x3d8,0x2bc)](z[_0x57b9de(0x3cc,0x485,0x333,0x360)]())[_0x57b9de(0x3d4,0x3ab,0x427,0x4a1)](),'exclude':z[_0x23b1c2(0x361,0x2df,0x32a,0x1e2)](z[_0x57b9de(0x425,0x237,0x333,0x1ff)]())[_0x23b1c2(0x40a,0x35e,0x379,0x490)]()})[_0x57b9de(0x5ac,0x486,0x4e5,0x61f)](),commandsSettingsSchema=z[_0x23b1c2(0x2d8,0x347,0x3dc,0x4af)]({'enabled':z[_0x57b9de(0x454,0x3f9,0x542,0x675)]()['optional'](),'directories':z[_0x23b1c2(0x231,0x20c,0x32a,0x356)](z[_0x57b9de(0x445,0x40d,0x333,0x3f9)]())[_0x23b1c2(0x33e,0x404,0x379,0x387)]()})[_0x23b1c2(0x39b,0x4ad,0x437,0x39d)](),agentsSettingsSchema=z[_0x23b1c2(0x424,0x377,0x3dc,0x34b)]({'enabled':z['boolean']()[_0x23b1c2(0x446,0x421,0x379,0x294)](),'includeDefaults':z[_0x57b9de(0x588,0x40d,0x542,0x4e2)]()[_0x23b1c2(0x333,0x384,0x379,0x3bb)](),'directories':z[_0x23b1c2(0x25a,0x466,0x32a,0x334)](z[_0x57b9de(0x395,0x458,0x333,0x253)]())['optional']()})[_0x57b9de(0x464,0x576,0x4e5,0x5ca)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x57b9de(0x576,0x48e,0x58e,0x4b8)](['auto',_0x23b1c2(0x1b6,0x274,0x2b4,0x1c6),'light'])[_0x23b1c2(0x233,0x3b6,0x379,0x43c)](),'colorLevel':z[_0x57b9de(0x54d,0x6cc,0x58e,0x567)]([_0x23b1c2(0x408,0x459,0x3d8,0x4a3),_0x23b1c2(0x2c1,0x305,0x398,0x38b),_0x57b9de(0x657,0x5f3,0x550,0x46b),_0x23b1c2(0x387,0x4b0,0x400,0x43a),_0x23b1c2(0x4c8,0x2d6,0x3eb,0x33f)])['optional'](),'backgrounds':z[_0x23b1c2(0x3ea,0x48d,0x4e0,0x4fe)](['auto','on',_0x57b9de(0x2d6,0x32d,0x33d,0x35d)])['optional'](),'messageStyle':z[_0x57b9de(0x48f,0x56e,0x58e,0x6db)](['plain','boxed'])['optional']()})[_0x23b1c2(0x475,0x492,0x437,0x53c)](),statuslineSegmentSchema=z[_0x57b9de(0x698,0x6d9,0x58e,0x596)]([_0x57b9de(0x46a,0x59d,0x4e7,0x52d),'session','thinking','sudo',_0x57b9de(0x549,0x309,0x42d,0x463),'context',_0x57b9de(0x3da,0x478,0x3f7,0x44c),_0x23b1c2(0x4ce,0x429,0x48d,0x3a8),_0x57b9de(0x421,0x39b,0x4e8,0x4c7),_0x57b9de(0x39d,0x2d3,0x3e1,0x531),_0x23b1c2(0x284,0x1c2,0x27d,0x3c1),_0x57b9de(0x41f,0x321,0x2fb,0x416),_0x57b9de(0x3f7,0x663,0x54a,0x4ae),_0x23b1c2(0x512,0x491,0x44d,0x47f),_0x23b1c2(0x36b,0x3b1,0x492,0x3eb)]),statuslineItemSchema=z[_0x23b1c2(0x45a,0x362,0x42e,0x559)]([statuslineSegmentSchema,z[_0x57b9de(0x5df,0x38a,0x4a2,0x4c9)]('|')]),statuslineRowSchema=z[_0x57b9de(0x48e,0x521,0x3d8,0x485)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x23b1c2(0x2ad,0x332,0x25b,0x189)]([statuslineRowSchema,statuslineRowSchema])[_0x57b9de(0x4bf,0x398,0x427,0x31c)]()})[_0x23b1c2(0x384,0x386,0x437,0x430)](),memorySettingsSchema=z[_0x57b9de(0x4f0,0x47a,0x48a,0x4ce)]({'version':z[_0x23b1c2(0x53a,0x335,0x3f4,0x399)](0x2)['optional'](),'retrieval':z['object']({'engine':z[_0x57b9de(0x4db,0x397,0x4a2,0x5de)]('bm25')[_0x23b1c2(0x357,0x363,0x379,0x477)](),'candidateLimit':z[_0x57b9de(0x3de,0x61b,0x51d,0x633)]()['optional'](),'activeCandidateLimit':z[_0x57b9de(0x41b,0x574,0x51d,0x5f8)]()[_0x57b9de(0x312,0x429,0x427,0x3d3)](),'activeEnabled':z[_0x57b9de(0x615,0x4d0,0x542,0x65a)]()[_0x23b1c2(0x262,0x3be,0x379,0x249)](),'maxQueriesPerTurn':z['number']()[_0x57b9de(0x536,0x2de,0x427,0x50d)](),'coreInjectTokenBudget':z['number']()[_0x23b1c2(0x406,0x426,0x379,0x237)](),'injectTokenBudget':z[_0x57b9de(0x41f,0x534,0x51d,0x585)]()['optional'](),'minScore':z[_0x23b1c2(0x349,0x32f,0x46f,0x38e)]()[_0x57b9de(0x3ea,0x31f,0x427,0x458)](),'freshnessHalfLifeDays':z[_0x57b9de(0x40b,0x5e3,0x51d,0x533)]()[_0x57b9de(0x4bd,0x425,0x427,0x306)]()})[_0x57b9de(0x45b,0x413,0x4e5,0x41d)]()[_0x57b9de(0x4f5,0x4dc,0x427,0x362)](),'extraction':z['object']({'enabled':z['boolean']()[_0x57b9de(0x53e,0x3c2,0x427,0x315)](),'provider':z['string']()[_0x57b9de(0x555,0x56d,0x427,0x3f1)](),'model':z['string']()[_0x23b1c2(0x4cb,0x29c,0x379,0x306)](),'sensitiveFilter':z['boolean']()[_0x57b9de(0x3f2,0x373,0x427,0x510)]()})['passthrough']()['optional'](),'index':z[_0x57b9de(0x3c3,0x39b,0x48a,0x401)]({'persisted':z[_0x23b1c2(0x554,0x41a,0x494,0x42a)]()['optional'](),'flushIntervalMs':z[_0x57b9de(0x515,0x648,0x51d,0x63b)]()[_0x57b9de(0x378,0x366,0x427,0x4e5)]()})[_0x23b1c2(0x3b9,0x498,0x437,0x3dc)]()[_0x57b9de(0x576,0x4b9,0x427,0x430)](),'enabled':z[_0x23b1c2(0x5e0,0x43d,0x494,0x409)]()[_0x57b9de(0x4c5,0x40e,0x427,0x518)](),'saveTool':z[_0x57b9de(0x48d,0x5bf,0x542,0x40e)]()[_0x57b9de(0x48f,0x425,0x427,0x497)](),'model':z['string']()[_0x23b1c2(0x32b,0x302,0x379,0x3b8)](),'provider':z[_0x57b9de(0x3ec,0x218,0x333,0x415)]()[_0x57b9de(0x31e,0x4ad,0x427,0x52d)](),'maxInjectionTokens':z['number']()['optional'](),'backgroundExtraction':z[_0x23b1c2(0x459,0x369,0x494,0x533)]()[_0x23b1c2(0x40c,0x321,0x379,0x431)]()})['passthrough'](),recentModelSchema=z['object']({'provider':z[_0x23b1c2(0x2e4,0x1cc,0x285,0x3bc)](),'model':z[_0x23b1c2(0x235,0x328,0x285,0x147)](),'usedAt':z['number']()})[_0x57b9de(0x50b,0x45f,0x4e5,0x534)](),lspServerEntrySchema=z[_0x57b9de(0x5b8,0x3d4,0x48a,0x503)]({'disabled':z['boolean']()[_0x23b1c2(0x397,0x396,0x379,0x3b2)](),'command':z[_0x23b1c2(0x1bd,0x3d7,0x285,0x2a5)]()[_0x23b1c2(0x4c6,0x330,0x379,0x43e)](),'args':z[_0x23b1c2(0x2b4,0x2f9,0x32a,0x37b)](z[_0x23b1c2(0x23b,0x161,0x285,0x1ab)]())[_0x57b9de(0x2f3,0x468,0x427,0x445)](),'rootMarkers':z[_0x23b1c2(0x24b,0x472,0x32a,0x2ed)](z[_0x57b9de(0x421,0x277,0x333,0x239)]())['optional']()})[_0x57b9de(0x441,0x489,0x4e5,0x412)](),lspConfigSchema=z[_0x57b9de(0x449,0x364,0x48a,0x3b1)]({'enabled':z['boolean']()[_0x23b1c2(0x473,0x4c7,0x379,0x392)](),'servers':z[_0x23b1c2(0x39d,0x3b5,0x40f,0x384)](z[_0x23b1c2(0x1b6,0x285,0x285,0x3d1)](),lspServerEntrySchema)[_0x23b1c2(0x3fb,0x437,0x379,0x44f)]()})[_0x23b1c2(0x356,0x4c2,0x437,0x32f)](),serverEndpointSchema=z['object']({'url':z[_0x23b1c2(0x36f,0x159,0x285,0x261)](),'token':z[_0x23b1c2(0x3d1,0x33c,0x285,0x3be)]()['optional']()})[_0x57b9de(0x5a5,0x43a,0x4e5,0x45e)](),commandHookConfigSchema=z[_0x57b9de(0x558,0x379,0x48a,0x426)]({'type':z[_0x57b9de(0x5a8,0x571,0x4a2,0x3b9)](_0x23b1c2(0x332,0x428,0x405,0x3ee)),'command':z[_0x57b9de(0x47b,0x376,0x333,0x21d)](),'timeout':z['number']()[_0x57b9de(0x554,0x4af,0x427,0x535)]()}),hookMatcherGroupSchema=z[_0x57b9de(0x466,0x5d4,0x48a,0x50a)]({'matcher':z['string']()[_0x57b9de(0x3f5,0x40c,0x427,0x4c0)](),'hooks':z[_0x57b9de(0x4fc,0x4bf,0x3d8,0x3fa)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x57b9de(0x503,0x4a2,0x48a,0x5b8)]({'PreToolUse':z[_0x57b9de(0x479,0x4f6,0x3d8,0x52b)](hookMatcherGroupSchema)[_0x23b1c2(0x46e,0x40e,0x379,0x379)](),'PostToolUse':z[_0x57b9de(0x333,0x4d6,0x3d8,0x355)](hookMatcherGroupSchema)[_0x23b1c2(0x340,0x2ec,0x379,0x37d)](),'UserPromptSubmit':z[_0x23b1c2(0x2b9,0x389,0x32a,0x360)](hookMatcherGroupSchema)[_0x23b1c2(0x3c2,0x312,0x379,0x2d6)](),'Stop':z[_0x23b1c2(0x2e6,0x1dd,0x32a,0x37b)](hookMatcherGroupSchema)[_0x23b1c2(0x393,0x3ee,0x379,0x3a9)](),'Notification':z[_0x23b1c2(0x1e6,0x245,0x32a,0x38e)](hookMatcherGroupSchema)[_0x23b1c2(0x27e,0x358,0x379,0x44b)](),'SessionStart':z[_0x57b9de(0x28d,0x38c,0x3d8,0x35e)](hookMatcherGroupSchema)['optional'](),'SessionEnd':z['array'](hookMatcherGroupSchema)[_0x57b9de(0x502,0x468,0x427,0x51e)]()}),cliConfigSchema=z[_0x23b1c2(0x495,0x28a,0x3dc,0x371)]({'activeProvider':z['string']()[_0x57b9de(0x2ec,0x3b9,0x427,0x564)](),'activeModel':z['string']()[_0x23b1c2(0x45b,0x2a0,0x379,0x4cb)](),'apiKey':z[_0x23b1c2(0x13c,0x35a,0x285,0x199)]()[_0x57b9de(0x4c5,0x3b8,0x427,0x32f)](),'providers':z[_0x57b9de(0x48f,0x3ce,0x4bd,0x5b6)](z[_0x23b1c2(0x39f,0x3c9,0x285,0x2b9)](),providerConfigSchema)[_0x23b1c2(0x471,0x289,0x379,0x30a)](),'mcp':mcpSettingsSchema[_0x23b1c2(0x312,0x3f3,0x379,0x346)](),'skills':skillsSettingsSchema[_0x57b9de(0x388,0x56a,0x427,0x3a3)](),'agents':agentsSettingsSchema[_0x23b1c2(0x40f,0x253,0x379,0x436)](),'commands':commandsSettingsSchema[_0x57b9de(0x30b,0x52f,0x427,0x304)](),'skillsEnabled':z['record'](z[_0x23b1c2(0x27c,0x2d5,0x285,0x15a)](),z[_0x23b1c2(0x3b4,0x480,0x494,0x42d)]())[_0x57b9de(0x332,0x35a,0x427,0x2df)](),'memory':memorySettingsSchema[_0x23b1c2(0x4a0,0x45a,0x379,0x310)](),'session':z[_0x23b1c2(0x453,0x31e,0x3dc,0x2e2)]({'memPersist':z['boolean']()[_0x57b9de(0x50c,0x403,0x427,0x357)](),'persistEventLog':z['boolean']()[_0x57b9de(0x551,0x547,0x427,0x4a4)](),'persistHttpLog':z[_0x57b9de(0x495,0x464,0x542,0x595)]()[_0x57b9de(0x35f,0x434,0x427,0x35e)]()})['passthrough']()[_0x57b9de(0x47e,0x4d1,0x427,0x39a)](),'requireToolApproval':z[_0x23b1c2(0x50e,0x34f,0x494,0x43a)]()[_0x23b1c2(0x28f,0x22e,0x379,0x2ec)](),'thinking':z[_0x57b9de(0x559,0x5ae,0x58e,0x6b7)]([_0x23b1c2(0x33c,0x1d1,0x2f6,0x3e2),_0x23b1c2(0x2cb,0x502,0x410,0x367),_0x23b1c2(0x401,0x402,0x2d1,0x39a),'HIGH'])[_0x23b1c2(0x4a1,0x3df,0x379,0x3f6)](),'streamingChunks':z[_0x57b9de(0x420,0x508,0x542,0x525)]()[_0x57b9de(0x53c,0x3f0,0x427,0x3f9)](),'agentsEnabled':z[_0x57b9de(0x501,0x5f9,0x4bd,0x560)](z['string'](),z['boolean']())[_0x57b9de(0x459,0x341,0x427,0x452)](),'recentModels':z[_0x57b9de(0x335,0x313,0x3d8,0x2f2)](recentModelSchema)['optional'](),'lsp':lspConfigSchema[_0x23b1c2(0x44e,0x451,0x379,0x2f5)](),'servers':z[_0x23b1c2(0x491,0x48d,0x40f,0x466)](z[_0x57b9de(0x435,0x278,0x333,0x39c)](),serverEndpointSchema)[_0x57b9de(0x4e8,0x4c4,0x427,0x46b)](),'ui':z[_0x23b1c2(0x430,0x2e9,0x3dc,0x4e4)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x23b1c2(0x407,0x3b5,0x379,0x312)]()})[_0x23b1c2(0x402,0x457,0x437,0x377)]()['optional'](),'tools':z[_0x57b9de(0x55c,0x5f6,0x4bd,0x4fd)](z[_0x23b1c2(0x2df,0x2c8,0x285,0x3ae)](),z[_0x57b9de(0x4a1,0x57e,0x4dd,0x3b4)]())['optional'](),'hooks':hooksConfigSchema[_0x23b1c2(0x3e0,0x302,0x379,0x300)]()})[_0x57b9de(0x48a,0x448,0x4e5,0x3c7)]();function buildDescription(_0x52d0b4){const _0x1dc9a5={_0x117216:0xbe,_0x386085:0x16b,_0x3b3fed:0xa4,_0x5c5264:0x59,_0x3b1011:0x3,_0x2c849a:0x46,_0x1aec39:0x20,_0xa5966f:0xc3,_0x3b96f7:0x42,_0xb83396:0x17d,_0x4f8bee:0x3a,_0x391e8d:0x25e,_0x418de9:0x134,_0x2fe92a:0x5e,_0x280cb2:0x9b,_0x5bbcf4:0xc4,_0x4f3276:0x1e2,_0x5d667a:0x349,_0x17ad35:0x234,_0x339a26:0x1d4,_0x36ca97:0xcd,_0x547750:0x27d},_0x43ccef={_0x1a0ede:0x252},_0x117c2f={_0x3facb8:0x108};if(_0x52d0b4[_0x4bbcc6(0x3b,0x158,_0x1dc9a5._0x117216,_0x1dc9a5._0x386085)]===0x0)return[_0x4bbcc6(-0xe8,-_0x1dc9a5._0x3b3fed,-0x135,-0x1c0),_0x5aecf0(_0x1dc9a5._0x5c5264,0xcb,-_0x1dc9a5._0x3b1011,_0x1dc9a5._0x2c849a),_0x5aecf0(-0x10,_0x1dc9a5._0x1aec39,-_0x1dc9a5._0xa5966f,-_0x1dc9a5._0x3b96f7)][_0x4bbcc6(-_0x1dc9a5._0xb83396,-_0x1dc9a5._0x4f8bee,-_0x1dc9a5._0x391e8d,-0x1f9)]('\x0a');const _0x41dc55=[_0x5aecf0(0x99,_0x1dc9a5._0x418de9,_0x1dc9a5._0x2fe92a,_0x1dc9a5._0x117216),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x5aecf0(-0xb8,_0x1dc9a5._0x280cb2,_0x1dc9a5._0x5bbcf4,_0x1dc9a5._0x4f3276),..._0x52d0b4[_0x5aecf0(_0x1dc9a5._0x5d667a,_0x1dc9a5._0x17ad35,0x1db,_0x1dc9a5._0x339a26)](_0x3b0c22=>_0x3b0c22[_0x5aecf0(0x152,0x1ee,0x338,0x17d)]?'-\x20'+_0x3b0c22['name']+'\x20'+_0x3b0c22[_0x5aecf0(0x10a,0x1ee,0x334,0x1e4)]+':\x20'+_0x3b0c22[_0x4bbcc6(-0xb,0x4f,0x70,0x1b)]:'-\x20'+_0x3b0c22[_0x5aecf0(0x11,0x113,0xac,0x13c)]+':\x20'+_0x3b0c22[_0x5aecf0(0x345,0x211,0x2ae,0xfd)])];function _0x4bbcc6(_0x12b711,_0x51527f,_0x2a7066,_0x308b94){return _0x23b1c2(_0x12b711-0x12d,_0x51527f,_0x12b711- -0x46e,_0x308b94-_0x117c2f._0x3facb8);}function _0x5aecf0(_0x2416a5,_0xc32ab2,_0x1fa43e,_0x54c948){return _0x23b1c2(_0x2416a5-0x17c,_0x54c948,_0xc32ab2- -_0x43ccef._0x1a0ede,_0x54c948-0x14a);}return _0x41dc55[_0x4bbcc6(-0x17d,-0x11f,-_0x1dc9a5._0x36ca97,-_0x1dc9a5._0x547750)]('\x0a');}function createInvokeCommandTool(_0x270aa7){const _0x81b73={_0x3eda35:0x1e9,_0x1a2d1d:0xd6,_0x5b2f38:0xf5,_0x39c731:0x121,_0x2fa5d4:0xc0,_0x2b6e32:0x102,_0x525a5a:0xb5,_0x1c49c4:0x13c},_0x59c1ad={_0x574bfd:0x1a7,_0x34f1d8:0xc2,_0x29e36f:0x1f8,_0x46ed70:0x100,_0x3ab26f:0x178,_0x3ed8f5:0x42,_0x2ae696:0x38,_0xcb1cb3:0x277,_0x4647e4:0x3c9,_0x2f824f:0x398,_0x2334d3:0x3a9,_0x4300e0:0x251,_0x1f364f:0x379,_0x15ecbc:0x223,_0x1a4925:0x2c4,_0x4494fd:0x29a},_0x5aa269={_0x3f8b18:0x1bb},_0x33daf2={_0x34bc00:0x17b,_0x127841:0x135},_0x583ad9={_0x1c3a72:0x36d,_0xadfa15:0xb0};function _0x251a37(_0x113cd6,_0x17a967,_0x25826b,_0x58a5c5){return _0x23b1c2(_0x113cd6-0x1b2,_0x113cd6,_0x58a5c5- -_0x583ad9._0x1c3a72,_0x58a5c5-_0x583ad9._0xadfa15);}const _0x56ac0a=new Map(_0x270aa7[_0x4ebde9(0xfb,0x30,0x1bc,0x21b)]['map'](_0x28b31=>[_0x28b31['id'],_0x28b31]));function _0x4ebde9(_0x61b33f,_0x3360de,_0x3ca347,_0x5bc5a0){return _0x57b9de(_0x61b33f-0x1a9,_0x3ca347,_0x61b33f- -0x3c8,_0x5bc5a0-0x19d);}const _0x114178=buildDescription(_0x270aa7[_0x251a37(0x18b,0x46,_0x81b73._0x3eda35,0xa8)]);return defineTool({'name':_0x251a37(_0x81b73._0x1a2d1d,0xb,_0x81b73._0x5b2f38,_0x81b73._0x39c731),'description':_0x114178,'inputSchema':{'type':_0x251a37(-_0x81b73._0x2fa5d4,0xa1,0xae,0x6f),'properties':{'name':{'type':_0x251a37(0x27,-0x12c,-_0x81b73._0x2b6e32,-0xe8)},'args':{'type':_0x251a37(-0x235,-_0x81b73._0x525a5a,-_0x81b73._0x1c49c4,-0xe8)}},'required':[_0x251a37(-0x62,-0x14a,0xe1,-0x8)]},async *'execute'(_0xae8b66){const _0x34dbeb=_0x56ac0a[_0x22c189(0x2e0,0x2d3,0x1ca,0x18d)](_0xae8b66[_0x22c189(0x1d7,_0x59c1ad._0x574bfd,_0x59c1ad._0x34f1d8,0x206)]);function _0x1b6569(_0x110c8f,_0x13bb1e,_0x32a513,_0x4965d1){return _0x251a37(_0x110c8f,_0x13bb1e-_0x33daf2._0x34bc00,_0x32a513-_0x33daf2._0x127841,_0x4965d1- -0xcc);}if(!_0x34dbeb){const _0x406a54=Array[_0x22c189(0x162,0x137,0x1d9,0x1c8)](_0x56ac0a[_0x1b6569(-0x1af,-_0x59c1ad._0x29e36f,-0xa3,-0xb9)]())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0xae8b66['name']+_0x1b6569(-0x1a2,-_0x59c1ad._0x46ed70,-_0x59c1ad._0x3ab26f,-0x13f)+_0x406a54,{'name':_0xae8b66[_0x1b6569(-_0x59c1ad._0x3ed8f5,-_0x59c1ad._0x2ae696,-_0x59c1ad._0x46ed70,-0xd4)]});}const _0x34bba0=await _0x270aa7['loadCommand'](_0x34dbeb),_0x247860=_0xae8b66[_0x22c189(0xf3,0xe5,_0x59c1ad._0xcb1cb3,0x13e)]??'',_0x3e5337=renderCommandInstructions({'instructions':_0x34bba0[_0x22c189(_0x59c1ad._0x4647e4,_0x59c1ad._0x2f824f,_0x59c1ad._0x2334d3,0x315)],'argumentsText':_0x247860,'argumentNames':_0x34bba0[_0x1b6569(-0x288,-0x2b2,-0x235,-0x19e)]});yield createToolOutput(_0x3e5337,{'id':_0x34bba0['id'],'name':_0x34bba0[_0x22c189(_0x59c1ad._0x4300e0,0x275,0x291,0x206)],'path':_0x34dbeb[_0x22c189(0x30e,0x2a9,_0x59c1ad._0x1f364f,0x326)][_0x22c189(_0x59c1ad._0x15ecbc,_0x59c1ad._0x1a4925,_0x59c1ad._0x4494fd,0x31e)]});function _0x22c189(_0x4cedb3,_0x1337c9,_0x392a3f,_0x567ee3){return _0x4ebde9(_0x567ee3-_0x5aa269._0x3f8b18,_0x1337c9-0x5b,_0x1337c9,_0x567ee3-0x52);}return void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x163211,rename as _0x4e0a21,stat as _0x4e49fb,writeFile as _0xf2b371}from'fs/promises';import*as _0x4425ad from'path';function detectEol(_0x4ce07f){const _0x130c70={_0x2900f9:0x38d,_0x1483bc:0x1df,_0x2886c0:0x21c,_0x4c4d04:0x371,_0x38e03d:0x173,_0x5687f4:0x296};function _0x1d9b0f(_0x5baad2,_0xd869a4,_0x45468c,_0x159890){return _0x23b1c2(_0x5baad2-0x15f,_0xd869a4,_0x45468c- -0x143,_0x159890-0x148);}function _0x3e0f54(_0x586410,_0x4907d7,_0x4afdb2,_0x470edf){return _0x23b1c2(_0x586410-0x18f,_0x4afdb2,_0x470edf- -0x146,_0x470edf-0x1b6);}return/\r\n/[_0x3e0f54(0x1eb,0x364,0x369,0x2de)](_0x4ce07f[_0x3e0f54(0x3d9,_0x130c70._0x2900f9,_0x130c70._0x1483bc,0x2fc)](_0x1d9b0f(_0x130c70._0x2886c0,_0x130c70._0x4c4d04,0x2c5,_0x130c70._0x38e03d)))?_0x3e0f54(_0x130c70._0x5687f4,0x34d,0x38b,0x390):'lf';}function normalizeToLf(_0x1ec672){const _0x5e2b95={_0x2f96da:0x1d2,_0x2eee18:0x60},_0x5c55be={_0x3f96f1:0x1b4,_0x9eb6f4:0x50};function _0x4d04f5(_0x336e74,_0x197ffe,_0x5bea9e,_0x310c08){return _0x57b9de(_0x336e74-_0x5c55be._0x3f96f1,_0x336e74,_0x5bea9e- -0x434,_0x310c08-_0x5c55be._0x9eb6f4);}return _0x1ec672[_0x4d04f5(_0x5e2b95._0x2f96da,0x74,0xb9,-_0x5e2b95._0x2eee18)](/\r\n/g,'\x0a');}function convertEol(_0x64e79e,_0x1d21be){const _0xe0c9c1={_0x4ec55a:0x556,_0x49d9f:0x38e,_0x38ba33:0x4b5,_0x3d33ac:0x443},_0x5ebe6f={_0x168c1c:0x168,_0x493c92:0x38,_0x3b53f8:0x195};function _0x524471(_0x4ab2fc,_0x44ecf8,_0x4eca84,_0x353231){return _0x57b9de(_0x4ab2fc-_0x5ebe6f._0x168c1c,_0x353231,_0x4eca84- -_0x5ebe6f._0x493c92,_0x353231-_0x5ebe6f._0x3b53f8);}return _0x1d21be==='crlf'?_0x64e79e[_0x524471(_0xe0c9c1._0x4ec55a,_0xe0c9c1._0x49d9f,_0xe0c9c1._0x38ba33,_0xe0c9c1._0x3d33ac)](/\n/g,'\x0d\x0a'):_0x64e79e;}async function atomicWrite(_0x533d6e,_0x53a5b9){const _0x2c547f={_0x448b90:0x18d,_0x16f1dc:0x219,_0x1f36de:0xfa,_0x7ee874:0xc4,_0x717583:0xb1,_0x445c6d:0x157,_0x4e41f2:0x6,_0x1aed34:0xee,_0x57464d:0x274,_0x410fd7:0x31a},_0x1fd000={_0x243137:0x2dd},_0x19641b={_0x1e69a8:0xcb,_0xe5cc3b:0x1f7};function _0x102be5(_0x308d08,_0x485cbf,_0x2495b5,_0x107458){return _0x23b1c2(_0x308d08-_0x19641b._0x1e69a8,_0x2495b5,_0x485cbf- -_0x19641b._0xe5cc3b,_0x107458-0xe0);}const _0x14dc27=_0x4425ad[_0x4447be(_0x2c547f._0x448b90,_0x2c547f._0x16f1dc,0x13e,0x1ef)](_0x533d6e);function _0x4447be(_0x22acfc,_0x5203cf,_0x2707b4,_0x30225e){return _0x57b9de(_0x22acfc-0x1b7,_0x5203cf,_0x22acfc- -_0x1fd000._0x243137,_0x30225e-0x1b4);}const _0x46d1d3=_0x4425ad[_0x102be5(0x1b9,_0x2c547f._0x1f36de,0x6d,0x1f)](_0x14dc27,_0x102be5(_0x2c547f._0x7ee874,0xc4,-0x3,0x7e)+_0x4425ad[_0x4447be(0x71,_0x2c547f._0x717583,0x199,_0x2c547f._0x445c6d)](_0x533d6e)+'.'+Date[_0x102be5(0x2,0x121,_0x2c547f._0x4e41f2,_0x2c547f._0x1aed34)]()+'.'+Math[_0x102be5(_0x2c547f._0x57464d,0x151,0x55,0x24c)]()[_0x102be5(0x31f,0x24b,_0x2c547f._0x410fd7,0x12f)](0x24)['slice'](0x2));await _0xf2b371(_0x46d1d3,_0x53a5b9),await _0x4e0a21(_0x46d1d3,_0x533d6e);}function sha256(_0x400e65){const _0x5d4ca9={_0x32a783:0x394,_0x217a53:0x361,_0x210a06:0x4c5,_0xef6b2d:0x3e6,_0x412868:0x4bc,_0x24d677:0x1ee},_0xee6e54={_0xdd149c:0xc8},_0x26027c={_0x462721:0x506,_0x1c458a:0x4c};function _0x1b730d(_0x48b80b,_0x129b0b,_0x2a0c1a,_0x4bb69c){return _0x57b9de(_0x48b80b-0x18c,_0x129b0b,_0x48b80b- -_0x26027c._0x462721,_0x4bb69c-_0x26027c._0x1c458a);}function _0x3bb214(_0x559329,_0x3c13d4,_0x16ae15,_0x53c644){return _0x23b1c2(_0x559329-_0xee6e54._0xdd149c,_0x16ae15,_0x559329-0x30,_0x53c644-0x17b);}return createHash(_0x3bb214(_0x5d4ca9._0x32a783,_0x5d4ca9._0x217a53,_0x5d4ca9._0x210a06,_0x5d4ca9._0xef6b2d))[_0x3bb214(_0x5d4ca9._0x412868,0x39e,0x446,0x421)](_0x400e65)[_0x1b730d(-_0x5d4ca9._0x24d677,-0x244,-0xa4,-0x29a)]('hex');}function countLines(_0x3b861d){const _0x223d2f={_0x5be42e:0x387,_0xba6ae9:0x154,_0x4061a5:0x1ec,_0x478cdf:0x45f,_0x42a49b:0x584},_0x84e558={_0x1cb639:0xac};function _0x215bd9(_0x542c19,_0x30da18,_0x656fea,_0x2711fa){return _0x57b9de(_0x542c19-0x35,_0x30da18,_0x542c19- -_0x84e558._0x1cb639,_0x2711fa-0x50);}const _0x27f352=_0x3b861d['replace'](/\n$/,'');function _0x576c71(_0x20f592,_0x484e6f,_0x5528a9,_0x48e5a7){return _0x57b9de(_0x20f592-0x156,_0x5528a9,_0x484e6f- -0x30a,_0x48e5a7-0x1c6);}return _0x27f352[_0x576c71(_0x223d2f._0x5be42e,0x24d,_0x223d2f._0xba6ae9,_0x223d2f._0x4061a5)]===0x0?0x0:_0x27f352['split']('\x0a')[_0x215bd9(0x4ab,_0x223d2f._0x478cdf,_0x223d2f._0x42a49b,0x5f7)];}function calculateLineNumbers(_0x4f00bd,_0x5d1d69,_0x5c1f20,_0x8593fa){const _0x51baad={_0x20143b:0x4c1,_0x3a944c:0x500,_0x5b11c8:0x5e3,_0x2a42d7:0x50e,_0x4d8146:0x55b},_0x4f1018={_0x34f4c7:0x13a,_0x2f9d0b:0x164},_0x279010={_0x32f0e6:0x1b0,_0x132c23:0x6e,_0x49aa04:0xe2},_0x14d776=_0x4f00bd['slice'](0x0,_0x8593fa)[_0x27090a(0x588,0x58c,_0x51baad._0x20143b,_0x51baad._0x3a944c)]('\x0a')[_0x1d40f8(_0x51baad._0x5b11c8,0x632,_0x51baad._0x2a42d7,_0x51baad._0x4d8146)];function _0x27090a(_0x11c922,_0x4080ca,_0x34ba8e,_0x3e1de9){return _0x57b9de(_0x11c922-_0x279010._0x32f0e6,_0x4080ca,_0x11c922-_0x279010._0x132c23,_0x3e1de9-_0x279010._0x49aa04);}const _0x263cfb=countLines(_0x5d1d69);function _0x1d40f8(_0x1c55dc,_0x212fcd,_0x423441,_0x2ed640){return _0x23b1c2(_0x1c55dc-0x1df,_0x212fcd,_0x1c55dc-_0x4f1018._0x34f4c7,_0x2ed640-_0x4f1018._0x2f9d0b);}const _0x449348=countLines(_0x5c1f20);return{'oldStartLine':_0x14d776,'oldEndLine':_0x14d776+_0x263cfb-0x1,'newStartLine':_0x14d776,'newEndLine':_0x14d776+_0x449348-0x1,'oldLineCount':_0x263cfb,'newLineCount':_0x449348};}function createFileEditTool(_0x4876d0={}){const _0x22fbe0={_0x568aae:0x234,_0x2b33bf:0x113,_0x147e0c:0x163,_0x8fb36e:0x2c1,_0x3bb004:0x186,_0x3d11e:0x170,_0x5b2ba6:0x18e,_0xfafbde:0x276,_0x5254bc:0x1c9,_0x5b1361:0x3bf,_0x4dd1c0:0xa0,_0x3c963c:0x278,_0x511380:0x31b,_0x1a4b05:0x308,_0x295d20:0x280,_0x4abe99:0x22d,_0x415f7b:0x14e,_0x399d56:0x54,_0x42bac5:0x7d,_0x290521:0x220,_0x3d83b7:0x2ac,_0x283e07:0xfa,_0x56c894:0x103,_0x4d60c8:0x149,_0x5d8fb1:0x183,_0xe05615:0x31e,_0x48b7de:0x23f},_0xc23d22={_0x20fb14:0x375,_0x45cd3f:0x364,_0x4c6f2e:0x42e,_0x11a4d2:0x128,_0x5198d4:0x25d,_0x4e84ef:0x289,_0x2dfe89:0x39a,_0x348c07:0x4cc,_0x43e5ec:0x125,_0x5dae98:0x41c,_0x56a1a1:0xd,_0x179dfd:0x18f,_0x4bc14f:0x25c,_0x36c646:0x298,_0x32e608:0x42,_0x3f38d9:0x314,_0x59b33a:0x388,_0x1a7bf5:0x3bb,_0x4f611c:0x78,_0x43338f:0x130,_0x19eb75:0xb4,_0x2c1523:0x2a9,_0x40a728:0x3e1,_0x3fa16f:0x3ae,_0x62bc6:0xee,_0x446090:0x1a1,_0x4ae030:0x1ef,_0x1bda5a:0x21c,_0x269d01:0x93,_0x398748:0x17d,_0x29e06f:0x2d,_0x1737ec:0x52,_0x29483b:0x76,_0x5dc059:0xd6,_0x130cd6:0x19,_0x2023e7:0xa4,_0x511ac7:0x1,_0x440c1d:0x112,_0x3f89a4:0x409,_0x4b9775:0x477,_0x203fcf:0xc,_0x522a01:0xec,_0xf9ac4c:0x1e5,_0x2754bd:0x42b,_0x4b2e86:0x3be},_0x46dff2={_0x212aae:0xe0,_0x159a36:0x16b},_0x3d41b0={_0x370e3e:0xdc},_0x3def94={_0x35f0d0:0x11f,_0x3bf39d:0x4fe};function _0x19a0e1(_0x244dd5,_0x1f0996,_0x5742a0,_0x1a1937){return _0x57b9de(_0x244dd5-_0x3def94._0x35f0d0,_0x244dd5,_0x1f0996- -_0x3def94._0x3bf39d,_0x1a1937-0x92);}function _0x292d41(_0x347a45,_0x55384f,_0x3a79ef,_0x4a9763){return _0x23b1c2(_0x347a45-_0x3d41b0._0x370e3e,_0x347a45,_0x4a9763- -0x1af,_0x4a9763-0x108);}const _0xaea15a=_0x4425ad[_0x19a0e1(-_0x22fbe0._0x568aae,-_0x22fbe0._0x2b33bf,-0x1dc,-_0x22fbe0._0x147e0c)](_0x4876d0[_0x292d41(0x18b,_0x22fbe0._0x8fb36e,0xf1,_0x22fbe0._0x3bb004)]??process['cwd']()),_0x2d66ae=(_0x4876d0[_0x292d41(0x3b5,_0x22fbe0._0x3d11e,_0x22fbe0._0x5b2ba6,_0x22fbe0._0xfafbde)]??[])[_0x292d41(0x422,_0x22fbe0._0x5254bc,_0x22fbe0._0x5b1361,0x2d7)](_0x564a21=>_0x4425ad[_0x19a0e1(-0x163,-0x113,-0x125,0xc)](_0x564a21)),_0x4c3574=_0x4876d0[_0x292d41(0x290,0x302,0x81,0x1b6)]??_0x19a0e1(-_0x22fbe0._0x4dd1c0,-0x1ab,-0x227,-0x211);return defineTool({'name':_0x4c3574,'description':_0x292d41(0x22e,_0x22fbe0._0x3c963c,_0x22fbe0._0x511380,_0x22fbe0._0x1a4b05),'inputSchema':{'type':_0x292d41(0x342,0x21e,_0x22fbe0._0x295d20,_0x22fbe0._0x4abe99),'properties':{'filePath':{'type':_0x292d41(_0x22fbe0._0x415f7b,_0x22fbe0._0x399d56,0x131,0xd6)},'oldText':{'type':_0x19a0e1(-0x10b,-0x1cb,-0x2f5,-_0x22fbe0._0x42bac5)},'newText':{'type':_0x19a0e1(-_0x22fbe0._0x290521,-0x1cb,-0xfc,-_0x22fbe0._0x3d83b7)},'dryRun':{'type':_0x19a0e1(-_0x22fbe0._0x283e07,0x44,-_0x22fbe0._0x56c894,_0x22fbe0._0x4d60c8)}},'required':[_0x292d41(0x383,0x2f1,0x150,0x244),_0x19a0e1(-0x161,-0x118,-_0x22fbe0._0x5d8fb1,-0x160),_0x292d41(_0x22fbe0._0xe05615,_0x22fbe0._0x48b7de,0x16c,0x272)]},async *'execute'(_0x53c761){function _0x442ab0(_0x495193,_0x167e08,_0x3179d3,_0x1c527c){return _0x19a0e1(_0x3179d3,_0x495193-0x3d2,_0x3179d3-0x1c6,_0x1c527c-0x2b);}const _0x3e3938=resolveAllowedPath(_0xaea15a,_0x2d66ae,_0x53c761[_0x442ab0(_0xc23d22._0x20fb14,0x4b0,_0xc23d22._0x45cd3f,_0xc23d22._0x4c6f2e)]);await assertWorkspaceFile(_0x3e3938);const _0x49160d=await _0x4e49fb(_0x3e3938),_0x430960=await _0x163211(_0x3e3938);function _0x5e1c5b(_0x225289,_0x530482,_0x56be59,_0x105b9a){return _0x292d41(_0x530482,_0x530482-0x79,_0x56be59-_0x46dff2._0x212aae,_0x225289- -_0x46dff2._0x159a36);}const _0x286900=detectEol(_0x430960),_0x592e17=normalizeToLf(_0x430960[_0x5e1c5b(_0xc23d22._0x11a4d2,_0xc23d22._0x5198d4,-0x1a,0xc5)](_0x442ab0(0x38a,_0xc23d22._0x4e84ef,_0xc23d22._0x2dfe89,_0xc23d22._0x348c07))),_0x2ddcec=normalizeToLf(_0x53c761[_0x5e1c5b(0x1e,0x157,_0xc23d22._0x43e5ec,-0xbf)]),_0x2acde2=normalizeToLf(_0x53c761[_0x442ab0(0x3a3,0x2ed,0x443,_0xc23d22._0x5dae98)]),_0x20d999=_0x592e17['indexOf'](_0x2ddcec);if(_0x20d999===-0x1){const _0x37343e=_0x2ddcec['slice'](0x0,0x64)[_0x5e1c5b(0x125,0x71,-_0xc23d22._0x56a1a1,0x11)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x37343e+(_0x2ddcec[_0x5e1c5b(_0xc23d22._0x179dfd,_0xc23d22._0x4bc14f,0x1bd,_0xc23d22._0x36c646)]>0x64?'...':'')+'\x22',{'filePath':_0x53c761[_0x5e1c5b(0xd9,-0x45,0x138,_0xc23d22._0x32e608)]});}const _0x3d1ae0=_0x592e17[_0x442ab0(_0xc23d22._0x3f38d9,_0xc23d22._0x59b33a,0x2f6,_0xc23d22._0x1a7bf5)](0x0,_0x20d999)+_0x2acde2+_0x592e17[_0x5e1c5b(_0xc23d22._0x4f611c,_0xc23d22._0x43338f,-0xad,0x25)](_0x20d999+_0x2ddcec[_0x5e1c5b(_0xc23d22._0x179dfd,0xe5,0x1df,_0xc23d22._0x19eb75)]),_0x248c9f=convertEol(_0x3d1ae0,_0x286900),_0x4cb6b8=Buffer[_0x442ab0(_0xc23d22._0x2c1523,_0xc23d22._0x40a728,_0xc23d22._0x3fa16f,0x164)](_0x248c9f,_0x5e1c5b(_0xc23d22._0x62bc6,0x15f,_0xc23d22._0x446090,_0xc23d22._0x4ae030)),_0x3275b5=sha256(_0x430960),_0x41f06e=sha256(_0x4cb6b8),_0x3e75c7=_0x3275b5===_0x41f06e,_0x233db8=_0x53c761[_0x442ab0(0x24d,0x313,_0xc23d22._0x1bda5a,0x12e)]??![];return!_0x233db8&&!_0x3e75c7&&await atomicWrite(_0x3e3938,_0x4cb6b8),yield createToolOutput(_0x3e75c7?_0x5e1c5b(-_0xc23d22._0x269d01,-_0xc23d22._0x398748,_0xc23d22._0x29e06f,0x35):_0x233db8?'Validated\x20(dry\x20run:\x20no\x20write).':_0x5e1c5b(0xa,_0xc23d22._0x1737ec,0x105,-_0xc23d22._0x29483b),{'filePath':_0x53c761['filePath'],'resolvedPath':_0x3e3938,'created':_0x49160d[_0x5e1c5b(0x6e,_0xc23d22._0x5dc059,-_0xc23d22._0x130cd6,-_0xc23d22._0x2023e7)][_0x5e1c5b(0x122,-_0xc23d22._0x511ac7,-0xa,_0xc23d22._0x440c1d)](),'modified':_0x49160d[_0x442ab0(_0xc23d22._0x3f89a4,_0xc23d22._0x4b9775,0x30b,0x431)][_0x5e1c5b(0x122,-_0xc23d22._0x203fcf,0x37,0x123)](),'size':_0x49160d[_0x5e1c5b(_0xc23d22._0x522a01,_0xc23d22._0xf9ac4c,0x144,0x22d)],'eol':_0x286900,'oldTextLength':_0x2ddcec['length'],'newTextLength':_0x2acde2[_0x442ab0(_0xc23d22._0x2754bd,_0xc23d22._0x4b2e86,0x3e1,0x446)],'bytesWritten':_0x3e75c7||_0x233db8?0x0:_0x4cb6b8['length'],'beforeSha':_0x3275b5,'afterSha':_0x41f06e,'dryRun':_0x233db8,'noChange':_0x3e75c7,'lineNumbers':calculateLineNumbers(_0x592e17,_0x2ddcec,_0x2acde2,_0x20d999)}),void 0x0;}});}import{mkdir as _0xe67f0b,rename as _0x63dcd7,stat as _0x2784d6,writeFile as _0x1647fa}from'fs/promises';import*as _0x28e01c from'path';async function atomicWrite2(_0x514149,_0x443857){const _0x1806ca={_0x5407e0:0xd5,_0x3bed76:0x14d,_0x171ae1:0x5,_0x37ff37:0x62,_0x3a7f22:0x1fe,_0xe7b814:0x1a6,_0xe8b938:0xa9,_0x30fdd0:0x609,_0x190140:0x6ed,_0x5da66c:0x758},_0x5c9a58={_0x2afb61:0x172,_0x41d978:0x125},_0x131ddc=_0x28e01c[_0xe64478(_0x1806ca._0x5407e0,-_0x1806ca._0x3bed76,-_0x1806ca._0x171ae1,_0x1806ca._0x37ff37)](_0x514149);await _0xe67f0b(_0x131ddc,{'recursive':!![]});function _0x2671db(_0x1a4386,_0x533d08,_0x338874,_0x20c0a0){return _0x57b9de(_0x1a4386-_0x5c9a58._0x2afb61,_0x533d08,_0x338874-0x1fd,_0x20c0a0-_0x5c9a58._0x41d978);}function _0xe64478(_0x4589b8,_0x31cca1,_0x560a9a,_0x17aef8){return _0x23b1c2(_0x4589b8-0x71,_0x17aef8,_0x560a9a- -0x3c1,_0x17aef8-0x1d);}const _0x2cf906=_0x28e01c[_0xe64478(-0x164,-0x14a,-0xd0,-_0x1806ca._0x3a7f22)](_0x131ddc,_0xe64478(-0x141,-0x1df,-0x106,-0x56)+_0x28e01c[_0xe64478(0x2,-0x195,-0x121,-0x1b5)](_0x514149)+'.'+Date[_0xe64478(-_0x1806ca._0xe7b814,0x7d,-_0x1806ca._0xe8b938,-0x1cc)]()+'.'+Math[_0x2671db(0x583,0x699,0x5f3,_0x1806ca._0x30fdd0)]()[_0x2671db(0x6f4,0x692,_0x1806ca._0x190140,_0x1806ca._0x5da66c)](0x24)['slice'](0x2));await _0x1647fa(_0x2cf906,_0x443857),await _0x63dcd7(_0x2cf906,_0x514149);}function createFileNewTool(_0xa623b7={}){const _0x43d115={_0x36b0cb:0x63d,_0x3f2e82:0x648,_0x517fb8:0x67a,_0x1b9bef:0x494,_0x5c173e:0x27f,_0x49157f:0x1f3,_0x29fe3a:0x2f4,_0x3d3a76:0x349,_0x440dbf:0x4b3,_0x19192c:0x343,_0x1dc7f4:0x497,_0x1a65c2:0x3cf,_0xd916d7:0x3c8,_0x39ad0b:0x46e,_0x3656c1:0x4b5,_0x26c500:0x3da,_0x4657b0:0x3ed,_0x11d8c0:0x5d6,_0xaac425:0x4a5,_0x174de4:0x4bf},_0x17391c={_0x594ea9:0x340,_0x5adb20:0x2fc,_0x549685:0x20e,_0xe9db3e:0x278,_0x1d3311:0x8f,_0x40b3db:0x39f,_0x58ed63:0x34c,_0x4971b1:0x155,_0x1572f9:0x200,_0x1e8680:0x23b,_0x1f7bea:0x3eb,_0x11b572:0x3d1},_0x3429eb={_0x5e4709:0xb8},_0x1ecc93={_0x3a6a4f:0xf4,_0x9dedaa:0x252},_0x46b800={_0x19564e:0x11,_0x2d1987:0x125},_0x3f52b0=_0x28e01c[_0x3c10fd(_0x43d115._0x36b0cb,_0x43d115._0x3f2e82,_0x43d115._0x517fb8,0x519)](_0xa623b7[_0x5ab5dd(_0x43d115._0x1b9bef,0x46f,_0x43d115._0x5c173e,0x346)]??process[_0x5ab5dd(0x3bd,_0x43d115._0x49157f,0x2a7,_0x43d115._0x29fe3a)]());function _0x5ab5dd(_0x18210f,_0x59c06b,_0x328f47,_0x8fc253){return _0x23b1c2(_0x18210f-0x61,_0x328f47,_0x8fc253-_0x46b800._0x19564e,_0x8fc253-_0x46b800._0x2d1987);}function _0x3c10fd(_0x3fe2ad,_0x20b5e5,_0x12d53d,_0x38fde2){return _0x57b9de(_0x3fe2ad-_0x1ecc93._0x3a6a4f,_0x12d53d,_0x3fe2ad-_0x1ecc93._0x9dedaa,_0x38fde2-0x145);}const _0x1acd9f=(_0xa623b7[_0x5ab5dd(0x364,_0x43d115._0x3d3a76,0x3d4,0x436)]??[])[_0x5ab5dd(0x3fb,_0x43d115._0x440dbf,_0x43d115._0x19192c,_0x43d115._0x1dc7f4)](_0x225da6=>_0x28e01c['resolve'](_0x225da6)),_0x56cdbe=_0xa623b7['name']??'FileNew';return defineTool({'name':_0x56cdbe,'description':_0x5ab5dd(_0x43d115._0x1a65c2,_0x43d115._0xd916d7,_0x43d115._0x39ad0b,_0x43d115._0x3656c1),'inputSchema':{'type':_0x5ab5dd(0x358,_0x43d115._0x26c500,0x3ac,_0x43d115._0x4657b0),'properties':{'filePath':{'type':_0x3c10fd(0x585,_0x43d115._0x11d8c0,_0x43d115._0xaac425,_0x43d115._0x174de4)},'content':{'type':'string'}},'required':['filePath','content']},async *'execute'(_0x207036){const _0x242783={_0x427984:0x1c9,_0x3da49d:0xe9},_0x3b3745=resolveAllowedPath(_0x3f52b0,_0x1acd9f,_0x207036['filePath']),_0x5ae80e=await _0x2784d6(_0x3b3745)[_0x2677a3(_0x17391c._0x594ea9,0x216,0x2f7,_0x17391c._0x5adb20)](()=>!![])[_0x617256(0x320,_0x17391c._0x549685,0x1fb,0xc4)](()=>![]),_0x4a3596=Buffer[_0x2677a3(0x34d,0x1dc,0x1a4,0x24f)](_0x207036[_0x617256(0xb7,0x200,0x181,_0x17391c._0xe9db3e)],'utf8');await atomicWrite2(_0x3b3745,_0x4a3596);function _0x617256(_0x10c4bc,_0x7310f8,_0x10b7b8,_0x1922dc){return _0x5ab5dd(_0x10c4bc-0x121,_0x7310f8-0x77,_0x10c4bc,_0x7310f8- -_0x3429eb._0x5e4709);}function _0x2677a3(_0x434bd8,_0x2ff550,_0x294a93,_0x2f8a5c){return _0x5ab5dd(_0x434bd8-0x10f,_0x2ff550-_0x242783._0x427984,_0x2ff550,_0x2f8a5c- -_0x242783._0x3da49d);}return yield createToolOutput(_0x2677a3(_0x17391c._0x1d3311,0x242,0x134,0x1da)+_0x207036[_0x617256(_0x17391c._0x40b3db,_0x17391c._0x58ed63,0x430,0x46d)]+'.',{'filePath':_0x207036['filePath'],'resolvedPath':_0x3b3745,'bytes':_0x4a3596['length'],'lines':_0x207036[_0x617256(_0x17391c._0x4971b1,_0x17391c._0x1572f9,0x1c9,_0x17391c._0x1e8680)][_0x2677a3(0x3bc,0x46c,0x436,0x394)](/\r?\n/)[_0x2677a3(_0x17391c._0x1f7bea,0x4a8,0x3dd,_0x17391c._0x11b572)],'created':new Date()[_0x2677a3(0x2e4,0x41f,0x4b6,0x364)](),'overwritten':_0x5ae80e}),void 0x0;}});}import{readFile as _0x3016a9,stat as _0x6bb4f8}from'fs/promises';import*as _0x11816a from'path';function stripUtfBom(_0x1b50e4){const _0x5816d4={_0x55010f:0x335,_0x7283cd:0x288};function _0x562b63(_0x3af39d,_0xa1f77d,_0x5b9f5f,_0x1d0865){return _0x57b9de(_0x3af39d-0x11b,_0x1d0865,_0xa1f77d- -0x10b,_0x1d0865-0x8);}return _0x1b50e4['charCodeAt'](0x0)===0xfeff?_0x1b50e4[_0x562b63(0x1f8,_0x5816d4._0x55010f,0x2c6,_0x5816d4._0x7283cd)](0x1):_0x1b50e4;}function clampLine(_0x36eeff,_0x58a00c){const _0x468bd1={_0x16723b:0xd6,_0x50c3eb:0x9f,_0x5cc64a:0x1b2,_0x4d849a:0xb7,_0x1de3fe:0x99,_0x337ed8:0x34},_0x3178b1={_0x3bdbe5:0x95},_0x25f2fb={_0x1d63c6:0x136};function _0x3404eb(_0x1b1630,_0x482e6c,_0x5cfee9,_0x430446){return _0x57b9de(_0x1b1630-_0x25f2fb._0x1d63c6,_0x430446,_0x5cfee9-0x24,_0x430446-0x1ec);}if(!Number[_0x12177d(-0xc3,-0x15,-_0x468bd1._0x16723b,-0x61)](_0x36eeff))return 0x1;function _0x12177d(_0x367cbc,_0x1d7291,_0x16db22,_0x5baf8c){return _0x57b9de(_0x367cbc-0x84,_0x5baf8c,_0x1d7291- -0x313,_0x5baf8c-_0x3178b1._0x3bdbe5);}return Math[_0x12177d(0xdf,_0x468bd1._0x50c3eb,_0x468bd1._0x5cc64a,0x71)](0x1,Math[_0x12177d(0xbc,-0x1,-_0x468bd1._0x4d849a,-0x57)](Math[_0x12177d(-_0x468bd1._0x1de3fe,-0x25,-_0x468bd1._0x337ed8,-0x39)](_0x36eeff),_0x58a00c));}function createFileReadTool(_0x3b8946={}){const _0x45f49d={_0xa9aa78:0x447,_0x3dd5f0:0x42e,_0x3913e2:0x32e,_0x40c719:0x26e,_0x1a4261:0x1ec,_0x214a8b:0x130,_0xb1f15:0x2e9,_0x10e6d6:0x38e,_0x1ebd9d:0x1c7,_0x3c58db:0x131,_0x4526a6:0x19d,_0xe934c8:0x16b,_0x435e1f:0x545,_0x5e23b3:0x511,_0x371ce1:0x44d,_0x2e35c5:0x2a0,_0x189fc5:0x491,_0x20f963:0x48a,_0x4aa6a5:0x253,_0x6fa552:0x408,_0x16df77:0x550,_0x3fa2f7:0x55d},_0x54206f={_0x197061:0x6da,_0x23bbbd:0x6ae,_0xd44d81:0x1b0,_0x5eee69:0x19b,_0x465b35:0x29a,_0x9586d7:0x3b1,_0x759938:0x658,_0x7263a1:0x665,_0x4b3110:0x5cb,_0x38f301:0x780,_0x24fcce:0x62e,_0x2a30b3:0x736,_0x39f7c9:0x2d5,_0x2c3968:0x19e,_0x22b008:0x2e2,_0x2faf95:0x1ed,_0x1575a9:0x555,_0x12b6a5:0x699,_0x3f67a1:0x2df,_0x18a852:0x25e,_0x257e0e:0x1ad,_0x1a1253:0x32b,_0x223310:0x32,_0x55c1f1:0x1c3,_0x5bff9e:0x244,_0x297dbd:0x271,_0x2ea67c:0x300,_0x167693:0x5c0,_0x147dbf:0x4b1,_0x97f8be:0x83f,_0x55ae71:0x706,_0x58f4e6:0x7a4,_0xd2e3e:0x2eb,_0x5640df:0xbc,_0x153d34:0x5b,_0x80f405:0x160,_0x256a1d:0x621,_0x379a31:0x561,_0x356e86:0x468,_0x590e3a:0x62c,_0x58f786:0x5e3,_0x4a713e:0x6e3,_0x2fe1ad:0x6fb},_0x2a03fc={_0x3f1fa8:0x1ab,_0x584c1d:0x27f,_0x10e33f:0xec},_0x1a27b6={_0x433e34:0xed},_0x1ff599={_0x369b44:0x11c,_0x34212e:0x6d};function _0x2219ec(_0x34bb72,_0x3be41f,_0x30f1e5,_0x451d48){return _0x23b1c2(_0x34bb72-_0x1ff599._0x369b44,_0x34bb72,_0x30f1e5- -0x22,_0x451d48-_0x1ff599._0x34212e);}const _0x3b72c4=_0x11816a[_0x2219ec(0x1de,_0x45f49d._0xa9aa78,0x31b,_0x45f49d._0x3dd5f0)](_0x3b8946['defaultCwd']??process['cwd']());function _0x240237(_0x239511,_0x4b761c,_0x54e29d,_0x37c4a5){return _0x57b9de(_0x239511-_0x1a27b6._0x433e34,_0x37c4a5,_0x239511- -0x1a5,_0x37c4a5-0x6);}const _0x56bcf5=(_0x3b8946[_0x240237(_0x45f49d._0x3913e2,0x3d0,0x3a0,0x30b)]??[])['map'](_0x412241=>_0x11816a['resolve'](_0x412241)),_0x244c76=_0x3b8946[_0x240237(_0x45f49d._0x40c719,_0x45f49d._0x1a4261,0x1c9,_0x45f49d._0x214a8b)]??_0x240237(_0x45f49d._0xb1f15,_0x45f49d._0x10e6d6,0x3e4,_0x45f49d._0x1ebd9d);return defineTool({'name':_0x244c76,'description':_0x2219ec(_0x45f49d._0x3c58db,_0x45f49d._0x4526a6,0x25d,_0x45f49d._0xe934c8),'inputSchema':{'type':_0x2219ec(0x3f3,0x4c1,0x3ba,0x4cc),'properties':{'path':{'type':'string'},'lineStart':{'type':_0x2219ec(_0x45f49d._0x435e1f,_0x45f49d._0x5e23b3,_0x45f49d._0x371ce1,0x568),'description':_0x240237(0x374,_0x45f49d._0x2e35c5,_0x45f49d._0x189fc5,_0x45f49d._0x20f963)},'lineEnd':{'type':_0x240237(0x378,_0x45f49d._0x4aa6a5,0x2fe,_0x45f49d._0x6fa552),'description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':[_0x2219ec(_0x45f49d._0x16df77,0x3ce,0x45b,_0x45f49d._0x3fa2f7)]},async *'execute'(_0x37581f){const _0x3e1ef6={_0x13c3f1:0xf4};function _0x299efe(_0x460729,_0x35c3c9,_0x464969,_0x378dad){return _0x240237(_0x460729- -0xb1,_0x35c3c9-_0x3e1ef6._0x13c3f1,_0x464969-0x1c,_0x464969);}const _0x1211ec=resolveAllowedPath(_0x3b72c4,_0x56bcf5,_0x37581f['path']);await assertWorkspaceFile(_0x1211ec);const _0x2fe373=await _0x6bb4f8(_0x1211ec),_0x3ede83=await _0x3016a9(_0x1211ec);function _0x2e282c(_0x569f46,_0x4f9649,_0x5e2568,_0x239875){return _0x2219ec(_0x569f46,_0x4f9649-_0x2a03fc._0x3f1fa8,_0x4f9649-_0x2a03fc._0x584c1d,_0x239875-_0x2a03fc._0x10e33f);}if(isProbablyBinary(_0x3ede83))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x37581f[_0x2e282c(0x643,_0x54206f._0x197061,0x7fb,_0x54206f._0x23bbbd)],{'path':_0x37581f[_0x299efe(0x2d5,_0x54206f._0xd44d81,_0x54206f._0x5eee69,0x385)]});let _0x3cd771=_0x3ede83[_0x299efe(_0x54206f._0x465b35,0x32a,0x371,_0x54206f._0x9586d7)](_0x2e282c(_0x54206f._0x759938,_0x54206f._0x7263a1,0x521,_0x54206f._0x4b3110));const _0x4617e7=_0x3cd771[_0x2e282c(_0x54206f._0x38f301,0x646,_0x54206f._0x24fcce,_0x54206f._0x2a30b3)](0x0)===0xfeff;_0x3cd771=stripUtfBom(_0x3cd771);const _0x197842=_0x3cd771['split'](/\r?\n/),_0x250b16={'path':_0x37581f[_0x299efe(_0x54206f._0x39f7c9,_0x54206f._0x2c3968,_0x54206f._0x22b008,_0x54206f._0x2faf95)],'resolvedPath':_0x1211ec,'created':_0x2fe373['birthtime'][_0x2e282c(_0x54206f._0x1575a9,_0x54206f._0x12b6a5,0x5d8,0x6c4)](),'modified':_0x2fe373[_0x299efe(_0x54206f._0x3f67a1,0x36c,0x2d7,0x23f)]['toISOString'](),'size':_0x2fe373[_0x299efe(_0x54206f._0x18a852,_0x54206f._0x257e0e,_0x54206f._0x1a1253,0x2a5)],'encoding':'utf8','bomStripped':_0x4617e7,'truncated':![],'totalLines':_0x197842['length']};if(_0x37581f[_0x299efe(0xac,-_0x54206f._0x223310,0x165,_0x54206f._0x55c1f1)]!==void 0x0||_0x37581f[_0x299efe(_0x54206f._0x5bff9e,_0x54206f._0x297dbd,_0x54206f._0x2ea67c,0x333)]!==void 0x0){const _0x447d0b=clampLine(_0x37581f[_0x2e282c(_0x54206f._0x167693,_0x54206f._0x147dbf,0x51e,0x600)]??0x1,_0x197842[_0x2e282c(_0x54206f._0x97f8be,_0x54206f._0x55ae71,0x6c3,_0x54206f._0x58f4e6)]),_0x415188=clampLine(_0x37581f[_0x299efe(_0x54206f._0x5bff9e,_0x54206f._0xd2e3e,0x20a,0x210)]??_0x197842['length'],_0x197842['length']),_0x11922c=Math[_0x299efe(_0x54206f._0x5640df,0x1db,-_0x54206f._0x153d34,_0x54206f._0x80f405)](_0x447d0b,_0x415188),_0x2ff441=Math[_0x2e282c(_0x54206f._0x256a1d,_0x54206f._0x379a31,_0x54206f._0x356e86,_0x54206f._0x590e3a)](_0x447d0b,_0x415188),_0x4a3c02=_0x197842['slice'](_0x11922c-0x1,_0x2ff441)[_0x2e282c(_0x54206f._0x58f786,_0x54206f._0x4a713e,_0x54206f._0x2fe1ad,0x829)]((_0x5c323c,_0x31e506)=>_0x11922c+_0x31e506+'|'+_0x5c323c)['join']('\x0a');return yield createToolOutput(_0x4a3c02,{..._0x250b16,'lineRange':{'lineStart':_0x11922c,'lineEnd':_0x2ff441,'linesTotal':_0x197842[_0x299efe(0x301,0x3b8,0x1e8,0x2ce)]}}),void 0x0;}return yield createToolOutput(_0x3cd771,_0x250b16),void 0x0;}});}import{stat as _0x534a77}from'fs/promises';import*as _0x1ac8bd from'path';import{execSync,spawn as _0x2f0fb2}from'child_process';import{existsSync}from'fs';import{stat as _0x449c50}from'fs/promises';import*as _0x7b38de from'os';import*as _0x415deb from'path';import{rgPath as _0x410a43}from'@vscode/ripgrep';var cachedRgPath=null;function _0x3d53(){const _0x5503ae=['DhLWzxnJCMLWDhjLywn0','B3jPz2LUywW','y2XVC2u','ndvKvKjtEva','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','y291BNq','yMLYDgH0Aw1L','AxntEw1IB2XPy0XPBMS','C2LNBMfS','rgv0ywLSoIa','Aw5JB21PBMDdywXSCW','vw5RBM93BIb0B29SoIa','Aw1Hz2vZ','y29UC3rYDwn0B3i','y29UBMvJDa','y29KzvzLCMLMAwvY','C2XPy2u','C2vHCMnOrgvWDgG','C3rKB3v0','ChvZAa','zgvMyxvSDa','Aw5PDgLHBgL6zwq','BM9Uzq','CxvLCNK','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','lMPZB25J','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','DhjHBNnMB3jTCW','l2jPBI9IyxnO','C2TPBgXZ','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','y2HHBMDL','y29UBMvJDgLVBG','q29Tu3bLyW','qMvHCMvYia','CNvUswq','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','ChvIBgLZAgvKqxq','CMvNAw9U','zw5NAw5LCW','AxnjBNrLz2vY','zw50CMLLCW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','rMv0y2GGDgLTzwqGB3v0','C3r5Bgu','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','BgLUzq','zxH0zw5ZAw9UCW','yNL0zuXLBMD0Aa','DhnZzxj2zxiUANm','y3jLyxrLzef0','BxrPBwvnCW','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','Aw1Hz2uVANbLzW','BMf2','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','Aw52ywXPzf9XDwvZDgLVBNm','zgLYBMfTzq','BgfUz18','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','qwXSia','C3vIyxjYyxK','v0vcua','Aw5JBhvKzxm','l3bPza','ywrKrxzLBNrmAxn0zw5LCG','ywXSB3DLzfrVB2XZ','Ag92zxi','BgLZDfrVB2XZ','o1TE','AxnbyNnVBhv0zq','B25szwrPCMvJDa','C25PChbLDa','B3bLBG','ihDHCYbHyM9YDgvKlG','z2nSAwq','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','ywn0AxzL','Aw1Hz2uVz2LM','zgLZy292zxj5u3rHDgu','DgHLBG','phn5C3rLBs1Yzw1PBMrLCJ4','lM10CW','ywjVCNrLza','yxv0BW','y29UDgvUDc10ExbL','zMLSDgvY','ugf0AcbPCYbUB3qGysbMAwXLoIa','B2jQzwn0','DgfZAW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','l3vZCI9SB2nHBc9IAw4VCMC','rMLSzvjLywq','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','ls1OAwrKzw4','y2fSBgjHy2TvCMW','xsb0CMfUC3bVCNqGzxjYB3i6','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','zgvMAw5PDgLVBG','qgjPB21LANmVyMLVBwu','CgfNzw1HCa','y2HHCKnVzgvbDa','C2H1DgrVD25tDgfYDgvK','Dhj1zwnVBg9Y','BgLUzuvUza','oIbPzcbYzxf1AxjLza','CxvLC3rPB24T','BwfYA2rVD24','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','C2vUzfjLCxvLC3q','zMLSzvbHDgG','BgL0zxjHBa','BgLUAW','ignVBxbSzxrLzc4','BwvZC2fNzq','A2v5','yMLVBwuUANnVBG','BxvSDgLtzwXLy3q','vMLLD2vKigLTywDLigzPBgu6ia','yMfZzty0','BgLZDgvU','D3jPDgu','zgvUBY5QC29UyW','yw5ZAti1nG','zxjYB3i','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','Aw1WBgvTzw50yxrPB24','Dgf2AwX5qxbPs2v5','y29TBwfUza','C2L6zq','Dg9KB3ncEvnLC3nPB24','DxrMoa','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','y2fSBeLK','lMPZEa','twLJCM9ZB2z0','AhrTBfnUAxbWzxq','lMXVzW','CMvJB3jK','te9x','CMvZDwX0CW','yxjNDw1LBNroyw1LCW','yxr4','BM9Kzv9TB2r1BgvZ','y29TBwfUzhm','v2vIu2vHCMnO','ywDLBNrjza','Bg9JyxrPB24','zxjYB3jZ','Dhj1zq','CxvLC3rPB24','lunVBw1HBMq','C2v0vg9KB3m','te9dquXbufbeqvrb','y2XPzw50twv0ywrHDgfvCMW','yNvUlMXVy2TI','BMv3vgv4Da','C3rHDhvZ','Bwv0yq','DgvZDa','ywXSB3DLzerPCNm','BNvT','ywrK','tM8GBg9JyxrPB25ZigzVDw5K','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','C3bHD24','y29UDgv4Da','y2XLyxi','y2XPzw50CW','Dw5PB24','Dw5RBM93BG','C2vSzwn0Aw9UuMfUz2u','Cg5WBs1SB2nRlNLHBwW','ls1YzwDLEha','C3rHDhvZvgv4Da','vg9KBYa','yMfZAwm','B3v0z29PBMDdywXSCW','CgfZC3rOCM91z2G','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','Bw9KzwW','Dg9VBhm','ChjPB3jPDhK','Dg9ju09tDhjPBMC','zgLZywjSzwq','lMnTza','CMvWBgfJzq','yxjNDw1LBNriAw50','CMvZDwX0','Dg9tDhjPBMC','AxnbCNjHEq','thnW','Dg9WAwm','zgvMyxvSDfrPBwvVDxrnCW','C29Tzq','v2vIrMv0y2G','B25oB3rPzMLJyxrPB24','CMLWz3jLCcbMywLSzwq6ia','uxvLC3rPB24G','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','BwvTB3j5','Dg91y2HgAwXL','sfruuca','Ahr0Ca','C2vHCMnOugfYyw1Z','mJa5sLDIzuPt','lI4U','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','B3bLBMfPlxjLC3bVBNnLCY13CW','EwvZ','Ag9ZDa','lMPWzwC','C2vYDMvYtMfTzq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','DxnLCM5HBwu','Dg9Rzw5tDg9YywDLs2v5','Cgf0Ag5HBwu','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','CMLWz3jLCa','zgvSzxrL','DhLWzq','zgvZy3jPChrPB24','tg9HzgvKigzYB206ia','sgLUDa','oIbJB250zw50ihjLCxvPCMvK','ugfJA2fNzxm','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','C2vZC2LVBKLK','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','C3bSAxq','rM91BMqG','CxvLC3rPB25Z','BNvTyMvY','AwzYyw1L','A2LUza','y29TCgXLDgvK','zMjJBgLK','Aw5ZDhj1y3rPB25Z','pc9ZExn0zw0TCMvTAw5Kzxi+','igzHAwXLzc4','BwnWxW','Dg9Rzw4','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','l3vZCI9IAw4VC2G','yxnRvxnLCG','yMLVBwuUANnVBMm','Cgf0Aa','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','DgLTzvTKyxrLDgLTzv0','zgLYzwn0B3j5','CgfJA2fNzu5HBwu','Aw5FChjVz3jLC3m','lMn0CW','DxrTx2nVBNrLBNq','C291CMnL','BwfW','BxrPBwu','y29Kzq','C3jJl2fNzw50l2fNzw50lNrZ','zxjYB3jnzxnZywDL','DgL0Bgu','DxbKyxrL','CMvXDwvZDhm','sw52B2TLq29TBwfUza','Aw52ywXPzf90B2rVx2nVBNrLBNq','u2HLBgWGBM90igzVDw5KoIa','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','CNnZ','ChjVCgvYDgLLCW','yM9VBgvHBG','nde3ndy4u3bLDMjd','zxHPDcbJB2rLia','o1TExg5DkJ8','DhjPBuvUza','BM9Zy3jPChq','AxrLBxm','AgfZq2XPzw50CW','A2v5yMLUzgLUz3m','DxrTx3nVDxjJzq','lMjPBG','vMLLD0zPBgu','Bg93','D29YA3nWywnLu3LTyM9S','yw5ZAte2','Bg9JywXLq29TCgfYzq','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','cMbGya','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','B2f1DgG','lNrZEa','BgvUz3rO','l2jPBI9YzW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','C2nYAxb0','C3rKzxjY','lNrZ','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','Cgf0DgvYBG','zgvSAw1PDgvY','B3rOzxi','Dg9mB3DLCKnHC2u','B2zMC2v0','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','CMfUz2u','zMLSzq','zgf0yq','zNvUy3rPB24','u2TPBgWGjW','Aw1Hz2uVD2vICa','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','CgLWzq','BgLUzvrLEhq','ls1ZDgrPBW','tM8GAg92zxiGAw5MB3jTyxrPB24','lMDPzG','ndu0ode4nhLqEeDKDq','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','C3rVCMfNzurPCG','zw5NAw5L','BhnWu2vYDMLJzq','mJC2mJuXnurACKTqyq','zw5HyMXLza','Dgv4DerVy3vTzw50l2rPzenSB3nL','tgLUzsa','DxjS','BgfUz3vHz2u','DxbKyxrLvg9WAwm','l3vZCI9IAw4VCMC','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','CgLK','Bwf4qNL0zxm','C2vUze5VDgLMAwnHDgLVBG','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','y3jSzG','tunqihnLCNzLCIa','zgLZCg9Zzq','C2v2zxjPDhK','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','ANnJB25MAwCUANnVBG','zMvUy2vK','l3vZCI9IAw4VyMfZAa','Aw52ywXPzf90B2rVx2LK','w01duca','zw51Bq','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','B3b0Aw9UCW','DgfZA2TPBgW','zMLSztOVlW','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','C2vHCMnOvhLWzq','Dhj1BMm','C3rKAw4','z2XVyG','DgLTzw91De1Z','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','DhLWzxnJCMLWDa','D2LUmZi','m3L1vwHrwG','C2v0','igj5DgvZks4','ienHDxnLoIa','vg9WAwmGC2v0ihrVici','z2L0qNjHBMnO','zgLHz25VC3rPy3m','yMLUyxj5tMfTzq','AxngAw5PDgu','zw5K','zMLUywXnzxnZywDL','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','BgLUzvn0yxj0','zMLUzfjLzMvYzw5Jzxm','CgXHAw50zxH0','l29WDc9OB21LyNjLDY9IAw4VCMC','lcbpChrPB24G','vw50AxrSzwq','tM8GzgLHz25VC3rPy3m','DhvWBgu','Dg9VBfjLC3vSDhm','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','C2H1DgrVD24','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','zMfPBgvK','CgfYC2vjBNq','Aw1Hz2uVCg5N','CMvJzw5JEurHExm','BwLU','C2fMzq','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','D2HLCMuGCMC','yxjNDw1LBNrZvgv4Da','DMvYAwzPzxi','zgLNzxn0','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','ChjLCgfYzunHBgXiAwvYyxjJAhK','CMvMCMvZAf90B2TLBG','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','Aw5qCM9NCMvZCW','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','r0LgodLH','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','C3bHD25PBMC','AMf2yxnJCMLWDa','Aw5JBhvKzv9KB21HAw5Z','BwnFzwLK','yxv0Aa','BhmGlwXH','CM91BMq','Aw52ywXPzf90B2rVx2L0zw0','EwfYBI5SB2nR','D29YA3nWywnLl3n5BwjVBa','BhnW','u2L6ztOG','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','DxrTx2nHBxbHAwDU','CgXHDgzVCM0','ywXSu2v0DgXLza','yw5ZD2vYCW','yxnJAwK','C3rYAw5N','AxngAwXL','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','qMfZzsbKAxjLy3rVCNK6ia','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ygbG','CgfYC2u','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','qMfZAa','zgvUBY5QC29U','B2zM','qxv0Ag9YAxPHDgLVBG','AxnfCNjVCG','CgfJA2fNzs5QC29U','l2jPBI9ZAa','AhLKCMf0zu1LDge','AgLNAa','z29Vz2XLlwnZzq','Bw9Kzq','yMvHCMvY','Dg9VBhmVy2fSBa','igj5DgvZicH0B3rHBdOG','yxjNDw1LBNrZ','mtbotgnLwMG','yxjNCW','zgLZy292zxj5','Dg9VBe5HBwu','yMfZzw5HBwu','ChjVy2vZCW','ig1Z','BgLI','igj5DgvZicHVCMLNAw5HBdOG','rMLSzuvKAxq','CgvUzgLUzW','y29UDgvUDa','C2vYDMvYswq','cGOTls0kcG','BwvKAxvT','Dgf2AwX5','B3bLBKzPBgvZ','Aw5PDgLHBgL6yxrPB24','D2HPy2GGCMC','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','CMvSyxrPDMu','rMLSzsb3CML0DgvUigf0ia','DhjPBq','zgfYAW','y2f0y2G','CMvHC29U','zM9VDgvY','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','y2XPzw50','Aw1Hz2u','lNrTCc4','Dg9VBa','z29Vz2XLq3nLs2v5','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','ue9tva','AwDUB3jL','mc4WlJa','z2v0vg9KB3m','mteXnZq0owTUv2DnDa','lMPZ','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','CMvMzxjLBMnLCW','qwDLBNqGCNvUia','yxnZAwDU','tNv2Aw4','zhj5uNvU','Cg9W','CNvUBMLUzW','v2fYBMLUzW','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','DxrTx3rLCM0','tuvesvvn','B3v0Chv0','zMLUza','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','C29YDa','CMvTB3zLrxzLBNrmAxn0zw5LCG','ugf0AcbUB3qGzM91BMq6ia','zhvWBgLJyxrLx3rVzg9FAwrZ','uhjVz3jHBuzPBgvZ','lNbUzW','uKLgrG','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','B25Jzq','BgLTAxq','Aw5WDxq','Dg9KB3m','C2vYDMvYCW','zxzLCNK','y3DK','zMLSzvzLCNnPB25Z','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','BgfIzwW','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','lu5VuhjVzMLSzq','lMPZB24','CMvXDwLYzwq','CMvXDwvZDa','z2v0','qxzHAwXHyMXLignVBw1HBMrZoG','AgfUzgXL','zgLHz25VC3rPy3ngB3jgAwXL','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','AM9PBG','rMv0y2GGywjVCNrLzcbIEsb1C2vY','C2v0vg9WAwm','ls1MB2XSB3C','B3bLBMfPlxjLC3bVBNnLCW','t0zg','zxHPDa','wZ0+nY04kcLD','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','tunqihrVB2WG','B3jPz2LUvg9VBenHBgXjza','y2XLyw51Ca','BgLUzu51Bq','ie9sia','zNvSzMLSBgvK','AgfZ','yxbPs2v5','Ag9TzwrPCG','Bwf4','lM51DMLU','CgfJA2fNzs1SB2nRlMPZB24','C3rHDgu','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','ywDLBNrZ','B2XSyw1H','yxbWBgLJyxrPB24VANnVBG','z29Vz2XLq3nLq3G','C2nVCgvZ','yxr0CG','DxrTx21LzgL1Bq','y29UDgvUDhm','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','rxjYB3i','A2LSBa','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','ChjVDg9JB2W','Aw52ywXPzf90B2rVx3n0yxr1CW','BM93','CMvTB3zL','C3rYAxbbBNnP','yNjVA2vU','CMCUzxHL','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','AxndB250zxH0','r2XVyG','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','tM8GC3vJAcbMAwXLoIaN','ls0T','zgv0ywLS','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','CM9VDa','Aw5JBhvKzq','zNjVBq','y29UBMvJDgvK','yNvUlMXVy2S','yxjYyxK','rgLHz25VC3rPyW','Aw5WDxrty2HLBwe','ywjVCNq','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','y29UzMLN','u0Lhs0Lmta','zMXHDe1HCa','zg9JDw1LBNrtEw1IB2W','y29ZDa','ANnVBG','zgvMyxvSDen3za','BM90Awz5','z2v0u3rHDhm','B2XKvgv4Da','Ec1HCgKTA2v5','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','ls1NBg9Ipq','lMPWzW','CMvZB2X2zq','y2HHCMfJDgvY','DhjHBNnWB3j0','C2vYDMvY','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','r0LgodDH','zg9TywLUCW','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','AgvHzgvYCW','CMfUzg9T','y2fJAgvK','ls1JB2X1Bw4','C3LTBgLUAW','y2XPzw50sw5MB3jTyxrPB24','B3bLCMf0Aw9U','y2XPzw50x3nLy3jLDf9WB3n0','D2vI','C3rHCNq','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','C2HPzNq','xg5DkJ8','zw52','Dgv4Da','DMfSDwu','AxneAxjLy3rVCNK','DhvYBMrVD24','ru5pru5u','CgfZC3DVCMq','ota4ode0A3Hzv2vR','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','yMLVBwu','lMnQCW','Dg90ywW','AwDUB3jLt3v0Chv0','yxv0Ag9YAxPHDgLVBL9JB2rL','otiXmZHSDLvTq3u','C2vUza','C2HHmJu2','BMfTzq','C2HLBgXqyxrO','lNDLyNa','C2L0ztO','oty4nJG4qwTICxnu','yw50AhjVCgLJlw1LC3nHz2vZ','ygbGANnVBGO','zgvSzwDHDgvKlxj1BI0','ofLAyNPkEq','C3rYAw5NAwz5','C3rHCNrZv2L0Aa','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','ChjLzML4','igj5DgvZ','y29Uy2f0','BgfUzW','Dg9VBenHBgXjza','z29uB0LTCgXLBwvUDgf0Aw9U','ig1HDgnO','DxjP','B3b0Aw9UywW','Bwf0y2HLCW','Aw52ywXPzf90B3bPyW','CMfUAW','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','ywXS','Dg9Rzw5Z','A2v5CW'];_0x3d53=function(){return _0x5503ae;};return _0x3d53();}function findSystemRipgrep(){const _0x49fc91={_0x1ebd75:0x194,_0x2731a7:0x1a1,_0x3c07da:0x1e7,_0x2aa7a0:0x15a,_0x2ee342:0x1d9,_0x38aa20:0x185,_0x42b3bc:0xb4,_0x575712:0xa0,_0x4e8808:0x331,_0x4d3ab4:0x31f,_0x2dda66:0x201,_0x567e06:0x134,_0x4797ca:0x318,_0xb8192d:0x10c,_0x1dc9da:0xb0,_0x3ba9f7:0x144,_0x5412e9:0x2c,_0x431612:0x373,_0x3ddf97:0x41e,_0x536a2d:0x291,_0x4d1ab8:0x124,_0x36acbd:0x68,_0x58ef1c:0x17f,_0x43f24f:0x179,_0x526349:0x223,_0x48e1ef:0x304,_0x2478ca:0x3bd,_0x151bf1:0x3fa,_0x4eb134:0x17a,_0x197e30:0xae,_0x5b6a3f:0x1ad,_0x498d0c:0x21,_0x548adb:0x1,_0x22c205:0x1ee,_0x46bb7b:0x126,_0x13267c:0xd8,_0x239834:0x460,_0x2e6210:0x46c,_0x484ee4:0x1d3,_0xbdbcf:0x91,_0x1cc082:0x1d,_0xe30e3c:0x6},_0x2a56d1={_0x263503:0x1b6},_0x436852={_0x5d5fa4:0x19b,_0x5c27d9:0x109},_0x4056f6=_0x7b38de[_0x141937(_0x49fc91._0x1ebd75,0x51,_0x49fc91._0x2731a7,_0x49fc91._0x3c07da)]()===_0x141937(_0x49fc91._0x2aa7a0,0x209,_0x49fc91._0x2ee342,_0x49fc91._0x38aa20);function _0x141937(_0x4af5bb,_0x1a59b8,_0x18ad9c,_0x406059){return _0x57b9de(_0x4af5bb-0x112,_0x18ad9c,_0x4af5bb- -_0x436852._0x5d5fa4,_0x406059-_0x436852._0x5c27d9);}const _0x4f7f85=_0x4056f6?[_0x415deb[_0x3f6475(-_0x49fc91._0x42b3bc,0x104,0x44,_0x49fc91._0x575712)](process['env'][_0x141937(_0x49fc91._0x4e8808,0x31f,0x263,0x207)]||'',_0x141937(_0x49fc91._0x4d3ab4,0x25f,_0x49fc91._0x2dda66,0x40b),'WinGet',_0x3f6475(0x22b,_0x49fc91._0x567e06,0x1ba,0x217)),_0x415deb[_0x141937(0x204,0x33b,0x291,_0x49fc91._0x4797ca)](process[_0x3f6475(0x26,_0x49fc91._0xb8192d,0xa7,0xc7)][_0x3f6475(_0x49fc91._0x1dc9da,_0x49fc91._0x3ba9f7,_0x49fc91._0x5412e9,0x134)]||'',_0x141937(_0x49fc91._0x431612,_0x49fc91._0x3ddf97,0x220,_0x49fc91._0x536a2d),'rg.exe'),_0x415deb[_0x141937(0x204,0x25d,0x2e3,0x21e)](process['env']['ProgramFiles(x86)']||'',_0x3f6475(0x1bb,0x175,0x1b3,0x2a2),_0x3f6475(_0x49fc91._0x4d1ab8,-_0x49fc91._0x36acbd,0x6f,_0x49fc91._0x58ef1c))]:[_0x3f6475(-0xea,-0x2b,-0x56,-_0x49fc91._0x43f24f),_0x3f6475(0x3f,0x129,0x132,0x261),_0x3f6475(0x1d0,0x240,_0x49fc91._0x526349,_0x49fc91._0x48e1ef),_0x141937(_0x49fc91._0x2478ca,_0x49fc91._0x151bf1,0x3c0,0x31a)];for(const _0x112e4f of _0x4f7f85){if(existsSync(_0x112e4f))return _0x112e4f;}function _0x3f6475(_0x48d56c,_0x402091,_0x321d33,_0x287759){return _0x57b9de(_0x48d56c-0x4d,_0x402091,_0x321d33- -0x35b,_0x287759-_0x2a56d1._0x263503);}try{const _0x43bb4c=_0x4056f6?_0x141937(_0x49fc91._0x4eb134,_0x49fc91._0x197e30,0x1cf,_0x49fc91._0x5b6a3f):_0x3f6475(0x10f,_0x49fc91._0x498d0c,_0x49fc91._0x548adb,-0x6e),_0x34bc43=execSync(_0x43bb4c,{'encoding':_0x141937(0x31b,0x413,0x447,_0x49fc91._0x22c205),'stdio':[_0x3f6475(_0x49fc91._0x46bb7b,_0x49fc91._0x13267c,0x212,0xd6),_0x141937(0x3d2,_0x49fc91._0x239834,0x4bb,_0x49fc91._0x2e6210),_0x141937(_0x49fc91._0x484ee4,_0x49fc91._0xbdbcf,0x2fc,0x181)]})[_0x3f6475(_0x49fc91._0x1cc082,0x77,_0x49fc91._0xe30e3c,-0xb1)]()[_0x3f6475(0x2f0,0x1b1,0x1bf,0x1d9)](/\r?\n/)[0x0];if(_0x34bc43&&existsSync(_0x34bc43))return _0x34bc43;}catch{return null;}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0x410a43&&existsSync(_0x410a43))return cachedRgPath=_0x410a43,_0x410a43;const _0x1c391a=findSystemRipgrep();if(!_0x1c391a)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x1c391a,_0x1c391a;}async function*files(_0x387d02){const _0x2ffc5b={_0x1ae3a4:0x8,_0x2cf09e:0x69,_0x4bee2c:0x70,_0x24c8e2:0x4af,_0x34d615:0x493,_0x50798e:0x46c,_0x2cd1a0:0x525,_0x453557:0x1b,_0x594435:0x152,_0x42f4de:0x171,_0x194946:0x7f,_0x3ad897:0x196,_0x30bb1e:0x14a,_0x56a045:0xcc,_0x2b4b5f:0x70,_0x3f1575:0x600,_0x252afc:0x507,_0x47c3af:0x58b,_0x331b67:0x50c,_0x127efd:0x48c,_0x3d3127:0x362,_0x32f940:0x1bf,_0xb7fb0b:0x227,_0x3f64d1:0x1a5,_0x23ed9e:0x1c3,_0x339ff2:0xfc,_0x16b7ae:0x100,_0x4628b6:0x1aa,_0x435d6d:0x31e,_0x4a6e60:0x1d4,_0x1876d2:0x298,_0x96b9ca:0x37a,_0xca1458:0x47f,_0x2800ef:0x1a,_0x4f8099:0x69,_0x396259:0x1b},_0x28cfcd={_0x27f587:0x1a4,_0x658dfc:0x1cc},_0x37e6bc={_0x32a926:0x346},_0x51e352=await filepath();function _0x44d2f2(_0x150a85,_0x44420c,_0x430b3a,_0x36628c){return _0x57b9de(_0x150a85-0x9a,_0x150a85,_0x430b3a- -_0x37e6bc._0x32a926,_0x36628c-0x1ef);}const _0x474733=await _0x449c50(_0x387d02[_0x44d2f2(-0xaf,0x4a,0x4b,_0x2ffc5b._0x1ae3a4)])['catch'](()=>null);if(!_0x474733?.['isDirectory']())throw Object['assign'](new Error(_0x44d2f2(-_0x2ffc5b._0x2cf09e,0x17c,0x88,_0x2ffc5b._0x4bee2c)+_0x387d02[_0x2254d6(0x5fb,_0x2ffc5b._0x24c8e2,_0x2ffc5b._0x34d615,_0x2ffc5b._0x50798e)]+'\x27'),{'code':_0x2254d6(0x62f,_0x2ffc5b._0x2cd1a0,0x434,0x423)});const _0x55f10f=['--files',_0x44d2f2(-_0x2ffc5b._0x453557,_0x2ffc5b._0x594435,0x5c,_0x2ffc5b._0x42f4de),_0x44d2f2(_0x2ffc5b._0x194946,_0x2ffc5b._0x3ad897,_0x2ffc5b._0x30bb1e,0xaf),'--glob=!.git/*'];for(const _0x2f627f of _0x387d02[_0x44d2f2(-_0x2ffc5b._0x56a045,0xc7,-0x56,-_0x2ffc5b._0x2b4b5f)]??[]){_0x55f10f['push'](_0x2254d6(_0x2ffc5b._0x3f1575,_0x2ffc5b._0x252afc,_0x2ffc5b._0x47c3af,0x3f4)+_0x2f627f);}const _0x23cade=_0x2f0fb2(_0x51e352,_0x55f10f,{'cwd':_0x387d02['cwd'],'stdio':[_0x2254d6(_0x2ffc5b._0x331b67,_0x2ffc5b._0x127efd,0x55b,0x4e8),_0x44d2f2(_0x2ffc5b._0x3d3127,_0x2ffc5b._0x32f940,_0x2ffc5b._0xb7fb0b,0x29e),_0x44d2f2(_0x2ffc5b._0x3f64d1,_0x2ffc5b._0x23ed9e,0x227,0x127)]});let _0x35c015='';function _0x2254d6(_0x457a57,_0x1d6496,_0x1382f1,_0x4651a0){return _0x23b1c2(_0x457a57-_0x28cfcd._0x27f587,_0x457a57,_0x1d6496-_0x28cfcd._0x658dfc,_0x4651a0-0xd9);}for await(const _0x2e3c25 of _0x23cade[_0x44d2f2(0x106,-0x44,_0x2ffc5b._0x339ff2,0x1f0)]??[]){_0x35c015+=_0x2e3c25[_0x44d2f2(_0x2ffc5b._0x16b7ae,0x280,_0x2ffc5b._0x4628b6,0x1f1)]();const _0x42d079=_0x35c015[_0x44d2f2(_0x2ffc5b._0x435d6d,0xb3,_0x2ffc5b._0x4a6e60,_0x2ffc5b._0x1876d2)](/\r?\n/);_0x35c015=_0x42d079['pop']()??'';for(const _0x2e1612 of _0x42d079){if(_0x2e1612[_0x44d2f2(0x2c5,0xea,0x211,0x358)]>0x0)yield _0x2e1612;}}_0x35c015[_0x2254d6(_0x2ffc5b._0x96b9ca,_0x2ffc5b._0xca1458,0x470,0x55d)]()['length']>0x0&&(yield _0x35c015[_0x44d2f2(-_0x2ffc5b._0x2800ef,-_0x2ffc5b._0x4f8099,_0x2ffc5b._0x396259,0x25)]());}function parseMatchLine(_0x21197e,_0x237e08){const _0x1d7acf={_0x117a02:0x36e,_0x2e240a:0x4b8,_0x3a60f4:0x4a5,_0x3a1af2:0x2df,_0x6a8f3f:0x2dd,_0x1db332:0x2ad,_0x46ee7b:0x296,_0x4656d4:0x235,_0x53cf96:0x189,_0x30646f:0x1cb,_0x4f834d:0x284,_0x1af63d:0x22d,_0x204729:0x1ae,_0x403dbb:0x30b,_0x245204:0xc,_0xfcd812:0x1bf,_0x17c971:0x476,_0x4dfbbc:0x33d,_0x4f4c01:0x42e,_0xd063d6:0x3ea},_0x46c2d9={_0x5e67bb:0x158,_0x4b84fc:0x4c,_0x3f3030:0x133},_0x410005={_0x303747:0x1c0,_0xe65cdb:0x157};function _0x4accda(_0x561db4,_0x16aa1e,_0x497022,_0x4e4066){return _0x23b1c2(_0x561db4-0x119,_0x4e4066,_0x561db4- -_0x410005._0x303747,_0x4e4066-_0x410005._0xe65cdb);}if(!_0x21197e||_0x21197e==='--')return null;function _0x5b2d02(_0x1cd304,_0x3f2f2a,_0x14bcb6,_0x316887){return _0x23b1c2(_0x1cd304-_0x46c2d9._0x5e67bb,_0x316887,_0x3f2f2a-_0x46c2d9._0x4b84fc,_0x316887-_0x46c2d9._0x3f3030);}const _0x5abd3e=_0x21197e[_0x5b2d02(_0x1d7acf._0x117a02,_0x1d7acf._0x2e240a,0x505,_0x1d7acf._0x3a60f4)]('|');if(_0x237e08&&_0x5abd3e[_0x4accda(0x2e9,0x3d8,_0x1d7acf._0x3a1af2,0x350)]>=0x4&&Number['isFinite'](Number[_0x5b2d02(_0x1d7acf._0x6a8f3f,_0x1d7acf._0x1db332,0x363,0x3fd)](_0x5abd3e[0x2]??'',0xa))){const _0x34fd9c=Number[_0x5b2d02(_0x1d7acf._0x46ee7b,0x2ad,0x2ec,_0x1d7acf._0x4656d4)](_0x5abd3e[0x1]??'',0xa);if(!Number[_0x4accda(0x90,0xbf,-0x5c,_0x1d7acf._0x53cf96)](_0x34fd9c)||!_0x5abd3e[0x0])return null;return{'filePath':_0x5abd3e[0x0],'lineNum':_0x34fd9c,'lineText':_0x5abd3e[_0x4accda(0x1d2,0x1bc,0x219,_0x1d7acf._0x30646f)](0x3)[_0x5b2d02(_0x1d7acf._0x4f834d,0x33d,0x36a,_0x1d7acf._0x1af63d)]('|')};}if(_0x5abd3e['length']>=0x3){const _0x1c0098=Number[_0x5b2d02(_0x1d7acf._0x204729,0x2ad,_0x1d7acf._0x403dbb,0x285)](_0x5abd3e[0x1]??'',0xa);if(!Number[_0x4accda(0x90,-_0x1d7acf._0x245204,0xfd,_0x1d7acf._0xfcd812)](_0x1c0098)||!_0x5abd3e[0x0])return null;return{'filePath':_0x5abd3e[0x0],'lineNum':_0x1c0098,'lineText':_0x5abd3e[_0x5b2d02(0x3a3,0x3de,0x344,_0x1d7acf._0x17c971)](0x2)[_0x5b2d02(0x3ee,_0x1d7acf._0x4dfbbc,_0x1d7acf._0x4f4c01,_0x1d7acf._0xd063d6)]('|'),..._0x237e08?{'isContext':!![]}:{}};}return null;}async function search(_0x4ab5d5){const _0x173245={_0x2669ea:0x160,_0x48a433:0xb0,_0x54b13a:0x5a,_0x11d853:0x2,_0x49dcf1:0x135,_0x2c71d7:0xcd,_0x3b1a22:0x0,_0x1b9eba:0xfd,_0x1d8362:0x1af,_0x15f1dd:0x18d,_0x58022b:0x13f,_0x5dd02f:0x248,_0x952897:0x1f3,_0x48ab8e:0x18b,_0x37fa34:0x190,_0x21f94c:0xd1,_0x164333:0x80,_0x25e806:0x55,_0x1e6ff9:0xd9,_0x5842ea:0x1e8,_0x26a919:0x1f2,_0x380788:0x9,_0x24244f:0x166,_0x29c7bc:0x397,_0x91b81:0x306,_0x49bdbd:0x1fc,_0x4b28f4:0x33e,_0x298fe8:0x1e1,_0x84c772:0xf,_0x201f22:0x17d,_0x49e685:0x10c,_0x44f0e6:0xf0,_0x3330af:0xa9,_0x132b5d:0x48,_0x28cd7f:0x154,_0x29890e:0x1bb,_0x5dad89:0x2a5,_0x59de7b:0x2a6,_0x59584a:0x320,_0x463f4a:0x335,_0x2a1085:0x76},_0x4871b4={_0x43c221:0x3d9,_0x292e21:0x3a8,_0x1f08a8:0xbf,_0x4386a9:0xcf,_0x18787d:0x674,_0x1ac2f6:0x633,_0x2bce97:0x5b0,_0x4a87c5:0x5b5,_0x5bf806:0x506,_0x56260d:0x690,_0xe03837:0x5a3,_0x1e565d:0x67c,_0x2ec541:0x5f4,_0x1d1fe9:0x23e,_0x5ca3ab:0x382,_0xa41ff3:0x320,_0x22247a:0x1a2,_0x252fed:0xe5,_0x1ec18e:0x185,_0x5113ec:0x1dc},_0x50932e={_0x56509f:0x28f,_0x228f51:0x29,_0x491e76:0xf7},_0x2b9607={_0x3d65e8:0xdd,_0x44f22f:0xf5,_0x2a078d:0x135},_0x1b13d0={_0x21eb09:0x359},_0x2b3fb2={_0x36c683:0x12d},_0x3d0fd2=await filepath();if(_0x4ab5d5['file']){const _0x3c2b26=await _0x449c50(_0x4ab5d5[_0x4fa8f1(_0x173245._0x2669ea,0x2a1,0x275,_0x173245._0x48a433)])[_0x3c25a8(0x11c,0x1b5,0x202,0x72)](()=>null);if(!_0x3c2b26?.[_0x3c25a8(0xed,0x1ec,_0x173245._0x54b13a,_0x173245._0x11d853)]())throw Object[_0x4fa8f1(-0x90,-_0x173245._0x49dcf1,-0x76,-0xdd)](new Error(_0x4fa8f1(-0x38,_0x173245._0x2c71d7,0xb7,-0x13a)+_0x4ab5d5['file']+'\x27'),{'code':_0x4fa8f1(_0x173245._0x3b1a22,0xdc,-_0x173245._0x1b9eba,0x77)});}else{const _0x3fcf40=await _0x449c50(_0x4ab5d5[_0x3c25a8(0x14a,0x17b,0x276,0x196)])[_0x3c25a8(0x11c,_0x173245._0x1d8362,0xe5,_0x173245._0x15f1dd)](()=>null);if(!_0x3fcf40?.[_0x4fa8f1(-0x2,-_0x173245._0x58022b,-0x85,0x1a)]())throw Object[_0x3c25a8(0x130,_0x173245._0x5dd02f,-0x21,_0x173245._0x952897)](new Error(_0x3c25a8(0x187,0x265,_0x173245._0x48ab8e,_0x173245._0x37fa34)+_0x4ab5d5[_0x3c25a8(0x14a,_0x173245._0x21f94c,0x126,_0x173245._0x164333)]+'\x27'),{'code':'ENOENT'});}const _0x384067=['-nH','--field-match-separator=|',_0x3c25a8(0xf0,0xc0,-_0x173245._0x25e806,0x1dc),_0x4fa8f1(_0x173245._0x1e6ff9,_0x173245._0x5842ea,_0x173245._0x26a919,-_0x173245._0x380788),_0x4ab5d5[_0x4fa8f1(0x158,0x1de,_0x173245._0x24244f,0x97)]];function _0x3c25a8(_0x3d3159,_0x3539be,_0x3bd4f8,_0x11c398){return _0x57b9de(_0x3d3159-0x135,_0x11c398,_0x3d3159- -0x247,_0x11c398-_0x2b3fb2._0x36c683);}const _0x54b4d1=typeof _0x4ab5d5[_0x3c25a8(0x292,_0x173245._0x29c7bc,0x33c,_0x173245._0x91b81)]===_0x4fa8f1(0x116,0x260,0x9e,0x4)&&_0x4ab5d5[_0x3c25a8(0x292,0x218,0x3a7,0x306)]>0x0;_0x54b4d1&&_0x384067[_0x3c25a8(_0x173245._0x49bdbd,_0x173245._0x4b28f4,_0x173245._0x298fe8,0x22c)]('-C',String(_0x4ab5d5['context']),_0x4fa8f1(-_0x173245._0x84c772,-0x13b,0xb,0x83));function _0x4fa8f1(_0x1914aa,_0x59e580,_0x515683,_0xd55da6){return _0x23b1c2(_0x1914aa-0x90,_0x59e580,_0x1914aa- -_0x1b13d0._0x21eb09,_0xd55da6-0x38);}return _0x4ab5d5[_0x3c25a8(0xa9,0xcf,0x196,_0x173245._0x201f22)]&&!_0x4ab5d5['file']&&_0x384067[_0x3c25a8(0x1fc,_0x173245._0x49e685,0x18a,_0x173245._0x44f0e6)]('--glob',_0x4ab5d5[_0x3c25a8(_0x173245._0x3330af,-_0x173245._0x132b5d,_0x173245._0x28cd7f,_0x173245._0x29890e)]),_0x384067[_0x3c25a8(0x1fc,0x163,_0x173245._0x5dad89,_0x173245._0x59de7b)](_0x4ab5d5[_0x3c25a8(_0x173245._0x59584a,_0x173245._0x463f4a,0x333,_0x173245._0x298fe8)]??_0x4ab5d5[_0x4fa8f1(-_0x173245._0x2a1085,-0x6c,-0x1bc,-0x24)]),await new Promise((_0x5bd18e,_0x35d264)=>{const _0x359639={_0x380136:0x52e,_0x2b21da:0x27f,_0x804d2d:0x372},_0x5564b0={_0x5759a1:0x107},_0x2c5eb3={_0x3971a2:0x20c},_0x3f45c1=_0x2f0fb2(_0x3d0fd2,_0x384067,{'cwd':_0x4ab5d5[_0x18f628(_0x4871b4._0x43c221,0x366,0x300,_0x4871b4._0x292e21)],'stdio':[_0x2aee43(0x44,-_0x4871b4._0x1f08a8,-0xef,_0x4871b4._0x4386a9),_0x18f628(0x5b5,0x5f0,_0x4871b4._0x18787d,_0x4871b4._0x1ac2f6),'pipe']});let _0x240060='',_0x333e37='';_0x3f45c1['stdout']?.['on'](_0x18f628(_0x4871b4._0x2bce97,_0x4871b4._0x4a87c5,_0x4871b4._0x5bf806,_0x4871b4._0x56260d),_0x11e87e=>{_0x240060+=_0x11e87e['toString']();}),_0x3f45c1[_0x18f628(_0x4871b4._0xe03837,_0x4871b4._0x1e565d,_0x4871b4._0x2ec541,0x4d3)]?.['on'](_0x2aee43(_0x4871b4._0x1d1fe9,0x23f,_0x4871b4._0x5ca3ab,_0x4871b4._0xa41ff3),_0x512e3b=>{_0x333e37+=_0x512e3b['toString']();});function _0x2aee43(_0x58c1ff,_0x36681c,_0x4e1fdb,_0x4ade04){return _0x4fa8f1(_0x58c1ff-_0x2b9607._0x3d65e8,_0x4e1fdb,_0x4e1fdb-_0x2b9607._0x44f22f,_0x4ade04-_0x2b9607._0x2a078d);}_0x3f45c1['on'](_0x2aee43(0x107,-0x34,_0x4871b4._0x22247a,_0x4871b4._0x252fed),_0x126267=>{if(_0x126267===0x1&&_0x240060===''){_0x5bd18e([]);return;}if(_0x126267!==0x0&&_0x126267!==0x1){_0x35d264(new Error(_0x245f95(0x54b,_0x359639._0x380136,0x44f,0x677)+_0x333e37));return;}const _0x56434c=_0x4ab5d5['limit']??0x64;function _0x18ce9a(_0xf795a4,_0x250674,_0x1d297b,_0x224184){return _0x18f628(_0x1d297b- -_0x2c5eb3._0x3971a2,_0x250674-0xf0,_0x1d297b-0x20,_0xf795a4);}const _0x4020f8=[];function _0x245f95(_0x4196df,_0x322714,_0x246376,_0x3ddebe){return _0x2aee43(_0x4196df-0x37d,_0x322714-_0x5564b0._0x5759a1,_0x3ddebe,_0x3ddebe-0x1d7);}for(const _0x1db71e of _0x240060['split'](/\r?\n/)){if(_0x4020f8['length']>=_0x56434c)break;const _0x3d160d=parseMatchLine(_0x1db71e,_0x54b4d1);if(_0x3d160d)_0x4020f8[_0x18ce9a(0x150,0x203,_0x359639._0x2b21da,_0x359639._0x804d2d)](_0x3d160d);}_0x5bd18e(_0x4020f8);});function _0x18f628(_0x345687,_0x227dfb,_0x105452,_0x490ea8){return _0x3c25a8(_0x345687-_0x50932e._0x56509f,_0x227dfb-_0x50932e._0x228f51,_0x105452-_0x50932e._0x491e76,_0x490ea8);}_0x3f45c1['on'](_0x2aee43(_0x4871b4._0x1ec18e,0x2c2,0x221,_0x4871b4._0x5113ec),_0x35d264);});}function createGlobTool(_0x1d8e72={}){const _0x184b24={_0x184501:0x430,_0x50d992:0x505,_0xef75b1:0x2be,_0x14699e:0x382,_0x154212:0x4d5,_0x42c8b2:0x296,_0x5cab2e:0x766,_0x27a801:0x7e9,_0x3f1f13:0x8cf,_0x8db879:0x71c,_0x929cb7:0x881,_0x2aab01:0x326,_0x4999af:0x4d0,_0x4a8969:0x3be,_0x3753ee:0x324,_0x5e11d8:0x46a},_0x347210={_0x39d5ae:0x22c,_0x5e4efd:0x25c,_0x1d4c13:0x181,_0x18bdb8:0x5e,_0x35bc8b:0x193,_0x5ed528:0xca,_0x50398a:0x254,_0x1947d6:0x1cc,_0x16ceb9:0x15e,_0x529506:0x217,_0x5f5b27:0xdf,_0x797911:0x708,_0x51af39:0x847,_0x54e1aa:0x228,_0x1da1bd:0x1a6,_0x1738b6:0x329,_0x55af1d:0xfa,_0x101113:0x17e,_0x13bbeb:0xb4,_0x1631c4:0xd7,_0x1ef839:0xaf,_0x504883:0x6a,_0x57296f:0x3fa,_0x1c75aa:0x485,_0x123043:0x2f5,_0x1f0bec:0x25c,_0x2c06fa:0x32f,_0x4b4103:0x263,_0x2ccae7:0x47,_0x13d1a1:0x235,_0x7b91df:0x140,_0x2bd7f6:0x50f,_0x5674ec:0x613,_0x96a096:0x531,_0x9dc739:0x7f0,_0x1a9e16:0x6e3,_0x3ebcb5:0x70c,_0x2a62e2:0x5df,_0x527668:0x706,_0xbeb2bc:0x71c,_0x44d762:0x53b,_0xe67712:0xdd,_0x72e260:0x9f,_0x2b32f5:0x755,_0x1cd904:0x6c,_0x4dc019:0x135,_0x2c0379:0x34c},_0x2fcb49={_0x4bfcc8:0x83,_0x3d178a:0x2f4,_0x8dc73:0x17a},_0xba2406={_0x1ad3d5:0x2b},_0x385c3e={_0x2f8ace:0x49,_0x296197:0x293,_0x9e2a3:0x37},_0x582b9d={_0x24d3a6:0x1ef},_0x19dd8a=_0x1ac8bd[_0x44dc22(_0x184b24._0x184501,0x3dc,0x310,_0x184b24._0x50d992)](_0x1d8e72['defaultCwd']??process[_0x44dc22(_0x184b24._0xef75b1,_0x184b24._0x14699e,_0x184b24._0x154212,_0x184b24._0x42c8b2)]());function _0x44dc22(_0x164416,_0x57744b,_0x2d1bf7,_0x491087){return _0x23b1c2(_0x164416-0x1bc,_0x491087,_0x57744b-0x9f,_0x491087-_0x582b9d._0x24d3a6);}const _0x44a736=(_0x1d8e72[_0x598f3a(0x65e,_0x184b24._0x5cab2e,0x624,_0x184b24._0x27a801)]??[])[_0x598f3a(_0x184b24._0x3f1f13,0x7c7,_0x184b24._0x8db879,_0x184b24._0x929cb7)](_0x425fa9=>_0x1ac8bd[_0x598f3a(0x5c5,0x67e,0x5c3,0x62d)](_0x425fa9)),_0x49a6bc=_0x1d8e72['limit']??0x64,_0x5afc4e=_0x1d8e72[_0x44dc22(0x481,0x404,0x403,_0x184b24._0x2aab01)]??_0x44dc22(_0x184b24._0x4999af,_0x184b24._0x4a8969,0x2be,0x495);function _0x598f3a(_0x34f929,_0x24a893,_0x3debf3,_0x804018){return _0x57b9de(_0x34f929-_0x385c3e._0x2f8ace,_0x34f929,_0x24a893-_0x385c3e._0x296197,_0x804018-_0x385c3e._0x9e2a3);}return defineTool({'name':_0x5afc4e,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':'object','properties':{'pattern':{'type':'string'},'path':{'type':_0x44dc22(0x2b7,_0x184b24._0x3753ee,0x23e,_0x184b24._0x5e11d8)},'limit':{'type':'number'}},'required':[_0x44dc22(0x649,0x550,0x567,0x553)]},async *'execute'(_0x3586ca){function _0x2b03c1(_0x5326fd,_0x1856a3,_0x3f5199,_0x236871){return _0x598f3a(_0x5326fd,_0x3f5199- -0xe4,_0x3f5199-_0xba2406._0x1ad3d5,_0x236871-0xd8);}if(_0x3586ca[_0x3ab088(_0x347210._0x39d5ae,_0x347210._0x5e4efd,0x124,0x282)][_0x3ab088(_0x347210._0x1d4c13,_0x347210._0x18bdb8,_0x347210._0x35bc8b,-_0x347210._0x5ed528)]()[_0x3ab088(0x213,_0x347210._0x50398a,0x179,0x20d)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x289986=resolveAllowedPath(_0x19dd8a,_0x44a736,_0x3586ca[_0x3ab088(_0x347210._0x1947d6,0x228,_0x347210._0x16ceb9,_0x347210._0x529506)]??'.'),_0x47b6cc=await _0x534a77(_0x289986)[_0x3ab088(-_0x347210._0x5f5b27,0x60,0xbb,0x10a)](()=>null);if(!_0x47b6cc?.['isDirectory']())throw new ToolExecutionError(_0x2b03c1(0x6b5,0x6eb,_0x347210._0x797911,_0x347210._0x51af39)+(_0x3586ca[_0x3ab088(0x200,_0x347210._0x54e1aa,_0x347210._0x1da1bd,0x21e)]??'.'),{'path':_0x3586ca[_0x3ab088(_0x347210._0x1738b6,_0x347210._0x54e1aa,_0x347210._0x55af1d,0x225)]??'.'});const _0x590185=_0x3586ca[_0x3ab088(-0x91,0x89,_0x347210._0x101113,_0x347210._0x13bbeb)]??_0x49a6bc;function _0x3ab088(_0x1b2a25,_0x2f7df3,_0x4b174d,_0x27fa16){return _0x44dc22(_0x1b2a25-_0x2fcb49._0x4bfcc8,_0x2f7df3- -_0x2fcb49._0x3d178a,_0x4b174d-_0x2fcb49._0x8dc73,_0x1b2a25);}const _0x1fcf0a=Math[_0x3ab088(_0x347210._0x1631c4,_0x347210._0x1ef839,0xcc,-_0x347210._0x504883)](0x1,Math[_0x2b03c1(_0x347210._0x57296f,0x583,0x49d,_0x347210._0x1c75aa)](_0x590185)),_0x24cdae=[];let _0x339083=![];for await(const _0x1adacd of files({'cwd':_0x289986,'glob':[_0x3586ca[_0x3ab088(_0x347210._0x123043,_0x347210._0x1f0bec,0x19f,0x217)]]})){if(_0x24cdae[_0x3ab088(_0x347210._0x2c06fa,0x254,0x14c,_0x347210._0x4b4103)]>=_0x1fcf0a){_0x339083=!![];break;}const _0x297a39=await _0x534a77(_0x1ac8bd[_0x3ab088(-_0x347210._0x2ccae7,0x9c,0x133,-0x72)](_0x289986,_0x1adacd))[_0x3ab088(-0x8f,0x60,0x36,0xa6)](()=>null);_0x24cdae[_0x3ab088(_0x347210._0x13d1a1,_0x347210._0x7b91df,0x244,0x12f)]({'path':_0x1adacd,'mtime':_0x297a39?.[_0x2b03c1(_0x347210._0x2bd7f6,0x6af,_0x347210._0x5674ec,_0x347210._0x96a096)]??0x0});}_0x24cdae['sort']((_0x40f6f9,_0x3e6a11)=>_0x3e6a11['mtime']-_0x40f6f9['mtime']);const _0x151f42=_0x24cdae[_0x2b03c1(_0x347210._0x9dc739,0x7d3,_0x347210._0x1a9e16,_0x347210._0x3ebcb5)](_0x4d99e4=>_0x4d99e4['path']),_0x131aa0=_0x151f42[_0x2b03c1(_0x347210._0x2a62e2,0x807,_0x347210._0x527668,_0x347210._0xbeb2bc)]===0x0?_0x2b03c1(0x66c,_0x347210._0x44d762,0x5a2,0x6f0)+_0x3586ca['pattern']:''+_0x151f42[_0x3ab088(0xdf,0x9c,_0x347210._0xe67712,0x1d5)]('\x0a')+(_0x339083?_0x3ab088(-0x3,0x92,0x25,-_0x347210._0x72e260):'');return yield createToolOutput(_0x131aa0,{'pattern':_0x3586ca[_0x2b03c1(0x83d,0x719,0x70e,_0x347210._0x2b32f5)],'searchPath':_0x1ac8bd[_0x3ab088(0x1a3,0x5c,-_0x347210._0x1cd904,0x75)](_0x19dd8a,_0x289986)||'.','matches':_0x151f42,'count':_0x151f42[_0x3ab088(0x159,0x254,_0x347210._0x4dc019,_0x347210._0x2c0379)],'truncated':_0x339083}),void 0x0;}});}import{stat as _0x55b491}from'fs/promises';import*as _0x529715 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x377c37={}){const _0x1e4b86={_0x3f3eeb:0x7c,_0x4cde2e:0xa1,_0x176030:0x166,_0x1b22b0:0x37,_0x15da0e:0x4a,_0x23d5c4:0xbc,_0x1a5f86:0x89,_0x5b2b43:0x19,_0x97530b:0xb9,_0x26bc0f:0x144,_0x81b8c0:0x11a,_0x3f7824:0x163,_0x481ca5:0x43,_0x59854e:0x8e,_0x1ea5a1:0x6d,_0x461956:0x448,_0x5d108c:0x2fc,_0x4c6c11:0x470,_0x2b42de:0x23b,_0x58e241:0x30d,_0x3c68b9:0x15c,_0x59d2f2:0x21c,_0x261e48:0x1ce,_0x18c457:0x21c,_0x48e5da:0x2f6,_0xf84b3e:0xbb,_0x36c338:0x103,_0x1f3c2f:0x93,_0x39c59e:0x404},_0x343f95={_0x4fc362:0x5ff,_0x29b2c6:0x57a,_0x498f0d:0x5f3,_0x17e079:0x632,_0x41e469:0x1d4,_0x3c0e79:0x127,_0x2fae78:0x4,_0x33ed89:0x518,_0x13ce91:0x59e,_0x21c356:0x669,_0x377ce0:0x737,_0x112295:0x69e,_0x5bad51:0x16d,_0x27891d:0x29d,_0x2c4c73:0x26e,_0x2f490f:0x23e,_0x3d675c:0x725,_0x11fa80:0x6f7,_0xb2e8cf:0x714,_0x388c81:0x709,_0x33041b:0x5a,_0x546d04:0x158,_0x59067b:0x39,_0x2843a7:0x5f7,_0xf86ef6:0x2a,_0x2c5fd5:0x4e,_0x4b2fab:0x227,_0x1428bf:0x2a4,_0x50f411:0x235,_0xc6e9d6:0x305,_0x478c1b:0x5d,_0xdf0c65:0x8b,_0x1866ec:0x526,_0x4af047:0x5b3,_0xa24fe4:0x64e,_0x4d057a:0x637,_0x49e23a:0x73,_0x56b42f:0x104,_0x5a1f36:0x16e,_0xe2bf99:0x682,_0x5030ed:0x5d4,_0x21376d:0x72,_0x2430a9:0x15a,_0x680a01:0x6a1,_0x3cd6d8:0x674,_0x1821a6:0x24,_0x3a7070:0x13f,_0x171d21:0x115,_0x457c2c:0x5e,_0x2018bb:0x66,_0x3db0bd:0x103,_0x42bac7:0xc0,_0x40af2d:0x125,_0x445b13:0x746,_0x13915c:0x76a,_0x14d370:0x63e,_0x538e8b:0x640,_0x3ffe6b:0x567,_0x3cb2ec:0x73b,_0x115cd4:0x586,_0x539959:0xd5,_0x17579c:0x2c,_0x5b722a:0x1b,_0xd4e21f:0x811,_0x3dc45e:0x78a,_0x552f1f:0x787,_0x4dd43b:0x555,_0x46ad2a:0x659,_0x467f8a:0x5af,_0x33a7fd:0xb9,_0x9fd3d2:0x84b,_0x15dae4:0x787,_0x1bcdaa:0x6d9,_0x66168a:0x5e5,_0x1ffe93:0x571,_0x15d29a:0x4a6,_0x5c88a9:0x4f4,_0x407ff6:0x568,_0x104e2d:0x261,_0x59a359:0x158,_0x4dd71e:0x6e6,_0x443f2e:0x5b0,_0x370c88:0x4fe,_0x2ac2db:0x633},_0x5861f7={_0x29d113:0x6b,_0x32ada4:0x117};function _0x5f5cc0(_0x4c35a1,_0xb9ba61,_0x268ca1,_0x5d8c9d){return _0x23b1c2(_0x4c35a1-0xc9,_0x5d8c9d,_0x268ca1- -0x36c,_0x5d8c9d-0x12);}const _0x4e56d5=_0x529715[_0x5f5cc0(-0xc6,0x7a,-0x2f,-_0x1e4b86._0x3f3eeb)](_0x377c37[_0x5f5cc0(-_0x1e4b86._0x4cde2e,-_0x1e4b86._0x176030,-_0x1e4b86._0x1b22b0,_0x1e4b86._0x15da0e)]??process[_0x5f5cc0(0x1c,_0x1e4b86._0x23d5c4,-_0x1e4b86._0x1a5f86,-_0x1e4b86._0x5b2b43)]()),_0x55c04c=(_0x377c37[_0x5f5cc0(0x8a,0x10e,_0x1e4b86._0x97530b,0x143)]??[])[_0x5f5cc0(0x41,_0x1e4b86._0x26bc0f,_0x1e4b86._0x81b8c0,-0x23)](_0x299cc8=>_0x529715['resolve'](_0x299cc8)),_0x59a345=_0x377c37[_0x5f5cc0(-_0x1e4b86._0x3f7824,-_0x1e4b86._0x481ca5,-_0x1e4b86._0x59854e,_0x1e4b86._0x1ea5a1)]??0x64;function _0x129b90(_0x474695,_0x49010f,_0x44dc1e,_0x4480c8){return _0x57b9de(_0x474695-_0x5861f7._0x29d113,_0x49010f,_0x44dc1e- -_0x5861f7._0x32ada4,_0x4480c8-0x115);}const _0xac5372=_0x377c37[_0x129b90(0x22f,_0x1e4b86._0x461956,_0x1e4b86._0x5d108c,0x1c8)]??'Grep';return defineTool({'name':_0xac5372,'description':_0x129b90(_0x1e4b86._0x4c6c11,_0x1e4b86._0x2b42de,0x378,0x256),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x129b90(_0x1e4b86._0x58e241,_0x1e4b86._0x3c68b9,_0x1e4b86._0x59d2f2,0x12f)},'path':{'type':'string'},'include':{'type':_0x129b90(0x241,_0x1e4b86._0x261e48,_0x1e4b86._0x18c457,_0x1e4b86._0x48e5da)},'limit':{'type':_0x5f5cc0(_0x1e4b86._0xf84b3e,0x167,_0x1e4b86._0x36c338,_0x1e4b86._0x1f3c2f)},'context':{'type':_0x5f5cc0(0xb6,0xae,_0x1e4b86._0x36c338,0x246)}},'required':[_0x129b90(_0x1e4b86._0x39c59e,0x4c3,0x448,0x4d5)]},async *'execute'(_0x29c7ff){const _0x5dca56={_0x138be3:0x63,_0x5ca67f:0x112},_0x1f58ec={_0x1bab3c:0x192,_0xfcce70:0x1c4};if(_0x29c7ff['pattern'][_0x96b5eb(0x578,_0x343f95._0x4fc362,_0x343f95._0x29b2c6,_0x343f95._0x498f0d)]()['length']===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x383b6f=resolveAllowedPath(_0x4e56d5,_0x55c04c,_0x29c7ff[_0x96b5eb(0x6ac,_0x343f95._0x17e079,0x744,0x6a1)]??'.'),_0xb7174f=await _0x55b491(_0x383b6f)['catch'](()=>null);function _0x96b5eb(_0x3cd4f4,_0x354278,_0x3ab474,_0x3eb4b3){return _0x5f5cc0(_0x3cd4f4-_0x1f58ec._0x1bab3c,_0x354278-_0x1f58ec._0xfcce70,_0x3ab474-0x633,_0x3eb4b3);}const _0x47a60f=_0xb7174f?.[_0x12a914(-0x16c,-0x1d9,-0x1f8,-0x27d)]()??![],_0x315821=_0xb7174f?.[_0x12a914(-_0x343f95._0x41e469,-0xbb,-_0x343f95._0x3c0e79,-_0x343f95._0x2fae78)]()??![];if(!_0x47a60f&&!_0x315821)throw new ToolExecutionError(_0x96b5eb(_0x343f95._0x33ed89,0x456,_0x343f95._0x13ce91,0x4d4)+(_0x29c7ff[_0x96b5eb(_0x343f95._0x21c356,0x6e0,0x744,0x647)]??'.'),{'path':_0x29c7ff[_0x96b5eb(_0x343f95._0x377ce0,_0x343f95._0x112295,0x744,0x61f)]??'.'});const _0x25e1e=_0x29c7ff['limit']??_0x59a345,_0x285e1d=Math[_0x12a914(-_0x343f95._0x5bad51,-0x11b,-0x17a,-_0x343f95._0x27891d)](0x1,Math[_0x12a914(-_0x343f95._0x2c4c73,-0x1fa,-_0x343f95._0x2f490f,-0x264)](_0x25e1e)),_0x5bedf0=await search({'cwd':_0x315821?_0x383b6f:_0x529715[_0x96b5eb(0x7cf,0x575,0x683,_0x343f95._0x3d675c)](_0x383b6f),'pattern':_0x29c7ff[_0x96b5eb(_0x343f95._0x11fa80,_0x343f95._0xb2e8cf,0x778,_0x343f95._0x388c81)],'glob':_0x315821?_0x29c7ff[_0x12a914(-_0x343f95._0x33041b,-0x1a3,-_0x343f95._0x546d04,-_0x343f95._0x59067b)]:void 0x0,'limit':_0x285e1d,'file':_0x47a60f?_0x383b6f:void 0x0,'context':_0x29c7ff['context']}),_0x40c24f=new Map();for(const _0x5965b4 of _0x5bedf0){if(!_0x40c24f[_0x96b5eb(0x5a7,_0x343f95._0x2843a7,0x5c8,0x6a9)](_0x5965b4[_0x12a914(_0x343f95._0xf86ef6,0x92,-0x8b,_0x343f95._0x2c5fd5)])){const _0x426c83=await _0x55b491(_0x5965b4['filePath'])[_0x12a914(-0x221,-_0x343f95._0x4b2fab,-0x1c9,-_0x343f95._0x1428bf)](()=>null);_0x40c24f[_0x12a914(-0xf1,-0xef,-_0x343f95._0x50f411,-_0x343f95._0xc6e9d6)](_0x5965b4[_0x12a914(-_0x343f95._0x478c1b,-0x109,-_0x343f95._0xdf0c65,0xa)],{'matches':[],'mtime':_0x426c83?.['mtimeMs']??0x0});}_0x40c24f[_0x96b5eb(_0x343f95._0x1866ec,0x4c4,_0x343f95._0x4af047,_0x343f95._0xa24fe4)](_0x5965b4[_0x96b5eb(_0x343f95._0x4d057a,0x68b,0x6ba,0x5cc)])?.[_0x12a914(0x13,-_0x343f95._0x49e23a,-_0x343f95._0x56b42f,-_0x343f95._0x5a1f36)][_0x96b5eb(_0x343f95._0xe2bf99,0x687,0x65c,_0x343f95._0x5030ed)](_0x5965b4);}const _0x5193b1=[..._0x40c24f[_0x12a914(0x7c,-0x1f9,-0xd3,_0x343f95._0x21376d)]()][_0x12a914(-_0x343f95._0x2430a9,-0x26f,-0x1a9,-0x233)]((_0x387cb0,_0x3b1bb6)=>_0x3b1bb6[0x1][_0x12a914(0xd4,0xb4,0x9,-0x110)]-_0x387cb0[0x1][_0x12a914(-0xbb,-0xbb,0x9,-0x12)]);function _0x12a914(_0xd8155d,_0x11ae62,_0x5f2030,_0x44ea73){return _0x5f5cc0(_0xd8155d-0x31,_0x11ae62-_0x5dca56._0x138be3,_0x5f2030- -_0x5dca56._0x5ca67f,_0xd8155d);}const _0x210b9e=_0x5bedf0[_0x96b5eb(0x783,0x71f,_0x343f95._0x680a01,_0x343f95._0x3cd6d8)](_0x20315e=>!_0x20315e['isContext'])['length'],_0x1b4fd2=_0x5bedf0[_0x12a914(_0x343f95._0x1821a6,_0x343f95._0x3a7070,0x2b,-_0x343f95._0x171d21)]>=_0x285e1d,_0x184a9e=_0x47a60f?_0x529715[_0x12a914(0x3f,-0x1ad,-0xc2,_0x343f95._0x457c2c)](_0x383b6f):_0x383b6f;let _0x382a1a='';if(_0x5bedf0[_0x12a914(-_0x343f95._0x2018bb,0x100,0x2b,-0x88)]===0x0)_0x382a1a=_0x12a914(-_0x343f95._0x3db0bd,-0xe7,-_0x343f95._0x42bac7,-_0x343f95._0x40af2d)+_0x29c7ff['pattern'];else{_0x382a1a=_0x96b5eb(_0x343f95._0x445b13,0x68e,0x734,_0x343f95._0x13915c)+_0x210b9e+_0x96b5eb(0x5f6,0x732,_0x343f95._0x14d370,_0x343f95._0x538e8b)+(_0x210b9e===0x1?'':'es')+'\x0a';for(const [_0x4f2464,_0x60ba1]of _0x5193b1){const _0x2359ad=_0x47a60f?_0x529715[_0x96b5eb(0x505,0x657,_0x343f95._0x3ffe6b,0x596)](_0x4f2464):_0x529715['relative'](_0x184a9e,_0x4f2464);_0x382a1a+='\x0a'+_0x2359ad+':\x0a';for(const _0x26f8a1 of _0x60ba1[_0x96b5eb(_0x343f95._0x3cb2ec,_0x343f95._0x115cd4,0x641,0x5de)]){const _0x333698=_0x26f8a1[_0x12a914(-_0x343f95._0x539959,-_0x343f95._0x17579c,0x42,_0x343f95._0x5b722a)]['length']>MAX_LINE_LENGTH?_0x26f8a1[_0x96b5eb(_0x343f95._0xd4e21f,_0x343f95._0x3dc45e,_0x343f95._0x552f1f,0x8ad)][_0x96b5eb(_0x343f95._0x4dd43b,0x687,_0x343f95._0x46ad2a,_0x343f95._0x467f8a)](0x0,MAX_LINE_LENGTH)+_0x12a914(-0x18,-0xa1,-0x2b,-_0x343f95._0x33a7fd):_0x26f8a1[_0x96b5eb(_0x343f95._0x9fd3d2,0x6dc,_0x343f95._0x15dae4,0x84e)],_0x121a30=_0x26f8a1[_0x96b5eb(_0x343f95._0x5030ed,_0x343f95._0x1bcdaa,_0x343f95._0x66168a,_0x343f95._0x1ffe93)]?'\x20\x20':'>\x20';_0x382a1a+=_0x121a30+_0x12a914(0xee,0xdd,0x4e,-0x30)+_0x26f8a1[_0x96b5eb(_0x343f95._0x15d29a,_0x343f95._0x5c88a9,0x5c5,0x6a9)]+':\x20'+_0x333698+'\x0a';}}_0x1b4fd2&&(_0x382a1a+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0xf1875b={'searchPath':_0x529715[_0x96b5eb(_0x343f95._0x407ff6,0x463,0x578,0x4e8)](_0x4e56d5,_0x383b6f)||'.','pattern':_0x29c7ff[_0x12a914(-0x21,0xbf,0x33,-0x76)],'matchCount':_0x210b9e,'fileCount':_0x40c24f[_0x96b5eb(0x5f5,0x626,0x6cd,0x69c)],'truncated':_0x1b4fd2};return _0x315821&&_0x29c7ff[_0x12a914(-_0x343f95._0x104e2d,-0xcd,-_0x343f95._0x59a359,-0x24c)]!==void 0x0&&(_0xf1875b[_0x12a914(-0x1fb,-0xad,-_0x343f95._0x59a359,-0x59)]=_0x29c7ff[_0x96b5eb(_0x343f95._0x4dd71e,_0x343f95._0x443f2e,0x5ed,_0x343f95._0x370c88)]),yield createToolOutput(_0x382a1a[_0x96b5eb(0x5af,_0x343f95._0x2ac2db,0x57a,0x4b5)](),_0xf1875b),void 0x0;}});}import{readdir as _0x330493,readFile as _0x21365,stat as _0x38f6f2}from'fs/promises';import*as _0x61565e from'path';import*as _0x56412e from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x1e6a1c,_0xa36605){const _0x59815e={_0x4ec8b4:0x86,_0x133879:0x13,_0x3d93f0:0x18b,_0x346d28:0x1b6,_0x4c9bde:0x121,_0x583b09:0x66d,_0x5a8a46:0x716,_0x4a5dbf:0x7ca,_0xd105aa:0x788,_0x4d53aa:0x1ae},_0x2d2c85={_0x4403a4:0x10a},_0xc1f2f1={_0x14e084:0xee,_0x15472b:0x2dd,_0xe45cb2:0xaa};if(_0xa36605>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x1b466d(_0x2c7e55,_0x6f363b,_0xa7975b,_0x24790c){return _0x57b9de(_0x2c7e55-_0xc1f2f1._0x14e084,_0x24790c,_0x2c7e55- -_0xc1f2f1._0x15472b,_0x24790c-_0xc1f2f1._0xe45cb2);}function _0x2d609a(_0x286e09,_0x5f46a7,_0x52e2b9,_0x2211ee){return _0x23b1c2(_0x286e09-0x8,_0x286e09,_0x52e2b9-0x31c,_0x2211ee-_0x2d2c85._0x4403a4);}const _0x56f5ca=await _0x21365(_0x1e6a1c)[_0x1b466d(_0x59815e._0x4ec8b4,_0x59815e._0x133879,_0x59815e._0x3d93f0,-0x1)](()=>null);if(!_0x56f5ca||isProbablyBinary(_0x56f5ca))return void 0x0;return _0x56f5ca[_0x1b466d(0x213,0x2dc,_0x59815e._0x346d28,_0x59815e._0x4c9bde)](_0x2d609a(_0x59815e._0x583b09,_0x59815e._0x5a8a46,0x724,0x6a9))[_0x2d609a(0x6c0,_0x59815e._0x4a5dbf,_0x59815e._0xd105aa,0x6eb)](/\r?\n/)[_0x1b466d(0x27a,0x3a7,0x13c,_0x59815e._0x4d53aa)];}function createLsTool(_0x363855={}){const _0x1901ed={_0x5a20c6:0x29b,_0xc7df89:0x3b3,_0xf92675:0x3d0,_0x40cec1:0x3df,_0x1587a9:0x293,_0x446288:0x283,_0x37b50e:0x241,_0x442dda:0x15e,_0x54fe1a:0x2f5,_0x9a8021:0x276,_0x4041a6:0x315,_0x5c6851:0x21a,_0x4cde4a:0x2a5,_0x148830:0x61},_0x2a1af={_0x47bfcc:0x1d0,_0x45317e:0x214,_0x3aa9ca:0x22,_0x5118f9:0x47,_0x451a20:0x107,_0x4e99bb:0x29f,_0xb19fb7:0x2ba,_0x3c7169:0x4f,_0x46908d:0x15,_0x442e60:0x742,_0x1a9e7d:0x142,_0x3d5d75:0x562,_0x1e2c8f:0x61b,_0x12163f:0x672,_0x3dbe78:0x65,_0x4929f5:0x2f3,_0x540a5a:0x5b0,_0x263bdd:0x107,_0x5b0734:0x4a,_0x2efb85:0x205,_0x27e61:0x139,_0x4e8636:0x1a,_0x5e7188:0x3a,_0x2f2f0d:0x3e,_0x3582a4:0x155,_0x4a6621:0x730,_0x1a0dbe:0x166,_0x5bf4f1:0x2ad,_0x1cce20:0x13d,_0x57f55a:0x19a,_0x39906d:0x209,_0x3986b8:0x7d1,_0x50d811:0x730,_0x5c1bf5:0x80f,_0x5e4e6f:0x59f,_0x4709db:0x6bf,_0x22610d:0x6d6,_0x10dce6:0x7d3,_0x1bca9c:0x785,_0x2c75c0:0x6f9,_0x3d6dc3:0x698,_0x5acfe1:0x8a9,_0x869dc1:0x7c2,_0xa67517:0x6ff,_0x54a53a:0x7fc,_0x28698f:0x7d4,_0x2d7f9c:0x7d3},_0x125bf1={_0x516239:0x150,_0x582c6f:0x4c},_0x34b4d8=_0x61565e[_0x1bc4f1(_0x1901ed._0x5a20c6,_0x1901ed._0xc7df89,_0x1901ed._0xf92675,_0x1901ed._0x40cec1)](_0x363855[_0x1bc4f1(_0x1901ed._0x1587a9,_0x1901ed._0x446288,0x35a,0x256)]??process[_0x1bc4f1(_0x1901ed._0x37b50e,_0x1901ed._0x442dda,_0x1901ed._0x54fe1a,_0x1901ed._0x9a8021)]()),_0x33931f=(_0x363855[_0x128e37(0x139,0x1c9,0x110,0xd7)]??[])['map'](_0x45c1f2=>_0x61565e['resolve'](_0x45c1f2)),_0x1cb02c=_0x363855['name']??'Ls';function _0x128e37(_0x4b7b4e,_0x422425,_0x312029,_0xcc9fac){return _0x23b1c2(_0x4b7b4e-0x29,_0xcc9fac,_0x4b7b4e- -0x2ec,_0xcc9fac-0x140);}function _0x1bc4f1(_0x4f276d,_0x7f840d,_0x321102,_0x104e35){return _0x57b9de(_0x4f276d-0xfd,_0x104e35,_0x4f276d- -_0x125bf1._0x516239,_0x104e35-_0x125bf1._0x582c6f);}return defineTool({'name':_0x1cb02c,'description':_0x1bc4f1(0x41c,0x3b9,_0x1901ed._0x4041a6,0x4f6),'inputSchema':{'type':'object','properties':{'path':{'type':_0x1bc4f1(0x1e3,_0x1901ed._0x5c6851,_0x1901ed._0x4cde4a,0x23e)},'limit':{'type':_0x128e37(0x183,0x8d,_0x1901ed._0x148830,0x13a)}}},async *'execute'(_0x49e2f1){const _0x987b7={_0x2707b7:0x616,_0x2e1ef8:0x4},_0x27ae3e=_0x49e2f1[_0x11cfba(0x22d,0x29c,_0x2a1af._0x47bfcc,_0x2a1af._0x45317e)]??'.',_0x4dfea7=resolveAllowedPath(_0x34b4d8,_0x33931f,_0x27ae3e),_0xaf3639=await _0x38f6f2(_0x4dfea7)[_0x11cfba(0x65,_0x2a1af._0x3aa9ca,0xca,_0x2a1af._0x5118f9)](()=>null);if(!_0xaf3639?.[_0x11cfba(_0x2a1af._0x451a20,0x1fc,0x12,_0x2a1af._0x47bfcc)]())throw new ToolExecutionError(_0x11cfba(0x25b,0x38d,_0x2a1af._0x4e99bb,_0x2a1af._0xb19fb7)+_0x27ae3e,{'path':_0x27ae3e});function _0x17050d(_0xc309e2,_0x2192c5,_0x9aeb66,_0x33e72c){return _0x128e37(_0x9aeb66-_0x987b7._0x2707b7,_0x2192c5-0x179,_0x9aeb66-_0x987b7._0x2e1ef8,_0x2192c5);}const _0x16ba10=_0x49e2f1[_0x11cfba(0x8e,0x177,_0x2a1af._0x3c7169,_0x2a1af._0x46908d)]??0x3e8;function _0x11cfba(_0x222e44,_0x18946b,_0x468d30,_0x35272e){return _0x1bc4f1(_0x222e44- -0x1ae,_0x18946b-0x10b,_0x468d30-0x198,_0x468d30);}const _0x431e76=Math['min'](Math[_0x17050d(0x58b,_0x2a1af._0x442e60,0x62e,0x6de)](Math['trunc'](_0x16ba10),0x1),0x2710),_0x2ac478=await _0x330493(_0x4dfea7),_0x225616=[];for(const _0x583fe1 of _0x2ac478[_0x11cfba(_0x2a1af._0x1a9e7d,0x227,0x1d1,0x37)](0x0,_0x431e76)){const _0x480ac8=_0x61565e[_0x17050d(_0x2a1af._0x3d5d75,0x6b9,_0x2a1af._0x1e2c8f,_0x2a1af._0x12163f)](_0x4dfea7,_0x583fe1),_0x1ef657=await _0x38f6f2(_0x480ac8)[_0x11cfba(_0x2a1af._0x3dbe78,-0x8d,-0x44,0x10f)](()=>null);if(!_0x1ef657)continue;let _0x2f82bb=_0x11cfba(0x263,_0x2a1af._0x4929f5,0x3ae,0x37d);if(_0x1ef657[_0x17050d(0x4b0,0x4e5,_0x2a1af._0x540a5a,0x614)]())_0x2f82bb=_0x17050d(0x6f0,0x900,0x7e3,0x7c1);else{if(_0x1ef657[_0x11cfba(_0x2a1af._0x263bdd,_0x2a1af._0x5b0734,_0x2a1af._0x2efb85,-0x4a)]())_0x2f82bb='directory';else{if(_0x1ef657[_0x11cfba(_0x2a1af._0x27e61,0x180,_0x2a1af._0x4e8636,_0x2a1af._0x5e7188)]())_0x2f82bb=_0x11cfba(0xfb,0x13d,_0x2a1af._0x2f2f0d,_0x2a1af._0x3582a4);}}const _0x380b2b={'name':_0x583fe1,'type':_0x2f82bb,'size':_0x1ef657[_0x17050d(0x85c,0x752,_0x2a1af._0x4a6621,0x748)],'mtime':_0x1ef657[_0x11cfba(_0x2a1af._0x1a0dbe,_0x2a1af._0x5bf4f1,_0x2a1af._0x1cce20,0x104)],'mode':_0x1ef657[_0x11cfba(0x47,0x100,-0x59,0x136)]},_0x52fd51=_0x2f82bb===_0x11cfba(0x269,_0x2a1af._0x57f55a,0x1bc,_0x2a1af._0x39906d)?await countTextLines(_0x480ac8,_0x1ef657[_0x17050d(0x7b4,_0x2a1af._0x3986b8,_0x2a1af._0x50d811,_0x2a1af._0x5c1bf5)]):void 0x0;if(_0x52fd51!==void 0x0)_0x380b2b['lines']=_0x52fd51;_0x225616[_0x17050d(_0x2a1af._0x5e4e6f,0x7b6,_0x2a1af._0x4709db,_0x2a1af._0x22610d)](_0x380b2b);}_0x225616['sort']((_0x264bb7,_0x5e4619)=>_0x264bb7[_0x11cfba(0x115,0x19,0x16c,0x217)][_0x11cfba(0x253,0x238,0x206,0x1ee)](_0x5e4619[_0x17050d(0x7aa,0x5e5,0x68f,0x775)]));const _0x427010={'path':_0x27ae3e,'total':_0x225616[_0x17050d(0x830,0x907,_0x2a1af._0x10dce6,_0x2a1af._0x1bca9c)],'truncated':_0x2ac478['length']>_0x431e76,'entries':_0x225616};return yield createToolOutput(_0x56412e[_0x17050d(0x5fc,_0x2a1af._0x2c75c0,_0x2a1af._0x3d6dc3,0x771)](_0x427010,{'indent':0x2,'lineWidth':0x0})[_0x17050d(_0x2a1af._0x5acfe1,0x7dc,_0x2a1af._0x869dc1,0x7a6)](),{'path':_0x27ae3e,'total':_0x225616[_0x17050d(0x6d9,0x683,0x7d3,_0x2a1af._0xa67517)],'truncated':_0x2ac478[_0x17050d(_0x2a1af._0x54a53a,_0x2a1af._0x28698f,_0x2a1af._0x2d7f9c,0x770)]>_0x431e76,'limit':_0x431e76,'entries':_0x225616}),void 0x0;}});}import{stat as _0x60fde}from'fs/promises';import _0x12fac7 from'path';import{fileURLToPath as _0x32cd3e}from'url';function severityName(_0x33ab94){const _0x5b72f1={_0x527e86:0x53a,_0x22b910:0x58a,_0x5adaca:0x4fa,_0x4845a5:0xd9,_0x3474b3:0xc2,_0x1d4f32:0x25,_0x12f4e3:0x17e,_0x49cf3b:0xbe,_0x12ebda:0x5c},_0xbbcff={_0x3ab245:0x10},_0x2763db={_0x4cffe0:0xc,_0x55228f:0x3a7};function _0xa0e07a(_0x5b9cf3,_0x5772c1,_0x512c0d,_0x28cdf3){return _0x23b1c2(_0x5b9cf3-_0x2763db._0x4cffe0,_0x5b9cf3,_0x28cdf3- -_0x2763db._0x55228f,_0x28cdf3-0x19c);}function _0xb25f45(_0x27c501,_0x291e71,_0x4cdc14,_0x54c24c){return _0x57b9de(_0x27c501-_0xbbcff._0x3ab245,_0x27c501,_0x291e71-0x179,_0x54c24c-0xd9);}switch(_0x33ab94){case 0x1:return _0xb25f45(0x4ab,_0x5b72f1._0x527e86,_0x5b72f1._0x22b910,_0x5b72f1._0x5adaca);case 0x2:return _0xa0e07a(-0xb8,-0xd0,-0x6a,-_0x5b72f1._0x4845a5);case 0x3:return'Information';case 0x4:return _0xa0e07a(_0x5b72f1._0x3474b3,_0x5b72f1._0x1d4f32,_0x5b72f1._0x12f4e3,_0x5b72f1._0x49cf3b);default:return _0xa0e07a(-0x115,-_0x5b72f1._0x12ebda,-0x137,-0x7c);}}function formatSingleHover(_0x5e45c4){const _0x49e709={_0xc274bb:0x77,_0x17e9b6:0x18b,_0x4f0355:0x185,_0x1570a6:0x19a,_0x4ecde5:0xdd,_0x491636:0x6f3,_0x34ec41:0x1a2,_0x3b0c07:0x48,_0x29d29e:0x172,_0xd31655:0x6f2,_0x5d9117:0x5c3,_0x218056:0x8a,_0x4ffd40:0x168,_0xb9ff41:0x4a8,_0x2ecd7d:0x409,_0x494afd:0x4f7,_0x52b874:0xe5,_0x23da21:0x180,_0x167773:0x78,_0x40f0de:0x8d,_0x5f516f:0x10,_0x1d9e9d:0x812,_0x322c29:0x6e7,_0x2d2f69:0x712,_0x1f2a49:0x93,_0x3f114c:0xff},_0x3f6322={_0x1f4643:0x67,_0x31b2a3:0x26d,_0x3aec06:0x35},_0x404e6f={_0x97fc3e:0x11c,_0x5977db:0x366,_0x4bfdc5:0xe2},_0x5cd6bd=_0x5e45c4[_0x583659(0x42f,0x51f,0x57d,0x676)];function _0x16b806(_0x1c3856,_0x10d345,_0x235fcf,_0x4af956){return _0x23b1c2(_0x1c3856-_0x404e6f._0x97fc3e,_0x1c3856,_0x4af956- -_0x404e6f._0x5977db,_0x4af956-_0x404e6f._0x4bfdc5);}if(typeof _0x5cd6bd===_0x16b806(-_0x49e709._0xc274bb,-_0x49e709._0x17e9b6,-_0x49e709._0x4f0355,-0xe1))return _0x5cd6bd;if(Array[_0x16b806(0x173,_0x49e709._0x1570a6,0x6f,_0x49e709._0x4ecde5)](_0x5cd6bd))return _0x5cd6bd[_0x583659(0x751,0x7c7,_0x49e709._0x491636,0x7ef)](_0x23888b=>typeof _0x23888b===_0x16b806(-0x160,-0x5,-0x171,-0xe1)?_0x23888b:_0x23888b[_0x583659(0x5f7,0x52c,0x5c3,0x545)])[_0x16b806(0x116,_0x49e709._0x34ec41,-_0x49e709._0x3b0c07,0x74)](Boolean)['join']('\x0a\x0a');function _0x583659(_0x581f93,_0x2aecdb,_0x3021f6,_0x3127c7){return _0x23b1c2(_0x581f93-_0x3f6322._0x1f4643,_0x2aecdb,_0x3021f6-_0x3f6322._0x31b2a3,_0x3127c7-_0x3f6322._0x3aec06);}if(_0x16b806(0xef,_0x49e709._0x29d29e,0x201,0x10b)in _0x5cd6bd)return _0x5cd6bd[_0x583659(0x4f3,_0x49e709._0xd31655,_0x49e709._0x5d9117,0x64d)];return _0x5cd6bd[_0x16b806(0x1af,_0x49e709._0x218056,0x14f,_0x49e709._0x4ffd40)]?_0x583659(_0x49e709._0xb9ff41,_0x49e709._0x2ecd7d,_0x49e709._0x494afd,0x4f7)+_0x5cd6bd[_0x16b806(_0x49e709._0x52b874,0x1a3,_0x49e709._0x23da21,_0x49e709._0x4ffd40)]+'\x0a'+_0x5cd6bd[_0x16b806(0x0,_0x49e709._0x167773,-_0x49e709._0x40f0de,-_0x49e709._0x5f516f)]+_0x583659(_0x49e709._0x1d9e9d,_0x49e709._0x322c29,_0x49e709._0x2d2f69,0x744):_0x5cd6bd[_0x16b806(_0x49e709._0x1f2a49,0x21,-_0x49e709._0x3f114c,-_0x49e709._0x5f516f)];}function formatHover(_0x1202e9){const _0x495e51={_0xb699f0:0x91,_0x1ae8db:0x13c,_0x37d474:0x17e,_0x335af5:0x2c1},_0x18559f={_0x396a31:0x97,_0xf5c091:0x510,_0x57484b:0x9c},_0x3889bb={_0x282fbf:0x2b,_0x3110eb:0x1a9};function _0x5ac679(_0x5a6a79,_0x222cdd,_0x1cc403,_0x29f464){return _0x57b9de(_0x5a6a79-0x1ef,_0x222cdd,_0x1cc403- -_0x3889bb._0x282fbf,_0x29f464-_0x3889bb._0x3110eb);}function _0x1db5e6(_0x9e8e35,_0x5bd177,_0x25e432,_0x1601d8){return _0x57b9de(_0x9e8e35-_0x18559f._0x396a31,_0x5bd177,_0x25e432- -_0x18559f._0xf5c091,_0x1601d8-_0x18559f._0x57484b);}if(_0x1202e9['length']===0x0)return _0x1db5e6(_0x495e51._0xb699f0,_0x495e51._0x1ae8db,0x60,_0x495e51._0x37d474);return _0x1202e9[_0x1db5e6(0xbf,0xcf,0x24,0xcf)](formatSingleHover)['join'](_0x1db5e6(-_0x495e51._0x335af5,-0x79,-0x1b9,-0xa2));}function locationPath(_0x448289){const _0x591c8a={_0x44e7c1:0x16e,_0x523e10:0x2e3,_0x32f89c:0x3d3,_0x12def2:0x1b1,_0x5e51bf:0x1b2},_0x48638c={_0x5d15ce:0x1b0,_0x5a31e8:0x192};function _0xc87195(_0x51dd4f,_0x1b68c6,_0x5ded73,_0x174178){return _0x23b1c2(_0x51dd4f-_0x48638c._0x5d15ce,_0x174178,_0x51dd4f- -0x201,_0x174178-_0x48638c._0x5a31e8);}function _0x555238(_0x9e91f0,_0xe8f9b7,_0x1e48ac,_0x2a2385){return _0x57b9de(_0x9e91f0-0xfa,_0x9e91f0,_0x1e48ac-0x18f,_0x2a2385-0x9b);}if(!_0x448289[_0xc87195(_0x591c8a._0x44e7c1,0x1e5,0x62,0x258)](_0xc87195(_0x591c8a._0x523e10,_0x591c8a._0x32f89c,_0x591c8a._0x12def2,_0x591c8a._0x5e51bf)))return _0x448289;return _0x32cd3e(_0x448289);}function formatLocations(_0xb27917){const _0x44c78a={_0x30ca1b:0x3fd,_0xa7c994:0x37c,_0x20f26c:0x2fa,_0xf4f9ea:0x4b4,_0xab2f34:0x3da},_0x1d404c={_0x41ebe4:0x6c0,_0x225acc:0x6ef,_0x439b9c:0x446,_0x3fc18f:0x1b,_0x21d651:0x110,_0x1a376d:0x52},_0x7697e3={_0x19bba6:0xa6},_0x5f2a7e={_0x19ce41:0x28},_0x272680={_0x6fd809:0x3d3};function _0x307848(_0x241833,_0x30acbc,_0x2b55de,_0x545679){return _0x57b9de(_0x241833-0xb,_0x30acbc,_0x545679- -_0x272680._0x6fd809,_0x545679-0x1f1);}function _0x2669a1(_0x39972e,_0x378c01,_0xbe639a,_0x40dda1){return _0x23b1c2(_0x39972e-0x11e,_0x40dda1,_0xbe639a- -0xac,_0x40dda1-_0x5f2a7e._0x19ce41);}if(_0xb27917[_0x2669a1(0x3ce,0x4a4,_0x44c78a._0x30ca1b,0x3f4)]===0x0)return _0x2669a1(0x30b,0x243,_0x44c78a._0xa7c994,0x2cf);return _0xb27917[_0x2669a1(_0x44c78a._0x20f26c,_0x44c78a._0xf4f9ea,_0x44c78a._0xab2f34,0x4e1)](_0x419903=>{const _0x57a60e={_0x407caa:0xbd};function _0x2972c5(_0x436b14,_0x369496,_0x5a0dcf,_0x36112d){return _0x2669a1(_0x436b14-_0x7697e3._0x19bba6,_0x369496-0x140,_0x369496- -0x310,_0x36112d);}const _0x22cadb=_0x419903[_0x1a8925(_0x1d404c._0x41ebe4,0x671,0x76e,_0x1d404c._0x225acc)][_0x1a8925(_0x1d404c._0x439b9c,0x4da,0x64d,0x587)];function _0x1a8925(_0x421766,_0xa90eac,_0x5457eb,_0x455483){return _0x307848(_0x421766-_0x57a60e._0x407caa,_0xa90eac,_0x5457eb-0x1e8,_0x455483-0x55c);}return locationPath(_0x419903['uri'])+':'+(_0x22cadb[_0x2972c5(0x11c,-0xb,_0x1d404c._0x3fc18f,_0x1d404c._0x21d651)]+0x1)+':'+(_0x22cadb[_0x2972c5(-0xb5,-0x7e,_0x1d404c._0x1a376d,-0xb1)]+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x3428f5){const _0x27c55d={_0x2eb787:0x29,_0xcd07a1:0xf9,_0xefa706:0x38,_0x423d8d:0xb0},_0x3f741b={_0x31d069:0x12b,_0x70e2bb:0x46d},_0x2e3d42={_0x5b6389:0x17b};function _0x519b39(_0x259f1d,_0x1c15ad,_0xbe9c29,_0x5dc784){return _0x23b1c2(_0x259f1d-_0x2e3d42._0x5b6389,_0x1c15ad,_0xbe9c29-0x245,_0x5dc784-0x22);}function _0x4b421a(_0x434e8f,_0x2c08da,_0x58d63e,_0x30929f){return _0x57b9de(_0x434e8f-_0x3f741b._0x31d069,_0x2c08da,_0x58d63e- -_0x3f741b._0x70e2bb,_0x30929f-0x101);}return _0x4b421a(0x24c,-_0x27c55d._0x2eb787,_0x27c55d._0xcd07a1,_0x27c55d._0xefa706)in _0x3428f5&&_0x4b421a(-0x4e,-_0x27c55d._0x423d8d,0x71,-0xce)in _0x3428f5;}function formatSymbols(_0x547e49){const _0xbb24cf={_0x297bf5:0x678,_0xbe7f82:0x4c0,_0x1ed307:0x57b},_0x3a6921={_0x1a4ada:0x62c,_0x4a5004:0x851,_0xa6de2f:0x733,_0x410d4a:0x83f,_0xe5f516:0x67f,_0x377344:0x8af,_0x15912a:0x729,_0x1fd8c1:0x656,_0x39d920:0x610,_0x44b182:0x626,_0x4c816c:0x74a,_0x573018:0x81b,_0x2bcfad:0x628,_0x58e9b3:0x6da,_0x4b91fe:0x542,_0x4ec5ae:0x6bb,_0x4d05ef:0x77e,_0x1970ad:0x736,_0x3bf609:0x6e2,_0x1a9aa8:0x625,_0x413daf:0x604,_0x545e98:0x6d8,_0x17abad:0x782,_0x3f3887:0x560,_0x2a8d38:0x547},_0x354318={_0x3d0db4:0xf3,_0x1ca3a0:0xd7},_0x4c8a83={_0x286afd:0x121},_0xb083f9={_0x1f1735:0x8c,_0x7ef860:0x3d9,_0x4d4084:0x6c};function _0x54af8e(_0x3fdfc3,_0x499a9d,_0x5d582f,_0x40820a){return _0x57b9de(_0x3fdfc3-_0xb083f9._0x1f1735,_0x5d582f,_0x499a9d- -_0xb083f9._0x7ef860,_0x40820a-_0xb083f9._0x4d4084);}if(_0x547e49[_0x3dd1de(_0xbb24cf._0x297bf5,0x734,0x596,0x7a7)]===0x0)return'No\x20symbols\x20found';function _0x3dd1de(_0x50e787,_0x578843,_0x2c2d65,_0x511e97){return _0x57b9de(_0x50e787-0x1a8,_0x2c2d65,_0x50e787-_0x4c8a83._0x286afd,_0x511e97-0x152);}return _0x547e49['map'](_0x5a017b=>{const _0x497afa={_0x27f85e:0xfb,_0x819ef:0x180};function _0x25a973(_0x4464ab,_0x21e5cf,_0x4faca2,_0x40686e){return _0x3dd1de(_0x21e5cf-_0x497afa._0x27f85e,_0x21e5cf-0x9d,_0x4464ab,_0x40686e-_0x497afa._0x819ef);}if(isDocumentSymbol(_0x5a017b))return _0x5a017b[_0x25a973(0x714,0x62f,_0x3a6921._0x1a4ada,0x541)]+'\x20('+_0x5a017b[_0xc326c4(_0x3a6921._0x4a5004,0x84f,_0x3a6921._0xa6de2f,0x886)]+')\x20['+(_0x5a017b[_0xc326c4(0x815,0x6bd,0x77a,_0x3a6921._0x410d4a)]['start'][_0xc326c4(_0x3a6921._0xe5f516,0x71a,0x673,0x676)]+0x1)+':'+(_0x5a017b[_0x25a973(_0x3a6921._0x377344,0x782,_0x3a6921._0x15912a,0x7d0)][_0xc326c4(0x5ac,_0x3a6921._0x1fd8c1,0x612,0x596)]['character']+0x1)+']';function _0xc326c4(_0x2c566e,_0x2a2f51,_0x1ad62f,_0x4d29e6){return _0x3dd1de(_0x1ad62f-_0x354318._0x3d0db4,_0x2a2f51-0x1b3,_0x4d29e6,_0x4d29e6-_0x354318._0x1ca3a0);}return _0x5a017b[_0xc326c4(_0x3a6921._0x39d920,0x5dc,0x627,_0x3a6921._0x44b182)]+'\x20('+_0x5a017b[_0xc326c4(_0x3a6921._0x4c816c,_0x3a6921._0x573018,0x733,_0x3a6921._0x2bcfad)]+')\x20'+locationPath(_0x5a017b[_0xc326c4(0x708,0x654,_0x3a6921._0x58e9b3,0x6d9)]['uri'])+':'+(_0x5a017b['location'][_0x25a973(0x862,0x782,0x81a,0x824)][_0x25a973(_0x3a6921._0x4b91fe,0x61a,0x69b,0x600)][_0xc326c4(_0x3a6921._0x4ec5ae,_0x3a6921._0x4d05ef,0x673,0x645)]+0x1)+':'+(_0x5a017b[_0x25a973(_0x3a6921._0x1970ad,_0x3a6921._0x3bf609,_0x3a6921._0x1a9aa8,_0x3a6921._0x413daf)][_0x25a973(_0x3a6921._0x545e98,_0x3a6921._0x17abad,_0x3a6921._0x3bf609,0x631)]['start'][_0x25a973(_0x3a6921._0x3f3887,0x608,0x4b4,_0x3a6921._0x2a8d38)]+0x1);})[_0x3dd1de(_0xbb24cf._0xbe7f82,0x3cc,_0xbb24cf._0x1ed307,0x521)]('\x0a');}function formatDiagnostics(_0x4ea36c){const _0x2b98af={_0x3c3e2f:0x2cf,_0x2c65f2:0x1ca,_0x1189ce:0x1db,_0x466105:0x34a,_0x9671a3:0x2e2},_0x25287b={_0x44495b:0x14a,_0x25f24d:0x323,_0x1f44a3:0x2a2,_0x5a6ae5:0x30e,_0x276d2f:0x35d,_0x17ff0f:0x4d,_0x2c4505:0x1a9,_0x1b0734:0x107,_0x8e3cfe:0x253,_0x52c9e0:0xea,_0x49ad6b:0x93,_0x339de2:0x7d},_0x236383={_0x254095:0x1ef,_0x168548:0xc5},_0x335b8d={_0x211769:0x18},_0x1dfa26={_0xc790f1:0x1e6,_0x573a73:0x1ea};function _0x1f7db3(_0xad55b9,_0x510cb8,_0x3547aa,_0x3559cb){return _0x57b9de(_0xad55b9-_0x1dfa26._0xc790f1,_0x510cb8,_0x3559cb- -_0x1dfa26._0x573a73,_0x3559cb-0x184);}function _0x2b2be2(_0x4d1fc6,_0x3f4fd0,_0x332ec4,_0x489d65){return _0x23b1c2(_0x4d1fc6-0x1a2,_0x489d65,_0x3f4fd0- -0xc7,_0x489d65-_0x335b8d._0x211769);}if(_0x4ea36c[_0x2b2be2(0x2e7,0x3e2,_0x2b98af._0x3c3e2f,0x524)]===0x0)return _0x2b2be2(_0x2b98af._0x2c65f2,0x193,_0x2b98af._0x1189ce,0x4e);return _0x4ea36c[_0x1f7db3(0x257,0x2f1,0x39f,_0x2b98af._0x466105)](_0x1b97b1=>{const _0x5740b2={_0x59c1b6:0x169,_0x137de0:0x173,_0x57863f:0x228};function _0x5ef726(_0x7d34cb,_0x11bb31,_0x5ac961,_0x51ffd7){return _0x1f7db3(_0x7d34cb-_0x236383._0x254095,_0x51ffd7,_0x5ac961-_0x236383._0x168548,_0x11bb31- -0xfb);}const _0x391649=_0x1b97b1['range'][_0xb7cbe9(0x2d,-0x102,-0x14,-_0x25287b._0x44495b)];function _0xb7cbe9(_0x55d990,_0x194042,_0x31a63a,_0x464188){return _0x1f7db3(_0x55d990-_0x5740b2._0x59c1b6,_0x55d990,_0x31a63a-_0x5740b2._0x137de0,_0x31a63a- -_0x5740b2._0x57863f);}return severityName(_0x1b97b1[_0x5ef726(_0x25287b._0x25f24d,_0x25287b._0x1f44a3,_0x25287b._0x5a6ae5,_0x25287b._0x276d2f)])+'\x20['+(_0x391649[_0xb7cbe9(-0xb8,-0xe7,_0x25287b._0x17ff0f,0x19f)]+0x1)+':'+(_0x391649[_0x5ef726(_0x25287b._0x2c4505,_0x25287b._0x1b0734,0x245,_0x25287b._0x8e3cfe)]+0x1)+']\x20'+_0x1b97b1[_0xb7cbe9(_0x25287b._0x52c9e0,0x1b4,_0x25287b._0x49ad6b,_0x25287b._0x339de2)];})[_0x2b2be2(0x36a,0x22a,0x285,_0x2b98af._0x9671a3)]('\x0a');}function formatIncomingCalls(_0x311e94){const _0x465d1e={_0xbe4565:0x6d7,_0x2ad426:0x57f,_0x288a05:0x6fe,_0x3c1722:0x2c1,_0x288d5c:0x200,_0x5c9a8e:0x2c4},_0x17e5ea={_0x3bfbe5:0x45,_0x73c03b:0x30,_0x2a6774:0xf4},_0x568c72={_0x4633e4:0x141};if(_0x311e94[_0x51275f(0x639,0x76e,0x698,_0x465d1e._0xbe4565)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x51275f(_0x1a73b5,_0x4509f6,_0x480e02,_0xf96010){return _0x57b9de(_0x1a73b5-0x10e,_0xf96010,_0x480e02-_0x568c72._0x4633e4,_0xf96010-0x1f3);}function _0x58a509(_0xd95fb5,_0x277abc,_0x5758b5,_0x2c2775){return _0x23b1c2(_0xd95fb5-_0x17e5ea._0x3bfbe5,_0x277abc,_0xd95fb5- -_0x17e5ea._0x73c03b,_0x2c2775-_0x17e5ea._0x2a6774);}return _0x311e94[_0x51275f(_0x465d1e._0x2ad426,0x598,0x675,_0x465d1e._0x288a05)](_0xafc35=>_0xafc35['from'][_0x58a509(0x335,0x26c,0x28d,0x2ad)])[_0x58a509(_0x465d1e._0x3c1722,_0x465d1e._0x288d5c,_0x465d1e._0x5c9a8e,0x29f)]('\x0a');}function formatOutgoingCalls(_0x537b4f){const _0xb7e62f={_0x26f841:0x7e6,_0x5a2a8a:0x80a,_0x4e1071:0x7b6,_0x2ba9c1:0x3c4,_0x524bfa:0x176},_0x176025={_0x3b9510:0x30d,_0x38305f:0x14},_0x3a5abd={_0x502ceb:0x5f,_0x39d4be:0xdd};function _0x25adaf(_0x18623a,_0x47c9e3,_0x1e0577,_0x50eaea){return _0x23b1c2(_0x18623a-_0x3a5abd._0x502ceb,_0x47c9e3,_0x18623a- -0x2d,_0x50eaea-_0x3a5abd._0x39d4be);}function _0xfc9fb(_0x5610af,_0x245e80,_0x486995,_0x1176e7){return _0x23b1c2(_0x5610af-0x2,_0x5610af,_0x1176e7-_0x176025._0x3b9510,_0x1176e7-_0x176025._0x38305f);}if(_0x537b4f[_0xfc9fb(0x6e1,_0xb7e62f._0x26f841,_0xb7e62f._0x5a2a8a,_0xb7e62f._0x4e1071)]===0x0)return'No\x20call\x20hierarchy\x20results';return _0x537b4f[_0x25adaf(0x459,0x32f,0x4fc,_0xb7e62f._0x2ba9c1)](_0x327dce=>_0x327dce['to']['name'])[_0x25adaf(0x2c4,0x258,0x1cd,_0xb7e62f._0x524bfa)]('\x0a');}function toStructured(_0xd0b86d){const _0x53b71c={_0x43f8c7:0x2e6,_0x23ef7d:0x2ea,_0xe78d53:0x403,_0x329d20:0x371,_0x4c02ca:0x45d},_0x164475={_0x1db286:0x115,_0x1689f6:0x55},_0x57da0e={_0x10f479:0xba,_0x841211:0x3c};function _0xffd5cd(_0x45fec9,_0xb3ebcb,_0x58c160,_0x2d5755){return _0x57b9de(_0x45fec9-_0x57da0e._0x10f479,_0xb3ebcb,_0x58c160- -_0x57da0e._0x841211,_0x2d5755-0x191);}function _0x202a2f(_0x419d64,_0x10757e,_0x540a5e,_0x4cc892){return _0x57b9de(_0x419d64-_0x164475._0x1db286,_0x10757e,_0x4cc892- -0x38d,_0x4cc892-_0x164475._0x1689f6);}return JSON[_0xffd5cd(0x40d,_0x53b71c._0x43f8c7,0x2fd,_0x53b71c._0x23ef7d)](JSON[_0xffd5cd(_0x53b71c._0xe78d53,_0x53b71c._0x329d20,0x3e0,_0x53b71c._0x4c02ca)](_0xd0b86d));}async function assertFile(_0x4fbd07){const _0x5150a4={_0x20d813:0x45e,_0x238fbe:0x59c,_0x11555b:0x487},_0x4d1a2e={_0x1ebb92:0x121},_0xab9b1b={_0x1aa034:0x201,_0x4e2670:0x141};function _0x3f6c96(_0x39c52a,_0x46ecdf,_0x57fdc6,_0x56d5e6){return _0x23b1c2(_0x39c52a-0x40,_0x46ecdf,_0x56d5e6-_0xab9b1b._0x1aa034,_0x56d5e6-_0xab9b1b._0x4e2670);}function _0x4fd9f1(_0x172fae,_0x4293fd,_0x11c437,_0x101636){return _0x23b1c2(_0x172fae-0x185,_0x172fae,_0x11c437- -0x5d,_0x101636-_0x4d1a2e._0x1ebb92);}const _0x295b63=await _0x60fde(_0x4fbd07);if(!_0x295b63[_0x3f6c96(_0x5150a4._0x20d813,_0x5150a4._0x238fbe,0x435,_0x5150a4._0x11555b)]())throw new ToolExecutionError(_0x3f6c96(0x6d3,0x712,0x4bf,0x5dc)+_0x4fbd07,{'path':_0x4fbd07});}function validatePosition(_0x4f9e10,_0x144336){const _0x35937d={_0xe31ca2:0x171,_0x4461aa:0x143,_0xadad1b:0x295,_0x323ace:0x758,_0x1a8f0c:0x7ea,_0x4a071c:0x73d},_0x3fde1a={_0x5ccbaf:0x2e7,_0x43f8b8:0xa8},_0x1564fb={_0x532dbd:0x26};function _0x5cc289(_0x4935a5,_0x12e7f1,_0xf73058,_0x32f449){return _0x57b9de(_0x4935a5-_0x1564fb._0x532dbd,_0x4935a5,_0x32f449-0x286,_0x32f449-0x5b);}if(!Number[_0x592f5d(_0x35937d._0xe31ca2,0x11b,_0x35937d._0x4461aa,_0x35937d._0xadad1b)](_0x4f9e10)||_0x4f9e10<0x1)throw new ToolExecutionError(_0x5cc289(_0x35937d._0x323ace,0x8e9,0x6f2,_0x35937d._0x1a8f0c),{'line':_0x4f9e10});function _0x592f5d(_0x18e6be,_0x2c32c6,_0x2be209,_0x2ab9e5){return _0x57b9de(_0x18e6be-0xb3,_0x2c32c6,_0x18e6be- -_0x3fde1a._0x5ccbaf,_0x2ab9e5-_0x3fde1a._0x43f8b8);}if(!Number[_0x5cc289(_0x35937d._0x4a071c,0x772,0x59c,0x6de)](_0x144336)||_0x144336<0x1)throw new ToolExecutionError(_0x592f5d(0x1ff,0xd3,0x10b,0x31a),{'character':_0x144336});}function createLspTool(_0x14d5c5={}){const _0x5a580b={_0x11ebf6:0x49f,_0x32a1d5:0x4b2,_0x196e42:0x558,_0x17b575:0x675,_0x452391:0x5cf,_0x683a37:0x534,_0x492270:0x561,_0x591d11:0x2af,_0x5d4246:0x18c,_0x37b3db:0x67a,_0x26e728:0x159,_0x8a6e25:0x11c,_0xc1bd6d:0xf6,_0x5c9b12:0x16d,_0x316e36:0x3b4,_0x1ae077:0x124,_0x132c6d:0x1a,_0x59e7c1:0xab,_0x19e077:0x158,_0x2c91e4:0x185,_0x14a0a5:0xc3,_0x68eba0:0x14e,_0xdd160b:0x12e,_0x55491b:0x32e,_0x1331cc:0x232,_0x4c30fd:0x545,_0x44d7d3:0x681,_0x2da9c2:0x61c,_0x50f758:0x435,_0x47958c:0xc0,_0x34903d:0x11d,_0x400b74:0x605,_0x23cf4e:0x67b,_0x3c2463:0x41d,_0x383679:0x502,_0x4a46f4:0x454,_0x3b18a3:0x3a3,_0x270d2b:0x12f,_0x20c41e:0xee,_0x1d82f0:0x106,_0x4767c3:0xf,_0x159a66:0x225,_0x4826ae:0x142,_0x243d01:0x141,_0x5e4434:0xcf},_0x1cf852={_0x4863db:0x9f,_0x580550:0x1e8,_0x2e880d:0x3dd,_0x58603a:0x4ef,_0x384903:0x31c,_0x1d1fce:0x3d4,_0x4194a7:0x445,_0x41f3be:0x19d,_0xd00a27:0x2da,_0x4f2682:0x2d6,_0xb3e757:0x49b,_0x63aa8e:0x555,_0x47713a:0x1b0,_0x2bd55a:0x8a,_0xfdeeb:0x4c8,_0xad53d:0x3bc,_0x3140e7:0x1df,_0xb78211:0x185,_0x26a920:0xd,_0x34582c:0x86,_0x3669bc:0x13b,_0x4c4f06:0x344,_0x2b2577:0x479,_0x1966c1:0x321,_0x21a51c:0x416,_0x4c3f10:0x48,_0x380fc6:0x16e,_0x397a1a:0x349,_0x8d91f6:0x377,_0x5f4c4c:0x3cf,_0x3e35d9:0x3ea,_0x19adea:0x36a,_0x500411:0x203,_0x7ca544:0x252,_0x5bd18a:0x3fd,_0x459ee3:0x77,_0x5b6111:0x2e,_0x3bef3c:0x96,_0x15b9ca:0x426,_0x26242f:0xb8,_0x40a332:0x145,_0x537ea2:0x286,_0x477dbf:0x43c,_0x14527c:0x247,_0x4c893b:0x2ca,_0x25e93c:0x28f,_0x4566e3:0x3af,_0x4d2571:0x4d4,_0x5a3d9f:0x44c,_0x228417:0x2fc,_0x99b707:0x3af,_0x1c9316:0x48a,_0x3b4e95:0x492,_0x2685a2:0x459,_0x101a95:0x45a,_0x2528b5:0x3ae},_0x2b68a5={_0x5de75b:0x163},_0x5841df={_0x38f4a9:0x22},_0x1ef455=_0x12fac7[_0x2aa790(0x50c,0x4b3,0x475,_0x5a580b._0x11ebf6)](_0x14d5c5['defaultCwd']??process[_0x2aa790(_0x5a580b._0x32a1d5,0x3aa,0x3f8,_0x5a580b._0x196e42)]());function _0x1d1511(_0x33f297,_0x4d08b6,_0x2dead4,_0x31681e){return _0x57b9de(_0x33f297-_0x5841df._0x38f4a9,_0x33f297,_0x31681e- -0x31d,_0x31681e-0x1d3);}const _0x1e5e26=(_0x14d5c5[_0x2aa790(0x5f4,_0x5a580b._0x17b575,_0x5a580b._0x452391,0x5ff)]??[])['map'](_0x594766=>_0x12fac7[_0x2aa790(0x50c,0x591,0x3c1,0x631)](_0x594766)),_0x204eb6=_0x14d5c5[_0x2aa790(_0x5a580b._0x683a37,_0x5a580b._0x492270,0x660,0x52f)]??_0x1d1511(_0x5a580b._0x591d11,_0x5a580b._0x5d4246,0x99,0x1d5);function _0x2aa790(_0x21eff0,_0x408f41,_0x301f01,_0x7518b){return _0x23b1c2(_0x21eff0-0xa7,_0x408f41,_0x21eff0-0x1cf,_0x7518b-_0x2b68a5._0x5de75b);}return defineTool({'name':_0x204eb6,'description':_0x2aa790(0x589,0x57e,_0x5a580b._0x37b3db,0x598),'inputSchema':{'type':_0x1d1511(_0x5a580b._0x26e728,_0x5a580b._0x8a6e25,_0x5a580b._0xc1bd6d,_0x5a580b._0x5c9b12),'properties':{'operation':{'type':_0x2aa790(0x454,_0x5a580b._0x316e36,0x435,0x3ed),'enum':['goToDefinition',_0x1d1511(_0x5a580b._0x1ae077,-0xac,-0xad,-_0x5a580b._0x132c6d),_0x1d1511(0x159,_0x5a580b._0x59e7c1,0x64,_0x5a580b._0x19e077),_0x1d1511(0x9b,_0x5a580b._0x2c91e4,0xd8,_0x5a580b._0x14a0a5),_0x1d1511(_0x5a580b._0x68eba0,_0x5a580b._0xdd160b,_0x5a580b._0x55491b,_0x5a580b._0x1331cc),_0x2aa790(_0x5a580b._0x4c30fd,_0x5a580b._0x44d7d3,_0x5a580b._0x2da9c2,_0x5a580b._0x50f758),_0x1d1511(-0x3c,-0xdf,0x81,-0x3),_0x1d1511(0x2c,_0x5a580b._0x47958c,0x35,_0x5a580b._0x34903d),_0x2aa790(_0x5a580b._0x400b74,0x536,_0x5a580b._0x23cf4e,0x724),_0x2aa790(_0x5a580b._0x3c2463,0x4bb,0x379,_0x5a580b._0x383679)]},'filePath':{'type':_0x2aa790(_0x5a580b._0x4a46f4,0x452,0x57a,_0x5a580b._0x3b18a3)},'line':{'type':_0x1d1511(0xc8,0xcd,0x20d,0x200)},'character':{'type':_0x1d1511(_0x5a580b._0x270d2b,0x1c0,_0x5a580b._0x20c41e,0x200)},'query':{'type':'string'}},'required':['operation','filePath',_0x1d1511(_0x5a580b._0x1d82f0,_0x5a580b._0x4767c3,_0x5a580b._0x159a66,_0x5a580b._0x4826ae),_0x1d1511(_0x5a580b._0x132c6d,_0x5a580b._0x243d01,-0x39,_0x5a580b._0x5e4434)]},async *'execute'(_0x3ead77){const _0x2fa996={_0xee8e6a:0x27},_0x1d6a33={_0x5b23fa:0x1ac,_0x55a506:0x1db,_0x18167d:0x6f},_0xb8c1c6=_0x14d5c5[_0x45effa(_0x1cf852._0x4863db,0x207,_0x1cf852._0x580550,0xdb)];function _0x550b68(_0x28f37d,_0x3ba9d9,_0x595676,_0x421893){return _0x2aa790(_0x421893- -_0x1d6a33._0x5b23fa,_0x28f37d,_0x595676-_0x1d6a33._0x55a506,_0x421893-_0x1d6a33._0x18167d);}if(!_0xb8c1c6)throw new ToolExecutionError(_0x550b68(0x573,0x521,0x515,0x508));if(!_0xb8c1c6['isEnabled']())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x4d6cf3=_0x3ead77[_0x550b68(_0x1cf852._0x2e880d,0x429,0x42b,0x370)];validatePosition(_0x3ead77[_0x550b68(_0x1cf852._0x58603a,0x3ca,_0x1cf852._0x384903,_0x1cf852._0x1d1fce)],_0x3ead77['character']);if(_0x4d6cf3==='workspaceSymbol'){if(!_0x3ead77[_0x550b68(0x36a,_0x1cf852._0x4194a7,0x35f,0x3bc)]?.[_0x550b68(0x264,_0x1cf852._0x41f3be,_0x1cf852._0xd00a27,_0x1cf852._0x4f2682)]())throw new ToolExecutionError(_0x550b68(0x46a,_0x1cf852._0xb3e757,_0x1cf852._0x63aa8e,0x413));const _0x5647a4=await _0xb8c1c6['workspaceSymbol'](_0x3ead77[_0x45effa(_0x1cf852._0x47713a,0x9f,0xb9,_0x1cf852._0x2bd55a)]['trim']());return yield createToolOutput(formatSymbols(_0x5647a4),{'operation':_0x4d6cf3,'query':_0x3ead77[_0x550b68(_0x1cf852._0xfdeeb,0x3e7,0x4a4,_0x1cf852._0xad53d)],'symbols':_0x5647a4}),void 0x0;}const _0x4038e9=resolveAllowedPath(_0x1ef455,_0x1e5e26,_0x3ead77[_0x45effa(_0x1cf852._0x3140e7,_0x1cf852._0xb78211,0x113,-_0x1cf852._0x26a920)]);function _0x45effa(_0x1a21d5,_0x4959b6,_0x2ca31c,_0x4f8396){return _0x1d1511(_0x1a21d5,_0x4959b6-_0x2fa996._0xee8e6a,_0x2ca31c-0x4c,_0x2ca31c- -0x71);}await assertFile(_0x4038e9);if(!await _0xb8c1c6[_0x45effa(0x291,_0x1cf852._0x34582c,0x1bb,_0x1cf852._0x3669bc)](_0x4038e9))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3ead77[_0x550b68(_0x1cf852._0x4c4f06,_0x1cf852._0x2b2577,_0x1cf852._0x1966c1,_0x1cf852._0x21a51c)],{'filePath':_0x3ead77['filePath']});await _0xb8c1c6[_0x45effa(0x298,_0x1cf852._0x4c3f10,_0x1cf852._0x380fc6,0x24b)](_0x4038e9,!![]);const _0xbaf245={'file':_0x4038e9,'line':_0x3ead77['line']-0x1,'character':_0x3ead77[_0x550b68(0x429,0x323,0x247,0x361)]-0x1};switch(_0x4d6cf3){case _0x550b68(_0x1cf852._0x397a1a,0x414,_0x1cf852._0x8d91f6,0x3ea):{const _0x2365a8=await _0xb8c1c6[_0x550b68(0x455,0x379,_0x1cf852._0x5f4c4c,_0x1cf852._0x3e35d9)](_0xbaf245);return yield createToolOutput(formatHover(_0x2365a8),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'hover':_0x2365a8}),void 0x0;}case'diagnostics':{const _0x2f6b93=await _0xb8c1c6[_0x550b68(_0x1cf852._0x19adea,0x30b,_0x1cf852._0x500411,0x312)](_0x4038e9);return yield createToolOutput(formatDiagnostics(_0x2f6b93),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'diagnostics':_0x2f6b93}),void 0x0;}case'goToDefinition':{const _0x137c55=await _0xb8c1c6['definition'](_0xbaf245);return yield createToolOutput(formatLocations(_0x137c55),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x137c55}),void 0x0;}case'findReferences':{const _0x5d7caf=await _0xb8c1c6[_0x550b68(0x271,_0x1cf852._0x7ca544,_0x1cf852._0x5bd18a,0x2ea)](_0xbaf245);return yield createToolOutput(formatLocations(_0x5d7caf),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x5d7caf}),void 0x0;}case _0x45effa(_0x1cf852._0x459ee3,-_0x1cf852._0x5b6111,_0x1cf852._0x3bef3c,0xa0):{const _0x41b55c=await _0xb8c1c6[_0x550b68(0x36b,0x4df,0x43f,_0x1cf852._0x15b9ca)](_0xbaf245);return yield createToolOutput(formatLocations(_0x41b55c),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x41b55c}),void 0x0;}case _0x45effa(-0xb9,_0x1cf852._0x26242f,0x52,_0x1cf852._0x40a332):{const _0x562e03=await _0xb8c1c6[_0x550b68(_0x1cf852._0x537ea2,_0x1cf852._0x477dbf,_0x1cf852._0x14527c,0x355)](_0x4038e9);return yield createToolOutput(formatSymbols(_0x562e03),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'symbols':_0x562e03}),void 0x0;}case _0x550b68(0x2d6,_0x1cf852._0x4c893b,0x1c8,_0x1cf852._0x25e93c):{const _0x488d6b=await _0xb8c1c6['prepareCallHierarchy'](_0xbaf245);return yield createToolOutput(formatSymbols(_0x488d6b),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'symbols':toStructured(_0x488d6b)}),void 0x0;}case _0x550b68(0x4cb,0x4ce,0x445,_0x1cf852._0x4566e3):{const _0x5d4f7e=await _0xb8c1c6[_0x550b68(_0x1cf852._0x4d2571,_0x1cf852._0x5a3d9f,_0x1cf852._0x228417,_0x1cf852._0x99b707)](_0xbaf245);return yield createToolOutput(formatIncomingCalls(_0x5d4f7e),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'calls':toStructured(_0x5d4f7e)}),void 0x0;}case _0x550b68(_0x1cf852._0x1c9316,0x371,_0x1cf852._0x3b4e95,_0x1cf852._0x2685a2):{const _0x5b6860=await _0xb8c1c6[_0x550b68(_0x1cf852._0x101a95,_0x1cf852._0x2528b5,0x385,0x459)](_0xbaf245);return yield createToolOutput(formatOutgoingCalls(_0x5b6860),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'calls':toStructured(_0x5b6860)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x2838f9,readFile as _0x22bd93,writeFile as _0x51c598}from'fs/promises';import{join as _0x12822a}from'path';function sanitizeStorageKey(_0x4db57c){const _0x4cc4e2={_0x47dfba:0x500,_0x1634c5:0x51f,_0x4eefe6:0x51e,_0x401d2a:0x664,_0x228ae1:0x51f,_0xb54f32:0x2e4,_0x6c0f53:0x29f},_0x27a2be={_0x37d5dd:0x14a,_0x3d8c8d:0x10a};function _0x5a4a97(_0x4e587d,_0x3e5d87,_0x1d37ad,_0x4559d9){return _0x57b9de(_0x4e587d-_0x27a2be._0x37d5dd,_0x4e587d,_0x3e5d87- -_0x27a2be._0x3d8c8d,_0x4559d9-0x1e8);}function _0x3fb393(_0x58c98e,_0x429b3f,_0x3525a5,_0x428516){return _0x23b1c2(_0x58c98e-0x7f,_0x429b3f,_0x3525a5-0xe0,_0x428516-0xcc);}return _0x4db57c[_0x3fb393(_0x4cc4e2._0x47dfba,0x52f,_0x4cc4e2._0x1634c5,_0x4cc4e2._0x4eefe6)](/[^a-zA-Z0-9_]+/g,'_')[_0x3fb393(_0x4cc4e2._0x401d2a,0x3d6,_0x4cc4e2._0x228ae1,0x4f1)](/^_+|_+$/g,'')||_0x5a4a97(0x20c,_0x4cc4e2._0xb54f32,_0x4cc4e2._0x6c0f53,0x2d3);}function storagePath(_0x9209c){const _0x1b0c65={_0x5253da:0x338,_0x220a73:0x305,_0x21a0e9:0x3e2,_0x5a141e:0x2dd,_0x3c7828:0x3c5,_0x52f95b:0x496,_0x49f174:0xb0},_0x41ce7f={_0x31386a:0x3ba,_0x124bc8:0x16c},_0x3c0853=sanitizeStorageKey(_0x9209c[_0x598c87(0x154,_0x1b0c65._0x5253da,_0x1b0c65._0x220a73,0x24d)][_0x598c87(_0x1b0c65._0x21a0e9,0x488,_0x1b0c65._0x5a141e,_0x1b0c65._0x3c7828)]?.[_0x598c87(0x227,0x3da,_0x1b0c65._0x52f95b,0x37a)]??_0x9209c['serverName']);function _0x11d45c(_0x2ea391,_0x1f8768,_0x5f3b4c,_0x1e3144){return _0x23b1c2(_0x2ea391-0x148,_0x1e3144,_0x2ea391- -_0x41ce7f._0x31386a,_0x1e3144-_0x41ce7f._0x124bc8);}function _0x598c87(_0x40434b,_0x3ed9d0,_0x3c5b69,_0x5670e4){return _0x57b9de(_0x40434b-0x1c6,_0x3c5b69,_0x5670e4- -0x190,_0x5670e4-0x139);}return _0x12822a(_0x9209c['storageDir'],_0x3c0853+_0x11d45c(-0xd1,-0xa6,-_0x1b0c65._0x49f174,-0x148));}async function readStore(_0x1fc9ae){const _0x348c25={_0x4f5c4c:0x137,_0x43443f:0x122,_0x51db72:0x5bd,_0x2ac182:0xdb,_0xfcc178:0x39c,_0x2eb604:0x3cd},_0x4c4c6c={_0x8fd1a2:0xe3,_0x97713:0x1b4},_0x13e776={_0x58824e:0x74,_0x1f0d5f:0x106};function _0x40f63d(_0x3769e3,_0x3874a3,_0x1ce5e5,_0x45bba3){return _0x23b1c2(_0x3769e3-0x51,_0x3874a3,_0x45bba3-_0x13e776._0x58824e,_0x45bba3-_0x13e776._0x1f0d5f);}function _0x321bb5(_0x409986,_0x16d394,_0x134ae9,_0x1a793a){return _0x23b1c2(_0x409986-_0x4c4c6c._0x8fd1a2,_0x1a793a,_0x134ae9- -0x3ad,_0x1a793a-_0x4c4c6c._0x97713);}try{return JSON[_0x321bb5(-_0x348c25._0x4f5c4c,-0x1b3,-_0x348c25._0x43443f,-0x11d)](await _0x22bd93(_0x1fc9ae,_0x40f63d(0x3e7,0x40e,_0x348c25._0x51db72,0x47c)));}catch(_0x2ab490){if(_0x2ab490 instanceof Error&&_0x321bb5(0x124,0x5e,_0x348c25._0x2ac182,0xff)in _0x2ab490&&_0x2ab490['code']===_0x40f63d(0x50c,_0x348c25._0xfcc178,0x3ac,_0x348c25._0x2eb604))return{};throw _0x2ab490;}}async function writeStore(_0x584432,_0x13a6bb){const _0x6a625a={_0x321b2d:0x256,_0x241cf6:0x299},_0x1bb30f={_0x75950d:0x1c6,_0x2e5b47:0x6c},_0x40ef85={_0x2d27bf:0x85,_0x1d8cf0:0x296};await _0x2838f9(_0x12822a(_0x584432,'..'),{'recursive':!![]});function _0x58337f(_0x1f51d5,_0x5551d6,_0x34787c,_0x516466){return _0x23b1c2(_0x1f51d5-_0x40ef85._0x2d27bf,_0x34787c,_0x5551d6- -_0x40ef85._0x1d8cf0,_0x516466-0x1ca);}function _0x1cc955(_0x149775,_0x1eaee1,_0x258a99,_0x2c2f7f){return _0x57b9de(_0x149775-0x1c,_0x1eaee1,_0x149775- -_0x1bb30f._0x75950d,_0x2c2f7f-_0x1bb30f._0x2e5b47);}await _0x51c598(_0x584432,JSON[_0x1cc955(_0x6a625a._0x321b2d,0x31c,0x16a,0x1a9)](_0x13a6bb,null,0x2),_0x58337f(0x1f4,0x172,_0x6a625a._0x241cf6,0x242));}async function updateStore(_0x3468ba,_0x5ab371){const _0x11b4df=await readStore(_0x3468ba);_0x5ab371(_0x11b4df),await writeStore(_0x3468ba,_0x11b4df);}function createMcpOAuthProvider(_0x41f603){const _0x3e41d0={_0x426fe0:0x278,_0x21322b:0x2ec,_0x217538:0x224,_0x13fb33:0x55,_0x58fabb:0x190,_0x156e76:0x16e,_0x1a5427:0xda,_0x4aff06:0x541,_0x4424c1:0x4f0,_0x49d9d5:0x14d,_0x33bbd2:0x294,_0x1730c9:0x160,_0x5ce730:0x4e0,_0x22588e:0x4ea,_0x2de006:0x1e4,_0x54f8ad:0x2a0,_0x55262a:0x9f,_0xb8d4b0:0x416,_0x225fd2:0x35f,_0x4ab439:0x55c,_0x57737b:0x120,_0x4f3a96:0x52e,_0x2c8538:0x60e,_0x4ec364:0x6a6,_0x592517:0x6ba,_0x8526c0:0x534,_0x105b5f:0x61e,_0x321cf1:0x584},_0x21e989={_0x2dcc7f:0x40d,_0x5f44b3:0x445},_0x54d50d={_0xb3e8a3:0x7c2,_0x5b6544:0x7c5,_0x57527e:0x6a7,_0x30ea1f:0x648,_0x4f9eb9:0x72c,_0x575d6f:0x787,_0x205cb4:0x6ac,_0x9c9ffc:0x77c,_0x5cfbb9:0x5af,_0x52229a:0x78f,_0x942036:0x695,_0x544ef9:0x5a5,_0x116148:0x592,_0xa832ac:0x5c7,_0x2a807c:0x58a,_0x32f8ea:0x6a2,_0xe63b1c:0x57c},_0x627ba0={_0x210e3d:0x1a7},_0x528f54={_0x3f65da:0x21a},_0x8e11de={_0x3f5e3e:0x5ae,_0x50c875:0x7a8,_0x22f88d:0x732},_0x46143b={_0x4c6982:0x12e},_0x463631={_0x3ccd6d:0x1db,_0x505743:0x74},_0x1bace0={_0x178cb8:0x1f7,_0x16695a:0xd6,_0x2b5ff2:0x3dc,_0x28640f:0x3e1},_0x3a05a0={_0x349b7f:0xae},_0xf93a1e={_0x5e8a6e:0x103,_0x2f14cc:0x1ae,_0x5b3cd3:0x30f},_0xf199a1={_0x271582:0x90,_0x4ae774:0x3f},_0x249ecb={_0x2f76af:0x126},_0xd3a969={_0x42145c:0x167},_0x20d400={_0x1d8a51:0x8a,_0x143a3c:0x22b,_0x3ada97:0xa8},_0x577d74=storagePath(_0x41f603),_0x358371=_0x41f603['config'][_0x4958c4(_0x3e41d0._0x426fe0,0x32a,_0x3e41d0._0x21322b,_0x3e41d0._0x217538)]?.[_0x4958c4(_0x3e41d0._0x13fb33,_0x3e41d0._0x58fabb,_0x3e41d0._0x156e76,_0x3e41d0._0x1a5427)]?.[_0x466343(0x5a2,_0x3e41d0._0x4aff06,_0x3e41d0._0x4424c1,0x400)]('\x20');function _0x4958c4(_0x532a28,_0x76241e,_0x421c1e,_0x107cfb){return _0x57b9de(_0x532a28-_0x20d400._0x1d8a51,_0x532a28,_0x76241e- -_0x20d400._0x143a3c,_0x107cfb-_0x20d400._0x3ada97);}const _0x376305={'client_name':_0x4958c4(0x200,_0x3e41d0._0x49d9d5,_0x3e41d0._0x33bbd2,_0x3e41d0._0x1730c9),'redirect_uris':[_0x41f603[_0x466343(_0x3e41d0._0x5ce730,0x5af,0x5e2,_0x3e41d0._0x22588e)]],'grant_types':[_0x4958c4(0x326,_0x3e41d0._0x2de006,_0x3e41d0._0x54f8ad,_0x3e41d0._0x55262a),_0x466343(_0x3e41d0._0xb8d4b0,_0x3e41d0._0x225fd2,0x46c,_0x3e41d0._0x4ab439)],'response_types':['code'],'token_endpoint_auth_method':_0x4958c4(0xe7,0x1d1,_0x3e41d0._0x57737b,0x2bf),..._0x358371?{'scope':_0x358371}:{}};function _0x466343(_0x2cf672,_0x3ae705,_0x35f10d,_0x297901){return _0x57b9de(_0x2cf672-_0xd3a969._0x42145c,_0x297901,_0x35f10d-0x151,_0x297901-0x10a);}return{'clientMetadataUrl':_0x41f603[_0x466343(0x411,0x542,_0x3e41d0._0x4f3a96,_0x3e41d0._0x2c8538)][_0x466343(0x7f6,0x6d1,_0x3e41d0._0x4ec364,_0x3e41d0._0x592517)]?.[_0x466343(0x725,_0x3e41d0._0x8526c0,_0x3e41d0._0x105b5f,_0x3e41d0._0x321cf1)],get 'redirectUrl'(){function _0xe95f21(_0x2e865a,_0x107347,_0x59fa37,_0x331449){return _0x466343(_0x2e865a-0x1d2,_0x107347-_0x249ecb._0x2f76af,_0x59fa37- -0x552,_0x2e865a);}return _0x41f603[_0xe95f21(0x1d9,0x18f,_0xf199a1._0x271582,_0xf199a1._0x4ae774)];},get 'clientMetadata'(){return _0x376305;},async 'state'(){const _0x418d52={_0xdba13:0x48f,_0x3693c0:0x594,_0x28c39e:0x593,_0x50f812:0x42b},_0x51144e=await readStore(_0x577d74);if(_0x51144e[_0x45993c(_0x1bace0._0x178cb8,0x333,0x25b,_0x1bace0._0x16695a)])return _0x51144e[_0x245570(0x557,_0x1bace0._0x2b5ff2,_0x1bace0._0x28640f,0x458)];function _0x45993c(_0x32f748,_0x5ca811,_0x3395ec,_0x41194f){return _0x466343(_0x32f748-_0xf93a1e._0x5e8a6e,_0x5ca811-_0xf93a1e._0x2f14cc,_0x32f748- -_0xf93a1e._0x5b3cd3,_0x41194f);}function _0x245570(_0x20c05d,_0x2b5e2f,_0x23fd1f,_0x1c5d81){return _0x466343(_0x20c05d-0x0,_0x2b5e2f-0xf8,_0x1c5d81- -_0x3a05a0._0x349b7f,_0x23fd1f);}const _0x5bf261=randomUUID();return await updateStore(_0x577d74,_0x16601a=>{function _0x470359(_0x20a9ba,_0x52ccdd,_0x235886,_0x58fe71){return _0x45993c(_0x20a9ba-0x298,_0x52ccdd-0x1db,_0x235886-0xc2,_0x52ccdd);}_0x16601a[_0x470359(_0x418d52._0xdba13,_0x418d52._0x3693c0,_0x418d52._0x28c39e,_0x418d52._0x50f812)]=_0x5bf261;}),_0x5bf261;},async 'clientInformation'(){function _0x46e736(_0x48f2ce,_0x18cc4f,_0x589883,_0x1ccc68){return _0x4958c4(_0x589883,_0x18cc4f-0x153,_0x589883-_0x463631._0x3ccd6d,_0x1ccc68-_0x463631._0x505743);}return(await readStore(_0x577d74))[_0x46e736(0x34e,0x322,0x21a,0x2e5)];},async 'saveClientInformation'(_0x37ed19){const _0x34a48b={_0x5137b9:0x123,_0x4fb053:0x1e7};await updateStore(_0x577d74,_0x47c2bc=>{function _0x22d12f(_0x350a78,_0x3b36e5,_0x2afc1b,_0xe4b8ef){return _0x27a7(_0x2afc1b- -0xcd,_0xe4b8ef);}_0x47c2bc[_0x22d12f(0x325,_0x34a48b._0x5137b9,_0x34a48b._0x4fb053,0x2bd)]=_0x37ed19;});},async 'tokens'(){function _0x936883(_0x57d2f2,_0x1c2edd,_0x16d42d,_0x4113c9){return _0x466343(_0x57d2f2-0x18b,_0x1c2edd-0x32,_0x57d2f2-_0x46143b._0x4c6982,_0x4113c9);}return(await readStore(_0x577d74))[_0x936883(0x6ac,_0x8e11de._0x3f5e3e,_0x8e11de._0x50c875,_0x8e11de._0x22f88d)];},async 'saveTokens'(_0x24564f){const _0x1f1a1d={_0x543f58:0x33f,_0x20ae1c:0x351,_0x5025ee:0x3bf};await updateStore(_0x577d74,_0x43491d=>{const _0x189e44={_0x159a82:0xd8};function _0x549505(_0x138df8,_0x255340,_0x35d4f2,_0x13f971){return _0x27a7(_0x13f971-_0x189e44._0x159a82,_0x138df8);}_0x43491d[_0x549505(_0x1f1a1d._0x543f58,_0x1f1a1d._0x20ae1c,0x2a4,_0x1f1a1d._0x5025ee)]=_0x24564f;});},async 'redirectToAuthorization'(_0x19cb8f){function _0x5635c2(_0x4ae91d,_0x3cac80,_0x4c2815,_0x3e2554){return _0x466343(_0x4ae91d-0xaa,_0x3cac80-0x8,_0x4ae91d- -0x262,_0x3e2554);}await _0x41f603[_0x5635c2(0x368,0x458,_0x528f54._0x3f65da,0x41a)](_0x19cb8f);},async 'saveCodeVerifier'(_0x1de1f6){await updateStore(_0x577d74,_0x16bd9d=>{function _0x402460(_0x1fc330,_0x17f17f,_0x5aca87,_0x14349c){return _0x27a7(_0x17f17f- -0x13d,_0x14349c);}_0x16bd9d[_0x402460(0x78,0x1bc,0x173,_0x627ba0._0x210e3d)]=_0x1de1f6;});},async 'codeVerifier'(){const _0x263f3f={_0xf6f766:0x19a,_0x7d2ec8:0x158};function _0x5abc35(_0x2604da,_0x1ac934,_0x2c4983,_0x3461ae){return _0x466343(_0x2604da-_0x263f3f._0xf6f766,_0x1ac934-0xc3,_0x1ac934- -_0x263f3f._0x7d2ec8,_0x2604da);}const _0x29e544=(await readStore(_0x577d74))['codeVerifier'];if(!_0x29e544)throw new Error(_0x5abc35(0x3eb,0x4fb,0x5ca,0x48c));return _0x29e544;},async 'invalidateCredentials'(_0x146c4a){const _0x172f13={_0x4fb7b2:0x24f};await updateStore(_0x577d74,_0x4f8fb6=>{const _0x5e6096={_0xf22636:0x3c1};(_0x146c4a===_0x5b13c6(0x595,_0x54d50d._0xb3e8a3,_0x54d50d._0x5b6544,_0x54d50d._0x57527e)||_0x146c4a==='client')&&(_0x4f8fb6[_0x5b13c6(_0x54d50d._0x30ea1f,0x6ad,_0x54d50d._0x4f9eb9,0x675)]=void 0x0);(_0x146c4a===_0x5b13c6(_0x54d50d._0x575d6f,_0x54d50d._0x205cb4,_0x54d50d._0x9c9ffc,0x6a7)||_0x146c4a===_0x5b13c6(0x605,0x6bc,_0x54d50d._0x5cfbb9,0x6a8))&&(_0x4f8fb6[_0x5b13c6(_0x54d50d._0x52229a,0x65e,0x658,0x6a8)]=void 0x0);(_0x146c4a===_0x5b13c6(_0x54d50d._0x942036,0x6d9,_0x54d50d._0x544ef9,0x6a7)||_0x146c4a===_0x5b13c6(0x564,0x636,0x479,_0x54d50d._0x116148))&&(_0x4f8fb6['codeVerifier']=void 0x0,_0x4f8fb6[_0x29b369(0x4be,0x44d,0x415,0x4a5)]=void 0x0);function _0x29b369(_0x3ebd61,_0x40c585,_0x5dcea9,_0x326c44){return _0x27a7(_0x3ebd61-_0x172f13._0x4fb7b2,_0x5dcea9);}function _0x5b13c6(_0x3ae9a2,_0x8311e3,_0x1e0d84,_0x18998c){return _0x27a7(_0x18998c-_0x5e6096._0xf22636,_0x1e0d84);}(_0x146c4a==='all'||_0x146c4a===_0x5b13c6(0x6f7,0x4ce,0x477,_0x54d50d._0xa832ac))&&(_0x4f8fb6[_0x29b369(_0x54d50d._0x2a807c,_0x54d50d._0x32f8ea,0x5f7,_0x54d50d._0xe63b1c)]=void 0x0);});},async 'saveDiscoveryState'(_0x3b37eb){await updateStore(_0x577d74,_0x3ad6d0=>{const _0x23abbb={_0x25a2e5:0x74};function _0x11356e(_0x21f743,_0x3773d2,_0x3a0ae3,_0x392ee1){return _0x27a7(_0x21f743-_0x23abbb._0x25a2e5,_0x392ee1);}_0x3ad6d0[_0x11356e(0x3af,_0x21e989._0x2dcc7f,_0x21e989._0x5f44b3,0x30f)]=_0x3b37eb;});},async 'discoveryState'(){return(await readStore(_0x577d74))['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(_0x172c03,_0x3170c5){const _0x11e8a8={_0x5c9509:0x4da},_0x440335={_0x4e6a8a:0xee};function _0x157e44(_0x264cae,_0x54be96,_0x566510,_0x53c162){return _0x57b9de(_0x264cae-0x1d7,_0x566510,_0x264cae- -0x3e7,_0x53c162-0xa0);}function _0x56759c(_0x246109,_0x28a531,_0x2bc05b,_0xae2a65){return _0x23b1c2(_0x246109-0x14e,_0x2bc05b,_0x246109-_0x440335._0x4e6a8a,_0xae2a65-0x163);}const _0x121c71=_0xe28efe=>_0xe28efe[_0x56759c(0x52d,0x46a,0x596,0x5e8)](/[^a-zA-Z0-9_]+/g,'_')[_0x56759c(0x52d,0x47e,0x407,0x42f)](/^_+|_+$/g,'');return _0x56759c(0x565,0x418,0x675,_0x11e8a8._0x5c9509)+_0x121c71(_0x172c03)+'_'+_0x121c71(_0x3170c5);}function isObject(_0x169aec){const _0x1b52e1={_0x52a664:0x241,_0x18a2ae:0x37a,_0x1c67d:0x3d6},_0x17a932={_0x48489b:0x1e7,_0x32d311:0xc9,_0x26b015:0xea},_0x14e127={_0x5110c9:0x4c0};function _0x3cb03d(_0x349610,_0x2927d7,_0x306e96,_0x3e9aed){return _0x57b9de(_0x349610-0x175,_0x3e9aed,_0x306e96- -_0x14e127._0x5110c9,_0x3e9aed-0x129);}function _0x15b352(_0x983321,_0x56c0bd,_0x2fbeb6,_0x29e8df){return _0x23b1c2(_0x983321-_0x17a932._0x48489b,_0x2fbeb6,_0x983321- -_0x17a932._0x32d311,_0x29e8df-_0x17a932._0x26b015);}return typeof _0x169aec===_0x15b352(0x313,_0x1b52e1._0x52a664,0x289,0x282)&&_0x169aec!==null&&!Array[_0x15b352(_0x1b52e1._0x18a2ae,0x256,_0x1b52e1._0x1c67d,0x4ca)](_0x169aec);}function toSupportedSchema(_0x3f227a){const _0x2fe0a6={_0x3eddf7:0x6c1,_0x34d452:0x693,_0xacd710:0x5cb,_0x26afb9:0x29c,_0x4cc5cf:0x334,_0x2bcff3:0x6fd,_0x4624f6:0x4b1,_0x37f5bf:0x511,_0x3ceee8:0x47f,_0x5dbd6d:0x558,_0x1ea83c:0x51e,_0x28c58a:0x42b,_0x230ac4:0x4e3,_0x2445ea:0x43b,_0x4c62fe:0x543,_0x4c9d1f:0x560,_0x41b1aa:0x5be,_0x3fe742:0x69c,_0x2e3b15:0x55b,_0xbd5e73:0x4d0,_0x5ea2b6:0x591,_0x26c706:0x6cb,_0x512bef:0x5d8,_0x289c97:0x701,_0x56b0ba:0x6d8,_0x105951:0x5f7},_0x42129e={_0x540e28:0xc,_0x458a9b:0x1bc},_0x5b2c82={_0x15b30e:0x18,_0x46e8ba:0xaf,_0x772a0d:0xd2};if(!isObject(_0x3f227a))return void 0x0;if(_0x3f227a[_0x5f1993(_0x2fe0a6._0x3eddf7,_0x2fe0a6._0x34d452,0x73a,_0x2fe0a6._0xacd710)]===_0x7b990d(_0x2fe0a6._0x26afb9,0x2c9,_0x2fe0a6._0x4cc5cf,0x389))return{'type':'string'};function _0x7b990d(_0x369e51,_0x143995,_0x32baaa,_0x58e670){return _0x23b1c2(_0x369e51-_0x5b2c82._0x15b30e,_0x369e51,_0x32baaa-_0x5b2c82._0x46e8ba,_0x58e670-_0x5b2c82._0x772a0d);}function _0x5f1993(_0x17dddd,_0xf5a8c2,_0x382650,_0x745169){return _0x23b1c2(_0x17dddd-_0x42129e._0x540e28,_0x382650,_0xf5a8c2-0x231,_0x745169-_0x42129e._0x458a9b);}if(_0x3f227a[_0x5f1993(0x69b,0x693,0x5a4,_0x2fe0a6._0x2bcff3)]==='number'||_0x3f227a[_0x7b990d(_0x2fe0a6._0x4624f6,0x4bc,_0x2fe0a6._0x37f5bf,_0x2fe0a6._0x3ceee8)]==='integer')return{'type':_0x7b990d(0x474,_0x2fe0a6._0x5dbd6d,_0x2fe0a6._0x1ea83c,_0x2fe0a6._0x28c58a)};if(_0x3f227a['type']==='boolean')return{'type':_0x7b990d(_0x2fe0a6._0x230ac4,_0x2fe0a6._0x2445ea,_0x2fe0a6._0x4c62fe,_0x2fe0a6._0x4c9d1f)};if(_0x3f227a[_0x7b990d(0x434,_0x2fe0a6._0x41b1aa,0x511,0x5a3)]===_0x5f1993(_0x2fe0a6._0x3fe742,_0x2fe0a6._0x2e3b15,0x602,0x5af))return{'type':_0x5f1993(_0x2fe0a6._0xbd5e73,0x55b,0x4ea,0x5be),'items':toSupportedSchema(_0x3f227a[_0x5f1993(_0x2fe0a6._0x5ea2b6,_0x2fe0a6._0x26c706,0x600,_0x2fe0a6._0x512bef)])??{'type':_0x7b990d(0x243,0x2eb,0x334,0x314)}};if(_0x3f227a[_0x5f1993(_0x2fe0a6._0x289c97,0x693,_0x2fe0a6._0x56b0ba,_0x2fe0a6._0x105951)]==='object')return toNuvinToolSchema(_0x3f227a);return void 0x0;}function toNuvinToolSchema(_0x4e7821){const _0x5ac8e6={_0x7e3a52:0x42c,_0x2399a9:0x3c8,_0x2d90fb:0x4c0,_0x1035b6:0x3e2,_0x56edb5:0x43a,_0x11a025:0x503,_0x413437:0x5f8,_0x1cd235:0x4c7,_0x31170c:0x585,_0x189ddc:0x2a7,_0x5396d3:0x2fa,_0x4c198d:0x377,_0x13b3ed:0x4a3,_0x31201c:0x4a1,_0x518d40:0x370,_0x2c9b6c:0x348,_0x5e72e3:0x4f8,_0x44e9a5:0x4b9,_0x59ad48:0x3bb,_0x58d1f7:0x54a},_0x53df7b={_0x1886d0:0x50},_0x3e2f3a={_0x3c2334:0x14a};if(!isObject(_0x4e7821)||_0x4e7821[_0x58066f(_0x5ac8e6._0x7e3a52,_0x5ac8e6._0x2399a9,0x4ed,_0x5ac8e6._0x2d90fb)]!==_0x58066f(0x4bb,_0x5ac8e6._0x1035b6,0x52d,0x43a))return{'type':_0x58066f(0x478,0x341,0x57e,_0x5ac8e6._0x56edb5),'properties':{}};const _0x4e3c71={},_0x153619=isObject(_0x4e7821[_0x35d9a0(0x4be,_0x5ac8e6._0x11a025,_0x5ac8e6._0x11a025,0x48b)])?_0x4e7821[_0x58066f(_0x5ac8e6._0x413437,_0x5ac8e6._0x1cd235,_0x5ac8e6._0x31170c,0x4f1)]:{};for(const [_0x2da11b,_0x11489]of Object[_0x35d9a0(0x3d6,0x3f6,_0x5ac8e6._0x189ddc,_0x5ac8e6._0x5396d3)](_0x153619)){const _0x405181=toSupportedSchema(_0x11489);if(_0x405181)_0x4e3c71[_0x2da11b]=_0x405181;}const _0x539b56=Array[_0x58066f(_0x5ac8e6._0x4c198d,_0x5ac8e6._0x13b3ed,0x368,_0x5ac8e6._0x31201c)](_0x4e7821['required'])?_0x4e7821[_0x58066f(_0x5ac8e6._0x518d40,0x2fd,0x281,_0x5ac8e6._0x2c9b6c)]['filter'](_0x589a59=>typeof _0x589a59===_0x35d9a0(0x2b0,0x3f9,0x24d,0x1e3)):void 0x0;function _0x35d9a0(_0x46f81f,_0x1c6bb1,_0x3b782e,_0xed7cec){return _0x23b1c2(_0x46f81f-_0x3e2f3a._0x3c2334,_0xed7cec,_0x46f81f-0x2b,_0xed7cec-0x1b2);}function _0x58066f(_0x35d1bd,_0xfae789,_0x2750da,_0x3f670c){return _0x23b1c2(_0x35d1bd-0x87,_0x2750da,_0x3f670c-0x5e,_0x3f670c-_0x53df7b._0x1886d0);}return _0x539b56?.['length']?{'type':_0x58066f(_0x5ac8e6._0x5e72e3,_0x5ac8e6._0x44e9a5,_0x5ac8e6._0x59ad48,_0x5ac8e6._0x56edb5),'properties':_0x4e3c71,'required':_0x539b56}:{'type':_0x35d9a0(0x407,_0x5ac8e6._0x58d1f7,0x410,0x51c),'properties':_0x4e3c71};}function isJsonObject(_0x5ef2f5){const _0x24cdd0={_0x2d8f76:0x380,_0x3fd187:0x31d,_0x5488e0:0x33e,_0x2074ed:0x376},_0xcc6bc={_0x284f23:0x1b9,_0x496690:0x5c,_0x377db8:0x88},_0x8e583b={_0x141cbd:0x62,_0x38d98a:0x1a4};function _0x4e01ef(_0x3e5e52,_0x1c1081,_0x1ddfb4,_0x3ae781){return _0x57b9de(_0x3e5e52-0x17b,_0x1c1081,_0x1ddfb4- -_0x8e583b._0x141cbd,_0x3ae781-_0x8e583b._0x38d98a);}function _0x3ff677(_0xe094da,_0x1a08ba,_0x4e2209,_0x50133a){return _0x23b1c2(_0xe094da-_0xcc6bc._0x284f23,_0x4e2209,_0x50133a- -_0xcc6bc._0x496690,_0x50133a-_0xcc6bc._0x377db8);}return typeof _0x5ef2f5===_0x3ff677(0x310,0x4a8,0x3df,_0x24cdd0._0x2d8f76)&&_0x5ef2f5!==null&&!Array[_0x3ff677(_0x24cdd0._0x3fd187,_0x24cdd0._0x5488e0,_0x24cdd0._0x2074ed,0x3e7)](_0x5ef2f5);}function formatMcpContent(_0x3f7610){const _0x2910fb={_0x1cfbb7:0x4c5,_0x519ca2:0x5d8,_0x1c50af:0x5c1,_0x166ae9:0x71f,_0x214448:0x54b,_0x2ce3e3:0x5a0,_0x5ebbba:0x451,_0x48b507:0x559,_0x207da5:0x76e,_0x7f2d7f:0x7b8,_0x41c8fa:0x66f},_0x19ad50={_0x1020d8:0x174},_0x42c4e0={_0x3e5726:0x191,_0xac6029:0x26c,_0x568843:0x14e},_0xa5b933={_0x524afd:0x790,_0x49ae10:0x741,_0x46e059:0x60b,_0x4d25d5:0x545,_0x34c63a:0x55b,_0x48a4da:0x5a2,_0x3b9e8d:0x53b,_0x55f7ff:0x427,_0x438ed5:0x60b,_0x46d168:0x50b,_0x465827:0x5cf,_0x37d19b:0x633},_0x44432e=Array['isArray'](_0x3f7610[_0x285f06(0x4ca,_0x2910fb._0x1cfbb7,_0x2910fb._0x519ca2,_0x2910fb._0x1c50af)])?_0x3f7610['content']:[],_0x1c6ccd=_0x44432e[_0x3b4ccb(0x5cf,0x616,_0x2910fb._0x166ae9,0x64c)](_0x3eb159=>{const _0x5adee7={_0x412fb7:0x1bd,_0x3ae39f:0x64},_0x4281cc={_0x545242:0x7d,_0x38c2a5:0x1ad};function _0x2d19e6(_0x512e56,_0x295dac,_0x5be512,_0xcb1cd){return _0x285f06(_0xcb1cd,_0x295dac-_0x4281cc._0x545242,_0x5be512-_0x4281cc._0x38c2a5,_0x295dac- -0x1ff);}function _0x5c0de8(_0x3dc336,_0x1754d8,_0x4dca57,_0x47099a){return _0x285f06(_0x47099a,_0x1754d8-0xb8,_0x4dca57-_0x5adee7._0x412fb7,_0x3dc336- -_0x5adee7._0x3ae39f);}if(!isObject(_0x3eb159))return'';if(_0x3eb159[_0x5c0de8(0x718,_0xa5b933._0x524afd,0x6df,_0xa5b933._0x49ae10)]===_0x5c0de8(_0xa5b933._0x46e059,_0xa5b933._0x4d25d5,_0xa5b933._0x34c63a,0x653)&&typeof _0x3eb159[_0x5c0de8(0x60b,_0xa5b933._0x48a4da,0x62e,0x548)]===_0x5c0de8(_0xa5b933._0x3b9e8d,0x61f,0x5b3,_0xa5b933._0x55f7ff))return _0x3eb159[_0x5c0de8(_0xa5b933._0x438ed5,0x4d6,_0xa5b933._0x46d168,_0xa5b933._0x465827)];return JSON[_0x5c0de8(0x624,0x646,_0xa5b933._0x37d19b,0x65e)](_0x3eb159);})[_0x3b4ccb(_0x2910fb._0x214448,0x47b,0x56e,_0x2910fb._0x2ce3e3)](_0xe8cf41=>_0xe8cf41[_0x3b4ccb(0x707,0x7b2,0x6a4,0x66f)]>0x0)[_0x3b4ccb(0x544,_0x2910fb._0x5ebbba,0x490,0x4b7)]('\x0a');function _0x285f06(_0x1c3519,_0x81877f,_0x41819b,_0x3e75cf){return _0x57b9de(_0x1c3519-_0x42c4e0._0x3e5726,_0x1c3519,_0x3e75cf-_0x42c4e0._0xac6029,_0x3e75cf-_0x42c4e0._0x568843);}function _0x3b4ccb(_0x2f79ca,_0x2d215a,_0x37daec,_0x145faf){return _0x23b1c2(_0x2f79ca-_0x19ad50._0x1020d8,_0x2d215a,_0x145faf-0x1c6,_0x145faf-0x17a);}if(_0x1c6ccd[_0x3b4ccb(_0x2910fb._0x48b507,_0x2910fb._0x207da5,_0x2910fb._0x7f2d7f,_0x2910fb._0x41c8fa)]>0x0)return _0x1c6ccd;return JSON['stringify'](_0x3f7610,null,0x2);}function createMcpTool(_0x1fa575){const _0x554b36={_0x3a9002:0x2ff,_0x59b3a1:0x44d,_0x18afd7:0x38a,_0x742d4d:0x18c,_0x4adcd8:0xaf,_0x111b4b:0x10d,_0x14a72e:0x141,_0x362c90:0x2f2,_0x43cd64:0x318,_0x411c8c:0x2ad,_0x50139d:0x1ed,_0x549724:0x136,_0x4e1222:0x28e,_0x2638d6:0x34f,_0x532489:0x22c,_0x3ca931:0x2e1,_0x563235:0x296,_0x37a48e:0x2b2,_0x4ede9f:0x27f,_0x439cd0:0x307,_0x23ef1f:0x126,_0x2f38ae:0x34c,_0x8191eb:0x25d},_0x70097c={_0x57d78c:0x233,_0x1bf76f:0x343,_0x5f0ffb:0xf1,_0x36c12c:0x236,_0x169f6b:0x364,_0x4e95be:0x2df,_0x4f49dc:0x25f,_0xb30b15:0xdd,_0x311e9d:0x19d,_0x5e07df:0x3ce,_0x2ea1f7:0x253,_0x3174cf:0x1c8,_0x4f0550:0x480,_0x410153:0xa4,_0x4e3933:0x252,_0x1b6ec5:0x15f,_0x4e3bf9:0x34b,_0xe0c0ab:0x271},_0x44f210={_0x44c6ab:0x49},_0x18f797={_0x5e34e7:0xd9},_0x311da7={_0x109487:0xcf,_0x585444:0xef},_0x315f2a={_0x2f8bd5:0xfa};function _0x11a366(_0x183900,_0x5e1755,_0x581600,_0x3e9906){return _0x57b9de(_0x183900-0x1e8,_0x5e1755,_0x183900- -0x4f6,_0x3e9906-_0x315f2a._0x2f8bd5);}function _0x25e932(_0x1f178a,_0x123e63,_0x180b34,_0x4d4552){return _0x23b1c2(_0x1f178a-0x131,_0x180b34,_0x4d4552- -_0x311da7._0x109487,_0x4d4552-_0x311da7._0x585444);}const _0x506262=createMcpToolName(_0x1fa575[_0x25e932(0x4ac,_0x554b36._0x3a9002,_0x554b36._0x59b3a1,_0x554b36._0x18afd7)],_0x1fa575[_0x11a366(-_0x554b36._0x742d4d,-0x76,-0x209,-_0x554b36._0x4adcd8)][_0x11a366(-0xe3,-_0x554b36._0x111b4b,-_0x554b36._0x14a72e,-0xc2)]);return defineTool({'name':_0x506262,'description':_0x1fa575[_0x25e932(_0x554b36._0x362c90,_0x554b36._0x43cd64,_0x554b36._0x411c8c,_0x554b36._0x50139d)][_0x25e932(0x4c0,0x400,0x374,0x394)]??_0x25e932(_0x554b36._0x549724,_0x554b36._0x4e1222,_0x554b36._0x2638d6,_0x554b36._0x532489)+_0x1fa575['tool'][_0x25e932(0x1b5,0x36b,_0x554b36._0x3ca931,_0x554b36._0x563235)]+'\x20from\x20'+_0x1fa575['serverName'],'inputSchema':toNuvinToolSchema(_0x1fa575[_0x11a366(-_0x554b36._0x742d4d,-_0x554b36._0x37a48e,-0x1ac,-_0x554b36._0x4ede9f)][_0x25e932(_0x554b36._0x439cd0,_0x554b36._0x23ef1f,_0x554b36._0x2f38ae,_0x554b36._0x8191eb)]),async *'execute'(_0x39fa8b){const _0x41448c=await _0x1fa575[_0x37a538(_0x70097c._0x57d78c,_0x70097c._0x1bf76f,0x1d4,_0x70097c._0x5f0ffb)]['callTool']({'name':_0x1fa575[_0x37a538(_0x70097c._0x36c12c,0x284,0x12a,_0x70097c._0x169f6b)][_0x37a538(_0x70097c._0x4e95be,0x383,0x301,_0x70097c._0x4f49dc)],'arguments':isJsonObject(_0x39fa8b)?_0x39fa8b:{}});if(_0x41448c[_0x2a9031(0xb4,_0x70097c._0xb30b15,0x250,_0x70097c._0x311e9d)])throw new ToolExecutionError(formatMcpContent(_0x41448c),{'serverName':_0x1fa575[_0x37a538(0x3d3,_0x70097c._0x5e07df,0x292,0x4f5)],'toolName':_0x1fa575[_0x2a9031(0x15f,0x1ca,_0x70097c._0x2ea1f7,_0x70097c._0x3174cf)]['name']});yield createToolOutput(formatMcpContent(_0x41448c),{'serverName':_0x1fa575[_0x37a538(0x3d3,_0x70097c._0x4f0550,0x455,0x47e)],'toolName':_0x1fa575[_0x2a9031(0x2b5,_0x70097c._0x410153,_0x70097c._0x4e3933,0x1c8)][_0x2a9031(0x1c9,_0x70097c._0x1b6ec5,_0x70097c._0x4e3bf9,_0x70097c._0xe0c0ab)],'result':_0x41448c});function _0x2a9031(_0x385ad0,_0x3fc921,_0x3470a4,_0x2e790d){return _0x25e932(_0x385ad0-_0x18f797._0x5e34e7,_0x3fc921-0xa9,_0x3fc921,_0x2e790d- -0x25);}function _0x37a538(_0x361f11,_0xe9f271,_0x1d52e2,_0x415e2e){return _0x25e932(_0x361f11-0xa0,_0xe9f271-0xdb,_0xe9f271,_0x361f11-_0x44f210._0x44c6ab);}return void 0x0;}});}function resolvePrefix(_0x2d2461,_0x124a9c){const _0x49ab1d={_0x57862a:0x3c9,_0x3c19bf:0x400,_0x1c9a94:0x3f7},_0x3c20e8={_0x3c952a:0x1f};function _0x29632b(_0x4b7091,_0x2b9736,_0x54e013,_0x19aa6d){return _0x57b9de(_0x4b7091-0x77,_0x19aa6d,_0x54e013- -_0x3c20e8._0x3c952a,_0x19aa6d-0xf4);}return _0x124a9c[_0x29632b(0x4cd,_0x49ab1d._0x57862a,_0x49ab1d._0x3c19bf,_0x49ab1d._0x1c9a94)]??_0x2d2461;}function buildMcpHttpHeaders(_0x3c0500){const _0x19c36b={_0x4bb8f0:0x3a0,_0x314883:0x269,_0x306df2:0x6c,_0x2320d5:0x115,_0x3f423e:0x1a1,_0x546dbc:0x16b,_0x700dd6:0x106,_0x52c131:0x1ef,_0x341fc4:0x15c,_0x54b360:0x16b,_0x5ef777:0xd0,_0x28f287:0x49f,_0x544fee:0x3ee,_0x57bffc:0x2a7,_0x2f47e5:0x5e1,_0x2bbdf8:0x470,_0x58750c:0x4c2,_0x57a980:0x18a,_0x1573db:0x35e,_0x89d69c:0x4a4,_0xc6afd9:0x4f3},_0x6e18b7={_0x52e525:0xec,_0x38e1cb:0x1d3,_0x418897:0xad},_0x471053={_0x539165:0x1ca},_0x255c87={..._0x3c0500['headers']??{}};_0x3c0500[_0xe6174c(_0x19c36b._0x4bb8f0,_0x19c36b._0x314883,0x2c1,0x1ed)]?.['type']==='bearer'&&_0x3c0500[_0x59e830(_0x19c36b._0x306df2,0x152,_0x19c36b._0x2320d5,_0x19c36b._0x3f423e)]['token']&&_0x255c87[_0x59e830(0x23b,_0x19c36b._0x546dbc,_0x19c36b._0x700dd6,_0x19c36b._0x52c131)]===void 0x0&&(_0x255c87[_0x59e830(_0x19c36b._0x341fc4,_0x19c36b._0x54b360,0x211,_0x19c36b._0x5ef777)]=_0xe6174c(0x2c0,_0x19c36b._0x28f287,_0x19c36b._0x544fee,_0x19c36b._0x57bffc)+_0x3c0500['auth'][_0xe6174c(_0x19c36b._0x2f47e5,_0x19c36b._0x2bbdf8,_0x19c36b._0x58750c,0x516)]);function _0xe6174c(_0x47bb5e,_0x522c46,_0x11089b,_0x31815f){return _0x57b9de(_0x47bb5e-0x1da,_0x47bb5e,_0x11089b- -0x64,_0x31815f-_0x471053._0x539165);}function _0x59e830(_0x2920d2,_0x52e29b,_0x55733a,_0x3ceb22){return _0x57b9de(_0x2920d2-_0x6e18b7._0x52e525,_0x55733a,_0x52e29b- -_0x6e18b7._0x38e1cb,_0x3ceb22-_0x6e18b7._0x418897);}return Object[_0x59e830(_0x19c36b._0x57a980,0x25b,0x381,_0x19c36b._0x1573db)](_0x255c87)[_0xe6174c(0x3e7,_0x19c36b._0x89d69c,_0x19c36b._0xc6afd9,0x49b)]>0x0?_0x255c87:void 0x0;}function getErrorMessage(_0x150eda){const _0x7aa58a={_0x58a5e1:0x142},_0x31223b={_0x539980:0x1c0};function _0x1abb0d(_0x50b5eb,_0x326c4f,_0x4ed810,_0x509355){return _0x23b1c2(_0x50b5eb-_0x31223b._0x539980,_0x326c4f,_0x4ed810- -0x20c,_0x509355-0x40);}return _0x150eda instanceof Error?_0x150eda[_0x1abb0d(_0x7aa58a._0x58a5e1,0x2b5,0x1eb,0x243)]:String(_0x150eda);}function isUnauthorizedError(_0x1c173f){const _0x288b62={_0x5d4127:0x671},_0x4b34dc={_0x23c647:0xd2};function _0x5b4140(_0x3f2965,_0x4ff178,_0x2a0d15,_0x57d898){return _0x57b9de(_0x3f2965-0x76,_0x2a0d15,_0x4ff178-0x19b,_0x57d898-_0x4b34dc._0x23c647);}return _0x1c173f instanceof Error&&_0x1c173f[_0x5b4140(_0x288b62._0x5d4127,0x5d8,0x6a2,0x4a7)]['name']==='UnauthorizedError';}async function connectMcpServer(_0x29baf0,_0x7eb2c1,_0x567a83){const _0x1ab17b={_0x1cafa7:0x178,_0x4e037c:0x129,_0x29b7f4:0x9a,_0x31f4d4:0x11e,_0x1be388:0x98,_0x26341c:0x1ab,_0x8a3025:0x237,_0x4bfb57:0x16d,_0x497d01:0xe1,_0x2d7048:0x1ff,_0x2ef114:0x190,_0x400717:0x181,_0x2e3b51:0x107,_0x273059:0x1ee,_0x394a64:0xb4,_0x5e8107:0x6e,_0x22ef70:0xa4,_0x568a44:0x169,_0xb59f7f:0xfe,_0x2389f7:0x2fc,_0xdd807c:0x1e1,_0x544e7c:0x71,_0x2c763f:0x18c,_0x1ed341:0x2a,_0x4db716:0x85,_0x703ebc:0xeb,_0x125812:0xe9,_0x2297eb:0xda,_0x25870a:0x9f,_0x5665c4:0x116,_0x191f06:0x292,_0x4d0a8f:0x1f2,_0x2591ad:0xd8,_0x283bf3:0x1a7,_0x2c3b9e:0xbd,_0x225f84:0x3c,_0x192903:0x14e,_0x242272:0x7c,_0x3ad86a:0x5f,_0x52a8bc:0x3b,_0x20e68c:0x1da,_0x28bca3:0x1e4,_0x6ab3bb:0xeb,_0x1367f1:0x11a},_0x1188d8={_0x4727ee:0x68d,_0x5e785a:0x621,_0x4b175d:0x704,_0x59cf63:0x5ca,_0x39bc3b:0x5cf},_0x24bfd8={_0x3062dd:0x65},_0x5233d5={_0x1a7f24:0xd7,_0x2d2a00:0x7,_0x238876:0x54},_0x2da1fe={_0x2e5e0a:0x16f,_0x6ff9c5:0xb9},_0x57866c={_0x110703:0x11d},_0x4eb8bc={_0x3add23:0x5d,_0x1c159b:0x2e5};function _0x36ac4a(_0x5db2f8,_0x2d6fbb,_0x218557,_0x5345fa){return _0x23b1c2(_0x5db2f8-_0x4eb8bc._0x3add23,_0x2d6fbb,_0x5345fa- -_0x4eb8bc._0x1c159b,_0x5345fa-0x92);}function _0x515faf(_0x5bc9b2,_0x59875d,_0x1222c8,_0x4aa348){return _0x57b9de(_0x5bc9b2-_0x57866c._0x110703,_0x5bc9b2,_0x1222c8- -0x353,_0x4aa348-0x11);}const _0x16526d=new Client({'name':'nuvin','version':_0x36ac4a(-_0x1ab17b._0x1cafa7,-0xec,-_0x1ab17b._0x4e037c,-0x24)});_0x16526d['onerror']=_0x5e171b=>{const _0x511791={_0x3afaf6:0x62,_0x48cef6:0xab};function _0x41c197(_0x37af79,_0x2b6b32,_0x28ef81,_0x9e891){return _0x36ac4a(_0x37af79-_0x511791._0x3afaf6,_0x2b6b32,_0x28ef81-0xd1,_0x9e891- -_0x511791._0x48cef6);}function _0x287543(_0x3ac181,_0x3ff5d9,_0x32886b,_0x5ee252){return _0x36ac4a(_0x3ac181-_0x2da1fe._0x2e5e0a,_0x3ac181,_0x32886b-0x146,_0x3ff5d9-_0x2da1fe._0x6ff9c5);}console['error'](_0x41c197(0x225,0x1f4,0xa9,0x14f)+_0x29baf0+_0x41c197(0xf4,_0x5233d5._0x1a7f24,_0x5233d5._0x2d2a00,_0x5233d5._0x238876),_0x5e171b[_0x41c197(0xbc,0xd,0xe9,0x67)]);};if(_0x7eb2c1[_0x515faf(0x1c,0x6,_0x1ab17b._0x29b7f4,_0x1ab17b._0x31f4d4)]===_0x515faf(_0x1ab17b._0x1be388,0x67,_0x1ab17b._0x26341c,0x70)||_0x7eb2c1[_0x36ac4a(0x13c,0x2e5,0x2e8,0x1e8)]){if(!_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x8a3025,0x109,_0x1ab17b._0x4bfb57,0x1e8)])throw new Error('MCP\x20server\x20'+_0x29baf0+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x7eb2c1[_0x36ac4a(0x79,0x98,_0x1ab17b._0x497d01,-0x6e)]?.['type']==='oauth'&&!_0x567a83?.['oauth'])throw new Error(_0x515faf(0x11c,_0x1ab17b._0x2d7048,0x232,_0x1ab17b._0x2ef114)+_0x29baf0+_0x515faf(0xaa,_0x1ab17b._0x400717,_0x1ab17b._0x2e3b51,_0x1ab17b._0x273059));const _0x2d96a1=buildMcpHttpHeaders(_0x7eb2c1),_0x356bd3=_0x7eb2c1[_0x36ac4a(-_0x1ab17b._0x394a64,-0x165,0xb3,-_0x1ab17b._0x5e8107)]?.['type']==='oauth'&&_0x567a83?.['oauth']?createMcpOAuthProvider({'serverName':_0x29baf0,'callbackUrl':_0x567a83['oauth'][_0x36ac4a(0x95,_0x1ab17b._0x22ef70,_0x1ab17b._0x568a44,_0x1ab17b._0xb59f7f)],'storageDir':_0x567a83['oauth'][_0x36ac4a(_0x1ab17b._0x2389f7,0x2db,0xed,_0x1ab17b._0xdd807c)],'config':_0x7eb2c1[_0x36ac4a(-_0x1ab17b._0x544e7c,-_0x1ab17b._0x2c763f,-_0x1ab17b._0x1ed341,-_0x1ab17b._0x5e8107)],'onRedirect':_0x3c8e2f=>_0x567a83['oauth']?.[_0x515faf(0xc,0x15c,0x126,0x1bc)](_0x29baf0,_0x3c8e2f)}):void 0x0,_0x4b83e9=new StreamableHTTPClientTransport(new URL(_0x7eb2c1['url']),{'authProvider':_0x356bd3,'requestInit':_0x2d96a1?{'headers':_0x2d96a1}:void 0x0});await _0x16526d[_0x515faf(_0x1ab17b._0x4db716,0x154,_0x1ab17b._0x703ebc,-0x52)](_0x4b83e9);}else{if(!_0x7eb2c1[_0x515faf(0x73,_0x1ab17b._0x125812,0x160,_0x1ab17b._0x2297eb)])throw new Error(_0x36ac4a(_0x1ab17b._0x25870a,_0x1ab17b._0x5665c4,_0x1ab17b._0x191f06,_0x1ab17b._0x4d0a8f)+_0x29baf0+_0x515faf(0x183,_0x1ab17b._0x2591ad,_0x1ab17b._0x283bf3,0x2f6));const _0x5b8676=new StdioClientTransport({'command':_0x7eb2c1[_0x36ac4a(0xb,_0x1ab17b._0x2c3b9e,0x1f1,0x120)],'args':_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x225f84,-0xa9,-_0x1ab17b._0x192903,-0x48)]??[],'env':_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x242272,_0x1ab17b._0x3ad86a,-_0x1ab17b._0x52a8bc,0x6f)],'stderr':_0x36ac4a(0xb9,0x120,0x20c,_0x1ab17b._0x20e68c)});await _0x16526d[_0x515faf(_0x1ab17b._0x28bca3,0x1ba,_0x1ab17b._0x6ab3bb,_0x1ab17b._0x1367f1)](_0x5b8676);}return{async 'listTools'(){const _0x2a4c52={_0x397231:0x90};function _0x1bcb90(_0x23c19d,_0x4f11ba,_0x337b0a,_0x3b6817){return _0x515faf(_0x3b6817,_0x4f11ba-0xf3,_0x23c19d- -0x9a,_0x3b6817-_0x2a4c52._0x397231);}return await _0x16526d[_0x1bcb90(0x89,-0xb,-0x1d,_0x24bfd8._0x3062dd)]();},async 'callTool'(_0x5821e5){const _0x37a3b2={_0x51cd59:0xc8,_0x1e277a:0x97},_0x36689={_0x1045dc:0x70,_0x4d4b73:0x215,_0x24f621:0xa9};function _0x33ea09(_0x8ddce4,_0x3d9908,_0x310509,_0x47e40c){return _0x515faf(_0x8ddce4,_0x3d9908-_0x36689._0x1045dc,_0x47e40c-_0x36689._0x4d4b73,_0x47e40c-_0x36689._0x24f621);}function _0x4453fb(_0x2e4510,_0x4f33d3,_0x226a4e,_0x2b4c99){return _0x515faf(_0x2e4510,_0x4f33d3-_0x37a3b2._0x51cd59,_0x226a4e-0x5db,_0x2b4c99-_0x37a3b2._0x1e277a);}return await _0x16526d[_0x4453fb(_0x1188d8._0x4727ee,0x76d,_0x1188d8._0x5e785a,_0x1188d8._0x4b175d)]({'method':_0x4453fb(_0x1188d8._0x59cf63,0x4a7,_0x1188d8._0x39bc3b,0x502),'params':_0x5821e5},CallToolResultSchema);},async 'close'(){await _0x16526d['close']();}};}async function createMcpToolsFromServers(_0x27cdd5){const _0x420031={_0x1d5575:0x117,_0x3229ba:0xf0,_0x233626:0x6c,_0x2356a4:0x132,_0x48af4e:0x85,_0x4a75de:0x25c,_0x43d009:0x251,_0x3b37e3:0x298,_0x1911d1:0xd1,_0x3928e5:0x130,_0xfe28c5:0x14b,_0x29f7c1:0x129,_0x54fc86:0x44,_0x43fc89:0x76,_0x229d74:0xe2,_0x2a763a:0xec,_0x4cb129:0x142,_0x53178c:0xae,_0x20e5bb:0x88,_0x3d4259:0x3a,_0x2cc511:0x1ac,_0x1a657c:0x41,_0x2aec06:0xaf},_0x3aa75d={_0x2143e5:0x18,_0x46c269:0xb4},_0x12b1c6={_0x2d722f:0x327},_0x4ff510={_0x427301:0x1a,_0x26909f:0x3bb,_0x4fef5d:0x5d},_0x4c59c1=_0x27cdd5[_0x302a40(0xa4,-0xb,_0x420031._0x1d5575,0x99)]??connectMcpServer;function _0x5a0f89(_0x214dcb,_0x2b531f,_0x216f92,_0x1b91f6){return _0x57b9de(_0x214dcb-_0x4ff510._0x427301,_0x2b531f,_0x216f92- -_0x4ff510._0x26909f,_0x1b91f6-_0x4ff510._0x4fef5d);}const _0x3b8e64=[],_0x55b9da={};function _0x302a40(_0xd5a3a2,_0x45ea8c,_0x377a0c,_0x2f3d03){return _0x57b9de(_0xd5a3a2-0xe9,_0x2f3d03,_0x377a0c- -_0x12b1c6._0x2d722f,_0x2f3d03-0x10e);}const _0x3971f0=[];for(const [_0x243342,_0x3c0c24]of Object[_0x302a40(_0x420031._0x3229ba,_0x420031._0x233626,_0x420031._0x2356a4,0xc3)](_0x27cdd5[_0x5a0f89(-_0x420031._0x48af4e,-0x12e,-0x2c,0x109)]??{})){if(_0x3c0c24[_0x302a40(_0x420031._0x4a75de,0x2df,_0x420031._0x43d009,_0x420031._0x3b37e3)]===![]){_0x55b9da[_0x243342]={'status':_0x5a0f89(0x202,_0x420031._0x1911d1,_0x420031._0x3928e5,0x8f)};continue;}try{const _0x31a0c9=await _0x4c59c1(_0x243342,_0x3c0c24,_0x27cdd5[_0x302a40(_0x420031._0xfe28c5,0x10f,_0x420031._0x29f7c1,0x94)]);_0x3b8e64['push'](_0x31a0c9);const _0x5b83e5=await _0x31a0c9['listTools']();let _0x4f9682=0x0;for(const _0x4f7de8 of _0x5b83e5[_0x302a40(0x240,0x1d7,0x1c1,0x1db)]){const _0xf11e41=_0x27cdd5[_0x302a40(_0x420031._0x54fc86,_0x420031._0x43fc89,0x14d,0xa7)]?.[_0x243342]?.[_0x4f7de8[_0x302a40(_0x420031._0x229d74,0x1cb,_0x420031._0x2a763a,_0x420031._0x4cb129)]];if(_0xf11e41===![])continue;_0x4f9682+=0x1,_0x3971f0[_0x5a0f89(0x33,_0x420031._0x53178c,_0x420031._0x20e5bb,_0x420031._0x3d4259)](createMcpTool({'serverName':resolvePrefix(_0x243342,_0x3c0c24),'tool':_0x4f7de8,'client':_0x31a0c9}));}_0x55b9da[_0x243342]={'status':_0x302a40(_0x420031._0x2cc511,-_0x420031._0x1a657c,_0x420031._0x2aec06,0x1f6),'toolCount':_0x4f9682};}catch(_0x52392a){_0x55b9da[_0x243342]=isUnauthorizedError(_0x52392a)?{'status':'authRequired','message':getErrorMessage(_0x52392a)}:{'status':'error','message':getErrorMessage(_0x52392a)};}}return{'tools':_0x3971f0,'servers':_0x55b9da,async 'close'(){const _0x4e1d32={_0x42d6be:0x95,_0x67626:0x18b,_0x501759:0x2c};function _0x442043(_0xab4cb7,_0x57eba3,_0x4231e3,_0x2f1536){return _0x302a40(_0xab4cb7-_0x4e1d32._0x42d6be,_0x57eba3-_0x4e1d32._0x67626,_0x4231e3-_0x4e1d32._0x501759,_0xab4cb7);}function _0x5ee8e4(_0x36aa13,_0x32c38b,_0x4b64c1,_0x319c42){return _0x5a0f89(_0x36aa13-_0x3aa75d._0x2143e5,_0x36aa13,_0x319c42-0x462,_0x319c42-_0x3aa75d._0x46c269);}await Promise['all'](_0x3b8e64[_0x5ee8e4(0x56e,0x70b,0x500,0x5db)](_0x25682f=>_0x25682f[_0x442043(0x4f,0x269,0x136,0x1ee)]()));}};}function getCommand(_0x583344){const _0x527875={_0x1a58dd:0x4b7,_0x48601e:0x4a6,_0x340c90:0x457,_0x20d93f:0x555,_0x87c215:0x6b,_0x2cad2c:0x2d5,_0x27da4c:0x397,_0x478b23:0xb3,_0x15a128:0x46,_0x1a234a:0x444,_0x1af809:0x38a},_0x12d092={_0x49ba77:0x1b3,_0x9ab5e1:0x51e},_0xdf08b9={_0x274b3c:0x112,_0x506d75:0x106};function _0x35a4c7(_0x52a4af,_0x33fb0e,_0xb5cb2e,_0x302fd0){return _0x23b1c2(_0x52a4af-0x77,_0x52a4af,_0x302fd0-_0xdf08b9._0x274b3c,_0x302fd0-_0xdf08b9._0x506d75);}if(_0x583344&&typeof _0x583344===_0x35a4c7(0x54d,_0x527875._0x1a58dd,0x5b1,0x4ee)&&!Array[_0x35a4c7(_0x527875._0x48601e,0x4ab,_0x527875._0x340c90,_0x527875._0x20d93f)](_0x583344)&&typeof _0x583344[_0x3d38d8(0x67,-_0x527875._0x87c215,-0x1f,-0x74)]===_0x35a4c7(0x29d,0x25c,_0x527875._0x2cad2c,_0x527875._0x27da4c))return _0x583344[_0x3d38d8(_0x527875._0x478b23,-0x6b,_0x527875._0x15a128,-0x83)];function _0x3d38d8(_0x31ea0d,_0x10be9c,_0x2ecfdb,_0xbaec6f){return _0x57b9de(_0x31ea0d-_0x12d092._0x49ba77,_0x2ecfdb,_0x10be9c- -_0x12d092._0x9ab5e1,_0xbaec6f-0xd2);}return _0x35a4c7(_0x527875._0x1a234a,0x299,0x367,_0x527875._0x1af809);}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x23b1c2(0x538,0x3f0,0x45e,0x3ac),'docs/plans/2026-04-16-public-tools-api-implementation.md',_0x57b9de(0x38c,0x299,0x340,0x390),_0x23b1c2(0x3c4,0x3f5,0x489,0x512),_0x57b9de(0x338,0x30f,0x3a7,0x258),'src/examples/demo.ts',_0x57b9de(0x66e,0x4bf,0x53f,0x5f9),_0x57b9de(0x34b,0x2a7,0x374,0x340),_0x57b9de(0x2f4,0x3c3,0x41e,0x3a2),'src/formats/provider-adapters.ts',_0x23b1c2(0x4f1,0x4d0,0x4af,0x5ef),'src/shared/types.ts','src/agent/agent.test.ts',_0x23b1c2(0x4d6,0x456,0x39a,0x461),_0x57b9de(0x47a,0x633,0x508,0x654),_0x57b9de(0x30e,0x51d,0x45d,0x4b3)]['join']('\x0a'),SHELL_EXEC_TOOL={'name':_0x23b1c2(0x349,0x2c9,0x28d,0x2e2),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x23b1c2(0x4eb,0x4aa,0x3dc,0x37f),'properties':{'command':{'type':_0x57b9de(0x385,0x431,0x333,0x25f)}},'required':[_0x57b9de(0x4b4,0x3f1,0x4b3,0x528)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x6053ad){return{'output':_0x6053ad,'structured':{'value':_0x6053ad}};}function createUnknownToolResult(_0x202379){const _0x4c8230={_0x399ed7:0x3d0,_0x2b78c5:0x2b8,_0x46e87d:0x3c6,_0x3d4083:0x15f,_0x3e821d:0x2f,_0x1961b6:0xe0,_0x2ef8ac:0x46,_0x1ea9cf:0x3f,_0x14e0de:0x3b,_0x443662:0x73,_0x235340:0xaf},_0x18c471={_0x1d4da2:0x36,_0x4dd1ad:0x43};function _0x3015bf(_0x277180,_0x2819ea,_0x432d12,_0x4ed1f8){return _0x57b9de(_0x277180-_0x18c471._0x1d4da2,_0x4ed1f8,_0x277180- -_0x18c471._0x4dd1ad,_0x4ed1f8-0x53);}function _0x422463(_0x1cdf07,_0x4c9770,_0x257365,_0x4145b4){return _0x57b9de(_0x1cdf07-0x172,_0x257365,_0x4c9770- -0x4de,_0x4145b4-0x113);}return{'callId':_0x202379['id'],'toolName':_0x202379[_0x3015bf(_0x4c8230._0x399ed7,0x50f,_0x4c8230._0x2b78c5,_0x4c8230._0x46e87d)],'status':_0x422463(-_0x4c8230._0x3d4083,-_0x4c8230._0x3e821d,_0x4c8230._0x1961b6,_0x4c8230._0x2ef8ac),'output':_0x422463(0x22,-0xa3,-0x1ec,-_0x4c8230._0x1ea9cf)+_0x202379[_0x422463(-_0x4c8230._0x14e0de,-0xcb,-_0x4c8230._0x443662,-_0x4c8230._0x235340)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x122e97,_0x105747){const _0x486757={_0x5c9fde:0x11e,_0x3f3883:0x251,_0x140b7c:0x12a,_0x49f847:0x98},_0x2c9e1b={_0x48c545:0xfa,_0x4a1981:0x1c2},_0xe704b5={_0x3be016:0x5f,_0x9f4650:0x2ac};function _0x442911(_0x50921a,_0x38719c,_0x5581ad,_0x45969c){return _0x57b9de(_0x50921a-_0xe704b5._0x3be016,_0x5581ad,_0x45969c- -_0xe704b5._0x9f4650,_0x45969c-0xa1);}function _0x2a699e(_0x591ec4,_0x36ddea,_0x9e8e06,_0x319eed){return _0x57b9de(_0x591ec4-_0x2c9e1b._0x48c545,_0x9e8e06,_0x36ddea- -_0x2c9e1b._0x4a1981,_0x319eed-0x3e);}return{'callId':_0x122e97['id'],'toolName':_0x122e97[_0x2a699e(_0x486757._0x5c9fde,_0x486757._0x3f3883,0x19b,_0x486757._0x140b7c)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x122e97[_0x2a699e(_0x486757._0x49f847,0x1cb,0x2e4,0x223)]),'exitCode':0x0},'chunks':[_0x105747],'meta':createMeta()};}function createMockToolRuntime(){const _0x415df8={_0x536d0a:0x1fe,_0x32898e:0x21c,_0x12ba3f:0x26a,_0x8a401d:0x64a,_0x4a212b:0x845,_0x3108c0:0x70f,_0x21d499:0x72d},_0x2c9ce1={_0x4b52ba:0x47},_0xea2f8e={_0x67b700:0x4,_0x44168b:0xc2,_0x262a92:0xc0,_0x568d7f:0x98,_0x4b3fb2:0x71,_0x4d9928:0x117},_0x3ba677=async(_0x1abc5e,_0x579ea2)=>{const _0x3b2d0e={_0x3919fa:0x266};if(_0x1abc5e[_0x9a34e7(0xad,-_0xea2f8e._0x67b700,_0xea2f8e._0x44168b,0x143)]!==_0x1fc56b(_0xea2f8e._0x262a92,_0xea2f8e._0x568d7f,-_0xea2f8e._0x4b3fb2,-_0xea2f8e._0x4d9928))return createUnknownToolResult(_0x1abc5e);const _0x16042a=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x9a34e7(_0x2216bf,_0x34e921,_0x3c9ed4,_0x568db6){return _0x27a7(_0x3c9ed4- -0x20b,_0x2216bf);}function _0x1fc56b(_0x53fc58,_0x3ec89f,_0x2caa64,_0x4204d5){return _0x27a7(_0x2caa64- -_0x3b2d0e._0x3919fa,_0x4204d5);}return createSuccessToolResult(_0x1abc5e,_0x16042a);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x110e07,_0x26af5d){function _0x420993(_0xa17c4c,_0x420e9e,_0x53517f,_0x161101){return _0x27a7(_0x161101-0x33f,_0x53517f);}function _0x2b3f23(_0x1b9763,_0x539bc1,_0x3cfe8d,_0x3a80d2){return _0x27a7(_0x3cfe8d- -_0x2c9ce1._0x4b52ba,_0x3a80d2);}return await Promise[_0x2b3f23(_0x415df8._0x536d0a,_0x415df8._0x32898e,0x29f,_0x415df8._0x12ba3f)](_0x110e07[_0x420993(_0x415df8._0x8a401d,_0x415df8._0x4a212b,_0x415df8._0x3108c0,_0x415df8._0x21d499)](async _0x42ced9=>{return await _0x3ba677(_0x42ced9,_0x26af5d);}));},async 'execute'(_0x46e8ff,_0x253e1f){return await _0x3ba677(_0x46e8ff,_0x253e1f);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0xbc0068={_0x508d45:0x4a,_0x4256f8:0x11d},_0x31ea1e={_0x53bcdf:0xb0,_0x41979c:0x3f2,_0x3f4813:0x91};function _0x42196d(_0x336d72,_0x3be039,_0x87ab10,_0x6507c7){return _0x57b9de(_0x336d72-_0x31ea1e._0x53bcdf,_0x6507c7,_0x336d72- -_0x31ea1e._0x41979c,_0x6507c7-_0x31ea1e._0x3f4813);}return delegatedRunCounter+=0x1,_0x42196d(0x28,_0xbc0068._0x508d45,-_0xbc0068._0x4256f8,0xef)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x523a62,_0x48232a){const _0x2d16b7={_0x4da543:0x1e7,_0x58e0f4:0x258,_0x40eded:0x14b},_0x54a26d={_0x22383f:0x15f,_0x45c158:0x125};function _0x40dfde(_0x541243,_0x577678,_0x44d38e,_0x3540b3){return _0x23b1c2(_0x541243-_0x54a26d._0x22383f,_0x3540b3,_0x541243- -0x2d4,_0x3540b3-_0x54a26d._0x45c158);}return typeof _0x523a62===_0x40dfde(_0x2d16b7._0x4da543,_0x2d16b7._0x58e0f4,_0x2d16b7._0x40eded,0x21d)?await _0x523a62(_0x48232a):_0x523a62;}function getDelegatedAgentDefinition(_0x447840,_0x49ff95){const _0x2e42a2={_0x5ebb5b:0x39b,_0xc9e26b:0x3ac},_0x13d4eb={_0x183245:0xfb};function _0x41c1d9(_0x182c73,_0x2840a5,_0x49cef6,_0x50c5f4){return _0x57b9de(_0x182c73-_0x13d4eb._0x183245,_0x2840a5,_0x50c5f4- -0xb,_0x50c5f4-0x1c8);}return _0x447840[_0x41c1d9(_0x2e42a2._0x5ebb5b,0x421,0x2b4,_0x2e42a2._0xc9e26b)]?.[_0x49ff95];}function createRunSummary(_0x1ccac3){const _0x4c91bb={_0x531c63:0x27b,_0x546756:0x11e,_0x43eabd:0x101,_0x356af2:0xe0,_0x16e947:0x1b7,_0x3b7d59:0x1af,_0x24fd1d:0x56c,_0x1d05b4:0x5c4,_0x2fe7c7:0xb0,_0x274950:0x94,_0x4ebc37:0x243,_0x4379af:0x222,_0x1625a4:0x5d4,_0x467407:0x688,_0x53c389:0x9c,_0x70c0d5:0x96,_0x13bc23:0x98,_0x2b21b8:0xea,_0x27acf0:0x16,_0x2326be:0x58b},_0x4c76de={_0xbe3e2a:0x18b,_0x820186:0x316,_0x28bbbd:0x142},_0xaee1e={_0x3e68cb:0x22};function _0x199c2f(_0x286602,_0x1ba2a0,_0x3b6c81,_0x55c84b){return _0x57b9de(_0x286602-0x157,_0x55c84b,_0x286602-0x9c,_0x55c84b-_0xaee1e._0x3e68cb);}function _0x13f967(_0x446d0e,_0x1fd661,_0x5e1dad,_0x2776e1){return _0x57b9de(_0x446d0e-_0x4c76de._0xbe3e2a,_0x446d0e,_0x2776e1- -_0x4c76de._0x820186,_0x2776e1-_0x4c76de._0x28bbbd);}return{'runId':_0x1ccac3[_0x13f967(_0x4c91bb._0x531c63,_0x4c91bb._0x546756,_0x4c91bb._0x43eabd,0x13d)],'agentId':_0x1ccac3[_0x13f967(_0x4c91bb._0x356af2,0x21c,_0x4c91bb._0x16e947,_0x4c91bb._0x3b7d59)],'sessionId':_0x1ccac3['sessionId'],'status':_0x1ccac3[_0x199c2f(_0x4c91bb._0x24fd1d,_0x4c91bb._0x1d05b4,0x675,0x481)],'parentSessionId':_0x1ccac3['parentSessionId'],..._0x1ccac3['originToolCallId']!==void 0x0?{'originToolCallId':_0x1ccac3[_0x13f967(-_0x4c91bb._0x2fe7c7,0xcb,-0xbe,_0x4c91bb._0x274950)]}:{},..._0x1ccac3[_0x13f967(_0x4c91bb._0x4ebc37,0x198,0x1e0,_0x4c91bb._0x4379af)]!==void 0x0?{'errorMessage':_0x1ccac3[_0x199c2f(_0x4c91bb._0x1625a4,_0x4c91bb._0x467407,0x5c4,0x4fe)]}:{},..._0x1ccac3[_0x13f967(0xde,0xd2,_0x4c91bb._0x53c389,0x1d9)]?.[_0x13f967(-_0x4c91bb._0x70c0d5,_0x4c91bb._0x13bc23,-_0x4c91bb._0x2b21b8,-_0x4c91bb._0x27acf0)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1ccac3[_0x199c2f(_0x4c91bb._0x2326be,0x635,0x5e3,0x52a)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x4feb58,_0x1bb58c){const _0x1b6e27={_0x3290c4:0x3ad,_0x2fa2fb:0x2a0,_0x1e370a:0x256},_0x23aff9={_0x3fe228:0x35,_0x381a9f:0x179,_0x2bc99d:0xe2},_0x39fdbb=createRunSummary(_0x4feb58),_0xc33369=_0x39fdbb['finalMessageText'];function _0x37a153(_0x454392,_0x88c370,_0x59b0ea,_0x394704){return _0x23b1c2(_0x454392-_0x23aff9._0x3fe228,_0x454392,_0x88c370- -_0x23aff9._0x381a9f,_0x394704-_0x23aff9._0x2bc99d);}return createToolOutput(typeof _0xc33369==='string'&&_0xc33369[_0x37a153(_0x1b6e27._0x3290c4,0x330,_0x1b6e27._0x2fa2fb,_0x1b6e27._0x1e370a)]>0x0?_0xc33369:_0x1bb58c,_0x39fdbb);}function getRunTerminalErrorMessage(_0x91cff9){const _0x56a8c2={_0x48b2a3:0x383,_0x2174a2:0x4f1,_0x45c2b5:0x4f6,_0x12816f:0x49e,_0x1ea6c9:0x259,_0x38eabf:0x1fa,_0x463413:0x22f,_0x337fd8:0x300,_0x14afa8:0x44f},_0x443471={_0x3dfcd4:0x154,_0x56f2ab:0x18a,_0x948093:0x56};function _0x2651fb(_0x53f4d3,_0x39519e,_0x3796d9,_0x2c341b){return _0x23b1c2(_0x53f4d3-0x112,_0x53f4d3,_0x39519e- -0x5a,_0x2c341b-0x13a);}const _0x5d59fc=_0x91cff9?.['state'][_0x2651fb(0x1f3,0x202,0x2fd,0x2c7)]['at'](-0x1);if(_0x5d59fc?.[_0x2651fb(_0x56a8c2._0x48b2a3,0x3c8,_0x56a8c2._0x2174a2,_0x56a8c2._0x45c2b5)]==='error'&&_0x5d59fc[_0x3430bc(0x484,0x420,_0x56a8c2._0x12816f,0x50a)][_0x2651fb(0x113,_0x56a8c2._0x1ea6c9,_0x56a8c2._0x38eabf,_0x56a8c2._0x463413)]()[_0x2651fb(_0x56a8c2._0x337fd8,_0x56a8c2._0x14afa8,0x4f6,0x46a)]>0x0)return _0x5d59fc['output'];function _0x3430bc(_0x9c68a0,_0x2693bf,_0x26a518,_0x4d60ed){return _0x57b9de(_0x9c68a0-_0x443471._0x3dfcd4,_0x26a518,_0x4d60ed-_0x443471._0x56f2ab,_0x4d60ed-_0x443471._0x948093);}return void 0x0;}function formatAbortedRunMessage(_0x268af6,_0x295b69){const _0x206f06={_0x82ea46:0x635,_0x5f32c1:0x4f6,_0x4682d5:0x638,_0x216320:0x76b,_0x4122a7:0x43c,_0x8c886b:0x4b5,_0x342d79:0x4d2},_0x4b63b1={_0x13fbfe:0x1e6};function _0x52cfa6(_0x300b16,_0x1becd7,_0x4c68e3,_0x1b9479){return _0x23b1c2(_0x300b16-0x131,_0x1b9479,_0x1becd7-0x26a,_0x1b9479-0xd6);}const _0x2d5444=_0x24838c(_0x206f06._0x82ea46,0x5b7,_0x206f06._0x5f32c1,0x52e)+_0x268af6+_0x52cfa6(0x66f,_0x206f06._0x4682d5,0x5ff,_0x206f06._0x216320);if(!_0x295b69||_0x295b69[_0x52cfa6(0x550,0x51d,0x652,0x5d9)]()['length']===0x0||_0x295b69===_0x2d5444)return _0x2d5444;function _0x24838c(_0x49d0b7,_0x4483e3,_0x5e67e7,_0x2d01da){return _0x23b1c2(_0x49d0b7-_0x4b63b1._0x13fbfe,_0x2d01da,_0x4483e3-0x2ef,_0x2d01da-0xe2);}return _0x2d5444+_0x52cfa6(_0x206f06._0x4122a7,_0x206f06._0x8c886b,_0x206f06._0x342d79,0x557)+_0x295b69;}function createAssignTaskTool(_0x10eda3){const _0xcc4bfc={_0x17a5b7:0x34b,_0x5b4317:0x45f,_0x23636f:0x3f7,_0x9429f1:0xff,_0x4e80ad:0x6c,_0xcd1388:0x30,_0x2666ef:0x2f3,_0x27198b:0x3f5,_0x5cb0d8:0x25b,_0x17fff7:0x112,_0x111ec2:0x190,_0x53268a:0x93,_0x2881c3:0x59,_0x10acfe:0x18c},_0x3e935a={_0x401a3b:0x34e,_0x260c2b:0x49a,_0x6b0b82:0x49c,_0x7422f4:0x62f,_0x543a4d:0x4e2,_0x784798:0x3f6,_0x2e22d3:0x63d,_0x4684ce:0x4ec,_0xf70e47:0x4e7,_0x29ef6f:0x477,_0x8a9602:0x421,_0x48330e:0x683,_0x5e404d:0x556,_0x2ff0dd:0x755,_0x236a72:0x574,_0x531896:0x2fb,_0x34bc1e:0x484,_0x54dfdf:0x2af,_0x585ee3:0x3f8,_0x1783f2:0x3d6,_0x4c5cbf:0x506,_0x5d302a:0x3da,_0x326276:0x489,_0x49dffd:0x6e4,_0x453b7c:0x5eb,_0xcd37ef:0x55f,_0xeb7f55:0x5f8,_0x425eb9:0x63c,_0x3bcec2:0x6c7,_0x5ede9f:0x659,_0x3999ab:0x437,_0x54347e:0x39b,_0x50ddad:0x463,_0x2eb864:0x3a8,_0x266ac6:0x40d,_0x34bb3e:0x76f,_0x2c47de:0x78e,_0x51dfbc:0x4f8,_0x1d0ef2:0x536,_0x36d018:0x4a5,_0x5366e6:0x4b4,_0x388ccc:0x610,_0x3b43cc:0x745,_0x25ee0f:0x6c3,_0x487f25:0x54a,_0x49afb8:0x664,_0x330eed:0x4b7,_0x56171a:0x6f9,_0x526daa:0x417,_0x9150c2:0x403,_0x5948e5:0x47a,_0x2889eb:0x5bf,_0x347bb8:0x4d5,_0x1e8f4b:0x585,_0x545833:0x679,_0x2bd1ac:0x4a4,_0x45c47f:0x4b5,_0x3112ff:0x2d4,_0xa28e6c:0x286,_0x342404:0x34b,_0x32a644:0x45d,_0x2c094b:0x4a7,_0x31815e:0x6de,_0x2169e6:0x1a5,_0x2f9a83:0x1e8,_0x12af66:0x2e3},_0x716ca4={_0x1635ec:0xc3},_0x1a46f4={_0x195ebb:0x1e6},_0x103fcc={_0x3fe8fe:0x53};function _0x52001a(_0x75755f,_0x29b5e4,_0x3605ee,_0x258c49){return _0x57b9de(_0x75755f-0x183,_0x29b5e4,_0x3605ee- -_0x103fcc._0x3fe8fe,_0x258c49-0x1d2);}function _0x17ddf7(_0x109652,_0x9e44d9,_0x1ef445,_0x41c9f3){return _0x23b1c2(_0x109652-_0x1a46f4._0x195ebb,_0x1ef445,_0x109652- -0x384,_0x41c9f3-0xe5);}return defineTool({'name':'AssignTask','description':_0x52001a(0x224,0x258,_0xcc4bfc._0x17a5b7,0x3e6),'inputSchema':{'type':_0x52001a(_0xcc4bfc._0x5b4317,0x503,0x437,_0xcc4bfc._0x23636f),'properties':{'agentId':{'type':_0x17ddf7(-_0xcc4bfc._0x9429f1,-_0xcc4bfc._0x4e80ad,0x31,_0xcc4bfc._0xcd1388)},'description':{'type':_0x52001a(_0xcc4bfc._0x2666ef,_0xcc4bfc._0x27198b,0x2e0,0x3bc)},'nickname':{'type':_0x52001a(0x3fe,0x242,0x2e0,_0xcc4bfc._0x5cb0d8)},'task':{'type':_0x17ddf7(-0xff,-_0xcc4bfc._0x17fff7,-_0xcc4bfc._0x111ec2,-0x21e)}},'required':[_0x17ddf7(_0xcc4bfc._0x53268a,0x56,0x8a,0xee),'description',_0x17ddf7(_0xcc4bfc._0x2881c3,_0xcc4bfc._0x10acfe,0x19,0x1a)]},async *'execute'(_0x49c8b9,_0x15e21e){const _0x4ce6da={_0x21ba00:0x155},_0x5f3a21={_0x1033ac:0x1bf,_0x12d045:0xd3},_0x673356=createDelegatedRunId(),_0x2a611f={'agentId':_0x49c8b9[_0x4d2c12(0x53a,_0x3e935a._0x401a3b,0x4d2,_0x3e935a._0x260c2b)],'parentSessionId':_0x15e21e[_0x4d2c12(_0x3e935a._0x6b0b82,_0x3e935a._0x7422f4,0x613,0x4ec)],'runId':_0x673356,..._0x15e21e[_0x4d2c12(0x543,0x2d4,_0x3e935a._0x543a4d,0x3f8)]!==void 0x0?{'toolCallId':_0x15e21e['toolCallId']}:{}};function _0x242a8e(_0xe7bfc4,_0x54dae0,_0x4be76c,_0x2598f9){return _0x52001a(_0xe7bfc4-0xda,_0x54dae0,_0xe7bfc4-_0x5f3a21._0x1033ac,_0x2598f9-_0x5f3a21._0x12d045);}const _0x4f8089=getDelegatedAgentDefinition(_0x10eda3,_0x49c8b9['agentId']);if(!_0x4f8089)throw new ToolExecutionError(_0x4d2c12(0x475,_0x3e935a._0x784798,0x4a3,0x38b)+_0x49c8b9['agentId'],{'agentId':_0x49c8b9['agentId']});const _0x57b220=new Agent(await resolveDelegatedAgentOptions(_0x4f8089,_0x2a611f));let _0x1b8715={'runId':_0x673356,'agentId':_0x49c8b9['agentId'],'sessionId':_0x57b220[_0x4d2c12(_0x3e935a._0x2e22d3,0x58f,0x459,_0x3e935a._0x4684ce)],'status':_0x242a8e(_0x3e935a._0xf70e47,_0x3e935a._0x29ef6f,_0x3e935a._0x8a9602,0x451),'parentSessionId':_0x15e21e[_0x242a8e(_0x3e935a._0x48330e,_0x3e935a._0x5e404d,_0x3e935a._0x2ff0dd,_0x3e935a._0x236a72)],..._0x15e21e[_0x4d2c12(_0x3e935a._0x531896,_0x3e935a._0x34bc1e,_0x3e935a._0x54dfdf,_0x3e935a._0x585ee3)]!==void 0x0?{'originToolCallId':_0x15e21e[_0x4d2c12(0x4c3,_0x3e935a._0x1783f2,_0x3e935a._0x4c5cbf,0x3f8)]}:{}};const _0x4a2f74=new AbortController(),_0x13e463=addAbortListener(_0x15e21e['signal'],()=>{const _0x43de05={_0x24fdae:0x1c0,_0x5035eb:0x19a};function _0x526566(_0x618f2a,_0x454664,_0x39461b,_0x5b0b1c){return _0x242a8e(_0x618f2a- -0x593,_0x39461b,_0x39461b-_0x43de05._0x24fdae,_0x5b0b1c-_0x43de05._0x5035eb);}_0x4a2f74['abort'](_0x15e21e['signal']?.[_0x526566(-_0x716ca4._0x1635ec,-0x1b9,-0x1fa,-0x160)]);});function _0x4d2c12(_0xc53b88,_0x5ae476,_0x22af8d,_0x49c44e){return _0x52001a(_0xc53b88-0x158,_0x22af8d,_0x49c44e-0x28,_0x49c44e-_0x4ce6da._0x21ba00);}yield createToolOutput('Started\x20agent\x20run\x20'+_0x1b8715[_0x4d2c12(_0x3e935a._0x5d302a,_0x3e935a._0x326276,0x46c,0x428)]+'.',{'runId':_0x1b8715[_0x242a8e(0x5bf,0x688,_0x3e935a._0x49dffd,0x648)],'agentId':_0x1b8715[_0x4d2c12(_0x3e935a._0x453b7c,_0x3e935a._0xcd37ef,0x59b,0x49a)],'sessionId':_0x1b8715[_0x242a8e(0x683,0x772,0x671,_0x3e935a._0xeb7f55)],'status':_0x1b8715[_0x242a8e(_0x3e935a._0x425eb9,_0x3e935a._0x3bcec2,0x74b,_0x3e935a._0x5ede9f)]});try{const _0xfeeb71=await _0x57b220[_0x242a8e(0x57d,0x46b,_0x3e935a._0x3999ab,0x498)](_0x49c8b9['task'],{'signal':_0x4a2f74[_0x4d2c12(_0x3e935a._0x54347e,_0x3e935a._0x50ddad,_0x3e935a._0x2eb864,_0x3e935a._0x266ac6)]});_0x1b8715={..._0x1b8715,'status':_0xfeeb71[_0x242a8e(0x63c,_0x3e935a._0x34bb3e,_0x3e935a._0x2c47de,_0x3e935a._0x51dfbc)],'result':_0xfeeb71};if(_0xfeeb71[_0x4d2c12(0x5bc,0x54e,_0x3e935a._0x1d0ef2,_0x3e935a._0x36d018)]!=='completed'){const _0x38927b=getRunTerminalErrorMessage(_0xfeeb71),_0x5161e8=formatAbortedRunMessage(_0x1b8715[_0x242a8e(0x5bf,0x546,0x4b5,_0x3e935a._0x5366e6)],_0x38927b);throw new ToolExecutionError(_0x5161e8,{...createRunSummary(_0x1b8715),'aborted':!![],'errorMessage':_0x5161e8});}return createRunSummaryOutput(_0x1b8715,'Agent\x20run\x20'+_0x1b8715['runId']+_0x242a8e(_0x3e935a._0x388ccc,_0x3e935a._0x3b43cc,_0x3e935a._0x25ee0f,0x518));}catch(_0x352756){if(_0x352756 instanceof ToolExecutionError)throw _0x352756;if(isAbortError(_0x352756)||_0x4a2f74[_0x242a8e(0x5a4,0x4ef,0x5c0,_0x3e935a._0x487f25)][_0x242a8e(0x5f1,_0x3e935a._0x49afb8,0x536,_0x3e935a._0x330eed)]||_0x15e21e['signal']['aborted']){const _0x1266df=getRunTerminalErrorMessage(_0x1b8715[_0x242a8e(0x65b,0x7a0,_0x3e935a._0x56171a,0x65b)])??(_0x352756 instanceof Error?_0x352756[_0x4d2c12(0x484,_0x3e935a._0x526daa,_0x3e935a._0x9150c2,_0x3e935a._0x5948e5)]:String(_0x352756)),_0x174496=formatAbortedRunMessage(_0x1b8715[_0x242a8e(_0x3e935a._0x2889eb,0x658,_0x3e935a._0x347bb8,_0x3e935a._0x1e8f4b)],_0x1266df);_0x1b8715={..._0x1b8715,'status':_0x242a8e(0x5f1,0x693,_0x3e935a._0x545833,0x6dc),'errorMessage':_0x174496};throw new ToolExecutionError(_0x174496,{...createRunSummary(_0x1b8715),'aborted':!![],'errorMessage':_0x174496});}const _0x1ce07a=getRunTerminalErrorMessage(_0x1b8715[_0x4d2c12(_0x3e935a._0x2bd1ac,_0x3e935a._0x45c47f,0x609,0x4c4)])??(_0x352756 instanceof Error?_0x352756['message']:String(_0x352756))??_0x4d2c12(_0x3e935a._0x3112ff,0x3a0,_0x3e935a._0xa28e6c,_0x3e935a._0x342404)+_0x1b8715[_0x4d2c12(_0x3e935a._0x32a644,0x407,_0x3e935a._0x2c094b,0x428)]+_0x242a8e(0x690,0x602,0x6be,_0x3e935a._0x31815e);_0x1b8715={..._0x1b8715,'status':_0x4d2c12(_0x3e935a._0x2169e6,0x2e6,_0x3e935a._0x2f9a83,_0x3e935a._0x12af66),'errorMessage':_0x1ce07a};throw new ToolExecutionError(_0x1ce07a,{...createRunSummary(_0x1b8715),'errorMessage':_0x1ce07a});}finally{_0x13e463();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x446a1f){return[createAssignTaskTool(_0x446a1f)];}import*as _0x441627 from'path';function buildDescription2(_0x449352){const _0x2daec7={_0xeac6e1:0x342,_0x57176e:0x1da,_0x4f5768:0x299,_0x4b6436:0x233,_0x3f1303:0x27c,_0x36c3eb:0x173,_0x54984d:0x17a,_0x51fe5c:0x4b,_0xb13eb1:0x19,_0x538deb:0x9b,_0x4eec75:0x139,_0x191ada:0x19,_0x18dc8f:0x6a,_0x2bbd8b:0x8f,_0x1d921f:0xea,_0x1dd88d:0x31},_0x16bcf8={_0x3d996c:0x321,_0x2b5242:0x8c},_0x3edde8={_0x1632d8:0xc6,_0x5189a7:0xa1};if(_0x449352[_0xc4238(0x22a,0x2f4,0x236,_0x2daec7._0xeac6e1)]===0x0)return _0xc4238(_0x2daec7._0x57176e,_0x2daec7._0x4f5768,_0x2daec7._0x4b6436,_0x2daec7._0x3f1303);function _0x3fc2c5(_0x274aa2,_0x2121c0,_0x393d36,_0x46577e){return _0x23b1c2(_0x274aa2-_0x3edde8._0x1632d8,_0x274aa2,_0x46577e- -0x455,_0x46577e-_0x3edde8._0x5189a7);}function _0xc4238(_0x326daf,_0x2c2fad,_0xe0ec24,_0x5c6161){return _0x57b9de(_0x326daf-0x4a,_0x5c6161,_0xe0ec24- -_0x16bcf8._0x3d996c,_0x5c6161-_0x16bcf8._0x2b5242);}const _0x4b5a8b=[_0xc4238(_0x2daec7._0x36c3eb,_0x2daec7._0x54984d,_0x2daec7._0x51fe5c,_0x2daec7._0xb13eb1),_0x3fc2c5(-0x1a2,-0xd3,-0xbd,-0x10f),_0xc4238(_0x2daec7._0x538deb,_0x2daec7._0x4eec75,_0x2daec7._0x191ada,_0x2daec7._0x18dc8f),_0xc4238(0x1f0,0x45,0x112,_0x2daec7._0x2bbd8b),..._0x449352[_0x3fc2c5(0x103,0x91,-_0x2daec7._0x1d921f,_0x2daec7._0x1dd88d)](_0x12f75e=>'-\x20'+_0x12f75e['name']+':\x20'+_0x12f75e[_0xc4238(0x20c,0x303,0x1f0,0x1a1)])];return _0x4b5a8b['join']('\x0a');}function createLoadSkillTool(_0x2f1aae){const _0x2cbbe4={_0x4097cb:0x97,_0x56518e:0xb3,_0x3adb8d:0x7c,_0x5b7908:0xed,_0x655dea:0xc3,_0x47c102:0xd5,_0x40b372:0xd2,_0x43db9a:0x42,_0x5af711:0xe8},_0x82e3ef={_0x4f334d:0x51,_0x5747fb:0x3cc,_0x308c06:0x83,_0xaca3c6:0xa3,_0x569ab0:0xe0,_0x4b2521:0x51d,_0x26713c:0x2b9,_0x33b53b:0x1c5,_0x6a6515:0x33d,_0x42d0cb:0xdf,_0x57f35d:0x92,_0x1488a9:0x41d,_0x57720b:0x3ed,_0x5995de:0x88,_0x182f15:0x178,_0x28c555:0x3b6,_0x341ad9:0x34e,_0xdc4ff4:0x2bf,_0x2408e8:0x264,_0x21b2da:0x194,_0x17b5a3:0x19a,_0xf5b106:0x373,_0x3b9fad:0x187,_0x49fb29:0x2be,_0xf1f013:0x3bf,_0x1694c5:0x45b,_0x50cc41:0x1ca,_0x52a9b4:0xdf,_0x1459ec:0xe7,_0x2f03dd:0xc6,_0xb6a464:0x2cd,_0x2a6eea:0x101,_0x13df64:0x43e,_0x2d7b21:0x3ff},_0x50c5b7={_0x1fb405:0x1f2,_0x52e852:0x3c},_0x3aa0e6={_0x46321f:0x32,_0x1e77d7:0x4bc,_0x5a7183:0x1ea},_0x18c8d6={_0x3dd105:0xd4};function _0x1076d3(_0x118511,_0xd40ef1,_0x4546c5,_0x32c06e){return _0x23b1c2(_0x118511-0x19a,_0x32c06e,_0x4546c5- -0x319,_0x32c06e-_0x18c8d6._0x3dd105);}const _0x304c38=new Map(_0x2f1aae[_0x1076d3(0xd,_0x2cbbe4._0x4097cb,0x86,_0x2cbbe4._0x56518e)]['map'](_0x794ad3=>[_0x794ad3[_0x1076d3(0xdc,0x11c,0x4c,-0xd)],_0x794ad3])),_0x1ee448=buildDescription2(_0x2f1aae[_0x376d7d(-0x6f,0xd0,_0x2cbbe4._0x3adb8d,-0x129)]);function _0x376d7d(_0xc5c365,_0x5ac631,_0x58c6d1,_0x3c41a6){return _0x57b9de(_0xc5c365-_0x3aa0e6._0x46321f,_0x58c6d1,_0xc5c365- -_0x3aa0e6._0x1e77d7,_0x3c41a6-_0x3aa0e6._0x5a7183);}return defineTool({'name':'LoadSkill','description':_0x1ee448,'inputSchema':{'type':_0x1076d3(0x2f,_0x2cbbe4._0x5b7908,_0x2cbbe4._0x655dea,0x77),'properties':{'name':{'type':_0x376d7d(-0x189,-_0x2cbbe4._0x47c102,-_0x2cbbe4._0x40b372,-0x1d3)}},'required':[_0x376d7d(-0xa9,-_0x2cbbe4._0x43db9a,-0x133,-_0x2cbbe4._0x5af711)]},async *'execute'(_0x5abec9){const _0x262afa=_0x304c38[_0x54eb06(-_0x82e3ef._0x4f334d,0xf,0x73,0x154)](_0x5abec9[_0x14db13(0x2a7,_0x82e3ef._0x5747fb,0x259,0x1a4)]);if(!_0x262afa){const _0xe84659=Array[_0x54eb06(-_0x82e3ef._0x308c06,0x4a,0xb5,0x160)](_0x304c38[_0x54eb06(0x1dc,_0x82e3ef._0xaca3c6,0x19c,_0x82e3ef._0x569ab0)]())['join'](',\x20');throw new ToolExecutionError(_0x14db13(0x3fe,_0x82e3ef._0x4b2521,0x2e4,0x4b0)+_0x5abec9['name']+_0x14db13(0x27c,_0x82e3ef._0x26713c,_0x82e3ef._0x33b53b,0x2f3)+_0xe84659,{'name':_0x5abec9['name']});}const _0x25c08e=await _0x2f1aae['loadSkill'](_0x262afa);function _0x14db13(_0x4e8a1c,_0x22a4e4,_0x23a966,_0x3fd723){return _0x1076d3(_0x4e8a1c-0x47,_0x22a4e4-0x196,_0x4e8a1c-0x25b,_0x23a966);}const _0x5aa372=_0x262afa[_0x14db13(0x3c7,_0x82e3ef._0x6a6515,0x481,0x2c8)][_0x14db13(0x3c2,0x388,0x367,0x4c6)]??_0x441627[_0x54eb06(0xdb,_0x82e3ef._0x42d0cb,-0x62,_0x82e3ef._0x57f35d)](_0x262afa[_0x14db13(0x3c7,0x385,_0x82e3ef._0x1488a9,_0x82e3ef._0x57720b)]['path']),_0x289bd7=['##\x20Skill:\x20'+_0x25c08e[_0x54eb06(0xb2,_0x82e3ef._0x5995de,0x7c,_0x82e3ef._0x182f15)],'',_0x25c08e[_0x14db13(_0x82e3ef._0x28c555,0x45a,_0x82e3ef._0x341ad9,_0x82e3ef._0xdc4ff4)],'',_0x14db13(_0x82e3ef._0x2408e8,_0x82e3ef._0x21b2da,_0x82e3ef._0x17b5a3,_0x82e3ef._0xf5b106),_0x54eb06(0x1c5,_0x82e3ef._0x3b9fad,_0x82e3ef._0x49fb29,0x21f)+_0x262afa['source'][_0x14db13(_0x82e3ef._0xf1f013,0x499,0x40a,_0x82e3ef._0x1694c5)],_0x14db13(_0x82e3ef._0x50cc41,_0x82e3ef._0x52a9b4,_0x82e3ef._0x1459ec,_0x82e3ef._0x2f03dd)+_0x5aa372]['join']('\x0a');function _0x54eb06(_0x2e2c6b,_0x1464a3,_0x51ce2d,_0x5878be){return _0x1076d3(_0x2e2c6b-0x8b,_0x1464a3-_0x50c5b7._0x1fb405,_0x1464a3-_0x50c5b7._0x52e852,_0x2e2c6b);}return yield createToolOutput(_0x289bd7,{'id':_0x25c08e['id'],'name':_0x25c08e['name'],'path':_0x262afa[_0x54eb06(0x23e,0x1a8,_0x82e3ef._0xb6a464,_0x82e3ef._0x2a6eea)][_0x14db13(0x3bf,0x3de,_0x82e3ef._0x13df64,_0x82e3ef._0x2d7b21)],'baseDirectory':_0x5aa372}),void 0x0;}});}var TODO_STATUSES=new Set([_0x57b9de(0x318,0x3d9,0x354,0x257),_0x57b9de(0x58c,0x44b,0x530,0x669),'completed']),TODO_PRIORITIES=new Set([_0x23b1c2(0x166,0x3b9,0x295,0x1ec),_0x57b9de(0x3b4,0x47d,0x358,0x39b),_0x57b9de(0x5e3,0x5d4,0x54e,0x46a)]);function isTodoStatus(_0x5516c7){const _0x31a80c={_0x3a0eb8:0x3f6,_0xe738ec:0x2f6,_0x270f11:0x472,_0x5023ff:0x55c,_0x827c7b:0x3b7},_0x4fd7be={_0x160382:0x171,_0x1319ad:0xa6},_0x3ff1ea={_0x1f351d:0xf2,_0x49c723:0x35b};function _0x51e061(_0xdea2b0,_0x40c9e5,_0x17fb51,_0x2b82c5){return _0x57b9de(_0xdea2b0-_0x3ff1ea._0x1f351d,_0xdea2b0,_0x17fb51- -_0x3ff1ea._0x49c723,_0x2b82c5-0x38);}function _0x1430fb(_0x376d61,_0x4df81e,_0x42c13b,_0x4bb96d){return _0x23b1c2(_0x376d61-0xe2,_0x4df81e,_0x376d61-_0x4fd7be._0x160382,_0x4bb96d-_0x4fd7be._0x1319ad);}return typeof _0x5516c7===_0x1430fb(_0x31a80c._0x3a0eb8,0x4a5,0x2de,_0x31a80c._0xe738ec)&&TODO_STATUSES[_0x1430fb(_0x31a80c._0x270f11,_0x31a80c._0x5023ff,0x3c6,_0x31a80c._0x827c7b)](_0x5516c7);}function isTodoPriority(_0x13635d){const _0x5a5b6c={_0x5009dc:0x55};function _0x14c7c0(_0x314b8d,_0x3ae717,_0x22e7ff,_0x5050c8){return _0x23b1c2(_0x314b8d-0xf7,_0x314b8d,_0x22e7ff- -0x279,_0x5050c8-0x100);}return typeof _0x13635d==='string'&&TODO_PRIORITIES[_0x14c7c0(-0x1e,_0x5a5b6c._0x5009dc,0x88,0x2f)](_0x13635d);}var TodoStore=class{[_0x57b9de(0x40e,0x3a7,0x4b5,0x36b)]=new Map();[_0x57b9de(0x291,0x274,0x370,0x3aa)](_0x499400){const _0x586eff={_0x25de2c:0x276,_0x1dfd30:0x203,_0x580ca3:0x290,_0x13261f:0x183},_0xe1bc59={_0x519dce:0x169,_0x467e9b:0xfe},_0x28a71c={_0x5c0028:0x2c,_0xa973d8:0x2e6};function _0x57d0d8(_0x12e244,_0x1d0c67,_0x102c91,_0x3cdfea){return _0x57b9de(_0x12e244-_0x28a71c._0x5c0028,_0x1d0c67,_0x3cdfea- -_0x28a71c._0xa973d8,_0x3cdfea-0xfb);}function _0x4bfa0b(_0x5efd82,_0x1cdeb5,_0x356e4c,_0x41cd75){return _0x23b1c2(_0x5efd82-0x70,_0x5efd82,_0x356e4c- -_0xe1bc59._0x519dce,_0x41cd75-_0xe1bc59._0x467e9b);}return this[_0x4bfa0b(0x2cc,_0x586eff._0x25de2c,0x29e,0x303)][_0x4bfa0b(_0x586eff._0x1dfd30,_0x586eff._0x580ca3,_0x586eff._0x13261f,0x11a)](_0x499400)??[];}[_0x57b9de(0x391,0x46e,0x4cb,0x558)](_0x14a1e4,_0x4ccca4){const _0x8dd809={_0x281b01:0x335,_0x17c68f:0xd1,_0x45706f:0x124},_0xb2c61a={_0x5e0c1d:0x1f0,_0x16b3a6:0x9c},_0x1fe58e={_0x54f2eb:0x110};function _0x2cb87a(_0x2cac03,_0x2cbfb1,_0x1bcfee,_0x2e5a2f){return _0x23b1c2(_0x2cac03-0xee,_0x2cac03,_0x2cbfb1- -0xd2,_0x2e5a2f-_0x1fe58e._0x54f2eb);}function _0x2a526d(_0x41bd8f,_0x584257,_0x4b4b6e,_0x1ed85e){return _0x57b9de(_0x41bd8f-_0xb2c61a._0x5e0c1d,_0x4b4b6e,_0x584257- -0x461,_0x1ed85e-_0xb2c61a._0x16b3a6);}this[_0x2cb87a(0x3e8,_0x8dd809._0x281b01,0x251,0x2ba)][_0x2cb87a(_0x8dd809._0x17c68f,0x177,0x1d1,_0x8dd809._0x45706f)](_0x14a1e4,_0x4ccca4);}[_0x57b9de(0x3a8,0x348,0x3e5,0x3cb)](_0x3d3923){const _0x3dea51={_0xc567d4:0x22f,_0x4b453f:0x13a,_0x454cc2:0x270,_0x55f15d:0xad,_0x54eb79:0x85,_0x3cd251:0xc1,_0x33beac:0x159,_0x152980:0x10e,_0x444904:0xd4,_0x344e50:0x8f,_0x1e1e1d:0x26,_0x25a9d7:0x41,_0x12f491:0x9,_0x1c4b86:0x174};function _0x31d5b9(_0x3fe2f7,_0xa45dbf,_0x48c26c,_0x463f72){return _0x57b9de(_0x3fe2f7-0xe,_0x463f72,_0x48c26c- -0x4aa,_0x463f72-0xa8);}function _0x473d7c(_0x33971d,_0x34779b,_0x5de767,_0x2f6b12){return _0x57b9de(_0x33971d-0x12,_0x5de767,_0x2f6b12- -0x462,_0x2f6b12-0x122);}const _0xd73013=this[_0x31d5b9(-0x258,-_0x3dea51._0xc567d4,-_0x3dea51._0x4b453f,-_0x3dea51._0x454cc2)](_0x3d3923),_0x411f24={'total':_0xd73013[_0x31d5b9(0x16f,0x71,_0x3dea51._0x55f15d,0x46)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0xf509f3 of _0xd73013){if(_0xf509f3[_0x31d5b9(_0x3dea51._0x54eb79,_0x3dea51._0x3cd251,0x26,0xa3)]===_0x473d7c(-0x1ed,-0x1e1,-_0x3dea51._0x33beac,-_0x3dea51._0x152980))_0x411f24[_0x31d5b9(-_0x3dea51._0x444904,-0xd4,-0x156,-_0x3dea51._0x344e50)]+=0x1;else{if(_0xf509f3[_0x31d5b9(0x65,-0x8b,_0x3dea51._0x1e1e1d,-0x5c)]==='in_progress')_0x411f24[_0x473d7c(-_0x3dea51._0x25a9d7,-0x1d,-_0x3dea51._0x12f491,-0x145)]+=0x1;else _0x411f24[_0x473d7c(0x106,_0x3dea51._0x1c4b86,-0x60,0xbe)]+=0x1;}}return _0x411f24;}};function validateTodos(_0x454c84){const _0x5d85c2={_0x449ede:0x31e,_0x1de68f:0x35b,_0x241d2a:0x406,_0x46c2a2:0x8,_0x26b383:0x130,_0x5e0200:0xa4,_0xc20c82:0x94,_0x5b3da3:0x2d2,_0x505c8c:0x1a5,_0x380fb5:0x8c,_0xed6b9b:0x212,_0x1b8f4c:0x251,_0x3729de:0x1ad,_0x38d1bd:0x1a1,_0x4b68af:0x363,_0x4cc1e2:0x1f3,_0x42a38b:0x13f,_0x1aa6da:0x25f,_0x442730:0xe0,_0x59973f:0x137,_0x5409eb:0x178,_0x3528e0:0x1fa,_0x5698ba:0x448,_0x214f96:0x219,_0x181905:0x2b2,_0x338ab7:0x2a9,_0x458db1:0x30c,_0x101582:0x50,_0x4f5354:0x1a0,_0x4acc90:0x1ca,_0x4653ba:0x238,_0x59e5aa:0x295,_0x322e81:0x44e,_0x22423f:0x2f9,_0x1e0b7e:0x326,_0x449d5b:0x3ec,_0x533d67:0x3d1,_0x32f1a8:0x341,_0x6c141c:0x20d,_0x50ea3e:0x33d,_0x3b595d:0x236,_0x1134d5:0x2d4,_0xa6f6bf:0x278,_0x550368:0x32d,_0x3cc4f0:0x3ca,_0xc81d99:0x1dc,_0x1e75f1:0x175,_0x4456b0:0x43f,_0x279574:0x205,_0x4d4848:0x29d,_0x2806a3:0x34b,_0x466192:0x218,_0x36ad34:0x3d5,_0x58e9ef:0x1d0,_0x7100be:0x220,_0x56ac03:0x36e,_0x5722b7:0x3a1,_0x36eb6c:0x470,_0x5723bb:0x2a,_0x476e4b:0x15b,_0x3a26ea:0x24b,_0x28feca:0x18a},_0xb73ffc={_0x45008a:0x13a,_0x4a32f0:0x13b};if(!Array['isArray'](_0x454c84['todos'])||_0x454c84['todos'][_0x10ed1d(0x42a,_0x5d85c2._0x449ede,_0x5d85c2._0x1de68f,_0x5d85c2._0x241d2a)]===0x0)throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x46c2a2,_0x5d85c2._0x26b383,_0x5d85c2._0x5e0200,_0x5d85c2._0xc20c82),{'error':'invalid_todos'});for(let _0x33030d=0x0;_0x33030d<_0x454c84[_0x12c6d2(_0x5d85c2._0x5b3da3,_0x5d85c2._0x505c8c,_0x5d85c2._0x380fb5,0x20c)][_0x10ed1d(0x31e,0x297,0x35b,0x4a5)];_0x33030d+=0x1){const _0x2ab691=_0x454c84[_0x12c6d2(_0x5d85c2._0xed6b9b,0x1a5,_0x5d85c2._0x1b8f4c,_0x5d85c2._0x3729de)][_0x33030d];if(!_0x2ab691||typeof _0x2ab691!==_0x10ed1d(_0x5d85c2._0x38d1bd,0x39a,0x28e,0x30f))throw new ToolExecutionError(_0x10ed1d(0x341,0x3ec,0x2e6,_0x5d85c2._0x4b68af)+(_0x33030d+0x1)+_0x12c6d2(0x106,0x118,_0x5d85c2._0x4cc1e2,0x26b),{'error':_0x12c6d2(0xf3,_0x5d85c2._0x42a38b,_0x5d85c2._0x1aa6da,0xc6)});if(typeof _0x2ab691['id']!==_0x10ed1d(0x259,_0x5d85c2._0x442730,_0x5d85c2._0x59973f,0x189)||_0x2ab691['id'][_0x12c6d2(0x8c,_0x5d85c2._0x5409eb,_0x5d85c2._0x3528e0,0x213)]()[_0x10ed1d(0x3dd,_0x5d85c2._0x5698ba,0x35b,0x428)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x33030d+0x1)+_0x12c6d2(_0x5d85c2._0x214f96,_0x5d85c2._0x181905,0x2d1,_0x5d85c2._0x338ab7),{'error':_0x10ed1d(0x31d,0x30a,0x390,_0x5d85c2._0x458db1)});if(typeof _0x2ab691['content']!==_0x10ed1d(0xcc,0xf3,0x137,_0x5d85c2._0x101582)||_0x2ab691[_0x12c6d2(_0x5d85c2._0x4f5354,0x16c,_0x5d85c2._0x4acc90,0x20f)][_0x12c6d2(_0x5d85c2._0x4653ba,0x178,0x294,0x24a)]()[_0x12c6d2(_0x5d85c2._0x59e5aa,0x36e,0x396,_0x5d85c2._0x322e81)]===0x0)throw new ToolExecutionError(_0x12c6d2(0x435,_0x5d85c2._0x22423f,0x1cf,_0x5d85c2._0x1e0b7e)+(_0x33030d+0x1)+_0x10ed1d(0x238,_0x5d85c2._0x449d5b,0x318,0x398),{'error':_0x10ed1d(0x312,_0x5d85c2._0x533d67,_0x5d85c2._0x32f1a8,_0x5d85c2._0x6c141c)});if(!isTodoStatus(_0x2ab691[_0x10ed1d(_0x5d85c2._0x50ea3e,_0x5d85c2._0x3b595d,_0x5d85c2._0x1134d5,_0x5d85c2._0xa6f6bf)]))throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x550368,0x2f9,0x28a,_0x5d85c2._0x3cc4f0)+(_0x33030d+0x1)+':\x20invalid\x20status',{'error':_0x12c6d2(0x2e2,_0x5d85c2._0xc81d99,_0x5d85c2._0x1e75f1,0xa3)});if(!isTodoPriority(_0x2ab691[_0x12c6d2(0x391,0x300,_0x5d85c2._0x4456b0,_0x5d85c2._0x279574)]))throw new ToolExecutionError(_0x10ed1d(_0x5d85c2._0x4d4848,0x1e6,0x2e6,0x254)+(_0x33030d+0x1)+':\x20invalid\x20priority',{'error':'invalid_todo_priority'});}function _0x12c6d2(_0x41edc9,_0x5df231,_0x3b51eb,_0x12cd4f){return _0x23b1c2(_0x41edc9-_0xb73ffc._0x45008a,_0x41edc9,_0x5df231- -_0xb73ffc._0x4a32f0,_0x12cd4f-0x97);}function _0x10ed1d(_0x2b8d90,_0x11049c,_0x213e5d,_0x3f8476){return _0x23b1c2(_0x2b8d90-0x181,_0x11049c,_0x213e5d- -0x14e,_0x3f8476-0x33);}const _0x5d4c0d=_0x454c84[_0x12c6d2(0x177,_0x5d85c2._0x505c8c,0x2db,0x2ee)][_0x12c6d2(0x39f,_0x5d85c2._0x2806a3,_0x5d85c2._0x466192,_0x5d85c2._0x36ad34)](_0x59a497=>_0x59a497['id']);if(new Set(_0x5d4c0d)[_0x12c6d2(0x26a,0x2cb,0x1de,_0x5d85c2._0x58e9ef)]!==_0x5d4c0d[_0x12c6d2(_0x5d85c2._0x7100be,_0x5d85c2._0x56ac03,_0x5d85c2._0x5722b7,_0x5d85c2._0x36eb6c)])throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x5723bb,0x12b,_0x5d85c2._0x476e4b,_0x5d85c2._0x3a26ea),{'error':_0x10ed1d(_0x5d85c2._0x4f5354,0x2d6,_0x5d85c2._0x28feca,0x167)});}function createStatsProgress(_0x236530){const _0x2e87f6={_0x462dbc:0x176,_0x14c609:0x16b,_0x3674a:0x1eb,_0x538eba:0x1d7,_0x5dad82:0xe2,_0x23ea30:0x398,_0x3a87a6:0x2fe,_0x3821c1:0x11f,_0x3e1ee5:0xb0,_0x91a501:0x1f3,_0x104c14:0x1c8},_0x24550c={_0x540d78:0x4d,_0x5873c1:0x1a0},_0x2021b2={_0x2c8783:0x1b7};function _0x268649(_0x5dc541,_0x534b25,_0x15ff03,_0x4fd0f4){return _0x23b1c2(_0x5dc541-_0x2021b2._0x2c8783,_0x15ff03,_0x4fd0f4- -0x174,_0x4fd0f4-0x71);}function _0x5cf10c(_0x14f5f0,_0xd5afbb,_0x58f2f2,_0x4df89c){return _0x23b1c2(_0x14f5f0-_0x24550c._0x540d78,_0xd5afbb,_0x4df89c- -0x197,_0x4df89c-_0x24550c._0x5873c1);}return _0x236530[_0x268649(0x2a3,_0x2e87f6._0x462dbc,_0x2e87f6._0x14c609,_0x2e87f6._0x3674a)]>0x0?Math[_0x5cf10c(0x15f,0x87,_0x2e87f6._0x538eba,_0x2e87f6._0x5dad82)](_0x236530[_0x268649(0x43a,_0x2e87f6._0x23ea30,0x304,_0x2e87f6._0x3a87a6)]/_0x236530[_0x5cf10c(_0x2e87f6._0x3821c1,_0x2e87f6._0x3e1ee5,_0x2e87f6._0x91a501,_0x2e87f6._0x104c14)]*0x64)+'%':'0%';}function createReminderItems(_0x53adab){const _0x1f9262={_0x540ab9:0x47e,_0xfdcc86:0x2e9},_0x179561={_0x5d719c:0x100,_0x67c910:0xc},_0x207249={_0x139ca9:0xf7,_0x7948ce:0x16};function _0x28f948(_0xc776f4,_0x5eda0e,_0x538f36,_0x311c33){return _0x57b9de(_0xc776f4-_0x207249._0x139ca9,_0x311c33,_0x538f36- -_0x207249._0x7948ce,_0x311c33-0x1e7);}function _0x47ba5d(_0x47ff69,_0x340619,_0x47b183,_0x451ba1){return _0x23b1c2(_0x47ff69-0x122,_0x451ba1,_0x47b183- -_0x179561._0x5d719c,_0x451ba1-_0x179561._0x67c910);}return _0x53adab[_0x47ba5d(_0x1f9262._0x540ab9,_0x1f9262._0xfdcc86,0x386,0x378)](_0x4f883c=>({'content':_0x4f883c['content'],'status':_0x4f883c[_0x28f948(0x435,0x501,0x4ba,0x48b)],'id':_0x4f883c['id']}));}function createStructuredResult(_0x1a0671,_0xbf4049,_0x4cbe5b,_0x2b8a87){const _0x1a4dc3={_0x1e26c7:0x748,_0x2779a6:0x65a,_0x4c12f6:0x73e,_0x1ad5e1:0x67d},_0x4a0667={_0x382835:0x8a},_0x23ec93={_0x314275:0x24a,_0x247a6c:0x1c7};function _0x48c938(_0x34efed,_0x95c5c8,_0x1334e3,_0x4dd509){return _0x23b1c2(_0x34efed-0x52,_0x95c5c8,_0x1334e3- -_0x23ec93._0x314275,_0x4dd509-_0x23ec93._0x247a6c);}function _0x579180(_0x40ddf1,_0x1377bb,_0x6096ec,_0x580265){return _0x57b9de(_0x40ddf1-_0x4a0667._0x382835,_0x40ddf1,_0x1377bb-0x126,_0x580265-0xd6);}return{'allCompleted':_0x2b8a87,'items':_0xbf4049[_0x579180(_0x1a4dc3._0x1e26c7,_0x1a4dc3._0x2779a6,0x5ed,0x56c)](_0x39edd4=>({'id':_0x39edd4['id'],'content':_0x39edd4[_0x48c938(0xd9,-0x8e,0x5d,0x2b)],'status':_0x39edd4[_0x579180(0x5eb,0x5f6,0x692,0x513)],'priority':_0x39edd4[_0x579180(0x661,0x60f,0x664,0x646)],'createdAt':_0x39edd4[_0x579180(0x520,0x589,0x61b,0x6ae)]})),'progress':createStatsProgress(_0x4cbe5b),'recentChanges':!![],'sessionId':_0x1a0671,'stats':_0x4cbe5b,'todosWritten':_0xbf4049[_0x579180(_0x1a4dc3._0x4c12f6,_0x1a4dc3._0x1ad5e1,0x641,0x6d2)]};}function createOutputText(_0x464a1e,_0x4f6b91){const _0xd88794={_0x218c9f:0xc7,_0x45555a:0x1e,_0x3b6d19:0x126,_0x12dbdb:0x86,_0x303884:0x2f,_0x275256:0xba,_0xc5cc6e:0x10a,_0x27fcad:0xb8},_0x1cc6ec={_0x2cd203:0x1ee},_0x3865bc={_0x369ac4:0x4f,_0x58145a:0x420,_0x4d2992:0x15e},_0x4ff7c2=JSON[_0x478f6f(0xe7,-0x4,0xf7,-_0xd88794._0x218c9f)](createReminderItems(_0x464a1e));function _0x478f6f(_0x2c909f,_0xab3541,_0x4a3386,_0x513f36){return _0x57b9de(_0x2c909f-_0x3865bc._0x369ac4,_0x513f36,_0xab3541- -_0x3865bc._0x58145a,_0x513f36-_0x3865bc._0x4d2992);}function _0x5037cc(_0x18cf96,_0x3ad9c8,_0x45d08c,_0x332d96){return _0x57b9de(_0x18cf96-_0x1cc6ec._0x2cd203,_0x332d96,_0x18cf96- -0x48c,_0x332d96-0xae);}if(_0x4f6b91)return _0x5037cc(-_0xd88794._0x45555a,-0x17,0xda,-_0xd88794._0x3b6d19)+_0x464a1e[_0x478f6f(_0xd88794._0x12dbdb,0x137,0x153,0x3e)]+_0x478f6f(-0x17e,-0x113,-_0xd88794._0x303884,-0x220)+_0x4ff7c2+_0x478f6f(-0x1bc,-_0xd88794._0x275256,0x6d,0x95);return _0x5037cc(-_0xd88794._0xc5cc6e,-0x1a9,-0x235,-0x17e)+_0x4ff7c2+_0x478f6f(-0x87,-_0xd88794._0x275256,0x70,-_0xd88794._0x27fcad);}function createTodoWriteTool(_0x59b13a=new TodoStore()){const _0x4570e6={_0x1bc465:0x41f,_0x1c1d3f:0x3ac,_0x35a20c:0x3c2,_0x4ca9d3:0x1f3,_0x338335:0x2c8,_0x2b205c:0x42f,_0x23cc70:0x766,_0x2d475d:0x6bc,_0x3cee75:0x7a0,_0x39e151:0x565,_0x21ba3f:0x43b,_0x319d93:0x267,_0xc03161:0x26b,_0x5b6e82:0x34c,_0x324e0a:0x470,_0x4dc681:0x3a4,_0xdd7f02:0x398,_0x4c0a54:0x28d,_0x7d79df:0x2d5,_0x41fb60:0x408,_0x51f8c4:0x539,_0x90de58:0x537,_0x53adda:0x55c,_0x5566d8:0x421,_0x327987:0x315,_0x4d108a:0x4e3,_0x529df2:0x5c0,_0x400cef:0x6bb},_0x2cd3d2={_0x4c59c4:0x3c8,_0x4c4478:0x56d,_0x459b24:0x334,_0x207766:0x385,_0x31e95d:0x18b,_0x1ffaf2:0x7b8,_0x5b7a4e:0x8f9,_0xa17fa1:0x632,_0x39f18c:0x7db,_0xef34c3:0x7b2,_0x1bd48b:0x72f,_0x309c68:0x19f,_0x2e015f:0x3c9,_0x36d89d:0x2d1},_0x1d2a5a={_0x4d6cb5:0x193},_0x1e066d={_0x442332:0x1a},_0x4eef56={_0x52d03a:0x127,_0x53d4a0:0x11};function _0xa23f57(_0x68f189,_0x1e6b80,_0x1ce547,_0x37e3c4){return _0x57b9de(_0x68f189-_0x4eef56._0x52d03a,_0x37e3c4,_0x1e6b80-0x232,_0x37e3c4-_0x4eef56._0x53d4a0);}function _0x5db649(_0x3eca21,_0x4df638,_0x22a210,_0xb63033){return _0x23b1c2(_0x3eca21-0x141,_0x4df638,_0x22a210- -_0x1e066d._0x442332,_0xb63033-0x1c3);}return defineTool({'name':'TodoWrite','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':_0x5db649(_0x4570e6._0x1bc465,_0x4570e6._0x1c1d3f,_0x4570e6._0x35a20c,0x4c9),'properties':{'todos':{'type':_0x5db649(_0x4570e6._0x4ca9d3,_0x4570e6._0x338335,0x310,_0x4570e6._0x2b205c),'items':{'type':_0xa23f57(_0x4570e6._0x23cc70,_0x4570e6._0x2d475d,_0x4570e6._0x3cee75,0x72d),'properties':{'content':{'type':_0xa23f57(0x671,_0x4570e6._0x39e151,0x639,_0x4570e6._0x21ba3f)},'status':{'type':_0x5db649(0x236,_0x4570e6._0x319d93,_0x4570e6._0xc03161,_0x4570e6._0x5b6e82)},'priority':{'type':'string'},'id':{'type':_0xa23f57(0x513,_0x4570e6._0x39e151,_0x4570e6._0x324e0a,0x681)},'createdAt':{'type':_0xa23f57(0x60f,0x565,0x4ad,0x599)}},'required':[_0x5db649(_0x4570e6._0x4dc681,_0x4570e6._0xdd7f02,_0x4570e6._0x4c0a54,0x365),_0x5db649(_0x4570e6._0x7d79df,0x4af,_0x4570e6._0x41fb60,_0x4570e6._0x51f8c4),_0x5db649(_0x4570e6._0x90de58,_0x4570e6._0x53adda,_0x4570e6._0x5566d8,_0x4570e6._0x327987),'id']}}},'required':[_0xa23f57(_0x4570e6._0x4d108a,_0x4570e6._0x529df2,0x55f,_0x4570e6._0x400cef)]},async *'execute'(_0x4f0d2d,_0x30aaad){const _0x1b2ab4={_0x1a34ab:0x108},_0x5573cd=_0x4f0d2d;validateTodos(_0x5573cd);function _0x399ec5(_0x4de88,_0x7a9854,_0x25ef95,_0x3c0d28){return _0x5db649(_0x4de88-_0x1d2a5a._0x4d6cb5,_0x3c0d28,_0x7a9854-0x34c,_0x3c0d28-0x118);}const _0x1ea25a=_0x30aaad[_0x4f7f11(_0x2cd3d2._0x4c59c4,0x546,_0x2cd3d2._0x4c4478,0x458)]||_0x4f7f11(0x45c,_0x2cd3d2._0x459b24,0x49b,_0x2cd3d2._0x207766),_0x90825b=new Date()['toISOString'](),_0x193626=_0x5573cd[_0x4f7f11(_0x2cd3d2._0x31e95d,0x2dc,0x181,0x2cf)][_0x399ec5(0x745,_0x2cd3d2._0x1ffaf2,0x7f3,_0x2cd3d2._0x5b7a4e)](_0x28ee60=>({'id':_0x28ee60['id'],'content':_0x28ee60[_0x399ec5(0x6e4,0x5d9,0x6d5,0x5a6)],'status':_0x28ee60['status'],'priority':_0x28ee60['priority'],'sessionId':_0x1ea25a,'createdAt':_0x28ee60[_0x4f7f11(0x482,0x4b7,0x271,0x3a4)]||_0x90825b,'updatedAt':_0x90825b}));_0x59b13a['setTodos'](_0x1ea25a,_0x193626);function _0x4f7f11(_0x228f67,_0x124baf,_0x1db3e8,_0x3af841){return _0xa23f57(_0x228f67-0x1c9,_0x3af841- -0x2f1,_0x1db3e8-_0x1b2ab4._0x1a34ab,_0x1db3e8);}const _0x580702=_0x59b13a[_0x399ec5(0x60f,0x669,_0x2cd3d2._0xa17fa1,0x7b3)](_0x1ea25a),_0x33f964=_0x193626[_0x399ec5(0x7c8,_0x2cd3d2._0x39f18c,_0x2cd3d2._0xef34c3,_0x2cd3d2._0x1bd48b)]>0x0&&_0x193626[_0x4f7f11(0x2c5,_0x2cd3d2._0x309c68,_0x2cd3d2._0x2e015f,_0x2cd3d2._0x36d89d)](_0x211c04=>_0x211c04[_0x4f7f11(0x3b7,0x550,0x41c,0x411)]===_0x4f7f11(0x567,0x42f,0x47b,0x461));return createToolOutput(createOutputText(_0x193626,_0x33f964),createStructuredResult(_0x1ea25a,_0x193626,_0x580702,_0x33f964));}});}import{mkdir as _0x48a198,writeFile as _0x232dcc}from'fs/promises';import*as _0x2c1959 from'path';function sanitizeFileName(_0x399c84){const _0x254c42={_0x2bcec8:0x609},_0x340a17={_0x2caa16:0xd5};function _0x49659b(_0xa3f4f2,_0x5d9811,_0x5f06f7,_0x527add){return _0x57b9de(_0xa3f4f2-0x1b0,_0x5d9811,_0x5f06f7-_0x340a17._0x2caa16,_0x527add-0xcf);}return _0x399c84[_0x49659b(0x576,_0x254c42._0x2bcec8,0x5c2,0x69b)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x36c3bd,_0x2bd157){const _0x41f08c={_0x5810eb:0x355,_0x56440f:0x31b,_0x57459e:0x310,_0x274a0:0x2ab,_0x3f822c:0x3af,_0x186311:0x43e,_0x195b27:0x40b,_0x126afb:0x438,_0x3baab6:0x3ce,_0x457acd:0x46f,_0x4fb2bc:0x2ef,_0x1edacd:0x11b,_0x138baa:0x152,_0x47f94e:0x509,_0x3cfb9e:0x462,_0xef11ea:0x645,_0x1bcd8d:0x494,_0x1a2a3:0x500,_0x68158d:0x259,_0x526bd8:0x23f,_0x161589:0x256,_0x41c225:0x307,_0x19b12f:0x2eb,_0x48e017:0x3b1,_0x2462f6:0x492,_0x2f53ab:0x198,_0x3cbe3f:0x388,_0x292e0f:0x374,_0x15344e:0x321,_0x3dff67:0xb,_0x30d9a9:0x383,_0x2702f1:0x327,_0xebf1ab:0x659,_0x2b780e:0x5df,_0x267b2b:0x3ce,_0x5739a1:0x459,_0x398402:0x182,_0x2e5eea:0x2c6},{maxBytes:_0x387120,sessionDir:_0x1725d4}=_0x2bd157;if(!_0x36c3bd['output']||Buffer[_0xb40652(_0x41f08c._0x5810eb,_0x41f08c._0x56440f,0x2d2,0x256)](_0x36c3bd['output'],_0xb40652(_0x41f08c._0x57459e,0x330,0x20c,_0x41f08c._0x274a0))<=_0x387120)return _0x36c3bd;const _0x2ff1d2=Buffer['byteLength'](_0x36c3bd[_0xa89635(0x390,0x479,0x2ea,_0x41f08c._0x3f822c)],_0xa89635(_0x41f08c._0x186311,_0x41f08c._0x195b27,_0x41f08c._0x126afb,0x4e5));if(!_0x1725d4){const _0x4a2e8b=_0x36c3bd['output'][_0xa89635(_0x41f08c._0x3baab6,0x595,_0x41f08c._0x195b27,_0x41f08c._0x457acd)](0x0,_0x387120);return{..._0x36c3bd,'output':_0x4a2e8b+(_0xb40652(_0x41f08c._0x4fb2bc,0x447,0x301,0x384)+_0x387120+_0xb40652(0x5,_0x41f08c._0x1edacd,_0x41f08c._0x138baa,0x147)+_0x2ff1d2+_0xa89635(_0x41f08c._0x47f94e,_0x41f08c._0x3cfb9e,0x3c0,0x3ee)),'meta':{..._0x36c3bd[_0xa89635(_0x41f08c._0xef11ea,_0x41f08c._0x1bcd8d,0x44f,_0x41f08c._0x1a2a3)],'truncated':!![],'originalBytes':_0x2ff1d2,'transforms':[..._0x36c3bd['meta'][_0xb40652(0x243,_0x41f08c._0x68158d,0x197,0x240)],'tool-output-offload']}};}const _0x5e6ee5=_0x36c3bd[_0xb40652(_0x41f08c._0x526bd8,0x276,_0x41f08c._0x161589,0x142)]+'_'+sanitizeFileName(_0x36c3bd[_0xb40652(0x2f9,0x333,0x1c0,0x2ad)])+_0xb40652(0x227,_0x41f08c._0x41c225,0x286,0x2b1),_0xee88f4=_0x2c1959[_0xa89635(_0x41f08c._0x19b12f,0x3bf,0x2c9,0x3ce)](_0x1725d4,_0x5e6ee5);await _0x48a198(_0x1725d4,{'recursive':!![]}),await _0x232dcc(_0xee88f4,_0x36c3bd['output'],'utf8');let _0x3db081=_0x36c3bd[_0xb40652(0x24a,0x124,0x289,0x175)]['slice'](0x0,_0x387120);const _0x484a26=_0x3db081['lastIndexOf']('\x0a');function _0xa89635(_0x552495,_0x296b72,_0x46e475,_0x35a175){return _0x57b9de(_0x552495-0x96,_0x46e475,_0x35a175-0x2f,_0x35a175-0x31);}function _0xb40652(_0x1d12f9,_0x27b25e,_0x122bf7,_0xbb0514){return _0x57b9de(_0x1d12f9-0x1e6,_0x122bf7,_0xbb0514- -0x20b,_0xbb0514-0xb3);}_0x484a26>_0x387120*0.5&&(_0x3db081=_0x3db081[_0xa89635(0x4e2,_0x41f08c._0x48e017,_0x41f08c._0x2462f6,0x46f)](0x0,_0x484a26));const _0x3b90d6=['',_0xb40652(0x28b,0x238,_0x41f08c._0x2f53ab,0x278),_0xa89635(_0x41f08c._0x3cbe3f,_0x41f08c._0x292e0f,0x38b,_0x41f08c._0x15344e)+_0x387120+_0xb40652(-0x7,0x6c,-_0x41f08c._0x3dff67,0x13d)+_0x2ff1d2+_0xa89635(0x1d4,0x397,_0x41f08c._0x30d9a9,_0x41f08c._0x2702f1),_0xb40652(0x3a0,0x35d,0x31e,_0x41f08c._0x15344e)+_0xee88f4,'Use\x20FileRead\x20with\x20lineStart/lineEnd\x20to\x20inspect\x20specific\x20sections\x20of\x20the\x20full\x20output.',_0xa89635(0x51d,_0x41f08c._0xebf1ab,_0x41f08c._0x2b780e,0x552)][_0xa89635(0x31f,0x488,0x29a,_0x41f08c._0x267b2b)]('\x0a');return{..._0x36c3bd,'output':_0x3db081+_0x3b90d6,'meta':{..._0x36c3bd[_0xa89635(_0x41f08c._0x5739a1,0x3b2,0x4e5,_0x41f08c._0x1a2a3)],'truncated':!![],'originalBytes':_0x2ff1d2,'transforms':[..._0x36c3bd[_0xb40652(0x3f5,_0x41f08c._0x398402,0x344,_0x41f08c._0x2e5eea)][_0xa89635(0x40d,0x350,0x491,0x47a)],'tool-output-offload']}};}function createUpdateTopicTool(){const _0x5e96af={_0x5aa5ae:0x4a4,_0x39834e:0x3a2,_0x49654c:0x3bc,_0x5e92af:0x53a},_0x44db01={_0x4769f3:0x6d,_0x35a666:0xa3,_0x25dfa4:0x43,_0x4d338a:0xab,_0xf4e9a0:0xa0,_0x5d5fc1:0x131,_0x3f2957:0x8c,_0x5221a1:0x1dd,_0x2f1607:0x128,_0x3b692b:0x1bf,_0x11df10:0xe0,_0x3d7321:0x57,_0x3da634:0x1d7,_0x3c52bb:0x13,_0x2d15e9:0x72},_0x398246={_0x31c02a:0x16b,_0x336013:0x5f8},_0x161538={_0x2514f5:0x59},_0x55f92c={_0x2e8ce0:0x106,_0x10cf81:0x1db};function _0x55dc36(_0x2dcf82,_0x51ded2,_0x2fa4a1,_0x12e72d){return _0x57b9de(_0x2dcf82-_0x55f92c._0x2e8ce0,_0x12e72d,_0x2fa4a1- -_0x55f92c._0x10cf81,_0x12e72d-0x2e);}function _0xa3ec82(_0x396554,_0x34fb29,_0x2cd8ab,_0x2f56a2){return _0x23b1c2(_0x396554-0x183,_0x2cd8ab,_0x34fb29-0x265,_0x2f56a2-_0x161538._0x2514f5);}return defineTool({'name':_0x55dc36(0x4d3,_0x5e96af._0x5aa5ae,_0x5e96af._0x39834e,_0x5e96af._0x49654c),'description':'Update\x20the\x20session\x20topic\x20to\x20a\x20concise\x203-6\x20word\x20noun\x20phrase\x20that\x20captures\x20the\x20current\x20subject.\x0a\x0aCall\x20this\x20tool\x20when\x20the\x20session\x27s\x20subject\x20becomes\x20clear\x20or\x20shifts\x20to\x20something\x20clearly\x20different\x20—\x20not\x20for\x20minor\x20tangents\x20or\x20clarifying\x20sub-questions.\x20If\x20nothing\x20has\x20meaningfully\x20changed,\x20do\x20not\x20call\x20it.\x0a\x0aGood\x20topic\x20(noun\x20phrase,\x203-6\x20words):\x0a\x20\x20\x22Debug\x20TS\x20generics\x20error\x22\x0a\x20\x20\x22Refactor\x20auth\x20middleware\x22\x0a\x20\x20\x22Add\x20Stripe\x20webhook\x20handler\x22\x0a\x0aBad\x20topic\x20(full\x20sentence\x20or\x20vague):\x0a\x20\x20\x22The\x20user\x20wants\x20to\x20debug\x20a\x20TypeScript\x20generics\x20error\x20in\x20their\x20project\x22\x0a\x20\x20\x22coding\x22','inputSchema':{'type':_0xa3ec82(0x556,0x641,_0x5e96af._0x5e92af,0x751),'properties':{'topic':{'type':'string'}},'required':['topic']},async *'execute'(_0x4f1461,_0x3a9f1d){const _0x40a726={_0x35f17d:0x43f,_0x5e7e9a:0x35},{topic:_0x93f87a}=_0x4f1461;function _0x3e4548(_0x11f214,_0x2632ea,_0x5655a4,_0x4d069f){return _0xa3ec82(_0x11f214-_0x398246._0x31c02a,_0x2632ea- -_0x398246._0x336013,_0x5655a4,_0x4d069f-0x12);}if(typeof _0x93f87a!==_0xf01f15(_0x44db01._0x4769f3,-_0x44db01._0x35a666,_0x44db01._0x25dfa4,_0x44db01._0x4d338a)||_0x93f87a[_0xf01f15(_0x44db01._0xf4e9a0,_0x44db01._0x5d5fc1,0x160,0xd9)]()['length']===0x0)throw new ToolExecutionError(_0xf01f15(_0x44db01._0x3f2957,0x2ea,0x2b4,_0x44db01._0x5221a1),{'error':_0x3e4548(_0x44db01._0x2f1607,-0x18,-0xb4,-0xbc)});const _0x1ac517=_0x93f87a[_0x3e4548(-_0x44db01._0x3b692b,-_0x44db01._0x11df10,-0x12d,_0x44db01._0x3d7321)]();_0x3a9f1d[_0x3e4548(-0x12b,-0xa0,-0x15c,-_0x44db01._0x3da634)]?.(_0x1ac517);function _0xf01f15(_0x5b6a9b,_0x46fedc,_0x5ef94b,_0x6e26da){return _0xa3ec82(_0x5b6a9b-0x1a6,_0x6e26da- -_0x40a726._0x35f17d,_0x5b6a9b,_0x6e26da-_0x40a726._0x5e7e9a);}return yield createToolOutput(_0xf01f15(_0x44db01._0x3c52bb,0xe8,0x1c6,_0x44db01._0x2d15e9)+_0x1ac517+'\x22',{'topic':_0x1ac517}),void 0x0;}});}import{readFile as _0x23ce0a,stat as _0x47bea6}from'fs/promises';import*as _0x2b47fc from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto',_0x23b1c2(0x309,0x36e,0x295,0x2ae),_0x23b1c2(0x53c,0x523,0x4a0,0x5b0),_0x57b9de(0x484,0x4a2,0x430,0x4f7)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x2c39a8,_0x2c7e5f){const _0x354f25={_0x38800f:0x30c,_0x171741:0x3fc,_0x358851:0x360,_0x24ad3f:0x592,_0x194c12:0x4ea,_0xbe22dd:0x371,_0x536dab:0x549,_0x4cf27c:0x5d8,_0x4b18ea:0x4ff,_0x505c9f:0x1cf,_0x252dec:0x1f4,_0x4ad770:0x9c,_0x2c08ed:0x1bd,_0x190fc0:0x28e,_0x17d553:0x38f,_0x3373f7:0x2d9,_0x316cab:0x256,_0x32b64a:0x33d,_0x405cf1:0x498,_0x26f231:0x48f,_0x13a6eb:0x23e,_0x387fe6:0x378,_0x239f77:0x2c8,_0x37b74a:0x38d,_0x2ebac9:0x2ae,_0x1332a8:0x265,_0x356e60:0x162,_0x4233d0:0x1b8,_0x2214e4:0x47f,_0x5254a3:0x408,_0x113d36:0x4d8,_0x249650:0x336,_0x1ebe6d:0x3ff,_0x1ae6e6:0x2b2,_0x5d8a30:0x3b8,_0x38cd67:0x1a3,_0x4aea48:0x44e,_0x516d26:0x4f0,_0x2e41b0:0x308,_0x22049f:0x356,_0x564d4e:0x272,_0x51aeb9:0x3a5,_0xe45f9:0x424,_0x149b21:0x334,_0xd9beea:0x382,_0x13a8ce:0x4c8},_0x3ffe07={_0x2dd10e:0xb5};function _0x46f072(_0x52408a,_0x4a0a9a,_0x5c1d4b,_0x34f178){return _0x57b9de(_0x52408a-0x98,_0x4a0a9a,_0x34f178-0xf,_0x34f178-0x183);}if(_0x2c39a8[_0x17044a(_0x354f25._0x38800f,0x22c,0x340,_0x354f25._0x171741)](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x46f072(_0x354f25._0x358851,0x270,0x1f7,0x31f);function _0x17044a(_0xa8c121,_0x3669b9,_0x26d8d6,_0x54a6af){return _0x23b1c2(_0xa8c121-0x1b1,_0x26d8d6,_0xa8c121- -_0x3ffe07._0x2dd10e,_0x54a6af-0x116);}if(_0x2c39a8[0x0]===0xff&&_0x2c39a8[0x1]===0xd8&&_0x2c39a8[0x2]===0xff)return _0x46f072(_0x354f25._0x24ad3f,_0x354f25._0x194c12,_0x354f25._0xbe22dd,0x475);const _0x41497e=_0x2c39a8['subarray'](0x0,0x6)[_0x46f072(_0x354f25._0x536dab,0x60b,_0x354f25._0x4cf27c,_0x354f25._0x4b18ea)](_0x17044a(_0x354f25._0x505c9f,_0x354f25._0x252dec,_0x354f25._0x4ad770,_0x354f25._0x2c08ed));if(_0x41497e===_0x17044a(_0x354f25._0x190fc0,_0x354f25._0x17d553,0x14e,_0x354f25._0x3373f7)||_0x41497e===_0x46f072(_0x354f25._0x316cab,0x246,_0x354f25._0x32b64a,0x32e))return _0x46f072(_0x354f25._0x405cf1,0x451,0x491,_0x354f25._0x26f231);if(_0x2c39a8[_0x17044a(0x30c,_0x354f25._0x13a6eb,_0x354f25._0x387fe6,_0x354f25._0x239f77)](0x0,0x4)['toString']('ascii')===_0x17044a(0x226,0xf1,0x343,0x20d)&&_0x2c39a8[_0x46f072(0x41b,0x476,0x515,0x47e)](0x8,0xc)[_0x17044a(_0x354f25._0x37b74a,0x393,0x3ba,_0x354f25._0x2ebac9)](_0x17044a(_0x354f25._0x505c9f,_0x354f25._0x1332a8,_0x354f25._0x356e60,_0x354f25._0x4233d0))===_0x46f072(0x450,0x4de,0x3e1,_0x354f25._0x2214e4))return _0x17044a(_0x354f25._0x5254a3,0x2f4,_0x354f25._0x113d36,_0x354f25._0x249650);const _0x25e11e=_0x2b47fc['extname'](_0x2c7e5f)[_0x17044a(_0x354f25._0x1ebe6d,0x338,_0x354f25._0x1ae6e6,0x526)]();if(_0x25e11e==='.png')return'image/png';if(_0x25e11e===_0x17044a(0x287,_0x354f25._0x5d8a30,0x241,_0x354f25._0x38cd67)||_0x25e11e==='.jpeg')return _0x46f072(_0x354f25._0x4aea48,_0x354f25._0x516d26,0x535,0x475);if(_0x25e11e===_0x17044a(0x40e,0x440,0x536,_0x354f25._0x2e41b0))return _0x17044a(0x31d,_0x354f25._0x22049f,_0x354f25._0x564d4e,0x464);if(_0x25e11e===_0x46f072(_0x354f25._0x51aeb9,0x4b7,0x350,_0x354f25._0xe45f9))return _0x17044a(0x408,_0x354f25._0x149b21,_0x354f25._0xd9beea,_0x354f25._0x13a8ce);return void 0x0;}function normalizeDetail(_0x5d54bc){const _0x39ac0c={_0x57cf4b:0x1b5,_0x7bd54f:0x96,_0x2f5171:0x314,_0x37567b:0x42d,_0x488783:0x451,_0x4c5261:0x1f9,_0x295549:0x4d,_0xe64959:0x27e},_0x53a93e={_0x10d41b:0x5c},_0xd0783f={_0x52307a:0x1bf,_0x3d4e92:0x21d,_0x384796:0xc5};if(_0x5d54bc===void 0x0)return void 0x0;const _0x3be967=_0x5d54bc[_0x17276b(0x1f,_0x39ac0c._0x57cf4b,0x103,_0x39ac0c._0x7bd54f)]()[_0x4ff22b(0x44b,_0x39ac0c._0x2f5171,_0x39ac0c._0x37567b,_0x39ac0c._0x488783)]();function _0x17276b(_0x5267fe,_0x2aec2c,_0x2cfe5f,_0xc7de32){return _0x23b1c2(_0x5267fe-_0xd0783f._0x52307a,_0x5267fe,_0xc7de32- -_0xd0783f._0x3d4e92,_0xc7de32-_0xd0783f._0x384796);}function _0x4ff22b(_0x51cdbf,_0x20601b,_0x52dab8,_0x256a00){return _0x23b1c2(_0x51cdbf-0x41,_0x20601b,_0x52dab8- -0x87,_0x256a00-_0x53a93e._0x10d41b);}if(!SUPPORTED_DETAILS[_0x17276b(0x12d,_0x39ac0c._0x4c5261,-_0x39ac0c._0x295549,0xe4)](_0x3be967))throw new ToolExecutionError(_0x4ff22b(0x2a5,0x361,0x329,_0x39ac0c._0xe64959)+_0x5d54bc,{'detail':_0x5d54bc});return _0x3be967;}function createViewFileTool(_0x5689d9={}){const _0x590c53={_0x120bc9:0x3f0,_0x5b75ad:0x3f1,_0x58d605:0x5e8,_0x4ef0a6:0x5eb,_0x4b4fcf:0x4e8,_0x57eb3b:0x4e1,_0xb49139:0x27c,_0xa72a40:0x456,_0x30bc6a:0x55b,_0x1d7b64:0x343,_0x441f1e:0x444,_0x364555:0x403,_0x1459a7:0x2db,_0x297087:0x217,_0x367717:0x341,_0x4a92a7:0x340,_0x1f1635:0x33d,_0x315e49:0x425},_0x1109c4={_0x1609ec:0x478,_0x1b8efa:0x362,_0x3cb660:0x43c,_0x36e333:0x274,_0x1c6d61:0x30b,_0x126609:0x3cf,_0x1a3744:0x549,_0x40ab50:0x380,_0x2ff7bd:0x41a,_0x109bc6:0x4ed,_0x25e502:0x1a5,_0x1dcf32:0x10,_0x5dbb4e:0x97,_0x5d1929:0x5c5,_0x4f2fbf:0x3a4,_0x1a348d:0x4f6,_0x405486:0x487,_0x4fcd0c:0x417,_0x3b1446:0x24b,_0x5eae10:0x24c,_0xc6d201:0x328,_0x25fcbd:0x118,_0x4b7340:0x273,_0xda9f2d:0x183,_0x10eed0:0xde,_0x5a7ff2:0x453,_0x2e9ced:0x40f,_0x507863:0x40e,_0x5bb34c:0x3d5,_0xfee5e8:0x491,_0x2a36a6:0x558,_0x58b687:0x292,_0x39cb95:0x2e2,_0x5c3006:0x3c6,_0x370582:0x41a,_0x295b22:0x487,_0x20d6ed:0x362,_0x549b57:0x387,_0x515af5:0x39f,_0x1dde94:0x2f9,_0xfdcb34:0x1d3,_0xb79d48:0x2a5,_0x57f3b1:0x305,_0x4190f5:0x321,_0x4bad3b:0x42a,_0x5a9e65:0x1ea,_0x2f0e02:0x362,_0x58ccb5:0x2d5,_0x3340ee:0x39c,_0x2677bf:0x4a9,_0x2dc3b6:0x450,_0xdee3dc:0x313,_0x856837:0x1f1,_0x3ef9c6:0x25d},_0x33a36b={_0xfea12b:0x305},_0x45227d={_0x1096a0:0x12e};function _0x2856e5(_0x30489,_0x26d8f1,_0xbbd2b0,_0x332e91){return _0x57b9de(_0x30489-0xf8,_0x30489,_0x332e91-0xe,_0x332e91-_0x45227d._0x1096a0);}const _0x59f93e=_0x2b47fc['resolve'](_0x5689d9[_0x2856e5(0x3e6,0x42f,_0x590c53._0x120bc9,_0x590c53._0x5b75ad)]??process['cwd']());function _0x533466(_0x1be127,_0x36c32b,_0x299e31,_0x292e17){return _0x57b9de(_0x1be127-0x162,_0x36c32b,_0x1be127- -_0x33a36b._0xfea12b,_0x292e17-0xcd);}const _0x252bff=(_0x5689d9[_0x2856e5(_0x590c53._0x58d605,_0x590c53._0x4ef0a6,_0x590c53._0x4b4fcf,_0x590c53._0x57eb3b)]??[])['map'](_0x16a00c=>_0x2b47fc[_0x533466(0xe6,0x2c,0x0,0x168)](_0x16a00c)),_0x3bc25d=_0x5689d9[_0x533466(_0x590c53._0xb49139,0x29e,0x1d4,0x180)]??DEFAULT_MAX_BYTES,_0x4366ac=_0x5689d9['name']??_0x2856e5(_0x590c53._0xa72a40,0x535,0x50b,_0x590c53._0x30bc6a);return defineTool({'name':_0x4366ac,'description':_0x2856e5(_0x590c53._0x1d7b64,_0x590c53._0x441f1e,0x3d7,0x381),'inputSchema':{'type':_0x2856e5(0x506,0x49d,_0x590c53._0x364555,0x498),'properties':{'path':{'type':_0x2856e5(0x44c,_0x590c53._0x1459a7,_0x590c53._0x297087,_0x590c53._0x367717)},'detail':{'type':_0x2856e5(_0x590c53._0x4a92a7,_0x590c53._0x1f1635,_0x590c53._0x315e49,_0x590c53._0x367717)}},'required':['path']},async *'execute'(_0x4a6c09){const _0x5c951c={_0xbc3093:0x13c},_0x2ba856=resolveAllowedPath(_0x59f93e,_0x252bff,_0x4a6c09[_0x1abd52(0x362,0x3d5,_0x1109c4._0x1609ec,0x2ae)]);await assertWorkspaceFile(_0x2ba856);const _0x27de60=await _0x47bea6(_0x2ba856);if(_0x27de60[_0xea2e66(0x2fb,0x2f1,0x41a,0x31e)]>_0x3bc25d)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x4a6c09[_0x1abd52(_0x1109c4._0x1b8efa,_0x1109c4._0x3cb660,_0x1109c4._0x36e333,_0x1109c4._0x1c6d61)],{'path':_0x4a6c09[_0x1abd52(0x362,_0x1109c4._0x126609,0x2a4,0x334)],'maxBytes':_0x3bc25d,'size':_0x27de60[_0xea2e66(_0x1109c4._0x1a3744,_0x1109c4._0x40ab50,_0x1109c4._0x2ff7bd,_0x1109c4._0x109bc6)]});const _0x1f4e1b=await _0x23ce0a(_0x2ba856),_0x4a84ba=detectImageMediaType(_0x1f4e1b,_0x2ba856);function _0xea2e66(_0x2a0cf9,_0x2597dd,_0x39187a,_0xa0f2){return _0x2856e5(_0x2597dd,_0x2597dd-0x6b,_0x39187a-0x177,_0x39187a- -0xa8);}if(!_0x4a84ba)throw new ToolExecutionError(_0x1abd52(0x12a,_0x1109c4._0x25e502,_0x1109c4._0x1dcf32,_0x1109c4._0x5dbb4e)+_0x4a6c09[_0xea2e66(0x475,0x4cd,0x491,_0x1109c4._0x5d1929)],{'path':_0x4a6c09[_0xea2e66(0x4d2,0x37d,0x491,0x447)],'supported':[_0x1abd52(0x3a8,_0x1109c4._0x4f2fbf,_0x1109c4._0x1a348d,_0x1109c4._0x405486),_0xea2e66(0x41e,0x35d,0x46c,0x4cc),'.jpg',_0xea2e66(_0x1109c4._0x4fcd0c,_0x1109c4._0x3b1446,0x2ee,0x2d2),_0x1abd52(_0x1109c4._0x5eae10,_0x1109c4._0xc6d201,_0x1109c4._0x25fcbd,_0x1109c4._0x4b7340)]});const _0x4d2b37=normalizeDetail(_0x4a6c09[_0x1abd52(0x208,0x12e,_0x1109c4._0xda9f2d,_0x1109c4._0x10eed0)]);function _0x1abd52(_0x26bd62,_0x33655f,_0x183356,_0x4bff14){return _0x533466(_0x26bd62-_0x5c951c._0xbc3093,_0x33655f,_0x183356-0x170,_0x4bff14-0x58);}const _0x3b8144=[_0xea2e66(0x417,_0x1109c4._0x5a7ff2,_0x1109c4._0x2e9ced,_0x1109c4._0x507863)+_0x4a6c09[_0xea2e66(_0x1109c4._0x5bb34c,0x4df,_0x1109c4._0xfee5e8,_0x1109c4._0x2a36a6)],'MIME:\x20'+_0x4a84ba,_0xea2e66(0x26a,0x318,_0x1109c4._0x58b687,_0x1109c4._0x39cb95)+_0x27de60[_0xea2e66(_0x1109c4._0x5c3006,0x3ce,_0x1109c4._0x370582,0x519)]+_0xea2e66(_0x1109c4._0x295b22,0x2d8,0x386,0x25a)][_0xea2e66(0x282,_0x1109c4._0x20d6ed,_0x1109c4._0x549b57,0x3b4)](_0x4d2b37?[_0xea2e66(0x4ba,0x441,_0x1109c4._0x515af5,_0x1109c4._0x1dde94)+_0x4d2b37]:[])[_0xea2e66(_0x1109c4._0xfdcb34,_0x1109c4._0xb79d48,_0x1109c4._0x57f3b1,_0x1109c4._0x4190f5)]('\x0a'),_0x146fed=[{'type':'image','source':{'type':_0x1abd52(0x2e1,_0x1109c4._0x4bad3b,0x2b3,_0x1109c4._0x5a9e65),'media_type':_0x4a84ba,'data':_0x1f4e1b[_0x1abd52(0x327,0x363,0x2b0,_0x1109c4._0x2f0e02)]('base64')}},{'type':'text','text':_0x3b8144}];return yield createToolOutput(_0x3b8144,{'path':_0x4a6c09[_0x1abd52(0x362,_0x1109c4._0x58ccb5,0x43b,0x3b7)],'resolvedPath':_0x2ba856,'created':_0x27de60[_0xea2e66(_0x1109c4._0x1609ec,0x406,_0x1109c4._0x3340ee,0x3fc)][_0xea2e66(0x419,_0x1109c4._0x2677bf,_0x1109c4._0x2dc3b6,_0x1109c4._0xdee3dc)](),'modified':_0x27de60['mtime']['toISOString'](),'size':_0x27de60[_0x1abd52(0x2eb,_0x1109c4._0x856837,0x23b,_0x1109c4._0x3ef9c6)],'mimeType':_0x4a84ba,'encoding':'base64',..._0x4d2b37?{'detail':_0x4d2b37}:{}},_0x146fed),void 0x0;}});}import _0x19509e from'turndown';var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x1f2483){const _0x4f1452={_0x5f434a:0xfa,_0x2f687b:0x15,_0x320824:0x83,_0x5185dc:0x16e,_0x3a8fd0:0x359,_0x4ac7fb:0x46,_0x3cb737:0xc7,_0x37bc39:0x2b0,_0x563bd5:0x127,_0x319566:0x336,_0x27d3b6:0x2fd,_0x25c228:0x355,_0x221005:0x30c,_0x160efe:0x1ca},_0x124ea7={_0x4761a5:0x181},_0x56426b={_0x1fb453:0x341};function _0x2454ad(_0xc744ee,_0x43f5c9,_0x1a26f0,_0xf38861){return _0x57b9de(_0xc744ee-0xc5,_0x1a26f0,_0xf38861- -_0x56426b._0x1fb453,_0xf38861-0x1b3);}let _0x3b601e;try{_0x3b601e=new URL(_0x1f2483);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x1f2483});}if(_0x3b601e[_0x2454ad(_0x4f1452._0x5f434a,_0x4f1452._0x2f687b,0x2b,_0x4f1452._0x320824)]!=='http:'&&_0x3b601e['protocol']!=='https:')throw new ToolExecutionError(_0x59cb5b(0x121,_0x4f1452._0x5185dc,0x4d,0x1b9),{'url':_0x1f2483});function _0x59cb5b(_0x5b4503,_0x58b3c2,_0x322fdd,_0x2caea5){return _0x23b1c2(_0x5b4503-_0x124ea7._0x4761a5,_0x5b4503,_0x58b3c2- -0x102,_0x2caea5-0x99);}if(_0x3b601e[_0x59cb5b(0x29c,_0x4f1452._0x3a8fd0,0x383,0x257)]||_0x3b601e[_0x2454ad(0x143,_0x4f1452._0x4ac7fb,0x12a,_0x4f1452._0x3cb737)])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x3b601e[_0x59cb5b(_0x4f1452._0x37bc39,0x214,_0x4f1452._0x563bd5,_0x4f1452._0x319566)]+'//'+_0x3b601e[_0x59cb5b(_0x4f1452._0x27d3b6,_0x4f1452._0x25c228,0x339,0x45a)]+_0x3b601e[_0x2454ad(_0x4f1452._0x221005,0x237,0x151,_0x4f1452._0x160efe)]});return _0x3b601e;}function createTimeoutSignal(_0x483608,_0x189eef){const _0x29d069={_0x398b59:0x387,_0x51b4fc:0x123,_0x504f78:0x22d,_0x23cd60:0x1fa,_0x38fc27:0x375,_0x1320de:0x273,_0x34fb7d:0x271},_0x41c227={_0x4ff212:0x3ea,_0x6ca69c:0x342,_0x431038:0x27,_0x381b7f:0x138,_0x25e272:0x10,_0xf8137a:0x133},_0x1a787c={_0x374b09:0x193},_0x191f75={_0x56f3e0:0x1dd,_0x4a4483:0x16a,_0x52f705:0x64},_0x9b0b76={_0x4a83e3:0x26,_0x55e51d:0x90},_0x4f716c=new AbortController();function _0x408d7b(_0x57f236,_0x38a153,_0x4636ad,_0x5a56f2){return _0x23b1c2(_0x57f236-_0x9b0b76._0x4a83e3,_0x5a56f2,_0x38a153- -_0x9b0b76._0x55e51d,_0x5a56f2-0x24);}function _0x3de33b(_0x3029f5,_0x2e14c8,_0x57e62a,_0x2aa440){return _0x57b9de(_0x3029f5-_0x191f75._0x56f3e0,_0x2e14c8,_0x2aa440- -_0x191f75._0x4a4483,_0x2aa440-_0x191f75._0x52f705);}const _0x1484c2=setTimeout(()=>_0x4f716c[_0x3de33b(0x397,0x359,0x145,0x271)](new Error(_0x3de33b(0x253,0x1bc,0x20b,0x2f1))),_0x189eef),_0x346a8f=()=>_0x4f716c['abort'](_0x483608['reason']);return _0x483608[_0x3de33b(0x3fd,_0x29d069._0x398b59,0x220,0x31b)]?_0x4f716c[_0x408d7b(0x1dc,0x29d,0x23d,0x3d9)](_0x483608[_0x3de33b(_0x29d069._0x51b4fc,_0x29d069._0x504f78,0xcc,_0x29d069._0x23cd60)]):_0x483608[_0x408d7b(0x371,0x335,_0x29d069._0x38fc27,0x46b)](_0x3de33b(0x387,0x30f,_0x29d069._0x1320de,_0x29d069._0x34fb7d),_0x346a8f,{'once':!![]}),{'signal':_0x4f716c['signal'],'cleanup':()=>{function _0x45b7fe(_0x207a26,_0x28d5c6,_0x2a4217,_0x17bcdd){return _0x408d7b(_0x207a26-0x142,_0x28d5c6-0xfc,_0x2a4217-_0x1a787c._0x374b09,_0x207a26);}clearTimeout(_0x1484c2);function _0x153ee7(_0xaa218d,_0x46a15e,_0x231aab,_0x3afe16){return _0x3de33b(_0xaa218d-0x186,_0xaa218d,_0x231aab-0x2e,_0x3afe16- -0x13e);}_0x483608[_0x45b7fe(_0x41c227._0x4ff212,_0x41c227._0x6ca69c,0x267,0x2d8)](_0x153ee7(_0x41c227._0x431038,_0x41c227._0x381b7f,-_0x41c227._0x25e272,_0x41c227._0xf8137a),_0x346a8f);}};}function createWebFetchTool(_0x249c9b={}){const _0x5e78df={_0x4f6f9e:0x60e,_0x22e5cb:0x5e2,_0x362846:0x720,_0x2dd342:0x5e6,_0x52fbcc:0x600,_0x1622a5:0x769,_0x523bea:0x6af,_0x33db7b:0x497,_0x590fcf:0x525,_0x42bc18:0x60d,_0x1b76ec:0x581,_0x4234e2:0x716,_0x512512:0x66c,_0x16cab3:0x7c4,_0xc6585b:0x6b6,_0x4dda63:0x6b5,_0x1faab7:0x459,_0x11cdc4:0x631,_0x4d9c87:0x58c,_0x4346d6:0x3fe,_0x1375e5:0x785,_0x375a6d:0x5fe,_0x32ff88:0x595,_0x2bf98f:0x5af,_0x1bc7fc:0x517,_0x106590:0x458,_0x386cf6:0x67d,_0x494254:0x6eb},_0x1ab502={_0x1a102e:0x4cd,_0xd09acd:0x287,_0x2a4ede:0x458,_0xc8d0a4:0x2ec,_0x2bbad0:0x1f8,_0x3b4b68:0x23e,_0x252ff9:0x3e2,_0x37268a:0x352,_0xb4c918:0x13c,_0x4b28e7:0x2a9,_0x1256e9:0x2db,_0x530635:0x397,_0x4e5597:0x3c8,_0x1a39cd:0x2b1,_0x1f1154:0x353,_0x4d50c0:0x1e3,_0x7fca4b:0x1e6,_0x7e8619:0x168,_0x263c7d:0x20b,_0x2a334f:0x298,_0x840c96:0x2da,_0x5dff1c:0x2e2,_0x3ba2d3:0xf5,_0x4f116f:0x249,_0x542f55:0x2c0,_0x3b6df0:0x24f,_0x37c337:0x37f,_0x1c5ddc:0x2d8,_0x10f7bb:0x2d0,_0x27bbfd:0x190,_0x2a355b:0x370,_0x58bee9:0x353,_0x305f1a:0x173,_0x533268:0x132,_0x265804:0x3b5,_0xfeaddd:0x3c4,_0x1f06a6:0x357,_0x4be075:0x27d,_0x117962:0x277,_0x10fd59:0x2e4,_0x1fde3f:0x31b,_0x49bfe5:0x226,_0x385ab0:0x1a2,_0x57466c:0x129,_0x4accc9:0x1cb,_0x318961:0xde,_0x20a7f0:0x422,_0xfda1b0:0x354,_0x41076f:0x42d},_0x5e8773={_0x22d652:0x1d3,_0x5ac1e1:0x36};function _0x1b8fd6(_0x4b69d3,_0x1f7429,_0x5b05b5,_0x2844f7){return _0x23b1c2(_0x4b69d3-0xe4,_0x4b69d3,_0x2844f7-_0x5e8773._0x22d652,_0x2844f7-_0x5e8773._0x5ac1e1);}function _0x577d95(_0x3153cf,_0x33955e,_0x3b0281,_0x2c5387){return _0x23b1c2(_0x3153cf-0x10b,_0x33955e,_0x2c5387-0x245,_0x2c5387-0x1ee);}const _0x2d1753=_0x249c9b['name']??_0x577d95(0x73a,0x65a,_0x5e78df._0x4f6f9e,0x68d),_0x18788f=_0x249c9b['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x572ab0=new _0x19509e({'headingStyle':_0x1b8fd6(_0x5e78df._0x22e5cb,0x5e8,_0x5e78df._0x362846,_0x5e78df._0x2dd342),'codeBlockStyle':_0x1b8fd6(_0x5e78df._0x52fbcc,_0x5e78df._0x1622a5,0x6f0,_0x5e78df._0x523bea),'bulletListMarker':'-'});return _0x572ab0[_0x1b8fd6(0x566,0x5b1,_0x5e78df._0x33db7b,0x4ec)]([_0x577d95(0x714,0x621,0x626,0x6f1),_0x1b8fd6(0x566,_0x5e78df._0x590fcf,_0x5e78df._0x42bc18,_0x5e78df._0x1b76ec),_0x1b8fd6(0x59c,_0x5e78df._0x4234e2,0x66b,_0x5e78df._0x512512),_0x577d95(_0x5e78df._0x16cab3,_0x5e78df._0xc6585b,0x725,_0x5e78df._0x4dda63),_0x1b8fd6(_0x5e78df._0x1faab7,_0x5e78df._0x11cdc4,0x5eb,_0x5e78df._0x4d9c87),_0x1b8fd6(0x597,_0x5e78df._0x4346d6,0x43c,0x48a),'header','aside']),defineTool({'name':_0x2d1753,'description':_0x577d95(0x615,_0x5e78df._0x1375e5,0x66d,0x6f5),'inputSchema':{'type':_0x1b8fd6(0x468,_0x5e78df._0x375a6d,_0x5e78df._0x32ff88,_0x5e78df._0x2bf98f),'properties':{'description':{'type':'string'},'url':{'type':_0x1b8fd6(_0x5e78df._0x1bc7fc,0x436,0x499,_0x5e78df._0x106590)}},'required':[_0x577d95(_0x5e78df._0x386cf6,0x7d2,_0x5e78df._0x494254,0x712)]},async *'execute'(_0x4a7052,_0x25e86b){const _0x3a2758={_0xc9153c:0x7,_0x4a41f6:0x1a6,_0x3ee4b4:0x35d},_0x3bf023=assertFetchableUrl(_0x4a7052['url'])[_0x45cde3(0x3bb,_0x1ab502._0x1a102e,_0x1ab502._0xd09acd,_0x1ab502._0x2a4ede)]();function _0x7bb6d7(_0x150dc9,_0x5bc847,_0x237311,_0xb81d7f){return _0x1b8fd6(_0x5bc847,_0x5bc847-_0x3a2758._0xc9153c,_0x237311-_0x3a2758._0x4a41f6,_0x150dc9- -_0x3a2758._0x3ee4b4);}if(_0x25e86b[_0x45cde3(0x303,_0x1ab502._0xc8d0a4,_0x1ab502._0x2bbad0,_0x1ab502._0x3b4b68)][_0x45cde3(0x350,_0x1ab502._0x252ff9,_0x1ab502._0x37268a,0x3ba)])throw new ToolExecutionError(_0x7bb6d7(0x168,0x26d,_0x1ab502._0xb4c918,0x62),{'url':_0x3bf023});const _0x49bf03=createTimeoutSignal(_0x25e86b[_0x45cde3(0x303,_0x1ab502._0x4b28e7,0x2de,0x25e)],_0x18788f);let _0x5075b4='',_0x52cff2=0x0,_0x3736d0;try{const _0x1c9e84=await fetch(_0x3bf023,{'headers':{'User-Agent':USER_AGENT},'signal':_0x49bf03[_0x45cde3(0x303,_0x1ab502._0x1256e9,0x31c,_0x1ab502._0x530635)]});if(!_0x1c9e84['ok'])throw new ToolExecutionError(_0x45cde3(_0x1ab502._0x4e5597,0x4df,0x38a,_0x1ab502._0x1a39cd)+_0x1c9e84[_0x7bb6d7(0x298,_0x1ab502._0x1f1154,0x2aa,_0x1ab502._0x4d50c0)]+'\x20'+_0x1c9e84[_0x7bb6d7(_0x1ab502._0x4b28e7,_0x1ab502._0x7fca4b,_0x1ab502._0x7e8619,_0x1ab502._0x263c7d)],{'url':_0x3bf023,'statusCode':_0x1c9e84[_0x7bb6d7(_0x1ab502._0x2a334f,0x257,_0x1ab502._0x840c96,_0x1ab502._0x5dff1c)]});_0x5075b4=_0x1c9e84[_0x7bb6d7(0x1bd,0x159,_0x1ab502._0x3ba2d3,0xd4)][_0x45cde3(0x265,0x229,_0x1ab502._0x4f116f,_0x1ab502._0x542f55)](_0x7bb6d7(_0x1ab502._0x3b6df0,0x2d7,_0x1ab502._0x37c337,_0x1ab502._0x1c5ddc))??'',_0x52cff2=_0x1c9e84[_0x45cde3(0x39b,0x380,0x4a3,_0x1ab502._0x10f7bb)],_0x3736d0=await _0x1c9e84[_0x45cde3(0x2ce,0x3ab,_0x1ab502._0x27bbfd,0x265)]();}catch(_0x4470ec){if(_0x4470ec instanceof ToolExecutionError)throw _0x4470ec;const _0x4c9175=_0x4470ec instanceof Error?_0x4470ec[_0x45cde3(_0x1ab502._0x2a355b,_0x1ab502._0x58bee9,0x21e,0x276)]:String(_0x4470ec);throw new ToolExecutionError(_0x4c9175,{'url':_0x3bf023});}finally{_0x49bf03[_0x7bb6d7(_0x1ab502._0x305f1a,_0x1ab502._0x533268,0x61,0xd7)]();}function _0x45cde3(_0x317f18,_0xcc7261,_0x7eb4a0,_0x219195){return _0x577d95(_0x317f18-0x1ac,_0xcc7261,_0x7eb4a0-0x13c,_0x317f18- -0x2cc);}const _0x47de77=new Date()[_0x45cde3(_0x1ab502._0x265804,_0x1ab502._0xfeaddd,0x31a,0x49a)]();let _0x36a3e4,_0xaedbb;if(_0x5075b4[_0x7bb6d7(0x239,_0x1ab502._0x1f06a6,_0x1ab502._0x4be075,0x32d)](_0x45cde3(0x284,_0x1ab502._0x117962,0x19d,0x17d)))_0x36a3e4=_0x45cde3(_0x1ab502._0x10fd59,0x35f,0x34a,0x2fb)+_0x3736d0+_0x7bb6d7(_0x1ab502._0x1fde3f,_0x1ab502._0x49bfe5,0x239,0x2c7),_0xaedbb=_0x7bb6d7(0x1aa,_0x1ab502._0x385ab0,0x2d8,_0x1ab502._0x57466c);else _0x5075b4[_0x45cde3(0x33c,0x1ef,0x430,0x2b6)]('text/html')?(_0x36a3e4=_0x572ab0[_0x7bb6d7(0x1ce,0x1a9,0x134,_0x1ab502._0x1c5ddc)](_0x3736d0),_0xaedbb=_0x45cde3(0x368,0x37e,0x280,0x332)):(_0x36a3e4=_0x3736d0,_0xaedbb=_0x7bb6d7(_0x1ab502._0x4accc9,0x25a,0x208,_0x1ab502._0x318961));return yield createToolOutput(_0x36a3e4,{'url':_0x3bf023,'contentType':_0x5075b4,'statusCode':_0x52cff2,'format':_0xaedbb,'size':_0x3736d0[_0x45cde3(_0x1ab502._0x20a7f0,_0x1ab502._0xfda1b0,_0x1ab502._0x41076f,0x4d9)],'fetchedAt':_0x47de77}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x23b1c2(0x427,0x43c,0x4da,0x3cd);function normalizeUrl(_0x1dcbd2){const _0x5b6ce8={_0x730e52:0x5be,_0xe35992:0x33b,_0x4d4f27:0x325,_0x49cff2:0x470,_0x1a18e6:0x3a0,_0x2e8d26:0x431,_0x4d9221:0x2ce,_0x767961:0x541,_0x12ca94:0x4ef,_0x9114a8:0x48f,_0xf236b1:0x4c8,_0x438625:0x28f,_0x2773de:0x397,_0x3b126e:0x457,_0x49bc28:0x589,_0xdf7de:0x4f1},_0x354cbb={_0x1cd7b5:0x5d,_0xd6a30e:0x1d3},_0x71017a={_0x1ac091:0x9b,_0x51ca61:0x120,_0x523ced:0x52};function _0x1f911c(_0x319373,_0x2d145d,_0x26d1f4,_0x1315fd){return _0x23b1c2(_0x319373-_0x71017a._0x1ac091,_0x2d145d,_0x1315fd-_0x71017a._0x51ca61,_0x1315fd-_0x71017a._0x523ced);}function _0x16f71c(_0x479375,_0x5643f0,_0x315499,_0x16577a){return _0x57b9de(_0x479375-_0x354cbb._0x1cd7b5,_0x16577a,_0x5643f0-0x73,_0x16577a-_0x354cbb._0xd6a30e);}try{const _0x3b4651=new URL(_0x1dcbd2);for(const _0x15b9a9 of[_0x16f71c(0x536,_0x5b6ce8._0x730e52,0x4c1,0x553),_0x1f911c(0x386,0x332,_0x5b6ce8._0xe35992,0x42f),_0x1f911c(_0x5b6ce8._0x4d4f27,_0x5b6ce8._0x49cff2,0x37b,_0x5b6ce8._0x1a18e6),_0x16f71c(_0x5b6ce8._0x2e8d26,0x3f1,0x53b,_0x5b6ce8._0x4d9221),_0x16f71c(0x451,0x5a5,0x67f,0x60d),_0x1f911c(0x5c2,0x564,_0x5b6ce8._0x767961,_0x5b6ce8._0x12ca94),_0x1f911c(_0x5b6ce8._0x9114a8,_0x5b6ce8._0xf236b1,0x5a0,0x593),'mc_cid',_0x16f71c(_0x5b6ce8._0x438625,_0x5b6ce8._0x2773de,_0x5b6ce8._0x3b126e,0x279)]){_0x3b4651['searchParams'][_0x1f911c(_0x5b6ce8._0x49bc28,_0x5b6ce8._0xdf7de,0x5ac,0x581)](_0x15b9a9);}return _0x3b4651['toString']();}catch{return _0x1dcbd2;}}function cseDateRestrict(_0x1713bd){if(_0x1713bd<=0x0)return void 0x0;if(_0x1713bd<=0x1e)return'd'+Math['max'](0x1,Math['floor'](_0x1713bd));if(_0x1713bd<=0x16d)return'm'+Math['ceil'](_0x1713bd/0x1e);return'y'+Math['ceil'](_0x1713bd/0x16d);}function addSiteFilters(_0x2e7fac,_0x2ddce4){const _0x410f0c={_0x28e596:0x2df,_0x4a9e35:0x2f1,_0x457b97:0x151,_0x3ea86c:0x3,_0x60ddcd:0x3ae,_0x15d770:0x414,_0x5c3e52:0x2ce,_0x45fe89:0x9f,_0x171ac7:0x112,_0x533a2a:0x139,_0x596973:0x147},_0x1730be={_0x2e3031:0x1d0},_0x4662cd={_0x2b3f96:0xb4};if(_0x2ddce4[_0x1893f8(0x41b,_0x410f0c._0x28e596,0x40f,_0x410f0c._0x4a9e35)]===0x0)return _0x2e7fac[_0x1893f8(_0x410f0c._0x457b97,_0x410f0c._0x3ea86c,0x9a,0xfb)]();function _0xddba7d(_0x47e557,_0x7b8b11,_0x45f6c0,_0x14c4f0){return _0x23b1c2(_0x47e557-0x198,_0x7b8b11,_0x47e557-0x129,_0x14c4f0-_0x4662cd._0x2b3f96);}function _0x1893f8(_0x54fbae,_0x4c188a,_0x134180,_0x4e5c6f){return _0x23b1c2(_0x54fbae-_0x1730be._0x2e3031,_0x134180,_0x4e5c6f- -0x1b8,_0x4e5c6f-0x17d);}return(_0x2e7fac+'\x20('+_0x2ddce4[_0x1893f8(0x2e1,_0x410f0c._0x60ddcd,_0x410f0c._0x15d770,_0x410f0c._0x5c3e52)](_0x28cc10=>_0xddba7d(0x491,0x3b5,0x432,0x4da)+_0x28cc10)[_0x1893f8(_0x410f0c._0x45fe89,0x23b,_0x410f0c._0x171ac7,_0x410f0c._0x533a2a)](_0x1893f8(0x196,0x1c6,0x1b5,_0x410f0c._0x596973))+')')['trim']();}function normalizeType(_0x1990ba){const _0x1fde64={_0x42d399:0x6be,_0x2301bd:0x727,_0x1c56cf:0x6c2,_0xa23e8e:0x2b0,_0x561bd3:0x22d},_0x3b77b1={_0x318d7d:0x42},_0x49a6f7={_0x44892b:0x1a2};function _0x42d6ff(_0x16c835,_0x11874c,_0x11f903,_0x2cb8e6){return _0x23b1c2(_0x16c835-0x1f4,_0x2cb8e6,_0x11f903-0x330,_0x2cb8e6-_0x49a6f7._0x44892b);}function _0x22b459(_0x8dee66,_0x3a03b,_0x4a2fa6,_0x1b0ae6){return _0x57b9de(_0x8dee66-0x71,_0x8dee66,_0x4a2fa6- -0x20d,_0x1b0ae6-_0x3b77b1._0x318d7d);}return _0x1990ba===_0x42d6ff(0x7e3,0x6bf,_0x1fde64._0x42d399,0x78c)?_0x42d6ff(_0x1fde64._0x2301bd,_0x1fde64._0x1c56cf,_0x1fde64._0x42d399,0x58b):_0x22b459(_0x1fde64._0xa23e8e,_0x1fde64._0x561bd3,0x1f0,0x109);}async function fetchJson(_0xe74c52,_0x2dd37c,_0x3546f5){const _0xe929a9={_0x4064f1:0x10f,_0xbdc4a3:0x21e,_0x22a118:0x1f0,_0x5e1c00:0x159,_0xbb257e:0x1b1,_0x2c926d:0x26c,_0x12f092:0x35,_0x3b8e10:0x22b,_0x4cd5c9:0x1e0,_0x4dc729:0x2b5,_0x1baebe:0x1e8,_0x2df3e7:0x2c2,_0x2f6f65:0x1fb,_0x19718f:0x476,_0x5f5282:0x3f9,_0x5308a0:0x47c,_0x20bde4:0x2a1,_0x55d5da:0x208,_0x5ba3c3:0x3ab,_0x43e04f:0x458,_0x3acdda:0x277,_0x2f34de:0x37e,_0x5a9ead:0x4a1},_0x18a5fa={_0x4be85f:0x194,_0x16a066:0x2aa,_0x5ded9c:0xda},_0x5efc73={_0xcc4387:0x150,_0xfdc764:0xa4,_0x5a53e0:0x1ac},_0x4d0924=await fetch(_0xe74c52,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x30e2b3(_0xe929a9._0x4064f1,_0xe929a9._0xbdc4a3,_0xe929a9._0x22a118,_0xe929a9._0x5e1c00),..._0x3546f5?.[_0x30e2b3(0x14b,_0xe929a9._0xbb257e,0x29a,_0xe929a9._0x2c926d)]},'signal':_0x2dd37c,..._0x3546f5});function _0x329b18(_0x39a085,_0x18de0e,_0x99d89b,_0x2757a1){return _0x23b1c2(_0x39a085-_0x5efc73._0xcc4387,_0x2757a1,_0x39a085- -_0x5efc73._0xfdc764,_0x2757a1-_0x5efc73._0x5a53e0);}function _0x30e2b3(_0x109b1f,_0x2daa9e,_0x51249,_0x5b731b){return _0x57b9de(_0x109b1f-_0x18a5fa._0x4be85f,_0x2daa9e,_0x109b1f- -_0x18a5fa._0x16a066,_0x5b731b-_0x18a5fa._0x5ded9c);}if(!_0x4d0924['ok']){let _0xd7a744,_0x5a19c1;try{_0xd7a744=await _0x4d0924[_0x329b18(0x2b1,0x268,0x3c4,0x166)]();const _0x4bdd1c=JSON[_0x30e2b3(0x8f,0x16f,-0x27,-_0xe929a9._0x12f092)](_0xd7a744),_0x14bd92=typeof _0x4bdd1c[_0x30e2b3(0x127,0xbb,_0xe929a9._0x3b8e10,0x237)]===_0x30e2b3(_0xe929a9._0x4cd5c9,0x266,0x1c1,_0xe929a9._0x4dc729)?_0x4bdd1c['detail'][_0x30e2b3(0x205,_0xe929a9._0x1baebe,0x1eb,_0xe929a9._0x2df3e7)]:void 0x0;_0x5a19c1=_0x4bdd1c['error']?.[_0x30e2b3(_0xe929a9._0x2f6f65,0x34e,0x10e,0xed)]??_0x4bdd1c[_0x329b18(0x35d,_0xe929a9._0x19718f,_0xe929a9._0x5f5282,_0xe929a9._0x5308a0)]?.[_0x329b18(0x375,0x3a0,_0xe929a9._0x20bde4,0x32d)]?.[0x0]?.[_0x30e2b3(_0xe929a9._0x2f6f65,_0xe929a9._0x55d5da,0x141,0x257)]??_0x14bd92;}catch{}const _0x5a83c6=_0x5a19c1?_0x329b18(_0xe929a9._0x5ba3c3,0x34d,0x2f4,_0xe929a9._0x43e04f)+_0x4d0924[_0x329b18(0x37e,_0xe929a9._0x3acdda,0x277,0x2e2)]+':\x20'+_0x5a19c1:'HTTP\x20'+_0x4d0924['status']+'\x20'+_0x4d0924['statusText'];throw new ToolExecutionError(_0x5a83c6,{'statusCode':_0x4d0924[_0x329b18(_0xe929a9._0x2f34de,_0xe929a9._0x5a9ead,0x305,0x4c4)],..._0xd7a744?{'body':_0xd7a744}:{}});}return await _0x4d0924['json']();}async function hydrateResults(_0x3bc08a,_0x38dbe6,_0x51ef6a){const _0x3969b6={_0x7b8b9a:0x5d3,_0x53b657:0x604,_0x7d41d1:0x72b,_0x419357:0x36b,_0x2f890f:0x453,_0x5251c2:0x618,_0xcfa53a:0x4b6,_0xb189ca:0x547},_0x3af462={_0x5b426b:0x1d3},_0x4513c3={_0x338bee:0x418,_0x2d1b33:0x470,_0x4c5c01:0x168,_0x58321b:0x7b,_0x27dab9:0x429,_0x4359ff:0x33e,_0x5eb0ca:0x1a1,_0x3151cb:0x3e7,_0x375913:0x2a2,_0x44cb5c:0x110,_0x1066ae:0x13a,_0x12eddf:0x10f,_0x2c74ed:0x25f,_0x33b19e:0x24d,_0x36735c:0x34,_0x2bc8e9:0x18f,_0x27d6e5:0x269,_0x54bdab:0x25d,_0x1eb8d6:0x2a2,_0x107bd4:0x2d1,_0x152f1f:0x1df,_0x47aca5:0x2c0,_0x1d35f0:0x46a,_0x21416b:0x45d,_0x33958b:0x56d,_0x4ed5d4:0x376,_0x528578:0x48a,_0x9c76f3:0x246,_0x1ca93d:0x2e9,_0x4e2559:0x30f,_0x116345:0x358,_0x35f242:0x32b,_0x4951bc:0x39e,_0x50d3eb:0x294,_0x59ac7b:0x2c5,_0x334f0d:0x341,_0x157a06:0x3d7,_0x550fe9:0x296,_0x4506d3:0x15a,_0x59d505:0x26a,_0x5a1e15:0x2e0,_0x1915d0:0x255},_0x527bbf={_0x5baac4:0x154},_0x23bd24={_0x21674b:0x286,_0x3d251b:0x1bd};function _0x550717(_0x1d8aab,_0x48ec4e,_0x7903ba,_0x27f4ed){return _0x23b1c2(_0x1d8aab-0x173,_0x27f4ed,_0x48ec4e-_0x23bd24._0x21674b,_0x27f4ed-_0x23bd24._0x3d251b);}const _0xc72679=await Promise[_0x550717(_0x3969b6._0x7b8b9a,_0x3969b6._0x53b657,_0x3969b6._0x7d41d1,0x587)](_0x3bc08a[_0x4a7fed(0x4ff,_0x3969b6._0x419357,_0x3969b6._0x2f890f,0x459)](0x0,0xa)['map'](async _0x4e4338=>{function _0x57fcb2(_0x241d35,_0x49e28c,_0x142a9e,_0x118923){return _0x4a7fed(_0x241d35-0x52,_0x49e28c-0x3f,_0x241d35- -0x59,_0x142a9e);}function _0x4b004d(_0x35449f,_0x2e9e,_0x2e2ccd,_0x19865c){return _0x4a7fed(_0x35449f-_0x527bbf._0x5baac4,_0x2e9e-0x92,_0x2e2ccd- -0x2ae,_0x35449f);}try{const _0x18ce53=await fetch(_0x4e4338[_0x57fcb2(0x535,_0x4513c3._0x338bee,_0x4513c3._0x2d1b33,0x448)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x38dbe6,'Accept':'text/html'},'signal':_0x51ef6a});if(!_0x18ce53['ok'])return _0x4e4338;const _0x5779b6=await _0x18ce53[_0x4b004d(0xf8,0x1f3,_0x4513c3._0x4c5c01,0x161)](),_0x4c87e6=load(_0x5779b6),_0x528b4a=_0x4c87e6('meta[property=\x27og:title\x27]')[_0x4b004d(0xb,_0x4513c3._0x58321b,0x121,0x145)](_0x57fcb2(0x30f,0x334,_0x4513c3._0x27dab9,0x2b0))||_0x4c87e6(_0x4b004d(0x1ee,_0x4513c3._0x4359ff,0x29e,0x298))['first']()[_0x4b004d(_0x4513c3._0x5eb0ca,0x19,0x168,0xc3)]()[_0x57fcb2(0x31b,_0x4513c3._0x3151cb,0x30e,_0x4513c3._0x375913)](),_0x409abf=_0x4c87e6(_0x4b004d(_0x4513c3._0x44cb5c,_0x4513c3._0x1066ae,0x190,0x253))['attr'](_0x4b004d(_0x4513c3._0x12eddf,0x18e,0xba,0x103))||_0x4c87e6(_0x57fcb2(0x317,0x433,_0x4513c3._0x2c74ed,_0x4513c3._0x33b19e))[_0x4b004d(_0x4513c3._0x36735c,_0x4513c3._0x2bc8e9,0x121,_0x4513c3._0x27d6e5)](_0x57fcb2(0x30f,_0x4513c3._0x54bdab,_0x4513c3._0x1eb8d6,0x321))||_0x4e4338[_0x4b004d(_0x4513c3._0x107bd4,0x290,_0x4513c3._0x152f1f,_0x4513c3._0x47aca5)],_0x15c919=_0x4c87e6(_0x57fcb2(_0x4513c3._0x1d35f0,_0x4513c3._0x21416b,0x49a,_0x4513c3._0x33958b))[_0x57fcb2(_0x4513c3._0x4ed5d4,_0x4513c3._0x528578,_0x4513c3._0x9c76f3,_0x4513c3._0x1ca93d)](_0x57fcb2(_0x4513c3._0x4e2559,_0x4513c3._0x116345,_0x4513c3._0x35f242,0x2f8))||_0x4c87e6(_0x4b004d(_0x4513c3._0x4951bc,0x283,0x292,_0x4513c3._0x50d3eb))['attr']('datetime')||_0x4e4338[_0x57fcb2(0x40f,0x546,0x346,0x53c)],_0x187d0b=_0x4c87e6(_0x57fcb2(_0x4513c3._0x59ac7b,_0x4513c3._0x334f0d,_0x4513c3._0x157a06,0x1f1))[_0x57fcb2(0x376,0x36d,_0x4513c3._0x550fe9,0x2d1)]('href');return{..._0x4e4338,'title':_0x528b4a||_0x4e4338[_0x4b004d(0x27e,_0x4513c3._0x4506d3,0x29e,_0x4513c3._0x59d505)],'snippet':_0x409abf,'url':_0x187d0b?normalizeUrl(new URL(_0x187d0b,_0x4e4338[_0x4b004d(0x230,0x1a0,_0x4513c3._0x5a1e15,0x1c2)])[_0x4b004d(0x28f,0x247,_0x4513c3._0x1915d0,0x2e1)]()):_0x4e4338['url'],'publishedAt':_0x15c919};}catch{return _0x4e4338;}})),_0x55b116=new Map(_0x3bc08a[_0x550717(0x737,_0x3969b6._0x5251c2,0x610,0x561)](0x0,0xa)[_0x4a7fed(0x4e6,0x47e,0x547,0x613)]((_0x1e63c0,_0x430d7b)=>[_0x1e63c0[_0x4a7fed(0x5e0,0x4b4,0x58e,0x4df)],_0xc72679[_0x430d7b]]));function _0x4a7fed(_0x470e94,_0x439eab,_0x351b47,_0x8e5986){return _0x23b1c2(_0x470e94-_0x3af462._0x5b426b,_0x8e5986,_0x351b47-0xc1,_0x8e5986-0x186);}return _0x3bc08a[_0x4a7fed(_0x3969b6._0xcfa53a,0x51f,_0x3969b6._0xb189ca,0x541)](_0x280be8=>_0x55b116[_0x4a7fed(0x2b0,0x42c,0x3ad,0x41c)](_0x280be8['url'])??_0x280be8);}function formatResults(_0x295825){const _0x4a87a6={_0x251f2d:0x72f,_0x3b0f43:0x6be,_0x15831d:0x707,_0x4838da:0x6cd,_0xc570cd:0x5c6,_0x90a868:0x6ef,_0x1f2c23:0x31f,_0x186f61:0x2a0,_0x423768:0x33f,_0x45afc1:0x30c,_0x4aa93:0x17d,_0x332a84:0x21e,_0x439f60:0x20a,_0x39af08:0x1f9,_0x49bb3c:0x2fc,_0x59dfe4:0x614,_0x4fabeb:0x5b3,_0xf9c213:0x5f1,_0x2cbc86:0x5e8},_0x8e0050={_0x3238cd:0x1e4},_0x2c02a1={_0x10773c:0x140},_0x124c83={_0xcf6b28:0x13d},_0xaca992={_0x19f7a9:0xe0,_0x14a32d:0x126};function _0x4d7212(_0x3ddf59,_0x58e716,_0x522991,_0x30c8d5){return _0x23b1c2(_0x3ddf59-0x19a,_0x3ddf59,_0x30c8d5- -_0xaca992._0x19f7a9,_0x30c8d5-_0xaca992._0x14a32d);}if(_0x295825[_0x4d7212(0x2e1,0x2ae,0x3d6,0x3c9)]===0x0)return'No\x20results\x20found.';function _0x45b9df(_0x18ce1e,_0x4b1e7e,_0x1e4d0b,_0x5296b8){return _0x57b9de(_0x18ce1e-0x30,_0x5296b8,_0x1e4d0b- -0x56,_0x5296b8-_0x124c83._0xcf6b28);}return _0x295825['map'](_0x25b91d=>{const _0x42f40d=[_0x25b91d[_0x9b586e(_0x4a87a6._0x251f2d,_0x4a87a6._0x3b0f43,_0x4a87a6._0x15831d,0x6cf)][_0x9b586e(0x4e8,_0x4a87a6._0x4838da,0x603,_0x4a87a6._0xc570cd)]+'.\x20'+_0x25b91d[_0x9b586e(_0x4a87a6._0x90a868,0x7f1,0x58e,0x6d5)],_0x25b91d[_0x22116f(_0x4a87a6._0x1f2c23,0x207,_0x4a87a6._0x186f61,_0x4a87a6._0x423768)]];function _0x22116f(_0x481fbf,_0xbe61af,_0x334790,_0x590d45){return _0x4d7212(_0xbe61af,_0xbe61af-0xc5,_0x334790-_0x2c02a1._0x10773c,_0x481fbf- -0xce);}if(_0x25b91d[_0x22116f(0x21e,_0x4a87a6._0x45afc1,0x198,0x330)])_0x42f40d[_0x22116f(0x1e7,0x248,_0x4a87a6._0x4aa93,0xde)](_0x25b91d[_0x22116f(_0x4a87a6._0x332a84,_0x4a87a6._0x439f60,_0x4a87a6._0x39af08,_0x4a87a6._0x49bb3c)]);function _0x9b586e(_0x1b50f8,_0x331fbd,_0x4eb088,_0x4e59f3){return _0x4d7212(_0x1b50f8,_0x331fbd-_0x8e0050._0x3238cd,_0x4eb088-0x116,_0x4e59f3-0x32a);}if(_0x25b91d['publishedAt'])_0x42f40d[_0x9b586e(_0x4a87a6._0x59dfe4,0x6d9,0x506,0x5df)]('Published:\x20'+_0x25b91d[_0x9b586e(0x4ab,0x73d,_0x4a87a6._0x4fabeb,_0x4a87a6._0xf9c213)]);return _0x42f40d[_0x9b586e(0x497,0x48c,_0x4a87a6._0x2cbc86,0x53b)]('\x0a');})[_0x4d7212(0x196,0x24d,0x362,0x211)]('\x0a\x0a');}async function searchOllama(_0x432d1c,_0x17c5e5,_0x587681){const _0x527e95={_0x1caeb6:0x480,_0x327c17:0x525,_0x43075a:0x582,_0xc031cf:0x4cf,_0x2d2cef:0x55c,_0x18bd1e:0x4e2,_0x1133d0:0x3cc,_0x35fba1:0x38e,_0x362eeb:0x211,_0x1a7e49:0x53a,_0x1893f4:0x334,_0x3b3d77:0x286,_0x12c035:0x2f3,_0x410fd1:0x270,_0x455c71:0x24c,_0x224e82:0x6cf,_0x401f26:0x596,_0x2f84fa:0x588,_0x53fc74:0x5dd,_0x2ce63e:0x530,_0x22f5fd:0x681,_0x45f036:0x20d},_0x511b6c={_0x3f128c:0x4d,_0x5d3646:0xb0,_0x4197ce:0x294,_0x306b9:0x30e,_0x55db1d:0x2a0},_0x51e640={_0x772a1:0x1b1},_0x232ef5={_0x414c80:0xc8,_0x204b07:0x1ba},_0x1dfd9a={_0x5370c2:0x185,_0x185fe2:0xf0,_0x1d2004:0x1a9},_0xe9aec9=Math[_0x5cb0ab(0x401,_0x527e95._0x1caeb6,0x4a2,0x5ec)](0x1,Math['min'](0xa,_0x17c5e5[_0x5cb0ab(0x44b,0x5d9,_0x527e95._0x327c17,_0x527e95._0x43075a)]));function _0x5cb0ab(_0x69aac3,_0x319aaa,_0x42d7bf,_0x39ea3e){return _0x57b9de(_0x69aac3-_0x1dfd9a._0x5370c2,_0x319aaa,_0x42d7bf-_0x1dfd9a._0x185fe2,_0x39ea3e-_0x1dfd9a._0x1d2004);}const _0x7f734d=addSiteFilters(_0x17c5e5['query'],_0x17c5e5[_0x5cb0ab(_0x527e95._0xc031cf,_0x527e95._0x2d2cef,_0x527e95._0x18bd1e,_0x527e95._0x1133d0)]),_0x590c55=await fetchJson(_0x1261d2(0x2d2,_0x527e95._0x35fba1,0x1f2,_0x527e95._0x362eeb),_0x587681,{'method':_0x5cb0ab(0x503,0x3ab,0x45d,_0x527e95._0x1a7e49),'headers':{'Authorization':_0x1261d2(0x2a6,_0x527e95._0x1893f4,_0x527e95._0x3b3d77,_0x527e95._0x12c035)+_0x432d1c['apiKey']},'body':JSON[_0x1261d2(_0x527e95._0x410fd1,0x28c,_0x527e95._0x455c71,0x336)]({'query':_0x7f734d,'max_results':_0xe9aec9})}),_0x14be0a=_0x590c55[_0x5cb0ab(0x5be,0x563,0x5af,_0x527e95._0x224e82)]??[];function _0x1261d2(_0x185d1b,_0x4d56e5,_0x3f82f0,_0x2f25a2){return _0x23b1c2(_0x185d1b-_0x232ef5._0x414c80,_0x3f82f0,_0x185d1b- -0xfe,_0x2f25a2-_0x232ef5._0x204b07);}const _0x4a0dac=_0x14be0a[_0x5cb0ab(0x6cd,_0x527e95._0x401f26,0x624,_0x527e95._0x2f84fa)]((_0x407c02,_0x144361)=>{const _0xab339e=_0x407c02['url']||'';function _0xfcf81a(_0x4e95e9,_0x3260c9,_0x328204,_0xdc6f2b){return _0x5cb0ab(_0x4e95e9-0x27,_0x328204,_0x3260c9- -_0x51e640._0x772a1,_0xdc6f2b-0x53);}let _0x1199c1;try{_0x1199c1=new URL(_0xab339e)[_0x54f75d(0x9c,0xd9,_0x511b6c._0x3f128c,_0x511b6c._0x5d3646)];}catch{_0x1199c1=null;}function _0x54f75d(_0x14c111,_0x27e3aa,_0x4619e2,_0x3247a8){return _0x1261d2(_0x3247a8- -0x2a9,_0x27e3aa-0x163,_0x4619e2,_0x3247a8-0x1e9);}return{'title':_0x407c02['title']||'Untitled','url':normalizeUrl(_0xab339e),'snippet':_0x407c02[_0xfcf81a(0x209,_0x511b6c._0x4197ce,_0x511b6c._0x306b9,0x19c)]??null,'displayUrl':_0x1199c1,'favicon':null,'publishedAt':null,'source':{'engine':_0xfcf81a(0x389,0x2f7,_0x511b6c._0x55db1d,0x3d3),'rank':_0x144361+0x1}};});return{'items':_0x4a0dac[_0x5cb0ab(_0x527e95._0x53fc74,0x4d7,_0x527e95._0x2ce63e,_0x527e95._0x22f5fd)](0x0,_0xe9aec9),'engine':_0x1261d2(0x20c,_0x527e95._0x45f036,0x239,0x22b)};}async function searchTavily(_0x25ab10,_0x19d7b2,_0x3561fc){const _0x3a6b16={_0xc03711:0x7c,_0x5307ae:0xb7,_0x35e23a:0x2a,_0x250c4d:0xf4,_0x30deee:0x24,_0x366ae0:0x504,_0x1b465f:0x255,_0x3b41a0:0x111,_0x48dc8b:0x1aa,_0x338d54:0x10b,_0x21ce0d:0xb7,_0x2af7e9:0x1ad,_0x5f08cb:0x4d5,_0x2b1b2d:0x438,_0x2cb7eb:0x3a2,_0x15fb63:0x645,_0x386aa9:0x453,_0x31e5d7:0x555,_0x5cf5a3:0x42d,_0x3c99a4:0x473,_0x1c4497:0x34f,_0x2417cf:0x47d,_0x2812f0:0x11c,_0x2a20a3:0x41d,_0x212cbc:0xe6,_0x20505c:0x189,_0x34f3c2:0x5ab,_0x303891:0x516,_0x31eb4b:0x94,_0x4e7d7:0x3cf},_0xd4005f={_0x55e1fe:0x430,_0x44a407:0x49f,_0x599779:0x4b4,_0x573412:0xb0,_0x2d9137:0xd0,_0x4e8441:0x82,_0x338b9d:0x1b,_0x1f7ade:0x28c,_0x4ee572:0x224},_0x91eda={_0x335b2f:0x288},_0x57b650={_0x4dbb7b:0x109,_0xf5b2be:0x1d2};function _0x749516(_0x5b8e72,_0xd734d4,_0x52f5c9,_0x54624e){return _0x57b9de(_0x5b8e72-_0x57b650._0x4dbb7b,_0xd734d4,_0x52f5c9- -0x1e,_0x54624e-_0x57b650._0xf5b2be);}const _0x624e04=Math[_0xe8b8ce(0x4c,0xc,0x15a,_0x3a6b16._0xc03711)](0x1,Math[_0xe8b8ce(_0x3a6b16._0x5307ae,-_0x3a6b16._0x35e23a,_0x3a6b16._0x250c4d,-_0x3a6b16._0x30deee)](0x14,_0x19d7b2['count'])),_0x1f9e27={'query':_0x19d7b2[_0x749516(_0x3a6b16._0x366ae0,0x49b,0x429,0x2ec)],'max_results':_0x624e04,'search_depth':_0x25ab10[_0xe8b8ce(_0x3a6b16._0x1b465f,_0x3a6b16._0x3b41a0,_0x3a6b16._0x48dc8b,_0x3a6b16._0x338d54)]??_0xe8b8ce(_0x3a6b16._0x21ce0d,0xa9,0xee,_0x3a6b16._0x2af7e9),'topic':_0x25ab10[_0x749516(0x387,0x3d1,_0x3a6b16._0x5f08cb,0x61b)]??'general'};if(_0x19d7b2[_0x749516(0x3b6,0x3c4,0x3d4,_0x3a6b16._0x2b1b2d)]['length']>0x0)_0x1f9e27[_0x749516(0x21d,_0x3a6b16._0x2cb7eb,0x305,0x2db)]=_0x19d7b2['domains'];const _0x5c972=await fetchJson(_0x749516(_0x3a6b16._0x15fb63,_0x3a6b16._0x386aa9,_0x3a6b16._0x31e5d7,0x679),_0x3561fc,{'method':_0x749516(_0x3a6b16._0x5cf5a3,_0x3a6b16._0x3c99a4,_0x3a6b16._0x1c4497,_0x3a6b16._0x2417cf),'headers':{'Authorization':_0xe8b8ce(0x19f,0x32,0x1d7,_0x3a6b16._0x2812f0)+_0x25ab10[_0x749516(0x363,_0x3a6b16._0x2a20a3,0x494,0x54d)],'Content-Type':'application/json'},'body':JSON[_0xe8b8ce(0x5d,0x6d,-0x11,_0x3a6b16._0x212cbc)](_0x1f9e27)}),_0x5a4b6c=_0x5c972[_0xe8b8ce(0x2be,0x214,0xe2,_0x3a6b16._0x20505c)]??[];function _0xe8b8ce(_0x1f44f9,_0x58c7e7,_0x247fa5,_0x242f38){return _0x23b1c2(_0x1f44f9-0x10e,_0x58c7e7,_0x242f38- -_0x91eda._0x335b2f,_0x242f38-0xa1);}const _0x2706da=_0x5a4b6c[_0x749516(0x62d,_0x3a6b16._0x34f3c2,_0x3a6b16._0x303891,0x425)]((_0xf27576,_0x43d363)=>{const _0x51d33c={_0x496dcc:0x11c,_0x5e9ed1:0x2c6,_0x1adf0e:0x175},_0x218f62=_0xf27576[_0x5a6260(0x3fb,_0xd4005f._0x55e1fe,_0xd4005f._0x44a407,0x446)]||'';function _0x5a6260(_0x42b704,_0x1d7013,_0x37ed7e,_0x3de4b0){return _0x749516(_0x42b704-0x1df,_0x1d7013,_0x3de4b0- -0x117,_0x3de4b0-0x65);}function _0x4bada5(_0xf70c1d,_0x4a84c3,_0x36e6be,_0x45d7f9){return _0x749516(_0xf70c1d-_0x51d33c._0x496dcc,_0x4a84c3,_0x45d7f9- -_0x51d33c._0x5e9ed1,_0x45d7f9-_0x51d33c._0x1adf0e);}let _0x295a8a;try{_0x295a8a=new URL(_0x218f62)[_0x5a6260(0x48b,_0xd4005f._0x599779,0x32f,0x3d0)];}catch{_0x295a8a=null;}return{'title':_0xf27576['title']||_0x4bada5(0xa4,-_0xd4005f._0x573412,-_0xd4005f._0x2d9137,0x23),'url':normalizeUrl(_0x218f62),'snippet':_0xf27576[_0x4bada5(-0x67,_0xd4005f._0x4e8441,-_0xd4005f._0x338b9d,0x71)]??null,'displayUrl':_0x295a8a,'favicon':null,'publishedAt':null,'source':{'engine':_0x5a6260(0x339,0x232,_0xd4005f._0x1f7ade,_0xd4005f._0x4ee572),'rank':_0x43d363+0x1}};});return{'items':_0x2706da[_0xe8b8ce(0xfe,0x221,_0x3a6b16._0x31eb4b,0x10a)](0x0,_0x624e04),'engine':_0x749516(_0x3a6b16._0x4e7d7,0x227,0x33b,0x293)};}async function searchGoogleCse(_0x441937,_0xe6c54c,_0x122309){const _0x22b004={_0x39720c:0x3b7,_0x4b8388:0x39b,_0x10617d:0x3d1,_0x5dfccb:0x4f7,_0x2e4e29:0x414,_0x149bac:0x61e,_0x7ca57c:0x434,_0xcbf0ce:0x41e,_0x205558:0x748,_0x309cc9:0x70d,_0x3b7c84:0x588,_0x5a20a7:0x418,_0x76d1ed:0x43d,_0x5f3b98:0x75a,_0x24e82b:0x83b,_0x588707:0x69c,_0x33a10d:0x523,_0x481507:0x6a6,_0x275c52:0x68f,_0x4b2727:0x679,_0x2d008c:0x54c,_0x4d0acd:0x456,_0x5c90bf:0x403,_0x2bbb9b:0x2bc,_0x1c6ecb:0x3d0,_0x579d12:0x2f6,_0x515d6f:0x563,_0x41a46b:0x48f,_0x45400a:0x49f,_0x1c4b01:0x354,_0x33d448:0x70c,_0x17aa7c:0x5b5,_0x55cee7:0x59f,_0x3d7999:0x4c7,_0x378e6d:0x5cc,_0x14caef:0x6e4,_0x4f925b:0x5d8,_0x5a1c57:0x4dc,_0x45ab91:0x458,_0x2cd2de:0x415,_0x3f6024:0x426,_0x19bf6e:0x4e8,_0x3c5751:0x340,_0x578af9:0x30f,_0x8bcfb1:0x2e0,_0x271af5:0x6b9,_0x10ea4f:0x7e1,_0x16212c:0x3d2,_0x3600ba:0x1e9,_0x2a8297:0x4d4,_0x580da2:0x40d,_0x531eb8:0x2ea,_0x325890:0x6e4,_0x415316:0x6a5,_0x4f7f30:0x294,_0x10d61a:0x1c2,_0x315b94:0x3d9,_0x3cf5b2:0x2fc,_0x2c15fd:0x6ae,_0x501020:0x682,_0x38148d:0x6f0,_0x2b73db:0x326,_0x1617f1:0x607,_0x291d33:0x6f1,_0x10bad5:0x42c,_0x3a1059:0x505,_0x177aa2:0x302,_0x4b377e:0x384,_0x48f2a8:0x484,_0x801b7c:0x1a5,_0x3aa8af:0x330,_0x3f6ac9:0x650,_0x545947:0x716,_0x1c053d:0x73b,_0x19bc13:0x319,_0x484bea:0x43f,_0x3f3c69:0x517,_0x28672a:0x471,_0x570afa:0x44a,_0x430259:0x4c4,_0x485844:0x5e7,_0x3b297e:0x6b0,_0x1ef6d3:0x359,_0x3c96ef:0x40c,_0x46fa49:0x452,_0x160745:0x39f,_0x47bfc4:0x2bb,_0x52b1aa:0x2e0,_0x170dff:0x4d2,_0x26d839:0x578,_0x3d759b:0x458,_0xa3022:0x207,_0x3a7929:0x247,_0x2b43e6:0x3d5,_0x11095c:0x6d5,_0x3ad71d:0x6ca,_0x43c5d6:0x6e7,_0x252fb7:0x73a,_0x5997b1:0x682,_0x2f3453:0x73c,_0x11091b:0x83c,_0x456592:0x588,_0x3ad4cb:0x6af,_0x53097a:0x6c9,_0x549a8d:0x54d,_0x276e42:0x5b8,_0xca77de:0x522,_0x5e0d8f:0x3eb,_0x193c24:0x4ec,_0x1708c8:0x5f0,_0x49efcf:0x65f,_0x1cc76b:0x6ea,_0x312399:0x7a6,_0x41002f:0x71a,_0x225864:0x80f,_0x42699a:0x67b,_0x103d85:0x643,_0x12402d:0x78e,_0x10f8f4:0x6ec,_0x550f9d:0x5a2,_0x143a7d:0x39a,_0x48ca8e:0x4fb,_0x413b00:0x69c,_0x3f16f1:0x2a3,_0x55ffdc:0x32d,_0x18e93e:0x338,_0x3d5bcb:0x625,_0x930510:0x732,_0x89a962:0x51f,_0xab0ced:0x738},_0x193aea={_0x233f88:0x1e5,_0x53ff9e:0x26},_0x5be0b2={_0x5515b3:0x3e},_0x2f1a94=Math[_0x158f0c(0x415,_0x22b004._0x39720c,_0x22b004._0x4b8388,_0x22b004._0x10617d)](0x1,Math[_0x5d65a5(_0x22b004._0x5dfccb,_0x22b004._0x2e4e29,_0x22b004._0x149bac,_0x22b004._0x7ca57c)](0x32,_0xe6c54c[_0x158f0c(0x33e,0x4e0,_0x22b004._0xcbf0ce,0x34c)]));if(_0xe6c54c[_0x5d65a5(_0x22b004._0x205558,0x6f4,_0x22b004._0x309cc9,0x746)]+_0x2f1a94>0x64)throw new ToolExecutionError(_0x158f0c(_0x22b004._0x3b7c84,_0x22b004._0x5a20a7,_0x22b004._0x76d1ed,0x440),{'offset':_0xe6c54c[_0x5d65a5(0x748,_0x22b004._0x5f3b98,_0x22b004._0x24e82b,_0x22b004._0x588707)],'count':_0x2f1a94,'maxResults':0x64});const _0x374f1e=cseDateRestrict(_0xe6c54c['recencyDays']),_0x1e9d21=addSiteFilters(_0xe6c54c[_0x5d65a5(0x62c,0x4fe,_0x22b004._0x33a10d,_0x22b004._0x481507)],_0xe6c54c['domains']);let _0x152d71=0x0;function _0x158f0c(_0x586c60,_0x53be6f,_0x53764a,_0x2667ce){return _0x57b9de(_0x586c60-0x117,_0x586c60,_0x53764a- -0x17,_0x2667ce-_0x5be0b2._0x5515b3);}let _0x6327d9=_0xe6c54c[_0x158f0c(_0x22b004._0x275c52,_0x22b004._0x4b2727,_0x22b004._0x2d008c,_0x22b004._0x4d0acd)]+0x1;const _0x49ece3=[];function _0x5d65a5(_0x31b7ef,_0x9f89af,_0x43896a,_0x16609f){return _0x57b9de(_0x31b7ef-0x19f,_0x43896a,_0x31b7ef-_0x193aea._0x233f88,_0x16609f-_0x193aea._0x53ff9e);}while(_0x152d71<_0x2f1a94){const _0x5a6f9e=Math[_0x158f0c(_0x22b004._0x5c90bf,_0x22b004._0x2bbb9b,0x2fb,0x2ab)](0xa,_0x2f1a94-_0x152d71),_0x382faf=new URL('https://www.googleapis.com/customsearch/v1');_0x382faf[_0x158f0c(0x5e8,0x4f5,0x4e8,_0x22b004._0x1c6ecb)][_0x158f0c(_0x22b004._0x579d12,0x279,0x2e0,0x284)](_0x158f0c(_0x22b004._0x515d6f,0x46b,_0x22b004._0x41a46b,0x4cb),_0x441937[_0x158f0c(_0x22b004._0x45400a,0x48a,_0x22b004._0x1c4b01,0x3bb)]),_0x382faf[_0x5d65a5(0x6e4,_0x22b004._0x33d448,_0x22b004._0x17aa7c,0x6e7)]['set']('cx',_0x441937[_0x5d65a5(_0x22b004._0x55cee7,_0x22b004._0x3d7999,0x45a,_0x22b004._0x378e6d)]),_0x382faf[_0x5d65a5(_0x22b004._0x14caef,0x7f9,_0x22b004._0x4f925b,0x76d)][_0x5d65a5(_0x22b004._0x5a1c57,_0x22b004._0x45ab91,_0x22b004._0x2cd2de,0x494)]('q',_0x1e9d21),_0x382faf[_0x158f0c(0x3fd,_0x22b004._0x3f6024,_0x22b004._0x19bf6e,0x49f)][_0x158f0c(_0x22b004._0x3c5751,_0x22b004._0x578af9,_0x22b004._0x8bcfb1,0x1c0)](_0x5d65a5(_0x22b004._0x271af5,0x69c,0x7e2,_0x22b004._0x10ea4f),String(_0x5a6f9e)),_0x382faf['searchParams'][_0x158f0c(_0x22b004._0x16212c,_0x22b004._0x3600ba,0x2e0,0x39d)](_0x158f0c(_0x22b004._0x2a8297,_0x22b004._0x580da2,0x3e7,_0x22b004._0x531eb8),String(_0x6327d9)),_0x382faf[_0x5d65a5(_0x22b004._0x325890,0x723,0x76d,_0x22b004._0x415316)][_0x158f0c(_0x22b004._0x4f7f30,_0x22b004._0x10d61a,0x2e0,0x3e3)]('safe',_0xe6c54c[_0x158f0c(0x3d8,_0x22b004._0x315b94,_0x22b004._0x3cf5b2,0x436)]?_0x5d65a5(0x664,_0x22b004._0x2c15fd,_0x22b004._0x501020,_0x22b004._0x38148d):_0x158f0c(0x2cc,0x375,_0x22b004._0x2b73db,0x35f));_0xe6c54c[_0x5d65a5(_0x22b004._0x1617f1,0x4ca,0x4f4,_0x22b004._0x291d33)]&&(_0x382faf[_0x158f0c(_0x22b004._0x10bad5,0x3f4,_0x22b004._0x19bf6e,_0x22b004._0x3a1059)][_0x158f0c(0x41b,_0x22b004._0x177aa2,0x2e0,_0x22b004._0x4b377e)]('hl',_0xe6c54c[_0x158f0c(0x471,0x545,0x40b,_0x22b004._0x48f2a8)]),_0x382faf['searchParams'][_0x158f0c(0x228,_0x22b004._0x801b7c,0x2e0,_0x22b004._0x3aa8af)]('lr',_0x5d65a5(_0x22b004._0x3f6ac9,0x721,0x57e,0x6e3)+_0xe6c54c[_0x5d65a5(_0x22b004._0x1617f1,_0x22b004._0x545947,_0x22b004._0x1c053d,_0x22b004._0x309cc9)]));if(_0xe6c54c[_0x158f0c(0x4b1,_0x22b004._0x19bc13,_0x22b004._0x484bea,_0x22b004._0x3f3c69)])_0x382faf[_0x158f0c(0x628,_0x22b004._0x28672a,0x4e8,_0x22b004._0x570afa)][_0x5d65a5(0x4dc,_0x22b004._0x430259,0x3f6,0x4f5)]('gl',_0xe6c54c['region']['toUpperCase']());if(_0xe6c54c[_0x5d65a5(0x6f5,_0x22b004._0x485844,_0x22b004._0x3b297e,0x5fd)]===_0x158f0c(_0x22b004._0x1ef6d3,0x426,0x425,_0x22b004._0x3c96ef))_0x382faf[_0x158f0c(_0x22b004._0x46fa49,0x604,0x4e8,0x44d)][_0x158f0c(_0x22b004._0x160745,_0x22b004._0x47bfc4,_0x22b004._0x52b1aa,0x20b)](_0x5d65a5(_0x22b004._0x170dff,0x590,_0x22b004._0x26d839,_0x22b004._0x3d759b),_0x158f0c(_0x22b004._0xa3022,0x34e,0x351,_0x22b004._0x3a7929));if(_0x374f1e)_0x382faf['searchParams'][_0x5d65a5(0x4dc,_0x22b004._0x2b43e6,0x574,0x5a5)]('dateRestrict',_0x374f1e);const _0x10cfed=await fetchJson(_0x382faf[_0x5d65a5(_0x22b004._0x11095c,_0x22b004._0x3ad71d,0x5a2,0x810)](),_0x122309),_0x44c384=_0x10cfed[_0x5d65a5(0x72d,_0x22b004._0x43c5d6,0x674,0x68a)]??[];if(_0x44c384[_0x5d65a5(0x73c,0x6cb,_0x22b004._0x252fb7,_0x22b004._0x5997b1)]===0x0)break;const _0x1eae5b=_0x152d71;for(let _0x2cc4ca=0x0;_0x2cc4ca<_0x44c384[_0x5d65a5(_0x22b004._0x2f3453,0x830,_0x22b004._0x11091b,0x674)];_0x2cc4ca++){const _0x40d39d=_0x44c384[_0x2cc4ca];if(!_0x40d39d)continue;const _0x16a5e4=_0x40d39d[_0x158f0c(0x5c9,0x3d8,0x48c,_0x22b004._0x456592)]||_0x40d39d['image']?.['contextLink']||'',_0x14a37b=_0x40d39d[_0x5d65a5(0x71e,_0x22b004._0x3ad4cb,0x5fd,_0x22b004._0x53097a)]||_0x40d39d[_0x5d65a5(_0x22b004._0x549a8d,0x67c,0x47e,0x4e5)]?.[_0x158f0c(_0x22b004._0x276e42,_0x22b004._0xca77de,0x522,_0x22b004._0x5e0d8f)]||_0x5d65a5(_0x22b004._0x193c24,_0x22b004._0x1708c8,0x548,0x4b9),_0x39fd1c=_0x40d39d[_0x5d65a5(_0x22b004._0x49efcf,0x658,0x6d8,_0x22b004._0x1cc76b)]||_0x40d39d[_0x5d65a5(0x6a0,_0x22b004._0x312399,0x6c9,_0x22b004._0x41002f)]?.[_0x5d65a5(0x6d2,0x6ca,_0x22b004._0x225864,_0x22b004._0x149bac)](/<[^>]+>/g,''),_0x29e0cd=_0x40d39d[_0x5d65a5(_0x22b004._0x42699a,_0x22b004._0x103d85,0x53c,_0x22b004._0x12402d)]?.['metatags']?.[0x0]??{};let _0x2b5a13;try{_0x2b5a13=new URL(_0x16a5e4)[_0x5d65a5(0x6ea,0x782,_0x22b004._0x10f8f4,_0x22b004._0x550f9d)];}catch{_0x2b5a13=null;}_0x49ece3[_0x158f0c(_0x22b004._0x143a7d,_0x22b004._0x48ca8e,_0x22b004._0x10bad5,0x3c0)]({'title':_0x14a37b,'url':normalizeUrl(_0x16a5e4),'snippet':_0x39fd1c??null,'displayUrl':_0x2b5a13,'favicon':null,'publishedAt':_0x29e0cd[_0x5d65a5(_0x22b004._0x413b00,0x723,0x6f8,0x79e)]||_0x29e0cd['og:updated_time']||null,'source':{'engine':_0x158f0c(0x41e,_0x22b004._0x3f16f1,_0x22b004._0x55ffdc,_0x22b004._0x18e93e),'rank':_0x1eae5b+_0x2cc4ca+0x1}});}_0x152d71+=_0x44c384['length'],_0x6327d9+=_0x44c384['length'];if(_0x44c384['length']<_0x5a6f9e)break;}return _0x49ece3[_0x5d65a5(_0x22b004._0x3d5bcb,_0x22b004._0x930510,_0x22b004._0x89a962,_0x22b004._0xab0ced)](0x0,_0x2f1a94);}function isGoogleCseEngine(_0x50e641){const _0x36e254={_0x399ad3:0x18c,_0x5192ef:0xc7},_0x4f0430={_0x1db009:0x1b8,_0x169eed:0xd9};function _0x44ec49(_0x2cc392,_0x2e9dd1,_0x4dfc64,_0x1e166c){return _0x23b1c2(_0x2cc392-_0x4f0430._0x1db009,_0x1e166c,_0x2e9dd1- -0x384,_0x1e166c-_0x4f0430._0x169eed);}return _0x44ec49(-_0x36e254._0x399ad3,-_0x36e254._0x5192ef,-0x6f,-0x174)in _0x50e641;}function isOllamaEngine(_0x45e4c9){return'apiKey'in _0x45e4c9;}function isTavilyEngine(_0xd032e5){const _0x2a453c={_0x28f1bc:0x690};function _0x3c2fe5(_0x58bb86,_0x174534,_0x401d7b,_0x37352f){return _0x57b9de(_0x58bb86-0x104,_0x37352f,_0x401d7b-0x1de,_0x37352f-0xbc);}return _0x3c2fe5(0x5dc,0x611,_0x2a453c._0x28f1bc,0x694)in _0xd032e5;}function createWebSearchTool(_0x12993a){const _0x36ceb2={_0x67c15b:0x654,_0x557b20:0x743,_0x332868:0x717,_0x2b2540:0x6d7,_0x4bdc46:0x7af,_0x142d9a:0x77b,_0x510392:0x112,_0x4f8b71:0x12d,_0xb1e135:0x715,_0x53201a:0x61,_0x3e4ae6:0x58,_0x1eb54f:0x16c,_0x28a401:0x18a,_0x260c16:0x8bc,_0x470ddd:0x629,_0x4dbbcb:0x157,_0x246c7d:0x22e,_0x3153db:0xd,_0x470a56:0x22f,_0x4e7c0c:0xf4,_0x39965a:0xa5,_0x24ab8a:0x4d,_0x1a1cb6:0xf6,_0xebc37:0x145,_0x256695:0xda,_0x2f8d2b:0x1a2,_0x4f9d50:0xb1,_0x37571b:0x15c,_0x5ceefb:0x119,_0x5a692c:0xaf,_0x150d42:0x206,_0x2ded2f:0x59,_0x4266bd:0x793,_0x1b59d2:0x875,_0x5bc2f6:0xd0,_0x494141:0x111,_0x5e5f6c:0x2a},_0x29d72c={_0x17d501:0x175,_0x57c809:0x103,_0x37faab:0xe4,_0xcbd030:0xb,_0x37a940:0x3b1,_0x44b345:0x186,_0x43c914:0x1e0,_0x1195f5:0x3f,_0x159d4d:0x93,_0x404bcd:0xcb,_0x183e4d:0x371,_0x47a051:0x21e,_0x526827:0x28,_0x267524:0x62,_0x211621:0x92,_0x8474e9:0x18d,_0x159606:0x2bc,_0x4290ce:0x4cc,_0x147d9c:0x34e,_0x5a7364:0x3d3,_0x4c8799:0x415,_0x433dae:0x5bc,_0x211e18:0xb2,_0x1e723d:0xaf,_0x557faa:0x109,_0x30cb9d:0x1cd,_0x32ad91:0x1b7,_0x40d513:0x386,_0x28dbeb:0x240,_0xc28553:0x189,_0xade75:0x1f2,_0x242e44:0x299,_0x45f87e:0x2b5,_0x4493f2:0x406,_0x5bccc1:0x467,_0x454431:0x8a,_0x1f5d14:0x1e9,_0x2faf14:0x9d,_0x5757f0:0x3cb,_0x22a0b0:0x3cf,_0x277ff0:0x534,_0x148219:0x4f6,_0x40b19c:0x609,_0x129868:0x416,_0x1af9ed:0x48a,_0x57d0ec:0x4cf,_0x2e9aec:0x358,_0x12817d:0x2a8,_0x4a8702:0x2fc,_0x1816e5:0x596,_0x46b5b1:0x435,_0x81b969:0x4e7,_0xf683e6:0x3e1,_0x19cac2:0x45d,_0x33075b:0x3f7,_0x3951b9:0x38c,_0xf2dd65:0xc4,_0x40c82e:0x2e4,_0x3ae904:0x119,_0x414e06:0x4f3,_0x2aef3f:0x474,_0x53b384:0x5e7,_0x43cac2:0x3b1,_0x4f4252:0x431,_0x5877b8:0x31c,_0x2d8ea5:0x2d0,_0x4a17ac:0x362,_0x329404:0x199,_0x568ab7:0x3db,_0x17016f:0x420,_0x153686:0x173,_0x4cce60:0x5d,_0x36061f:0x243,_0x3911e7:0x419,_0x4e60d1:0x402,_0x236954:0x500,_0x1959f6:0x53e,_0x560424:0x21b,_0x389629:0x2ce,_0x32d5ed:0x1db,_0x415cf9:0x24b,_0x2147a9:0x17f,_0x1f9c87:0x25f,_0x353d9f:0x522,_0x13e849:0x523,_0x2aec42:0x4cb,_0x199bf3:0x3b6,_0x460f29:0x52,_0x378f68:0x93},_0x55c7c9={_0x421548:0x678,_0x57df9f:0x321,_0x467570:0x3c0,_0x34c634:0x46f,_0x54ce0f:0x414,_0x106418:0x4ac,_0x10478b:0x4fe,_0x37bd31:0x294,_0x1aad42:0x26b,_0x270562:0x322,_0x3c098c:0x2c1},_0x170c42={_0x43e47c:0x429},_0x376412={_0x5e757b:0x6b};if(!_0x12993a[_0x19e07b(_0x36ceb2._0x67c15b,0x673,0x6a8,0x6c8)]||_0x12993a['engines'][_0x19e07b(_0x36ceb2._0x557b20,_0x36ceb2._0x332868,0x7a8,0x87b)]===0x0)throw new Error(_0x19e07b(_0x36ceb2._0x2b2540,_0x36ceb2._0x4bdc46,0x7d4,_0x36ceb2._0x142d9a));function _0x19e07b(_0x5ca470,_0x415a60,_0x43e4c2,_0x1733e7){return _0x23b1c2(_0x5ca470-0xd5,_0x1733e7,_0x43e4c2-0x2ff,_0x1733e7-_0x376412._0x5e757b);}function _0x41337a(_0x4980e2,_0x20d45e,_0x2c59b7,_0x53081e){return _0x57b9de(_0x4980e2-0xea,_0x2c59b7,_0x20d45e- -_0x170c42._0x43e47c,_0x53081e-0xbe);}const _0xbd4782=_0x12993a[_0x41337a(_0x36ceb2._0x510392,-0x16,_0x36ceb2._0x4f8b71,0x129)]??_0x19e07b(0x676,0x611,_0x36ceb2._0xb1e135,0x868);return defineTool({'name':_0xbd4782,'description':'Search\x20the\x20web\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x41337a(-0x63,_0x36ceb2._0x53201a,-0xa0,-_0x36ceb2._0x3e4ae6),'properties':{'description':{'type':_0x41337a(-0x30,-0xf6,-_0x36ceb2._0x1eb54f,-_0x36ceb2._0x28a401)},'query':{'type':'string'},'count':{'type':'number'},'offset':{'type':_0x19e07b(0x841,_0x36ceb2._0x260c16,0x76e,0x7c0)},'domains':{'type':_0x19e07b(0x5d1,0x69b,_0x36ceb2._0x470ddd,0x6da),'items':{'type':_0x41337a(-_0x36ceb2._0x4dbbcb,-0xf6,-_0x36ceb2._0x246c7d,_0x36ceb2._0x3153db)}},'recencyDays':{'type':_0x41337a(_0x36ceb2._0x470a56,_0x36ceb2._0x4e7c0c,_0x36ceb2._0x39965a,-_0x36ceb2._0x24ab8a)},'lang':{'type':_0x41337a(-0x1c7,-_0x36ceb2._0x1a1cb6,-_0x36ceb2._0xebc37,-_0x36ceb2._0x256695)},'region':{'type':_0x41337a(-_0x36ceb2._0x2f8d2b,-0xf6,-_0x36ceb2._0x4f9d50,-0x9d)},'safe':{'type':_0x41337a(_0x36ceb2._0x37571b,_0x36ceb2._0x5ceefb,_0x36ceb2._0x5a692c,_0x36ceb2._0x150d42)},'type':{'type':_0x41337a(-0x45,-_0x36ceb2._0x1a1cb6,_0x36ceb2._0x2ded2f,-0x1d4)},'hydrateMeta':{'type':_0x19e07b(0x89c,0x838,_0x36ceb2._0x4266bd,_0x36ceb2._0x1b59d2)}},'required':[_0x41337a(_0x36ceb2._0x5bc2f6,0x1e,-_0x36ceb2._0x494141,_0x36ceb2._0x5e5f6c)]},async *'execute'(_0x38d290,_0x3e6cb7){const _0x518ff8={_0x5bfb81:0x1e7},_0x3c92de={_0x4c80c5:0x10},_0x245408=_0x38d290['query']['trim']();function _0x396514(_0x3f48c7,_0x507ff1,_0x5f5c7f,_0xb98955){return _0x19e07b(_0x3f48c7-0xd3,_0x507ff1-0x39,_0x507ff1- -0x292,_0x5f5c7f);}if(!_0x245408)throw new ToolExecutionError(_0x396514(0x2c6,0x3c9,0x315,0x424));const _0x15112f={'query':_0x245408,'count':Math[_0x4bf507(_0x29d72c._0x17d501,_0x29d72c._0x57c809,_0x29d72c._0x37faab,0x121)](0x1,Math[_0x4bf507(0x106,0x63,0x161,_0x29d72c._0xcbd030)](0x32,Math[_0x396514(0x373,0x2ad,0x377,_0x29d72c._0x37a940)](_0x38d290[_0x4bf507(0x2c7,_0x29d72c._0x44b345,0x42,_0x29d72c._0x43c914)]??0xa))),'offset':Math['max'](0x0,Math[_0x4bf507(0x92,_0x29d72c._0x1195f5,-0x113,-_0x29d72c._0x159d4d)](_0x38d290['offset']??0x0)),'domains':_0x38d290[_0x4bf507(_0x29d72c._0x404bcd,0x143,0x1b4,0x279)]??[],'recencyDays':Math[_0x396514(0x3ba,_0x29d72c._0x183e4d,_0x29d72c._0x47a051,0x306)](0x0,Math[_0x4bf507(-0x28,_0x29d72c._0x1195f5,-_0x29d72c._0x526827,-0x14)](_0x38d290[_0x4bf507(0xca,_0x29d72c._0x267524,_0x29d72c._0x211621,_0x29d72c._0x8474e9)]??0x0)),'lang':_0x38d290[_0x396514(_0x29d72c._0x159606,0x3e1,_0x29d72c._0x4290ce,_0x29d72c._0x147d9c)]??'en','region':_0x38d290[_0x396514(_0x29d72c._0x5a7364,_0x29d72c._0x4c8799,0x32e,0x2d9)]??'','safe':_0x38d290['safe']??!![],'type':normalizeType(_0x38d290[_0x396514(0x425,0x4cf,0x5b2,_0x29d72c._0x433dae)]),'hydrateMeta':_0x38d290[_0x4bf507(0x11,0x93,_0x29d72c._0x211e18,-_0x29d72c._0x1e723d)]??![]};let _0xabe75a=[],_0x3cf1fa=_0x4bf507(_0x29d72c._0x557faa,0x22e,_0x29d72c._0x30cb9d,_0x29d72c._0x32ad91);for(const _0x443b80 of _0x12993a['engines']){try{if(isGoogleCseEngine(_0x443b80))_0xabe75a=await searchGoogleCse(_0x443b80,_0x15112f,_0x3e6cb7[_0x396514(_0x29d72c._0x40d513,0x3f7,0x456,0x32d)]),_0x3cf1fa=_0x4bf507(0x11a,0x95,0x55,-0x77);else{if(isOllamaEngine(_0x443b80)){const _0x5db316=await searchOllama(_0x443b80,_0x15112f,_0x3e6cb7[_0x4bf507(_0x29d72c._0x28dbeb,_0x29d72c._0xc28553,_0x29d72c._0xade75,0x1cd)]);_0xabe75a=_0x5db316[_0x4bf507(0x291,_0x29d72c._0x242e44,_0x29d72c._0x45f87e,0x22f)],_0x3cf1fa=_0x5db316[_0x396514(0x591,0x534,_0x29d72c._0x4493f2,_0x29d72c._0x5bccc1)];}else{if(isTavilyEngine(_0x443b80)){const _0x4a994c=await searchTavily(_0x443b80,_0x15112f,_0x3e6cb7[_0x4bf507(_0x29d72c._0x454431,0x189,_0x29d72c._0x1f5d14,_0x29d72c._0x2faf14)]);_0xabe75a=_0x4a994c[_0x396514(_0x29d72c._0x5757f0,0x507,0x5b6,_0x29d72c._0x22a0b0)],_0x3cf1fa=_0x4a994c[_0x396514(0x675,_0x29d72c._0x277ff0,_0x29d72c._0x148219,_0x29d72c._0x40b19c)];}}}if(_0xabe75a[_0x4bf507(0x314,0x2a8,0x2db,0x262)]>0x0)break;}catch(_0xd7bb4a){if(_0x443b80===_0x12993a[_0x396514(0x3ae,_0x29d72c._0x129868,_0x29d72c._0x1af9ed,_0x29d72c._0x57d0ec)][_0x12993a['engines'][_0x4bf507(_0x29d72c._0x2e9aec,_0x29d72c._0x12817d,0x2c6,_0x29d72c._0x4a8702)]-0x1])throw _0xd7bb4a;}}_0x15112f['hydrateMeta']&&_0xabe75a[_0x396514(0x427,0x516,_0x29d72c._0x1816e5,_0x29d72c._0x46b5b1)]>0x0&&(_0xabe75a=await hydrateResults(_0xabe75a,_0x15112f[_0x396514(_0x29d72c._0x81b969,_0x29d72c._0xf683e6,_0x29d72c._0x19cac2,0x324)],_0x3e6cb7[_0x396514(0x36c,_0x29d72c._0x33075b,_0x29d72c._0x3951b9,0x301)]));const _0x1751f6=new Set();_0xabe75a=_0xabe75a[_0x4bf507(_0x29d72c._0xf2dd65,0x1d9,_0x29d72c._0x40c82e,_0x29d72c._0x3ae904)](_0x27b747=>{const _0x210b6a={_0xb3158:0x200,_0x5f31e4:0x117},_0x8f679b=_0x27b747[_0x110d0b(0x621,0x55d,_0x55c7c9._0x421548,0x566)][_0x225e3b(_0x55c7c9._0x57df9f,0x2f3,_0x55c7c9._0x467570,_0x55c7c9._0x34c634)]();if(!_0x8f679b||_0x1751f6[_0x110d0b(_0x55c7c9._0x54ce0f,0x50c,_0x55c7c9._0x106418,_0x55c7c9._0x10478b)](_0x8f679b))return![];function _0x110d0b(_0x5d05ef,_0x3be13c,_0x5f2c2f,_0x4c57af){return _0x396514(_0x5d05ef-0xe7,_0x5f2c2f-0x13e,_0x4c57af,_0x4c57af-_0x3c92de._0x4c80c5);}_0x1751f6[_0x225e3b(_0x55c7c9._0x37bd31,_0x55c7c9._0x1aad42,_0x55c7c9._0x270562,_0x55c7c9._0x3c098c)](_0x8f679b);function _0x225e3b(_0x48066e,_0x23e888,_0x454b17,_0x8f7b2a){return _0x396514(_0x48066e-0x1a6,_0x48066e- -_0x210b6a._0xb3158,_0x23e888,_0x8f7b2a-_0x210b6a._0x5f31e4);}return!![];}),_0xabe75a=_0xabe75a[_0x396514(0x3a3,_0x29d72c._0x414e06,0x5fb,_0x29d72c._0x2aef3f)]((_0x9b5417,_0x618b79)=>({..._0x9b5417,'source':{..._0x9b5417[_0x4bf507(0x38a,0x284,0x270,0x2c6)],'rank':_0x618b79+0x1}}));const _0x4cc601={};if(_0x15112f['domains'][_0x396514(_0x29d72c._0x53b384,0x516,0x3cd,0x53e)]>0x0)_0x4cc601['domains']=_0x15112f[_0x396514(0x307,_0x29d72c._0x43cac2,_0x29d72c._0x4f4252,0x3a0)];if(_0x15112f[_0x396514(_0x29d72c._0x5877b8,_0x29d72c._0x2d8ea5,0x373,_0x29d72c._0x4a17ac)]>0x0)_0x4cc601[_0x396514(_0x29d72c._0x329404,_0x29d72c._0x2d8ea5,_0x29d72c._0x568ab7,0x17e)]=_0x15112f[_0x396514(0x304,0x2d0,_0x29d72c._0x17016f,0x329)];if(_0x15112f[_0x396514(0x35e,0x3e1,0x338,0x2ee)]!=='en')_0x4cc601[_0x4bf507(0x42,_0x29d72c._0x153686,_0x29d72c._0x4cce60,_0x29d72c._0x36061f)]=_0x15112f[_0x396514(_0x29d72c._0x3911e7,0x3e1,0x39a,0x2bb)];if(_0x15112f[_0x396514(0x477,0x415,_0x29d72c._0x4e60d1,0x30a)])_0x4cc601['region']=_0x15112f[_0x396514(0x2f3,0x415,_0x29d72c._0x236954,_0x29d72c._0x1959f6)];function _0x4bf507(_0x1318a9,_0x1b67b6,_0x341429,_0x468046){return _0x41337a(_0x1318a9-_0x518ff8._0x5bfb81,_0x1b67b6-0x17a,_0x1318a9,_0x468046-0x44);}return yield createToolOutput(formatResults(_0xabe75a),{'engine':_0x3cf1fa,'count':_0xabe75a[_0x4bf507(_0x29d72c._0x560424,_0x29d72c._0x12817d,_0x29d72c._0x389629,0x2b0)],'items':_0xabe75a,'query':_0x15112f[_0x4bf507(0x1e5,0x198,_0x29d72c._0x32d5ed,0x1da)],...Object[_0x4bf507(_0x29d72c._0x415cf9,_0x29d72c._0x2147a9,0x1a5,_0x29d72c._0x1f9c87)](_0x4cc601)['length']>0x0?{'appliedFilters':_0x4cc601}:{},'offset':_0x15112f[_0x396514(0x5df,_0x29d72c._0x353d9f,0x44e,0x52c)],'totalRequested':_0x15112f[_0x396514(_0x29d72c._0x13e849,0x3f4,_0x29d72c._0x2aec42,_0x29d72c._0x199bf3)],'hydrated':_0x15112f[_0x4bf507(-_0x29d72c._0x460f29,_0x29d72c._0x378f68,0xdf,0x1b0)]}),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,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};