@nuvin/agent-core 0.1.0-rc.2 → 0.1.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x11063b,_0x1e7c29){const _0xf78637={_0x528fe5:0x3f3,_0x374843:0x367,_0x2dbfae:0x37a,_0x5b6d59:0x2ab,_0x3b3a16:0x36a,_0x48f1d7:0x3bd,_0x39217c:0x198,_0x3634a7:0x45f,_0x5e41ba:0x3ac,_0x3b2ba7:0x279,_0x3e1715:0x24c,_0x2f2c7f:0x567,_0x3e8e48:0x568,_0x1fe943:0x4da,_0x1994c0:0x429,_0x51e317:0x3c,_0x4f3be5:0x2fb,_0x3a3388:0x26a,_0xadc882:0x33d,_0x34dee0:0x402,_0x105408:0x1cc,_0x28fa49:0x332,_0xff21de:0x12e,_0x3e436f:0xb7,_0x2c085b:0xa8,_0x68f823:0x38},_0x2013b7={_0x53b54b:0x22d};function _0x31559e(_0x548aff,_0x52d4ae,_0x266d68,_0x12a4e1){return _0x2414(_0x12a4e1- -_0x2013b7._0x53b54b,_0x548aff);}function _0x5615c4(_0x4ece66,_0x3c5336,_0x33f07b,_0x593923){return _0x2414(_0x593923-0xb5,_0x3c5336);}const _0x3c0b12=_0x11063b();while(!![]){try{const _0x3fc1ca=parseInt(_0x5615c4(_0xf78637._0x528fe5,0x4e9,0x373,0x3e6))/0x1*(-parseInt(_0x5615c4(_0xf78637._0x374843,_0xf78637._0x2dbfae,_0xf78637._0x5b6d59,0x3a9))/0x2)+-parseInt(_0x5615c4(0x316,_0xf78637._0x3b3a16,0x360,_0xf78637._0x48f1d7))/0x3*(-parseInt(_0x5615c4(0x26d,0x128,0x161,_0xf78637._0x39217c))/0x4)+-parseInt(_0x5615c4(0x47a,_0xf78637._0x3634a7,0x26c,_0xf78637._0x5e41ba))/0x5*(-parseInt(_0x5615c4(_0xf78637._0x3b2ba7,0x285,0x32d,0x3a7))/0x6)+parseInt(_0x5615c4(_0xf78637._0x3e1715,0x326,0x3fe,0x335))/0x7*(-parseInt(_0x5615c4(_0xf78637._0x2f2c7f,_0xf78637._0x3e8e48,_0xf78637._0x1fe943,_0xf78637._0x1994c0))/0x8)+-parseInt(_0x31559e(0x12,-0x1b2,_0xf78637._0x51e317,-0x76))/0x9*(parseInt(_0x5615c4(_0xf78637._0x4f3be5,0x3df,0x174,_0xf78637._0x3a3388))/0xa)+-parseInt(_0x5615c4(_0xf78637._0xadc882,_0xf78637._0x34dee0,_0xf78637._0x105408,_0xf78637._0x28fa49))/0xb*(-parseInt(_0x31559e(0x20d,_0xf78637._0xff21de,0x173,0x14c))/0xc)+-parseInt(_0x31559e(_0xf78637._0x3e436f,-0x171,-0x1dd,-_0xf78637._0x2c085b))/0xd*(-parseInt(_0x31559e(0x50,-0x3d,-0x1b2,-_0xf78637._0x68f823))/0xe);if(_0x3fc1ca===_0x1e7c29)break;else _0x3c0b12['push'](_0x3c0b12['shift']());}catch(_0x4ab24d){_0x3c0b12['push'](_0x3c0b12['shift']());}}}(_0x1365,0x9f8ef));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-55OPA5TR.js';import{getTextFromMessage}from'../chunk-QDOE7NWO.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';function _0x17d408(_0x3d2877,_0x510480,_0x38f9eb,_0x390160){const _0x2bdf8a={_0x108572:0x54};return _0x2414(_0x390160- -_0x2bdf8a._0x108572,_0x38f9eb);}import{readFile}from'fs/promises';function _0x1365(){const _0x2ebe22=['CgLK','Dg9vChbLCKnHC2u','yw50AhjVCgLJ','CgfYC2vjBNq','lMnTza','y2XPzw50sw5MB3jTyxrPB24','Dgv4DerVy3vTzw50l2rPze9Wzw4','AgfUzgXL','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','CMvNzxG','icHZDgf0Dxm6ia','DxnLCM5HBwu','tu9ptLnit1rFqvbjx0Tfwq','C3rKzxjY','zw5NAw5L','zw51Bq','Aw1Hz2uVANbLzW','z29Vz2XLlwnZzq','yw5ZAte2','Bg9JyxrPB24','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','zgLZCg9Zzq','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','zgvMyxvSDfrPBwvVDxrnCW','A2LSBa','zMLSzq','BwfUDwfS','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','C2fMzq','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','mc4WlJaUma','sfruuca','v2LUr2v0','Aw52ywXPzf90B2rVx2L0zw0','lNrZEa','Ahr0Chm6','C2vYDMvYswq','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','A2LSBfjLCxvLC3rLza','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','BgLTAxq','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','CMCUzxHL','AgfZ','Aw5JB21PBMDdywXSCW','zMLSDgvY','y2HPBgq','Aw5WDxrty2HLBwe','DgfZA2TPBgW','Bwv0yxrHz3m','Dg9WAwm','Bg9HzenVBw1HBMq','Bg93','zMXHDe1HCa','B3b0Aw9UywW','lMPZEa','C3vIyxjYyxK','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','rMv0y2GGDgLTzwqGB3v0','BwvZC2fNzq','sw52ywXPzcbvuKWGCgfYyw1LDgvY','zxzLCNK','AhrTBfnUAxbWzxq','DhjPBq','Dg9KB3m','mtaWlJy0lJaUma','z2nSAwq','Dg91y2HgAwXL','Dhj1BMnHDgvK','z2XVyG','yxv0BW','CM91BMq','y2XLyxi','zgLZywjSzwq','yMfJA2DYB3vUzfjLz2LZDhj5','AxndB250zxH0','xsb0CMfUC3bVCNqGzxjYB3i6','AxnbCNjHEq','DgvZDa','cGPbuKDvtuvovfm6ia','y3DK','nJyZntyYmMzeuuDRtq','zgvMyxvSDen3za','mta5nZKWDLPuwgnu','zgvSzxrL','zgvSzwDHDgvKlxj1BI0','nwTdC3npAW','DxrMoa','ywXSB3DLzfrVB2XZ','CMvSyxrPDMu','DMvYAwzPzxi','qxnZAwDUvgfZAW','s2LSBgvKia','yMLVBwuUANnVBMm','C2vUza','DhjHBNnMB3jTCW','C3rHDhvZ','yMvHCMvY','lw5i','BM9Kzv9TB2r1BgvZ','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','tuLnrtOG','C2HLBgXqyxrO','ndi3mtqZz29HyKrV','DxbKyxrL','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','cMbGya','tg9HzgvKigzYB206ia','l3vZCI9IAw4VCMC','Dgv4Da','w1bFxL1BxhnCu10QpW','y2fWywjPBgL0AwvZ','C3LTBgLUAW','C3rVCMfNzurPCG','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','qxv0Ag9YAxPHDgLVBG','ygbG','DMfSDwu','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','ls1MAwXLCW','Aw5ZDhj1y3rPB25Z','D29YA3nWywnLu3LTyM9S','ChjPB3jPDhK','Dg9tDhjPBMC','lMPZB25J','ks4GvxnLiejHC2HpDxrWDxqGDg8GCMvHzcbPDhmGB3v0Chv0igfUzcblAwXSu2HLBgWGDg8GC3rVCcbPDc4','BgLUzxm','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','zMLSBa','AxneAxjLy3rVCNK','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','zgvMAw5PDgLVBG','Dgv4DerVy3vTzw50l2HVDMvY','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','twLJCM9ZB2z0','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','vw50AxrSzwq','BgLUzvn0yxj0','BhnW','Dgv4Dc9ODg1S','zgLHz25VC3rPy3m','ue9tva','BwnFy2LK','tunqihrVB2WG','mxfQExPPvW','ugfJA2fNzxm','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','rMLSzu5LDW','C2vSzwn0Aw9UuMfUz2u','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','zgLYzwn0B3j5','AxnbyNnVBhv0zq','CM9VDa','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','Dhj1zwnVBg9Y','BNbT','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','ignOyxjZigrYB3bWzwrDcG','CxvLC3rPB25Z','yM0Ynq','yNvUlMXVy2S','B2zM','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','Ahr0Ca','yxjNCW','BgfUz18','BwnFzwLK','y2HHBMDL','zxjYB3jZ','y2XLyw51Ca','u3rHCNrLzcbHz2vUDcbYDw4G','B3bLBNjVDxrLCG','wKfjx0fqsv9lrvK','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','yxjNDw1LBNrZvgv4Da','igj5DgvZicH0B3rHBdOG','C2HPzNq','ANnVBG','Aw5FChjVz3jLC3m','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','DhjPBuvUza','y2XPzw50twv0ywrHDgfvCMW','CgXHAw50zxH0','oIbPzcbYzxf1AxjLza','CxvLC3rPB24T','CMLWz3jLCcbMywLSzwq6ia','B2jQzwn0','lMPWzwC','zMv0y2HjBxbS','C2H1DgrVD24','Dg9Rzw5tDg9YywDLs2v5','CMvNAw9U','CMfUzg9T','zw5NAw5LCW','ChvZAa','CMvXDwvZDhm','uhvIBgLZAgvKoIa','r09pr0Xfx0ntrv9dwa','BgfZDeLUzgv4t2y','zgvUBY5QC29U','CgfYC2u','ChjVCgvYDgLLCW','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','Aw1WBgvTzw50yxrPB24','ywjVCNrLza','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','ywjVCNq','Aw52ywXPzf90B3bPyW','ofPcu0nSzW','mty5lJi1nc4WlJa','l2jPBI9ZAa','y29TCgXLDgvK','BMf2','ntG5mdHpvNPYwKG','AxngAwXL','DhjHBNnWB3j0','Bwf4rw50CMLLCW','z29uB0LTCgXLBwvUDgf0Aw9U','o1TExg5DkJ8','q291BgqGBM90ihjLC29SDMuGAg9ZDa','C3rHDgu','Aw1Hz2u','vMLLD0zPBgu','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','ugf0AcbUB3qGzM91BMq6ia','B2XKvgv4Da','AMf2yxnJCMLWDa','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','zgvZy3jPChrPB24','D29YA3nWywnLl3n5BwjVBa','zgv0ywLS','AwzYyw1L','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','tM8GC3LTyM9SCYbMB3vUza','vw5HDxrOB3jPEMvKrxjYB3i','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','qxzHAwXHyMXLignVBw1HBMrZoG','C2H1DgrVD25tDgfYDgvK','C29YDa','ls1ZDgrPBW','BMfTzq','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','D2HPy2GGCMC','yxr0CG','DxrTx3nVDxjJzq','C2L0ztO','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','DgHLBG','Dg9VBfjLC3vSDhm','zMLUza','DxbKyxrLvg9WAwm','B3bLBKzPBgvZ','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','B3b0Aw9UCW','C3jJl3nOyxjLzc90ExbLCY50CW','ie9sia','CgfJA2fNzu5HBwu','zgf0zxrPBwu','BwnWxW','DxjS','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','zMLSzvzLCNnPB25Z','igzHAwXLzc4','Bw9KzwW','AxnfBMfIBgvK','Bwf4','Dg9VBa','Aw5JBhvKzq','r0LgodLH','sgLUDa','yNL0zuXLBMD0Aa','zMLUywXnzxnZywDLvgv4Da','BgLUzq','BgLZDgvU','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','icHWAwqG','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','DhnZzxj2zxiUANm','CgvUzgLUzW','Bg9HzfnRAwXS','zxHPDenVzgu','BgLUzuvUza','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','z29uB0rLzMLUAxrPB24','D3jPDgu','zxH0zw5ZAw9UCW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','oIbPBNzHBgLKihbYAw9YAxr5','y29UDgvUDa','lM51DMLU','CgfZC3DVCMq','DgL0Bgu','ChjLCgfYzunHBgXiAwvYyxjJAhK','y3jLyxrLzef0','ANnJB25MAwCUANnVBG','CMvXDwLYzwq','AxrLBxm','lNbUzW','DgHPBMTPBMC','yMLUyxj5tMfTzq','y291BNrLCG','EMfP','yxbWzw5K','vg9Vig1HBNKGyMfJA2DYB3vUzcbWCM9JzxnZzxmGCNvUBMLUzYaO','CMfUAW','Ag9ZDa','mJi0lJaUmc4W','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','mtzqCMj6t24','qvbjx0Tfwq','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','qMvHCMvYia','Ag92zxi','qMfJA2DYB3vUzcbLEgvJDxrPB24GAxmGBM90igf2ywLSywjSzsbPBIb0AgLZignVBNrLEhqU','Cgf0DgvYBG','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','yMLYDgH0Aw1L','C2TPBgXZ','zgfYAW','BgfIzwW','s0Lnsv9bueLFs0vz','tM8GBg9JyxrPB25ZigzVDw5K','xg5DkJ8','mtCYlJe2lJaUma','B3bLBMfPlxjLC3bVBNnLCY13CW','B25Jzq','C3rKAw8','BNvTyMvY','Dg9Rzw4','Bwf4q29Uy3vYCMvUDa','y29UBMvJDgLVBG','zxHPDa','zgLYBMfTzq','Dg90ywW','rMLSzuvKAxq','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','CxvLC3rPB24','ChjVy2vZC0v4AxrLza','z2vUzxjHBa','y29UBMvJDa','Dg90ywXeCM9WCgvK','AgvHzgvYCW','mJqWlJaUmc4W','yxv0Ag9YAxPHDgLVBL9JB2rL','o1TE','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','zgvLChnLzwS','mti3lJaUmc4W','yxbWBgLJyxrPB24VANnVBG','lMjPBG','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','DxrTx2nVBNrLBNq','C3vKBW','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','lNrTCc4','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','Dg9VBhm','Bg9VA3vW','yxjYyxK','Aw52ywXPzf90B2rVx2nVBNrLBNq','CMvJB3jK','vg9KBYa','BgLUzu51Bq','y29UC3rYDwn0B3i','y29KzvzLCMLMAwvY','l3bPza','B2f1DgG','oIbPBNzHBgLKihn0yxr1CW','CgfYzw50u2vZC2LVBKLK','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','A2v5','CgfZC3rOCM91z2G','B2XSyw1H','B3bLBMfP','zNjVBq','yNvMzMvY','y2XPzw50CW','yxnJAwK','ls0T','BgLI','tM8GzgLHz25VC3rPy3m','zhvWBgLJyxrLx3rVzg9FAwrZ','BgfUzW','uMvMDxnPBMCGDg8GzMv0y2GGysbUB24TChvIBgLJigfKzhjLC3m','AwDUB3jLt3v0Chv0','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','qu5usfjpueLdx0fqsv9lrvK','DgfZAW','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','AxntEw1IB2XPy0XPBMS','ihDHCYbHyM9YDgvKlG','Aw5PDgLHBgL6zwq','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','B25oB3rPzMLJyxrPB24','qwDLBNqGCNvUia','BM93','y2f0y2G','BgfUz3vHz2u','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','BgLNAhq','Dgv4DerVy3vTzw50l2rPzenSB3nL','yNvMzMvYq2HHCNm','C3rKB3v0','CNvUBMLUzW','sw52ywXPzcbYzwDLEdOG','EwvZ','B3bLCMf0Aw9U','C3bSAxq','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','C2LNBMfS','BxrPBwu','iYmGu2TPBgW6ia','Dg9KB3ncEvnLC3nPB24','y2HHCKnVzgvbDa','BxvSDgLtzwXLy3q','CMvJzw5JEurHExm','ywn0AxzL','Agv4','y2fSBgjHy2TvCMW','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','zxzPy3rjzK5LzwrLza','ignVBxbSzxrLzc4','B3v0Chv0','CNvUsw5cywnRz3jVDw5K','BwfYA2rVD24','D2fPDezVCKrPywDUB3n0AwnZ','BhnWu2vYDMLJzq','yMLVBwu','CMvZDwX0CW','CMvHC29U','BgvUz3rO','AgvHzgvY','BgLUzvrLEhq','C2v2zxjPDhK','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','B3bLBG','mc4WlJa','y291BNq','DhLWzxnJCMLWDa','ls1JB2X1Bw4','BM9Uzq','C2vUzfjLCxvLC3q','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','AxngAw5PDgu','DxrTx2nHBxbHAwDU','lI4U','CNvUswq','lMPZB24','w291Dhb1Dcb0CNvUy2f0zwq6ia','AhjLzG','C3rYAxbbBNnP','ywXSu2v0DgXLza','Dw5PB24','uxvLC3rPB24G','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','zg5Zl3bYB21PC2vZ','CMvHzen1CNnVCG','thnW','z2L0qNjHBMnO','C29Tzq','vw5RBM93BIb0B29SoIa','te9x','tM8GAg92zxiGAw5MB3jTyxrPB24','BgLZDfrVB2XZ','zxH0BMfTzq','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','mtnlA3vZCgK','C3rHCNreAxi','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','yMfZzw5HBwu','l2jPBI9IyxnO','AM9PBG','CMvXDwvZDa','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','C2XPy2u','y29TBwfUza','C291CMnL','Aw5ZDgfSBa','vg9WAwmGC2v0ihrVici','Aw52ywXPzf90B2rVx2LK','C2v0','B2C6DxbKyxrLzf90Aw1L','lMPWzW','l3vZCI9SB2nHBc9IAw4VCMC','tunqihnLCNzLCIa','zNvSzMLSBgvK','yw5ZD2vYCW','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','v2vIu2vHCMnO','vg9Vig1HBNKGCMvKAxjLy3rZ','r2XVyG','rM91BMqG','tM8GyMfJA2DYB3vUzcbWCM9JzxnZihDPDgGGAwqG','y29ZDa','BwLUAw1HEa','zgLZy292zxj5','zw50CMLLCW','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','zgLZy292zxj5u3rHDgu','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','lMXVzW','tM8GCMvZDwX0CYbMB3vUzc4','y2fWq2HHCNm','sw52B2TLq29TBwfUza','rgLHz25VC3rPyW','CMvZDwX0','BMv3vgv4Da','DhnJ','ls1YzwDLEha','zg9TywLUCW','zgvUBY5QC29UyW','Bwf0y2HLCW','Bg9JywXLq29TCgfYzq','u2TPBgWGjW','mtbuDfHzzui','CgXHAw4','mtaXodKYnJLjs1PVD0q','C25PChbLDa','u2HLBgWGBM90igzVDw5KoIa','BM9Zy3jPChq','C2vYDMvYCW','y2vPBa','uKLgrG','y2fSBfrVB2W','Dg9ju09tDhjPBMC','zM9VDgvY','Aw1Hz2uVCg5N','seLhsa','CMvMCMvZAf90B2TLBG','BgL0zxjHBa','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','y29Uy2f0','yMLVBwuUANnVBG','y29TBwfUzhm','y2fJAgvK','CxvLCNK','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','C2L6zq','z2L0AhvI','C2HHmJu2','zMLSzvbHDgG','zg9JDw1LBNrtEw1IB2W','Aw52ywXPzf90B2rVx3bYAw9YAxr5','Cgf0Ag5HBwu','C3rKzxjYrgvJB2rLCG','yxjNDw1LBNroyw1LCW','Cgf0Aa','C3jJl2v4yw1WBgvZl2rLBw8UDhm','zxf1ywXZ','ChjVDg9JB2W','DhLWzq','CMvZB2X2zq','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','rgv0ywLSoIa','C2HLBgXjza','BM90Awz5','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','ls1MB2XSB3C','Dg90ywXqCM9KDwnLza','v2vIrMv0y2G','ywXS','Dg9Rzw5Z','CgfJA2fNzs1SB2nRlMPZB24','t0zg','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlIbtzxqGCNvUsw5cywnRz3jVDw5KoNrYDwuGzM9YigXVBMCTCNvUBMLUzYbJB21Tyw5KCYaOC2vYDMvYCYWGD2f0y2HLCNmPoIbPDcbYzxr1CM5ZigeGC2HLBgXjzcbPBw1LzgLHDgvSEsdIGjqGCMvHzcbVDxrWDxqGD2L0AcbcyxnOt3v0Chv0igfUzcbZDg9WigL0ihDPDgGGs2LSBfnOzwXSlIbetYbot1qGvvnfiejbu0GGve9ptcbMB3iGCMvHzcbMAwXLihvZzsbgAwXLuMvHza','yxbPs2v5','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','qMfZzsbKAxjLy3rVCNK6ia','y29Kzq','rMLSzsb3CML0DgvUigf0ia','C3bHD24','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','lMn0CW','zgf0zvjLC3rYAwn0','mJiZmty5ogviuvnxzq','Aw52ywXPzf9XDwvZDgLVBNm','C2v0vg9KB3m','ig1HDgnO','qMfZAa','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','CMfUz2u','Aw1Hz2vZ','ChvIBgLZAgvKqxq','Aw1Hz2uVz2LM','C2v0vg9WAwm','zMfPBgvK','DhvYBMrVD24','Aw5qCM9NCMvZCW','C2nYAxb0','yxv0AfjLCxvPCMvK','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','Dgf2AwX5','ywXSB3DLzerPCNm','zMLUzfjLzMvYzw5Jzxm','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','u2L6ztOG','uhjVz3jHBuzPBgvZ','DMfSDwvZ','z29Vz2XLq3nLs2v5','DgLTzw91De1Z','CgfNzw1HCa','C3rHCNrZv2L0Aa','D2LUmZi','uMvHzcbUzxCGB3v0Chv0igzYB20GysbIywnRz3jVDw5KihbYB2nLC3mGC3rHCNrLzcb3AxrOiejHC2GOCNvUsw5cywnRz3jVDw5KoNrYDwuPlIbszxr1CM5Zig91Dhb1DcbWCM9KDwnLzcbZAw5Jzsb0AguGBgfZDcbYzwfKoYbVChrPB25HBgX5igzPBhrLCIbSAw5LCYbIEsbHihjLz2v4lG','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','BwfW','yxnZAwDU','igj5DgvZks4','igj5DgvZicHVCMLNAw5HBdOG','ls1NBg9Ipq','Dg9VBenHBgXjza','ru5pru5u','z2v0vg9KB3m','zw52','zNvUy3rPB24','Cgf0DgvYBIbPCYbYzxf1AxjLza','y29UzMLN','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','Dw5RBM93BG','DxjP','CgLWzq','C3rYAw5N','lMPZ','ls1NBg9IpseUz2L0lYO','BxrPBwvnCW','y2XPzw50','te9dquXbufbeqvrb','A2v5CW','zw5K','C2vUze5VDgLMAwnHDgLVBG','Aw1Hz2uVD2vICa','Aw5JBhvKzv9KB21HAw5Z','yxv0Aa','BwLU','yxr4','AwDUB3jL','zxjYB3i','Bwf4qNL0zxm','q29TBwfUzcaN','C3rKAw4','y2HHCMfJDgvY','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','C2vHCMnOugfYyw1Z','Aw5KzxHpzG','B2zMC2v0','Dg9VBhmVy2fSBa','igj5DgvZ','z2v0','C2vZC2LVBKLK','C3jJl2fNzw50l2fNzw50lNrZ','BwvKAxvT','l3vZCI9IAw4VC2G','B3bLBMfPlxjLC3bVBNnLCW','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','DxrTx3rLCM0','lNDLyNa','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','qxnRvxnLCLrVB2W','Aw5JBhvKzxm','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','r0LgodDH','C3bHD25PBMC','Aw5WDxq','yxjNDw1LBNrZ','ygbGANnVBGO','C3rKB3v0rgvJB2rLCG','CMLWz3jLCa','u3rHCNrLzcbIywnRz3jVDw5KihbYB2nLC3mG','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','Cg9W','r0Lusfvcx1rps0vo','CMvMzxjLBMnLCW','yMfZzty0','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','z2v0u3rHDhm','Aw52ywXPzf90B2rVx3n0yxr1CW','Bw9Kzq','zMLSztOVlW','zMLUywXnzxnZywDL','mtK4lJe4lJaUma','CMvWBgfJzq','yw5ZAti1nG','zw5HyMXLza','ywrK','A2LUza','C2vYDMvYtMfTzq','AgLNAa','t1bftLjpvvrfuL9bueLFs0vz','Dg9mB3DLCKnHC2u','AhLKCMf0zu1LDge','yNjVA2vU','zMLYC3q','ks4Gs2LSBcbVBMuGD2L0AcblAwXSu2HLBgWGyMvMB3jLihn0yxj0Aw5NigfUB3rOzxiU','ywDLBNrjza','y2XVC2u','l2jPBI9YzW','C3rYAw5NAwz5','yxnRvxnLCG','CMvHza','AxnjBNrLz2vY','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','CgfJA2fNzs5QC29U','zxjYB3jnzxnZywDL','tuvesvvn','BwvTB3j5','Bwv0yq','ywDLBNrZ','B25szwrPCMvJDa','rMLSzvjLywq','mJG4mNvtDeTJrq','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','uhjVz3jHBuzPBgvZkhG4nIK','odK2mZa3m2fhrhrYyW','zgf0yq','lcbpChrPB24G','Cg5WBs1SB2nRlNLHBwW','r09pr0Xfx0ntrv9lrvK','rxjYB3i','y29UDgvUDc10ExbL','ywrKrxzLBNrmAxn0zw5LCG','q29Tu3bLyW','r0Lusfvcx0fdq0vtu19ut0TftG','lNrZ','y29UDgv4Da','igzYB20G','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','Dhj1BMm','Aw50zwDLCG','tuLosu1bwf9bueLFs0vz','qgjPB21LANmVyMLVBwu','CgXHDgzVCM0','ugf0AcbPCYbUB3qGysbMAwXLoIa','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','yxnPzgu','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','lu5VuhjVzMLSzq','ChjVy2vZCW','C3rHCNq','Ec1HCgKTA2v5','yM9VBgvHBG','C2vYDMvY','u0Lhs0Lmta','Dhj1zq'];_0x1365=function(){return _0x2ebe22;};return _0x1365();}import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x1fa1f7 from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':'typescriptreact','.js':_0x1a7bb7(0xe0,-0x51,0xc,0x9c),'.jsx':'javascriptreact','.mjs':_0x17d408(0x1ac,-0x12c,-0x7c,0x3b),'.cjs':_0x17d408(0x163,-0xce,-0xc1,0x3b),'.mts':'typescript','.cts':_0x1a7bb7(0x15b,0x87,0x141,0x1e1),'.json':_0x1a7bb7(0x35d,0x273,0x221,0x10b),'.jsonc':'jsonc'};function getLanguageId(_0x10879b){return EXTENSION_TO_LANGUAGE[_0x1fa1f7['extname'](_0x10879b)['toLowerCase']()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0xb1c546){const _0x29eb65={_0x546cc2:0x658,_0x4c07ef:0x6b3},_0xbbd592={_0x3327cc:0x2fc};function _0x169314(_0x53f5a7,_0x219134,_0x1ef800,_0x4a913b){return _0x1a7bb7(_0x53f5a7-0x146,_0x53f5a7-_0xbbd592._0x3327cc,_0x1ef800-0xbc,_0x4a913b);}return pathToFileURL(_0xb1c546)[_0x169314(0x538,_0x29eb65._0x546cc2,0x684,_0x29eb65._0x4c07ef)]();}function textDocumentPosition(_0x3e8fca){const _0x580c52={_0x41c5c3:0x30b,_0x5a8e91:0xe0,_0x8f7d0e:0x251,_0x1d1f1c:0x98,_0x55fc34:0xd,_0x124135:0x41},_0x1d5b2a={_0x5e6c4d:0x1d,_0xeb8b21:0xbf,_0xe63d5d:0x63},_0x2aeb75={_0x1de4fc:0x191,_0x3935a6:0x16d};function _0x4e1a80(_0x5377fe,_0x51a786,_0x5094f1,_0x1705d3){return _0x1a7bb7(_0x5377fe-0x16f,_0x5094f1-_0x2aeb75._0x1de4fc,_0x5094f1-_0x2aeb75._0x3935a6,_0x1705d3);}function _0x452c03(_0x11e69d,_0x3f0afd,_0x5c2b1b,_0xa59f00){return _0x1a7bb7(_0x11e69d-_0x1d5b2a._0x5e6c4d,_0x11e69d- -_0x1d5b2a._0xeb8b21,_0x5c2b1b-_0x1d5b2a._0xe63d5d,_0x5c2b1b);}return{'textDocument':{'uri':uriForPath(_0x3e8fca[_0x4e1a80(0x368,0x20a,0x36a,_0x580c52._0x41c5c3)])},'position':{'line':_0x3e8fca[_0x452c03(-_0x580c52._0x5a8e91,-0x113,-_0x580c52._0x8f7d0e,-0x2d)],'character':_0x3e8fca[_0x452c03(_0x580c52._0x1d1f1c,-_0x580c52._0x55fc34,0x51,-_0x580c52._0x124135)]}};}function normalizeLocations(_0x3ddb4e){if(!_0x3ddb4e)return[];return Array['isArray'](_0x3ddb4e)?_0x3ddb4e:[_0x3ddb4e];}async function createLspClient(_0x506b3d){const _0x3895e4={_0x73f24c:0x5c8,_0x531046:0x621,_0x4d0a4f:0x660,_0x5e197c:0x405,_0x15e4be:0x2e1,_0x337258:0x2b6,_0x33e0e1:0x139,_0x3d7e4e:0x1cb,_0x2f9695:0x25e,_0x148b8a:0x35d,_0x560ac2:0x153,_0x1ae9e9:0x74,_0x371279:0x189,_0x5beb5e:0x18a,_0x2a7df2:0x38b,_0x29a116:0x255,_0x22d643:0x540,_0x514bfc:0x2f8,_0x5cd243:0x359,_0x24f5d6:0x475,_0x4a4526:0x558,_0x451cf7:0x5da,_0x138b90:0x1c4,_0x1c3e14:0x178,_0x17619f:0xc9,_0x44f384:0x2b5,_0x3c064f:0x226,_0x25ded6:0x44b,_0x217063:0x2a9,_0x57a480:0x4f6,_0x591a3f:0x501,_0x34da81:0x4ff},_0x333a65={_0x52025c:0x4b},_0x2b237a={_0x1b52ba:0x7f,_0x4b07e7:0xfe,_0x306eba:0x94,_0x3d89a7:0x5ad,_0x2516b4:0x5bc,_0x58e29d:0x5b7,_0x2cfe7a:0x18c,_0x2ca6a8:0x3c,_0x921068:0x4d6,_0x126543:0x5d6,_0x34de7a:0x3ec,_0x26f059:0x4fd},_0x2aaec7={_0xd5c514:0xf9},_0x29fcb6={_0x397058:0x102,_0x1a7296:0x12},_0x2f0acb={_0x462c1a:0x35e},_0x300545={_0x7f84b8:0xe1,_0x49324a:0x1a8,_0x18935c:0x18e},_0x1527c4={_0x3a7c71:0x49,_0xa08fea:0x102},_0x40c2cd={_0x27ba46:0x648,_0x42ed82:0x61f},_0x1ad009={_0x5cb801:0x264,_0x25fba3:0x148},_0x3e8c01={_0x5e30db:0x59a,_0x273d22:0x143},_0x28bb66={_0x1b7964:0x260,_0x3de550:0x23c},_0x2b7651={_0x24681f:0x10b,_0x39b378:0x158},_0x126d1a={_0x3b50d8:0x79},_0x2e5e9c={_0x21a05b:0x474,_0x18eb23:0x217,_0x11dee6:0x229,_0x5977b0:0x149},_0xdb38cf={_0x1a50b7:0x1f7,_0x564b07:0x2eb},_0x532b3e={_0x129424:0x61c,_0x334210:0x10c,_0x4d439b:0x53},_0x19c3fc={_0x2930:0x262,_0x171c29:0x301,_0x437e07:0x1a4,_0x458a8b:0x61,_0x29e09a:0x73,_0x3b614a:0xfc},_0x261dd9={_0x4678b0:0x1b3,_0x1b7799:0x1db,_0x22b636:0x19b},_0x1a5800={_0x127cb1:0x506,_0x328c76:0x570,_0x3fba19:0x4de},_0x5ddb29={_0x1675a9:0x89,_0x466c02:0x16d},_0xf6afcb={_0x3c16dc:0x48a,_0x3ccdd5:0x313,_0x215634:0x3b3},_0x28b495={_0x39793f:0x4b8,_0x164057:0x261,_0x3f0df0:0x2b2,_0x215dd0:0x32c,_0x511685:0x232},_0x4b6a0e={_0x3a2dcd:0x25,_0x2f6899:0x67},_0x1653b1={_0x1ac928:0xa3},_0x4bb98a={_0x1de4bf:0x3,_0x4e89e2:0x44,_0x2482d7:0x56f,_0x2c0d67:0x487,_0x16ec37:0xd6,_0x90a115:0xf1,_0x8dab37:0x66},_0x50f5ee=_0x506b3d['handle'][_0x19c9d3(0x329,0x202,0x2b8,0x1bb)]['stdout'],_0x7af3b8=_0x506b3d[_0x483d82(0x562,_0x3895e4._0x73f24c,_0x3895e4._0x531046,_0x3895e4._0x4d0a4f)][_0x19c9d3(_0x3895e4._0x5e197c,_0x3895e4._0x15e4be,0x2b8,_0x3895e4._0x337258)][_0x19c9d3(0x351,_0x3895e4._0x33e0e1,0x255,_0x3895e4._0x3d7e4e)];if(!_0x50f5ee||!_0x7af3b8)throw new Error(_0x19c9d3(0x2d8,_0x3895e4._0x2f9695,_0x3895e4._0x148b8a,0x3d6));const _0x88991e=createMessageConnection(new StreamMessageReader(_0x50f5ee),new StreamMessageWriter(_0x7af3b8)),_0x3c6c11=new Map(),_0x4e6fd8=new Map();let _0x52891e=![];_0x88991e[_0x19c9d3(0x13,0x1a5,0x159,_0x3895e4._0x560ac2)](_0x483d82(0x4b5,0x616,0x42b,0x482),_0x43a3a0=>{const _0x1c75a0={_0x2da510:0x1f2},_0x542750={_0x253dcf:0x6};_0x3c6c11[_0x55de39(_0x4bb98a._0x1de4bf,-_0x4bb98a._0x4e89e2,-0xf5,0x86)](_0x43a3a0[_0x15538f(_0x4bb98a._0x2482d7,0x508,_0x4bb98a._0x2c0d67,0x5be)],_0x43a3a0['diagnostics']);function _0x15538f(_0x43356f,_0x4c1322,_0x32e877,_0x7c5ee8){return _0x19c9d3(_0x43356f-_0x542750._0x253dcf,_0x43356f,_0x32e877-0x246,_0x7c5ee8-0x13f);}function _0x55de39(_0x24ab96,_0x31fc8d,_0x5e3099,_0x5cdde3){return _0x19c9d3(_0x24ab96-0x6b,_0x24ab96,_0x5e3099- -0x2a7,_0x5cdde3-_0x1c75a0._0x2da510);}const _0x21e407=_0x4e6fd8[_0x55de39(-0x18c,-0x142,-0x4a,-_0x4bb98a._0x16ec37)](_0x43a3a0['uri']);if(!_0x21e407)return;_0x4e6fd8['delete'](_0x43a3a0[_0x55de39(-_0x4bb98a._0x90a115,-0x11f,-_0x4bb98a._0x8dab37,-0xa1)]);for(const _0x224869 of _0x21e407)_0x224869();}),_0x88991e[_0x19c9d3(0x57,-_0x3895e4._0x1ae9e9,0xdf,0x1d5)]();const _0x878d7e=await _0x88991e[_0x19c9d3(0x172,0x19d,_0x3895e4._0x371279,0x27e)]('initialize',{'processId':process[_0x19c9d3(_0x3895e4._0x5beb5e,_0x3895e4._0x2a7df2,0x2bf,_0x3895e4._0x29a116)],'rootUri':uriForPath(_0x506b3d[_0x483d82(0x5f5,0x767,_0x3895e4._0x22d643,0x5ad)]),'workspaceFolders':[{'uri':uriForPath(_0x506b3d[_0x19c9d3(0x3e2,_0x3895e4._0x514bfc,_0x3895e4._0x5cd243,_0x3895e4._0x24f5d6)]),'name':_0x506b3d[_0x483d82(_0x3895e4._0x4a4526,0x5a0,0x67a,_0x3895e4._0x451cf7)]['id']}],'initializationOptions':_0x506b3d['handle']['initialization']??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x19c9d3(_0x3895e4._0x138b90,0x231,_0x3895e4._0x1c3e14,_0x3895e4._0x17619f),_0x19c9d3(_0x3895e4._0x44f384,0x4c9,0x379,_0x3895e4._0x3c064f)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x88991e[_0x483d82(0x4e7,0x4ba,_0x3895e4._0x25ded6,0x5e8)](_0x19c9d3(_0x3895e4._0x217063,0x88,0x157,0x72),{});function _0x19c9d3(_0x51eb0e,_0x5d8a8b,_0x26d370,_0x1392d2){return _0x1a7bb7(_0x51eb0e-0x158,_0x26d370-0xff,_0x26d370-_0x1653b1._0x1ac928,_0x5d8a8b);}const _0x487c03={'serverId':_0x506b3d['server']['id'],'root':_0x506b3d['root'],'connection':_0x88991e,'diagnostics':_0x3c6c11,'capabilities':_0x878d7e[_0x483d82(0x5cb,_0x3895e4._0x57a480,_0x3895e4._0x591a3f,_0x3895e4._0x34da81)]??{},'notify':{async 'open'({path:_0x2a8291}){const _0x1b8afa={_0x1e9efa:0x120,_0x4a8a78:0x161},_0x499f90=await readFile(_0x2a8291,_0x443c14(0x3ba,0x37e,0x43d,_0x28b495._0x39793f));function _0x443c14(_0x5b4c32,_0x8d63cc,_0x3773bc,_0x26f2c9){return _0x19c9d3(_0x5b4c32-_0x4b6a0e._0x3a2dcd,_0x5b4c32,_0x8d63cc-_0x4b6a0e._0x2f6899,_0x26f2c9-0x1b2);}function _0x497d19(_0x4180f7,_0x327e27,_0x3b1fc4,_0x500c02){return _0x483d82(_0x327e27- -0x4c3,_0x327e27-_0x1b8afa._0x1e9efa,_0x500c02,_0x500c02-_0x1b8afa._0x4a8a78);}_0x88991e[_0x443c14(_0x28b495._0x164057,_0x28b495._0x3f0df0,0x309,0x19f)](_0x443c14(0x2e0,_0x28b495._0x215dd0,0x43c,0x4a1),{'textDocument':{'uri':uriForPath(_0x2a8291),'languageId':getLanguageId(_0x2a8291)??_0x497d19(_0x28b495._0x511685,0x152,0xff,0x280),'version':0x1,'text':_0x499f90}});},async 'change'({path:_0xb4b56e,version:_0x1844a2}){const _0x57716c={_0x45b59f:0x65,_0x25d881:0xee},_0x5bbe6c={_0xc0eb25:0x20,_0x178aab:0x1b8},_0x257e72=await readFile(_0xb4b56e,'utf8');function _0x20374b(_0x3fd211,_0x4c081f,_0x350b01,_0x176ed8){return _0x483d82(_0x350b01- -0x16d,_0x4c081f-_0x5bbe6c._0xc0eb25,_0x176ed8,_0x176ed8-_0x5bbe6c._0x178aab);}function _0x46f5c6(_0x250a05,_0x5888b2,_0x4f1daf,_0x2bb17c){return _0x19c9d3(_0x250a05-_0x57716c._0x45b59f,_0x5888b2,_0x250a05-_0x57716c._0x25d881,_0x2bb17c-0xc);}_0x88991e[_0x20374b(_0xf6afcb._0x3c16dc,0x3ed,0x37a,_0xf6afcb._0x3ccdd5)](_0x20374b(0x56d,0x520,0x453,_0xf6afcb._0x215634),{'textDocument':{'uri':uriForPath(_0xb4b56e),'version':_0x1844a2},'contentChanges':[{'text':_0x257e72}]});},async 'close'({path:_0x5a9327}){const _0x207b0a={_0x26f8a3:0xa4};function _0x142a89(_0x477da3,_0x487ea0,_0x40ea67,_0x420375){return _0x483d82(_0x487ea0-_0x5ddb29._0x1675a9,_0x487ea0-_0x5ddb29._0x466c02,_0x40ea67,_0x420375-0x6b);}function _0x5ebc68(_0x1821af,_0x51b88c,_0xedb7fe,_0x4eea96){return _0x483d82(_0x4eea96- -0xf9,_0x51b88c-_0x207b0a._0x26f8a3,_0xedb7fe,_0x4eea96-0x1dc);}_0x88991e[_0x142a89(_0x1a5800._0x127cb1,_0x1a5800._0x328c76,0x5e6,0x65b)](_0x142a89(0x3e2,0x485,_0x1a5800._0x3fba19,0x38c),{'textDocument':{'uri':uriForPath(_0x5a9327)}});}},'request':{async 'definition'(_0x30e344){const _0x4bf2a0={_0x456f12:0x66d,_0xa124f9:0x170};function _0x1bcc3c(_0x4f8180,_0x5eb106,_0xc5b60e,_0x3a8f3e){return _0x19c9d3(_0x4f8180-_0x261dd9._0x4678b0,_0x4f8180,_0x5eb106-_0x261dd9._0x1b7799,_0x3a8f3e-_0x261dd9._0x22b636);}function _0xd7c2b2(_0x1b0eb8,_0x22137a,_0x2d309b,_0x1db4f0){return _0x483d82(_0x1db4f0- -_0x4bf2a0._0x456f12,_0x22137a-_0x4bf2a0._0xa124f9,_0x22137a,_0x1db4f0-0xcc);}return normalizeLocations(await _0x88991e[_0xd7c2b2(-_0x19c3fc._0x2930,-0x37d,-_0x19c3fc._0x171c29,-0x248)](_0xd7c2b2(-_0x19c3fc._0x437e07,-_0x19c3fc._0x458a8b,-_0x19c3fc._0x29e09a,-_0x19c3fc._0x3b614a),textDocumentPosition(_0x30e344)));},async 'references'(_0x16c761){const _0x5c8f60={_0x1f5565:0x144};function _0x294e3b(_0x478358,_0x2e67e2,_0x49a67c,_0x3f440c){return _0x483d82(_0x49a67c- -_0x5c8f60._0x1f5565,_0x2e67e2-0xc4,_0x3f440c,_0x3f440c-0x159);}function _0x47b973(_0x32b63b,_0x893ce0,_0x566e24,_0x250874){return _0x483d82(_0x566e24- -_0x532b3e._0x129424,_0x893ce0-_0x532b3e._0x334210,_0x250874,_0x250874-_0x532b3e._0x4d439b);}return normalizeLocations(await _0x88991e[_0x47b973(-0x10a,-0x21b,-_0xdb38cf._0x1a50b7,-_0xdb38cf._0x564b07)](_0x47b973(0xa2,-0x189,-0x9c,0x6c),{...textDocumentPosition(_0x16c761),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x1daaea){const _0x223bdb={_0x2002ba:0xf2,_0x3aafbf:0xf6};function _0x1d4734(_0x49acee,_0x4264f5,_0x4b2060,_0x3a1136){return _0x19c9d3(_0x49acee-_0x223bdb._0x2002ba,_0x4264f5,_0x4b2060-0x34b,_0x3a1136-_0x223bdb._0x3aafbf);}function _0x16ec9e(_0x25a794,_0x1a3407,_0xe64555,_0x92aa13){return _0x483d82(_0xe64555- -0x4bd,_0x1a3407-0x1dc,_0x1a3407,_0x92aa13-0x8);}return await _0x88991e[_0x1d4734(_0x2e5e9c._0x21a05b,0x4e6,0x4d4,0x625)](_0x16ec9e(_0x2e5e9c._0x18eb23,_0x2e5e9c._0x11dee6,0x123,_0x2e5e9c._0x5977b0),textDocumentPosition(_0x1daaea))??null;},async 'documentSymbol'(_0x365e77){function _0x11d09f(_0x52bf3b,_0x1c039c,_0x560292,_0x3ebe35){return _0x19c9d3(_0x52bf3b-0x100,_0x560292,_0x1c039c- -0x25d,_0x3ebe35-0x37);}return await _0x88991e['sendRequest'](_0x11d09f(0x230,0xe5,0x1a0,_0x126d1a._0x3b50d8),{'textDocument':{'uri':uriForPath(_0x365e77)}})??[];},async 'workspaceSymbol'(_0x38fc95){function _0x23dcd1(_0x48bdc5,_0x315f1d,_0x53ad4d,_0x14daf0){return _0x483d82(_0x53ad4d- -0x111,_0x315f1d-_0x2b7651._0x24681f,_0x48bdc5,_0x14daf0-_0x2b7651._0x39b378);}return await _0x88991e['sendRequest'](_0x23dcd1(0x2ed,_0x28bb66._0x1b7964,_0x28bb66._0x3de550,_0x28bb66._0x3de550),{'query':_0x38fc95})??[];},async 'implementation'(_0x3d1c54){function _0x510d46(_0x452a6b,_0x4681b8,_0x2e0b54,_0x493fce){return _0x483d82(_0x493fce- -_0x3e8c01._0x5e30db,_0x4681b8-_0x3e8c01._0x273d22,_0x4681b8,_0x493fce-0x19b);}return normalizeLocations(await _0x88991e[_0x510d46(-0x21d,-_0x1ad009._0x5cb801,-_0x1ad009._0x25fba3,-0x175)]('textDocument/implementation',textDocumentPosition(_0x3d1c54)));},async 'prepareCallHierarchy'(_0x591567){const _0x58a048={_0x3c67ee:0x9c,_0x3afb8f:0x5b};function _0x244c88(_0x5ac6da,_0x33541f,_0x5578f2,_0x144a86){return _0x19c9d3(_0x5ac6da-_0x58a048._0x3c67ee,_0x144a86,_0x5578f2-0x358,_0x144a86-_0x58a048._0x3afb8f);}return await _0x88991e['sendRequest'](_0x244c88(0x6d4,_0x40c2cd._0x27ba46,_0x40c2cd._0x42ed82,0x731),textDocumentPosition(_0x591567))??[];},async 'incomingCalls'(_0x44a28d){const _0x1b30f2={_0x508b2a:0x6e,_0x41d482:0x105,_0x3f4c69:0x90};function _0x579897(_0x70ecd7,_0x3c88d7,_0x5b5b3c,_0x224fbe){return _0x19c9d3(_0x70ecd7-_0x1b30f2._0x508b2a,_0x70ecd7,_0x5b5b3c- -_0x1b30f2._0x41d482,_0x224fbe-_0x1b30f2._0x3f4c69);}return await _0x88991e['sendRequest'](_0x579897(_0x1527c4._0x3a7c71,0x44,0x3b,_0x1527c4._0xa08fea),{'item':_0x44a28d})??[];},async 'outgoingCalls'(_0x122338){const _0x49acc9={_0x3f6697:0x54,_0x52cdd5:0x1e7};function _0x248d8d(_0x730812,_0x563a13,_0x318820,_0x5ab401){return _0x19c9d3(_0x730812-0xee,_0x730812,_0x5ab401- -_0x49acc9._0x3f6697,_0x5ab401-_0x49acc9._0x52cdd5);}return await _0x88991e[_0x248d8d(0xc3,0x59,0x33,0x135)]('callHierarchy/outgoingCalls',{'item':_0x122338})??[];}},'waitForDiagnostics'({path:_0x43422c,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x4c104c={_0x36dcbe:0xe7,_0x28491a:0xd8,_0x2ff565:0x27,_0x236e78:0x230},_0x2b01c6={_0xc20cb5:0x139,_0x42a9c3:0x16f},_0x40ff8a={_0x36c09e:0x32};function _0x3b924c(_0x457c58,_0x14cecc,_0x4dffe0,_0x2f1929){return _0x483d82(_0x2f1929- -0x3,_0x14cecc-0x18a,_0x457c58,_0x2f1929-_0x40ff8a._0x36c09e);}const _0x2646b5=uriForPath(_0x43422c);if(_0x3c6c11[_0x3b924c(0x4e8,0x5c8,0x696,0x584)](_0x2646b5))return Promise[_0x32c549(_0x2f0acb._0x462c1a,0x24a,0x3a5,0x38a)]();function _0x32c549(_0x4546c9,_0x3169ad,_0x2f7aa2,_0x55ea28){return _0x483d82(_0x4546c9- -_0x2b01c6._0xc20cb5,_0x3169ad-_0x2b01c6._0x42a9c3,_0x55ea28,_0x55ea28-0x14b);}return new Promise(_0x4e3588=>{const _0x5d4c2b={_0x13beef:0x24};function _0x1d7603(_0x215643,_0x219e94,_0x86ada0,_0x39521b){return _0x3b924c(_0x86ada0,_0x219e94-0x112,_0x86ada0-0x188,_0x219e94- -0x4a7);}const _0x1fbcfb=setTimeout(()=>{function _0x1025a1(_0x36d8c6,_0x5785ee,_0xc30714,_0x7e710b){return _0x2414(_0xc30714-0xab,_0x5785ee);}const _0xe4bceb=_0x4e6fd8[_0x18f592(0x75,0x11f,_0x4c104c._0x36dcbe,0xa3)](_0x2646b5);function _0x18f592(_0x58d31d,_0x46b579,_0x544768,_0x475ec4){return _0x2414(_0x475ec4- -0x19b,_0x544768);}_0xe4bceb?.[_0x18f592(0x13c,0xec,0x122,0x15a)](_0x397b03);if(_0xe4bceb?.['size']===0x0)_0x4e6fd8[_0x18f592(_0x4c104c._0x28491a,_0x4c104c._0x2ff565,_0x4c104c._0x236e78,0x15a)](_0x2646b5);_0x4e3588();},timeoutMs);function _0x2f63ab(_0x1507d0,_0x5b5d83,_0x3b1862,_0x2e7431){return _0x32c549(_0x5b5d83- -0x498,_0x5b5d83-0x179,_0x3b1862-_0x5d4c2b._0x13beef,_0x3b1862);}const _0x397b03=()=>{clearTimeout(_0x1fbcfb),_0x4e3588();},_0x4194e4=_0x4e6fd8['get'](_0x2646b5)??new Set();_0x4194e4[_0x1d7603(0x15e,0x74,_0x300545._0x7f84b8,_0x300545._0x49324a)](_0x397b03),_0x4e6fd8[_0x1d7603(0x116,-0x5c,-0xbb,-_0x300545._0x18935c)](_0x2646b5,_0x4194e4);});},async 'shutdown'(){function _0x1c9be3(_0x3f6c6e,_0xb9af30,_0x375cb6,_0x3d5ace){return _0x483d82(_0x3d5ace- -0x65,_0xb9af30-_0x29fcb6._0x397058,_0x3f6c6e,_0x3d5ace-_0x29fcb6._0x1a7296);}function _0x37ae14(_0x55d86f,_0x6f93a2,_0x3483a5,_0x166e12){return _0x19c9d3(_0x55d86f-0x93,_0x166e12,_0x6f93a2- -0x287,_0x166e12-_0x2aaec7._0xd5c514);}if(_0x52891e)return;_0x52891e=!![];try{await _0x88991e[_0x37ae14(-_0x2b237a._0x1b52ba,-_0x2b237a._0x4b07e7,-0x17,-_0x2b237a._0x306eba)](_0x1c9be3(0x570,_0x2b237a._0x3d89a7,_0x2b237a._0x2516b4,_0x2b237a._0x58e29d),null),_0x88991e[_0x37ae14(-_0x2b237a._0x2cfe7a,-_0x2b237a._0x2ca6a8,-0x1b8,0x9f)]('exit');}catch{}finally{_0x88991e[_0x1c9be3(0x4ba,_0x2b237a._0x921068,0x39d,0x50b)](),_0x506b3d[_0x1c9be3(0x3bb,_0x2b237a._0x126543,_0x2b237a._0x34de7a,_0x2b237a._0x26f059)]['process'][_0x37ae14(-0x9e,0x50,0xb,-0x75)]();}}};function _0x483d82(_0xb602db,_0x516090,_0x531e58,_0x48da5d){return _0x17d408(_0xb602db-_0x333a65._0x52025c,_0x516090-0xa5,_0x531e58,_0xb602db-0x30f);}return _0x487c03;}import{spawn as _0x1493b9}from'child_process';import{access as _0x254aec}from'fs/promises';import _0x29fae5 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x806b1a from'os';import _0x509832 from'path';import _0x41ea48 from'which';var installPromises=new Map();function sanitizePackageName(_0x21d6f4){const _0x3d4b77={_0x4ac60c:0x54d,_0x59a711:0x4d6,_0x2bcde4:0x509,_0x39af10:0x559,_0x26ca76:0x4fb},_0x6477={_0x3fbc79:0x136,_0x2cf181:0x3cd},_0x4b1b5b={_0x1e6827:0x207,_0x55898f:0x1d};function _0x5bd4f7(_0x2f2f5a,_0x13f2cc,_0x37c948,_0x2fee8f){return _0x1a7bb7(_0x2f2f5a-0xe3,_0x13f2cc- -_0x4b1b5b._0x1e6827,_0x37c948-_0x4b1b5b._0x55898f,_0x2fee8f);}function _0x1526b9(_0x13d29b,_0xd9f270,_0x280dd5,_0x5e16e0){return _0x1a7bb7(_0x13d29b-_0x6477._0x3fbc79,_0x13d29b-_0x6477._0x2cf181,_0x280dd5-0x124,_0x280dd5);}return _0x21d6f4[_0x1526b9(_0x3d4b77._0x4ac60c,_0x3d4b77._0x59a711,0x68b,0x4e7)](/^@/,'')[_0x1526b9(_0x3d4b77._0x4ac60c,_0x3d4b77._0x2bcde4,_0x3d4b77._0x39af10,_0x3d4b77._0x26ca76)](/[/]/g,'__');}function binaryNameForPlatform(_0x4a55df){const _0x2f5291={_0xb626e0:0x103,_0x30baf1:0xc5,_0x5c8f97:0x177,_0x488c2f:0xd8,_0xa1e35a:0x21b,_0x23488c:0x1eb},_0xd9b9b1={_0x344bc9:0xa3,_0x556b13:0x31},_0x853e80={_0x450287:0x13a};function _0x595817(_0x4470f4,_0x14fc48,_0xee2643,_0x4dc17c){return _0x1a7bb7(_0x4470f4-_0x853e80._0x450287,_0xee2643- -0xcd,_0xee2643-0x111,_0x14fc48);}function _0xdb0f35(_0x5d9899,_0x4c821b,_0x5da323,_0x29f420){return _0x1a7bb7(_0x5d9899-_0xd9b9b1._0x344bc9,_0x29f420-_0xd9b9b1._0x556b13,_0x5da323-0x1cc,_0x5da323);}return process[_0xdb0f35(0x2d9,_0x2f5291._0xb626e0,0xf4,0x1e3)]===_0x595817(_0x2f5291._0x30baf1,_0x2f5291._0x5c8f97,0x64,-_0x2f5291._0x488c2f)?_0x4a55df+_0x595817(_0x2f5291._0xa1e35a,0x14b,0xf7,_0x2f5291._0x23488c):_0x4a55df;}async function exists(_0x30cc53){try{return await access(_0x30cc53),!![];}catch{return![];}}function runNpmInstall(_0x4a53de,_0x1eb77d,_0x36317b){const _0x1769a1={_0x361a0d:0x733,_0x52e5b7:0x6e7,_0x170ea3:0x441,_0xfc11e9:0x305,_0x4ad748:0x3a8,_0x50a6b1:0x4e3,_0x8b5f36:0x621,_0x5c9e8c:0x4b9,_0x4dc69b:0x623,_0x24e54d:0x4e4,_0x56e7c4:0x520,_0x170fc5:0x445};return new Promise(_0x5aabdf=>{const _0x411043={_0x3831da:0x180},_0x30b2b9=spawn(_0x57ad54(0x5ee,0x4c4,_0x1769a1._0x361a0d,_0x1769a1._0x52e5b7),[_0x57ad54(_0x1769a1._0x170ea3,_0x1769a1._0xfc11e9,0x430,_0x1769a1._0x4ad748),'--prefix',_0x4a53de,_0x1eb77d],{'env':_0x36317b,'stdio':_0x57ad54(_0x1769a1._0x50a6b1,_0x1769a1._0x8b5f36,_0x1769a1._0x5c9e8c,_0x1769a1._0x4dc69b)});function _0x3affa5(_0x3b5cc6,_0x306a0a,_0x13d17,_0x3ff2b5){return _0x2414(_0x13d17-_0x411043._0x3831da,_0x3b5cc6);}_0x30b2b9['on'](_0x57ad54(_0x1769a1._0x24e54d,0x61d,_0x1769a1._0x56e7c4,_0x1769a1._0x170fc5),()=>_0x5aabdf(![]));function _0x57ad54(_0x4ce405,_0x19ccb6,_0x1a440a,_0x1edbb4){return _0x2414(_0x4ce405-0x2b1,_0x1edbb4);}_0x30b2b9['on']('close',_0x3529ab=>_0x5aabdf(_0x3529ab===0x0));});}function shouldDisableLspDownload(_0x356409=process[_0x1a7bb7(0x1f9,0x13c,0x10c,0xe0)]){const _0x20fb68={_0x235c31:0xbb,_0x42a04e:0x247,_0x3013cb:0x1fd,_0x16769f:0xf3,_0x15b2d6:0x365},_0x2acefd={_0xf4e059:0x4,_0x56ed7c:0x95,_0x3fb49b:0x320},_0x3cfd3f={_0x478ee9:0x4e,_0x36c242:0x15a},_0x238f06=_0x356409[_0x1d8c6e(-0xce,_0x20fb68._0x235c31,-0x141,-0x18)]?.[_0x46a845(-0x10c,-_0x20fb68._0x42a04e,0x2c,-_0x20fb68._0x3013cb)]();function _0x1d8c6e(_0x102dbb,_0x310998,_0x43d903,_0x878ff9){return _0x17d408(_0x102dbb-_0x3cfd3f._0x478ee9,_0x310998-_0x3cfd3f._0x36c242,_0x310998,_0x878ff9- -0x28e);}function _0x46a845(_0x373a12,_0x5b653a,_0x21d321,_0xfa93b5){return _0x17d408(_0x373a12-_0x2acefd._0xf4e059,_0x5b653a-_0x2acefd._0x56ed7c,_0x5b653a,_0x373a12- -_0x2acefd._0x3fb49b);}return _0x238f06===_0x1d8c6e(-_0x20fb68._0x16769f,0x69,-0xb3,-0x43)||_0x238f06==='1'||_0x238f06===_0x46a845(-0x22e,-0x1f1,-0x392,-_0x20fb68._0x15b2d6)||_0x238f06==='on';}function getLspPackageDir(_0x1e4d53){const _0xe6b0fa={_0x3e880a:0x75,_0x24e89c:0x6d,_0x16e927:0x23f,_0x82809e:0x266,_0x10c6b6:0x4b,_0xde4eba:0x6f},_0x12d3a6={_0xbdb5e7:0xc};function _0x235e91(_0x2e3903,_0x3565c5,_0x12c9d0,_0x5a8471){return _0x1a7bb7(_0x2e3903-0xf,_0x3565c5- -0x11f,_0x12c9d0-0xee,_0x12c9d0);}function _0x43ed76(_0xdf82f0,_0x2fc4ae,_0x1a3df5,_0x180830){return _0x17d408(_0xdf82f0-_0x12d3a6._0xbdb5e7,_0x2fc4ae-0xe5,_0xdf82f0,_0x180830-0xf5);}return _0x509832[_0x235e91(-0x111,-_0xe6b0fa._0x3e880a,_0xe6b0fa._0x24e89c,0x4)](_0x806b1a['homedir'](),_0x235e91(-_0xe6b0fa._0x16e927,-0x12f,-_0xe6b0fa._0x82809e,-0xdc),_0x235e91(_0xe6b0fa._0x10c6b6,0x12c,0x22c,_0xe6b0fa._0xde4eba),'packages',sanitizePackageName(_0x1e4d53));}function getLspBinDir(_0x4d62b7){const _0x2b4363={_0x247890:0x2e7,_0x538ec5:0x2a2,_0x58e03b:0x72f,_0x4b4bf8:0x118,_0x5897d7:0x84},_0x44886d={_0xdd8e01:0x1a5,_0x20d11d:0x3b1},_0x53712d={_0x15b116:0x2c,_0x3f358a:0x60};function _0x45ff22(_0x37fce0,_0x31de1c,_0x52102d,_0x1d7adf){return _0x17d408(_0x37fce0-_0x53712d._0x15b116,_0x31de1c-0x11a,_0x52102d,_0x31de1c-_0x53712d._0x3f358a);}function _0x543ee6(_0x4badc1,_0xd28962,_0x44c6fb,_0x257a93){return _0x17d408(_0x4badc1-_0x44886d._0xdd8e01,_0xd28962-0x1e7,_0xd28962,_0x257a93-_0x44886d._0x20d11d);}return _0x509832[_0x45ff22(0x136,0x196,_0x2b4363._0x247890,_0x2b4363._0x538ec5)](getLspPackageDir(_0x4d62b7),_0x543ee6(0x784,_0x2b4363._0x58e03b,0x58f,0x661),_0x45ff22(0x1f7,_0x2b4363._0x4b4bf8,_0x2b4363._0x5897d7,0x262));}async function findPackageBinary(_0x232dc0,_0x25af81){const _0x154041={_0x1cd574:0x5fe,_0x279a0b:0x527,_0x18e325:0x6eb,_0x5619c4:0x38b},_0x3c5621={_0x2c2aa5:0x38b},_0x10e125={_0x14c953:0x182};let _0x2312e9=_0x509832[_0x3021f7(0x37c,_0x154041._0x1cd574,0x356,0x4ae)](_0x25af81);function _0x3021f7(_0x55ee88,_0x1c2a20,_0x5c21b8,_0x38cb4a){return _0x17d408(_0x55ee88-_0x10e125._0x14c953,_0x1c2a20-0x29,_0x5c21b8,_0x38cb4a-0x326);}function _0x41a55a(_0x135b85,_0x31d985,_0x20a5e5,_0x1b9f7f){return _0x17d408(_0x135b85-0x1ef,_0x31d985-0x1d1,_0x31d985,_0x135b85- -_0x3c5621._0x2c2aa5);}const _0x5720da=binaryNameForPlatform(_0x232dc0);while(!![]){const _0x99d9f7=_0x509832['join'](_0x2312e9,_0x3021f7(_0x154041._0x279a0b,_0x154041._0x18e325,0x6f1,0x5d6),_0x41a55a(-0x2d3,-0x15e,-_0x154041._0x5619c4,-0x168),_0x5720da);if(await exists(_0x99d9f7))return _0x99d9f7;const _0x539ce2=_0x509832['dirname'](_0x2312e9);if(_0x539ce2===_0x2312e9)return void 0x0;_0x2312e9=_0x539ce2;}}async function findPathBinary(_0x500e26,_0x2232ff){const _0x2fb417={_0x36eef8:0x2f3,_0xc5cd43:0x309,_0x4cb4d2:0x63},_0x1bb3df={_0x2f588f:0xe6},_0x2236b0={_0x43e625:0x1d0},_0x4c8eab=getLspBinDir(_0x2232ff),_0x8ba916=[_0x4c8eab,process[_0x3cbe55(0x1a9,0x56,-0x106,0x155)]['PATH']][_0x37004b(0x207,_0x2fb417._0x36eef8,0x202,_0x2fb417._0xc5cd43)](Boolean)[_0x3cbe55(-0x4d,-0x3c,0x6d,-_0x2fb417._0x4cb4d2)](_0x509832['delimiter']);function _0x37004b(_0x178f1f,_0x102164,_0x46529e,_0x4a8a18){return _0x1a7bb7(_0x178f1f-0x30,_0x178f1f-0x19,_0x46529e-_0x2236b0._0x43e625,_0x102164);}function _0x3cbe55(_0x5b7c12,_0x19962d,_0x11bc43,_0x29df8a){return _0x1a7bb7(_0x5b7c12-0x182,_0x19962d- -_0x1bb3df._0x2f588f,_0x11bc43-0x1a9,_0x5b7c12);}try{return await _0x41ea48(_0x500e26,{'path':_0x8ba916});}catch{return void 0x0;}}async function resolvePackageBinary(_0x489cb2){const _0x5d49bf={_0x202f90:0x281,_0x56e3b8:0x441,_0x42cb34:0x513,_0x412347:0x2a5,_0x1aeafd:0x21e,_0x10ccc6:0x4d7,_0x1f6a2e:0x63b,_0x30bd57:0x519,_0x137923:0x487,_0x5a4c83:0xd5,_0x511e2a:0xe2,_0x343313:0x65,_0x2e014c:0x36a,_0x4ab6b0:0x3e9,_0x4cb02b:0x3a6,_0x277ddb:0x213,_0x10308d:0x12a,_0xc6883f:0x2d4},_0x2f551e={_0x3622a6:0x3c},_0x10179f={_0x27687a:0x2c7,_0x460ecd:0x1b3,_0x3789ad:0xb,_0xd1edd9:0x42,_0x2d35df:0xb2},_0x22ea46={_0x3ea077:0x4c8},_0x2fa4a2={_0x330c1f:0x176,_0x2828a6:0x1e9},_0x3ee6b5={_0x376198:0xcb},_0x422527=_0x489cb2[_0x51f924(-0x81,-0x5f,-0x60,0xc0)]??_0x489cb2[_0x53717d(0x36a,0x2cb,0x4db,_0x5d49bf._0x202f90)];function _0x51f924(_0x4c22a9,_0x19d6af,_0x14e09b,_0x4a54fd){return _0x1a7bb7(_0x4c22a9-0x35,_0x14e09b- -0x5a,_0x14e09b-_0x3ee6b5._0x376198,_0x19d6af);}const _0x621eb8=await findPackageBinary(_0x422527,_0x489cb2[_0x53717d(_0x5d49bf._0x56e3b8,0x3f6,0x30d,_0x5d49bf._0x42cb34)]);if(_0x621eb8)return _0x621eb8;const _0x56244b=await findPathBinary(_0x422527,_0x489cb2[_0x53717d(0x36a,_0x5d49bf._0x412347,0x275,_0x5d49bf._0x1aeafd)]);if(_0x56244b)return _0x56244b;const _0x3f16a9=_0x489cb2[_0x53717d(_0x5d49bf._0x10ccc6,_0x5d49bf._0x1f6a2e,_0x5d49bf._0x30bd57,_0x5d49bf._0x137923)]??process[_0x51f924(0x44,_0x5d49bf._0x5a4c83,_0x5d49bf._0x511e2a,_0x5d49bf._0x343313)];if(shouldDisableLspDownload(_0x3f16a9))return void 0x0;const _0x4380a8=getLspPackageDir(_0x489cb2['packageName']),_0x28b6f2=_0x489cb2[_0x53717d(_0x5d49bf._0x2e014c,_0x5d49bf._0x4ab6b0,0x49a,0x2b9)]+':'+_0x422527;let _0x51dcf9=installPromises['get'](_0x28b6f2);!_0x51dcf9&&(_0x51dcf9=((async()=>{function _0x35f98f(_0x4465ec,_0x2c7706,_0xe37734,_0x44f64a){return _0x51f924(_0x4465ec-_0x2fa4a2._0x330c1f,_0x2c7706,_0xe37734-0xcd,_0x44f64a-_0x2fa4a2._0x2828a6);}await mkdir(_0x4380a8,{'recursive':!![]});const _0x111ad6=await runNpmInstall(_0x4380a8,_0x489cb2[_0x57d5f0(-_0x10179f._0x27687a,-0xd9,-_0x10179f._0x460ecd,-0x15e)],_0x3f16a9);if(!_0x111ad6)return void 0x0;const _0x23d49e=_0x509832['join'](getLspBinDir(_0x489cb2[_0x35f98f(-_0x10179f._0x3789ad,0x122,_0x10179f._0xd1edd9,_0x10179f._0x2d35df)]),binaryNameForPlatform(_0x422527));function _0x57d5f0(_0x12e941,_0x597a88,_0x78f68d,_0x5f5c70){return _0x53717d(_0x5f5c70- -_0x22ea46._0x3ea077,_0x597a88-0x116,_0x78f68d-0xa6,_0x78f68d);}return await exists(_0x23d49e)?_0x23d49e:void 0x0;})()),installPromises[_0x53717d(0x44e,0x4a6,_0x5d49bf._0x4cb02b,0x309)](_0x28b6f2,_0x51dcf9));function _0x53717d(_0x2ab71c,_0x460073,_0x26456f,_0x37ecef){return _0x1a7bb7(_0x2ab71c-0x198,_0x2ab71c-0x39b,_0x26456f-_0x2f551e._0x3622a6,_0x37ecef);}try{return await _0x51dcf9;}catch{return void 0x0;}finally{installPromises[_0x51f924(_0x5d49bf._0x277ddb,_0x5d49bf._0x10308d,0x1bb,_0x5d49bf._0xc6883f)](_0x28b6f2);}}var TYPESCRIPT_EXTENSIONS=[_0x1a7bb7(0x16f,0x1aa,0x61,0xd9),_0x1a7bb7(0x2b8,0x1e2,0x334,0x179),_0x17d408(0x189,0x194,0x2a1,0x1d1),_0x1a7bb7(0x16d,0x1f8,0x17b,0x212),'.mjs','.cjs','.mts',_0x17d408(0xfa,0x251,0x269,0x19f)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x1a7bb7(0x1f7,0x92,0x1cb,0x51),_0x1a7bb7(0x2f6,0x23d,0x341,0x30e)],TYPESCRIPT_ROOT_MARKERS=[_0x17d408(0x188,0x22a,0x1f9,0x194),'bun.lockb','bun.lock',_0x17d408(0xfe,0x19a,0x35e,0x22f),'yarn.lock','tsconfig.json',_0x17d408(0x1be,-0xe3,0x137,0x81),_0x1a7bb7(0xd1,0x195,0xe2,0x11d)],BIOME_ROOT_MARKERS=[_0x1a7bb7(-0x47,0xe9,0x17b,0x176),_0x1a7bb7(0x226,0x21e,0x302,0x138),_0x1a7bb7(0x18e,0x108,-0x47,0x242),'bun.lockb',_0x1a7bb7(0x323,0x262,0x350,0x227),_0x17d408(0x2e8,0x28d,0x13f,0x22f),'yarn.lock',_0x1a7bb7(0xff,0x195,0x2b5,0x244)];async function exists2(_0x6d9b4){try{return await _0x254aec(_0x6d9b4),!![];}catch{return![];}}async function findUp(_0xb70bf5,_0x48219b){const _0x3aa851={_0x3f48aa:0x2be,_0x186bd0:0x1ac,_0x59f900:0x210,_0x4121c0:0x23e,_0x4b92e0:0x2d8,_0x52aabd:0x3e3,_0x5736c6:0x3de,_0x1a4232:0x4a5,_0x22f52a:0x39a},_0x4c1dd4={_0xe9afed:0x1a1,_0x1a047f:0x2f3};let _0x4a67b9=_0x29fae5[_0x26c2b9(0x528,0x31f,0x33a,0x47b)](_0xb70bf5);function _0x150847(_0x404df6,_0x34ea81,_0x2a7523,_0x4dc26c){return _0x1a7bb7(_0x404df6-0x1d9,_0x2a7523- -0x2b3,_0x2a7523-0x1dd,_0x34ea81);}function _0x26c2b9(_0x5d0d96,_0x530bff,_0x36f5bf,_0x4bc8c3){return _0x17d408(_0x5d0d96-0xc9,_0x530bff-_0x4c1dd4._0xe9afed,_0x530bff,_0x4bc8c3-_0x4c1dd4._0x1a047f);}const _0x135071=_0x29fae5[_0x150847(-_0x3aa851._0x3f48aa,-_0x3aa851._0x186bd0,-_0x3aa851._0x59f900,-_0x3aa851._0x4121c0)](_0x4a67b9);if(_0x135071)_0x4a67b9=_0x29fae5[_0x150847(-0x318,-_0x3aa851._0x4b92e0,-0x298,-0x396)](_0x4a67b9);while(!![]){for(const _0x4d0d84 of _0x48219b){if(await exists2(_0x29fae5['join'](_0x4a67b9,_0x4d0d84)))return _0x4a67b9;}const _0x5c4bf1=_0x29fae5[_0x26c2b9(_0x3aa851._0x52aabd,_0x3aa851._0x5736c6,_0x3aa851._0x1a4232,_0x3aa851._0x22f52a)](_0x4a67b9);if(_0x5c4bf1===_0x4a67b9)return void 0x0;_0x4a67b9=_0x5c4bf1;}}async function hasDenoRoot(_0xfd8a28){const _0x2d1a88={_0xbcabdf:0x98,_0x2d90e5:0x54a,_0x1d7f63:0x572,_0x5d14ac:0x41d},_0x292a76={_0x1e0b74:0xe4},_0x36c735={_0x425aed:0x181,_0x459269:0x486,_0x19879f:0x119};function _0x56d739(_0x4f3800,_0x24be4b,_0xca66d1,_0x1a217b){return _0x1a7bb7(_0x4f3800-_0x36c735._0x425aed,_0x4f3800-_0x36c735._0x459269,_0xca66d1-_0x36c735._0x19879f,_0x24be4b);}function _0x7b90ff(_0x2ab49b,_0xb48a59,_0x339cc6,_0x43fcbb){return _0x17d408(_0x2ab49b-0x157,_0xb48a59-_0x292a76._0x1e0b74,_0x43fcbb,_0x2ab49b- -0x365);}return await exists2(_0x29fae5[_0x56d739(0x530,0x608,0x642,0x520)](_0xfd8a28,_0x7b90ff(-0x4e,-0x154,-0x126,-_0x2d1a88._0xbcabdf)))||await exists2(_0x29fae5[_0x56d739(0x530,0x655,0x467,0x514)](_0xfd8a28,_0x56d739(0x557,_0x2d1a88._0x2d90e5,_0x2d1a88._0x1d7f63,_0x2d1a88._0x5d14ac)));}async function resolveTsserverPath(_0x364bed){const _0x55f582={_0x5e7e28:0x52,_0x2096d1:0x91,_0x47d818:0xd0,_0x20d96b:0x3d,_0x183302:0x2cc,_0x11a7e9:0x15f,_0x2b749d:0x2f,_0x3c3d9e:0x118,_0x59e737:0xcd,_0x4d270e:0x2,_0x4affe8:0x7a,_0x268d6e:0x33,_0x19b97a:0x46,_0x368600:0x14b,_0x428083:0xb4,_0x4250ea:0x2c8,_0x2f989d:0x196},_0x97bdb={_0x3f6302:0x186},_0x38c7d6={_0x24e116:0x1d9};function _0x183870(_0x584913,_0x2c37e5,_0x2f5de5,_0x2f799b){return _0x17d408(_0x584913-0x132,_0x2c37e5-_0x38c7d6._0x24e116,_0x2c37e5,_0x584913- -0x142);}let _0x538911=_0x29fae5['resolve'](_0x364bed);while(!![]){const _0xcbebbe=_0x29fae5[_0x760d32(_0x55f582._0x5e7e28,0x7f,_0x55f582._0x2096d1,-_0x55f582._0x47d818)](_0x538911,'node_modules','typescript',_0x183870(-0x6a,0xc,-0x88,-_0x55f582._0x20d96b),'tsserver.js');if(await exists2(_0xcbebbe))return _0xcbebbe;const _0x1f7eab=_0x29fae5[_0x760d32(-_0x55f582._0x183302,-0x99,-0x49,-_0x55f582._0x11a7e9)](_0x538911);if(_0x1f7eab===_0x538911)break;_0x538911=_0x1f7eab;}function _0x760d32(_0x82e774,_0x1f692a,_0x49939e,_0x461b84){return _0x1a7bb7(_0x82e774-_0x97bdb._0x3f6302,_0x461b84- -0x17a,_0x49939e-0x18e,_0x49939e);}const _0x5b93ba=getLspPackageDir(_0x183870(-0x2f,-0x196,-0xe1,-0x131)),_0x5947dd=await resolvePackageBinary({'packageName':_0x183870(-_0x55f582._0x2b749d,_0x55f582._0x3c3d9e,-_0x55f582._0x59e737,_0x55f582._0x4d270e),'binaryName':_0x183870(0x18,0xe4,_0x55f582._0x4affe8,_0x55f582._0x268d6e),'startDir':_0x364bed});if(!_0x5947dd)return void 0x0;const _0x3d8f80=_0x29fae5[_0x760d32(_0x55f582._0x19b97a,-_0x55f582._0x368600,-0x5c,-0xd0)](_0x5b93ba,'node_modules',_0x183870(-0x2f,0xc3,-0x69,0x1d),_0x760d32(-0x1f2,-0x27a,-_0x55f582._0x428083,-0x12e),_0x760d32(-_0x55f582._0x4250ea,-0x1f2,-0x1b6,-_0x55f582._0x2f989d));return await exists2(_0x3d8f80)?_0x3d8f80:void 0x0;}var TypeScriptServer={'id':'typescript','name':_0x17d408(0xea,0xef,0xb0,0x91),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x23347c){const _0x45ddab=await findUp(_0x23347c,TYPESCRIPT_ROOT_MARKERS);if(!_0x45ddab)return void 0x0;return await hasDenoRoot(_0x45ddab)?void 0x0:_0x45ddab;},async 'spawn'(_0x328c5a){const _0x318ecd={_0x539518:0x286,_0x553cb5:0x28a,_0x351ee3:0x292,_0x14c2a5:0x192,_0x8aac90:0x243,_0x49991e:0x152,_0x2f7fcb:0x145},_0xb54a5e={_0x440085:0x1f2},_0x17d6f6={_0xcc3b1b:0x121},_0x2b1730=await resolveTsserverPath(_0x328c5a);if(!_0x2b1730)return void 0x0;const _0x28e386=await resolvePackageBinary({'packageName':_0x391f2b(-_0x318ecd._0x539518,-_0x318ecd._0x553cb5,-_0x318ecd._0x351ee3,-0x152),'binaryName':_0x5d3e87(-0x248,-0x2ac,-0x202,-_0x318ecd._0x14c2a5),'startDir':_0x328c5a});if(!_0x28e386)return void 0x0;function _0x5d3e87(_0x533d45,_0x56e51e,_0x2ef8b6,_0x1f9510){return _0x1a7bb7(_0x533d45-_0x17d6f6._0xcc3b1b,_0x533d45- -0x200,_0x2ef8b6-0x65,_0x56e51e);}function _0x391f2b(_0x4ae10e,_0x217b4a,_0xb0ecc9,_0x39f936){return _0x17d408(_0x4ae10e-_0xb54a5e._0x440085,_0x217b4a-0x1f0,_0x217b4a,_0x4ae10e- -0x2ca);}return{'process':_0x1493b9(_0x28e386,[_0x5d3e87(-_0x318ecd._0x8aac90,-_0x318ecd._0x49991e,-_0x318ecd._0x2f7fcb,-0x168)],{'cwd':_0x328c5a,'stdio':'pipe'}),'initialization':{'tsserver':{'path':_0x2b1730}}};}},BiomeServer={'id':_0x1a7bb7(-0x74,0x7c,0x1c8,0xf4),'name':_0x1a7bb7(-0x76,-0x3b,-0xe0,-0x6d),'extensions':BIOME_EXTENSIONS,async 'root'(_0x4b4f5c){return findUp(_0x4b4f5c,BIOME_ROOT_MARKERS);},async 'spawn'(_0x1fa86f){const _0x2a4a29={_0xdab127:0x87,_0x93ee11:0x1c1,_0x27f5b0:0x1a8,_0x4e0009:0x10e,_0x11278f:0x51,_0x53c4e2:0x27},_0x241c1d={_0x499a72:0x171,_0x230cf3:0x2b3,_0x45e743:0x1f4},_0x435d7c={_0x468b5e:0xc5},_0x2b500d=await findPackageBinary('biome',_0x1fa86f)??await resolvePackageBinary({'packageName':_0x1a2d7a(-_0x2a4a29._0xdab127,-0x102,-_0x2a4a29._0x93ee11,-_0x2a4a29._0x27f5b0),'binaryName':'biome','startDir':_0x1fa86f});function _0x143c8a(_0x3ec474,_0x24183e,_0x36ec4,_0x442640){return _0x17d408(_0x3ec474-0x76,_0x24183e-0x15d,_0x24183e,_0x3ec474-_0x435d7c._0x468b5e);}if(!_0x2b500d)return void 0x0;function _0x1a2d7a(_0x245e5d,_0x356ffa,_0x1b5374,_0x288fb5){return _0x1a7bb7(_0x245e5d-_0x241c1d._0x499a72,_0x356ffa- -_0x241c1d._0x230cf3,_0x1b5374-_0x241c1d._0x45e743,_0x1b5374);}return{'process':_0x1493b9(_0x2b500d,['lsp-proxy',_0x143c8a(_0x2a4a29._0x4e0009,0xca,-_0x2a4a29._0x11278f,0x82)],{'cwd':_0x1fa86f,'stdio':_0x1a2d7a(-0x104,-0x170,-0x108,-_0x2a4a29._0x53c4e2)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x3a6b9c){const _0x5bf2f6={_0x39c3dc:0x9a,_0x322dd5:0x328,_0x1b85db:0x1b9,_0x272847:0x556},_0x3dc552={_0x2b4bb5:0x25c},_0x359291={_0x17e004:0x4b4};function _0x806e87(_0x437ede,_0x304c07,_0x1fe5bb,_0x198541){return _0x1a7bb7(_0x437ede-0x15d,_0x198541-_0x359291._0x17e004,_0x1fe5bb-0x82,_0x1fe5bb);}const _0x4f4347=_0x29fae5[_0x39b5e9(-_0x5bf2f6._0x39c3dc,-0x259,-_0x5bf2f6._0x322dd5,-_0x5bf2f6._0x1b85db)](_0x3a6b9c)['toLowerCase']();function _0x39b5e9(_0x54a98c,_0x42a902,_0x4f4576,_0x345efa){return _0x1a7bb7(_0x54a98c-0xb5,_0x345efa- -_0x3dc552._0x2b4bb5,_0x4f4576-0x1e4,_0x54a98c);}return BUILTIN_LSP_SERVERS[_0x806e87(0x6fd,0x7f0,_0x5bf2f6._0x272847,0x6a2)](_0x1284b9=>_0x1284b9[_0x39b5e9(-0x327,-0x2ba,-0x255,-0x270)][_0x806e87(0x6a1,0x6eb,0x597,0x61d)](_0x4f4347));}function stateKey(_0x560fc7,_0x2ee442){return _0x2ee442+':'+_0x560fc7['id'];}function diagnosticsKeyToPath(_0x5018e0){const _0x438844={_0x3a5e51:0x30f},_0x2c4a7f={_0xe5b5bc:0x1d6,_0x37bb3e:0xa9},_0x596c84={_0x234ab1:0x1bb,_0x10654f:0x12d,_0x4c94a2:0x208};function _0x2a4f6e(_0x3d1c8d,_0x41403e,_0xa95f6e,_0x10b498){return _0x17d408(_0x3d1c8d-_0x596c84._0x234ab1,_0x41403e-_0x596c84._0x10654f,_0xa95f6e,_0x41403e-_0x596c84._0x4c94a2);}if(!_0x5018e0[_0x32aa33(_0x438844._0x3a5e51,0x2d6,0x142,0x1d9)](_0x2a4f6e(0x49a,0x411,0x56d,0x4b1)))return _0x5018e0;function _0x32aa33(_0x4375ca,_0x5f46b8,_0x5a47d2,_0x10dd6b){return _0x1a7bb7(_0x4375ca-_0x2c4a7f._0xe5b5bc,_0x10dd6b-_0x2c4a7f._0x37bb3e,_0x5a47d2-0x88,_0x5a47d2);}return fileURLToPath(_0x5018e0);}function nextFileVersion(_0x3be6bb,_0x3725dc){const _0xfb73ac={_0x72fcb1:0x10a,_0x8b3296:0xa8,_0x4edec9:0x194,_0x37f73d:0x157,_0x10413a:0x185,_0x353e02:0x407},_0x52a9fe={_0x38c866:0x7c,_0x199c77:0x1c8},_0x304208=(_0x3be6bb[_0x41f779(-_0xfb73ac._0x72fcb1,-0x33,-_0xfb73ac._0x8b3296,-_0xfb73ac._0x4edec9)][_0x41f779(0x250,_0xfb73ac._0x37f73d,_0xfb73ac._0x10413a,0x79)](_0x3725dc)??0x1)+0x1;function _0x3c6b6b(_0x33263e,_0xed03b3,_0x421e41,_0x1180d7){return _0x17d408(_0x33263e-0x126,_0xed03b3-0xe,_0x421e41,_0x1180d7- -0x37a);}_0x3be6bb[_0x3c6b6b(-0x278,-0x2d1,-_0xfb73ac._0x353e02,-0x31a)]['set'](_0x3725dc,_0x304208);function _0x41f779(_0x482b52,_0x41f321,_0x18e6f0,_0x48494d){return _0x1a7bb7(_0x482b52-_0x52a9fe._0x38c866,_0x41f321- -0x7,_0x18e6f0-_0x52a9fe._0x199c77,_0x48494d);}return _0x304208;}async function collectClientResults(_0x47de87){const _0x4640b8={_0x3bff8d:0x3cd},_0x19777e={_0x47d349:0xf0,_0x368c2c:0x314},_0x5a27ae=await Promise[_0x52ef75(0x436,0x458,_0x4640b8._0x3bff8d,0x414)](_0x47de87);function _0x59ab14(_0x138a02,_0x107879,_0x516ed8,_0x2de3f9){return _0x17d408(_0x138a02-0x1d2,_0x107879-0x157,_0x107879,_0x2de3f9-0x202);}function _0x52ef75(_0x195399,_0x39ad2d,_0x591e4a,_0x246bfe){return _0x17d408(_0x195399-0x179,_0x39ad2d-_0x19777e._0x47d349,_0x591e4a,_0x195399-_0x19777e._0x368c2c);}return _0x5a27ae['flatMap'](_0x2571bf=>_0x2571bf[_0x52ef75(0x5c1,0x609,0x5da,0x543)]==='fulfilled'?_0x2571bf[_0x59ab14(0x3aa,0x485,0x531,0x4c4)]:[]);}function createLspService(_0x35dd28={}){const _0x37eb88={_0x5df75a:0x251,_0x516ee4:0x121,_0x598e3b:0x5c,_0x839b6e:0x1d9,_0x23fe7a:0x17d,_0x3df62f:0x2e9},_0x57e911={_0x4837f7:0x363,_0x2750dc:0x15c,_0xdf1de8:0x8d,_0x32450b:0x29d,_0x1b4614:0x1fa,_0x5e0f05:0x1f8,_0x539aaf:0x5c1,_0x3db497:0x544,_0x1ff0a9:0x5ae,_0x532536:0x547,_0x23726a:0x473},_0x28d7c6={_0x2f4e12:0x33b},_0x2644bb={_0x12537e:0x11e,_0x45c3ae:0x1ac},_0xf164ac={_0x51c4d3:0x56,_0x116bcd:0x1d8,_0x55ca5a:0x211},_0x185b3f={_0x507661:0x1e0},_0x41394b={_0xb0ad39:0x1f0,_0x54e0f0:0x1d8,_0x22f395:0x25b},_0x4354f8={_0xcd05cd:0x29a},_0x2b742c={_0x350f22:0x202},_0x471b65={_0x33a6b7:0x1dd},_0x1de7b5={_0x23cb4e:0x11b,_0x509407:0xdb,_0x16d4e7:0x251},_0x19c301={_0x35aaa2:0x668},_0x126069={_0x2ae807:0x1cf,_0x11735d:0x60e},_0x58ed38={_0x3caafe:0x148,_0x54bc56:0x35,_0x47dbe5:0x164,_0x507090:0x1e6,_0x4eda19:0x18d,_0x4915a2:0xca},_0x415b32={_0x105241:0x46d,_0x4d31dd:0x438},_0x2b1050={_0x46425b:0x19a,_0x3cbcc3:0x1c8},_0x120797={_0x4837ee:0x387,_0x1ea6a5:0x266},_0xbea72d={_0x3fc5ae:0x4a,_0x10c6fc:0x34a},_0xd6b3a2={_0x2f734f:0x513,_0x167fb1:0x489,_0x114c42:0x4d5},_0x1f06d7={_0x3f729d:0x1bc,_0xba9727:0x15d},_0x16f4bf={_0x549f0b:0x37b,_0xafc56b:0x329,_0xd8eb66:0x1f8},_0x2dc761={_0x5e850a:0x14,_0x54426a:0xc2,_0x4f29e6:0x9f},_0x3e5582={_0x34c079:0x1b1},_0x47f034={_0x3413ca:0x3fc,_0x20f4b9:0x4c5,_0x18b92e:0x491},_0x2263f0={_0x120d47:0x14e,_0x292acc:0xe0,_0x4b3691:0x96,_0x334ed6:0xa1,_0x4f3d1d:0x100,_0x1bf065:0x1ef,_0x22ea47:0x362,_0x5a1589:0xf7,_0x2952c8:0x112,_0x565ae7:0x397,_0x22da52:0x357,_0x2ebdda:0x359,_0x5a20f6:0xb6,_0x4a41d0:0x1fe,_0x1b4984:0x2e1,_0xbde7af:0x366,_0x4ef02e:0x48b,_0x52fdca:0x215,_0x4bee00:0x276},_0x244d60={_0x4cd435:0x3a6,_0x1f9cab:0x97,_0x32f205:0x62,_0x803888:0xda,_0x209dc3:0x1e4,_0x68bae2:0x3,_0xcb35de:0x137,_0x28d5b9:0xd7,_0x3dbff5:0xf8,_0x35ae51:0x473},_0x5195b2={_0x1b01dd:0x74,_0x3a2197:0x18a,_0x5c4d73:0x1a4,_0x297e95:0x1a4,_0x1e0cb3:0x17a,_0x316340:0x3f9,_0x2ecb0e:0x353,_0x4a71c6:0x2cb,_0x1bdcf5:0x2c3,_0x35fad8:0x301,_0x54d7b9:0x386,_0x5b9cfd:0x380,_0x1a4213:0x439,_0x51ee16:0x282,_0x2333bb:0x2bd,_0x5ba572:0x1c4,_0x3eefb1:0x177,_0x478331:0x202,_0x295b5d:0x31c,_0x1d8716:0x11b,_0x265a8d:0x2e1,_0x14fa1:0x1f4},_0xacb43d={_0x5f07b6:0x56},_0x57be56={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x381456=()=>_0x35dd28[_0x4a8246(0x428,0x5ce,0x4d8,0x40d)]!==![];async function _0x38cb93(_0x2e08a1,_0x39427c){const _0x185274={_0x38bfe7:0x122,_0x5a7d31:0x19e,_0x4697f7:0x14d,_0x559747:0x63,_0x16693e:0x125,_0x5e2820:0x188,_0x83c5ac:0x291,_0x4f1dc9:0x4d5,_0x176eb9:0x5a1},_0x1e21e1={_0x3e1642:0x3f0},_0x47e672={_0x20c30a:0x215},_0x4e611e=stateKey(_0x2e08a1,_0x39427c);function _0x50a6ad(_0x500e5e,_0x1f8ebd,_0x3d95be,_0x3d2d86){return _0x4a8246(_0x500e5e-0x149,_0x1f8ebd-0x1c4,_0x3d95be- -_0x47e672._0x20c30a,_0x3d2d86);}const _0x3c2338=_0x57be56[_0x50a6ad(_0x5195b2._0x1b01dd,0x2b0,_0x5195b2._0x3a2197,_0x5195b2._0x5c4d73)][_0x50a6ad(0x18f,_0x5195b2._0x297e95,0x109,_0x5195b2._0x1e0cb3)](_0x1079d4=>_0x1079d4[_0x19756c(0x2f9,0x472,0x30d,0x3aa)]===_0x2e08a1['id']&&_0x1079d4[_0x50a6ad(0x28d,0x3da,0x39b,0x390)]===_0x39427c);if(_0x3c2338)return _0x3c2338;if(_0x57be56[_0x50a6ad(_0x5195b2._0x316340,_0x5195b2._0x2ecb0e,_0x5195b2._0x4a71c6,_0x5195b2._0x1bdcf5)][_0x19756c(_0x5195b2._0x35fad8,_0x5195b2._0x54d7b9,_0x5195b2._0x5b9cfd,_0x5195b2._0x1a4213)](_0x4e611e))return void 0x0;const _0xaedd5a=_0x57be56[_0x19756c(_0x5195b2._0x51ee16,0x3e9,_0x5195b2._0x2333bb,_0x5195b2._0x5ba572)][_0x50a6ad(0x221,0x163,0x29f,_0x5195b2._0x3eefb1)](_0x4e611e);if(_0xaedd5a)return _0xaedd5a;const _0x3602ef=((async()=>{const _0x487e42={_0x2e37e6:0x92,_0x3d4f54:0x5e};function _0x3ba708(_0x592e06,_0x5ca162,_0x1f5a5d,_0x429393){return _0x50a6ad(_0x592e06-_0x487e42._0x2e37e6,_0x5ca162-_0x487e42._0x3d4f54,_0x429393-0x187,_0x5ca162);}function _0x5bfa44(_0x4503d9,_0x47336d,_0x2237b1,_0x3a3741){return _0x50a6ad(_0x4503d9-0xe4,_0x47336d-0x14,_0x2237b1- -_0x1e21e1._0x3e1642,_0x47336d);}try{const _0x1bef98=await _0x2e08a1[_0x5bfa44(-0x8a,-_0x185274._0x38bfe7,-_0x185274._0x5a7d31,-0x2a2)](_0x39427c);if(!_0x1bef98)return _0x57be56[_0x5bfa44(-_0x185274._0x4697f7,-_0x185274._0x559747,-_0x185274._0x16693e,-0x79)]['add'](_0x4e611e),void 0x0;const _0x2b8c96=await createLspClient({'server':_0x2e08a1,'root':_0x39427c,'handle':_0x1bef98}),_0x55189f=_0x57be56['clients']['find'](_0x2557dd=>_0x2557dd['serverId']===_0x2e08a1['id']&&_0x2557dd[_0x5bfa44(0x77,-0x2c,-0x55,-0xf8)]===_0x39427c);if(_0x55189f)return await _0x2b8c96['shutdown'](),_0x55189f;return _0x57be56[_0x5bfa44(-0x279,-_0x185274._0x5e2820,-0x266,-_0x185274._0x83c5ac)][_0x3ba708(0x6bd,0x5a9,0x603,0x54e)](_0x2b8c96),_0x2b8c96;}catch{return _0x57be56['broken'][_0x3ba708(_0x185274._0x4f1dc9,_0x185274._0x176eb9,0x532,0x44b)](_0x4e611e),void 0x0;}finally{_0x57be56['spawning']['delete'](_0x4e611e);}})());_0x57be56[_0x50a6ad(0x1ac,_0x5195b2._0x478331,0x2ae,_0x5195b2._0x295b5d)][_0x50a6ad(_0x5195b2._0x1d8716,_0x5195b2._0x265a8d,_0x5195b2._0x14fa1,0x28f)](_0x4e611e,_0x3602ef);function _0x19756c(_0x384cb2,_0x5d2ac6,_0x18bd6a,_0xa729b2){return _0x4a8246(_0x384cb2-_0xacb43d._0x5f07b6,_0x5d2ac6-0x6c,_0x384cb2- -0x241,_0x18bd6a);}return _0x3602ef;}async function _0x56f6a3(_0x527343,_0x3293e2){const _0x2e105f={_0x310b85:0x10e,_0x21e873:0x13a},_0x59b3e2={_0x3f94d7:0x1f4,_0x3a1a27:0x5d9};if(!_0x381456())return[];function _0x20387a(_0x2eefc3,_0x58aa0f,_0x4bba37,_0x47202f){return _0x4a8246(_0x2eefc3-_0x59b3e2._0x3f94d7,_0x58aa0f-0xc2,_0x2eefc3- -_0x59b3e2._0x3a1a27,_0x47202f);}const _0x343879=[];for(const _0x36c947 of getServersForFile(_0x527343)){const _0x1acec2=await _0x36c947['root'](_0x527343);if(!_0x1acec2)continue;const _0xc57b4d=stateKey(_0x36c947,_0x1acec2);if(_0x57be56[_0xfb5ebf(0x22c,0x252,0x34f,_0x244d60._0x4cd435)][_0x20387a(-_0x244d60._0x1f9cab,0x41,_0x244d60._0x32f205,-_0x244d60._0x803888)](_0xc57b4d))continue;const _0x4a5974=_0x57be56[_0xfb5ebf(0x2cd,_0x244d60._0x209dc3,0x314,0x265)]['find'](_0x4a2499=>_0x4a2499['serverId']===_0x36c947['id']&&_0x4a2499[_0xfb5ebf(0x5dc,0x59b,0x43e,0x476)]===_0x1acec2);if(_0x4a5974){_0x343879[_0x20387a(_0x244d60._0x68bae2,_0x244d60._0xcb35de,_0x244d60._0x28d5b9,-_0x244d60._0x3dbff5)](_0x4a5974);continue;}if(!_0x3293e2)continue;const _0x93acf7=await _0x38cb93(_0x36c947,_0x1acec2);if(_0x93acf7)_0x343879[_0xfb5ebf(0x449,0x363,_0x244d60._0x35ae51,0x4a2)](_0x93acf7);}function _0xfb5ebf(_0x1fe2e2,_0x40377d,_0x2d72ed,_0x499fa6){return _0x4a8246(_0x1fe2e2-0xca,_0x40377d-_0x2e105f._0x310b85,_0x499fa6- -_0x2e105f._0x21e873,_0x40377d);}return _0x343879;}async function _0x227ec6(_0x4d6638,_0x137445=![]){const _0x599a17={_0x51c2a8:0x44,_0x3384df:0xc5},_0x1dfe32={_0x4e7a4a:0x1af,_0x118afa:0x64d},_0x1e9f64={_0x182a19:0x7e},_0x251e63={_0x10c340:0xce,_0x2f9308:0x7};function _0x4ac699(_0x3cbe5f,_0xdfa433,_0x490721,_0x4ecb00){return _0x4a8246(_0x3cbe5f-0xc9,_0xdfa433-_0x251e63._0x10c340,_0x4ecb00-_0x251e63._0x2f9308,_0xdfa433);}const _0x5bf549=await _0x56f6a3(_0x4d6638,!![]);function _0x5700a3(_0x21b997,_0x47a86c,_0x397736,_0x330cf1){return _0x4a8246(_0x21b997-_0x1e9f64._0x182a19,_0x47a86c-0xb9,_0x330cf1- -0x31e,_0x397736);}await Promise[_0x5700a3(0x102,0x1c9,0x209,0x13e)](_0x5bf549[_0x4ac699(0x348,_0x47f034._0x3413ca,_0x47f034._0x20f4b9,_0x47f034._0x18b92e)](async _0x3982c4=>{function _0x4e64e2(_0x337ec9,_0xd53ee8,_0x353452,_0x56d254){return _0x4ac699(_0x337ec9-0x5e,_0x56d254,_0x353452-_0x1dfe32._0x4e7a4a,_0x353452- -_0x1dfe32._0x118afa);}!_0x57be56['openFiles'][_0x4e64e2(-_0x2263f0._0x120d47,-0xa7,-0x104,-_0x2263f0._0x292acc)](_0x3982c4['serverId']+':'+_0x3982c4[_0x4e64e2(0x59,-0x22,-_0x2263f0._0x4b3691,_0x2263f0._0x334ed6)]+':'+_0x4d6638)&&(await _0x3982c4[_0x4e64e2(-0x234,-_0x2263f0._0x4f3d1d,-_0x2263f0._0x1bf065,-0x342)][_0x4e64e2(-0x3d6,-0x33c,-0x26c,-_0x2263f0._0x22ea47)]({'path':_0x4d6638}),_0x57be56[_0x411689(-0xb3,0x8e,0xc7,_0x2263f0._0x5a1589)]['add'](_0x3982c4[_0x4e64e2(-0x183,0x20,-0x10c,-_0x2263f0._0x2952c8)]+':'+_0x3982c4[_0x411689(0x212,_0x2263f0._0x565ae7,_0x2263f0._0x22da52,0x2dc)]+':'+_0x4d6638));function _0x411689(_0x7aff53,_0x9be5b2,_0x29ccf9,_0x666abc){return _0x5700a3(_0x7aff53-0x1e5,_0x9be5b2-_0x599a17._0x51c2a8,_0x9be5b2,_0x29ccf9-_0x599a17._0x3384df);}await _0x3982c4[_0x411689(_0x2263f0._0x2ebdda,_0x2263f0._0x5a20f6,_0x2263f0._0x4a41d0,_0x2263f0._0x1b4984)][_0x411689(0x30c,0x3c8,_0x2263f0._0xbde7af,_0x2263f0._0x4ef02e)]({'path':_0x4d6638,'version':nextFileVersion(_0x57be56,_0x4d6638)});if(_0x137445)await _0x3982c4[_0x4e64e2(-_0x2263f0._0x52fdca,-0x313,-_0x2263f0._0x4bee00,-0x30d)]({'path':_0x4d6638});}));}function _0x4a8246(_0x363991,_0x2e25f8,_0x3c9bf4,_0x14f44e){return _0x17d408(_0x363991-_0x3e5582._0x34c079,_0x2e25f8-0xeb,_0x14f44e,_0x3c9bf4-0x2ca);}async function _0x41696b(_0xddc2b7){const _0x2553da={_0x52e5a8:0xcd,_0x1f568d:0x46d};await _0x227ec6(_0xddc2b7[_0x3dee35(-_0x2dc761._0x5e850a,_0x2dc761._0x54426a,0xb5,-_0x2dc761._0x4f29e6)],![]);function _0x3dee35(_0x88aa4f,_0x4beec1,_0x1e9355,_0x4820ad){return _0x4a8246(_0x88aa4f-_0x2553da._0x52e5a8,_0x4beec1-0x18a,_0x4beec1- -_0x2553da._0x1f568d,_0x4820ad);}return _0x56f6a3(_0xddc2b7['file'],![]);}async function _0x599b3a(_0x16d1d1){const _0x1ec969={_0x5b66cd:0xae,_0x563866:0xe,_0x56091f:0x21e};function _0x13a318(_0x214a89,_0x3f622b,_0x1c55e9,_0x4183dd){return _0x4a8246(_0x214a89-0x122,_0x3f622b-0xc7,_0x3f622b- -0x161,_0x4183dd);}function _0x3d78db(_0x22f20a,_0x1816e5,_0xa479b7,_0x100849){return _0x4a8246(_0x22f20a-_0x1ec969._0x5b66cd,_0x1816e5-_0x1ec969._0x563866,_0xa479b7- -_0x1ec969._0x56091f,_0x100849);}const _0xade62a=await _0x41696b(_0x16d1d1);return collectClientResults(_0xade62a[_0x13a318(_0x16f4bf._0x549f0b,_0x16f4bf._0xafc56b,_0x16f4bf._0xd8eb66,0x39a)](_0x5ef6c1=>_0x5ef6c1[_0x13a318(0x259,0x2a0,0x2a5,0x1ec)]['prepareCallHierarchy'](_0x16d1d1)));}return{'isEnabled':_0x381456,async 'hasClients'(_0x5c229b){function _0x5e17b1(_0x2d31e5,_0x2c51f0,_0x56da82,_0x1aedea){return _0x4a8246(_0x2d31e5-0x19d,_0x2c51f0-0x1ef,_0x2c51f0-0x12e,_0x56da82);}function _0x46f5dd(_0xf4b88,_0x49005b,_0x498024,_0x2ba1d9){return _0x4a8246(_0xf4b88-0x1ad,_0x49005b-_0x1f06d7._0x3f729d,_0x498024-_0x1f06d7._0xba9727,_0xf4b88);}return(await _0x56f6a3(_0x5c229b,![]))[_0x46f5dd(_0xd6b3a2._0x2f734f,0x576,0x532,0x3d6)]>0x0||getServersForFile(_0x5c229b)[_0x46f5dd(_0xd6b3a2._0x167fb1,0x4c6,0x532,_0xd6b3a2._0x114c42)]>0x0;},'touchFile':_0x227ec6,async 'diagnostics'(){const _0x14ffe5={};for(const _0x112ded of _0x57be56['clients']){for(const [_0x81545,_0x58586e]of _0x112ded['diagnostics']){_0x14ffe5[diagnosticsKeyToPath(_0x81545)]=_0x58586e;}}return _0x14ffe5;},async 'diagnosticsForFile'(_0x4dde49){function _0x626266(_0x2bb771,_0x215962,_0x4366fc,_0x3e31a5){return _0x4a8246(_0x2bb771-_0xbea72d._0x3fc5ae,_0x215962-0x198,_0x3e31a5- -_0xbea72d._0x10c6fc,_0x4366fc);}await _0x227ec6(_0x4dde49,!![]);const _0x4fb927=[];for(const _0x3b42cf of await _0x56f6a3(_0x4dde49,![])){for(const [_0x2a1caa,_0x25d818]of _0x3b42cf[_0x626266(_0x120797._0x4837ee,_0x120797._0x1ea6a5,0xe3,0x259)]){if(diagnosticsKeyToPath(_0x2a1caa)===_0x4dde49)_0x4fb927['push'](..._0x25d818);}}return _0x4fb927;},async 'definition'(_0x2332a4){const _0x490901={_0x308186:0x31};function _0x386f23(_0x48ddad,_0x228fa6,_0x560c25,_0xb17857){return _0x4a8246(_0x48ddad-0xdb,_0x228fa6-0x1e,_0x560c25- -0x415,_0x48ddad);}function _0x3d6651(_0x3386b9,_0x17e6b6,_0x173ac0,_0x28565d){return _0x4a8246(_0x3386b9-0x71,_0x17e6b6-_0x490901._0x308186,_0x17e6b6- -0x126,_0x3386b9);}return collectClientResults((await _0x41696b(_0x2332a4))[_0x386f23(0x8d,_0x2b1050._0x46425b,0x75,_0x2b1050._0x3cbcc3)](_0x2a6213=>_0x2a6213[_0x386f23(-0x73,-0x4f,-0x14,0x80)]['definition'](_0x2332a4)));},async 'references'(_0xaf3d64){const _0xcac4b3={_0x1b62a1:0x14b,_0x2eb721:0x1f1};function _0x13de7a(_0x395780,_0x34c3f5,_0x3a5067,_0x26d6d4){return _0x4a8246(_0x395780-_0xcac4b3._0x1b62a1,_0x34c3f5-_0xcac4b3._0x2eb721,_0x3a5067-0xc1,_0x26d6d4);}return collectClientResults((await _0x41696b(_0xaf3d64))[_0x13de7a(_0x415b32._0x105241,0x5bf,0x54b,_0x415b32._0x4d31dd)](_0x3ccc41=>_0x3ccc41['request']['references'](_0xaf3d64)));},async 'hover'(_0x19dd43){const _0x287798={_0x50a6d2:0x1bf},_0x48ecb5={_0x2e2e33:0xc9};function _0x199ca2(_0x2d77b4,_0x4c5bcf,_0xf4a1d8,_0x4d6f26){return _0x4a8246(_0x2d77b4-0x15e,_0x4c5bcf-0xd1,_0x4c5bcf-_0x48ecb5._0x2e2e33,_0xf4a1d8);}function _0x531112(_0x41bfc5,_0x294a0d,_0x5a63f6,_0x1455da){return _0x4a8246(_0x41bfc5-_0x287798._0x50a6d2,_0x294a0d-0x1c0,_0x41bfc5- -0x2a4,_0x5a63f6);}const _0x77ad30=await Promise[_0x531112(_0x58ed38._0x3caafe,_0x58ed38._0x54bc56,_0x58ed38._0x47dbe5,0x77)]((await _0x41696b(_0x19dd43))[_0x531112(_0x58ed38._0x507090,_0x58ed38._0x4eda19,0x1e0,_0x58ed38._0x4915a2)](_0x1fadf0=>_0x1fadf0['request'][_0x199ca2(0x2bd,0x426,0x3de,0x3a6)](_0x19dd43)));return _0x77ad30['flatMap'](_0x425818=>_0x425818[_0x199ca2(0x69e,0x640,0x591,0x6c7)]===_0x531112(0x16a,0x1a6,0xe,0x24e)&&_0x425818[_0x531112(0x2e8,0x2f7,0x30e,0x2f6)]?[_0x425818['value']]:[]);},async 'documentSymbol'(_0x2a62ac){const _0x28fb72={_0x3a9e83:0x10e};function _0x5e201b(_0x541ff9,_0x805664,_0x80585a,_0x1bcc80){return _0x4a8246(_0x541ff9-0x15,_0x805664-0xbf,_0x805664-_0x28fb72._0x3a9e83,_0x1bcc80);}await _0x227ec6(_0x2a62ac,![]);function _0x463ec8(_0x292b62,_0x59e444,_0x3a8332,_0x58d91f){return _0x4a8246(_0x292b62-_0x126069._0x2ae807,_0x59e444-0x1d4,_0x292b62- -_0x126069._0x11735d,_0x3a8332);}return collectClientResults((await _0x56f6a3(_0x2a62ac,![]))[_0x5e201b(0x686,0x598,_0x19c301._0x35aaa2,0x497)](_0x4e755e=>_0x4e755e['request'][_0x5e201b(0x46c,0x556,0x5bf,0x3f9)](_0x2a62ac)));},async 'workspaceSymbol'(_0x548839){function _0x204194(_0x500694,_0x22e2e2,_0x394aae,_0x5637d7){return _0x4a8246(_0x500694-_0x1de7b5._0x23cb4e,_0x22e2e2-_0x1de7b5._0x509407,_0x500694- -_0x1de7b5._0x16d4e7,_0x22e2e2);}function _0x136f8c(_0x172a51,_0x52e062,_0x598e42,_0x4d2a5e){return _0x4a8246(_0x172a51-0x124,_0x52e062-0x11a,_0x172a51- -_0x471b65._0x33a6b7,_0x598e42);}return collectClientResults(_0x57be56['clients'][_0x204194(0x239,_0x2b742c._0x350f22,0x28d,0x19e)](_0x555fac=>_0x555fac[_0x204194(0x1b0,0x2bc,0x27c,0x44)][_0x204194(0x33f,0x355,0x489,0x489)](_0x548839)));},async 'implementation'(_0x1f587b){const _0x3c8a9d={_0x7d2525:0xb7,_0x35da63:0x237};function _0x389b0d(_0x2df054,_0x38b7f3,_0x287f9e,_0x4083ac){return _0x4a8246(_0x2df054-0xab,_0x38b7f3-_0x3c8a9d._0x7d2525,_0x2df054- -_0x3c8a9d._0x35da63,_0x287f9e);}function _0x44a239(_0x423616,_0x2720c4,_0x710ee2,_0x11ce14){return _0x4a8246(_0x423616-0xc2,_0x2720c4-0xd7,_0x423616- -_0x4354f8._0xcd05cd,_0x2720c4);}return collectClientResults((await _0x41696b(_0x1f587b))[_0x44a239(_0x41394b._0xb0ad39,0x27f,_0x41394b._0x54e0f0,_0x41394b._0x22f395)](_0xd8c178=>_0xd8c178[_0x44a239(0x167,0x231,0xfb,0x1e2)][_0x44a239(0x34b,0x2a8,0x291,0x462)](_0x1f587b)));},async 'prepareCallHierarchy'(_0x479772){return _0x599b3a(_0x479772);},async 'incomingCalls'(_0x29552c){const _0x190de3={_0x40c74e:0x105},_0x4a9e07=await _0x599b3a(_0x29552c);function _0x215a2e(_0x4d41a3,_0x5dd37d,_0x3cf5ee,_0x5a5879){return _0x4a8246(_0x4d41a3-0xe1,_0x5dd37d-_0x185b3f._0x507661,_0x3cf5ee- -0x46d,_0x4d41a3);}const _0x3b4e0e=await _0x41696b(_0x29552c);function _0x23ad5a(_0x5545cf,_0x25c2ee,_0x511bd0,_0x3a3798){return _0x4a8246(_0x5545cf-0x110,_0x25c2ee-_0x190de3._0x40c74e,_0x5545cf- -0x351,_0x511bd0);}return collectClientResults(_0x3b4e0e[_0x23ad5a(0x1fb,0x30e,0x2db,0x11b)](_0x433882=>_0x4a9e07[_0x23ad5a(0x139,0x24e,0x40,0x3d)](_0x5c1335=>_0x433882['request'][_0x23ad5a(0x1f2,0x242,0x225,0x254)](_0x5c1335))));},async 'outgoingCalls'(_0x449928){const _0x3e75c7=await _0x599b3a(_0x449928),_0x5094af=await _0x41696b(_0x449928);function _0x1fcedb(_0x13e8df,_0xdb7377,_0x44b837,_0x5a5b78){return _0x4a8246(_0x13e8df-_0xf164ac._0x51c4d3,_0xdb7377-_0xf164ac._0x116bcd,_0x13e8df- -_0xf164ac._0x55ca5a,_0x5a5b78);}function _0x5d96f8(_0x140ffd,_0x1708cc,_0x467c6b,_0xe76a63){return _0x4a8246(_0x140ffd-_0x2644bb._0x12537e,_0x1708cc-_0x2644bb._0x45c3ae,_0xe76a63- -0x4f4,_0x467c6b);}return collectClientResults(_0x5094af[_0x1fcedb(_0x28d7c6._0x2f4e12,0x1ec,0x1e3,0x416)](_0x5c3baf=>_0x3e75c7[_0x1fcedb(0x279,0x31a,0x24c,0x3d8)](_0x144377=>_0x5c3baf[_0x1fcedb(0x1f0,0x100,0xcf,0x32d)]['outgoingCalls'](_0x144377))));},async 'shutdown'(){const _0x1f22c0={_0x56f5d5:0x3e},_0x54c042={_0x47e751:0x12b};if(_0x57be56[_0x3192de(0x2cb,0x29c,_0x57e911._0x4837f7,0x2f6)])return;_0x57be56[_0x33bee9(0xce,0x7c,-0x12,0x1c4)]=!![],await Promise['allSettled'](_0x57be56[_0x33bee9(_0x57e911._0x2750dc,_0x57e911._0xdf1de8,0x1d0,0xe7)]['map'](_0x5bbedd=>_0x5bbedd[_0x33bee9(0x394,0x41f,0x294,0x3a0)]())),_0x57be56['clients']=[];function _0x33bee9(_0xd3671d,_0x5ec902,_0x2ca704,_0x18be4d){return _0x4a8246(_0xd3671d-_0x54c042._0x47e751,_0x5ec902-0x42,_0xd3671d- -0x243,_0x18be4d);}_0x57be56[_0x3192de(0x525,0x487,0x402,0x4a8)]['clear'](),_0x57be56[_0x33bee9(_0x57e911._0x32450b,_0x57e911._0x1b4614,0x21a,_0x57e911._0x5e0f05)]['clear'](),_0x57be56['fileVersions'][_0x3192de(0x467,0x4f1,_0x57e911._0x539aaf,_0x57e911._0x3db497)]();function _0x3192de(_0x1e3bcd,_0x3a2283,_0x25f7be,_0x41d0ef){return _0x4a8246(_0x1e3bcd-_0x1f22c0._0x56f5d5,_0x3a2283-0x7a,_0x41d0ef- -0x1b,_0x1e3bcd);}_0x57be56['openFiles'][_0x3192de(_0x57e911._0x1ff0a9,_0x57e911._0x532536,_0x57e911._0x23726a,0x544)]();},'status'(){const _0x22e9c8={_0x25c21c:0x4a};function _0x495831(_0x2fadb2,_0xb46e90,_0x515fb8,_0x2d8246){return _0x4a8246(_0x2fadb2-0x3e,_0xb46e90-0x172,_0x515fb8- -0x258,_0x2fadb2);}function _0xa214f2(_0x1dcf4d,_0x56541b,_0x2282e8,_0x49a987){return _0x4a8246(_0x1dcf4d-_0x22e9c8._0x25c21c,_0x56541b-0xf,_0x1dcf4d- -0x16a,_0x56541b);}return{'connectedClients':_0x57be56[_0x495831(-0x14,_0x37eb88._0x5df75a,0x147,_0x37eb88._0x516ee4)][_0x495831(_0x37eb88._0x598e3b,_0x37eb88._0x839b6e,_0x37eb88._0x23fe7a,_0x37eb88._0x3df62f)]};}};}function createQuestionId(){const _0x17fc43={_0x29f633:0xad,_0x1e1c71:0xbc,_0x34fa75:0x7f,_0x5ea879:0x346,_0x56da03:0x26c,_0x577ecc:0x391},_0xbf0d37={_0x4be1b2:0x1d2,_0x212915:0x155},_0x3b6f0c={_0x5855d4:0x1d6,_0x106b78:0x303,_0x3cffba:0x43};function _0x3df9af(_0x2350f0,_0x45f20b,_0x1ec41d,_0x2e7884){return _0x1a7bb7(_0x2350f0-_0x3b6f0c._0x5855d4,_0x1ec41d- -_0x3b6f0c._0x106b78,_0x1ec41d-_0x3b6f0c._0x3cffba,_0x2350f0);}function _0x3674cd(_0x1feacf,_0x46fc07,_0x31b9a2,_0x2945d6){return _0x1a7bb7(_0x1feacf-_0xbf0d37._0x4be1b2,_0x2945d6-_0xbf0d37._0x212915,_0x31b9a2-0x18c,_0x1feacf);}return _0x3df9af(_0x17fc43._0x29f633,-_0x17fc43._0x1e1c71,-0x87,-0x2a)+Date['now']()+'-'+Math[_0x3df9af(-0xed,-0xf7,-_0x17fc43._0x34fa75,0x2f)]()[_0x3674cd(_0x17fc43._0x5ea879,_0x17fc43._0x56da03,0x4f0,_0x17fc43._0x577ecc)](0x24)['slice'](0x2,0x9);}function validateInput(_0x53bb1a){const _0xb1ed60={_0x4e008f:0x5bf,_0x1242c5:0x20d,_0x1eda20:0xac,_0x569958:0x93,_0x5e390a:0x43a,_0x5bf867:0x430,_0x8b83c5:0x83,_0x430e5b:0x32d,_0xd8816c:0xc3,_0x415f2b:0x4c5,_0x29d99d:0x3d2,_0x3255ca:0x43e,_0x37ad29:0x5e,_0x312961:0xf1,_0x591a28:0x48,_0x1adfad:0xed,_0x1d819b:0x45,_0x37861f:0xd6,_0x4352c5:0x3a,_0x2d0d30:0x16a,_0x40ceca:0x4d,_0x5d88a9:0xf1,_0x125c84:0x5b,_0x2827c3:0x71,_0x42808b:0xee,_0xfd40ca:0x513,_0x37dbde:0x605,_0xba2afe:0x100,_0x23ff45:0x3d5,_0x565751:0x394,_0x3fec87:0x2b4,_0x1017a9:0x37d,_0x5da3ad:0x4dd,_0x5f263d:0x2fc,_0x2a4094:0x3aa,_0x20668e:0x51c,_0x2c7ca9:0x45a,_0x3cc25b:0x3b6,_0xf9b960:0x3d1,_0x16621b:0x2f7,_0x5e6654:0x12f,_0x241b5c:0xcc,_0x30330b:0xcd,_0x553a10:0x171,_0x1455ec:0x2b3,_0x5c69f0:0x411,_0xc219cb:0x2dc,_0x327962:0x14f,_0x3f39fd:0x24,_0x17bbbd:0x241,_0x34c4c6:0x39a,_0x4011af:0x15e,_0x5bc52d:0x44,_0xd89783:0x2a5,_0x4cacd6:0x250,_0x52c65f:0x4d0},_0x54dcc7={_0x17cc6b:0x29f},_0xd717b6={_0x2f6fb5:0x63,_0x130978:0x53,_0x56f501:0xa};function _0x1e5a82(_0x46f7d4,_0x571ea8,_0x42f25b,_0x3a3917){return _0x1a7bb7(_0x46f7d4-_0xd717b6._0x2f6fb5,_0x46f7d4- -_0xd717b6._0x130978,_0x42f25b-_0xd717b6._0x56f501,_0x42f25b);}function _0x428cf0(_0x2f98d7,_0x13571a,_0x480735,_0x3aa83c){return _0x17d408(_0x2f98d7-0xce,_0x13571a-0x46,_0x480735,_0x3aa83c-_0x54dcc7._0x17cc6b);}if(!Array['isArray'](_0x53bb1a[_0x428cf0(0x66a,_0xb1ed60._0x4e008f,0x48a,0x58b)])||_0x53bb1a[_0x1e5a82(_0xb1ed60._0x1242c5,0x108,_0xb1ed60._0x1eda20,_0xb1ed60._0x569958)][_0x428cf0(0x4ac,0x4a1,_0xb1ed60._0x5e390a,0x3aa)]<0x1||_0x53bb1a[_0x428cf0(_0xb1ed60._0x5bf867,0x632,0x5d1,0x58b)][_0x1e5a82(0x2c,-0x15,_0xb1ed60._0x8b83c5,-0x54)]>0xa)throw new ToolExecutionError(_0x428cf0(0x3ef,0x493,_0xb1ed60._0x430e5b,0x454),{'error':_0x1e5a82(_0xb1ed60._0xd8816c,-0x59,0xc8,0x147)});for(let _0x5c6dc6=0x0;_0x5c6dc6<_0x53bb1a[_0x428cf0(0x6dd,0x6ba,_0xb1ed60._0x415f2b,0x58b)][_0x428cf0(_0xb1ed60._0x29d99d,0x522,0x44b,0x3aa)];_0x5c6dc6+=0x1){const _0x48e8a5=_0x53bb1a['questions'][_0x5c6dc6];if(!_0x48e8a5[_0x428cf0(0x1f1,0x3da,_0xb1ed60._0x3255ca,0x34a)]||typeof _0x48e8a5[_0x1e5a82(-0x34,_0xb1ed60._0x37ad29,-0x25,-0x17e)]!==_0x1e5a82(_0xb1ed60._0x312961,-0x23,-_0xb1ed60._0x591a28,_0xb1ed60._0x1adfad))throw new ToolExecutionError(_0x1e5a82(_0xb1ed60._0x1d819b,0x17d,0x199,-_0xb1ed60._0x37861f)+(_0x5c6dc6+0x1)+_0x1e5a82(_0xb1ed60._0x4352c5,0x4a,_0xb1ed60._0x2d0d30,_0xb1ed60._0x40ceca));if(!_0x48e8a5['topic']||typeof _0x48e8a5['topic']!==_0x1e5a82(_0xb1ed60._0x5d88a9,0x261,-0x1c,0x18))throw new ToolExecutionError(_0x1e5a82(0x45,-0x29,-_0xb1ed60._0x125c84,0x85)+(_0x5c6dc6+0x1)+_0x1e5a82(_0xb1ed60._0x2827c3,-_0xb1ed60._0x42808b,0x65,0x65));if(_0x48e8a5[_0x428cf0(0x679,_0xb1ed60._0xfd40ca,_0xb1ed60._0x37dbde,0x51e)][_0x1e5a82(0x2c,-_0xb1ed60._0xba2afe,0x7d,-0x20)]>0x1e)throw new ToolExecutionError('Question\x20'+(_0x5c6dc6+0x1)+':\x20\x22topic\x22\x20must\x20be\x20max\x2030\x20characters,\x20got\x20'+_0x48e8a5[_0x428cf0(0x583,0x5af,_0xb1ed60._0x23ff45,0x51e)]['length']);if(!Array['isArray'](_0x48e8a5[_0x428cf0(0x390,_0xb1ed60._0x565751,_0xb1ed60._0x3fec87,0x2f7)])||_0x48e8a5['options']['length']<0x2||_0x48e8a5[_0x428cf0(0x2be,0x3f8,0x1ae,0x2f7)][_0x428cf0(_0xb1ed60._0x1017a9,_0xb1ed60._0x5da3ad,_0xb1ed60._0x5f263d,_0xb1ed60._0x2a4094)]>0x4)throw new ToolExecutionError(_0x428cf0(0x4fb,_0xb1ed60._0x20668e,0x29a,0x3c3)+(_0x5c6dc6+0x1)+_0x428cf0(0x273,_0xb1ed60._0x2c7ca9,0x311,_0xb1ed60._0x3cc25b));for(let _0x340155=0x0;_0x340155<_0x48e8a5[_0x428cf0(0x24b,0x45f,_0xb1ed60._0xf9b960,_0xb1ed60._0x16621b)][_0x1e5a82(0x2c,-_0xb1ed60._0x5e6654,_0xb1ed60._0x241b5c,-_0xb1ed60._0x30330b)];_0x340155+=0x1){const _0x45a861=_0x48e8a5[_0x1e5a82(-0x87,0x8c,-_0xb1ed60._0x553a10,-0xd5)][_0x340155];if(!_0x45a861[_0x1e5a82(-0x45,-0x1ac,-0x109,-0x11f)]||!_0x45a861[_0x428cf0(_0xb1ed60._0x1455ec,_0xb1ed60._0x5c69f0,0x3cf,_0xb1ed60._0xc219cb)])throw new ToolExecutionError('Question\x20'+(_0x5c6dc6+0x1)+_0x1e5a82(_0xb1ed60._0x327962,_0xb1ed60._0x3f39fd,_0xb1ed60._0x17bbbd,0x1a7)+(_0x340155+0x1)+':\x20both\x20\x22label\x22\x20and\x20\x22description\x22\x20are\x20required');}if(typeof _0x48e8a5[_0x428cf0(0x4d7,0x513,0x45d,_0xb1ed60._0x34c4c6)]!==_0x1e5a82(0x169,0x50,_0xb1ed60._0x4011af,_0xb1ed60._0x5bc52d))throw new ToolExecutionError(_0x428cf0(_0xb1ed60._0xd89783,_0xb1ed60._0x4cacd6,_0xb1ed60._0x52c65f,0x3c3)+(_0x5c6dc6+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x54dfd6){const _0x4649cc={_0x33708c:0x498,_0xb41b11:0x40d},_0x3e119f={_0x48332b:0x15d};function _0x3bf8e9(_0x4cd6e0,_0xc0223c,_0xedce4a,_0x5065f8){return _0x1a7bb7(_0x4cd6e0-0x1f1,_0xedce4a-0x238,_0xedce4a-0xe0,_0x5065f8);}function _0x5a2463(_0x483547,_0x50e243,_0x498d96,_0x3afed3){return _0x17d408(_0x483547-0xe7,_0x50e243-0x1a7,_0x483547,_0x3afed3-_0x3e119f._0x48332b);}return _0x54dfd6[_0x3bf8e9(0x400,0x431,_0x4649cc._0x33708c,_0x4649cc._0xb41b11)]['map']((_0x1bb87f,_0x242066)=>({'id':'q'+_0x242066,'question':_0x1bb87f[_0x5a2463(0x358,0x257,0x285,0x208)],'topic':_0x1bb87f[_0x5a2463(0x4ad,0x518,0x34e,0x3dc)],'options':_0x1bb87f[_0x5a2463(0x309,0x2e8,0x48,0x1b5)],'multiSelect':_0x1bb87f[_0x5a2463(0x242,0x28e,0x1aa,0x258)]}));}function createResult(_0x503ee7,_0x4d7a9d,_0x14adb6){const _0x4bc4b8={_0x3de374:0x4,_0x3c7efb:0x5b},_0x109fd8={_0x237af3:0x253,_0xa12fa8:0x1ea},_0x1a6980={_0x4a7725:0x67,_0x51e57b:0x14a,_0x22f3fc:0x1aa},_0x1d48d3={'questionId':_0x503ee7,'questionCount':_0x4d7a9d,'answers':_0x14adb6};function _0x3cd6f7(_0x5cb580,_0x560337,_0x1468eb,_0x411f77){return _0x1a7bb7(_0x5cb580-_0x1a6980._0x4a7725,_0x5cb580- -_0x1a6980._0x51e57b,_0x1468eb-_0x1a6980._0x22f3fc,_0x1468eb);}function _0x1ea7e4(_0x520b0b,_0x23fe9d,_0x4797c3,_0x4eb580){return _0x1a7bb7(_0x520b0b-0x14b,_0x23fe9d-_0x109fd8._0x237af3,_0x4797c3-_0x109fd8._0xa12fa8,_0x520b0b);}return createToolOutput(_0x3cd6f7(0x8a,0x142,_0x4bc4b8._0x3de374,-_0x4bc4b8._0x3c7efb)+JSON[_0x1ea7e4(0x3e5,0x3e3,0x2ba,0x38e)](_0x14adb6,null,0x2),_0x1d48d3);}function createAskUserTool(){const _0x55c3d3={_0x2ba1d7:0x530,_0x3da3ac:0x5cb,_0x11173e:0x5b9,_0x31bd27:0x583,_0x36d1b3:0x3f4,_0x4e007a:0x69d,_0x818308:0x4ae,_0x1015e0:0x4e1,_0x4ff99e:0x28d,_0x4c6ceb:0x306,_0x2bb2a4:0x16f,_0x3fc338:0x27f,_0x29bfd1:0xcc,_0x16510a:0x2f1,_0x12acea:0x518,_0x39cb9a:0x3f0,_0x58645b:0x342,_0x33c18d:0x52a,_0x254301:0x449,_0x40e5ed:0x1af,_0x30ef65:0x192,_0x56e8c3:0x2b6,_0x21cf45:0x180,_0x7e8ddc:0x167,_0x36786c:0x303,_0x422a79:0x436,_0x8d024e:0x3a2,_0x19376a:0x211,_0x4fe0fc:0x344,_0x566a3b:0x15c,_0x6b506f:0x322,_0x2f89de:0x1e1,_0x25a276:0x2ef},_0x3a4e26={_0x5327fd:0x82,_0x1b0cea:0x1a3,_0x478b3c:0x58,_0x39278a:0x36,_0x1c110f:0x19b,_0x54fc4e:0x1f3,_0x52488b:0x172,_0x185f6e:0x73,_0x495d0a:0xbd,_0x57e3d5:0x23,_0x43c7cd:0x2b5,_0x4f46d0:0x2c1,_0x4bd104:0x33a,_0x5ba171:0x2cf,_0x4cb876:0x1d3,_0x475500:0x1fb,_0x186c75:0x253,_0x5d584d:0x2f0,_0x154b6b:0x1ab,_0x409248:0xba,_0x248e60:0x1ad,_0x5ed0fe:0x258,_0x41a41a:0x25d,_0x306af4:0xa6,_0x9b62c4:0xcb},_0x2ff3a5={_0x2ee05a:0x3c,_0x3697b5:0x172},_0x447310={_0x73fd3:0x6c,_0x28f74d:0x305};function _0x1cf604(_0x188240,_0x27d1e0,_0x218040,_0x5af408){return _0x1a7bb7(_0x188240-_0x447310._0x73fd3,_0x5af408-_0x447310._0x28f74d,_0x218040-0x1a6,_0x188240);}function _0x3d9562(_0xcaa060,_0x48c005,_0x434f65,_0x5db7fc){return _0x1a7bb7(_0xcaa060-_0x2ff3a5._0x2ee05a,_0x5db7fc-_0x2ff3a5._0x3697b5,_0x434f65-0x14d,_0xcaa060);}return defineTool({'name':_0x1cf604(_0x55c3d3._0x2ba1d7,0x449,_0x55c3d3._0x3da3ac,0x46d),'description':'Use\x20this\x20tool\x20when\x20you\x20need\x20to\x20ask\x20the\x20user\x20questions\x20during\x20execution.\x20This\x20allows\x20you\x20to:\x0a1.\x20Gather\x20user\x20preferences\x20or\x20requirements\x0a2.\x20Clarify\x20ambiguous\x20instructions\x0a3.\x20Get\x20decisions\x20on\x20implementation\x20choices\x20as\x20you\x20work\x0a4.\x20Offer\x20choices\x20to\x20the\x20user\x20about\x20what\x20direction\x20to\x20take.\x0a\x0aUsage\x20notes:\x0a-\x20Users\x20will\x20always\x20be\x20able\x20to\x20select\x20\x22Other\x22\x20to\x20provide\x20custom\x20text\x20input\x0a-\x20Use\x20multiSelect:\x20true\x20to\x20allow\x20multiple\x20answers\x20to\x20be\x20selected\x20for\x20a\x20question\x0a-\x20If\x20you\x20recommend\x20a\x20specific\x20option,\x20make\x20that\x20the\x20first\x20option\x20in\x20the\x20list\x20and\x20add\x20\x22(Recommended)\x22\x20at\x20the\x20end\x20of\x20the\x20label','inputSchema':{'type':_0x1cf604(0x414,0x419,_0x55c3d3._0x11173e,_0x55c3d3._0x31bd27),'properties':{'questions':{'type':_0x1cf604(_0x55c3d3._0x36d1b3,0x489,0x214,0x33a),'items':{'type':_0x1cf604(_0x55c3d3._0x4e007a,0x55d,_0x55c3d3._0x818308,_0x55c3d3._0x31bd27),'properties':{'question':{'type':_0x1cf604(_0x55c3d3._0x1015e0,0x5b0,0x4c0,0x449)},'topic':{'type':_0x3d9562(_0x55c3d3._0x4ff99e,_0x55c3d3._0x4c6ceb,0x41b,0x2b6)},'options':{'type':_0x3d9562(_0x55c3d3._0x2bb2a4,_0x55c3d3._0x3fc338,_0x55c3d3._0x29bfd1,0x1a7),'items':{'type':_0x3d9562(_0x55c3d3._0x16510a,_0x55c3d3._0x12acea,0x412,_0x55c3d3._0x39cb9a),'properties':{'label':{'type':_0x1cf604(_0x55c3d3._0x58645b,0x4cc,_0x55c3d3._0x33c18d,_0x55c3d3._0x254301)},'description':{'type':_0x3d9562(_0x55c3d3._0x40e5ed,_0x55c3d3._0x30ef65,0x3b1,_0x55c3d3._0x56e8c3)}},'required':[_0x3d9562(0x3e,0xeb,_0x55c3d3._0x2bb2a4,_0x55c3d3._0x21cf45),_0x1cf604(0x21b,_0x55c3d3._0x7e8ddc,_0x55c3d3._0x36786c,0x2b6)]}},'multiSelect':{'type':'boolean'}},'required':[_0x1cf604(_0x55c3d3._0x422a79,0x48d,0x48b,0x324),_0x3d9562(_0x55c3d3._0x8d024e,_0x55c3d3._0x19376a,_0x55c3d3._0x4fe0fc,0x365),'options',_0x3d9562(_0x55c3d3._0x566a3b,0x1e6,_0x55c3d3._0x6b506f,_0x55c3d3._0x2f89de)]}},'answers':{'type':_0x3d9562(0x523,0x28b,0x463,_0x55c3d3._0x39cb9a),'properties':{}}},'required':[_0x3d9562(0x37f,0x3f7,_0x55c3d3._0x25a276,0x3d2)]},async *'execute'(_0x2352cc,_0x2b94a9){const _0x4be95e={_0x4be4c1:0x41,_0x50aed1:0x108},_0x33bda4=_0x2352cc;function _0x157f4b(_0x41f005,_0x588d66,_0x1581ed,_0x2fdef4){return _0x1cf604(_0x41f005,_0x588d66-0xae,_0x1581ed-0x15f,_0x2fdef4- -0x543);}validateInput(_0x33bda4);const _0x596f80=_0x2b94a9[_0x560799(_0x3a4e26._0x5327fd,_0x3a4e26._0x1b0cea,_0x3a4e26._0x478b3c,0x12e)]??createQuestionId();if(_0x33bda4[_0x560799(_0x3a4e26._0x39278a,0x123,0xf2,0x88)]&&Object[_0x157f4b(-0x43,0x7c,-_0x3a4e26._0x1c110f,-0xf4)](_0x33bda4[_0x157f4b(-_0x3a4e26._0x54fc4e,-0x23e,-_0x3a4e26._0x52488b,-0x185)])[_0x560799(_0x3a4e26._0x185f6e,0xe9,_0x3a4e26._0x495d0a,-_0x3a4e26._0x57e3d5)]>0x0)return createResult(_0x596f80,_0x33bda4['questions'][_0x157f4b(-_0x3a4e26._0x43c7cd,-_0x3a4e26._0x4f46d0,-_0x3a4e26._0x4bd104,-0x1bf)],_0x33bda4[_0x157f4b(-0xe8,-_0x3a4e26._0x5ba171,-0x121,-0x185)]);function _0x560799(_0x2e1493,_0x1998cc,_0x37fb20,_0x15403e){return _0x3d9562(_0x37fb20,_0x1998cc-0xbe,_0x37fb20-_0x4be95e._0x4be4c1,_0x1998cc- -_0x4be95e._0x50aed1);}if(!_0x2b94a9[_0x560799(_0x3a4e26._0x4cb876,_0x3a4e26._0x475500,_0x3a4e26._0x186c75,_0x3a4e26._0x5d584d)])throw new ToolExecutionError(_0x560799(0x30,0x57,_0x3a4e26._0x154b6b,_0x3a4e26._0x409248));const _0x71e4d4=buildQuestions(_0x33bda4),_0x404940=await _0x2b94a9[_0x560799(_0x3a4e26._0x248e60,0x1fb,0x1af,0x2eb)]({'questionId':_0x596f80,'questions':_0x71e4d4});yield createResult(_0x596f80,_0x33bda4[_0x560799(_0x3a4e26._0x5ed0fe,0x2ca,0x154,_0x3a4e26._0x41a41a)][_0x157f4b(-_0x3a4e26._0x306af4,-_0x3a4e26._0x9b62c4,-0x4b,-0x1bf)],_0x404940);}});}import{randomUUID}from'crypto';import{StringDecoder}from'string_decoder';import{spawn as _0x635445}from'child_process';import{stripVTControlCharacters}from'util';function isErrnoException(_0x952bb7){return _0x952bb7 instanceof Error;}function resolveCarriageReturns(_0x3bb7fc){const _0x43a613={_0x17e19d:0x2a9,_0x275d54:0x3d3,_0x304bd7:0x3a4,_0x2f3e1c:0x29e,_0x50829a:0x2b7,_0x2d935a:0x2c4,_0x5a7838:0x254},_0x530b04={_0x149e1a:0x2a6,_0x3f87e3:0x305,_0x799c1a:0x138,_0x4c8412:0x115},_0x66681={_0x32dd05:0x1cb,_0x3c3571:0x5e},_0x51d164={_0x3e01f6:0x80};function _0x3a0fa1(_0x5e6a15,_0x3bcb9a,_0x398062,_0x27f384){return _0x17d408(_0x5e6a15-_0x51d164._0x3e01f6,_0x3bcb9a-0x1b9,_0x3bcb9a,_0x27f384-0x11e);}function _0x49e7af(_0x585e02,_0x23adb0,_0x566c54,_0x5c1f97){return _0x17d408(_0x585e02-_0x66681._0x32dd05,_0x23adb0-_0x66681._0x3c3571,_0x585e02,_0x5c1f97-0x1aa);}return _0x3bb7fc[_0x49e7af(_0x43a613._0x17e19d,_0x43a613._0x275d54,_0x43a613._0x304bd7,_0x43a613._0x2f3e1c)]('\x0a')['map'](_0x5ae3b8=>{const _0x369dd8={_0x403fb6:0x43,_0x10c065:0xf9};function _0x5389c1(_0x477b1d,_0xe88f90,_0x47fb27,_0x554daf){return _0x49e7af(_0x47fb27,_0xe88f90-0x1ea,_0x47fb27-0x158,_0xe88f90- -0x3ca);}if(!_0x5ae3b8[_0x44de78(0x256,_0x530b04._0x149e1a,_0x530b04._0x3f87e3,0x3be)]('\x0d'))return _0x5ae3b8;function _0x44de78(_0x50d772,_0x2175f5,_0xcb63b0,_0x282fb3){return _0x49e7af(_0x282fb3,_0x2175f5-0x18f,_0xcb63b0-_0x369dd8._0x403fb6,_0x2175f5- -_0x369dd8._0x10c065);}const _0x41de73=_0x5ae3b8['split']('\x0d');return _0x41de73[_0x41de73[_0x5389c1(-_0x530b04._0x799c1a,-_0x530b04._0x4c8412,-0xb7,-0x1e)]-0x1]??'';})[_0x3a0fa1(_0x43a613._0x50829a,0x373,_0x43a613._0x2d935a,_0x43a613._0x5a7838)]('\x0a');}function resolveBackspaces(_0x442e7b){const _0x41b1a0={_0x2da592:0xc5,_0x2d58c8:0x224,_0x256ce6:0x277,_0x2fc767:0x1d1,_0x34d0c4:0x444,_0x39ade3:0x349,_0x14af4d:0x11b,_0x4cfbe9:0x2f8,_0x2e61d4:0x268},_0x305fdb={_0x4317a0:0x26,_0x155946:0x1d6},_0x2d4b20=[];function _0x42a92a(_0x585fc8,_0x1425cf,_0x3c6cea,_0x58574e){return _0x1a7bb7(_0x585fc8-0x10e,_0x3c6cea- -0x26b,_0x3c6cea-0x152,_0x58574e);}function _0x41420a(_0x2a7627,_0x340d5a,_0x22b4f3,_0x3c044e){return _0x1a7bb7(_0x2a7627-_0x305fdb._0x4317a0,_0x22b4f3-0x1be,_0x22b4f3-_0x305fdb._0x155946,_0x340d5a);}for(const _0x2d7850 of Array[_0x42a92a(-_0x41b1a0._0x2da592,-0x147,-_0x41b1a0._0x2d58c8,-_0x41b1a0._0x256ce6)](_0x442e7b)){_0x2d7850==='\x08'?_0x2d4b20[_0x42a92a(-0x1e0,-_0x41b1a0._0x2fc767,-0xf6,-0x1fd)]():_0x2d4b20[_0x41420a(0x3a8,0x467,_0x41b1a0._0x34d0c4,_0x41b1a0._0x39ade3)](_0x2d7850);}return _0x2d4b20[_0x41420a(_0x41b1a0._0x14af4d,_0x41b1a0._0x4cfbe9,_0x41b1a0._0x2e61d4,0x316)]('');}function stripAnsiAndControls(_0x5617d9){const _0x30725c={_0x558b7e:0x625,_0xeca7f7:0x790,_0x5c2422:0x5d5,_0x52ce94:0x6ab,_0x34edde:0x4cc,_0x119d36:0x345,_0x52cc0e:0x339,_0xff4f2a:0x8,_0xb171ff:0xa3,_0x2afc41:0x14f,_0x4cd36e:0x506,_0x47b003:0x625,_0x36aa49:0x580,_0x16d964:0x69f,_0x4a089f:0x6c0,_0x524f46:0x79f,_0x1e00dd:0x5,_0x295d4e:0x6d5,_0x1d584e:0x50e,_0x313619:0x516,_0x428828:0x2,_0x47d24e:0xaa,_0x30cada:0x9c,_0x578146:0x104,_0x555aab:0xe0,_0x2cf360:0x1d8,_0xc2d9c6:0x1df},_0xef8dfb={_0x588d3a:0x150,_0x475b08:0x419},_0x1fc078={_0x477cc8:0x10};_0x5617d9=resolveCarriageReturns(_0x5617d9),_0x5617d9=resolveBackspaces(_0x5617d9),_0x5617d9=stripVTControlCharacters(_0x5617d9);function _0x5776ce(_0x3e4e60,_0x12f0d5,_0x391a45,_0x1cc8fe){return _0x17d408(_0x3e4e60-_0x1fc078._0x477cc8,_0x12f0d5-0x1a8,_0x3e4e60,_0x12f0d5- -0x2b6);}const _0xc0d91b='\x1b',_0x5664af='\x07';_0x5617d9=_0x5617d9[_0x3579fa(_0x30725c._0x558b7e,_0x30725c._0xeca7f7,_0x30725c._0x5c2422,_0x30725c._0x52ce94)](new RegExp(_0x3579fa(_0x30725c._0x34edde,0x43f,0x3da,0x504)+_0x5664af+_0x5776ce(-_0x30725c._0x119d36,-0x219,-0x359,-_0x30725c._0x52cc0e)+_0x5664af,'g'),''),_0x5617d9=_0x5617d9[_0x5776ce(_0x30725c._0xff4f2a,-0xaa,_0x30725c._0xb171ff,-_0x30725c._0x2afc41)](new RegExp(_0x3579fa(0x44c,_0x30725c._0x4cd36e,0x4ef,0x39b)+_0xc0d91b+'\x5c\x5c','g'),''),_0x5617d9=_0x5617d9[_0x3579fa(_0x30725c._0x47b003,_0x30725c._0x36aa49,0x70a,0x63d)](new RegExp(_0x5664af,'g'),''),_0x5617d9=_0x5617d9[_0x3579fa(_0x30725c._0x558b7e,_0x30725c._0x16d964,_0x30725c._0x4a089f,_0x30725c._0x524f46)](new RegExp(_0xc0d91b+_0x5776ce(-0x117,_0x30725c._0x1e00dd,0x14f,-0x8d)+_0xc0d91b+'\x5c\x5c','g'),''),_0x5617d9=_0x5617d9[_0x3579fa(_0x30725c._0x558b7e,_0x30725c._0x295d4e,_0x30725c._0x1d584e,_0x30725c._0x313619)](new RegExp(_0xc0d91b+'[=>7-8()]','g'),''),_0x5617d9=_0x5617d9[_0x5776ce(_0x30725c._0x428828,-_0x30725c._0x47d24e,_0x30725c._0x30cada,-0x1ab)](/[\u0080-\u009F]/g,''),_0x5617d9=_0x5617d9[_0x5776ce(-_0x30725c._0x578146,-0xaa,0x74,-0x1aa)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x5617d9=_0x5617d9[_0x5776ce(-_0x30725c._0x555aab,-_0x30725c._0x47d24e,-_0x30725c._0x2cf360,-_0x30725c._0xc2d9c6)](/[\u23CE\u2424]/g,'');function _0x3579fa(_0x29c8d3,_0x3bd329,_0x54dfb3,_0x9a1707){return _0x17d408(_0x29c8d3-0x1ac,_0x3bd329-_0xef8dfb._0x588d3a,_0x54dfb3,_0x29c8d3-_0xef8dfb._0x475b08);}return _0x5617d9;}function killProcessGroup(_0x1d0df7,_0x19ca63,_0xbbc78d=_0x1a7bb7(0x25b,0x1be,0x95,0x1f1)){const _0xda30ca={_0x5f36a5:0x5af,_0x403d2f:0x553,_0x5a7cb5:0x5ed,_0x7474d:0x420,_0x16109a:0x515,_0x2fa617:0x584,_0x3a2e0f:0x49d,_0x3d25ac:0x3c7,_0x56f4ce:0x619,_0x361e8c:0x46a,_0x417a24:0x564,_0x24d95d:0x479,_0x159f07:0x4e5,_0x209944:0x48c,_0x59e9f7:0x56b,_0x4401ff:0x6be},_0x31f236={_0x29f0bb:0x307};function _0x24a14e(_0x354895,_0xaadcee,_0x62a397,_0x2e6a8b){return _0x17d408(_0x354895-0xc7,_0xaadcee-0x1c6,_0xaadcee,_0x2e6a8b-_0x31f236._0x29f0bb);}if(!_0x1d0df7[_0x24a14e(_0xda30ca._0x5f36a5,0x586,0x4b8,_0xda30ca._0x403d2f)])return;function _0x5d4c8f(_0x4362ed,_0x3a55cd,_0x30e89b,_0x14b217){return _0x17d408(_0x4362ed-0x55,_0x3a55cd-0x14f,_0x30e89b,_0x14b217- -0x28);}if(_0x19ca63)try{_0x635445(_0x24a14e(_0xda30ca._0x5a7cb5,_0xda30ca._0x7474d,_0xda30ca._0x16109a,_0xda30ca._0x2fa617),[_0x24a14e(_0xda30ca._0x3a2e0f,0x3f8,_0xda30ca._0x3d25ac,0x3cf),_0x1d0df7[_0x24a14e(_0xda30ca._0x56f4ce,0x3f1,0x50e,0x553)]['toString'](),'/T','/F'],{'stdio':_0x24a14e(_0xda30ca._0x361e8c,_0xda30ca._0x417a24,_0xda30ca._0x24d95d,_0xda30ca._0x159f07)});return;}catch{_0x1d0df7[_0x24a14e(_0xda30ca._0x209944,0x3fe,0x401,_0xda30ca._0x59e9f7)](_0xbbc78d);return;}try{process['kill'](-_0x1d0df7['pid'],_0xbbc78d);}catch{_0x1d0df7[_0x24a14e(_0xda30ca._0x4401ff,0x47d,0x640,0x56b)](_0xbbc78d);}}var BackgroundProcessRegistry=class{[_0x1a7bb7(0x1d5,0xc3,0x1b0,-0x73)]=new Map();[_0x1a7bb7(-0xb1,0x18,-0x28,0x38)];[_0x1a7bb7(0x1b9,0x29c,0x204,0x23a)];[_0x1a7bb7(0xa9,0xc9,0x35,0x1f3)];[_0x1a7bb7(0x137,-0x5,0x1b,-0x138)]=0x0;constructor(_0x19f517={}){const _0x10ad88={_0x1afd9c:0x358,_0x4a4839:0x242,_0x530c72:0x4a5,_0x3c51c9:0x5c0,_0x594066:0x314},_0x16fd11={_0x1ff985:0x162,_0x4d0188:0x19e};this[_0x5de2e5(_0x10ad88._0x1afd9c,0x21b,0x32d,_0x10ad88._0x4a4839)]=_0x19f517['maxConcurrent']??0xa,this['maxEntries']=_0x19f517[_0x5de2e5(_0x10ad88._0x530c72,_0x10ad88._0x3c51c9,0x5d7,0x4c6)]??0x40;function _0x9744fd(_0x3e4bc3,_0x9c8458,_0x4a7ab7,_0x2f6719){return _0x1a7bb7(_0x3e4bc3-0x19d,_0x3e4bc3- -0x12b,_0x4a7ab7-0x1d6,_0x9c8458);}function _0x5de2e5(_0x63eedb,_0x4d9bcc,_0x1f6486,_0x5ac4e0){return _0x17d408(_0x63eedb-0x11e,_0x4d9bcc-_0x16fd11._0x1ff985,_0x4d9bcc,_0x5ac4e0-_0x16fd11._0x4d0188);}this[_0x5de2e5(0x412,_0x10ad88._0x594066,0x25a,0x2f3)]=_0x19f517['capChars']??0x100000;}[_0x1a7bb7(0x1c9,0x111,0x1ea,0x7b)](_0x179840){const _0x5113e9={_0x10e059:0x23,_0x33e8e6:0xd5,_0x3295f5:0x99,_0x35ad0a:0x227,_0x2d2db8:0xb5,_0x2177ae:0x1d2,_0x462b61:0x43,_0x19cdf1:0xd7,_0x4bf4a7:0xff,_0x4d8ae2:0x24d,_0x53959c:0x105,_0x2bb2a2:0xd5,_0x28edeb:0x26,_0x1099ef:0x1,_0x2b12fd:0x9a,_0x548ca5:0xa6,_0xa70f69:0x9,_0x2f344e:0x168,_0x5f0ae6:0xc4,_0x3c7cbb:0x41,_0x2875b5:0x1d0,_0x146122:0x1cd,_0x36590c:0x1fd,_0x17ca68:0x85,_0x40e0d6:0x195,_0x45f7f1:0x72,_0x3b242d:0x1d7,_0xe6d765:0x226,_0x15f1ad:0x210,_0x398592:0x100,_0x4f25c6:0xb2,_0x580e54:0x33d,_0x2a35bf:0x4d,_0x464134:0x71,_0x3460cd:0x47,_0x5286fa:0x3a,_0x4f02ce:0x22,_0x34d040:0x58,_0x22bcc6:0x1c4,_0x535f1f:0x23d,_0xce8cea:0xd1,_0x44e629:0x3c,_0x2265f8:0xad,_0x209c8b:0x7a,_0x1b20d4:0xae,_0x3a37a4:0x6f},_0x32115e={_0x3b7658:0xce,_0x36d421:0x7a},_0xfed148={_0x2e8953:0x279,_0x4c6271:0x5f,_0x2e98bb:0x170,_0x3ca0bf:0x214,_0x41f262:0x120,_0x5b9b57:0x45,_0x1f3675:0x2a2},_0x42c66f={_0x36c6b8:0x10c,_0x2abde7:0x1b7,_0x2ef60f:0x38},_0x3cb064={_0xa3c0d5:0x162,_0x109bf8:0x15,_0xa54b2a:0x324,_0x48ea4d:0x2a3,_0x32d954:0x155,_0x16c908:0x2c7,_0x3f1e60:0x1ff,_0x4d0884:0x24d,_0x306191:0x28b,_0x220da2:0x1ce,_0x2a7108:0x2a3,_0x37db8d:0x179,_0x261f59:0x213,_0xa78f68:0x1d4,_0x18e296:0x63,_0x4b2041:0xd3,_0x56b6bb:0x149,_0x363c1c:0x1a4,_0x143812:0x1dd},_0x480446={_0x2d89dc:0x190},_0x365b7d={_0x2687d2:0x153,_0x19a1f6:0x2ba,_0x353362:0x21b},_0x3890ee={_0x11718e:0x84},_0x3e24e3={_0x479b00:0x2,_0x5d99f7:0x17b},_0x46d7ca=[...this['entries'][_0x3924c4(0x3d,_0x5113e9._0x10e059,_0x5113e9._0x33e8e6,-_0x5113e9._0x3295f5)]()][_0x3924c4(0xff,_0x5113e9._0x35ad0a,_0x5113e9._0x2d2db8,_0x5113e9._0x2177ae)](_0x432f5b=>_0x432f5b[_0x4595eb(0x23b,0xc9,0x346,0x22f)]===_0x4595eb(-0xe4,-0x58,-0x10,0x72))[_0x3924c4(-0x70,_0x5113e9._0x462b61,-0x164,-0x1da)];if(_0x46d7ca>=this[_0x3924c4(-_0x5113e9._0x19cdf1,-0x1b0,-_0x5113e9._0x4bf4a7,-_0x5113e9._0x4d8ae2)])throw new ToolExecutionError(_0x4595eb(0x41,_0x5113e9._0x53959c,-0x130,0xc)+this[_0x4595eb(-0xc8,_0x5113e9._0x2bb2a2,0x95,_0x5113e9._0x28edeb)]+_0x3924c4(0x9d,_0x5113e9._0x1099ef,-_0x5113e9._0x2b12fd,0xa0),{'running':this[_0x3924c4(-0xd7,-0x19e,0x24,-_0x5113e9._0x548ca5)]});const _0x5e241b='bg-'+ ++this[_0x4595eb(-0xd8,0xbf,-0x69,_0x5113e9._0xa70f69)]+'-'+randomUUID()[_0x3924c4(-0x42,-_0x5113e9._0x2f344e,-0xd0,-_0x5113e9._0x5f0ae6)](0x0,0x8),_0x282536={'shellId':_0x5e241b,'command':_0x179840[_0x3924c4(-_0x5113e9._0x3c7cbb,-0x113,-0x91,-0x52)],'cwd':_0x179840['cwd'],'pid':_0x179840[_0x4595eb(_0x5113e9._0x2875b5,_0x5113e9._0x146122,0x295,_0x5113e9._0x36590c)][_0x4595eb(0x2ba,_0x5113e9._0x17ca68,_0x5113e9._0x40e0d6,0x1ce)],'status':_0x4595eb(-0x14,-0xd4,0x99,_0x5113e9._0x45f7f1),'exitCode':null,'signal':null,'startedAt':Date['now'](),'child':_0x179840['child'],'buffer':[],'bufferChars':0x0,'totalProduced':0x0,'totalDropped':0x0,'readCursor':0x0,'stdoutDecoder':new StringDecoder(_0x4595eb(0x20d,0x34f,_0x5113e9._0x3b242d,_0x5113e9._0xe6d765)),'stderrDecoder':new StringDecoder(_0x4595eb(0x1d3,0x2ce,_0x5113e9._0x15f1ad,0x226)),'stripAnsi':_0x179840[_0x4595eb(0x1a6,0x106,-0x37,0xa3)],'killRequested':![],'processExited':![]};_0x179840[_0x3924c4(_0x5113e9._0x398592,0x1ca,0x24a,0xb1)]['stdout']?.['on'](_0x3924c4(_0x5113e9._0x4f25c6,0x53,0x120,0xb7),_0x58b460=>this[_0x4595eb(0x103,0x3b,-0x2e,0xb)](_0x282536,_0x282536[_0x3924c4(0x82,0xdf,0x116,-0x49)][_0x4595eb(0xd0,0x20,-0x17a,-0x7)](_0x58b460)));function _0x3924c4(_0x555a24,_0x1663ae,_0x2448ee,_0x220245){return _0x17d408(_0x555a24-0x17d,_0x1663ae-_0x3e24e3._0x479b00,_0x2448ee,_0x555a24- -_0x3e24e3._0x5d99f7);}_0x179840[_0x4595eb(_0x5113e9._0x580e54,0x2fb,0x1f0,0x1fd)]['stderr']?.['on'](_0x3924c4(0xb2,_0x5113e9._0x2a35bf,0xad,_0x5113e9._0x464134),_0x11d159=>this[_0x3924c4(-0xf2,-0x2c,0x7f,-0x264)](_0x282536,_0x282536[_0x4595eb(-0x1e,0x263,0x37,0x103)][_0x3924c4(-0x104,0x10,-0x10c,-0x15d)](_0x11d159))),_0x179840['child'][_0x4595eb(_0x5113e9._0x3460cd,-0x5b,_0x5113e9._0x5286fa,_0x5113e9._0x4f02ce)](_0x3924c4(-0xd5,-0x11d,-_0x5113e9._0x34d040,-0x249),()=>{function _0x1f49bf(_0x46deff,_0x599dc0,_0x1e7dfa,_0x5dfc67){return _0x3924c4(_0x46deff- -_0x3890ee._0x11718e,_0x599dc0-0x1d0,_0x1e7dfa,_0x5dfc67-0xc5);}_0x282536[_0x1f49bf(-_0x365b7d._0x2687d2,-_0x365b7d._0x19a1f6,-0x33,-_0x365b7d._0x353362)]=!![];}),_0x179840[_0x3924c4(0x100,0x247,0x44,_0x5113e9._0x22bcc6)]['once']('close',(_0x4973a8,_0x58c325)=>{const _0x3a514e={_0x406a67:0x1a6,_0x141121:0x179};this[_0x3bb235(-_0x3cb064._0xa3c0d5,-0x187,-0x137,-_0x3cb064._0x109bf8)](_0x282536,_0x282536['stdoutDecoder'][_0x834c22(_0x3cb064._0xa54b2a,0x405,_0x3cb064._0x48ea4d,0x2bf)]());function _0x3bb235(_0xc3f1d1,_0x55d6aa,_0x4d3f5d,_0x13668f){return _0x3924c4(_0x13668f-0xdd,_0x55d6aa-_0x480446._0x2d89dc,_0x4d3f5d,_0x13668f-0x118);}this[_0x834c22(0x2b2,0x123,_0x3cb064._0x32d954,_0x3cb064._0x16c908)](_0x282536,_0x282536[_0x834c22(_0x3cb064._0x3f1e60,0x252,_0x3cb064._0x4d0884,0x136)][_0x834c22(_0x3cb064._0x306191,_0x3cb064._0x220da2,_0x3cb064._0x2a7108,_0x3cb064._0x37db8d)]()),_0x282536['status']=_0x282536[_0x3bb235(0x272,0x29c,_0x3cb064._0x261f59,_0x3cb064._0xa78f68)]?'killed':'exited',_0x282536[_0x3bb235(_0x3cb064._0x18e296,_0x3cb064._0x4b2041,-_0x3cb064._0x56b6bb,-0x2b)]=_0x4973a8,_0x282536['signal']=_0x58c325;function _0x834c22(_0x1a2bfc,_0x1bcba9,_0x2990e2,_0x5d04d4){return _0x4595eb(_0x1a2bfc-_0x3a514e._0x406a67,_0x1bcba9-_0x3a514e._0x141121,_0x1a2bfc,_0x2990e2-0x14a);}_0x282536[_0x3bb235(0x348,0x1ee,_0x3cb064._0x363c1c,_0x3cb064._0x143812)]=null;}),_0x179840['child'][_0x4595eb(0x55,-0xae,0x16,_0x5113e9._0x4f02ce)](_0x3924c4(0x64,-0xc8,-0x9e,-0x26),_0x2dac92=>{const _0x7a2ae1={_0xc6681:0x20};function _0x6c21f1(_0x5e7609,_0x3103ea,_0x14b5e5,_0x37189d){return _0x3924c4(_0x3103ea-_0x42c66f._0x36c6b8,_0x3103ea-_0x42c66f._0x2abde7,_0x37189d,_0x37189d-_0x42c66f._0x2ef60f);}_0x282536[_0x6c21f1(0x382,0x23e,_0xfed148._0x2e8953,0x221)]=_0x6c21f1(_0xfed148._0x4c6271,_0xfed148._0x2e98bb,_0xfed148._0x3ca0bf,_0xfed148._0x41f262);function _0x29fd90(_0x1b5382,_0x3ae9a1,_0x17d345,_0x516f2f){return _0x3924c4(_0x1b5382-_0x7a2ae1._0xc6681,_0x3ae9a1-0x1a1,_0x3ae9a1,_0x516f2f-0x2f);}_0x282536[_0x6c21f1(0x2a1,_0xfed148._0x2e98bb,_0xfed148._0x5b9b57,0x98)]=_0x2dac92['message'],_0x282536[_0x6c21f1(0x317,0x20c,_0xfed148._0x1f3675,0x1fe)]=null;}),this[_0x4595eb(0xee,_0x5113e9._0x535f1f,0x209,_0x5113e9._0xce8cea)][_0x3924c4(-_0x5113e9._0x44e629,_0x5113e9._0x2265f8,-0x152,-0xd4)](_0x5e241b,_0x282536);function _0x4595eb(_0x41c889,_0x296baa,_0x1ba65a,_0x22242c){return _0x17d408(_0x41c889-_0x32115e._0x3b7658,_0x296baa-_0x32115e._0x36d421,_0x1ba65a,_0x22242c- -0x7e);}return this[_0x3924c4(-_0x5113e9._0x209c8b,_0x5113e9._0x1b20d4,_0x5113e9._0x3a37a4,-0x1c)](),_0x282536;}['read'](_0x172834,_0x1f6d59){const _0x2e9885={_0xdfa65f:0x13b,_0x5c8450:0x25,_0x4bc111:0x2c5,_0x452776:0x1fe,_0x7f7e98:0x15f,_0x4d11b9:0x1fc,_0x550a06:0x1c5,_0x2d2411:0x29f,_0x40caea:0x2aa,_0x551d81:0x1ce,_0x53ca71:0xbb,_0x32f441:0x2b3,_0x18c677:0x183,_0x507410:0x182,_0x13292b:0x1be,_0x61d1ad:0x18a,_0xfae4f8:0x281,_0x306f5f:0x1e7,_0x5541a4:0x36,_0x2b06b7:0x13e,_0x507082:0x1ca,_0x11c206:0x36a,_0x2b5b0e:0x1f5,_0x5c52ce:0x17f,_0x1eb8bb:0x23,_0x523998:0x204,_0x49bc72:0x1b6,_0x639e0:0x2e8,_0x1281ca:0x35,_0x35e703:0x141,_0x3325d2:0x121,_0x5b017a:0x147,_0x5409da:0x245,_0x2373fc:0xe4,_0x57898c:0x149,_0x4c6279:0x40,_0x5aec1f:0x1df,_0x5e6810:0x1ab,_0x48ddf2:0xc5,_0x4f8179:0x124,_0x3b48bb:0x48,_0x3015e2:0x32,_0x514a41:0xa7,_0x4f4de2:0x158,_0x2a4482:0x1f,_0x2bd74c:0x10b,_0xc4a2a4:0xd0,_0x51d4bc:0x20b,_0xab7e4b:0x127,_0x56cca7:0x1b0,_0x2cf73c:0x3c,_0x239032:0x201,_0x1bb862:0xc,_0x2bf28f:0xb9,_0x13e48f:0x5d,_0x375133:0xba,_0x35419d:0x265,_0x5bc510:0x251,_0x3f1a6f:0x1bf,_0xd711c1:0x131,_0x3be2c7:0x24a,_0x6384a4:0xd1,_0xa074af:0x18b},_0x1c1c5c={_0x4a03dd:0x8},_0x4189af={_0x2360d0:0xbf,_0x156f7b:0x1b3},_0x3e126c=this[_0x2db7e9(0x21,-0xe3,-_0x2e9885._0xdfa65f,-_0x2e9885._0x5c8450)][_0x353d87(_0x2e9885._0x4bc111,_0x2e9885._0x452776,0x279,0x219)](_0x172834);if(!_0x3e126c)throw new ToolExecutionError(_0x2db7e9(-_0x2e9885._0x7f7e98,-0xe7,-_0x2e9885._0x4d11b9,-0x36)+_0x172834,{'shellId':_0x172834});function _0x2db7e9(_0x380cf7,_0x50dfbc,_0x461206,_0x4441c8){return _0x1a7bb7(_0x380cf7-_0x4189af._0x2360d0,_0x50dfbc- -0x1a6,_0x461206-_0x4189af._0x156f7b,_0x461206);}const _0x39800a=_0x3e126c['buffer'][_0x353d87(0x20d,0x165,_0x2e9885._0x550a06,_0x2e9885._0x2d2411)](''),_0x182019=Math[_0x2db7e9(-_0x2e9885._0x40caea,-_0x2e9885._0x551d81,-0x7d,-0x20e)](_0x3e126c[_0x2db7e9(0x46,-0x10b,0x49,-_0x2e9885._0x53ca71)],_0x3e126c[_0x2db7e9(-_0x2e9885._0x32f441,-_0x2e9885._0x18c677,-_0x2e9885._0x507410,-_0x2e9885._0x13292b)]),_0x4bba27=Math['max'](0x0,_0x3e126c['totalDropped']-_0x3e126c[_0x353d87(_0x2e9885._0x61d1ad,_0x2e9885._0xfae4f8,0x1b6,_0x2e9885._0x306f5f)]),_0x525beb=_0x39800a['slice'](_0x182019-_0x3e126c[_0x353d87(_0x2e9885._0x5541a4,-0x16,_0x2e9885._0x2b06b7,_0x2e9885._0x507082)]),_0x583b82=_0x3e126c[_0x353d87(0x2f6,_0x2e9885._0x11c206,0x33c,0x37e)]!==_0x353d87(0x252,_0x2e9885._0x2b5b0e,_0x2e9885._0x5c52ce,0x2b4);let _0x26920b;const _0x49a642=_0x1f6d59?.[_0x2db7e9(-0x1d,_0x2e9885._0x1eb8bb,0x103,0x185)];if(!_0x49a642)_0x26920b=_0x525beb,_0x3e126c[_0x353d87(0x2e9,_0x2e9885._0x523998,_0x2e9885._0x49bc72,_0x2e9885._0x639e0)]=_0x3e126c['totalProduced'];else{let _0x1648b8;try{_0x1648b8=new RegExp(_0x49a642);}catch(_0x3d6cd7){throw new ToolExecutionError(_0x2db7e9(_0x2e9885._0x1281ca,-_0x2e9885._0x35e703,-_0x2e9885._0x3325d2,-_0x2e9885._0x5b017a)+_0x3d6cd7['message'],{'shellId':_0x172834,'regex':_0x49a642});}let _0x19ef27=_0x525beb;if(!_0x583b82){const _0x476d1d=_0x525beb[_0x2db7e9(_0x2e9885._0x5409da,_0x2e9885._0x2373fc,0x141,0x24b)]('\x0a');_0x19ef27=_0x476d1d>=0x0?_0x525beb[_0x2db7e9(-_0x2e9885._0x57898c,-0xf9,-_0x2e9885._0x4c6279,-_0x2e9885._0x5aec1f)](0x0,_0x476d1d+0x1):'';}_0x26920b=_0x19ef27[_0x353d87(_0x2e9885._0x5e6810,_0x2e9885._0x48ddf2,0x183,0x2ba)]('\x0a')[_0x2db7e9(-_0x2e9885._0x4f8179,_0x2e9885._0x3b48bb,-_0x2e9885._0x3015e2,0xb6)](_0x3aa608=>_0x1648b8[_0x353d87(0x243,0x47b,0x32a,0x44f)](_0x3aa608))[_0x2db7e9(-_0x2e9885._0x514a41,-0xfc,-_0x2e9885._0x4f4de2,_0x2e9885._0x2a4482)]('\x0a'),_0x3e126c[_0x2db7e9(-0x48,-_0x2e9885._0x2bd74c,-0x263,-_0x2e9885._0xc4a2a4)]=_0x182019+_0x19ef27[_0x2db7e9(-_0x2e9885._0x51d4bc,-_0x2e9885._0xab7e4b,-_0x2e9885._0x56cca7,-0x1b0)];}function _0x353d87(_0x5b1182,_0x382dcd,_0x515798,_0x4028a7){return _0x1a7bb7(_0x5b1182-_0x1c1c5c._0x4a03dd,_0x515798-0x11b,_0x515798-0x69,_0x4028a7);}const _0x2662fb=(_0x4bba27>0x0?_0x2db7e9(-_0x2e9885._0x2cf73c,-0x113,-_0x2e9885._0x239032,0x5e)+_0x4bba27+_0x2db7e9(-_0x2e9885._0x1bb862,_0x2e9885._0x2bf28f,_0x2e9885._0x13e48f,-_0x2e9885._0x375133):'')+_0x26920b;return{'output':_0x2662fb,'status':_0x3e126c[_0x353d87(_0x2e9885._0x35419d,0x3a9,0x33c,0x3ae)],'exitCode':_0x3e126c[_0x2db7e9(-_0x2e9885._0x5bc510,-_0x2e9885._0x3f1a6f,-_0x2e9885._0xd711c1,-_0x2e9885._0x3be2c7)],'signal':_0x3e126c[_0x2db7e9(-_0x2e9885._0x6384a4,-0x13c,-_0x2e9885._0xa074af,-0x17d)],'truncated':_0x4bba27>0x0};}['list'](){const _0x54930a={_0x537742:0x1aa,_0x1ad2dc:0x16c},_0x4eb985={_0x880404:0x92,_0x3ba7c8:0xe7,_0x19f712:0xd0};function _0x2c8bf5(_0x1c7747,_0x499fe8,_0x196ad1,_0x182f66){return _0x1a7bb7(_0x1c7747-_0x4eb985._0x880404,_0x1c7747-_0x4eb985._0x3ba7c8,_0x196ad1-_0x4eb985._0x19f712,_0x196ad1);}return[...this[_0x2c8bf5(_0x54930a._0x537742,0x26e,_0x54930a._0x1ad2dc,0x196)]['values']()];}[_0x1a7bb7(0x280,0x1d8,0xa6,0xdc)](_0x5f6626){const _0x319149={_0x1c104b:0x67,_0x2bd3f8:0x50c,_0xb8aec9:0x507,_0x557cc0:0x3e9,_0x5110a1:0x54,_0x54e57a:0x33,_0x4c16e1:0x4b1,_0x976466:0x56e,_0x2e00f6:0x203,_0x36cb63:0x697,_0x4a903b:0x6f2,_0x20a51b:0x6c1,_0x2dad0c:0x573,_0x4627fb:0x39b,_0x5af056:0x34d,_0x50b497:0x4b7,_0x51b448:0x49a},_0x139a99={_0x3ff1e:0x223,_0x2f1adc:0x3d},_0x506d24=this['entries'][_0x3755dc(_0x319149._0x1c104b,-0xc5,-0x158,-0x14c)](_0x5f6626);function _0x285326(_0x303498,_0x2acbac,_0x480bda,_0x3f838e){return _0x1a7bb7(_0x303498-0x30,_0x303498-0x44d,_0x480bda-0x1dc,_0x3f838e);}function _0x3755dc(_0x2f133c,_0x143164,_0xc46cf6,_0x5d8333){return _0x1a7bb7(_0x2f133c-0xff,_0x143164- -_0x139a99._0x3ff1e,_0xc46cf6-_0x139a99._0x2f1adc,_0x5d8333);}if(!_0x506d24)throw new ToolExecutionError(_0x285326(_0x319149._0x2bd3f8,_0x319149._0xb8aec9,0x5a1,_0x319149._0x557cc0)+_0x5f6626,{'shellId':_0x5f6626});if(_0x506d24[_0x3755dc(-_0x319149._0x5110a1,-0x2,-_0x319149._0x54e57a,0x6d)]===_0x285326(_0x319149._0x4c16e1,_0x319149._0x976466,0x5da,0x49c)&&_0x506d24['child']&&!_0x506d24[_0x3755dc(-0x28e,-_0x319149._0x2e00f6,-0x230,-0x36e)]){_0x506d24['killRequested']=!![];try{killProcessGroup(_0x506d24[_0x285326(0x63c,0x5eb,0x73a,_0x319149._0x36cb63)],process['platform']===_0x285326(0x57e,_0x319149._0x4a903b,_0x319149._0x20a51b,_0x319149._0x2dad0c));}catch{}}return{'status':_0x506d24['status'],'exitCode':_0x506d24[_0x3755dc(-_0x319149._0x4627fb,-0x23c,-0x308,-_0x319149._0x5af056)],'signal':_0x506d24[_0x285326(_0x319149._0x50b497,0x425,_0x319149._0x51b448,0x35f)]};}async['closeAll'](){const _0x66af6b={_0x2c30e6:0x3ca,_0x445cf5:0x48f,_0x457288:0x443,_0x2757ed:0x46b,_0x119aac:0x37a,_0x20a3fe:0x100,_0x5651b0:0x162,_0x468bd0:0x484,_0x520cdc:0x4b5,_0x5a6e0a:0x5d8,_0xaec463:0x400,_0x2c0988:0x493,_0x2dd15f:0x41f,_0x2a7436:0x3cf,_0x80dd0d:0x45b},_0x329b79={_0x5af278:0x190};function _0xb16aa6(_0x258d1d,_0x72380d,_0x5607eb,_0x57d9f7){return _0x17d408(_0x258d1d-_0x329b79._0x5af278,_0x72380d-0xf6,_0x57d9f7,_0x258d1d-0x212);}function _0x48a62d(_0x1793ab,_0xd483b8,_0x135670,_0x2722f4){return _0x17d408(_0x1793ab-0xf1,_0xd483b8-0xa3,_0x135670,_0x1793ab-0x10f);}for(const _0xc2696b of this['entries'][_0xb16aa6(_0x66af6b._0x2c30e6,0x440,_0x66af6b._0x445cf5,_0x66af6b._0x457288)]()){if(_0xc2696b[_0x48a62d(0x3bc,_0x66af6b._0x2757ed,0x4d1,_0x66af6b._0x119aac)]===_0x48a62d(0x1ff,_0x66af6b._0x20a3fe,_0x66af6b._0x5651b0,0x1cd)&&_0xc2696b['child']&&!_0xc2696b['processExited']){_0xc2696b[_0xb16aa6(_0x66af6b._0x468bd0,_0x66af6b._0x520cdc,_0x66af6b._0x5a6e0a,0x525)]=!![];try{killProcessGroup(_0xc2696b[_0xb16aa6(0x48d,0x3c7,0x323,_0x66af6b._0xaec463)],process[_0xb16aa6(0x450,_0x66af6b._0x2c0988,_0x66af6b._0x2dd15f,0x391)]===_0xb16aa6(_0x66af6b._0x2a7436,_0x66af6b._0x80dd0d,0x388,0x4e7));}catch{}}}}[_0x1a7bb7(-0x113,-0x3,-0x141,-0x101)](_0x12de6c,_0x66410e){const _0x558c98={_0x572b50:0x2d9,_0x2be1d9:0x2ff,_0x4c5f0f:0x1b2,_0x4a799f:0x217,_0x142c72:0x2e9,_0x16c5ca:0x37c,_0x27c07d:0x2b2,_0x3581bb:0x1d2,_0x35f5c6:0x19f,_0x49fec6:0xd8,_0x278949:0x44,_0x26fc54:0x1bf,_0x3b2b5a:0x2d,_0x2d19fe:0x1d3,_0x4d4959:0x3c1,_0x462056:0x36e,_0x484901:0x3d4,_0x3fb221:0x1f7,_0x3446e9:0x5e,_0x54c7d4:0x139,_0x210d6a:0x343,_0x24b663:0x333,_0x30c130:0x3af,_0x57ceb6:0x2cc,_0x54c088:0xa2,_0x30bffd:0xc,_0x216ecd:0x2b2,_0x214af4:0x4d4,_0x1a2fb6:0x4dc,_0x140d1d:0x3c1,_0x1ff1c7:0x3dc,_0x417cd7:0x24,_0x26d7ff:0x1e1,_0x13cf57:0x227},_0x1e8e88={_0x565a05:0x149},_0x240ac8=_0x12de6c[_0x26efa1(_0x558c98._0x572b50,_0x558c98._0x2be1d9,0x341,_0x558c98._0x4c5f0f)]?stripAnsiAndControls(_0x66410e):_0x66410e;if(_0x240ac8[_0x26efa1(_0x558c98._0x4a799f,_0x558c98._0x142c72,0x3d3,_0x558c98._0x16c5ca)]===0x0)return;function _0x2e1d5c(_0x1bffe4,_0x267beb,_0x534395,_0x2dcdb5){return _0x1a7bb7(_0x1bffe4-_0x1e8e88._0x565a05,_0x534395- -0x13a,_0x534395-0x1e9,_0x1bffe4);}function _0x26efa1(_0x211680,_0x35293d,_0x569692,_0x537c04){return _0x1a7bb7(_0x211680-0x18c,_0x35293d-0x26a,_0x569692-0x1cd,_0x569692);}_0x12de6c[_0x26efa1(0x2b9,_0x558c98._0x27c07d,0x17c,_0x558c98._0x3581bb)][_0x2e1d5c(0xc8,0x1e0,0x14c,0x129)](_0x240ac8),_0x12de6c[_0x2e1d5c(-_0x558c98._0x35f5c6,-0x21b,-_0x558c98._0x49fec6,_0x558c98._0x278949)]+=_0x240ac8[_0x2e1d5c(-_0x558c98._0x26fc54,-_0x558c98._0x3b2b5a,-0xbb,-_0x558c98._0x2d19fe)],_0x12de6c[_0x26efa1(_0x558c98._0x4d4959,_0x558c98._0x462056,_0x558c98._0x484901,0x24e)]+=_0x240ac8[_0x2e1d5c(-_0x558c98._0x3fb221,_0x558c98._0x3446e9,-0xbb,-_0x558c98._0x54c7d4)];while(_0x12de6c[_0x2e1d5c(-0x79,-0x26,-0xd8,-0x231)]>this[_0x26efa1(_0x558c98._0x210d6a,_0x558c98._0x24b663,0x2d0,_0x558c98._0x30c130)]){const _0x3dbdcb=_0x12de6c[_0x26efa1(0x182,_0x558c98._0x57ceb6,0x164,0x254)]-this['capChars'],_0x173453=_0x12de6c[_0x2e1d5c(0x3c,-_0x558c98._0x54c088,-0xf2,-_0x558c98._0x30bffd)][0x0];_0x173453['length']<=_0x3dbdcb?(_0x12de6c[_0x26efa1(0x366,_0x558c98._0x216ecd,0x268,0x138)][_0x26efa1(_0x558c98._0x214af4,_0x558c98._0x1a2fb6,_0x558c98._0x140d1d,0x40e)](),_0x12de6c[_0x26efa1(_0x558c98._0x1ff1c7,0x2cc,0x17d,0x39d)]-=_0x173453[_0x26efa1(0x43b,_0x558c98._0x142c72,0x43b,0x23f)],_0x12de6c[_0x2e1d5c(-0x83,-0x156,-0x117,_0x558c98._0x417cd7)]+=_0x173453[_0x2e1d5c(-0xc2,-_0x558c98._0x26d7ff,-0xbb,-_0x558c98._0x13cf57)]):(_0x12de6c['buffer'][0x0]=_0x173453['slice'](_0x3dbdcb),_0x12de6c['bufferChars']-=_0x3dbdcb,_0x12de6c['totalDropped']+=_0x3dbdcb);}}[_0x1a7bb7(0x14a,0x75,-0xb1,0x10a)](){const _0xaea98e={_0x441123:0x434,_0x96b9f5:0x835,_0xe95986:0x444,_0x1154b1:0x41c,_0x558871:0x48f,_0x1e6f6a:0x31b,_0x577eb5:0x534},_0xc5fb13={_0x15037d:0x1a0,_0xccd4c2:0x340},_0x27c521={_0x522218:0xbd};function _0x34c900(_0x46f068,_0x168e35,_0xe1f0ae,_0x50602b){return _0x1a7bb7(_0x46f068-0x16b,_0x168e35-0x430,_0xe1f0ae-_0x27c521._0x522218,_0xe1f0ae);}if(this['entries'][_0x34c900(0x639,0x51e,_0xaea98e._0x441123,0x4e9)]<=this[_0x34c900(0x7b7,0x6cc,0x734,_0xaea98e._0x96b9f5)])return;function _0x37440b(_0x5b3b38,_0xb0281a,_0x1f35fb,_0x408b21){return _0x17d408(_0x5b3b38-_0xc5fb13._0x15037d,_0xb0281a-0x1ba,_0x5b3b38,_0xb0281a-_0xc5fb13._0xccd4c2);}for(const [_0x5d693d,_0x16896e]of this[_0x34c900(0x604,0x4f3,0x378,_0xaea98e._0xe95986)]){if(_0x16896e['status']!==_0x37440b(0x35a,0x430,0x322,_0xaea98e._0x1154b1)){this[_0x37440b(0x5ba,_0xaea98e._0x558871,_0xaea98e._0x1e6f6a,0x5de)][_0x37440b(0x5b4,0x5e1,0x692,_0xaea98e._0x577eb5)](_0x5d693d);return;}}}};function createBashOutputTool(_0x3bd24a){const _0xf57936={_0x4ef224:0x38c,_0x3daafd:0x2d5,_0x11e13d:0x220,_0x226291:0x11f,_0x2bee0b:0x23,_0x1884a0:0x25c,_0x17ebdd:0x264},_0x1ab64a={_0x33ab29:0x543,_0x7b2086:0x412,_0x2fef0f:0x4ef,_0x48fce6:0x48c,_0x32ae35:0x390,_0x58266e:0x57c,_0x46fb17:0x48d,_0x532e4e:0x532,_0x4760f4:0x8,_0x301814:0x263,_0x5b1b43:0x12,_0x3b5f57:0x7,_0x33f5e9:0x1b5,_0x2805c9:0xdc,_0x438427:0x184,_0x4563ba:0x11f,_0x47181a:0x374},_0x5eda69={_0x1707fd:0xad,_0x41daad:0xe6},_0x2ea92c={_0x58a18e:0x2f8},_0x2610b4={_0x1ace19:0x6,_0x159a75:0x19a,_0x4a4c80:0x93},{registry:_0x5b2eb2}=_0x3bd24a;function _0x410a8b(_0x225bc1,_0x27dd0d,_0x521cde,_0x9ede38){return _0x17d408(_0x225bc1-_0x2610b4._0x1ace19,_0x27dd0d-_0x2610b4._0x159a75,_0x9ede38,_0x27dd0d-_0x2610b4._0x4a4c80);}function _0x1bc749(_0x134b32,_0x35222f,_0x3f4458,_0x441a99){return _0x17d408(_0x134b32-0x129,_0x35222f-0x9e,_0x35222f,_0x441a99- -_0x2ea92c._0x58a18e);}return defineTool({'name':'BashOutput','description':_0x410a8b(0x162,0x251,0x1b1,_0xf57936._0x4ef224),'inputSchema':{'type':_0x410a8b(0x402,0x39d,0x3af,_0xf57936._0x3daafd),'properties':{'shellId':{'type':_0x1bc749(-_0xf57936._0x11e13d,-_0xf57936._0x226291,_0xf57936._0x2bee0b,-0x128)},'regex':{'type':'string'}},'required':[_0x1bc749(-0x1eb,-_0xf57936._0x1884a0,-_0xf57936._0x17ebdd,-0x16c)]},async *'execute'(_0x19850b){const _0x5807d0={_0x24545d:0x11,_0x4ed0b0:0x2d0};function _0x3066fb(_0x4f0eea,_0x16fc3a,_0x3ea52c,_0x415b70){return _0x410a8b(_0x4f0eea-_0x5807d0._0x24545d,_0x16fc3a-_0x5807d0._0x4ed0b0,_0x3ea52c-0xdf,_0x415b70);}const _0x4919a7=_0x5b2eb2[_0x3066fb(0x5a5,0x581,_0x1ab64a._0x33ab29,_0x1ab64a._0x7b2086)](_0x19850b[_0x3066fb(0x4f5,_0x1ab64a._0x2fef0f,_0x1ab64a._0x48fce6,_0x1ab64a._0x32ae35)],_0x19850b[_0x3066fb(_0x1ab64a._0x58266e,0x5b8,_0x1ab64a._0x46fb17,_0x1ab64a._0x532e4e)]?{'regex':_0x19850b['regex']}:void 0x0);function _0x2afbf3(_0x11dfad,_0x4fc6ea,_0x27076e,_0x5b6095){return _0x410a8b(_0x11dfad-0x118,_0x27076e- -_0x5eda69._0x1707fd,_0x27076e-_0x5eda69._0x41daad,_0x4fc6ea);}return createToolOutput(_0x4919a7['output'],{'shellId':_0x19850b[_0x2afbf3(-_0x1ab64a._0x4760f4,_0x1ab64a._0x301814,0x172,_0x1ab64a._0x5b1b43)],'status':_0x4919a7['status'],'exitCode':_0x4919a7[_0x2afbf3(_0x1ab64a._0x4760f4,0x1c6,0x59,-0x88)],'signal':_0x4919a7[_0x2afbf3(_0x1ab64a._0x3b5f57,_0x1ab64a._0x33f5e9,_0x1ab64a._0x2805c9,0x15a)],'truncated':_0x4919a7[_0x2afbf3(_0x1ab64a._0x438427,_0x1ab64a._0x4563ba,0x277,_0x1ab64a._0x47181a)]});}});}import{spawn as _0x587b7b}from'child_process';import{statSync}from'fs';import*as _0x1316a0 from'os';import*as _0x2bb2e9 from'path';import{StringDecoder as _0x3575e0}from'string_decoder';import{stat}from'fs/promises';import*as _0x3ae4db from'path';function isPathInside(_0x4ff371,_0x1ad962){const _0x597392={_0x16f6db:0x44,_0xb98586:0x45,_0x324f1b:0x48a,_0x186711:0x4ee,_0x33d65e:0x47f,_0xb2f995:0x598,_0x2d01d8:0x67e,_0x630330:0x490},_0x3ed6be={_0x1f2155:0xe7},_0xb36f8e={_0x1cf9e5:0x188,_0x115a53:0x34f},_0x31f3ff=_0x3ae4db[_0x59790c(-0x171,-_0x597392._0x16f6db,-_0x597392._0xb98586,-0x1ea)](_0x4ff371);function _0x531120(_0x473b71,_0x1ed40b,_0x499084,_0x2969ae){return _0x1a7bb7(_0x473b71-_0xb36f8e._0x1cf9e5,_0x499084-_0xb36f8e._0x115a53,_0x499084-0x151,_0x2969ae);}function _0x59790c(_0x504d09,_0x219920,_0x589248,_0x5d2db0){return _0x1a7bb7(_0x504d09-0x6a,_0x504d09- -0x26d,_0x589248-_0x3ed6be._0x1f2155,_0x219920);}const _0x125a47=_0x3ae4db['relative'](_0x31f3ff,_0x1ad962);return _0x125a47===''||!_0x125a47[_0x531120(_0x597392._0x324f1b,_0x597392._0x186711,_0x597392._0x33d65e,0x5e3)]('..')&&!_0x3ae4db[_0x531120(_0x597392._0xb2f995,_0x597392._0x2d01d8,0x5a8,_0x597392._0x630330)](_0x125a47);}function resolveWorkspacePath(_0x13ca99,_0xa0e78){return resolveAllowedPath(_0x13ca99,[],_0xa0e78);}function resolveAllowedPath(_0x3ce0b8,_0x10633c,_0x33754f){const _0x3520f7={_0x4a8f16:0xac,_0x3fe5d4:0x2,_0x3780f5:0xb,_0x5a9286:0x4e,_0x2c87b8:0xf0,_0x5007e5:0x6e,_0x2d629a:0x43,_0xfa21bb:0x1ff,_0x53f797:0x64,_0x4de406:0x19c},_0x10e26b={_0x567ecd:0x1d8},_0x42bef8={_0x26d5ba:0x1c5,_0x39197d:0x181},_0x403132=_0x3ae4db['resolve'](_0x3ce0b8);function _0x41575f(_0x16defb,_0x576821,_0x5dd7e5,_0x2130a1){return _0x1a7bb7(_0x16defb-_0x42bef8._0x26d5ba,_0x5dd7e5- -0xf1,_0x5dd7e5-_0x42bef8._0x39197d,_0x2130a1);}const _0x243533=_0x3ae4db[_0x41575f(_0x3520f7._0x4a8f16,-_0x3520f7._0x3fe5d4,_0x3520f7._0x3780f5,_0x3520f7._0x5a9286)](_0x403132,_0x33754f),_0x16abdb=[_0x403132,..._0x10633c[_0x41575f(_0x3520f7._0x2c87b8,-_0x3520f7._0x5007e5,_0x3520f7._0x2d629a,0xfb)](_0x3b3f71=>_0x3ae4db[_0x35b682(0xc1,0x2dc,0x1fa,0x29a)](_0x3b3f71))];function _0x35b682(_0x32b3eb,_0x2c949e,_0xbe32d4,_0x3b3685){return _0x17d408(_0x32b3eb-_0x10e26b._0x567ecd,_0x2c949e-0x107,_0x3b3685,_0xbe32d4-0x72);}if(_0x16abdb[_0x35b682(_0x3520f7._0xfa21bb,_0x3520f7._0x53f797,_0x3520f7._0x4de406,0x5e)](_0x5adbb4=>isPathInside(_0x5adbb4,_0x243533)))return _0x243533;throw new ToolExecutionError(_0x41575f(-0xa7,-0xb8,-0xe7,-0x152)+_0x33754f,{'path':_0x33754f,'rootDir':_0x403132,'allowedDirs':_0x16abdb});}async function assertWorkspaceFile(_0xc0f6a9){const _0x41df50={_0x59fad0:0x215,_0x5ad64f:0x334,_0x312787:0x2dd,_0x4c4dd7:0x3bd,_0x1026b9:0x24d,_0x52924a:0x283},_0x3c06d3={_0x521794:0x128,_0x13cfdc:0xb2,_0x4e17d7:0x29d},_0x2e2149={_0x10427e:0x177};function _0x46568b(_0x506aca,_0x211021,_0x1be53a,_0x51b69c){return _0x17d408(_0x506aca-_0x2e2149._0x10427e,_0x211021-0x199,_0x51b69c,_0x211021-0xe);}function _0x145d76(_0x16c39c,_0x5b4598,_0x19d184,_0x176482){return _0x17d408(_0x16c39c-_0x3c06d3._0x521794,_0x5b4598-_0x3c06d3._0x13cfdc,_0x19d184,_0x16c39c- -_0x3c06d3._0x4e17d7);}const _0x14631b=await stat(_0xc0f6a9);if(!_0x14631b[_0x46568b(_0x41df50._0x59fad0,_0x41df50._0x5ad64f,0x344,_0x41df50._0x312787)]())throw new ToolExecutionError(_0x46568b(_0x41df50._0x4c4dd7,_0x41df50._0x1026b9,_0x41df50._0x52924a,0x2c4)+_0xc0f6a9,{'path':_0xc0f6a9});}function isProbablyBinary(_0x4b5237){const _0x3f7354={_0x48894d:0x1c9},_0x1e29fc={_0xcd9e:0x63,_0x339856:0x98};function _0xd175a6(_0x153e4f,_0x56d322,_0x30cb92,_0x2f94f9){return _0x17d408(_0x153e4f-0x11b,_0x56d322-_0x1e29fc._0xcd9e,_0x56d322,_0x153e4f- -_0x1e29fc._0x339856);}return _0x4b5237[_0xd175a6(0x15d,_0x3f7354._0x48894d,0x264,0xbe)](0x0);}var DEFAULT_DESCRIPTION=_0x1a7bb7(0x1fe,0x10b,0x26d,0xf),DEFAULT_TIMEOUT_MS=0x7530;function buildChildEnv(_0x43c8ab,_0x3ead6a){const _0x1ff61c={_0x42ba52:0x67b,_0x41a60f:0x5c4,_0xefd4f0:0x672,_0x405ab8:0x300,_0x4c3e22:0x3cf,_0x2ee35c:0x502,_0x1ae75b:0x45d,_0x53b950:0x79,_0x4d3534:0xfc,_0x44a1eb:0x74,_0x56767f:0x1c8,_0x5ab925:0x116,_0x90f459:0x1fb,_0x255ced:0xb2,_0x39fd11:0x19a,_0x2d39d9:0x1f4},_0x5d716a={_0x301baa:0x3fd,_0x2ec591:0xf4},_0x533217={_0x572cb7:0xcc,_0x22d703:0x18d};function _0x59e7a0(_0x3bb2d9,_0xe3d715,_0x47ef64,_0x4b1c45){return _0x17d408(_0x3bb2d9-_0x533217._0x572cb7,_0xe3d715-_0x533217._0x22d703,_0x4b1c45,_0x3bb2d9- -0x162);}function _0x1bbe86(_0x420e2c,_0x49c752,_0x219561,_0x292bb2){return _0x1a7bb7(_0x420e2c-0xc4,_0x49c752-_0x5d716a._0x301baa,_0x219561-_0x5d716a._0x2ec591,_0x420e2c);}const _0x543e85={...process[_0x1bbe86(_0x1ff61c._0x42ba52,0x539,_0x1ff61c._0x41a60f,_0x1ff61c._0xefd4f0)],..._0x43c8ab??{}};if(_0x3ead6a[_0x1bbe86(_0x1ff61c._0x405ab8,0x47c,_0x1ff61c._0x4c3e22,_0x1ff61c._0x2ee35c)]===0x0)return _0x543e85;if(_0x1316a0[_0x1bbe86(0x6ac,0x5af,_0x1ff61c._0x1ae75b,0x6af)]()===_0x59e7a0(0x5b,-_0x1ff61c._0x53b950,_0x1ff61c._0x4d3534,-0xc2)){const _0x214039=new Set(_0x3ead6a['map'](_0x77e9ff=>_0x77e9ff['toLowerCase']()));for(const _0x186807 of Object[_0x59e7a0(_0x1ff61c._0x44a1eb,0x1d7,_0x1ff61c._0x56767f,0x14a)](_0x543e85)){if(_0x214039[_0x59e7a0(_0x1ff61c._0x5ab925,0x12a,0x20d,_0x1ff61c._0x90f459)](_0x186807[_0x59e7a0(_0x1ff61c._0x255ced,_0x1ff61c._0x39fd11,0x145,_0x1ff61c._0x2d39d9)]()))delete _0x543e85[_0x186807];}}else{for(const _0x4e3707 of _0x3ead6a)delete _0x543e85[_0x4e3707];}return _0x543e85;}function mapSpawnError(_0x51ef9e,_0xe5d589){const _0x9ba084={_0x9910e2:0x243,_0x3fe034:0xfa,_0x2bd237:0x47,_0x1e731d:0x162,_0x257179:0xc,_0x8d1711:0x87,_0x1481b5:0x65,_0x1b00d8:0x2bd,_0x373c78:0x1c6},_0x2956ea={_0x14393f:0x47,_0x295e5a:0x17c},_0x26acde={_0x3761cb:0x1c7,_0x4c797e:0x133};function _0x3406a1(_0x23de66,_0x361d11,_0x514b0e,_0xc6c2d8){return _0x1a7bb7(_0x23de66-_0x26acde._0x3761cb,_0x514b0e-0x13c,_0x514b0e-_0x26acde._0x4c797e,_0x361d11);}function _0x4c2ffd(_0x351945,_0x30a7a0,_0x468ecf,_0x5c3d06){return _0x17d408(_0x351945-_0x2956ea._0x14393f,_0x30a7a0-_0x2956ea._0x295e5a,_0x30a7a0,_0x351945- -0x2bf);}if(isErrnoException(_0x51ef9e)&&_0x51ef9e[_0x4c2ffd(-0x124,-_0x9ba084._0x9910e2,-_0x9ba084._0x3fe034,-_0x9ba084._0x2bd237)]===_0x4c2ffd(-0xf9,-0xae,-0x1a8,-0x124))return new ToolExecutionError(_0x3406a1(_0x9ba084._0x1e731d,0x215,0x215,0x255)+_0xe5d589[_0x4c2ffd(-_0x9ba084._0x257179,-_0x9ba084._0x8d1711,0x36,-_0x9ba084._0x1481b5)],_0xe5d589);return new ToolExecutionError(_0x51ef9e instanceof Error?_0x51ef9e[_0x3406a1(_0x9ba084._0x1b00d8,0x47a,0x338,_0x9ba084._0x373c78)]:String(_0x51ef9e),_0xe5d589);}function shellExists(_0x2ddd4c){try{const _0x1e7b20=statSync(_0x2ddd4c);return _0x1e7b20['isFile']()&&(_0x1e7b20['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x40594c){const _0x16472f={_0x433dd9:0x63,_0x507473:0x21,_0x442107:0x51,_0x3bb8e3:0x6e,_0x335ebd:0x4,_0x2c1b14:0x418,_0x5b61db:0x381,_0x51e11a:0x39c,_0x4272f0:0x17,_0x25d254:0x25,_0xaa01b:0x3bd,_0x17c7f8:0x264,_0x2b2f17:0x46a,_0x3bbe34:0x11f,_0x2aed5c:0x14e,_0x37c0ee:0xb4},_0x29b303={_0x346517:0x19f,_0x492285:0xce},_0x199368={_0x351dd4:0x57,_0x17b5cd:0x127};function _0x327023(_0x2e2693,_0x372b8f,_0x472a39,_0x65243e){return _0x1a7bb7(_0x2e2693-_0x199368._0x351dd4,_0x2e2693-_0x199368._0x17b5cd,_0x472a39-0x1dd,_0x472a39);}if(_0x40594c)return _0x40594c;if(_0x1316a0['platform']()===_0x4562c9(0x13e,_0x16472f._0x433dd9,-_0x16472f._0x507473,0x5a))return process[_0x4562c9(-_0x16472f._0x442107,_0x16472f._0x3bb8e3,-_0x16472f._0x335ebd,0xc6)][_0x327023(0x2cf,_0x16472f._0x2c1b14,_0x16472f._0x5b61db,_0x16472f._0x51e11a)]||'cmd.exe';const _0x3f7034=[_0x4562c9(-_0x16472f._0x4272f0,-_0x16472f._0x25d254,-0xe7,0x25),_0x327023(_0x16472f._0xaa01b,_0x16472f._0x17c7f8,_0x16472f._0x2b2f17,0x2fe),'/usr/bin/bash',_0x327023(0x289,0x3ce,0x339,0x1cb)];function _0x4562c9(_0x3e73d0,_0x28bdff,_0x526a92,_0x53832b){return _0x1a7bb7(_0x3e73d0-_0x29b303._0x346517,_0x28bdff- -_0x29b303._0x492285,_0x526a92-0x1c7,_0x3e73d0);}for(const _0x2a9006 of _0x3f7034){if(shellExists(_0x2a9006))return _0x2a9006;}const _0x18d265=process['env']['SHELL'];if(_0x18d265&&shellExists(_0x18d265))return _0x18d265;return _0x4562c9(_0x16472f._0x3bbe34,-0x25,-_0x16472f._0x2aed5c,-_0x16472f._0x37c0ee);}function buildShellArgs(_0xfe455b,_0x5253d8){const _0x2c7a53={_0x36d80d:0xfa,_0x50af0b:0x30,_0x58b863:0xb5,_0x315acb:0x106,_0x1d4199:0x257},_0x38d478={_0x22dcfe:0x83},_0x514cb7={_0xbb4177:0x4f};function _0x13ecf3(_0x343c32,_0x37d470,_0x4e0428,_0x469466){return _0x17d408(_0x343c32-0x7d,_0x37d470-_0x514cb7._0xbb4177,_0x469466,_0x4e0428- -0x315);}function _0x42547a(_0x1f0f9a,_0xa33c8d,_0x3ad96d,_0x192bdc){return _0x1a7bb7(_0x1f0f9a-_0x38d478._0x22dcfe,_0x1f0f9a- -0x37,_0x3ad96d-0xcd,_0x192bdc);}if(_0x1316a0['platform']()===_0x42547a(_0x2c7a53._0x36d80d,-_0x2c7a53._0x50af0b,0xa7,_0x2c7a53._0x58b863)){const _0x5cdba9=/cmd(\.exe)?$/i['test'](_0x5253d8);return _0x5cdba9?['/d','/s','/c',_0xfe455b]:['-NoLogo',_0x42547a(0x181,0x155,_0x2c7a53._0x315acb,_0x2c7a53._0x1d4199),'-Command',_0xfe455b];}return['-c',_0xfe455b];}function resolveWorkingDirectory(_0x36139c,_0x24710b,_0x45a85f){const _0xdf81b5={_0x273190:0x55e,_0x195105:0x446,_0x4ebe0a:0x4c6,_0x590fbb:0x4de,_0x3dd5f7:0x4c9,_0x211449:0x465,_0x35de2d:0x1ee,_0x240b4e:0x2df,_0x5770fb:0x31e},_0x3cafd7={_0xc515e2:0x314,_0xe4895:0x192};function _0x7f2779(_0x1ce107,_0x3b6223,_0x416bc9,_0x41c9c8){return _0x1a7bb7(_0x1ce107-0x19b,_0x416bc9-_0x3cafd7._0xc515e2,_0x416bc9-_0x3cafd7._0xe4895,_0x1ce107);}function _0x5bcdd7(_0x107d0a,_0x38b92c,_0x52fd60,_0x45d9e9){return _0x17d408(_0x107d0a-0x43,_0x38b92c-0xca,_0x38b92c,_0x45d9e9- -0x33b);}const _0x547a1c=resolveAllowedPath(_0x24710b,_0x45a85f,_0x36139c??'.');try{const _0x505576=statSync(_0x547a1c);if(!_0x505576[_0x7f2779(_0xdf81b5._0x273190,_0xdf81b5._0x195105,0x556,_0xdf81b5._0x4ebe0a)]())throw new ToolExecutionError(_0x7f2779(_0xdf81b5._0x590fbb,0x4f3,_0xdf81b5._0x3dd5f7,_0xdf81b5._0x211449)+_0x547a1c,{'cwd':_0x547a1c});return _0x547a1c;}catch(_0x1fdfdd){if(_0x1fdfdd instanceof ToolExecutionError)throw _0x1fdfdd;throw new ToolExecutionError(_0x7f2779(0x1a1,_0xdf81b5._0x35de2d,_0xdf81b5._0x240b4e,_0xdf81b5._0x5770fb)+_0x547a1c,{'cwd':_0x547a1c});}}function appendChunk(_0x4dec33,_0x593f77,_0x18dc0f,_0x568cb8,_0x397f11){const _0x4afa27={_0x104982:0x448,_0x42b7c3:0x656},_0xd6a7c={_0x394d3d:0x48,_0x274fd5:0xa7},_0x2a6fa4={_0x5abe58:0xec,_0x3f1a2d:0x33d};function _0x98af1(_0x4d6da3,_0x49e8bb,_0x5e2ee8,_0x171753){return _0x17d408(_0x4d6da3-0x36,_0x49e8bb-_0x2a6fa4._0x5abe58,_0x5e2ee8,_0x49e8bb-_0x2a6fa4._0x3f1a2d);}function _0x5dce83(_0x35847a,_0x3f5ddc,_0x2bee58,_0x3a9d8f){return _0x17d408(_0x35847a-_0xd6a7c._0x394d3d,_0x3f5ddc-_0xd6a7c._0x274fd5,_0x2bee58,_0x3a9d8f-0x34c);}const _0x3e0f6e=_0x568cb8?stripAnsiAndControls(_0x18dc0f):_0x18dc0f;if(_0x3e0f6e[_0x98af1(0x377,_0x4afa27._0x104982,0x545,0x3e4)]===0x0)return;_0x4dec33['push'](_0x3e0f6e),_0x593f77[_0x5dce83(0x533,_0x4afa27._0x42b7c3,0x691,0x65e)](_0x3e0f6e),_0x397f11();}function createBashTool(_0x23e168={}){const _0x3420d3={_0x3a64e6:0x2fa,_0x553031:0x3a8,_0x4ac19a:0x22c,_0x5ebe26:0x3ca,_0x1dbad2:0x3ec,_0x3d2051:0x4a7,_0x4c63af:0x2d7,_0x398660:0x4a6,_0x33ee0f:0x325,_0x254d2b:0x1e9,_0x3e35d0:0x475,_0x536c2f:0xf4,_0x1a2cb8:0x24e,_0xfc5b2c:0x14a,_0x24e8f1:0x109,_0xef84c3:0x1d6,_0x5df907:0x328,_0x510e7a:0x41b,_0x2e6d5a:0x409,_0x486326:0x43e,_0x3efcc2:0x374,_0x2b366a:0x5c7,_0x1806ea:0x5e7,_0x13b465:0x400,_0x1c1156:0x267,_0x3b6ccf:0x45a,_0xe09008:0x255,_0x1d6345:0x3ba,_0x4d37c7:0x2ee,_0x34cc04:0x33e,_0x566ce3:0x346,_0x2bfcdf:0x3ba,_0x4a630a:0x282,_0x5580f9:0x3e3,_0x1877cb:0x330},_0x1affab={_0x4ef603:0x82,_0x266799:0x77,_0x51f0e1:0x139,_0x5800e9:0x38c,_0x5df2f0:0x2de,_0x43e86e:0x2c2,_0x1cc72f:0x39d,_0x27d8b5:0x2cd,_0x42baff:0x1a,_0x58212f:0x21c,_0x2f1c50:0x75,_0x544bab:0x1ef,_0x196159:0x251,_0x10b355:0x15c,_0xddc5b:0xbd,_0x56084b:0x6b,_0x5a8fcd:0x107,_0x56d2ae:0x2c0,_0x1f6088:0x1e0,_0x552fb2:0x21a,_0x54d673:0x12e,_0x2bf84c:0x2df,_0x42a8e3:0xf9,_0x215d31:0x8d,_0x7db691:0x100,_0x1612a2:0x267,_0x314cc2:0x13d,_0x2cae56:0x2b,_0x215e7c:0x15d,_0x2dbfde:0x55,_0x39a005:0x22e,_0x3239ba:0x2cf,_0x47c0df:0x64,_0x315d2f:0xd6,_0xa28190:0x1de,_0x59225c:0xa4,_0x43ce08:0x62,_0x181036:0x1c3,_0x2e26dc:0x6f,_0x208af3:0x40,_0x3eb79d:0x2ff,_0x48cf41:0x332,_0x5e0e85:0x25a,_0x36bbf3:0x1d8,_0x36953a:0x16e,_0x59eacd:0x27b,_0x1a8836:0x278,_0x5c2809:0x3ca,_0x31fa79:0x7f,_0x2248b2:0xa7,_0x51354a:0x33f,_0x3a6857:0x45b,_0x43faaa:0x3ad,_0x1ce944:0x3f,_0x31c28c:0x5c,_0x138a32:0x55,_0x427a60:0x8,_0x115ee6:0xe5,_0x38a3dd:0xac,_0x5516fa:0x5b,_0x5e2b46:0x1dd,_0xfc8796:0x12f,_0x5969b5:0x66,_0x1e8c92:0x2c,_0x37b3e5:0x429,_0x1cfa85:0x168,_0x3bd7eb:0x18c,_0x4fc48d:0x17c,_0x125454:0x1f6,_0xbce95d:0x190,_0x102cfd:0x20b,_0x12951a:0x10,_0x447e63:0x1ae,_0x54a442:0xe3,_0x3e4656:0x97,_0x231e6a:0xfd,_0x43be14:0x30,_0xb30395:0x1eb,_0x57ab22:0x3a8,_0x4bdad9:0x1ad,_0x8a3173:0x1f8,_0x3e4364:0x98,_0x244fba:0x17a,_0x1a7ad7:0x98,_0x3cd397:0x22,_0xcbad62:0xcb,_0x2c65ae:0x21d,_0x579002:0x325,_0x48e16d:0x23a,_0x154295:0x287,_0x39240c:0x73,_0xe0fa52:0x83,_0x320bb7:0x1b2,_0x2c5eaf:0x22f,_0x42f573:0x32d,_0x25994a:0x2fc,_0x1bb084:0x4bf,_0x4b1a6c:0x34c},_0x5ba7dd={_0x3ac57d:0xe4},_0x2cd217={_0x1c0775:0x1e9},_0x33e97e={_0x25bad0:0x1a2};function _0xe25abd(_0x595689,_0x2dad32,_0xdf6b5a,_0x2c502d){return _0x17d408(_0x595689-_0x33e97e._0x25bad0,_0x2dad32-0x13a,_0x2c502d,_0x2dad32-0x172);}const _0x2f0768=_0x2bb2e9[_0xe25abd(0x36d,_0x3420d3._0x3a64e6,_0x3420d3._0x553031,_0x3420d3._0x4ac19a)](_0x23e168[_0xe25abd(_0x3420d3._0x5ebe26,0x411,_0x3420d3._0x1dbad2,_0x3420d3._0x3d2051)]??process[_0xe25abd(_0x3420d3._0x4c63af,0x40f,0x434,_0x3420d3._0x398660)]());function _0x14d28b(_0x410e37,_0x45a623,_0x8935da,_0x5d9539){return _0x17d408(_0x410e37-0x1e5,_0x45a623-0xa0,_0x45a623,_0x8935da- -0x380);}const _0x973f0=(_0x23e168[_0xe25abd(0x48a,_0x3420d3._0x33ee0f,_0x3420d3._0x254d2b,_0x3420d3._0x3e35d0)]??[])[_0x14d28b(-_0x3420d3._0x536c2f,-_0x3420d3._0x1a2cb8,-0x1c0,-0x97)](_0x5ad405=>_0x2bb2e9[_0xe25abd(0x2b9,0x2fa,0x31d,0x37c)](_0x5ad405)),_0x1e46d9=_0x23e168[_0x14d28b(-0x247,-0x1ed,-0x11d,-_0x3420d3._0xfc5b2c)]??DEFAULT_TIMEOUT_MS,_0x5b966d=_0x23e168[_0x14d28b(-0x333,-0x211,-0x25f,-0x1fd)]??!![],_0x1d9464=_0x23e168['name']??_0x14d28b(-_0x3420d3._0x24e8f1,-_0x3420d3._0xef84c3,-0x1db,-_0x3420d3._0x5df907),_0x2bf3c6=_0x23e168['scrubEnvKeys']??[],_0x306825=_0x23e168[_0xe25abd(_0x3420d3._0x510e7a,_0x3420d3._0x2e6d5a,_0x3420d3._0x486326,_0x3420d3._0x3efcc2)];return defineTool({'name':_0x1d9464,'description':_0x23e168['description']??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0xe25abd(_0x3420d3._0x2b366a,0x47c,_0x3420d3._0x1806ea,0x4da),'properties':{'command':{'type':'string'},'cwd':{'type':_0xe25abd(0x378,0x342,_0x3420d3._0x13b465,_0x3420d3._0x1c1156)},'timeoutMs':{'type':_0x14d28b(-_0x3420d3._0x3b6ccf,-_0x3420d3._0xe09008,-0x2de,-0x351)},'ignoreOutput':{'type':_0xe25abd(0x441,_0x3420d3._0x1d6345,_0x3420d3._0x4d37c7,_0x3420d3._0x34cc04)},'runInBackground':{'type':_0xe25abd(_0x3420d3._0x566ce3,_0x3420d3._0x2bfcdf,0x51c,_0x3420d3._0x4a630a)}},'required':[_0xe25abd(_0x3420d3._0x5580f9,0x2ac,_0x3420d3._0x254d2b,_0x3420d3._0x1877cb)]},async *'execute'(_0x33e135,_0x305666){const _0x143a26={_0x502d33:0x2e4,_0x35b3c8:0x1ef,_0xa9dead:0x174,_0x4658fb:0x1c0,_0x21ed08:0x16a,_0x3f2fe4:0x41b,_0x553a8c:0x2b3,_0x455dd6:0x1cb,_0x31da5d:0x139},_0x4553d4={_0x1aee3f:0x120},_0x411394={_0x27926e:0x3e,_0x3b9295:0x6a},_0x4a266b={_0x3587bc:0x3a5};function _0x1658bb(_0x3ec358,_0x478bb6,_0x4eaa7e,_0x20b7ea){return _0xe25abd(_0x3ec358-0xe3,_0x478bb6- -_0x4a266b._0x3587bc,_0x4eaa7e-0xa4,_0x20b7ea);}const _0x4f8bc1=_0x33e135[_0x1658bb(0xc2,-0x79,-0x8d,-0x34)]??_0x1e46d9;if(!Number[_0x1658bb(-0x34,-0x119,-0x11f,-0x1a2)](_0x4f8bc1)||_0x4f8bc1<0x1)throw new ToolExecutionError(_0x1658bb(0xc1,0xce,0x1ad,-_0x1affab._0x4ef603),{'command':_0x33e135[_0x1658bb(_0x1affab._0x266799,-0xf9,-_0x1affab._0x51f0e1,-0x189)]});throwIfAborted(_0x305666['signal']);const _0x182175=resolveWorkingDirectory(_0x33e135[_0x50c9a5(_0x1affab._0x5800e9,_0x1affab._0x5df2f0,_0x1affab._0x43e86e,_0x1affab._0x1cc72f)],_0x2f0768,_0x973f0),_0x5bb2a0=_0x33e135[_0x1658bb(-0x132,-0x156,-0x1d1,-_0x1affab._0x27d8b5)]??![],_0x2189c9=resolveDefaultShell(_0x23e168[_0x1658bb(_0x1affab._0x42baff,0x80,0x134,0x1f0)]),_0x5b1911=buildShellArgs(_0x33e135[_0x1658bb(-_0x1affab._0x58212f,-0xf9,-0xa3,-_0x1affab._0x2f1c50)],_0x2189c9),_0x4bffa3=_0x1316a0[_0x50c9a5(_0x1affab._0x544bab,0x24f,_0x1affab._0x196159,0x33e)]()===_0x1658bb(-_0x1affab._0x10b355,-0x76,-_0x1affab._0xddc5b,_0x1affab._0x56084b);if(_0x33e135[_0x50c9a5(_0x1affab._0x5a8fcd,_0x1affab._0x56d2ae,_0x1affab._0x1f6088,0x204)]){if(!_0x306825)throw new ToolExecutionError(_0x50c9a5(_0x1affab._0x552fb2,_0x1affab._0x54d673,_0x1affab._0x2bf84c,0x194),{'command':_0x33e135[_0x1658bb(-0xb6,-_0x1affab._0x42a8e3,-_0x1affab._0x215d31,-_0x1affab._0x7db691)]});throwIfAborted(_0x305666[_0x1658bb(-_0x1affab._0x1612a2,-_0x1affab._0x314cc2,-0xea,-_0x1affab._0x2cae56)]);let _0x341903;try{_0x341903=_0x587b7b(_0x2189c9,_0x5b1911,{'cwd':_0x182175,'env':buildChildEnv(_0x23e168[_0x1658bb(0xaf,-_0x1affab._0x56084b,-_0x1affab._0x215e7c,-0x9e)],_0x2bf3c6),'stdio':[_0x1658bb(-0x47,-_0x1affab._0x2dbfde,-0xfa,-0xac),_0x50c9a5(0x153,_0x1affab._0x39a005,0x180,_0x1affab._0x3239ba),_0x1658bb(-0x17,-_0x1affab._0x47c0df,-_0x1affab._0x315d2f,-_0x1affab._0xa28190)],'shell':![],'windowsHide':!![],'detached':!_0x4bffa3});}catch(_0x9dbf94){throw mapSpawnError(_0x9dbf94,{'command':_0x33e135['command'],'cwd':_0x182175,'shellPath':_0x2189c9});}let _0xbbcf95;try{_0xbbcf95=_0x306825[_0x1658bb(_0x1affab._0x59225c,-0x96,-_0x1affab._0x43ce08,-_0x1affab._0x181036)]({'child':_0x341903,'command':_0x33e135['command'],'cwd':_0x182175,'stripAnsi':_0x5b966d});}catch(_0x3bd0e8){_0x341903['once'](_0x1658bb(_0x1affab._0x2e26dc,-0x54,_0x1affab._0x208af3,-0x12b),()=>{});try{killProcessGroup(_0x341903,_0x4bffa3);}catch{}throw _0x3bd0e8;}return createToolOutput(_0x50c9a5(0x311,0x201,0x196,_0x1affab._0x3eb79d)+_0xbbcf95[_0x50c9a5(_0x1affab._0x48cf41,_0x1affab._0x5e0e85,0x2f6,0x28c)]+_0x50c9a5(0x7a,0x90,_0x1affab._0x36bbf3,_0x1affab._0x36953a)+(_0xbbcf95['pid']??'?')+_0x50c9a5(0x3ce,_0x1affab._0x59eacd,_0x1affab._0x1a8836,_0x1affab._0x5c2809),{'shellId':_0xbbcf95[_0x1658bb(-_0x1affab._0x31fa79,-_0x1affab._0x2248b2,-0xd1,-0x9e)],'status':_0xbbcf95[_0x50c9a5(_0x1affab._0x51354a,0x40d,_0x1affab._0x3a6857,_0x1affab._0x43faaa)],'command':_0xbbcf95['command'],'cwd':_0xbbcf95['cwd'],'pid':_0xbbcf95['pid']??null});}let _0x1c0b5a;try{_0x1c0b5a=_0x587b7b(_0x2189c9,_0x5b1911,{'cwd':_0x182175,'env':buildChildEnv(_0x23e168[_0x1658bb(-0x2e,-0x6b,-_0x1affab._0x1ce944,-_0x1affab._0x31c28c)],_0x2bf3c6),'stdio':_0x5bb2a0?['ignore','ignore',_0x1658bb(0xe8,-_0x1affab._0x138a32,0x72,-_0x1affab._0x427a60)]:[_0x1658bb(-_0x1affab._0x115ee6,-0x55,-0x40,-0x1b8),_0x1658bb(-0x83,-_0x1affab._0x47c0df,-0x1ad,_0x1affab._0x38a3dd),_0x1658bb(-_0x1affab._0x5516fa,-0x64,-0x181,-0x9)],'shell':![],'windowsHide':!![],'detached':!_0x4bffa3});}catch(_0x254338){throw mapSpawnError(_0x254338,{'command':_0x33e135[_0x1658bb(-_0x1affab._0x5e2b46,-0xf9,-0x103,-0x16d)],'cwd':_0x182175,'shellPath':_0x2189c9});}const _0x11fc11=[],_0x1c8c48=[],_0x219ae2=new _0x3575e0('utf8'),_0x195df3=new _0x3575e0('utf8');let _0x5698dd;function _0x50c9a5(_0x5cd4e7,_0x7daead,_0x225d71,_0x73f577){return _0x14d28b(_0x5cd4e7-0xb5,_0x225d71,_0x73f577-0x480,_0x73f577-_0x2cd217._0x1c0775);}let _0x207014=![],_0x5ca8d4;const _0x3d5b45=()=>{if(!_0x5698dd)return;const _0x14caaa=_0x5698dd;_0x5698dd=void 0x0,_0x14caaa();},_0x51e5ef=async()=>{const _0x520b6a={_0x10791d:0xdd};if(_0x1c8c48[_0x3492aa(-_0x5ba7dd._0x3ac57d,0x52,-0x50,0xfe)]>0x0||_0x207014)return;function _0x3492aa(_0x488b61,_0x11eaaf,_0x3afa8f,_0x133c6b){return _0x1658bb(_0x488b61-0x130,_0x3afa8f-0xd8,_0x3afa8f-_0x520b6a._0x10791d,_0x133c6b);}await new Promise(_0x3b2994=>{_0x5698dd=_0x3b2994;});},_0x4f66ed=_0x40476d=>{appendChunk(_0x11fc11,_0x1c8c48,_0x219ae2['write'](_0x40476d),_0x5b966d,_0x3d5b45);},_0x3e0d64=_0x50e73a=>{appendChunk(_0x11fc11,_0x1c8c48,_0x195df3['write'](_0x50e73a),_0x5b966d,_0x3d5b45);};_0x1c0b5a[_0x1658bb(-_0x1affab._0xfc8796,-0x144,-_0x1affab._0x5969b5,_0x1affab._0x1e8c92)]?.['on'](_0x50c9a5(0x20a,0x30f,_0x1affab._0x37b3e5,0x32d),_0x4f66ed),_0x1c0b5a[_0x1658bb(-0x89,0x26,_0x1affab._0x1cfa85,0x136)]?.['on']('data',_0x3e0d64);let _0x37c1c2=![],_0x382dfa;const _0x45f5f9=addAbortListener(_0x305666[_0x50c9a5(_0x1affab._0x3bd7eb,_0x1affab._0x4fc48d,_0x1affab._0x1cfa85,_0x1affab._0x125454)],()=>{const _0x4ac409={_0x2c5d3a:0xc7};function _0x55c3b2(_0x38a2ac,_0x33f7b6,_0x2d2031,_0x3b9b98){return _0x50c9a5(_0x38a2ac-0x114,_0x33f7b6-_0x4ac409._0x2c5d3a,_0x3b9b98,_0x38a2ac- -0xc7);}_0x5ca8d4=toAbortError(_0x305666[_0x55c3b2(0x12f,0x3d,_0x411394._0x27926e,_0x411394._0x3b9295)]['reason']),_0x207014=!![],_0x3d5b45();try{killProcessGroup(_0x1c0b5a,_0x4bffa3);}catch{}});try{const _0x57d8f7=new Promise((_0x275b63,_0x4d5309)=>{const _0x9b718c={_0x37f379:0x18a,_0x40ee41:0x3d7,_0x2963a4:0x347},_0x2c6c71={_0x121f7a:0x26},_0x5b763e={_0x3a6b0d:0xeb,_0x312f92:0x62,_0x5efa4d:0x1,_0x49a637:0x358,_0x3da533:0x187,_0x35c5d3:0x1f1},_0x5c54be={_0x3a3189:0x321,_0x4986bf:0x3fa,_0x2a9bac:0x49e,_0x387a38:0x4a1,_0x3fa1db:0x570,_0x1597a5:0x496,_0x7d50fc:0x229},_0x265391=()=>{const _0x2bde58={_0x51517f:0x22};_0x382dfa&&(clearTimeout(_0x382dfa),_0x382dfa=void 0x0);function _0x402cb9(_0x2aa96d,_0x35aa4d,_0x15f9de,_0x2f82e9){return _0x2414(_0x15f9de- -_0x2bde58._0x51517f,_0x2f82e9);}_0x1c0b5a[_0x402cb9(0x229,0x25a,_0x5c54be._0x3a3189,0x40a)](_0x3988ff(_0x5c54be._0x4986bf,_0x5c54be._0x2a9bac,_0x5c54be._0x387a38,_0x5c54be._0x3fa1db),_0x26c6fc);function _0x3988ff(_0xdb0fba,_0x34d6db,_0xd39087,_0x3f2f46){return _0x2414(_0xdb0fba-0x1c7,_0x3f2f46);}_0x1c0b5a[_0x3988ff(0x50a,_0x5c54be._0x1597a5,0x41d,0x4b4)](_0x402cb9(_0x5c54be._0x7d50fc,0x12a,0x24c,0x163),_0x4f3a4c);},_0x26c6fc=_0x2234b5=>{_0x207014=!![],_0x3d5b45(),_0x265391(),_0x4d5309(_0x5ca8d4??_0x2234b5);},_0x4f3a4c=(_0x4541e7,_0x1b6d21)=>{const _0xb75d3c={_0x6c7c4d:0x3a},_0x56871f={_0x32cf80:0x2da};function _0x2724f9(_0x1ef338,_0x32c10e,_0x5e38cf,_0x38f2ea){return _0x2414(_0x5e38cf- -_0x56871f._0x32cf80,_0x38f2ea);}_0x37c1c2=!![],appendChunk(_0x11fc11,_0x1c8c48,_0x219ae2[_0x2724f9(-_0x5b763e._0x3a6b0d,_0x5b763e._0x312f92,-0xaf,_0x5b763e._0x5efa4d)](),_0x5b966d,_0x3d5b45),appendChunk(_0x11fc11,_0x1c8c48,_0x195df3[_0xc0f4ff(0x2db,_0x5b763e._0x49a637,_0x5b763e._0x3da533,_0x5b763e._0x35c5d3)](),_0x5b966d,_0x3d5b45),_0x207014=!![],_0x3d5b45(),_0x265391();function _0xc0f4ff(_0x251ea6,_0xa29e7b,_0x59b3c3,_0x10c320){return _0x2414(_0x10c320- -_0xb75d3c._0x6c7c4d,_0xa29e7b);}if(_0x5ca8d4){_0x4d5309(_0x5ca8d4);return;}_0x275b63({'code':_0x4541e7,'signal':_0x1b6d21});};function _0x16b991(_0xe2fb44,_0x116367,_0x5cf537,_0x56656c){return _0x1658bb(_0xe2fb44-0xe1,_0xe2fb44-0x1bc,_0x5cf537-_0x2c6c71._0x121f7a,_0x56656c);}_0x382dfa=setTimeout(()=>{function _0x4c1214(_0x132578,_0x48b011,_0x344094,_0x2a9f49){return _0x2414(_0x48b011- -0x329,_0x132578);}_0x207014=!![],_0x3d5b45(),_0x265391();try{killProcessGroup(_0x1c0b5a,_0x4bffa3);}catch{}_0x4d5309(new ToolExecutionError(_0x4c1214(-_0x9b718c._0x37f379,-0x260,-_0x9b718c._0x40ee41,-_0x9b718c._0x2963a4)+_0x4f8bc1+'\x20ms',{'command':_0x33e135['command'],'cwd':_0x182175,'shellPath':_0x2189c9,'timeoutMs':_0x4f8bc1,'timedOut':!![]}));},_0x4f8bc1);function _0x50f657(_0x5dc368,_0x4fb80a,_0xcdb805,_0x4baa7e){return _0x1658bb(_0x5dc368-0x7a,_0x4baa7e- -_0x4553d4._0x1aee3f,_0xcdb805-0x1cb,_0xcdb805);}_0x1c0b5a[_0x16b991(0x29,0x9b,-0xd1,0x15c)](_0x50f657(-_0x143a26._0x502d33,-_0x143a26._0x35b3c8,-0x156,-_0x143a26._0xa9dead),_0x26c6fc),_0x1c0b5a[_0x50f657(-_0x143a26._0x4658fb,-_0x143a26._0x21ed08,-_0x143a26._0x3f2fe4,-_0x143a26._0x553a8c)](_0x50f657(-0x83,-0x8e,-_0x143a26._0x455dd6,-_0x143a26._0x31da5d),_0x4f3a4c);});while(_0x1c8c48[_0x50c9a5(0x123,0x1e9,_0x1affab._0xbce95d,_0x1affab._0x102cfd)]>0x0||!_0x207014){if(_0x1c8c48[_0x1658bb(-_0x1affab._0x12951a,-0x128,-0x233,-_0x1affab._0x447e63)]===0x0){await _0x51e5ef();continue;}const _0x277ac0=_0x1c8c48['shift']();_0x277ac0!==void 0x0&&(yield _0x277ac0);}const _0x2bfcbe=await _0x57d8f7,_0xe053e5=_0x5bb2a0?'exit\x20code\x20'+(_0x2bfcbe[_0x1658bb(-_0x1affab._0x54a442,-0x98,_0x1affab._0x3e4656,-0x26)]??0x0):_0x11fc11[_0x1658bb(_0x1affab._0x56084b,-_0x1affab._0x231e6a,0x2f,-_0x1affab._0x43be14)](''),_0x4ddaa9={'command':_0x33e135[_0x50c9a5(0x2a8,_0x1affab._0xb30395,_0x1affab._0x57ab22,0x23a)],'cwd':_0x182175,'exitCode':_0x2bfcbe['code']??0x0,'signal':_0x2bfcbe[_0x1658bb(-_0x1affab._0x4bdad9,-0x13d,-0x1ab,-_0x1affab._0x8a3173)],'ignoreOutput':_0x5bb2a0,'shellPath':_0x2189c9,'timeoutMs':_0x4f8bc1};if(_0x2bfcbe[_0x1658bb(-0x107,-_0x1affab._0x3e4364,-_0x1affab._0x244fba,0x77)]!==0x0)throw new ToolExecutionError(_0xe053e5||'Command\x20exited\x20with\x20code\x20'+(_0x2bfcbe[_0x1658bb(0xde,-_0x1affab._0x1a7ad7,0x4b,-0x1a1)]??0x0),_0x4ddaa9);return createToolOutput(_0xe053e5,_0x4ddaa9);}catch(_0x35e3c3){while(_0x1c8c48[_0x1658bb(-0x298,-0x128,-_0x1affab._0x3cd397,-0x21a)]>0x0){const _0x2da721=_0x1c8c48[_0x1658bb(0x1ba,_0x1affab._0xcbad62,_0x1affab._0x2c65ae,_0x1affab._0x125454)]();_0x2da721!==void 0x0&&(yield _0x2da721);}if(_0x35e3c3 instanceof ToolExecutionError)throw _0x35e3c3;if(_0x5ca8d4)throw _0x5ca8d4;throw mapSpawnError(_0x35e3c3,{'command':_0x33e135[_0x50c9a5(0x23d,0x16f,_0x1affab._0x579002,_0x1affab._0x48e16d)],'cwd':_0x182175,'shellPath':_0x2189c9});}finally{_0x382dfa&&clearTimeout(_0x382dfa);_0x45f5f9(),_0x1c0b5a[_0x50c9a5(0x1e4,0x1e4,_0x1affab._0x154295,_0x1affab._0x544bab)]?.['off']('data',_0x4f66ed),_0x1c0b5a[_0x1658bb(-0xbd,0x26,-_0x1affab._0x39240c,_0x1affab._0xe0fa52)]?.['off'](_0x50c9a5(_0x1affab._0x320bb7,0x284,_0x1affab._0x2c5eaf,_0x1affab._0x42f573),_0x3e0d64);if(!_0x37c1c2&&_0x1c0b5a[_0x50c9a5(_0x1affab._0x25994a,_0x1affab._0x1bb084,0x493,_0x1affab._0x4b1a6c)]&&!_0x1c0b5a['killed'])try{killProcessGroup(_0x1c0b5a,_0x4bffa3);}catch{}}}});}function createShellExecTool(_0x53ae2e={}){return createBashTool(_0x53ae2e);}import{readdir,readFile as _0x383d54}from'fs/promises';import{extname,join as _0xad699d}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x418e4e,join,relative as _0x4eafe4,resolve as _0x2e3d13}from'path';import{readdir as _0x45205c,readFile as _0x5ada9b}from'fs/promises';import{join as _0x4c0264,relative as _0x3527ae,sep}from'path';import{delimiter}from'path';import{mkdir as _0x3577e5,rm,stat as _0x1d4ce1,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x50a4ab}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x6e4c81,rename,writeFile as _0x27ba71}from'fs/promises';import{homedir as _0xb0e508}from'os';import{dirname as _0x335cde,isAbsolute as _0x1e7f00,join as _0x304135,resolve as _0x37553d}from'path';import{parse as _0x552dc3,stringify as _0x112642}from'yaml';import{cp,mkdir as _0x11cb5a,readFile as _0x454c06,rm as _0x4a7a3f,writeFile as _0x244ae2}from'fs/promises';import{homedir}from'os';import{join as _0x3673d4}from'path';import{parse as _0x2082dc,stringify as _0x578844}from'yaml';import{z}from'zod';import{readdir as _0x36136b,readFile as _0x3355d3}from'fs/promises';import{join as _0x16d2b7}from'path';import{mkdir as _0x5a7987,readFile as _0x3ea0ee,rm as _0x2bffab,writeFile as _0x1f33c3}from'fs/promises';import{homedir as _0x280741}from'os';import{basename,isAbsolute as _0x262776,join as _0xead15a,relative as _0x2aeecc,resolve as _0x2346e7}from'path';import{parse as _0x32e69b,stringify as _0x354638}from'yaml';import{delimiter as _0x2e5348,resolve as _0x506684}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x285fba){const _0x62121d={_0x4b8994:0x5a6,_0x5126cb:0x436,_0x5376bc:0x484,_0x5b52af:0x285,_0x2e495a:0x528,_0x1f7a53:0x57a},_0x2eabc5={_0x3a06fc:0x12a,_0x239f55:0x57,_0x546e3c:0x32b},_0x5bf0b8={_0xfd61e3:0x263};function _0x109aa8(_0x499045,_0x1e2b6a,_0x28ca0f,_0x179f9d){return _0x1a7bb7(_0x499045-0xf7,_0x179f9d-_0x5bf0b8._0xfd61e3,_0x28ca0f-0xe2,_0x28ca0f);}const _0x4e104e=[];function _0x38e3e8(_0x5bd174,_0x5d4b4c,_0x35ee27,_0xbb0b9f){return _0x17d408(_0x5bd174-_0x2eabc5._0x3a06fc,_0x5d4b4c-_0x2eabc5._0x239f55,_0x5bd174,_0xbb0b9f-_0x2eabc5._0x546e3c);}let _0x1e4860='',_0x35815e=0x0;while(_0x35815e<_0x285fba[_0x38e3e8(_0x62121d._0x4b8994,0x35a,0x338,_0x62121d._0x5126cb)]){const _0x1687c0=_0x285fba[_0x35815e];if(_0x1687c0==='\x5c'&&_0x35815e+0x1<_0x285fba[_0x38e3e8(0x523,_0x62121d._0x5376bc,0x47e,_0x62121d._0x5126cb)])_0x1e4860+=_0x285fba[_0x35815e+0x1],_0x35815e+=0x2;else{if(_0x1687c0==='\x22'||_0x1687c0==='\x27'){const _0x1f2a46=_0x1687c0;_0x35815e++;while(_0x35815e<_0x285fba[_0x109aa8(_0x62121d._0x5b52af,0x249,0x423,0x2e2)]&&_0x285fba[_0x35815e]!==_0x1f2a46){_0x285fba[_0x35815e]==='\x5c'&&_0x35815e+0x1<_0x285fba[_0x38e3e8(0x59e,_0x62121d._0x2e495a,_0x62121d._0x1f7a53,0x436)]?(_0x1e4860+=_0x285fba[_0x35815e+0x1],_0x35815e+=0x2):(_0x1e4860+=_0x285fba[_0x35815e],_0x35815e++);}_0x35815e++;}else _0x1687c0!==void 0x0&&/\s/['test'](_0x1687c0)?(_0x1e4860&&(_0x4e104e['push'](_0x1e4860),_0x1e4860=''),_0x35815e++):(_0x1e4860+=_0x1687c0,_0x35815e++);}}if(_0x1e4860)_0x4e104e[_0x109aa8(0x381,0x59a,0x58d,0x4e9)](_0x1e4860);return _0x4e104e;}function renderCommandInstructions(_0x47443b){const _0x4629f3={_0x3344c0:0x5de,_0xcc88e6:0x6a5,_0xb99350:0x5fb,_0x5249d3:0x21e,_0x101a1f:0x21f,_0x1f9b49:0x211,_0x4fa25e:0x237,_0x26be2e:0x541,_0x3fe370:0x429,_0xc73b30:0x61c,_0xfcf5c0:0x541,_0x47d845:0x660,_0x29a4a4:0x4ea,_0x476bf8:0x5f,_0x4e29d3:0x1e1,_0x25bb30:0x187,_0x154221:0x24c,_0x34a116:0xab,_0x5cb98c:0x9f,_0x33c7f5:0x118,_0x309170:0x11e,_0x56e321:0x3a7,_0x10d3c9:0x291,_0xd9292:0x5ff,_0x421697:0x7ee,_0x457f0d:0x7b2},_0x5c7913={_0x33c4cf:0x4,_0x1cc36e:0x145},_0x569267={_0x2d3d26:0x64},_0x18d4ff={_0x518aa1:0x35,_0x57cb17:0x81};function _0x19329c(_0x44b880,_0x12c2f5,_0x1511e4,_0x53ae3b){return _0x1a7bb7(_0x44b880-_0x18d4ff._0x518aa1,_0x12c2f5-0x91,_0x1511e4-_0x18d4ff._0x57cb17,_0x44b880);}let _0x204104=_0x47443b[_0xa814f5(0x684,_0x4629f3._0x3344c0,_0x4629f3._0xcc88e6,0x7f3)];function _0xa814f5(_0xa8d4f4,_0xf0aa15,_0x1f0a25,_0x54062b){return _0x1a7bb7(_0xa8d4f4-0x176,_0xa8d4f4-0x44b,_0x1f0a25-_0x569267._0x2d3d26,_0x54062b);}let _0x55461b=![];const _0xe24db5=tokenizeCommandArguments(_0x47443b[_0xa814f5(0x6bb,_0x4629f3._0xb99350,0x5a9,0x5e4)]);_0x204104=_0x204104[_0x19329c(_0x4629f3._0x5249d3,0x211,0xb1,0x25a)](/\$ARGUMENTS\[(\d+)\]/g,(_0x96bb5e,_0x23b1b8)=>{return _0x55461b=!![],_0xe24db5[Number(_0x23b1b8)]??'';}),_0x204104=_0x204104[_0x19329c(_0x4629f3._0x101a1f,_0x4629f3._0x1f9b49,0x13a,_0x4629f3._0x4fa25e)](/\$ARGUMENTS\b/g,()=>{const _0x327a4a={_0x4b42e7:0x2fd};function _0x1eeda1(_0x200dd5,_0x54acc4,_0xc3960a,_0x452930){return _0x19329c(_0x452930,_0x200dd5- -_0x327a4a._0x4b42e7,_0xc3960a-0x126,_0x452930-0x106);}return _0x55461b=!![],_0x47443b[_0x1eeda1(_0x5c7913._0x33c4cf,-0x88,-_0x5c7913._0x1cc36e,0x113)];});if(_0x47443b[_0xa814f5(_0x4629f3._0x26be2e,_0x4629f3._0x3fe370,0x4dd,_0x4629f3._0xc73b30)]&&_0x47443b[_0xa814f5(_0x4629f3._0xfcf5c0,0x56d,_0x4629f3._0x47d845,_0x4629f3._0x29a4a4)][_0x19329c(0x93,0x110,-_0x4629f3._0x476bf8,_0x4629f3._0x4e29d3)]>0x0)for(let _0x36c4a2=0x0;_0x36c4a2<_0x47443b[_0x19329c(0x29d,_0x4629f3._0x25bb30,_0x4629f3._0x154221,_0x4629f3._0x34a116)]['length'];_0x36c4a2++){const _0x159902=_0x47443b[_0x19329c(0x68,0x187,_0x4629f3._0x5cb98c,0x2a8)][_0x36c4a2];if(_0x159902){const _0x1473ae=new RegExp('\x5c$'+_0x159902+'\x5cb','g');_0x204104=_0x204104[_0x19329c(_0x4629f3._0x33c7f5,_0x4629f3._0x1f9b49,0x146,0x2d9)](_0x1473ae,()=>{return _0x55461b=!![],_0xe24db5[_0x36c4a2]??'';});}}return _0x204104=_0x204104[_0x19329c(0x22d,0x211,0x170,_0x4629f3._0x309170)](/\$(\d+)\b/g,(_0x37f3ce,_0x5a88ae)=>{return _0x55461b=!![],_0xe24db5[Number(_0x5a88ae)]??'';}),!_0x55461b&&_0x47443b['argumentsText'][_0x19329c(_0x4629f3._0x56e321,_0x4629f3._0x10d3c9,0x17e,0x3c9)]()&&(_0x204104=_0x204104+_0xa814f5(0x65b,0x703,0x7a1,_0x4629f3._0xd9292)+_0x47443b[_0xa814f5(0x6bb,0x779,_0x4629f3._0x421697,_0x4629f3._0x457f0d)]),_0x204104;}var PROVIDER_API_KEY_ENVS=[{'env':_0x1a7bb7(0x1c8,0x187,0x25,0x18a),'provider':_0x17d408(0x44b,0x32f,0x1d8,0x2f9)},{'env':_0x1a7bb7(-0xa,0x53,0x6d,0x135),'provider':_0x1a7bb7(0x23f,0x1c2,0x1a9,0x5d)},{'env':_0x17d408(0x2e7,0x2d9,0x203,0x235),'provider':_0x1a7bb7(0x7a,0xef,0x13a,0x108)},{'env':_0x1a7bb7(0x96,0x176,0x118,0x4b),'provider':'github'},{'env':'DEEPINFRA_API_KEY','provider':'deepinfra'},{'env':_0x1a7bb7(0x1a7,0x26e,0x2b0,0x1be),'provider':_0x1a7bb7(0x11a,-0x4,-0x157,-0x8c)},{'env':_0x1a7bb7(0xc0,0x1cc,0x2e9,0x1d5),'provider':'moonshot'},{'env':_0x1a7bb7(0x185,0x1b0,0x136,0x17e),'provider':_0x1a7bb7(0x216,0xc1,0x12c,0x4c)},{'env':_0x1a7bb7(-0x114,0xf,-0x2b,-0xa5),'provider':'kimi'},{'env':'OPENAI_API_KEY','provider':_0x1a7bb7(-0xb9,0x46,0xee,0x174)},{'env':'DEEPSEEK_API_KEY','provider':_0x1a7bb7(0xab,0x29,-0x110,0x11)}],PROVIDER_API_KEY_ENV_NAMES=PROVIDER_API_KEY_ENVS['map'](_0x20c798=>_0x20c798[_0x17d408(0x8e,0x343,0xdb,0x1c8)]),SCRUBBED_ENV_KEYS=[...PROVIDER_API_KEY_ENV_NAMES,_0x1a7bb7(0x108,0x4,-0xa8,0x130),_0x17d408(0x134,0x196,0x161,0x230),_0x1a7bb7(0x336,0x289,0x374,0x200)],chatModelAuthSchemeSchema=z[_0x1a7bb7(0x159,0x1cf,0x21c,0x262)]([_0x1a7bb7(0x1e0,0x222,0x339,0x37a),_0x1a7bb7(0x233,0x1bb,0x142,0x249)]),apiKeyAuthSchema=z[_0x17d408(0x2c8,0x26c,0x1ce,0x30a)]({'type':z[_0x1a7bb7(0x17a,0xe4,0x173,0x13e)](_0x17d408(0x252,0x2e1,0x2d0,0x198)),'apiKey':z[_0x17d408(0x115,0x1bb,0x211,0x1d0)](),'authScheme':chatModelAuthSchemeSchema[_0x1a7bb7(0x10d,0x1f7,0x160,0x2e8)]()})['passthrough'](),oauthAuthSchema=z[_0x1a7bb7(0x1a1,0x27e,0x205,0x28e)]({'type':z[_0x1a7bb7(-0x53,0xe4,0xd9,0x228)](_0x17d408(0x21f,0xfd,0x6b,0xc9)),'access':z[_0x17d408(0x5b,0x25e,0x309,0x1d0)](),'refresh':z[_0x17d408(0x33c,0x282,0x33c,0x1d0)](),'expires':z[_0x1a7bb7(0x12f,0x16,0x3,-0x6a)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x17d408(0x3d1,0x3aa,0x138,0x283)]()})[_0x1a7bb7(0x137,0x44,-0xce,0xf1)](),authMethodSchema=z['union']([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z[_0x1a7bb7(0x9c,0x144,0x1b1,0x187)](),'name':z[_0x17d408(0x348,0x5e,0x9a,0x1d0)]()['optional']()})[_0x1a7bb7(0x31,0x44,-0xc5,-0x65)](),modelConfigSchema=z[_0x1a7bb7(-0xdc,0x97,0x1a9,0xd1)]([z[_0x17d408(0x194,0x223,0x239,0x170)](![]),z[_0x1a7bb7(0x108,0xe4,0x144,0xf8)](!![]),z[_0x17d408(0xe9,0x80,0x194,0x1d0)](),z[_0x17d408(0x105,-0x2,0x1f4,0xc1)](z['string']()),z[_0x17d408(-0x32,0xcd,0x1e9,0xc1)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x17d408(0x27d,0x209,0x31e,0x25b)](['anthropic-messages',_0x17d408(-0xb2,0x16,0x35,0x41),_0x1a7bb7(0x8f,0x163,0xb0,0x96),_0x17d408(-0xbb,0x147,0x219,0x9f)]),providerConfigSchema=z[_0x1a7bb7(0x281,0x27e,0x2fb,0x2c0)]({'apiKey':z['string']()[_0x1a7bb7(0x1f6,0x1f7,0x16c,0x26b)](),'token':z[_0x1a7bb7(0xfa,0x144,0x96,0x1e5)]()['optional'](),'defaultModel':z[_0x17d408(0x8c,0x1cb,0x146,0x1d0)]()[_0x17d408(0x3c8,0x138,0x159,0x283)](),'smallModel':z[_0x17d408(0x2c1,0x1f1,0x33c,0x1d0)]()[_0x1a7bb7(0x176,0x1f7,0x284,0x326)](),'currentAuth':z[_0x17d408(0xfd,0x2d8,0xfc,0x1d0)]()[_0x1a7bb7(0x20e,0x1f7,0x32b,0x140)](),'auth':z['array'](authMethodSchema)[_0x17d408(0x2e0,0x1a8,0x180,0x283)](),'surface':chatModelSurfaceSchema[_0x17d408(0x1ae,0x147,0x304,0x283)](),'baseUrl':z[_0x17d408(0x136,0xc1,0x2e8,0x1d0)]()[_0x1a7bb7(0x34b,0x1f7,0x2a4,0x202)](),'models':modelConfigSchema[_0x1a7bb7(0x18c,0x1f7,0x155,0x234)](),'customHeaders':z[_0x17d408(0x14,0x69,0xd4,0xc3)](z['string'](),z[_0x1a7bb7(0x39,0x144,0xb4,0xa0)]())['optional']()})['passthrough'](),mcpServerConfigSchema=z[_0x17d408(0x1a6,0x1cd,0x3ca,0x30a)]({'command':z['string']()[_0x1a7bb7(0x88,0x1f7,0x9f,0x13f)](),'args':z['array'](z['string']())['optional'](),'env':z[_0x1a7bb7(0xda,0x37,0xd9,-0x70)](z[_0x17d408(0x270,0xf3,0x29b,0x1d0)](),z['string']())[_0x17d408(0x2bf,0x37a,0x3b4,0x283)](),'transport':z['enum']([_0x17d408(0x10,-0x59,0xf4,0xa1),'http'])[_0x17d408(0x2f2,0x309,0x20f,0x283)](),'url':z[_0x1a7bb7(0xaf,0x144,0xc9,0x11e)]()['optional'](),'headers':z[_0x1a7bb7(0x76,0x37,0x88,-0x98)](z[_0x1a7bb7(0x1d0,0x144,0x6a,-0xe)](),z[_0x1a7bb7(0x63,0x144,0x251,0x259)]())[_0x17d408(0x3b9,0x14a,0x161,0x283)](),'prefix':z['string']()[_0x1a7bb7(0x2e5,0x1f7,0x1ea,0x1ee)](),'timeoutMs':z[_0x1a7bb7(0x8c,0x16,0x70,-0xe3)]()[_0x17d408(0x2ea,0x1cb,0x354,0x283)](),'enabled':z[_0x1a7bb7(0x17e,0x1bc,0x18a,0x59)]()[_0x1a7bb7(0x116,0x1f7,0x25c,0x196)](),'auth':z[_0x17d408(0x3a9,0x3d4,0x3a5,0x30a)]({'type':z[_0x17d408(0x31d,0x2c7,0x1ef,0x25b)]([_0x17d408(0x85,0x282,0x2d,0x115),'bearer',_0x1a7bb7(-0x126,0x3d,0x19,0xd0)]),'token':z[_0x17d408(0x208,0x1a9,0x66,0x1d0)]()[_0x17d408(0x371,0x1dc,0x368,0x283)](),'oauth':z['object']({'clientId':z[_0x17d408(0x182,0x30c,0x117,0x1d0)]()[_0x1a7bb7(0x2f6,0x1f7,0x189,0x2de)](),'clientMetadataUrl':z['string']()[_0x17d408(0x112,0x3fe,0x28e,0x283)](),'authorizationServer':z[_0x17d408(0x228,0x191,0x22e,0x1d0)]()[_0x17d408(0x23a,0x26a,0x12f,0x283)](),'scopes':z['array'](z[_0x17d408(0xa2,0x153,0x193,0x1d0)]())['optional'](),'tokenStorageKey':z['string']()[_0x1a7bb7(0x1a8,0x1f7,0x185,0x1db)]()})[_0x1a7bb7(-0x69,0x44,0x1b3,0x1a7)]()[_0x1a7bb7(0x277,0x1f7,0x12f,0x1fc)]()})['passthrough']()[_0x17d408(0x2b8,0x3f6,0x116,0x283)]()})[_0x1a7bb7(-0x62,0x44,0x7,0x8b)](),mcpSettingsSchema=z['object']({'servers':z['record'](z[_0x1a7bb7(0x42,0x144,0x72,0x1ef)](),mcpServerConfigSchema)[_0x1a7bb7(0x302,0x1f7,0x27b,0x26a)](),'allowedTools':z[_0x1a7bb7(-0x85,0x37,0x18a,-0x14)](z[_0x1a7bb7(0x12a,0x144,0x2b6,0x4e)](),z[_0x17d408(0x195,-0x78,0x74,0xc3)](z[_0x17d408(0x57,0x205,0x2ff,0x1d0)](),z[_0x1a7bb7(0x137,0x1bc,0x199,0x1ba)]()))[_0x17d408(0x258,0x226,0x2fd,0x283)](),'defaultTimeoutMs':z[_0x17d408(0x2f,0x179,0x8d,0xa2)]()['optional']()})[_0x17d408(0xfa,0x7d,0x145,0xd0)](),skillsSettingsSchema=z[_0x17d408(0x286,0x1e4,0x35f,0x30a)]({'enabled':z[_0x17d408(0x23a,0x2c1,0x133,0x248)]()[_0x1a7bb7(0x350,0x1f7,0x267,0x372)](),'includeDefaults':z[_0x17d408(0x3b9,0x33f,0x2ca,0x248)]()[_0x17d408(0x2fc,0x300,0x382,0x283)](),'directories':z[_0x17d408(0x14e,0xb,-0x70,0xc1)](z[_0x17d408(0x2a9,0x9b,0x17c,0x1d0)]())[_0x1a7bb7(0x326,0x1f7,0x2da,0xa9)](),'exclude':z[_0x1a7bb7(-0x64,0x35,-0x45,-0x11e)](z[_0x1a7bb7(0x28,0x144,-0x1b,0xfd)]())[_0x1a7bb7(0x1ae,0x1f7,0x2e3,0x251)]()})[_0x1a7bb7(-0xd0,0x44,-0x53,0x3c)](),commandsSettingsSchema=z['object']({'enabled':z[_0x1a7bb7(0x18f,0x1bc,0x82,0x24d)]()[_0x17d408(0x13c,0x3a8,0x3d2,0x283)](),'directories':z['array'](z[_0x1a7bb7(-0x35,0x144,-0x26,0x2a5)]())[_0x1a7bb7(0x22d,0x1f7,0x34c,0x124)]()})[_0x1a7bb7(-0x3,0x44,-0xc8,-0xef)](),agentsSettingsSchema=z[_0x1a7bb7(0x267,0x27e,0x3e1,0x3cd)]({'enabled':z[_0x1a7bb7(0x320,0x1bc,0x126,0x30a)]()[_0x17d408(0x39f,0x1c1,0x2a5,0x283)](),'includeDefaults':z['boolean']()[_0x1a7bb7(0x1e0,0x1f7,0x32f,0x11e)](),'directories':z[_0x17d408(0xab,0x231,0x1a0,0xc1)](z[_0x1a7bb7(0x26c,0x144,0x199,0x211)]())['optional']()})[_0x17d408(0x1b0,0x12c,-0x88,0xd0)](),uiThemeSettingsSchema=z[_0x1a7bb7(0x1f6,0x27e,0x14e,0x272)]({'mode':z['enum'](['auto',_0x17d408(-0x92,0x54,0x183,0x99),_0x1a7bb7(0x17a,0x60,0x141,0xe6)])[_0x1a7bb7(0x2d0,0x1f7,0x315,0x36f)](),'colorLevel':z['enum']([_0x17d408(0x1f3,0x31e,0x376,0x293),_0x1a7bb7(-0x31,0x89,0x1fc,0x14c),_0x1a7bb7(0x1cb,0x1d2,0x5b,0x22b),_0x1a7bb7(0x5a,0x181,0x205,0x2c0),_0x1a7bb7(0x299,0x25c,0x30a,0x1e9)])[_0x17d408(0x3aa,0x26e,0x2a8,0x283)](),'backgrounds':z[_0x1a7bb7(0x213,0x1cf,0x2e9,0x348)]([_0x17d408(0x16f,0x1e0,0x3d9,0x293),'on',_0x17d408(0x1ea,0x1c5,0x1c4,0x2ef)])[_0x17d408(0x211,0x12a,0x3d4,0x283)](),'messageStyle':z[_0x17d408(0x2a2,0xf4,0x297,0x25b)]([_0x17d408(0xab,0xe3,0xef,0x162),'boxed'])['optional']()})['passthrough'](),statuslineSegmentSchema=z[_0x1a7bb7(0x28c,0x1cf,0x2ee,0x2d8)]([_0x1a7bb7(-0x63,-0x2a,0xe9,0x143),'session',_0x1a7bb7(0x9f,-0x7,0xc,0x40),_0x1a7bb7(0xe1,0x2f,-0x5e,-0x16),_0x1a7bb7(0x255,0x107,0x1d7,0xdc),_0x17d408(0x1cd,0x1f2,0x352,0x237),_0x1a7bb7(0x173,0xeb,0xa4,-0x38),_0x1a7bb7(0x18b,0x287,0x3f9,0x203),_0x17d408(0x55,0x18a,0x1d6,0xbf),_0x1a7bb7(-0x10,0xc0,0x75,0x200),_0x17d408(0x2f1,0x1cb,0x2f7,0x2d7),_0x1a7bb7(0x77,0x9d,-0xd6,0x1f4),'keybindings',_0x1a7bb7(0x112,0x198,0x189,0x112),'rss']),statuslineItemSchema=z[_0x1a7bb7(-0x96,0x97,0x1c3,0x80)]([statuslineSegmentSchema,z[_0x1a7bb7(0x160,0xe4,-0x72,-0xc)]('|')]),statuslineRowSchema=z[_0x17d408(0x18d,0x13a,0x25,0xc1)](statuslineItemSchema),statuslineConfigSchema=z[_0x17d408(0x43a,0x3a8,0x312,0x30a)]({'rows':z['tuple']([statuslineRowSchema,statuslineRowSchema])[_0x1a7bb7(0x1cb,0x1f7,0x256,0x1bb)]()})[_0x17d408(-0x7c,0x10d,0x244,0xd0)](),memorySettingsSchema=z[_0x1a7bb7(0x2be,0x27e,0x1c8,0x164)]({'version':z[_0x1a7bb7(0x24d,0xe4,0x10e,0x19f)](0x2)['optional'](),'retrieval':z[_0x1a7bb7(0x346,0x27e,0x39d,0x292)]({'engine':z[_0x17d408(0xa9,0x10b,0x96,0x170)](_0x17d408(0x29b,0x2d8,0x45e,0x2ed))[_0x17d408(0x1ec,0x37d,0x108,0x283)](),'candidateLimit':z[_0x17d408(-0x3f,-0x5b,0x20b,0xa2)]()[_0x1a7bb7(0x2cb,0x1f7,0x1c2,0x371)](),'activeCandidateLimit':z[_0x17d408(-0x8f,0xd9,0x22,0xa2)]()[_0x1a7bb7(0x218,0x1f7,0x2d1,0x1a2)](),'activeEnabled':z[_0x1a7bb7(0x172,0x1bc,0x126,0x164)]()[_0x17d408(0x312,0x250,0x12e,0x283)](),'maxQueriesPerTurn':z[_0x1a7bb7(0x17f,0x16,-0x97,-0x9)]()[_0x17d408(0x362,0x3f8,0x2ec,0x283)](),'coreInjectTokenBudget':z['number']()[_0x17d408(0x3d4,0x3e1,0x107,0x283)](),'injectTokenBudget':z[_0x17d408(0x1b,0xb2,-0xaf,0xa2)]()[_0x17d408(0x20e,0x345,0x3e3,0x283)](),'minScore':z[_0x1a7bb7(-0x103,0x16,0x79,0x38)]()['optional'](),'freshnessHalfLifeDays':z['number']()[_0x1a7bb7(0x283,0x1f7,0x36a,0x25e)]()})[_0x17d408(0x187,0x56,-0x26,0xd0)]()[_0x17d408(0x39f,0x192,0x203,0x283)](),'extraction':z['object']({'enabled':z[_0x1a7bb7(0x20d,0x1bc,0x102,0x7a)]()[_0x1a7bb7(0x309,0x1f7,0x33f,0x122)](),'provider':z[_0x1a7bb7(0x24b,0x144,0xb9,0x4a)]()[_0x1a7bb7(0x28f,0x1f7,0x2da,0x2f1)](),'model':z[_0x1a7bb7(0x11,0x144,0x271,0x135)]()[_0x17d408(0x2ee,0x14e,0x1c7,0x283)](),'sensitiveFilter':z['boolean']()[_0x1a7bb7(0x254,0x1f7,0x31c,0x22f)]()})[_0x1a7bb7(0x11a,0x44,-0x31,0x46)]()[_0x1a7bb7(0x2a1,0x1f7,0x36c,0x16f)](),'index':z[_0x17d408(0x287,0x229,0x2a8,0x30a)]({'persisted':z['boolean']()[_0x17d408(0x26a,0x27d,0x236,0x283)](),'flushIntervalMs':z[_0x1a7bb7(-0x1f,0x16,0x139,-0xcf)]()['optional']()})['passthrough']()['optional'](),'enabled':z['boolean']()[_0x1a7bb7(0xb7,0x1f7,0xdf,0x2fb)](),'saveTool':z[_0x17d408(0x120,0x109,0x26b,0x248)]()[_0x17d408(0x324,0x319,0x294,0x283)](),'model':z[_0x1a7bb7(0x1f3,0x144,0xcb,0x158)]()['optional'](),'provider':z['string']()['optional'](),'maxInjectionTokens':z[_0x17d408(0x1e4,0x59,-0x39,0xa2)]()[_0x17d408(0x17c,0x156,0x150,0x283)](),'backgroundExtraction':z['boolean']()[_0x17d408(0x1f5,0x1ff,0x36d,0x283)]()})[_0x17d408(0x6f,0x1f5,0xb2,0xd0)](),recentModelSchema=z[_0x1a7bb7(0x365,0x27e,0x2b5,0x38b)]({'provider':z[_0x17d408(0xc1,0x1a4,0x1f9,0x1d0)](),'model':z[_0x1a7bb7(-0x31,0x144,0x16d,0x27e)](),'usedAt':z[_0x1a7bb7(-0xb1,0x16,-0x7a,0x123)]()})[_0x17d408(0x21,0x27,0x76,0xd0)](),lspServerEntrySchema=z[_0x1a7bb7(0x12e,0x27e,0x3da,0x348)]({'disabled':z[_0x1a7bb7(0x70,0x1bc,0x30a,0xc0)]()['optional'](),'command':z['string']()[_0x1a7bb7(0x192,0x1f7,0x301,0x125)](),'args':z[_0x17d408(0x111,-0x8e,-0x44,0xc1)](z[_0x1a7bb7(0x21e,0x144,0x2af,0x26b)]())[_0x1a7bb7(0x277,0x1f7,0x299,0xaa)](),'rootMarkers':z[_0x17d408(0x1d5,0x1fa,0x231,0xc1)](z[_0x17d408(0x132,0x324,0x2b2,0x1d0)]())['optional']()})[_0x1a7bb7(0x10f,0x44,0x71,-0x72)](),lspConfigSchema=z[_0x17d408(0x1fe,0x211,0x1fa,0x30a)]({'enabled':z[_0x1a7bb7(0x101,0x1bc,0x16d,0x175)]()[_0x1a7bb7(0x14c,0x1f7,0x30f,0x181)](),'servers':z[_0x1a7bb7(-0x4c,0x37,-0xac,0x19c)](z['string'](),lspServerEntrySchema)[_0x1a7bb7(0x158,0x1f7,0x7c,0x121)]()})[_0x17d408(0x168,0x244,0x61,0xd0)](),serverEndpointSchema=z[_0x17d408(0x269,0x3df,0x19e,0x30a)]({'url':z[_0x1a7bb7(0x1ec,0x144,0x9b,0x6)](),'token':z[_0x17d408(0x15e,0x2a6,0x5b,0x1d0)]()[_0x17d408(0x23e,0x190,0x2f2,0x283)]()})[_0x17d408(0x232,0xf6,-0x15,0xd0)](),commandHookConfigSchema=z[_0x1a7bb7(0x362,0x27e,0x23a,0x242)]({'type':z[_0x17d408(0x46,0xfc,0x197,0x170)]('command'),'command':z[_0x17d408(0x2d6,0x2b5,0x13f,0x1d0)](),'timeout':z[_0x1a7bb7(-0x71,0x16,-0x11b,0x49)]()[_0x17d408(0x12c,0x274,0x230,0x283)]()}),hookMatcherGroupSchema=z[_0x1a7bb7(0x2c5,0x27e,0x19d,0x22f)]({'matcher':z['string']()[_0x1a7bb7(0xd9,0x1f7,0x218,0x28b)](),'hooks':z['array'](commandHookConfigSchema)}),hooksConfigSchema=z[_0x17d408(0x2d2,0x2b8,0x1f9,0x30a)]({'PreToolUse':z[_0x17d408(0xd8,0x184,0xf5,0xc1)](hookMatcherGroupSchema)[_0x17d408(0x27b,0x168,0x236,0x283)](),'PostToolUse':z[_0x1a7bb7(-0xc1,0x35,0x16b,0x8c)](hookMatcherGroupSchema)[_0x1a7bb7(0x1be,0x1f7,0x15a,0x252)](),'UserPromptSubmit':z[_0x1a7bb7(-0xdf,0x35,0xc8,-0x89)](hookMatcherGroupSchema)['optional'](),'Stop':z[_0x1a7bb7(0x47,0x35,0x18a,-0x131)](hookMatcherGroupSchema)[_0x1a7bb7(0x13d,0x1f7,0x1fb,0x23e)](),'Notification':z[_0x1a7bb7(0x2f,0x35,0xa9,0x120)](hookMatcherGroupSchema)[_0x1a7bb7(0x107,0x1f7,0x231,0x202)](),'ToolApprovalRequest':z[_0x17d408(0x1be,0xb2,0x89,0xc1)](hookMatcherGroupSchema)[_0x17d408(0x3eb,0x2cc,0x3dd,0x283)](),'SessionStart':z[_0x1a7bb7(-0x52,0x35,-0xe1,0x146)](hookMatcherGroupSchema)[_0x1a7bb7(0x317,0x1f7,0x1f3,0x9d)](),'SessionEnd':z['array'](hookMatcherGroupSchema)['optional']()}),cliConfigSchema=z[_0x1a7bb7(0x156,0x27e,0x2f5,0x23d)]({'activeProvider':z['string']()[_0x1a7bb7(0x21e,0x1f7,0x331,0x2b2)](),'activeModel':z[_0x1a7bb7(0x18e,0x144,0x207,0x1de)]()['optional'](),'apiKey':z[_0x1a7bb7(0x29c,0x144,0xaf,0x17f)]()['optional'](),'providers':z[_0x1a7bb7(0x10c,0x37,-0x143,0x95)](z[_0x17d408(0x226,0x1ed,0xe1,0x1d0)](),providerConfigSchema)[_0x17d408(0x3af,0x37c,0x34f,0x283)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x1a7bb7(0x152,0x1f7,0x115,0x19a)](),'agents':agentsSettingsSchema[_0x1a7bb7(0x208,0x1f7,0x1fd,0x295)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z['record'](z[_0x17d408(0x1b2,0x29f,0x33b,0x1d0)](),z[_0x17d408(0x224,0x3af,0x1ac,0x248)]())[_0x17d408(0x315,0x113,0x373,0x283)](),'allowedDirs':z[_0x1a7bb7(-0x4a,0x35,-0xe4,0x15d)](z[_0x1a7bb7(0x1d2,0x144,0xc,0x21a)]())[_0x1a7bb7(0x313,0x1f7,0xfb,0x87)](),'mcpEnabled':z['record'](z[_0x17d408(0x1fe,0x23e,0x321,0x1d0)](),z['boolean']())['optional'](),'commandsEnabled':z[_0x17d408(0x153,0x37,0x19f,0xc3)](z[_0x1a7bb7(0x11d,0x144,0x50,0x20c)](),z['boolean']())[_0x1a7bb7(0xc8,0x1f7,0x195,0xbd)](),'memory':memorySettingsSchema[_0x1a7bb7(0x22b,0x1f7,0x28e,0x256)](),'session':z[_0x1a7bb7(0x25a,0x27e,0x290,0x289)]({'memPersist':z[_0x1a7bb7(0x138,0x1bc,0x202,0x111)]()[_0x1a7bb7(0x135,0x1f7,0x2eb,0x2b1)](),'persistEventLog':z[_0x1a7bb7(0x21e,0x1bc,0x31e,0x149)]()[_0x1a7bb7(0x28c,0x1f7,0x2f9,0x14e)](),'persistHttpLog':z[_0x1a7bb7(0x13c,0x1bc,0x215,0x264)]()[_0x1a7bb7(0x27e,0x1f7,0x1bf,0xcf)]()})[_0x17d408(0x168,0x1e0,0x9a,0xd0)]()[_0x17d408(0x274,0x3f7,0x113,0x283)](),'requireToolApproval':z['boolean']()[_0x1a7bb7(0x288,0x1f7,0x1e2,0x362)](),'thinking':z[_0x1a7bb7(0x306,0x1cf,0x26f,0x181)]([_0x17d408(0x270,0x28,0x25d,0x195),_0x17d408(0x256,0x9a,0x28d,0x12c),_0x17d408(0x2a0,0xe6,0x21f,0x223),_0x17d408(0x2c5,0x130,0x12,0x16e)])['optional'](),'streamingChunks':z[_0x17d408(0x279,0x26b,0x241,0x248)]()[_0x17d408(0x354,0x266,0x2aa,0x283)](),'agentsEnabled':z[_0x17d408(0x1cd,-0x5d,0x0,0xc3)](z[_0x1a7bb7(-0x2b,0x144,0x103,0x1)](),z['boolean']())[_0x1a7bb7(0x2a7,0x1f7,0x2f5,0x25a)](),'recentModels':z[_0x17d408(0x13c,0x2b,0x51,0xc1)](recentModelSchema)['optional'](),'lsp':lspConfigSchema[_0x17d408(0x2f5,0x2fd,0x347,0x283)](),'servers':z['record'](z[_0x1a7bb7(0x77,0x144,0x1cf,0xa8)](),serverEndpointSchema)['optional'](),'ui':z['object']({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x1a7bb7(0x29d,0x1f7,0x193,0x35a)]()})[_0x1a7bb7(-0xa3,0x44,0x142,0xa9)]()['optional'](),'tools':z[_0x1a7bb7(0xee,0x37,0x13d,0x3f)](z[_0x1a7bb7(0xe8,0x144,0xa3,0x2bc)](),z[_0x1a7bb7(0xcd,0x141,0x125,0x12)]())[_0x1a7bb7(0x215,0x1f7,0x365,0x27b)](),'hooks':hooksConfigSchema['optional']()})[_0x1a7bb7(-0x124,0x44,0x163,0x10c)](),workspaceOverlaySchema=z[_0x17d408(0x2db,0x440,0x1b3,0x30a)]({'root':z['string']()['optional'](),'allowedDirs':z['array'](z[_0x1a7bb7(0x190,0x144,0x9f,0x153)]())[_0x17d408(0x21e,0x36d,0x2fc,0x283)](),'activeProvider':z[_0x1a7bb7(0x60,0x144,0xa8,0x155)]()[_0x17d408(0x321,0x11d,0x374,0x283)](),'activeModel':z[_0x17d408(0x202,0x17c,0x205,0x1d0)]()[_0x1a7bb7(0xca,0x1f7,0x22c,0x316)](),'mcp':mcpSettingsSchema[_0x1a7bb7(0x318,0x1f7,0x2c6,0x349)](),'skills':skillsSettingsSchema[_0x17d408(0x1e9,0x1d4,0x2fc,0x283)](),'agents':agentsSettingsSchema[_0x1a7bb7(0x33b,0x1f7,0x201,0x80)](),'commands':commandsSettingsSchema[_0x1a7bb7(0x1d6,0x1f7,0x13b,0x7d)](),'hooks':hooksConfigSchema[_0x17d408(0x327,0x25d,0x1f8,0x283)](),'memory':memorySettingsSchema['optional'](),'mcpEnabled':z[_0x1a7bb7(-0x62,0x37,0xc4,0x47)](z[_0x1a7bb7(0x106,0x144,0x2b6,0xa5)](),z[_0x1a7bb7(0x1cf,0x1bc,0x1ab,0x178)]())[_0x1a7bb7(0x2a7,0x1f7,0x25e,0x310)](),'skillsEnabled':z[_0x1a7bb7(0x127,0x37,0x194,0x154)](z['string'](),z['boolean']())['optional'](),'agentsEnabled':z['record'](z[_0x17d408(0x8b,0x142,0xe8,0x1d0)](),z[_0x1a7bb7(0x16b,0x1bc,0x111,0x6e)]())[_0x17d408(0x3a5,0x14d,0x22e,0x283)](),'commandsEnabled':z[_0x17d408(-0x68,0x1d7,-0xa2,0xc3)](z[_0x1a7bb7(0x19a,0x144,-0x24,0x1f5)](),z[_0x1a7bb7(0x2c4,0x1bc,0xb6,0x334)]())[_0x1a7bb7(0x2be,0x1f7,0x257,0x271)]()})[_0x1a7bb7(-0x84,0x44,-0x131,0xed)]();function buildDescription(_0x120a89){const _0x5b55f7={_0x51d421:0x146,_0x9af9c3:0x8f,_0xe3c1e6:0x1e0,_0x18845c:0x1d,_0x39f69e:0x577,_0x1bd90d:0x50e,_0x4b00b7:0x39d,_0x503ce0:0x548,_0x2f1669:0x4c6,_0x41872e:0x466,_0x1409c4:0x3bf,_0x2be936:0x91,_0xd548ee:0x61},_0x293c6e={_0x1e7010:0x117,_0x599b4e:0x1c5,_0x419e51:0xab};function _0x41e96a(_0x2e42b6,_0x51a1bb,_0x2540dd,_0x211b01){return _0x17d408(_0x2e42b6-0x3a,_0x51a1bb-0x1d5,_0x2e42b6,_0x2540dd-0x3ff);}if(_0x120a89[_0x480f9f(-0x14e,-_0x5b55f7._0x51d421,-0x15c,-_0x5b55f7._0x9af9c3)]===0x0)return[_0x480f9f(-0x84,0x6e,_0x5b55f7._0xe3c1e6,_0x5b55f7._0x18845c),_0x41e96a(0x68a,_0x5b55f7._0x39f69e,_0x5b55f7._0x1bd90d,0x444),_0x41e96a(_0x5b55f7._0x4b00b7,_0x5b55f7._0x503ce0,0x517,0x469)][_0x41e96a(0x687,0x47b,0x535,0x690)]('\x0a');function _0x480f9f(_0x44d6ae,_0x318fb7,_0x7ffdb7,_0x42ba59){return _0x1a7bb7(_0x44d6ae-_0x293c6e._0x1e7010,_0x318fb7- -_0x293c6e._0x599b4e,_0x7ffdb7-_0x293c6e._0x419e51,_0x42ba59);}const _0x2209a3=['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x41e96a(_0x5b55f7._0x2f1669,_0x5b55f7._0x41872e,_0x5b55f7._0x1bd90d,_0x5b55f7._0x1409c4),_0x41e96a(0x3ab,0x53a,0x445,0x507),..._0x120a89[_0x480f9f(0x20,-_0x5b55f7._0x2be936,_0x5b55f7._0xd548ee,-0x8c)](_0x302b67=>_0x302b67['argumentHint']?'-\x20'+_0x302b67['name']+'\x20'+_0x302b67['argumentHint']+':\x20'+_0x302b67[_0x480f9f(-0x1ad,-0x214,-0xa2,-0x209)]:'-\x20'+_0x302b67[_0x41e96a(0x40c,0x525,0x449,0x471)]+':\x20'+_0x302b67[_0x480f9f(-0x37c,-0x214,-0x198,-0x148)])];return _0x2209a3['join']('\x0a');}function createInvokeCommandTool(_0x54b97){const _0x19b489={_0x127513:0x411,_0x18c4f1:0x447,_0x4ba5db:0x5ca,_0x508f76:0x460,_0xb61cfe:0x5a8,_0x4d8f1e:0x5a6,_0x3cc045:0x4ab,_0x5502a6:0x588,_0x39485b:0x545,_0x17b3fb:0x7ea,_0x6b64af:0x4c5,_0x55611d:0x540},_0x42d532={_0x2bbc13:0x49,_0x26c8f4:0x2a,_0x3f3cc8:0x96,_0x146ff5:0x72,_0x5f2d19:0x1a2,_0x1a902a:0x22c,_0x39efff:0x3f6,_0x3820ed:0x3d0,_0x36e451:0x101,_0x4161c8:0x1f,_0x377378:0x30c,_0x4f630c:0x1a4,_0x4c56ff:0x96,_0xc95be0:0x147,_0x19def1:0x2d,_0xae0fed:0x71,_0x2b3066:0x2fa,_0x20bd0a:0x36a,_0x1cf8a6:0x44b,_0x523dad:0x1e5,_0x23bf90:0x349,_0x528316:0x11b,_0x327e46:0x1e,_0x515338:0x5d,_0xf6d0af:0x2d8,_0x381009:0x1a3,_0x130289:0x5b,_0xddc9cb:0x37,_0x3430be:0x5,_0x349563:0xa3,_0x291ae9:0x9b},_0x5b2d85={_0x169cc7:0xb5,_0xe308b2:0x134},_0x253c25={_0x18b129:0xd7},_0x5d33f8={_0x10f8f2:0x4be},_0x428c29={_0x2889cf:0x1e4,_0x5da6b2:0x2d1};function _0x4f30a6(_0x5596d2,_0x52d324,_0x5e05a8,_0x144b6d){return _0x17d408(_0x5596d2-0xeb,_0x52d324-_0x428c29._0x2889cf,_0x52d324,_0x144b6d-_0x428c29._0x5da6b2);}const _0x527904=new Map(_0x54b97[_0x4f30a6(_0x19b489._0x127513,0x51e,0x43e,_0x19b489._0x18c4f1)][_0x4f30a6(_0x19b489._0x4ba5db,0x536,_0x19b489._0x508f76,0x491)](_0x5796e8=>[_0x5796e8['id'],_0x5796e8])),_0x2c4885=buildDescription(_0x54b97[_0x4fb7a2(0x4e9,_0x19b489._0xb61cfe,_0x19b489._0x4d8f1e,0x663)]);function _0x4fb7a2(_0x5baca6,_0x4155ac,_0x423609,_0x200520){return _0x1a7bb7(_0x5baca6-0xe2,_0x4155ac-_0x5d33f8._0x10f8f2,_0x423609-0x11f,_0x5baca6);}return defineTool({'name':_0x4fb7a2(_0x19b489._0x3cc045,_0x19b489._0x5502a6,0x5fa,_0x19b489._0x39485b),'description':_0x2c4885,'inputSchema':{'type':_0x4fb7a2(0x7dd,0x73c,_0x19b489._0x17b3fb,0x611),'properties':{'name':{'type':'string'},'args':{'type':_0x4f30a6(_0x19b489._0x6b64af,0x4e9,_0x19b489._0x55611d,0x4a1)}},'required':['name']},async *'execute'(_0x191fae){const _0x3fc3ce=_0x527904[_0x2b8229(0x10a,_0x42d532._0x2bbc13,-0x49,-_0x42d532._0x26c8f4)](_0x191fae[_0x421608(_0x42d532._0x3f3cc8,_0x42d532._0x146ff5,_0x42d532._0x5f2d19,0x1a3)]);if(!_0x3fc3ce){const _0x224524=Array[_0x421608(0x173,0x2fc,0x325,_0x42d532._0x1a902a)](_0x527904['keys']())[_0x421608(0x236,_0x42d532._0x39efff,_0x42d532._0x3820ed,0x28f)](',\x20');throw new ToolExecutionError(_0x2b8229(_0x42d532._0x36e451,-_0x42d532._0x4161c8,0x155,0x1b7)+_0x191fae['name']+_0x421608(0x1e7,_0x42d532._0x377378,0x223,_0x42d532._0x4f630c)+_0x224524,{'name':_0x191fae[_0x2b8229(-_0x42d532._0x4c56ff,-_0x42d532._0xc95be0,-0x70,-0x37)]});}const _0x27bd1a=await _0x54b97[_0x2b8229(0x1a0,0x16b,_0x42d532._0x19def1,_0x42d532._0xae0fed)](_0x3fc3ce),_0x7a8790=_0x191fae[_0x421608(_0x42d532._0x2b3066,0x475,_0x42d532._0x20bd0a,_0x42d532._0x1cf8a6)]??'';function _0x421608(_0x170a5e,_0x585e20,_0x26b79c,_0x53a875){return _0x4fb7a2(_0x26b79c,_0x53a875- -0x2d9,_0x26b79c-0x1d2,_0x53a875-_0x253c25._0x18b129);}function _0x2b8229(_0x102b26,_0x22d1b5,_0xe4e537,_0x5c2170){return _0x4fb7a2(_0x5c2170,_0x102b26- -0x512,_0xe4e537-_0x5b2d85._0x169cc7,_0x5c2170-_0x5b2d85._0xe308b2);}const _0x1fa77d=renderCommandInstructions({'instructions':_0x27bd1a[_0x2b8229(_0x42d532._0x523dad,_0x42d532._0x23bf90,0x18b,0x148)],'argumentsText':_0x7a8790,'argumentNames':_0x27bd1a[_0x2b8229(_0x42d532._0x528316,0x210,-_0x42d532._0x327e46,0x4d)]});return yield createToolOutput(_0x1fa77d,{'id':_0x27bd1a['id'],'name':_0x27bd1a[_0x421608(_0x42d532._0x515338,_0x42d532._0xf6d0af,0xcc,_0x42d532._0x381009)],'path':_0x3fc3ce[_0x2b8229(_0x42d532._0x130289,0x11e,-_0x42d532._0xddc9cb,-_0x42d532._0x3430be)][_0x2b8229(_0x42d532._0x349563,-_0x42d532._0x291ae9,0x41,0x199)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x39588e,rename as _0x44831a,stat as _0x197bbf,writeFile as _0x4c11c6}from'fs/promises';import*as _0x33baf1 from'path';function detectEol(_0xcc4b72){const _0x3fbde1={_0x20b8b1:0x23c,_0x4b17aa:0x3aa,_0x3363be:0x529,_0x4b191d:0x3b7},_0x154e4e={_0x25e82a:0xef},_0x4360d7={_0x45f089:0x11a,_0x9474b:0x158};function _0x121ba1(_0xed3a31,_0x1b827e,_0x291de1,_0xaa27a5){return _0x1a7bb7(_0xed3a31-_0x4360d7._0x45f089,_0xaa27a5-0x19b,_0x291de1-_0x4360d7._0x9474b,_0xed3a31);}function _0x5bc3fa(_0x26fe0c,_0x2e0713,_0x544ace,_0x4a012c){return _0x17d408(_0x26fe0c-0x18e,_0x2e0713-0xc2,_0x544ace,_0x4a012c-_0x154e4e._0x25e82a);}return/\r\n/[_0x121ba1(0x267,0x285,_0x3fbde1._0x20b8b1,_0x3fbde1._0x4b17aa)](_0xcc4b72[_0x5bc3fa(_0x3fbde1._0x3363be,0x515,0x40a,_0x3fbde1._0x4b191d)]('utf8'))?'crlf':'lf';}function normalizeToLf(_0x1db16e){const _0x4fcd26={_0x4b53cd:0x2e5,_0x41446a:0x361},_0x2b1972={_0x5f3a10:0xb0,_0x100e68:0xd3};function _0x442601(_0x5d09db,_0x14a5e9,_0x40503f,_0x4914f7){return _0x1a7bb7(_0x5d09db-_0x2b1972._0x5f3a10,_0x14a5e9-_0x2b1972._0x100e68,_0x40503f-0x95,_0x40503f);}return _0x1db16e[_0x442601(_0x4fcd26._0x4b53cd,0x253,0x1c0,_0x4fcd26._0x41446a)](/\r\n/g,'\x0a');}function convertEol(_0x155ae9,_0x55855a){const _0xaf0c04={_0x5a2d04:0x109,_0x1849e8:0x10d};function _0x14afa8(_0x18fcf4,_0x2f94a3,_0x2e0f0e,_0x1d80c5){return _0x17d408(_0x18fcf4-0x3b,_0x2f94a3-0x5b,_0x18fcf4,_0x2e0f0e- -0x230);}return _0x55855a==='crlf'?_0x155ae9[_0x14afa8(0xed,_0xaf0c04._0x5a2d04,-0x24,_0xaf0c04._0x1849e8)](/\n/g,'\x0d\x0a'):_0x155ae9;}async function atomicWrite(_0x1815e3,_0x548901){const _0x58e742={_0x320456:0x1de,_0x397852:0xc4,_0x319967:0x9a,_0x41b164:0x16d,_0x2e0247:0x744,_0x3ce0c5:0x625,_0x5b2c90:0x144,_0x404f7b:0x15a,_0x2d708a:0x73},_0x2ad481={_0x434125:0xc4,_0x312e12:0xd0};function _0x50db0b(_0x2bb79d,_0x2497de,_0x163231,_0x5a0bc3){return _0x17d408(_0x2bb79d-0xbd,_0x2497de-0x1e9,_0x5a0bc3,_0x2497de-0x315);}const _0x51f723=_0x33baf1['dirname'](_0x1815e3),_0x4698d4=_0x33baf1[_0x991d5b(-0x7b,-0x116,-0x121,-0x11f)](_0x51f723,_0x991d5b(-0x183,-0x9d,-_0x58e742._0x320456,-0x198)+_0x33baf1['basename'](_0x1815e3)+'.'+Date[_0x991d5b(-_0x58e742._0x397852,-_0x58e742._0x319967,-0xe1,-_0x58e742._0x41b164)]()+'.'+Math[_0x50db0b(_0x58e742._0x2e0247,_0x58e742._0x3ce0c5,0x4ee,0x645)]()[_0x991d5b(_0x58e742._0x5b2c90,0x3c,_0x58e742._0x404f7b,_0x58e742._0x2d708a)](0x24)['slice'](0x2));function _0x991d5b(_0x221be4,_0x1a3be0,_0x36d890,_0x47b13e){return _0x17d408(_0x221be4-_0x2ad481._0x434125,_0x1a3be0-_0x2ad481._0x312e12,_0x36d890,_0x47b13e- -0x255);}await _0x4c11c6(_0x4698d4,_0x548901),await _0x44831a(_0x4698d4,_0x1815e3);}function sha256(_0x26e79e){const _0x393e08={_0x5309cf:0x2f8,_0x5ef996:0x3c5,_0x21fe35:0x9b,_0x207c87:0x73,_0x53e961:0x6c,_0x52a68d:0x7d,_0x108ff7:0x252,_0x101cda:0x163,_0x52c80e:0x312},_0x1153ad={_0x2a82fe:0xa3,_0x2c8faa:0x2d5,_0x3eb7cb:0x15b},_0x57135c={_0x22524d:0x2c4,_0x1a8f88:0x11f};function _0xef2091(_0x221014,_0x271652,_0x3f9443,_0x1314fb){return _0x1a7bb7(_0x221014-0xbc,_0x221014- -_0x57135c._0x22524d,_0x3f9443-_0x57135c._0x1a8f88,_0x3f9443);}function _0x4ff143(_0x1a54bc,_0x1375c9,_0x9cb7ed,_0x312962){return _0x1a7bb7(_0x1a54bc-_0x1153ad._0x2a82fe,_0x9cb7ed-_0x1153ad._0x2c8faa,_0x9cb7ed-_0x1153ad._0x3eb7cb,_0x312962);}return createHash(_0x4ff143(0x524,_0x393e08._0x5309cf,_0x393e08._0x5ef996,0x251))[_0xef2091(-_0x393e08._0x21fe35,_0x393e08._0x207c87,-_0x393e08._0x53e961,_0x393e08._0x52a68d)](_0x26e79e)['digest'](_0xef2091(-_0x393e08._0x108ff7,-_0x393e08._0x101cda,-_0x393e08._0x52c80e,-0xe7));}function countLines(_0x3395a4){const _0x48056b={_0x41fe3b:0x5a7,_0x116c3e:0x398,_0x109e90:0x50e,_0xab2fa:0x2d6},_0x4e65e7={_0x19ff24:0x124},_0x177e54={_0x443fc6:0x35,_0x2d140d:0x28d};function _0x3c1e14(_0xc3149e,_0x4fffb1,_0x364547,_0x3bebbb){return _0x17d408(_0xc3149e-_0x177e54._0x443fc6,_0x4fffb1-0x126,_0x4fffb1,_0xc3149e-_0x177e54._0x2d140d);}function _0x5b0f0f(_0x1bd03d,_0x53a374,_0x835705,_0x3dcc2e){return _0x1a7bb7(_0x1bd03d-0xfd,_0x3dcc2e- -0x41,_0x835705-_0x4e65e7._0x19ff24,_0x1bd03d);}const _0x4382d8=_0x3395a4[_0x3c1e14(0x499,0x356,_0x48056b._0x41fe3b,0x390)](/\n$/,'');return _0x4382d8[_0x5b0f0f(0x169,0x106,0x136,0x3e)]===0x0?0x0:_0x4382d8['split']('\x0a')[_0x3c1e14(_0x48056b._0x116c3e,0x287,_0x48056b._0x109e90,_0x48056b._0xab2fa)];}function calculateLineNumbers(_0x632eb,_0x1e1960,_0x11bd6a,_0x4af9a4){const _0x10f424={_0x511a36:0x43,_0x57dd91:0x124,_0x388239:0x7b,_0x5b8cbc:0x10,_0x37c3be:0x183,_0x1c8953:0xf6},_0x329c68={_0x3f0a66:0x1c2,_0x73d7e1:0xd9,_0x3cb21a:0x264},_0x40fafe={_0x360776:0xbe,_0x19c9f0:0x17d,_0x44e1b3:0x15};function _0x1a5a78(_0x28b3c0,_0x5efa68,_0x3142d7,_0x57c1f0){return _0x17d408(_0x28b3c0-_0x40fafe._0x360776,_0x5efa68-_0x40fafe._0x19c9f0,_0x57c1f0,_0x5efa68- -_0x40fafe._0x44e1b3);}const _0x1a119d=_0x632eb[_0x1a5a78(-_0x10f424._0x511a36,_0x10f424._0x57dd91,_0x10f424._0x388239,-_0x10f424._0x5b8cbc)](0x0,_0x4af9a4)[_0x1a5a78(_0x10f424._0x388239,0xdf,0x86,_0x10f424._0x37c3be)]('\x0a')[_0x1a5a78(-0xb,_0x10f424._0x1c8953,0x1b3,0x18)];function _0x509f26(_0x1181da,_0x53e03c,_0x330388,_0x400da8){return _0x17d408(_0x1181da-_0x329c68._0x3f0a66,_0x53e03c-_0x329c68._0x73d7e1,_0x330388,_0x53e03c-_0x329c68._0x3cb21a);}const _0x3d6b9c=countLines(_0x1e1960),_0x18e402=countLines(_0x11bd6a);return{'oldStartLine':_0x1a119d,'oldEndLine':_0x1a119d+_0x3d6b9c-0x1,'newStartLine':_0x1a119d,'newEndLine':_0x1a119d+_0x18e402-0x1,'oldLineCount':_0x3d6b9c,'newLineCount':_0x18e402};}function _0x2414(_0x58a702,_0x14e53e){_0x58a702=_0x58a702-0x87;const _0x1365c0=_0x1365();let _0x2414c1=_0x1365c0[_0x58a702];if(_0x2414['uDKCWg']===undefined){var _0x372d05=function(_0x4cf284){const _0x2a9c73='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fa1f7='',_0x1493b9='';for(let _0x254aec=0x0,_0x29fae5,_0x806b1a,_0x509832=0x0;_0x806b1a=_0x4cf284['charAt'](_0x509832++);~_0x806b1a&&(_0x29fae5=_0x254aec%0x4?_0x29fae5*0x40+_0x806b1a:_0x806b1a,_0x254aec++%0x4)?_0x1fa1f7+=String['fromCharCode'](0xff&_0x29fae5>>(-0x2*_0x254aec&0x6)):0x0){_0x806b1a=_0x2a9c73['indexOf'](_0x806b1a);}for(let _0x41ea48=0x0,_0x635445=_0x1fa1f7['length'];_0x41ea48<_0x635445;_0x41ea48++){_0x1493b9+='%'+('00'+_0x1fa1f7['charCodeAt'](_0x41ea48)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1493b9);};_0x2414['YBZWWT']=_0x372d05,_0x2414['XwacKz']={},_0x2414['uDKCWg']=!![];}const _0x633a12=_0x1365c0[0x0],_0x923a88=_0x58a702+_0x633a12,_0x4a5ef6=_0x2414['XwacKz'][_0x923a88];return!_0x4a5ef6?(_0x2414c1=_0x2414['YBZWWT'](_0x2414c1),_0x2414['XwacKz'][_0x923a88]=_0x2414c1):_0x2414c1=_0x4a5ef6,_0x2414c1;}function createFileEditTool(_0x4c54ec={}){const _0x5320f4={_0x55111d:0xae,_0x5799dc:0xc9,_0x4d3e5b:0x93,_0x487cef:0x5e2,_0x36a459:0x486,_0x233f52:0x502,_0x125b0d:0x419,_0x404cd5:0x5d,_0x1f586a:0x68,_0x2dbf25:0x11e,_0x4f51f8:0x5b,_0x5f0f31:0x233,_0x4804eb:0x369,_0x5c2ad3:0x2e0,_0x22655a:0x292,_0xdc80d7:0x2f2,_0x1f7c15:0x13a,_0x4b597e:0x483,_0x33b08c:0x567,_0x17c345:0x3b9,_0x2e9bd4:0x3e9,_0x41647f:0x1a3,_0x140736:0xd4,_0x14cce7:0x4b,_0x48c599:0x431,_0x8e802b:0x546,_0x276160:0x9e,_0x387a9b:0x30e,_0x1c8e1d:0x317,_0x52caf1:0x1e1,_0xae33be:0x40b,_0x2c45eb:0x342,_0x4bfdc2:0x299,_0x625e8f:0x1ca},_0x4a6b6e={_0x84f140:0x44f,_0x1b986f:0x6e7,_0x7d5af5:0x6f1,_0x39927a:0x62d,_0x3423c8:0x4b4,_0x3bb0e1:0x609,_0x573ac4:0x476,_0xfaf3ac:0x409,_0x30aa22:0x58c,_0x23a69c:0x503,_0xa133e6:0x5fb,_0x23abda:0x3d1,_0x5c5385:0x517,_0x15e6dd:0x677,_0x5a31ea:0x6d7,_0x1ff658:0x55d,_0x3caa76:0x69f,_0x16a8ac:0x45f,_0x317033:0x470,_0x596f36:0x427,_0x3c2290:0x4e2,_0x2c486f:0x456,_0x820401:0x53b,_0x2d915c:0x54a,_0x32b1de:0x363,_0x116ab0:0x47b,_0x356347:0x44d,_0xb26942:0x41d,_0x370b29:0x5ed,_0x3cc825:0x33c,_0x4ac439:0x5cb,_0x3840ae:0x4c0,_0x5b2243:0x5d6,_0x2bea86:0x3b4,_0x53b8ce:0x33d,_0x32137b:0x452,_0x26f49f:0x3b6,_0x3e1b35:0x509,_0x399c72:0x5be,_0x3f7104:0x4c1,_0x2bbafe:0x33b,_0x366e8c:0x441,_0x7229ba:0x403,_0x301a58:0x57b,_0x44e92b:0x326,_0x1dc953:0x362},_0x57ba6c={_0x8e5861:0x134,_0x4f52ea:0x1d9},_0x5b347e={_0xca0edf:0x12e},_0x27e441={_0x42dd2b:0x93,_0x1ef773:0x21b},_0x2cca1e={_0x4cb5d1:0x1e9};function _0x48bfef(_0xa0f940,_0x5c4287,_0x500acc,_0x26d1d9){return _0x17d408(_0xa0f940-0x54,_0x5c4287-0xaf,_0xa0f940,_0x5c4287-_0x2cca1e._0x4cb5d1);}const _0x5583fe=_0x33baf1[_0x20b396(-_0x5320f4._0x55111d,_0x5320f4._0x5799dc,0x9e,-_0x5320f4._0x4d3e5b)](_0x4c54ec['defaultCwd']??process[_0x48bfef(_0x5320f4._0x487cef,_0x5320f4._0x36a459,_0x5320f4._0x233f52,_0x5320f4._0x125b0d)]()),_0x1e7007=(_0x4c54ec[_0x20b396(0x53,-0x19d,-_0x5320f4._0x404cd5,-_0x5320f4._0x1f586a)]??[])[_0x20b396(-_0x5320f4._0x2dbf25,-0x4d,0xf8,-_0x5320f4._0x4f51f8)](_0xcf3c00=>_0x33baf1[_0x20b396(-0x17e,-0x19e,-0x1b9,-0x93)](_0xcf3c00)),_0x5ed655=_0x4c54ec[_0x48bfef(0x226,_0x5320f4._0x5f0f31,0x34b,_0x5320f4._0x4804eb)]??_0x48bfef(_0x5320f4._0x5c2ad3,_0x5320f4._0x22655a,0x31c,_0x5320f4._0xdc80d7);function _0x20b396(_0x1a38a8,_0x1af015,_0x17a6b8,_0x106cdd){return _0x17d408(_0x1a38a8-0x4f,_0x1af015-_0x27e441._0x42dd2b,_0x1af015,_0x106cdd- -_0x27e441._0x1ef773);}return defineTool({'name':_0x5ed655,'description':_0x20b396(-0x208,-0x130,-0x60,-_0x5320f4._0x1f7c15),'inputSchema':{'type':_0x48bfef(_0x5320f4._0x4b597e,0x4f3,0x43a,_0x5320f4._0x33b08c),'properties':{'filePath':{'type':_0x48bfef(0x3c4,_0x5320f4._0x17c345,0x4f6,_0x5320f4._0x2e9bd4)},'oldText':{'type':_0x48bfef(0x26a,_0x5320f4._0x17c345,0x4ec,0x325)},'newText':{'type':_0x20b396(0xea,-_0x5320f4._0x41647f,-_0x5320f4._0x140736,-_0x5320f4._0x14cce7)},'dryRun':{'type':_0x48bfef(0x58c,_0x5320f4._0x48c599,0x3e1,_0x5320f4._0x8e802b)}},'required':[_0x20b396(-0x1ac,-0x28,-0x64,-_0x5320f4._0x276160),_0x20b396(-0xd5,-_0x5320f4._0x387a9b,-_0x5320f4._0x1c8e1d,-_0x5320f4._0x52caf1),_0x48bfef(_0x5320f4._0xae33be,_0x5320f4._0x2c45eb,_0x5320f4._0x4bfdc2,_0x5320f4._0x625e8f)]},async *'execute'(_0x29975e){const _0x81acb5=resolveAllowedPath(_0x5583fe,_0x1e7007,_0x29975e[_0x1248bd(0x49a,_0x4a6b6e._0x84f140,0x431,0x402)]);await assertWorkspaceFile(_0x81acb5);const _0x54910f=await _0x197bbf(_0x81acb5),_0x3542f2=await _0x39588e(_0x81acb5),_0x341ec3=detectEol(_0x3542f2),_0x221e19=normalizeToLf(_0x3542f2[_0x3e041d(_0x4a6b6e._0x1b986f,0x726,_0x4a6b6e._0x7d5af5,_0x4a6b6e._0x39927a)](_0x3e041d(0x676,_0x4a6b6e._0x3423c8,0x6e9,_0x4a6b6e._0x3bb0e1)));function _0x3e041d(_0x28d2b8,_0x2cb24a,_0x24a267,_0x1aaf08){return _0x20b396(_0x28d2b8-0xbb,_0x24a267,_0x24a267-_0x5b347e._0xca0edf,_0x1aaf08-0x580);}const _0x395eec=normalizeToLf(_0x29975e['oldText']),_0x2fd943=normalizeToLf(_0x29975e[_0x1248bd(_0x4a6b6e._0x573ac4,_0x4a6b6e._0xfaf3ac,0x58c,_0x4a6b6e._0x30aa22)]),_0x56de15=_0x221e19[_0x1248bd(_0x4a6b6e._0x23a69c,_0x4a6b6e._0xa133e6,0x443,_0x4a6b6e._0x23abda)](_0x395eec);if(_0x56de15===-0x1){const _0x18ee5d=_0x395eec['slice'](0x0,0x64)[_0x3e041d(_0x4a6b6e._0x5c5385,_0x4a6b6e._0x15e6dd,_0x4a6b6e._0x5a31ea,0x571)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x1248bd(_0x4a6b6e._0x1ff658,0x6d1,_0x4a6b6e._0x3caa76,_0x4a6b6e._0x16a8ac)+_0x18ee5d+(_0x395eec[_0x3e041d(0x441,0x302,0x478,_0x4a6b6e._0x317033)]>0x64?_0x1248bd(0x439,0x2f1,0x3c2,_0x4a6b6e._0x596f36):'')+'\x22',{'filePath':_0x29975e[_0x1248bd(0x49a,0x40a,_0x4a6b6e._0x3c2290,0x362)]});}const _0x52bc17=_0x221e19['slice'](0x0,_0x56de15)+_0x2fd943+_0x221e19[_0x1248bd(_0x4a6b6e._0x2c486f,_0x4a6b6e._0x820401,0x4b2,_0x4a6b6e._0x2d915c)](_0x56de15+_0x395eec[_0x1248bd(0x428,0x387,_0x4a6b6e._0x32b1de,_0x4a6b6e._0x116ab0)]),_0x1b21d5=convertEol(_0x52bc17,_0x341ec3),_0x46413c=Buffer[_0x1248bd(0x3f0,_0x4a6b6e._0x356347,_0x4a6b6e._0xb26942,0x45d)](_0x1b21d5,_0x3e041d(0x550,_0x4a6b6e._0x370b29,0x50d,0x609)),_0x446599=sha256(_0x3542f2),_0x30af24=sha256(_0x46413c);function _0x1248bd(_0x34743e,_0x3ccae9,_0x270e73,_0x33ac90){return _0x48bfef(_0x33ac90,_0x34743e-_0x57ba6c._0x8e5861,_0x270e73-_0x57ba6c._0x4f52ea,_0x33ac90-0x13b);}const _0x353674=_0x446599===_0x30af24,_0x159957=_0x29975e['dryRun']??![];return!_0x159957&&!_0x353674&&await atomicWrite(_0x81acb5,_0x46413c),yield createToolOutput(_0x353674?_0x3e041d(_0x4a6b6e._0x3cc825,0x481,_0x4a6b6e._0x4ac439,0x4ab):_0x159957?'Validated\x20(dry\x20run:\x20no\x20write).':_0x3e041d(0x4ce,_0x4a6b6e._0x3840ae,_0x4a6b6e._0x5b2243,0x639),{'filePath':_0x29975e['filePath'],'resolvedPath':_0x81acb5,'created':_0x54910f[_0x1248bd(_0x4a6b6e._0x2bea86,_0x4a6b6e._0x53b8ce,_0x4a6b6e._0x32137b,_0x4a6b6e._0x26f49f)]['toISOString'](),'modified':_0x54910f[_0x3e041d(_0x4a6b6e._0x3e1b35,0x3e3,0x536,0x45c)][_0x1248bd(0x488,_0x4a6b6e._0x399c72,0x46d,0x394)](),'size':_0x54910f[_0x1248bd(0x497,_0x4a6b6e._0x3f7104,_0x4a6b6e._0x2bbafe,_0x4a6b6e._0x366e8c)],'eol':_0x341ec3,'oldTextLength':_0x395eec[_0x1248bd(0x428,_0x4a6b6e._0x7229ba,_0x4a6b6e._0x3c2290,_0x4a6b6e._0x301a58)],'newTextLength':_0x2fd943[_0x1248bd(0x428,_0x4a6b6e._0x44e92b,0x503,_0x4a6b6e._0x1dc953)],'bytesWritten':_0x353674||_0x159957?0x0:_0x46413c['length'],'beforeSha':_0x446599,'afterSha':_0x30af24,'dryRun':_0x159957,'noChange':_0x353674,'lineNumbers':calculateLineNumbers(_0x221e19,_0x395eec,_0x2fd943,_0x56de15)}),void 0x0;}});}import{mkdir as _0x47650c,rename as _0xde560,stat as _0x385c1d,writeFile as _0x43112a}from'fs/promises';import*as _0xc6c7a1 from'path';async function atomicWrite2(_0x29348b,_0x3fc107){const _0x4c397a={_0x21e527:0x2f7,_0x47413f:0xd8,_0x199557:0x1a5,_0x381291:0xe5,_0x2c8911:0xe3,_0x542302:0x2b2,_0xfa1b00:0x421,_0x378d4:0x2bf,_0x3fd497:0x2a4,_0x40f661:0x360,_0x11f8ce:0x277,_0x4b6eee:0x235,_0x1a5e71:0x1ed},_0x47b516={_0x2ab5ea:0x8f},_0x383531={_0x4b0c4c:0x22b};function _0x23c4f2(_0x4d86ff,_0x3c14df,_0x4ee17e,_0x233d47){return _0x1a7bb7(_0x4d86ff-0x69,_0x4ee17e- -_0x383531._0x4b0c4c,_0x4ee17e-0x1b,_0x3c14df);}const _0x227844=_0xc6c7a1[_0x23c4f2(-_0x4c397a._0x21e527,-_0x4c397a._0x47413f,-0x210,-0x23e)](_0x29348b);await _0x47650c(_0x227844,{'recursive':!![]});const _0x5adad2=_0xc6c7a1[_0x2afc66(0x9a,_0x4c397a._0x199557,0xe5,_0x4c397a._0x381291)](_0x227844,_0x23c4f2(-0x155,-_0x4c397a._0x2c8911,-0x1fa,-0x190)+_0xc6c7a1['basename'](_0x29348b)+'.'+Date[_0x23c4f2(-0x28c,-0x131,-0x1cf,-_0x4c397a._0x542302)]()+'.'+Math[_0x2afc66(0x17e,0x3de,_0x4c397a._0xfa1b00,_0x4c397a._0x378d4)]()[_0x2afc66(0x27c,_0x4c397a._0x3fd497,_0x4c397a._0x40f661,_0x4c397a._0x11f8ce)](0x24)[_0x2afc66(_0x4c397a._0x4b6eee,0x1fa,_0x4c397a._0x1a5e71,0xe8)](0x2));function _0x2afc66(_0x5aeeb5,_0x12242c,_0x1d0f49,_0x57a27a){return _0x17d408(_0x5aeeb5-0x1f0,_0x12242c-_0x47b516._0x2ab5ea,_0x1d0f49,_0x57a27a- -0x51);}await _0x43112a(_0x5adad2,_0x3fc107),await _0xde560(_0x5adad2,_0x29348b);}function createFileNewTool(_0xdef510={}){const _0x17ddaa={_0x5d2954:0x21,_0x45a7cf:0x359,_0x3e5660:0x2f7,_0x2f28d1:0x3ed,_0x43c4f6:0x2c9,_0x3c06c6:0x181,_0xe02edf:0x5f,_0x1122d9:0x182,_0x26a9c4:0x1a3,_0x2428a1:0x374,_0x5c844c:0x13c,_0xd4ceff:0xdd,_0x40a369:0x215,_0x1eb714:0x17e,_0x1f36aa:0x106,_0x21ec3f:0x23,_0x480919:0x8a,_0x44b736:0x7f,_0x3440cb:0x1e3},_0x512971={_0x107eb9:0x18,_0x5a3489:0xb4,_0x54453d:0xea,_0x27ed03:0x1a5,_0x8c8f87:0x113,_0x178676:0x268,_0x2bbcfa:0x7c,_0xc75853:0x53,_0x5624a7:0x16,_0x91935c:0x98,_0xc6ebbb:0x77,_0x452e00:0xbe,_0x35b5db:0x19,_0x4de14a:0x120,_0x3882d5:0x76,_0x2902e0:0x128,_0x24461f:0x3a,_0x450cba:0xf8,_0x17a9d3:0x4d,_0x5bbcf0:0x1f8,_0x1dedfd:0xfc,_0x381d18:0x4f,_0x159aef:0x186,_0xc2b4dc:0x38},_0x41671b={_0x2cbe04:0x1ec,_0x12ac10:0x1c3,_0x3e6db5:0x4},_0xa327f={_0x523347:0x132},_0x41f1f3=_0xc6c7a1[_0x1df2ab(0x95,-0x85,-0x55,-_0x17ddaa._0x5d2954)](_0xdef510['defaultCwd']??process['cwd']());function _0x1df2ab(_0x1d0b36,_0x52776e,_0x1cfdf1,_0x211712){return _0x17d408(_0x1d0b36-_0xa327f._0x523347,_0x52776e-0x1bb,_0x1cfdf1,_0x1d0b36- -0xf3);}const _0x551668=(_0xdef510['allowedDirs']??[])[_0x1accb4(_0x17ddaa._0x45a7cf,_0x17ddaa._0x3e5660,_0x17ddaa._0x2f28d1,0x434)](_0x5de604=>_0xc6c7a1[_0x1df2ab(0x95,-0x5c,-0xd7,-0x26)](_0x5de604)),_0x35d750=_0xdef510[_0x1accb4(_0x17ddaa._0x43c4f6,_0x17ddaa._0x3c06c6,0x15b,_0x17ddaa._0xe02edf)]??_0x1df2ab(0x1ee,0x2c5,0x109,_0x17ddaa._0x1122d9);function _0x1accb4(_0x48a5a0,_0x4c7d84,_0x4bb4c8,_0x47b5e9){return _0x1a7bb7(_0x48a5a0-_0x41671b._0x2cbe04,_0x4c7d84-_0x41671b._0x12ac10,_0x4bb4c8-_0x41671b._0x3e6db5,_0x47b5e9);}return defineTool({'name':_0x35d750,'description':_0x1df2ab(0x210,_0x17ddaa._0x26a9c4,_0x17ddaa._0x2428a1,0x26c),'inputSchema':{'type':_0x1df2ab(0x217,0x28e,_0x17ddaa._0x5c844c,0x1e4),'properties':{'filePath':{'type':_0x1df2ab(_0x17ddaa._0xd4ceff,0x18a,_0x17ddaa._0x40a369,_0x17ddaa._0x1eb714)},'content':{'type':_0x1df2ab(0xdd,_0x17ddaa._0x1f36aa,-0x91,-_0x17ddaa._0x21ec3f)}},'required':[_0x1df2ab(_0x17ddaa._0x480919,_0x17ddaa._0x44b736,_0x17ddaa._0x3440cb,0x0),'content']},async *'execute'(_0x163bc4){const _0x3c4374={_0x5cd1a2:0x18},_0x4f6716={_0x2fb662:0x180};function _0x407ab6(_0x1d4bbb,_0x2ba3af,_0x1f0f97,_0x47c55c){return _0x1df2ab(_0x47c55c- -0x50,_0x2ba3af-_0x4f6716._0x2fb662,_0x1f0f97,_0x47c55c-0x37);}const _0x34cde5=resolveAllowedPath(_0x41f1f3,_0x551668,_0x163bc4[_0x1864f9(-0xc3,_0x512971._0x107eb9,-_0x512971._0x5a3489,_0x512971._0x54453d)]),_0x2aaa08=await _0x385c1d(_0x34cde5)[_0x1864f9(-_0x512971._0x27ed03,-_0x512971._0x8c8f87,-0x259,-_0x512971._0x178676)](()=>!![])[_0x1864f9(-0x6f,-_0x512971._0x2bbcfa,-0x18c,-_0x512971._0xc75853)](()=>![]);function _0x1864f9(_0xbd1ae4,_0x9b3a96,_0x3ec021,_0x1fe9e8){return _0x1df2ab(_0x9b3a96- -0x72,_0x9b3a96-0x177,_0x1fe9e8,_0x1fe9e8-_0x3c4374._0x5cd1a2);}const _0x288219=Buffer[_0x407ab6(-_0x512971._0x5624a7,_0x512971._0x91935c,-_0x512971._0xc6ebbb,-0x70)](_0x163bc4['content'],_0x1864f9(_0x512971._0x452e00,0x13f,0x18,_0x512971._0x35b5db));return await atomicWrite2(_0x34cde5,_0x288219),yield createToolOutput(_0x407ab6(-0xcf,-0x1e,-_0x512971._0x4de14a,0x59)+_0x163bc4[_0x407ab6(_0x512971._0x3882d5,0x118,_0x512971._0x2902e0,_0x512971._0x24461f)]+'.',{'filePath':_0x163bc4[_0x407ab6(-0xbc,-_0x512971._0x450cba,_0x512971._0x17a9d3,0x3a)],'resolvedPath':_0x34cde5,'bytes':_0x288219['length'],'lines':_0x163bc4[_0x1864f9(-_0x512971._0x5bbcf0,-0xea,-_0x512971._0x1dedfd,0x5b)][_0x407ab6(-0xe2,-0xe9,-0x137,-_0x512971._0x381d18)](/\r?\n/)[_0x407ab6(0x9a,-_0x512971._0x159aef,0x2a,-_0x512971._0xc2b4dc)],'created':new Date()[_0x407ab6(0x9e,-0x6b,0x10f,0x28)](),'overwritten':_0x2aaa08}),void 0x0;}});}import{readFile as _0xb8a386,stat as _0x53ef37}from'fs/promises';import*as _0x120df4 from'path';function stripUtfBom(_0x5d6729){const _0x51d9b4={_0x5cc159:0xad,_0x14af35:0x44f},_0x12793f={_0x14addb:0x18b,_0x295a33:0x316},_0x3c0459={_0x3b4a38:0xc6,_0x14bf8f:0x1b8};function _0xbf1b42(_0x40ec83,_0x1da55f,_0x19a61c,_0x4e9429){return _0x1a7bb7(_0x40ec83-_0x3c0459._0x3b4a38,_0x4e9429- -0x6f,_0x19a61c-_0x3c0459._0x14bf8f,_0x1da55f);}function _0x54ea9e(_0x31e7c1,_0x45dda2,_0x10582e,_0x5bbf81){return _0x17d408(_0x31e7c1-0x6f,_0x45dda2-_0x12793f._0x14addb,_0x31e7c1,_0x45dda2-_0x12793f._0x295a33);}return _0x5d6729[_0xbf1b42(_0x51d9b4._0x5cc159,-0x120,-0x150,-0x1)](0x0)===0xfeff?_0x5d6729[_0x54ea9e(0x431,_0x51d9b4._0x14af35,0x34a,0x5a5)](0x1):_0x5d6729;}function clampLine(_0x1f78c4,_0x16d2ec){const _0x2fcf64={_0x53bc77:0xca,_0x276fc6:0x38,_0x4edf9c:0x143},_0x516ca6={_0x2b9126:0x1c4,_0xa3d443:0x10,_0x4d4949:0x158};function _0x5ad16a(_0x35a03a,_0x35e24e,_0x2e950f,_0x3b3d71){return _0x1a7bb7(_0x35a03a-_0x516ca6._0x2b9126,_0x3b3d71- -_0x516ca6._0xa3d443,_0x2e950f-_0x516ca6._0x4d4949,_0x35e24e);}function _0x598bc7(_0x33425f,_0x3e8320,_0x553888,_0x66b059){return _0x1a7bb7(_0x33425f-0xaa,_0x3e8320- -0x186,_0x553888-0xda,_0x33425f);}if(!Number[_0x598bc7(0x1,-0xf8,-0x6f,-0x7f)](_0x1f78c4))return 0x1;return Math[_0x5ad16a(0x2,0x11,_0x2fcf64._0x53bc77,-_0x2fcf64._0x276fc6)](0x1,Math[_0x598bc7(_0x2fcf64._0x4edf9c,-0x36,-0x4c,0x145)](Math['trunc'](_0x1f78c4),_0x16d2ec));}function createFileReadTool(_0x572506={}){const _0x5b6f65={_0x209aea:0x5f,_0x2600a3:0x143,_0x33d9a9:0xf0,_0x29a951:0xde,_0x1df48d:0xac,_0x212c21:0x25,_0x527385:0x4d3,_0x35efb0:0x395,_0x225581:0x4d7,_0x471877:0xb8,_0x5b1ec6:0x14d,_0x203960:0xd4,_0x8467f2:0x99,_0x3c32f4:0x2b,_0x25f299:0x32,_0x45ec19:0x5,_0x1967d7:0x1c9,_0x5ab588:0x315,_0x36bb60:0x19c,_0x5b0845:0xdc},_0x2be856={_0x4d7b74:0x310,_0x5a24c0:0x47c,_0x9fd12d:0x287,_0x53a5be:0x33a,_0x44eb5c:0x298,_0x1006e9:0x480,_0xd7eabb:0x33a,_0x39fc17:0x4b6,_0x4ccc82:0x1a4,_0x2372f2:0x109,_0x51d830:0x322,_0x2b5968:0x110,_0x167e4e:0x3de,_0x8a8476:0x407,_0x50480f:0x369,_0x4bc40b:0x45b,_0x16298c:0x1c9,_0x5d5d05:0x2ee,_0x2770c2:0x1b8,_0x54cd91:0x23a,_0xa0bced:0x3c6,_0x3f8282:0x2fa,_0x31cbed:0x2c2,_0x379d12:0x75,_0xc79d84:0x25c,_0x46d01c:0x341,_0x559d35:0x323,_0x1bb9cd:0x357,_0x466542:0x3a0,_0x323c2e:0x306,_0x4007f6:0x377,_0x4782f6:0x18,_0x4abf3c:0x2a},_0x3707e0={_0x9dd34f:0x11d,_0x2d48a2:0x9e,_0x39d451:0x42f},_0x2d34dc={_0x352724:0x40,_0x185834:0x300,_0x1ae89a:0xda},_0x3533cb={_0x34e26a:0x26e},_0x4858bb={_0x2d3fb3:0xad,_0x12d729:0x278};function _0x2125b7(_0x5e3583,_0x22d233,_0xeeae1b,_0x4f52f8){return _0x17d408(_0x5e3583-0xc,_0x22d233-_0x4858bb._0x2d3fb3,_0xeeae1b,_0x4f52f8- -_0x4858bb._0x12d729);}const _0x4b6c53=_0x120df4[_0x2125b7(_0x5b6f65._0x209aea,-0x15d,-_0x5b6f65._0x2600a3,-_0x5b6f65._0x33d9a9)](_0x572506['defaultCwd']??process[_0x2125b7(0x82,_0x5b6f65._0x29a951,_0x5b6f65._0x1df48d,_0x5b6f65._0x212c21)]());function _0xabd89e(_0x440ea7,_0x28463d,_0x3eeb30,_0x9fdbb){return _0x1a7bb7(_0x440ea7-0xbc,_0x28463d-_0x3533cb._0x34e26a,_0x3eeb30-0x16c,_0x3eeb30);}const _0x1cb573=(_0x572506[_0xabd89e(_0x5b6f65._0x527385,_0x5b6f65._0x35efb0,0x414,_0x5b6f65._0x225581)]??[])[_0x2125b7(-0xc5,0x23,-0x177,-_0x5b6f65._0x471877)](_0x1932a9=>_0x120df4['resolve'](_0x1932a9)),_0x9d3fe4=_0x572506[_0x2125b7(-0x314,-_0x5b6f65._0x5b1ec6,-0x33e,-0x22e)]??_0x2125b7(_0x5b6f65._0x203960,-0x17,-_0x5b6f65._0x8467f2,-0x50);return defineTool({'name':_0x9d3fe4,'description':_0x2125b7(-_0x5b6f65._0x3c32f4,_0x5b6f65._0x25f299,-0x31,-_0x5b6f65._0x45ec19),'inputSchema':{'type':'object','properties':{'path':{'type':'string'},'lineStart':{'type':'number','description':_0xabd89e(_0x5b6f65._0x1967d7,0x31a,0x1fe,0x293)},'lineEnd':{'type':_0x2125b7(-_0x5b6f65._0x5ab588,-_0x5b6f65._0x36bb60,-_0x5b6f65._0x5b0845,-0x1d6),'description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':['path']},async *'execute'(_0x59aeba){const _0x52d7b7=resolveAllowedPath(_0x4b6c53,_0x1cb573,_0x59aeba[_0x1d608b(0x3bf,0x3c9,0x2f6,0x33a)]);await assertWorkspaceFile(_0x52d7b7);const _0x4fbb55=await _0x53ef37(_0x52d7b7);function _0x41e50c(_0x4eb83c,_0x302907,_0x42d2d5,_0x255254){return _0xabd89e(_0x4eb83c-_0x2d34dc._0x352724,_0x42d2d5- -_0x2d34dc._0x185834,_0x302907,_0x255254-_0x2d34dc._0x1ae89a);}const _0xde4b76=await _0xb8a386(_0x52d7b7);if(isProbablyBinary(_0xde4b76))throw new ToolExecutionError(_0x1d608b(0x358,0x44f,0x466,0x497)+_0x59aeba[_0x1d608b(_0x2be856._0x4d7b74,_0x2be856._0x5a24c0,_0x2be856._0x9fd12d,_0x2be856._0x53a5be)],{'path':_0x59aeba[_0x1d608b(_0x2be856._0x44eb5c,_0x2be856._0x1006e9,0x327,_0x2be856._0xd7eabb)]});let _0x336876=_0xde4b76['toString'](_0x1d608b(0x5b2,0x3c6,_0x2be856._0x39fc17,0x45b));function _0x1d608b(_0x590272,_0xaf2786,_0x2e398c,_0x4b358b){return _0x2125b7(_0x590272-_0x3707e0._0x9dd34f,_0xaf2786-_0x3707e0._0x2d48a2,_0x590272,_0x4b358b-_0x3707e0._0x39d451);}const _0x3ece28=_0x336876['charCodeAt'](0x0)===0xfeff;_0x336876=stripUtfBom(_0x336876);const _0x27cf73=_0x336876[_0x1d608b(0x1c0,0x41e,0x413,0x2ab)](/\r?\n/),_0x11a263={'path':_0x59aeba[_0x41e50c(0x1be,_0x2be856._0x4ccc82,0x65,-_0x2be856._0x2372f2)],'resolvedPath':_0x52d7b7,'created':_0x4fbb55['birthtime']['toISOString'](),'modified':_0x4fbb55['mtime'][_0x1d608b(0x459,0x2b6,0x205,_0x2be856._0x51d830)](),'size':_0x4fbb55[_0x41e50c(-0x78,0xc8,0x5c,_0x2be856._0x2b5968)],'encoding':_0x1d608b(_0x2be856._0x167e4e,_0x2be856._0x8a8476,_0x2be856._0x50480f,_0x2be856._0x4bc40b),'bomStripped':_0x3ece28,'truncated':![],'totalLines':_0x27cf73['length']};if(_0x59aeba[_0x41e50c(_0x2be856._0x16298c,_0x2be856._0x5d5d05,_0x2be856._0x2770c2,_0x2be856._0x54cd91)]!==void 0x0||_0x59aeba['lineEnd']!==void 0x0){const _0x361a13=clampLine(_0x59aeba['lineStart']??0x1,_0x27cf73[_0x1d608b(0x274,_0x2be856._0xa0bced,_0x2be856._0x3f8282,_0x2be856._0x31cbed)]),_0x4c2289=clampLine(_0x59aeba[_0x41e50c(-_0x2be856._0x379d12,0x26,-0xaa,0x71)]??_0x27cf73[_0x1d608b(0x274,0x210,_0x2be856._0xc79d84,0x2c2)],_0x27cf73['length']),_0xe21709=Math[_0x1d608b(_0x2be856._0x46d01c,0x236,0x232,0x393)](_0x361a13,_0x4c2289),_0x26e9d5=Math['max'](_0x361a13,_0x4c2289),_0x2d7009=_0x27cf73[_0x1d608b(_0x2be856._0x559d35,_0x2be856._0x1bb9cd,_0x2be856._0x466542,0x2f0)](_0xe21709-0x1,_0x26e9d5)[_0x1d608b(0x309,_0x2be856._0x323c2e,0x482,_0x2be856._0x4007f6)]((_0x1e0337,_0x44bd19)=>_0xe21709+_0x44bd19+'|'+_0x1e0337)[_0x41e50c(0x187,0x15a,_0x2be856._0x4782f6,-_0x2be856._0x4abf3c)]('\x0a');return yield createToolOutput(_0x2d7009,{..._0x11a263,'lineRange':{'lineStart':_0xe21709,'lineEnd':_0x26e9d5,'linesTotal':_0x27cf73['length']}}),void 0x0;}return yield createToolOutput(_0x336876,_0x11a263),void 0x0;}});}import{stat as _0x301c1c}from'fs/promises';import*as _0x5250a4 from'path';import{execSync,spawn as _0xae00b3}from'child_process';import{existsSync}from'fs';import{stat as _0x267a5b}from'fs/promises';import*as _0xe3fdc3 from'os';import*as _0x59dc85 from'path';import{rgPath as _0x30101c}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x24734a={_0x5a315e:0x64c,_0x1120bc:0x5a7,_0x346f87:0x238,_0x902c59:0x324,_0x229e03:0x33e,_0x5c79d2:0x5bd,_0x1ee557:0x599,_0x5e4518:0x6a6,_0x31bc28:0x105,_0x2e2c90:0x6b1,_0x53ecc2:0x518,_0x2dac87:0x2a0,_0x494d73:0x9e,_0x3d20fd:0xf7,_0x278458:0x62d,_0x26b212:0x601,_0xcb58ec:0x59b,_0x25291a:0x230,_0x25f04d:0x6bc,_0x2f3455:0x667,_0x4f3c48:0x514,_0x225081:0x4df,_0x12e4b2:0x764,_0x1e0b50:0x6dc,_0x124783:0x68c,_0x3707d9:0x153,_0x2956d3:0x274,_0x42030c:0x1c9,_0x2c6437:0x420,_0x175f42:0xca,_0x8743d5:0x87,_0x3e020f:0x2a,_0x5dd90c:0x2ba,_0x174455:0x2fc,_0x469ef7:0x4a6},_0x554cf1={_0x59af43:0xcc},_0x1bcfee={_0x15d066:0x2e2},_0x183073=_0xe3fdc3[_0x5c02a5(0x56d,_0x24734a._0x5a315e,_0x24734a._0x1120bc,0x611)]()==='win32',_0x31dcdf=_0x183073?[_0x59dc85[_0xa419e1(-_0x24734a._0x346f87,-_0x24734a._0x902c59,-_0x24734a._0x229e03,-0x2c3)](process[_0x5c02a5(0x6e4,0x48d,0x4c4,0x59b)][_0x5c02a5(_0x24734a._0x5c79d2,0x52c,_0x24734a._0x1ee557,0x5a8)]||'',_0x5c02a5(0x600,0x639,0x684,_0x24734a._0x5e4518),_0xa419e1(-0x102,-_0x24734a._0x31bc28,-0x270,-0xf2),_0x5c02a5(0x600,0x6d7,0x792,_0x24734a._0x2e2c90)),_0x59dc85['join'](process[_0x5c02a5(0x5e3,_0x24734a._0x53ecc2,0x558,0x59b)][_0x5c02a5(0x532,0x6f2,0x449,0x58a)]||'',_0xa419e1(-0x170,-0xe7,-_0x24734a._0x2dac87,-_0x24734a._0x494d73),_0xa419e1(-_0x24734a._0x3d20fd,-0x20,-0xb3,-0x50)),_0x59dc85[_0x5c02a5(0x4af,0x4d9,0x513,0x509)](process[_0x5c02a5(0x5ff,_0x24734a._0x278458,_0x24734a._0x26b212,_0x24734a._0xcb58ec)][_0xa419e1(-0x143,-0x77,-_0x24734a._0x25291a,-0x169)]||'','ripgrep',_0x5c02a5(_0x24734a._0x25f04d,_0x24734a._0x2f3455,0x4f1,0x64a))]:['/opt/homebrew/bin/rg',_0x5c02a5(_0x24734a._0x4f3c48,0x503,_0x24734a._0x225081,0x515),_0x5c02a5(_0x24734a._0x12e4b2,_0x24734a._0x1e0b50,0x7dc,_0x24734a._0x124783),_0xa419e1(-_0x24734a._0x3707d9,-_0x24734a._0x2956d3,-0xe5,-_0x24734a._0x42030c)];function _0xa419e1(_0x57d7db,_0xc9532a,_0x100bd6,_0xbd13d9){return _0x1a7bb7(_0x57d7db-0xeb,_0x57d7db- -_0x1bcfee._0x15d066,_0x100bd6-0x6,_0xbd13d9);}function _0x5c02a5(_0x2b72c8,_0x23afad,_0x4d6970,_0x318e0c){return _0x1a7bb7(_0x2b72c8-0x3b,_0x318e0c-0x45f,_0x4d6970-_0x554cf1._0x59af43,_0x2b72c8);}for(const _0x537495 of _0x31dcdf){if(existsSync(_0x537495))return _0x537495;}try{const _0x5735bb=_0x183073?'where\x20rg':_0x5c02a5(0x458,0x2d7,0x4aa,_0x24734a._0x2c6437),_0x2591b2=execSync(_0x5735bb,{'encoding':_0xa419e1(-_0x24734a._0x175f42,-_0x24734a._0x8743d5,-0x117,_0x24734a._0x3e020f),'stdio':['pipe',_0xa419e1(-0x19f,-_0x24734a._0x5dd90c,-0x114,-_0x24734a._0x174455),'ignore']})['trim']()[_0x5c02a5(0x58d,_0x24734a._0x4f3c48,_0x24734a._0x469ef7,0x4c7)](/\r?\n/)[0x0];if(_0x2591b2&&existsSync(_0x2591b2))return _0x2591b2;}catch{return null;}return null;}async function filepath(){const _0x5d3944={_0x1da7be:0x4d4},_0x111371={_0x516729:0x35b};if(cachedRgPath)return cachedRgPath;if(_0x30101c&&existsSync(_0x30101c))return cachedRgPath=_0x30101c,_0x30101c;function _0x3e1c10(_0x5c669f,_0x11707f,_0x22c171,_0x216abe){return _0x1a7bb7(_0x5c669f-0x1a,_0x11707f-_0x111371._0x516729,_0x22c171-0x13,_0x5c669f);}const _0x2a15ee=findSystemRipgrep();if(!_0x2a15ee)throw new Error(_0x3e1c10(0x5db,0x59b,_0x5d3944._0x1da7be,0x646));return cachedRgPath=_0x2a15ee,_0x2a15ee;}async function*files(_0x47cc10){const _0x6c0e52={_0x5501ce:0x5d6,_0x317164:0x68b,_0x1b0153:0x57c,_0x373897:0x32c,_0x2c3471:0x3c8,_0x1bbcbd:0x581,_0x46bf7e:0x5ae,_0x3d0af3:0x4a0,_0x55e227:0x484,_0x5cf528:0x73,_0x598d05:0x145,_0x82e964:0x388,_0x218363:0x4a5,_0x1441c4:0x6d9,_0x5eb5d3:0x714,_0x5aa14a:0x5a3,_0x26b2a0:0x3a1,_0x461b63:0x593,_0xfbeade:0x5bf,_0x12037c:0x1fa,_0x338231:0x158,_0x213b9c:0x1d3,_0x1cb85e:0x347,_0x4f4524:0x7f,_0x3b3c76:0xf6,_0x5658a0:0x8a,_0x47a42b:0x49c,_0x552095:0x95,_0x353a2e:0xbb,_0x5f9feb:0xc8,_0x1191cf:0x95,_0x10e415:0x316,_0x4df59:0x4e2,_0x1a3c1b:0x2ee,_0x1a1bc4:0xb5,_0x448872:0x50,_0x45d032:0x18e,_0x49542d:0x10d,_0x33bfea:0x1bc,_0x2d98a9:0x152,_0x31a0be:0x71,_0x22355c:0x2f,_0x2ed4db:0xf,_0x18936c:0x10b},_0x1f2121={_0x26ab31:0xfe},_0x4081db={_0x2be8c7:0x80,_0x1b536c:0x112},_0x4c4f95=await filepath(),_0xd4d2a0=await _0x267a5b(_0x47cc10[_0x47c093(_0x6c0e52._0x5501ce,_0x6c0e52._0x317164,0x54d,_0x6c0e52._0x1b0153)])[_0x47c093(_0x6c0e52._0x373897,0x431,0x4b1,_0x6c0e52._0x2c3471)](()=>null);if(!_0xd4d2a0?.['isDirectory']())throw Object[_0x47c093(_0x6c0e52._0x1bbcbd,_0x6c0e52._0x46bf7e,0x3c0,_0x6c0e52._0x3d0af3)](new Error(_0x47c093(0x443,_0x6c0e52._0x55e227,0x4e7,0x3ab)+_0x47cc10[_0x30053c(_0x6c0e52._0x5cf528,0x1a4,_0x6c0e52._0x598d05,0x163)]+'\x27'),{'code':_0x47c093(0x488,0x593,_0x6c0e52._0x82e964,_0x6c0e52._0x218363)});const _0x2b6249=[_0x47c093(_0x6c0e52._0x1441c4,0x5d9,_0x6c0e52._0x5eb5d3,_0x6c0e52._0x5aa14a),_0x47c093(0x3da,_0x6c0e52._0x26b2a0,0x4f7,0x46e),'--hidden',_0x47c093(0x38e,_0x6c0e52._0x461b63,_0x6c0e52._0xfbeade,0x4b1)];for(const _0x3c6e31 of _0x47cc10[_0x30053c(_0x6c0e52._0x12037c,0x217,0x261,_0x6c0e52._0x338231)]??[]){_0x2b6249[_0x30053c(_0x6c0e52._0x213b9c,0x131,_0x6c0e52._0x1cb85e,0x1d8)](_0x30053c(-_0x6c0e52._0x4f4524,_0x6c0e52._0x3b3c76,-0xb,_0x6c0e52._0x5658a0)+_0x3c6e31);}const _0xf232c3=_0xae00b3(_0x4c4f95,_0x2b6249,{'cwd':_0x47cc10['cwd'],'stdio':[_0x47c093(0x476,_0x6c0e52._0x47a42b,0x60b,0x4bd),_0x30053c(0x81,0x101,0xfb,_0x6c0e52._0x552095),_0x30053c(-_0x6c0e52._0x353a2e,0x1d3,_0x6c0e52._0x5f9feb,_0x6c0e52._0x1191cf)]});let _0x5338d0='';function _0x30053c(_0x567da2,_0x4dc069,_0x25f5fc,_0x218737){return _0x1a7bb7(_0x567da2-_0x4081db._0x2be8c7,_0x218737- -0xae,_0x25f5fc-_0x4081db._0x1b536c,_0x567da2);}for await(const _0x38a1c6 of _0xf232c3[_0x47c093(_0x6c0e52._0x10e415,_0x6c0e52._0x4df59,_0x6c0e52._0x1a3c1b,0x3ce)]??[]){_0x5338d0+=_0x38a1c6[_0x30053c(_0x6c0e52._0x1a1bc4,0x1f8,_0x6c0e52._0x448872,_0x6c0e52._0x45d032)]();const _0xe7196a=_0x5338d0[_0x47c093(0x293,0x297,0x346,0x3d3)](/\r?\n/);_0x5338d0=_0xe7196a['pop']()??'';for(const _0x46be5c of _0xe7196a){if(_0x46be5c['length']>0x0)yield _0x46be5c;}}function _0x47c093(_0x28f965,_0x3c233b,_0x2c0c9e,_0x12b592){return _0x17d408(_0x28f965-_0x1f2121._0x26ab31,_0x3c233b-0x97,_0x28f965,_0x12b592-0x2df);}_0x5338d0[_0x30053c(0x275,_0x6c0e52._0x49542d,_0x6c0e52._0x33bfea,_0x6c0e52._0x2d98a9)]()[_0x30053c(-_0x6c0e52._0x31a0be,0x62,-0xf,-_0x6c0e52._0x22355c)]>0x0&&(yield _0x5338d0[_0x30053c(0xae,_0x6c0e52._0x2ed4db,_0x6c0e52._0x18936c,0x152)]());}function parseMatchLine(_0x274373,_0x1e91bb){const _0x33b8db={_0x2c38e5:0xcd,_0x216d32:0x1ec,_0x152fee:0x156,_0x567075:0x10d,_0x8fb8d1:0x2d2,_0x1b796c:0xb,_0x9d02b8:0x31,_0x40aea1:0x5c3,_0x59652c:0x5fe,_0x12d29c:0x5b6,_0x4b1267:0x57c,_0x7a3e1d:0x44a,_0x3e9c04:0x5f8,_0x381b0a:0x14d,_0x14fa20:0x17c,_0x238526:0x7a,_0x315613:0xed,_0x1e7e47:0x2a2,_0x4bffd2:0x1f2,_0x4b58c1:0x40,_0x57f3c5:0x34e,_0x5c2cba:0x3f8,_0x3b4ff8:0x5b7,_0xc748ef:0x526},_0x1fd3a1={_0x3e3ff6:0x15,_0x297cb2:0x14c},_0xf7a4b6={_0x135a35:0x17c};if(!_0x274373||_0x274373==='--')return null;const _0x2416ec=_0x274373[_0x5d8e15(_0x33b8db._0x2c38e5,_0x33b8db._0x216d32,_0x33b8db._0x152fee,_0x33b8db._0x567075)]('|');if(_0x1e91bb&&_0x2416ec['length']>=0x4&&Number[_0x5d8e15(_0x33b8db._0x8fb8d1,_0x33b8db._0x1b796c,0x17c,_0x33b8db._0x9d02b8)](Number[_0x28a122(_0x33b8db._0x40aea1,_0x33b8db._0x59652c,_0x33b8db._0x12d29c,_0x33b8db._0x4b1267)](_0x2416ec[0x2]??'',0xa))){const _0x302068=Number[_0x28a122(_0x33b8db._0x7a3e1d,0x630,_0x33b8db._0x3e9c04,_0x33b8db._0x4b1267)](_0x2416ec[0x1]??'',0xa);if(!Number[_0x5d8e15(0x1ed,_0x33b8db._0x381b0a,_0x33b8db._0x14fa20,_0x33b8db._0x238526)](_0x302068)||!_0x2416ec[0x0])return null;return{'filePath':_0x2416ec[0x0],'lineNum':_0x302068,'lineText':_0x2416ec[_0x5d8e15(_0x33b8db._0x315613,0x216,0x19b,_0x33b8db._0x1e7e47)](0x3)['join']('|')};}if(_0x2416ec['length']>=0x3){const _0x21b46b=Number['parseInt'](_0x2416ec[0x1]??'',0xa);if(!Number[_0x5d8e15(_0x33b8db._0x4bffd2,0x1eb,0x17c,_0x33b8db._0x4b58c1)](_0x21b46b)||!_0x2416ec[0x0])return null;return{'filePath':_0x2416ec[0x0],'lineNum':_0x21b46b,'lineText':_0x2416ec[_0x28a122(0x462,0x33a,_0x33b8db._0x57f3c5,0x466)](0x2)[_0x28a122(_0x33b8db._0x5c2cba,_0x33b8db._0x3b4ff8,_0x33b8db._0xc748ef,0x463)]('|'),..._0x1e91bb?{'isContext':!![]}:{}};}function _0x28a122(_0x19a121,_0x3e3845,_0x467515,_0x2a8906){return _0x1a7bb7(_0x19a121-_0xf7a4b6._0x135a35,_0x2a8906-0x3b9,_0x467515-0xe4,_0x19a121);}function _0x5d8e15(_0x40003e,_0x6e82f6,_0x95537b,_0x5d8b3e){return _0x17d408(_0x40003e-_0x1fd3a1._0x3e3ff6,_0x6e82f6-_0x1fd3a1._0x297cb2,_0x5d8b3e,_0x95537b-0x62);}return null;}async function search(_0x3998ec){const _0x27fab0={_0x53eb29:0x67e,_0x497fb5:0x43b,_0x16e060:0x103,_0x222eee:0x875,_0x331474:0x620,_0x5b4cca:0x704,_0xc114b9:0x641,_0x2aabd5:0xbf,_0xa090f7:0xaa,_0x459aa7:0x28,_0x596e81:0x706,_0x4b6518:0x6e5,_0x37f4e8:0x651,_0x2e586b:0x591,_0x7888c1:0x3f8,_0x575f2e:0x50a,_0x1fa3bd:0x558,_0x4dee21:0x4d8,_0x281358:0x49,_0x2b6f93:0x5e6,_0x4a09c6:0x5dc,_0x17323e:0x1b,_0xcf902c:0xd4,_0x5c7e55:0x6f4,_0x381dd3:0x5c2,_0x14661a:0x6c8,_0x4f97bf:0x92,_0x3d412a:0x1f,_0x1c8531:0x40,_0x3b60df:0x51,_0x173e74:0x1d,_0x2a3dc0:0xd1,_0x20b344:0x13e,_0x233d30:0x7},_0x32d2b4={_0x2ed1d8:0x6df,_0x52bfab:0x3fb,_0x44676e:0x6af,_0x433ad2:0x55c,_0x3c6c0a:0x4ee,_0x1873e3:0xf0,_0x50abdb:0x13,_0x5d92f4:0xc,_0x30d37e:0x4a3,_0x587386:0x4ca,_0xccd5bc:0x452,_0x4ddc5b:0x260,_0x4a60bd:0x501,_0x170097:0x55a,_0x13ed30:0x519,_0x501ce2:0x86},_0x3859fa={_0x2843d1:0x168},_0x11ab97={_0x401e59:0x5f2,_0x2ad98f:0x83},_0x28338b={_0x3339fc:0x554,_0x2650bf:0x1c0},_0x1b17fd={_0x597d0e:0x4c2,_0x390675:0x180},_0x3647f5={_0x422c03:0x73},_0x151899=await filepath();if(_0x3998ec[_0x4db92e(0x7ad,0x71c,0x69b,_0x27fab0._0x53eb29)]){const _0x4cb8f7=await _0x267a5b(_0x3998ec['file'])[_0x4db92e(0x553,_0x27fab0._0x497fb5,0x51f,0x5c4)](()=>null);if(!_0x4cb8f7?.[_0xe21d9c(0xa6,0x1c7,0x126,_0x27fab0._0x16e060)]())throw Object['assign'](new Error('No\x20such\x20file:\x20\x27'+_0x3998ec['file']+'\x27'),{'code':'ENOENT'});}else{const _0x1056d3=await _0x267a5b(_0x3998ec[_0xe21d9c(0x1d,-0x138,-0xfd,-0x89)])['catch'](()=>null);if(!_0x1056d3?.[_0x4db92e(_0x27fab0._0x222eee,_0x27fab0._0x331474,_0x27fab0._0x5b4cca,_0x27fab0._0xc114b9)]())throw Object[_0xe21d9c(-_0x27fab0._0x2aabd5,0xad,-0x221,_0x27fab0._0xa090f7)](new Error(_0x4db92e(0x50e,0x56a,0x502,0x583)+_0x3998ec[_0x4db92e(0x6ec,0x5d7,0x6d3,0x55e)]+'\x27'),{'code':_0xe21d9c(-0xba,0xa9,-0x7,_0x27fab0._0x459aa7)});}const _0x1973ac=[_0x4db92e(0x71e,_0x27fab0._0x596e81,_0x27fab0._0x4b6518,_0x27fab0._0x37f4e8),'--field-match-separator=|',_0xe21d9c(-0x90,-0x1d0,0xe8,-0x1d8),_0x4db92e(0x642,0x59e,_0x27fab0._0x2e586b,0x5e7),_0x3998ec[_0x4db92e(_0x27fab0._0x7888c1,0x457,0x4cb,_0x27fab0._0x575f2e)]],_0x119120=typeof _0x3998ec[_0x4db92e(0x673,_0x27fab0._0x1fa3bd,0x66d,0x51f)]===_0x4db92e(0x48e,0x594,_0x27fab0._0x4dee21,0x365)&&_0x3998ec[_0xe21d9c(-_0x27fab0._0x281358,-0x144,0x108,-0x90)]>0x0;function _0xe21d9c(_0x3c4d45,_0x27afc8,_0x3d1b15,_0x3f14f3){return _0x1a7bb7(_0x3c4d45-_0x3647f5._0x422c03,_0x3c4d45- -0x1f4,_0x3d1b15-0x1b8,_0x3d1b15);}_0x119120&&_0x1973ac['push']('-C',String(_0x3998ec[_0x4db92e(0x58f,0x7b1,0x66d,0x663)]),_0x4db92e(0x66f,_0x27fab0._0x2b6f93,0x54a,_0x27fab0._0x4a09c6));_0x3998ec['glob']&&!_0x3998ec[_0xe21d9c(-_0x27fab0._0x17323e,-_0x27fab0._0xcf902c,-0x6c,0x104)]&&_0x1973ac[_0xe21d9c(0x92,0x2a,-0xc2,-0x73)]('--glob',_0x3998ec[_0x4db92e(_0x27fab0._0x5c7e55,_0x27fab0._0x381dd3,_0x27fab0._0x14661a,0x5f2)]);_0x1973ac[_0xe21d9c(_0x27fab0._0x4f97bf,_0x27fab0._0x3d412a,-_0x27fab0._0x1c8531,-_0x27fab0._0x3b60df)](_0x3998ec['file']??_0x3998ec[_0xe21d9c(_0x27fab0._0x173e74,-_0x27fab0._0x2a3dc0,-_0x27fab0._0x20b344,-_0x27fab0._0x233d30)]);function _0x4db92e(_0x4d4c3a,_0x1664cf,_0x4bc7de,_0x44771e){return _0x1a7bb7(_0x4d4c3a-0x109,_0x4bc7de-_0x1b17fd._0x597d0e,_0x4bc7de-_0x1b17fd._0x390675,_0x1664cf);}return await new Promise((_0x49de17,_0x48c66c)=>{const _0x2b6f57={_0x33e4f2:0x2a4,_0x912b6:0x36c,_0x3f461f:0x10d,_0x12384d:0x1ee,_0xc5ca4b:0x123,_0x2d1d6c:0x1b3},_0x88f6dc={_0x1fbfe7:0x347,_0x4e58d6:0x3fe,_0x511c9f:0x3df},_0x5993e8=_0xae00b3(_0x151899,_0x1973ac,{'cwd':_0x3998ec[_0x4ce793(0x571,_0x32d2b4._0x2ed1d8,_0x32d2b4._0x52bfab,_0x32d2b4._0x44676e)],'stdio':[_0x4ce793(0x4b2,0x53d,_0x32d2b4._0x433ad2,_0x32d2b4._0x3c6c0a),_0x54519b(_0x32d2b4._0x1873e3,_0x32d2b4._0x50abdb,-0x85,_0x32d2b4._0x5d92f4),_0x4ce793(_0x32d2b4._0x30d37e,0x52a,0x510,_0x32d2b4._0x587386)]});function _0x4ce793(_0xf368cf,_0x50e57f,_0x766211,_0x10cfd1){return _0xe21d9c(_0xf368cf-_0x28338b._0x3339fc,_0x50e57f-_0x28338b._0x2650bf,_0x50e57f,_0x10cfd1-0x1ec);}let _0x265411='';function _0x54519b(_0x5b7fa8,_0x5eb15d,_0x10386d,_0xb96955){return _0x4db92e(_0x5b7fa8-0x68,_0x10386d,_0x5eb15d- -_0x11ab97._0x401e59,_0xb96955-_0x11ab97._0x2ad98f);}let _0x44b9bd='';_0x5993e8[_0x4ce793(0x3c3,_0x32d2b4._0xccd5bc,0x25e,_0x32d2b4._0x4ddc5b)]?.['on'](_0x4ce793(_0x32d2b4._0x4a60bd,_0x32d2b4._0x170097,0x5dc,_0x32d2b4._0x13ed30),_0xa19015=>{const _0xdbe279={_0x38c229:0x47b,_0x3eab49:0x1b6};function _0x3bea32(_0x2596ff,_0x16cf17,_0x3241ad,_0x525c11){return _0x4ce793(_0x2596ff- -_0xdbe279._0x38c229,_0x16cf17,_0x3241ad-_0xdbe279._0x3eab49,_0x525c11-0x1f0);}_0x265411+=_0xa19015[_0x3bea32(0x121,0x7e,0x15e,_0x3859fa._0x2843d1)]();}),_0x5993e8['stderr']?.['on'](_0x54519b(0x101,0x71,-_0x32d2b4._0x501ce2,-0x102),_0x469f9d=>{const _0x429e73={_0x40acc6:0x1a7};function _0x360d71(_0x596137,_0x44559f,_0x1282ed,_0x534120){return _0x4ce793(_0x534120- -_0x429e73._0x40acc6,_0x596137,_0x1282ed-0x14c,_0x534120-0x1ca);}_0x44b9bd+=_0x469f9d[_0x360d71(_0x88f6dc._0x1fbfe7,_0x88f6dc._0x4e58d6,_0x88f6dc._0x511c9f,0x3f5)]();}),_0x5993e8['on']('close',_0x4e4d10=>{const _0x43c82c={_0x5719bc:0xef};function _0x4b20ff(_0x11a2a6,_0x3ee6ed,_0x99dcc1,_0x487d6e){return _0x54519b(_0x11a2a6-_0x43c82c._0x5719bc,_0x487d6e-0x264,_0x3ee6ed,_0x487d6e-0x7);}if(_0x4e4d10===0x1&&_0x265411===''){_0x49de17([]);return;}if(_0x4e4d10!==0x0&&_0x4e4d10!==0x1){_0x48c66c(new Error(_0xb479f2(0x19e,_0x2b6f57._0x33e4f2,0x3c3,_0x2b6f57._0x912b6)+_0x44b9bd));return;}const _0x59cfe9=_0x3998ec[_0xb479f2(0x29e,0x20f,0xad,_0x2b6f57._0x3f461f)]??0x64,_0x2f2850=[];for(const _0x54031a of _0x265411['split'](/\r?\n/)){if(_0x2f2850[_0x4b20ff(_0x2b6f57._0x12384d,0x285,_0x2b6f57._0xc5ca4b,_0x2b6f57._0x2d1d6c)]>=_0x59cfe9)break;const _0x5a9a1c=parseMatchLine(_0x54031a,_0x119120);if(_0x5a9a1c)_0x2f2850['push'](_0x5a9a1c);}function _0xb479f2(_0x461a26,_0x3c1912,_0x5f0ff5,_0x137176){return _0x4ce793(_0x3c1912- -0x339,_0x461a26,_0x5f0ff5-0x106,_0x137176-0x55);}_0x49de17(_0x2f2850);}),_0x5993e8['on']('error',_0x48c66c);});}function createGlobTool(_0x46ae6a={}){const _0x15e5b1={_0x16fcca:0x44,_0x35b44a:0xa3,_0x402bab:0x186,_0x31bd98:0x4a,_0x42c78c:0xc0,_0x68cc30:0x94,_0x7bab62:0x4ac,_0x37ca30:0x5ab,_0x2d49ad:0x3c,_0xb74ee0:0x6bb,_0x113afe:0x30d,_0x38e7c3:0xb3,_0x57b8d8:0x7e,_0x4c4ccb:0x119,_0x3729f7:0x37,_0x2007e2:0x6dc,_0x14e822:0xa5,_0x547755:0x5fa,_0x3b4d14:0x4c9,_0x3de5d5:0x5dc,_0x14ef3c:0x315,_0xd7e614:0x3b3,_0x4bcd44:0x435,_0x5bebb9:0x38e,_0x2c2d78:0x279},_0x4f74d5={_0x48635c:0x34,_0x3d28d5:0x180,_0x56c3ea:0x282,_0x22e893:0x4f8,_0x18cfef:0x4a8,_0x469ea6:0xd5,_0x2c0cef:0x39,_0x4a5e68:0x1a8,_0x554f35:0x1dc,_0x5830e1:0x37d,_0x117564:0x562,_0x235df7:0x660,_0x2f21b7:0x5b1,_0x2478de:0x4ae,_0x4e2fff:0x239,_0x13cd4a:0x1c,_0x4c97a9:0x19c,_0x471a9e:0x132,_0x1461c2:0x19f,_0x232a38:0x1e,_0xf311c1:0x42,_0x450516:0x26,_0x17b01a:0x1c3,_0x79f4c1:0x1f8,_0x36381d:0x197,_0x3c20f1:0x1e5,_0x303435:0x63,_0xd526be:0x20b,_0x167f12:0x80,_0x368b01:0xba,_0x5c44bc:0x2be,_0x36a323:0xcf,_0x87d2db:0x219,_0x137c3f:0x1d,_0x53f222:0x2e,_0x121dd2:0x11b,_0x34adca:0x430,_0x42f660:0x2e1,_0x308b0a:0x15b,_0x5d71da:0x39f,_0x28534a:0x421,_0x2b0ef6:0x41c},_0x1d4d53={_0xfeab7e:0x196,_0x66ca9b:0x1c},_0x346612={_0x1c47ee:0x1ed,_0x211b0c:0x1fc},_0x30889c={_0x1f04eb:0x60,_0x488f68:0x175},_0x5630e7=_0x5250a4[_0x3ec11f(-0x74,-0x19f,-_0x15e5b1._0x16fcca,-0x1cf)](_0x46ae6a[_0x3ec11f(_0x15e5b1._0x35b44a,_0x15e5b1._0x402bab,-_0x15e5b1._0x31bd98,-_0x15e5b1._0x42c78c)]??process[_0x3ec11f(0xa1,0x70,0x1ce,-_0x15e5b1._0x68cc30)]());function _0x4e168b(_0x4bae03,_0x260ef9,_0x1d42c2,_0x23d1d1){return _0x1a7bb7(_0x4bae03-_0x30889c._0x1f04eb,_0x260ef9-0x385,_0x1d42c2-_0x30889c._0x488f68,_0x1d42c2);}const _0x2b8f3b=(_0x46ae6a[_0x4e168b(0x55e,_0x15e5b1._0x7bab62,_0x15e5b1._0x37ca30,0x332)]??[])[_0x3ec11f(-_0x15e5b1._0x2d49ad,0x12d,-0x185,-0xf0)](_0x5b6a7a=>_0x5250a4[_0x3ec11f(-0x74,0xfe,-0x47,-0xbb)](_0x5b6a7a)),_0x423eb8=_0x46ae6a[_0x4e168b(0x4fc,0x56d,0x62b,_0x15e5b1._0xb74ee0)]??0x64,_0x521d3f=_0x46ae6a[_0x4e168b(_0x15e5b1._0x113afe,0x343,0x296,0x20d)]??_0x3ec11f(-_0x15e5b1._0x38e7c3,_0x15e5b1._0x57b8d8,-_0x15e5b1._0x4c4ccb,-_0x15e5b1._0x3729f7);function _0x3ec11f(_0xf1fd2,_0x373d58,_0x4f75cb,_0x55b432){return _0x17d408(_0xf1fd2-_0x346612._0x1c47ee,_0x373d58-0x1d3,_0x373d58,_0xf1fd2- -_0x346612._0x211b0c);}return defineTool({'name':_0x521d3f,'description':_0x4e168b(_0x15e5b1._0x2007e2,0x5af,0x4b7,0x5a6),'inputSchema':{'type':_0x4e168b(0x675,0x603,0x555,0x626),'properties':{'pattern':{'type':_0x3ec11f(-0x2c,0x66,0xd2,_0x15e5b1._0x14e822)},'path':{'type':_0x4e168b(_0x15e5b1._0x547755,_0x15e5b1._0x3b4d14,_0x15e5b1._0x3de5d5,0x47c)},'limit':{'type':_0x4e168b(_0x15e5b1._0x14ef3c,0x39b,_0x15e5b1._0xd7e614,0x48c)}},'required':[_0x4e168b(_0x15e5b1._0x4bcd44,_0x15e5b1._0x5bebb9,_0x15e5b1._0x2c2d78,0x313)]},async *'execute'(_0x4df0ae){const _0x2469a7={_0x3b231d:0xf0,_0x5dda8a:0x65,_0x158a48:0x68};if(_0x4df0ae['pattern'][_0x5d8f02(_0x4f74d5._0x48635c,-0xec,0x41,_0x4f74d5._0x3d28d5)]()[_0x41bcb3(0x39f,0x372,_0x4f74d5._0x56c3ea,_0x4f74d5._0x22e893)]===0x0)throw new ToolExecutionError(_0x41bcb3(0x45e,0x47a,0x4c1,_0x4f74d5._0x18cfef),{});const _0xc7ee78=resolveAllowedPath(_0x5630e7,_0x2b8f3b,_0x4df0ae[_0x5d8f02(-_0x4f74d5._0x469ea6,-_0x4f74d5._0x2c0cef,-_0x4f74d5._0x4a5e68,-_0x4f74d5._0x554f35)]??'.'),_0x5b1163=await _0x301c1c(_0xc7ee78)[_0x41bcb3(_0x4f74d5._0x5830e1,0x24f,0x388,0x38d)](()=>null);if(!_0x5b1163?.[_0x41bcb3(_0x4f74d5._0x117564,0x490,0x4cb,_0x4f74d5._0x235df7)]())throw new ToolExecutionError(_0x41bcb3(_0x4f74d5._0x2f21b7,0x579,0x68a,_0x4f74d5._0x2478de)+(_0x4df0ae[_0x5d8f02(-_0x4f74d5._0x469ea6,-_0x4f74d5._0x4e2fff,-0x15a,-0xe1)]??'.'),{'path':_0x4df0ae['path']??'.'});const _0xd92328=_0x4df0ae[_0x5d8f02(_0x4f74d5._0x13cd4a,0x4d,0x138,0x10)]??_0x423eb8,_0x4bf5ed=Math[_0x5d8f02(-0x1f4,-_0x4f74d5._0x4c97a9,-_0x4f74d5._0x471a9e,-_0x4f74d5._0x1461c2)](0x1,Math[_0x5d8f02(-_0x4f74d5._0x232a38,-_0x4f74d5._0xf311c1,-0xe8,_0x4f74d5._0x450516)](_0xd92328));function _0x41bcb3(_0x317d7,_0x2515f1,_0xcf5c7c,_0x55feb0){return _0x4e168b(_0x317d7-_0x2469a7._0x3b231d,_0x317d7- -_0x2469a7._0x5dda8a,_0x2515f1,_0x55feb0-_0x2469a7._0x158a48);}const _0x57ae3d=[];let _0x4d02ae=![];for await(const _0x13a122 of files({'cwd':_0xc7ee78,'glob':[_0x4df0ae[_0x5d8f02(-_0x4f74d5._0x17b01a,-_0x4f74d5._0x79f4c1,-_0x4f74d5._0x3d28d5,-_0x4f74d5._0x36381d)]]})){if(_0x57ae3d[_0x5d8f02(-0x14d,-0xc1,-_0x4f74d5._0x3c20f1,-_0x4f74d5._0x303435)]>=_0x4bf5ed){_0x4d02ae=!![];break;}const _0x3b45cc=await _0x301c1c(_0x5250a4[_0x5d8f02(-0x122,-0x1cf,-_0x4f74d5._0xd526be,-_0x4f74d5._0x167f12)](_0xc7ee78,_0x13a122))[_0x41bcb3(0x37d,0x2f4,0x4d1,0x4af)](()=>null);_0x57ae3d[_0x5d8f02(_0x4f74d5._0x368b01,0x18e,0x122,0x23)]({'path':_0x13a122,'mtime':_0x3b45cc?.['mtimeMs']??0x0});}_0x57ae3d[_0x41bcb3(0x2dc,0x2fd,0x2fa,_0x4f74d5._0x5c44bc)]((_0x1bf1e1,_0x1fbbb2)=>_0x1fbbb2[_0x41bcb3(0x38b,0x3aa,0x4d3,0x243)]-_0x1bf1e1['mtime']);function _0x5d8f02(_0x33a6df,_0x26ad05,_0x47bf90,_0x573fca){return _0x4e168b(_0x33a6df-_0x1d4d53._0xfeab7e,_0x33a6df- -0x551,_0x26ad05,_0x573fca-_0x1d4d53._0x66ca9b);}const _0x17d885=_0x57ae3d['map'](_0x52b769=>_0x52b769[_0x5d8f02(-0xd5,0x7f,0x4e,0xa)]),_0x109a01=_0x17d885[_0x41bcb3(0x39f,0x4b4,0x38b,0x336)]===0x0?_0x5d8f02(-_0x4f74d5._0x36a323,-_0x4f74d5._0x87d2db,0xa6,-0x1bf)+_0x4df0ae['pattern']:''+_0x17d885[_0x5d8f02(-0x122,-0xfc,-_0x4f74d5._0x137c3f,-0x147)]('\x0a')+(_0x4d02ae?_0x5d8f02(_0x4f74d5._0x53f222,_0x4f74d5._0x121dd2,-0xd4,0x165):'');return yield createToolOutput(_0x109a01,{'pattern':_0x4df0ae[_0x41bcb3(0x329,_0x4f74d5._0x34adca,0x486,_0x4f74d5._0x42f660)],'searchPath':_0x5250a4[_0x5d8f02(0x4e,_0x4f74d5._0x308b0a,0x11a,0xb8)](_0x5630e7,_0xc7ee78)||'.','matches':_0x17d885,'count':_0x17d885[_0x41bcb3(_0x4f74d5._0x5d71da,_0x4f74d5._0x28534a,_0x4f74d5._0x2b0ef6,0x38f)],'truncated':_0x4d02ae}),void 0x0;}});}import{stat as _0x13b0b5}from'fs/promises';import*as _0x2f03d4 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x3d079b={}){const _0x25b3c7={_0x374f88:0xbc,_0x28e538:0x2b7,_0x1b8e19:0x20a,_0x3465ff:0x40a,_0x584e43:0x54f,_0x27f6bc:0x56c,_0x4dc396:0x5ad,_0x18bb7b:0x549,_0x387415:0x4c4,_0x1f2c9c:0x2f1,_0x1cab07:0x355,_0x173fe3:0x2ec,_0x2bf724:0x2e1,_0x56059b:0x406,_0x57e054:0x2e6,_0x419b96:0x11b,_0x35e526:0x252,_0x311505:0x473,_0x190f37:0x2f5,_0x3d4c5a:0x339,_0x5111af:0x417,_0xf76aa3:0x281},_0x196d0d={_0x13eab7:0x3da,_0x22e85f:0x2fb,_0x1454e9:0x300,_0x193c5d:0x3fe,_0x3d6c27:0x191,_0x1f63d0:0x266,_0xd7e78d:0x36b,_0x32231b:0x4a3,_0x4c6cf7:0x429,_0x494732:0x35a,_0x5eecfc:0x252,_0x35fe71:0x1fd,_0x559d78:0x10e,_0x48a8ce:0x245,_0x2c5cfc:0x1f9,_0x513d85:0x2fa,_0x1a67e4:0x380,_0x1f1b80:0x1ee,_0x258f87:0x20f,_0x490a80:0x2a0,_0x72bc34:0x356,_0x34c4ac:0x3be,_0x2f9c22:0x2c4,_0xc03fbe:0x8b,_0x4a1b47:0x23b,_0x1a20d7:0x4a5,_0x4b4ebf:0x3b7,_0x302497:0x51a,_0x1a9aaf:0x2b4,_0x147629:0x133,_0x4456de:0x7,_0xc27f05:0x32c,_0x54efe2:0x438,_0x288155:0x4a9,_0x22cdc4:0x266,_0x509111:0x1cb,_0x1a8457:0xd9,_0x464972:0x1d2,_0x39aeca:0x36b,_0x5cb429:0x40e,_0x832b17:0x1a2,_0x3fdc39:0x350,_0x404bb7:0x224,_0x5de3ae:0x28e,_0x4bd527:0x21f,_0x2fea51:0x309,_0x4b2e49:0x418,_0x24a529:0x269,_0x289ef0:0x2f4,_0x5a2f70:0x2db,_0x481c01:0x1e4,_0x2d1e50:0x39e,_0xf401c9:0x4b1,_0x9da0d4:0x4dd,_0xeaad7f:0x30d,_0x3723b2:0xf0,_0x5eb48b:0x145,_0x356e1c:0x319,_0x4965ec:0x1bd,_0x4d892e:0x425,_0x4b1b9c:0x197,_0x31dd6f:0x173,_0x1f7b99:0xa7,_0x1932d1:0x94,_0x210749:0x17b,_0x256f2b:0x120,_0x19907c:0x195,_0x256018:0xe9,_0x5801b5:0x288,_0x54ea7c:0x370,_0x3fdb7b:0x2df,_0xc13bdb:0x23b,_0x12b8f1:0x117,_0x204f19:0x2c7,_0x382b4d:0x1cd,_0x35e2bc:0x321,_0x255c78:0x49,_0x58ccd5:0x182,_0x271a2b:0x423,_0x33f990:0x41c,_0x155267:0x1ea,_0x5b2a60:0xc4,_0x2c2d3c:0x226,_0x30a523:0x199,_0x121055:0x1c7,_0x7d50be:0x38,_0x277b4f:0x2b6,_0x2c198d:0x3d6,_0x3fe964:0x27b,_0x34f11c:0x3e0,_0x1f16e7:0x28a,_0xfdc385:0x12c,_0x572b33:0x324,_0x295196:0x479,_0x1e7215:0x2bc,_0x534aef:0x151,_0x2d8fcf:0x22,_0x1eab91:0x403,_0x233342:0x4cb,_0x4f2a95:0x379,_0xa9d149:0x48b,_0x225bd0:0x212,_0xe834a4:0x2e3,_0xe5582a:0x1d9,_0x3ce2c7:0x2f7,_0x3d4d56:0x299,_0x19f0c2:0x69,_0x3171ba:0x2a7,_0x404384:0x317,_0x48bbdf:0x20e},_0x450840={_0xc23316:0x11a},_0x5d7c40={_0x5818e8:0x297},_0x52df77={_0x4a411f:0x51},_0x33d90f=_0x2f03d4[_0x2dff71(_0x25b3c7._0x374f88,_0x25b3c7._0x28e538,0x226,_0x25b3c7._0x1b8e19)](_0x3d079b[_0x1573bd(_0x25b3c7._0x3465ff,_0x25b3c7._0x584e43,0x536,_0x25b3c7._0x27f6bc)]??process['cwd']());function _0x2dff71(_0x13f372,_0x136460,_0x270a94,_0x51a51c){return _0x17d408(_0x13f372-0x5e,_0x136460-_0x52df77._0x4a411f,_0x270a94,_0x51a51c-0x82);}const _0x20411a=(_0x3d079b[_0x1573bd(_0x25b3c7._0x4dc396,_0x25b3c7._0x18bb7b,0x44a,0x333)]??[])[_0x1573bd(_0x25b3c7._0x387415,_0x25b3c7._0x1f2c9c,0x457,_0x25b3c7._0x1cab07)](_0x41ed2e=>_0x2f03d4[_0x1573bd(0x36b,0x303,0x41f,0x4ac)](_0x41ed2e)),_0x4d7bf5=_0x3d079b[_0x2dff71(0x250,0x3bb,0x403,0x2f6)]??0x64;function _0x1573bd(_0x52f031,_0x2f8595,_0x8a8f52,_0x169b62){return _0x17d408(_0x52f031-0xf4,_0x2f8595-0x16d,_0x169b62,_0x8a8f52-_0x5d7c40._0x5818e8);}const _0x295169=_0x3d079b[_0x1573bd(0x39b,_0x25b3c7._0x173fe3,_0x25b3c7._0x2bf724,0x293)]??'Grep';return defineTool({'name':_0x295169,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20or\x20allowed\x20directory\x20file\x20contents.','inputSchema':{'type':_0x2dff71(_0x25b3c7._0x56059b,0x3a3,0x3c2,0x38c),'properties':{'pattern':{'type':_0x2dff71(_0x25b3c7._0x57e054,0x365,_0x25b3c7._0x419b96,_0x25b3c7._0x35e526)},'path':{'type':_0x2dff71(0x375,0x37e,0x2b3,_0x25b3c7._0x35e526)},'include':{'type':'string'},'limit':{'type':'number'},'context':{'type':_0x1573bd(_0x25b3c7._0x311505,_0x25b3c7._0x190f37,_0x25b3c7._0x3d4c5a,_0x25b3c7._0x5111af)}},'required':[_0x1573bd(_0x25b3c7._0xf76aa3,0x2fd,0x32c,0x273)]},async *'execute'(_0x34e584){const _0x2f70ab={_0x5adfa7:0x32,_0x24f606:0x194,_0x388348:0x20b};if(_0x34e584['pattern'][_0x48cec1(0x318,_0x196d0d._0x13eab7,0x269,_0x196d0d._0x22e85f)]()['length']===0x0)throw new ToolExecutionError(_0x48cec1(0x256,0x272,0x1ef,0x27e),{});const _0x497327=resolveAllowedPath(_0x33d90f,_0x20411a,_0x34e584[_0x231075(0x2a2,_0x196d0d._0x1454e9,_0x196d0d._0x193c5d,0x386)]??'.'),_0x4af5c7=await _0x13b0b5(_0x497327)[_0x231075(_0x196d0d._0x3d6c27,_0x196d0d._0x1f63d0,_0x196d0d._0xd7e78d,0x334)](()=>null),_0x301aa5=_0x4af5c7?.[_0x231075(0x5bf,_0x196d0d._0x32231b,_0x196d0d._0x4c6cf7,0x387)]()??![];function _0x231075(_0x396060,_0x3f6a0b,_0x282292,_0x2f375d){return _0x1573bd(_0x396060-0xc,_0x3f6a0b-0xe6,_0x3f6a0b- -_0x450840._0xc23316,_0x396060);}const _0x1f208a=_0x4af5c7?.[_0x48cec1(_0x196d0d._0x494732,_0x196d0d._0x5eecfc,0x378,_0x196d0d._0x35fe71)]()??![];if(!_0x301aa5&&!_0x1f208a)throw new ToolExecutionError(_0x231075(_0x196d0d._0x559d78,0x1b6,_0x196d0d._0x48a8ce,_0x196d0d._0x2c5cfc)+(_0x34e584[_0x231075(_0x196d0d._0x513d85,0x300,_0x196d0d._0x1a67e4,_0x196d0d._0x1f1b80)]??'.'),{'path':_0x34e584[_0x48cec1(_0x196d0d._0x258f87,_0x196d0d._0x490a80,0x290,_0x196d0d._0x72bc34)]??'.'});const _0x55f17b=_0x34e584[_0x48cec1(0x300,_0x196d0d._0x34c4ac,_0x196d0d._0x2f9c22,0x398)]??_0x4d7bf5,_0x5e2e6a=Math[_0x48cec1(0xf0,_0x196d0d._0xc03fbe,0x1be,_0x196d0d._0x4a1b47)](0x1,Math[_0x231075(_0x196d0d._0x1a20d7,_0x196d0d._0x4b4ebf,_0x196d0d._0x302497,_0x196d0d._0x1a9aaf)](_0x55f17b)),_0x3a1707=await search({'cwd':_0x1f208a?_0x497327:_0x2f03d4[_0x48cec1(_0x196d0d._0x147629,0x22d,0x19b,_0x196d0d._0x4456de)](_0x497327),'pattern':_0x34e584[_0x48cec1(0x121,0x1e,0x12b,0x296)],'glob':_0x1f208a?_0x34e584['include']:void 0x0,'limit':_0x5e2e6a,'file':_0x301aa5?_0x497327:void 0x0,'context':_0x34e584[_0x231075(_0x196d0d._0xc27f05,0x3b4,_0x196d0d._0x54efe2,_0x196d0d._0x288155)]}),_0x3e7c8f=new Map();for(const _0x35c8b5 of _0x3a1707){if(!_0x3e7c8f['has'](_0x35c8b5['filePath'])){const _0x544c7d=await _0x13b0b5(_0x35c8b5[_0x231075(0x3d9,0x2fa,0x44b,0x1a1)])[_0x231075(0x12e,_0x196d0d._0x22cdc4,0x2ef,0x168)](()=>null);_0x3e7c8f[_0x48cec1(_0x196d0d._0x509111,_0x196d0d._0x1a8457,0x195,_0x196d0d._0x464972)](_0x35c8b5[_0x231075(_0x196d0d._0x39aeca,0x2fa,_0x196d0d._0x5cb429,_0x196d0d._0x832b17)],{'matches':[],'mtime':_0x544c7d?.[_0x231075(0x3e6,_0x196d0d._0x3fdc39,0x298,_0x196d0d._0x404bb7)]??0x0});}_0x3e7c8f[_0x231075(_0x196d0d._0x5de3ae,0x367,0x3e4,_0x196d0d._0x4bd527)](_0x35c8b5[_0x231075(_0x196d0d._0x2fea51,0x2fa,_0x196d0d._0x4b2e49,_0x196d0d._0x24a529)])?.[_0x231075(_0x196d0d._0x289ef0,_0x196d0d._0x5a2f70,_0x196d0d._0x481c01,0x425)][_0x48cec1(_0x196d0d._0x2d1e50,_0x196d0d._0xf401c9,_0x196d0d._0x9da0d4,_0x196d0d._0xeaad7f)](_0x35c8b5);}const _0x4e6332=[..._0x3e7c8f['entries']()][_0x231075(_0x196d0d._0x3723b2,0x1c5,_0x196d0d._0x5eb48b,_0x196d0d._0x356e1c)]((_0x11a6a1,_0x18b49c)=>_0x18b49c[0x1][_0x231075(0x211,0x274,0x2cb,0xfd)]-_0x11a6a1[0x1][_0x48cec1(0x183,0x152,0xf2,0x2cb)]),_0x523292=_0x3a1707[_0x48cec1(0x306,_0x196d0d._0x4965ec,_0x196d0d._0x4d892e,0x1bf)](_0x201eef=>!_0x201eef['isContext'])[_0x48cec1(_0x196d0d._0x4b1b9c,_0x196d0d._0x31dd6f,_0x196d0d._0x1f7b99,0x3b)],_0x3bf35b=_0x3a1707[_0x48cec1(0x197,_0x196d0d._0x1932d1,_0x196d0d._0x210749,0x257)]>=_0x5e2e6a,_0x40c08c=_0x301aa5?_0x2f03d4[_0x231075(_0x196d0d._0x256f2b,0x224,_0x196d0d._0x19907c,_0x196d0d._0x256018)](_0x497327):_0x497327;function _0x48cec1(_0x1e03f8,_0x36944a,_0x1ffe68,_0x1c4c93){return _0x1573bd(_0x1e03f8-_0x2f70ab._0x5adfa7,_0x36944a-_0x2f70ab._0x24f606,_0x1e03f8- -_0x2f70ab._0x388348,_0x1ffe68);}let _0x59bb42='';if(_0x3a1707[_0x231075(0x3ca,_0x196d0d._0x5801b5,_0x196d0d._0x54ea7c,_0x196d0d._0x3fdb7b)]===0x0)_0x59bb42=_0x231075(0x311,_0x196d0d._0xc13bdb,_0x196d0d._0x12b8f1,0x2c5)+_0x34e584[_0x231075(0x96,0x212,0xfe,0x11e)];else{_0x59bb42=_0x231075(0x3b0,_0x196d0d._0x204f19,0x1ee,_0x196d0d._0x1454e9)+_0x523292+_0x231075(_0x196d0d._0x382b4d,_0x196d0d._0x35e2bc,0x48b,_0x196d0d._0x464972)+(_0x523292===0x1?'':'es')+'\x0a';for(const [_0x30f6dc,_0x3bde07]of _0x4e6332){const _0x5defb6=_0x301aa5?_0x2f03d4[_0x48cec1(0x1c0,_0x196d0d._0x255c78,0x256,_0x196d0d._0x58ccd5)](_0x30f6dc):_0x2f03d4[_0x231075(0x57f,_0x196d0d._0x271a2b,0x3fd,_0x196d0d._0x33f990)](_0x40c08c,_0x30f6dc);_0x59bb42+='\x0a'+_0x5defb6+':\x0a';for(const _0x1b3421 of _0x3bde07[_0x48cec1(_0x196d0d._0x155267,0x10d,0x10d,_0x196d0d._0x5b2a60)]){const _0x37adb7=_0x1b3421[_0x231075(_0x196d0d._0x2c2d3c,0x28a,0x353,0x165)]['length']>MAX_LINE_LENGTH?_0x1b3421[_0x48cec1(_0x196d0d._0x30a523,_0x196d0d._0x121055,0xd7,_0x196d0d._0x7d50be)][_0x231075(0x423,_0x196d0d._0x277b4f,0x1f9,_0x196d0d._0x2c198d)](0x0,MAX_LINE_LENGTH)+_0x48cec1(0x1a8,_0x196d0d._0x3fe964,0xd6,0x96):_0x1b3421[_0x231075(_0x196d0d._0x34f11c,_0x196d0d._0x1f16e7,0x330,_0x196d0d._0xfdc385)],_0x3b4521=_0x1b3421[_0x48cec1(_0x196d0d._0x572b33,0x2f2,_0x196d0d._0x295196,_0x196d0d._0x1e7215)]?'\x20\x20':'>\x20';_0x59bb42+=_0x3b4521+'Line\x20'+_0x1b3421[_0x48cec1(_0x196d0d._0x534aef,_0x196d0d._0x2d8fcf,_0x196d0d._0x3fe964,0x1b4)]+':\x20'+_0x37adb7+'\x0a';}}_0x3bf35b&&(_0x59bb42+=_0x231075(0x3c3,_0x196d0d._0x1eab91,_0x196d0d._0x233342,_0x196d0d._0x4f2a95));}const _0x452f98={'searchPath':_0x2f03d4[_0x48cec1(0x332,0x2cc,_0x196d0d._0xa9d149,0x322)](_0x33d90f,_0x497327)||'.','pattern':_0x34e584[_0x231075(0x1b8,_0x196d0d._0x225bd0,_0x196d0d._0xe834a4,_0x196d0d._0xe5582a)],'matchCount':_0x523292,'fileCount':_0x3e7c8f[_0x231075(0x470,_0x196d0d._0x3ce2c7,0x231,_0x196d0d._0x3d4d56)],'truncated':_0x3bf35b};return _0x1f208a&&_0x34e584['include']!==void 0x0&&(_0x452f98[_0x231075(0x1db,0x1e3,_0x196d0d._0x19f0c2,_0x196d0d._0x3171ba)]=_0x34e584[_0x231075(0x120,0x1e3,_0x196d0d._0x404384,_0x196d0d._0x48bbdf)]),yield createToolOutput(_0x59bb42['trim'](),_0x452f98),void 0x0;}});}function createKillShellTool(_0x27ccb3){const _0x498f1d={_0x5a7564:0x552,_0x44e726:0x5e2,_0x17cc1a:0x61},_0x5e69e2={_0x3443f4:0x1c,_0x351769:0xb1,_0x120f95:0x9b,_0x2bf9da:0x349,_0x39a9ba:0x300,_0x12976b:0x3a4,_0x58dc83:0x3d,_0x3cbeab:0x9a,_0x3fcd40:0x12,_0x27c502:0x239,_0x4274c3:0x2ad,_0x4ec1b8:0x135,_0xc59f76:0xb4,_0x135b44:0x3f,_0x5e9767:0x15a},_0x460515={_0x28f586:0x108,_0x42b74c:0xe0},_0x34ece4={_0x25c6fd:0x1a5,_0x3028ee:0x87};function _0x15d7ac(_0x35b984,_0x4bfe90,_0x403979,_0xd8e288){return _0x1a7bb7(_0x35b984-_0x34ece4._0x25c6fd,_0x4bfe90-0x2d4,_0x403979-_0x34ece4._0x3028ee,_0x403979);}const {registry:_0x26c59d}=_0x27ccb3;function _0x5dbed6(_0x51a9ad,_0x10b27b,_0x2d9d90,_0x22f370){return _0x17d408(_0x51a9ad-_0x460515._0x28f586,_0x10b27b-_0x460515._0x42b74c,_0x22f370,_0x51a9ad- -0x16f);}return defineTool({'name':'KillShell','description':'Terminate\x20a\x20background\x20process\x20started\x20with\x20Bash(runInBackground:true),\x20identified\x20by\x20its\x20shellId.','inputSchema':{'type':_0x15d7ac(0x493,_0x498f1d._0x5a7564,0x6a7,_0x498f1d._0x44e726),'properties':{'shellId':{'type':_0x5dbed6(_0x498f1d._0x17cc1a,-0x7a,-0xd5,0x97)}},'required':[_0x5dbed6(0x1d,-0x7d,-0xfa,0x1a)]},async *'execute'(_0x1e7f08){const _0x14e73e={_0x3a41e9:0xe1},_0x3d9010={_0x3bd8e6:0x9,_0x2cfea5:0x23},_0x3874e9=_0x26c59d['kill'](_0x1e7f08[_0x28b6ce(-_0x5e69e2._0x3443f4,-_0x5e69e2._0x351769,-_0x5e69e2._0x120f95,-0x138)]);function _0x28b6ce(_0x59a855,_0x59bdbd,_0x46e69a,_0x2b3a11){return _0x5dbed6(_0x59a855- -0x39,_0x59bdbd-_0x3d9010._0x3bd8e6,_0x46e69a-_0x3d9010._0x2cfea5,_0x2b3a11);}function _0x573ba1(_0x4a3fd2,_0x2e5906,_0x789385,_0xd5a9d4){return _0x5dbed6(_0x2e5906-0x1c6,_0x2e5906-0x19,_0x789385-_0x14e73e._0x3a41e9,_0x789385);}return createToolOutput(_0x573ba1(_0x5e69e2._0x2bf9da,_0x5e69e2._0x39a9ba,0x422,_0x5e69e2._0x12976b)+_0x1e7f08[_0x28b6ce(-0x1c,-_0x5e69e2._0x58dc83,-_0x5e69e2._0x3cbeab,_0x5e69e2._0x3fcd40)]+_0x573ba1(_0x5e69e2._0x27c502,_0x5e69e2._0x4274c3,0x18d,0x3e1)+_0x3874e9['status']+').',{'shellId':_0x1e7f08[_0x28b6ce(-0x1c,0xe9,-0x16b,-0x118)],'status':_0x3874e9['status'],'exitCode':_0x3874e9[_0x28b6ce(-_0x5e69e2._0x4ec1b8,-_0x5e69e2._0xc59f76,-_0x5e69e2._0x135b44,-0xae)],'signal':_0x3874e9[_0x28b6ce(-0xb2,-0x71,-0x10b,-_0x5e69e2._0x5e9767)]});}});}import{readdir as _0x16e96d,readFile as _0x5aa0ae,stat as _0xca2503}from'fs/promises';import*as _0x9740f4 from'path';import*as _0x27c61d from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x22e80e,_0x3ecdb3){const _0x479623={_0x3a3c88:0x1ac,_0x5516c9:0x310,_0x194550:0x269,_0x27aae2:0x3f9,_0x552768:0x4ce,_0x55c1e0:0x405,_0x2f1ea4:0x332,_0x12819d:0x328,_0x14dfc0:0x2f9,_0x492348:0x57,_0x12c0f6:0x252,_0x530a33:0x5c,_0x3931e5:0x1f4},_0x4e4d36={_0x18ac81:0xe1},_0x491c6f={_0x1afb62:0xc3,_0xbae1b1:0x8e};if(_0x3ecdb3>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x5158eb(_0x524bd0,_0x44627c,_0x5ec6ba,_0x548f82){return _0x17d408(_0x524bd0-_0x491c6f._0x1afb62,_0x44627c-0x1ae,_0x5ec6ba,_0x44627c-_0x491c6f._0xbae1b1);}const _0x1b2398=await _0x5aa0ae(_0x22e80e)[_0x194fbe(-0x30e,-_0x479623._0x3a3c88,-0x28d,-_0x479623._0x5516c9)](()=>null);function _0x194fbe(_0x3889d5,_0x528c80,_0x416bd8,_0x2ee0ad){return _0x1a7bb7(_0x3889d5-0x17a,_0x528c80- -0x209,_0x416bd8-_0x4e4d36._0x18ac81,_0x416bd8);}if(!_0x1b2398||isProbablyBinary(_0x1b2398))return void 0x0;return _0x1b2398[_0x5158eb(_0x479623._0x194550,0x356,_0x479623._0x27aae2,_0x479623._0x552768)](_0x5158eb(_0x479623._0x55c1e0,_0x479623._0x2f1ea4,_0x479623._0x12819d,0x330))[_0x5158eb(0x148,0x182,_0x479623._0x14dfc0,_0x479623._0x492348)](/\r?\n/)[_0x194fbe(-_0x479623._0x12c0f6,-0x18a,-_0x479623._0x530a33,-_0x479623._0x3931e5)];}function createLsTool(_0x3c5ccb={}){const _0x5c8e0c={_0x19b5a1:0x4b8,_0x43d085:0x35e,_0x358ddb:0x5f4,_0x4f90f7:0x577,_0xc7aa8b:0x3a0,_0x55d624:0x617,_0xea31eb:0x4a9,_0x3cd47d:0x473,_0x794590:0x3d2,_0x292fcb:0x4a7,_0x381226:0x2a4},_0x4db281={_0x567150:0x2fc,_0x8c7f61:0x3bc,_0x32896c:0x310,_0x334643:0x238,_0x4b968b:0x2c3,_0x17b1e3:0x55b,_0x4a53e6:0x41d,_0xb0a92a:0x58e,_0x4608ba:0x30b,_0x78e298:0x322,_0xc03de1:0x27f,_0x198c70:0x202,_0x445995:0x235,_0x5149db:0x3aa,_0x13ebed:0x3ed,_0x1ac85a:0x288,_0x277249:0x3fc,_0x3a7d7a:0x324,_0x445b24:0x183,_0x41dcc2:0x359,_0x160d44:0x2c0,_0x497bf8:0x475,_0x2ca897:0x5b6,_0x543e9d:0x430,_0x2af377:0x3a4,_0x347fc6:0x3b4,_0x5228b7:0x2a1,_0x3671c5:0x316,_0x1020de:0x120,_0xbeabff:0x40c,_0x357955:0x57c,_0x310fbd:0x2b0,_0x31d386:0x23c,_0x4aa71c:0x2cb,_0x3202ff:0x3f4,_0x3839bb:0x32f,_0x58c4cc:0x357,_0x34fdaa:0x295,_0x2b6ba9:0x2e7,_0x375127:0x35e,_0x2a0d08:0x40a,_0xab0174:0x48b,_0xd86473:0x522,_0x39bfe1:0xc5,_0x5f4458:0x1b3,_0x20271c:0x9d,_0x4ae4f0:0x336,_0x301a08:0x25a,_0x350aec:0x32a,_0x5194fa:0xfe,_0x19a3fe:0x251,_0x144813:0x2b3,_0x501574:0x36b,_0xbd6c09:0x396,_0x369e8b:0x32d,_0x177448:0x3e6,_0x50eb61:0x33a,_0xfed4ee:0x1f7,_0x3101ed:0x2d8,_0x28100c:0x1d5},_0x240402={_0x28aa89:0x189},_0x14b4ec={_0x323e09:0xf5},_0x438de8=_0x9740f4[_0x48d6c6(_0x5c8e0c._0x19b5a1,0x57b,0x479,_0x5c8e0c._0x43d085)](_0x3c5ccb[_0xaf93a9(0x62c,_0x5c8e0c._0x358ddb,_0x5c8e0c._0x4f90f7,0x4ad)]??process['cwd']());function _0x48d6c6(_0x832615,_0x184277,_0x92a49f,_0x32d2cc){return _0x1a7bb7(_0x832615-0x1c1,_0x832615-0x3bc,_0x92a49f-0x45,_0x32d2cc);}function _0xaf93a9(_0x191e11,_0x38eaa2,_0x361bbf,_0x4efb6f){return _0x17d408(_0x191e11-0x1e2,_0x38eaa2-_0x14b4ec._0x323e09,_0x191e11,_0x361bbf-0x2d8);}const _0x47bfbc=(_0x3c5ccb[_0xaf93a9(0x47d,0x46c,0x48b,_0x5c8e0c._0xc7aa8b)]??[])[_0x48d6c6(0x4f0,_0x5c8e0c._0x55d624,0x638,0x3c4)](_0x376566=>_0x9740f4['resolve'](_0x376566)),_0x5856f6=_0x3c5ccb['name']??'Ls';return defineTool({'name':_0x5856f6,'description':_0x48d6c6(0x526,0x4e0,_0x5c8e0c._0xea31eb,_0x5c8e0c._0x3cd47d),'inputSchema':{'type':'object','properties':{'path':{'type':_0x48d6c6(0x500,0x476,0x519,0x49d)},'limit':{'type':_0x48d6c6(_0x5c8e0c._0x794590,_0x5c8e0c._0x292fcb,0x432,_0x5c8e0c._0x381226)}}},async *'execute'(_0x2cd4cf){const _0x4028eb={_0x441de2:0x92,_0x152d2d:0x4d};function _0x42d542(_0x1683aa,_0x5fd013,_0x409252,_0x149389){return _0xaf93a9(_0x149389,_0x5fd013-_0x4028eb._0x441de2,_0x1683aa- -0x15f,_0x149389-_0x4028eb._0x152d2d);}const _0x2eac45=_0x2cd4cf[_0x42d542(_0x4db281._0x567150,0x2fc,_0x4db281._0x8c7f61,0x302)]??'.',_0x2a4ce5=resolveAllowedPath(_0x438de8,_0x47bfbc,_0x2eac45),_0x3109be=await _0xca2503(_0x2a4ce5)[_0x251635(_0x4db281._0x32896c,_0x4db281._0x334643,_0x4db281._0x4b968b,0x1fb)](()=>null);if(!_0x3109be?.[_0x251635(_0x4db281._0x17b1e3,_0x4db281._0x4a53e6,_0x4db281._0xb0a92a,_0x4db281._0x4608ba)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x2eac45,{'path':_0x2eac45});const _0x4495b6=_0x2cd4cf[_0x251635(0x26f,0x3c3,0x33a,_0x4db281._0x78e298)]??0x3e8,_0x1ed2ca=Math[_0x251635(0x34a,0x32b,_0x4db281._0xc03de1,0x3fd)](Math[_0x42d542(0x1dd,_0x4db281._0x198c70,0x28e,_0x4db281._0x445995)](Math[_0x251635(_0x4db281._0x5149db,0x389,_0x4db281._0x13ebed,0x403)](_0x4495b6),0x1),0x2710),_0x1cdf38=await _0x16e96d(_0x2a4ce5),_0x49293c=[];for(const _0x21d1bf of _0x1cdf38[_0x251635(0x252,_0x4db281._0x1ac85a,_0x4db281._0x277249,_0x4db281._0x3a7d7a)](0x0,_0x1ed2ca)){const _0xe4aa8a=_0x9740f4[_0x42d542(0x2af,0x2a2,_0x4db281._0x445b24,_0x4db281._0x41dcc2)](_0x2a4ce5,_0x21d1bf),_0x44c455=await _0xca2503(_0xe4aa8a)[_0x42d542(0x262,_0x4db281._0x160d44,0x112,0x358)](()=>null);if(!_0x44c455)continue;let _0xd80348='other';if(_0x44c455[_0x251635(0x3c3,_0x4db281._0x497bf8,_0x4db281._0x2ca897,_0x4db281._0x543e9d)]())_0xd80348=_0x251635(_0x4db281._0x2af377,_0x4db281._0x347fc6,0x437,0x31b);else{if(_0x44c455[_0x251635(0x434,0x41d,0x37a,_0x4db281._0x5228b7)]())_0xd80348='directory';else{if(_0x44c455[_0x42d542(0x25b,_0x4db281._0x3671c5,_0x4db281._0x1020de,0x35b)]())_0xd80348=_0x251635(0x31f,_0x4db281._0xbeabff,_0x4db281._0x357955,0x37a);}}const _0x25dbec={'name':_0x21d1bf,'type':_0xd80348,'size':_0x44c455[_0x251635(_0x4db281._0x310fbd,0x2c9,_0x4db281._0x31d386,_0x4db281._0x4aa71c)],'mtime':_0x44c455[_0x42d542(0x34c,0x1f9,0x45e,_0x4db281._0x3202ff)],'mode':_0x44c455[_0x251635(_0x4db281._0x3839bb,_0x4db281._0x58c4cc,0x31b,0x2cb)]},_0x5edf63=_0xd80348==='file'?await countTextLines(_0xe4aa8a,_0x44c455[_0x251635(_0x4db281._0x34fdaa,0x2c9,_0x4db281._0x2b6ba9,0x3b7)]):void 0x0;if(_0x5edf63!==void 0x0)_0x25dbec[_0x42d542(0x444,0x56e,_0x4db281._0x375127,_0x4db281._0x2a0d08)]=_0x5edf63;_0x49293c[_0x42d542(_0x4db281._0xab0174,_0x4db281._0xd86473,0x4a4,0x338)](_0x25dbec);}_0x49293c[_0x251635(_0x4db281._0x39bfe1,0x197,_0x4db281._0x5f4458,_0x4db281._0x20271c)]((_0x1b713c,_0xdea202)=>_0x1b713c[_0x42d542(0x1c3,0x6a,0x2c0,0x205)][_0x251635(0x3c3,0x2ae,0x1b3,0x3b5)](_0xdea202[_0x251635(0xce,0x199,0x5e,0x2a2)]));function _0x251635(_0x3ba2b5,_0x40ac07,_0x483c3d,_0x5db6ee){return _0xaf93a9(_0x3ba2b5,_0x40ac07-0x9e,_0x40ac07- -_0x240402._0x28aa89,_0x5db6ee-0x8c);}const _0x49575a={'path':_0x2eac45,'total':_0x49293c[_0x251635(_0x4db281._0x4ae4f0,_0x4db281._0x301a08,_0x4db281._0x350aec,_0x4db281._0x5194fa)],'truncated':_0x1cdf38[_0x42d542(0x284,_0x4db281._0x19a3fe,0x2a0,_0x4db281._0x144813)]>_0x1ed2ca,'entries':_0x49293c};return yield createToolOutput(_0x27c61d[_0x251635(0x348,_0x4db281._0x501574,_0x4db281._0xbd6c09,_0x4db281._0x369e8b)](_0x49575a,{'indent':0x2,'lineWidth':0x0})[_0x42d542(0x47d,_0x4db281._0x177448,0x566,_0x4db281._0x50eb61)](),{'path':_0x2eac45,'total':_0x49293c[_0x42d542(0x284,0x1d3,0x263,_0x4db281._0xfed4ee)],'truncated':_0x1cdf38[_0x251635(0x305,0x25a,_0x4db281._0x3101ed,_0x4db281._0x28100c)]>_0x1ed2ca,'limit':_0x1ed2ca,'entries':_0x49293c}),void 0x0;}});}import{stat as _0x2c3ba9}from'fs/promises';import _0x126928 from'path';import{fileURLToPath as _0x107c94}from'url';function severityName(_0x3be149){const _0x147366={_0x3ec99a:0x248,_0xaaf94f:0x15a,_0x520917:0x244,_0x4461e3:0x7f,_0x462aac:0x1da,_0x5dd53a:0x318},_0x63a854={_0x48c855:0x3a,_0x3a0cc7:0x87},_0x1aa9ff={_0x575490:0x1d0};function _0x44329f(_0x46a85b,_0x26f633,_0x154800,_0x5c1c4b){return _0x17d408(_0x46a85b-_0x1aa9ff._0x575490,_0x26f633-0x62,_0x26f633,_0x46a85b-0x17);}function _0x519c64(_0x53b418,_0x2647a1,_0x2f5bda,_0xe3a0f9){return _0x17d408(_0x53b418-0xb1,_0x2647a1-_0x63a854._0x48c855,_0x2f5bda,_0x2647a1-_0x63a854._0x3a0cc7);}switch(_0x3be149){case 0x1:return _0x44329f(_0x147366._0x3ec99a,0x358,_0x147366._0xaaf94f,_0x147366._0x520917);case 0x2:return'Warning';case 0x3:return'Information';case 0x4:return _0x44329f(_0x147366._0x4461e3,_0x147366._0x462aac,0x1b,-0x41);default:return _0x519c64(_0x147366._0x5dd53a,0x1de,0x150,0x214);}}function formatSingleHover(_0x1b15fd){const _0x409426={_0x239a27:0x30d,_0x412de2:0x267,_0x32f384:0x120,_0xb127c2:0x14f,_0x1644cd:0xf5,_0x3c425e:0x20d,_0x5b047e:0xf3,_0x4d175d:0x337,_0x209691:0x1ec,_0x32829b:0x241,_0x561678:0x1a5,_0x56a0a0:0x283,_0x1639e6:0x1e0,_0x37263d:0x195,_0x209d5e:0xaf,_0x2742aa:0x243,_0x5b253d:0x79,_0x530d30:0xea,_0x319f19:0xab},_0x2e6ef5={_0x1d82a5:0x1b5};function _0x1c1048(_0x20ab8d,_0x4d5631,_0xf011b0,_0x31bc82){return _0x17d408(_0x20ab8d-0x1ed,_0x4d5631-0x14d,_0x4d5631,_0x31bc82- -0x38f);}const _0x476d56=_0x1b15fd['contents'];if(typeof _0x476d56===_0x74e480(-0xd9,-0x16e,-_0x409426._0x239a27,-0x19d))return _0x476d56;if(Array[_0x1c1048(-_0x409426._0x412de2,-_0x409426._0x32f384,-_0x409426._0xb127c2,-_0x409426._0x1644cd)](_0x476d56))return _0x476d56['map'](_0x21488e=>typeof _0x21488e===_0x74e480(-0x156,-0xd4,-0x310,-0x19d)?_0x21488e:_0x21488e['value'])[_0x74e480(-_0x409426._0x3c425e,0x14,-0x263,-_0x409426._0x5b047e)](Boolean)[_0x1c1048(-_0x409426._0x4d175d,-_0x409426._0x209691,-_0x409426._0x32829b,-0x259)]('\x0a\x0a');if('kind'in _0x476d56)return _0x476d56['value'];function _0x74e480(_0x593be5,_0x5820c8,_0x1fc1b3,_0x42ca5f){return _0x1a7bb7(_0x593be5-0x77,_0x42ca5f- -0x2e1,_0x1fc1b3-_0x2e6ef5._0x1d82a5,_0x593be5);}return _0x476d56[_0x74e480(-0x2d6,-0x364,-_0x409426._0x561678,-_0x409426._0x56a0a0)]?_0x74e480(-0x21a,-0xe8,-_0x409426._0x1639e6,-0xac)+_0x476d56['language']+'\x0a'+_0x476d56[_0x1c1048(-0x33,-0x1be,-_0x409426._0x37263d,-0xcd)]+_0x1c1048(-_0x409426._0x209d5e,-0xe3,-_0x409426._0x2742aa,-0xd8):_0x476d56[_0x74e480(_0x409426._0x5b253d,-_0x409426._0x530d30,0x43,-_0x409426._0x319f19)];}function formatHover(_0xf832c5){const _0x9c3689={_0xfbca2a:0x433,_0x3d373d:0x23a,_0xfd106:0x1e1,_0x109e39:0x135,_0x2df603:0xac,_0x444d39:0x6b},_0x25c19f={_0x32bcc6:0x313},_0x4f1403={_0x4138d7:0x15c,_0x1f7b02:0x8b};function _0x5086ce(_0x2cf126,_0x5ea76f,_0x31a2f9,_0x51098c){return _0x1a7bb7(_0x2cf126-_0x4f1403._0x4138d7,_0x2cf126-_0x4f1403._0x1f7b02,_0x31a2f9-0x12,_0x5ea76f);}if(_0xf832c5[_0x5c4e24(_0x9c3689._0xfbca2a,0x41e,0x339,0x553)]===0x0)return _0x5086ce(0x12c,_0x9c3689._0x3d373d,_0x9c3689._0xfd106,0x1);function _0x5c4e24(_0x270b9f,_0x108259,_0x264060,_0x481829){return _0x17d408(_0x270b9f-0x75,_0x108259-0x1dc,_0x481829,_0x108259-_0x25c19f._0x32bcc6);}return _0xf832c5[_0x5c4e24(0x3f3,0x4d3,0x360,0x5b6)](formatSingleHover)[_0x5086ce(_0x9c3689._0x109e39,_0x9c3689._0x2df603,0x202,_0x9c3689._0x444d39)]('\x0a\x0a---\x0a\x0a');}function locationPath(_0xf105e7){const _0x6d49c9={_0x53b770:0x3ef,_0x5367a2:0x363,_0x268c40:0x2ff},_0xed0032={_0xa97111:0x12,_0x1ff843:0x1b},_0x1c2c81={_0x3e455c:0x193,_0x481749:0x167};if(!_0xf105e7[_0x3fa8e6(0x25f,0x295,0x45b,0x323)](_0x3fa8e6(_0x6d49c9._0x53b770,_0x6d49c9._0x5367a2,_0x6d49c9._0x268c40,0x370)))return _0xf105e7;function _0x3fa8e6(_0x1d760,_0x394e52,_0x4f5646,_0x2e1aa1){return _0x17d408(_0x1d760-_0x1c2c81._0x3e455c,_0x394e52-0x182,_0x1d760,_0x2e1aa1-_0x1c2c81._0x481749);}function _0x2dc037(_0x236a43,_0x552bf7,_0x5e9d95,_0x2d8dc1){return _0x1a7bb7(_0x236a43-_0xed0032._0xa97111,_0x552bf7-_0xed0032._0x1ff843,_0x5e9d95-0xd9,_0x2d8dc1);}return _0x107c94(_0xf105e7);}function formatLocations(_0x4e0693){const _0x556f32={_0x8427c4:0x379,_0x3ae8b7:0x33d,_0x231b4a:0x1cb,_0x5cad07:0x3c0,_0x573ca3:0x2ce,_0x4cc7c3:0x26e,_0x353abe:0x363,_0x27655d:0x2dc},_0x56828b={_0x36dc25:0x155,_0x2e2b24:0xe1},_0x5ac52b={_0x541741:0x105},_0x9573c7={_0x5394f3:0xf0},_0x3adc82={_0x4e07d7:0x70,_0x414cf3:0x2be},_0x52b560={_0x4b9f7f:0xc7};function _0x422d9a(_0x300060,_0x46db12,_0x3d6965,_0x398832){return _0x1a7bb7(_0x300060-_0x52b560._0x4b9f7f,_0x3d6965- -0x214,_0x3d6965-0x166,_0x300060);}function _0xa36cb3(_0x3f8e3d,_0x1520b5,_0x3c4597,_0xb5c545){return _0x1a7bb7(_0x3f8e3d-_0x3adc82._0x4e07d7,_0x1520b5-_0x3adc82._0x414cf3,_0x3c4597-0x2a,_0xb5c545);}if(_0x4e0693[_0xa36cb3(_0x556f32._0x8427c4,_0x556f32._0x3ae8b7,0x46f,_0x556f32._0x231b4a)]===0x0)return _0xa36cb3(_0x556f32._0x5cad07,_0x556f32._0x573ca3,_0x556f32._0x4cc7c3,0x3eb);return _0x4e0693[_0xa36cb3(_0x556f32._0x353abe,0x3f2,_0x556f32._0x27655d,0x494)](_0x577158=>{const _0x3045e6=_0x577158[_0x2ef64b(-0x124,0x93,0x2d,-0x11)]['start'];function _0x2ef64b(_0x40ae74,_0x4f5bc9,_0x17c7da,_0x543a27){return _0x422d9a(_0x543a27,_0x4f5bc9-_0x9573c7._0x5394f3,_0x17c7da-0x126,_0x543a27-0x99);}function _0x37be15(_0xa2beeb,_0xbc594,_0x22ef2d,_0x197cc0){return _0xa36cb3(_0xa2beeb-_0x5ac52b._0x541741,_0xa2beeb- -0x555,_0x22ef2d-0x5b,_0xbc594);}return locationPath(_0x577158[_0x37be15(-_0x56828b._0x36dc25,-0x14,-_0x56828b._0x2e2b24,0x17)])+':'+(_0x3045e6['line']+0x1)+':'+(_0x3045e6['character']+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x56bf0f){const _0x3c8599={_0x97ebef:0xd0,_0xdb3f00:0x159,_0x135ff5:0x110},_0x4bbf21={_0x1140c3:0x17d,_0x49fd4b:0x6f},_0x38d441={_0x31d6cd:0xa2};function _0x3d678c(_0x2d2ca7,_0x52a1b4,_0x1ba71a,_0x3632a1){return _0x1a7bb7(_0x2d2ca7-0x114,_0x3632a1- -0x172,_0x1ba71a-_0x38d441._0x31d6cd,_0x52a1b4);}function _0x1325fc(_0x165ee0,_0x1c470d,_0x49d81f,_0x2851af){return _0x1a7bb7(_0x165ee0-_0x4bbf21._0x1140c3,_0x1c470d-0x39e,_0x49d81f-_0x4bbf21._0x49fd4b,_0x165ee0);}return _0x3d678c(-0x14,0xdd,_0x3c8599._0x97ebef,-0x57)in _0x56bf0f&&_0x3d678c(0x20,_0x3c8599._0xdb3f00,_0x3c8599._0x135ff5,0xe4)in _0x56bf0f;}function formatSymbols(_0x5d75c9){const _0x3fd0aa={_0xf11a5:0x247,_0x4e4edc:0x256,_0x336fe3:0x12e,_0x26cda1:0x377,_0x357c96:0x394,_0x1a287a:0x3df},_0x53cfd3={_0x115779:0x242,_0x422f73:0x2b0,_0x3c505e:0x77,_0x59eb01:0x495,_0x3d9d0b:0x2c7,_0x16e6b4:0x42f,_0x17c610:0x1,_0x14bcaf:0x58,_0x5d6206:0x39,_0x2c316b:0x12a,_0x3d1fdc:0x40d,_0x4b6d30:0x4ea,_0x2714d1:0x465,_0x53ee2a:0x1b4,_0x111f98:0x394,_0x496e3e:0x28a,_0x4125d4:0x459,_0x1430a5:0x38c,_0x1998e7:0x372,_0x54334e:0x471,_0x98ebee:0x396,_0x1e75fe:0x18,_0x18330d:0x1f0,_0x31d145:0x4b5,_0x480aff:0xe2,_0x260b55:0xd8,_0x57045e:0x66,_0xae37d4:0x3c6,_0x3adb13:0x11b,_0x26b5db:0x8e,_0x515bba:0x3d7,_0x4d0520:0x3f0,_0x4a8a6d:0x402},_0x296414={_0x5aa973:0x1c0,_0x2cafc6:0x421,_0x389760:0x145},_0x4c037c={_0x5d822e:0x148,_0x388371:0x241},_0x1f43b8={_0x3df055:0x23};if(_0x5d75c9['length']===0x0)return _0x403593(0x301,0x283,_0x3fd0aa._0xf11a5,0x290);function _0x5927b8(_0x5bdcad,_0x2ff84d,_0x37fee6,_0x3828bd){return _0x17d408(_0x5bdcad-0x4,_0x2ff84d-_0x1f43b8._0x3df055,_0x37fee6,_0x3828bd- -0x2ee);}function _0x403593(_0x2f4737,_0xe4834b,_0x179908,_0x3e1cd7){return _0x17d408(_0x2f4737-0x53,_0xe4834b-_0x4c037c._0x5d822e,_0x179908,_0xe4834b-_0x4c037c._0x388371);}return _0x5d75c9[_0x5927b8(-0xf,-0x1cf,-_0x3fd0aa._0x4e4edc,-_0x3fd0aa._0x336fe3)](_0x52e812=>{const _0x17a233={_0x881c94:0x21,_0x4a54a3:0x50d};function _0x14b7c5(_0x2507f7,_0x1bab66,_0x3daa9e,_0xd48b38){return _0x5927b8(_0x2507f7-0x17d,_0x1bab66-_0x17a233._0x881c94,_0x2507f7,_0xd48b38-_0x17a233._0x4a54a3);}if(isDocumentSymbol(_0x52e812))return _0x52e812[_0x296e9d(-_0x53cfd3._0x115779,-_0x53cfd3._0x422f73,-0x196,-_0x53cfd3._0x3c505e)]+'\x20('+_0x52e812[_0x14b7c5(0x390,_0x53cfd3._0x59eb01,_0x53cfd3._0x3d9d0b,_0x53cfd3._0x16e6b4)]+')\x20['+(_0x52e812[_0x296e9d(_0x53cfd3._0x17c610,_0x53cfd3._0x14bcaf,-_0x53cfd3._0x5d6206,-_0x53cfd3._0x2c316b)][_0x14b7c5(0x570,_0x53cfd3._0x3d1fdc,_0x53cfd3._0x4b6d30,_0x53cfd3._0x2714d1)][_0x14b7c5(_0x53cfd3._0x53ee2a,0x3d8,_0x53cfd3._0x111f98,_0x53cfd3._0x496e3e)]+0x1)+':'+(_0x52e812[_0x14b7c5(_0x53cfd3._0x4125d4,_0x53cfd3._0x1430a5,_0x53cfd3._0x1998e7,0x3c6)]['start']['character']+0x1)+']';function _0x296e9d(_0x71825,_0x320c73,_0xe037a7,_0xd71f54){return _0x403593(_0x71825-_0x296414._0x5aa973,_0xe037a7- -_0x296414._0x2cafc6,_0xd71f54,_0xd71f54-_0x296414._0x389760);}return _0x52e812['name']+'\x20('+_0x52e812[_0x14b7c5(_0x53cfd3._0x54334e,0x472,_0x53cfd3._0x98ebee,_0x53cfd3._0x16e6b4)]+')\x20'+locationPath(_0x52e812[_0x14b7c5(0x3bf,0x48e,0x309,0x47e)][_0x296e9d(0x167,0x4b,-0x12,-_0x53cfd3._0x1e75fe)])+':'+(_0x52e812[_0x296e9d(_0x53cfd3._0x18330d,0x14,0x7f,0xed)][_0x14b7c5(0x269,0x52f,_0x53cfd3._0x31d145,0x3c6)][_0x296e9d(-_0x53cfd3._0x480aff,-_0x53cfd3._0x260b55,_0x53cfd3._0x57045e,0x112)]['line']+0x1)+':'+(_0x52e812['location'][_0x14b7c5(0x4e3,0x47c,0x448,_0x53cfd3._0xae37d4)][_0x296e9d(-0x113,_0x53cfd3._0x3adb13,0x66,_0x53cfd3._0x26b5db)][_0x14b7c5(0x490,_0x53cfd3._0x515bba,_0x53cfd3._0x4d0520,_0x53cfd3._0x4a8a6d)]+0x1);})[_0x403593(0x48d,_0x3fd0aa._0x26cda1,_0x3fd0aa._0x357c96,_0x3fd0aa._0x1a287a)]('\x0a');}function formatDiagnostics(_0xf198e6){const _0x594215={_0xbc50a8:0x17b,_0xcb5664:0x273,_0x395c4e:0x1ee},_0x3b8ed9={_0x26645e:0x119,_0x4e9443:0x1a6,_0x24ea8a:0x1b2,_0xd70ebd:0xa1,_0x3fb121:0x255,_0x3338f5:0x270,_0x38a7d1:0x2b0,_0xf0ed21:0x587,_0x36e53f:0x36d,_0x444841:0x477,_0x3cfe3b:0x38,_0x2d0cbb:0x178},_0x3b7454={_0x537402:0x1c9},_0x798c0d={_0x20c2d6:0x211,_0x35a7a4:0x104,_0x125073:0x1ed},_0x3e54e7={_0x4085b6:0x148,_0x2d62ca:0x11a},_0x2fb207={_0x15cec8:0x19b,_0x30f4d4:0x1fa,_0x4e7bbc:0x101};if(_0xf198e6[_0x128a97(-0xb2,-_0x594215._0xbc50a8,-0x1ad,-0x20c)]===0x0)return _0x5ea5cf(0x195,_0x594215._0xcb5664,0xdc,_0x594215._0x395c4e);function _0x128a97(_0x15924c,_0x333efc,_0x5620e5,_0x49606a){return _0x1a7bb7(_0x15924c-_0x2fb207._0x15cec8,_0x333efc- -_0x2fb207._0x30f4d4,_0x5620e5-_0x2fb207._0x4e7bbc,_0x15924c);}function _0x5ea5cf(_0x4b4038,_0x267e40,_0x5f1d50,_0x4d0588){return _0x1a7bb7(_0x4b4038-0xa1,_0x4b4038-_0x3e54e7._0x4085b6,_0x5f1d50-_0x3e54e7._0x2d62ca,_0x4d0588);}return _0xf198e6['map'](_0x461b8e=>{function _0x1242a6(_0x30d45e,_0x1513a4,_0x2e1dad,_0x1030ca){return _0x5ea5cf(_0x1513a4-_0x798c0d._0x20c2d6,_0x1513a4-_0x798c0d._0x35a7a4,_0x2e1dad-_0x798c0d._0x125073,_0x2e1dad);}function _0xbe9c55(_0x3dd8c8,_0x146768,_0x22edab,_0x39872f){return _0x128a97(_0x22edab,_0x3dd8c8- -0x3a,_0x22edab-0x118,_0x39872f-_0x3b7454._0x537402);}const _0x406b59=_0x461b8e[_0xbe9c55(-_0x3b8ed9._0x26645e,-_0x3b8ed9._0x4e9443,-0x24a,-0xe)]['start'];return severityName(_0x461b8e[_0xbe9c55(-_0x3b8ed9._0x24ea8a,-_0x3b8ed9._0xd70ebd,-0x30a,-0x266)])+'\x20['+(_0x406b59[_0xbe9c55(-_0x3b8ed9._0x3fb121,-0xe9,-_0x3b8ed9._0x3338f5,-_0x3b8ed9._0x38a7d1)]+0x1)+':'+(_0x406b59[_0x1242a6(_0x3b8ed9._0xf0ed21,0x4b0,_0x3b8ed9._0x36e53f,_0x3b8ed9._0x444841)]+0x1)+']\x20'+_0x461b8e[_0xbe9c55(-_0x3b8ed9._0x3cfe3b,0xc8,-_0x3b8ed9._0x2d0cbb,-0xaa)];})['join']('\x0a');}function formatIncomingCalls(_0x12d0ec){const _0x2373b9={_0x46053f:0x45d,_0xf6090:0x512},_0x4a5395={_0x37868d:0x493,_0x531304:0x51};function _0x5a6884(_0x44d067,_0x1a6ed1,_0x23fb80,_0x490959){return _0x1a7bb7(_0x44d067-0x8c,_0x23fb80-_0x4a5395._0x37868d,_0x23fb80-_0x4a5395._0x531304,_0x490959);}if(_0x12d0ec[_0x5a6884(_0x2373b9._0x46053f,0x4d4,_0x2373b9._0xf6090,0x431)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x47b1a1(_0x60d0f9,_0x3d5cee,_0x466f87,_0x4e5ca4){return _0x17d408(_0x60d0f9-0x154,_0x3d5cee-0x7a,_0x466f87,_0x3d5cee-0x2b3);}return _0x12d0ec['map'](_0x4711fd=>_0x4711fd['from'][_0x5a6884(0x356,0x4b8,0x451,0x56f)])['join']('\x0a');}function formatOutgoingCalls(_0xc4b22a){const _0x484825={_0x52f07b:0x157,_0x15e6f9:0x11f,_0x2e8e58:0x20d,_0x183d55:0xea,_0x320f43:0x122,_0x5fb4cc:0x13c},_0xf7997e={_0x4421a1:0x55,_0xbdbc5b:0xa7,_0x2f6f13:0x2e2},_0x3c546a={_0x289e6f:0x8a,_0x51930c:0x18e,_0x3cb9d4:0x152};function _0x4cf988(_0x24816e,_0x248312,_0xde7e4c,_0x13ce17){return _0x1a7bb7(_0x24816e-_0x3c546a._0x289e6f,_0xde7e4c-_0x3c546a._0x51930c,_0xde7e4c-_0x3c546a._0x3cb9d4,_0x248312);}function _0xd80e52(_0x82cbda,_0x2f20cf,_0x11bf5e,_0x37df76){return _0x17d408(_0x82cbda-_0xf7997e._0x4421a1,_0x2f20cf-_0xf7997e._0xbdbc5b,_0x2f20cf,_0x11bf5e- -_0xf7997e._0x2f6f13);}if(_0xc4b22a[_0x4cf988(_0x484825._0x52f07b,_0x484825._0x15e6f9,_0x484825._0x2e8e58,0x261)]===0x0)return'No\x20call\x20hierarchy\x20results';return _0xc4b22a[_0xd80e52(-_0x484825._0x183d55,-0xe,-_0x484825._0x320f43,-0x1eb)](_0x346ed2=>_0x346ed2['to']['name'])[_0xd80e52(-_0x484825._0x5fb4cc,-0x30d,-0x1ac,-0x277)]('\x0a');}function toStructured(_0x1edf6f){const _0x2f21f1={_0x492d4a:0x63f,_0x125002:0x67b,_0x3b45f8:0x601,_0x306cec:0x543,_0x432228:0x443},_0x28c2f3={_0x53fe3d:0xd9},_0x42e628={_0x2dc53e:0x195};function _0x3c5e92(_0x16d293,_0x4d710a,_0x5c0605,_0xa276a1){return _0x17d408(_0x16d293-0x16c,_0x4d710a-_0x42e628._0x2dc53e,_0x5c0605,_0x16d293-0x327);}function _0x50c3cc(_0x5a2eef,_0x58650e,_0x480d4f,_0x57c85f){return _0x1a7bb7(_0x5a2eef-_0x28c2f3._0x53fe3d,_0x57c85f- -0x49,_0x480d4f-0x50,_0x5a2eef);}return JSON[_0x3c5e92(_0x2f21f1._0x492d4a,0x611,_0x2f21f1._0x125002,_0x2f21f1._0x3b45f8)](JSON[_0x3c5e92(_0x2f21f1._0x306cec,_0x2f21f1._0x432228,0x644,0x4a4)](_0x1edf6f));}async function assertFile(_0x25f1dd){const _0x41f796={_0x3cc0a3:0x486,_0x42a856:0x2e8,_0x3f19f6:0x301},_0x5a5ab1={_0x449049:0x1e5,_0x8b8768:0x15c,_0x4caa38:0x6f},_0x25e8d7={_0x3272a1:0x9b,_0xfb5861:0x101},_0x336f48=await _0x2c3ba9(_0x25f1dd);function _0x274b99(_0x371ddc,_0x2ae5bf,_0x31605b,_0x98a1ca){return _0x1a7bb7(_0x371ddc-_0x25e8d7._0x3272a1,_0x2ae5bf-0x14e,_0x31605b-_0x25e8d7._0xfb5861,_0x371ddc);}function _0x1684e4(_0x219963,_0x117c76,_0x3c56db,_0x598bbf){return _0x1a7bb7(_0x219963-_0x5a5ab1._0x449049,_0x219963-_0x5a5ab1._0x8b8768,_0x3c56db-_0x5a5ab1._0x4caa38,_0x598bbf);}if(!_0x336f48[_0x274b99(_0x41f796._0x3cc0a3,0x3e8,0x36a,_0x41f796._0x42a856)]())throw new ToolExecutionError(_0x274b99(0x18f,_0x41f796._0x3f19f6,0x18b,0x40a)+_0x25f1dd,{'path':_0x25f1dd});}function validatePosition(_0x4968be,_0x51383f){const _0xd62049={_0xc24e6e:0xd5,_0x3dafc5:0xe8,_0x1d65ed:0x9e,_0x4abdd0:0x5d,_0x3c569f:0x10,_0x1dc8fd:0xe8,_0x26b122:0x150,_0x245836:0x169,_0x3415f9:0x21a,_0x504c32:0x142},_0x257232={_0x299a26:0x1a9,_0x49ccae:0x181},_0x261028={_0x5266d9:0xe0};function _0x366860(_0x31e621,_0x37dcb0,_0x29c794,_0x54586d){return _0x17d408(_0x31e621-0x197,_0x37dcb0-_0x261028._0x5266d9,_0x37dcb0,_0x29c794- -0x232);}function _0x4f7a75(_0x2c324e,_0x3ae63d,_0x438fd9,_0x4dad0c){return _0x17d408(_0x2c324e-0x144,_0x3ae63d-_0x257232._0x299a26,_0x438fd9,_0x4dad0c- -_0x257232._0x49ccae);}if(!Number[_0x4f7a75(-_0xd62049._0xc24e6e,-0x8e,_0xd62049._0x3dafc5,_0xd62049._0x1d65ed)](_0x4968be)||_0x4968be<0x1)throw new ToolExecutionError(_0x4f7a75(-_0xd62049._0x4abdd0,-0x51,-0x57,-_0xd62049._0x3c569f),{'line':_0x4968be});if(!Number[_0x366860(-_0xd62049._0x1dc8fd,-_0xd62049._0x26b122,-0x13,_0xd62049._0x245836)](_0x51383f)||_0x51383f<0x1)throw new ToolExecutionError(_0x4f7a75(_0xd62049._0x3415f9,0xf,0x1a5,_0xd62049._0x504c32),{'character':_0x51383f});}function createLspTool(_0x12c453={}){const _0x4c793d={_0x2f5af9:0x183,_0x2b260b:0x133,_0x3fe3cb:0x1a5,_0x115258:0x171,_0x306612:0x60d,_0x6cc01a:0x684,_0x394533:0x4f2,_0x37505a:0x523,_0x164b54:0x61e,_0x35b008:0x445,_0x1d5baf:0x530,_0x45343d:0x59b,_0x29265a:0x119,_0x46a69a:0x5,_0x245e48:0x111,_0x2d05a7:0x5b7,_0x27de46:0x396,_0x3f5006:0x2f3,_0x2c748b:0x114,_0x2eb63b:0x5f,_0x4d13f3:0x417,_0x52504d:0x3ef,_0x37cd77:0x2c9,_0x302008:0x4fa,_0x42c64b:0x5e9,_0x3702ce:0x708,_0x3fcced:0x75e,_0x29c49d:0x495,_0x5de7ca:0x649,_0xc68a90:0x7a2,_0x7c79cb:0x51b,_0x41621f:0x1d5,_0x5dad8d:0x217,_0x14585c:0x1b9,_0x37f4c0:0x62,_0x464911:0xad,_0x825687:0x44e,_0x256166:0x58f,_0x5d6f1b:0x385,_0x1afb98:0x120,_0x2c9045:0x110,_0x17bcf1:0x575,_0x26a5b3:0x678},_0x1006e8={_0x3f4e0b:0x464,_0x291fcf:0x52b,_0x254949:0x208,_0x30ac14:0xd8,_0x24e9ae:0x10,_0x4baca5:0xe4,_0x46de4a:0x12e,_0x3deeb1:0x3a,_0x3e51e3:0x2d5,_0x2a429f:0x235,_0x37cd42:0x242,_0x39fb32:0x32a,_0x7f7e88:0x6c,_0x78551f:0x52,_0x2367e9:0x83,_0x5b5e86:0x3c8,_0x3f04c1:0x3cf,_0x4a0b79:0x4ed,_0x566291:0x525,_0x1e30cf:0x5fa,_0x18f9a5:0x3e5,_0x11d3e9:0x140,_0x46bd23:0xbd,_0x412888:0xd7,_0x1d9051:0x1ca,_0x4e75e7:0x1f2,_0x1726d3:0xd7,_0x2f1ff8:0x1ab,_0x36be2e:0x8a,_0x467718:0x1eb,_0xc23e01:0x227,_0x3406ab:0x43f,_0x545016:0x429,_0x157ce5:0x484,_0xf74186:0x50e,_0x3fcd9a:0x59b,_0x3c601b:0x4da,_0x16dcbf:0x516,_0x49e6ec:0x4da,_0x458009:0x4f0,_0xffeeb0:0x575,_0x2fe7f6:0x634,_0x183c22:0x69d,_0x437210:0x1b,_0x362b73:0x13,_0x4c416a:0x36,_0x1ce4c5:0x125,_0x5eaec2:0x2a3,_0x23761f:0xb,_0x438a59:0x3f0,_0x523c4c:0x4b1,_0x1792d4:0x46f,_0x9974df:0x238,_0x5e6c4c:0x388,_0x15f982:0x22f,_0x50696c:0x22e,_0x195731:0x113,_0x35434a:0x273,_0x11c8cc:0x1f8,_0x311f5f:0x5d,_0x1e53d7:0x3eb,_0x29ecd6:0x2a6,_0x2b6a48:0x1b1,_0xb52e90:0x27a,_0x57be0d:0x5f8,_0x682a24:0x533,_0x446fbb:0x10,_0x1e181a:0x97,_0xc04c8:0xa9,_0x35aa2c:0xba,_0x5dc409:0x175,_0x556393:0x5d6,_0x1ae013:0x5d6,_0x35ca72:0x67f,_0xed60b6:0x630},_0x3bffc6={_0x26088d:0x13,_0x477661:0x4f,_0x2889ba:0xb4},_0xa25649={_0x2f5bd8:0x88,_0x58177d:0x370};function _0x3a828b(_0x2c2c32,_0x2a830a,_0x43fbcf,_0x21e8a9){return _0x17d408(_0x2c2c32-0xcb,_0x2a830a-0x12,_0x2a830a,_0x21e8a9- -0x17);}const _0x2bd346=_0x126928[_0x3a828b(_0x4c793d._0x2f5af9,_0x4c793d._0x2b260b,_0x4c793d._0x3fe3cb,_0x4c793d._0x115258)](_0x12c453['defaultCwd']??process[_0x578ea7(_0x4c793d._0x306612,0x671,_0x4c793d._0x6cc01a,_0x4c793d._0x394533)]());function _0x578ea7(_0x455186,_0x1eb217,_0x182307,_0x4c1f42){return _0x17d408(_0x455186-0x1aa,_0x1eb217-_0xa25649._0x2f5bd8,_0x182307,_0x455186-_0xa25649._0x58177d);}const _0xf58578=(_0x12c453[_0x578ea7(_0x4c793d._0x37505a,0x690,_0x4c793d._0x164b54,_0x4c793d._0x35b008)]??[])[_0x578ea7(_0x4c793d._0x1d5baf,0x5b3,0x679,_0x4c793d._0x45343d)](_0x1e8d3b=>_0x126928[_0x3a828b(0xea,0x38,0x49,0x171)](_0x1e8d3b)),_0x4174d9=_0x12c453['name']??_0x3a828b(_0x4c793d._0x29265a,0x246,-_0x4c793d._0x46a69a,_0x4c793d._0x245e48);return defineTool({'name':_0x4174d9,'description':_0x578ea7(0x4fa,_0x4c793d._0x2d05a7,0x420,0x433),'inputSchema':{'type':_0x3a828b(0x434,0x2ce,_0x4c793d._0x27de46,_0x4c793d._0x3f5006),'properties':{'operation':{'type':'string','enum':[_0x3a828b(-0xe6,-0x11d,-_0x4c793d._0x2c748b,_0x4c793d._0x2eb63b),_0x3a828b(0x210,0x13d,0x24a,0x19d),'hover','documentSymbol','workspaceSymbol',_0x3a828b(_0x4c793d._0x4d13f3,0x219,0x273,0x312),_0x578ea7(_0x4c793d._0x52504d,_0x4c793d._0x37cd77,0x28f,_0x4c793d._0x302008),_0x578ea7(_0x4c793d._0x42c64b,_0x4c793d._0x3702ce,_0x4c793d._0x3fcced,_0x4c793d._0x29c49d),'outgoingCalls',_0x578ea7(_0x4c793d._0x5de7ca,_0x4c793d._0xc68a90,_0x4c793d._0x7c79cb,0x71a)]},'filePath':{'type':_0x3a828b(_0x4c793d._0x41621f,_0x4c793d._0x5dad8d,0x155,_0x4c793d._0x14585c)},'line':{'type':_0x3a828b(_0x4c793d._0x37f4c0,-_0x4c793d._0x464911,-0xe9,0x8b)},'character':{'type':'number'},'query':{'type':_0x578ea7(0x540,_0x4c793d._0x825687,_0x4c793d._0x256166,0x534)}},'required':[_0x578ea7(0x463,0x3ac,_0x4c793d._0x5d6f1b,0x4a9),'filePath',_0x3a828b(0x8f,_0x4c793d._0x1afb98,_0x4c793d._0x2c9045,0x54),_0x578ea7(0x553,0x425,_0x4c793d._0x17bcf1,_0x4c793d._0x26a5b3)]},async *'execute'(_0x44467b){const _0x485ee2={_0x19b1ae:0x174},_0x1c8283=_0x12c453[_0x4e1812(_0x1006e8._0x3f4e0b,_0x1006e8._0x291fcf,0x4d7,0x55f)];if(!_0x1c8283)throw new ToolExecutionError(_0x3d4017(_0x1006e8._0x254949,-0x68,_0x1006e8._0x30ac14,_0x1006e8._0x24e9ae));if(!_0x1c8283[_0x3d4017(-_0x1006e8._0x4baca5,-_0x1006e8._0x46de4a,-0x3e,_0x1006e8._0x3deeb1)]())throw new ToolExecutionError(_0x3d4017(_0x1006e8._0x3e51e3,_0x1006e8._0x2a429f,_0x1006e8._0x37cd42,_0x1006e8._0x39fb32));const _0x18ec88=_0x44467b[_0x3d4017(0x23,-_0x1006e8._0x7f7e88,_0x1006e8._0x78551f,_0x1006e8._0x2367e9)];validatePosition(_0x44467b[_0x4e1812(_0x1006e8._0x5b5e86,_0x1006e8._0x3f04c1,_0x1006e8._0x4a0b79,0x2e8)],_0x44467b[_0x4e1812(0x540,_0x1006e8._0x566291,_0x1006e8._0x1e30cf,_0x1006e8._0x18f9a5)]);if(_0x18ec88===_0x3d4017(_0x1006e8._0x11d3e9,_0x1006e8._0x46bd23,0x225,0x161)){if(!_0x44467b[_0x3d4017(-0x5f,0x78,_0x1006e8._0x412888,0x107)]?.['trim']())throw new ToolExecutionError(_0x3d4017(0x1a7,-0x8d,0xd1,0x21e));const _0x271b91=await _0x1c8283[_0x3d4017(_0x1006e8._0x1d9051,0xc6,0x225,0x170)](_0x44467b[_0x3d4017(-0x10,_0x1006e8._0x4e75e7,_0x1006e8._0x1726d3,_0x1006e8._0x2f1ff8)][_0x3d4017(0x257,_0x1006e8._0x36be2e,_0x1006e8._0x467718,_0x1006e8._0xc23e01)]());return yield createToolOutput(formatSymbols(_0x271b91),{'operation':_0x18ec88,'query':_0x44467b[_0x4e1812(0x4d5,_0x1006e8._0x3406ab,0x407,0x38b)],'symbols':_0x271b91}),void 0x0;}function _0x3d4017(_0x23ad73,_0x289cd0,_0x514a7e,_0xfbd0d){return _0x578ea7(_0x514a7e- -0x411,_0x289cd0-_0x485ee2._0x19b1ae,_0x289cd0,_0xfbd0d-0xc5);}const _0x328d99=resolveAllowedPath(_0x2bd346,_0xf58578,_0x44467b[_0x4e1812(0x4da,_0x1006e8._0x545016,0x566,_0x1006e8._0x157ce5)]);function _0x4e1812(_0x49d63a,_0x5eb0d7,_0x188ab6,_0x47ba89){return _0x578ea7(_0x49d63a- -_0x3bffc6._0x26088d,_0x5eb0d7-_0x3bffc6._0x477661,_0x188ab6,_0x47ba89-_0x3bffc6._0x2889ba);}await assertFile(_0x328d99);if(!await _0x1c8283['hasClients'](_0x328d99))throw new ToolExecutionError(_0x4e1812(_0x1006e8._0xf74186,0x39f,0x519,_0x1006e8._0x3fcd9a)+_0x44467b[_0x4e1812(_0x1006e8._0x3c601b,0x452,_0x1006e8._0x16dcbf,0x5f4)],{'filePath':_0x44467b[_0x4e1812(_0x1006e8._0x49e6ec,0x41c,_0x1006e8._0x458009,_0x1006e8._0xffeeb0)]});await _0x1c8283[_0x4e1812(0x5ed,0x4fb,_0x1006e8._0x2fe7f6,_0x1006e8._0x183c22)](_0x328d99,!![]);const _0x14b097={'file':_0x328d99,'line':_0x44467b[_0x3d4017(_0x1006e8._0x437210,-_0x1006e8._0x362b73,-_0x1006e8._0x4c416a,-_0x1006e8._0x1ce4c5)]-0x1,'character':_0x44467b[_0x3d4017(_0x1006e8._0x5eaec2,0x174,0x142,-_0x1006e8._0x23761f)]-0x1};switch(_0x18ec88){case _0x4e1812(_0x1006e8._0x438a59,_0x1006e8._0x523c4c,0x444,_0x1006e8._0x1792d4):{const _0x40496f=await _0x1c8283['hover'](_0x14b097);return yield createToolOutput(formatHover(_0x40496f),{'operation':_0x18ec88,'filePath':_0x328d99,'hover':_0x40496f}),void 0x0;}case _0x3d4017(0x2c6,0x393,_0x1006e8._0x9974df,0x1f9):{const _0xdfddf0=await _0x1c8283['diagnosticsForFile'](_0x328d99);return yield createToolOutput(formatDiagnostics(_0xdfddf0),{'operation':_0x18ec88,'filePath':_0x328d99,'diagnostics':_0xdfddf0}),void 0x0;}case'goToDefinition':{const _0x2e5439=await _0x1c8283[_0x3d4017(_0x1006e8._0x5e6c4c,0xf4,_0x1006e8._0x15f982,0x1da)](_0x14b097);return yield createToolOutput(formatLocations(_0x2e5439),{'operation':_0x18ec88,'filePath':_0x328d99,'locations':_0x2e5439}),void 0x0;}case _0x3d4017(_0x1006e8._0x50696c,0x81,_0x1006e8._0x195731,_0x1006e8._0x35434a):{const _0x276e6b=await _0x1c8283[_0x3d4017(_0x1006e8._0x11c8cc,0x195,0x162,_0x1006e8._0x311f5f)](_0x14b097);return yield createToolOutput(formatLocations(_0x276e6b),{'operation':_0x18ec88,'filePath':_0x328d99,'locations':_0x276e6b}),void 0x0;}case _0x3d4017(_0x1006e8._0x1e53d7,0x315,0x288,0x3bb):{const _0x596d31=await _0x1c8283[_0x3d4017(_0x1006e8._0x29ecd6,_0x1006e8._0x2b6a48,_0x1006e8._0xb52e90,0x323)](_0x14b097);return yield createToolOutput(formatLocations(_0x596d31),{'operation':_0x18ec88,'filePath':_0x328d99,'locations':_0x596d31}),void 0x0;}case _0x4e1812(0x4db,_0x1006e8._0x57be0d,_0x1006e8._0x682a24,0x37a):{const _0x1e972b=await _0x1c8283[_0x3d4017(_0x1006e8._0x446fbb,_0x1006e8._0x1e181a,0xdd,0x1c3)](_0x328d99);return yield createToolOutput(formatSymbols(_0x1e972b),{'operation':_0x18ec88,'filePath':_0x328d99,'symbols':_0x1e972b}),void 0x0;}case _0x3d4017(-0xa1,_0x1006e8._0xc04c8,-0x22,0x55):{const _0x3ba750=await _0x1c8283[_0x3d4017(-_0x1006e8._0x35aa2c,-_0x1006e8._0x5dc409,-0x22,-0x7d)](_0x14b097);return yield createToolOutput(formatSymbols(_0x3ba750),{'operation':_0x18ec88,'filePath':_0x328d99,'symbols':toStructured(_0x3ba750)}),void 0x0;}case _0x4e1812(_0x1006e8._0x556393,0x678,0x733,0x6a2):{const _0x4cc1a5=await _0x1c8283[_0x4e1812(_0x1006e8._0x1ae013,_0x1006e8._0x35ca72,0x70f,_0x1006e8._0xed60b6)](_0x14b097);return yield createToolOutput(formatIncomingCalls(_0x4cc1a5),{'operation':_0x18ec88,'filePath':_0x328d99,'calls':toStructured(_0x4cc1a5)}),void 0x0;}case'outgoingCalls':{const _0x31c991=await _0x1c8283['outgoingCalls'](_0x14b097);return yield createToolOutput(formatOutgoingCalls(_0x31c991),{'operation':_0x18ec88,'filePath':_0x328d99,'calls':toStructured(_0x31c991)}),void 0x0;}}}});}import{randomUUID as _0xa29e9}from'crypto';import{mkdir as _0x22c117,readFile as _0x1ab99f,writeFile as _0x268a4e}from'fs/promises';import{join as _0xad084c}from'path';function sanitizeStorageKey(_0x5ebb1c){const _0x1dc980={_0x327167:0x5eb,_0x8ee747:0x522,_0x489013:0x648,_0x20ba38:0x6e7,_0x322efb:0x685},_0x5d1fa1={_0x40e481:0x17c};function _0x333491(_0x448100,_0x2eee47,_0x598dcf,_0x5cdca7){return _0x1a7bb7(_0x448100-_0x5d1fa1._0x40e481,_0x598dcf-0x38f,_0x598dcf-0x1dc,_0x448100);}function _0x3c3287(_0x39ab45,_0x17bd46,_0x1bbfb8,_0x507b76){return _0x17d408(_0x39ab45-0x13c,_0x17bd46-0xe4,_0x17bd46,_0x1bbfb8-0x43c);}return _0x5ebb1c[_0x333491(_0x1dc980._0x327167,0x4ea,0x50f,0x441)](/[^a-zA-Z0-9_]+/g,'_')[_0x3c3287(_0x1dc980._0x8ee747,0x543,_0x1dc980._0x489013,0x4d9)](/^_+|_+$/g,'')||_0x3c3287(0x71e,_0x1dc980._0x20ba38,_0x1dc980._0x322efb,0x621);}function storagePath(_0x578ffd){const _0x33efaa={_0x331895:0x423,_0x281b8b:0xc5,_0x31188b:0x2d,_0x58349d:0x16d,_0x11e02e:0x27c,_0x2e4557:0x382,_0x5db426:0x379,_0x17e983:0x351,_0x229af8:0x470,_0x11cb9d:0x1b1,_0x2264e9:0x27f},_0x1e90bd={_0x36b994:0x1c4,_0x1cf6e4:0x1f4},_0xcf593b={_0x48f310:0x1e1};function _0x2938ec(_0x44ab23,_0x4acf47,_0x509732,_0x134690){return _0x1a7bb7(_0x44ab23-_0xcf593b._0x48f310,_0x4acf47- -0x255,_0x509732-0xdf,_0x44ab23);}const _0xe74cc6=sanitizeStorageKey(_0x578ffd[_0x44a0d2(_0x33efaa._0x331895,0x24f,0x28c,0x333)][_0x44a0d2(0x379,0x224,_0x33efaa._0x281b8b,0x231)]?.[_0x2938ec(-0x7c,_0x33efaa._0x31188b,_0x33efaa._0x58349d,-0x14e)]??_0x578ffd[_0x44a0d2(_0x33efaa._0x11e02e,_0x33efaa._0x2e4557,0x23f,_0x33efaa._0x5db426)]);function _0x44a0d2(_0x3d404f,_0x4edded,_0x661d09,_0x33a0e0){return _0x1a7bb7(_0x3d404f-_0x1e90bd._0x36b994,_0x33a0e0-_0x1e90bd._0x1cf6e4,_0x661d09-0x149,_0x661d09);}return _0xad084c(_0x578ffd[_0x44a0d2(_0x33efaa._0x17e983,0x4d7,_0x33efaa._0x229af8,0x426)],_0xe74cc6+_0x2938ec(-_0x33efaa._0x11cb9d,-0x1c3,-0x1b2,-_0x33efaa._0x2264e9));}async function readStore(_0x28733b){const _0x1906be={_0x2e312b:0x58,_0x1c649c:0xcc,_0x40087b:0x166,_0x48e047:0x1,_0x454880:0x1e4,_0xd49323:0x1d5,_0x25ea97:0x33f,_0x4f7347:0x20a,_0x1ad3b7:0x17d,_0x57e978:0xa1,_0x4e67c0:0xf0},_0x376b09={_0x69683:0x85,_0x52f7e3:0x1ac},_0x1e3e67={_0x62088c:0x3e5,_0x1bc109:0x1};function _0x4fb4c0(_0x357447,_0xd13e9a,_0x3fb7ec,_0x43bf83){return _0x1a7bb7(_0x357447-0xd5,_0x3fb7ec-_0x1e3e67._0x62088c,_0x3fb7ec-_0x1e3e67._0x1bc109,_0x43bf83);}function _0x3dc945(_0x13a5ee,_0x5d3468,_0x107628,_0x310c55){return _0x1a7bb7(_0x13a5ee-_0x376b09._0x69683,_0x13a5ee- -0x2e4,_0x107628-_0x376b09._0x52f7e3,_0x310c55);}try{return JSON[_0x3dc945(-_0x1906be._0x2e312b,-0xb,-0x45,-0x68)](await _0x1ab99f(_0x28733b,_0x3dc945(-_0x1906be._0x1c649c,-_0x1906be._0x40087b,-_0x1906be._0x48e047,-_0x1906be._0x454880)));}catch(_0x487336){if(_0x487336 instanceof Error&&_0x3dc945(-_0x1906be._0xd49323,-_0x1906be._0x25ea97,-_0x1906be._0x4f7347,-_0x1906be._0x1ad3b7)in _0x487336&&_0x487336[_0x3dc945(-0x1d5,-0x302,-_0x1906be._0x57e978,-_0x1906be._0x4e67c0)]==='ENOENT')return{};throw _0x487336;}}async function writeStore(_0x5771fc,_0x11a5a1){const _0x1447ec={_0x1225e4:0xc0,_0x1a7211:0x14f,_0x558d54:0x74,_0x3fe0e9:0x17c,_0x36997c:0x116,_0x48cc14:0xb},_0x5e7c43={_0x2fa521:0x11a,_0x4064a6:0x8f},_0x4f3543={_0x272f64:0x71,_0xdfae9b:0x1a7,_0x4551b2:0x2fc};function _0xb7488f(_0x54c22d,_0xca9949,_0x35fcea,_0x4d127c){return _0x17d408(_0x54c22d-_0x4f3543._0x272f64,_0xca9949-_0x4f3543._0xdfae9b,_0xca9949,_0x35fcea- -_0x4f3543._0x4551b2);}function _0x4b3cad(_0x11f4c2,_0x489ac3,_0x1fdcf0,_0x19aa8f){return _0x17d408(_0x11f4c2-_0x5e7c43._0x2fa521,_0x489ac3-_0x5e7c43._0x4064a6,_0x1fdcf0,_0x19aa8f- -0xa0);}await _0x22c117(_0xad084c(_0x5771fc,'..'),{'recursive':!![]}),await _0x268a4e(_0x5771fc,JSON[_0x4b3cad(_0x1447ec._0x1225e4,_0x1447ec._0x1a7211,_0x1447ec._0x558d54,_0x1447ec._0x3fe0e9)](_0x11a5a1,null,0x2),_0xb7488f(_0x1447ec._0x36997c,-0xc6,-0x58,_0x1447ec._0x48cc14));}async function updateStore(_0x1a5677,_0x257421){const _0x249045=await readStore(_0x1a5677);_0x257421(_0x249045),await writeStore(_0x1a5677,_0x249045);}function createMcpOAuthProvider(_0x3e4806){const _0x30910b={_0x1ca2af:0x518,_0x10adb8:0x4b0,_0xb256ae:0x440,_0x320473:0x572,_0x199bd0:0x44c,_0x80abc4:0x3ac,_0x1b9c10:0x52a,_0x4a6604:0x316,_0x22c853:0x4bc,_0x301cf9:0x3fd,_0x1efd14:0x4a2,_0x16e68b:0x3e6,_0x29a9fd:0xb3,_0x2a8f3d:0x49,_0x1e3add:0x4a,_0x28380f:0x518,_0x2f5f40:0x492,_0x1647cb:0x45e,_0x33c65a:0x689,_0x3250ec:0x319,_0x41ce87:0x31a},_0xa948b3={_0x1fceab:0x3b,_0x78b496:0x138},_0x1359dc={_0x394cad:0x10b},_0xef38bb={_0x5d126c:0x9b,_0x78495f:0x1b5},_0x31d1e3={_0x4f0aa2:0x3bf},_0x3184c8={_0x546422:0x2ae},_0x62284d={_0x4d87b1:0x44f,_0x21988a:0x322},_0x44222d={_0x12b462:0xdb,_0x3e30c1:0x89},_0x27c9b2={_0x546358:0x153,_0x1c87b9:0x221,_0x2d1519:0x31a},_0x2d2a76={_0x3923cd:0x44c,_0x3d674d:0xb9},_0x47032e={_0x3ff2e8:0x2e},_0x4e2d13={_0x90c233:0x14f,_0x488c34:0x2aa},_0x4d21b4={_0x5575bb:0x1ad,_0x4b6329:0x3d9},_0x2e6f0d={_0x486665:0x6b,_0x2ffae0:0x1be,_0x2bdf96:0xe8};function _0x562df3(_0x5c13c4,_0x34c58c,_0x4a9bd9,_0x55f301){return _0x17d408(_0x5c13c4-_0x2e6f0d._0x486665,_0x34c58c-_0x2e6f0d._0x2ffae0,_0x34c58c,_0x5c13c4- -_0x2e6f0d._0x2bdf96);}const _0x3980e3=storagePath(_0x3e4806);function _0x51561b(_0x362892,_0x5f0649,_0x2957d7,_0x4e5ed1){return _0x1a7bb7(_0x362892-_0x4d21b4._0x5575bb,_0x362892-_0x4d21b4._0x4b6329,_0x2957d7-0xe7,_0x4e5ed1);}const _0x481876=_0x3e4806[_0x51561b(_0x30910b._0x1ca2af,_0x30910b._0x10adb8,0x5f5,0x643)][_0x51561b(0x416,_0x30910b._0xb256ae,0x45a,_0x30910b._0x320473)]?.['scopes']?.['join']('\x20'),_0x3b99ad={'client_name':'Nuvin','redirect_uris':[_0x3e4806[_0x51561b(_0x30910b._0x199bd0,_0x30910b._0x80abc4,_0x30910b._0x1b9c10,0x40a)]],'grant_types':[_0x51561b(0x3ff,0x391,0x4d3,_0x30910b._0x4a6604),_0x51561b(_0x30910b._0x22c853,_0x30910b._0x301cf9,_0x30910b._0x1efd14,_0x30910b._0x16e68b)],'response_types':[_0x562df3(_0x30910b._0x29a9fd,_0x30910b._0x2a8f3d,0xe3,_0x30910b._0x1e3add)],'token_endpoint_auth_method':'client_secret_post',..._0x481876?{'scope':_0x481876}:{}};return{'clientMetadataUrl':_0x3e4806[_0x51561b(_0x30910b._0x28380f,_0x30910b._0x2f5f40,_0x30910b._0x1647cb,_0x30910b._0x33c65a)]['oauth']?.[_0x562df3(0x21d,0x218,_0x30910b._0x3250ec,_0x30910b._0x41ce87)],get 'redirectUrl'(){const _0x53ec05={_0x20c291:0x1a2,_0x4e3884:0x130,_0x369dce:0x4};function _0x2a49d9(_0x36cc94,_0x59afe2,_0x15b701,_0x250387){return _0x51561b(_0x250387- -_0x53ec05._0x20c291,_0x59afe2-_0x53ec05._0x4e3884,_0x15b701-_0x53ec05._0x369dce,_0x59afe2);}return _0x3e4806[_0x2a49d9(0x32f,0x290,_0x4e2d13._0x90c233,_0x4e2d13._0x488c34)];},get 'clientMetadata'(){return _0x3b99ad;},async 'state'(){const _0x2abd2b={_0x1839b5:0xc8,_0x1094a0:0x1d5},_0x3ce356=await readStore(_0x3980e3);if(_0x3ce356[_0x17c653(-_0x44222d._0x12b462,-0xca,-_0x44222d._0x3e30c1,0x83)])return _0x3ce356[_0x17c653(-0xc,-0xca,-0x23b,-0x16b)];const _0x29d915=_0xa29e9();function _0x527765(_0x294347,_0xfbb1b6,_0x1df0d5,_0x48c5ba){return _0x562df3(_0x294347- -_0x47032e._0x3ff2e8,_0x1df0d5,_0x1df0d5-0x10e,_0x48c5ba-0x1ee);}function _0x17c653(_0xe00655,_0x1fec46,_0x314fee,_0x30c76c){return _0x51561b(_0x1fec46- -_0x2d2a76._0x3923cd,_0x1fec46-_0x2d2a76._0x3d674d,_0x314fee-0x1dd,_0x30c76c);}return await updateStore(_0x3980e3,_0x1ceac1=>{function _0x1874c2(_0x19ee36,_0x2f713c,_0x455a1a,_0x183358){return _0x527765(_0x2f713c-0x2e2,_0x2f713c-_0x2abd2b._0x1839b5,_0x455a1a,_0x183358-_0x2abd2b._0x1094a0);}_0x1ceac1[_0x1874c2(_0x27c9b2._0x546358,0x201,_0x27c9b2._0x1c87b9,_0x27c9b2._0x2d1519)]=_0x29d915;}),_0x29d915;},async 'clientInformation'(){return(await readStore(_0x3980e3))['clientInformation'];},async 'saveClientInformation'(_0x2fa0b2){const _0x5c9409={_0x6b915b:0x7d};await updateStore(_0x3980e3,_0x541f98=>{function _0x5aed6e(_0xd1aed8,_0x375033,_0x37b1f1,_0x4d3c80){return _0x2414(_0x37b1f1-_0x5c9409._0x6b915b,_0xd1aed8);}_0x541f98[_0x5aed6e(0x2d2,_0x62284d._0x4d87b1,_0x62284d._0x21988a,0x1ee)]=_0x2fa0b2;});},async 'tokens'(){const _0x3d69a6={_0x342fa9:0xf3};function _0x822c8b(_0x4e3aed,_0x48a6b2,_0x3deed3,_0x39b319){return _0x562df3(_0x39b319-0x112,_0x3deed3,_0x3deed3-_0x3d69a6._0x342fa9,_0x39b319-0x7e);}return(await readStore(_0x3980e3))[_0x822c8b(0x67,0xaa,_0x3184c8._0x546422,0x1bd)];},async 'saveTokens'(_0x15e491){const _0x8033f2={_0x505e2a:0x16,_0x15e6f4:0x4,_0x3ced02:0xc0};await updateStore(_0x3980e3,_0x526a48=>{const _0x1e048a={_0x5cda8e:0x1d1};function _0x5639e4(_0x154e4c,_0x49cc86,_0x271c90,_0x11c8fc){return _0x2414(_0x49cc86- -_0x1e048a._0x5cda8e,_0x154e4c);}_0x526a48[_0x5639e4(-0x4,_0x8033f2._0x505e2a,-_0x8033f2._0x15e6f4,-_0x8033f2._0x3ced02)]=_0x15e491;});},async 'redirectToAuthorization'(_0x5c512a){const _0x882ea2={_0x8896cb:0x188,_0x196cbb:0xcb};function _0x5c066(_0x422955,_0x10cacc,_0xe32b84,_0x36795e){return _0x51561b(_0x36795e- -_0x882ea2._0x8896cb,_0x10cacc-_0x882ea2._0x196cbb,_0xe32b84-0x174,_0x10cacc);}await _0x3e4806[_0x5c066(_0x31d1e3._0x4f0aa2,0x326,0x494,0x3ec)](_0x5c512a);},async 'saveCodeVerifier'(_0x43e1f6){const _0x35f2db={_0x401287:0x222};await updateStore(_0x3980e3,_0x46cc8d=>{function _0x58051e(_0x2d3325,_0x464074,_0x594f1c,_0x40dc95){return _0x2414(_0x594f1c- -_0x35f2db._0x401287,_0x2d3325);}_0x46cc8d[_0x58051e(-_0xef38bb._0x5d126c,-_0xef38bb._0x78495f,-0x107,-0x6)]=_0x43e1f6;});},async 'codeVerifier'(){const _0x159b1c=(await readStore(_0x3980e3))['codeVerifier'];if(!_0x159b1c)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x159b1c;},async 'invalidateCredentials'(_0x27a2b1){const _0x53079e={_0x674682:0xa4,_0x255cf7:0x1ed,_0x474673:0x1e8,_0x321562:0xda,_0x10c09c:0x6e,_0x30a0b6:0x5e,_0x2539f7:0x73,_0x55e5e4:0x255,_0x13dbad:0x1f4,_0x459907:0x14e,_0x49271b:0x211,_0x5eb71f:0x1e4,_0xa8156e:0xe8},_0x55f0e9={_0x1fb124:0x27d};await updateStore(_0x3980e3,_0x22a7f2=>{(_0x27a2b1===_0x13b6c0(_0x53079e._0x674682,0x129,0x264,0x1a0)||_0x27a2b1==='client')&&(_0x22a7f2[_0x13b6c0(_0x53079e._0x255cf7,_0x53079e._0x474673,_0x53079e._0x474673,0x204)]=void 0x0);function _0x5b23ac(_0x3113e8,_0x1a18f3,_0x128633,_0x5b0a2a){return _0x2414(_0x1a18f3- -_0x55f0e9._0x1fb124,_0x3113e8);}(_0x27a2b1==='all'||_0x27a2b1==='tokens')&&(_0x22a7f2['tokens']=void 0x0);function _0x13b6c0(_0x1fa646,_0x3c5c5e,_0x2102d7,_0x178be5){return _0x2414(_0x3c5c5e- -0xbd,_0x1fa646);}(_0x27a2b1==='all'||_0x27a2b1===_0x5b23ac(-_0x53079e._0x321562,0x7e,0xd6,0xb6))&&(_0x22a7f2[_0x13b6c0(_0x53079e._0x10c09c,_0x53079e._0x30a0b6,-0xcd,-_0x53079e._0x2539f7)]=void 0x0,_0x22a7f2[_0x5b23ac(-_0x53079e._0x55e5e4,-_0x53079e._0x13dbad,-0x240,-0xa1)]=void 0x0),(_0x27a2b1==='all'||_0x27a2b1===_0x5b23ac(-_0x53079e._0x459907,-0xdb,-0x1af,-_0x53079e._0x49271b))&&(_0x22a7f2[_0x13b6c0(_0x53079e._0x5eb71f,_0x53079e._0xa8156e,0x18a,0x91)]=void 0x0);});},async 'saveDiscoveryState'(_0x456552){const _0x2fd6ec={_0x30528c:0x4ec};await updateStore(_0x3980e3,_0x21be71=>{const _0x31c206={_0x5c61db:0x29e};function _0x581751(_0x27fc74,_0x5a70ab,_0x580c09,_0x3b7d64){return _0x2414(_0x3b7d64-_0x31c206._0x5c61db,_0x580c09);}_0x21be71[_0x581751(0x324,0x52f,_0x2fd6ec._0x30528c,0x443)]=_0x456552;});},async 'discoveryState'(){function _0x317aa3(_0x234ea5,_0x26226e,_0x2ecead,_0x3123d0){return _0x51561b(_0x234ea5- -0x340,_0x26226e-_0x1359dc._0x394cad,_0x2ecead-0x112,_0x26226e);}return(await readStore(_0x3980e3))[_0x317aa3(0x15e,0x9c,_0xa948b3._0x1fceab,_0xa948b3._0x78b496)];}};}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(_0x466258,_0x37547a){const _0x4b3674={_0x126ec9:0x1a2,_0x384a1f:0x14e},_0x3bcc75={_0x13ac27:0x1b4,_0x2d263a:0x420},_0x3df7fa={_0x4575d6:0x185};function _0xc85cd5(_0x37f8d0,_0x5c4d28,_0x24f248,_0x2affb1){return _0x17d408(_0x37f8d0-_0x3df7fa._0x4575d6,_0x5c4d28-0x19a,_0x5c4d28,_0x37f8d0- -0x1ff);}function _0x4be6bc(_0x2215aa,_0xe59cb1,_0x4826b5,_0x1a5fb2){return _0x1a7bb7(_0x2215aa-_0x3bcc75._0x13ac27,_0x4826b5-_0x3bcc75._0x2d263a,_0x4826b5-0x139,_0x2215aa);}const _0x289880=_0x14c6d8=>_0x14c6d8[_0x4be6bc(0x461,0x625,0x5a0,0x561)](/[^a-zA-Z0-9_]+/g,'_')[_0x4be6bc(0x53e,0x5ea,0x5a0,0x466)](/^_+|_+$/g,'');return _0xc85cd5(-_0x4b3674._0x126ec9,-_0x4b3674._0x384a1f,-0x285,-0x302)+_0x289880(_0x466258)+'_'+_0x289880(_0x37547a);}function isObject(_0xd5f241){const _0x2fc956={_0x5417fb:0x26b,_0x360ae5:0x26a,_0x57b275:0x14f},_0x44dcf8={_0xa02ef3:0x159,_0x2752db:0x2d2},_0x13e649={_0x10fe10:0x1a3,_0x2594c1:0xa0};function _0x4ca554(_0x194b50,_0x33e718,_0x36002c,_0x14ec03){return _0x17d408(_0x194b50-_0x13e649._0x10fe10,_0x33e718-0x1b1,_0x33e718,_0x36002c- -_0x13e649._0x2594c1);}function _0x2dcd10(_0x421e52,_0x47490c,_0x4c8753,_0x3ad54a){return _0x17d408(_0x421e52-0x9f,_0x47490c-_0x44dcf8._0xa02ef3,_0x47490c,_0x3ad54a- -_0x44dcf8._0x2752db);}return typeof _0xd5f241===_0x4ca554(_0x2fc956._0x5417fb,0x122,_0x2fc956._0x360ae5,_0x2fc956._0x57b275)&&_0xd5f241!==null&&!Array[_0x2dcd10(-0x2,0x38,0x36,-0x38)](_0xd5f241);}function toSupportedSchema(_0xa827c){const _0x50c73a={_0x2d9059:0xf6,_0x17d22d:0xd,_0x4e060a:0x5ec,_0x402159:0x4da,_0x272e27:0x4d0,_0x4ba036:0x113,_0x5261b0:0x169,_0x22dd76:0x2eb,_0x285801:0x3a5,_0x5647a:0x487,_0x53a6c9:0x482,_0x59bb76:0x42a,_0x19c3c1:0x4d6,_0x28f91d:0x4e9,_0x54d576:0x43f,_0x4e23ec:0xc6,_0x371645:0x16a,_0x2ef5c5:0x22f,_0x30348f:0x41b,_0x567be8:0x36a,_0x2d12ab:0x3c1,_0x23e47c:0x237,_0x5df679:0x383,_0x5737a7:0x41,_0xdf9cc8:0x158},_0x77baee={_0x225d36:0x48,_0x181b64:0x66,_0x2653a0:0x300},_0x1c642f={_0x5a97ec:0x12};if(!isObject(_0xa827c))return void 0x0;if(_0xa827c['type']===_0x372b81(-_0x50c73a._0x2d9059,_0x50c73a._0x17d22d,-0x182,-0x120))return{'type':_0x64de8c(_0x50c73a._0x4e060a,_0x50c73a._0x402159,0x4b6,_0x50c73a._0x272e27)};function _0x372b81(_0x30c540,_0x12d892,_0x4fbf38,_0x45bde3){return _0x17d408(_0x30c540-0x2c,_0x12d892-_0x1c642f._0x5a97ec,_0x12d892,_0x45bde3- -0x2f0);}if(_0xa827c[_0x372b81(-0x34,-_0x50c73a._0x4ba036,-0x282,-_0x50c73a._0x5261b0)]===_0x64de8c(_0x50c73a._0x22dd76,0x4bf,0x3e1,0x3a2)||_0xa827c[_0x64de8c(_0x50c73a._0x285801,0x4a1,0x5b6,_0x50c73a._0x5647a)]===_0x64de8c(_0x50c73a._0x53a6c9,0x5ae,0x4ea,0x53b))return{'type':_0x372b81(-0x2c6,-0x338,-0x150,-0x24e)};function _0x64de8c(_0x510006,_0x161db8,_0xf3b3cc,_0x310ed5){return _0x17d408(_0x510006-_0x77baee._0x225d36,_0x161db8-_0x77baee._0x181b64,_0xf3b3cc,_0x310ed5-_0x77baee._0x2653a0);}if(_0xa827c[_0x64de8c(_0x50c73a._0x59bb76,0x48c,_0x50c73a._0x19c3c1,_0x50c73a._0x5647a)]==='boolean')return{'type':'boolean'};if(_0xa827c[_0x64de8c(_0x50c73a._0x28f91d,_0x50c73a._0x54d576,0x58b,0x487)]===_0x372b81(-_0x50c73a._0x4e23ec,-0x179,-_0x50c73a._0x371645,-_0x50c73a._0x2ef5c5))return{'type':_0x64de8c(0x378,_0x50c73a._0x30348f,_0x50c73a._0x567be8,_0x50c73a._0x2d12ab),'items':toSupportedSchema(_0xa827c[_0x64de8c(0x393,0x4f3,_0x50c73a._0x23e47c,_0x50c73a._0x5df679)])??{'type':_0x372b81(_0x50c73a._0x5737a7,-0x87,-_0x50c73a._0xdf9cc8,-0x120)}};if(_0xa827c['type']==='object')return toNuvinToolSchema(_0xa827c);return void 0x0;}function toNuvinToolSchema(_0x310d13){const _0x557a85={_0x5f1971:0x536,_0x4b54a8:0x622,_0x4bf536:0x5a1,_0x3c1ded:0x4b2,_0x4f35ef:0x696,_0x3b51c6:0x799,_0x248030:0x4cc,_0x508a40:0x542,_0x32f20b:0x402,_0xf6c210:0x534,_0x356fec:0x4d6,_0x53a025:0x442,_0x231b3c:0x28a,_0x5c74ef:0x2b1,_0x350456:0x363,_0x42e4ab:0x22a,_0x1387c7:0x5f7,_0x492852:0x5aa,_0x56d65d:0x4f7,_0x21750d:0x41c,_0x3c1689:0x4b2,_0x592bab:0x4dd},_0x355d0c={_0x1acfab:0x1a8},_0x5dbcfd={_0x4428d3:0x1ac};function _0x360b14(_0x2b7db,_0x4a056c,_0xc1d0d5,_0x4fbc97){return _0x17d408(_0x2b7db-_0x5dbcfd._0x4428d3,_0x4a056c-0xc5,_0x4fbc97,_0x2b7db-0x37d);}if(!isObject(_0x310d13)||_0x310d13[_0x360b14(0x504,_0x557a85._0x5f1971,0x56c,_0x557a85._0x4b54a8)]!=='object')return{'type':_0x314419(0x4ec,0x45c,_0x557a85._0x4bf536,_0x557a85._0x3c1ded),'properties':{}};const _0x2d16b3={},_0x199caf=isObject(_0x310d13['properties'])?_0x310d13[_0x360b14(_0x557a85._0x4f35ef,0x7cd,0x5b9,_0x557a85._0x3b51c6)]:{};for(const [_0xfd81cf,_0x29977f]of Object[_0x360b14(_0x557a85._0x248030,_0x557a85._0x508a40,0x5b6,_0x557a85._0x32f20b)](_0x199caf)){const _0x533ab1=toSupportedSchema(_0x29977f);if(_0x533ab1)_0x2d16b3[_0xfd81cf]=_0x533ab1;}function _0x314419(_0x4d010e,_0xb6f9ab,_0x313302,_0x3d0b82){return _0x17d408(_0x4d010e-0x1,_0xb6f9ab-0x10a,_0x313302,_0x3d0b82-_0x355d0c._0x1acfab);}const _0x22d6ee=Array[_0x314419(_0x557a85._0xf6c210,0x546,_0x557a85._0x356fec,_0x557a85._0x53a025)](_0x310d13[_0x314419(_0x557a85._0x231b3c,0x2ac,0x13f,0x22a)])?_0x310d13[_0x314419(0xf7,_0x557a85._0x5c74ef,_0x557a85._0x350456,_0x557a85._0x42e4ab)][_0x360b14(_0x557a85._0x1387c7,_0x557a85._0x492852,0x486,0x760)](_0x2b3a21=>typeof _0x2b3a21===_0x314419(0x48e,0x437,0x2eb,0x378)):void 0x0;return _0x22d6ee?.['length']?{'type':_0x314419(0x60a,_0x557a85._0x56d65d,_0x557a85._0x21750d,_0x557a85._0x3c1689),'properties':_0x2d16b3,'required':_0x22d6ee}:{'type':_0x314419(_0x557a85._0x592bab,0x624,0x4d9,_0x557a85._0x3c1ded),'properties':_0x2d16b3};}function isJsonObject(_0x40eac4){const _0x289b5f={_0x26bd72:0x4c3,_0xedceb6:0x41e,_0x2b829f:0x404},_0x47db55={_0x130b82:0x12f,_0x2d4bd4:0x8a},_0x48c68e={_0x2058a6:0x1d2,_0x53f7ac:0x1f6};function _0xa3a40d(_0xb62b3b,_0x509ee8,_0x48f3a8,_0x3a2964){return _0x1a7bb7(_0xb62b3b-_0x48c68e._0x2058a6,_0x509ee8-_0x48c68e._0x53f7ac,_0x48f3a8-0x163,_0x3a2964);}function _0x4ecc0c(_0x5e7b8c,_0x581bd7,_0x330174,_0x5b3a57){return _0x17d408(_0x5e7b8c-_0x47db55._0x130b82,_0x581bd7-_0x47db55._0x2d4bd4,_0x330174,_0x581bd7-0xf2);}return typeof _0x40eac4===_0x4ecc0c(_0x289b5f._0x26bd72,0x3fc,0x549,_0x289b5f._0xedceb6)&&_0x40eac4!==null&&!Array[_0xa3a40d(0x4d2,_0x289b5f._0x2b829f,0x2b6,0x2f2)](_0x40eac4);}function formatMcpContent(_0x416843){const _0x19d67a={_0x5577de:0x80,_0x84e6ca:0x133,_0x1bb1fc:0x50,_0x39e7e0:0x1ed,_0x2ec4d5:0xeb,_0x10738f:0x24a,_0x479793:0x7e,_0x557cf8:0xc4,_0x3ff208:0x5e,_0x324880:0x9c,_0x163709:0x18f,_0x456911:0x19f,_0x4d0faa:0xc3},_0x195b9c={_0x361293:0x7b,_0x6790d9:0x160,_0x225fb6:0x6b,_0x44b595:0xa6,_0x26ae24:0x149,_0x411373:0x196},_0x33013e={_0x13dca9:0xbb},_0x27cb04={_0x4900fa:0x16b,_0x30b71d:0x33},_0x4aa6b6={_0x171662:0x94,_0x37969e:0x135};function _0x4a636d(_0x33cdda,_0x506410,_0x587fac,_0x287087){return _0x1a7bb7(_0x33cdda-_0x4aa6b6._0x171662,_0x33cdda- -0x1,_0x587fac-_0x4aa6b6._0x37969e,_0x587fac);}const _0x47e566=Array[_0x4e3215(0x311,0xec,0x241,0x36f)](_0x416843[_0x4a636d(-0x12,_0x19d67a._0x5577de,-0x13d,0x32)])?_0x416843['content']:[];function _0x4e3215(_0x4620a9,_0x4eb1db,_0x39acd7,_0x552dfc){return _0x1a7bb7(_0x4620a9-_0x27cb04._0x4900fa,_0x39acd7-_0x27cb04._0x30b71d,_0x39acd7-0x1d4,_0x552dfc);}const _0x5a1919=_0x47e566[_0x4a636d(_0x19d67a._0x84e6ca,_0x19d67a._0x1bb1fc,0x16b,0xb4)](_0x37a29f=>{const _0x52ac7d={_0x5072ad:0x235,_0x2e9df1:0x35,_0x44d3b2:0x15a};if(!isObject(_0x37a29f))return'';if(_0x37a29f[_0x4e6b89(-_0x195b9c._0x361293,-0x13b,-_0x195b9c._0x6790d9,-0x104)]===_0x4e6b89(-_0x195b9c._0x225fb6,-0x8,0x79,0x7b)&&typeof _0x37a29f['text']==='string')return _0x37a29f['text'];function _0x4e6b89(_0x3e21dd,_0x3c0bb2,_0x2b76dd,_0x56f979){return _0x4a636d(_0x3c0bb2- -_0x52ac7d._0x5072ad,_0x3c0bb2-_0x52ac7d._0x2e9df1,_0x3e21dd,_0x56f979-_0x52ac7d._0x44d3b2);}function _0x1d8a98(_0xb3251f,_0x383602,_0x352321,_0x330f28){return _0x4a636d(_0x383602- -0x11d,_0x383602-0xf4,_0x330f28,_0x330f28-_0x33013e._0x13dca9);}return JSON[_0x4e6b89(-0x1a8,-_0x195b9c._0x44b595,-_0x195b9c._0x26ae24,-_0x195b9c._0x411373)](_0x37a29f);})[_0x4a636d(_0x19d67a._0x39e7e0,0x74,_0x19d67a._0x2ec4d5,0x107)](_0x4b028a=>_0x4b028a[_0x4a636d(0x7e,0x174,-0xb4,0x1e6)]>0x0)[_0x4e3215(_0x19d67a._0x10738f,0x71,0xdd,0x40)]('\x0a');if(_0x5a1919[_0x4a636d(_0x19d67a._0x479793,_0x19d67a._0x557cf8,_0x19d67a._0x3ff208,_0x19d67a._0x324880)]>0x0)return _0x5a1919;return JSON[_0x4a636d(_0x19d67a._0x163709,_0x19d67a._0x456911,0x48,_0x19d67a._0x4d0faa)](_0x416843,null,0x2);}function createMcpTool(_0x1451c2){const _0x57498d={_0x344323:0x162,_0x3db545:0x11c,_0x2cb660:0x1cb,_0x3870bd:0x101,_0x11e53a:0xc5,_0x2839bc:0x3f8,_0x168063:0x2e9,_0x18667e:0x314,_0x13f506:0x3ef,_0x25ead2:0x3b,_0x437c9b:0xd7,_0x286690:0x10,_0x3df3c7:0x116,_0x2301ef:0x25e,_0x472c8f:0x22d,_0x55c6d4:0x41b},_0x1ef144={_0x54839a:0x81,_0x2dea84:0xe7,_0x1c82ab:0x7b,_0x239557:0x82,_0x1bee2d:0xaa,_0x123adf:0x152,_0x54bcb5:0x256,_0x1e1a77:0x37d,_0x159d96:0x335,_0x48c370:0x1f0,_0x452de5:0x7f,_0x38f81c:0x2e5,_0x2a9054:0x1dd,_0xe4d04e:0x157,_0x401cf3:0x2d2},_0x4c750e={_0x42b4f4:0x143,_0x1b8435:0x188},_0x10f513={_0x38fb6e:0x2c2};function _0x2f062b(_0x3f5c0b,_0x224020,_0x127209,_0x54f5a0){return _0x1a7bb7(_0x3f5c0b-0x6,_0x224020- -_0x10f513._0x38fb6e,_0x127209-0x32,_0x3f5c0b);}const _0x4112fb=createMcpToolName(_0x1451c2['serverName'],_0x1451c2[_0x43b3ec(_0x57498d._0x344323,0x1d2,_0x57498d._0x3db545,0x228)][_0x43b3ec(_0x57498d._0x2cb660,0xe5,_0x57498d._0x3870bd,_0x57498d._0x11e53a)]);function _0x43b3ec(_0x4ea946,_0x41d368,_0x2f18df,_0x5098c0){return _0x1a7bb7(_0x4ea946-0x174,_0x2f18df-_0x4c750e._0x42b4f4,_0x2f18df-_0x4c750e._0x1b8435,_0x4ea946);}return defineTool({'name':_0x4112fb,'description':_0x1451c2[_0x2f062b(-_0x57498d._0x2839bc,-_0x57498d._0x168063,-0x1fd,-_0x57498d._0x18667e)][_0x2f062b(-0x3fc,-0x311,-_0x57498d._0x13f506,-0x381)]??_0x2f062b(-_0x57498d._0x25ead2,-0x72,0xdd,_0x57498d._0x437c9b)+_0x1451c2['tool']['name']+_0x2f062b(-_0x57498d._0x286690,-_0x57498d._0x3df3c7,-0x4a,-0x171)+_0x1451c2[_0x2f062b(-0x269,-0x13d,-0x296,-_0x57498d._0x2301ef)],'inputSchema':toNuvinToolSchema(_0x1451c2[_0x2f062b(-0x1d0,-0x2e9,-0x211,-0x1f0)][_0x43b3ec(0x2dd,_0x57498d._0x472c8f,0x333,_0x57498d._0x55c6d4)]),async *'execute'(_0x5dc910){const _0x4456d6={_0x4c51ac:0x113,_0x9a919a:0xc1,_0x51b69f:0xd1},_0x3cafb6=await _0x1451c2[_0x282e43(-_0x1ef144._0x54839a,0x51,-_0x1ef144._0x2dea84,-_0x1ef144._0x1c82ab)][_0x34b351(0x2ab,0x265,0x2e2,0x35f)]({'name':_0x1451c2['tool']['name'],'arguments':isJsonObject(_0x5dc910)?_0x5dc910:{}});function _0x34b351(_0x5887d9,_0xc4fbcb,_0x53776a,_0x109087){return _0x43b3ec(_0xc4fbcb,_0xc4fbcb-_0x4456d6._0x4c51ac,_0x53776a-_0x4456d6._0x9a919a,_0x109087-_0x4456d6._0x51b69f);}function _0x282e43(_0x123bb6,_0x3a9f62,_0x2cad59,_0x5e7b30){return _0x43b3ec(_0x5e7b30,_0x3a9f62-0xbc,_0x2cad59- -0x372,_0x5e7b30-0x0);}if(_0x3cafb6['isError'])throw new ToolExecutionError(formatMcpContent(_0x3cafb6),{'serverName':_0x1451c2[_0x282e43(-_0x1ef144._0x239557,-0x114,-_0x1ef144._0x1bee2d,-0x208)],'toolName':_0x1451c2[_0x282e43(-0x237,-_0x1ef144._0x123adf,-_0x1ef144._0x54bcb5,-_0x1ef144._0x1e1a77)][_0x34b351(_0x1ef144._0x159d96,0x2b9,0x1c2,0x196)]});return yield createToolOutput(formatMcpContent(_0x3cafb6),{'serverName':_0x1451c2[_0x282e43(0x8f,-_0x1ef144._0x48c370,-0xaa,-_0x1ef144._0x452de5)],'toolName':_0x1451c2[_0x34b351(0x313,_0x1ef144._0x38f81c,_0x1ef144._0x2a9054,_0x1ef144._0xe4d04e)][_0x282e43(-0x34d,-_0x1ef144._0x401cf3,-0x271,-0x1b8)],'result':_0x3cafb6}),void 0x0;}});}function resolvePrefix(_0x404fbe,_0x45c6a7){return _0x45c6a7['prefix']??_0x404fbe;}function buildMcpHttpHeaders(_0x3f0ac8){const _0x51297c={_0x2e911d:0x236,_0x55a0ec:0x4f3,_0x56d74d:0x51c,_0x287527:0x6e,_0x110478:0x120,_0x23cc85:0x187,_0xabebdd:0xfe,_0x334087:0x3e4,_0x11939f:0x9a,_0xb0a614:0x5af,_0x25eeec:0x601,_0x33e674:0x4e4,_0x4f90a1:0x51c,_0xfa6691:0x204,_0x395e50:0x183,_0x324e69:0x4fa,_0xe9f4d9:0x4cf,_0x35566f:0x517,_0x2d8e55:0x3f8,_0x3d658d:0x384,_0x3fe56b:0x502,_0x2b16fa:0x44c},_0x22d344={_0xd71ffd:0x164,_0x583715:0x6a},_0x4a9fd1={_0x28f666:0x83};function _0x320bf9(_0x4d0818,_0x2e1d70,_0x1914db,_0x500103){return _0x17d408(_0x4d0818-0x33,_0x2e1d70-_0x4a9fd1._0x28f666,_0x1914db,_0x2e1d70- -0x2a7);}const _0x495a8={..._0x3f0ac8[_0x320bf9(-0x217,-0x1f7,-_0x51297c._0x2e911d,-0x26c)]??{}};_0x3f0ac8[_0x31d745(_0x51297c._0x55a0ec,0x575,_0x51297c._0x56d74d,0x430)]?.[_0x320bf9(-_0x51297c._0x287527,-0x120,-_0x51297c._0x110478,0x3a)]==='bearer'&&_0x3f0ac8[_0x320bf9(-0x17d,-0xcc,-_0x51297c._0x23cc85,-_0x51297c._0xabebdd)][_0x31d745(0x402,0x551,_0x51297c._0x334087,0x2c8)]&&_0x495a8[_0x320bf9(0x13a,0x19,-_0x51297c._0x11939f,0x105)]===void 0x0&&(_0x495a8[_0x31d745(0x4a5,_0x51297c._0xb0a614,_0x51297c._0x25eeec,_0x51297c._0x33e674)]='Bearer\x20'+_0x3f0ac8[_0x31d745(0x425,0x3c0,_0x51297c._0x4f90a1,0x50e)][_0x320bf9(-0x31d,-_0x51297c._0xfa6691,-0xe2,-_0x51297c._0x395e50)]);function _0x31d745(_0xfca50c,_0x69e303,_0x3125ec,_0x87c986){return _0x17d408(_0xfca50c-_0x22d344._0xd71ffd,_0x69e303-_0x22d344._0x583715,_0x69e303,_0x3125ec-0x341);}return Object[_0x31d745(_0x51297c._0x324e69,_0x51297c._0xe9f4d9,_0x51297c._0x35566f,_0x51297c._0x2d8e55)](_0x495a8)[_0x31d745(_0x51297c._0x3d658d,_0x51297c._0x3fe56b,_0x51297c._0x2b16fa,0x4cd)]>0x0?_0x495a8:void 0x0;}function getErrorMessage(_0x5c3ce3){const _0x2694de={_0x5ced4b:0x39a,_0x5654ce:0x45f,_0x24e7c0:0x4ca},_0x24fafa={_0x2d2220:0xa5,_0x289300:0x19d};function _0x2a2b1d(_0x39cb7e,_0xb1e0e2,_0x47fc11,_0x335627){return _0x1a7bb7(_0x39cb7e-_0x24fafa._0x2d2220,_0x47fc11-0x263,_0x47fc11-_0x24fafa._0x289300,_0x335627);}return _0x5c3ce3 instanceof Error?_0x5c3ce3[_0x2a2b1d(0x3cb,_0x2694de._0x5ced4b,_0x2694de._0x5654ce,_0x2694de._0x24e7c0)]:String(_0x5c3ce3);}function isUnauthorizedError(_0x1a6bf6){const _0x31e6d0={_0x573965:0xd3,_0x32a6b7:0x2ba,_0x526139:0x2e6,_0x18b977:0x1ab,_0xfdf04b:0x260};function _0x5d7b4a(_0x55f5b0,_0x5c7353,_0x5dd701,_0x18ec3f){return _0x1a7bb7(_0x55f5b0-0xc9,_0x5dd701-0x2a9,_0x5dd701-0x18c,_0x55f5b0);}function _0x592719(_0x2ffbb4,_0x3c6892,_0x2d84a4,_0x2eda48){return _0x17d408(_0x2ffbb4-0x123,_0x3c6892-0x18c,_0x3c6892,_0x2d84a4-0x109);}return _0x1a6bf6 instanceof Error&&_0x1a6bf6[_0x592719(0x2d0,_0x31e6d0._0x573965,0x1cf,_0x31e6d0._0x32a6b7)][_0x5d7b4a(_0x31e6d0._0x526139,_0x31e6d0._0x18b977,0x267,0x3d5)]===_0x5d7b4a(0x2eb,0x21c,_0x31e6d0._0xfdf04b,0x25f);}async function connectMcpServer(_0x4eb8ff,_0x28a171,_0x3eb2e6){const _0x14697a={_0x2da489:0x279,_0x17c101:0x3d4,_0x7855ba:0x23f,_0x41d105:0x625,_0x1e044a:0x74e,_0x4300bd:0x35c,_0x4c8538:0x3e1,_0x467f32:0x31a,_0x554da3:0x247,_0x36c456:0x149,_0x4fc0d7:0x131,_0x46d564:0x4da,_0x99fdf:0x57d,_0x285aeb:0x3c7,_0x24cadd:0x368,_0x333d57:0x3c7,_0x5eb5e3:0x312,_0x127662:0x26b,_0x375a6a:0x46a,_0x36b7d6:0x50c,_0x3522a8:0x9a,_0x3d16fc:0x18b,_0x431f4a:0x245,_0x5642cc:0x2c1,_0x5854b8:0x42c,_0x3cee79:0x2b6,_0x103311:0x3fd,_0x59a1c9:0x44b,_0x49b8bb:0x44c,_0xd774df:0x2ee,_0x451a5d:0x2c1,_0x3d11ca:0x46d,_0x6330d5:0x71c,_0x522a92:0x4ca,_0x17c47a:0x535,_0x377994:0x35d,_0x1d1888:0x340,_0x4c7ff5:0xb7,_0x38e875:0x57,_0x5d4b51:0xa,_0x5d1267:0x6,_0x136a1d:0xd3,_0x199125:0x2d7,_0x115c95:0x40f,_0x1bdfdf:0x569,_0x971629:0x2dc,_0xdd0f78:0x21a},_0x311f79={_0x704e42:0x369,_0x1cf7fb:0x37b},_0x5323de={_0x2d883f:0x2b5},_0x349b3f={_0x2c81d9:0xab,_0x435ad8:0x231},_0x3ad546={_0x491399:0x194},_0x390813={_0x371772:0x12b,_0xa56f9f:0x3,_0x15d15d:0x128},_0x5eeaf8={_0x1e83f5:0x80,_0x2be831:0x38a,_0x3e19ce:0xd4},_0x3512cd={_0xfc1f5:0x1b4,_0x5342b9:0xd2,_0x5ab59a:0x90,_0x240349:0x156,_0x54ca0e:0x1ab,_0x4045e3:0x14a,_0x1392ac:0x1fd,_0x50a48c:0x55},_0x52bb1b={_0x16cd26:0x231,_0x148425:0x18e,_0x3b771f:0x5a},_0x251fb6={_0x56e4b4:0xcb,_0x3567bc:0x38a},_0x4bc287=new Client({'name':'nuvin','version':_0x33d585(-_0x14697a._0x2da489,-0x129,-_0x14697a._0x17c101,-_0x14697a._0x7855ba)});function _0x33d585(_0x74d4fa,_0x5f1f13,_0x42617d,_0x3ee909){return _0x17d408(_0x74d4fa-0x124,_0x5f1f13-_0x251fb6._0x56e4b4,_0x3ee909,_0x74d4fa- -_0x251fb6._0x3567bc);}_0x4bc287['onerror']=_0x41ec6a=>{function _0x5481c5(_0xaaa858,_0x4ade2b,_0x1ea3a8,_0x4767ac){return _0x33d585(_0x4767ac-0x23b,_0x4ade2b-0x14c,_0x1ea3a8-0x148,_0x4ade2b);}function _0x4499e4(_0x474d64,_0x3c7b1f,_0x59bcd5,_0x341aa7){return _0x33d585(_0x3c7b1f-_0x52bb1b._0x16cd26,_0x3c7b1f-_0x52bb1b._0x148425,_0x59bcd5-_0x52bb1b._0x3b771f,_0x59bcd5);}console[_0x5481c5(-0x14,_0x3512cd._0xfc1f5,-_0x3512cd._0x5342b9,_0x3512cd._0x5ab59a)]('[MCP\x20'+_0x4eb8ff+_0x5481c5(_0x3512cd._0x240349,_0x3512cd._0x54ca0e,0xe6,_0x3512cd._0x4045e3),_0x41ec6a[_0x5481c5(_0x3512cd._0x1392ac,_0x3512cd._0x50a48c,0x25,0x139)]);};if(_0x28a171[_0x359989(_0x14697a._0x41d105,0x6e6,0x6ed,0x79d)]===_0x359989(0x5ef,_0x14697a._0x1e044a,0x4ec,0x64d)||_0x28a171[_0x359989(_0x14697a._0x4300bd,_0x14697a._0x4c8538,0x2e3,_0x14697a._0x467f32)]){if(!_0x28a171['url'])throw new Error(_0x33d585(-_0x14697a._0x554da3,-0xe8,-_0x14697a._0x36c456,-_0x14697a._0x4fc0d7)+_0x4eb8ff+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x28a171['auth']?.[_0x359989(0x485,_0x14697a._0x46d564,_0x14697a._0x99fdf,0x53f)]===_0x359989(_0x14697a._0x285aeb,0x26e,_0x14697a._0x24cadd,0x475)&&!_0x3eb2e6?.[_0x359989(_0x14697a._0x333d57,_0x14697a._0x5eb5e3,_0x14697a._0x127662,0x534)])throw new Error(_0x359989(0x441,_0x14697a._0x375a6a,_0x14697a._0x36b7d6,0x456)+_0x4eb8ff+_0x33d585(-_0x14697a._0x3522a8,-0xdd,0x14,-_0x14697a._0x3d16fc));const _0x5d3942=buildMcpHttpHeaders(_0x28a171),_0x155ea4=_0x28a171[_0x33d585(-0x1af,-0x1a6,-_0x14697a._0x431f4a,-0x2a0)]?.['type']===_0x33d585(-_0x14697a._0x5642cc,-_0x14697a._0x5854b8,-0x3ab,-0x2c7)&&_0x3eb2e6?.[_0x359989(_0x14697a._0x285aeb,0x4de,0x3bd,0x4aa)]?createMcpOAuthProvider({'serverName':_0x4eb8ff,'callbackUrl':_0x3eb2e6[_0x33d585(-0x2c1,-0x2af,-_0x14697a._0x3cee79,-0x41c)][_0x359989(_0x14697a._0x103311,_0x14697a._0x59a1c9,_0x14697a._0x49b8bb,_0x14697a._0xd774df)],'storageDir':_0x3eb2e6[_0x33d585(-_0x14697a._0x451a5d,-0x229,-0x2a3,-0x32b)][_0x359989(0x5bc,_0x14697a._0x3d11ca,_0x14697a._0x6330d5,_0x14697a._0x522a92)],'config':_0x28a171[_0x359989(0x4d9,0x4b5,0x4ca,_0x14697a._0x17c47a)],'onRedirect':_0x4196b5=>_0x3eb2e6[_0x33d585(-0x2c1,-0x1c4,-0x277,-0x30a)]?.[_0x359989(0x525,0x43e,0x4bd,0x3eb)](_0x4eb8ff,_0x4196b5)}):void 0x0,_0x1216f0=new StreamableHTTPClientTransport(new URL(_0x28a171[_0x359989(0x35c,0x32f,_0x14697a._0x377994,0x39c)]),{'authProvider':_0x155ea4,'requestInit':_0x5d3942?{'headers':_0x5d3942}:void 0x0});await _0x4bc287[_0x359989(0x3ac,0x386,0x342,_0x14697a._0x1d1888)](_0x1216f0);}else{if(!_0x28a171['command'])throw new Error('MCP\x20server\x20'+_0x4eb8ff+_0x33d585(-0x160,-_0x14697a._0x4c7ff5,-_0x14697a._0x38e875,_0x14697a._0x5d4b51));const _0x35bc80=new StdioClientTransport({'command':_0x28a171['command'],'args':_0x28a171[_0x33d585(-0x98,_0x14697a._0x5d1267,_0x14697a._0x136a1d,-0x1a4)]??[],'env':_0x28a171[_0x33d585(-0x1c2,-0x29c,-0xb4,-_0x14697a._0x199125)],'stderr':_0x359989(0x4cd,0x4bc,_0x14697a._0x115c95,_0x14697a._0x1bdfdf)});await _0x4bc287[_0x33d585(-_0x14697a._0x971629,-_0x14697a._0xdd0f78,-0x2b7,-0x222)](_0x35bc80);}function _0x359989(_0x598842,_0x1b2371,_0x3100b9,_0xe18083){return _0x1a7bb7(_0x598842-_0x5eeaf8._0x1e83f5,_0x598842-_0x5eeaf8._0x2be831,_0x3100b9-_0x5eeaf8._0x3e19ce,_0x1b2371);}return{async 'listTools'(){function _0x29e7a3(_0x41c6ab,_0x35530d,_0x1e5220,_0x1e3794){return _0x359989(_0x35530d- -0x42f,_0x1e5220,_0x1e5220-0x79,_0x1e3794-0x1b7);}return await _0x4bc287[_0x29e7a3(-_0x390813._0x371772,-_0x390813._0xa56f9f,_0x390813._0x15d15d,-0xf6)]();},async 'callTool'(_0x50d669){const _0x4505df={_0xafa5e9:0x287};function _0x17c4f2(_0x482224,_0x390239,_0x5745a7,_0x6157cf){return _0x33d585(_0x482224-_0x4505df._0xafa5e9,_0x390239-0x16a,_0x5745a7-0x187,_0x390239);}function _0x5ec120(_0x1a15e5,_0x2e7444,_0xe0424,_0x266e79){return _0x33d585(_0x1a15e5-0x4d9,_0x2e7444-_0x3ad546._0x491399,_0xe0424-0x14f,_0x266e79);}return await _0x4bc287[_0x17c4f2(0x34,0x46,-_0x349b3f._0x2c81d9,0x17b)]({'method':_0x5ec120(0x337,0x2a4,0x488,_0x349b3f._0x435ad8),'params':_0x50d669},CallToolResultSchema);},async 'close'(){function _0xf38e4d(_0x4953c8,_0x3d651c,_0x4b2157,_0x16548d){return _0x359989(_0x3d651c- -_0x5323de._0x2d883f,_0x16548d,_0x4b2157-0x15d,_0x16548d-0x1c8);}await _0x4bc287[_0xf38e4d(_0x311f79._0x704e42,0x263,_0x311f79._0x1cf7fb,0x1b4)]();}};}async function createMcpToolsFromServers(_0x2569a5){const _0x3940f8={_0xfaf8a1:0x2c3,_0x22fe70:0x2a4,_0x308678:0x187,_0x2857e7:0x1aa,_0x59734e:0xf1,_0x4a96d0:0x16f,_0x102607:0xa4,_0xe4f1d1:0x4b,_0x153b2b:0x25e,_0x38196d:0x71,_0x197746:0x1d2,_0x244f5f:0x384,_0x5c0058:0x2df,_0x3b0239:0x25a,_0x4151a6:0x10c,_0x47e6e8:0x69,_0x2e52de:0x11d,_0x211e58:0x1a8,_0x7bfca8:0x239,_0x159ad6:0x170,_0x5408e5:0x83,_0x1b1fa1:0x31,_0xae7847:0x13b,_0x5333ef:0x72,_0x3a74f7:0x2,_0x1c1167:0x3dc,_0x45d1d1:0x2a9,_0xf734f3:0x4f,_0x29a0af:0x41,_0x37e366:0x1a3,_0x42db40:0x26b},_0x31e75d={_0x5d0553:0x3f8},_0x3c7a91={_0x317eb8:0x186},_0x194de8={_0x1ec9d7:0x7c,_0x5dd213:0x50},_0x5953eb=_0x2569a5[_0x5165a2(-0x228,-0x2f1,-_0x3940f8._0xfaf8a1,-_0x3940f8._0x22fe70)]??connectMcpServer,_0xfa6731=[],_0x6021c9={},_0x17b9c5=[];for(const [_0x4a316e,_0x55e88c]of Object[_0x5165a2(-_0x3940f8._0x308678,-_0x3940f8._0x2857e7,-_0x3940f8._0x59734e,-0x195)](_0x2569a5[_0x5165a2(-_0x3940f8._0x4a96d0,-_0x3940f8._0x102607,-0xed,-_0x3940f8._0xe4f1d1)]??{})){if(_0x55e88c[_0x1f3c7f(_0x3940f8._0x153b2b,_0x3940f8._0x38196d,_0x3940f8._0x197746,0xc5)]===![]){_0x6021c9[_0x4a316e]={'status':_0x1f3c7f(_0x3940f8._0x244f5f,_0x3940f8._0x5c0058,_0x3940f8._0x3b0239,0x214)};continue;}try{const _0x4724f0=await _0x5953eb(_0x4a316e,_0x55e88c,_0x2569a5[_0x1f3c7f(_0x3940f8._0x4151a6,-0x87,_0x3940f8._0x47e6e8,_0x3940f8._0x2e52de)]);_0xfa6731['push'](_0x4724f0);const _0x102d9a=await _0x4724f0[_0x5165a2(-_0x3940f8._0x211e58,-0x2e7,-_0x3940f8._0x7bfca8,-_0x3940f8._0x159ad6)]();let _0x22186b=0x0;for(const _0x5ae02a of _0x102d9a[_0x1f3c7f(0x55,0x192,_0x3940f8._0x5408e5,0x9b)]){const _0x316abb=_0x2569a5[_0x5165a2(-_0x3940f8._0x1b1fa1,-_0x3940f8._0xae7847,_0x3940f8._0x5333ef,_0x3940f8._0x3a74f7)]?.[_0x4a316e]?.[_0x5ae02a[_0x5165a2(-0x28c,-0x2f3,-_0x3940f8._0x1c1167,-_0x3940f8._0x45d1d1)]];if(_0x316abb===![])continue;_0x22186b+=0x1,_0x17b9c5['push'](createMcpTool({'serverName':resolvePrefix(_0x4a316e,_0x55e88c),'tool':_0x5ae02a,'client':_0x4724f0}));}_0x6021c9[_0x4a316e]={'status':'connected','toolCount':_0x22186b};}catch(_0x4489c3){_0x6021c9[_0x4a316e]=isUnauthorizedError(_0x4489c3)?{'status':_0x1f3c7f(0x1fb,_0x3940f8._0xf734f3,0x174,0x22),'message':getErrorMessage(_0x4489c3)}:{'status':_0x1f3c7f(_0x3940f8._0x29a0af,0x272,_0x3940f8._0x37e366,_0x3940f8._0x42db40),'message':getErrorMessage(_0x4489c3)};}}function _0x1f3c7f(_0x159506,_0x262dc6,_0x56cc21,_0xbc3ebd){return _0x1a7bb7(_0x159506-_0x194de8._0x1ec9d7,_0x56cc21-_0x194de8._0x5dd213,_0x56cc21-0x106,_0x159506);}function _0x5165a2(_0x3bffbb,_0x1a6946,_0x5a93b9,_0x4e35d8){return _0x1a7bb7(_0x3bffbb-0xba,_0x3bffbb- -0x24a,_0x5a93b9-0x159,_0x1a6946);}return{'tools':_0x17b9c5,'servers':_0x6021c9,async 'close'(){const _0x1b3c33={_0x1419ef:0x317,_0x3a5c1b:0x13e};function _0x21bd2d(_0x46d1dd,_0x42624,_0x33b265,_0x128f50){return _0x5165a2(_0x46d1dd-0x3fb,_0x128f50,_0x33b265-0xdc,_0x128f50-_0x3c7a91._0x317eb8);}function _0x14a8fc(_0x3de6df,_0x2474e3,_0x11a5e4,_0x8ac4c7){return _0x5165a2(_0x11a5e4-_0x1b3c33._0x1419ef,_0x3de6df,_0x11a5e4-0xdd,_0x8ac4c7-_0x1b3c33._0x3a5c1b);}await Promise[_0x21bd2d(0x2b7,_0x31e75d._0x5d0553,0x2c4,0x2f6)](_0xfa6731['map'](_0x22db5b=>_0x22db5b[_0x14a8fc(0x2e2,0x14c,0x25b,0xf5)]()));}};}function getCommand(_0x70900c){const _0x7f349e={_0x3ad9f2:0x741,_0x5e9348:0x721,_0x3d38c4:0x8a9,_0x2dda64:0x6d1,_0x30f89e:0x695,_0xf9a3dd:0x849,_0x1b7645:0x1d3,_0x48c02f:0x1f8,_0x2bc475:0xf0,_0x3c9616:0x6ac,_0x27cbb0:0x582,_0x24a1cb:0x583,_0x2e9755:0x6ce,_0x52d9be:0x4ff,_0x29daf2:0x47d},_0x239dac={_0xadc65d:0xef},_0x715000={_0x6e12d8:0x1bd,_0x3a56db:0x2ea};if(_0x70900c&&typeof _0x70900c===_0x1b6a10(_0x7f349e._0x3ad9f2,_0x7f349e._0x5e9348,0x705,_0x7f349e._0x3d38c4)&&!Array[_0x1b6a10(_0x7f349e._0x2dda64,_0x7f349e._0x30f89e,_0x7f349e._0xf9a3dd,0x559)](_0x70900c)&&typeof _0x70900c[_0x395651(-0x1b0,-_0x7f349e._0x1b7645,-_0x7f349e._0x48c02f,-_0x7f349e._0x2bc475)]===_0x1b6a10(0x607,_0x7f349e._0x3c9616,_0x7f349e._0x27cbb0,_0x7f349e._0x24a1cb))return _0x70900c[_0x1b6a10(0x571,_0x7f349e._0x2e9755,_0x7f349e._0x52d9be,_0x7f349e._0x29daf2)];function _0x395651(_0x4c2e33,_0x5b3013,_0x105895,_0x40b7f4){return _0x17d408(_0x4c2e33-_0x715000._0x6e12d8,_0x5b3013-0x2f,_0x105895,_0x4c2e33- -_0x715000._0x3a56db);}function _0x1b6a10(_0x5cbbb5,_0x3a8e23,_0x2ed49c,_0x3c4d70){return _0x17d408(_0x5cbbb5-_0x239dac._0xadc65d,_0x3a8e23-0x1b3,_0x2ed49c,_0x5cbbb5-0x437);}return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x17d408(0x2fc,0x286,0x243,0x243),_0x17d408(0x24b,0x3a6,0x1bf,0x2df),'docs/plans/2026-04-16-public-tools-api-implementation.md',_0x1a7bb7(0x289,0x195,0x1e9,0x284),_0x1a7bb7(0x252,0x160,0x115,-0x3),_0x17d408(0x9a,-0xe4,0x8f,0x45),_0x17d408(0x1e,0x2d,0xd3,0x184),_0x17d408(-0x3,0x1e4,0x189,0xde),_0x1a7bb7(0x233,0x1ad,0x297,0x24e),_0x1a7bb7(-0x30,0x140,0x17b,0x2ad),_0x1a7bb7(0x30a,0x194,0xa1,0x16f),_0x17d408(0x252,0x1cc,0xe7,0x125),_0x1a7bb7(-0xef,-0x33,-0x113,-0x4d),_0x17d408(0x1bf,0x1c7,0xc3,0xce),_0x1a7bb7(0x1c,0x158,0x134,0xc),'src/formats/provider-adapters.test.ts',_0x17d408(0x23c,0x358,0x31a,0x2d2)][_0x1a7bb7(0xff,0xaa,0x1da,0x184)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':_0x17d408(0x1cd,0x14f,0x127,0xb4),'input_schema':{'type':_0x1a7bb7(0x1ad,0x27e,0x1c2,0x32e),'properties':{'command':{'type':_0x17d408(0x1b4,0x1fc,0xe1,0x1d0)}},'required':[_0x17d408(0x154,-0x7,0xfe,0x13a)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0xb51a96){return{'output':_0xb51a96,'structured':{'value':_0xb51a96}};}function createUnknownToolResult(_0x162bdc){const _0x9bfac7={_0x53c0cd:0xb5,_0x58f74e:0x17d,_0x4c53cc:0x28,_0x27e8c7:0x16c,_0x3c773c:0x58,_0x4b7f4b:0x192,_0x43168a:0x193,_0xc8dea1:0x2f5},_0x1037ee={_0x2423d2:0x123,_0x586d90:0x73,_0x25d534:0x11f},_0x3ffd7d={_0x544961:0x167,_0x53177b:0x232};function _0x32768e(_0x1a652f,_0x521151,_0x378639,_0x3601c0){return _0x1a7bb7(_0x1a652f-_0x3ffd7d._0x544961,_0x521151- -_0x3ffd7d._0x53177b,_0x378639-0xba,_0x378639);}function _0x40ef89(_0x12034f,_0x31625f,_0x4ab1de,_0x9d6560){return _0x1a7bb7(_0x12034f-_0x1037ee._0x2423d2,_0x31625f- -_0x1037ee._0x586d90,_0x4ab1de-_0x1037ee._0x25d534,_0x9d6560);}return{'callId':_0x162bdc['id'],'toolName':_0x162bdc[_0x40ef89(-0x176,-_0x9bfac7._0x53c0cd,-_0x9bfac7._0x58f74e,_0x9bfac7._0x4c53cc)],'status':_0x40ef89(_0x9bfac7._0x27e8c7,0xe0,0x1b1,_0x9bfac7._0x3c773c),'output':_0x32768e(-_0x9bfac7._0x4b7f4b,-_0x9bfac7._0x43168a,-0x114,-0xf5)+_0x162bdc[_0x32768e(-_0x9bfac7._0xc8dea1,-0x274,-0x27c,-0x204)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x173d11,_0x59c3c4){const _0x3f5ddf={_0x5e892d:0x36b,_0x569550:0x33b,_0x5868de:0x1a7},_0x565589={_0xbc01d0:0x41,_0x3db2c4:0xec},_0x5235f6={_0x12e3e2:0x44,_0x1c1f38:0x247};function _0x45d34f(_0xfe1cb0,_0x4cd464,_0x357058,_0x52b5d9){return _0x17d408(_0xfe1cb0-0x56,_0x4cd464-_0x5235f6._0x12e3e2,_0x4cd464,_0x52b5d9-_0x5235f6._0x1c1f38);}function _0x17a533(_0x2cb87d,_0x3d881c,_0x24eec3,_0xb2b553){return _0x1a7bb7(_0x2cb87d-_0x565589._0xbc01d0,_0x2cb87d- -0x294,_0x24eec3-_0x565589._0x3db2c4,_0xb2b553);}return{'callId':_0x173d11['id'],'toolName':_0x173d11[_0x17a533(-0x2d6,-_0x3f5ddf._0x5e892d,-_0x3f5ddf._0x569550,-_0x3f5ddf._0x5868de)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x173d11[_0x45d34f(0x50d,0x4c1,0x425,0x441)]),'exitCode':0x0},'chunks':[_0x59c3c4],'meta':createMeta()};}function createMockToolRuntime(){const _0x4b1b9a={_0x293c31:0x80,_0x3eb654:0xde},_0x2222c2={_0x103772:0x386,_0x1c0462:0x3d5,_0x361677:0x134,_0x59500f:0xae},_0x38276f={_0x2f2c9f:0x337},_0x32a894=async(_0x479639,_0x5937f7)=>{const _0x59dbef={_0x180ded:0x32d};if(_0x479639[_0x2f7d90(0x431,0x2e8,_0x2222c2._0x103772,_0x2222c2._0x1c0462)]!==_0x2860c0(-0x111,-_0x2222c2._0x361677,-_0x2222c2._0x59500f,-0xb7))return createUnknownToolResult(_0x479639);function _0x2f7d90(_0x29c32f,_0x483adc,_0x193006,_0xc46fb){return _0x2414(_0xc46fb-_0x38276f._0x2f2c9f,_0x193006);}const _0x353d67=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x2860c0(_0x410380,_0x475112,_0xe507a4,_0x39d64b){return _0x2414(_0x475112- -_0x59dbef._0x180ded,_0x39d64b);}return createSuccessToolResult(_0x479639,_0x353d67);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x51cbfd,_0xb37a54){const _0x3124ed={_0x373d4f:0x108};function _0x24fbf1(_0x52b082,_0x4186a2,_0x584ce0,_0x30963f){return _0x2414(_0x584ce0- -_0x3124ed._0x373d4f,_0x52b082);}return await Promise[_0x24fbf1(-_0x4b1b9a._0x293c31,0x17a,_0x4b1b9a._0x3eb654,0x23c)](_0x51cbfd['map'](async _0x3cda0d=>{return await _0x32a894(_0x3cda0d,_0xb37a54);}));},async 'execute'(_0x510d66,_0x375681){return await _0x32a894(_0x510d66,_0x375681);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0xf9306f={_0x40d5d3:0x5fe},_0x16f0b8={_0x4e187a:0xa2,_0x35baf4:0x35c};delegatedRunCounter+=0x1;function _0x529bf9(_0x190e51,_0x4de0ba,_0x35fba2,_0xcfd1b6){return _0x17d408(_0x190e51-_0x16f0b8._0x4e187a,_0x4de0ba-0x145,_0x190e51,_0x4de0ba-_0x16f0b8._0x35baf4);}return _0x529bf9(0x67f,_0xf9306f._0x40d5d3,0x4dd,0x649)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x53e6ab,_0x54ee16){const _0x1739ea={_0x4103a3:0x1d1};function _0x5c92e6(_0x5ccb7b,_0x2e7bfd,_0x300627,_0x4c1d56){return _0x1a7bb7(_0x5ccb7b-_0x1739ea._0x4103a3,_0x2e7bfd-0x310,_0x300627-0x2c,_0x300627);}return typeof _0x53e6ab===_0x5c92e6(0x30a,0x44d,0x369,0x2e3)?await _0x53e6ab(_0x54ee16):_0x53e6ab;}function getDelegatedAgentDefinition(_0x85bb26,_0x1e14df){const _0x510b10={_0x18895b:0x2d,_0x1f549d:0x50},_0x41ffb4={_0x31287c:0x1c5};function _0x190e6f(_0x1ce6c9,_0x4b76b9,_0x547705,_0x212cee){return _0x17d408(_0x1ce6c9-0x174,_0x4b76b9-_0x41ffb4._0x31287c,_0x1ce6c9,_0x4b76b9- -0x276);}return _0x85bb26[_0x190e6f(-_0x510b10._0x18895b,-_0x510b10._0x1f549d,-0x1a9,0xa0)]?.[_0x1e14df];}function createRunSummary(_0x22e484){const _0x35f34c={_0x986d74:0x67,_0x52f6b9:0x1d6,_0x23185a:0x2a0,_0x437fff:0x147,_0x1b3de1:0xbe,_0x21597f:0x215,_0xde6281:0x29b,_0x46338b:0x14b,_0x1586dd:0x100,_0xb1cd1a:0x14,_0x356482:0x1fd},_0x27d55c={_0x52177e:0x45,_0x479f2f:0xf1},_0x1a66f4={_0xda7532:0x138,_0x5cbf08:0x22};function _0x9efa8c(_0x14c548,_0x528fac,_0x39f483,_0x42192d){return _0x1a7bb7(_0x14c548-_0x1a66f4._0xda7532,_0x39f483-_0x1a66f4._0x5cbf08,_0x39f483-0x1e4,_0x14c548);}function _0x51e138(_0x4297d8,_0x117c4e,_0x304c97,_0x5d7c24){return _0x1a7bb7(_0x4297d8-_0x27d55c._0x52177e,_0x4297d8-0x7f,_0x304c97-_0x27d55c._0x479f2f,_0x304c97);}return{'runId':_0x22e484['runId'],'agentId':_0x22e484['agentId'],'sessionId':_0x22e484[_0x9efa8c(0x75,_0x35f34c._0x986d74,0x181,_0x35f34c._0x52f6b9)],'status':_0x22e484[_0x51e138(_0x35f34c._0x23185a,0x3c2,0x322,_0x35f34c._0x437fff)],'parentSessionId':_0x22e484[_0x51e138(_0x35f34c._0x1b3de1,-0xa8,0x1a6,0x1ac)],..._0x22e484['originToolCallId']!==void 0x0?{'originToolCallId':_0x22e484['originToolCallId']}:{},..._0x22e484['errorMessage']!==void 0x0?{'errorMessage':_0x22e484[_0x51e138(_0x35f34c._0x21597f,0x161,0x9a,_0x35f34c._0xde6281)]}:{},..._0x22e484['result']?.[_0x51e138(0x1fd,0x242,0x265,0x270)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x22e484[_0x51e138(_0x35f34c._0x46338b,_0x35f34c._0x1586dd,-0x5,_0x35f34c._0xb1cd1a)][_0x51e138(_0x35f34c._0x356482,0x335,0x2ae,0x95)])}:{}};}function createRunSummaryOutput(_0x107302,_0x7523c3){const _0x596caf={_0x5c62c7:0x39d,_0x5cdfe3:0x236,_0x5e4d56:0x3e7,_0x9243bd:0x3aa,_0xa9a038:0x48a,_0x1fdbf4:0x42f},_0x43c063={_0x2a1e16:0x145,_0x5df043:0x38b},_0x563ecd={_0x55c1cc:0x2a3,_0x45cda0:0x1f2};function _0xe47c81(_0x4969df,_0x50e040,_0xf6fabf,_0xce77cb){return _0x1a7bb7(_0x4969df-0x6d,_0x4969df-_0x563ecd._0x55c1cc,_0xf6fabf-_0x563ecd._0x45cda0,_0xce77cb);}const _0x103c60=createRunSummary(_0x107302),_0x214499=_0x103c60[_0xe47c81(0x281,_0x596caf._0x5c62c7,0x394,_0x596caf._0x5cdfe3)];function _0x1f9be0(_0x27e965,_0x2e208a,_0x593fc5,_0x527bb6){return _0x1a7bb7(_0x27e965-_0x43c063._0x2a1e16,_0x593fc5-_0x43c063._0x5df043,_0x593fc5-0x1a,_0x27e965);}return createToolOutput(typeof _0x214499===_0xe47c81(_0x596caf._0x5e4d56,_0x596caf._0x9243bd,_0x596caf._0xa9a038,0x55b)&&_0x214499[_0x1f9be0(0x4e3,0x2a1,0x40a,_0x596caf._0x1fdbf4)]>0x0?_0x214499:_0x7523c3,_0x103c60);}function getRunTerminalErrorMessage(_0x4094c6){const _0x4bdad1={_0x4fcc61:0x300,_0x179c91:0x2cc,_0x1b30b6:0x4d,_0x3f8d78:0x16d,_0x398160:0xaf,_0x5aba07:0x186,_0x1ccd1b:0x17b,_0xa2a7c7:0x232,_0x54a2ab:0x1ea,_0x1e98de:0x155},_0x360a0b={_0x56b7bb:0xbd,_0x9521b0:0x18c},_0x1e13eb={_0x18b979:0x138,_0x3371df:0x335};function _0x4503bd(_0x59b593,_0x33e2e0,_0x497fa3,_0x58523b){return _0x17d408(_0x59b593-_0x1e13eb._0x18b979,_0x33e2e0-0x149,_0x497fa3,_0x58523b- -_0x1e13eb._0x3371df);}const _0x1edc3c=_0x4094c6?.[_0x4503bd(-0x24b,-0x326,-0x359,-_0x4bdad1._0x4fcc61)][_0x585afa(-0x31,0x84,-0x58,-0xf2)]['at'](-0x1);if(_0x1edc3c?.[_0x585afa(_0x4bdad1._0x179c91,0x2de,0x442,0x1b1)]===_0x4503bd(-_0x4bdad1._0x1b30b6,-_0x4bdad1._0x3f8d78,-_0x4bdad1._0x398160,-0x156)&&_0x1edc3c[_0x4503bd(-_0x4bdad1._0x5aba07,-0x102,-_0x4bdad1._0x1ccd1b,-_0x4bdad1._0xa2a7c7)]['trim']()['length']>0x0)return _0x1edc3c[_0x4503bd(-_0x4bdad1._0x54a2ab,-0x111,-_0x4bdad1._0x1e98de,-0x232)];function _0x585afa(_0x45f212,_0x3e389e,_0x16e280,_0x297ae3){return _0x1a7bb7(_0x45f212-0x61,_0x3e389e-_0x360a0b._0x56b7bb,_0x16e280-_0x360a0b._0x9521b0,_0x16e280);}return void 0x0;}function formatAbortedRunMessage(_0x41a8e2,_0x41974e){const _0x22985d={_0xeb06bd:0x100,_0x4321d5:0x122,_0x30f6fe:0x4f4,_0x2de8a4:0x3ec},_0xe27062={_0x24f3c6:0x1d5,_0x478138:0x3bd,_0x1c0148:0x1c9},_0x4951be={_0x2f6a00:0x24b},_0x3dc7cb=_0x58b9dd(-0x20c,-0x164,-_0x22985d._0xeb06bd,-_0x22985d._0x4321d5)+_0x41a8e2+_0x10553e(0x353,0x414,_0x22985d._0x30f6fe,_0x22985d._0x2de8a4);function _0x58b9dd(_0x59dd85,_0x51a4dd,_0x3fcfc2,_0x51faec){return _0x17d408(_0x59dd85-0x41,_0x51a4dd-0x2e,_0x59dd85,_0x51a4dd- -_0x4951be._0x2f6a00);}function _0x10553e(_0x4c8b13,_0x17cad5,_0x1353cc,_0x47852a){return _0x1a7bb7(_0x4c8b13-_0xe27062._0x24f3c6,_0x17cad5-_0xe27062._0x478138,_0x1353cc-_0xe27062._0x1c0148,_0x47852a);}if(!_0x41974e||_0x41974e['trim']()[_0x58b9dd(-0x1d7,-0x140,0x2,-0x107)]===0x0||_0x41974e===_0x3dc7cb)return _0x3dc7cb;return _0x3dc7cb+'\x20Cause:\x20'+_0x41974e;}function createAssignTaskTool(_0x5e719e){const _0x44c8ab={_0x1dc85f:0x5a7,_0x949812:0x494,_0x3b827d:0x5ad,_0xee4999:0x6e0,_0x3b2bb7:0x41f,_0x5a09ee:0x3f3,_0x238eb1:0x55f,_0x3cb53b:0x655,_0x49cbf6:0x566,_0x282c40:0x44a,_0x3f9e1f:0x4f1,_0x4d2901:0x1fc,_0x1c26d7:0x253},_0x3e24b9={_0x419232:0x475,_0x3fecea:0x56d,_0x5b3a14:0x4f3,_0x1a7250:0x39c,_0x5adcac:0x439,_0x1fc04f:0x4cd,_0x1a0b26:0x3d7,_0x286dd4:0x662,_0x41a2e4:0x521,_0x18f758:0x308,_0x1056bd:0x22c,_0x1632dc:0x47f,_0x154b86:0x320,_0x20f1f1:0x429,_0x5f277d:0x316,_0x24597a:0x194,_0x473dd5:0x2f0,_0x407ec8:0x4e2,_0x26f8e9:0x51c,_0x1d3af2:0x4cd,_0x40f39e:0x41b,_0x595a52:0x297,_0x264b4c:0x150,_0x49dcb0:0x395,_0x22e8fb:0x18a,_0x520cf6:0x208,_0x166862:0x38e,_0x4d1c42:0x29f,_0x1aa018:0x445,_0x398016:0x3d8,_0x5c6526:0x5b3,_0x370061:0x17d,_0x36a794:0x20b,_0x4fe2ee:0x199,_0x4d50b8:0x290,_0x5f2ffa:0x221,_0x401d82:0x2d4,_0x298088:0x51e,_0x13ec8d:0x3d8,_0x219661:0x2f9,_0x3a4583:0x3d6,_0x780bf4:0x45e,_0x49e77c:0x35a,_0x2115ae:0x4da,_0x24f373:0x426,_0x143864:0x425,_0x53e0cf:0x538,_0x1c2f2c:0x4f2,_0x14a4d2:0x3ef,_0x1f7d2f:0x40a,_0x282e08:0x2c7,_0xfaad3d:0x2c7,_0x41e7ae:0x10c,_0x2ac4f5:0x38e,_0x53924f:0x3fe,_0x4dddca:0x624,_0x4cf9d2:0x386,_0x57b9f9:0x4e9,_0x4b627e:0x460,_0x2a5ecf:0x3b3,_0x32e7e4:0x13e,_0x179ca4:0x422,_0x32db1c:0x382,_0xe5b39e:0x450,_0x47628d:0x489,_0x5bdd0f:0x4c6,_0x32e3f0:0x528,_0x163a0b:0x3fa},_0x54a52f={_0x196237:0x1ec,_0x299100:0x77,_0x7ad6f8:0xa3,_0x373847:0x4d,_0x1877b0:0x28},_0x1a6e93={_0x3a7558:0x2d8},_0x3f59d7={_0xbe69f:0x15f,_0xf34960:0x128,_0x1d256f:0x216};function _0x199363(_0x2bbade,_0x4f5ddc,_0x566958,_0x590d16){return _0x17d408(_0x2bbade-_0x3f59d7._0xbe69f,_0x4f5ddc-_0x3f59d7._0xf34960,_0x4f5ddc,_0x566958-_0x3f59d7._0x1d256f);}function _0x438b7a(_0x4e7875,_0x132ea8,_0x414443,_0x107c81){return _0x17d408(_0x4e7875-0x64,_0x132ea8-0x1de,_0x414443,_0x107c81-_0x1a6e93._0x3a7558);}return defineTool({'name':_0x438b7a(0x4e5,_0x44c8ab._0x1dc85f,_0x44c8ab._0x949812,0x580),'description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':_0x438b7a(_0x44c8ab._0x3b827d,0x5b4,_0x44c8ab._0xee4999,0x5e2),'properties':{'agentId':{'type':_0x438b7a(_0x44c8ab._0x3b2bb7,_0x44c8ab._0x5a09ee,0x38b,0x4a8)},'description':{'type':_0x199363(_0x44c8ab._0x238eb1,0x449,0x3e6,0x473)},'nickname':{'type':'string'},'task':{'type':'string'}},'required':[_0x438b7a(_0x44c8ab._0x3cb53b,_0x44c8ab._0x49cbf6,_0x44c8ab._0x282c40,_0x44c8ab._0x3f9e1f),_0x199363(0x1e9,_0x44c8ab._0x4d2901,_0x44c8ab._0x1c26d7,0x34f),'task']},async *'execute'(_0x4569b7,_0x109bbc){const _0x2473aa={_0x225109:0xeb},_0x5afa37={_0x2479db:0x26e},_0x508197={_0x45cabd:0x16b,_0x5e1edf:0xf2},_0x359d92=createDelegatedRunId(),_0x3fe292={'agentId':_0x4569b7[_0x394414(0x370,0x2a5,_0x3e24b9._0x419232,0x344)],'parentSessionId':_0x109bbc[_0x483825(0x3d1,_0x3e24b9._0x3fecea,0x4d2,_0x3e24b9._0x5b3a14)],'runId':_0x359d92,..._0x109bbc['toolCallId']!==void 0x0?{'toolCallId':_0x109bbc[_0x483825(_0x3e24b9._0x1a7250,0x47b,_0x3e24b9._0x5adcac,_0x3e24b9._0x1fc04f)]}:{}},_0x23e108=getDelegatedAgentDefinition(_0x5e719e,_0x4569b7[_0x483825(_0x3e24b9._0x1a0b26,_0x3e24b9._0x286dd4,0x606,_0x3e24b9._0x41a2e4)]);if(!_0x23e108)throw new ToolExecutionError(_0x394414(0x352,_0x3e24b9._0x18f758,_0x3e24b9._0x1056bd,0x3a0)+_0x4569b7['agentId'],{'agentId':_0x4569b7[_0x483825(0x405,_0x3e24b9._0x1632dc,0x681,_0x3e24b9._0x41a2e4)]});const _0x35c0ba=new Agent(await resolveDelegatedAgentOptions(_0x23e108,_0x3fe292));function _0x483825(_0x4102c5,_0x497497,_0x2030fd,_0x1d319a){return _0x199363(_0x4102c5-_0x508197._0x45cabd,_0x497497,_0x1d319a-_0x508197._0x5e1edf,_0x1d319a-0x181);}let _0x199a81={'runId':_0x359d92,'agentId':_0x4569b7['agentId'],'sessionId':_0x35c0ba['sessionId'],'status':'running','parentSessionId':_0x109bbc[_0x394414(_0x3e24b9._0x154b86,_0x3e24b9._0x20f1f1,0x258,_0x3e24b9._0x5f277d)],..._0x109bbc[_0x394414(0x2a0,_0x3e24b9._0x24597a,0x237,_0x3e24b9._0x473dd5)]!==void 0x0?{'originToolCallId':_0x109bbc[_0x483825(_0x3e24b9._0x407ec8,0x36e,_0x3e24b9._0x26f8e9,_0x3e24b9._0x1d3af2)]}:{}};const _0x151900=new AbortController(),_0x5f32bd=addAbortListener(_0x109bbc['signal'],()=>{const _0x368dd9={_0x18b14a:0xbe};function _0x516eab(_0x10b8b1,_0x30ed17,_0x2c4f85,_0x381fbf){return _0x394414(_0x10b8b1-0xe8,_0x30ed17-_0x368dd9._0x18b14a,_0x381fbf,_0x10b8b1- -0x25d);}function _0xff2589(_0x4645b5,_0x1ccfac,_0x197dd5,_0x464ebf){return _0x394414(_0x4645b5-0x142,_0x1ccfac-0x7,_0x197dd5,_0x464ebf- -_0x5afa37._0x2479db);}_0x151900[_0x516eab(_0x54a52f._0x196237,0x295,0xe9,0x1c6)](_0x109bbc[_0xff2589(-0x154,_0x54a52f._0x299100,-_0x54a52f._0x7ad6f8,-_0x54a52f._0x373847)]?.[_0x516eab(-_0x54a52f._0x1877b0,-0xd5,-0xa0,-0x53)]);});function _0x394414(_0x12e15c,_0x3bd8ee,_0x36e568,_0x1d66f6){return _0x199363(_0x12e15c-0x133,_0x36e568,_0x1d66f6- -_0x2473aa._0x225109,_0x1d66f6-0x111);}yield createToolOutput(_0x394414(0x3a2,0x4ca,_0x3e24b9._0x40f39e,0x423)+_0x199a81[_0x394414(_0x3e24b9._0x595a52,0x11e,_0x3e24b9._0x264b4c,0x248)]+'.',{'runId':_0x199a81[_0x394414(0x32e,_0x3e24b9._0x49dcb0,_0x3e24b9._0x22e8fb,0x248)],'agentId':_0x199a81[_0x394414(_0x3e24b9._0x520cf6,_0x3e24b9._0x166862,0x495,0x344)],'sessionId':_0x199a81[_0x483825(0x3c4,0x62c,0x5a0,0x4f3)],'status':_0x199a81[_0x394414(0x494,_0x3e24b9._0x4d1c42,_0x3e24b9._0x1aa018,_0x3e24b9._0x398016)]});try{const _0x26d40d=await _0x35c0ba[_0x483825(0x6b8,0x5b0,0x724,_0x3e24b9._0x5c6526)](_0x4569b7[_0x394414(_0x3e24b9._0x370061,0x32d,0x345,_0x3e24b9._0x36a794)],{'signal':_0x151900[_0x394414(0x267,_0x3e24b9._0x4fe2ee,_0x3e24b9._0x4d50b8,_0x3e24b9._0x5f2ffa)]});_0x199a81={..._0x199a81,'status':_0x26d40d[_0x394414(_0x3e24b9._0x401d82,_0x3e24b9._0x298088,0x2e2,_0x3e24b9._0x13ec8d)],'result':_0x26d40d};if(_0x26d40d[_0x394414(0x3af,0x4d4,_0x3e24b9._0x219661,0x3d8)]!==_0x394414(_0x3e24b9._0x3a4583,_0x3e24b9._0x780bf4,0x5bf,0x44e)){const _0x1e7d2f=getRunTerminalErrorMessage(_0x26d40d),_0x49a38d=formatAbortedRunMessage(_0x199a81[_0x483825(_0x3e24b9._0x49e77c,_0x3e24b9._0x2115ae,_0x3e24b9._0x24f373,_0x3e24b9._0x143864)],_0x1e7d2f);throw new ToolExecutionError(_0x49a38d,{...createRunSummary(_0x199a81),'aborted':!![],'errorMessage':_0x49a38d});}return createRunSummaryOutput(_0x199a81,_0x483825(0x486,_0x3e24b9._0x53e0cf,_0x3e24b9._0x1c2f2c,_0x3e24b9._0x14a4d2)+_0x199a81[_0x394414(0x24c,0x1d1,0x231,0x248)]+_0x483825(0x521,0x3fe,0x3fe,_0x3e24b9._0x1f7d2f));}catch(_0x10b212){if(_0x10b212 instanceof ToolExecutionError)throw _0x10b212;if(isAbortError(_0x10b212)||_0x151900[_0x394414(_0x3e24b9._0x282e08,_0x3e24b9._0xfaad3d,_0x3e24b9._0x41e7ae,0x221)][_0x394414(0x342,0x428,0x4a1,0x447)]||_0x109bbc[_0x483825(_0x3e24b9._0x2ac4f5,0x45b,0x47e,_0x3e24b9._0x53924f)][_0x483825(0x4d6,_0x3e24b9._0x5c6526,0x536,_0x3e24b9._0x4dddca)]){const _0x1a8a5f=getRunTerminalErrorMessage(_0x199a81[_0x483825(0x321,_0x3e24b9._0x4cf9d2,_0x3e24b9._0x57b9f9,_0x3e24b9._0x4b627e)])??(_0x10b212 instanceof Error?_0x10b212[_0x394414(0x45c,0x24b,0x32d,_0x3e24b9._0x2a5ecf)]:String(_0x10b212)),_0x3755da=formatAbortedRunMessage(_0x199a81[_0x394414(0x3be,_0x3e24b9._0x32e7e4,0x252,0x248)],_0x1a8a5f);_0x199a81={..._0x199a81,'status':_0x394414(0x514,0x4bf,_0x3e24b9._0x179ca4,0x447),'errorMessage':_0x3755da};throw new ToolExecutionError(_0x3755da,{...createRunSummary(_0x199a81),'aborted':!![],'errorMessage':_0x3755da});}const _0x1e6929=getRunTerminalErrorMessage(_0x199a81['result'])??(_0x10b212 instanceof Error?_0x10b212['message']:String(_0x10b212))??_0x483825(_0x3e24b9._0x32db1c,_0x3e24b9._0xe5b39e,_0x3e24b9._0x47628d,0x3ef)+_0x199a81['runId']+_0x483825(_0x3e24b9._0x5bdd0f,0x332,0x25e,0x369);_0x199a81={..._0x199a81,'status':_0x483825(0x480,_0x3e24b9._0x32e3f0,_0x3e24b9._0x163a0b,0x4b4),'errorMessage':_0x1e6929};throw new ToolExecutionError(_0x1e6929,{...createRunSummary(_0x199a81),'errorMessage':_0x1e6929});}finally{_0x5f32bd();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x46ea83){return[createAssignTaskTool(_0x46ea83)];}import*as _0x126d57 from'path';function buildDescription2(_0x37b750){const _0x5ed157={_0x31ab0f:0x192,_0x16078f:0x186,_0x4cafaa:0x1a8,_0x5c14de:0x225,_0xb4c76d:0x45f,_0x2f690d:0x15d,_0x37ab86:0x6,_0x5e6d4a:0x180,_0x2f2bcb:0x31f,_0x366743:0x96,_0x3cf02f:0x165},_0x3c9de3={_0xb34f77:0x1d1,_0x15ffbc:0x133},_0x367fcf={_0x2d59bb:0x1b2};if(_0x37b750[_0x13c66a(_0x5ed157._0x31ab0f,_0x5ed157._0x16078f,_0x5ed157._0x4cafaa,_0x5ed157._0x5c14de)]===0x0)return _0x13c66a(0x36e,0x297,0x48f,_0x5ed157._0xb4c76d);function _0x13c66a(_0x3915d2,_0x647156,_0x1835bf,_0x26ef07){return _0x1a7bb7(_0x3915d2-_0x367fcf._0x2d59bb,_0x3915d2-0x113,_0x1835bf-0x172,_0x1835bf);}const _0x45cb5c=[_0x3723c6(-_0x5ed157._0x2f690d,-0x16d,_0x5ed157._0x37ab86,-0xc9),'Skills\x20provide\x20specialized\x20knowledge\x20and\x20step-by-step\x20guidance.',_0x3723c6(-0x58,-0x3,-0x14a,-_0x5ed157._0x5e6d4a),_0x13c66a(0x27e,0x143,_0x5ed157._0x2f2bcb,0x1dc),..._0x37b750['map'](_0x41c54f=>'-\x20'+_0x41c54f['name']+':\x20'+_0x41c54f['description'])];function _0x3723c6(_0x582784,_0x310302,_0x2f3f51,_0x20ceb7){return _0x1a7bb7(_0x582784-_0x3c9de3._0xb34f77,_0x2f3f51- -0x12d,_0x2f3f51-_0x3c9de3._0x15ffbc,_0x310302);}return _0x45cb5c[_0x3723c6(_0x5ed157._0x366743,-0x1d6,-0x83,-_0x5ed157._0x3cf02f)]('\x0a');}function createLoadSkillTool(_0x15fdff){const _0x255ae6={_0x40a112:0x5c3,_0x46f025:0x4ab,_0x3288aa:0x4e8,_0x556235:0x5d3,_0x1385db:0x365,_0x1c8cff:0x4ab,_0x35af9e:0x60c,_0x41a9b5:0x783,_0x13f6f1:0x71d,_0x43e9ab:0x737},_0x2e9340={_0x29a34e:0x227,_0x247615:0x1c5,_0x4efd96:0x1db,_0x362b44:0x16c,_0x23e4dd:0xd4,_0x50330b:0x110,_0x388004:0x1b,_0x1aa1e0:0x1ad,_0x5607d6:0x16,_0x204d69:0x13b,_0x373bb0:0x109,_0x58f1c6:0x101,_0x44e1a6:0x56,_0x52e677:0x25,_0x36f3d7:0x123,_0x5c8c57:0x67,_0x46aabc:0x4f,_0xba672d:0x177,_0x5283e4:0x116,_0x1247b7:0x4cc,_0xbb6b60:0x1ba,_0x4fe262:0x1e6,_0x48ca5f:0x26b,_0x2d2892:0x3f6,_0x1575a5:0x1d8,_0x5b2f89:0x189,_0x278e64:0x4e4,_0xb076a2:0x500,_0x561da6:0x30,_0x505af1:0x2e,_0x349e99:0x28b,_0x4a2df0:0x344,_0x10a372:0x1e3,_0xb8543d:0x19,_0x14917f:0x11f,_0x269395:0x17e,_0x16a231:0x152,_0x3e4715:0x1d1,_0x541a45:0x268,_0x8ce7d1:0x198,_0x4de9a2:0x28a,_0x2e4fae:0x2b9,_0x4bf78a:0x1b6,_0x4dd8b3:0x15e},_0x5154d9={_0x4a0559:0xd3},_0x5aa9d1={_0x2c4ddd:0x1d7},_0x1864b3=new Map(_0x15fdff[_0x4a0471(0x5da,_0x255ae6._0x40a112,_0x255ae6._0x46f025,0x57a)][_0x4a0471(0x543,_0x255ae6._0x3288aa,_0x255ae6._0x556235,0x668)](_0x169a3f=>[_0x169a3f[_0x5f3c62(0x2f7,0x3cb,0x2d0,0x1fb)],_0x169a3f]));function _0x4a0471(_0x3e3ebb,_0xe91f9,_0x7946c,_0x59af04){return _0x17d408(_0x3e3ebb-0x69,_0xe91f9-_0x5aa9d1._0x2c4ddd,_0x59af04,_0x7946c-0x413);}function _0x5f3c62(_0x4fd644,_0x1b846e,_0x45457e,_0x48bb7e){return _0x1a7bb7(_0x4fd644-0x6d,_0x45457e-0x312,_0x45457e-_0x5154d9._0x4a0559,_0x1b846e);}const _0x25f3a1=buildDescription2(_0x15fdff[_0x4a0471(0x504,_0x255ae6._0x1385db,_0x255ae6._0x1c8cff,0x4d1)]);return defineTool({'name':'LoadSkill','description':_0x25f3a1,'inputSchema':{'type':_0x4a0471(_0x255ae6._0x35af9e,_0x255ae6._0x41a9b5,_0x255ae6._0x13f6f1,0x5a8),'properties':{'name':{'type':_0x4a0471(_0x255ae6._0x43e9ab,0x5b9,0x5e3,0x520)}},'required':['name']},async *'execute'(_0x48c725){const _0x3bb133={_0x4db910:0x1b8,_0x6c5b06:0x2ab,_0xc05861:0x7f},_0x307f49=_0x1864b3[_0x35e77b(0x33c,_0x2e9340._0x29a34e,0x189,_0x2e9340._0x247615)](_0x48c725['name']);if(!_0x307f49){const _0x2a08db=Array[_0xf62c9f(_0x2e9340._0x4efd96,0x1a4,0x63,_0x2e9340._0x362b44)](_0x1864b3[_0x35e77b(0x1ae,0x1e4,_0x2e9340._0x23e4dd,0x1b1)]())[_0x35e77b(0xed,0xc8,_0x2e9340._0x50330b,0x111)](',\x20');throw new ToolExecutionError(_0x35e77b(-_0x2e9340._0x388004,_0x2e9340._0x1aa1e0,_0x2e9340._0x5607d6,_0x2e9340._0x204d69)+_0x48c725[_0x35e77b(0x8f,_0x2e9340._0x373bb0,-_0x2e9340._0x58f1c6,0x25)]+_0xf62c9f(0x2fb,0x2a4,0x442,0x272)+_0x2a08db,{'name':_0x48c725[_0x35e77b(0x100,_0x2e9340._0x44e1a6,-0x5d,_0x2e9340._0x52e677)]});}function _0x35e77b(_0x598e3d,_0x3130bc,_0x5dcf2f,_0x54a75c){return _0x5f3c62(_0x598e3d-_0x3bb133._0x4db910,_0x5dcf2f,_0x54a75c- -_0x3bb133._0x6c5b06,_0x54a75c-_0x3bb133._0xc05861);}const _0x432af4=await _0x15fdff[_0x35e77b(-_0x2e9340._0x36f3d7,-0x1f,-_0x2e9340._0x5c8c57,0x4d)](_0x307f49),_0x2e5f79=_0x307f49[_0x35e77b(-_0x2e9340._0x46aabc,0x106,_0x2e9340._0xba672d,_0x2e9340._0x5283e4)][_0xf62c9f(0x3ec,0x4f6,0x540,_0x2e9340._0x1247b7)]??_0x126d57[_0xf62c9f(0x1af,_0x2e9340._0xbb6b60,0x20e,0x322)](_0x307f49['source'][_0xf62c9f(0x28b,_0x2e9340._0x4fe262,0x3d9,0x30b)]),_0x39d6a3=[_0xf62c9f(0x200,0x24c,0x289,_0x2e9340._0x48ca5f)+_0x432af4['name'],'',_0x432af4[_0xf62c9f(0x3cd,0x49c,0x538,_0x2e9340._0x2d2892)],'',_0x35e77b(0x4b,_0x2e9340._0x1575a5,_0x2e9340._0x5b2f89,0xb2),_0xf62c9f(0x3c0,_0x2e9340._0x278e64,0x365,_0x2e9340._0xb076a2)+_0x307f49[_0x35e77b(-_0x2e9340._0x561da6,0x15d,-_0x2e9340._0x505af1,0x116)][_0xf62c9f(_0x2e9340._0x349e99,0x39e,_0x2e9340._0x4a2df0,0x3e2)],_0x35e77b(0x26e,0x7,_0x2e9340._0x10a372,0x175)+_0x2e5f79][_0x35e77b(-_0x2e9340._0xb8543d,_0x2e9340._0x14917f,_0x2e9340._0x269395,0x111)]('\x0a');yield createToolOutput(_0x39d6a3,{'id':_0x432af4['id'],'name':_0x432af4[_0xf62c9f(_0x2e9340._0x16a231,_0x2e9340._0x3e4715,_0x2e9340._0x541a45,0x189)],'path':_0x307f49[_0x35e77b(_0x2e9340._0x8ce7d1,_0x2e9340._0x4de9a2,0x7b,0x116)][_0x35e77b(_0x2e9340._0x2e4fae,0x2cf,_0x2e9340._0x4bf78a,_0x2e9340._0x4dd8b3)],'baseDirectory':_0x2e5f79});function _0xf62c9f(_0x43bea5,_0x3b920b,_0xd9448b,_0x2c866a){return _0x5f3c62(_0x43bea5-0x113,_0x3b920b,_0x43bea5- -0x17e,_0x2c866a-0x19b);}return void 0x0;}});}var TODO_STATUSES=new Set([_0x1a7bb7(-0x155,-0x1b,-0x160,0xda),_0x1a7bb7(0x3b4,0x274,0x231,0x1a7),_0x17d408(0x389,0x426,0x499,0x323)]),TODO_PRIORITIES=new Set([_0x17d408(0x1b4,0x271,0x330,0x212),_0x17d408(0x19f,0x32a,0x280,0x1ed),_0x17d408(0x137,0x13a,0x19d,0x281)]);function isTodoStatus(_0x2a5b20){const _0x3b1237={_0x205ab9:0x597,_0x264201:0x42b,_0x444cb5:0x63f},_0x402bf7={_0x5bbf75:0x13f},_0x4acd66={_0x4d0114:0x3c7};function _0x15b1c8(_0x56cc7c,_0x20391f,_0x5e4632,_0x281d13){return _0x17d408(_0x56cc7c-0x64,_0x20391f-0x1db,_0x56cc7c,_0x20391f-_0x4acd66._0x4d0114);}function _0x2c9518(_0x4470e3,_0x3c7e85,_0x3e2305,_0x454022){return _0x17d408(_0x4470e3-0x18f,_0x3c7e85-_0x402bf7._0x5bbf75,_0x3c7e85,_0x3e2305-0x3c2);}return typeof _0x2a5b20===_0x15b1c8(0x437,_0x3b1237._0x205ab9,_0x3b1237._0x264201,0x50e)&&TODO_STATUSES[_0x15b1c8(0x76c,_0x3b1237._0x444cb5,0x78c,0x707)](_0x2a5b20);}function isTodoPriority(_0x2300a9){const _0x27fca4={_0x3e5a57:0x161},_0x571e33={_0x5167d9:0x185};function _0x4b3352(_0xa99d48,_0x334cbb,_0x3264e0,_0x44fee8){return _0x1a7bb7(_0xa99d48-0x19f,_0x44fee8- -_0x571e33._0x5167d9,_0x3264e0-0x1a,_0x3264e0);}return typeof _0x2300a9==='string'&&TODO_PRIORITIES[_0x4b3352(_0x27fca4._0x3e5a57,0x7f,0x5b,0x67)](_0x2300a9);}var TodoStore=class{[_0x1a7bb7(-0x38,0x6d,0x18b,0x187)]=new Map();[_0x17d408(0x1a0,0x1a8,0x288,0x1c7)](_0x1350db){const _0xacb92c={_0x162405:0x1db,_0x217913:0x256,_0x229b99:0x165},_0x3d9a38={_0xaa2d98:0x12e,_0x15894c:0x66,_0x110a37:0x34f},_0x2a9270={_0x46336b:0xf3};function _0x284dbc(_0x175ed6,_0x535162,_0x22aed9,_0x25b784){return _0x17d408(_0x175ed6-0x17b,_0x535162-_0x2a9270._0x46336b,_0x22aed9,_0x25b784-0x299);}function _0x2d9379(_0x3a6dfe,_0x22e67d,_0x3303d9,_0x11f708){return _0x17d408(_0x3a6dfe-_0x3d9a38._0xaa2d98,_0x22e67d-_0x3d9a38._0x15894c,_0x11f708,_0x3303d9- -_0x3d9a38._0x110a37);}return this[_0x2d9379(-0x1c7,-0x3a3,-0x256,-0x1e4)][_0x2d9379(-_0xacb92c._0x162405,-_0xacb92c._0x217913,-_0xacb92c._0x229b99,-0x237)](_0x1350db)??[];}[_0x1a7bb7(0x138,0x117,0x114,0xd9)](_0x341908,_0x4d9279){const _0x407598={_0x1900da:0x15},_0x113f11={_0x2ce34b:0x62,_0x56bef3:0x35d},_0x183580={_0x15d149:0x185,_0x586380:0x1b0};function _0x41fa0f(_0x31a1d6,_0x18ad77,_0x548efe,_0x434646){return _0x1a7bb7(_0x31a1d6-_0x183580._0x15d149,_0x548efe- -_0x183580._0x586380,_0x548efe-0x94,_0x18ad77);}function _0x2c855b(_0x24f445,_0x3bcbc1,_0x488efe,_0x64d0a6){return _0x17d408(_0x24f445-0x6a,_0x3bcbc1-_0x113f11._0x2ce34b,_0x3bcbc1,_0x488efe- -_0x113f11._0x56bef3);}this[_0x41fa0f(-0x130,_0x407598._0x1900da,-0x143,-0x151)][_0x2c855b(-0x150,-0x314,-0x21e,-0x1d3)](_0x341908,_0x4d9279);}['getStats'](_0xc7c488){const _0x1f61c5={_0x6ae5c5:0x187,_0x18ec4c:0x210,_0x5899fb:0xb5,_0x4345df:0x88,_0x36dce5:0x2af,_0x3410d3:0x12,_0x2beeb9:0x49},_0x437a43={_0x253dd3:0x19a},_0x3714e4=this['getTodos'](_0xc7c488);function _0x4e5f8a(_0x1756de,_0x2a1129,_0x3c73ce,_0x4a0d06){return _0x1a7bb7(_0x1756de-_0x437a43._0x253dd3,_0x3c73ce- -0x9a,_0x3c73ce-0x5c,_0x4a0d06);}const _0x1bf910={'total':_0x3714e4['length'],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0xf65e09 of _0x3714e4){if(_0xf65e09[_0x4e5f8a(0x93,0xce,_0x1f61c5._0x6ae5c5,_0x1f61c5._0x18ec4c)]==='pending')_0x1bf910[_0x4e5f8a(0x6b,-0x18a,-_0x1f61c5._0x5899fb,_0x1f61c5._0x4345df)]+=0x1;else{if(_0xf65e09[_0x4e5f8a(0x23f,0x4e,0x187,_0x1f61c5._0x36dce5)]===_0x42443b(-_0x1f61c5._0x3410d3,_0x1f61c5._0x2beeb9,-0x116,-0x130))_0x1bf910[_0x4e5f8a(0x3d,-0x4e,0x88,0x4d)]+=0x1;else _0x1bf910[_0x42443b(-0xb4,0x6c,0x14,-0xb0)]+=0x1;}}function _0x42443b(_0x1fb2c3,_0x13b045,_0xc9140b,_0x3d3b34){return _0x1a7bb7(_0x1fb2c3-0x17,_0x13b045- -0x22b,_0xc9140b-0x12e,_0x3d3b34);}return _0x1bf910;}};function validateTodos(_0x429e8a){const _0xb10de5={_0x2d9094:0x30c,_0x18634d:0x7d,_0x11475d:0x5a,_0x55f7a6:0x1c9,_0x93be1a:0x32,_0x483815:0x6e,_0x27829b:0x6e7,_0x5f09c1:0x69f,_0xa04543:0x91,_0x43acae:0x48,_0x163990:0x2,_0x3594fb:0x47,_0x2ce912:0x697,_0x2c24aa:0x71c,_0xb4841c:0x6b3,_0x56accb:0x656,_0x524208:0x545,_0x160665:0x1ab,_0x5a261e:0x160,_0x105480:0x5c8,_0x1d29e3:0x816,_0x232562:0x719,_0x1b50bf:0x58,_0x5718be:0x565,_0x2065ac:0x3bf,_0x27b1a9:0x48d,_0x40a8c7:0xe,_0x2042b3:0x1a5,_0x524148:0x7c9,_0x1bfdef:0x682,_0xf9643a:0x3d1,_0x38ee7d:0x405,_0x24d5a4:0x52f,_0x382724:0x4d4,_0xb9eda3:0x587,_0x3db9ce:0x483,_0x3539f2:0x545,_0x350e46:0x663,_0x5d4dcd:0xee,_0x84eee1:0x4f,_0x155b22:0x553,_0x429941:0x34,_0x145149:0x103,_0x4d6ff2:0xda,_0x1f99eb:0x16},_0x1b037d={_0x311ff5:0xc5},_0x6021a7={_0x1a749a:0x14};if(!Array[_0x17fc3a(0x34c,0x1f6,0x19f,0x1d6)](_0x429e8a['todos'])||_0x429e8a[_0x17fc3a(_0xb10de5._0x2d9094,_0xb10de5._0x18634d,_0xb10de5._0x11475d,_0xb10de5._0x55f7a6)]['length']===0x0)throw new ToolExecutionError(_0x17fc3a(-0x1be,_0xb10de5._0x93be1a,_0xb10de5._0x483815,-0x8c),{'error':'invalid_todos'});for(let _0x2720b7=0x0;_0x2720b7<_0x429e8a[_0x162976(0x718,_0xb10de5._0x27829b,0x807,_0xb10de5._0x5f09c1)][_0x17fc3a(_0xb10de5._0xa04543,-_0xb10de5._0x43acae,-_0xb10de5._0x163990,_0xb10de5._0x3594fb)];_0x2720b7+=0x1){const _0x26854f=_0x429e8a[_0x162976(0x6f6,0x668,_0xb10de5._0x2ce912,_0xb10de5._0x5f09c1)][_0x2720b7];if(!_0x26854f||typeof _0x26854f!==_0x162976(0x64c,0x87a,0x618,_0xb10de5._0x2c24aa))throw new ToolExecutionError('Todo\x20'+(_0x2720b7+0x1)+_0x162976(_0xb10de5._0xb4841c,_0xb10de5._0x56accb,0x61c,_0xb10de5._0x524208),{'error':_0x17fc3a(_0xb10de5._0x160665,0x210,_0xb10de5._0x5a261e,0x1a9)});if(typeof _0x26854f['id']!==_0x162976(0x706,0x619,0x650,0x5e2)||_0x26854f['id'][_0x17fc3a(0x308,0x251,0x1b1,0x1c8)]()[_0x162976(0x66a,0x48c,_0xb10de5._0x105480,0x51d)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x2720b7+0x1)+_0x162976(_0xb10de5._0x1d29e3,0x726,0x88e,_0xb10de5._0x232562),{'error':_0x17fc3a(-0x42,_0xb10de5._0x1b50bf,-0xab,0x7a)});if(typeof _0x26854f[_0x162976(_0xb10de5._0x5718be,_0xb10de5._0x2065ac,0x495,_0xb10de5._0x27b1a9)]!==_0x17fc3a(_0xb10de5._0x40a8c7,0xed,0x136,0x10c)||_0x26854f[_0x17fc3a(0xf9,-_0xb10de5._0x2042b3,-0xc7,-0x49)][_0x162976(_0xb10de5._0x524148,_0xb10de5._0x1bfdef,0x59c,0x69e)]()['length']===0x0)throw new ToolExecutionError(_0x162976(_0xb10de5._0xf9643a,_0xb10de5._0x38ee7d,0x5de,0x4d6)+(_0x2720b7+0x1)+':\x20content\x20required',{'error':_0x162976(_0xb10de5._0x24d5a4,0x383,0x55e,_0xb10de5._0x382724)});if(!isTodoStatus(_0x26854f['status']))throw new ToolExecutionError(_0x162976(0x601,0x5d5,0x426,0x4d6)+(_0x2720b7+0x1)+_0x162976(0x4bd,_0xb10de5._0xb9eda3,_0xb10de5._0x3db9ce,0x4dc),{'error':_0x162976(_0xb10de5._0x3539f2,0x729,_0xb10de5._0x350e46,0x619)});if(!isTodoPriority(_0x26854f['priority']))throw new ToolExecutionError(_0x17fc3a(_0xb10de5._0x5d4dcd,-0x77,_0xb10de5._0x84eee1,0x0)+(_0x2720b7+0x1)+_0x17fc3a(0x11,-0x117,0x3b,-0x4a),{'error':_0x162976(0x462,0x4ac,_0xb10de5._0x155b22,0x591)});}function _0x162976(_0x5ec77e,_0x565039,_0x4a8f6d,_0xf8e3c9){return _0x17d408(_0x5ec77e-0x12,_0x565039-_0x6021a7._0x1a749a,_0x4a8f6d,_0xf8e3c9-0x412);}function _0x17fc3a(_0x50517c,_0x2e8591,_0x278a43,_0x47870a){return _0x17d408(_0x50517c-0xf8,_0x2e8591-_0x1b037d._0x311ff5,_0x2e8591,_0x47870a- -0xc4);}const _0x4069b3=_0x429e8a['todos']['map'](_0x48529e=>_0x48529e['id']);if(new Set(_0x4069b3)['size']!==_0x4069b3['length'])throw new ToolExecutionError(_0x17fc3a(0x20,-_0xb10de5._0x429941,_0xb10de5._0x145149,_0xb10de5._0x4d6ff2),{'error':_0x17fc3a(-0x11a,-0x13e,0xe7,_0xb10de5._0x1f99eb)});}function createStatsProgress(_0x37effc){const _0x193334={_0x20912d:0x119,_0x31a78c:0x210,_0x2a58a8:0x67c,_0x3b8cad:0x642,_0x150a98:0xc7,_0x5f5585:0xa3},_0x18d645={_0x165636:0x116},_0xa49034={_0x5d0cbb:0xd8};function _0x208c58(_0x2d2e7c,_0xf1b7e8,_0x13eaf9,_0x417f2f){return _0x1a7bb7(_0x2d2e7c-0x12a,_0x417f2f- -0x22c,_0x13eaf9-_0xa49034._0x5d0cbb,_0xf1b7e8);}function _0x82eca0(_0x11345c,_0x51aa18,_0x583f4d,_0x21bb54){return _0x17d408(_0x11345c-0x174,_0x51aa18-_0x18d645._0x165636,_0x11345c,_0x21bb54-0x431);}return _0x37effc[_0x208c58(-0x171,-0x34d,-_0x193334._0x20912d,-_0x193334._0x31a78c)]>0x0?Math[_0x82eca0(_0x193334._0x2a58a8,0x72d,_0x193334._0x3b8cad,0x6c5)](_0x37effc[_0x208c58(-_0x193334._0x150a98,-_0x193334._0x5f5585,0x1e2,0x6b)]/_0x37effc['total']*0x64)+'%':'0%';}function createReminderItems(_0x6d0412){const _0x407c6f={_0x55d706:0x738,_0x52185c:0x5f9,_0x11601d:0x5c6},_0x477633={_0x352860:0x4c5},_0x5b7eea={_0x1e371c:0x131,_0x1cf7ff:0x76};function _0x373ebb(_0x8b878a,_0x125c43,_0x15433b,_0x6200ab){return _0x17d408(_0x8b878a-_0x5b7eea._0x1e371c,_0x125c43-_0x5b7eea._0x1cf7ff,_0x6200ab,_0x15433b- -0x217);}function _0x255a8d(_0x2f034a,_0x3ddc58,_0x18a6a1,_0x7d807a){return _0x1a7bb7(_0x2f034a-0x1db,_0x18a6a1-_0x477633._0x352860,_0x18a6a1-0x17b,_0x3ddc58);}return _0x6d0412[_0x255a8d(_0x407c6f._0x55d706,0x68b,_0x407c6f._0x52185c,_0x407c6f._0x11601d)](_0x1f9dbd=>({'content':_0x1f9dbd[_0x255a8d(0x42a,0x5f3,0x4b4,0x3ea)],'status':_0x1f9dbd['status'],'id':_0x1f9dbd['id']}));}function createStructuredResult(_0x278c9e,_0xb5c38f,_0x1ae1ad,_0x252e06){const _0x2a9fdc={_0x5256a5:0x49e,_0xa7a65e:0x461,_0x260327:0x41e,_0x2d5f15:0x439},_0x553e4c={_0x4a1a13:0x172};function _0x28cb36(_0x10e9c6,_0x313fa8,_0x1f0388,_0x23dbe7){return _0x17d408(_0x10e9c6-0x1c1,_0x313fa8-0x8d,_0x10e9c6,_0x23dbe7-0x25e);}function _0xf7b526(_0x5dca96,_0x1a781d,_0x31b226,_0x512600){return _0x17d408(_0x5dca96-0x51,_0x1a781d-_0x553e4c._0x4a1a13,_0x31b226,_0x1a781d-0x1c4);}return{'allCompleted':_0x252e06,'items':_0xb5c38f[_0x28cb36(_0x2a9fdc._0x5256a5,0x315,_0x2a9fdc._0xa7a65e,_0x2a9fdc._0x260327)](_0x466cd3=>({'id':_0x466cd3['id'],'content':_0x466cd3[_0x28cb36(0x229,0x350,0x326,0x2d9)],'status':_0x466cd3[_0x28cb36(0x637,0x4d1,0x468,0x50b)],'priority':_0x466cd3[_0x28cb36(0x45f,0x4bc,0x3f4,0x525)],'createdAt':_0x466cd3['createdAt']})),'progress':createStatsProgress(_0x1ae1ad),'recentChanges':!![],'sessionId':_0x278c9e,'stats':_0x1ae1ad,'todosWritten':_0xb5c38f[_0xf7b526(_0x2a9fdc._0x2d5f15,0x2cf,0x214,0x225)]};}function createOutputText(_0x45e911,_0x42e143){const _0x435431={_0x58abef:0x36d,_0x4ff077:0x239,_0x3a3910:0x27a,_0x17fa8a:0x459,_0x3fbe20:0x4a2,_0x320276:0x215,_0x593542:0x261,_0x1a9be0:0x2c2,_0x932208:0x40a,_0x1f64bf:0x293,_0x26a244:0x340,_0x5bbbdb:0x470,_0x1a634a:0x3c9,_0xf6b5c0:0x27b,_0x372ccd:0x149},_0x59da03={_0x4e6186:0x25},_0x41f689={_0x2b5bf8:0x1a7,_0x428184:0xea,_0x3ee959:0xa};function _0x1378ca(_0x51e3af,_0x21db0d,_0x3f9bd8,_0x82e96e){return _0x1a7bb7(_0x51e3af-_0x41f689._0x2b5bf8,_0x3f9bd8-_0x41f689._0x428184,_0x3f9bd8-_0x41f689._0x3ee959,_0x82e96e);}function _0x70b959(_0x49f0c4,_0x442c59,_0x51ba64,_0x15f0fc){return _0x17d408(_0x49f0c4-_0x59da03._0x4e6186,_0x442c59-0x15,_0x49f0c4,_0x15f0fc-0x255);}const _0x1890a0=JSON[_0x1378ca(_0x435431._0x58abef,_0x435431._0x4ff077,_0x435431._0x3a3910,0x18c)](createReminderItems(_0x45e911));if(_0x42e143)return'All\x20'+_0x45e911[_0x70b959(_0x435431._0x17fa8a,0x449,_0x435431._0x3fbe20,0x360)]+_0x70b959(_0x435431._0x320276,0x314,_0x435431._0x593542,_0x435431._0x1a9be0)+_0x1890a0+_0x70b959(_0x435431._0x932208,0x353,_0x435431._0x1f64bf,_0x435431._0x26a244);return _0x70b959(_0x435431._0x5bbbdb,_0x435431._0x1a634a,0x45a,0x455)+_0x1890a0+_0x1378ca(0xc7,_0x435431._0xf6b5c0,_0x435431._0x372ccd,0xb7);}function createTodoWriteTool(_0x174238=new TodoStore()){const _0x26241b={_0x31d867:0x200,_0x2e52f9:0xde,_0x3deb18:0x8b,_0x3116db:0x181,_0x21ee87:0x4a,_0x33260a:0x181,_0x52a9b6:0x2c1,_0x33f2fb:0x47,_0x22f986:0x32a,_0x3cba24:0x36d,_0x48402e:0x47,_0x21f84f:0x16f,_0x2f7715:0x27a,_0x1d3c02:0x371,_0x1157ac:0x297,_0x4267c7:0x392,_0x1b7d1e:0x2da,_0x169f01:0x1ed,_0x304175:0x49a},_0x2f7536={_0x32e791:0x48e,_0x1cd7d1:0x442,_0x319550:0x32c,_0x376203:0x530,_0x396440:0x446,_0x2ccef5:0x2da,_0x2ee854:0x4d3,_0x2d02f8:0x33f,_0x4cb684:0x3e2,_0x3bf351:0x643,_0x32ffaf:0x561},_0x1dacbd={_0x533ef8:0x10},_0x132ea7={_0x13305e:0x1a2,_0x5cade7:0x1f9},_0x2ec947={_0x297202:0x2c},_0x20f0f6={_0xf4e53f:0x189};function _0x387999(_0x471fee,_0x18ea0b,_0x45a43f,_0x163e74){return _0x17d408(_0x471fee-0x1d7,_0x18ea0b-0x30,_0x45a43f,_0x18ea0b- -_0x20f0f6._0xf4e53f);}function _0x1bcbf0(_0x46afdb,_0x6b2de3,_0x1ebd61,_0x3f2ffd){return _0x17d408(_0x46afdb-0x104,_0x6b2de3-_0x2ec947._0x297202,_0x3f2ffd,_0x1ebd61-0xaa);}return defineTool({'name':'TodoWrite','description':_0x387999(_0x26241b._0x31d867,_0x26241b._0x2e52f9,0x60,-_0x26241b._0x3deb18),'inputSchema':{'type':_0x387999(0x2af,_0x26241b._0x3116db,0x118,_0x26241b._0x21ee87),'properties':{'todos':{'type':'array','items':{'type':_0x387999(0x28,_0x26241b._0x33260a,0x1f4,_0x26241b._0x52a9b6),'properties':{'content':{'type':_0x387999(0x32,_0x26241b._0x33f2fb,0x178,-0xe9)},'status':{'type':_0x1bcbf0(0x396,_0x26241b._0x22f986,0x27a,_0x26241b._0x3cba24)},'priority':{'type':_0x387999(0x3b,_0x26241b._0x48402e,-0xc1,0x106)},'id':{'type':_0x1bcbf0(0x199,_0x26241b._0x21f84f,_0x26241b._0x2f7715,_0x26241b._0x1d3c02)},'createdAt':{'type':'string'}},'required':['content',_0x1bcbf0(0x47a,_0x26241b._0x1157ac,0x357,_0x26241b._0x4267c7),_0x1bcbf0(0x2b7,_0x26241b._0x1b7d1e,_0x26241b._0x1d3c02,0x241),'id']}}},'required':[_0x1bcbf0(_0x26241b._0x169f01,_0x26241b._0x304175,0x337,0x367)]},async *'execute'(_0x238303,_0x3d1d1d){const _0x1fda38=_0x238303;function _0x45c847(_0x434ff8,_0x584bbd,_0x4187c7,_0x526e3f){return _0x1bcbf0(_0x434ff8-_0x132ea7._0x13305e,_0x584bbd-0x1db,_0x584bbd-_0x132ea7._0x5cade7,_0x434ff8);}validateTodos(_0x1fda38);const _0x3806d2=_0x3d1d1d[_0x45c847(0x37f,_0x2f7536._0x32e791,0x4f3,0x329)]||'default',_0xc61624=new Date()[_0x56de1f(0x31b,0x48c,_0x2f7536._0x1cd7d1,_0x2f7536._0x319550)](),_0x2e72ec=_0x1fda38[_0x45c847(0x4af,_0x2f7536._0x376203,0x555,0x488)]['map'](_0x33693f=>({'id':_0x33693f['id'],'content':_0x33693f['content'],'status':_0x33693f[_0x56de1f(0x45d,0x6d9,0x584,0x55a)],'priority':_0x33693f[_0x56de1f(0x60c,0x515,0x59e,0x443)],'sessionId':_0x3806d2,'createdAt':_0x33693f[_0x56de1f(0x3b4,0x42c,0x357,0x221)]||_0xc61624,'updatedAt':_0xc61624}));_0x174238[_0x45c847(0x487,_0x2f7536._0x396440,_0x2f7536._0x2ccef5,0x432)](_0x3806d2,_0x2e72ec);const _0x1cf807=_0x174238[_0x45c847(0x548,0x4a9,_0x2f7536._0x2ee854,_0x2f7536._0x2d02f8)](_0x3806d2);function _0x56de1f(_0x555715,_0xc85aae,_0x4b4d3a,_0x450e95){return _0x1bcbf0(_0x555715-0x1ec,_0xc85aae-_0x1dacbd._0x533ef8,_0x4b4d3a-0x22d,_0x555715);}const _0x2fa558=_0x2e72ec[_0x56de1f(0x337,0x27d,_0x2f7536._0x4cb684,0x4ae)]>0x0&&_0x2e72ec[_0x56de1f(0x5aa,_0x2f7536._0x3bf351,_0x2f7536._0x32ffaf,0x559)](_0x32ea3b=>_0x32ea3b[_0x56de1f(0x5a6,0x53b,0x584,0x65a)]===_0x45c847(0x6a8,0x5c6,0x560,0x5ed));return createToolOutput(createOutputText(_0x2e72ec,_0x2fa558),createStructuredResult(_0x3806d2,_0x2e72ec,_0x1cf807,_0x2fa558));}});}import{mkdir as _0x5baf97,writeFile as _0x2a2370}from'fs/promises';import*as _0x1dca83 from'path';function sanitizeFileName(_0x1c6f13){return _0x1c6f13['replace'](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x1ddf0e,_0x11e3e9){const _0x2206c7={_0x5f85d1:0x206,_0x23a384:0xb8,_0x51281a:0x166,_0x55b9ae:0x25d,_0x143ddf:0x3f7,_0x26dda6:0x120,_0x871db4:0x152,_0x3e60f3:0x7a,_0x3a77d9:0x199,_0x4039c5:0x1bc,_0x272597:0x31b,_0x198c0b:0x1db,_0x4f6ded:0x1,_0x2caac9:0x16c,_0x3b0c0a:0x1,_0x6b89f8:0x370,_0xd41a4e:0x373,_0x71e5d1:0x2f0,_0x2933b3:0xeb,_0x131ebd:0x38,_0x377842:0x8f,_0x244549:0x61,_0x2a152c:0x143,_0x207ab0:0x116,_0x172cf5:0x48e,_0x4d7acd:0x3c9,_0x443239:0x410,_0xd92501:0x45a,_0x785b27:0x335,_0x3348fa:0x3ff,_0x38edee:0x441,_0x22227f:0x2e5,_0x34726d:0x3a7,_0x59a1c7:0x256,_0x218f29:0x486,_0x1d6ecf:0x544,_0xef3da4:0x558,_0x2daeb6:0x548,_0x5b7794:0x3d0,_0x20ea90:0x2f7,_0x130fbc:0x316,_0x2f2857:0xac,_0x4fd6ef:0x8b,_0x27af93:0x11,_0x2863e9:0x507,_0x128cd3:0x577,_0x28c44c:0x3a4,_0x2e032f:0x333,_0x1057b8:0x3e7,_0x58bf3a:0x1eb,_0x1e7426:0x1c6,_0x3f38c9:0x8e,_0x3930f0:0xc0},_0x21deb5={_0x1c75db:0x26e},_0xf83701={_0x50775a:0x1c1},{maxBytes:_0xa4abb0,sessionDir:_0x535353}=_0x11e3e9;if(!_0x1ddf0e[_0x737468(-_0x2206c7._0x5f85d1,_0x2206c7._0x23a384,-0x195,-0xc1)]||Buffer[_0x51c47a(0x24b,_0x2206c7._0x51281a,0x3ad,0x3c5)](_0x1ddf0e[_0x51c47a(0x2e5,_0x2206c7._0x55b9ae,_0x2206c7._0x143ddf,0x18a)],_0x737468(_0x2206c7._0x26dda6,0x1b7,-0x74,0xe0))<=_0xa4abb0)return _0x1ddf0e;const _0x44017b=Buffer[_0x51c47a(0x24b,0x3b5,0x2f1,_0x2206c7._0x871db4)](_0x1ddf0e[_0x51c47a(0x2e5,0x2de,0x360,0x365)],_0x51c47a(0x486,0x463,0x5e8,0x49b));function _0x737468(_0x138086,_0x17ce4c,_0x7beb36,_0x4da1d6){return _0x17d408(_0x138086-_0xf83701._0x50775a,_0x17ce4c-0x1eb,_0x7beb36,_0x4da1d6- -0x1c4);}if(!_0x535353){const _0x3f8adb=_0x1ddf0e[_0x737468(-_0x2206c7._0x3e60f3,-_0x2206c7._0x3a77d9,-_0x2206c7._0x4039c5,-0xc1)][_0x51c47a(_0x2206c7._0x272597,0x265,_0x2206c7._0x198c0b,0x360)](0x0,_0xa4abb0);return{..._0x1ddf0e,'output':_0x3f8adb+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0xa4abb0+_0x737468(0x122,-_0x2206c7._0x4f6ded,_0x2206c7._0x2caac9,-_0x2206c7._0x3b0c0a)+_0x44017b+_0x51c47a(_0x2206c7._0x6b89f8,_0x2206c7._0xd41a4e,0x4de,_0x2206c7._0x71e5d1)),'meta':{..._0x1ddf0e[_0x737468(-_0x2206c7._0x2933b3,-_0x2206c7._0x131ebd,_0x2206c7._0x377842,_0x2206c7._0x244549)],'truncated':!![],'originalBytes':_0x44017b,'transforms':[..._0x1ddf0e[_0x737468(0x139,_0x2206c7._0x2a152c,-_0x2206c7._0x207ab0,0x61)][_0x51c47a(_0x2206c7._0x172cf5,_0x2206c7._0x4d7acd,_0x2206c7._0x443239,_0x2206c7._0xd92501)],'tool-output-offload']}};}const _0x185827=_0x1ddf0e['toolName']+'_'+sanitizeFileName(_0x1ddf0e['callId'])+_0x51c47a(_0x2206c7._0x785b27,0x2d1,_0x2206c7._0x3348fa,_0x2206c7._0x38edee),_0x1d7c53=_0x1dca83['join'](_0x535353,_0x185827);await _0x5baf97(_0x535353,{'recursive':!![]}),await _0x2a2370(_0x1d7c53,_0x1ddf0e[_0x51c47a(_0x2206c7._0x22227f,0x2a2,_0x2206c7._0x34726d,_0x2206c7._0x59a1c7)],_0x51c47a(_0x2206c7._0x218f29,_0x2206c7._0x1d6ecf,_0x2206c7._0xef3da4,_0x2206c7._0x2daeb6));function _0x51c47a(_0x20596c,_0x22c5f4,_0x16bb27,_0xc776a1){return _0x1a7bb7(_0x20596c-0x53,_0x20596c-_0x21deb5._0x1c75db,_0x16bb27-0xf1,_0xc776a1);}let _0x25ecaa=_0x1ddf0e[_0x51c47a(_0x2206c7._0x22227f,_0x2206c7._0x5b7794,_0x2206c7._0x20ea90,_0x2206c7._0x130fbc)][_0x737468(-_0x2206c7._0x2f2857,-0xac,-0x47,-_0x2206c7._0x4fd6ef)](0x0,_0xa4abb0);const _0x56d97c=_0x25ecaa[_0x737468(0x232,_0x2206c7._0x27af93,0x1af,0x152)]('\x0a');_0x56d97c>_0xa4abb0*0.5&&(_0x25ecaa=_0x25ecaa['slice'](0x0,_0x56d97c));const _0x4b6e5e=['','<system-reminder>','Tool\x20output\x20was\x20truncated\x20at\x20'+_0xa4abb0+_0x51c47a(0x4df,_0x2206c7._0x2863e9,_0x2206c7._0x128cd3,0x61c)+_0x44017b+_0x51c47a(_0x2206c7._0x28c44c,0x4e7,0x4e8,_0x2206c7._0x2e032f),_0x51c47a(_0x2206c7._0x1057b8,0x2dc,0x454,0x4ef)+_0x1d7c53,'Use\x20FileRead\x20with\x20lineStart/lineEnd\x20to\x20inspect\x20specific\x20sections\x20of\x20the\x20full\x20output.','</system-reminder>'][_0x737468(_0x2206c7._0x377842,-_0x2206c7._0x58bf3a,-_0x2206c7._0x1e7426,-_0x2206c7._0x3f38c9)]('\x0a');return{..._0x1ddf0e,'output':_0x25ecaa+_0x4b6e5e,'meta':{..._0x1ddf0e['meta'],'truncated':!![],'originalBytes':_0x44017b,'transforms':[..._0x1ddf0e[_0x737468(0x10f,-0x56,_0x2206c7._0x3930f0,0x61)]['transforms'],'tool-output-offload']}};}function createUpdateTopicTool(){const _0x3a8e96={_0x1a13c1:0xea,_0x4851ea:0x14,_0x273fab:0x25e,_0x14fd97:0x2a1,_0x1eaf34:0xd9,_0x1b7f0c:0xd1,_0x28bd81:0x216},_0x5a3210={_0x8fcc3d:0x433,_0x621e8a:0x2f8,_0x491c2a:0x32e,_0x28d2c1:0x3b3,_0x766bf3:0x348,_0x598d5f:0x33c,_0x2097f5:0x35d,_0x2a5f11:0x3bb,_0xd3a0c9:0x190,_0x1cdbfd:0x2ca,_0x402f28:0x2d1,_0x3841d1:0x17d,_0x2d3161:0x1e9},_0x26005e={_0x18deff:0xd7},_0x5d96ef={_0x158aaf:0x1ad,_0x4001ae:0x188},_0x436e14={_0x4eb3af:0xea};function _0xa41ab8(_0x4e92e1,_0x57483b,_0x3f53f5,_0x4bcb6a){return _0x1a7bb7(_0x4e92e1-_0x436e14._0x4eb3af,_0x4bcb6a-0x23,_0x3f53f5-0x1a1,_0x57483b);}function _0xeaaa2a(_0x1d8cc5,_0x14a90f,_0x2da61a,_0x45d88f){return _0x1a7bb7(_0x1d8cc5-_0x5d96ef._0x158aaf,_0x45d88f-0xbf,_0x2da61a-_0x5d96ef._0x4001ae,_0x2da61a);}return defineTool({'name':_0xa41ab8(-0x140,_0x3a8e96._0x1a13c1,-0x10,-_0x3a8e96._0x4851ea),'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':_0xa41ab8(_0x3a8e96._0x273fab,0x312,0x26c,_0x3a8e96._0x14fd97),'properties':{'topic':{'type':_0xa41ab8(0x2d1,_0x3a8e96._0x1eaf34,0x1ea,0x167)}},'required':[_0xa41ab8(0x2ad,_0x3a8e96._0x1b7f0c,0x184,_0x3a8e96._0x28bd81)]},async *'execute'(_0x389c48,_0x1804ce){const _0x32b376={_0x18db55:0xc2,_0x2f4389:0x12b},{topic:_0x44c73d}=_0x389c48;function _0x99c00d(_0x25b4ab,_0x37556a,_0xe0caa9,_0x2fe2b3){return _0xeaaa2a(_0x25b4ab-0x33,_0x37556a-_0x32b376._0x18db55,_0x37556a,_0xe0caa9-_0x32b376._0x2f4389);}if(typeof _0x44c73d!==_0x99c00d(_0x5a3210._0x8fcc3d,_0x5a3210._0x621e8a,_0x5a3210._0x491c2a,_0x5a3210._0x28d2c1)||_0x44c73d[_0x99c00d(_0x5a3210._0x491c2a,_0x5a3210._0x766bf3,0x3ea,0x401)]()['length']===0x0)throw new ToolExecutionError('topic\x20must\x20be\x20a\x20non-empty\x20string',{'error':_0x1dd133(_0x5a3210._0x598d5f,0x217,0x246,_0x5a3210._0x2097f5)});const _0x492ab8=_0x44c73d[_0x1dd133(_0x5a3210._0x2a5f11,_0x5a3210._0xd3a0c9,0x21c,_0x5a3210._0x1cdbfd)]();_0x1804ce[_0x1dd133(_0x5a3210._0x402f28,_0x5a3210._0x3841d1,0x356,_0x5a3210._0x2d3161)]?.(_0x492ab8);function _0x1dd133(_0x33bc1e,_0x5e3618,_0x4bcc0a,_0xa9739c){return _0xa41ab8(_0x33bc1e-0x4d,_0x5e3618,_0x4bcc0a-_0x26005e._0x18deff,_0xa9739c-0xa7);}return yield createToolOutput(_0x1dd133(0x143,0x277,0x20b,0x17b)+_0x492ab8+'\x22',{'topic':_0x492ab8}),void 0x0;}});}import{readFile as _0x1478f8,stat as _0x4ddac1}from'fs/promises';import*as _0x2c34da from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x1a7bb7(0x269,0x207,0x207,0x1c3),'high',_0x1a7bb7(0xa5,0x1f5,0x12e,0x303),'original']),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x33fdb9,_0x36ff5e){const _0x370d46={_0x409858:0x708,_0x258138:0x5ca,_0x48b047:0x2c7,_0x30bdc6:0x239,_0x119ed3:0x640,_0x4e8aa5:0x651,_0x567581:0x6e5,_0x12d255:0x4ed,_0x2bf748:0x5c4,_0x162c8b:0x464,_0x2e5576:0x499,_0x1f442c:0x442,_0x2cacfa:0x52a,_0x41eae3:0x576,_0x2d7657:0x434,_0xcc0ad9:0x7c6,_0x4570dd:0x3e0,_0x33f511:0x35a,_0x90e16e:0x535,_0x193d66:0x6a2,_0x2fa1ae:0x758,_0x465d01:0x769,_0x5e6063:0x71d,_0x4292f3:0x20b,_0x5123c0:0x18a,_0x33cabf:0x3de,_0x4cb04a:0x138,_0x30cd1a:0x32d,_0x44ab0e:0x28d,_0x1515d9:0xe1,_0x3487ad:0x1d4,_0x39d85e:0x2c8,_0x316baa:0x11f,_0xd8c142:0x138,_0x3e3c11:0x176,_0x378421:0x123,_0x291115:0x221,_0x4ed6b2:0x41c,_0x515f21:0x50d,_0x3697e7:0x3b3,_0x4975d8:0x32b,_0xcc38c1:0x309,_0x5b6df3:0x3bf,_0x155216:0x47c,_0x2966ba:0x11b,_0x1ba65c:0x25e,_0x13b039:0x534,_0x569229:0x6eb,_0x9eb44b:0x14c,_0x5033ff:0x1a3},_0x3b879d={_0x3d8d5c:0x9,_0x572f74:0xb4},_0x83f542={_0x53488d:0x21};function _0x38dc5d(_0x16b581,_0x3f30f1,_0x35d1b8,_0x524765){return _0x17d408(_0x16b581-_0x83f542._0x53488d,_0x3f30f1-0x12d,_0x16b581,_0x3f30f1-0x3cc);}if(_0x33fdb9[_0x38dc5d(0x584,0x651,_0x370d46._0x409858,_0x370d46._0x258138)](0x0,0x8)[_0x197ea7(0x383,0x250,_0x370d46._0x48b047,_0x370d46._0x30bdc6)](PNG_SIGNATURE))return'image/png';if(_0x33fdb9[0x0]===0xff&&_0x33fdb9[0x1]===0xd8&&_0x33fdb9[0x2]===0xff)return'image/jpeg';const _0x280920=_0x33fdb9[_0x38dc5d(_0x370d46._0x119ed3,_0x370d46._0x4e8aa5,_0x370d46._0x567581,_0x370d46._0x12d255)](0x0,0x6)['toString'](_0x38dc5d(0x350,0x4a2,0x420,0x5d7));if(_0x280920===_0x38dc5d(0x4ad,_0x370d46._0x2bf748,_0x370d46._0x162c8b,_0x370d46._0x2e5576)||_0x280920===_0x38dc5d(_0x370d46._0x1f442c,0x433,0x3cd,_0x370d46._0x2cacfa))return _0x38dc5d(0x6c3,_0x370d46._0x41eae3,_0x370d46._0x2d7657,0x642);if(_0x33fdb9['subarray'](0x0,0x4)[_0x38dc5d(0x6ce,0x694,0x69e,_0x370d46._0xcc0ad9)](_0x38dc5d(_0x370d46._0x4570dd,0x4a2,_0x370d46._0x33f511,0x3e3))===_0x38dc5d(0x3eb,_0x370d46._0x90e16e,0x42e,_0x370d46._0x193d66)&&_0x33fdb9[_0x38dc5d(0x700,0x651,0x534,_0x370d46._0x2fa1ae)](0x8,0xc)[_0x38dc5d(0x7e2,0x694,_0x370d46._0x465d01,_0x370d46._0x5e6063)](_0x197ea7(0x2be,_0x370d46._0x4292f3,0x1d4,_0x370d46._0x5123c0))==='WEBP')return _0x197ea7(_0x370d46._0x33cabf,_0x370d46._0x4cb04a,_0x370d46._0x30cd1a,_0x370d46._0x44ab0e);const _0x50c438=_0x2c34da[_0x197ea7(0x338,0x1f0,_0x370d46._0x1515d9,0x1e3)](_0x36ff5e)[_0x197ea7(0x233,_0x370d46._0x3487ad,0x189,_0x370d46._0x39d85e)]();if(_0x50c438===_0x197ea7(0x97,_0x370d46._0x316baa,0x52,_0x370d46._0xd8c142))return _0x197ea7(_0x370d46._0x3e3c11,0x267,_0x370d46._0x378421,_0x370d46._0x291115);if(_0x50c438===_0x38dc5d(_0x370d46._0x4ed6b2,_0x370d46._0x515f21,0x5a4,_0x370d46._0x3697e7)||_0x50c438===_0x197ea7(_0x370d46._0x4975d8,0x36d,_0x370d46._0xcc38c1,_0x370d46._0x5b6df3))return _0x197ea7(0x43b,_0x370d46._0x155216,0x3c7,0x310);if(_0x50c438==='.gif')return _0x197ea7(0x239,_0x370d46._0x2966ba,_0x370d46._0x291115,_0x370d46._0x1ba65c);function _0x197ea7(_0x1e8c7c,_0xe0a6aa,_0x103563,_0x572641){return _0x17d408(_0x1e8c7c-_0x3b879d._0x3d8d5c,_0xe0a6aa-0x8c,_0x103563,_0x572641-_0x3b879d._0x572f74);}if(_0x50c438===_0x38dc5d(_0x370d46._0x13b039,0x5be,0x67b,_0x370d46._0x569229))return _0x197ea7(_0x370d46._0x9eb44b,_0x370d46._0x5033ff,0x209,_0x370d46._0x44ab0e);return void 0x0;}function normalizeDetail(_0x2082d){const _0x390d73={_0x24a912:0x128,_0x5695d0:0x5b,_0x25423c:0xa1,_0x2784c2:0x17d,_0x33231a:0xcd,_0x535e56:0x8d,_0x37a169:0x5b,_0x4c0726:0x177,_0x190782:0xe2,_0x5e0296:0x10b},_0x539413={_0x4f318c:0xa3,_0x1abc09:0x1eb},_0x3f3263={_0x474efb:0x95};function _0x5cbc7a(_0x1327cc,_0x184898,_0x49fa0c,_0x43aa42){return _0x17d408(_0x1327cc-0x54,_0x184898-_0x3f3263._0x474efb,_0x1327cc,_0x49fa0c- -_0x3f3263._0x474efb);}if(_0x2082d===void 0x0)return void 0x0;function _0xca6c07(_0x171443,_0x35aa9e,_0x1a7d5f,_0x17b6fc){return _0x17d408(_0x171443-0x181,_0x35aa9e-_0x539413._0x4f318c,_0x171443,_0x1a7d5f- -_0x539413._0x1abc09);}const _0x30f31e=_0x2082d[_0xca6c07(_0x390d73._0x24a912,-_0x390d73._0x5695d0,_0x390d73._0x25423c,-0xbf)]()['toLowerCase']();if(!SUPPORTED_DETAILS[_0xca6c07(_0x390d73._0x2784c2,_0x390d73._0x33231a,_0x390d73._0x535e56,-_0x390d73._0x37a169)](_0x30f31e))throw new ToolExecutionError(_0xca6c07(-_0x390d73._0x4c0726,-_0x390d73._0x190782,-0x19f,-_0x390d73._0x5e0296)+_0x2082d,{'detail':_0x2082d});return _0x30f31e;}function createViewFileTool(_0x185f8e={}){const _0x5e12e7={_0x4d5c45:0x47e,_0x4653a1:0x472,_0x35b584:0x3e8,_0x1414f0:0x34c,_0x53bc94:0x492,_0x1751dc:0x410,_0x49c137:0x364,_0x34c30e:0x2e9,_0x256399:0x3e9,_0x1deb2e:0x51b,_0x434e0c:0x5f7,_0x1bd07c:0x638,_0x4f04d4:0x651,_0x32559f:0x69b,_0x41ceca:0x70e,_0x1b7d91:0x517,_0x3d82f9:0x431,_0x105aae:0x5a8},_0x17b6f0={_0x11edd5:0x295,_0x249ad1:0x1f6,_0x10f72e:0xe2,_0x5aa426:0x13c,_0x3856ed:0x11d,_0x2a1722:0xf6,_0x16bad8:0x5d,_0x39b9f3:0x11d,_0x1c7eae:0x293,_0x2a40fc:0x2a9,_0x2c894c:0x2f8,_0x1b53a1:0xdd,_0x149e87:0x22,_0x553681:0xdd,_0x1ef829:0x105,_0x29997f:0x10d,_0x32abbe:0x21c,_0x2d96d6:0x22a,_0x432a3b:0x49,_0x70f463:0x13b,_0x7e5214:0x22f,_0x30ec55:0x1e2,_0x352e99:0x2ee,_0x4142b2:0x5d,_0x132f04:0x7b,_0x4aef3e:0xea,_0x179ca7:0x48,_0x224d08:0x185,_0x23bd24:0xb7,_0x3ff721:0x1e8,_0x5a99a8:0x119,_0x100d32:0x1b2,_0xb3129e:0x166,_0x181807:0x2e,_0x334498:0x227,_0x482d76:0x16a,_0xbea764:0xca,_0x3dc674:0x202,_0x40b2be:0x389,_0x1ca9d1:0x2c9,_0x159fdb:0x423,_0xdfbf44:0x2f7,_0x5321b1:0x124,_0x77702b:0x1f5,_0xf85326:0x129,_0xaee754:0x3c,_0x51db7:0x4f,_0x9b412d:0x12e,_0x2338d6:0x26f,_0x15c074:0xe4,_0x2bd68e:0x2ef,_0x49c74d:0x296,_0x43fc2d:0x1dd,_0x4f3f00:0x1a9,_0x200a35:0xdb,_0x5ad8fa:0x152,_0x17671c:0x27f,_0x4aef1d:0x2d7,_0x520fb8:0x1c2,_0x28b5c3:0x26d},_0x55047e={_0x472050:0x135},_0x1697ea={_0x1b6967:0x153,_0x34094e:0x347},_0x33ef30=_0x2c34da['resolve'](_0x185f8e[_0x3121cd(0x551,0x451,_0x5e12e7._0x4d5c45,0x641)]??process['cwd']()),_0xade295=(_0x185f8e['allowedDirs']??[])[_0x3121cd(_0x5e12e7._0x4653a1,0x5ce,_0x5e12e7._0x35b584,_0x5e12e7._0x1414f0)](_0x3833b2=>_0x2c34da[_0x12ec75(0x4cf,0x467,0x537,0x49b)](_0x3833b2)),_0x51a260=_0x185f8e[_0x3121cd(_0x5e12e7._0x53bc94,_0x5e12e7._0x1751dc,0x38c,_0x5e12e7._0x49c137)]??DEFAULT_MAX_BYTES;function _0x12ec75(_0x5b5b9d,_0x268995,_0x5ed3b1,_0x44078e){return _0x17d408(_0x5b5b9d-_0x1697ea._0x1b6967,_0x268995-0x1b5,_0x268995,_0x5b5b9d-_0x1697ea._0x34094e);}function _0x3121cd(_0x4bdf14,_0x4b147e,_0x3651ee,_0x2de0ed){return _0x17d408(_0x4bdf14-0x88,_0x4b147e-_0x55047e._0x472050,_0x2de0ed,_0x4bdf14-0x2b2);}const _0x24132d=_0x185f8e['name']??_0x3121cd(_0x5e12e7._0x34c30e,0x1e5,_0x5e12e7._0x256399,0x174);return defineTool({'name':_0x24132d,'description':_0x3121cd(_0x5e12e7._0x1deb2e,0x62c,_0x5e12e7._0x434e0c,_0x5e12e7._0x1bd07c),'inputSchema':{'type':_0x12ec75(_0x5e12e7._0x4f04d4,0x773,_0x5e12e7._0x32559f,_0x5e12e7._0x41ceca),'properties':{'path':{'type':'string'},'detail':{'type':_0x12ec75(_0x5e12e7._0x1b7d91,_0x5e12e7._0x3d82f9,0x622,_0x5e12e7._0x105aae)}},'required':['path']},async *'execute'(_0x36361a){const _0x217e1b={_0x447719:0x1f4,_0x5b097c:0x1eb},_0xad9264=resolveAllowedPath(_0x33ef30,_0xade295,_0x36361a[_0x20b635(-0xc8,-0x11d,-0xea,-_0x17b6f0._0x11edd5)]);await assertWorkspaceFile(_0xad9264);const _0x14439b=await _0x4ddac1(_0xad9264);function _0x20b635(_0x58971f,_0x294957,_0x14d491,_0x44463f){return _0x3121cd(_0x294957- -0x552,_0x294957-_0x217e1b._0x447719,_0x14d491-_0x217e1b._0x5b097c,_0x44463f);}if(_0x14439b['size']>_0x51a260)throw new ToolExecutionError(_0x20b635(-0xe5,-_0x17b6f0._0x249ad1,-_0x17b6f0._0x10f72e,-0x10d)+_0x36361a[_0x20b635(-_0x17b6f0._0x5aa426,-_0x17b6f0._0x3856ed,-_0x17b6f0._0x2a1722,-_0x17b6f0._0x16bad8)],{'path':_0x36361a[_0x20b635(-0x5d,-_0x17b6f0._0x39b9f3,-0x1a9,-_0x17b6f0._0x1c7eae)],'maxBytes':_0x51a260,'size':_0x14439b['size']});const _0x2c9890=await _0x1478f8(_0xad9264),_0x26a138=detectImageMediaType(_0x2c9890,_0xad9264);if(!_0x26a138)throw new ToolExecutionError(_0x20b635(-_0x17b6f0._0x2a40fc,-0x1e4,-_0x17b6f0._0x2c894c,-_0x17b6f0._0x1b53a1)+_0x36361a[_0x20b635(_0x17b6f0._0x149e87,-0x11d,-0x9f,-0x158)],{'path':_0x36361a[_0x20b635(-_0x17b6f0._0x553681,-0x11d,-0x3c,-0x15d)],'supported':['.gif',_0x3653bd(-_0x17b6f0._0x1ef829,-0x164,-0x17a,-_0x17b6f0._0x149e87),'.jpg',_0x20b635(-_0x17b6f0._0x29997f,-_0x17b6f0._0x32abbe,-_0x17b6f0._0x2d96d6,-0x323),_0x3653bd(-0x1e8,-0x39,-_0x17b6f0._0x432a3b,-_0x17b6f0._0x70f463)]});const _0xec444d=normalizeDetail(_0x36361a[_0x3653bd(-_0x17b6f0._0x7e5214,-0x199,-_0x17b6f0._0x30ec55,-_0x17b6f0._0x352e99)]);function _0x3653bd(_0x2bf56e,_0x125a0a,_0x3ed49b,_0x1a96f1){return _0x3121cd(_0x1a96f1- -0x5df,_0x125a0a-0xf1,_0x3ed49b-0x1d0,_0x3ed49b);}const _0x74b39e=['Viewed\x20image\x20file:\x20'+_0x36361a['path'],_0x3653bd(_0x17b6f0._0x4142b2,-0x11e,-0x11b,-_0x17b6f0._0x132f04)+_0x26a138,_0x20b635(-0x198,-_0x17b6f0._0x4aef3e,-0x131,_0x17b6f0._0x179ca7)+_0x14439b['size']+_0x20b635(-_0x17b6f0._0x224d08,-_0x17b6f0._0x23bd24,-_0x17b6f0._0x3ff721,-_0x17b6f0._0x5a99a8)][_0x3653bd(-0x2c9,-_0x17b6f0._0x100d32,-_0x17b6f0._0xb3129e,-0x1b9)](_0xec444d?[_0x20b635(_0x17b6f0._0x181807,-0x115,-_0x17b6f0._0x334498,-0xb9)+_0xec444d]:[])[_0x20b635(-0x144,-_0x17b6f0._0x482d76,-_0x17b6f0._0xbea764,-_0x17b6f0._0x3dc674)]('\x0a'),_0x16b6c5=[{'type':_0x3653bd(-_0x17b6f0._0x40b2be,-_0x17b6f0._0x1ca9d1,-_0x17b6f0._0x159fdb,-_0x17b6f0._0xdfbf44),'source':{'type':_0x3653bd(-0x21f,-_0x17b6f0._0x5321b1,-_0x17b6f0._0x77702b,-_0x17b6f0._0xf85326),'media_type':_0x26a138,'data':_0x2c9890['toString'](_0x20b635(_0x17b6f0._0xaee754,-0x9c,0x42,_0x17b6f0._0x51db7))}},{'type':'text','text':_0x74b39e}];return yield createToolOutput(_0x74b39e,{'path':_0x36361a[_0x20b635(-_0x17b6f0._0x9b412d,-0x11d,-_0x17b6f0._0x2338d6,-_0x17b6f0._0x15c074)],'resolvedPath':_0xad9264,'created':_0x14439b[_0x3653bd(-0x3c4,-_0x17b6f0._0x2bd68e,-0x12f,-_0x17b6f0._0x49c74d)][_0x20b635(-0x23e,-0x135,-0x1d7,-0xd6)](),'modified':_0x14439b[_0x20b635(-_0x17b6f0._0x43fc2d,-_0x17b6f0._0x4f3f00,-_0x17b6f0._0x200a35,-_0x17b6f0._0x5ad8fa)][_0x3653bd(-_0x17b6f0._0x17671c,-_0x17b6f0._0x4aef1d,-0x1f0,-_0x17b6f0._0x520fb8)](),'size':_0x14439b[_0x3653bd(-0x260,-_0x17b6f0._0x28b5c3,-0x308,-0x1b3)],'mimeType':_0x26a138,'encoding':'base64',..._0xec444d?{'detail':_0xec444d}:{}},_0x16b6c5),void 0x0;}});}function _0x1a7bb7(_0x44060d,_0x5c1428,_0x2040ec,_0x59247a){return _0x2414(_0x5c1428- -0xe0,_0x59247a);}import _0x44b643 from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x5393e3=>{const _0x13865f={_0x3f26f2:0x2cd,_0x18c707:0x3d6},_0x50895b={_0x10c445:0x1f0,_0x1e3203:0x1a7};function _0x2cbbba(_0x3e2e27,_0x484eb7,_0x2241a9,_0x56f0b8){return _0x17d408(_0x3e2e27-_0x50895b._0x10c445,_0x484eb7-0xf,_0x2241a9,_0x3e2e27-_0x50895b._0x1e3203);}const {lookup:_0xf4d82e}=await import(_0x2cbbba(_0x13865f._0x3f26f2,0x41d,_0x13865f._0x18c707,0x390));return _0xf4d82e(_0x5393e3,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0x75586c){const _0x5265a2={_0x1b33e7:0x517,_0x1714d5:0x3cc,_0x389e64:0x616,_0x350182:0x705},_0x1d86c2={_0x429885:0x19c,_0x4ede56:0x34d,_0x4e3521:0x17};function _0x32b2df(_0x39d752,_0x2a3450,_0x10add3,_0x3165c9){return _0x1a7bb7(_0x39d752-_0x1d86c2._0x429885,_0x3165c9-_0x1d86c2._0x4ede56,_0x10add3-_0x1d86c2._0x4e3521,_0x39d752);}const _0x5736b9=_0x75586c[_0xd3d2e(0x50f,0x590,0x505,0x3b1)]('.');function _0xd3d2e(_0x368713,_0x1af8c7,_0x5d05f4,_0x5d40fe){return _0x17d408(_0x368713-0x88,_0x1af8c7-0xc0,_0x5d05f4,_0x368713-0x41b);}if(_0x5736b9[_0x32b2df(0x4fe,_0x5265a2._0x1b33e7,0x470,_0x5265a2._0x1714d5)]!==0x4)return null;let _0xb32d14=0x0;for(const _0x20f668 of _0x5736b9){if(!/^\d{1,3}$/[_0xd3d2e(0x6b6,_0x5265a2._0x389e64,_0x5265a2._0x350182,0x77a)](_0x20f668))return null;const _0x3f90e7=Number(_0x20f668);if(_0x3f90e7>0xff)return null;_0xb32d14=_0xb32d14*0x100+_0x3f90e7;}return _0xb32d14>>>0x0;}function isBlockedIpv4(_0x54667c){const _0x16c947={_0x2bac59:0x46d,_0x5aadde:0x40a,_0x450046:0x3ef,_0x225ac2:0x307,_0x5cf5aa:0x567,_0x138a2a:0x4da,_0x181f95:0x490,_0x5389e7:0x86f,_0x295014:0x585,_0xd94ea2:0x6fb,_0x52eb4d:0x3e0,_0x37004e:0x440,_0x29badf:0x57e,_0x4ab9e1:0x5e5,_0x384724:0x6e7,_0x179771:0x20c,_0x183f41:0x2fe,_0x9c0201:0x36e,_0x1db254:0x3fe,_0x4da5e0:0x32d,_0x2029cd:0x48b,_0x10d57f:0x54d},_0x300657={_0x13ab9c:0x14e,_0x124753:0x3da},_0x505599={_0x28a43e:0x19c,_0xc45147:0x131};function _0x502aa4(_0xa2e93f,_0x48e9fc,_0xf442f3,_0x238674){return _0x17d408(_0xa2e93f-_0x505599._0x28a43e,_0x48e9fc-_0x505599._0xc45147,_0xf442f3,_0xa2e93f-0x17f);}const _0x43b0d0=ipv4ToInt(_0x54667c);if(_0x43b0d0===null)return!![];const _0x1163dd=(_0x2853ff,_0x535972)=>{const _0x2fe651=ipv4ToInt(_0x2853ff);if(_0x2fe651===null)return![];const _0x1e3187=_0x535972===0x0?0x0:0xffffffff<<0x20-_0x535972>>>0x0;return(_0x43b0d0&_0x1e3187)===(_0x2fe651&_0x1e3187);};function _0x224bb1(_0x30a94e,_0x39242a,_0x4f2066,_0x463e37){return _0x17d408(_0x30a94e-_0x300657._0x13ab9c,_0x39242a-0x192,_0x39242a,_0x4f2066-_0x300657._0x124753);}return _0x1163dd(_0x502aa4(0x3e9,0x2a8,_0x16c947._0x2bac59,_0x16c947._0x5aadde),0x8)||_0x1163dd('10.0.0.0',0x8)||_0x1163dd(_0x502aa4(0x40d,_0x16c947._0x450046,_0x16c947._0x225ac2,_0x16c947._0x5cf5aa),0xa)||_0x1163dd(_0x224bb1(0x563,_0x16c947._0x138a2a,_0x16c947._0x181f95,0x536),0x8)||_0x1163dd(_0x224bb1(_0x16c947._0x5389e7,_0x16c947._0x295014,_0x16c947._0xd94ea2,0x7f5),0x10)||_0x1163dd(_0x224bb1(0x515,_0x16c947._0x52eb4d,0x478,_0x16c947._0x37004e),0xc)||_0x1163dd('192.0.0.0',0x18)||_0x1163dd('192.168.0.0',0x10)||_0x1163dd(_0x224bb1(0x542,_0x16c947._0x29badf,_0x16c947._0x4ab9e1,_0x16c947._0x384724),0xf)||_0x1163dd(_0x502aa4(_0x16c947._0x179771,_0x16c947._0x183f41,_0x16c947._0x9c0201,0xfc),0x4)||_0x1163dd(_0x224bb1(_0x16c947._0x1db254,_0x16c947._0x4da5e0,_0x16c947._0x2029cd,_0x16c947._0x10d57f),0x4);}function expandIpv6(_0x38b78e){const _0x1e52d9={_0x3ad46b:0x28f,_0x1a0557:0x216,_0xba1615:0x27e,_0x5b87e0:0x4c9,_0x3ff9c4:0x53f,_0x564e63:0x615,_0x101180:0xb2,_0x39d299:0x59,_0x39c578:0x219,_0x4f93ac:0x5ec,_0x2c4388:0x51d,_0x185ea4:0x541,_0x360d68:0x84,_0x24ebba:0xb2,_0x1e2ca8:0x1ab,_0xe78007:0x73b,_0x302db3:0x7e,_0x2f6bab:0x173,_0x383a98:0x507,_0x2d5785:0x65d,_0x4b02c9:0x246,_0x1a8421:0x2c4},_0x478a84={_0x5cd774:0x5,_0x237cf7:0x126};let _0x5bb819=_0x38b78e;function _0x153938(_0x387d59,_0x5e26c7,_0x28b66f,_0x580a5e){return _0x17d408(_0x387d59-0x1a,_0x5e26c7-0x1bd,_0x580a5e,_0x5e26c7-0x429);}let _0x538512;const _0x128810=_0x5bb819[_0xdfd606(_0x1e52d9._0x3ad46b,0x153,_0x1e52d9._0x1a0557,_0x1e52d9._0xba1615)](':');_0x5bb819[_0x153938(_0x1e52d9._0x5b87e0,0x562,_0x1e52d9._0x3ff9c4,_0x1e52d9._0x564e63)](_0x128810+0x1)['includes']('.')&&(_0x538512=_0x5bb819[_0xdfd606(_0x1e52d9._0x101180,0x33,0x7d,-_0x1e52d9._0x39d299)](_0x128810+0x1),_0x5bb819=_0x5bb819[_0xdfd606(_0x1e52d9._0x101180,-0xa6,-0xb6,_0x1e52d9._0x39c578)](0x0,_0x128810+0x1));const _0x5c985d=_0x5bb819[_0x153938(_0x1e52d9._0x4f93ac,_0x1e52d9._0x2c4388,0x53d,_0x1e52d9._0x185ea4)]('::');if(_0x5c985d[_0xdfd606(_0x1e52d9._0x360d68,_0x1e52d9._0x24ebba,0x1b0,_0x1e52d9._0x1e2ca8)]>0x2)return null;const _0x79c812=_0x21f3f3=>_0x21f3f3[_0xdfd606(0x6d,-0x6c,0x30,0x1c7)](':')[_0xdfd606(0x1f3,0x327,0xef,0xa7)](_0x31e326=>_0x31e326[_0x153938(0x43b,0x534,0x6ac,0x41b)]>0x0)[_0xdfd606(0x139,0x1d4,0x187,0x8e)](_0x1b1660=>Number[_0x153938(0x550,0x678,0x7d0,0x58e)](_0x1b1660,0x10)),_0xc4e591=_0x5c985d[0x0]?_0x79c812(_0x5c985d[0x0]):[],_0x45e69b=_0x5c985d['length']===0x2&&_0x5c985d[0x1]?_0x79c812(_0x5c985d[0x1]):[],_0x3c32e7=[];function _0xdfd606(_0x138f1a,_0x55e686,_0x57d993,_0x225687){return _0x1a7bb7(_0x138f1a-0x1cf,_0x138f1a-_0x478a84._0x5cd774,_0x57d993-_0x478a84._0x237cf7,_0x55e686);}if(_0x538512){const _0x40783d=ipv4ToInt(_0x538512);if(_0x40783d===null)return null;_0x3c32e7[_0x153938(0x713,_0x1e52d9._0xe78007,0x890,0x7f9)](_0x40783d>>>0x10&0xffff,_0x40783d&0xffff);}const _0xf8308=[..._0x45e69b,..._0x3c32e7],_0x5c6deb=0x8-_0xc4e591['length']-_0xf8308[_0x153938(0x4ce,0x534,0x413,0x5b0)];if(_0x5c985d[_0xdfd606(0x84,_0x1e52d9._0x302db3,-0x3,_0x1e52d9._0x2f6bab)]===0x1)return _0xc4e591[_0x153938(0x4c2,0x534,_0x1e52d9._0x383a98,_0x1e52d9._0x2d5785)]+_0xf8308['length']===0x8?[..._0xc4e591,..._0xf8308]:null;if(_0x5c6deb<0x0)return null;return[..._0xc4e591,...new Array(_0x5c6deb)[_0xdfd606(_0x1e52d9._0x4b02c9,0x330,_0x1e52d9._0x1a8421,0x13e)](0x0),..._0xf8308];}function isBlockedIpv6(_0xfe060b){const _0xd434f5={_0x5d4ee4:0x2b4,_0x117d54:0x388,_0x33ee99:0x1f9,_0x2de634:0xe3,_0x1a79a9:0x352,_0x3c81c6:0x3a6,_0x38b42f:0x1a2,_0x1863f8:0xd0,_0x3a04ad:0x2f4,_0x460064:0x1ee},_0x1fa106={_0x160c18:0x14c},_0x16721c={_0x3d7668:0x4e,_0x11fece:0x166},_0x372010=expandIpv6(_0xfe060b);if(!_0x372010||_0x372010[_0x198ad1(0x378,_0xd434f5._0x5d4ee4,0x290,_0xd434f5._0x117d54)](_0x3e7c61=>Number['isNaN'](_0x3e7c61)))return!![];const _0x3b6ed6=_0x372010[_0x5baabb(0x19a,_0xd434f5._0x33ee99,_0xd434f5._0x2de634,_0xd434f5._0x1a79a9)](0x0,0x7)['every'](_0xa36804=>_0xa36804===0x0);if(_0x3b6ed6&&(_0x372010[0x7]===0x0||_0x372010[0x7]===0x1))return!![];if(_0x372010[_0x198ad1(_0xd434f5._0x3c81c6,_0xd434f5._0x38b42f,0x29f,0x153)](0x0,0x5)[_0x198ad1(0x2f7,0x53a,0x3f0,0x3be)](_0x4cbb22=>_0x4cbb22===0x0)&&(_0x372010[0x5]===0xffff||_0x372010[0x5]===0x0)){const _0x2c59fb=(_0x372010[0x6]<<0x10|_0x372010[0x7])>>>0x0,_0x17bfd0=[_0x2c59fb>>>0x18&0xff,_0x2c59fb>>>0x10&0xff,_0x2c59fb>>>0x8&0xff,_0x2c59fb&0xff][_0x5baabb(_0xd434f5._0x1863f8,0x1f6,_0xd434f5._0x3a04ad,_0xd434f5._0x460064)]('.');return isBlockedIpv4(_0x17bfd0);}const _0x1463c0=_0x372010[0x0];if((_0x1463c0&0xff00)===0xfc00||(_0x1463c0&0xfe00)===0xfc00)return!![];function _0x198ad1(_0x3d1741,_0x254d7e,_0x704a3a,_0x38f9a2){return _0x17d408(_0x3d1741-0x87,_0x254d7e-_0x16721c._0x3d7668,_0x3d1741,_0x704a3a-_0x16721c._0x11fece);}if((_0x1463c0&0xffc0)===0xfe80)return!![];function _0x5baabb(_0x46c763,_0x1a0ffb,_0x5335b,_0x35e499){return _0x1a7bb7(_0x46c763-0x137,_0x1a0ffb-_0x1fa106._0x160c18,_0x5335b-0x3e,_0x35e499);}if((_0x1463c0&0xff00)===0xff00)return!![];return![];}function isBlockedAddress(_0x5c61fa){const _0x5d0cff=isIP(_0x5c61fa);if(_0x5d0cff===0x4)return isBlockedIpv4(_0x5c61fa);if(_0x5d0cff===0x6)return isBlockedIpv6(_0x5c61fa);return!![];}async function assertPublicUrl(_0x4772ee,_0x4d17bc={}){const _0x20293c={_0xae8d16:0x1d8,_0x42fbd9:0x208,_0x53cc1f:0x2a4,_0x3a092a:0xf0,_0x567b9c:0x14c,_0x3e8b94:0x447,_0x14f547:0x42e,_0x4146e8:0x1ee,_0x2f83b3:0x1d7,_0x13fe2d:0x450,_0x214be8:0x3fa,_0x36cdaf:0x33d,_0x4a3f69:0x4ba,_0x54604d:0x334,_0x43f797:0x3cc,_0x386ffb:0x48d,_0x356291:0xff,_0x48cd63:0x1de,_0x4c7639:0x32c,_0xc65e12:0x1c3,_0x459e2f:0x319,_0x5c1d6b:0x428,_0x5d9a29:0x396,_0x20eb28:0x4c5,_0x18c32c:0x42e,_0x19ab0e:0x363,_0x43bb7e:0x330,_0x4340bb:0xb1,_0x29a9db:0x3fb,_0x51f856:0x384,_0x35c360:0x2d9,_0x83f879:0xcb,_0x406d1b:0x8e,_0x582803:0x3c,_0x50935b:0x8a,_0x423124:0x62,_0x309c44:0x3f2,_0x9f0ebf:0x2dc,_0x21bfff:0x308,_0x511d6e:0x46c},_0x2a41dc={_0x84ded6:0xf8,_0x5290b3:0xb3},_0x374a21={_0x4395fa:0x6c,_0x18c76:0xa0};let _0x35131e;function _0x5c7e80(_0x3e2572,_0x24ad96,_0x389561,_0x56fdfe){return _0x17d408(_0x3e2572-_0x374a21._0x4395fa,_0x24ad96-_0x374a21._0x18c76,_0x3e2572,_0x24ad96-0x2a8);}try{_0x35131e=new URL(_0x4772ee);}catch{throw new ToolExecutionError(_0x391279(_0x20293c._0xae8d16,_0x20293c._0x42fbd9,0x1eb,_0x20293c._0x53cc1f),{'url':_0x4772ee});}if(_0x35131e[_0x391279(0x48,0x105,_0x20293c._0x3a092a,_0x20293c._0x567b9c)]!=='http:'&&_0x35131e[_0x5c7e80(_0x20293c._0x3e8b94,_0x20293c._0x14f547,0x462,0x40d)]!==_0x391279(0x210,_0x20293c._0x4146e8,_0x20293c._0x2f83b3,0x1a0))throw new ToolExecutionError(_0x5c7e80(_0x20293c._0x13fe2d,_0x20293c._0x214be8,_0x20293c._0x36cdaf,_0x20293c._0x4a3f69),{'url':_0x4772ee});if(_0x35131e[_0x391279(_0x20293c._0x54604d,0x1d6,0x31b,0xb3)]||_0x35131e[_0x5c7e80(_0x20293c._0x43f797,0x325,0x391,_0x20293c._0x386ffb)])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x35131e[_0x391279(_0x20293c._0x356291,0x105,0xc9,_0x20293c._0x48cd63)]+'//'+_0x35131e[_0x5c7e80(_0x20293c._0x4c7639,_0x20293c._0x54604d,_0x20293c._0xc65e12,_0x20293c._0x459e2f)]+_0x35131e[_0x5c7e80(0x3d9,_0x20293c._0x5c1d6b,0x541,_0x20293c._0x5d9a29)]});const _0xe22542=_0x35131e['hostname']['replace'](/^\[|\]$/g,''),_0xd7fcb9=_0x35131e[_0x5c7e80(_0x20293c._0x20eb28,_0x20293c._0x18c32c,_0x20293c._0x19ab0e,_0x20293c._0x43bb7e)]+'//'+_0x35131e[_0x391279(-_0x20293c._0x4340bb,0xb,0x9,-0x20)]+_0x35131e[_0x5c7e80(0x3fe,0x428,0x324,_0x20293c._0x29a9db)];if(isIP(_0xe22542)){if(isBlockedAddress(_0xe22542))throw new ToolExecutionError(_0x5c7e80(0x44a,_0x20293c._0x51f856,0x49a,_0x20293c._0x35c360),{'url':_0xd7fcb9});return _0x35131e;}function _0x391279(_0x568178,_0x125bf5,_0x5d378e,_0x2675aa){return _0x17d408(_0x568178-_0x2a41dc._0x84ded6,_0x125bf5-_0x2a41dc._0x5290b3,_0x5d378e,_0x125bf5- -0x81);}const _0x3dc1df=_0x4d17bc[_0x391279(_0x20293c._0x83f879,0x3f,-0x114,-_0x20293c._0x406d1b)]??defaultLookup;let _0x383d1d;try{_0x383d1d=await _0x3dc1df(_0xe22542);}catch{throw new ToolExecutionError('Could\x20not\x20resolve\x20host',{'url':_0xd7fcb9});}if(_0x383d1d[_0x391279(-_0x20293c._0x582803,_0x20293c._0x50935b,_0x20293c._0x423124,0xff)]===0x0)throw new ToolExecutionError(_0x5c7e80(_0x20293c._0x309c44,_0x20293c._0x9f0ebf,_0x20293c._0x21bfff,0x38a),{'url':_0xd7fcb9});for(const {address:_0x11fc60}of _0x383d1d){if(isBlockedAddress(_0x11fc60))throw new ToolExecutionError(_0x5c7e80(0x2d7,0x38d,_0x20293c._0x511d6e,0x33d),{'url':_0xd7fcb9});}return _0x35131e;}async function safeFetch(_0x548d85,_0x25b075={},_0x3ec6b2={}){const _0x1f60f6={_0x3f2973:0x524,_0x3ae1f8:0x6ce,_0x54d4d1:0x4b2,_0x4ce6ea:0x30e,_0xba11f9:0x605,_0x4bde8e:0x44e,_0x4df79e:0x345,_0x4e47d5:0x347,_0x17dd20:0x647,_0x116ed6:0x712,_0x1d57bb:0x754},_0x302bd7={_0x47a8a5:0x99,_0x3a9316:0x87,_0x18c372:0x32d},_0x3e852f={_0x5ca94d:0x199,_0x1ef3e7:0x15b,_0x3eb758:0xd9},_0x10f2e5=_0x3ec6b2[_0xee7aec(_0x1f60f6._0x3f2973,0x639,0x78e,0x5a5)]??fetch,_0xb6bdcc=_0x3ec6b2['maxRedirects']??DEFAULT_MAX_REDIRECTS;function _0x1515b2(_0x2b5b5d,_0x3e1e86,_0x2a3ecd,_0x3ed82c){return _0x1a7bb7(_0x2b5b5d-_0x3e852f._0x5ca94d,_0x3ed82c-_0x3e852f._0x1ef3e7,_0x2a3ecd-_0x3e852f._0x3eb758,_0x2b5b5d);}let _0x2a0aa0=_0x548d85;function _0xee7aec(_0x14428d,_0x38d303,_0x5d4dc3,_0x14f38f){return _0x17d408(_0x14428d-_0x302bd7._0x47a8a5,_0x38d303-_0x302bd7._0x3a9316,_0x14428d,_0x38d303-_0x302bd7._0x18c372);}for(let _0x130bbe=0x0;;_0x130bbe+=0x1){const _0x40badc=await assertPublicUrl(_0x2a0aa0,_0x3ec6b2),_0x2e20e1=await _0x10f2e5(_0x40badc['toString'](),{..._0x25b075,'redirect':_0xee7aec(_0x1f60f6._0x3ae1f8,0x593,0x65c,_0x1f60f6._0x54d4d1)}),_0x1fa8ae=_0x2e20e1['headers'][_0x1515b2(0x226,0x3bb,_0x1f60f6._0x4ce6ea,0x2b9)](_0xee7aec(_0x1f60f6._0xba11f9,0x58c,_0x1f60f6._0x4bde8e,0x5a3));if(!REDIRECT_STATUSES[_0x1515b2(0x436,0x2a0,_0x1f60f6._0x4df79e,_0x1f60f6._0x4e47d5)](_0x2e20e1[_0xee7aec(0x731,0x5da,_0x1f60f6._0x17dd20,0x74f)])||!_0x1fa8ae)return _0x2e20e1;if(_0x130bbe>=_0xb6bdcc)throw new ToolExecutionError(_0x1515b2(0xae,0x343,0x1b7,0x217),{'url':_0x40badc['toString']()});_0x2a0aa0=new URL(_0x1fa8ae,_0x40badc)[_0xee7aec(_0x1f60f6._0x116ed6,0x5f5,_0x1f60f6._0x1d57bb,0x652)]();}}var USER_AGENT=_0x17d408(0x192,0x85,0x108,0x8e),DEFAULT_TIMEOUT_MS2=0xea60;function createTimeoutSignal(_0x2647dc,_0x474043){const _0x18cf10={_0x29b50d:0x142,_0x5beea6:0x181,_0x332c8e:0x10a,_0x128ca9:0xaa,_0x30a41b:0xa,_0x4eab1d:0xb6,_0x36d50d:0x6a,_0x19223b:0x154,_0x482d69:0x33,_0x12b98e:0x4da},_0x17ff29={_0x5917e8:0x663},_0x10a6b3={_0x2378e0:0x15e,_0x4bd3c7:0x25d},_0x3ebbdc={_0x4f5626:0xbe};function _0x19694c(_0x1eacb6,_0x49bf27,_0xb786f6,_0x1fac7d){return _0x17d408(_0x1eacb6-0xb1,_0x49bf27-_0x3ebbdc._0x4f5626,_0x1eacb6,_0x49bf27-0x141);}const _0xcfb2f5=new AbortController();function _0x396380(_0x54473b,_0x500568,_0x20e018,_0x2bd280){return _0x1a7bb7(_0x54473b-_0x10a6b3._0x2378e0,_0x54473b- -_0x10a6b3._0x4bd3c7,_0x20e018-0x16e,_0x2bd280);}const _0x44a0c9=setTimeout(()=>_0xcfb2f5[_0x19694c(0x416,0x45f,0x302,0x3c6)](new Error(_0x396380(-0x62,-0x13,-0xe0,-0x96))),_0x474043),_0x3145d5=()=>_0xcfb2f5[_0x396380(0x35,0xa6,0x89,0x193)](_0x2647dc[_0x396380(-0x1df,-0x1b7,-0x1e8,-0xca)]);return _0x2647dc[_0x396380(0x33,_0x18cf10._0x29b50d,_0x18cf10._0x5beea6,-_0x18cf10._0x332c8e)]?_0xcfb2f5[_0x396380(0x35,_0x18cf10._0x128ca9,-_0x18cf10._0x30a41b,0x172)](_0x2647dc['reason']):_0x2647dc[_0x396380(-_0x18cf10._0x4eab1d,-_0x18cf10._0x36d50d,-_0x18cf10._0x19223b,-_0x18cf10._0x482d69)](_0x19694c(0x379,0x45f,_0x18cf10._0x12b98e,0x38d),_0x3145d5,{'once':!![]}),{'signal':_0xcfb2f5['signal'],'cleanup':()=>{const _0x213499={_0x52dd14:0x107,_0x3d0867:0xeb};clearTimeout(_0x44a0c9);function _0x1890b4(_0x409812,_0x1cd9ff,_0x2ed47a,_0x323e45){return _0x396380(_0x2ed47a-0x62e,_0x1cd9ff-_0x213499._0x52dd14,_0x2ed47a-_0x213499._0x3d0867,_0x409812);}_0x2647dc['removeEventListener'](_0x1890b4(0x67d,0x601,_0x17ff29._0x5917e8,0x5ee),_0x3145d5);}};}function createWebFetchTool(_0x501791={}){const _0x25b33b={_0x2e2da6:0x13,_0x103fdf:0x1de,_0x2d73b5:0x1e3,_0x4f25a5:0x418,_0x87f442:0x33d,_0x3cd61e:0x17f,_0x5d1a0a:0x1b8,_0x201b61:0x1e2,_0x31f6df:0x1fc,_0x57a078:0x269,_0x207535:0x470,_0x96c2fc:0x2fd,_0x57f8c1:0x29a,_0x1498c3:0x4fb,_0x2bd3ea:0x1c5,_0xb03e86:0xe5,_0x110152:0x352,_0x335f0e:0x184,_0x1fe05f:0x30,_0x42661c:0xb0},_0x585c3f={_0x51a347:0x2a1,_0x4cd26b:0x338,_0x10e4d0:0x499,_0x4ef740:0x7a4,_0x1362c4:0xb,_0x273627:0x25d,_0x38c398:0x191,_0x323e07:0x1ec,_0x19b85c:0x299,_0x442b5b:0x3be,_0x2a7a9f:0x36d,_0x28b168:0x2ea,_0x5d8c04:0x24f,_0x20166d:0xd2,_0x14031a:0x100,_0x5395d1:0x3e2,_0x16c730:0x5c8,_0x529a0b:0x580,_0x4d72a7:0x596,_0x272fce:0x474,_0xe93d5a:0x661,_0xe868d8:0x2fd,_0x51356b:0x286,_0x3b9bdb:0x1e9,_0x108a59:0x13a,_0x53bc51:0x157,_0x4b4b3d:0x514,_0x536f0b:0x437,_0x19a098:0x4c8,_0x3c414f:0x3c5,_0x56e6c1:0x2fc,_0x5572fb:0x50a,_0x459471:0x5e2,_0x350a9c:0x397,_0xd4e04b:0x16c,_0x1ab697:0x197,_0x3a99f6:0x2a3,_0x359050:0x53b,_0x4ba53a:0x491,_0x1c048d:0x4e7,_0x58736c:0x23b,_0x531a22:0x17d,_0xc6d533:0x1ea,_0x4255e2:0xbe,_0x5d8371:0x413,_0x951f3a:0x495,_0x34ce6b:0x567},_0x232f2a={_0x3eb890:0x1ed,_0x358376:0x180},_0x5475a8={_0x56a646:0x52},_0x40e94b=_0x501791[_0x18d08b(-_0x25b33b._0x2e2da6,_0x25b33b._0x103fdf,0x1ea,0x9c)]??_0x18d08b(0x2ef,0x1d0,0x164,_0x25b33b._0x2d73b5);function _0x394a59(_0x4e3a34,_0x44a988,_0x2a41bb,_0x3aecc7){return _0x17d408(_0x4e3a34-0x19d,_0x44a988-0x131,_0x4e3a34,_0x3aecc7-0x18e);}const _0x1dbda4=_0x501791['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x13f355=_0x501791['lookup'],_0x1a6284=new _0x44b643({'headingStyle':_0x394a59(0x357,0x3b8,_0x25b33b._0x4f25a5,0x36b),'codeBlockStyle':'fenced','bulletListMarker':'-'});_0x1a6284['remove']([_0x394a59(0x37a,0x21a,0x1ec,_0x25b33b._0x87f442),'style',_0x18d08b(_0x25b33b._0x3cd61e,0x132,0x125,_0x25b33b._0x5d1a0a),_0x394a59(_0x25b33b._0x201b61,0xdc,0x338,0x1ce),_0x18d08b(_0x25b33b._0x31f6df,_0x25b33b._0x57a078,0x422,0x376),_0x394a59(0x39f,_0x25b33b._0x207535,_0x25b33b._0x96c2fc,0x2fa),_0x394a59(0x308,0x333,0x321,_0x25b33b._0x57f8c1),_0x394a59(0x295,_0x25b33b._0x1498c3,0x3ca,0x3d0)]);function _0x18d08b(_0x252dd1,_0x219349,_0x15cd08,_0x1aba6a){return _0x17d408(_0x252dd1-0xf8,_0x219349-0x111,_0x15cd08,_0x1aba6a-_0x5475a8._0x56a646);}return defineTool({'name':_0x40e94b,'description':_0x18d08b(0x1cc,0x31d,0x1b0,_0x25b33b._0x2bd3ea),'inputSchema':{'type':'object','properties':{'description':{'type':_0x18d08b(_0x25b33b._0xb03e86,_0x25b33b._0x110152,_0x25b33b._0x335f0e,0x222)},'url':{'type':'string'}},'required':[_0x18d08b(-0x57,-_0x25b33b._0x1fe05f,0xd9,_0x25b33b._0x42661c)]},async *'execute'(_0x4d9d47,_0x58a96a){const _0x2905f6={_0x56268a:0x61,_0x5c6f5f:0x66},_0x83d098=(await assertPublicUrl(_0x4d9d47[_0x4afa5e(0x36c,_0x585c3f._0x51a347,0x367,_0x585c3f._0x4cd26b)],{'lookup':_0x13f355}))[_0x4afa5e(0x5d6,0x594,0x6d1,_0x585c3f._0x10e4d0)]();function _0x4afa5e(_0x36afd0,_0xc35165,_0x1dde93,_0x4397d1){return _0x394a59(_0xc35165,_0xc35165-0x56,_0x1dde93-_0x232f2a._0x3eb890,_0x36afd0-_0x232f2a._0x358376);}if(_0x58a96a['signal'][_0x4afa5e(0x62a,0x566,_0x585c3f._0x4ef740,0x4da)])throw new ToolExecutionError('Fetch\x20aborted\x20by\x20user',{'url':_0x83d098});function _0x4842ec(_0x86d004,_0x5a1fba,_0x2cdf0a,_0x25fe86){return _0x18d08b(_0x86d004-_0x2905f6._0x56268a,_0x5a1fba-0x10f,_0x86d004,_0x25fe86- -_0x2905f6._0x5c6f5f);}const _0x3df2f2=createTimeoutSignal(_0x58a96a['signal'],_0x1dbda4);let _0x195023='',_0x56629d=0x0,_0x348f7e;try{const _0x579b3c=await safeFetch(_0x83d098,{'headers':{'User-Agent':USER_AGENT},'signal':_0x3df2f2[_0x4842ec(-0x83,-_0x585c3f._0x1362c4,_0x585c3f._0x273627,0xe2)]},{'lookup':_0x13f355});if(!_0x579b3c['ok'])throw new ToolExecutionError('HTTP\x20'+_0x579b3c[_0x4842ec(0x3bc,0x396,0x3ce,0x299)]+'\x20'+_0x579b3c['statusText'],{'url':_0x83d098,'statusCode':_0x579b3c[_0x4842ec(_0x585c3f._0x38c398,_0x585c3f._0x323e07,0x38c,_0x585c3f._0x19b85c)]});_0x195023=_0x579b3c[_0x4afa5e(_0x585c3f._0x442b5b,_0x585c3f._0x2a7a9f,0x26a,_0x585c3f._0x28b168)][_0x4842ec(0x310,_0x585c3f._0x5d8c04,0x261,0x1d6)](_0x4842ec(_0x585c3f._0x20166d,_0x585c3f._0x14031a,0x21f,0x21e))??'',_0x56629d=_0x579b3c[_0x4842ec(0x1fc,0x18c,_0x585c3f._0x5395d1,0x299)],_0x348f7e=await _0x579b3c[_0x4afa5e(_0x585c3f._0x16c730,0x49f,0x490,_0x585c3f._0x529a0b)]();}catch(_0x4982cc){if(_0x4982cc instanceof ToolExecutionError)throw _0x4982cc;const _0x5d6709=_0x4982cc instanceof Error?_0x4982cc[_0x4afa5e(_0x585c3f._0x4d72a7,_0x585c3f._0x272fce,0x65c,_0x585c3f._0xe93d5a)]:String(_0x4982cc);throw new ToolExecutionError(_0x5d6709,{'url':_0x83d098});}finally{_0x3df2f2[_0x4842ec(_0x585c3f._0xe868d8,0x3d7,_0x585c3f._0x51356b,0x2e3)]();}const _0x5a8cdd=new Date()[_0x4842ec(_0x585c3f._0x3b9bdb,_0x585c3f._0x108a59,0x13,_0x585c3f._0x53bc51)]();let _0x39ebcc,_0x5a436e;if(_0x195023[_0x4afa5e(0x503,_0x585c3f._0x4b4b3d,_0x585c3f._0x536f0b,_0x585c3f._0x19a098)](_0x4afa5e(_0x585c3f._0x3c414f,_0x585c3f._0x56e6c1,0x4c0,0x414)))_0x39ebcc=_0x4afa5e(_0x585c3f._0x5572fb,_0x585c3f._0x459471,_0x585c3f._0x350a9c,0x4d0)+_0x348f7e+_0x4842ec(_0x585c3f._0xd4e04b,_0x585c3f._0x1ab697,0x15d,_0x585c3f._0x3a99f6),_0x5a436e=_0x4afa5e(0x60d,_0x585c3f._0x359050,_0x585c3f._0x4ba53a,_0x585c3f._0x1c048d);else _0x195023[_0x4842ec(_0x585c3f._0x58736c,0x1d9,0x116,0x1e1)]('text/html')?(_0x39ebcc=_0x1a6284[_0x4842ec(_0x585c3f._0x531a22,_0x585c3f._0xc6d533,_0x585c3f._0x4255e2,0x199)](_0x348f7e),_0x5a436e=_0x4afa5e(_0x585c3f._0x5d8371,_0x585c3f._0x951f3a,_0x585c3f._0x34ce6b,0x43b)):(_0x39ebcc=_0x348f7e,_0x5a436e='text');return yield createToolOutput(_0x39ebcc,{'url':_0x83d098,'contentType':_0x195023,'statusCode':_0x56629d,'format':_0x5a436e,'size':_0x348f7e['length'],'fetchedAt':_0x5a8cdd}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2='Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20Chrome/123.0.0.0\x20Safari/537.36\x20NuvinBot/1.0';function normalizeUrl(_0x4223c4){const _0x339649={_0x560388:0x349,_0x33d598:0x15d,_0xa0a4b1:0x162,_0x1e2876:0x148,_0x1e7bc4:0x15f,_0x1be965:0x38c,_0x4feb41:0x4c3,_0x433361:0x2fa,_0x299c21:0x2c9,_0x3548cd:0x27f,_0x3f8787:0x12,_0x2de6eb:0xfc,_0x48e809:0x5e,_0x408ed3:0xb2,_0x104480:0x3a,_0x3e6f48:0x22,_0x2600b6:0x1a,_0xc82438:0x4b7,_0x4aa071:0x58d,_0x140ca8:0x50e,_0x1cd3dc:0x444,_0x3768af:0x4c4},_0x35bd42={_0x2278b8:0x189,_0x4a8f62:0x183,_0x21cb71:0x2d2},_0x4b0c7d={_0x350ec5:0x1d9};function _0x348fcc(_0xb7f0fb,_0x261ada,_0x3509b6,_0x47c4ba){return _0x17d408(_0xb7f0fb-_0x4b0c7d._0x350ec5,_0x261ada-0xbb,_0x47c4ba,_0xb7f0fb- -0x27d);}function _0x3638f4(_0x39bebb,_0x1c2e6b,_0x289d7b,_0x48ac53){return _0x17d408(_0x39bebb-_0x35bd42._0x2278b8,_0x1c2e6b-_0x35bd42._0x4a8f62,_0x48ac53,_0x1c2e6b-_0x35bd42._0x21cb71);}try{const _0x4b8220=new URL(_0x4223c4);for(const _0x5b4976 of[_0x348fcc(-0x22e,-_0x339649._0x560388,-_0x339649._0x33d598,-0x2ac),'utm_medium',_0x348fcc(-_0x339649._0xa0a4b1,-_0x339649._0x1e2876,-0x31,-_0x339649._0x1e7bc4),_0x3638f4(_0x339649._0x1be965,_0x339649._0x4feb41,0x51e,0x4e1),_0x3638f4(_0x339649._0x433361,0x38c,_0x339649._0x299c21,_0x339649._0x3548cd),_0x348fcc(_0x339649._0x3f8787,-_0x339649._0x2de6eb,0x1b,0x123),'fbclid',_0x348fcc(_0x339649._0x48e809,_0x339649._0x408ed3,-_0x339649._0x104480,-0x11d),_0x348fcc(0x77,-_0x339649._0x3e6f48,-_0x339649._0x2600b6,0x158)]){_0x4b8220[_0x3638f4(0x5f9,_0x339649._0xc82438,_0x339649._0x4aa071,_0x339649._0x140ca8)][_0x3638f4(0x589,0x573,_0x339649._0x1cd3dc,_0x339649._0x3768af)](_0x5b4976);}return _0x4b8220['toString']();}catch{return _0x4223c4;}}function cseDateRestrict(_0xcb1448){const _0x398cd9={_0x41588f:0x201,_0x47724d:0x9c},_0x169f9a={_0x584f22:0xda};if(_0xcb1448<=0x0)return void 0x0;function _0x208e66(_0x460250,_0x616568,_0x3a2e80,_0x118813){return _0x1a7bb7(_0x460250-_0x169f9a._0x584f22,_0x460250-0x165,_0x3a2e80-0x153,_0x3a2e80);}function _0x341a94(_0xe56f1f,_0x9f0b2c,_0x394e20,_0x493f03){return _0x1a7bb7(_0xe56f1f-0xfa,_0x493f03-0xc4,_0x394e20-0xe0,_0x9f0b2c);}if(_0xcb1448<=0x1e)return'd'+Math[_0x341a94(0x116,_0x398cd9._0x41588f,-0x7e,_0x398cd9._0x47724d)](0x1,Math['floor'](_0xcb1448));if(_0xcb1448<=0x16d)return'm'+Math['ceil'](_0xcb1448/0x1e);return'y'+Math[_0x341a94(0x247,0x2fe,0x239,0x1a0)](_0xcb1448/0x16d);}function addSiteFilters(_0x310a77,_0x5b8778){const _0x1e9c7c={_0x2c4c35:0x229,_0x35508b:0x3f5,_0xaa0125:0x226,_0x34270a:0x317,_0x136a90:0x16c,_0xb5c354:0x1ce};if(_0x5b8778[_0x2e86b3(_0x1e9c7c._0x2c4c35,0x3e2,0x27f,0x332)]===0x0)return _0x310a77[_0x59da36(0x4df,0x37f,0x4a5,0x632)]();function _0x59da36(_0x2052f4,_0x5879c7,_0x9023ca,_0x4b9a86){return _0x1a7bb7(_0x2052f4-0x68,_0x2052f4-0x2df,_0x9023ca-0x12c,_0x5879c7);}function _0x2e86b3(_0x2df00f,_0x256e83,_0x49b3a4,_0x3cb97a){return _0x17d408(_0x2df00f-0xa7,_0x256e83-0x1ea,_0x2df00f,_0x49b3a4-0x174);}return(_0x310a77+'\x20('+_0x5b8778['map'](_0x4ff51c=>_0x59da36(0x2a3,0x31a,0x18f,0x2e2)+_0x4ff51c)[_0x59da36(0x389,_0x1e9c7c._0x35508b,_0x1e9c7c._0xaa0125,_0x1e9c7c._0x34270a)](_0x2e86b3(_0x1e9c7c._0x136a90,0xc6,_0x1e9c7c._0xb5c354,0x32e))+')')['trim']();}function normalizeType(_0x3c7df6){function _0x2d6436(_0x30a4d0,_0xf296,_0x1ce73d,_0x13dc26){return _0x1a7bb7(_0x30a4d0-0x159,_0x1ce73d-0x11,_0x1ce73d-0x19c,_0xf296);}return _0x3c7df6===_0x2d6436(0x12a,-0x32,0x12d,0x7b)?'images':'web';}async function fetchJson(_0x3a140d,_0x2e73d4,_0x35add1){const _0x24b97a={_0x34d993:0x15a,_0x2a0fde:0x8a,_0xcbd021:0x124,_0xcf41fa:0x68e,_0x518e70:0x5f4,_0x3040b8:0x5cb,_0x14eedd:0x12,_0x28c601:0x1cb,_0x750d14:0x52,_0x528a2b:0x555,_0x2804c4:0x169,_0x48aef4:0x9e,_0x404ad5:0x596,_0x3d9019:0x4f,_0x5bf832:0x1b8,_0x430f67:0x623,_0x405294:0x5e1,_0x14a81d:0x49f,_0xcf3c4c:0x68a,_0x2f276c:0x5bc,_0xb57b2d:0x6c9,_0x428e2d:0x1ca,_0x1abbd9:0x16c,_0x3b1d3d:0x1be},_0x541c09={_0x40575f:0x197,_0x558286:0x402},_0x6e9ba5={_0x51d3ee:0xb5,_0x2c0666:0x1ee};function _0x2330a8(_0x3f5e09,_0x2f5dd5,_0x301a22,_0x248417){return _0x1a7bb7(_0x3f5e09-0x138,_0x248417- -_0x6e9ba5._0x51d3ee,_0x301a22-_0x6e9ba5._0x2c0666,_0x2f5dd5);}const _0x99b7bc=await fetch(_0x3a140d,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x2330a8(-_0x24b97a._0x34d993,-0xd2,-0x143,-_0x24b97a._0x2a0fde),..._0x35add1?.['headers']},'signal':_0x2e73d4,..._0x35add1});function _0x38053b(_0x412f84,_0x3cfab4,_0x24bfa6,_0x392e21){return _0x1a7bb7(_0x412f84-_0x541c09._0x40575f,_0x412f84-_0x541c09._0x558286,_0x24bfa6-0x1c6,_0x392e21);}if(!_0x99b7bc['ok']){let _0x2040f0,_0x3f0f60;try{_0x2040f0=await _0x99b7bc[_0x2330a8(0x288,_0x24b97a._0xcbd021,0x3b,0x179)]();const _0x3d8ebb=JSON[_0x38053b(_0x24b97a._0xcf41fa,_0x24b97a._0x518e70,0x7c3,_0x24b97a._0x3040b8)](_0x2040f0),_0x1f1350=typeof _0x3d8ebb[_0x2330a8(-_0x24b97a._0x14eedd,-_0x24b97a._0x28c601,_0x24b97a._0x750d14,-0x102)]===_0x38053b(0x680,0x5f0,0x736,0x5fc)?_0x3d8ebb['detail'][_0x38053b(_0x24b97a._0x528a2b,0x506,0x69c,0x6d0)]:void 0x0;_0x3f0f60=_0x3d8ebb[_0x2330a8(-0x65,0x196,_0x24b97a._0x2804c4,_0x24b97a._0x48aef4)]?.[_0x38053b(0x5fe,0x685,0x563,_0x24b97a._0x404ad5)]??_0x3d8ebb[_0x2330a8(-0x8c,_0x24b97a._0x3d9019,_0x24b97a._0x5bf832,_0x24b97a._0x48aef4)]?.[_0x38053b(0x66c,0x551,0x598,0x71d)]?.[0x0]?.['message']??_0x1f1350;}catch{}const _0x449c4f=_0x3f0f60?'HTTP\x20'+_0x99b7bc[_0x38053b(_0x24b97a._0x430f67,0x4f3,0x613,0x605)]+':\x20'+_0x3f0f60:_0x38053b(_0x24b97a._0x405294,_0x24b97a._0x14a81d,_0x24b97a._0xcf3c4c,0x67a)+_0x99b7bc[_0x38053b(_0x24b97a._0x430f67,_0x24b97a._0x2f276c,0x5ef,_0x24b97a._0xb57b2d)]+'\x20'+_0x99b7bc['statusText'];throw new ToolExecutionError(_0x449c4f,{'statusCode':_0x99b7bc[_0x2330a8(0x2d3,0x186,_0x24b97a._0x428e2d,_0x24b97a._0x1abbd9)],..._0x2040f0?{'body':_0x2040f0}:{}});}return await _0x99b7bc[_0x2330a8(0x141,0x31a,0x27b,_0x24b97a._0x3b1d3d)]();}async function hydrateResults(_0x1f28a7,_0x5e1cd8,_0x3aff22,_0x5c7d66){const _0x52cee8={_0x8ef9c3:0x235,_0x2e68d5:0x1d8,_0x855a12:0xed,_0x36dde0:0x132,_0x21f04e:0x64,_0x281336:0xb4,_0x40e802:0x2a7},_0x36076b={_0x34a111:0x12b,_0xc68504:0x36d,_0x4ae1f2:0x1cb,_0x1df210:0xd6,_0xdecf51:0x537,_0x31e2ec:0x497,_0x20975f:0x5a8,_0x2b7910:0x464,_0x29ef79:0x5e7,_0x553dfb:0x4f7,_0x3765e2:0xbf,_0x3e4dc8:0x136,_0x5ef079:0x92,_0x44b005:0xb9,_0x3580f3:0x1ac,_0xbab268:0x1cc,_0x3b0510:0x327,_0x4c0561:0x301,_0x225811:0x74,_0x5cf60f:0x1c0,_0x379940:0x21d,_0x3bb672:0x272,_0x28ab23:0x22b,_0x568187:0x328,_0x23a968:0x2d0,_0xbf6c68:0x76,_0x59e64b:0xb9,_0x5551b4:0x1fd,_0x1af81c:0x37b,_0x1a36ec:0x4ce,_0x2b1da0:0x48f,_0x4f1286:0x4ae,_0x4da140:0xa3,_0x2c5a14:0x6c,_0x4bf246:0x11d,_0x2cb418:0x92,_0x56eeab:0x5,_0x1ca22e:0x82,_0x42beb3:0x315,_0xbb416f:0x159,_0x294cdd:0x2a4,_0x5b6401:0x151,_0x3a9d84:0x9c,_0x1b1425:0x13d,_0x2c3185:0x1f4,_0x2dfa30:0x5a,_0x2c12f4:0x23,_0x587e01:0x91,_0x41f618:0x22b,_0x2c86aa:0x11a,_0x1aa10e:0xff,_0x16de6d:0x8f,_0x2c08d1:0x23b},_0x11e207={_0x244cd6:0x119,_0x42097c:0xce},_0x19aa84={_0x3cf490:0x149,_0x3988de:0x226},_0x3e19a2={_0x2b97bc:0x1d0,_0x576174:0x85};function _0x3679c4(_0x47c607,_0x58b7f8,_0x4e2527,_0x585e7d){return _0x17d408(_0x47c607-0x128,_0x58b7f8-_0x3e19a2._0x2b97bc,_0x47c607,_0x4e2527- -_0x3e19a2._0x576174);}function _0x54eb1e(_0xb824b3,_0x40c8a9,_0x37b186,_0x11ee38){return _0x17d408(_0xb824b3-0x1a6,_0x40c8a9-_0x19aa84._0x3cf490,_0xb824b3,_0x40c8a9- -_0x19aa84._0x3988de);}const _0x38a222=await Promise[_0x3679c4(0x55,0x20a,0x10d,_0x52cee8._0x8ef9c3)](_0x1f28a7[_0x54eb1e(-_0x52cee8._0x2e68d5,-_0x52cee8._0x855a12,-_0x52cee8._0x36dde0,-0x178)](0x0,0xa)['map'](async _0x5605c2=>{const _0x2d2395={_0x5c315e:0xe1};function _0x1feeea(_0x5509dd,_0x597dab,_0x372ed8,_0x299cbf){return _0x54eb1e(_0x5509dd,_0x597dab-0x403,_0x372ed8-0x1df,_0x299cbf-_0x2d2395._0x5c315e);}function _0x6bf3b2(_0xea739a,_0x570505,_0x3876f9,_0x546924){return _0x54eb1e(_0xea739a,_0x570505-_0x11e207._0x244cd6,_0x3876f9-0x1f0,_0x546924-_0x11e207._0x42097c);}try{const _0x36f6f3=await safeFetch(_0x5605c2[_0x1feeea(_0x36076b._0x34a111,0x23b,0x1b1,_0x36076b._0xc68504)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x5e1cd8,'Accept':_0x6bf3b2(0x1e0,_0x36076b._0x4ae1f2,_0x36076b._0x1df210,0x173)},'signal':_0x3aff22},{'lookup':_0x5c7d66});if(!_0x36f6f3['ok'])return _0x5605c2;const _0x2bd860=await _0x36f6f3[_0x1feeea(_0x36076b._0xdecf51,_0x36076b._0x31e2ec,_0x36076b._0x20975f,_0x36076b._0x2b7910)](),_0x5c04a4=load(_0x2bd860),_0x17a6de=_0x5c04a4(_0x1feeea(_0x36076b._0x29ef79,_0x36076b._0x553dfb,0x52f,0x5c2))[_0x6bf3b2(-0xde,-_0x36076b._0x3765e2,-0xba,-_0x36076b._0x3e4dc8)](_0x6bf3b2(-0xfb,-_0x36076b._0x5ef079,-0xd4,-0x10f))||_0x5c04a4(_0x6bf3b2(-_0x36076b._0x44b005,-0x8f,-_0x36076b._0x3580f3,-_0x36076b._0xbab268))[_0x1feeea(_0x36076b._0x3b0510,0x3f4,0x509,_0x36076b._0x4c0561)]()['text']()[_0x6bf3b2(_0x36076b._0x225811,0x17f,0x7e,0x2a1)](),_0x345a25=_0x5c04a4(_0x1feeea(0x2bd,0x296,_0x36076b._0x5cf60f,_0x36076b._0x379940))[_0x1feeea(_0x36076b._0x3bb672,_0x36076b._0x28ab23,0xb7,0x33b)](_0x1feeea(0x1d5,0x258,_0x36076b._0x568187,0x2b3))||_0x5c04a4('meta[property=\x27og:description\x27]')[_0x1feeea(0x1ad,_0x36076b._0x28ab23,0x374,_0x36076b._0x23a968)](_0x6bf3b2(-_0x36076b._0xbf6c68,-0x92,-_0x36076b._0x59e64b,-_0x36076b._0x5551b4))||_0x5605c2[_0x1feeea(_0x36076b._0x1af81c,0x341,0x42b,0x30f)],_0x3d0592=_0x5c04a4(_0x1feeea(_0x36076b._0x1a36ec,0x4d8,_0x36076b._0x2b1da0,_0x36076b._0x4f1286))[_0x6bf3b2(-_0x36076b._0x4da140,-_0x36076b._0x3765e2,-_0x36076b._0x2c5a14,-0x180)](_0x6bf3b2(-_0x36076b._0x4bf246,-_0x36076b._0x2cb418,-_0x36076b._0x56eeab,_0x36076b._0x1ca22e))||_0x5c04a4('time[datetime]')[_0x1feeea(0x368,0x22b,0x378,_0x36076b._0x42beb3)](_0x1feeea(_0x36076b._0xbb416f,0x239,0x339,_0x36076b._0x294cdd))||_0x5605c2[_0x6bf3b2(_0x36076b._0x5b6401,_0x36076b._0x3a9d84,_0x36076b._0x1b1425,_0x36076b._0x2c3185)],_0x39474b=_0x5c04a4(_0x6bf3b2(_0x36076b._0x2dfa30,_0x36076b._0x2c12f4,-0x11a,_0x36076b._0x587e01))[_0x1feeea(0x1e5,_0x36076b._0x41f618,0x116,0x1ca)](_0x6bf3b2(-0x2d,0x13,_0x36076b._0x2c86aa,-_0x36076b._0x1aa10e));return{..._0x5605c2,'title':_0x17a6de||_0x5605c2[_0x6bf3b2(-0xea,-_0x36076b._0x16de6d,0xb7,-0xf7)],'snippet':_0x345a25,'url':_0x39474b?normalizeUrl(new URL(_0x39474b,_0x5605c2['url'])['toString']()):_0x5605c2[_0x1feeea(0x1fb,_0x36076b._0x2c08d1,0x12d,0x2c5)],'publishedAt':_0x3d0592};}catch{return _0x5605c2;}})),_0x497352=new Map(_0x1f28a7[_0x3679c4(0x14b,-_0x52cee8._0x21f04e,_0x52cee8._0x281336,0x114)](0x0,0xa)[_0x3679c4(0xe5,_0x52cee8._0x40e802,0x13b,0x19)]((_0x1fc7ab,_0x390278)=>[_0x1fc7ab[_0x3679c4(0xa0,0x4d,-0x27,-0x17)],_0x38a222[_0x390278]]));return _0x1f28a7['map'](_0x3cb384=>_0x497352[_0x54eb1e(0x21,-0x3c,-0x1a5,-0x97)](_0x3cb384[_0x54eb1e(-0x1e3,-0x1c8,-0x148,-0x14d)])??_0x3cb384);}function formatResults(_0x147762){const _0xd4afe8={_0x26e508:0xd,_0x411d39:0x69,_0x93fcd1:0x1e4,_0x12f7c6:0x159,_0x292b7e:0x20,_0x54c6d0:0x38,_0x383725:0xa0,_0x53ca43:0x160,_0x3a46a0:0x188,_0x36fdcf:0xf},_0x2c2c2a={_0x44012e:0x293,_0x1ad7ea:0x3b2,_0x28d781:0x3cb,_0x273f75:0x2a0,_0x29041b:0x312,_0x4d91f3:0x3c2,_0x14aeff:0x1ca,_0x273d11:0xc3,_0x1a0d7e:0x58,_0x174361:0x175,_0x2ae451:0x175,_0x214901:0x72,_0x42997e:0xc4,_0x10c49e:0x399,_0x537a36:0x34a,_0x2403e9:0x34c,_0x49fd95:0x2ef,_0x42c0ff:0x16e},_0x1b39a2={_0x5c206d:0x1a9,_0x51cbe4:0x2e},_0xe53a14={_0x55bdcb:0x1f4,_0x1d92a4:0x1e9},_0x1f4fa4={_0x2c0ed7:0x2b8},_0x104845={_0x59f6d2:0x6f};if(_0x147762[_0x2ddcc7(_0xd4afe8._0x26e508,-_0xd4afe8._0x411d39,-_0xd4afe8._0x93fcd1,0xa9)]===0x0)return _0x2ddcc7(-_0xd4afe8._0x12f7c6,-_0xd4afe8._0x292b7e,_0xd4afe8._0x54c6d0,_0xd4afe8._0x383725);function _0x2ddcc7(_0x80f805,_0x1cfab4,_0x5c569f,_0x59e43a){return _0x17d408(_0x80f805-0xef,_0x1cfab4-_0x104845._0x59f6d2,_0x59e43a,_0x1cfab4- -0x174);}function _0x566b0e(_0x28bb93,_0x357f8d,_0x217a08,_0x223391){return _0x1a7bb7(_0x28bb93-0x17a,_0x28bb93-_0x1f4fa4._0x2c0ed7,_0x217a08-0x1ab,_0x217a08);}return _0x147762['map'](_0xfc2cb2=>{const _0x526567=[_0xfc2cb2['source'][_0x3fcc22(-_0x2c2c2a._0x44012e,-0x136,-_0x2c2c2a._0x1ad7ea,-_0x2c2c2a._0x28d781)]+'.\x20'+_0xfc2cb2[_0x3fcc22(-_0x2c2c2a._0x273f75,-_0x2c2c2a._0x29041b,-_0x2c2c2a._0x4d91f3,-0x1f0)],_0xfc2cb2[_0x3fcc22(-0x2c0,-_0x2c2c2a._0x14aeff,-0x260,-0x27d)]];if(_0xfc2cb2['snippet'])_0x526567[_0x3fcc22(-0xc,-_0x2c2c2a._0x273d11,-_0x2c2c2a._0x1a0d7e,-_0x2c2c2a._0x174361)](_0xfc2cb2['snippet']);if(_0xfc2cb2[_0x3fcc22(-_0x2c2c2a._0x2ae451,-0x2d7,-_0x2c2c2a._0x214901,-_0x2c2c2a._0x42997e)])_0x526567[_0x1dbd7f(_0x2c2c2a._0x10c49e,0x2b2,0x472,_0x2c2c2a._0x537a36)](_0x1dbd7f(0x264,0x40d,0x207,_0x2c2c2a._0x2403e9)+_0xfc2cb2[_0x3fcc22(-0x175,-0x1f0,-0x28f,-_0x2c2c2a._0x49fd95)]);function _0x1dbd7f(_0x389c40,_0x4972de,_0x6bfb6f,_0x7cba69){return _0x566b0e(_0x7cba69- -_0xe53a14._0x55bdcb,_0x4972de-_0xe53a14._0x1d92a4,_0x389c40,_0x7cba69-0x8f);}function _0x3fcc22(_0x539f4c,_0x26bfb0,_0x518891,_0x1e1077){return _0x2ddcc7(_0x539f4c-_0x1b39a2._0x5c206d,_0x539f4c- -0x1aa,_0x518891-_0x1b39a2._0x51cbe4,_0x26bfb0);}return _0x526567[_0x1dbd7f(0x103,0xb0,0x181,_0x2c2c2a._0x42c0ff)]('\x0a');})[_0x2ddcc7(-_0xd4afe8._0x53ca43,-0x3e,-_0xd4afe8._0x3a46a0,-_0xd4afe8._0x36fdcf)]('\x0a\x0a');}async function searchOllama(_0x56aa52,_0x5807a2,_0x565a2a){const _0xa5cb58={_0x36bc1d:0x29a,_0xf6bfe3:0x35b,_0x398def:0x3b9,_0x5d0765:0x2e9,_0x5aab1d:0x4d3,_0x849c81:0x498,_0x58ee2b:0x4a5,_0x3ef190:0x328,_0x430df3:0x5b4,_0x256a7d:0x442,_0x1b447f:0x2fc,_0x25bae1:0x456,_0x5c5c86:0x46a,_0x21bdf1:0x4d2,_0x5a06de:0x479,_0x3fc50b:0x430,_0x286505:0x31f,_0x388bf3:0x408},_0x3336f1={_0x1041e3:0x309,_0x4407fa:0x24b,_0x50cc20:0x18c,_0x3b9581:0x1da,_0x35708e:0x342,_0x124aa5:0x32e,_0x382c9a:0x184},_0x3f866a={_0x57cc7f:0x39,_0x359f0e:0x4a3},_0x38fc4d={_0x24e2a4:0x2da},_0x1558b7=Math[_0x546457(_0xa5cb58._0x36bc1d,_0xa5cb58._0xf6bfe3,_0xa5cb58._0x398def,_0xa5cb58._0x5d0765)](0x1,Math[_0x546457(0x5d6,_0xa5cb58._0x5aab1d,_0xa5cb58._0x849c81,_0xa5cb58._0x58ee2b)](0xa,_0x5807a2['count'])),_0x577b8d=addSiteFilters(_0x5807a2[_0x2ead1d(_0xa5cb58._0x3ef190,0x3c6,0x2e6,0x519)],_0x5807a2[_0x546457(_0xa5cb58._0x430df3,0x453,_0xa5cb58._0x256a7d,0x363)]),_0x4efc34=await fetchJson('https://ollama.com/api/web_search',_0x565a2a,{'method':_0x546457(0x677,0x5d1,0x5c0,0x4ac),'headers':{'Authorization':_0x2ead1d(0x366,0x2e0,0x44b,_0xa5cb58._0x1b447f)+_0x56aa52['apiKey']},'body':JSON[_0x2ead1d(_0xa5cb58._0x25bae1,_0xa5cb58._0x5c5c86,_0xa5cb58._0x21bdf1,0x5af)]({'query':_0x577b8d,'max_results':_0x1558b7})}),_0x228d2e=_0x4efc34['results']??[];function _0x546457(_0x1f5593,_0x2aa684,_0x15e41a,_0x2b1979){return _0x17d408(_0x1f5593-0xaa,_0x2aa684-0x146,_0x15e41a,_0x2aa684-0x2f7);}function _0x2ead1d(_0x381b67,_0x5d85ed,_0x244c8f,_0x5ed8a0){return _0x1a7bb7(_0x381b67-0x11d,_0x5d85ed-_0x38fc4d._0x24e2a4,_0x244c8f-0x35,_0x5ed8a0);}const _0xd5352b=_0x228d2e[_0x2ead1d(0x4d1,0x40e,0x46e,0x42f)]((_0x1e69d1,_0x24037b)=>{const _0x31e1b0=_0x1e69d1[_0x39fe89(-0x1f7,-0x18c,-_0x3336f1._0x1041e3,-0x1e3)]||'';let _0x323bfa;function _0x39fe89(_0x15831f,_0x5613e5,_0x443336,_0x578e19){return _0x2ead1d(_0x15831f-_0x3f866a._0x57cc7f,_0x15831f- -_0x3f866a._0x359f0e,_0x443336-0x45,_0x443336);}try{_0x323bfa=new URL(_0x31e1b0)[_0x17b436(0x107,0x2c7,_0x3336f1._0x4407fa,_0x3336f1._0x50cc20)];}catch{_0x323bfa=null;}function _0x17b436(_0x39c5ff,_0x19f62a,_0x510e53,_0x2e6a96){return _0x546457(_0x39c5ff-0x180,_0x510e53- -0x138,_0x19f62a,_0x2e6a96-0x19f);}return{'title':_0x1e69d1[_0x39fe89(-0x1d7,-0x304,-0x129,-0x1a8)]||'Untitled','url':normalizeUrl(_0x31e1b0),'snippet':_0x1e69d1[_0x39fe89(-_0x3336f1._0x3b9581,-_0x3336f1._0x35708e,-0x277,-_0x3336f1._0x124aa5)]??null,'displayUrl':_0x323bfa,'favicon':null,'publishedAt':null,'source':{'engine':_0x39fe89(-_0x3336f1._0x382c9a,-0xa4,-0x245,-0x24b),'rank':_0x24037b+0x1}};});return{'items':_0xd5352b[_0x546457(_0xa5cb58._0x5a06de,_0xa5cb58._0x3fc50b,0x427,0x2f1)](0x0,_0x1558b7),'engine':_0x2ead1d(0x42a,_0xa5cb58._0x286505,_0xa5cb58._0x388bf3,0x43a)};}async function searchTavily(_0x258788,_0x3f9aae,_0x36fa74){const _0x15f87b={_0x599d4d:0x15b,_0x54ec7a:0xed,_0x5cbede:0x11,_0x39c3d6:0x33,_0x31c48a:0x21,_0x22520a:0x10f,_0x1cc2d7:0xa4,_0x433006:0x397,_0x12466a:0x6f,_0x47fcda:0x2a,_0x8e37c1:0x54,_0x33d29f:0x40,_0x668525:0xe,_0xfbdd2d:0x6d,_0x4bf93d:0x31,_0x5d7437:0x167,_0x593ac0:0x1f9,_0x9dcd9a:0x2cf,_0x20ac53:0x49,_0x1b9fd3:0xb6,_0x3f2649:0x34b,_0x4d8bed:0x3cf,_0x203a1c:0x278,_0x32c672:0x107,_0x50143c:0xd8,_0x57fa31:0x190,_0x37a932:0x124,_0x3700fb:0x10d,_0x3f4e72:0x1f8,_0x50b004:0xbd,_0x1587c8:0xe8},_0x4f50a9={_0x38e87e:0x26f,_0x20c36f:0xe8,_0x3ef620:0x1d5,_0x43845:0x27e,_0x281598:0x4b7,_0x202b66:0x3c1,_0x59f8aa:0x3b5,_0x47b92e:0x2ec},_0x10f994={_0xd83b4a:0x594,_0x24686f:0xa0},_0x43ed20={_0x5f5b26:0x12},_0x3f4ddd={_0xe83645:0x1e3},_0x5ab26d={_0x10f51f:0x13d,_0x39dace:0x1a5},_0x3f0fc7=Math[_0x1faaf1(-0x2bf,-0x146,-0x3f4,-_0x15f87b._0x599d4d)](0x1,Math[_0x43cd88(_0x15f87b._0x54ec7a,_0x15f87b._0x5cbede,_0x15f87b._0x39c3d6,-_0x15f87b._0x31c48a)](0x14,_0x3f9aae['count']));function _0x43cd88(_0x364192,_0x3912c5,_0x240ad4,_0x2f261e){return _0x17d408(_0x364192-_0x5ab26d._0x10f51f,_0x3912c5-_0x5ab26d._0x39dace,_0x2f261e,_0x3912c5- -0x1cb);}const _0x3c83dd={'query':_0x3f9aae[_0x43cd88(0xca,-0x53,-0x77,-_0x15f87b._0x22520a)],'max_results':_0x3f0fc7,'search_depth':_0x258788['searchDepth']??'basic','topic':_0x258788[_0x1faaf1(-_0x15f87b._0x1cc2d7,-0x96,-0xf6,-0x1f8)]??_0x1faaf1(-0x276,-0x39b,-_0x15f87b._0x433006,-0x1e1)};if(_0x3f9aae[_0x43cd88(-0x188,-_0x15f87b._0x12466a,-_0x15f87b._0x47fcda,0x78)][_0x43cd88(-_0x15f87b._0x8e37c1,-0xc0,-_0x15f87b._0x33d29f,0x51)]>0x0)_0x3c83dd[_0x1faaf1(-0x149,_0x15f87b._0x668525,-_0x15f87b._0xfbdd2d,-_0x15f87b._0x4bf93d)]=_0x3f9aae['domains'];function _0x1faaf1(_0xb86153,_0x256065,_0x87f28e,_0x218379){return _0x17d408(_0xb86153-0xa9,_0x256065-_0x3f4ddd._0xe83645,_0x218379,_0xb86153- -0x323);}const _0x114ac9=await fetchJson(_0x43cd88(-_0x15f87b._0x5d7437,-0x16c,-_0x15f87b._0x593ac0,-_0x15f87b._0x9dcd9a),_0x36fa74,{'method':_0x1faaf1(-_0x15f87b._0x20ac53,0x93,-_0x15f87b._0x1b9fd3,0x120),'headers':{'Authorization':'Bearer\x20'+_0x258788['tavilyApiKey'],'Content-Type':_0x1faaf1(-0x26c,-_0x15f87b._0x3f2649,-_0x15f87b._0x4d8bed,-_0x15f87b._0x203a1c)},'body':JSON[_0x1faaf1(-_0x15f87b._0x32c672,-0x246,-_0x15f87b._0x50143c,-_0x15f87b._0x57fa31)](_0x3c83dd)}),_0x5220f1=_0x114ac9[_0x43cd88(-_0x15f87b._0x37a932,-0xc2,0x76,-_0x15f87b._0x3700fb)]??[],_0x5ab9aa=_0x5220f1['map']((_0x1251d7,_0x67addd)=>{const _0x28f8cd=_0x1251d7[_0x5e2108(0x161,0x243,0x2cf,0x376)]||'';let _0x30211d;function _0xd3251b(_0x46b290,_0x3c7eb3,_0x54e9d0,_0x355807){return _0x43cd88(_0x46b290-0x33,_0x54e9d0-0x314,_0x54e9d0-_0x43ed20._0x5f5b26,_0x355807);}try{_0x30211d=new URL(_0x28f8cd)[_0xd3251b(_0x4f50a9._0x38e87e,_0x4f50a9._0x20c36f,_0x4f50a9._0x3ef620,0x27a)];}catch{_0x30211d=null;}function _0x5e2108(_0x325f7c,_0x4252f7,_0x3e1219,_0x12a2be){return _0x1faaf1(_0x3e1219-_0x10f994._0xd83b4a,_0x4252f7-_0x10f994._0x24686f,_0x3e1219-0x145,_0x325f7c);}return{'title':_0x1251d7[_0x5e2108(_0x4f50a9._0x43845,0x3cb,0x2ef,0x17b)]||_0xd3251b(0x3ca,_0x4f50a9._0x281598,0x41e,_0x4f50a9._0x202b66),'url':normalizeUrl(_0x28f8cd),'snippet':_0x1251d7[_0x5e2108(0x2f1,_0x4f50a9._0x59f8aa,_0x4f50a9._0x47b92e,0x446)]??null,'displayUrl':_0x30211d,'favicon':null,'publishedAt':null,'source':{'engine':'tavily','rank':_0x67addd+0x1}};});return{'items':_0x5ab9aa[_0x43cd88(0x74,-0x92,0x10,-_0x15f87b._0x3f4e72)](0x0,_0x3f0fc7),'engine':_0x1faaf1(-0x171,-0x1c2,-_0x15f87b._0x50b004,-_0x15f87b._0x1587c8)};}async function searchGoogleCse(_0x37c2c2,_0x2b6954,_0x54b3d9){const _0x5ccfd8={_0x1d47dc:0x63,_0x1cb011:0xee,_0x418fcc:0xd8,_0x506783:0xa0,_0xf6b8ce:0x0,_0x3c8276:0xaf,_0x491a9d:0x1,_0x3fc077:0x4,_0x40c6fa:0x54,_0x5c7914:0x1af,_0x2114f6:0xc5,_0x4189c4:0x3,_0x32478c:0x66,_0x299623:0x108,_0x6fb97:0x14b,_0x1d71f7:0xb6,_0x153c89:0x8c,_0x308162:0x25,_0x3e3a0d:0xd7,_0x48dff8:0xc7,_0x5b47d4:0xb,_0x2e8739:0xab,_0x364e36:0x17e,_0x331ee8:0x134,_0x2ff44b:0x248,_0x163aa1:0x219,_0x1e8d9d:0x52,_0x2ed5cb:0x1f,_0x1b6c44:0x15c,_0x16b09f:0x12f,_0x45c63b:0x11b,_0x1fba61:0x5d,_0x1634f5:0x18,_0x38a8a4:0x93,_0xb92405:0x81,_0xaf7677:0x16d,_0xd5dc7e:0xdf,_0x165275:0x49,_0x168971:0x14,_0x243711:0x1e0,_0x11024e:0xab,_0x51875a:0xc,_0x83b7a6:0x4d,_0x484bc6:0x65,_0x538c0a:0x110,_0x39577f:0x106,_0x388f0f:0xf2,_0x47dd9b:0x1ad,_0x2b0c05:0x107,_0x53eabd:0x138,_0x401571:0xeb,_0x50e735:0x38,_0x213f9d:0x24a,_0xbe5699:0x15f,_0x2d47a2:0x129,_0x51c50b:0x5,_0x1c826d:0xbd,_0x1b073c:0x86,_0x11beeb:0x129,_0x37ac5b:0x100,_0x15fbb4:0x74,_0x1a66bb:0x5,_0x460be5:0x87,_0x4e2f63:0x24,_0x16b890:0x48,_0x23c2d3:0x150,_0x5206cc:0x40,_0xe0e9bc:0xef,_0x332553:0x58,_0x1615aa:0x10f,_0x46c018:0x22,_0x5169f8:0xa4,_0x174404:0x5a,_0x164b82:0x13a,_0x48ed64:0x131,_0xc74f5f:0x2e,_0x25fafb:0x75,_0x3b97e4:0x63,_0x27c812:0xf6,_0x461672:0x9e,_0x456b70:0x1bc,_0x21f0c1:0x7d,_0x19b112:0xee,_0x5b65a2:0x10e,_0x1607db:0x139,_0xdb23ba:0x82,_0x4f3b4c:0xea,_0x54b67e:0x5,_0x4d920f:0x4a,_0x4edd41:0xea,_0x5f3494:0x182,_0x659a9c:0x3c,_0x3386a1:0xde,_0x45b024:0x198,_0x5e0c5f:0x28,_0x365bcd:0x103,_0x5e71ef:0x17f,_0x179a11:0x16c,_0x41c88f:0xa1,_0x6e60d8:0x8,_0x20ca11:0x1ae,_0xaac8a:0x49,_0xf91ff9:0x179,_0x4b6ea5:0x14e,_0x173f98:0x7a,_0x1a4996:0x91,_0x50fb22:0x21,_0x213b7f:0x128,_0x1dc197:0xea,_0x238ad0:0xaa,_0x333869:0x37,_0xbd9f18:0x147,_0x218adf:0x70,_0x5dbe07:0xdf,_0x2883d9:0xbe,_0x21e599:0x55,_0x83f82f:0x215,_0x573c88:0xb1,_0x402ca4:0x101},_0x385cc6={_0x353ac3:0x1b,_0x3631ed:0x204},_0x598eb0={_0x239dd9:0x15e},_0x145b6b=Math['max'](0x1,Math['min'](0x32,_0x2b6954[_0x5e4bb3(_0x5ccfd8._0x1d47dc,-_0x5ccfd8._0x1cb011,-_0x5ccfd8._0x418fcc,_0x5ccfd8._0x506783)]));if(_0x2b6954[_0x3953bc(_0x5ccfd8._0xf6b8ce,0x44,-0x1d,_0x5ccfd8._0x3c8276)]+_0x145b6b>0x64)throw new ToolExecutionError(_0x5e4bb3(-_0x5ccfd8._0x491a9d,_0x5ccfd8._0x3fc077,-_0x5ccfd8._0x40c6fa,-_0x5ccfd8._0x5c7914),{'offset':_0x2b6954[_0x5e4bb3(_0x5ccfd8._0x2114f6,-0x9c,-_0x5ccfd8._0x4189c4,-_0x5ccfd8._0x32478c)],'count':_0x145b6b,'maxResults':0x64});const _0x5a4c79=cseDateRestrict(_0x2b6954[_0x3953bc(-0xeb,-_0x5ccfd8._0x299623,-0x108,-0x260)]);function _0x5e4bb3(_0x18508e,_0xdb2ce8,_0x5a577e,_0x574a8e){return _0x1a7bb7(_0x18508e-0x135,_0x5a577e- -_0x598eb0._0x239dd9,_0x5a577e-0x20,_0x574a8e);}function _0x3953bc(_0x16bc99,_0x4ddd56,_0xd473a0,_0x34a8be){return _0x17d408(_0x16bc99-0x77,_0x4ddd56-_0x385cc6._0x353ac3,_0x4ddd56,_0xd473a0- -_0x385cc6._0x3631ed);}const _0x265c71=addSiteFilters(_0x2b6954[_0x3953bc(-_0x5ccfd8._0x6fb97,_0x5ccfd8._0x1d71f7,-_0x5ccfd8._0x153c89,-_0x5ccfd8._0x308162)],_0x2b6954[_0x3953bc(-_0x5ccfd8._0x3e3a0d,-_0x5ccfd8._0x48dff8,-0xa8,-_0x5ccfd8._0x5b47d4)]);let _0x1936fa=0x0,_0x18ddb7=_0x2b6954[_0x5e4bb3(-0x11d,-_0x5ccfd8._0x2e8739,-_0x5ccfd8._0x4189c4,-_0x5ccfd8._0x364e36)]+0x1;const _0x5ae5e1=[];while(_0x1936fa<_0x145b6b){const _0x580ef7=Math['min'](0xa,_0x145b6b-_0x1936fa),_0x325915=new URL(_0x3953bc(-_0x5ccfd8._0x331ee8,-_0x5ccfd8._0x2ff44b,-0x1c8,-_0x5ccfd8._0x163aa1));_0x325915[_0x3953bc(-_0x5ccfd8._0x1e8d9d,0x15a,-_0x5ccfd8._0x2ed5cb,-_0x5ccfd8._0x1b6c44)]['set'](_0x5e4bb3(-_0x5ccfd8._0x16b09f,-0x1fa,-_0x5ccfd8._0x45c63b,-_0x5ccfd8._0x1fba61),_0x37c2c2[_0x5e4bb3(-_0x5ccfd8._0x1634f5,_0x5ccfd8._0x38a8a4,-0x31,-_0x5ccfd8._0xb92405)]),_0x325915[_0x5e4bb3(-_0x5ccfd8._0xaf7677,_0x5ccfd8._0xd5dc7e,-0x5,_0x5ccfd8._0x165275)][_0x3953bc(-0xf4,-0x7a,-0xc5,-0x23e)]('cx',_0x37c2c2['googleCseCx']),_0x325915[_0x5e4bb3(-0x109,-0x53,-0x5,0x36)]['set']('q',_0x265c71),_0x325915[_0x5e4bb3(0x4e,-_0x5ccfd8._0x168971,-0x5,-0xb3)][_0x5e4bb3(-_0x5ccfd8._0x243711,-0x50,-_0x5ccfd8._0x11024e,0x28)]('num',String(_0x580ef7)),_0x325915[_0x5e4bb3(-0x11b,0x45,-0x5,-_0x5ccfd8._0x51875a)]['set'](_0x3953bc(_0x5ccfd8._0x83b7a6,-_0x5ccfd8._0x484bc6,0x42,-_0x5ccfd8._0x538c0a),String(_0x18ddb7)),_0x325915['searchParams']['set'](_0x3953bc(0x1d1,_0x5ccfd8._0x39577f,0x64,_0x5ccfd8._0x388f0f),_0x2b6954['safe']?_0x3953bc(-0xa2,-_0x5ccfd8._0x47dd9b,-_0x5ccfd8._0x2b0c05,-_0x5ccfd8._0x53eabd):_0x3953bc(0x1be,-0x2b,_0x5ccfd8._0x401571,_0x5ccfd8._0x50e735));_0x2b6954[_0x3953bc(-_0x5ccfd8._0x213f9d,-_0x5ccfd8._0xbe5699,-_0x5ccfd8._0x2d47a2,-0x6d)]&&(_0x325915[_0x5e4bb3(-0x89,-0x61,-_0x5ccfd8._0x51c50b,_0x5ccfd8._0x1c826d)][_0x5e4bb3(-0x13a,-0x1ac,-0xab,-_0x5ccfd8._0x1b073c)]('hl',_0x2b6954[_0x3953bc(-0x234,-0xed,-_0x5ccfd8._0x11beeb,-0x24f)]),_0x325915[_0x5e4bb3(_0x5ccfd8._0x37ac5b,-_0x5ccfd8._0x15fbb4,-_0x5ccfd8._0x1a66bb,-_0x5ccfd8._0x460be5)][_0x3953bc(_0x5ccfd8._0x4e2f63,_0x5ccfd8._0x16b890,-0xc5,-0x13f)]('lr',_0x3953bc(_0x5ccfd8._0x23c2d3,-_0x5ccfd8._0x5206cc,_0x5ccfd8._0xe0e9bc,_0x5ccfd8._0x332553)+_0x2b6954[_0x5e4bb3(-0x18a,-0x248,-_0x5ccfd8._0x1615aa,-_0x5ccfd8._0x46c018)]));if(_0x2b6954['region'])_0x325915[_0x5e4bb3(-_0x5ccfd8._0x5169f8,_0x5ccfd8._0x174404,-0x5,-_0x5ccfd8._0x6fb97)][_0x5e4bb3(0x90,-_0x5ccfd8._0x164b82,-0xab,-_0x5ccfd8._0x48ed64)]('gl',_0x2b6954[_0x5e4bb3(-_0x5ccfd8._0xc74f5f,0x18,0x125,0x239)][_0x5e4bb3(_0x5ccfd8._0x25fafb,0x15b,_0x5ccfd8._0x3b97e4,-_0x5ccfd8._0x27c812)]());if(_0x2b6954[_0x3953bc(_0x5ccfd8._0x461672,-_0x5ccfd8._0x456b70,-_0x5ccfd8._0x21f0c1,0x46)]===_0x3953bc(-_0x5ccfd8._0x19b112,-0x10e,-0x5c,-0x179))_0x325915[_0x5e4bb3(_0x5ccfd8._0x5b65a2,-0x17a,-0x5,-0x69)][_0x3953bc(-0x1f2,-0x21d,-_0x5ccfd8._0x2114f6,-_0x5ccfd8._0x1607db)]('searchType','image');if(_0x5a4c79)_0x325915[_0x5e4bb3(_0x5ccfd8._0xdb23ba,_0x5ccfd8._0x4f3b4c,-_0x5ccfd8._0x54b67e,0x1c)]['set'](_0x5e4bb3(0xc4,_0x5ccfd8._0x4d920f,-_0x5ccfd8._0x4d920f,-_0x5ccfd8._0x4edd41),_0x5a4c79);const _0x117632=await fetchJson(_0x325915[_0x5e4bb3(_0x5ccfd8._0x5f3494,_0x5ccfd8._0x659a9c,_0x5ccfd8._0x3386a1,0x3a)](),_0x54b3d9),_0x355084=_0x117632[_0x5e4bb3(-_0x5ccfd8._0x538c0a,-_0x5ccfd8._0x45b024,-0x167,-_0x5ccfd8._0x5e0c5f)]??[];if(_0x355084['length']===0x0)break;const _0x9ccfc=_0x1936fa;for(let _0x2d66d6=0x0;_0x2d66d6<_0x355084['length'];_0x2d66d6++){const _0x5a2d24=_0x355084[_0x2d66d6];if(!_0x5a2d24)continue;const _0x192ea3=_0x5a2d24['link']||_0x5a2d24['image']?.['contextLink']||'',_0x2fc459=_0x5a2d24['title']||_0x5a2d24[_0x3953bc(-_0x5ccfd8._0x365bcd,-0x64,-0x1ce,-0x167)]?.[_0x5e4bb3(-0x28,-_0x5ccfd8._0x5e71ef,-_0x5ccfd8._0x179a11,0x0)]||'Untitled',_0x7a0cc=_0x5a2d24[_0x5e4bb3(-0x39,0x25,-0x86,-0x1f5)]||_0x5a2d24[_0x5e4bb3(0xce,0xa6,_0x5ccfd8._0x41c88f,0x34)]?.[_0x3953bc(_0x5ccfd8._0x3fc077,0xa7,_0x5ccfd8._0x6e60d8,-0xd5)](/<[^>]+>/g,''),_0x12b2f8=_0x5a2d24[_0x3953bc(-0x1bb,-_0x5ccfd8._0x20ca11,-_0x5ccfd8._0xaac8a,-0x41)]?.[_0x3953bc(_0x5ccfd8._0xf91ff9,_0x5ccfd8._0x4b6ea5,_0x5ccfd8._0x173f98,_0x5ccfd8._0x1a4996)]?.[0x0]??{};let _0x3860b5;try{_0x3860b5=new URL(_0x192ea3)['host'];}catch{_0x3860b5=null;}_0x5ae5e1[_0x5e4bb3(0x204,_0x5ccfd8._0x50fb22,_0x5ccfd8._0x213b7f,0x291)]({'title':_0x2fc459,'url':normalizeUrl(_0x192ea3),'snippet':_0x7a0cc??null,'displayUrl':_0x3860b5,'favicon':null,'publishedAt':_0x12b2f8[_0x5e4bb3(-0x102,_0x5ccfd8._0x491a9d,-_0x5ccfd8._0x1dc197,0x47)]||_0x12b2f8[_0x5e4bb3(-0x21d,-_0x5ccfd8._0x6fb97,-_0x5ccfd8._0x238ad0,-0x215)]||null,'source':{'engine':'google-cse','rank':_0x9ccfc+_0x2d66d6+0x1}});}_0x1936fa+=_0x355084[_0x3953bc(-_0x5ccfd8._0x333869,-_0x5ccfd8._0xbd9f18,-0xf9,-0x65)],_0x18ddb7+=_0x355084[_0x5e4bb3(-0xb6,-_0x5ccfd8._0x218adf,-_0x5ccfd8._0x5dbe07,-0xa8)];if(_0x355084[_0x5e4bb3(-_0x5ccfd8._0x2883d9,-0x18b,-_0x5ccfd8._0x5dbe07,-0x39)]<_0x580ef7)break;}return _0x5ae5e1[_0x5e4bb3(_0x5ccfd8._0x21e599,-_0x5ccfd8._0x83f82f,-_0x5ccfd8._0x573c88,-_0x5ccfd8._0x402ca4)](0x0,_0x145b6b);}function isGoogleCseEngine(_0x5259e1){return'googleCseKey'in _0x5259e1;}function isOllamaEngine(_0x3db5a8){const _0x1639d6={_0x37c73c:0x74},_0x39cab1={_0x4cb118:0x85,_0x332c68:0x65};function _0x47929f(_0x296390,_0x4d5705,_0x135011,_0x31be14){return _0x1a7bb7(_0x296390-_0x39cab1._0x4cb118,_0x31be14- -0x1ca,_0x135011-_0x39cab1._0x332c68,_0x296390);}return _0x47929f(-0x29,0x31,_0x1639d6._0x37c73c,-0xbe)in _0x3db5a8;}function isTavilyEngine(_0x28ce8c){return'tavilyApiKey'in _0x28ce8c;}function createWebSearchTool(_0x506a03){const _0x257531={_0x4bd5d4:0x15e,_0x1530d4:0x1ed,_0x2bdad0:0x71,_0x23a281:0xfa,_0x29db51:0x15c,_0x147c10:0x407,_0x1d7f7b:0x3b6,_0x3eb1ff:0x28d,_0x450fda:0x34c,_0x475817:0x1f6,_0x97a3bb:0x228,_0x4fb02e:0x389,_0x4337d6:0x2c6,_0x44d3a4:0x23b,_0x37449a:0x119,_0x257a9e:0x3aa,_0x58f1eb:0x338,_0x26d797:0x32e,_0xe8979f:0x391,_0x8f021:0x455,_0x53278b:0x697,_0x3f1bbf:0x18d,_0x5b1c9c:0x426,_0x5e35f6:0x50f,_0x33c18c:0x4bf,_0x1423e4:0x508,_0x470817:0x3e1,_0xa18343:0x4f6,_0x50a1e5:0x364,_0x783384:0x1b2,_0x2a974a:0x29f,_0x4e3a22:0xf2,_0x1a3b1f:0x2e9,_0x181553:0x2a3,_0x287ae6:0x60a,_0x4ee894:0x249,_0x32268f:0x191,_0x2ce275:0x6d7,_0x2c46d8:0x49d,_0x5225e3:0x613,_0x1e777c:0x1b2,_0x555be1:0xfb,_0x128f33:0x107,_0x8504:0x587,_0x31579f:0x58d,_0x73d17a:0x5d8,_0x24e112:0x5d4},_0x49feb7={_0x4d60e1:0xa5,_0x3efc88:0x191,_0x10ef3b:0x1c3,_0xae00be:0x7e,_0x17e342:0x175,_0x35ce76:0x98,_0x404af4:0x79,_0x13c29d:0x2d,_0x41abdb:0x39,_0x516d99:0x97,_0x9eb3e0:0xc1,_0x1e5474:0x1f,_0x2467d3:0x11,_0x14d800:0x5a,_0x162038:0x1b6,_0x20611b:0x3b,_0x397236:0x101,_0x3cb501:0x98,_0x40e613:0x1de,_0x4a02b0:0x4e,_0xf8286:0x91,_0x389a0f:0x2ac,_0x33878b:0x2d0,_0x1d715d:0x189,_0x308031:0x2a,_0x1d9a58:0x12c,_0xec40e3:0x4d,_0x52fbc3:0x2c5,_0x5a9f41:0x1ed,_0x365a96:0x260,_0x7a8f9:0x71,_0x25ac00:0x85,_0x168b0b:0x156,_0x5f1744:0x1a3,_0x48030c:0x106,_0x572a90:0x66,_0x73a3c3:0xbf,_0x2e4fbc:0x124,_0x5cb860:0x1f8,_0x4bfdea:0x65,_0x2a4a20:0xf7,_0x563675:0x9f,_0x4aaf47:0xde,_0x312817:0x284,_0x215bf8:0x32c,_0x1fd1c4:0x2b8,_0x53b339:0x5b,_0x12cc90:0xe1,_0x2de7b0:0x21,_0xce9a67:0x40c,_0x31ccb5:0x2b8,_0x5e07e0:0x7,_0x1f28bc:0x6d,_0x244fe5:0x19a,_0x2fd4bf:0x131,_0x5475cd:0x35,_0x11a78a:0xc7,_0x2765c8:0x87,_0x15d183:0x48,_0x3d41a3:0xe2,_0x226686:0x22a,_0x1f333c:0x163,_0x48485e:0x192,_0x576c54:0x260,_0x68a9c8:0x3,_0x1bae72:0xba,_0x415e52:0x2a9,_0x370ca4:0x28e,_0x51c1ae:0x230,_0x36f19c:0x59,_0x3c17bf:0x1ba,_0x23b649:0x91,_0x5a01fb:0x128,_0x128473:0xf1,_0x15934f:0x208,_0x5ddbd2:0x149,_0x15c2c6:0x23f,_0x3babbe:0x36b,_0x24a0b5:0x280,_0x52368:0x2af,_0x50c371:0x260,_0x188be7:0x1ec,_0x4fa4be:0x112,_0x4b4042:0x1d2,_0x1a4697:0x122,_0x47308f:0xce,_0x360e61:0xff,_0x23bcdf:0x2c,_0x4234b3:0x245,_0x13d88a:0xb8,_0x5d8ece:0x16e,_0x4ee8fe:0x18a,_0x391f2f:0x203,_0x4c9d7b:0x33d,_0x7f9282:0x1c5,_0x5b4820:0x2ae,_0x134dc4:0x229,_0x1313eb:0x90},_0x2c78a2={_0x2ab703:0x184},_0x1b6669={_0x2ac987:0xee,_0x306c6a:0x2f6};function _0x1cfb7c(_0x51120b,_0x1b7c82,_0x52e502,_0x30d931){return _0x1a7bb7(_0x51120b-_0x1b6669._0x2ac987,_0x51120b- -_0x1b6669._0x306c6a,_0x52e502-0x5f,_0x52e502);}if(!_0x506a03[_0x1cfb7c(-0x71,-_0x257531._0x4bd5d4,-_0x257531._0x1530d4,-0x1a3)]||_0x506a03[_0x1cfb7c(-_0x257531._0x2bdad0,-_0x257531._0x23a281,-_0x257531._0x29db51,-0xce)][_0x1ed2ce(_0x257531._0x147c10,0x44a,_0x257531._0x1d7f7b,0x568)]===0x0)throw new Error(_0x1cfb7c(-_0x257531._0x3eb1ff,-_0x257531._0x450fda,-_0x257531._0x475817,-0x123));const _0x359350=_0x506a03[_0x1ed2ce(_0x257531._0x97a3bb,_0x257531._0x4fb02e,0x223,_0x257531._0x4337d6)]??_0x1cfb7c(-_0x257531._0x44d3a4,-_0x257531._0x37449a,-_0x257531._0x257a9e,-0x2df),_0x5bbba0=_0x506a03[_0x1ed2ce(0x2f0,0x3ff,_0x257531._0x58f1eb,_0x257531._0x26d797)];function _0x1ed2ce(_0xf516a4,_0x4d5478,_0x29534a,_0x3dccba){return _0x17d408(_0xf516a4-0xdb,_0x4d5478-_0x2c78a2._0x2ab703,_0x29534a,_0x4d5478-0x33f);}return defineTool({'name':_0x359350,'description':_0x1ed2ce(_0x257531._0xe8979f,0x4d8,_0x257531._0x8f021,0x610),'inputSchema':{'type':_0x1ed2ce(0x644,0x649,_0x257531._0x53278b,0x780),'properties':{'description':{'type':_0x1cfb7c(-0x1b2,-0x194,-_0x257531._0x3f1bbf,-0x80)},'query':{'type':_0x1ed2ce(_0x257531._0x5b1c9c,_0x257531._0x5e35f6,0x44a,0x5df)},'count':{'type':_0x1ed2ce(_0x257531._0x33c18c,0x3e1,0x4fe,_0x257531._0x1423e4)},'offset':{'type':_0x1ed2ce(0x378,_0x257531._0x470817,_0x257531._0xa18343,_0x257531._0x50a1e5)},'domains':{'type':'array','items':{'type':_0x1cfb7c(-_0x257531._0x783384,-_0x257531._0x2a974a,-0x220,-_0x257531._0x4e3a22)}},'recencyDays':{'type':_0x1ed2ce(0x27c,_0x257531._0x470817,_0x257531._0x1a3b1f,_0x257531._0x181553)},'lang':{'type':_0x1ed2ce(_0x257531._0x287ae6,0x50f,0x416,0x3b9)},'region':{'type':_0x1cfb7c(-_0x257531._0x783384,-_0x257531._0x4ee894,-_0x257531._0x32268f,-0xe0)},'safe':{'type':_0x1ed2ce(_0x257531._0x2ce275,0x587,_0x257531._0x2c46d8,_0x257531._0x5225e3)},'type':{'type':_0x1cfb7c(-_0x257531._0x1e777c,-_0x257531._0x555be1,-_0x257531._0x128f33,-0x26a)},'hydrateMeta':{'type':_0x1ed2ce(0x46e,_0x257531._0x8504,0x668,_0x257531._0x31579f)}},'required':[_0x1ed2ce(0x609,0x4b7,_0x257531._0x73d17a,_0x257531._0x24e112)]},async *'execute'(_0x24071a,_0x5c776b){const _0x423ad7={_0x437e2e:0x10b,_0x3f6b68:0x244,_0x43e355:0xcf,_0x4d56be:0x12c,_0x1397a7:0x105,_0xbdff89:0x14f,_0x559a05:0xe9},_0x34a4bf={_0x3dd80a:0x16e,_0x551a50:0x13d},_0x5ab2a3={_0x38ddba:0x67a},_0x523e73={_0x3094b3:0x195,_0x2b086a:0x1c7,_0x2f93b:0x6};function _0x575740(_0x3583e6,_0x581005,_0xe121d2,_0x4cff7a){return _0x1cfb7c(_0x4cff7a-_0x523e73._0x3094b3,_0x581005-_0x523e73._0x2b086a,_0xe121d2,_0x4cff7a-_0x523e73._0x2f93b);}const _0xcb30e7=_0x24071a[_0x2a3e1a(-_0x49feb7._0x4d60e1,-_0x49feb7._0x3efc88,-0x10d,-_0x49feb7._0x10ef3b)][_0x2a3e1a(-_0x49feb7._0xae00be,-_0x49feb7._0x17e342,-_0x49feb7._0x35ce76,-0xaf)]();if(!_0xcb30e7)throw new ToolExecutionError(_0x2a3e1a(-0xd7,-_0x49feb7._0x404af4,_0x49feb7._0x13c29d,-_0x49feb7._0x41abdb));function _0x2a3e1a(_0xc53bcf,_0x1fe6a3,_0x16c4cb,_0x2c0c33){return _0x1ed2ce(_0xc53bcf-0xe0,_0x2c0c33- -_0x5ab2a3._0x38ddba,_0x1fe6a3,_0x2c0c33-0x25);}const _0x432985={'query':_0xcb30e7,'count':Math['max'](0x1,Math[_0x575740(-_0x49feb7._0x516d99,_0x49feb7._0x9eb3e0,_0x49feb7._0x1e5474,-_0x49feb7._0x2467d3)](0x32,Math[_0x575740(-_0x49feb7._0x14d800,_0x49feb7._0x162038,-_0x49feb7._0x20611b,0x4d)](_0x24071a['count']??0xa))),'offset':Math['max'](0x0,Math[_0x2a3e1a(-_0x49feb7._0x35ce76,-0xaf,0x52,-_0x49feb7._0x397236)](_0x24071a[_0x2a3e1a(-0x247,-_0x49feb7._0x3cb501,-_0x49feb7._0x40e613,-0x154)]??0x0)),'domains':_0x24071a[_0x575740(_0x49feb7._0x4a02b0,-0x18d,-0x164,-_0x49feb7._0xf8286)]??[],'recencyDays':Math[_0x575740(-_0x49feb7._0x389a0f,-_0x49feb7._0x33878b,-0x2de,-_0x49feb7._0x1d715d)](0x0,Math[_0x575740(-_0x49feb7._0x308031,_0x49feb7._0x1d9a58,0x124,_0x49feb7._0xec40e3)](_0x24071a['recencyDays']??0x0)),'lang':_0x24071a[_0x2a3e1a(-0x3c6,-_0x49feb7._0x52fbc3,-_0x49feb7._0x5a9f41,-_0x49feb7._0x365a96)]??'en','region':_0x24071a['region']??'','safe':_0x24071a[_0x2a3e1a(0x6b,-_0x49feb7._0x7a8f9,_0x49feb7._0x25ac00,-0xd3)]??!![],'type':normalizeType(_0x24071a[_0x575740(-_0x49feb7._0x168b0b,-_0x49feb7._0x5f1744,_0x49feb7._0x48030c,-_0x49feb7._0x572a90)]),'hydrateMeta':_0x24071a['hydrateMeta']??![]};let _0x31a3fe=[],_0x25e68f='unknown';for(const _0x1bf006 of _0x506a03[_0x575740(_0x49feb7._0x73a3c3,0x14c,0x45,_0x49feb7._0x2e4fbc)]){try{if(isGoogleCseEngine(_0x1bf006))_0x31a3fe=await searchGoogleCse(_0x1bf006,_0x432985,_0x5c776b[_0x575740(-_0x49feb7._0x5cb860,0x1c,-_0x49feb7._0x4bfdea,-_0x49feb7._0x2a4a20)]),_0x25e68f=_0x2a3e1a(-_0x49feb7._0x563675,-0x23,0x8a,-_0x49feb7._0x4aaf47);else{if(isOllamaEngine(_0x1bf006)){const _0x1e0419=await searchOllama(_0x1bf006,_0x432985,_0x5c776b['signal']);_0x31a3fe=_0x1e0419[_0x2a3e1a(-_0x49feb7._0x312817,-0x1c4,-_0x49feb7._0x215bf8,-_0x49feb7._0x1fd1c4)],_0x25e68f=_0x1e0419[_0x2a3e1a(-0x49,-_0x49feb7._0x53b339,-0x1f4,-_0x49feb7._0x12cc90)];}else{if(isTavilyEngine(_0x1bf006)){const _0x4faef2=await searchTavily(_0x1bf006,_0x432985,_0x5c776b[_0x575740(0x27,-_0x49feb7._0x2de7b0,0xf,-0xf7)]);_0x31a3fe=_0x4faef2[_0x2a3e1a(-_0x49feb7._0xce9a67,-0x16f,-0x3c1,-_0x49feb7._0x31ccb5)],_0x25e68f=_0x4faef2[_0x575740(-_0x49feb7._0x5e07e0,-0x5a,0xb8,_0x49feb7._0x1f28bc)];}}}if(_0x31a3fe[_0x575740(-_0x49feb7._0x244fe5,0x3c,0x3e,-0xe2)]>0x0)break;}catch(_0x1de470){if(_0x1bf006===_0x506a03['engines'][_0x506a03[_0x2a3e1a(_0x49feb7._0x2fd4bf,_0x49feb7._0x5475cd,_0x49feb7._0x11a78a,-0x2a)][_0x575740(-0x160,-0x134,-_0x49feb7._0x2765c8,-0xe2)]-0x1])throw _0x1de470;}}_0x432985[_0x2a3e1a(-0x1a5,-0x27e,-0x196,-0x126)]&&_0x31a3fe[_0x575740(-0x65,-_0x49feb7._0x15d183,-0xe,-_0x49feb7._0x3d41a3)]>0x0&&(_0x31a3fe=await hydrateResults(_0x31a3fe,_0x432985[_0x2a3e1a(-_0x49feb7._0x226686,-_0x49feb7._0x1f333c,-_0x49feb7._0x48485e,-_0x49feb7._0x576c54)],_0x5c776b['signal'],_0x5bbba0));const _0x27a5c9=new Set();_0x31a3fe=_0x31a3fe[_0x2a3e1a(-0x204,_0x49feb7._0x68a9c8,-0x1ff,-0xc1)](_0x3644f7=>{const _0x17999a=_0x3644f7[_0x412240(-0x217,-_0x423ad7._0x437e2e,-_0x423ad7._0x3f6b68,-_0x423ad7._0x43e355)]['toLowerCase']();if(!_0x17999a||_0x27a5c9[_0x412240(_0x423ad7._0x4d56be,_0x423ad7._0x1397a7,-0x2a,_0x423ad7._0xbdff89)](_0x17999a))return![];_0x27a5c9[_0x22bb53(0x201,0x2db,0x15f,_0x423ad7._0x559a05)](_0x17999a);function _0x412240(_0xbfbdf3,_0x29b70a,_0x39d230,_0x2d5835){return _0x2a3e1a(_0xbfbdf3-0xcf,_0xbfbdf3,_0x39d230-0xa4,_0x39d230-0x99);}function _0x22bb53(_0x1219a8,_0x36a34a,_0x12ae11,_0x54080b){return _0x575740(_0x1219a8-0x5e,_0x36a34a-_0x34a4bf._0x3dd80a,_0x1219a8,_0x12ae11-_0x34a4bf._0x551a50);}return!![];}),_0x31a3fe=_0x31a3fe[_0x575740(0x13f,0x11b,_0x49feb7._0x1bae72,-_0x49feb7._0x13c29d)]((_0x2e69c8,_0x49b863)=>({..._0x2e69c8,'source':{..._0x2e69c8['source'],'rank':_0x49b863+0x1}}));const _0x215daa={};if(_0x432985[_0x2a3e1a(-0x2f7,-0x2bf,-0x174,-0x1df)][_0x2a3e1a(-_0x49feb7._0x415e52,-_0x49feb7._0x370ca4,-0x33d,-_0x49feb7._0x51c1ae)]>0x0)_0x215daa[_0x575740(-_0x49feb7._0x5f1744,_0x49feb7._0x36f19c,-_0x49feb7._0x3c17bf,-_0x49feb7._0x23b649)]=_0x432985['domains'];if(_0x432985[_0x575740(-0x21c,-_0x49feb7._0x5a01fb,-0x1ca,-_0x49feb7._0x128473)]>0x0)_0x215daa[_0x2a3e1a(-_0x49feb7._0x15934f,-0x275,-_0x49feb7._0x5ddbd2,-_0x49feb7._0x15c2c6)]=_0x432985[_0x2a3e1a(-_0x49feb7._0x3babbe,-0x1e0,-_0x49feb7._0x24a0b5,-0x23f)];if(_0x432985[_0x2a3e1a(-_0x49feb7._0x52368,-0x2fe,-0x3cd,-_0x49feb7._0x50c371)]!=='en')_0x215daa['lang']=_0x432985[_0x575740(-0x220,-0x15b,-_0x49feb7._0x188be7,-_0x49feb7._0x4fa4be)];if(_0x432985[_0x575740(_0x49feb7._0x4b4042,-0x32,0x9e,_0x49feb7._0x1a4697)])_0x215daa[_0x2a3e1a(-_0x49feb7._0x47308f,-0x4a,-0xeb,-0x2c)]=_0x432985[_0x2a3e1a(0x9b,-_0x49feb7._0x360e61,-0x17b,-_0x49feb7._0x23bcdf)];return yield createToolOutput(formatResults(_0x31a3fe),{'engine':_0x25e68f,'count':_0x31a3fe[_0x2a3e1a(-_0x49feb7._0x4234b3,-_0x49feb7._0x13d88a,-_0x49feb7._0x5d8ece,-0x230)],'items':_0x31a3fe,'query':_0x432985[_0x2a3e1a(-_0x49feb7._0x4ee8fe,-_0x49feb7._0x391f2f,-_0x49feb7._0x4c9d7b,-_0x49feb7._0x10ef3b)],...Object['keys'](_0x215daa)['length']>0x0?{'appliedFilters':_0x215daa}:{},'offset':_0x432985['offset'],'totalRequested':_0x432985[_0x2a3e1a(-0x1c7,-_0x49feb7._0x7f9282,-_0x49feb7._0x5b4820,-_0x49feb7._0x134dc4)],'hydrated':_0x432985[_0x575740(0x171,-_0x49feb7._0x1313eb,0x29,0x28)]}),void 0x0;}});}export{BackgroundProcessRegistry,ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashOutputTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createKillShellTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
1
+ (function(_0x15240c,_0x33fbef){const _0x4bcab2={_0x3843e5:0x3b7,_0x571773:0x52,_0x42feca:0x178,_0x57d112:0x1ff,_0x1bc734:0x40,_0x574202:0xab,_0x58442e:0xd1,_0x5c4f7e:0x6d5,_0x290f1b:0x32,_0x1fbbdf:0x188,_0x22d718:0x1a6,_0x3a43f7:0x3e,_0x5d3907:0x11,_0x45be50:0xd7,_0x27a9a3:0xd8,_0x297e7a:0x624,_0x15bd28:0x6e8,_0x54afc2:0x6e5,_0x245023:0x2bc,_0x3fa872:0x259},_0x3ca60f={_0x578567:0x1b8};function _0x354562(_0x4d3a42,_0xae4aaf,_0x3bf4b6,_0x3a0b13){return _0x1df5(_0x3a0b13-0x2f4,_0xae4aaf);}const _0x2b8ebf=_0x15240c();function _0x439b33(_0x196a5d,_0xacd0dd,_0x5b2623,_0x4d281e){return _0x1df5(_0xacd0dd- -_0x3ca60f._0x578567,_0x196a5d);}while(!![]){try{const _0x37e55a=-parseInt(_0x354562(0x3e2,0x497,_0x4bcab2._0x3843e5,0x523))/0x1+parseInt(_0x439b33(_0x4bcab2._0x571773,0xc5,_0x4bcab2._0x42feca,_0x4bcab2._0x57d112))/0x2*(parseInt(_0x439b33(0x32,0x99,0x96,-_0x4bcab2._0x1bc734))/0x3)+parseInt(_0x439b33(-_0x4bcab2._0x574202,0x12,_0x4bcab2._0x58442e,0xba))/0x4+-parseInt(_0x354562(0x695,_0x4bcab2._0x5c4f7e,0x6e5,0x602))/0x5*(parseInt(_0x439b33(_0x4bcab2._0x290f1b,_0x4bcab2._0x1fbbdf,0x159,0x72))/0x6)+parseInt(_0x439b33(-_0x4bcab2._0x22d718,-_0x4bcab2._0x3a43f7,-0x1a3,0xb9))/0x7+-parseInt(_0x439b33(-0x95,-_0x4bcab2._0x5d3907,_0x4bcab2._0x45be50,-_0x4bcab2._0x27a9a3))/0x8+-parseInt(_0x354562(_0x4bcab2._0x297e7a,0x696,_0x4bcab2._0x15bd28,_0x4bcab2._0x54afc2))/0x9*(-parseInt(_0x439b33(_0x4bcab2._0x245023,0x14c,_0x4bcab2._0x3fa872,0x119))/0xa);if(_0x37e55a===_0x33fbef)break;else _0x2b8ebf['push'](_0x2b8ebf['shift']());}catch(_0x4152a4){_0x2b8ebf['push'](_0x2b8ebf['shift']());}}}(_0x2ed3,0x28633));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-FKZ3QQWZ.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 _0x27768c from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x257320(0x48c,0x67a,0x57a,0x4aa),'.tsx':_0x257320(0x568,0x4e5,0x50c,0x5ed),'.js':_0x3342ed(0x304,0x303,0x337,0x3c5),'.jsx':_0x3342ed(0x121,0x153,0x233,0x3a7),'.mjs':_0x3342ed(0x416,0x3e8,0x337,0x2e2),'.cjs':_0x257320(0x462,0x3f5,0x3c3,0x481),'.mts':'typescript','.cts':'typescript','.json':_0x257320(0x29a,0x262,0x39e,0x3ad),'.jsonc':_0x257320(0x48d,0x318,0x482,0x36a)};function getLanguageId(_0x43b0c7){return EXTENSION_TO_LANGUAGE[_0x27768c['extname'](_0x43b0c7)['toLowerCase']()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x4e50ef){return pathToFileURL(_0x4e50ef)['toString']();}function textDocumentPosition(_0x3e32f4){const _0x31c52a={_0x5b9164:0x186,_0x72a12:0x4f6,_0x34b786:0x38e,_0x357f1a:0x5ea},_0x2708fd={_0x3ddbd2:0x58,_0x56ae75:0x4a},_0x32588b={_0x470c4c:0x6c,_0x5e6de4:0x39d,_0x1dc5ce:0x5b};function _0x5baa32(_0x41a0c0,_0x22f197,_0x4d96e3,_0x881ab4){return _0x3342ed(_0x41a0c0-_0x32588b._0x470c4c,_0x22f197,_0x41a0c0- -_0x32588b._0x5e6de4,_0x881ab4-_0x32588b._0x1dc5ce);}function _0x1f971b(_0xa3d6fc,_0x35db2d,_0x241236,_0x16aaa4){return _0x3342ed(_0xa3d6fc-0xd6,_0x16aaa4,_0xa3d6fc-_0x2708fd._0x3ddbd2,_0x16aaa4-_0x2708fd._0x56ae75);}return{'textDocument':{'uri':uriForPath(_0x3e32f4[_0x5baa32(-_0x31c52a._0x5b9164,-0x265,-0x9b,-0xcf)])},'position':{'line':_0x3e32f4['line'],'character':_0x3e32f4[_0x1f971b(_0x31c52a._0x72a12,_0x31c52a._0x34b786,0x4c3,_0x31c52a._0x357f1a)]}};}function normalizeLocations(_0x7ce39e){const _0x2b6816={_0x30f0b8:0x1bd,_0x3b5cd3:0x170,_0x270269:0x1b3},_0x20a548={_0x3177dc:0x1b5,_0x2c7aff:0x189,_0x34ff71:0x207};if(!_0x7ce39e)return[];function _0x13db82(_0x14a3f9,_0x445afd,_0x50295e,_0xee9951){return _0x257320(_0x14a3f9-_0x20a548._0x3177dc,_0x445afd-_0x20a548._0x2c7aff,_0xee9951- -_0x20a548._0x34ff71,_0x14a3f9);}return Array[_0x13db82(_0x2b6816._0x30f0b8,0x170,_0x2b6816._0x3b5cd3,_0x2b6816._0x270269)](_0x7ce39e)?_0x7ce39e:[_0x7ce39e];}async function createLspClient(_0x5cb4dc){const _0x5e7702={_0x2bc54f:0x72a,_0x2b846d:0x6ea,_0x4d3b7c:0x6b4,_0x41a521:0x626,_0x59643d:0x407,_0x4f4e81:0x4c0,_0xb428bc:0x3d9,_0x3b1165:0x525,_0x242d76:0x5fe,_0x2f86ca:0x647,_0x27122d:0x437,_0x91ce68:0x415,_0x2ba204:0x422,_0x1eecc0:0x4e3,_0x1d4660:0x600,_0x28fbea:0x7fc,_0x456d2b:0x6f5,_0x3534f5:0x716,_0x1d89ed:0x5a0,_0xdedc4:0x3dc,_0x448c7e:0x4ab,_0x49cd32:0x498,_0x4428fb:0x721,_0x509e66:0x64c,_0x470159:0x6f9,_0x3c031e:0x6a3,_0x3659c0:0x3e2,_0x1435c8:0x3fe,_0x257bab:0x544,_0x288f26:0x3e2,_0x589c4c:0x66c,_0x3b6fe5:0x504,_0x33e9fd:0x3ad,_0x4eb9cf:0x40c,_0x4eb63d:0x37e,_0x368ee4:0x4a9,_0x208275:0x317,_0x1ecf04:0x3c8,_0x47e537:0x5c2,_0x111997:0x706,_0x5c09f3:0x557,_0x10e34e:0x42b,_0x56e765:0x367,_0x5df298:0x433},_0x1f554d={_0x17f385:0x8e},_0x5d1fe0={_0x4fc703:0x23a,_0x788275:0x2a8,_0x401396:0x789,_0x5d0bf9:0x71a,_0x27dafa:0x6d2,_0x1c4c47:0x33e,_0x83f2a:0x24e,_0x11fb31:0x2c1,_0x28c35f:0x123,_0x47e777:0x7ac,_0x27b92b:0x32d,_0x531099:0x651,_0x171dfa:0x699,_0x10867d:0x7d9},_0x40a87c={_0x3ae5a1:0x19,_0x33366c:0x3b3,_0x584358:0x15d},_0x104eda={_0x2a1159:0x251},_0x4ab700={_0x5e0cf2:0x511,_0x137bb1:0x451,_0x3c772a:0x5b8,_0x3aa397:0x487},_0x252aa3={_0x3f43b9:0x68f,_0x2c8374:0x75b,_0x4480a2:0x7ac,_0x499d71:0x55a},_0x321c4e={_0x27e9eb:0xef},_0x104aa7={_0x427832:0x18d,_0x12ab4c:0x500,_0x4cdde7:0x520},_0x3fab73={_0x430dc7:0xe4,_0x336b6d:0x4d1,_0x2f29fe:0x95},_0x6b76b0={_0x1125df:0x5b,_0x4477a2:0x1cf},_0x3c2dbd={_0x257001:0x1d8,_0x32f852:0x530},_0x2073ac={_0x5b162b:0x68a},_0x4a48f3={_0x3b97e7:0x16,_0x10c6bc:0x23,_0x27045f:0x10d,_0x50d29c:0x50,_0x2e90a0:0xb4},_0x14d36e={_0x5ec0cc:0x171,_0x1d867a:0x634},_0x7d6cab={_0x3c7853:0x851,_0x5e122f:0x74c,_0x514bdc:0x6ea,_0x213f3e:0x898,_0x4d2f1f:0x1ed,_0x35ab0f:0x278,_0x266a6d:0x170},_0x21bf89={_0x7cc268:0x38b,_0x35112c:0x1de},_0x4de099={_0x33f86c:0x4ad,_0x3aff7e:0x49d,_0x1fe4a4:0x542,_0x1db9c5:0x360,_0x2fc373:0x3e9},_0x5002d9={_0x44cd0f:0x20},_0x4f6f59={_0x283151:0x39b,_0x38c93:0x57a,_0x21a487:0x3d9,_0x5a574f:0x122},_0x214ef6={_0x4c6733:0x53,_0x35e1aa:0x145},_0x3bd19e={_0x35f74f:0x7,_0x4efccf:0xd5,_0x24f497:0x5fb,_0x3622c1:0x6c1,_0x4e2018:0x76b,_0xb50f07:0x645},_0x25388f={_0x2e0ea4:0x1d9,_0x102538:0xeb},_0x5eefa8={_0x49d240:0x360,_0x3f58ed:0x314,_0x3b0f98:0x3bd,_0x3cc0b0:0x2d4,_0x42adb9:0x5ef,_0xd3b535:0x3ca,_0x345f11:0x4f5,_0x19bae0:0x4a5},_0x2121e7={_0x5ab121:0x2c9,_0x4471b5:0x24a,_0x3826ab:0x7af,_0x1347c9:0x573,_0x4d651a:0x537,_0x5f047b:0x3de,_0x53f61d:0xec,_0x19b3a6:0xf9},_0x51ddf0={_0x529414:0x5b,_0x4014a1:0x136,_0x1eade5:0x8e,_0x520632:0x186,_0x28da81:0x1,_0x215913:0x13,_0x3ac192:0x53c,_0x3a0877:0x535,_0x1668dc:0x557,_0x4be162:0x6d7,_0x464504:0x5c7},_0x2fa8b9={_0x4120d5:0x18c},_0x1992fe={_0xa51f87:0x4,_0x8bb324:0xcf},_0x2633d5=_0x5cb4dc[_0x36a7a4(0x640,0x5c0,_0x5e7702._0x2bc54f,_0x5e7702._0x2b846d)][_0x36a7a4(_0x5e7702._0x4d3b7c,0x5b5,0x5e3,_0x5e7702._0x41a521)][_0x36a7a4(0x3e4,_0x5e7702._0x59643d,_0x5e7702._0x4f4e81,0x529)],_0x1edb66=_0x5cb4dc['handle'][_0x3a8938(_0x5e7702._0xb428bc,_0x5e7702._0x3b1165,_0x5e7702._0x242d76,_0x5e7702._0x2f86ca)]['stdin'];function _0x3a8938(_0x3d4a90,_0x2781d8,_0x11aa08,_0x176e9a){return _0x257320(_0x3d4a90-_0x1992fe._0xa51f87,_0x2781d8-_0x1992fe._0x8bb324,_0x2781d8-0xe2,_0x11aa08);}if(!_0x2633d5||!_0x1edb66)throw new Error(_0x3a8938(0x5c2,0x44c,_0x5e7702._0x27122d,_0x5e7702._0x91ce68));const _0x5e8f52=createMessageConnection(new StreamMessageReader(_0x2633d5),new StreamMessageWriter(_0x1edb66)),_0x442c22=new Map(),_0x2fadda=new Map();let _0x5b7a7b=![];_0x5e8f52[_0x36a7a4(_0x5e7702._0x2ba204,0x388,_0x5e7702._0x1eecc0,0x4bc)]('textDocument/publishDiagnostics',_0x293835=>{const _0xedcdf={_0x5ef02e:0x1e0};function _0x4204e5(_0x566359,_0x167d81,_0x1b6d8a,_0x3d3bdf){return _0x36a7a4(_0x3d3bdf,_0x167d81-_0xedcdf._0x5ef02e,_0x1b6d8a- -0x63,_0x3d3bdf-0x198);}function _0x984fcd(_0x595ea4,_0x20c81a,_0x42d9cc,_0x5b6653){return _0x36a7a4(_0x20c81a,_0x20c81a-_0x2fa8b9._0x4120d5,_0x5b6653- -0x583,_0x5b6653-0x159);}_0x442c22[_0x984fcd(-_0x51ddf0._0x529414,0x1,-0x181,-_0x51ddf0._0x4014a1)](_0x293835[_0x984fcd(-_0x51ddf0._0x1eade5,0x67,-0xa3,0xa7)],_0x293835[_0x984fcd(0x5a,_0x51ddf0._0x520632,_0x51ddf0._0x28da81,_0x51ddf0._0x215913)]);const _0x250a0f=_0x2fadda[_0x4204e5(0x5aa,_0x51ddf0._0x3ac192,0x546,_0x51ddf0._0x3a0877)](_0x293835[_0x4204e5(_0x51ddf0._0x1668dc,_0x51ddf0._0x4be162,_0x51ddf0._0x464504,0x686)]);if(!_0x250a0f)return;_0x2fadda[_0x4204e5(0x600,0x6c4,0x5b4,0x5d1)](_0x293835['uri']);for(const _0x5c343f of _0x250a0f)_0x5c343f();}),_0x5e8f52[_0x36a7a4(_0x5e7702._0x1d4660,_0x5e7702._0x28fbea,_0x5e7702._0x456d2b,0x7e0)]();const _0x487f8b=await _0x5e8f52[_0x3a8938(_0x5e7702._0x3534f5,_0x5e7702._0x1d89ed,0x702,0x6c2)](_0x3a8938(_0x5e7702._0xdedc4,_0x5e7702._0x448c7e,0x4dc,_0x5e7702._0x49cd32),{'processId':process[_0x3a8938(_0x5e7702._0x4428fb,_0x5e7702._0x509e66,_0x5e7702._0x470159,_0x5e7702._0x3c031e)],'rootUri':uriForPath(_0x5cb4dc[_0x3a8938(0x389,_0x5e7702._0x3659c0,0x3a6,_0x5e7702._0x1435c8)]),'workspaceFolders':[{'uri':uriForPath(_0x5cb4dc[_0x3a8938(_0x5e7702._0x257bab,_0x5e7702._0x288f26,0x2bc,0x3ba)]),'name':_0x5cb4dc['server']['id']}],'initializationOptions':_0x5cb4dc[_0x3a8938(0x6df,_0x5e7702._0x589c4c,0x69e,_0x5e7702._0x3b6fe5)][_0x3a8938(_0x5e7702._0x33e9fd,_0x5e7702._0x4eb9cf,0x3c8,_0x5e7702._0x4eb63d)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x36a7a4(0x491,0x536,_0x5e7702._0x368ee4,0x505),_0x36a7a4(_0x5e7702._0x208275,0x5b2,0x457,_0x5e7702._0x1ecf04)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x5e8f52['sendNotification'](_0x3a8938(0x53d,_0x5e7702._0x47e537,0x703,_0x5e7702._0x111997),{});const _0x58316b={'serverId':_0x5cb4dc[_0x3a8938(0x610,0x4b6,_0x5e7702._0x5c09f3,_0x5e7702._0x10e34e)]['id'],'root':_0x5cb4dc[_0x3a8938(_0x5e7702._0x56e765,_0x5e7702._0x288f26,0x552,_0x5e7702._0x5df298)],'connection':_0x5e8f52,'diagnostics':_0x442c22,'capabilities':_0x487f8b[_0x3a8938(0x527,0x567,0x5e3,0x46c)]??{},'notify':{async 'open'({path:_0x368972}){const _0x2454a4={_0x2a5711:0xd9,_0x16c28f:0x1c6};function _0x240da5(_0x4ef30a,_0x2e287c,_0x2ec253,_0x5bd882){return _0x36a7a4(_0x4ef30a,_0x2e287c-0xe7,_0x5bd882- -0x550,_0x5bd882-0x107);}function _0x4f8b47(_0x5f074c,_0x30d762,_0x19f270,_0x270841){return _0x36a7a4(_0x30d762,_0x30d762-_0x2454a4._0x2a5711,_0x19f270-0xbb,_0x270841-_0x2454a4._0x16c28f);}const _0x319764=await readFile(_0x368972,_0x240da5(0x8d,_0x2121e7._0x5ab121,_0x2121e7._0x4471b5,0x194));_0x5e8f52[_0x4f8b47(0x8ac,0x8d0,_0x2121e7._0x3826ab,0x6f1)](_0x4f8b47(_0x2121e7._0x1347c9,0x50e,_0x2121e7._0x4d651a,_0x2121e7._0x5f047b),{'textDocument':{'uri':uriForPath(_0x368972),'languageId':getLanguageId(_0x368972)??_0x240da5(-_0x2121e7._0x53f61d,-0x140,-0x18b,-_0x2121e7._0x19b3a6),'version':0x1,'text':_0x319764}});},async 'change'({path:_0x2b9fed,version:_0x2e0daa}){const _0x30906d={_0x4df8c6:0x57,_0x5bc1c1:0x19d};function _0x487116(_0x11c60f,_0x283a5d,_0x19fc0a,_0x40b160){return _0x36a7a4(_0x19fc0a,_0x283a5d-0xda,_0x283a5d- -0x3d0,_0x40b160-0x159);}function _0x44ba51(_0x49069c,_0x117eef,_0x1a7191,_0x1eecab){return _0x36a7a4(_0x49069c,_0x117eef-_0x30906d._0x4df8c6,_0x1a7191- -_0x30906d._0x5bc1c1,_0x1eecab-0xe1);}const _0x58e573=await readFile(_0x2b9fed,_0x487116(_0x5eefa8._0x49d240,_0x5eefa8._0x3f58ed,_0x5eefa8._0x3b0f98,_0x5eefa8._0x3cc0b0));_0x5e8f52['sendNotification'](_0x44ba51(_0x5eefa8._0x42adb9,_0x5eefa8._0xd3b535,_0x5eefa8._0x345f11,_0x5eefa8._0x19bae0),{'textDocument':{'uri':uriForPath(_0x2b9fed),'version':_0x2e0daa},'contentChanges':[{'text':_0x58e573}]});},async 'close'({path:_0x19dbb1}){const _0x9d18f7={_0x5d769f:0x1ef};function _0x1c899c(_0x42a688,_0x50fea0,_0x48b158,_0x19d0ab){return _0x3a8938(_0x42a688-0x4d,_0x42a688-0x93,_0x19d0ab,_0x19d0ab-_0x9d18f7._0x5d769f);}function _0x302f27(_0x1934e0,_0x557ea5,_0x547b6c,_0x2b3d31){return _0x36a7a4(_0x1934e0,_0x557ea5-_0x25388f._0x2e0ea4,_0x547b6c- -0x67d,_0x2b3d31-_0x25388f._0x102538);}_0x5e8f52[_0x302f27(_0x3bd19e._0x35f74f,_0x3bd19e._0x4efccf,0x77,-0x3b)](_0x1c899c(_0x3bd19e._0x24f497,_0x3bd19e._0x3622c1,_0x3bd19e._0x4e2018,_0x3bd19e._0xb50f07),{'textDocument':{'uri':uriForPath(_0x19dbb1)}});}},'request':{async 'definition'(_0x296c87){function _0x233145(_0x5bc29c,_0x2cda04,_0x31aa03,_0x38ac0a){return _0x36a7a4(_0x5bc29c,_0x2cda04-_0x214ef6._0x4c6733,_0x2cda04- -0x232,_0x38ac0a-_0x214ef6._0x35e1aa);}function _0x18a838(_0x2105e1,_0x3a2ee5,_0x27ef8a,_0xe5ba67){return _0x36a7a4(_0x2105e1,_0x3a2ee5-0x19f,_0x3a2ee5- -0x4ed,_0xe5ba67-0x1b0);}return normalizeLocations(await _0x5e8f52[_0x233145(_0x4f6f59._0x283151,0x42c,_0x4f6f59._0x38c93,_0x4f6f59._0x21a487)](_0x18a838(-0x152,-0xa7,-_0x4f6f59._0x5a574f,-0x20f),textDocumentPosition(_0x296c87)));},async 'references'(_0x420f34){function _0x43650f(_0x9158e1,_0x48476b,_0xa3c230,_0xe26f16){return _0x36a7a4(_0xe26f16,_0x48476b-0x143,_0x9158e1- -0x600,_0xe26f16-0x1f);}return normalizeLocations(await _0x5e8f52['sendRequest'](_0x43650f(-0xaa,-0x100,_0x5002d9._0x44cd0f,-0x6f),{...textDocumentPosition(_0x420f34),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x1e9329){const _0x1fe708={_0x198222:0x179};function _0x5ce17e(_0x17c01b,_0x2440cc,_0x4ad264,_0x2ca09e){return _0x36a7a4(_0x4ad264,_0x2440cc-0x137,_0x2ca09e- -_0x1fe708._0x198222,_0x2ca09e-0x25);}function _0x264bd6(_0x4f0a2f,_0x487383,_0x347191,_0x33d42a){return _0x3a8938(_0x4f0a2f-0xa4,_0x33d42a- -0x4da,_0x347191,_0x33d42a-0x1d7);}return await _0x5e8f52[_0x5ce17e(_0x4de099._0x33f86c,_0x4de099._0x3aff7e,0x405,0x4e5)](_0x5ce17e(0x44f,_0x4de099._0x1fe4a4,_0x4de099._0x1db9c5,_0x4de099._0x2fc373),textDocumentPosition(_0x1e9329))??null;},async 'documentSymbol'(_0x3909fe){const _0x169100={_0x559ac5:0x54};function _0x2dbcba(_0xddbca5,_0x4547f3,_0x549b4d,_0x4fe039){return _0x3a8938(_0xddbca5-0x1ee,_0x4547f3-0x1ac,_0xddbca5,_0x4fe039-_0x169100._0x559ac5);}function _0x2394cf(_0x5e3fe3,_0x38073c,_0x3158e3,_0x4848ea){return _0x36a7a4(_0x5e3fe3,_0x38073c-0x81,_0x3158e3- -_0x21bf89._0x7cc268,_0x4848ea-_0x21bf89._0x35112c);}return await _0x5e8f52[_0x2dbcba(_0x7d6cab._0x3c7853,_0x7d6cab._0x5e122f,_0x7d6cab._0x514bdc,_0x7d6cab._0x213f3e)](_0x2394cf(0x189,_0x7d6cab._0x4d2f1f,_0x7d6cab._0x35ab0f,_0x7d6cab._0x266a6d),{'textDocument':{'uri':uriForPath(_0x3909fe)}})??[];},async 'workspaceSymbol'(_0x2490e7){const _0x31b8fe={_0x1ebddf:0x94,_0x3e6e3a:0x63b,_0x2285f2:0x71};function _0x1824b0(_0x4359b8,_0x4bb018,_0x13b2e2,_0x100b5b){return _0x36a7a4(_0x4359b8,_0x4bb018-_0x14d36e._0x5ec0cc,_0x13b2e2- -_0x14d36e._0x1d867a,_0x100b5b-0x1ce);}function _0x49c463(_0x217df7,_0x5182fb,_0x2976bf,_0x2caab4){return _0x36a7a4(_0x5182fb,_0x5182fb-_0x31b8fe._0x1ebddf,_0x2976bf- -_0x31b8fe._0x3e6e3a,_0x2caab4-_0x31b8fe._0x2285f2);}return await _0x5e8f52[_0x49c463(0x19,_0x4a48f3._0x3b97e7,_0x4a48f3._0x10c6bc,_0x4a48f3._0x27045f)](_0x49c463(_0x4a48f3._0x50d29c,0x19f,0x37,_0x4a48f3._0x2e90a0),{'query':_0x2490e7})??[];},async 'implementation'(_0x433b62){const _0x35a660={_0x2970b0:0x74,_0x489477:0x158};function _0x4cbfd4(_0x36797b,_0x39cf7a,_0x52d6c6,_0x4c0aa0){return _0x3a8938(_0x36797b-0x66,_0x52d6c6-_0x35a660._0x2970b0,_0x39cf7a,_0x4c0aa0-_0x35a660._0x489477);}return normalizeLocations(await _0x5e8f52['sendRequest'](_0x4cbfd4(0x58d,0x7b9,_0x2073ac._0x5b162b,0x616),textDocumentPosition(_0x433b62)));},async 'prepareCallHierarchy'(_0xbbc271){function _0x1d0858(_0x337d88,_0x5c367e,_0x4c8548,_0x55d1d0){return _0x3a8938(_0x337d88-_0x3c2dbd._0x257001,_0x337d88- -_0x3c2dbd._0x32f852,_0x4c8548,_0x55d1d0-0xd9);}return await _0x5e8f52['sendRequest'](_0x1d0858(-_0x6b76b0._0x1125df,-0x36,-_0x6b76b0._0x4477a2,0xa1),textDocumentPosition(_0xbbc271))??[];},async 'incomingCalls'(_0xccd4e9){const _0x103b20={_0x3bc944:0x4a,_0x3cb2e7:0x1ef};function _0x410dfe(_0x352387,_0x220490,_0xb55900,_0x7c422c){return _0x36a7a4(_0x220490,_0x220490-_0x3fab73._0x430dc7,_0xb55900- -_0x3fab73._0x336b6d,_0x7c422c-_0x3fab73._0x2f29fe);}function _0x291b20(_0x479f18,_0x3b64a3,_0x532d03,_0xb71a5f){return _0x36a7a4(_0x479f18,_0x3b64a3-0x179,_0x532d03- -_0x103b20._0x3bc944,_0xb71a5f-_0x103b20._0x3cb2e7);}return await _0x5e8f52[_0x410dfe(0x193,0x1e6,_0x104aa7._0x427832,0xad)](_0x291b20(0x597,0x5d6,_0x104aa7._0x12ab4c,_0x104aa7._0x4cdde7),{'item':_0xccd4e9})??[];},async 'outgoingCalls'(_0xef9334){const _0x468fd3={_0x2df479:0x1af};function _0x8e6cbe(_0x14c5e6,_0x456eb1,_0xa76e3f,_0x4dd3e5){return _0x36a7a4(_0x14c5e6,_0x456eb1-0x17a,_0x4dd3e5- -0x5e8,_0x4dd3e5-_0x468fd3._0x2df479);}function _0x5e5c8f(_0x13809e,_0x4086e1,_0x28aa00,_0x41311c){return _0x3a8938(_0x13809e-0x9e,_0x4086e1-_0x321c4e._0x27e9eb,_0x13809e,_0x41311c-0x172);}return await _0x5e8f52[_0x5e5c8f(0x674,_0x252aa3._0x3f43b9,_0x252aa3._0x2c8374,_0x252aa3._0x4480a2)](_0x5e5c8f(0x5ca,0x582,0x431,_0x252aa3._0x499d71),{'item':_0xef9334})??[];}},'waitForDiagnostics'({path:_0x3a6df4,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x2655a5={_0x3dbae6:0x21},_0x36c510={_0x577591:0x2ac},_0x30edde=uriForPath(_0x3a6df4);if(_0x442c22['has'](_0x30edde))return Promise[_0x4a7317(0x1c0,0x134,_0x104eda._0x2a1159,0x282)]();function _0x4a7317(_0x46d866,_0x1e31a5,_0x1ecf48,_0x2e4a04){return _0x36a7a4(_0x2e4a04,_0x1e31a5-0x111,_0x1ecf48- -_0x36c510._0x577591,_0x2e4a04-0x1dd);}return new Promise(_0x4c7c96=>{const _0x4e5691={_0x1840a6:0x418,_0x59b1ac:0x31b,_0x31377e:0x200,_0x543519:0x320,_0x4cb2f1:0x408};function _0x193999(_0x171979,_0x240660,_0x43ce08,_0x43d113){return _0x4a7317(_0x171979-0x77,_0x240660-0x18f,_0x43d113-_0x2655a5._0x3dbae6,_0x240660);}const _0x5e6fcd=setTimeout(()=>{const _0x1e2bb3={_0x193e63:0xd};function _0x483fa5(_0x1e2375,_0x3b2ea3,_0x540a8a,_0x5442ad){return _0x1df5(_0x1e2375-_0x1e2bb3._0x193e63,_0x540a8a);}function _0x204dc3(_0x4db626,_0x13d5a3,_0x1bcaa9,_0x393803){return _0x1df5(_0x13d5a3-0x142,_0x1bcaa9);}const _0x2ffc94=_0x2fadda[_0x483fa5(0x2c5,_0x4e5691._0x1840a6,0x283,_0x4e5691._0x59b1ac)](_0x30edde);_0x2ffc94?.[_0x483fa5(0x333,0x3dc,_0x4e5691._0x31377e,_0x4e5691._0x543519)](_0x657806);if(_0x2ffc94?.[_0x204dc3(0x404,0x4f0,0x394,0x398)]===0x0)_0x2fadda[_0x204dc3(_0x4e5691._0x4cb2f1,0x468,0x59c,0x3b9)](_0x30edde);_0x4c7c96();},timeoutMs),_0x657806=()=>{clearTimeout(_0x5e6fcd),_0x4c7c96();},_0x132d51=_0x2fadda[_0x568a41(_0x4ab700._0x5e0cf2,0x557,0x547,_0x4ab700._0x137bb1)](_0x30edde)??new Set();function _0x568a41(_0x52f374,_0x22d879,_0x1071ee,_0x263244){return _0x4a7317(_0x52f374-0x18,_0x22d879-0x1bb,_0x22d879-0x25a,_0x52f374);}_0x132d51[_0x193999(0x45f,0x537,_0x4ab700._0x3c772a,_0x4ab700._0x3aa397)](_0x657806),_0x2fadda['set'](_0x30edde,_0x132d51);});},async 'shutdown'(){const _0x6b388e={_0x323fb3:0xb6};if(_0x5b7a7b)return;function _0x18dac8(_0x58424b,_0x3955f8,_0x3134ec,_0x5e3f67){return _0x36a7a4(_0x5e3f67,_0x3955f8-_0x40a87c._0x3ae5a1,_0x58424b- -_0x40a87c._0x33366c,_0x5e3f67-_0x40a87c._0x584358);}_0x5b7a7b=!![];function _0x1be627(_0x588880,_0x195614,_0x8be5bb,_0xc3b5ff){return _0x36a7a4(_0x588880,_0x195614-0xd1,_0x8be5bb-_0x6b388e._0x323fb3,_0xc3b5ff-0xe8);}try{await _0x5e8f52[_0x18dac8(0x2ab,0x34c,_0x5d1fe0._0x4fc703,_0x5d1fe0._0x788275)](_0x1be627(_0x5d1fe0._0x401396,0x6d6,_0x5d1fe0._0x5d0bf9,_0x5d1fe0._0x27dafa),null),_0x5e8f52[_0x18dac8(0x341,0x226,_0x5d1fe0._0x1c4c47,0x499)](_0x18dac8(_0x5d1fe0._0x83f2a,0x376,_0x5d1fe0._0x11fb31,_0x5d1fe0._0x28c35f));}catch{}finally{_0x5e8f52[_0x1be627(_0x5d1fe0._0x47e777,0x65a,0x7a4,0x876)](),_0x5cb4dc[_0x18dac8(0x377,0x44b,_0x5d1fe0._0x27b92b,0x339)][_0x1be627(0x634,_0x5d1fe0._0x531099,_0x5d1fe0._0x171dfa,_0x5d1fe0._0x10867d)]['kill']();}}};function _0x36a7a4(_0x8fece9,_0x492427,_0x39bc0e,_0x4c8e51){return _0x3342ed(_0x8fece9-0x127,_0x8fece9,_0x39bc0e-0x22c,_0x4c8e51-_0x1f554d._0x17f385);}return _0x58316b;}import{spawn as _0x115e81}from'child_process';import{access as _0x54360a}from'fs/promises';import _0x140bbb from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x50ee3c from'os';import _0x141f16 from'path';import _0xd6a36b from'which';var installPromises=new Map();function sanitizePackageName(_0x49ab8a){const _0x4e9738={_0x2da8c1:0x2ad,_0x455076:0x28f,_0x1bb962:0x3aa,_0x1d66e4:0x458,_0x74ceda:0x354},_0x3d9ad5={_0x9b86f:0x1a,_0x155969:0x21a};function _0x2e0f1a(_0x277a59,_0x193341,_0x407567,_0x2dfecc){return _0x3342ed(_0x277a59-0xe7,_0x407567,_0x2dfecc- -0x15a,_0x2dfecc-0x6c);}function _0x3a31c5(_0x31c517,_0xedb5ab,_0x10f063,_0x44e17e){return _0x3342ed(_0x31c517-_0x3d9ad5._0x9b86f,_0x44e17e,_0x10f063- -_0x3d9ad5._0x155969,_0x44e17e-0x49);}return _0x49ab8a[_0x2e0f1a(_0x4e9738._0x2da8c1,0x299,_0x4e9738._0x455076,_0x4e9738._0x1bb962)](/^@/,'')[_0x2e0f1a(_0x4e9738._0x1d66e4,_0x4e9738._0x74ceda,0x4eb,_0x4e9738._0x1bb962)](/[/]/g,'__');}function binaryNameForPlatform(_0x3abecd){const _0x35363c={_0x403985:0x2c6,_0x40dcd2:0x18b,_0x196b2a:0x1ec,_0x1ecb64:0x2be,_0x5258fa:0xaf,_0x3f5e5a:0x1ed,_0x433809:0x159,_0x42d030:0xb4},_0x5cec76={_0x4c02d0:0x8};function _0x3e1fc0(_0x15d060,_0x9611e,_0x4bb66d,_0x57d4e5){return _0x3342ed(_0x15d060-0x65,_0x15d060,_0x57d4e5-_0x5cec76._0x4c02d0,_0x57d4e5-0xf3);}function _0x463d6c(_0x2c809b,_0x5dab10,_0x48d624,_0x20ed67){return _0x3342ed(_0x2c809b-0x1b9,_0x20ed67,_0x48d624- -0x17b,_0x20ed67-0x19a);}return process[_0x463d6c(_0x35363c._0x403985,0x2e8,_0x35363c._0x40dcd2,0x1f9)]===_0x3e1fc0(_0x35363c._0x196b2a,0x249,0x38e,_0x35363c._0x1ecb64)?_0x3abecd+_0x463d6c(_0x35363c._0x5258fa,_0x35363c._0x3f5e5a,_0x35363c._0x433809,_0x35363c._0x42d030):_0x3abecd;}async function exists(_0x3f5e76){try{return await access(_0x3f5e76),!![];}catch{return![];}}function runNpmInstall(_0x5c6e17,_0x566511,_0x3fbed8){const _0x337dd8={_0xc21aa:0x12e,_0x264935:0x47,_0x23b572:0x7c,_0x5d44cf:0xb0,_0x3d2ad9:0x48,_0x2a9551:0x30,_0x420844:0x110,_0x26fc59:0x2be,_0x5b6e6a:0x1ae,_0x1cc5be:0x65,_0x3516ef:0x1d6,_0x447482:0x9a,_0x3a1060:0x1c4,_0x382f73:0x17e,_0x3d60f6:0x6e},_0xd53bd={_0x3b6e6f:0x311};return new Promise(_0x45e926=>{const _0x9d55ef={_0x10e26f:0x275},_0x3c013c=spawn(_0xad9158(-0xed,-_0x337dd8._0xc21aa,0x42,-_0x337dd8._0x264935),[_0xad9158(-0x11a,-0x141,-_0x337dd8._0x23b572,-_0x337dd8._0x5d44cf),_0x45ddaf(-_0x337dd8._0x3d2ad9,-_0x337dd8._0x2a9551,-_0x337dd8._0x420844,0x5e),_0x5c6e17,_0x566511],{'env':_0x3fbed8,'stdio':_0x45ddaf(0x282,0x2cb,_0x337dd8._0x26fc59,_0x337dd8._0x5b6e6a)});function _0xad9158(_0x2487d0,_0x3890ca,_0x5d5f54,_0x5f5109){return _0x1df5(_0x3890ca- -_0xd53bd._0x3b6e6f,_0x2487d0);}_0x3c013c['on'](_0x45ddaf(-_0x337dd8._0x1cc5be,0xc7,_0x337dd8._0x3516ef,_0x337dd8._0x447482),()=>_0x45e926(![]));function _0x45ddaf(_0x41be0e,_0x2bbf78,_0x3d3623,_0x213296){return _0x1df5(_0x213296- -_0x9d55ef._0x10e26f,_0x41be0e);}_0x3c013c['on'](_0x45ddaf(0xf5,-_0x337dd8._0x3a1060,-_0x337dd8._0x382f73,-_0x337dd8._0x3d60f6),_0x4beac3=>_0x45e926(_0x4beac3===0x0));});}function shouldDisableLspDownload(_0x493e57=process[_0x257320(0x495,0x401,0x3a7,0x306)]){const _0x72987f={_0x12227b:0x1a6,_0x28ae0f:0x1aa,_0x38540f:0x4d},_0x229d46={_0x407a2b:0x63,_0x186f81:0x464};function _0x471d30(_0x1096c8,_0x42b9c5,_0x12be8d,_0x4bfeaf){return _0x3342ed(_0x1096c8-_0x229d46._0x407a2b,_0x1096c8,_0x4bfeaf- -_0x229d46._0x186f81,_0x4bfeaf-0x194);}const _0x55ccb3=_0x493e57[_0x471d30(0xa0,-_0x72987f._0x12227b,-_0x72987f._0x28ae0f,-_0x72987f._0x38540f)]?.['toLowerCase']();return _0x55ccb3==='true'||_0x55ccb3==='1'||_0x55ccb3==='yes'||_0x55ccb3==='on';}function getLspPackageDir(_0x4c5112){const _0x27b2f7={_0x249df4:0x72d,_0x2514ba:0x10c,_0x4e6975:0x1ea,_0x26ad9e:0x5f0,_0x42462f:0x5e3,_0x1c456b:0x50b},_0x3b988b={_0x3e62e6:0x9f};function _0x1816eb(_0x4c12ec,_0x54556e,_0x498727,_0x23b58b){return _0x257320(_0x4c12ec-0x15c,_0x54556e-_0x3b988b._0x3e62e6,_0x498727-0x1dc,_0x23b58b);}function _0x4ba32c(_0xf12b84,_0x6942ae,_0x72897d,_0x35a4f0){return _0x3342ed(_0xf12b84-0x1e8,_0x72897d,_0x6942ae- -0x1e8,_0x35a4f0-0x1af);}return _0x141f16[_0x1816eb(0x6bf,0x712,0x69e,0x743)](_0x50ee3c[_0x1816eb(0x604,0x6bc,_0x27b2f7._0x249df4,0x84d)](),_0x4ba32c(_0x27b2f7._0x2514ba,_0x27b2f7._0x4e6975,0x34f,0x193),'lsp',_0x1816eb(0x6ce,_0x27b2f7._0x26ad9e,_0x27b2f7._0x42462f,_0x27b2f7._0x1c456b),sanitizePackageName(_0x4c5112));}function getLspBinDir(_0x3f348b){const _0x4e98da={_0x5efcb5:0xd0},_0x47d032={_0x4e41b7:0xaf,_0x27f200:0x1a8};function _0x40d802(_0x386b25,_0x57b0be,_0x1c21a6,_0x226f8f){return _0x3342ed(_0x386b25-_0x47d032._0x4e41b7,_0x386b25,_0x226f8f- -0x365,_0x226f8f-_0x47d032._0x27f200);}return _0x141f16['join'](getLspPackageDir(_0x3f348b),'node_modules',_0x40d802(0x122,0x25d,_0x4e98da._0x5efcb5,0x129));}async function findPackageBinary(_0x19a997,_0x21ece5){const _0x25357f={_0x206e92:0x126,_0xa779cf:0x36d,_0x29d40f:0x4ed,_0x168c09:0x591,_0x1b7944:0x432};let _0x560fc5=_0x141f16[_0x10dd8e(0x1f6,_0x25357f._0x206e92,_0x25357f._0xa779cf,0x22d)](_0x21ece5);function _0x187988(_0x3bc577,_0x119b86,_0x1444d0,_0x44e241){return _0x3342ed(_0x3bc577-0x1bc,_0x3bc577,_0x44e241- -0x25b,_0x44e241-0x1e6);}function _0x10dd8e(_0x3f1501,_0x5d4cc6,_0x44711b,_0x214e82){return _0x257320(_0x3f1501-0x1ea,_0x5d4cc6-0x1a6,_0x214e82- -0x130,_0x44711b);}const _0x3ade04=binaryNameForPlatform(_0x19a997);while(!![]){const _0x42ecb9=_0x141f16['join'](_0x560fc5,'node_modules','.bin',_0x3ade04);if(await exists(_0x42ecb9))return _0x42ecb9;const _0xad1d7=_0x141f16[_0x10dd8e(_0x25357f._0x29d40f,0x2d2,_0x25357f._0x168c09,_0x25357f._0x1b7944)](_0x560fc5);if(_0xad1d7===_0x560fc5)return void 0x0;_0x560fc5=_0xad1d7;}}async function findPathBinary(_0x4f7315,_0x273c83){const _0x3d3807={_0x2de373:0x55e,_0x16500f:0x3ec,_0x3e8038:0x36e,_0x5194e2:0x2d0,_0x5d2963:0x43e,_0x7a1dc3:0x3f3,_0x2e79fe:0x494,_0x18c8ca:0x507,_0x4e2eb2:0x5c2,_0x475872:0x6fa,_0x5965c7:0x868,_0x961f58:0x5ff},_0x5326fe={_0x3e0027:0x255,_0x32e5a5:0x1bb};function _0xfaaf04(_0x4347e0,_0x14dcb6,_0x288287,_0x2a09e1){return _0x257320(_0x4347e0-0x1d1,_0x14dcb6-0x18b,_0x288287-0x45,_0x4347e0);}const _0x1ae0fc=getLspBinDir(_0x273c83),_0x2a787e=[_0x1ae0fc,process[_0xfaaf04(_0x3d3807._0x2de373,0x3d5,_0x3d3807._0x16500f,_0x3d3807._0x3e8038)][_0xfaaf04(_0x3d3807._0x5194e2,0x5b3,_0x3d3807._0x5d2963,_0x3d3807._0x7a1dc3)]]['filter'](Boolean)[_0xfaaf04(0x558,_0x3d3807._0x2e79fe,_0x3d3807._0x18c8ca,_0x3d3807._0x4e2eb2)](_0x141f16[_0xa6602a(0x844,_0x3d3807._0x475872,_0x3d3807._0x5965c7,_0x3d3807._0x961f58)]);function _0xa6602a(_0x1ad725,_0xb52e12,_0x365bf3,_0x51f783){return _0x3342ed(_0x1ad725-0x15e,_0x1ad725,_0xb52e12-_0x5326fe._0x3e0027,_0x51f783-_0x5326fe._0x32e5a5);}try{return await _0xd6a36b(_0x4f7315,{'path':_0x2a787e});}catch{return void 0x0;}}async function resolvePackageBinary(_0x52da10){const _0x5a8d3d={_0x3954c8:0x66a,_0x3bc393:0x3a1,_0x3b9dd0:0x266,_0xb1fdd0:0x854,_0x20603d:0xf5,_0x2b5563:0x2bc,_0x2e3326:0x172,_0x42dd2a:0x233,_0x3f0703:0x25b,_0x394a3e:0x233,_0x4d7895:0x263,_0x17e321:0x39f,_0x5f3811:0x2e3,_0x101f93:0x745,_0x2f2af9:0x69e,_0x1e3330:0x779},_0x520acb={_0x2b7935:0x10f},_0x33c2fa={_0x485174:0x31,_0x35da7d:0x71,_0x13d7b1:0x9c,_0x37a046:0x7f,_0x43051e:0x90,_0x49eb25:0x116,_0x1c19b7:0x30},_0x294619={_0x2c2e71:0x127},_0x25f3f7={_0x1d66f2:0x109,_0x5e0157:0x2b3},_0x310094=_0x52da10[_0x20d99d(0x681,_0x5a8d3d._0x3954c8,0x6aa,0x631)]??_0x52da10[_0x551cc9(_0x5a8d3d._0x3bc393,_0x5a8d3d._0x3b9dd0,0x2c5,0x2e3)],_0x491839=await findPackageBinary(_0x310094,_0x52da10[_0x20d99d(0x629,0x773,0x79d,_0x5a8d3d._0xb1fdd0)]);if(_0x491839)return _0x491839;const _0x74227e=await findPathBinary(_0x310094,_0x52da10['packageName']);if(_0x74227e)return _0x74227e;const _0x23e2b4=_0x52da10[_0x551cc9(_0x5a8d3d._0x20603d,_0x5a8d3d._0x2b5563,_0x5a8d3d._0x2e3326,_0x5a8d3d._0x42dd2a)]??process[_0x551cc9(0x289,_0x5a8d3d._0x3f0703,0x2ff,_0x5a8d3d._0x394a3e)];function _0x20d99d(_0x2168d6,_0x436e2f,_0x56af4a,_0x25d28b){return _0x3342ed(_0x2168d6-_0x25f3f7._0x1d66f2,_0x436e2f,_0x56af4a-_0x25f3f7._0x5e0157,_0x25d28b-0x9e);}if(shouldDisableLspDownload(_0x23e2b4))return void 0x0;const _0x509d2b=getLspPackageDir(_0x52da10['packageName']),_0x6277a2=_0x52da10[_0x551cc9(0x3f1,_0x5a8d3d._0x4d7895,_0x5a8d3d._0x17e321,_0x5a8d3d._0x5f3811)]+':'+_0x310094;let _0x9392f4=installPromises[_0x551cc9(0x221,0x2c2,0x1aa,0x295)](_0x6277a2);!_0x9392f4&&(_0x9392f4=((async()=>{const _0x5e8365={_0x516797:0x1e4,_0x1a4b92:0xf1};function _0x112c69(_0x6b49ca,_0x398350,_0x154887,_0x2b839a){return _0x551cc9(_0x6b49ca-0x95,_0x398350-_0x5e8365._0x516797,_0x2b839a,_0x154887-_0x5e8365._0x1a4b92);}await mkdir(_0x509d2b,{'recursive':!![]});const _0x397580=await runNpmInstall(_0x509d2b,_0x52da10[_0x1ad686(0x6e,_0x33c2fa._0x485174,-0x11,-_0x33c2fa._0x35da7d)],_0x23e2b4);function _0x1ad686(_0x1d9381,_0xb83098,_0x2fbe23,_0x83c39a){return _0x551cc9(_0x1d9381-0x123,_0xb83098-_0x294619._0x2c2e71,_0x2fbe23,_0xb83098- -0x2b2);}if(!_0x397580)return void 0x0;const _0x10c63b=_0x141f16[_0x1ad686(0xa1,_0x33c2fa._0x13d7b1,-_0x33c2fa._0x37a046,_0x33c2fa._0x43051e)](getLspBinDir(_0x52da10[_0x1ad686(-_0x33c2fa._0x49eb25,_0x33c2fa._0x485174,-_0x33c2fa._0x1c19b7,0x183)]),binaryNameForPlatform(_0x310094));return await exists(_0x10c63b)?_0x10c63b:void 0x0;})()),installPromises['set'](_0x6277a2,_0x9392f4));function _0x551cc9(_0x1002e7,_0x217bd0,_0x22ebeb,_0x385e6d){return _0x3342ed(_0x1002e7-_0x520acb._0x2b7935,_0x22ebeb,_0x385e6d- -0xe8,_0x385e6d-0xc7);}try{return await _0x9392f4;}catch{return void 0x0;}finally{installPromises[_0x20d99d(0x75c,_0x5a8d3d._0x101f93,_0x5a8d3d._0x2f2af9,_0x5a8d3d._0x1e3330)](_0x6277a2);}}var TYPESCRIPT_EXTENSIONS=[_0x257320(0x579,0x4d0,0x4ed,0x5a6),_0x3342ed(0x297,0x20b,0x23a,0x1db),_0x3342ed(0x445,0x2fb,0x358,0x22d),_0x3342ed(0x337,0x372,0x2f8,0x1ce),'.mjs',_0x3342ed(0x38b,0x133,0x252,0x183),_0x257320(0x354,0x2a9,0x39c,0x3ab),'.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x257320(0x206,0x42b,0x34c,0x3ba),'.jsonc'],TYPESCRIPT_ROOT_MARKERS=['package-lock.json',_0x3342ed(0x43b,0x456,0x4d2,0x4d7),_0x257320(0x5c4,0x4b1,0x4a0,0x34b),_0x257320(0x610,0x3c7,0x4b7,0x46f),_0x257320(0x3be,0x464,0x32d,0x343),_0x257320(0x3cc,0x28a,0x389,0x226),_0x257320(0x2e4,0x3aa,0x31a,0x3c6),_0x3342ed(0x203,0x337,0x24a,0x325)],BIOME_ROOT_MARKERS=[_0x3342ed(0x2e9,0x299,0x289,0x157),_0x3342ed(0x342,0x311,0x450,0x5c3),_0x257320(0x2d8,0x1be,0x2b3,0x23f),_0x257320(0x525,0x3fc,0x55e,0x54d),_0x3342ed(0x30b,0x554,0x414,0x35b),_0x3342ed(0x4c9,0x464,0x42b,0x54e),_0x3342ed(0x1ae,0x2fd,0x2a1,0x1fe),_0x3342ed(0x35a,0x280,0x24a,0x13c)];async function exists2(_0x263e82){try{return await _0x54360a(_0x263e82),!![];}catch{return![];}}async function findUp(_0x39c163,_0x13b3cc){const _0x121120={_0x26a53a:0x30,_0x23ac84:0x1bf,_0x2bd9fb:0x376,_0x37a405:0x188},_0x51d362={_0x48ff29:0x1f2};function _0x105522(_0x2e428c,_0x385a70,_0x12993d,_0x50e312){return _0x3342ed(_0x2e428c-0x1d8,_0x2e428c,_0x50e312- -0x219,_0x50e312-0x2d);}let _0xfafd65=_0x140bbb[_0x105522(-0x8b,-_0x121120._0x26a53a,_0x121120._0x23ac84,0xb8)](_0x39c163);const _0x5096bf=_0x140bbb[_0x105522(_0x121120._0x2bd9fb,_0x121120._0x37a405,0x185,0x28d)](_0xfafd65);if(_0x5096bf)_0xfafd65=_0x140bbb['dirname'](_0xfafd65);function _0xc1a6d(_0x59a65a,_0x5c9a9d,_0x14b830,_0x5196ae){return _0x257320(_0x59a65a-0x11a,_0x5c9a9d-0x40,_0x59a65a- -_0x51d362._0x48ff29,_0x14b830);}while(!![]){for(const _0x1fd28a of _0x13b3cc){if(await exists2(_0x140bbb['join'](_0xfafd65,_0x1fd28a)))return _0xfafd65;}const _0x37884d=_0x140bbb['dirname'](_0xfafd65);if(_0x37884d===_0xfafd65)return void 0x0;_0xfafd65=_0x37884d;}}async function hasDenoRoot(_0x12e06a){const _0x33f340={_0x59e726:0x472},_0x4572a6={_0x37c6a9:0x123,_0x1a4d90:0xf0,_0x642efc:0x91},_0x24feb6={_0x1b7942:0xab,_0x2b4de2:0x331};function _0x7e7293(_0x50a48b,_0x57e618,_0x550dd1,_0x105358){return _0x3342ed(_0x50a48b-_0x24feb6._0x1b7942,_0x57e618,_0x105358- -_0x24feb6._0x2b4de2,_0x105358-0x14e);}function _0x4b3a3e(_0x595f84,_0x433c15,_0x4ca9ef,_0x31083c){return _0x257320(_0x595f84-_0x4572a6._0x37c6a9,_0x433c15-_0x4572a6._0x1a4d90,_0x4ca9ef-_0x4572a6._0x642efc,_0x433c15);}return await exists2(_0x140bbb['join'](_0x12e06a,_0x4b3a3e(0x4f3,0x4f4,_0x33f340._0x59e726,0x326)))||await exists2(_0x140bbb[_0x7e7293(-0x2f,0x1fd,0x6e,0x105)](_0x12e06a,'deno.jsonc'));}async function resolveTsserverPath(_0xe914a6){const _0xd17e32={_0x1f36b2:0x1b3,_0x4474be:0x41,_0x2941af:0x7f,_0x855b6e:0x168,_0x22826e:0x2e6,_0x121a80:0x1e1,_0x2dd59f:0x113,_0x4a54bc:0x1c4,_0x675f4e:0x2d4,_0x2b80d1:0x1dc,_0x26dae0:0x156,_0x48ae07:0x727,_0x5c6871:0x635,_0x149e2c:0x81d,_0x478d10:0x1dd,_0x3817e2:0x66,_0x32a0b7:0xbb,_0x3500c6:0x768,_0x5d5825:0x6d7,_0x3c086e:0x265,_0x3c78ef:0x18e},_0x39334c={_0x113295:0x199,_0x52c1c3:0x39e},_0x39917e={_0x38c5ea:0x1ee};let _0x5db5ae=_0x140bbb[_0x4214bc(-_0xd17e32._0x1f36b2,-_0xd17e32._0x4474be,-0xdf,_0xd17e32._0x2941af)](_0xe914a6);function _0x59ac10(_0x381e0f,_0x23a5cb,_0x4333fa,_0x2dc197){return _0x257320(_0x381e0f-0xfd,_0x23a5cb-0x51,_0x4333fa-_0x39917e._0x38c5ea,_0x23a5cb);}while(!![]){const _0x355cd4=_0x140bbb[_0x4214bc(0x39,0x124,0x6,_0xd17e32._0x855b6e)](_0x5db5ae,'node_modules','typescript','lib',_0x4214bc(0xbd,0x1ad,_0xd17e32._0x22826e,_0xd17e32._0x121a80));if(await exists2(_0x355cd4))return _0x355cd4;const _0xb07c8b=_0x140bbb[_0x4214bc(_0xd17e32._0x2dd59f,_0xd17e32._0x4a54bc,0x83,_0xd17e32._0x675f4e)](_0x5db5ae);if(_0xb07c8b===_0x5db5ae)break;_0x5db5ae=_0xb07c8b;}const _0x4b49ac=getLspPackageDir(_0x4214bc(0x1b9,_0xd17e32._0x2b80d1,0x101,_0xd17e32._0x26dae0)),_0x5495cc=await resolvePackageBinary({'packageName':_0x59ac10(_0xd17e32._0x48ae07,0x8db,0x768,_0xd17e32._0x5c6871),'binaryName':_0x59ac10(0x76a,_0xd17e32._0x149e2c,0x77b,0x866),'startDir':_0xe914a6});if(!_0x5495cc)return void 0x0;const _0x591295=_0x140bbb['join'](_0x4b49ac,_0x4214bc(-_0xd17e32._0x478d10,-0x85,_0xd17e32._0x3817e2,_0xd17e32._0x32a0b7),_0x59ac10(0x76d,0x78a,_0xd17e32._0x3500c6,0x7a1),_0x59ac10(0x6cf,0x74c,0x683,_0xd17e32._0x5d5825),_0x4214bc(_0xd17e32._0x3c086e,0x1ad,_0xd17e32._0x3c78ef,0x11d));function _0x4214bc(_0x2a46ad,_0x384910,_0x5740ad,_0x391257){return _0x257320(_0x2a46ad-_0x39334c._0x113295,_0x384910-0x14d,_0x384910- -_0x39334c._0x52c1c3,_0x5740ad);}return await exists2(_0x591295)?_0x591295:void 0x0;}var TypeScriptServer={'id':'typescript','name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x527f8b){const _0x2a2530=await findUp(_0x527f8b,TYPESCRIPT_ROOT_MARKERS);if(!_0x2a2530)return void 0x0;return await hasDenoRoot(_0x2a2530)?void 0x0:_0x2a2530;},async 'spawn'(_0x4e7054){const _0x549c4e={_0x57c9f2:0x166,_0x57249e:0x16e,_0x34417a:0xdf,_0x52ba0b:0xa0,_0x5089c9:0x141,_0x12c2cc:0x1a8,_0x16f295:0x2b4,_0x314c37:0x299},_0x6ae680={_0x458d93:0x2d3},_0x29d5e1={_0x51496e:0xcb,_0x1f44d7:0x30e},_0x2b5cb4=await resolveTsserverPath(_0x4e7054);if(!_0x2b5cb4)return void 0x0;const _0x16e6fd=await resolvePackageBinary({'packageName':_0x20f946(0x127,_0x549c4e._0x57c9f2,_0x549c4e._0x57249e,0xb),'binaryName':'typescript-language-server','startDir':_0x4e7054});function _0x324d73(_0x3bc1f3,_0x489d66,_0x3abf85,_0x527d91){return _0x257320(_0x3bc1f3-0xf4,_0x489d66-_0x29d5e1._0x51496e,_0x527d91- -_0x29d5e1._0x1f44d7,_0x3abf85);}if(!_0x16e6fd)return void 0x0;function _0x20f946(_0x54ac6b,_0x4a3620,_0x1406ea,_0x1c8cd2){return _0x257320(_0x54ac6b-0x57,_0x4a3620-0xf8,_0x54ac6b- -_0x6ae680._0x458d93,_0x1c8cd2);}return{'process':_0x115e81(_0x16e6fd,[_0x324d73(-0x64,0x1da,_0x549c4e._0x34417a,_0x549c4e._0x52ba0b)],{'cwd':_0x4e7054,'stdio':_0x20f946(_0x549c4e._0x5089c9,_0x549c4e._0x12c2cc,_0x549c4e._0x16f295,_0x549c4e._0x314c37)}),'initialization':{'tsserver':{'path':_0x2b5cb4}}};}},BiomeServer={'id':_0x3342ed(0x58a,0x322,0x42d,0x3b1),'name':'Biome\x20Language\x20Server','extensions':BIOME_EXTENSIONS,async 'root'(_0x542cd1){return findUp(_0x542cd1,BIOME_ROOT_MARKERS);},async 'spawn'(_0x224f72){const _0x5267e4={_0x441c10:0x322,_0x4886cd:0x1f8,_0x34d839:0x281,_0x2cda99:0x369,_0x273aad:0x27,_0x5b925f:0xad,_0xb30e74:0x91,_0x2aecc5:0x113,_0x17d3a2:0x222,_0x245a22:0x125},_0x59f809={_0x227147:0x188,_0x324f9a:0x199},_0x5bdab4={_0x4872d8:0x1f1};function _0x57bd16(_0x37435e,_0x2ec061,_0x51304b,_0x39ec94){return _0x3342ed(_0x37435e-_0x5bdab4._0x4872d8,_0x37435e,_0x2ec061- -0x275,_0x39ec94-0x48);}function _0x5d1212(_0x536926,_0x1e88d0,_0x48acdb,_0x1f329f){return _0x3342ed(_0x536926-0x8d,_0x536926,_0x48acdb- -_0x59f809._0x227147,_0x1f329f-_0x59f809._0x324f9a);}const _0x559144=await findPackageBinary('biome',_0x224f72)??await resolvePackageBinary({'packageName':'@biomejs/biome','binaryName':_0x57bd16(_0x5267e4._0x441c10,0x1b8,_0x5267e4._0x4886cd,0x189),'startDir':_0x224f72});if(!_0x559144)return void 0x0;return{'process':_0x115e81(_0x559144,[_0x5d1212(0x336,_0x5267e4._0x34d839,_0x5267e4._0x2cda99,0x254),_0x57bd16(_0x5267e4._0x273aad,_0x5267e4._0x5b925f,_0x5267e4._0xb30e74,0x28)],{'cwd':_0x224f72,'stdio':_0x57bd16(-0x66,_0x5267e4._0x2aecc5,_0x5267e4._0x17d3a2,_0x5267e4._0x245a22)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x562712){const _0x531f17={_0x27d8df:0x7d4,_0x10099f:0x798,_0x1f37dd:0x8cd,_0xe3cb4:0x41e},_0x1e7cc1={_0x437f63:0x11c,_0x15199c:0x1bd,_0x222ea8:0xae},_0x1621a2={_0x16731f:0xf2,_0x9b8e5d:0x278},_0x361786=_0x140bbb[_0x45cfda(_0x531f17._0x27d8df,0x7aa,_0x531f17._0x10099f,_0x531f17._0x1f37dd)](_0x562712)[_0x38d022(0x3a3,0x3fb,_0x531f17._0xe3cb4,0x565)]();function _0x45cfda(_0x10c7fd,_0x410a35,_0x55f77f,_0x4fa463){return _0x257320(_0x10c7fd-0xa0,_0x410a35-_0x1621a2._0x16731f,_0x410a35-_0x1621a2._0x9b8e5d,_0x4fa463);}function _0x38d022(_0x58e5c7,_0x5b230d,_0xbb509,_0x48c15f){return _0x257320(_0x58e5c7-_0x1e7cc1._0x437f63,_0x5b230d-_0x1e7cc1._0x15199c,_0x5b230d-_0x1e7cc1._0x222ea8,_0x48c15f);}return BUILTIN_LSP_SERVERS[_0x45cfda(0x544,0x5e7,0x4b6,0x52f)](_0x44cb78=>_0x44cb78[_0x38d022(0x3cd,0x411,0x4ac,0x2c3)][_0x38d022(0x71a,0x5ef,0x754,0x649)](_0x361786));}function stateKey(_0x2596f9,_0x26581a){return _0x26581a+':'+_0x2596f9['id'];}function diagnosticsKeyToPath(_0xec5267){const _0x29a61d={_0x178e26:0x572,_0x5e337d:0x515,_0x267d23:0x581,_0x1279d4:0x400},_0x375d57={_0x3c4661:0xe,_0x53e600:0x1b7,_0xc7bfa:0x35},_0x409741={_0x2cee10:0x7f,_0x3416ae:0xee};function _0x2df0d3(_0xc5cc45,_0x48f1a2,_0x6c7f9a,_0x5b83f9){return _0x257320(_0xc5cc45-_0x409741._0x2cee10,_0x48f1a2-_0x409741._0x3416ae,_0x6c7f9a-0xd6,_0x48f1a2);}function _0x271c63(_0x46d9c9,_0x513285,_0x48c594,_0x343ed0){return _0x3342ed(_0x46d9c9-_0x375d57._0x3c4661,_0x46d9c9,_0x48c594- -_0x375d57._0x53e600,_0x343ed0-_0x375d57._0xc7bfa);}if(!_0xec5267[_0x2df0d3(_0x29a61d._0x178e26,_0x29a61d._0x5e337d,0x59b,_0x29a61d._0x267d23)](_0x2df0d3(_0x29a61d._0x1279d4,0x3f1,0x54b,0x50b)))return _0xec5267;return fileURLToPath(_0xec5267);}function nextFileVersion(_0x23ea66,_0x2fede8){const _0x79d968={_0x149a84:0x46,_0x3f23d3:0x494,_0x38878c:0x58f,_0xd99c9b:0xf7,_0x3fa657:0x4},_0x4d0411={_0x53e63b:0x1f2,_0x26dad4:0x29a},_0x2ccaa1={_0x3129cd:0x8b},_0x1e2d45=(_0x23ea66[_0x306a26(-_0x79d968._0x149a84,0xb5,0x1f,0x16f)][_0x5c2e68(0x45f,_0x79d968._0x3f23d3,0x4b5,_0x79d968._0x38878c)](_0x2fede8)??0x1)+0x1;_0x23ea66[_0x306a26(-_0x79d968._0xd99c9b,-0x107,0x1f,_0x79d968._0x3fa657)]['set'](_0x2fede8,_0x1e2d45);function _0x5c2e68(_0x33216e,_0x18ca71,_0x386ebc,_0x883516){return _0x257320(_0x33216e-0x83,_0x18ca71-0x5e,_0x18ca71-_0x2ccaa1._0x3129cd,_0x386ebc);}function _0x306a26(_0x2ebc8f,_0x2029c3,_0x462d6f,_0x183114){return _0x257320(_0x2ebc8f-0x177,_0x2029c3-_0x4d0411._0x53e63b,_0x462d6f- -_0x4d0411._0x26dad4,_0x2ebc8f);}return _0x1e2d45;}async function collectClientResults(_0x114780){const _0x3df080={_0x5a044c:0x35f,_0x4c6491:0x3ea,_0x169e07:0x1fa,_0x3ba362:0x119},_0x52b6b1={_0x4c829e:0x166,_0x93b7de:0x30f},_0x3faeda={_0x4a4667:0xb0},_0x1006f9=await Promise[_0x1bde9d(0x3ce,_0x3df080._0x5a044c,0x4c8,_0x3df080._0x4c6491)](_0x114780);function _0x1bde9d(_0x5b2b41,_0xda101c,_0x50d34c,_0x33609c){return _0x3342ed(_0x5b2b41-0x183,_0x50d34c,_0x5b2b41-0x9b,_0x33609c-_0x3faeda._0x4a4667);}function _0xe6e8ea(_0x220590,_0x3207e0,_0x1aa43c,_0x1ac636){return _0x257320(_0x220590-0x9c,_0x3207e0-_0x52b6b1._0x4c829e,_0x220590- -_0x52b6b1._0x93b7de,_0x3207e0);}return _0x1006f9[_0xe6e8ea(_0x3df080._0x169e07,0x29a,0x2e6,_0x3df080._0x3ba362)](_0x1b55c7=>_0x1b55c7['status']==='fulfilled'?_0x1b55c7['value']:[]);}function createLspService(_0x326ac7={}){const _0x57ba34={_0x2985d2:0x895,_0x51243:0x689},_0x5f4880={_0x10c67d:0x55c,_0xfb363:0x5dc,_0x21f853:0x246,_0x529e37:0xf6,_0xfa254b:0x186,_0x3cb264:0x54b,_0x1876e6:0x6a3,_0x9d8a9:0x6bb,_0x5c32fd:0x1fb,_0x445aad:0x181,_0x13019d:0xb1,_0xd8b6d7:0x11,_0x248b40:0x196,_0x5b7d89:0x146,_0x277b38:0x20f,_0x17ad60:0x1c6,_0x123a88:0xa5,_0x42e42f:0xac,_0x329086:0x1ae,_0x49a1d3:0x1b9,_0xc47549:0x146,_0x4f4582:0x12e,_0x256a2e:0x3c,_0x1dcf02:0x4cf,_0xcf9a34:0x49d,_0x2c2148:0x3f6,_0x45c8e7:0x47a,_0x1f9d3e:0x4dc},_0x27c5e4={_0x15f8ef:0x492,_0x439803:0x13c,_0x46f58e:0x1db},_0x43f071={_0x3cb3d1:0x394,_0x4f3121:0x378},_0x3c49d5={_0x17e084:0x46,_0x20f9f7:0x18,_0x478b65:0x104},_0x324b51={_0x465a81:0x5d5,_0x51f18b:0x4d4},_0x1aafc5={_0x53cce2:0x10e},_0x5692d4={_0x1b154c:0x31f,_0x11362c:0x3cd,_0x235aeb:0x4b5},_0x16ac95={_0x1603f7:0xae},_0x548961={_0x5ecda1:0xd1,_0x1820f3:0x1f4},_0x15a345={_0x2a77b8:0x168,_0x2cc21e:0x160},_0x2de638={_0x16ec0a:0x20e,_0x5c8c13:0x33e,_0x2519ba:0x3cc,_0x559027:0x4e5,_0x28bb75:0x41f},_0x4c5661={_0x251daa:0x127,_0xce2ca0:0x115,_0x5a29ba:0xb0},_0x5060d3={_0x53f7c5:0xcc,_0x23455a:0x94},_0x37d9e0={_0x1ac251:0x54c},_0xad8094={_0x20a595:0x4f},_0x2d297c={_0x1a7340:0xab,_0x1768d2:0xb7},_0x14855a={_0x4074a2:0x896,_0x4da713:0x7a3,_0x19b55e:0x62d},_0x3c8c6e={_0x43d169:0x1d8},_0x56adf0={_0x52bd30:0x1f7,_0x3fcb35:0x1b4,_0x54f444:0x248,_0x105633:0x237,_0x1e4195:0x18a},_0x1c4dde={_0x180946:0xd0},_0x1eeca9={_0xc5fa79:0xf3,_0x5d4e5c:0xca,_0xef391f:0x332,_0x429cd5:0x214,_0xd4e1ef:0x21b,_0x5666d4:0x21b,_0x3fc9fe:0x7d,_0x45e04f:0xc3,_0x37852b:0x451,_0x2379d4:0xb4,_0x5eb178:0xc1,_0xc85f7c:0x28e,_0x4336d8:0x10c,_0x4fd810:0x55},_0x1032e9={_0x1eb190:0x39f,_0x5620cf:0x31e,_0x27ea40:0x264,_0x152b9d:0x541,_0x221841:0x581,_0x3c6387:0x547,_0x535e37:0x564,_0xc3441d:0x486,_0x465abb:0x61f,_0x248c9f:0x4fa},_0x2792d9={_0x70f331:0x651,_0x4efeb7:0x762,_0x14bb58:0x71e,_0x38b74d:0x657,_0x5a8697:0x5b1,_0x296d57:0x652,_0x367715:0x59c,_0x3a433a:0x458,_0x9f714:0x5b0,_0x3f2ff0:0x48f,_0x1c3117:0x3e3,_0x17511b:0x47e,_0x203887:0x3b7,_0x2cddf5:0x693,_0xcd7e8b:0x551,_0x2c475f:0x3f5},_0x18875d={_0x297fcd:0x3ac,_0x5ba70a:0x13f},_0x1cbd05={_0x39982b:0x382},_0x347990={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x364790=()=>_0x326ac7[_0x3bdbbe(0x2a,0x75,0x1de,0x1bf)]!==![];async function _0x4216da(_0x2e7b15,_0x986f41){const _0x41cd56={_0x526935:0x3c2,_0x5b1543:0x3db,_0x474102:0x55e,_0x36a226:0x5c1,_0x123a89:0x4e7,_0x2638e9:0x5ec,_0x584c6a:0x66b,_0x205146:0x5da,_0x20da67:0x724,_0x5141b4:0x6d1,_0x53937b:0x672,_0x386e15:0x58f,_0x5d097b:0x622,_0x521019:0x481,_0x4808eb:0x436,_0x1cdbbe:0x42c,_0x4a9f43:0x455,_0x34779e:0x2e8,_0x16b873:0x219,_0x4a23eb:0x264,_0x23adf4:0x35a,_0x2d379e:0x1e5,_0x4d69e3:0x21c},_0x238b81={_0x3abb2c:0x23b,_0x28951a:0x188},_0x38f817={_0x3e6393:0x7d},_0x5f4702=stateKey(_0x2e7b15,_0x986f41),_0x35dfc0=_0x347990[_0x18d136(0x5d8,_0x2792d9._0x70f331,_0x2792d9._0x4efeb7,0x76c)][_0x279166(0x722,_0x2792d9._0x14bb58,_0x2792d9._0x38b74d,0x6dd)](_0x583a99=>_0x583a99[_0x279166(0x622,0x494,0x4fa,0x46b)]===_0x2e7b15['id']&&_0x583a99['root']===_0x986f41);if(_0x35dfc0)return _0x35dfc0;function _0x18d136(_0x28af85,_0x32edd5,_0x2130b7,_0x2ebaa3){return _0x3bdbbe(_0x2130b7,_0x32edd5-_0x1cbd05._0x39982b,_0x2130b7-0x66,_0x2ebaa3-0xc);}function _0x279166(_0x37ab0d,_0x27f2e7,_0x118cad,_0x1cf2b0){return _0x3bdbbe(_0x37ab0d,_0x118cad-_0x18875d._0x297fcd,_0x118cad-_0x18875d._0x5ba70a,_0x1cf2b0-0x81);}if(_0x347990[_0x18d136(0x5a3,_0x2792d9._0x5a8697,_0x2792d9._0x296d57,_0x2792d9._0x367715)][_0x18d136(_0x2792d9._0x3a433a,0x510,0x635,_0x2792d9._0x9f714)](_0x5f4702))return void 0x0;const _0x333dc9=_0x347990[_0x279166(_0x2792d9._0x3f2ff0,_0x2792d9._0x1c3117,_0x2792d9._0x17511b,_0x2792d9._0x203887)][_0x279166(_0x2792d9._0x2cddf5,0x52b,_0x2792d9._0xcd7e8b,0x649)](_0x5f4702);if(_0x333dc9)return _0x333dc9;const _0x455a12=((async()=>{function _0x815c60(_0x634d94,_0x41048d,_0x210c65,_0x4fddeb){return _0x279166(_0x4fddeb,_0x41048d-0x75,_0x210c65- -_0x38f817._0x3e6393,_0x4fddeb-0x65);}function _0x3a4f5f(_0x2287ce,_0x341c3c,_0xe61567,_0x31029f){return _0x18d136(_0x2287ce-0x152,_0x341c3c- -_0x238b81._0x3abb2c,_0x31029f,_0x31029f-_0x238b81._0x28951a);}try{const _0x59dfb3=await _0x2e7b15[_0x3a4f5f(0x387,_0x41cd56._0x526935,_0x41cd56._0x5b1543,0x38f)](_0x986f41);if(!_0x59dfb3)return _0x347990[_0x815c60(0x3f0,0x4ae,_0x41cd56._0x474102,_0x41cd56._0x36a226)][_0x815c60(0x77b,_0x41cd56._0x123a89,0x63d,_0x41cd56._0x2638e9)](_0x5f4702),void 0x0;const _0x788f71=await createLspClient({'server':_0x2e7b15,'root':_0x986f41,'handle':_0x59dfb3}),_0x55094e=_0x347990['clients'][_0x815c60(_0x41cd56._0x584c6a,0x624,_0x41cd56._0x205146,_0x41cd56._0x20da67)](_0x1d9a4e=>_0x1d9a4e['serverId']===_0x2e7b15['id']&&_0x1d9a4e[_0x3a4f5f(0x228,0x1e3,0x108,0xb7)]===_0x986f41);if(_0x55094e)return await _0x788f71[_0x815c60(_0x41cd56._0x5141b4,_0x41cd56._0x53937b,_0x41cd56._0x386e15,_0x41cd56._0x5d097b)](),_0x55094e;return _0x347990[_0x3a4f5f(_0x41cd56._0x521019,0x416,0x3ab,0x345)][_0x815c60(0x2e2,0x303,_0x41cd56._0x4808eb,_0x41cd56._0x1cdbbe)](_0x788f71),_0x788f71;}catch{return _0x347990['broken'][_0x3a4f5f(0x38d,_0x41cd56._0x4a9f43,0x539,0x569)](_0x5f4702),void 0x0;}finally{_0x347990[_0x3a4f5f(_0x41cd56._0x34779e,_0x41cd56._0x16b873,0x350,0x371)][_0x3a4f5f(_0x41cd56._0x4a23eb,_0x41cd56._0x23adf4,_0x41cd56._0x2d379e,_0x41cd56._0x4d69e3)](_0x5f4702);}})());return _0x347990['spawning'][_0x279166(0x418,0x31f,_0x2792d9._0x2c475f,0x333)](_0x5f4702,_0x455a12),_0x455a12;}async function _0x484172(_0x4fb3d0,_0x3dab5b){const _0x58bbe0={_0x2c5995:0x1c8};if(!_0x364790())return[];function _0x388aab(_0x55bba2,_0x44cc6d,_0x2b4636,_0x40ff45){return _0x3bdbbe(_0x55bba2,_0x40ff45-_0x58bbe0._0x2c5995,_0x2b4636-0x84,_0x40ff45-0x14e);}const _0x4be19a=[];for(const _0x4603af of getServersForFile(_0x4fb3d0)){const _0x1454f8=await _0x4603af[_0x388aab(_0x1032e9._0x1eb190,_0x1032e9._0x5620cf,0x1b2,_0x1032e9._0x27ea40)](_0x4fb3d0);if(!_0x1454f8)continue;const _0x5075c1=stateKey(_0x4603af,_0x1454f8);if(_0x347990['broken'][_0x34476f(0x4e4,0x512,_0x1032e9._0x152b9d,_0x1032e9._0x221841)](_0x5075c1))continue;const _0x54a275=_0x347990['clients'][_0x34476f(_0x1032e9._0x3c6387,0x7b2,0x752,0x69e)](_0x4e618f=>_0x4e618f['serverId']===_0x4603af['id']&&_0x4e618f['root']===_0x1454f8);if(_0x54a275){_0x4be19a['push'](_0x54a275);continue;}if(!_0x3dab5b)continue;const _0x8b8e10=await _0x4216da(_0x4603af,_0x1454f8);if(_0x8b8e10)_0x4be19a[_0x34476f(_0x1032e9._0x535e37,_0x1032e9._0xc3441d,_0x1032e9._0x465abb,_0x1032e9._0x248c9f)](_0x8b8e10);}function _0x34476f(_0x2b44d5,_0x1193c6,_0x257a67,_0x30fc88){return _0x3bdbbe(_0x257a67,_0x30fc88-0x3f3,_0x257a67-0xd1,_0x30fc88-0xd9);}return _0x4be19a;}async function _0x178914(_0x387198,_0x17a703=![]){const _0x206ace={_0x52dcd8:0x122,_0x118130:0x1a9,_0x48dda2:0x35a},_0x33c51b={_0x58abbc:0x189,_0x43f110:0x52};function _0x286b07(_0x559d61,_0x1172bb,_0x6751c3,_0x2fefc4){return _0x3bdbbe(_0x6751c3,_0x2fefc4- -_0x33c51b._0x58abbc,_0x6751c3-_0x33c51b._0x43f110,_0x2fefc4-0x5a);}const _0x2082ae=await _0x484172(_0x387198,!![]);await Promise['all'](_0x2082ae[_0x286b07(-_0x1c4dde._0x180946,-0xf9,-0x215,-_0x1c4dde._0x180946)](async _0x13ed68=>{const _0x4c7d45={_0x2770aa:0x108,_0x2c3210:0x33};function _0x39396d(_0x3fc003,_0x423db2,_0x257a59,_0x219f45){return _0x286b07(_0x3fc003-_0x4c7d45._0x2770aa,_0x423db2-_0x4c7d45._0x2c3210,_0x423db2,_0x3fc003- -0x79);}!_0x347990[_0x39396d(-0x57,-_0x1eeca9._0xc5fa79,_0x1eeca9._0x5d4e5c,0x50)]['has'](_0x13ed68['serverId']+':'+_0x13ed68[_0x25f09a(_0x1eeca9._0xef391f,0x15d,_0x1eeca9._0x429cd5,0x26d)]+':'+_0x387198)&&(await _0x13ed68[_0x25f09a(0x205,_0x1eeca9._0xd4e1ef,0xe6,_0x1eeca9._0x5666d4)][_0x39396d(_0x1eeca9._0x3fc9fe,0xa,-_0x1eeca9._0x45e04f,0x1a5)]({'path':_0x387198}),_0x347990[_0x25f09a(0x4e7,_0x1eeca9._0x37852b,0x2b7,0x37c)]['add'](_0x13ed68[_0x39396d(-_0x1eeca9._0x2379d4,-0x22b,_0x1eeca9._0x5eb178,0x39)]+':'+_0x13ed68['root']+':'+_0x387198));function _0x25f09a(_0x4949db,_0x1fe927,_0x481569,_0x1e293a){return _0x286b07(_0x4949db-_0x206ace._0x52dcd8,_0x1fe927-_0x206ace._0x118130,_0x1fe927,_0x1e293a-_0x206ace._0x48dda2);}await _0x13ed68[_0x25f09a(_0x1eeca9._0xc85f7c,_0x1eeca9._0x4336d8,0x2ca,0x21b)][_0x39396d(-_0x1eeca9._0x4fd810,0x2c,-0x11b,0x33)]({'path':_0x387198,'version':nextFileVersion(_0x347990,_0x387198)});if(_0x17a703)await _0x13ed68['waitForDiagnostics']({'path':_0x387198});}));}async function _0x18bb10(_0x1cfe82){const _0x5e119f={_0x53cb74:0x209};await _0x178914(_0x1cfe82[_0x6264d1(_0x56adf0._0x52bd30,_0x56adf0._0x3fcb35,_0x56adf0._0x54f444,_0x56adf0._0x105633)],![]);function _0x6264d1(_0x4bed75,_0x32c008,_0x4e22ce,_0x2cc1b1){return _0x3bdbbe(_0x32c008,_0x4e22ce-_0x5e119f._0x53cb74,_0x4e22ce-0x95,_0x2cc1b1-0x163);}function _0x411c8e(_0x3c69bf,_0x3b7ec4,_0x5ef62e,_0xd56f2a){return _0x3bdbbe(_0x3c69bf,_0x3b7ec4-0x14b,_0x5ef62e-0x13b,_0xd56f2a-0x1ad);}return _0x484172(_0x1cfe82[_0x411c8e(0x20e,_0x56adf0._0x1e4195,0x2f3,0x122)],![]);}function _0x3bdbbe(_0x34c932,_0x23cd5e,_0x58fc97,_0x45a780){return _0x3342ed(_0x34c932-0xa6,_0x34c932,_0x23cd5e- -_0x3c8c6e._0x43d169,_0x45a780-0x3f);}async function _0x38f7aa(_0x2bf033){function _0x3ba768(_0x5b86e1,_0x1e6dc9,_0x51f131,_0x3ceb30){return _0x3bdbbe(_0x3ceb30,_0x51f131- -0x29d,_0x51f131-0x108,_0x3ceb30-0x34);}const _0x40b3fa=await _0x18bb10(_0x2bf033);return collectClientResults(_0x40b3fa['map'](_0x480572=>_0x480572[_0x3ba768(-0x111,-0x1d8,-0xbd,-0x11c)]['prepareCallHierarchy'](_0x2bf033)));}return{'isEnabled':_0x364790,async 'hasClients'(_0x5b5abf){const _0x41f531={_0x3fe87f:0x4e6,_0x3badf4:0x1};function _0x3338dd(_0x58db45,_0x4ed261,_0x5cecdd,_0x574808){return _0x3bdbbe(_0x574808,_0x5cecdd-_0x41f531._0x3fe87f,_0x5cecdd-0x2,_0x574808-_0x41f531._0x3badf4);}return(await _0x484172(_0x5b5abf,![]))[_0x3338dd(0x62a,_0x14855a._0x4074a2,_0x14855a._0x4da713,_0x14855a._0x19b55e)]>0x0||getServersForFile(_0x5b5abf)['length']>0x0;},'touchFile':_0x178914,async 'diagnostics'(){function _0xfbf477(_0x3b83e1,_0x689053,_0x2645ba,_0x2f838e){return _0x3bdbbe(_0x3b83e1,_0x689053- -0x218,_0x2645ba-0x19b,_0x2f838e-0x13b);}const _0x3e2c84={};for(const _0x384cc8 of _0x347990[_0xfbf477(-_0x2d297c._0x1a7340,_0x2d297c._0x1768d2,-0x96,0xa8)]){for(const [_0x3c82ec,_0x10ef15]of _0x384cc8['diagnostics']){_0x3e2c84[diagnosticsKeyToPath(_0x3c82ec)]=_0x10ef15;}}return _0x3e2c84;},async 'diagnosticsForFile'(_0x1c31a3){const _0x1417a2={_0x3f1442:0x227};function _0x48129c(_0x352642,_0x2a4e71,_0xdef442,_0x10f798){return _0x3bdbbe(_0x352642,_0x10f798- -_0x1417a2._0x3f1442,_0xdef442-0x149,_0x10f798-0x76);}await _0x178914(_0x1c31a3,!![]);const _0xcc3a59=[];for(const _0x6ead28 of await _0x484172(_0x1c31a3,![])){for(const [_0x6e4040,_0x37e215]of _0x6ead28[_0x48129c(0x9b,-0xba,_0xad8094._0x20a595,-0x95)]){if(diagnosticsKeyToPath(_0x6e4040)===_0x1c31a3)_0xcc3a59['push'](..._0x37e215);}}return _0xcc3a59;},async 'definition'(_0x2ee190){function _0x5901fe(_0x194fe0,_0x2263f1,_0x390ec4,_0x50c1be){return _0x3bdbbe(_0x390ec4,_0x50c1be- -0x1e2,_0x390ec4-0xa0,_0x50c1be-0x12f);}return collectClientResults((await _0x18bb10(_0x2ee190))['map'](_0xf715bf=>_0xf715bf['request'][_0x5901fe(0x5d,-0x159,-0x7d,-0xc3)](_0x2ee190)));},async 'references'(_0x45b506){const _0x3d6f84={_0x5169ba:0xd8,_0x2fadd1:0x1f};function _0x3c17bb(_0xa50d98,_0x8a4e39,_0x2029ff,_0x11db50){return _0x3bdbbe(_0x11db50,_0x2029ff-0x493,_0x2029ff-_0x3d6f84._0x5169ba,_0x11db50-_0x3d6f84._0x2fadd1);}function _0x32f713(_0xeb48e4,_0x561842,_0xd0de31,_0x29daf4){return _0x3bdbbe(_0x561842,_0xd0de31-0x2c3,_0xd0de31-0x20,_0x29daf4-0x1a2);}return collectClientResults((await _0x18bb10(_0x45b506))[_0x3c17bb(0x59f,0x4ec,_0x37d9e0._0x1ac251,0x49d)](_0x18272b=>_0x18272b[_0x3c17bb(0x655,0x662,0x673,0x585)][_0x32f713(0x385,0x389,0x326,0x472)](_0x45b506)));},async 'hover'(_0x2a2e8b){function _0x201e46(_0x2e1399,_0x434aba,_0x2ce7b3,_0x3d57bd){return _0x3bdbbe(_0x2e1399,_0x3d57bd- -0x113,_0x2ce7b3-_0x5060d3._0x53f7c5,_0x3d57bd-_0x5060d3._0x23455a);}const _0x319f3b=await Promise[_0x1746d7(0x371,0x282,0x14d,0x320)]((await _0x18bb10(_0x2a2e8b))[_0x1746d7(0x1fc,0x1e0,_0x2de638._0x16ec0a,_0x2de638._0x5c8c13)](_0x56eb1a=>_0x56eb1a[_0x1746d7(0x381,0x307,0x3ee,0x30a)][_0x1746d7(0x379,0x22b,0x1d8,0xfe)](_0x2a2e8b)));function _0x1746d7(_0x46b85d,_0x367f9e,_0x1f5266,_0x59a565){return _0x3bdbbe(_0x46b85d,_0x367f9e-_0x4c5661._0x251daa,_0x1f5266-_0x4c5661._0xce2ca0,_0x59a565-_0x4c5661._0x5a29ba);}return _0x319f3b[_0x1746d7(0x541,_0x2de638._0x2519ba,_0x2de638._0x559027,_0x2de638._0x28bb75)](_0x1aa50d=>_0x1aa50d['status']==='fulfilled'&&_0x1aa50d[_0x1746d7(0x372,0x221,0x2a8,0x1c1)]?[_0x1aa50d[_0x1746d7(0xbd,0x221,0x14b,0x1fc)]]:[]);},async 'documentSymbol'(_0x31305f){const _0x2e6e29={_0x2dbb7f:0x143};await _0x178914(_0x31305f,![]);function _0x5c3095(_0x3f3d1c,_0x3397c4,_0x189de2,_0x4636f8){return _0x3bdbbe(_0x3f3d1c,_0x189de2-0x41,_0x189de2-0xf,_0x4636f8-_0x2e6e29._0x2dbb7f);}function _0x1c2f8d(_0x554484,_0x2b3b24,_0x3f3da9,_0x30b8d7){return _0x3bdbbe(_0x2b3b24,_0x3f3da9- -0x2af,_0x3f3da9-_0x15a345._0x2a77b8,_0x30b8d7-_0x15a345._0x2cc21e);}return collectClientResults((await _0x484172(_0x31305f,![]))[_0x5c3095(_0x548961._0x5ecda1,0x22,0xfa,_0x548961._0x1820f3)](_0xdbc9b0=>_0xdbc9b0[_0x5c3095(0x15a,0x166,0x221,0x2f7)][_0x5c3095(0xc3,0x1c0,0x1e7,0x315)](_0x31305f)));},async 'workspaceSymbol'(_0x3b93e4){const _0x45b2d8={_0x1a3c90:0x1ad};function _0x368e97(_0x154281,_0x8634b1,_0x3deccc,_0x2e7a57){return _0x3bdbbe(_0x154281,_0x3deccc-_0x45b2d8._0x1a3c90,_0x3deccc-0xaf,_0x2e7a57-0x18e);}function _0x50f493(_0xcbfbb0,_0x5de613,_0xeddc19,_0x1245b2){return _0x3bdbbe(_0xcbfbb0,_0xeddc19-0x314,_0xeddc19-0x1af,_0x1245b2-_0x16ac95._0x1603f7);}return collectClientResults(_0x347990['clients'][_0x50f493(_0x5692d4._0x1b154c,0x32f,_0x5692d4._0x11362c,_0x5692d4._0x235aeb)](_0x538879=>_0x538879[_0x50f493(0x602,0x449,0x4f4,0x39b)]['workspaceSymbol'](_0x3b93e4)));},async 'implementation'(_0x2c0172){const _0xbcda1b={_0x514e1a:0x355,_0x533452:0x12b,_0x44f3da:0x90},_0x309cb7={_0x5a8827:0x77,_0x217e6f:0xe};function _0xa70992(_0x12b356,_0x4601eb,_0x4dd8dd,_0x66ba2a){return _0x3bdbbe(_0x66ba2a,_0x4601eb-0x48,_0x4dd8dd-_0x309cb7._0x5a8827,_0x66ba2a-_0x309cb7._0x217e6f);}function _0x765495(_0x46c640,_0x65bee,_0x1a0184,_0x1e7807){return _0x3bdbbe(_0x46c640,_0x1a0184-_0xbcda1b._0x514e1a,_0x1a0184-_0xbcda1b._0x533452,_0x1e7807-_0xbcda1b._0x44f3da);}return collectClientResults((await _0x18bb10(_0x2c0172))[_0xa70992(0x212,0x101,0xa4,-0x16)](_0x16e017=>_0x16e017[_0x765495(0x4aa,0x609,0x535,0x4e9)][_0x765495(0x3d1,0x4b7,0x3c2,0x2ad)](_0x2c0172)));},async 'prepareCallHierarchy'(_0x4a7339){return _0x38f7aa(_0x4a7339);},async 'incomingCalls'(_0x5c666c){const _0x243889={_0x55356c:0x168},_0x5aa2ff=await _0x38f7aa(_0x5c666c);function _0x52e702(_0xe5ffb8,_0x1e3351,_0x29e295,_0x341e72){return _0x3bdbbe(_0x341e72,_0x29e295-0x1d6,_0x29e295-0x64,_0x341e72-_0x1aafc5._0x53cce2);}const _0x36f125=await _0x18bb10(_0x5c666c);function _0x138a22(_0x37b2a0,_0x4f8bb5,_0xb738d4,_0x187283){return _0x3bdbbe(_0x37b2a0,_0xb738d4-0x330,_0xb738d4-_0x243889._0x55356c,_0x187283-0x71);}return collectClientResults(_0x36f125[_0x138a22(0x70e,0x734,_0x324b51._0x465a81,_0x324b51._0x51f18b)](_0x3693eb=>_0x5aa2ff[_0x138a22(0x444,0x3c4,0x3e9,0x542)](_0x1f2dda=>_0x3693eb[_0x138a22(0x448,0x5bd,0x510,0x5de)][_0x138a22(0x708,0x52d,0x655,0x544)](_0x1f2dda))));},async 'outgoingCalls'(_0x414140){const _0x2c992e={_0x2ad22d:0x75},_0x4d24d5=await _0x38f7aa(_0x414140),_0x1c25b9=await _0x18bb10(_0x414140);function _0x5423a1(_0x372654,_0x48ed13,_0x5eb2c5,_0x4bfc9c){return _0x3bdbbe(_0x372654,_0x48ed13- -_0x3c49d5._0x17e084,_0x5eb2c5-_0x3c49d5._0x20f9f7,_0x4bfc9c-_0x3c49d5._0x478b65);}function _0x384567(_0x2d2bdf,_0x429496,_0x4187f9,_0x1f1b10){return _0x3bdbbe(_0x2d2bdf,_0x1f1b10-0x40,_0x4187f9-0x1de,_0x1f1b10-_0x2c992e._0x2ad22d);}return collectClientResults(_0x1c25b9[_0x384567(_0x43f071._0x3cb3d1,0x44d,_0x43f071._0x4f3121,0x2e5)](_0x4205ea=>_0x4d24d5[_0x5423a1(0x114,0x73,0x39,-0xda)](_0x138ec4=>_0x4205ea[_0x384567(0x2ee,0xc5,0x18a,0x220)]['outgoingCalls'](_0x138ec4))));},async 'shutdown'(){const _0x30bba1={_0x4221d4:0x183,_0x291358:0x172};if(_0x347990[_0xc41a58(0x51f,_0x5f4880._0x10c67d,_0x5f4880._0xfb363,0x48d)])return;_0x347990[_0x1b61ba(-_0x5f4880._0x21f853,-0x164,-_0x5f4880._0x529e37,-_0x5f4880._0xfa254b)]=!![],await Promise['allSettled'](_0x347990['clients'][_0xc41a58(_0x5f4880._0x3cb264,_0x5f4880._0x1876e6,_0x5f4880._0x9d8a9,0x671)](_0x5dd023=>_0x5dd023[_0xc41a58(0x6f2,0x5df,0x80c,0x760)]())),_0x347990['clients']=[],_0x347990[_0x1b61ba(-_0x5f4880._0x5c32fd,-_0x5f4880._0x445aad,-_0x5f4880._0x13019d,_0x5f4880._0xd8b6d7)][_0x1b61ba(-_0x5f4880._0x248b40,-0x22f,-_0x5f4880._0x5b7d89,-_0x5f4880._0x277b38)](),_0x347990[_0x1b61ba(_0x5f4880._0x17ad60,-_0x5f4880._0x123a88,_0x5f4880._0x42e42f,_0x5f4880._0x329086)][_0x1b61ba(-0x1c6,-_0x5f4880._0x49a1d3,-_0x5f4880._0xc47549,-0x1c1)]();function _0x1b61ba(_0x5760a8,_0x293720,_0x85cc5f,_0x2ccfe0){return _0x3bdbbe(_0x2ccfe0,_0x85cc5f- -_0x30bba1._0x4221d4,_0x85cc5f-_0x30bba1._0x291358,_0x2ccfe0-0xe2);}_0x347990[_0x1b61ba(-0x109,-0x1ba,-_0x5f4880._0x4f4582,_0x5f4880._0x256a2e)][_0xc41a58(_0x5f4880._0x1dcf02,_0x5f4880._0xcf9a34,_0x5f4880._0x2c2148,_0x5f4880._0x45c8e7)]();function _0xc41a58(_0x52e957,_0x317937,_0x220af0,_0x197327){return _0x3bdbbe(_0x220af0,_0x52e957-_0x27c5e4._0x15f8ef,_0x220af0-_0x27c5e4._0x439803,_0x197327-_0x27c5e4._0x46f58e);}_0x347990['openFiles'][_0xc41a58(0x4cf,0x405,0x38d,_0x5f4880._0x1f9d3e)]();},'status'(){const _0x75e14d={_0x34dd7c:0x4bb,_0x5844fc:0x1b8};function _0x13194f(_0x52a747,_0x5c1a4f,_0x1a17f2,_0x5ea4c5){return _0x3bdbbe(_0x5c1a4f,_0x52a747-_0x75e14d._0x34dd7c,_0x1a17f2-0xb7,_0x5ea4c5-_0x75e14d._0x5844fc);}return{'connectedClients':_0x347990['clients'][_0x13194f(0x778,0x761,_0x57ba34._0x2985d2,_0x57ba34._0x51243)]};}};}function createQuestionId(){const _0x37f78e={_0x22a8ef:0x50d,_0x46f336:0x471,_0x48b84d:0x430,_0x67183:0x3a7,_0x3d0e21:0x693,_0x361c5d:0x5d1,_0x89d07a:0x304,_0x2dac11:0x490},_0x5cbf3b={_0x1c2e5b:0x12d};function _0x50df02(_0x482cea,_0x3bc0d8,_0x5b5f39,_0x5de329){return _0x257320(_0x482cea-_0x5cbf3b._0x1c2e5b,_0x3bc0d8-0x146,_0x482cea-0xcb,_0x5de329);}function _0x179332(_0x29b61c,_0x12ce94,_0x489241,_0x250926){return _0x3342ed(_0x29b61c-0x69,_0x29b61c,_0x250926-0x164,_0x250926-0x80);}return _0x179332(0x34e,_0x37f78e._0x22a8ef,0x3c8,_0x37f78e._0x46f336)+Date[_0x179332(_0x37f78e._0x48b84d,0x291,0x4ed,_0x37f78e._0x67183)]()+'-'+Math[_0x179332(0x6f2,0x62d,_0x37f78e._0x3d0e21,_0x37f78e._0x361c5d)]()[_0x50df02(0x438,_0x37f78e._0x89d07a,0x43c,_0x37f78e._0x2dac11)](0x24)['slice'](0x2,0x9);}function validateInput(_0x4b3270){const _0x32e703={_0x44584d:0x362,_0x1e18f7:0x3ba,_0xc8760b:0x6e7,_0x3d6f3e:0x586,_0x2a1b4b:0x2e5,_0x4d4db4:0x2f3,_0x439188:0x273,_0x16bb71:0x33e,_0x188ac5:0x466,_0x129e2f:0x19b,_0x3f3884:0x1bd,_0x280e13:0x1ea,_0x6a5ed:0x2b3,_0x571205:0x261,_0x3387bc:0x47d,_0x15b531:0x58d,_0x802b9c:0x373,_0x4c71c5:0x31e,_0x3dbd6b:0x42c,_0x346f0e:0x4e1,_0x2bcd29:0x55,_0x3e1a42:0x4f5,_0x420570:0x612,_0xe5a64b:0x58a,_0x50c792:0x628,_0x55fc07:0x570,_0x34e117:0x199,_0x497a35:0x256,_0x5b33d8:0x350,_0x2066d2:0x42c,_0x10900b:0x2f0,_0x25a7ee:0x2f3,_0x5dc792:0x377,_0x233072:0x3a4,_0x3f19e4:0x41f,_0x5a7ee8:0x3fb,_0x442e32:0x37d,_0x3076e0:0x3e7,_0x2e8580:0x4ef,_0x37a857:0x428,_0x55c911:0x4b5,_0x5732b7:0x3f3,_0x461793:0x52e,_0x1d3052:0x5e2,_0x169f36:0x18c,_0x10a5c3:0x240,_0x57b561:0x426,_0x52084c:0x6c,_0x2900e0:0x154,_0x119e75:0x14f,_0x4b5e4a:0x34d,_0xcc33d9:0x1ee,_0x25483e:0x2fe,_0x5f3790:0x394,_0x15ffb4:0x309,_0x51e9b5:0x31d,_0xea2473:0x4cb,_0x86c03f:0x3ca,_0x51d713:0x1ba,_0x3fb4d8:0x20c,_0x47f64e:0x297,_0x3cb80b:0x253,_0x2117c9:0x131,_0xc30144:0x3c3},_0x3b42df={_0x831a2b:0x1a9,_0x8a46e7:0x7b},_0x239466={_0x181919:0x14,_0x47255c:0x32};function _0x44b7ba(_0x352dc4,_0x10bdff,_0x5de3ea,_0x2dd4a5){return _0x3342ed(_0x352dc4-_0x239466._0x181919,_0x352dc4,_0x5de3ea-0xf1,_0x2dd4a5-_0x239466._0x47255c);}function _0x5d1926(_0xbb58ba,_0x658a82,_0x1a9f68,_0x230e49){return _0x257320(_0xbb58ba-_0x3b42df._0x831a2b,_0x658a82-_0x3b42df._0x8a46e7,_0x658a82- -0x22e,_0x230e49);}if(!Array['isArray'](_0x4b3270[_0x44b7ba(0x32e,0x28b,_0x32e703._0x44584d,0x29b)])||_0x4b3270[_0x44b7ba(0x245,0x2e2,0x362,_0x32e703._0x1e18f7)][_0x44b7ba(_0x32e703._0xc8760b,0x613,_0x32e703._0x3d6f3e,0x671)]<0x1||_0x4b3270[_0x44b7ba(0x2f2,0x24a,0x362,0x268)][_0x5d1926(_0x32e703._0x2a1b4b,_0x32e703._0x4d4db4,0x374,_0x32e703._0x439188)]>0xa)throw new ToolExecutionError(_0x5d1926(_0x32e703._0x16bb71,0x30a,0x21d,_0x32e703._0x188ac5),{'error':_0x5d1926(_0x32e703._0x129e2f,0x2f2,_0x32e703._0x3f3884,_0x32e703._0x280e13)});for(let _0x2f41d7=0x0;_0x2f41d7<_0x4b3270[_0x44b7ba(_0x32e703._0x6a5ed,_0x32e703._0x571205,0x362,_0x32e703._0x3387bc)][_0x5d1926(0x36f,_0x32e703._0x4d4db4,0x19d,0x2d8)];_0x2f41d7+=0x1){const _0x5d611b=_0x4b3270['questions'][_0x2f41d7];if(!_0x5d611b[_0x44b7ba(0x71d,0x655,0x5b1,_0x32e703._0x15b531)]||typeof _0x5d611b[_0x5d1926(_0x32e703._0x802b9c,_0x32e703._0x4c71c5,0x28a,0x21f)]!==_0x44b7ba(0x583,0x619,0x57d,0x607))throw new ToolExecutionError('Question\x20'+(_0x2f41d7+0x1)+_0x44b7ba(0x314,0x4bb,0x36b,0x229));if(!_0x5d611b[_0x44b7ba(0x51e,0x36a,_0x32e703._0x3dbd6b,_0x32e703._0x346f0e)]||typeof _0x5d611b[_0x5d1926(0x16e,0x199,_0x32e703._0x2bcd29,0x219)]!==_0x5d1926(0x310,0x2ea,0x2cd,0x3ee))throw new ToolExecutionError(_0x44b7ba(_0x32e703._0x3e1a42,0x522,0x49f,_0x32e703._0x420570)+(_0x2f41d7+0x1)+_0x44b7ba(_0x32e703._0xe5a64b,_0x32e703._0x50c792,_0x32e703._0x55fc07,0x515));if(_0x5d611b[_0x5d1926(0x2ab,_0x32e703._0x34e117,0x39,_0x32e703._0x497a35)][_0x5d1926(0x37e,0x2f3,0x2a8,0x338)]>0x1e)throw new ToolExecutionError('Question\x20'+(_0x2f41d7+0x1)+_0x44b7ba(0x4b5,0x277,_0x32e703._0x5b33d8,0x2b2)+_0x5d611b[_0x44b7ba(0x365,0x39b,_0x32e703._0x2066d2,_0x32e703._0x10900b)][_0x5d1926(0x2d8,_0x32e703._0x25a7ee,_0x32e703._0x5dc792,_0x32e703._0x233072)]);if(!Array[_0x44b7ba(0x331,0x434,_0x32e703._0x3f19e4,_0x32e703._0x5a7ee8)](_0x5d611b[_0x44b7ba(_0x32e703._0x442e32,0x313,_0x32e703._0x3076e0,_0x32e703._0x2e8580)])||_0x5d611b['options']['length']<0x2||_0x5d611b[_0x44b7ba(0x431,0x292,0x3e7,_0x32e703._0x37a857)][_0x44b7ba(0x6ef,0x4f0,0x586,_0x32e703._0x55c911)]>0x4)throw new ToolExecutionError('Question\x20'+(_0x2f41d7+0x1)+_0x44b7ba(_0x32e703._0x5732b7,0x526,_0x32e703._0x461793,_0x32e703._0x1d3052));for(let _0x304dc7=0x0;_0x304dc7<_0x5d611b[_0x5d1926(_0x32e703._0x169f36,0x154,_0x32e703._0x10a5c3,0x1aa)][_0x44b7ba(_0x32e703._0x57b561,0x699,_0x32e703._0x3d6f3e,0x6e0)];_0x304dc7+=0x1){const _0xe61aa2=_0x5d611b[_0x5d1926(_0x32e703._0x52084c,_0x32e703._0x2900e0,0x258,_0x32e703._0x119e75)][_0x304dc7];if(!_0xe61aa2['label']||!_0xe61aa2[_0x5d1926(0x240,0x1f3,_0x32e703._0x4b5e4a,0x2aa)])throw new ToolExecutionError('Question\x20'+(_0x2f41d7+0x1)+_0x5d1926(0x1aa,_0x32e703._0xcc33d9,_0x32e703._0x25483e,0x338)+(_0x304dc7+0x1)+':\x20both\x20\x22label\x22\x20and\x20\x22description\x22\x20are\x20required');}if(typeof _0x5d611b[_0x5d1926(_0x32e703._0x5f3790,_0x32e703._0x15ffb4,0x3a3,0x1b6)]!==_0x44b7ba(_0x32e703._0x51e9b5,_0x32e703._0xea2473,_0x32e703._0x86c03f,0x493))throw new ToolExecutionError(_0x5d1926(_0x32e703._0x51d713,_0x32e703._0x3fb4d8,_0x32e703._0x47f64e,0x19c)+(_0x2f41d7+0x1)+_0x5d1926(0x1b9,_0x32e703._0x3cb80b,_0x32e703._0x2117c9,_0x32e703._0xc30144));}}function buildQuestions(_0x5942f4){const _0x51c3d1={_0x4ebf8a:0x75},_0x2acf1e={_0x1e85ae:0x9f,_0x486564:0x2e6},_0xd8878c={_0x625691:0x179};function _0xb47c5d(_0x3c2afe,_0xc1fa1b,_0x4d86e9,_0xe0e71){return _0x257320(_0x3c2afe-0x9d,_0xc1fa1b-0x8f,_0xe0e71-_0xd8878c._0x625691,_0x4d86e9);}function _0x29367e(_0x270f53,_0x487a74,_0x1b914c,_0x256b5a){return _0x3342ed(_0x270f53-_0x2acf1e._0x1e85ae,_0x256b5a,_0x487a74- -_0x2acf1e._0x486564,_0x256b5a-0x21);}return _0x5942f4[_0x29367e(-0x41,-_0x51c3d1._0x4ebf8a,-0x7d,0xb7)]['map']((_0x86a3b2,_0x191dc9)=>({'id':'q'+_0x191dc9,'question':_0x86a3b2[_0xb47c5d(0x65c,0x66b,0x6a4,0x6c5)],'topic':_0x86a3b2[_0x29367e(-0x63,0x55,0x31,0xde)],'options':_0x86a3b2[_0x29367e(0x184,0x10,-0x5d,0x12e)],'multiSelect':_0x86a3b2[_0x29367e(0x8f,0x1c5,0xea,0x99)]}));}function createResult(_0x5db83e,_0x3ed777,_0x5784c2){const _0xfed794={_0x376f53:0xda,_0x43ffc6:0x24};function _0x20ac94(_0x2de390,_0x1a3fca,_0x36ae29,_0x58e2b3){return _0x257320(_0x2de390-0x13f,_0x1a3fca-0x63,_0x36ae29- -0x386,_0x1a3fca);}const _0x1a2a70={'questionId':_0x5db83e,'questionCount':_0x3ed777,'answers':_0x5784c2};return createToolOutput('User\x20responses\x20received:\x20'+JSON[_0x20ac94(0xab,-_0xfed794._0x376f53,0x79,-_0xfed794._0x43ffc6)](_0x5784c2,null,0x2),_0x1a2a70);}function createAskUserTool(){const _0x280b4d={_0x35d385:0x123,_0x423760:0xeb,_0x3fcfd3:0x17,_0x487d26:0x10,_0x4011e5:0xb8,_0x30abb8:0x275,_0x2632a4:0x30f,_0x46d5d5:0xf3,_0x209a0c:0x19c,_0x402db9:0x43,_0xc9fe2b:0x135,_0x5d7e0b:0x1ac,_0x1bd414:0x31f,_0x2c5c2b:0x272,_0x5ac9e7:0x24a,_0x589d58:0xd5,_0x762cb4:0x3a,_0x4bbe44:0x199,_0xc1ee4b:0x1a1,_0x470ab8:0x80,_0x22b4ed:0x82,_0x2231d8:0x66,_0xd08027:0x4c},_0x20ed4a={_0x3776a1:0x280,_0x2752ca:0xf1,_0x49724a:0x126,_0xf36b63:0x4df,_0x566c67:0x585,_0x14f4be:0x36b,_0x551fb3:0x465,_0x242be6:0x382,_0x4dbe87:0x5a2,_0xeea97b:0x5fd,_0x547a89:0x52a,_0x2f5e50:0x3bf,_0x7d8b2:0x28b,_0x1b1e60:0x2d4,_0x48124f:0xe,_0x98bbd6:0x155,_0x365843:0x8e,_0x36b746:0x117,_0x55ecb8:0x2aa,_0x29c996:0x33b},_0x23bbd5={_0x47c198:0xd7,_0x4467ad:0x105},_0x1c19b2={_0x203716:0x35,_0xaf77b4:0x2c7},_0x328f83={_0x119039:0x1b,_0x123341:0x169,_0x2527d3:0x31c},_0x1fd69e={_0x879a2a:0x135,_0x4a9cd8:0x3e3};function _0x1a4506(_0x46a20d,_0x4544b9,_0x277d08,_0xc6c5b3){return _0x257320(_0x46a20d-0xb2,_0x4544b9-_0x1fd69e._0x879a2a,_0x277d08- -_0x1fd69e._0x4a9cd8,_0x4544b9);}function _0x33fa83(_0x49355f,_0x385c72,_0x2591ae,_0x1d143d){return _0x257320(_0x49355f-_0x328f83._0x119039,_0x385c72-_0x328f83._0x123341,_0x2591ae- -_0x328f83._0x2527d3,_0x385c72);}return defineTool({'name':_0x33fa83(0x1d1,_0x280b4d._0x35d385,0x63,_0x280b4d._0x423760),'description':_0x1a4506(-_0x280b4d._0x3fcfd3,-0x4a,0xeb,0x1b8),'inputSchema':{'type':_0x1a4506(_0x280b4d._0x487d26,-_0x280b4d._0x4011e5,-0xf3,-0x58),'properties':{'questions':{'type':_0x33fa83(0x13e,0x278,_0x280b4d._0x30abb8,_0x280b4d._0x2632a4),'items':{'type':_0x1a4506(_0x280b4d._0x3fcfd3,0x35,-_0x280b4d._0x46d5d5,-0x262),'properties':{'question':{'type':_0x1a4506(_0x280b4d._0x209a0c,_0x280b4d._0x402db9,_0x280b4d._0xc9fe2b,_0x280b4d._0x5d7e0b)},'topic':{'type':'string'},'options':{'type':_0x33fa83(_0x280b4d._0x1bd414,0x1d3,0x275,0x2e0),'items':{'type':'object','properties':{'label':{'type':_0x1a4506(0x17,0x37,0x135,_0x280b4d._0x2c5c2b)},'description':{'type':_0x1a4506(_0x280b4d._0x5ac9e7,0x16,0x135,0x24a)}},'required':['label',_0x33fa83(0x186,_0x280b4d._0x589d58,0x105,0x6c)]}},'multiSelect':{'type':_0x1a4506(-_0x280b4d._0x762cb4,-_0x280b4d._0x4bbe44,-0x7e,-_0x280b4d._0xc1ee4b)}},'required':['question',_0x33fa83(0x2d,-_0x280b4d._0x470ab8,0xab,-0x3f),_0x33fa83(-_0x280b4d._0x22b4ed,0x2e,_0x280b4d._0x2231d8,0x6),'multiSelect']}},'answers':{'type':_0x33fa83(-0x4b,-0xce,-0x2c,-_0x280b4d._0xd08027),'properties':{}}},'required':[_0x33fa83(0x103,-0x17b,-0x1f,-0x177)]},async *'execute'(_0xdc1bcd,_0x21762e){const _0x26f1ca=_0xdc1bcd;validateInput(_0x26f1ca);const _0x9cee04=_0x21762e[_0x24c8b1(0x27d,_0x20ed4a._0x3776a1,_0x20ed4a._0x2752ca,_0x20ed4a._0x49724a)]??createQuestionId();function _0x5ee48d(_0x4ae9da,_0x1b7a87,_0x453356,_0x2134e4){return _0x33fa83(_0x4ae9da-_0x1c19b2._0x203716,_0x1b7a87,_0x453356-_0x1c19b2._0xaf77b4,_0x2134e4-0x11e);}if(_0x26f1ca[_0x5ee48d(0x5a4,_0x20ed4a._0xf36b63,0x465,_0x20ed4a._0x566c67)]&&Object[_0x24c8b1(0x23f,0x15c,-0x45,0x12a)](_0x26f1ca[_0x5ee48d(0x346,_0x20ed4a._0x14f4be,_0x20ed4a._0x551fb3,0x4b0)])[_0x5ee48d(_0x20ed4a._0x242be6,0x627,0x4cc,_0x20ed4a._0x4dbe87)]>0x0)return createResult(_0x9cee04,_0x26f1ca['questions'][_0x5ee48d(_0x20ed4a._0xeea97b,_0x20ed4a._0x547a89,0x4cc,_0x20ed4a._0x2f5e50)],_0x26f1ca[_0x24c8b1(0x35e,_0x20ed4a._0x7d8b2,0x43e,_0x20ed4a._0x1b1e60)]);if(!_0x21762e['askUser'])throw new ToolExecutionError('Context\x20does\x20not\x20support\x20user\x20questions');const _0x463491=buildQuestions(_0x26f1ca),_0x55c945=await _0x21762e['askUser']({'questionId':_0x9cee04,'questions':_0x463491});function _0x24c8b1(_0x1a8894,_0x3e8f63,_0x315412,_0x5400e1){return _0x1a4506(_0x1a8894-_0x23bbd5._0x47c198,_0x3e8f63,_0x5400e1-0x1fd,_0x5400e1-_0x23bbd5._0x4467ad);}yield createResult(_0x9cee04,_0x26f1ca[_0x24c8b1(_0x20ed4a._0x48124f,_0x20ed4a._0x98bbd6,_0x20ed4a._0x365843,_0x20ed4a._0x36b746)][_0x24c8b1(_0x20ed4a._0x55ecb8,0x1e5,0x45e,_0x20ed4a._0x29c996)],_0x55c945);}});}import{randomUUID}from'crypto';import{StringDecoder}from'string_decoder';import{spawn as _0x2eef70}from'child_process';import{stripVTControlCharacters}from'util';function isErrnoException(_0x187d3d){return _0x187d3d instanceof Error;}function resolveCarriageReturns(_0x37463a){const _0x336290={_0x30bf00:0x1bf,_0x1959ee:0x1de,_0x4139b6:0xd8},_0x3f097d={_0x2c6b9b:0x4e1,_0x26ac50:0x3ff},_0x9f05df={_0x2d1cf8:0x658,_0x512209:0xb8},_0x459f67={_0x336bcb:0x146,_0x45d4cf:0x115,_0x3bf573:0x39c},_0x47ed65={_0x4a33b8:0x166};function _0x63da42(_0x8b9058,_0x21ff99,_0x4c18ae,_0x526317){return _0x257320(_0x8b9058-0x1a0,_0x21ff99-_0x47ed65._0x4a33b8,_0x8b9058- -0x4ee,_0x21ff99);}function _0x507e6a(_0x59dae5,_0x453a97,_0xdd5702,_0x2e4fcd){return _0x257320(_0x59dae5-_0x459f67._0x336bcb,_0x453a97-_0x459f67._0x45d4cf,_0x59dae5- -_0x459f67._0x3bf573,_0xdd5702);}return _0x37463a[_0x507e6a(0x1cd,_0x336290._0x30bf00,_0x336290._0x1959ee,0x129)]('\x0a')[_0x63da42(-0x1d1,-0x23d,-_0x336290._0x4139b6,-0xd2)](_0x1e0d68=>{const _0x1ac447={_0x1a84af:0x14};function _0x398b1b(_0x33bf22,_0x5c8a70,_0x5595b1,_0x497e7d){return _0x507e6a(_0x5c8a70-0x314,_0x5c8a70-0x195,_0x5595b1,_0x497e7d-_0x1ac447._0x1a84af);}if(!_0x1e0d68['includes']('\x0d'))return _0x1e0d68;const _0x41cc1c=_0x1e0d68[_0x398b1b(0x605,_0x3f097d._0x2c6b9b,_0x3f097d._0x26ac50,0x56f)]('\x0d');function _0x2a951e(_0xe1a5f0,_0xc9b61f,_0x2db5b5,_0x53ac46){return _0x63da42(_0xe1a5f0-_0x9f05df._0x2d1cf8,_0x53ac46,_0x2db5b5-_0x9f05df._0x512209,_0x53ac46-0x112);}return _0x41cc1c[_0x41cc1c[_0x398b1b(0x3b3,0x499,0x41b,0x37b)]-0x1]??'';})[_0x63da42(-0x2c,0xca,-0xb0,-0x2a)]('\x0a');}function resolveBackspaces(_0x5f0ebc){const _0xb3003c={_0x1924b0:0x651,_0x5e979f:0x539,_0x160651:0x3a4,_0x217adb:0x587},_0x3d6713={_0x2ec50f:0xe0},_0x294ddf={_0x2b0050:0x186,_0x17712b:0x1ef},_0x2310fb=[];for(const _0x572c78 of Array[_0x2c954c(_0xb3003c._0x1924b0,0x491,0x683,_0xb3003c._0x5e979f)](_0x5f0ebc)){_0x572c78==='\x08'?_0x2310fb['pop']():_0x2310fb[_0x2c954c(_0xb3003c._0x160651,0x42d,0x5a5,0x430)](_0x572c78);}function _0x5de263(_0x2c6b7d,_0x49a410,_0x26f509,_0x52dd84){return _0x257320(_0x2c6b7d-_0x294ddf._0x2b0050,_0x49a410-_0x294ddf._0x17712b,_0x2c6b7d- -0x37c,_0x26f509);}function _0x2c954c(_0x3118d1,_0x3a189f,_0x445311,_0x491cc7){return _0x3342ed(_0x3118d1-_0x3d6713._0x2ec50f,_0x3118d1,_0x491cc7-0x151,_0x491cc7-0x43);}return _0x2310fb[_0x2c954c(0x4b7,0x526,0x63d,_0xb3003c._0x217adb)]('');}function stripAnsiAndControls(_0x5d0352){const _0x41ed9b={_0x10f9c9:0x56,_0xd7f042:0x40,_0x17692b:0x1d1,_0x44aca6:0x2fc,_0x5812ca:0x34c,_0xb3101:0x10,_0x52d52a:0x132,_0x2658ec:0x2e,_0x200d4a:0x1b2,_0x4bada2:0x3d0,_0x198d35:0x3ed,_0xbd20d7:0x379,_0x23ee99:0x3d0,_0x193915:0x4e5,_0x5b87ca:0x95},_0x4563a2={_0x4e269a:0x165,_0x588bb:0x134},_0x271306={_0x3eb940:0x120,_0x259418:0x112,_0x266798:0x3bf};_0x5d0352=resolveCarriageReturns(_0x5d0352),_0x5d0352=resolveBackspaces(_0x5d0352),_0x5d0352=stripVTControlCharacters(_0x5d0352);const _0x4b7597='\x1b',_0x3795ea='\x07';_0x5d0352=_0x5d0352['replace'](new RegExp(_0x28093d(-0x8,-_0x41ed9b._0x10f9c9,0x134,_0x41ed9b._0xd7f042)+_0x3795ea+'\x5cn]*?'+_0x3795ea,'g'),''),_0x5d0352=_0x5d0352[_0x28093d(_0x41ed9b._0x17692b,_0x41ed9b._0x44aca6,0x182,0x316)](new RegExp(_0x28093d(-0x4e,0xd2,-0x178,-0x182)+_0x4b7597+'\x5c\x5c','g'),''),_0x5d0352=_0x5d0352[_0x450aab(0x4cc,0x3d0,_0x41ed9b._0x5812ca,0x4e3)](new RegExp(_0x3795ea,'g'),''),_0x5d0352=_0x5d0352['replace'](new RegExp(_0x4b7597+_0x28093d(_0x41ed9b._0xb3101,-0x53,-_0x41ed9b._0x52d52a,_0x41ed9b._0x2658ec)+_0x4b7597+'\x5c\x5c','g'),''),_0x5d0352=_0x5d0352[_0x28093d(0x1d1,0x20f,0x17b,0x27b)](new RegExp(_0x4b7597+_0x28093d(0x164,0x25a,_0x41ed9b._0x200d4a,0x16b),'g'),''),_0x5d0352=_0x5d0352[_0x450aab(0x3b7,_0x41ed9b._0x4bada2,0x283,_0x41ed9b._0x198d35)](/[\u0080-\u009F]/g,''),_0x5d0352=_0x5d0352[_0x450aab(_0x41ed9b._0xbd20d7,_0x41ed9b._0x23ee99,0x543,_0x41ed9b._0x193915)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x5d0352=_0x5d0352[_0x28093d(0x1d1,_0x41ed9b._0x5b87ca,0x323,0x263)](/[\u23CE\u2424]/g,'');function _0x28093d(_0x5048f0,_0x58b164,_0x36740e,_0x3f2bc1){return _0x257320(_0x5048f0-_0x271306._0x3eb940,_0x58b164-_0x271306._0x259418,_0x5048f0- -_0x271306._0x266798,_0x58b164);}function _0x450aab(_0x29a8cd,_0x4e1c69,_0x3505ad,_0x47b48a){return _0x3342ed(_0x29a8cd-_0x4563a2._0x4e269a,_0x47b48a,_0x4e1c69- -_0x4563a2._0x588bb,_0x47b48a-0x193);}return _0x5d0352;}function killProcessGroup(_0x266fb8,_0x5e45c0,_0x92be1f=_0x257320(0x2c3,0x3b3,0x2f4,0x35f)){const _0x39e438={_0x136d2f:0xb7,_0x4581bc:0xec,_0x385d08:0x178,_0x28abdc:0xb6,_0x4d6ce8:0xa8,_0x3bc642:0x344,_0x5eb765:0x1db,_0x2b0467:0x30a,_0x40bed7:0x64},_0x5c02f3={_0x560608:0x332,_0x182781:0x1b1},_0xeb444f={_0x43e487:0xb,_0x2d857f:0x1a8,_0x5ad2ef:0x260};if(!_0x266fb8[_0x48c795(_0x39e438._0x136d2f,0x1ac,_0x39e438._0x4581bc,0x314)])return;function _0x23d226(_0x1fe61c,_0x27cc14,_0x1c4b13,_0x473aaf){return _0x257320(_0x1fe61c-_0xeb444f._0x43e487,_0x27cc14-_0xeb444f._0x2d857f,_0x473aaf- -_0xeb444f._0x5ad2ef,_0x1fe61c);}if(_0x5e45c0)try{_0x2eef70('taskkill',[_0x48c795(0x2,-0x3d,-0xc6,0x10e),_0x266fb8['pid']['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x266fb8[_0x23d226(_0x39e438._0x385d08,0x208,0x1af,_0x39e438._0x28abdc)](_0x92be1f);return;}function _0x48c795(_0x2b9f31,_0x59e7ee,_0x2cf18a,_0x3a0cc5){return _0x3342ed(_0x2b9f31-0xff,_0x2b9f31,_0x59e7ee- -_0x5c02f3._0x560608,_0x3a0cc5-_0x5c02f3._0x182781);}try{process[_0x48c795(-0xce,-_0x39e438._0x4d6ce8,-0xb0,0x67)](-_0x266fb8[_0x23d226(0x3bb,_0x39e438._0x3bc642,_0x39e438._0x5eb765,_0x39e438._0x2b0467)],_0x92be1f);}catch{_0x266fb8[_0x48c795(-_0x39e438._0x40bed7,-_0x39e438._0x4d6ce8,-0x87,-0x5f)](_0x92be1f);}}var BackgroundProcessRegistry=class{[_0x3342ed(0x49e,0x3c6,0x356,0x2fb)]=new Map();[_0x3342ed(0x55c,0x505,0x4ef,0x5b5)];['maxEntries'];[_0x257320(0x414,0x49a,0x559,0x550)];[_0x257320(0x483,0x3b1,0x3d2,0x480)]=0x0;constructor(_0x1b0aa9={}){const _0x3a4881={_0x34941d:0x5ca,_0x18046a:0x7f0,_0x4af98a:0x402,_0x20cb6a:0x47c,_0x8c101d:0x482,_0xdc427d:0x5b1,_0x3be368:0x7cc,_0x1a2efd:0x6ca,_0x2acde2:0x59d},_0x3d9e75={_0x25d823:0xcb,_0x2e3e4b:0x171};this[_0x33a23d(_0x3a4881._0x34941d,0x681,_0x3a4881._0x18046a,0x6e2)]=_0x1b0aa9['maxConcurrent']??0xa;function _0x26f43c(_0x253ec6,_0x15d00d,_0x222281,_0x347356){return _0x257320(_0x253ec6-0xe2,_0x15d00d-_0x3d9e75._0x25d823,_0x15d00d-_0x3d9e75._0x2e3e4b,_0x347356);}function _0x33a23d(_0x3c4fe2,_0x5af944,_0x516ea7,_0x23f938){return _0x3342ed(_0x3c4fe2-0x165,_0x516ea7,_0x5af944-0x192,_0x23f938-0x8b);}this[_0x33a23d(0x589,0x482,0x333,_0x3a4881._0x4af98a)]=_0x1b0aa9[_0x33a23d(_0x3a4881._0x20cb6a,_0x3a4881._0x8c101d,0x490,_0x3a4881._0xdc427d)]??0x40,this['capChars']=_0x1b0aa9[_0x26f43c(_0x3a4881._0x3be368,_0x3a4881._0x1a2efd,0x71b,_0x3a4881._0x2acde2)]??0x100000;}[_0x257320(0x4c6,0x62f,0x4df,0x616)](_0x3cee31){const _0x28ba1b={_0x410c51:0x1db,_0x1ecfef:0x19e,_0x5122f0:0x9a,_0x5b70c7:0x95,_0x492015:0xa,_0x8a389b:0x16a,_0x5da9a7:0x26,_0x2cfbc7:0x19,_0x264ddf:0xca,_0x3696b4:0x230,_0x347297:0x153,_0x5484a9:0x124,_0x2832a3:0x85,_0x318f78:0x2d0,_0x470a78:0x56,_0xcbcc4:0xc8,_0x464b48:0x261,_0x4fe64a:0xa7,_0x226eea:0xd0,_0x104069:0x363,_0x223a0c:0x200,_0x3b7f3d:0x188,_0x5dc6fd:0x151,_0x6ee46a:0x2f,_0x4f88d0:0xf8,_0x54812b:0x155,_0x2c86e1:0xe,_0x403061:0x251,_0x329b04:0xdc,_0xb01ce1:0x2b,_0x857abe:0x50,_0x11b61a:0x309,_0x3dc083:0x17b,_0x2bd049:0x358,_0x4e5f05:0x205,_0x346da8:0xce,_0x3dcade:0x2ac,_0x55945c:0x103,_0x4cf7bc:0xc6,_0x3617a9:0x1ca,_0x316772:0x8e,_0x3a0434:0x156,_0x187cdb:0x57,_0x277377:0x8b,_0x375ada:0x317,_0x4d9a3a:0x126,_0x1b2468:0x69,_0x1060ad:0x122},_0x44ed32={_0x49d461:0x141,_0x33e873:0x18,_0x43136c:0x8e,_0x16b329:0x71,_0x2d1908:0x125,_0x3e2bb9:0xca,_0x384d50:0xc5,_0x331abd:0x77e},_0x33a243={_0x4eea47:0x13e,_0x49e86e:0x7a,_0x559f8a:0x7a},_0x578fb8={_0x2e5454:0x156},_0x3e77f7={_0x5a3f6e:0x5ad,_0x42b4e1:0x476,_0x25e888:0x49a,_0x3cf8c5:0x61d,_0x3690f9:0x49d,_0x2f10a0:0x4d9,_0x6a96ad:0x57a,_0x3663af:0x4c0,_0x47540e:0x544,_0x3a3493:0x2ce,_0x35976d:0x2df,_0x20d7e1:0x4b9,_0x4621cd:0x43f,_0x31bd19:0x577,_0x123844:0x2ee,_0x235b20:0x6f1,_0x3596d0:0x5fb,_0xb0b91:0x427},_0x241b52={_0x2f50c8:0x82,_0xf8a883:0x19d},_0x4a43bd={_0x4425c4:0x75},_0x5f5a07={_0x26cbd2:0xa9,_0x13495b:0x61},_0x3408a8={_0x11fe81:0x1cd,_0x643454:0x17},_0x55e3c7={_0xa13167:0x244},_0x23f4af=[...this[_0x384056(_0x28ba1b._0x410c51,_0x28ba1b._0x1ecfef,0x107,0xb5)][_0x22339a(-_0x28ba1b._0x5122f0,-_0x28ba1b._0x5b70c7,_0x28ba1b._0x492015,-0x7a)]()][_0x22339a(-0x139,-_0x28ba1b._0x8a389b,-0x1c5,-0xe8)](_0x2c1cf3=>_0x2c1cf3['status']===_0x22339a(0x19c,0xe3,0x2b,0xb6))[_0x22339a(-_0x28ba1b._0x5da9a7,_0x28ba1b._0x2cfbc7,0xcf,_0x28ba1b._0x264ddf)];if(_0x23f4af>=this[_0x384056(0x2fc,0x337,0x48e,_0x28ba1b._0x3696b4)])throw new ToolExecutionError('Too\x20many\x20background\x20processes\x20running\x20('+this[_0x22339a(_0x28ba1b._0x347297,0x133,0x20d,_0x28ba1b._0x5484a9)]+').\x20Kill\x20one\x20with\x20KillShell\x20before\x20starting\x20another.',{'running':this['maxConcurrent']});const _0x4bc452='bg-'+ ++this[_0x22339a(-0x160,-0x1c1,-0x1d8,-_0x28ba1b._0x2832a3)]+'-'+randomUUID()[_0x384056(0x167,_0x28ba1b._0x318f78,0x339,0x3f4)](0x0,0x8),_0x4b633b={'shellId':_0x4bc452,'command':_0x3cee31[_0x22339a(-_0x28ba1b._0x470a78,-0x2a,0x81,-_0x28ba1b._0xcbcc4)],'cwd':_0x3cee31['cwd'],'pid':_0x3cee31[_0x384056(_0x28ba1b._0x464b48,0x205,_0x28ba1b._0x4fe64a,_0x28ba1b._0x226eea)][_0x384056(0x2dd,0x326,0x244,_0x28ba1b._0x104069)],'status':_0x384056(0x3c7,0x2c9,0x31f,0x373),'exitCode':null,'signal':null,'startedAt':Date[_0x22339a(-0x235,-0x220,-_0x28ba1b._0x223a0c,-_0x28ba1b._0x3b7f3d)](),'child':_0x3cee31[_0x384056(0x361,0x205,_0x28ba1b._0x5dc6fd,0x31e)],'buffer':[],'bufferChars':0x0,'totalProduced':0x0,'totalDropped':0x0,'readCursor':0x0,'stdoutDecoder':new StringDecoder('utf8'),'stderrDecoder':new StringDecoder(_0x22339a(_0x28ba1b._0x6ee46a,0x13d,-0x6a,0xed)),'stripAnsi':_0x3cee31[_0x384056(0x2f0,0x256,_0x28ba1b._0x4f88d0,0x1bd)],'killRequested':![],'processExited':![]};_0x3cee31[_0x22339a(-0x107,-0x9f,-_0x28ba1b._0x54812b,-_0x28ba1b._0x2c86e1)][_0x384056(_0x28ba1b._0x403061,_0x28ba1b._0x329b04,-_0x28ba1b._0xb01ce1,-_0x28ba1b._0x857abe)]?.['on'](_0x22339a(0xa6,0x144,0x92,0x73),_0x2ce2ff=>this[_0x22339a(0x135,-0xb8,-0x160,-0x2d)](_0x4b633b,_0x4b633b[_0x22339a(0x35,-0xf,0x163,0x111)][_0x22339a(0x108,0x113,0x1cb,0x9f)](_0x2ce2ff)));function _0x22339a(_0x4fe28b,_0x24422c,_0x3de2a1,_0x28b6e4){return _0x257320(_0x4fe28b-0x184,_0x24422c-0x145,_0x28b6e4- -0x457,_0x3de2a1);}_0x3cee31['child'][_0x384056(0x272,0x20a,0x1c0,_0x28ba1b._0x11b61a)]?.['on'](_0x22339a(-0x26,_0x28ba1b._0x3dc083,0xe5,0x73),_0x52210c=>this[_0x22339a(-0x30,0x137,0x2a,-0x2d)](_0x4b633b,_0x4b633b[_0x22339a(0xa0,-0x6f,-0xcd,0x7f)]['write'](_0x52210c)));function _0x384056(_0x5c5577,_0x52f7b0,_0x1741d4,_0x1a5b78){return _0x257320(_0x5c5577-0x64,_0x52f7b0-0x1b2,_0x52f7b0- -_0x55e3c7._0xa13167,_0x5c5577);}return _0x3cee31[_0x384056(_0x28ba1b._0x2bd049,_0x28ba1b._0x4e5f05,_0x28ba1b._0x346da8,_0x28ba1b._0x3dcade)][_0x22339a(-0x111,-0x1c0,-0x1f3,-0x8b)](_0x22339a(_0x28ba1b._0x55945c,_0x28ba1b._0x4cf7bc,0x14e,_0x28ba1b._0x492015),()=>{function _0x2403e5(_0xd1f092,_0x5f1f8c,_0x2d5cf8,_0x46c33d){return _0x22339a(_0xd1f092-0x6,_0x5f1f8c-_0x3408a8._0x11fe81,_0xd1f092,_0x2d5cf8- -_0x3408a8._0x643454);}_0x4b633b[_0x2403e5(-0x179,-0x208,-_0x5f5a07._0x26cbd2,-_0x5f5a07._0x13495b)]=!![];}),_0x3cee31[_0x384056(0x2bc,0x205,_0x28ba1b._0x3617a9,_0x28ba1b._0x316772)][_0x22339a(-_0x28ba1b._0x3a0434,-0x136,-_0x28ba1b._0x187cdb,-_0x28ba1b._0x277377)]('close',(_0x3e3fd3,_0x3951c9)=>{this[_0x38bef8(0x4a3,_0x3e77f7._0x5a3f6e,_0x3e77f7._0x42b4e1,_0x3e77f7._0x25e888)](_0x4b633b,_0x4b633b[_0x38bef8(0x556,_0x3e77f7._0x3cf8c5,0x6b5,0x5d8)][_0x1bc140(_0x3e77f7._0x3690f9,_0x3e77f7._0x2f10a0,_0x3e77f7._0x6a96ad,0x555)]()),this['append'](_0x4b633b,_0x4b633b['stderrDecoder'][_0x38bef8(_0x3e77f7._0x3663af,_0x3e77f7._0x47540e,0x3ee,0x49d)]()),_0x4b633b[_0x38bef8(_0x3e77f7._0x3a3493,0x2fc,_0x3e77f7._0x35976d,0x400)]=_0x4b633b[_0x1bc140(_0x3e77f7._0x20d7e1,0x524,_0x3e77f7._0x4621cd,_0x3e77f7._0x31bd19)]?_0x38bef8(0x3e6,_0x3e77f7._0x123844,0x5c3,0x460):_0x38bef8(_0x3e77f7._0x235b20,0x692,0x762,_0x3e77f7._0x3596d0);function _0x1bc140(_0x317ec4,_0x491978,_0x53bf71,_0x26d3a6){return _0x22339a(_0x317ec4-_0x4a43bd._0x4425c4,_0x491978-0x21,_0x26d3a6,_0x491978-0x503);}_0x4b633b[_0x38bef8(0x40c,0x4cb,0x425,0x4e6)]=_0x3e3fd3,_0x4b633b[_0x1bc140(0x5bf,0x4e3,0x3b2,_0x3e77f7._0xb0b91)]=_0x3951c9;function _0x38bef8(_0x57380a,_0xe0a377,_0x28828c,_0x5287ee){return _0x22339a(_0x57380a-_0x241b52._0x2f50c8,_0xe0a377-_0x241b52._0xf8a883,_0xe0a377,_0x5287ee-0x4c7);}_0x4b633b['child']=null;}),_0x3cee31[_0x384056(0x16c,_0x28ba1b._0x4e5f05,_0x28ba1b._0x375ada,_0x28ba1b._0x4d9a3a)]['once']('error',_0x31a409=>{function _0x2318e6(_0x133359,_0x5c26a1,_0x589a3a,_0x543c20){return _0x384056(_0x543c20,_0x5c26a1-0x4a1,_0x589a3a-0x1f0,_0x543c20-_0x578fb8._0x2e5454);}_0x4b633b[_0x33b5ca(-0x3b,-_0x44ed32._0x49d461,_0x44ed32._0x33e873,0x1b)]=_0x33b5ca(_0x44ed32._0x43136c,-_0x44ed32._0x16b329,-_0x44ed32._0x2d1908,-0x3c);function _0x33b5ca(_0x3528eb,_0x1d1cef,_0x513836,_0x5ac173){return _0x22339a(_0x3528eb-_0x33a243._0x4eea47,_0x1d1cef-_0x33a243._0x49e86e,_0x5ac173,_0x1d1cef- -_0x33a243._0x559f8a);}_0x4b633b['error']=_0x31a409[_0x33b5ca(-0x9a,0x94,-_0x44ed32._0x3e2bb9,-_0x44ed32._0x384d50)],_0x4b633b[_0x2318e6(0x639,0x6a6,0x667,_0x44ed32._0x331abd)]=null;}),this[_0x384056(0x152,0x19e,0x2c,0x196)][_0x384056(-_0x28ba1b._0x4f88d0,_0x28ba1b._0x1b2468,0xc3,_0x28ba1b._0x1060ad)](_0x4bc452,_0x4b633b),this['evictIfNeeded'](),_0x4b633b;}[_0x257320(0x329,0x3cc,0x46a,0x507)](_0x56fce2,_0x4817bb){const _0x454725={_0x23daca:0x59c,_0x170407:0x4f4,_0xf587de:0x51a,_0x2bb798:0x609,_0x5033a6:0x4d4,_0x4d8941:0x600,_0x1099a9:0x6d3,_0x497472:0x461,_0x535b62:0x3dd,_0x5c520b:0x6a4,_0x170201:0x7af,_0x12ec2f:0xfc,_0x1134d0:0x11e,_0x263168:0x7ea,_0x3eb6c2:0x5f4,_0x5d6e25:0x590,_0x37e5bc:0x467,_0x175e23:0x5b5,_0x4a1247:0x838,_0x3f2e43:0x92,_0x40e8a5:0x871,_0x51396f:0x77b,_0x22f285:0x5f7,_0x47c53c:0x62e,_0x47f77e:0x605,_0x86bc46:0x69b,_0x255962:0x155,_0x392be9:0x3e,_0x568f99:0xcb,_0x3636e7:0x1e4,_0x554edd:0x66e,_0x183e49:0x647,_0x4ecce5:0x71b,_0x4b5911:0x512,_0x5aae90:0x5d8},_0x509dfc={_0x1d0031:0x110},_0x5bef88={_0xb5f90d:0xc3,_0x21e43:0x200},_0x408160=this[_0x2ddc8b(0x578,_0x454725._0x23daca,0x5e2,_0x454725._0x170407)][_0x2ddc8b(_0x454725._0xf587de,0x6f6,_0x454725._0x2bb798,_0x454725._0x5033a6)](_0x56fce2);if(!_0x408160)throw new ToolExecutionError(_0x2ddc8b(0x719,_0x454725._0x4d8941,_0x454725._0x1099a9,0x824)+_0x56fce2,{'shellId':_0x56fce2});function _0x2ddc8b(_0x53f06e,_0x498a8e,_0x2255d1,_0x329bae){return _0x257320(_0x53f06e-0x74,_0x498a8e-_0x5bef88._0xb5f90d,_0x2255d1-_0x5bef88._0x21e43,_0x498a8e);}const _0xd96731=_0x408160[_0x2ddc8b(_0x454725._0x497472,_0x454725._0x535b62,0x4b4,0x43c)][_0x2ddc8b(_0x454725._0x5c520b,_0x454725._0x170201,0x6c2,0x73b)](''),_0x175a91=Math[_0x1c05d1(-0x259,-0x146,-0x197,-0x77)](_0x408160['readCursor'],_0x408160[_0x1c05d1(0x2a3,0x12c,0x72,0xe9)]),_0x4e35b6=Math['max'](0x0,_0x408160['totalDropped']-_0x408160[_0x1c05d1(_0x454725._0x12ec2f,0x155,_0x454725._0x1134d0,0x90)]);function _0x1c05d1(_0x2d4bff,_0x155e76,_0x2fa0d4,_0xfc45e1){return _0x3342ed(_0x2d4bff-_0x509dfc._0x1d0031,_0xfc45e1,_0x155e76- -0x39e,_0xfc45e1-0x11c);}const _0x4c9ff3=_0xd96731[_0x2ddc8b(0x5b6,0x7c4,0x714,_0x454725._0x263168)](_0x175a91-_0x408160['totalDropped']),_0x4d9626=_0x408160[_0x2ddc8b(_0x454725._0x3eb6c2,0x679,_0x454725._0x5d6e25,_0x454725._0x37e5bc)]!==_0x2ddc8b(0x6f1,_0x454725._0x175e23,0x70d,_0x454725._0x4a1247);let _0x326d91;const _0x2295a9=_0x4817bb?.['regex'];if(!_0x2295a9)_0x326d91=_0x4c9ff3,_0x408160[_0x2ddc8b(0x6d8,0x764,0x77f,0x733)]=_0x408160[_0x1c05d1(-0xa0,_0x454725._0x3f2e43,0x1d6,-0x86)];else{let _0xccf3f3;try{_0xccf3f3=new RegExp(_0x2295a9);}catch(_0x1e5c10){throw new ToolExecutionError('Invalid\x20regex:\x20'+_0x1e5c10[_0x2ddc8b(_0x454725._0x40e8a5,0x7bf,0x765,_0x454725._0x51396f)],{'shellId':_0x56fce2,'regex':_0x2295a9});}let _0xc31e1c=_0x4c9ff3;if(!_0x4d9626){const _0xa6010d=_0x4c9ff3[_0x2ddc8b(0x34b,0x42b,0x4ba,0x50f)]('\x0a');_0xc31e1c=_0xa6010d>=0x0?_0x4c9ff3['slice'](0x0,_0xa6010d+0x1):'';}_0x326d91=_0xc31e1c[_0x2ddc8b(_0x454725._0x22f285,0x6ec,0x769,0x72f)]('\x0a')[_0x2ddc8b(_0x454725._0x47c53c,_0x454725._0x47f77e,0x56f,_0x454725._0x86bc46)](_0x114081=>_0xccf3f3[_0x2ddc8b(0x522,0x70e,0x680,0x571)](_0x114081))['join']('\x0a'),_0x408160[_0x1c05d1(0x1a4,_0x454725._0x255962,0x5,0x23b)]=_0x175a91+_0xc31e1c['length'];}const _0x5b62b6=(_0x4e35b6>0x0?_0x1c05d1(_0x454725._0x392be9,-0x71,_0x454725._0x568f99,-_0x454725._0x3636e7)+_0x4e35b6+_0x2ddc8b(0x4e3,_0x454725._0x554edd,_0x454725._0x183e49,_0x454725._0x4ecce5):'')+_0x326d91;return{'output':_0x5b62b6,'status':_0x408160[_0x2ddc8b(0x44f,_0x454725._0x4b5911,0x590,_0x454725._0x5aae90)],'exitCode':_0x408160['exitCode'],'signal':_0x408160['signal'],'truncated':_0x4e35b6>0x0};}['list'](){const _0x4bdd97={_0x14726d:0x4c7,_0x571888:0x597,_0x4a4830:0x63b},_0x5ca897={_0x325a67:0x171,_0x111015:0x1c4},_0x39ec1d={_0x4d765a:0x5e,_0xa059a6:0x1ae,_0x2f1123:0x25e};function _0x4a3ca1(_0x21279e,_0x1bd6c8,_0x5a1971,_0x44881e){return _0x257320(_0x21279e-_0x39ec1d._0x4d765a,_0x1bd6c8-_0x39ec1d._0xa059a6,_0x44881e-_0x39ec1d._0x2f1123,_0x5a1971);}function _0x142be5(_0x1f8af9,_0xd75cd1,_0x280cae,_0x2de6b7){return _0x3342ed(_0x1f8af9-0x88,_0x1f8af9,_0x2de6b7-_0x5ca897._0x325a67,_0x2de6b7-_0x5ca897._0x111015);}return[...this[_0x142be5(0x49f,0x595,0x62b,_0x4bdd97._0x14726d)][_0x4a3ca1(0x724,_0x4bdd97._0x571888,0x76e,_0x4bdd97._0x4a4830)]()];}[_0x257320(0x22c,0x2cb,0x316,0x280)](_0x1329ab){const _0x29ab5d={_0x138924:0x3ea,_0xf988af:0x594,_0x356ff5:0x2cb,_0x3f2cac:0x2b4,_0x87e70:0x226,_0x144ab0:0x394,_0x1dc33b:0x38f,_0x5e7402:0x4d4,_0x5a36f1:0x351,_0x1eb84e:0x450,_0x40795f:0x259,_0x21321d:0x274,_0x53b029:0x2f4,_0x1a5f13:0x22a,_0x2d7db4:0x250,_0x119eb1:0x2bd,_0x265c9d:0x401,_0x28e772:0x2fd,_0x3f53b8:0x41d,_0xb8e07b:0x4e5,_0x116692:0x41b,_0x64073b:0x257,_0x3b64e3:0x25e,_0x537c41:0x59d,_0x35d33d:0x478,_0x5e2021:0x470,_0x3b572e:0x4c2},_0x16d291={_0x3b1bda:0x17b,_0x334bdc:0x13b},_0xeae19={_0x59bef4:0x193,_0x5ed543:0x1de};function _0x36072c(_0x411eef,_0x3c02ce,_0x248f05,_0x4c66cb){return _0x3342ed(_0x411eef-0x1c7,_0x4c66cb,_0x3c02ce- -_0xeae19._0x59bef4,_0x4c66cb-_0xeae19._0x5ed543);}function _0x5aba6d(_0x983dc4,_0x3f0f05,_0x21a806,_0x311f4b){return _0x257320(_0x983dc4-_0x16d291._0x3b1bda,_0x3f0f05-_0x16d291._0x334bdc,_0x311f4b-0x8b,_0x983dc4);}const _0x3f729a=this[_0x5aba6d(0x335,_0x29ab5d._0x138924,_0x29ab5d._0xf988af,0x46d)]['get'](_0x1329ab);if(!_0x3f729a)throw new ToolExecutionError(_0x36072c(_0x29ab5d._0x356ff5,_0x29ab5d._0x3f2cac,0x30c,_0x29ab5d._0x87e70)+_0x1329ab,{'shellId':_0x1329ab});if(_0x3f729a['status']==='running'&&_0x3f729a[_0x5aba6d(_0x29ab5d._0x144ab0,_0x29ab5d._0x1dc33b,0x388,_0x29ab5d._0x5e7402)]&&!_0x3f729a[_0x5aba6d(0x53e,_0x29ab5d._0x5a36f1,0x5a9,_0x29ab5d._0x1eb84e)]){_0x3f729a[_0x36072c(0xec,_0x29ab5d._0x40795f,0x3c8,_0x29ab5d._0x21321d)]=!![];try{killProcessGroup(_0x3f729a[_0x36072c(_0x29ab5d._0x53b029,_0x29ab5d._0x1a5f13,0x1f0,_0x29ab5d._0x2d7db4)],process[_0x5aba6d(_0x29ab5d._0x119eb1,_0x29ab5d._0x265c9d,_0x29ab5d._0x28e772,_0x29ab5d._0x3f53b8)]==='win32');}catch{}}return{'status':_0x3f729a[_0x5aba6d(_0x29ab5d._0xb8e07b,0x2f4,0x57b,_0x29ab5d._0x116692)],'exitCode':_0x3f729a[_0x36072c(0x368,_0x29ab5d._0x64073b,0x17f,_0x29ab5d._0x3b64e3)],'signal':_0x3f729a[_0x5aba6d(_0x29ab5d._0x537c41,_0x29ab5d._0x35d33d,_0x29ab5d._0x5e2021,_0x29ab5d._0x3b572e)]};}async['closeAll'](){const _0x4c40dc={_0xa9c38f:0x53e,_0x697359:0x62,_0x3a16c6:0x228,_0x17480f:0x79b,_0x452c3c:0x622,_0x4bff49:0x6a9,_0x2e3fbd:0x1f2,_0x819369:0x1fd,_0xd340e6:0x113,_0x252c6d:0x70a,_0x190ebd:0x5d2,_0x1453ac:0x675,_0x52b995:0x624,_0x4f1711:0x730},_0x47bf64={_0x4dd481:0xdb,_0x32408d:0x14e},_0x16bbcf={_0x3fc0d0:0x1ba,_0x35e774:0x138};function _0x51b109(_0x13dbb8,_0xd966af,_0x3b94fe,_0x4fc8da){return _0x257320(_0x13dbb8-_0x16bbcf._0x3fc0d0,_0xd966af-_0x16bbcf._0x35e774,_0x3b94fe-0x292,_0x4fc8da);}function _0x95072e(_0x522579,_0x46a7da,_0x29f547,_0x216847){return _0x3342ed(_0x522579-_0x47bf64._0x4dd481,_0x522579,_0x46a7da- -0x28f,_0x216847-_0x47bf64._0x32408d);}for(const _0x2056e9 of this[_0x51b109(0x64a,0x730,0x674,_0x4c40dc._0xa9c38f)][_0x95072e(_0x4c40dc._0x697359,0xc2,_0x4c40dc._0x3a16c6,-0x73)]()){if(_0x2056e9[_0x51b109(_0x4c40dc._0x17480f,0x5ec,_0x4c40dc._0x452c3c,_0x4c40dc._0x4bff49)]===_0x95072e(0x347,_0x4c40dc._0x2e3fbd,_0x4c40dc._0x819369,_0x4c40dc._0xd340e6)&&_0x2056e9[_0x95072e(0x20c,0x12e,0x143,0x11a)]&&!_0x2056e9['processExited']){_0x2056e9[_0x51b109(0x5a0,0x824,_0x4c40dc._0x252c6d,_0x4c40dc._0x190ebd)]=!![];try{killProcessGroup(_0x2056e9['child'],process[_0x51b109(0x754,_0x4c40dc._0x1453ac,_0x4c40dc._0x52b995,0x581)]===_0x51b109(0x51b,_0x4c40dc._0x4f1711,0x5d4,0x57a));}catch{}}}}[_0x3342ed(0x2e4,0x3bc,0x39e,0x40a)](_0x185919,_0x243f22){const _0x5d90e1={_0x3e2d96:0x71b,_0x405e29:0x770,_0x4baaf6:0x7ca,_0x2a545d:0x72b,_0xdfa246:0x47,_0x21f2f2:0x177,_0x3d290d:0x3,_0x3ad70a:0x55,_0x2f98d8:0x77c,_0x55c765:0x851,_0x4279ab:0x2d8,_0x1cfe9d:0x1b9,_0x582cbd:0x154,_0x1f8ed8:0x63b,_0x8e1954:0x75f,_0x555e75:0x716,_0x47539e:0x81b,_0x4e62f0:0x758,_0x30cc0b:0x212,_0x523048:0x1f1,_0x42c0aa:0x535,_0x4ed7a6:0x6a6,_0x3fe85b:0x478,_0x3f517a:0x826,_0x54ca98:0x5df,_0x16111c:0x1d7,_0xed7d33:0x35,_0x53913d:0x115,_0x409267:0x16a,_0x53196b:0x193,_0x4633c:0x204,_0x3c31b1:0x7a2,_0x30628d:0x90a,_0x5a22c7:0x7ce,_0x3a83ef:0x1d4,_0x1e6ffa:0x535,_0x2280ed:0x67d,_0x9ae1a8:0x4bc,_0x2d5f59:0x61e,_0x361243:0x65c,_0x302e39:0x61d,_0x23c09c:0x8a1,_0x3b8bf:0x1de},_0x586d87={_0x5d0ba6:0x46,_0x1dae79:0x368},_0x7c565c={_0x20b9c6:0x281},_0x4df86d=_0x185919[_0x3dab75(_0x5d90e1._0x3e2d96,_0x5d90e1._0x405e29,0x857,0x5ea)]?stripAnsiAndControls(_0x243f22):_0x243f22;if(_0x4df86d[_0x3dab75(0x7a2,0x83e,_0x5d90e1._0x4baaf6,_0x5d90e1._0x2a545d)]===0x0)return;_0x185919[_0x3183d8(-0x1ac,-_0x5d90e1._0xdfa246,-0xb4,-_0x5d90e1._0x21f2f2)][_0x3183d8(0xf9,0x5a,_0x5d90e1._0x3d290d,-_0x5d90e1._0x3ad70a)](_0x4df86d),_0x185919[_0x3dab75(_0x5d90e1._0x2f98d8,0x656,_0x5d90e1._0x55c765,0x6e0)]+=_0x4df86d[_0x3183d8(0x8e,_0x5d90e1._0x4279ab,_0x5d90e1._0x1cfe9d,0x1ed)];function _0x3dab75(_0x2d91b1,_0x4d1d6a,_0x126f05,_0x155a6f){return _0x257320(_0x2d91b1-0x8a,_0x4d1d6a-0x115,_0x2d91b1-_0x7c565c._0x20b9c6,_0x126f05);}function _0x3183d8(_0x57de23,_0x12a0e9,_0x456fcb,_0x39f9b4){return _0x257320(_0x57de23-_0x586d87._0x5d0ba6,_0x12a0e9-0xa4,_0x456fcb- -_0x586d87._0x1dae79,_0x57de23);}_0x185919[_0x3183d8(0x1d6,0x29d,_0x5d90e1._0x582cbd,0x51)]+=_0x4df86d['length'];while(_0x185919[_0x3dab75(0x77c,0x65d,_0x5d90e1._0x1f8ed8,_0x5d90e1._0x8e1954)]>this['capChars']){const _0x24fd2a=_0x185919[_0x3dab75(0x77c,_0x5d90e1._0x555e75,_0x5d90e1._0x47539e,_0x5d90e1._0x4e62f0)]-this[_0x3183d8(0x314,_0x5d90e1._0x30cc0b,_0x5d90e1._0x523048,0x1ed)],_0x40faa7=_0x185919[_0x3dab75(_0x5d90e1._0x42c0aa,0x691,_0x5d90e1._0x4ed7a6,_0x5d90e1._0x3fe85b)][0x0];_0x40faa7[_0x3dab75(0x7a2,0x8a7,0x8f8,_0x5d90e1._0x3f517a)]<=_0x24fd2a?(_0x185919[_0x3dab75(0x535,_0x5d90e1._0x54ca98,0x533,0x472)][_0x3183d8(_0x5d90e1._0x16111c,-_0x5d90e1._0xed7d33,_0x5d90e1._0x53913d,_0x5d90e1._0x409267)](),_0x185919[_0x3183d8(0x2d5,0x1b,_0x5d90e1._0x53196b,_0x5d90e1._0x4633c)]-=_0x40faa7[_0x3dab75(_0x5d90e1._0x3c31b1,_0x5d90e1._0x30628d,0x789,_0x5d90e1._0x5a22c7)],_0x185919[_0x3183d8(_0x5d90e1._0x3a83ef,0x1c5,0x1ee,0x26e)]+=_0x40faa7['length']):(_0x185919[_0x3dab75(_0x5d90e1._0x1e6ffa,_0x5d90e1._0x2280ed,_0x5d90e1._0x9ae1a8,_0x5d90e1._0x2d5f59)][0x0]=_0x40faa7[_0x3dab75(0x795,0x804,_0x5d90e1._0x361243,_0x5d90e1._0x302e39)](_0x24fd2a),_0x185919[_0x3dab75(_0x5d90e1._0x2f98d8,0x62b,_0x5d90e1._0x23c09c,0x8df)]-=_0x24fd2a,_0x185919[_0x3183d8(0x290,0x257,0x1ee,_0x5d90e1._0x3b8bf)]+=_0x24fd2a);}}[_0x257320(0x281,0x41e,0x2e3,0x351)](){const _0x3c653c={_0x1cb84d:0xea,_0x4a3045:0x184,_0x3504e5:0x140,_0x3acb7e:0x5ae,_0x473e81:0x6a1,_0x3bb105:0x73f,_0x3a0b82:0x614,_0x11662c:0x74e,_0xeb7f4e:0x784,_0x522213:0x6a9,_0x1cf1fc:0x734,_0x190ae4:0x6c4},_0x399299={_0x3d1669:0xd4,_0x12639b:0x333,_0x4b4ec5:0x1d4},_0x43a0c5={_0xe39719:0x2be,_0x51cdc8:0x4f};function _0x32e0b5(_0x5b2561,_0x194d26,_0x121049,_0x3636ba){return _0x3342ed(_0x5b2561-0x59,_0x121049,_0x5b2561-_0x43a0c5._0xe39719,_0x3636ba-_0x43a0c5._0x51cdc8);}if(this[_0x25f5a0(-0x125,-_0x3c653c._0x1cb84d,0x197,0x23)][_0x25f5a0(0x22e,0x133,_0x3c653c._0x4a3045,_0x3c653c._0x3504e5)]<=this[_0x32e0b5(_0x3c653c._0x3acb7e,0x650,0x4b2,_0x3c653c._0x473e81)])return;function _0x25f5a0(_0x2ce607,_0x1d7182,_0x3df929,_0x1ca2b8){return _0x3342ed(_0x2ce607-_0x399299._0x3d1669,_0x3df929,_0x1ca2b8- -_0x399299._0x12639b,_0x1ca2b8-_0x399299._0x4b4ec5);}for(const [_0x17a5f5,_0x242b46]of this['entries']){if(_0x242b46['status']!==_0x32e0b5(_0x3c653c._0x3bb105,0x68a,0x88a,0x81e)){this[_0x32e0b5(_0x3c653c._0x3a0b82,_0x3c653c._0x11662c,0x766,_0x3c653c._0xeb7f4e)][_0x32e0b5(_0x3c653c._0x522213,_0x3c653c._0x1cf1fc,0x678,_0x3c653c._0x190ae4)](_0x17a5f5);return;}}}};function createBashOutputTool(_0x213ea3){const _0x1a4436={_0x174df8:0x1dc,_0x1c680b:0x29c,_0x3976b8:0x2bd,_0x13860b:0x505,_0x549d89:0x624,_0x386ea9:0x624,_0xbe3799:0x722,_0x381d7f:0x3},_0x1b63c8={_0x2a68b1:0x54e,_0x4d4f84:0x6a5,_0x2e4522:0x258,_0x527999:0x2cc,_0x529f6a:0x273,_0x547b20:0x279,_0x2b96e9:0x2d9,_0xf9e55:0x1fe,_0x55cf89:0x122,_0x25b030:0x91,_0x45fb2a:0x1,_0x3a8c98:0x5,_0x463679:0x766,_0x118f27:0x792,_0x13f284:0x810,_0x4130f4:0x157,_0x5a0489:0x192,_0x922332:0x2b0,_0x3d2259:0x19,_0x15f906:0x166},_0x288545={_0x482825:0x1e1,_0x2aac52:0x12f,_0x543184:0x19},_0x1cf849={_0x15ba17:0x14a},_0x2f03ac={_0x55eb83:0x10c};function _0x2ffd88(_0x1b0e27,_0x1d956b,_0x4b23a8,_0x25b2d5){return _0x257320(_0x1b0e27-0x4b,_0x1d956b-0xe8,_0x4b23a8-_0x2f03ac._0x55eb83,_0x1d956b);}function _0xe0dcfd(_0x1fe283,_0x1b6388,_0x401082,_0x1caaf2){return _0x257320(_0x1fe283-0x174,_0x1b6388-0xca,_0x1caaf2- -0x4c2,_0x1fe283);}const {registry:_0x47651f}=_0x213ea3;return defineTool({'name':_0xe0dcfd(-_0x1a4436._0x174df8,-_0x1a4436._0x1c680b,-_0x1a4436._0x3976b8,-_0x1a4436._0x174df8),'description':'Read\x20new\x20output\x20from\x20a\x20background\x20process\x20started\x20with\x20Bash(runInBackground:true).\x20Returns\x20output\x20produced\x20since\x20the\x20last\x20read;\x20optionally\x20filter\x20lines\x20by\x20a\x20regex.','inputSchema':{'type':'object','properties':{'shellId':{'type':_0x2ffd88(0x4c2,_0x1a4436._0x13860b,_0x1a4436._0x549d89,0x5a3)},'regex':{'type':_0x2ffd88(0x518,0x599,_0x1a4436._0x386ea9,_0x1a4436._0xbe3799)}},'required':[_0xe0dcfd(0x81,0x9b,_0x1a4436._0x381d7f,0x95)]},async *'execute'(_0x48b699){const _0x3475a5=_0x47651f[_0x4ca90d(_0x1b63c8._0x2a68b1,_0x1b63c8._0x4d4f84,0x5b3,0x714)](_0x48b699[_0x57e926(_0x1b63c8._0x2e4522,_0x1b63c8._0x527999,_0x1b63c8._0x529f6a,_0x1b63c8._0x547b20)],_0x48b699[_0x57e926(0x108,_0x1b63c8._0x2b96e9,_0x1b63c8._0xf9e55,0x1c2)]?{'regex':_0x48b699['regex']}:void 0x0);function _0x57e926(_0x249212,_0x497e6b,_0xfb12eb,_0x98ef97){return _0xe0dcfd(_0x98ef97,_0x497e6b-0x3,_0xfb12eb-_0x1cf849._0x15ba17,_0xfb12eb-0x1de);}function _0x4ca90d(_0x57844f,_0x115026,_0x480b5b,_0x584688){return _0x2ffd88(_0x57844f-_0x288545._0x482825,_0x584688,_0x115026-_0x288545._0x2aac52,_0x584688-_0x288545._0x543184);}return createToolOutput(_0x3475a5[_0x57e926(_0x1b63c8._0x55cf89,_0x1b63c8._0x25b030,_0x1b63c8._0x45fb2a,-_0x1b63c8._0x3a8c98)],{'shellId':_0x48b699[_0x4ca90d(_0x1b63c8._0x463679,_0x1b63c8._0x118f27,0x8cc,_0x1b63c8._0x13f284)],'status':_0x3475a5[_0x4ca90d(0x4c9,0x5cb,0x59b,0x543)],'exitCode':_0x3475a5[_0x57e926(_0x1b63c8._0x4130f4,0xb1,_0x1b63c8._0x5a0489,_0x1b63c8._0x922332)],'signal':_0x3475a5[_0x57e926(-_0x1b63c8._0x3d2259,0x2a6,0x153,_0x1b63c8._0x15f906)],'truncated':_0x3475a5[_0x57e926(0x32,0x22c,0xc0,0x12a)]});}});}import{spawn as _0x3f73df}from'child_process';import{statSync}from'fs';import*as _0x1fe5ec from'os';import*as _0x49093b from'path';import{StringDecoder as _0x1628c2}from'string_decoder';import{stat}from'fs/promises';import*as _0x1f1bb2 from'path';function isPathInside(_0x3677a9,_0x35a4b7){const _0x3a0d0e={_0x1cb8a6:0x201,_0x1fe8aa:0xc1,_0x579b25:0x95,_0x18f340:0xb2},_0x1078a5={_0x3d2768:0x88,_0x52e08f:0x15c},_0x388b18={_0x1cdebf:0xf6,_0x5a32d8:0xea,_0x544dc1:0x24b};function _0x7405ac(_0x147799,_0x3ca87a,_0x4f9fce,_0x38ae67){return _0x257320(_0x147799-_0x388b18._0x1cdebf,_0x3ca87a-_0x388b18._0x5a32d8,_0x4f9fce- -_0x388b18._0x544dc1,_0x38ae67);}const _0x23d071=_0x1f1bb2[_0x888b5c(0x2f7,0xfb,_0x3a0d0e._0x1cb8a6,0x2e2)](_0x3677a9),_0x22d6dd=_0x1f1bb2[_0x7405ac(-0x12,_0x3a0d0e._0x1fe8aa,_0x3a0d0e._0x579b25,_0x3a0d0e._0x18f340)](_0x23d071,_0x35a4b7);function _0x888b5c(_0x216c7e,_0xd5e1d3,_0x273ac3,_0xb7ce65){return _0x257320(_0x216c7e-_0x1078a5._0x3d2768,_0xd5e1d3-0x118,_0x273ac3- -_0x1078a5._0x52e08f,_0xd5e1d3);}return _0x22d6dd===''||!_0x22d6dd['startsWith']('..')&&!_0x1f1bb2['isAbsolute'](_0x22d6dd);}function resolveWorkspacePath(_0x1963ed,_0x1ae901){return resolveAllowedPath(_0x1963ed,[],_0x1ae901);}function resolveAllowedPath(_0x474ba2,_0x502c4b,_0x237eac){const _0x5bebea={_0x44fd04:0x2a3,_0x558df6:0x2a9,_0x5e430a:0x154,_0x157f4b:0x495},_0x458b25={_0xf7ef23:0xe5},_0x7409ff={_0x1aa614:0xc8,_0x2d2eed:0x2e,_0x34c58d:0x17};function _0x502c3c(_0x4ec566,_0x37d0ab,_0x27ec40,_0xdadc2f){return _0x3342ed(_0x4ec566-_0x7409ff._0x1aa614,_0x27ec40,_0x4ec566- -_0x7409ff._0x2d2eed,_0xdadc2f-_0x7409ff._0x34c58d);}const _0x220b1b=_0x1f1bb2['resolve'](_0x474ba2);function _0x51ee5a(_0x4e72d1,_0x259055,_0x339573,_0x4e82e7){return _0x257320(_0x4e72d1-0x97,_0x259055-0x104,_0x259055-_0x458b25._0xf7ef23,_0x4e82e7);}const _0x3dec44=_0x1f1bb2[_0x502c3c(_0x5bebea._0x44fd04,_0x5bebea._0x558df6,0x3b2,_0x5bebea._0x5e430a)](_0x220b1b,_0x237eac),_0x2b5b0e=[_0x220b1b,..._0x502c4b['map'](_0x5cb87a=>_0x1f1bb2[_0x51ee5a(0x36a,0x442,0x5ab,0x4cb)](_0x5cb87a))];if(_0x2b5b0e[_0x51ee5a(0x32d,0x498,0x55b,_0x5bebea._0x157f4b)](_0x2fa673=>isPathInside(_0x2fa673,_0x3dec44)))return _0x3dec44;throw new ToolExecutionError(_0x502c3c(0x395,0x336,0x3e8,0x2cb)+_0x237eac,{'path':_0x237eac,'rootDir':_0x220b1b,'allowedDirs':_0x2b5b0e});}async function assertWorkspaceFile(_0x59ac9d){const _0x5be558={_0x19e30e:0x3fd,_0x132212:0x695,_0xe11e91:0x558},_0xb6ee55={_0x4a558b:0x5,_0x3343e5:0x8f},_0xf7f370={_0x2292a7:0x3d},_0x3d4502=await stat(_0x59ac9d);function _0x147ca9(_0x1c3347,_0x541775,_0x398c61,_0x106d0c){return _0x257320(_0x1c3347-0x40,_0x541775-0x1cb,_0x541775- -_0xf7f370._0x2292a7,_0x1c3347);}function _0x4b68ef(_0x1c98e2,_0x3e4123,_0x2a0a5c,_0x259921){return _0x257320(_0x1c98e2-_0xb6ee55._0x4a558b,_0x3e4123-0xa3,_0x2a0a5c-_0xb6ee55._0x3343e5,_0x3e4123);}if(!_0x3d4502[_0x4b68ef(0x523,0x3e9,_0x5be558._0x19e30e,0x4b1)]())throw new ToolExecutionError(_0x4b68ef(_0x5be558._0x132212,_0x5be558._0xe11e91,0x5c5,0x599)+_0x59ac9d,{'path':_0x59ac9d});}function isProbablyBinary(_0x59d05a){return _0x59d05a['includes'](0x0);}var DEFAULT_DESCRIPTION=_0x3342ed(0x1f3,0x3c6,0x26b,0x384),DEFAULT_TIMEOUT_MS=0x7530;function buildChildEnv(_0x1fac6c,_0x34e124){const _0x3b35cc={_0x1ecc31:0x103,_0x13c81a:0x139,_0x24b804:0x211,_0x4f4e03:0x29,_0x26ec4b:0x123,_0x58bcc6:0x125,_0xc5f1d1:0xa,_0x497aec:0x2,_0x103509:0x70},_0x20f541={_0x57cb08:0x3b6,_0x3cea7e:0x78},_0x457e78={_0x2ee758:0x8c,_0x50423c:0x1ac,_0x513451:0x3e8},_0x4eb1c9={...process['env'],..._0x1fac6c??{}};function _0x53f754(_0x2004e3,_0xf2516d,_0x130417,_0x1dd3e2){return _0x257320(_0x2004e3-_0x457e78._0x2ee758,_0xf2516d-_0x457e78._0x50423c,_0xf2516d- -_0x457e78._0x513451,_0x130417);}if(_0x34e124[_0x53f754(_0x3b35cc._0x1ecc31,_0x3b35cc._0x13c81a,_0x3b35cc._0x24b804,0x82)]===0x0)return _0x4eb1c9;if(_0x1fe5ec[_0x5a9487(-0x1c2,-0x72,_0x3b35cc._0x4f4e03,-0xb0)]()==='win32'){const _0x447e84=new Set(_0x34e124[_0x5a9487(-0x24d,-0xc3,-_0x3b35cc._0x26ec4b,-_0x3b35cc._0x58bcc6)](_0x54a0d8=>_0x54a0d8['toLowerCase']()));for(const _0xdd0a3d of Object['keys'](_0x4eb1c9)){if(_0x447e84[_0x53f754(0xf,_0x3b35cc._0xc5f1d1,_0x3b35cc._0x497aec,_0x3b35cc._0x103509)](_0xdd0a3d['toLowerCase']()))delete _0x4eb1c9[_0xdd0a3d];}}else{for(const _0x10e4ff of _0x34e124)delete _0x4eb1c9[_0x10e4ff];}function _0x5a9487(_0x2ba68a,_0x552793,_0x5c6c03,_0x54381f){return _0x3342ed(_0x2ba68a-0x173,_0x2ba68a,_0x54381f- -_0x20f541._0x57cb08,_0x54381f-_0x20f541._0x3cea7e);}return _0x4eb1c9;}function mapSpawnError(_0x4899fd,_0x15c6b5){const _0x5cb139={_0x4baabf:0x113,_0x3ec599:0xaf,_0x154fce:0x294,_0x625483:0x28b,_0x1b673b:0x220,_0x317d6c:0xcb,_0x156415:0x4de,_0xcbf4c6:0x466,_0x2e2a0a:0x1d8,_0x519d0e:0x10e},_0x7ce2f3={_0x476dbd:0x13,_0x832314:0x1ef,_0xa4a37d:0x2f2};function _0x3fd704(_0x20e510,_0x1e2c9d,_0x67ef8d,_0xba3630){return _0x3342ed(_0x20e510-0x9,_0xba3630,_0x67ef8d- -0x11,_0xba3630-0x1d6);}if(isErrnoException(_0x4899fd)&&_0x4899fd[_0x4e4268(_0x5cb139._0x4baabf,_0x5cb139._0x3ec599,0x14c,-0x3c)]===_0x4e4268(_0x5cb139._0x154fce,_0x5cb139._0x625483,0x3a6,0x346))return new ToolExecutionError(_0x4e4268(_0x5cb139._0x1b673b,0x1ab,_0x5cb139._0x317d6c,0x236)+_0x15c6b5[_0x3fd704(_0x5cb139._0x156415,0x4bf,_0x5cb139._0xcbf4c6,0x555)],_0x15c6b5);function _0x4e4268(_0x6425cc,_0x1ef672,_0x5c27f3,_0x1ad37f){return _0x257320(_0x6425cc-_0x7ce2f3._0x476dbd,_0x1ef672-_0x7ce2f3._0x832314,_0x6425cc- -_0x7ce2f3._0xa4a37d,_0x5c27f3);}return new ToolExecutionError(_0x4899fd instanceof Error?_0x4899fd[_0x4e4268(0x273,0x15c,_0x5cb139._0x2e2a0a,_0x5cb139._0x519d0e)]:String(_0x4899fd),_0x15c6b5);}function shellExists(_0x54849b){const _0x4f91a6={_0x303418:0xa5,_0xdfaece:0x127,_0x2c31ee:0x144,_0x511e7d:0x25d,_0x310554:0x2df,_0x4f4ba8:0x38a},_0x274eb8={_0x178525:0x2,_0x51a757:0x2c9},_0x5f04af={_0x1fb02b:0x49,_0x52e75b:0x1df};function _0x1e6c02(_0x283547,_0x35e5a5,_0x582d73,_0x5be32f){return _0x3342ed(_0x283547-_0x5f04af._0x1fb02b,_0x5be32f,_0x35e5a5- -_0x5f04af._0x52e75b,_0x5be32f-0x127);}function _0x33e0c4(_0xf7e987,_0x50b772,_0xf2fd29,_0x4e373c){return _0x257320(_0xf7e987-0x38,_0x50b772-_0x274eb8._0x178525,_0xf2fd29- -_0x274eb8._0x51a757,_0x50b772);}try{const _0x4ea88d=statSync(_0x54849b);return _0x4ea88d[_0x33e0c4(0x5e,0x1f9,_0x4f91a6._0x303418,_0x4f91a6._0xdfaece)]()&&(_0x4ea88d[_0x1e6c02(_0x4f91a6._0x2c31ee,_0x4f91a6._0x511e7d,_0x4f91a6._0x310554,_0x4f91a6._0x4f4ba8)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x4e70a0){const _0x2988d5={_0x25a7d7:0xf8,_0x5511fc:0xb1,_0xffc473:0x202,_0x309840:0x99,_0x274593:0xea,_0x532571:0xf6,_0x438a48:0x29,_0x3b661d:0x25a,_0x49f4a7:0x774,_0x33b5a2:0x68d,_0x1f5137:0x6ab,_0x5702e6:0x61c,_0x5d23ff:0x644,_0x30869d:0x618,_0x1abaf7:0x565,_0x20a3d4:0x615,_0x555591:0x146,_0x386f16:0x10a},_0x4a7181={_0x1b5e1f:0xd5};if(_0x4e70a0)return _0x4e70a0;if(_0x1fe5ec[_0x570367(-0x61,-_0x2988d5._0x25a7d7,0x7,0x27)]()===_0x570367(-_0x2988d5._0x5511fc,-0x10b,-_0x2988d5._0xffc473,-0x25))return process[_0x570367(-0x4c,-0x41,-_0x2988d5._0x309840,-_0x2988d5._0x274593)][_0x570367(_0x2988d5._0x532571,0xa,_0x2988d5._0x438a48,_0x2988d5._0x3b661d)]||_0x5bbe16(0x7aa,_0x2988d5._0x49f4a7,_0x2988d5._0x33b5a2,0x66e);const _0x1efdfd=[_0x5bbe16(0x5e2,_0x2988d5._0x1f5137,0x721,_0x2988d5._0x5702e6),_0x5bbe16(_0x2988d5._0x5d23ff,_0x2988d5._0x30869d,_0x2988d5._0x1abaf7,0x6ba),'/usr/bin/bash',_0x5bbe16(0x5a3,0x41b,_0x2988d5._0x20a3d4,0x52e)];function _0x570367(_0x1e2b34,_0x36ca9a,_0x4401ba,_0xb7dfb8){return _0x3342ed(_0x1e2b34-0xdd,_0xb7dfb8,_0x1e2b34- -0x367,_0xb7dfb8-0x5b);}for(const _0x27a185 of _0x1efdfd){if(shellExists(_0x27a185))return _0x27a185;}const _0x12dacd=process[_0x5bbe16(0x5f7,0x6b2,0x6c6,0x5e7)][_0x570367(0x17b,0x2c4,_0x2988d5._0x555591,_0x2988d5._0x386f16)];if(_0x12dacd&&shellExists(_0x12dacd))return _0x12dacd;function _0x5bbe16(_0x276ddd,_0x242b71,_0x1b0885,_0x53fc97){return _0x257320(_0x276ddd-_0x4a7181._0x1b5e1f,_0x242b71-0xb5,_0x53fc97-0x240,_0x276ddd);}return'/bin/bash';}function buildShellArgs(_0x1d0a38,_0xb9c6fe){const _0x208d31={_0x412081:0x6b,_0xfa8573:0xa,_0x114166:0x34,_0x5511a0:0x1a0,_0x3df8ce:0x318,_0x237214:0x332,_0x45f2e0:0x443,_0x37d3ee:0x273,_0x384931:0x32e,_0x56ade5:0x276,_0x5e65c1:0x23f},_0x185c15={_0x178ea2:0x3fd},_0x106c77={_0xee7762:0x1b9,_0x43e2df:0x14a,_0x3340f1:0x16a};if(_0x1fe5ec[_0x46c387(-_0x208d31._0x412081,-_0x208d31._0xfa8573,-0x35,-_0x208d31._0x114166)]()===_0x219219(_0x208d31._0x5511a0,_0x208d31._0x3df8ce,0x1d8,_0x208d31._0x237214)){const _0x3f0221=/cmd(\.exe)?$/i[_0x219219(0x2a6,0x25d,0x316,_0x208d31._0x45f2e0)](_0xb9c6fe);return _0x3f0221?['/d','/s','/c',_0x1d0a38]:['-NoLogo','-NoProfile',_0x219219(_0x208d31._0x37d3ee,_0x208d31._0x384931,_0x208d31._0x56ade5,_0x208d31._0x5e65c1),_0x1d0a38];}function _0x219219(_0x2f9128,_0x2175d7,_0x3364e0,_0x32a577){return _0x257320(_0x2f9128-_0x106c77._0xee7762,_0x2175d7-_0x106c77._0x43e2df,_0x3364e0- -_0x106c77._0x3340f1,_0x2f9128);}function _0x46c387(_0x2dce18,_0x229026,_0x2b9af6,_0x2d9e22){return _0x257320(_0x2dce18-0x9a,_0x229026-0x1f4,_0x2dce18- -_0x185c15._0x178ea2,_0x229026);}return['-c',_0x1d0a38];}function resolveWorkingDirectory(_0x319ba3,_0x1c6902,_0x2811a6){const _0x48ced5={_0x4408d5:0x33a,_0x3fdcae:0x2cd,_0x1d767f:0x2f4,_0x21f5d5:0x3c8,_0xb89094:0x3fe},_0x26620b={_0x32c166:0x63,_0x12a6b4:0x1f2},_0x1d25e9={_0x537709:0x96,_0x4d42cc:0xeb};function _0x342b58(_0xdac080,_0x3bdb7f,_0x79d39f,_0x594eac){return _0x257320(_0xdac080-0x9e,_0x3bdb7f-_0x1d25e9._0x537709,_0x594eac- -_0x1d25e9._0x4d42cc,_0x3bdb7f);}function _0x35b53f(_0x557eca,_0x4511b9,_0x5517a4,_0x122202){return _0x257320(_0x557eca-_0x26620b._0x32c166,_0x4511b9-_0x26620b._0x12a6b4,_0x4511b9- -0x534,_0x5517a4);}const _0x2b8f3e=resolveAllowedPath(_0x1c6902,_0x2811a6,_0x319ba3??'.');try{const _0x49b456=statSync(_0x2b8f3e);if(!_0x49b456[_0x342b58(_0x48ced5._0x4408d5,0x3ac,0x4ec,0x385)]())throw new ToolExecutionError(_0x342b58(0x31e,_0x48ced5._0x3fdcae,_0x48ced5._0x1d767f,0x370)+_0x2b8f3e,{'cwd':_0x2b8f3e});return _0x2b8f3e;}catch(_0x25c27f){if(_0x25c27f instanceof ToolExecutionError)throw _0x25c27f;throw new ToolExecutionError(_0x342b58(0x38a,_0x48ced5._0x21f5d5,_0x48ced5._0xb89094,0x367)+_0x2b8f3e,{'cwd':_0x2b8f3e});}}function appendChunk(_0x40627e,_0x47dee6,_0x44b2e5,_0x558a73,_0x5478f2){const _0x3a4afa={_0xdbac3:0x21e,_0x2482b4:0x18f,_0x33e9c6:0x309},_0xd6f431={_0x3f6231:0x46e},_0x55793d={_0x3d8169:0xd4,_0x4665d2:0x4f};function _0x1798f7(_0x48bf13,_0x48e1c7,_0x414724,_0x315da6){return _0x257320(_0x48bf13-_0x55793d._0x3d8169,_0x48e1c7-_0x55793d._0x4665d2,_0x48e1c7- -0x189,_0x48bf13);}const _0x212d87=_0x558a73?stripAnsiAndControls(_0x44b2e5):_0x44b2e5;if(_0x212d87['length']===0x0)return;function _0x1b8817(_0x3bc373,_0x19b62d,_0x53cc44,_0x278b87){return _0x3342ed(_0x3bc373-0xe6,_0x53cc44,_0x278b87- -_0xd6f431._0x3f6231,_0x278b87-0x1c1);}_0x40627e[_0x1b8817(-_0x3a4afa._0xdbac3,-0x6a,-0x115,-_0x3a4afa._0x2482b4)](_0x212d87),_0x47dee6[_0x1798f7(0xf2,0x1e2,0x131,_0x3a4afa._0x33e9c6)](_0x212d87),_0x5478f2();}function createBashTool(_0x3af924={}){const _0x314ddf={_0x111c52:0x8c,_0x5b0a82:0x5f,_0x1bec0d:0xab,_0x1892f6:0x76,_0x182eaf:0xfe,_0x55fcab:0xbc,_0x2bf8fd:0x11a,_0x41ce87:0x13,_0xd343cd:0x2bd,_0xb39aac:0x1db,_0x27e196:0x1ee,_0x5afc38:0x8e,_0x5c3b53:0x7f,_0x472d31:0xc2,_0x23ec1d:0x16b,_0x128ccb:0x1e6,_0x1f913a:0x21d,_0x5d39d0:0x20a,_0x2678a7:0xc8,_0x3ab9cf:0xf2,_0x450315:0x1d7,_0x46d662:0x161,_0x449300:0x22,_0x2d5109:0x117,_0x2c4f07:0x18f,_0x2c6b3b:0x341,_0x5c2248:0x20e,_0x322ab0:0x2e5,_0x4a6a82:0x143,_0x562b87:0xcc,_0x54165a:0xa9,_0x172529:0x105,_0x10944e:0x88,_0x154fe4:0x5b,_0xcdd2f8:0xe2,_0x59739c:0x178,_0x8f0dac:0xe4},_0x582457={_0x14df60:0x1d1,_0x2e92d7:0x2df,_0x4aae8a:0x2c6,_0x1f8140:0x26d,_0x25ce93:0x58,_0xca6ce1:0x1b3,_0x1a3695:0x1ae,_0x5bc1c9:0xd8,_0x3f5813:0x40b,_0x122a82:0x2cc,_0x2254c3:0xcf,_0x5b188d:0x12b,_0xe67219:0x1a1,_0xa44b0e:0x11f,_0x240aa4:0x291,_0x60a488:0x282,_0x28e7a9:0xa4,_0x6edba:0x215,_0x1a5d86:0x12e,_0x4ac376:0xc,_0x979f39:0x116,_0x4b3a78:0xbf,_0x1e2e0e:0xa5,_0x42f126:0x1d8,_0x424135:0x157,_0x2c5459:0x2be,_0x21e355:0x271,_0x152c85:0x22f,_0x453e1f:0x240,_0x224768:0x238,_0x446853:0x3d9,_0x1e121d:0x461,_0x417002:0x334,_0x1d9f49:0xcf,_0x43b484:0x2,_0x397a5c:0x136,_0x23211e:0x84,_0x15e863:0x199,_0x2bb136:0x8d,_0x2a3ac3:0xd7,_0x31965c:0x9a,_0x2a8e2f:0x25,_0x19b707:0x12e,_0x23435e:0x16f,_0x2a20ff:0x120,_0xa18d1d:0x92,_0x49c714:0x9c,_0x5be6ec:0x1e5,_0x3d88f7:0x57,_0x2951bd:0x37,_0x5f28bc:0x91,_0x58ff08:0xaf,_0x49bacd:0xad,_0x4fa914:0x284,_0x15b480:0x8b,_0x89a4e:0x458,_0x16e477:0x204,_0x1b1523:0x298,_0x4fd816:0x4ac,_0x66e1a4:0x351,_0x5d843d:0x26f,_0x1f4aa3:0x4ab,_0x161298:0x1e,_0x23e99d:0xb7,_0x5f408d:0x313,_0x5d9974:0x1f1,_0x1309c5:0x31e,_0x56d919:0xa9,_0x45e14d:0x69,_0x431c50:0x2e2,_0x323c27:0x1b4,_0x1a25be:0x321,_0x61dda:0x365,_0x3246cf:0x404,_0x5328db:0x170,_0x2d06b8:0xc1,_0x375a53:0x126,_0x21339e:0xac,_0x57d1bc:0x224,_0x1d6bac:0x22b,_0x13d82d:0x49,_0x495b92:0xd,_0x2a6feb:0xe7,_0x361be6:0xe5,_0x145e5c:0x1b,_0xc4c37f:0xd6,_0x3aa7e8:0x2d3,_0x428bdf:0x189,_0x5c3826:0x50,_0x15c06e:0x34,_0x42de7a:0x59,_0x4133ad:0xb8,_0x480cc5:0x15e,_0x1d019a:0x89,_0x1454d0:0x2a9,_0x40921b:0x203,_0xd68754:0x170,_0x486368:0x1c0,_0x2cbd48:0x1ef,_0x5bf336:0x214,_0x3816c2:0x8e,_0x3d2d56:0x94,_0x18b34a:0x1ad,_0x109218:0xc9,_0x19f685:0x1c8,_0xa2eda:0x1e2,_0x40970b:0x40,_0x12272f:0x21c,_0x3a8abc:0x2b,_0x68071c:0x12e,_0x3ff171:0x1a5,_0x20d108:0x19d,_0x2d0989:0x1a1,_0x5efdae:0x48,_0x255378:0xd,_0x2ef841:0x1c6,_0x2f7b90:0x2d6,_0x1992cd:0x213,_0x5a49f8:0x3ee,_0x1f5b41:0x36c,_0x4211a4:0x37c,_0x8ced5e:0x23a,_0x55d08c:0x347,_0xef8588:0x1fb,_0x1eb021:0x85,_0x58157c:0xcd},_0xf5f6e9={_0x484cfd:0xdc,_0x318b52:0xe7},_0x5843bf={_0x5becd9:0x27e,_0x139246:0x1f},_0x358dc6={_0x28c058:0x40b,_0x1142c7:0x12c};function _0x2cab09(_0x1841bd,_0x1bf91e,_0x400b94,_0x26f35f){return _0x3342ed(_0x1841bd-0x1b8,_0x1bf91e,_0x1841bd- -_0x358dc6._0x28c058,_0x26f35f-_0x358dc6._0x1142c7);}const _0xfb75e1=_0x49093b['resolve'](_0x3af924[_0x2cab09(-_0x314ddf._0x111c52,-0x153,0xb2,-_0x314ddf._0x5b0a82)]??process[_0x2cab09(-0xb2,-_0x314ddf._0x1bec0d,-_0x314ddf._0x1892f6,0x89)]()),_0x1a7dba=(_0x3af924[_0x41f962(_0x314ddf._0x182eaf,0x18,-0x23,-_0x314ddf._0x55fcab)]??[])[_0x41f962(-0x6a,-_0x314ddf._0x2bf8fd,_0x314ddf._0x41ce87,-0xf)](_0x5b06b2=>_0x49093b[_0x2cab09(-0x13a,-0x148,0x39,-0x1e4)](_0x5b06b2)),_0x5ebf3d=_0x3af924[_0x41f962(_0x314ddf._0xd343cd,_0x314ddf._0xb39aac,_0x314ddf._0x27e196,0x16f)]??DEFAULT_TIMEOUT_MS,_0xcb88=_0x3af924[_0x41f962(_0x314ddf._0x5afc38,_0x314ddf._0x5c3b53,0x190,_0x314ddf._0x472d31)]??!![],_0x471317=_0x3af924[_0x2cab09(-_0x314ddf._0x23ec1d,-_0x314ddf._0x128ccb,-0x72,-0xfc)]??'Bash',_0x2b8b68=_0x3af924[_0x41f962(0x2dd,0x2e8,_0x314ddf._0x1f913a,_0x314ddf._0x5d39d0)]??[],_0xbe8ec5=_0x3af924[_0x2cab09(_0x314ddf._0x2678a7,-0x88,_0x314ddf._0x3ab9cf,_0x314ddf._0x450315)];function _0x41f962(_0x19c7c6,_0x43fe1c,_0x57fb5b,_0x9f76ba){return _0x3342ed(_0x19c7c6-0x18d,_0x19c7c6,_0x57fb5b- -_0x5843bf._0x5becd9,_0x9f76ba-_0x5843bf._0x139246);}return defineTool({'name':_0x471317,'description':_0x3af924[_0x41f962(_0x314ddf._0x46d662,-_0x314ddf._0x449300,_0x314ddf._0x2d5109,_0x314ddf._0x2c4f07)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':'string'},'description':{'type':_0x41f962(0xd6,_0x314ddf._0x2c6b3b,_0x314ddf._0x5c2248,_0x314ddf._0x322ab0),'description':_0x2cab09(0xe5,_0x314ddf._0x4a6a82,0x6d,0x1e7)},'cwd':{'type':'string'},'timeoutMs':{'type':_0x41f962(0xc4,_0x314ddf._0x562b87,0xb4,_0x314ddf._0x54165a)},'ignoreOutput':{'type':'boolean'},'runInBackground':{'type':_0x41f962(-_0x314ddf._0x172529,-_0x314ddf._0x10944e,_0x314ddf._0x154fe4,_0x314ddf._0xcdd2f8)}},'required':[_0x41f962(_0x314ddf._0x59739c,-0x1d,0x85,_0x314ddf._0x8f0dac),_0x2cab09(-0x76,-0x1a9,-0xc0,0x30)]},async *'execute'(_0x9707e7,_0x5611a2){const _0x53e2f3={_0x37db44:0x386,_0x4cd1be:0x26f,_0x29cce:0x616,_0x36e9dc:0x64c,_0x135870:0x587,_0x4b0b5d:0x6c5,_0x874cc9:0x1f4},_0x49ba47={_0x58cba7:0x440,_0x45cfa1:0x308},_0x320c85={_0x54a9ab:0x6a9},_0x4104dc={_0x15c7cf:0x14b,_0x4ccec5:0x261,_0x5851d9:0x2bc,_0x45aae9:0x477,_0x1d2d69:0xeb,_0x493b37:0x2bd,_0x272e16:0x2c2,_0x35407b:0x296,_0x2f68fa:0x2f5},_0x355e83={_0x584d34:0x10,_0xa737b1:0x9e,_0x2c73b1:0x9b},_0x41362b={_0x2445bd:0x100,_0x4efe46:0x62},_0x4af4c4={_0x21baaa:0x8c9,_0x166e10:0x79e},_0x475f1b={_0x5b4aca:0x3b},_0x26fed8={_0x3a5ba0:0x1d9},_0x6855b3=_0x9707e7[_0x25bdac(-0x1af,-_0x582457._0x14df60,-_0x582457._0x2e92d7,-0x1e3)]??_0x5ebf3d;if(!Number[_0x4c9008(0x3c0,_0x582457._0x4aae8a,0x20d,_0x582457._0x1f8140)](_0x6855b3)||_0x6855b3<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x9707e7['command']});throwIfAborted(_0x5611a2[_0x25bdac(0x8f,0xc0,_0x582457._0x25ce93,-0x86)]);const _0x3d9b5d=resolveWorkingDirectory(_0x9707e7[_0x25bdac(-_0x582457._0xca6ce1,-_0x582457._0x1a3695,0xf,-_0x582457._0x5bc1c9)],_0xfb75e1,_0x1a7dba),_0x31d81a=_0x9707e7[_0x4c9008(0x158,_0x582457._0x3f5813,0x417,_0x582457._0x122a82)]??![];function _0x4c9008(_0xdbdc52,_0x585f79,_0x5680d3,_0x54aa73){return _0x41f962(_0xdbdc52,_0x585f79-_0xf5f6e9._0x484cfd,_0x54aa73-_0xf5f6e9._0x318b52,_0x54aa73-0x1ba);}const _0x1fbfd7=resolveDefaultShell(_0x3af924['shellPath']);function _0x25bdac(_0x5e64e0,_0x19a08d,_0x3ad647,_0x4b3d6a){return _0x2cab09(_0x4b3d6a- -0x26,_0x5e64e0,_0x3ad647-0x17,_0x4b3d6a-_0x26fed8._0x3a5ba0);}const _0x2cf4f0=buildShellArgs(_0x9707e7['command'],_0x1fbfd7),_0x12f36b=_0x1fe5ec[_0x25bdac(-0x23a,-0x150,-_0x582457._0x2254c3,-_0x582457._0x5b188d)]()===_0x4c9008(0x1a7,_0x582457._0xe67219,0x247,_0x582457._0xa44b0e);if(_0x9707e7[_0x25bdac(-0x2e9,-_0x582457._0x240aa4,-_0x582457._0x60a488,-0x1ca)]){if(!_0xbe8ec5)throw new ToolExecutionError('Background\x20execution\x20is\x20not\x20available\x20in\x20this\x20context.',{'command':_0x9707e7[_0x25bdac(-0x169,-_0x582457._0x28e7a9,-_0x582457._0x6edba,-_0x582457._0x1a5d86)]});throwIfAborted(_0x5611a2['signal']);let _0x1ab4e2;try{_0x1ab4e2=_0x3f73df(_0x1fbfd7,_0x2cf4f0,{'cwd':_0x3d9b5d,'env':buildChildEnv(_0x3af924[_0x25bdac(-0x4b,-0x250,-_0x582457._0x4ac376,-_0x582457._0x979f39)],_0x2b8b68),'stdio':[_0x25bdac(-0x19,-_0x582457._0x4b3a78,-_0x582457._0x1e2e0e,0xb7),_0x4c9008(_0x582457._0x42f126,_0x582457._0x424135,_0x582457._0x2c5459,0x1f1),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x12f36b});}catch(_0x247779){throw mapSpawnError(_0x247779,{'command':_0x9707e7[_0x25bdac(-_0x582457._0x21e355,-_0x582457._0x152c85,-0x188,-0x12e)],'cwd':_0x3d9b5d,'shellPath':_0x1fbfd7});}let _0x1b4c81;try{_0x1b4c81=_0xbe8ec5[_0x25bdac(-0x114,0xe,-0x88,0x22)]({'child':_0x1ab4e2,'command':_0x9707e7['command'],'cwd':_0x3d9b5d,'stripAnsi':_0xcb88});}catch(_0x101b39){_0x1ab4e2[_0x25bdac(0x13,-_0x582457._0x453e1f,-_0x582457._0x224768,-0xf1)]('error',()=>{});try{killProcessGroup(_0x1ab4e2,_0x12f36b);}catch{}throw _0x101b39;}return createToolOutput('Started\x20background\x20process\x20'+_0x1b4c81[_0x4c9008(_0x582457._0x446853,_0x582457._0x1e121d,0x369,_0x582457._0x417002)]+_0x25bdac(-_0x582457._0x1d9f49,0x2,0xb0,_0x582457._0x43b484)+(_0x1b4c81[_0x25bdac(_0x582457._0x397a5c,0x1a5,-_0x582457._0x23211e,0xad)]??'?')+_0x25bdac(-_0x582457._0x15e863,-0x2ec,-0x37,-0x183),{'shellId':_0x1b4c81[_0x25bdac(-_0x582457._0x2bb136,_0x582457._0x2a3ac3,-0x66,_0x582457._0x31965c)],'status':_0x1b4c81['status'],'command':_0x1b4c81[_0x25bdac(-0x1b6,0x26,_0x582457._0x2a8e2f,-_0x582457._0x19b707)],'description':_0x9707e7[_0x25bdac(-_0x582457._0x23435e,-_0x582457._0x2a20ff,_0x582457._0xa18d1d,-_0x582457._0x49c714)],'cwd':_0x1b4c81[_0x25bdac(-_0x582457._0x5be6ec,-_0x582457._0x3d88f7,-0x56,-0xd8)],'pid':_0x1b4c81[_0x25bdac(-_0x582457._0x2951bd,-_0x582457._0x5f28bc,-_0x582457._0x58ff08,_0x582457._0x49bacd)]??null});}let _0x51c5ca;try{_0x51c5ca=_0x3f73df(_0x1fbfd7,_0x2cf4f0,{'cwd':_0x3d9b5d,'env':buildChildEnv(_0x3af924[_0x25bdac(-_0x582457._0x4fa914,-_0x582457._0x15b480,-0x23f,-_0x582457._0x979f39)],_0x2b8b68),'stdio':_0x31d81a?[_0x4c9008(0x231,_0x582457._0x89a4e,_0x582457._0x16e477,0x351),_0x4c9008(_0x582457._0x1b1523,0x421,_0x582457._0x4fd816,_0x582457._0x66e1a4),_0x4c9008(_0x582457._0x5d843d,_0x582457._0x1f4aa3,0x27e,0x351)]:[_0x25bdac(0x211,_0x582457._0x161298,0x14,_0x582457._0x23e99d),_0x4c9008(0xc6,_0x582457._0x5f408d,0x304,_0x582457._0x5d9974),_0x4c9008(0x1b5,_0x582457._0x1309c5,0x97,_0x582457._0x5d9974)],'shell':![],'windowsHide':!![],'detached':!_0x12f36b});}catch(_0x2c9050){throw mapSpawnError(_0x2c9050,{'command':_0x9707e7[_0x25bdac(-0x1c1,-_0x582457._0x56d919,-_0x582457._0x45e14d,-0x12e)],'cwd':_0x3d9b5d,'shellPath':_0x1fbfd7});}const _0x156c19=[],_0x923d4d=[],_0x10243d=new _0x1628c2(_0x4c9008(0x22f,_0x582457._0x431c50,_0x582457._0x323c27,_0x582457._0x1a25be)),_0x44e8fb=new _0x1628c2(_0x4c9008(_0x582457._0x61dda,0x350,_0x582457._0x3246cf,0x321));let _0x18fcef,_0x32818c=![],_0x30606c;const _0xf557f7=()=>{if(!_0x18fcef)return;const _0x94c46b=_0x18fcef;_0x18fcef=void 0x0,_0x94c46b();},_0x5bd3ee=async()=>{if(_0x923d4d['length']>0x0||_0x32818c)return;await new Promise(_0x6e5d7b=>{_0x18fcef=_0x6e5d7b;});},_0x1deae7=_0x51cec8=>{function _0x225d5a(_0x3bb97b,_0x176713,_0xb3180f,_0xb497de){return _0x25bdac(_0x3bb97b,_0x176713-_0x475f1b._0x5b4aca,_0xb3180f-0x1ec,_0x176713-0x41f);}appendChunk(_0x156c19,_0x923d4d,_0x10243d[_0x225d5a(0x52e,0x458,0x2eb,0x3e3)](_0x51cec8),_0xcb88,_0xf557f7);},_0x3b1fd8=_0x20b472=>{function _0x444cad(_0x3e0e45,_0x275efc,_0xe25100,_0x164980){return _0x25bdac(_0x3e0e45,_0x275efc-0x1db,_0xe25100-0x6d,_0xe25100-0x737);}appendChunk(_0x156c19,_0x923d4d,_0x44e8fb[_0x444cad(_0x4af4c4._0x21baaa,_0x4af4c4._0x166e10,0x770,0x68f)](_0x20b472),_0xcb88,_0xf557f7);};_0x51c5ca[_0x25bdac(-0x2f5,-0x185,-_0x582457._0x5328db,-0x19d)]?.['on'](_0x25bdac(_0x582457._0x2d06b8,_0x582457._0x375a53,_0x582457._0x21339e,0xd),_0x1deae7),_0x51c5ca[_0x4c9008(0x2c9,_0x582457._0x453e1f,_0x582457._0x57d1bc,_0x582457._0x1d6bac)]?.['on'](_0x25bdac(-0x39,_0x582457._0x13d82d,0x159,_0x582457._0x495b92),_0x3b1fd8);let _0x1d6810=![],_0x1cd668;const _0x3a9faf=addAbortListener(_0x5611a2[_0x25bdac(-_0x582457._0x2a6feb,-_0x582457._0x361be6,0xb8,-0x86)],()=>{_0x30606c=toAbortError(_0x5611a2[_0x292f4d(_0x355e83._0x584d34,-0x6b,_0x355e83._0xa737b1,-_0x355e83._0x2c73b1)]['reason']);function _0x292f4d(_0x417d95,_0x41c259,_0x586d10,_0x1104fa){return _0x4c9008(_0x1104fa,_0x41c259-_0x41362b._0x2445bd,_0x586d10-_0x41362b._0x4efe46,_0x41c259- -0x27f);}_0x32818c=!![],_0xf557f7();try{killProcessGroup(_0x51c5ca,_0x12f36b);}catch{}});try{const _0x42a749=new Promise((_0x547689,_0x40541c)=>{const _0x5091b9={_0x142585:0x37d,_0x302dab:0x242},_0x403789={_0xf2cc97:0xa1},_0x212876=()=>{const _0x130853={_0xfa73ea:0x3ad};_0x1cd668&&(clearTimeout(_0x1cd668),_0x1cd668=void 0x0);function _0x2ce50b(_0x37f140,_0x23afa3,_0x154bd6,_0x397ca9){return _0x1df5(_0x23afa3- -0xe,_0x397ca9);}function _0xf3f228(_0x31b483,_0x680de,_0x418359,_0x42201e){return _0x1df5(_0x680de- -_0x130853._0xfa73ea,_0x418359);}_0x51c5ca[_0x2ce50b(0x181,_0x4104dc._0x15c7cf,_0x4104dc._0x4ccec5,_0x4104dc._0x5851d9)](_0x2ce50b(0x206,0x301,0x45d,_0x4104dc._0x45aae9),_0x470e83),_0x51c5ca[_0x2ce50b(_0x4104dc._0x1d2d69,_0x4104dc._0x15c7cf,_0x4104dc._0x493b37,_0x4104dc._0x272e16)](_0xf3f228(-_0x4104dc._0x35407b,-0x1a6,-_0x4104dc._0x2f68fa,-0x180),_0x2e67b1);},_0x470e83=_0x4c01b5=>{_0x32818c=!![],_0xf557f7(),_0x212876(),_0x40541c(_0x30606c??_0x4c01b5);};function _0x1391f0(_0x1c4845,_0x4a54ae,_0x447974,_0xd1b944){return _0x25bdac(_0x1c4845,_0x4a54ae-0x108,_0x447974-0x1f1,_0x447974-_0x320c85._0x54a9ab);}function _0x82dd50(_0x3bf369,_0x46a35b,_0x1578ec,_0x45d4f6){return _0x25bdac(_0x46a35b,_0x46a35b-0x195,_0x1578ec-0x7c,_0x1578ec-0x359);}const _0x2e67b1=(_0x25d6a5,_0x3752c8)=>{_0x1d6810=!![];function _0xa026db(_0x5bb466,_0x2ef14e,_0x48caa1,_0x31bb4c){return _0x1df5(_0x2ef14e-_0x403789._0xf2cc97,_0x5bb466);}appendChunk(_0x156c19,_0x923d4d,_0x10243d['end'](),_0xcb88,_0xf557f7),appendChunk(_0x156c19,_0x923d4d,_0x44e8fb[_0xa026db(0x33d,_0x5091b9._0x142585,0x4de,_0x5091b9._0x302dab)](),_0xcb88,_0xf557f7),_0x32818c=!![],_0xf557f7(),_0x212876();if(_0x30606c){_0x40541c(_0x30606c);return;}_0x547689({'code':_0x25d6a5,'signal':_0x3752c8});};_0x1cd668=setTimeout(()=>{function _0x6590ef(_0x54dde5,_0x214216,_0x1f3f3f,_0x145b3d){return _0x1df5(_0x54dde5-0xd3,_0x1f3f3f);}_0x32818c=!![],_0xf557f7();function _0x5773ce(_0x1b5386,_0x9f3f41,_0x27914d,_0xd546e6){return _0x1df5(_0x27914d- -0x49,_0x1b5386);}_0x212876();try{killProcessGroup(_0x51c5ca,_0x12f36b);}catch{}_0x40541c(new ToolExecutionError(_0x6590ef(0x331,0x1fe,0x1e5,_0x49ba47._0x58cba7)+_0x6855b3+'\x20ms',{'command':_0x9707e7[_0x5773ce(0x1b1,0x120,0x1f5,_0x49ba47._0x45cfa1)],'cwd':_0x3d9b5d,'shellPath':_0x1fbfd7,'timeoutMs':_0x6855b3,'timedOut':!![]}));},_0x6855b3),_0x51c5ca[_0x82dd50(0x1d2,_0x53e2f3._0x37db44,0x268,_0x53e2f3._0x4cd1be)](_0x1391f0(0x76f,_0x53e2f3._0x29cce,_0x53e2f3._0x36e9dc,0x6d3),_0x470e83),_0x51c5ca[_0x1391f0(_0x53e2f3._0x135870,_0x53e2f3._0x4b0b5d,0x5b8,0x44e)](_0x82dd50(0x9e,0x348,_0x53e2f3._0x874cc9,0x98),_0x2e67b1);});while(_0x923d4d['length']>0x0||!_0x32818c){if(_0x923d4d['length']===0x0){await _0x5bd3ee();continue;}const _0x37d50e=_0x923d4d[_0x25bdac(_0x582457._0x145e5c,-0x134,-_0x582457._0xc4c37f,-0x40)]();_0x37d50e!==void 0x0&&(yield _0x37d50e);}const _0x43fac2=await _0x42a749,_0x5acb2e=_0x31d81a?_0x4c9008(0x271,_0x582457._0x3aa7e8,0x1e0,_0x582457._0x428bdf)+(_0x43fac2[_0x25bdac(_0x582457._0x5c3826,_0x582457._0x15c06e,_0x582457._0x42de7a,-_0x582457._0x4133ad)]??0x0):_0x156c19[_0x25bdac(-_0x582457._0x480cc5,-0xc1,_0x582457._0x1d019a,0x5)](''),_0x20b087={'command':_0x9707e7[_0x4c9008(_0x582457._0x1454d0,0x29e,0xe3,0x16c)],'description':_0x9707e7['description'],'cwd':_0x3d9b5d,'exitCode':_0x43fac2[_0x25bdac(-_0x582457._0x40921b,-_0x582457._0xd68754,-_0x582457._0x486368,-0xb8)]??0x0,'signal':_0x43fac2[_0x4c9008(0x289,0x334,_0x582457._0x2cbd48,_0x582457._0x5bf336)],'ignoreOutput':_0x31d81a,'shellPath':_0x1fbfd7,'timeoutMs':_0x6855b3};if(_0x43fac2['code']!==0x0)throw new ToolExecutionError(_0x5acb2e||_0x25bdac(-_0x582457._0x3816c2,0xe0,-0x97,-_0x582457._0x3d2d56)+(_0x43fac2[_0x4c9008(_0x582457._0x18b34a,_0x582457._0x109218,_0x582457._0x19f685,_0x582457._0xa2eda)]??0x0),_0x20b087);return createToolOutput(_0x5acb2e,_0x20b087);}catch(_0xf9ae72){while(_0x923d4d[_0x25bdac(-0x72,_0x582457._0x161298,0x1d9,0x64)]>0x0){const _0x423538=_0x923d4d[_0x25bdac(-0xeb,0x102,0xd8,-_0x582457._0x40970b)]();_0x423538!==void 0x0&&(yield _0x423538);}if(_0xf9ae72 instanceof ToolExecutionError)throw _0xf9ae72;if(_0x30606c)throw _0x30606c;throw mapSpawnError(_0xf9ae72,{'command':_0x9707e7[_0x25bdac(-_0x582457._0x12272f,-_0x582457._0x3a8abc,-0x6d,-_0x582457._0x68071c)],'cwd':_0x3d9b5d,'shellPath':_0x1fbfd7});}finally{_0x1cd668&&clearTimeout(_0x1cd668);_0x3a9faf(),_0x51c5ca[_0x25bdac(-0x2f4,-_0x582457._0x3ff171,-0x2f4,-_0x582457._0x20d108)]?.[_0x4c9008(0x136,_0x582457._0x2d0989,-0x43,0x87)](_0x25bdac(-_0x582457._0x5efdae,0xd2,0x81,_0x582457._0x255378),_0x1deae7),_0x51c5ca[_0x4c9008(0x16f,0x193,_0x582457._0x2ef841,0x22b)]?.[_0x25bdac(-0x204,-_0x582457._0x2f7b90,-0x206,-_0x582457._0x1992cd)](_0x4c9008(_0x582457._0x5a49f8,_0x582457._0x1f5b41,_0x582457._0x4211a4,0x2a7),_0x3b1fd8);if(!_0x1d6810&&_0x51c5ca[_0x4c9008(0x266,0x2dc,_0x582457._0x8ced5e,_0x582457._0x55d08c)]&&!_0x51c5ca[_0x25bdac(-_0x582457._0xef8588,-_0x582457._0x1eb021,-0x37,-_0x582457._0x58157c)])try{killProcessGroup(_0x51c5ca,_0x12f36b);}catch{}}}});}function createShellExecTool(_0x421cf6={}){return createBashTool(_0x421cf6);}import{readdir,readFile as _0x2c135d}from'fs/promises';import{extname,join as _0x5cf888}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x28c688,join,relative as _0x8d0282,resolve as _0x27e096}from'path';import{readdir as _0x190b01,readFile as _0x21f55d}from'fs/promises';import{join as _0x4a3a0a,relative as _0xf6b7c2,sep}from'path';import{delimiter}from'path';import{mkdir as _0x41ff22,rm,stat as _0x3a14d5,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x40aefb}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x3cb12c,rename,writeFile as _0x111999}from'fs/promises';import{homedir as _0x4ba8ff}from'os';import{dirname as _0x3df55c,isAbsolute as _0x51d4f3,join as _0xc8900f,resolve as _0x267582}from'path';import{parse as _0x4215e6,stringify as _0x42951b}from'yaml';import{cp,mkdir as _0x5389f8,readFile as _0x13c19e,rm as _0x43f075,writeFile as _0x3b298e}from'fs/promises';import{homedir}from'os';import{join as _0x54c24a}from'path';import{parse as _0x548b3a,stringify as _0x4f27f3}from'yaml';import{z}from'zod';import{readdir as _0x5b146b,readFile as _0x4f9186}from'fs/promises';import{join as _0xd682d7}from'path';import{mkdir as _0x133d15,readFile as _0x3279a1,rm as _0x184c5b,writeFile as _0x4e699f}from'fs/promises';import{homedir as _0x2788df}from'os';import{basename,isAbsolute as _0x42a362,join as _0xc76d2d,relative as _0x5c66c1,resolve as _0x2a877c}from'path';import{parse as _0x52ae06,stringify as _0x217171}from'yaml';import{delimiter as _0x5a4132,resolve as _0x2dc4d8}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x363d65){const _0x7a49d9={_0x2c251d:0xba,_0x16c615:0x739,_0x28025f:0x7a4,_0x26c6fc:0x7cb,_0x23ec50:0x8b2,_0x44572a:0x88c,_0x5c2772:0x175,_0x49f4a2:0x1b8,_0x4fb4a3:0x10,_0x3b400e:0x93,_0xd1e964:0x60},_0x26237b={_0x3838f4:0x283},_0x3f30ae={_0x23f20e:0x26},_0x52b0b9=[];let _0x4a5c67='';function _0x106419(_0x47cadf,_0x1f95de,_0x10db98,_0x5e5a68){return _0x257320(_0x47cadf-_0x3f30ae._0x23f20e,_0x1f95de-0x1be,_0x1f95de- -0x30b,_0x10db98);}let _0x52d29d=0x0;while(_0x52d29d<_0x363d65[_0x106419(0x374,0x216,0x338,_0x7a49d9._0x2c251d)]){const _0x4b44d6=_0x363d65[_0x52d29d];if(_0x4b44d6==='\x5c'&&_0x52d29d+0x1<_0x363d65[_0x12599c(0x894,_0x7a49d9._0x16c615,_0x7a49d9._0x28025f,_0x7a49d9._0x26c6fc)])_0x4a5c67+=_0x363d65[_0x52d29d+0x1],_0x52d29d+=0x2;else{if(_0x4b44d6==='\x22'||_0x4b44d6==='\x27'){const _0x39daea=_0x4b44d6;_0x52d29d++;while(_0x52d29d<_0x363d65[_0x12599c(0x648,0x84b,0x7a4,_0x7a49d9._0x23ec50)]&&_0x363d65[_0x52d29d]!==_0x39daea){_0x363d65[_0x52d29d]==='\x5c'&&_0x52d29d+0x1<_0x363d65[_0x12599c(_0x7a49d9._0x44572a,0x6b0,0x7a4,0x8fd)]?(_0x4a5c67+=_0x363d65[_0x52d29d+0x1],_0x52d29d+=0x2):(_0x4a5c67+=_0x363d65[_0x52d29d],_0x52d29d++);}_0x52d29d++;}else _0x4b44d6!==void 0x0&&/\s/[_0x106419(0x247,_0x7a49d9._0x5c2772,_0x7a49d9._0x49f4a2,_0x7a49d9._0x4fb4a3)](_0x4b44d6)?(_0x4a5c67&&(_0x52b0b9[_0x106419(0xb9,0x60,-_0x7a49d9._0x3b400e,-0x1d)](_0x4a5c67),_0x4a5c67=''),_0x52d29d++):(_0x4a5c67+=_0x4b44d6,_0x52d29d++);}}function _0x12599c(_0x1b6a02,_0x5e9ae0,_0x427564,_0x2bfbd6){return _0x257320(_0x1b6a02-0x185,_0x5e9ae0-0x109,_0x427564-_0x26237b._0x3838f4,_0x2bfbd6);}if(_0x4a5c67)_0x52b0b9[_0x106419(0x189,_0x7a49d9._0xd1e964,-0x7,0x87)](_0x4a5c67);return _0x52b0b9;}function renderCommandInstructions(_0x3a885b){const _0x3f032b={_0x3e981e:0x527,_0x1e097d:0x4fa,_0x5edb30:0x496,_0x2b4de3:0x51b,_0x2265e4:0x344,_0x331425:0x403,_0x4d9333:0x1f9,_0x331fdc:0x1d5,_0x4c80e4:0x411,_0x55df8f:0x3ab,_0xfe8da3:0x394,_0x308be5:0x337,_0x51ebea:0x1cb,_0x140a9c:0x1d5,_0x18143b:0x628,_0x536ee9:0x5ae,_0x5b6989:0x352,_0x8f42c4:0x19f,_0x57d423:0xb6,_0x2afa84:0x136,_0x4f5180:0x33f,_0x586198:0x2ee,_0x1575fc:0x1d8,_0x1533fa:0x2c0},_0xc8a11e={_0x2b33e1:0xf},_0xfb090a={_0x205370:0x407,_0x3bebd1:0x40f,_0x5c03ed:0x2f7},_0x3baf75={_0xcfaae1:0x18d};let _0x416a12=_0x3a885b[_0x2c8c2f(0x226,0x30,0x2c4,0x1a2)],_0x5b18b2=![];const _0x7adcdd=tokenizeCommandArguments(_0x3a885b[_0x2c8285(_0x3f032b._0x3e981e,_0x3f032b._0x1e097d,0x5a2,_0x3f032b._0x5edb30)]);function _0x2c8c2f(_0xc0c8e5,_0x3808a7,_0x32a626,_0x359d2a){return _0x257320(_0xc0c8e5-0x43,_0x3808a7-0x1e4,_0x359d2a- -_0x3baf75._0xcfaae1,_0x32a626);}_0x416a12=_0x416a12[_0x2c8c2f(0x516,0x2fb,_0x3f032b._0x2b4de3,0x403)](/\$ARGUMENTS\[(\d+)\]/g,(_0x48c732,_0x493eb8)=>{return _0x5b18b2=!![],_0x7adcdd[Number(_0x493eb8)]??'';}),_0x416a12=_0x416a12[_0x2c8c2f(0x320,0x2e3,_0x3f032b._0x2265e4,_0x3f032b._0x331425)](/\$ARGUMENTS\b/g,()=>{const _0x272ab1={_0x246ba6:0x191,_0xd1b40b:0x87};function _0x37324c(_0x1a8af4,_0x1f4333,_0x106774,_0x484a1a){return _0x2c8285(_0x1a8af4-_0x272ab1._0x246ba6,_0x1f4333-0x6f,_0x1a8af4,_0x106774- -_0x272ab1._0xd1b40b);}return _0x5b18b2=!![],_0x3a885b[_0x37324c(_0xfb090a._0x205370,0x2fc,_0xfb090a._0x3bebd1,_0xfb090a._0x5c03ed)];});if(_0x3a885b[_0x2c8c2f(0x243,_0x3f032b._0x4d9333,0x2cb,_0x3f032b._0x331fdc)]&&_0x3a885b[_0x2c8285(0x267,0x45d,0x500,0x3ab)]['length']>0x0)for(let _0x2a77ad=0x0;_0x2a77ad<_0x3a885b[_0x2c8285(0x43c,0x3f4,_0x3f032b._0x4c80e4,_0x3f032b._0x55df8f)][_0x2c8c2f(0x37e,_0x3f032b._0xfe8da3,0x463,0x394)];_0x2a77ad++){const _0x35362d=_0x3a885b[_0x2c8c2f(_0x3f032b._0x308be5,_0x3f032b._0x51ebea,0x1b1,_0x3f032b._0x140a9c)][_0x2a77ad];if(_0x35362d){const _0x58a4f7=new RegExp('\x5c$'+_0x35362d+'\x5cb','g');_0x416a12=_0x416a12[_0x2c8285(0x536,_0x3f032b._0x18143b,0x4bb,0x5d9)](_0x58a4f7,()=>{return _0x5b18b2=!![],_0x7adcdd[_0x2a77ad]??'';});}}function _0x2c8285(_0xafb58,_0x300c75,_0x539d9d,_0x442083){return _0x257320(_0xafb58-_0xc8a11e._0x2b33e1,_0x300c75-0xb5,_0x442083-0x49,_0x539d9d);}return _0x416a12=_0x416a12[_0x2c8c2f(0x553,0x3b8,0x3e0,_0x3f032b._0x331425)](/\$(\d+)\b/g,(_0xa1a57,_0x40ff49)=>{return _0x5b18b2=!![],_0x7adcdd[Number(_0x40ff49)]??'';}),!_0x5b18b2&&_0x3a885b[_0x2c8285(_0x3f032b._0x536ee9,0x5f8,_0x3f032b._0x5b6989,_0x3f032b._0x5edb30)][_0x2c8c2f(_0x3f032b._0x8f42c4,_0x3f032b._0x57d423,0x74,_0x3f032b._0x2afa84)]()&&(_0x416a12=_0x416a12+_0x2c8285(0x3e5,0x2b5,_0x3f032b._0x4f5180,_0x3f032b._0x586198)+_0x3a885b[_0x2c8c2f(0x2f8,0x25b,_0x3f032b._0x1575fc,_0x3f032b._0x1533fa)]),_0x416a12;}var PROVIDER_API_KEY_ENVS=[{'env':_0x3342ed(0x419,0x2af,0x38b,0x466),'provider':_0x257320(0x476,0x246,0x388,0x3d4)},{'env':'ANTHROPIC_API_KEY','provider':_0x257320(0x4ea,0x491,0x528,0x63c)},{'env':_0x3342ed(0x5dd,0x4cd,0x4c7,0x410),'provider':_0x257320(0x3b6,0x213,0x2c1,0x386)},{'env':'GITHUB_TOKEN','provider':_0x3342ed(0x29e,0x37d,0x235,0x35c)},{'env':_0x257320(0x38b,0x327,0x464,0x305),'provider':'deepinfra'},{'env':'ZAI_API_KEY','provider':_0x3342ed(0x458,0x43c,0x431,0x573)},{'env':_0x257320(0x4e2,0x4ab,0x3a1,0x4d8),'provider':_0x3342ed(0x455,0x2cd,0x396,0x2e2)},{'env':_0x257320(0x357,0x353,0x325,0x20d),'provider':_0x3342ed(0x2e9,0x1c2,0x335,0x463)},{'env':'KIMI_API_KEY','provider':'kimi'},{'env':'OPENAI_API_KEY','provider':_0x257320(0x445,0x4ad,0x529,0x56f)},{'env':'DEEPSEEK_API_KEY','provider':'deepseek'}],PROVIDER_API_KEY_ENV_NAMES=PROVIDER_API_KEY_ENVS[_0x257320(0x1e9,0x255,0x31d,0x1f6)](_0x131cf9=>_0x131cf9[_0x257320(0x235,0x369,0x3a7,0x4bc)]),SCRUBBED_ENV_KEYS=[...PROVIDER_API_KEY_ENV_NAMES,_0x257320(0x3a9,0x209,0x2b2,0x409),_0x3342ed(0x2ad,0x377,0x275,0x14a),_0x3342ed(0x491,0x404,0x4b2,0x453)];function _0x3342ed(_0xe1e24c,_0x1841e0,_0x35a439,_0x59b1e9){return _0x1df5(_0x35a439-0xc5,_0x1841e0);}var chatModelAuthSchemeSchema=z[_0x3342ed(0x28e,0x445,0x3ef,0x2c2)]([_0x3342ed(0x2ce,0x37b,0x3d0,0x358),'x-api-key']),apiKeyAuthSchema=z[_0x3342ed(0x109,0x385,0x264,0x3a2)]({'type':z[_0x3342ed(0x43e,0x24c,0x392,0x4b7)](_0x257320(0x414,0x3b6,0x2c2,0x3a6)),'apiKey':z[_0x257320(0x495,0x609,0x518,0x4e1)](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x257320(0x543,0x40f,0x47e,0x4bd)](),oauthAuthSchema=z[_0x3342ed(0x289,0x1df,0x264,0x2d6)]({'type':z[_0x257320(0x46a,0x535,0x41e,0x3b7)](_0x257320(0x61e,0x638,0x56b,0x54f)),'access':z[_0x257320(0x4c7,0x3ba,0x518,0x55e)](),'refresh':z[_0x3342ed(0x5b3,0x5ab,0x48c,0x536)](),'expires':z[_0x3342ed(0x2d2,0x217,0x332,0x34f)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x257320(0x3d6,0x344,0x48b,0x4ec)]()})['passthrough'](),authMethodSchema=z[_0x257320(0x4e3,0x466,0x3c4,0x298)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z['string'](),'name':z[_0x3342ed(0x4e9,0x3fc,0x48c,0x38f)]()[_0x257320(0x530,0x533,0x48b,0x4b2)]()})['passthrough'](),modelConfigSchema=z['union']([z['literal'](![]),z['literal'](!![]),z[_0x3342ed(0x37b,0x598,0x48c,0x3a8)](),z['array'](z[_0x3342ed(0x39f,0x5de,0x48c,0x446)]()),z[_0x257320(0x451,0x544,0x591,0x460)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x3342ed(0x357,0x311,0x3ef,0x4e2)]([_0x3342ed(0x421,0x5cc,0x4bc,0x5a5),_0x257320(0x30b,0x424,0x402,0x308),_0x3342ed(0x218,0x265,0x377,0x429),_0x257320(0x415,0x675,0x52c,0x67f)]),providerConfigSchema=z[_0x3342ed(0x1d8,0x290,0x264,0x3ab)]({'apiKey':z['string']()[_0x257320(0x5c6,0x57f,0x48b,0x3b9)](),'token':z[_0x257320(0x540,0x49f,0x518,0x431)]()[_0x257320(0x4b5,0x491,0x48b,0x45b)](),'defaultModel':z[_0x3342ed(0x352,0x3d8,0x48c,0x5a4)]()['optional'](),'smallModel':z[_0x3342ed(0x4e3,0x5d3,0x48c,0x415)]()[_0x257320(0x58d,0x536,0x48b,0x554)](),'currentAuth':z[_0x257320(0x404,0x51b,0x518,0x466)]()['optional'](),'auth':z[_0x257320(0x671,0x4d0,0x591,0x45d)](authMethodSchema)[_0x257320(0x477,0x5aa,0x48b,0x539)](),'surface':chatModelSurfaceSchema[_0x3342ed(0x55f,0x303,0x3ff,0x42e)](),'baseUrl':z['string']()[_0x257320(0x41e,0x31f,0x48b,0x312)](),'models':modelConfigSchema['optional'](),'customHeaders':z[_0x3342ed(0x467,0x4f4,0x410,0x4f3)](z[_0x257320(0x461,0x624,0x518,0x50a)](),z['string']())['optional']()})[_0x257320(0x4b5,0x559,0x47e,0x34d)](),mcpServerConfigSchema=z[_0x3342ed(0x2cf,0x14e,0x264,0x1c0)]({'command':z[_0x3342ed(0x488,0x5a1,0x48c,0x578)]()[_0x257320(0x5eb,0x4c4,0x48b,0x4b7)](),'args':z[_0x3342ed(0x3ac,0x5ee,0x505,0x477)](z[_0x257320(0x652,0x5d8,0x518,0x658)]())[_0x257320(0x42c,0x5a6,0x48b,0x5be)](),'env':z[_0x257320(0x50b,0x577,0x49c,0x4ce)](z['string'](),z[_0x3342ed(0x591,0x4c9,0x48c,0x580)]())['optional'](),'transport':z['enum']([_0x3342ed(0x1b0,0x16e,0x256,0x1e1),_0x257320(0x5b8,0x516,0x575,0x677)])['optional'](),'url':z[_0x257320(0x662,0x50b,0x518,0x4f6)]()[_0x257320(0x446,0x3b2,0x48b,0x5c7)](),'headers':z[_0x257320(0x580,0x571,0x49c,0x5e8)](z[_0x257320(0x602,0x411,0x518,0x62e)](),z[_0x3342ed(0x339,0x459,0x48c,0x334)]())[_0x3342ed(0x471,0x4d3,0x3ff,0x3ca)](),'prefix':z[_0x257320(0x639,0x591,0x518,0x4e5)]()['optional'](),'timeoutMs':z[_0x257320(0x37b,0x28f,0x3be,0x2a4)]()['optional'](),'enabled':z[_0x257320(0x35e,0x2f6,0x365,0x391)]()[_0x3342ed(0x2bd,0x3cc,0x3ff,0x40f)](),'auth':z[_0x3342ed(0xed,0x267,0x264,0x361)]({'type':z[_0x3342ed(0x4e3,0x337,0x3ef,0x325)]([_0x257320(0x39e,0x491,0x370,0x2ee),'bearer',_0x3342ed(0x657,0x595,0x4df,0x3d2)]),'token':z[_0x257320(0x529,0x4c8,0x518,0x65a)]()[_0x3342ed(0x3a4,0x3ad,0x3ff,0x3e4)](),'oauth':z[_0x257320(0x43b,0x18a,0x2f0,0x2bf)]({'clientId':z[_0x3342ed(0x381,0x407,0x48c,0x578)]()[_0x3342ed(0x3cc,0x3ed,0x3ff,0x34f)](),'clientMetadataUrl':z['string']()[_0x257320(0x424,0x4e6,0x48b,0x528)](),'authorizationServer':z['string']()[_0x3342ed(0x525,0x288,0x3ff,0x3b5)](),'scopes':z['array'](z[_0x257320(0x3a9,0x487,0x518,0x433)]())['optional'](),'tokenStorageKey':z[_0x3342ed(0x49f,0x543,0x48c,0x5b7)]()['optional']()})[_0x3342ed(0x50a,0x453,0x3f2,0x50c)]()[_0x3342ed(0x41f,0x48c,0x3ff,0x387)]()})[_0x3342ed(0x2b6,0x489,0x3f2,0x2b2)]()[_0x257320(0x457,0x3f7,0x48b,0x4fa)]()})[_0x3342ed(0x34d,0x550,0x3f2,0x4c3)](),mcpSettingsSchema=z['object']({'servers':z[_0x257320(0x5ee,0x509,0x49c,0x540)](z[_0x3342ed(0x4c6,0x410,0x48c,0x4b6)](),mcpServerConfigSchema)[_0x3342ed(0x303,0x454,0x3ff,0x4bf)](),'allowedTools':z[_0x257320(0x451,0x48f,0x49c,0x4e7)](z[_0x3342ed(0x43d,0x5f5,0x48c,0x424)](),z['record'](z[_0x3342ed(0x59c,0x532,0x48c,0x448)](),z[_0x3342ed(0x1e5,0x203,0x2d9,0x37a)]()))[_0x3342ed(0x522,0x531,0x3ff,0x43b)](),'defaultTimeoutMs':z[_0x257320(0x363,0x47d,0x3be,0x492)]()['optional']()})[_0x257320(0x4d4,0x309,0x47e,0x590)](),skillsSettingsSchema=z[_0x3342ed(0x390,0x1b9,0x264,0x1c5)]({'enabled':z['boolean']()[_0x257320(0x5ba,0x3d0,0x48b,0x354)](),'includeDefaults':z['boolean']()[_0x3342ed(0x44f,0x3f1,0x3ff,0x3c2)](),'directories':z[_0x257320(0x69a,0x4c4,0x591,0x50c)](z[_0x257320(0x4fb,0x570,0x518,0x620)]())['optional'](),'exclude':z[_0x3342ed(0x4b9,0x4ec,0x505,0x45d)](z[_0x3342ed(0x327,0x5b2,0x48c,0x58a)]())[_0x257320(0x3b7,0x54b,0x48b,0x39b)]()})['passthrough'](),commandsSettingsSchema=z[_0x3342ed(0x1c0,0x150,0x264,0x32f)]({'enabled':z[_0x3342ed(0x2c5,0x235,0x2d9,0x267)]()[_0x257320(0x340,0x566,0x48b,0x4e2)](),'directories':z[_0x3342ed(0x422,0x664,0x505,0x64f)](z[_0x3342ed(0x517,0x44a,0x48c,0x5f8)]())['optional']()})[_0x3342ed(0x339,0x492,0x3f2,0x4d2)](),agentsSettingsSchema=z['object']({'enabled':z['boolean']()[_0x3342ed(0x4ca,0x336,0x3ff,0x4c6)](),'includeDefaults':z[_0x257320(0x4d0,0x2aa,0x365,0x426)]()['optional'](),'directories':z[_0x3342ed(0x5fc,0x4f6,0x505,0x5d3)](z[_0x3342ed(0x40c,0x332,0x48c,0x343)]())['optional']()})[_0x3342ed(0x490,0x390,0x3f2,0x559)](),uiThemeSettingsSchema=z[_0x3342ed(0x363,0x176,0x264,0x35a)]({'mode':z[_0x257320(0x44d,0x430,0x47b,0x30f)]([_0x3342ed(0x2cf,0x30f,0x384,0x358),_0x3342ed(0x431,0x416,0x41e,0x342),_0x3342ed(0x23c,0x3c7,0x25e,0x2d0)])[_0x3342ed(0x3e2,0x337,0x3ff,0x3a3)](),'colorLevel':z['enum']([_0x3342ed(0x3b3,0x2c1,0x384,0x3dc),'none',_0x3342ed(0x307,0x17f,0x2ce,0x1b2),_0x3342ed(0x363,0x26f,0x22f,0x15f),_0x257320(0x32e,0x587,0x47c,0x3a7)])[_0x3342ed(0x28c,0x320,0x3ff,0x31b)](),'backgrounds':z[_0x257320(0x4de,0x562,0x47b,0x402)]([_0x257320(0x337,0x4ab,0x410,0x450),'on',_0x257320(0x391,0x2c3,0x2aa,0x366)])[_0x3342ed(0x379,0x2c5,0x3ff,0x3cb)](),'messageStyle':z[_0x3342ed(0x4e7,0x2c6,0x3ef,0x4fb)]([_0x257320(0x490,0x489,0x515,0x3fb),'boxed'])[_0x257320(0x573,0x4f0,0x48b,0x4a5)]()})['passthrough'](),statuslineSegmentSchema=z[_0x3342ed(0x2e2,0x32a,0x3ef,0x2f2)](['model','session',_0x3342ed(0x1ee,0x2ce,0x363,0x375),_0x257320(0x485,0x4fe,0x3a6,0x32a),_0x257320(0x5f3,0x599,0x540,0x41f),_0x3342ed(0x34f,0x59b,0x476,0x4f4),_0x3342ed(0x3cd,0x244,0x2b8,0x351),'requests',_0x3342ed(0x244,0x4b0,0x35a,0x3d7),_0x3342ed(0x589,0x5bf,0x4ba,0x525),_0x257320(0x46b,0x2a6,0x3a8,0x2c6),_0x257320(0x362,0x23a,0x2bc,0x3a8),_0x257320(0x3e0,0x4a2,0x508,0x42b),'memory',_0x257320(0x481,0x31f,0x39f,0x3e3)]),statuslineItemSchema=z[_0x257320(0x532,0x26f,0x3c4,0x25c)]([statuslineSegmentSchema,z['literal']('|')]),statuslineRowSchema=z[_0x257320(0x665,0x57b,0x591,0x709)](statuslineItemSchema);function _0x257320(_0x49fac8,_0x3b91d4,_0x29729b,_0xc6658c){return _0x1df5(_0x29729b-0x151,_0xc6658c);}var statuslineConfigSchema=z['object']({'rows':z['tuple']([statuslineRowSchema,statuslineRowSchema])[_0x3342ed(0x542,0x570,0x3ff,0x2d0)]()})[_0x3342ed(0x429,0x3af,0x3f2,0x4be)](),memorySettingsSchema=z[_0x257320(0x2ce,0x17c,0x2f0,0x3a8)]({'version':z[_0x257320(0x34c,0x4ac,0x41e,0x564)](0x2)[_0x257320(0x430,0x56c,0x48b,0x52c)](),'retrieval':z[_0x3342ed(0x24c,0x23e,0x264,0x207)]({'engine':z[_0x257320(0x436,0x509,0x41e,0x344)](_0x3342ed(0x446,0x353,0x39c,0x44f))[_0x257320(0x574,0x4f3,0x48b,0x50d)](),'candidateLimit':z[_0x3342ed(0x3b6,0x36f,0x332,0x21a)]()[_0x257320(0x5bb,0x3c3,0x48b,0x509)](),'activeCandidateLimit':z['number']()['optional'](),'activeEnabled':z[_0x257320(0x1f4,0x434,0x365,0x49a)]()['optional'](),'maxQueriesPerTurn':z[_0x3342ed(0x290,0x2da,0x332,0x3e4)]()[_0x3342ed(0x470,0x30a,0x3ff,0x2a5)](),'coreInjectTokenBudget':z[_0x3342ed(0x1d4,0x42b,0x332,0x460)]()[_0x3342ed(0x457,0x359,0x3ff,0x48b)](),'injectTokenBudget':z[_0x3342ed(0x306,0x3b4,0x332,0x3ec)]()[_0x3342ed(0x518,0x3d0,0x3ff,0x512)](),'minScore':z[_0x3342ed(0x4a7,0x47c,0x332,0x210)]()[_0x257320(0x43f,0x518,0x48b,0x336)](),'freshnessHalfLifeDays':z[_0x3342ed(0x376,0x20d,0x332,0x33b)]()[_0x257320(0x5ce,0x3a2,0x48b,0x448)]()})[_0x257320(0x4fc,0x362,0x47e,0x4bc)]()[_0x3342ed(0x362,0x2bc,0x3ff,0x4cd)](),'extraction':z[_0x3342ed(0x22f,0x331,0x264,0x1f9)]({'enabled':z[_0x3342ed(0x248,0x266,0x2d9,0x345)]()[_0x3342ed(0x308,0x42b,0x3ff,0x3ae)](),'provider':z[_0x257320(0x446,0x5da,0x518,0x5a5)]()[_0x3342ed(0x563,0x440,0x3ff,0x570)](),'model':z[_0x257320(0x488,0x5c7,0x518,0x40d)]()[_0x3342ed(0x289,0x2e7,0x3ff,0x2de)](),'sensitiveFilter':z['boolean']()[_0x257320(0x3d2,0x3a8,0x48b,0x371)]()})[_0x257320(0x5c1,0x4b3,0x47e,0x50e)]()['optional'](),'index':z[_0x3342ed(0x2aa,0x2b6,0x264,0x3d0)]({'persisted':z[_0x257320(0x2db,0x275,0x365,0x2aa)]()[_0x3342ed(0x30b,0x2bd,0x3ff,0x2b8)](),'flushIntervalMs':z[_0x3342ed(0x453,0x2ec,0x332,0x1eb)]()[_0x257320(0x556,0x39a,0x48b,0x519)]()})[_0x3342ed(0x2c7,0x45d,0x3f2,0x27f)]()[_0x257320(0x5de,0x45c,0x48b,0x56b)](),'enabled':z[_0x3342ed(0x3a5,0x177,0x2d9,0x340)]()[_0x257320(0x59b,0x3d4,0x48b,0x3d4)](),'saveTool':z[_0x3342ed(0x34d,0x3b3,0x2d9,0x31d)]()[_0x257320(0x341,0x560,0x48b,0x524)](),'model':z['string']()['optional'](),'provider':z[_0x257320(0x42a,0x3df,0x518,0x552)]()[_0x257320(0x532,0x314,0x48b,0x56f)](),'maxInjectionTokens':z[_0x257320(0x35d,0x436,0x3be,0x4ae)]()['optional'](),'backgroundExtraction':z['boolean']()[_0x3342ed(0x47c,0x322,0x3ff,0x383)]()})[_0x3342ed(0x505,0x2ae,0x3f2,0x33d)](),recentModelSchema=z[_0x257320(0x36c,0x38c,0x2f0,0x325)]({'provider':z[_0x257320(0x460,0x5af,0x518,0x3e9)](),'model':z[_0x257320(0x5c2,0x642,0x518,0x67a)](),'usedAt':z[_0x257320(0x4cb,0x35c,0x3be,0x333)]()})[_0x257320(0x525,0x571,0x47e,0x4fa)](),lspServerEntrySchema=z[_0x257320(0x3d9,0x206,0x2f0,0x3a4)]({'disabled':z[_0x257320(0x308,0x282,0x365,0x4d2)]()[_0x3342ed(0x2b4,0x46f,0x3ff,0x39d)](),'command':z['string']()[_0x257320(0x39d,0x51a,0x48b,0x425)](),'args':z['array'](z[_0x257320(0x567,0x425,0x518,0x5a7)]())[_0x3342ed(0x452,0x562,0x3ff,0x2ca)](),'rootMarkers':z[_0x3342ed(0x50e,0x623,0x505,0x3df)](z[_0x257320(0x4b1,0x5e7,0x518,0x62c)]())[_0x3342ed(0x3f8,0x496,0x3ff,0x54d)]()})[_0x257320(0x369,0x46a,0x47e,0x412)](),lspConfigSchema=z['object']({'enabled':z[_0x257320(0x2fd,0x4ce,0x365,0x493)]()[_0x257320(0x4c1,0x4c6,0x48b,0x429)](),'servers':z[_0x257320(0x504,0x4e4,0x49c,0x414)](z[_0x3342ed(0x3ce,0x590,0x48c,0x447)](),lspServerEntrySchema)[_0x257320(0x467,0x39c,0x48b,0x4d9)]()})[_0x257320(0x3e6,0x44f,0x47e,0x51e)](),serverEndpointSchema=z[_0x257320(0x2e3,0x364,0x2f0,0x1df)]({'url':z['string'](),'token':z[_0x257320(0x5fa,0x547,0x518,0x3ce)]()['optional']()})['passthrough'](),commandHookConfigSchema=z[_0x257320(0x1cc,0x42b,0x2f0,0x466)]({'type':z['literal']('command'),'command':z['string'](),'timeout':z['number']()[_0x257320(0x3a8,0x33b,0x48b,0x32d)]()}),hookMatcherGroupSchema=z[_0x257320(0x33a,0x1e0,0x2f0,0x408)]({'matcher':z['string']()[_0x3342ed(0x43f,0x43d,0x3ff,0x3e1)](),'hooks':z['array'](commandHookConfigSchema)}),hooksConfigSchema=z['object']({'PreToolUse':z[_0x257320(0x61d,0x65c,0x591,0x454)](hookMatcherGroupSchema)['optional'](),'PostToolUse':z[_0x257320(0x65d,0x447,0x591,0x59e)](hookMatcherGroupSchema)['optional'](),'UserPromptSubmit':z[_0x3342ed(0x43a,0x4fc,0x505,0x465)](hookMatcherGroupSchema)['optional'](),'Stop':z[_0x257320(0x46f,0x568,0x591,0x543)](hookMatcherGroupSchema)[_0x257320(0x436,0x430,0x48b,0x4f5)](),'Notification':z[_0x3342ed(0x40b,0x5f5,0x505,0x5b7)](hookMatcherGroupSchema)[_0x257320(0x47a,0x58a,0x48b,0x46d)](),'ToolApprovalRequest':z[_0x3342ed(0x52b,0x557,0x505,0x4a5)](hookMatcherGroupSchema)[_0x3342ed(0x499,0x55c,0x3ff,0x415)](),'SessionStart':z[_0x3342ed(0x48c,0x5ee,0x505,0x581)](hookMatcherGroupSchema)[_0x257320(0x44e,0x3b6,0x48b,0x3a4)](),'SessionEnd':z[_0x3342ed(0x608,0x423,0x505,0x517)](hookMatcherGroupSchema)[_0x3342ed(0x2d0,0x344,0x3ff,0x43f)]()}),cliConfigSchema=z[_0x3342ed(0x1c8,0x307,0x264,0x3a2)]({'activeProvider':z[_0x3342ed(0x443,0x4e8,0x48c,0x39f)]()[_0x3342ed(0x522,0x35b,0x3ff,0x48d)](),'activeModel':z[_0x257320(0x3d4,0x691,0x518,0x455)]()['optional'](),'apiKey':z[_0x257320(0x558,0x5a2,0x518,0x52a)]()['optional'](),'providers':z[_0x257320(0x5f6,0x3f7,0x49c,0x3c4)](z[_0x3342ed(0x582,0x325,0x48c,0x4a7)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x3342ed(0x555,0x2bf,0x3ff,0x55f)](),'skills':skillsSettingsSchema[_0x3342ed(0x2f2,0x2d2,0x3ff,0x514)](),'agents':agentsSettingsSchema['optional'](),'commands':commandsSettingsSchema[_0x257320(0x483,0x401,0x48b,0x5ca)](),'skillsEnabled':z[_0x3342ed(0x461,0x312,0x410,0x40d)](z['string'](),z[_0x3342ed(0x2c9,0x380,0x2d9,0x2f9)]())[_0x3342ed(0x578,0x45e,0x3ff,0x32c)](),'allowedDirs':z[_0x3342ed(0x3df,0x5de,0x505,0x601)](z[_0x3342ed(0x510,0x38a,0x48c,0x499)]())[_0x257320(0x5f8,0x5f8,0x48b,0x470)](),'mcpEnabled':z[_0x3342ed(0x33e,0x453,0x410,0x4cc)](z[_0x3342ed(0x396,0x40e,0x48c,0x4d1)](),z[_0x3342ed(0x3e5,0x328,0x2d9,0x1fd)]())['optional'](),'commandsEnabled':z[_0x3342ed(0x2bb,0x43c,0x410,0x395)](z[_0x3342ed(0x503,0x446,0x48c,0x410)](),z[_0x3342ed(0x426,0x305,0x2d9,0x229)]())['optional'](),'memory':memorySettingsSchema[_0x257320(0x455,0x31c,0x48b,0x600)](),'session':z[_0x257320(0x184,0x467,0x2f0,0x1dd)]({'memPersist':z[_0x3342ed(0x28b,0x36e,0x2d9,0x2ea)]()['optional'](),'persistEventLog':z['boolean']()['optional'](),'persistHttpLog':z['boolean']()[_0x3342ed(0x2b1,0x3b7,0x3ff,0x365)]()})[_0x257320(0x3d8,0x5be,0x47e,0x3d5)]()['optional'](),'requireToolApproval':z[_0x257320(0x39c,0x35d,0x365,0x3d6)]()[_0x3342ed(0x524,0x3c7,0x3ff,0x506)](),'thinking':z['enum'](['OFF',_0x257320(0x3cc,0x645,0x52d,0x3d1),_0x257320(0x4da,0x5a9,0x501,0x4db),_0x257320(0x5a0,0x4a5,0x579,0x55c)])[_0x3342ed(0x419,0x4c4,0x3ff,0x44a)](),'streamingChunks':z[_0x3342ed(0x1ef,0x346,0x2d9,0x42f)]()[_0x3342ed(0x539,0x3a8,0x3ff,0x351)](),'agentsEnabled':z['record'](z[_0x3342ed(0x40f,0x49e,0x48c,0x5f8)](),z['boolean']())[_0x3342ed(0x46b,0x28a,0x3ff,0x34d)](),'recentModels':z['array'](recentModelSchema)[_0x3342ed(0x383,0x38b,0x3ff,0x502)](),'lsp':lspConfigSchema[_0x3342ed(0x472,0x2f8,0x3ff,0x475)](),'servers':z['record'](z[_0x3342ed(0x4b6,0x5b8,0x48c,0x4b5)](),serverEndpointSchema)[_0x257320(0x521,0x374,0x48b,0x41c)](),'ui':z[_0x257320(0x225,0x3d3,0x2f0,0x20c)]({'theme':uiThemeSettingsSchema[_0x257320(0x42f,0x394,0x48b,0x3c5)](),'statusline':statuslineConfigSchema[_0x3342ed(0x2eb,0x3c2,0x3ff,0x4b0)]()})[_0x3342ed(0x303,0x4f5,0x3f2,0x4a6)]()[_0x257320(0x550,0x4fd,0x48b,0x37d)](),'tools':z[_0x3342ed(0x37d,0x538,0x410,0x35c)](z[_0x257320(0x4c6,0x40f,0x518,0x5cc)](),z['unknown']())[_0x3342ed(0x3f5,0x542,0x3ff,0x48b)](),'hooks':hooksConfigSchema[_0x3342ed(0x2d1,0x3a5,0x3ff,0x388)]()})[_0x257320(0x51a,0x4bc,0x47e,0x438)](),workspaceOverlaySchema=z[_0x3342ed(0x310,0x1d1,0x264,0x1d2)]({'root':z[_0x3342ed(0x38c,0x436,0x48c,0x51d)]()[_0x3342ed(0x2ea,0x521,0x3ff,0x333)](),'allowedDirs':z['array'](z[_0x3342ed(0x32d,0x40d,0x48c,0x421)]())[_0x3342ed(0x400,0x4c8,0x3ff,0x4cb)](),'activeProvider':z[_0x257320(0x4af,0x44f,0x518,0x3d5)]()[_0x257320(0x4fa,0x4bd,0x48b,0x495)](),'activeModel':z[_0x3342ed(0x351,0x389,0x48c,0x5b1)]()[_0x3342ed(0x4d4,0x4d0,0x3ff,0x47a)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x3342ed(0x37a,0x34c,0x3ff,0x38a)](),'commands':commandsSettingsSchema[_0x257320(0x525,0x4db,0x48b,0x3c8)](),'hooks':hooksConfigSchema[_0x257320(0x3e0,0x4d8,0x48b,0x479)](),'memory':memorySettingsSchema[_0x3342ed(0x28b,0x330,0x3ff,0x434)](),'mcpEnabled':z[_0x257320(0x5b8,0x576,0x49c,0x556)](z['string'](),z[_0x3342ed(0x40e,0x2ee,0x2d9,0x338)]())[_0x257320(0x497,0x5a8,0x48b,0x4ae)](),'skillsEnabled':z[_0x3342ed(0x3eb,0x509,0x410,0x498)](z[_0x257320(0x4c0,0x5b5,0x518,0x520)](),z[_0x3342ed(0x17f,0x1a8,0x2d9,0x3a4)]())[_0x3342ed(0x3d7,0x3b8,0x3ff,0x3bd)](),'agentsEnabled':z[_0x257320(0x3b3,0x5b2,0x49c,0x3a5)](z[_0x3342ed(0x44f,0x5fb,0x48c,0x537)](),z[_0x3342ed(0x1b7,0x35b,0x2d9,0x2b6)]())[_0x3342ed(0x4ee,0x362,0x3ff,0x42d)](),'commandsEnabled':z['record'](z['string'](),z[_0x257320(0x300,0x33c,0x365,0x373)]())[_0x257320(0x397,0x544,0x48b,0x5b1)]()})['passthrough']();function buildDescription(_0x167b36){const _0x1e4538={_0x42dc89:0x33f,_0x822214:0x49c,_0x5da20b:0x684,_0xfff746:0x6a2,_0x3a48bb:0x2be,_0x9dd5fb:0x4b7,_0x338cc8:0x3aa,_0x243fef:0x52b,_0xf1648:0x655,_0x12876a:0x4cc,_0x569fdd:0x27d,_0x30fe09:0x3af,_0x956a19:0x4d0,_0x45bc4f:0x396,_0xce3896:0x274},_0x4f2937={_0x34b9b0:0xee,_0x15b82b:0x133};if(_0x167b36[_0x249d95(0x2b8,_0x1e4538._0x42dc89,0x3ee,_0x1e4538._0x822214)]===0x0)return[_0x961cec(_0x1e4538._0x5da20b,0x52b,_0x1e4538._0xfff746,0x5c3),_0x961cec(0x3f7,0x3ec,0x4b7,_0x1e4538._0x3a48bb),'No\x20commands\x20are\x20currently\x20available.'][_0x249d95(0x3ea,_0x1e4538._0x9dd5fb,0x38f,_0x1e4538._0x338cc8)]('\x0a');function _0x249d95(_0x398e1a,_0x425732,_0x316119,_0x572dfe){return _0x257320(_0x398e1a-0x80,_0x425732-_0x4f2937._0x34b9b0,_0x316119- -_0x4f2937._0x15b82b,_0x425732);}function _0x961cec(_0x29cd8e,_0x356c6b,_0x5c2a25,_0x4ed802){return _0x257320(_0x29cd8e-0x16f,_0x356c6b-0x177,_0x356c6b-0x79,_0x29cd8e);}const _0x9cb3c9=[_0x961cec(0x448,_0x1e4538._0x243fef,_0x1e4538._0xf1648,_0x1e4538._0x12876a),_0x249d95(_0x1e4538._0x569fdd,_0x1e4538._0x30fe09,0x240,0x39d),'Available\x20commands:',..._0x167b36[_0x961cec(_0x1e4538._0x956a19,_0x1e4538._0x45bc4f,0x239,_0x1e4538._0xce3896)](_0x31ede6=>_0x31ede6[_0x249d95(0x244,0x294,0x338,0x23c)]?'-\x20'+_0x31ede6[_0x249d95(0x2b6,0x1cb,0x1f9,0x345)]+'\x20'+_0x31ede6[_0x249d95(0x3a7,0x2a4,0x338,0x2be)]+':\x20'+_0x31ede6[_0x961cec(0x37f,0x49a,0x48e,0x35a)]:'-\x20'+_0x31ede6[_0x249d95(0x331,0x329,0x1f9,0x230)]+':\x20'+_0x31ede6['description'])];return _0x9cb3c9['join']('\x0a');}function createInvokeCommandTool(_0xa7bf95){const _0x5d591d={_0x1a62c2:0x15e,_0x195c06:0x204,_0x3524bf:0x75,_0x41c851:0x12d,_0x5200ac:0x6,_0x6b497f:0xff,_0x689023:0x180,_0x187caf:0x1f9,_0xa96474:0x3db,_0x4afca3:0x560,_0x207e7b:0x4b2,_0x30985a:0x61b,_0x2b4176:0x3da},_0x52f113={_0x1b8b30:0x51f,_0xcc87d:0x15d,_0x221c98:0x215,_0x321c00:0x153,_0x114cf9:0x698,_0x413f3a:0x3b7,_0x1f12a0:0x558,_0x2fb94a:0x38f,_0x566fe3:0x22b,_0x132b47:0x14b,_0x546a14:0x380,_0x2c801:0x21a,_0x35525e:0x53e,_0x90fce6:0x52c,_0x3f4a7d:0x2da,_0x575c1e:0x94,_0xef71b6:0x20d,_0x588eed:0x54a,_0x47353d:0x648,_0x3e190a:0x4a0},_0x2a3834={_0x3b57b3:0x33,_0x10f1d7:0x12,_0x6c7f05:0x6},_0x17b3de={_0x557bea:0x1d5},_0x4dfc7f=new Map(_0xa7bf95[_0x57fe2f(_0x5d591d._0x1a62c2,0x162,0x1f7,_0x5d591d._0x195c06)][_0x57fe2f(_0x5d591d._0x3524bf,-_0x5d591d._0x41c851,0x43,_0x5d591d._0x5200ac)](_0x2b753e=>[_0x2b753e['id'],_0x2b753e])),_0x361a32=buildDescription(_0xa7bf95[_0x57fe2f(0xd6,0x144,_0x5d591d._0x6b497f,0x204)]);function _0x57fe2f(_0x430302,_0x541e8a,_0xf16e9,_0x40d9fa){return _0x3342ed(_0x430302-0x8a,_0x430302,_0x40d9fa- -0x28b,_0x40d9fa-0x37);}function _0x36aa38(_0x57b98b,_0x3c3911,_0xf1aae5,_0x1e6e2a){return _0x257320(_0x57b98b-0x11d,_0x3c3911-0x85,_0x57b98b-_0x17b3de._0x557bea,_0x1e6e2a);}return defineTool({'name':_0x57fe2f(0x10d,_0x5d591d._0x689023,0x2b9,_0x5d591d._0x187caf),'description':_0x361a32,'inputSchema':{'type':_0x36aa38(0x4c5,0x5e5,_0x5d591d._0xa96474,_0x5d591d._0x4afca3),'properties':{'name':{'type':_0x57fe2f(0x155,0x350,0x36b,0x201)},'args':{'type':'string'}},'required':[_0x36aa38(0x501,_0x5d591d._0x207e7b,_0x5d591d._0x30985a,_0x5d591d._0x2b4176)]},async *'execute'(_0xf6f098){function _0x50d454(_0xabbda8,_0x2aaa89,_0x637837,_0x2b8ef1){return _0x57fe2f(_0x2aaa89,_0x2aaa89-0x7f,_0x637837-0x14,_0xabbda8-0x15a);}const _0x84de86=_0x4dfc7f['get'](_0xf6f098[_0x314fee(0x3a6,0x4ce,_0x52f113._0x1b8b30,0x453)]);if(!_0x84de86){const _0x405d14=Array[_0x50d454(0x2b7,_0x52f113._0xcc87d,_0x52f113._0x221c98,0x358)](_0x4dfc7f[_0x50d454(_0x52f113._0x321c00,0x138,0x105,0x18e)]())[_0x314fee(_0x52f113._0x114cf9,0x664,0x7c8,0x7b5)](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0xf6f098['name']+_0x314fee(0x444,0x481,_0x52f113._0x413f3a,_0x52f113._0x1f12a0)+_0x405d14,{'name':_0xf6f098[_0x314fee(_0x52f113._0x2fb94a,0x4ce,0x4f2,0x3e2)]});}const _0x4d0280=await _0xa7bf95[_0x50d454(_0x52f113._0x566fe3,_0x52f113._0x132b47,0x398,0x127)](_0x84de86),_0x37f139=_0xf6f098[_0x50d454(0x22f,0x1d9,_0x52f113._0x546a14,0x139)]??'';function _0x314fee(_0x4a3089,_0x3302c9,_0x3663e7,_0x1e0c93){return _0x36aa38(_0x3302c9- -_0x2a3834._0x3b57b3,_0x3302c9-_0x2a3834._0x10f1d7,_0x3663e7-_0x2a3834._0x6c7f05,_0x3663e7);}const _0x3434ef=renderCommandInstructions({'instructions':_0x4d0280[_0x50d454(0x172,0x23c,0x1c7,_0x52f113._0x2c801)],'argumentsText':_0x37f139,'argumentNames':_0x4d0280[_0x314fee(_0x52f113._0x35525e,_0x52f113._0x90fce6,0x61a,0x465)]});return yield createToolOutput(_0x3434ef,{'id':_0x4d0280['id'],'name':_0x4d0280[_0x50d454(0x16f,_0x52f113._0x3f4a7d,_0x52f113._0x575c1e,0xf5)],'path':_0x84de86[_0x50d454(_0x52f113._0xef71b6,0x274,0x1fa,0x363)][_0x314fee(_0x52f113._0x588eed,0x5c7,_0x52f113._0x47353d,_0x52f113._0x3e190a)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x111af8,rename as _0x1424a8,stat as _0x23c1a2,writeFile as _0x5b5f37}from'fs/promises';import*as _0x593784 from'path';function detectEol(_0xa6a918){const _0x47fcc0={_0x1286d9:0x4a9,_0x1af478:0x3af,_0x58940a:0x484,_0x1d11ae:0x81f,_0x15c7e2:0x658},_0x3bc6a8={_0x177bc9:0x125,_0x5dd41d:0x3c5,_0x1d8509:0x34},_0x5813ed={_0x42052e:0x52,_0x2389ce:0x4e};function _0xe3d093(_0x3ad963,_0x1a49eb,_0x168f9a,_0x6fe8b4){return _0x3342ed(_0x3ad963-_0x5813ed._0x42052e,_0x1a49eb,_0x3ad963-0x1c8,_0x6fe8b4-_0x5813ed._0x2389ce);}function _0x466186(_0x47d936,_0xa364a1,_0x3a1713,_0x131b91){return _0x3342ed(_0x47d936-_0x3bc6a8._0x177bc9,_0x47d936,_0xa364a1- -_0x3bc6a8._0x5dd41d,_0x131b91-_0x3bc6a8._0x1d8509);}return/\r\n/['test'](_0xa6a918[_0xe3d093(_0x47fcc0._0x1286d9,0x3c0,_0x47fcc0._0x1af478,_0x47fcc0._0x58940a)]('utf8'))?_0xe3d093(0x6be,_0x47fcc0._0x1d11ae,_0x47fcc0._0x15c7e2,0x751):'lf';}function normalizeToLf(_0x4b452e){const _0x270dd6={_0x1500c8:0x13c,_0x446bed:0xc5},_0x34ac68={_0x50c67e:0x190};function _0x582584(_0x282125,_0x4c4130,_0x22dde8,_0x34c5fb){return _0x3342ed(_0x282125-_0x34ac68._0x50c67e,_0x4c4130,_0x282125- -0x3c8,_0x34c5fb-0x4a);}return _0x4b452e[_0x582584(_0x270dd6._0x1500c8,0x268,0x169,_0x270dd6._0x446bed)](/\r\n/g,'\x0a');}function convertEol(_0x46890e,_0x4979f0){const _0x2b068b={_0xba5ac6:0xf8,_0x562a48:0x434,_0x477425:0x55d},_0x771e1b={_0x36aa49:0x2ff,_0x2c1c7b:0x2b},_0x4d4b60={_0x4bc790:0x6e};function _0x5d6550(_0x37ef57,_0x5765cb,_0x40239b,_0x37f6dc){return _0x257320(_0x37ef57-_0x4d4b60._0x4bc790,_0x5765cb-0xc2,_0x37ef57- -0x94,_0x5765cb);}function _0x3f87c3(_0x2756a2,_0x1c3c3f,_0xcc28c2,_0x220812){return _0x3342ed(_0x2756a2-0x1db,_0x2756a2,_0xcc28c2- -_0x771e1b._0x36aa49,_0x220812-_0x771e1b._0x2c1c7b);}return _0x4979f0===_0x3f87c3(_0x2b068b._0xba5ac6,0x26c,0x1f7,0x321)?_0x46890e[_0x5d6550(0x4fc,0x55d,_0x2b068b._0x562a48,_0x2b068b._0x477425)](/\n/g,'\x0d\x0a'):_0x46890e;}async function atomicWrite(_0x461047,_0xa86cec){const _0x3dff9c={_0x3f6e54:0x7be,_0x3aaa26:0x7b0,_0x27d6b5:0x6f5,_0x30a5dc:0x626,_0x7eeffe:0x66e,_0x9ba7f2:0x561,_0x207eb4:0x615,_0xe60039:0x762,_0x1aaa25:0x642,_0x49412d:0x755,_0x1ddd6c:0x5de,_0x547bf7:0x5c9,_0x323aaf:0x63b},_0x50962f={_0x4fb59a:0x1e,_0x404808:0x2e8,_0x34fad0:0x12d},_0x1b9920={_0x53e1c1:0x75,_0x37e181:0x1f2},_0x54ca1d=_0x593784[_0x3e1a02(_0x3dff9c._0x3f6e54,0x75e,0x714,_0x3dff9c._0x3aaa26)](_0x461047),_0x533615=_0x593784[_0x302a71(0x629,0x573,_0x3dff9c._0x27d6b5,0x6b4)](_0x54ca1d,_0x302a71(_0x3dff9c._0x30a5dc,_0x3dff9c._0x7eeffe,_0x3dff9c._0x9ba7f2,_0x3dff9c._0x207eb4)+_0x593784[_0x302a71(0x4ec,_0x3dff9c._0xe60039,0x674,_0x3dff9c._0x1aaa25)](_0x461047)+'.'+Date[_0x3e1a02(0x52b,0x5c3,0x4e3,0x47b)]()+'.'+Math[_0x3e1a02(_0x3dff9c._0x49412d,_0x3dff9c._0x1ddd6c,0x61c,0x6c3)]()[_0x3e1a02(_0x3dff9c._0x547bf7,0x677,0x5f5,_0x3dff9c._0x323aaf)](0x24)['slice'](0x2));await _0x5b5f37(_0x533615,_0xa86cec);function _0x302a71(_0x59e7e4,_0x2ba90e,_0x3a470a,_0x18df07){return _0x257320(_0x59e7e4-_0x1b9920._0x53e1c1,_0x2ba90e-0x9c,_0x18df07-_0x1b9920._0x37e181,_0x2ba90e);}function _0x3e1a02(_0x191f23,_0x54add8,_0x57ff74,_0x50883e){return _0x3342ed(_0x191f23-_0x50962f._0x4fb59a,_0x57ff74,_0x191f23-_0x50962f._0x404808,_0x50883e-_0x50962f._0x34fad0);}await _0x1424a8(_0x533615,_0x461047);}function sha256(_0x5a24fd){const _0x26c65e={_0x3d5bd8:0x26f,_0x273489:0x1b0,_0x216f22:0xdd,_0x173fa7:0x38e,_0x38aeda:0x1b3,_0x279d5d:0xb1},_0x34092b={_0x504cd1:0x1a6,_0xc69d55:0xd0};function _0x5d51f9(_0x21233e,_0x51e91b,_0x5793ed,_0x277caa){return _0x257320(_0x21233e-_0x34092b._0x504cd1,_0x51e91b-_0x34092b._0xc69d55,_0x21233e- -0x2ef,_0x51e91b);}function _0x4c7bc4(_0xc288b4,_0x48fda7,_0x2cef76,_0x43635f){return _0x257320(_0xc288b4-0x19f,_0x48fda7-0x2e,_0x48fda7- -0x24b,_0x43635f);}return createHash(_0x5d51f9(0x1a8,0x222,0x2ac,_0x26c65e._0x3d5bd8))[_0x4c7bc4(-0x93,0x61,_0x26c65e._0x273489,_0x26c65e._0x216f22)](_0x5a24fd)[_0x5d51f9(0x280,0x3b4,_0x26c65e._0x173fa7,0x16d)](_0x5d51f9(0xa7,_0x26c65e._0x38aeda,0x186,-_0x26c65e._0x279d5d));}function countLines(_0x3011b4){const _0x2a6dd9={_0x13399b:0x324,_0x131c1d:0x38d,_0x149b93:0x263,_0x55c48f:0x394,_0x1b1578:0x430,_0x12d7ba:0x34a,_0x509604:0x46c},_0x1dd7e8={_0x1107ab:0x7c};function _0x2aa342(_0x1100fa,_0x300a52,_0x22192c,_0x29d0c2){return _0x257320(_0x1100fa-_0x1dd7e8._0x1107ab,_0x300a52-0x1d1,_0x300a52- -0x1d7,_0x22192c);}const _0x34f9da=_0x3011b4['replace'](/\n$/,'');function _0x2808e0(_0x501dec,_0x225ff4,_0x4d894d,_0x5736e5){return _0x257320(_0x501dec-0xd5,_0x225ff4-0x14b,_0x501dec- -0x1dc,_0x5736e5);}return _0x34f9da[_0x2808e0(0x345,_0x2a6dd9._0x13399b,0x479,0x1e6)]===0x0?0x0:_0x34f9da[_0x2808e0(_0x2a6dd9._0x131c1d,_0x2a6dd9._0x149b93,_0x2a6dd9._0x55c48f,_0x2a6dd9._0x1b1578)]('\x0a')[_0x2aa342(0x3b8,_0x2a6dd9._0x12d7ba,_0x2a6dd9._0x509604,0x27c)];}function calculateLineNumbers(_0x303101,_0x109529,_0x2cfb96,_0x4bada4){const _0x240365={_0x2c9eec:0x1fc,_0x4a5d1f:0x27e,_0x114383:0xef,_0x1dc702:0x1a5},_0x18aa10={_0x46d9f2:0x4d},_0x135c49={_0x67a4fb:0x2f0,_0x3ee49e:0x128},_0x1c382f=_0x303101[_0x48f06c(_0x240365._0x2c9eec,0x2c7,_0x240365._0x4a5d1f,0x198)](0x0,_0x4bada4)['split']('\x0a')[_0x48f06c(0x261,0x6d,_0x240365._0x114383,_0x240365._0x1dc702)],_0x5574af=countLines(_0x109529);function _0x48f06c(_0x2d0040,_0x3e5f73,_0x5f43e2,_0x127cef){return _0x3342ed(_0x2d0040-0x165,_0x3e5f73,_0x127cef- -_0x135c49._0x67a4fb,_0x127cef-_0x135c49._0x3ee49e);}const _0x1773cf=countLines(_0x2cfb96);function _0xe1a861(_0x4cc4d7,_0x47fdf0,_0x544d98,_0x5c05f0){return _0x3342ed(_0x4cc4d7-_0x18aa10._0x46d9f2,_0x47fdf0,_0x4cc4d7- -0x2e6,_0x5c05f0-0xa);}return{'oldStartLine':_0x1c382f,'oldEndLine':_0x1c382f+_0x5574af-0x1,'newStartLine':_0x1c382f,'newEndLine':_0x1c382f+_0x1773cf-0x1,'oldLineCount':_0x5574af,'newLineCount':_0x1773cf};}function createFileEditTool(_0x58f1e8={}){const _0x2f36b0={_0x3f2145:0x112,_0x1024e5:0x11,_0x4446fb:0x2c0,_0x2f3fcb:0x2,_0x2a4626:0x1ed,_0x3cab09:0x23,_0x4a4862:0x142,_0x254ac1:0x280,_0x4ab72b:0x21a,_0xd29073:0x1dc,_0x40ef02:0x252,_0x541625:0x326,_0x20bb37:0x309,_0x52254c:0x1bb,_0x4e7b15:0x75,_0x1d550c:0x3fc,_0x2cc96f:0x3cd,_0x440894:0x3a2,_0x31efcb:0x20a,_0x74987b:0x283,_0x472d3e:0x8,_0x4702cf:0x67,_0x188f1a:0x17d,_0x31cb66:0x31f,_0x486236:0x2b9,_0x21f26f:0x29a,_0x279601:0x263,_0x238e8a:0x2ad,_0x24d8bc:0x2c9,_0x356f91:0xdd},_0x1c0a42={_0xb33f4f:0x4a9,_0x224783:0x491,_0x3d1f37:0x48d,_0x369b63:0x5d5,_0x31cf2e:0x5bc,_0x3a3e17:0x616,_0x255543:0x5c5,_0x468793:0x44e,_0x45858c:0x521,_0x314c9d:0x4fb,_0x208e6d:0x76f,_0xe9f17f:0x7bd,_0x4e7fae:0x6cf,_0x594c1a:0x4e4,_0x2af048:0x5b9,_0x2a210d:0x7bc,_0x1cd34a:0x673,_0x6802d:0x839,_0x5819d1:0x580,_0x15548f:0x4ea,_0x1527b3:0x6f6,_0x3de5fa:0x641,_0x2c3fe7:0x4b2,_0x5b4dc6:0x421,_0x124147:0x594,_0xc0de83:0x667,_0x44c15c:0x786,_0x28d41f:0x56e,_0x1ab066:0x57c,_0x2caafe:0x4ec,_0x4e7289:0x554,_0x1ac8f6:0x48a,_0x26e60e:0x384,_0x3b5a00:0x4f9,_0x363132:0x468,_0x263e58:0x5e5,_0x2c124b:0x58a,_0x3d3e5c:0x613,_0x323eed:0x6a0,_0x3b0e6d:0x7c1,_0x29977f:0x641,_0x3cd330:0x6f6},_0x5178f8={_0x567f5b:0x1eb,_0x4d1138:0x48},_0x298eec={_0x256c98:0x68};function _0xa6e697(_0x279f7d,_0x1ba7ef,_0x2481ff,_0x78f73){return _0x3342ed(_0x279f7d-_0x298eec._0x256c98,_0x2481ff,_0x1ba7ef- -0x238,_0x78f73-0x7a);}const _0x485014=_0x593784[_0xa6e697(_0x2f36b0._0x3f2145,0x99,-_0x2f36b0._0x1024e5,0x9f)](_0x58f1e8[_0x1b6fb9(0x192,_0x2f36b0._0x4446fb,0x2d6,0x445)]??process[_0xa6e697(0x27b,0x121,-_0x2f36b0._0x2f3fcb,_0x2f36b0._0x2a4626)]()),_0x37ec26=(_0x58f1e8[_0xa6e697(-0x89,_0x2f36b0._0x3cab09,0x12b,-0xed)]??[])['map'](_0x56587f=>_0x593784['resolve'](_0x56587f));function _0x1b6fb9(_0x4f04ab,_0x4d889d,_0x2f1478,_0x70234){return _0x257320(_0x4f04ab-_0x5178f8._0x567f5b,_0x4d889d-_0x5178f8._0x4d1138,_0x2f1478- -0x135,_0x4d889d);}const _0x3aa56e=_0x58f1e8[_0x1b6fb9(0x1b8,_0x2f36b0._0x4a4862,0x1f7,0x16b)]??_0x1b6fb9(_0x2f36b0._0x254ac1,_0x2f36b0._0x4ab72b,_0x2f36b0._0xd29073,_0x2f36b0._0x40ef02);return defineTool({'name':_0x3aa56e,'description':_0x1b6fb9(_0x2f36b0._0x541625,0x31f,0x2ae,_0x2f36b0._0x20bb37),'inputSchema':{'type':_0x1b6fb9(0xba,0x22d,_0x2f36b0._0x52254c,_0x2f36b0._0x4e7b15),'properties':{'filePath':{'type':'string'},'description':{'type':'string','description':_0x1b6fb9(_0x2f36b0._0x1d550c,0x4e6,0x42e,_0x2f36b0._0x2cc96f)},'oldText':{'type':_0xa6e697(0x2c9,0x254,0x221,0x11f)},'newText':{'type':_0xa6e697(_0x2f36b0._0x440894,0x254,_0x2f36b0._0x31efcb,_0x2f36b0._0x74987b)},'dryRun':{'type':_0xa6e697(_0x2f36b0._0x472d3e,0xa1,-_0x2f36b0._0x4702cf,_0x2f36b0._0x188f1a)}},'required':[_0x1b6fb9(_0x2f36b0._0x31cb66,_0x2f36b0._0x486236,0x364,_0x2f36b0._0x21f26f),_0xa6e697(_0x2f36b0._0x279601,_0x2f36b0._0x238e8a,0x32f,_0x2f36b0._0x24d8bc),_0x1b6fb9(0x1b5,0x15a,0x1d2,_0x2f36b0._0x356f91)]},async *'execute'(_0x1e0262){const _0x52bf97={_0x20da40:0x188,_0xc5fbf4:0x472},_0x5df825={_0x30975d:0xa4,_0x5da200:0x2c},_0x30b850=resolveAllowedPath(_0x485014,_0x37ec26,_0x1e0262[_0x564e75(0x5e9,0x522,_0x1c0a42._0xb33f4f,0x5b9)]);await assertWorkspaceFile(_0x30b850);const _0x3a8bf4=await _0x23c1a2(_0x30b850),_0xa287f2=await _0x111af8(_0x30b850),_0x2c3b72=detectEol(_0xa287f2),_0x58b6c9=normalizeToLf(_0xa287f2[_0x564e75(0x35f,_0x1c0a42._0x224783,0x3d1,_0x1c0a42._0x3d1f37)](_0x564e75(_0x1c0a42._0x369b63,0x7b2,_0x1c0a42._0x31cf2e,0x664))),_0x870b49=normalizeToLf(_0x1e0262[_0x564e75(_0x1c0a42._0x3a3e17,_0x1c0a42._0x255543,0x626,0x691)]),_0x4fae23=normalizeToLf(_0x1e0262['newText']),_0x37abc4=_0x58b6c9[_0x564e75(_0x1c0a42._0x468793,0x673,_0x1c0a42._0x45858c,_0x1c0a42._0x314c9d)](_0x870b49);if(_0x37abc4===-0x1){const _0x22c17a=_0x870b49[_0x564e75(0x6c9,0x6aa,0x4ce,0x634)](0x0,0x64)['replace'](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x22c17a+(_0x870b49[_0x3ab157(_0x1c0a42._0x208e6d,0x801,_0x1c0a42._0xe9f17f,_0x1c0a42._0x4e7fae)]>0x64?'...':'')+'\x22',{'filePath':_0x1e0262[_0x564e75(0x4ce,0x512,_0x1c0a42._0x594c1a,_0x1c0a42._0x2af048)]});}const _0x56caa4=_0x58b6c9[_0x3ab157(_0x1c0a42._0x2a210d,0x75d,_0x1c0a42._0x1cd34a,0x6c2)](0x0,_0x37abc4)+_0x4fae23+_0x58b6c9[_0x3ab157(_0x1c0a42._0x6802d,0x5cb,_0x1c0a42._0x5819d1,0x6c2)](_0x37abc4+_0x870b49[_0x564e75(_0x1c0a42._0x15548f,_0x1c0a42._0x1527b3,0x637,_0x1c0a42._0x3de5fa)]),_0x2de802=convertEol(_0x56caa4,_0x2c3b72),_0x3e02c8=Buffer[_0x564e75(0x680,_0x1c0a42._0x2c3fe7,_0x1c0a42._0x5b4dc6,_0x1c0a42._0x124147)](_0x2de802,_0x564e75(_0x1c0a42._0xc0de83,_0x1c0a42._0x44c15c,_0x1c0a42._0x28d41f,0x664)),_0x2d40c4=sha256(_0xa287f2);function _0x564e75(_0x45d02e,_0x54a028,_0x41eec0,_0x245989){return _0x1b6fb9(_0x45d02e-_0x5df825._0x30975d,_0x45d02e,_0x245989-0x255,_0x245989-_0x5df825._0x5da200);}const _0x32672c=sha256(_0x3e02c8),_0x326828=_0x2d40c4===_0x32672c,_0x3bb3b1=_0x1e0262[_0x3ab157(0x3c1,0x3d3,_0x1c0a42._0x1ab066,_0x1c0a42._0x2caafe)]??![];function _0x3ab157(_0x18f806,_0x31fe3d,_0x2c7925,_0x1b926b){return _0xa6e697(_0x18f806-_0x52bf97._0x20da40,_0x1b926b-_0x52bf97._0xc5fbf4,_0x31fe3d,_0x1b926b-0x165);}return!_0x3bb3b1&&!_0x326828&&await atomicWrite(_0x30b850,_0x3e02c8),yield createToolOutput(_0x326828?_0x564e75(0x582,0x547,0x4b2,_0x1c0a42._0x4e7289):_0x3bb3b1?_0x3ab157(_0x1c0a42._0x1ac8f6,_0x1c0a42._0x26e60e,0x3b0,_0x1c0a42._0x3b5a00):'Edit\x20applied\x20successfully.',{'filePath':_0x1e0262[_0x3ab157(0x4fb,0x750,0x67b,0x647)],'resolvedPath':_0x30b850,'created':_0x3a8bf4['birthtime'][_0x3ab157(_0x1c0a42._0x363132,_0x1c0a42._0x263e58,0x502,0x5da)](),'modified':_0x3a8bf4[_0x564e75(_0x1c0a42._0x2c124b,0x55b,0x53a,_0x1c0a42._0x3d3e5c)][_0x564e75(0x4e8,_0x1c0a42._0x323eed,0x435,0x54c)](),'size':_0x3a8bf4[_0x3ab157(0x760,0x63b,_0x1c0a42._0x3b0e6d,0x6ad)],'eol':_0x2c3b72,'oldTextLength':_0x870b49[_0x564e75(0x769,0x533,0x4df,0x641)],'newTextLength':_0x4fae23[_0x564e75(0x53d,0x54a,0x6bc,_0x1c0a42._0x29977f)],'bytesWritten':_0x326828||_0x3bb3b1?0x0:_0x3e02c8[_0x564e75(_0x1c0a42._0x3cd330,0x740,0x6e1,_0x1c0a42._0x29977f)],'beforeSha':_0x2d40c4,'afterSha':_0x32672c,'dryRun':_0x3bb3b1,'noChange':_0x326828,'lineNumbers':calculateLineNumbers(_0x58b6c9,_0x870b49,_0x4fae23,_0x37abc4)}),void 0x0;}});}import{mkdir as _0xad1c5b,rename as _0x4c91f5,stat as _0x56b005,writeFile as _0x5e8206}from'fs/promises';import*as _0x12c7fd from'path';async function atomicWrite2(_0x5a72b9,_0x482213){const _0x82f41b={_0x176d36:0x3dd,_0x388d8a:0x306,_0x5356a4:0x29c,_0x349180:0x365,_0x1865d8:0x2ef,_0x53fe87:0x20,_0xd36608:0x170,_0x184e3f:0x245,_0x20a7c8:0x26a,_0xab5a4f:0x3b3,_0x3dfe78:0x257},_0x1d441f={_0x4dd5dc:0xae},_0x9ab93a={_0x3273bc:0x14,_0x212239:0x90},_0x64e1aa=_0x12c7fd[_0x19c8f3(_0x82f41b._0x176d36,0x401,_0x82f41b._0x388d8a,_0x82f41b._0x5356a4)](_0x5a72b9);await _0xad1c5b(_0x64e1aa,{'recursive':!![]});function _0x1046d2(_0x4bdd35,_0x3def2a,_0x528fbb,_0x463c4c){return _0x257320(_0x4bdd35-_0x9ab93a._0x3273bc,_0x3def2a-_0x9ab93a._0x212239,_0x528fbb- -0x2b4,_0x463c4c);}const _0x580ee2=_0x12c7fd['join'](_0x64e1aa,'.tmp.'+_0x12c7fd[_0x19c8f3(_0x82f41b._0x349180,_0x82f41b._0x1865d8,0x39c,0x428)](_0x5a72b9)+'.'+Date[_0x1046d2(0x174,0xff,0x1b,-_0x82f41b._0x53fe87)]()+'.'+Math[_0x1046d2(_0x82f41b._0xd36608,0x1ef,_0x82f41b._0x184e3f,0x141)]()['toString'](0x24)[_0x19c8f3(_0x82f41b._0x20a7c8,_0x82f41b._0xab5a4f,0x4d5,_0x82f41b._0x3dfe78)](0x2));function _0x19c8f3(_0x59a48a,_0x22ff43,_0x400842,_0x2383ce){return _0x257320(_0x59a48a-_0x1d441f._0x4dd5dc,_0x22ff43-0xdc,_0x22ff43- -0x161,_0x59a48a);}await _0x5e8206(_0x580ee2,_0x482213),await _0x4c91f5(_0x580ee2,_0x5a72b9);}function createFileNewTool(_0x41af6f={}){const _0x2ac1ef={_0x5e38a7:0xd6,_0xe0a99f:0x31,_0x4e9154:0x101,_0x3153f0:0x156,_0x565f7c:0x7,_0x2dcad8:0x4bd,_0x80d2f4:0x421,_0x4ddd03:0x18f,_0x1efa54:0x54,_0x268fc0:0x311,_0x51c152:0x362,_0xa22924:0x369,_0x402c98:0x42c,_0x3c3dda:0x667,_0x5ea0e4:0x591,_0x556e20:0x3b9,_0xe29f91:0x512,_0x4e66d1:0x51f,_0x208bbe:0x52c,_0x358fbd:0x576},_0x37f80e={_0x4dbeb3:0x8e,_0x3bfeca:0xd3,_0x5a87f6:0x3d3,_0x4b364f:0x471,_0x5b35ea:0x4c0,_0x3c36a9:0x5bc,_0x28a530:0x5a7,_0x214b85:0x434,_0x2d327c:0x541,_0x5e75f7:0x4ad,_0x5339a7:0x7a,_0x3c75f9:0x69,_0xc8a807:0x1b8,_0x2a7c1c:0x1c3,_0x140de8:0x10c,_0xae882d:0x191,_0x1ddbce:0xe8,_0x2e8b48:0xf9,_0x1189ef:0x40c,_0x53c941:0x2d,_0x383814:0x281},_0x4d10b1={_0x1f430b:0x190,_0x5db381:0x48e},_0x20990b={_0x58ec5a:0x284,_0x47d9c0:0x9},_0x59457c=_0x12c7fd[_0x3a197d(_0x2ac1ef._0x5e38a7,_0x2ac1ef._0xe0a99f,0x65,_0x2ac1ef._0x4e9154)](_0x41af6f['defaultCwd']??process[_0x3a197d(0x15e,-0x5,_0x2ac1ef._0x3153f0,_0x2ac1ef._0x565f7c)]());function _0x3a197d(_0x2a3310,_0x26cbdf,_0x35fef4,_0x440215){return _0x3342ed(_0x2a3310-0x1cb,_0x440215,_0x2a3310- -0x1fb,_0x440215-0x1e);}const _0x1aa3a2=(_0x41af6f[_0x34ad14(0x4ac,_0x2ac1ef._0x2dcad8,_0x2ac1ef._0x80d2f4,0x360)]??[])[_0x3a197d(0x96,_0x2ac1ef._0x4ddd03,-0x2e,0x22)](_0x2371c4=>_0x12c7fd[_0x34ad14(0x2ee,0x364,0x2fe,0x3d6)](_0x2371c4)),_0x2c718d=_0x41af6f['name']??'FileNew';function _0x34ad14(_0x498a3e,_0x2c3607,_0x29558,_0x4233e3){return _0x257320(_0x498a3e-0xe3,_0x2c3607-0x150,_0x4233e3-0x79,_0x29558);}return defineTool({'name':_0x2c718d,'description':_0x3a197d(0xac,-_0x2ac1ef._0x1efa54,-0x39,-0xa5),'inputSchema':{'type':_0x34ad14(_0x2ac1ef._0x268fc0,0x205,_0x2ac1ef._0x51c152,_0x2ac1ef._0xa22924),'properties':{'filePath':{'type':_0x3a197d(0x291,0x38e,0x1f6,0x1d8)},'content':{'type':_0x34ad14(_0x2ac1ef._0x402c98,_0x2ac1ef._0x3c3dda,0x6e4,_0x2ac1ef._0x5ea0e4)}},'required':[_0x34ad14(0x5a3,0x4ae,_0x2ac1ef._0x556e20,_0x2ac1ef._0xe29f91),_0x34ad14(_0x2ac1ef._0x4e66d1,0x5a5,_0x2ac1ef._0x208bbe,_0x2ac1ef._0x358fbd)]},async *'execute'(_0x5d7ea1){const _0x1d9ecf=resolveAllowedPath(_0x59457c,_0x1aa3a2,_0x5d7ea1[_0x43981f(-_0x37f80e._0x4dbeb3,-_0x37f80e._0x3bfeca,0x84,0x118)]),_0x2c8b06=await _0x56b005(_0x1d9ecf)['then'](()=>!![])['catch'](()=>![]),_0x38c66b=Buffer[_0x34fb42(0x411,_0x37f80e._0x5a87f6,_0x37f80e._0x4b364f,0x4d7)](_0x5d7ea1[_0x34fb42(_0x37f80e._0x5b35ea,0x662,0x4fa,_0x37f80e._0x3c36a9)],_0x34fb42(_0x37f80e._0x28a530,_0x37f80e._0x214b85,_0x37f80e._0x2d327c,_0x37f80e._0x5e75f7));await atomicWrite2(_0x1d9ecf,_0x38c66b);function _0x34fb42(_0x457011,_0x1ed0d1,_0x8f65b7,_0xb14d7e){return _0x3a197d(_0x8f65b7-_0x20990b._0x58ec5a,_0x1ed0d1-_0x20990b._0x47d9c0,_0x8f65b7-0x16e,_0xb14d7e);}function _0x43981f(_0x351bba,_0x25fb52,_0x557d94,_0x3f43d6){return _0x34ad14(_0x351bba-0x1e5,_0x25fb52-_0x4d10b1._0x1f430b,_0x3f43d6,_0x557d94- -_0x4d10b1._0x5db381);}return yield createToolOutput(_0x43981f(_0x37f80e._0x5339a7,_0x37f80e._0x3c75f9,-0x11,0x90)+_0x5d7ea1['filePath']+'.',{'filePath':_0x5d7ea1[_0x43981f(_0x37f80e._0xc8a807,_0x37f80e._0x2a7c1c,0x84,0x148)],'resolvedPath':_0x1d9ecf,'bytes':_0x38c66b[_0x43981f(0x199,0xaf,_0x37f80e._0x140de8,_0x37f80e._0xae882d)],'lines':_0x5d7ea1[_0x43981f(0x166,0x100,_0x37f80e._0x1ddbce,_0x37f80e._0x2e8b48)][_0x34fb42(_0x37f80e._0x1189ef,0x667,0x566,0x65e)](/\r?\n/)[_0x43981f(-_0x37f80e._0x53c941,_0x37f80e._0x383814,0x10c,0x1e5)],'created':new Date()['toISOString'](),'overwritten':_0x2c8b06}),void 0x0;}});}import{readFile as _0x58d741,stat as _0x4df592}from'fs/promises';import*as _0x2c4be6 from'path';function stripUtfBom(_0x3a5740){const _0x2c1928={_0x4649cf:0x332,_0x2e09e5:0x26b,_0x23a8d2:0x77a,_0xeba65f:0x764,_0x3f9f09:0x6d4},_0x588ea9={_0x1c973e:0x266};function _0x34bd6b(_0x4c5058,_0xa8aff3,_0x3c6c5c,_0xba11aa){return _0x3342ed(_0x4c5058-0x56,_0xba11aa,_0x4c5058-0x117,_0xba11aa-0x16f);}function _0x310dda(_0x31a179,_0xb4fe7f,_0xd42bb,_0x1af39c){return _0x257320(_0x31a179-0x2d,_0xb4fe7f-0x1b2,_0x31a179-_0x588ea9._0x1c973e,_0xd42bb);}return _0x3a5740[_0x34bd6b(_0x2c1928._0x4649cf,0x1c6,0x23c,_0x2c1928._0x2e09e5)](0x0)===0xfeff?_0x3a5740[_0x310dda(_0x2c1928._0x23a8d2,_0x2c1928._0xeba65f,0x795,_0x2c1928._0x3f9f09)](0x1):_0x3a5740;}function clampLine(_0x1b8b75,_0x51b5bc){const _0x5c94fa={_0x2b3d1b:0x37,_0x5cdbcb:0x159,_0x582768:0x1bf,_0x58e2a4:0x151,_0x179f41:0x9b,_0x2680fa:0xee,_0x421b97:0xed,_0x1d33f4:0xc5,_0x467d7f:0x279,_0x185466:0x26c,_0x270fdd:0xd9},_0x39ede2={_0x53f012:0x178,_0x326654:0x20,_0x575114:0x337},_0x302a21={_0x872774:0x168,_0x16efb2:0x17d};if(!Number[_0x103574(_0x5c94fa._0x2b3d1b,_0x5c94fa._0x5cdbcb,_0x5c94fa._0x582768,_0x5c94fa._0x58e2a4)](_0x1b8b75))return 0x1;function _0x11c103(_0x309894,_0x46bc93,_0x459af8,_0x496e73){return _0x3342ed(_0x309894-_0x302a21._0x872774,_0x496e73,_0x46bc93- -_0x302a21._0x16efb2,_0x496e73-0x19f);}function _0x103574(_0xcbd0fd,_0x24851c,_0x2fcb11,_0x19a82f){return _0x257320(_0xcbd0fd-_0x39ede2._0x53f012,_0x24851c-_0x39ede2._0x326654,_0x24851c- -_0x39ede2._0x575114,_0xcbd0fd);}return Math[_0x103574(_0x5c94fa._0x179f41,-0x53,_0x5c94fa._0x2680fa,-_0x5c94fa._0x421b97)](0x1,Math[_0x103574(_0x5c94fa._0x1d33f4,0x12f,_0x5c94fa._0x467d7f,_0x5c94fa._0x185466)](Math[_0x11c103(_0x5c94fa._0x270fdd,0x122,0x5d,-0x3a)](_0x1b8b75),_0x51b5bc));}function createFileReadTool(_0x2d92ec={}){const _0x3ff673={_0x385800:0x19f,_0x25ab83:0x5e,_0x41351f:0xe9,_0x373837:0x103,_0x44358a:0xdc,_0x543be9:0xe0,_0x2c33a3:0xd8,_0x3a9b64:0x1,_0x2e5beb:0x10d,_0x3085d9:0xc,_0x254ed6:0x6d5,_0x2a3439:0x5de,_0x33757b:0x6c3,_0x58a212:0x239,_0xddd759:0x74,_0x2a4d4c:0xc2,_0x2a9fe4:0x11b,_0x4bb537:0x45c,_0x43d179:0x57b},_0x6d0ef7={_0x4f258b:0x2e,_0xbbb0a9:0x1d9,_0x187366:0x54a,_0x232e57:0x3a8,_0x32e7f9:0x61e,_0x4e3b38:0x6d8,_0x12ce8f:0x62a,_0x4c9371:0x4f,_0x54faa1:0x10f,_0x3aa1dd:0x158,_0x881494:0x9e,_0x4b7b31:0x75,_0x3f2731:0x36,_0x44d566:0xad,_0x3f910c:0x307,_0x20da79:0x1a9,_0xbcb67c:0x7a3,_0x207b49:0x516,_0x2f73f7:0x62d,_0x1586a0:0x46,_0x2a94e2:0x53,_0x334e6e:0x3c,_0x5d98c0:0x243,_0x117840:0xed,_0x391982:0x7a,_0x224f0c:0x765,_0x3a9eba:0x6a7,_0x50d563:0xe6,_0x4dae40:0x6aa,_0x4a3e31:0x597,_0x4dd137:0x721,_0x4909ab:0x41c,_0xed6a1f:0x2a2,_0x4a1b31:0x1ea,_0xb80914:0x118,_0x44e65b:0xec,_0x4cf8b9:0x3e,_0x1147c0:0x765,_0x294ecd:0x7f8},_0x156621={_0x5cc00d:0x1ec,_0x7cf815:0xd4},_0x5b3ab1={_0x83721e:0x19f,_0x346f2d:0x12e},_0x2b8c41=_0x2c4be6[_0x1b3797(0xae,0x123,-0xe0,0x61)](_0x2d92ec['defaultCwd']??process[_0x1b3797(_0x3ff673._0x385800,-_0x3ff673._0x25ab83,0x147,_0x3ff673._0x41351f)]()),_0x526c0d=(_0x2d92ec[_0x1b3797(-_0x3ff673._0x373837,-0x93,_0x3ff673._0x44358a,-0x15)]??[])[_0x1b3797(-_0x3ff673._0x543be9,0x175,-0x13e,0x21)](_0x4c7678=>_0x2c4be6['resolve'](_0x4c7678));function _0x1b3797(_0x2dc06d,_0x51dcfd,_0x177387,_0x24977e){return _0x3342ed(_0x2dc06d-_0x5b3ab1._0x83721e,_0x2dc06d,_0x24977e- -0x270,_0x24977e-_0x5b3ab1._0x346f2d);}const _0x3d4bf5=_0x2d92ec[_0x1b3797(0xb1,-0xc9,-0xab,0x30)]??_0x1b3797(0x16d,0xa2,0x7b,0x104);function _0x6d3915(_0x25f849,_0x37ffdd,_0x4ec985,_0xbd9e35){return _0x257320(_0x25f849-_0x156621._0x5cc00d,_0x37ffdd-_0x156621._0x7cf815,_0x37ffdd-0x1bd,_0x4ec985);}return defineTool({'name':_0x3d4bf5,'description':_0x1b3797(-_0x3ff673._0x2c33a3,-0x162,0x7,-_0x3ff673._0x3a9b64),'inputSchema':{'type':_0x1b3797(0x88,-0x13,-_0x3ff673._0x2e5beb,-_0x3ff673._0x3085d9),'properties':{'path':{'type':_0x6d3915(0x71a,_0x3ff673._0x254ed6,_0x3ff673._0x2a3439,_0x3ff673._0x33757b)},'lineStart':{'type':_0x1b3797(_0x3ff673._0x58a212,0xe2,-_0x3ff673._0xddd759,_0x3ff673._0x2a4d4c),'description':_0x1b3797(0xba,-_0x3ff673._0x2a9fe4,-0x1f,0x44)},'lineEnd':{'type':_0x6d3915(_0x3ff673._0x4bb537,_0x3ff673._0x43d179,0x6a3,0x4a2),'description':_0x6d3915(0x575,0x6bb,0x5e8,0x6c4)}},'required':['path']},async *'execute'(_0x556214){const _0x4f83c0={_0x4986fc:0x21,_0x252bb5:0x184,_0x31bd3f:0x540},_0x1eb25b=resolveAllowedPath(_0x2b8c41,_0x526c0d,_0x556214['path']);await assertWorkspaceFile(_0x1eb25b);const _0x1039ab=await _0x4df592(_0x1eb25b),_0x3497ad=await _0x58d741(_0x1eb25b);if(isProbablyBinary(_0x3497ad))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x556214['path'],{'path':_0x556214['path']});let _0x5b0327=_0x3497ad[_0xd1805b(0xa3,-0x13f,-0x23,-_0x6d0ef7._0x4f258b)](_0xd1805b(0x148,0x212,_0x6d0ef7._0xbbb0a9,0x1a9));const _0xf1c8e0=_0x5b0327[_0x48697b(0x4eb,_0x6d0ef7._0x187366,_0x6d0ef7._0x232e57,0x443)](0x0)===0xfeff;function _0xd1805b(_0x5ab748,_0x1c918f,_0x24d5eb,_0xf713fd){return _0x6d3915(_0x5ab748-0x103,_0xf713fd- -0x558,_0x1c918f,_0xf713fd-0x1ad);}_0x5b0327=stripUtfBom(_0x5b0327);const _0xfdc18b=_0x5b0327['split'](/\r?\n/),_0x5c183e={'path':_0x556214['path'],'resolvedPath':_0x1eb25b,'created':_0x1039ab[_0x48697b(_0x6d0ef7._0x32e7f9,_0x6d0ef7._0x4e3b38,_0x6d0ef7._0x12ce8f,0x586)]['toISOString'](),'modified':_0x1039ab[_0xd1805b(_0x6d0ef7._0x4c9371,_0x6d0ef7._0x54faa1,0x256,_0x6d0ef7._0x3aa1dd)][_0xd1805b(0x1ab,_0x6d0ef7._0x881494,0xb3,0x91)](),'size':_0x1039ab[_0xd1805b(_0x6d0ef7._0x4b7b31,0x18b,0x152,0x164)],'encoding':_0xd1805b(_0x6d0ef7._0x3f2731,_0x6d0ef7._0x44d566,_0x6d0ef7._0x3f910c,_0x6d0ef7._0x20da79),'bomStripped':_0xf1c8e0,'truncated':![],'totalLines':_0xfdc18b[_0x48697b(0x765,_0x6d0ef7._0xbcb67c,0x703,0x68e)]};if(_0x556214[_0x48697b(_0x6d0ef7._0x207b49,0x5d6,_0x6d0ef7._0x2f73f7,0x4b1)]!==void 0x0||_0x556214[_0xd1805b(-0x25,-_0x6d0ef7._0x1586a0,0x160,_0x6d0ef7._0x2a94e2)]!==void 0x0){const _0x2d0e86=clampLine(_0x556214[_0xd1805b(-0x1d0,-0x5f,-_0x6d0ef7._0x334e6e,-0xc9)]??0x1,_0xfdc18b[_0xd1805b(0x1a3,0x274,_0x6d0ef7._0x5d98c0,0x186)]),_0x1205ef=clampLine(_0x556214[_0xd1805b(-_0x6d0ef7._0x117840,0x111,-_0x6d0ef7._0x391982,_0x6d0ef7._0x2a94e2)]??_0xfdc18b[_0x48697b(_0x6d0ef7._0x224f0c,0x88b,0x8a6,_0x6d0ef7._0x3a9eba)],_0xfdc18b[_0xd1805b(_0x6d0ef7._0x50d563,0x24e,0x266,0x186)]),_0x2b3f82=Math[_0x48697b(_0x6d0ef7._0x4dae40,0x5ff,_0x6d0ef7._0x4a3e31,_0x6d0ef7._0x4dd137)](_0x2d0e86,_0x1205ef),_0x4d6e8a=Math[_0x48697b(0x528,_0x6d0ef7._0x4a3e31,0x44f,_0x6d0ef7._0x4909ab)](_0x2d0e86,_0x1205ef),_0x4c15fb=_0xfdc18b[_0xd1805b(_0x6d0ef7._0xed6a1f,_0x6d0ef7._0x4a1b31,_0x6d0ef7._0xb80914,0x179)](_0x2b3f82-0x1,_0x4d6e8a)[_0xd1805b(-_0x6d0ef7._0x44e65b,-0x179,-_0x6d0ef7._0x4cf8b9,-0x7e)]((_0x34b12e,_0x519253)=>_0x2b3f82+_0x519253+'|'+_0x34b12e)[_0x48697b(0x706,0x5e7,0x65b,0x74a)]('\x0a');return yield createToolOutput(_0x4c15fb,{..._0x5c183e,'lineRange':{'lineStart':_0x2b3f82,'lineEnd':_0x4d6e8a,'linesTotal':_0xfdc18b[_0x48697b(_0x6d0ef7._0x1147c0,0x851,_0x6d0ef7._0x294ecd,0x8af)]}}),void 0x0;}yield createToolOutput(_0x5b0327,_0x5c183e);function _0x48697b(_0x8cec11,_0x5f13c0,_0x42fd64,_0x506639){return _0x1b3797(_0x506639,_0x5f13c0-_0x4f83c0._0x4986fc,_0x42fd64-_0x4f83c0._0x252bb5,_0x8cec11-_0x4f83c0._0x31bd3f);}return void 0x0;}});}import{stat as _0x1c2177}from'fs/promises';import*as _0xdf96a5 from'path';import{execSync,spawn as _0x2fc64f}from'child_process';import{existsSync}from'fs';import{stat as _0x4d84ee}from'fs/promises';import*as _0x3c7073 from'os';import*as _0x17f052 from'path';import{rgPath as _0x21f6f4}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x10f95a={_0x2e1cb5:0x1cf,_0x1174a6:0x78,_0x3e7d75:0x191,_0x2c25d2:0x16e,_0x81b414:0x200,_0x55736b:0x155,_0x15a1c1:0x4cf,_0x54ccc7:0x2ff,_0x2fa278:0x275,_0x3bae6c:0x14e,_0x4d3a4b:0x111,_0x55fedc:0x160,_0xbff854:0x120,_0x584851:0x1d0,_0x17c184:0xee,_0x455d1a:0x2ff,_0x110a98:0x445,_0x49000d:0x15d,_0xf55108:0x23c,_0x5751cf:0x4c1,_0x32b4c4:0x316,_0xe2dd80:0x1f2,_0x2dd2bd:0xf9,_0x373a61:0x10d,_0x49d99d:0x184,_0x3f50ca:0x28b,_0x5d40eb:0x289,_0x1de807:0x291,_0x213578:0x376,_0x285858:0xc8,_0x110ae8:0xa7,_0x57f334:0x91,_0x3d5b92:0x5d,_0x59d46c:0x14f,_0x1ec962:0x163,_0x408494:0xb,_0x2d6d07:0x5f,_0x5c62bf:0x3b1,_0x406714:0x4cc},_0x166687={_0x249960:0x1bb,_0x50f356:0x489,_0x1466fa:0x1c3},_0x4d325c={_0xd72fe2:0xfc,_0x48c423:0x1c3},_0x52bf25=_0x3c7073[_0x30d02e(_0x10f95a._0x2e1cb5,0x71,0x1a7,0x335)]()==='win32',_0x1b59eb=_0x52bf25?[_0x17f052[_0x132612(0x11b,-0x53,0xf7,-0x11f)](process[_0x30d02e(0x1e4,0x112,_0x10f95a._0x1174a6,0x334)][_0x132612(-_0x10f95a._0x3e7d75,-0x19b,-0x24,-0x48)]||'',_0x30d02e(_0x10f95a._0x2c25d2,_0x10f95a._0x81b414,_0x10f95a._0x55736b,0x271),_0x30d02e(0x368,0x4b2,0x362,_0x10f95a._0x15a1c1),'Packages'),_0x17f052[_0x30d02e(_0x10f95a._0x54ccc7,_0x10f95a._0x2fa278,0x291,0x30b)](process[_0x30d02e(0x1e4,_0x10f95a._0x3bae6c,0x183,0x186)][_0x30d02e(_0x10f95a._0x4d3a4b,0x6e,0x1bd,0xf7)]||'','ripgrep',_0x30d02e(_0x10f95a._0x55fedc,_0x10f95a._0xbff854,_0x10f95a._0x584851,_0x10f95a._0x17c184)),_0x17f052[_0x30d02e(_0x10f95a._0x455d1a,0x443,_0x10f95a._0x110a98,0x3fe)](process[_0x132612(-_0x10f95a._0x49000d,-_0x10f95a._0x2c25d2,-_0x10f95a._0xf55108,-0x180)]['ProgramFiles(x86)']||'',_0x30d02e(0x36d,0x423,_0x10f95a._0x5751cf,_0x10f95a._0x32b4c4),_0x132612(-0x193,-_0x10f95a._0xe2dd80,-_0x10f95a._0x2dd2bd,-_0x10f95a._0x373a61))]:[_0x30d02e(_0x10f95a._0x49d99d,0xe6,0x187,_0x10f95a._0x3f50ca),_0x30d02e(0x191,0x27d,_0x10f95a._0x5d40eb,0x7d),_0x30d02e(_0x10f95a._0x1de807,0x26d,_0x10f95a._0x213578,0x124),'/bin/rg'];for(const _0x3b8468 of _0x1b59eb){if(existsSync(_0x3b8468))return _0x3b8468;}function _0x30d02e(_0x115a38,_0x1c347c,_0x984c5a,_0x59daf7){return _0x257320(_0x115a38-0x6e,_0x1c347c-_0x4d325c._0xd72fe2,_0x115a38- -_0x4d325c._0x48c423,_0x984c5a);}try{const _0x184937=_0x52bf25?_0x132612(_0x10f95a._0x285858,-_0x10f95a._0x110ae8,_0x10f95a._0x57f334,_0x10f95a._0x3d5b92):_0x30d02e(0x1ed,0x106,_0x10f95a._0x59d46c,0x160),_0x4aa60c=execSync(_0x184937,{'encoding':_0x30d02e(0x381,0x48e,0x31c,0x2bb),'stdio':[_0x132612(-_0x10f95a._0x1ec962,-0x101,_0x10f95a._0x408494,_0x10f95a._0x2d6d07),'pipe',_0x30d02e(_0x10f95a._0x5c62bf,_0x10f95a._0x406714,0x407,0x50b)]})['trim']()['split'](/\r?\n/)[0x0];if(_0x4aa60c&&existsSync(_0x4aa60c))return _0x4aa60c;}catch{return null;}function _0x132612(_0x2f8b81,_0x4d1670,_0x4b656c,_0x186815){return _0x3342ed(_0x2f8b81-_0x166687._0x249960,_0x2f8b81,_0x4d1670- -_0x166687._0x50f356,_0x186815-_0x166687._0x1466fa);}return null;}async function filepath(){const _0x3e5410={_0x3c33b6:0x2d7};if(cachedRgPath)return cachedRgPath;if(_0x21f6f4&&existsSync(_0x21f6f4))return cachedRgPath=_0x21f6f4,_0x21f6f4;const _0x9765f2=findSystemRipgrep();if(!_0x9765f2)throw new Error(_0x3d1a8b(0x1dd,0x300,0x2a1,_0x3e5410._0x3c33b6));function _0x3d1a8b(_0x1fa710,_0xfac906,_0x445197,_0x49409f){return _0x257320(_0x1fa710-0x169,_0xfac906-0x56,_0xfac906- -0xa9,_0x1fa710);}return cachedRgPath=_0x9765f2,_0x9765f2;}async function*files(_0x2cebaf){const _0x36f5a9={_0x5acf06:0x100,_0x5a45a8:0xf1,_0x1cedad:0x24c,_0x5b25d2:0x16e,_0x3b9871:0x9,_0x1ad465:0x222,_0x5724ae:0x63,_0x295e80:0xb0,_0x394e62:0x59,_0x42e092:0x6f9,_0x2251a8:0x795,_0x201e10:0x3cd,_0x43e0da:0x3f8,_0x2faa26:0x508,_0x18febd:0x206,_0x17ad84:0x1c6,_0x422f02:0x133,_0x143b7f:0x237,_0x4e26f4:0x13b,_0x3fa025:0x17b,_0xf871fb:0x131,_0x594a72:0x1fc,_0x47dcf7:0xaf,_0xfccd31:0x177,_0x382a01:0x223,_0x3268d4:0x14c,_0x4c9949:0x1b3,_0x536bd6:0x61a,_0x3a61ae:0x518,_0x513506:0x23,_0x22c6ee:0x55,_0x34d931:0x12a,_0x17b448:0x8a,_0x30c4dd:0x104,_0x5510ae:0x4b,_0x2db5bb:0x707,_0x105cca:0x4d7,_0x51ead8:0x49e,_0x5852be:0x5d3,_0x89a959:0x47c,_0x137ec9:0x4e1,_0x290a26:0x52c,_0x510560:0x309,_0x926d47:0x4a,_0x4462ea:0x44,_0x554f9c:0x83,_0x56b767:0x638,_0x2d7ed6:0x574,_0x346d1c:0x6e0,_0x154683:0x77,_0x36d2b3:0x1d1,_0x170382:0x193,_0x4465c5:0x55c,_0x2c102e:0x491,_0x3324ff:0x482},_0x49811f={_0x6f726c:0x334},_0x212e45=await filepath(),_0x27d197=await _0x4d84ee(_0x2cebaf[_0x9ddfb5(0x95,_0x36f5a9._0x5acf06,0x25,-0x7b)])[_0x9ddfb5(_0x36f5a9._0x5a45a8,_0x36f5a9._0x1cedad,_0x36f5a9._0x5b25d2,_0x36f5a9._0x3b9871)](()=>null);function _0x185f91(_0x521055,_0x19710e,_0xed1ee0,_0x11a6e3){return _0x257320(_0x521055-0x8d,_0x19710e-0x1d8,_0x11a6e3-0x1bf,_0x19710e);}if(!_0x27d197?.[_0x9ddfb5(_0x36f5a9._0x1ad465,_0x36f5a9._0x5724ae,_0x36f5a9._0x295e80,-_0x36f5a9._0x394e62)]())throw Object[_0x185f91(_0x36f5a9._0x42e092,0x702,_0x36f5a9._0x2251a8,0x6a7)](new Error(_0x185f91(_0x36f5a9._0x201e10,_0x36f5a9._0x43e0da,0x474,_0x36f5a9._0x2faa26)+_0x2cebaf[_0x185f91(0x5b8,0x4ef,0x5ce,0x5a4)]+'\x27'),{'code':_0x9ddfb5(_0x36f5a9._0x18febd,0x223,_0x36f5a9._0x17ad84,_0x36f5a9._0x422f02)});const _0x374108=[_0x9ddfb5(_0x36f5a9._0x143b7f,_0x36f5a9._0x4e26f4,_0x36f5a9._0x3fa025,0x222),_0x9ddfb5(_0x36f5a9._0xf871fb,_0x36f5a9._0x594a72,_0x36f5a9._0x47dcf7,_0x36f5a9._0xfccd31),_0x9ddfb5(_0x36f5a9._0x382a01,_0x36f5a9._0x3268d4,_0x36f5a9._0x4c9949,0xf2),_0x185f91(_0x36f5a9._0x536bd6,0x6b5,_0x36f5a9._0x3a61ae,0x661)];for(const _0x26563a of _0x2cebaf['glob']??[]){_0x374108[_0x9ddfb5(-_0x36f5a9._0x513506,-0x97,-_0x36f5a9._0x22c6ee,-_0x36f5a9._0x34d931)](_0x9ddfb5(_0x36f5a9._0x17b448,_0x36f5a9._0x30c4dd,-_0x36f5a9._0x5510ae,-0x1c4)+_0x26563a);}const _0xe5f661=_0x2fc64f(_0x212e45,_0x374108,{'cwd':_0x2cebaf[_0x185f91(0x651,_0x36f5a9._0x2db5bb,_0x36f5a9._0x105cca,0x5a4)],'stdio':['ignore','pipe',_0x185f91(0x5ad,_0x36f5a9._0x51ead8,0x55b,_0x36f5a9._0x5852be)]});let _0x5b0c9f='';function _0x9ddfb5(_0x148363,_0x2d7d42,_0x50e88b,_0x5bdc7c){return _0x3342ed(_0x148363-0x199,_0x5bdc7c,_0x50e88b- -_0x49811f._0x6f726c,_0x5bdc7c-0x3f);}for await(const _0x353e5a of _0xe5f661['stdout']??[]){_0x5b0c9f+=_0x353e5a[_0x185f91(0x562,_0x36f5a9._0x89a959,_0x36f5a9._0x137ec9,_0x36f5a9._0x290a26)]();const _0x4174eb=_0x5b0c9f[_0x9ddfb5(_0x36f5a9._0x510560,0x3c,0x1a9,0x30a)](/\r?\n/);_0x5b0c9f=_0x4174eb[_0x9ddfb5(_0x36f5a9._0x926d47,-_0x36f5a9._0x4462ea,-_0x36f5a9._0x554f9c,-0x115)]()??'';for(const _0x1574a4 of _0x4174eb){if(_0x1574a4[_0x185f91(_0x36f5a9._0x56b767,_0x36f5a9._0x2d7ed6,0x7e2,_0x36f5a9._0x346d1c)]>0x0)yield _0x1574a4;}}_0x5b0c9f[_0x9ddfb5(_0x36f5a9._0x154683,-0x1fa,-0xfd,-0x188)]()[_0x9ddfb5(0x40,_0x36f5a9._0x36d2b3,0x161,_0x36f5a9._0x170382)]>0x0&&(yield _0x5b0c9f[_0x185f91(_0x36f5a9._0x4465c5,_0x36f5a9._0x2c102e,0x384,_0x36f5a9._0x3324ff)]());}function parseMatchLine(_0x6fc68b,_0x383a86){const _0x5aa530={_0x3017f8:0xb,_0x31ef40:0x4,_0x4c6997:0x170,_0x306d25:0x5dc,_0x247ed2:0x805,_0x1f3a52:0x6c7,_0xcad7a9:0x5ef,_0x2cedf3:0x503,_0xb7595a:0x10b,_0x454f9d:0x1db,_0x1990b9:0x5ff,_0x29ab51:0x171,_0x2fb015:0x770,_0x4cbae5:0x6f5,_0x11c69b:0x81b,_0x48e6c3:0x6c7,_0x48a34b:0x79e,_0x39c1e6:0x6a9,_0xb648d9:0x624,_0x2b266c:0x75,_0x31e511:0xb2,_0x5d3277:0x20},_0x44eb13={_0x27c091:0x2c3,_0xf8051e:0x1e2};if(!_0x6fc68b||_0x6fc68b==='--')return null;const _0x465967=_0x6fc68b[_0x4b1da5(0x160,-_0x5aa530._0x3017f8,0x60,_0x5aa530._0x31ef40)]('|');function _0x203a05(_0x4206fb,_0x375e6a,_0x31f574,_0x45f953){return _0x3342ed(_0x4206fb-0x167,_0x31f574,_0x45f953-_0x44eb13._0x27c091,_0x45f953-_0x44eb13._0xf8051e);}if(_0x383a86&&_0x465967[_0x4b1da5(0x118,0x271,0x145,_0x5aa530._0x4c6997)]>=0x4&&Number[_0x203a05(_0x5aa530._0x306d25,0x5ae,_0x5aa530._0x247ed2,_0x5aa530._0x1f3a52)](Number[_0x203a05(0x5e0,0x3bd,_0x5aa530._0xcad7a9,_0x5aa530._0x2cedf3)](_0x465967[0x2]??'',0xa))){const _0xf6a3ac=Number['parseInt'](_0x465967[0x1]??'',0xa);if(!Number['isFinite'](_0xf6a3ac)||!_0x465967[0x0])return null;return{'filePath':_0x465967[0x0],'lineNum':_0xf6a3ac,'lineText':_0x465967[_0x4b1da5(_0x5aa530._0xb7595a,0x2c,0x113,_0x5aa530._0x454f9d)](0x3)['join']('|')};}function _0x4b1da5(_0x57751f,_0x57a91f,_0x79f454,_0x526c98){return _0x257320(_0x57751f-0x100,_0x57a91f-0x125,_0x57751f- -0x409,_0x526c98);}if(_0x465967[_0x203a05(0x88c,0x836,_0x5aa530._0x1990b9,0x758)]>=0x3){const _0x3eca48=Number[_0x4b1da5(-0x13d,-0x63,-_0x5aa530._0x29ab51,-0x260)](_0x465967[0x1]??'',0xa);if(!Number[_0x203a05(_0x5aa530._0x2fb015,_0x5aa530._0x4cbae5,_0x5aa530._0x11c69b,_0x5aa530._0x48e6c3)](_0x3eca48)||!_0x465967[0x0])return null;return{'filePath':_0x465967[0x0],'lineNum':_0x3eca48,'lineText':_0x465967[_0x203a05(_0x5aa530._0x48a34b,_0x5aa530._0x39c1e6,_0x5aa530._0xb648d9,0x74b)](0x2)[_0x4b1da5(0xb9,_0x5aa530._0x2b266c,_0x5aa530._0x31e511,_0x5aa530._0x5d3277)]('|'),..._0x383a86?{'isContext':!![]}:{}};}return null;}async function search(_0xc4485d){const _0x56d316={_0x3f24fc:0x3e,_0x130ab9:0xdc,_0x28c53c:0xcb,_0x39dc0e:0x7b0,_0x2cf055:0x706,_0x895b55:0x479,_0x31ba97:0x58a,_0x393202:0x343,_0x4415a3:0x1cd,_0x50c20e:0x157,_0x303c24:0xa0,_0x519d0f:0x153,_0x11ae55:0x112,_0x5d770b:0x50e,_0x9a33aa:0x4f0,_0x379974:0x1ce,_0x488636:0x27d,_0x38be88:0x57b,_0x1cf4d7:0x6a9,_0x165c94:0x207,_0x440639:0xb6,_0x3e58e1:0x5,_0x2fd1f6:0x2ad,_0x54d650:0x2a5,_0x339389:0x39a,_0x4b27d5:0x1d4,_0x395d68:0x46a,_0x43eb14:0x4dc,_0x52b9c8:0x4b3,_0x599381:0x8,_0xe1b9e7:0xb,_0x3f9262:0xd7,_0x25caf6:0xb9,_0x1f3b6e:0xe5,_0x594a24:0x91,_0x1f5551:0x380,_0x3e1dfa:0x221,_0x337920:0x1ca,_0x4e8042:0x384,_0x13dc3d:0x129,_0x8e3af4:0x1fb,_0xc80cbb:0x60d,_0x5a9ae3:0x94,_0x5611dd:0x8a,_0x3243ca:0xc9,_0x365a74:0x5df,_0x2e496b:0xda,_0x1e446f:0x232,_0x3f5d5e:0x39d,_0x2e5f34:0x373,_0x312ec5:0x22,_0x20809c:0x104,_0x4de644:0x1cb},_0x11a495={_0x3868a9:0x472,_0x3bcd9a:0x262,_0x52f312:0x391,_0x55fd37:0x345,_0x34de5f:0x5,_0x3f31ea:0x264,_0x54aab2:0x144,_0x52435c:0x242,_0xa8f4ad:0xce,_0xec4c76:0x131,_0x1d2bac:0x2be,_0x5a1136:0x24f,_0x41f131:0x2bc,_0x4c39c2:0x5c,_0xbdf524:0x17c,_0x49a125:0x20d,_0x3749af:0x325,_0x369a62:0x154},_0xb6fe6a={_0x4de9bd:0x305,_0x53ed5f:0x243,_0x49e223:0x37e,_0x11fa1d:0x4cc,_0x43451c:0x57d,_0x1ec909:0x5e1,_0x16ad2c:0x696,_0x171be1:0xf9},_0x1da0a6={_0x570d2a:0x291,_0x1badfb:0x2ba},_0x570b75={_0x509d12:0xd5},_0x48b376={_0x218973:0xfb,_0x24aa27:0x2e1},_0x4e1e56={_0x2cd76b:0xa0,_0x2bcbf2:0x10b},_0x58d21c=await filepath();if(_0xc4485d['file']){const _0x3fae5c=await _0x4d84ee(_0xc4485d[_0x157cb9(0x80,-_0x56d316._0x3f24fc,_0x56d316._0x130ab9,-_0x56d316._0x28c53c)])[_0xd230d3(_0x56d316._0x39dc0e,_0x56d316._0x2cf055,0x639,0x4e1)](()=>null);if(!_0x3fae5c?.[_0xd230d3(0x3f0,0x5b6,_0x56d316._0x895b55,_0x56d316._0x31ba97)]())throw Object[_0x157cb9(_0x56d316._0x393202,0x207,_0x56d316._0x4415a3,0xb9)](new Error(_0x157cb9(_0x56d316._0x50c20e,0x1d7,0x16d,0x227)+_0xc4485d[_0x157cb9(_0x56d316._0x303c24,-_0x56d316._0x3f24fc,-_0x56d316._0x519d0f,-_0x56d316._0x11ae55)]+'\x27'),{'code':_0xd230d3(0x68d,0x661,0x691,0x680)});}else{const _0x26c422=await _0x4d84ee(_0xc4485d[_0xd230d3(_0x56d316._0x5d770b,0x559,_0x56d316._0x9a33aa,0x44b)])[_0x157cb9(_0x56d316._0x379974,0x24d,0x2cd,_0x56d316._0x488636)](()=>null);if(!_0x26c422?.[_0xd230d3(0x5fa,0x49f,_0x56d316._0x38be88,_0x56d316._0x1cf4d7)]())throw Object[_0x157cb9(0x152,_0x56d316._0x165c94,0x201,0x98)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0xc4485d[_0x157cb9(_0x56d316._0x440639,0x104,-_0x56d316._0x3e58e1,-0x1a)]+'\x27'),{'code':_0x157cb9(_0x56d316._0x2fd1f6,_0x56d316._0x54d650,_0x56d316._0x339389,_0x56d316._0x4b27d5)});}const _0x25737f=[_0xd230d3(0x42b,0x5b9,0x59a,0x63c),'--field-match-separator=|',_0xd230d3(0x46c,_0x56d316._0x395d68,_0x56d316._0x43eb14,_0x56d316._0x52b9c8),_0x157cb9(_0x56d316._0x599381,_0x56d316._0xe1b9e7,_0x56d316._0x3f9262,0x7e),_0xc4485d[_0x157cb9(_0x56d316._0x25caf6,_0x56d316._0x1f3b6e,_0x56d316._0x594a24,-0x24)]],_0x28dee7=typeof _0xc4485d[_0x157cb9(_0x56d316._0x1f5551,_0x56d316._0x3e1dfa,_0x56d316._0x337920,_0x56d316._0x4e8042)]===_0x157cb9(_0x56d316._0x13dc3d,0xdd,0x112,_0x56d316._0x8e3af4)&&_0xc4485d[_0xd230d3(0x6d7,0x70c,_0x56d316._0xc80cbb,0x587)]>0x0;_0x28dee7&&_0x25737f[_0x157cb9(-_0x56d316._0x5a9ae3,_0x56d316._0x5611dd,-0xa,-_0x56d316._0x3243ca)]('-C',String(_0xc4485d['context']),'--column');function _0xd230d3(_0x1bf12c,_0x36fb11,_0x29964d,_0x3e7157){return _0x257320(_0x1bf12c-0x177,_0x36fb11-_0x4e1e56._0x2cd76b,_0x29964d-_0x4e1e56._0x2bcbf2,_0x36fb11);}_0xc4485d['glob']&&!_0xc4485d['file']&&_0x25737f['push'](_0xd230d3(0x441,_0x56d316._0x365a74,0x486,0x4fc),_0xc4485d[_0x157cb9(_0x56d316._0x2e496b,_0x56d316._0x1e446f,_0x56d316._0x3f5d5e,0xb9)]);_0x25737f[_0xd230d3(0x36f,_0x56d316._0x2e5f34,0x476,0x34b)](_0xc4485d[_0x157cb9(-0x2,-0x3e,-_0x56d316._0x312ec5,0x45)]??_0xc4485d[_0x157cb9(0x115,_0x56d316._0x20809c,0x43,_0x56d316._0x4de644)]);function _0x157cb9(_0x516882,_0x4fec56,_0xe919c2,_0x4a4713){return _0x257320(_0x516882-0x6b,_0x4fec56-_0x48b376._0x218973,_0x4fec56- -_0x48b376._0x24aa27,_0xe919c2);}return await new Promise((_0x33b15c,_0x122053)=>{const _0x38ae4e={_0x54fd37:0x99,_0x2aef12:0x29c},_0x122485={_0x3c4c47:0x3e,_0xe408a3:0x58,_0x38cd95:0x16},_0x59ed71={_0x3327d0:0xd3,_0x1f2cfe:0x130},_0x5b0a22={_0xe9e8e8:0x105,_0x10389e:0xa4},_0xce2d70={_0x5d82a0:0x14,_0x138e5a:0x114},_0x227828={_0x4d0449:0x143};function _0x2674d5(_0xf95754,_0x1f7496,_0x47c2b9,_0xa0568b){return _0x157cb9(_0xf95754-0x1d4,_0x1f7496-_0x570b75._0x509d12,_0x47c2b9,_0xa0568b-0xbe);}const _0x55b60e=_0x2fc64f(_0x58d21c,_0x25737f,{'cwd':_0xc4485d['cwd'],'stdio':[_0x2674d5(_0x11a495._0x3868a9,0x368,0x282,0x1f5),_0x2e4486(_0x11a495._0x3bcd9a,_0x11a495._0x52f312,_0x11a495._0x55fd37,0x238),'pipe']});let _0x9a7df8='',_0x1178da='';_0x55b60e[_0x2e4486(_0x11a495._0x34de5f,_0x11a495._0x3f31ea,0x261,_0x11a495._0x54aab2)]?.['on']('data',_0x2f75cb=>{function _0x342991(_0x44fa40,_0x20d9d9,_0x5cae6b,_0x50db7c){return _0x2674d5(_0x44fa40-0x4a,_0x44fa40- -_0x227828._0x4d0449,_0x20d9d9,_0x50db7c-0x4);}_0x9a7df8+=_0x2f75cb[_0x342991(0x1e,-0x4b,-_0xce2d70._0x5d82a0,_0xce2d70._0x138e5a)]();});function _0x2e4486(_0x367b5f,_0xa95e9c,_0x572295,_0x855910){return _0x157cb9(_0x367b5f-0x9c,_0x855910-_0x5b0a22._0xe9e8e8,_0x367b5f,_0x855910-_0x5b0a22._0x10389e);}_0x55b60e[_0x2674d5(0x16f,_0x11a495._0x52435c,_0x11a495._0xa8f4ad,_0x11a495._0xec4c76)]?.['on'](_0x2674d5(0x21d,_0x11a495._0x1d2bac,_0x11a495._0x5a1136,_0x11a495._0x41f131),_0x546659=>{function _0x18cfc1(_0x15df1d,_0x3b51ce,_0x31e227,_0x462296){return _0x2674d5(_0x15df1d-_0x59ed71._0x3327d0,_0x3b51ce-_0x59ed71._0x1f2cfe,_0x15df1d,_0x462296-0x11f);}_0x1178da+=_0x546659[_0x18cfc1(0x2f9,_0x1da0a6._0x570d2a,0x3cd,_0x1da0a6._0x1badfb)]();}),_0x55b60e['on'](_0x2e4486(_0x11a495._0x4c39c2,0x140,0x1c3,_0x11a495._0xbdf524),_0x43e795=>{if(_0x43e795===0x1&&_0x9a7df8===''){_0x33b15c([]);return;}if(_0x43e795!==0x0&&_0x43e795!==0x1){_0x122053(new Error(_0x59f88d(0x295,_0xb6fe6a._0x4de9bd,_0xb6fe6a._0x53ed5f,0x114)+_0x1178da));return;}const _0x4cfda2=_0xc4485d[_0x28d39f(0x3a9,_0xb6fe6a._0x49e223,0x4a5,_0xb6fe6a._0x11fa1d)]??0x64,_0x1d684a=[];for(const _0x2fafba of _0x9a7df8[_0x28d39f(_0xb6fe6a._0x43451c,0x629,0x55d,0x79e)](/\r?\n/)){if(_0x1d684a[_0x28d39f(0x46d,_0xb6fe6a._0x1ec909,0x5e2,_0xb6fe6a._0x16ad2c)]>=_0x4cfda2)break;const _0x1a1bd8=parseMatchLine(_0x2fafba,_0x28dee7);if(_0x1a1bd8)_0x1d684a[_0x59f88d(0x24a,0x140,0x1b7,_0xb6fe6a._0x171be1)](_0x1a1bd8);}function _0x59f88d(_0x50252a,_0x2bbbe0,_0x19fa4a,_0x10db4f){return _0x2674d5(_0x50252a-_0x122485._0x3c4c47,_0x19fa4a-_0x122485._0xe408a3,_0x50252a,_0x10db4f-_0x122485._0x38cd95);}function _0x28d39f(_0x128a4e,_0x33c1f3,_0x1d46dc,_0x187625){return _0x2e4486(_0x1d46dc,_0x33c1f3-0x4c,_0x1d46dc-_0x38ae4e._0x54fd37,_0x33c1f3-_0x38ae4e._0x2aef12);}_0x33b15c(_0x1d684a);}),_0x55b60e['on'](_0x2674d5(_0x11a495._0x49a125,0x254,_0x11a495._0x3749af,_0x11a495._0x369a62),_0x122053);});}function createGlobTool(_0x5cc335={}){const _0x95363f={_0x36a054:0x3a4,_0x26eb75:0x3ef,_0xbdb520:0x62a,_0x58f03d:0x588,_0x177283:0x3b8,_0x551789:0x42c,_0x190bcf:0x316,_0x2e6933:0x305,_0x517307:0x454,_0x89ce39:0x52b,_0x4b46d5:0x665,_0x12e992:0x52d,_0x4120ab:0x489,_0xc55cb9:0x69d,_0x53b738:0x603,_0x524d0f:0x848,_0xc26df3:0x55f,_0x34b4fa:0x6be,_0x35fa2f:0x66e,_0x4aa6ab:0x4a6},_0x23a9de={_0x335092:0x3c7,_0x3f0ecd:0x47a,_0x18b02a:0x38c,_0x39de89:0x487,_0x2a198e:0x46e,_0x38a03d:0x5ec,_0x1e641c:0x3c9,_0x217b38:0x53a,_0x2344bc:0x31b,_0xf7ceea:0x3e5,_0x4461dc:0x501,_0x270972:0x32f,_0x587f64:0x44e,_0x3b14c9:0x42f,_0xc72b88:0x618,_0x25c73a:0x58d,_0x132d8f:0x557,_0x563c43:0x4fd,_0xa0d114:0x628,_0x13e9a1:0x333,_0x90ff4a:0x47c,_0x2a5e53:0x41b,_0x4da23a:0x310,_0x2a5581:0x3eb,_0x1a6ac2:0x5cb,_0x5f2918:0x5b7,_0x4da38d:0x5a9,_0x1a8d31:0x827,_0x552cc7:0x733,_0x239a56:0x4b0,_0x13388d:0x4ac,_0x1ac342:0x39b,_0x56f43e:0x72c,_0x50ee12:0x763,_0x5a24d4:0x31f,_0x51d94e:0x1ff,_0x18c9df:0x318,_0x359599:0x290},_0x1fdef1={_0x163d1c:0xa,_0x3036be:0x2c6,_0x5a8036:0x18f},_0xacd1da={_0x2bb9cc:0x12b,_0xfde031:0x1cd,_0x539b6f:0x47},_0x1ca09a={_0x16d5a6:0x29,_0x4c984e:0x2ab},_0x2a954e=_0xdf96a5[_0x102e9d(0x4e7,_0x95363f._0x36a054,_0x95363f._0x26eb75,0x3ab)](_0x5cc335[_0xf57930(0x668,0x619,_0x95363f._0xbdb520,_0x95363f._0x58f03d)]??process[_0x102e9d(_0x95363f._0x177283,_0x95363f._0x551789,0x35b,0x34c)]());function _0xf57930(_0x63800a,_0xdb1d97,_0x35e58d,_0x4513ec){return _0x3342ed(_0x63800a-_0x1ca09a._0x16d5a6,_0xdb1d97,_0x35e58d-_0x1ca09a._0x4c984e,_0x4513ec-0xa9);}function _0x102e9d(_0x21d53a,_0x15829d,_0x4a647f,_0x4dc283){return _0x257320(_0x21d53a-_0xacd1da._0x2bb9cc,_0x15829d-_0xacd1da._0xfde031,_0x15829d-_0xacd1da._0x539b6f,_0x21d53a);}const _0x3d9438=(_0x5cc335['allowedDirs']??[])['map'](_0x355a28=>_0xdf96a5[_0x102e9d(0x516,0x3a4,0x386,0x2fb)](_0x355a28)),_0x40ee07=_0x5cc335[_0x102e9d(_0x95363f._0x190bcf,_0x95363f._0x2e6933,0x251,0x215)]??0x64,_0x10715c=_0x5cc335['name']??_0x102e9d(_0x95363f._0x517307,0x51f,_0x95363f._0x89ce39,0x523);return defineTool({'name':_0x10715c,'description':_0xf57930(0x669,_0x95363f._0x4b46d5,_0x95363f._0x12e992,_0x95363f._0x4120ab),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0xf57930(_0x95363f._0xc55cb9,_0x95363f._0x53b738,0x737,_0x95363f._0x524d0f)},'path':{'type':_0x102e9d(0x670,_0x95363f._0xc26df3,_0x95363f._0x34b4fa,0x4dc)},'limit':{'type':'number'}},'required':[_0xf57930(0x588,_0x95363f._0x35fa2f,0x5e5,_0x95363f._0x4aa6ab)]},async *'execute'(_0x4d2dbc){const _0x1778f7={_0x491295:0x1f7};if(_0x4d2dbc['pattern'][_0x31e4a1(0x4db,0x3c3,_0x23a9de._0x335092,0x501)]()[_0x4814a6(_0x23a9de._0x3f0ecd,0x441,0x4d7,_0x23a9de._0x18b02a)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x11b372=resolveAllowedPath(_0x2a954e,_0x3d9438,_0x4d2dbc['path']??'.'),_0x51cd2d=await _0x1c2177(_0x11b372)[_0x4814a6(_0x23a9de._0x39de89,_0x23a9de._0x2a198e,_0x23a9de._0x38a03d,0x41f)](()=>null);if(!_0x51cd2d?.[_0x4814a6(_0x23a9de._0x1e641c,_0x23a9de._0x217b38,0x48f,_0x23a9de._0x2344bc)]())throw new ToolExecutionError(_0x4814a6(_0x23a9de._0xf7ceea,_0x23a9de._0x4461dc,_0x23a9de._0x270972,0x3bc)+(_0x4d2dbc[_0x4814a6(0x37e,_0x23a9de._0x587f64,_0x23a9de._0x3b14c9,0x441)]??'.'),{'path':_0x4d2dbc[_0x31e4a1(0x5b1,0x747,_0x23a9de._0xc72b88,0x663)]??'.'});const _0xe3afd0=_0x4d2dbc[_0x31e4a1(_0x23a9de._0x25c73a,_0x23a9de._0x132d8f,_0x23a9de._0x563c43,0x4fc)]??_0x40ee07,_0x279180=Math[_0x31e4a1(0x3b6,0x3b3,_0x23a9de._0xa0d114,0x522)](0x1,Math['trunc'](_0xe3afd0)),_0x50c7fb=[];let _0x591afb=![];for await(const _0x2db1a7 of files({'cwd':_0x11b372,'glob':[_0x4d2dbc[_0x4814a6(0x31f,_0x23a9de._0x13e9a1,_0x23a9de._0x90ff4a,0x2aa)]]})){if(_0x50c7fb['length']>=_0x279180){_0x591afb=!![];break;}const _0x39ba41=await _0x1c2177(_0xdf96a5[_0x4814a6(_0x23a9de._0x2a5e53,_0x23a9de._0x4da23a,_0x23a9de._0x2a5581,0x4e5)](_0x11b372,_0x2db1a7))[_0x4814a6(0x487,0x582,0x5c7,_0x23a9de._0x1a6ac2)](()=>null);_0x50c7fb[_0x31e4a1(0x4b0,_0x23a9de._0x5f2918,0x58a,_0x23a9de._0x4da38d)]({'path':_0x2db1a7,'mtime':_0x39ba41?.[_0x31e4a1(0x694,_0x23a9de._0x1a8d31,0x787,_0x23a9de._0x552cc7)]??0x0});}_0x50c7fb['sort']((_0x278a7b,_0x1aba7e)=>_0x1aba7e[_0x31e4a1(0x5be,0x78c,0x82f,0x731)]-_0x278a7b['mtime']);const _0x22eeb8=_0x50c7fb[_0x4814a6(0x276,0x282,0x3c5,0x174)](_0x2cc4ee=>_0x2cc4ee['path']),_0x48f70c=_0x22eeb8[_0x4814a6(0x47a,_0x23a9de._0x239a56,_0x23a9de._0x13388d,_0x23a9de._0x1ac342)]===0x0?_0x31e4a1(0x8c3,_0x23a9de._0x56f43e,0x817,_0x23a9de._0x50ee12)+_0x4d2dbc['pattern']:''+_0x22eeb8['join']('\x0a')+(_0x591afb?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');function _0x31e4a1(_0x1a1277,_0x5eaa27,_0x536f79,_0x6791a8){return _0x102e9d(_0x536f79,_0x6791a8-_0x1778f7._0x491295,_0x536f79-0xc9,_0x6791a8-0x15f);}yield createToolOutput(_0x48f70c,{'pattern':_0x4d2dbc[_0x4814a6(_0x23a9de._0x5a24d4,_0x23a9de._0x51d94e,_0x23a9de._0x18c9df,0x42d)],'searchPath':_0xdf96a5[_0x4814a6(0x239,0x159,0x134,_0x23a9de._0x359599)](_0x2a954e,_0x11b372)||'.','matches':_0x22eeb8,'count':_0x22eeb8['length'],'truncated':_0x591afb});function _0x4814a6(_0x2bb247,_0x12d21d,_0xdbed1,_0x264418){return _0xf57930(_0x2bb247-_0x1fdef1._0x163d1c,_0x264418,_0x2bb247- -_0x1fdef1._0x3036be,_0x264418-_0x1fdef1._0x5a8036);}return void 0x0;}});}import{stat as _0x5d84c1}from'fs/promises';function _0x1df5(_0x5acbc8,_0x56fe4c){_0x5acbc8=_0x5acbc8-0x150;const _0x2ed325=_0x2ed3();let _0x1df5c2=_0x2ed325[_0x5acbc8];if(_0x1df5['IsZWuU']===undefined){var _0x13f255=function(_0x354724){const _0x47c954='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27768c='',_0x115e81='';for(let _0x54360a=0x0,_0x140bbb,_0x50ee3c,_0x141f16=0x0;_0x50ee3c=_0x354724['charAt'](_0x141f16++);~_0x50ee3c&&(_0x140bbb=_0x54360a%0x4?_0x140bbb*0x40+_0x50ee3c:_0x50ee3c,_0x54360a++%0x4)?_0x27768c+=String['fromCharCode'](0xff&_0x140bbb>>(-0x2*_0x54360a&0x6)):0x0){_0x50ee3c=_0x47c954['indexOf'](_0x50ee3c);}for(let _0xd6a36b=0x0,_0x2eef70=_0x27768c['length'];_0xd6a36b<_0x2eef70;_0xd6a36b++){_0x115e81+='%'+('00'+_0x27768c['charCodeAt'](_0xd6a36b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x115e81);};_0x1df5['RDKcHh']=_0x13f255,_0x1df5['DayjMX']={},_0x1df5['IsZWuU']=!![];}const _0xe088cc=_0x2ed325[0x0],_0x3df834=_0x5acbc8+_0xe088cc,_0x514857=_0x1df5['DayjMX'][_0x3df834];return!_0x514857?(_0x1df5c2=_0x1df5['RDKcHh'](_0x1df5c2),_0x1df5['DayjMX'][_0x3df834]=_0x1df5c2):_0x1df5c2=_0x514857,_0x1df5c2;}import*as _0x549bc6 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x3a248a={}){const _0x1e85d0={_0x3c2044:0x2d3,_0x1bc3c3:0x340,_0x5dc76d:0x16a,_0x59b3bf:0x2f,_0x36f0ce:0xcd,_0x1c9876:0xd4,_0x57aa33:0x137,_0xa6baec:0x25d,_0x3935c6:0x1ca,_0x52a449:0x1d6,_0x1fb6d1:0x326,_0x17f028:0x38d,_0x91ea3e:0x2a6,_0x5b4b15:0x88,_0xe21231:0x1e8,_0xf1de63:0xdf,_0x496402:0x101,_0x5762be:0xf3,_0x1f6527:0xb6,_0x3004bf:0x265,_0x5f579a:0x334,_0xda21d8:0x2c4,_0xd96816:0x1fc,_0x55da4c:0x329,_0x48bb50:0x27c,_0x5ed655:0x48c},_0x1d8781={_0x1ce5b0:0x132,_0x114303:0x17f,_0x2174ba:0x56d,_0x4fe5ae:0x4b9,_0x3af5c3:0x4d3,_0x40b9bb:0x348,_0x197d88:0x135,_0x4a4107:0x6b,_0x190daf:0x192,_0x9ed967:0x84,_0x4cfbf4:0x18c,_0x5e14cb:0x14a,_0x1bef1e:0x95,_0x5671bf:0x1d4,_0x491585:0x7d,_0x5a9459:0x58c,_0x57d149:0x75c,_0x52856a:0x4a6,_0x297134:0xee,_0x458e39:0x4da,_0x250507:0x5ed,_0x22f56c:0xc1,_0x4b34ca:0x1c1,_0x4ca5e0:0x4c5,_0x3d4ee6:0x6aa,_0x2aca75:0x770,_0x3403c1:0x6fa,_0x24a3e3:0x6f8,_0x197913:0x818,_0x303a59:0x63a,_0x489aa4:0x708,_0x23cab4:0x5ad,_0x5c9e20:0xad,_0x1daf8f:0x1e8,_0x1736b4:0x3c,_0x24f942:0x90,_0x48122d:0x876,_0x3fbe64:0x554,_0x40af74:0xc3,_0x286480:0x13,_0x28af2e:0x6eb,_0x51caab:0x615,_0x29572e:0x5fb,_0x25da8c:0x595,_0x290f01:0x5a5,_0x73b1c5:0x561,_0xc41d65:0x135,_0x263a8f:0x277,_0x202528:0x2c,_0x453d31:0x23,_0x29671d:0x732,_0x503901:0x5b5,_0x78aef9:0x5f6,_0x2a9fa3:0x4d6,_0x2b9cf1:0x6e6,_0x3f9811:0x597,_0x56ea3f:0x73f,_0x5066c4:0x707,_0x2fa59e:0x5b6,_0x42143e:0x5f5,_0x6db10c:0xf8,_0x265d51:0x9f,_0x169f99:0x596,_0x3b2bf2:0x46a,_0x2a79a4:0x13f,_0x1eecd5:0x2e,_0x36b0ff:0x7a,_0x230a6f:0x26,_0x3f5f44:0xcc,_0x53a16d:0x113,_0x3034b9:0xec,_0x348e90:0x5a4,_0x5c7e88:0x118,_0x12145c:0x1a8,_0x325cf5:0x66,_0x7d752d:0x83c,_0x32c304:0x580,_0x5e0147:0x4b9,_0xda339b:0x545,_0x868ea1:0x62a},_0x16ce41={_0x41b35e:0x280,_0x597d0a:0x174},_0x469670={_0x257295:0x44c,_0x1f0f90:0x19a},_0x57e30f={_0x134fbb:0x114};function _0x33c059(_0x4d7530,_0x457674,_0x583bee,_0x1f5376){return _0x3342ed(_0x4d7530-_0x57e30f._0x134fbb,_0x4d7530,_0x457674-0x2,_0x1f5376-0xe5);}const _0x264915=_0x549bc6[_0x33c059(0x25f,_0x1e85d0._0x3c2044,_0x1e85d0._0x1bc3c3,0x2da)](_0x3a248a[_0xdecf56(-_0x1e85d0._0x5dc76d,_0x1e85d0._0x59b3bf,-_0x1e85d0._0x36f0ce,-_0x1e85d0._0x1c9876)]??process['cwd']());function _0xdecf56(_0x4dd83c,_0x29439a,_0x3e7bd0,_0x24afb5){return _0x3342ed(_0x4dd83c-0xe2,_0x29439a,_0x3e7bd0- -_0x469670._0x257295,_0x24afb5-_0x469670._0x1f0f90);}const _0xd75250=(_0x3a248a[_0x33c059(_0x1e85d0._0x57aa33,_0x1e85d0._0xa6baec,0x164,0x326)]??[])['map'](_0x399d8d=>_0x549bc6[_0xdecf56(-0x206,-0x2a7,-0x17b,-0x286)](_0x399d8d)),_0x3f78b7=_0x3a248a['limit']??0x64,_0x28a511=_0x3a248a[_0x33c059(_0x1e85d0._0x3935c6,0x2a2,_0x1e85d0._0x52a449,0x337)]??_0xdecf56(-_0x1e85d0._0x1fb6d1,-_0x1e85d0._0x17f028,-0x222,-0x2f4);return defineTool({'name':_0x28a511,'description':_0x33c059(_0x1e85d0._0x91ea3e,0x2a8,0x25b,_0x1e85d0._0x52a449),'inputSchema':{'type':_0xdecf56(-0x33f,-_0x1e85d0._0x5b4b15,-_0x1e85d0._0xe21231,-_0x1e85d0._0xf1de63),'properties':{'pattern':{'type':_0xdecf56(0x14e,0x1a6,0x40,_0x1e85d0._0x496402)},'path':{'type':_0xdecf56(-_0x1e85d0._0x5762be,0x197,0x40,_0x1e85d0._0x1f6527)},'include':{'type':'string'},'limit':{'type':_0x33c059(_0x1e85d0._0x3004bf,_0x1e85d0._0x5f579a,_0x1e85d0._0xda21d8,0x275)},'context':{'type':_0x33c059(_0x1e85d0._0xd96816,0x334,_0x1e85d0._0x55da4c,0x40d)}},'required':[_0x33c059(_0x1e85d0._0x48bb50,0x33c,_0x1e85d0._0x5ed655,0x25f)]},async *'execute'(_0x5932f8){const _0x4ff79e={_0x18be89:0x12a,_0x1e8c4c:0xec};if(_0x5932f8[_0x310721(-0x26,_0x1d8781._0x1ce5b0,-0x72,-_0x1d8781._0x114303)][_0x4c1007(_0x1d8781._0x2174ba,_0x1d8781._0x4fe5ae,_0x1d8781._0x3af5c3,_0x1d8781._0x40b9bb)]()[_0x310721(_0x1d8781._0x197d88,0x174,_0x1d8781._0x4a4107,_0x1d8781._0x190daf)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x5e86dd=resolveAllowedPath(_0x264915,_0xd75250,_0x5932f8['path']??'.');function _0x4c1007(_0x13e410,_0x4e1135,_0x86ce9f,_0x1e423d){return _0x33c059(_0x13e410,_0x4e1135-_0x16ce41._0x41b35e,_0x86ce9f-0x16d,_0x1e423d-_0x16ce41._0x597d0a);}const _0x4a5a9b=await _0x5d84c1(_0x5e86dd)[_0x4c1007(0x5b2,0x724,0x84d,0x886)](()=>null),_0x1e6907=_0x4a5a9b?.['isFile']()??![],_0x43526f=_0x4a5a9b?.[_0x310721(_0x1d8781._0x9ed967,0x190,_0x1d8781._0x4cfbf4,_0x1d8781._0x5e14cb)]()??![];if(!_0x1e6907&&!_0x43526f)throw new ToolExecutionError(_0x310721(-_0x1d8781._0x1bef1e,0x20,-_0x1d8781._0x5671bf,-_0x1d8781._0x491585)+(_0x5932f8[_0x4c1007(_0x1d8781._0x5a9459,0x61b,0x740,_0x1d8781._0x57d149)]??'.'),{'path':_0x5932f8[_0x4c1007(_0x1d8781._0x52856a,0x61b,0x76c,0x673)]??'.'});const _0x5d6279=_0x5932f8[_0x310721(-0x12e,-0x20e,-_0x1d8781._0x297134,-0x1a8)]??_0x3f78b7,_0x36c294=Math[_0x4c1007(0x53b,_0x1d8781._0x458e39,_0x1d8781._0x250507,0x4a2)](0x1,Math[_0x310721(-_0x1d8781._0x22f56c,-0xf,-0x210,-_0x1d8781._0x4b34ca)](_0x5d6279)),_0x566631=await search({'cwd':_0x43526f?_0x5e86dd:_0x549bc6['dirname'](_0x5e86dd),'pattern':_0x5932f8[_0x4c1007(0x5f8,0x5bc,_0x1d8781._0x4ca5e0,0x58c)],'glob':_0x43526f?_0x5932f8[_0x4c1007(0x74d,0x6fa,_0x1d8781._0x3d4ee6,_0x1d8781._0x2aca75)]:void 0x0,'limit':_0x36c294,'file':_0x1e6907?_0x5e86dd:void 0x0,'context':_0x5932f8[_0x4c1007(_0x1d8781._0x3403c1,_0x1d8781._0x24a3e3,_0x1d8781._0x197913,_0x1d8781._0x303a59)]}),_0x8b85bc=new Map();for(const _0x4de930 of _0x566631){if(!_0x8b85bc[_0x4c1007(0x6b3,0x5e8,_0x1d8781._0x489aa4,_0x1d8781._0x23cab4)](_0x4de930[_0x310721(0xad,0x52,-0x33,-0x8d)])){const _0x1e8304=await _0x5d84c1(_0x4de930[_0x310721(_0x1d8781._0x5c9e20,_0x1d8781._0x1daf8f,_0x1d8781._0x1736b4,-_0x1d8781._0x24f942)])[_0x4c1007(0x5c6,0x724,0x802,_0x1d8781._0x48122d)](()=>null);_0x8b85bc[_0x4c1007(0x4f6,0x4a3,0x530,_0x1d8781._0x3fbe64)](_0x4de930[_0x310721(0xad,_0x1d8781._0x40af74,_0x1d8781._0x286480,0x2)],{'matches':[],'mtime':_0x1e8304?.[_0x4c1007(0x5b1,_0x1d8781._0x28af2e,_0x1d8781._0x51caab,0x7f9)]??0x0});}_0x8b85bc['get'](_0x4de930['filePath'])?.[_0x4c1007(_0x1d8781._0x29572e,0x555,_0x1d8781._0x25da8c,_0x1d8781._0x290f01)][_0x4c1007(0x575,0x561,0x4ca,_0x1d8781._0x73b1c5)](_0x4de930);}const _0x25fd1d=[..._0x8b85bc[_0x4c1007(0x629,0x5d8,0x60f,0x47e)]()][_0x310721(0x10,0x129,-0x15,-0x15d)]((_0x2343c4,_0x1d01fd)=>_0x1d01fd[0x1]['mtime']-_0x2343c4[0x1]['mtime']),_0x194232=_0x566631[_0x4c1007(0x446,0x565,0x634,0x62f)](_0x45a682=>!_0x45a682[_0x310721(-0x61,0x73,-0x15a,-0x2c)])[_0x310721(_0x1d8781._0x197d88,-0x2f,0x142,0x16b)],_0x1d95fa=_0x566631['length']>=_0x36c294,_0x820175=_0x1e6907?_0x549bc6['dirname'](_0x5e86dd):_0x5e86dd;let _0xde4079='';if(_0x566631[_0x310721(_0x1d8781._0xc41d65,0xef,_0x1d8781._0x263a8f,-_0x1d8781._0x202528)]===0x0)_0xde4079=_0x310721(0x149,-0x1d,-_0x1d8781._0x453d31,0x10c)+_0x5932f8[_0x4c1007(0x5ec,0x5bc,0x59c,0x6af)];else{_0xde4079=_0x4c1007(0x843,0x774,0x760,0x6da)+_0x194232+'\x20match'+(_0x194232===0x1?'':'es')+'\x0a';for(const [_0x574283,_0x4a71fd]of _0x25fd1d){const _0x202c63=_0x1e6907?_0x549bc6[_0x4c1007(_0x1d8781._0x29671d,0x646,_0x1d8781._0x503901,_0x1d8781._0x78aef9)](_0x574283):_0x549bc6[_0x4c1007(0x539,_0x1d8781._0x2a9fa3,0x4ae,0x4ac)](_0x820175,_0x574283);_0xde4079+='\x0a'+_0x202c63+':\x0a';for(const _0x46f388 of _0x4a71fd['matches']){const _0x5278e5=_0x46f388[_0x4c1007(0x588,0x6da,0x5bd,_0x1d8781._0x2b9cf1)]['length']>MAX_LINE_LENGTH?_0x46f388['lineText'][_0x4c1007(_0x1d8781._0x3f9811,0x70a,_0x1d8781._0x56ea3f,0x60e)](0x0,MAX_LINE_LENGTH)+_0x4c1007(0x6c0,_0x1d8781._0x5066c4,_0x1d8781._0x2fa59e,_0x1d8781._0x42143e):_0x46f388[_0x310721(_0x1d8781._0x6db10c,_0x1d8781._0x265d51,-0x7a,0x1d7)],_0x1f8d63=_0x46f388[_0x4c1007(_0x1d8781._0x169f99,0x581,0x6a4,_0x1d8781._0x3b2bf2)]?'\x20\x20':'>\x20';_0xde4079+=_0x1f8d63+'Line\x20'+_0x46f388[_0x310721(_0x1d8781._0x297134,0x156,_0x1d8781._0x2a79a4,-0x44)]+':\x20'+_0x5278e5+'\x0a';}}_0x1d95fa&&(_0xde4079+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}function _0x310721(_0x80b225,_0x27dee1,_0x34649f,_0x3034d7){return _0xdecf56(_0x80b225-_0x4ff79e._0x18be89,_0x34649f,_0x80b225-_0x4ff79e._0x1e8c4c,_0x3034d7-0x155);}const _0x5a194d={'searchPath':_0x549bc6[_0x310721(-0x10c,0x5f,-_0x1d8781._0x1eecd5,-_0x1d8781._0x36b0ff)](_0x264915,_0x5e86dd)||'.','pattern':_0x5932f8[_0x310721(-_0x1d8781._0x230a6f,0x64,0xf0,_0x1d8781._0x3f5f44)],'matchCount':_0x194232,'fileCount':_0x8b85bc[_0x310721(_0x1d8781._0x53a16d,0x144,-0x37,_0x1d8781._0x3034b9)],'truncated':_0x1d95fa};return _0x43526f&&_0x5932f8[_0x4c1007(_0x1d8781._0x348e90,0x6fa,0x6e4,_0x1d8781._0x489aa4)]!==void 0x0&&(_0x5a194d[_0x310721(_0x1d8781._0x5c7e88,_0x1d8781._0x12145c,0xa9,_0x1d8781._0x325cf5)]=_0x5932f8[_0x4c1007(0x84d,0x6fa,_0x1d8781._0x7d752d,0x5d9)]),yield createToolOutput(_0xde4079[_0x4c1007(_0x1d8781._0x32c304,_0x1d8781._0x5e0147,_0x1d8781._0xda339b,_0x1d8781._0x868ea1)](),_0x5a194d),void 0x0;}});}function createKillShellTool(_0x32ce75){const _0x408e8e={_0x536165:0x123,_0x353441:0x2cb,_0x52bbc5:0xf5,_0x4f9998:0x33e,_0x1ec4fa:0x27d,_0x553f32:0x275,_0x3833d7:0xfb,_0x4ec18f:0x35a,_0x55cf0a:0x1b,_0x5333f2:0x23},_0x193e73={_0x45192c:0x59f,_0x17c616:0x65c,_0x4e443b:0x8b9,_0x21c7fb:0x7fc,_0x1db145:0x6db,_0x4f3b7c:0x7bf,_0x4977a1:0x71d,_0x6e58a7:0x273,_0x27231d:0x1c5,_0x16fc1d:0x6b6,_0x439f26:0x6da,_0x4b1668:0x847,_0x1839a4:0x166,_0x4de054:0x25,_0x4b59de:0x24c,_0x38faf0:0x31e,_0x217651:0x6c0,_0x38eca9:0x7f7,_0x4113bb:0x5b3},_0x2daa92={_0x5be013:0x4a8,_0x2cf17:0x2c},_0x43ac46={_0x115260:0xf2},{registry:_0x57f925}=_0x32ce75;function _0x382bd0(_0x33d3de,_0x756f25,_0x3723e5,_0x52fbbe){return _0x257320(_0x33d3de-0x1dc,_0x756f25-0x138,_0x3723e5- -_0x43ac46._0x115260,_0x33d3de);}function _0x5ef644(_0x4e9e71,_0x280ac4,_0x233e1e,_0x4725bc){return _0x3342ed(_0x4e9e71-0xc0,_0x4e9e71,_0x233e1e- -_0x2daa92._0x5be013,_0x4725bc-_0x2daa92._0x2cf17);}return defineTool({'name':_0x5ef644(-_0x408e8e._0x536165,-_0x408e8e._0x353441,-0x25c,-_0x408e8e._0x52bbc5),'description':_0x382bd0(_0x408e8e._0x4f9998,_0x408e8e._0x1ec4fa,_0x408e8e._0x553f32,0x323),'inputSchema':{'type':_0x382bd0(0x204,_0x408e8e._0x3833d7,0x1fe,_0x408e8e._0x4ec18f),'properties':{'shellId':{'type':'string'}},'required':[_0x5ef644(_0x408e8e._0x55cf0a,-0x64,_0x408e8e._0x5333f2,0x85)]},async *'execute'(_0x391c74){const _0x19b150={_0x5061c8:0x7bd,_0x42efb2:0x143},_0x47e2c8={_0x540a9f:0x30a};function _0x1adb27(_0x1585ba,_0x468fb0,_0x52e7b7,_0xc96e0d){return _0x5ef644(_0x1585ba,_0x468fb0-0x46,_0x468fb0-_0x47e2c8._0x540a9f,_0xc96e0d-0x13e);}function _0x50e65a(_0xa2aa83,_0x4c0212,_0x53b257,_0x2bcec8){return _0x5ef644(_0x53b257,_0x4c0212-0x129,_0x4c0212-_0x19b150._0x5061c8,_0x2bcec8-_0x19b150._0x42efb2);}const _0xfb7121=_0x57f925[_0x50e65a(0x6e2,_0x193e73._0x45192c,_0x193e73._0x17c616,0x692)](_0x391c74[_0x50e65a(_0x193e73._0x4e443b,0x7e0,_0x193e73._0x21c7fb,_0x193e73._0x1db145)]);return createToolOutput(_0x50e65a(_0x193e73._0x4f3b7c,_0x193e73._0x4977a1,0x654,0x80d)+_0x391c74[_0x1adb27(_0x193e73._0x6e58a7,0x32d,0x2f7,_0x193e73._0x27231d)]+_0x50e65a(_0x193e73._0x16fc1d,_0x193e73._0x439f26,0x7b2,_0x193e73._0x4b1668)+_0xfb7121[_0x1adb27(0x6b,_0x193e73._0x1839a4,_0x193e73._0x4de054,0xdf)]+').',{'shellId':_0x391c74['shellId'],'status':_0xfb7121[_0x1adb27(0x1a7,0x166,0x16e,0xea)],'exitCode':_0xfb7121[_0x1adb27(0x36b,_0x193e73._0x4b59de,_0x193e73._0x38faf0,0x281)],'signal':_0xfb7121[_0x50e65a(0x7a0,_0x193e73._0x217651,_0x193e73._0x38eca9,_0x193e73._0x4113bb)]});}});}import{readdir as _0x541d19,readFile as _0x2e7044,stat as _0x3b5142}from'fs/promises';import*as _0x42b099 from'path';import*as _0x237b9f from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x3de631,_0x141e8a){const _0x4a6fa5={_0x4e6b6b:0x212,_0x522c66:0x24,_0x2b4401:0x180,_0x525f69:0x28f,_0x24b316:0xa0,_0x31f3a5:0x41,_0x266d5d:0x2df,_0x5ca0ba:0x1a3,_0x20b7d4:0x17c,_0xde7f30:0x24c,_0x3b38e0:0x184},_0x5d5c5c={_0x383ba4:0x8d},_0x24263c={_0x5e9ef4:0x109,_0x59d1ca:0x198};function _0x3828f3(_0x124633,_0x57ce11,_0x2584f9,_0x141a8c){return _0x3342ed(_0x124633-_0x24263c._0x5e9ef4,_0x2584f9,_0x57ce11- -0x272,_0x141a8c-_0x24263c._0x59d1ca);}function _0x8e99cd(_0x25d04e,_0x353fbc,_0xf3d3b1,_0x2655fa){return _0x257320(_0x25d04e-_0x5d5c5c._0x383ba4,_0x353fbc-0x67,_0xf3d3b1- -0x3ae,_0x2655fa);}if(_0x141e8a>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;const _0x5772fb=await _0x2e7044(_0x3de631)[_0x8e99cd(_0x4a6fa5._0x4e6b6b,_0x4a6fa5._0x522c66,_0x4a6fa5._0x2b4401,_0x4a6fa5._0x525f69)](()=>null);if(!_0x5772fb||isProbablyBinary(_0x5772fb))return void 0x0;return _0x5772fb[_0x8e99cd(-_0x4a6fa5._0x24b316,-0x3c,-_0x4a6fa5._0x31f3a5,-0x59)](_0x3828f3(_0x4a6fa5._0x266d5d,0x246,_0x4a6fa5._0x5ca0ba,0x302))[_0x3828f3(0x2df,0x26b,0x12e,_0x4a6fa5._0x20b7d4)](/\r?\n/)[_0x8e99cd(_0x4a6fa5._0xde7f30,0x218,0x173,_0x4a6fa5._0x3b38e0)];}function createLsTool(_0x17ddf6={}){const _0x2bbc79={_0x5d9d39:0x2a1,_0x29aa6a:0x1a2,_0x5d9601:0x42,_0x2f6613:0x4b,_0x555c12:0x113,_0x182a9e:0x11a,_0x142f85:0x11f,_0x54acb2:0xe2,_0x1b068e:0x1af,_0x1bd919:0x2e0,_0x2f5546:0x1e2,_0x438d84:0x25e,_0xbc9d14:0x63,_0x20807d:0x123,_0x444d62:0x193,_0x180a1b:0x141,_0x30dfbe:0x94},_0x42f96d={_0x4f6f56:0x284,_0x5e59a0:0x1df,_0xabff8c:0x91,_0xafd864:0x1fb,_0x3a2265:0x345,_0x50e3ff:0x335,_0x21a519:0x1fd,_0xcb6ffd:0x53,_0x249264:0x17,_0x72b3a9:0x231,_0x5e3af1:0x2bd,_0xb9b983:0x173,_0x59f017:0x16d,_0x27fb93:0x27c,_0x57f8a8:0x12,_0xf88c88:0x28,_0x1cc50f:0x49a,_0x18bbca:0x3e9,_0x5b561a:0x401,_0x46bbb6:0x27e,_0x4f2a7d:0x3d7,_0x5dee0d:0x306,_0x18ed8d:0x446,_0x44ab65:0x26e,_0x4cb7cc:0x2ec,_0x4fbcfd:0x5d,_0x10c7a0:0x12f,_0x11dd6b:0x271,_0x2a8a93:0x3a2,_0x5bceb0:0x422,_0x55537a:0x398,_0x6e0661:0x24c,_0x2c4a42:0x25e,_0x1a5189:0x126},_0x1b32f7={_0x1bb41e:0x3d2,_0x57b683:0x5e},_0x23e139={_0x4ddca2:0x26e,_0x4e42d8:0xd9},_0x2149dc={_0xadaa33:0x1db},_0xa965b={_0x58ec64:0x4ff},_0x362889=_0x42b099[_0x2bf421(-_0x2bbc79._0x5d9d39,-_0x2bbc79._0x29aa6a,-0x293,-0x51)](_0x17ddf6[_0x1c26a5(-0xf8,_0x2bbc79._0x5d9601,_0x2bbc79._0x2f6613,-_0x2bbc79._0x555c12)]??process[_0x2bf421(-0x16f,-_0x2bbc79._0x182a9e,-0x16b,-_0x2bbc79._0x142f85)]()),_0x3fe6c3=(_0x17ddf6[_0x1c26a5(-0x1d9,-_0x2bbc79._0x54acb2,-_0x2bbc79._0x1b068e,-0x175)]??[])[_0x2bf421(-_0x2bbc79._0x1bd919,-_0x2bbc79._0x2f5546,-_0x2bbc79._0x438d84,-0x1a8)](_0x2fb4b9=>_0x42b099[_0x1c26a5(-0x2e,-0x6c,-0xea,0x36)](_0x2fb4b9));function _0x2bf421(_0x5a0bd5,_0x24dc1e,_0x138b2f,_0x509e53){return _0x257320(_0x5a0bd5-0x30,_0x24dc1e-0x92,_0x24dc1e- -_0xa965b._0x58ec64,_0x5a0bd5);}function _0x1c26a5(_0x2934d9,_0x1f5a0f,_0x4ddc8a,_0x23d3b6){return _0x257320(_0x2934d9-0x136,_0x1f5a0f-_0x2149dc._0xadaa33,_0x1f5a0f- -0x3c9,_0x23d3b6);}const _0x118713=_0x17ddf6['name']??'Ls';return defineTool({'name':_0x118713,'description':_0x1c26a5(-_0x2bbc79._0xbc9d14,-0xd4,-0x15e,-_0x2bbc79._0x20807d),'inputSchema':{'type':'object','properties':{'path':{'type':'string'},'limit':{'type':_0x2bf421(-_0x2bbc79._0x444d62,-_0x2bbc79._0x180a1b,-_0x2bbc79._0x30dfbe,-0x244)}}},async *'execute'(_0x3a1767){function _0x2f8043(_0x2dc55d,_0x3f4038,_0x1fde31,_0x5c682d){return _0x2bf421(_0x1fde31,_0x2dc55d-_0x23e139._0x4ddca2,_0x1fde31-_0x23e139._0x4e42d8,_0x5c682d-0x172);}const _0x2f6882=_0x3a1767[_0x273e04(0x2f8,0x441,_0x42f96d._0x4f6f56,0x40b)]??'.',_0xfb28=resolveAllowedPath(_0x362889,_0x3fe6c3,_0x2f6882),_0x3f22ae=await _0x3b5142(_0xfb28)['catch'](()=>null);if(!_0x3f22ae?.[_0x2f8043(_0x42f96d._0x5e59a0,_0x42f96d._0xabff8c,0x2ea,0x127)]())throw new ToolExecutionError(_0x2f8043(_0x42f96d._0xafd864,0x10b,_0x42f96d._0x3a2265,0x30f)+_0x2f6882,{'path':_0x2f6882});const _0x4745da=_0x3a1767['limit']??0x3e8,_0x3bc6e6=Math[_0x273e04(0x339,_0x42f96d._0x50e3ff,0x3d4,_0x42f96d._0x21a519)](Math[_0x2f8043(_0x42f96d._0xcb6ffd,0x17d,-_0x42f96d._0x249264,-0xcf)](Math['trunc'](_0x4745da),0x1),0x2710),_0x3c1a30=await _0x541d19(_0xfb28),_0x421c1d=[];for(const _0x238cea of _0x3c1a30['slice'](0x0,_0x3bc6e6)){const _0x26fb65=_0x42b099[_0x2f8043(_0x42f96d._0x72b3a9,_0x42f96d._0x5e3af1,_0x42f96d._0xb9b983,0x2b5)](_0xfb28,_0x238cea),_0x9d30dd=await _0x3b5142(_0x26fb65)['catch'](()=>null);if(!_0x9d30dd)continue;let _0x42ed0a=_0x2f8043(0x21c,_0x42f96d._0x59f017,_0x42f96d._0x27fb93,0x121);if(_0x9d30dd['isFile']())_0x42ed0a=_0x2f8043(_0x42f96d._0x57f8a8,0x16f,_0x42f96d._0xf88c88,0x18);else{if(_0x9d30dd[_0x273e04(0x343,0x37d,0x3db,_0x42f96d._0x1cc50f)]())_0x42ed0a='directory';else{if(_0x9d30dd['isSymbolicLink']())_0x42ed0a=_0x2f8043(0x28c,_0x42f96d._0x18bbca,_0x42f96d._0x5b561a,0x2d6);}}const _0x3db875={'name':_0x238cea,'type':_0x42ed0a,'size':_0x9d30dd[_0x273e04(0x3d2,_0x42f96d._0x46bbb6,0x280,_0x42f96d._0x4f2a7d)],'mtime':_0x9d30dd[_0x273e04(0x3c8,_0x42f96d._0x5dee0d,_0x42f96d._0x18ed8d,0x2dc)],'mode':_0x9d30dd['mode']},_0x2a3ceb=_0x42ed0a==='file'?await countTextLines(_0x26fb65,_0x9d30dd[_0x2f8043(_0x42f96d._0x44ab65,0x3d1,_0x42f96d._0x4cb7cc,0x1ca)]):void 0x0;if(_0x2a3ceb!==void 0x0)_0x3db875['lines']=_0x2a3ceb;_0x421c1d[_0x2f8043(0xda,_0x42f96d._0x4fbcfd,_0x42f96d._0x10c7a0,-0x2e)](_0x3db875);}function _0x273e04(_0x4b04b8,_0x477b68,_0x451c41,_0x48e63e){return _0x2bf421(_0x451c41,_0x4b04b8-_0x1b32f7._0x1bb41e,_0x451c41-_0x1b32f7._0x57b683,_0x48e63e-0x124);}_0x421c1d[_0x2f8043(0x16b,0x22d,0x213,_0x42f96d._0x11dd6b)]((_0x27d509,_0x236ebd)=>_0x27d509[_0x2f8043(0x9b,0xf4,0x169,-0x8d)][_0x273e04(0x3a8,0x51f,0x263,0x336)](_0x236ebd[_0x273e04(0x1ff,0x1e1,0x174,0x226)]));const _0x2a05d3={'path':_0x2f6882,'total':_0x421c1d['length'],'truncated':_0x3c1a30[_0x273e04(0x3f4,0x547,_0x42f96d._0x2a8a93,_0x42f96d._0x5bceb0)]>_0x3bc6e6,'entries':_0x421c1d};return yield createToolOutput(_0x237b9f[_0x273e04(0x2d2,0x160,0x432,_0x42f96d._0x55537a)](_0x2a05d3,{'indent':0x2,'lineWidth':0x0})[_0x2f8043(_0x42f96d._0x6e0661,_0x42f96d._0x2c4a42,0x389,_0x42f96d._0x1a5189)](),{'path':_0x2f6882,'total':_0x421c1d['length'],'truncated':_0x3c1a30['length']>_0x3bc6e6,'limit':_0x3bc6e6,'entries':_0x421c1d}),void 0x0;}});}import{stat as _0x2d8392}from'fs/promises';import _0x49e6d7 from'path';import{fileURLToPath as _0x5a2085}from'url';function severityName(_0x343629){const _0x7a19cf={_0x4be0c5:0x295,_0x562307:0x159,_0x51f24c:0x1e,_0x25a3a3:0x29,_0x5f2084:0x37,_0x503582:0x10f,_0x20446c:0x244,_0x2dbd3c:0x2a0,_0xd97ea2:0x11c,_0x3975fe:0x133},_0x3aeca1={_0x1c5c8e:0x62,_0x6b781a:0x18a,_0x128635:0x48d};function _0xbe3fbf(_0x254378,_0x1c7493,_0x361da3,_0x1cd19b){return _0x257320(_0x254378-_0x3aeca1._0x1c5c8e,_0x1c7493-_0x3aeca1._0x6b781a,_0x361da3- -_0x3aeca1._0x128635,_0x1cd19b);}function _0x3582a2(_0x5b25af,_0x5ab132,_0xb97dfa,_0x528d45){return _0x257320(_0x5b25af-0x13d,_0x5ab132-0x1c2,_0x5b25af- -0x245,_0x528d45);}switch(_0x343629){case 0x1:return _0x3582a2(0x26e,_0x7a19cf._0x4be0c5,0x313,0x17e);case 0x2:return _0xbe3fbf(-_0x7a19cf._0x562307,0xa9,_0x7a19cf._0x51f24c,_0x7a19cf._0x25a3a3);case 0x3:return _0xbe3fbf(-_0x7a19cf._0x5f2084,0x1b,-_0x7a19cf._0x503582,-0x2a);case 0x4:return _0x3582a2(_0x7a19cf._0x20446c,_0x7a19cf._0x2dbd3c,_0x7a19cf._0xd97ea2,_0x7a19cf._0x3975fe);default:return'Diagnostic';}}function formatSingleHover(_0x1613ae){const _0x2df000={_0x109e7d:0x136,_0x645dc3:0x50,_0x135f08:0xc6,_0x4b5858:0x232,_0xd83255:0x276,_0x1496bd:0xe0,_0x1ba4ec:0x20b,_0x30fb8e:0x22e,_0xefe7d4:0xcc,_0x5bf806:0x13c,_0xbdd5ef:0xa6,_0x6f72d:0x85,_0x130276:0x125,_0x4e3477:0x287,_0xbd031b:0x11b,_0x297864:0x84,_0x244de7:0xe6,_0xd1ebfb:0x5b,_0x2c0060:0xb4,_0x53a4bc:0x8d,_0x5b622d:0x121,_0x2eeac6:0x265},_0x24c9d2={_0x5474d2:0x356,_0x13b22d:0x1c4},_0x5cc3da={_0x302b24:0x18a,_0x5a861a:0x79};function _0x20a9ba(_0x203bd8,_0x32fdd5,_0x91b2b7,_0x556108){return _0x257320(_0x203bd8-_0x5cc3da._0x302b24,_0x32fdd5-_0x5cc3da._0x5a861a,_0x32fdd5- -0xf9,_0x91b2b7);}const _0x463a3d=_0x1613ae['contents'];if(typeof _0x463a3d===_0x1b56f4(0x14f,_0x2df000._0x109e7d,0x21e,_0x2df000._0x645dc3))return _0x463a3d;if(Array[_0x1b56f4(-_0x2df000._0x135f08,-0x28,-0x5,0x45)](_0x463a3d))return _0x463a3d['map'](_0x49b71b=>typeof _0x49b71b===_0x20a9ba(0x43f,0x41f,0x57c,0x3cd)?_0x49b71b:_0x49b71b[_0x1b56f4(-0x4d,-0x84,-0x136,0x15)])[_0x20a9ba(_0x2df000._0x4b5858,_0x2df000._0xd83255,0x3dd,0x3ee)](Boolean)[_0x1b56f4(-0x52,_0x2df000._0x1496bd,_0x2df000._0x1ba4ec,_0x2df000._0x30fb8e)]('\x0a\x0a');function _0x1b56f4(_0x169cf1,_0x9e9ae1,_0x340312,_0x38b292){return _0x3342ed(_0x169cf1-0x12c,_0x340312,_0x9e9ae1- -_0x24c9d2._0x5474d2,_0x38b292-_0x24c9d2._0x13b22d);}if('kind'in _0x463a3d)return _0x463a3d[_0x1b56f4(-0x1cf,-0x84,_0x2df000._0xefe7d4,-_0x2df000._0x5bf806)];return _0x463a3d[_0x1b56f4(_0x2df000._0xbdd5ef,-0x6c,-0xb8,0x6f)]?_0x1b56f4(_0x2df000._0x6f72d,_0x2df000._0x130276,_0x2df000._0x4e3477,0xc2)+_0x463a3d[_0x1b56f4(0x13,-0x6c,-0x105,-_0x2df000._0xbd031b)]+'\x0a'+_0x463a3d[_0x1b56f4(-0x19c,-_0x2df000._0x297864,0x44,-_0x2df000._0x244de7)]+_0x1b56f4(-_0x2df000._0xd1ebfb,-_0x2df000._0x2c0060,-_0x2df000._0x53a4bc,-_0x2df000._0x5b622d):_0x463a3d[_0x20a9ba(0x209,_0x2df000._0x2eeac6,0x32a,0x186)];}function formatHover(_0x56992c){const _0x5bcffa={_0x1da837:0x42e,_0x5bba11:0x4d6,_0x534adb:0x420,_0x3e2c6c:0xe1,_0x17bca4:0x174,_0x138b57:0xfc,_0x2f108a:0x207,_0x55294e:0x25b,_0x3cd1e1:0x2c,_0x2c0323:0x88},_0x1d5572={_0x130818:0x112,_0x2bf795:0xbe},_0x12683e={_0x5a2474:0x1a7};function _0x505bfa(_0x2bc994,_0x19fc08,_0x279806,_0x2d1cba){return _0x257320(_0x2bc994-0xc9,_0x19fc08-0x44,_0x19fc08- -_0x12683e._0x5a2474,_0x279806);}function _0x4596d0(_0x707384,_0x5c7680,_0xb946ff,_0x2a7f47){return _0x3342ed(_0x707384-_0x1d5572._0x130818,_0xb946ff,_0x707384- -0x2c2,_0x2a7f47-_0x1d5572._0x2bf795);}if(_0x56992c[_0x505bfa(_0x5bcffa._0x1da837,0x37a,_0x5bcffa._0x5bba11,0x245)]===0x0)return _0x505bfa(_0x5bcffa._0x534adb,0x324,0x3e5,0x2f9);return _0x56992c[_0x4596d0(-0x31,0xe2,-_0x5bcffa._0x3e2c6c,-_0x5bcffa._0x3e2c6c)](formatSingleHover)[_0x4596d0(_0x5bcffa._0x17bca4,_0x5bcffa._0x138b57,_0x5bcffa._0x2f108a,_0x5bcffa._0x55294e)](_0x4596d0(0x9b,_0x5bcffa._0x3cd1e1,0x16c,-_0x5bcffa._0x2c0323));}function locationPath(_0x7f45d1){const _0x43365c={_0x3a16ac:0x138,_0x38eed7:0x30c,_0x5f40e0:0x1c3},_0x2d625e={_0x1929b0:0x174,_0x328984:0x29},_0x1f36a9={_0x1b046e:0x10d,_0x13fe5e:0x2b2};function _0xdd4afd(_0x208727,_0x450791,_0x3fe9ee,_0x2fb780){return _0x257320(_0x208727-_0x1f36a9._0x1b046e,_0x450791-0x8,_0x208727- -_0x1f36a9._0x13fe5e,_0x450791);}if(!_0x7f45d1[_0xdd4afd(0x213,_0x43365c._0x3a16ac,_0x43365c._0x38eed7,0x357)](_0xdd4afd(_0x43365c._0x5f40e0,0x99,0x154,0x218)))return _0x7f45d1;function _0x3bd282(_0x37cd9a,_0x1a2b95,_0x22f5cf,_0x25857c){return _0x3342ed(_0x37cd9a-0x1e0,_0x1a2b95,_0x22f5cf-_0x2d625e._0x1929b0,_0x25857c-_0x2d625e._0x328984);}return _0x5a2085(_0x7f45d1);}function formatLocations(_0x3f31b9){const _0x1b5a98={_0x2004b9:0x14c,_0x374d3a:0x14c,_0x433b1f:0x263,_0xe72bc7:0x93,_0x14d0fb:0x1d1,_0x270099:0xbe,_0x4dcb4e:0x62,_0x46cfe5:0x240},_0x21d6d7={_0x358b9f:0x31,_0x3af87a:0x100,_0x42db9a:0x92,_0xc121ac:0xaa,_0x337cd5:0x63,_0x3a28bd:0x4f0,_0x5cea8c:0x567,_0x145a56:0x764,_0x9c0f7d:0x77a},_0x3cc347={_0x2d77ef:0x169,_0x41d0df:0x101},_0x17a696={_0x19b999:0x2a,_0x21286a:0x186},_0x343860={_0x426e5b:0x1be,_0x6f9094:0x341},_0x52e716={_0x464a9d:0x9b,_0x2242fd:0xc0};function _0x37e7b2(_0x5ccbc1,_0x4607b6,_0xda7694,_0x2ab26c){return _0x3342ed(_0x5ccbc1-_0x52e716._0x464a9d,_0xda7694,_0x2ab26c- -0x2f3,_0x2ab26c-_0x52e716._0x2242fd);}function _0x357b55(_0x131d4d,_0x5ec658,_0x1f3286,_0x53a77b){return _0x257320(_0x131d4d-0xac,_0x5ec658-_0x343860._0x426e5b,_0x53a77b- -_0x343860._0x6f9094,_0x1f3286);}if(_0x3f31b9[_0x357b55(_0x1b5a98._0x2004b9,_0x1b5a98._0x374d3a,_0x1b5a98._0x433b1f,0x1e0)]===0x0)return'No\x20locations\x20found';return _0x3f31b9[_0x37e7b2(_0x1b5a98._0xe72bc7,-_0x1b5a98._0x14d0fb,-_0x1b5a98._0x270099,-_0x1b5a98._0x4dcb4e)](_0x5b7332=>{function _0x52c574(_0x128134,_0x36a9ce,_0x21664e,_0x5eed2a){return _0x37e7b2(_0x128134-_0x17a696._0x19b999,_0x36a9ce-_0x17a696._0x21286a,_0x128134,_0x36a9ce-0x4cf);}const _0x4f3c64=_0x5b7332[_0x301ca3(0x56,-_0x21d6d7._0x358b9f,_0x21d6d7._0x3af87a,-_0x21d6d7._0x42db9a)]['start'];function _0x301ca3(_0x4f8635,_0x14862c,_0x4cd781,_0x36d0b5){return _0x357b55(_0x4f8635-0xea,_0x14862c-_0x3cc347._0x2d77ef,_0x4cd781,_0x4f8635- -_0x3cc347._0x41d0df);}return locationPath(_0x5b7332[_0x301ca3(0x48,_0x21d6d7._0xc121ac,_0x21d6d7._0x337cd5,-0xaf)])+':'+(_0x4f3c64[_0x52c574(_0x21d6d7._0x3a28bd,0x58b,0x4c2,0x6dc)]+0x1)+':'+(_0x4f3c64[_0x52c574(_0x21d6d7._0x5cea8c,0x67a,_0x21d6d7._0x145a56,_0x21d6d7._0x9c0f7d)]+0x1);})[_0x357b55(0x294,0x101,_0x1b5a98._0x46cfe5,0x181)]('\x0a');}function isDocumentSymbol(_0x2ac10f){const _0xd20c2f={_0x56c4d3:0x126,_0x1c471a:0x596,_0x4f50a8:0x6d6,_0x1dca9f:0x591},_0x35161a={_0x47cde2:0x121,_0x465d14:0x1af},_0xd8cd51={_0xb413c3:0x282,_0x12c6ab:0x1a2};function _0x5a62a3(_0x2c5839,_0x35c508,_0x1f4252,_0x1c75d2){return _0x3342ed(_0x2c5839-0xe2,_0x2c5839,_0x1f4252-_0xd8cd51._0xb413c3,_0x1c75d2-_0xd8cd51._0x12c6ab);}function _0x56b914(_0x573709,_0x987dea,_0x2fe341,_0x343e86){return _0x3342ed(_0x573709-_0x35161a._0x47cde2,_0x987dea,_0x343e86- -_0x35161a._0x465d14,_0x343e86-0x170);}return _0x56b914(0x345,0x3b6,_0xd20c2f._0x56c4d3,0x25d)in _0x2ac10f&&_0x5a62a3(_0xd20c2f._0x1c471a,_0xd20c2f._0x4f50a8,_0xd20c2f._0x1dca9f,0x549)in _0x2ac10f;}function formatSymbols(_0x85090d){const _0xe7df5d={_0x4822a2:0x5cc,_0x3ca2e8:0x504,_0x1c4736:0x353,_0x34679c:0x2ee,_0x50979d:0x4f0},_0x160ee6={_0xa2ae23:0x675,_0x50802a:0x642,_0xd5d0d0:0x566,_0x402b54:0xc7,_0x250d1a:0xf,_0x1c9387:0x12b,_0xa26f24:0x5a0,_0x25304f:0x672,_0xb372e2:0x5f3,_0x30d49a:0x551,_0x330402:0x6df,_0x43e98a:0x6dc,_0x446b8b:0x40,_0x4a21d7:0xd7,_0x30c527:0x1e,_0x27def6:0x4d4,_0x1c391d:0x4e6,_0x56eb3d:0x59b,_0x458ce6:0x637,_0x228cf2:0x802,_0x307e4e:0x5fa,_0x31125e:0x52d,_0x57d589:0x675,_0xdb7b12:0x4e,_0x57d815:0x2b,_0x412011:0x103,_0x3cce1c:0x1cd},_0x1448f9={_0x2dda5d:0x10f,_0x3a4ecc:0x1ff,_0x2b6295:0xf1},_0x5be8c6={_0x1835c2:0x177},_0x5b38e5={_0x9a0f9d:0x2f};if(_0x85090d['length']===0x0)return _0x2370e8(_0xe7df5d._0x4822a2,0x48e,0x5ad,_0xe7df5d._0x3ca2e8);function _0x5a6e29(_0x4b5d7f,_0x159b9c,_0x4022c5,_0x2f360e){return _0x257320(_0x4b5d7f-0x1f1,_0x159b9c-0x1db,_0x159b9c- -_0x5b38e5._0x9a0f9d,_0x4022c5);}function _0x2370e8(_0xebd940,_0x221c90,_0x42bdb2,_0x3398e8){return _0x257320(_0xebd940-0x1c1,_0x221c90-_0x5be8c6._0x1835c2,_0x221c90-0x3b,_0x42bdb2);}return _0x85090d[_0x5a6e29(_0xe7df5d._0x1c4736,_0xe7df5d._0x34679c,0x363,0x295)](_0x24e623=>{const _0x16b5c6={_0x445fce:0xe7};function _0x38a015(_0x217792,_0x182399,_0x2aa043,_0x1e7d6d){return _0x5a6e29(_0x217792-_0x16b5c6._0x445fce,_0x217792- -0x41b,_0x1e7d6d,_0x1e7d6d-0xd8);}function _0xa2ffe1(_0x45c1b6,_0x46cbdb,_0x2b6f77,_0x37d4f6){return _0x2370e8(_0x45c1b6-_0x1448f9._0x2dda5d,_0x37d4f6-_0x1448f9._0x3a4ecc,_0x45c1b6,_0x37d4f6-_0x1448f9._0x2b6295);}if(isDocumentSymbol(_0x24e623))return _0x24e623[_0xa2ffe1(_0x160ee6._0xa2ae23,0x5d9,_0x160ee6._0x50802a,_0x160ee6._0xd5d0d0)]+'\x20('+_0x24e623['kind']+')\x20['+(_0x24e623[_0x38a015(0x4e,-_0x160ee6._0x402b54,0x187,0x8b)]['start'][_0x38a015(-_0x160ee6._0x250d1a,-_0x160ee6._0x1c9387,0x153,0x14c)]+0x1)+':'+(_0x24e623['range'][_0xa2ffe1(_0x160ee6._0xa26f24,0x766,0x7ce,_0x160ee6._0x25304f)]['character']+0x1)+']';return _0x24e623[_0xa2ffe1(0x545,0x640,_0x160ee6._0xb372e2,0x566)]+'\x20('+_0x24e623['kind']+')\x20'+locationPath(_0x24e623[_0xa2ffe1(_0x160ee6._0x30d49a,_0x160ee6._0x330402,_0x160ee6._0x43e98a,0x59b)][_0x38a015(_0x160ee6._0x446b8b,0x163,-_0x160ee6._0x4a21d7,-_0x160ee6._0x30c527)])+':'+(_0x24e623[_0xa2ffe1(_0x160ee6._0x27def6,_0x160ee6._0x1c391d,0x681,_0x160ee6._0x56eb3d)][_0xa2ffe1(_0x160ee6._0x458ce6,_0x160ee6._0x228cf2,_0x160ee6._0x307e4e,0x6d2)][_0xa2ffe1(_0x160ee6._0x31125e,0x776,0x67c,0x672)][_0xa2ffe1(0x648,_0x160ee6._0x50802a,0x582,_0x160ee6._0x57d589)]+0x1)+':'+(_0x24e623[_0x38a015(-0xe9,0x26,-0x105,-0x229)][_0x38a015(_0x160ee6._0xdb7b12,_0x160ee6._0x57d815,0x1bd,-_0x160ee6._0x412011)]['start'][_0x38a015(0xe0,_0x160ee6._0x3cce1c,0x128,0x38)]+0x1);})[_0x2370e8(_0xe7df5d._0x50979d,0x4fd,0x60e,0x637)]('\x0a');}function formatDiagnostics(_0x290076){const _0x4b1fb8={_0x288e4f:0x3bd,_0x154e04:0x51e,_0x807aa5:0x271,_0x3219e3:0x15e,_0x3b7eb0:0x2bc,_0x4c4816:0x302,_0x5a347f:0x343,_0x405aa1:0x2a3},_0x539d3e={_0x45bf18:0x381,_0x402e14:0x56e,_0x2c1322:0x6f8,_0x4896c9:0x6a7,_0x215a03:0x6ca},_0x422dba={_0x362e0d:0x39},_0xccad01={_0x63575c:0xd8};function _0x45ebad(_0x276dd7,_0x1e7031,_0x41e98b,_0x33012d){return _0x3342ed(_0x276dd7-0x9a,_0x1e7031,_0x276dd7- -_0xccad01._0x63575c,_0x33012d-0x196);}function _0x45780d(_0x26fcb7,_0x5c2153,_0x14b472,_0x1958f4){return _0x257320(_0x26fcb7-_0x422dba._0x362e0d,_0x5c2153-0x6d,_0x26fcb7- -0x9a,_0x1958f4);}if(_0x290076[_0x45ebad(_0x4b1fb8._0x288e4f,0x2e3,0x40f,_0x4b1fb8._0x154e04)]===0x0)return _0x45780d(0x2ae,0x213,_0x4b1fb8._0x807aa5,_0x4b1fb8._0x3219e3);return _0x290076[_0x45ebad(0x1b9,0x120,_0x4b1fb8._0x3b7eb0,_0x4b1fb8._0x4c4816)](_0x25e3c8=>{const _0x533c2f={_0x29838c:0x136,_0x46ee34:0x3c};function _0x3020af(_0x1b2d7d,_0x410fb2,_0xb6cbf5,_0x5aa3b9){return _0x45780d(_0x1b2d7d-0xa,_0x410fb2-0x199,_0xb6cbf5-0xff,_0x5aa3b9);}const _0x2a1e0d=_0x25e3c8[_0x3020af(0x408,_0x539d3e._0x45bf18,_0x539d3e._0x402e14,0x2b0)][_0x16b5a3(0x636,0x57a,0x5b5,0x43d)];function _0x16b5a3(_0x5c93bf,_0x694f67,_0x161153,_0x4eea34){return _0x45780d(_0x694f67-0x1dc,_0x694f67-_0x533c2f._0x29838c,_0x161153-_0x533c2f._0x46ee34,_0x161153);}return severityName(_0x25e3c8['severity'])+'\x20['+(_0x2a1e0d['line']+0x1)+':'+(_0x2a1e0d[_0x16b5a3(0x757,0x66c,0x79c,0x50d)]+0x1)+']\x20'+_0x25e3c8[_0x16b5a3(_0x539d3e._0x2c1322,_0x539d3e._0x4896c9,_0x539d3e._0x215a03,0x704)];})[_0x45ebad(0x35e,0x2da,_0x4b1fb8._0x5a347f,_0x4b1fb8._0x405aa1)]('\x0a');}function formatIncomingCalls(_0x1df1de){const _0x40fde0={_0x5ad79b:0x6b0,_0x3aa514:0x683,_0x4832da:0x42,_0x3cc2cd:0x229,_0x538990:0x1b3,_0x29e796:0x31c,_0x426f1a:0x3f8,_0xd61eaf:0x129},_0x4c5c45={_0x78fdc8:0x220},_0xaa36d2={_0xb58382:0x1f};function _0x37412c(_0x36d38d,_0xc12b62,_0x1ca923,_0x464845){return _0x257320(_0x36d38d-_0xaa36d2._0xb58382,_0xc12b62-0xe7,_0x1ca923-0xc3,_0x464845);}if(_0x1df1de[_0x37412c(_0x40fde0._0x5ad79b,0x5f1,0x5e4,_0x40fde0._0x3aa514)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x325e86(_0x5f0c03,_0x440714,_0x3ab57a,_0x423668){return _0x257320(_0x5f0c03-0xe0,_0x440714-0x15d,_0x440714- -_0x4c5c45._0x78fdc8,_0x3ab57a);}return _0x1df1de[_0x325e86(-_0x40fde0._0x4832da,0xfd,_0x40fde0._0x3cc2cd,_0x40fde0._0x538990)](_0x3f8ccd=>_0x3f8ccd[_0x325e86(0x356,0x254,0x1ee,0x2da)][_0x325e86(0x143,0x10c,0x132,0x5a)])[_0x325e86(_0x40fde0._0x29e796,0x2a2,_0x40fde0._0x426f1a,_0x40fde0._0xd61eaf)]('\x0a');}function formatOutgoingCalls(_0x4ba54d){const _0x4517bf={_0x3332e8:0x1c,_0x24fb38:0xa3,_0x1d2530:0x1dd,_0x3a445c:0x15a,_0x52e1da:0xac,_0x54316b:0xda},_0x20d9e9={_0x32e7e8:0x124,_0x402594:0x265},_0x57bf93={_0x1cb5f2:0x18c,_0x310af4:0x1ac,_0x49a8f7:0x416};function _0xd5061f(_0x5939d7,_0x5b583f,_0x36a489,_0x186354){return _0x257320(_0x5939d7-_0x57bf93._0x1cb5f2,_0x5b583f-_0x57bf93._0x310af4,_0x5b583f- -_0x57bf93._0x49a8f7,_0x186354);}function _0x41d239(_0x359772,_0x4d49ac,_0xbfa4b4,_0x3dffa9){return _0x257320(_0x359772-_0x20d9e9._0x32e7e8,_0x4d49ac-0x45,_0x4d49ac- -_0x20d9e9._0x402594,_0x3dffa9);}if(_0x4ba54d['length']===0x0)return _0xd5061f(_0x4517bf._0x3332e8,0xad,_0x4517bf._0x24fb38,0x150);return _0x4ba54d[_0x41d239(-0xa2,0xb8,_0x4517bf._0x1d2530,_0x4517bf._0x3a445c)](_0x2d8299=>_0x2d8299['to']['name'])[_0xd5061f(0x191,_0x4517bf._0x52e1da,_0x4517bf._0x54316b,0x117)]('\x0a');}function toStructured(_0x2ce2fa){const _0x20bdd0={_0x5bc715:0x6f3,_0x5a3559:0x6f9},_0x19bd2a={_0x1efca7:0x1e7,_0x5f4691:0xb2,_0x15dcc8:0x263};function _0x3943cd(_0x139951,_0x2f5008,_0x16067d,_0x4f043a){return _0x257320(_0x139951-_0x19bd2a._0x1efca7,_0x2f5008-_0x19bd2a._0x5f4691,_0x16067d-_0x19bd2a._0x15dcc8,_0x4f043a);}return JSON[_0x3943cd(0x798,_0x20bdd0._0x5bc715,_0x20bdd0._0x5a3559,0x5dd)](JSON['stringify'](_0x2ce2fa));}async function assertFile(_0x9e38c5){const _0x9c81ac={_0x4e0da0:0x1e0},_0xaa9f42={_0xc1d3ae:0x32};function _0x4e0469(_0x3334c3,_0x25f7dd,_0x10b8a2,_0x59f587){return _0x3342ed(_0x3334c3-_0xaa9f42._0xc1d3ae,_0x10b8a2,_0x25f7dd- -0x102,_0x59f587-0xeb);}const _0xb7e4eb=await _0x2d8392(_0x9e38c5);if(!_0xb7e4eb[_0x4e0469(0x179,_0x9c81ac._0x4e0da0,0x1a2,0x1e3)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x9e38c5,{'path':_0x9e38c5});}function validatePosition(_0x2f62c2,_0x3ca3ec){const _0x457f9c={_0x4bdfb6:0x23f,_0x4ad0f6:0x2d5,_0x5078d9:0x320,_0x145e70:0x1b6,_0x4a9a6d:0x4a5,_0x5a3716:0x560,_0x3b71a3:0x574,_0x50071c:0x61f},_0x4704e7={_0x5e2542:0x121,_0x4d1570:0x6b};function _0x405f7a(_0x55b4f7,_0x29ec52,_0x2b312e,_0x416963){return _0x3342ed(_0x55b4f7-_0x4704e7._0x5e2542,_0x416963,_0x2b312e-_0x4704e7._0x4d1570,_0x416963-0x19e);}if(!Number['isInteger'](_0x2f62c2)||_0x2f62c2<0x1)throw new ToolExecutionError(_0x405f7a(0x24f,0x3fe,0x35c,_0x457f9c._0x4bdfb6),{'line':_0x2f62c2});function _0x541505(_0x4b9702,_0x433242,_0xd908e3,_0x14f68f){return _0x257320(_0x4b9702-0x23,_0x433242-0x134,_0xd908e3-0x168,_0x433242);}if(!Number[_0x405f7a(_0x457f9c._0x4ad0f6,0x3e6,_0x457f9c._0x5078d9,_0x457f9c._0x145e70)](_0x3ca3ec)||_0x3ca3ec<0x1)throw new ToolExecutionError(_0x541505(_0x457f9c._0x4a9a6d,_0x457f9c._0x5a3716,_0x457f9c._0x3b71a3,_0x457f9c._0x50071c),{'character':_0x3ca3ec});}function createLspTool(_0x1ecd2={}){const _0x21f43f={_0x1cb61c:0xeb,_0x55c955:0x1ff,_0xcb98ad:0x16b,_0x215168:0x12d,_0x1efeb7:0xa3,_0x40bc82:0x7,_0x1c2e94:0x1bd,_0x55d891:0xb2,_0x4c26d0:0xc2,_0x30e20d:0x2d0,_0x6ed990:0x234,_0x15cf8c:0x199,_0x2fd793:0xf7,_0x401d2b:0x223,_0x2102f1:0x144,_0x5e6143:0x1bf,_0x303845:0x2e4,_0x38d61e:0x4a,_0x4c2c76:0x27b,_0x510a95:0x31b,_0x5ca398:0x34b,_0x4bd5f0:0x34a,_0x33598e:0x24a,_0x29afdd:0x141,_0x19bb75:0x40,_0xbe80e5:0x360,_0x438027:0x292,_0x5dbc7d:0x346,_0x2fd8e6:0x227,_0x559679:0x2d6,_0x57adcc:0x144,_0x424feb:0x213,_0xd5a098:0x99,_0xa198e9:0x1c,_0x3a1de8:0x3e6,_0x2908c4:0x2b3,_0x4e2c1d:0x275,_0x1644f3:0x13f,_0x3c33ef:0x107,_0x401d88:0x170,_0x4852a6:0x20f,_0x413a6f:0x2ce,_0x3335bb:0x362},_0x294b11={_0x514a57:0x566,_0x365957:0x27e,_0x5b8aa1:0x2d2,_0x8836cb:0x434,_0x256ae7:0x3a6,_0x1d81d3:0x460,_0x1d5d98:0x3a2,_0x22099e:0x4e2,_0x2503ea:0xf4,_0x2dc792:0x253,_0x59e0e6:0x356,_0x3173b1:0x637,_0x182d2f:0x4f8,_0x2c393e:0x4ec,_0x4c1bcf:0x207,_0x85d0dd:0x343,_0x1be352:0x4ac,_0x57eddf:0x539,_0x260429:0x3c6,_0x1e05e1:0x610,_0x342258:0x606,_0x251898:0x63f,_0x5544ae:0x166,_0x3b104b:0x19b,_0x1f2ce0:0x4cc,_0x18b590:0x198,_0x2c773d:0x406,_0x1548b7:0x68f,_0x4e5065:0x68c,_0x5c486f:0x53b,_0x183462:0x560,_0x1393e4:0x321,_0x4a60a2:0x4bd,_0x190cae:0x43c,_0x118110:0x1ae,_0x4f06b5:0xe8,_0x25148a:0x449,_0x4fd341:0x571,_0x50bf6f:0x4c0,_0x4c2cea:0x34,_0x42162a:0x398,_0x435846:0x245,_0x4b46c3:0x116,_0x7f3385:0x1d6,_0x286360:0x1ef,_0x1464d0:0x562,_0xa268e9:0x4d1,_0x212f2a:0x5e1,_0x10645d:0x4e9,_0x4c6888:0x2e4,_0x1497b6:0x350,_0x417d7a:0x4cc,_0x24d8d4:0x650},_0x2ef068={_0x91da55:0x1eb},_0x5d970c={_0x193cea:0xbd},_0x5cd631={_0x536812:0x153,_0xe60047:0x30,_0x114dad:0x27a};function _0x287b02(_0x4432f1,_0xb622f8,_0xbd9e38,_0x5cdaf1){return _0x257320(_0x4432f1-_0x5cd631._0x536812,_0xb622f8-_0x5cd631._0xe60047,_0x4432f1- -_0x5cd631._0x114dad,_0xbd9e38);}const _0x4bdeb4=_0x49e6d7[_0x879dfc(0x176,0x139,_0x21f43f._0x1cb61c,_0x21f43f._0x55c955)](_0x1ecd2['defaultCwd']??process[_0x287b02(_0x21f43f._0xcb98ad,0x59,_0x21f43f._0x215168,0x2df)]());function _0x879dfc(_0x518f2d,_0x3c39c0,_0x39385d,_0x494fad){return _0x257320(_0x518f2d-_0x5d970c._0x193cea,_0x3c39c0-0x17c,_0x3c39c0- -0x224,_0x494fad);}const _0xac7838=(_0x1ecd2['allowedDirs']??[])[_0x287b02(_0x21f43f._0x1efeb7,-_0x21f43f._0x40bc82,-0x8d,_0x21f43f._0x1c2e94)](_0x457cec=>_0x49e6d7[_0x287b02(0xe3,0xde,0xa0,0x198)](_0x457cec)),_0x4e0568=_0x1ecd2[_0x287b02(_0x21f43f._0x55d891,0x147,0x19d,-_0x21f43f._0x4c26d0)]??_0x879dfc(0x25a,_0x21f43f._0x30e20d,0x2b7,_0x21f43f._0x6ed990);return defineTool({'name':_0x4e0568,'description':'Query\x20Language\x20Server\x20Protocol\x20code\x20intelligence\x20for\x20workspace\x20files:\x20definitions,\x20references,\x20hover,\x20symbols,\x20call\x20hierarchy,\x20and\x20diagnostics.','inputSchema':{'type':'object','properties':{'operation':{'type':'string','enum':['goToDefinition',_0x287b02(_0x21f43f._0x15cf8c,_0x21f43f._0x2fd793,_0x21f43f._0x401d2b,0x27a),_0x879dfc(0x266,_0x21f43f._0x2102f1,0x37,_0x21f43f._0x5e6143),_0x287b02(0x190,_0x21f43f._0x303845,_0x21f43f._0x38d61e,0x1fa),_0x879dfc(_0x21f43f._0x4c2c76,_0x21f43f._0x510a95,_0x21f43f._0x5ca398,_0x21f43f._0x4bd5f0),_0x879dfc(_0x21f43f._0x33598e,0x114,_0x21f43f._0x29afdd,_0x21f43f._0x19bb75),_0x879dfc(0x3d3,_0x21f43f._0xbe80e5,_0x21f43f._0x438027,0x328),_0x879dfc(0x3ac,0x365,_0x21f43f._0x5dbc7d,0x214),'outgoingCalls','diagnostics']},'filePath':{'type':_0x287b02(0x29e,0x1aa,0x3a9,0x37a)},'line':{'type':_0x879dfc(_0x21f43f._0x2fd8e6,0x19a,0x2cc,_0x21f43f._0x559679)},'character':{'type':_0x287b02(_0x21f43f._0x57adcc,_0x21f43f._0x424feb,_0x21f43f._0xd5a098,_0x21f43f._0xa198e9)},'query':{'type':_0x879dfc(0x2e0,0x2f4,_0x21f43f._0x3a1de8,0x379)}},'required':[_0x287b02(0x1b7,0x296,_0x21f43f._0x2908c4,0x1e3),_0x879dfc(0x2ad,_0x21f43f._0x4e2c1d,_0x21f43f._0x1644f3,_0x21f43f._0x3c33ef),_0x879dfc(0x279,0x217,_0x21f43f._0x401d88,_0x21f43f._0x4852a6),_0x879dfc(0x3ee,0x306,_0x21f43f._0x413a6f,_0x21f43f._0x3335bb)]},async *'execute'(_0x76fbb8){const _0x3e565d={_0x43931f:0x2eb};function _0x4bd948(_0x21e11b,_0x3c5938,_0x536b92,_0x1d174c){return _0x879dfc(_0x21e11b-0xa5,_0x3c5938-_0x3e565d._0x43931f,_0x536b92-0x1d2,_0x1d174c);}const _0x3592c1=_0x1ecd2[_0x4bd948(0x5db,0x622,_0x294b11._0x514a57,0x71b)];if(!_0x3592c1)throw new ToolExecutionError(_0x6c9c86(_0x294b11._0x365957,_0x294b11._0x5b8aa1,_0x294b11._0x8836cb,_0x294b11._0x256ae7));function _0x6c9c86(_0x5302dd,_0x19cfa0,_0x709743,_0x42229e){return _0x287b02(_0x19cfa0-0x46,_0x19cfa0-0xa6,_0x42229e,_0x42229e-_0x2ef068._0x91da55);}if(!_0x3592c1[_0x4bd948(_0x294b11._0x1d81d3,_0x294b11._0x1d5d98,0x3a9,_0x294b11._0x22099e)]())throw new ToolExecutionError(_0x6c9c86(_0x294b11._0x2503ea,_0x294b11._0x2dc792,0x2ea,_0x294b11._0x59e0e6));const _0x12180d=_0x76fbb8[_0x4bd948(_0x294b11._0x3173b1,_0x294b11._0x182d2f,0x5e9,_0x294b11._0x2c393e)];validatePosition(_0x76fbb8[_0x6c9c86(0x178,_0x294b11._0x4c1bcf,0x125,_0x294b11._0x85d0dd)],_0x76fbb8['character']);if(_0x12180d==='workspaceSymbol'){if(!_0x76fbb8[_0x4bd948(_0x294b11._0x1be352,0x4bb,0x47b,_0x294b11._0x57eddf)]?.['trim']())throw new ToolExecutionError(_0x6c9c86(0x21e,0x26a,0x12d,_0x294b11._0x260429));const _0x23f62a=await _0x3592c1[_0x4bd948(_0x294b11._0x1e05e1,_0x294b11._0x342258,0x6e5,_0x294b11._0x251898)](_0x76fbb8['query'][_0x6c9c86(_0x294b11._0x5544ae,0x8f,_0x294b11._0x3b104b,-0x59)]());return yield createToolOutput(formatSymbols(_0x23f62a),{'operation':_0x12180d,'query':_0x76fbb8['query'],'symbols':_0x23f62a}),void 0x0;}const _0x377db0=resolveAllowedPath(_0x4bdeb4,_0xac7838,_0x76fbb8['filePath']);await assertFile(_0x377db0);if(!await _0x3592c1[_0x4bd948(0x32a,0x3ee,0x29e,_0x294b11._0x1f2ce0)](_0x377db0))throw new ToolExecutionError(_0x6c9c86(0x255,0x1f2,_0x294b11._0x18b590,0x22e)+_0x76fbb8[_0x4bd948(_0x294b11._0x2c773d,0x560,_0x294b11._0x1548b7,_0x294b11._0x4e5065)],{'filePath':_0x76fbb8[_0x4bd948(_0x294b11._0x5c486f,_0x294b11._0x183462,0x474,0x5c3)]});await _0x3592c1['touchFile'](_0x377db0,!![]);const _0xf4c5b1={'file':_0x377db0,'line':_0x76fbb8[_0x6c9c86(_0x294b11._0x1393e4,0x207,0x22b,0x1bf)]-0x1,'character':_0x76fbb8[_0x6c9c86(0x40f,0x2f6,0x3f3,0x350)]-0x1};switch(_0x12180d){case _0x4bd948(0x35f,0x42f,0x324,0x3db):{const _0x27490f=await _0x3592c1['hover'](_0xf4c5b1);return yield createToolOutput(formatHover(_0x27490f),{'operation':_0x12180d,'filePath':_0x377db0,'hover':_0x27490f}),void 0x0;}case _0x4bd948(0x4f0,_0x294b11._0x4a60a2,0x511,_0x294b11._0x190cae):{const _0x429c73=await _0x3592c1[_0x6c9c86(_0x294b11._0x118110,0xee,_0x294b11._0x4f06b5,-0x46)](_0x377db0);return yield createToolOutput(formatDiagnostics(_0x429c73),{'operation':_0x12180d,'filePath':_0x377db0,'diagnostics':_0x429c73}),void 0x0;}case _0x4bd948(_0x294b11._0x25148a,0x4cf,_0x294b11._0x4fd341,0x35c):{const _0x1ecbfe=await _0x3592c1['definition'](_0xf4c5b1);return yield createToolOutput(formatLocations(_0x1ecbfe),{'operation':_0x12180d,'filePath':_0x377db0,'locations':_0x1ecbfe}),void 0x0;}case _0x4bd948(0x5ac,0x4da,0x502,_0x294b11._0x50bf6f):{const _0x271e5f=await _0x3592c1['references'](_0xf4c5b1);return yield createToolOutput(formatLocations(_0x271e5f),{'operation':_0x12180d,'filePath':_0x377db0,'locations':_0x271e5f}),void 0x0;}case _0x6c9c86(0x19f,0x104,0x172,_0x294b11._0x4c2cea):{const _0x84f99=await _0x3592c1[_0x4bd948(0x37e,_0x294b11._0x42162a,_0x294b11._0x435846,0x30d)](_0xf4c5b1);return yield createToolOutput(formatLocations(_0x84f99),{'operation':_0x12180d,'filePath':_0x377db0,'locations':_0x84f99}),void 0x0;}case _0x6c9c86(_0x294b11._0x4b46c3,_0x294b11._0x7f3385,_0x294b11._0x286360,0x25c):{const _0x4b4996=await _0x3592c1[_0x4bd948(_0x294b11._0x1464d0,_0x294b11._0xa268e9,_0x294b11._0x212f2a,_0x294b11._0x10645d)](_0x377db0);return yield createToolOutput(formatSymbols(_0x4b4996),{'operation':_0x12180d,'filePath':_0x377db0,'symbols':_0x4b4996}),void 0x0;}case _0x6c9c86(_0x294b11._0x4c6888,_0x294b11._0x1497b6,0x459,0x3a6):{const _0x581095=await _0x3592c1['prepareCallHierarchy'](_0xf4c5b1);return yield createToolOutput(formatSymbols(_0x581095),{'operation':_0x12180d,'filePath':_0x377db0,'symbols':toStructured(_0x581095)}),void 0x0;}case _0x6c9c86(_0x294b11._0x417d7a,0x355,0x286,0x435):{const _0x2d8a5b=await _0x3592c1[_0x4bd948(0x504,_0x294b11._0x24d8d4,0x56a,_0x294b11._0x5c486f)](_0xf4c5b1);return yield createToolOutput(formatIncomingCalls(_0x2d8a5b),{'operation':_0x12180d,'filePath':_0x377db0,'calls':toStructured(_0x2d8a5b)}),void 0x0;}case'outgoingCalls':{const _0x22134b=await _0x3592c1['outgoingCalls'](_0xf4c5b1);return yield createToolOutput(formatOutgoingCalls(_0x22134b),{'operation':_0x12180d,'filePath':_0x377db0,'calls':toStructured(_0x22134b)}),void 0x0;}}}});}import{randomUUID as _0xea56d}from'crypto';import{mkdir as _0x4e0516,readFile as _0x2a17ea,writeFile as _0x3f5c78}from'fs/promises';import{join as _0x37c59e}from'path';function sanitizeStorageKey(_0x4de050){const _0x2330a0={_0x107484:0x483,_0x1e3669:0x578,_0x188d9f:0x47e,_0x3ee29e:0x15d},_0x9b9e17={_0x5de775:0x1df,_0x175a00:0xc3},_0xeeb0cf={_0x4c2a0a:0x129,_0x5863f1:0x10f};function _0x5a5228(_0x39ffc8,_0x2ba528,_0x4da765,_0x1f9553){return _0x257320(_0x39ffc8-0x135,_0x2ba528-_0xeeb0cf._0x4c2a0a,_0x39ffc8- -_0xeeb0cf._0x5863f1,_0x2ba528);}function _0x2a3078(_0x5ee666,_0x6b40cd,_0x2dc926,_0x583d48){return _0x3342ed(_0x5ee666-0x19b,_0x5ee666,_0x583d48-_0x9b9e17._0x5de775,_0x583d48-_0x9b9e17._0x175a00);}return _0x4de050[_0x5a5228(0x481,_0x2330a0._0x107484,_0x2330a0._0x1e3669,0x331)](/[^a-zA-Z0-9_]+/g,'_')[_0x5a5228(0x481,0x426,0x596,_0x2330a0._0x188d9f)](/^_+|_+$/g,'')||_0x5a5228(0x2c5,0x298,0x417,_0x2330a0._0x3ee29e);}function storagePath(_0x4e56b1){const _0x16ab53={_0x2dcc54:0x406,_0x3d28d5:0x57c,_0x3d4e1d:0x274,_0x29dcdd:0x223,_0x16b71c:0x461,_0x4edf2a:0x49d,_0xfe72dd:0x54,_0x404f54:0x52,_0x50fc20:0x3b3},_0x1b694f={_0x4d5ff8:0x120},_0x47cc55={_0x1521fe:0x1ad,_0x38b937:0x2f4};function _0x3388c8(_0xc32af6,_0x2d34a4,_0x204f5d,_0x586d95){return _0x257320(_0xc32af6-0x32,_0x2d34a4-_0x47cc55._0x1521fe,_0x586d95- -_0x47cc55._0x38b937,_0x204f5d);}function _0xd91af6(_0x44deed,_0x6c670b,_0x138084,_0x3677ed){return _0x3342ed(_0x44deed-_0x1b694f._0x4d5ff8,_0x6c670b,_0x44deed-0x9d,_0x3677ed-0x45);}const _0x1196a7=sanitizeStorageKey(_0x4e56b1[_0xd91af6(_0x16ab53._0x2dcc54,0x34c,0x415,0x410)][_0xd91af6(_0x16ab53._0x3d28d5,0x61e,0x51b,0x6ed)]?.[_0x3388c8(_0x16ab53._0x3d4e1d,0x343,0x208,_0x16ab53._0x29dcdd)]??_0x4e56b1[_0xd91af6(0x357,0x2df,_0x16ab53._0x16b71c,_0x16ab53._0x4edf2a)]);return _0x37c59e(_0x4e56b1[_0x3388c8(-_0x16ab53._0xfe72dd,0xb7,-_0x16ab53._0x404f54,0x8)],_0x1196a7+_0xd91af6(0x35d,_0x16ab53._0x50fc20,0x464,0x1e9));}async function readStore(_0x5f0035){const _0x39effb={_0x28795b:0x323,_0x43a0f5:0xe5,_0x42179e:0x64c,_0x41c2eb:0x6a1},_0x29ae50={_0x284c5a:0x51,_0x13271e:0x247},_0x15452a={_0x2a1236:0x19};function _0x6e8e21(_0x1d59db,_0x2941a8,_0x4f2cee,_0x5aba08){return _0x257320(_0x1d59db-0x113,_0x2941a8-_0x15452a._0x2a1236,_0x4f2cee- -0x2bb,_0x5aba08);}function _0x1bc864(_0x161ac6,_0x42bb88,_0x1d79de,_0x47dcf4){return _0x257320(_0x161ac6-0x187,_0x42bb88-_0x29ae50._0x284c5a,_0x42bb88-_0x29ae50._0x13271e,_0x161ac6);}try{return JSON['parse'](await _0x2a17ea(_0x5f0035,_0x6e8e21(_0x39effb._0x28795b,0x22e,0x289,0x172)));}catch(_0x39f4bb){if(_0x39f4bb instanceof Error&&_0x6e8e21(-0x10,_0x39effb._0x43a0f5,0x14a,0x1d5)in _0x39f4bb&&_0x39f4bb[_0x1bc864(0x6ec,_0x39effb._0x42179e,0x58c,0x6e8)]===_0x1bc864(0x7b6,0x7cd,0x7e6,_0x39effb._0x41c2eb))return{};throw _0x39f4bb;}}async function writeStore(_0x3aeec7,_0x1e0cfe){const _0x10554e={_0x4cf38a:0x1a3,_0x3db0a1:0x2f8},_0x4479c5={_0x1c7092:0x3b};function _0x3344c0(_0xd01101,_0x3235ff,_0x25b3a5,_0x50b5ca){return _0x3342ed(_0xd01101-0x1d3,_0x3235ff,_0x50b5ca- -0x1c0,_0x50b5ca-_0x4479c5._0x1c7092);}await _0x4e0516(_0x37c59e(_0x3aeec7,'..'),{'recursive':!![]}),await _0x3f5c78(_0x3aeec7,JSON['stringify'](_0x1e0cfe,null,0x2),_0x3344c0(0x35c,_0x10554e._0x4cf38a,0x337,_0x10554e._0x3db0a1));}async function updateStore(_0x213b7f,_0x43d0ae){const _0xd2fa02=await readStore(_0x213b7f);_0x43d0ae(_0xd2fa02),await writeStore(_0x213b7f,_0xd2fa02);}function createMcpOAuthProvider(_0x6e7c1f){const _0xb8fcf0={_0x5e9392:0x60b,_0xb50138:0x69a,_0x5b1398:0x84c,_0x2091e4:0x212,_0x428762:0x35a,_0x1b1300:0x49e,_0x41136c:0x3f9,_0x433e83:0x7c8,_0x2d1210:0x700,_0x276559:0x579,_0x20a49e:0x29b,_0x73b2f2:0x2e6,_0x48dda0:0x6dd,_0x10c4ee:0x5f5,_0x466924:0x7c1,_0x456738:0x754,_0x5448eb:0x3eb,_0x5a245c:0x462,_0x163475:0x4e0,_0x103ae6:0x3be,_0x3bdeb3:0x3a5,_0x279e62:0x3db,_0x1507bf:0x28a,_0x4674fa:0x382,_0x31ecf2:0x3cd,_0x2784d1:0x4de},_0x4b079e={_0x1dbbfb:0x367,_0x2da268:0x430},_0x4bdd39={_0x19645a:0x2b5,_0xd1fca5:0x3b4,_0x4a7698:0x2c7},_0x2eed8b={_0x4bc107:0x15,_0x33e901:0x120,_0x17be76:0xd2},_0x4b3024={_0xb5f822:0x1ab},_0x536c8c={_0x222999:0x44f,_0x3cfee5:0x33},_0x5899c5={_0x82a56a:0x516,_0x12a980:0x606,_0x481410:0x46c,_0xc4a420:0x41a},_0x371c3e={_0x220710:0x79},_0x1598d8={_0x5c42ee:0x176,_0x2c92a3:0x37c},_0x27d8fd={_0x564ca8:0x53},_0x5c4676={_0x170a68:0x112,_0x1d4151:0x72};function _0x4f755f(_0x13ec5a,_0x12403f,_0x255855,_0x85f4dd){return _0x3342ed(_0x13ec5a-_0x5c4676._0x170a68,_0x13ec5a,_0x12403f-_0x5c4676._0x1d4151,_0x85f4dd-0x55);}const _0x34cff3=storagePath(_0x6e7c1f),_0x5cda22=_0x6e7c1f[_0x5493e6(0x525,0x7a0,0x633,_0xb8fcf0._0x5e9392)][_0x5493e6(_0xb8fcf0._0xb50138,_0xb8fcf0._0x5b1398,0x7a9,0x895)]?.[_0x4f755f(_0xb8fcf0._0x2091e4,_0xb8fcf0._0x428762,_0xb8fcf0._0x1b1300,_0xb8fcf0._0x41136c)]?.[_0x5493e6(0x6d6,_0xb8fcf0._0x433e83,_0xb8fcf0._0x2d1210,0x68d)]('\x20'),_0x4167ce={'client_name':_0x5493e6(0x58c,0x5bb,_0xb8fcf0._0x276559,0x613),'redirect_uris':[_0x6e7c1f[_0x4f755f(0x2ba,_0xb8fcf0._0x20a49e,_0xb8fcf0._0x73b2f2,0x223)]],'grant_types':[_0x5493e6(0x5c5,0x567,_0xb8fcf0._0x48dda0,_0xb8fcf0._0x10c4ee),_0x5493e6(0x6a3,_0xb8fcf0._0x466924,_0xb8fcf0._0x456738,0x7bc)],'response_types':[_0x4f755f(0x316,_0xb8fcf0._0x5448eb,_0xb8fcf0._0x5a245c,0x2f6)],'token_endpoint_auth_method':_0x4f755f(0x485,_0xb8fcf0._0x163475,_0xb8fcf0._0x103ae6,0x4cd),..._0x5cda22?{'scope':_0x5cda22}:{}};function _0x5493e6(_0xdbedd1,_0x3decd9,_0x30b0de,_0x979995){return _0x3342ed(_0xdbedd1-_0x27d8fd._0x564ca8,_0x979995,_0x30b0de-0x2ca,_0x979995-0x73);}return{'clientMetadataUrl':_0x6e7c1f[_0x4f755f(_0xb8fcf0._0x3bdeb3,_0xb8fcf0._0x279e62,_0xb8fcf0._0x1507bf,_0xb8fcf0._0x4674fa)]['oauth']?.[_0x4f755f(0x26f,0x37d,_0xb8fcf0._0x31ecf2,_0xb8fcf0._0x2784d1)],get 'redirectUrl'(){const _0x3aab1d={_0x2a1939:0x4d8,_0x424243:0x11};function _0x44fe02(_0x130355,_0x547b34,_0x18d396,_0x3c8873){return _0x4f755f(_0x18d396,_0x547b34- -_0x3aab1d._0x2a1939,_0x18d396-_0x3aab1d._0x424243,_0x3c8873-0x1a6);}return _0x6e7c1f[_0x44fe02(-_0x1598d8._0x5c42ee,-0x23d,-0x398,-_0x1598d8._0x2c92a3)];},get 'clientMetadata'(){return _0x4167ce;},async 'state'(){const _0x2d9180=await readStore(_0x34cff3);if(_0x2d9180[_0x3a3c8e(_0x5899c5._0x82a56a,_0x5899c5._0x12a980,_0x5899c5._0x481410,_0x5899c5._0xc4a420)])return _0x2d9180['state'];const _0x2ad362=_0xea56d();function _0x3a3c8e(_0x51140e,_0x933e97,_0x1b8df9,_0x12f860){return _0x4f755f(_0x12f860,_0x51140e- -0x53,_0x1b8df9-_0x371c3e._0x220710,_0x12f860-0x1e);}return await updateStore(_0x34cff3,_0xe8237d=>{function _0x519b1e(_0x185f93,_0xfeaa65,_0x3d0882,_0x2894a1){return _0x3a3c8e(_0x3d0882- -0xe2,_0xfeaa65-0x199,_0x3d0882-0x17c,_0xfeaa65);}_0xe8237d[_0x519b1e(0x421,0x40f,0x434,0x45b)]=_0x2ad362;}),_0x2ad362;},async 'clientInformation'(){function _0x4ec36e(_0x49f435,_0x323f98,_0x6c5eb5,_0x3689af){return _0x4f755f(_0x6c5eb5,_0x3689af- -_0x536c8c._0x222999,_0x6c5eb5-_0x536c8c._0x3cfee5,_0x3689af-0x8);}return(await readStore(_0x34cff3))[_0x4ec36e(0x80,-0x7c,-0x2d,-0xae)];},async 'saveClientInformation'(_0x20b3fd){const _0x2349d7={_0xf95788:0x143,_0x4bc69d:0x14c},_0x1f7862={_0xb50349:0x5b};await updateStore(_0x34cff3,_0x31f79b=>{function _0x289d13(_0x3a7d42,_0x237599,_0x43be92,_0x136227){return _0x1df5(_0x3a7d42- -_0x1f7862._0xb50349,_0x43be92);}_0x31f79b[_0x289d13(0x20f,_0x2349d7._0xf95788,_0x2349d7._0x4bc69d,0x291)]=_0x20b3fd;});},async 'tokens'(){function _0x12a613(_0x33479d,_0x11bb41,_0x2bc01b,_0x382d5b){return _0x4f755f(_0x11bb41,_0x33479d- -0x486,_0x2bc01b-0x1a4,_0x382d5b-_0x4b3024._0xb5f822);}return(await readStore(_0x34cff3))[_0x12a613(0xa0,-_0x2eed8b._0x4bc107,_0x2eed8b._0x33e901,-_0x2eed8b._0x17be76)];},async 'saveTokens'(_0x546673){await updateStore(_0x34cff3,_0x4f2f90=>{function _0x13c48d(_0x57e6cd,_0x4ba999,_0x56d5d7,_0x407bb8){return _0x1df5(_0x4ba999-0x215,_0x56d5d7);}_0x4f2f90[_0x13c48d(0x6d9,0x604,0x68a,0x661)]=_0x546673;});},async 'redirectToAuthorization'(_0x2b182e){await _0x6e7c1f['onRedirect'](_0x2b182e);},async 'saveCodeVerifier'(_0xdd44ea){const _0x1458d8={_0x5aa933:0x569,_0x496a3e:0x60e};await updateStore(_0x34cff3,_0x34f485=>{function _0x16ce59(_0x226b9c,_0x3dfea3,_0x210ac8,_0x4e790e){return _0x1df5(_0x4e790e-0x2bb,_0x226b9c);}_0x34f485[_0x16ce59(0x6ce,0x58c,_0x1458d8._0x5aa933,_0x1458d8._0x496a3e)]=_0xdd44ea;});},async 'codeVerifier'(){const _0x98bf35=(await readStore(_0x34cff3))['codeVerifier'];if(!_0x98bf35)throw new Error(_0x2be58e(_0x4bdd39._0x19645a,_0x4bdd39._0xd1fca5,_0x4bdd39._0x4a7698,0x486));function _0x2be58e(_0x7a0975,_0x1bb441,_0x5d0a80,_0x20d5b5){return _0x5493e6(_0x7a0975-0x160,_0x1bb441-0x13,_0x1bb441- -0x1d8,_0x5d0a80);}return _0x98bf35;},async 'invalidateCredentials'(_0x450a37){const _0x3facd7={_0x26b3ac:0x13c,_0x1a1fb4:0x1f5,_0x53d7d3:0x28b,_0x4adf2a:0x3dd,_0x157829:0x24d,_0x50dec2:0xb0,_0x138a91:0x1cd,_0x565f5c:0x2ce,_0x14d774:0x28e,_0x3a0b97:0x5d};await updateStore(_0x34cff3,_0x2aa3ea=>{const _0x2fff7e={_0x435074:0x75},_0x210a8f={_0x1f723e:0x2da};(_0x450a37===_0x45f8d7(_0x3facd7._0x26b3ac,0x14a,0xae,0x138)||_0x450a37==='client')&&(_0x2aa3ea[_0x45f8d7(_0x3facd7._0x1a1fb4,0x2bb,_0x3facd7._0x53d7d3,0x246)]=void 0x0);function _0x4de577(_0x136cfc,_0x24ba44,_0x53eba0,_0x11e564){return _0x1df5(_0x11e564- -_0x210a8f._0x1f723e,_0x24ba44);}(_0x450a37==='all'||_0x450a37===_0x45f8d7(0x37a,0x3d0,0x4c4,_0x3facd7._0x4adf2a))&&(_0x2aa3ea[_0x4de577(_0x3facd7._0x157829,0x16e,_0x3facd7._0x50dec2,0x115)]=void 0x0);(_0x450a37==='all'||_0x450a37===_0x4de577(-0x1a2,-_0x3facd7._0x138a91,0xae,-0x9f))&&(_0x2aa3ea['codeVerifier']=void 0x0,_0x2aa3ea[_0x4de577(_0x3facd7._0x565f5c,_0x3facd7._0x14d774,_0x3facd7._0x3a0b97,0x158)]=void 0x0);function _0x45f8d7(_0x555f98,_0xf44fb2,_0x116546,_0x270409){return _0x1df5(_0x555f98- -_0x2fff7e._0x435074,_0x116546);}(_0x450a37==='all'||_0x450a37==='discovery')&&(_0x2aa3ea['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x2ec96f){const _0x4f9617={_0x1d793f:0x3a0,_0x19f9af:0x4d8,_0x181cfe:0x41c};await updateStore(_0x34cff3,_0x14f23c=>{const _0x3c4179={_0x2a3e:0x8f};function _0x2868db(_0x544cd9,_0x592db9,_0x1dc342,_0x4b5af7){return _0x1df5(_0x592db9-_0x3c4179._0x2a3e,_0x4b5af7);}_0x14f23c[_0x2868db(0x3db,_0x4f9617._0x1d793f,_0x4f9617._0x19f9af,_0x4f9617._0x181cfe)]=_0x2ec96f;});},async 'discoveryState'(){function _0x393b28(_0x5c2a31,_0x6b7e2c,_0x1b5583,_0x168874){return _0x5493e6(_0x5c2a31-0xd8,_0x6b7e2c-0x131,_0x6b7e2c- -0x342,_0x5c2a31);}return(await readStore(_0x34cff3))[_0x393b28(0x2e3,0x35e,_0x4b079e._0x1dbbfb,_0x4b079e._0x2da268)];}};}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(_0x1367a3,_0x36b9d8){const _0x45ca95={_0x5cc995:0x170,_0x4bc48b:0x65},_0xa6b2e5=_0x13e39=>_0x13e39['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x17529f(0x442,0x6a2,0x5b4,0x4ef)](/^_+|_+$/g,'');function _0x17529f(_0xe59e72,_0xec0e7f,_0x195d67,_0x40c436){return _0x257320(_0xe59e72-_0x45ca95._0x5cc995,_0xec0e7f-_0x45ca95._0x4bc48b,_0x195d67-0x24,_0x40c436);}return'mcp_'+_0xa6b2e5(_0x1367a3)+'_'+_0xa6b2e5(_0x36b9d8);}function isObject(_0x72e03d){const _0x52354c={_0x871712:0x42b,_0x302f60:0x4b0,_0x570dd5:0x54e,_0x6c4845:0x4ab,_0x5639d9:0x19d},_0x280745={_0x51680d:0x1f};function _0x278159(_0x380e51,_0x27defc,_0x245240,_0x8292e3){return _0x3342ed(_0x380e51-0xa6,_0x245240,_0x380e51- -0xbc,_0x8292e3-0x57);}function _0x302ee4(_0x8ed867,_0x2d3f1a,_0x503a33,_0x467da7){return _0x257320(_0x8ed867-_0x280745._0x51680d,_0x2d3f1a-0x25,_0x8ed867-0x13b,_0x467da7);}return typeof _0x72e03d===_0x302ee4(_0x52354c._0x871712,_0x52354c._0x302f60,_0x52354c._0x570dd5,_0x52354c._0x6c4845)&&_0x72e03d!==null&&!Array[_0x278159(0x272,0x14a,0x10d,_0x52354c._0x5639d9)](_0x72e03d);}function toSupportedSchema(_0x7d6b3a){const _0x221d9a={_0x7665cf:0x3df,_0x50c5bd:0x587,_0x165d7d:0x5f2,_0xe6e12:0x1e1,_0x2ac452:0x317,_0x1cb6cb:0x37e,_0x6b747f:0x355,_0x571d5a:0x188,_0x50fedc:0x9,_0x29a0c3:0x2a,_0xdaa2ee:0xa8,_0x4c2572:0xd3,_0x535bfc:0x25f,_0x2cacb9:0x385,_0x4e6eda:0x508,_0x10cbac:0x43f,_0x3e4ca9:0x55d,_0x1d7141:0x1ef,_0xaead30:0x2cd,_0x787dc0:0x3a1,_0x2656f9:0x255,_0x2a2f1e:0xb0,_0x4c52cc:0x6c8,_0x1a9115:0x6a0,_0x209c2a:0x4b7},_0x154315={_0x4e4a0f:0x17a,_0xb8ff6:0x166,_0x3af80f:0xcb},_0x4dc7c2={_0x1f39d8:0x8e,_0x506ae0:0x1aa,_0x2d13b7:0x17d};if(!isObject(_0x7d6b3a))return void 0x0;if(_0x7d6b3a[_0x11640e(0x277,0x385,0x34a,_0x221d9a._0x7665cf)]===_0x11640e(_0x221d9a._0x50c5bd,_0x221d9a._0x165d7d,0x6f2,0x50d))return{'type':_0x28a526(_0x221d9a._0xe6e12,0x2e2,_0x221d9a._0x2ac452,_0x221d9a._0x1cb6cb)};if(_0x7d6b3a[_0x11640e(0x307,0x385,_0x221d9a._0x6b747f,0x2eb)]===_0x28a526(0x22e,_0x221d9a._0x571d5a,0x19a,0x17e)||_0x7d6b3a[_0x28a526(_0x221d9a._0x50fedc,0x75,-_0x221d9a._0x29a0c3,0x18a)]==='integer')return{'type':_0x28a526(_0x221d9a._0xdaa2ee,0x188,_0x221d9a._0x4c2572,_0x221d9a._0x535bfc)};function _0x28a526(_0x44e63d,_0xec30c7,_0x3778b5,_0x51f5bf){return _0x3342ed(_0x44e63d-_0x4dc7c2._0x1f39d8,_0x3778b5,_0xec30c7- -_0x4dc7c2._0x506ae0,_0x51f5bf-_0x4dc7c2._0x2d13b7);}if(_0x7d6b3a[_0x11640e(0x39c,_0x221d9a._0x2cacb9,0x35f,0x305)]==='boolean')return{'type':_0x11640e(_0x221d9a._0x4e6eda,_0x221d9a._0x10cbac,_0x221d9a._0x3e4ca9,0x317)};if(_0x7d6b3a['type']===_0x28a526(_0x221d9a._0x1d7141,0x35b,_0x221d9a._0xaead30,0x4ba))return{'type':_0x28a526(0x41d,0x35b,_0x221d9a._0x787dc0,0x475),'items':toSupportedSchema(_0x7d6b3a[_0x28a526(_0x221d9a._0x2656f9,0x212,_0x221d9a._0x2a2f1e,0x34a)])??{'type':_0x11640e(_0x221d9a._0x4c52cc,0x5f2,_0x221d9a._0x1a9115,_0x221d9a._0x209c2a)}};if(_0x7d6b3a['type']==='object')return toNuvinToolSchema(_0x7d6b3a);function _0x11640e(_0x140a58,_0x3dc11f,_0x3289c7,_0x545d72){return _0x3342ed(_0x140a58-_0x154315._0x4e4a0f,_0x140a58,_0x3dc11f-_0x154315._0xb8ff6,_0x545d72-_0x154315._0x3af80f);}return void 0x0;}function toNuvinToolSchema(_0x5c554b){const _0x668e1c={_0x51dbb6:0x201,_0x3cc2aa:0x12c,_0x2406ac:0x17f,_0x2d2819:0x283,_0x564f49:0x2f1,_0x352f0a:0x28d,_0x24008c:0x2c1,_0x498088:0x275,_0x5cf273:0x370,_0x4a872b:0x3b6,_0x1463ed:0x243,_0x2637bd:0x2a4,_0x29b12f:0x2f1,_0xce2ebb:0x328},_0x100f86={_0x3fab6f:0xf3};function _0x455b62(_0x9a6d08,_0x4e049a,_0x41b0aa,_0x508dcc){return _0x3342ed(_0x9a6d08-0x7f,_0x9a6d08,_0x41b0aa-0x8d,_0x508dcc-0xb7);}if(!isObject(_0x5c554b)||_0x5c554b[_0x4058c3(_0x668e1c._0x51dbb6,0x203,_0x668e1c._0x3cc2aa,_0x668e1c._0x2406ac)]!==_0x455b62(0x179,_0x668e1c._0x2d2819,_0x668e1c._0x564f49,_0x668e1c._0x352f0a))return{'type':'object','properties':{}};function _0x4058c3(_0x482ec1,_0x17977a,_0x6a4d3c,_0x45d7d3){return _0x3342ed(_0x482ec1-0x3,_0x17977a,_0x6a4d3c- -_0x100f86._0x3fab6f,_0x45d7d3-0x3f);}const _0x4402e8={},_0x1a40b4=isObject(_0x5c554b['properties'])?_0x5c554b['properties']:{};for(const [_0x121feb,_0x2167bd]of Object[_0x455b62(_0x668e1c._0x24008c,_0x668e1c._0x498088,0x3e3,0x2a1)](_0x1a40b4)){const _0x24e5ae=toSupportedSchema(_0x2167bd);if(_0x24e5ae)_0x4402e8[_0x121feb]=_0x24e5ae;}const _0xd40ff2=Array['isArray'](_0x5c554b['required'])?_0x5c554b['required'][_0x455b62(0x291,0x3d9,_0x668e1c._0x5cf273,_0x668e1c._0x4a872b)](_0x29aed4=>typeof _0x29aed4==='string'):void 0x0;return _0xd40ff2?.['length']?{'type':'object','properties':_0x4402e8,'required':_0xd40ff2}:{'type':_0x455b62(_0x668e1c._0x1463ed,_0x668e1c._0x2637bd,_0x668e1c._0x29b12f,_0x668e1c._0xce2ebb),'properties':_0x4402e8};}function isJsonObject(_0x388e1f){const _0x1a4f61={_0x2ef464:0xc9,_0x518065:0x197,_0x4c33d9:0xc9,_0x4d13d9:0x7d},_0x4755b2={_0x10af7b:0x30,_0x39749a:0x189},_0x12dda7={_0x41beea:0x1a};function _0x3f1dfd(_0x482789,_0x52785a,_0x3e2d9d,_0x4bfe20){return _0x257320(_0x482789-0x35,_0x52785a-_0x12dda7._0x41beea,_0x4bfe20- -0x450,_0x3e2d9d);}function _0x2a14e2(_0x1df48e,_0x38d704,_0x572b9d,_0x2df4d3){return _0x3342ed(_0x1df48e-_0x4755b2._0x10af7b,_0x2df4d3,_0x572b9d- -0x3fb,_0x2df4d3-_0x4755b2._0x39749a);}return typeof _0x388e1f===_0x2a14e2(-_0x1a4f61._0x2ef464,-0x244,-_0x1a4f61._0x518065,-0x128)&&_0x388e1f!==null&&!Array[_0x3f1dfd(-_0x1a4f61._0x4c33d9,-_0x1a4f61._0x4d13d9,-0x1c2,-0x96)](_0x388e1f);}function formatMcpContent(_0x513abd){const _0x419eee={_0x36ff52:0x4fa,_0x67f52b:0x673,_0x5d4621:0x3d3,_0x35d85c:0x341,_0x6c240f:0x354,_0x28e79b:0x457,_0x23551c:0x4fc,_0x4a63f5:0x5d1,_0x27acba:0x5f1,_0x5f4be7:0x3e2,_0x54ec84:0x4b5,_0x13b681:0x49b},_0x3e49bc={_0x12b6e8:0x1be,_0x2f173f:0x1e5,_0x14eb99:0x452,_0x2f86d1:0x58b,_0xc1f2c4:0x563},_0x2c855f={_0x3fd122:0xd,_0x535dfd:0x142};function _0x957fb5(_0x53829e,_0x19e232,_0x239f91,_0x5e2174){return _0x3342ed(_0x53829e-_0x2c855f._0x3fd122,_0x5e2174,_0x19e232-_0x2c855f._0x535dfd,_0x5e2174-0x29);}const _0x2283ac=Array['isArray'](_0x513abd['content'])?_0x513abd[_0x957fb5(_0x419eee._0x36ff52,0x5b3,0x539,_0x419eee._0x67f52b)]:[];function _0x840224(_0x499a87,_0x468d29,_0xf70ebe,_0x4726b4){return _0x3342ed(_0x499a87-0x18a,_0x468d29,_0x499a87-0xc6,_0x4726b4-0x32);}const _0x177654=_0x2283ac[_0x957fb5(0x364,_0x419eee._0x5d4621,_0x419eee._0x35d85c,0x2e1)](_0x346a3a=>{const _0x5aa524={_0x59383e:0x62};function _0x54e6f8(_0x1b6b04,_0x4f8d1c,_0x219128,_0x530be9){return _0x840224(_0x219128- -0x55,_0x4f8d1c,_0x219128-_0x5aa524._0x59383e,_0x530be9-0xd9);}if(!isObject(_0x346a3a))return'';function _0x25341c(_0x5714bf,_0x2d9c33,_0x57aa2d,_0x24d780){return _0x957fb5(_0x5714bf-0x1ac,_0x57aa2d- -0x6b,_0x57aa2d-0x16e,_0x24d780);}if(_0x346a3a[_0x54e6f8(_0x3e49bc._0x12b6e8,0x2cc,0x290,_0x3e49bc._0x2f173f)]==='text'&&typeof _0x346a3a[_0x54e6f8(0x41f,0x359,0x426,0x2fc)]===_0x25341c(_0x3e49bc._0x14eb99,_0x3e49bc._0x2f86d1,_0x3e49bc._0xc1f2c4,0x4d2))return _0x346a3a['text'];return JSON['stringify'](_0x346a3a);})[_0x957fb5(0x40d,0x425,_0x419eee._0x6c240f,_0x419eee._0x28e79b)](_0x23d2d5=>_0x23d2d5[_0x957fb5(0x532,0x5d7,0x567,0x499)]>0x0)[_0x840224(_0x419eee._0x23551c,_0x419eee._0x4a63f5,_0x419eee._0x27acba,0x40d)]('\x0a');if(_0x177654['length']>0x0)return _0x177654;return JSON[_0x957fb5(_0x419eee._0x5f4be7,_0x419eee._0x54ec84,_0x419eee._0x13b681,0x5cb)](_0x513abd,null,0x2);}function createMcpTool(_0x1b9fb6){const _0x116b3e={_0xde7431:0x21,_0x29ed0c:0xde,_0x539ac6:0x1b,_0x2e4462:0x3b,_0x18b180:0x19,_0x4853fe:0x36,_0x58e363:0x1a1,_0x23a7f6:0x398,_0x5a7c93:0x49a,_0x507e8f:0x453,_0x4deae7:0x114,_0x2ab5bc:0x7a},_0x15f598={_0x23b47f:0x231,_0x5eb8f5:0x1ea,_0x97181c:0x12e,_0x44f61e:0x261,_0x33e242:0x8c,_0x308cf2:0x49,_0x1d6343:0x210,_0xc11aa9:0x2a8,_0x5f2940:0xfd,_0x1cd8e0:0xb2,_0x5f1eb1:0x28d,_0x46e55f:0x1c9,_0x1a09c1:0xa6,_0x31f3eb:0x68,_0x3419e2:0xd3,_0x8f696d:0xfd,_0x5f44da:0x86,_0x240b9f:0x67},_0x442bae={_0x16106d:0x24,_0x2c0698:0x18f};function _0x275420(_0x492296,_0x1967e8,_0x4d1c94,_0x56a5e9){return _0x3342ed(_0x492296-0x1e0,_0x56a5e9,_0x492296- -0x2db,_0x56a5e9-0x175);}const _0x4346c5=createMcpToolName(_0x1b9fb6[_0x275420(-_0x116b3e._0xde7431,-_0x116b3e._0x29ed0c,-_0x116b3e._0x539ac6,-0xa6)],_0x1b9fb6['tool'][_0x275420(-_0x116b3e._0x2e4462,0x130,-0x188,_0x116b3e._0x18b180)]);function _0x721fed(_0x1b6eb4,_0x5762aa,_0x423ab0,_0x17b4d5){return _0x3342ed(_0x1b6eb4-_0x442bae._0x16106d,_0x423ab0,_0x5762aa-0x8f,_0x17b4d5-_0x442bae._0x2c0698);}return defineTool({'name':_0x4346c5,'description':_0x1b9fb6[_0x275420(_0x116b3e._0x4853fe,0xa,_0x116b3e._0x58e363,0xb1)][_0x721fed(_0x116b3e._0x23a7f6,0x424,_0x116b3e._0x5a7c93,_0x116b3e._0x507e8f)]??'MCP\x20tool\x20'+_0x1b9fb6['tool'][_0x275420(-_0x116b3e._0x2e4462,-_0x116b3e._0x4deae7,-_0x116b3e._0x2ab5bc,-0xe1)]+'\x20from\x20'+_0x1b9fb6['serverName'],'inputSchema':toNuvinToolSchema(_0x1b9fb6[_0x721fed(0x2fa,0x3a0,0x4fe,0x346)]['inputSchema']),async *'execute'(_0x34a1e0){const _0x488552={_0x35d532:0x5c,_0x20f876:0x2a3,_0x304191:0x1cc};function _0x153493(_0x6edc4c,_0x3cde21,_0x529ba2,_0x546df5){return _0x275420(_0x6edc4c-0x2c8,_0x3cde21-0x176,_0x529ba2-0x153,_0x3cde21);}const _0x426217=await _0x1b9fb6[_0x153493(_0x15f598._0x23b47f,_0x15f598._0x5eb8f5,0x1e3,_0x15f598._0x97181c)]['callTool']({'name':_0x1b9fb6[_0x153493(0x2fe,0x379,_0x15f598._0x44f61e,0x3b2)][_0x1bd97a(0x1d2,0xec,_0x15f598._0x33e242,-_0x15f598._0x308cf2)],'arguments':isJsonObject(_0x34a1e0)?_0x34a1e0:{}});if(_0x426217['isError'])throw new ToolExecutionError(formatMcpContent(_0x426217),{'serverName':_0x1b9fb6[_0x153493(0x2a7,_0x15f598._0x1d6343,0x263,_0x15f598._0xc11aa9)],'toolName':_0x1b9fb6[_0x1bd97a(-0x43,0x1d0,_0x15f598._0x5f2940,_0x15f598._0x1cd8e0)][_0x153493(_0x15f598._0x5f1eb1,0x139,0x14c,0x340)]});yield createToolOutput(formatMcpContent(_0x426217),{'serverName':_0x1b9fb6[_0x1bd97a(_0x15f598._0x46e55f,0x6e,_0x15f598._0x1a09c1,-_0x15f598._0x31f3eb)],'toolName':_0x1b9fb6[_0x1bd97a(0x1ef,_0x15f598._0x3419e2,_0x15f598._0x8f696d,0x72)][_0x1bd97a(0x0,-_0x15f598._0x5f44da,0x8c,-_0x15f598._0x240b9f)],'result':_0x426217});function _0x1bd97a(_0x3f6556,_0x1502bf,_0x15ec8b,_0x1f1646){return _0x721fed(_0x3f6556-_0x488552._0x35d532,_0x15ec8b- -_0x488552._0x20f876,_0x3f6556,_0x1f1646-_0x488552._0x304191);}return void 0x0;}});}function resolvePrefix(_0x979aa5,_0x172677){const _0x519311={_0x36f463:0x225,_0x3c11d8:0x8c,_0x5396dd:0x188,_0x38ea03:0x1af},_0x351fc8={_0x91b224:0x8c};function _0x67dbc(_0x384f42,_0x2c629d,_0x59ac1c,_0x1cd903){return _0x257320(_0x384f42-0x33,_0x2c629d-_0x351fc8._0x91b224,_0x1cd903- -0x196,_0x59ac1c);}return _0x172677[_0x67dbc(_0x519311._0x36f463,_0x519311._0x3c11d8,_0x519311._0x5396dd,_0x519311._0x38ea03)]??_0x979aa5;}function buildMcpHttpHeaders(_0x37ea16){const _0x48df43={_0x16fa5d:0x1f,_0x475ca7:0x6cf,_0x57613c:0x526,_0x5ee7a3:0x3f1,_0x2be99a:0x40f,_0x36827c:0x2da,_0x1cf0b6:0x1b3,_0x5f3d35:0x18a,_0x335657:0x656,_0x48ce39:0x64a,_0x2f6809:0x469,_0x19d2fa:0x5a8,_0x3dbaca:0x43d,_0x16c933:0x221,_0x2d1c5e:0x1bc,_0xcfc051:0x26a,_0x37785b:0x20e,_0x328944:0x324,_0x5e293f:0x3fd,_0x3eefd7:0x1c8,_0x2d50c0:0xad,_0x3f77de:0x154,_0x4aa3ed:0x2d6,_0x251fad:0x20},_0x18db5d={_0x1a9495:0x26,_0x51ee1a:0x291,_0x1327ad:0x117},_0x38d550={..._0x37ea16[_0x542fac(0x17d,0x229,_0x48df43._0x16fa5d,0x2b3)]??{}};_0x37ea16[_0xf6c91e(0x63b,_0x48df43._0x475ca7,0x684,_0x48df43._0x57613c)]?.[_0xf6c91e(_0x48df43._0x5ee7a3,_0x48df43._0x2be99a,0x4b0,0x5e2)]===_0x542fac(_0x48df43._0x36827c,0x293,0x273,0x423)&&_0x37ea16[_0x542fac(0x2fd,_0x48df43._0x1cf0b6,0x311,_0x48df43._0x5f3d35)][_0xf6c91e(_0x48df43._0x335657,0x508,0x54f,_0x48df43._0x48ce39)]&&_0x38d550[_0xf6c91e(0x58a,_0x48df43._0x2f6809,_0x48df43._0x19d2fa,_0x48df43._0x3dbaca)]===void 0x0&&(_0x38d550[_0x542fac(_0x48df43._0x16c933,0x368,0x27a,0xe8)]=_0x542fac(0x32e,_0x48df43._0x2d1c5e,0x370,_0x48df43._0xcfc051)+_0x37ea16[_0x542fac(0x2fd,_0x48df43._0x37785b,_0x48df43._0x328944,_0x48df43._0x5e293f)][_0x542fac(_0x48df43._0x3eefd7,_0x48df43._0x2d50c0,0xf9,_0x48df43._0x3f77de)]);function _0x542fac(_0x2aa30e,_0x2cb716,_0x3914e9,_0x5c1fc6){return _0x257320(_0x2aa30e-0x139,_0x2cb716-0x73,_0x2aa30e- -0x182,_0x2cb716);}function _0xf6c91e(_0x26e01,_0x14e833,_0xaaa26d,_0x94fefb){return _0x3342ed(_0x26e01-_0x18db5d._0x1a9495,_0x94fefb,_0xaaa26d-_0x18db5d._0x51ee1a,_0x94fefb-_0x18db5d._0x1327ad);}return Object[_0x542fac(0x18e,_0x48df43._0x4aa3ed,0x65,_0x48df43._0x251fad)](_0x38d550)['length']>0x0?_0x38d550:void 0x0;}function getErrorMessage(_0x1fdded){const _0x128e6a={_0x4b5f93:0x79d},_0x106b49={_0x440baa:0xd,_0x5ae2a0:0x182};function _0x360bcf(_0x30f46e,_0x3c0b8c,_0x461988,_0x2e5089){return _0x257320(_0x30f46e-_0x106b49._0x440baa,_0x3c0b8c-0x12,_0x2e5089-_0x106b49._0x5ae2a0,_0x461988);}return _0x1fdded instanceof Error?_0x1fdded[_0x360bcf(0x77b,_0x128e6a._0x4b5f93,0x613,0x6e7)]:String(_0x1fdded);}function isUnauthorizedError(_0x34395a){const _0xb4519e={_0x5c0edd:0x42a,_0x559aa3:0x44e,_0x483a4f:0x2d0,_0x1396d5:0x32a,_0x4e2fcf:0x351,_0x35ba0c:0x4bb},_0x5bf519={_0x26a9ff:0x187,_0x4e4244:0xa9,_0x463794:0x21},_0x3eec41={_0x495a26:0x473,_0x1f79cf:0xb0};function _0x563ef1(_0x47dad2,_0x1fd4b2,_0x21e0c2,_0x4fcf97){return _0x3342ed(_0x47dad2-0x1d0,_0x1fd4b2,_0x47dad2- -_0x3eec41._0x495a26,_0x4fcf97-_0x3eec41._0x1f79cf);}function _0x3a71b5(_0x3cd647,_0x4b6b13,_0x4d3805,_0x1d9c76){return _0x257320(_0x3cd647-_0x5bf519._0x26a9ff,_0x4b6b13-_0x5bf519._0x4e4244,_0x4b6b13-_0x5bf519._0x463794,_0x3cd647);}return _0x34395a instanceof Error&&_0x34395a[_0x3a71b5(_0xb4519e._0x5c0edd,0x46c,_0xb4519e._0x559aa3,0x3d6)][_0x563ef1(-0x1d3,-0x278,-_0xb4519e._0x483a4f,-0x186)]===_0x3a71b5(_0xb4519e._0x1396d5,_0xb4519e._0x4e2fcf,_0xb4519e._0x35ba0c,0x231);}async function connectMcpServer(_0x24f4ee,_0x54d2cf,_0x1e696b){const _0x55cf50={_0x3d5be3:0x2da,_0x51f31e:0x4cd,_0x5ff3a7:0x455,_0x1c6e2b:0x41f,_0x509405:0x48a,_0x58a17c:0x472,_0x2878d3:0x403,_0x34be9d:0x443,_0x485c6e:0x91,_0x11baf7:0x2a3,_0x26076f:0x361,_0xef916:0x145,_0x121266:0x2a3,_0x2f067e:0x2e,_0x5cf75c:0xf5,_0x32b9a3:0x3af,_0x49d2f1:0x311,_0x498598:0x377,_0x30e7cd:0x2ca,_0x589905:0x25a,_0x4334df:0x21e,_0x575cfa:0x24c,_0x2ede9f:0x26e,_0x26386e:0x1b7,_0x41eafb:0x193,_0x50cde6:0x527,_0x34d3d7:0x375,_0x4d4813:0x513,_0x486524:0x449,_0x59c2b7:0xc7,_0x9cab9d:0x8a,_0x4a5c9e:0x403,_0x71a077:0x578,_0x58115f:0x3bd,_0x553590:0x2ed,_0xe62084:0x228,_0x32d20f:0x3d5,_0x3f7397:0x46d,_0xf246d1:0x36c,_0x565a1f:0x3a3,_0x33aef1:0x2f9},_0x3e7578={_0xab5e43:0x2e},_0x5dee87={_0x4c5bf8:0x4e1},_0x26108e={_0x49287a:0x138,_0x515d79:0x7c},_0x489743={_0x51341d:0x5a7,_0x3a8f3a:0x58e},_0x1a8f8f={_0x5dec05:0x400,_0x3def13:0x3cd,_0x3a9e8a:0x463,_0x55b935:0x371,_0x1d2f0e:0x399,_0x37af15:0x7c2,_0x45adc7:0x749,_0x27bc20:0x867},_0x4f856b={_0x124d8c:0x1d9,_0x3b23e7:0x1c0},_0x364925={_0x4898c3:0x71,_0x10c6af:0x23c,_0x3c280c:0xcd},_0x533a93={_0x1ebf83:0x133,_0x4b2968:0xd2};function _0x294687(_0x167476,_0x422606,_0x19627d,_0x490bbe){return _0x3342ed(_0x167476-_0x533a93._0x1ebf83,_0x19627d,_0x167476-_0x533a93._0x4b2968,_0x490bbe-0x106);}function _0x249e98(_0x2462ff,_0x4c8e90,_0x394e0e,_0x227584){return _0x3342ed(_0x2462ff-_0x364925._0x4898c3,_0x227584,_0x4c8e90- -_0x364925._0x10c6af,_0x227584-_0x364925._0x3c280c);}const _0x515c31=new Client({'name':_0x249e98(_0x55cf50._0x3d5be3,0x1b1,0x2e3,0x1c5),'version':_0x249e98(-0x149,-0x17,-0x186,-0x121)});_0x515c31[_0x294687(0x45e,_0x55cf50._0x51f31e,_0x55cf50._0x5ff3a7,0x46f)]=_0x3f2074=>{function _0x151bd8(_0x25681b,_0x10a322,_0x5ac251,_0x2b1901){return _0x294687(_0x5ac251-0x231,_0x10a322-0x1b1,_0x25681b,_0x2b1901-0x160);}function _0x304458(_0x176702,_0xce2ba5,_0x5d6f24,_0x2165eb){return _0x249e98(_0x176702-0x162,_0x2165eb-_0x4f856b._0x124d8c,_0x5d6f24-_0x4f856b._0x3b23e7,_0x5d6f24);}console[_0x304458(_0x1a8f8f._0x5dec05,_0x1a8f8f._0x3def13,_0x1a8f8f._0x3a9e8a,_0x1a8f8f._0x55b935)](_0x304458(_0x1a8f8f._0x3a9e8a,0x2e5,_0x1a8f8f._0x1d2f0e,0x378)+_0x24f4ee+_0x151bd8(_0x1a8f8f._0x37af15,_0x1a8f8f._0x45adc7,0x7ef,_0x1a8f8f._0x27bc20),_0x3f2074['message']);};if(_0x54d2cf['transport']===_0x249e98(0x1d8,0x2ad,0x2c8,0x1ca)||_0x54d2cf[_0x294687(_0x55cf50._0x1c6e2b,_0x55cf50._0x509405,0x2a7,0x4ab)]){if(!_0x54d2cf[_0x294687(0x41f,_0x55cf50._0x58a17c,0x48b,0x4ca)])throw new Error(_0x294687(_0x55cf50._0x2878d3,_0x55cf50._0x34be9d,0x32a,0x3be)+_0x24f4ee+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x54d2cf[_0x249e98(0x2bc,0x1b7,0x22a,_0x55cf50._0x485c6e)]?.['type']===_0x249e98(0x323,_0x55cf50._0x11baf7,0x21a,_0x55cf50._0x26076f)&&!_0x1e696b?.[_0x249e98(_0x55cf50._0xef916,_0x55cf50._0x121266,0x175,0x3d0)])throw new Error(_0x249e98(-_0x55cf50._0x2f067e,_0x55cf50._0x5cf75c,0x205,0x12e)+_0x24f4ee+_0x294687(_0x55cf50._0x32b9a3,_0x55cf50._0x49d2f1,0x3af,0x240));const _0x59a0c2=buildMcpHttpHeaders(_0x54d2cf),_0x5dbe70=_0x54d2cf['auth']?.['type']===_0x249e98(_0x55cf50._0x498598,0x2a3,0x198,_0x55cf50._0x30e7cd)&&_0x1e696b?.['oauth']?createMcpOAuthProvider({'serverName':_0x24f4ee,'callbackUrl':_0x1e696b[_0x249e98(_0x55cf50._0x589905,0x2a3,0x3ed,0x3d5)]['callbackUrl'],'storageDir':_0x1e696b[_0x249e98(_0x55cf50._0x4334df,0x2a3,_0x55cf50._0x575cfa,_0x55cf50._0x2ede9f)]['storageDir'],'config':_0x54d2cf[_0x249e98(0xd9,_0x55cf50._0x26386e,_0x55cf50._0x41eafb,0x20e)],'onRedirect':_0x210571=>_0x1e696b[_0x249e98(0x2a5,0x2a3,0x40f,0x362)]?.['onRedirect'](_0x24f4ee,_0x210571)}):void 0x0,_0x22b392=new StreamableHTTPClientTransport(new URL(_0x54d2cf[_0x294687(_0x55cf50._0x1c6e2b,_0x55cf50._0x50cde6,0x3e0,_0x55cf50._0x34d3d7)]),{'authProvider':_0x5dbe70,'requestInit':_0x59a0c2?{'headers':_0x59a0c2}:void 0x0});await _0x515c31[_0x294687(_0x55cf50._0x4d4813,_0x55cf50._0x486524,0x5a3,0x3f7)](_0x22b392);}else{if(!_0x54d2cf[_0x249e98(-0x1b,_0x55cf50._0x59c2b7,0x1ee,-_0x55cf50._0x9cab9d)])throw new Error(_0x294687(_0x55cf50._0x4a5c9e,_0x55cf50._0x71a077,_0x55cf50._0x58115f,0x4ec)+_0x24f4ee+_0x249e98(_0x55cf50._0x553590,_0x55cf50._0xe62084,0xe0,0x23b));const _0x49b84b=new StdioClientTransport({'command':_0x54d2cf[_0x294687(_0x55cf50._0x32d20f,_0x55cf50._0x3f7397,_0x55cf50._0xf246d1,_0x55cf50._0x565a1f)],'args':_0x54d2cf[_0x249e98(0x47,0x124,0x4a,0x29a)]??[],'env':_0x54d2cf[_0x294687(0x3ed,_0x55cf50._0x33aef1,0x3f7,0x553)],'stderr':'pipe'});await _0x515c31['connect'](_0x49b84b);}return{async 'listTools'(){function _0x4e48e9(_0x552198,_0x4573ba,_0x34efb3,_0x2855d6){return _0x249e98(_0x552198-0x8,_0x552198-0x485,_0x34efb3-0x1f1,_0x34efb3);}return await _0x515c31[_0x4e48e9(0x6b9,0x5b4,_0x489743._0x51341d,_0x489743._0x3a8f3a)]();},async 'callTool'(_0x4cf4f6){function _0x1b0286(_0x19e0b0,_0x274d4c,_0x449bbf,_0x3452c9){return _0x294687(_0x449bbf-_0x26108e._0x49287a,_0x274d4c-0x15,_0x19e0b0,_0x3452c9-_0x26108e._0x515d79);}return await _0x515c31[_0x1b0286(0x5d1,0x61c,0x5c2,_0x5dee87._0x4c5bf8)]({'method':'tools/call','params':_0x4cf4f6},CallToolResultSchema);},async 'close'(){const _0x299b8d={_0x3ccd9c:0x1c5};function _0x46df8b(_0x40dc3c,_0x249c5e,_0x40b626,_0x28b840){return _0x249e98(_0x40dc3c-0x108,_0x28b840- -0x1a,_0x40b626-_0x299b8d._0x3ccd9c,_0x40b626);}await _0x515c31[_0x46df8b(0x145,-0xca,-_0x3e7578._0xab5e43,0x76)]();}};}async function createMcpToolsFromServers(_0x3e300d){const _0x4263fb={_0x2617af:0x53e,_0x801d16:0x522,_0x378483:0x5b3,_0x5c9038:0x6b4,_0x218ed4:0x3bf,_0x3eaf25:0x371,_0x572732:0x4c8,_0x5326b3:0x38b,_0x2829a3:0x4f8,_0x4cc659:0x4eb,_0x58c2de:0x28a,_0x325240:0x3a1,_0x5c7b50:0x4a0,_0x224ca0:0x451,_0x4aea97:0x727,_0xa8c9d3:0x5e2,_0x498d9c:0x4ea,_0x493e7:0x4da,_0x2e9403:0x3bb,_0xbaf3a:0x46e,_0x1292ea:0x4a3,_0x3331d5:0x501,_0x55b4e9:0x5aa,_0x513f0e:0x398,_0x2e4004:0x651},_0x414bb4={_0x66db3d:0x364,_0x308711:0x303,_0x5cd26c:0x28d},_0x114439={_0x45accd:0x165,_0x537ee8:0x89,_0x560e47:0x4f},_0x15818b=_0x3e300d[_0x33b52d(_0x4263fb._0x2617af,_0x4263fb._0x801d16,_0x4263fb._0x378483,_0x4263fb._0x5c9038)]??connectMcpServer;function _0x39a778(_0x459a8d,_0x25bfad,_0xbdad7c,_0x3010df){return _0x257320(_0x459a8d-_0x114439._0x45accd,_0x25bfad-_0x114439._0x537ee8,_0x459a8d- -_0x114439._0x560e47,_0xbdad7c);}const _0x473447=[],_0x2d2102={},_0x586d5a=[];function _0x33b52d(_0x4133b3,_0x274912,_0x13f108,_0xea3c64){return _0x257320(_0x4133b3-0x4a,_0x274912-0xa3,_0x13f108-0xe6,_0x274912);}for(const [_0x31ea91,_0x5d9054]of Object[_0x33b52d(_0x4263fb._0x218ed4,_0x4263fb._0x3eaf25,_0x4263fb._0x572732,_0x4263fb._0x5326b3)](_0x3e300d[_0x39a778(_0x4263fb._0x2829a3,_0x4263fb._0x4cc659,0x528,0x401)]??{})){if(_0x5d9054[_0x39a778(_0x4263fb._0x58c2de,0x255,0x1ae,_0x4263fb._0x325240)]===![]){_0x2d2102[_0x31ea91]={'status':'disabled'};continue;}try{const _0x229722=await _0x15818b(_0x31ea91,_0x5d9054,_0x3e300d['connection']);_0x473447[_0x33b52d(0x414,_0x4263fb._0x5c7b50,_0x4263fb._0x224ca0,0x338)](_0x229722);const _0x53f977=await _0x229722[_0x33b52d(_0x4263fb._0x4aea97,0x644,_0x4263fb._0xa8c9d3,_0x4263fb._0x498d9c)]();let _0x522303=0x0;for(const _0x1f393c of _0x53f977[_0x33b52d(_0x4263fb._0x493e7,_0x4263fb._0x2e9403,0x4cc,_0x4263fb._0xbaf3a)]){const _0x13855a=_0x3e300d[_0x39a778(0x4f4,_0x4263fb._0x1292ea,0x4e1,_0x4263fb._0x3331d5)]?.[_0x31ea91]?.[_0x1f393c['name']];if(_0x13855a===![])continue;_0x522303+=0x1,_0x586d5a[_0x33b52d(0x532,0x4c1,_0x4263fb._0x224ca0,_0x4263fb._0x55b4e9)](createMcpTool({'serverName':resolvePrefix(_0x31ea91,_0x5d9054),'tool':_0x1f393c,'client':_0x229722}));}_0x2d2102[_0x31ea91]={'status':'connected','toolCount':_0x522303};}catch(_0x309fe7){_0x2d2102[_0x31ea91]=isUnauthorizedError(_0x309fe7)?{'status':_0x39a778(_0x4263fb._0x513f0e,0x36d,0x3a9,0x2e8),'message':getErrorMessage(_0x309fe7)}:{'status':_0x33b52d(0x533,0x4eb,0x546,_0x4263fb._0x2e4004),'message':getErrorMessage(_0x309fe7)};}}return{'tools':_0x586d5a,'servers':_0x2d2102,async 'close'(){const _0x2a0a4f={_0x260931:0x404},_0x2e18d6={_0x1babee:0x10b};function _0x460dc0(_0x627a29,_0x17e549,_0x28f4c0,_0x59ed17){return _0x39a778(_0x28f4c0- -0x4c4,_0x17e549-_0x2e18d6._0x1babee,_0x627a29,_0x59ed17-0xcc);}function _0x54f4ec(_0x8e217b,_0x373543,_0x3b497c,_0x465fd5){return _0x33b52d(_0x8e217b-0x88,_0x8e217b,_0x3b497c- -_0x2a0a4f._0x260931,_0x465fd5-0x1e0);}await Promise[_0x460dc0(-0x21f,-_0x414bb4._0x66db3d,-0x211,-0x1e3)](_0x473447[_0x460dc0(-_0x414bb4._0x308711,-_0x414bb4._0x5cd26c,-0x1f6,-0xaf)](_0x5ee201=>_0x5ee201[_0x460dc0(-0x1f9,-0x247,-0x1bb,-0x1fe)]()));}};}function getCommand(_0x4cf8b4){const _0x89e342={_0x5d43cc:0x33,_0x58863f:0x54,_0x3d126c:0x29,_0x3c7961:0x9e,_0x2b675a:0x168,_0x230bc3:0x404,_0x4e53c7:0x3ba,_0x472c80:0x4d1,_0x2e47f0:0x349},_0x28c1ce={_0x5107a3:0x125,_0x4941dc:0x2b},_0x3bdb13={_0x4ee99a:0x8b};function _0x1c544b(_0x18edec,_0x175300,_0x47c918,_0x2c0dd8){return _0x3342ed(_0x18edec-0xfe,_0x18edec,_0x2c0dd8- -0x1c6,_0x2c0dd8-_0x3bdb13._0x4ee99a);}function _0xf71274(_0x3cd8a1,_0x3cc640,_0x5a8f4b,_0x5519cc){return _0x257320(_0x3cd8a1-0x3a,_0x3cc640-_0x28c1ce._0x5107a3,_0x5519cc-_0x28c1ce._0x4941dc,_0x5a8f4b);}if(_0x4cf8b4&&typeof _0x4cf8b4===_0x1c544b(-_0x89e342._0x5d43cc,_0x89e342._0x58863f,_0x89e342._0x3d126c,_0x89e342._0x3c7961)&&!Array[_0x1c544b(0x84,0x14a,0xe8,_0x89e342._0x2b675a)](_0x4cf8b4)&&typeof _0x4cf8b4[_0xf71274(_0x89e342._0x230bc3,0x249,0x510,_0x89e342._0x4e53c7)]==='string')return _0x4cf8b4[_0xf71274(0x473,_0x89e342._0x472c80,0x45e,0x3ba)];return _0xf71274(0x376,_0x89e342._0x2e47f0,0x463,0x302);}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x257320(0x3f6,0x43b,0x472,0x378),_0x257320(0x337,0x2a6,0x304,0x3de),_0x3342ed(0x255,0x219,0x24a,0x279),_0x3342ed(0x394,0x466,0x4d8,0x43a),_0x257320(0x46b,0x5aa,0x539,0x4bd),_0x3342ed(0x524,0x424,0x45e,0x2f9),_0x3342ed(0x32d,0x35f,0x39b,0x504),_0x257320(0x5bf,0x506,0x4e6,0x62a),_0x257320(0x57d,0x37e,0x4eb,0x583),'src/formats/provider-adapters.ts',_0x3342ed(0x1cc,0x138,0x25c,0x261),_0x257320(0x527,0x622,0x53d,0x428),_0x3342ed(0x2ff,0x38f,0x3a9,0x3f1),_0x3342ed(0x279,0x1a2,0x22c,0xf6),'src/formats/provider-adapters.test.ts',_0x257320(0x2e3,0x273,0x2ca,0x37f)][_0x257320(0x559,0x507,0x4c2,0x4ea)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':_0x257320(0x561,0x3df,0x3fd,0x4f5),'input_schema':{'type':'object','properties':{'command':{'type':_0x257320(0x3a0,0x605,0x518,0x50d)}},'required':[_0x257320(0x43a,0x33d,0x38f,0x48b)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x22a242){return{'output':_0x22a242,'structured':{'value':_0x22a242}};}function createUnknownToolResult(_0x5a5ffa){const _0xfd4dde={_0x124be2:0x1f6,_0x4a8e14:0x308,_0x379415:0x340,_0x59783a:0x32a,_0x5d695d:0x478,_0x4f6e0e:0x229,_0x31cbd3:0x3e3},_0x5efea9={_0x2c8ee5:0x89,_0x511708:0x17a},_0x3c83b9={_0x5e6cb2:0x14,_0x498fd9:0x136};function _0x12b2f7(_0x5514fd,_0x49ad96,_0x4ee028,_0x1faea9){return _0x257320(_0x5514fd-0x114,_0x49ad96-_0x3c83b9._0x5e6cb2,_0x5514fd- -_0x3c83b9._0x498fd9,_0x4ee028);}function _0x2768a9(_0x2feaf5,_0x519d29,_0x24b5fc,_0x35896e){return _0x3342ed(_0x2feaf5-_0x5efea9._0x2c8ee5,_0x519d29,_0x2feaf5-0x276,_0x35896e-_0x5efea9._0x511708);}return{'callId':_0x5a5ffa['id'],'toolName':_0x5a5ffa[_0x12b2f7(_0xfd4dde._0x124be2,0x247,_0xfd4dde._0x4a8e14,_0xfd4dde._0x379415)],'status':_0x12b2f7(_0xfd4dde._0x59783a,_0xfd4dde._0x5d695d,_0xfd4dde._0x4f6e0e,_0xfd4dde._0x31cbd3),'output':_0x12b2f7(0x379,0x4d0,0x47d,0x40b)+_0x5a5ffa['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x3cc7b2,_0x531ce8){const _0x4c3b84={_0x2ca2fb:0x486},_0x45a49b={_0x1f7b4e:0x1dc};function _0x33f2a2(_0x49d2bd,_0x338206,_0x5e54fa,_0x5e5fbc){return _0x3342ed(_0x49d2bd-0x58,_0x49d2bd,_0x5e5fbc-_0x45a49b._0x1f7b4e,_0x5e5fbc-0xa4);}return{'callId':_0x3cc7b2['id'],'toolName':_0x3cc7b2[_0x33f2a2(0x386,_0x4c3b84._0x2ca2fb,0x40f,0x47c)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x3cc7b2['input']),'exitCode':0x0},'chunks':[_0x531ce8],'meta':createMeta()};}function createMockToolRuntime(){const _0x5ea0b8={_0x34e029:0x427},_0x1a222a={_0x13eb53:0x25b},_0xce6a80={_0x2639ee:0x404,_0x107c21:0x4f0,_0x2eaaed:0x4b3,_0x2dbde9:0x576},_0x475ea6={_0x6618af:0x1ab},_0x327d12=async(_0x185094,_0x412117)=>{function _0x3fa7bf(_0x386477,_0x2cff03,_0x348966,_0x152654){return _0x1df5(_0x152654- -0x3bd,_0x348966);}if(_0x185094[_0xecd5f0(0x3d4,_0xce6a80._0x2639ee,_0xce6a80._0x107c21,0x386)]!==_0xecd5f0(0x664,0x5fe,_0xce6a80._0x2eaaed,_0xce6a80._0x2dbde9))return createUnknownToolResult(_0x185094);const _0x3bcc54=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0xecd5f0(_0x5b54bd,_0x540dad,_0x2a5bfd,_0x30fb16){return _0x1df5(_0x30fb16-_0x475ea6._0x6618af,_0x540dad);}return createSuccessToolResult(_0x185094,_0x3bcc54);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x2b5ece,_0x5b384d){function _0x5377f9(_0xdd3a3c,_0x3f2ad6,_0x3d641e,_0x42a9a5){return _0x1df5(_0x3d641e-_0x1a222a._0x13eb53,_0x42a9a5);}return await Promise['all'](_0x2b5ece[_0x5377f9(0x574,0x3c6,_0x5ea0b8._0x34e029,0x36e)](async _0x1641ac=>{return await _0x327d12(_0x1641ac,_0x5b384d);}));},async 'execute'(_0x2b8b03,_0x279a7b){return await _0x327d12(_0x2b8b03,_0x279a7b);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x15d9a2={_0x286d24:0x8f},_0x2f6e16={_0x3e830c:0x1bc,_0x3066b3:0x40a,_0x35df89:0xfd};delegatedRunCounter+=0x1;function _0x5b9f42(_0x14fed8,_0x5a9ec8,_0x17dab9,_0x288e2d){return _0x3342ed(_0x14fed8-_0x2f6e16._0x3e830c,_0x14fed8,_0x288e2d- -_0x2f6e16._0x3066b3,_0x288e2d-_0x2f6e16._0x35df89);}return _0x5b9f42(0x45,-_0x15d9a2._0x286d24,-0x189,-0x29)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x38a2b0,_0x34045f){const _0x5d894c={_0x43cbff:0x3f,_0xa3cc61:0x188,_0xf46ace:0x36},_0x14e6af={_0x544897:0xf7};function _0x589fe8(_0xe6c5b,_0x225808,_0x56ef8e,_0x538161){return _0x257320(_0xe6c5b-0x1c1,_0x225808-_0x14e6af._0x544897,_0x538161- -0x4c1,_0x56ef8e);}return typeof _0x38a2b0===_0x589fe8(_0x5d894c._0x43cbff,_0x5d894c._0xa3cc61,-0xa2,_0x5d894c._0xf46ace)?await _0x38a2b0(_0x34045f):_0x38a2b0;}function getDelegatedAgentDefinition(_0x501943,_0x574b22){const _0x454e9c={_0x1db7bc:0x181};function _0x3d89c8(_0x537206,_0x16a39a,_0x4237ce,_0x11678c){return _0x3342ed(_0x537206-0xec,_0x11678c,_0x16a39a- -0x1c9,_0x11678c-0x143);}return _0x501943[_0x3d89c8(0x1cc,_0x454e9c._0x1db7bc,0xa7,0x39)]?.[_0x574b22];}function _0x2ed3(){const _0x38a3a2=['C2fMzq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','ignVBxbSzxrLzc4','zNjVBq','zMLSztOVlW','zxHPDenVzgu','zgvSzxrL','A2LSBfjLCxvLC3rLza','BNv2Aw4','l2jPBI9ZAa','zw51Bq','Dhj1zwnVBg9Y','C2HPzNq','CgfZC3rOCM91z2G','yxv0Aa','DgvZDa','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','ANnVBMm','yMLUyxj5tMfTzq','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','y2fWywjPBgL0AwvZ','Dgv4DerVy3vTzw50l2rPzenSB3nL','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','lMPWzW','sgLUDa','DxjP','B3b0Aw9UywW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','zgLYzwn0B3j5','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','lw5i','AxngAw5PDgu','ndG2mZb3qKrRDfm','ihDHCYbHyM9YDgvKlG','yNjVA2vU','s2LSBgvKia','BgLI','CgfYC2u','C2HHmJu2','CMfUz2u','zMLSzvbHDgG','C3rYAxbbBNnP','A2v5','CMvJB3jK','CMvNAw9U','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','yxv0Ag9YAxPHDgLVBL9JB2rL','yNvUlMXVy2S','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','ls1NBg9IpseUz2L0lYO','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','y29KzvzLCMLMAwvY','Aw1Hz2uVANbLzW','y291BNq','ie9sia','z2v0vg9KB3m','ls0T','zgfYAW','v2fYBMLUzW','AwzYyw1L','B3rOzxi','vMLLD2vKigLTywDLigzPBgu6ia','vw5RBM93BIb0B29SoIa','qMvHCMvYia','yMfZAwm','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','rxjYB3i','C2vHCMnOrgvWDgG','vg9KB1DYAxrL','CgfYzw50u2vZC2LVBKLK','Cg5WBs1SB2nRlNLHBwW','tM8GC3vJAcbMAwXLoIaN','yMLVBwu','yw5ZD2vYCW','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','Dg90ywXqCM9KDwnLza','EMfP','C2vUzfjLCxvLC3q','icHWAwqG','Cgf0Ag5HBwu','oIbPBNzHBgLKihbYAw9YAxr5','AM9PBG','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','C2H1DgrVD24','C3rHCNrZv2L0Aa','y29Uy2f0','vw50AxrSzwq','Bw9Kzq','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','zgf0yq','tM8GAg92zxiGAw5MB3jTyxrPB24','mtaUmc4WlJa','y29UBMvJDa','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','Bwf4uMvKAxjLy3rZ','mJi0lJaUmc4W','Ag9ZDg5HBwu','D29YA3nWywnLl3n5BwjVBa','tM8GyMfJA2DYB3vUzcbWCM9JzxnZihDPDgGGAwqG','zMLSBa','Bg9JywXLq29TCgfYzq','C3rKzxjYrgvJB2rLCG','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','r2XVyG','ChvIBgLZAgvKqxq','BgLUzu51Bq','tg9HzfnRAwXS','yMLVBwuUANnVBMm','DhjPBuvUza','zxjYB3jZ','C3bHD24','Aw5PDgLHBgL6zwq','zgvMyxvSDa','CMvNzxG','B3bLBG','BgLUzvrLEhq','zMfPBgvK','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','yxnZAwDU','q29Tu3bLyW','C3jJl2v4yw1WBgvZl2rLBw8UDhm','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','AhrTBfnUAxbWzxq','lNrZ','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','AwDUB3jLt3v0Chv0','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','CMvHC29U','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','BxrPBwu','thnW','BxrPBwvnCW','D3jPDgu','zNvUy3rPB24','zgvMyxvSDfrPBwvVDxrnCW','CMfUzg9T','y2XPzw50x3nLy3jLDf9WB3n0','yNvMzMvYq2HHCNm','BgLZDfrVB2XZ','y29UDgvUDa','u3rVCcbYzwfKAw5Nigf0ihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','C2L6zq','zw5NAw5LCW','tuvesvvn','y29UDgv4Da','C2HLBgXqyxrO','Aw5JBhvKzq','igzHAwXLzc4','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','ygbG','A2v5yMLUzgLUz3m','zMXHDe1HCa','DhvYBMrVD24','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','DhLWzxnJCMLWDhjLywn0','CNvUBMLUzW','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','zMLUza','sw52B2TLq29TBwfUza','lI4U','u2HLBgWGBM90igzVDw5KoIa','z2XVyG','C2XPy2u','CgXHAw4','CMvMCMvZAf90B2TLBG','Dg9Rzw5tDg9YywDLs2v5','C3rYAw5N','zMLUywXnzxnZywDLvgv4Da','lMjPBG','y29TBwfUzhm','qMfZAa','C3LTBgLUAW','DxrTx21LzgL1Bq','zgv0ywLS','Aw52ywXPzf9XDwvZDgLVBNm','BgvUz3rO','CMvZDwX0','wZ0+nY04kcLD','BM9Zy3jPChq','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','BMf2','C2nYDwjfBNzlzxLZ','yw50AhjVCgLJ','B3bLBMfP','y2HHCMfJDgvY','v2LUr2v0','B3bLBMfPlxjLC3bVBNnLCY13CW','te9x','y2f0y2G','Dg9vChbLCKnHC2u','CMLWz3jLCa','zgvSAw1PDgvY','zxH0BMfTzq','y2XPzw50CW','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ugf0AcbPCYbUB3qGysbMAwXLoIa','BxvSDgLtzwXLy3q','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','vg9Vig1HBNKGCMvKAxjLy3rZ','ls1MAwXLCW','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','C3jJl3nOyxjLzc90ExbLCY50CW','r09pr0Xfx0ntrv9dwa','D29YA3nWywnLu3LTyM9S','Dg9Rzw5Z','Aw5JBhvKzxm','ode5nZy1rM9vrg14','ywXSB3DLzfrVB2XZ','DxrMoa','ChjVDg9JB2W','y29ZDa','C2vYDMvYCW','yw50AhjVCgLJlw1LC3nHz2vZ','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','DhnZzxj2zxiUANm','CxvLC3rPB24','Bg93','zgLZCg9Zzq','phn5C3rLBs1Yzw1PBMrLCJ4','B2zMC2v0','Ag9TzwrPCG','DgfZAW','r0Lusfvcx0fdq0vtu19ut0TftG','C2vUze5VDgLMAwnHDgLVBG','BgLZDgvU','Dg90ywXeCM9WCgvK','C2HLBgXjza','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','y2fWq2HHCNm','v2vIrMv0y2G','BhnWu2vYDMLJzq','tM8GCMvZDwX0CYbMB3vUzc4','CNvUswq','yNvUlMXVy2TI','yMfJA2DYB3vUzfjLz2LZDhj5','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','mJqWlJaUmc4W','zgLYBMfTzq','qsbJB25JAxnLigv4CgXHBMf0Aw9Uig9MihDOyxqGDgHPCYbLzgL0ignOyw5NzxmGyw5KihDOEsdIGjqGDgHLigDVywWGAxqGywr2yw5JzxmUifnOB3DUihrVihrOzsb1C2vYigjLzM9Yzsb0AguGy2HHBMDLigLZigfWCgXPzwqUiejLihnWzwnPzMLJlcbLlMCUicDgAxGGDgHLihrVA2vUlxjLzNjLC2GGCMfJzsbPBIb0AguGyxv0AcbJBgLLBNqNihjHDgHLCIb0AgfUicDLzgL0igzPBguNlG','C3jJl2fNzw50l2fNzw50lNrZ','BwvZC2fNzq','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','zgf0zxrPBwu','C3rKB3v0rgvJB2rLCG','C3bSAxq','CgLK','B2f1DgG','DxrTx3rLCM0','yxr4','u0HfteW','zgLNzxn0','sfruuca','B2XKvgv4Da','ywrK','ls1OAwrKzw4','AwDUB3jL','Ahr0Ca','C3rHCNreAxi','CMvZDwX0CW','xsb0CMfUC3bVCNqGzxjYB3i6','seLhsa','DhLWzxnJCMLWDa','Bwf4q29Uy3vYCMvUDa','qsbJB25JAxnLigv4CgXHBMf0Aw9Uig9MihDOyxqGDgHPCYbJB21Tyw5KigrVzxmGyw5KihDOEsb5B3uGyxjLihj1BM5PBMCGAxqG4OcuihrOzsbNB2fSigL0igfKDMfUy2vZlIbtAg93BIb0BYb0AguGDxnLCIbIzwzVCMuGzxHLy3v0Aw9UlIbczsbZCgvJAwzPyYWGzs5NlIaNuNvUihrOzsbHDxrOihrLC3rZihrVihzLCMLMEsb0AguGDg9Rzw4TCMvMCMvZAcbMAxGNihjHDgHLCIb0AgfUicDYDw4GDgvZDhmNlG','BhnWlxbYB3H5','rM91BMqG','CMvHzen1CNnVCG','Aw1Hz2vZ','z29Vz2XLlwnZzq','y3jSzG','C3rHDgu','ChjLCgfYzunHBgXiAwvYyxjJAhK','CMvJzw5JEurHExm','ru5pru5u','igj5DgvZicHVCMLNAw5HBdOG','ywjVCNrLza','Aw5JB21PBMDdywXSCW','AgfUzgXL','zxHPDgvK','mc4WlJaUma','DhnJ','qxnZAwDUvgfZAW','Aw52ywXPzf90B2rVx2L0zw0','CMvWBgfJzq','yxjYyxK','B2XSyw1H','y2XLyxi','yNL0zuXLBMD0Aa','zMLSzq','zw5NAw5L','cGPbuKDvtuvovfm6ia','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','y2HHCKnVzgvbDa','uhvIBgLZAgvKoIa','Bg9VA3vW','B2zM','DhLWzq','DxbKyxrL','C2v0','BM90Awz5','AhLKCMf0zu1LDge','BgfUzW','mc4WlJa','qvbjx0Tfwq','CgfJA2fNzs1SB2nRlMPZB24','yNvMzMvY','y2fSBgjHy2TvCMW','r3jLCa','CgXHAw50zxH0','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','zMLSzvzLCNnPB25Z','BgfZDeLUzgv4t2y','yw5ZAti1nG','z2L0qNjHBMnO','C2vUza','BgLTAxq','AMf2yxnJCMLWDhjLywn0','Dg9KB3m','z2L0AhvI','yxbPs2v5','DhjPBq','z2v0u3rHDhm','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','lNrZEa','CMvMzxjLBMnLCW','Aw1Hz2uVD2vICa','y2vPBa','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','mJa5mZuWnej4r2rArW','CgfYC2vjBNq','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','BM93','y2XPzw50','Aw1WBgvTzw50yxrPB24','BgLUzvn0yxj0','vg9KBYa','uhjVz3jHBuzPBgvZ','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','CgfJA2fNzs5QC29U','BhmGlwXH','s2LSBfnOzwXS','zw5HyMXLza','DgLTzw91De1Z','AxnfBMfIBgvK','Dgv4DerVy3vTzw50l2rPze9Wzw4','C2vZC2LVBKLK','lMnQCW','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','CMvSyxrPDMu','y29UDgvUDc10ExbL','C3rKAw8','zxzPy3rjzK5LzwrLza','Bwf4','B3v0Chv0','qMfZAe91Dhb1Da','ywXSB3DLzerPCNm','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','Aw52ywXPzf90B2rVx3bYAw9YAxr5','BgLNAhq','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','ls1YzwDLEha','DgL0Bgu','l3vZCI9IAw4VC2G','mtKYlJaUmc4W','B2jQzwn0','C2H1DgrVD25tDgfYDgvK','yxbWBgLJyxrPB24VANnVBG','CNvUsw5cywnRz3jVDw5K','u0Lhs0Lmta','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','z29Vz2XLq3nLs2v5','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlIbtzxqGCNvUsw5cywnRz3jVDw5KoNrYDwuGzM9YigXVBMCTCNvUBMLUzYbJB21Tyw5KCYaOC2vYDMvYCYWGD2f0y2HLCNmPoIbPDcbYzxr1CM5ZigeGC2HLBgXjzcbPBw1LzgLHDgvSEsdIGjqGCMvHzcbVDxrWDxqGD2L0AcbcyxnOt3v0Chv0igfUzcbZDg9WigL0ihDPDgGGs2LSBfnOzwXSlIbetYbot1qGvvnfiejbu0GGve9ptcbMB3iGCMvHzcbMAwXLihvZzsbgAwXLuMvHzc4Gww91ie1vu1qGChjVDMLKzsbHignVBMnPC2uGygrLC2nYAxb0Aw9UycbLEhbSywLUAw5NihDOyxqGDgHLignVBw1HBMqGzg9LCYbHBMqGD2H5ihLVDsbHCMuGCNvUBMLUzYbPDcaODgHLigDVywWGAxqGywr2yw5JzxmPiokaLcbPDcbPCYbZAg93BIb0BYb0AguGDxnLCIbMB3iGDhjHBNnWyxjLBMn5igjLzM9YzsbLEgvJDxrPB24U','mtmZnZq0mfzxt3fRtq','Bwv0yq','CgfNzw1HCa','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','C3rVCMfNzurPCG','CxvLC3rPB25Z','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','AgvHzgvYCW','CM9VDa','r09pr0Xfx0ntrv9lrvK','ywXS','ywn0AxzL','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','BMv3vgv4Da','mtKYlJe2oc4WlJa','BwfYA2rVD24','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','BwfUDwfS','Dg9VBenHBgXjza','zxjYB3jnzxnZywDL','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','lMPWzwC','A2v5CW','rMLSzuvKAxq','pc9ZExn0zw0TCMvTAw5Kzxi+','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','Bwf4qNL0zxm','yMLVBwuUANnVBG','A2LSBa','zMv0y2HjBxbS','qwXSia','BM9Kzv9TB2r1BgvZ','ANnJB25MAwCUANnVBG','ndu5mJa4AeTfCuj3','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','BwfW','y2XLyw51Ca','mtCYlJe2lJaUma','C3rKB3v0','Aw5ZDgfSBa','zgLHz25VC3rPy3ngB3jgAwXL','CMCUzxHL','CMvTB3zL','tuLosu1bwf9bueLFs0vz','BwvKAxvT','AgfZq2XPzw50CW','CMfUAW','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','Aw5PDgLHBgL6yxrPB24','Dhj1BMm','BMfTzq','EwfYBI5SB2nR','cMbGya','Aw5ZDhj1y3rPB25Z','vw5HDxrOB3jPEMvKrxjYB3i','twLJCM9ZB2z0','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','BNbT','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','C3bHD25PBMC','yMfZzty0','z29uB0LTCgXLBwvUDgf0Aw9U','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','ks4GvxnLiejHC2HpDxrWDxqGDg8GCMvHzcbPDhmGB3v0Chv0igfUzcblAwXSu2HLBgWGDg8GC3rVCcbPDc4','tNv2Aw4','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','Cg9W','zhj5uNvU','ywjVCNq','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','AxnjBNrLz2vY','D2LUmZi','B25oB3rPzMLJyxrPB24','y2fJAgvK','ChjLzML4','C2vYDMvYtMfTzq','l29WDc9OB21LyNjLDY9IAw4VCMC','tM8GzgLHz25VC3rPy3m','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','Dg9Rzw4','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','lMPZB24','Dg9mB3DLCKnHC2u','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','uKLgrG','vMLLD0zPBgu','D2vI','zMLYC3q','Dg9KB3ncEvnLC3nPB24','l3vZCI9SB2nHBc9IAw4VCMC','yxr0CG','rMv0y2GGDgLTzwqGB3v0','ugf0AcbUB3qGzM91BMq6ia','y2XVC2u','lNDLyNa','yw5ZAte2','Aw52ywXPzf90B2rVx2nVBNrLBNq','Dg90ywW','CMvZB2X2zq','DMfSDwu','Bwf0y2HLCW','lMnTza','Bg9JyxrPB24','yxjNDw1LBNroyw1LCW','zxH0zw5ZAw9UCW','Dg9VBc1VDxrWDxqTB2zMBg9Hza','yM9VBgvHBG','zg5Zl3bYB21PC2vZ','vgvYBwLUyxrLigeGyMfJA2DYB3vUzcbWCM9JzxnZihn0yxj0zwqGD2L0AcbcyxnOkhj1BKLUqMfJA2DYB3vUzdP0CNvLksWGAwrLBNrPzMLLzcbIEsbPDhmGC2HLBgXjzc4','Ag92zxi','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','ChvZAa','DhjHBNnMB3jTCW','Dg9tDhjPBMC','AxngAwXL','zMLSDgvY','BM9Uzq','o1TExg5DkJ8','C2vHCMnOugfYyw1Z','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','C2nVCgvZ','ls1NBg9Ipq','BgfUz3vHz2u','v0vcua','oIbJB250zw50ihjLCxvPCMvK','igj5DgvZicH0B3rHBdOG','te9dquXbufbeqvrb','ls1NBg9I','Bwf4rw50CMLLCW','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','sw5MB3jTyxrPB24','qxnRvxnLCLrVB2W','mJG4mZaYqMnNwLbS','l3bPza','B3b0Aw9UCW','zgvMAw5PDgLVBG','lMPZEa','z2vUzxjHBa','u3rHCNrLzcbHz2vUDcbYDw4G','Axnoyu4','B3bLBNjVDxrLCG','DhnJB25MAwCUANnVBG','yxjNDw1LBNrZ','AxndB250zxH0','DMvYAwzPzxi','uMvMDxnPBMCGDg8GzMv0y2GGysbUB24TChvIBgLJigfKzhjLC3m','Dgf2AwX5','y29TBwfUza','C3rHDhvZ','Bg9HzfnRAwXS','CgXHDgzVCM0','Aw1Hz2u','Dgf2AwX5qxbPs2v5','u2TPBgWGjW','Agv4','y2XPzw50twv0ywrHDgfvCMW','Ahr0CdO','CxvLC3rPB24T','ywDLBNrjza','C2vSzwn0Aw9UuMfUz2u','lM10CW','Dg9VBa','ANnVBG','CNnZ','qwDLBNqGCNvUia','tu9ptLnit1rFqvbjx0Tfwq','mZm5otbtz0TizxK','qxv0Ag9YAxPHDgLVBG','Dhj1BMnHDgvK','ChjPB3jPDhK','C3vKBW','zw52','BhnW','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','v2vIu2vHCMnO','zxHPDcbJB2rLia','rMv0y2GGywjVCNrLzcbIEsb1C2vY','ls1ZDgrPBW','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','D2HPy2GGCMC','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','C2vYDMvYswq','C29Tzq','ienHDxnLoIa','rgv0ywLSoIa','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','o1TE','CgfZC3DVCMq','w291Dhb1Dcb0CNvUy2f0zwq6ia','AxnbCNjHEq','y2XPzw50sw5MB3jTyxrPB24','B3jPz2LUvg9VBenHBgXjza','tunqihnLCNzLCIa','BNvTyMvY','ywXSu2v0DgXLza','DgLTzvTKyxrLDgLTzv0','BwLUAw1HEa','Dgv4DerVy3vTzw50l2HVDMvY','AMf2yxnJCMLWDa','Dw5PB24','ChjVy2vZC0v4AxrLza','Cgf0DgvYBG','Dg9WAwm','Aw52ywXPzf90B2rVx2LK','Aw5PDgLHBgL6zq','C291CMnL','C3rHDhvZvgv4Da','B25Jzq','Ag9ZDa','oeDVsxfetq','w1bFxL1BxhnCu10QpW','C2TPBgXZ','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','y291BNrLCG','zMXVB3i','C2vYDMvY','Dgv4Dc9ODg1S','ywDLBNrZ','y29UDgv4DeXPBMS','iYmGu2TPBgW6ia','DxjS','yMLYDgH0Aw1L','Aw5KzxHpzG','l2jPBI9IyxnO','DMfSDwvZ','q291BgqGBM90ihjLC29SDMuGAg9ZDa','y29TCgXLDgvK','lunVBw1HBMq','zgvUBY5QC29U','zw50CMLLCW','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','lMPZ','y3DK','Dg9VBhm','yxv0AfjLCxvPCMvK','Bg9HzenVBw1HBMq','cGOTls0kcG','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','yxjNCW','mtK4lJe4lJaUma','BgLUzuvUza','DgHPBMTPBMC','A2LSBgvK','ue9tva','AgfZ','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','CxvLCNK','y29UzMLN','zgLHz25VC3rPy3m','CMLWz3jLCcbMywLSzwq6ia','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','uefusa','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','C29YDa','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','Dg9VBe5HBwu','C3rYAw5NAwz5','rMLSzvjLywq','Aw5FChjVz3jLC3m','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','B3bLBMfPlxjLC3bVBNnLCW','rMLSzsb3CML0DgvUigf0ia','y29Kzq','AgLNAa','CgfJA2fNzxm','z29uB0rLzMLUAxrPB24','z2v0','zg9JDw1LBNrtEw1IB2W','zgvMyxvSDen3za','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','lNbUzW','yxnPzgu','B3bLBKzPBgvZ','yxv0BW','y2HHBMDL','Aw1Hz2uVz2LM','zMLUzfjLzMvYzw5Jzxm','CgLWzq','Aw5JBhvKzv9KB21HAw5Z','zgf0zvjLC3rYAwn0','t1bftLjpvvrfuL9bueLFs0vz','B25LCNjVCG','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','Dg9VBfjLC3vSDhm','oIbPzcbYzxf1AxjLza','lcbpChrPB24G','r0LgodLH','BgL0zxjHBa','BgLUAW','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','zgvZy3jPChrPB24','Bw9VBNnOB3q','lNrTCc4','ls1WCMvMAxG','Cgf0Aa','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','yM0Ynq','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','yxbWzw5K','tg9HzgvKigzYB206ia','Dg9ju09tDhjPBMC','zw5K','y21KlMv4zq','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','B3bLCMf0Aw9U','Dw5RBM93BG','C2v0vg9KB3m','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','C2LNBMfS','C3rHCNq','C3vIyxjYyxK','uxvLC3rPB24G','BgLUzq','C2L0ztO','vg9WAwmGC2v0ihrVici','u2L6ztOG','C25PChbLDa','zxzLCNK','Dgv4Da','zg9TywLUCW','ChjVy2vZCW','CMvXDwvZDa','yxnJAwK','Aw52ywXPzf90B2rVx3n0yxr1CW','ignOyxjZigrYB3bWzwrDcG','AxrLBxm','y2HPBgq','DxrTx2nVBNrLBNq','y29UC3rYDwn0B3i','DxnLCM5HBwu','yxjNDw1LBNrZvgv4Da','C3rKzxjY','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','yMfZzw5HBwu','icHZDgf0Dxm6ia','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','tM8GC3LTyM9SCYbMB3vUza','l3vZCI9IAw4VCMC','ndbbseHYrxO','z2nSAwq','CgfJA2fNzu5HBwu','CgvUzgLUzW','mty5lJi1nc4WlJa','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','yMvHCMvY','B2C6DxbKyxrLzf90Aw1L','lM51DMLU','mti1tKjYC1vN','zxjYB3i','zxHPDa','zgLZy292zxj5u3rHDgu','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','revfueLorLjbx0fqsv9lrvK','tuLnrtOG','BwLU','w01duca','Aw1Hz2uVCg5N','zM9VDgvY','CMvHza','yxjNDw1LBNriAw50','zMLUywXnzxnZywDL','zgvSzwDHDgvKlxj1BI0','D2HLCMuGCMC','ls1MB2XSB3C','AxneAxjLy3rVCNK'];_0x2ed3=function(){return _0x38a3a2;};return _0x2ed3();}function createRunSummary(_0x203c48){const _0x4129f9={_0x376317:0x5e,_0x4384cf:0x61,_0x3cc8b6:0x40a,_0x272e06:0x535,_0x21181e:0x526,_0x115848:0x1b3,_0x2d69ec:0x1b0,_0x253f9e:0x27e,_0x270d25:0x21b,_0x30b7b9:0x14e,_0x504e20:0x5c,_0x3eacd1:0x12f,_0x26314b:0x162,_0x4cc451:0x510,_0x36afd0:0x516},_0x295fd9={_0x159390:0x192},_0x2bab25={_0x3c8299:0x52,_0xe736af:0x70};function _0x53f8e1(_0x485fb0,_0x4ac112,_0x115015,_0xa6bfed){return _0x257320(_0x485fb0-_0x2bab25._0x3c8299,_0x4ac112-0x111,_0x485fb0-_0x2bab25._0xe736af,_0x115015);}function _0xf4886e(_0x348409,_0x409e7a,_0x461eec,_0x1fd42a){return _0x257320(_0x348409-_0x295fd9._0x159390,_0x409e7a-0x41,_0x348409- -0x4ff,_0x1fd42a);}return{'runId':_0x203c48[_0xf4886e(_0x4129f9._0x376317,0xad,_0x4129f9._0x4384cf,0x78)],'agentId':_0x203c48[_0x53f8e1(_0x4129f9._0x3cc8b6,0x394,0x2aa,_0x4129f9._0x272e06)],'sessionId':_0x203c48[_0x53f8e1(0x34d,0x3fb,0x48d,0x481)],'status':_0x203c48['status'],'parentSessionId':_0x203c48[_0x53f8e1(_0x4129f9._0x21181e,0x4a6,0x4b8,0x64e)],..._0x203c48[_0xf4886e(-0x143,-0x4b,-_0x4129f9._0x115848,-_0x4129f9._0x2d69ec)]!==void 0x0?{'originToolCallId':_0x203c48['originToolCallId']}:{},..._0x203c48[_0xf4886e(-0x1f2,-0x1f5,-_0x4129f9._0x253f9e,-_0x4129f9._0x270d25)]!==void 0x0?{'errorMessage':_0x203c48[_0x53f8e1(0x37d,0x22f,0x37d,0x425)]}:{},..._0x203c48[_0xf4886e(0x23,0x184,_0x4129f9._0x30b7b9,-_0x4129f9._0x504e20)]?.[_0xf4886e(-0x93,-_0x4129f9._0x3eacd1,0x1,-_0x4129f9._0x26314b)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x203c48['result'][_0x53f8e1(0x4dc,_0x4129f9._0x4cc451,_0x4129f9._0x36afd0,0x388)])}:{}};}function createRunSummaryOutput(_0x36a0ad,_0x294a28){const _0xe2cfb7={_0x1b6fc5:0x14e,_0x5a7824:0x20c,_0x568262:0x26f,_0x1c46c9:0x14d,_0x39e83b:0x2c3,_0x4ef0cf:0x3e1,_0x45d5a4:0x14a},_0x418cd4={_0x266653:0x91,_0x3cb621:0x1a6};function _0x5bac04(_0x303472,_0x3ecdb7,_0x2751a1,_0x376dd6){return _0x257320(_0x303472-0x123,_0x3ecdb7-0x1a2,_0x2751a1- -0x3cb,_0x3ecdb7);}function _0x126e02(_0x4a7488,_0x2d8bed,_0x1594ac,_0x59a74b){return _0x3342ed(_0x4a7488-_0x418cd4._0x266653,_0x2d8bed,_0x4a7488- -0x1d2,_0x59a74b-_0x418cd4._0x3cb621);}const _0x21f2bd=createRunSummary(_0x36a0ad),_0x420942=_0x21f2bd[_0x5bac04(0x22,0x268,_0xe2cfb7._0x1b6fc5,_0xe2cfb7._0x5a7824)];return createToolOutput(typeof _0x420942===_0x5bac04(0x22b,_0xe2cfb7._0x568262,_0xe2cfb7._0x1c46c9,0x29)&&_0x420942[_0x126e02(_0xe2cfb7._0x39e83b,_0xe2cfb7._0x4ef0cf,_0xe2cfb7._0x45d5a4,0x2ca)]>0x0?_0x420942:_0x294a28,_0x21f2bd);}function getRunTerminalErrorMessage(_0x57baf7){const _0x5a7588={_0x27af91:0x427,_0x52ea29:0x108,_0x5aa768:0x344,_0x249d4a:0xb5},_0x451bef={_0x284260:0x14d},_0x3f501d={_0x42ae7f:0xa1};function _0x4c49a7(_0x350566,_0x251a03,_0x1a0473,_0x4c4211){return _0x257320(_0x350566-0x151,_0x251a03-_0x3f501d._0x42ae7f,_0x4c4211- -0xdb,_0x251a03);}const _0x4eaffc=_0x57baf7?.['state'][_0x4c49a7(0x2dc,0x233,_0x5a7588._0x27af91,0x33f)]['at'](-0x1);if(_0x4eaffc?.['status']===_0x5b619c(0x3b7,0x298,0x1a5,0x283)&&_0x4eaffc[_0x5b619c(0x4b,0x271,0xca,_0x5a7588._0x52ea29)]['trim']()[_0x5b619c(0x21a,0x413,0x215,_0x5a7588._0x5aa768)]>0x0)return _0x4eaffc[_0x4c49a7(0x11b,0xd0,_0x5a7588._0x249d4a,0x20a)];function _0x5b619c(_0x487655,_0xa79ade,_0x3bebd0,_0x5ae02c){return _0x3342ed(_0x487655-0xba,_0x487655,_0x5ae02c- -0x151,_0x5ae02c-_0x451bef._0x284260);}return void 0x0;}function formatAbortedRunMessage(_0x5b1da3,_0x17cd33){const _0x5168db={_0x493e30:0x4b2,_0x2562d3:0x68c,_0xb5a8ae:0x57b,_0x187c58:0x24e,_0x43bb96:0xc9,_0x47bd6b:0x2a9,_0x282ca5:0x3fb,_0x12ca76:0x19b,_0x3294f8:0x2ce},_0x1f4328={_0x488d17:0x197,_0x18c6f7:0x18d},_0x30d599={_0x4a9446:0x3c},_0x2690de=_0x28c6c2(_0x5168db._0x493e30,_0x5168db._0x2562d3,_0x5168db._0xb5a8ae,0x6e3)+_0x5b1da3+_0x342584(0x363,0x279,_0x5168db._0x187c58,0x3ae);if(!_0x17cd33||_0x17cd33[_0x342584(_0x5168db._0x43bb96,0xaa,-0x14,0xb7)]()[_0x342584(0x34d,0x308,_0x5168db._0x47bd6b,_0x5168db._0x282ca5)]===0x0||_0x17cd33===_0x2690de)return _0x2690de;function _0x28c6c2(_0x10d925,_0x34bdf1,_0xd4bf7e,_0x3b39fe){return _0x257320(_0x10d925-0x11d,_0x34bdf1-_0x30d599._0x4a9446,_0xd4bf7e-0x1db,_0x34bdf1);}function _0x342584(_0x1a54da,_0x52065d,_0x32aeff,_0x1c1c59){return _0x3342ed(_0x1a54da-_0x1f4328._0x488d17,_0x32aeff,_0x52065d- -_0x1f4328._0x18c6f7,_0x1c1c59-0x41);}return _0x2690de+_0x342584(0x7e,_0x5168db._0x12ca76,_0x5168db._0x3294f8,0x2d3)+_0x17cd33;}function createAssignTaskTool(_0x470130){const _0x2637a6={_0x10d0f2:0x5b7,_0xc6743:0x47c,_0x38fe45:0x47f,_0x11855d:0x3f0,_0x181e64:0x209,_0x42b87b:0xe1,_0x39ef80:0x14,_0x5b4a1e:0x1b3,_0x2ff099:0xe6,_0x34fcef:0x406,_0x2b5f61:0x31e,_0x238955:0x4e6,_0x22e4ec:0x288,_0x33d4ab:0x28d,_0x4f5fcc:0x30f,_0x2b586b:0x3fa,_0x29d0c8:0xf1},_0x42e1f4={_0x525acf:0x5c,_0x202f85:0x3d,_0x11a580:0x15,_0x2137d4:0x34a,_0x582350:0x3cc,_0x520ace:0x3fb,_0xe85414:0x3c7,_0x5eb9d7:0x45d,_0x33c33f:0x203,_0xedd309:0x151,_0x1c6d51:0x11b,_0x5c4900:0x3f3,_0x252166:0x94,_0x5c544a:0xdc,_0x37ada4:0xfd,_0x2f72ef:0x42,_0x1be2d7:0x7f,_0xe161be:0x5f6,_0xeafc48:0x489,_0x1f71f2:0x393,_0xdf0956:0x354,_0x221f8e:0x2cd,_0x287865:0x15e,_0x21ff4a:0x494,_0x2aee84:0x3fb,_0x1a427b:0x525,_0x37eaa0:0x315,_0x3ff695:0x434,_0x2da4b7:0x526,_0x167882:0x540,_0x341c04:0x645,_0x573026:0x6f,_0x21df51:0x29,_0x3b286a:0x147,_0x306ad0:0x64c,_0xee694f:0x553,_0x2bd8c3:0x3e9,_0x54cfba:0x367,_0x150825:0x3e4,_0x35e81b:0x35,_0x56b5dc:0x4df,_0x4c200f:0x47f,_0x19e03e:0x53d,_0x11f1e9:0x9,_0x108a4a:0x10b,_0x232246:0x2d2,_0x2e060f:0x39,_0x3f9447:0x1b,_0x2aa206:0x1f,_0x1c15cc:0x14b,_0x539298:0x1f,_0x2092af:0x501,_0x1873ad:0x48f,_0x34bb49:0x128,_0x21d4dd:0x240,_0x6a0a93:0x5cd,_0x246cb4:0x4e0,_0x5c2690:0x5e3,_0x18feb8:0x173,_0x5bea96:0x1c7,_0x28caed:0x1d9,_0x2278f4:0xbc,_0x35d052:0x1bc,_0x5f05d3:0x21e,_0x5e6f89:0x1b6,_0x43b75d:0x266,_0x4f9f58:0x1ae,_0x87809c:0xdd,_0x48a6df:0x2b1,_0x4500ba:0x1a4,_0x49b0fe:0x284,_0x276716:0x128,_0x1d0907:0x99,_0x210cde:0xf,_0x3d798b:0x5de,_0x28fae3:0x725,_0x25aa49:0x5f4,_0x3b3eec:0x502},_0x47d533={_0x4bf4b8:0x79,_0x4e6ebe:0x29d},_0x184842={_0x2c564b:0x86,_0x38d6c1:0xb1};function _0x4ecb8a(_0x3ba551,_0x4c4ebc,_0x31dbfb,_0x391833){return _0x3342ed(_0x3ba551-0xf2,_0x31dbfb,_0x4c4ebc- -_0x184842._0x2c564b,_0x391833-_0x184842._0x38d6c1);}function _0x3da8cd(_0x4a9458,_0x3b3099,_0x766ca5,_0x5922cc){return _0x257320(_0x4a9458-0xb9,_0x3b3099-0x1d0,_0x5922cc- -0x3d6,_0x4a9458);}return defineTool({'name':_0x4ecb8a(_0x2637a6._0x10d0f2,_0x2637a6._0xc6743,_0x2637a6._0x38fe45,_0x2637a6._0x11855d),'description':_0x4ecb8a(_0x2637a6._0x181e64,0x31d,0x439,0x42e),'inputSchema':{'type':_0x3da8cd(-_0x2637a6._0x42b87b,-_0x2637a6._0x39ef80,-_0x2637a6._0x5b4a1e,-_0x2637a6._0x2ff099),'properties':{'agentId':{'type':'string'},'description':{'type':'string'},'nickname':{'type':_0x4ecb8a(0x3b7,_0x2637a6._0x34fcef,_0x2637a6._0x2b5f61,_0x2637a6._0x238955)},'task':{'type':_0x3da8cd(0x181,0x22a,0x15e,0x142)}},'required':[_0x4ecb8a(0x1cc,_0x2637a6._0x22e4ec,_0x2637a6._0x33d4ab,0x2a4),_0x4ecb8a(0x2cd,_0x2637a6._0x4f5fcc,0x2a1,_0x2637a6._0x2b586b),_0x3da8cd(_0x2637a6._0x29d0c8,0x26b,0x8,0x17c)]},async *'execute'(_0x3958a1,_0x283d1a){const _0x1676bf={_0x4f9b5d:0x122,_0x3277f6:0x1ad,_0x45db6f:0x33,_0x146414:0x42,_0x5104a4:0xa3,_0x427607:0x20b,_0xe44714:0xb7,_0x32f20a:0x14b},_0x1e57ad={_0x3a604b:0x1ac,_0x3a2f6f:0xd6},_0x3392d8={_0x307262:0xce},_0x46764c={_0x3d3bb6:0xbc},_0x202a1c=createDelegatedRunId(),_0x4129c0={'agentId':_0x3958a1[_0x17b033(0x9e,-_0x42e1f4._0x525acf,-_0x42e1f4._0x202f85,-_0x42e1f4._0x11a580)],'parentSessionId':_0x283d1a[_0x3fb9aa(_0x42e1f4._0x2137d4,_0x42e1f4._0x582350,0x544,0x290)],'runId':_0x202a1c,..._0x283d1a[_0x3fb9aa(0x40e,_0x42e1f4._0x520ace,_0x42e1f4._0xe85414,_0x42e1f4._0x5eb9d7)]!==void 0x0?{'toolCallId':_0x283d1a[_0x17b033(-_0x42e1f4._0x33c33f,-_0x42e1f4._0xedd309,-_0x42e1f4._0x1c6d51,-0xa3)]}:{}};function _0x17b033(_0x3c1ad8,_0x2b7531,_0x575680,_0x2e27cc){return _0x4ecb8a(_0x3c1ad8-_0x47d533._0x4bf4b8,_0x2e27cc- -_0x47d533._0x4e6ebe,_0x3c1ad8,_0x2e27cc-0x1ee);}const _0x48f691=getDelegatedAgentDefinition(_0x470130,_0x3958a1[_0x3fb9aa(0x3ba,0x489,_0x42e1f4._0x5c4900,0x4fd)]);if(!_0x48f691)throw new ToolExecutionError(_0x17b033(_0x42e1f4._0x252166,_0x42e1f4._0x5c544a,-0x73,0x81)+_0x3958a1[_0x17b033(_0x42e1f4._0x37ada4,-_0x42e1f4._0x2f72ef,-_0x42e1f4._0x1be2d7,-0x15)],{'agentId':_0x3958a1[_0x3fb9aa(_0x42e1f4._0xe161be,_0x42e1f4._0xeafc48,0x51d,_0x42e1f4._0x1f71f2)]});const _0x2eb64f=new Agent(await resolveDelegatedAgentOptions(_0x48f691,_0x4129c0));let _0x3a914d={'runId':_0x202a1c,'agentId':_0x3958a1[_0x3fb9aa(0x5b5,0x489,0x438,_0x42e1f4._0xdf0956)],'sessionId':_0x2eb64f[_0x3fb9aa(0x31e,0x3cc,0x4d9,_0x42e1f4._0x221f8e)],'status':_0x17b033(0x1c1,0x2c3,0x1d9,_0x42e1f4._0x287865),'parentSessionId':_0x283d1a['sessionId'],..._0x283d1a[_0x3fb9aa(_0x42e1f4._0x21ff4a,_0x42e1f4._0x2aee84,0x2d8,0x3d7)]!==void 0x0?{'originToolCallId':_0x283d1a[_0x3fb9aa(_0x42e1f4._0x1a427b,0x3fb,_0x42e1f4._0x37eaa0,_0x42e1f4._0x3ff695)]}:{}};const _0x5e7e8b=new AbortController();function _0x3fb9aa(_0x4988a4,_0x5e7044,_0x28e5ef,_0x351dc1){return _0x4ecb8a(_0x4988a4-_0x46764c._0x3d3bb6,_0x5e7044-0x201,_0x28e5ef,_0x351dc1-0xfd);}const _0x2ac7dc=addAbortListener(_0x283d1a[_0x3fb9aa(0x4ea,_0x42e1f4._0x2da4b7,_0x42e1f4._0x167882,_0x42e1f4._0x341c04)],()=>{function _0x100137(_0x217f6b,_0x1ed32f,_0x363b58,_0x435849){return _0x17b033(_0x435849,_0x1ed32f-0xdf,_0x363b58-_0x3392d8._0x307262,_0x217f6b- -0xb2);}function _0xcb2815(_0x5077da,_0x5b8803,_0x5ef7c6,_0x70ec7){return _0x17b033(_0x5077da,_0x5b8803-_0x1e57ad._0x3a604b,_0x5ef7c6-_0x1e57ad._0x3a2f6f,_0x5b8803- -0x8b);}_0x5e7e8b[_0x100137(-_0x1676bf._0x4f9b5d,-0x47,-0xed,-_0x1676bf._0x3277f6)](_0x283d1a[_0x100137(-0x2a,-_0x1676bf._0x45db6f,-_0x1676bf._0x146414,_0x1676bf._0x5104a4)]?.[_0xcb2815(_0x1676bf._0x427607,_0x1676bf._0xe44714,_0x1676bf._0x32f20a,0x179)]);});yield createToolOutput(_0x17b033(_0x42e1f4._0x573026,_0x42e1f4._0x573026,-0x121,-_0x42e1f4._0x21df51)+_0x3a914d[_0x17b033(0x1d5,_0x42e1f4._0x3b286a,0x227,0x1ae)]+'.',{'runId':_0x3a914d[_0x3fb9aa(0x56d,_0x42e1f4._0x306ad0,_0x42e1f4._0xee694f,0x533)],'agentId':_0x3a914d[_0x3fb9aa(_0x42e1f4._0x2bd8c3,0x489,_0x42e1f4._0x54cfba,_0x42e1f4._0x150825)],'sessionId':_0x3a914d[_0x17b033(-0x15d,_0x42e1f4._0x35e81b,0x38,-0xd2)],'status':_0x3a914d[_0x3fb9aa(_0x42e1f4._0x56b5dc,_0x42e1f4._0x4c200f,_0x42e1f4._0x19e03e,0x358)]});try{const _0x2c1b2b=await _0x2eb64f[_0x17b033(0x2c,_0x42e1f4._0x11f1e9,-_0x42e1f4._0x108a4a,-0xf2)](_0x3958a1[_0x17b033(_0x42e1f4._0x232246,0x2fa,0xda,0x1a3)],{'signal':_0x5e7e8b['signal']});_0x3a914d={..._0x3a914d,'status':_0x2c1b2b[_0x17b033(_0x42e1f4._0x2e060f,-0x162,_0x42e1f4._0x3f9447,-_0x42e1f4._0x2aa206)],'result':_0x2c1b2b};if(_0x2c1b2b[_0x17b033(-0x3e,-0x57,-_0x42e1f4._0x1c15cc,-_0x42e1f4._0x539298)]!=='completed'){const _0x56c297=getRunTerminalErrorMessage(_0x2c1b2b),_0x137526=formatAbortedRunMessage(_0x3a914d[_0x3fb9aa(0x791,0x64c,0x5b2,0x734)],_0x56c297);throw new ToolExecutionError(_0x137526,{...createRunSummary(_0x3a914d),'aborted':!![],'errorMessage':_0x137526});}return createRunSummaryOutput(_0x3a914d,_0x3fb9aa(_0x42e1f4._0x2092af,_0x42e1f4._0x1873ad,0x371,0x5a5)+_0x3a914d[_0x17b033(0x1ff,_0x42e1f4._0x34bb49,_0x42e1f4._0x21d4dd,0x1ae)]+_0x3fb9aa(_0x42e1f4._0x6a0a93,0x562,_0x42e1f4._0x246cb4,_0x42e1f4._0x5c2690));}catch(_0xab99e9){if(_0xab99e9 instanceof ToolExecutionError)throw _0xab99e9;if(isAbortError(_0xab99e9)||_0x5e7e8b['signal'][_0x17b033(_0x42e1f4._0x18feb8,_0x42e1f4._0x5bea96,0x335,_0x42e1f4._0x28caed)]||_0x283d1a['signal'][_0x17b033(0x16c,0x103,0x317,_0x42e1f4._0x28caed)]){const _0x5e5a95=getRunTerminalErrorMessage(_0x3a914d['result'])??(_0xab99e9 instanceof Error?_0xab99e9[_0x17b033(_0x42e1f4._0x2278f4,_0x42e1f4._0x35d052,_0x42e1f4._0x5f05d3,_0x42e1f4._0x5e6f89)]:String(_0xab99e9)),_0x30d4f3=formatAbortedRunMessage(_0x3a914d[_0x17b033(0x27c,0x86,_0x42e1f4._0x43b75d,_0x42e1f4._0x4f9f58)],_0x5e5a95);_0x3a914d={..._0x3a914d,'status':'aborted','errorMessage':_0x30d4f3};throw new ToolExecutionError(_0x30d4f3,{...createRunSummary(_0x3a914d),'aborted':!![],'errorMessage':_0x30d4f3});}const _0x264b2f=getRunTerminalErrorMessage(_0x3a914d[_0x17b033(0x37,_0x42e1f4._0x87809c,_0x42e1f4._0x48a6df,0x173)])??(_0xab99e9 instanceof Error?_0xab99e9[_0x17b033(_0x42e1f4._0x4500ba,0x2cb,_0x42e1f4._0x49b0fe,0x1b6)]:String(_0xab99e9))??_0x17b033(-_0x42e1f4._0x276716,-_0x42e1f4._0x1d0907,0x134,-_0x42e1f4._0x210cde)+_0x3a914d[_0x3fb9aa(_0x42e1f4._0x3d798b,_0x42e1f4._0x306ad0,0x675,_0x42e1f4._0x28fae3)]+_0x3fb9aa(0x605,_0x42e1f4._0x25aa49,_0x42e1f4._0x3b3eec,0x728);_0x3a914d={..._0x3a914d,'status':_0x3fb9aa(0x4c6,0x5d4,0x5a1,0x565),'errorMessage':_0x264b2f};throw new ToolExecutionError(_0x264b2f,{...createRunSummary(_0x3a914d),'errorMessage':_0x264b2f});}finally{_0x2ac7dc();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x2bb304){return[createAssignTaskTool(_0x2bb304)];}import*as _0x558871 from'path';function buildDescription2(_0x1bb8b9){const _0x3f6712={_0x1a1b83:0x3a,_0x331b7d:0x231,_0x56046c:0x200,_0x36d1da:0x146,_0x4848cf:0x117,_0x556ef2:0x83,_0x4edcb6:0x78,_0x5a5a80:0x15,_0x42cc75:0x261,_0x5e2199:0x145,_0x13f9d2:0x284,_0x4a3d78:0x2a2,_0x18f43e:0x2f3,_0x42030d:0x1f5},_0x438d61={_0x558336:0x1d1,_0x1b720d:0x116,_0x1f8468:0x345};function _0x423563(_0xbfa310,_0x9246c8,_0x27d092,_0x5bb63b){return _0x257320(_0xbfa310-0x10a,_0x9246c8-0x66,_0x27d092- -0x462,_0x9246c8);}function _0x1e2f5e(_0x4d6e21,_0xcee53a,_0xdf1cc6,_0x32387c){return _0x257320(_0x4d6e21-_0x438d61._0x558336,_0xcee53a-_0x438d61._0x1b720d,_0xcee53a- -_0x438d61._0x1f8468,_0xdf1cc6);}if(_0x1bb8b9[_0x423563(0x203,-_0x3f6712._0x1a1b83,0xbf,_0x3f6712._0x331b7d)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';const _0x5a008a=['Load\x20a\x20skill\x20to\x20get\x20detailed\x20instructions\x20for\x20a\x20specific\x20task.',_0x423563(-0x255,-_0x3f6712._0x56046c,-_0x3f6712._0x36d1da,-0xb4),_0x1e2f5e(-0x150,-0x47,_0x3f6712._0x4848cf,_0x3f6712._0x556ef2),_0x423563(-0x1c1,-0x10,-_0x3f6712._0x4edcb6,_0x3f6712._0x5a5a80),..._0x1bb8b9[_0x423563(-0x1e3,-_0x3f6712._0x42cc75,-_0x3f6712._0x5e2199,-_0x3f6712._0x13f9d2)](_0x45124e=>'-\x20'+_0x45124e['name']+':\x20'+_0x45124e[_0x423563(0xa9,-0x48,-0x41,0xde)])];return _0x5a008a[_0x1e2f5e(_0x3f6712._0x4a3d78,0x17d,_0x3f6712._0x18f43e,_0x3f6712._0x42030d)]('\x0a');}function createLoadSkillTool(_0x31b20f){const _0x41f370={_0xa0e37f:0xea,_0x235196:0x7f,_0x9a2764:0xa7,_0x35504d:0x1c3,_0xdfa4da:0x16,_0x52263f:0x20b,_0x392e2c:0x126,_0xa834a4:0x5,_0x4fb5b5:0x94,_0x3205f9:0x348,_0x125bba:0x1f0,_0x5d575a:0x2c1,_0x31cf80:0x232,_0x43e774:0x68,_0x51ba6e:0x2f8},_0x23cb39={_0x3859d2:0x618,_0x366335:0x3ac,_0x2d4d57:0x4de,_0xd7d98b:0x6ea,_0x466316:0x463,_0x43b098:0x63b,_0x46a8b6:0x514,_0x129935:0x59e,_0x43bfa8:0x640,_0x1f6cc3:0x711,_0x74c137:0x724,_0x5b7484:0x6f3,_0x5a7f25:0x563,_0x4e8756:0x5ba,_0x5d7700:0x71c,_0x61518f:0x43b,_0x27fec8:0x84a,_0x326cf8:0x7f0,_0x2f905b:0x659,_0x5a2aed:0x58d,_0x41a9f5:0x64b,_0x46faf8:0x6b3,_0x3b0393:0x7c2,_0x2f5da7:0x70d,_0x515704:0x580,_0x342933:0x666,_0x54528c:0x3aa,_0x4a1780:0x40f,_0x494504:0x507,_0x53d782:0x60b,_0x5319d5:0x56c,_0x109ea2:0x50e,_0x1d9baf:0x64d,_0x900cd8:0x5c1,_0x10b6a5:0x4ad,_0x3e5e87:0x701,_0x37787b:0x70a,_0x2bea27:0x87a,_0x5aa2b3:0x303,_0x5bd247:0x55c},_0xb518d4={_0x5a65f4:0x182},_0x234681={_0x2c40e2:0x1c,_0x3cb0ad:0x2e6},_0x1f0952={_0x54ab7e:0x91},_0x3b5799=new Map(_0x31b20f[_0x4c0d41(0x25e,-0x19,_0x41f370._0xa0e37f,-_0x41f370._0x235196)][_0x2cd2fc(-0x2b9,-0x109,-_0x41f370._0x9a2764,-_0x41f370._0x35504d)](_0x911749=>[_0x911749['name'],_0x911749])),_0x475190=buildDescription2(_0x31b20f[_0x4c0d41(0x98,_0x41f370._0xdfa4da,0xea,_0x41f370._0x52263f)]);function _0x2cd2fc(_0x44b217,_0x37ed7d,_0x5a6688,_0x8f8495){return _0x3342ed(_0x44b217-0xa4,_0x44b217,_0x8f8495- -0x454,_0x8f8495-_0x1f0952._0x54ab7e);}function _0x4c0d41(_0x2d3efc,_0xef2eed,_0x23564d,_0x1b5438){return _0x257320(_0x2d3efc-_0x234681._0x2c40e2,_0xef2eed-0x122,_0x23564d- -_0x234681._0x3cb0ad,_0xef2eed);}return defineTool({'name':_0x2cd2fc(0xff,-0xb4,-_0x41f370._0x392e2c,-_0x41f370._0xa834a4),'description':_0x475190,'inputSchema':{'type':_0x2cd2fc(-_0x41f370._0x4fb5b5,-0x2c9,-_0x41f370._0x3205f9,-_0x41f370._0x125bba),'properties':{'name':{'type':_0x4c0d41(0x110,_0x41f370._0x5d575a,_0x41f370._0x31cf80,0x261)}},'required':[_0x2cd2fc(-_0x41f370._0x43e774,-0x1bf,-_0x41f370._0x51ba6e,-0x1b4)]},async *'execute'(_0x31ac72){const _0xf3c770={_0x274300:0x69,_0x417f85:0x574},_0x1cf032=_0x3b5799[_0x20972d(_0x23cb39._0x3859d2,0x473,0x4ec,_0x23cb39._0x366335)](_0x31ac72[_0x6e59e3(_0x23cb39._0x2d4d57,0x71c,_0x23cb39._0xd7d98b,0x5ba)]);if(!_0x1cf032){const _0x49f49e=Array[_0x20972d(0x6c6,0x4f7,0x557,_0x23cb39._0x466316)](_0x3b5799[_0x6e59e3(0x5f6,_0x23cb39._0x43b098,_0x23cb39._0x46a8b6,_0x23cb39._0x129935)]())[_0x6e59e3(0x7e8,_0x23cb39._0x43bfa8,0x7dd,0x750)](',\x20');throw new ToolExecutionError(_0x6e59e3(0x78e,_0x23cb39._0x1f6cc3,_0x23cb39._0x74c137,0x623)+_0x31ac72[_0x6e59e3(_0x23cb39._0x5b7484,_0x23cb39._0x5a7f25,0x5e8,_0x23cb39._0x4e8756)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x49f49e,{'name':_0x31ac72['name']});}const _0x1b6748=await _0x31b20f[_0x6e59e3(0x501,0x749,0x64f,0x61f)](_0x1cf032);function _0x6e59e3(_0x3e954e,_0x8bd2bd,_0x29240a,_0x15f8e7){return _0x4c0d41(_0x3e954e-_0xf3c770._0x274300,_0x3e954e,_0x15f8e7-_0xf3c770._0x417f85,_0x15f8e7-0x14d);}const _0x5dde39=_0x1cf032[_0x6e59e3(0x5c0,_0x23cb39._0x5d7700,0x5e1,0x658)][_0x20972d(_0x23cb39._0x61518f,0x409,0x570,0x473)]??_0x558871[_0x6e59e3(_0x23cb39._0x27fec8,0x7c1,0x7dc,_0x23cb39._0x326cf8)](_0x1cf032[_0x6e59e3(_0x23cb39._0x2f905b,0x5e7,0x711,0x658)][_0x6e59e3(_0x23cb39._0x5a2aed,0x619,_0x23cb39._0x41a9f5,_0x23cb39._0x46faf8)]),_0xab3d58=[_0x6e59e3(_0x23cb39._0x3b0393,_0x23cb39._0x2f5da7,_0x23cb39._0x515704,_0x23cb39._0x342933)+_0x1b6748[_0x20972d(0x361,_0x23cb39._0x54528c,_0x23cb39._0x4a1780,_0x23cb39._0x494504)],'',_0x1b6748['instructions'],'',_0x6e59e3(0x7d2,0x6a0,_0x23cb39._0x53d782,0x737),_0x20972d(0x43b,_0x23cb39._0x5319d5,_0x23cb39._0x109ea2,_0x23cb39._0x1d9baf)+_0x1cf032[_0x20972d(0x4e1,_0x23cb39._0x900cd8,_0x23cb39._0x10b6a5,0x4e9)][_0x6e59e3(_0x23cb39._0x3e5e87,0x699,_0x23cb39._0x37787b,0x6b3)],'Base\x20directory:\x20'+_0x5dde39][_0x6e59e3(_0x23cb39._0x2bea27,0x639,0x67d,0x750)]('\x0a');yield createToolOutput(_0xab3d58,{'id':_0x1b6748['id'],'name':_0x1b6748[_0x20972d(_0x23cb39._0x5aa2b3,0x519,0x40f,_0x23cb39._0x5bd247)],'path':_0x1cf032['source']['path'],'baseDirectory':_0x5dde39});function _0x20972d(_0x3fe179,_0x2895ff,_0x3032b3,_0x430917){return _0x4c0d41(_0x3fe179-_0xb518d4._0x5a65f4,_0x3fe179,_0x3032b3-0x3c9,_0x430917-0x15c);}return void 0x0;}});}var TODO_STATUSES=new Set([_0x3342ed(0x50c,0x4ef,0x3cc,0x25f),_0x257320(0x4ee,0x32a,0x401,0x444),_0x257320(0x4ec,0x4a5,0x3df,0x4b3)]),TODO_PRIORITIES=new Set([_0x3342ed(0x41b,0x266,0x37a,0x443),_0x257320(0x403,0x1e1,0x326,0x336),_0x3342ed(0x634,0x580,0x4c1,0x5bc)]);function isTodoStatus(_0x114061){const _0x24ec01={_0x4c2051:0x2ca,_0x430f2a:0x402,_0x35c291:0x428,_0x1a3ea1:0x58e,_0x1765d6:0x399},_0x256993={_0x385405:0x1c2};function _0x135943(_0x2539d6,_0x33ad46,_0xfcea13,_0x2a3eb6){return _0x257320(_0x2539d6-0x1ad,_0x33ad46-0x12e,_0xfcea13-0x118,_0x2539d6);}function _0x5e7ba0(_0x1d3860,_0x4e2fac,_0x56f4c1,_0x522880){return _0x3342ed(_0x1d3860-0x13f,_0x56f4c1,_0x4e2fac- -_0x256993._0x385405,_0x522880-0x47);}return typeof _0x114061===_0x5e7ba0(0x231,_0x24ec01._0x4c2051,_0x24ec01._0x430f2a,0x191)&&TODO_STATUSES[_0x135943(_0x24ec01._0x35c291,_0x24ec01._0x1a3ea1,0x50a,_0x24ec01._0x1765d6)](_0x114061);}function isTodoPriority(_0x4bca48){return typeof _0x4bca48==='string'&&TODO_PRIORITIES['has'](_0x4bca48);}var TodoStore=class{['todosBySession']=new Map();[_0x257320(0x46f,0x586,0x4a8,0x4fc)](_0xaa640d){const _0x15a77e={_0x2008bf:0x194,_0x4302e7:0x217};function _0x1b7ad6(_0x577268,_0x59bb6c,_0x482377,_0x57af3f){return _0x257320(_0x577268-0x197,_0x59bb6c-_0x15a77e._0x2008bf,_0x482377- -_0x15a77e._0x4302e7,_0x577268);}return this['todosBySession'][_0x1b7ad6(0x112,0x254,0x1f2,0x1f5)](_0xaa640d)??[];}[_0x257320(0x38b,0x4ed,0x433,0x344)](_0x593ce1,_0x435397){const _0x1f79c7={_0x2214b0:0x12e,_0x1135c4:0x8f,_0x4a69e1:0x8e,_0x5eb458:0x131},_0x1adbff={_0x514086:0x1b9,_0x3cb575:0x23d},_0x56ec37={_0x487062:0x1a4};function _0x298d46(_0x28562c,_0x58d8c1,_0x505377,_0x1c1eb3){return _0x3342ed(_0x28562c-_0x56ec37._0x487062,_0x1c1eb3,_0x505377- -0x352,_0x1c1eb3-0x15a);}function _0x20bf06(_0x247da5,_0x48c85f,_0x1f9fa5,_0x3e4c41){return _0x257320(_0x247da5-_0x1adbff._0x514086,_0x48c85f-0x50,_0x3e4c41- -_0x1adbff._0x3cb575,_0x247da5);}this[_0x20bf06(_0x1f79c7._0x2214b0,_0x1f79c7._0x1135c4,0x139,0x116)][_0x298d46(-0xfb,-_0x1f79c7._0x4a69e1,-_0x1f79c7._0x5eb458,-0x13a)](_0x593ce1,_0x435397);}[_0x3342ed(0x34c,0x392,0x238,0x390)](_0x39617c){const _0x111624={_0x1d762c:0xeb,_0x1d9f11:0x124,_0x3d0f67:0x117,_0x264727:0x204,_0x244708:0xdf,_0x106202:0x181,_0x29200b:0x3d,_0x5a22ad:0x105,_0x5c9686:0x4a,_0x44a506:0x85,_0x4053e5:0x13d,_0x48e170:0xb6},_0x47f7ce={_0x17f15b:0x6},_0x37e09a={_0x50b286:0x1c3},_0x257321=this[_0x86f67a(_0x111624._0x1d762c,_0x111624._0x1d9f11,0x13,-0x51)](_0x39617c);function _0x2b265f(_0x219933,_0x34017b,_0x6c2bb6,_0x783eff){return _0x3342ed(_0x219933-_0x37e09a._0x50b286,_0x219933,_0x6c2bb6- -0x2d1,_0x783eff-0xed);}function _0x86f67a(_0x4a7ff7,_0x4a78ea,_0x49b996,_0x1e650){return _0x257320(_0x4a7ff7-0x15,_0x4a78ea-_0x47f7ce._0x17f15b,_0x49b996- -0x495,_0x1e650);}const _0x507961={'total':_0x257321['length'],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0x34f0c5 of _0x257321){if(_0x34f0c5[_0x86f67a(-_0x111624._0x3d0f67,-_0x111624._0x264727,-0x105,-0x215)]==='pending')_0x507961[_0x86f67a(-_0x111624._0x244708,-_0x111624._0x106202,-_0x111624._0x29200b,-0x7c)]+=0x1;else{if(_0x34f0c5[_0x86f67a(-0x209,-0xc3,-_0x111624._0x5a22ad,-0x1d9)]===_0x86f67a(_0x111624._0x5c9686,-_0x111624._0x44a506,-0x94,-0x52))_0x507961['inProgress']+=0x1;else _0x507961[_0x86f67a(-0x6e,-_0x111624._0x4053e5,-_0x111624._0x48e170,0x7c)]+=0x1;}}return _0x507961;}};function validateTodos(_0x385e53){const _0x173561={_0x2713d5:0x4b9,_0x239d41:0x4ee,_0x167c55:0x614,_0x2b8221:0x739,_0x3c0d75:0x71d,_0x468547:0x3d8,_0x2eec79:0x412,_0x1b8da2:0x35f,_0x466773:0x2b3,_0x1ba374:0x5c0,_0x23f596:0x64a,_0x52cdfd:0x570,_0x5315b0:0x1e6,_0xad58cc:0x705,_0x56d7c9:0x68c,_0x1ab917:0x62e,_0x28c501:0x707,_0x2c37b8:0x4df,_0x41b743:0x5b7,_0x49ee9b:0x535,_0x57c583:0x528,_0x10a133:0x4c9,_0x85ec2e:0x63e,_0x4c3862:0x83e,_0x5f02ac:0x372,_0x2b926c:0x3b3,_0xb3bf0a:0x4ba,_0x3680a7:0x4d6,_0x3ed2d2:0x667,_0xbbd5f0:0x641,_0x56690d:0x5f6,_0x10a0b1:0x54d,_0x23fcf8:0x51d,_0x1f210a:0x505,_0x51dae4:0x6c5,_0x383d15:0x41f,_0x53165c:0x417,_0x20e62d:0x32f,_0x5e46d9:0x41d,_0x2ed338:0x56b,_0x2d35b9:0x49e,_0x3a32c2:0x482,_0x2bacbf:0x562,_0xd62ebd:0x372,_0xa79889:0x2f3,_0xd2320b:0x322,_0x2d2048:0x560,_0x22778a:0x4d1,_0x322618:0x61c,_0x17369c:0x517,_0x363b28:0x412,_0x5ed057:0x493,_0x128f42:0x3ef,_0xe71c37:0x24d,_0x24dd7d:0x5e1,_0xbb3e7:0x72d,_0x57295f:0x791,_0x2c4be0:0x6d1,_0x49a9cb:0x557,_0x305ac4:0x4e2},_0x3d24fe={_0x2565fb:0x87,_0x28f537:0xf1},_0x27dc44={_0x47d4c9:0x34};if(!Array['isArray'](_0x385e53[_0x26464d(_0x173561._0x2713d5,_0x173561._0x239d41,0x3cd,_0x173561._0x167c55)])||_0x385e53['todos'][_0x26464d(_0x173561._0x2b8221,0x74f,0x83b,_0x173561._0x3c0d75)]===0x0)throw new ToolExecutionError(_0x573d18(_0x173561._0x468547,0x293,0x320,_0x173561._0x2eec79),{'error':'invalid_todos'});function _0x573d18(_0x1f5351,_0x3ed124,_0x49c279,_0x49454e){return _0x3342ed(_0x1f5351-0x25,_0x49454e,_0x1f5351-0x12b,_0x49454e-_0x27dc44._0x47d4c9);}for(let _0x47567c=0x0;_0x47567c<_0x385e53[_0x573d18(_0x173561._0x1b8da2,0x391,0x340,_0x173561._0x466773)][_0x573d18(_0x173561._0x1ba374,_0x173561._0x23f596,0x50e,_0x173561._0x52cdfd)];_0x47567c+=0x1){const _0x2f6018=_0x385e53[_0x573d18(_0x173561._0x1b8da2,0x496,0x410,_0x173561._0x5315b0)][_0x47567c];if(!_0x2f6018||typeof _0x2f6018!=='object')throw new ToolExecutionError('Todo\x20'+(_0x47567c+0x1)+_0x26464d(0x7bb,_0x173561._0xad58cc,_0x173561._0x56d7c9,0x76d),{'error':_0x573d18(_0x173561._0x1ab917,_0x173561._0x28c501,_0x173561._0x2c37b8,0x558)});if(typeof _0x2f6018['id']!==_0x573d18(_0x173561._0x41b743,0x492,_0x173561._0x49ee9b,_0x173561._0x57c583)||_0x2f6018['id'][_0x26464d(_0x173561._0x10a133,0x4f1,0x609,_0x173561._0x85ec2e)]()[_0x26464d(0x858,0x74f,_0x173561._0x4c3862,0x7ed)]===0x0)throw new ToolExecutionError(_0x573d18(_0x173561._0x5f02ac,_0x173561._0x2b926c,_0x173561._0xb3bf0a,0x221)+(_0x47567c+0x1)+_0x26464d(_0x173561._0x3680a7,0x649,0x685,_0x173561._0x3ed2d2),{'error':_0x26464d(_0x173561._0xbbd5f0,_0x173561._0x56690d,0x743,_0x173561._0x10a0b1)});if(typeof _0x2f6018[_0x573d18(0x59c,_0x173561._0x23fcf8,0x566,_0x173561._0x1f210a)]!==_0x573d18(_0x173561._0x41b743,0x5c5,0x5fb,0x493)||_0x2f6018['content']['trim']()[_0x26464d(_0x173561._0x51dae4,0x74f,0x6b6,0x667)]===0x0)throw new ToolExecutionError(_0x26464d(0x60f,0x501,_0x173561._0x383d15,0x3ef)+(_0x47567c+0x1)+_0x573d18(_0x173561._0x53165c,0x4e5,0x2c2,_0x173561._0x20e62d),{'error':_0x573d18(0x3fa,0x468,_0x173561._0x5e46d9,0x375)});if(!isTodoStatus(_0x2f6018[_0x26464d(0x448,0x5be,_0x173561._0x2ed338,_0x173561._0x2d35b9)]))throw new ToolExecutionError(_0x573d18(_0x173561._0x5f02ac,0x256,0x434,_0x173561._0x3a32c2)+(_0x47567c+0x1)+':\x20invalid\x20status',{'error':_0x26464d(0x5a0,0x674,_0x173561._0x2bacbf,0x61a)});if(!isTodoPriority(_0x2f6018[_0x573d18(0x444,0x328,0x30c,0x343)]))throw new ToolExecutionError(_0x573d18(_0x173561._0xd62ebd,0x245,_0x173561._0xa79889,_0x173561._0xd2320b)+(_0x47567c+0x1)+_0x573d18(_0x173561._0x2d2048,_0x173561._0x22778a,0x56a,0x5cd),{'error':_0x26464d(_0x173561._0x322618,_0x173561._0x17369c,_0x173561._0x363b28,_0x173561._0x5ed057)});}function _0x26464d(_0x2d4078,_0x4a6999,_0x236c09,_0x320877){return _0x257320(_0x2d4078-_0x3d24fe._0x2565fb,_0x4a6999-_0x3d24fe._0x28f537,_0x4a6999-0x22e,_0x236c09);}const _0x4c8dee=_0x385e53[_0x573d18(_0x173561._0x1b8da2,0x3e8,_0x173561._0x128f42,_0x173561._0xe71c37)][_0x26464d(0x584,0x54b,_0x173561._0x24dd7d,0x4f8)](_0x13d53d=>_0x13d53d['id']);if(new Set(_0x4c8dee)[_0x26464d(0x78d,_0x173561._0xbb3e7,_0x173561._0x57295f,_0x173561._0x2c4be0)]!==_0x4c8dee['length'])throw new ToolExecutionError(_0x26464d(0x655,_0x173561._0x49a9cb,_0x173561._0x305ac4,0x612),{'error':'duplicate_todo_ids'});}function createStatsProgress(_0x51046e){const _0x563570={_0x17b968:0x1e1,_0x373cbc:0x494,_0x4a8ba1:0x3f0,_0x508e76:0x3c6,_0x50f03b:0x343,_0x343418:0x45a},_0x1d36a7={_0xf0b19f:0x5e},_0x1b8da7={_0x29a626:0x1a,_0x538387:0x162};function _0x3073e5(_0x329d28,_0x35510d,_0x361f0,_0x238afd){return _0x257320(_0x329d28-0xe0,_0x35510d-_0x1b8da7._0x29a626,_0x329d28-_0x1b8da7._0x538387,_0x238afd);}function _0x5f12f7(_0xeb064a,_0x5537c3,_0x2d4c20,_0x3646a6){return _0x3342ed(_0xeb064a-0x1ac,_0x5537c3,_0x2d4c20-0x73,_0x3646a6-_0x1d36a7._0xf0b19f);}return _0x51046e[_0x5f12f7(0x2a6,_0x563570._0x17b968,0x343,_0x563570._0x373cbc)]>0x0?Math['round'](_0x51046e[_0x5f12f7(0x292,_0x563570._0x4a8ba1,_0x563570._0x508e76,0x3da)]/_0x51046e[_0x5f12f7(0x1df,0x47e,_0x563570._0x50f03b,_0x563570._0x343418)]*0x64)+'%':'0%';}function createReminderItems(_0x3be10c){const _0x492acb={_0x3ccefb:0x3},_0x4d759e={_0x280982:0x11,_0x40171f:0x1be};function _0x5d799e(_0x4a3ad9,_0xb5f847,_0x36379a,_0x1981bd){return _0x257320(_0x4a3ad9-_0x4d759e._0x280982,_0xb5f847-0x13c,_0x36379a- -_0x4d759e._0x40171f,_0xb5f847);}function _0x3864dc(_0x166078,_0x5aeb0d,_0x1a37cf,_0x2854f4){return _0x257320(_0x166078-0x83,_0x5aeb0d-_0x492acb._0x3ccefb,_0x166078- -0x37c,_0x5aeb0d);}return _0x3be10c['map'](_0x5d0430=>({'content':_0x5d0430[_0x5d799e(0x3f3,0x1f3,0x33f,0x233)],'status':_0x5d0430[_0x3864dc(0x14,-0x133,0x18,0x113)],'id':_0x5d0430['id']}));}function createStructuredResult(_0xc749e,_0x1a3994,_0x1d2856,_0x226f4d){const _0x20a54e={_0x1ca1ad:0x2e7,_0x1e0760:0x395,_0x5808be:0x646,_0x3a6026:0x4eb,_0x140a18:0x564},_0x2235c5={_0x26c15a:0x2c4},_0x39a266={_0x4722a8:0x56};function _0x38fd39(_0x3ca0ab,_0x3a5089,_0x1939c8,_0x28160c){return _0x3342ed(_0x3ca0ab-0x37,_0x28160c,_0x3a5089-_0x39a266._0x4722a8,_0x28160c-0x1);}function _0x22f9a0(_0x298c51,_0x35784a,_0x34ddb5,_0x1dbf92){return _0x3342ed(_0x298c51-0x102,_0x35784a,_0x1dbf92-_0x2235c5._0x26c15a,_0x1dbf92-0x82);}return{'allCompleted':_0x226f4d,'items':_0x1a3994[_0x38fd39(0x1ae,_0x20a54e._0x1ca1ad,0x350,_0x20a54e._0x1e0760)](_0x5d0e26=>({'id':_0x5d0e26['id'],'content':_0x5d0e26['content'],'status':_0x5d0e26[_0x38fd39(0x330,0x35a,0x252,0x329)],'priority':_0x5d0e26[_0x38fd39(0x366,0x36f,0x2d7,0x37b)],'createdAt':_0x5d0e26['createdAt']})),'progress':createStatsProgress(_0x1d2856),'recentChanges':!![],'sessionId':_0xc749e,'stats':_0x1d2856,'todosWritten':_0x1a3994[_0x38fd39(_0x20a54e._0x5808be,_0x20a54e._0x3a6026,_0x20a54e._0x140a18,0x599)]};}function createOutputText(_0x39e48c,_0x4702ab){const _0x45bd70={_0x56d440:0x24f,_0x4e8fd6:0xd0,_0x3b0980:0x115,_0x3ae949:0xe,_0x3ec6fa:0x2c5,_0x151e7e:0x33c,_0x3406c4:0x1ca,_0x34e052:0xe7,_0x4fa870:0x59,_0x4673d7:0xaa,_0xb0989c:0x223},_0x4dd26e={_0x1d4910:0x326},_0x5b9f99=JSON[_0x576b24(0xa9,0x12c,0xd9,_0x45bd70._0x56d440)](createReminderItems(_0x39e48c));function _0x576b24(_0x32af8e,_0x24965d,_0x461995,_0x56d877){return _0x257320(_0x32af8e-0x1e0,_0x24965d-0x12a,_0x461995- -_0x4dd26e._0x1d4910,_0x32af8e);}if(_0x4702ab)return _0x576b24(-_0x45bd70._0x4e8fd6,_0x45bd70._0x3b0980,-_0x45bd70._0x3ae949,-0x180)+_0x39e48c[_0x5bc631(0x1d0,_0x45bd70._0x3ec6fa,0x372,0x2b5)]+_0x5bc631(0x16d,0x1c8,_0x45bd70._0x151e7e,_0x45bd70._0x3406c4)+_0x5b9f99+_0x576b24(_0x45bd70._0x34e052,-0x77,-_0x45bd70._0x4fa870,_0x45bd70._0x4673d7);function _0x5bc631(_0x2b5c33,_0x5bd0ca,_0x76e127,_0x19decc){return _0x3342ed(_0x2b5c33-0x8e,_0x5bd0ca,_0x19decc- -0x1e0,_0x19decc-0x166);}return _0x576b24(0xdf,0x145,_0x45bd70._0xb0989c,0x391)+_0x5b9f99+'.\x0a</system-reminder>';}function createTodoWriteTool(_0x502e81=new TodoStore()){const _0xa7c212={_0x4d0d24:0x342,_0x2ee872:0x43f,_0x5b4f5a:0x3f3,_0x224307:0x337,_0x4f0d95:0x4d0,_0xdc5edf:0x47d,_0x3cef08:0x8cf,_0x1b4dbc:0x75e,_0x2b1b40:0x631,_0x50b413:0x70b,_0x11363a:0x869,_0x5dc3a7:0x747,_0x562dd2:0x6f9,_0x118f15:0x5d6,_0xccc3c0:0xf4,_0x2c290d:0x8b,_0x3933fe:0xfe,_0x11c7c8:0x9d,_0x3e6f27:0xad},_0x525dc8={_0x47afd2:0x39b,_0x42669e:0x3c9,_0x4ab926:0x360,_0x4180b5:0x59f,_0x5c17f4:0x654,_0x3fde0b:0x102,_0x6aa88f:0x37e,_0x2fb54f:0x327,_0xa16e70:0x24e,_0x244b64:0x4f1,_0x38458b:0x50c,_0x1117bb:0x591,_0x283e5d:0x10b,_0x3f1df7:0x4fe,_0x26d446:0x50b,_0x3b6780:0x526},_0x3df715={_0x42d2fd:0x31b},_0x5c9aaf={_0x36f0cb:0x84,_0x1181dd:0x187};function _0x47a34e(_0x42b957,_0x5c2356,_0xfea24f,_0x54cb2c){return _0x3342ed(_0x42b957-0x5e,_0x42b957,_0x54cb2c-0x2d2,_0x54cb2c-0xfa);}function _0x356985(_0x53aad5,_0x263f7a,_0x2290fa,_0x4486ae){return _0x3342ed(_0x53aad5-_0x5c9aaf._0x36f0cb,_0x53aad5,_0x2290fa- -_0x5c9aaf._0x1181dd,_0x4486ae-0x6a);}return defineTool({'name':_0x356985(0x29b,_0xa7c212._0x4d0d24,0x2a2,0x34f),'description':_0x356985(_0xa7c212._0x2ee872,_0xa7c212._0x5b4f5a,_0xa7c212._0x224307,0x38b),'inputSchema':{'type':'object','properties':{'todos':{'type':'array','items':{'type':_0x47a34e(_0xa7c212._0x4f0d95,0x3e5,_0xa7c212._0xdc5edf,0x536),'properties':{'content':{'type':_0x47a34e(0x795,0x795,_0xa7c212._0x3cef08,_0xa7c212._0x1b4dbc)},'status':{'type':'string'},'priority':{'type':_0x47a34e(_0xa7c212._0x2b1b40,0x7f9,_0xa7c212._0x50b413,0x75e)},'id':{'type':'string'},'createdAt':{'type':'string'}},'required':[_0x47a34e(0x80e,_0xa7c212._0x11363a,0x76a,0x743),_0x47a34e(_0xa7c212._0x5dc3a7,_0xa7c212._0x562dd2,0x55b,_0xa7c212._0x118f15),_0x356985(0x2b7,_0xa7c212._0xccc3c0,0x192,_0xa7c212._0x2c290d),'id']}}},'required':[_0x356985(_0xa7c212._0x3933fe,-_0xa7c212._0x11c7c8,_0xa7c212._0x3e6f27,0x16f)]},async *'execute'(_0x5578ec,_0x15712a){const _0x288fd6={_0xad1a9a:0x7b,_0xe7f6d7:0xc0};function _0x334439(_0x5f0cf6,_0x36846a,_0x424e1e,_0x4096e6){return _0x356985(_0x4096e6,_0x36846a-0x85,_0x36846a- -_0x3df715._0x42d2fd,_0x4096e6-0x177);}function _0x2f8067(_0x14fb43,_0x5d5db4,_0x2c3a98,_0x2e3287){return _0x47a34e(_0x5d5db4,_0x5d5db4-_0x288fd6._0xad1a9a,_0x2c3a98-_0x288fd6._0xe7f6d7,_0x14fb43- -0x188);}const _0x599c75=_0x5578ec;validateTodos(_0x599c75);const _0x5470c1=_0x15712a[_0x2f8067(_0x525dc8._0x47afd2,_0x525dc8._0x42669e,_0x525dc8._0x4ab926,0x341)]||_0x2f8067(_0x525dc8._0x4180b5,0x475,_0x525dc8._0x5c17f4,0x6b9),_0x2cab01=new Date()[_0x334439(-0x67,-_0x525dc8._0x3fde0b,-0x97,-0x17d)](),_0x204562=_0x599c75[_0x2f8067(_0x525dc8._0x6aa88f,_0x525dc8._0x2fb54f,_0x525dc8._0xa16e70,0x2f4)]['map'](_0x1d53c1=>({'id':_0x1d53c1['id'],'content':_0x1d53c1[_0x2f8067(0x5bb,0x556,0x4b1,0x728)],'status':_0x1d53c1['status'],'priority':_0x1d53c1['priority'],'sessionId':_0x5470c1,'createdAt':_0x1d53c1['createdAt']||_0x2cab01,'updatedAt':_0x2cab01}));_0x502e81[_0x2f8067(_0x525dc8._0x244b64,_0x525dc8._0x38458b,_0x525dc8._0x1117bb,0x594)](_0x5470c1,_0x204562);const _0x5b35b2=_0x502e81[_0x334439(-0x2c1,-0x26a,-0x358,-_0x525dc8._0x283e5d)](_0x5470c1),_0x4b1d02=_0x204562['length']>0x0&&_0x204562[_0x2f8067(_0x525dc8._0x3f1df7,_0x525dc8._0x26d446,0x446,_0x525dc8._0x3b6780)](_0x48338f=>_0x48338f[_0x2f8067(0x44e,0x521,0x5c4,0x3d7)]===_0x2f8067(0x49d,0x615,0x532,0x60d));return createToolOutput(createOutputText(_0x204562,_0x4b1d02),createStructuredResult(_0x5470c1,_0x204562,_0x5b35b2,_0x4b1d02));}});}import{mkdir as _0x5c1398,writeFile as _0xab4737}from'fs/promises';import*as _0xa4fdd2 from'path';function sanitizeFileName(_0x1e6333){return _0x1e6333['replace'](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x2f59a8,_0x72cefb){const _0x52f1d1={_0x1ea881:0x23,_0x58ab22:0xb,_0x416b99:0x8a,_0x10aaf0:0x10e,_0x4d409b:0x28a,_0x4f7db8:0x2a2,_0x14650b:0x63,_0x49aa37:0x139,_0x13d291:0x17,_0x2a8a69:0xcc,_0x44ec14:0x94,_0x1c7ead:0x109,_0x37f45c:0x48,_0x27a442:0x101,_0x289be4:0x335,_0x2b9b73:0x2b9,_0x4c8273:0x1bf,_0x431c15:0x107,_0x9f9c63:0x128,_0x47895e:0x144,_0x5d643b:0x170,_0x6839f7:0x173,_0x42abca:0x72,_0x1f7028:0x92,_0x45c480:0x8d,_0x16a65f:0x8a,_0x2eef13:0x32,_0x48b2b6:0x2c,_0x24381c:0x10,_0x2110ba:0xc6,_0xea1a8d:0x32,_0x20703c:0x22f,_0x42a44a:0x126,_0x39fdc5:0x109,_0x5c2af6:0x20,_0x1f536f:0xb3,_0x598b64:0x73,_0x45e20c:0x3a,_0x3fd4c4:0x345,_0x426119:0x275,_0x542ae1:0x342,_0x17ec97:0x15f,_0x57505a:0xb2,_0x5760f8:0xa5,_0x539862:0x2,_0x2bd85e:0x1b6,_0xd777b1:0xa5,_0xb67f37:0x19f,_0x2ce09b:0xf9,_0x3d5652:0x24c,_0x31e76e:0x361,_0x53b156:0x31f,_0x5a98dd:0x112,_0x5383d8:0x245,_0x3ecdf5:0xe4,_0x46efcb:0x1f,_0x5200ab:0xf2,_0x2da865:0x3d,_0x345154:0xbf,_0x1a3add:0x70},_0x3b52ad={_0x15290b:0x24e},_0x4b6e50={_0x4a4408:0x1d1,_0x12efbc:0x37f},{maxBytes:_0xbbeac5,sessionDir:_0x5d6115}=_0x72cefb;function _0x4b254b(_0x1b1191,_0x144270,_0x53f7ad,_0x405649){return _0x3342ed(_0x1b1191-_0x4b6e50._0x4a4408,_0x144270,_0x53f7ad- -_0x4b6e50._0x12efbc,_0x405649-0x1e4);}if(!_0x2f59a8[_0x186150(-_0x52f1d1._0x1ea881,_0x52f1d1._0x58ab22,0x9b,_0x52f1d1._0x416b99)]||Buffer[_0x186150(0x6c,-0x38,-0x185,_0x52f1d1._0x10aaf0)](_0x2f59a8[_0x4b254b(-0xaf,-0x253,-0x126,-0x242)],_0x186150(0x10f,0x26a,0x1ac,_0x52f1d1._0x4d409b))<=_0xbbeac5)return _0x2f59a8;function _0x186150(_0xe31233,_0x1976ab,_0x3630ea,_0x17e895){return _0x3342ed(_0xe31233-0x51,_0x17e895,_0x1976ab- -_0x3b52ad._0x15290b,_0x17e895-0x1a4);}const _0x56d1e7=Buffer['byteLength'](_0x2f59a8['output'],_0x4b254b(_0x52f1d1._0x4f7db8,_0x52f1d1._0x14650b,_0x52f1d1._0x49aa37,-_0x52f1d1._0x13d291));if(!_0x5d6115){const _0x157d69=_0x2f59a8['output'][_0x4b254b(_0x52f1d1._0x2a8a69,_0x52f1d1._0x44ec14,_0x52f1d1._0x1c7ead,0x223)](0x0,_0xbbeac5);return{..._0x2f59a8,'output':_0x157d69+(_0x4b254b(0xf3,_0x52f1d1._0x37f45c,0x14d,_0x52f1d1._0x27a442)+_0xbbeac5+_0x186150(_0x52f1d1._0x289be4,0x2ad,_0x52f1d1._0x2b9b73,_0x52f1d1._0x4c8273)+_0x56d1e7+_0x4b254b(-_0x52f1d1._0x431c15,-_0x52f1d1._0x9f9c63,0x15,_0x52f1d1._0x47895e)),'meta':{..._0x2f59a8['meta'],'truncated':!![],'originalBytes':_0x56d1e7,'transforms':[..._0x2f59a8[_0x4b254b(-_0x52f1d1._0x5d643b,-_0x52f1d1._0x6839f7,-0x112,-_0x52f1d1._0x42abca)][_0x186150(-0xe3,_0x52f1d1._0x1f7028,-_0x52f1d1._0x45c480,0x1d)],_0x186150(-0x9e,_0x52f1d1._0x16a65f,0x1e0,_0x52f1d1._0x2eef13)]}};}const _0x84828b=_0x2f59a8[_0x186150(-_0x52f1d1._0x48b2b6,0x124,_0x52f1d1._0x24381c,-0x50)]+'_'+sanitizeFileName(_0x2f59a8['callId'])+'.log',_0x15ee99=_0xa4fdd2['join'](_0x5d6115,_0x84828b);await _0x5c1398(_0x5d6115,{'recursive':!![]}),await _0xab4737(_0x15ee99,_0x2f59a8[_0x4b254b(-0x68,-_0x52f1d1._0x2110ba,-0x126,_0x52f1d1._0xea1a8d)],'utf8');let _0x51ef86=_0x2f59a8[_0x4b254b(-0x15,-_0x52f1d1._0x20703c,-_0x52f1d1._0x42a44a,-0x98)][_0x4b254b(0x1c2,0xc0,_0x52f1d1._0x39fdc5,0x93)](0x0,_0xbbeac5);const _0x8d1b79=_0x51ef86[_0x186150(-0x160,-_0x52f1d1._0x5c2af6,0x12b,_0x52f1d1._0x1f536f)]('\x0a');_0x8d1b79>_0xbbeac5*0.5&&(_0x51ef86=_0x51ef86[_0x4b254b(_0x52f1d1._0x598b64,_0x52f1d1._0x45e20c,0x109,0x1a)](0x0,_0x8d1b79));const _0x5de94b=['',_0x186150(_0x52f1d1._0x3fd4c4,_0x52f1d1._0x426119,_0x52f1d1._0x542ae1,0x321),_0x4b254b(-_0x52f1d1._0x17ec97,-_0x52f1d1._0x57505a,-0x146,-0x17)+_0xbbeac5+_0x4b254b(_0x52f1d1._0x5760f8,-0xe,-0x92,-_0x52f1d1._0x539862)+_0x56d1e7+'\x20bytes).',_0x4b254b(-0x87,-_0x52f1d1._0x2bd85e,-0x106,-_0x52f1d1._0xd777b1)+_0x15ee99,'Use\x20FileRead\x20with\x20lineStart/lineEnd\x20to\x20inspect\x20specific\x20sections\x20of\x20the\x20full\x20output.',_0x4b254b(-_0x52f1d1._0xb67f37,-0x5e,-_0x52f1d1._0x2ce09b,-0xb6)][_0x186150(_0x52f1d1._0x3d5652,0x1e8,_0x52f1d1._0x31e76e,_0x52f1d1._0x53b156)]('\x0a');return{..._0x2f59a8,'output':_0x51ef86+_0x5de94b,'meta':{..._0x2f59a8[_0x4b254b(0x10,0x5b,-_0x52f1d1._0x5a98dd,-_0x52f1d1._0x5383d8)],'truncated':!![],'originalBytes':_0x56d1e7,'transforms':[..._0x2f59a8[_0x186150(-_0x52f1d1._0x3ecdf5,_0x52f1d1._0x46efcb,-0xc3,-_0x52f1d1._0x5200ab)][_0x186150(_0x52f1d1._0x2da865,0x92,-0x33,0x1bb)],_0x4b254b(_0x52f1d1._0x345154,-0x12c,-0xa7,-_0x52f1d1._0x1a3add)]}};}function createUpdateTopicTool(){const _0x58de35={_0x54d9a8:0x1f4,_0x58ce9f:0x8e,_0x2c59e3:0xdb,_0x89ef7c:0x2a8,_0x2c63dc:0x39d,_0x470594:0x393,_0x49e0b5:0x48f,_0x5f2b71:0x4d0,_0x19c596:0x471,_0x2070c6:0x37f,_0x3eb088:0x21c,_0x164b9a:0x49b},_0x3e5c34={_0x47951e:0x736,_0x4111b2:0x685,_0x58be14:0x649,_0x976f39:0x43a,_0x166be8:0x2c4,_0x1c13fb:0x5b4,_0xd58b24:0x6de},_0x58ae43={_0x4dfc3b:0x1d1,_0x66000b:0xf8},_0x59a7f9={_0x33da61:0x11e};function _0x2ac2f8(_0x588c31,_0x18cb32,_0x1d3ce0,_0x428862){return _0x3342ed(_0x588c31-0xdd,_0x428862,_0x1d3ce0- -0x36a,_0x428862-_0x59a7f9._0x33da61);}function _0x14e6a4(_0x4d1439,_0x357337,_0x25e488,_0x58b200){return _0x257320(_0x4d1439-_0x58ae43._0x4dfc3b,_0x357337-_0x58ae43._0x66000b,_0x357337- -0x48,_0x25e488);}return defineTool({'name':'updateTopic','description':_0x2ac2f8(_0x58de35._0x54d9a8,0x9a,_0x58de35._0x58ce9f,_0x58de35._0x2c59e3),'inputSchema':{'type':_0x14e6a4(0x2b7,_0x58de35._0x89ef7c,_0x58de35._0x2c63dc,_0x58de35._0x470594),'properties':{'topic':{'type':_0x14e6a4(_0x58de35._0x49e0b5,_0x58de35._0x5f2b71,0x3f3,_0x58de35._0x19c596)}},'required':[_0x14e6a4(0x475,_0x58de35._0x2070c6,_0x58de35._0x3eb088,_0x58de35._0x164b9a)]},async *'execute'(_0xbf3293,_0x4a34e0){const _0x1f2063={_0x342fc2:0xde},_0x16cffa={_0x37d6c1:0x1af,_0x96e29f:0x87},{topic:_0x3f2d28}=_0xbf3293;if(typeof _0x3f2d28!==_0x5c3e07(0x68f,0x7c9,0x6ef,_0x3e5c34._0x47951e)||_0x3f2d28[_0x5c3e07(0x43a,0x455,0x32e,0x31d)]()[_0x199dd4(0x18f,-0xd,0xa4,0x140)]===0x0)throw new ToolExecutionError(_0x5c3e07(_0x3e5c34._0x4111b2,0x6f4,0x757,_0x3e5c34._0x58be14),{'error':'invalid_topic'});const _0x40f524=_0x3f2d28[_0x5c3e07(_0x3e5c34._0x976f39,_0x3e5c34._0x166be8,0x47b,0x2f3)]();function _0x199dd4(_0x399493,_0x26a2a9,_0x39e0f3,_0x5974fb){return _0x2ac2f8(_0x399493-0x40,_0x26a2a9-_0x16cffa._0x37d6c1,_0x39e0f3- -_0x16cffa._0x96e29f,_0x26a2a9);}_0x4a34e0['setTopic']?.(_0x40f524),yield createToolOutput(_0x5c3e07(_0x3e5c34._0x1c13fb,0x49e,_0x3e5c34._0xd58b24,0x505)+_0x40f524+'\x22',{'topic':_0x40f524});function _0x5c3e07(_0x440c75,_0x5886a1,_0x2ecddb,_0x14ec39){return _0x14e6a4(_0x440c75-_0x1f2063._0x342fc2,_0x440c75-0x1bf,_0x5886a1,_0x14ec39-0x1de);}return void 0x0;}});}import{readFile as _0x3cc086,stat as _0x4f5e4c}from'fs/promises';import*as _0x2ad153 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x257320(0x4df,0x52d,0x410,0x4e7),_0x257320(0x431,0x392,0x406,0x436),_0x257320(0x44f,0x59b,0x54d,0x405),'original']),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x351438,_0x9294ac){const _0x2f79b1={_0x419e4e:0x545,_0x2bd9f6:0x450,_0x22ad43:0x593,_0x43909b:0x5d0,_0x2279e:0x55f,_0x1117f0:0x58d,_0x55889e:0x55a,_0x1f3679:0x536,_0x3d948f:0x5f2,_0x260d53:0x398,_0x1619f4:0x3a9,_0xdeae38:0x560,_0x3d84ad:0x4ac,_0x1ef728:0x548,_0x310078:0x480,_0x21467e:0x61f,_0x88ae8:0x587,_0x415aba:0x62f,_0x5990be:0x455,_0x9ee07:0x37b,_0x403353:0x3f6,_0x3b0241:0x6c7,_0xa2769:0x6e5,_0xb21186:0x38c,_0x17e286:0x552,_0x18b747:0x3f3,_0x35551c:0x2fc,_0x3266f4:0x65d,_0x2ccd85:0x7b9,_0x1c21b0:0x4a8,_0x5baba6:0x538,_0x489013:0x38a,_0x44aeb8:0x43a,_0x5f3f21:0x3bc,_0x6d8dd3:0x3df,_0x40fefd:0x4ef,_0x20007b:0x68e,_0x4b049b:0x3eb,_0x380574:0x2f1,_0x263d9b:0x530,_0x52e506:0x35d,_0x4a9cb2:0x3c5},_0x2ee5a={_0x3357d8:0x115,_0xe644b7:0x189,_0x140bcc:0x158},_0x2c3ca9={_0xd6bb4a:0x14b};if(_0x351438[_0x20438b(0x5de,_0x2f79b1._0x419e4e,0x536,0x5ee)](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x51ed40(_0x2f79b1._0x2bd9f6,_0x2f79b1._0x22ad43,0x624,0x6d6);if(_0x351438[0x0]===0xff&&_0x351438[0x1]===0xd8&&_0x351438[0x2]===0xff)return _0x51ed40(0x4cb,_0x2f79b1._0x43909b,_0x2f79b1._0x2279e,_0x2f79b1._0x1117f0);const _0x491115=_0x351438[_0x20438b(0x603,_0x2f79b1._0x55889e,_0x2f79b1._0x1f3679,_0x2f79b1._0x3d948f)](0x0,0x6)[_0x20438b(_0x2f79b1._0x260d53,_0x2f79b1._0x1619f4,0x46a,0x2fd)](_0x51ed40(0x655,0x570,_0x2f79b1._0xdeae38,0x539));function _0x51ed40(_0x220b93,_0x5f1f8a,_0x203da2,_0x5d8b96){return _0x257320(_0x220b93-_0x2c3ca9._0xd6bb4a,_0x5f1f8a-0x42,_0x5f1f8a-0x12b,_0x220b93);}function _0x20438b(_0x4ce1d5,_0x4af2fe,_0x5b57b7,_0x4355c6){return _0x3342ed(_0x4ce1d5-_0x2ee5a._0x3357d8,_0x4af2fe,_0x5b57b7-_0x2ee5a._0xe644b7,_0x4355c6-_0x2ee5a._0x140bcc);}if(_0x491115==='GIF87a'||_0x491115===_0x51ed40(_0x2f79b1._0x3d84ad,_0x2f79b1._0x1ef728,0x682,_0x2f79b1._0x310078))return _0x51ed40(_0x2f79b1._0x21467e,0x53d,_0x2f79b1._0x88ae8,0x426);if(_0x351438[_0x51ed40(0x67e,0x564,0x532,_0x2f79b1._0x415aba)](0x0,0x4)['toString']('ascii')===_0x20438b(_0x2f79b1._0x5990be,0x493,0x44c,0x370)&&_0x351438['subarray'](0x8,0xc)[_0x20438b(_0x2f79b1._0x9ee07,0x330,0x46a,_0x2f79b1._0x403353)](_0x51ed40(_0x2f79b1._0x3b0241,0x570,_0x2f79b1._0xa2769,0x48e))===_0x51ed40(_0x2f79b1._0xb21186,0x4a2,_0x2f79b1._0x17e286,0x42b))return _0x51ed40(0x38e,_0x2f79b1._0x18b747,_0x2f79b1._0x35551c,0x3ee);const _0x3aa319=_0x2ad153[_0x51ed40(0x787,_0x2f79b1._0x3266f4,0x602,_0x2f79b1._0x2ccd85)](_0x9294ac)['toLowerCase']();if(_0x3aa319===_0x51ed40(_0x2f79b1._0x1c21b0,0x538,_0x2f79b1._0x5baba6,0x44c))return'image/png';if(_0x3aa319===_0x51ed40(0x4d7,0x5b3,0x5d3,0x671)||_0x3aa319===_0x51ed40(_0x2f79b1._0x489013,_0x2f79b1._0x44aeb8,_0x2f79b1._0x5f3f21,_0x2f79b1._0x6d8dd3))return'image/jpeg';if(_0x3aa319==='.gif')return _0x51ed40(0x4bb,0x53d,_0x2f79b1._0x40fefd,_0x2f79b1._0x20007b);if(_0x3aa319===_0x20438b(_0x2f79b1._0x4b049b,0x5bb,0x456,_0x2f79b1._0x380574))return _0x20438b(_0x2f79b1._0x263d9b,_0x2f79b1._0x52e506,_0x2f79b1._0x4a9cb2,0x27f);return void 0x0;}function normalizeDetail(_0x4d5ef6){const _0x234db8={_0x58a542:0x32e,_0x299b80:0x35c,_0x411025:0x3c9,_0x3d558d:0x4f3,_0x33cd33:0x21f},_0x5df497={_0x18937e:0xce},_0x1da3ae={_0x2a58c5:0x10f,_0x1924ba:0x6b};if(_0x4d5ef6===void 0x0)return void 0x0;const _0x51f944=_0x4d5ef6[_0x1bc943(_0x234db8._0x58a542,0x29f,0x4a7,0x27c)]()[_0x1bc943(0x3b8,_0x234db8._0x299b80,0x28d,_0x234db8._0x411025)]();function _0x1bc943(_0x10bdb1,_0x2a18a2,_0x593ed5,_0x38ea3a){return _0x257320(_0x10bdb1-_0x1da3ae._0x2a58c5,_0x2a18a2-0xc2,_0x10bdb1-_0x1da3ae._0x1924ba,_0x38ea3a);}function _0x3c4008(_0x49ab9f,_0x395573,_0x341696,_0x2a4837){return _0x3342ed(_0x49ab9f-0x16e,_0x341696,_0x2a4837- -_0x5df497._0x18937e,_0x2a4837-0x9f);}if(!SUPPORTED_DETAILS['has'](_0x51f944))throw new ToolExecutionError(_0x1bc943(0x37e,_0x234db8._0x3d558d,_0x234db8._0x33cd33,0x3ce)+_0x4d5ef6,{'detail':_0x4d5ef6});return _0x51f944;}function createViewFileTool(_0x281af4={}){const _0x1ed4ad={_0x534db9:0x644,_0x45b3ee:0x5d5,_0x1112b3:0x589,_0x1d6ca3:0x1d4,_0x3d4b53:0x28c,_0x5f4e4d:0x15c,_0x49ed4c:0x21,_0x505d45:0xfe,_0x209f5a:0x16,_0x29dc38:0x1be,_0x2a0afd:0x8b,_0x792043:0x4ac,_0x58cc49:0x48d,_0x34a4ca:0x233,_0x4f2434:0x121,_0x3c1295:0x67,_0x39d8a7:0x698,_0x3c1808:0x5b4,_0x409490:0x114,_0x4449f7:0x1ac},_0x33f12b={_0x8fed59:0x5e7,_0x566ee6:0x6d9,_0x56c5cb:0x4fa,_0x5effd6:0x5f3,_0x157f0c:0x66e,_0x2284cc:0x50c,_0x378537:0x62d,_0x12d37a:0x5e3,_0x22abcf:0x6f4,_0x3cb67b:0x712,_0x14f786:0x701,_0x185a4c:0x672,_0x44ae5e:0x57c,_0x509f5f:0x4c1,_0x199f1e:0x4b7,_0x203245:0x773,_0x20f2b2:0x4a1,_0x3bccf0:0x5d0,_0x4ff0f9:0x561,_0x1fbbfe:0x404,_0x5f3d2a:0x7e0,_0x2b44a0:0x6b7,_0x78d332:0x6fd,_0x3be846:0x512,_0x181fcd:0x53b,_0x3da55a:0x65b,_0x4cd232:0x6fb,_0x31e8f1:0x600,_0x4eb0c7:0x5f5,_0x22aaf9:0x637,_0x1b98ff:0x6c1,_0x2e7907:0x601,_0x58b8f3:0x6ce,_0x4b9c63:0x812,_0x44cbee:0x450,_0x16a0b0:0x626,_0x41a45e:0x6ca,_0x49ca03:0x585,_0x469477:0x49f,_0x14c322:0x478,_0x4298ec:0x3e5,_0x1e9b8d:0x6cf,_0xe135bf:0x419,_0x1833c0:0x5bf,_0x1e56b9:0x450,_0x1dc9ac:0x593,_0x2e38cd:0x649,_0x15af68:0x557,_0x2536e0:0x512,_0x38aec1:0x6b5,_0x1911e9:0x50a,_0x43a2e2:0x5ee,_0x26c85b:0x79b,_0x34c6e4:0x6c4,_0x38b19c:0x6c1,_0x2124dd:0x5ce,_0x9b4d7f:0x53f,_0x2de5a5:0x4da,_0x139980:0x5c2},_0x51ebcd={_0x291d29:0x42,_0xa914f2:0x119,_0x1ca02d:0xd4},_0x11f9f0={_0x122668:0xd4,_0x49c648:0x289},_0x1deb2c={_0x491c19:0x7e,_0x29044a:0x180},_0x4b1e1d=_0x2ad153[_0x439c59(0x4dd,_0x1ed4ad._0x534db9,_0x1ed4ad._0x45b3ee,_0x1ed4ad._0x1112b3)](_0x281af4['defaultCwd']??process[_0x568cb9(_0x1ed4ad._0x1d6ca3,_0x1ed4ad._0x3d4b53,_0x1ed4ad._0x5f4e4d,0x217)]()),_0x169fde=(_0x281af4['allowedDirs']??[])[_0x568cb9(-_0x1ed4ad._0x49ed4c,_0x1ed4ad._0x505d45,0x94,0x1a0)](_0xca4193=>_0x2ad153[_0x568cb9(0x12c,0x1ba,0xd4,-0x85)](_0xca4193)),_0x5c1cb5=_0x281af4[_0x568cb9(-_0x1ed4ad._0x209f5a,_0x1ed4ad._0x29dc38,_0x1ed4ad._0x2a0afd,0x1fd)]??DEFAULT_MAX_BYTES;function _0x439c59(_0x3be4e4,_0xcd111b,_0x408286,_0x24f82c){return _0x257320(_0x3be4e4-_0x1deb2c._0x491c19,_0xcd111b-0xa5,_0x3be4e4-_0x1deb2c._0x29044a,_0x408286);}const _0x4e49e0=_0x281af4[_0x439c59(_0x1ed4ad._0x792043,_0x1ed4ad._0x58cc49,0x5f0,0x58f)]??_0x568cb9(_0x1ed4ad._0x34a4ca,0x2e,0xc7,_0x1ed4ad._0x4f2434);function _0x568cb9(_0x55e035,_0x315fb4,_0x44385e,_0x5968cc){return _0x257320(_0x55e035-_0x11f9f0._0x122668,_0x315fb4-0x11,_0x44385e- -_0x11f9f0._0x49c648,_0x55e035);}return defineTool({'name':_0x4e49e0,'description':_0x568cb9(0x3d5,0x26a,0x2d7,0x3b2),'inputSchema':{'type':_0x568cb9(-0xad,-0xb3,_0x1ed4ad._0x3c1295,-0xd1),'properties':{'path':{'type':_0x439c59(_0x1ed4ad._0x39d8a7,_0x1ed4ad._0x3c1808,0x585,0x534)},'detail':{'type':'string'}},'required':[_0x568cb9(_0x1ed4ad._0x409490,_0x1ed4ad._0x4449f7,0x19c,0x22d)]},async *'execute'(_0x4beff8){const _0xcae615={_0xd7746e:0x88},_0x1a2ad3=resolveAllowedPath(_0x4b1e1d,_0x169fde,_0x4beff8[_0x46a396(0x690,_0x33f12b._0x8fed59,_0x33f12b._0x566ee6,0x546)]);await assertWorkspaceFile(_0x1a2ad3);const _0x249349=await _0x4f5e4c(_0x1a2ad3);if(_0x249349['size']>_0x5c1cb5)throw new ToolExecutionError(_0x105d19(_0x33f12b._0x56c5cb,_0x33f12b._0x5effd6,_0x33f12b._0x157f0c,0x69b)+_0x4beff8[_0x105d19(_0x33f12b._0x2284cc,_0x33f12b._0x378537,_0x33f12b._0x12d37a,0x649)],{'path':_0x4beff8['path'],'maxBytes':_0x5c1cb5,'size':_0x249349[_0x105d19(_0x33f12b._0x22abcf,0x707,_0x33f12b._0x3cb67b,_0x33f12b._0x14f786)]});const _0x4cd974=await _0x3cc086(_0x1a2ad3),_0x11ad0f=detectImageMediaType(_0x4cd974,_0x1a2ad3);function _0x46a396(_0x3ba6ca,_0x38ebfb,_0x32a690,_0x341e8a){return _0x439c59(_0x38ebfb-_0x51ebcd._0x291d29,_0x38ebfb-_0x51ebcd._0xa914f2,_0x3ba6ca,_0x341e8a-_0x51ebcd._0x1ca02d);}if(!_0x11ad0f)throw new ToolExecutionError(_0x46a396(0x793,0x6fe,0x862,_0x33f12b._0x185a4c)+_0x4beff8[_0x46a396(_0x33f12b._0x44ae5e,_0x33f12b._0x8fed59,_0x33f12b._0x509f5f,0x562)],{'path':_0x4beff8[_0x105d19(_0x33f12b._0x199f1e,_0x33f12b._0x378537,0x503,_0x33f12b._0x203245)],'supported':['.gif','.jpeg','.jpg',_0x46a396(0x5d2,0x5cf,_0x33f12b._0x20f2b2,0x621),_0x105d19(_0x33f12b._0x3bccf0,_0x33f12b._0x4ff0f9,0x4ec,_0x33f12b._0x1fbbfe)]});const _0x2ad22c=normalizeDetail(_0x4beff8[_0x46a396(0x7ab,0x6e1,0x6e4,0x673)]),_0x1f1630=[_0x46a396(0x764,0x670,_0x33f12b._0x5f3d2a,_0x33f12b._0x2b44a0)+_0x4beff8[_0x105d19(_0x33f12b._0x78d332,0x62d,0x714,_0x33f12b._0x3be846)],_0x46a396(_0x33f12b._0x181fcd,0x627,_0x33f12b._0x3da55a,0x6a3)+_0x11ad0f,_0x46a396(_0x33f12b._0x4cd232,_0x33f12b._0x31e8f1,_0x33f12b._0x4eb0c7,0x774)+_0x249349[_0x46a396(_0x33f12b._0x22aaf9,_0x33f12b._0x1b98ff,0x585,0x6ef)]+'\x20bytes'][_0x105d19(_0x33f12b._0x2e7907,_0x33f12b._0x58b8f3,0x5c3,_0x33f12b._0x4b9c63)](_0x2ad22c?[_0x105d19(0x48a,0x5bd,_0x33f12b._0x44cbee,0x5aa)+_0x2ad22c]:[])[_0x105d19(_0x33f12b._0x16a0b0,_0x33f12b._0x41a45e,0x812,_0x33f12b._0x49ca03)]('\x0a'),_0x23348a=[{'type':_0x46a396(_0x33f12b._0x469477,0x555,_0x33f12b._0x14c322,_0x33f12b._0x4298ec),'source':{'type':'base64','media_type':_0x11ad0f,'data':_0x4cd974[_0x105d19(_0x33f12b._0x1e9b8d,0x575,0x675,_0x33f12b._0xe135bf)](_0x46a396(_0x33f12b._0x1833c0,0x4f9,0x3fd,_0x33f12b._0x1e56b9))}},{'type':_0x105d19(_0x33f12b._0x1dc9ac,_0x33f12b._0x2e38cd,0x67e,_0x33f12b._0x15af68),'text':_0x1f1630}];function _0x105d19(_0x3fca20,_0x12ed21,_0x30bcc3,_0x4d1d62){return _0x439c59(_0x12ed21-_0xcae615._0xd7746e,_0x12ed21-0xa,_0x30bcc3,_0x4d1d62-0xb6);}return yield createToolOutput(_0x1f1630,{'path':_0x4beff8[_0x105d19(0x56e,0x62d,0x6eb,_0x33f12b._0x2536e0)],'resolvedPath':_0x1a2ad3,'created':_0x249349[_0x105d19(_0x33f12b._0x38aec1,0x5e2,0x688,0x6a6)][_0x46a396(_0x33f12b._0x1911e9,_0x33f12b._0x43a2e2,0x6b6,0x748)](),'modified':_0x249349[_0x46a396(0x626,_0x33f12b._0x38aec1,0x5f4,_0x33f12b._0x26c85b)][_0x46a396(_0x33f12b._0x34c6e4,0x5ee,0x587,0x5fc)](),'size':_0x249349[_0x46a396(0x6ca,_0x33f12b._0x38b19c,_0x33f12b._0x2124dd,0x5e3)],'mimeType':_0x11ad0f,'encoding':_0x105d19(0x63d,_0x33f12b._0x9b4d7f,_0x33f12b._0x2de5a5,_0x33f12b._0x139980),..._0x2ad22c?{'detail':_0x2ad22c}:{}},_0x23348a),void 0x0;}});}import _0x5b3b49 from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x4cbeac=>{const _0x59f831={_0x459836:0x2c,_0x56fd45:0x6d,_0x3d1e3c:0x184,_0x4f7a2f:0x2db},_0x54e0d7={_0x1783a3:0x1b9,_0x5dec46:0x6d};function _0xd002df(_0x4936a1,_0x26913d,_0x293b49,_0xd40a3e){return _0x3342ed(_0x4936a1-_0x54e0d7._0x1783a3,_0x26913d,_0x293b49- -0x156,_0xd40a3e-_0x54e0d7._0x5dec46);}const {lookup:_0x5e0807}=await import(_0xd002df(_0x59f831._0x459836,_0x59f831._0x56fd45,_0x59f831._0x3d1e3c,_0x59f831._0x4f7a2f));return _0x5e0807(_0x4cbeac,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0x23a37f){const _0x5cbedc={_0x8c49a7:0x729,_0x12d7c1:0x7bd,_0x2261c5:0x5ae},_0x11bbf2={_0x31dfbc:0xb5},_0x2dc85d=_0x23a37f['split']('.');if(_0x2dc85d[_0xd696a8(_0x5cbedc._0x8c49a7,0x6b3,_0x5cbedc._0x12d7c1,0x695)]!==0x4)return null;let _0x3fe078=0x0;for(const _0x489e5f of _0x2dc85d){if(!/^\d{1,3}$/[_0xd696a8(0x688,_0x5cbedc._0x2261c5,0x6f2,0x5ec)](_0x489e5f))return null;const _0x579330=Number(_0x489e5f);if(_0x579330>0xff)return null;_0x3fe078=_0x3fe078*0x100+_0x579330;}function _0xd696a8(_0xb51f69,_0x401c9d,_0x3785bc,_0x2dc396){return _0x257320(_0xb51f69-0x10b,_0x401c9d-0x23,_0xb51f69-0x208,_0x2dc396);}function _0x1539c5(_0x414ad8,_0x5aa2bd,_0x72201e,_0x57c368){return _0x3342ed(_0x414ad8-_0x11bbf2._0x31dfbc,_0x414ad8,_0x72201e- -0x475,_0x57c368-0x1bc);}return _0x3fe078>>>0x0;}function isBlockedIpv4(_0x57ff27){const _0x3c2200={_0x5f4d7b:0x9e,_0x2ac658:0x304,_0x306f4d:0x30d,_0x5f02f4:0x15,_0x1377d9:0x1ac,_0x11d9ad:0x1a6,_0x20a3f5:0x9a,_0x57d19f:0x127,_0x239942:0x215,_0x3423a2:0x26c,_0x2b57e5:0x21d,_0x5ad86d:0x6e,_0x3cf987:0x11e,_0x127148:0x23d,_0x410626:0x1f3},_0x50acf9={_0x256cb0:0x1ee},_0x2fa44e={_0x51bf53:0x17c},_0x22671e=ipv4ToInt(_0x57ff27);if(_0x22671e===null)return!![];const _0x40a529=(_0x3c34cd,_0x1025fb)=>{const _0xc33845=ipv4ToInt(_0x3c34cd);if(_0xc33845===null)return![];const _0x286fcf=_0x1025fb===0x0?0x0:0xffffffff<<0x20-_0x1025fb>>>0x0;return(_0x22671e&_0x286fcf)===(_0xc33845&_0x286fcf);};function _0xefce3c(_0x1989e0,_0x3be66a,_0x32f753,_0x588444){return _0x3342ed(_0x1989e0-_0x2fa44e._0x51bf53,_0x32f753,_0x3be66a- -0x13c,_0x588444-0xea);}function _0x32290e(_0x3b7cd9,_0x3a1bec,_0x50ca9c,_0x4d8276){return _0x3342ed(_0x3b7cd9-0x1ae,_0x50ca9c,_0x4d8276- -0x462,_0x4d8276-_0x50acf9._0x256cb0);}return _0x40a529(_0x32290e(-0x94,-0x91,0xb2,_0x3c2200._0x5f4d7b),0x8)||_0x40a529(_0xefce3c(0x3b0,_0x3c2200._0x2ac658,0x36f,_0x3c2200._0x306f4d),0x8)||_0x40a529('100.64.0.0',0xa)||_0x40a529('127.0.0.0',0x8)||_0x40a529(_0xefce3c(0x30f,0x291,0x1cb,0x283),0x10)||_0x40a529(_0xefce3c(-_0x3c2200._0x5f02f4,0x157,_0x3c2200._0x1377d9,_0x3c2200._0x11d9ad),0xc)||_0x40a529(_0xefce3c(_0x3c2200._0x20a3f5,_0x3c2200._0x57d19f,_0x3c2200._0x239942,0x234),0x18)||_0x40a529(_0x32290e(-_0x3c2200._0x3423a2,-_0x3c2200._0x2b57e5,-_0x3c2200._0x5ad86d,-0x1e6),0x10)||_0x40a529(_0xefce3c(0xe4,0x225,_0x3c2200._0x3cf987,_0x3c2200._0x127148),0xf)||_0x40a529(_0xefce3c(_0x3c2200._0x410626,0x308,0x418,0x211),0x4)||_0x40a529(_0x32290e(0x162,0x3f,0xa4,0x73),0x4);}function expandIpv6(_0x1fe9f2){const _0x4aa5a7={_0x5d7a93:0x3b,_0x2d93c8:0x130,_0x39e31b:0x2de,_0x14c402:0x21f,_0x1a5dda:0x1f0,_0x49c315:0x2dd,_0x545052:0x152,_0x2dd1f0:0x2a3,_0x4a58f5:0x282,_0x4b94e7:0x108,_0x51d5fb:0x15f,_0x3d5ee7:0x28f,_0x2f6301:0x326,_0x4f2e58:0x28f,_0x5a208d:0x137,_0x44012c:0xd9,_0x35fa2b:0xf2,_0x4728b4:0x1ee,_0x563399:0x264,_0x45a494:0x1df,_0x2e80a3:0x28b},_0x441171={_0x41e2a3:0x1ca};let _0x3d36d8=_0x1fe9f2,_0x50fada;function _0x41410b(_0x1d8c38,_0x190f29,_0x536508,_0x5e726f){return _0x257320(_0x1d8c38-0x14f,_0x190f29-0xce,_0x190f29- -0x2f5,_0x5e726f);}function _0xe949b9(_0x22d98a,_0x40f773,_0x5bdc1f,_0x20b5ba){return _0x3342ed(_0x22d98a-_0x441171._0x41e2a3,_0x5bdc1f,_0x20b5ba- -0x206,_0x20b5ba-0x18f);}const _0x537d94=_0x3d36d8[_0x41410b(-0x47,-_0x4aa5a7._0x5d7a93,-0xf1,_0x4aa5a7._0x2d93c8)](':');_0x3d36d8[_0x41410b(_0x4aa5a7._0x39e31b,_0x4aa5a7._0x14c402,0x120,_0x4aa5a7._0x1a5dda)](_0x537d94+0x1)[_0x41410b(_0x4aa5a7._0x49c315,0x24c,_0x4aa5a7._0x545052,_0x4aa5a7._0x2dd1f0)]('.')&&(_0x50fada=_0x3d36d8[_0xe949b9(0x216,0x235,0x20a,_0x4aa5a7._0x4a58f5)](_0x537d94+0x1),_0x3d36d8=_0x3d36d8[_0x41410b(0x1ce,0x21f,0x294,_0x4aa5a7._0x4b94e7)](0x0,_0x537d94+0x1));const _0x3b9776=_0x3d36d8['split']('::');if(_0x3b9776[_0xe949b9(0x322,0x248,_0x4aa5a7._0x51d5fb,_0x4aa5a7._0x3d5ee7)]>0x2)return null;const _0x18d733=_0x1724f8=>_0x1724f8['split'](':')[_0x41410b(-0x33,0x7a,-0xf9,0xfb)](_0xa50d44=>_0xa50d44['length']>0x0)[_0xe949b9(0x1c2,0x4a,-0xe6,0x8b)](_0x172bfa=>Number[_0xe949b9(0xd,0x37,-0x119,0x3a)](_0x172bfa,0x10)),_0x5bc93b=_0x3b9776[0x0]?_0x18d733(_0x3b9776[0x0]):[],_0x315e8a=_0x3b9776[_0xe949b9(_0x4aa5a7._0x2f6301,0x173,0x1dc,_0x4aa5a7._0x4f2e58)]===0x2&&_0x3b9776[0x1]?_0x18d733(_0x3b9776[0x1]):[],_0x9c7370=[];if(_0x50fada){const _0x5d83e0=ipv4ToInt(_0x50fada);if(_0x5d83e0===null)return null;_0x9c7370[_0xe949b9(_0x4aa5a7._0x5a208d,_0x4aa5a7._0x51d5fb,0x127,_0x4aa5a7._0x44012c)](_0x5d83e0>>>0x10&0xffff,_0x5d83e0&0xffff);}const _0x38c0fd=[..._0x315e8a,..._0x9c7370],_0x14dddb=0x8-_0x5bc93b['length']-_0x38c0fd['length'];if(_0x3b9776['length']===0x1)return _0x5bc93b[_0x41410b(_0x4aa5a7._0x35fa2b,0x22c,0x2c0,0x2ae)]+_0x38c0fd[_0x41410b(_0x4aa5a7._0x4728b4,0x22c,0x243,_0x4aa5a7._0x563399)]===0x8?[..._0x5bc93b,..._0x38c0fd]:null;if(_0x14dddb<0x0)return null;return[..._0x5bc93b,...new Array(_0x14dddb)[_0x41410b(0x87,_0x4aa5a7._0x45a494,_0x4aa5a7._0x2e80a3,0x221)](0x0),..._0x38c0fd];}function isBlockedIpv6(_0x2966f0){const _0x3d8773={_0x5e7494:0x242,_0x132f86:0x314,_0x7cecda:0xac,_0x4d40b0:0x1f4},_0x309bab={_0x2bee6e:0x1f0,_0x2ce929:0xa1},_0x5d1f4a={_0x4a2cac:0x155,_0x558698:0x2b4},_0x178392=expandIpv6(_0x2966f0);function _0x34f90a(_0x1db185,_0x115851,_0x4b8de7,_0x34cccd){return _0x3342ed(_0x1db185-_0x5d1f4a._0x4a2cac,_0x1db185,_0x115851- -_0x5d1f4a._0x558698,_0x34cccd-0x112);}if(!_0x178392||_0x178392['some'](_0x5afc66=>Number[_0x34f90a(-0xa4,0x47,-0xb,0xb3)](_0x5afc66)))return!![];const _0x4e4c1b=_0x178392['slice'](0x0,0x7)['every'](_0x299a56=>_0x299a56===0x0);if(_0x4e4c1b&&(_0x178392[0x7]===0x0||_0x178392[0x7]===0x1))return!![];if(_0x178392[_0x34f90a(0x144,0x1d4,0x2f0,_0x3d8773._0x5e7494)](0x0,0x5)['every'](_0x423972=>_0x423972===0x0)&&(_0x178392[0x5]===0xffff||_0x178392[0x5]===0x0)){const _0x133e3c=(_0x178392[0x6]<<0x10|_0x178392[0x7])>>>0x0,_0x28e74e=[_0x133e3c>>>0x18&0xff,_0x133e3c>>>0x10&0xff,_0x133e3c>>>0x8&0xff,_0x133e3c&0xff][_0x53e5ea(_0x3d8773._0x132f86,0x2bb,_0x3d8773._0x7cecda,_0x3d8773._0x4d40b0)]('.');return isBlockedIpv4(_0x28e74e);}function _0x53e5ea(_0x500cd5,_0x47326c,_0x16ea46,_0x48f030){return _0x257320(_0x500cd5-_0x309bab._0x2bee6e,_0x47326c-_0x309bab._0x2ce929,_0x48f030- -0x2ce,_0x500cd5);}const _0x185071=_0x178392[0x0];if((_0x185071&0xff00)===0xfc00||(_0x185071&0xfe00)===0xfc00)return!![];if((_0x185071&0xffc0)===0xfe80)return!![];if((_0x185071&0xff00)===0xff00)return!![];return![];}function isBlockedAddress(_0x3339c4){const _0x5cf6fd=isIP(_0x3339c4);if(_0x5cf6fd===0x4)return isBlockedIpv4(_0x3339c4);if(_0x5cf6fd===0x6)return isBlockedIpv6(_0x3339c4);return!![];}async function assertPublicUrl(_0x193a5d,_0xef3fda={}){const _0x24968d={_0x20fa5f:0xf9,_0x5cb000:0x268,_0x14f0b9:0x371,_0x1013f0:0x11f,_0x365f36:0x75,_0x14df9d:0x3f0,_0x4b19be:0x4ba,_0x91124a:0x420,_0x14775d:0x347,_0x3a8705:0x2a,_0x4c34e1:0x4,_0x3efe62:0x79,_0x4ceff7:0x3af,_0x4b43eb:0x2af,_0x2ced65:0x13,_0x3f453f:0x19,_0x487ffe:0x38e,_0x45ca47:0x475,_0x34a7bc:0x322,_0x309b04:0xb4,_0xc31d9e:0x457,_0xb76dc:0x371,_0xd8ecdb:0x3e4,_0x1aabb3:0x4b1,_0x2e6421:0x464,_0x2bc15f:0x34c,_0x1013de:0x11f,_0x2dbd73:0x1d6,_0x1f9800:0x12e,_0x1b957c:0xdc,_0x407754:0x2b3,_0x17611b:0x21a,_0x2c8781:0x15d,_0x37e3c6:0x93},_0x2a9e48={_0x488664:0x1a,_0x217a82:0x30,_0x101ab6:0x184};let _0x264a97;try{_0x264a97=new URL(_0x193a5d);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x193a5d});}if(_0x264a97['protocol']!==_0x5b5104(-_0x24968d._0x20fa5f,-_0x24968d._0x5cb000,-0x159,-0xac)&&_0x264a97[_0x26b1ee(0x495,0x4e9,_0x24968d._0x14f0b9,0x39a)]!=='https:')throw new ToolExecutionError(_0x5b5104(-0x37,_0x24968d._0x1013f0,-_0x24968d._0x365f36,0x5c),{'url':_0x193a5d});if(_0x264a97[_0x26b1ee(0x34e,_0x24968d._0x14df9d,0x2e6,0x4d3)]||_0x264a97[_0x26b1ee(_0x24968d._0x4b19be,0x35c,_0x24968d._0x91124a,_0x24968d._0x14775d)])throw new ToolExecutionError(_0x5b5104(_0x24968d._0x3a8705,_0x24968d._0x4c34e1,0x101,_0x24968d._0x3efe62),{'url':_0x264a97['protocol']+'//'+_0x264a97[_0x26b1ee(_0x24968d._0x4ceff7,0x371,0x21a,_0x24968d._0x4b43eb)]+_0x264a97[_0x5b5104(0x2f,0xda,_0x24968d._0x2ced65,_0x24968d._0x3f453f)]});const _0x250b6c=_0x264a97[_0x26b1ee(_0x24968d._0x487ffe,_0x24968d._0x45ca47,0x4e3,_0x24968d._0x34a7bc)]['replace'](/^\[|\]$/g,''),_0x55dddd=_0x264a97[_0x5b5104(_0x24968d._0x309b04,0x165,0x46,0x1e0)]+'//'+_0x264a97[_0x26b1ee(_0x24968d._0xc31d9e,_0x24968d._0xb76dc,0x374,_0x24968d._0xd8ecdb)]+_0x264a97[_0x26b1ee(_0x24968d._0x1aabb3,_0x24968d._0x2e6421,_0x24968d._0x2bc15f,0x2fd)];if(isIP(_0x250b6c)){if(isBlockedAddress(_0x250b6c))throw new ToolExecutionError(_0x5b5104(-0x104,-0x205,-_0x24968d._0x1013de,-_0x24968d._0x2dbd73),{'url':_0x55dddd});return _0x264a97;}function _0x26b1ee(_0x1f2286,_0x361a8d,_0x45a76e,_0x3b5d4d){return _0x3342ed(_0x1f2286-_0x2a9e48._0x488664,_0x1f2286,_0x361a8d-_0x2a9e48._0x217a82,_0x3b5d4d-_0x2a9e48._0x101ab6);}const _0x17396f=_0xef3fda[_0x5b5104(-0x1e8,-_0x24968d._0x1f9800,-_0x24968d._0x1b957c,-_0x24968d._0x407754)]??defaultLookup;function _0x5b5104(_0x39f650,_0x6e8e8b,_0x44025b,_0x4db294){return _0x257320(_0x39f650-0x193,_0x6e8e8b-0x116,_0x39f650- -0x491,_0x44025b);}let _0x2d27af;try{_0x2d27af=await _0x17396f(_0x250b6c);}catch{throw new ToolExecutionError(_0x5b5104(-0xb3,-_0x24968d._0x17611b,-0x4b,-_0x24968d._0x2c8781),{'url':_0x55dddd});}if(_0x2d27af[_0x5b5104(0x90,-_0x24968d._0x37e3c6,0x179,0xba)]===0x0)throw new ToolExecutionError('Could\x20not\x20resolve\x20host',{'url':_0x55dddd});for(const {address:_0x1f93dc}of _0x2d27af){if(isBlockedAddress(_0x1f93dc))throw new ToolExecutionError(_0x5b5104(0x56,0x135,0x1b9,0xd1),{'url':_0x55dddd});}return _0x264a97;}async function safeFetch(_0x404075,_0x538242={},_0x2dc98b={}){const _0xf3c043={_0x33da43:0x1ae,_0x47f794:0x278,_0x35822c:0x22a,_0x3aed27:0x32e,_0x46806d:0x1c4,_0x38f96d:0x1cb,_0x3c4ca0:0x19f,_0x280bed:0x93,_0x52d3ea:0x8b,_0x55f88b:0xb9,_0x2a448b:0x246,_0x46fbe5:0x10c,_0x27e707:0x119,_0x5ad370:0x9c,_0x1f3783:0x9f,_0x2813de:0x1fe,_0x1fee98:0x31,_0x30bfbe:0x47,_0x23afea:0xfd,_0x461616:0x255,_0x520a05:0x88,_0xa6b1b3:0x2a5},_0x487003={_0xc8a0dc:0x5c},_0x5168fd={_0x4aeb47:0x90,_0x2e5e54:0xa};function _0x17bfde(_0x41105c,_0x214485,_0x178813,_0x459fce){return _0x3342ed(_0x41105c-_0x5168fd._0x4aeb47,_0x41105c,_0x178813- -0x1ec,_0x459fce-_0x5168fd._0x2e5e54);}const _0x1bb907=_0x2dc98b[_0x575c88(-0x213,-_0xf3c043._0x33da43,-_0xf3c043._0x47f794,-_0xf3c043._0x35822c)]??fetch,_0x1ef758=_0x2dc98b[_0x17bfde(_0xf3c043._0x3aed27,_0xf3c043._0x46806d,0x257,0x227)]??DEFAULT_MAX_REDIRECTS;function _0x575c88(_0x4d480c,_0x92e098,_0x4481a7,_0x4918a5){return _0x3342ed(_0x4d480c-0x6e,_0x4481a7,_0x92e098- -0x439,_0x4918a5-_0x487003._0xc8a0dc);}let _0x1a3be2=_0x404075;for(let _0x1eb99e=0x0;;_0x1eb99e+=0x1){const _0x1888f2=await assertPublicUrl(_0x1a3be2,_0x2dc98b),_0x59b464=await _0x1bb907(_0x1888f2[_0x17bfde(0x1c2,0x40,0xf5,0x6)](),{..._0x538242,'redirect':_0x17bfde(_0xf3c043._0x38f96d,_0xf3c043._0x3c4ca0,_0xf3c043._0x280bed,-_0xf3c043._0x52d3ea)}),_0x34d761=_0x59b464['headers'][_0x17bfde(_0xf3c043._0x55f88b,_0xf3c043._0x2a448b,0x191,0xa4)](_0x17bfde(_0xf3c043._0x46fbe5,_0xf3c043._0x27e707,0xe9,0x145));if(!REDIRECT_STATUSES[_0x17bfde(_0xf3c043._0x5ad370,_0xf3c043._0x1f3783,0x17a,_0xf3c043._0x2813de)](_0x59b464[_0x575c88(_0xf3c043._0x1fee98,-0x135,-0x238,-_0xf3c043._0x30bfbe)])||!_0x34d761)return _0x59b464;if(_0x1eb99e>=_0x1ef758)throw new ToolExecutionError(_0x575c88(0xe2,0x75,_0xf3c043._0x23afea,-0x64),{'url':_0x1888f2[_0x575c88(-0x11e,-0x158,-0x252,-_0xf3c043._0x461616)]()});_0x1a3be2=new URL(_0x34d761,_0x1888f2)[_0x575c88(-_0xf3c043._0x520a05,-0x158,-0x143,-_0xf3c043._0xa6b1b3)]();}}var USER_AGENT=_0x3342ed(0x406,0x31b,0x462,0x5ca),DEFAULT_TIMEOUT_MS2=0xea60;function createTimeoutSignal(_0x47b760,_0x22c956){const _0x48a442={_0x178fc0:0x378,_0x499272:0x37a,_0x5cd482:0x38c,_0x2d408e:0x3a,_0x2ebea4:0x12f,_0x355e33:0x119,_0x1541b1:0x445,_0x2d2b6f:0x39f,_0x462ae7:0x47f,_0x3f968e:0xdf},_0x2e9002={_0x1c516b:0x15f,_0x1693b2:0x21f},_0x2194f9={_0x58b5db:0x1a},_0x512af0={_0x4111eb:0x184};function _0x2aadc4(_0xf0d210,_0x302b10,_0x1c7658,_0x3586c1){return _0x3342ed(_0xf0d210-0x9c,_0xf0d210,_0x302b10- -_0x512af0._0x4111eb,_0x3586c1-0x1);}const _0x4c9b28=new AbortController(),_0x1aa9c8=setTimeout(()=>_0x4c9b28[_0x2aadc4(0x8a,0x12f,0x283,0x202)](new Error(_0x2aadc4(0x1c3,0x146,0x62,0xa3))),_0x22c956);function _0x1ee940(_0x4aa428,_0x5d844c,_0x5cd6a8,_0x12a929){return _0x3342ed(_0x4aa428-0x129,_0x5cd6a8,_0x12a929-_0x2194f9._0x58b5db,_0x12a929-0x158);}const _0x1ef471=()=>_0x4c9b28[_0x2aadc4(0x24d,0x12f,0x81,0x228)](_0x47b760[_0x2aadc4(0x173,0x2e1,0x302,0x391)]);return _0x47b760[_0x2aadc4(0x43d,_0x48a442._0x178fc0,_0x48a442._0x499272,_0x48a442._0x5cd482)]?_0x4c9b28[_0x2aadc4(_0x48a442._0x2d408e,_0x48a442._0x2ebea4,_0x48a442._0x355e33,-0x3c)](_0x47b760[_0x1ee940(_0x48a442._0x1541b1,0x3bd,_0x48a442._0x2d2b6f,_0x48a442._0x462ae7)]):_0x47b760['addEventListener'](_0x2aadc4(0x239,0x12f,_0x48a442._0x3f968e,0x9a),_0x1ef471,{'once':!![]}),{'signal':_0x4c9b28['signal'],'cleanup':()=>{clearTimeout(_0x1aa9c8);function _0x5239f6(_0x1f63f2,_0x5056a3,_0x1c1a2f,_0x455a24){return _0x2aadc4(_0x455a24,_0x5056a3- -0x28e,_0x1c1a2f-0x80,_0x455a24-0x149);}_0x47b760['removeEventListener'](_0x5239f6(0x0,-_0x2e9002._0x1c516b,-0x40,-_0x2e9002._0x1693b2),_0x1ef471);}};}function createWebFetchTool(_0x164009={}){const _0x32baba={_0x50e652:0x1a6,_0x434109:0x14d,_0xc11539:0xe5,_0x26a1f7:0x123,_0x5719c8:0xa5,_0x27ab3f:0x1f8,_0x235465:0x345,_0x293880:0x229,_0x4834d0:0x70,_0x1b3b14:0x178,_0x1bd740:0xc4,_0xffeae9:0x9b,_0x1e0bc4:0x15e,_0x7c4b3a:0x117,_0x679e5:0x24,_0x25b4c6:0xcb,_0x12ac38:0x157,_0x496098:0x10,_0x2733d3:0xc8,_0x5760dd:0x51,_0x1e54c3:0x103,_0x3803e3:0x1e2,_0x2b6f24:0x69,_0x21944f:0x14f,_0x411e87:0x11e,_0x4fec3a:0x18c,_0x2d8112:0x84,_0x2d02b2:0xc5,_0x579369:0xa7,_0x2e0506:0xf9,_0x22ed3c:0x46,_0x49c3a8:0x100,_0x2af181:0xfd},_0x428684={_0x36db00:0x405,_0x580ffe:0x349,_0x470b67:0x450,_0x5ebc6c:0x161,_0x55e8fe:0x4ac,_0x5d34ec:0x52f,_0x2c13e8:0x60b,_0x235286:0x5ff,_0x5cf4b8:0x38d,_0x5c1c97:0x2de,_0x52e42c:0x396,_0x443fb1:0x5c8,_0x27721e:0x458,_0x26cb93:0x388,_0x51dbd7:0x4bf,_0x3c13c5:0x43b,_0x36a0f7:0x564,_0x188288:0x407,_0x39bb12:0x367,_0x3daaf1:0x3f0,_0x2d5839:0x407,_0x5dbf7d:0x256,_0x48541a:0x30a,_0x1a8901:0x35a,_0x40794b:0x34a,_0x1127fa:0x29e,_0x3a4198:0x306,_0x44bb5e:0x2e1,_0x422957:0x1a5,_0x54e486:0x65e,_0x82f8bf:0x5d8,_0x1c7903:0x3a4,_0x231674:0x483,_0x4f7c71:0x306,_0xafd0ee:0x2f6,_0x112aed:0x4be,_0x3332c7:0x398,_0x6733ac:0x326,_0xcaf544:0x488,_0x46945b:0x2a3,_0xf315b6:0x699,_0x15c3ad:0x525,_0x359c28:0x385,_0x3046bc:0x22a,_0x48bcb1:0x553,_0x3fdd60:0x3ee},_0x974687={_0x485541:0x46,_0xf50f21:0xa3},_0x4cab0a={_0x5e60e2:0x106,_0x6b6933:0x26},_0x2a45ec={_0x4cf917:0x93},_0x146075={_0x2cc691:0x108},_0xb73040=_0x164009[_0x4e573e(-0x18c,-0x203,-0x1d6,-_0x32baba._0x50e652)]??_0x1e5f77(0x272,_0x32baba._0x434109,0x16b,_0x32baba._0x434109);function _0x1e5f77(_0x18a7ac,_0x3f525b,_0x5a8d5a,_0x106c9c){return _0x3342ed(_0x18a7ac-_0x146075._0x2cc691,_0x5a8d5a,_0x3f525b- -0x381,_0x106c9c-0x1e5);}const _0x10ebc5=_0x164009[_0x4e573e(-_0x32baba._0xc11539,-_0x32baba._0x26a1f7,-_0x32baba._0x5719c8,-_0x32baba._0x27ab3f)]??DEFAULT_TIMEOUT_MS2,_0x56a634=_0x164009[_0x4e573e(-0xe7,-0xde,-_0x32baba._0x235465,-_0x32baba._0x293880)];function _0x4e573e(_0x2e37a5,_0x5546f4,_0x2c7f89,_0x4cf7b4){return _0x257320(_0x2e37a5-_0x2a45ec._0x4cf917,_0x5546f4-0xb,_0x4cf7b4- -0x4d2,_0x2e37a5);}const _0x32b0c8=new _0x5b3b49({'headingStyle':_0x4e573e(_0x32baba._0x4834d0,_0x32baba._0x1b3b14,-_0x32baba._0x1bd740,_0x32baba._0xffeae9),'codeBlockStyle':'fenced','bulletListMarker':'-'});return _0x32b0c8[_0x1e5f77(-0x1d3,-0xe9,-_0x32baba._0x1e0bc4,-0x74)](['script','style',_0x1e5f77(0x19b,_0x32baba._0x7c4b3a,-_0x32baba._0x679e5,0xe3),_0x4e573e(-_0x32baba._0x25b4c6,-_0x32baba._0x12ac38,_0x32baba._0x496098,-0x26),_0x4e573e(-_0x32baba._0x2733d3,-0x11a,_0x32baba._0x5760dd,0x54),_0x4e573e(0xcf,-_0x32baba._0x1e54c3,-_0x32baba._0x3803e3,-_0x32baba._0x2b6f24),'header',_0x1e5f77(-0x75,0x1,-_0x32baba._0x21944f,-_0x32baba._0x411e87)]),defineTool({'name':_0xb73040,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':'object','properties':{'description':{'type':_0x1e5f77(_0x32baba._0x4fec3a,0x10b,_0x32baba._0x2d8112,0x22d)},'url':{'type':_0x4e573e(_0x32baba._0x2d02b2,_0x32baba._0x579369,-_0x32baba._0x2e0506,_0x32baba._0x22ed3c)}},'required':[_0x4e573e(-_0x32baba._0x49c3a8,-0x25d,-_0x32baba._0x2af181,-0xf9)]},async *'execute'(_0x2b126a,_0xabccbd){function _0x27f6ae(_0xf1b754,_0x1e752c,_0x39ab00,_0x28db35){return _0x4e573e(_0x1e752c,_0x1e752c-_0x4cab0a._0x5e60e2,_0x39ab00-_0x4cab0a._0x6b6933,_0x28db35-0x549);}const _0x3c2568=(await assertPublicUrl(_0x2b126a[_0x27f6ae(_0x428684._0x36db00,0x449,_0x428684._0x580ffe,_0x428684._0x470b67)],{'lookup':_0x56a634}))[_0x1bb0bb(0x340,0x2be,0x219,_0x428684._0x5ebc6c)]();if(_0xabccbd['signal'][_0x27f6ae(_0x428684._0x55e8fe,_0x428684._0x5d34ec,_0x428684._0x2c13e8,_0x428684._0x235286)])throw new ToolExecutionError(_0x27f6ae(0x4df,_0x428684._0x5cf4b8,_0x428684._0x5c1c97,0x424),{'url':_0x3c2568});const _0x518838=createTimeoutSignal(_0xabccbd[_0x27f6ae(_0x428684._0x52e42c,_0x428684._0x443fb1,0x394,0x4ae)],_0x10ebc5);let _0x22f81a='',_0x3ee7b4=0x0,_0x31dded;try{const _0x1a1e71=await safeFetch(_0x3c2568,{'headers':{'User-Agent':USER_AGENT},'signal':_0x518838[_0x1bb0bb(_0x428684._0x27721e,_0x428684._0x26cb93,_0x428684._0x51dbd7,_0x428684._0x3c13c5)]},{'lookup':_0x56a634});if(!_0x1a1e71['ok'])throw new ToolExecutionError('HTTP\x20'+_0x1a1e71[_0x27f6ae(_0x428684._0x36a0f7,0x51a,0x2af,_0x428684._0x188288)]+'\x20'+_0x1a1e71[_0x1bb0bb(0x291,0x31c,_0x428684._0x39bb12,0x3d8)],{'url':_0x3c2568,'statusCode':_0x1a1e71[_0x27f6ae(0x293,0x557,_0x428684._0x3daaf1,_0x428684._0x2d5839)]});_0x22f81a=_0x1a1e71[_0x1bb0bb(0x3c6,0x250,_0x428684._0x5dbf7d,0x1e0)][_0x1bb0bb(_0x428684._0x48541a,_0x428684._0x1a8901,_0x428684._0x40794b,_0x428684._0x1127fa)](_0x27f6ae(0x203,_0x428684._0x3a4198,0x320,0x358))??'',_0x3ee7b4=_0x1a1e71[_0x1bb0bb(0x1dc,_0x428684._0x44bb5e,_0x428684._0x422957,0x1c9)],_0x31dded=await _0x1a1e71[_0x1bb0bb(0x4f0,0x392,0x31c,0x46e)]();}catch(_0x2130a5){if(_0x2130a5 instanceof ToolExecutionError)throw _0x2130a5;const _0x3cfe80=_0x2130a5 instanceof Error?_0x2130a5[_0x27f6ae(0x569,_0x428684._0x54e486,_0x428684._0x82f8bf,0x5dc)]:String(_0x2130a5);throw new ToolExecutionError(_0x3cfe80,{'url':_0x3c2568});}finally{_0x518838[_0x27f6ae(0x374,0x37b,_0x428684._0x1c7903,0x395)]();}const _0x4527df=new Date()[_0x1bb0bb(_0x428684._0x1a8901,0x37d,0x4be,_0x428684._0x231674)]();let _0x367f23;function _0x1bb0bb(_0x142c7e,_0x28d162,_0x4692ca,_0x15b5c0){return _0x4e573e(_0x15b5c0,_0x28d162-_0x974687._0x485541,_0x4692ca-_0x974687._0xf50f21,_0x28d162-0x423);}let _0x178263;if(_0x22f81a['includes']('application/json'))_0x367f23='```json\x0a'+_0x31dded+_0x1bb0bb(0x370,0x27f,0x2ef,_0x428684._0x4f7c71),_0x178263=_0x1bb0bb(0x35d,0x2ef,_0x428684._0xafd0ee,0x285);else _0x22f81a[_0x1bb0bb(_0x428684._0x112aed,0x492,0x330,_0x428684._0x3332c7)](_0x1bb0bb(0x434,_0x428684._0x6733ac,_0x428684._0xcaf544,_0x428684._0x46945b))?(_0x367f23=_0x32b0c8[_0x27f6ae(_0x428684._0xf315b6,_0x428684._0x15c3ad,0x524,0x581)](_0x31dded),_0x178263='markdown'):(_0x367f23=_0x31dded,_0x178263=_0x1bb0bb(0x348,0x392,_0x428684._0x359c28,_0x428684._0x3046bc));return yield createToolOutput(_0x367f23,{'url':_0x3c2568,'contentType':_0x22f81a,'statusCode':_0x3ee7b4,'format':_0x178263,'size':_0x31dded[_0x1bb0bb(_0x428684._0x48bcb1,0x472,0x5cf,_0x428684._0x3fdd60)],'fetchedAt':_0x4527df}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2='Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20Chrome/123.0.0.0\x20Safari/537.36\x20NuvinBot/1.0';function normalizeUrl(_0x431e8a){const _0x4b46c6={_0x44ef38:0x570,_0xc6a88a:0x535,_0x5b7002:0x632,_0x3307ae:0x4e2,_0x1daef6:0x643,_0x5a3a2c:0x4b,_0x1594f0:0x4d1},_0x582a0c={_0x1d23b8:0x102,_0x4fc59b:0x4a4},_0x4c9c80={_0x5edbe5:0x1,_0x37389f:0xa3,_0x911e6a:0x17d};function _0x51ba9d(_0x6f49d8,_0x587886,_0x171095,_0x302fef){return _0x3342ed(_0x6f49d8-_0x4c9c80._0x5edbe5,_0x6f49d8,_0x171095-_0x4c9c80._0x37389f,_0x302fef-_0x4c9c80._0x911e6a);}function _0x3fb126(_0x28f9d7,_0x50b236,_0x31f47c,_0x45c08d){return _0x257320(_0x28f9d7-_0x582a0c._0x1d23b8,_0x50b236-0x13,_0x45c08d- -_0x582a0c._0x4fc59b,_0x50b236);}try{const _0x62e904=new URL(_0x431e8a);for(const _0x3a0024 of['utm_source',_0x51ba9d(_0x4b46c6._0x44ef38,0x3f4,_0x4b46c6._0xc6a88a,_0x4b46c6._0x5b7002),'utm_campaign',_0x51ba9d(0x47b,_0x4b46c6._0x3307ae,0x583,_0x4b46c6._0x1daef6),_0x3fb126(0xcd,-_0x4b46c6._0x5a3a2c,-0x1c2,-0x5a),_0x51ba9d(0x44f,0x356,0x46d,_0x4b46c6._0x1594f0),'fbclid','mc_cid','mc_eid']){_0x62e904['searchParams'][_0x3fb126(0xd2,0x88,-0x32,-0x2d)](_0x3a0024);}return _0x62e904['toString']();}catch{return _0x431e8a;}}function cseDateRestrict(_0x58ec7f){const _0x1780aa={_0x5891a6:0xd7,_0x460c1b:0x20,_0x40a54a:0x22e,_0x47acc6:0x1c6,_0x1f919e:0x207,_0x352083:0x263,_0x3e88c0:0x142,_0x2ed28c:0x1f,_0x539044:0x3a,_0x23285c:0x5d9,_0x4a5cc8:0x4e0,_0x1375d7:0x464},_0x4ef3e3={_0x1c7877:0xd0},_0x155186={_0x58581a:0x191};if(_0x58ec7f<=0x0)return void 0x0;function _0x50a5e2(_0x3ba897,_0x4fc28e,_0x25bcf6,_0x3608c2){return _0x3342ed(_0x3ba897-_0x155186._0x58581a,_0x25bcf6,_0x3ba897- -0x181,_0x3608c2-0x11f);}function _0x453564(_0x5d7f97,_0x2d5daf,_0x28360b,_0x213a82){return _0x257320(_0x5d7f97-0x59,_0x2d5daf-_0x4ef3e3._0x1c7877,_0x28360b-0x217,_0x213a82);}if(_0x58ec7f<=0x1e)return'd'+Math[_0x50a5e2(_0x1780aa._0x5891a6,-0x21,_0x1780aa._0x460c1b,_0x1780aa._0x40a54a)](0x1,Math[_0x50a5e2(_0x1780aa._0x47acc6,_0x1780aa._0x1f919e,_0x1780aa._0x352083,0x116)](_0x58ec7f));if(_0x58ec7f<=0x16d)return'm'+Math[_0x50a5e2(0xbc,_0x1780aa._0x3e88c0,-_0x1780aa._0x2ed28c,-_0x1780aa._0x539044)](_0x58ec7f/0x1e);return'y'+Math[_0x453564(_0x1780aa._0x23285c,0x4e2,_0x1780aa._0x4a5cc8,_0x1780aa._0x1375d7)](_0x58ec7f/0x16d);}function addSiteFilters(_0x251902,_0x29c461){const _0x1a8eb9={_0x2b3e39:0x5d6,_0x2b783d:0x66e,_0x45fc64:0x154,_0x53767d:0x4fa,_0x33bd65:0x49a,_0x5b4774:0x381,_0x3e2dad:0x406,_0x12a14c:0x4e8,_0x14c994:0x197},_0x515dc7={_0x1505e1:0x10f};function _0x3253c6(_0xc4b277,_0x2611d0,_0x1a2228,_0x4548b6){return _0x3342ed(_0xc4b277-0x90,_0x2611d0,_0x1a2228-0xc4,_0x4548b6-0x1eb);}function _0x46f304(_0x5b7d4e,_0x3c247b,_0x4d16b4,_0x3fa72a){return _0x3342ed(_0x5b7d4e-_0x515dc7._0x1505e1,_0x3fa72a,_0x4d16b4- -0x184,_0x3fa72a-0x11b);}if(_0x29c461[_0x3253c6(_0x1a8eb9._0x2b3e39,0x57f,0x559,_0x1a8eb9._0x2b783d)]===0x0)return _0x251902[_0x46f304(-0x5b,0x74,0xb3,_0x1a8eb9._0x45fc64)]();return(_0x251902+'\x20('+_0x29c461['map'](_0x545b46=>_0x46f304(0x181,0x213,0x22c,0x169)+_0x545b46)[_0x3253c6(0x5b6,0x3aa,_0x1a8eb9._0x53767d,_0x1a8eb9._0x33bd65)](_0x3253c6(_0x1a8eb9._0x5b4774,_0x1a8eb9._0x3e2dad,0x4df,_0x1a8eb9._0x12a14c))+')')[_0x3253c6(0x430,0x41c,0x2fb,_0x1a8eb9._0x14c994)]();}function normalizeType(_0x20562a){const _0x20eb93={_0x23f832:0x762,_0x168fdf:0x837,_0x340170:0x762,_0x52aaf3:0x863,_0x5bd4f6:0x650,_0x2095b8:0x14b},_0x53ccc2={_0x47f4e2:0x10c,_0x122b13:0x206},_0x3617c7={_0x458c49:0x143,_0x1812a6:0x1e2};function _0xa50fc7(_0x5c3362,_0x5b8752,_0x34694e,_0x17d030){return _0x257320(_0x5c3362-0xde,_0x5b8752-_0x3617c7._0x458c49,_0x5c3362-_0x3617c7._0x1812a6,_0x5b8752);}function _0xbd5247(_0x3f2021,_0x32f002,_0xe35f9f,_0x290abf){return _0x257320(_0x3f2021-0xfe,_0x32f002-_0x53ccc2._0x47f4e2,_0x290abf- -_0x53ccc2._0x122b13,_0xe35f9f);}return _0x20562a===_0xa50fc7(_0x20eb93._0x23f832,0x731,_0x20eb93._0x168fdf,0x898)?_0xa50fc7(_0x20eb93._0x340170,_0x20eb93._0x52aaf3,_0x20eb93._0x5bd4f6,0x5f0):_0xbd5247(-0x13,0x24c,0x25c,_0x20eb93._0x2095b8);}async function fetchJson(_0x238780,_0xdc2185,_0x4a5f10){const _0x591778={_0x5b76e0:0x3bc,_0x1f1bfe:0x271,_0x2c7a61:0x47a,_0x39e480:0x3c9,_0xd350a2:0x3fc,_0x184fef:0x50b,_0x5b6613:0x684,_0x5daa19:0x61b,_0x156249:0x3d4,_0x5e8ee5:0x560,_0x52f040:0x53f,_0x309632:0x3b3,_0x25b913:0x3a1,_0x30e45d:0x5e9,_0x136533:0x506,_0x287229:0x5ac,_0x247589:0x5a9,_0xa4075f:0x29d,_0x17b6df:0x2e2,_0x8ea1c4:0x62f,_0x23987a:0x4ed,_0x211165:0x6eb,_0x55b049:0x52a,_0x31a41c:0x57e,_0x395716:0x3ca,_0x3698d2:0x528,_0x229283:0x4c8,_0x59ca28:0x2b1,_0x34a1f8:0x3e7,_0x1079c9:0x415,_0x479405:0x24a,_0x5834eb:0x212,_0x5496b0:0x5b6,_0x125816:0x368,_0x3b390e:0x495,_0x4c7c32:0x4a4,_0x543408:0x404,_0x471212:0x1b6,_0x3208cb:0xa1},_0x398135={_0x350282:0x18d},_0x490f6d={_0x1671d1:0xb5},_0x3afd38=await fetch(_0x238780,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x16c92f(_0x591778._0x5b76e0,_0x591778._0x1f1bfe,_0x591778._0x2c7a61,0x3ae),..._0x4a5f10?.[_0x16c92f(_0x591778._0x39e480,_0x591778._0xd350a2,0x51c,0x35d)]},'signal':_0xdc2185,..._0x4a5f10});if(!_0x3afd38['ok']){let _0x5e0cfd,_0x42e6d2;try{_0x5e0cfd=await _0x3afd38[_0x16c92f(_0x591778._0x184fef,_0x591778._0x5b6613,_0x591778._0x5daa19,_0x591778._0x156249)]();const _0x5b02e0=JSON[_0x16c92f(_0x591778._0x5e8ee5,_0x591778._0x52f040,0x68c,0x4a5)](_0x5e0cfd),_0x24685a=typeof _0x5b02e0[_0x3b36e9(_0x591778._0x309632,0x460,_0x591778._0x25b913,0x300)]==='object'?_0x5b02e0[_0x16c92f(_0x591778._0x30e45d,_0x591778._0x136533,_0x591778._0x287229,_0x591778._0x247589)]['error']:void 0x0;_0x42e6d2=_0x5b02e0[_0x3b36e9(_0x591778._0xa4075f,0x206,_0x591778._0x17b6df,0x28d)]?.[_0x16c92f(_0x591778._0x8ea1c4,_0x591778._0x23987a,_0x591778._0x211165,0x589)]??_0x5b02e0[_0x16c92f(_0x591778._0x55b049,_0x591778._0x31a41c,_0x591778._0x395716,0x582)]?.[_0x16c92f(0x5a8,_0x591778._0x3698d2,0x55a,_0x591778._0x229283)]?.[0x0]?.[_0x3b36e9(_0x591778._0x59ca28,0x545,_0x591778._0x34a1f8,_0x591778._0x1079c9)]??_0x24685a;}catch{}const _0x279740=_0x42e6d2?'HTTP\x20'+_0x3afd38[_0x3b36e9(_0x591778._0x479405,0x2b9,_0x591778._0x5834eb,0x333)]+':\x20'+_0x42e6d2:_0x16c92f(0x63a,0x76f,_0x591778._0x5496b0,0x66f)+_0x3afd38[_0x16c92f(0x45a,0x427,0x3f0,_0x591778._0x125816)]+'\x20'+_0x3afd38[_0x16c92f(_0x591778._0x3b390e,0x538,_0x591778._0x4c7c32,_0x591778._0x543408)];throw new ToolExecutionError(_0x279740,{'statusCode':_0x3afd38[_0x3b36e9(_0x591778._0x471212,_0x591778._0x3208cb,_0x591778._0x5834eb,0x152)],..._0x5e0cfd?{'body':_0x5e0cfd}:{}});}function _0x3b36e9(_0x5686e9,_0x9bb7b6,_0x3565c3,_0x222b27){return _0x257320(_0x5686e9-0x90,_0x9bb7b6-_0x490f6d._0x1671d1,_0x3565c3- -0x17e,_0x222b27);}function _0x16c92f(_0x1adf9a,_0x2ba145,_0x2d41e9,_0x3a0c7f){return _0x257320(_0x1adf9a-_0x398135._0x350282,_0x2ba145-0x4f,_0x1adf9a-0xca,_0x2ba145);}return await _0x3afd38['json']();}async function hydrateResults(_0x845ecb,_0x445fe2,_0x5c8741,_0x2ea1c6){const _0xa9c940={_0x52387b:0x12,_0x2bd72c:0x137,_0x18fd8b:0x93,_0x14c1ac:0x6cd},_0xf98e0f={_0x3c6160:0x11d,_0x39defd:0x32a},_0x49759f={_0x48cc0c:0x799,_0x2d28fc:0x721,_0x4732f3:0x4f7,_0x388521:0x78a,_0x53da1a:0x73c,_0x4a2fac:0x2c8,_0x211910:0x3fd,_0x4738b9:0x341,_0x40b395:0x1f7,_0x4a4cfc:0x2a1,_0x3cc18d:0x1f8,_0x364771:0x29d,_0x382e8c:0x3a3,_0x36a00b:0x4a8,_0x6b47a7:0x54b,_0x4d5431:0x598,_0x5e7905:0x5b0,_0xf39624:0x47b,_0x421adf:0x412,_0x51b16c:0x549,_0xe5b3ff:0x4ad,_0x2af356:0x521,_0x558550:0x53f,_0x2bc612:0x1e7,_0x459849:0x2ad,_0x59371a:0x331,_0x38a9df:0x2c3,_0x3265a9:0xea,_0x30b841:0x61a,_0x2256ac:0x75b,_0x550d36:0x774,_0x400dfa:0x266,_0xe2089a:0x2f9,_0x1ed485:0x1b1,_0x6430b0:0x6fb,_0x24c1b0:0x663,_0x36bfb1:0x5b3,_0x1ae993:0x48a,_0x43041b:0x6c9,_0x4a12de:0x872,_0x4f7eef:0x7c5,_0xb7470:0x6f2,_0x112ddd:0x2bf,_0x18dd61:0x16c,_0x34f032:0x368,_0x38dd9c:0x643,_0x2a447e:0x5c2,_0x58a701:0x472,_0x605820:0x4a2,_0x396189:0x14d,_0x4f48d4:0x225,_0xe6f2a3:0x35c,_0x27e118:0x15a,_0x2f3db1:0x213,_0x1501b4:0x669},_0x1742ff={_0x4751e2:0x1a2,_0x1cbcff:0x1bf,_0xa5398f:0x81};function _0x4a0c6f(_0x4828b7,_0x3e1403,_0x32a9f7,_0x2e269a){return _0x3342ed(_0x4828b7-_0x1742ff._0x4751e2,_0x2e269a,_0x32a9f7-_0x1742ff._0x1cbcff,_0x2e269a-_0x1742ff._0xa5398f);}const _0x326586=await Promise[_0x5673ed(-0xd3,-_0xa9c940._0x52387b,0x84,-0x28)](_0x845ecb[_0x5673ed(_0xa9c940._0x2bd72c,_0xa9c940._0x18fd8b,0x229,0x1ea)](0x0,0xa)['map'](async _0x5861e7=>{const _0x2fefac={_0x4e248d:0x1d9,_0x3b1029:0x7a},_0x549a36={_0x458c21:0x18f,_0x250b36:0x28d};function _0x137062(_0x5765cf,_0x1e8bd8,_0x14e872,_0x437ef2){return _0x4a0c6f(_0x5765cf-_0x549a36._0x458c21,_0x1e8bd8-0x194,_0x1e8bd8- -_0x549a36._0x250b36,_0x14e872);}function _0x38c959(_0x275d5c,_0x121bcc,_0xba25a6,_0x19fde0){return _0x4a0c6f(_0x275d5c-_0x2fefac._0x4e248d,_0x121bcc-_0x2fefac._0x3b1029,_0xba25a6-0x12b,_0x19fde0);}try{const _0xcf546f=await safeFetch(_0x5861e7[_0x38c959(_0x49759f._0x48cc0c,_0x49759f._0x2d28fc,0x637,_0x49759f._0x4732f3)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x445fe2,'Accept':_0x38c959(_0x49759f._0x388521,_0x49759f._0x53da1a,0x633,0x4e7)},'signal':_0x5c8741},{'lookup':_0x2ea1c6});if(!_0xcf546f['ok'])return _0x5861e7;const _0x2c1494=await _0xcf546f[_0x137062(_0x49759f._0x4a2fac,0x2e7,_0x49759f._0x211910,_0x49759f._0x4738b9)](),_0x1eeddf=load(_0x2c1494),_0x2fff0c=_0x1eeddf(_0x137062(_0x49759f._0x40b395,_0x49759f._0x4a4cfc,_0x49759f._0x3cc18d,_0x49759f._0x364771))['attr'](_0x137062(0x2b1,_0x49759f._0x382e8c,0x4aa,0x457))||_0x1eeddf(_0x38c959(_0x49759f._0x36a00b,0x553,_0x49759f._0x6b47a7,_0x49759f._0x4d5431))[_0x38c959(0x4c0,0x687,_0x49759f._0x5e7905,_0x49759f._0xf39624)]()[_0x137062(0x312,0x2e7,_0x49759f._0x421adf,0x313)]()[_0x38c959(_0x49759f._0x51b16c,_0x49759f._0xe5b3ff,_0x49759f._0x2af356,0x64b)](),_0x1b9ae0=_0x1eeddf(_0x38c959(_0x49759f._0x558550,0x5e4,0x593,0x42c))['attr']('content')||_0x1eeddf(_0x137062(_0x49759f._0x2bc612,0x29e,0x252,_0x49759f._0x459849))[_0x137062(0x30d,0x1fb,0x20d,_0x49759f._0x59371a)]('content')||_0x5861e7[_0x137062(0x32d,0x2e5,0x1bb,_0x49759f._0x38a9df)],_0x44232b=_0x1eeddf(_0x137062(_0x49759f._0x3265a9,0x1e2,0x8a,0xf8))[_0x137062(0xd5,0x1fb,0xde,0x93)](_0x38c959(0x87a,_0x49759f._0x30b841,_0x49759f._0x2256ac,_0x49759f._0x550d36))||_0x1eeddf(_0x137062(0x29d,_0x49759f._0x400dfa,_0x49759f._0xe2089a,_0x49759f._0x1ed485))[_0x38c959(_0x49759f._0x6430b0,_0x49759f._0x24c1b0,_0x49759f._0x36bfb1,_0x49759f._0x1ae993)](_0x38c959(_0x49759f._0x43041b,_0x49759f._0x4a12de,_0x49759f._0x4f7eef,0x74e))||_0x5861e7[_0x38c959(0x8a9,0x680,0x737,_0x49759f._0xb7470)],_0x304fc6=_0x1eeddf(_0x137062(0x37e,_0x49759f._0x112ddd,_0x49759f._0x18dd61,_0x49759f._0x34f032))[_0x38c959(_0x49759f._0x38dd9c,_0x49759f._0x2a447e,0x5b3,0x710)]('href');return{..._0x5861e7,'title':_0x2fff0c||_0x5861e7[_0x38c959(_0x49759f._0x58a701,0x535,_0x49759f._0x6b47a7,_0x49759f._0x605820)],'snippet':_0x1b9ae0,'url':_0x304fc6?normalizeUrl(new URL(_0x304fc6,_0x5861e7[_0x137062(_0x49759f._0x396189,0x27f,_0x49759f._0x4f48d4,_0x49759f._0xe6f2a3)])[_0x137062(_0x49759f._0x27e118,_0x49759f._0x2f3db1,0x1a0,0x1e6)]()):_0x5861e7[_0x38c959(0x54b,0x656,0x637,_0x49759f._0x1501b4)],'publishedAt':_0x44232b};}catch{return _0x5861e7;}})),_0x3bd441=new Map(_0x845ecb[_0x4a0c6f(0x5be,0x5af,0x647,_0xa9c940._0x14c1ac)](0x0,0xa)['map']((_0x12c0c,_0x28bf89)=>[_0x12c0c['url'],_0x326586[_0x28bf89]]));function _0x5673ed(_0x46b3aa,_0x284886,_0xb6420,_0x36b18e){return _0x257320(_0x46b3aa-_0xf98e0f._0x3c6160,_0x284886-0x18,_0x36b18e- -_0xf98e0f._0x39defd,_0x284886);}return _0x845ecb[_0x5673ed(0x6a,-0xd4,-0x16,-0xd)](_0x18a086=>_0x3bd441[_0x5673ed(0x103,0x53,0x179,0xdf)](_0x18a086[_0x5673ed(-0x4d,0x111,0x191,0xaf)])??_0x18a086);}function formatResults(_0x5511d5){const _0x1519c3={_0x26e27d:0x3dd,_0x3c5e50:0x440,_0x384457:0x4a4,_0x5b5d2e:0x5cd},_0x828e0f={_0x594fc1:0x53a,_0x274fca:0x346,_0x4ab00a:0x498,_0x4d52aa:0x3e5,_0x43cb32:0x4c9,_0x1f104a:0x38a,_0x364ac5:0x206,_0x5548eb:0x206,_0x475119:0x331,_0x46ac1a:0x29d,_0x5d0b3c:0x16e,_0x3a6561:0x5a9,_0x3107b0:0x256,_0x3459d0:0x4c9},_0x55b052={_0x449c6e:0x1d9,_0x4970ff:0x27b},_0x56eff4={_0x147ad5:0x24,_0x11e4c7:0x55,_0x385289:0x40},_0x4f2869={_0x5a873c:0x1d0,_0x418605:0x5c};function _0x287fe4(_0x2d5f9a,_0x1a141c,_0x577fa4,_0x367703){return _0x3342ed(_0x2d5f9a-0x18e,_0x577fa4,_0x1a141c-_0x4f2869._0x5a873c,_0x367703-_0x4f2869._0x418605);}if(_0x5511d5[_0x74ac9b(0x51a,_0x1519c3._0x26e27d,0x4d1,_0x1519c3._0x3c5e50)]===0x0)return _0x74ac9b(_0x1519c3._0x384457,0x5b1,_0x1519c3._0x5b5d2e,0x47b);function _0x74ac9b(_0x394fd0,_0x96df26,_0x45a0ce,_0x1e611c){return _0x3342ed(_0x394fd0-_0x56eff4._0x147ad5,_0x96df26,_0x1e611c- -_0x56eff4._0x11e4c7,_0x1e611c-_0x56eff4._0x385289);}return _0x5511d5['map'](_0x3c5921=>{const _0x3fcf47={_0x42d72:0x17f},_0xb35555=[_0x3c5921[_0x2dda45(0x5d8,_0x828e0f._0x594fc1,0x675,0x575)][_0x2dda45(_0x828e0f._0x274fca,_0x828e0f._0x4ab00a,_0x828e0f._0x4d52aa,_0x828e0f._0x43cb32)]+'.\x20'+_0x3c5921['title'],_0x3c5921[_0x504a1e(_0x828e0f._0x1f104a,0x2a2,0x179,_0x828e0f._0x364ac5)]];function _0x504a1e(_0x991092,_0x9cb05e,_0x5bad11,_0x1dbcca){return _0x287fe4(_0x991092-_0x55b052._0x449c6e,_0x9cb05e- -_0x55b052._0x4970ff,_0x991092,_0x1dbcca-0xff);}function _0x2dda45(_0x5d5de2,_0x484add,_0xaf89b9,_0x251092){return _0x74ac9b(_0x5d5de2-0x1b9,_0x5d5de2,_0xaf89b9-_0x3fcf47._0x42d72,_0x484add-0x251);}if(_0x3c5921['snippet'])_0xb35555[_0x504a1e(_0x828e0f._0x5548eb,0x234,0x223,_0x828e0f._0x475119)](_0x3c5921['snippet']);if(_0x3c5921['publishedAt'])_0xb35555['push'](_0x504a1e(_0x828e0f._0x46ac1a,0x171,0x130,_0x828e0f._0x5d0b3c)+_0x3c5921[_0x2dda45(0x6ce,0x649,_0x828e0f._0x3a6561,0x65f)]);return _0xb35555[_0x504a1e(_0x828e0f._0x3107b0,0x38b,0x21f,_0x828e0f._0x3459d0)]('\x0a');})['join']('\x0a\x0a');}async function searchOllama(_0x35f35d,_0x32b6e3,_0x4c8958){const _0x50ae26={_0x2b0205:0x23,_0x14048d:0x79,_0x334658:0x1b4,_0x1dae7e:0x1f7,_0x453d04:0x2c6,_0x5b1f35:0x150,_0xa42ba0:0xb4,_0x5ab12c:0xbe,_0x2931b3:0x55,_0xfdfce4:0xea,_0x1dae5:0x63,_0xa1ce8e:0x27,_0xb3ed06:0xc3,_0x2b1b33:0x1e,_0x421fa0:0x46,_0x431945:0x15b,_0x2b7911:0xa9,_0x2440d5:0x18a,_0x198047:0x22a,_0x18c41c:0x128,_0x536178:0x194,_0x415252:0x2ee,_0xbb03ba:0x24a},_0x542895={_0x1967e3:0x4da,_0x3064ec:0x4a0,_0x5a49a0:0x5cc,_0xed4ce3:0x651,_0x238bb1:0x3f8,_0x52ad8f:0x600,_0x2c1c69:0x5f0},_0x2141be={_0xffd3a5:0x15a},_0x234381={_0x473cf1:0x218,_0x354b4c:0x133},_0x2fc2df=Math['max'](0x1,Math[_0x3442c8(-_0x50ae26._0x2b0205,_0x50ae26._0x14048d,-0xb0,_0x50ae26._0x334658)](0xa,_0x32b6e3[_0x3442c8(0x42,0xb9,_0x50ae26._0x1dae7e,0x74)])),_0x802419=addSiteFilters(_0x32b6e3[_0x110b69(_0x50ae26._0x453d04,_0x50ae26._0x5b1f35,0x144,_0x50ae26._0xa42ba0)],_0x32b6e3[_0x3442c8(_0x50ae26._0x5ab12c,_0x50ae26._0x2931b3,_0x50ae26._0xfdfce4,-0x99)]);function _0x110b69(_0x138a27,_0x44c47e,_0x2900f6,_0xf0e115){return _0x3342ed(_0x138a27-0x88,_0x2900f6,_0x44c47e- -_0x234381._0x473cf1,_0xf0e115-_0x234381._0x354b4c);}function _0x3442c8(_0x13a63a,_0xaa518,_0x492d27,_0x508706){return _0x257320(_0x13a63a-0x12b,_0xaa518-_0x2141be._0xffd3a5,_0xaa518- -0x3ed,_0x508706);}const _0x75ec22=await fetchJson(_0x3442c8(_0x50ae26._0x1dae5,0xb4,0x1e,0x19d),_0x4c8958,{'method':_0x3442c8(0x11d,0x4,-0x4b,0x166),'headers':{'Authorization':_0x3442c8(_0x50ae26._0xa1ce8e,_0x50ae26._0xb3ed06,0x14c,0xc0)+_0x35f35d[_0x110b69(0xfe,_0x50ae26._0x2b1b33,-0x126,_0x50ae26._0x421fa0)]},'body':JSON[_0x110b69(0x123,_0x50ae26._0x431945,_0x50ae26._0x2b7911,0x256)]({'query':_0x802419,'max_results':_0x2fc2df})}),_0x597764=_0x75ec22[_0x3442c8(0x10f,_0x50ae26._0x2440d5,_0x50ae26._0x198047,0x51)]??[],_0x7a841=_0x597764[_0x3442c8(-_0x50ae26._0x18c41c,-0xd0,_0x50ae26._0x2931b3,-0x1e7)]((_0x4b174c,_0x548e8c)=>{const _0xed418c={_0xe77b8d:0x291},_0x172127={_0x45acae:0x1bb,_0x36162e:0x11d};function _0x5f0de7(_0x5dbfcb,_0x64456a,_0x464c8e,_0x328c2c){return _0x110b69(_0x5dbfcb-_0x172127._0x45acae,_0x328c2c-0x43d,_0x5dbfcb,_0x328c2c-_0x172127._0x36162e);}const _0x3ee984=_0x4b174c[_0x2ab322(_0x542895._0x1967e3,0x2b7,_0x542895._0x3064ec,0x3c6)]||'';let _0x51a9be;try{_0x51a9be=new URL(_0x3ee984)[_0x5f0de7(_0x542895._0x5a49a0,0x442,_0x542895._0xed4ce3,0x566)];}catch{_0x51a9be=null;}function _0x2ab322(_0x6883c3,_0xd5597c,_0x438cf2,_0x3a8ccc){return _0x110b69(_0x6883c3-0x143,_0x3a8ccc-_0xed418c._0xe77b8d,_0xd5597c,_0x3a8ccc-0x19a);}return{'title':_0x4b174c[_0x5f0de7(_0x542895._0x238bb1,0x5ac,0x464,0x486)]||_0x2ab322(0x591,0x5a1,_0x542895._0x52ad8f,0x4b4),'url':normalizeUrl(_0x3ee984),'snippet':_0x4b174c['content']??null,'displayUrl':_0x51a9be,'favicon':null,'publishedAt':null,'source':{'engine':_0x5f0de7(_0x542895._0x2c1c69,0x5d1,0x6ad,0x72b),'rank':_0x548e8c+0x1}};});return{'items':_0x7a841['slice'](0x0,_0x2fc2df),'engine':_0x110b69(_0x50ae26._0x536178,_0x50ae26._0x415252,_0x50ae26._0xbb03ba,0x37d)};}async function searchTavily(_0x540997,_0x12f582,_0x139b80){const _0x105dd2={_0x546e96:0x226,_0x47fd85:0x48f,_0x5cda67:0x11a,_0x30bce7:0x6f,_0x5a56b4:0x4d,_0x31d9ee:0x1d4,_0x38670e:0x3cf,_0x2939f2:0x329,_0x1693c7:0x144,_0xfd10ec:0x19e,_0x4b4b9d:0xd8,_0x2f201c:0x12c,_0x214c7a:0x114,_0xaea9ff:0x16e,_0x470c86:0x15c,_0x4a41c2:0x35d,_0x78a858:0x354,_0x294f9c:0x444,_0xc9ba89:0x497,_0x3e4ad4:0x43c,_0x4fb7e3:0x2e0,_0x4fb1fc:0x3a7,_0xc02542:0x1fe,_0x80e992:0x8a,_0x3c68f2:0xb1,_0xd95a9e:0x12,_0x4bafe5:0x102,_0x1605df:0xfb,_0x158f06:0x16,_0x49a2a6:0x25b,_0x37e0e3:0x10a,_0x1de729:0x31a,_0x54dd95:0x3ef,_0x10545d:0x1ed},_0xed0a2c={_0x5ec921:0x66c,_0x2ae3f6:0x573,_0x2994f2:0x545,_0x502bfe:0x5b6,_0xe2921a:0x3a8,_0x42a5b5:0x4b6,_0x53889a:0x549,_0x1bd881:0x53d,_0xbded04:0x734,_0x31daa9:0x669,_0x4993c5:0x548,_0x4cdf1c:0x2bb,_0xf33965:0x314},_0x5bb28b={_0x4aa366:0xe8,_0x4ef8ef:0x1ad,_0x4cc16f:0x4f3},_0x90d310=Math[_0xaac4b9(0x1ff,0x2ac,0x1d2,0x1bd)](0x1,Math[_0xaac4b9(0x381,_0x105dd2._0x546e96,0x305,_0x105dd2._0x47fd85)](0x14,_0x12f582[_0x28521c(-_0x105dd2._0x5cda67,_0x105dd2._0x30bce7,-_0x105dd2._0x5a56b4,0x4)])),_0x1b9c6e={'query':_0x12f582[_0xaac4b9(0x30f,_0x105dd2._0x31d9ee,0x264,0x26d)],'max_results':_0x90d310,'search_depth':_0x540997[_0xaac4b9(_0x105dd2._0x38670e,0x28e,_0x105dd2._0x2939f2,0x524)]??_0x28521c(-0x1ab,-_0x105dd2._0x1693c7,-0x42,-_0x105dd2._0xfd10ec),'topic':_0x540997[_0x28521c(-_0x105dd2._0x4b4b9d,-0x264,-_0x105dd2._0x2f201c,-_0x105dd2._0x214c7a)]??_0x28521c(-0x114,-0xaa,-_0x105dd2._0xaea9ff,-_0x105dd2._0x470c86)};function _0x28521c(_0x19ff70,_0x334bb3,_0x44a1b3,_0x43fe02){return _0x257320(_0x19ff70-_0x5bb28b._0x4aa366,_0x334bb3-_0x5bb28b._0x4ef8ef,_0x44a1b3- -_0x5bb28b._0x4cc16f,_0x43fe02);}if(_0x12f582[_0xaac4b9(_0x105dd2._0x4a41c2,_0x105dd2._0x78a858,_0x105dd2._0x294f9c,_0x105dd2._0xc9ba89)][_0xaac4b9(_0x105dd2._0x3e4ad4,_0x105dd2._0x4fb7e3,_0x105dd2._0x4fb1fc,0x52a)]>0x0)_0x1b9c6e[_0x28521c(-0x1a2,-0xf4,-0xde,-_0x105dd2._0xc02542)]=_0x12f582[_0x28521c(-0xe4,-_0x105dd2._0x80e992,-_0x105dd2._0x3c68f2,-0xdf)];const _0x5aae2e=await fetchJson(_0xaac4b9(0x481,0x314,0x34b,0x4d3),_0x139b80,{'method':_0x28521c(-_0x105dd2._0xd95a9e,-0x1f1,-_0x105dd2._0x4bafe5,-_0x105dd2._0x1605df),'headers':{'Authorization':_0x28521c(-0x10f,-_0x105dd2._0x158f06,-0x43,-0x3c)+_0x540997['tavilyApiKey'],'Content-Type':_0xaac4b9(0x20d,_0x105dd2._0x49a2a6,_0x105dd2._0x37e0e3,0x244)},'body':JSON[_0xaac4b9(_0x105dd2._0x1de729,0x3a0,_0x105dd2._0x54dd95,_0x105dd2._0x10545d)](_0x1b9c6e)});function _0xaac4b9(_0x3c4a48,_0x403fe9,_0x35a008,_0x48f2d9){return _0x257320(_0x3c4a48-0xd6,_0x403fe9-0x5,_0x3c4a48- -0xe5,_0x35a008);}const _0x46d613=_0x5aae2e['results']??[],_0x315f9a=_0x46d613['map']((_0x3ed79a,_0x2029ef)=>{const _0x5da367={_0x24fa76:0x1c3},_0x1dd3e1={_0xc108d0:0x1c2,_0x26c33e:0x569},_0xc08e22=_0x3ed79a[_0x5ea5be(_0xed0a2c._0x5ec921,_0xed0a2c._0x2ae3f6,_0xed0a2c._0x2994f2,_0xed0a2c._0x502bfe)]||'';function _0x241d39(_0x5a87df,_0x168b40,_0x3d8999,_0x29ec56){return _0x28521c(_0x5a87df-_0x1dd3e1._0xc108d0,_0x168b40-0xa1,_0x29ec56-_0x1dd3e1._0x26c33e,_0x168b40);}function _0x5ea5be(_0x2b350c,_0x256d19,_0x317854,_0x334a3c){return _0x28521c(_0x2b350c-_0x5da367._0x24fa76,_0x256d19-0x128,_0x317854-0x65f,_0x2b350c);}let _0x5bd826;try{_0x5bd826=new URL(_0xc08e22)['host'];}catch{_0x5bd826=null;}return{'title':_0x3ed79a[_0x241d39(0x342,_0xed0a2c._0xe2921a,0x4a9,0x363)]||_0x241d39(_0xed0a2c._0x42a5b5,0x5ad,_0xed0a2c._0x53889a,_0xed0a2c._0x1bd881),'url':normalizeUrl(_0xc08e22),'snippet':_0x3ed79a[_0x5ea5be(_0xed0a2c._0xbded04,0x78b,_0xed0a2c._0x31daa9,_0xed0a2c._0x4993c5)]??null,'displayUrl':_0x5bd826,'favicon':null,'publishedAt':null,'source':{'engine':_0x241d39(0x2c5,_0xed0a2c._0x4cdf1c,_0xed0a2c._0xf33965,0x404),'rank':_0x2029ef+0x1}};});return{'items':_0x315f9a['slice'](0x0,_0x90d310),'engine':_0x28521c(-0x27c,-0x266,-0x165,-0x252)};}async function searchGoogleCse(_0x5233e9,_0x1262a1,_0x2c874b){const _0x146fa3={_0x20d193:0x39e,_0x1dabfe:0x3b6,_0x18b279:0x364,_0x214050:0x409,_0x4f036d:0x6bd,_0x46d709:0x696,_0x4f4d57:0x5cb,_0x4b2a32:0x37f,_0xa33631:0x2cb,_0x4255ed:0x5ce,_0x10b644:0x567,_0x3931e5:0x46a,_0x48c05d:0x6c1,_0x385900:0x448,_0x2fac43:0x179,_0x3b18b1:0x1a2,_0x4c8b6e:0x8c,_0x5218cd:0x3b5,_0x598fdf:0x338,_0x6f1937:0x3d2,_0xa3213b:0x50,_0xff60d5:0x34e,_0x3362cf:0x379,_0x1969e6:0x497,_0x320a21:0x280,_0x355751:0x33a,_0x453817:0x37e,_0x44be0e:0x246,_0x56a71c:0x269,_0x1bb93d:0x22f,_0x10a82c:0x170,_0x1c7716:0x19f,_0x5ec052:0x179,_0x2dbdf0:0x1d8,_0x1f3b11:0x26b,_0x3a04c5:0x245,_0x3462be:0x4d6,_0x16105c:0x5ad,_0x5763c8:0x5f0,_0x107c41:0x343,_0x3bfe01:0x23e,_0x2de5b7:0x132,_0x22ae70:0x2ff,_0x13ac4b:0x590,_0x2cd4c1:0xfc,_0x2d5d97:0x4e7,_0x538528:0x60,_0x2d9034:0x179,_0x590e24:0xe9,_0x5e869e:0x59,_0x5e1426:0x387,_0x31a0c7:0x3a4,_0x34e096:0x322,_0x2635b0:0x3d5,_0x1062b5:0x7e,_0x23714e:0x3d0,_0x15ae63:0x4f7,_0x56965d:0xa8,_0x960d95:0x44,_0x529048:0x16e,_0x9467fa:0x1a8,_0x1d9abf:0x240,_0x57083e:0x1b9,_0x3cf47a:0x2d3,_0x891614:0x179,_0x419d11:0x25,_0x52dfb0:0x3d3,_0x16c4bb:0x2ae,_0x1c4a03:0x143,_0x4a84fa:0x74,_0x1c3a45:0x1a0,_0x406ae5:0x363,_0x38c541:0x219,_0x260539:0x4a,_0x7317e4:0x4d1,_0x5395df:0x492,_0x21d80d:0x9b,_0xfd7314:0x1e,_0x3a8ce3:0x36,_0x2e60f4:0x5a2,_0x4d82a9:0x544,_0xd78196:0x63b,_0x38f4c9:0x3f5,_0x2e9816:0x3b0,_0xa8a7bc:0x158,_0x5c44cf:0x144,_0x49ebea:0x19d,_0x2ee7b8:0x6da,_0x3e7ab5:0x6cf,_0x39ff9b:0x611,_0x53f274:0x5d3,_0x521ecf:0x6ad,_0x25d031:0x2c2,_0x3c2718:0x289,_0x4ace9d:0xa6,_0x73ee94:0x615,_0x1a925f:0x74b,_0x3a008e:0x543,_0x13d287:0x65,_0x3cca74:0xe4,_0x115aad:0x53,_0x51f187:0x16,_0x3796b6:0xb9,_0x27d2bd:0x29,_0x556248:0x196,_0x36becb:0x100},_0x529cb6={_0x2b4665:0x1b1,_0x493ce3:0x160},_0x353048={_0x105145:0x11f,_0x983f7f:0x45f},_0x3f02a4=Math[_0x4bf6ab(_0x146fa3._0x20d193,_0x146fa3._0x1dabfe,_0x146fa3._0x18b279,_0x146fa3._0x214050)](0x1,Math['min'](0x32,_0x1262a1[_0x4bf6ab(0x572,_0x146fa3._0x4f036d,_0x146fa3._0x46d709,_0x146fa3._0x4f4d57)]));function _0x1b3830(_0x1542ca,_0x1172e5,_0x155700,_0x13e728){return _0x3342ed(_0x1542ca-_0x353048._0x105145,_0x155700,_0x1172e5- -_0x353048._0x983f7f,_0x13e728-0xc2);}if(_0x1262a1['offset']+_0x3f02a4>0x64)throw new ToolExecutionError(_0x1b3830(-0x1ac,-0x216,-_0x146fa3._0x4b2a32,-_0x146fa3._0xa33631),{'offset':_0x1262a1['offset'],'count':_0x3f02a4,'maxResults':0x64});const _0x53f187=cseDateRestrict(_0x1262a1['recencyDays']),_0x350128=addSiteFilters(_0x1262a1['query'],_0x1262a1[_0x4bf6ab(0x45a,_0x146fa3._0x4255ed,0x65b,_0x146fa3._0x10b644)]);let _0x426ee7=0x0,_0x2611f9=_0x1262a1['offset']+0x1;const _0xdddb37=[];while(_0x426ee7<_0x3f02a4){const _0x5d7ec1=Math[_0x4bf6ab(_0x146fa3._0x3931e5,_0x146fa3._0x48c05d,_0x146fa3._0x385900,0x58b)](0xa,_0x3f02a4-_0x426ee7),_0x3e9d7c=new URL('https://www.googleapis.com/customsearch/v1');_0x3e9d7c[_0x1b3830(-0x83,-_0x146fa3._0x2fac43,-_0x146fa3._0x3b18b1,-_0x146fa3._0x4c8b6e)][_0x4bf6ab(0x373,_0x146fa3._0x5218cd,_0x146fa3._0x598fdf,_0x146fa3._0x6f1937)](_0x1b3830(0xd0,-_0x146fa3._0xa3213b,-0x60,-0x1c),_0x5233e9[_0x4bf6ab(0x549,0x576,_0x146fa3._0xff60d5,0x41b)]),_0x3e9d7c[_0x4bf6ab(0x587,_0x146fa3._0x3362cf,0x5ac,_0x146fa3._0x1969e6)][_0x4bf6ab(_0x146fa3._0x320a21,_0x146fa3._0x355751,_0x146fa3._0x453817,_0x146fa3._0x6f1937)]('cx',_0x5233e9['googleCseCx']),_0x3e9d7c[_0x1b3830(-_0x146fa3._0x44be0e,-_0x146fa3._0x2fac43,-0x191,-_0x146fa3._0x56a71c)][_0x1b3830(-_0x146fa3._0x1bb93d,-0x23e,-_0x146fa3._0x10a82c,-_0x146fa3._0x1c7716)]('q',_0x350128),_0x3e9d7c[_0x1b3830(-0x2a9,-_0x146fa3._0x5ec052,-0xac,-0x38)][_0x1b3830(-_0x146fa3._0x2dbdf0,-0x23e,-_0x146fa3._0x1f3b11,-_0x146fa3._0x3a04c5)]('num',String(_0x5d7ec1)),_0x3e9d7c[_0x4bf6ab(0x512,_0x146fa3._0x3462be,_0x146fa3._0x16105c,0x497)]['set']('start',String(_0x2611f9)),_0x3e9d7c[_0x4bf6ab(_0x146fa3._0x5763c8,_0x146fa3._0x107c41,0x50f,0x497)][_0x1b3830(-0x1fa,-_0x146fa3._0x3bfe01,-_0x146fa3._0x2de5b7,-_0x146fa3._0x22ae70)](_0x4bf6ab(_0x146fa3._0x13ac4b,0x684,0x55d,0x596),_0x1262a1[_0x1b3830(-0x180,-0x7a,0x60,-_0x146fa3._0x2cd4c1)]?_0x1b3830(-0x18f,-0x1e8,-0x13f,-0x21e):'off');_0x1262a1[_0x1b3830(-0x1c2,-0x23b,-0x271,-0xc5)]&&(_0x3e9d7c[_0x4bf6ab(0x425,_0x146fa3._0x2d5d97,0x5f1,_0x146fa3._0x1969e6)]['set']('hl',_0x1262a1['lang']),_0x3e9d7c[_0x1b3830(-_0x146fa3._0x538528,-_0x146fa3._0x2d9034,-_0x146fa3._0x590e24,-_0x146fa3._0x5e869e)][_0x1b3830(-0x2fe,-_0x146fa3._0x3bfe01,-0x1fd,-_0x146fa3._0x5e1426)]('lr','lang_'+_0x1262a1[_0x4bf6ab(0x485,_0x146fa3._0x31a0c7,_0x146fa3._0x34e096,_0x146fa3._0x2635b0)]));if(_0x1262a1['region'])_0x3e9d7c[_0x1b3830(-0x88,-_0x146fa3._0x2d9034,-_0x146fa3._0x1062b5,-0x12e)][_0x4bf6ab(_0x146fa3._0x23714e,0x3ee,_0x146fa3._0x15ae63,0x3d2)]('gl',_0x1262a1['region'][_0x1b3830(-_0x146fa3._0x56965d,_0x146fa3._0x960d95,_0x146fa3._0x529048,_0x146fa3._0x9467fa)]());if(_0x1262a1[_0x1b3830(-0x28d,-_0x146fa3._0x1d9abf,-_0x146fa3._0x57083e,-0x384)]==='images')_0x3e9d7c[_0x1b3830(-_0x146fa3._0x3cf47a,-_0x146fa3._0x891614,-_0x146fa3._0x419d11,-0x25a)][_0x4bf6ab(0x4bc,_0x146fa3._0x52dfb0,_0x146fa3._0x16c4bb,0x3d2)]('searchType',_0x1b3830(-_0x146fa3._0x1c4a03,-0x158,-_0x146fa3._0x4a84fa,-0x28));if(_0x53f187)_0x3e9d7c['searchParams'][_0x1b3830(-_0x146fa3._0x1c3a45,-0x23e,-_0x146fa3._0x406ae5,-_0x146fa3._0x38c541)](_0x1b3830(-0x59,-0xd5,0x92,-_0x146fa3._0x260539),_0x53f187);const _0x56af5e=await fetchJson(_0x3e9d7c[_0x4bf6ab(0x4f6,0x4f8,_0x146fa3._0x7317e4,_0x146fa3._0x5395df)](),_0x2c874b),_0x495654=_0x56af5e[_0x1b3830(-0x1cc,-0xa3,-0x100,_0x146fa3._0x21d80d)]??[];if(_0x495654['length']===0x0)break;const _0xd7ae25=_0x426ee7;for(let _0x287d0e=0x0;_0x287d0e<_0x495654[_0x1b3830(-_0x146fa3._0xfd7314,_0x146fa3._0x3a8ce3,0x14b,-0x68)];_0x287d0e++){const _0x1a596e=_0x495654[_0x287d0e];if(!_0x1a596e)continue;const _0x440f41=_0x1a596e[_0x4bf6ab(0x645,_0x146fa3._0x2e60f4,0x564,_0x146fa3._0x4d82a9)]||_0x1a596e['image']?.[_0x4bf6ab(_0x146fa3._0xd78196,_0x146fa3._0x38f4c9,_0x146fa3._0x2e9816,0x4fc)]||'',_0x16567c=_0x1a596e['title']||_0x1a596e[_0x1b3830(-0x24,-_0x146fa3._0xa8a7bc,-_0x146fa3._0x5c44cf,-0x12a)]?.[_0x1b3830(-_0x146fa3._0x49ebea,-0x1fe,-0x335,-0x2f4)]||'Untitled',_0x3f9a00=_0x1a596e[_0x1b3830(-0x214,-0xac,-_0x146fa3._0x9467fa,-0x98)]||_0x1a596e[_0x4bf6ab(_0x146fa3._0x2ee7b8,_0x146fa3._0x3e7ab5,0x60f,_0x146fa3._0x39ff9b)]?.[_0x4bf6ab(0x5f2,_0x146fa3._0x53f274,_0x146fa3._0x521ecf,0x6b5)](/<[^>]+>/g,''),_0x481194=_0x1a596e[_0x1b3830(-0x1ec,-0x1f1,-_0x146fa3._0x25d031,-_0x146fa3._0x3c2718)]?.['metatags']?.[0x0]??{};let _0x12f14e;try{_0x12f14e=new URL(_0x440f41)['host'];}catch{_0x12f14e=null;}_0xdddb37['push']({'title':_0x16567c,'url':normalizeUrl(_0x440f41),'snippet':_0x3f9a00??null,'displayUrl':_0x12f14e,'favicon':null,'publishedAt':_0x481194['article:published_time']||_0x481194[_0x1b3830(_0x146fa3._0x4ace9d,-0x8e,-0x1cf,-0xba)]||null,'source':{'engine':_0x4bf6ab(0x7be,_0x146fa3._0x73ee94,0x773,0x6a6),'rank':_0xd7ae25+_0x287d0e+0x1}});}_0x426ee7+=_0x495654[_0x4bf6ab(_0x146fa3._0x1a925f,_0x146fa3._0x3a008e,0x78d,0x646)],_0x2611f9+=_0x495654[_0x1b3830(-_0x146fa3._0x13d287,_0x146fa3._0x3a8ce3,-0x2c,_0x146fa3._0x3cca74)];if(_0x495654[_0x1b3830(-0x106,_0x146fa3._0x3a8ce3,_0x146fa3._0x115aad,-_0x146fa3._0x51f187)]<_0x5d7ec1)break;}function _0x4bf6ab(_0x119efb,_0x5d9aba,_0x10e482,_0x30a0db){return _0x3342ed(_0x119efb-0x162,_0x10e482,_0x30a0db-_0x529cb6._0x2b4665,_0x30a0db-_0x529cb6._0x493ce3);}return _0xdddb37[_0x1b3830(_0x146fa3._0x3796b6,_0x146fa3._0x27d2bd,_0x146fa3._0x556248,-_0x146fa3._0x36becb)](0x0,_0x3f02a4);}function isGoogleCseEngine(_0x12a526){const _0x9d002a={_0x3fe732:0x141,_0x54cf2f:0x18b};function _0x4e41e3(_0x505439,_0x5509bc,_0x25e007,_0xfc4e25){return _0x3342ed(_0x505439-_0x9d002a._0x3fe732,_0xfc4e25,_0x5509bc-0x304,_0xfc4e25-_0x9d002a._0x54cf2f);}return _0x4e41e3(0x460,0x56e,0x539,0x6ab)in _0x12a526;}function isOllamaEngine(_0xd1af88){const _0x2c4010={_0x16e453:0x9d},_0x30db01={_0x713cf7:0x199};function _0xabf615(_0x304535,_0xbd6ad7,_0x115c7f,_0x2857b6){return _0x3342ed(_0x304535-0x12f,_0x304535,_0xbd6ad7- -_0x30db01._0x713cf7,_0x2857b6-0x14e);}return _0xabf615(0x15,_0x2c4010._0x16e453,-0x13,0x48)in _0xd1af88;}function isTavilyEngine(_0x5c97ca){const _0x247120={_0x4e6d92:0x45a,_0x146bb7:0x493},_0x43a561={_0x342c51:0x1d0,_0x2de173:0xc6};function _0x2a4510(_0x3c7540,_0x38251e,_0x22f91c,_0x411dd4){return _0x257320(_0x3c7540-_0x43a561._0x342c51,_0x38251e-0x145,_0x38251e-_0x43a561._0x2de173,_0x3c7540);}return _0x2a4510(0x45e,_0x247120._0x4e6d92,_0x247120._0x146bb7,0x5ba)in _0x5c97ca;}function createWebSearchTool(_0x346250){const _0x5d06a5={_0x537cb2:0x3be,_0x13b495:0x27d,_0x271f66:0x1f0,_0x5d872f:0x391,_0x22b6db:0x57,_0x192176:0x8e,_0x5042c7:0x2e1,_0x5adeed:0x28e,_0x3aa0d1:0xec,_0x4de44e:0x207,_0x4319ff:0x199,_0x4e0355:0x3b7,_0x17faab:0x27c,_0x2d4e79:0x212,_0x401504:0x273,_0x28f636:0x240,_0x36ea1a:0x12e,_0x4740f7:0x312,_0x2803d6:0x10,_0x464aa6:0x81,_0x1d94c2:0x40e,_0x7e605b:0x333,_0x1a5e8f:0x3ae,_0x38947c:0x3d6,_0x23a37c:0x1a,_0x48622a:0x105,_0x2bd755:0xc5,_0x6f2418:0x85,_0x1c9d78:0x12b,_0x2a1f87:0x38,_0xc4a363:0x384,_0x3a70ea:0x3bf},_0x29b175={_0x49a530:0x1d,_0x27e0f1:0x16b,_0x26da1a:0x110,_0x25271f:0x1d4,_0xfb2002:0x2af,_0x511b7b:0x98,_0x5627cf:0x6d,_0x1fa765:0x127,_0x2ad45e:0x44,_0x2e1ba0:0xe0,_0x4a32d0:0x65,_0x57f432:0x83,_0x1c6376:0x73,_0x428ffc:0x15a,_0x23e102:0xff,_0x156856:0x110,_0x41471b:0xdf,_0x462805:0x8d,_0x3d4ed9:0x1c6,_0x16ef27:0x15b,_0x41dfcf:0x1b6,_0x2ed770:0x1d6,_0x286359:0x25a,_0x33e584:0x4a,_0x3e4d46:0x79,_0x29c91a:0x7a,_0x728333:0x30,_0xd36efb:0x33,_0x1e6887:0x1bd,_0x4e4ba5:0x1c2,_0x25a6e1:0x3ad,_0x2da58f:0x2af,_0x23896e:0x239,_0x958398:0xb9,_0x569055:0xf5,_0x530f6d:0x7f,_0x1c62fb:0x23d,_0x1f091d:0x96,_0x28882c:0x9f,_0x7a7562:0x1da,_0x21ee34:0x12,_0x4989db:0x8e,_0x31be69:0x14f,_0x33ba56:0x32b,_0x2b3c20:0x25b,_0x1eb8ec:0x2c,_0x25a28f:0xd8,_0x1a094a:0x3d,_0x1ab415:0x4e,_0x437b99:0x144,_0x42ac43:0x190,_0x3473a6:0x90,_0x38fd98:0x116,_0x13a9d1:0x24,_0x26586f:0x29e,_0x89fd22:0x31a,_0xf9bdb2:0x2c,_0x349dfc:0x124,_0x5b03d4:0x2a,_0x1c9b2c:0x140,_0x595af2:0x140,_0x58da0d:0x8a,_0x4ce398:0xee,_0x21311a:0x37,_0x5a6ae9:0x2,_0x3f1cec:0x9a,_0x7c5878:0xd3,_0xa1cc89:0x1f1,_0x411e15:0x9a,_0x472bd2:0x1fb,_0xce4499:0xd6,_0x239a37:0x2a1,_0x1d66c7:0x244,_0x14c38f:0x15b,_0xc5a915:0x24d,_0x5d8f20:0x16f,_0x4e01c0:0x1e3,_0x4626f4:0x92,_0x13796e:0x10e,_0x23864c:0x13c,_0x189ac8:0x36,_0x5dcf10:0xf7,_0x363085:0x3e,_0x3a95ad:0x116,_0x8bda7e:0x185,_0x294bcb:0x23c},_0x371922={_0x170511:0x234,_0x2708f9:0x15d,_0x4f9e26:0x1b,_0x487573:0x11a,_0x476aa6:0x244,_0x1856ac:0x416,_0x4afb2d:0x41e},_0x5d1c4b={_0xa9c129:0x43,_0x5aef9e:0x6,_0x48f780:0x142},_0x445411={_0x25a99f:0x121,_0x57fe:0x2f3,_0x1c1ebc:0x5};if(!_0x346250['engines']||_0x346250[_0x106f7a(0x29e,0x3c7,0x501,_0x5d06a5._0x537cb2)][_0x4f5d3c(_0x5d06a5._0x13b495,0x1a2,0x267,0xff)]===0x0)throw new Error(_0x106f7a(0x406,_0x5d06a5._0x271f66,_0x5d06a5._0x5d872f,0x34c));const _0x2d543d=_0x346250['name']??_0x4f5d3c(-_0x5d06a5._0x22b6db,0x2c,0xa3,_0x5d06a5._0x192176),_0x4e333c=_0x346250['lookup'];function _0x4f5d3c(_0x13b58e,_0x34ed4b,_0x13f55c,_0x2e5f1d){return _0x3342ed(_0x13b58e-_0x445411._0x25a99f,_0x13b58e,_0x34ed4b- -_0x445411._0x57fe,_0x2e5f1d-_0x445411._0x1c1ebc);}function _0x106f7a(_0x4da876,_0x85864a,_0x1a9847,_0x2d1ed5){return _0x257320(_0x4da876-_0x5d1c4b._0xa9c129,_0x85864a-_0x5d1c4b._0x5aef9e,_0x2d1ed5- -_0x5d1c4b._0x48f780,_0x1a9847);}return defineTool({'name':_0x2d543d,'description':_0x106f7a(_0x5d06a5._0x5042c7,0x220,_0x5d06a5._0x5adeed,0x1c8),'inputSchema':{'type':_0x4f5d3c(-_0x5d06a5._0x3aa0d1,-0x8f,-_0x5d06a5._0x4de44e,-0xf3),'properties':{'description':{'type':_0x4f5d3c(0x2ab,_0x5d06a5._0x4319ff,0x6a,0x265)},'query':{'type':'string'},'count':{'type':_0x106f7a(0x1e1,_0x5d06a5._0x4e0355,0x372,_0x5d06a5._0x17faab)},'offset':{'type':'number'},'domains':{'type':_0x4f5d3c(0x14d,_0x5d06a5._0x2d4e79,_0x5d06a5._0x401504,0x1aa),'items':{'type':_0x4f5d3c(_0x5d06a5._0x28f636,_0x5d06a5._0x4319ff,_0x5d06a5._0x36ea1a,_0x5d06a5._0x4740f7)}},'recencyDays':{'type':_0x4f5d3c(0x5a,0x3f,-_0x5d06a5._0x2803d6,-_0x5d06a5._0x464aa6)},'lang':{'type':_0x106f7a(_0x5d06a5._0x1d94c2,_0x5d06a5._0x7e605b,_0x5d06a5._0x1a5e8f,_0x5d06a5._0x38947c)},'region':{'type':'string'},'safe':{'type':_0x4f5d3c(0x5f,-_0x5d06a5._0x23a37c,_0x5d06a5._0x48622a,-_0x5d06a5._0x2bd755)},'type':{'type':_0x4f5d3c(_0x5d06a5._0x6f2418,0x199,_0x5d06a5._0x1c9d78,_0x5d06a5._0x2a1f87)},'hydrateMeta':{'type':'boolean'}},'required':[_0x106f7a(_0x5d06a5._0xc4a363,0x168,_0x5d06a5._0x3a70ea,0x2b2)]},async *'execute'(_0x36f4f6,_0x197175){const _0x52a31d={_0x5a7581:0x18f},_0x340ce6={_0x33e1b6:0xdc},_0x345251=_0x36f4f6['query']['trim']();if(!_0x345251)throw new ToolExecutionError(_0x28b00b(-0x13d,-0x1cc,-_0x29b175._0x49a530,-0x19a));const _0x33848a={'query':_0x345251,'count':Math[_0x28b00b(-0x127,-_0x29b175._0x27e0f1,-0x279,-_0x29b175._0x26da1a)](0x1,Math['min'](0x32,Math[_0x8fea5d(-0x1c0,-0x2df,-_0x29b175._0x25271f,-_0x29b175._0xfb2002)](_0x36f4f6[_0x8fea5d(-0x45,-_0x29b175._0x511b7b,-0x1bc,-_0x29b175._0x5627cf)]??0xa))),'offset':Math[_0x28b00b(-_0x29b175._0x1fa765,-0x1f9,0x4d,-_0x29b175._0x2ad45e)](0x0,Math[_0x28b00b(-_0x29b175._0x2e1ba0,-0x1e4,-0x1d7,-0x71)](_0x36f4f6[_0x8fea5d(_0x29b175._0x4a32d0,_0x29b175._0x57f432,_0x29b175._0x1c6376,-0xa1)]??0x0)),'domains':_0x36f4f6[_0x8fea5d(-0xa9,-0x5b,-0x1ff,-_0x29b175._0x428ffc)]??[],'recencyDays':Math[_0x28b00b(-0x127,-_0x29b175._0x23e102,-0xad,-_0x29b175._0x156856)](0x0,Math['trunc'](_0x36f4f6[_0x8fea5d(0x9a,_0x29b175._0x41471b,-_0x29b175._0x462805,_0x29b175._0x3d4ed9)]??0x0)),'lang':_0x36f4f6[_0x28b00b(-_0x29b175._0x16ef27,-_0x29b175._0x41dfcf,-_0x29b175._0x2ed770,-_0x29b175._0x286359)]??'en','region':_0x36f4f6[_0x28b00b(0x92,0x1ee,_0x29b175._0x33e584,_0x29b175._0x3e4d46)]??'','safe':_0x36f4f6[_0x8fea5d(-_0x29b175._0x29c91a,_0x29b175._0x728333,_0x29b175._0xd36efb,-_0x29b175._0x1e6887)]??!![],'type':normalizeType(_0x36f4f6[_0x8fea5d(-0x240,-0xf0,-_0x29b175._0x4e4ba5,-0x326)]),'hydrateMeta':_0x36f4f6[_0x8fea5d(-0x23c,-_0x29b175._0x25a6e1,-_0x29b175._0x2da58f,-_0x29b175._0x23896e)]??![]};let _0x10cd4f=[],_0x23441f=_0x8fea5d(-_0x29b175._0x958398,-0x84,-0x1b9,-0x9e);function _0x8fea5d(_0x319773,_0x4e9abc,_0x44615e,_0x288775){return _0x106f7a(_0x319773-0x9a,_0x4e9abc-_0x340ce6._0x33e1b6,_0x44615e,_0x319773- -0x3a9);}for(const _0x17fb66 of _0x346250[_0x28b00b(_0x29b175._0x569055,_0x29b175._0x530f6d,_0x29b175._0x1c62fb,0x162)]){try{if(isGoogleCseEngine(_0x17fb66))_0x10cd4f=await searchGoogleCse(_0x17fb66,_0x33848a,_0x197175['signal']),_0x23441f=_0x8fea5d(_0x29b175._0x1f091d,_0x29b175._0x28882c,_0x29b175._0x7a7562,-_0x29b175._0x21ee34);else{if(isOllamaEngine(_0x17fb66)){const _0x46fc6e=await searchOllama(_0x17fb66,_0x33848a,_0x197175[_0x8fea5d(-0xb4,-0x2,_0x29b175._0x4989db,-_0x29b175._0x31be69)]);_0x10cd4f=_0x46fc6e[_0x28b00b(0x3d,-0x78,0x142,0x10a)],_0x23441f=_0x46fc6e[_0x8fea5d(-0x247,-0x25c,-_0x29b175._0x33ba56,-_0x29b175._0x2b3c20)];}else{if(isTavilyEngine(_0x17fb66)){const _0x3b5565=await searchTavily(_0x17fb66,_0x33848a,_0x197175[_0x28b00b(_0x29b175._0x1eb8ec,-0x2e,-0xc2,-_0x29b175._0x25a28f)]);_0x10cd4f=_0x3b5565[_0x28b00b(_0x29b175._0x1a094a,-0x13b,-_0x29b175._0x1ab415,_0x29b175._0x437b99)],_0x23441f=_0x3b5565[_0x28b00b(-0x167,-_0x29b175._0x42ac43,-_0x29b175._0x3473a6,-0x17)];}}}if(_0x10cd4f[_0x8fea5d(0x36,0x3,0xef,0x14a)]>0x0)break;}catch(_0x490d16){if(_0x17fb66===_0x346250['engines'][_0x346250['engines'][_0x28b00b(_0x29b175._0x38fd98,0x242,_0x29b175._0x462805,_0x29b175._0x13a9d1)]-0x1])throw _0x490d16;}}_0x33848a['hydrateMeta']&&_0x10cd4f[_0x8fea5d(0x36,0x50,0x160,0xc)]>0x0&&(_0x10cd4f=await hydrateResults(_0x10cd4f,_0x33848a[_0x8fea5d(-0x23b,-0x195,-_0x29b175._0x26586f,-_0x29b175._0x89fd22)],_0x197175[_0x28b00b(_0x29b175._0xf9bdb2,_0x29b175._0x349dfc,-_0x29b175._0x5b03d4,-_0x29b175._0x1c9b2c)],_0x4e333c));const _0x2a495f=new Set();_0x10cd4f=_0x10cd4f[_0x28b00b(-0x9c,0x4c,-_0x29b175._0x595af2,_0x29b175._0x58da0d)](_0x20b4d9=>{const _0xf6730b={_0x3fc07c:0x3f,_0x2f43d8:0x114},_0x55a12e={_0x4160a3:0x22c},_0x246b5b=_0x20b4d9[_0x1abdbe(_0x371922._0x170511,_0x371922._0x2708f9,_0x371922._0x4f9e26,_0x371922._0x487573)]['toLowerCase']();function _0x1abdbe(_0xd2d2d7,_0xf7823,_0x1f8c50,_0x500d57){return _0x8fea5d(_0x500d57-_0x55a12e._0x4160a3,_0xf7823-0x14,_0xf7823,_0x500d57-0x36);}if(!_0x246b5b||_0x2a495f['has'](_0x246b5b))return![];_0x2a495f[_0x1abdbe(_0x371922._0x476aa6,_0x371922._0x1856ac,_0x371922._0x4afb2d,0x2b3)](_0x246b5b);function _0x48d844(_0x19c215,_0x5e7518,_0x1c6158,_0x43dfc2){return _0x8fea5d(_0x19c215-0x25a,_0x5e7518-_0xf6730b._0x3fc07c,_0x1c6158,_0x43dfc2-_0xf6730b._0x2f43d8);}return!![];}),_0x10cd4f=_0x10cd4f[_0x28b00b(-_0x29b175._0x4ce398,-0x7b,0x36,-0xfc)]((_0x53505e,_0x33d54e)=>({..._0x53505e,'source':{..._0x53505e[_0x8fea5d(-0x121,0x31,-0x1c9,-0x18b)],'rank':_0x33d54e+0x1}}));const _0x3444a0={};if(_0x33848a[_0x28b00b(_0x29b175._0x21311a,_0x29b175._0x5a6ae9,-0xb6,0xa0)][_0x28b00b(0x116,0xc7,0x143,0x51)]>0x0)_0x3444a0['domains']=_0x33848a['domains'];if(_0x33848a[_0x8fea5d(_0x29b175._0x3f1cec,-0x1b,-_0x29b175._0x7c5878,_0x29b175._0xa1cc89)]>0x0)_0x3444a0[_0x8fea5d(_0x29b175._0x411e15,_0x29b175._0x472bd2,-0x8b,-_0x29b175._0xce4499)]=_0x33848a[_0x28b00b(0x17a,_0x29b175._0x239a37,0x126,_0x29b175._0x1d66c7)];if(_0x33848a[_0x28b00b(-_0x29b175._0x14c38f,-0x262,-0x1e4,-_0x29b175._0xc5a915)]!=='en')_0x3444a0[_0x8fea5d(-0x23b,-_0x29b175._0x5d8f20,-0x167,-0x279)]=_0x33848a[_0x8fea5d(-0x23b,-0x1f3,-0x382,-_0x29b175._0x4e01c0)];if(_0x33848a[_0x28b00b(0x92,0xab,0x1c1,0x1f)])_0x3444a0[_0x28b00b(_0x29b175._0x4626f4,-0x2b,_0x29b175._0x13796e,0xe)]=_0x33848a[_0x28b00b(_0x29b175._0x4626f4,-0x4c,0x10d,_0x29b175._0x23864c)];yield createToolOutput(formatResults(_0x10cd4f),{'engine':_0x23441f,'count':_0x10cd4f[_0x8fea5d(_0x29b175._0x189ac8,_0x29b175._0x511b7b,-0x79,0x1)],'items':_0x10cd4f,'query':_0x33848a[_0x8fea5d(-_0x29b175._0x5dcf10,-0xcc,_0x29b175._0x363085,-0x9a)],...Object[_0x28b00b(-0xfb,-0x53,-0x83,-0xfb)](_0x3444a0)[_0x28b00b(_0x29b175._0x3a95ad,-0xc,_0x29b175._0x8bda7e,0xda)]>0x0?{'appliedFilters':_0x3444a0}:{},'offset':_0x33848a['offset'],'totalRequested':_0x33848a['count'],'hydrated':_0x33848a[_0x8fea5d(-_0x29b175._0x294bcb,-0x15c,-0x279,-_0x29b175._0x2e1ba0)]});function _0x28b00b(_0x27af3a,_0x51a4fd,_0x59c7d3,_0x3ed54b){return _0x106f7a(_0x27af3a-_0x52a31d._0x5a7581,_0x51a4fd-0x10f,_0x51a4fd,_0x27af3a- -0x2c9);}return void 0x0;}});}export{BackgroundProcessRegistry,ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashOutputTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createKillShellTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};