@nuvin/agent-core 0.3.0-rc.4 → 0.3.0-rc.6

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(_0x3e9e65,_0x4d706c){var _0x232313={_0x4e9892:0x4c5,_0x1bcddc:0x4ba,_0x4232ea:0x59,_0x490194:0x58,_0x5416bb:0x50,_0x469878:0x53,_0x2f9b05:0x4c8,_0x3e12fa:0x4ce,_0x4c75a0:0x4c,_0x4194e2:0x48,_0x3aa881:0x4c,_0x2a7537:0x44,_0x3eed64:0x4be,_0x19faa3:0x4c4,_0x18405e:0x4f,_0x3ef2fd:0x4b,_0x1fb509:0x47,_0x387e48:0x4bd,_0x45dbb2:0x4c3},_0x48495c={_0x46dc3d:0x335};function _0x295bed(_0x177ec5,_0x1947f8,_0x38c7c6,_0x2fdd1b){return _0x4cf7(_0x38c7c6-_0x48495c._0x46dc3d,_0x2fdd1b);}function _0x2d7fa3(_0x3e4084,_0x2fbf41,_0x56ba27,_0x51c0cf){return _0x4cf7(_0x3e4084- -0x1df,_0x51c0cf);}var _0x177447=_0x3e9e65();while(!![]){try{var _0x4875db=-parseInt(_0x295bed(0x4c7,0x4c7,0x4c5,_0x232313._0x4e9892))/0x1+-parseInt(_0x295bed(0x4c8,_0x232313._0x1bcddc,0x4c1,0x4bd))/0x2*(-parseInt(_0x2d7fa3(-0x54,-0x53,-_0x232313._0x4232ea,-_0x232313._0x490194))/0x3)+parseInt(_0x2d7fa3(-0x55,-_0x232313._0x5416bb,-0x51,-_0x232313._0x469878))/0x4*(-parseInt(_0x295bed(0x4c7,_0x232313._0x2f9b05,0x4ca,_0x232313._0x3e12fa))/0x5)+-parseInt(_0x2d7fa3(-0x4c,-_0x232313._0x4c75a0,-_0x232313._0x4194e2,-_0x232313._0x3aa881))/0x6+-parseInt(_0x2d7fa3(-_0x232313._0x4194e2,-0x43,-_0x232313._0x2a7537,-0x47))/0x7+-parseInt(_0x295bed(0x4c9,_0x232313._0x3eed64,_0x232313._0x19faa3,0x4bf))/0x8*(-parseInt(_0x2d7fa3(-0x4d,-0x4b,-_0x232313._0x18405e,-0x49))/0x9)+parseInt(_0x2d7fa3(-_0x232313._0x3ef2fd,-0x45,-_0x232313._0x1fb509,-0x4b))/0xa*(parseInt(_0x295bed(_0x232313._0x387e48,0x4c5,_0x232313._0x45dbb2,_0x232313._0x4e9892))/0xb);if(_0x4875db===_0x4d706c)break;else _0x177447['push'](_0x177447['shift']());}catch(_0x3f7a18){_0x177447['push'](_0x177447['shift']());}}}(_0x15f8,0xe6a51));function resolveAnthropicReasoningConfig(_0x18a9ce){var _0x4281a9={_0x2615cf:0x1c1,_0x3484af:0x1c7,_0x2699d8:0x11e,_0x12bb84:0x11f},_0x5c49ee={_0x16f604:0x73},_0x4e234a={_0x50b780:0x36};function _0x33fe48(_0x332533,_0x267313,_0x232985,_0x957f5c){return _0x4cf7(_0x957f5c-_0x4e234a._0x50b780,_0x332533);}function _0x380c47(_0x1fcbd2,_0x44d68d,_0x561aad,_0xee9fff){return _0x4cf7(_0x44d68d- -_0x5c49ee._0x16f604,_0x1fcbd2);}return _0x18a9ce?.[_0x33fe48(_0x4281a9._0x2615cf,0x1c5,0x1c6,_0x4281a9._0x3484af)]?structuredClone(_0x18a9ce[_0x380c47(0x120,_0x4281a9._0x2699d8,0x11c,_0x4281a9._0x12bb84)]):void 0x0;}function _0x15f8(){var _0x30037c=['ntm5odC5r3bptNzM','yw50AhjVCgLJ','mtG1odi1n0HtD0XNwq','odm4nta5mfLrsu9hwq','mtCZmhf0B2vrqq','mtvUChr4y1q','y29KzxG','ota4odCZn2vlAfDUqq','odyXndG0whHHswTV','mtvpvfHXtfO','mZy5ndy2sK1bCxrU','B3bLBMfP','mtGYntiZwKXtz2n6','ndbqwMLSAwm'];_0x15f8=function(){return _0x30037c;};return _0x15f8();}function resolveOpenAiReasoningConfig(_0x16f241){var _0x4cf636={_0x2883ef:0x15c,_0x24b634:0x162,_0x2bdbf3:0x15f,_0x336c13:0x166,_0x4e898d:0x56e,_0xfc4d73:0x572,_0x414b65:0x168},_0x10bd09={_0x30492f:0x2f8};if(_0x16f241?.[_0x46db5d(-0x162,-_0x4cf636._0x2883ef,-_0x4cf636._0x24b634,-_0x4cf636._0x2bdbf3)])return structuredClone(_0x16f241[_0x46db5d(-_0x4cf636._0x24b634,-_0x4cf636._0x336c13,-_0x4cf636._0x2bdbf3,-0x168)]);function _0x46db5d(_0x42e271,_0x293bba,_0x2f2991,_0x1c613c){return _0x4cf7(_0x42e271- -_0x10bd09._0x30492f,_0x2f2991);}function _0x53d34c(_0x323830,_0x4bc366,_0x51d00d,_0x38c75a){return _0x4cf7(_0x323830-0x3df,_0x51d00d);}return _0x16f241?.[_0x53d34c(0x56c,_0x4cf636._0x4e898d,0x572,_0x4cf636._0xfc4d73)]?structuredClone(_0x16f241[_0x46db5d(-0x16b,-0x166,-0x165,-_0x4cf636._0x414b65)]):void 0x0;}function _0x4cf7(_0x1d7b8a,_0x10d7bb){_0x1d7b8a=_0x1d7b8a-0x18a;var _0x15f883=_0x15f8();var _0x4cf727=_0x15f883[_0x1d7b8a];if(_0x4cf7['fDFYNh']===undefined){var _0x789522=function(_0x2799b2){var _0x4643d4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x18a9ce='',_0x16f241='';for(var _0x5982a8=0x0,_0x2210a1,_0x46ff22,_0x1f625b=0x0;_0x46ff22=_0x2799b2['charAt'](_0x1f625b++);~_0x46ff22&&(_0x2210a1=_0x5982a8%0x4?_0x2210a1*0x40+_0x46ff22:_0x46ff22,_0x5982a8++%0x4)?_0x18a9ce+=String['fromCharCode'](0xff&_0x2210a1>>(-0x2*_0x5982a8&0x6)):0x0){_0x46ff22=_0x4643d4['indexOf'](_0x46ff22);}for(var _0xc6c4b6=0x0,_0xeeca2e=_0x18a9ce['length'];_0xc6c4b6<_0xeeca2e;_0xc6c4b6++){_0x16f241+='%'+('00'+_0x18a9ce['charCodeAt'](_0xc6c4b6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x16f241);};_0x4cf7['IkaAQP']=_0x789522,_0x4cf7['RuYZcQ']={},_0x4cf7['fDFYNh']=!![];}var _0x5c1085=_0x15f883[0x0],_0x241b17=_0x1d7b8a+_0x5c1085,_0x1841b3=_0x4cf7['RuYZcQ'][_0x241b17];return!_0x1841b3?(_0x4cf727=_0x4cf7['IkaAQP'](_0x4cf727),_0x4cf7['RuYZcQ'][_0x241b17]=_0x4cf727):_0x4cf727=_0x1841b3,_0x4cf727;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
1
+ (function(_0x45e01a,_0x2d265b){var _0x2c58e0={_0x8538ed:0xce,_0xbe8484:0xd1,_0x30c293:0x2ae,_0xaf47a8:0xd3,_0x368535:0xd5,_0x2e3d4c:0xd2,_0x465a87:0xdd,_0x3dcf10:0xd7,_0x18a3a3:0xdc,_0x37ae4b:0xd9,_0x2f09eb:0x2b6,_0xf5113a:0x2b1,_0x1c2fae:0x2b5,_0x3425a5:0x2b6,_0x5ac6f3:0xd4,_0x11e31e:0xce,_0x249391:0x2a8,_0x2bf97f:0x2a9,_0x2c8ad7:0x2a5},_0x159654={_0x453b87:0x21b};function _0x213e97(_0xfe6274,_0x44f7ba,_0x1313cf,_0x222c72){return _0x3272(_0x222c72- -0x166,_0x1313cf);}function _0x28e7a3(_0x616366,_0x1ee2ca,_0x142751,_0x3535eb){return _0x3272(_0x1ee2ca-_0x159654._0x453b87,_0x142751);}var _0x3f8dd6=_0x45e01a();while(!![]){try{var _0x3ea165=parseInt(_0x213e97(-0xd2,-_0x2c58e0._0x8538ed,-0xd4,-_0x2c58e0._0xbe8484))/0x1+-parseInt(_0x28e7a3(_0x2c58e0._0x30c293,0x2af,0x2ae,0x2ab))/0x2+-parseInt(_0x213e97(-0xcf,-_0x2c58e0._0xaf47a8,-0xd4,-_0x2c58e0._0x368535))/0x3+-parseInt(_0x213e97(-_0x2c58e0._0x2e3d4c,-_0x2c58e0._0x465a87,-_0x2c58e0._0x3dcf10,-0xd7))/0x4+parseInt(_0x213e97(-_0x2c58e0._0x18a3a3,-_0x2c58e0._0x465a87,-0xd4,-_0x2c58e0._0x37ae4b))/0x5+parseInt(_0x28e7a3(_0x2c58e0._0x2f09eb,_0x2c58e0._0xf5113a,_0x2c58e0._0x1c2fae,_0x2c58e0._0x3425a5))/0x6+-parseInt(_0x213e97(-0xd5,-_0x2c58e0._0x5ac6f3,-_0x2c58e0._0x11e31e,-0xd3))/0x7*(-parseInt(_0x28e7a3(_0x2c58e0._0x249391,_0x2c58e0._0x2bf97f,_0x2c58e0._0x2c8ad7,0x2a5))/0x8);if(_0x3ea165===_0x2d265b)break;else _0x3f8dd6['push'](_0x3f8dd6['shift']());}catch(_0x55f8c8){_0x3f8dd6['push'](_0x3f8dd6['shift']());}}}(_0x18e5,0x353c6));function resolveAnthropicReasoningConfig(_0x42f719){var _0x1bc94e={_0x2e4479:0x1c6,_0x2353ec:0x1c1,_0x154c79:0x1c7,_0x28883b:0x1c5},_0x5313e3={_0x1cfe8a:0x329};function _0x49710a(_0x3e49c4,_0x43d217,_0x58c639,_0x51b705){return _0x3272(_0x43d217- -0x252,_0x3e49c4);}function _0x455ac9(_0x13c588,_0x581f9c,_0x681915,_0xd11b51){return _0x3272(_0x581f9c-_0x5313e3._0x1cfe8a,_0x681915);}return _0x42f719?.[_0x49710a(-0x1c4,-_0x1bc94e._0x2e4479,-0x1c9,-_0x1bc94e._0x2353ec)]?structuredClone(_0x42f719[_0x49710a(-0x1c0,-_0x1bc94e._0x2e4479,-_0x1bc94e._0x154c79,-_0x1bc94e._0x28883b)]):void 0x0;}function _0x3272(_0x2451b8,_0x48f2b2){_0x2451b8=_0x2451b8-0x8c;var _0x18e5ef=_0x18e5();var _0x327238=_0x18e5ef[_0x2451b8];if(_0x3272['nBrteQ']===undefined){var _0x5c6b2c=function(_0x508b64){var _0x1d91ba='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x42f719='',_0x53750b='';for(var _0xc848bc=0x0,_0x5dc62b,_0x17d103,_0x22c3ce=0x0;_0x17d103=_0x508b64['charAt'](_0x22c3ce++);~_0x17d103&&(_0x5dc62b=_0xc848bc%0x4?_0x5dc62b*0x40+_0x17d103:_0x17d103,_0xc848bc++%0x4)?_0x42f719+=String['fromCharCode'](0xff&_0x5dc62b>>(-0x2*_0xc848bc&0x6)):0x0){_0x17d103=_0x1d91ba['indexOf'](_0x17d103);}for(var _0x1ec217=0x0,_0x52ac7b=_0x42f719['length'];_0x1ec217<_0x52ac7b;_0x1ec217++){_0x53750b+='%'+('00'+_0x42f719['charCodeAt'](_0x1ec217)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x53750b);};_0x3272['OqMgUJ']=_0x5c6b2c,_0x3272['UthmQT']={},_0x3272['nBrteQ']=!![];}var _0x53f937=_0x18e5ef[0x0],_0x39ca99=_0x2451b8+_0x53f937,_0x5813e1=_0x3272['UthmQT'][_0x39ca99];return!_0x5813e1?(_0x327238=_0x3272['OqMgUJ'](_0x327238),_0x3272['UthmQT'][_0x39ca99]=_0x327238):_0x327238=_0x5813e1,_0x327238;}function _0x18e5(){var _0x2eeeaa=['nJe5ndmYCuTuDevQ','y29KzxG','mZu0nJi3thnqr29b','B3bLBMfP','mtr5txjeA04','odq1mtyWBMLIBwzu','ndiXntm1shDVrLPU','ndC5nZCYrhf6Bxnq','yw50AhjVCgLJ','mtyWmdaXmeP3zNrZrG','mZy4oda4twzICM9q'];_0x18e5=function(){return _0x2eeeaa;};return _0x18e5();}function resolveOpenAiReasoningConfig(_0x53750b){var _0x11d03a={_0x5e260a:0x1c2,_0x49edea:0x198,_0x1a350a:0x1c5,_0x532396:0x1c0,_0xc32d5c:0x1bf},_0x47e372={_0x5b37bd:0x22a};function _0x176163(_0x237a27,_0x1867d7,_0x18fbde,_0x13a856){return _0x3272(_0x13a856- -_0x47e372._0x5b37bd,_0x18fbde);}function _0x176776(_0x1870ef,_0x50eb40,_0x1fd076,_0x468f64){return _0x3272(_0x1fd076- -0x252,_0x468f64);}if(_0x53750b?.['codex'])return structuredClone(_0x53750b[_0x176776(-0x1c3,-0x1bd,-_0x11d03a._0x5e260a,-0x1bd)]);return _0x53750b?.[_0x176163(-0x19d,-0x196,-0x19d,-_0x11d03a._0x49edea)]?structuredClone(_0x53750b[_0x176776(-0x1c3,-_0x11d03a._0x1a350a,-_0x11d03a._0x532396,-_0x11d03a._0xc32d5c)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
@@ -1 +1 @@
1
- (function(_0x5a683c,_0x4d0f03){const _0x2c4e37={_0x45c829:0x46f,_0x355085:0x488,_0x27ad6c:0x2de,_0x4485f4:0x2d5,_0x2cbb8c:0x2ea,_0x55fe8a:0x2c8,_0x2450f1:0x2da,_0x2eb529:0x2f3,_0x183d61:0x2ec,_0x188b27:0x302,_0x57e01e:0x46a,_0x9d26e7:0x470,_0x471b05:0x2f0,_0x24c1ce:0x2e5,_0x12708e:0x458,_0x4c9133:0x440,_0x1c20e0:0x477},_0x3d014d={_0x34613b:0x16f};function _0xeea903(_0x26c11e,_0x1f2bdc,_0x1219dc,_0x53f616){return _0x2bd5(_0x53f616-_0x3d014d._0x34613b,_0x1219dc);}function _0x239942(_0xe8c723,_0x229659,_0x10e19c,_0x5a18a1){return _0x2bd5(_0xe8c723-0x2e0,_0x5a18a1);}const _0x2a1c96=_0x5a683c();while(!![]){try{const _0x3678d9=parseInt(_0x239942(_0x2c4e37._0x45c829,0x455,_0x2c4e37._0x355085,0x464))/0x1+-parseInt(_0xeea903(0x2d5,_0x2c4e37._0x27ad6c,_0x2c4e37._0x4485f4,_0x2c4e37._0x2cbb8c))/0x2+parseInt(_0xeea903(_0x2c4e37._0x55fe8a,0x2e0,0x2db,0x2cf))/0x3+-parseInt(_0xeea903(_0x2c4e37._0x2450f1,0x2d7,_0x2c4e37._0x2eb529,0x2e2))/0x4*(parseInt(_0xeea903(_0x2c4e37._0x183d61,0x2e8,0x30a,_0x2c4e37._0x188b27))/0x5)+parseInt(_0x239942(_0x2c4e37._0x57e01e,_0x2c4e37._0x9d26e7,0x469,0x476))/0x6+-parseInt(_0xeea903(_0x2c4e37._0x471b05,0x2ec,0x2c8,_0x2c4e37._0x24c1ce))/0x7+parseInt(_0x239942(0x469,0x482,0x474,0x463))/0x8*(-parseInt(_0x239942(_0x2c4e37._0x12708e,_0x2c4e37._0x4c9133,0x45b,_0x2c4e37._0x1c20e0))/0x9);if(_0x3678d9===_0x4d0f03)break;else _0x2a1c96['push'](_0x2a1c96['shift']());}catch(_0x4e611e){_0x2a1c96['push'](_0x2a1c96['shift']());}}}(_0x13e6,0xcdba7));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x52de99){const _0xf7be4d={_0x145ef6:0x566,_0xad603c:0x547,_0x13ee31:0x52b,_0x2f7232:0x240,_0x36f4e5:0x592},_0xd6819a={_0x51c72a:0x3de};function _0x12b63c(_0x57561c,_0xe75eef,_0x4aeb19,_0x4420cf){return _0x2bd5(_0x57561c- -_0xd6819a._0x51c72a,_0xe75eef);}function _0x4853e4(_0x1cf726,_0x31b444,_0x5ad486,_0x39779d){return _0x2bd5(_0x5ad486-0x3e6,_0x39779d);}return normalizeContent(_0x52de99)[_0x4853e4(0x538,_0xf7be4d._0x145ef6,_0xf7be4d._0xad603c,_0xf7be4d._0x13ee31)](_0x33b021=>_0x33b021['type']==='text')[_0x12b63c(-0x24d,-0x23c,-0x265,-_0xf7be4d._0x2f7232)](_0x131054=>_0x131054[_0x12b63c(-0x25f,-0x242,-0x27a,-0x24d)])[_0x4853e4(0x587,_0xf7be4d._0x36f4e5,0x573,0x588)]('\x0a\x0a');}function pushUserContentMessage(_0x308c89,_0x3d6c3d,_0x41ab96){const _0x21f98b={_0x395a98:0x185,_0x42a05a:0x1b2,_0x34d893:0x1a4,_0x14e5f6:0x1b9,_0x5d7341:0x1c8,_0x5b3ff4:0x1d6,_0x3d3ec0:0x1d5,_0x1ce1f0:0x1f2},_0x3a1206={_0x3022e9:0x30e},_0x1c601c={_0x3f1b08:0x33c};if(_0x41ab96[_0x4061c0(-_0x21f98b._0x395a98,-_0x21f98b._0x42a05a,-_0x21f98b._0x34d893,-_0x21f98b._0x14e5f6)]===0x0)return;function _0x36ecf3(_0x3da30b,_0x3108e4,_0x356c9b,_0x28cf19){return _0x2bd5(_0x356c9b- -_0x1c601c._0x3f1b08,_0x3108e4);}function _0x4061c0(_0x17510c,_0x5a4964,_0x1ff6bd,_0x2733d7){return _0x2bd5(_0x1ff6bd- -_0x3a1206._0x3022e9,_0x5a4964);}_0x308c89['push']({'type':_0x36ecf3(-_0x21f98b._0x5d7341,-_0x21f98b._0x5b3ff4,-_0x21f98b._0x3d3ec0,-_0x21f98b._0x1ce1f0),'role':_0x3d6c3d,'content':_0x41ab96});}function hasSerializableToolUse(_0x20b2d8){const _0xc3cca3={_0x59de62:0x199,_0x583832:0x17c,_0x30cb75:0x17b,_0x5a474c:0x161,_0x271f6c:0x47e,_0x3ba2f4:0x475},_0x317976={_0x2dbbfc:0x5},_0x5954c8={_0x5d1f44:0x2fb};function _0x355990(_0x4ed03c,_0x5748aa,_0x183f2,_0x4a2cd5){return _0x2bd5(_0x5748aa-_0x5954c8._0x5d1f44,_0x183f2);}function _0x4ba202(_0x47148a,_0x5400bd,_0x48af59,_0xfc78ff){return _0x2bd5(_0x5400bd-_0x317976._0x2dbbfc,_0x48af59);}return _0x20b2d8['id'][_0x4ba202(_0xc3cca3._0x59de62,0x18b,_0xc3cca3._0x583832,0x181)]()[_0x4ba202(0x17b,0x16f,0x165,0x16c)]>0x0&&_0x20b2d8[_0x4ba202(_0xc3cca3._0x30cb75,0x177,0x15d,_0xc3cca3._0x5a474c)]['trim']()[_0x355990(_0xc3cca3._0x271f6c,0x465,0x458,_0xc3cca3._0x3ba2f4)]>0x0;}function hasSerializableToolResult(_0x39b297){const _0x50a473={_0x3518a3:0x444,_0x40baad:0x428,_0x142168:0x7e};function _0xc833c6(_0x44619d,_0x35de1d,_0x5c0a14,_0x242f36){return _0x2bd5(_0x242f36- -0x207,_0x35de1d);}function _0xfc05fe(_0x27a5e2,_0x199df4,_0x54bb0f,_0x50d80f){return _0x2bd5(_0x54bb0f-0x2b7,_0x199df4);}return _0x39b297[_0xfc05fe(_0x50a473._0x3518a3,_0x50a473._0x40baad,0x435,0x448)][_0xc833c6(-_0x50a473._0x142168,-0x95,-0x73,-0x81)]()['length']>0x0;}function isResponseInputObject(_0x2ad3e4){const _0x4d2b04={_0x477392:0x37d,_0x127803:0x3b1,_0x12b04b:0x3b2,_0x2f3836:0x52f,_0x42c2a9:0x519,_0x177a2d:0x517};function _0x41d952(_0x3a5d4c,_0x237c70,_0x472733,_0x5bc03d){return _0x2bd5(_0x472733-0x20e,_0x237c70);}function _0x2d4da6(_0x4a5862,_0x5c92cf,_0x1c199c,_0x5bbc17){return _0x2bd5(_0x1c199c-0x3a1,_0x5bbc17);}if(typeof _0x2ad3e4!==_0x41d952(0x37d,_0x4d2b04._0x477392,0x390,0x375)||_0x2ad3e4===null||Array[_0x41d952(_0x4d2b04._0x127803,0x3c4,0x3a7,_0x4d2b04._0x12b04b)](_0x2ad3e4))return![];const _0x2e5c3d=_0x2ad3e4;return typeof _0x2e5c3d[_0x2d4da6(_0x4d2b04._0x2f3836,0x518,0x531,_0x4d2b04._0x42c2a9)]===_0x2d4da6(_0x4d2b04._0x177a2d,0x507,0x516,0x515);}function isImageToolResultBlock(_0x2b9558){const _0x4ada54={_0x3115a4:0x14f,_0x2971f3:0x154,_0x4db713:0x16c,_0x5e325f:0x35c,_0x1b81b4:0x342,_0xe2414f:0x14a,_0xd90f79:0x15e,_0x27eaa1:0x170,_0x34f242:0x155,_0x194280:0x34e,_0x37b1d8:0x34d,_0x1968b8:0x339,_0x12d3c6:0x188,_0x74cc26:0x18c,_0x3120a2:0x174,_0x7f41bf:0x179,_0x39266a:0x180,_0x38f74d:0x14c,_0x33ef50:0x163,_0x3d8d32:0x175,_0x52b304:0x338,_0x412685:0x327,_0x42db66:0x358},_0xf955c9={_0x200210:0x2ee};function _0x3fa9d0(_0x4fdff6,_0x2d36d0,_0x4ea5f7,_0x32ba5f){return _0x2bd5(_0x32ba5f- -_0xf955c9._0x200210,_0x4fdff6);}function _0x352842(_0x45e1bf,_0x4dddb7,_0xeda5c1,_0x2099a2){return _0x2bd5(_0x45e1bf-0x1c3,_0xeda5c1);}if(typeof _0x2b9558!==_0x3fa9d0(-0x16f,-_0x4ada54._0x3115a4,-_0x4ada54._0x2971f3,-_0x4ada54._0x4db713)||_0x2b9558===null||Array[_0x352842(_0x4ada54._0x5e325f,0x354,0x366,_0x4ada54._0x1b81b4)](_0x2b9558))return![];const _0xacb9d6=_0x2b9558;return _0xacb9d6[_0x3fa9d0(-0x161,-_0x4ada54._0xe2414f,-0x167,-_0x4ada54._0xd90f79)]===_0x3fa9d0(-_0x4ada54._0x27eaa1,-0x17f,-_0x4ada54._0x34f242,-0x172)&&_0xacb9d6['source']?.[_0x3fa9d0(-0x140,-0x166,-0x143,-0x15e)]==='base64'&&typeof _0xacb9d6[_0x352842(_0x4ada54._0x194280,0x335,_0x4ada54._0x37b1d8,_0x4ada54._0x1968b8)]['media_type']===_0x3fa9d0(-_0x4ada54._0x12d3c6,-_0x4ada54._0x74cc26,-_0x4ada54._0x3120a2,-_0x4ada54._0x7f41bf)&&typeof _0xacb9d6[_0x3fa9d0(-_0x4ada54._0x39266a,-_0x4ada54._0x38f74d,-0x159,-_0x4ada54._0x33ef50)][_0x3fa9d0(-_0x4ada54._0x3d8d32,-0x17c,-0x167,-0x166)]===_0x352842(_0x4ada54._0x52b304,_0x4ada54._0x412685,_0x4ada54._0x42db66,0x340);}function _0x2bd5(_0x3fc447,_0xd8f327){_0x3fc447=_0x3fc447-0x15f;const _0x13e617=_0x13e6();let _0x2bd587=_0x13e617[_0x3fc447];if(_0x2bd5['Lbvyuu']===undefined){var _0x62b754=function(_0x523f86){const _0x14c5e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x52de99='',_0x33b021='';for(let _0x131054=0x0,_0x308c89,_0x3d6c3d,_0x41ab96=0x0;_0x3d6c3d=_0x523f86['charAt'](_0x41ab96++);~_0x3d6c3d&&(_0x308c89=_0x131054%0x4?_0x308c89*0x40+_0x3d6c3d:_0x3d6c3d,_0x131054++%0x4)?_0x52de99+=String['fromCharCode'](0xff&_0x308c89>>(-0x2*_0x131054&0x6)):0x0){_0x3d6c3d=_0x14c5e4['indexOf'](_0x3d6c3d);}for(let _0x20b2d8=0x0,_0x39b297=_0x52de99['length'];_0x20b2d8<_0x39b297;_0x20b2d8++){_0x33b021+='%'+('00'+_0x52de99['charCodeAt'](_0x20b2d8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x33b021);};_0x2bd5['EQyRHV']=_0x62b754,_0x2bd5['QiWJno']={},_0x2bd5['Lbvyuu']=!![];}const _0x191c42=_0x13e617[0x0],_0x1258a4=_0x3fc447+_0x191c42,_0x3fe1cf=_0x2bd5['QiWJno'][_0x1258a4];return!_0x3fe1cf?(_0x2bd587=_0x2bd5['EQyRHV'](_0x2bd587),_0x2bd5['QiWJno'][_0x1258a4]=_0x2bd587):_0x2bd587=_0x3fe1cf,_0x2bd587;}function getToolResultText(_0x51648d){const _0x5029df={_0x1db1d7:0x4a4,_0x37e419:0x483,_0x511512:0x4a1,_0x5ee2b5:0x489,_0x193842:0x480,_0x2b7940:0x4a8,_0x55939b:0x494,_0x22cdab:0x489,_0x1337fc:0x48c,_0x434b94:0x110,_0x5addde:0x114},_0x3070fd={_0x1400b2:0x322},_0x2dc2fe={_0x4f1a0c:0x221,_0x32a0f8:0x206,_0x2b4822:0x1f8,_0x54a762:0x210,_0x468695:0x232};function _0x2dcc4d(_0x22b74b,_0x49b7c4,_0x265ab3,_0x34933f){return _0x2bd5(_0x34933f- -0x285,_0x265ab3);}if(typeof _0x51648d===_0x3fe1c8(_0x5029df._0x1db1d7,0x497,_0x5029df._0x37e419,0x497))return _0x51648d;const _0x2d802a=_0x51648d[_0x3fe1c8(_0x5029df._0x511512,_0x5029df._0x37e419,_0x5029df._0x5ee2b5,_0x5029df._0x193842)](_0x21ec44=>{const _0x878f0a={_0x1a0a5d:0x189},_0x54986e={_0x4eb4c0:0x15e,_0x159f2e:0x319};function _0x5decdd(_0x4bf544,_0x4ec955,_0x1f5248,_0x11f9d5){return _0x2dcc4d(_0x4bf544-_0x54986e._0x4eb4c0,_0x4ec955-0x28,_0x4bf544,_0x4ec955-_0x54986e._0x159f2e);}function _0x39bc8c(_0x3684fa,_0xcf5593,_0x2ff2cf,_0x403864){return _0x2dcc4d(_0x3684fa-_0x878f0a._0x1a0a5d,_0xcf5593-0x33,_0x3684fa,_0x403864-0x40);}return typeof _0x21ec44===_0x5decdd(_0x2dc2fe._0x4f1a0c,0x216,_0x2dc2fe._0x32a0f8,_0x2dc2fe._0x2b4822)&&_0x21ec44!==null&&_0x21ec44['type']===_0x5decdd(_0x2dc2fe._0x54a762,0x213,0x224,_0x2dc2fe._0x468695);})['map'](_0x4f4664=>_0x4f4664[_0x2dcc4d(-0x10c,-0xf1,-0xe8,-0x106)])['join']('\x0a\x0a')[_0x3fe1c8(0x4ae,_0x5029df._0x2b7940,_0x5029df._0x55939b,_0x5029df._0x22cdab)]();function _0x3fe1c8(_0x40de1c,_0x472064,_0x6dcd04,_0x5c43a2){return _0x2bd5(_0x472064-_0x3070fd._0x1400b2,_0x40de1c);}return _0x2d802a[_0x3fe1c8(0x472,_0x5029df._0x1337fc,0x496,0x46f)]>0x0?_0x2d802a:_0x2dcc4d(-0xf9,-_0x5029df._0x434b94,-0x12f,-_0x5029df._0x5addde);}function getToolResultImages(_0x370adc){const _0x56c3a1={_0x2bbd80:0x55,_0x146a9d:0x63,_0x137be5:0x6f};function _0xf174d5(_0x1a7c1d,_0x54913a,_0x41f56c,_0x4d35e5){return _0x2bd5(_0x54913a- -0x144,_0x4d35e5);}return Array[_0xf174d5(0x3c,_0x56c3a1._0x2bbd80,_0x56c3a1._0x146a9d,_0x56c3a1._0x137be5)](_0x370adc)?_0x370adc['filter'](isImageToolResultBlock):[];}function _0x13e6(){const _0x587951=['C3rYAwn0','zwzMB3j0','B2jQzwn0','CMvHC29UAw5N','Aw5WDxrFAw1Hz2u','C2nOzw1H','DhjPBq','Aw5WDxq','zgf0yq','mtyXotm2EhDxteH3','nti4mdKXmK55DLfRBq','C291CMnL','o2jHC2u2ncW','AM9PBG','zgf0ytO','otqZmdyZr0fqwNvj','DhLWzq','BwfW','yxnZAxn0yw50','nJu1otq1AefqzMn3','BwvZC2fNzxm','zNvUy3rPB25Fy2fSBf9VDxrWDxq','DxnLCI12AxnPyMXL','Aw5WDxrFDgv4Da','Dg9VBf91C2u','AxnbCNjHEq','Dg9VBf9Yzxn1Bhq','B3v0Chv0x3rLEhq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','Aw5WDxrFC2nOzw1H','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','y29KzxG','mZa3nZG2mMDktLrLuG','zMLSDgvY','BwvKAwfFDhLWzq','C3LZDgvT','C3vTBwfYEq','A2v5CW','B3v0Chv0rM9YBwf0','BwvZC2fNzq','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','DxnLCG','BgvUz3rO','ChvZAa','yxv0BW','C3rYDwn0DxjLzf9VDxrWDxq','y29UDgvUDa','Bwf4vg9Rzw5Z','zNvUy3rPB24','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','BMfTzq','ofD2DwXHrG','Bw9KzwW','C3rYAw5N','ody1ota4nePjteLbEa','C3rHDhvZ','owPduMjiqW','CM9Szq','C3bSAwnL','otCZnZq4uxfvvhbh','Aw1Hz2u','zgvZy3jPChrPB24','Dg9VBf91C2vFAwq','Dgv4Da'];_0x13e6=function(){return _0x587951;};return _0x13e6();}function resolveReasoningVisibility(_0x2e35a7){const _0x251ef6={_0x44c86b:0x4e6,_0x2e1c61:0x502};function _0x33d371(_0x25fcbb,_0x13dd30,_0x1aa2be,_0x2c6e6f){return _0x2bd5(_0x1aa2be-0x37f,_0x13dd30);}return _0x2e35a7[_0x33d371(0x4f6,_0x251ef6._0x44c86b,_0x251ef6._0x2e1c61,_0x251ef6._0x44c86b)]?.['visibility']??'user-visible';}function createOpenAiResponsesReasoning(_0x9faa6e){const _0x30f318={_0xf67bd2:0xed,_0x58fc9c:0xdf,_0x39c25e:0xfc,_0x1a76bb:0x1f1,_0x36663f:0x1d9,_0x53ca50:0x1d5,_0x314e41:0x1ec,_0x4c72fc:0xdd,_0x20be8f:0xcf,_0x1c7236:0x1ba,_0x1be94a:0xfa,_0x87ba9a:0x105,_0x1e1cd6:0xfe,_0x2a7817:0xec,_0x4a10f0:0xe2,_0x233930:0xf7,_0x550f69:0x1b4,_0x333b25:0x19c,_0x3029c1:0x1e5,_0x411443:0x1e7},_0x48c007={_0x178bb1:0x350},_0x1beda6=resolveOpenAiReasoningConfig(_0x9faa6e[_0x24871d(0xfc,_0x30f318._0xf67bd2,0xf4,_0x30f318._0x58fc9c)]);if(!_0x1beda6)return{};const _0x419792={};function _0x185621(_0x49aca7,_0x4ee227,_0x17c94d,_0x2bd540){return _0x2bd5(_0x49aca7- -_0x48c007._0x178bb1,_0x17c94d);}function _0x24871d(_0x1f2765,_0x1a1451,_0x459f31,_0x2d837a){return _0x2bd5(_0x1f2765- -0x87,_0x1a1451);}const _0x1cd888=_0x9faa6e[_0x24871d(_0x30f318._0x39c25e,0xf5,0xf9,0x118)]?.[_0x185621(-_0x30f318._0x1a76bb,-_0x30f318._0x36663f,-_0x30f318._0x53ca50,-0x204)]!==void 0x0,_0x5b518a=(!_0x1cd888&&_0x185621(-_0x30f318._0x314e41,-0x1da,-0x1e9,-0x1de)in _0x1beda6?_0x1beda6[_0x24871d(_0x30f318._0x4c72fc,0xc5,_0x30f318._0x20be8f,0xca)]:void 0x0)??(resolveReasoningVisibility(_0x9faa6e)===_0x185621(-_0x30f318._0x1c7236,-0x1be,-0x1a6,-0x1c1)?_0x185621(-0x1e4,-0x1c5,-0x1e5,-0x1e4):void 0x0);return _0x1beda6['effort']&&(_0x419792[_0x24871d(_0x30f318._0x1be94a,_0x30f318._0x87ba9a,0x102,_0x30f318._0x1e1cd6)]=_0x1beda6[_0x24871d(0xfa,_0x30f318._0x2a7817,_0x30f318._0x4a10f0,_0x30f318._0x233930)]),_0x5b518a&&(_0x419792['summary']=_0x5b518a),{...!_0x1cd888&&'includeEncryptedContent'in _0x1beda6&&_0x1beda6[_0x24871d(0xe1,0xc5,0xce,0xdb)]===![]?{}:{'include':[_0x185621(-_0x30f318._0x550f69,-_0x30f318._0x333b25,-0x1c3,-0x19a)]},...Object[_0x185621(-0x1eb,-_0x30f318._0x3029c1,-_0x30f318._0x411443,-0x20b)](_0x419792)['length']>0x0?{'reasoning':_0x419792}:{}};}function pushAssistantProviderState(_0x5bf432,_0x3f9d3a,_0xd0cf24){const _0x25dc66={_0x9ceb75:0x495,_0x2679a2:0x486,_0x207ebe:0x483,_0x3cd847:0x4a1,_0xde21ce:0x48f,_0x3d9343:0x458,_0x5cf877:0x45b,_0x2864ce:0x462,_0x42edb7:0x1f9,_0x371192:0x234,_0x3fd3b1:0x21e,_0x1b369a:0x21f,_0x3f34eb:0x22c,_0x14843f:0x49d,_0x2e381c:0x47d,_0x532cbf:0x4a2,_0x1d1eeb:0x45c,_0x2faeca:0x456,_0x24e6ee:0x455,_0x3daee0:0x45e,_0x40ae67:0x45c};function _0x2a2178(_0x4929c9,_0x2a3d6b,_0x322944,_0x455fb2){return _0x2bd5(_0x2a3d6b-0x8e,_0x455fb2);}function _0x19a6cf(_0x53aa55,_0x14f9db,_0xa5d7a8,_0x51cf99){return _0x2bd5(_0xa5d7a8-0x2f1,_0x53aa55);}if(_0x3f9d3a['role']!==_0x19a6cf(_0x25dc66._0x9ceb75,_0x25dc66._0x2679a2,_0x25dc66._0x207ebe,0x49c))return![];if(!isProviderStateCompatible(_0x3f9d3a,_0xd0cf24))return![];const _0x54b009=_0x3f9d3a['providerState']?.[_0x19a6cf(0x489,_0x25dc66._0x3cd847,_0x25dc66._0xde21ce,0x4a8)]??[];if(_0x54b009[_0x19a6cf(_0x25dc66._0x3d9343,0x46d,_0x25dc66._0x5cf877,_0x25dc66._0x2864ce)]===0x0)return![];for(const _0x538b52 of _0x54b009){if(isResponseInputObject(_0x538b52)){const _0x292d41=structuredClone(_0x538b52);delete _0x292d41[_0x2a2178(_0x25dc66._0x42edb7,0x205,0x225,0x1fd)],_0x292d41[_0x2a2178(_0x25dc66._0x371192,_0x25dc66._0x3fd3b1,_0x25dc66._0x1b369a,_0x25dc66._0x3f34eb)]==='reasoning'&&!Array[_0x19a6cf(_0x25dc66._0x14843f,_0x25dc66._0x2e381c,0x48a,_0x25dc66._0x532cbf)](_0x292d41['summary'])&&(_0x292d41[_0x19a6cf(_0x25dc66._0x1d1eeb,_0x25dc66._0x2faeca,_0x25dc66._0x24e6ee,_0x25dc66._0x3daee0)]=[]),_0x5bf432[_0x19a6cf(0x477,0x470,_0x25dc66._0x40ae67,0x46a)](_0x292d41);}}return!![];}function toOpenAiResponsesRequest(_0x3b0123){const _0x429c41={_0x20d102:0x216,_0x566d17:0x237,_0xaba7fa:0x168,_0xb3428a:0x144,_0x2a2c62:0x230,_0x44b63a:0x24b,_0x36cd83:0x213,_0x11e98c:0x252,_0x99bc4e:0x255,_0x55f27d:0x262,_0x327477:0x233,_0x46dd19:0x225,_0x364dc7:0x228,_0x3f066c:0x219,_0x5ee70c:0x22f,_0x49b6d5:0x241,_0x2f7200:0x12f,_0x7f5c99:0x247,_0x456b2f:0x239,_0x18d8e9:0x21a,_0x1dae99:0x23f,_0x1f4d10:0x164,_0x532118:0x154,_0x5aa13e:0x14c,_0x3f2df6:0x23c,_0x442b20:0x149,_0x1f3494:0x146,_0x1372d4:0x17f,_0x426bf5:0x165,_0x26f4f9:0x234,_0x4811e6:0x221,_0x1ce955:0x147,_0x2e4727:0x14d,_0x329c03:0x12e,_0xcb0ae8:0x14c,_0x2365a4:0x153,_0x1d65f8:0x136,_0x4b9f72:0x118,_0xd54156:0x126,_0x4dc0a5:0x23c,_0x3de777:0x258,_0xec6438:0x15b,_0x2b2514:0x146,_0x1f2340:0x150,_0x141879:0x13f,_0x3a0254:0x24e,_0x4778db:0x236,_0x4b4d94:0x226,_0x179f0d:0x212,_0x4afa10:0x24e,_0x2fb162:0x248,_0x1319a5:0x253,_0x29c11f:0x24f,_0x34f3bf:0x233,_0xfef5af:0x244,_0x3fd653:0x172,_0x4aae3b:0x139,_0x427879:0x23d,_0x1aa36f:0x245,_0x197ac4:0x269,_0x8036a2:0x245,_0x54b310:0x23b,_0x39b228:0x260,_0x3f5dd0:0x11d,_0x16fc99:0x13e,_0x2f249a:0x23b,_0x45231f:0x21d,_0x3daa1d:0x14b,_0x1c5b90:0x152,_0x1eb93d:0x180,_0x45fd05:0x160,_0x3c0d5b:0x129,_0x410abb:0x135,_0x30d610:0x11a,_0xde7b3d:0x263,_0x1409a1:0x154,_0x55aa7f:0x16d,_0x37cddf:0x159,_0x572494:0x15f,_0x2e41f2:0x153,_0x14a15c:0x17c,_0x5a7f25:0x247,_0x3d3957:0x160,_0x2862df:0x15b},_0x3876c7={_0x2e11bd:0x24f,_0x1bc638:0x24f,_0xaee1c9:0x25d,_0x579075:0x260,_0x1aa24b:0x230,_0x11796e:0x250,_0x181e78:0x231,_0x162c12:0x28e,_0x161cac:0x29a},_0x57e276={_0x212045:0xd};function _0x30969a(_0x13c1e9,_0x30155a,_0x364739,_0x46414f){return _0x2bd5(_0x30155a- -0x3c0,_0x364739);}const _0x27d35d=[];for(const _0x19a3da of _0x3b0123[_0x30969a(-0x22c,-0x22c,-_0x429c41._0x20d102,-_0x429c41._0x566d17)]){if(pushAssistantProviderState(_0x27d35d,_0x19a3da,_0x3b0123))continue;const _0x1f1bff=[];for(const _0x22a1bb of normalizeContent(_0x19a3da[_0x59f8ba(-0x16a,-0x158,-_0x429c41._0xaba7fa,-_0x429c41._0xb3428a)])){if(_0x22a1bb[_0x30969a(-0x240,-_0x429c41._0x2a2c62,-_0x429c41._0x44b63a,-_0x429c41._0x36cd83)]===_0x30969a(-_0x429c41._0x11e98c,-0x241,-0x237,-0x237)){_0x1f1bff[_0x30969a(-0x24e,-_0x429c41._0x99bc4e,-0x246,-_0x429c41._0x55f27d)](_0x19a3da[_0x30969a(-0x258,-0x247,-_0x429c41._0x327477,-0x249)]==='assistant'?{'type':_0x30969a(-0x205,-_0x429c41._0x46dd19,-_0x429c41._0x364dc7,-_0x429c41._0x3f066c),'text':_0x22a1bb[_0x30969a(-_0x429c41._0x5ee70c,-_0x429c41._0x49b6d5,-0x244,-0x22f)]}:{'type':_0x59f8ba(-0x111,-_0x429c41._0x2f7200,-0x14e,-0x12d),'text':_0x22a1bb[_0x30969a(-0x227,-_0x429c41._0x49b6d5,-_0x429c41._0x7f5c99,-0x245)]});continue;}if(_0x22a1bb[_0x30969a(-0x24d,-0x230,-_0x429c41._0x456b2f,-_0x429c41._0x18d8e9)]===_0x30969a(-_0x429c41._0x1dae99,-0x244,-0x22f,-0x250)){_0x1f1bff[_0x59f8ba(-_0x429c41._0x1f4d10,-0x15b,-_0x429c41._0x532118,-_0x429c41._0x5aa13e)]({'type':_0x30969a(-0x23b,-_0x429c41._0x3f2df6,-0x24a,-0x24d),'image_url':_0x30969a(-0x21d,-0x232,-0x250,-_0x429c41._0x18d8e9)+_0x22a1bb[_0x59f8ba(-0x123,-0x13b,-0x148,-_0x429c41._0x442b20)][_0x59f8ba(-_0x429c41._0x1f3494,-0x164,-_0x429c41._0x1372d4,-_0x429c41._0x426bf5)]+_0x30969a(-_0x429c41._0x49b6d5,-_0x429c41._0x26f4f9,-_0x429c41._0x4811e6,-_0x429c41._0x26f4f9)+_0x22a1bb[_0x59f8ba(-0x14c,-0x13b,-_0x429c41._0x1ce955,-_0x429c41._0x2e4727)]['data']});continue;}pushUserContentMessage(_0x27d35d,_0x19a3da['role'],_0x1f1bff[_0x59f8ba(-_0x429c41._0x329c03,-_0x429c41._0xcb0ae8,-_0x429c41._0x2365a4,-0x149)](0x0));if(_0x22a1bb[_0x59f8ba(-_0x429c41._0x2f7200,-_0x429c41._0x1d65f8,-0x126,-0x13e)]===_0x59f8ba(-_0x429c41._0x4b9f72,-_0x429c41._0x329c03,-0x12d,-_0x429c41._0xd54156)){if(!hasSerializableToolUse(_0x22a1bb))continue;_0x27d35d[_0x30969a(-_0x429c41._0x4dc0a5,-_0x429c41._0x99bc4e,-_0x429c41._0x3de777,-0x246)]({'type':'function_call','call_id':_0x22a1bb['id'],'name':_0x22a1bb[_0x59f8ba(-_0x429c41._0xec6438,-0x154,-_0x429c41._0x2b2514,-_0x429c41._0x1f2340)],'arguments':JSON['stringify'](_0x22a1bb[_0x59f8ba(-0x122,-_0x429c41._0x141879,-_0x429c41._0x442b20,-0x158)]??{})});continue;}if(_0x22a1bb[_0x30969a(-0x21f,-0x230,-_0x429c41._0x3a0254,-_0x429c41._0x4778db)]===_0x30969a(-0x22e,-_0x429c41._0x4b4d94,-0x224,-_0x429c41._0x179f0d)){if(!hasSerializableToolResult(_0x22a1bb))continue;const _0x1800c9=getToolResultText(_0x22a1bb[_0x30969a(-0x232,-0x252,-_0x429c41._0x4afa10,-0x248)]);_0x27d35d[_0x30969a(-_0x429c41._0x2fb162,-0x255,-_0x429c41._0x1319a5,-_0x429c41._0x29c11f)]({'type':_0x30969a(-0x233,-0x22b,-_0x429c41._0x34f3bf,-_0x429c41._0xfef5af),'call_id':_0x22a1bb['tool_use_id'],'output':_0x1800c9});const _0x38341e=getToolResultImages(_0x22a1bb[_0x59f8ba(-0x166,-0x158,-_0x429c41._0x3fd653,-_0x429c41._0x4aae3b)]);_0x38341e[_0x30969a(-_0x429c41._0x427879,-0x256,-_0x429c41._0x1aa36f,-_0x429c41._0x197ac4)]>0x0&&_0x27d35d[_0x30969a(-0x25b,-0x255,-_0x429c41._0x8036a2,-0x242)]({'type':'message','role':_0x30969a(-_0x429c41._0x54b310,-0x257,-0x237,-_0x429c41._0x39b228),'content':[{'type':_0x59f8ba(-_0x429c41._0x3f5dd0,-0x12f,-0x131,-_0x429c41._0x16fc99),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x22a1bb['tool_use_id']+'.'},..._0x38341e[_0x30969a(-0x23a,-0x22f,-_0x429c41._0x2f249a,-_0x429c41._0x45231f)](_0x4106bb=>({'type':'input_image','image_url':_0x59f8ba(-0x156,-0x138,-0x12b,-0x14c)+_0x4106bb[_0x59f8ba(-0x130,-0x13b,-0x150,-0x127)][_0x59f8ba(-0x15a,-0x164,-0x17d,-0x181)]+_0x59f8ba(-0x156,-0x13a,-0x14a,-0x159)+_0x4106bb[_0x59f8ba(-0x138,-0x13b,-0x152,-0x158)][_0x59f8ba(-0x136,-0x13e,-0x143,-0x153)]}))]});}}pushUserContentMessage(_0x27d35d,_0x19a3da[_0x59f8ba(-_0x429c41._0x3daa1d,-0x14d,-0x16d,-0x145)],_0x1f1bff);}function _0x59f8ba(_0x410070,_0x1ccd13,_0x3b18f6,_0xa724d1){return _0x2bd5(_0x1ccd13- -0x2c6,_0xa724d1);}return{...createOpenAiResponsesReasoning(_0x3b0123),'model':_0x3b0123[_0x59f8ba(-0x134,-_0x429c41._0x1c5b90,-0x171,-_0x429c41._0xcb0ae8)],'instructions':systemToInstructions(_0x3b0123[_0x59f8ba(-0x175,-0x163,-0x14f,-_0x429c41._0x1eb93d)]),'input':_0x27d35d,..._0x3b0123[_0x59f8ba(-_0x429c41._0x45fd05,-0x157,-0x16d,-0x13c)]!==void 0x0?{'max_output_tokens':_0x3b0123[_0x59f8ba(-_0x429c41._0x16fc99,-0x157,-0x16a,-_0x429c41._0xaba7fa)]}:{},'tools':_0x3b0123['tools'][_0x59f8ba(-_0x429c41._0x3c0d5b,-_0x429c41._0x410abb,-_0x429c41._0x30d610,-0x11e)](_0x38c227=>{const _0x1d5d60={_0x9acaf6:0xca,_0x1e8962:0x3c3,_0x414bce:0x100};function _0x1a5800(_0x2c7d43,_0x2c1df6,_0x9e6daa,_0xdf6646){return _0x30969a(_0x2c7d43-0xed,_0x9e6daa- -_0x57e276._0x212045,_0xdf6646,_0xdf6646-0x1ab);}function _0x167dc0(_0x5a5311,_0x279f0a,_0x168640,_0x561f05){return _0x59f8ba(_0x5a5311-_0x1d5d60._0x9acaf6,_0x561f05-_0x1d5d60._0x1e8962,_0x168640-_0x1d5d60._0x414bce,_0x5a5311);}return{'type':_0x1a5800(-_0x3876c7._0x2e11bd,-_0x3876c7._0x1bc638,-_0x3876c7._0xaee1c9,-0x23e),'name':_0x38c227[_0x1a5800(-0x26e,-0x243,-0x25b,-_0x3876c7._0x579075)],'description':_0x38c227[_0x1a5800(-_0x3876c7._0x1aa24b,-0x244,-_0x3876c7._0x11796e,-_0x3876c7._0x181e78)],'parameters':_0x38c227[_0x167dc0(0x2af,0x29d,_0x3876c7._0x162c12,_0x3876c7._0x161cac)]};}),..._0x3b0123[_0x30969a(-_0x429c41._0xde7b3d,-0x25a,-0x255,-0x24e)]?{'text':{'format':{'type':'json_schema','name':_0x3b0123['outputFormat'][_0x59f8ba(-0x161,-_0x429c41._0x1409a1,-0x13c,-_0x429c41._0x55aa7f)]??_0x59f8ba(-0x178,-_0x429c41._0x37cddf,-0x155,-0x166),'schema':_0x3b0123[_0x59f8ba(-_0x429c41._0x572494,-_0x429c41._0x45fd05,-_0x429c41._0x2e41f2,-_0x429c41._0x14a15c)][_0x30969a(-0x247,-0x23b,-_0x429c41._0x5a7f25,-0x25a)],'strict':_0x3b0123[_0x59f8ba(-0x17a,-_0x429c41._0x3d3957,-0x17b,-_0x429c41._0x2862df)][_0x59f8ba(-_0x429c41._0x1c5b90,-_0x429c41._0x1f3494,-0x14f,-_0x429c41._0xcb0ae8)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
1
+ (function(_0x1fa981,_0x35efc7){const _0x393587={_0x31e27f:0x262,_0x52e96e:0x282,_0x155c7d:0x274,_0x41cf80:0x27a,_0x858b04:0x263,_0xf78900:0x454,_0x1689a5:0x278,_0x2aaafd:0x288,_0x458763:0x284,_0x59686b:0x45b,_0x2c077d:0x2a4,_0x37d540:0x2a1,_0xba323a:0x268,_0x281be9:0x443,_0x327de1:0x43d,_0x43f033:0x45a,_0x2a3fdc:0x25c,_0x6862db:0x453,_0x503f3b:0x468,_0x1e9980:0x281,_0x2daa6a:0x280,_0x500bde:0x27e},_0x200a73={_0xd76a57:0x1ae},_0x5d90aa=_0x1fa981();function _0x45513f(_0x37f219,_0x2f5b8f,_0x544ac1,_0x49d20b){return _0x228c(_0x544ac1-0x398,_0x2f5b8f);}function _0x4d09d0(_0x21cc58,_0x537935,_0x425c27,_0x26fc9b){return _0x228c(_0x537935-_0x200a73._0xd76a57,_0x21cc58);}while(!![]){try{const _0x377181=-parseInt(_0x4d09d0(_0x393587._0x31e27f,_0x393587._0x52e96e,0x270,_0x393587._0x155c7d))/0x1+parseInt(_0x4d09d0(0x272,_0x393587._0x41cf80,_0x393587._0x858b04,0x26b))/0x2+parseInt(_0x45513f(0x44b,0x438,_0x393587._0xf78900,0x43b))/0x3*(-parseInt(_0x4d09d0(_0x393587._0x1689a5,_0x393587._0x2aaafd,0x279,_0x393587._0x458763))/0x4)+-parseInt(_0x45513f(_0x393587._0x59686b,0x452,0x465,0x480))/0x5*(parseInt(_0x4d09d0(_0x393587._0x2c077d,0x285,_0x393587._0x37d540,_0x393587._0xba323a))/0x6)+-parseInt(_0x4d09d0(0x276,0x27e,0x261,0x281))/0x7+parseInt(_0x45513f(_0x393587._0x281be9,_0x393587._0x327de1,_0x393587._0x43f033,0x476))/0x8*(parseInt(_0x4d09d0(_0x393587._0x2a3fdc,0x266,0x265,0x25e))/0x9)+-parseInt(_0x45513f(0x46f,_0x393587._0x6862db,0x45d,_0x393587._0x503f3b))/0xa*(-parseInt(_0x4d09d0(_0x393587._0x1e9980,_0x393587._0x2daa6a,_0x393587._0x500bde,_0x393587._0x458763))/0xb);if(_0x377181===_0x35efc7)break;else _0x5d90aa['push'](_0x5d90aa['shift']());}catch(_0x3c485f){_0x5d90aa['push'](_0x5d90aa['shift']());}}}(_0x3e70,0x1a530));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x1fe0fe){const _0x2a8116={_0x4ca4c3:0x2c6,_0x2fff47:0x2e6,_0x51b1b6:0x2d8,_0x2040ea:0xd0,_0xd9c391:0xa2,_0x27a032:0xae,_0xa58e:0x2e4,_0x2289de:0x2fa,_0x1b4991:0x2f9},_0x3a2eca={_0x2d3336:0x38f};function _0x12b81e(_0x1bcea6,_0x53a2af,_0x2f85e9,_0x41fedb){return _0x228c(_0x41fedb- -0x7,_0x53a2af);}function _0x5a32ef(_0x185996,_0x21bb31,_0x8a7a66,_0x53aa7f){return _0x228c(_0x185996- -_0x3a2eca._0x2d3336,_0x8a7a66);}return normalizeContent(_0x1fe0fe)[_0x5a32ef(-0x2e7,-_0x2a8116._0x4ca4c3,-_0x2a8116._0x2fff47,-_0x2a8116._0x51b1b6)](_0x5f30ec=>_0x5f30ec[_0x12b81e(0x8b,0xb0,0x9f,0xa2)]===_0x12b81e(0xea,0xe5,0xc3,0xd8))[_0x12b81e(_0x2a8116._0x2040ea,_0x2a8116._0xd9c391,0x8c,_0x2a8116._0x27a032)](_0x5a8700=>_0x5a8700[_0x5a32ef(-0x2b0,-0x2c4,-0x2ac,-0x2b4)])[_0x5a32ef(-0x2e5,-_0x2a8116._0xa58e,-_0x2a8116._0x2289de,-_0x2a8116._0x1b4991)]('\x0a\x0a');}function pushUserContentMessage(_0x1ae3ad,_0x4a93d8,_0x4f9cc4){const _0x3f7b5a={_0x97de7c:0x14c,_0x2f67d8:0x132,_0xf7e89a:0x149,_0x47bf20:0x122,_0x5dec47:0x137,_0x15e71e:0x14b,_0x55ffd1:0xfe},_0x1091f1={_0x5c289a:0x20e};function _0x106425(_0x1bd161,_0x30cfaf,_0x28b6e8,_0x3ab63e){return _0x228c(_0x28b6e8- -_0x1091f1._0x5c289a,_0x30cfaf);}if(_0x4f9cc4[_0x2f0a8b(_0x3f7b5a._0x97de7c,0x14a,_0x3f7b5a._0x2f67d8,0x116)]===0x0)return;function _0x2f0a8b(_0x1727f0,_0x37b6cf,_0x5816c1,_0x1024ed){return _0x228c(_0x5816c1-0x5c,_0x1024ed);}_0x1ae3ad[_0x2f0a8b(_0x3f7b5a._0xf7e89a,_0x3f7b5a._0x47bf20,_0x3f7b5a._0x5dec47,_0x3f7b5a._0x15e71e)]({'type':_0x2f0a8b(0x12e,_0x3f7b5a._0x2f67d8,0x11c,_0x3f7b5a._0x55ffd1),'role':_0x4a93d8,'content':_0x4f9cc4});}function hasSerializableToolUse(_0xcffda0){const _0x3fbbf8={_0x568c9a:0x2fd,_0x5ceb44:0x316,_0x467963:0x311,_0x504217:0x2f3,_0x5c3614:0x2fe,_0x35bda0:0x1fe,_0xa7e17e:0x337,_0x7ea66e:0x305},_0x2c156d={_0x1558dd:0x3c9},_0x286273={_0x312b48:0x140};function _0x43543d(_0x102554,_0x4b48b6,_0x4363b5,_0x280a1a){return _0x228c(_0x102554-_0x286273._0x312b48,_0x4363b5);}function _0xc438db(_0x5dde5b,_0x5e6ff5,_0x5bc5dc,_0x37f670){return _0x228c(_0x5e6ff5- -_0x2c156d._0x1558dd,_0x5bc5dc);}return _0xcffda0['id'][_0xc438db(-_0x3fbbf8._0x568c9a,-0x315,-0x2fb,-_0x3fbbf8._0x5ceb44)]()[_0xc438db(-_0x3fbbf8._0x467963,-_0x3fbbf8._0x504217,-_0x3fbbf8._0x5c3614,-0x2f6)]>0x0&&_0xcffda0[_0x43543d(0x203,0x1e5,_0x3fbbf8._0x35bda0,0x203)][_0xc438db(-0x2fe,-0x315,-_0x3fbbf8._0xa7e17e,-0x2f3)]()[_0xc438db(-0x2e6,-_0x3fbbf8._0x504217,-_0x3fbbf8._0x7ea66e,-0x2dc)]>0x0;}function hasSerializableToolResult(_0x996c9f){const _0xc1d57b={_0xe76411:0x1c1,_0x3b6635:0x22e,_0x1c0cd0:0x213,_0x24cb0f:0x231,_0x427ad9:0x220},_0x1b9482={_0x294976:0xfb},_0x5e9163={_0x319774:0x14a};function _0x3fbfe9(_0x4621d8,_0x562dff,_0x483d02,_0x5ef3ef){return _0x228c(_0x5ef3ef-_0x5e9163._0x319774,_0x483d02);}function _0x139278(_0x74194b,_0x1fcea6,_0xa0ca39,_0x20ae3){return _0x228c(_0x20ae3-_0x1b9482._0x294976,_0x1fcea6);}return _0x996c9f['tool_use_id'][_0x139278(_0xc1d57b._0xe76411,0x1c3,0x1ad,0x1af)]()[_0x3fbfe9(_0xc1d57b._0x3b6635,_0xc1d57b._0x1c0cd0,_0xc1d57b._0x24cb0f,_0xc1d57b._0x427ad9)]>0x0;}function isResponseInputObject(_0x5e8dc0){const _0x13265b={_0x1b8588:0x2b9,_0x5846ab:0x293,_0x15069b:0x2a9,_0x2d0333:0x2a7,_0x395c0c:0x295},_0x3e7e52={_0x1934cb:0x389},_0x557145={_0xb40411:0x1df};function _0xf835a0(_0x25f9c2,_0x51b9b9,_0x19f01d,_0x365284){return _0x228c(_0x51b9b9-_0x557145._0xb40411,_0x365284);}if(typeof _0x5e8dc0!==_0xf835a0(_0x13265b._0x1b8588,0x2a5,_0x13265b._0x5846ab,_0x13265b._0x15069b)||_0x5e8dc0===null||Array[_0xc0b634(-0x2ba,-0x2d5,-0x2a1,-0x2b5)](_0x5e8dc0))return![];function _0xc0b634(_0x4204b4,_0x2c49ec,_0x5efefe,_0x554371){return _0x228c(_0x4204b4- -_0x3e7e52._0x1934cb,_0x2c49ec);}const _0x48faf8=_0x5e8dc0;return typeof _0x48faf8['type']===_0xf835a0(_0x13265b._0x15069b,_0x13265b._0x2d0333,_0x13265b._0x395c0c,0x286);}function _0x228c(_0x4e7468,_0x36f4f2){_0x4e7468=_0x4e7468-0xa1;const _0x3e70a5=_0x3e70();let _0x228c13=_0x3e70a5[_0x4e7468];if(_0x228c['QqEXZd']===undefined){var _0x48edb5=function(_0x2b76e8){const _0x54a8bb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fe0fe='',_0x5f30ec='';for(let _0x5a8700=0x0,_0x1ae3ad,_0x4a93d8,_0x4f9cc4=0x0;_0x4a93d8=_0x2b76e8['charAt'](_0x4f9cc4++);~_0x4a93d8&&(_0x1ae3ad=_0x5a8700%0x4?_0x1ae3ad*0x40+_0x4a93d8:_0x4a93d8,_0x5a8700++%0x4)?_0x1fe0fe+=String['fromCharCode'](0xff&_0x1ae3ad>>(-0x2*_0x5a8700&0x6)):0x0){_0x4a93d8=_0x54a8bb['indexOf'](_0x4a93d8);}for(let _0xcffda0=0x0,_0x996c9f=_0x1fe0fe['length'];_0xcffda0<_0x996c9f;_0xcffda0++){_0x5f30ec+='%'+('00'+_0x1fe0fe['charCodeAt'](_0xcffda0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f30ec);};_0x228c['xJXdol']=_0x48edb5,_0x228c['SEHMtZ']={},_0x228c['QqEXZd']=!![];}const _0x38795c=_0x3e70a5[0x0],_0x41da2e=_0x4e7468+_0x38795c,_0x4fe8c0=_0x228c['SEHMtZ'][_0x41da2e];return!_0x4fe8c0?(_0x228c13=_0x228c['xJXdol'](_0x228c13),_0x228c['SEHMtZ'][_0x41da2e]=_0x228c13):_0x228c13=_0x4fe8c0,_0x228c13;}function isImageToolResultBlock(_0x2116b2){const _0x47df76={_0x4cf0a3:0x153,_0x438518:0x16a,_0x58ce72:0x147,_0x4d1a62:0x174,_0x1394c5:0x14f,_0xa83c2a:0x149,_0x11f2d6:0x121,_0x529593:0xfe,_0xb86025:0x115,_0x1b9a9f:0xf8,_0x2ea164:0x163,_0x4a93f8:0x14e,_0x5f1cfb:0x10b,_0x5b1579:0xd5},_0x4a5dec={_0x1e76ae:0x8d},_0x4d26c2={_0x3d243a:0x1bf};function _0x3b1e0a(_0x5b74dd,_0x886e90,_0x185966,_0x3136aa){return _0x228c(_0x886e90- -_0x4d26c2._0x3d243a,_0x5b74dd);}if(typeof _0x2116b2!==_0x5acd47(0x133,0x13f,0x15f,_0x47df76._0x4cf0a3)||_0x2116b2===null||Array[_0x5acd47(_0x47df76._0x438518,_0x47df76._0x58ce72,_0x47df76._0x4d1a62,0x15c)](_0x2116b2))return![];const _0x271450=_0x2116b2;function _0x5acd47(_0x2f2268,_0x572a3b,_0x2e80f9,_0x6a45b7){return _0x228c(_0x6a45b7-_0x4a5dec._0x1e76ae,_0x2e80f9);}return _0x271450['type']==='image'&&_0x271450[_0x5acd47(0x156,_0x47df76._0x1394c5,0x12f,0x14e)]?.[_0x5acd47(_0x47df76._0xa83c2a,0x145,0x11c,0x136)]===_0x5acd47(_0x47df76._0x11f2d6,0x143,0x149,0x13f)&&typeof _0x271450[_0x3b1e0a(-0xea,-_0x47df76._0x529593,-0x11a,-0xed)][_0x3b1e0a(-_0x47df76._0x11f2d6,-0x102,-_0x47df76._0xb86025,-_0x47df76._0x1b9a9f)]==='string'&&typeof _0x271450[_0x5acd47(0x12e,0x12d,_0x47df76._0x2ea164,_0x47df76._0x4a93f8)]['data']===_0x3b1e0a(-_0x47df76._0x5f1cfb,-0xf7,-_0x47df76._0x5b1579,-0x10c);}function getToolResultText(_0x2a8cb4){const _0x5930d0={_0x29fa3f:0x44,_0x423900:0x35,_0x3cd23d:0x55,_0x25a864:0x43,_0x2e60e3:0x3b,_0xd39d79:0x1b0,_0x5be4c4:0x1aa,_0x2841d6:0x18e,_0x14cec8:0x18b,_0x355c32:0x178},_0x154a33={_0x523783:0x10d,_0x402091:0x134,_0x3085e:0x149,_0x2b13ad:0x154,_0x1b2f42:0x120},_0xbfaa8c={_0x278d9d:0xfd};if(typeof _0x2a8cb4===_0x4f8d31(-_0x5930d0._0x29fa3f,-_0x5930d0._0x423900,-0x27,-0x41))return _0x2a8cb4;function _0x4f8d31(_0x211f47,_0x4341a1,_0x4f241f,_0x348d40){return _0x228c(_0x4341a1- -_0xbfaa8c._0x278d9d,_0x348d40);}const _0x37b059=_0x2a8cb4[_0x4f8d31(-0x52,-_0x5930d0._0x3cd23d,-_0x5930d0._0x25a864,-_0x5930d0._0x2e60e3)](_0x1001da=>{const _0x586acb={_0xd92ec7:0x5e9,_0x411386:0x3e},_0x1c5a6f={_0x383efe:0xaa};function _0x502505(_0x518593,_0x75012a,_0x128a6a,_0x4cb2da){return _0x4f8d31(_0x518593-_0x1c5a6f._0x383efe,_0x75012a- -0xf5,_0x128a6a-0x95,_0x518593);}function _0x3c786f(_0x2c3be8,_0x1670ea,_0x1383c2,_0x249fc8){return _0x12475e(_0x1383c2-_0x586acb._0xd92ec7,_0x1670ea-_0x586acb._0x411386,_0x1383c2-0x61,_0x2c3be8);}return typeof _0x1001da===_0x502505(-_0x154a33._0x523783,-0x12c,-0x144,-0x112)&&_0x1001da!==null&&_0x1001da[_0x502505(-_0x154a33._0x402091,-_0x154a33._0x3085e,-_0x154a33._0x2b13ad,-0x162)]===_0x502505(-0x10b,-0x113,-_0x154a33._0x1b2f42,-0x12e);})['map'](_0x24a8bb=>_0x24a8bb['text'])['join']('\x0a\x0a')[_0x12475e(-_0x5930d0._0xd39d79,-0x1b3,-_0x5930d0._0x5be4c4,-_0x5930d0._0x2841d6)]();function _0x12475e(_0x3f1421,_0x4cbc4b,_0x3dd60a,_0x548e4f){return _0x228c(_0x3f1421- -0x264,_0x548e4f);}return _0x37b059[_0x4f8d31(-_0x5930d0._0x25a864,-0x27,-0x17,-0x46)]>0x0?_0x37b059:_0x12475e(-_0x5930d0._0x14cec8,-0x194,-0x179,-_0x5930d0._0x355c32);}function getToolResultImages(_0x5330c7){const _0x45a2c5={_0xa8e17f:0xae,_0x14c9b0:0x87,_0x1c5b98:0x79,_0x7dba81:0x97,_0x13f328:0x76},_0x5ac404={_0x228459:0x2c};function _0x4f7ba6(_0x43095e,_0x18291a,_0xf79dd0,_0x379c76){return _0x228c(_0x43095e- -0x21,_0x18291a);}function _0x49d346(_0xe8cda3,_0x39b658,_0x137cab,_0x2e7811){return _0x228c(_0x39b658- -_0x5ac404._0x228459,_0x2e7811);}return Array[_0x4f7ba6(_0x45a2c5._0xa8e17f,0xa5,0xc4,0xb6)](_0x5330c7)?_0x5330c7[_0x4f7ba6(_0x45a2c5._0x14c9b0,_0x45a2c5._0x1c5b98,_0x45a2c5._0x7dba81,_0x45a2c5._0x13f328)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x237ba0){const _0x5ef6ae={_0x57205e:0x20d,_0x591899:0x22a,_0x56ffea:0x1f3,_0x11e870:0x1d2},_0x41f528={_0x576c77:0x214},_0x46ceed={_0x291f20:0x2ba};function _0x1bbcc5(_0x2eb9cf,_0x1ddb61,_0x1c3d3d,_0x472c8f){return _0x228c(_0x1ddb61- -_0x46ceed._0x291f20,_0x1c3d3d);}function _0x1925dc(_0x3417ef,_0xcbea82,_0x477858,_0x1c3f68){return _0x228c(_0x3417ef-_0x41f528._0x576c77,_0x1c3f68);}return _0x237ba0[_0x1bbcc5(-0x1ee,-_0x5ef6ae._0x57205e,-_0x5ef6ae._0x591899,-0x225)]?.[_0x1bbcc5(-0x1ed,-_0x5ef6ae._0x56ffea,-_0x5ef6ae._0x11e870,-0x211)]??'user-visible';}function createOpenAiResponsesReasoning(_0xef33f0){const _0x2e7d30={_0x126db2:0x24d,_0xeaf461:0x289,_0x8840d9:0x2a5,_0x613d2d:0x29c,_0x2351fa:0x2f3,_0x1c96c7:0x2ea,_0x333ca2:0x32b,_0x339cd1:0x327,_0x176c33:0x2fa,_0x27906c:0x268,_0x2f3ae7:0x24e,_0x3eeb5b:0x2fc,_0x3edfe4:0x2db,_0x53ade9:0x2e8,_0x57bb02:0x287,_0xd2d2ce:0x2a4,_0x36aeb7:0x261,_0x1c30ff:0x26e,_0x31bcb6:0x309,_0x23f031:0x318,_0x2bef14:0x32a,_0x3b38ee:0x330,_0x435df0:0x325,_0x57e062:0x30f,_0xac3a16:0x342},_0x4c5889={_0xd1deb6:0x250},_0x5352cc=resolveOpenAiReasoningConfig(_0xef33f0['reasoning']);if(!_0x5352cc)return{};const _0x1ce71d={};function _0x1bed14(_0x2249a5,_0x58a265,_0x38653f,_0x3e2a8c){return _0x228c(_0x2249a5-_0x4c5889._0xd1deb6,_0x3e2a8c);}const _0x3f4d7f=_0xef33f0[_0x4781bb(0x255,0x251,_0x2e7d30._0x126db2,0x244)]?.[_0x1bed14(0x31e,0x312,0x2ff,0x306)]!==void 0x0,_0x31756a=(!_0x3f4d7f&&_0x4781bb(0x289,0x281,0x28e,0x28f)in _0x5352cc?_0x5352cc[_0x4781bb(_0x2e7d30._0xeaf461,0x289,_0x2e7d30._0x8840d9,_0x2e7d30._0x613d2d)]:void 0x0)??(resolveReasoningVisibility(_0xef33f0)===_0x1bed14(_0x2e7d30._0x2351fa,0x2f0,_0x2e7d30._0x1c96c7,0x2dc)?_0x1bed14(0x319,_0x2e7d30._0x333ca2,_0x2e7d30._0x339cd1,_0x2e7d30._0x176c33):void 0x0);_0x5352cc[_0x4781bb(0x254,_0x2e7d30._0x27906c,_0x2e7d30._0x2f3ae7,0x25a)]&&(_0x1ce71d['effort']=_0x5352cc[_0x1bed14(_0x2e7d30._0x3eeb5b,_0x2e7d30._0x3edfe4,_0x2e7d30._0x53ade9,0x2fd)]);_0x31756a&&(_0x1ce71d[_0x4781bb(0x289,0x28f,_0x2e7d30._0x57bb02,_0x2e7d30._0xd2d2ce)]=_0x31756a);function _0x4781bb(_0x4375fe,_0x23f854,_0x2254cd,_0x1e751f){return _0x228c(_0x4375fe-0x1a8,_0x23f854);}return{...!_0x3f4d7f&&_0x4781bb(_0x2e7d30._0x36aeb7,_0x2e7d30._0x1c30ff,0x255,0x26d)in _0x5352cc&&_0x5352cc[_0x1bed14(_0x2e7d30._0x31bcb6,0x2ef,_0x2e7d30._0x23f031,0x30b)]===![]?{}:{'include':[_0x1bed14(0x321,_0x2e7d30._0x2bef14,_0x2e7d30._0x3b38ee,_0x2e7d30._0x23f031)]},...Object[_0x1bed14(_0x2e7d30._0x435df0,0x312,_0x2e7d30._0x57e062,_0x2e7d30._0xac3a16)](_0x1ce71d)['length']>0x0?{'reasoning':_0x1ce71d}:{}};}function pushAssistantProviderState(_0x4515c2,_0xec7a06,_0x20482d){const _0x229b95={_0x3d8da4:0xad,_0x31c515:0xb8,_0x496c28:0xd1,_0x41bff0:0xf0,_0x39b65c:0xb1,_0x1907b6:0xaf,_0x58703b:0xd9,_0x455e8c:0xf0,_0x8951d:0x10d,_0x1f160f:0x75,_0x4f58fe:0x5c,_0x1a2fbc:0xab,_0x2221a5:0x90,_0xbe7856:0x63,_0x53a22e:0x58,_0x3a7507:0x68,_0x2b108b:0x7a,_0x19612e:0x68,_0x2f74f9:0x58,_0x40c9a6:0x54},_0x4dc569={_0x10c932:0x139};if(_0xec7a06[_0x516c5b(-0x99,-0x93,-_0x229b95._0x3d8da4,-0xa6)]!==_0x2df46f(-_0x229b95._0x31c515,-_0x229b95._0x496c28,-0xe8,-_0x229b95._0x41bff0))return![];if(!isProviderStateCompatible(_0xec7a06,_0x20482d))return![];const _0x355922=_0xec7a06[_0x2df46f(-0x94,-_0x229b95._0x39b65c,-0xbc,-_0x229b95._0x1907b6)]?.[_0x2df46f(-_0x229b95._0x58703b,-_0x229b95._0x455e8c,-0xda,-_0x229b95._0x8951d)]??[];if(_0x355922['length']===0x0)return![];for(const _0x3e0eaf of _0x355922){if(isResponseInputObject(_0x3e0eaf)){const _0x442958=structuredClone(_0x3e0eaf);delete _0x442958[_0x516c5b(-_0x229b95._0x1f160f,-_0x229b95._0x4f58fe,-0x3c,-0x55)],_0x442958[_0x516c5b(-_0x229b95._0x1a2fbc,-_0x229b95._0x2221a5,-0xa3,-0xa1)]==='reasoning'&&!Array[_0x2df46f(-0xc1,-0xc6,-0xad,-0xdb)](_0x442958[_0x516c5b(-_0x229b95._0xbe7856,-_0x229b95._0x53a22e,-_0x229b95._0x3a7507,-_0x229b95._0x2b108b)])&&(_0x442958[_0x516c5b(-_0x229b95._0x19612e,-_0x229b95._0x2f74f9,-0x3a,-_0x229b95._0x40c9a6)]=[]),_0x4515c2['push'](_0x442958);}}function _0x516c5b(_0x21e247,_0x5ef713,_0x123536,_0x10e438){return _0x228c(_0x5ef713- -_0x4dc569._0x10c932,_0x123536);}function _0x2df46f(_0x780878,_0x58ab2d,_0x36ffec,_0x3e1c60){return _0x228c(_0x58ab2d- -0x195,_0x36ffec);}return!![];}function toOpenAiResponsesRequest(_0x2a47b5){const _0x16f98f={_0x2d14ba:0x2e7,_0x34c11a:0x2b7,_0x3dcc0c:0x2c8,_0x3af816:0x2b9,_0x33ef02:0x29a,_0x456d32:0x289,_0x16ddab:0x2b4,_0x2e5a4e:0x2b1,_0x5aac59:0x270,_0x1ce9e7:0x25b,_0x9f3a2f:0x279,_0x45eb2f:0x28f,_0x5c3513:0x283,_0x3ce071:0x273,_0xee96b:0x2ac,_0xa90787:0x2b8,_0x334a88:0x2cd,_0x5eaf28:0x2a9,_0x4cf777:0x295,_0x22e5f7:0x2c2,_0x24eabe:0x2bd,_0x1c9de9:0x2cc,_0x4c38c7:0x2ce,_0xdedbf3:0x2b1,_0x197718:0x2af,_0x226e88:0x248,_0x117365:0x260,_0x4f45eb:0x24d,_0x4f8eec:0x24e,_0x5bc6ce:0x2a9,_0x3c49f1:0x29e,_0x3e3022:0x23f,_0x30fd52:0x24b,_0x2fa2b1:0x270,_0x1ed12b:0x2e5,_0x3e5911:0x26f,_0x15dff1:0x25a,_0x51799c:0x274,_0x556fa7:0x282,_0x199baa:0x290,_0x485ea0:0x2ac,_0x2d60f0:0x2e6,_0x5a68f6:0x307,_0x24ef16:0x2d2,_0xaa84d:0x2a3,_0x2b58c0:0x297,_0x5cf08c:0x279,_0x392a7a:0x261,_0x1d9b0b:0x26b,_0x5b5124:0x2e7,_0x5268bb:0x2e1,_0x4c5702:0x277,_0x7edcab:0x28b,_0x517dc5:0x269,_0x1faf5e:0x2a1,_0x245dad:0x2b3,_0x1f501b:0x2de,_0x32827d:0x2ea,_0x26baae:0x253,_0x12618b:0x257,_0x276a03:0x252,_0xc6e08a:0x246,_0x4d3e09:0x27d,_0x1ded70:0x25e,_0x48c053:0x2c8,_0x2a5ad3:0x2b7,_0x3ec636:0x266,_0x20e505:0x25c,_0x12aca9:0x24f,_0x352650:0x271,_0x296762:0x2c9,_0x402af6:0x2d1,_0x16321b:0x2df,_0x2fac27:0x250,_0x447e00:0x293,_0x155f39:0x2d9,_0x5a9796:0x2d6},_0x137b5e={_0x3e8038:0x238,_0x1d6a65:0x24e,_0x5bc7ab:0x244,_0x128d95:0x273,_0x522a2c:0x17a,_0x4781e1:0x18b,_0x36baa7:0x168},_0x501715={_0x337c9f:0xb5,_0x3f1014:0x28},_0x2cba83={_0x2cf237:0x20b},_0x618f92=[];for(const _0x24e06b of _0x2a47b5[_0x21e01b(0x2ca,_0x16f98f._0x2d14ba,_0x16f98f._0x34c11a,_0x16f98f._0x3dcc0c)]){if(pushAssistantProviderState(_0x618f92,_0x24e06b,_0x2a47b5))continue;const _0x2a6753=[];for(const _0x1b9bd2 of normalizeContent(_0x24e06b[_0x21e01b(0x2be,0x2ab,_0x16f98f._0x3af816,0x2c0)])){if(_0x1b9bd2['type']===_0x3f49a5(_0x16f98f._0x33ef02,0x28f,0x2ae,_0x16f98f._0x456d32)){_0x2a6753['push'](_0x24e06b[_0x21e01b(0x2b1,0x29b,_0x16f98f._0x16ddab,_0x16f98f._0x2e5a4e)]===_0x3f49a5(_0x16f98f._0x5aac59,0x274,0x292,0x271)?{'type':_0x3f49a5(0x261,_0x16f98f._0x1ce9e7,_0x16f98f._0x9f3a2f,0x26e),'text':_0x1b9bd2[_0x3f49a5(0x2a8,_0x16f98f._0x45eb2f,0x2b1,0x287)]}:{'type':'input_text','text':_0x1b9bd2[_0x3f49a5(0x292,_0x16f98f._0x45eb2f,_0x16f98f._0x5c3513,_0x16f98f._0x3ce071)]});continue;}if(_0x1b9bd2[_0x21e01b(_0x16f98f._0x16ddab,_0x16f98f._0xee96b,0x2d3,0x2ab)]===_0x21e01b(0x2af,0x2c5,_0x16f98f._0xa90787,_0x16f98f._0x334a88)){_0x2a6753['push']({'type':_0x21e01b(0x2ac,_0x16f98f._0x5eaf28,0x2b1,_0x16f98f._0x4cf777),'image_url':_0x21e01b(_0x16f98f._0x22e5f7,0x2c1,0x2c9,_0x16f98f._0x24eabe)+_0x1b9bd2[_0x21e01b(_0x16f98f._0x1c9de9,_0x16f98f._0x4c38c7,0x2b9,0x2bf)][_0x21e01b(_0x16f98f._0x3dcc0c,_0x16f98f._0xdedbf3,0x2de,_0x16f98f._0x197718)]+';base64,'+_0x1b9bd2['source'][_0x3f49a5(_0x16f98f._0x226e88,_0x16f98f._0x117365,_0x16f98f._0x4f45eb,_0x16f98f._0x4f8eec)]});continue;}pushUserContentMessage(_0x618f92,_0x24e06b[_0x21e01b(0x2b1,_0x16f98f._0x5bc6ce,0x296,_0x16f98f._0x3c49f1)],_0x2a6753['splice'](0x0));if(_0x1b9bd2[_0x3f49a5(0x25e,0x259,0x239,0x27a)]===_0x3f49a5(_0x16f98f._0x3e3022,0x25f,_0x16f98f._0x30fd52,_0x16f98f._0x2fa2b1)){if(!hasSerializableToolUse(_0x1b9bd2))continue;_0x618f92['push']({'type':_0x21e01b(0x2c5,_0x16f98f._0x1ed12b,0x2cd,0x2e6),'call_id':_0x1b9bd2['id'],'name':_0x1b9bd2['name'],'arguments':JSON[_0x3f49a5(_0x16f98f._0x3e5911,0x27a,_0x16f98f._0x15dff1,_0x16f98f._0x51799c)](_0x1b9bd2[_0x3f49a5(_0x16f98f._0x556fa7,_0x16f98f._0x199baa,0x275,0x280)]??{})});continue;}if(_0x1b9bd2['type']==='tool_result'){if(!hasSerializableToolResult(_0x1b9bd2))continue;const _0x3e1c86=getToolResultText(_0x1b9bd2[_0x21e01b(0x2be,_0x16f98f._0x485ea0,0x2ba,0x2c7)]);_0x618f92[_0x21e01b(_0x16f98f._0x2d60f0,0x2ca,_0x16f98f._0x5a68f6,_0x16f98f._0x24ef16)]({'type':_0x21e01b(0x2b9,0x2ce,0x2cb,0x2d4),'call_id':_0x1b9bd2['tool_use_id'],'output':_0x3e1c86});const _0x29a87c=getToolResultImages(_0x1b9bd2['content']);_0x29a87c[_0x3f49a5(0x274,0x286,0x283,_0x16f98f._0xaa84d)]>0x0&&_0x618f92[_0x3f49a5(_0x16f98f._0x2b58c0,0x28b,_0x16f98f._0x5cf08c,0x29b)]({'type':_0x3f49a5(_0x16f98f._0x392a7a,0x270,_0x16f98f._0x1d9b0b,_0x16f98f._0x15dff1),'role':_0x21e01b(_0x16f98f._0x5b5124,_0x16f98f._0x5268bb,0x2f9,0x2d2),'content':[{'type':'input_text','text':_0x3f49a5(_0x16f98f._0x4c5702,0x288,_0x16f98f._0x7edcab,_0x16f98f._0x517dc5)+_0x1b9bd2[_0x3f49a5(_0x16f98f._0x1faf5e,0x292,_0x16f98f._0x245dad,0x29b)]+'.'},..._0x29a87c['map'](_0x15651d=>({'type':'input_image','image_url':'data:'+_0x15651d['source'][_0x3f49a5(0x259,0x26d,0x24b,0x25e)]+';base64,'+_0x15651d[_0x21e01b(0x2cc,0x2c6,0x2dd,0x2bf)][_0x3f49a5(0x244,0x260,0x25e,0x241)]}))]});}}pushUserContentMessage(_0x618f92,_0x24e06b['role'],_0x2a6753);}function _0x3f49a5(_0x53d2a5,_0x39bd98,_0x611e18,_0x332fcd){return _0x228c(_0x39bd98-0x1b0,_0x332fcd);}function _0x21e01b(_0x75b542,_0x3fd603,_0x545641,_0x12a309){return _0x228c(_0x75b542-_0x2cba83._0x2cf237,_0x3fd603);}return{...createOpenAiResponsesReasoning(_0x2a47b5),'model':_0x2a47b5[_0x21e01b(_0x16f98f._0x1f501b,_0x16f98f._0x32827d,0x2c8,0x2c3)],'instructions':systemToInstructions(_0x2a47b5[_0x3f49a5(_0x16f98f._0x26baae,_0x16f98f._0x12618b,0x248,_0x16f98f._0x276a03)]),'input':_0x618f92,..._0x2a47b5[_0x3f49a5(0x262,_0x16f98f._0x392a7a,0x25a,_0x16f98f._0xc6e08a)]!==void 0x0?{'max_output_tokens':_0x2a47b5[_0x3f49a5(0x25e,0x261,_0x16f98f._0x4d3e09,_0x16f98f._0x1ded70)]}:{},'tools':_0x2a47b5[_0x21e01b(0x2c6,_0x16f98f._0x48c053,0x2cc,_0x16f98f._0x3af816)][_0x21e01b(0x2c0,0x2d7,0x2c1,_0x16f98f._0x2a5ad3)](_0x24aa33=>{const _0x47f135={_0x399386:0xc3};function _0x912d0f(_0x1583c5,_0x280866,_0xc91bd5,_0xf04cc6){return _0x3f49a5(_0x1583c5-_0x501715._0x337c9f,_0x1583c5- -0xd8,_0xc91bd5-_0x501715._0x3f1014,_0xf04cc6);}function _0x2171cc(_0x4ed277,_0x1c7f75,_0x167e27,_0x107300){return _0x21e01b(_0x167e27- -0x521,_0x1c7f75,_0x167e27-0xb1,_0x107300-_0x47f135._0x399386);}return{'type':_0x2171cc(-0x257,-0x22f,-_0x137b5e._0x3e8038,-_0x137b5e._0x1d6a65),'name':_0x24aa33[_0x2171cc(-0x245,-_0x137b5e._0x5bc7ab,-0x253,-_0x137b5e._0x128d95)],'description':_0x24aa33['description'],'parameters':_0x24aa33[_0x912d0f(_0x137b5e._0x522a2c,_0x137b5e._0x4781e1,0x18b,_0x137b5e._0x36baa7)]};}),..._0x2a47b5[_0x3f49a5(0x287,_0x16f98f._0x3ec636,_0x16f98f._0x20e505,0x247)]?{'text':{'format':{'type':'json_schema','name':_0x2a47b5[_0x3f49a5(0x259,0x266,0x285,_0x16f98f._0x12aca9)][_0x3f49a5(_0x16f98f._0x352650,0x273,0x254,0x28b)]??_0x21e01b(_0x16f98f._0x296762,0x2e0,_0x16f98f._0x402af6,_0x16f98f._0x16321b),'schema':_0x2a47b5[_0x3f49a5(_0x16f98f._0x2fac27,_0x16f98f._0x3ec636,0x25b,0x24d)][_0x3f49a5(0x2b4,_0x16f98f._0x447e00,0x281,_0x16f98f._0x199baa)],'strict':_0x2a47b5[_0x21e01b(0x2c1,0x2e0,0x2af,_0x16f98f._0x155f39)][_0x21e01b(_0x16f98f._0x5a9796,0x2d1,0x2c7,0x2e7)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};function _0x3e70(){const _0x320899=['AxnbCNjHEq','otyWodGZA2XPuw11','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','nZDHyM1VCeG','Bw9KzwW','nZuZntHhqwngCLq','A2v5CW','BgvUz3rO','mZa3ntCYBxfcrhDc','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','mtyZnJe2svj1wxLp','ChvZAa','DxnLCG','C3rHDhvZ','zNvUy3rPB24','Dgv4Da','Aw5WDxq','C3vTBwfYEq','Dg9VBf91C2vFAwq','C2nOzw1H','ChjVDMLKzxjtDgf0zq','Aw5WDxrFAw1Hz2u','Aw5WDxrFC2nOzw1H','DxnLCI12AxnPyMXL','Aw1Hz2u','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','CM9Szq','C3LZDgvT','zMLSDgvY','DhLWzq','AM9PBG','B3v0Chv0x3rLEhq','zwzMB3j0','CMvHC29UAw5N','zNvUy3rPB25Fy2fSBf9VDxrWDxq','Dg9VBf91C2u','zgf0yq','Bwf4vg9Rzw5Z','yMfZzty0','y29UDgvUDa','DhjPBq','BwfW','B3v0Chv0rM9YBwf0','zgf0ytO','nZiYn3bRsLrjEG','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','zNvUy3rPB25Fy2fSBa','Dg9VBhm','mtjbExvMtwm','BwvKAwfFDhLWzq','C3rYDwn0DxjLzf9VDxrWDxq','BwvZC2fNzxm','BwvZC2fNzq','C291CMnL','odu2yu5fCNLX','BMfTzq','yxnZAxn0yw50','nJKYmJKWvuzwAMnO','B2jQzwn0','DMLZAwjPBgL0Eq','C3rYAw5N','yxv0BW','C3rYAw5NAwz5','C3rYAwn0','mZiXmZrJreDlr2i','mtbIzeD2teG','y29KzxG'];_0x3e70=function(){return _0x320899;};return _0x3e70();}
@@ -0,0 +1 @@
1
+ (function(_0x2cdb86,_0x6c3cb5){const _0x5d8ccd={_0x22a04e:0x2ac,_0x432919:0x2a8,_0x9a062b:0x1a1,_0x36c2d4:0x1d9,_0x2e0079:0x294,_0x5c8d7e:0x218,_0x533399:0x270,_0x320c9b:0x286,_0x149588:0x269,_0x34ff93:0x2f4,_0x3f673e:0x301,_0x385da7:0x2a9,_0x248532:0x2d7,_0x56023e:0x2c1},_0x3a845b={_0x2f419b:0x381};function _0x5e66f2(_0x1f2672,_0x4ff3af,_0x4cf7a3,_0x5e9549){return _0x2bfb(_0x1f2672-0x1d7,_0x4cf7a3);}const _0x36cb41=_0x2cdb86();function _0x3ef47e(_0x11ad93,_0x4f6b96,_0x13311d,_0x5f014a){return _0x2bfb(_0x5f014a- -_0x3a845b._0x2f419b,_0x13311d);}while(!![]){try{const _0x956aef=parseInt(_0x5e66f2(0x318,0x292,0x360,0x350))/0x1+-parseInt(_0x5e66f2(_0x5d8ccd._0x22a04e,0x2b9,_0x5d8ccd._0x432919,0x2b7))/0x2+parseInt(_0x3ef47e(-0x18d,-0x1ea,-_0x5d8ccd._0x9a062b,-_0x5d8ccd._0x36c2d4))/0x3+parseInt(_0x5e66f2(0x30c,0x393,0x343,0x342))/0x4*(-parseInt(_0x5e66f2(_0x5d8ccd._0x2e0079,_0x5d8ccd._0x5c8d7e,_0x5d8ccd._0x533399,0x299))/0x5)+parseInt(_0x3ef47e(-0x1dd,-_0x5d8ccd._0x320c9b,-0x1f9,-0x218))/0x6+parseInt(_0x5e66f2(0x286,_0x5d8ccd._0x149588,0x2a7,0x28b))/0x7+-parseInt(_0x5e66f2(_0x5d8ccd._0x34ff93,0x2cb,_0x5d8ccd._0x3f673e,_0x5d8ccd._0x385da7))/0x8*(parseInt(_0x5e66f2(0x2a7,_0x5d8ccd._0x248532,_0x5d8ccd._0x56023e,0x2b7))/0x9);if(_0x956aef===_0x6c3cb5)break;else _0x36cb41['push'](_0x36cb41['shift']());}catch(_0x2a4135){_0x36cb41['push'](_0x36cb41['shift']());}}}(_0x282c,0xa95bb));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YNOIG4FD.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x3eaa58){const _0x4cac08={_0x17a809:0x517,_0xb31609:0x49f,_0x558dbd:0x73},_0x2e1c23={_0x4cd25a:0x33a};function _0x332809(_0x3f4940,_0xdd14bf,_0x2873ca,_0x497968){return _0x2bfb(_0xdd14bf-_0x2e1c23._0x4cd25a,_0x2873ca);}function _0x2ed360(_0x159d80,_0x4610e9,_0x1cfed6,_0x4d41e9){return _0x2bfb(_0x159d80- -0x177,_0x4610e9);}return typeof _0x3eaa58===_0x332809(0x505,0x4cf,_0x4cac08._0x17a809,_0x4cac08._0xb31609)&&_0x3eaa58!==null&&!Array[_0x2ed360(0x4,0x84,-0x3e,_0x4cac08._0x558dbd)](_0x3eaa58);}function isToolOutputEnvelope(_0x262a7e){const _0x3681bd={_0x5023a3:0x545,_0x4fec63:0x494,_0x45fc6e:0x429,_0x5eabad:0x5a0,_0xf4e70f:0x4b1};function _0x473051(_0x2fd7fb,_0x526abc,_0x1c04fe,_0x52a67b){return _0x2bfb(_0x526abc-0x392,_0x52a67b);}if(typeof _0x262a7e!==_0x4db644(0x127,0x194,0x214,0x181)||_0x262a7e===null||Array[_0x473051(0x58b,0x50d,0x558,_0x3681bd._0x5023a3)](_0x262a7e))return![];if(typeof _0x262a7e[_0x473051(0x44e,0x446,_0x3681bd._0x4fec63,_0x3681bd._0x45fc6e)]!=='string')return![];function _0x4db644(_0x598f33,_0x3d6de0,_0x303757,_0x233de8){return _0x2bfb(_0x3d6de0- -0x1,_0x598f33);}const _0xdc5b1c=_0x262a7e[_0x473051(_0x3681bd._0x5eabad,0x524,0x52b,_0x3681bd._0xf4e70f)];return _0xdc5b1c===void 0x0||isJsonObject(_0xdc5b1c);}function validateAgainstSchema(_0x30eda4,_0xb7bf31,_0x15ccde){const _0x52ac87={_0x520a28:0x1e3,_0x13939e:0x12d,_0x5a0c1a:0x341,_0x33d0fe:0x31a,_0x562024:0x2a5,_0x1fa243:0x1d0,_0x48bfe1:0x22d,_0x14ff13:0x26a,_0x7ac366:0x37f,_0x3cc64d:0x185,_0x13a65c:0x226,_0x5e4abe:0x242,_0x911945:0x1ff,_0x4d7dae:0x13d,_0x5053e8:0xdf,_0x5ab813:0x179,_0x3d8224:0x176,_0x7eddd9:0x159,_0x1575de:0x357,_0x22d6a4:0x244,_0x534dd7:0x1f8,_0x32b531:0x1cf,_0x5e9f7b:0x2be,_0x8d7759:0x240,_0x50f662:0x24a,_0x3c7f18:0x291,_0x56ebf1:0x2f1,_0x18b1a5:0x2ff,_0x3e4ea4:0x29c,_0x85c99b:0x255,_0x2c4f5d:0x284,_0x5a2b99:0x1f6,_0x537fd7:0x1f9,_0x2765b9:0xb6,_0x5947d6:0x18b,_0x38696a:0x305,_0x5d31f1:0x287,_0x37baf4:0x33e,_0x3a1844:0x305,_0x5a0a08:0x297,_0x5bc37f:0x288,_0x5ae6bb:0x29c,_0x32accf:0x2b8,_0x52d3ab:0x2ef,_0x365916:0x276,_0x100eca:0x330,_0x21b484:0x114,_0x3615e3:0x13b,_0x3e62ad:0x212,_0x12cad1:0x295,_0x2f82fe:0x1ec,_0x14740f:0x1cc,_0x3b15c2:0x1e6,_0x3512df:0x2c2,_0x694e35:0x376,_0x555405:0x211,_0x2839e9:0x271,_0x34e184:0x2f7,_0x254dd2:0xb3,_0x3691ab:0x80,_0x22eef2:0x172,_0x47cfbc:0xf1,_0x3f1cec:0x338,_0x3a10e3:0x318,_0x430229:0x309,_0x26a21f:0x31a,_0x467cd4:0x1dc,_0x5b72dd:0x233,_0x11bc86:0x256,_0x4583f9:0xdb,_0x5df75a:0xed,_0x2efce1:0xfb,_0x5d4245:0x182,_0x3d4897:0x109,_0x178394:0x176,_0x28535d:0x331,_0x25c143:0x2b3};function _0x3ac2b6(_0x120551,_0x1c017b,_0x2a88f3,_0x43fdb3){return _0x2bfb(_0x1c017b-0x174,_0x43fdb3);}if(_0x3ac2b6(0x2b2,0x246,_0x52ac87._0x520a28,0x243)in _0x15ccde){const _0x58ecd0=_0x15ccde['anyOf'][_0x3521fe(0x145,0xd5,0x199,_0x52ac87._0x13939e)](_0x35f94e=>{try{return validateAgainstSchema(_0x30eda4,_0xb7bf31,_0x35f94e),!![];}catch{return![];}});if(!_0x58ecd0)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x30eda4+_0x3ac2b6(_0x52ac87._0x5a0c1a,_0x52ac87._0x33d0fe,0x346,0x2bd));return;}function _0x3521fe(_0x104a02,_0x289afb,_0x41e451,_0x56e7a1){return _0x2bfb(_0x56e7a1-0x55,_0x104a02);}switch(_0x15ccde['type']){case _0x3ac2b6(_0x52ac87._0x562024,0x22d,0x1b1,0x1cb):if(typeof _0xb7bf31!==_0x3ac2b6(_0x52ac87._0x1fa243,_0x52ac87._0x48bfe1,0x1c0,_0x52ac87._0x14ff13))throw new Error(_0x3ac2b6(_0x52ac87._0x7ac366,0x318,0x338,0x328)+_0x30eda4+_0x3521fe(_0x52ac87._0x3cc64d,_0x52ac87._0x13a65c,_0x52ac87._0x5e4abe,_0x52ac87._0x911945));if(_0x15ccde['enum']!==void 0x0&&!_0x15ccde[_0x3521fe(_0x52ac87._0x4d7dae,_0x52ac87._0x5053e8,_0x52ac87._0x5ab813,0x121)][_0x3521fe(_0x52ac87._0x3d8224,0x1d1,_0x52ac87._0x7eddd9,0x17f)](_0xb7bf31))throw new Error(_0x3ac2b6(0x361,0x318,_0x52ac87._0x1575de,0x2ee)+_0x30eda4+_0x3521fe(0x166,_0x52ac87._0x22d6a4,_0x52ac87._0x534dd7,_0x52ac87._0x32b531)+_0x15ccde[_0x3ac2b6(_0x52ac87._0x5e9f7b,_0x52ac87._0x8d7759,_0x52ac87._0x50f662,0x2c0)][_0x3ac2b6(0x2cc,0x2fe,0x288,_0x52ac87._0x3c7f18)](',\x20'));return;case'number':if(typeof _0xb7bf31!==_0x3ac2b6(_0x52ac87._0x56ebf1,0x2bf,_0x52ac87._0x18b1a5,_0x52ac87._0x3e4ea4))throw new Error(_0x3521fe(_0x52ac87._0x85c99b,_0x52ac87._0x2c4f5d,_0x52ac87._0x5a2b99,_0x52ac87._0x537fd7)+_0x30eda4+_0x3521fe(0xd2,_0x52ac87._0x2765b9,_0x52ac87._0x5947d6,0x10c));return;case _0x3ac2b6(0x302,_0x52ac87._0x38696a,_0x52ac87._0x5d31f1,0x282):if(typeof _0xb7bf31!==_0x3ac2b6(_0x52ac87._0x37baf4,_0x52ac87._0x3a1844,_0x52ac87._0x5a0a08,_0x52ac87._0x5bc37f))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x30eda4+_0x3ac2b6(0x275,_0x52ac87._0x5ae6bb,_0x52ac87._0x32accf,0x28b));return;case _0x3ac2b6(0x286,0x2a0,0x2ca,0x227):if(!Array[_0x3ac2b6(0x36f,_0x52ac87._0x52d3ab,_0x52ac87._0x365916,_0x52ac87._0x100eca)](_0xb7bf31))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x30eda4+_0x3521fe(_0x52ac87._0x21b484,0x187,0x11a,_0x52ac87._0x3615e3));_0xb7bf31[_0x3ac2b6(_0x52ac87._0x3e62ad,0x251,0x2db,_0x52ac87._0x12cad1)]((_0x4edca3,_0x280b3f)=>{const _0x2e6f1c={_0x4948a9:0x376};function _0x27f380(_0x22b029,_0x475faa,_0x94e43e,_0x3a55a5){return _0x3ac2b6(_0x22b029-0xa8,_0x475faa- -_0x2e6f1c._0x4948a9,_0x94e43e-0x150,_0x94e43e);}validateAgainstSchema(_0x30eda4+'['+_0x280b3f+']',_0x4edca3,_0x15ccde[_0x27f380(-0xa5,-0xdd,-0xdf,-0x7d)]);});return;case _0x3521fe(_0x52ac87._0x2f82fe,_0x52ac87._0x14740f,_0x52ac87._0x3b15c2,0x1ea):if(!isJsonObject(_0xb7bf31))throw new Error(_0x3ac2b6(_0x52ac87._0x3512df,0x318,0x2ed,_0x52ac87._0x694e35)+_0x30eda4+_0x3ac2b6(_0x52ac87._0x555405,_0x52ac87._0x2839e9,0x24f,_0x52ac87._0x34e184));for(const _0xf60460 of _0x15ccde[_0x3521fe(_0x52ac87._0x254dd2,_0x52ac87._0x3691ab,_0x52ac87._0x22eef2,_0x52ac87._0x47cfbc)]??[]){if(!Object[_0x3ac2b6(_0x52ac87._0x3f1cec,0x317,0x357,0x376)](_0xb7bf31,_0xf60460))throw new Error(_0x3ac2b6(0x2a5,_0x52ac87._0x3a10e3,_0x52ac87._0x430229,_0x52ac87._0x26a21f)+_0x30eda4+_0x3521fe(_0x52ac87._0x467cd4,_0x52ac87._0x5b72dd,_0x52ac87._0x5e4abe,0x1bc)+_0xf60460+'\x22');}if(_0x15ccde[_0x3ac2b6(0x223,0x209,0x18d,0x251)]===![]){const _0x5bf385=Object[_0x3ac2b6(_0x52ac87._0x11bc86,0x28e,0x21c,0x299)](_0xb7bf31)[_0x3521fe(_0x52ac87._0x4583f9,0x16f,_0x52ac87._0x5df75a,_0x52ac87._0x2efce1)](_0x25a23d=>!Object[_0x3ac2b6(0x393,0x317,0x329,0x38c)](_0x15ccde[_0x3521fe(0x16f,0x9e,0x93,0x11b)],_0x25a23d));if(_0x5bf385!==void 0x0)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x30eda4+_0x3521fe(_0x52ac87._0x5d4245,0xdb,_0x52ac87._0x3d4897,0x146)+_0x5bf385+'\x22');}for(const [_0x878e2b,_0xbe868d]of Object[_0x3521fe(0x142,0x163,_0x52ac87._0x178394,0x101)](_0x15ccde['properties'])){Object[_0x3ac2b6(_0x52ac87._0x28535d,0x317,_0x52ac87._0x25c143,0x388)](_0xb7bf31,_0x878e2b)&&validateAgainstSchema(_0x30eda4+'.'+_0x878e2b,_0xb7bf31[_0x878e2b],_0xbe868d);}}}function normalizeToolOutputValue(_0x3f8de6){const _0x558836={_0x13c89d:0x10d,_0x52f3f3:0xbc,_0x1c9a69:0x1f2,_0x1fae93:0x14f,_0x412c34:0x23,_0x24547f:0x9,_0x204d8c:0x1a8,_0x8146cb:0x1a1,_0x556578:0x1b3,_0x1aa950:0x1ce,_0x54cbc3:0x1bb,_0x5b6896:0xf7,_0x26c051:0x1e7,_0x4d8a48:0x186,_0x18cbf9:0xb1,_0x221b1e:0xfb},_0x2c1377={_0x1527f6:0x18},_0x1bbda6={_0xb679c8:0xfa};if(isToolOutputEnvelope(_0x3f8de6))return{'output':_0x3f8de6[_0x2bd9d8(0xc8,_0x558836._0x13c89d,_0x558836._0x52f3f3,0x9c)],'structured':_0x3f8de6[_0x2bd9d8(_0x558836._0x1c9a69,_0x558836._0x1fae93,0x163,0x17a)]??{'value':_0x3f8de6['output']},..._0x3f8de6[_0x2bd9d8(0xd,_0x558836._0x412c34,_0x558836._0x24547f,0x8f)]!==void 0x0?{'content':_0x3f8de6[_0x2b9a16(_0x558836._0x204d8c,_0x558836._0x8146cb,0x205,_0x558836._0x556578)]}:{}};if(typeof _0x3f8de6===_0x2b9a16(0x1a6,0x1b3,_0x558836._0x1aa950,_0x558836._0x54cbc3))return{'output':_0x3f8de6,'structured':{'value':_0x3f8de6}};function _0x2b9a16(_0xdc19ef,_0x24859c,_0x35aba9,_0xd0d945){return _0x2bfb(_0x24859c-_0x1bbda6._0xb679c8,_0xdc19ef);}if(typeof _0x3f8de6==='object'&&_0x3f8de6!==null&&!Array[_0x2bd9d8(_0x558836._0x5b6896,_0x558836._0x26c051,_0x558836._0x4d8a48,0x163)](_0x3f8de6))return{'output':JSON[_0x2bd9d8(0xe6,0xce,0x137,_0x558836._0x18cbf9)](_0x3f8de6,null,0x2),'structured':_0x3f8de6};function _0x2bd9d8(_0x5aa89b,_0x3dec80,_0x5c3d25,_0x198812){return _0x2bfb(_0x198812- -_0x2c1377._0x1527f6,_0x5c3d25);}return{'output':JSON[_0x2bd9d8(0x65,0xb8,_0x558836._0x221b1e,0xb1)](_0x3f8de6,null,0x2),'structured':{'value':_0x3f8de6}};}function createToolOutput(_0x4c8c9e,_0x508779={'value':_0x4c8c9e},_0x569c87){return{'output':_0x4c8c9e,'structured':_0x508779,..._0x569c87!==void 0x0?{'content':_0x569c87}:{}};}var ToolExecutionError=class extends Error{['structured'];constructor(_0x2a9ae4,_0x29ed48={}){const _0x45f325={_0x45bd7e:0x535},_0x245533={_0x3458f3:0x38e};function _0x11cfde(_0x27b25a,_0x19b94f,_0x3e93b8,_0x40afb2){return _0x2bfb(_0x19b94f-_0x245533._0x3458f3,_0x40afb2);}super(_0x2a9ae4),this[_0x11cfde(0x50d,_0x45f325._0x45bd7e,0x545,0x54f)]='ToolExecutionError',this['structured']=_0x29ed48;}};function defineTool(_0x4d6a9b){return _0x4d6a9b;}function _0x282c(){const _0x17390f=['CMvHC29UAw5Nvg9Rzw5Z','tw9KzwXvC2fNzu92zxjMBg93rxjYB3i','oIb1BMv4CgvJDgvKigzPzwXKici','y29UDgvUDeLUzgv4','y29UDgv4DfDPBMrVD0XPBwL0','CMvWB3j0zwrdB3n0','C3vTBwfYEuLUzgv4','C2L6zq','BgfZDfjLC3bVBNnL','C2vZC2LVBI0','iIbMB3iG','CMvZzxrnzxnZywDLCW','CNvUt2jZzxj2zxjZ','AxrLBuLK','oIbLEhbLy3rLzcbVyMPLy3q','x3n5C3rLBvbYB21WDa','oMfZC2LZDgfUDdO','DxnHz2u','zxzLCNK','ywnXDwLYzq','zxHLy3v0zq','DhjPBq','zgvMyxvSDe1LC3nHz2u','zw5HyMXLza','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','AxntywzLsw50zwDLCG','y2f1C2u','yxnZAxn0yw50','DhvYBL9JB21WBgv0zq','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','y2XVC2u','ywDLBNq','BM93','CMvHC29UAw5Nq29TCgXLDgvKqxq','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','Bw9KzwXFCMvZCg9UC2u','ChjPy2LUz1bYB3zPzgvYswq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Dg9VBenHBgXqyxrO','C3vIywDLBNrszxbVCNq','ywrK','BwfW','y2H1BMS','A2v5CW','zgvSzxrL','y2f0y2G','nZC4nJiZmMDwqNrlAG','oNjLyxnVBMLUzW','Bwv0ywrHDge','y29TCgXLDgvK','C2v0u2vZC2LVBKLK','Dg9VBe5HBwu','zNjLzxPL','zgvWCW','AxrLBxm','Dg90ywXuB2TLBNm','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','oIbLEhbLy3rLzcbIB29SzwfU','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','Aw5JBhvKzxm','DMfSDwu','yxjYyxK','Dg9VBf91C2vFBwvZC2fNzq','BgvUz3rO','ChjVDMLKzxjtDgf0zq','Dg90ywXszwfZB25PBMDuB2TLBNm','Dg9VBf9YzwPLy3rLza','y29TCgXLDgvZuMvXDwvZDa','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','CMvWB3j0zwrdB3n0q2fSBenVDw50','ntjnsg1gzgK','C3rYzwfT','DhvYBLvZywDL','Dg9VBhm','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','DMfSDwvZ','zxHLy3v0Aw9Uu2nVCgu','CMvJB3jKvg9VBenHBgW','Bw9KzwXdywXSq291BNq','yMvMB3jLvg9VBev4zwn1DgLVBG','Dg90ywXdB3n0vxnKvgLJA3m','D3jPDgu','odq0otG2zKjOr3ji','Dg9VBf9ZDgfYDgvK','y29UDgvUDf9KzwX0yq','BwvZC2fNzq','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','z2v0vg9VBhm','y2fSBeLK','CMvXDwvZDgvKtMfTzq','DgHLBG','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','BNvTyMvY','ywX3yxLZlwnVBMzPCM0','CMvXDwvZDenVDw50','ugfYzw50ihrVB2WGzxHLy3v0Aw9UihnLDhrSzwq','C3rHDhvZ','ywXS','DhvYBKLUzgv4','C2vZC2LVBKLK','C2XPy2u','yxnZAxn0yw50x2nODw5R','BMv4Da','ywz0zxjnB2rLBfjLC3bVBNnL','CMvHC29UAw5Nx21LC3nHz2u','yxnZAxn0yw50x21LC3nHz2u','DhjHBNnMB3jTzxi','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','B3v0Chv0rM9YBwf0','ywjVCNq','y2HHDe1VzgvS','zxjYB3i','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','C2v0q2HHDe1VzgvS','C3LZDgvT','Aw5KzxG','yxnRvxnLCG','C2v0','BwvZC2fNzxm','ywz0zxjuDxjUq29TCgXLDgu','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','zMLSDgvY','mJe2ndG2mfL0sePNAW','Dg9VBenHBgW','CMvZDwX0','zg9Uzq','C2v0vg9VBhm','A2LUza','CMv0DxjU','ywn0Aw9U','CMvZB2X2zq','vw5RBM93BIb0B29SoIa','yMvMB3jLrMLUywXpDxrWDxq','CNvUvhjHBNnMB3jTzxjZ','DgHPBMTPBMC','Dg9tDhjPBMC','DhjHBNnPzw50sw5WDxq','DxnLCL9TzxnZywDL','Dg90ywXjBNb1DfrVA2vUCW','oIbLEhbLy3rLzcbVBMuGB2yG','AxnbCNjHEq','C3rHDgu','DxnLCG','yw1VDw50vxnKvgLJA3m','Aw50zxjUywXmAwzLy3LJBgu','Aw5WDxq','CMvNAxn0zxi','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','ywDLBNrjza','zhjHAw5tDgvLCMLUzW','Dg9VBf9JB21WBgv0zwq','Dg9VBf91C2vFzgvSDge','B25uB29Sq2fSBa','Bw9KzwW','C29YDa','AM9PBG','Dg9VBf9VDxrWDxrFy2H1BMS','CNvUswq','DgvYBwLUywW','zgvZy3jPChrPB24','Dg9VBenHBgXdB3vUDa','Dg90ywXnB2rLBfrPBwvnCW','yM9VBgvHBG','C3rYDwn0DxjLza','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','B2jQzwn0','CMvZCg9UC2u','C2vXDwvUy2u','DhvYBKLK','zxH0zxjUywXvC2fNzq','B3v0Chv0sw5KzxG','CNvU','tw9KzwWGDxnHz2uGDg90ywWGB3zLCMzSB3C','Dg9VBa','iIbPCYbHBhjLywr5igvUywjSzwq','Bw9KzwXjzgvUDgL0Eq','C2vZC2LVBKrPCG','ChjVz3jHBs1HyM9YDgvK','CMvHC29U','AgfZt3DU','sw52ywXPzcb0B29SigLUChv0igf0ia','z2v0q29UDgv4DfDPBMrVD0XPBwL0','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','BMfTzq','mtKYnZe4oejcDuLirq','zMLUywXFBwvZC2fNzq','oIbLEhbLy3rLzcbZDhjPBMC','ywrKAxrPB25HBfbYB3bLCNrPzxm','CMvHC29UAw5Nx2nODw5R','zMfPBa','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','Dg9VBf91C2vFy2H1BMS','zMLUywXnzxnZywDL','DhLWzq','CMvXDwLYzwq','ChjVz3jHBs1PBNrLCM1LzgLHDgu','B25vC2vYtwvZC2fNzq','yMvNAw5qCM9NCMfTvhjHy2u','zxH0zw5ZAw9UCW','Dg90ywXpDxrWDxruB2TLBNm','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','Bw9KzwXdywXSCW','Dg9VBf9JywXS','C3rYzwfTAw5N','zMLUza','y29UDgvUDa','CMvJB3jKrxzLBNq','DhjHy2u','CMvXDwvZDa','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','zw50CMLLCW','zxn0Aw1HDgvKq29ZDa','y29TBwL0vgvYBwLUywXtDgf0zq','nJq5mdKWne9PBK9Iqq','CMvHC29UAw5NtwvZC2fNzuLK','Bw9KzwXuAw1Ltxm','DhvYBKnVBxbSzxrLzef0','CMvNAxn0CNK','B3v0Chv0','Bwv0yq','Dgv4Da','oIbLEhbLy3rLzcbUDw1Izxi','B3v0Chv0vg9Rzw5Z','C3rYAw5N','Aw5WDxruB2TLBNm','C3LZDgvTuhjVBxb0','CMvHC29UAw5Nu3rHCNrLzef0','mZqZotvwquflteW','CMvTB3zLrxzLBNrmAxn0zw5LCG','C3rHz2u','zgvSDge','ChvZAa','ywjVCNrLza','BwLZC2LUz0HPC3rVCMLJywXnB2rLBenHBgXdB3vUDa','Bwv0CMLJCW','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','ChjVCgvYDgLLCW','CMvHza','zxHLy3v0zunHBgXZ','C3rYAw5NAwz5','DhvYBLn0yxj0zwrbDa','C2v0u3LZDgvTuhjVBxb0','zw51Bq','CMvQzwn0','Dg9VBenHBgXjza','y3vTDwXHDgL2zvvZywDL','ou5NqMv3qG','C2LNBMfS','yw55t2y','DhvYBI0','B25fDMvUDa','mJaZodeZngrPBuTdrq','yMvMB3jLtw9KzwXszxf1zxn0','B3jPz2LU','C29Tzq','y29TCgXLDgu','C3vIBwLZC2LVBG','yxnZAxn0yw50twvZC2fNzuLK','Dg9VBf91C2u','zM9YrwfJAa','CMfUzg9T','CgvYBwLZC2LVBKnSyxnZ','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','z2v0','B2jZzxj2zxi','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','ywz0zxjuB29SuMvZDwX0','B3jKzxi','oIbLEhbLy3rLzcbHCNjHEq','Bwf4vg9Rzw5Z','Dg9VBfj1BNrPBwu','Dg9VBhncEu5HBwu','Bw9KzwXFCMvXDwvZDa','Aw5WDxrty2HLBwe','AgLZDg9YAwnHBe1LDhjPy3ndB21WBgv0zq','BgLZDfrVB2Xty2HLBwfZ','Aw5WDxrezwX0yq'];_0x282c=function(){return _0x17390f;};return _0x282c();}function resolveToolPermissionClass(_0x49a741){const _0x2a2bbb={_0x1ac1d5:0x23f,_0x59f970:0x1cb,_0x26158a:0x24d,_0x1c637f:0x63,_0x24b212:0xa2,_0x2ec4a1:0x137,_0x5c3a66:0x10c,_0x509034:0x119,_0xebae99:0x143,_0x17b4db:0x153,_0x5f1486:0x1cf},_0x202c0e=_0x49a741?.[_0x4d2082(-_0x2a2bbb._0x1ac1d5,-_0x2a2bbb._0x59f970,-_0x2a2bbb._0x26158a,-0x1fe)];function _0x4d2082(_0xc2a4d7,_0x3e286b,_0x5545e6,_0x1eed4a){return _0x2bfb(_0x1eed4a- -0x2dd,_0x5545e6);}if(_0x202c0e===_0x5031a0(0xcc,0xbe,_0x2a2bbb._0x1c637f,_0x2a2bbb._0x24b212)||_0x202c0e===_0x5031a0(0xaf,_0x2a2bbb._0x2ec4a1,_0x2a2bbb._0x5c3a66,0x116)||_0x202c0e===_0x5031a0(_0x2a2bbb._0x509034,_0x2a2bbb._0xebae99,_0x2a2bbb._0x17b4db,0x195))return _0x202c0e;function _0x5031a0(_0x49473d,_0x457845,_0x16b3da,_0x58d22f){return _0x2bfb(_0x457845- -0x9,_0x16b3da);}return _0x4d2082(-0x199,-0x184,-_0x2a2bbb._0x5f1486,-0x191);}var ToolRegistry=class{[_0x1e96ec(0x35c,0x332,0x372,0x36f)]=new Map();constructor(_0x481ab1=[]){const _0x20fbb6={_0x5daa3a:0x2b0,_0x4ebf2d:0x2b4},_0x1835d6={_0x8f2d8e:0xd9,_0x3ad82b:0x1b8,_0x405d9d:0x63a};function _0x4d0b17(_0x50e962,_0x4fdfe7,_0x1b97d3,_0x35b78e){return _0x1e96ec(_0x4fdfe7,_0x4fdfe7-_0x1835d6._0x8f2d8e,_0x1b97d3-_0x1835d6._0x3ad82b,_0x1b97d3- -_0x1835d6._0x405d9d);}for(const _0x5b618c of _0x481ab1){this[_0x4d0b17(-_0x20fbb6._0x5daa3a,-_0x20fbb6._0x4ebf2d,-0x233,-0x224)](_0x5b618c);}}['register'](_0x2de7b9){const _0x110c05={_0x3d20fa:0x395,_0x51b9c5:0x41f,_0x24145e:0x46a,_0x29cb67:0x410,_0x53b4c8:0x429,_0x46ea71:0x31d},_0x14ad8a={_0x60f6fa:0xa5,_0x212a30:0x26},_0x196cee={_0x6199b2:0xa0};function _0xcd0175(_0x1c9cc7,_0x33f6b2,_0x53fa68,_0xf132e1){return _0x1e96ec(_0x53fa68,_0x33f6b2-_0x196cee._0x6199b2,_0x53fa68-0x14a,_0x33f6b2- -0x135);}function _0xe8b63d(_0x29c65e,_0x590fd7,_0x3c9f34,_0x122dfb){return _0x1e96ec(_0x122dfb,_0x590fd7-0x0,_0x3c9f34-_0x14ad8a._0x60f6fa,_0x590fd7-_0x14ad8a._0x212a30);}this[_0xe8b63d(0x3ea,_0x110c05._0x3d20fa,0x36f,_0x110c05._0x51b9c5)][_0xe8b63d(_0x110c05._0x24145e,_0x110c05._0x29cb67,0x459,_0x110c05._0x53b4c8)](_0x2de7b9[_0xcd0175(0x29b,0x2f8,_0x110c05._0x46ea71,0x329)],_0x2de7b9);}[_0x1e96ec(0x2ec,0x3ab,0x345,0x367)](_0x4b075a){const _0x54c833={_0x2710b7:0xb5,_0x520b19:0x117,_0xd92573:0xc5,_0x3941af:0x7e},_0x1e43b0={_0x3d7184:0xd5,_0x123ebc:0x114,_0x173713:0x485},_0x5c5821={_0x32672e:0xd1,_0x316803:0x63};function _0x39e7fa(_0x38c990,_0x5193f6,_0xf47233,_0x14fcf9){return _0x1e96ec(_0x5193f6,_0x5193f6-_0x5c5821._0x32672e,_0xf47233-_0x5c5821._0x316803,_0x38c990- -0x42c);}function _0x27601(_0x1fe9f8,_0x199d1a,_0x529b2d,_0x2156ba){return _0x1e96ec(_0x1fe9f8,_0x199d1a-_0x1e43b0._0x3d7184,_0x529b2d-_0x1e43b0._0x123ebc,_0x199d1a- -_0x1e43b0._0x173713);}return this[_0x27601(-_0x54c833._0x2710b7,-0x116,-_0x54c833._0x520b19,-0x127)][_0x39e7fa(-_0x54c833._0xd92573,-_0x54c833._0x3941af,-0x139,-0x3c)](_0x4b075a);}['list'](){const _0x2b6302={_0xf315c6:0x20,_0x5844aa:0x48},_0x3a663e={_0x39fd56:0x1a5,_0xc5c5d6:0x64};function _0x49c983(_0x57b46a,_0x15aafb,_0x595d97,_0x19d8f4){return _0x1e96ec(_0x595d97,_0x15aafb-_0x3a663e._0x39fd56,_0x595d97-_0x3a663e._0xc5c5d6,_0x57b46a- -0x3e0);}return[...this['toolsByName'][_0x49c983(-_0x2b6302._0xf315c6,-_0x2b6302._0x5844aa,0x2d,-0x2)]()];}[_0x36460c(0x36e,0x382,0x3dc,0x3a7)](){const _0x317ebe={_0x1455f8:0xde},_0x35e641={_0x594121:0x8d,_0x579d49:0x54,_0x5a2a8c:0x6d,_0x5f2f3b:0x44,_0x23ff05:0x417,_0x3967d0:0x38c},_0x1539ee={_0x11f511:0x179,_0x743bea:0x12e},_0x313836={_0x160733:0x18,_0x26668c:0x2c8};function _0x40d788(_0x1b530f,_0x41ef4c,_0x2cd14e,_0x1c67dc){return _0x36460c(_0x1b530f-_0x313836._0x160733,_0x1b530f- -_0x313836._0x26668c,_0x2cd14e,_0x1c67dc-0x6e);}return this['list']()[_0x40d788(0xe5,0x168,_0x317ebe._0x1455f8,0x7b)](_0x2c52f3=>{const _0x3a6fdb={_0x51bab6:0x2d4,_0x4781c1:0x1c};function _0x242fb9(_0x2d0748,_0x3bd2f8,_0x1f0f38,_0x269679){return _0x40d788(_0x2d0748- -0x1af,_0x3bd2f8-_0x1539ee._0x11f511,_0x3bd2f8,_0x269679-_0x1539ee._0x743bea);}function _0x5cf92c(_0x5a06b7,_0x1d3f25,_0x2e8a12,_0x4a0e21){return _0x40d788(_0x4a0e21-_0x3a6fdb._0x51bab6,_0x1d3f25-0x1f4,_0x2e8a12,_0x4a0e21-_0x3a6fdb._0x4781c1);}return{'name':_0x2c52f3[_0x242fb9(-0x3b,0x15,-_0x35e641._0x594121,0x1d)],'description':_0x2c52f3[_0x242fb9(-_0x35e641._0x579d49,-0xd4,-_0x35e641._0x5a2a8c,-_0x35e641._0x5f2f3b)],'input_schema':_0x2c52f3[_0x5cf92c(_0x35e641._0x23ff05,0x40c,0x32d,_0x35e641._0x3967d0)]};});}};function validateToolInput(_0x1b12c4,_0x27699d){const _0x1c18b6={_0x5b6aaa:0xa1},_0x182382={_0x419a1c:0x43,_0x2a6136:0x340,_0x1b1da2:0x117};validateAgainstSchema(_0x199153(0xe0,0xd5,_0x1c18b6._0x5b6aaa,0x144),_0x1b12c4,_0x27699d);function _0x199153(_0x4fa858,_0x25f4d1,_0x5384f8,_0x14878b){return _0x36460c(_0x4fa858-_0x182382._0x419a1c,_0x25f4d1- -_0x182382._0x2a6136,_0x5384f8,_0x14878b-_0x182382._0x1b1da2);}return _0x1b12c4;}function deriveFinalToolOutput(_0x111119){const _0x34808c={_0x432d5e:0xbb,_0x11d5d2:0x64,_0x41f62e:0x113,_0x1c0a8b:0x41,_0x2c3189:0xa1,_0x3594ef:0x7e,_0x741b8b:0x41,_0x3c51a1:0x10,_0xfefbd3:0x6,_0x3ae2c6:0x49,_0x1e79ba:0x27,_0xe83495:0xb8,_0x2c71af:0xf5,_0x522ec6:0xf3,_0x224ac2:0x16f,_0x4f6544:0x70,_0x28fbb7:0x20,_0x2ff971:0x9f,_0x24ac72:0x97,_0x77c7f9:0x96,_0x46a7cf:0x10},_0x2b752b={_0x3eca5e:0x18},_0x314a76={_0xfc4619:0x185,_0x16be86:0xeb};if(_0x111119[_0x587673(0x34,0x10c,_0x34808c._0x432d5e,0x13c)]===0x0)return{'output':'','structured':{}};if(_0x111119[_0x587673(_0x34808c._0x11d5d2,0x13f,_0x34808c._0x432d5e,_0x34808c._0x41f62e)]===0x1)return{'output':_0x111119[0x0][_0x587673(0xc5,-0x4a,_0x34808c._0x1c0a8b,-0x46)],'structured':_0x111119[0x0]['structured'],..._0x111119[0x0][_0x587673(_0x34808c._0x2c3189,_0x34808c._0x3594ef,0x34,-_0x34808c._0x741b8b)]!==void 0x0?{'content':_0x111119[0x0][_0x345105(_0x34808c._0x3c51a1,-_0x34808c._0xfefbd3,-_0x34808c._0x3ae2c6,_0x34808c._0x1e79ba)]}:{}};const _0x4525df=_0x111119[_0x587673(0x6d,_0x34808c._0xe83495,_0x34808c._0x2c71af,0xc0)](_0x3627dd=>_0x3627dd['content']!==void 0x0);function _0x587673(_0x353306,_0x22446c,_0x5cb17c,_0x53a7a6){return _0x36460c(_0x353306-_0x314a76._0xfc4619,_0x5cb17c- -0x308,_0x53a7a6,_0x53a7a6-_0x314a76._0x16be86);}function _0x345105(_0x5366ba,_0x3029f2,_0x390b72,_0x20eaad){return _0x1e96ec(_0x3029f2,_0x3029f2-_0x2b752b._0x3eca5e,_0x390b72-0x183,_0x5366ba- -0x31d);}return{'output':_0x111119['map'](_0x16b084=>_0x16b084[_0x587673(0x83,0x37,0x41,-0x2f)])[_0x345105(_0x34808c._0x522ec6,0x12f,_0x34808c._0x224ac2,_0x34808c._0x4f6544)](''),'structured':{'chunks':_0x111119[_0x587673(0xf3,_0x34808c._0x28fbb7,0xa5,_0x34808c._0x2ff971)](_0x338d53=>_0x338d53[_0x345105(0xfb,0xd3,0x100,0x150)])},..._0x4525df[_0x345105(_0x34808c._0x24ac72,0xe3,_0x34808c._0x77c7f9,0xc7)]===0x1?{'content':_0x4525df[0x0][_0x345105(_0x34808c._0x46a7cf,0x63,0x2e,0x23)]}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0xb6a0c9){const _0x31a6bb={_0x1e7d5b:0x241,_0x5293a4:0x255,_0x53e43c:0x207,_0x515ec8:0x2ce,_0x52e2bf:0x2b7,_0x285641:0x240},_0x2c4b43={_0xf09e37:0x58,_0x4d3ffa:0x5ee},_0x58157f={_0x909a53:0x5a,_0x14ea53:0xc6};function _0x2bc334(_0xe337b1,_0x111984,_0xe371f4,_0x2c818c){return _0x36460c(_0xe337b1-_0x58157f._0x909a53,_0xe371f4- -0x1d4,_0x2c818c,_0x2c818c-_0x58157f._0x14ea53);}super(_0x2bc334(_0x31a6bb._0x1e7d5b,0x22e,_0x31a6bb._0x5293a4,_0x31a6bb._0x53e43c),{'cause':_0xb6a0c9});function _0x43543a(_0x415d7a,_0x23707c,_0x2a8afc,_0xa9bec5){return _0x36460c(_0x415d7a-_0x2c4b43._0xf09e37,_0x2a8afc- -_0x2c4b43._0x4d3ffa,_0x415d7a,_0xa9bec5-0x0);}this[_0x2bc334(0x1e2,_0x31a6bb._0x515ec8,0x268,0x1f0)]=_0x43543a(-0x2ab,-0x330,-_0x31a6bb._0x52e2bf,-_0x31a6bb._0x285641);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x5e875f,_0x522bde){const _0x163c9d={_0x16ef3e:0x20a,_0x401899:0x1e0,_0x7c9251:0x25a,_0x4a1787:0x214,_0x27fb49:0x21b},_0x404f52={_0x2a9dfd:0x3a},_0x1d1e06={_0x3baa25:0x176,_0x5b78ed:0x84};function _0x344cef(_0x25f61e,_0x378129,_0x5987df,_0x3a7560){return _0x1e96ec(_0x5987df,_0x378129-_0x1d1e06._0x3baa25,_0x5987df-_0x1d1e06._0x5b78ed,_0x25f61e- -0x571);}function _0x483a5b(_0x4eab8f,_0xe8604b,_0x50ccc3,_0x458fd6){return _0x1e96ec(_0x4eab8f,_0xe8604b-_0x404f52._0x2a9dfd,_0x50ccc3-0xd1,_0x458fd6- -0x15b);}_0x5e875f&&boundNestedExecutionControls[_0x344cef(-_0x163c9d._0x16ef3e,-0x229,-_0x163c9d._0x401899,-0x186)](_0x5e875f)?.[_0x344cef(-0x1de,-_0x163c9d._0x7c9251,-_0x163c9d._0x4a1787,-_0x163c9d._0x27fb49)](_0x522bde);}function _0x1e96ec(_0xd62129,_0x520eec,_0x3457d2,_0x55fee4){return _0x2bfb(_0x55fee4-0x286,_0xd62129);}async function drainBoundNestedToolPersistence(_0x5cd9ae){_0x5cd9ae&&await boundNestedExecutionControls['get'](_0x5cd9ae)?.['drainPersistence']();}function commitBoundToolExecutionTerminalState(_0x1fcddc){const _0xf59a12={_0xf11cee:0x43,_0x3b9e2d:0x41,_0xb67f51:0x8d},_0x3d04bb={_0x4e0fb0:0xc5},_0x59b4ca={_0x48837e:0x70,_0x430367:0x94,_0x2d6916:0x1c9};function _0x2faf3c(_0x29fed5,_0x1d96b3,_0x469716,_0x35844a){return _0x36460c(_0x29fed5-_0x59b4ca._0x48837e,_0x35844a- -_0x59b4ca._0x430367,_0x469716,_0x35844a-_0x59b4ca._0x2d6916);}function _0x4fdb90(_0x2b39df,_0x1b32f7,_0x3e9286,_0x29ccad){return _0x1e96ec(_0x1b32f7,_0x1b32f7-_0x3d04bb._0x4e0fb0,_0x3e9286-0xe,_0x2b39df- -0x385);}_0x1fcddc&&boundNestedExecutionControls[_0x4fdb90(-0x1e,-_0xf59a12._0xf11cee,-0x6c,-_0xf59a12._0x3b9e2d)](_0x1fcddc)?.[_0x4fdb90(-0x51,-_0xf59a12._0xb67f51,-0xac,-0x96)]();}var PARENT_TOOL_SETTLED_MESSAGE=_0x36460c(0x3c1,0x3e3,0x403,0x382);function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x1e9e02,_0xacdb7e,_0xb3fb1b,_0x2c9751,_0x36c4ed=[]){const _0x3b145b={_0x42f936:0x1ab},_0x37b035={_0x5dd5a7:0x103,_0xf36ed9:0x13,_0x3d5842:0x565};function _0xea41cd(_0x5b9da6,_0x3c7341,_0x430f44,_0xb50440){return _0x1e96ec(_0x5b9da6,_0x3c7341-_0x37b035._0x5dd5a7,_0x430f44-_0x37b035._0xf36ed9,_0xb50440- -_0x37b035._0x3d5842);}return{'callId':_0x1e9e02,'toolName':_0xacdb7e,'status':_0xea41cd(-_0x3b145b._0x42f936,-0x177,-0x1dc,-0x181),'output':_0xb3fb1b,'structured':_0x2c9751,'chunks':_0x36c4ed,'meta':createToolMeta()};}function createRejectedToolResult(_0x3d876b,_0x400437,_0x5b468c){const _0x50400d={_0x4eb30c:0x1bd,_0x374965:0x202,_0x49ec80:0x1aa,_0x5d3e7c:0x1b6,_0x528010:0x20f,_0x3ab9bc:0x7b,_0x212acc:0xa0,_0x144c8e:0x1e,_0x1b4252:0x24},_0x1390bc={_0x133ac9:0x206},_0x15e42e={_0x52674c:0xe1,_0x10458f:0x3c0},_0x3c9128=_0x5b468c?.['trim']()[_0x3ad994(_0x50400d._0x4eb30c,0x1c4,_0x50400d._0x374965,_0x50400d._0x49ec80)]?_0x5b468c:_0x3ad994(_0x50400d._0x5d3e7c,0x1c0,0x202,_0x50400d._0x528010)+_0x400437;function _0x5b4e23(_0x3319a0,_0x25f266,_0x54c088,_0x800da2){return _0x36460c(_0x3319a0-_0x15e42e._0x52674c,_0x25f266- -_0x15e42e._0x10458f,_0x54c088,_0x800da2-0x165);}function _0x3ad994(_0x434cd5,_0x3de7f0,_0x41aafe,_0xf73f92){return _0x36460c(_0x434cd5-0xd3,_0x434cd5- -_0x1390bc._0x133ac9,_0xf73f92,_0xf73f92-0x1cb);}return createErrorToolResult(_0x3d876b,_0x400437,_0x3c9128,{'error':_0x5b4e23(-0x33,0x6,0x19,_0x50400d._0x3ab9bc),..._0x5b468c?.[_0x5b4e23(-_0x50400d._0x212acc,-0x27,-_0x50400d._0x144c8e,-0x8c)]()[_0x5b4e23(-0x3b,0x3,-_0x50400d._0x1b4252,0x51)]?{'reason':_0x5b468c}:{}});}function createAbortedToolResult(_0x5c5c49,_0x50906b,_0x11b834,_0x20c41d=[]){const _0x1b3147={_0x283543:0x11b,_0x57bbf1:0xfb,_0x312a9d:0xa4,_0x46ba9b:0x1fb,_0x37f2be:0x1ec,_0x4a0e1a:0x17f,_0x5eb49e:0x1a8},_0x507c2e={_0x18f44a:0xfb,_0x4a62e9:0x24b},_0x3ba995={_0x1fc8a6:0x1db,_0x8e0c9a:0x2af};function _0x138549(_0x467a75,_0x180c59,_0x41a47d,_0x26f09c){return _0x1e96ec(_0x26f09c,_0x180c59-_0x3ba995._0x1fc8a6,_0x41a47d-0xa9,_0x467a75- -_0x3ba995._0x8e0c9a);}if(_0x50906b==='Program')return createErrorToolResult(_0x5c5c49,_0x50906b,_0x27e7d5(_0x1b3147._0x283543,0x14c,_0x1b3147._0x57bbf1,_0x1b3147._0x312a9d),{'error':_0x138549(0x178,0xf6,_0x1b3147._0x46ba9b,_0x1b3147._0x37f2be),'aborted':!![]},_0x20c41d);function _0x27e7d5(_0x4cf4f8,_0x15b6a3,_0x310253,_0x44c32f){return _0x1e96ec(_0x310253,_0x15b6a3-_0x507c2e._0x18f44a,_0x310253-0x99,_0x4cf4f8- -_0x507c2e._0x4a62e9);}const _0x20bfe7=toAbortError(_0x11b834);return createErrorToolResult(_0x5c5c49,_0x50906b,_0x20bfe7['message'],{'error':_0x20bfe7[_0x27e7d5(_0x1b3147._0x4a0e1a,0x13f,0x1d3,0x15f)],..._0x11b834 instanceof ToolExecutionError?_0x11b834[_0x138549(0x169,_0x1b3147._0x5eb49e,0xe9,0x177)]:{},'aborted':!![]},_0x20c41d);}function createSuccessToolResult(_0x4fd49f,_0x54678d,_0x44649c,_0x5550c2){const _0x4f16fc={_0x10a8c8:0x222,_0x112556:0x220,_0x20edad:0x2eb,_0x4903e8:0x2e5,_0x1ae6a1:0x26b,_0xd76ff0:0x24c,_0xbb6029:0x2ba},_0x229492={_0x4c8176:0x1ec};function _0x2ccab1(_0x38390c,_0x1af88a,_0x5419c0,_0x8d673a){return _0x1e96ec(_0x8d673a,_0x1af88a-0xbc,_0x5419c0-0x67,_0x1af88a- -0xc2);}function _0x53193b(_0x44b696,_0x53518c,_0x4db282,_0x51f447){return _0x36460c(_0x44b696-_0x229492._0x4c8176,_0x4db282- -0x13c,_0x53518c,_0x51f447-0xdd);}return{'callId':_0x4fd49f,'toolName':_0x54678d,'status':'ok','output':_0x44649c[_0x53193b(_0x4f16fc._0x10a8c8,_0x4f16fc._0x112556,0x20d,_0x4f16fc._0x112556)],'structured':_0x44649c[_0x53193b(_0x4f16fc._0x20edad,0x2e3,0x2eb,0x344)],..._0x44649c[_0x53193b(0x21b,0x1cc,0x200,0x273)]!==void 0x0?{'content':_0x44649c[_0x2ccab1(_0x4f16fc._0x4903e8,_0x4f16fc._0x1ae6a1,_0x4f16fc._0xd76ff0,_0x4f16fc._0xbb6029)]}:{},'chunks':_0x5550c2,'meta':createToolMeta()};}function createUnknownToolResult(_0x6ec959,_0x5301a){const _0x2548b6={_0x575f85:0x3c6},_0x1057c6={_0x3c3595:0x158,_0x4ed458:0x37};function _0x41e6e7(_0x881fdf,_0x4dfb81,_0x2249a6,_0xf28909){return _0x36460c(_0x881fdf-_0x1057c6._0x3c3595,_0x4dfb81-0x2d,_0xf28909,_0xf28909-_0x1057c6._0x4ed458);}return createErrorToolResult(_0x6ec959,_0x5301a,_0x41e6e7(0x3d6,0x434,_0x2548b6._0x575f85,0x3bc)+_0x5301a,{'error':'unknown_tool'});}function cloneToolCallForPublication(_0x6e6054,_0xa076f3,_0x3ad512){const _0x148d69={_0x424e74:0xfc,_0x106d20:0x74},_0x48c22c={_0x5b7e64:0x17f};function _0x3699d4(_0x3a91aa,_0x2dd078,_0x125ed0,_0x21d2a6){return _0x36460c(_0x3a91aa-0x29,_0x2dd078- -0x40b,_0x21d2a6,_0x21d2a6-_0x48c22c._0x5b7e64);}return{...structuredClone(_0x6e6054),'type':_0x3699d4(-_0x148d69._0x424e74,-0x9a,-_0x148d69._0x106d20,-0x47),'id':_0xa076f3,'name':_0x3ad512};}function cloneToolResultChunkForPublication(_0x69bbec){return structuredClone(_0x69bbec);}function cloneToolResultForPublication(_0x512079,_0x347a4d,_0x1332d6){const _0x4a0ded={_0x32e864:0x21d,_0x30e139:0x1a7},_0x29f285={_0x4ca6ef:0x190},{chunks:_0x5d1087,..._0x2af860}=_0x512079;function _0x57606c(_0x511bf7,_0x3de29c,_0x1e12a1,_0x4e7c14){return _0x36460c(_0x511bf7-0x180,_0x511bf7- -_0x29f285._0x4ca6ef,_0x4e7c14,_0x4e7c14-0x170);}return{...structuredClone(_0x2af860),'callId':_0x347a4d,'toolName':_0x1332d6,'chunks':_0x5d1087[_0x57606c(_0x4a0ded._0x32e864,0x22e,_0x4a0ded._0x30e139,0x1d9)](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x5f2ace){const _0x59c657={_0x489028:0x29d,_0x52cf46:0x241,_0x5f5caa:0x23c,_0x5b5ca9:0x1dd,_0x325aea:0x1b9,_0x27bf9b:0x1dc,_0x4884eb:0x18e,_0x3f1100:0x204},_0x3ccb7d={_0x109ab6:0xf1,_0x2f4feb:0x5af},_0x37e324={_0x58dd82:0x161,_0x49b55b:0x1f1};function _0x12f621(_0xd6ae2e,_0x515d9a,_0x340726,_0x306b2d){return _0x36460c(_0xd6ae2e-_0x37e324._0x58dd82,_0x340726- -0x1e9,_0x306b2d,_0x306b2d-_0x37e324._0x49b55b);}function _0x49ee97(_0x4c73c8,_0x540666,_0x4532db,_0x3eb3f3){return _0x1e96ec(_0x4c73c8,_0x540666-0x1ed,_0x4532db-_0x3ccb7d._0x109ab6,_0x4532db- -_0x3ccb7d._0x2f4feb);}if(typeof _0x5f2ace!==_0x12f621(0x2c5,_0x59c657._0x489028,_0x59c657._0x52cf46,_0x59c657._0x5f5caa)||_0x5f2ace===null)return![];return _0x5f2ace['action']==='reject'||_0x5f2ace[_0x49ee97(-0x1f9,-_0x59c657._0x5b5ca9,-_0x59c657._0x325aea,-0x222)]===_0x49ee97(-0x116,-_0x59c657._0x27bf9b,-_0x59c657._0x4884eb,-_0x59c657._0x3f1100);}function normalizeExecutionError(_0x237020){const _0xb7abe2={_0xfb14e9:0xa6,_0x5bd6ce:0x122,_0x543dc1:0x176,_0xc73f73:0x11e,_0x1c9f5d:0x170,_0x75d56e:0x19b,_0x415bc8:0x1cc,_0x198a89:0x1b2,_0x5e1d0e:0x11b,_0x452bcd:0x1f7,_0x279b26:0x1b7},_0xf1b17a={_0x1ab8bd:0x1d4,_0x161772:0x188},_0x1a9b02={_0x1ebe41:0xda,_0x1a4e4b:0xcd};if(_0x237020 instanceof ToolExecutionError)return{'errorMessage':_0x237020['message'],'structured':{'error':_0x237020['message'],..._0x237020[_0x1dd0ac(-0xce,-_0xb7abe2._0xfb14e9,-_0xb7abe2._0x5bd6ce,-0xf3)]}};if(_0x237020 instanceof Error)return{'errorMessage':_0x237020[_0x151040(-_0xb7abe2._0x543dc1,-0x191,-0x1c4,-0x173)],'structured':{'error':_0x237020[_0x1dd0ac(-0x128,-_0xb7abe2._0xc73f73,-_0xb7abe2._0x1c9f5d,-0x138)]}};if(typeof _0x237020==='object'&&_0x237020!==null&&_0x1dd0ac(-_0xb7abe2._0x75d56e,-_0xb7abe2._0x415bc8,-0x170,-_0xb7abe2._0x198a89)in _0x237020&&typeof _0x237020[_0x1dd0ac(-_0xb7abe2._0x5e1d0e,-0x141,-0x170,-0x197)]===_0x1dd0ac(-0x286,-_0xb7abe2._0x452bcd,-0x1fb,-0x203))return{'errorMessage':_0x237020['message'],'structured':{'error':_0x237020[_0x1dd0ac(-0x13d,-_0xb7abe2._0x279b26,-0x170,-0x174)]}};function _0x151040(_0x3bb480,_0x4fe3c3,_0x9e53c4,_0x58bbaa){return _0x36460c(_0x3bb480-_0x1a9b02._0x1ebe41,_0x4fe3c3- -0x56a,_0x3bb480,_0x58bbaa-_0x1a9b02._0x1a4e4b);}function _0x1dd0ac(_0x466801,_0x4f0d98,_0x57e527,_0x131a68){return _0x36460c(_0x466801-_0xf1b17a._0x1ab8bd,_0x57e527- -0x549,_0x4f0d98,_0x131a68-_0xf1b17a._0x161772);}const _0x46833f=String(_0x237020);return{'errorMessage':_0x46833f,'structured':{'error':_0x46833f}};}function cloneToolEventForPublication(_0x1ae6b3){const _0x4d6cce={_0x20f639:0x2c8,_0x5443d3:0x2eb,_0x40b90d:0x274,_0x278ead:0x30d,_0x3e520b:0x2d1,_0x1ea19e:0x28c,_0x57f58a:0x329,_0x4dd244:0x36f,_0x1b7c2c:0x371,_0x52a943:0x380,_0x46a813:0x3a6,_0x2fe45a:0x405,_0x4555df:0x397,_0x2d9b44:0x36c,_0x14b579:0x358,_0x264329:0x445,_0x105707:0x3b5,_0x4ebd95:0x35f,_0x9706a6:0x3cd,_0x421315:0x338,_0x18becf:0x404,_0x1c0400:0x391,_0x29e95b:0x336,_0x45a1ff:0x3fa,_0x445dbe:0x392,_0x594ac4:0x431,_0x42218a:0x3d7,_0x394f1d:0x3e3,_0x2ea577:0x432,_0x3dd233:0x366,_0x5c3311:0x3c2,_0x469131:0x323,_0x7c4eaf:0x398,_0xa05c72:0x333,_0x1e9be8:0x3a7,_0x4ac2bd:0x400,_0x408aa3:0x303,_0x4ff2ce:0x3e9,_0x27a73f:0x3f5,_0x55c2fe:0x34f},_0x2f12c4={_0x172f4c:0x75,_0x430746:0x4a};function _0x52752b(_0x3e19bc,_0x449064,_0x5e7667,_0x32e80c){return _0x1e96ec(_0x32e80c,_0x449064-0x6b,_0x5e7667-_0x2f12c4._0x172f4c,_0x3e19bc- -_0x2f12c4._0x430746);}function _0x4b4be1(_0x5397e2,_0x100f9c,_0x4164b4,_0x278601){return _0x36460c(_0x5397e2-0x1d8,_0x100f9c- -0x68,_0x278601,_0x278601-0x31);}switch(_0x1ae6b3[_0x4b4be1(0x2d7,_0x4d6cce._0x20f639,_0x4d6cce._0x5443d3,_0x4d6cce._0x40b90d)]){case _0x4b4be1(_0x4d6cce._0x278ead,_0x4d6cce._0x3e520b,_0x4d6cce._0x1ea19e,_0x4d6cce._0x57f58a):case _0x4b4be1(0x336,_0x4d6cce._0x4dd244,_0x4d6cce._0x1b7c2c,0x2f8):return{..._0x1ae6b3,'toolCall':cloneToolCallForPublication(_0x1ae6b3[_0x52752b(0x3a6,0x353,_0x4d6cce._0x52a943,0x3de)],_0x1ae6b3[_0x52752b(_0x4d6cce._0x46a813,0x328,_0x4d6cce._0x2fe45a,0x3ac)]['id'],_0x1ae6b3[_0x4b4be1(0x3a3,_0x4d6cce._0x4555df,0x319,_0x4d6cce._0x2d9b44)][_0x52752b(0x3e3,_0x4d6cce._0x14b579,_0x4d6cce._0x264329,_0x4d6cce._0x105707)])};case _0x52752b(0x3c7,0x3e1,0x418,0x3e9):return{..._0x1ae6b3,'toolCall':cloneToolCallForPublication(_0x1ae6b3[_0x52752b(_0x4d6cce._0x46a813,0x3b3,0x349,0x3d4)],_0x1ae6b3[_0x52752b(0x3a6,_0x4d6cce._0x4ebd95,0x359,0x3d1)]['id'],_0x1ae6b3[_0x4b4be1(_0x4d6cce._0x9706a6,_0x4d6cce._0x4555df,_0x4d6cce._0x421315,_0x4d6cce._0x18becf)][_0x52752b(0x3e3,0x3ec,_0x4d6cce._0x1c0400,0x383)]),'chunk':cloneToolResultChunkForPublication(_0x1ae6b3[_0x4b4be1(0x394,0x346,0x3a4,_0x4d6cce._0x29e95b)])};case _0x52752b(0x3c1,_0x4d6cce._0x45a1ff,_0x4d6cce._0x445dbe,_0x4d6cce._0x594ac4):case'tool_rejected':return{..._0x1ae6b3,'toolCall':cloneToolCallForPublication(_0x1ae6b3['toolCall'],_0x1ae6b3['toolCall']['id'],_0x1ae6b3[_0x4b4be1(_0x4d6cce._0x46a813,0x397,0x343,_0x4d6cce._0x42218a)][_0x52752b(_0x4d6cce._0x394f1d,_0x4d6cce._0x2ea577,0x421,0x387)]),'result':cloneToolResultForPublication(_0x1ae6b3[_0x4b4be1(0x36f,0x398,0x419,_0x4d6cce._0x3dd233)],_0x1ae6b3['toolCall']['id'],_0x1ae6b3['toolCall'][_0x52752b(_0x4d6cce._0x394f1d,_0x4d6cce._0x5c3311,0x3ac,0x3b2)])};case'tool_result':return{..._0x1ae6b3,'result':cloneToolResultForPublication(_0x1ae6b3[_0x4b4be1(_0x4d6cce._0x469131,_0x4d6cce._0x7c4eaf,_0x4d6cce._0xa05c72,0x3b1)],_0x1ae6b3[_0x52752b(_0x4d6cce._0x1e9be8,0x41a,_0x4d6cce._0x4ac2bd,0x376)][_0x52752b(0x383,0x39b,_0x4d6cce._0x408aa3,_0x4d6cce._0x4ff2ce)],_0x1ae6b3[_0x52752b(0x3a7,0x370,_0x4d6cce._0x27a73f,0x366)][_0x4b4be1(0x363,_0x4d6cce._0x55c2fe,0x34c,_0x4d6cce._0x7c4eaf)])};default:return _0x1ae6b3;}}async function emitEvent(_0x5564b2,_0x33ab3b,_0x48b764){try{await _0x5564b2?.(cloneToolEventForPublication(_0x33ab3b),_0x48b764);}catch(_0x2685ed){throw new ToolRuntimeInfrastructureError(_0x2685ed);}}function actualCancellationHasPrecedence(_0x29eb66,_0x42b1df){const _0x5228d7={_0x1960f7:0x254,_0x18bfa4:0x2a5,_0x6631a1:0x258,_0x197266:0x229},_0x6af493={_0x1dca90:0xf,_0xf678a8:0x538,_0x208560:0x14d},_0x582c97={_0x2fb077:0x11f};function _0x2d75bb(_0x289cc1,_0x3b000c,_0x5362b7,_0x217efe){return _0x36460c(_0x289cc1-0x1c6,_0x217efe- -0xc1,_0x5362b7,_0x217efe-_0x582c97._0x2fb077);}function _0x8b32fc(_0x166097,_0x1b033a,_0x5399f2,_0x41fd8e){return _0x36460c(_0x166097-_0x6af493._0x1dca90,_0x166097- -_0x6af493._0xf678a8,_0x5399f2,_0x41fd8e-_0x6af493._0x208560);}return _0x29eb66[_0x2d75bb(0x236,_0x5228d7._0x1960f7,0x2ba,_0x5228d7._0x18bfa4)][_0x8b32fc(-0x1e1,-_0x5228d7._0x6631a1,-0x190,-_0x5228d7._0x197266)]&&!_0x42b1df;}function selectActualCancellationReason(_0x3c8fce,_0xb8aad3){const _0x981699={_0x25860c:0x14,_0x5b2856:0x87},_0x2f815d={_0x3cd00a:0x449};function _0x4cf50a(_0x37996a,_0x27e99d,_0x52fdba,_0x27f5a9){return _0x36460c(_0x37996a-0xe1,_0x27e99d- -_0x2f815d._0x3cd00a,_0x52fdba,_0x27f5a9-0x1ed);}return _0x3c8fce instanceof ToolExecutionError&&_0x3c8fce[_0x4cf50a(-0x81,-0x22,-_0x981699._0x25860c,-_0x981699._0x5b2856)]['aborted']===!![]?_0x3c8fce:_0xb8aad3;}function selectedTerminalStateHasPrecedence(_0x426221,_0x1a79b5,_0x37c896,_0x27564f){const _0x564114={_0x12bb07:0x1cd,_0x51d904:0x215,_0x32c137:0xae,_0xc59519:0xc9,_0x4b777d:0x47,_0x32d0c0:0x115,_0x2c5a05:0x208,_0x5761d3:0x1a5,_0x1e9ea8:0xe2,_0x25915d:0xf1,_0x41c8c0:0x18a,_0x5e7185:0x1ba,_0x371825:0x14f,_0x594c4e:0x1b1},_0x3613e9={_0x21038f:0x5,_0x277816:0x118};function _0x59dabc(_0x125114,_0x5c6aeb,_0x1a70b8,_0x56ced0){return _0x1e96ec(_0x56ced0,_0x5c6aeb-0xa4,_0x1a70b8-0x1aa,_0x125114- -0x5a2);}if(_0x1a79b5[_0x59dabc(-_0x564114._0x12bb07,-0x176,-0x256,-_0x564114._0x51d904)]!==_0x59dabc(-0x1be,-0x202,-0x1ba,-0x178))return![];if(!_0x27564f)return _0x1a79b5[_0x41f9e7(-_0x564114._0x32c137,-0x102,-_0x564114._0xc59519,-_0x564114._0x4b777d)][_0x41f9e7(-0x17e,-_0x564114._0x32d0c0,-_0x564114._0x2c5a05,-_0x564114._0x5761d3)]===!![]&&actualCancellationHasPrecedence(_0x37c896,_0x27564f);function _0x41f9e7(_0x314c75,_0x3d2b01,_0x272245,_0x4343c5){return _0x36460c(_0x314c75-_0x3613e9._0x21038f,_0x314c75- -0x4d5,_0x272245,_0x4343c5-_0x3613e9._0x277816);}if(_0x426221!=='Program')return![];return _0x1a79b5[_0x59dabc(-0x18a,-0x1f3,-0x10b,-0x1df)][_0x59dabc(-0x1be,-0x1e7,-0x1a4,-0x1f2)]==='program-aborted'||_0x1a79b5['structured'][_0x41f9e7(-_0x564114._0x1e9ea8,-_0x564114._0x25915d,-0xe4,-0x7f)]==='program-timeout'||_0x1a79b5[_0x59dabc(-_0x564114._0x41c8c0,-0x134,-0x17e,-_0x564114._0x5e7185)][_0x59dabc(-0x1be,-_0x564114._0x371825,-0x144,-_0x564114._0x594c4e)]==='program-resource-limit';}async function emitToolCompletedEventWithTerminalPrecedence(_0x24d889,_0xc29aa7,_0x4c6e6a,_0x3c190f,_0x35e33e,_0x250ef3,_0x39fadb=![]){const _0x15d6d5={_0x153fba:0x487,_0x1f1645:0x4c6,_0x2135e2:0x48b},_0x555fee={_0x2e09e5:0x1dc,_0x3ada3a:0x71};function _0x3dd5b4(_0x4915de,_0x5dfcdb,_0x125443,_0x13b49a){return _0x36460c(_0x4915de-_0x555fee._0x2e09e5,_0x125443-_0x555fee._0x3ada3a,_0x4915de,_0x13b49a-0x18b);}try{await emitEvent(_0x24d889,{'type':_0x3dd5b4(_0x15d6d5._0x153fba,_0x15d6d5._0x1f1645,_0x15d6d5._0x2135e2,0x45e),'toolCall':cloneToolCallForPublication(_0xc29aa7,_0x4c6e6a,_0x3c190f),'result':_0x35e33e},_0x250ef3);}catch(_0x1f8e8a){if(!(_0x1f8e8a instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x3c190f,_0x35e33e,_0x250ef3,_0x39fadb))throw _0x1f8e8a;}}async function awaitWithAbort(_0x1b4c8c,_0x343832){const _0x27615e={_0x3491ed:0x2c5,_0x5c1d7d:0x2d4},_0x17010d={_0x322d5a:0x4d8,_0x52d85c:0x494},_0x3827a4={_0x26ba59:0x460,_0x29b305:0x463},_0xab18e3={_0x122383:0x5b,_0x58bb88:0xe6};let _0x3e4b3a=()=>{},_0x295ada;function _0x244854(_0x5eaa38,_0x1842b3,_0x292e7e,_0x25704c){return _0x1e96ec(_0x292e7e,_0x1842b3-0xe6,_0x292e7e-_0xab18e3._0x122383,_0x5eaa38- -_0xab18e3._0x58bb88);}_0x343832&&(throwIfAborted(_0x343832),_0x295ada=new Promise((_0x4ee16f,_0xb77b6f)=>{const _0x3648ad={_0x3a9afc:0x2be};function _0x280fa5(_0x3f126e,_0x29b921,_0x876886,_0x3f7111){return _0x2bfb(_0x3f126e- -0x4d,_0x3f7111);}const _0x41815e=()=>{function _0x502985(_0x4f672b,_0x109d6c,_0x4044fe,_0x885a0b){return _0x2bfb(_0x4f672b-_0x3648ad._0x3a9afc,_0x885a0b);}_0xb77b6f(toAbortError(_0x343832[_0x502985(_0x3827a4._0x26ba59,0x41f,_0x3827a4._0x29b305,0x4a1)]));};_0x343832['addEventListener'](_0x226840(_0x17010d._0x322d5a,0x53a,_0x17010d._0x52d85c,0x4ca),_0x41815e,{'once':!![]});function _0x226840(_0xd950a9,_0x561ef9,_0x558381,_0x4e96de){return _0x2bfb(_0xd950a9-0x37c,_0x4e96de);}_0x3e4b3a=()=>_0x343832[_0x280fa5(0x71,-0x18,0xb7,0x3b)](_0x226840(0x4d8,0x4e7,0x4d0,0x51a),_0x41815e);}));const _0x48ab75=Promise['resolve']()[_0x244854(0x2e9,_0x27615e._0x3491ed,_0x27615e._0x5c1d7d,0x31b)](()=>{return throwIfAborted(_0x343832),_0x1b4c8c();});try{return await(_0x295ada?Promise['race']([_0x48ab75,_0x295ada]):_0x48ab75);}finally{_0x3e4b3a();}}function createNestedCallAdmissionGate(){const _0x3e01b3={_0x2df834:0x281},_0x2bbcfe={_0x291c4b:0x172,_0x4f5b5e:0x1a0,_0x4fe578:0x135,_0x10e5bc:0x1b9,_0xa0978:0xff,_0x11c2c4:0x1b3},_0x7f16b8={_0x482832:0x88,_0x221389:0x11d},_0xd53013={_0x42fa83:0x647};let _0x4e4f89=0x1;function _0x3b5660(_0x325676,_0x15bf32,_0x3d5c75,_0x362e93){return _0x36460c(_0x325676-0x25,_0x3d5c75- -_0xd53013._0x42fa83,_0x325676,_0x362e93-0x137);}let _0x5b0103=![],_0x314f01,_0x34b5b2=Promise[_0x3b5660(-0x210,-0x251,-0x241,-_0x3e01b3._0x2df834)]();const _0x293f00=new Set(),_0xdbd8e1=_0x4a6588=>{!_0x5b0103&&(_0x5b0103=!![],_0x314f01=_0x4a6588);for(const _0x1cf387 of[..._0x293f00]){_0x1cf387();}};return{'register'(_0x34aa7c){const _0x56f561={_0x154f6a:0x166,_0x1b56ec:0x145};if(_0x5b0103)throw _0x314f01;if(_0x34aa7c!==_0x4e4f89){const _0x4b64c5=new Error(_0x59f848(-_0x2bbcfe._0x291c4b,-0x195,-0x131,-0x144)+_0x34aa7c+_0x2c818f(-_0x2bbcfe._0x4f5b5e,-0x150,-_0x2bbcfe._0x4fe578,-_0x2bbcfe._0x10e5bc)+_0x4e4f89);_0xdbd8e1(_0x4b64c5);throw _0x4b64c5;}_0x4e4f89+=0x1;const _0x7ae740=_0x34b5b2;let _0x24cedb;function _0x2c818f(_0x59db5f,_0x20dce7,_0x34f40d,_0x439b8){return _0x3b5660(_0x439b8,_0x20dce7-_0x7f16b8._0x482832,_0x20dce7-_0x7f16b8._0x221389,_0x439b8-0x55);}_0x34b5b2=new Promise(_0x1c30f4=>{_0x24cedb=_0x1c30f4;});const _0x83e5a0=()=>{const _0x4cb125={_0x43acfa:0x31};if(_0x24cedb===void 0x0)return;const _0x3f5684=_0x24cedb;_0x24cedb=void 0x0;function _0x30b060(_0x53bc65,_0x16bc18,_0x594c71,_0x1cb1e2){return _0x2c818f(_0x53bc65-_0x4cb125._0x43acfa,_0x53bc65-0x361,_0x594c71-0x16,_0x594c71);}_0x293f00[_0x30b060(0x1e7,0x15c,0x252,0x209)](_0x83e5a0),_0x3f5684();};_0x293f00[_0x59f848(-0x148,-_0x2bbcfe._0xa0978,-_0x2bbcfe._0x11c2c4,-0x156)](_0x83e5a0);function _0x59f848(_0x28ac53,_0x517c4a,_0x5a2dbc,_0x45228f){return _0x3b5660(_0x5a2dbc,_0x517c4a-_0x56f561._0x154f6a,_0x45228f-_0x56f561._0x1b56ec,_0x45228f-0x5);}return{async 'admit'(_0x3e15c1,_0x127531){try{await awaitWithAbort(()=>_0x7ae740,_0x127531);if(_0x5b0103)throw _0x314f01;await _0x3e15c1();if(_0x5b0103)throw _0x314f01;}catch(_0x17de4e){_0xdbd8e1(_0x17de4e);throw _0x17de4e;}finally{_0x83e5a0();}},'fail'(_0x2dd2a1){_0xdbd8e1(_0x2dd2a1),_0x83e5a0();}};},'fail':_0xdbd8e1};}async function awaitRequiredPersistence(_0x415166,_0x5bf477,_0xba3049){const _0x7b696b={_0x121525:0x1b4,_0x2d881a:0x222,_0xcd7311:0x157,_0x1a54fe:0x1dc,_0xe3ca9a:0x194,_0x3e5d6e:0x228};await awaitWithAbort(()=>{const _0x1cadcd={_0x372f29:0xd6};function _0x1f2ccc(_0x4682e2,_0x491b0a,_0x49d3bb,_0x344706){return _0x2bfb(_0x4682e2- -0x325,_0x344706);}function _0x39912b(_0x3130df,_0x42de16,_0x1e0390,_0x1d5915){return _0x2bfb(_0x3130df-_0x1cadcd._0x372f29,_0x42de16);}const _0x2ee730=Promise[_0x1f2ccc(-_0x7b696b._0x121525,-0x210,-_0x7b696b._0x2d881a,-_0x7b696b._0xcd7311)]()[_0x1f2ccc(-_0x7b696b._0x1a54fe,-_0x7b696b._0xe3ca9a,-_0x7b696b._0x3e5d6e,-0x1b1)](_0x415166);return _0xba3049(_0x2ee730),_0x2ee730;},_0x5bf477);}async function awaitUncancellableAfterAdmission(_0x4b815e,_0xc478b){const _0x266d31={_0x1716d2:0x223,_0x21f76e:0x239};throwIfAborted(_0xc478b);function _0x3e286d(_0x594659,_0x5a2d51,_0x57bf08,_0x6a3791){return _0x1e96ec(_0x5a2d51,_0x5a2d51-0xdd,_0x57bf08-0xdc,_0x594659- -0x5a1);}const _0x2f7b2f=()=>{};_0xc478b['addEventListener'](_0x3e286d(-0x1bf,-0x1da,-_0x266d31._0x1716d2,-_0x266d31._0x21f76e),_0x2f7b2f,{'once':!![]});try{return throwIfAborted(_0xc478b),await _0x4b815e();}finally{_0xc478b['removeEventListener']('abort',_0x2f7b2f);}}async function resolveDispatchDecision(_0x1c7368,_0xf8149e,_0x1dbdbe){const _0xdd7cb5={_0x5a8210:0x1da,_0x362437:0x1d4,_0x30d328:0x232,_0x4e32ab:0x1a6,_0x20840f:0x17f,_0x685612:0x1ea,_0x95f060:0x118,_0x1aebb3:0xcf},_0x402343={_0x1f7539:0x66},_0x2eb936={_0x6c8833:0x247};if(!_0x1c7368)return{'action':_0x12974a(0x20e,_0xdd7cb5._0x5a8210,_0xdd7cb5._0x362437,_0xdd7cb5._0x30d328)};function _0x12974a(_0x4134f7,_0x4a892e,_0x1c3e74,_0x348518){return _0x1e96ec(_0x4134f7,_0x4a892e-0x6a,_0x1c3e74-0xde,_0x4a892e- -_0x2eb936._0x6c8833);}const _0x4a2a52=await awaitWithAbort(()=>_0x1c7368(_0xf8149e,_0x1dbdbe),_0x1dbdbe[_0x4421c6(-0x1e3,-_0xdd7cb5._0x4e32ab,-_0xdd7cb5._0x20840f,-_0xdd7cb5._0x685612)]);function _0x4421c6(_0x431655,_0x2ef61f,_0x57acae,_0x209439){return _0x1e96ec(_0x57acae,_0x2ef61f-_0x402343._0x1f7539,_0x57acae-0x18e,_0x431655- -0x53a);}return isDispatchDecision(_0x4a2a52)?_0x4a2a52:{'action':_0x4421c6(-0x119,-0x12b,-_0xdd7cb5._0x95f060,-_0xdd7cb5._0x1aebb3)};}async function prepareNestedToolCall(_0x389361,_0x4f0bd0,_0x488061,_0x2b0efd){const _0x344581={_0x2a83d2:0x1d6,_0x143ddc:0xe6},_0x38ee43={_0x484548:0x3e,_0x16337c:0xc9};function _0xb2e015(_0x533e82,_0x22ea0f,_0x3122b1,_0x1ee523){return _0x1e96ec(_0x22ea0f,_0x22ea0f-_0x38ee43._0x484548,_0x3122b1-0x1aa,_0x3122b1-_0x38ee43._0x16337c);}if(!_0x389361)return _0x4f0bd0;const _0x2afa17=await awaitWithAbort(()=>_0x389361[_0xb2e015(0x458,0x52e,0x4c3,0x457)](_0xb2e015(0x480,0x4eb,0x48d,0x491),_0x4f0bd0,_0x488061),_0x2b0efd);function _0x6ed09e(_0x1e3793,_0x30f34f,_0x1d0033,_0x365bff){return _0x36460c(_0x1e3793-_0x344581._0x2a83d2,_0x30f34f- -_0x344581._0x143ddc,_0x1e3793,_0x365bff-0x1c);}return throwIfAborted(_0x2b0efd),await awaitWithAbort(()=>_0x389361[_0xb2e015(0x433,0x435,0x44a,0x451)](_0xb2e015(0x46f,0x461,0x48d,0x40c),_0x2afa17,_0x488061),_0x2b0efd),_0x2afa17;}async function transformNestedToolResult(_0x458098,_0x56bfd0,_0x3f4407,_0x4a8191){const _0x3fc1c2={_0x1acec3:0x329,_0x30deef:0x14b};if(!_0x458098)return _0x56bfd0;const _0x4590b8=await awaitWithAbort(()=>_0x458098['runTransformers']('afterToolResult',_0x56bfd0,_0x3f4407),_0x4a8191);throwIfAborted(_0x4a8191),await awaitWithAbort(()=>_0x458098[_0x5b94d5(0x67,0x85,0xcc,0x85)](_0x4e7be0(-0x195,-0x19d,-0x1e5,-0x171),_0x4590b8,_0x3f4407),_0x4a8191);function _0x5b94d5(_0x2a01e4,_0x29db24,_0x2f29db,_0x1420f4){return _0x36460c(_0x2a01e4-0x1aa,_0x2a01e4- -_0x3fc1c2._0x1acec3,_0x2f29db,_0x1420f4-_0x3fc1c2._0x30deef);}function _0x4e7be0(_0x3765c4,_0x20ec13,_0x21ab19,_0x3351cf){return _0x36460c(_0x3765c4-0x1ed,_0x20ec13- -0x516,_0x21ab19,_0x3351cf-0x88);}return _0x4590b8;}function snapshotNestedToolRequest(_0x114dd){const _0x172435={_0x1cad69:0x2a,_0x49ec81:0x2e,_0x457a61:0x6,_0x37d165:0x96,_0x12e1e3:0xae,_0x48333f:0x12b,_0x5223d7:0x41,_0x592c06:0x10f},_0x3aef10={_0xf364cb:0x1b2},_0x553f42={_0x533a76:0x1a8,_0x8d67e7:0x11};function _0x2189d9(_0x10571a,_0x4be232,_0x29a0ee,_0x58f00b){return _0x1e96ec(_0x29a0ee,_0x4be232-_0x553f42._0x533a76,_0x29a0ee-_0x553f42._0x8d67e7,_0x4be232- -0x3f6);}const _0x2a95b4=_0x114dd['requestedName'],_0x4f2cb1=_0x114dd[_0x2189d9(_0x172435._0x1cad69,0x2d,-0x5e,-_0x172435._0x49ec81)],_0xa87a5=_0x114dd[_0x2189d9(-0x4,-_0x172435._0x457a61,0x51,-0x84)]['id'],_0x211507=structuredClone(_0x114dd[_0x3376ed(_0x172435._0x37d165,0xfe,0x116,0x91)]),_0x512c98=_0x114dd[_0x3376ed(_0x172435._0x12e1e3,_0x172435._0x48333f,0x19f,0xc2)],_0x29bce2=_0x114dd[_0x2189d9(-0xfe,-0xc7,-0x5a,-_0x172435._0x5223d7)];if(_0x211507['name']!==_0x2a95b4||_0x4f2cb1!==void 0x0&&_0x4f2cb1['name']!==_0x2a95b4)throw new Error(_0x3376ed(0xa0,0x116,0x122,_0x172435._0x592c06));function _0x3376ed(_0x51a140,_0x2f466b,_0x51b1d1,_0x157e8c){return _0x36460c(_0x51a140-0x54,_0x2f466b- -0x301,_0x51b1d1,_0x157e8c-_0x3aef10._0xf364cb);}return{'requestedName':_0x2a95b4,'tool':_0x4f2cb1,'toolCall':_0x211507,'toolCallId':_0xa87a5,'sequence':_0x512c98,'trace':_0x29bce2};}function createImmutableExecutionScope(_0x5810a2,_0x51d87d){const _0x4cf267={_0x4155f8:0x136,_0x25e9ee:0xbf,_0x24c07c:0x118,_0x501505:0x10a,_0x385a92:0x18e,_0x3d836d:0x1d8},_0x41e60e={_0x1aae39:0x282,_0x562c9c:0x1f0};function _0x56049d(_0x54c351,_0x1376b0,_0x4a1407,_0x581a44){return _0x1e96ec(_0x581a44,_0x1376b0-0x8e,_0x4a1407-0x40,_0x1376b0- -0x55d);}function _0x49416a(_0x110b40,_0x89f0f0,_0x51c00,_0x3fc111){return _0x36460c(_0x110b40-0x109,_0x110b40- -_0x41e60e._0x1aae39,_0x51c00,_0x3fc111-_0x41e60e._0x562c9c);}return Object[_0x49416a(_0x4cf267._0x4155f8,_0x4cf267._0x25e9ee,_0x4cf267._0x24c07c,_0x4cf267._0x501505)]({'agentId':_0x5810a2,'toolCallPath':Object[_0x56049d(-_0x4cf267._0x385a92,-0x1b4,-_0x4cf267._0x3d836d,-0x198)]([..._0x51d87d])});}async function executeNestedToolRequest(_0x15669a,_0x4a9c99,_0x466320,_0x16cfb3,_0x39243f,_0x2f631a,_0x45c0c3,_0x32e5a7){const _0x1fee84={_0x1049fb:0x22,_0x33e411:0xbd,_0x3d6a7e:0x18f,_0x341e3c:0x177,_0x32f032:0x26,_0xc790a5:0xb3,_0x4ea36d:0x32,_0x4e6d20:0x79,_0x229d3c:0x3d,_0x4e4d53:0x4d,_0xce35b0:0xcb,_0x2c60dc:0x24f,_0x927d5a:0x20c,_0x1a64a1:0x11d,_0x3498ae:0x9b,_0x4ba7b4:0x48,_0x472296:0x12,_0x46951c:0x83,_0x582c9b:0x84},_0x515b57={_0x51e64f:0xfc,_0x3e56ab:0x3ef,_0x2c849a:0x1d7},_0xb70c08={_0x4d8f9e:0x343,_0x12710e:0x364,_0x479cba:0x2e9,_0x4ecc43:0x263},_0x3aa94d={_0x566e94:0x1f7},_0x10e5ae={'state':_0x4a9c99[_0x42133b(-0xc,0xb,_0x1fee84._0x1049fb,0x72)],'delivery':_0x42133b(-0x115,-0xf5,-_0x1fee84._0x33e411,-0xc5),'executionScope':_0x466320};let _0x21c852;try{_0x21c852=await prepareNestedToolCall(_0x2f631a[_0x41bfe3(0x14b,_0x1fee84._0x3d6a7e,0x1f1,_0x1fee84._0x341e3c)],_0x15669a['toolCall'],_0x10e5ae,_0x16cfb3);if(_0x21c852['id']!==_0x15669a[_0x42133b(-_0x1fee84._0x32f032,-_0x1fee84._0xc790a5,-0x8c,-_0x1fee84._0x4ea36d)]||_0x21c852[_0x42133b(_0x1fee84._0x4e6d20,_0x1fee84._0x229d3c,_0x1fee84._0x4e4d53,_0x1fee84._0xce35b0)]!==_0x15669a[_0x41bfe3(0x1aa,0x209,_0x1fee84._0x2c60dc,_0x1fee84._0x927d5a)])throw new Error('Nested\x20beforeToolExecution\x20extensions\x20must\x20preserve\x20the\x20call\x20ID\x20and\x20requested\x20name');}catch(_0x26bc1d){_0x39243f['fail'](_0x26bc1d);throw _0x26bc1d;}const _0x4aaf08={..._0x4a9c99,'signal':_0x16cfb3,'executionScope':_0x466320,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0x3c252d=async(_0x4264f3,_0x533d8b)=>{if(_0x16cfb3['aborted'])return;try{await awaitWithAbort(()=>_0x45c0c3?.(_0x4264f3,_0x533d8b),_0x16cfb3);}catch(_0x3a0b48){if(!isAbortError(_0x3a0b48)||!_0x16cfb3['aborted'])throw _0x3a0b48;}};function _0x41bfe3(_0x388877,_0xd1bc1,_0x3ba26e,_0x917121){return _0x36460c(_0x388877-0x4a,_0x917121- -0x1d1,_0x388877,_0x917121-0x10);}await _0x39243f['admit'](async()=>{const _0xd07bb0={_0x1b7670:0x16a};throwIfAborted(_0x16cfb3);function _0x52ed28(_0x1e50ea,_0x5f2c40,_0x2c6773,_0x55b88b){return _0x41bfe3(_0x55b88b,_0x5f2c40-0x165,_0x2c6773-0xa,_0x2c6773-_0x3aa94d._0x566e94);}if(_0x15669a['trace']){const _0x51ea6a=_0x15669a[_0x52ed28(_0xb70c08._0x4d8f9e,0x31c,_0xb70c08._0x12710e,_0xb70c08._0x479cba)];await awaitRequiredPersistence(()=>_0x51ea6a[_0x52ed28(0x3ed,0x3e9,0x3f7,0x47b)](_0x15669a[_0x52ed28(0x452,0x439,0x452,0x46f)],cloneToolCallForPublication(_0x21c852,_0x15669a[_0x7547b6(0x2a6,0x236,0x22f,0x281)],_0x15669a[_0x52ed28(0x3bd,0x429,0x403,0x448)])),_0x16cfb3,_0x32e5a7);}await _0x3c252d({'type':'tool_call','toolCall':cloneToolCallForPublication(_0x21c852,_0x15669a[_0x7547b6(_0xb70c08._0x4ecc43,0x236,0x1de,0x1da)],_0x15669a[_0x52ed28(0x3e1,0x39a,0x403,0x3ae)])},_0x4aaf08);function _0x7547b6(_0x211814,_0x26a81c,_0x5e149e,_0x2651c1){return _0x42133b(_0x211814-_0xd07bb0._0x1b7670,_0x5e149e,_0x26a81c-0x2c2,_0x2651c1-0x163);}throwIfAborted(_0x16cfb3);},_0x16cfb3);const _0x22510f=await executeCapturedToolCall(_0x15669a['tool'],_0x21c852,_0x15669a[_0x41bfe3(_0x1fee84._0x1a64a1,0x17c,0x117,0x192)],_0x15669a[_0x42133b(-_0x1fee84._0x3498ae,_0x1fee84._0x4ba7b4,-_0x1fee84._0x472296,-0x6)],_0x4aaf08,_0x2f631a,_0x3c252d);throwIfAborted(_0x16cfb3);const _0x2983a6=await transformNestedToolResult(_0x2f631a['registry'],_0x22510f,_0x10e5ae,_0x16cfb3),_0x3c43d1=cloneToolResultForPublication(_0x2983a6,_0x15669a[_0x42133b(-_0x1fee84._0x46951c,-0xc4,-0x8c,-0x48)],_0x15669a['requestedName']);throwIfAborted(_0x16cfb3);if(_0x15669a['trace']){const _0x148887=_0x15669a[_0x42133b(-0x39,-_0x1fee84._0x582c9b,-0xb1,-0x42)];await awaitRequiredPersistence(()=>_0x148887['recordToolResult'](_0x15669a[_0x41bfe3(0x2c8,0x1d4,0x287,0x25b)],cloneToolResultForPublication(_0x3c43d1,_0x15669a[_0x41bfe3(0x148,0x17c,0x1fa,0x192)],_0x15669a[_0x42133b(-0x78,-0xd,-0x12,0x70)])),_0x16cfb3,_0x32e5a7);}await _0x3c252d({'type':'tool_result','result':cloneToolResultForPublication(_0x3c43d1,_0x15669a['toolCallId'],_0x15669a['requestedName'])},_0x4aaf08),throwIfAborted(_0x16cfb3);function _0x42133b(_0x744e96,_0x1bbac0,_0x2f5b46,_0x28460a){return _0x36460c(_0x744e96-_0x515b57._0x51e64f,_0x2f5b46- -_0x515b57._0x3e56ab,_0x1bbac0,_0x28460a-_0x515b57._0x2c849a);}return _0x3c43d1;}function createBoundToolExecutionControl(_0x35f034,_0x3c7d71,_0x1f258c,_0xa23895){const _0x390402={_0x581203:0x26,_0x20b0b4:0x32,_0x18d0e9:0x16,_0x57516f:0x7a,_0x56b4c1:0x85,_0x1b54d2:0x58,_0x20de97:0x2cd,_0x3c0c28:0x2f8,_0x40d652:0x331,_0x429322:0x32a,_0x47f1aa:0x33c},_0x32f08b={_0x5c5fe9:0x1fd},_0x3015db={_0x2c9cc6:0x28c,_0x10a310:0x23e,_0x18da5c:0x376,_0x2a1fed:0x3ed,_0x187181:0x3da,_0x4ef3ba:0x36b,_0x466ddd:0x3cd,_0x524fe6:0x3f2,_0x56f745:0x2a2,_0x1a9c46:0x32b,_0x48645e:0x3ba,_0x96a5ad:0x35a},_0x58382d={_0x14f4a4:0x208,_0x1b857c:0x18d},_0x85d418={_0x32000c:0x63a,_0x2bc8b1:0x1c0},_0x4ff7e1={_0x55ca9c:0x39e},_0x4e6143={_0x49b9e3:0x14b,_0xb3b9ab:0x1cf},_0x346b43={_0x9b3f68:0x1b2,_0x4b8edb:0x1eb},_0x3e8abe={_0x5c612d:0x246,_0x53a87e:0x1f9},_0x262e49={_0x2eb9b7:0xc4},_0x2aa838={_0x1b25a0:0x3bc,_0x1a883a:0x22},_0xdf15ad={_0x1a8e62:0x4b,_0x2c5b82:0xcf,_0x160ef5:0x21,_0x16cd5d:0xa4,_0x126cd9:0x2d,_0x108491:0x110,_0x302870:0xaf,_0x45f04d:0xd2},_0xaa0894={_0x21932a:0xdc,_0x117b63:0xbd},_0x151a6f={_0x4c4bdb:0xde,_0x8da8cd:0x240},_0xcdd921=createImmutableExecutionScope(_0x3c7d71[_0x547f00(0x95,0x25,-_0x390402._0x581203,_0x390402._0x20b0b4)][_0x547f00(0xa3,_0x390402._0x18d0e9,0x38,_0x390402._0x57516f)],_0x3c7d71['executionScope'][_0x547f00(0x8e,_0x390402._0x56b4c1,-_0x390402._0x1b54d2,0xc)]);function _0x9b7147(_0x37bd52,_0x5f38ca,_0x1b0231,_0x2ca33a){return _0x36460c(_0x37bd52-0x157,_0x5f38ca- -0x65e,_0x2ca33a,_0x2ca33a-0x173);}const _0x585643=new Set(),_0x52cb1e=new Set(),_0x5da960=new AbortController(),_0x3d8979=createNestedCallAdmissionGate();let _0x252276=![],_0x27c24e=![],_0x411268,_0x34a211=![],_0x4bb9ad=()=>{};const _0x2043dd=_0x12d1bc=>{if(_0x252276)return;_0x252276=!![];function _0x3daf94(_0x294a80,_0x51693f,_0x3c8bd4,_0x1651ba){return _0x9b7147(_0x294a80-_0x151a6f._0x4c4bdb,_0x3c8bd4-_0x151a6f._0x8da8cd,_0x3c8bd4-0x7,_0x294a80);}const _0x6ca5e4=toAbortError(_0x12d1bc??PARENT_TOOL_SETTLED_MESSAGE);_0x3d8979[_0x8ccbed(_0xdf15ad._0x1a8e62,_0xdf15ad._0x2c5b82,0x57,0x1d)](_0x6ca5e4),_0x5da960[_0x3daf94(-_0xdf15ad._0x160ef5,-_0xdf15ad._0x16cd5d,-_0xdf15ad._0x126cd9,0x5d)](_0x6ca5e4);function _0x8ccbed(_0x50e170,_0x67f57,_0x327297,_0x14cadf){return _0x547f00(_0x50e170-0x36,_0x67f57-_0xaa0894._0x21932a,_0x67f57,_0x50e170-_0xaa0894._0x117b63);}for(const _0xb56996 of _0x585643){_0xb56996[_0x8ccbed(_0xdf15ad._0x108491,0x151,_0xdf15ad._0x302870,_0xdf15ad._0x45f04d)](_0x6ca5e4);}_0x4bb9ad();};_0x4bb9ad=addAbortListener(_0x3c7d71[_0x9b7147(-_0x390402._0x20de97,-_0x390402._0x3c0c28,-0x272,-_0x390402._0x40d652)],()=>{function _0x12761e(_0x20c0ee,_0x1d6852,_0x37326f,_0x163c11){return _0x9b7147(_0x20c0ee-0x11a,_0x1d6852-_0x2aa838._0x1b25a0,_0x37326f-_0x2aa838._0x1a883a,_0x163c11);}_0x2043dd(_0x3c7d71[_0x12761e(0x92,_0x262e49._0x2eb9b7,0x11d,0xee)]['reason']);});const _0x203fbd=_0x546753=>{const _0x5ec64a={_0x5608d9:0x135};function _0x2be4fe(_0x4a27d1,_0x25d9d3,_0x2793d9,_0xcde74c){return _0x9b7147(_0x4a27d1-0x12a,_0x25d9d3-0xce,_0x2793d9-_0x5ec64a._0x5608d9,_0xcde74c);}_0x52cb1e['add'](_0x546753);const _0x3c6a1=()=>{function _0x54dbe2(_0x275ca6,_0x137198,_0x44a1bc,_0x235f31){return _0x2bfb(_0x275ca6- -0x37c,_0x137198);}_0x52cb1e[_0x54dbe2(-0x261,-_0x3e8abe._0x5c612d,-0x246,-_0x3e8abe._0x53a87e)](_0x546753);},_0x44cd3f=_0x2a02a=>{!_0x27c24e&&(_0x27c24e=!![],_0x411268=_0x2a02a),_0x3c6a1();};void _0x546753[_0x2be4fe(-0x1c5,-_0x346b43._0x9b3f68,-0x1ba,-_0x346b43._0x4b8edb)](_0x3c6a1,_0x44cd3f);},_0x59c233=async()=>{const _0x1f1952={_0x1662d7:0x104};function _0x262f22(_0xaf4f36,_0x5a7750,_0xb47ec2,_0x2a014a){return _0x9b7147(_0xaf4f36-0x56,_0x2a014a-_0x1f1952._0x1662d7,_0xb47ec2-0x4f,_0xb47ec2);}while(_0x52cb1e[_0x262f22(-0x24a,-_0x4e6143._0x49b9e3,-0x1c4,-_0x4e6143._0xb3b9ab)]>0x0){await Promise['allSettled']([..._0x52cb1e]);}if(_0x27c24e)throw _0x411268;};function _0x547f00(_0x4dce09,_0x43c360,_0x1db4f5,_0x522888){return _0x36460c(_0x4dce09-0x93,_0x522888- -_0x4ff7e1._0x55ca9c,_0x1db4f5,_0x522888-0x10d);}const _0x2a402e=async _0x4807b1=>{const _0x4c8778={_0x3f597c:0x85};if(_0x252276)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0x453b5a;try{_0x453b5a=snapshotNestedToolRequest(_0x4807b1);}catch(_0x39cb86){_0x3d8979[_0x181b91(0x2c0,0x317,_0x3015db._0x2c9cc6,_0x3015db._0x10a310)](_0x39cb86);throw _0x39cb86;}const _0x570d1c=_0x3d8979[_0x181b91(0x39d,0x33c,_0x3015db._0x18da5c,0x361)](_0x453b5a[_0x181b91(_0x3015db._0x2a1fed,0x306,0x38c,_0x3015db._0x187181)]);function _0x181b91(_0x3eae5b,_0x4716a2,_0x35821b,_0x3cdf82){return _0x9b7147(_0x3eae5b-_0x4c8778._0x3f597c,_0x35821b-0x5be,_0x35821b-0x1a7,_0x3cdf82);}const _0x597ce9=createImmutableExecutionScope(_0xcdd921[_0x552546(0x451,0x3f4,0x438,_0x3015db._0x4ef3ba)],[..._0xcdd921[_0x181b91(0x281,0x30b,0x30a,0x319)],_0x35f034]);function _0x552546(_0x57b6a2,_0x41f9af,_0x2cf019,_0x5145a5){return _0x9b7147(_0x57b6a2-0x80,_0x41f9af-_0x85d418._0x32000c,_0x2cf019-_0x85d418._0x2bc8b1,_0x2cf019);}const _0x3cfe9e=new AbortController();_0x585643['add'](_0x3cfe9e);_0x252276&&_0x3cfe9e[_0x552546(0x421,_0x3015db._0x466ddd,_0x3015db._0x524fe6,0x393)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x5bc213=executeNestedToolRequest(_0x453b5a,_0x3c7d71,_0x597ce9,_0x3cfe9e[_0x181b91(_0x3015db._0x56f745,_0x3015db._0x1a9c46,0x2c6,0x30d)],_0x570d1c,_0x1f258c,_0xa23895,_0x203fbd),_0x58a0a2=()=>{function _0xf440fb(_0xd5a2bf,_0x1e98af,_0x130e69,_0x2e7234){return _0x181b91(_0xd5a2bf-0x18c,_0x1e98af-0xa0,_0x1e98af- -0x49d,_0x2e7234);}_0x585643[_0xf440fb(-_0x58382d._0x14f4a4,-_0x58382d._0x1b857c,-0x149,-0x1de)](_0x3cfe9e);};return void _0x5bc213[_0x552546(0x3dd,_0x3015db._0x48645e,0x37a,_0x3015db._0x96a5ad)](_0x58a0a2,_0x58a0a2),await awaitWithAbort(()=>_0x5bc213,_0x5da960['signal']);},_0x5398b7={'executeNestedTool':_0x2a402e},_0x45fc4e=_0x1f258c['beginProgramTrace'];_0x45fc4e&&(_0x5398b7[_0x9b7147(-0x2be,-_0x390402._0x429322,-0x389,-_0x390402._0x47f1aa)]=async()=>{const _0x4f9b2f={_0x3bb196:0x191,_0x16207e:0x23};if(_0x252276)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x2ef946(_0x27d145,_0x44e071,_0x123a42,_0x576158){return _0x547f00(_0x27d145-_0x4f9b2f._0x3bb196,_0x44e071-0x110,_0x27d145,_0x44e071-_0x4f9b2f._0x16207e);}function _0x138d64(_0x4f75a7,_0x110572,_0x26f9b8,_0x590435){return _0x9b7147(_0x4f75a7-0x157,_0x26f9b8-0x507,_0x26f9b8-0x44,_0x590435);}return await awaitUncancellableAfterAdmission(()=>_0x45fc4e({'executionScope':createImmutableExecutionScope(_0xcdd921['agentId'],_0xcdd921[_0x138d64(0x299,0x2c5,0x253,0x27f)]),'programToolCallId':_0x35f034}),_0x5da960[_0x138d64(0x207,0x1e8,0x20f,_0x32f08b._0x5c5fe9)]);});const _0x12fc0a=()=>{_0x34a211=!![],_0x2043dd();},_0x5e360c=()=>_0x34a211,_0x187eb2={'capabilities':_0x5398b7,'close':_0x2043dd,'commitTerminalState':_0x12fc0a,'drainPersistence':_0x59c233,'isTerminalStateCommitted':_0x5e360c};return boundNestedExecutionControls['set'](_0x2a402e,_0x187eb2),_0x187eb2;}async function executeCapturedToolCall(_0x263c2b,_0x2c7bab,_0x30c73e,_0x1f1a97,_0x31ae9b,_0x789caf,_0x440ca2=_0x789caf['onEvent']){const _0x578400={_0x454c44:0x343,_0x5024c1:0x334,_0x738259:0x395,_0x24d87b:0x343,_0x242b50:0x37c,_0x56ffba:0x380,_0x31a7d0:0x335,_0x35622c:0x2b6,_0x1de4f8:0x288,_0x7784ba:0x2ce,_0xce0085:0x2dd,_0x52683c:0x374,_0x993e3f:0x33b,_0x219cfb:0x329,_0x40829d:0x283,_0x2557f1:0x2d6},_0x5628e8={_0x48bc88:0x137},_0x359efb={_0x3bb799:0xc9,_0x17648a:0x98};function _0x3829c4(_0x7aaa0a,_0x4fc8bf,_0x2e58d9,_0x1e54a3){return _0x1e96ec(_0x4fc8bf,_0x4fc8bf-_0x359efb._0x3bb799,_0x2e58d9-_0x359efb._0x17648a,_0x7aaa0a- -0x14);}function _0x4af836(_0x5dfa1f,_0x31bf12,_0x54a3e7,_0x176761){return _0x36460c(_0x5dfa1f-0xc6,_0x176761- -_0x5628e8._0x48bc88,_0x5dfa1f,_0x176761-0x1ce);}const _0x4ca527={..._0x31ae9b,'toolCallId':_0x30c73e,'permissionClass':resolveToolPermissionClass(_0x263c2b),'executionAuthorization':void 0x0};if(_0x4ca527[_0x3829c4(_0x578400._0x454c44,0x378,0x3ae,0x301)][_0x3829c4(_0x578400._0x5024c1,0x2e1,_0x578400._0x738259,0x342)]){const _0x19927d=createAbortedToolResult(_0x30c73e,_0x1f1a97,_0x4ca527[_0x3829c4(_0x578400._0x24d87b,0x309,_0x578400._0x242b50,_0x578400._0x56ffba)][_0x4af836(_0x578400._0x31a7d0,0x316,_0x578400._0x35622c,0x300)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x440ca2,_0x2c7bab,_0x30c73e,_0x1f1a97,_0x19927d,_0x4ca527),_0x19927d;}let _0x2a273e;try{_0x2a273e=_0x263c2b?.[_0x4af836(_0x578400._0x1de4f8,0x2b0,_0x578400._0x7784ba,_0x578400._0xce0085)]?.[_0x3829c4(_0x578400._0x52683c,_0x578400._0x993e3f,0x3f0,_0x578400._0x219cfb)]();}catch(_0x206f1f){const _0xc72240=isAbortError(_0x206f1f);let _0x1f12a9;if(_0xc72240)_0x1f12a9=createAbortedToolResult(_0x30c73e,_0x1f1a97,_0x206f1f);else{const {errorMessage:_0x302503,structured:_0x132acb}=normalizeExecutionError(_0x206f1f);_0x1f12a9=createErrorToolResult(_0x30c73e,_0x1f1a97,_0x302503,_0x132acb);}return _0xc72240?await emitToolCompletedEventWithTerminalPrecedence(_0x440ca2,_0x2c7bab,_0x30c73e,_0x1f1a97,_0x1f12a9,_0x4ca527):await emitEvent(_0x440ca2,{'type':_0x4af836(_0x578400._0x40829d,_0x578400._0x2557f1,0x354,0x2e3),'toolCall':cloneToolCallForPublication(_0x2c7bab,_0x30c73e,_0x1f1a97),'result':_0x1f12a9},_0x4ca527),_0x1f12a9;}try{return await executeAcquiredToolCall(_0x263c2b,_0x2c7bab,_0x30c73e,_0x1f1a97,_0x31ae9b,_0x789caf,_0x440ca2);}finally{_0x2a273e?.();}}async function executeAcquiredToolCall(_0x5cfcfc,_0x2876eb,_0x5a94c1,_0x501a81,_0x29a134,_0x50dcda,_0x380fdc){const _0xe174f={_0x1c01cc:0x233,_0x5599f8:0x253,_0x417c62:0x1f4,_0x28137f:0x2ae,_0x3a84f2:0x2a5,_0x503c0b:0x268,_0x3a8708:0x2ae,_0x1d8068:0x1fd,_0x56838b:0x1c7,_0x5de692:0x20f,_0x3f0050:0x307,_0x300e2f:0x2b7,_0xff3ffd:0x2e0,_0x44c9f8:0x310,_0x5098b8:0x260,_0xe165e2:0x297,_0x324ffb:0x2dd,_0x2b52ca:0x203,_0x57a45f:0x216,_0x2a3703:0x2dc,_0xb560c8:0x2fc,_0x27a973:0x258,_0x4c2346:0x2b5,_0x15a66a:0x21b,_0x324f9c:0x270,_0x1f2fd5:0x1cf,_0x2097bf:0x2d5,_0x3d9ffd:0x33b,_0x5af3fa:0x349,_0x280249:0x35e,_0x46a7d2:0x27d,_0x4e5f1b:0x289,_0x48d3de:0x218,_0x6bb772:0x283,_0x59c9de:0x210,_0x132720:0x29c,_0x15a521:0x2a1,_0x2ba298:0x212,_0x4ac0c8:0x25d,_0x2b73b4:0x1f4,_0x18cf25:0x1f1,_0x3d9f11:0x188,_0x17ee24:0x273,_0x3554f4:0x1ea,_0x5117e2:0x217,_0x63028f:0x181,_0x8f9f03:0x285,_0x24b32f:0x301,_0x2645de:0x2ed,_0x4c337f:0x34c,_0x1be45b:0x201,_0x1e36c9:0x1ec,_0x878e63:0x25b,_0x44b548:0x2ab,_0x221b7f:0x28c,_0x519d9a:0x1f6,_0x409e89:0x26a,_0x16acf6:0x2cb,_0x4b351f:0x2af,_0x4ae8b6:0x2b6,_0xfb5a0e:0x266,_0x2403bf:0x2a0,_0x271076:0x2da,_0x26db75:0x241,_0x51ea2f:0x236,_0x1463d8:0x1ef,_0x198e03:0x1c2,_0x3c9139:0x26f,_0x3c4c62:0x356,_0x51145d:0x2ba,_0x2552f5:0x347,_0x4b6ce0:0x34f,_0x30ef9d:0x2d1,_0x66b544:0x24a,_0x195c69:0x24b,_0x32bc01:0x236,_0x58904a:0x2bb,_0x475c38:0x257,_0x4ef8ac:0x2b5,_0x5c78e1:0x2cb,_0x178887:0x2f0,_0x496146:0x2bd,_0x2c0825:0x28c},_0x4ef36a={_0x53c1a7:0x58,_0x1653ea:0x95,_0x26bf16:0x3d,_0x164f4f:0x34},_0x455d69={_0x259f6c:0x1a1},_0x1a0cc4={_0x3e33bb:0x1bf,_0x5f16f5:0x156},_0x4d8a12={_0x194e85:0x6e,_0x419403:0x168,_0x5e7fda:0x65e};function _0x4d8f30(_0x3960cc,_0x3a532c,_0x57bfdc,_0x5c94ba){return _0x1e96ec(_0x5c94ba,_0x3a532c-_0x4d8a12._0x194e85,_0x57bfdc-_0x4d8a12._0x419403,_0x3960cc- -_0x4d8a12._0x5e7fda);}const _0x1af05a={..._0x29a134,'toolCallId':_0x5a94c1,'permissionClass':resolveToolPermissionClass(_0x5cfcfc),'executionAuthorization':void 0x0};throwIfAborted(_0x1af05a[_0x9e6005(0x201,0x1cc,_0xe174f._0x1c01cc,0x1ac)]);let _0x2bb578;try{_0x2bb578=await resolveDispatchDecision(_0x50dcda['onToolCall'],_0x2876eb,_0x1af05a);}catch(_0x36e83d){if(isAbortError(_0x36e83d)){const _0x3954e2=createAbortedToolResult(_0x5a94c1,_0x501a81,_0x36e83d);return await emitToolCompletedEventWithTerminalPrecedence(_0x380fdc,_0x2876eb,_0x5a94c1,_0x501a81,_0x3954e2,_0x1af05a),_0x3954e2;}const {errorMessage:_0x31afe5,structured:_0x43136d}=normalizeExecutionError(_0x36e83d),_0x470596=createErrorToolResult(_0x5a94c1,_0x501a81,_0x31afe5,_0x43136d);return await emitEvent(_0x380fdc,{'type':_0x4d8f30(-_0xe174f._0x5599f8,-0x29c,-_0xe174f._0x417c62,-_0xe174f._0x28137f),'toolCall':cloneToolCallForPublication(_0x2876eb,_0x5a94c1,_0x501a81),'result':_0x470596},_0x1af05a),_0x470596;}throwIfAborted(_0x1af05a[_0x4d8f30(-0x307,-_0xe174f._0x3a84f2,-0x308,-0x296)]);if(_0x2bb578[_0x4d8f30(-_0xe174f._0x503c0b,-0x2cf,-0x291,-_0xe174f._0x3a8708)]===_0x9e6005(_0xe174f._0x1d8068,0x24c,0x230,_0xe174f._0x56838b)){const _0x1283e2=createRejectedToolResult(_0x5a94c1,_0x501a81,_0x2bb578[_0x4d8f30(-0x236,-_0xe174f._0x503c0b,-0x218,-_0xe174f._0x5de692)]);return await emitEvent(_0x380fdc,{'type':'tool_rejected','toolCall':cloneToolCallForPublication(_0x2876eb,_0x5a94c1,_0x501a81),'result':_0x1283e2},_0x1af05a),_0x1283e2;}if(!_0x5cfcfc){const _0xd66008=createUnknownToolResult(_0x5a94c1,_0x501a81);return await emitEvent(_0x380fdc,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x2876eb,_0x5a94c1,_0x501a81),'result':_0xd66008},_0x1af05a),_0xd66008;}const _0x45414a=createBoundToolExecutionControl(_0x5a94c1,_0x1af05a,_0x50dcda,_0x380fdc),_0x153a0d={..._0x1af05a,'executionAuthorization':_0x2bb578['executionAuthorization'],..._0x45414a['capabilities']};throwIfAborted(_0x153a0d[_0x4d8f30(-_0xe174f._0x3f0050,-_0xe174f._0x300e2f,-_0xe174f._0xff3ffd,-0x2d8)]);function _0x9e6005(_0x418eca,_0x3ccb7b,_0x4427be,_0x1bb7d0){return _0x1e96ec(_0x1bb7d0,_0x3ccb7b-0x1f0,_0x4427be-_0x1a0cc4._0x3e33bb,_0x418eca- -_0x1a0cc4._0x5f16f5);}try{await emitEvent(_0x380fdc,{'type':_0x4d8f30(-0x296,-0x2b1,-_0xe174f._0x44c9f8,-0x2b1),'toolCall':cloneToolCallForPublication(_0x2876eb,_0x5a94c1,_0x501a81)},_0x153a0d);}catch(_0x4f9fa2){const _0x5b771a=_0x45414a['isTerminalStateCommitted']();if(actualCancellationHasPrecedence(_0x153a0d,_0x5b771a)){const _0x5000ba=selectActualCancellationReason(_0x4f9fa2,_0x153a0d['signal'][_0x9e6005(0x2d2,_0xe174f._0x5098b8,0x256,0x2a1)]),_0xb70118=createAbortedToolResult(_0x5a94c1,_0x501a81,_0x5000ba);return _0x45414a[_0x4d8f30(-0x2cb,-_0xe174f._0xe165e2,-0x307,-_0xe174f._0x324ffb)](_0x5000ba),await emitToolCompletedEventWithTerminalPrecedence(_0x380fdc,_0x2876eb,_0x5a94c1,_0x501a81,_0xb70118,_0x153a0d,_0x5b771a),_0xb70118;}_0x45414a[_0x9e6005(0x23d,_0xe174f._0x2b52ca,0x20a,_0xe174f._0x57a45f)](_0x4f9fa2);throw _0x4f9fa2;}try{throwIfAborted(_0x153a0d[_0x4d8f30(-0x307,-_0xe174f._0x2a3703,-0x36a,-_0xe174f._0xb560c8)]);const _0x2a0006=validateToolInput(_0x2876eb[_0x4d8f30(-_0xe174f._0x27a973,-0x1fc,-_0xe174f._0x4c2346,-0x2a3)],_0x5cfcfc[_0x9e6005(_0xe174f._0x15a66a,_0xe174f._0x324f9c,_0xe174f._0x1f2fd5,0x1fb)]),_0x21bbe9=await _0x5cfcfc[_0x4d8f30(-_0xe174f._0x2097bf,-0x335,-0x2e5,-_0xe174f._0x3d9ffd)](_0x2a0006,_0x153a0d),_0x4135cd=[],_0x3c562b=addAbortListener(_0x153a0d[_0x4d8f30(-0x307,-_0xe174f._0x5af3fa,-_0xe174f._0x280249,-_0xe174f._0x46a7d2)],()=>{const _0x38f475={_0x34a348:0x1b2};function _0x4ed836(_0x32f117,_0x4e1b2c,_0x1a1a44,_0x1c1e5c){return _0x4d8f30(_0x4e1b2c-0x351,_0x4e1b2c-0xb1,_0x1a1a44-_0x38f475._0x34a348,_0x1c1e5c);}function _0x4e4774(_0x59ed65,_0x1ebefc,_0x1ee18a,_0x42adef){return _0x9e6005(_0x59ed65-0x1c6,_0x1ebefc-0x139,_0x1ee18a-_0x455d69._0x259f6c,_0x42adef);}!_0x45414a[_0x4e4774(0x3fd,0x376,0x40e,0x3aa)]()&&void _0x21bbe9[_0x4ed836(0x14b,0xe8,0x157,0xbb)](void 0x0)[_0x4ed836(_0x4ef36a._0x53c1a7,_0x4ef36a._0x1653ea,_0x4ef36a._0x26bf16,_0x4ef36a._0x164f4f)](()=>{});});try{throwIfAborted(_0x153a0d[_0x9e6005(0x201,_0xe174f._0x4e5f1b,0x206,_0xe174f._0x48d3de)]);let _0x216ba5=await _0x21bbe9[_0x4d8f30(-_0xe174f._0x6bb772,-0x240,-_0xe174f._0x59c9de,-0x2c8)]();while(!_0x216ba5[_0x9e6005(_0xe174f._0x132720,_0xe174f._0x15a521,0x2c8,_0xe174f._0x2ba298)]){throwIfAborted(_0x153a0d[_0x9e6005(0x201,0x223,_0xe174f._0x4ac0c8,_0xe174f._0x2b73b4)]);const _0x2f498c=normalizeToolOutputValue(_0x216ba5['value']);_0x4135cd[_0x9e6005(_0xe174f._0x18cf25,_0xe174f._0x3d9f11,0x1db,0x1ba)](_0x2f498c),await emitEvent(_0x380fdc,{'type':_0x4d8f30(-0x24d,-_0xe174f._0x17ee24,-_0xe174f._0x3554f4,-0x273),'toolCall':cloneToolCallForPublication(_0x2876eb,_0x5a94c1,_0x501a81),'chunk':_0x2f498c},_0x153a0d),throwIfAborted(_0x153a0d[_0x9e6005(0x201,_0xe174f._0x5117e2,_0xe174f._0x63028f,0x1d7)]),_0x216ba5=await _0x21bbe9[_0x9e6005(_0xe174f._0x8f9f03,_0xe174f._0x24b32f,_0xe174f._0x2645de,0x221)]();}!_0x45414a[_0x4d8f30(-0x2d1,-0x34f,-_0xe174f._0x4c337f,-_0xe174f._0x503c0b)]()&&throwIfAborted(_0x153a0d[_0x9e6005(_0xe174f._0x1be45b,0x267,_0xe174f._0x1d8068,_0xe174f._0x1e36c9)]);const _0x966ccd=_0x216ba5[_0x9e6005(_0xe174f._0x878e63,_0xe174f._0x44b548,_0xe174f._0x221b7f,_0xe174f._0x519d9a)]===void 0x0?deriveFinalToolOutput(_0x4135cd):normalizeToolOutputValue(_0x216ba5[_0x9e6005(0x25b,0x291,0x1f6,_0xe174f._0x409e89)]),_0x3315d5=createSuccessToolResult(_0x5a94c1,_0x501a81,_0x966ccd,_0x4135cd);return _0x45414a[_0x4d8f30(-_0xe174f._0x16acf6,-_0xe174f._0x4b351f,-_0xe174f._0x4ae8b6,-_0xe174f._0xfb5a0e)](),await emitEvent(_0x380fdc,{'type':_0x4d8f30(-_0xe174f._0x5599f8,-_0xe174f._0x2403bf,-_0xe174f._0x271076,-_0xe174f._0x2097bf),'toolCall':cloneToolCallForPublication(_0x2876eb,_0x5a94c1,_0x501a81),'result':_0x3315d5},_0x153a0d),_0x3315d5;}catch(_0xba4a1){const _0xbdfa72=_0x45414a['isTerminalStateCommitted'](),_0x5a0570=actualCancellationHasPrecedence(_0x153a0d,_0xbdfa72);if(_0x5a0570||isAbortError(_0xba4a1)){const _0x132fab=_0x5a0570?selectActualCancellationReason(_0xba4a1,_0x153a0d[_0x9e6005(0x201,0x1bc,0x213,_0xe174f._0x26db75)][_0x4d8f30(-_0xe174f._0x51ea2f,-_0xe174f._0x1463d8,-0x209,-_0xe174f._0x198e03)]):_0xba4a1,_0x182e88=createAbortedToolResult(_0x5a94c1,_0x501a81,_0x132fab,_0x4135cd);return _0x45414a[_0x4d8f30(-0x2cb,-_0xe174f._0x3c9139,-_0xe174f._0x3c4c62,-_0xe174f._0x51145d)](_0x132fab),await emitToolCompletedEventWithTerminalPrecedence(_0x380fdc,_0x2876eb,_0x5a94c1,_0x501a81,_0x182e88,_0x153a0d,_0xbdfa72),_0x182e88;}if(_0xba4a1 instanceof ToolRuntimeInfrastructureError)throw _0xba4a1;const {errorMessage:_0x48cafb,structured:_0x134a25}=normalizeExecutionError(_0xba4a1),_0x3122ad=createErrorToolResult(_0x5a94c1,_0x501a81,_0x48cafb,_0x134a25,_0x4135cd);return _0x45414a[_0x4d8f30(-_0xe174f._0x16acf6,-_0xe174f._0x2552f5,-_0xe174f._0x4b6ce0,-0x281)](_0xba4a1),await emitToolCompletedEventWithTerminalPrecedence(_0x380fdc,_0x2876eb,_0x5a94c1,_0x501a81,_0x3122ad,_0x153a0d,_0x45414a['isTerminalStateCommitted']()),_0x3122ad;}finally{_0x3c562b();}}catch(_0x9d23db){const _0x609a7f=_0x45414a[_0x4d8f30(-_0xe174f._0x30ef9d,-_0xe174f._0x66b544,-0x2c2,-_0xe174f._0x195c69)](),_0x34b482=actualCancellationHasPrecedence(_0x153a0d,_0x609a7f);if(_0x34b482||isAbortError(_0x9d23db)){const _0xe8e449=_0x34b482?selectActualCancellationReason(_0x9d23db,_0x153a0d['signal'][_0x4d8f30(-_0xe174f._0x32bc01,-0x262,-_0xe174f._0x58904a,-_0xe174f._0x475c38)]):_0x9d23db,_0x42ab5b=createAbortedToolResult(_0x5a94c1,_0x501a81,_0xe8e449);return _0x45414a[_0x9e6005(0x23d,0x226,_0xe174f._0xe165e2,_0xe174f._0x4ef8ac)](_0xe8e449),await emitToolCompletedEventWithTerminalPrecedence(_0x380fdc,_0x2876eb,_0x5a94c1,_0x501a81,_0x42ab5b,_0x153a0d,_0x609a7f),_0x42ab5b;}if(_0x9d23db instanceof ToolRuntimeInfrastructureError)throw _0x9d23db;const {errorMessage:_0x3e22e4,structured:_0x35f9bb}=normalizeExecutionError(_0x9d23db),_0x3fc33c=createErrorToolResult(_0x5a94c1,_0x501a81,_0x3e22e4,_0x35f9bb);return _0x45414a[_0x4d8f30(-_0xe174f._0x5c78e1,-0x2df,-0x24f,-0x2ff)](_0x9d23db),await emitEvent(_0x380fdc,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x2876eb,_0x5a94c1,_0x501a81),'result':_0x3fc33c},_0x153a0d),_0x3fc33c;}finally{_0x45414a[_0x4d8f30(-0x2cb,-_0xe174f._0x178887,-_0xe174f._0x496146,-_0xe174f._0x2c0825)]();}}async function executeRegisteredToolCall(_0x44dc3d,_0x6d62d3,_0x161c50,_0x53a43f){const _0x13fe14={_0x451e99:0x130,_0x39ce60:0x160,_0x5c8f04:0x16b},_0x30a43f={_0x46d9a7:0x5,_0x39e739:0x4d2},_0x439670=_0x6d62d3['id'],_0x230681=_0x6d62d3['name'],_0x945eab=_0x44dc3d[_0x57c53d(-_0x13fe14._0x451e99,-_0x13fe14._0x39ce60,-_0x13fe14._0x5c8f04,-0x1dd)](_0x230681);function _0x57c53d(_0x61425d,_0x4dd9cb,_0x1bb34f,_0x1079a4){return _0x1e96ec(_0x4dd9cb,_0x4dd9cb-_0x30a43f._0x46d9a7,_0x1bb34f-0x1cb,_0x1bb34f- -_0x30a43f._0x39e739);}return await executeCapturedToolCall(_0x945eab,_0x6d62d3,_0x439670,_0x230681,_0x161c50,_0x53a43f);}function createInternalToolRuntime(_0x54ba9c=[],_0x396b13={}){const _0xbbc664={_0x121ea9:0x0},_0xf9e260={_0x43d42f:0x1bd,_0x1280c5:0x23c,_0x5034cf:0x168,_0x3b2c4a:0x2f0,_0xf72d8f:0x339},_0x2df321={_0x5de522:0x44,_0x19f729:0xab};let _0x31b9d3=new ToolRegistry(_0x54ba9c);return{'listToolSchemas'(){function _0x5c4614(_0x39d3f2,_0x56bb07,_0x469c3e,_0x3c9f19){return _0x2bfb(_0x56bb07- -0x24,_0x3c9f19);}return _0x31b9d3[_0x5c4614(0x6f,0xc9,_0x2df321._0x5de522,_0x2df321._0x19f729)]();},'setTools'(_0x29e1f5){_0x31b9d3=new ToolRegistry(_0x29e1f5);},async 'executeCalls'(_0x570239,_0x1553bb){function _0x3e101b(_0x2345ea,_0x4259f4,_0x31a053,_0x4a473b){return _0x2bfb(_0x2345ea-0x6d,_0x4259f4);}function _0x3b5d1d(_0x553be0,_0x3045a1,_0x448f80,_0x3827c9){return _0x2bfb(_0x3827c9-0x221,_0x3045a1);}return await Promise[_0x3e101b(_0xf9e260._0x43d42f,_0xf9e260._0x1280c5,0x237,_0xf9e260._0x5034cf)](_0x570239[_0x3b5d1d(_0xf9e260._0x3b2c4a,0x2bc,0x389,_0xf9e260._0xf72d8f)](async _0x171ba3=>{return await executeRegisteredToolCall(_0x31b9d3,_0x171ba3,_0x1553bb,_0x396b13);}));},async 'execute'(_0x4d55c0,_0x14723b){const [_0x3d8ae3]=await this[_0x44213d(_0xbbc664._0x121ea9,0x13,0x0,0x5c)]([_0x4d55c0],_0x14723b);function _0x44213d(_0x5764a2,_0x4750a2,_0xe90b7e,_0x228b94){return _0x2bfb(_0x5764a2- -0xc8,_0x228b94);}return _0x3d8ae3;}};}function getOrderedObserverExtensions(_0x32f869,_0x38b6fc){const _0x2b2822={_0x11fb44:0x264,_0x4e62ab:0x3a},_0xa2c87={_0x581def:0x137,_0x1b9869:0x1a2,_0x4693bc:0x1b1,_0x55f2da:0x1cd,_0x4e8db3:0x105,_0x2b02ac:0x214,_0x2f2c41:0x1c0,_0x3086bd:0x1b8,_0x21bc8b:0x224,_0x236fe9:0x19c},_0x502472={_0x52cbdd:0x1a3,_0x2e58e6:0xfa,_0x14d164:0x77},_0x4cb13c={_0x4b0a6b:0xb9},_0x17e337={_0xf54587:0xfd,_0x12af6c:0x1d0,_0x37b562:0x41a},_0x32120d={_0x5c8bde:0x113,_0x2a2089:0x14};function _0x23a00e(_0x8b8484,_0x4aa2b9,_0x8e0164,_0x248c61){return _0x1e96ec(_0x248c61,_0x4aa2b9-_0x32120d._0x5c8bde,_0x8e0164-_0x32120d._0x2a2089,_0x4aa2b9- -0x5fb);}function _0x1b5c20(_0xeec4c7,_0x283bc2,_0x27e1bd,_0x2bed37){return _0x1e96ec(_0xeec4c7,_0x283bc2-_0x17e337._0xf54587,_0x27e1bd-_0x17e337._0x12af6c,_0x27e1bd- -_0x17e337._0x37b562);}return _0x32f869[_0x23a00e(-0x1ec,-0x20d,-0x26f,-_0x2b2822._0x11fb44)](_0x2e5af5=>{const _0x3e3ecd={_0xb49a6b:0x9};function _0x293d19(_0x37f81f,_0x4426af,_0x3b46c4,_0x5b7017){return _0x23a00e(_0x37f81f-_0x4cb13c._0x4b0a6b,_0x4426af-0x64,_0x3b46c4-0xf2,_0x37f81f);}function _0x573599(_0x27aaf5,_0x1f2ef0,_0x2de756,_0x42233a){return _0x23a00e(_0x27aaf5-0x129,_0x1f2ef0-0x361,_0x2de756-_0x3e3ecd._0xb49a6b,_0x42233a);}return _0x2e5af5[_0x293d19(-0x190,-0x20b,-0x1de,-0x183)]!==![]&&_0x2e5af5['stage']===_0x38b6fc&&_0x2e5af5[_0x293d19(-0x1a9,-_0x502472._0x52cbdd,-0x133,-0x144)]===_0x573599(_0x502472._0x2e58e6,0xce,_0x502472._0x14d164,0x14a);})[_0x1b5c20(0x4f,-0x7c,-0xb,_0x2b2822._0x4e62ab)]((_0x2c6175,_0x2cc61a)=>{const _0x102687={_0x2ae003:0xf0};function _0x15cd46(_0xe40e69,_0x2f6df7,_0xdae659,_0x288c82){return _0x23a00e(_0xe40e69-_0x102687._0x2ae003,_0x2f6df7-0xd8,_0xdae659-0x33,_0x288c82);}if(_0x2c6175['terminal']===!![]&&_0x2cc61a[_0x2d0ecf(-0x151,-0x153,-_0xa2c87._0x581def,-0xf5)]!==!![])return 0x1;if(_0x2c6175[_0x2d0ecf(-_0xa2c87._0x1b9869,-0x153,-_0xa2c87._0x4693bc,-0x11f)]!==!![]&&_0x2cc61a[_0x2d0ecf(-0x169,-0x153,-_0xa2c87._0x55f2da,-_0xa2c87._0x4e8db3)]===!![])return-0x1;function _0x2d0ecf(_0x44f917,_0x1bf47b,_0x43325a,_0x4ffec6){return _0x23a00e(_0x44f917-0x99,_0x1bf47b-0x95,_0x43325a-0x15e,_0x4ffec6);}return _0x2c6175[_0x2d0ecf(-_0xa2c87._0x2b02ac,-0x1fb,-_0xa2c87._0x2f2c41,-0x1ca)]-_0x2cc61a[_0x15cd46(-0x1be,-_0xa2c87._0x3086bd,-_0xa2c87._0x21bc8b,-_0xa2c87._0x236fe9)];});}function _0x2bfb(_0x4a06ac,_0x398617){_0x4a06ac=_0x4a06ac-0x95;const _0x282c2d=_0x282c();let _0x2bfb4b=_0x282c2d[_0x4a06ac];if(_0x2bfb['zMgPXj']===undefined){var _0x1596c5=function(_0x5b2bfd){const _0x4b8670='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3eaa58='',_0x262a7e='';for(let _0xdc5b1c=0x0,_0x30eda4,_0xb7bf31,_0x15ccde=0x0;_0xb7bf31=_0x5b2bfd['charAt'](_0x15ccde++);~_0xb7bf31&&(_0x30eda4=_0xdc5b1c%0x4?_0x30eda4*0x40+_0xb7bf31:_0xb7bf31,_0xdc5b1c++%0x4)?_0x3eaa58+=String['fromCharCode'](0xff&_0x30eda4>>(-0x2*_0xdc5b1c&0x6)):0x0){_0xb7bf31=_0x4b8670['indexOf'](_0xb7bf31);}for(let _0x58ecd0=0x0,_0x35f94e=_0x3eaa58['length'];_0x58ecd0<_0x35f94e;_0x58ecd0++){_0x262a7e+='%'+('00'+_0x3eaa58['charCodeAt'](_0x58ecd0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x262a7e);};_0x2bfb['oRudWu']=_0x1596c5,_0x2bfb['EQXyvv']={},_0x2bfb['zMgPXj']=!![];}const _0x308702=_0x282c2d[0x0],_0x264c3c=_0x4a06ac+_0x308702,_0x40e7fa=_0x2bfb['EQXyvv'][_0x264c3c];return!_0x40e7fa?(_0x2bfb4b=_0x2bfb['oRudWu'](_0x2bfb4b),_0x2bfb['EQXyvv'][_0x264c3c]=_0x2bfb4b):_0x2bfb4b=_0x40e7fa,_0x2bfb4b;}function getOrderedTransformerExtensions(_0x98b816,_0xdbbc57){const _0x1f64c4={_0x870caf:0xab,_0x440c5a:0x9d,_0x4d46f5:0x37,_0x1b45f2:0x88,_0x40bdc1:0xf5,_0x522a8e:0xb6},_0x2d20b0={_0x23c9b0:0x1a3,_0x335e1f:0x244,_0x1a003c:0x245,_0x36587e:0x1d8,_0x13e803:0x2cc,_0xf19012:0x497,_0x14f570:0x505,_0x293dea:0x51d},_0x5113d1={_0x446914:0x343},_0x4d3ce9={_0x5a915b:0x101,_0xff566e:0x59,_0x4521b7:0x387};function _0x571f1f(_0x33434a,_0x5ef13d,_0x6c0551,_0x215107){return _0x1e96ec(_0x215107,_0x5ef13d-_0x4d3ce9._0x5a915b,_0x6c0551-_0x4d3ce9._0xff566e,_0x33434a- -_0x4d3ce9._0x4521b7);}function _0x1e5922(_0x72230b,_0x2deda2,_0x320a65,_0x1276a9){return _0x1e96ec(_0x1276a9,_0x2deda2-0x16e,_0x320a65-0x1d4,_0x72230b- -_0x5113d1._0x446914);}return _0x98b816[_0x1e5922(_0x1f64c4._0x870caf,0x10f,_0x1f64c4._0x440c5a,_0x1f64c4._0x4d46f5)](_0x4d4a8f=>{const _0x468181={_0x11502f:0x106,_0x387dd2:0x193},_0x27a7ab={_0x228bc0:0x14f};function _0x3e72ee(_0x255098,_0x3ab84f,_0x25ef9b,_0x39754b){return _0x1e5922(_0x3ab84f-0x469,_0x3ab84f-_0x27a7ab._0x228bc0,_0x25ef9b-0x13b,_0x255098);}function _0x20737e(_0x2d9da2,_0x4dd469,_0x364268,_0x121ffd){return _0x1e5922(_0x121ffd- -0x256,_0x4dd469-_0x468181._0x11502f,_0x364268-_0x468181._0x387dd2,_0x2d9da2);}return _0x4d4a8f[_0x20737e(-_0x2d20b0._0x23c9b0,-_0x2d20b0._0x335e1f,-_0x2d20b0._0x1a003c,-0x20d)]!==![]&&_0x4d4a8f[_0x20737e(-0x1d3,-_0x2d20b0._0x36587e,-_0x2d20b0._0x13e803,-0x254)]===_0xdbbc57&&_0x4d4a8f['kind']===_0x3e72ee(_0x2d20b0._0xf19012,_0x2d20b0._0x14f570,0x571,_0x2d20b0._0x293dea);})[_0x571f1f(_0x1f64c4._0x1b45f2,_0x1f64c4._0x40bdc1,0xcd,_0x1f64c4._0x522a8e)]((_0x15990b,_0x27e017)=>_0x15990b[_0x1e5922(0x28,-0x2f,-0x13,0x73)]-_0x27e017[_0x1e5922(0x28,-0x60,-0x23,0x9f)]);}function createExtensionRegistry(){const _0x5997bf={_0x449095:0x55,_0xf2d34b:0x5,_0x339b21:0xd8},_0x2e0163={_0x42e0e8:0x1f0},_0x5d02a5={_0x4755e9:0x29d,_0x1c19a0:0x307,_0x2d8191:0x2b9,_0x4f8267:0x258,_0x3b96d0:0x3,_0x569e7d:0x78,_0x1c3e3a:0xa5,_0x516032:0xf,_0x42420b:0x5c,_0x2a82d7:0x0,_0x5dfdbf:0x1d,_0x30f508:0x1f3,_0x33765d:0x24b,_0x310b6a:0x1e2,_0x255e93:0x285,_0x5886cd:0x244,_0x4c5adc:0x207,_0x1aee6b:0xaa,_0x4c6f07:0x45,_0x46e3eb:0x8b,_0x25564b:0x8,_0x5d6b2f:0x228,_0x3e0692:0x246},_0x403eff={_0x20a85d:0x17e},_0x383dd2=[];return{'register'(_0x3e3744){if(_0x3e3744[_0x2d03a7(_0x5d02a5._0x4755e9,_0x5d02a5._0x1c19a0,0x2f3,0x2f0)]===_0x2d03a7(_0x5d02a5._0x2d8191,0x2eb,0x267,_0x5d02a5._0x4f8267)&&_0x3e3744[_0x383cfd(_0x5d02a5._0x3b96d0,-_0x5d02a5._0x569e7d,-_0x5d02a5._0x1c3e3a,-0xd2)]!==![]&&_0x3e3744[_0x383cfd(0x26,_0x5d02a5._0x516032,_0x5d02a5._0x42420b,_0x5d02a5._0x2a82d7)]===!![]){const _0x3bb552=_0x383dd2['find'](_0x8d3582=>_0x8d3582[_0x2d03a7(0x2d3,0x2f9,0x2f3,0x303)]===_0x383cfd(-0x126,-0x9c,-0x19,-0xcd)&&_0x8d3582[_0x383cfd(0x2,-0x78,-0x2,-0x80)]!==![]&&_0x8d3582[_0x2d03a7(0x2ac,0x2ac,0x244,0x1e5)]===_0x3e3744[_0x2d03a7(0x243,0x1d1,0x244,0x1e4)]&&_0x8d3582['terminal']===!![]);if(_0x3bb552)throw new Error(_0x383cfd(0x57,-0x1f,_0x5d02a5._0x5dfdbf,0x35)+_0x3e3744['id']+_0x2d03a7(_0x5d02a5._0x30f508,_0x5d02a5._0x33765d,0x27e,0x24f)+_0x3e3744[_0x2d03a7(_0x5d02a5._0x310b6a,_0x5d02a5._0x255e93,_0x5d02a5._0x5886cd,_0x5d02a5._0x4c5adc)]+_0x383cfd(-_0x5d02a5._0x1aee6b,-_0x5d02a5._0x4c6f07,-0xc5,-_0x5d02a5._0x46e3eb)+_0x3bb552['id']+_0x383cfd(_0x5d02a5._0x25564b,0x20,-0x30,0x99));}function _0x383cfd(_0x374a69,_0xba03ec,_0x320301,_0x281080){return _0x2bfb(_0xba03ec- -_0x403eff._0x20a85d,_0x281080);}function _0x2d03a7(_0x4244d5,_0x1c2733,_0x444cb7,_0x29a39c){return _0x2bfb(_0x444cb7-0x185,_0x4244d5);}_0x383dd2[_0x2d03a7(_0x5d02a5._0x5d6b2f,0x1e6,_0x5d02a5._0x3e0692,0x2c2)]({..._0x3e3744});},async 'runTransformers'(_0x56b2ad,_0x4ad14a,_0x4079f1){let _0x335d07=_0x4ad14a;for(const _0x49bad6 of getOrderedTransformerExtensions(_0x383dd2,_0x56b2ad)){_0x335d07=await _0x49bad6['run'](_0x335d07,_0x4079f1);}return _0x335d07;},async 'runObservers'(_0x373293,_0xebebb7,_0x319b2e){function _0x51aaa0(_0x210e86,_0x548e22,_0x20849a,_0x26a0ce){return _0x2bfb(_0x548e22- -_0x2e0163._0x42e0e8,_0x210e86);}for(const _0xd0db5a of getOrderedObserverExtensions(_0x383dd2,_0x373293)){await _0xd0db5a[_0x51aaa0(0x35,-_0x5997bf._0x449095,-_0x5997bf._0xf2d34b,-_0x5997bf._0x339b21)](_0xebebb7,_0x319b2e);}}};}var MODEL_USAGE_TOTAL_KEYS=['totalTokens',_0x1e96ec(0x38c,0x3fc,0x389,0x3ff),_0x36460c(0x338,0x336,0x2f5,0x2ac),'totalReasoningTokens','requestCount',_0x1e96ec(0x44a,0x44e,0x433,0x3c3),'totalModelTimeMs','totalCostUsdTicks','totalReportedCostUsdTicks',_0x36460c(0x42d,0x428,0x411,0x478),_0x36460c(0x446,0x3c9,0x3ff,0x433),_0x36460c(0x397,0x3ef,0x3f0,0x412),_0x36460c(0x2ab,0x32d,0x3a7,0x379),_0x1e96ec(0x369,0x35c,0x314,0x372),_0x1e96ec(0x2e3,0x38b,0x2c6,0x349)],SUBAGENT_REPORT_META_KEYS=[_0x36460c(0x3bc,0x418,0x45a,0x445),'runId',_0x1e96ec(0x47f,0x3a2,0x48b,0x41e),_0x1e96ec(0x3a4,0x37e,0x3ba,0x3d5),_0x36460c(0x346,0x3cc,0x412,0x357),_0x36460c(0x385,0x364,0x2de,0x3cc)],ModelUsageOverflowError=class extends RangeError{[_0x1e96ec(0x419,0x49b,0x49a,0x42d)]=_0x1e96ec(0x398,0x3e9,0x376,0x376);};function hasExactKeys(_0x5cd100,_0x57f715){const _0x41036e={_0x59cfad:0x431,_0x236fba:0x3b4,_0x1e1c91:0x3e7,_0x25518a:0x397,_0x2430a1:0x3f2,_0xa55b9d:0x356,_0x6ecfa8:0x326,_0x2fcba4:0x39a,_0x299fea:0x2f3},_0x1917e3={_0x15538e:0x1bb},_0x501eaf={_0x5b3003:0xd8,_0x19c236:0x29};if(typeof _0x5cd100!==_0x465fd3(0x475,_0x41036e._0x59cfad,0x401,0x471)||_0x5cd100===null||Array[_0x465fd3(_0x41036e._0x236fba,0x440,_0x41036e._0x1e1c91,_0x41036e._0x25518a)](_0x5cd100))return![];const _0x8b47d2=Object[_0x465fd3(_0x41036e._0x2430a1,_0x41036e._0xa55b9d,0x386,_0x41036e._0x6ecfa8)](_0x5cd100);function _0x465fd3(_0x518ac6,_0x57db86,_0x20e7ef,_0x4d865f){return _0x36460c(_0x518ac6-_0x501eaf._0x5b3003,_0x20e7ef- -_0x501eaf._0x19c236,_0x4d865f,_0x4d865f-0x1e9);}function _0x337a77(_0x5888a4,_0x1cdf21,_0x26ef80,_0x586fdd){return _0x36460c(_0x5888a4-0xf1,_0x5888a4- -0x3d7,_0x1cdf21,_0x586fdd-_0x1917e3._0x15538e);}return _0x8b47d2['length']===_0x57f715[_0x465fd3(_0x41036e._0x6ecfa8,0x425,_0x41036e._0x2fcba4,0x39f)]&&_0x8b47d2[_0x465fd3(0x36f,0x32f,0x36d,_0x41036e._0x299fea)](_0x57bfca=>_0x57f715['includes'](_0x57bfca));}function isNonNegativeSafeInteger(_0x4670be){const _0xf88985={_0x34232b:0x29f,_0x45e558:0x1db,_0x112733:0x3e5,_0x42a934:0x38c},_0x123e94={_0x15aecb:0x136,_0x5d0dd4:0xb8},_0x224715={_0x5a7de0:0x11,_0x4654b1:0x10};function _0x22bf88(_0x4c8bc6,_0x2c5415,_0x2b6782,_0x3162b1){return _0x36460c(_0x4c8bc6-_0x224715._0x5a7de0,_0x2c5415- -0x1bb,_0x4c8bc6,_0x3162b1-_0x224715._0x4654b1);}function _0x541faf(_0x423b58,_0x4f0ddd,_0x4d49b1,_0x2a6baf){return _0x36460c(_0x423b58-_0x123e94._0x15aecb,_0x2a6baf- -0x11,_0x4f0ddd,_0x2a6baf-_0x123e94._0x5d0dd4);}return typeof _0x4670be===_0x22bf88(0x291,0x225,_0xf88985._0x34232b,_0xf88985._0x45e558)&&Number[_0x541faf(0x39d,_0xf88985._0x112733,0x348,_0xf88985._0x42a934)](_0x4670be)&&_0x4670be>=0x0;}function requireModelUsageInteger(_0x182286){const _0x843696={_0x26ad82:0x12e,_0x2d57a8:0x12f,_0x5d193c:0x187};function _0x24839c(_0x352abc,_0x31713d,_0x4948bf,_0x3b8d8a){return _0x36460c(_0x352abc-0x185,_0x3b8d8a- -0x5b8,_0x31713d,_0x3b8d8a-0x162);}if(!isNonNegativeSafeInteger(_0x182286))throw new ModelUsageOverflowError(_0x24839c(-_0x843696._0x26ad82,-0x1c9,-_0x843696._0x2d57a8,-_0x843696._0x5d193c));return _0x182286;}function addModelUsageInteger(_0x1c82e,_0x2ec492){return requireModelUsageInteger(_0x1c82e+_0x2ec492);}function emptyModelUsageTotals(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'totalModelTimeMs':0x0,'totalCostUsdTicks':0x0,'totalReportedCostUsdTicks':0x0,'totalEstimatedCostUsdTicks':0x0,'reportedCostCallCount':0x0,'estimatedCostCallCount':0x0,'unpricedModelCallCount':0x0,'historicalMetricsComplete':!![],'missingHistoricalModelCallCount':0x0};}function isModelUsageTotals(_0x2487c4){const _0xe43d78={_0x58e4a5:0x1b8,_0x3ebcf6:0x25c,_0x5510ab:0x4d1,_0x2f1977:0x551,_0x5141e3:0x56b,_0x91e0a5:0x539,_0x313e9f:0x3f1,_0x386fc0:0x47d,_0x4d79a1:0x451,_0x47ffc5:0x50f,_0x26498f:0x527,_0x115768:0x170,_0xf0c61c:0x191,_0xbcc860:0x57b,_0x3767d2:0x53a,_0x3a3e7c:0x49b,_0x2862ef:0x51a,_0x2a9348:0x4e7,_0x27078f:0x4eb,_0x54a2cb:0x4fd,_0x5de1da:0x185,_0x3aea23:0x236},_0x17b422={_0x3e1809:0x54b},_0x1e4519={_0x343399:0xac};if(!hasExactKeys(_0x2487c4,MODEL_USAGE_TOTAL_KEYS))return![];function _0x5e4616(_0x23008a,_0x5ec078,_0x3b6bf4,_0x1ad504){return _0x36460c(_0x23008a-_0x1e4519._0x343399,_0x1ad504-0x12b,_0x23008a,_0x1ad504-0x1cd);}for(const _0x296da0 of MODEL_USAGE_TOTAL_KEYS){if(_0x296da0===_0x3f2ed5(-0x182,-0x247,-0x1ce,-0x1d9))continue;if(!isNonNegativeSafeInteger(_0x2487c4[_0x296da0]))return![];}if(typeof _0x2487c4[_0x3f2ed5(-_0xe43d78._0x58e4a5,-_0xe43d78._0x3ebcf6,-0x1e4,-0x1d9)]!==_0x5e4616(_0xe43d78._0x5510ab,0x513,0x54a,_0xe43d78._0x2f1977))return![];function _0x3f2ed5(_0x4b17d5,_0x5bca7b,_0x560145,_0x560f9b){return _0x1e96ec(_0x5bca7b,_0x5bca7b-0x1de,_0x560145-0x22,_0x560f9b- -_0x17b422._0x3e1809);}const _0x4db8ab=_0x2487c4;return _0x4db8ab['totalTokens']===_0x4db8ab[_0x5e4616(_0xe43d78._0x5141e3,0x572,0x500,_0xe43d78._0x91e0a5)]+_0x4db8ab[_0x5e4616(0x4b5,0x4b9,_0xe43d78._0x313e9f,0x461)]&&_0x4db8ab[_0x3f2ed5(-0x1e7,-0x117,-0x20e,-0x195)]<=_0x4db8ab[_0x5e4616(0x406,_0xe43d78._0x386fc0,_0xe43d78._0x4d79a1,0x461)]&&_0x4db8ab['requestCount']<=_0x4db8ab[_0x5e4616(0x509,_0xe43d78._0x47ffc5,_0xe43d78._0x26498f,0x4fd)]&&_0x4db8ab[_0x3f2ed5(-0x11c,-_0xe43d78._0x115768,-0x177,-_0xe43d78._0xf0c61c)]<=_0x4db8ab[_0x5e4616(_0xe43d78._0xbcc860,0x575,_0xe43d78._0x3767d2,0x4fd)]&&_0x4db8ab[_0x5e4616(_0xe43d78._0x3a3e7c,0x49e,0x4fc,_0xe43d78._0x2862ef)]<=_0x4db8ab['modelCallCount']&&_0x4db8ab['unpricedModelCallCount']<=_0x4db8ab[_0x5e4616(_0xe43d78._0x2a9348,0x4d8,_0xe43d78._0x27078f,_0xe43d78._0x54a2cb)]&&_0x4db8ab[_0x3f2ed5(-0x1dc,-0x1ac,-_0xe43d78._0x5de1da,-0x1d9)]===(_0x4db8ab[_0x3f2ed5(-0x208,-_0xe43d78._0x3aea23,-0x256,-0x202)]===0x0);}function isSubagentReportMeta(_0x4fcb17){const _0x11661d={_0xea296d:0xd5,_0x1acb89:0x146,_0x318aa7:0x5,_0x16218f:0x103,_0x29308:0xf2,_0x36c793:0xf1,_0x44dc20:0x3a,_0x2e3b36:0x4a,_0x20bd46:0xc5,_0x2a3d97:0xad,_0x228621:0xf7,_0x149e5d:0x13f,_0x80b4c:0xf9,_0x11d709:0x40,_0x18e77b:0x28,_0x468b8a:0x1a,_0x58c716:0x18a,_0x37b324:0xdd,_0x25909b:0x112,_0x1258f8:0x66,_0x5c7370:0x78,_0x1cae17:0x159,_0x53e422:0x126,_0x115652:0x13,_0x4854e7:0x2e,_0x481fb3:0x46,_0x55eefd:0xce,_0x290b78:0x1d,_0xe4c54d:0x36,_0x5a4bf9:0x87,_0x13291a:0xfd,_0x306044:0x2c,_0x20ad96:0x89,_0x48fbb6:0x7a,_0x2a008c:0x10a,_0x481407:0xc6,_0x4d756c:0x36},_0x50da35={_0x473525:0x5e,_0x3ada56:0x404},_0x1e0bb1={_0x37f56c:0x48};function _0xc34911(_0x4933cc,_0x2b900a,_0x29fc06,_0x5a60a6){return _0x1e96ec(_0x29fc06,_0x2b900a-_0x1e0bb1._0x37f56c,_0x29fc06-0xff,_0x5a60a6- -0x2c3);}if(!hasExactKeys(_0x4fcb17,SUBAGENT_REPORT_META_KEYS))return![];if(typeof _0x4fcb17[_0xc34911(0x178,_0x11661d._0xea296d,0x1ab,_0x11661d._0x1acb89)]!=='string'||_0x4fcb17[_0x568c40(_0x11661d._0x318aa7,0x56,-0x67,-0x2a)][_0xc34911(_0x11661d._0x16218f,0x8a,_0x11661d._0x29308,_0x11661d._0x36c793)]===0x0)return![];if(typeof _0x4fcb17[_0x568c40(0xe,_0x11661d._0x44dc20,0x2,_0x11661d._0x2e3b36)]!==_0x568c40(-_0x11661d._0x20bd46,-_0x11661d._0x2a3d97,-0xf8,-_0x11661d._0x228621)||_0x4fcb17[_0xc34911(0xd9,0x18b,_0x11661d._0x149e5d,0x14f)][_0xc34911(_0x11661d._0x80b4c,0xa4,0x9a,0xf1)]===0x0)return![];function _0x568c40(_0x30e2fe,_0x3b7d46,_0x4e3880,_0x555033){return _0x1e96ec(_0x4e3880,_0x3b7d46-_0x50da35._0x473525,_0x4e3880-0xb4,_0x30e2fe- -_0x50da35._0x3ada56);}if(typeof _0x4fcb17[_0x568c40(0x1a,_0x11661d._0x11d709,_0x11661d._0x18e77b,0x35)]!=='string'||_0x4fcb17[_0x568c40(_0x11661d._0x468b8a,0x1d,0x61,0x6a)]['length']===0x0)return![];if(_0x4fcb17[_0xc34911(0xba,_0x11661d._0x58c716,_0x11661d._0x37b324,_0x11661d._0x25909b)]!==_0xc34911(_0x11661d._0x1258f8,_0x11661d._0x5c7370,_0x11661d._0x1cae17,0xe3)&&_0x4fcb17[_0xc34911(_0x11661d._0x53e422,0x91,0x19c,0x112)]!=='failed'&&_0x4fcb17[_0x568c40(-0x2f,0x41,_0x11661d._0x115652,_0x11661d._0x4854e7)]!==_0xc34911(_0x11661d._0x481fb3,0x1b,0x98,0x85))return![];if(!isModelUsageTotals(_0x4fcb17[_0x568c40(-0x47,-_0x11661d._0x55eefd,_0x11661d._0x290b78,-_0x11661d._0xe4c54d)]))return![];if(!isModelUsageTotals(_0x4fcb17[_0xc34911(_0x11661d._0x5a4bf9,0x10b,_0x11661d._0x13291a,0x92)]))return![];return _0x4fcb17[_0x568c40(-0x47,0x1f,-_0x11661d._0x306044,-_0x11661d._0x20ad96)][_0x568c40(-0x92,-0xd,-_0x11661d._0x48fbb6,-_0x11661d._0x2a008c)]&&_0x4fcb17[_0x568c40(-0x47,-_0x11661d._0x481407,-0x92,-_0x11661d._0x4d756c)]['missingHistoricalModelCallCount']===0x0;}function addModelUsageTotals(_0x212a44,_0x2b2764){const _0x48423a={_0x2c1bed:0x527,_0x5886cf:0x46d,_0x531589:0x530,_0x3959ef:0x2e7,_0x7d34e:0x2ec,_0x4a0c6b:0x342,_0x341fe8:0x460,_0x4924fe:0x52e,_0xa2131b:0x4f3,_0x364fd4:0x520,_0x13ea0a:0x508,_0x3bfd77:0x48e,_0x3cff96:0x374,_0x189ccf:0x355,_0x244158:0x54f,_0x5cf526:0x4a2,_0x5b5f71:0x3e9,_0x4557c5:0x4b2,_0x6141e:0x431,_0x2f212a:0x52a,_0x86580:0x575,_0x2dcf15:0x4bd,_0x2ee8ab:0x49e,_0x5d11ce:0x48a,_0x4d7077:0x4a2,_0x3247a3:0x4a8,_0x4a95ae:0x4cc,_0x21d7bd:0x3f8,_0x161e99:0x4aa,_0x295d12:0x434,_0x3f7ab3:0x568,_0x49b0b1:0x53f,_0x468075:0x3e6,_0x26e4ba:0x38d,_0x14f861:0x3fb,_0x209bf9:0x519,_0x592c84:0x53c,_0x5db108:0x2fb,_0x24db51:0x339,_0x35178a:0x3f8,_0x417a7a:0x457,_0x336cc2:0x454,_0xee6c42:0x3eb,_0x3e49b5:0x313,_0x1346c9:0x3de,_0x4f1aa6:0x503,_0x361706:0x482,_0x144e0e:0x50c,_0x34032b:0x507,_0x5c434a:0x4fb},_0x4cc929={_0x18af33:0x180,_0x107998:0x1b},_0x5826bb={_0x3645de:0x12a,_0x32d847:0x0};function _0x1dfc57(_0x1fe9e2,_0x3e03ac,_0x4469b3,_0x3f88b4){return _0x36460c(_0x1fe9e2-0x1a7,_0x3e03ac-_0x5826bb._0x3645de,_0x4469b3,_0x3f88b4-_0x5826bb._0x32d847);}function _0x38ad85(_0x366cfa,_0x32f3b6,_0x36cf5f,_0x51dc2c){return _0x1e96ec(_0x366cfa,_0x32f3b6-_0x4cc929._0x18af33,_0x36cf5f-0x16d,_0x51dc2c-_0x4cc929._0x107998);}return{'totalTokens':addModelUsageInteger(_0x212a44[_0x1dfc57(0x469,0x4e5,_0x48423a._0x2c1bed,_0x48423a._0x5886cf)],_0x2b2764['totalTokens']),'totalInputTokens':addModelUsageInteger(_0x212a44['totalInputTokens'],_0x2b2764[_0x1dfc57(0x4fd,0x538,0x4f3,_0x48423a._0x531589)]),'totalOutputTokens':addModelUsageInteger(_0x212a44[_0x38ad85(_0x48423a._0x3959ef,_0x48423a._0x7d34e,0x303,_0x48423a._0x4a0c6b)],_0x2b2764[_0x1dfc57(0x47b,_0x48423a._0x341fe8,0x449,0x3fe)]),'totalReasoningTokens':addModelUsageInteger(_0x212a44[_0x1dfc57(_0x48423a._0x4924fe,0x4ef,_0x48423a._0xa2131b,_0x48423a._0x364fd4)],_0x2b2764[_0x1dfc57(0x46c,0x4ef,0x517,0x467)]),'requestCount':addModelUsageInteger(_0x212a44['requestCount'],_0x2b2764['requestCount']),'modelCallCount':addModelUsageInteger(_0x212a44[_0x1dfc57(0x52b,0x4fc,_0x48423a._0x13ea0a,_0x48423a._0x3bfd77)],_0x2b2764[_0x38ad85(_0x48423a._0x3cff96,_0x48423a._0x189ccf,0x39c,0x3de)]),'totalModelTimeMs':addModelUsageInteger(_0x212a44[_0x1dfc57(0x4c5,_0x48423a._0x244158,0x53d,0x515)],_0x2b2764[_0x38ad85(_0x48423a._0x5cf526,_0x48423a._0x5b5f71,_0x48423a._0x4557c5,_0x48423a._0x6141e)]),'totalCostUsdTicks':addModelUsageInteger(_0x212a44['totalCostUsdTicks'],_0x2b2764[_0x1dfc57(_0x48423a._0x2f212a,0x4fe,_0x48423a._0x86580,0x571)]),'totalReportedCostUsdTicks':addModelUsageInteger(_0x212a44[_0x1dfc57(_0x48423a._0x2dcf15,0x4a2,_0x48423a._0x2ee8ab,_0x48423a._0x5d11ce)],_0x2b2764[_0x1dfc57(0x489,_0x48423a._0x4d7077,_0x48423a._0x3247a3,0x4b0)]),'totalEstimatedCostUsdTicks':addModelUsageInteger(_0x212a44[_0x1dfc57(0x5c6,0x552,_0x48423a._0x4a95ae,0x5b7)],_0x2b2764[_0x38ad85(_0x48423a._0x21d7bd,0x3f6,_0x48423a._0x161e99,_0x48423a._0x295d12)]),'reportedCostCallCount':addModelUsageInteger(_0x212a44['reportedCostCallCount'],_0x2b2764[_0x1dfc57(0x54e,0x4f3,_0x48423a._0x3f7ab3,_0x48423a._0x49b0b1)]),'estimatedCostCallCount':addModelUsageInteger(_0x212a44[_0x38ad85(_0x48423a._0x468075,_0x48423a._0x26e4ba,0x45c,_0x48423a._0x14f861)],_0x2b2764[_0x1dfc57(0x59c,_0x48423a._0x209bf9,0x547,_0x48423a._0x592c84)]),'unpricedModelCallCount':addModelUsageInteger(_0x212a44[_0x38ad85(0x2b6,_0x48423a._0x5db108,0x306,_0x48423a._0x24db51)],_0x2b2764[_0x1dfc57(_0x48423a._0x35178a,_0x48423a._0x417a7a,_0x48423a._0x336cc2,_0x48423a._0xee6c42)]),'historicalMetricsComplete':_0x212a44[_0x38ad85(_0x48423a._0x3e49b5,0x38d,_0x48423a._0x1346c9,0x38d)]&&_0x2b2764['historicalMetricsComplete'],'missingHistoricalModelCallCount':addModelUsageInteger(_0x212a44[_0x1dfc57(_0x48423a._0x4f1aa6,_0x48423a._0x361706,0x4be,_0x48423a._0x144e0e)],_0x2b2764[_0x1dfc57(_0x48423a._0x34032b,0x482,0x4b0,_0x48423a._0x5c434a)])};}function modelUsageTotalsEqual(_0x41e9e1,_0x15c61d){return MODEL_USAGE_TOTAL_KEYS['every'](_0x2985d5=>_0x41e9e1[_0x2985d5]===_0x15c61d[_0x2985d5]);}function modelUsageTotalsFromSnapshot(_0x1a50ab){const _0x590a23={_0xd7f54d:0x1fe,_0x5be582:0x2c1,_0x5f33b8:0x2e4,_0x130b5c:0x2e8,_0x30abb0:0x277,_0x27e687:0x4b0,_0x2eb5e4:0x2df,_0x3f3a5d:0x2ba,_0x164052:0x2be,_0x3bb442:0x1cc,_0x395fa5:0x20d,_0x1defda:0x4bf,_0x2254af:0x463,_0x4e07ac:0x452,_0x5355e1:0x4c1,_0x2aca3d:0x476,_0x2b0e26:0x498,_0x53d52c:0x43e,_0x5b1bce:0x506},_0x20a9fb={_0x446b09:0x24},_0x12d2c4={_0x7cfd18:0x117,_0x466015:0x9a,_0x33ff4a:0x14f};function _0x49a77e(_0x205abb,_0x88195c,_0x355b55,_0xb5ec59){return _0x1e96ec(_0x88195c,_0x88195c-_0x12d2c4._0x7cfd18,_0x355b55-_0x12d2c4._0x466015,_0x355b55-_0x12d2c4._0x33ff4a);}const _0x27f204={'totalTokens':_0x1a50ab[_0x309223(_0x590a23._0xd7f54d,_0x590a23._0x5be582,0x268,0x250)],'totalInputTokens':_0x1a50ab[_0x309223(_0x590a23._0x5f33b8,0x246,0x2a6,0x2a3)],'totalOutputTokens':_0x1a50ab[_0x49a77e(0x3fc,0x45d,0x476,0x487)],'totalReasoningTokens':_0x1a50ab['totalReasoningTokens'],'requestCount':_0x1a50ab[_0x309223(0x210,_0x590a23._0x130b5c,0x25f,_0x590a23._0x30abb0)],'modelCallCount':_0x1a50ab[_0x49a77e(_0x590a23._0x27e687,0x49c,0x512,0x4b5)],'totalModelTimeMs':_0x1a50ab[_0x309223(0x303,_0x590a23._0x2eb5e4,0x2a2,_0x590a23._0x3f3a5d)],'totalCostUsdTicks':_0x1a50ab[_0x309223(0x21b,_0x590a23._0x164052,0x2d7,0x269)],'totalReportedCostUsdTicks':_0x1a50ab[_0x309223(_0x590a23._0x3bb442,0x18e,0x1dc,_0x590a23._0x395fa5)],'totalEstimatedCostUsdTicks':_0x1a50ab['totalEstimatedCostUsdTicks'],'reportedCostCallCount':_0x1a50ab['reportedCostCallCount'],'estimatedCostCallCount':_0x1a50ab['estimatedCostCallCount'],'unpricedModelCallCount':_0x1a50ab[_0x49a77e(0x43c,0x419,0x46d,_0x590a23._0x1defda)],'historicalMetricsComplete':_0x1a50ab[_0x49a77e(_0x590a23._0x2254af,_0x590a23._0x4e07ac,_0x590a23._0x5355e1,0x4ff)],'missingHistoricalModelCallCount':_0x1a50ab[_0x49a77e(_0x590a23._0x2aca3d,0x4cf,_0x590a23._0x2b0e26,0x4f8)]};for(const _0x24cea0 of MODEL_USAGE_TOTAL_KEYS){if(_0x24cea0===_0x49a77e(_0x590a23._0x53d52c,_0x590a23._0x5b1bce,_0x590a23._0x5355e1,0x512))continue;requireModelUsageInteger(_0x27f204[_0x24cea0]);}function _0x309223(_0x7b917a,_0x4bf3a3,_0x140529,_0x429160){return _0x1e96ec(_0x4bf3a3,_0x4bf3a3-0xcd,_0x140529-_0x20a9fb._0x446b09,_0x429160- -0x15c);}return _0x27f204;}function modelUsageTotalsFromCall(_0x3fff8){const _0x367d4e={_0x4e02ae:0xd8,_0x1900cd:0xab,_0x283c33:0x99,_0x183deb:0xa3,_0x3f334b:0x61,_0x3cb0b6:0x13f,_0x4e9aa7:0x123,_0x1bc64f:0xd0,_0x7bfc14:0xc7,_0x54a572:0xaa,_0x852da6:0x1b1,_0x83b78e:0x165,_0x352eb2:0x171,_0x48172c:0x5b,_0x3b5ef9:0x65,_0x5cd4b7:0x1b,_0x2ebd08:0x19b,_0x22a3f6:0x125,_0x16e712:0x1a9,_0x12a78d:0x18f},_0x6962bb={_0x2d12bb:0x38},_0x4f1bad={_0x51e93c:0x17d};function _0x442a71(_0x3f5406,_0x1dd0f7,_0x5b6974,_0x3bc5f5){return _0x1e96ec(_0x5b6974,_0x1dd0f7-0x114,_0x5b6974-_0x4f1bad._0x51e93c,_0x3bc5f5- -0x293);}const _0x432aba=_0x3fff8[_0x140490(-_0x367d4e._0x4e02ae,-_0x367d4e._0x1900cd,-0x7c,-_0x367d4e._0x283c33)],_0x1376e3=requireModelUsageInteger(_0x432aba[_0x442a71(_0x367d4e._0x183deb,0x104,_0x367d4e._0x3f334b,0xad)]),_0xa07332=requireModelUsageInteger(_0x432aba[_0x140490(-_0x367d4e._0x3cb0b6,-0x142,-0x127,-0xe1)]),_0x10380b=requireModelUsageInteger(_0x432aba[_0x140490(-_0x367d4e._0x4e9aa7,-_0x367d4e._0x1bc64f,-_0x367d4e._0x7bfc14,-_0x367d4e._0x54a572)]??0x0),_0x543609=requireModelUsageInteger(_0x3fff8[_0x442a71(0x63,0x2c,0x1c,0xa4)]),_0x58707a=addModelUsageInteger(_0x1376e3,_0xa07332),_0x193c44=_0x432aba['reportedCost']?.[_0x442a71(_0x367d4e._0x852da6,_0x367d4e._0x83b78e,0x1e0,_0x367d4e._0x352eb2)],_0x4a54a8=_0x432aba['estimatedCost']?.[_0x140490(0xf,-_0x367d4e._0x48172c,-_0x367d4e._0x3b5ef9,-_0x367d4e._0x5cd4b7)],_0x250c3a=_0x193c44===void 0x0?void 0x0:requireModelUsageInteger(_0x193c44),_0x272334=_0x4a54a8===void 0x0?void 0x0:requireModelUsageInteger(_0x4a54a8),_0x306696=_0x250c3a??_0x272334,_0xd670d9={...emptyModelUsageTotals(),'totalTokens':_0x58707a,'totalInputTokens':_0x1376e3,'totalOutputTokens':_0xa07332,'totalReasoningTokens':_0x10380b,'requestCount':_0x3fff8[_0x442a71(_0x367d4e._0x2ebd08,0x145,0xde,_0x367d4e._0x22a3f6)]?0x1:0x0,'modelCallCount':0x1,'totalModelTimeMs':_0x543609,'totalCostUsdTicks':_0x306696??0x0,'totalReportedCostUsdTicks':_0x250c3a??0x0,'totalEstimatedCostUsdTicks':_0x272334??0x0,'reportedCostCallCount':_0x250c3a===void 0x0?0x0:0x1,'estimatedCostCallCount':_0x272334===void 0x0?0x0:0x1,'unpricedModelCallCount':_0x250c3a===void 0x0&&_0x272334===void 0x0?0x1:0x0};function _0x140490(_0x4900ee,_0x378817,_0x5c0351,_0xa21a48){return _0x36460c(_0x4900ee-0xda,_0xa21a48- -0x42e,_0x378817,_0xa21a48-_0x6962bb._0x2d12bb);}if(!isModelUsageTotals(_0xd670d9))throw new ModelUsageOverflowError(_0x442a71(0x1f2,_0x367d4e._0x16e712,0x18e,_0x367d4e._0x12a78d));return _0xd670d9;}function modelUsageTotalsFromHistory(_0x59c938,_0x313a4f){const _0x3b89bd={_0x2d0076:0x140,_0x4d89f8:0x1c0,_0x3c1fc6:0x1e7,_0x662380:0x241},_0x114bb8={_0x3d2983:0x87},_0x548331={_0x424bbe:0x4f};function _0x25f930(_0x1663ca,_0x119cb9,_0x123fb5,_0x1495b1){return _0x36460c(_0x1663ca-0x3a,_0x123fb5- -0x1d5,_0x1663ca,_0x1495b1-_0x548331._0x424bbe);}let _0x435d24=emptyModelUsageTotals();function _0x305731(_0x44c1d6,_0x2f7949,_0x1a0e8b,_0x4a96af){return _0x36460c(_0x44c1d6-_0x114bb8._0x3d2983,_0x44c1d6- -0x25f,_0x2f7949,_0x4a96af-0x1a5);}for(const _0x373397 of _0x59c938){_0x435d24=addModelUsageTotals(_0x435d24,modelUsageTotalsFromCall({'usage':_0x373397[_0x25f930(0x17b,_0x3b89bd._0x2d0076,_0x3b89bd._0x4d89f8,0x1fb)],'modelTimeMs':_0x373397['modelTimeMs'],'completesRequest':_0x373397[_0x25f930(0x1ce,_0x3b89bd._0x3c1fc6,0x1f2,_0x3b89bd._0x662380)]}));}const _0x4fd01f=requireModelUsageInteger(_0x313a4f);return{..._0x435d24,'historicalMetricsComplete':_0x4fd01f===0x0,'missingHistoricalModelCallCount':_0x4fd01f};}function createEmptySnapshot(){return{...emptyModelUsageTotals(),'toolCallCount':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function applyModelCall(_0x9dcbee,_0x515265){const _0x3d2d59={_0x6ece98:0x2fc,_0x28de08:0x35a,_0x45cfc0:0x2c6,_0x525dea:0x294,_0x2d5b8e:0x2e8,_0x23a2c4:0x1b9,_0x29dd51:0x1ce,_0x48af5a:0x1a9,_0xc47318:0x2d2,_0x3f3ed8:0x248,_0xd6a4ea:0x28c,_0x54b479:0x324,_0x54b3b3:0x317,_0x512bb6:0x352,_0x2fdfdb:0x32f,_0x3428e5:0x21d,_0x100295:0x226,_0x3c237f:0x34b,_0x55d81d:0x2f7,_0x30980d:0x25b,_0x48b89d:0x210,_0x40747e:0x25f,_0x5904c9:0x203,_0x4935d5:0x22f,_0x20fc0f:0x226,_0x87e1b7:0x2a6,_0x59d5f0:0x2c5,_0x3fe737:0x2a7},_0x3016a1={_0x3487fc:0x1c8},_0xb3ff21={_0x544d73:0x19d,_0x5eeccb:0xb4},_0x2dc60d=modelUsageTotalsFromCall(_0x515265),_0xfaa673=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x9dcbee),_0x2dc60d),_0x427658=_0x515265[_0x1bd982(0x2d2,_0x3d2d59._0x6ece98,_0x3d2d59._0x28de08,0x35a)][_0x1bd982(_0x3d2d59._0x45cfc0,_0x3d2d59._0x525dea,0x2d3,_0x3d2d59._0x2d5b8e)]?.[_0x1f2126(-0x148,-_0x3d2d59._0x23a2c4,-_0x3d2d59._0x29dd51,-_0x3d2d59._0x48af5a)];function _0x1bd982(_0x2c5b12,_0x5787ac,_0x1c5b67,_0x3e7c23){return _0x1e96ec(_0x3e7c23,_0x5787ac-0x17,_0x1c5b67-_0xb3ff21._0x544d73,_0x2c5b12- -_0xb3ff21._0x5eeccb);}function _0x1f2126(_0x243a2c,_0x382382,_0x3fe86e,_0x192be3){return _0x1e96ec(_0x243a2c,_0x382382-_0x3016a1._0x3487fc,_0x3fe86e-0x98,_0x3fe86e- -0x5d2);}const _0xd90446=_0x515265[_0x1bd982(_0x3d2d59._0xc47318,0x337,_0x3d2d59._0x3f3ed8,0x2bf)][_0x1f2126(-_0x3d2d59._0xd6a4ea,-_0x3d2d59._0x54b479,-0x29f,-_0x3d2d59._0x54b3b3)]?.[_0x1bd982(0x350,0x31f,_0x3d2d59._0x512bb6,_0x3d2d59._0x2fdfdb)],{currentReportedCostUsdTicks:_0x113287,currentEstimatedCostUsdTicks:_0x1bc698,..._0x1c882e}=_0x9dcbee;return{..._0x1c882e,..._0xfaa673,'currentTokens':_0x2dc60d[_0x1f2126(-0x2a5,-_0x3d2d59._0x3428e5,-_0x3d2d59._0x100295,-0x283)],'currentInputTokens':_0x2dc60d[_0x1bd982(_0x3d2d59._0x3c237f,0x33d,_0x3d2d59._0x45cfc0,0x38a)],'currentOutputTokens':_0x2dc60d['totalOutputTokens'],'currentReasoningTokens':_0x2dc60d['totalReasoningTokens'],'currentModelTimeMs':_0x2dc60d['totalModelTimeMs'],..._0x1c882e[_0x1bd982(0x2c5,0x2ef,_0x3d2d59._0x55d81d,_0x3d2d59._0x30980d)]&&_0x2dc60d[_0x1f2126(-_0x3d2d59._0x48b89d,-_0x3d2d59._0x40747e,-0x226,-_0x3d2d59._0x5904c9)]>0x0?{'contextWindowUsage':_0x2dc60d[_0x1f2126(-_0x3d2d59._0x4935d5,-0x234,-_0x3d2d59._0x20fc0f,-_0x3d2d59._0x87e1b7)]/_0x1c882e[_0x1bd982(_0x3d2d59._0x59d5f0,_0x3d2d59._0x3fe737,0x255,0x345)]}:{},..._0x427658!==void 0x0?{'currentReportedCostUsdTicks':_0x427658}:{},..._0xd90446!==void 0x0?{'currentEstimatedCostUsdTicks':_0xd90446}:{}};}function mergeExternalUsage(_0x494503,_0xb0f8f9){if(!isModelUsageTotals(_0xb0f8f9))throw new TypeError('Invalid\x20external\x20model\x20usage\x20totals');const _0x366017=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x494503),_0xb0f8f9);return{..._0x494503,..._0x366017};}function createAgentMetrics(_0x14cd03={}){const _0x4a8433={_0x57adba:0x29b},_0x2b726d={_0x4af2b3:0x23e,_0x59cabc:0x235,_0x76c764:0x25f,_0x19e161:0x2d1,_0x405745:0x271,_0x5c472f:0x297,_0x3024c4:0x393,_0x386e63:0x2e8,_0x43745f:0x2db,_0x3b6529:0x41f,_0x241745:0x443,_0x4825b8:0x40b,_0x4ac5af:0x432},_0x486be2={_0x4f891d:0x342,_0x438cf6:0x347,_0x7e69c4:0x14c,_0x2fee60:0x81,_0x35b5ac:0x91,_0x3c8105:0x10d,_0x5da4f5:0x12b,_0x3c49a1:0x9a,_0x51f627:0x75,_0x568d9c:0x3b1,_0x268757:0x9f,_0xe0a932:0x104,_0x4e330b:0x199,_0x514da4:0x111,_0x3092be:0xa4,_0x46fc6e:0x34d,_0x5235f:0x3f6,_0x32f11a:0x45b,_0x2cfdc6:0x3fe,_0xd8fbda:0x1f,_0x41d6f9:0x61},_0x1da540={_0x6fba21:0x1ac};let _0x3ce63b=createEmptySnapshot();const _0x422cdb=new Set();let _0x158ec3;const _0x3dc38a=()=>{const _0x223f0c={..._0x3ce63b};for(const _0x3bcd1b of _0x422cdb)_0x3bcd1b(_0x223f0c);};return{'getSnapshot'(){return{..._0x3ce63b};},'recordEvent'(_0x1a1d66){function _0x1ec455(_0x57db10,_0x24554d,_0xdea0d1,_0x23662a){return _0x2bfb(_0x24554d- -_0x1da540._0x6fba21,_0xdea0d1);}if(_0x1a1d66[_0xf21961(_0x486be2._0x4f891d,_0x486be2._0x438cf6,0x34d,0x2cf)]===_0x1ec455(-0x8b,-0xc2,-_0x486be2._0x7e69c4,-0xab)){_0x158ec3=Date['now']();const _0x3d4c23=_0x14cd03[_0x1ec455(-0x22,-0x7,_0x486be2._0x2fee60,-_0x486be2._0x35b5ac)]?.(_0x1a1d66[_0x1ec455(-0xc9,-0x102,-0x9f,-_0x486be2._0x3c8105)]);_0x3d4c23!==void 0x0&&(_0x3ce63b={..._0x3ce63b,'contextWindowLimit':_0x3d4c23},_0x3dc38a());return;}if(_0x1a1d66[_0x1ec455(-_0x486be2._0x5da4f5,-0x111,-0x14c,-0x139)]===_0x1ec455(-0x11b,-_0x486be2._0x3c49a1,-_0x486be2._0x51f627,-0x11)){const _0x55e838=_0x158ec3===void 0x0?0x0:Date[_0xf21961(0x3a8,_0x486be2._0x568d9c,0x3c1,0x43e)]()-_0x158ec3;_0x158ec3=void 0x0,_0x3ce63b=applyModelCall(_0x3ce63b,{'usage':_0x1a1d66[_0x1ec455(-0x84,-0x16,-_0x486be2._0x268757,-0x97)][_0x1ec455(-0x94,-0xac,-0xaf,-_0x486be2._0xe0a932)],'modelTimeMs':_0x1a1d66[_0xf21961(0x2d9,0x3a0,0x363,0x30e)]??_0x55e838}),_0x3dc38a();return;}if(_0x1a1d66[_0x1ec455(-_0x486be2._0x4e330b,-_0x486be2._0x514da4,-0xd8,-0x184)]===_0x1ec455(-_0x486be2._0x3092be,-0x108,-_0x486be2._0x514da4,-0xaa)){_0x3ce63b={..._0x3ce63b,'toolCallCount':_0x3ce63b[_0xf21961(0x4a9,0x46a,0x441,0x3be)]+0x1},_0x3dc38a();return;}function _0xf21961(_0x5bc88e,_0x479980,_0x1f938d,_0x3d5365){return _0x2bfb(_0x1f938d-0x2b2,_0x3d5365);}_0x1a1d66[_0xf21961(0x2c5,0x365,_0x486be2._0x46fc6e,0x2cf)]===_0xf21961(_0x486be2._0x5235f,0x3ec,_0x486be2._0x32f11a,_0x486be2._0x2cfdc6)&&(_0x3ce63b={..._0x3ce63b,'requestCount':addModelUsageInteger(_0x3ce63b[_0x1ec455(-0x12,-0x5f,-_0x486be2._0xd8fbda,-_0x486be2._0x41d6f9)],0x1)},_0x3dc38a());},'recordExternalUsage'(_0x12cbe1){const _0xec4a23=mergeExternalUsage(_0x3ce63b,_0x12cbe1);_0x3ce63b=_0xec4a23,_0x3dc38a();},'reset'(){_0x3ce63b=createEmptySnapshot(),_0x158ec3=void 0x0,_0x3dc38a();},'restore'(_0x4fc344){const _0x1a9881={_0x173485:0x299};let _0x273c13=createEmptySnapshot();for(const _0x23a61b of _0x4fc344[_0x1dec16(0x25d,_0x2b726d._0x4af2b3,_0x2b726d._0x59cabc,0x289)]){_0x273c13=applyModelCall(_0x273c13,{'usage':_0x23a61b[_0x1dec16(_0x2b726d._0x76c764,0x29b,0x291,_0x2b726d._0x19e161)],'modelTimeMs':_0x23a61b['modelTimeMs'],'completesRequest':_0x23a61b[_0x1dec16(0x2e2,0x2cd,_0x2b726d._0x405745,_0x2b726d._0x5c472f)]});}const _0x4e4108=requireModelUsageInteger(_0x4fc344['missingModelCallCount']);function _0x435488(_0x2eb1af,_0x2f09e0,_0x565f13,_0x1587a7){return _0x2bfb(_0x1587a7-_0x1a9881._0x173485,_0x565f13);}function _0x1dec16(_0x28057b,_0x29f59d,_0x16303d,_0x1fa02c){return _0x2bfb(_0x29f59d-0x19b,_0x16303d);}_0x273c13={..._0x273c13,'toolCallCount':_0x4fc344['toolCallCount'],'historicalMetricsComplete':_0x4e4108===0x0,'missingHistoricalModelCallCount':_0x4e4108};let _0x5e6eda=_0x273c13;if(_0x4fc344[_0x1dec16(_0x2b726d._0x3024c4,0x334,_0x2b726d._0x386e63,_0x2b726d._0x43745f)]!==void 0x0)try{_0x5e6eda=mergeExternalUsage(_0x273c13,_0x4fc344[_0x435488(_0x2b726d._0x3b6529,_0x2b726d._0x241745,_0x2b726d._0x4825b8,_0x2b726d._0x4ac5af)]);}catch(_0x740a0d){if(!(_0x740a0d instanceof ModelUsageOverflowError))throw _0x740a0d;}_0x3ce63b=_0x5e6eda,_0x158ec3=void 0x0,_0x3dc38a();},'subscribe'(_0x204376){return _0x422cdb['add'](_0x204376),()=>{function _0x489e4a(_0x4abc84,_0x2aaca1,_0x5b9067,_0x4e0b55){return _0x2bfb(_0x4e0b55-0x180,_0x2aaca1);}_0x422cdb[_0x489e4a(0x290,0x247,0x2f3,_0x4a8433._0x57adba)](_0x204376);};}};}function normalizeExecutionScope(_0xa4e3d7){const _0x729260={_0xfdc845:0x263,_0x4390eb:0x25b,_0x48606b:0x146,_0x43003b:0x143,_0x24d1f2:0x2d1,_0x28496e:0x24f,_0x4ce344:0x28d},_0xb998f6={_0x3d1b8a:0x106,_0x5d64ef:0x11b,_0x10690e:0x66c},_0x57a2e6={_0x228c6a:0x259,_0x38b4b4:0x53};function _0x156e32(_0x51840d,_0x7c9ac5,_0x11b2e6,_0x55fda2){return _0x36460c(_0x51840d-0x107,_0x7c9ac5- -_0x57a2e6._0x228c6a,_0x55fda2,_0x55fda2-_0x57a2e6._0x38b4b4);}function _0x2d0712(_0x18c4ec,_0x5bf619,_0xf75b4e,_0x26ea12){return _0x1e96ec(_0xf75b4e,_0x5bf619-_0xb998f6._0x3d1b8a,_0xf75b4e-_0xb998f6._0x5d64ef,_0x18c4ec- -_0xb998f6._0x10690e);}return{'agentId':_0xa4e3d7?.[_0x2d0712(-_0x729260._0xfdc845,-0x282,-0x23e,-_0x729260._0x4390eb)]??_0x156e32(0xcf,_0x729260._0x48606b,_0x729260._0x43003b,0x185),'toolCallPath':[..._0xa4e3d7?.[_0x2d0712(-_0x729260._0x24d1f2,-_0x729260._0x28496e,-_0x729260._0x4ce344,-0x304)]??[]]};}function makeExtensionContext(_0x48f218,_0x241c2d){const _0x540462={_0x16b9d5:0x1b7},_0x4c084a={_0x4db58a:0x167,_0x45734e:0xf3};function _0x2e2cc0(_0x5706ac,_0x13a0cc,_0x5355c1,_0x387ebd){return _0x36460c(_0x5706ac-_0x4c084a._0x4db58a,_0x387ebd- -0x207,_0x5706ac,_0x387ebd-_0x4c084a._0x45734e);}return{'state':_0x48f218,'delivery':_0x2e2cc0(0x1ff,0x220,_0x540462._0x16b9d5,0x216),'executionScope':_0x241c2d};}async function runStage(_0x519b1d,_0x3e917a,_0x3a239b,_0x13b07f){const _0x5e94e8={_0x18df37:0xa5,_0x3b4847:0x8f,_0x25fd0e:0x11e,_0x18fd24:0xff,_0x527b19:0x127,_0x2f491e:0x18e},_0xa49606={_0x59a0b5:0x47,_0x4d87ef:0x8c},_0x358406={_0x1fa00d:0x85},_0xc9019=await _0x519b1d[_0x13a0d3(-_0x5e94e8._0x18df37,-0x12f,-_0x5e94e8._0x3b4847,-0xab)](_0x3e917a,_0x3a239b,_0x13b07f);function _0x13a0d3(_0x488678,_0x921470,_0x4632e3,_0x535bf4){return _0x36460c(_0x488678-_0x358406._0x1fa00d,_0x488678- -0x4ae,_0x535bf4,_0x535bf4-0x7a);}function _0x18bae7(_0x2d3ec9,_0x2c624a,_0x38803d,_0x3d5f11){return _0x1e96ec(_0x2c624a,_0x2c624a-_0xa49606._0x59a0b5,_0x38803d-_0xa49606._0x4d87ef,_0x38803d- -0x5d8);}return await _0x519b1d[_0x13a0d3(-_0x5e94e8._0x25fd0e,-_0x5e94e8._0x18fd24,-_0x5e94e8._0x527b19,-_0x5e94e8._0x2f491e)](_0x3e917a,_0xc9019,_0x13b07f),_0xc9019;}async function emitEvent2(_0x1a4bd7,_0x2e7dfb,_0x3b3bad){await _0x1a4bd7?.(_0x2e7dfb,_0x3b3bad);}function replaceToolUseBlocks(_0x551eb2,_0x4d9edc){const _0x3d68f1={_0x221a8d:0x178,_0x2b90da:0x108,_0x4f5a47:0x2d5,_0x27f185:0x2ca,_0x3b857d:0x312},_0x13698f={_0x229a59:0x71},_0x1a3320={_0x5285ca:0x444,_0x54b380:0x49},_0x784fbc={_0x17b392:0x9b};function _0x146eba(_0x2ff3ae,_0xf54532,_0x79d119,_0xfd1fc8){return _0x36460c(_0x2ff3ae-0x7f,_0xfd1fc8- -_0x784fbc._0x17b392,_0x79d119,_0xfd1fc8-0x1e);}function _0x57b3f0(_0x4ce608,_0x4fb5ea,_0x54bae7,_0x1b5b0e){return _0x36460c(_0x4ce608-0x1f2,_0x1b5b0e- -_0x1a3320._0x5285ca,_0x4fb5ea,_0x1b5b0e-_0x1a3320._0x54b380);}let _0x3113e4=0x0;return{..._0x551eb2,'content':_0x551eb2[_0x57b3f0(-_0x3d68f1._0x221a8d,-0x17a,-0x142,-_0x3d68f1._0x2b90da)][_0x146eba(_0x3d68f1._0x4f5a47,_0x3d68f1._0x27f185,0x2d7,_0x3d68f1._0x3b857d)](_0x16b303=>{const _0x2f6ec6={_0x340764:0x35d};if(_0x16b303[_0xe9496f(-0x13e,-0xc8,-0x150,-_0x13698f._0x229a59)]!=='tool_use')return _0x16b303;function _0xe9496f(_0xcd3143,_0xad6d7c,_0x49b4e5,_0x5daaa9){return _0x146eba(_0xcd3143-0x145,_0xad6d7c-0x142,_0x5daaa9,_0xad6d7c- -_0x2f6ec6._0x340764);}const _0x378308=_0x4d9edc[_0x3113e4];return _0x3113e4+=0x1,structuredClone(_0x378308);})};}function createAssistantMessageId(_0x35f7a7,_0x37a97d){const _0x323206={_0x282ee3:0x3f,_0x1240ad:0x2d,_0xf4e956:0xa4},_0x4c1c30={_0x4d2962:0x3c2};function _0x2f51cb(_0x504d76,_0x331254,_0x26925e,_0x5dfa0f){return _0x1e96ec(_0x504d76,_0x331254-0x143,_0x26925e-0x6e,_0x26925e- -_0x4c1c30._0x4d2962);}return _0x35f7a7+_0x2f51cb(_0x323206._0x282ee3,_0x323206._0x1240ad,-0x3d,-_0x323206._0xf4e956)+_0x37a97d;}function createReasoningMessageId(_0x58b095){const _0x5d2982={_0x58540b:0x31a};function _0x115a08(_0x3a0a4b,_0x3ff9e4,_0x13bf85,_0x159bb9){return _0x1e96ec(_0x3a0a4b,_0x3ff9e4-0xbb,_0x13bf85-0x174,_0x159bb9- -0x27);}return _0x58b095+_0x115a08(0x3d9,0x3cd,_0x5d2982._0x58540b,0x37d);}function withMessageId(_0x536c2d,_0x19e6de){if(_0x536c2d['id']===_0x19e6de)return _0x536c2d;return{..._0x536c2d,'id':_0x19e6de};}function createAssistantChunkEvent(_0x193c77,_0x17c7fe){const _0x3b07cb={_0x4468b3:0x48,_0x302df5:0xd,_0x4404f6:0xb,_0x34eecc:0x4b7,_0x18d96f:0x41,_0x12df13:0x9a,_0xe5285c:0x117,_0x28e06f:0x26,_0x34d5f1:0x74},_0x33e7f5={_0x55eab7:0x12f},_0x5ee305={_0x831499:0x3};function _0x29292e(_0x9262e6,_0x1ff8e7,_0x4ef1f7,_0x345633){return _0x1e96ec(_0x9262e6,_0x1ff8e7-_0x5ee305._0x831499,_0x4ef1f7-0x8f,_0x4ef1f7-0x9e);}if(_0x193c77[_0x298469(_0x3b07cb._0x4468b3,-_0x3b07cb._0x302df5,_0x3b07cb._0x4404f6,-0x2c)]!==_0x29292e(0x453,0x4d0,0x467,_0x3b07cb._0x34eecc))return void 0x0;function _0x298469(_0x6a9628,_0x5b9a,_0xd7443,_0x3769fd){return _0x1e96ec(_0x5b9a,_0x5b9a-_0x33e7f5._0x55eab7,_0xd7443-0x4b,_0xd7443- -0x316);}if(_0x193c77['text']===void 0x0)return void 0x0;return{'type':_0x298469(0xdd,_0x3b07cb._0x18d96f,0xc4,_0x3b07cb._0x12df13),'index':_0x193c77['index']??0x0,'messageId':_0x17c7fe,'chunk':{'type':'content_delta','index':_0x193c77[_0x298469(_0x3b07cb._0xe5285c,0x53,0xd2,0x145)]??0x0,'text':_0x193c77[_0x298469(-0x9,-0x26,_0x3b07cb._0x28e06f,_0x3b07cb._0x34d5f1)]}};}function createToolUseChunkEvent(_0x6bda93,_0x1da0a9){const _0x3644a3={_0x42e05a:0xf5,_0x9d5002:0x10d,_0x58e5ba:0xa,_0x567169:0x117,_0x31fcb2:0x10d,_0x397a66:0xc3,_0x101d7b:0x29e,_0x453d12:0x10c,_0x26a605:0xa0,_0x2ed813:0x2dd,_0x4deacd:0x299,_0x5e3450:0x20e,_0x4f710c:0x1ea,_0x3e1a3d:0x53,_0x10d964:0x9},_0x53a981={_0x24a23d:0x330,_0x3413bf:0x1f2},_0x3aacee={_0x84ee9a:0x158};if(_0x6bda93['type']!==_0xe9150f(0xeb,_0x3644a3._0x42e05a,0x175,_0x3644a3._0x9d5002))return void 0x0;function _0x57d974(_0x1f2b1e,_0x4271ad,_0x5c0cc7,_0x543148){return _0x1e96ec(_0x4271ad,_0x4271ad-0x1de,_0x5c0cc7-_0x3aacee._0x84ee9a,_0x543148- -0x1c7);}function _0xe9150f(_0x3dbedf,_0x2e1488,_0x34513f,_0x53f533){return _0x36460c(_0x3dbedf-0x56,_0x3dbedf- -_0x53a981._0x24a23d,_0x2e1488,_0x53f533-_0x53a981._0x3413bf);}return{'type':_0xe9150f(-0x2,-0x5,-_0x3644a3._0x58e5ba,0x73),'index':_0x6bda93['index']??0x0,'messageId':_0x1da0a9,'chunk':{'type':_0xe9150f(0xeb,_0x3644a3._0x567169,_0x3644a3._0x31fcb2,_0x3644a3._0x397a66),'id':_0x6bda93['id']??'','index':_0x6bda93[_0x57d974(0x1c9,_0x3644a3._0x101d7b,0x26e,0x221)]??0x0,..._0x6bda93[_0xe9150f(_0x3644a3._0x453d12,0x113,0x140,_0x3644a3._0x26a605)]!==void 0x0?{'name':_0x6bda93[_0x57d974(_0x3644a3._0x2ed813,_0x3644a3._0x4deacd,_0x3644a3._0x5e3450,0x266)]}:{},..._0x6bda93[_0x57d974(0x12b,_0x3644a3._0x4f710c,0x198,0x1ad)]!==void 0x0?{'inputDelta':_0x6bda93[_0xe9150f(_0x3644a3._0x3e1a3d,0xc0,-_0x3644a3._0x10d964,0x18)]}:{}}};}function createReasoningChunkEvent(_0xd7b37f,_0x2cad55){const _0x1bddfb={_0x441671:0x9f,_0x41065b:0x374,_0x41e54c:0x35b,_0x30751a:0x3ad,_0xf454fa:0x3a7,_0x3a51f5:0x330,_0x1f8ca9:0x45a,_0x1ea2f9:0x398,_0x2ac213:0x3ea,_0x102ffb:0x3ee,_0x2b9c2a:0x179,_0x4d9886:0x14d,_0x44897a:0x48c,_0x4cd0d0:0x40f,_0x568c7d:0x3d3,_0x20fb4e:0x33a,_0x1cf0c5:0x3d0,_0x5dc3fd:0x110,_0x18e525:0x32f,_0x1c93cf:0x30e,_0x5569ae:0x401,_0x3b8b2f:0x4c,_0x46a003:0x100,_0xec2faa:0x11c,_0x5afce6:0xc2,_0x76c6c6:0x494,_0x3a5f85:0x46c,_0x570d91:0x434,_0x5545be:0x12e,_0x233be4:0x125,_0x1a3f99:0xf9,_0x453993:0x34f,_0x367d57:0x33b,_0x1397ad:0x3b5,_0x10a3d8:0x396,_0x57e916:0x19e,_0x15a5ce:0x1e6,_0x50639e:0xc4,_0x10ec12:0x52},_0x15cf39={_0x51f217:0xf1,_0x340181:0xa0,_0x685452:0x14},_0x459576={_0x217bd2:0x291};function _0x1939d8(_0x29a422,_0x22e54b,_0x4e3628,_0x7bcfbc){return _0x36460c(_0x29a422-0x180,_0x29a422- -_0x459576._0x217bd2,_0x7bcfbc,_0x7bcfbc-0x172);}function _0x3bcd49(_0x5de8ba,_0x3f730e,_0x32fd0d,_0x3aa75c){return _0x1e96ec(_0x5de8ba,_0x3f730e-_0x15cf39._0x51f217,_0x32fd0d-_0x15cf39._0x340181,_0x3aa75c-_0x15cf39._0x685452);}switch(_0xd7b37f[_0x1939d8(_0x1bddfb._0x441671,0x12a,0xba,0x46)]){case _0x3bcd49(_0x1bddfb._0x41065b,_0x1bddfb._0x41e54c,_0x1bddfb._0x30751a,0x3e4):return{'type':_0x3bcd49(0x302,0x2ce,_0x1bddfb._0xf454fa,_0x1bddfb._0x3a51f5),'index':_0xd7b37f[_0x3bcd49(_0x1bddfb._0x1f8ca9,_0x1bddfb._0x1ea2f9,0x404,0x3fc)],'messageId':_0x2cad55,'chunk':{'type':_0x3bcd49(_0x1bddfb._0x2ac213,_0x1bddfb._0x102ffb,0x448,0x3e4),'index':_0xd7b37f['index']??0x0,'thinking':_0xd7b37f[_0x1939d8(_0x1bddfb._0x2b9c2a,0x103,0x13b,_0x1bddfb._0x4d9886)]??''},'text':_0xd7b37f[_0x3bcd49(0x465,0x42a,_0x1bddfb._0x44897a,_0x1bddfb._0x4cd0d0)]??''};case'openai_reasoning_delta':return{'type':'reasoning_chunk','index':_0xd7b37f[_0x3bcd49(_0x1bddfb._0x568c7d,_0x1bddfb._0x20fb4e,_0x1bddfb._0x1cf0c5,0x38c)],'messageId':_0x2cad55,'chunk':{'type':_0x1939d8(_0x1bddfb._0x5dc3fd,0xd5,0x163,0x15d),'contentIndex':_0xd7b37f[_0x3bcd49(_0x1bddfb._0x18e525,_0x1bddfb._0x1c93cf,_0x1bddfb._0x5569ae,0x38c)]??0x0,'delta':_0xd7b37f[_0x1939d8(0xc4,0x110,0xc6,_0x1bddfb._0x3b8b2f)]??'','itemId':_0xd7b37f[_0x1939d8(_0x1bddfb._0x46a003,_0x1bddfb._0xec2faa,_0x1bddfb._0x5afce6,0x117)]??'','outputIndex':_0xd7b37f[_0x3bcd49(_0x1bddfb._0x76c6c6,0x45a,_0x1bddfb._0x3a5f85,_0x1bddfb._0x570d91)]??0x0},'text':_0xd7b37f['delta']??''};case _0x1939d8(0x118,_0x1bddfb._0x5545be,_0x1bddfb._0x233be4,0xb3):return{'type':'reasoning_chunk','index':_0xd7b37f[_0x1939d8(_0x1bddfb._0x1a3f99,0x15c,0xed,0x95)],'messageId':_0x2cad55,'chunk':{'type':_0x3bcd49(0x352,0x3ff,_0x1bddfb._0x453993,0x3ae),'delta':_0xd7b37f['delta']??'','itemId':_0xd7b37f[_0x3bcd49(_0x1bddfb._0x367d57,_0x1bddfb._0x1397ad,0x3ba,_0x1bddfb._0x10a3d8)]??'','outputIndex':_0xd7b37f[_0x1939d8(_0x1bddfb._0x57e916,0x1af,0x1e1,_0x1bddfb._0x15a5ce)]??0x0,'summaryIndex':_0xd7b37f['summaryIndex']??0x0},'text':_0xd7b37f[_0x1939d8(_0x1bddfb._0x50639e,_0x1bddfb._0x10ec12,0x11a,0x77)]??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x2025b0){return structuredClone(_0x2025b0);}function cloneToolResultForPublication2(_0x44cc0f){const _0x240ea0={_0x38aa7c:0x70,_0x337671:0xf9,_0x4beeea:0x5f,_0x5bcbaa:0x421,_0x10b9f4:0xa6,_0x16a070:0xac,_0x17e26e:0xc4},_0x3af566={_0x18644c:0xcb,_0x236a06:0x462},_0x2c76aa={_0x410137:0x26,_0x228034:0x2a,_0x18297a:0x1b4};function _0x1d2e92(_0x5b59d6,_0x4b9613,_0x2ad9e1,_0x5c572d){return _0x36460c(_0x5b59d6-_0x2c76aa._0x410137,_0x5c572d-_0x2c76aa._0x228034,_0x4b9613,_0x5c572d-_0x2c76aa._0x18297a);}const _0x51119f=_0x44cc0f[_0x1ef106(-_0x240ea0._0x38aa7c,-_0x240ea0._0x337671,-0x95,-_0x240ea0._0x4beeea)];function _0x1ef106(_0x51c2e6,_0x4e849f,_0x488f63,_0x549da1){return _0x1e96ec(_0x549da1,_0x4e849f-_0x3af566._0x18644c,_0x488f63-0x18f,_0x488f63- -_0x3af566._0x236a06);}const _0x44bc25=_0x44cc0f[_0x1d2e92(0x3bd,0x387,_0x240ea0._0x5bcbaa,0x3e1)],{chunks:_0x31c1aa,..._0x11a318}=_0x44cc0f;return{...structuredClone(_0x11a318),'callId':_0x51119f,'toolName':_0x44bc25,'chunks':_0x31c1aa[_0x1ef106(-_0x240ea0._0x10b9f4,-_0x240ea0._0x16a070,-_0x240ea0._0x17e26e,-0xd8)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x350c15){const _0x3c6ab4={_0x1d9668:0x3d1,_0x183859:0x40c,_0x538431:0x4d,_0x195507:0xcd,_0x4b4b5b:0x81,_0x20f4e0:0x4f,_0x385331:0x29,_0x5b7c63:0x22,_0x8fc3ce:0x44},_0x10857f={_0x3a205e:0x145,_0x3c0117:0xb9,_0x19ab19:0x397},_0x479ba5={_0x429b4d:0x10b};function _0x11a4db(_0x170f79,_0x8e5e65,_0x540e13,_0x1f421e){return _0x1e96ec(_0x170f79,_0x8e5e65-_0x479ba5._0x429b4d,_0x540e13-0xf6,_0x8e5e65-0x37);}function _0x3885e4(_0x23513d,_0x34e223,_0x504cd4,_0x484356){return _0x1e96ec(_0x484356,_0x34e223-_0x10857f._0x3a205e,_0x504cd4-_0x10857f._0x3c0117,_0x23513d- -_0x10857f._0x19ab19);}return _0x350c15[_0x11a4db(_0x3c6ab4._0x1d9668,_0x3c6ab4._0x183859,0x38f,0x3aa)]===_0x3885e4(_0x3c6ab4._0x538431,_0x3c6ab4._0x195507,-0xa,-0x2c)&&_0x350c15[_0x3885e4(_0x3c6ab4._0x4b4b5b,0x7d,0xea,0x39)][_0x3885e4(-_0x3c6ab4._0x20f4e0,-_0x3c6ab4._0x385331,_0x3c6ab4._0x5b7c63,-_0x3c6ab4._0x8fc3ce)]===!![];}async function executeModelRequest(_0xb2dd48,_0x1f1b20,_0x462764,_0x205c51,_0x4db1f0,_0x527761){const _0x50cdc2={_0x55af00:0x103,_0x298153:0x50,_0x335288:0xb7,_0x3b11df:0x1f5,_0x203829:0x1ad,_0x4a0686:0x194,_0x3dab16:0x31,_0x4e2696:0x142,_0x11b47b:0x176,_0x55de3d:0x18e,_0x3a72bb:0x177,_0x5d57a3:0x11f,_0x50a575:0x52,_0x3ce8f6:0x171,_0x54d1f6:0x11c,_0x1002ef:0x17e,_0x596a0e:0x175,_0xc4d4fe:0x17e,_0x55f0d9:0x1b4,_0x42262c:0x19,_0x1fd4a2:0x1c,_0x28f1d0:0x122,_0x447510:0xa9,_0x20ae98:0xb6,_0x5aca7e:0xcc,_0x1a4bbc:0x1af,_0x266bc9:0x188,_0x235b68:0x13f,_0x401811:0x1ec,_0xb447:0x1c2,_0xa634d3:0x19a,_0x21264f:0x1ae,_0x3da1cf:0xb7,_0x34a430:0x5a,_0x248575:0xcf,_0x249cea:0x109,_0x23f77a:0xb9,_0x29beab:0x129,_0x1b1475:0xb9,_0x113b91:0x168,_0x3c1330:0x16f,_0x57412a:0xd5,_0x373318:0x142,_0x463e48:0x13e,_0x258143:0x119,_0xa626bc:0x77,_0x2d6e41:0x12f,_0x5d08c6:0x110,_0x528440:0xcc,_0x5d1362:0xd2,_0x4672ee:0x78,_0x1b77e9:0xa8,_0x586ba6:0x55,_0x5c315c:0xb4,_0x3c611d:0x15d,_0x3a8cdb:0x15c,_0x3db968:0xe8,_0x5d38d7:0xa0,_0x38dba2:0x167,_0x201648:0xf2,_0x3568c7:0x13d,_0x52e806:0x121,_0x9f977c:0x115,_0x4b2a75:0xb5,_0x9477a3:0x79,_0x4ec6ff:0xe1,_0x2c4db2:0x185,_0x301a78:0x13c,_0x1e5d95:0x174,_0x48f07d:0xb2,_0x179f26:0x154,_0x2b0211:0xcc,_0x52e948:0x1d3,_0x5150c4:0x161,_0x256f6e:0x15e,_0x1684bf:0x177,_0x57d207:0xec,_0x2475b9:0x145,_0xbfc187:0x10f,_0x3b809d:0x17b},_0x49cd54={_0x1f31f0:0x1d6,_0x38b7ca:0x10f},_0xa6a21e={_0x5603f5:0x1e6};function _0x59488e(_0x3e0efc,_0x40e81d,_0x5ba7e5,_0x4c6876){return _0x36460c(_0x3e0efc-0x18f,_0x4c6876- -0x41d,_0x5ba7e5,_0x4c6876-_0xa6a21e._0x5603f5);}throwIfAborted(_0x1f1b20[_0x59488e(-0x12c,-_0x50cdc2._0x55af00,-_0x50cdc2._0x298153,-_0x50cdc2._0x335288)]);if(!_0x1f1b20[_0x233017(-_0x50cdc2._0x3b11df,-_0x50cdc2._0x203829,-_0x50cdc2._0x4a0686,-0x1aa)]||!_0x462764[_0x59488e(-0xca,0x22,-_0x50cdc2._0x3dab16,-0x52)])return await _0x462764[_0x233017(-0x15f,-0x134,-_0x50cdc2._0x4e2696,-_0x50cdc2._0x11b47b)](_0xb2dd48,{'signal':_0x1f1b20[_0x233017(-_0x50cdc2._0x55de3d,-_0x50cdc2._0x3a72bb,-_0x50cdc2._0x5d57a3,-0x17e)]});function _0x233017(_0x2f1066,_0x582242,_0x3bbfbc,_0x4d7988){return _0x36460c(_0x2f1066-_0x49cd54._0x1f31f0,_0x4d7988- -0x4e4,_0x2f1066,_0x4d7988-_0x49cd54._0x38b7ca);}let _0x4f56ab;for await(const _0x161506 of _0x462764[_0x59488e(-0x59,-0xd8,0xc,-_0x50cdc2._0x50a575)](_0xb2dd48,{'signal':_0x1f1b20[_0x233017(-0x102,-_0x50cdc2._0x3ce8f6,-_0x50cdc2._0x54d1f6,-_0x50cdc2._0x1002ef)]})){throwIfAborted(_0x1f1b20[_0x233017(-_0x50cdc2._0x596a0e,-0x15c,-0x14a,-_0x50cdc2._0xc4d4fe)]);if(_0x161506[_0x233017(-0x208,-0x22c,-0x164,-_0x50cdc2._0x55f0d9)]===_0x59488e(-_0x50cdc2._0x42262c,-0x7e,-0x86,-_0x50cdc2._0x1fd4a2)){_0x527761[_0x59488e(-_0x50cdc2._0x28f1d0,-0xe7,-_0x50cdc2._0x447510,-0xd3)][_0x59488e(-0x8f,-_0x50cdc2._0x20ae98,-0xfc,-_0x50cdc2._0x5aca7e)]!==void 0x0&&_0x527761['meta'][_0x233017(-0xd0,-_0x50cdc2._0x1a4bbc,-_0x50cdc2._0x266bc9,-_0x50cdc2._0x235b68)]===void 0x0&&(_0x527761[_0x233017(-_0x50cdc2._0x401811,-0x1ed,-_0x50cdc2._0xb447,-_0x50cdc2._0xa634d3)][_0x233017(-_0x50cdc2._0x21264f,-0xd9,-_0x50cdc2._0x3da1cf,-0x13f)]=Date[_0x59488e(-_0x50cdc2._0x34a430,-0xad,-_0x50cdc2._0x248575,-0x79)]());_0x4f56ab=_0x161506[_0x233017(-_0x50cdc2._0x249cea,-_0x50cdc2._0x23f77a,-_0x50cdc2._0x29beab,-_0x50cdc2._0x1b1475)];continue;}if(_0x161506[_0x59488e(-_0x50cdc2._0x113b91,-_0x50cdc2._0x3c1330,-0xc2,-0xed)]===_0x233017(-_0x50cdc2._0x57412a,-0x1b3,-_0x50cdc2._0x373318,-_0x50cdc2._0x463e48)){await emitEvent2(_0x205c51[_0x233017(-0xfd,-0x1bd,-_0x50cdc2._0x258143,-0x17b)],{'type':_0x59488e(-0xe9,-0x5,-0x66,-_0x50cdc2._0xa626bc),'assistantMessageId':_0x527761['assistantMessageId'],'reasoningMessageId':_0x527761[_0x233017(-0x17a,-0x130,-_0x50cdc2._0x2d6e41,-0x19f)]},_0x4db1f0),delete _0x527761[_0x233017(-0x199,-0x11c,-0x164,-0x19a)][_0x59488e(-_0x50cdc2._0x5d08c6,-0x8f,-0xd1,-_0x50cdc2._0x528440)],delete _0x527761[_0x59488e(-0x81,-0xbb,-0xa3,-0xd3)][_0x59488e(-0x7,-0x55,-_0x50cdc2._0x5d1362,-_0x50cdc2._0x4672ee)];continue;}if(_0x161506[_0x233017(-0x12d,-0x14e,-0x1e3,-_0x50cdc2._0x55f0d9)]==='provider_retry'){await emitEvent2(_0x205c51[_0x59488e(-0xcb,-_0x50cdc2._0x1b77e9,-_0x50cdc2._0x586ba6,-_0x50cdc2._0x5c315c)],{..._0x161506,'assistantMessageId':_0x527761[_0x233017(-_0x50cdc2._0x3c611d,-0x1c8,-_0x50cdc2._0x266bc9,-0x174)]},_0x4db1f0);continue;}const _0x384c30=createReasoningChunkEvent(_0x161506,_0x527761[_0x233017(-0x133,-0x1f0,-_0x50cdc2._0x3a8cdb,-0x19f)]);if(_0x384c30&&_0x384c30[_0x59488e(-_0x50cdc2._0x3db968,-0xa3,-_0x50cdc2._0x5d38d7,-0xed)]===_0x59488e(-_0x50cdc2._0x38dba2,-_0x50cdc2._0x3db968,-0x13e,-_0x50cdc2._0x201648)&&_0x384c30[_0x233017(-0x141,-_0x50cdc2._0x3568c7,-0x175,-0x199)][_0x233017(-0xcf,-0xbc,-0x133,-_0x50cdc2._0x52e806)]>0x0){_0x527761[_0x59488e(-0xcf,-_0x50cdc2._0x5d57a3,-0x147,-0xd3)]['reasoningStartedAt']===void 0x0&&(_0x527761[_0x59488e(-0x159,-0xb5,-_0x50cdc2._0x9f977c,-0xd3)]['reasoningStartedAt']=Date[_0x59488e(-_0x50cdc2._0x4b2a75,-0xbc,-0xf3,-_0x50cdc2._0x9477a3)]());await emitEvent2(_0x205c51[_0x59488e(-_0x50cdc2._0x9f977c,-0x5c,-_0x50cdc2._0x4ec6ff,-0xb4)],_0x384c30,_0x4db1f0);continue;}const _0x1a7de0=createAssistantChunkEvent(_0x161506,_0x527761[_0x233017(-0x19a,-_0x50cdc2._0x2c4db2,-_0x50cdc2._0x301a78,-_0x50cdc2._0x1e5d95)]);if(_0x1a7de0){_0x527761[_0x59488e(-_0x50cdc2._0x48f07d,-_0x50cdc2._0x55af00,-_0x50cdc2._0x179f26,-0xd3)][_0x59488e(-0x137,-0x13f,-0x130,-_0x50cdc2._0x2b0211)]!==void 0x0&&_0x527761[_0x233017(-0x21e,-0x1e1,-0x12e,-0x19a)]['reasoningCompletedAt']===void 0x0&&(_0x527761[_0x233017(-_0x50cdc2._0x52e948,-0x143,-_0x50cdc2._0x5150c4,-0x19a)][_0x59488e(-0x2a,-0x6e,-0xf1,-0x78)]=Date[_0x233017(-0x149,-0x107,-0xe5,-0x140)]());await emitEvent2(_0x205c51[_0x233017(-0x1e1,-_0x50cdc2._0x256f6e,-_0x50cdc2._0x1684bf,-0x17b)],_0x1a7de0,_0x4db1f0);continue;}const _0x8731c7=createToolUseChunkEvent(_0x161506,_0x527761[_0x59488e(-_0x50cdc2._0x57d207,-0xef,-0x6f,-0xad)]);_0x8731c7&&await emitEvent2(_0x205c51[_0x233017(-_0x50cdc2._0x2475b9,-_0x50cdc2._0x9f977c,-_0x50cdc2._0xbfc187,-_0x50cdc2._0x3b809d)],_0x8731c7,_0x4db1f0);}if(!_0x4f56ab)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');return _0x4f56ab;}function _0x36460c(_0x1351f9,_0x15bbc3,_0x2f8e19,_0x11a2b7){return _0x2bfb(_0x15bbc3-0x295,_0x2f8e19);}function makeTurnGuards(_0x25cb50,_0x309ad5,_0x13a6a4,_0x4df659,_0x16d74d){return{async 'stage'(_0x2b09ae,_0x3397bd){return throwIfAborted(_0x25cb50),await runStage(_0x309ad5,_0x2b09ae,_0x3397bd,_0x4df659);},async 'emit'(_0xf6ad02){throwIfAborted(_0x25cb50),await emitEvent2(_0x13a6a4,_0xf6ad02,_0x16d74d);},async 'stageUnchecked'(_0x84da17,_0x42888e){return await runStage(_0x309ad5,_0x84da17,_0x42888e,_0x4df659);},async 'emitUnchecked'(_0x472d4c){await emitEvent2(_0x13a6a4,_0x472d4c,_0x16d74d);}};}async function runTurn(_0x434c0c,_0x4e4f62){const _0xcf26a1={_0x2b10ce:0x3f5,_0x1c4410:0x3db,_0x14a6ae:0x204,_0x135c2f:0x168,_0x4473a6:0x149,_0x5d5e3d:0x39d,_0x1e596d:0x36a,_0x5114e8:0x34d,_0x42dcf8:0x376,_0x5e2f6:0xe1,_0x405b91:0x193,_0x51a605:0x1b7,_0x76cf33:0x17c,_0x867b29:0x101,_0x36db49:0xf8,_0x66597c:0x127,_0x3ab280:0x143,_0x3d8fb4:0x195,_0x24fd2d:0x14f,_0xfc27b5:0x12b,_0x1c24a2:0x13e,_0x5cbcd3:0x3b9,_0x595aec:0x445,_0x482948:0x438,_0x4f9515:0x32e,_0x24dc31:0x26e,_0x453678:0x203,_0x2092fb:0x391,_0x2cc2e4:0x446,_0x1a14cb:0x3fe,_0x25bada:0x1e0,_0x278336:0x3f4,_0x218660:0x373,_0x5e17bf:0x2f5,_0x598f36:0x3ba,_0x5da4d3:0xd7,_0x1a6901:0xca,_0x210261:0x109,_0x253ec7:0x4c0,_0x6d8f12:0x487,_0x5010f6:0x390,_0x559c68:0x3b2,_0x4e0de7:0x3a2,_0x49e0c5:0x360,_0xffee16:0x380,_0x28f034:0xc0,_0x4020c2:0xf4,_0x558eb8:0x140,_0x24120c:0x1fe,_0x2f6603:0x1e4,_0x160680:0x304,_0xee5626:0x3fc,_0x208458:0x14f,_0x159c05:0xde,_0x4ca530:0x131,_0x11c8ff:0x10e,_0x5a1f84:0x1e1,_0xac3739:0x18e,_0x4d7115:0x3d2,_0x49b889:0x41d,_0x39185a:0x3f4,_0xe54ae7:0x351,_0x1814ec:0x36f,_0x4ee22f:0x42c,_0x4cfa84:0x40c,_0x38195e:0x371,_0x413955:0x3d9,_0x429d6a:0x3ac,_0x1875c1:0x14d,_0x2a71e7:0x349,_0x288cdd:0x3fd,_0x342c52:0x3a8,_0x59edf7:0x207,_0x56eb83:0x142,_0x249ad9:0x186,_0x4cea19:0x1ef,_0x2466d7:0x11d,_0xbab2ec:0x164,_0x5af6e7:0x1d0,_0x4722fa:0x1b0,_0x2afd62:0x13a,_0x81869c:0x128,_0xf48fe6:0x1d8,_0x406e81:0x18f,_0x22f699:0x366,_0x538a0d:0x387,_0x3d5f5f:0x378,_0x47b336:0x3e9,_0x20c58a:0x10c,_0x285687:0x14a,_0x3e58d5:0x10c,_0x11b81d:0x102,_0x4cceb3:0x10b,_0xda7d2d:0x149,_0x34d8e2:0x441,_0x5ce808:0x44a,_0x2bbe7e:0x488,_0x39af6e:0x399,_0x4e62e3:0x1f2,_0xbf34f7:0x2bc,_0x5180cd:0x1cf,_0x56ddf2:0x16b,_0x254a89:0x173,_0x468d2b:0x137,_0xfbda6f:0x12e,_0x3014b0:0x207,_0xc715e0:0x166,_0xd53e7a:0x13c,_0x4fd9c3:0x127,_0x295d04:0x141,_0x3e0266:0xaf,_0x2c1d2c:0xd5,_0x5121e3:0x1c4,_0x1ac07d:0x154,_0x53fb60:0x1a6,_0x3a85c5:0x389,_0x16ef79:0x3ff,_0x4067eb:0x16b,_0x4172ef:0x15d,_0x5a0f06:0x15b,_0x3d83f3:0x196,_0x17fb3d:0x181,_0x28ebaf:0x181,_0x3b3f50:0x310,_0x593374:0x39b,_0xe0f1b:0x381,_0x4bc816:0x31d,_0x3ddd1e:0x342,_0x8765f1:0x300,_0x29ad86:0x42a,_0xfcb912:0x434,_0x474cc8:0x217,_0x105bb1:0x187,_0x1753dc:0x266,_0x4acba0:0x1e0,_0x4829e4:0x20a,_0x534695:0x1c8,_0x246952:0x1f6,_0x390818:0x467,_0x565884:0x450,_0x2656b8:0x380,_0xaafef8:0x19d,_0x5252cd:0x22d,_0x5af651:0x363},_0x1aa912={_0x55518f:0x1f3,_0x16f755:0x241,_0x119c38:0x22c,_0x34fe94:0x1e2,_0x41d592:0x241,_0x2199af:0x27d,_0x91a339:0x2db,_0x12a03d:0x297,_0x58bbdb:0x31f,_0xf07fa1:0x2d0,_0x4230b6:0x245,_0x2fe3d7:0x34d,_0x227c4e:0x2da,_0x2dd82f:0x2a2,_0x3f625d:0x327,_0x27cf0a:0x2e1,_0x1107a:0x263,_0x2ea662:0x260,_0x1370a8:0x2b2,_0x16eb93:0x304,_0x7fd040:0x2bd},_0x153df6={_0xbbf95:0x170,_0x7fc236:0x135,_0x34d692:0x65e},_0x97c5f={_0x5666bb:0x42b,_0x4f3c81:0x44b,_0x2727ca:0x192,_0x24d924:0x151,_0x987d88:0x416,_0x1d1ff0:0x48a,_0x577ccb:0x3fe,_0x3053e4:0x3c4,_0x3a85cc:0x44b,_0x207f2a:0x18a,_0x5ea7d5:0x176,_0x40268a:0x12b,_0x561784:0x1af},_0x4511c1={_0x2a1bfd:0x1bb,_0x401e3f:0x1b3},_0x182ca3={_0x13a7b7:0x218,_0x2e6a53:0x26d,_0x25167e:0x23a,_0x218b7c:0x272},_0x469d72={_0x18e9ad:0x147},_0x3ede3b={_0x48a35e:0x4};function _0x186b20(_0xfe15,_0x23a775,_0x780f21,_0x9bfb35){return _0x36460c(_0xfe15-0x14f,_0x9bfb35-_0x3ede3b._0x48a35e,_0x23a775,_0x9bfb35-0x166);}const _0x46d4fa=_0x4e4f62[_0x186b20(_0xcf26a1._0x2b10ce,0x3a7,_0xcf26a1._0x1c4410,0x3f6)],_0x54b825=_0x434c0c[_0x4262ac(-_0xcf26a1._0x14a6ae,-_0xcf26a1._0x135c2f,-_0xcf26a1._0x4473a6,-0x1d0)]??new AbortController()[_0x186b20(_0xcf26a1._0x5d5e3d,0x39f,0x2fb,_0xcf26a1._0x1e596d)];function _0x4262ac(_0x46dcba,_0x16ef11,_0x578a21,_0x4d7299){return _0x36460c(_0x46dcba-0xc0,_0x4d7299- -0x536,_0x578a21,_0x4d7299-0xc4);}const _0x2e3271=normalizeExecutionScope(_0x4e4f62[_0x186b20(0x3e8,0x448,_0xcf26a1._0x5114e8,0x3d4)]),_0x20b77d={'sessionId':_0x434c0c[_0x186b20(0x416,_0xcf26a1._0x42dcf8,0x41c,0x3eb)],'turnId':_0x434c0c['turnId'],'system':normalizeSystem(_0x434c0c[_0x4262ac(-_0xcf26a1._0x5e2f6,-0xe5,-_0xcf26a1._0x405b91,-0x140)]),'messages':(_0x434c0c['messages']??[])[_0x4262ac(-0x146,-_0xcf26a1._0x51a605,-0x15d,-0x189)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x4e4f62[_0x4262ac(-_0xcf26a1._0x76cf33,-0x155,-0xd5,-_0xcf26a1._0x867b29)]==='function'?_0x4e4f62[_0x4262ac(-0x166,-_0xcf26a1._0x36db49,-0x178,-0x101)]():_0x4e4f62[_0x4262ac(-_0xcf26a1._0x66597c,-0xda,-_0xcf26a1._0x3ab280,-_0xcf26a1._0x867b29)]},_0x476db8=makeExtensionContext(_0x20b77d,_0x2e3271),_0x57ef48={'sessionId':_0x20b77d[_0x4262ac(-0x1a9,-0x130,-_0xcf26a1._0x3d8fb4,-_0xcf26a1._0x24fd2d)],'turnId':_0x20b77d['turnId'],'state':_0x20b77d,'executionScope':_0x2e3271,'signal':_0x54b825,..._0x4e4f62[_0x4262ac(-_0xcf26a1._0xfc27b5,-0x1bf,-0xfb,-_0xcf26a1._0x1c24a2)]?{'askUser':_0x4e4f62[_0x186b20(_0xcf26a1._0x5cbcd3,_0xcf26a1._0x595aec,_0xcf26a1._0x482948,0x3fc)]}:{}},{stage:_0x905289,emit:_0x6c35db,stageUnchecked:_0x194f81,emitUnchecked:_0x4381b0}=makeTurnGuards(_0x54b825,_0x4e4f62[_0x186b20(0x318,_0xcf26a1._0x4f9515,0x2eb,0x34c)],_0x4e4f62['onEvent'],_0x476db8,_0x57ef48),_0x34b7cb=async(_0x270c1a,_0x2d9b56)=>{function _0x6abffe(_0x50fa71,_0x4e8563,_0x176f65,_0x1356cc){return _0x186b20(_0x50fa71-0xc7,_0x4e8563,_0x176f65-_0x469d72._0x18e9ad,_0x50fa71- -0x2a8);}function _0x5bee9f(_0x506860,_0x185cde,_0x2380d7,_0x4be937){return _0x4262ac(_0x506860-0x1bd,_0x185cde-0x35,_0x185cde,_0x506860-0x406);}const _0x1ec272=_0x2d9b56?{..._0x476db8,'turnMeta':_0x2d9b56}:_0x476db8;await _0x4e4f62[_0x5bee9f(_0x182ca3._0x13a7b7,_0x182ca3._0x2e6a53,_0x182ca3._0x25167e,_0x182ca3._0x218b7c)][_0x6abffe(0xec,0x9b,0x106,0x102)]('afterMessageAppend',structuredClone(_0x270c1a),_0x1ec272);},_0x16ec76=_0x4b727c=>{function _0x3a4621(_0x47ac4b,_0x462017,_0x2c6244,_0x3daa30){return _0x4262ac(_0x47ac4b-0x170,_0x462017-0x8f,_0x2c6244,_0x3daa30-0x615);}if(_0x4b727c?.[_0x3a4621(_0x97c5f._0x5666bb,0x482,0x402,_0x97c5f._0x4f3c81)]==='coordinator')return{'submissionOrigin':'coordinator',..._0x4b727c[_0x20c46a(_0x97c5f._0x2727ca,0x1cf,0x1c9,_0x97c5f._0x24d924)]===void 0x0?{}:{'subagentReport':structuredClone(_0x4b727c[_0x3a4621(0x482,0x418,_0x97c5f._0x987d88,_0x97c5f._0x1d1ff0)])}};function _0x20c46a(_0x455a76,_0x8387a3,_0x1d42f6,_0x240c6e){return _0x186b20(_0x455a76-_0x4511c1._0x2a1bfd,_0x8387a3,_0x1d42f6-_0x4511c1._0x401e3f,_0x455a76- -0x21d);}if(_0x4b727c?.[_0x3a4621(_0x97c5f._0x577ccb,_0x97c5f._0x3053e4,0x3cb,_0x97c5f._0x3a85cc)]===_0x20c46a(_0x97c5f._0x207f2a,_0x97c5f._0x5ea7d5,_0x97c5f._0x40268a,_0x97c5f._0x561784))return{'submissionOrigin':_0x20c46a(0x18a,0x1ae,0x132,0x1ba),'senderAgentId':_0x4b727c['senderAgentId']};return void 0x0;},_0x3d7947=_0x3703ca=>_0x3703ca?.[_0x186b20(0x376,0x325,0x344,0x370)]===_0x4262ac(-0x1a7,-0x1b4,-0x1e3,-0x193)?{'senderAgentId':_0x3703ca['senderAgentId']}:void 0x0,_0x5d408c=_0x611d52=>typeof _0x611d52===_0x186b20(0x3de,0x40d,0x48b,0x42e)&&_0x611d52!==null&&_0x186b20(0x467,0x44e,0x400,0x419)in _0x611d52&&'submission'in _0x611d52,_0x25a8bf=async _0x5bc31f=>{const _0x5b1f46={_0x525c0e:0x248};function _0x2934fe(_0x272a46,_0x1dbd9e,_0x48c035,_0x159ef6){return _0x186b20(_0x272a46-0x1c0,_0x159ef6,_0x48c035-0x2d,_0x48c035- -_0x5b1f46._0x525c0e);}function _0x56dee5(_0x3387fe,_0x3c9ee3,_0x23b506,_0x1b95e5){return _0x186b20(_0x3387fe-_0x153df6._0xbbf95,_0x1b95e5,_0x23b506-_0x153df6._0x7fc236,_0x23b506- -_0x153df6._0x34d692);}if(!_0x434c0c[_0x56dee5(-0x295,-_0x1aa912._0x55518f,-_0x1aa912._0x16f755,-_0x1aa912._0x119c38)])return 0x0;const _0x37249b=await _0x434c0c[_0x56dee5(-_0x1aa912._0x34fe94,-_0x1aa912._0x41d592,-0x241,-_0x1aa912._0x2199af)]();throwIfAborted(_0x54b825);if(_0x37249b[_0x56dee5(-_0x1aa912._0x91a339,-0x258,-_0x1aa912._0x12a03d,-_0x1aa912._0x58bbdb)]===0x0)return 0x0;await _0x5bc31f?.();for(const _0x2dd033 of _0x37249b){const _0x10175c=_0x5d408c(_0x2dd033)?_0x2dd033[_0x56dee5(-0x238,-_0x1aa912._0xf07fa1,-_0x1aa912._0x4230b6,-0x1f9)]:_0x2dd033,_0x4a7c7=_0x5d408c(_0x2dd033)?_0x2dd033[_0x56dee5(-_0x1aa912._0x2fe3d7,-0x2a3,-0x2eb,-_0x1aa912._0x227c4e)]:void 0x0,_0x12e57d=await _0x905289(_0x56dee5(-_0x1aa912._0x2dd82f,-0x341,-_0x1aa912._0x3f625d,-_0x1aa912._0x27cf0a),normalizeMessage(_0x10175c));throwIfAborted(_0x54b825),_0x20b77d[_0x56dee5(-0x1df,-_0x1aa912._0x1107a,-_0x1aa912._0x2ea662,-0x264)][_0x56dee5(-_0x1aa912._0x1370a8,-0x2b6,-_0x1aa912._0x16eb93,-_0x1aa912._0x7fd040)](_0x12e57d),await _0x34b7cb(_0x12e57d,_0x16ec76(_0x4a7c7)),await _0x6c35db({'type':'user_message','message':_0x12e57d,..._0x3d7947(_0x4a7c7)});}return _0x37249b[_0x2934fe(0x1fa,0x149,0x17f,0x165)];};let _0x3737fd=0x0;try{const _0x3f2cd9=await _0x905289(_0x4262ac(-0x225,-0x197,-_0xcf26a1._0x24dc31,-_0xcf26a1._0x453678),normalizeMessage(_0x434c0c[_0x186b20(0x3e6,0x3a9,_0xcf26a1._0x2092fb,0x3dd)]));_0x20b77d[_0x186b20(_0xcf26a1._0x2cc2e4,0x3e3,0x42f,_0xcf26a1._0x1a14cb)][_0x4262ac(-0x1dd,-0x1fe,-0x15d,-_0xcf26a1._0x25bada)](_0x3f2cd9);_0x434c0c['transientInput']!==!![]&&await _0x34b7cb(_0x3f2cd9,_0x16ec76(_0x434c0c[_0x186b20(0x3a7,0x3d0,_0xcf26a1._0x278336,_0xcf26a1._0x218660)]));await _0x6c35db({'type':_0x4262ac(-0x141,-0x189,-0x12c,-0x129),'message':_0x3f2cd9,..._0x3d7947(_0x434c0c[_0x186b20(0x303,_0xcf26a1._0x5e17bf,_0xcf26a1._0x598f36,0x373)])});while(!![]){throwIfAborted(_0x54b825),_0x3737fd+=0x1;const _0x336d44=createAssistantMessageId(_0x20b77d[_0x4262ac(-0x88,-_0xcf26a1._0x5da4d3,-_0xcf26a1._0x1a6901,-_0xcf26a1._0x210261)],_0x3737fd),_0x1d0c7b=createReasoningMessageId(_0x336d44),_0x306410={'model':_0x46d4fa['model'],'modelIdentity':_0x46d4fa[_0x186b20(0x43e,_0xcf26a1._0x253ec7,_0xcf26a1._0x6d8f12,0x438)],..._0x46d4fa['provider']?{'provider':_0x46d4fa['provider']}:{}};let _0x357c7b={'model':_0x46d4fa['model'],..._0x46d4fa[_0x186b20(_0xcf26a1._0x5010f6,_0xcf26a1._0x559c68,0x38e,0x380)]!==void 0x0?{'maxTokens':_0x46d4fa[_0x186b20(_0xcf26a1._0x4e0de7,_0xcf26a1._0x49e0c5,0x373,_0xcf26a1._0xffee16)]}:{},'system':structuredClone(_0x20b77d[_0x4262ac(-_0xcf26a1._0x28f034,-_0xcf26a1._0x4020c2,-0xee,-_0xcf26a1._0x558eb8)]),'messages':structuredClone(_0x20b77d['messages']),'tools':_0x4e4f62[_0x4262ac(-_0xcf26a1._0x24120c,-_0xcf26a1._0x2f6603,-0x16c,-0x1b9)][_0x186b20(0x329,_0xcf26a1._0x160680,_0xcf26a1._0xee5626,0x386)](),'metadata':{'sessionId':_0x20b77d[_0x4262ac(-0x1c8,-0x124,-0x167,-_0xcf26a1._0x208458)],'turnId':_0x20b77d[_0x4262ac(-0x146,-_0xcf26a1._0x159c05,-_0xcf26a1._0x4ca530,-0x109)],'modelIdentity':_0x46d4fa[_0x4262ac(-0xb9,-0x10c,-0xf2,-0x102)],..._0x46d4fa[_0x4262ac(-0x110,-0x213,-_0xcf26a1._0x11c8ff,-0x18e)]!==void 0x0?{'pricingProviderId':_0x46d4fa[_0x4262ac(-_0xcf26a1._0x5a1f84,-0x170,-0x20a,-_0xcf26a1._0xac3739)]}:{}},..._0x4e4f62[_0x186b20(0x425,0x467,_0xcf26a1._0x4d7115,0x3f4)]?{'outputFormat':_0x4e4f62[_0x186b20(_0xcf26a1._0x49b889,0x3aa,_0xcf26a1._0x595aec,_0xcf26a1._0x39185a)]}:{}};_0x357c7b=await _0x905289(_0x186b20(0x3c7,_0xcf26a1._0xe54ae7,0x34d,_0xcf26a1._0x1814ec),_0x357c7b);{const {pricingProviderId:_0xaf6ed2,..._0x303218}=_0x357c7b[_0x186b20(_0xcf26a1._0x4ee22f,0x38e,_0xcf26a1._0x4cfa84,0x3b8)];_0x357c7b={..._0x357c7b,'metadata':{..._0x303218,..._0x46d4fa[_0x186b20(_0xcf26a1._0x38195e,0x3f1,_0xcf26a1._0x413955,_0xcf26a1._0x429d6a)]!==void 0x0?{'pricingProviderId':_0x46d4fa['pricingProviderId']}:{}}};}await _0x6c35db({'type':_0x4262ac(-_0xcf26a1._0x1875c1,-0x183,-0x19e,-0x1b7),'request':_0x357c7b});const _0x1d988c=Date[_0x186b20(_0xcf26a1._0x2a71e7,0x41c,_0xcf26a1._0x288cdd,_0xcf26a1._0x342c52)]();_0x306410[_0x4262ac(-0x177,-0x182,-_0xcf26a1._0x59edf7,-0x1d7)]=_0x1d988c;let _0x4d4e00=await executeModelRequest(_0x357c7b,_0x434c0c,_0x46d4fa,_0x4e4f62,_0x57ef48,{'assistantMessageId':_0x336d44,'reasoningMessageId':_0x1d0c7b,'meta':_0x306410});const _0x3f518b=Date[_0x4262ac(-0x1a6,-_0xcf26a1._0x56eb83,-0x10e,-0x192)]();_0x306410[_0x4262ac(-0x1c8,-_0xcf26a1._0x249ad9,-0x22d,-_0xcf26a1._0x4cea19)]=_0x3f518b,_0x4d4e00=await _0x905289(_0x4262ac(-_0xcf26a1._0x2466d7,-0xce,-_0xcf26a1._0xbab2ec,-0x14b),_0x4d4e00);_0x4d4e00[_0x4262ac(-_0xcf26a1._0x5af6e7,-_0xcf26a1._0x4722fa,-_0xcf26a1._0x2afd62,-0x172)]&&(_0x4d4e00={..._0x4d4e00,'providerState':{..._0x4d4e00[_0x4262ac(-_0xcf26a1._0x3ab280,-_0xcf26a1._0x81869c,-0x13c,-0x172)],'originModelIdentity':_0x46d4fa[_0x4262ac(-0xbc,-0xa7,-0xc1,-0x102)]}});_0x4d4e00=withEstimatedModelCost(_0x357c7b,_0x4d4e00);const _0x7689cb=Math['max'](0x0,_0x3f518b-_0x1d988c),_0x1fba2b={'version':0x1,'usage':structuredClone(_0x4d4e00['usage']),'modelTimeMs':_0x7689cb},_0x95e494=_0x1cf8ed=>({..._0x306410,'metrics':{..._0x1fba2b,'usage':structuredClone(_0x1fba2b[_0x4262ac(-0x16a,-0x160,-0x182,-0x1a1)]),'completesRequest':_0x1cf8ed}});await _0x6c35db({'type':_0x4262ac(-0x180,-_0xcf26a1._0xf48fe6,-0x1c6,-_0xcf26a1._0x406e81),'response':_0x4d4e00,'modelTimeMs':_0x7689cb}),_0x20b77d[_0x186b20(0x40a,_0xcf26a1._0x22f699,0x3e0,0x390)]=_0x4d4e00;let _0x476be6=await _0x905289('beforeAssistantAppend',withMessageId(responseToAssistantMessage(_0x4d4e00),_0x336d44));_0x476be6=withMessageId(_0x476be6,_0x336d44);const _0x52cda2=getToolUseBlocks(_0x476be6),_0x3ed19c=await Promise[_0x186b20(_0xcf26a1._0x538a0d,_0xcf26a1._0x3d5f5f,0x45c,_0xcf26a1._0x47b336)](_0x52cda2['map'](_0x4979ec=>_0x905289(_0x186b20(0x36d,0x375,0x36d,0x3d7),_0x4979ec)));_0x3ed19c[_0x4262ac(-0x117,-0xe8,-_0xcf26a1._0x4722fa,-0x173)]>0x0&&(_0x476be6=replaceToolUseBlocks(_0x476be6,_0x3ed19c));const _0x4ea4ed=withMessageId(_0x476be6,_0x336d44);_0x476be6=_0x4ea4ed;const _0x4ca942=createReasoningMessage(_0x476be6),_0x3824ed=createAssistantTextMessage(_0x476be6),_0x29ecd6=createToolUseMessage(_0x476be6);_0x4ca942&&await _0x6c35db({'type':_0x4262ac(-_0xcf26a1._0x20c58a,-0xdf,-0xda,-_0xcf26a1._0x285687),'message':withMessageId(_0x4ca942,_0x1d0c7b)});_0x3824ed&&await _0x6c35db({'type':_0x4262ac(-_0xcf26a1._0x3e58d5,-_0xcf26a1._0x11b81d,-_0xcf26a1._0x4cceb3,-_0xcf26a1._0xda7d2d),'message':withMessageId(_0x3824ed,_0x336d44)});_0x29ecd6&&await _0x6c35db({'type':_0x186b20(_0xcf26a1._0x34d8e2,0x39d,_0xcf26a1._0x5ce808,0x3c6),'message':withMessageId(_0x29ecd6,_0x336d44)});_0x20b77d[_0x186b20(0x385,_0xcf26a1._0x2bbe7e,_0xcf26a1._0x39af6e,_0xcf26a1._0x1a14cb)]['push'](_0x4ea4ed);_0x3ed19c[_0x4262ac(-0x1d4,-0x13c,-_0xcf26a1._0x4e62e3,-0x173)]>0x0&&await _0x34b7cb(_0x4ea4ed,_0x95e494(![]));for(const _0x4e6019 of _0x3ed19c){await _0x6c35db({'type':_0x186b20(_0xcf26a1._0xbf34f7,_0xcf26a1._0xe54ae7,0x2fd,0x33d),'toolCall':structuredClone(_0x4e6019)});}if(_0x3ed19c[_0x4262ac(-_0xcf26a1._0x5180cd,-0x180,-_0xcf26a1._0x56ddf2,-_0xcf26a1._0x254a89)]===0x0){const _0x29bab0=await _0x25a8bf(async()=>{await _0x34b7cb(_0x4ea4ed,_0x95e494(![]));});if(_0x29bab0>0x0)continue;const _0x40e75b=await _0x905289(_0x4262ac(-0xd7,-0x128,-_0xcf26a1._0x468d2b,-_0xcf26a1._0xfbda6f),_0x476be6),_0xdc6d59=withMessageId(_0x40e75b,_0x336d44);return _0x20b77d[_0x4262ac(-0x1a0,-0x1b5,-0x1ea,-_0xcf26a1._0x3014b0)]=_0xdc6d59,_0x20b77d[_0x4262ac(-0xe2,-_0xcf26a1._0xc715e0,-0x1b8,-_0xcf26a1._0xd53e7a)][_0x20b77d[_0x4262ac(-0xc5,-_0xcf26a1._0x4fd9c3,-_0xcf26a1._0x295d04,-_0xcf26a1._0xd53e7a)][_0x4262ac(-0x186,-0x1b9,-0x1e2,-0x173)]-0x1]=_0xdc6d59,await _0x34b7cb(_0xdc6d59,_0x95e494(!![])),await _0x4381b0({'type':_0x4262ac(-0x133,-_0xcf26a1._0x3e0266,-_0xcf26a1._0x2c1d2c,-0xf8),'message':_0xdc6d59}),throwIfAborted(_0x54b825),await _0x4e4f62[_0x4262ac(-0x1a4,-0x1bd,-_0xcf26a1._0x5121e3,-0x1ee)][_0x4262ac(-0x1d5,-0x1ce,-_0xcf26a1._0x1ac07d,-_0xcf26a1._0x53fb60)](_0x186b20(0x3a0,_0xcf26a1._0x3a85c5,_0xcf26a1._0x4ee22f,_0xcf26a1._0x16ef79),_0x20b77d,_0x476db8),await _0x6c35db({'type':_0x4262ac(-_0xcf26a1._0x4067eb,-_0xcf26a1._0x4172ef,-_0xcf26a1._0x5a0f06,-_0xcf26a1._0x3d83f3),'state':_0x20b77d}),{'status':_0x4262ac(-_0xcf26a1._0xfbda6f,-0x1d6,-_0xcf26a1._0x17fb3d,-_0xcf26a1._0x28ebaf),'finalMessage':_0xdc6d59,'state':_0x20b77d};}let _0x2077ed=await _0x4e4f62[_0x186b20(_0xcf26a1._0x3b3f50,0x398,_0xcf26a1._0x593374,_0xcf26a1._0xe0f1b)][_0x186b20(_0xcf26a1._0x4bc816,0x3b8,_0xcf26a1._0x3ddd1e,0x361)](_0x3ed19c,_0x57ef48);const _0x5960e5=_0x2077ed[_0x186b20(_0xcf26a1._0x8765f1,0x3e9,0x397,_0xcf26a1._0x38195e)](isAbortedToolResult),_0x453558=_0x5960e5?_0x194f81:_0x905289,_0x5b69e5=_0x5960e5?_0x4381b0:_0x6c35db;_0x2077ed=await Promise[_0x186b20(_0xcf26a1._0x29ad86,0x430,_0xcf26a1._0xfcb912,0x3e9)](_0x2077ed['map'](_0x41c684=>_0x453558('afterToolResult',_0x41c684))),_0x20b77d['toolResults'][_0x4262ac(-_0xcf26a1._0x474cc8,-_0xcf26a1._0x105bb1,-_0xcf26a1._0x1753dc,-_0xcf26a1._0x4acba0)](..._0x2077ed);for(const _0x38789 of _0x2077ed){await _0x5b69e5({'type':'tool_result','result':cloneToolResultForPublication2(_0x38789)});}const _0x2b8c9d=await _0x453558(_0x4262ac(-0x19d,-_0xcf26a1._0x4829e4,-_0xcf26a1._0x534695,-_0xcf26a1._0x246952),createToolResultUserMessage(_0x2077ed));await _0x5b69e5({'type':'tool_result_message','message':_0x2b8c9d}),_0x20b77d[_0x186b20(_0xcf26a1._0x390818,_0xcf26a1._0x565884,_0xcf26a1._0x2656b8,_0xcf26a1._0x1a14cb)][_0x4262ac(-0x181,-_0xcf26a1._0xaafef8,-_0xcf26a1._0x5252cd,-0x1e0)](_0x2b8c9d),await _0x34b7cb(_0x2b8c9d);if(_0x5960e5)return{'status':_0x186b20(_0xcf26a1._0x5af651,0x329,0x313,0x35b),'state':_0x20b77d};await _0x25a8bf();}}catch(_0x35084b){if(!_0x54b825[_0x4262ac(-0x1b8,-0x236,-0x1a1,-0x1df)])throw new TurnFailedError(_0x35084b,_0x20b77d);return{'status':'aborted','state':_0x20b77d};}}function createSessionId(){const _0x2bc3da={_0x459b58:0x1b8,_0x4b1c21:0x109,_0x10615f:0x176,_0xd12f45:0x198,_0x2163d0:0x21c,_0x30eed8:0x166,_0x2d123f:0x94,_0x15fcdc:0x153},_0x228084={_0x271b7d:0xe3,_0x317742:0x49e},_0xf48251={_0x196885:0x9a,_0xb75b2d:0x4fc};function _0x81da87(_0x264e1f,_0x659f8,_0x2d6ee4,_0x362c9d){return _0x1e96ec(_0x2d6ee4,_0x659f8-_0xf48251._0x196885,_0x2d6ee4-0x5d,_0x264e1f- -_0xf48251._0xb75b2d);}function _0x344256(_0x2041f3,_0x5f4041,_0x16fe86,_0x169ac9){return _0x1e96ec(_0x5f4041,_0x5f4041-_0x228084._0x271b7d,_0x16fe86-0x136,_0x2041f3- -_0x228084._0x317742);}return _0x81da87(-0x17e,-0x1c6,-0x1d1,-_0x2bc3da._0x459b58)+Date[_0x344256(-_0x2bc3da._0x4b1c21,-_0x2bc3da._0x10615f,-0x110,-0xca)]()+'-'+Math[_0x81da87(-_0x2bc3da._0xd12f45,-_0x2bc3da._0x2163d0,-0x1c0,-_0x2bc3da._0x30eed8)]()[_0x81da87(-0x100,-0xeb,-_0x2bc3da._0x2d123f,-0x84)](0x10)[_0x81da87(-0x123,-0x16c,-_0x2bc3da._0x15fcdc,-0x147)](0x2,0xa);}function createTurnId(_0x2f47b4){const _0xb2ec7={_0x54389f:0x14c},_0x3da40a={_0x1a417f:0x16,_0x4205f9:0x4c5};function _0x5d1e0c(_0x474232,_0x3b3fdc,_0x2bffae,_0x1426c5){return _0x1e96ec(_0x3b3fdc,_0x3b3fdc-0x86,_0x2bffae-_0x3da40a._0x1a417f,_0x474232- -_0x3da40a._0x4205f9);}return _0x5d1e0c(-0x16c,-0x1f6,-_0xb2ec7._0x54389f,-0x1e4)+_0x2f47b4;}function createDefaultMessage(_0x83b483){if(_0x83b483===void 0x0)return void 0x0;return normalizeUserInput(_0x83b483);}function normalizeUserInput(_0x55fe9b){const _0x5bd80f={_0x58b6a1:0x85,_0x5fd99f:0x90,_0x17c80e:0xba,_0x3c003d:0xd3},_0x3814bd={_0x2fd82e:0xb6,_0x52e416:0x5bc},_0x8662e9={_0x14d6b5:0x163};function _0x5373bf(_0x1a158d,_0x5873e3,_0x5e6951,_0x526c08){return _0x36460c(_0x1a158d-0x94,_0x1a158d- -0x405,_0x5873e3,_0x526c08-_0x8662e9._0x14d6b5);}if(typeof _0x55fe9b==='string')return{'role':_0x5373bf(0xd,-0x74,_0x5bd80f._0x58b6a1,_0x5bd80f._0x5fd99f),'content':[{'type':_0x5373bf(-_0x5bd80f._0x17c80e,-0x120,-0xbd,-_0x5bd80f._0x3c003d),'text':_0x55fe9b}]};function _0x3992c4(_0x24f23d,_0x4b16c9,_0x662b62,_0x4d2f4d){return _0x36460c(_0x24f23d-_0x3814bd._0x2fd82e,_0x4d2f4d- -_0x3814bd._0x52e416,_0x4b16c9,_0x4d2f4d-0x57);}return normalizeMessage(_0x55fe9b);}function isTaggedSteeringInput(_0x53158d){const _0x6959d9={_0x4bc9ae:0x1ba,_0x618aff:0x211,_0x1b5af2:0x215,_0x107a04:0x221,_0x527b5e:0x1b8},_0x3f2e78={_0x553848:0x117},_0x32fd1a={_0x2d1fe0:0xdd};function _0x3ff0f7(_0x2b30d8,_0x46d995,_0x3ff244,_0x46280e){return _0x36460c(_0x2b30d8-_0x32fd1a._0x2d1fe0,_0x3ff244- -0x14e,_0x46280e,_0x46280e-0x1e6);}function _0x581ca0(_0x26fd73,_0x2c0d7b,_0x4b5067,_0x2c3332){return _0x1e96ec(_0x4b5067,_0x2c0d7b-0x19b,_0x4b5067-_0x3f2e78._0x553848,_0x2c0d7b- -0x1d1);}return typeof _0x53158d==='object'&&_0x53158d!==null&&_0x581ca0(0x1c4,0x235,_0x6959d9._0x4bc9ae,_0x6959d9._0x618aff)in _0x53158d&&_0x3ff0f7(_0x6959d9._0x1b5af2,0x199,_0x6959d9._0x107a04,_0x6959d9._0x527b5e)in _0x53158d;}function resolveChatModel(_0x187fbd){const _0x4ef15a={_0x1cb7d3:0x4cd},_0xba2608={_0x3ee5f4:0x5a},_0x475664={_0x558f85:0xf1};if(!_0x187fbd[_0x51ee80(0x4d4,0x542,0x54f,_0x4ef15a._0x1cb7d3)])throw new Error(_0x51ee80(0x43c,0x3fe,0x429,0x404));function _0x51ee80(_0x4f674d,_0x595249,_0x50f5e6,_0x67b6e3){return _0x1e96ec(_0x67b6e3,_0x595249-0xe6,_0x50f5e6-0x1cf,_0x4f674d-_0x475664._0x558f85);}function _0x21d0f2(_0x3623e1,_0x23c279,_0x45d7aa,_0x3c31f2){return _0x1e96ec(_0x23c279,_0x23c279-_0xba2608._0x3ee5f4,_0x45d7aa-0x17d,_0x3c31f2- -0x389);}return _0x187fbd[_0x51ee80(0x4d4,0x491,0x538,0x511)];}function normalizeExecutionScope2(_0x1a944a){const _0x326537={_0x384751:0x9f,_0x534ef6:0x23,_0x4e436b:0x9d,_0x1ed2db:0x3e5,_0x368554:0x3f1},_0x3b8020={_0x41d26f:0xad,_0x435500:0x19f,_0xb41919:0x42d},_0x14bc19={_0x2dafd5:0x11,_0x567c00:0x4a};function _0x5b5410(_0x5c872d,_0x4f2748,_0x9b8444,_0x49c986){return _0x1e96ec(_0x49c986,_0x4f2748-0xbd,_0x9b8444-_0x14bc19._0x2dafd5,_0x5c872d-_0x14bc19._0x567c00);}function _0x19399c(_0x1aa2d8,_0x402a59,_0xf03a93,_0x1dd27d){return _0x1e96ec(_0x1dd27d,_0x402a59-_0x3b8020._0x41d26f,_0xf03a93-_0x3b8020._0x435500,_0x1aa2d8- -_0x3b8020._0xb41919);}return{'agentId':_0x1a944a?.[_0x19399c(-0x24,0x59,-_0x326537._0x384751,_0x326537._0x534ef6)]??_0x19399c(-_0x326537._0x4e436b,-0xfc,-0x56,-0xe6),'toolCallPath':[..._0x1a944a?.[_0x5b5410(_0x326537._0x1ed2db,0x3ee,_0x326537._0x368554,0x43c)]??[]]};}function createRegistry(_0xb680bf){const _0x303388={_0x3bc93f:0x252,_0x5727de:0x24d,_0x508971:0x1f9,_0x1d1bf7:0x135,_0xa5e76c:0x127,_0x1a2b50:0x127,_0x5cf2e6:0xeb,_0xf3fe25:0x128,_0xc683d2:0x114,_0x546f97:0x1aa,_0x345eea:0x24e},_0x5c2fad={_0x42e9a6:0x119,_0x51f2b7:0x221,_0x40dcc7:0x29},_0x296b23={_0x38508a:0x523};if(_0xb680bf[_0x4d774a(-0x1ea,-_0x303388._0x3bc93f,-_0x303388._0x5727de,-_0x303388._0x508971)])return _0xb680bf[_0x3b18e4(_0x303388._0x1d1bf7,0x154,0xf4,_0x303388._0xa5e76c)];function _0x4d774a(_0xd7517c,_0x4f398c,_0x448135,_0x1060a7){return _0x1e96ec(_0x4f398c,_0x4f398c-0x138,_0x448135-0x8e,_0xd7517c- -_0x296b23._0x38508a);}function _0x3b18e4(_0x3cadfe,_0x5cc67a,_0x52f266,_0x2f7263){return _0x36460c(_0x3cadfe-_0x5c2fad._0x42e9a6,_0x2f7263- -_0x5c2fad._0x51f2b7,_0x52f266,_0x2f7263-_0x5c2fad._0x40dcc7);}const _0x42d7d8=createExtensionRegistry(),_0x10af8c=_0xb680bf[_0x3b18e4(_0x303388._0x1a2b50,_0x303388._0x5cf2e6,_0x303388._0xf3fe25,_0x303388._0xc683d2)]??[];for(const _0x59da38 of _0x10af8c){_0x42d7d8[_0x3b18e4(_0x303388._0x546f97,_0x303388._0x345eea,0x1fe,0x1f5)](_0x59da38);}return _0x42d7d8;}var Agent=class{[_0x1e96ec(0x39a,0x2fe,0x3af,0x384)];[_0x1e96ec(0x393,0x344,0x35f,0x3aa)];[_0x36460c(0x368,0x359,0x3e0,0x331)];[_0x36460c(0x35e,0x3e7,0x438,0x454)];[_0x1e96ec(0x45f,0x374,0x419,0x3eb)];[_0x36460c(0x3f6,0x39a,0x414,0x38f)];[_0x1e96ec(0x356,0x36e,0x39b,0x3d7)];constructor(_0x3e09b0={}){const _0x383045={_0x3c57d5:0xf1,_0x29ac10:0xb3,_0x10d5d8:0xac,_0x33f7e0:0x122,_0x5fdaee:0xe0,_0x5e577d:0xd3,_0x45dec3:0xad,_0x6e48b9:0xef,_0x4abfcd:0x75,_0x43f176:0x94,_0x456a61:0xe9,_0x3142ca:0x94,_0x207e5f:0x79,_0x54b278:0x99,_0x5cf88c:0x5e,_0x4ce37e:0xba,_0x1a51f9:0xd0,_0x479799:0xa9,_0x528b1a:0xe7,_0x1d3ee7:0x34,_0xfc7139:0x20,_0x24f7bb:0x59,_0x5b894f:0x1c0,_0x5b6f7f:0xe6,_0x275437:0x14a,_0x21a797:0x1c8,_0x567044:0x1b2,_0x5d3951:0x11b,_0x3d48c0:0xb2,_0x3c8014:0x1ee,_0x4bc157:0x53,_0x1e3600:0x9b,_0x41a7f2:0xa3,_0x1d096e:0x168,_0x544cbb:0x12a,_0x54266c:0xc3,_0x2517bd:0x41},_0x796c90={_0x569551:0x19b},_0x1c9247={_0x30dd8b:0xeb};this[_0x55d4ab(-_0x383045._0x3c57d5,-0x112,-_0x383045._0x29ac10,-_0x383045._0x10d5d8)]=_0x3e09b0[_0x55d4ab(-_0x383045._0x33f7e0,-_0x383045._0x5fdaee,-0x11c,-0xac)]??createSessionId(),this[_0x55d4ab(-0x41,-_0x383045._0x5e577d,-0xee,-_0x383045._0x45dec3)]=0x0,this[_0x84886f(0xf3,_0x383045._0x6e48b9,0x188,0x110)]=_0x3e09b0[_0x84886f(_0x383045._0x4abfcd,_0x383045._0x43f176,_0x383045._0x456a61,0xcd)]??'',this['messages']=(_0x3e09b0[_0x55d4ab(-_0x383045._0x3142ca,-0x4b,-_0x383045._0x207e5f,-_0x383045._0x54b278)]??[])['map'](normalizeMessage),this[_0x84886f(0xfc,0x105,0x127,0x117)]=createDefaultMessage(_0x3e09b0[_0x55d4ab(-_0x383045._0x5cf88c,-0x52,-0x59,-_0x383045._0x4ce37e)]);function _0x55d4ab(_0x4af6ea,_0x120119,_0x439570,_0x5d9063){return _0x36460c(_0x4af6ea-0x7b,_0x5d9063- -0x493,_0x439570,_0x5d9063-0x1de);}this[_0x84886f(_0x383045._0x1a51f9,_0x383045._0x479799,_0x383045._0x528b1a,0xd6)]=createAgentMetrics({'getContextWindowLimit':_0x3e09b0[_0x55d4ab(-_0x383045._0x1d3ee7,0xe,-_0x383045._0xfc7139,-_0x383045._0x24f7bb)]});const _0xfe8795=_0x3e09b0['onEvent'],_0x3f0c64=async(_0x3a6c7,_0x3995f6)=>{const _0x1cfbec={_0x156265:0x19b,_0x2eb09e:0x3b};function _0x38e736(_0x15f844,_0x426911,_0x49bbe3,_0x5ce179){return _0x84886f(_0x15f844-0x1b0,_0x426911-_0x1cfbec._0x156265,_0x5ce179,_0x15f844-_0x1cfbec._0x2eb09e);}this['metrics'][_0x38e736(0xf5,_0x1c9247._0x30dd8b,0xdc,0x17b)](_0x3a6c7),await _0xfe8795?.(_0x3a6c7,_0x3995f6);},_0x271271=createRegistry(_0x3e09b0),_0x535e36=createInternalToolRuntime(_0x3e09b0[_0x84886f(_0x383045._0x5b894f,_0x383045._0x5b6f7f,0xd4,_0x383045._0x275437)]??[],{'onEvent':_0x3f0c64,'onToolCall':_0x3e09b0[_0x84886f(_0x383045._0x21a797,_0x383045._0x567044,0x115,0x199)],'registry':_0x271271,'beginProgramTrace':_0x3e09b0[_0x84886f(_0x383045._0x5d3951,0xa9,_0x383045._0x3d48c0,0xb1)]});function _0x84886f(_0x2ffff4,_0x323b61,_0xed53e1,_0x2bbb58){return _0x1e96ec(_0xed53e1,_0x323b61-_0x796c90._0x569551,_0xed53e1-0xce,_0x2bbb58- -0x274);}this[_0x84886f(0xac,0x1be,0x194,0x136)]={'registry':_0x271271,'chatModel':resolveChatModel(_0x3e09b0),'toolRuntime':_0x535e36,'askUser':_0x3e09b0[_0x84886f(_0x383045._0x3c8014,0x13f,0x1c6,0x175)],'onEvent':_0x3f0c64,'sessionDir':_0x3e09b0['sessionDir'],'outputFormat':_0x3e09b0[_0x55d4ab(-_0x383045._0x4bc157,-_0x383045._0x1e3600,-0x12e,-_0x383045._0x41a7f2)],'executionScope':normalizeExecutionScope2(_0x3e09b0[_0x84886f(_0x383045._0x1d096e,0x1d4,0xe8,0x14d)]),'beginProgramTrace':_0x3e09b0[_0x84886f(_0x383045._0x544cbb,_0x383045._0x54266c,_0x383045._0x2517bd,0xb1)]};}get[_0x36460c(0x2cf,0x350,0x381,0x2f1)](){const _0x2a25b0={_0x231fe3:0x249,_0x3ba2d0:0x2c5,_0x804b42:0x1f0},_0x11cc8c={_0x377be2:0x5e,_0xbe74d6:0x14a};function _0x102f94(_0x3ee26b,_0x11fc15,_0x580d36,_0x56bf86){return _0x36460c(_0x3ee26b-_0x11cc8c._0x377be2,_0x3ee26b- -_0x11cc8c._0xbe74d6,_0x11fc15,_0x56bf86-0x20);}return this[_0x102f94(_0x2a25b0._0x231fe3,_0x2a25b0._0x3ba2d0,_0x2a25b0._0x804b42,0x2b9)];}[_0x1e96ec(0x38e,0x396,0x425,0x3f3)](_0x2e1b54=[]){const _0x1e0501={_0x6ec6b5:0x62,_0x162c4f:0x439,_0x4a3a3d:0x477,_0x411c5d:0x4bd,_0x2b2288:0x4a5},_0x310c0d={_0x46baf5:0xa3,_0x5669d1:0x170},_0x560a70={_0x55860d:0x400,_0x196f2d:0x1a1};function _0x32417a(_0x110e3f,_0xf4b4f2,_0x2b5d76,_0x3c061b){return _0x36460c(_0x110e3f-0x97,_0xf4b4f2- -_0x560a70._0x55860d,_0x2b5d76,_0x3c061b-_0x560a70._0x196f2d);}function _0x3ecde8(_0x51b920,_0x5794af,_0x7efb7b,_0xd1e105){return _0x36460c(_0x51b920-0x63,_0xd1e105-_0x310c0d._0x46baf5,_0x5794af,_0xd1e105-_0x310c0d._0x5669d1);}this['deps'][_0x32417a(-0x25,-0x83,-_0x1e0501._0x6ec6b5,-0x2c)][_0x3ecde8(_0x1e0501._0x162c4f,_0x1e0501._0x4a3a3d,_0x1e0501._0x411c5d,_0x1e0501._0x2b2288)](_0x2e1b54);}[_0x36460c(0x357,0x3db,0x458,0x44d)](){const _0x515a9e={_0x49078b:0x2f0,_0x2f5b30:0x5c,_0x466004:0xa4,_0x770658:0xac,_0x48352c:0xd5,_0x4a53db:0xb2},_0x1d5b71={_0x2c1894:0x2cf},_0x5f4ba3={_0x34ed7d:0x145};function _0x50c6fc(_0x20bf73,_0x2fd560,_0xdf5309,_0x16f597){return _0x1e96ec(_0xdf5309,_0x2fd560-0x63,_0xdf5309-0x1a,_0x20bf73- -_0x5f4ba3._0x34ed7d);}function _0x3a1a27(_0x4c1cb7,_0x59a572,_0x2b32a1,_0xbc4a0e){return _0x1e96ec(_0x4c1cb7,_0x59a572-0x14,_0x2b32a1-0x4e,_0x59a572- -_0x1d5b71._0x2c1894);}return this[_0x50c6fc(0x265,0x2e1,_0x515a9e._0x49078b,0x2b4)][_0x3a1a27(_0x515a9e._0x2f5b30,0x9f,_0x515a9e._0x466004,_0x515a9e._0x770658)][_0x3a1a27(_0x515a9e._0x48352c,_0x515a9e._0x466004,_0x515a9e._0x4a53db,0x92)]();}[_0x1e96ec(0x2ff,0x2f8,0x3a7,0x351)](_0x4fb07f,_0x5649b3={}){const _0xd43001={_0x2c11d7:0x2ea,_0x12397d:0x350,_0x53900a:0x3a6,_0x1650f8:0x27f,_0x942284:0x1f9},_0x148cf0={_0x507dbf:0x108,_0x28cf67:0x34},_0x122a8b={_0x5185e1:0x5f3,_0x457a72:0x159};function _0x15ce79(_0x4025e6,_0x54a20d,_0x5e8c13,_0x6d91ad){return _0x36460c(_0x4025e6-0x13a,_0x5e8c13- -_0x122a8b._0x5185e1,_0x4025e6,_0x6d91ad-_0x122a8b._0x457a72);}function _0x46eb41(_0x576885,_0x525114,_0x1137c4,_0x3b0b10){return _0x1e96ec(_0x576885,_0x525114-_0x148cf0._0x507dbf,_0x1137c4-0x3e,_0x1137c4- -_0x148cf0._0x28cf67);}this[_0x46eb41(_0xd43001._0x2c11d7,0x2e3,_0xd43001._0x12397d,_0xd43001._0x53900a)]=_0x4fb07f,_0x5649b3[_0x15ce79(-0x251,-_0xd43001._0x1650f8,-0x264,-0x28f)]===!![]&&(this[_0x15ce79(-0x23d,-0x205,-_0xd43001._0x942284,-0x1b6)]=[],this['turnIndex']=0x0);}[_0x36460c(0x3df,0x3b6,0x33a,0x33d)](_0x556420){this['sessionId']=_0x556420;}[_0x36460c(0x3eb,0x3f5,0x38f,0x45b)](_0x2d86af){const _0xdcd599={_0x512a5b:0x4f4,_0x5eccee:0x473,_0x2401e8:0x4b1},_0x9d27b1={_0x1127cf:0xde};function _0x3709ad(_0x4549cc,_0x11f28b,_0x3fe63f,_0x59ce9b){return _0x36460c(_0x4549cc-0x1c,_0x3fe63f-_0x9d27b1._0x1127cf,_0x11f28b,_0x59ce9b-0x15b);}this[_0x3709ad(_0xdcd599._0x512a5b,_0xdcd599._0x5eccee,0x497,_0xdcd599._0x2401e8)]['chatModel']=_0x2d86af;}async['send'](_0x59b953=this[_0x1e96ec(0x38f,0x369,0x37b,0x38b)],_0x2f87a1={}){const _0x295c68={_0x266027:0x402,_0x51f613:0x41d,_0xe595ae:0x453,_0x16a056:0x4da,_0x423e9f:0x3d3,_0x34b780:0x436,_0x5cee27:0x425,_0x4e8737:0x387,_0x35e612:0x3c8,_0x4653aa:0x3e2,_0x3619e5:0x46f,_0x4c0c45:0x434,_0x7ff68e:0x46d,_0x394e5f:0x500,_0x2362d1:0x41c,_0x456c47:0x3e7,_0x3584e2:0x4a0,_0x9e6ee9:0x431,_0x1c399f:0x43c,_0x4aa986:0x3ff,_0x3d4802:0x42f,_0x1f75d0:0x4f5,_0x4e52b3:0x4f4,_0x495f30:0x4eb,_0x3d30ac:0x472},_0x478c6f={_0x548e7f:0xc,_0xa88e5f:0x49},_0x47a65d={_0x592dc4:0x53};function _0xd0afa5(_0x4c0ee7,_0x5a8e48,_0x187422,_0x5a6314){return _0x1e96ec(_0x4c0ee7,_0x5a8e48-_0x47a65d._0x592dc4,_0x187422-0x1a4,_0x5a6314-0x87);}if(!_0x59b953)throw new Error(_0x33c6ce(0x467,0x41b,_0x295c68._0x266027,0x427));this['turnIndex']+=0x1;const _0x2a1ac2=_0x2f87a1[_0x33c6ce(0x3f7,_0x295c68._0x51f613,_0x295c68._0xe595ae,_0x295c68._0x16a056)];function _0x33c6ce(_0x5e73cd,_0x22153e,_0x127d0a,_0x1d058a){return _0x1e96ec(_0x5e73cd,_0x22153e-0x149,_0x127d0a-_0x478c6f._0x548e7f,_0x127d0a-_0x478c6f._0xa88e5f);}try{const _0x3ae643=await runTurn({'sessionId':this['sessionId'],'turnId':createTurnId(this[_0x33c6ce(_0x295c68._0x423e9f,0x3d8,0x420,_0x295c68._0x34b780)]),'streaming':_0x2f87a1[_0xd0afa5(0x3ad,0x43d,_0x295c68._0x5cee27,0x3b2)],'signal':_0x2f87a1['signal'],'system':this[_0xd0afa5(0x3f4,_0x295c68._0x4e8737,0x44a,_0x295c68._0x35e612)],'messages':this[_0x33c6ce(_0x295c68._0x4653aa,_0x295c68._0x3619e5,_0x295c68._0x4c0c45,0x463)],'message':normalizeUserInput(_0x59b953),..._0x2f87a1[_0xd0afa5(_0x295c68._0x7ff68e,0x4ac,_0x295c68._0x394e5f,0x484)]===!![]?{'transientInput':!![]}:{},..._0x2f87a1[_0xd0afa5(0x3f3,0x456,_0x295c68._0x2362d1,_0x295c68._0x456c47)]===void 0x0?{}:{'submission':_0x2f87a1['submission']},..._0x2a1ac2?{'drainSteering':async()=>(await _0x2a1ac2())['map'](_0x2d1adf=>isTaggedSteeringInput(_0x2d1adf)?{'input':normalizeUserInput(_0x2d1adf['input']),'submission':_0x2d1adf[_0xd0afa5(0x427,0x402,0x38d,0x3e7)]}:normalizeUserInput(_0x2d1adf))}:{}},this[_0xd0afa5(_0x295c68._0x3584e2,0x464,0x3f9,_0x295c68._0x9e6ee9)]);return this['messages']=_0x3ae643[_0xd0afa5(_0x295c68._0x1c399f,_0x295c68._0x4aa986,0x48c,0x489)][_0xd0afa5(_0x295c68._0x3d4802,_0x295c68._0x1f75d0,0x4aa,0x472)]['map'](normalizeMessage),_0x3ae643;}catch(_0x5a6ef3){if(_0x5a6ef3 instanceof TurnFailedError){this[_0xd0afa5(_0x295c68._0x4e52b3,0x4c2,_0x295c68._0x495f30,_0x295c68._0x3d30ac)]=synthesizeMissingToolResults(_0x5a6ef3['state']['messages'][_0x33c6ce(0x3af,0x381,_0x295c68._0x456c47,0x412)](normalizeMessage));throw _0x5a6ef3[_0x33c6ce(0x445,0x422,0x3d8,0x3e1)];}throw _0x5a6ef3;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,closeBoundNestedToolExecution,drainBoundNestedToolPersistence,commitBoundToolExecutionTerminalState,createInternalToolRuntime,createExtensionRegistry,ModelUsageOverflowError,emptyModelUsageTotals,isModelUsageTotals,isSubagentReportMeta,addModelUsageTotals,modelUsageTotalsEqual,modelUsageTotalsFromSnapshot,modelUsageTotalsFromHistory,createAgentMetrics,runTurn,Agent};