@nuvin/agent-core 0.0.0-rc.2 → 0.0.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(_0x4f6ca3,_0x114950){const _0x25f1e1={_0x48f3c7:0x23,_0x47a822:0xd,_0x94e15e:0x14,_0x2e461e:0x15a,_0x1f0458:0x150,_0x23846a:0x19,_0x15eab3:0x15,_0x590a74:0x79,_0x2df47f:0x90,_0x1b7a95:0x35,_0x3c0c9b:0x45,_0x5b1af4:0x13,_0x5bb329:0x23,_0x4cef08:0x63,_0x30a460:0x192,_0x1b8ab0:0x167,_0x355834:0x131,_0x2cbcf5:0x70,_0x483438:0x93,_0x583f99:0x1a4,_0x123553:0x178,_0x1a5849:0x1af,_0xd71fa5:0x18c,_0x412304:0x2a,_0x4c9604:0xd,_0x1dd434:0x7,_0x1b1a6a:0x15},_0x1f39bc={_0x42d2d9:0x7a},_0x31c0e4=_0x4f6ca3();function _0x5dea85(_0x359044,_0x4ab2bd,_0x22c621,_0x2c80fb){return _0x2078(_0x359044- -0xb2,_0x22c621);}function _0x1f2636(_0x217f38,_0x3c9b4d,_0x76727a,_0x5a84b4){return _0x2078(_0x76727a-_0x1f39bc._0x42d2d9,_0x3c9b4d);}while(!![]){try{const _0x6a22bb=-parseInt(_0x5dea85(0x9,-_0x25f1e1._0x48f3c7,_0x25f1e1._0x47a822,-_0x25f1e1._0x94e15e))/0x1+-parseInt(_0x1f2636(_0x25f1e1._0x2e461e,_0x25f1e1._0x1f0458,0x15d,0x17d))/0x2+parseInt(_0x5dea85(_0x25f1e1._0x23846a,_0x25f1e1._0x15eab3,0x45,0x3b))/0x3*(-parseInt(_0x5dea85(0x7c,_0x25f1e1._0x590a74,_0x25f1e1._0x2df47f,0x7c))/0x4)+parseInt(_0x5dea85(_0x25f1e1._0x1b7a95,_0x25f1e1._0x3c0c9b,_0x25f1e1._0x5b1af4,0x5d))/0x5+-parseInt(_0x5dea85(_0x25f1e1._0x5bb329,0x58,_0x25f1e1._0x4cef08,-0xa))/0x6+-parseInt(_0x1f2636(0x16d,_0x25f1e1._0x30a460,_0x25f1e1._0x1b8ab0,_0x25f1e1._0x355834))/0x7*(parseInt(_0x5dea85(0x73,_0x25f1e1._0x2cbcf5,_0x25f1e1._0x483438,0xbb))/0x8)+parseInt(_0x1f2636(_0x25f1e1._0x583f99,_0x25f1e1._0x123553,_0x25f1e1._0x1a5849,_0x25f1e1._0xd71fa5))/0x9*(parseInt(_0x5dea85(_0x25f1e1._0x412304,_0x25f1e1._0x4c9604,-_0x25f1e1._0x1dd434,-_0x25f1e1._0x1b1a6a))/0xa);if(_0x6a22bb===_0x114950)break;else _0x31c0e4['push'](_0x31c0e4['shift']());}catch(_0x51a2f1){_0x31c0e4['push'](_0x31c0e4['shift']());}}}(_0x4f63,0x92cd8));import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage}from'./chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x53e4f3){const _0xb570e4={_0x3d583b:0x20d,_0x20d5f2:0x203,_0x1f5824:0x1db},_0x155282={_0x457d33:0x2be};function _0x3714a9(_0x31b6c7,_0x17aa35,_0x38bfaa,_0x20533a){return _0x2078(_0x31b6c7- -_0x155282._0x457d33,_0x17aa35);}function _0x83461d(_0x539d0b,_0x1d23ba,_0x223e27,_0x4fd3f8){return _0x2078(_0x4fd3f8-0x116,_0x539d0b);}return typeof _0x53e4f3===_0x83461d(0x207,_0xb570e4._0x3d583b,_0xb570e4._0x20d5f2,0x245)&&_0x53e4f3!==null&&!Array[_0x3714a9(-0x1f8,-_0xb570e4._0x1f5824,-0x1fc,-0x1f5)](_0x53e4f3);}function isToolOutputEnvelope(_0xc3caee){const _0xf064a9={_0x355a5f:0x312,_0x462f7e:0x2df,_0x5b0495:0x30b,_0x3270f1:0x2dc,_0x15c464:0x2e2,_0x13a68:0x355,_0x341489:0x31e,_0x39bded:0x352},_0x36c80e={_0x56d383:0x222};if(typeof _0xc3caee!=='object'||_0xc3caee===null||Array[_0x3c268c(_0xf064a9._0x355a5f,_0xf064a9._0x462f7e,_0xf064a9._0x5b0495,0x2e8)](_0xc3caee))return![];function _0x3c268c(_0x3b7a1d,_0x581e9c,_0x519f50,_0x5b8546){return _0x2078(_0x5b8546-_0x36c80e._0x56d383,_0x581e9c);}function _0x52549e(_0x1c2f8b,_0x4dab7d,_0xf66d88,_0x2771e9){return _0x2078(_0xf66d88-0x2b0,_0x1c2f8b);}if(typeof _0xc3caee[_0x3c268c(_0xf064a9._0x3270f1,_0xf064a9._0x15c464,0x362,0x325)]!==_0x3c268c(0x33b,_0xf064a9._0x13a68,_0xf064a9._0x341489,0x310))return![];const _0xcf3319=_0xc3caee[_0x3c268c(0x31a,0x38a,_0xf064a9._0x39bded,0x363)];return _0xcf3319===void 0x0||isJsonObject(_0xcf3319);}function validateAgainstSchema(_0x12f3da,_0x516ed6,_0x4afc5d){const _0x52ab6d={_0x220e04:0x13,_0x42f30a:0xc,_0xc3234f:0x1,_0x2d8293:0x15,_0x51add7:0x4da,_0x6f2296:0x4ac,_0x54e063:0x50d,_0x15d56c:0x4eb,_0x30f982:0x4fd,_0x46a9e8:0x523,_0x39cc7f:0x528,_0x49f689:0x492,_0x49df23:0x4e9,_0x5ce322:0x4ae,_0x2aad7c:0x46e,_0x1e1b3c:0x36,_0x5f01c2:0x4c9,_0x136129:0x84,_0x10e910:0x40,_0x37a425:0x459,_0xfff64d:0x49b,_0x32a5c7:0x465,_0x3e1d7c:0x513,_0x1e6b42:0x4dd,_0x4c7142:0x4b4,_0x168006:0x4b0,_0x2b355b:0x4a8,_0x5eb357:0x528,_0x3b722e:0x50d,_0x42ca26:0x4ec,_0x586bfd:0xa,_0x368045:0xa,_0x4301e9:0x50,_0x4a5c2d:0x12,_0x22e901:0x3b,_0x1cc6e1:0x51e,_0x480075:0x33,_0xa08692:0x69},_0x409084={_0x252e70:0x1ad,_0x322598:0x1f1,_0x4e59a4:0x204},_0x200985={_0x18c58b:0x6ca},_0x403051={_0x3b6067:0xed},_0x36e2be={_0x2a2a9b:0x3e4};function _0x192182(_0x4195b0,_0xe88522,_0x28fc37,_0x420f9e){return _0x2078(_0x28fc37-_0x36e2be._0x2a2a9b,_0xe88522);}function _0xffeb63(_0x32f37b,_0x23adc6,_0x2cdd87,_0x9c9ed0){return _0x2078(_0x2cdd87- -_0x403051._0x3b6067,_0x9c9ed0);}switch(_0x4afc5d[_0xffeb63(0x1f,-_0x52ab6d._0x220e04,-0x10,0xc)]){case _0xffeb63(0x27,_0x52ab6d._0x42f30a,_0x52ab6d._0xc3234f,_0x52ab6d._0x2d8293):if(typeof _0x516ed6!==_0x192182(_0x52ab6d._0x51add7,0x4a6,0x4d2,_0x52ab6d._0x6f2296))throw new Error(_0x192182(0x537,0x4e3,_0x52ab6d._0x54e063,_0x52ab6d._0x15d56c)+_0x12f3da+':\x20expected\x20string');return;case _0x192182(_0x52ab6d._0x30f982,0x519,_0x52ab6d._0x46a9e8,_0x52ab6d._0x39cc7f):if(typeof _0x516ed6!=='number')throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x12f3da+_0x192182(_0x52ab6d._0x49f689,_0x52ab6d._0x49df23,_0x52ab6d._0x5ce322,_0x52ab6d._0x2aad7c));return;case _0xffeb63(-0x25,_0x52ab6d._0x1e1b3c,0x10,-0x13):if(typeof _0x516ed6!=='boolean')throw new Error(_0x192182(0x504,_0x52ab6d._0x30f982,0x50d,_0x52ab6d._0x5f01c2)+_0x12f3da+_0xffeb63(0x3b,_0x52ab6d._0x136129,_0x52ab6d._0x10e910,0x14));return;case _0x192182(0x461,_0x52ab6d._0x37a425,_0x52ab6d._0xfff64d,_0x52ab6d._0x32a5c7):if(!Array['isArray'](_0x516ed6))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x12f3da+_0x192182(_0x52ab6d._0x3e1d7c,0x4ae,_0x52ab6d._0x1e6b42,0x496));_0x516ed6[_0x192182(_0x52ab6d._0x4c7142,_0x52ab6d._0x168006,_0x52ab6d._0x2b355b,0x4e5)]((_0x176710,_0x82ea1)=>{function _0x1d518a(_0x824925,_0x2d6cbe,_0x49b834,_0x5bed8c){return _0x192182(_0x824925-0x1b7,_0x5bed8c,_0x49b834- -_0x200985._0x18c58b,_0x5bed8c-0x16);}validateAgainstSchema(_0x12f3da+'['+_0x82ea1+']',_0x176710,_0x4afc5d[_0x1d518a(-0x1e9,-_0x409084._0x252e70,-_0x409084._0x322598,-_0x409084._0x4e59a4)]);});return;case'object':if(!isJsonObject(_0x516ed6))throw new Error(_0x192182(_0x52ab6d._0x5eb357,0x4e1,_0x52ab6d._0x3b722e,_0x52ab6d._0x42ca26)+_0x12f3da+_0xffeb63(_0x52ab6d._0x586bfd,-0x22,_0x52ab6d._0x368045,_0x52ab6d._0x4301e9));for(const _0x5033f9 of _0x4afc5d[_0xffeb63(_0x52ab6d._0x4a5c2d,0x26,0xf,-_0x52ab6d._0x22e901)]??[]){if(!(_0x5033f9 in _0x516ed6))throw new Error(_0x192182(0x4cd,_0x52ab6d._0x1cc6e1,0x50d,0x51a)+_0x12f3da+':\x20missing\x20required\x20field\x20\x22'+_0x5033f9+'\x22');}for(const [_0x202762,_0x497363]of Object[_0xffeb63(-_0x52ab6d._0x42f30a,0xf,-_0x52ab6d._0x480075,-0x45)](_0x4afc5d[_0xffeb63(-_0x52ab6d._0xa08692,-0x5e,-0x2f,-0x38)])){_0x202762 in _0x516ed6&&validateAgainstSchema(_0x12f3da+'.'+_0x202762,_0x516ed6[_0x202762],_0x497363);}}}function normalizeToolOutputValue(_0xc05efc){const _0x437669={_0x1a204d:0x7f,_0x9e3a98:0x124,_0x484ee4:0x154,_0x55b9d5:0x13d,_0x2124e1:0x1c6,_0x3198d7:0x1d8,_0x16373b:0x1bd,_0x36f241:0x1a5,_0xef976:0x68,_0x1fe4a5:0x128,_0x3a81f3:0x157,_0x2037ee:0x14a},_0x524640={_0x51b815:0x8e};if(isToolOutputEnvelope(_0xc05efc))return{'output':_0xc05efc[_0x989343(0x87,0x7f,_0x437669._0x1a204d,0x64)],'structured':_0xc05efc['structured']??{'value':_0xc05efc['output']},..._0xc05efc['content']!==void 0x0?{'content':_0xc05efc[_0x3f1669(_0x437669._0x9e3a98,0x117,0x15c,0x183)]}:{}};function _0x989343(_0xa1ed10,_0x380468,_0x24c90e,_0x3fbe8f){return _0x2078(_0x380468- -0x84,_0xa1ed10);}if(typeof _0xc05efc===_0x3f1669(0x15e,_0x437669._0x484ee4,0x17c,_0x437669._0x55b9d5))return{'output':_0xc05efc,'structured':{'value':_0xc05efc}};if(typeof _0xc05efc===_0x3f1669(_0x437669._0x2124e1,_0x437669._0x3198d7,_0x437669._0x16373b,_0x437669._0x36f241)&&_0xc05efc!==null&&!Array[_0x989343(0x71,0x42,_0x437669._0xef976,0x5f)](_0xc05efc))return{'output':JSON[_0x3f1669(0x12a,_0x437669._0x1fe4a5,0x169,0x149)](_0xc05efc,null,0x2),'structured':_0xc05efc};function _0x3f1669(_0x506dbf,_0x164e26,_0x36de3e,_0x4471f9){return _0x2078(_0x36de3e-_0x524640._0x51b815,_0x164e26);}return{'output':JSON[_0x3f1669(_0x437669._0x3a81f3,0x162,0x169,_0x437669._0x2037ee)](_0xc05efc,null,0x2),'structured':{'value':_0xc05efc}};}function createToolOutput(_0x47c60d,_0xc1a21b={'value':_0x47c60d},_0xc9c529){return{'output':_0x47c60d,'structured':_0xc1a21b,..._0xc9c529!==void 0x0?{'content':_0xc9c529}:{}};}var ToolExecutionError=class extends Error{['structured'];constructor(_0x5589f5,_0x6d5e4={}){const _0x12fd66={_0xa3a0cb:0x48d,_0x2c19dc:0x4a4};function _0x3c730a(_0x19f6c9,_0x323e6a,_0x475096,_0x800662){return _0x2078(_0x475096-0x39a,_0x323e6a);}super(_0x5589f5),this['name']=_0x3c730a(0x4a3,0x46e,_0x12fd66._0xa3a0cb,_0x12fd66._0x2c19dc),this['structured']=_0x6d5e4;}};function defineTool(_0x1f83bc){return _0x1f83bc;}var ToolRegistry=class{[_0x5c9f18(0x59,0x91,0x9b,0x2e)]=new Map();constructor(_0x42bee0=[]){const _0x494445={_0x1c376f:0xc0,_0x41bba6:0xd5,_0x45c3ee:0xbd,_0xb1423f:0xf1},_0x347a66={_0x2b8529:0x169,_0x31da3a:0x171};function _0x239e27(_0x56d23b,_0x43908f,_0x5818b6,_0x1990b7){return _0x5c9f18(_0x43908f- -0x11f,_0x43908f-_0x347a66._0x2b8529,_0x5818b6,_0x1990b7-_0x347a66._0x31da3a);}for(const _0x4f5acf of _0x42bee0){this[_0x239e27(-_0x494445._0x1c376f,-_0x494445._0x41bba6,-_0x494445._0x45c3ee,-_0x494445._0xb1423f)](_0x4f5acf);}}['register'](_0x519f6f){const _0x417187={_0xe52a37:0x27f,_0x328b31:0x23a,_0x5a9b28:0x1f0,_0x333b52:0x278,_0x855b8a:0x286,_0x2afb74:0x252},_0x497623={_0x5a7d63:0x1a3},_0x26f7be={_0x3f5a84:0x129};function _0x91b9b7(_0x27bc61,_0x7a2a0f,_0x3e5bc3,_0xcde1fe){return _0x5c9f18(_0x3e5bc3- -0x2e4,_0x7a2a0f-_0x26f7be._0x3f5a84,_0xcde1fe,_0xcde1fe-0x198);}function _0x42283e(_0x6b8aff,_0x5b43a6,_0x4a579e,_0x57a8cb){return _0x5c9f18(_0x6b8aff-_0x497623._0x5a7d63,_0x5b43a6-0x177,_0x5b43a6,_0x57a8cb-0x16a);}this[_0x91b9b7(-0x283,-_0x417187._0xe52a37,-0x28b,-0x2b5)][_0x42283e(0x1f4,_0x417187._0x328b31,0x230,_0x417187._0x5a9b28)](_0x519f6f[_0x91b9b7(-0x29f,-_0x417187._0x333b52,-_0x417187._0x855b8a,-_0x417187._0x2afb74)],_0x519f6f);}[_0x4bc00b(0x1de,0x1d3,0x19c,0x1bf)](_0x13ac0c){const _0x291516={_0x15d2b0:0x1f2,_0xed2788:0x248,_0x1895c4:0x2c7},_0x280846={_0x438695:0x49d,_0x2d6f1d:0x11b},_0x1da10d={_0x5e6e9d:0x284,_0x5ee499:0x78,_0x4d8636:0x76};function _0xdf7af1(_0x3379f2,_0x198214,_0x51c491,_0x33e2b5){return _0x5c9f18(_0x3379f2- -_0x1da10d._0x5e6e9d,_0x198214-_0x1da10d._0x5ee499,_0x198214,_0x33e2b5-_0x1da10d._0x4d8636);}function _0x18fa4e(_0x2dcba6,_0x4661a5,_0x4494b3,_0x3cbc40){return _0x5c9f18(_0x3cbc40-_0x280846._0x438695,_0x4661a5-0x167,_0x2dcba6,_0x3cbc40-_0x280846._0x2d6f1d);}return this[_0xdf7af1(-0x22b,-_0x291516._0x15d2b0,-0x22a,-_0x291516._0xed2788)][_0xdf7af1(-0x28b,-0x289,-0x2c5,-_0x291516._0x1895c4)](_0x13ac0c);}[_0x4bc00b(0x24b,0x23f,0x252,0x251)](){const _0x21199f={_0x319733:0xab,_0x55d51c:0x7d,_0x3cb10c:0x75},_0x8e29d4={_0xf809ab:0x24,_0x586e02:0x2a,_0x55593e:0x13d};function _0x3f359f(_0x460032,_0x590d23,_0x5dd72a,_0x4e4459){return _0x5c9f18(_0x590d23-_0x8e29d4._0xf809ab,_0x590d23-_0x8e29d4._0x586e02,_0x4e4459,_0x4e4459-_0x8e29d4._0x55593e);}return[...this[_0x3f359f(_0x21199f._0x319733,_0x21199f._0x55d51c,0x6c,_0x21199f._0x3cb10c)]['values']()];}['listToolSchemas'](){const _0x35354b={_0xec84b5:0x54e,_0xabfe69:0x4df,_0x57ae03:0x50a},_0x510511={_0xa0febb:0x157,_0x1b3f91:0x16c,_0x5d9036:0x154,_0x253450:0x189},_0x435417={_0x1c498b:0x14d,_0x322658:0x6a0},_0x5831c2={_0x1e9e98:0xb,_0x3b70b1:0xd8,_0xe4be76:0x44c},_0x49a732={_0x5606f2:0x4a5,_0x28a90e:0x114};function _0x3b1478(_0x3d0144,_0x405094,_0x390e49,_0x2c6dc0){return _0x5c9f18(_0x2c6dc0-_0x49a732._0x5606f2,_0x405094-0x154,_0x405094,_0x2c6dc0-_0x49a732._0x28a90e);}return this[_0x3b1478(_0x35354b._0xec84b5,_0x35354b._0xabfe69,_0x35354b._0x57ae03,0x50a)]()['map'](_0x412746=>{function _0x3cbfbc(_0x49fb87,_0xf61a7b,_0x48bef9,_0x46c027){return _0x3b1478(_0x49fb87-_0x5831c2._0x1e9e98,_0x48bef9,_0x48bef9-_0x5831c2._0x3b70b1,_0x49fb87- -_0x5831c2._0xe4be76);}function _0x1704fc(_0x25f5f8,_0xbd998f,_0x21d2ed,_0x433b88){return _0x3b1478(_0x25f5f8-_0x435417._0x1c498b,_0x21d2ed,_0x21d2ed-0x1aa,_0x25f5f8- -_0x435417._0x322658);}return{'name':_0x412746[_0x1704fc(-0x19d,-_0x510511._0xa0febb,-_0x510511._0x1b3f91,-0x18c)],'description':_0x412746[_0x1704fc(-0x18d,-0x18b,-_0x510511._0x5d9036,-_0x510511._0x253450)],'input_schema':_0x412746[_0x1704fc(-0x206,-0x1c8,-0x22a,-0x1f0)]};});}};function validateToolInput(_0x9ff9c,_0x47b263){return validateAgainstSchema('input',_0x9ff9c,_0x47b263),_0x9ff9c;}function deriveFinalToolOutput(_0x287aa3){const _0x167798={_0x326a4b:0xf1,_0x2f8f1f:0xbb,_0x21bd26:0x1ab,_0x174e18:0xa5,_0x2c983d:0xec,_0xa4b4fe:0xd8,_0x2505d2:0x156,_0x25c131:0x16e,_0x2adde2:0x1ad,_0x427ff4:0xfe,_0x306480:0xc6,_0xc6ecd8:0xc8,_0x1149c:0xaf,_0x30968b:0x169,_0x593ed7:0x1b3,_0x27cf14:0xed,_0x1aae41:0xe4,_0x155a05:0x10b,_0x16d7e3:0x129},_0x436ff2={_0x3e96c3:0x64,_0x5b02cb:0x1d6},_0x1fd031={_0x36afbe:0x77};if(_0x287aa3[_0x49be43(-_0x167798._0x326a4b,-0x105,-0xe4,-_0x167798._0x2f8f1f)]===0x0)return{'output':'','structured':{}};function _0x49be43(_0x414de8,_0xf1b257,_0x425322,_0x2801c7){return _0x5c9f18(_0x425322- -0xec,_0xf1b257-_0x1fd031._0x36afbe,_0xf1b257,_0x2801c7-0xaf);}if(_0x287aa3['length']===0x1)return{'output':_0x287aa3[0x0][_0x7e8d6a(0x19d,0x1c7,_0x167798._0x21bd26,0x179)],'structured':_0x287aa3[0x0]['structured'],..._0x287aa3[0x0][_0x49be43(-0xc4,-_0x167798._0x174e18,-_0x167798._0x2c983d,-_0x167798._0xa4b4fe)]!==void 0x0?{'content':_0x287aa3[0x0][_0x7e8d6a(_0x167798._0x2505d2,_0x167798._0x25c131,0x176,_0x167798._0x2adde2)]}:{}};const _0x1c937e=_0x287aa3[_0x49be43(-0xa0,-_0x167798._0x427ff4,-_0x167798._0x306480,-0x83)](_0x5bba14=>_0x5bba14['content']!==void 0x0);function _0x7e8d6a(_0x1f975f,_0x534731,_0x24c31f,_0x14b271){return _0x4bc00b(_0x1f975f-0x1d1,_0x24c31f- -_0x436ff2._0x3e96c3,_0x534731,_0x14b271-_0x436ff2._0x5b02cb);}return{'output':_0x287aa3[_0x49be43(-0x8f,-_0x167798._0xc6ecd8,-_0x167798._0x1149c,-0x91)](_0x2b9682=>_0x2b9682[_0x49be43(-0xe8,-0xa5,-0xb7,-0xbb)])[_0x7e8d6a(0x17f,0x198,_0x167798._0x30968b,0x172)](''),'structured':{'chunks':_0x287aa3[_0x7e8d6a(0x1ef,0x1e9,_0x167798._0x593ed7,_0x167798._0x25c131)](_0x9b6093=>_0x9b6093[_0x7e8d6a(0x1de,0x1fd,0x1e9,0x1bd)])},..._0x1c937e[_0x49be43(-_0x167798._0x27cf14,-0xb9,-_0x167798._0x1aae41,-_0x167798._0x155a05)]===0x1?{'content':_0x1c937e[0x0][_0x49be43(-0x104,-0xa8,-_0x167798._0x2c983d,-_0x167798._0x16d7e3)]}:{}};}function _0x5c9f18(_0x16cc17,_0x96ebe4,_0x4ec5ff,_0x136ce6){const _0x3633ae={_0x393067:0xce};return _0x2078(_0x16cc17- -_0x3633ae._0x393067,_0x4ec5ff);}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x4fcf4e,_0x2f6b7c,_0x1ad496,_0x1bac81=[]){const _0x143668={_0x55c81e:0x1b,_0x5291d4:0x9,_0x46ae6d:0x19,_0x3ba0f0:0x2fc},_0x5743eb={_0x5d704b:0x1ef},_0x3f6bde={_0x2e9253:0x1e5,_0x4c5340:0xef};function _0x560096(_0x5075ed,_0x5364ba,_0x2c51ef,_0x4f4835){return _0x4bc00b(_0x5075ed-_0x3f6bde._0x2e9253,_0x2c51ef-_0x3f6bde._0x4c5340,_0x4f4835,_0x4f4835-0x2);}function _0x5de737(_0x15d263,_0x5c255a,_0x160d90,_0x72b314){return _0x4bc00b(_0x15d263-_0x5743eb._0x5d704b,_0x160d90- -0x251,_0x15d263,_0x72b314-0x86);}return{'callId':_0x4fcf4e['id'],'toolName':_0x4fcf4e[_0x5de737(-_0x143668._0x55c81e,_0x143668._0x5291d4,-_0x143668._0x46ae6d,-0x13)],'status':_0x560096(_0x143668._0x3ba0f0,0x358,0x314,0x35b),'output':_0x2f6b7c,'structured':_0x1ad496,'chunks':_0x1bac81,'meta':createToolMeta()};}function createRejectedToolResult(_0x266fd7,_0x8e4741){const _0x538f97={_0xbb939:0x5c,_0x4a0951:0xa2,_0x33e90e:0x95,_0x3ebc76:0x3e,_0x4163b0:0xa1,_0x19f9ff:0x104,_0x4d685f:0xcd,_0xceec8a:0x35,_0x443c18:0xd1,_0xd4b687:0x108,_0x38c668:0xed},_0x152f1b={_0xbc77de:0x12f},_0x4f1602={_0x8c8bc1:0x2a1};function _0x3819ac(_0x2077ea,_0x282524,_0x25a234,_0xe0b94d){return _0x4bc00b(_0x2077ea-0x179,_0xe0b94d- -_0x4f1602._0x8c8bc1,_0x2077ea,_0xe0b94d-0x30);}function _0x323ff1(_0x50df21,_0x2af7a0,_0x91aaaf,_0x1cbbf9){return _0x5c9f18(_0x1cbbf9- -0xf5,_0x2af7a0-_0x152f1b._0xbc77de,_0x91aaaf,_0x1cbbf9-0x38);}const _0x3d9ed4=_0x8e4741?.['trim']()['length']?_0x8e4741:_0x3819ac(-_0x538f97._0xbb939,-_0x538f97._0x4a0951,-0xca,-_0x538f97._0x33e90e)+_0x266fd7[_0x3819ac(-_0x538f97._0x3ebc76,-0x8f,-_0x538f97._0x4163b0,-0x69)];return createErrorToolResult(_0x266fd7,_0x3d9ed4,{'error':_0x3819ac(-0x95,-0xbe,-_0x538f97._0x19f9ff,-_0x538f97._0x4d685f),..._0x8e4741?.[_0x323ff1(-0x3c,-0x7f,-_0x538f97._0xceec8a,-0x7e)]()[_0x323ff1(-0x124,-_0x538f97._0x443c18,-_0x538f97._0xd4b687,-_0x538f97._0x38c668)]?{'reason':_0x8e4741}:{}});}function createAbortedToolResult(_0x31d5e8,_0x323f18,_0x50f4d3=[]){const _0x505e94={_0x1dd36d:0x24},_0xaf900e={_0x5c0e20:0x1c7},_0x2e5d2c=toAbortError(_0x323f18);function _0x2a6b76(_0x92e624,_0x548c19,_0x514343,_0x591b07){return _0x4bc00b(_0x92e624-_0xaf900e._0x5c0e20,_0x514343- -0x421,_0x591b07,_0x591b07-0x15a);}function _0xab7193(_0x30bdd0,_0x33df7f,_0x5c8fe7,_0xf59678){return _0x5c9f18(_0xf59678-_0x505e94._0x1dd36d,_0x33df7f-0x64,_0x30bdd0,_0xf59678-0x116);}return createErrorToolResult(_0x31d5e8,_0x2e5d2c[_0x2a6b76(-0x22f,-0x225,-0x25d,-0x257)],{'error':_0x2e5d2c[_0x2a6b76(-0x283,-0x243,-0x25d,-0x26d)],'aborted':!![]},_0x50f4d3);}function createSuccessToolResult(_0x54e31d,_0x5dfc85,_0x422bfe){const _0x5d7d36={_0x3745f6:0x208,_0x2564a6:0x1df,_0x1c6c2b:0x1e3,_0x182f8e:0x1b2,_0x3337ac:0x48f,_0x5ce72e:0x477,_0x2711a3:0x44b,_0x2628b4:0x404,_0x25d74d:0x3d1,_0x2bd6d2:0x437},_0x15a0b9={_0x395830:0x1c7,_0x3b9b87:0x186,_0x5734a1:0x112},_0x328d30={_0xc3222d:0x22a};function _0x1e918e(_0x4acc5d,_0x482e9d,_0x94e4ed,_0x406cd6){return _0x4bc00b(_0x4acc5d-0x17c,_0x482e9d-_0x328d30._0xc3222d,_0x4acc5d,_0x406cd6-0x1d7);}function _0x35788d(_0x172114,_0x1e177b,_0x34a86d,_0x421aa2){return _0x5c9f18(_0x421aa2-_0x15a0b9._0x395830,_0x1e177b-_0x15a0b9._0x3b9b87,_0x34a86d,_0x421aa2-_0x15a0b9._0x5734a1);}return{'callId':_0x54e31d['id'],'toolName':_0x54e31d[_0x35788d(_0x5d7d36._0x3745f6,0x265,_0x5d7d36._0x2564a6,0x225)],'status':'ok','output':_0x5dfc85[_0x35788d(0x1ec,_0x5d7d36._0x1c6c2b,_0x5d7d36._0x182f8e,0x1fc)],'structured':_0x5dfc85[_0x1e918e(_0x5d7d36._0x3337ac,_0x5d7d36._0x5ce72e,0x46d,0x4b8)],..._0x5dfc85[_0x1e918e(_0x5d7d36._0x2711a3,_0x5d7d36._0x2628b4,0x3e0,_0x5d7d36._0x25d74d)]!==void 0x0?{'content':_0x5dfc85[_0x1e918e(_0x5d7d36._0x2bd6d2,0x404,0x3e5,0x3e4)]}:{},'chunks':_0x422bfe,'meta':createToolMeta()};}function createUnknownToolResult(_0x31ec12){const _0x9cf9a6={_0x54c56e:0x434,_0x239bfd:0x3cd},_0x1b355c={_0x5a19a3:0x1ef,_0x411333:0x6c};function _0x4bc6fe(_0x287b71,_0x18b2b7,_0x34e8f0,_0x526836){return _0x5c9f18(_0x34e8f0-0x186,_0x18b2b7-_0x1b355c._0x5a19a3,_0x287b71,_0x526836-_0x1b355c._0x411333);}function _0x319472(_0x17e97d,_0x1a1f2d,_0x3f1114,_0x173a68){return _0x4bc00b(_0x17e97d-0x59,_0x1a1f2d-0x1d8,_0x3f1114,_0x173a68-0x1d5);}return createErrorToolResult(_0x31ec12,_0x319472(0x448,0x3ff,0x3c6,_0x9cf9a6._0x54c56e)+_0x31ec12[_0x319472(0x3eb,0x410,_0x9cf9a6._0x239bfd,0x410)],{'error':'unknown_tool'});}function isDispatchDecision(_0x156a00){const _0x20e4b3={_0x1c9b82:0xa,_0x79c269:0x21,_0x5b80c6:0x9e,_0x207188:0x172,_0x5ca078:0x172},_0x4690a2={_0x25fafa:0xbd},_0x39244c={_0x1308a4:0x1d0};function _0x537069(_0x2fb98b,_0x2180f4,_0x342bfc,_0x39b731){return _0x5c9f18(_0x2fb98b- -0x5f,_0x2180f4-0x69,_0x39b731,_0x39b731-_0x39244c._0x1308a4);}if(typeof _0x156a00!=='object'||_0x156a00===null)return![];function _0x308236(_0x28c07f,_0xe136c9,_0x5be35c,_0x4b0034){return _0x4bc00b(_0x28c07f-0x13b,_0x4b0034- -_0x4690a2._0x25fafa,_0x5be35c,_0x4b0034-0x110);}return _0x156a00[_0x537069(-_0x20e4b3._0x1c9b82,_0x20e4b3._0x79c269,-0xf,-0x27)]===_0x537069(-0x60,-0x8e,-0x80,-_0x20e4b3._0x5b80c6)||_0x156a00[_0x308236(0x197,_0x20e4b3._0x207188,0x140,_0x20e4b3._0x5ca078)]==='run';}function normalizeExecutionError(_0x334bfb){const _0x43861e={_0x5693c6:0x487,_0x3b744f:0x3db,_0x222035:0x3d5,_0x5d8aa8:0x405,_0xd50577:0x400},_0x22eb95={_0xa9c200:0xfd,_0x21aaa4:0x3ae};if(_0x334bfb instanceof ToolExecutionError)return{'errorMessage':_0x334bfb['message'],'structured':{'error':_0x334bfb['message'],..._0x334bfb[_0x403789(0x47b,_0x43861e._0x5693c6,0x45e,0x49a)]}};if(_0x334bfb instanceof Error)return{'errorMessage':_0x334bfb[_0x403789(_0x43861e._0x3b744f,0x403,_0x43861e._0x222035,0x3c3)],'structured':{'error':_0x334bfb[_0x403789(_0x43861e._0x5d8aa8,_0x43861e._0xd50577,0x3d5,0x3f3)]}};const _0x3698ef=String(_0x334bfb);function _0x21b5c5(_0x4ebfdd,_0x5d0ccd,_0x17583d,_0x37488e){return _0x4bc00b(_0x4ebfdd-_0x22eb95._0xa9c200,_0x5d0ccd- -_0x22eb95._0x21aaa4,_0x17583d,_0x37488e-0x71);}function _0x403789(_0x5c5df9,_0x3459df,_0x4a2e1f,_0x8a4f4b){return _0x4bc00b(_0x5c5df9-0xb3,_0x4a2e1f-0x211,_0x8a4f4b,_0x8a4f4b-0xc2);}return{'errorMessage':_0x3698ef,'structured':{'error':_0x3698ef}};}async function emitEvent(_0x13c4f2,_0x1ca79d,_0x380d48){await _0x13c4f2?.(_0x1ca79d,_0x380d48);}async function resolveDispatchDecision(_0x482a2b,_0x369890,_0x488e0a){const _0x41dc88={_0x196948:0x223,_0x1f1303:0x20b,_0x2a8c0d:0x250,_0x30751a:0x1f1,_0x4095dd:0x21b,_0x524fcc:0x201,_0x4f5b03:0x247,_0x219d50:0x23f,_0x36e08e:0x24f,_0x2ec84a:0x24e,_0x10d16a:0x220},_0x416164={_0x3ddb1f:0x45d},_0x1b7373={_0x29a0e2:0xd6,_0x3c1e21:0x27,_0xf5209c:0x3b,_0x3aaf9b:0x91,_0x54b021:0x74,_0x4cc2d1:0x4a},_0x1d5df0={_0x5c2c00:0x1eb,_0x1ae3a2:0x1a0,_0xb498f7:0x19a},_0x1430cc={_0x1d8cbe:0x1b4},_0x2bcbf9={_0x4d7bcb:0x12e,_0xeea457:0x124,_0x54d807:0x128,_0x130ee9:0x141,_0xe795ef:0x12d,_0x5001c4:0x145,_0x5b8bfc:0x140,_0x31a3a7:0x13d,_0x54f788:0x150,_0xfc857d:0x107,_0x35566a:0x123,_0x9972f2:0xff,_0x275af4:0xf2},_0x29053c={_0x21c3aa:0x1a1};if(!_0x482a2b)return{'action':_0x1ea57c(-_0x41dc88._0x196948,-_0x41dc88._0x1f1303,-_0x41dc88._0x2a8c0d,-0x1c8)};function _0x54f811(_0x5bb38e,_0x4056b7,_0x304747,_0x583e3d){return _0x5c9f18(_0x304747- -0x23c,_0x4056b7-_0x29053c._0x21c3aa,_0x5bb38e,_0x583e3d-0xc3);}const _0x48029c=Promise[_0x1ea57c(-_0x41dc88._0x30751a,-_0x41dc88._0x4095dd,-_0x41dc88._0x524fcc,-0x1da)]()[_0x1ea57c(-_0x41dc88._0x4f5b03,-_0x41dc88._0x219d50,-0x22b,-0x1ff)](()=>_0x482a2b(_0x369890,_0x488e0a));if(!_0x488e0a['signal']){const _0x4d1612=await _0x48029c;return isDispatchDecision(_0x4d1612)?_0x4d1612:{'action':_0x1ea57c(-_0x41dc88._0x36e08e,-_0x41dc88._0x1f1303,-0x255,-_0x41dc88._0x2ec84a)};}const _0x285d4f=new Promise((_0x18a546,_0x30e8e9)=>{const _0x23bb35=()=>{function _0x49fe13(_0x2ec6eb,_0x136461,_0x5b6931,_0x1dda23){return _0x2078(_0x5b6931- -0x20c,_0x136461);}_0x488e0a[_0x545e09(_0x2bcbf9._0x4d7bcb,0x12f,_0x2bcbf9._0xeea457,0x152)]?.[_0x545e09(_0x2bcbf9._0x54d807,0x171,0x10d,_0x2bcbf9._0x130ee9)](_0x545e09(_0x2bcbf9._0xe795ef,_0x2bcbf9._0x5001c4,_0x2bcbf9._0x5b8bfc,_0x2bcbf9._0x31a3a7),_0x23bb35);function _0x545e09(_0x206f43,_0x296680,_0x3d1976,_0x331330){return _0x2078(_0x206f43-0x55,_0x331330);}_0x30e8e9(toAbortError(_0x488e0a[_0x545e09(0x12e,_0x2bcbf9._0x54f788,_0x2bcbf9._0xfc857d,_0x2bcbf9._0x35566a)]?.[_0x49fe13(-_0x2bcbf9._0x9972f2,-0x11c,-_0x2bcbf9._0x275af4,-0x11a)]));};function _0x303a5f(_0x113f88,_0x3d979f,_0x14092b,_0xef0f45){return _0x54f811(_0x113f88,_0x3d979f-_0x1430cc._0x1d8cbe,_0xef0f45-0x1b5,_0xef0f45-0x150);}if(_0x488e0a['signal']?.[_0x303a5f(-0x12,0x1a,0x1c,-0x1b)]){_0x30e8e9(toAbortError(_0x488e0a[_0xd8b6b4(-_0x1b7373._0x29a0e2,-0x7b,-0x91,-0xb7)][_0x303a5f(-0x7b,-_0x1b7373._0x3c1e21,-0x14,-_0x1b7373._0xf5209c)]));return;}function _0xd8b6b4(_0x27c1df,_0x4cfb15,_0x3365e1,_0x11765b){return _0x54f811(_0x27c1df,_0x4cfb15-_0x1d5df0._0x5c2c00,_0x3365e1-_0x1d5df0._0x1ae3a2,_0x11765b-_0x1d5df0._0xb498f7);}_0x488e0a[_0xd8b6b4(-_0x1b7373._0x3aaf9b,-_0x1b7373._0x54b021,-_0x1b7373._0x3aaf9b,-0x9a)]?.['addEventListener'](_0xd8b6b4(-_0x1b7373._0x4cc2d1,-0x79,-0x92,-0xa5),_0x23bb35,{'once':!![]});});function _0x1ea57c(_0x311f9b,_0x566fcb,_0x5c1dbf,_0x4b9962){return _0x4bc00b(_0x311f9b-0x1aa,_0x566fcb- -_0x416164._0x3ddb1f,_0x4b9962,_0x4b9962-0x29);}const _0x1e65eb=await Promise[_0x54f811(-0x1f7,-0x23e,-_0x41dc88._0x10d16a,-0x203)]([_0x48029c,_0x285d4f]);return isDispatchDecision(_0x1e65eb)?_0x1e65eb:{'action':'run'};}async function executeToolCall(_0x249a32,_0xd5a025,_0x372447,_0xb9f0ad,_0xb9e59){const _0x38d9cf={_0x1398d0:0x20e,_0x136653:0x1fe,_0x2fc973:0x183,_0x246352:0x1bf,_0x2a58aa:0x16e,_0x4ab667:0x16a,_0xffcc5c:0x1af,_0x2a2c1a:0x1f1,_0x5e20f4:0x1fd,_0x1fafb6:0x1cc,_0x4e96fa:0x12f,_0x3de483:0x196,_0x13df98:0x15c,_0x407ebd:0x134,_0x247ca5:0x15f,_0x5ad28d:0x198,_0x54ec58:0x17a,_0x51df38:0x172,_0xcaaf58:0x231,_0x3a1f33:0x1d7,_0x411240:0x1fc,_0x326ec3:0x1d1,_0x3a9f20:0x1de,_0x49b3fa:0x1fc,_0x114e6a:0x152,_0xf1294:0x171,_0x3e3a86:0x17b,_0x1c5041:0x19e,_0x214d1b:0x187,_0x56c72e:0x21f,_0x279a10:0x1ef,_0x4813ac:0x19d,_0x47a9c4:0x145,_0x1f6ab6:0x157,_0x355e08:0x176,_0x9d6b50:0x147,_0x114b52:0x1bd,_0x434919:0x17b,_0x1eed13:0x1ab,_0x7dfbe1:0x1bf,_0x59966d:0x185,_0x28af42:0x1a3,_0x2dccc2:0x1f3,_0x14bda9:0x1e6},_0x5cafab={_0x33fecb:0x126,_0x20dc94:0x157,_0x1ad933:0x126},_0x3d76be={_0x20891b:0x1b3},_0x2cd20f={_0x249253:0x8},_0x2fe202={..._0x372447,'toolCallId':_0xd5a025['id']};throwIfAborted(_0x2fe202['signal']);const _0x413f9e=await resolveDispatchDecision(_0xb9f0ad,_0xd5a025,_0x2fe202);throwIfAborted(_0x2fe202['signal']);if(_0x413f9e[_0x2ef02c(0x1b8,0x1de,0x1c6,0x1bc)]==='reject'){const _0x121351=createRejectedToolResult(_0xd5a025,_0x413f9e['reason']);return await emitEvent(_0xb9e59,{'type':'tool_rejected','toolCall':_0xd5a025,'result':_0x121351},_0x2fe202),_0x121351;}const _0x5353e8=_0x249a32[_0x4cc478(-0x20b,-0x1f8,-0x1cd,-_0x38d9cf._0x1398d0)](_0xd5a025['name']);function _0x2ef02c(_0x463e77,_0x27b81f,_0x3a6bc9,_0x6481fa){return _0x4bc00b(_0x463e77-_0x2cd20f._0x249253,_0x6481fa- -0x73,_0x27b81f,_0x6481fa-0xb5);}function _0x4cc478(_0x57e8e7,_0x10d8c2,_0x124eb6,_0x51477a){return _0x4bc00b(_0x57e8e7-0x26,_0x51477a- -0x3e1,_0x10d8c2,_0x51477a-_0x3d76be._0x20891b);}if(!_0x5353e8){const _0x555ab1=createUnknownToolResult(_0xd5a025);return await emitEvent(_0xb9e59,{'type':_0x2ef02c(0x1e2,_0x38d9cf._0x136653,_0x38d9cf._0x2fc973,_0x38d9cf._0x246352),'toolCall':_0xd5a025,'result':_0x555ab1},_0x2fe202),_0x555ab1;}throwIfAborted(_0x2fe202[_0x2ef02c(_0x38d9cf._0x2a58aa,_0x38d9cf._0x4ab667,_0x38d9cf._0xffcc5c,0x172)]),await emitEvent(_0xb9e59,{'type':_0x4cc478(-_0x38d9cf._0x2a2c1a,-0x1ab,-_0x38d9cf._0x5e20f4,-_0x38d9cf._0x1fafb6),'toolCall':_0xd5a025},_0x2fe202);try{throwIfAborted(_0x2fe202['signal']);const _0x4943cb=validateToolInput(_0xd5a025['input'],_0x5353e8[_0x2ef02c(_0x38d9cf._0x4e96fa,0x169,_0x38d9cf._0x3de483,_0x38d9cf._0x13df98)]),_0x24198b=await _0x5353e8[_0x2ef02c(_0x38d9cf._0x407ebd,_0x38d9cf._0x247ca5,_0x38d9cf._0x5ad28d,_0x38d9cf._0x54ec58)](_0x4943cb,_0x2fe202),_0x1e9be1=[],_0x5f584f=addAbortListener(_0x2fe202[_0x2ef02c(0x1a5,_0x38d9cf._0x13df98,0x14a,_0x38d9cf._0x51df38)],()=>{const _0x3c4aed={_0x593a88:0x182,_0x5b4534:0x141};function _0x377657(_0x55f4ad,_0x330b39,_0x2164e2,_0x27d591){return _0x2ef02c(_0x55f4ad-_0x3c4aed._0x593a88,_0x2164e2,_0x2164e2-_0x3c4aed._0x5b4534,_0x330b39- -0x2b);}void _0x24198b['return'](void 0x0)[_0x377657(_0x5cafab._0x33fecb,_0x5cafab._0x20dc94,0x119,_0x5cafab._0x1ad933)](()=>{});});try{throwIfAborted(_0x2fe202[_0x4cc478(-0x211,-_0x38d9cf._0xcaaf58,-_0x38d9cf._0x3a1f33,-_0x38d9cf._0x411240)]);let _0x2e962e=await _0x24198b['next']();while(!_0x2e962e['done']){throwIfAborted(_0x2fe202[_0x4cc478(-_0x38d9cf._0x326ec3,-0x228,-_0x38d9cf._0x3a9f20,-_0x38d9cf._0x49b3fa)]);const _0x4f1d22=normalizeToolOutputValue(_0x2e962e[_0x2ef02c(0x171,_0x38d9cf._0x114e6a,_0x38d9cf._0xf1294,_0x38d9cf._0x3e3a86)]);_0x1e9be1[_0x2ef02c(_0x38d9cf._0x1c5041,_0x38d9cf._0x214d1b,0x1a8,0x1ae)](_0x4f1d22),await emitEvent(_0xb9e59,{'type':_0x4cc478(-0x223,-_0x38d9cf._0x56c72e,-0x234,-_0x38d9cf._0x279a10),'toolCall':_0xd5a025,'chunk':_0x4f1d22},_0x2fe202),throwIfAborted(_0x2fe202[_0x2ef02c(0x197,_0x38d9cf._0x4813ac,0x181,0x172)]),_0x2e962e=await _0x24198b['next']();}throwIfAborted(_0x2fe202[_0x2ef02c(_0x38d9cf._0x47a9c4,_0x38d9cf._0x1f6ab6,0x12e,_0x38d9cf._0x51df38)]);const _0x3045a5=_0x2e962e[_0x2ef02c(_0x38d9cf._0x355e08,_0x38d9cf._0x9d6b50,_0x38d9cf._0x114b52,_0x38d9cf._0x434919)]===void 0x0?deriveFinalToolOutput(_0x1e9be1):normalizeToolOutputValue(_0x2e962e['value']),_0x5cdad2=createSuccessToolResult(_0xd5a025,_0x3045a5,_0x1e9be1);return await emitEvent(_0xb9e59,{'type':_0x2ef02c(0x183,_0x38d9cf._0x1eed13,0x1be,_0x38d9cf._0x7dfbe1),'toolCall':_0xd5a025,'result':_0x5cdad2},_0x2fe202),_0x5cdad2;}catch(_0x6627ca){if(isAbortError(_0x6627ca)){const _0x2ef6f8=createAbortedToolResult(_0xd5a025,_0x6627ca,_0x1e9be1);return await emitEvent(_0xb9e59,{'type':'tool_completed','toolCall':_0xd5a025,'result':_0x2ef6f8},_0x2fe202),_0x2ef6f8;}const {errorMessage:_0x1c4b3e,structured:_0x2229b0}=normalizeExecutionError(_0x6627ca),_0x2f59ef=createErrorToolResult(_0xd5a025,_0x1c4b3e,_0x2229b0,_0x1e9be1);return await emitEvent(_0xb9e59,{'type':_0x2ef02c(_0x38d9cf._0x59966d,0x17c,_0x38d9cf._0x28af42,_0x38d9cf._0x246352),'toolCall':_0xd5a025,'result':_0x2f59ef},_0x2fe202),_0x2f59ef;}finally{_0x5f584f();}}catch(_0x47b63b){if(isAbortError(_0x47b63b)){const _0x232604=createAbortedToolResult(_0xd5a025,_0x47b63b);return await emitEvent(_0xb9e59,{'type':'tool_completed','toolCall':_0xd5a025,'result':_0x232604},_0x2fe202),_0x232604;}const {errorMessage:_0x31fcfd,structured:_0x51d799}=normalizeExecutionError(_0x47b63b),_0x416743=createErrorToolResult(_0xd5a025,_0x31fcfd,_0x51d799);return await emitEvent(_0xb9e59,{'type':_0x4cc478(-_0x38d9cf._0x2dccc2,-0x1cd,-_0x38d9cf._0x14bda9,-0x1af),'toolCall':_0xd5a025,'result':_0x416743},_0x2fe202),_0x416743;}}function createInternalToolRuntime(_0x4fd9bd=[],_0x5393e9={}){const _0x4fff2c={_0x5ee058:0x4fe,_0x325f03:0x4f2},_0x456163={_0x2fe52c:0x482,_0x195047:0x489,_0x3c71fa:0x4c6,_0x13495f:0x4fc};let _0x31c3dd=new ToolRegistry(_0x4fd9bd);return{'listToolSchemas'(){return _0x31c3dd['listToolSchemas']();},'setTools'(_0xeabfd3){_0x31c3dd=new ToolRegistry(_0xeabfd3);},async 'executeCalls'(_0x1e782b,_0x38081a){const _0x4d9c0d={_0x5c6dbd:0x36,_0x5d78ce:0x4d,_0xf1a8f9:0xf3,_0x10ee01:0xab},_0x11bf79={_0x4127e3:0x3d4};function _0x4dabbc(_0xa197c4,_0x4d16f7,_0x2fe007,_0x3bf975){return _0x2078(_0x4d16f7-_0x11bf79._0x4127e3,_0xa197c4);}function _0x4ac172(_0x157301,_0x2837d7,_0x106f18,_0xa3b66b){return _0x2078(_0x157301- -0x3ca,_0x2837d7);}return await Promise[_0x4dabbc(_0x456163._0x2fe52c,_0x456163._0x195047,0x4a6,0x47a)](_0x1e782b[_0x4dabbc(0x4ec,0x4df,_0x456163._0x3c71fa,_0x456163._0x13495f)](async _0x23da7c=>{const _0x2056dc={_0x3201ac:0x404,_0x17ab09:0x190};function _0x4fd4f1(_0x206058,_0x2240d3,_0x55a5b8,_0xf6b020){return _0x4ac172(_0x206058-_0x2056dc._0x3201ac,_0xf6b020,_0x55a5b8-0x34,_0xf6b020-_0x2056dc._0x17ab09);}function _0x79cc91(_0x2c02e7,_0xe82535,_0x31c640,_0x124a9d){return _0x4ac172(_0x124a9d-0x310,_0x2c02e7,_0x31c640-0x190,_0x124a9d-0x1da);}return await executeToolCall(_0x31c3dd,_0x23da7c,_0x38081a,_0x5393e9[_0x79cc91(_0x4d9c0d._0x5c6dbd,0x8d,0x38,_0x4d9c0d._0x5d78ce)],_0x5393e9[_0x4fd4f1(_0x4d9c0d._0xf1a8f9,_0x4d9c0d._0x10ee01,0x100,0x129)]);}));},async 'execute'(_0x53eef1,_0x53cef1){const _0x1a0a9a={_0x4b98f9:0x3c0};function _0x57cac0(_0x5a2060,_0x5a3ebf,_0x133924,_0x4136c1){return _0x2078(_0x5a2060-_0x1a0a9a._0x4b98f9,_0x5a3ebf);}const [_0x4d8991]=await this[_0x57cac0(0x4c1,_0x4fff2c._0x5ee058,_0x4fff2c._0x325f03,0x499)]([_0x53eef1],_0x53cef1);return _0x4d8991;}};}function getOrderedObserverExtensions(_0x10972d,_0x4cfb6e){const _0x270e3a={_0x52009d:0xdb},_0x463096={_0x4bea36:0x1ab,_0x4d146e:0x191,_0x2cc08c:0x19d,_0x59c5bb:0x18f,_0x4de465:0x1ca,_0x20ff2b:0x1e7,_0xad4753:0x1bc},_0x4d2de5={_0x247e72:0x2e3,_0x51c7fb:0x7b};function _0x41c598(_0x59b2e9,_0x7c6632,_0x817f8,_0x5d1f86){return _0x4bc00b(_0x59b2e9-0x47,_0x5d1f86- -_0x4d2de5._0x247e72,_0x7c6632,_0x5d1f86-_0x4d2de5._0x51c7fb);}function _0x2de89d(_0x4b0622,_0x121a44,_0x20beed,_0x4c5c83){return _0x5c9f18(_0x121a44-0x12d,_0x121a44-0x159,_0x20beed,_0x4c5c83-0x18b);}return _0x10972d[_0x41c598(-_0x270e3a._0x52009d,-0xcc,-0x11e,-0xe3)](_0xf404b5=>{const _0x3921a7={_0x1760d6:0x142,_0x934b6d:0xb1},_0x480306={_0x3be36e:0x152};function _0x1b07ec(_0xa59c32,_0x306ef1,_0x4500df,_0x7b82b9){return _0x41c598(_0xa59c32-_0x480306._0x3be36e,_0x7b82b9,_0x4500df-0x9,_0xa59c32- -0xe5);}function _0x286d7c(_0xbf4d21,_0x1c6705,_0x536fc1,_0x350a4c){return _0x41c598(_0xbf4d21-0x46,_0xbf4d21,_0x536fc1-_0x3921a7._0x1760d6,_0x536fc1-_0x3921a7._0x934b6d);}return _0xf404b5[_0x1b07ec(-_0x463096._0x4bea36,-0x161,-0x1b0,-0x1f4)]!==![]&&_0xf404b5[_0x1b07ec(-_0x463096._0x4d146e,-_0x463096._0x2cc08c,-_0x463096._0x59c5bb,-0x18e)]===_0x4cfb6e&&_0xf404b5[_0x1b07ec(-_0x463096._0x4de465,-_0x463096._0x20ff2b,-0x1eb,-_0x463096._0xad4753)]==='observer';})[_0x2de89d(0x119,0x14f,0x11d,0x172)]((_0xa6bdd1,_0x3e9585)=>_0xa6bdd1['order']-_0x3e9585[_0x2de89d(0x187,0x176,0x1ad,0x142)]);}function getOrderedTransformerExtensions(_0x3f2d69,_0x50f3df){const _0x4cb91b={_0x244a9a:0x4d5,_0x45845a:0x4a6,_0x106ac8:0x4b2,_0x47ac4f:0x50f,_0x1c6c6c:0x4d1},_0x4aa452={_0x25cf60:0x271,_0x27b247:0x275,_0x1849c2:0x273,_0xc4ce2c:0x60,_0x3f917c:0x294,_0x4d91ca:0x2a6,_0x4336b7:0xc0,_0x44c26a:0xe9,_0x14d4d8:0x8f},_0x5cccdb={_0x3b8530:0x5d,_0x23c616:0xf4},_0x9deaf7={_0x34b452:0xbe,_0x2ab521:0x62};function _0x39ae76(_0x3fb421,_0x157a41,_0x9cd303,_0x3934c1){return _0x5c9f18(_0x3fb421-0x4af,_0x157a41-_0x9deaf7._0x34b452,_0x9cd303,_0x3934c1-_0x9deaf7._0x2ab521);}function _0x417617(_0xf6cd4e,_0x2b7850,_0x348694,_0x2fdca5){return _0x4bc00b(_0xf6cd4e-0x1bf,_0xf6cd4e-0x25f,_0x2fdca5,_0x2fdca5-0x5a);}return _0x3f2d69[_0x39ae76(_0x4cb91b._0x244a9a,_0x4cb91b._0x45845a,_0x4cb91b._0x106ac8,_0x4cb91b._0x47ac4f)](_0x564a54=>{const _0xdc077b={_0x56c97f:0x767,_0x8687d8:0x9,_0x4238c6:0x74};function _0x4e543f(_0x2ccdc9,_0x2375f3,_0x2d3735,_0x18136a){return _0x39ae76(_0x18136a- -0x586,_0x2375f3-_0x5cccdb._0x3b8530,_0x2d3735,_0x18136a-_0x5cccdb._0x23c616);}function _0x2d2a36(_0x34508e,_0xf051e4,_0x49a960,_0x4912eb){return _0x39ae76(_0xf051e4- -_0xdc077b._0x56c97f,_0xf051e4-_0xdc077b._0x8687d8,_0x4912eb,_0x4912eb-_0xdc077b._0x4238c6);}return _0x564a54[_0x2d2a36(-_0x4aa452._0x25cf60,-_0x4aa452._0x27b247,-_0x4aa452._0x1849c2,-0x235)]!==![]&&_0x564a54[_0x4e543f(-_0x4aa452._0xc4ce2c,-0x68,-0x9e,-0x7a)]===_0x50f3df&&_0x564a54[_0x2d2a36(-0x2c1,-_0x4aa452._0x3f917c,-_0x4aa452._0x4d91ca,-0x291)]===_0x4e543f(-_0x4aa452._0x4336b7,-_0x4aa452._0x44c26a,-_0x4aa452._0x14d4d8,-0xb9);})[_0x39ae76(_0x4cb91b._0x1c6c6c,0x51a,0x4d7,0x501)]((_0x11ea97,_0x4e2fbf)=>_0x11ea97[_0x39ae76(0x4f8,0x50d,0x4d1,0x4b7)]-_0x4e2fbf[_0x39ae76(0x4f8,0x4da,0x4d1,0x4df)]);}function createExtensionRegistry(){const _0x1522c8={_0x665d28:0x42d},_0x5287a8={_0x5788ac:0x21a,_0x4a5b04:0x203},_0x30775d={_0x4e7048:0x35f},_0xbb194c=[];return{'register'(_0xebbd21){function _0x22149c(_0x1ec76b,_0x50d985,_0x5eabae,_0x2bfe5d){return _0x2078(_0x5eabae- -_0x30775d._0x4e7048,_0x1ec76b);}_0xbb194c[_0x22149c(-0x257,-_0x5287a8._0x5788ac,-0x24a,-_0x5287a8._0x4a5b04)](_0xebbd21);},async 'runTransformers'(_0xdec8e9,_0x11dd44,_0xa292d1){let _0x502bcb=_0x11dd44;for(const _0x845df of getOrderedTransformerExtensions(_0xbb194c,_0xdec8e9)){_0x502bcb=await _0x845df['run'](_0x502bcb,_0xa292d1);}return _0x502bcb;},async 'runObservers'(_0x4a81d0,_0x324869,_0xba292d){function _0x4394bf(_0x29388f,_0x31336a,_0x2680dd,_0x67ab8e){return _0x2078(_0x31336a-0x2a0,_0x29388f);}for(const _0x278fbd of getOrderedObserverExtensions(_0xbb194c,_0x4a81d0)){await _0x278fbd[_0x4394bf(_0x1522c8._0x665d28,0x3e6,0x3b8,0x3c4)](_0x324869,_0xba292d);}}};}function makeExtensionContext(_0x3f1e38){return{'state':_0x3f1e38};}function _0x4bc00b(_0x55e2e6,_0x4600eb,_0x5ab7cd,_0x55f728){const _0x2655c0={_0x572a7c:0x10c};return _0x2078(_0x4600eb-_0x2655c0._0x572a7c,_0x5ab7cd);}async function runStage(_0x51b6ed,_0x37dca9,_0x4b5449,_0x555a64){const _0x5074ae={_0x467685:0x417,_0x5b4523:0x145},_0xd3b908={_0x2c5646:0xdd};function _0x2287ee(_0x4ae059,_0x2a223f,_0x2c3ec0,_0x1496b4){return _0x4bc00b(_0x4ae059-0x77,_0x4ae059-0x20f,_0x2a223f,_0x1496b4-0x97);}const _0x233c20=await _0x51b6ed[_0x2287ee(0x3db,0x39a,0x39f,_0x5074ae._0x467685)](_0x37dca9,_0x4b5449,_0x555a64);await _0x51b6ed[_0x377461(0x13e,0x119,0x158,_0x5074ae._0x5b4523)](_0x37dca9,_0x233c20,_0x555a64);function _0x377461(_0x2d7198,_0x17f853,_0x586620,_0x1caf03){return _0x5c9f18(_0x17f853-0xa3,_0x17f853-_0xd3b908._0x2c5646,_0x1caf03,_0x1caf03-0xba);}return _0x233c20;}async function emitEvent2(_0x1b3711,_0x521ada,_0x56dbc4){await _0x1b3711?.(_0x521ada,_0x56dbc4);}function _0x2078(_0x51279a,_0x1ac0f2){_0x51279a=_0x51279a-0xb5;const _0x4f634c=_0x4f63();let _0x20783e=_0x4f634c[_0x51279a];if(_0x2078['ukGcHY']===undefined){var _0x48406a=function(_0x512cbc){const _0x135437='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x53e4f3='',_0xc3caee='';for(let _0xcf3319=0x0,_0x12f3da,_0x516ed6,_0x4afc5d=0x0;_0x516ed6=_0x512cbc['charAt'](_0x4afc5d++);~_0x516ed6&&(_0x12f3da=_0xcf3319%0x4?_0x12f3da*0x40+_0x516ed6:_0x516ed6,_0xcf3319++%0x4)?_0x53e4f3+=String['fromCharCode'](0xff&_0x12f3da>>(-0x2*_0xcf3319&0x6)):0x0){_0x516ed6=_0x135437['indexOf'](_0x516ed6);}for(let _0x176710=0x0,_0x82ea1=_0x53e4f3['length'];_0x176710<_0x82ea1;_0x176710++){_0xc3caee+='%'+('00'+_0x53e4f3['charCodeAt'](_0x176710)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc3caee);};_0x2078['eUPZeN']=_0x48406a,_0x2078['fgIfXk']={},_0x2078['ukGcHY']=!![];}const _0xe8c3f8=_0x4f634c[0x0],_0x10f7ce=_0x51279a+_0xe8c3f8,_0x25989f=_0x2078['fgIfXk'][_0x10f7ce];return!_0x25989f?(_0x20783e=_0x2078['eUPZeN'](_0x20783e),_0x2078['fgIfXk'][_0x10f7ce]=_0x20783e):_0x20783e=_0x25989f,_0x20783e;}function replaceToolUseBlocks(_0x3509a6,_0x2fd4b1){const _0x3eb54a={_0x22ea44:0x23c,_0x4361aa:0x255,_0x413cbe:0x244,_0x5609f7:0x1f2,_0x55e131:0x1ff,_0x32d5dc:0x218},_0x20e04a={_0x5c3e47:0x404,_0x4faa89:0x41e,_0x510582:0x46e,_0x20e8d5:0x484,_0x1a6aaf:0x47a},_0x4c5ec1={_0x2fd2c1:0x81},_0x4abade={_0x2b9a91:0xf0,_0x4a800c:0xee,_0x3d8730:0x65f},_0x2be80a={_0x4f029e:0xaf,_0x351cc3:0x19f},_0x398f44={_0x51bad4:0x9e,_0x27ebfb:0x188};let _0x128454=0x0;function _0x8781df(_0x368048,_0x26cb73,_0x32f674,_0x3d2a4d){return _0x4bc00b(_0x368048-_0x398f44._0x51bad4,_0x3d2a4d-_0x398f44._0x27ebfb,_0x32f674,_0x3d2a4d-0x34);}function _0xd193aa(_0x3bd3ad,_0x37a146,_0x414238,_0x4e3d59){return _0x5c9f18(_0x4e3d59- -0x255,_0x37a146-_0x2be80a._0x4f029e,_0x37a146,_0x4e3d59-_0x2be80a._0x351cc3);}return{..._0x3509a6,'content':_0x3509a6[_0xd193aa(-_0x3eb54a._0x22ea44,-0x21c,-0x285,-_0x3eb54a._0x4361aa)][_0xd193aa(-_0x3eb54a._0x413cbe,-_0x3eb54a._0x5609f7,-_0x3eb54a._0x55e131,-_0x3eb54a._0x32d5dc)](_0x4fbef6=>{if(_0x4fbef6[_0x2c2c38(_0x20e04a._0x5c3e47,0x3e7,_0x20e04a._0x4faa89,0x419)]!==_0x2c2c38(_0x20e04a._0x510582,0x469,_0x20e04a._0x20e8d5,_0x20e04a._0x1a6aaf))return _0x4fbef6;function _0x2c2c38(_0x462187,_0x59c9fa,_0x42e5cb,_0x46f87f){return _0xd193aa(_0x462187-_0x4abade._0x2b9a91,_0x462187,_0x42e5cb-_0x4abade._0x4a800c,_0x46f87f-_0x4abade._0x3d8730);}function _0x16d799(_0x3caa89,_0x3c5a71,_0x409208,_0x162d53){return _0xd193aa(_0x3caa89-0x148,_0x3caa89,_0x409208-_0x4c5ec1._0x2fd2c1,_0x162d53-0x6a2);}const _0x1f390f=_0x2fd4b1[_0x128454];return _0x128454+=0x1,structuredClone(_0x1f390f);})};}function createAssistantMessageId(_0xe63772,_0x29c3f0){const _0x3835f4={_0x8323f:0x22e},_0x40e13a={_0x4d5d46:0xa8};function _0x2d3634(_0x398bb8,_0x31f28b,_0x55b5da,_0x366b5d){return _0x5c9f18(_0x366b5d- -0x258,_0x31f28b-_0x40e13a._0x4d5d46,_0x31f28b,_0x366b5d-0x12a);}return _0xe63772+_0x2d3634(-_0x3835f4._0x8323f,-0x1e4,-0x1ac,-0x1ef)+_0x29c3f0;}function createReasoningMessageId(_0x1e5dee){const _0x1f51b2={_0x5f41a5:0x2de,_0x57d237:0x323,_0x3c713e:0x31e},_0x133357={_0x27a258:0x2e0,_0x245ab2:0x76,_0x494566:0x1b7};function _0x1c66b0(_0x14a4d5,_0x4df41f,_0x32b778,_0x40081c){return _0x5c9f18(_0x14a4d5-_0x133357._0x27a258,_0x4df41f-_0x133357._0x245ab2,_0x32b778,_0x40081c-_0x133357._0x494566);}return _0x1e5dee+_0x1c66b0(_0x1f51b2._0x5f41a5,_0x1f51b2._0x57d237,_0x1f51b2._0x3c713e,0x2d1);}function withMessageId(_0x5ea04e,_0x62e9a9){if(_0x5ea04e['id']===_0x62e9a9)return _0x5ea04e;return{..._0x5ea04e,'id':_0x62e9a9};}function createAssistantChunkEvent(_0x41830c,_0x47ff39){const _0x351036={_0x1be4ae:0x1fd,_0x471a15:0x1ed,_0x3c1572:0x1c7,_0x3a6f02:0x158,_0x47c8fb:0x136,_0x2826db:0x164,_0x59fcfc:0x345,_0x3d998c:0x33c,_0x3df4ac:0x320,_0x3be6ee:0x1f2,_0xe75b8b:0x181,_0x3ea6bc:0x1ca,_0xd7ac91:0x387,_0x3298dd:0x3a5,_0x1f1ff9:0x337,_0x594850:0x2f2,_0x6f9939:0x2c7,_0x4afe86:0x2fa,_0x2484e0:0x30e,_0x224b09:0x363,_0x53f0a4:0x328},_0x55e988={_0x32554c:0x114};function _0x11ba15(_0x21a702,_0x214588,_0x4c78eb,_0x154bc7){return _0x4bc00b(_0x21a702-0xa8,_0x154bc7- -0x3b0,_0x21a702,_0x154bc7-0x62);}if(_0x41830c[_0x11ba15(-_0x351036._0x1be4ae,-_0x351036._0x471a15,-0x20b,-_0x351036._0x3c1572)]!==_0x11ba15(-_0x351036._0x3a6f02,-_0x351036._0x47c8fb,-0x12a,-_0x351036._0x2826db))return void 0x0;function _0x47076b(_0x8c9aec,_0x50f3b9,_0x582d34,_0x504742){return _0x4bc00b(_0x8c9aec-0x95,_0x582d34-_0x55e988._0x32554c,_0x50f3b9,_0x504742-0x123);}if(_0x41830c['text']===void 0x0)return void 0x0;return{'type':_0x47076b(0x380,_0x351036._0x59fcfc,_0x351036._0x3d998c,_0x351036._0x3df4ac),'index':_0x41830c[_0x11ba15(-_0x351036._0x3be6ee,-0x212,-_0x351036._0xe75b8b,-_0x351036._0x3ea6bc)]??0x0,'messageId':_0x47ff39,'chunk':{'type':_0x47076b(_0x351036._0xd7ac91,_0x351036._0x3298dd,0x360,_0x351036._0x1f1ff9),'index':_0x41830c[_0x47076b(_0x351036._0x594850,_0x351036._0x6f9939,_0x351036._0x4afe86,_0x351036._0x2484e0)]??0x0,'text':_0x41830c[_0x47076b(0x2ee,_0x351036._0x224b09,_0x351036._0x53f0a4,0x2fd)]}};}function _0x4f63(){const _0x11989c=['CMfUzg9T','oIbLEhbLy3rLzcbVyMPLy3q','C3rYzwfTAw5N','oIbLEhbLy3rLzcbHCNjHEq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','C3LZDgvTuhjVBxb0','CMvXDwLYzwq','yM9VBgvHBG','Dg9VBf91C2vFy2H1BMS','Bw9KzwXFCMvZCg9UC2u','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','zxHLy3v0zunHBgXZ','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','B3v0Chv0','Dg9VBf9Yzxn1Bhq','C2vUza','DhvYBKLUzgv4','B25uB29Sq2fSBa','Dgv4Da','Dg9VBf9ZDgfYDgvK','C29Tzq','BwfW','Dg9VBfj1BNrPBwu','B3v0Chv0sw5KzxG','ywz0zxjuDxjUq29TCgXLDgu','zgvWCW','y29TCgXLDgu','zw5HyMXLza','DgHLBG','C3LZDgvT','Dg9VBf9JywXS','ChvZAa','yMvMB3jLvg9VBev4zwn1DgLVBG','B3jKzxi','CMvNAxn0zxi','zxjYB3i','CMvHC29U','vw5RBM93BIb0B29SoIa','yxnZAxn0yw50x2nODw5R','yMvMB3jLrMLUywXpDxrWDxq','zgvMyxvSDe1LC3nHz2u','C2v0','C2vZC2LVBKLK','yMvMB3jLqxnZAxn0yw50qxbWzw5K','x3n5C3rLBvbYB21WDa','ywn0Aw9U','y29UDgvUDeLUzgv4','mty4ogDstu1HtG','Dg9VBf9JB21WBgv0zwq','Dg9VBhncEu5HBwu','DhvYBL9JB21WBgv0zq','sw52ywXPzcb0B29SigLUChv0igf0ia','DgHPBMTPBMC','C3rHz2u','BMfTzq','oIbLEhbLy3rLzcbIB29SzwfU','mJbhzeLUDvu','B2jQzwn0','C2v0u3LZDgvTuhjVBxb0','Dg9VBf91C2vFBwvZC2fNzq','Aw5WDxrezwX0yq','BgLZDa','BwvZC2fNzxm','mtHItuPRtvu','CMvZB2X2zq','oMfZC2LZDgfUDdO','DxnLCL9TzxnZywDL','CMvZzxrnzxnZywDLCW','ywjVCNrLza','C3rHDhvZ','zgvZy3jPChrPB24','BM93','Dg9VBf91C2u','BNvTyMvY','y29UDgvUDf9KzwX0yq','C3rYDwn0DxjLza','yxnZAxn0yw50twvZC2fNzuLK','zxH0zw5ZAw9UCW','CNvUt2jZzxj2zxjZ','DhjPBq','CNvU','C3vTBwfYEuLUzgv4','ywXS','zg9Uzq','yxjYyxK','BwvZC2fNzq','B25fDMvUDa','zw50CMLLCW','mtGWnZa4C2H1D2nU','Bw9KzwXFCMvXDwvZDa','CMvHC29UAw5NtwvZC2fNzuLK','ChjVCgvYDgLLCW','y2HHDe1VzgvS','CNvUvhjHBNnMB3jTzxjZ','AM9PBG','C2vZC2LVBI0','Aw5WDxrty2HLBwe','zM9YrwfJAa','C3rYzwfT','AxnbCNjHEq','z2v0','Dg9VBf9YzwPLy3rLza','Dg9VBf91C2vFzgvSDge','oIbLEhbLy3rLzcbUDw1Izxi','mJeZotm2q3HXrg5T','oNjLyxnVBMLUzW','CMvQzwn0','y29UDgvUDa','AxrLBuLK','CMvHC29UAw5Nx21LC3nHz2u','DxnLCG','DhvYBKLK','CMvTB3zLrxzLBNrmAxn0zw5LCG','BgfZDfjLC3bVBNnL','mZaZmdG3mg96t3vNBW','BgvUz3rO','C2v0q2HHDe1VzgvS','ywjVCNq','C2LNBMfS','Aw5KzxG','C3rYAw5NAwz5','mtu0nteZotbJzgriEMC','DhLWzq','y29TCgXLDgvK','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','B25vC2vYtwvZC2fNzq','zxHLy3v0zq','DMfSDwu','mtyWoda5meflvu5Zsa','zMLUywXnzxnZywDL','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','Dg9VBf9VDxrWDxrFy2H1BMS','mJy1otu1mg9SDgzOtW','CMvNAxn0CNK','y2f0y2G','CMfJzq','CMvHC29UAw5Nx2nODw5R','DhjHBNnMB3jTzxi','mZG5nJjQtLDtEeW','C3rYAw5N','zgvSDge','C29YDa','C2v0vg9VBhm','A2LUza','vg9VBev4zwn1DgLVBKvYCM9Y','zMLSDgvY','AxrLBxm'];_0x4f63=function(){return _0x11989c;};return _0x4f63();}function createToolUseChunkEvent(_0x391cfd,_0x7a3af2){const _0x3cf867={_0x507853:0xe5,_0x1bbb55:0xcf,_0x41190d:0xa9,_0x5e1b40:0xa0,_0x3d3df6:0xfc,_0x145934:0x467,_0x4f1fc5:0x454,_0x48c6e2:0x45d,_0x315e8b:0x454,_0x3f3314:0x421,_0x12150a:0x423},_0x263205={_0x6a95ba:0x22,_0x159c68:0x117,_0x497aba:0x5b},_0x24a736={_0xec0466:0x1cf,_0x35e74d:0x216,_0x2b9f24:0x155};if(_0x391cfd['type']!==_0x8725ea(0xbe,_0x3cf867._0x507853,0xf7,0x102))return void 0x0;function _0x5c749b(_0x1bb969,_0x2ec6c6,_0x477103,_0x19c9c2){return _0x4bc00b(_0x1bb969-_0x24a736._0xec0466,_0x2ec6c6-_0x24a736._0x35e74d,_0x1bb969,_0x19c9c2-_0x24a736._0x2b9f24);}function _0x8725ea(_0x1561a3,_0x49e66f,_0x319416,_0x799a4){return _0x4bc00b(_0x1561a3-_0x263205._0x6a95ba,_0x1561a3- -_0x263205._0x159c68,_0x799a4,_0x799a4-_0x263205._0x497aba);}return{'type':_0x5c749b(0x3da,0x420,0x441,0x3d7),'index':_0x391cfd['index']??0x0,'messageId':_0x7a3af2,'chunk':{'type':'tool_use_delta','id':_0x391cfd['id']??'','index':_0x391cfd[_0x8725ea(_0x3cf867._0x1bbb55,_0x3cf867._0x41190d,0x86,_0x3cf867._0x5e1b40)]??0x0,..._0x391cfd[_0x8725ea(0x121,0x114,0x131,_0x3cf867._0x3d3df6)]!==void 0x0?{'name':_0x391cfd['name']}:{},..._0x391cfd[_0x5c749b(_0x3cf867._0x145934,_0x3cf867._0x4f1fc5,0x478,0x492)]!==void 0x0?{'inputDelta':_0x391cfd[_0x5c749b(_0x3cf867._0x48c6e2,_0x3cf867._0x315e8b,_0x3cf867._0x3f3314,_0x3cf867._0x12150a)]}:{}}};}function resolveReasoningEventIndex(_0x2af82f){const _0x27ecab={_0x1d215c:0x36,_0x1674a5:0x5e,_0x57da23:0x39c,_0x26a46d:0x3c7,_0x4ba885:0x61,_0x1e4da3:0x60,_0x38a1fa:0x58},_0x29ad99={_0x4511cf:0x1c1,_0x1b512d:0x191},_0xaf5a2f={_0x2ee68f:0xf4,_0x1dc3a8:0x30};function _0x32d548(_0x2315fd,_0x78f429,_0x3aacce,_0x52a2f5){return _0x4bc00b(_0x2315fd-_0xaf5a2f._0x2ee68f,_0x52a2f5-0x197,_0x2315fd,_0x52a2f5-_0xaf5a2f._0x1dc3a8);}function _0x107b68(_0x46ca16,_0x56b794,_0x4dae46,_0x5775c1){return _0x4bc00b(_0x46ca16-0x116,_0x56b794- -_0x29ad99._0x4511cf,_0x5775c1,_0x5775c1-_0x29ad99._0x1b512d);}return _0x2af82f[_0x107b68(-0x5,0x25,_0x27ecab._0x1d215c,_0x27ecab._0x1674a5)]??_0x2af82f[_0x32d548(0x3bf,_0x27ecab._0x57da23,0x3a2,_0x27ecab._0x26a46d)]??_0x2af82f[_0x107b68(0x70,0x92,_0x27ecab._0x4ba885,0xd8)]??_0x2af82f[_0x107b68(_0x27ecab._0x1e4da3,_0x27ecab._0x38a1fa,0x45,0x64)]??0x0;}function createReasoningChunkEvent(_0x4c4131,_0x2a42b1){const _0x20d918={_0x2cc16f:0x2c2,_0x5d3a45:0x3de,_0x54fb78:0x3a2,_0x45e286:0x3c5,_0x36ccd7:0x3ff,_0x20eb51:0x425,_0x58ed1b:0x281,_0x2287dd:0x285,_0x57498b:0x2b6,_0x506e29:0x2bc,_0x1fcfc8:0x2c6,_0x5f2e63:0x2c4,_0x5a6c80:0x31f,_0x10bb2d:0x2d3,_0xa63584:0x2fb,_0x11cbc4:0x30b,_0xf0de4c:0x2f6,_0x27584b:0x2c6,_0x232f27:0x3f2,_0x41b82d:0x402,_0x475986:0x3d6,_0x90db5e:0x2f0,_0x1ca041:0x2be,_0x3e0b50:0x2d1,_0x46124f:0x2c6,_0x1faf88:0x3fb,_0x59db9e:0x440,_0x3002db:0x3bf,_0x5ecf40:0x2d1},_0x106049={_0x732966:0x1df},_0x25ad69={_0xa626b:0x2a5,_0x7eea3d:0xca,_0x234ca0:0x91};function _0x407582(_0x3fd9b0,_0x265ced,_0x37671c,_0x48ee3c){return _0x5c9f18(_0x48ee3c-_0x25ad69._0xa626b,_0x265ced-_0x25ad69._0x7eea3d,_0x37671c,_0x48ee3c-_0x25ad69._0x234ca0);}function _0x1a71b7(_0x5220ca,_0xef329d,_0x3bfb8f,_0x3c3139){return _0x4bc00b(_0x5220ca-0x4e,_0x3c3139-_0x106049._0x732966,_0x3bfb8f,_0x3c3139-0x7d);}switch(_0x4c4131['type']){case'anthropic_thinking_delta':return{'type':_0x407582(0x29b,0x300,0x285,_0x20d918._0x2cc16f),'index':resolveReasoningEventIndex(_0x4c4131),'messageId':_0x2a42b1,'chunk':{'type':_0x1a71b7(0x40e,_0x20d918._0x5d3a45,0x3e5,0x3d0),'index':_0x4c4131[_0x1a71b7(0x39a,0x3a6,_0x20d918._0x54fb78,_0x20d918._0x45e286)]??0x0,'thinking':_0x4c4131['thinking']??''},'text':_0x4c4131[_0x1a71b7(0x3e1,_0x20d918._0x36ccd7,_0x20d918._0x20eb51,0x415)]??''};case _0x407582(_0x20d918._0x58ed1b,_0x20d918._0x2287dd,0x2c6,_0x20d918._0x57498b):return{'type':_0x407582(_0x20d918._0x506e29,_0x20d918._0x1fcfc8,_0x20d918._0x5f2e63,0x2c2),'index':resolveReasoningEventIndex(_0x4c4131),'messageId':_0x2a42b1,'chunk':{'type':'openai_reasoning_delta','contentIndex':_0x4c4131[_0x407582(0x32e,_0x20d918._0x5a6c80,_0x20d918._0x10bb2d,_0x20d918._0xa63584)]??0x0,'delta':_0x4c4131[_0x407582(_0x20d918._0x11cbc4,0x288,0x2c2,_0x20d918._0x1fcfc8)]??'','itemId':_0x4c4131['itemId']??'','outputIndex':_0x4c4131['outputIndex']??0x0},'text':_0x4c4131[_0x407582(0x30e,0x2d4,_0x20d918._0xf0de4c,_0x20d918._0x27584b)]??''};case _0x407582(0x2ca,0x317,0x313,0x2d1):return{'type':_0x1a71b7(_0x20d918._0x232f27,0x3f3,_0x20d918._0x41b82d,_0x20d918._0x475986),'index':resolveReasoningEventIndex(_0x4c4131),'messageId':_0x2a42b1,'chunk':{'type':_0x407582(_0x20d918._0x90db5e,0x2bc,_0x20d918._0x1ca041,_0x20d918._0x3e0b50),'delta':_0x4c4131[_0x407582(0x30e,0x2ef,_0x20d918._0x5f2e63,_0x20d918._0x46124f)]??'','itemId':_0x4c4131[_0x1a71b7(_0x20d918._0x1faf88,0x376,0x3df,0x3ba)]??'','outputIndex':_0x4c4131[_0x1a71b7(_0x20d918._0x59db9e,0x3c7,_0x20d918._0x3002db,0x3f8)]??0x0,'summaryIndex':_0x4c4131['summaryIndex']??0x0},'text':_0x4c4131[_0x407582(0x2b6,_0x20d918._0x5ecf40,_0x20d918._0x57498b,0x2c6)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x3fe212){const _0x545366={_0x3aab8d:0x1db,_0x53d1b2:0x196,_0x195479:0x1e1,_0x2db179:0x216,_0x29220d:0x238,_0xb09ff5:0x239},_0x43d78e={_0x26ecb7:0x6c,_0x5d04b3:0x10},_0x4cece5={_0x97f6f9:0xe,_0x42aeac:0x6a};function _0x39a2a1(_0x32f8ad,_0x5e52ad,_0x3cd012,_0x20b595){return _0x4bc00b(_0x32f8ad-0x9d,_0x32f8ad- -_0x4cece5._0x97f6f9,_0x5e52ad,_0x20b595-_0x4cece5._0x42aeac);}function _0x31e0f8(_0x259228,_0x309d99,_0x521292,_0xc1f797){return _0x4bc00b(_0x259228-0x31,_0x309d99- -_0x43d78e._0x26ecb7,_0x521292,_0xc1f797-_0x43d78e._0x5d04b3);}return _0x3fe212[_0x31e0f8(0x21a,_0x545366._0x3aab8d,0x1ad,_0x545366._0x53d1b2)]==='error'&&_0x3fe212[_0x31e0f8(0x1b0,_0x545366._0x195479,_0x545366._0x2db179,0x1c3)][_0x39a2a1(_0x545366._0x29220d,_0x545366._0xb09ff5,0x24d,0x21e)]===!![];}async function executeModelRequest(_0xc7fd71,_0x4b5638,_0x22a0ea,_0x53c921,_0xdfedc4){const _0x89fb99={_0x5229a0:0x425,_0x4496e6:0x49c,_0x5b29ae:0x46e,_0x227769:0x411,_0x434a61:0x451,_0x5824e5:0x45c,_0xfbdf24:0x4bc,_0x40cc63:0x444,_0x37453d:0x44e,_0x2e64c6:0x36b,_0x410407:0x330,_0x49d952:0x309,_0x38a47e:0x326,_0x5a0169:0x433,_0x34fcc3:0x468,_0x1dad4f:0x487,_0xb754b0:0x4a8,_0x309401:0x41f,_0x44444e:0x405,_0x22a9c1:0x350,_0x2599ca:0x466,_0x2a1c77:0x46c,_0x444653:0x4ae,_0x50a1b1:0x30a,_0x5078d2:0x34c,_0x3d3882:0x36e,_0x583e85:0x445,_0x1706ba:0x448,_0x2c2527:0x41a,_0x329463:0x4ad,_0x24b620:0x4d1,_0x1cd45e:0x426,_0x40f9e2:0x448,_0x50a9ed:0x2ff,_0xf0f8d6:0x30c},_0x391398={_0xaf0631:0x45d,_0x1323ca:0x44};throwIfAborted(_0x4b5638[_0x532a26(_0x89fb99._0x5229a0,_0x89fb99._0x4496e6,0x468,0x443)]);if(!_0x4b5638['streaming']||!_0x22a0ea[_0x532a26(_0x89fb99._0x5b29ae,_0x89fb99._0x227769,0x44e,0x437)]['stream'])return await _0x22a0ea[_0x532a26(0x427,_0x89fb99._0x434a61,0x44e,0x453)][_0x532a26(0x4b3,_0x89fb99._0x5824e5,0x49f,_0x89fb99._0xfbdf24)](_0xc7fd71,{'signal':_0x4b5638[_0x532a26(0x484,0x490,0x468,0x453)]});function _0x532a26(_0x3b07e9,_0x383eb8,_0x37cdd4,_0x30ce4f){return _0x5c9f18(_0x37cdd4-_0x391398._0xaf0631,_0x383eb8-0x1a2,_0x30ce4f,_0x30ce4f-_0x391398._0x1323ca);}let _0x51051a;for await(const _0x3c7e26 of _0x22a0ea[_0x532a26(_0x89fb99._0x40cc63,0x415,_0x89fb99._0x37453d,0x45a)][_0x4bc992(_0x89fb99._0x2e64c6,_0x89fb99._0x410407,_0x89fb99._0x49d952,_0x89fb99._0x38a47e)](_0xc7fd71,{'signal':_0x4b5638[_0x532a26(0x459,_0x89fb99._0x5a0169,_0x89fb99._0x34fcc3,_0x89fb99._0x1dad4f)]})){throwIfAborted(_0x4b5638[_0x532a26(0x489,_0x89fb99._0xb754b0,0x468,_0x89fb99._0x309401)]);if(_0x3c7e26['type']===_0x532a26(0x443,_0x89fb99._0x44444e,0x445,0x418)){_0x51051a=_0x3c7e26['response'];continue;}const _0x3c8b69=createReasoningChunkEvent(_0x3c7e26,_0xdfedc4[_0x4bc992(_0x89fb99._0x22a9c1,0x32c,0x359,0x31e)]);if(_0x3c8b69&&_0x3c8b69[_0x532a26(0x472,_0x89fb99._0x2599ca,_0x89fb99._0x2a1c77,_0x89fb99._0x444653)]===_0x4bc992(0x355,_0x89fb99._0x50a1b1,0x352,_0x89fb99._0x5078d2)&&_0x3c8b69['text'][_0x4bc992(0x363,0x333,_0x89fb99._0x3d3882,0x337)]>0x0){await emitEvent2(_0x22a0ea[_0x532a26(_0x89fb99._0x583e85,0x407,_0x89fb99._0x1706ba,_0x89fb99._0x2c2527)],_0x3c8b69,_0x53c921);continue;}const _0x21871b=createAssistantChunkEvent(_0x3c7e26,_0xdfedc4[_0x532a26(_0x89fb99._0x329463,0x4fe,_0x89fb99._0x24b620,0x4c8)]);if(_0x21871b){await emitEvent2(_0x22a0ea[_0x532a26(0x413,_0x89fb99._0x1cd45e,_0x89fb99._0x40f9e2,0x483)],_0x21871b,_0x53c921);continue;}const _0x1fad59=createToolUseChunkEvent(_0x3c7e26,_0xdfedc4['assistantMessageId']);_0x1fad59&&await emitEvent2(_0x22a0ea[_0x4bc992(_0x89fb99._0x50a9ed,_0x89fb99._0xf0f8d6,0x351,0x31a)],_0x1fad59,_0x53c921);}if(!_0x51051a)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');function _0x4bc992(_0x409489,_0xbb782e,_0x24ba29,_0x540c61){return _0x5c9f18(_0x540c61-0x32f,_0xbb782e-0x1f,_0x24ba29,_0x540c61-0x186);}return _0x51051a;}function makeTurnGuards(_0x4fa7ad,_0x2f071b,_0x18bad3,_0x5a02c5,_0x222e42){return{async 'stage'(_0x18979d,_0x53030b){return throwIfAborted(_0x4fa7ad),await runStage(_0x2f071b,_0x18979d,_0x53030b,_0x5a02c5);},async 'emit'(_0x6de1dc){throwIfAborted(_0x4fa7ad),await emitEvent2(_0x18bad3,_0x6de1dc,_0x222e42);},async 'stageUnchecked'(_0x130b86,_0x26cecd){return await runStage(_0x2f071b,_0x130b86,_0x26cecd,_0x5a02c5);},async 'emitUnchecked'(_0x2e784d){await emitEvent2(_0x18bad3,_0x2e784d,_0x222e42);}};}async function runTurn(_0x4a797d,_0x495946){const _0x8e9c13={_0x41a498:0x250,_0x2d3a51:0x227,_0x4a648d:0x24e,_0x4d48f2:0x22e,_0x1c7fe8:0x98,_0x5c5a04:0xad,_0x184bc7:0xe6,_0x1f618f:0xca,_0x2d5ccb:0xa1,_0x3d1780:0x1f4,_0xbdd702:0x21d,_0xba4e5b:0x1d3,_0x387024:0x21c,_0x53cdb9:0xad,_0xbdfc0a:0xc9,_0x2be729:0xe7,_0x2ec350:0x1f9,_0xb68481:0x1ed,_0x5a42f0:0x23f,_0x2fceeb:0x269,_0x4e58fd:0x25c,_0x197a33:0x1ac,_0x3e3017:0x197,_0x6175e8:0xb1,_0x41919f:0x39,_0x36007b:0x115,_0x31da4f:0x248,_0x15617c:0x265,_0x2fd0d2:0x21c,_0x465528:0x23c,_0x2000fb:0x18b,_0x3c1466:0x1d3,_0x1334e5:0x1dc,_0x5e3b4a:0x21a,_0xd9d614:0x202,_0xa04589:0xb6,_0x360b74:0x9d,_0x5c98f0:0x130,_0x263bc2:0x24b,_0x4f88e6:0x228,_0x29ad5c:0x208,_0xc57858:0x1eb,_0x523b1e:0x223,_0x5170d9:0x22f,_0xceff31:0x219,_0x13b4b9:0x264,_0x1ad375:0x273,_0x2d3edf:0x1fc,_0xd07139:0x1b3,_0x5d91e5:0x222,_0x195ab4:0xe8,_0x29e009:0x1b9,_0x951282:0x1a8,_0x4f6949:0x1f2,_0x5b57f6:0x90,_0x25f616:0x96,_0x111368:0xdd,_0x2c18c3:0x223,_0x430000:0x242,_0x738d0d:0x1b1,_0x4f94c4:0x9a,_0xf45478:0xa4,_0x55468d:0x1e3,_0x54ac0d:0x21f,_0x5706ed:0x1d9,_0x179803:0x70,_0x1a35d4:0x6f,_0x43da85:0x7a,_0xe8ac41:0xda,_0x409b7b:0xd0,_0x414e0f:0xac,_0x32d2bb:0xf6,_0x31f30a:0x116,_0x1f60a8:0x148,_0x54810f:0x146,_0x19d2e2:0x80,_0x1006da:0x76,_0xa7b24f:0x216,_0x5c2d3d:0x1eb,_0x38b731:0x19b,_0x288c69:0x1f5,_0x489a17:0xa3,_0x3837f7:0xe9,_0x4453e5:0x6b,_0x3f4e94:0x7e,_0x5d8676:0xc2,_0x3c4880:0x9f,_0x481705:0x7b,_0x45902e:0x204,_0x4d2567:0x1cd},_0x2825c0={_0x1e6a0c:0x20},_0x37adef=_0x4a797d[_0x36d05f(-_0x8e9c13._0x41a498,-0x22e,-_0x8e9c13._0x2d3a51,-_0x8e9c13._0x4a648d)]??new AbortController()[_0x36d05f(-0x213,-_0x8e9c13._0x4d48f2,-0x229,-_0x8e9c13._0x4d48f2)],_0x571396={'sessionId':_0x4a797d[_0x308c67(-_0x8e9c13._0x1c7fe8,-_0x8e9c13._0x5c5a04,-0xae,-_0x8e9c13._0x1c7fe8)],'turnId':_0x4a797d[_0x308c67(-_0x8e9c13._0x184bc7,-_0x8e9c13._0x1f618f,-_0x8e9c13._0x2d5ccb,-0xaa)],'system':normalizeSystem(_0x4a797d[_0x36d05f(-0x1cf,-_0x8e9c13._0x3d1780,-_0x8e9c13._0xbdd702,-0x1e4)]),'messages':(_0x4a797d[_0x36d05f(-0x1c5,-_0x8e9c13._0xba4e5b,-_0x8e9c13._0x387024,-0x1ea)]??[])[_0x308c67(-_0x8e9c13._0x53cdb9,-0x81,-_0x8e9c13._0xbdfc0a,-_0x8e9c13._0x2be729)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0};function _0x308c67(_0x56d0f1,_0x2c84ef,_0x11fac6,_0x5d9c9e){return _0x5c9f18(_0x56d0f1- -0xea,_0x2c84ef-0x1d7,_0x11fac6,_0x5d9c9e-0xa4);}function _0x36d05f(_0x1d4f3e,_0x1c6411,_0x40adcd,_0x1659d0){return _0x5c9f18(_0x1c6411- -0x239,_0x1c6411-0xc2,_0x1659d0,_0x1659d0-_0x2825c0._0x1e6a0c);}const _0x21e7f9=makeExtensionContext(_0x571396),_0x1cf8b1={'sessionId':_0x571396[_0x36d05f(-0x1af,-0x1e7,-0x20c,-0x22e)],'turnId':_0x571396['turnId'],'state':_0x571396,'signal':_0x37adef},{stage:_0x886e1a,emit:_0x5cb9cd,stageUnchecked:_0xd5a7ed,emitUnchecked:_0x201aba}=makeTurnGuards(_0x37adef,_0x495946[_0x36d05f(-_0x8e9c13._0x2ec350,-0x21f,-_0x8e9c13._0xb68481,-_0x8e9c13._0x5a42f0)],_0x495946[_0x36d05f(-0x23f,-0x24e,-0x24f,-_0x8e9c13._0x2fceeb)],_0x21e7f9,_0x1cf8b1);let _0x4bfc0c=0x0;try{const _0x3a19da=await _0x886e1a(_0x36d05f(-_0x8e9c13._0x2ec350,-_0x8e9c13._0x2d3a51,-_0x8e9c13._0x4e58fd,-0x1df),normalizeMessage(_0x4a797d['message']));_0x571396[_0x36d05f(-_0x8e9c13._0x197a33,-0x1d3,-_0x8e9c13._0x3e3017,-0x1a4)]['push'](_0x3a19da),await _0x5cb9cd({'type':_0x308c67(-0x80,-_0x8e9c13._0x6175e8,-0xb0,-_0x8e9c13._0x41919f),'message':_0x3a19da});while(!![]){throwIfAborted(_0x37adef),_0x4bfc0c+=0x1;const _0x108c77=createAssistantMessageId(_0x571396[_0x308c67(-0xe6,-0xad,-_0x8e9c13._0x36007b,-0xea)],_0x4bfc0c),_0x3ec7fb=createReasoningMessageId(_0x108c77);let _0x5c3664={'model':_0x495946[_0x36d05f(-0x209,-_0x8e9c13._0x31da4f,-0x256,-_0x8e9c13._0x15617c)]['model'],'maxTokens':_0x495946[_0x36d05f(-0x23f,-0x248,-0x216,-_0x8e9c13._0x2fd0d2)]['maxTokens']??0x4000,'system':structuredClone(_0x571396[_0x36d05f(-_0x8e9c13._0x465528,-0x1f4,-0x1e1,-0x20d)]),'messages':structuredClone(_0x571396[_0x36d05f(-_0x8e9c13._0x2000fb,-_0x8e9c13._0x3c1466,-_0x8e9c13._0x1334e5,-_0x8e9c13._0x5e3b4a)]),'tools':_0x495946[_0x36d05f(-0x1d9,-0x1fb,-0x21f,-_0x8e9c13._0xd9d614)]['listToolSchemas'](),'metadata':{'sessionId':_0x571396['sessionId'],'turnId':_0x571396[_0x308c67(-0xe6,-_0x8e9c13._0xa04589,-_0x8e9c13._0x360b74,-_0x8e9c13._0x5c98f0)]}};_0x5c3664=await _0x886e1a('beforeModelRequest',_0x5c3664),await _0x5cb9cd({'type':_0x36d05f(-0x258,-_0x8e9c13._0x263bc2,-0x237,-0x249),'request':_0x5c3664});let _0x58646a=await executeModelRequest(_0x5c3664,_0x4a797d,_0x495946,_0x1cf8b1,{'assistantMessageId':_0x108c77,'reasoningMessageId':_0x3ec7fb});_0x58646a=await _0x886e1a('afterModelResponse',_0x58646a),await _0x5cb9cd({'type':_0x36d05f(-_0x8e9c13._0x4f88e6,-_0x8e9c13._0x29ad5c,-_0x8e9c13._0xc57858,-_0x8e9c13._0x523b1e),'response':_0x58646a}),_0x571396[_0x36d05f(-0x222,-0x233,-0x238,-0x23d)]=_0x58646a;let _0x273622=await _0x886e1a(_0x36d05f(-_0x8e9c13._0x5170d9,-0x1e6,-0x1e0,-_0x8e9c13._0xceff31),withMessageId(responseToAssistantMessage(_0x58646a),_0x108c77));_0x273622=withMessageId(_0x273622,_0x108c77);const _0x4cab62=getToolUseBlocks(_0x273622),_0x28d973=await Promise[_0x36d05f(-_0x8e9c13._0x13b4b9,-0x252,-0x240,-_0x8e9c13._0x1ad375)](_0x4cab62[_0x36d05f(-0x1f4,-_0x8e9c13._0x2d3edf,-_0x8e9c13._0xd07139,-_0x8e9c13._0x5d91e5)](_0x30732a=>_0x886e1a(_0x308c67(-0xa2,-0xdb,-0x61,-0x87),_0x30732a)));_0x28d973['length']>0x0&&(_0x273622=replaceToolUseBlocks(_0x273622,_0x28d973));const _0x3f80e2=withMessageId(_0x273622,_0x108c77);_0x273622=_0x3f80e2;const _0x22870d=createReasoningMessage(_0x273622),_0x2726b9=createAssistantTextMessage(_0x273622),_0x6be923=createToolUseMessage(_0x273622);_0x22870d&&await _0x5cb9cd({'type':_0x308c67(-_0x8e9c13._0x195ab4,-0xc0,-0xe3,-0x125),'message':withMessageId(_0x22870d,_0x3ec7fb)});_0x2726b9&&await _0x5cb9cd({'type':'assistant_message','message':withMessageId(_0x2726b9,_0x108c77)});_0x6be923&&await _0x5cb9cd({'type':_0x36d05f(-_0x8e9c13._0x29e009,-0x1d6,-_0x8e9c13._0x951282,-0x1ee),'message':withMessageId(_0x6be923,_0x108c77)});_0x571396['messages'][_0x36d05f(-0x1b6,-_0x8e9c13._0x4f6949,-0x20a,-0x1aa)](_0x3f80e2);for(const _0x42e24c of _0x28d973){await _0x5cb9cd({'type':_0x308c67(-0xa4,-_0x8e9c13._0x5b57f6,-0xe3,-_0x8e9c13._0x25f616),'toolCall':_0x42e24c});}if(_0x28d973[_0x36d05f(-0x240,-0x231,-0x241,-0x26f)]===0x0){const _0x19c7ac=await _0x886e1a(_0x308c67(-0x9b,-_0x8e9c13._0x111368,-0xa9,-0xe0),_0x273622),_0x50a4d1=withMessageId(_0x19c7ac,_0x108c77);return _0x571396[_0x36d05f(-0x23f,-_0x8e9c13._0x2c18c3,-_0x8e9c13._0x430000,-0x258)]=_0x50a4d1,_0x571396[_0x36d05f(-0x1ac,-0x1d3,-0x1b5,-_0x8e9c13._0x738d0d)][_0x571396[_0x308c67(-0x84,-0xb7,-_0x8e9c13._0x4f94c4,-_0x8e9c13._0xf45478)]['length']-0x1]=_0x50a4d1,await _0x5cb9cd({'type':'final_message','message':_0x50a4d1}),throwIfAborted(_0x37adef),await _0x495946[_0x36d05f(-_0x8e9c13._0x55468d,-_0x8e9c13._0x54ac0d,-0x1d8,-_0x8e9c13._0x5706ed)]['runObservers'](_0x308c67(-0xaa,-_0x8e9c13._0x179803,-_0x8e9c13._0x1a35d4,-0x8b),_0x571396,_0x21e7f9),await _0x5cb9cd({'type':_0x308c67(-0x90,-0xa5,-0x6c,-_0x8e9c13._0x43da85),'state':_0x571396}),{'status':_0x308c67(-_0x8e9c13._0xe8ac41,-0x113,-0x121,-_0x8e9c13._0x409b7b),'finalMessage':_0x50a4d1,'state':_0x571396};}let _0x317866=await _0x495946[_0x308c67(-_0x8e9c13._0x414e0f,-_0x8e9c13._0x32d2bb,-0x9b,-0xae)]['executeCalls'](_0x28d973,_0x1cf8b1);const _0x55073c=_0x317866[_0x36d05f(-0x1f3,-0x1fd,-0x230,-0x1c7)](isAbortedToolResult),_0x4db978=_0x55073c?_0xd5a7ed:_0x886e1a,_0x337a28=_0x55073c?_0x201aba:_0x5cb9cd;_0x317866=await Promise[_0x308c67(-0x103,-_0x8e9c13._0x31f30a,-_0x8e9c13._0x1f60a8,-_0x8e9c13._0x54810f)](_0x317866[_0x308c67(-0xad,-_0x8e9c13._0xf45478,-_0x8e9c13._0x19d2e2,-_0x8e9c13._0x1006da)](_0x358d6d=>_0x4db978('afterToolResult',_0x358d6d))),_0x571396['toolResults']['push'](..._0x317866);for(const _0x28e42b of _0x317866){await _0x337a28({'type':_0x36d05f(-0x1d9,-0x203,-0x1ce,-_0x8e9c13._0xa7b24f),'result':_0x28e42b});}const _0x2fc8c4=await _0x4db978('beforeToolResultAppend',createToolResultUserMessage(_0x317866));await _0x337a28({'type':'tool_result_message','message':_0x2fc8c4}),_0x571396[_0x36d05f(-_0x8e9c13._0x5c2d3d,-0x1d3,-_0x8e9c13._0x38b731,-_0x8e9c13._0x288c69)][_0x308c67(-_0x8e9c13._0x489a17,-0xa8,-_0x8e9c13._0x3837f7,-_0x8e9c13._0x4453e5)](_0x2fc8c4);if(_0x55073c)return{'status':_0x308c67(-_0x8e9c13._0x3f4e94,-0x3d,-_0x8e9c13._0x5d8676,-_0x8e9c13._0x3c4880),'state':_0x571396};}}catch(_0xc233a9){if(!_0x37adef[_0x308c67(-_0x8e9c13._0x3f4e94,-0x65,-_0x8e9c13._0x481705,-0x58)])throw _0xc233a9;return{'status':_0x36d05f(-_0x8e9c13._0x45902e,-_0x8e9c13._0x4d2567,-0x191,-0x1e3),'state':_0x571396};}}function createSessionId(){const _0xe98402={_0x3b1d53:0x28d,_0x18bf07:0x2a1,_0x37fd9b:0x2ff,_0x546e3b:0xfd,_0x478d2c:0xcb,_0x35bf82:0xcb},_0x5e656c={_0x3c6fb7:0xa3,_0x548f13:0xdd,_0x2519b1:0x26},_0xc85ad6={_0x3f074f:0x290,_0x5b0ed4:0xee,_0x1f70b8:0xc2};function _0x2369a6(_0x4fb012,_0x16dde6,_0x3b6896,_0x5b1317){return _0x5c9f18(_0x4fb012-_0xc85ad6._0x3f074f,_0x16dde6-_0xc85ad6._0x5b0ed4,_0x16dde6,_0x5b1317-_0xc85ad6._0x1f70b8);}function _0x1b5be5(_0x5b0f7d,_0xabda72,_0x2feed8,_0x7bba03){return _0x5c9f18(_0x7bba03-_0x5e656c._0x3c6fb7,_0xabda72-_0x5e656c._0x548f13,_0xabda72,_0x7bba03-_0x5e656c._0x2519b1);}return _0x2369a6(0x284,_0xe98402._0x3b1d53,_0xe98402._0x18bf07,0x2c4)+Date[_0x2369a6(_0xe98402._0x37fd9b,0x2d6,0x2ca,0x33d)]()+'-'+Math[_0x1b5be5(_0xe98402._0x546e3b,0x8b,_0xe98402._0x478d2c,_0xe98402._0x35bf82)]()['toString'](0x10)['slice'](0x2,0xa);}function createTurnId(_0x33548e){return'turn-'+_0x33548e;}function createDefaultMessage(_0x5a6854){if(_0x5a6854===void 0x0)return void 0x0;return normalizeUserInput(_0x5a6854);}function normalizeUserInput(_0x18b46c){const _0x3ab5be={_0x104753:0x1fb,_0x5805e0:0x1db,_0x3ca204:0x1d4,_0x5c1a0c:0x1de,_0x164524:0x215,_0x138a58:0x1f6},_0x1ac4c0={_0x3331af:0x1db},_0x80ce4b={_0x335618:0x74};function _0xb0d7c5(_0x40c963,_0x4b613a,_0xc8c913,_0x4d8e0a){return _0x4bc00b(_0x40c963-0x5e,_0x4d8e0a-_0x80ce4b._0x335618,_0x4b613a,_0x4d8e0a-0x156);}if(typeof _0x18b46c===_0x2b62ce(_0x3ab5be._0x104753,0x23a,_0x3ab5be._0x5805e0,_0x3ab5be._0x3ca204))return{'role':_0x2b62ce(_0x3ab5be._0x5c1a0c,0x1a6,0x1f9,0x1a6),'content':[{'type':_0x2b62ce(_0x3ab5be._0x164524,0x239,0x1f4,_0x3ab5be._0x138a58),'text':_0x18b46c}]};function _0x2b62ce(_0x1fbc86,_0x5bcd0e,_0x1f7a8c,_0x2c8e47){return _0x5c9f18(_0x1fbc86-_0x1ac4c0._0x3331af,_0x5bcd0e-0x1a,_0x1f7a8c,_0x2c8e47-0x1bd);}return normalizeMessage(_0x18b46c);}function resolveChatModel(_0x31ca86){if(!_0x31ca86['chatModel'])throw new Error('Agent\x20requires\x20a\x20chatModel');return _0x31ca86['chatModel'];}function createRegistry(_0x2c3c7f){const _0x270531={_0x12b7c6:0xad,_0x2622d7:0xae,_0x4da160:0x198},_0xf5244d={_0x38ff8a:0x182};if(_0x2c3c7f[_0xcc4f96(-0xcc,-0x100,-_0x270531._0x12b7c6,-_0x270531._0x2622d7)])return _0x2c3c7f[_0x1f3b7e(-0x207,-0x223,-0x238,-0x263)];const _0x5ca815=createExtensionRegistry();function _0xcc4f96(_0x141b3b,_0x1e4ad7,_0xb94a8e,_0x14e972){return _0x4bc00b(_0x141b3b-_0xf5244d._0x38ff8a,_0x141b3b- -0x2c0,_0x1e4ad7,_0x14e972-0x9a);}const _0x523ad8=_0x2c3c7f[_0x1f3b7e(-0x1a6,-0x1c8,-0x1de,-_0x270531._0x4da160)]??[];for(const _0x52236e of _0x523ad8){_0x5ca815['register'](_0x52236e);}function _0x1f3b7e(_0x2174a9,_0x397f55,_0xbc30a1,_0x23f3f6){return _0x4bc00b(_0x2174a9-0xdb,_0x397f55- -0x417,_0xbc30a1,_0x23f3f6-0x86);}return _0x5ca815;}var Agent=class{['deps'];[_0x4bc00b(0x202,0x22c,0x1fb,0x24c)];[_0x5c9f18(0x54,0x6f,0x2e,0x7c)];[_0x4bc00b(0x24f,0x240,0x226,0x278)];[_0x4bc00b(0x254,0x22a,0x23f,0x231)];[_0x4bc00b(0x1cf,0x212,0x1df,0x1f7)];constructor(_0xa7bfd6={}){const _0x1c6fa7={_0x2f0cb2:0x19d,_0x474993:0x1ef,_0x589aee:0x186,_0x3eb1e9:0x1df,_0x505e08:0x1bb,_0x320339:0x278,_0x3a132d:0x2df,_0x22401d:0x2b9,_0x210482:0x23a,_0x165425:0x2ba,_0x100d0d:0x2c5,_0x5d6dc6:0x279,_0x1c78dd:0x2d3,_0xa6c429:0x2a9,_0x5af6f2:0x1bf,_0x5034ef:0x2b2,_0x102851:0x2fc,_0x55eed1:0x2b5,_0x5e3dfd:0x2a5},_0x4afab8={_0x1c8592:0x8e,_0x100bbb:0x4c0},_0xab9ab1={_0x38c6ec:0x3e9};this[_0xcce580(-0x199,-0x1dc,-0x19f,-0x1bd)]=_0xa7bfd6[_0xcce580(-_0x1c6fa7._0x2f0cb2,-_0x1c6fa7._0x474993,-0x1fd,-0x1bd)]??createSessionId();function _0xcce580(_0x2f428f,_0x48d10f,_0x38ff11,_0x3072d1){return _0x4bc00b(_0x2f428f-0x119,_0x3072d1- -_0xab9ab1._0x38c6ec,_0x2f428f,_0x3072d1-0x14c);}this['turnIndex']=0x0,this[_0xcce580(-0x1ed,-_0x1c6fa7._0x589aee,-_0x1c6fa7._0x3eb1e9,-_0x1c6fa7._0x505e08)]=_0xa7bfd6[_0x363fc3(-0x2fd,-_0x1c6fa7._0x320339,-_0x1c6fa7._0x3a132d,-_0x1c6fa7._0x22401d)]??'';function _0x363fc3(_0x2bcce2,_0x11f2ab,_0x5d1275,_0x505bee){return _0x4bc00b(_0x2bcce2-_0x4afab8._0x1c8592,_0x505bee- -_0x4afab8._0x100bbb,_0x2bcce2,_0x505bee-0xed);}this['messages']=(_0xa7bfd6[_0x363fc3(-_0x1c6fa7._0x210482,-0x259,-_0x1c6fa7._0x165425,-0x280)]??[])[_0x363fc3(-_0x1c6fa7._0x100d0d,-_0x1c6fa7._0x5d6dc6,-_0x1c6fa7._0x1c78dd,-_0x1c6fa7._0xa6c429)](normalizeMessage),this[_0xcce580(-0x1cd,-0x1b6,-0x1d2,-_0x1c6fa7._0x5af6f2)]=createDefaultMessage(_0xa7bfd6[_0x363fc3(-0x333,-0x30e,-_0x1c6fa7._0x5034ef,-_0x1c6fa7._0x102851)]);const _0x1959ce=createInternalToolRuntime(_0xa7bfd6['tools']??[],{'onEvent':_0xa7bfd6['onEvent'],'onToolCall':_0xa7bfd6['onToolCall']});this[_0x363fc3(-0x26b,-0x278,-_0x1c6fa7._0x55eed1,-_0x1c6fa7._0x5e3dfd)]={'registry':createRegistry(_0xa7bfd6),'chatModel':resolveChatModel(_0xa7bfd6),'toolRuntime':_0x1959ce,'onEvent':_0xa7bfd6['onEvent']};}get[_0x4bc00b(0x1d6,0x207,0x20d,0x1bf)](){const _0x76f2fe={_0x22d258:0x20,_0x485299:0x58},_0x24e1f3={_0x41256b:0x7e};function _0x5ee964(_0x355e24,_0x4d51e1,_0x424ce8,_0x43cc81){return _0x4bc00b(_0x355e24-_0x24e1f3._0x41256b,_0x424ce8- -0x1d6,_0x43cc81,_0x43cc81-0x1da);}return this[_0x5ee964(_0x76f2fe._0x22d258,0x58,_0x76f2fe._0x485299,0x3a)];}[_0x4bc00b(0x246,0x1fd,0x1ec,0x22d)](_0x54174c=[]){const _0x53d8e6={_0x2c03c9:0x56,_0x38f8bb:0x4a,_0x270033:0x38,_0x5d73ae:0x36,_0x529fef:0x7a},_0x3a6143={_0x3ff898:0xee};function _0x3a09ee(_0x2928f9,_0x133692,_0x5ce2ef,_0x30be5a){return _0x5c9f18(_0x30be5a- -0x77,_0x133692-0x1df,_0x5ce2ef,_0x30be5a-_0x3a6143._0x3ff898);}function _0x24f67c(_0x123c44,_0x56d8e4,_0x3d5787,_0x57a5d4){return _0x4bc00b(_0x123c44-0x111,_0x123c44- -0x3f5,_0x56d8e4,_0x57a5d4-0xfd);}this[_0x3a09ee(-_0x53d8e6._0x2c03c9,-_0x53d8e6._0x38f8bb,-_0x53d8e6._0x270033,-_0x53d8e6._0x5d73ae)][_0x3a09ee(-0x6,-0x1c,-_0x53d8e6._0x529fef,-0x39)]['setTools'](_0x54174c);}[_0x4bc00b(0x24b,0x23c,0x279,0x25f)](_0x2fa511,_0x361493={}){const _0x7177f1={_0x2fcaad:0x111,_0x26dd96:0xe0,_0xce3392:0x121,_0x1a1bbd:0xe8,_0x1d06f0:0xf2},_0x4dbc62={_0x4d2c69:0xd8},_0x2f73a3={_0x374aba:0xaf,_0x27716d:0x8f};function _0x37cebf(_0x598744,_0x264a03,_0x499eb3,_0x3f3716){return _0x4bc00b(_0x598744-_0x2f73a3._0x374aba,_0x499eb3- -0x2fa,_0x264a03,_0x3f3716-_0x2f73a3._0x27716d);}function _0x21d258(_0x1c30de,_0x49ed4a,_0x27e303,_0xd1d301){return _0x5c9f18(_0x49ed4a-_0x4dbc62._0x4d2c69,_0x49ed4a-0xa4,_0x27e303,_0xd1d301-0x125);}this['_systemPrompt']=_0x2fa511,_0x361493[_0x21d258(0x169,0x143,0x15b,_0x7177f1._0x2fcaad)]===!![]&&(this['messages']=[],this[_0x37cebf(-_0x7177f1._0x26dd96,-_0x7177f1._0xce3392,-_0x7177f1._0x1a1bbd,-_0x7177f1._0x1d06f0)]=0x0);}[_0x5c9f18(0x9,0x8,-0x3d,0x49)](_0x2ee200){const _0x5cb580={_0x45e2b7:0x2a0},_0x346ccb={_0x41683b:0x47a},_0x438489={_0x1c1bc3:0x10d,_0x1f82e3:0x4f};function _0x46b94b(_0x27d799,_0x4597ab,_0x2da871,_0x3e7fac){return _0x5c9f18(_0x3e7fac-_0x438489._0x1c1bc3,_0x4597ab-_0x438489._0x1f82e3,_0x2da871,_0x3e7fac-0x3e);}function _0x4be300(_0x235920,_0x2f40aa,_0x33c634,_0x5cc27d){return _0x4bc00b(_0x235920-0xaa,_0x235920- -_0x346ccb._0x41683b,_0x5cc27d,_0x5cc27d-0x114);}this[_0x4be300(-0x25f,-_0x5cb580._0x45e2b7,-0x223,-0x233)][_0x4be300(-0x2af,-0x297,-0x2ea,-0x2f5)]=_0x2ee200;}async[_0x5c9f18(0x37,0x5d,0x14,0x68)](_0xd8c474=this[_0x4bc00b(0x270,0x22a,0x269,0x24e)],_0x5e8ff2={}){const _0x3943ab={_0x3aadab:0x498,_0x4bff3d:0x48b,_0x47ffdd:0x481,_0x15fef7:0xb,_0x12362d:0x3a,_0x3925c6:0x20,_0x9eabcf:0x43,_0x4c6881:0x463,_0x3025e6:0x44b,_0x19020f:0x455,_0x369ca8:0x40f,_0x518e14:0x3c,_0x2313be:0xc,_0xbf4209:0x47,_0xe5b5ec:0x424},_0x558274={_0x4e3718:0x251,_0x270453:0xf6},_0x53d1b8={_0x252d23:0xac};if(!_0xd8c474)throw new Error(_0x452947(0x45f,_0x3943ab._0x3aadab,_0x3943ab._0x4bff3d,_0x3943ab._0x47ffdd));this[_0xd96f67(-0x68,_0x3943ab._0x15fef7,-_0x3943ab._0x12362d,-0x4c)]+=0x1;const _0x52b8c9=await runTurn({'sessionId':this[_0xd96f67(-0x5d,0xf,-_0x3943ab._0x3925c6,-_0x3943ab._0x9eabcf)],'turnId':createTurnId(this[_0x452947(0x463,_0x3943ab._0x4c6881,0x42f,_0x3943ab._0x3025e6)]),'streaming':_0x5e8ff2[_0x452947(_0x3943ab._0x19020f,0x471,0x44b,_0x3943ab._0x369ca8)],'signal':_0x5e8ff2['signal'],'system':this['systemPrompt'],'messages':this[_0xd96f67(-0xd,_0x3943ab._0x518e14,-_0x3943ab._0x2313be,-_0x3943ab._0xbf4209)],'message':normalizeUserInput(_0xd8c474)},this['deps']);function _0xd96f67(_0x36ab2d,_0x463cae,_0x3acc07,_0x2218bc){return _0x5c9f18(_0x3acc07- -0x72,_0x463cae-0x4d,_0x463cae,_0x2218bc-_0x53d1b8._0x252d23);}function _0x452947(_0x24d987,_0x456b3b,_0xc7b0de,_0x495ace){return _0x4bc00b(_0x24d987-0x134,_0x24d987-_0x558274._0x4e3718,_0x456b3b,_0x495ace-_0x558274._0x270453);}return this[_0x452947(0x491,0x460,0x4bf,0x4db)]=_0x52b8c9['state']['messages'][_0x452947(0x468,0x464,_0x3943ab._0xe5b5ec,0x446)](normalizeMessage),_0x52b8c9;}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,runTurn,Agent};
1
+ function _0x132076(_0x5414f7,_0x2e07a7,_0x1c6280,_0x232797){const _0x1ec8a8={_0x25a13b:0xa2};return _0xb510(_0x2e07a7-_0x1ec8a8._0x25a13b,_0x1c6280);}(function(_0x2d6b3b,_0x47b7bf){const _0x47e474={_0x347ac1:0x1f,_0x5450aa:0x2a4,_0x52ddc8:0x297,_0x4146d5:0x2a9,_0x8c925b:0x288,_0x35de1e:0x50,_0x15a33b:0x96,_0xb82b58:0x0,_0x1686b0:0x4,_0x41f6bd:0x22,_0x34bc03:0x2d,_0x438ab9:0x67,_0x348ee3:0xbf,_0x123092:0x61,_0x4bd5a3:0x7f,_0x378ec9:0x1b,_0x222487:0x2be,_0x457f81:0x271,_0x217aaf:0x2,_0x30c20e:0x23,_0x41697c:0x2d9,_0x23fcf5:0x283,_0x409637:0x2d5,_0x4f6291:0x29f};function _0xfbe8b8(_0x58ba1c,_0x424f95,_0x1c72b1,_0x425012){return _0xb510(_0x1c72b1- -0x154,_0x58ba1c);}const _0x55c701=_0x2d6b3b();function _0x46016e(_0x29b584,_0x1dbc3e,_0x840570,_0x34194d){return _0xb510(_0x34194d-0x190,_0x1dbc3e);}while(!![]){try{const _0xb55c21=parseInt(_0xfbe8b8(-_0x47e474._0x347ac1,-0x45,-0x64,-0x32))/0x1*(parseInt(_0x46016e(_0x47e474._0x5450aa,0x2a5,_0x47e474._0x52ddc8,0x2a4))/0x2)+parseInt(_0x46016e(0x27a,0x27c,_0x47e474._0x4146d5,_0x47e474._0x8c925b))/0x3*(-parseInt(_0xfbe8b8(-_0x47e474._0x35de1e,-0xe6,-_0x47e474._0x15a33b,-0x94))/0x4)+-parseInt(_0xfbe8b8(-0x2e,_0x47e474._0xb82b58,-_0x47e474._0x1686b0,-_0x47e474._0x41f6bd))/0x5+-parseInt(_0xfbe8b8(-0x9e,-_0x47e474._0x34bc03,-_0x47e474._0x438ab9,-0xb6))/0x6*(parseInt(_0xfbe8b8(-_0x47e474._0x348ee3,-_0x47e474._0x123092,-_0x47e474._0x4bd5a3,-0x4a))/0x7)+parseInt(_0xfbe8b8(-0x8f,-_0x47e474._0x378ec9,-0x51,-0x24))/0x8+-parseInt(_0x46016e(0x28f,_0x47e474._0x222487,_0x47e474._0x457f81,0x2ba))/0x9+parseInt(_0xfbe8b8(-0x11,-0x4d,-_0x47e474._0x217aaf,_0x47e474._0x30c20e))/0xa*(parseInt(_0x46016e(_0x47e474._0x41697c,_0x47e474._0x23fcf5,_0x47e474._0x409637,_0x47e474._0x4f6291))/0xb);if(_0xb55c21===_0x47b7bf)break;else _0x55c701['push'](_0x55c701['shift']());}catch(_0x3268e1){_0x55c701['push'](_0x55c701['shift']());}}}(_0x3beb,0xe6376));import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage}from'./chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x4b8a67){const _0x422f0b={_0x55c6ac:0x289,_0x2fbd71:0x250,_0x414581:0x240,_0x3acbf6:0x2b2,_0x15a99a:0x30b},_0x5d143c={_0x5271c8:0x376},_0x2f0503={_0x114224:0x1c8};function _0x17aa97(_0x2309ee,_0x4ecdb1,_0x3918e1,_0x4102df){return _0xb510(_0x2309ee-_0x2f0503._0x114224,_0x3918e1);}function _0x31200d(_0x30de28,_0x504ed2,_0x1440da,_0x5cfb0d){return _0xb510(_0x504ed2-_0x5d143c._0x5271c8,_0x1440da);}return typeof _0x4b8a67===_0x17aa97(_0x422f0b._0x55c6ac,0x245,_0x422f0b._0x2fbd71,_0x422f0b._0x414581)&&_0x4b8a67!==null&&!Array[_0x17aa97(0x2d6,0x2b4,_0x422f0b._0x3acbf6,_0x422f0b._0x15a99a)](_0x4b8a67);}function isToolOutputEnvelope(_0xc7e453){const _0x53b544={_0x1f11b8:0x226,_0x25da23:0x1e5,_0xe19519:0x1ec,_0x3e0638:0x60,_0x106537:0x5a,_0x218e43:0x4c},_0x1c854a={_0x129eda:0x2dd};if(typeof _0xc7e453!=='object'||_0xc7e453===null||Array[_0x30bb4e(-0x2c,-0x14,-0x50,-0x34)](_0xc7e453))return![];function _0x30bb4e(_0x452ac2,_0x480cb8,_0x181061,_0x5a2eb1){return _0xb510(_0x181061- -0x15e,_0x452ac2);}function _0x487169(_0x252ff0,_0x17b757,_0x149b13,_0x263ee5){return _0xb510(_0x149b13- -_0x1c854a._0x129eda,_0x17b757);}if(typeof _0xc7e453[_0x487169(-_0x53b544._0x1f11b8,-_0x53b544._0x25da23,-_0x53b544._0xe19519,-0x220)]!==_0x30bb4e(0x1d,0x27,-0x19,-_0x53b544._0x3e0638))return![];const _0x266e00=_0xc7e453[_0x30bb4e(-0x92,-0xa2,-_0x53b544._0x106537,-_0x53b544._0x218e43)];return _0x266e00===void 0x0||isJsonObject(_0x266e00);}function validateAgainstSchema(_0x15f222,_0x4caae0,_0x5442de){const _0x1ed4d0={_0x4d28e9:0x81,_0x493b8e:0x46,_0x55e5fe:0x61,_0xb5564:0x6b,_0x45566e:0x6b,_0x5b6b65:0xbc,_0x529cd6:0x9b,_0x3fe336:0xc7,_0x18d1a7:0x14c,_0x1ea3f9:0x111,_0x46db90:0xad,_0x156e50:0x8e,_0x269e73:0x117,_0x17a272:0x52,_0x54ada1:0x71,_0x1b21f6:0x34,_0xd833b2:0x124,_0x456992:0x8c,_0x2e9581:0x62,_0x3551a1:0x9e,_0x18716d:0x9d,_0x286e54:0xbb,_0x4a557c:0xb2,_0x5332a4:0x87,_0x2414f6:0x79,_0x4fbe13:0x60,_0x444e4d:0x7f,_0x32e26d:0x4d,_0x5b52a0:0xed,_0x234548:0xbc,_0x687dca:0xe5,_0xda93fc:0x99,_0x4eae56:0x104,_0x573e66:0x112,_0x2918cb:0xb4},_0x4cac12={_0x4de3aa:0x2e3,_0x46dc03:0x2f2},_0x96ed06={_0x335d04:0x1a6};function _0x5775a7(_0x38b645,_0x30ac33,_0x17b9d3,_0x31c32a){return _0xb510(_0x30ac33- -0x210,_0x17b9d3);}function _0x57ce1f(_0x517055,_0x14a042,_0x1c46b6,_0x1bfc46){return _0xb510(_0x517055- -_0x96ed06._0x335d04,_0x14a042);}switch(_0x5442de['type']){case _0x57ce1f(-0x61,-_0x1ed4d0._0x4d28e9,-0xb0,-_0x1ed4d0._0x493b8e):if(typeof _0x4caae0!==_0x57ce1f(-_0x1ed4d0._0x55e5fe,-_0x1ed4d0._0xb5564,-0x58,-_0x1ed4d0._0x45566e))throw new Error(_0x5775a7(-0xa3,-_0x1ed4d0._0x5b6b65,-_0x1ed4d0._0x529cd6,-_0x1ed4d0._0x3fe336)+_0x15f222+_0x5775a7(-_0x1ed4d0._0x18d1a7,-_0x1ed4d0._0x1ea3f9,-0x10d,-0xe4));return;case _0x57ce1f(-_0x1ed4d0._0x46db90,-0x80,-_0x1ed4d0._0x156e50,-0xbf):if(typeof _0x4caae0!==_0x5775a7(-0xdb,-_0x1ed4d0._0x269e73,-_0x1ed4d0._0x18d1a7,-0xd0))throw new Error(_0x57ce1f(-_0x1ed4d0._0x17a272,-_0x1ed4d0._0x54ada1,-0x2,-_0x1ed4d0._0x1b21f6)+_0x15f222+_0x5775a7(-0xe4,-_0x1ed4d0._0xd833b2,-0x138,-0xd9));return;case _0x5775a7(-_0x1ed4d0._0x456992,-0xc1,-0x9e,-0x71):if(typeof _0x4caae0!==_0x57ce1f(-0x57,-_0x1ed4d0._0x2e9581,-0x33,-_0x1ed4d0._0x3551a1))throw new Error(_0x57ce1f(-_0x1ed4d0._0x17a272,-0x68,-0x2d,-_0x1ed4d0._0x18716d)+_0x15f222+_0x57ce1f(-0xbe,-_0x1ed4d0._0x286e54,-0x88,-_0x1ed4d0._0x286e54));return;case'array':if(!Array['isArray'](_0x4caae0))throw new Error(_0x5775a7(-_0x1ed4d0._0x4a557c,-_0x1ed4d0._0x5b6b65,-0x7d,-_0x1ed4d0._0x5332a4)+_0x15f222+_0x57ce1f(-0x87,-_0x1ed4d0._0x54ada1,-_0x1ed4d0._0x2414f6,-_0x1ed4d0._0x4fbe13));_0x4caae0[_0x57ce1f(-0x5f,-0xae,-_0x1ed4d0._0x444e4d,-0x53)]((_0x3bd60f,_0x51e4dc)=>{const _0x19be2e={_0x1594dc:0x65};function _0x4e132a(_0x11cc6f,_0x515f80,_0x455b87,_0x18ef9d){return _0x5775a7(_0x11cc6f-0x12a,_0x18ef9d- -0x1b8,_0x11cc6f,_0x18ef9d-_0x19be2e._0x1594dc);}validateAgainstSchema(_0x15f222+'['+_0x51e4dc+']',_0x3bd60f,_0x5442de[_0x4e132a(-0x2f3,-0x310,-_0x4cac12._0x4de3aa,-_0x4cac12._0x46dc03)]);});return;case'object':if(!isJsonObject(_0x4caae0))throw new Error(_0x57ce1f(-_0x1ed4d0._0x17a272,-_0x1ed4d0._0x32e26d,-0x4b,-0x2d)+_0x15f222+':\x20expected\x20object');for(const _0x2534ce of _0x5442de[_0x57ce1f(-0xa6,-_0x1ed4d0._0x5b52a0,-0x89,-0xe2)]??[]){if(!(_0x2534ce in _0x4caae0))throw new Error(_0x5775a7(-_0x1ed4d0._0x5b52a0,-_0x1ed4d0._0x234548,-_0x1ed4d0._0x687dca,-_0x1ed4d0._0xda93fc)+_0x15f222+_0x57ce1f(-0xea,-0xac,-_0x1ed4d0._0x4eae56,-_0x1ed4d0._0x5b52a0)+_0x2534ce+'\x22');}for(const [_0x5b26d5,_0x164264]of Object[_0x57ce1f(-0xeb,-_0x1ed4d0._0x573e66,-_0x1ed4d0._0x2918cb,-0xe5)](_0x5442de['properties'])){_0x5b26d5 in _0x4caae0&&validateAgainstSchema(_0x15f222+'.'+_0x5b26d5,_0x4caae0[_0x5b26d5],_0x164264);}}}function normalizeToolOutputValue(_0x147e4c){const _0x55a9b9={_0x31288d:0x17b,_0x167b01:0x151,_0x5bcbd0:0x172,_0x44b3af:0x1d7,_0x478b19:0x1ad,_0x4dd97f:0x357,_0x85a810:0x376,_0x1b10fa:0x394,_0x572a1c:0x344,_0x1c45f7:0x1d0,_0x258abd:0x384,_0x3258ef:0x37b,_0x14952c:0x384,_0x5003c0:0x3c8,_0x47462f:0x403,_0x554e91:0x3ee,_0x29dcef:0x40e,_0x379eb2:0x3e3};if(isToolOutputEnvelope(_0x147e4c))return{'output':_0x147e4c[_0x54e228(_0x55a9b9._0x31288d,0x1c7,_0x55a9b9._0x167b01,_0x55a9b9._0x5bcbd0)],'structured':_0x147e4c[_0x54e228(0x18e,_0x55a9b9._0x44b3af,0x147,_0x55a9b9._0x478b19)]??{'value':_0x147e4c['output']},..._0x147e4c['content']!==void 0x0?{'content':_0x147e4c[_0x1a0ac6(_0x55a9b9._0x4dd97f,_0x55a9b9._0x85a810,_0x55a9b9._0x1b10fa,_0x55a9b9._0x572a1c)]}:{}};function _0x54e228(_0x2720cb,_0x5ee2bf,_0x3e7acc,_0x4474ab){return _0xb510(_0x2720cb-0x8a,_0x3e7acc);}if(typeof _0x147e4c===_0x54e228(0x1cf,_0x55a9b9._0x1c45f7,0x1fb,0x1f3))return{'output':_0x147e4c,'structured':{'value':_0x147e4c}};if(typeof _0x147e4c===_0x1a0ac6(0x365,_0x55a9b9._0x258abd,_0x55a9b9._0x3258ef,0x38c)&&_0x147e4c!==null&&!Array[_0x1a0ac6(0x3f3,_0x55a9b9._0x14952c,_0x55a9b9._0x5003c0,_0x55a9b9._0x47462f)](_0x147e4c))return{'output':JSON[_0x1a0ac6(_0x55a9b9._0x554e91,_0x55a9b9._0x29dcef,_0x55a9b9._0x379eb2,0x3ef)](_0x147e4c,null,0x2),'structured':_0x147e4c};function _0x1a0ac6(_0x53e4c4,_0xfe60fa,_0x161cc4,_0x123b6f){return _0xb510(_0x161cc4-0x2ba,_0x53e4c4);}return{'output':JSON['stringify'](_0x147e4c,null,0x2),'structured':{'value':_0x147e4c}};}function createToolOutput(_0x882d61,_0x16f4d3={'value':_0x882d61},_0x1b5851){return{'output':_0x882d61,'structured':_0x16f4d3,..._0x1b5851!==void 0x0?{'content':_0x1b5851}:{}};}function _0x29898f(_0x3cf440,_0xc0cdc9,_0x3bce29,_0x393ba9){const _0x1df386={_0x38db27:0x2e5};return _0xb510(_0x393ba9-_0x1df386._0x38db27,_0xc0cdc9);}var ToolExecutionError=class extends Error{[_0x132076(0x1be,0x1a6,0x1d0,0x1c9)];constructor(_0x1263cf,_0x34cf88={}){const _0x4682f8={_0x2f100d:0xc6,_0xc72a08:0x157,_0x2a9159:0x178,_0x48365f:0x186},_0x13d68e={_0x40f787:0x5c,_0x1e8916:0x2ef},_0x4d7d16={_0x49f2fc:0xa8,_0x546edb:0x95};function _0x3dba91(_0x4a1208,_0x5512e8,_0xc5963,_0x5d0065){return _0x132076(_0x4a1208-_0x4d7d16._0x49f2fc,_0x5d0065- -0xa8,_0x4a1208,_0x5d0065-_0x4d7d16._0x546edb);}super(_0x1263cf),this[_0x3dba91(0x103,_0x4682f8._0x2f100d,0x11a,0x10c)]=_0x338bc5(-0x15f,-0x150,-_0x4682f8._0xc72a08,-0x140);function _0x338bc5(_0xdee876,_0x35e1d4,_0x77883b,_0x25c189){return _0x132076(_0xdee876-_0x13d68e._0x40f787,_0x25c189- -_0x13d68e._0x1e8916,_0x77883b,_0x25c189-0xbe);}this[_0x338bc5(-_0x4682f8._0x2a9159,-_0x4682f8._0x48365f,-0x12e,-0x149)]=_0x34cf88;}};function defineTool(_0x2d4a74){return _0x2d4a74;}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x222a09=[]){for(const _0x2745aa of _0x222a09){this['register'](_0x2745aa);}}[_0x132076(0x1c6,0x1a3,0x1d2,0x1de)](_0x3e6917){const _0x150616={_0x2ba81d:0x64,_0x47130e:0x84};function _0x263458(_0x424112,_0x55a475,_0x4a77af,_0xbfb4f7){return _0x29898f(_0x424112-0xf8,_0x424112,_0x4a77af-0x9b,_0x55a475- -0x4db);}this['toolsByName'][_0x263458(-_0x150616._0x2ba81d,-0xa3,-0x7a,-_0x150616._0x47130e)](_0x3e6917['name'],_0x3e6917);}['get'](_0x4ec1b8){return this['toolsByName']['get'](_0x4ec1b8);}['list'](){const _0x1c1a5d={_0x38c9b6:0x300,_0x22fea1:0x2e0,_0x1d322f:0x2d3,_0x21738d:0x2fb},_0xb8d860={_0x5d6f0c:0x1ea};function _0x4f247a(_0x3acb6e,_0x4f202c,_0x54e893,_0x2ea9c0){return _0x29898f(_0x3acb6e-0x28,_0x3acb6e,_0x54e893-_0xb8d860._0x5d6f0c,_0x4f202c- -0x4ea);}function _0x14b14f(_0x1e524f,_0x59b862,_0x321cba,_0x42c46a){return _0x29898f(_0x1e524f-0xa9,_0x321cba,_0x321cba-0x19f,_0x42c46a- -0x11d);}return[...this[_0x14b14f(_0x1c1a5d._0x38c9b6,_0x1c1a5d._0x22fea1,_0x1c1a5d._0x1d322f,0x31f)][_0x14b14f(_0x1c1a5d._0x21738d,0x317,0x328,0x2ec)]()];}[_0x29898f(0x3c0,0x3d6,0x395,0x3b2)](){const _0x54e33f={_0x4aacbe:0x3b6,_0x1c61c2:0x394,_0x560129:0x3c7},_0x38d93a={_0x44e4fb:0x4e9,_0x22aa39:0x4b8,_0x30523e:0x4f6,_0x436fae:0xef,_0x1f7e68:0x137,_0x96e5ec:0xee},_0x1129c5={_0x5a61d5:0xce},_0xe40ff3={_0x2be312:0xe6,_0x157588:0x1df,_0x2724ef:0x49};function _0x4ab908(_0x1a6d37,_0x2698db,_0x395675,_0x17a579){return _0x132076(_0x1a6d37-_0xe40ff3._0x2be312,_0x17a579-_0xe40ff3._0x157588,_0x395675,_0x17a579-_0xe40ff3._0x2724ef);}return this['list']()[_0x4ab908(_0x54e33f._0x4aacbe,0x390,_0x54e33f._0x1c61c2,_0x54e33f._0x560129)](_0x498c3f=>{const _0x49a1d7={_0x3bd3d4:0x189,_0x3b81d1:0x93};function _0x11f151(_0x25e965,_0xce4e39,_0x2a2fea,_0x5712e0){return _0x4ab908(_0x25e965-0xe1,_0xce4e39-_0x1129c5._0x5a61d5,_0x5712e0,_0x25e965-0x14c);}function _0x3b1261(_0x523d3c,_0x83b91a,_0x4cfeae,_0x41778b){return _0x4ab908(_0x523d3c-_0x49a1d7._0x3bd3d4,_0x83b91a-_0x49a1d7._0x3b81d1,_0x83b91a,_0x41778b- -0x442);}return{'name':_0x498c3f[_0x11f151(0x4df,_0x38d93a._0x44e4fb,_0x38d93a._0x22aa39,_0x38d93a._0x30523e)],'description':_0x498c3f[_0x3b1261(-0x121,-_0x38d93a._0x436fae,-_0x38d93a._0x1f7e68,-_0x38d93a._0x96e5ec)],'input_schema':_0x498c3f['inputSchema']};});}};function validateToolInput(_0x22a5d4,_0x83f093){const _0x2724ba={_0xccf282:0x1b6},_0x3bcf37={_0x255098:0xd9,_0x512b84:0x5d2};function _0x1525f6(_0x3e0115,_0x4c9f2c,_0x1f7fa5,_0x345bb2){return _0x29898f(_0x3e0115-0x1a0,_0x1f7fa5,_0x1f7fa5-_0x3bcf37._0x255098,_0x3e0115- -_0x3bcf37._0x512b84);}return validateAgainstSchema(_0x1525f6(-0x194,-_0x2724ba._0xccf282,-0x1ba,-0x1c5),_0x22a5d4,_0x83f093),_0x22a5d4;}function deriveFinalToolOutput(_0x4f3085){const _0x56ba29={_0x509f68:0x2e5,_0x5cb236:0x2e6,_0x26d027:0x14a,_0x4c4c9b:0xfd,_0x4be8c1:0x342,_0x479eea:0x2f3,_0x30a5ca:0x322,_0x525cf3:0x149,_0x53b9e2:0x121,_0x3f1615:0x154,_0x2e9e32:0x107,_0x4d5dcc:0xaa,_0x3746ac:0xcc,_0x28448e:0x348,_0x5d474d:0x392,_0x2be8c7:0x391,_0x5737f6:0x36f,_0x26d85b:0x36c,_0xd8f662:0xa5,_0xe72e9e:0x61,_0x120702:0x2d0,_0x6953a1:0x2e6,_0x5412cd:0x2d2,_0x2aa5ab:0x29b,_0x322708:0x10d},_0x229027={_0x42782e:0x19b},_0x313502={_0x40ddcc:0xae};if(_0x4f3085[_0x4fc412(_0x56ba29._0x509f68,_0x56ba29._0x5cb236,0x2c0,0x2ca)]===0x0)return{'output':'','structured':{}};function _0x14cbeb(_0x2adac2,_0x65494c,_0xce101a,_0x236f00){return _0x29898f(_0x2adac2-_0x313502._0x40ddcc,_0x2adac2,_0xce101a-0x1e8,_0x236f00- -0x4c6);}if(_0x4f3085[_0x14cbeb(-0xc9,-0x141,-_0x56ba29._0x26d027,-_0x56ba29._0x4c4c9b)]===0x1)return{'output':_0x4f3085[0x0][_0x4fc412(_0x56ba29._0x4be8c1,_0x56ba29._0x479eea,_0x56ba29._0x30a5ca,0x330)],'structured':_0x4f3085[0x0]['structured'],..._0x4f3085[0x0]['content']!==void 0x0?{'content':_0x4f3085[0x0][_0x14cbeb(-_0x56ba29._0x525cf3,-_0x56ba29._0x53b9e2,-_0x56ba29._0x3f1615,-_0x56ba29._0x2e9e32)]}:{}};const _0x370d12=_0x4f3085[_0x14cbeb(-0x9c,-_0x56ba29._0x4d5dcc,-0xfc,-_0x56ba29._0x3746ac)](_0x1d3dca=>_0x1d3dca[_0x14cbeb(-0x123,-0xc3,-0xbf,-0x107)]!==void 0x0);function _0x4fc412(_0xa25437,_0x316c44,_0x48c7f3,_0x29ed6f){return _0x132076(_0xa25437-0x62,_0x316c44-0x160,_0x29ed6f,_0x29ed6f-_0x229027._0x42782e);}return{'output':_0x4f3085[_0x4fc412(0x360,_0x56ba29._0x28448e,_0x56ba29._0x5d474d,_0x56ba29._0x2be8c7)](_0x240f39=>_0x240f39[_0x4fc412(0x320,0x2f3,0x2eb,0x33b)])[_0x4fc412(_0x56ba29._0x5737f6,0x323,_0x56ba29._0x26d85b,0x343)](''),'structured':{'chunks':_0x4f3085[_0x14cbeb(-_0x56ba29._0xd8f662,-0x57,-_0x56ba29._0xe72e9e,-0x9b)](_0x3e50c0=>_0x3e50c0['structured'])},..._0x370d12[_0x4fc412(_0x56ba29._0x120702,_0x56ba29._0x6953a1,_0x56ba29._0x5412cd,_0x56ba29._0x2aa5ab)]===0x1?{'content':_0x370d12[0x0][_0x14cbeb(-0x150,-_0x56ba29._0x322708,-0x118,-0x107)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x2fde03,_0x4acd3f,_0x51a792,_0x5d3b6d=[]){const _0x14e649={_0x3f2989:0x133,_0xd5baec:0x107},_0x3a1e07={_0x4fe2f6:0x7a},_0x50fbe5={_0x5a2913:0xb5,_0x33ea50:0x2a2,_0x85c2aa:0x185};function _0x208862(_0x5241cf,_0x3a1501,_0x1991c1,_0x21588a){return _0x132076(_0x5241cf-_0x50fbe5._0x5a2913,_0x1991c1-_0x50fbe5._0x33ea50,_0x3a1501,_0x21588a-_0x50fbe5._0x85c2aa);}function _0x43c80c(_0x13578b,_0x34af74,_0x1b0b28,_0x34c85b){return _0x132076(_0x13578b-0x89,_0x13578b- -0xb9,_0x34af74,_0x34c85b-_0x3a1e07._0x4fe2f6);}return{'callId':_0x2fde03['id'],'toolName':_0x2fde03[_0x43c80c(0xfb,0xf2,0x138,0xab)],'status':_0x43c80c(0xee,0xfe,_0x14e649._0x3f2989,_0x14e649._0xd5baec),'output':_0x4acd3f,'structured':_0x51a792,'chunks':_0x5d3b6d,'meta':createToolMeta()};}function createRejectedToolResult(_0x420e23,_0x3a4898){const _0x4c3aeb={_0x5b6b63:0x220,_0x337b31:0x1f0,_0x1e0ea1:0x408,_0xaae418:0x400,_0x2c19f2:0x3cc,_0x5ea3f7:0x190,_0x18be37:0x1ef,_0x11aa6e:0x38e,_0xc1a299:0x345,_0x5e01f9:0x222},_0x2d3187={_0x2b82b3:0xc3,_0x52b5bf:0x21e,_0x531f7d:0x1e7};function _0x1fbb06(_0x4c0a18,_0x5e372a,_0x5d8724,_0x15e0ba){return _0x132076(_0x4c0a18-0xbb,_0x15e0ba- -0x375,_0x4c0a18,_0x15e0ba-0xce);}function _0x4ef9cd(_0x552fe1,_0x4f921f,_0x2b788e,_0xe82d8){return _0x132076(_0x552fe1-_0x2d3187._0x2b82b3,_0x4f921f-_0x2d3187._0x52b5bf,_0x552fe1,_0xe82d8-_0x2d3187._0x531f7d);}const _0x4d2b14=_0x3a4898?.[_0x1fbb06(-_0x4c3aeb._0x5b6b63,-_0x4c3aeb._0x337b31,-0x1e6,-0x205)]()['length']?_0x3a4898:_0x4ef9cd(_0x4c3aeb._0x1e0ea1,_0x4c3aeb._0xaae418,_0x4c3aeb._0xaae418,_0x4c3aeb._0x2c19f2)+_0x420e23[_0x1fbb06(-0x1ca,-_0x4c3aeb._0x5ea3f7,-_0x4c3aeb._0x18be37,-0x1c1)];return createErrorToolResult(_0x420e23,_0x4d2b14,{'error':'tool_rejected',..._0x3a4898?.[_0x4ef9cd(0x3a2,_0x4c3aeb._0x11aa6e,0x369,_0x4c3aeb._0xc1a299)]()[_0x1fbb06(-0x216,-_0x4c3aeb._0x5e01f9,-0x1a0,-0x1ef)]?{'reason':_0x3a4898}:{}});}function createAbortedToolResult(_0x936599,_0x39cf4a,_0x2c3f21=[]){const _0xccb994={_0x135ddc:0x1f5,_0x4b9da9:0x26d},_0xf27226={_0x4344f6:0x79,_0x5842d5:0x60},_0x385e83=toAbortError(_0x39cf4a);function _0x3b1e59(_0x573ca4,_0x11e3b5,_0x43ed6d,_0x47affc){return _0x132076(_0x573ca4-_0xf27226._0x4344f6,_0x47affc-0x76,_0x43ed6d,_0x47affc-_0xf27226._0x5842d5);}return createErrorToolResult(_0x936599,_0x385e83['message'],{'error':_0x385e83[_0x3b1e59(_0xccb994._0x135ddc,0x22b,_0xccb994._0x4b9da9,0x221)],'aborted':!![]},_0x2c3f21);}function createSuccessToolResult(_0x205d30,_0x589b26,_0x2ccce5){const _0x22dab8={_0xfba987:0xf8,_0x454f0b:0x12d,_0x11970d:0xfe,_0x561461:0x111,_0x1bafa3:0xa,_0x243b84:0x2a,_0x244f1a:0x4f,_0x2f7c6a:0x25},_0x16f4a6={_0x179af4:0x78},_0x3e1c21={_0x4f6302:0x11b};function _0x452f35(_0x497602,_0x475ac7,_0x4e053f,_0x136e88){return _0x29898f(_0x497602-_0x3e1c21._0x4f6302,_0x497602,_0x4e053f-0x107,_0x4e053f- -0x524);}function _0x4a55ad(_0x48bc7b,_0x24e261,_0x4e693a,_0x52f342){return _0x132076(_0x48bc7b-_0x16f4a6._0x179af4,_0x52f342- -0x157,_0x48bc7b,_0x52f342-0x6c);}return{'callId':_0x205d30['id'],'toolName':_0x205d30[_0x452f35(-0xe6,-_0x22dab8._0xfba987,-_0x22dab8._0x454f0b,-_0x22dab8._0x11970d)],'status':'ok','output':_0x589b26[_0x452f35(-_0x22dab8._0x561461,-0x102,-0x14e,-0x158)],'structured':_0x589b26[_0x4a55ad(0x25,_0x22dab8._0x1bafa3,_0x22dab8._0x243b84,_0x22dab8._0x244f1a)],..._0x589b26[_0x4a55ad(0x6e,0x4a,-0x15,_0x22dab8._0x2f7c6a)]!==void 0x0?{'content':_0x589b26['content']}:{},'chunks':_0x2ccce5,'meta':createToolMeta()};}function createUnknownToolResult(_0x1d2a93){const _0x3af52a={_0x585af2:0x4c9,_0x3ff68c:0x4c5,_0x53bb60:0x4ed,_0xde91fb:0x10b,_0x3d868a:0x115,_0x5f26e6:0xc4,_0x7cb44b:0x4b2},_0x4fadc2={_0x21f1c2:0x310,_0x54d59b:0xe9},_0x3fbb99={_0x35f714:0x2bf};function _0x513b74(_0x4e71b5,_0x2dc9a8,_0x590135,_0x577f37){return _0x132076(_0x4e71b5-0x128,_0x4e71b5- -_0x3fbb99._0x35f714,_0x590135,_0x577f37-0x104);}function _0x2a7f7e(_0x2fc8cf,_0x4925b0,_0x3eb7ba,_0x4302cb){return _0x132076(_0x2fc8cf-0x81,_0x2fc8cf-_0x4fadc2._0x21f1c2,_0x4302cb,_0x4302cb-_0x4fadc2._0x54d59b);}return createErrorToolResult(_0x1d2a93,_0x2a7f7e(_0x3af52a._0x585af2,_0x3af52a._0x3ff68c,_0x3af52a._0x53bb60,0x4d2)+_0x1d2a93[_0x513b74(-_0x3af52a._0xde91fb,-0x121,-_0x3af52a._0x3d868a,-_0x3af52a._0x5f26e6)],{'error':_0x2a7f7e(0x49d,0x4c9,_0x3af52a._0x7cb44b,0x483)});}function isDispatchDecision(_0x1cd030){const _0x1542dc={_0xdc879d:0x2c7,_0x1a65f5:0x37f,_0x40d994:0x325},_0x45de06={_0x353bbe:0x47};function _0x296f69(_0x56621e,_0x557cc6,_0x46a889,_0x501503){return _0x132076(_0x56621e-_0x45de06._0x353bbe,_0x46a889- -0x86,_0x557cc6,_0x501503-0x193);}if(typeof _0x1cd030!==_0x38fa4f(_0x1542dc._0xdc879d,0x2e1,0x2dd,0x2fe)||_0x1cd030===null)return![];function _0x38fa4f(_0x111aee,_0x4cd691,_0x5c0f8b,_0x4fa396){return _0x132076(_0x111aee-0x8e,_0x5c0f8b-0x17a,_0x4fa396,_0x4fa396-0xb3);}return _0x1cd030['action']===_0x38fa4f(0x336,0x35c,0x365,0x35d)||_0x1cd030[_0x38fa4f(_0x1542dc._0x1a65f5,0x380,0x368,0x378)]===_0x38fa4f(0x2b1,_0x1542dc._0x40d994,0x2e3,0x310);}function normalizeExecutionError(_0x3161e6){const _0x924822={_0x169eba:0x42a,_0x237547:0x41a,_0x1b3e34:0x43c,_0x1368ac:0x462,_0x2dd804:0x438},_0x31b26b={_0x59f7d0:0x70,_0x5f4a42:0x11a},_0x33361a={_0x5e61e6:0x6,_0x2b7aeb:0x2c};function _0xac952b(_0x511a8d,_0x17cbfd,_0x332668,_0x3d48e7){return _0x29898f(_0x511a8d-0x11a,_0x3d48e7,_0x332668-_0x33361a._0x5e61e6,_0x17cbfd-_0x33361a._0x2b7aeb);}if(_0x3161e6 instanceof ToolExecutionError)return{'errorMessage':_0x3161e6[_0xac952b(_0x924822._0x169eba,_0x924822._0x237547,0x447,0x403)],'structured':{'error':_0x3161e6['message'],..._0x3161e6['structured']}};if(_0x3161e6 instanceof Error)return{'errorMessage':_0x3161e6[_0xac952b(0x451,_0x924822._0x237547,_0x924822._0x1b3e34,0x462)],'structured':{'error':_0x3161e6[_0x187970(0x41d,0x49e,_0x924822._0x1368ac,_0x924822._0x2dd804)]}};function _0x187970(_0x1d6b2f,_0x11068a,_0x42a1f7,_0x8902e7){return _0x132076(_0x1d6b2f-_0x31b26b._0x59f7d0,_0x42a1f7-0x2b7,_0x11068a,_0x8902e7-_0x31b26b._0x5f4a42);}const _0x3a7592=String(_0x3161e6);return{'errorMessage':_0x3a7592,'structured':{'error':_0x3a7592}};}async function emitEvent(_0x5b7dd2,_0xede7a9,_0x1b982c){await _0x5b7dd2?.(_0xede7a9,_0x1b982c);}async function resolveDispatchDecision(_0x579b86,_0x1a565b,_0x4db413){const _0x24c729={_0x18f096:0x96,_0x5cba39:0x7d,_0x2f50c1:0x68,_0x179d7a:0x25,_0x3c1502:0x5e,_0x1a3351:0x4a,_0x1b83b1:0x43,_0x2ccbdb:0x40,_0x2555cb:0x72,_0xf2e91d:0xbd},_0x227c25={_0x581f86:0xa1,_0x3786a5:0x90,_0x50d2d9:0xaf,_0x16ce45:0x14e,_0x383a96:0x14f,_0xf812bf:0x107,_0x5c806b:0x290,_0x148953:0xc8,_0x587175:0xec,_0x4062bb:0x107,_0x41cb57:0xbd},_0x2b2d3f={_0x15e83e:0x164},_0xbe9adf={_0x51e4f9:0xde,_0x30d41a:0xf6};if(!_0x579b86)return{'action':_0x5ac0c7(-_0x24c729._0x18f096,-0xd3,-0x4c,-0x92)};const _0x5001a4=Promise[_0x5ac0c7(-0x56,-_0x24c729._0x5cba39,-0x38,-0x81)]()[_0x13f28e(-0x38,-_0x24c729._0x2f50c1,-0x53,-0x36)](()=>_0x579b86(_0x1a565b,_0x4db413));if(!_0x4db413[_0x13f28e(-_0x24c729._0x179d7a,-0x7d,-_0x24c729._0x3c1502,-_0x24c729._0x1a3351)]){const _0x1a3317=await _0x5001a4;return isDispatchDecision(_0x1a3317)?_0x1a3317:{'action':_0x13f28e(-0x6,-0x39,-_0x24c729._0x1b83b1,-_0x24c729._0x2ccbdb)};}function _0x5ac0c7(_0x4994d7,_0x372b5d,_0x5ef8d6,_0x43355f){return _0x29898f(_0x4994d7-_0xbe9adf._0x51e4f9,_0x5ef8d6,_0x5ef8d6-_0xbe9adf._0x30d41a,_0x43355f- -0x43e);}function _0x13f28e(_0x25ab9d,_0x2d91dd,_0x319608,_0x4eff6c){return _0x29898f(_0x25ab9d-0x37,_0x319608,_0x319608-0x133,_0x4eff6c- -0x3ec);}const _0x42e785=new Promise((_0xf770ab,_0xfeb0a0)=>{const _0x5903cb={_0xb54b3e:0x445,_0x459a3a:0x1c3,_0x1feb93:0x217,_0xa6a03f:0x210,_0x1759f1:0x1c0,_0x7ea1b7:0x1ad,_0x3dffc1:0x192,_0xb34fb0:0x17a},_0x96faa2={_0x55a44b:0x1c4,_0x4a8df4:0xc5};function _0x2ced6(_0x481a5c,_0x5240ec,_0xbff9e8,_0xccf74a){return _0x13f28e(_0x481a5c-0x2,_0x5240ec-_0x2b2d3f._0x15e83e,_0x481a5c,_0xccf74a- -0x100);}function _0x44fe33(_0x56fd83,_0x408505,_0x4d0436,_0x53fe33){return _0x5ac0c7(_0x56fd83-_0x96faa2._0x55a44b,_0x408505-_0x96faa2._0x4a8df4,_0x53fe33,_0x56fd83-0x30c);}const _0xee78c2=()=>{const _0xb34972={_0x4ed96e:0x388};function _0x51fc9e(_0x58c9bd,_0xec10d4,_0x25855b,_0x509411){return _0xb510(_0x58c9bd-_0xb34972._0x4ed96e,_0x25855b);}_0x4db413[_0x51fc9e(_0x5903cb._0xb54b3e,0x468,0x442,0x439)]?.[_0x49fc57(0x24d,0x20b,_0x5903cb._0x459a3a,0x218)](_0x49fc57(_0x5903cb._0x1feb93,0x1d8,_0x5903cb._0xa6a03f,_0x5903cb._0x1759f1),_0xee78c2);function _0x49fc57(_0x151ec8,_0x1f951c,_0x397a0f,_0x38ccb0){return _0xb510(_0x1f951c-0xcd,_0x397a0f);}_0xfeb0a0(toAbortError(_0x4db413[_0x49fc57(0x18f,0x18a,_0x5903cb._0x7ea1b7,0x195)]?.[_0x49fc57(0x190,0x1a1,_0x5903cb._0x3dffc1,_0x5903cb._0xb34fb0)]));};if(_0x4db413['signal']?.[_0x2ced6(-_0x227c25._0x581f86,-0x73,-_0x227c25._0x3786a5,-_0x227c25._0x50d2d9)]){_0xfeb0a0(toAbortError(_0x4db413[_0x2ced6(-_0x227c25._0x16ce45,-_0x227c25._0x383a96,-_0x227c25._0xf812bf,-0x14a)][_0x44fe33(0x287,0x27a,0x239,_0x227c25._0x5c806b)]));return;}_0x4db413['signal']?.[_0x2ced6(-_0x227c25._0x148953,-_0x227c25._0x587175,-_0x227c25._0x4062bb,-_0x227c25._0x41cb57)]('abort',_0xee78c2,{'once':!![]});}),_0x4791d4=await Promise[_0x5ac0c7(-0x84,-0x2e,-0x2c,-_0x24c729._0x2555cb)]([_0x5001a4,_0x42e785]);return isDispatchDecision(_0x4791d4)?_0x4791d4:{'action':_0x5ac0c7(-_0x24c729._0xf2e91d,-0x51,-0x81,-0x92)};}async function executeToolCall(_0x50f7c3,_0x21f684,_0x47ae9e,_0x466b09,_0x224634){const _0x3e51cd={_0x513a3f:0x246,_0x3b906b:0x258,_0x326716:0x261,_0xd8e600:0x264,_0x2517f8:0x250,_0x24c53a:0x2d5,_0x26f2b6:0x299,_0x4bbe08:0x2e2,_0x32ba32:0x270,_0x141b29:0x26d,_0x468723:0x29b,_0x295cef:0x2b0,_0x425905:0x239,_0x522313:0x288,_0x5808b2:0x2c6,_0x1e3137:0x21a,_0x3a622f:0x25b,_0xfc4137:0x21c,_0x1c9d18:0x279,_0x1b34e2:0x246,_0x211387:0x2de,_0x2116ce:0x2c0,_0xf52949:0x2b3,_0x4e86a7:0x2ee,_0x4f5e50:0x281,_0x59058f:0x26b,_0xb16f25:0x241,_0x59891a:0x256,_0x1c657c:0x217,_0x47682d:0x281,_0x5af065:0x271,_0x38d0e9:0x2c8,_0x21cbc8:0x2d8,_0xa6bb39:0x2d2,_0x84c28a:0x27b,_0x4447dd:0x284,_0x5de8f3:0x2aa,_0x2e7325:0x2ef,_0x32b797:0x29c,_0xbdf42b:0x2ba,_0x454832:0x1fe,_0x25b930:0x269,_0x5cc527:0x278,_0x21ff29:0x284,_0x1de980:0x268,_0x47b006:0x288,_0x1e76fa:0x2ce,_0x4673d0:0x2d7,_0x246a9d:0x288,_0x13520c:0x297,_0x487393:0x26c,_0x4739ea:0x253},_0x1f555b={_0x48b167:0x50,_0x3b405e:0x12,_0x4423f9:0x28b,_0x13948e:0x29a},_0x10b32c={_0x3ddaef:0x14c},_0x5a47b0={_0x1ab4e7:0x13c,_0x51b85b:0x75};function _0x4fdc9a(_0xb5a57,_0x5bdd5f,_0x3d593f,_0x26ea71){return _0x132076(_0xb5a57-_0x5a47b0._0x1ab4e7,_0xb5a57-0xe7,_0x3d593f,_0x26ea71-_0x5a47b0._0x51b85b);}const _0x58af3a={..._0x47ae9e,'toolCallId':_0x21f684['id']};throwIfAborted(_0x58af3a[_0x4fdc9a(_0x3e51cd._0x513a3f,_0x3e51cd._0x3b906b,_0x3e51cd._0x326716,0x244)]);const _0x5278e3=await resolveDispatchDecision(_0x466b09,_0x21f684,_0x58af3a);throwIfAborted(_0x58af3a[_0x4fdc9a(0x246,_0x3e51cd._0xd8e600,_0x3e51cd._0x2517f8,0x248)]);if(_0x5278e3[_0x4fdc9a(_0x3e51cd._0x24c53a,0x2f4,_0x3e51cd._0x26f2b6,0x320)]===_0x5c8d16(0x30a,_0x3e51cd._0x4bbe08,0x2ba,0x2b2)){const _0x50f6eb=createRejectedToolResult(_0x21f684,_0x5278e3[_0x5c8d16(_0x3e51cd._0x32ba32,_0x3e51cd._0x141b29,0x261,0x296)]);return await emitEvent(_0x224634,{'type':'tool_rejected','toolCall':_0x21f684,'result':_0x50f6eb},_0x58af3a),_0x50f6eb;}const _0x21a41f=_0x50f7c3[_0x5c8d16(0x28a,0x293,0x27a,0x256)](_0x21f684[_0x4fdc9a(_0x3e51cd._0x468723,0x2ab,_0x3e51cd._0x295cef,0x290)]);if(!_0x21a41f){const _0x24c0c3=createUnknownToolResult(_0x21f684);return await emitEvent(_0x224634,{'type':_0x5c8d16(_0x3e51cd._0x425905,_0x3e51cd._0x522313,0x2d0,_0x3e51cd._0x5808b2),'toolCall':_0x21f684,'result':_0x24c0c3},_0x58af3a),_0x24c0c3;}throwIfAborted(_0x58af3a[_0x4fdc9a(0x246,_0x3e51cd._0x1e3137,_0x3e51cd._0x3a622f,_0x3e51cd._0xfc4137)]),await emitEvent(_0x224634,{'type':_0x4fdc9a(0x277,0x2bb,0x2a0,_0x3e51cd._0x1c9d18),'toolCall':_0x21f684},_0x58af3a);function _0x5c8d16(_0x5aca12,_0x14fe7c,_0x356c43,_0x21fe31){return _0x29898f(_0x5aca12-0x14c,_0x5aca12,_0x356c43-0x36,_0x14fe7c- -_0x10b32c._0x3ddaef);}try{throwIfAborted(_0x58af3a[_0x4fdc9a(_0x3e51cd._0x1b34e2,0x210,0x242,0x212)]);const _0x4eea26=validateToolInput(_0x21f684[_0x4fdc9a(0x2e2,_0x3e51cd._0x211387,0x2fe,_0x3e51cd._0x2116ce)],_0x21a41f[_0x5c8d16(_0x3e51cd._0x468723,_0x3e51cd._0xf52949,0x2c5,_0x3e51cd._0x4e86a7)]),_0x516a13=await _0x21a41f[_0x5c8d16(_0x3e51cd._0x4f5e50,_0x3e51cd._0x59058f,_0x3e51cd._0x4f5e50,_0x3e51cd._0xb16f25)](_0x4eea26,_0x58af3a),_0x1f30e7=[],_0x19120d=addAbortListener(_0x58af3a['signal'],()=>{const _0xac9817={_0x48b212:0x3c,_0x26702a:0x11f},_0x2cd18f={_0x45d004:0x325,_0x543e9e:0x16,_0x4e6155:0x6c};function _0x33d54c(_0x42fe5b,_0x277041,_0x4ac3d4,_0x58114f){return _0x5c8d16(_0x4ac3d4,_0x277041- -_0x2cd18f._0x45d004,_0x4ac3d4-_0x2cd18f._0x543e9e,_0x58114f-_0x2cd18f._0x4e6155);}function _0x4344d7(_0x4bf224,_0x405586,_0x27a9a7,_0x2f91cd){return _0x4fdc9a(_0x27a9a7- -0x34,_0x405586-_0xac9817._0x48b212,_0x405586,_0x2f91cd-_0xac9817._0x26702a);}void _0x516a13[_0x33d54c(-0x8,-0x57,-_0x1f555b._0x48b167,-_0x1f555b._0x3b405e)](void 0x0)[_0x4344d7(_0x1f555b._0x4423f9,0x27e,0x28d,_0x1f555b._0x13948e)](()=>{});});try{throwIfAborted(_0x58af3a[_0x5c8d16(0x22e,_0x3e51cd._0x59891a,_0x3e51cd._0x1c657c,0x253)]);let _0x2c3b0e=await _0x516a13[_0x4fdc9a(0x2b6,_0x3e51cd._0x47682d,_0x3e51cd._0x5af065,_0x3e51cd._0x38d0e9)]();while(!_0x2c3b0e[_0x5c8d16(0x2c7,_0x3e51cd._0x21cbc8,0x306,_0x3e51cd._0xa6bb39)]){throwIfAborted(_0x58af3a[_0x5c8d16(0x21d,0x256,0x237,_0x3e51cd._0x84c28a)]);const _0x5a91e1=normalizeToolOutputValue(_0x2c3b0e[_0x4fdc9a(0x268,_0x3e51cd._0x4447dd,0x22e,0x24c)]);_0x1f30e7[_0x5c8d16(_0x3e51cd._0x5de8f3,_0x3e51cd._0x38d0e9,0x281,0x29f)](_0x5a91e1),await emitEvent(_0x224634,{'type':_0x4fdc9a(0x2ae,_0x3e51cd._0x2e7325,_0x3e51cd._0x32b797,0x2d6),'toolCall':_0x21f684,'chunk':_0x5a91e1},_0x58af3a),throwIfAborted(_0x58af3a[_0x4fdc9a(0x246,0x23e,0x254,0x239)]),_0x2c3b0e=await _0x516a13[_0x5c8d16(0x2ce,_0x3e51cd._0x5808b2,0x2d0,_0x3e51cd._0xbdf42b)]();}throwIfAborted(_0x58af3a[_0x4fdc9a(0x246,_0x3e51cd._0x454832,0x269,_0x3e51cd._0x25b930)]);const _0x4bc90d=_0x2c3b0e[_0x4fdc9a(0x268,0x276,0x21e,0x29d)]===void 0x0?deriveFinalToolOutput(_0x1f30e7):normalizeToolOutputValue(_0x2c3b0e[_0x5c8d16(0x263,_0x3e51cd._0x5cc527,_0x3e51cd._0x21ff29,_0x3e51cd._0x1de980)]),_0x3f529d=createSuccessToolResult(_0x21f684,_0x4bc90d,_0x1f30e7);return await emitEvent(_0x224634,{'type':'tool_completed','toolCall':_0x21f684,'result':_0x3f529d},_0x58af3a),_0x3f529d;}catch(_0x3c64d8){if(isAbortError(_0x3c64d8)){const _0x381b6f=createAbortedToolResult(_0x21f684,_0x3c64d8,_0x1f30e7);return await emitEvent(_0x224634,{'type':_0x5c8d16(0x2c4,_0x3e51cd._0x47b006,_0x3e51cd._0x1e76fa,_0x3e51cd._0x4673d0),'toolCall':_0x21f684,'result':_0x381b6f},_0x58af3a),_0x381b6f;}const {errorMessage:_0x3d937b,structured:_0x5d31db}=normalizeExecutionError(_0x3c64d8),_0x51d9a9=createErrorToolResult(_0x21f684,_0x3d937b,_0x5d31db,_0x1f30e7);return await emitEvent(_0x224634,{'type':_0x5c8d16(0x256,_0x3e51cd._0x246a9d,0x2b8,0x2b5),'toolCall':_0x21f684,'result':_0x51d9a9},_0x58af3a),_0x51d9a9;}finally{_0x19120d();}}catch(_0x3ea846){if(isAbortError(_0x3ea846)){const _0x101187=createAbortedToolResult(_0x21f684,_0x3ea846);return await emitEvent(_0x224634,{'type':_0x4fdc9a(0x278,_0x3e51cd._0x13520c,_0x3e51cd._0x487393,_0x3e51cd._0x4739ea),'toolCall':_0x21f684,'result':_0x101187},_0x58af3a),_0x101187;}const {errorMessage:_0xdcbe59,structured:_0x296ede}=normalizeExecutionError(_0x3ea846),_0x38dbdf=createErrorToolResult(_0x21f684,_0xdcbe59,_0x296ede);return await emitEvent(_0x224634,{'type':'tool_completed','toolCall':_0x21f684,'result':_0x38dbdf},_0x58af3a),_0x38dbdf;}}function createInternalToolRuntime(_0x5cad92=[],_0x46d6db={}){const _0x5ddf23={_0x466485:0x3e5,_0x1e7344:0x41a,_0x19dbb9:0x3e1},_0x44defe={_0x4bff5f:0x9c,_0x36b60c:0xa0,_0x73f7b6:0x10e,_0x5041e1:0xe5,_0x31b7f0:0xdd},_0x554d0b={_0x480cd:0x73},_0x5c8a6e={_0xd7f7dd:0x4b9,_0xfda8a1:0x4fc};let _0x15630a=new ToolRegistry(_0x5cad92);return{'listToolSchemas'(){function _0x37dc9b(_0x1b7c89,_0x28eeaf,_0x25feb7,_0x321f7c){return _0xb510(_0x1b7c89-0x3e8,_0x25feb7);}return _0x15630a[_0x37dc9b(0x4b5,0x4f8,_0x5c8a6e._0xd7f7dd,_0x5c8a6e._0xfda8a1)]();},'setTools'(_0x517cc4){_0x15630a=new ToolRegistry(_0x517cc4);},async 'executeCalls'(_0x4a3d9a,_0x28d2a3){const _0x4363d0={_0x1b30d6:0x3b3,_0x82270d:0x384,_0x15ddad:0x35f,_0x3992e0:0x185},_0x57dc2d={_0x207a3f:0x24,_0x44d338:0x1a6,_0x49676f:0xe7},_0x18dc14={_0x27cfe8:0x1ba};function _0xe2167b(_0x882496,_0x1a18fc,_0x193b24,_0x3eb63f){return _0xb510(_0x3eb63f- -_0x18dc14._0x27cfe8,_0x882496);}function _0x1c4241(_0x18ae25,_0x40e22d,_0xe5a06a,_0x432159){return _0xb510(_0x432159- -_0x554d0b._0x480cd,_0xe5a06a);}return await Promise[_0x1c4241(_0x44defe._0x4bff5f,_0x44defe._0x36b60c,0x6a,0x5c)](_0x4a3d9a[_0x1c4241(_0x44defe._0x73f7b6,_0x44defe._0x5041e1,_0x44defe._0x31b7f0,0xd3)](async _0x2fbf1f=>{const _0x440e9d={_0x21027a:0x25};function _0x5a92dd(_0x5396c4,_0x3f43bf,_0x4dfbc7,_0x22552d){return _0x1c4241(_0x5396c4-_0x57dc2d._0x207a3f,_0x3f43bf-_0x57dc2d._0x44d338,_0x5396c4,_0x3f43bf-_0x57dc2d._0x49676f);}function _0x53c6cd(_0x552b5a,_0x1c89de,_0x1f2548,_0x4cd6a0){return _0xe2167b(_0x552b5a,_0x1c89de-0x96,_0x1f2548-_0x440e9d._0x21027a,_0x1c89de-0x447);}return await executeToolCall(_0x15630a,_0x2fbf1f,_0x28d2a3,_0x46d6db[_0x53c6cd(_0x4363d0._0x1b30d6,0x388,_0x4363d0._0x82270d,_0x4363d0._0x15ddad)],_0x46d6db[_0x5a92dd(0x19d,_0x4363d0._0x3992e0,0x1ba,0x143)]);}));},async 'execute'(_0x4bc102,_0x55785a){const _0x5c0c78={_0x5c0aea:0x2aa};function _0x462623(_0x122329,_0x3c7dc3,_0x36c0ae,_0x3f3e79){return _0xb510(_0x3f3e79-_0x5c0c78._0x5c0aea,_0x122329);}const [_0x53a071]=await this[_0x462623(_0x5ddf23._0x466485,_0x5ddf23._0x1e7344,_0x5ddf23._0x19dbb9,0x3fb)]([_0x4bc102],_0x55785a);return _0x53a071;}};}function getOrderedObserverExtensions(_0x40225c,_0x10cc51){const _0x2e094b={_0x48672d:0x3e9,_0x16b184:0x446,_0xcd5c68:0x42e,_0x23cbfa:0x272,_0x29fb96:0x279,_0x101f48:0x253,_0x59ca38:0x252,_0xc769aa:0x299,_0x515be8:0x2bf,_0x345877:0x286,_0x49aa1a:0x2b6,_0x5ac606:0x2d4},_0x25f113={_0x3d157a:0x1d3};function _0x2c3503(_0x43c7f9,_0x130fbe,_0x384351,_0x305987){return _0x29898f(_0x43c7f9-_0x25f113._0x3d157a,_0x384351,_0x384351-0xf3,_0x305987- -0x5f6);}return _0x40225c['filter'](_0x5d7051=>{const _0x4f1af8={_0x4cdbb1:0x348};function _0x4574df(_0x15f484,_0x54c62d,_0x246d4c,_0xe9c1a0){return _0xb510(_0x54c62d-0x172,_0x246d4c);}function _0x24c9a1(_0x3c02d3,_0x2eba45,_0x3c86d0,_0x435bd0){return _0xb510(_0x435bd0-_0x4f1af8._0x4cdbb1,_0x2eba45);}return _0x5d7051[_0x24c9a1(_0x2e094b._0x48672d,0x44e,_0x2e094b._0x16b184,_0x2e094b._0xcd5c68)]!==![]&&_0x5d7051[_0x4574df(_0x2e094b._0x23cbfa,_0x2e094b._0x29fb96,_0x2e094b._0x101f48,_0x2e094b._0x59ca38)]===_0x10cc51&&_0x5d7051[_0x4574df(0x27a,_0x2e094b._0xc769aa,0x2e9,_0x2e094b._0x515be8)]===_0x4574df(_0x2e094b._0x345877,_0x2e094b._0x49aa1a,0x26c,_0x2e094b._0x5ac606);})['sort']((_0x1fc353,_0x2c022f)=>_0x1fc353[_0x2c3503(-0x1ac,-0x196,-0x200,-0x1bc)]-_0x2c022f['order']);}function getOrderedTransformerExtensions(_0x3f1ed4,_0x141297){const _0x392575={_0x448907:0x20d,_0x2feb55:0x21a,_0x39472e:0x4c,_0xa73263:0x79,_0x1697a4:0x68},_0x4bc97a={_0xe65413:0x220,_0x4105ed:0x235,_0x5a520f:0x208,_0x59eee9:0x233,_0xd599d7:0x266,_0x2aac31:0x20f,_0x3ac902:0x1f5,_0x53521b:0x1aa},_0x278a9e={_0xf1f89a:0xbc,_0x43b01d:0x213},_0x4bc95e={_0x2df221:0x37};function _0x1099d4(_0x594a5e,_0x5e9638,_0x2f5cb2,_0x380134){return _0x132076(_0x594a5e-0x187,_0x5e9638- -0x177,_0x594a5e,_0x380134-_0x4bc95e._0x2df221);}function _0x1db430(_0x20363d,_0x297367,_0x4dc7a9,_0x4d618a){return _0x29898f(_0x20363d-_0x278a9e._0xf1f89a,_0x4d618a,_0x4dc7a9-0x133,_0x4dc7a9- -_0x278a9e._0x43b01d);}return _0x3f1ed4[_0x1db430(_0x392575._0x448907,_0x392575._0x2feb55,0x1e7,0x20a)](_0x58dcab=>{function _0xaafa30(_0x3a5354,_0x4c796d,_0x2ba919,_0x532b22){return _0x1db430(_0x3a5354-0x19c,_0x4c796d-0xec,_0x2ba919-0x2f,_0x3a5354);}function _0x3280c7(_0x3c214c,_0x2bd3e9,_0x91a054,_0x436a8d){return _0x1db430(_0x3c214c-0xa9,_0x2bd3e9-0x10b,_0x3c214c-0x3a,_0x2bd3e9);}return _0x58dcab['enabled']!==![]&&_0x58dcab[_0xaafa30(_0x4bc97a._0xe65413,_0x4bc97a._0x4105ed,_0x4bc97a._0x5a520f,0x229)]===_0x141297&&_0x58dcab[_0x3280c7(_0x4bc97a._0x59eee9,_0x4bc97a._0xd599d7,0x272,0x265)]===_0xaafa30(0x219,_0x4bc97a._0x2aac31,_0x4bc97a._0x3ac902,_0x4bc97a._0x53521b);})[_0x1099d4(_0x392575._0x39472e,_0x392575._0xa73263,_0x392575._0x1697a4,_0x392575._0xa73263)]((_0x5c38aa,_0x1c030a)=>_0x5c38aa[_0x1db430(0x237,0x24b,0x227,0x258)]-_0x1c030a[_0x1099d4(0x8d,0x80,0x9a,0xca)]);}function createExtensionRegistry(){const _0x259eea={_0x3a0277:0x2ad},_0x594475={_0x1f5edf:0x30c,_0x40f72e:0x2ef,_0x2557d9:0x28b},_0x2353d4={_0x248f5a:0x169,_0x473748:0x11e},_0x1197ee=[];return{'register'(_0x41a550){function _0x546ebc(_0x734888,_0x32bbaf,_0x1dd22b,_0x3b2e30){return _0xb510(_0x734888-0x3a,_0x1dd22b);}_0x1197ee[_0x546ebc(_0x2353d4._0x248f5a,0x196,0x156,_0x2353d4._0x473748)](_0x41a550);},async 'runTransformers'(_0x1cb401,_0x185d81,_0xe43e90){function _0x3c0adc(_0x1977e1,_0x203ab1,_0xa34110,_0x24c951){return _0xb510(_0x203ab1-0x1fd,_0x1977e1);}let _0x2d5f0a=_0x185d81;for(const _0x9e413e of getOrderedTransformerExtensions(_0x1197ee,_0x1cb401)){_0x2d5f0a=await _0x9e413e[_0x3c0adc(_0x594475._0x1f5edf,0x2c4,_0x594475._0x40f72e,_0x594475._0x2557d9)](_0x2d5f0a,_0xe43e90);}return _0x2d5f0a;},async 'runObservers'(_0x40c016,_0x3af5f4,_0x4b6650){function _0x4a8f35(_0x5a33f3,_0x3ce927,_0x4f2e56,_0x44789f){return _0xb510(_0x5a33f3- -0x374,_0x4f2e56);}for(const _0x48a881 of getOrderedObserverExtensions(_0x1197ee,_0x40c016)){await _0x48a881[_0x4a8f35(-_0x259eea._0x3a0277,-0x2f4,-0x2a9,-0x28b)](_0x3af5f4,_0x4b6650);}}};}function makeExtensionContext(_0x1226e7){return{'state':_0x1226e7};}async function runStage(_0x393702,_0x4fbdab,_0x69e920,_0x418802){const _0x537bfc={_0x59978d:0xde,_0x42f704:0x96,_0x482d53:0xb8,_0x241b88:0xd5,_0x19e73d:0xc4,_0x8a24a6:0xf8},_0x69dbd={_0x2a485a:0x41,_0x49cf14:0x4,_0x2505aa:0x30},_0x3c1861={_0x35a461:0x329},_0x5d1450=await _0x393702[_0x28a119(_0x537bfc._0x59978d,_0x537bfc._0x42f704,_0x537bfc._0x482d53,_0x537bfc._0x241b88)](_0x4fbdab,_0x69e920,_0x418802);function _0x28a119(_0x3e6144,_0x48b8cb,_0x1ccc15,_0x472f05){return _0x29898f(_0x3e6144-0xbd,_0x48b8cb,_0x1ccc15-0x27,_0x472f05- -_0x3c1861._0x35a461);}await _0x393702[_0x28a119(0x110,0xb3,_0x537bfc._0x19e73d,_0x537bfc._0x8a24a6)](_0x4fbdab,_0x5d1450,_0x418802);function _0x4fdf69(_0x107a53,_0x2973a3,_0x5933a0,_0x4c563d){return _0x132076(_0x107a53-_0x69dbd._0x2a485a,_0x5933a0- -_0x69dbd._0x49cf14,_0x107a53,_0x4c563d-_0x69dbd._0x2505aa);}return _0x5d1450;}async function emitEvent2(_0x3da72a,_0x5254b5,_0x8f2f3e){await _0x3da72a?.(_0x5254b5,_0x8f2f3e);}function replaceToolUseBlocks(_0x5bb6ab,_0x48035f){const _0x2f6983={_0x7fa169:0x3ce,_0x1a64f2:0x3fe,_0x2271df:0x40e,_0x46355f:0xbf,_0x161161:0xc2,_0xbedddd:0x7f},_0x9e9e8d={_0x5c2404:0x4cd,_0x519b90:0x498,_0x486800:0x47f},_0x3a0604={_0x6ae863:0x6d},_0x1ed053={_0x43ec1d:0x169};function _0x39ae6f(_0x3460fe,_0x2bc743,_0x4b6db1,_0x343f4d){return _0x132076(_0x3460fe-0x1d6,_0x4b6db1- -_0x1ed053._0x43ec1d,_0x2bc743,_0x343f4d-0xc);}function _0x16f2dd(_0x124877,_0x54a1b0,_0x4340d1,_0x2bd25f){return _0x132076(_0x124877-_0x3a0604._0x6ae863,_0x124877-0x252,_0x4340d1,_0x2bd25f-0x1de);}let _0x14dec7=0x0;return{..._0x5bb6ab,'content':_0x5bb6ab[_0x16f2dd(_0x2f6983._0x7fa169,_0x2f6983._0x1a64f2,_0x2f6983._0x2271df,0x407)][_0x39ae6f(_0x2f6983._0x46355f,_0x2f6983._0x161161,_0x2f6983._0xbedddd,0x86)](_0x2a3917=>{const _0x3c44e0={_0x28d378:0x1e};if(_0x2a3917['type']!==_0x1b4f66(0x467,_0x9e9e8d._0x5c2404,_0x9e9e8d._0x519b90,_0x9e9e8d._0x486800))return _0x2a3917;function _0x1b4f66(_0x4ba4c0,_0x475b89,_0x543962,_0x45a68a){return _0x39ae6f(_0x4ba4c0-0xd8,_0x475b89,_0x45a68a-0x433,_0x45a68a-_0x3c44e0._0x28d378);}const _0x2dd452=_0x48035f[_0x14dec7];return _0x14dec7+=0x1,structuredClone(_0x2dd452);})};}function _0x3beb(){const _0x3dbe0c=['B3jKzxi','Aw5KzxG','Dg9VBhncEu5HBwu','ywjVCNrLza','Aw5WDxq','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','zw50CMLLCW','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','C2LNBMfS','oe9bu2vmzq','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','x3n5C3rLBvbYB21WDa','B2jQzwn0','oMfZC2LZDgfUDdO','Dg9VBf91C2vFBwvZC2fNzq','DhvYBKLK','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','AxrLBuLK','CNvU','zgvSDge','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','C2XPy2u','zgvWCW','yMvMB3jLrMLUywXpDxrWDxq','BgLZDfrVB2Xty2HLBwfZ','DhjPBq','ywXS','y29UDgvUDeLUzgv4','DgHLBG','zxHLy3v0zq','zgvZy3jPChrPB24','CMvHC29U','ntzTtLDryNO','AxrLBxm','BwvZC2fNzxm','CMvZB2X2zq','Bwf4vg9Rzw5Z','y29UDgvUDa','Bw9KzwXFCMvZCg9UC2u','yxnZAxn0yw50twvZC2fNzuLK','Dg9VBf9Yzxn1Bhq','C29Tzq','DMfSDwu','Aw5WDxrezwX0yq','DhvYBL9JB21WBgv0zq','C2v0vg9VBhm','C2vZC2LVBI0','BgvUz3rO','BM93','zw5HyMXLza','CMfJzq','oIbLEhbLy3rLzcbIB29SzwfU','DgHPBMTPBMC','C3rYzwfT','Dw5RBM93BL90B29S','oIbLEhbLy3rLzcbUDw1Izxi','nZG2odu4AMfrv1nj','Dg9VBf9ZDgfYDgvK','Dg9VBf9JB21WBgv0zwq','mtiWmwP2Ewrpta','B3v0Chv0','zgvMyxvSDe1LC3nHz2u','C2vUza','DhjHBNnMB3jTzxi','CMvZzxrnzxnZywDLCW','C2v0q2HHDe1VzgvS','Bw9KzwXFCMvXDwvZDa','mte3ntG5nvLjz2nJqG','BNvTyMvY','z2v0','B25uB29Sq2fSBa','DhvYBKLUzgv4','C3rHDhvZ','DhLWzq','oIbLEhbLy3rLzcbZDhjPBMC','CMvXDwLYzwq','CMvNAxn0zxi','C3LZDgvTuhjVBxb0','nZCWntm0ngzMEgrOAa','C3rYDwn0DxjLza','zxjYB3i','Dg9tDhjPBMC','C3rHz2u','CMvNAxn0CNK','BwvZC2fNzq','ywz0zxjnB2rLBfjLC3bVBNnL','ywjVCNq','C3rYzwfTAw5N','vg9VBev4zwn1DgLVBKvYCM9Y','AxnbCNjHEq','mtCYmZm2nJD4wgTHC1i','yxnZAxn0yw50x21LC3nHz2u','B25fDMvUDa','BMfTzq','Dg9VBf91C2u','mtG4ogvwz3DXva','zMLSDgvY','y2HHDe1VzgvS','vw5RBM93BIb0B29SoIa','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','CNvUvhjHBNnMB3jTzxjZ','Aw5WDxrty2HLBwe','Dg9VBf91C2vFzgvSDge','yxnZAxn0yw50x2nODw5R','B25vC2vYtwvZC2fNzq','C2v0u3LZDgvTuhjVBxb0','oIbLEhbLy3rLzcbHCNjHEq','BgfZDfjLC3bVBNnL','AM9PBG','Dg9VBhm','C3LZDgvT','DMfSDwvZ','Dg9VBf9VDxrWDxrFy2H1BMS','yMvMB3jLqxnZAxn0yw50qxbWzw5K','A2LUza','DxnLCG','C3rYAw5NAwz5','odu5mJaWm1zvuKLnza','Dgv4Da','oNjLyxnVBMLUzW','BMv4Da','y29TCgXLDgvK','ChvZAa','CMvZCg9UC2u','Dg9VBfj1BNrPBwu','C2vZC2LVBKLK','y29UDgvUDf9KzwX0yq','CMvHC29UAw5Nx2nODw5R','CMv0DxjU','DhvYBI0','ywz0zxjuDxjUq29TCgXLDgu','y2f0y2G','zMLUywXFBwvZC2fNzq','Dg9VBfjLC3vSDhm','yMvMB3jLvg9VBev4zwn1DgLVBG','CNvUt2jZzxj2zxjZ','C3vTBwfYEuLUzgv4','CMvTB3zLrxzLBNrmAxn0zw5LCG','zg9Uzq','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','Dg9VBf9JywXS','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','yMvMB3jLtw9KzwXszxf1zxn0','B2jZzxj2zxi','C3rYAw5N','BwfW','zM9YrwfJAa','Bw9KzwW','CMvQzwn0','ywrKrxzLBNrmAxn0zw5LCG','zMLUywXnzxnZywDL','ywn0Aw9U','y29TCgXLDgu','C29YDa','yM9VBgvHBG','nZq5nZK5nunxtwj6va','zxHLy3v0zunHBgXZ','mJbmu3vps0i','C2v0','sw52ywXPzcb0B29SigLUChv0igf0ia'];_0x3beb=function(){return _0x3dbe0c;};return _0x3beb();}function createAssistantMessageId(_0x4e36c5,_0x1f18f6){const _0x1295fa={_0x458f30:0x306,_0x5464b5:0x2f3,_0x4942e3:0x34c,_0x389d8:0x33a},_0x31f73e={_0x1c6917:0x6ad};function _0xbc5c4f(_0x338fb2,_0x462846,_0x2850fc,_0x42f781){return _0x29898f(_0x338fb2-0x17e,_0x2850fc,_0x2850fc-0x1e8,_0x338fb2- -_0x31f73e._0x1c6917);}return _0x4e36c5+_0xbc5c4f(-_0x1295fa._0x458f30,-_0x1295fa._0x5464b5,-_0x1295fa._0x4942e3,-_0x1295fa._0x389d8)+_0x1f18f6;}function createReasoningMessageId(_0x596376){const _0x441dff={_0x5d2b44:0x47f,_0xcf4156:0x4a4,_0x191d20:0x44e},_0x33bdef={_0xa7f89a:0x4e,_0x158e0c:0x2ac,_0x457f45:0xe2};function _0x257ea5(_0x3688fd,_0x39e772,_0xd29aed,_0x5155f2){return _0x132076(_0x3688fd-_0x33bdef._0xa7f89a,_0x39e772-_0x33bdef._0x158e0c,_0x3688fd,_0x5155f2-_0x33bdef._0x457f45);}return _0x596376+_0x257ea5(_0x441dff._0x5d2b44,0x47a,_0x441dff._0xcf4156,_0x441dff._0x191d20);}function withMessageId(_0x35bdf3,_0x550884){if(_0x35bdf3['id']===_0x550884)return _0x35bdf3;return{..._0x35bdf3,'id':_0x550884};}function createAssistantChunkEvent(_0x1dd963,_0x309074){const _0x12d8e6={_0x267534:0x1f4,_0x2b8833:0x1dd,_0x5204bb:0x183,_0x20eaa7:0x175,_0x50e956:0x1c3,_0x553cbd:0x17b,_0x3596f0:0x18b,_0x50030c:0x152,_0x5de914:0x13f,_0x467109:0x130,_0x1b3f71:0x187,_0x3d044a:0x18b,_0x1d055d:0x15c},_0x217e64={_0x2ab76a:0xdb,_0x779e2e:0x1c1,_0x1d8121:0x59b},_0x2db4f0={_0x273b79:0x192,_0x320099:0x474,_0x55c60d:0x40};if(_0x1dd963[_0xcb2647(-0x1f7,-_0x12d8e6._0x267534,-0x1b8,-_0x12d8e6._0x2b8833)]!==_0xcb2647(-0x14c,-0x198,-_0x12d8e6._0x5204bb,-_0x12d8e6._0x20eaa7))return void 0x0;if(_0x1dd963[_0xcb2647(-_0x12d8e6._0x50e956,-_0x12d8e6._0x553cbd,-_0x12d8e6._0x3596f0,-_0x12d8e6._0x50030c)]===void 0x0)return void 0x0;function _0xb4478f(_0x27480c,_0x478843,_0x412fe3,_0x4d22ad){return _0x132076(_0x27480c-_0x2db4f0._0x273b79,_0x412fe3- -_0x2db4f0._0x320099,_0x478843,_0x4d22ad-_0x2db4f0._0x55c60d);}function _0xcb2647(_0x422698,_0xaa0609,_0x30725b,_0x43873b){return _0x29898f(_0x422698-_0x217e64._0x2ab76a,_0x43873b,_0x30725b-_0x217e64._0x779e2e,_0x30725b- -_0x217e64._0x1d8121);}return{'type':_0xcb2647(-0x1cc,-0x1c1,-0x19a,-0x18c),'index':_0x1dd963['index']??0x0,'messageId':_0x309074,'chunk':{'type':'content_delta','index':_0x1dd963[_0xcb2647(-0x159,-_0x12d8e6._0x5de914,-0x160,-_0x12d8e6._0x467109)]??0x0,'text':_0x1dd963[_0xcb2647(-_0x12d8e6._0x1b3f71,-0x16e,-_0x12d8e6._0x3d044a,-_0x12d8e6._0x1d055d)]}};}function createToolUseChunkEvent(_0x188990,_0x3a349f){const _0x42abec={_0x83adbb:0xa6,_0x570964:0x1dc,_0x2cb508:0x1f5,_0x90468e:0x130,_0x308213:0x107,_0x547039:0x217,_0x363b6a:0x230,_0x5b9ded:0x25b,_0x276e7d:0x1d3,_0x2a3264:0x1e7,_0x202038:0x21d,_0x115341:0xb2,_0x278efa:0xbd},_0x3388e5={_0x5a88aa:0x1a,_0x5ba775:0xc1};function _0x3c7345(_0x179fd0,_0x16d0c8,_0x2c82c8,_0x38d020){return _0x132076(_0x179fd0-_0x3388e5._0x5a88aa,_0x179fd0- -_0x3388e5._0x5ba775,_0x38d020,_0x38d020-0xe6);}if(_0x188990[_0x3c7345(0xdf,0x10c,0xd9,_0x42abec._0x83adbb)]!==_0x544955(_0x42abec._0x570964,0x1e0,0x210,_0x42abec._0x2cb508))return void 0x0;function _0x544955(_0xdce1c3,_0xd10873,_0x2de12e,_0x23e547){return _0x29898f(_0xdce1c3-0x188,_0x2de12e,_0x2de12e-0xe3,_0xdce1c3- -0x224);}return{'type':'tool_use_chunk','index':_0x188990['index']??0x0,'messageId':_0x3a349f,'chunk':{'type':_0x3c7345(0xfc,_0x42abec._0x90468e,_0x42abec._0x308213,0xc8),'id':_0x188990['id']??'','index':_0x188990[_0x544955(_0x42abec._0x547039,0x221,_0x42abec._0x363b6a,_0x42abec._0x5b9ded)]??0x0,..._0x188990[_0x544955(_0x42abec._0x276e7d,0x1b4,_0x42abec._0x2a3264,_0x42abec._0x202038)]!==void 0x0?{'name':_0x188990['name']}:{},..._0x188990['inputDelta']!==void 0x0?{'inputDelta':_0x188990[_0x3c7345(0xc1,_0x42abec._0x115341,0x72,_0x42abec._0x278efa)]}:{}}};}function resolveReasoningEventIndex(_0x12f1b1){const _0x8d8dc9={_0x2a0e08:0x2b4,_0x4c6d06:0x2d6,_0x3b0fa5:0x250,_0x24b3f0:0x3d6,_0x378981:0x38b},_0x2c8f65={_0x159afc:0x163},_0x2aefa8={_0x4a8053:0x172,_0x5f4eb6:0x1f7,_0x528443:0x79};function _0x381228(_0x72fd24,_0xfed18b,_0x1679c7,_0x5b7ff1){return _0x132076(_0x72fd24-_0x2aefa8._0x4a8053,_0xfed18b-_0x2aefa8._0x5f4eb6,_0x5b7ff1,_0x5b7ff1-_0x2aefa8._0x528443);}function _0x44f7ae(_0x3d99f8,_0x4776f1,_0x40d117,_0xf12cc5){return _0x132076(_0x3d99f8-0x6c,_0x40d117-0xde,_0x3d99f8,_0xf12cc5-_0x2c8f65._0x159afc);}return _0x12f1b1[_0x44f7ae(_0x8d8dc9._0x2a0e08,0x2b2,_0x8d8dc9._0x4c6d06,0x2a8)]??_0x12f1b1[_0x44f7ae(0x21f,0x27c,_0x8d8dc9._0x3b0fa5,0x278)]??_0x12f1b1[_0x381228(0x3b6,_0x8d8dc9._0x24b3f0,_0x8d8dc9._0x378981,0x38b)]??_0x12f1b1['outputIndex']??0x0;}function createReasoningChunkEvent(_0x3b5d91,_0x1f2ff7){const _0x588414={_0x1b0e16:0x1d1,_0x445f58:0x1ad,_0x4881b8:0x207,_0x139e61:0xbf,_0x1d2a04:0x96,_0x9aa8ba:0xfe,_0x332ace:0x52,_0xcb6a9f:0x6a,_0x1b3b9e:0x1d1,_0x361b8c:0x1eb,_0x208f0e:0xab,_0x1be404:0xa7,_0x22049c:0x23f,_0x553e73:0x27c,_0x5391de:0x1fe,_0x58eb63:0x276,_0x53dcb7:0x3c,_0x3de6fc:0x83,_0x50ca33:0xce,_0x51150b:0x6e,_0x2370b5:0x205,_0x4ccd19:0x282,_0x52689d:0x262,_0x4ad789:0x22b,_0x4d1ed1:0x20d,_0x281977:0x21d},_0xde628={_0x453950:0x139,_0x488e1d:0x14c},_0x580f68={_0x360f1c:0x6f,_0x4f6cc0:0x5ea};function _0x422e89(_0x4af35b,_0x15c9bb,_0x8fa0d8,_0x507aed){return _0x29898f(_0x4af35b-_0x580f68._0x360f1c,_0x4af35b,_0x8fa0d8-0x166,_0x15c9bb- -_0x580f68._0x4f6cc0);}function _0x2c2e50(_0x53326b,_0x5fe13d,_0x174e63,_0x469c3c){return _0x132076(_0x53326b-0xd4,_0x53326b- -_0xde628._0x453950,_0x5fe13d,_0x469c3c-_0xde628._0x488e1d);}switch(_0x3b5d91['type']){case'anthropic_thinking_delta':return{'type':_0x422e89(-0x200,-_0x588414._0x1b0e16,-_0x588414._0x445f58,-_0x588414._0x4881b8),'index':resolveReasoningEventIndex(_0x3b5d91),'messageId':_0x1f2ff7,'chunk':{'type':'anthropic_thinking_delta','index':_0x3b5d91[_0x2c2e50(_0x588414._0x139e61,0xe7,_0x588414._0x1d2a04,_0x588414._0x9aa8ba)]??0x0,'thinking':_0x3b5d91['thinking']??''},'text':_0x3b5d91[_0x2c2e50(_0x588414._0x332ace,0xe,_0x588414._0xcb6a9f,0x58)]??''};case _0x2c2e50(0xab,0x9e,0x9b,0xa1):return{'type':_0x422e89(-0x1b2,-_0x588414._0x1b3b9e,-_0x588414._0x361b8c,-0x20e),'index':resolveReasoningEventIndex(_0x3b5d91),'messageId':_0x1f2ff7,'chunk':{'type':_0x2c2e50(_0x588414._0x208f0e,0xc2,0x98,_0x588414._0x1be404),'contentIndex':_0x3b5d91['contentIndex']??0x0,'delta':_0x3b5d91['delta']??'','itemId':_0x3b5d91[_0x422e89(-0x1ff,-_0x588414._0x22049c,-_0x588414._0x553e73,-0x262)]??'','outputIndex':_0x3b5d91['outputIndex']??0x0},'text':_0x3b5d91[_0x422e89(-0x288,-0x23d,-_0x588414._0x5391de,-_0x588414._0x58eb63)]??''};case _0x2c2e50(0x81,_0x588414._0x53dcb7,_0x588414._0x3de6fc,_0x588414._0x50ca33):return{'type':_0x2c2e50(0x9d,_0x588414._0x51150b,0x6b,0xcc),'index':resolveReasoningEventIndex(_0x3b5d91),'messageId':_0x1f2ff7,'chunk':{'type':_0x422e89(-0x21c,-0x1ed,-0x1ce,-_0x588414._0x2370b5),'delta':_0x3b5d91[_0x422e89(-0x24b,-0x23d,-_0x588414._0x4ccd19,-0x282)]??'','itemId':_0x3b5d91[_0x422e89(-_0x588414._0x52689d,-0x23f,-0x23e,-_0x588414._0x4ad789)]??'','outputIndex':_0x3b5d91['outputIndex']??0x0,'summaryIndex':_0x3b5d91['summaryIndex']??0x0},'text':_0x3b5d91[_0x422e89(-_0x588414._0x4d1ed1,-0x23d,-0x247,-_0x588414._0x281977)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x3b3d69){const _0x1e1f0d={_0x1f6d1d:0x24a,_0x4a450a:0x23c,_0x204c37:0x1a8,_0x1a4670:0x148,_0x5141bc:0x173,_0x361b42:0x180,_0x44b621:0x274,_0x1556c8:0x251,_0x3d13c3:0x242,_0x17f9a6:0x2a9,_0x548e84:0x2a5,_0x43fe92:0x281},_0x257c6c={_0x367d6e:0x195,_0x343431:0x277},_0x232714={_0x48af21:0x60};function _0x9f6eda(_0x22d51f,_0x411dfb,_0x41a4e7,_0x3af9a5){return _0x29898f(_0x22d51f-0x1db,_0x3af9a5,_0x41a4e7-_0x232714._0x48af21,_0x41a4e7- -0x198);}function _0x426e82(_0x18f879,_0x247042,_0x57bc4b,_0x183ad5){return _0x29898f(_0x18f879-0x1a2,_0x247042,_0x57bc4b-_0x257c6c._0x367d6e,_0x57bc4b- -_0x257c6c._0x343431);}return _0x3b3d69[_0x9f6eda(0x266,0x274,_0x1e1f0d._0x1f6d1d,_0x1e1f0d._0x4a450a)]===_0x426e82(_0x1e1f0d._0x204c37,_0x1e1f0d._0x1a4670,_0x1e1f0d._0x5141bc,_0x1e1f0d._0x361b42)&&_0x3b3d69[_0x9f6eda(_0x1e1f0d._0x44b621,0x270,_0x1e1f0d._0x1556c8,_0x1e1f0d._0x3d13c3)][_0x9f6eda(0x2a1,_0x1e1f0d._0x17f9a6,_0x1e1f0d._0x548e84,_0x1e1f0d._0x43fe92)]===!![];}async function executeModelRequest(_0x45fcf7,_0x1b75e5,_0x9ce5c8,_0x1847a0,_0x43eaa5){const _0x5558c0={_0x4b10ec:0x1e9,_0x5b105c:0x22a,_0x3867f2:0x27a,_0x2f7d62:0x2a7,_0x3f917c:0x2a9,_0x533ef7:0x2df,_0x190457:0x267,_0x2fe20a:0x2b9,_0x130cbd:0x29f,_0x42ace8:0x2ad,_0x10106e:0x2e3,_0x2a2739:0x224,_0x1d0aea:0x237,_0x24088e:0x25d,_0x4403b4:0x263,_0x5d1c2a:0x30e,_0x315a74:0x2ab,_0x460ec2:0x2f8,_0x4b722b:0x2d7,_0x55095e:0x2f3,_0x3de736:0x27d,_0x546e4a:0x2ac,_0x1c1e36:0x2dd,_0x15a0e4:0x2d7,_0x317537:0x279,_0x473e7d:0x299,_0x1861fe:0x2e2,_0x5d767e:0x286,_0x548900:0x23a,_0x1283f8:0x2c2,_0x34d4f2:0x250,_0x34e654:0x248,_0xeb4300:0x28c,_0x5d02cb:0x295,_0x6b60ba:0x2db,_0x1a88ab:0x2f0},_0x351d55={_0x4b5e8c:0x1b9},_0x235c3b={_0x32110b:0x1cb};throwIfAborted(_0x1b75e5[_0x29e332(0x1f6,0x271,_0x5558c0._0x4b10ec,_0x5558c0._0x5b105c)]);function _0x29e332(_0x1fe4d5,_0x139548,_0x35a3fe,_0xf0096d){return _0x132076(_0x1fe4d5-_0x235c3b._0x32110b,_0xf0096d-0xcb,_0x1fe4d5,_0xf0096d-0xe8);}if(!_0x1b75e5[_0x2f1d1b(-_0x5558c0._0x3867f2,-_0x5558c0._0x2f7d62,-_0x5558c0._0x3f917c,-_0x5558c0._0x533ef7)]||!_0x9ce5c8[_0x2f1d1b(-_0x5558c0._0x190457,-_0x5558c0._0x2fe20a,-_0x5558c0._0x130cbd,-0x260)]['stream'])return await _0x9ce5c8[_0x2f1d1b(-_0x5558c0._0x42ace8,-0x28f,-0x29f,-_0x5558c0._0x10106e)][_0x2f1d1b(-_0x5558c0._0x2a2739,-0x22b,-0x268,-0x22d)](_0x45fcf7,{'signal':_0x1b75e5[_0x29e332(0x26e,0x20f,_0x5558c0._0x1d0aea,_0x5558c0._0x5b105c)]});let _0x395ebf;for await(const _0x2b3df0 of _0x9ce5c8[_0x2f1d1b(-_0x5558c0._0x24088e,-0x297,-0x29f,-_0x5558c0._0x4403b4)][_0x2f1d1b(-_0x5558c0._0x5d1c2a,-0x319,-0x2cb,-0x2ef)](_0x45fcf7,{'signal':_0x1b75e5[_0x2f1d1b(-_0x5558c0._0x315a74,-0x323,-_0x5558c0._0x460ec2,-_0x5558c0._0x4b722b)]})){throwIfAborted(_0x1b75e5[_0x2f1d1b(-_0x5558c0._0x55095e,-0x33f,-_0x5558c0._0x460ec2,-0x2fc)]);if(_0x2b3df0['type']===_0x29e332(_0x5558c0._0x3de736,0x2d3,0x2bc,_0x5558c0._0x546e4a)){_0x395ebf=_0x2b3df0[_0x29e332(0x279,_0x5558c0._0x1c1e36,_0x5558c0._0x15a0e4,0x29d)];continue;}const _0x1ed5e9=createReasoningChunkEvent(_0x2b3df0,_0x43eaa5['reasoningMessageId']);if(_0x1ed5e9&&_0x1ed5e9[_0x2f1d1b(-0x2b5,-_0x5558c0._0x317537,-0x2b7,-_0x5558c0._0x473e7d)]===_0x29e332(_0x5558c0._0x130cbd,_0x5558c0._0x1861fe,0x2c0,0x2a1)&&_0x1ed5e9[_0x2f1d1b(-_0x5558c0._0x5d767e,-_0x5558c0._0x548900,-0x28a,-0x2c2)][_0x2f1d1b(-0x2e1,-0x2d4,-0x2d1,-_0x5558c0._0x1283f8)]>0x0){await emitEvent2(_0x9ce5c8[_0x29e332(_0x5558c0._0x34d4f2,_0x5558c0._0x34e654,0x25b,0x27e)],_0x1ed5e9,_0x1847a0);continue;}const _0x171454=createAssistantChunkEvent(_0x2b3df0,_0x43eaa5['assistantMessageId']);if(_0x171454){await emitEvent2(_0x9ce5c8['onEvent'],_0x171454,_0x1847a0);continue;}const _0x1840e8=createToolUseChunkEvent(_0x2b3df0,_0x43eaa5[_0x29e332(0x289,_0x5558c0._0xeb4300,_0x5558c0._0x5d02cb,0x249)]);_0x1840e8&&await emitEvent2(_0x9ce5c8['onEvent'],_0x1840e8,_0x1847a0);}function _0x2f1d1b(_0x36b74e,_0x2dfa64,_0x2d3920,_0x194ce6){return _0x29898f(_0x36b74e-_0x351d55._0x4b5e8c,_0x194ce6,_0x2d3920-0x190,_0x2d3920- -0x69a);}if(!_0x395ebf)throw new Error(_0x2f1d1b(-_0x5558c0._0x6b60ba,-0x32f,-_0x5558c0._0x1a88ab,-0x325));return _0x395ebf;}function makeTurnGuards(_0x4c8334,_0x1e5785,_0x29553f,_0x2d268b,_0x456f53){return{async 'stage'(_0x14bff5,_0xee41f2){return throwIfAborted(_0x4c8334),await runStage(_0x1e5785,_0x14bff5,_0xee41f2,_0x2d268b);},async 'emit'(_0x145833){throwIfAborted(_0x4c8334),await emitEvent2(_0x29553f,_0x145833,_0x456f53);},async 'stageUnchecked'(_0x3c0574,_0xa2a399){return await runStage(_0x1e5785,_0x3c0574,_0xa2a399,_0x2d268b);},async 'emitUnchecked'(_0x1e91d5){await emitEvent2(_0x29553f,_0x1e91d5,_0x456f53);}};}async function runTurn(_0x4c2624,_0x5daf05){const _0x1eff56={_0x3ea2d3:0x340,_0x930076:0x383,_0x4e6b32:0x38a,_0x31063e:0x129,_0x247f15:0x167,_0x442278:0x1ea,_0x9fdf8c:0x1b3,_0x145d08:0x186,_0x1a414b:0x144,_0x35ed1f:0x3f3,_0xdf99d0:0x3df,_0x1d1313:0x1ee,_0x100785:0x1c6,_0x54cbe8:0x13c,_0x142e28:0x1b0,_0x1e0c8e:0x179,_0x3d89ef:0x3c5,_0x3b621c:0x3a0,_0x23c33:0x3bf,_0x58cdc6:0x38c,_0x4e05cb:0x36f,_0x30db1a:0x375,_0x23770d:0x37e,_0x1555c0:0x3a0,_0x281194:0x38d,_0x3007e2:0x347,_0x3f8449:0x32a,_0x2f905d:0x1ac,_0x5a4247:0x16e,_0x96ecaf:0x174,_0x5edd59:0x395,_0x4300e4:0x392,_0x460433:0x3fc,_0x18a00e:0x144,_0x171c74:0x35c,_0x56d624:0x343,_0x199d45:0x3ce,_0x12e126:0x3b8,_0x4c6d25:0x35a,_0x5106bb:0x313,_0x288a37:0x3a9,_0x29e6cf:0x3b7,_0x164467:0x3b4,_0x5a507c:0x3fe,_0x3fae62:0x382,_0x493469:0x30a,_0x52e5e3:0x350,_0x7c2c60:0x356,_0x4a9a45:0x3f0,_0x1f2390:0x1bb,_0x3c044b:0x1e7,_0x3c9872:0x1f3,_0x29dd55:0x1c6,_0x4b5b17:0x138,_0x5452e4:0x179,_0x598f75:0x147,_0x3485dd:0x37a,_0x34997c:0x381,_0x35e63d:0x1c3,_0xf8493:0x14b,_0x140dcc:0x36b,_0x52cac7:0x35e,_0x4f4630:0x370,_0x2b9da9:0x129,_0x53e0e8:0x16a,_0x35b87f:0x3f7,_0xbdfc2c:0x1e9,_0x23536e:0x1ef,_0x3e9b1b:0x1bb,_0x4966ff:0x144,_0x2173ad:0x393,_0x150d3d:0x346,_0x24f11b:0x32a,_0x4a28b8:0x131,_0x1a6030:0x15b,_0x320692:0x13f,_0x4a00e7:0x149,_0x2aef0f:0x367,_0x2312bd:0x37b,_0x3314f1:0x330,_0x466d1b:0x32c,_0x1d35fa:0xf6,_0x456370:0x16c,_0x140e14:0x1b7,_0x11eb4c:0x1a8,_0x95c4b1:0x124,_0x10599a:0x17e,_0x52adb4:0x181,_0x104886:0x118,_0x1e595b:0x14e,_0x343969:0x3d2,_0x3f9bbc:0x372,_0x18a762:0x3b9,_0x3db536:0x39c,_0xdcd46a:0x397,_0x4b7443:0x176,_0xd5437b:0x163,_0x3c4d81:0x19f,_0x967846:0x173,_0x1ea9e6:0x12c,_0x3f0987:0x159,_0x45e3be:0x15f,_0x1a331b:0x342,_0x48519d:0x326,_0x2450a1:0x314,_0x2248ae:0x1a1,_0x26b388:0x3cf,_0x23fc82:0x3cc},_0x467fcd={_0x3022e7:0x177,_0x54fe12:0x1e1,_0x20fb5e:0x179},_0x1b896d=_0x4c2624['signal']??new AbortController()[_0x297c92(0x307,_0x1eff56._0x3ea2d3,0x357,0x372)],_0x4ed904={'sessionId':_0x4c2624[_0x297c92(0x3f3,0x3b5,_0x1eff56._0x930076,_0x1eff56._0x4e6b32)],'turnId':_0x4c2624['turnId'],'system':normalizeSystem(_0x4c2624[_0xfe669a(-_0x1eff56._0x31063e,-0x119,-0x138,-_0x1eff56._0x247f15)]),'messages':(_0x4c2624[_0xfe669a(-0x19d,-0x1f7,-_0x1eff56._0x442278,-_0x1eff56._0x9fdf8c)]??[])[_0xfe669a(-0x182,-0x145,-_0x1eff56._0x145d08,-_0x1eff56._0x1a414b)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0},_0x32b1a8=makeExtensionContext(_0x4ed904);function _0xfe669a(_0x5eefbc,_0x442b4e,_0x244209,_0x66d1b){return _0x132076(_0x5eefbc-0x125,_0x66d1b- -0x32c,_0x442b4e,_0x66d1b-0x1af);}const _0x5dde43={'sessionId':_0x4ed904[_0x297c92(0x3fd,0x3b5,_0x1eff56._0x35ed1f,_0x1eff56._0xdf99d0)],'turnId':_0x4ed904[_0xfe669a(-_0x1eff56._0x1d1313,-0x19e,-0x1a5,-_0x1eff56._0x100785)],'state':_0x4ed904,'signal':_0x1b896d},{stage:_0x94b364,emit:_0x47fe90,stageUnchecked:_0x63fd61,emitUnchecked:_0x509225}=makeTurnGuards(_0x1b896d,_0x5daf05[_0xfe669a(-_0x1eff56._0x54cbe8,-0x15a,-_0x1eff56._0x142e28,-0x182)],_0x5daf05[_0xfe669a(-0x176,-0x164,-0x160,-_0x1eff56._0x1e0c8e)],_0x32b1a8,_0x5dde43);function _0x297c92(_0x413f27,_0x4b4fea,_0x1f3a52,_0x5ad3d7){return _0x132076(_0x413f27-_0x467fcd._0x3022e7,_0x4b4fea-_0x467fcd._0x54fe12,_0x413f27,_0x5ad3d7-_0x467fcd._0x20fb5e);}let _0x49c6d2=0x0;try{const _0x26f0e6=await _0x94b364(_0x297c92(_0x1eff56._0x3d89ef,_0x1eff56._0x3b621c,_0x1eff56._0x23c33,0x3db),normalizeMessage(_0x4c2624[_0x297c92(0x351,_0x1eff56._0x58cdc6,_0x1eff56._0x4e05cb,_0x1eff56._0x30db1a)]));_0x4ed904[_0x297c92(_0x1eff56._0x23770d,0x35a,_0x1eff56._0x1555c0,_0x1eff56._0x281194)]['push'](_0x26f0e6),await _0x47fe90({'type':'user_message','message':_0x26f0e6});while(!![]){throwIfAborted(_0x1b896d),_0x49c6d2+=0x1;const _0x4b49a6=createAssistantMessageId(_0x4ed904[_0x297c92(0x376,_0x1eff56._0x3007e2,_0x1eff56._0x3f8449,0x33c)],_0x49c6d2),_0x353d52=createReasoningMessageId(_0x4b49a6);let _0x2afeb3={'model':_0x5daf05[_0xfe669a(-0x135,-_0x1eff56._0x2f905d,-_0x1eff56._0x5a4247,-_0x1eff56._0x96ecaf)][_0x297c92(_0x1eff56._0x5edd59,0x3cb,_0x1eff56._0x4300e4,_0x1eff56._0x460433)],'maxTokens':_0x5daf05[_0xfe669a(-_0x1eff56._0x18a00e,-0x144,-0x128,-0x174)][_0x297c92(0x34d,_0x1eff56._0x171c74,_0x1eff56._0x3ea2d3,_0x1eff56._0x56d624)]??0x4000,'system':structuredClone(_0x4ed904[_0x297c92(_0x1eff56._0x199d45,0x3a6,_0x1eff56._0x12e126,0x3cd)]),'messages':structuredClone(_0x4ed904[_0x297c92(_0x1eff56._0x56d624,_0x1eff56._0x4c6d25,_0x1eff56._0x5106bb,_0x1eff56._0x288a37)]),'tools':_0x5daf05[_0x297c92(_0x1eff56._0x29e6cf,_0x1eff56._0x164467,_0x1eff56._0x5a507c,_0x1eff56._0x3fae62)][_0x297c92(_0x1eff56._0x493469,_0x1eff56._0x52e5e3,0x36c,_0x1eff56._0x7c2c60)](),'metadata':{'sessionId':_0x4ed904[_0x297c92(0x369,0x3b5,0x402,_0x1eff56._0x4a9a45)],'turnId':_0x4ed904[_0xfe669a(-_0x1eff56._0x1f2390,-_0x1eff56._0x3c044b,-_0x1eff56._0x3c9872,-_0x1eff56._0x29dd55)]}};_0x2afeb3=await _0x94b364(_0xfe669a(-0x16d,-_0x1eff56._0x4b5b17,-_0x1eff56._0x5452e4,-_0x1eff56._0x598f75),_0x2afeb3),await _0x47fe90({'type':_0x297c92(0x37e,_0x1eff56._0x3485dd,0x371,_0x1eff56._0x34997c),'request':_0x2afeb3});let _0x4fe3b6=await executeModelRequest(_0x2afeb3,_0x4c2624,_0x5daf05,_0x5dde43,{'assistantMessageId':_0x4b49a6,'reasoningMessageId':_0x353d52});_0x4fe3b6=await _0x94b364(_0xfe669a(-_0x1eff56._0x35e63d,-_0x1eff56._0xf8493,-0x193,-0x180),_0x4fe3b6),await _0x47fe90({'type':_0x297c92(_0x1eff56._0x140dcc,_0x1eff56._0x52cac7,0x3a6,_0x1eff56._0x4f4630),'response':_0x4fe3b6}),_0x4ed904[_0xfe669a(-0x18e,-0x121,-_0x1eff56._0x2b9da9,-_0x1eff56._0x53e0e8)]=_0x4fe3b6;let _0x5991e4=await _0x94b364(_0x297c92(0x393,0x3a9,_0x1eff56._0x35b87f,0x3e5),withMessageId(responseToAssistantMessage(_0x4fe3b6),_0x4b49a6));_0x5991e4=withMessageId(_0x5991e4,_0x4b49a6);const _0x51eabe=getToolUseBlocks(_0x5991e4),_0x1f2d0d=await Promise[_0xfe669a(-_0x1eff56._0xbdfc2c,-0x1e4,-_0x1eff56._0x23536e,-_0x1eff56._0x3e9b1b)](_0x51eabe[_0xfe669a(-0x144,-0x13f,-0x111,-_0x1eff56._0x4966ff)](_0x2d0462=>_0x94b364(_0x297c92(0x37d,0x3be,0x3a8,0x3ce),_0x2d0462)));_0x1f2d0d['length']>0x0&&(_0x5991e4=replaceToolUseBlocks(_0x5991e4,_0x1f2d0d));const _0x3a548c=withMessageId(_0x5991e4,_0x4b49a6);_0x5991e4=_0x3a548c;const _0x112af2=createReasoningMessage(_0x5991e4),_0x135c42=createAssistantTextMessage(_0x5991e4),_0x653317=createToolUseMessage(_0x5991e4);_0x112af2&&await _0x47fe90({'type':'reasoning_message','message':withMessageId(_0x112af2,_0x353d52)});_0x135c42&&await _0x47fe90({'type':_0x297c92(0x378,_0x1eff56._0x2173ad,0x3a1,0x35d),'message':withMessageId(_0x135c42,_0x4b49a6)});_0x653317&&await _0x47fe90({'type':_0x297c92(0x371,_0x1eff56._0x150d3d,_0x1eff56._0x23770d,_0x1eff56._0x24f11b),'message':withMessageId(_0x653317,_0x4b49a6)});_0x4ed904['messages'][_0xfe669a(-_0x1eff56._0x4a28b8,-_0x1eff56._0xf8493,-0x160,-_0x1eff56._0x1a6030)](_0x3a548c);for(const _0x2560af of _0x1f2d0d){await _0x47fe90({'type':_0xfe669a(-_0x1eff56._0x320692,-0x123,-0x109,-_0x1eff56._0x4a00e7),'toolCall':_0x2560af});}if(_0x1f2d0d[_0x297c92(0x34d,_0x1eff56._0x2aef0f,0x354,_0x1eff56._0x2312bd)]===0x0){const _0x4d26bf=await _0x94b364(_0x297c92(_0x1eff56._0x3314f1,0x34f,_0x1eff56._0x466d1b,0x300),_0x5991e4),_0x504443=withMessageId(_0x4d26bf,_0x4b49a6);return _0x4ed904[_0xfe669a(-0x10f,-_0x1eff56._0x1d35fa,-_0x1eff56._0x456370,-0x13f)]=_0x504443,_0x4ed904[_0xfe669a(-0x1d9,-_0x1eff56._0x140e14,-_0x1eff56._0x11eb4c,-_0x1eff56._0x9fdf8c)][_0x4ed904[_0x297c92(0x39b,_0x1eff56._0x4c6d25,0x315,0x343)]['length']-0x1]=_0x504443,await _0x47fe90({'type':_0xfe669a(-_0x1eff56._0x95c4b1,-0x146,-_0x1eff56._0x10599a,-0x151),'message':_0x504443}),throwIfAborted(_0x1b896d),await _0x5daf05['registry'][_0xfe669a(-0x18a,-_0x1eff56._0x52adb4,-_0x1eff56._0x104886,-_0x1eff56._0x1e595b)](_0x297c92(_0x1eff56._0x343969,0x3ba,_0x1eff56._0x3f9bbc,_0x1eff56._0x18a762),_0x4ed904,_0x32b1a8),await _0x47fe90({'type':_0x297c92(_0x1eff56._0x3db536,0x364,0x32e,_0x1eff56._0xdcd46a),'state':_0x4ed904}),{'status':_0xfe669a(-_0x1eff56._0x4b7443,-_0x1eff56._0xd5437b,-_0x1eff56._0x3c4d81,-0x15c),'finalMessage':_0x504443,'state':_0x4ed904};}let _0x1f57b0=await _0x5daf05[_0xfe669a(-_0x1eff56._0x967846,-0x15c,-_0x1eff56._0x1ea9e6,-_0x1eff56._0x3f0987)]['executeCalls'](_0x1f2d0d,_0x5dde43);const _0x2c431d=_0x1f57b0[_0xfe669a(-0x1cc,-0x19b,-0x1fc,-0x1ac)](isAbortedToolResult),_0x2d151b=_0x2c431d?_0x63fd61:_0x94b364,_0x35ce1e=_0x2c431d?_0x509225:_0x47fe90;_0x1f57b0=await Promise['all'](_0x1f57b0['map'](_0x2cd1a7=>_0x2d151b('afterToolResult',_0x2cd1a7))),_0x4ed904[_0xfe669a(-0x120,-0x175,-0x119,-0x150)][_0xfe669a(-_0x1eff56._0x45e3be,-0x1a1,-0x19e,-0x15b)](..._0x1f57b0);for(const _0x50f69f of _0x1f57b0){await _0x35ce1e({'type':_0x297c92(_0x1eff56._0x1555c0,0x360,0x356,0x333),'result':_0x50f69f});}const _0x204474=await _0x2d151b(_0x297c92(0x320,_0x1eff56._0x1a331b,_0x1eff56._0x48519d,_0x1eff56._0x2450a1),createToolResultUserMessage(_0x1f57b0));await _0x35ce1e({'type':_0xfe669a(-0x1d2,-0x202,-_0x1eff56._0x2248ae,-0x1c1),'message':_0x204474}),_0x4ed904[_0x297c92(0x380,0x35a,0x39e,0x30d)]['push'](_0x204474);if(_0x2c431d)return{'status':'aborted','state':_0x4ed904};}}catch(_0x59b8e5){if(!_0x1b896d[_0x297c92(0x3a3,0x3db,0x38e,_0x1eff56._0x26b388)])throw _0x59b8e5;return{'status':_0x297c92(0x3c1,0x3db,0x3e5,_0x1eff56._0x23fc82),'state':_0x4ed904};}}function createSessionId(){const _0x2ad658={_0x2e0df3:0x96,_0x5e6cd3:0xc9,_0xd93642:0xad,_0x4b3110:0xb2,_0x49add2:0x52,_0x13de31:0x9a,_0x5dfb35:0xe7,_0x299633:0xd5,_0x3215d2:0x7e,_0x1b65fc:0x45,_0x2221f8:0x85},_0x38d4f1={_0x3f8377:0x170,_0x5d7036:0x162,_0x17e184:0x332},_0x2ae5aa={_0x420f01:0x2c,_0x5de6a4:0x12e};function _0x2a3f3a(_0x378012,_0x368cbd,_0x362891,_0x2fefe8){return _0x29898f(_0x378012-_0x2ae5aa._0x420f01,_0x378012,_0x362891-_0x2ae5aa._0x5de6a4,_0x362891- -0x50d);}function _0x4c8f7d(_0x2c0294,_0x3dd0a6,_0x6fd8ce,_0x4eb4b5){return _0x29898f(_0x2c0294-_0x38d4f1._0x3f8377,_0x3dd0a6,_0x6fd8ce-_0x38d4f1._0x5d7036,_0x2c0294- -_0x38d4f1._0x17e184);}return _0x4c8f7d(_0x2ad658._0x2e0df3,_0x2ad658._0x5e6cd3,_0x2ad658._0xd93642,_0x2ad658._0x4b3110)+Date[_0x4c8f7d(0x98,_0x2ad658._0x49add2,0xde,_0x2ad658._0x13de31)]()+'-'+Math['random']()[_0x2a3f3a(-0x115,-_0x2ad658._0x5dfb35,-0x122,-_0x2ad658._0x299633)](0x10)[_0x4c8f7d(0x7d,_0x2ad658._0x3215d2,_0x2ad658._0x1b65fc,_0x2ad658._0x2221f8)](0x2,0xa);}function createTurnId(_0x466c16){const _0x1c8027={_0x3ecde0:0x295,_0x14139d:0x2f5},_0x567217={_0x318802:0x1b4,_0x452a6d:0x6};function _0x4699b9(_0x506247,_0x3a6ff3,_0x54bff7,_0x36013c){return _0x132076(_0x506247-_0x567217._0x318802,_0x54bff7-0xd2,_0x36013c,_0x36013c-_0x567217._0x452a6d);}return _0x4699b9(_0x1c8027._0x3ecde0,0x2d5,0x2aa,_0x1c8027._0x14139d)+_0x466c16;}function _0xb510(_0x507d85,_0x83c94a){_0x507d85=_0x507d85-0xbb;const _0x3beb41=_0x3beb();let _0xb51009=_0x3beb41[_0x507d85];if(_0xb510['sIlHmN']===undefined){var _0x4961e9=function(_0xec2028){const _0x24ea49='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b8a67='',_0xc7e453='';for(let _0x266e00=0x0,_0x15f222,_0x4caae0,_0x5442de=0x0;_0x4caae0=_0xec2028['charAt'](_0x5442de++);~_0x4caae0&&(_0x15f222=_0x266e00%0x4?_0x15f222*0x40+_0x4caae0:_0x4caae0,_0x266e00++%0x4)?_0x4b8a67+=String['fromCharCode'](0xff&_0x15f222>>(-0x2*_0x266e00&0x6)):0x0){_0x4caae0=_0x24ea49['indexOf'](_0x4caae0);}for(let _0x3bd60f=0x0,_0x51e4dc=_0x4b8a67['length'];_0x3bd60f<_0x51e4dc;_0x3bd60f++){_0xc7e453+='%'+('00'+_0x4b8a67['charCodeAt'](_0x3bd60f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc7e453);};_0xb510['kPcjsz']=_0x4961e9,_0xb510['MUPKJk']={},_0xb510['sIlHmN']=!![];}const _0x5ba3ed=_0x3beb41[0x0],_0x5a1ac9=_0x507d85+_0x5ba3ed,_0x403bec=_0xb510['MUPKJk'][_0x5a1ac9];return!_0x403bec?(_0xb51009=_0xb510['kPcjsz'](_0xb51009),_0xb510['MUPKJk'][_0x5a1ac9]=_0xb51009):_0xb51009=_0x403bec,_0xb51009;}function createDefaultMessage(_0x1690cb){if(_0x1690cb===void 0x0)return void 0x0;return normalizeUserInput(_0x1690cb);}function normalizeUserInput(_0x47b004){const _0x14d527={_0x22099b:0x313,_0x23c633:0x318,_0x14c25d:0x307,_0x519fda:0x1df,_0x219258:0x1fa},_0x22328f={_0x10406c:0x11a,_0x539c31:0xdb},_0xbd41fb={_0x40923c:0x2f,_0x5988e3:0x5ef};if(typeof _0x47b004===_0x1cd064(0x34f,0x36d,_0x14d527._0x22099b,_0x14d527._0x23c633))return{'role':_0x1cd064(0x332,_0x14d527._0x14c25d,0x35a,0x35e),'content':[{'type':_0x17cfb4(-_0x14d527._0x519fda,-0x1fc,-0x22b,-_0x14d527._0x219258),'text':_0x47b004}]};function _0x17cfb4(_0x392cc3,_0x202796,_0x2ae399,_0x7a31b){return _0x29898f(_0x392cc3-_0xbd41fb._0x40923c,_0x202796,_0x2ae399-0x9b,_0x392cc3- -_0xbd41fb._0x5988e3);}function _0x1cd064(_0x1f5664,_0x38a8be,_0x46fc82,_0x26bd92){return _0x29898f(_0x1f5664-_0x22328f._0x10406c,_0x26bd92,_0x46fc82-0x1c9,_0x1f5664- -_0x22328f._0x539c31);}return normalizeMessage(_0x47b004);}function resolveChatModel(_0x4a1b44){const _0x112979={_0x3c48ef:0x19},_0x3bb92f={_0x3dfc94:0x209,_0x4dfe6c:0x123};if(!_0x4a1b44[_0xf3c328(_0x112979._0x3c48ef,-0xc,-0xa,-0x36)])throw new Error('Agent\x20requires\x20a\x20chatModel');function _0xf3c328(_0x3be5f8,_0x2ec48c,_0xc0e40,_0x7f3240){return _0x132076(_0x3be5f8-0xa5,_0x7f3240- -0x1ee,_0x3be5f8,_0x7f3240-0xc4);}function _0x39c958(_0x29ef19,_0x15d475,_0xa2aca8,_0x23abee){return _0x132076(_0x29ef19-0x1e5,_0x15d475-_0x3bb92f._0x3dfc94,_0xa2aca8,_0x23abee-_0x3bb92f._0x4dfe6c);}return _0x4a1b44[_0x39c958(0x3a6,0x3c1,0x39d,0x38e)];}function createRegistry(_0x250e52){const _0x427fac={_0x27984c:0x28,_0x152d33:0x4c2,_0xd6224f:0x49c,_0xde283a:0x4a9,_0x316208:0x47e,_0x24e26b:0x495},_0x4fb326={_0x573b98:0x107,_0x6ad60c:0x37e},_0x4fe1f3={_0x163fe3:0x2f2,_0x387d84:0x122};if(_0x250e52[_0x40723a(0x6f,0x57,_0x427fac._0x27984c,0x2d)])return _0x250e52[_0x4ac500(0x450,_0x427fac._0x152d33,0x479,_0x427fac._0xd6224f)];const _0xcaf0e3=createExtensionRegistry(),_0x15df2f=_0x250e52['extensions']??[];function _0x4ac500(_0x4d6d97,_0x41862b,_0x1ba56a,_0x4451fc){return _0x132076(_0x4d6d97-0x1b2,_0x4451fc-_0x4fe1f3._0x163fe3,_0x1ba56a,_0x4451fc-_0x4fe1f3._0x387d84);}function _0x40723a(_0x74b90e,_0x5119ba,_0x3502bb,_0x998fec){return _0x29898f(_0x74b90e-_0x4fb326._0x573b98,_0x5119ba,_0x3502bb-0x1a4,_0x74b90e- -_0x4fb326._0x6ad60c);}for(const _0x357df8 of _0x15df2f){_0xcaf0e3[_0x4ac500(_0x427fac._0xde283a,_0x427fac._0x316208,0x4d1,_0x427fac._0x24e26b)](_0x357df8);}return _0xcaf0e3;}var Agent=class{[_0x29898f(0x364,0x3d2,0x390,0x3b0)];[_0x29898f(0x459,0x45b,0x3ca,0x417)];[_0x29898f(0x3bc,0x379,0x3c4,0x3a5)];[_0x29898f(0x3ff,0x38f,0x3f7,0x3bc)];['defaultMessage'];[_0x132076(0x1ea,0x19e,0x152,0x1ce)];constructor(_0x238222={}){const _0x178435={_0x155fd1:0x1c3,_0x50be67:0x178,_0x35e4e4:0x19e,_0x59d08a:0x1c6,_0x4d869b:0x16d,_0x15a0e3:0x18a,_0x38ec3e:0x1cd,_0x50acfb:0x1fe,_0x10c8ae:0x214,_0x3fde85:0x20b,_0x2f8221:0x20b,_0x1d679b:0x1ef,_0x4002cf:0x1ec,_0x9db196:0x18f,_0x28e5af:0x150,_0x36a920:0x195},_0x2a06b5={_0x599425:0xc5},_0xc6a929={_0x4b17bb:0x18d,_0x516938:0x1dc};function _0x1325c6(_0x3a3b94,_0x31cdf5,_0x2ec786,_0x298b3d){return _0x29898f(_0x3a3b94-_0xc6a929._0x4b17bb,_0x31cdf5,_0x2ec786-_0xc6a929._0x516938,_0x2ec786- -0x1be);}this['sessionId']=_0x238222[_0x17d0b7(0x1e4,0x219,_0x178435._0x155fd1,0x1fc)]??createSessionId(),this[_0x17d0b7(_0x178435._0x50be67,_0x178435._0x35e4e4,0x1b9,_0x178435._0x59d08a)]=0x0,this[_0x17d0b7(_0x178435._0x4d869b,0x15a,0x14e,_0x178435._0x15a0e3)]=_0x238222['systemPrompt']??'',this[_0x17d0b7(_0x178435._0x38ec3e,0x1e4,0x1bc,0x1a1)]=(_0x238222[_0x1325c6(0x1d4,0x1b6,_0x178435._0x50acfb,_0x178435._0x10c8ae)]??[])['map'](normalizeMessage);function _0x17d0b7(_0x186a7a,_0x574b17,_0x1408ff,_0x19986d){return _0x29898f(_0x186a7a-_0x2a06b5._0x599425,_0x574b17,_0x1408ff-0x121,_0x19986d- -0x21b);}this['defaultMessage']=createDefaultMessage(_0x238222[_0x1325c6(0x23d,0x22c,0x230,_0x178435._0x3fde85)]);const _0x314861=createInternalToolRuntime(_0x238222[_0x17d0b7(_0x178435._0x2f8221,_0x178435._0x1d679b,0x1ec,_0x178435._0x4002cf)]??[],{'onEvent':_0x238222['onEvent'],'onToolCall':_0x238222[_0x17d0b7(_0x178435._0x9db196,0x1be,0x1de,0x1c5)]});this[_0x17d0b7(_0x178435._0x28e5af,0x171,0x162,_0x178435._0x36a920)]={'registry':createRegistry(_0x238222),'chatModel':resolveChatModel(_0x238222),'toolRuntime':_0x314861,'onEvent':_0x238222['onEvent']};}get[_0x132076(0x180,0x1a4,0x1b4,0x1ac)](){return this['_systemPrompt'];}['setTools'](_0x40c0f1=[]){const _0x5ed594={_0x23a5e2:0x309},_0x975705={_0x30b213:0x2d},_0x4a5a2f={_0x4cb55a:0xaf,_0x2bc506:0xd2};function _0x3e2510(_0x22206d,_0x43beed,_0x55bb2a,_0x497cb7){return _0x29898f(_0x22206d-_0x4a5a2f._0x4cb55a,_0x55bb2a,_0x55bb2a-_0x4a5a2f._0x2bc506,_0x43beed- -0x6c4);}function _0x473edc(_0x43772b,_0x1b1a96,_0x21ab6b,_0x4eb61){return _0x132076(_0x43772b-_0x975705._0x30b213,_0x21ab6b- -0x39d,_0x43772b,_0x4eb61-0x1e1);}this['deps'][_0x473edc(-0x18d,-0x1bf,-0x1ca,-0x1bd)][_0x3e2510(-0x2c3,-0x2fd,-0x2ea,-_0x5ed594._0x23a5e2)](_0x40c0f1);}[_0x29898f(0x3f1,0x3e1,0x43b,0x403)](_0x4b557d,_0x10e86d={}){const _0x223adf={_0x2fbaf8:0x114,_0x4ac2ea:0xe4,_0x2b8092:0xe9,_0x42c979:0x14c,_0x57fa62:0x11e,_0x3f771c:0xb2},_0xccd81b={_0x5ee082:0x15f},_0x2b7a55={_0x2defbf:0x124,_0x59222f:0x2bc};function _0x122330(_0x29b8d2,_0x3e9b25,_0x18f3ca,_0x2dea63){return _0x29898f(_0x29b8d2-_0x2b7a55._0x2defbf,_0x29b8d2,_0x18f3ca-0x70,_0x18f3ca- -_0x2b7a55._0x59222f);}this[_0x122330(_0x223adf._0x2fbaf8,_0x223adf._0x4ac2ea,_0x223adf._0x2b8092,0xd7)]=_0x4b557d;function _0x587986(_0x27f697,_0x365202,_0x41afc0,_0x325726){return _0x29898f(_0x27f697-0xb1,_0x27f697,_0x41afc0-_0xccd81b._0x5ee082,_0x325726- -0x317);}_0x10e86d[_0x122330(_0x223adf._0x42c979,0x144,_0x223adf._0x57fa62,0x13b)]===!![]&&(this[_0x122330(_0x223adf._0x3f771c,0xf7,0x100,0xb5)]=[],this['turnIndex']=0x0);}[_0x29898f(0x42a,0x3c4,0x40d,0x3db)](_0x3498ea){const _0x45047a={_0x139c85:0x105,_0x824ff0:0xdc};function _0x2c64bf(_0x397439,_0x253207,_0x41b44d,_0x1b741b){return _0x29898f(_0x397439-0x182,_0x397439,_0x41b44d-0x29,_0x41b44d- -0x5fd);}function _0x2231eb(_0x49265c,_0x2a33e3,_0x1795d1,_0x2d66b3){return _0x132076(_0x49265c-0x139,_0x2d66b3- -0x25f,_0x49265c,_0x2d66b3-0x1ac);}this[_0x2231eb(-_0x45047a._0x139c85,-0x116,-0xf1,-0xf2)][_0x2231eb(-_0x45047a._0x824ff0,-0x91,-0xe0,-0xa7)]=_0x3498ea;}async[_0x132076(0x167,0x195,0x19b,0x1d5)](_0x177f08=this[_0x29898f(0x3fa,0x412,0x3e3,0x3d7)],_0x37dfe3={}){const _0x34ce77={_0x21de94:0x456,_0xb70ce:0x3e3,_0x47ed74:0x429,_0x4345a0:0x3c1,_0x1649fb:0x37e,_0x4415a8:0x3cb,_0x597b44:0x403,_0x3902c9:0x3bb,_0x23bfef:0x3f5,_0x232bed:0x3af,_0x18cc43:0x3b7,_0x5ac368:0x39c,_0x4fe541:0x39e,_0xf8f0eb:0x417,_0x367114:0x3d1,_0xd19cae:0x368,_0x331a60:0x3e6,_0x5575a9:0x3a6,_0x57d183:0x362,_0x4c0cf1:0x3c9},_0x254544={_0x4be148:0x111,_0x42f231:0x93,_0x563460:0xd},_0x4c1ef0={_0x3a93e2:0x16};if(!_0x177f08)throw new Error(_0x2a6704(_0x34ce77._0x21de94,0x466,_0x34ce77._0xb70ce,_0x34ce77._0x47ed74));this[_0x2a6704(_0x34ce77._0x4345a0,0x417,_0x34ce77._0x1649fb,_0x34ce77._0x4415a8)]+=0x1;function _0x2a6704(_0x3deb6e,_0x4c1d1c,_0x432c03,_0x5eb67b){return _0x29898f(_0x3deb6e-0x102,_0x432c03,_0x432c03-0x19,_0x5eb67b- -_0x4c1ef0._0x3a93e2);}const _0x3eae3d=await runTurn({'sessionId':this[_0x2a6704(_0x34ce77._0x597b44,_0x34ce77._0x3902c9,0x402,0x401)],'turnId':createTurnId(this['turnIndex']),'streaming':_0x37dfe3[_0x43a211(0x3fe,0x3b2,0x3b5,_0x34ce77._0x23bfef)],'signal':_0x37dfe3[_0x43a211(_0x34ce77._0x232bed,0x3dd,_0x34ce77._0x18cc43,_0x34ce77._0x5ac368)],'system':this[_0x2a6704(0x389,_0x34ce77._0x4fe541,_0x34ce77._0xf8f0eb,_0x34ce77._0x367114)],'messages':this['messages'],'message':normalizeUserInput(_0x177f08)},this['deps']);function _0x43a211(_0x372a2b,_0x1168d6,_0x414c7c,_0x67d031){return _0x29898f(_0x372a2b-_0x254544._0x4be148,_0x1168d6,_0x414c7c-_0x254544._0x42f231,_0x372a2b-_0x254544._0x563460);}return this[_0x2a6704(_0x34ce77._0xd19cae,_0x34ce77._0x331a60,0x3b7,_0x34ce77._0x5575a9)]=_0x3eae3d['state'][_0x2a6704(0x384,_0x34ce77._0x57d183,_0x34ce77._0x4c0cf1,0x3a6)]['map'](normalizeMessage),_0x3eae3d;}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,runTurn,Agent};
@@ -1 +1 @@
1
- function _0x45cfaa(_0x40fb96,_0x44b52c,_0x1eddb5,_0x17d084){var _0x2e1a70={_0x3ce353:0x206};return _0x3914(_0x44b52c- -_0x2e1a70._0x3ce353,_0x17d084);}function _0x3914(_0xfc5355,_0x4d918){_0xfc5355=_0xfc5355-0x15f;var _0x3985db=_0x3985();var _0x3914db=_0x3985db[_0xfc5355];if(_0x3914['jQaqlj']===undefined){var _0xf8faa3=function(_0x418919){var _0xf6e689='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1f95e7='',_0x32dd62='';for(var _0x4d751e=0x0,_0x5678d4,_0x2fc0e2,_0xd777da=0x0;_0x2fc0e2=_0x418919['charAt'](_0xd777da++);~_0x2fc0e2&&(_0x5678d4=_0x4d751e%0x4?_0x5678d4*0x40+_0x2fc0e2:_0x2fc0e2,_0x4d751e++%0x4)?_0x1f95e7+=String['fromCharCode'](0xff&_0x5678d4>>(-0x2*_0x4d751e&0x6)):0x0){_0x2fc0e2=_0xf6e689['indexOf'](_0x2fc0e2);}for(var _0x1abfb1=0x0,_0x65dc6b=_0x1f95e7['length'];_0x1abfb1<_0x65dc6b;_0x1abfb1++){_0x32dd62+='%'+('00'+_0x1f95e7['charCodeAt'](_0x1abfb1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32dd62);};_0x3914['bPvrwq']=_0xf8faa3,_0x3914['qOHGmV']={},_0x3914['jQaqlj']=!![];}var _0x3b14d=_0x3985db[0x0],_0x2dc087=_0xfc5355+_0x3b14d,_0xe836fb=_0x3914['qOHGmV'][_0x2dc087];return!_0xe836fb?(_0x3914db=_0x3914['bPvrwq'](_0x3914db),_0x3914['qOHGmV'][_0x2dc087]=_0x3914db):_0x3914db=_0xe836fb,_0x3914db;}(function(_0xda026b,_0x20862f){var _0x423acd={_0x4bdde4:0x4a,_0x34a609:0x3f,_0x351c6e:0xc7,_0x2ffaa6:0xb8,_0x1165e3:0xaf,_0x21ef14:0x50,_0x427e57:0x54,_0x453d7b:0x4d,_0x3d3993:0x52,_0x1ba96c:0x38,_0x2967ff:0xae,_0x52cb1a:0xbc,_0x74a445:0xbc,_0x32131a:0x4b,_0x3fb480:0x46,_0x5e2537:0x4b,_0xcbc6c0:0x43,_0x420ae3:0x53,_0x387fe9:0x50,_0x28da32:0x4d,_0x323ae9:0x48,_0x4d1cab:0xb8,_0x42456d:0xba,_0x20798e:0x45,_0x1e9e0b:0x49},_0x586bc3={_0x210d89:0x1b9},_0x1aa96a={_0x354767:0x225};function _0x6866df(_0x5a4682,_0x15584a,_0x4f00ff,_0x1c1978){return _0x3914(_0x4f00ff- -_0x1aa96a._0x354767,_0x5a4682);}var _0x44f29c=_0xda026b();function _0x381f1c(_0x5c518c,_0x1d93a7,_0x4fc395,_0x2c196e){return _0x3914(_0x5c518c- -_0x586bc3._0x210d89,_0x1d93a7);}while(!![]){try{var _0x56390f=-parseInt(_0x381f1c(-0x47,-0x3b,-_0x423acd._0x4bdde4,-_0x423acd._0x34a609))/0x1*(-parseInt(_0x6866df(-_0x423acd._0x351c6e,-_0x423acd._0x2ffaa6,-0xba,-_0x423acd._0x1165e3))/0x2)+parseInt(_0x381f1c(-_0x423acd._0x21ef14,-_0x423acd._0x427e57,-_0x423acd._0x453d7b,-0x4e))/0x3*(parseInt(_0x381f1c(-_0x423acd._0x3d3993,-0x4e,-0x5c,-0x4d))/0x4)+-parseInt(_0x381f1c(-0x43,-0x3f,-0x40,-_0x423acd._0x1ba96c))/0x5+-parseInt(_0x6866df(-0xb7,-0xc4,-0xb8,-_0x423acd._0x2967ff))/0x6*(parseInt(_0x6866df(-0xbc,-_0x423acd._0x52cb1a,-0xc6,-_0x423acd._0x74a445))/0x7)+-parseInt(_0x381f1c(-0x4b,-0x4b,-_0x423acd._0x32131a,-_0x423acd._0x3fb480))/0x8*(parseInt(_0x381f1c(-0x42,-_0x423acd._0x5e2537,-_0x423acd._0xcbc6c0,-0x45))/0x9)+parseInt(_0x381f1c(-0x48,-0x43,-0x3d,-_0x423acd._0x34a609))/0xa*(parseInt(_0x381f1c(-_0x423acd._0x420ae3,-_0x423acd._0x387fe9,-_0x423acd._0x28da32,-_0x423acd._0x323ae9))/0xb)+parseInt(_0x6866df(-_0x423acd._0x4d1cab,-0xc1,-0xc1,-_0x423acd._0x42456d))/0xc*(parseInt(_0x381f1c(-0x49,-_0x423acd._0x20798e,-0x4e,-_0x423acd._0x1e9e0b))/0xd);if(_0x56390f===_0x20862f)break;else _0x44f29c['push'](_0x44f29c['shift']());}catch(_0x4885d0){_0x44f29c['push'](_0x44f29c['shift']());}}}(_0x3985,0x270fc));var OperationAbortedError=class extends Error{['code']=_0x45cfaa(-0xa3,-0x9e,-0x9c,-0xa0);constructor(_0x1f95e7=_0x30881e(-0xdb,-0xe7,-0xf3,-0xe7)){var _0x42e24d={_0x3f6aad:0x49a,_0x1e3753:0x251},_0x3f31c2={_0x1bb0a5:0xbf,_0xcf5b92:0x1b0,_0xef84c8:0x9b},_0x403a34={_0x341bcc:0x1ea,_0x2c0a0b:0x116};super(_0x1f95e7);function _0x1e2b74(_0x3c4afb,_0x1dd97f,_0x23ce12,_0x178cc0){return _0x45cfaa(_0x3c4afb-_0x403a34._0x341bcc,_0x1dd97f-0x535,_0x23ce12-_0x403a34._0x2c0a0b,_0x178cc0);}function _0x4334df(_0xc39636,_0x2581ea,_0x1cff76,_0x23ec06){return _0x45cfaa(_0xc39636-_0x3f31c2._0x1bb0a5,_0x1cff76- -_0x3f31c2._0xcf5b92,_0x1cff76-_0x3f31c2._0xef84c8,_0x2581ea);}this[_0x1e2b74(_0x42e24d._0x3f6aad,0x48f,0x495,0x48d)]=_0x4334df(-_0x42e24d._0x1e3753,-_0x42e24d._0x1e3753,-0x254,-0x24b);}};function _0x30881e(_0x143572,_0x7bf4ed,_0x21e963,_0x402504){return _0x3914(_0x402504- -0x24a,_0x21e963);}function toAbortError(_0x32dd62){var _0x16fdda={_0x2cc330:0x37a,_0x43a9e0:0x36a,_0x160a74:0x369,_0xf6c446:0x373,_0x5c9f4c:0x372,_0x174cee:0x376},_0x220b5a={_0x2317bf:0x14a,_0x448630:0x127},_0x364779={_0x414a18:0x166,_0xd35306:0x61};if(isAbortError(_0x32dd62))return _0x32dd62;if(_0x32dd62 instanceof Error)return new OperationAbortedError(_0x32dd62[_0x52bdc9(0x370,_0x16fdda._0x2cc330,_0x16fdda._0x43a9e0,0x36d)]);function _0x52bdc9(_0x103b4c,_0x12d097,_0x1700b0,_0x537247){return _0x30881e(_0x103b4c-_0x364779._0x414a18,_0x12d097-_0x364779._0xd35306,_0x12d097,_0x537247-0x448);}function _0x41cff3(_0x3e0729,_0x711653,_0x55034a,_0x29849a){return _0x30881e(_0x3e0729-_0x220b5a._0x2317bf,_0x711653-_0x220b5a._0x448630,_0x29849a,_0x55034a- -0x63);}if(typeof _0x32dd62===_0x52bdc9(_0x16fdda._0x2cc330,_0x16fdda._0x160a74,0x37b,_0x16fdda._0xf6c446)&&_0x32dd62[_0x52bdc9(0x36f,_0x16fdda._0x5c9f4c,0x370,_0x16fdda._0x174cee)]>0x0)return new OperationAbortedError(_0x32dd62);return new OperationAbortedError();}function isAbortError(_0x4d751e){var _0x465d9d={_0x1bb521:0x522,_0x3c95fb:0x517,_0x213343:0x518,_0x17b626:0x51d,_0x40dc01:0x521},_0x366be5={_0x59d2fb:0x27,_0x353f54:0x13b},_0x172c9b={_0x1907f4:0x571,_0x24e2ab:0x121};function _0x2717fb(_0x559c02,_0x2571aa,_0x57d3ea,_0x53a28d){return _0x45cfaa(_0x559c02-0x35,_0x559c02-_0x172c9b._0x1907f4,_0x57d3ea-_0x172c9b._0x24e2ab,_0x53a28d);}function _0x2a7931(_0x59bfa2,_0x2b74aa,_0x341bd2,_0x385458){return _0x45cfaa(_0x59bfa2-_0x366be5._0x59d2fb,_0x341bd2-0x5c6,_0x341bd2-_0x366be5._0x353f54,_0x59bfa2);}return _0x4d751e instanceof OperationAbortedError||_0x4d751e instanceof Error&&(_0x4d751e['name']===_0x2a7931(0x517,0x527,_0x465d9d._0x1bb521,_0x465d9d._0x3c95fb)||_0x2a7931(0x520,_0x465d9d._0x213343,0x521,0x52e)in _0x4d751e&&_0x4d751e[_0x2a7931(_0x465d9d._0x213343,_0x465d9d._0x17b626,_0x465d9d._0x40dc01,0x525)]==='ABORT_ERR');}function _0x3985(){var _0x5cafbd=['ywjVCNrLza','C3rYAw5N','mtm1mdG5meHcAvfjAq','ouDztNniBW','BgvUz3rO','mtm5m29ktMP4qW','BMfTzq','y29Kzq','qwjVCNrfCNjVCG','t3bLCMf0Aw9UigfIB3j0zwq','mJq1odyZmMjIy2jHEa','ywjVCNq','mJmXthfqy21b','otuYnJG0t0XHyw9c','qujpuLrFrvjs','m0fcwxrztq','CMvHC29U','ntrerKnJvKe','CMvTB3zLrxzLBNrmAxn0zw5LCG','ntu5ofD4y1Luuq','mJq3mta1nKj1tKnvta','BwvZC2fNzq','mJzhCu9hBue','mZa5mtbAwKnOANO','nZG0n0TrwgfYsa','ywrKrxzLBNrmAxn0zw5LCG'];_0x3985=function(){return _0x5cafbd;};return _0x3985();}function throwIfAborted(_0x5678d4){var _0x5800ad={_0x52d033:0x19c,_0x29e938:0x191},_0xa22b46={_0x55519d:0x5a,_0x3d8c0f:0x68},_0x3c251e={_0x297ea4:0xee};if(!_0x5678d4?.[_0x6c5a39(-0x198,-0x188,-0x192,-0x187)])return;function _0x6c5a39(_0x3c7a8c,_0x36edea,_0x50edba,_0x4f3d62){return _0x45cfaa(_0x3c7a8c-0xc5,_0x50edba- -0x100,_0x50edba-_0x3c251e._0x297ea4,_0x4f3d62);}function _0x834156(_0x3b8ab5,_0x4bdff4,_0x3fe843,_0x490d38){return _0x45cfaa(_0x3b8ab5-0xc7,_0x3fe843-_0xa22b46._0x55519d,_0x3fe843-_0xa22b46._0x3d8c0f,_0x3b8ab5);}throw toAbortError(_0x5678d4[_0x6c5a39(-0x19f,-0x1a0,-_0x5800ad._0x52d033,-_0x5800ad._0x29e938)]);}function addAbortListener(_0x2fc0e2,_0xd777da){var _0x51bf88={_0x534a26:0xf7,_0x5f0bf9:0xe2,_0x4cb6c8:0xdb,_0x1b9115:0xdb},_0x2d3f13={_0x542706:0x5e,_0x869610:0x5d,_0x3e8666:0x51},_0xc898f0={_0x29c784:0x24,_0x509ca9:0x9e},_0x36fd94={_0x29d64e:0x1bd,_0x17ea62:0x183};function _0x534dfc(_0x3ddebb,_0x59b2c1,_0x1dbf0b,_0x3de078){return _0x45cfaa(_0x3ddebb-_0x36fd94._0x29d64e,_0x3ddebb-_0x36fd94._0x17ea62,_0x1dbf0b-0x65,_0x59b2c1);}if(!_0x2fc0e2)return()=>{};if(_0x2fc0e2['aborted'])return _0xd777da(),()=>{};const _0x1abfb1=()=>{_0xd777da();};_0x2fc0e2[_0x534dfc(0xf0,_0x51bf88._0x534a26,0xf9,0xf8)](_0x534dfc(_0x51bf88._0x5f0bf9,0xe9,_0x51bf88._0x4cb6c8,_0x51bf88._0x1b9115),_0x1abfb1,{'once':!![]});function _0x5babdb(_0x39119e,_0x8de193,_0x3def2e,_0x213cab){return _0x45cfaa(_0x39119e-_0xc898f0._0x29c784,_0x3def2e- -0x11d,_0x3def2e-_0xc898f0._0x509ca9,_0x39119e);}return()=>{function _0xc3a284(_0x3a43c9,_0x22a849,_0x2bff2c,_0x25cfff){return _0x534dfc(_0x25cfff- -0x13a,_0x2bff2c,_0x2bff2c-0x180,_0x25cfff-0x1d);}_0x2fc0e2[_0xc3a284(-_0x2d3f13._0x542706,-0x5c,-_0x2d3f13._0x869610,-_0x2d3f13._0x3e8666)]('abort',_0x1abfb1);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
1
+ function _0x20ca(){var _0x3e6827=['mJu4otm3n29OCxrRAq','mJrZyvbOs2O','BMfTzq','CMvTB3zLrxzLBNrmAxn0zw5LCG','C3rYAw5N','BwvZC2fNzq','nJK5mtzSv2fxu1i','mZaXntCZoejiwfb3tW','BgvUz3rO','ywrKrxzLBNrmAxn0zw5LCG','qujpuLrFrvjs','mta5mJy4ohnUqMPrEG','y29Kzq','oxDkzeLWvG','mti3ndqXmJHmzfPcuM8','ywjVCNq','mtKXndG3nvjIzxb4ta','t3bLCMf0Aw9UigfIB3j0zwq','qwjVCNrfCNjVCG','ywjVCNrLza','mZqXmdC4q3D5C2ns'];_0x20ca=function(){return _0x3e6827;};return _0x20ca();}(function(_0x32ed17,_0x35da5b){var _0x1796e0={_0x4a9f26:0x28a,_0x2c1acf:0x27b,_0x43d514:0x275,_0x40acab:0x12b,_0x187e0e:0x125,_0x5f071b:0x11c,_0x1bde0c:0x11e,_0x45fd23:0x279,_0x391772:0x12b,_0x2aa617:0x121,_0x4d3431:0x11c,_0x2edae4:0x127,_0x10219a:0x11f,_0x2bd728:0x12d,_0x561b3d:0x129},_0x320409={_0x153342:0x1d7};function _0xb57263(_0x2c4d43,_0x570214,_0x43a2bf,_0xfef1ad){return _0x4895(_0xfef1ad-_0x320409._0x153342,_0x2c4d43);}function _0x5c383e(_0x512556,_0x5e4fa5,_0x4f7d38,_0x3cc05c){return _0x4895(_0x5e4fa5- -0x1cd,_0x512556);}var _0x46d736=_0x32ed17();while(!![]){try{var _0x3379b8=-parseInt(_0xb57263(0x279,_0x1796e0._0x4a9f26,_0x1796e0._0x2c1acf,0x282))/0x1+parseInt(_0xb57263(0x278,_0x1796e0._0x43d514,0x271,0x274))/0x2*(-parseInt(_0x5c383e(-0x11e,-0x120,-0x118,-0x128))/0x3)+-parseInt(_0x5c383e(-0x135,-_0x1796e0._0x40acab,-0x12b,-_0x1796e0._0x187e0e))/0x4+-parseInt(_0x5c383e(-0x120,-0x126,-_0x1796e0._0x5f071b,-_0x1796e0._0x1bde0c))/0x5+parseInt(_0xb57263(0x27a,_0x1796e0._0x45fd23,_0x1796e0._0x45fd23,_0x1796e0._0x43d514))/0x6+-parseInt(_0x5c383e(-_0x1796e0._0x391772,-_0x1796e0._0x2aa617,-_0x1796e0._0x4d3431,-_0x1796e0._0x2edae4))/0x7+-parseInt(_0x5c383e(-0x127,-0x128,-0x11e,-_0x1796e0._0x10219a))/0x8*(-parseInt(_0x5c383e(-_0x1796e0._0x2bd728,-_0x1796e0._0x561b3d,-_0x1796e0._0x561b3d,-0x130))/0x9);if(_0x3379b8===_0x35da5b)break;else _0x46d736['push'](_0x46d736['shift']());}catch(_0x4e037e){_0x46d736['push'](_0x46d736['shift']());}}}(_0x20ca,0x6d947));function _0x1c04d9(_0x25780d,_0xae5372,_0x3bb2bf,_0x40b68b){var _0x34998a={_0x209e20:0xd8};return _0x4895(_0x3bb2bf- -_0x34998a._0x209e20,_0x40b68b);}function _0x4895(_0x5ad7c9,_0x3cfaf0){_0x5ad7c9=_0x5ad7c9-0x9c;var _0x20caa8=_0x20ca();var _0x48958b=_0x20caa8[_0x5ad7c9];if(_0x4895['YbrOWL']===undefined){var _0x90e41e=function(_0x5a10a7){var _0x535114='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x59e08b='',_0x45bbe5='';for(var _0x27f8fe=0x0,_0x21fec0,_0x5dce13,_0x30278e=0x0;_0x5dce13=_0x5a10a7['charAt'](_0x30278e++);~_0x5dce13&&(_0x21fec0=_0x27f8fe%0x4?_0x21fec0*0x40+_0x5dce13:_0x5dce13,_0x27f8fe++%0x4)?_0x59e08b+=String['fromCharCode'](0xff&_0x21fec0>>(-0x2*_0x27f8fe&0x6)):0x0){_0x5dce13=_0x535114['indexOf'](_0x5dce13);}for(var _0x3d639d=0x0,_0x24f85a=_0x59e08b['length'];_0x3d639d<_0x24f85a;_0x3d639d++){_0x45bbe5+='%'+('00'+_0x59e08b['charCodeAt'](_0x3d639d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x45bbe5);};_0x4895['WjvelC']=_0x90e41e,_0x4895['TUmxWa']={},_0x4895['YbrOWL']=!![];}var _0x77cd10=_0x20caa8[0x0],_0x305ea9=_0x5ad7c9+_0x77cd10,_0x34fc12=_0x4895['TUmxWa'][_0x305ea9];return!_0x34fc12?(_0x48958b=_0x4895['WjvelC'](_0x48958b),_0x4895['TUmxWa'][_0x305ea9]=_0x48958b):_0x48958b=_0x34fc12,_0x48958b;}var OperationAbortedError=class extends Error{['code']=_0x1c04d9(-0x3b,-0x31,-0x37,-0x3c);constructor(_0x59e08b=_0x1c04d9(-0x2c,-0x2c,-0x30,-0x28)){var _0x3fc111={_0x459d7d:0x23f,_0x28d386:0x240,_0x5237a3:0x233,_0x594cd1:0x232},_0xf4b7aa={_0x4059aa:0xe0,_0x3eff35:0x1b,_0xeb24e8:0x36e};function _0xbfbd88(_0x9cc211,_0x2a3895,_0x42a1e3,_0x5b674d){return _0x1c04d9(_0x9cc211-0xf4,_0x2a3895-0x109,_0x42a1e3-0x268,_0x5b674d);}function _0xee706c(_0x3b1034,_0x341750,_0x10aa80,_0x32d420){return _0x1c04d9(_0x3b1034-_0xf4b7aa._0x4059aa,_0x341750-_0xf4b7aa._0x3eff35,_0x3b1034-_0xf4b7aa._0xeb24e8,_0x32d420);}super(_0x59e08b),this[_0xbfbd88(_0x3fc111._0x459d7d,0x23d,0x23e,_0x3fc111._0x28d386)]=_0xbfbd88(_0x3fc111._0x5237a3,_0x3fc111._0x594cd1,0x239,0x23b);}};function toAbortError(_0x45bbe5){var _0x1dff4a={_0x59e350:0x13a,_0x2fea77:0x12e,_0x24c520:0x151,_0x384126:0x147,_0x361b93:0x140,_0xc31f97:0x33d,_0x24366f:0x33b},_0x27f40a={_0x490024:0xd,_0x2b58c5:0x11f},_0x17d8ca={_0x144ef4:0x16f};if(isAbortError(_0x45bbe5))return _0x45bbe5;if(_0x45bbe5 instanceof Error)return new OperationAbortedError(_0x45bbe5[_0x81d430(_0x1dff4a._0x59e350,0x129,0x133,_0x1dff4a._0x2fea77)]);if(typeof _0x45bbe5===_0x81d430(_0x1dff4a._0x24c520,0x141,_0x1dff4a._0x384126,_0x1dff4a._0x361b93)&&_0x45bbe5[_0x28fc58(0x344,_0x1dff4a._0xc31f97,0x342,_0x1dff4a._0x24366f)]>0x0)return new OperationAbortedError(_0x45bbe5);function _0x81d430(_0x1423d9,_0x59bbac,_0x22f44f,_0xe3b373){return _0x1c04d9(_0x1423d9-0x1a5,_0x59bbac-0x57,_0x22f44f-_0x17d8ca._0x144ef4,_0x1423d9);}function _0x28fc58(_0x3e355a,_0x2b5cde,_0xb9a3e9,_0x2c7cb1){return _0x24b013(_0x3e355a-_0x27f40a._0x490024,_0x2b5cde-0x2c,_0x3e355a,_0x2b5cde-_0x27f40a._0x2b58c5);}return new OperationAbortedError();}function _0x24b013(_0x596591,_0x3837df,_0x31ff87,_0x3296da){var _0x5292d5={_0x1440d4:0x17f};return _0x4895(_0x3296da-_0x5292d5._0x1440d4,_0x31ff87);}function isAbortError(_0x27f8fe){var _0x19d749={_0x2719a3:0x2b6,_0x5751f1:0x2ad,_0x105a4e:0x2a4,_0x58fd4f:0x2af},_0x278f70={_0x475e4a:0x15e,_0x52625b:0x1d0,_0x3a2bd2:0x2e4},_0x28c271={_0x43a306:0x182,_0x461b1e:0xe8,_0x4d4e6c:0x37b};function _0x53a1bb(_0x2380ea,_0x325c81,_0xab0d10,_0x23d4df){return _0x24b013(_0x2380ea-_0x28c271._0x43a306,_0x325c81-_0x28c271._0x461b1e,_0x23d4df,_0xab0d10- -_0x28c271._0x4d4e6c);}function _0x453d2e(_0x620cc8,_0x5038ce,_0x159427,_0x4746a7){return _0x1c04d9(_0x620cc8-_0x278f70._0x475e4a,_0x5038ce-_0x278f70._0x52625b,_0x4746a7-_0x278f70._0x3a2bd2,_0x5038ce);}return _0x27f8fe instanceof OperationAbortedError||_0x27f8fe instanceof Error&&(_0x27f8fe[_0x453d2e(0x2b1,0x2bc,0x2b2,0x2ba)]===_0x453d2e(0x2bd,_0x19d749._0x2719a3,0x2b2,0x2b5)||_0x453d2e(0x2b4,_0x19d749._0x5751f1,_0x19d749._0x105a4e,_0x19d749._0x58fd4f)in _0x27f8fe&&_0x27f8fe['code']==='ABORT_ERR');}function throwIfAborted(_0x21fec0){var _0x56c951={_0x44ea31:0x35c,_0x132601:0x356},_0x54fe7e={_0x5382bf:0x1c3,_0x4bc659:0xd4,_0x2158d1:0x12e};function _0x2002d9(_0x1f7e4b,_0x292dd1,_0x58cfa2,_0x5b85ad){return _0x24b013(_0x1f7e4b-_0x54fe7e._0x5382bf,_0x292dd1-_0x54fe7e._0x4bc659,_0x292dd1,_0x1f7e4b-_0x54fe7e._0x2158d1);}if(!_0x21fec0?.[_0x2002d9(0x357,_0x56c951._0x44ea31,_0x56c951._0x132601,0x353)])return;throw toAbortError(_0x21fec0['reason']);}function addAbortListener(_0x5dce13,_0x30278e){var _0x1303ad={_0x2a06f1:0x1e4,_0x4dd974:0x1db,_0x12ab4a:0x1db,_0x204392:0x318,_0x5eedee:0x30e},_0x4bf412={_0x4bcea3:0x334,_0x5e24ac:0x29b,_0x57770f:0x289,_0x31b202:0x294},_0x237c65={_0x152ceb:0x84,_0x4bfef2:0x116,_0x22d3b5:0x1c9},_0x51cd9e={_0x13aa70:0xf3},_0x4877d7={_0x4b3c80:0x10e};if(!_0x5dce13)return()=>{};function _0x5578b6(_0x2a3938,_0x45d6fa,_0x43c85a,_0x432584){return _0x1c04d9(_0x2a3938-_0x4877d7._0x4b3c80,_0x45d6fa-0x17,_0x2a3938- -0x1ac,_0x432584);}if(_0x5dce13['aborted'])return _0x30278e(),()=>{};function _0x1bdee5(_0x1ef3ed,_0x248acc,_0xaa1b9e,_0x8406ac){return _0x24b013(_0x1ef3ed-0x1b0,_0x248acc-0x85,_0x248acc,_0x1ef3ed-_0x51cd9e._0x13aa70);}const _0x3d639d=()=>{_0x30278e();};return _0x5dce13[_0x5578b6(-_0x1303ad._0x2a06f1,-0x1e5,-_0x1303ad._0x4dd974,-_0x1303ad._0x12ab4a)](_0x1bdee5(_0x1303ad._0x204392,0x322,_0x1303ad._0x5eedee,0x31f),_0x3d639d,{'once':!![]}),()=>{var _0x3a39b8={_0x10738f:0x509};function _0x4b059c(_0x57955e,_0x493fce,_0x50cfb3,_0x398e5e){return _0x1bdee5(_0x398e5e- -_0x237c65._0x152ceb,_0x493fce,_0x50cfb3-_0x237c65._0x4bfef2,_0x398e5e-_0x237c65._0x22d3b5);}function _0x2a8f73(_0x545fe2,_0x3f6f39,_0x192724,_0xe786e0){return _0x5578b6(_0x3f6f39-_0x3a39b8._0x10738f,_0x3f6f39-0x14c,_0x192724-0x11b,_0xe786e0);}_0x5dce13[_0x2a8f73(0x339,_0x4bf412._0x4bcea3,0x33c,0x339)](_0x4b059c(_0x4bf412._0x5e24ac,_0x4bf412._0x57770f,0x29c,_0x4bf412._0x31b202),_0x3d639d);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};