@nuvin/agent-core 0.3.1-rc.0 → 0.3.1-rc.1

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(_0x5c5612,_0x3397f5){const _0x16ad12={_0x124b67:0x18c,_0x4254b3:0x3e1,_0xd25000:0x3c0,_0x7b4595:0x377,_0x3e378f:0x3f6,_0x171a61:0x85,_0x465a0f:0x3ca,_0x1b52f2:0x4ab,_0x47fc97:0x440,_0x390ffd:0x45f,_0x4d958c:0x3de,_0x455815:0x410,_0x381b73:0x12e,_0x17812e:0x55,_0x1d6c81:0xd3,_0x248b5c:0x3d4,_0xe226f7:0x3ab,_0x5a8ebc:0x33f,_0x28263a:0x413,_0x496733:0x42a,_0x13c639:0x104,_0x588353:0x40,_0xdb219:0x190,_0x1eb7ca:0x155,_0x484085:0x141,_0x2a028e:0x415,_0x5a5c54:0x368,_0x8460bc:0x469,_0xfa50ec:0x403},_0x478254={_0x16f55f:0x1d5},_0x4a43de=_0x5c5612();function _0x3cdab6(_0x5d5cc6,_0x2d1dae,_0x299756,_0x21a437){return _0x37f7(_0x21a437-0x2e1,_0x5d5cc6);}function _0x30292f(_0x49ffb0,_0x392e75,_0x1d81e6,_0x4b6b20){return _0x37f7(_0x4b6b20- -_0x478254._0x16f55f,_0x1d81e6);}while(!![]){try{const _0x52cf02=parseInt(_0x30292f(-0xe7,-0x176,-_0x16ad12._0x124b67,-0x131))/0x1*(parseInt(_0x3cdab6(_0x16ad12._0x4254b3,_0x16ad12._0xd25000,_0x16ad12._0x7b4595,_0x16ad12._0x3e378f))/0x2)+parseInt(_0x30292f(-0x63,-0x93,-0x1c,-_0x16ad12._0x171a61))/0x3*(-parseInt(_0x3cdab6(_0x16ad12._0x465a0f,_0x16ad12._0x1b52f2,0x4b3,_0x16ad12._0x47fc97))/0x4)+parseInt(_0x3cdab6(0x3f6,0x486,_0x16ad12._0x390ffd,0x448))/0x5*(-parseInt(_0x3cdab6(0x40e,_0x16ad12._0x4d958c,_0x16ad12._0x455815,0x38d))/0x6)+-parseInt(_0x30292f(-0x61,-_0x16ad12._0x381b73,-_0x16ad12._0x17812e,-_0x16ad12._0x1d6c81))/0x7*(parseInt(_0x3cdab6(_0x16ad12._0x248b5c,_0x16ad12._0xe226f7,_0x16ad12._0x5a8ebc,0x38a))/0x8)+-parseInt(_0x3cdab6(_0x16ad12._0x28263a,_0x16ad12._0x496733,0x3f8,0x443))/0x9+parseInt(_0x30292f(-_0x16ad12._0x13c639,-_0x16ad12._0x588353,-0x5a,-0x8b))/0xa*(parseInt(_0x30292f(-_0x16ad12._0xdb219,-_0x16ad12._0x1eb7ca,-_0x16ad12._0x484085,-0x114))/0xb)+parseInt(_0x3cdab6(_0x16ad12._0x2a028e,0x40e,_0x16ad12._0x5a5c54,0x3dc))/0xc*(parseInt(_0x3cdab6(_0x16ad12._0x8460bc,0x3bb,0x388,_0x16ad12._0xfa50ec))/0xd);if(_0x52cf02===_0x3397f5)break;else _0x4a43de['push'](_0x4a43de['shift']());}catch(_0xefd85d){_0x4a43de['push'](_0x4a43de['shift']());}}}(_0x22cd,0x9d92c));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(_0x5c29b0){const _0x3a4902={_0x28c9a9:0x16b,_0x46aad1:0x118,_0x2850e3:0x186,_0x1e0a65:0x1a2,_0xa190a6:0x138},_0x54fb69={_0x451beb:0x1ef};function _0x3eef1a(_0x24533a,_0x4c9e57,_0x310ab3,_0xbe9696){return _0x37f7(_0xbe9696- -_0x54fb69._0x451beb,_0x24533a);}function _0x59d433(_0x33edb1,_0x4dc24a,_0x3db368,_0x30eafc){return _0x37f7(_0x30eafc- -0x37f,_0x33edb1);}return typeof _0x5c29b0===_0x3eef1a(-_0x3a4902._0x28c9a9,-0x198,-0x164,-_0x3a4902._0x46aad1)&&_0x5c29b0!==null&&!Array[_0x3eef1a(-0xb3,-_0x3a4902._0x2850e3,-_0x3a4902._0x1e0a65,-_0x3a4902._0xa190a6)](_0x5c29b0);}function isToolOutputEnvelope(_0x4247ed){const _0x50c8f2={_0x36268a:0x1e9,_0x378d07:0x1fe,_0x21732b:0x2ce,_0x1d9f11:0x2c7},_0x4aa3a5={_0x1c9ebe:0x1ac};function _0x24e6f3(_0x597edc,_0x293961,_0x42170f,_0x3a28d1){return _0x37f7(_0x293961-_0x4aa3a5._0x1c9ebe,_0x597edc);}function _0x18ff1e(_0x502637,_0x52dbdc,_0x532c2e,_0xac5a24){return _0x37f7(_0xac5a24-0x1b9,_0x502637);}if(typeof _0x4247ed!=='object'||_0x4247ed===null||Array[_0x24e6f3(0x1f0,0x263,_0x50c8f2._0x36268a,_0x50c8f2._0x378d07)](_0x4247ed))return![];if(typeof _0x4247ed['output']!==_0x24e6f3(_0x50c8f2._0x21732b,0x334,0x327,_0x50c8f2._0x1d9f11))return![];const _0xb21b39=_0x4247ed['structured'];return _0xb21b39===void 0x0||isJsonObject(_0xb21b39);}function validateAgainstSchema(_0x35972,_0x59a37c,_0xe04848){const _0x4e4c49={_0xd132e0:0x363,_0x5c617a:0x378,_0x2c3180:0x2fe,_0xed4d69:0x3e8,_0x30a0c1:0x30c,_0x470345:0x3d0,_0x22ae27:0x39d,_0x430b7a:0x380,_0x184b81:0x358,_0x541591:0x3e2,_0x16d068:0x3e6,_0x2e27d3:0x321,_0x3a81a1:0x36e,_0x302b5a:0x3a2,_0x147110:0x2d3,_0x51fcba:0x3e6,_0x45735c:0x314,_0x3d7d6c:0x36d,_0x41c565:0x2c4,_0x4eca33:0x33c,_0x6d2c49:0x387,_0xa0daef:0x245,_0x465c17:0x329,_0x222ef3:0x34f,_0x4ff57f:0x297,_0x51e741:0x2bf,_0x135341:0x280,_0x5a7e20:0x2e5,_0x2670d0:0x2cf,_0x39c178:0x363,_0x2b991e:0x3f1,_0x225df3:0x35c,_0xf00459:0x2fb,_0x3d2a8a:0x386,_0x408794:0x33f,_0x464be9:0x324,_0x4aaa5:0x2ed,_0x623abd:0x2af,_0x11dc21:0x316,_0x3d9a8f:0x3b3,_0x19042a:0x42b,_0x2b056c:0x395,_0x321b82:0x27c,_0x5067f6:0x326,_0x2463f2:0x353,_0x2d1508:0x300,_0xe7ab0b:0x337,_0x41a08d:0x3a6,_0x7bf51b:0x3b5,_0x13e0d5:0x2e7,_0x233f1c:0x2fc,_0x2009c4:0x33f,_0x55f188:0x337,_0x4836d1:0x371,_0x46e6c0:0x376,_0x4e9257:0x346,_0x3ef9c1:0x29e,_0x38b774:0x3b5,_0xc46fcc:0x391,_0xc22855:0x34a,_0xca6f61:0x2e5,_0x3c4a27:0x356,_0x5c2263:0x33d,_0x10ce12:0x3a5,_0x45a8f6:0x33d,_0xdbcd9d:0x2e1},_0x556f24={_0x36fade:0x1f8},_0x4b5e56={_0x12655d:0x247};function _0x4f03c9(_0x96998e,_0x12d3fc,_0x2fb294,_0x35d0ff){return _0x37f7(_0x35d0ff-_0x4b5e56._0x12655d,_0x2fb294);}function _0x2ed360(_0x3de40a,_0x2856b3,_0x4b8759,_0x20f167){return _0x37f7(_0x3de40a-_0x556f24._0x36fade,_0x2856b3);}if(_0x2ed360(_0x4e4c49._0xd132e0,_0x4e4c49._0x5c617a,_0x4e4c49._0x2c3180,0x2fd)in _0xe04848){const _0x484311=_0xe04848[_0x4f03c9(_0x4e4c49._0xed4d69,0x43d,0x3b6,0x3b2)][_0x4f03c9(0x32c,_0x4e4c49._0x30a0c1,0x343,0x337)](_0x14cdd2=>{try{return validateAgainstSchema(_0x35972,_0x59a37c,_0x14cdd2),!![];}catch{return![];}});if(!_0x484311)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+':\x20expected\x20value\x20matching\x20anyOf\x20schema');return;}switch(_0xe04848[_0x4f03c9(0x3b3,0x414,_0x4e4c49._0x470345,_0x4e4c49._0x22ae27)]){case _0x2ed360(_0x4e4c49._0x430b7a,0x33f,_0x4e4c49._0x184b81,_0x4e4c49._0x541591):if(typeof _0x59a37c!==_0x2ed360(0x380,0x2ff,0x2fa,0x34a))throw new Error(_0x4f03c9(0x2eb,_0x4e4c49._0x16d068,_0x4e4c49._0x2e27d3,0x366)+_0x35972+_0x4f03c9(_0x4e4c49._0x3a81a1,0x3d9,0x388,_0x4e4c49._0x302b5a));if(_0xe04848['enum']!==void 0x0&&!_0xe04848[_0x2ed360(0x279,_0x4e4c49._0x147110,0x254,0x241)][_0x4f03c9(_0x4e4c49._0x51fcba,_0x4e4c49._0x45735c,_0x4e4c49._0x3d7d6c,0x385)](_0x59a37c))throw new Error(_0x2ed360(0x317,_0x4e4c49._0x41c565,0x2f1,_0x4e4c49._0x4eca33)+_0x35972+_0x2ed360(0x35e,_0x4e4c49._0x6d2c49,0x3ab,0x33c)+_0xe04848[_0x4f03c9(0x2ea,_0x4e4c49._0xa0daef,_0x4e4c49._0x465c17,0x2c8)][_0x2ed360(0x312,0x305,_0x4e4c49._0x222ef3,_0x4e4c49._0x4ff57f)](',\x20'));return;case _0x2ed360(0x280,0x248,_0x4e4c49._0x51e741,0x24c):if(typeof _0x59a37c!==_0x2ed360(_0x4e4c49._0x135341,_0x4e4c49._0x5a7e20,_0x4e4c49._0x2670d0,0x24c))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+_0x4f03c9(_0x4e4c49._0x39c178,_0x4e4c49._0x2b991e,_0x4e4c49._0x225df3,0x396));return;case'boolean':if(typeof _0x59a37c!==_0x2ed360(_0x4e4c49._0xf00459,_0x4e4c49._0x3d2a8a,_0x4e4c49._0x408794,0x2f4))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+_0x2ed360(_0x4e4c49._0x464be9,_0x4e4c49._0x4aaa5,_0x4e4c49._0x623abd,_0x4e4c49._0x11dc21));return;case _0x4f03c9(_0x4e4c49._0x3d9a8f,_0x4e4c49._0x19042a,_0x4e4c49._0x2b056c,0x3b6):if(!Array[_0x2ed360(_0x4e4c49._0x623abd,_0x4e4c49._0x321b82,0x329,0x286)](_0x59a37c))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+_0x2ed360(0x2e4,0x270,_0x4e4c49._0x5067f6,_0x4e4c49._0x2463f2));_0x59a37c[_0x2ed360(_0x4e4c49._0x2d1508,_0x4e4c49._0x45735c,0x370,_0x4e4c49._0xe7ab0b)]((_0x3aa72a,_0x10035e)=>{validateAgainstSchema(_0x35972+'['+_0x10035e+']',_0x3aa72a,_0xe04848['items']);});return;case'object':if(!isJsonObject(_0x59a37c))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x35972+_0x4f03c9(_0x4e4c49._0x41a08d,_0x4e4c49._0x7bf51b,0x2ed,0x34c));for(const _0x5f2cb8 of _0xe04848[_0x2ed360(_0x4e4c49._0x13e0d5,0x331,_0x4e4c49._0x233f1c,_0x4e4c49._0x2009c4)]??[]){if(!Object[_0x4f03c9(_0x4e4c49._0x55f188,0x37c,_0x4e4c49._0x4836d1,_0x4e4c49._0x46e6c0)](_0x59a37c,_0x5f2cb8))throw new Error(_0x2ed360(0x317,_0x4e4c49._0x4e9257,0x2d9,_0x4e4c49._0x3ef9c1)+_0x35972+':\x20missing\x20required\x20field\x20\x22'+_0x5f2cb8+'\x22');}if(_0xe04848[_0x4f03c9(_0x4e4c49._0x38b774,_0x4e4c49._0xc46fcc,0x3a3,_0x4e4c49._0x430b7a)]===![]){const _0x48f12b=Object['keys'](_0x59a37c)['find'](_0x2fa91f=>!Object[_0x4f03c9(0x3ba,0x326,0x324,0x376)](_0xe04848['properties'],_0x2fa91f));if(_0x48f12b!==void 0x0)throw new Error(_0x4f03c9(0x3d6,_0x4e4c49._0xc22855,_0x4e4c49._0xca6f61,0x366)+_0x35972+':\x20unexpected\x20field\x20\x22'+_0x48f12b+'\x22');}for(const [_0x584617,_0x5bb306]of Object['entries'](_0xe04848[_0x4f03c9(0x380,_0x4e4c49._0x3c4a27,_0x4e4c49._0x5c2263,_0x4e4c49._0x10ce12)])){Object[_0x2ed360(0x327,_0x4e4c49._0x45a8f6,_0x4e4c49._0xdbcd9d,0x2cc)](_0x59a37c,_0x584617)&&validateAgainstSchema(_0x35972+'.'+_0x584617,_0x59a37c[_0x584617],_0x5bb306);}}}function normalizeToolOutputValue(_0xe390ce){const _0x1cfb09={_0x1e8fde:0x1a8,_0x3c403e:0x220,_0x46fa16:0x1c0,_0x1000e2:0x14f,_0x4e172e:0x1d0,_0x4657f7:0xf7,_0x510ef5:0x178,_0x27388d:0x7e,_0xf7fb0c:0x9f,_0x4b9695:0x29,_0x420333:0x11a,_0x4d1e50:0x9a,_0xeb9102:0x94,_0x12df60:0x174,_0x4441c0:0x62,_0x1e6a0f:0x49},_0x356a7a={_0x2ee15f:0xc1};if(isToolOutputEnvelope(_0xe390ce))return{'output':_0xe390ce[_0x1e80a9(-_0x1cfb09._0x1e8fde,-0x18f,-_0x1cfb09._0x3c403e,-_0x1cfb09._0x46fa16)],'structured':_0xe390ce['structured']??{'value':_0xe390ce[_0x1e80a9(-0x1a8,-0x14b,-_0x1cfb09._0x1000e2,-_0x1cfb09._0x4e172e)]},..._0xe390ce[_0x1e80a9(-_0x1cfb09._0x4657f7,-_0x1cfb09._0x510ef5,-_0x1cfb09._0x27388d,-0x15f)]!==void 0x0?{'content':_0xe390ce[_0x537325(0x15,0x93,_0x1cfb09._0xf7fb0c,_0x1cfb09._0x4b9695)]}:{}};function _0x1e80a9(_0x121e0e,_0x5761c2,_0x5abdc6,_0x26728e){return _0x37f7(_0x121e0e- -0x24b,_0x26728e);}if(typeof _0xe390ce===_0x537325(_0x1cfb09._0x420333,0xc7,_0x1cfb09._0x4d1e50,_0x1cfb09._0xeb9102))return{'output':_0xe390ce,'structured':{'value':_0xe390ce}};if(typeof _0xe390ce===_0x1e80a9(-_0x1cfb09._0x12df60,-0x141,-_0x1cfb09._0x420333,-0x1c7)&&_0xe390ce!==null&&!Array[_0x537325(-0x7e,-0xa,0x80,-0x49)](_0xe390ce))return{'output':JSON[_0x537325(0x8,-0x22,_0x1cfb09._0x4441c0,-_0x1cfb09._0x1e6a0f)](_0xe390ce,null,0x2),'structured':_0xe390ce};function _0x537325(_0x54d110,_0x3d0fe3,_0x466202,_0x1d7c13){return _0x37f7(_0x3d0fe3- -_0x356a7a._0x2ee15f,_0x466202);}return{'output':JSON['stringify'](_0xe390ce,null,0x2),'structured':{'value':_0xe390ce}};}function createToolOutput(_0x222e8e,_0x1c808d={'value':_0x222e8e},_0x2d8b89){return{'output':_0x222e8e,'structured':_0x1c808d,..._0x2d8b89!==void 0x0?{'content':_0x2d8b89}:{}};}var ToolExecutionError=class extends Error{[_0x58fa56(0x39d,0x3e6,0x3b4,0x439)];constructor(_0x73eb34,_0x48dc59={}){const _0xf27f8e={_0x2569d8:0x195,_0x5c46a8:0x1d2,_0x340788:0xf5,_0x3ceee4:0x17c,_0x3d2a80:0x192,_0x3a9811:0x10a,_0xcdecdd:0x5c},_0x252e0d={_0x429578:0x4b0,_0x408277:0x160};super(_0x73eb34),this[_0x5d6539(-_0xf27f8e._0x2569d8,-_0xf27f8e._0x5c46a8,-_0xf27f8e._0x340788,-_0xf27f8e._0x3ceee4)]=_0x5d6539(-_0xf27f8e._0x3d2a80,-0x136,-_0xf27f8e._0x3a9811,-0x114);function _0x5d6539(_0x128dda,_0x281358,_0x1a51b1,_0x1e2c4b){return _0x58fa56(_0x128dda-0x66,_0x1e2c4b- -_0x252e0d._0x429578,_0x1a51b1-_0x252e0d._0x408277,_0x1a51b1);}function _0x18b222(_0x28df18,_0x311bb2,_0x2bc39f,_0x4bbe2f){return _0x58fa56(_0x28df18-0x12d,_0x28df18- -0x347,_0x2bc39f-0x6e,_0x2bc39f);}this[_0x5d6539(-0xd8,-0x83,-_0xf27f8e._0xcdecdd,-0xca)]=_0x48dc59;}};function defineTool(_0x4b2e59){return _0x4b2e59;}function resolveToolPermissionClass(_0x232e09){const _0x1cbd3e={_0x115447:0x16a,_0x24c0cd:0x1fe,_0x57495e:0x1d6,_0x17c9ad:0xf0,_0x543549:0x14c,_0x29dd35:0x17e,_0x392334:0x121,_0x4ce289:0x10c,_0x5c485f:0x98,_0x54027e:0xf6},_0x586299={_0x340bb4:0x190},_0x408ba1={_0x4cb1b9:0x1de},_0x5b772f=_0x232e09?.[_0x2d5e45(0x1bc,0x15f,_0x1cbd3e._0x115447,_0x1cbd3e._0x24c0cd)];function _0x2d5e45(_0x2a2d1f,_0x58a647,_0x394d45,_0x10ee76){return _0x58fa56(_0x2a2d1f-0x13e,_0x2a2d1f- -_0x408ba1._0x4cb1b9,_0x394d45-0x7c,_0x394d45);}if(_0x5b772f===_0x2d5e45(0x16c,_0x1cbd3e._0x57495e,_0x1cbd3e._0x17c9ad,0x11d)||_0x5b772f===_0x119d05(_0x1cbd3e._0x543549,_0x1cbd3e._0x29dd35,_0x1cbd3e._0x392334,0x1c6)||_0x5b772f===_0x119d05(0xf6,_0x1cbd3e._0x4ce289,0x114,_0x1cbd3e._0x5c485f))return _0x5b772f;function _0x119d05(_0xfd4c5c,_0xdd2084,_0x356655,_0x2408f8){return _0x58fa56(_0xfd4c5c-_0x586299._0x340bb4,_0xfd4c5c- -0x24c,_0x356655-0x15b,_0x2408f8);}return _0x119d05(_0x1cbd3e._0x54027e,0x105,0x15b,0xdc);}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x3ca267=[]){const _0x19d1dd={_0x5a7944:0x367,_0x3b8cda:0x460,_0x50293f:0x3e8},_0x1f6d84={_0x5a28ea:0x4c,_0x5d1005:0x11c};function _0x1b4c38(_0x3df7d,_0x37a4f5,_0x161565,_0x3f4465){return _0x58fa56(_0x3df7d-_0x1f6d84._0x5a28ea,_0x3f4465-0xae,_0x161565-_0x1f6d84._0x5d1005,_0x161565);}for(const _0x1c58a5 of _0x3ca267){this[_0x1b4c38(0x46b,_0x19d1dd._0x5a7944,_0x19d1dd._0x3b8cda,_0x19d1dd._0x50293f)](_0x1c58a5);}}['register'](_0x593dc3){const _0x50fefa={_0x137f03:0x15a,_0x40fbea:0x1cc,_0x45d08b:0x205},_0x1d10b9={_0x52b05c:0x9d,_0x567438:0x179};function _0x60b836(_0x26179b,_0x4a7216,_0x264763,_0x14f542){return _0x58fa56(_0x26179b-0x40,_0x26179b- -0x466,_0x264763-0x1a7,_0x264763);}function _0xa35075(_0x9ccda6,_0x3094a3,_0x421d2e,_0xac8d39){return _0x58fa56(_0x9ccda6-_0x1d10b9._0x52b05c,_0x3094a3- -0x19e,_0x421d2e-_0x1d10b9._0x567438,_0x421d2e);}this[_0xa35075(0x1ac,_0x50fefa._0x137f03,_0x50fefa._0x40fbea,0x1ae)]['set'](_0x593dc3[_0xa35075(0x160,0x196,0x15d,_0x50fefa._0x45d08b)],_0x593dc3);}[_0x22e785(0x42c,0x3b1,0x3ec,0x37a)](_0x4bdadb){const _0x362739={_0x6a4f32:0x319,_0x5b5899:0x2ee,_0x411920:0x175,_0x31b9ea:0x1cb,_0x23e468:0x1e8},_0xe11dc0={_0x3c2d96:0x363},_0x5d58fa={_0x5ba7f4:0x5e6};function _0xa455fa(_0x527c3e,_0x572bc0,_0x1dd67e,_0x36d632){return _0x58fa56(_0x527c3e-0x1c7,_0x36d632- -_0x5d58fa._0x5ba7f4,_0x1dd67e-0x119,_0x572bc0);}function _0x20478e(_0x553f6f,_0xe18c03,_0x26dc18,_0x364e73){return _0x58fa56(_0x553f6f-0xf2,_0x364e73- -_0xe11dc0._0x3c2d96,_0x26dc18-0x57,_0x26dc18);}return this[_0xa455fa(-_0x362739._0x6a4f32,-0x27d,-0x305,-_0x362739._0x5b5899)][_0xa455fa(-0x261,-_0x362739._0x411920,-_0x362739._0x31b9ea,-_0x362739._0x23e468)](_0x4bdadb);}['list'](){const _0x1a3acb={_0x55d6a4:0x2bc,_0x364e6c:0x274},_0x136edf={_0xeb98d2:0x17,_0x25b7e7:0x5bc};function _0x2509be(_0x434c62,_0x5c43d8,_0x594fea,_0x1fe2c6){return _0x22e785(_0x434c62-0x1d8,_0x5c43d8-_0x136edf._0xeb98d2,_0x594fea- -_0x136edf._0x25b7e7,_0x5c43d8);}return[...this['toolsByName'][_0x2509be(-_0x1a3acb._0x55d6a4,-_0x1a3acb._0x364e6c,-0x25d,-0x27a)]()];}[_0x22e785(0x3d8,0x3f1,0x39c,0x375)](){const _0x4e4dee={_0x1c2931:0xb5},_0x4de0e0={_0x4c249a:0x250,_0x216ef3:0x29d,_0x84927a:0x205,_0x597332:0x2c6,_0x23d407:0x1e3,_0x15ab16:0x258},_0x1dd8d3={_0x36556b:0x2c5},_0x501b66={_0x4154e9:0xfc};function _0x4a753a(_0x504fb6,_0x1e224a,_0x165679,_0x4bd065){return _0x58fa56(_0x504fb6-_0x501b66._0x4154e9,_0x4bd065- -0x2bf,_0x165679-0x1e2,_0x504fb6);}return this['list']()[_0x4a753a(_0x4e4dee._0x1c2931,0xa2,0x17b,0x10b)](_0x22d0ca=>{const _0x2600d3={_0x1455d3:0x70,_0x30073c:0x1ea};function _0x221735(_0x5d7a26,_0x527190,_0x8408a2,_0x4d71c2){return _0x4a753a(_0x8408a2,_0x527190-0x18b,_0x8408a2-0x11c,_0x5d7a26- -_0x1dd8d3._0x36556b);}function _0x307cb3(_0x2ff059,_0x102ad6,_0x14e9de,_0x16316f){return _0x4a753a(_0x14e9de,_0x102ad6-0x145,_0x14e9de-_0x2600d3._0x1455d3,_0x102ad6- -_0x2600d3._0x30073c);}return{'name':_0x22d0ca[_0x221735(-_0x4de0e0._0x4c249a,-0x270,-_0x4de0e0._0x216ef3,-_0x4de0e0._0x84927a)],'description':_0x22d0ca[_0x221735(-0x26b,-_0x4de0e0._0x597332,-_0x4de0e0._0x23d407,-_0x4de0e0._0x15ab16)],'input_schema':_0x22d0ca['inputSchema']};});}};function validateToolInput(_0x13e785,_0x1a2107){const _0x2f566c={_0x1d4873:0x1ad};function _0x2d66c1(_0x246b0e,_0x15ab6a,_0x4f705d,_0x1dc854){return _0x22e785(_0x246b0e-0x6d,_0x15ab6a-_0x2f566c._0x1d4873,_0x15ab6a- -0x397,_0x1dc854);}return validateAgainstSchema(_0x2d66c1(-0x37,-0x68,-0x18,-0xc1),_0x13e785,_0x1a2107),_0x13e785;}function deriveFinalToolOutput(_0x58102e){const _0x22fbf9={_0x1f7b00:0x375,_0x180263:0x329,_0x23b724:0x3ab,_0xc014aa:0x38b,_0x2e421e:0x33d,_0x2ac870:0x37d,_0x4e6877:0x27f,_0x250550:0x1f1,_0x33ec24:0x25c,_0x304a75:0x431,_0x4e7e52:0x3ee,_0x6e3eb1:0x218,_0xa656de:0x212,_0x53a7fa:0x20c,_0x2e798b:0x23d,_0x411c59:0x2d7,_0x20401f:0x2bd,_0x398bb5:0x256,_0x4e4e54:0x29f,_0x2b64f3:0x25e,_0x3e899c:0x2d0},_0x37a39b={_0x1cbfae:0x1cd},_0x1a5db6={_0x4fea9b:0xad,_0x1401b1:0x162};if(_0x58102e[_0x106544(0x43a,0x393,_0x22fbf9._0x1f7b00,0x3d5)]===0x0)return{'output':'','structured':{}};function _0x1a4ddc(_0x7572d,_0x4b69c1,_0x250472,_0x473135){return _0x22e785(_0x7572d-0x70,_0x4b69c1-_0x1a5db6._0x4fea9b,_0x473135- -_0x1a5db6._0x1401b1,_0x250472);}if(_0x58102e[_0x1a4ddc(0x1fc,0x1d8,0x2bf,0x243)]===0x1)return{'output':_0x58102e[0x0][_0x106544(_0x22fbf9._0x180263,_0x22fbf9._0x23b724,_0x22fbf9._0xc014aa,_0x22fbf9._0x2e421e)],'structured':_0x58102e[0x0][_0x106544(0x430,0x460,_0x22fbf9._0x2ac870,0x404)],..._0x58102e[0x0][_0x1a4ddc(0x1f6,_0x22fbf9._0x4e6877,_0x22fbf9._0x250550,_0x22fbf9._0x33ec24)]!==void 0x0?{'content':_0x58102e[0x0][_0x106544(_0x22fbf9._0x304a75,0x3aa,0x44d,_0x22fbf9._0x4e7e52)]}:{}};function _0x106544(_0x1e1c05,_0x3e57ca,_0x39a8be,_0x82f4c3){return _0x58fa56(_0x1e1c05-_0x37a39b._0x1cbfae,_0x82f4c3-0x1e,_0x39a8be-0x11,_0x39a8be);}const _0x15f292=_0x58102e[_0x1a4ddc(_0x22fbf9._0x6e3eb1,_0x22fbf9._0xa656de,_0x22fbf9._0x53a7fa,_0x22fbf9._0x2e798b)](_0x588f9b=>_0x588f9b['content']!==void 0x0);return{'output':_0x58102e[_0x1a4ddc(0x1f9,_0x22fbf9._0x411c59,_0x22fbf9._0x20401f,_0x22fbf9._0x398bb5)](_0x1c8e0d=>_0x1c8e0d['output'])['join'](''),'structured':{'chunks':_0x58102e['map'](_0x185caf=>_0x185caf['structured'])},..._0x15f292['length']===0x1?{'content':_0x15f292[0x0][_0x1a4ddc(_0x22fbf9._0x4e4e54,_0x22fbf9._0x2b64f3,_0x22fbf9._0x3e899c,0x25c)]}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0x1fa980){const _0x18344b={_0x49ed2a:0xa4},_0x444beb={_0x12ec48:0x31,_0x1fbe90:0x5e,_0x4ed6ee:0x2be};super('Tool\x20runtime\x20event\x20publication\x20failed',{'cause':_0x1fa980});function _0x3ed94b(_0x377e62,_0x3c91c6,_0x1b3dd0,_0x261b0c){return _0x22e785(_0x377e62-_0x444beb._0x12ec48,_0x3c91c6-_0x444beb._0x1fbe90,_0x261b0c- -_0x444beb._0x4ed6ee,_0x1b3dd0);}this['name']=_0x3ed94b(0x16d,0xb7,_0x18344b._0x49ed2a,0xf7);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0xfb295f,_0x5cc342){_0xfb295f&&boundNestedExecutionControls['get'](_0xfb295f)?.['close'](_0x5cc342);}async function drainBoundNestedToolPersistence(_0x3e15bd){const _0x1481b8={_0x35de65:0x434,_0xc0fb04:0x44a,_0x5d3cda:0x45d},_0x599e21={_0x56557:0x46};function _0x5b487f(_0x14168d,_0x5880db,_0x39910a,_0x5ddb05){return _0x58fa56(_0x14168d-_0x599e21._0x56557,_0x39910a- -0x1e,_0x39910a-0x42,_0x14168d);}function _0x4d9aaf(_0x56f312,_0x31621d,_0x248de0,_0x43113d){return _0x22e785(_0x56f312-0xfe,_0x31621d-0x164,_0x31621d-0x141,_0x43113d);}_0x3e15bd&&await boundNestedExecutionControls[_0x5b487f(0x408,_0x1481b8._0x35de65,0x3e0,0x38e)](_0x3e15bd)?.[_0x4d9aaf(_0x1481b8._0xc0fb04,_0x1481b8._0x5d3cda,0x450,0x49b)]();}function commitBoundToolExecutionTerminalState(_0x4b671c){const _0x5a1f15={_0x5cde65:0x4cc,_0x2742a1:0x472},_0x2725ab={_0x2f48c1:0x11c,_0x1c8ea3:0x1ba};function _0xc83e9e(_0x2ab2ef,_0x154898,_0x205331,_0x2c3c7e){return _0x58fa56(_0x2ab2ef-0x1,_0x154898-_0x2725ab._0x2f48c1,_0x205331-_0x2725ab._0x1c8ea3,_0x2ab2ef);}_0x4b671c&&boundNestedExecutionControls['get'](_0x4b671c)?.[_0xc83e9e(0x48a,_0x5a1f15._0x5cde65,0x4ba,_0x5a1f15._0x2742a1)]();}var PARENT_TOOL_SETTLED_MESSAGE=_0x22e785(0x441,0x3fc,0x3f3,0x39d);function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x946779,_0x35dc5e,_0x1a8c83,_0x15ffcf,_0xcdf328=[]){const _0x1400c4={_0x43dcf1:0x105,_0x4e03c0:0xe6},_0x2b15f8={_0x1501db:0x98,_0x3ee298:0xed};function _0x4a306c(_0x3ab165,_0x445e1a,_0x2074fb,_0x44e3b6){return _0x58fa56(_0x3ab165-_0x2b15f8._0x1501db,_0x445e1a- -0x202,_0x2074fb-_0x2b15f8._0x3ee298,_0x3ab165);}return{'callId':_0x946779,'toolName':_0x35dc5e,'status':_0x4a306c(0x7b,_0x1400c4._0x43dcf1,_0x1400c4._0x4e03c0,0xb2),'output':_0x1a8c83,'structured':_0x15ffcf,'chunks':_0xcdf328,'meta':createToolMeta()};}function createRejectedToolResult(_0x173388,_0x45d5a1,_0x5fc90d){const _0x192864={_0x238285:0x298,_0x50e711:0x262,_0x5294f5:0x262,_0x47b7e8:0x263,_0x270591:0x50,_0xd942f4:0x72,_0x4c7f79:0x49,_0x870590:0x46,_0x63c604:0x6b,_0x375d55:0x79,_0x2342cf:0x85},_0x1f2f59={_0x40ebc1:0x32},_0x270425={_0x57d404:0xeb,_0x28cd0:0x106},_0x36f7bf=_0x5fc90d?.[_0x10c9c0(-0x2fd,-0x210,-_0x192864._0x238285,-0x2d8)]()[_0x10c9c0(-_0x192864._0x50e711,-_0x192864._0x5294f5,-0x251,-_0x192864._0x47b7e8)]?_0x5fc90d:_0x4273e0(_0x192864._0x270591,0x6e,0xb,_0x192864._0xd942f4)+_0x45d5a1;function _0x10c9c0(_0x2fa177,_0x54b7a8,_0x105107,_0x445bfb){return _0x58fa56(_0x2fa177-_0x270425._0x57d404,_0x105107- -0x608,_0x105107-_0x270425._0x28cd0,_0x54b7a8);}function _0x4273e0(_0x566144,_0x2f2c07,_0x40b672,_0x17033a){return _0x58fa56(_0x566144-0x1bf,_0x2f2c07- -0x327,_0x40b672-_0x1f2f59._0x40ebc1,_0x17033a);}return createErrorToolResult(_0x173388,_0x45d5a1,_0x36f7bf,{'error':'tool_rejected',..._0x5fc90d?.[_0x4273e0(-0x2a,_0x192864._0x4c7f79,_0x192864._0x870590,0x16)]()[_0x4273e0(_0x192864._0x63c604,0x90,_0x192864._0x375d55,_0x192864._0x2342cf)]?{'reason':_0x5fc90d}:{}});}function createAbortedToolResult(_0x2c71d6,_0x43fbbc,_0x491c20,_0x1b10e5=[]){const _0x241924={_0x33bab5:0x136,_0xf9c4e7:0x10a,_0xd18153:0x145,_0x1eca2d:0xa3,_0x50c381:0x115,_0x5ea43d:0xc8,_0xf9fd13:0x13c,_0x5df7f4:0x2e,_0x5610a7:0x9e},_0x1f5163={_0x2bf36a:0x1bd,_0x3481a2:0x447,_0x4b94f3:0xb8},_0x49e560={_0x4afc97:0x131,_0x16ef64:0x503};if(_0x43fbbc===_0xdf9e14(-_0x241924._0x33bab5,-0x185,-_0x241924._0xf9c4e7,-_0x241924._0xd18153))return createErrorToolResult(_0x2c71d6,_0x43fbbc,_0xdf9e14(-0x4a,-_0x241924._0x1eca2d,-0xd5,-0x2a),{'error':_0xdf9e14(-0xde,-0xdd,-_0x241924._0x50c381,-0x63),'aborted':!![]},_0x1b10e5);const _0x10d0e1=toAbortError(_0x491c20);function _0xe44fdd(_0x1c095f,_0x582552,_0x5d999f,_0x5ecbd7){return _0x22e785(_0x1c095f-0x165,_0x582552-_0x49e560._0x4afc97,_0x5d999f- -_0x49e560._0x16ef64,_0x5ecbd7);}function _0xdf9e14(_0x1205ba,_0x578f41,_0x5c07b2,_0x52a97e){return _0x58fa56(_0x1205ba-_0x1f5163._0x2bf36a,_0x1205ba- -_0x1f5163._0x3481a2,_0x5c07b2-_0x1f5163._0x4b94f3,_0x5c07b2);}return createErrorToolResult(_0x2c71d6,_0x43fbbc,_0x10d0e1[_0xdf9e14(-0x110,-0xfb,-_0x241924._0x5ea43d,-_0x241924._0xf9fd13)],{'error':_0x10d0e1['message'],..._0x491c20 instanceof ToolExecutionError?_0x491c20[_0xdf9e14(-0x61,-_0x241924._0x5df7f4,-_0x241924._0x5610a7,-0x1)]:{},'aborted':!![]},_0x1b10e5);}function createSuccessToolResult(_0x2293f7,_0x1c2556,_0x4a16f0,_0x3a8d0d){const _0x579ce0={_0x4bd612:0x4d0,_0x3dfcf2:0x4d5,_0x3f34ca:0x4ed,_0x17f0e5:0x7,_0x54d1c1:0x53e,_0xf8f5d4:0x560,_0x576fe4:0x4d7},_0x54a9d1={_0x22ca8e:0x119};function _0x3f8a1b(_0x2d0f5f,_0x254962,_0x5a9b99,_0x16e409){return _0x22e785(_0x2d0f5f-0x121,_0x254962-0x1b8,_0x5a9b99- -0x356,_0x2d0f5f);}function _0x3ead33(_0x270c48,_0x47de2f,_0x56f1b8,_0x5daa28){return _0x22e785(_0x270c48-0xe9,_0x47de2f-0x1b,_0x56f1b8-_0x54a9d1._0x22ca8e,_0x5daa28);}return{'callId':_0x2293f7,'toolName':_0x1c2556,'status':'ok','output':_0x4a16f0['output'],'structured':_0x4a16f0[_0x3ead33(_0x579ce0._0x4bd612,_0x579ce0._0x3dfcf2,_0x579ce0._0x3f34ca,0x517)],..._0x4a16f0[_0x3f8a1b(0x8d,-_0x579ce0._0x17f0e5,0x68,-0x1f)]!==void 0x0?{'content':_0x4a16f0[_0x3ead33(_0x579ce0._0x54d1c1,_0x579ce0._0xf8f5d4,_0x579ce0._0x576fe4,0x46d)]}:{},'chunks':_0x3a8d0d,'meta':createToolMeta()};}function createUnknownToolResult(_0x35931f,_0x53147a){const _0xc55e7f={_0x52b53a:0x28a,_0x49b8ab:0x9b,_0x327394:0x155},_0x2eb7c5={_0x33a2ff:0xd0};function _0x3606b2(_0x1fa949,_0x396a0f,_0x1382fe,_0xe37d9b){return _0x58fa56(_0x1fa949-_0x2eb7c5._0x33a2ff,_0x396a0f- -0x25,_0x1382fe-0xdb,_0x1382fe);}function _0x3b7520(_0x5cec4e,_0x5d2fc4,_0x367ad3,_0x201e39){return _0x22e785(_0x5cec4e-0x103,_0x5d2fc4-0x1c1,_0x367ad3- -0x2b0,_0x5d2fc4);}return createErrorToolResult(_0x35931f,_0x53147a,_0x3606b2(_0xc55e7f._0x52b53a,0x310,0x34d,0x34f)+_0x53147a,{'error':_0x3b7520(_0xc55e7f._0x49b8ab,0x8f,0x10b,_0xc55e7f._0x327394)});}function cloneToolCallForPublication(_0x4f5d58,_0x200424,_0x325539){const _0x4458dc={_0x534f73:0x105,_0x205cb9:0x1d},_0x7e7a3e={_0x59606d:0xf4,_0x1816db:0xf1,_0x1d0a32:0x34e};function _0xa13554(_0x1c0926,_0x548f4d,_0x2e42c5,_0x128176){return _0x22e785(_0x1c0926-_0x7e7a3e._0x59606d,_0x548f4d-_0x7e7a3e._0x1816db,_0x128176- -_0x7e7a3e._0x1d0a32,_0x2e42c5);}return{...structuredClone(_0x4f5d58),'type':_0xa13554(0x50,_0x4458dc._0x534f73,_0x4458dc._0x205cb9,0x97),'id':_0x200424,'name':_0x325539};}function cloneToolResultChunkForPublication(_0x380b8c){return structuredClone(_0x380b8c);}function cloneToolResultForPublication(_0x2b1b1e,_0xee39f5,_0xd18aa6){const _0x5d4d2f={_0x57ada8:0xf1},{chunks:_0x129a96,..._0xd1ed46}=_0x2b1b1e;function _0x423d73(_0x2a0c5e,_0x4a5437,_0x5d261c,_0x429efd){return _0x22e785(_0x2a0c5e-0x77,_0x4a5437-0x1a5,_0x5d261c- -_0x5d4d2f._0x57ada8,_0x429efd);}return{...structuredClone(_0xd1ed46),'callId':_0xee39f5,'toolName':_0xd18aa6,'chunks':_0x129a96[_0x423d73(0x251,0x31f,0x2c7,0x322)](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x43b9f6){const _0x121712={_0x5ef490:0x184,_0x467033:0x1c8,_0x114489:0x3b6,_0x199540:0x342,_0x23284:0x152,_0x43becd:0x17e,_0x2afad6:0x71},_0x3a7875={_0x3b126e:0x9c,_0x158812:0x13b},_0x90ded3={_0x14903e:0x112};function _0x3b3568(_0x50cf77,_0xa540ab,_0x24a947,_0x242a3c){return _0x22e785(_0x50cf77-0xea,_0xa540ab-_0x90ded3._0x14903e,_0x242a3c- -0x89,_0xa540ab);}function _0x4105de(_0x37820d,_0x13719e,_0x461e9e,_0x2a3eb1){return _0x22e785(_0x37820d-_0x3a7875._0x3b126e,_0x13719e-_0x3a7875._0x158812,_0x13719e- -0x4c5,_0x461e9e);}if(typeof _0x43b9f6!==_0x4105de(-0x1a7,-_0x121712._0x5ef490,-_0x121712._0x467033,-0x14f)||_0x43b9f6===null)return![];return _0x43b9f6[_0x3b3568(0x2f0,_0x121712._0x114489,0x3c8,_0x121712._0x199540)]===_0x3b3568(0x3ae,0x367,0x301,0x360)||_0x43b9f6[_0x4105de(-0x110,-0xfa,-_0x121712._0x23284,-_0x121712._0x43becd)]===_0x4105de(-0x104,-0xe4,-_0x121712._0x2afad6,-0xc7);}function _0x58fa56(_0x36b7e6,_0x7b4a34,_0x1fb664,_0x264fc0){const _0x104185={_0x28d423:0x27c};return _0x37f7(_0x7b4a34-_0x104185._0x28d423,_0x264fc0);}function normalizeExecutionError(_0x174b56){const _0x21b606={_0x1bd7a1:0x311,_0x27890e:0x2cb,_0x33373a:0x258,_0x5e774a:0x270,_0x263897:0xc5,_0x4e8d75:0xe7,_0x2a4e17:0xae,_0x51f841:0x32a,_0x2f08d2:0x32d,_0x4924f5:0x1a2,_0x526ccf:0x1f0,_0x59d923:0x1d2,_0x4a4f6f:0x13a},_0x5d024b={_0x1586f5:0x6c,_0x2b7cea:0x140},_0x11e3bd={_0x48d01d:0x232,_0x4c7764:0xb8};if(_0x174b56 instanceof ToolExecutionError)return{'errorMessage':_0x174b56['message'],'structured':{'error':_0x174b56[_0xd41b3a(0x355,0x2ba,_0x21b606._0x1bd7a1,_0x21b606._0x27890e)],..._0x174b56['structured']}};if(_0x174b56 instanceof Error)return{'errorMessage':_0x174b56[_0xd41b3a(0x2d6,0x257,0x309,0x2cb)],'structured':{'error':_0x174b56[_0xd41b3a(0x284,_0x21b606._0x33373a,_0x21b606._0x5e774a,0x2cb)]}};function _0x450ed9(_0x59c82e,_0x1d8994,_0x599a07,_0x334d32){return _0x58fa56(_0x59c82e-0x17c,_0x334d32- -_0x11e3bd._0x48d01d,_0x599a07-_0x11e3bd._0x4c7764,_0x59c82e);}if(typeof _0x174b56===_0x450ed9(_0x21b606._0x263897,_0x21b606._0x4e8d75,_0x21b606._0x2a4e17,0x121)&&_0x174b56!==null&&_0xd41b3a(_0x21b606._0x51f841,0x2ee,_0x21b606._0x2f08d2,0x2cb)in _0x174b56&&typeof _0x174b56['message']===_0x450ed9(_0x21b606._0x4924f5,_0x21b606._0x526ccf,0x1ab,_0x21b606._0x59d923))return{'errorMessage':_0x174b56['message'],'structured':{'error':_0x174b56[_0x450ed9(0x85,0x136,_0x21b606._0x4a4f6f,0x105)]}};function _0xd41b3a(_0x3ab69c,_0x5a408,_0x3cb0b3,_0x1526c8){return _0x58fa56(_0x3ab69c-0xd,_0x1526c8- -_0x5d024b._0x1586f5,_0x3cb0b3-_0x5d024b._0x2b7cea,_0x3ab69c);}const _0x57b225=String(_0x174b56);return{'errorMessage':_0x57b225,'structured':{'error':_0x57b225}};}function cloneToolEventForPublication(_0x54ef61){const _0x5b93eb={_0x459d7f:0x2f6,_0x5da8d6:0x200,_0x5591f0:0x27c,_0x9ddad1:0x1f4,_0x4f13ef:0x2d5,_0x451fe6:0x308,_0xaf1685:0x2ac,_0x53b05e:0x26f,_0x15eb60:0x213,_0xf39eaa:0x210,_0x2d20bb:0x22e,_0x2ed7a3:0x241,_0x7ff282:0x235,_0x3e59ff:0x22f,_0x57cf1e:0x231,_0x41e4e7:0x2c4,_0x122059:0x2ac,_0x2592b2:0x31e,_0x4ed63c:0x331,_0x196606:0x1e5,_0x17619e:0x29f,_0x474ce6:0x216,_0xaf23fa:0x2fd,_0x23a358:0x26f,_0x3e99c4:0x2ac,_0x4daa41:0x245,_0x32f033:0x23c,_0x5c606c:0x225,_0x3cc1e5:0x23c,_0x245aa7:0x1ea,_0x533474:0x302,_0x5bea5e:0x2ee},_0x41c9b1={_0x4aa403:0x1cc,_0x20f0cc:0x101},_0x5cc26c={_0x5df807:0x194,_0x3bad17:0x106,_0x1e56dd:0x18d};function _0x4d2b38(_0x41cf0f,_0x2409d6,_0x433b8b,_0x5238f4){return _0x58fa56(_0x41cf0f-_0x5cc26c._0x5df807,_0x5238f4- -_0x5cc26c._0x3bad17,_0x433b8b-_0x5cc26c._0x1e56dd,_0x433b8b);}function _0x299438(_0xd1594a,_0x243893,_0x2ef13b,_0x2abccd){return _0x22e785(_0xd1594a-0x161,_0x243893-_0x41c9b1._0x4aa403,_0xd1594a- -_0x41c9b1._0x20f0cc,_0x243893);}switch(_0x54ef61[_0x299438(0x2bf,0x2eb,_0x5b93eb._0x459d7f,0x27a)]){case _0x299438(_0x5b93eb._0x5da8d6,_0x5b93eb._0x5591f0,_0x5b93eb._0x9ddad1,0x213):case'tool_started':return{..._0x54ef61,'toolCall':cloneToolCallForPublication(_0x54ef61[_0x4d2b38(0x243,_0x5b93eb._0x4f13ef,_0x5b93eb._0x451fe6,_0x5b93eb._0xaf1685)],_0x54ef61['toolCall']['id'],_0x54ef61[_0x4d2b38(0x26c,_0x5b93eb._0x53b05e,0x229,_0x5b93eb._0xaf1685)][_0x4d2b38(0x285,_0x5b93eb._0x15eb60,_0x5b93eb._0xf39eaa,_0x5b93eb._0x2d20bb)])};case _0x4d2b38(0x1e6,_0x5b93eb._0x2ed7a3,0x1f9,_0x5b93eb._0x7ff282):return{..._0x54ef61,'toolCall':cloneToolCallForPublication(_0x54ef61[_0x4d2b38(0x313,0x305,0x222,_0x5b93eb._0xaf1685)],_0x54ef61[_0x4d2b38(0x23f,_0x5b93eb._0x3e59ff,0x239,0x2ac)]['id'],_0x54ef61[_0x4d2b38(_0x5b93eb._0x57cf1e,_0x5b93eb._0x41e4e7,0x2de,_0x5b93eb._0x122059)]['name']),'chunk':cloneToolResultChunkForPublication(_0x54ef61[_0x4d2b38(_0x5b93eb._0x2592b2,_0x5b93eb._0x4ed63c,0x2c1,0x2ec)])};case'tool_completed':case _0x299438(0x238,0x200,0x264,_0x5b93eb._0x196606):return{..._0x54ef61,'toolCall':cloneToolCallForPublication(_0x54ef61[_0x299438(_0x5b93eb._0x17619e,_0x5b93eb._0x474ce6,_0x5b93eb._0xaf23fa,0x260)],_0x54ef61[_0x4d2b38(0x29d,0x2b9,_0x5b93eb._0x23a358,_0x5b93eb._0x3e99c4)]['id'],_0x54ef61[_0x4d2b38(_0x5b93eb._0x4daa41,0x335,0x2f4,_0x5b93eb._0x122059)][_0x299438(0x221,0x24b,0x1f5,0x199)]),'result':cloneToolResultForPublication(_0x54ef61[_0x299438(_0x5b93eb._0x32f033,_0x5b93eb._0x5c606c,0x1f3,0x232)],_0x54ef61['toolCall']['id'],_0x54ef61[_0x4d2b38(0x319,0x256,0x2ec,_0x5b93eb._0x3e99c4)]['name'])};case'tool_result':return{..._0x54ef61,'result':cloneToolResultForPublication(_0x54ef61['result'],_0x54ef61['result']['callId'],_0x54ef61[_0x299438(_0x5b93eb._0x3cc1e5,0x24e,_0x5b93eb._0x245aa7,0x2bf)][_0x4d2b38(_0x5b93eb._0x533474,_0x5b93eb._0x5bea5e,0x324,_0x5b93eb._0x5bea5e)])};default:return _0x54ef61;}}async function emitEvent(_0x1e7efb,_0x19c5ca,_0x5869cf){try{await _0x1e7efb?.(cloneToolEventForPublication(_0x19c5ca),_0x5869cf);}catch(_0x22d466){throw new ToolRuntimeInfrastructureError(_0x22d466);}}function actualCancellationHasPrecedence(_0x41e943,_0x9cc2c6){const _0x514759={_0x2e68a0:0x89,_0x558131:0xe0};function _0x57ccfc(_0x5a095d,_0x8f9458,_0xf95cc3,_0x344a79){return _0x22e785(_0x5a095d-_0x514759._0x2e68a0,_0x8f9458-0x56,_0x8f9458- -_0x514759._0x558131,_0x5a095d);}return _0x41e943[_0x57ccfc(0x2d7,0x2ce,0x333,0x312)]['aborted']&&!_0x9cc2c6;}function selectActualCancellationReason(_0x2d82c2,_0x519e6f){const _0x24a093={_0x2d289c:0x7e,_0x1fb7a3:0x124,_0x43282e:0x120,_0x46ea5d:0xa2},_0x4b4971={_0x17e57d:0xdb,_0x446f5a:0x4bb},_0x2e2a04={_0x3dbde2:0x1cb,_0x24ff1d:0x103};function _0x3c6f90(_0x1fe0c2,_0x29a33a,_0x8b5de0,_0xd90676){return _0x58fa56(_0x1fe0c2-_0x2e2a04._0x3dbde2,_0x8b5de0- -0x614,_0x8b5de0-_0x2e2a04._0x24ff1d,_0x1fe0c2);}function _0x56756e(_0x19e16b,_0x5e6fb5,_0x259cba,_0x37062f){return _0x58fa56(_0x19e16b-_0x4b4971._0x17e57d,_0x37062f- -_0x4b4971._0x446f5a,_0x259cba-0x15e,_0x259cba);}return _0x2d82c2 instanceof ToolExecutionError&&_0x2d82c2[_0x56756e(-_0x24a093._0x2d289c,-0x10b,-_0x24a093._0x1fb7a3,-0xd5)][_0x56756e(-_0x24a093._0x43282e,-_0x24a093._0x46ea5d,-0x141,-0xd6)]===!![]?_0x2d82c2:_0x519e6f;}function selectedTerminalStateHasPrecedence(_0x5f2e2d,_0x18d5fb,_0x3615ed,_0xccd1fe){const _0x413edc={_0x4d07ce:0x278,_0x45014b:0x2c3,_0x491ae1:0x25a,_0x49597e:0x252,_0x481f96:0x20e,_0x3b0852:0x192,_0x4db4bf:0x11a,_0x46327d:0x261,_0x2da023:0x28c,_0x52bdcd:0x267,_0x3e9a8c:0x27b,_0x161cb8:0x233,_0x5c1eaa:0x271,_0x62172c:0x1ef,_0x170ca9:0x1cd,_0x5dc573:0x192,_0x6b590:0x2ed,_0x3eb4da:0x271,_0x2972f5:0x2ce,_0x432d6c:0x1a6,_0x5db00e:0x165,_0x26ce22:0x173,_0x1c8536:0x2bd,_0x3ff0bc:0x232,_0xf248f9:0x252,_0x58dc4d:0x24d,_0x82af7:0x1e0,_0x2059da:0x251},_0x3b3f63={_0x339e22:0x159,_0x20a7ef:0xa9,_0x241a9b:0x547},_0x1ec6ab={_0x352b4a:0x162,_0x2707fb:0x148,_0x5ec7ad:0x566};if(_0x18d5fb[_0x1db7da(-0x2cc,-_0x413edc._0x4d07ce,-0x25b,-_0x413edc._0x45014b)]!==_0x21b88f(-0x20b,-0x1e0,-_0x413edc._0x491ae1,-_0x413edc._0x49597e))return![];if(!_0xccd1fe)return _0x18d5fb[_0x1db7da(-0x1cb,-_0x413edc._0x481f96,-_0x413edc._0x3b0852,-_0x413edc._0x4db4bf)]['aborted']===!![]&&actualCancellationHasPrecedence(_0x3615ed,_0xccd1fe);if(_0x5f2e2d!==_0x1db7da(-_0x413edc._0x46327d,-_0x413edc._0x2da023,-_0x413edc._0x52bdcd,-_0x413edc._0x3e9a8c))return![];function _0x1db7da(_0x14ff55,_0x5b4d4d,_0x237fcd,_0x3358d9){return _0x22e785(_0x14ff55-_0x1ec6ab._0x352b4a,_0x5b4d4d-_0x1ec6ab._0x2707fb,_0x237fcd- -_0x1ec6ab._0x5ec7ad,_0x3358d9);}function _0x21b88f(_0x156d7b,_0x1b54da,_0x5d1c15,_0x17dcd0){return _0x22e785(_0x156d7b-_0x3b3f63._0x339e22,_0x1b54da-_0x3b3f63._0x20a7ef,_0x17dcd0- -_0x3b3f63._0x241a9b,_0x1b54da);}return _0x18d5fb['structured'][_0x1db7da(-0x212,-_0x413edc._0x161cb8,-_0x413edc._0x5c1eaa,-_0x413edc._0x62172c)]==='program-aborted'||_0x18d5fb[_0x1db7da(-0x139,-_0x413edc._0x170ca9,-_0x413edc._0x5dc573,-0x1dd)][_0x1db7da(-_0x413edc._0x6b590,-0x2d7,-_0x413edc._0x3eb4da,-_0x413edc._0x2972f5)]==='program-timeout'||_0x18d5fb[_0x21b88f(-0x1fc,-_0x413edc._0x432d6c,-_0x413edc._0x5db00e,-_0x413edc._0x26ce22)][_0x21b88f(-_0x413edc._0x1c8536,-_0x413edc._0x3ff0bc,-0x21e,-_0x413edc._0xf248f9)]===_0x1db7da(-_0x413edc._0x58dc4d,-_0x413edc._0x82af7,-_0x413edc._0x2059da,-0x1ee);}async function emitToolCompletedEventWithTerminalPrecedence(_0x573943,_0x28d39c,_0x1eaa94,_0x14dcc6,_0x45e77f,_0x3cd3f2,_0x191749=![]){const _0x3f4b44={_0xd6b0bb:0x1f,_0x1c7fc1:0x4f,_0x10f9e2:0xbb},_0xdbef7={_0x44bcdd:0x8a};function _0x540788(_0x507a54,_0x5c02fc,_0x1701a3,_0x50e7b7){return _0x22e785(_0x507a54-_0xdbef7._0x44bcdd,_0x5c02fc-0x14a,_0x1701a3- -0x34f,_0x5c02fc);}try{await emitEvent(_0x573943,{'type':_0x540788(_0x3f4b44._0xd6b0bb,-0x94,-_0x3f4b44._0x1c7fc1,-_0x3f4b44._0x10f9e2),'toolCall':cloneToolCallForPublication(_0x28d39c,_0x1eaa94,_0x14dcc6),'result':_0x45e77f},_0x3cd3f2);}catch(_0x3e3994){if(!(_0x3e3994 instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x14dcc6,_0x45e77f,_0x3cd3f2,_0x191749))throw _0x3e3994;}}async function awaitWithAbort(_0x55640d,_0x34e3f5){const _0xd76d30={_0x36657c:0x25b,_0x1b32a9:0x214},_0x2e56a6={_0x53de41:0x13a,_0x31d49e:0xa6,_0xdcfd3b:0xe1},_0x59df19={_0x428404:0xb6},_0x2ad60f={_0x424d9b:0x249,_0x2e86d6:0x26d},_0x1064d1={_0x23bf14:0xbd,_0x19602e:0x174};let _0xbb4443=()=>{},_0x4d338a;function _0x593b6f(_0x528f94,_0x312a30,_0x227b79,_0x38a45c){return _0x22e785(_0x528f94-_0x1064d1._0x23bf14,_0x312a30-_0x1064d1._0x19602e,_0x528f94- -0x54a,_0x38a45c);}_0x34e3f5&&(throwIfAborted(_0x34e3f5),_0x4d338a=new Promise((_0x13a74f,_0x32765b)=>{const _0x5978aa=()=>{function _0x5017c8(_0x3dedcd,_0x335e1a,_0x74e49a,_0x5e231c){return _0x37f7(_0x335e1a-0x1cb,_0x3dedcd);}_0x32765b(toAbortError(_0x34e3f5[_0x5017c8(0x2b2,_0x2ad60f._0x424d9b,_0x2ad60f._0x2e86d6,0x297)]));};function _0x326d7c(_0x24b3c5,_0x290026,_0x43dd2c,_0x5d91d4){return _0x37f7(_0x24b3c5- -_0x59df19._0x428404,_0x290026);}_0x34e3f5[_0xb776c8(_0x2e56a6._0x53de41,0x115,_0x2e56a6._0x31d49e,0xbe)](_0xb776c8(0x65,_0x2e56a6._0xdcfd3b,0x7b,0x6e),_0x5978aa,{'once':!![]});function _0xb776c8(_0x13d381,_0x1f5002,_0x4e731f,_0x2156bd){return _0x37f7(_0x1f5002-0x53,_0x2156bd);}_0xbb4443=()=>_0x34e3f5[_0x326d7c(0x93,0x7e,0x3d,0x116)](_0x326d7c(-0x28,-0x5f,-0x11,-0x25),_0x5978aa);}));const _0x161ab7=Promise['resolve']()[_0x593b6f(-_0xd76d30._0x36657c,-_0xd76d30._0x1b32a9,-0x1e6,-0x249)](()=>{return throwIfAborted(_0x34e3f5),_0x55640d();});try{return await(_0x4d338a?Promise['race']([_0x161ab7,_0x4d338a]):_0x161ab7);}finally{_0xbb4443();}}function createNestedCallAdmissionGate(){const _0x437ccb={_0x1612fa:0x5c,_0x481e53:0x15},_0x491656={_0x379171:0x51,_0x298106:0xd4,_0x1f9373:0x67,_0x2fcec2:0x7b,_0x18d73e:0x41,_0x4ad695:0x58,_0x20c23e:0xd9,_0x2a4669:0xda},_0x1cfbc9={_0x50550b:0xb3,_0x347844:0x42},_0x590419={_0x3b26f9:0x178,_0x31074e:0x48},_0x1921a8={_0x20f101:0xb6};let _0x13d2d0=0x1,_0x5968fc=![],_0x26967a,_0x50f66c=Promise[_0x2291ce(0x2c,_0x437ccb._0x1612fa,-_0x437ccb._0x481e53,-0x4a)]();const _0x3ce0ad=new Set();function _0x2291ce(_0x3771fa,_0x25824f,_0x53f72d,_0x3bc4d7){return _0x22e785(_0x3771fa-0x4e,_0x25824f-_0x1921a8._0x20f101,_0x53f72d- -0x33b,_0x3bc4d7);}const _0x40290c=_0x49426b=>{!_0x5968fc&&(_0x5968fc=!![],_0x26967a=_0x49426b);for(const _0x5cb63b of[..._0x3ce0ad]){_0x5cb63b();}};return{'register'(_0xb804e0){const _0x2311ec={_0x209515:0x371};function _0x320ced(_0x51cf64,_0x1783fb,_0x112b84,_0x4678e3){return _0x2291ce(_0x51cf64-_0x590419._0x3b26f9,_0x1783fb-0x79,_0x4678e3-_0x590419._0x31074e,_0x1783fb);}function _0x3c369c(_0x100e68,_0x312acb,_0x4a345f,_0x16bcb9){return _0x2291ce(_0x100e68-0xb8,_0x312acb-_0x1cfbc9._0x50550b,_0x100e68-_0x1cfbc9._0x347844,_0x312acb);}if(_0x5968fc)throw _0x26967a;if(_0xb804e0!==_0x13d2d0){const _0x4f721c=new Error(_0x3c369c(_0x491656._0x379171,-0x30,_0x491656._0x298106,_0x491656._0x1f9373)+_0xb804e0+_0x320ced(0x6e,-0x44,_0x491656._0x2fcec2,_0x491656._0x18d73e)+_0x13d2d0);_0x40290c(_0x4f721c);throw _0x4f721c;}_0x13d2d0+=0x1;const _0x1a007a=_0x50f66c;let _0x2852f6;_0x50f66c=new Promise(_0x6f8ef=>{_0x2852f6=_0x6f8ef;});const _0x29fc0e=()=>{if(_0x2852f6===void 0x0)return;function _0x2a893b(_0x1b066b,_0x4f7a5d,_0x29b10c,_0x681943){return _0x320ced(_0x1b066b-0x1b,_0x1b066b,_0x29b10c-0xd9,_0x681943-_0x2311ec._0x209515);}const _0xe07dd4=_0x2852f6;_0x2852f6=void 0x0,_0x3ce0ad[_0x2a893b(0x412,0x3c8,0x396,0x41f)](_0x29fc0e),_0xe07dd4();};return _0x3ce0ad[_0x3c369c(_0x491656._0x4ad695,_0x491656._0x20c23e,_0x491656._0x2a4669,0x67)](_0x29fc0e),{async 'admit'(_0xe0fe06,_0x4c41ff){try{await awaitWithAbort(()=>_0x1a007a,_0x4c41ff);if(_0x5968fc)throw _0x26967a;await _0xe0fe06();if(_0x5968fc)throw _0x26967a;}catch(_0x3e4ba2){_0x40290c(_0x3e4ba2);throw _0x3e4ba2;}finally{_0x29fc0e();}},'fail'(_0x4383e4){_0x40290c(_0x4383e4),_0x29fc0e();}};},'fail':_0x40290c};}async function awaitRequiredPersistence(_0x1434e9,_0x12f916,_0x484309){const _0x4ea19f={_0x25b695:0x16b,_0x1d5dd8:0x15a,_0x170dd6:0x1dc};await awaitWithAbort(()=>{function _0x263c58(_0x2a3e50,_0x5a392d,_0x39a571,_0x1b761b){return _0x37f7(_0x1b761b-0x120,_0x39a571);}const _0x3bc9cc=Promise[_0x263c58(_0x4ea19f._0x25b695,0x20b,_0x4ea19f._0x1d5dd8,_0x4ea19f._0x170dd6)]()['then'](_0x1434e9);return _0x484309(_0x3bc9cc),_0x3bc9cc;},_0x12f916);}function _0x37f7(_0x39e8ae,_0x366993){_0x39e8ae=_0x39e8ae-0x7a;const _0x22cdba=_0x22cd();let _0x37f7de=_0x22cdba[_0x39e8ae];if(_0x37f7['yeajIM']===undefined){var _0x7fc888=function(_0x2bd3cd){const _0x4ab9b2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c29b0='',_0x4247ed='';for(let _0xb21b39=0x0,_0x35972,_0x59a37c,_0xe04848=0x0;_0x59a37c=_0x2bd3cd['charAt'](_0xe04848++);~_0x59a37c&&(_0x35972=_0xb21b39%0x4?_0x35972*0x40+_0x59a37c:_0x59a37c,_0xb21b39++%0x4)?_0x5c29b0+=String['fromCharCode'](0xff&_0x35972>>(-0x2*_0xb21b39&0x6)):0x0){_0x59a37c=_0x4ab9b2['indexOf'](_0x59a37c);}for(let _0x484311=0x0,_0x14cdd2=_0x5c29b0['length'];_0x484311<_0x14cdd2;_0x484311++){_0x4247ed+='%'+('00'+_0x5c29b0['charCodeAt'](_0x484311)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4247ed);};_0x37f7['YDYJpR']=_0x7fc888,_0x37f7['ASyeNI']={},_0x37f7['yeajIM']=!![];}const _0x3d367c=_0x22cdba[0x0],_0x76d0be=_0x39e8ae+_0x3d367c,_0x23b23e=_0x37f7['ASyeNI'][_0x76d0be];return!_0x23b23e?(_0x37f7de=_0x37f7['YDYJpR'](_0x37f7de),_0x37f7['ASyeNI'][_0x76d0be]=_0x37f7de):_0x37f7de=_0x23b23e,_0x37f7de;}async function awaitUncancellableAfterAdmission(_0x13f355,_0x256e83){const _0x28ea0d={_0xac5a26:0x3d1,_0x25b1dc:0x453,_0x440ea8:0x446,_0x3157b6:0x3b4,_0x3bc40a:0x3d3,_0x152287:0x48b,_0x267f7a:0x42c},_0x274109={_0x2dd345:0x6f,_0x4f7dee:0x93,_0x55b3c0:0x2f},_0x4eac38={_0x22a520:0xcb};function _0x41956d(_0x16456b,_0x8e5603,_0x18a5e5,_0x385066){return _0x58fa56(_0x16456b-_0x4eac38._0x22a520,_0x385066- -0x172,_0x18a5e5-0xe8,_0x16456b);}function _0x4d91a9(_0x4871e7,_0x253464,_0x2f7238,_0x4eaf6c){return _0x58fa56(_0x4871e7-_0x274109._0x2dd345,_0x4871e7-_0x274109._0x4f7dee,_0x2f7238-_0x274109._0x55b3c0,_0x253464);}throwIfAborted(_0x256e83);const _0x56715b=()=>{};_0x256e83[_0x4d91a9(_0x28ea0d._0xac5a26,0x391,_0x28ea0d._0x25b1dc,_0x28ea0d._0x440ea8)](_0x4d91a9(0x39d,_0x28ea0d._0x3157b6,_0x28ea0d._0x3bc40a,0x406),_0x56715b,{'once':!![]});try{return throwIfAborted(_0x256e83),await _0x13f355();}finally{_0x256e83[_0x4d91a9(0x458,_0x28ea0d._0x152287,0x3fa,_0x28ea0d._0x267f7a)]('abort',_0x56715b);}}async function resolveDispatchDecision(_0x5e5afa,_0x38102b,_0x2a6eb8){if(!_0x5e5afa)return{'action':'run'};const _0x33d3d8=await awaitWithAbort(()=>_0x5e5afa(_0x38102b,_0x2a6eb8),_0x2a6eb8['signal']);return isDispatchDecision(_0x33d3d8)?_0x33d3d8:{'action':'run'};}async function prepareNestedToolCall(_0x11ebaf,_0xcc452a,_0x12878c,_0x2e5998){const _0x3125d9={_0x561e3c:0x46},_0x4b22b5={_0x55426b:0xb1,_0xe97ecb:0x11b};if(!_0x11ebaf)return _0xcc452a;const _0x439862=await awaitWithAbort(()=>_0x11ebaf[_0x354e98(0x3a9,0x362,0x39a,0x374)](_0x2438ea(-0x1ff,-0x2ba,-0x269,-0x29a),_0xcc452a,_0x12878c),_0x2e5998);throwIfAborted(_0x2e5998),await awaitWithAbort(()=>_0x11ebaf['runObservers']('beforeToolExecution',_0x439862,_0x12878c),_0x2e5998);function _0x354e98(_0x36d0cb,_0x4eac0a,_0x34d1b3,_0x238d18){return _0x58fa56(_0x36d0cb-_0x4b22b5._0x55426b,_0x36d0cb-0x93,_0x34d1b3-_0x4b22b5._0xe97ecb,_0x4eac0a);}function _0x2438ea(_0x31a506,_0x21d0a2,_0x167957,_0x3e11a6){return _0x58fa56(_0x31a506-_0x3125d9._0x561e3c,_0x167957- -0x649,_0x167957-0x53,_0x31a506);}return _0x439862;}async function transformNestedToolResult(_0x513243,_0x43f4f7,_0x3852e5,_0x1521cd){const _0x17b002={_0x5501d6:0x10f};if(!_0x513243)return _0x43f4f7;function _0x573b85(_0x538c22,_0x345efc,_0xab9276,_0x587223){return _0x58fa56(_0x538c22-_0x17b002._0x5501d6,_0xab9276- -0x61d,_0xab9276-0x7b,_0x587223);}const _0x54e16d=await awaitWithAbort(()=>_0x513243[_0x573b85(-0x370,-0x35b,-0x307,-0x31f)](_0x573b85(-0x19f,-0x1d0,-0x221,-0x20f),_0x43f4f7,_0x3852e5),_0x1521cd);throwIfAborted(_0x1521cd);function _0x5afff6(_0xb45eb8,_0x4af135,_0x37d6c5,_0x32ea33){return _0x58fa56(_0xb45eb8-0x170,_0x4af135- -0x28,_0x37d6c5-0x1d7,_0x32ea33);}return await awaitWithAbort(()=>_0x513243[_0x5afff6(0x2e5,0x2fc,0x320,0x368)](_0x573b85(-0x1ae,-0x26e,-0x221,-0x1fe),_0x54e16d,_0x3852e5),_0x1521cd),_0x54e16d;}function snapshotNestedToolRequest(_0x173e4b){const _0x2ab69b={_0x4a6208:0x425,_0x4d54b7:0x3fc,_0x4314ea:0x3de,_0xb56077:0x28e,_0x5b0ec2:0x25c,_0xf251b:0x252,_0x3d314d:0x2cc,_0x4a432c:0x237,_0x2daeed:0x226,_0x3baeaa:0x3ed,_0x56d2b6:0x36a,_0x121074:0x476,_0x235236:0x20e,_0x1fefeb:0x1e2,_0x346019:0x210,_0x2e35e6:0x298,_0x508ea8:0x1c9,_0x5be77d:0x44a,_0x569dd9:0x472,_0xd0c9a7:0x399},_0x55130e={_0x1c8b5f:0x188,_0x100a5f:0x124,_0xa3b1c3:0x36},_0x4c3ab8={_0x477cbf:0x83},_0x3facf1=_0x173e4b[_0x35bc14(0x39c,_0x2ab69b._0x4a6208,0x3e6,0x311)],_0x1559d0=_0x173e4b[_0x35bc14(0x425,_0x2ab69b._0x4d54b7,_0x2ab69b._0x4314ea,0x404)];function _0x35bc14(_0x524ddd,_0x2dea39,_0x59781b,_0x3182c2){return _0x22e785(_0x524ddd-0x1b2,_0x2dea39-0x158,_0x524ddd-_0x4c3ab8._0x477cbf,_0x2dea39);}const _0x36bf3c=_0x173e4b[_0x3a4c9a(_0x2ab69b._0xb56077,_0x2ab69b._0x5b0ec2,_0x2ab69b._0xf251b,_0x2ab69b._0x3d314d)]['id'],_0x530ecb=structuredClone(_0x173e4b[_0x3a4c9a(_0x2ab69b._0xb56077,0x22f,_0x2ab69b._0x4a432c,_0x2ab69b._0x2daeed)]),_0x1ea66b=_0x173e4b[_0x35bc14(_0x2ab69b._0x3baeaa,_0x2ab69b._0x56d2b6,_0x2ab69b._0x121074,0x451)],_0xcf3e8b=_0x173e4b[_0x3a4c9a(_0x2ab69b._0x235236,0x1f9,_0x2ab69b._0xb56077,_0x2ab69b._0x1fefeb)];function _0x3a4c9a(_0x201732,_0x2d844e,_0x4829f3,_0x2cf986){return _0x58fa56(_0x201732-_0x55130e._0x1c8b5f,_0x201732- -_0x55130e._0x100a5f,_0x4829f3-_0x55130e._0xa3b1c3,_0x2cf986);}if(_0x530ecb[_0x3a4c9a(_0x2ab69b._0x346019,0x28d,0x268,0x20f)]!==_0x3facf1||_0x1559d0!==void 0x0&&_0x1559d0[_0x3a4c9a(0x210,0x28f,_0x2ab69b._0x2e35e6,_0x2ab69b._0x508ea8)]!==_0x3facf1)throw new Error(_0x35bc14(0x3f3,_0x2ab69b._0x5be77d,_0x2ab69b._0x569dd9,_0x2ab69b._0xd0c9a7));return{'requestedName':_0x3facf1,'tool':_0x1559d0,'toolCall':_0x530ecb,'toolCallId':_0x36bf3c,'sequence':_0x1ea66b,'trace':_0xcf3e8b};}function createImmutableExecutionScope(_0x539726,_0x39c4b3){const _0x1f9eef={_0x547ef3:0xe2},_0x1e3e0f={_0x2f8383:0x275};function _0x289273(_0x54cac0,_0x57f3a7,_0x296617,_0x2ec14f){return _0x58fa56(_0x54cac0-0x178,_0x54cac0- -_0x1e3e0f._0x2f8383,_0x296617-0x19,_0x2ec14f);}return Object['freeze']({'agentId':_0x539726,'toolCallPath':Object[_0x289273(0x86,0x6f,0x1a,_0x1f9eef._0x547ef3)]([..._0x39c4b3])});}async function executeNestedToolRequest(_0x572ac9,_0x1f0431,_0x3e1cdb,_0x2246c5,_0x1ccd4f,_0x229bf2,_0x5861a8,_0x572865){const _0x237350={_0x572476:0x42a,_0x49dde7:0x3d1,_0x1a4ac3:0x328,_0x682ed6:0x2b5,_0x204265:0x48f,_0x19e54c:0x3ef,_0x246152:0x41f,_0x370685:0x353,_0x4181d7:0x347,_0x293a7e:0x3b2,_0x55acf7:0x3d0,_0x4ea774:0x2f1,_0x349636:0x2c7,_0x18a04a:0x356,_0x535b11:0x38b,_0xd4b1c4:0x355,_0x21012b:0x2e4,_0x997d73:0x2f0,_0x13387b:0x339,_0x5c0fb3:0x3d6,_0x21f5c4:0x38b,_0x5c7fed:0x321,_0x22c7c8:0x366,_0xd07f36:0x49f,_0x4d8cfb:0x29a,_0x2cb3f1:0x29f,_0x4f2d49:0x2cc,_0x4d1eec:0x2a0,_0x47331c:0x34d,_0x4f3f9f:0x2f3,_0x3347a9:0x34b,_0x4619dc:0x379,_0xcdc74a:0x35d,_0x1abcae:0x304,_0x532149:0x3a2,_0x2732af:0x3c4},_0x1c47f8={_0x24a5b9:0x17f,_0x57b03d:0x103,_0x3c594e:0x236,_0x1c2446:0x17e,_0x336e82:0x226,_0x2e81ed:0x20c},_0x185f93={_0x428d6d:0x125,_0x35a3cc:0x115},_0x3e8c57={_0x40ba7f:0x64},_0x1563bb={_0x5d93c4:0x18b,_0x4bfbdb:0x4d},_0x37b7e7={_0x1b8826:0x6a,_0x599ad5:0x134,_0x3d5314:0x12f},_0x2be55d={_0x9df774:0xb8,_0x253bfb:0x4d},_0x36f84d={'state':_0x1f0431[_0x41186b(0x3d4,_0x237350._0x572476,0x3cd,_0x237350._0x49dde7)],'delivery':_0x4a2dc2(_0x237350._0x1a4ac3,0x351,_0x237350._0x682ed6,0x2f5),'executionScope':_0x3e1cdb};function _0x4a2dc2(_0xd0f417,_0x177a0f,_0x1b3f16,_0x4073f5){return _0x22e785(_0xd0f417-0xf,_0x177a0f-_0x2be55d._0x9df774,_0xd0f417- -_0x2be55d._0x253bfb,_0x1b3f16);}let _0x593517;try{_0x593517=await prepareNestedToolCall(_0x229bf2[_0x41186b(_0x237350._0x204265,_0x237350._0x19e54c,_0x237350._0x246152,0x47e)],_0x572ac9[_0x4a2dc2(_0x237350._0x370685,_0x237350._0x4181d7,_0x237350._0x293a7e,_0x237350._0x55acf7)],_0x36f84d,_0x2246c5);if(_0x593517['id']!==_0x572ac9[_0x4a2dc2(_0x237350._0x4ea774,0x320,0x32c,_0x237350._0x349636)]||_0x593517[_0x4a2dc2(0x2d5,0x312,0x28a,_0x237350._0x18a04a)]!==_0x572ac9[_0x41186b(0x3c4,0x31e,0x366,_0x237350._0x535b11)])throw new Error('Nested\x20beforeToolExecution\x20extensions\x20must\x20preserve\x20the\x20call\x20ID\x20and\x20requested\x20name');}catch(_0x44abc8){_0x1ccd4f['fail'](_0x44abc8);throw _0x44abc8;}const _0x4de3de={..._0x1f0431,'signal':_0x2246c5,'executionScope':_0x3e1cdb,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0x18ff10=async(_0x12956b,_0x329177)=>{const _0xe234ee={_0x406865:0x16d,_0x3da804:0xe3},_0x4119e0={_0x5b3642:0xc5};function _0x48277b(_0x351e26,_0x12d479,_0x69c003,_0xf56ec6){return _0x41186b(_0x351e26-_0x4119e0._0x5b3642,_0x12d479-0x35,_0x69c003- -0x2f1,_0x12d479);}function _0x72348b(_0x2293a5,_0xa81786,_0x3652df,_0x1daf0d){return _0x41186b(_0x2293a5-_0xe234ee._0x406865,_0xa81786-_0xe234ee._0x3da804,_0x2293a5- -0x427,_0xa81786);}if(_0x2246c5[_0x72348b(-0x7,-_0x37b7e7._0x1b8826,-0x7d,-0x48)])return;try{await awaitWithAbort(()=>_0x5861a8?.(_0x12956b,_0x329177),_0x2246c5);}catch(_0x18a9b8){if(!isAbortError(_0x18a9b8)||!_0x2246c5[_0x48277b(0xe4,_0x37b7e7._0x599ad5,_0x37b7e7._0x3d5314,0x15d)])throw _0x18a9b8;}};function _0x41186b(_0x112e29,_0x5913a3,_0x38e0a0,_0x4577c6){return _0x22e785(_0x112e29-_0x1563bb._0x5d93c4,_0x5913a3-0xad,_0x38e0a0-_0x1563bb._0x4bfbdb,_0x4577c6);}await _0x1ccd4f['admit'](async()=>{throwIfAborted(_0x2246c5);function _0x16e88f(_0x1020a7,_0x128920,_0x2170af,_0x5b99f4){return _0x4a2dc2(_0x2170af- -0x1d0,_0x128920-0xed,_0x128920,_0x5b99f4-_0x3e8c57._0x40ba7f);}if(_0x572ac9[_0x16e88f(_0x1c47f8._0x24a5b9,0xc8,_0x1c47f8._0x57b03d,0x12b)]){const _0x4622ae=_0x572ac9[_0x7f84c7(0x12e,_0x1c47f8._0x3c594e,0x22a,0x1ae)];await awaitRequiredPersistence(()=>_0x4622ae['recordToolCall'](_0x572ac9[_0x7f84c7(0x1d2,0x17e,0x270,0x1f8)],cloneToolCallForPublication(_0x593517,_0x572ac9['toolCallId'],_0x572ac9['requestedName'])),_0x2246c5,_0x572865);}await _0x18ff10({'type':_0x7f84c7(0x163,0x1cc,_0x1c47f8._0x1c2446,0x18f),'toolCall':cloneToolCallForPublication(_0x593517,_0x572ac9[_0x7f84c7(0x16a,0x1dc,_0x1c47f8._0x336e82,0x1cc)],_0x572ac9[_0x7f84c7(0x134,0x13f,_0x1c47f8._0x2e81ed,0x1a7)])},_0x4de3de);function _0x7f84c7(_0x5cc987,_0x5135a1,_0xdeaeb7,_0x3a9c3a){return _0x4a2dc2(_0x3a9c3a- -_0x185f93._0x428d6d,_0x5135a1-_0x185f93._0x35a3cc,_0x5cc987,_0x3a9c3a-0x1bb);}throwIfAborted(_0x2246c5);},_0x2246c5);const _0x443741=await executeCapturedToolCall(_0x572ac9[_0x4a2dc2(_0x237350._0xd4b1c4,0x3a2,_0x237350._0x21012b,_0x237350._0x997d73)],_0x593517,_0x572ac9[_0x41186b(_0x237350._0x13387b,_0x237350._0x5c0fb3,_0x237350._0x21f5c4,_0x237350._0x5c7fed)],_0x572ac9[_0x41186b(0x35b,0x3f0,_0x237350._0x22c7c8,0x342)],_0x4de3de,_0x229bf2,_0x18ff10);throwIfAborted(_0x2246c5);const _0x2726ee=await transformNestedToolResult(_0x229bf2[_0x41186b(0x3f5,_0x237350._0xd07f36,0x41f,0x4a2)],_0x443741,_0x36f84d,_0x2246c5),_0xf31e4b=cloneToolResultForPublication(_0x2726ee,_0x572ac9[_0x4a2dc2(0x2f1,_0x237350._0x4d8cfb,_0x237350._0x2cb3f1,0x363)],_0x572ac9[_0x4a2dc2(_0x237350._0x4f2d49,_0x237350._0x4d1eec,_0x237350._0x47331c,_0x237350._0x4f3f9f)]);throwIfAborted(_0x2246c5);if(_0x572ac9['trace']){const _0x437403=_0x572ac9['trace'];await awaitRequiredPersistence(()=>_0x437403['recordToolResult'](_0x572ac9[_0x41186b(0x3fa,0x334,0x3b7,0x417)],cloneToolResultForPublication(_0xf31e4b,_0x572ac9[_0x4a2dc2(0x2f1,0x2e7,0x291,0x296)],_0x572ac9[_0x41186b(0x35d,0x2fb,0x366,0x32b)])),_0x2246c5,_0x572865);}return await _0x18ff10({'type':_0x41186b(0x3b4,0x36a,_0x237350._0x3347a9,0x38f),'result':cloneToolResultForPublication(_0xf31e4b,_0x572ac9[_0x4a2dc2(0x2f1,_0x237350._0x4619dc,_0x237350._0xcdc74a,_0x237350._0x1abcae)],_0x572ac9[_0x41186b(_0x237350._0x532149,0x31b,0x366,_0x237350._0x2732af)])},_0x4de3de),throwIfAborted(_0x2246c5),_0xf31e4b;}function createBoundToolExecutionControl(_0x1a943d,_0x357226,_0x2ce2ba,_0x55fb1f){const _0xe52c2={_0x52b1c9:0xe5,_0x3c22b2:0x77,_0xed7f16:0xd,_0x140cde:0x6a,_0x20479c:0xdb,_0x337790:0x97,_0x1235fc:0xff,_0x499412:0x9a,_0x4101c8:0xba,_0x1ebc4b:0x104},_0x143cca={_0x42b798:0xae,_0x1c6d03:0x7},_0x5dcc0b={_0x3038ba:0x13f},_0x22e508={_0x2d3c31:0x135},_0x16acc2={_0x214112:0x22,_0x86469e:0x317},_0x46d6b8={_0x50459d:0x175,_0x272c48:0x158,_0x1bf561:0x195,_0x2d5002:0x1b0,_0x27914f:0x121,_0x4d79f1:0x153,_0x4e9fd7:0x12f,_0x5bd6df:0xfe,_0x37b7e9:0x126,_0x16ac58:0x156,_0x3cde34:0x16f,_0x2d1fac:0x14a,_0x4025e0:0x80,_0x5e176b:0x11d,_0x3aee16:0x5b},_0xb57177={_0x19da70:0xe,_0x4b5fd3:0x4a,_0x199559:0x60,_0x3f8938:0x166,_0x440000:0x144,_0x3d3b03:0x161},_0x385bcf={_0x524294:0x1d2,_0x27fb43:0x1bd,_0x41cc30:0x234},_0x46252f={_0x55b8e2:0xdc},_0x22185c={_0x2e6b04:0x191,_0x17f7a8:0x142,_0x2a5cb9:0x15d},_0x4a0d68={_0x1b6270:0x111},_0x44fdcf={_0x2e9714:0x55,_0x531987:0x5b,_0x4a6a71:0xb9,_0x487891:0x17e,_0x20e7ff:0x27,_0x55b3c7:0x6d,_0x518009:0x4f,_0x405897:0x44},_0x2d5c42={_0x4e6a97:0x27,_0x2fe5c8:0xa9},_0x37f33c=createImmutableExecutionScope(_0x357226[_0x503472(-0xb7,-_0xe52c2._0x52b1c9,-_0xe52c2._0x3c22b2,-0x42)]['agentId'],_0x357226['executionScope'][_0x26eee7(_0xe52c2._0x3c22b2,_0xe52c2._0xed7f16,_0xe52c2._0x140cde,_0xe52c2._0x20479c)]),_0xa4abb3=new Set(),_0x2484b7=new Set(),_0x36ce12=new AbortController(),_0x4c9d5b=createNestedCallAdmissionGate();let _0x1e5b2b=![],_0x11e650=![],_0x528623,_0x4f86e6=![],_0x555f69=()=>{};const _0xcedac0=_0x9d680f=>{const _0x212a33={_0x73ba11:0x10b,_0x1b5de3:0x1ef};if(_0x1e5b2b)return;function _0x4691b1(_0x20d951,_0x481795,_0x44fa4c,_0x12bff4){return _0x503472(_0x12bff4- -_0x2d5c42._0x4e6a97,_0x20d951,_0x44fa4c-_0x2d5c42._0x2fe5c8,_0x12bff4-0x191);}_0x1e5b2b=!![];const _0x5c02d6=toAbortError(_0x9d680f??PARENT_TOOL_SETTLED_MESSAGE);function _0x2412b2(_0x487a18,_0x290266,_0x4713c1,_0xc28e08){return _0x503472(_0xc28e08-_0x212a33._0x73ba11,_0x487a18,_0x4713c1-_0x212a33._0x1b5de3,_0xc28e08-0x1ca);}_0x4c9d5b[_0x2412b2(0xc1,_0x44fdcf._0x2e9714,_0x44fdcf._0x531987,_0x44fdcf._0x4a6a71)](_0x5c02d6),_0x36ce12[_0x4691b1(-0x194,-0x16b,-_0x44fdcf._0x487891,-0x176)](_0x5c02d6);for(const _0x266e0e of _0xa4abb3){_0x266e0e[_0x2412b2(-_0x44fdcf._0x20e7ff,-_0x44fdcf._0x55b3c7,-_0x44fdcf._0x518009,-_0x44fdcf._0x405897)](_0x5c02d6);}_0x555f69();};_0x555f69=addAbortListener(_0x357226[_0x26eee7(_0xe52c2._0x337790,_0xe52c2._0x1235fc,_0xe52c2._0x499412,0xf9)],()=>{function _0x36e859(_0x389344,_0x3ba7bb,_0x27ea48,_0x27a09a){return _0x503472(_0x27ea48-0x21a,_0x27a09a,_0x27ea48-0x1bc,_0x27a09a-_0x4a0d68._0x1b6270);}_0xcedac0(_0x357226[_0x36e859(_0x22185c._0x2e6b04,_0x22185c._0x17f7a8,0x181,_0x22185c._0x2a5cb9)]['reason']);});const _0x347d67=_0x2cfc33=>{const _0x5711a0={_0x14dbf0:0x582,_0x1cb962:0x577,_0x547600:0x500},_0x740681={_0x20af8d:0x17c};function _0x3e0aa2(_0x45d4a9,_0x15a9bb,_0x1cd39a,_0x141893){return _0x26eee7(_0x1cd39a-_0x740681._0x20af8d,_0x15a9bb-0x13e,_0x1cd39a-0x1ab,_0x141893);}_0x2484b7[_0x5c23d3(-0x16e,-0x1f9,-_0x385bcf._0x524294,-_0x385bcf._0x27fb43)](_0x2cfc33);function _0x5c23d3(_0x56e251,_0x57c254,_0x5a9106,_0x52e655){return _0x503472(_0x5a9106- -_0x46252f._0x55b8e2,_0x57c254,_0x5a9106-0x23,_0x52e655-0x13f);}const _0x3d1273=()=>{const _0xd54899={_0x555aa9:0x69f,_0x4140ed:0x6f};function _0x1418e4(_0x56814a,_0x43a602,_0x245e90,_0x7ad1c1){return _0x5c23d3(_0x56814a-0x2d,_0x245e90,_0x7ad1c1-_0xd54899._0x555aa9,_0x7ad1c1-_0xd54899._0x4140ed);}_0x2484b7[_0x1418e4(_0x5711a0._0x14dbf0,_0x5711a0._0x1cb962,_0x5711a0._0x547600,0x51d)](_0x2cfc33);},_0x102d93=_0x320181=>{!_0x11e650&&(_0x11e650=!![],_0x528623=_0x320181),_0x3d1273();};void _0x2cfc33[_0x5c23d3(-0x1ed,-0x1d7,-_0x385bcf._0x41cc30,-0x269)](_0x3d1273,_0x102d93);},_0x3532b9=async()=>{const _0x142c95={_0x1e306c:0x11c};function _0x19031b(_0xddf5ba,_0x581b17,_0x4f176f,_0x5beeb3){return _0x26eee7(_0x5beeb3- -0x147,_0x581b17-0x1f4,_0x4f176f-0x90,_0x4f176f);}while(_0x2484b7[_0xe9870f(_0xb57177._0x19da70,-_0xb57177._0x4b5fd3,-_0xb57177._0x199559,-0x2d)]>0x0){await Promise[_0x19031b(-0x176,-_0xb57177._0x3f8938,-_0xb57177._0x440000,-_0xb57177._0x3d3b03)]([..._0x2484b7]);}function _0xe9870f(_0x555a50,_0x4b43a7,_0x3d3ef7,_0x7e5a5a){return _0x26eee7(_0x3d3ef7- -0x124,_0x4b43a7-_0x142c95._0x1e306c,_0x3d3ef7-0x98,_0x4b43a7);}if(_0x11e650)throw _0x528623;},_0x519517=async _0x4278a2=>{const _0x40266c={_0x38d05f:0x1c7,_0x2ef3ac:0x1b9},_0x5d33de={_0x1a0b97:0x50},_0x1bb9a0={_0x1a9d10:0x22a,_0x23464e:0x106,_0x197c93:0xc2};if(_0x1e5b2b)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0x4cf8da;function _0x18c30a(_0x451041,_0x3a2cc7,_0x1ef445,_0x4a2df7){return _0x503472(_0x4a2df7-_0x1bb9a0._0x1a9d10,_0x3a2cc7,_0x1ef445-_0x1bb9a0._0x23464e,_0x4a2df7-_0x1bb9a0._0x197c93);}try{_0x4cf8da=snapshotNestedToolRequest(_0x4278a2);}catch(_0x107479){_0x4c9d5b[_0x18c30a(0x1ee,0x15e,_0x46d6b8._0x50459d,0x1d8)](_0x107479);throw _0x107479;}const _0x4e8ac7=_0x4c9d5b[_0x777ed6(-0x1b1,-_0x46d6b8._0x272c48,-_0x46d6b8._0x1bf561,-_0x46d6b8._0x2d5002)](_0x4cf8da[_0x777ed6(-_0x46d6b8._0x27914f,-0x110,-_0x46d6b8._0x4d79f1,-0x126)]),_0x39d279=createImmutableExecutionScope(_0x37f33c['agentId'],[..._0x37f33c[_0x777ed6(-0x19f,-0xf9,-_0x46d6b8._0x4e9fd7,-_0x46d6b8._0x5bd6df)],_0x1a943d]),_0x5e9bc3=new AbortController();_0xa4abb3[_0x18c30a(0x153,_0x46d6b8._0x37b7e9,_0x46d6b8._0x16ac58,0x134)](_0x5e9bc3);function _0x777ed6(_0x5efd06,_0x335408,_0x21bc13,_0x5a6c3c){return _0x503472(_0x21bc13- -0x76,_0x5a6c3c,_0x21bc13-_0x5d33de._0x1a0b97,_0x5a6c3c-0xa5);}_0x1e5b2b&&_0x5e9bc3['abort'](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x19078c=executeNestedToolRequest(_0x4cf8da,_0x357226,_0x39d279,_0x5e9bc3[_0x777ed6(-_0x46d6b8._0x3cde34,-_0x46d6b8._0x272c48,-0x10f,-_0x46d6b8._0x2d1fac)],_0x4e8ac7,_0x2ce2ba,_0x55fb1f,_0x347d67),_0x260d0a=()=>{const _0x16a058={_0x2a834a:0x31c};function _0x5b6726(_0x1d1515,_0x1cf210,_0x443fa4,_0x205f4f){return _0x777ed6(_0x1d1515-0x5a,_0x1cf210-0xdd,_0x205f4f-_0x16a058._0x2a834a,_0x1cf210);}_0xa4abb3[_0x5b6726(0x1f2,_0x40266c._0x38d05f,_0x40266c._0x2ef3ac,0x200)](_0x5e9bc3);};return void _0x19078c[_0x18c30a(_0x46d6b8._0x4025e0,_0x46d6b8._0x5e176b,_0x46d6b8._0x3aee16,0xd2)](_0x260d0a,_0x260d0a),await awaitWithAbort(()=>_0x19078c,_0x36ce12['signal']);},_0x57405d={'executeNestedTool':_0x519517},_0x877c7=_0x2ce2ba[_0x503472(-0x10b,-0x16e,-0x11a,-_0xe52c2._0x4101c8)];function _0x26eee7(_0x27d07d,_0x16253d,_0x39db18,_0x3076cc){return _0x22e785(_0x27d07d-_0x16acc2._0x214112,_0x16253d-0x1af,_0x27d07d- -_0x16acc2._0x86469e,_0x3076cc);}function _0x503472(_0x1e26ff,_0x1dd4ca,_0x4c68fa,_0x11c86e){return _0x58fa56(_0x1e26ff-0x73,_0x1e26ff- -0x459,_0x4c68fa-_0x22e508._0x2d3c31,_0x1dd4ca);}_0x877c7&&(_0x57405d['beginProgramTrace']=async()=>{if(_0x1e5b2b)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x344f62(_0x4a37e6,_0x31aed7,_0x23293e,_0x5c89d2){return _0x26eee7(_0x31aed7- -0x112,_0x31aed7-0x1ef,_0x23293e-_0x5dcc0b._0x3038ba,_0x5c89d2);}function _0x2d5af4(_0x3f0a24,_0x3707ec,_0x2f6b3c,_0x2b324e){return _0x503472(_0x3707ec-0x3d8,_0x2b324e,_0x2f6b3c-0xb7,_0x2b324e-0x10f);}return await awaitUncancellableAfterAdmission(()=>_0x877c7({'executionScope':createImmutableExecutionScope(_0x37f33c['agentId'],_0x37f33c[_0x344f62(-0x9d,-0x9b,-0x49,-0xa6)]),'programToolCallId':_0x1a943d}),_0x36ce12[_0x344f62(-_0x143cca._0x42b798,-0x7b,-0x8f,_0x143cca._0x1c6d03)]);});const _0xf2d157=()=>{_0x4f86e6=!![],_0xcedac0();},_0x299afb=()=>_0x4f86e6,_0x480312={'capabilities':_0x57405d,'close':_0xcedac0,'commitTerminalState':_0xf2d157,'drainPersistence':_0x3532b9,'isTerminalStateCommitted':_0x299afb};return boundNestedExecutionControls[_0x26eee7(0x7b,0x39,_0xe52c2._0x1ebc4b,0xff)](_0x519517,_0x480312),_0x480312;}async function executeCapturedToolCall(_0x4cf571,_0x317327,_0x47d197,_0x3ad930,_0x35b49a,_0x5d061d,_0x332ae4=_0x5d061d[_0x58fa56(0x340,0x390,0x3a8,0x32c)]){const _0x1cf6f0={_0x14f7cf:0x28d,_0x4fe761:0x1c7,_0x3d59ef:0x1bf,_0xd52d:0x322,_0x334016:0x2cc},_0x52b33c={_0x3fb424:0x14a};function _0x39deff(_0x1d2dbe,_0x59d656,_0x4d7ea3,_0x53f910){return _0x58fa56(_0x1d2dbe-_0x52b33c._0x3fb424,_0x4d7ea3- -0x201,_0x4d7ea3-0xfd,_0x59d656);}const _0x269ade={..._0x35b49a,'toolCallId':_0x47d197,'permissionClass':resolveToolPermissionClass(_0x4cf571),'executionAuthorization':void 0x0};if(_0x269ade[_0x625bfd(-0x293,-0x23a,-0x21e,-_0x1cf6f0._0x14f7cf)][_0x39deff(0x17c,0x250,0x1e4,_0x1cf6f0._0x4fe761)]){const _0x9fd65=createAbortedToolResult(_0x47d197,_0x3ad930,_0x269ade[_0x39deff(0x215,0x193,_0x1cf6f0._0x3d59ef,0x1f7)][_0x39deff(0x17e,0x80,0xf9,0x17f)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x332ae4,_0x317327,_0x47d197,_0x3ad930,_0x9fd65,_0x269ade),_0x9fd65;}let _0x552c16;function _0x625bfd(_0x1018de,_0x221180,_0x198ff9,_0x377f08){return _0x58fa56(_0x1018de-0x10c,_0x198ff9- -0x5de,_0x198ff9-0x79,_0x221180);}try{_0x552c16=_0x4cf571?.['internalLifecycle']?.['acquire']();}catch(_0x4ad758){const _0x1961e7=isAbortError(_0x4ad758);let _0x3474f2;if(_0x1961e7)_0x3474f2=createAbortedToolResult(_0x47d197,_0x3ad930,_0x4ad758);else{const {errorMessage:_0x39e867,structured:_0x58b0b7}=normalizeExecutionError(_0x4ad758);_0x3474f2=createErrorToolResult(_0x47d197,_0x3ad930,_0x39e867,_0x58b0b7);}return _0x1961e7?await emitToolCompletedEventWithTerminalPrecedence(_0x332ae4,_0x317327,_0x47d197,_0x3ad930,_0x3474f2,_0x269ade):await emitEvent(_0x332ae4,{'type':_0x625bfd(-_0x1cf6f0._0xd52d,-0x351,-_0x1cf6f0._0x334016,-0x2d0),'toolCall':cloneToolCallForPublication(_0x317327,_0x47d197,_0x3ad930),'result':_0x3474f2},_0x269ade),_0x3474f2;}try{return await executeAcquiredToolCall(_0x4cf571,_0x317327,_0x47d197,_0x3ad930,_0x35b49a,_0x5d061d,_0x332ae4);}finally{_0x552c16?.();}}async function executeAcquiredToolCall(_0x6c7767,_0x371840,_0x6547c7,_0x4122a8,_0x4c3219,_0x3e2d80,_0x5da714){const _0x97cb8a={_0x460efb:0x1b6,_0x23c473:0x22d,_0x110e9f:0x1ab,_0x14e035:0x4ce,_0x50b844:0x4ee,_0x271323:0x29b,_0x36f810:0x24a,_0x5ebb2f:0x2c9,_0xdb0f0a:0x1f0,_0x3f1417:0x29d,_0x4f365c:0x4f3,_0x49f168:0x567,_0x3e7d9e:0x4a9,_0x2cf6e0:0x4b0,_0x3675fc:0x51a,_0x458039:0x518,_0x13f3c2:0x578,_0x176df1:0x4c2,_0xe0841:0x4f9,_0x1e2db9:0x52e,_0x5a1c51:0x4de,_0x4480ca:0x545,_0x27d7e1:0x4af,_0x1d4c42:0x51a,_0x33587b:0x54f,_0x151d12:0x54b,_0x16410d:0x233,_0x5efe45:0x1a2,_0x54488c:0x55e,_0x2ddd24:0x51a,_0x5e0537:0x4d7,_0x3651d9:0x52b,_0x29eb3d:0x516,_0x57f0cf:0x4d9,_0xf2e6e2:0x41b,_0x37f92b:0x496,_0x4239ba:0x4e2,_0x5ddacf:0x1d8,_0x2544f9:0x1d5,_0x5cb5ed:0x1fe,_0x2de348:0x449,_0x3575a2:0x496,_0x57d4b7:0x283,_0xa8e951:0x21e,_0x4bf904:0x543,_0x69f7d7:0x501,_0x409a25:0x1b5,_0x219051:0x454,_0x688258:0x1f6,_0x1ea9de:0x192,_0x3686be:0x266,_0x41b926:0x16f,_0xefd8ff:0x232,_0x2335bd:0x29b,_0x550b2e:0x240,_0x53398e:0x267,_0x5ddb40:0x479},_0x668292={_0x5a1870:0x563,_0x5a707d:0x472,_0x412896:0x494},_0x499ff6={_0x5938d0:0x62d,_0x157fbb:0x9a},_0x2f4d78={_0x3e3566:0x7f,_0x5916e0:0x31},_0x18c97e={_0x59df03:0x9e,_0x5a2039:0x1ca,_0x478797:0x16c},_0x4bff70={_0x1d41a9:0xb,_0x197c76:0x117,_0x501753:0x583},_0x5d4738={..._0x4c3219,'toolCallId':_0x6547c7,'permissionClass':resolveToolPermissionClass(_0x6c7767),'executionAuthorization':void 0x0};throwIfAborted(_0x5d4738['signal']);let _0x456125;try{_0x456125=await resolveDispatchDecision(_0x3e2d80[_0x234c55(-_0x97cb8a._0x460efb,-_0x97cb8a._0x23c473,-0x219,-_0x97cb8a._0x110e9f)],_0x371840,_0x5d4738);}catch(_0x28a707){if(isAbortError(_0x28a707)){const _0x2b6155=createAbortedToolResult(_0x6547c7,_0x4122a8,_0x28a707);return await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0x2b6155,_0x5d4738),_0x2b6155;}const {errorMessage:_0x30a021,structured:_0x3c5e37}=normalizeExecutionError(_0x28a707),_0x5a8d0f=createErrorToolResult(_0x6547c7,_0x4122a8,_0x30a021,_0x3c5e37);return await emitEvent(_0x5da714,{'type':_0x234c55(-0x283,-0x2ea,-0x30b,-0x20d),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x5a8d0f},_0x5d4738),_0x5a8d0f;}throwIfAborted(_0x5d4738[_0x5b6030(0x53a,0x51a,_0x97cb8a._0x14e035,0x53c)]);function _0x234c55(_0x56f029,_0x1947b5,_0x196f15,_0x5e712b){return _0x22e785(_0x56f029-_0x4bff70._0x1d41a9,_0x1947b5-_0x4bff70._0x197c76,_0x56f029- -_0x4bff70._0x501753,_0x5e712b);}if(_0x456125['action']===_0x5b6030(0x4fa,0x555,0x52e,_0x97cb8a._0x50b844)){const _0x3f22ef=createRejectedToolResult(_0x6547c7,_0x4122a8,_0x456125[_0x234c55(-_0x97cb8a._0x271323,-0x2a7,-0x214,-0x23f)]);return await emitEvent(_0x5da714,{'type':_0x234c55(-_0x97cb8a._0x36f810,-_0x97cb8a._0x5ebb2f,-_0x97cb8a._0xdb0f0a,-0x219),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x3f22ef},_0x5d4738),_0x3f22ef;}if(!_0x6c7767){const _0x3e4470=createUnknownToolResult(_0x6547c7,_0x4122a8);return await emitEvent(_0x5da714,{'type':_0x234c55(-0x283,-0x2ce,-0x303,-_0x97cb8a._0x3f1417),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x3e4470},_0x5d4738),_0x3e4470;}function _0x5b6030(_0x159a73,_0x53e95a,_0x391bdc,_0x17274d){return _0x22e785(_0x159a73-_0x18c97e._0x59df03,_0x53e95a-_0x18c97e._0x5a2039,_0x53e95a-_0x18c97e._0x478797,_0x17274d);}const _0x351456=createBoundToolExecutionControl(_0x6547c7,_0x5d4738,_0x3e2d80,_0x5da714),_0x1c459b={..._0x5d4738,'executionAuthorization':_0x456125[_0x234c55(-0x18d,-0x1ee,-0x175,-0x103)],..._0x351456[_0x5b6030(0x536,_0x97cb8a._0x4f365c,_0x97cb8a._0x49f168,_0x97cb8a._0x3e7d9e)]};throwIfAborted(_0x1c459b[_0x5b6030(_0x97cb8a._0x2cf6e0,_0x97cb8a._0x3675fc,0x563,0x4a2)]);try{await emitEvent(_0x5da714,{'type':_0x5b6030(0x4fa,0x553,0x5a0,_0x97cb8a._0x458039),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8)},_0x1c459b);}catch(_0x5a4697){const _0x1f664f=_0x351456[_0x5b6030(0x4aa,0x513,_0x97cb8a._0x13f3c2,0x52b)]();if(actualCancellationHasPrecedence(_0x1c459b,_0x1f664f)){const _0x47820c=selectActualCancellationReason(_0x5a4697,_0x1c459b[_0x5b6030(_0x97cb8a._0x176df1,_0x97cb8a._0x3675fc,_0x97cb8a._0xe0841,_0x97cb8a._0x1e2db9)]['reason']),_0x462f08=createAbortedToolResult(_0x6547c7,_0x4122a8,_0x47820c);return _0x351456[_0x5b6030(_0x97cb8a._0x5a1c51,_0x97cb8a._0xe0841,0x561,0x523)](_0x47820c),await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0x462f08,_0x1c459b,_0x1f664f),_0x462f08;}_0x351456[_0x5b6030(_0x97cb8a._0x4480ca,0x4f9,0x4fa,_0x97cb8a._0x4480ca)](_0x5a4697);throw _0x5a4697;}try{throwIfAborted(_0x1c459b[_0x5b6030(_0x97cb8a._0x27d7e1,_0x97cb8a._0x1d4c42,0x564,0x491)]);const _0xecdc06=validateToolInput(_0x371840['input'],_0x6c7767['inputSchema']),_0x1748e0=await _0x6c7767[_0x5b6030(0x561,_0x97cb8a._0x33587b,_0x97cb8a._0x151d12,0x5c4)](_0xecdc06,_0x1c459b),_0x7f427e=[],_0xa933b5=addAbortListener(_0x1c459b[_0x234c55(-0x1d5,-_0x97cb8a._0x16410d,-0x180,-_0x97cb8a._0x5efe45)],()=>{function _0x31d100(_0x11c4c9,_0x349340,_0x256760,_0x59eb8d){return _0x5b6030(_0x11c4c9-_0x2f4d78._0x3e3566,_0x256760- -_0x2f4d78._0x5916e0,_0x256760-0x42,_0x349340);}function _0x55c210(_0x350cb2,_0x45f067,_0x5ceb9c,_0x2d842d){return _0x234c55(_0x2d842d-_0x499ff6._0x5938d0,_0x45f067-_0x499ff6._0x157fbb,_0x5ceb9c-0x5c,_0x45f067);}!_0x351456[_0x31d100(0x4dd,_0x668292._0x5a1870,0x4e2,_0x668292._0x5a707d)]()&&void _0x1748e0['return'](void 0x0)[_0x55c210(0x4ab,0x4c8,_0x668292._0x412896,0x444)](()=>{});});try{throwIfAborted(_0x1c459b[_0x5b6030(_0x97cb8a._0x54488c,_0x97cb8a._0x2ddd24,0x4a3,0x4c3)]);let _0x3c6f4a=await _0x1748e0[_0x5b6030(_0x97cb8a._0x5e0537,_0x97cb8a._0x3651d9,_0x97cb8a._0x29eb3d,_0x97cb8a._0x57f0cf)]();while(!_0x3c6f4a['done']){throwIfAborted(_0x1c459b['signal']);const _0x26939f=normalizeToolOutputValue(_0x3c6f4a[_0x5b6030(_0x97cb8a._0xf2e6e2,_0x97cb8a._0x37f92b,0x429,0x47a)]);_0x7f427e['push'](_0x26939f),await emitEvent(_0x5da714,{'type':_0x5b6030(_0x97cb8a._0x4239ba,0x495,0x494,0x46c),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'chunk':_0x26939f},_0x1c459b),throwIfAborted(_0x1c459b[_0x234c55(-0x1d5,-0x196,-0x24b,-0x22e)]),_0x3c6f4a=await _0x1748e0[_0x234c55(-0x1c4,-_0x97cb8a._0x5ddacf,-_0x97cb8a._0x2544f9,-_0x97cb8a._0x5cb5ed)]();}!_0x351456[_0x234c55(-0x1dc,-0x1de,-0x24a,-0x248)]()&&throwIfAborted(_0x1c459b['signal']);const _0x2d9b4f=_0x3c6f4a['value']===void 0x0?deriveFinalToolOutput(_0x7f427e):normalizeToolOutputValue(_0x3c6f4a[_0x5b6030(_0x97cb8a._0x2de348,_0x97cb8a._0x3575a2,0x4b9,0x438)]),_0x4f3cbc=createSuccessToolResult(_0x6547c7,_0x4122a8,_0x2d9b4f,_0x7f427e);return _0x351456['close'](),await emitEvent(_0x5da714,{'type':_0x234c55(-_0x97cb8a._0x57d4b7,-0x283,-0x23f,-_0x97cb8a._0xa8e951),'toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x4f3cbc},_0x1c459b),_0x4f3cbc;}catch(_0x3b9a54){const _0x5889aa=_0x351456[_0x5b6030(_0x97cb8a._0x4bf904,0x513,_0x97cb8a._0x69f7d7,0x57d)](),_0xaf6896=actualCancellationHasPrecedence(_0x1c459b,_0x5889aa);if(_0xaf6896||isAbortError(_0x3b9a54)){const _0x52c335=_0xaf6896?selectActualCancellationReason(_0x3b9a54,_0x1c459b[_0x234c55(-_0x97cb8a._0x2544f9,-0x1c1,-_0x97cb8a._0x409a25,-0x16e)][_0x5b6030(0x4cc,_0x97cb8a._0x219051,0x45b,0x478)]):_0x3b9a54,_0x43ccbc=createAbortedToolResult(_0x6547c7,_0x4122a8,_0x52c335,_0x7f427e);return _0x351456[_0x234c55(-_0x97cb8a._0x688258,-0x19b,-_0x97cb8a._0x1ea9de,-_0x97cb8a._0x3686be)](_0x52c335),await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0x43ccbc,_0x1c459b,_0x5889aa),_0x43ccbc;}if(_0x3b9a54 instanceof ToolRuntimeInfrastructureError)throw _0x3b9a54;const {errorMessage:_0x3ca6ed,structured:_0x27770f}=normalizeExecutionError(_0x3b9a54),_0xb40e46=createErrorToolResult(_0x6547c7,_0x4122a8,_0x3ca6ed,_0x27770f,_0x7f427e);return _0x351456['close'](_0x3b9a54),await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0xb40e46,_0x1c459b,_0x351456[_0x234c55(-0x1dc,-0x1eb,-_0x97cb8a._0x41b926,-_0x97cb8a._0xefd8ff)]()),_0xb40e46;}finally{_0xa933b5();}}catch(_0x2f3660){const _0x2174e6=_0x351456[_0x234c55(-0x1dc,-0x206,-0x158,-0x1a2)](),_0x129dda=actualCancellationHasPrecedence(_0x1c459b,_0x2174e6);if(_0x129dda||isAbortError(_0x2f3660)){const _0x5c2f13=_0x129dda?selectActualCancellationReason(_0x2f3660,_0x1c459b[_0x234c55(-_0x97cb8a._0x2544f9,-0x17e,-0x169,-0x1f6)][_0x234c55(-_0x97cb8a._0x2335bd,-0x244,-0x2c5,-0x2f1)]):_0x2f3660,_0xd3e06c=createAbortedToolResult(_0x6547c7,_0x4122a8,_0x5c2f13);return _0x351456[_0x234c55(-0x1f6,-_0x97cb8a._0x550b2e,-_0x97cb8a._0x53398e,-0x210)](_0x5c2f13),await emitToolCompletedEventWithTerminalPrecedence(_0x5da714,_0x371840,_0x6547c7,_0x4122a8,_0xd3e06c,_0x1c459b,_0x2174e6),_0xd3e06c;}if(_0x2f3660 instanceof ToolRuntimeInfrastructureError)throw _0x2f3660;const {errorMessage:_0x231831,structured:_0x37edc3}=normalizeExecutionError(_0x2f3660),_0x450917=createErrorToolResult(_0x6547c7,_0x4122a8,_0x231831,_0x37edc3);return _0x351456['close'](_0x2f3660),await emitEvent(_0x5da714,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x371840,_0x6547c7,_0x4122a8),'result':_0x450917},_0x1c459b),_0x450917;}finally{_0x351456[_0x5b6030(_0x97cb8a._0x5ddb40,0x4f9,0x4cd,0x47b)]();}}async function executeRegisteredToolCall(_0x1b7e26,_0x356dc7,_0x1e6a88,_0x2ede41){const _0x480a70={_0x46012d:0x187,_0x2a0fd2:0x16a},_0x3f75b5={_0xe9076b:0xe8},_0x1a1d7e=_0x356dc7['id'],_0x4b8cc5=_0x356dc7[_0x4706d4(-_0x480a70._0x46012d,-0x130,-0x119,-_0x480a70._0x2a0fd2)],_0x32ddf1=_0x1b7e26['get'](_0x4b8cc5);function _0x4706d4(_0x40d6da,_0x30e07b,_0x5572e1,_0x31176e){return _0x22e785(_0x40d6da-_0x3f75b5._0xe9076b,_0x30e07b-0x164,_0x31176e- -0x48c,_0x5572e1);}return await executeCapturedToolCall(_0x32ddf1,_0x356dc7,_0x1a1d7e,_0x4b8cc5,_0x1e6a88,_0x2ede41);}function createInternalToolRuntime(_0x43173a=[],_0xacaf61={}){const _0x516779={_0x536868:0x24f,_0x137068:0x2b5},_0x4b5bd0={_0x55fa52:0x1e1},_0xeeffc4={_0x422ab7:0x327,_0x3a393a:0x299};let _0x328f48=new ToolRegistry(_0x43173a);return{'listToolSchemas'(){function _0x29ca95(_0x6ad01d,_0x10ed1c,_0x5076eb,_0x57d623){return _0x37f7(_0x5076eb-0x1c7,_0x6ad01d);}return _0x328f48[_0x29ca95(_0xeeffc4._0x422ab7,0x37a,0x2f9,_0xeeffc4._0x3a393a)]();},'setTools'(_0x40609a){_0x328f48=new ToolRegistry(_0x40609a);},async 'executeCalls'(_0x4386d0,_0x2f103e){const _0x3bc6e3={_0x5dbfe9:0x53};function _0x41f9e1(_0x34fb59,_0x29be93,_0x219936,_0x51d5e8){return _0x37f7(_0x29be93-0x58,_0x34fb59);}function _0x37c57e(_0xac8e77,_0x138d2f,_0x494a20,_0x1282a7){return _0x37f7(_0x138d2f- -_0x3bc6e3._0x5dbfe9,_0xac8e77);}return await Promise[_0x41f9e1(0x19b,0x129,0x165,0x160)](_0x4386d0[_0x41f9e1(_0x4b5bd0._0x55fa52,0x1a6,0x179,0x22f)](async _0x2fa935=>{return await executeRegisteredToolCall(_0x328f48,_0x2fa935,_0x2f103e,_0xacaf61);}));},async 'execute'(_0x2032b5,_0x4a3d81){const [_0x384498]=await this[_0x4f12cb(-0x331,-_0x516779._0x536868,-_0x516779._0x137068,-0x2c6)]([_0x2032b5],_0x4a3d81);function _0x4f12cb(_0x3388c5,_0x19b477,_0x5d01d4,_0x4c4276){return _0x37f7(_0x5d01d4- -0x3c5,_0x3388c5);}return _0x384498;}};}function getOrderedObserverExtensions(_0x3a5bda,_0x28729f){const _0x5dca9f={_0x1b05c5:0x1b0,_0x5c37bf:0x227,_0x362525:0x54,_0x3f76af:0x27},_0x444ab9={_0x29ad88:0x345,_0x2a0d6b:0x2b4,_0x412942:0x341},_0x317ceb={_0x1483aa:0x1eb},_0x2bcab4={_0xde749a:0xa3};function _0x48c0bf(_0x4752ea,_0x32637f,_0x47ee1c,_0x8f0f68){return _0x22e785(_0x4752ea-_0x2bcab4._0xde749a,_0x32637f-0xee,_0x4752ea- -0x62b,_0x47ee1c);}return _0x3a5bda['filter'](_0x4bed28=>{function _0x50e619(_0xa522e7,_0x3bb027,_0x289452,_0x17e2cc){return _0x37f7(_0xa522e7-_0x317ceb._0x1483aa,_0x17e2cc);}function _0x53ee09(_0x1fc069,_0x1c1753,_0x106820,_0x3a11ad){return _0x37f7(_0x106820- -0x3b2,_0x1c1753);}return _0x4bed28['enabled']!==![]&&_0x4bed28['stage']===_0x28729f&&_0x4bed28[_0x53ee09(-0x31d,-0x2ac,-0x329,-_0x444ab9._0x29ad88)]===_0x50e619(0x330,_0x444ab9._0x2a0d6b,_0x444ab9._0x412942,0x2b4);})[_0x48c0bf(-0x325,-0x2e1,-0x31b,-0x2ad)]((_0x57c9fa,_0x558ec4)=>{const _0x40bb80={_0x29f56f:0x2ec},_0x113e3e={_0x33a2c7:0x19,_0x573104:0x45};function _0x590768(_0x4b93e2,_0x599437,_0x15727a,_0x53f7e1){return _0x48c0bf(_0x53f7e1-0x404,_0x599437-_0x113e3e._0x33a2c7,_0x15727a,_0x53f7e1-_0x113e3e._0x573104);}if(_0x57c9fa[_0x590768(0x217,0x164,0x17d,_0x5dca9f._0x1b05c5)]===!![]&&_0x558ec4['terminal']!==!![])return 0x1;if(_0x57c9fa['terminal']!==!![]&&_0x558ec4[_0x590768(0x192,_0x5dca9f._0x5c37bf,0x149,0x1b0)]===!![])return-0x1;function _0x443220(_0x4714d0,_0x429bb1,_0x2ebb43,_0x3d5328){return _0x48c0bf(_0x429bb1-_0x40bb80._0x29f56f,_0x429bb1-0x152,_0x3d5328,_0x3d5328-0x1cc);}return _0x57c9fa[_0x443220(-_0x5dca9f._0x362525,0xd,0x96,-_0x5dca9f._0x3f76af)]-_0x558ec4['order'];});}function getOrderedTransformerExtensions(_0x443a35,_0x82ed66){const _0xe3f081={_0x2b6a23:0x201,_0x49c4a0:0x25f,_0x45e7ae:0x293,_0x198c1f:0x1e3,_0x541b5a:0x2b0,_0x2ba563:0x2a1,_0x25c9bb:0x33b,_0x458360:0x384,_0x6991b4:0x333,_0x147128:0x2ca,_0x4a76dc:0x38b,_0x9de8af:0x312},_0x5073ab={_0xd7c5bc:0x622},_0x149692={_0x4c198b:0x1a7},_0x1a3541={_0x28ff58:0xb7};function _0x26bff6(_0x111e48,_0x1f8d11,_0x44a534,_0x42eb3c){return _0x58fa56(_0x111e48-_0x1a3541._0x28ff58,_0x44a534- -0x16,_0x44a534-0x131,_0x42eb3c);}function _0x32ddf9(_0x126cd1,_0x1e0e5b,_0x106dde,_0x4e56b0){return _0x58fa56(_0x126cd1-0x169,_0x4e56b0- -_0x149692._0x4c198b,_0x106dde-0x1a1,_0x106dde);}return _0x443a35[_0x26bff6(0x3bb,0x3e8,0x39b,0x357)](_0x246205=>{const _0xd9a4de={_0xf44b98:0xcd,_0x272d57:0x294};function _0x38ffc0(_0x53aa11,_0x116764,_0x1c8e38,_0x4f1f42){return _0x26bff6(_0x53aa11-0x176,_0x116764-0x143,_0x116764- -_0x5073ab._0xd7c5bc,_0x4f1f42);}function _0x473c6f(_0x2f013f,_0x2e7340,_0x3fc384,_0x1e23a3){return _0x26bff6(_0x2f013f-0x135,_0x2e7340-_0xd9a4de._0xf44b98,_0x2f013f- -_0xd9a4de._0x272d57,_0x1e23a3);}return _0x246205[_0x38ffc0(-_0xe3f081._0x2b6a23,-_0xe3f081._0x49c4a0,-_0xe3f081._0x45e7ae,-_0xe3f081._0x198c1f)]!==![]&&_0x246205[_0x38ffc0(-_0xe3f081._0x541b5a,-0x2e4,-_0xe3f081._0x2ba563,-_0xe3f081._0x25c9bb)]===_0x82ed66&&_0x246205[_0x38ffc0(-_0xe3f081._0x458360,-_0xe3f081._0x6991b4,-0x2d6,-_0xe3f081._0x147128)]===_0x38ffc0(-_0xe3f081._0x4a76dc,-_0xe3f081._0x9de8af,-0x385,-0x38f);})[_0x26bff6(0x323,0x289,0x302,0x2b2)]((_0x420042,_0x4f3adc)=>_0x420042[_0x32ddf9(0x1bc,0x21f,0x186,0x1b7)]-_0x4f3adc[_0x26bff6(0x2c8,0x2c6,0x348,0x34e)]);}function createExtensionRegistry(){const _0x12de96={_0x5bb7b2:0x2bc,_0x3c9209:0x2d2},_0xdaf14b={_0x14499e:0x171,_0x2bf6cb:0x1d8,_0xfcd199:0x13e,_0x48b310:0x178,_0x39ad07:0x103,_0x50427c:0x199,_0x469850:0x35e,_0x5290a1:0x304,_0x33d246:0x148,_0x4c2f7b:0xe0,_0x19af41:0x163},_0x414974=[];return{'register'(_0x5a900d){function _0x21f837(_0x5004dd,_0x2f3061,_0x3113,_0x5bd7b8){return _0x37f7(_0x5004dd-0x29e,_0x5bd7b8);}if(_0x5a900d[_0x68272c(-0x187,-_0xdaf14b._0x14499e,-_0xdaf14b._0x2bf6cb,-_0xdaf14b._0xfcd199)]==='observer'&&_0x5a900d['enabled']!==![]&&_0x5a900d['terminal']===!![]){const _0x204480=_0x414974[_0x68272c(-0x96,-0x92,-0xbc,-0xe1)](_0x3a4450=>_0x3a4450[_0x68272c(-0x187,-0x177,-0x100,-0x11f)]===_0x68272c(-0xcb,-0xc9,-0x97,-0x155)&&_0x3a4450['enabled']!==![]&&_0x3a4450[_0x21f837(0x376,0x3a2,0x342,0x33f)]===_0x5a900d[_0x68272c(-0x138,-0x16c,-0x186,-0x122)]&&_0x3a4450[_0x68272c(-0xa3,-0x11f,-0x107,-0x3f)]===!![]);if(_0x204480)throw new Error(_0x68272c(-_0xdaf14b._0x48b310,-_0xdaf14b._0x39ad07,-0x137,-_0xdaf14b._0x50427c)+_0x5a900d['id']+'\x22\x20for\x20'+_0x5a900d[_0x21f837(0x376,_0xdaf14b._0x469850,0x308,_0xdaf14b._0x5290a1)]+_0x68272c(-_0xdaf14b._0x33d246,-_0xdaf14b._0x4c2f7b,-_0xdaf14b._0x19af41,-0xcc)+_0x204480['id']+'\x22\x20is\x20already\x20enabled');}function _0x68272c(_0x499fcb,_0x4c294e,_0x354bf7,_0xdc46e2){return _0x37f7(_0x499fcb- -0x210,_0x4c294e);}_0x414974['push']({..._0x5a900d});},async 'runTransformers'(_0x2a75ed,_0xa8800a,_0x2b9e6b){function _0x536603(_0x61721b,_0x376814,_0x4daf1d,_0x1ba05e){return _0x37f7(_0x61721b-0x145,_0x4daf1d);}let _0xd46eb9=_0xa8800a;for(const _0x21841d of getOrderedTransformerExtensions(_0x414974,_0x2a75ed)){_0xd46eb9=await _0x21841d[_0x536603(_0x12de96._0x5bb7b2,0x313,0x31c,_0x12de96._0x3c9209)](_0xd46eb9,_0x2b9e6b);}return _0xd46eb9;},async 'runObservers'(_0x476a3b,_0x10dc60,_0x44e6ab){for(const _0x1ae2e2 of getOrderedObserverExtensions(_0x414974,_0x476a3b)){await _0x1ae2e2['run'](_0x10dc60,_0x44e6ab);}}};}var MODEL_USAGE_TOTAL_KEYS=[_0x58fa56(0x44d,0x403,0x3c2,0x3a9),_0x22e785(0x395,0x412,0x3ca,0x396),_0x22e785(0x3cc,0x347,0x371,0x39a),'totalReasoningTokens',_0x22e785(0x3fa,0x358,0x3cf,0x3ff),'modelCallCount','totalModelTimeMs','totalCostUsdTicks',_0x22e785(0x2b6,0x2b8,0x2ed,0x28f),_0x58fa56(0x3a1,0x3d8,0x375,0x424),_0x22e785(0x389,0x452,0x3f4,0x42c),'estimatedCostCallCount',_0x22e785(0x2e0,0x2a2,0x310,0x319),_0x58fa56(0x2db,0x34c,0x326,0x391),_0x58fa56(0x3ad,0x340,0x330,0x3b6)],SUBAGENT_REPORT_META_KEYS=[_0x22e785(0x2b4,0x2b6,0x2f1,0x35c),'runId',_0x58fa56(0x333,0x2fe,0x336,0x380),_0x58fa56(0x2f1,0x31d,0x39f,0x383),'turnUsage','cumulativeUsage'],ModelUsageOverflowError=class extends RangeError{[_0x58fa56(0x346,0x334,0x3a4,0x2d2)]='ModelUsageOverflowError';};function hasExactKeys(_0x592cbd,_0x37bc2f){const _0x23cec5={_0x4cf3dc:0x93,_0x16eb71:0xa9,_0x5e99d3:0x4b,_0x2d38db:0x11a,_0x1d4921:0x5f,_0x23f8c5:0xbf},_0x54b323={_0x26cfb0:0xcc,_0x4137:0x336},_0x546a2f={_0x29e107:0xf3,_0x118082:0xf2,_0x1c77cd:0x2af};if(typeof _0x592cbd!==_0x1fc343(_0x23cec5._0x4cf3dc,0xaf,_0x23cec5._0x16eb71,0x92)||_0x592cbd===null||Array[_0x5b1f44(-0x65,_0x23cec5._0x5e99d3,-0x15,-0x98)](_0x592cbd))return![];function _0x1fc343(_0x32fbaa,_0xe6d030,_0x2846be,_0x524a9b){return _0x22e785(_0x32fbaa-_0x546a2f._0x29e107,_0xe6d030-_0x546a2f._0x118082,_0x524a9b- -_0x546a2f._0x1c77cd,_0xe6d030);}function _0x5b1f44(_0x39f0e1,_0x5370d0,_0x18cef1,_0x41c7d4){return _0x22e785(_0x39f0e1-_0x54b323._0x26cfb0,_0x5370d0-0x96,_0x18cef1- -_0x54b323._0x4137,_0x5370d0);}const _0x1f298b=Object['keys'](_0x592cbd);return _0x1f298b['length']===_0x37bc2f[_0x1fc343(0x113,0x131,_0x23cec5._0x2d38db,0xf6)]&&_0x1f298b[_0x5b1f44(-0x15,0xe7,_0x23cec5._0x1d4921,_0x23cec5._0x23f8c5)](_0x219a56=>_0x37bc2f['includes'](_0x219a56));}function isNonNegativeSafeInteger(_0x1d5ab7){const _0x44afd5={_0x34868c:0x201,_0xbd010f:0x25f,_0x39e7cc:0x20b},_0x49fda6={_0x3a44de:0x31,_0x5e37ee:0x4fd};function _0x5f3757(_0xaffae3,_0x2d1ec3,_0x5a2e2c,_0x1c5521){return _0x22e785(_0xaffae3-_0x49fda6._0x3a44de,_0x2d1ec3-0x1dc,_0x1c5521- -_0x49fda6._0x5e37ee,_0x2d1ec3);}return typeof _0x1d5ab7===_0x5f3757(-0x277,-_0x44afd5._0x34868c,-_0x44afd5._0xbd010f,-_0x44afd5._0x39e7cc)&&Number['isSafeInteger'](_0x1d5ab7)&&_0x1d5ab7>=0x0;}function requireModelUsageInteger(_0x47b5b7){if(!isNonNegativeSafeInteger(_0x47b5b7))throw new ModelUsageOverflowError('Model\x20usage\x20total\x20overflow');return _0x47b5b7;}function addModelUsageInteger(_0x465de0,_0x146028){return requireModelUsageInteger(_0x465de0+_0x146028);}function _0x22e785(_0x3fc6f6,_0x22ef07,_0x384caa,_0x40da49){const _0x5cd831={_0xfe1476:0x26a};return _0x37f7(_0x384caa-_0x5cd831._0xfe1476,_0x40da49);}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(_0x17bfe3){const _0x5a479a={_0x4331fd:0x1f2,_0x27da5e:0x2ec,_0xa3b163:0x2c0,_0x56b5d2:0x245,_0x4c711b:0x2b1,_0x12a085:0x2ac,_0x42cac9:0x235,_0x554897:0x2a5,_0x4a2194:0x122,_0x34c91b:0x1a6,_0x559405:0x1bb,_0x100cf6:0x280,_0x3aba79:0x182,_0x29b017:0x1ff,_0x3c1ef0:0x1a1,_0x6fbdeb:0x1b6,_0x103c19:0x1b4,_0x177e15:0x20d,_0x5ba296:0x1b6,_0x77e559:0x1ae,_0x3fbbc8:0x1e6,_0x5262ce:0x209,_0x27dac1:0x1e6,_0x39c6c8:0x1a1,_0x59d68f:0x1fe,_0x17a0d5:0x286,_0x37e47f:0x279,_0x20a87e:0x260,_0xe872ac:0x1d2,_0x43ebc8:0x236},_0x4faf4d={_0x3e614f:0x16c,_0xbc8505:0x67},_0x3b4389={_0x1b665f:0x101,_0x2c7ffc:0x5b4};if(!hasExactKeys(_0x17bfe3,MODEL_USAGE_TOTAL_KEYS))return![];for(const _0x502c20 of MODEL_USAGE_TOTAL_KEYS){if(_0x502c20===_0x58160b(-_0x5a479a._0x4331fd,-0x268,-_0x5a479a._0x27da5e,-_0x5a479a._0xa3b163))continue;if(!isNonNegativeSafeInteger(_0x17bfe3[_0x502c20]))return![];}function _0x58160b(_0x240b5f,_0x316a78,_0x5aa8b0,_0x2660ce){return _0x58fa56(_0x240b5f-_0x3b4389._0x1b665f,_0x316a78- -_0x3b4389._0x2c7ffc,_0x5aa8b0-0xcf,_0x2660ce);}if(typeof _0x17bfe3[_0x249c82(-_0x5a479a._0x56b5d2,-_0x5a479a._0x4c711b,-0x265,-0x236)]!==_0x58160b(-_0x5a479a._0x12a085,-_0x5a479a._0x42cac9,-_0x5a479a._0x554897,-0x202))return![];const _0x497537=_0x17bfe3;function _0x249c82(_0xc0ede3,_0x4eaf6b,_0x52fea5,_0x3ab372){return _0x22e785(_0xc0ede3-_0x4faf4d._0x3e614f,_0x4eaf6b-_0x4faf4d._0xbc8505,_0x3ab372- -0x570,_0x52fea5);}return _0x497537['totalTokens']===_0x497537[_0x249c82(-0x1dc,-_0x5a479a._0x4a2194,-0x22e,-_0x5a479a._0x34c91b)]+_0x497537['totalOutputTokens']&&_0x497537['totalReasoningTokens']<=_0x497537[_0x249c82(-_0x5a479a._0x559405,-_0x5a479a._0x100cf6,-_0x5a479a._0x3aba79,-_0x5a479a._0x29b017)]&&_0x497537[_0x249c82(-0x138,-0x1e2,-0x1d2,-_0x5a479a._0x3c1ef0)]<=_0x497537[_0x249c82(-_0x5a479a._0x6fbdeb,-_0x5a479a._0x103c19,-_0x5a479a._0x177e15,-_0x5a479a._0x103c19)]&&_0x497537[_0x58160b(-_0x5a479a._0x5ba296,-_0x5a479a._0x77e559,-0x1f1,-0x1b3)]<=_0x497537[_0x58160b(-0x17a,-_0x5a479a._0x3fbbc8,-0x239,-0x1dd)]&&_0x497537['estimatedCostCallCount']<=_0x497537[_0x58160b(-_0x5a479a._0x5262ce,-_0x5a479a._0x27dac1,-_0x5a479a._0x39c6c8,-_0x5a479a._0x59d68f)]&&_0x497537[_0x249c82(-0x286,-_0x5a479a._0x17a0d5,-_0x5a479a._0x37e47f,-_0x5a479a._0x20a87e)]<=_0x497537['modelCallCount']&&_0x497537['historicalMetricsComplete']===(_0x497537[_0x249c82(-_0x5a479a._0xe872ac,-0x219,-_0x5a479a._0x43ebc8,-0x242)]===0x0);}function isSubagentReportMeta(_0x1c4b68){const _0x635932={_0x575288:0x19d,_0x333ce5:0x1a4,_0x13db1b:0x3bb,_0x18d26f:0x3d9,_0x5870fc:0x426,_0x344c8b:0x1bb,_0x5ea60d:0x3a2,_0xdbaa8b:0x44f,_0x33be79:0x21e,_0x34de5a:0x1fe,_0x25790e:0x356,_0x5baf59:0x225,_0x21efad:0x238,_0x4b7619:0x208,_0x15a5a6:0x19b,_0x4eefa0:0x380,_0x6a5f1d:0x35b,_0x420e6a:0x388,_0xfbee98:0x442,_0x5cd401:0x38e,_0x3ac5fc:0x419,_0x49fd32:0x3dc,_0xff4b55:0x18c,_0x43af21:0x26f,_0xd6b32:0x170,_0x509df6:0x168},_0x325983={_0x1d16dc:0x22,_0x262696:0x1dc},_0x1c6296={_0x53966f:0xe8,_0x47faf6:0x1a9};function _0xcebcd5(_0x50f906,_0x3ec3cb,_0x4c7fd0,_0x5c003f){return _0x22e785(_0x50f906-_0x1c6296._0x53966f,_0x3ec3cb-0x153,_0x5c003f- -_0x1c6296._0x47faf6,_0x50f906);}if(!hasExactKeys(_0x1c4b68,SUBAGENT_REPORT_META_KEYS))return![];if(typeof _0x1c4b68[_0xcebcd5(_0x635932._0x575288,_0x635932._0x333ce5,0x182,0x148)]!=='string'||_0x1c4b68['agentId'][_0x232b99(_0x635932._0x13db1b,0x36c,0x3f6,_0x635932._0x18d26f)]===0x0)return![];if(typeof _0x1c4b68['runId']!==_0x232b99(0x4a0,0x4ab,0x3fe,_0x635932._0x5870fc)||_0x1c4b68[_0xcebcd5(0x17e,_0x635932._0x344c8b,0x192,0x1ee)][_0x232b99(0x396,_0x635932._0x5ea60d,_0x635932._0xdbaa8b,0x3d9)]===0x0)return![];if(typeof _0x1c4b68['turnId']!==_0xcebcd5(0x25e,_0x635932._0x33be79,_0x635932._0x34de5a,0x249)||_0x1c4b68[_0x232b99(0x363,_0x635932._0x25790e,0x3a3,0x320)]['length']===0x0)return![];function _0x232b99(_0xd8312c,_0x4edaed,_0x13e582,_0x26aeee){return _0x58fa56(_0xd8312c-0xf0,_0x26aeee-_0x325983._0x1d16dc,_0x13e582-_0x325983._0x262696,_0x13e582);}if(_0x1c4b68['status']!==_0xcebcd5(_0x635932._0x5baf59,0x1d6,_0x635932._0x21efad,0x1d3)&&_0x1c4b68['status']!==_0xcebcd5(_0x635932._0x4b7619,0x1d4,0x138,_0x635932._0x15a5a6)&&_0x1c4b68[_0x232b99(0x30e,0x2ff,_0x635932._0x4eefa0,0x33f)]!=='aborted')return![];if(!isModelUsageTotals(_0x1c4b68[_0xcebcd5(0x279,0x219,0x20d,0x1f2)]))return![];if(!isModelUsageTotals(_0x1c4b68[_0x232b99(0x3e6,_0x635932._0x6a5f1d,0x391,_0x635932._0x420e6a)]))return![];return _0x1c4b68[_0x232b99(_0x635932._0xfbee98,_0x635932._0x5cd401,_0x635932._0x3ac5fc,0x3cf)][_0x232b99(_0x635932._0x49fd32,0x3f5,0x391,0x36e)]&&_0x1c4b68[_0xcebcd5(0x20a,_0x635932._0xff4b55,_0x635932._0x43af21,0x1f2)][_0xcebcd5(_0x635932._0xd6b32,_0x635932._0x509df6,0x179,0x185)]===0x0;}function addModelUsageTotals(_0x188a81,_0x41488e){const _0x1b6588={_0x49d959:0x2d6,_0x240209:0x522,_0x596064:0x4aa,_0x19087b:0x523,_0x415a06:0x513,_0x6b0e4b:0x4ba,_0x24901b:0x532,_0x1c82f9:0x4ba,_0x5235f8:0x27b,_0x74d2f:0x21e,_0x22a878:0x4c9,_0x5c6fc9:0x49b,_0x196b68:0x499,_0x280d73:0x567,_0x545f15:0x505,_0x16629e:0x271,_0x236be7:0x20d,_0x46c2c0:0x191,_0x1cadfa:0x4ae,_0x387ac8:0x52b,_0x21c5ff:0x1c7,_0x225f9a:0x539,_0x1eca28:0x4df,_0x1eac1f:0x53d,_0x37e2a8:0x45e,_0x25ff6a:0x459,_0x152f4e:0x259},_0x40e41d={_0x109ea4:0x117,_0x4723a6:0x138};function _0x1bad59(_0x16d68b,_0x43dd38,_0x4fe091,_0x419624){return _0x58fa56(_0x16d68b-_0x40e41d._0x109ea4,_0x43dd38- -_0x40e41d._0x4723a6,_0x4fe091-0x99,_0x4fe091);}function _0x43dfd7(_0x5d7f52,_0x446eb2,_0x3088b8,_0x4168d6){return _0x22e785(_0x5d7f52-0xe4,_0x446eb2-0x146,_0x4168d6-0x149,_0x5d7f52);}return{'totalTokens':addModelUsageInteger(_0x188a81[_0x1bad59(0x327,0x2cb,0x324,0x2e9)],_0x41488e[_0x1bad59(0x324,0x2cb,_0x1b6588._0x49d959,0x257)]),'totalInputTokens':addModelUsageInteger(_0x188a81[_0x43dfd7(0x53a,_0x1b6588._0x240209,0x57f,0x513)],_0x41488e[_0x43dfd7(0x4d6,_0x1b6588._0x596064,_0x1b6588._0x19087b,_0x1b6588._0x415a06)]),'totalOutputTokens':addModelUsageInteger(_0x188a81[_0x43dfd7(0x494,0x542,0x504,_0x1b6588._0x6b0e4b)],_0x41488e[_0x43dfd7(_0x1b6588._0x24901b,0x446,0x490,_0x1b6588._0x1c82f9)]),'totalReasoningTokens':addModelUsageInteger(_0x188a81[_0x1bad59(_0x1b6588._0x5235f8,0x22c,_0x1b6588._0x74d2f,0x21a)],_0x41488e[_0x43dfd7(_0x1b6588._0x22a878,0x4b9,0x506,_0x1b6588._0x5c6fc9)]),'requestCount':addModelUsageInteger(_0x188a81['requestCount'],_0x41488e[_0x43dfd7(0x49b,_0x1b6588._0x196b68,0x48f,0x518)]),'modelCallCount':addModelUsageInteger(_0x188a81['modelCallCount'],_0x41488e[_0x43dfd7(_0x1b6588._0x280d73,0x49d,0x558,_0x1b6588._0x545f15)]),'totalModelTimeMs':addModelUsageInteger(_0x188a81['totalModelTimeMs'],_0x41488e[_0x1bad59(_0x1b6588._0x16629e,_0x1b6588._0x236be7,0x1d1,_0x1b6588._0x46c2c0)]),'totalCostUsdTicks':addModelUsageInteger(_0x188a81[_0x43dfd7(0x57f,_0x1b6588._0x1cadfa,_0x1b6588._0x387ac8,0x531)],_0x41488e['totalCostUsdTicks']),'totalReportedCostUsdTicks':addModelUsageInteger(_0x188a81[_0x1bad59(0x151,_0x1b6588._0x21c5ff,0x152,0x170)],_0x41488e['totalReportedCostUsdTicks']),'totalEstimatedCostUsdTicks':addModelUsageInteger(_0x188a81[_0x1bad59(0x228,0x2a0,0x2ac,0x282)],_0x41488e['totalEstimatedCostUsdTicks']),'reportedCostCallCount':addModelUsageInteger(_0x188a81['reportedCostCallCount'],_0x41488e[_0x43dfd7(_0x1b6588._0x225f9a,_0x1b6588._0x1eca28,0x598,_0x1b6588._0x1eac1f)]),'estimatedCostCallCount':addModelUsageInteger(_0x188a81['estimatedCostCallCount'],_0x41488e['estimatedCostCallCount']),'unpricedModelCallCount':addModelUsageInteger(_0x188a81['unpricedModelCallCount'],_0x41488e[_0x43dfd7(0x4bd,_0x1b6588._0x37e2a8,0x45c,_0x1b6588._0x25ff6a)]),'historicalMetricsComplete':_0x188a81[_0x1bad59(_0x1b6588._0x152f4e,0x214,0x1c1,0x1fe)]&&_0x41488e['historicalMetricsComplete'],'missingHistoricalModelCallCount':addModelUsageInteger(_0x188a81['missingHistoricalModelCallCount'],_0x41488e['missingHistoricalModelCallCount'])};}function modelUsageTotalsEqual(_0x21e46e,_0x412aef){const _0x5e64f3={_0x26b61b:0x278,_0x2e4720:0x2ca},_0x1ea2f2={_0x89ec01:0x25,_0xbe2fdf:0xd};function _0x2bad79(_0x38b696,_0x22202c,_0x25dfce,_0x5ae409){return _0x22e785(_0x38b696-_0x1ea2f2._0x89ec01,_0x22202c-_0x1ea2f2._0xbe2fdf,_0x38b696- -0x60d,_0x25dfce);}return MODEL_USAGE_TOTAL_KEYS[_0x2bad79(-_0x5e64f3._0x26b61b,-0x267,-0x21b,-_0x5e64f3._0x2e4720)](_0x2ba3f9=>_0x21e46e[_0x2ba3f9]===_0x412aef[_0x2ba3f9]);}function modelUsageTotalsFromSnapshot(_0x348986){const _0x3e851e={_0x58fb20:0x38,_0x5116e1:0xb4,_0x1b0f5a:0xdc,_0x339dd3:0xa7,_0x3dfbd3:0x17b,_0x276bcd:0x1bd,_0x3ab076:0x1a6,_0x4e7037:0x4e,_0x289d5e:0x2e,_0x4d0f6c:0x93,_0x7029bb:0x27,_0x129699:0x143,_0x159adc:0x182,_0x3e3c01:0x237,_0x1f1525:0x1af,_0xe3d2d2:0xd,_0x308924:0x1bf,_0x1f5025:0x1db,_0xb066cb:0x173,_0x1b1d87:0x50,_0x3c528f:0x1e7,_0x152ed4:0x1b9,_0x5c8f16:0x1da,_0x53b5a3:0x1fc,_0x3a9b3c:0x254,_0x106620:0xcd,_0x1d473e:0x11b,_0x3769dd:0x57,_0xf4b887:0x3,_0x49f454:0x7f,_0x150826:0x128,_0x307427:0x12d},_0x2c3e20={_0x5d9e93:0x191},_0x5cc4b8={_0x2d7ee9:0xae},_0x5260c9={'totalTokens':_0x348986[_0x5c5110(_0x3e851e._0x58fb20,_0x3e851e._0x5116e1,_0x3e851e._0x1b0f5a,_0x3e851e._0x339dd3)],'totalInputTokens':_0x348986[_0x436258(_0x3e851e._0x3dfbd3,_0x3e851e._0x276bcd,0x18a,_0x3e851e._0x3ab076)],'totalOutputTokens':_0x348986[_0x5c5110(-0x4d,0x34,_0x3e851e._0x4e7037,_0x3e851e._0x289d5e)],'totalReasoningTokens':_0x348986[_0x5c5110(_0x3e851e._0x4d0f6c,0x15,-0xd,-_0x3e851e._0x7029bb)],'requestCount':_0x348986[_0x436258(0x1ed,0x1c2,_0x3e851e._0x129699,_0x3e851e._0x159adc)],'modelCallCount':_0x348986[_0x436258(_0x3e851e._0x3e3c01,_0x3e851e._0x1f1525,0x174,0x1f3)],'totalModelTimeMs':_0x348986[_0x5c5110(_0x3e851e._0xe3d2d2,-0xa,0x65,0x3e)],'totalCostUsdTicks':_0x348986[_0x436258(_0x3e851e._0x308924,_0x3e851e._0x1f5025,0x1b7,_0x3e851e._0xb066cb)],'totalReportedCostUsdTicks':_0x348986[_0x5c5110(-0x99,-_0x3e851e._0x1b1d87,-0x54,-0x56)],'totalEstimatedCostUsdTicks':_0x348986[_0x436258(_0x3e851e._0x3c528f,_0x3e851e._0x152ed4,_0x3e851e._0x5c8f16,0x1c1)],'reportedCostCallCount':_0x348986[_0x436258(_0x3e851e._0x53b5a3,_0x3e851e._0x3c528f,0x26b,_0x3e851e._0x3a9b3c)],'estimatedCostCallCount':_0x348986['estimatedCostCallCount'],'unpricedModelCallCount':_0x348986[_0x436258(0x117,0x103,_0x3e851e._0x106620,_0x3e851e._0x1d473e)],'historicalMetricsComplete':_0x348986[_0x5c5110(_0x3e851e._0x3769dd,-_0x3e851e._0xf4b887,0x4f,-_0x3e851e._0x49f454)],'missingHistoricalModelCallCount':_0x348986['missingHistoricalModelCallCount']};for(const _0x114ae6 of MODEL_USAGE_TOTAL_KEYS){if(_0x114ae6===_0x436258(_0x3e851e._0x150826,_0x3e851e._0x307427,0x1ae,0xdd))continue;requireModelUsageInteger(_0x5260c9[_0x114ae6]);}function _0x5c5110(_0x5388ec,_0x355584,_0x5ba6ff,_0x3910cf){return _0x58fa56(_0x5388ec-_0x5cc4b8._0x2d7ee9,_0x355584- -0x34f,_0x5ba6ff-0x1be,_0x3910cf);}function _0x436258(_0x49eb9e,_0x356a95,_0x5bb60a,_0x332e63){return _0x22e785(_0x49eb9e-_0x2c3e20._0x5d9e93,_0x356a95-0x30,_0x356a95- -0x20d,_0x49eb9e);}return _0x5260c9;}function modelUsageTotalsFromCall(_0x78922d){const _0x37e09b={_0x4b59b1:0x1aa,_0x58ecb8:0x174,_0x3670a4:0x1ad,_0x51cfb6:0x1ad,_0xcdb218:0x1fc,_0x2ce6ef:0x17d,_0x448c34:0xb9,_0x129af9:0x85,_0x1ae8aa:0xf8,_0x44e7d7:0xc4,_0x3180ea:0x125,_0x39ba40:0x1a6,_0x508eb9:0x150,_0x312fc7:0x73,_0x11bfc1:0xd7},_0x45d1b8={_0x35846f:0x14b,_0x15fedf:0x1ee},_0xa8ff26={_0x595c48:0x16f},_0x230c77=_0x78922d[_0x3b8518(0x189,0x152,_0x37e09b._0x4b59b1,0x17c)],_0xd90401=requireModelUsageInteger(_0x230c77[_0x3b8518(0x197,0x1f4,_0x37e09b._0x58ecb8,_0x37e09b._0x3670a4)]),_0x1fa190=requireModelUsageInteger(_0x230c77[_0x2c8057(0x1e0,_0x37e09b._0x51cfb6,0x220,0x21a)]),_0x2a8f32=requireModelUsageInteger(_0x230c77[_0x2c8057(0x157,0x1c5,0x17e,0x196)]??0x0),_0x30242c=requireModelUsageInteger(_0x78922d[_0x2c8057(0x222,_0x37e09b._0xcdb218,0x1c1,_0x37e09b._0x2ce6ef)]);function _0x2c8057(_0x379208,_0x4698a4,_0x152a1e,_0x9c2525){return _0x58fa56(_0x379208-0x115,_0x4698a4- -0x20e,_0x152a1e-_0xa8ff26._0x595c48,_0x152a1e);}const _0x4779e8=addModelUsageInteger(_0xd90401,_0x1fa190),_0x189897=_0x230c77[_0x2c8057(_0x37e09b._0x448c34,0x10e,0xc6,_0x37e09b._0x129af9)]?.['amountUsdTicks'],_0x3f9ddf=_0x230c77[_0x2c8057(0x88,_0x37e09b._0x1ae8aa,_0x37e09b._0x44e7d7,_0x37e09b._0x3180ea)]?.[_0x3b8518(0x201,0x1a1,0x1d1,_0x37e09b._0x39ba40)],_0x570ed3=_0x189897===void 0x0?void 0x0:requireModelUsageInteger(_0x189897),_0x22b96a=_0x3f9ddf===void 0x0?void 0x0:requireModelUsageInteger(_0x3f9ddf),_0x45f4e6=_0x570ed3??_0x22b96a,_0xae420b={...emptyModelUsageTotals(),'totalTokens':_0x4779e8,'totalInputTokens':_0xd90401,'totalOutputTokens':_0x1fa190,'totalReasoningTokens':_0x2a8f32,'requestCount':_0x78922d[_0x3b8518(0x19a,_0x37e09b._0x508eb9,0x1dd,0x1ab)]?0x1:0x0,'modelCallCount':0x1,'totalModelTimeMs':_0x30242c,'totalCostUsdTicks':_0x45f4e6??0x0,'totalReportedCostUsdTicks':_0x570ed3??0x0,'totalEstimatedCostUsdTicks':_0x22b96a??0x0,'reportedCostCallCount':_0x570ed3===void 0x0?0x0:0x1,'estimatedCostCallCount':_0x22b96a===void 0x0?0x0:0x1,'unpricedModelCallCount':_0x570ed3===void 0x0&&_0x22b96a===void 0x0?0x1:0x0};function _0x3b8518(_0x52533e,_0x3ec84f,_0x36ee72,_0x45c12a){return _0x58fa56(_0x52533e-_0x45d1b8._0x35846f,_0x45c12a- -0x229,_0x36ee72-_0x45d1b8._0x15fedf,_0x52533e);}if(!isModelUsageTotals(_0xae420b))throw new ModelUsageOverflowError(_0x3b8518(0x149,0x150,_0x37e09b._0x312fc7,_0x37e09b._0x11bfc1));return _0xae420b;}function modelUsageTotalsFromHistory(_0x43481c,_0x2a6551){const _0x5a161c={_0x790b32:0x316,_0x37b8e9:0x290,_0x58a599:0x2a0},_0x4d5303={_0x1eab8e:0x56},_0x22d5a1={_0x5717b6:0xe4,_0x1baa6f:0x77};function _0x77cf07(_0x24ea9c,_0x4d2c0b,_0x368dda,_0x11d15c){return _0x58fa56(_0x24ea9c-0x12a,_0x368dda- -_0x22d5a1._0x5717b6,_0x368dda-_0x22d5a1._0x1baa6f,_0x24ea9c);}let _0x36b41c=emptyModelUsageTotals();function _0x190144(_0x475e86,_0x4d6224,_0x3b6403,_0x421a3c){return _0x22e785(_0x475e86-0xa6,_0x4d6224-_0x4d5303._0x1eab8e,_0x475e86- -0xe2,_0x421a3c);}for(const _0x561d3a of _0x43481c){_0x36b41c=addModelUsageTotals(_0x36b41c,modelUsageTotalsFromCall({'usage':_0x561d3a['usage'],'modelTimeMs':_0x561d3a[_0x190144(_0x5a161c._0x790b32,_0x5a161c._0x37b8e9,0x2ab,_0x5a161c._0x58a599)],'completesRequest':_0x561d3a[_0x190144(0x2e0,0x368,0x2a5,0x2aa)]}));}const _0x3d8515=requireModelUsageInteger(_0x2a6551);return{..._0x36b41c,'historicalMetricsComplete':_0x3d8515===0x0,'missingHistoricalModelCallCount':_0x3d8515};}function createEmptySnapshot(){return{...emptyModelUsageTotals(),'toolCallCount':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function applyModelCall(_0x17cc11,_0xeb063){const _0x43927d={_0x57c9ae:0x92,_0x1dad28:0x9f,_0x367433:0xfc,_0x70d28:0x142,_0x64437c:0x153,_0x2bdd4c:0x229,_0x1ab329:0x1cb,_0x596746:0xc9,_0x7094f3:0x6b,_0xf5d79c:0x38,_0x283f50:0x0,_0x41d71e:0x66,_0x4e81e9:0xb,_0x1abcca:0x34,_0x45049:0x6b,_0x3027b7:0xcd,_0x16a4e8:0x35,_0x297ef5:0x55,_0x4dacab:0x92,_0x327cd5:0x1d3,_0xfc5b59:0x1b2,_0x54f63f:0x165},_0x310f21={_0x2bbeba:0x1db,_0x2c8dca:0x162,_0x571729:0x3bd},_0x3ad813={_0x1391d5:0x19b,_0x48f228:0x1c8};function _0x89d761(_0x48fd9a,_0x457746,_0x3f9669,_0x302758){return _0x22e785(_0x48fd9a-0x1d5,_0x457746-_0x3ad813._0x1391d5,_0x302758- -_0x3ad813._0x48f228,_0x457746);}const _0x2ffa8e=modelUsageTotalsFromCall(_0xeb063),_0x423781=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x17cc11),_0x2ffa8e),_0x1e595f=_0xeb063[_0x89709e(-_0x43927d._0x57c9ae,0x3e,-0x2a,-_0x43927d._0x1dad28)][_0x89d761(0x19d,_0x43927d._0x367433,0x187,_0x43927d._0x70d28)]?.[_0x89d761(0x174,0x1ac,0x16f,0x1f5)];function _0x89709e(_0x440ebe,_0x5d1c94,_0x3e307a,_0x11daff){return _0x22e785(_0x440ebe-_0x310f21._0x2bbeba,_0x5d1c94-_0x310f21._0x2c8dca,_0x3e307a- -_0x310f21._0x571729,_0x5d1c94);}const _0x4352f4=_0xeb063[_0x89d761(0x19a,_0x43927d._0x64437c,_0x43927d._0x2bdd4c,_0x43927d._0x1ab329)][_0x89709e(-0x116,-0xa6,-_0x43927d._0x596746,-0x80)]?.[_0x89709e(-_0x43927d._0x7094f3,_0x43927d._0xf5d79c,_0x43927d._0x283f50,-_0x43927d._0x41d71e)],{currentReportedCostUsdTicks:_0x35eb5d,currentEstimatedCostUsdTicks:_0x2e8556,..._0x204192}=_0x17cc11;return{..._0x204192,..._0x423781,'currentTokens':_0x2ffa8e[_0x89709e(_0x43927d._0x4e81e9,-0x26,_0x43927d._0x1abcca,0xad)],'currentInputTokens':_0x2ffa8e['totalInputTokens'],'currentOutputTokens':_0x2ffa8e['totalOutputTokens'],'currentReasoningTokens':_0x2ffa8e[_0x89709e(0xb,-0x3f,-_0x43927d._0x45049,-0x95)],'currentModelTimeMs':_0x2ffa8e[_0x89709e(-0xb4,-0x101,-0x8a,-_0x43927d._0x3027b7)],..._0x204192[_0x89709e(_0x43927d._0x16a4e8,-_0x43927d._0x297ef5,-0x29,-_0x43927d._0x4dacab)]&&_0x2ffa8e['totalTokens']>0x0?{'contextWindowUsage':_0x2ffa8e['totalTokens']/_0x204192[_0x89d761(_0x43927d._0x327cd5,_0x43927d._0xfc5b59,_0x43927d._0x54f63f,0x1cc)]}:{},..._0x1e595f!==void 0x0?{'currentReportedCostUsdTicks':_0x1e595f}:{},..._0x4352f4!==void 0x0?{'currentEstimatedCostUsdTicks':_0x4352f4}:{}};}function mergeExternalUsage(_0x415f40,_0xc97037){const _0x72f59c={_0x29521d:0xd7,_0x18a444:0x13c,_0x3a1130:0x10a},_0x248596={_0x428acc:0xc8,_0x41e028:0x431};function _0x37e7b3(_0x9de78a,_0x2e7031,_0x56b1b4,_0x342671){return _0x22e785(_0x9de78a-_0x248596._0x428acc,_0x2e7031-0x1a5,_0x342671- -_0x248596._0x41e028,_0x56b1b4);}if(!isModelUsageTotals(_0xc97037))throw new TypeError(_0x37e7b3(-0x150,-_0x72f59c._0x29521d,-_0x72f59c._0x18a444,-_0x72f59c._0x3a1130));const _0x483f25=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x415f40),_0xc97037);return{..._0x415f40,..._0x483f25};}function createAgentMetrics(_0x121ac7={}){const _0x327960={_0x1483b7:0x1f6},_0x554dc0={_0x2d8a44:0x208,_0x44b077:0x24c,_0x41179c:0x21e},_0x571fca={_0x5c0679:0x1f4,_0x506273:0x189,_0xb443dd:0xf4,_0x1dcd61:0x15f,_0x24d38c:0x131,_0x43d93c:0x17b,_0x23af2c:0x12e,_0x321c84:0x1b6,_0x9a91fb:0x1e5},_0xe359d={_0x5b87c1:0x11d,_0x25079c:0x1fd,_0xb7d295:0x314,_0x1c620f:0x349,_0x509ef1:0x2f2,_0x3d235c:0x265,_0x4e8510:0x2a1,_0xdd23a6:0x1de,_0x1041df:0x18c,_0xaba41e:0x30c,_0x5d713e:0x345,_0x4bfa30:0x349,_0x19bcac:0x2f9,_0x1b3447:0x28a,_0x3432c8:0x2b4,_0x41c92a:0x287,_0xa35513:0x104,_0x5b4382:0x32a,_0x5ddb73:0x34f,_0x267bf0:0x377,_0x3ed763:0x397,_0x125b26:0xb8,_0x2636f3:0x92,_0x119aba:0x127,_0x134d1a:0xa5,_0x5bfa6c:0xec,_0xb67412:0x1a6,_0x197a13:0x17c,_0x41057f:0x1ae,_0x3b3fec:0x187},_0x4b8eb9={_0x15d3f2:0x41};let _0x2bde15=createEmptySnapshot();const _0x5027ec=new Set();let _0x4226d0;const _0x5289df=()=>{const _0x18ecf1={..._0x2bde15};for(const _0x3dc194 of _0x5027ec)_0x3dc194(_0x18ecf1);};return{'getSnapshot'(){return{..._0x2bde15};},'recordEvent'(_0x514513){const _0x15ceef={_0x9cbb5d:0x1ef};function _0x2f994b(_0x5a98d6,_0x38a066,_0xab21cf,_0x19763b){return _0x37f7(_0x38a066-_0x15ceef._0x9cbb5d,_0x5a98d6);}if(_0x514513[_0x2ec468(0x197,_0xe359d._0x5b87c1,0x1dd,_0xe359d._0x25079c)]===_0x2f994b(0x34d,_0xe359d._0xb7d295,_0xe359d._0x1c620f,0x2ef)){_0x4226d0=Date[_0x2f994b(_0xe359d._0x509ef1,0x2e1,_0xe359d._0x3d235c,_0xe359d._0x4e8510)]();const _0x152ab9=_0x121ac7['getContextWindowLimit']?.(_0x514513[_0x2ec468(0x16f,_0xe359d._0xdd23a6,0x1d2,_0xe359d._0x1041df)]);_0x152ab9!==void 0x0&&(_0x2bde15={..._0x2bde15,'contextWindowLimit':_0x152ab9},_0x5289df());return;}function _0x2ec468(_0x41fc83,_0x1af67b,_0x49a28d,_0xe5a154){return _0x37f7(_0x41fc83-_0x4b8eb9._0x15d3f2,_0x1af67b);}if(_0x514513[_0x2f994b(_0xe359d._0xaba41e,_0xe359d._0x5d713e,_0xe359d._0x4bfa30,0x3bd)]===_0x2f994b(_0xe359d._0x19bcac,0x2fc,0x2ea,_0xe359d._0x1b3447)){const _0x3c0101=_0x4226d0===void 0x0?0x0:Date[_0x2f994b(_0xe359d._0x3432c8,0x2e1,0x2da,_0xe359d._0x41c92a)]()-_0x4226d0;_0x4226d0=void 0x0,_0x2bde15=applyModelCall(_0x2bde15,{'usage':_0x514513[_0x2ec468(0x174,_0xe359d._0xa35513,0x1fb,0x197)]['usage'],'modelTimeMs':_0x514513[_0x2f994b(0x397,0x37d,_0xe359d._0x5b4382,_0xe359d._0x5ddb73)]??_0x3c0101}),_0x5289df();return;}if(_0x514513[_0x2f994b(_0xe359d._0x267bf0,0x345,_0xe359d._0x3ed763,0x328)]===_0x2ec468(0xd8,0x8b,_0xe359d._0x125b26,_0xe359d._0x2636f3)){_0x2bde15={..._0x2bde15,'toolCallCount':_0x2bde15[_0x2ec468(_0xe359d._0x119aba,_0xe359d._0x134d1a,_0xe359d._0x5bfa6c,0x122)]+0x1},_0x5289df();return;}_0x514513['type']==='final_message'&&(_0x2bde15={..._0x2bde15,'requestCount':addModelUsageInteger(_0x2bde15[_0x2ec468(_0xe359d._0xb67412,_0xe359d._0x197a13,_0xe359d._0x41057f,_0xe359d._0x3b3fec)],0x1)},_0x5289df());},'recordExternalUsage'(_0x52d437){const _0x33771a=mergeExternalUsage(_0x2bde15,_0x52d437);_0x2bde15=_0x33771a,_0x5289df();},'reset'(){_0x2bde15=createEmptySnapshot(),_0x4226d0=void 0x0,_0x5289df();},'restore'(_0x28d5de){let _0x1a4212=createEmptySnapshot();function _0x5e0215(_0x2d99dc,_0x208898,_0x5c1598,_0x2e29dd){return _0x37f7(_0x2e29dd- -0x1d0,_0x208898);}for(const _0x23bd05 of _0x28d5de['modelCalls']){_0x1a4212=applyModelCall(_0x1a4212,{'usage':_0x23bd05[_0x34d2ef(-_0x571fca._0x5c0679,-0x207,-_0x571fca._0x506273,-0x202)],'modelTimeMs':_0x23bd05[_0x34d2ef(-_0x571fca._0xb443dd,-_0x571fca._0x1dcd61,-0x124,-_0x571fca._0x24d38c)],'completesRequest':_0x23bd05['completesRequest']});}const _0x53c3e2=requireModelUsageInteger(_0x28d5de[_0x5e0215(-0xda,-0x1a8,-_0x571fca._0x43d93c,-_0x571fca._0x23af2c)]);_0x1a4212={..._0x1a4212,'toolCallCount':_0x28d5de['toolCallCount'],'historicalMetricsComplete':_0x53c3e2===0x0,'missingHistoricalModelCallCount':_0x53c3e2};let _0x11bbad=_0x1a4212;function _0x34d2ef(_0x2656b9,_0x2a6d11,_0x1d5a5d,_0x60b31d){return _0x37f7(_0x1d5a5d- -0x2b2,_0x2656b9);}if(_0x28d5de[_0x34d2ef(-_0x571fca._0x321c84,-_0x571fca._0x9a91fb,-0x202,-0x22b)]!==void 0x0)try{_0x11bbad=mergeExternalUsage(_0x1a4212,_0x28d5de['externalUsage']);}catch(_0x5918d7){if(!(_0x5918d7 instanceof ModelUsageOverflowError))throw _0x5918d7;}_0x2bde15=_0x11bbad,_0x4226d0=void 0x0,_0x5289df();},'subscribe'(_0x36e6a7){const _0x3d2b27={_0x509fe4:0xb1};_0x5027ec[_0x2287f4(_0x327960._0x1483b7,0x1eb,0x1b1,0x17e)](_0x36e6a7);function _0x2287f4(_0x474e07,_0x574afa,_0x5de379,_0x19ee19){return _0x37f7(_0x474e07-0x10f,_0x19ee19);}return()=>{function _0x96e677(_0x2ed0b3,_0x5b5875,_0x4612fc,_0x14a95c){return _0x2287f4(_0x2ed0b3- -0x3e,_0x5b5875-0x185,_0x4612fc-_0x3d2b27._0x509fe4,_0x4612fc);}_0x5027ec[_0x96e677(_0x554dc0._0x2d8a44,_0x554dc0._0x44b077,_0x554dc0._0x41179c,0x287)](_0x36e6a7);};}};}function normalizeExecutionScope(_0x5da27d){const _0x94611b={_0x2caed1:0x27e,_0x797ed3:0x2d8,_0x55e1b5:0x223,_0x55ec18:0x3c4},_0x151dbc={_0x377ac9:0x2b},_0x21bb9c={_0x15a8f8:0x60};function _0x30ef0b(_0x14f4e9,_0x17bbee,_0x500bb0,_0x1f4e5a){return _0x58fa56(_0x14f4e9-0x101,_0x1f4e5a- -_0x21bb9c._0x15a8f8,_0x500bb0-0xcd,_0x17bbee);}function _0x2299a4(_0x426a5c,_0x368559,_0x534244,_0x2e475c){return _0x58fa56(_0x426a5c-0x17b,_0x534244- -_0x151dbc._0x377ac9,_0x534244-0x183,_0x368559);}return{'agentId':_0x5da27d?.[_0x2299a4(0x262,_0x94611b._0x2caed1,_0x94611b._0x797ed3,0x28d)]??_0x30ef0b(0x32e,_0x94611b._0x55e1b5,0x2bc,0x2a8),'toolCallPath':[..._0x5da27d?.[_0x2299a4(_0x94611b._0x55ec18,0x345,0x375,0x30f)]??[]]};}function makeExtensionContext(_0x26297a,_0x416738){const _0x3a142f={_0x3d3bca:0xd0,_0x19a254:0x83,_0x41f275:0xf1},_0x2fbc63={_0x572233:0x14b,_0x304021:0xe7,_0x23217f:0x2ec};function _0x403513(_0xa81847,_0xfa207e,_0x3729a5,_0x5e534e){return _0x22e785(_0xa81847-_0x2fbc63._0x572233,_0xfa207e-_0x2fbc63._0x304021,_0x5e534e- -_0x2fbc63._0x23217f,_0xa81847);}return{'state':_0x26297a,'delivery':_0x403513(_0x3a142f._0x3d3bca,_0x3a142f._0x19a254,0x80,_0x3a142f._0x41f275),'executionScope':_0x416738};}async function runStage(_0x1f8b6c,_0x42404c,_0x1cf912,_0x5b8c30){const _0x59692e={_0x4c4599:0x3d3,_0x2f0f20:0x3fe,_0x2c64f5:0x35b},_0x17519a={_0x3208b5:0xaf,_0x3f397d:0x172},_0x1140ad=await _0x1f8b6c['runTransformers'](_0x42404c,_0x1cf912,_0x5b8c30);function _0x23b211(_0x3432fe,_0xb5b33d,_0x3a4fa7,_0x2ce5f1){return _0x58fa56(_0x3432fe-0xf9,_0xb5b33d-_0x17519a._0x3208b5,_0x3a4fa7-_0x17519a._0x3f397d,_0x2ce5f1);}return await _0x1f8b6c[_0x23b211(0x45c,_0x59692e._0x4c4599,_0x59692e._0x2f0f20,_0x59692e._0x2c64f5)](_0x42404c,_0x1140ad,_0x5b8c30),_0x1140ad;}async function emitEvent2(_0x27f3f9,_0x13a5ee,_0x2444b6){await _0x27f3f9?.(_0x13a5ee,_0x2444b6);}function replaceToolUseBlocks(_0x32a129,_0x52da5a){const _0x32e981={_0x398757:0x48e,_0x5826a8:0x557,_0xb9e119:0x4e6},_0x174b4f={_0x3d0350:0x62,_0x366154:0xaa},_0x192f13={_0x270ea8:0x450};function _0x51283a(_0x57369d,_0x512d05,_0x1bb7d7,_0x310f71){return _0x22e785(_0x57369d-0x48,_0x512d05-0x6d,_0x1bb7d7- -_0x192f13._0x270ea8,_0x57369d);}let _0x54bdbd=0x0;return{..._0x32a129,'content':_0x32a129[_0x51283a(-0x109,-0x84,-0x92,-0x88)]['map'](_0x230afd=>{function _0x1190f4(_0x41c624,_0x38e707,_0xce85c1,_0xa96b9d){return _0x51283a(_0x41c624,_0x38e707-0x141,_0xce85c1-0x550,_0xa96b9d-0xd6);}function _0x4ae08e(_0x203134,_0x594819,_0x1af294,_0x36c50d){return _0x51283a(_0x1af294,_0x594819-_0x174b4f._0x3d0350,_0x594819-0x5c2,_0x36c50d-_0x174b4f._0x366154);}if(_0x230afd[_0x1190f4(_0x32e981._0x398757,0x484,0x4c0,0x50e)]!==_0x4ae08e(0x546,_0x32e981._0x5826a8,0x53a,_0x32e981._0xb9e119))return _0x230afd;const _0x39416f=_0x52da5a[_0x54bdbd];return _0x54bdbd+=0x1,structuredClone(_0x39416f);})};}function createAssistantMessageId(_0x32acd4,_0x42920f){const _0x1c2379={_0x3f1a87:0x191};function _0x3d49dc(_0x5ddfff,_0x4fc70f,_0x26a736,_0x3b5380){return _0x22e785(_0x5ddfff-0x16e,_0x4fc70f-0x1b3,_0x4fc70f- -0x4a3,_0x3b5380);}return _0x32acd4+_0x3d49dc(-0x223,-0x1b3,-0x145,-_0x1c2379._0x3f1a87)+_0x42920f;}function createReasoningMessageId(_0x301700){const _0x2d61b3={_0x132fb9:0x3b2,_0x17641c:0x360,_0x184831:0x303};function _0x293508(_0x4a710c,_0x1b8919,_0xc99ecf,_0x26c772){return _0x22e785(_0x4a710c-0x38,_0x1b8919-0x17c,_0x1b8919- -0x44,_0xc99ecf);}return _0x301700+_0x293508(_0x2d61b3._0x132fb9,_0x2d61b3._0x17641c,0x349,_0x2d61b3._0x184831);}function withMessageId(_0x477ce0,_0x3f1a6e){if(_0x477ce0['id']===_0x3f1a6e)return _0x477ce0;return{..._0x477ce0,'id':_0x3f1a6e};}function createAssistantChunkEvent(_0x5e779e,_0x483494){const _0x13938a={_0x24f04c:0x253,_0x26fc02:0x21b,_0x48e810:0x178,_0x36fb96:0x2a9,_0x431e26:0x281,_0x3206e3:0x279,_0x163568:0x1d3,_0xf5438c:0x20d,_0x4b2722:0x16f,_0x20c129:0x1e5,_0x1d81ff:0x207,_0x4f5e1c:0x23c,_0x15b75c:0x245,_0x2679df:0x211,_0x14397d:0x1ee,_0xfa1102:0x1f2,_0x390f78:0x1ca,_0x2802b9:0xed,_0x2753e3:0x178},_0x57554c={_0x48d78c:0x5ed},_0x2ec767={_0x6b69a9:0x194,_0x14a9d5:0x9f};function _0xcd8631(_0x3e687c,_0x5ab440,_0x2aacfd,_0x7e2dc5){return _0x22e785(_0x3e687c-_0x2ec767._0x6b69a9,_0x5ab440-_0x2ec767._0x14a9d5,_0x7e2dc5- -0x1cb,_0x2aacfd);}if(_0x5e779e[_0x3454ca(-0x237,-0x1a8,-_0x13938a._0x24f04c,-_0x13938a._0x26fc02)]!=='content_delta')return void 0x0;if(_0x5e779e[_0xcd8631(0x13a,0x14a,0x1f6,_0x13938a._0x48e810)]===void 0x0)return void 0x0;function _0x3454ca(_0x56ac2b,_0x48a75c,_0x20f98,_0x152ecb){return _0x58fa56(_0x56ac2b-0xb5,_0x152ecb- -_0x57554c._0x48d78c,_0x20f98-0x1d5,_0x48a75c);}return{'type':_0x3454ca(-_0x13938a._0x36fb96,-_0x13938a._0x431e26,-0x228,-_0x13938a._0x3206e3),'index':_0x5e779e[_0xcd8631(_0x13938a._0x163568,_0x13938a._0xf5438c,_0x13938a._0x4b2722,_0x13938a._0x20c129)]??0x0,'messageId':_0x483494,'chunk':{'type':_0xcd8631(_0x13938a._0x1d81ff,_0x13938a._0x4f5e1c,_0x13938a._0x15b75c,_0x13938a._0x2679df),'index':_0x5e779e[_0x3454ca(-_0x13938a._0x14397d,-_0x13938a._0xfa1102,-_0x13938a._0x390f78,-0x22b)]??0x0,'text':_0x5e779e[_0xcd8631(0x179,0x1bb,_0x13938a._0x2802b9,_0x13938a._0x2753e3)]}};}function createToolUseChunkEvent(_0x59302b,_0x2d5b3f){const _0x5a10e5={_0x25703c:0x255,_0x47d0be:0x2ba,_0x3de90c:0x136,_0x58d246:0x1a3,_0x29e487:0x210,_0x395234:0x2ad,_0x3cfa36:0x310,_0x57e356:0x170,_0x40e1fb:0x194,_0x54b984:0x222,_0x39c897:0x240,_0xbcb08f:0x250},_0x4e4d06={_0xa898f9:0x1ed,_0x47f595:0x16b};function _0xf00e64(_0x2481f5,_0x9fdab,_0x16911e,_0x3809e7){return _0x58fa56(_0x2481f5-0x55,_0x3809e7- -0x1a0,_0x16911e-0x3,_0x16911e);}if(_0x59302b['type']!==_0x5d17d6(-0x2f8,-0x2a7,-_0x5a10e5._0x25703c,-_0x5a10e5._0x47d0be))return void 0x0;function _0x5d17d6(_0x127e39,_0x1c37f6,_0xcbdaf9,_0x3d28dc){return _0x58fa56(_0x127e39-_0x4e4d06._0xa898f9,_0x3d28dc- -0x5fd,_0xcbdaf9-_0x4e4d06._0x47f595,_0x1c37f6);}return{'type':_0x5d17d6(-0x329,-0x34f,-0x34e,-0x2e3),'index':_0x59302b['index']??0x0,'messageId':_0x2d5b3f,'chunk':{'type':_0xf00e64(0x21a,0x185,_0x5a10e5._0x3de90c,_0x5a10e5._0x58d246),'id':_0x59302b['id']??'','index':_0x59302b[_0x5d17d6(-0x1ef,-0x25c,-_0x5a10e5._0x29e487,-0x23b)]??0x0,..._0x59302b[_0x5d17d6(-0x2e3,-_0x5a10e5._0x395234,-_0x5a10e5._0x3cfa36,-0x2c9)]!==void 0x0?{'name':_0x59302b[_0xf00e64(_0x5a10e5._0x57e356,0x181,0x12f,_0x5a10e5._0x40e1fb)]}:{},..._0x59302b[_0xf00e64(_0x5a10e5._0x54b984,0x216,_0x5a10e5._0x39c897,_0x5a10e5._0xbcb08f)]!==void 0x0?{'inputDelta':_0x59302b[_0xf00e64(0x1d9,0x2ae,0x286,0x250)]}:{}}};}function createReasoningChunkEvent(_0x28f47a,_0xa307a0){const _0xd7493b={_0x5453ec:0x45a,_0x23dc61:0x52d,_0xc18bae:0x4a9,_0x5acd38:0x3a3,_0x356441:0x3d3,_0x21f397:0x420,_0x16de10:0x238,_0x4fae0e:0x4f2,_0x57288b:0x513,_0x4a8f6f:0x3c9,_0x22e8b8:0x42e,_0x133728:0x3c9,_0x3a0768:0x199,_0x4f7f92:0x150,_0x20af9b:0x137,_0x88908b:0x434,_0x5542bd:0x4b2,_0x146f2a:0x481,_0x34b673:0x409,_0x29adfd:0x3b5,_0x476f2a:0x4a6,_0x4e2e24:0x43c,_0x1d0ea0:0x1e1,_0x20a0e0:0x1cb,_0x23cb09:0x412,_0x4a1e6f:0x3dc,_0xb359d8:0x446,_0x393162:0x37c,_0x36296e:0x1e1,_0x6d0713:0x3ee,_0x1af660:0x3fa,_0x16069b:0x465,_0x2d49ab:0x49a,_0x22bc63:0x459,_0x427dd0:0x40e,_0x3d75b5:0x445,_0x438e88:0x464,_0x2647e0:0x4b3,_0xca6262:0x222,_0xd0243b:0x18b,_0x176c46:0x3b2},_0x2649c5={_0x63512:0x11a,_0x2dbd19:0x1c2,_0x490e19:0xd6},_0x53c15e={_0x1a53b5:0x96,_0x52a143:0x142,_0x4c1b5b:0xe9};function _0x5e22b0(_0x279804,_0x277f74,_0x3740a5,_0x525b1f){return _0x22e785(_0x279804-_0x53c15e._0x1a53b5,_0x277f74-_0x53c15e._0x52a143,_0x525b1f-_0x53c15e._0x4c1b5b,_0x279804);}function _0x25e8d8(_0x3d7acb,_0x5230a2,_0x5ac226,_0x151714){return _0x58fa56(_0x3d7acb-_0x2649c5._0x63512,_0x5ac226- -_0x2649c5._0x2dbd19,_0x5ac226-_0x2649c5._0x490e19,_0x151714);}switch(_0x28f47a[_0x5e22b0(_0xd7493b._0x5453ec,_0xd7493b._0x23dc61,0x4ff,_0xd7493b._0xc18bae)]){case _0x5e22b0(_0xd7493b._0x5acd38,_0xd7493b._0x356441,_0xd7493b._0x21f397,0x42e):return{'type':_0x25e8d8(0x203,0x1ef,0x1bb,_0xd7493b._0x16de10),'index':_0x28f47a[_0x5e22b0(_0xd7493b._0x4fae0e,_0xd7493b._0x57288b,0x430,0x499)],'messageId':_0xa307a0,'chunk':{'type':_0x5e22b0(_0xd7493b._0xc18bae,_0xd7493b._0x4a8f6f,0x4a8,_0xd7493b._0x22e8b8),'index':_0x28f47a[_0x5e22b0(0x499,0x41a,0x41a,0x499)]??0x0,'thinking':_0x28f47a[_0x5e22b0(_0xd7493b._0x133728,0x450,0x40d,0x3d0)]??''},'text':_0x28f47a[_0x25e8d8(_0xd7493b._0x3a0768,_0xd7493b._0x4f7f92,_0xd7493b._0x20af9b,0x1a7)]??''};case'openai_reasoning_delta':return{'type':_0x5e22b0(_0xd7493b._0x88908b,_0xd7493b._0x5542bd,_0xd7493b._0x146f2a,0x454),'index':_0x28f47a[_0x5e22b0(_0xd7493b._0x34b673,0x3ea,_0xd7493b._0x29adfd,0x43c)],'messageId':_0xa307a0,'chunk':{'type':_0x5e22b0(0x3ed,0x429,0x3ec,0x3fa),'contentIndex':_0x28f47a[_0x5e22b0(_0xd7493b._0x476f2a,0x41e,0x4ba,_0xd7493b._0x4e2e24)]??0x0,'delta':_0x28f47a['delta']??'','itemId':_0x28f47a[_0x25e8d8(0x1a2,_0xd7493b._0x1d0ea0,_0xd7493b._0x20a0e0,0x1c5)]??'','outputIndex':_0x28f47a[_0x5e22b0(_0xd7493b._0x23cb09,0x42a,_0xd7493b._0x4a1e6f,_0xd7493b._0xb359d8)]??0x0},'text':_0x28f47a[_0x5e22b0(0x3a1,_0xd7493b._0x393162,0x409,0x3ee)]??''};case _0x25e8d8(0x259,0x25c,_0xd7493b._0x36296e,0x1de):return{'type':_0x5e22b0(_0xd7493b._0x6d0713,_0xd7493b._0x1af660,_0xd7493b._0x16069b,0x454),'index':_0x28f47a[_0x5e22b0(_0xd7493b._0x2d49ab,0x454,0x474,0x431)],'messageId':_0xa307a0,'chunk':{'type':'openai_reasoning_summary_delta','delta':_0x28f47a[_0x5e22b0(_0xd7493b._0x22bc63,_0xd7493b._0x427dd0,0x444,0x3ee)]??'','itemId':_0x28f47a[_0x5e22b0(0x3fd,0x3e7,_0xd7493b._0x3d75b5,_0xd7493b._0x438e88)]??'','outputIndex':_0x28f47a[_0x5e22b0(_0xd7493b._0x2647e0,0x404,0x3f6,0x446)]??0x0,'summaryIndex':_0x28f47a[_0x25e8d8(_0xd7493b._0xca6262,0x20a,0x198,_0xd7493b._0xd0243b)]??0x0},'text':_0x28f47a[_0x5e22b0(_0xd7493b._0x176c46,0x3aa,0x439,0x3ee)]??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x35cc80){return structuredClone(_0x35cc80);}function cloneToolResultForPublication2(_0x25ec12){const _0x2a8858={_0x39f96b:0x139,_0x1bfeac:0x1a2,_0x233f2c:0xd3,_0x2f71e4:0xe6,_0x253bf2:0xd7,_0x3a4f78:0xed,_0x25bebf:0xac,_0x233c7f:0xad,_0x288c08:0x85},_0x29caf3={_0x1b60d0:0x447,_0x59d9e7:0xc8},_0x23ef48={_0x1118ba:0x49};function _0x3e9b56(_0xb55856,_0x200aa1,_0x5be515,_0x426f0e){return _0x22e785(_0xb55856-_0x23ef48._0x1118ba,_0x200aa1-0x42,_0x200aa1- -0x30b,_0x426f0e);}const _0x140b73=_0x25ec12[_0x591582(-_0x2a8858._0x39f96b,-_0x2a8858._0x1bfeac,-_0x2a8858._0x233f2c,-_0x2a8858._0x2f71e4)],_0x590833=_0x25ec12[_0x3e9b56(0xea,_0x2a8858._0x253bf2,0xc7,_0x2a8858._0x3a4f78)];function _0x591582(_0x4f2487,_0x1c25aa,_0x3e3065,_0x21e2c0){return _0x58fa56(_0x4f2487-0x121,_0x4f2487- -_0x29caf3._0x1b60d0,_0x3e3065-_0x29caf3._0x59d9e7,_0x3e3065);}const {chunks:_0x3f5875,..._0x3b8e11}=_0x25ec12;return{...structuredClone(_0x3b8e11),'callId':_0x140b73,'toolName':_0x590833,'chunks':_0x3f5875[_0x3e9b56(_0x2a8858._0x25bebf,_0x2a8858._0x233c7f,_0x2a8858._0x288c08,0xa9)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x1575dc){const _0x4989ea={_0x617be2:0x33e,_0x37399e:0x36b,_0x82b3cf:0x3ae,_0xa6e7a6:0x525,_0x307848:0x478,_0x533c32:0x567},_0x583659={_0x380a1c:0x178},_0x5c8ba7={_0x368853:0x12f,_0x133853:0x31};function _0x499fb9(_0x31ac41,_0x50939d,_0x41ce28,_0x412526){return _0x22e785(_0x31ac41-_0x5c8ba7._0x368853,_0x50939d-_0x5c8ba7._0x133853,_0x41ce28-0x124,_0x50939d);}function _0x4ad65b(_0xa2a45c,_0x1b7c26,_0x101bcd,_0x3e3fdd){return _0x22e785(_0xa2a45c-_0x583659._0x380a1c,_0x1b7c26-0x94,_0x3e3fdd-0xb9,_0x101bcd);}return _0x1575dc['status']===_0x4ad65b(0x36f,_0x4989ea._0x617be2,_0x4989ea._0x37399e,_0x4989ea._0x82b3cf)&&_0x1575dc['structured'][_0x499fb9(_0x4989ea._0xa6e7a6,_0x4989ea._0x307848,0x4f7,_0x4989ea._0x533c32)]===!![];}async function executeModelRequest(_0x302e46,_0x15f3a1,_0x4d39b9,_0x586944,_0x3279f3,_0x1fcac1){const _0x345c2c={_0x2551f9:0x17e,_0x306ab6:0x14e,_0x389054:0x1c3,_0x382778:0x214,_0x461033:0x177,_0x1128eb:0x1d5,_0x3bf67a:0x15f,_0x24a361:0x8a,_0x373db0:0x43,_0x29a5c9:0x108,_0xd350eb:0xb0,_0x1be6a2:0x7f,_0x19cd18:0x11d,_0x2759d2:0x50,_0x247185:0xcb,_0xa61673:0xcd,_0x555d2d:0x140,_0x2e249a:0x193,_0x5bdb53:0x1eb,_0x4d7d89:0x187,_0x310beb:0x92,_0x56fd63:0xb5,_0x4a1699:0x90,_0x2d2ea1:0xde,_0x570635:0x163,_0x19899d:0xf3,_0x77f086:0x4b,_0x39a66c:0x1c2,_0x24f6c4:0x16d,_0x52791b:0xec,_0x3de7c3:0x6e,_0x405dc8:0xdc,_0x20b551:0x50,_0x3a6f97:0x26,_0x419bc2:0x184,_0x1b26f4:0x158,_0x520a5f:0x1ba,_0x1a7cfd:0x1e3,_0x44ece0:0x8f,_0x55a80a:0x6f,_0x3a9a76:0x9c,_0x5f3492:0xf4,_0x2ee2c5:0x188,_0x310b67:0x40,_0x5e6f0c:0x8,_0x29538d:0x192,_0x4d76a0:0x1aa,_0x5d3f04:0x171,_0x502406:0x1c6,_0x79d6ab:0x16e,_0x3de8c3:0x130,_0x192b5c:0x1a9,_0x4af31c:0x1c6,_0x199668:0x245,_0x3c1ab0:0x20a,_0x4ef080:0x116,_0x4f58be:0x1be,_0x1d0ae6:0xe8,_0x2a8c9b:0x206,_0x4ff33f:0x1dc,_0x3cc14e:0x1cf,_0x4c764e:0x1e8},_0xb25ddc={_0x44fe44:0xd};throwIfAborted(_0x15f3a1[_0x2a0f11(0x1c3,0x1e6,0x1fd,0x1ab)]);if(!_0x15f3a1[_0x53799e(0xc0,0x13f,0xf2,0xa2)]||!_0x4d39b9[_0x2a0f11(_0x345c2c._0x2551f9,0x19c,_0x345c2c._0x306ab6,0x1a6)])return await _0x4d39b9['complete'](_0x302e46,{'signal':_0x15f3a1[_0x2a0f11(_0x345c2c._0x389054,_0x345c2c._0x306ab6,_0x345c2c._0x382778,_0x345c2c._0x461033)]});let _0x4415d5;for await(const _0x20f809 of _0x4d39b9['stream'](_0x302e46,{'signal':_0x15f3a1[_0x2a0f11(0x1c3,0x166,0x24b,0x1e4)]})){throwIfAborted(_0x15f3a1['signal']);if(_0x20f809[_0x2a0f11(_0x345c2c._0x1128eb,0x1f8,0x1c0,_0x345c2c._0x3bf67a)]==='done'){_0x1fcac1[_0x2a0f11(0x1c6,0x247,0x22f,_0x345c2c._0x382778)][_0x2a0f11(0x124,0x18a,0xd9,0xad)]!==void 0x0&&_0x1fcac1['meta'][_0x53799e(0x9a,0x8a,0x87,_0x345c2c._0x24a361)]===void 0x0&&(_0x1fcac1[_0x2a0f11(0x1c6,0x16f,0x148,0x1bd)]['reasoningCompletedAt']=Date['now']());_0x4415d5=_0x20f809[_0x53799e(_0x345c2c._0x373db0,_0x345c2c._0x29a5c9,_0x345c2c._0xd350eb,_0x345c2c._0x1be6a2)];continue;}if(_0x20f809[_0x53799e(_0x345c2c._0x19cd18,0x57,0xd3,_0x345c2c._0x2759d2)]===_0x53799e(_0x345c2c._0x247185,_0x345c2c._0xa61673,0xbe,_0x345c2c._0x555d2d)){await emitEvent2(_0x586944[_0x2a0f11(_0x345c2c._0x2e249a,_0x345c2c._0x5bdb53,_0x345c2c._0x4d7d89,0x145)],{'type':'provider_stream_reset','assistantMessageId':_0x1fcac1[_0x53799e(_0x345c2c._0x310beb,_0x345c2c._0x56fd63,_0x345c2c._0x4a1699,_0x345c2c._0x2d2ea1)],'reasoningMessageId':_0x1fcac1[_0x2a0f11(0x17b,_0x345c2c._0x1128eb,_0x345c2c._0x570635,_0x345c2c._0x19899d)]},_0x3279f3),delete _0x1fcac1['meta'][_0x53799e(-_0x345c2c._0x77f086,-0x12,0x22,0x92)],delete _0x1fcac1[_0x2a0f11(0x1c6,_0x345c2c._0x39a66c,_0x345c2c._0x24f6c4,0x1ea)][_0x53799e(_0x345c2c._0x52791b,0xf0,0x87,_0x345c2c._0x3de7c3)];continue;}if(_0x20f809[_0x53799e(_0x345c2c._0x405dc8,0xfd,0xd3,_0x345c2c._0x20b551)]==='provider_retry'){await emitEvent2(_0x586944['onEvent'],{..._0x20f809,'assistantMessageId':_0x1fcac1[_0x53799e(0xe7,0x1b,0x90,_0x345c2c._0x3a6f97)]},_0x3279f3);continue;}const _0x1a7897=createReasoningChunkEvent(_0x20f809,_0x1fcac1[_0x2a0f11(0x17b,0x204,_0x345c2c._0x419bc2,0x157)]);if(_0x1a7897&&_0x1a7897['type']==='reasoning_chunk'&&_0x1a7897[_0x2a0f11(_0x345c2c._0x1b26f4,0x107,0x182,0x1ba)][_0x2a0f11(_0x345c2c._0x520a5f,0x1bb,_0x345c2c._0x1a7cfd,_0x345c2c._0x461033)]>0x0){_0x1fcac1['meta'][_0x53799e(0x51,_0x345c2c._0x44ece0,0x22,0x3e)]===void 0x0&&(_0x1fcac1[_0x53799e(_0x345c2c._0x55a80a,_0x345c2c._0x3a9a76,0xc4,0xe2)]['reasoningStartedAt']=Date[_0x2a0f11(0x171,_0x345c2c._0x5f3492,_0x345c2c._0x39a66c,_0x345c2c._0x2ee2c5)]());await emitEvent2(_0x586944[_0x53799e(0xca,_0x345c2c._0x310b67,0x91,_0x345c2c._0x5e6f0c)],_0x1a7897,_0x3279f3);continue;}const _0x11a726=createAssistantChunkEvent(_0x20f809,_0x1fcac1[_0x2a0f11(_0x345c2c._0x29538d,_0x345c2c._0x4d76a0,0x123,_0x345c2c._0x5d3f04)]);if(_0x11a726){_0x1fcac1[_0x2a0f11(_0x345c2c._0x502406,_0x345c2c._0x5d3f04,0x1ef,_0x345c2c._0x79d6ab)][_0x2a0f11(0x124,_0x345c2c._0x3de8c3,0x19b,0x163)]!==void 0x0&&_0x1fcac1['meta'][_0x2a0f11(0x189,0x141,_0x345c2c._0x192b5c,0x134)]===void 0x0&&(_0x1fcac1[_0x2a0f11(_0x345c2c._0x4af31c,_0x345c2c._0x199668,0x143,_0x345c2c._0x3c1ab0)][_0x2a0f11(0x189,_0x345c2c._0x4ef080,0x1ed,0x1e0)]=Date[_0x2a0f11(0x171,_0x345c2c._0x4f58be,_0x345c2c._0x1d0ae6,0x1d6)]());await emitEvent2(_0x586944[_0x2a0f11(_0x345c2c._0x2e249a,_0x345c2c._0x2a8c9b,_0x345c2c._0x4ff33f,_0x345c2c._0x3cc14e)],_0x11a726,_0x3279f3);continue;}const _0x1efa9c=createToolUseChunkEvent(_0x20f809,_0x1fcac1['assistantMessageId']);_0x1efa9c&&await emitEvent2(_0x586944['onEvent'],_0x1efa9c,_0x3279f3);}if(!_0x4415d5)throw new Error(_0x2a0f11(0x1c2,_0x345c2c._0x4c764e,0x22e,0x1df));function _0x2a0f11(_0x5be56b,_0x4f5626,_0x5c109e,_0x3a6239){return _0x58fa56(_0x5be56b-0x23,_0x5be56b- -0x1fd,_0x5c109e-_0xb25ddc._0x44fe44,_0x3a6239);}function _0x53799e(_0x464e91,_0x34f485,_0x2073e7,_0x4c9236){return _0x58fa56(_0x464e91-0xb,_0x2073e7- -0x2ff,_0x2073e7-0xbe,_0x4c9236);}return _0x4415d5;}function makeTurnGuards(_0x3e8aa3,_0x2b6232,_0xba38a2,_0x4c966a,_0x2b1121){return{async 'stage'(_0x5a80ca,_0xb53c62){return throwIfAborted(_0x3e8aa3),await runStage(_0x2b6232,_0x5a80ca,_0xb53c62,_0x4c966a);},async 'emit'(_0x443e34){throwIfAborted(_0x3e8aa3),await emitEvent2(_0xba38a2,_0x443e34,_0x2b1121);},async 'stageUnchecked'(_0x2f6de6,_0x4cbe9b){return await runStage(_0x2b6232,_0x2f6de6,_0x4cbe9b,_0x4c966a);},async 'emitUnchecked'(_0x42d4a4){await emitEvent2(_0xba38a2,_0x42d4a4,_0x2b1121);}};}async function runTurn(_0x3bcded,_0x356688){const _0x3d0706={_0x4ea545:0xe7,_0x530277:0x10d,_0x20ebd2:0x3ce,_0x527f17:0x157,_0x2cbf69:0xbb,_0x37ff14:0x422,_0x34e51d:0x3af,_0x210bfc:0x402,_0x1181ee:0x35a,_0x2872c8:0x361,_0x6b0b37:0x123,_0x46395d:0x40a,_0x45d5b3:0x1c7,_0x1eb394:0x24e,_0x24ea97:0x3d0,_0x361dd5:0x3ce,_0x1a3093:0x22a,_0x4f713:0x182,_0x2d66f1:0x176,_0x992e39:0x141,_0x4087ce:0x198,_0x249156:0xd2,_0x2f225d:0xf8,_0xb2943f:0xd7,_0x1e5fe2:0x425,_0x59132e:0x441,_0xd55ed4:0x48c,_0x362c4b:0x13a,_0x17db80:0xe6,_0x34a6a9:0x143,_0x3b0c42:0xf8,_0x4b27a9:0x39f,_0x33105b:0x197,_0x1e78d3:0xd4,_0x3b235d:0x90,_0x342f37:0x3f0,_0x33bada:0x41e,_0x377fb2:0x415,_0x254603:0x399,_0x3f0c7b:0x3e1,_0x2123a2:0x330,_0x5e2bf1:0x3d0,_0x111f8e:0x37f,_0x535f8c:0x2e8,_0x57e2ea:0x32e,_0x2c751e:0x33e,_0x14e2be:0x30d,_0x27a639:0xae,_0x1b6192:0x149,_0x3e1bc5:0x15d,_0x26352c:0x16e,_0x2b75fd:0x155,_0x46b19b:0x14b,_0x5529e5:0x1a8,_0x36f362:0xe4,_0x8ff4bc:0x178,_0x55db36:0x19e,_0x54437a:0x3c4,_0x800643:0x322,_0x39e476:0x172,_0x1082a7:0x3f6,_0x2f3793:0x3fe,_0x23f903:0x31d,_0x5cc257:0x167,_0x5b1b1a:0x199,_0x431f88:0x153,_0x38aac9:0x3ca,_0x1ecc37:0x389,_0x46c6f4:0x34d,_0x3c285b:0x1a9,_0x2d9e75:0x1d9,_0x1d18bc:0x379,_0x15f319:0x395,_0x4c3c8d:0x349,_0x2fd948:0x3cd,_0x15d3ef:0x338,_0x36f71c:0x365,_0x4437b4:0x3a5,_0x34e507:0x34e,_0x4538a1:0x132,_0x402685:0x19f,_0x205cca:0xea,_0x472b03:0x1aa,_0x224f02:0x124,_0xf892bf:0x340,_0x39cbc1:0x3ae,_0x23263e:0x397,_0x10e8ef:0x392,_0x3d0cda:0x184,_0x3b8e73:0x44b,_0x49ec4e:0x3f8,_0x24542a:0x11b,_0x575ca1:0x18c,_0x2a9c6b:0x146,_0x15db14:0x39b,_0x5dfc74:0x440,_0x4483a2:0x3c9,_0x46288b:0x3be,_0x6cf565:0x1dc,_0x819412:0x173,_0xb0d8ab:0x38c,_0x4cc512:0x371,_0x36d44a:0x373,_0x4131db:0x17e,_0x591ce4:0x128,_0x51f7d0:0xbf,_0x535d39:0x3aa,_0x224121:0x427,_0x3caaca:0x174,_0x3f3dcf:0x20a,_0xfd5e27:0x1ac,_0xb3d8a4:0x3fd,_0xde6925:0x43f,_0x22bea9:0x3d9,_0x2e2434:0x31b,_0x1e06c8:0x11c,_0x1e80ae:0x142,_0x34c0fc:0x1c8,_0x2f1f01:0x18a,_0x3146fd:0x242,_0xb75d08:0x3ec,_0x3c8135:0x357,_0x5b6de6:0x3cf,_0x586aca:0x3a1,_0x2d85e3:0x368,_0x1170ce:0x394,_0x16c86a:0x3a1,_0x2c9a57:0x3f4,_0x48bd8b:0x3f7,_0x118540:0x37c,_0x12c7f4:0x466,_0x1eeea4:0x421,_0x51f4a8:0x424,_0x39fe84:0x39d,_0x553183:0x14e,_0x168302:0x18f,_0x51e1f3:0x1a0,_0xe3fcbf:0x402,_0x101f26:0x3ee,_0x3ed6a1:0x3fe,_0x53387a:0x47e,_0xc48699:0x382,_0x580973:0x339,_0x130767:0x38d,_0x49aec2:0x450,_0x11ee3c:0x402,_0x3c8cb9:0x236,_0x89254f:0x1a1,_0x134d24:0x18f,_0x46cfa9:0x42c,_0x59b65d:0x3ba,_0x4c0aca:0x3a1,_0x20ccca:0x3b8,_0x16dd15:0x4b9,_0x1e4fcb:0x403,_0x5c2a88:0x93,_0x2e4f58:0xd3,_0xb9553e:0x46a,_0xc6b8fe:0x40a},_0xf253a8={_0x5569ff:0x3e,_0x3c6e13:0x8f,_0x34dce8:0x6f,_0x3a0de1:0x252,_0x491cda:0x289,_0x444fc9:0x174,_0x38641b:0x3b,_0x4e1eb5:0x47,_0x147c7e:0x10,_0xab4582:0xd0},_0x13fc21={_0x63b99a:0x1ad,_0x2e58b8:0xa0},_0x161e1c={_0x5416a0:0xf5,_0x57d79c:0x35},_0x1c4486={_0xbf63ab:0x287,_0x21e0ae:0x39c,_0x4d015b:0x312,_0x1b557a:0x36c,_0x4515ef:0x3b1,_0x4d8170:0x3a5,_0x1ab92f:0x17c,_0x5ed0a5:0x1d8,_0x1b58ec:0x18e,_0x55d9c1:0x2f6,_0x3f6152:0x34b,_0x1f99b4:0x1be,_0x3a14bd:0x214,_0x4eaebd:0x21e,_0x57a08b:0x28d,_0x2eafec:0x1a2,_0x1a1e88:0x273,_0x53fda2:0x345,_0x229d6a:0x38a,_0x2e2f4e:0x384},_0x2395c1={_0x43261d:0x8b},_0x400293={_0xe36eba:0x5c5},_0x5dc27f={_0x3c51f3:0x37,_0x30f249:0xe6,_0x43743e:0xfc,_0x33bef8:0x10d},_0x91261={_0x2bda65:0xa2,_0x582881:0x183},_0x5f307c=_0x356688[_0x102afd(-_0x3d0706._0x4ea545,-0x10d,-0x7f,-_0x3d0706._0x530277)],_0x1f54b3=_0x3bcded[_0x420d27(0x3c6,0x458,0x400,_0x3d0706._0x20ebd2)]??new AbortController()[_0x102afd(-0x113,-_0x3d0706._0x527f17,-0x12b,-_0x3d0706._0x2cbf69)],_0x5290c9=normalizeExecutionScope(_0x356688[_0x420d27(0x448,0x39e,0x3e2,0x39d)]),_0x5e06ad={'sessionId':_0x3bcded[_0x420d27(0x38a,_0x3d0706._0x37ff14,0x39d,_0x3d0706._0x34e51d)],'turnId':_0x3bcded[_0x102afd(-0x1d5,-0x1fb,-0x15d,-0x174)],'system':normalizeSystem(_0x3bcded[_0x420d27(_0x3d0706._0x210bfc,_0x3d0706._0x1181ee,0x39b,_0x3d0706._0x2872c8)]),'messages':(_0x3bcded[_0x102afd(-0x172,-_0x3d0706._0x6b0b37,-0x1fb,-0x174)]??[])[_0x420d27(0x393,0x438,_0x3d0706._0x46395d,0x39d)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x356688[_0x102afd(-_0x3d0706._0x45d5b3,-_0x3d0706._0x1eb394,-0x153,-0x1af)]===_0x420d27(_0x3d0706._0x24ea97,_0x3d0706._0x361dd5,0x440,0x3f2)?_0x356688[_0x102afd(-0x1c7,-0x1f8,-0x18a,-_0x3d0706._0x1a3093)]():_0x356688[_0x102afd(-_0x3d0706._0x45d5b3,-0x232,-0x176,-_0x3d0706._0x4f713)]},_0x1dde8b=makeExtensionContext(_0x5e06ad,_0x5290c9),_0x13f83d={'sessionId':_0x5e06ad[_0x102afd(-_0x3d0706._0x2d66f1,-_0x3d0706._0x992e39,-0x195,-_0x3d0706._0x4087ce)],'turnId':_0x5e06ad[_0x102afd(-0x1d5,-0x229,-0x231,-0x16d)],'state':_0x5e06ad,'executionScope':_0x5290c9,'signal':_0x1f54b3,..._0x356688[_0x102afd(-_0x3d0706._0x249156,-0xc3,-_0x3d0706._0x2f225d,-_0x3d0706._0xb2943f)]?{'askUser':_0x356688[_0x420d27(_0x3d0706._0x1e5fe2,0x445,_0x3d0706._0x59132e,_0x3d0706._0xd55ed4)]}:{}},{stage:_0x147d80,emit:_0x227a44,stageUnchecked:_0x24de35,emitUnchecked:_0x2b5895}=makeTurnGuards(_0x1f54b3,_0x356688[_0x102afd(-0xef,-_0x3d0706._0x362c4b,-_0x3d0706._0x17db80,-0x10d)],_0x356688[_0x102afd(-_0x3d0706._0x34a6a9,-_0x3d0706._0x3b0c42,-0x10c,-0x14f)],_0x1dde8b,_0x13f83d),_0x2be1fe=async(_0x1c21a9,_0x14fe65)=>{const _0x2cc084={_0x243e5b:0x62,_0x4635cf:0xd1};function _0x13210c(_0x529caa,_0x4801d7,_0x30dc22,_0xd487f5){return _0x102afd(_0xd487f5-_0x91261._0x2bda65,_0x4801d7-0xff,_0x4801d7,_0xd487f5-_0x91261._0x582881);}function _0xfe4852(_0x4dd790,_0x427b37,_0x26d3bf,_0x1f8c06){return _0x420d27(_0x4dd790-_0x2cc084._0x243e5b,_0x427b37-_0x2cc084._0x4635cf,_0x1f8c06-0xbb,_0x4dd790);}const _0x5ec1cd=_0x14fe65?{..._0x1dde8b,'turnMeta':_0x14fe65}:_0x1dde8b;await _0x356688[_0x13210c(-0x3a,-0x97,-_0x5dc27f._0x3c51f3,-0x4d)][_0x13210c(-_0x5dc27f._0x30f249,-0x195,-_0x5dc27f._0x43743e,-_0x5dc27f._0x33bef8)]('afterMessageAppend',structuredClone(_0x1c21a9),_0x5ec1cd);};function _0x420d27(_0x3fe3df,_0x7292ab,_0x346652,_0x15f45d){return _0x22e785(_0x3fe3df-0xe1,_0x7292ab-0x171,_0x346652-0x52,_0x15f45d);}const _0xf47038=_0x44798d=>{if(_0x44798d?.[_0x3721fc(_0x1c4486._0xbf63ab,_0x1c4486._0x21e0ae,_0x1c4486._0x4d015b,_0x1c4486._0x1b557a)]===_0x3721fc(_0x1c4486._0x4515ef,0x3fa,_0x1c4486._0x4d8170,0x410))return{'submissionOrigin':_0x2b7c8f(-_0x1c4486._0x1ab92f,-_0x1c4486._0x5ed0a5,-_0x1c4486._0x1b58ec,-0x190),..._0x44798d[_0x3721fc(_0x1c4486._0x55d9c1,0x3b2,0x364,_0x1c4486._0x3f6152)]===void 0x0?{}:{'subagentReport':structuredClone(_0x44798d['subagentReport'])}};function _0x2b7c8f(_0x338614,_0x51577a,_0x1c1ebb,_0x5b4041){return _0x420d27(_0x338614-0x179,_0x51577a-0x122,_0x338614- -_0x400293._0xe36eba,_0x5b4041);}if(_0x44798d?.['origin']===_0x2b7c8f(-0x21e,-_0x1c4486._0x1f99b4,-0x290,-_0x1c4486._0x3a14bd))return{'submissionOrigin':_0x2b7c8f(-_0x1c4486._0x4eaebd,-_0x1c4486._0x57a08b,-_0x1c4486._0x2eafec,-_0x1c4486._0x1a1e88),'senderAgentId':_0x44798d[_0x3721fc(_0x1c4486._0x53fda2,_0x1c4486._0x229d6a,_0x1c4486._0x2e2f4e,0x339)]};function _0x3721fc(_0x58dd6e,_0x1bdcf5,_0x1ce673,_0x35bc76){return _0x420d27(_0x58dd6e-0xae,_0x1bdcf5-_0x2395c1._0x43261d,_0x1ce673- -0xa4,_0x35bc76);}return void 0x0;},_0x2afdab=_0x156d16=>_0x156d16?.['origin']===_0x420d27(0x34b,0x321,0x3a7,0x36b)?{'senderAgentId':_0x156d16['senderAgentId']}:void 0x0;function _0x102afd(_0x599d46,_0x132fb6,_0x10975d,_0x137c3d){return _0x22e785(_0x599d46-0x50,_0x132fb6-0xe0,_0x599d46- -0x4c1,_0x10975d);}const _0x27f8c4=_0x5131a7=>typeof _0x5131a7===_0x102afd(-0x180,-0x1b7,-0x1fb,-0x112)&&_0x5131a7!==null&&_0x102afd(-0x192,-0x205,-0x1a0,-0x15a)in _0x5131a7&&_0x420d27(0x2f4,0x3a6,0x36f,0x349)in _0x5131a7,_0x126037=async _0x4c1ca2=>{if(!_0x3bcded['drainSteering'])return 0x0;const _0x95129e=await _0x3bcded[_0x437c14(0x12,-_0xf253a8._0x5569ff,_0xf253a8._0x3c6e13,_0xf253a8._0x34dce8)]();throwIfAborted(_0x1f54b3);if(_0x95129e[_0x9b75d4(0x2b7,_0xf253a8._0x3a0de1,0x212,_0xf253a8._0x491cda)]===0x0)return 0x0;await _0x4c1ca2?.();function _0x437c14(_0xf6c954,_0x102eb5,_0x450b3c,_0x14fa05){return _0x102afd(_0xf6c954-0x1af,_0x102eb5-_0x161e1c._0x5416a0,_0x450b3c,_0x14fa05-_0x161e1c._0x57d79c);}function _0x9b75d4(_0x392a4f,_0x566ace,_0x55aeb5,_0x4383ad){return _0x420d27(_0x392a4f-_0x13fc21._0x63b99a,_0x566ace-_0x13fc21._0x2e58b8,_0x566ace- -0x1a5,_0x392a4f);}for(const _0x20a879 of _0x95129e){const _0x35902a=_0x27f8c4(_0x20a879)?_0x20a879[_0x9b75d4(_0xf253a8._0x444fc9,0x1dc,0x173,0x207)]:_0x20a879,_0x30fc79=_0x27f8c4(_0x20a879)?_0x20a879['submission']:void 0x0,_0x232795=await _0x147d80(_0x437c14(_0xf253a8._0x38641b,-_0xf253a8._0x4e1eb5,_0xf253a8._0x147c7e,0x11),normalizeMessage(_0x35902a));throwIfAborted(_0x1f54b3),_0x5e06ad['messages'][_0x437c14(0xdb,0xa6,_0xf253a8._0xab4582,0x52)](_0x232795),await _0x2be1fe(_0x232795,_0xf47038(_0x30fc79)),await _0x227a44({'type':'user_message','message':_0x232795,..._0x2afdab(_0x30fc79)});}return _0x95129e['length'];};let _0x9d2b75=0x0;try{const _0x9efc2b=await _0x147d80(_0x420d27(0x37c,0x369,_0x3d0706._0x4b27a9,0x3e0),normalizeMessage(_0x3bcded['message']));_0x5e06ad[_0x102afd(-0x172,-0x145,-_0x3d0706._0x33105b,-0xfa)][_0x102afd(-_0x3d0706._0x1e78d3,-_0x3d0706._0x3b235d,-0xb7,-0x6a)](_0x9efc2b);_0x3bcded[_0x420d27(_0x3d0706._0x342f37,_0x3d0706._0x33bada,_0x3d0706._0x377fb2,_0x3d0706._0x254603)]!==!![]&&await _0x2be1fe(_0x9efc2b,_0xf47038(_0x3bcded[_0x420d27(0x306,_0x3d0706._0x3f0c7b,0x36f,_0x3d0706._0x2123a2)]));await _0x227a44({'type':_0x420d27(_0x3d0706._0x5e2bf1,0x3e9,_0x3d0706._0x111f8e,0x3b2),'message':_0x9efc2b,..._0x2afdab(_0x3bcded[_0x102afd(-0x1a4,-0x22c,-0x16c,-0x22d)])});while(!![]){throwIfAborted(_0x1f54b3),_0x9d2b75+=0x1;const _0x507ac4=createAssistantMessageId(_0x5e06ad[_0x420d27(_0x3d0706._0x535f8c,_0x3d0706._0x57e2ea,_0x3d0706._0x2c751e,_0x3d0706._0x14e2be)],_0x9d2b75),_0x23462a=createReasoningMessageId(_0x507ac4),_0xb37756={'model':_0x5f307c[_0x102afd(-0xe4,-_0x3d0706._0x27a639,-0x160,-0xe0)],'modelIdentity':_0x5f307c[_0x102afd(-_0x3d0706._0x1b6192,-_0x3d0706._0x3e1bc5,-_0x3d0706._0x26352c,-_0x3d0706._0x2b75fd)],..._0x5f307c[_0x102afd(-_0x3d0706._0x46b19b,-0x1b1,-_0x3d0706._0x5529e5,-_0x3d0706._0x36f362)]?{'provider':_0x5f307c[_0x102afd(-0x14b,-_0x3d0706._0x8ff4bc,-_0x3d0706._0x55db36,-0xf3)]}:{}};let _0x44fcae={'model':_0x5f307c['model'],..._0x5f307c[_0x420d27(0x381,0x33d,0x36d,0x380)]!==void 0x0?{'maxTokens':_0x5f307c[_0x420d27(0x355,_0x3d0706._0x54437a,0x36d,_0x3d0706._0x800643)]}:{},'system':structuredClone(_0x5e06ad['system']),'messages':structuredClone(_0x5e06ad[_0x102afd(-_0x3d0706._0x39e476,-0x116,-0x1ab,-0x124)]),'tools':_0x356688[_0x420d27(_0x3d0706._0x1082a7,0x40c,_0x3d0706._0x2f3793,0x448)][_0x102afd(-0x125,-0x11c,-0x1a3,-0xe6)](),'metadata':{'sessionId':_0x5e06ad[_0x420d27(0x347,_0x3d0706._0x23f903,0x39d,0x418)],'turnId':_0x5e06ad[_0x102afd(-0x1d5,-_0x3d0706._0x5cc257,-_0x3d0706._0x5b1b1a,-_0x3d0706._0x431f88)],'modelIdentity':_0x5f307c[_0x420d27(0x404,0x3ab,_0x3d0706._0x38aac9,0x430)],..._0x5f307c[_0x420d27(0x38a,0x357,_0x3d0706._0x1ecc37,0x3e9)]!==void 0x0?{'pricingProviderId':_0x5f307c[_0x420d27(_0x3d0706._0x46c6f4,0x3c6,0x389,0x359)]}:{}},..._0x356688[_0x102afd(-_0x3d0706._0x3c285b,-_0x3d0706._0x45d5b3,-_0x3d0706._0x2d9e75,-0x1ad)]?{'outputFormat':_0x356688[_0x420d27(0x326,_0x3d0706._0x1d18bc,0x36a,0x356)]}:{}};_0x44fcae=await _0x147d80(_0x420d27(_0x3d0706._0x15f319,0x33d,_0x3d0706._0x4c3c8d,_0x3d0706._0x2fd948),_0x44fcae);{const {pricingProviderId:_0x42eca4,..._0x34577b}=_0x44fcae[_0x102afd(-0x18c,-0x12d,-0x18c,-0x18f)];_0x44fcae={..._0x44fcae,'metadata':{..._0x34577b,..._0x5f307c[_0x420d27(0x3d8,_0x3d0706._0x15d3ef,0x389,_0x3d0706._0x36f71c)]!==void 0x0?{'pricingProviderId':_0x5f307c[_0x420d27(_0x3d0706._0x4437b4,0x40d,_0x3d0706._0x1ecc37,_0x3d0706._0x34e507)]}:{}}};}await _0x227a44({'type':_0x102afd(-_0x3d0706._0x4538a1,-_0x3d0706._0x402685,-_0x3d0706._0x205cca,-0xe2),'request':_0x44fcae});const _0x5caa2b=Date[_0x420d27(0x3df,0x336,0x3ae,0x387)]();_0xb37756[_0x102afd(-_0x3d0706._0x472b03,-0x1f7,-_0x3d0706._0x224f02,-0x177)]=_0x5caa2b;let _0x17e638=await executeModelRequest(_0x44fcae,_0x3bcded,_0x5f307c,_0x356688,_0x13f83d,{'assistantMessageId':_0x507ac4,'reasoningMessageId':_0x23462a,'meta':_0xb37756});const _0x66255e=Date[_0x420d27(0x3b6,_0x3d0706._0xf892bf,_0x3d0706._0x39cbc1,_0x3d0706._0x23263e)]();_0xb37756[_0x420d27(0x34f,0x315,_0x3d0706._0x10e8ef,0x35c)]=_0x66255e,_0x17e638=await _0x147d80(_0x102afd(-0x1c6,-0x206,-_0x3d0706._0x3d0cda,-0x15b),_0x17e638);_0x17e638[_0x420d27(0x3c3,_0x3d0706._0x3b8e73,_0x3d0706._0x49ec4e,0x3f8)]&&(_0x17e638={..._0x17e638,'providerState':{..._0x17e638[_0x102afd(-_0x3d0706._0x24542a,-0xce,-0x11e,-0x151)],'originModelIdentity':_0x5f307c['modelIdentity']}});_0x17e638=withEstimatedModelCost(_0x44fcae,_0x17e638);const _0x2e997d=Math[_0x102afd(-0x161,-0x127,-_0x3d0706._0x17db80,-_0x3d0706._0x575ca1)](0x0,_0x66255e-_0x5caa2b),_0x156a58={'version':0x1,'usage':structuredClone(_0x17e638[_0x102afd(-0x12e,-_0x3d0706._0x2a9c6b,-0xcf,-0xe7)]),'modelTimeMs':_0x2e997d},_0x29df61=_0x38a88e=>({..._0xb37756,'metrics':{..._0x156a58,'usage':structuredClone(_0x156a58['usage']),'completesRequest':_0x38a88e}});await _0x227a44({'type':_0x420d27(_0x3d0706._0x15db14,_0x3d0706._0x5dfc74,_0x3d0706._0x4483a2,_0x3d0706._0x46288b),'response':_0x17e638,'modelTimeMs':_0x2e997d}),_0x5e06ad[_0x102afd(-_0x3d0706._0x6cf565,-0x21d,-_0x3d0706._0x819412,-0x25b)]=_0x17e638;let _0x1088ad=await _0x147d80(_0x420d27(_0x3d0706._0xb0d8ab,0x38f,_0x3d0706._0x4cc512,_0x3d0706._0x36d44a),withMessageId(responseToAssistantMessage(_0x17e638),_0x507ac4));_0x1088ad=withMessageId(_0x1088ad,_0x507ac4);const _0x3e6942=getToolUseBlocks(_0x1088ad),_0x5ed2dc=await Promise[_0x102afd(-0x186,-0x16c,-_0x3d0706._0x4131db,-0x1b8)](_0x3e6942[_0x420d27(0x40b,0x3fd,_0x3d0706._0x46395d,0x383)](_0x5419a8=>_0x147d80(_0x102afd(-0xf3,-0xc1,-0x74,-0x10a),_0x5419a8)));_0x5ed2dc['length']>0x0&&(_0x1088ad=replaceToolUseBlocks(_0x1088ad,_0x5ed2dc));const _0x291b46=withMessageId(_0x1088ad,_0x507ac4);_0x1088ad=_0x291b46;const _0xceaa4b=createReasoningMessage(_0x1088ad),_0x472c69=createAssistantTextMessage(_0x1088ad),_0x29ee92=createToolUseMessage(_0x1088ad);_0xceaa4b&&await _0x227a44({'type':_0x102afd(-0xdb,-0x110,-_0x3d0706._0x591ce4,-_0x3d0706._0x51f7d0),'message':withMessageId(_0xceaa4b,_0x23462a)});_0x472c69&&await _0x227a44({'type':_0x420d27(0x3b4,0x3c2,_0x3d0706._0x535d39,_0x3d0706._0x224121),'message':withMessageId(_0x472c69,_0x507ac4)});_0x29ee92&&await _0x227a44({'type':_0x102afd(-0x1dd,-_0x3d0706._0x3caaca,-_0x3d0706._0x3f3dcf,-_0x3d0706._0xfd5e27),'message':withMessageId(_0x29ee92,_0x507ac4)});_0x5e06ad['messages'][_0x420d27(_0x3d0706._0xb3d8a4,0x3dc,_0x3d0706._0xde6925,0x42d)](_0x291b46);_0x5ed2dc['length']>0x0&&await _0x2be1fe(_0x291b46,_0x29df61(![]));for(const _0x4fa68c of _0x5ed2dc){await _0x227a44({'type':_0x420d27(_0x3d0706._0x22bea9,_0x3d0706._0x2e2434,0x353,0x338),'toolCall':structuredClone(_0x4fa68c)});}if(_0x5ed2dc[_0x102afd(-_0x3d0706._0x1e06c8,-0x130,-_0x3d0706._0x1e80ae,-0xf1)]===0x0){const _0x22f01b=await _0x126037(async()=>{await _0x2be1fe(_0x291b46,_0x29df61(![]));});if(_0x22f01b>0x0)continue;const _0x2d702c=await _0x147d80(_0x102afd(-_0x3d0706._0x34c0fc,-0x1ea,-_0x3d0706._0x2f1f01,-_0x3d0706._0x3146fd),_0x1088ad),_0x2289bb=withMessageId(_0x2d702c,_0x507ac4);return _0x5e06ad[_0x420d27(_0x3d0706._0xb75d08,_0x3d0706._0x3c8135,0x3ad,_0x3d0706._0x2123a2)]=_0x2289bb,_0x5e06ad[_0x420d27(0x353,_0x3d0706._0x5b6de6,_0x3d0706._0x586aca,_0x3d0706._0x2d85e3)][_0x5e06ad[_0x420d27(_0x3d0706._0x1170ce,0x3cc,_0x3d0706._0x16c86a,_0x3d0706._0x2c9a57)][_0x420d27(_0x3d0706._0x48bd8b,_0x3d0706._0x118540,0x3f7,_0x3d0706._0x1d18bc)]-0x1]=_0x2289bb,await _0x2be1fe(_0x2289bb,_0x29df61(!![])),await _0x2b5895({'type':'final_message','message':_0x2289bb}),throwIfAborted(_0x1f54b3),await _0x356688[_0x420d27(_0x3d0706._0x12c7f4,_0x3d0706._0x1eeea4,_0x3d0706._0x51f4a8,0x3c1)]['runObservers'](_0x420d27(0x355,_0x3d0706._0x39fe84,0x399,0x335),_0x5e06ad,_0x1dde8b),await _0x227a44({'type':_0x102afd(-_0x3d0706._0x553183,-_0x3d0706._0x168302,-0x15d,-_0x3d0706._0x51e1f3),'state':_0x5e06ad}),{'status':_0x420d27(_0x3d0706._0xe3fcbf,_0x3d0706._0x101f26,0x3ce,0x3c0),'finalMessage':_0x2289bb,'state':_0x5e06ad};}let _0x8379=await _0x356688[_0x420d27(0x44d,0x434,_0x3d0706._0x3ed6a1,_0x3d0706._0x53387a)]['executeCalls'](_0x5ed2dc,_0x13f83d);const _0x4a94ef=_0x8379[_0x420d27(_0x3d0706._0xc48699,_0x3d0706._0x1170ce,0x3ac,0x356)](isAbortedToolResult),_0x20d6af=_0x4a94ef?_0x24de35:_0x147d80,_0x1646ff=_0x4a94ef?_0x2b5895:_0x227a44;_0x8379=await Promise[_0x420d27(_0x3d0706._0x580973,0x3e4,_0x3d0706._0x130767,0x3c8)](_0x8379['map'](_0x28e54c=>_0x20d6af(_0x420d27(0x41a,0x3b5,0x43c,0x48a),_0x28e54c))),_0x5e06ad[_0x420d27(_0x3d0706._0x49aec2,_0x3d0706._0x11ee3c,0x409,0x3b1)]['push'](..._0x8379);for(const _0x7e9054 of _0x8379){await _0x1646ff({'type':_0x102afd(-0x1c3,-_0x3d0706._0x3c8cb9,-_0x3d0706._0x89254f,-0x1ea),'result':cloneToolResultForPublication2(_0x7e9054)});}const _0x1b9fc2=await _0x20d6af(_0x102afd(-0x15a,-0x109,-_0x3d0706._0x134d24,-0x105),createToolResultUserMessage(_0x8379));await _0x1646ff({'type':_0x420d27(_0x3d0706._0x46cfa9,0x35a,_0x3d0706._0x59b65d,0x3bd),'message':_0x1b9fc2}),_0x5e06ad[_0x420d27(0x3bc,0x3b5,_0x3d0706._0x4c0aca,0x420)][_0x420d27(_0x3d0706._0x20ccca,_0x3d0706._0x16dd15,_0x3d0706._0xde6925,_0x3d0706._0x1e4fcb)](_0x1b9fc2),await _0x2be1fe(_0x1b9fc2);if(_0x4a94ef)return{'status':'aborted','state':_0x5e06ad};await _0x126037();}}catch(_0x2d385c){if(!_0x1f54b3[_0x102afd(-0xee,-0xe2,-_0x3d0706._0x5c2a88,-_0x3d0706._0x2e4f58)])throw new TurnFailedError(_0x2d385c,_0x5e06ad);return{'status':_0x420d27(_0x3d0706._0xb9553e,0x465,0x425,_0x3d0706._0xc6b8fe),'state':_0x5e06ad};}}function createSessionId(){const _0x2f346f={_0x2b63e5:0x1d0,_0x377c2d:0x1f6,_0x267757:0x187,_0x35743a:0x19b,_0x226272:0x20d,_0xe8364f:0x96},_0x2b312a={_0x2ab1af:0x1df,_0x4f59d:0x9c,_0x156610:0x1af},_0x1c5674={_0x338b66:0x18};function _0x4928a2(_0x263350,_0x46490d,_0x1fd793,_0x74749b){return _0x58fa56(_0x263350-_0x1c5674._0x338b66,_0x46490d- -0x442,_0x1fd793-0x11f,_0x74749b);}function _0x26f739(_0x5b74c4,_0x146917,_0x144cf6,_0x25be11){return _0x22e785(_0x5b74c4-_0x2b312a._0x2ab1af,_0x146917-_0x2b312a._0x4f59d,_0x25be11- -_0x2b312a._0x156610,_0x5b74c4);}return _0x26f739(_0x2f346f._0x2b63e5,0x1e3,_0x2f346f._0x377c2d,_0x2f346f._0x267757)+Date[_0x26f739(0x1f7,_0x2f346f._0x35743a,_0x2f346f._0x226272,0x1ad)]()+'-'+Math[_0x4928a2(-0xe6,-0x86,-0x7c,-_0x2f346f._0xe8364f)]()['toString'](0x10)['slice'](0x2,0xa);}function createTurnId(_0x185f53){const _0x207a3a={_0x1595f6:0x18e,_0xe17ea6:0x147,_0x1eeb7f:0x12f},_0x1bb51c={_0x1572c4:0x44a};function _0x24b3e7(_0x5b2dba,_0x1a55d0,_0x34ed7f,_0xb21d77){return _0x22e785(_0x5b2dba-0x152,_0x1a55d0-0xc7,_0x34ed7f- -_0x1bb51c._0x1572c4,_0xb21d77);}return _0x24b3e7(-0xf4,-_0x207a3a._0x1595f6,-_0x207a3a._0xe17ea6,-_0x207a3a._0x1eeb7f)+_0x185f53;}function createDefaultMessage(_0x99e4ca){if(_0x99e4ca===void 0x0)return void 0x0;return normalizeUserInput(_0x99e4ca);}function normalizeUserInput(_0x1254e6){const _0x20dd46={_0x38cb69:0x5c9,_0x3f33e5:0x4bb,_0x36f257:0x4a6,_0x2d1254:0x49f},_0x4e95b0={_0x57dae9:0x6a},_0x2dbd4b={_0x50393d:0x5a,_0x1cbaa4:0x12a};function _0x47f01b(_0x10ca16,_0x492366,_0x4f33da,_0x302d90){return _0x22e785(_0x10ca16-_0x2dbd4b._0x50393d,_0x492366-_0x2dbd4b._0x1cbaa4,_0x10ca16-0x14f,_0x4f33da);}function _0x5b120c(_0x23e8f5,_0x3b4de9,_0x2f0a2b,_0x5aaaea){return _0x22e785(_0x23e8f5-_0x4e95b0._0x57dae9,_0x3b4de9-0x1f2,_0x23e8f5- -0x485,_0x5aaaea);}if(typeof _0x1254e6===_0x47f01b(0x541,0x4d9,_0x20dd46._0x38cb69,0x4c6))return{'role':'user','content':[{'type':_0x47f01b(0x492,_0x20dd46._0x3f33e5,_0x20dd46._0x36f257,_0x20dd46._0x2d1254),'text':_0x1254e6}]};return normalizeMessage(_0x1254e6);}function isTaggedSteeringInput(_0x5f1c40){const _0x53a57e={_0xec1de2:0x42d,_0x58c0b9:0x3f2,_0x97bba5:0x40a,_0x3aff40:0x354,_0x329f0e:0x3e1},_0x2a3221={_0x485c1d:0xaf},_0x38a842={_0x1a7d2f:0x125};function _0x15317f(_0x2e6989,_0xdb501d,_0x27cb4b,_0x421580){return _0x58fa56(_0x2e6989-0x1c7,_0x2e6989- -_0x38a842._0x1a7d2f,_0x27cb4b-0xec,_0x421580);}function _0x34f71e(_0x413ac7,_0x5b0d86,_0x3afc6c,_0x4ba9c6){return _0x22e785(_0x413ac7-0x103,_0x5b0d86-0x1a6,_0x413ac7-_0x2a3221._0x485c1d,_0x5b0d86);}return typeof _0x5f1c40==='object'&&_0x5f1c40!==null&&_0x34f71e(0x3de,_0x53a57e._0xec1de2,0x452,_0x53a57e._0x58c0b9)in _0x5f1c40&&_0x34f71e(0x3cc,_0x53a57e._0x97bba5,_0x53a57e._0x3aff40,_0x53a57e._0x329f0e)in _0x5f1c40;}function resolveChatModel(_0x395fe9){const _0x4128b5={_0x30707c:0xad,_0x37c0ac:0x46,_0x54c0b8:0x28,_0x373467:0x1c7,_0x326c2c:0x1f4,_0x4d02af:0x264,_0x4d7810:0x17b,_0x463e2f:0x1e1},_0x463c56={_0x8265b8:0x28,_0x328249:0x3a6},_0xeca469={_0x212cbd:0x12b};if(!_0x395fe9[_0x4172ad(0xd,_0x4128b5._0x30707c,_0x4128b5._0x37c0ac,-_0x4128b5._0x54c0b8)])throw new Error(_0x4669a6(-_0x4128b5._0x373467,-_0x4128b5._0x326c2c,-_0x4128b5._0x4d02af,-0x18b));function _0x4669a6(_0x2fd38f,_0x4320b0,_0x3a04a9,_0x1980f2){return _0x58fa56(_0x2fd38f-_0xeca469._0x212cbd,_0x4320b0- -0x567,_0x3a04a9-0x9c,_0x2fd38f);}function _0x4172ad(_0x4756d1,_0x41185a,_0x2f8a1b,_0x45a503){return _0x58fa56(_0x4756d1-_0x463c56._0x8265b8,_0x2f8a1b- -_0x463c56._0x328249,_0x2f8a1b-0x6d,_0x4756d1);}return _0x395fe9[_0x4669a6(-0x188,-_0x4128b5._0x4d7810,-_0x4128b5._0x463e2f,-0x18a)];}function normalizeExecutionScope2(_0x432634){const _0x4509aa={_0x53a3c9:0x292,_0x44da6d:0x26f,_0x5ab27f:0x2a},_0x33306b={_0x5f158d:0x128};function _0x44074e(_0xe7cb87,_0xc470e0,_0x3425dc,_0x46ab8d){return _0x58fa56(_0xe7cb87-0x14f,_0x46ab8d- -0x433,_0x3425dc-0xb7,_0xe7cb87);}function _0x1d6ee9(_0x38a299,_0x2d8783,_0x5d7f85,_0x50a89b){return _0x22e785(_0x38a299-_0x33306b._0x5f158d,_0x2d8783-0x1c1,_0x38a299- -0x5f,_0x2d8783);}return{'agentId':_0x432634?.[_0x1d6ee9(_0x4509aa._0x53a3c9,0x2a9,0x308,_0x4509aa._0x44da6d)]??'assistant','toolCallPath':[..._0x432634?.[_0x44074e(-0x6a,-_0x4509aa._0x5ab27f,-0xc7,-0x93)]??[]]};}function createRegistry(_0x3b268b){const _0x4f38c1={_0x577a9f:0x138,_0x36bdb0:0x482,_0x4560c3:0x440,_0x576837:0x421},_0x1fb008={_0x2fc3c4:0x1ae,_0x4799e8:0x13b},_0x176996={_0x4e2c1:0x2c8,_0x194587:0x1d8};function _0x472d2e(_0x51ec36,_0x167a6f,_0x305e39,_0x2a0f6b){return _0x58fa56(_0x51ec36-0x16b,_0x305e39- -_0x176996._0x4e2c1,_0x305e39-_0x176996._0x194587,_0x2a0f6b);}function _0x1e0a6c(_0x55a2dc,_0x3f02e1,_0x1a084a,_0x20c258){return _0x22e785(_0x55a2dc-_0x1fb008._0x2fc3c4,_0x3f02e1-_0x1fb008._0x4799e8,_0x20c258-0xa8,_0x55a2dc);}if(_0x3b268b[_0x472d2e(_0x4f38c1._0x577a9f,0x11e,0x11c,0x19f)])return _0x3b268b[_0x1e0a6c(0x4f8,0x4a4,0x4a3,0x47a)];const _0x4d229f=createExtensionRegistry(),_0x3905c5=_0x3b268b[_0x1e0a6c(0x3fd,_0x4f38c1._0x36bdb0,_0x4f38c1._0x4560c3,_0x4f38c1._0x576837)]??[];for(const _0x7af288 of _0x3905c5){_0x4d229f['register'](_0x7af288);}return _0x4d229f;}var Agent=class{[_0x58fa56(0x396,0x3ea,0x394,0x425)];[_0x58fa56(0x420,0x397,0x3f4,0x330)];[_0x58fa56(0x3a2,0x394,0x316,0x32f)];[_0x22e785(0x342,0x2c6,0x34b,0x372)];[_0x58fa56(0x3a4,0x361,0x3b8,0x36c)];[_0x58fa56(0x41a,0x402,0x380,0x48a)];['turnIndex'];constructor(_0x12ad2f={}){const _0x164774={_0x367c91:0x29a,_0x168127:0x2f4,_0x43098f:0xb5,_0x5f4cfc:0x2c,_0x3cec0f:0x147,_0x2b044a:0x296,_0x32ef8a:0x258,_0xc6eccf:0x22d,_0x233126:0x1d2,_0x574e8d:0x1f5,_0x2a5fe1:0x212,_0xcb1ebc:0x123,_0x142bf8:0xa8,_0x542282:0xd4,_0x1e026b:0x267,_0x3f3cbe:0x30f,_0x51335b:0x2a9,_0x50b915:0x23c},_0x48c259={_0x1a3553:0x42e},_0x22cd0a={_0x325683:0x189},_0x489294={_0x21150b:0x56},_0x411dad={_0x1584cf:0x75,_0x4af4b8:0x0,_0x105756:0x5e5};function _0x43c93e(_0x2f5c85,_0x48eee2,_0x606125,_0x38336e){return _0x22e785(_0x2f5c85-_0x411dad._0x1584cf,_0x48eee2-_0x411dad._0x4af4b8,_0x48eee2- -_0x411dad._0x105756,_0x2f5c85);}this[_0x43c93e(-0x28c,-_0x164774._0x367c91,-0x240,-_0x164774._0x168127)]=_0x12ad2f['sessionId']??createSessionId(),this['turnIndex']=0x0,this[_0x214436(-_0x164774._0x43098f,-0x56,_0x164774._0x5f4cfc,-0x71)]=_0x12ad2f[_0x43c93e(-0x2f4,-0x2a6,-0x2c9,-0x253)]??'',this[_0x214436(-_0x164774._0x3cec0f,-0xdf,-0x102,-0x8a)]=(_0x12ad2f[_0x43c93e(-0x2ea,-_0x164774._0x2b044a,-0x226,-0x31f)]??[])[_0x43c93e(-_0x164774._0x32ef8a,-_0x164774._0xc6eccf,-0x200,-_0x164774._0x233126)](normalizeMessage),this[_0x43c93e(-0x1d8,-_0x164774._0x574e8d,-0x1cb,-_0x164774._0x2a5fe1)]=createDefaultMessage(_0x12ad2f['message']),this[_0x214436(-_0x164774._0xcb1ebc,-0xac,-_0x164774._0x142bf8,-_0x164774._0x542282)]=createAgentMetrics({'getContextWindowLimit':_0x12ad2f[_0x43c93e(-0x1f3,-0x277,-0x257,-0x2e8)]});const _0x400a32=_0x12ad2f[_0x43c93e(-0x2b8,-_0x164774._0x1e026b,-0x240,-0x28f)],_0x15cca2=async(_0x215d53,_0x4f0ef7)=>{const _0x92c1e2={_0x353bc5:0x58d};function _0x4a9b1a(_0x456cc8,_0x3973cd,_0x4b5c29,_0x6fab33){return _0x43c93e(_0x4b5c29,_0x456cc8-0x146,_0x4b5c29-_0x489294._0x21150b,_0x6fab33-0x120);}function _0x468741(_0x432099,_0x4e38d0,_0x344627,_0x144313){return _0x214436(_0x144313,_0x432099-_0x92c1e2._0x353bc5,_0x344627-0xfe,_0x144313-0x177);}this[_0x4a9b1a(-0x11d,-0x110,-0x14b,-_0x22cd0a._0x325683)][_0x468741(0x4ad,0x4d7,0x4e0,0x435)](_0x215d53),await _0x400a32?.(_0x215d53,_0x4f0ef7);},_0x3bdd4f=createRegistry(_0x12ad2f),_0x1a3663=createInternalToolRuntime(_0x12ad2f['tools']??[],{'onEvent':_0x15cca2,'onToolCall':_0x12ad2f['onToolCall'],'registry':_0x3bdd4f,'beginProgramTrace':_0x12ad2f[_0x43c93e(-0x31c,-0x2a9,-0x291,-_0x164774._0x3f3cbe)]});function _0x214436(_0x327bbf,_0x271ead,_0x30683a,_0x4bbcc3){return _0x22e785(_0x327bbf-0x95,_0x271ead-0x121,_0x271ead- -_0x48c259._0x1a3553,_0x327bbf);}this['deps']={'registry':_0x3bdd4f,'chatModel':resolveChatModel(_0x12ad2f),'toolRuntime':_0x1a3663,'askUser':_0x12ad2f['askUser'],'onEvent':_0x15cca2,'sessionDir':_0x12ad2f['sessionDir'],'outputFormat':_0x12ad2f['outputFormat'],'executionScope':normalizeExecutionScope2(_0x12ad2f['executionScope']),'beginProgramTrace':_0x12ad2f[_0x43c93e(-0x229,-_0x164774._0x51335b,-_0x164774._0x50b915,-0x2e0)]};}get[_0x22e785(0x328,0x360,0x33f,0x2fb)](){return this['_systemPrompt'];}[_0x22e785(0x357,0x433,0x3b2,0x439)](_0x54a901=[]){const _0x357dce={_0x2581aa:0x27,_0x537d96:0x39,_0x3d9f6b:0x166},_0x30e61d={_0x19f968:0x13e,_0x2b220e:0x258},_0x398e2c={_0x2f80b9:0x18c,_0x141383:0x34c};function _0x1f0f49(_0x1ec10c,_0x41a062,_0x198d04,_0x337384){return _0x22e785(_0x1ec10c-_0x398e2c._0x2f80b9,_0x41a062-0x168,_0x337384- -_0x398e2c._0x141383,_0x41a062);}function _0x30d2c6(_0x2d2422,_0xe23cf6,_0x1dd525,_0xe59a4e){return _0x58fa56(_0x2d2422-_0x30e61d._0x19f968,_0xe59a4e- -_0x30e61d._0x2b220e,_0x1dd525-0x1e0,_0x2d2422);}this[_0x1f0f49(_0x357dce._0x2581aa,_0x357dce._0x537d96,0x9e,0x39)]['toolRuntime'][_0x30d2c6(0x159,0x1ca,_0x357dce._0x3d9f6b,0x16c)](_0x54a901);}[_0x22e785(0x2db,0x307,0x346,0x2fa)](){const _0x5c9330={_0x1575ea:0x278,_0x528c19:0x3f8,_0x48500f:0x439},_0x5c9e88={_0x3412a6:0xa0},_0x1e6952={_0x27bca1:0x12f};function _0x28ed73(_0x1be4c9,_0x4eccf8,_0x1fb204,_0x4cc443){return _0x22e785(_0x1be4c9-_0x1e6952._0x27bca1,_0x4eccf8-0x1eb,_0x1fb204- -0xe8,_0x4eccf8);}function _0x2fd62a(_0x1f5e58,_0x71b628,_0x147a88,_0x4ee8f8){return _0x58fa56(_0x1f5e58-0x15e,_0x71b628-_0x5c9e88._0x3412a6,_0x147a88-0x3a,_0x147a88);}return this['deps'][_0x28ed73(0x27d,_0x5c9330._0x1575ea,0x2c4,0x2a2)][_0x2fd62a(_0x5c9330._0x528c19,0x44e,0x458,_0x5c9330._0x48500f)]();}[_0x58fa56(0x33c,0x375,0x302,0x2f7)](_0x16eec8,_0xc17200={}){const _0x3734c1={_0x10720e:0x37,_0x445163:0xd,_0x4b7802:0x27f,_0x18ad25:0x272,_0x45f160:0x1f5},_0x19f679={_0xbc2b26:0x559},_0x5143b7={_0x15a2ec:0x1c8};function _0x3c8c2e(_0xfd65d3,_0x340016,_0x231a67,_0x2a60f0){return _0x58fa56(_0xfd65d3-0x60,_0x340016- -0x421,_0x231a67-_0x5143b7._0x15a2ec,_0xfd65d3);}function _0x14f8e4(_0x18bb9e,_0x1ead3d,_0x58e332,_0x51ecac){return _0x58fa56(_0x18bb9e-0x23,_0x51ecac- -_0x19f679._0xbc2b26,_0x58e332-0x18a,_0x1ead3d);}this[_0x3c8c2e(-0x5a,-_0x3734c1._0x10720e,_0x3734c1._0x445163,-0xb3)]=_0x16eec8,_0xc17200['resetMessages']===!![]&&(this[_0x14f8e4(-0x222,-_0x3734c1._0x4b7802,-0x1a2,-0x1f8)]=[],this[_0x14f8e4(-_0x3734c1._0x18ad25,-0x268,-_0x3734c1._0x45f160,-0x25d)]=0x0);}['setSessionId'](_0x3449a4){this['sessionId']=_0x3449a4;}[_0x58fa56(0x32a,0x39d,0x374,0x3e5)](_0x337dfa){const _0x190281={_0x433686:0x1cc,_0x18f8dc:0x1be,_0x2bedf6:0x19f},_0x5f0016={_0x26b0af:0x1bf,_0x4828fb:0x555};function _0xd199bc(_0x41fb1e,_0x57e4cc,_0x3add68,_0x3d32ab){return _0x58fa56(_0x41fb1e-_0x5f0016._0x26b0af,_0x3add68- -_0x5f0016._0x4828fb,_0x3add68-0x118,_0x41fb1e);}this[_0xd199bc(-_0x190281._0x433686,-0x1d4,-_0x190281._0x18f8dc,-_0x190281._0x2bedf6)]['chatModel']=_0x337dfa;}async['send'](_0x303199=this['defaultMessage'],_0x42bd08={}){const _0x47032b={_0x22da0e:0x149,_0x309603:0x11f,_0x4ede75:0x181,_0x27b62d:0x221,_0x541a27:0x1b8,_0x18d3b8:0x14f,_0x2997d0:0x165,_0x3485e6:0x16c,_0x3ac4e2:0x15d,_0x3df07b:0xf9,_0x3699c9:0x16e,_0x41d476:0x1cc,_0x31ccdb:0x234,_0x3ca182:0x22a,_0x39cc9b:0x235,_0xb29fdb:0x1bc,_0x38934b:0x17e,_0x5442f2:0x22d,_0x5b7f2f:0x1b0,_0x286871:0x160,_0x254574:0x142,_0x41d40e:0x1a9,_0x582e35:0x1db,_0xe40c:0x266,_0x4ae27e:0x1a3,_0x5ea5d2:0x154,_0x252410:0x1e8,_0x2a0988:0x18b,_0x269f2c:0x1dc,_0xf387ee:0x153,_0x17a658:0xd9,_0xd53db:0x12e,_0x18356f:0x1ac,_0x15cc10:0x1f9,_0x8a7f9e:0x198},_0x56debc={_0x5a6b98:0x7c},_0x25f3ef={_0x2409d8:0x1e7};function _0x2ffef9(_0x12c83f,_0x228c2b,_0x307e7b,_0x4e9dac){return _0x58fa56(_0x12c83f-0xe,_0x12c83f- -_0x25f3ef._0x2409d8,_0x307e7b-0x27,_0x4e9dac);}if(!_0x303199)throw new Error(_0x2ffef9(_0x47032b._0x22da0e,_0x47032b._0x309603,_0x47032b._0x4ede75,0x1ba));this[_0x5f4d74(-_0x47032b._0x27b62d,-0x1b7,-_0x47032b._0x541a27,-0x1bc)]+=0x1;const _0x2eb1b3=_0x42bd08[_0x2ffef9(_0x47032b._0x18d3b8,0x1a4,0x1bd,_0x47032b._0x2997d0)];function _0x5f4d74(_0x20d4e6,_0x3b2c20,_0x4c6c96,_0xa930bc){return _0x22e785(_0x20d4e6-0x3f,_0x3b2c20-_0x56debc._0x5a6b98,_0x20d4e6- -0x50b,_0x3b2c20);}try{const _0x222659=await runTurn({'sessionId':this['sessionId'],'turnId':createTurnId(this['turnIndex']),'streaming':_0x42bd08[_0x5f4d74(-0x12c,-0xc0,-0xc8,-_0x47032b._0x3485e6)],'signal':_0x42bd08[_0x5f4d74(-_0x47032b._0x3ac4e2,-_0x47032b._0x3df07b,-0x1e1,-_0x47032b._0x3699c9)],'system':this[_0x5f4d74(-_0x47032b._0x41d476,-_0x47032b._0x31ccdb,-_0x47032b._0x3ca182,-_0x47032b._0x39cc9b)],'messages':this[_0x5f4d74(-_0x47032b._0xb29fdb,-_0x47032b._0x38934b,-_0x47032b._0x5442f2,-0x245)],'message':normalizeUserInput(_0x303199),..._0x42bd08['transientInput']===!![]?{'transientInput':!![]}:{},..._0x42bd08['submission']===void 0x0?{}:{'submission':_0x42bd08['submission']},..._0x2eb1b3?{'drainSteering':async()=>(await _0x2eb1b3())[_0x2ffef9(0x1e3,0x244,0x161,0x259)](_0x2cf6f4=>isTaggedSteeringInput(_0x2cf6f4)?{'input':normalizeUserInput(_0x2cf6f4[_0x5f4d74(-0x1dc,-0x1f6,-0x1fa,-0x196)]),'submission':_0x2cf6f4[_0x5f4d74(-0x1ee,-0x1c9,-0x1ff,-0x1d8)]}:normalizeUserInput(_0x2cf6f4))}:{}},this[_0x2ffef9(_0x47032b._0x5b7f2f,_0x47032b._0x286871,_0x47032b._0x254574,0x1e9)]);return this['messages']=_0x222659[_0x5f4d74(-0x18b,-0x173,-_0x47032b._0x41d40e,-0x14e)]['messages'][_0x2ffef9(0x1e3,0x21d,_0x47032b._0x582e35,_0x47032b._0xe40c)](normalizeMessage),_0x222659;}catch(_0x4f0bbc){if(_0x4f0bbc instanceof TurnFailedError){this[_0x2ffef9(0x17a,_0x47032b._0x4ae27e,_0x47032b._0x5ea5d2,_0x47032b._0x252410)]=synthesizeMissingToolResults(_0x4f0bbc[_0x5f4d74(-_0x47032b._0x2a0988,-0x1fd,-_0x47032b._0x309603,-_0x47032b._0x269f2c)]['messages'][_0x5f4d74(-_0x47032b._0xf387ee,-_0x47032b._0x17a658,-_0x47032b._0xd53db,-0x15c)](normalizeMessage));throw _0x4f0bbc[_0x2ffef9(_0x47032b._0x18356f,_0x47032b._0x15cc10,0x17c,_0x47032b._0x8a7f9e)];}throw _0x4f0bbc;}}};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};function _0x22cd(){const _0x51f2c1=['mJu3odCZngHcz2XwvW','DhvYBLn0yxj0zwrbDa','B3v0Chv0rM9YBwf0','CMvXDwvZDgvKtMfTzq','zxH0zxjUywXvC2fNzq','Bwf4vg9Rzw5Z','zhjHAw5qzxjZAxn0zw5Jzq','C3vIBwLZC2LVBG','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','yMvMB3jLqxnZAxn0yw50qxbWzw5K','DhjHy2u','AxnbCNjHEq','BMfTzq','vw5RBM93BIb0B29SoIa','zhjHAw5tDgvLCMLUzW','BwvZC2fNzq','CMvZB2X2zq','sw52ywXPzcbLEhrLCM5HBcbTB2rLBcb1C2fNzsb0B3rHBhm','CMvNAxn0zxi','Dg9VBf9VDxrWDxrFy2H1BMS','DMfSDwu','ntvLCxLmt2y','ywrKrxzLBNrmAxn0zw5LCG','DxnLCL9TzxnZywDL','BwLZC2LUz0HPC3rVCMLJywXnB2rLBenHBgXdB3vUDa','Aw5WDxq','ywX3yxLZlwnVBMzPCM0','Dg9VBf91C2vFzgvSDge','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','Dg90ywXnB2rLBfrPBwvnCW','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','Bwv0ywrHDge','C2vZC2LVBI0','ChjPy2LUz1bYB3zPzgvYswq','CMvHza','Dg9VBf9YzwPLy3rLza','AgLZDg9YAwnHBe1LDhjPy3ndB21WBgv0zq','ywXS','yMvNAw5qCM9NCMfTvhjHy2u','CMvZDwX0','Dg9VBenHBgXjza','C3LZDgvTuhjVBxb0','DhvYBKnVBxbSzxrLzef0','B2jQzwn0','C3rHz2u','Dgv4Da','zMfPBgvK','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','z2v0vg9VBhm','ywz0zxjuDxjUq29TCgXLDgu','C3vTBwfYEuLUzgv4','C3LZDgvT','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','C2vZC2LVBKLK','B3jKzxi','B25vC2vYtwvZC2fNzq','CMvJB3jKrxzLBNq','BwvZC2fNzxm','Dg9VBenHBgXdB3vUDa','ywrK','Dg90ywXszwfZB25PBMDuB2TLBNm','y29UDgvUDeLUzgv4','y3vTDwXHDgL2zvvZywDL','ywDLBNq','oIbLEhbLy3rLzcbHCNjHEq','ChjVz3jHBs1HyM9YDgvK','yxnZAxn0yw50x21LC3nHz2u','CMvXDwLYzwq','C29Tzq','zMLUywXnzxnZywDL','BM93','B3v0Chv0sw5KzxG','DhjPBq','DMfSDwvZ','Bwf4','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','yxnZAxn0yw50x2nODw5R','C2v0u3LZDgvTuhjVBxb0','B3jPz2LU','mtjiq3DSwvq','CMvHC29UAw5NtwvZC2fNzuLK','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','C3rYzwfT','C2vXDwvUy2u','CMvHC29UAw5Nx2nODw5R','ndLxre9OAfC','yM9VBgvHBG','z2v0q29UDgv4DfDPBMrVD0XPBwL0','oIbLEhbLy3rLzcbVyMPLy3q','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','Dg90ywXpDxrWDxruB2TLBNm','zM9YrwfJAa','DhvYBL9JB21WBgv0zq','CMvHC29UAw5Nq29TCgXLDgvKqxq','ChjVz3jHBs1PBNrLCM1LzgLHDgu','ChjVDMLKzxi','Bw9KzwXFCMvZCg9UC2u','Bw9KzwXjzgvUDgL0Eq','zxH0zw5ZAw9UCW','zxHLy3v0zunHBgXZ','AxrLBuLK','y29TCgXLDgvK','yxnZAxn0yw50twvZC2fNzuLK','B25fDMvUDa','mJi3nte4Dev2ze5o','C3rHDgu','y2f1C2u','Bwv0CMLJCW','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','AM9PBG','zgvWCW','D3jPDgu','y2fWywjPBgL0AwvZ','CgvYBwLZC2LVBKnSyxnZ','sw52ywXPzcb0B29SigLUChv0igf0ia','vg9VBev4zwn1DgLVBKvYCM9Y','C2v0q2HHDe1VzgvS','mJu2odG4mdz3z09pzwG','y2XVC2u','Dg9VBenHBgXqyxrO','Bw9KzwXFCMvXDwvZDa','zxHLy3v0Aw9Uu2nVCgu','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','C2v0','DxnHz2u','y29UDgv4DfDPBMrVD0XPBwL0','zxzLCNK','oIbLEhbLy3rLzcbIB29SzwfU','CNvUswq','CMvXDwvZDa','AgfZt3DU','y2f0y2G','DhvYBLvZywDL','BgLZDfrVB2Xty2HLBwfZ','CMvZCg9UC2u','y29TBwL0vgvYBwLUywXtDgf0zq','zMLSDgvY','Dg9VBenHBgW','zgvSzxrL','Dg9VBa','ywrKAxrPB25HBfbYB3bLCNrPzxm','oNjLyxnVBMLUzW','BgvUz3rO','ChjVDMLKzxjtDgf0zq','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','Aw5JBhvKzxm','B3v0Chv0vg9Rzw5Z','CMfUzg9T','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','Dg9VBfj1BNrPBwu','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','C2LNBMfS','B2jZzxj2zxi','Aw5KzxG','Bwv0yq','C2v0vg9VBhm','CMvTB3zLrxzLBNrmAxn0zw5LCG','mtKWotqYmhrTz3DYCq','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','C3vIywDLBNrszxbVCNq','Dg9VBfjLC3vSDhm','BwfW','oIbLEhbLy3rLzcbUDw1Izxi','nZCWmZmXu3HMAvnu','Dw5RBM93BL90B29S','Bw9KzwXdywXSq291BNq','yw1VDw50vxnKvgLJA3m','y29UDgvUDa','BMv4Da','DhLWzq','CMvHC29UAw5Nvg9Rzw5Z','y29TCgXLDgvZuMvXDwvZDa','DhjHBNnPzw50sw5WDxq','Aw5WDxruB2TLBNm','oIbLEhbLy3rLzcbZDhjPBMC','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','zw5HyMXLza','ChjVCgvYDgLLCW','mtjlzgTbEeG','Dg90ywXjBNb1DfrVA2vUCW','ywn0Aw9U','nJGZnJG1DwT2B1zX','B25uB29Sq2fSBa','yMvMB3jLvg9VBev4zwn1DgLVBG','CMvXDwvZDenVDw50','oIbLEhbLy3rLzcbVBMuGB2yG','mtbSDhnAq3e','CMvNAxn0CNK','ywjVCNrLza','C3rYDwn0DxjLza','yw55t2y','C2vUzgvYqwDLBNrjza','DgvYBwLUywW','x3n5C3rLBvbYB21WDa','yxjYyxK','y2HHDe1VzgvS','C2L6zq','y29UDgvUDf9KzwX0yq','Bw9KzwW','Aw5WDxrezwX0yq','C3rYzwfTAw5N','y2H1BMS','CNvU','Dg9VBe5HBwu','zxHLy3v0zq','zMLUza','Dg9VBf91C2u','CMvHC29UAw5Nx21LC3nHz2u','Dg9VBf9ZDgfYDgvK','Dg90ywXdB3n0vxnKvgLJA3m','CMvQzwn0','ywz0zxjuB29SuMvZDwX0','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','z2v0','ChvZAa','zNvUy3rPB24','yxnRvxnLCG','zgvMyxvSDe1LC3nHz2u','Dg90ywXuB2TLBNm','C3rYAw5N','ugfYzw50ihrVB2WGzxHLy3v0Aw9UihnLDhrSzwq','CMvWB3j0zwrdB3n0q2fSBenVDw50','zMfPBa','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','y29VCMrPBMf0B3i','Bw9KzwXuAw1Ltxm','Dg9VBf91C2vFBwvZC2fNzq','BgfZDfjLC3bVBNnL','Dg9VBhncEu5HBwu','DgHPBMTPBMC','CMvHC29U','zNjLzxPL','DhvYBKLUzgv4','zw51Bq','DhvYBKLK','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','tw9KzwWGDxnHz2uGDg90ywWGB3zLCMzSB3C','DgHLBG','oMfZC2LZDgfUDdO','ywDLBNrjza','BNvTyMvY','A2LUza','zxn0Aw1HDgvKq29ZDa','zxjYB3i','yxnZAxn0yw50','yMvMB3jLtw9KzwXszxf1zxn0','ywjVCNq','yMvMB3jLrMLUywXpDxrWDxq','C2vZC2LVBKrPCG','ywz0zxjnB2rLBfjLC3bVBNnL','y2fSBeLK','ywXSu2v0DgXLza','Dg9VBf9Yzxn1Bhq','uhjVz3jHBq','Dg9VBf9JB21WBgv0zwq','Dg9VBf9JywXS','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','DhvYBI0','CNvUvhjHBNnMB3jTzxjZ','zgvSDge','C29YDa','zgvZy3jPChrPB24','Dg9VBf91C2vFy2H1BMS','C3rYAw5NAwz5','CMvWB3j0zwrdB3n0','C3rHDhvZ','BwLZC2LUz01VzgvSq2fSBenVDw50','B3v0Chv0','nujgt1vPva','CMvHC29UAw5Nu3rHCNrLzef0','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','CNvUt2jZzxj2zxjZ','mtmXmJmXmKfnBNnyDG','DhjHBNnMB3jTzxi','ChjVz3jHBs1YzxnVDxjJzs1SAw1PDa'];_0x22cd=function(){return _0x51f2c1;};return _0x22cd();}
1
+ (function(_0x26359e,_0x1492e3){const _0x12a560={_0x17e1a2:0x261,_0x400c88:0x24b,_0x2ab4af:0x176,_0x1d1ed6:0x260,_0xa2ded1:0x28d,_0x5245f5:0x1cc,_0x3f3097:0x307,_0x168fca:0x215,_0x18af02:0x161,_0xb0397c:0x1d8,_0x2c5434:0x2fb,_0x7ab0be:0x27a,_0x26d4c7:0x282,_0x35754a:0x2f1,_0x18c50e:0x30c,_0x4fac83:0x2f4,_0x2c518e:0x2ba,_0x5c6d5d:0x250,_0x4d4115:0x22e,_0x39ee73:0x204,_0x1a73e9:0x27f,_0x5d322a:0x348,_0x5cf518:0x2de},_0x41db8b={_0x1d06bc:0xa1},_0x304f29={_0x2609b9:0x67};function _0x39b992(_0x207aff,_0x3d379b,_0x3cf3c8,_0x1be191){return _0x3519(_0x1be191- -_0x304f29._0x2609b9,_0x207aff);}const _0x427fc3=_0x26359e();function _0x328161(_0x1a58cc,_0x1eb066,_0x112fae,_0x13cb74){return _0x3519(_0x112fae-_0x41db8b._0x1d06bc,_0x13cb74);}while(!![]){try{const _0x1d5ea3=-parseInt(_0x39b992(_0x12a560._0x17e1a2,_0x12a560._0x400c88,_0x12a560._0x2ab4af,0x1dc))/0x1+-parseInt(_0x328161(0x1f3,0x26b,_0x12a560._0x1d1ed6,0x22f))/0x2*(-parseInt(_0x328161(_0x12a560._0xa2ded1,0x241,0x21d,_0x12a560._0x5245f5))/0x3)+-parseInt(_0x328161(0x2fe,0x383,_0x12a560._0x3f3097,0x2eb))/0x4+parseInt(_0x39b992(_0x12a560._0x168fca,_0x12a560._0x18af02,0x241,_0x12a560._0xb0397c))/0x5*(-parseInt(_0x328161(_0x12a560._0x2c5434,_0x12a560._0x7ab0be,_0x12a560._0x26d4c7,_0x12a560._0x35754a))/0x6)+-parseInt(_0x328161(_0x12a560._0x18c50e,0x272,_0x12a560._0x4fac83,_0x12a560._0x2c518e))/0x7+-parseInt(_0x328161(0x225,0x1da,_0x12a560._0x5c6d5d,0x2b4))/0x8*(parseInt(_0x328161(0x2fc,0x26d,0x2f2,0x31b))/0x9)+parseInt(_0x328161(_0x12a560._0x4d4115,_0x12a560._0x39ee73,_0x12a560._0x1a73e9,0x291))/0xa*(parseInt(_0x328161(_0x12a560._0x5d322a,0x337,_0x12a560._0x5cf518,0x363))/0xb);if(_0x1d5ea3===_0x1492e3)break;else _0x427fc3['push'](_0x427fc3['shift']());}catch(_0x224ef5){_0x427fc3['push'](_0x427fc3['shift']());}}}(_0xbcd2,0x7dcb8));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(_0x1d5e55){const _0x5f121c={_0x8b09e5:0x3fb,_0x5ede16:0x3f5,_0x52958b:0x464},_0x1373bb={_0x171536:0x96},_0x19d9f2={_0x5b3ff9:0x2c1};function _0x42f966(_0x48f894,_0x576ce7,_0x15348e,_0x30e5ec){return _0x3519(_0x576ce7-_0x19d9f2._0x5b3ff9,_0x30e5ec);}function _0x571a9b(_0x3d91f8,_0x86fb74,_0x4a4481,_0x4474e1){return _0x3519(_0x4a4481- -_0x1373bb._0x171536,_0x86fb74);}return typeof _0x1d5e55===_0x42f966(0x435,0x451,_0x5f121c._0x8b09e5,_0x5f121c._0x5ede16)&&_0x1d5e55!==null&&!Array[_0x42f966(0x4ce,0x47a,0x47b,_0x5f121c._0x52958b)](_0x1d5e55);}function isToolOutputEnvelope(_0x30af11){const _0xeebfbe={_0x461f72:0x197,_0x4954e6:0x98,_0x51dc5c:0x14b,_0x4be9a0:0x1b4,_0x1a1ef1:0x388,_0x25a715:0x30d,_0x1a8711:0x372,_0x47d527:0x2e},_0x4bf903={_0x501741:0x29b};function _0x16196c(_0x3cec03,_0x4a3c36,_0x3e3c0e,_0x77bc90){return _0x3519(_0x3cec03- -_0x4bf903._0x501741,_0x4a3c36);}if(typeof _0x30af11!==_0x16196c(-0x10b,-_0xeebfbe._0x461f72,-_0xeebfbe._0x4954e6,-_0xeebfbe._0x51dc5c)||_0x30af11===null||Array[_0xdcc60f(0x2dd,0x344,0x320,0x2c4)](_0x30af11))return![];if(typeof _0x30af11[_0x16196c(-_0xeebfbe._0x51dc5c,-0xbd,-0x10f,-_0xeebfbe._0x4be9a0)]!==_0xdcc60f(_0xeebfbe._0x1a1ef1,_0xeebfbe._0x25a715,0x315,_0xeebfbe._0x1a8711))return![];function _0xdcc60f(_0x2e4f2b,_0x1f1c19,_0x37d74d,_0x50af63){return _0x3519(_0x1f1c19-0x18b,_0x2e4f2b);}const _0x58ced2=_0x30af11[_0x16196c(-0x88,-0x7f,-_0xeebfbe._0x47d527,-0x4c)];return _0x58ced2===void 0x0||isJsonObject(_0x58ced2);}function validateAgainstSchema(_0x1619d2,_0x3e7240,_0x405bf3){const _0x3c8c40={_0x2055f6:0x4bf,_0x5f56bf:0x448,_0x576e1c:0x4bb,_0x226e8b:0x51e,_0x23a2ee:0x559,_0x3e7248:0x4da,_0x220ea4:0x535,_0xb05911:0x545,_0x5e2fba:0x301,_0x558fb7:0x45a,_0x17f275:0x372,_0x59fc4c:0x29d,_0x260155:0x311,_0x412f5d:0x2a2,_0x5c873c:0x2bb,_0x26b05c:0x2d6,_0x28d3f7:0x4ae,_0x1981e5:0x48b,_0x48fb4f:0x4d9,_0x71ffb:0x236,_0x4bc8e5:0x2af,_0x1bc28d:0x337,_0x42e80b:0x4a4,_0x5c501c:0x48a,_0x49ccc2:0x2b8,_0xfda2f:0x300,_0x7eb18e:0x4e4,_0x2ce418:0x4b2,_0x33f0d7:0x2e5,_0x52fbda:0x30d,_0x1b4b05:0x2bb,_0x27c1c3:0x2ac,_0x395771:0x549,_0x202323:0x53f,_0x1c2c35:0x4b4,_0x29d52f:0x4e2,_0x5e4be7:0x4a2,_0x2a4032:0x307,_0x13c30c:0x26f,_0x1fc380:0x32d,_0x2decd6:0x52f,_0x5ac0c4:0x4f2,_0xb11ac0:0x584,_0x2394c3:0x2ab,_0x5f42fd:0x252,_0x278a5f:0x34e,_0x1f8ff3:0x32b,_0x5f253c:0x4e9,_0xc1496f:0x511,_0x110ab6:0x31e,_0x47abd5:0x2a0,_0x57997c:0x2f0,_0x6b4a3b:0x3ed,_0x41c6b3:0x36f,_0x54cffd:0x358,_0x7248c8:0x326,_0xf6ff99:0x38b,_0x5084a4:0x3ec,_0x4b5999:0x472,_0x308778:0x448,_0x4755af:0x4c5,_0x503407:0x274,_0x4bab32:0x26c,_0x462b9f:0x4d8,_0x38f90c:0x4d6,_0x303c92:0x522},_0x588a74={_0x4b6efe:0x563,_0x5c6bc2:0x50c,_0x85a348:0x4a3},_0x147600={_0x3462c0:0x2f6};function _0x3beeb1(_0x13df0d,_0x5d4dc5,_0x5124d8,_0x166222){return _0x3519(_0x5d4dc5-_0x147600._0x3462c0,_0x13df0d);}function _0x3876bd(_0x1c58e6,_0x5bcdd8,_0x67990c,_0x29a9a5){return _0x3519(_0x5bcdd8-0x11b,_0x29a9a5);}if(_0x3beeb1(_0x3c8c40._0x2055f6,0x4bb,0x48a,0x521)in _0x405bf3){const _0x5b7bf6=_0x405bf3[_0x3beeb1(_0x3c8c40._0x5f56bf,_0x3c8c40._0x576e1c,0x44f,_0x3c8c40._0x226e8b)][_0x3beeb1(_0x3c8c40._0x23a2ee,_0x3c8c40._0x3e7248,_0x3c8c40._0x220ea4,_0x3c8c40._0xb05911)](_0x3ce7dd=>{try{return validateAgainstSchema(_0x1619d2,_0x3e7240,_0x3ce7dd),!![];}catch{return![];}});if(!_0x5b7bf6)throw new Error(_0x3876bd(0x23f,0x2bb,0x314,_0x3c8c40._0x5e2fba)+_0x1619d2+_0x3beeb1(0x3dd,0x44e,0x3fe,_0x3c8c40._0x558fb7));return;}switch(_0x405bf3[_0x3876bd(0x2f9,_0x3c8c40._0x17f275,0x3c3,0x384)]){case _0x3876bd(0x22c,_0x3c8c40._0x59fc4c,0x21f,0x216):if(typeof _0x3e7240!==_0x3876bd(_0x3c8c40._0x260155,0x29d,0x325,0x30b))throw new Error(_0x3876bd(_0x3c8c40._0x412f5d,_0x3c8c40._0x5c873c,0x295,_0x3c8c40._0x26b05c)+_0x1619d2+_0x3beeb1(_0x3c8c40._0x28d3f7,0x4c1,_0x3c8c40._0x1981e5,_0x3c8c40._0x48fb4f));if(_0x405bf3[_0x3876bd(0x25f,0x2af,_0x3c8c40._0x71ffb,0x25c)]!==void 0x0&&!_0x405bf3[_0x3876bd(0x269,_0x3c8c40._0x4bc8e5,_0x3c8c40._0x1bc28d,0x327)]['includes'](_0x3e7240))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3beeb1(0x521,_0x3c8c40._0x42e80b,0x527,0x51c)+_0x405bf3[_0x3beeb1(0x407,_0x3c8c40._0x5c501c,0x4fa,0x416)][_0x3876bd(_0x3c8c40._0x49ccc2,_0x3c8c40._0xfda2f,0x2ec,0x358)](',\x20'));return;case _0x3beeb1(0x537,_0x3c8c40._0x7eb18e,_0x3c8c40._0x2ce418,0x4e3):if(typeof _0x3e7240!=='number')throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3876bd(_0x3c8c40._0x33f0d7,0x365,_0x3c8c40._0x52fbda,0x3eb));return;case'boolean':if(typeof _0x3e7240!=='boolean')throw new Error(_0x3876bd(0x258,_0x3c8c40._0x1b4b05,_0x3c8c40._0x27c1c3,0x252)+_0x1619d2+_0x3beeb1(_0x3c8c40._0x395771,0x514,_0x3c8c40._0x202323,0x4fe));return;case _0x3beeb1(_0x3c8c40._0x1c2c35,_0x3c8c40._0x29d52f,0x53b,_0x3c8c40._0x5e4be7):if(!Array[_0x3876bd(0x27f,0x2d4,_0x3c8c40._0x2a4032,_0x3c8c40._0x13c30c)](_0x3e7240))throw new Error(_0x3876bd(0x343,0x2bb,0x2c3,_0x3c8c40._0x1fc380)+_0x1619d2+_0x3876bd(0x315,0x34f,0x322,0x2fb));_0x3e7240[_0x3beeb1(0x4d3,_0x3c8c40._0x2decd6,_0x3c8c40._0x5ac0c4,_0x3c8c40._0xb11ac0)]((_0xa1c242,_0x382801)=>{function _0x246dc7(_0x75c555,_0x39511a,_0x4f4016,_0x5bf33e){return _0x3876bd(_0x75c555-0x20,_0x4f4016-0x1cf,_0x4f4016-0xc1,_0x75c555);}validateAgainstSchema(_0x1619d2+'['+_0x382801+']',_0xa1c242,_0x405bf3[_0x246dc7(0x4c1,_0x588a74._0x4b6efe,_0x588a74._0x5c6bc2,_0x588a74._0x85a348)]);});return;case _0x3876bd(0x224,_0x3c8c40._0x2394c3,_0x3c8c40._0x5f42fd,0x256):if(!isJsonObject(_0x3e7240))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3876bd(0x2f1,_0x3c8c40._0x278a5f,0x3c8,_0x3c8c40._0x1f8ff3));for(const _0x2eda46 of _0x405bf3[_0x3beeb1(_0x3c8c40._0x5f253c,_0x3c8c40._0xc1496f,0x571,0x56b)]??[]){if(!Object[_0x3876bd(_0x3c8c40._0x110ab6,0x2fb,_0x3c8c40._0x47abd5,_0x3c8c40._0x57997c)](_0x3e7240,_0x2eda46))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3876bd(_0x3c8c40._0x6b4a3b,_0x3c8c40._0x41c6b3,_0x3c8c40._0x54cffd,_0x3c8c40._0x7248c8)+_0x2eda46+'\x22');}if(_0x405bf3[_0x3876bd(0x30b,0x312,_0x3c8c40._0xf6ff99,0x323)]===![]){const _0xdebd63=Object[_0x3beeb1(_0x3c8c40._0x5084a4,0x467,0x4da,_0x3c8c40._0x4b5999)](_0x3e7240)['find'](_0xd546e7=>!Object[_0x3876bd(0x301,0x2fb,0x2aa,0x2fc)](_0x405bf3[_0x3876bd(0x31d,0x302,0x325,0x377)],_0xd546e7));if(_0xdebd63!==void 0x0)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3beeb1(0x3e2,_0x3c8c40._0x308778,_0x3c8c40._0x4755af,0x4b6)+_0xdebd63+'\x22');}for(const [_0x9c784b,_0x2df4fb]of Object[_0x3876bd(0x298,_0x3c8c40._0x503407,0x1f6,_0x3c8c40._0x4bab32)](_0x405bf3['properties'])){Object[_0x3beeb1(_0x3c8c40._0x462b9f,_0x3c8c40._0x38f90c,_0x3c8c40._0x303c92,0x4bb)](_0x3e7240,_0x9c784b)&&validateAgainstSchema(_0x1619d2+'.'+_0x9c784b,_0x3e7240[_0x9c784b],_0x2df4fb);}}}function normalizeToolOutputValue(_0x275ad7){const _0x597a54={_0x546e8e:0x17b,_0x80a842:0xf8,_0x4844c1:0x12d,_0x204036:0x171,_0x29987f:0x1da,_0x209a04:0x211,_0x3ad9dd:0x164,_0x18994f:0x2b6,_0x399a61:0x190,_0x24dfeb:0xfc,_0x40d78a:0x1ff,_0x59b707:0x1b0,_0x2ac040:0x241,_0x3a3c43:0x21a,_0x5ccdcd:0x195,_0x49ebb5:0x196,_0x57173f:0x2a0,_0x5be20b:0x287,_0x50fb4e:0x2ec,_0x3807ea:0x2ed};if(isToolOutputEnvelope(_0x275ad7))return{'output':_0x275ad7[_0x26dd83(_0x597a54._0x546e8e,0x167,_0x597a54._0x80a842,_0x597a54._0x4844c1)],'structured':_0x275ad7['structured']??{'value':_0x275ad7[_0x2c64de(0x1bf,0x15e,0x200,_0x597a54._0x204036)]},..._0x275ad7[_0x26dd83(_0x597a54._0x29987f,_0x597a54._0x209a04,_0x597a54._0x3ad9dd,0x1b6)]!==void 0x0?{'content':_0x275ad7[_0x2c64de(0x248,_0x597a54._0x18994f,0x281,0x1de)]}:{}};if(typeof _0x275ad7===_0x26dd83(_0x597a54._0x399a61,_0x597a54._0x24dfeb,0x186,0x15f))return{'output':_0x275ad7,'structured':{'value':_0x275ad7}};if(typeof _0x275ad7===_0x2c64de(_0x597a54._0x40d78a,0x1a9,_0x597a54._0x59b707,_0x597a54._0x2ac040)&&_0x275ad7!==null&&!Array[_0x26dd83(_0x597a54._0x3a3c43,0x223,_0x597a54._0x5ccdcd,_0x597a54._0x49ebb5)](_0x275ad7))return{'output':JSON[_0x2c64de(0x287,0x269,_0x597a54._0x57173f,0x2c6)](_0x275ad7,null,0x2),'structured':_0x275ad7};function _0x2c64de(_0x2b4782,_0x46c7c2,_0x2b257d,_0x27a70b){return _0x3519(_0x2b4782-0x6f,_0x46c7c2);}function _0x26dd83(_0x445ed1,_0x9d35ba,_0x3e502e,_0x447b24){return _0x3519(_0x447b24- -0x23,_0x445ed1);}return{'output':JSON[_0x2c64de(_0x597a54._0x5be20b,_0x597a54._0x50fb4e,0x2e9,_0x597a54._0x3807ea)](_0x275ad7,null,0x2),'structured':{'value':_0x275ad7}};}function createToolOutput(_0x113b18,_0x266cb7={'value':_0x113b18},_0x2ce500){return{'output':_0x113b18,'structured':_0x266cb7,..._0x2ce500!==void 0x0?{'content':_0x2ce500}:{}};}var ToolExecutionError=class extends Error{[_0xf3454f(0x2c5,0x24f,0x2f8,0x2e2)];constructor(_0x353f61,_0xda1bbc={}){const _0x522e40={_0x574a94:0x3c9,_0x496544:0x429},_0x1cf4b1={_0x3849a9:0x164,_0x493ef8:0xfd},_0xb7d56d={_0x233629:0x17c,_0x339782:0x1b4};function _0x1946a9(_0x5b7887,_0x4df3f2,_0x64390c,_0x2cf1d4){return _0xf3454f(_0x64390c- -0x334,_0x4df3f2-_0xb7d56d._0x233629,_0x4df3f2,_0x2cf1d4-_0xb7d56d._0x339782);}super(_0x353f61);function _0x19ff61(_0x51a835,_0x3c2906,_0x172cd2,_0x1c36cf){return _0xf3454f(_0x1c36cf-_0x1cf4b1._0x3849a9,_0x3c2906-0x120,_0x51a835,_0x1c36cf-_0x1cf4b1._0x493ef8);}this[_0x19ff61(0x402,0x414,0x43d,_0x522e40._0x574a94)]='ToolExecutionError',this[_0x19ff61(0x43b,0x3f9,0x451,_0x522e40._0x496544)]=_0xda1bbc;}};function defineTool(_0x4e6177){return _0x4e6177;}function resolveToolPermissionClass(_0x20588c){const _0x2a9a42={_0x1c5bdd:0x1de,_0x53ba6b:0x198,_0x5c9c5e:0x558,_0x2f3cd0:0x513,_0xf8ff6c:0x178,_0x1bf4a0:0x1a7,_0x2d72c8:0x189},_0x31c8fd={_0x54da3a:0x28},_0x3c3b5b={_0x1c9d28:0x108,_0x26c253:0x159};function _0x169d28(_0x2c1e7e,_0x5691eb,_0x1706af,_0x5124c1){return _0xf3454f(_0x5124c1- -_0x3c3b5b._0x1c9d28,_0x5691eb-_0x3c3b5b._0x26c253,_0x5691eb,_0x5124c1-0x4c);}function _0x299fcf(_0x2b8387,_0x408d15,_0x300db4,_0x29288a){return _0xf3454f(_0x29288a-0x22a,_0x408d15-0x14f,_0x408d15,_0x29288a-_0x31c8fd._0x54da3a);}const _0x39b4bc=_0x20588c?.[_0x169d28(_0x2a9a42._0x1c5bdd,0xde,_0x2a9a42._0x53ba6b,0x15a)];if(_0x39b4bc===_0x299fcf(_0x2a9a42._0x5c9c5e,_0x2a9a42._0x2f3cd0,0x49d,0x4ce)||_0x39b4bc==='write'||_0x39b4bc===_0x169d28(0x12f,0x1bc,0x1fe,_0x2a9a42._0xf8ff6c))return _0x39b4bc;return _0x169d28(0x171,_0x2a9a42._0x1bf4a0,_0x2a9a42._0x2d72c8,0x178);}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x25dcf0=[]){for(const _0x3e9553 of _0x25dcf0){this['register'](_0x3e9553);}}['register'](_0x1c48eb){const _0x230d82={_0x2f9976:0x3b,_0xbdb889:0x5d,_0x2169e6:0x13,_0x440b81:0x53,_0x2aa60c:0xeb},_0x247056={_0x4beef7:0x325,_0x5f3f3a:0x16d},_0x1cacd1={_0x36a5d4:0xcb};function _0x574ba5(_0x2c376b,_0x20834f,_0x22d6a6,_0x342783){return _0xf3454f(_0x22d6a6-0x9b,_0x20834f-_0x1cacd1._0x36a5d4,_0x342783,_0x342783-0x189);}function _0x4c50c8(_0x88f40f,_0x32a6d4,_0x4723fe,_0x3e862c){return _0xf3454f(_0x88f40f- -_0x247056._0x4beef7,_0x32a6d4-_0x247056._0x5f3f3a,_0x3e862c,_0x3e862c-0x69);}this[_0x4c50c8(-_0x230d82._0x2f9976,-_0x230d82._0xbdb889,-_0x230d82._0x2169e6,_0x230d82._0x440b81)]['set'](_0x1c48eb[_0x4c50c8(-0xc0,-_0x230d82._0x2aa60c,-0xe0,-0x54)],_0x1c48eb);}['get'](_0x309293){const _0x357930={_0x56a598:0x22e,_0x451552:0x1e7,_0x1c30bb:0x265},_0x567bb0={_0x1aa043:0xd8};function _0x4e171f(_0xcd0c14,_0x1914ea,_0x907625,_0x478d1b){return _0xf3454f(_0x1914ea- -0x103,_0x1914ea-_0x567bb0._0x1aa043,_0x478d1b,_0x478d1b-0x1f4);}return this[_0x4e171f(_0x357930._0x56a598,_0x357930._0x451552,0x15d,_0x357930._0x1c30bb)]['get'](_0x309293);}['list'](){const _0x350df3={_0x346c28:0x25a,_0x81cee5:0x1ae},_0x3f0eba={_0x4281c1:0x1a3,_0x18196d:0xe6};function _0x24bb2b(_0x159c4a,_0x11dd74,_0x131378,_0xfd42ac){return _0xf3454f(_0x131378- -0xe3,_0x11dd74-_0x3f0eba._0x4281c1,_0x159c4a,_0xfd42ac-_0x3f0eba._0x18196d);}return[...this[_0x24bb2b(_0x350df3._0x346c28,_0x350df3._0x81cee5,0x207,0x203)]['values']()];}[_0xf3454f(0x2b8,0x343,0x338,0x264)](){const _0x30ce18={_0xe25a8e:0x16a};return this['list']()['map'](_0x49d65e=>{function _0x1f432a(_0xb36dec,_0x1fe0d3,_0x17514b,_0x332250){return _0x3519(_0x332250- -0x2ac,_0xb36dec);}return{'name':_0x49d65e[_0x1f432a(-_0x30ce18._0xe25a8e,-0x70,-0xec,-0xf9)],'description':_0x49d65e['description'],'input_schema':_0x49d65e['inputSchema']};});}};function validateToolInput(_0x4fca49,_0x3156e7){const _0x44d7f6={_0x402f6d:0xb5,_0x511a0a:0x9f},_0x26fb0f={_0x291e90:0x1ca};function _0x24f2dd(_0xf1f258,_0x1b420c,_0xc6fcd8,_0x60a0c0){return _0x3f402d(_0xf1f258-0xe4,_0x1b420c- -0x285,_0xc6fcd8-_0x26fb0f._0x291e90,_0xf1f258);}return validateAgainstSchema(_0x24f2dd(-0x8a,-_0x44d7f6._0x402f6d,-0x12a,-_0x44d7f6._0x511a0a),_0x4fca49,_0x3156e7),_0x4fca49;}function deriveFinalToolOutput(_0x34aadb){const _0x5b32bb={_0x81a0fc:0x90,_0x52dfcf:0x16f,_0x46b0f7:0xfe,_0x4148d9:0xc5,_0x3ad326:0xb4,_0x207d7d:0x11a,_0xc8bfb:0x75,_0x186832:0x97,_0x51574c:0x46,_0x2c1da6:0x5d,_0x6bd09:0xb9,_0x1fafe8:0x78,_0x15651c:0xed,_0x3398b3:0x69,_0xade348:0xe6,_0x187372:0x58,_0x5053fe:0xe,_0x72abb2:0x11,_0xff56c2:0x86,_0x521620:0xaf,_0x533d7e:0x16a,_0x8279ae:0x130},_0xf2b879={_0x4b0623:0x300,_0x21d51b:0x74},_0x48e702={_0x335d0a:0xd5,_0x3a791e:0x8};function _0x227b08(_0x4f15e1,_0x33cb4a,_0x4be732,_0x4cc583){return _0x3f402d(_0x4f15e1-0xcf,_0x4be732- -_0x48e702._0x335d0a,_0x4be732-_0x48e702._0x3a791e,_0x4f15e1);}if(_0x34aadb[_0x2b3eb8(-0x5f,-0x61,-0x14,-_0x5b32bb._0x81a0fc)]===0x0)return{'output':'','structured':{}};if(_0x34aadb[_0x227b08(_0x5b32bb._0x52dfcf,0xa4,0xf6,0x9d)]===0x1)return{'output':_0x34aadb[0x0][_0x2b3eb8(-_0x5b32bb._0x46b0f7,-0x159,-_0x5b32bb._0x4148d9,-_0x5b32bb._0x3ad326)],'structured':_0x34aadb[0x0][_0x227b08(0x180,0x113,_0x5b32bb._0x207d7d,0x192)],..._0x34aadb[0x0][_0x2b3eb8(-0x75,0x17,-0xa5,-0xd2)]!==void 0x0?{'content':_0x34aadb[0x0][_0x2b3eb8(-_0x5b32bb._0xc8bfb,-_0x5b32bb._0x186832,-0x3e,-0x37)]}:{}};const _0x337cf6=_0x34aadb[_0x227b08(_0x5b32bb._0x51574c,0xd6,_0x5b32bb._0x2c1da6,_0x5b32bb._0x6bd09)](_0x40216c=>_0x40216c[_0x227b08(0xa6,0x97,0xe0,0x12c)]!==void 0x0);function _0x2b3eb8(_0x24bb38,_0x12a053,_0x151ed8,_0x4a51cf){return _0xf3454f(_0x24bb38- -_0xf2b879._0x4b0623,_0x12a053-0xde,_0x4a51cf,_0x4a51cf-_0xf2b879._0x21d51b);}return{'output':_0x34aadb[_0x2b3eb8(-0xcf,-0x73,-_0x5b32bb._0x1fafe8,-_0x5b32bb._0x15651c)](_0x32f133=>_0x32f133[_0x227b08(0x6c,0x57,0x57,0x35)])[_0x2b3eb8(-_0x5b32bb._0x3398b3,-_0x5b32bb._0xade348,-_0x5b32bb._0x187372,-_0x5b32bb._0x5053fe)](''),'structured':{'chunks':_0x34aadb[_0x227b08(_0x5b32bb._0x72abb2,0x2b,_0x5b32bb._0xff56c2,_0x5b32bb._0x521620)](_0x19e6c9=>_0x19e6c9[_0x227b08(0xc5,0x19d,0x11a,0x92)])},..._0x337cf6[_0x227b08(_0x5b32bb._0x533d7e,0xf9,0xf6,_0x5b32bb._0x8279ae)]===0x1?{'content':_0x337cf6[0x0]['content']}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0x489e3c){const _0x3906df={_0x581fa4:0x5f8,_0x51e9d7:0x5d6,_0x166994:0x61f,_0x3b0278:0x164,_0x55e056:0x1c5,_0x19de50:0x55b},_0x20cc7e={_0x1001c7:0x163,_0x45812a:0x3f5,_0x55f675:0xf1},_0x10087c={_0x32d33e:0x11d,_0x5ef2b3:0x2f3,_0x2ba854:0x12};function _0x466899(_0x153db2,_0x42cb56,_0x548b88,_0x245725){return _0x3f402d(_0x153db2-_0x10087c._0x32d33e,_0x153db2- -_0x10087c._0x5ef2b3,_0x548b88-_0x10087c._0x2ba854,_0x548b88);}super(_0xd05f9d(_0x3906df._0x581fa4,0x568,_0x3906df._0x51e9d7,_0x3906df._0x166994),{'cause':_0x489e3c});function _0xd05f9d(_0x52c504,_0x557bbe,_0x38f8ec,_0x457df2){return _0x3f402d(_0x52c504-_0x20cc7e._0x1001c7,_0x38f8ec-_0x20cc7e._0x45812a,_0x38f8ec-_0x20cc7e._0x55f675,_0x557bbe);}this[_0x466899(-_0x3906df._0x3b0278,-_0x3906df._0x55e056,-0x17d,-0x14d)]=_0xd05f9d(0x4ec,0x514,_0x3906df._0x19de50,0x518);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x5be311,_0x48bcd7){const _0x1f563c={_0x69f241:0xc0,_0x417955:0xe0};function _0x6464a3(_0x1efc98,_0x2dab43,_0x31a813,_0xfaab3d){return _0xf3454f(_0x1efc98-0x286,_0x2dab43-_0x1f563c._0x69f241,_0x2dab43,_0xfaab3d-_0x1f563c._0x417955);}_0x5be311&&boundNestedExecutionControls['get'](_0x5be311)?.[_0x6464a3(0x498,0x474,0x49b,0x4ed)](_0x48bcd7);}async function drainBoundNestedToolPersistence(_0x551eaf){const _0x98debd={_0x58a996:0x38c,_0x4494d2:0x31c,_0x1249fb:0x408},_0x4f7e8f={_0x114cbc:0x146};function _0x55416a(_0x4e7bec,_0x2f1ba6,_0x6dbec7,_0xe7f4c5){return _0x3f402d(_0x4e7bec-0x95,_0x4e7bec-_0x4f7e8f._0x114cbc,_0x6dbec7-0x101,_0xe7f4c5);}_0x551eaf&&await boundNestedExecutionControls['get'](_0x551eaf)?.[_0x55416a(_0x98debd._0x58a996,_0x98debd._0x4494d2,_0x98debd._0x1249fb,0x3f3)]();}function commitBoundToolExecutionTerminalState(_0x1b014e){const _0x31c703={_0x4caee5:0xb3,_0x2af00a:0x24,_0x362708:0x84,_0x18328b:0x181,_0x30f2d4:0x1b1,_0x4d9c80:0x198},_0x313071={_0xd86efb:0x1cc},_0x11b0a0={_0x876d2c:0xa4};function _0x2d0608(_0x3bfa22,_0xd9d78f,_0x185ab3,_0x18c7fe){return _0xf3454f(_0x18c7fe- -0x12e,_0xd9d78f-_0x11b0a0._0x876d2c,_0xd9d78f,_0x18c7fe-0x1d3);}function _0x4172a5(_0x3990b7,_0x82f0d,_0x1645a3,_0x7c71df){return _0xf3454f(_0x1645a3- -0x219,_0x82f0d-_0x313071._0xd86efb,_0x3990b7,_0x7c71df-0x107);}_0x1b014e&&boundNestedExecutionControls[_0x4172a5(_0x31c703._0x4caee5,_0x31c703._0x2af00a,_0x31c703._0x362708,0x97)](_0x1b014e)?.[_0x2d0608(_0x31c703._0x18328b,_0x31c703._0x30f2d4,0x223,_0x31c703._0x4d9c80)]();}var PARENT_TOOL_SETTLED_MESSAGE='Parent\x20tool\x20execution\x20settled';function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x5132ad,_0x301424,_0x41d735,_0x4861e4,_0x100736=[]){return{'callId':_0x5132ad,'toolName':_0x301424,'status':'error','output':_0x41d735,'structured':_0x4861e4,'chunks':_0x100736,'meta':createToolMeta()};}function _0xf3454f(_0x4df06c,_0x19be7e,_0x40aa7a,_0x1a53cf){return _0x3519(_0x4df06c-0xb2,_0x40aa7a);}function createRejectedToolResult(_0x419cca,_0x5944fe,_0x3f213b){const _0x19384d={_0x2d6471:0x4f6,_0x4b31a6:0x39f,_0x3d371c:0x32f,_0x38c100:0x4e4,_0x14c1b4:0x304,_0x3dde99:0x336,_0x1ee627:0x324,_0x419b1b:0x55b,_0x19a244:0x567,_0x313952:0x507},_0x15fe8c={_0x521055:0x269},_0xcd8c23={_0x407817:0xa0};function _0x5f1220(_0x1f07e5,_0x38d112,_0x5d8c7c,_0x1f7e96){return _0x3f402d(_0x1f07e5-_0xcd8c23._0x407817,_0x1f07e5-0x1d4,_0x5d8c7c-0x2b,_0x38d112);}function _0x4fa465(_0x158e88,_0x46821d,_0x3e7a20,_0xbca5d1){return _0xf3454f(_0x46821d-_0x15fe8c._0x521055,_0x46821d-0x1dd,_0xbca5d1,_0xbca5d1-0x37);}const _0x1e4eb9=_0x3f213b?.[_0x4fa465(0x4e7,_0x19384d._0x2d6471,0x48e,0x477)]()[_0x5f1220(_0x19384d._0x4b31a6,0x378,0x36c,_0x19384d._0x3d371c)]?_0x3f213b:'Tool\x20execution\x20rejected\x20for\x20'+_0x5944fe;return createErrorToolResult(_0x419cca,_0x5944fe,_0x1e4eb9,{'error':_0x4fa465(0x4f4,_0x19384d._0x38c100,0x551,0x566),..._0x3f213b?.[_0x5f1220(0x38b,_0x19384d._0x14c1b4,_0x19384d._0x3dde99,_0x19384d._0x1ee627)]()[_0x4fa465(_0x19384d._0x419b1b,0x50a,_0x19384d._0x19a244,_0x19384d._0x313952)]?{'reason':_0x3f213b}:{}});}function createAbortedToolResult(_0x43d943,_0x4287c9,_0x1a4f6a,_0x1792cc=[]){const _0x4ce384={_0x19700e:0x27f,_0xf55612:0x14d,_0x41a652:0x20e,_0x2de77f:0x1c2,_0x30cae4:0x1e2,_0x25634c:0x192,_0x6cf159:0x1c2,_0x26fa8e:0x99},_0x1cc910={_0xf77366:0x30},_0x328188={_0x27da08:0x16b};function _0x1e4b88(_0x54b1af,_0x316a45,_0x237e77,_0x2c3e74){return _0x3f402d(_0x54b1af-0x19b,_0x237e77- -0x156,_0x237e77-_0x328188._0x27da08,_0x54b1af);}function _0xaae409(_0x25fb2b,_0x587bf9,_0x1a2166,_0x337da9){return _0x3f402d(_0x25fb2b-0x1d9,_0x337da9- -_0x1cc910._0xf77366,_0x1a2166-0x175,_0x25fb2b);}if(_0x4287c9==='Program')return createErrorToolResult(_0x43d943,_0x4287c9,_0xaae409(0x19c,_0x4ce384._0x19700e,0x19a,0x206),{'error':_0xaae409(0x1d2,0x142,0xe2,_0x4ce384._0xf55612),'aborted':!![]},_0x1792cc);const _0x290e61=toAbortError(_0x1a4f6a);return createErrorToolResult(_0x43d943,_0x4287c9,_0x290e61[_0xaae409(0x201,_0x4ce384._0x41a652,0x216,_0x4ce384._0x2de77f)],{'error':_0x290e61[_0xaae409(0x16f,_0x4ce384._0x30cae4,_0x4ce384._0x25634c,_0x4ce384._0x6cf159)],..._0x1a4f6a instanceof ToolExecutionError?_0x1a4f6a[_0x1e4b88(0x62,0x7a,_0x4ce384._0x26fa8e,0xe)]:{},'aborted':!![]},_0x1792cc);}function createSuccessToolResult(_0x59104f,_0xb49fba,_0x53e08a,_0x39883b){const _0x11446c={_0x5e847a:0x2ce,_0x166f9b:0x279,_0x5dd5de:0x453,_0x5ab2db:0x446,_0x4bfa61:0x4b6,_0x2604ec:0x419,_0xaecf68:0x48c},_0x1dffe9={_0x2dea60:0xd9},_0x517a7c={_0xb80a47:0x14d,_0x4ac413:0xbc};function _0xde1f25(_0x50b21d,_0x4f4796,_0x15086b,_0x180aa7){return _0x3f402d(_0x50b21d-0x80,_0x180aa7-_0x517a7c._0xb80a47,_0x15086b-_0x517a7c._0x4ac413,_0x4f4796);}function _0x28bad1(_0x55f799,_0x3bd1b1,_0x238f29,_0x5cfcbe){return _0x3f402d(_0x55f799-0x1f2,_0x55f799-0x264,_0x238f29-_0x1dffe9._0x2dea60,_0x238f29);}return{'callId':_0x59104f,'toolName':_0xb49fba,'status':'ok','output':_0x53e08a[_0xde1f25(0x2e6,_0x11446c._0x5e847a,0x29c,_0x11446c._0x166f9b)],'structured':_0x53e08a[_0x28bad1(_0x11446c._0x5dd5de,0x424,_0x11446c._0x5ab2db,_0x11446c._0x4bfa61)],..._0x53e08a['content']!==void 0x0?{'content':_0x53e08a[_0x28bad1(_0x11446c._0x2604ec,0x41f,0x3b5,_0x11446c._0xaecf68)]}:{},'chunks':_0x39883b,'meta':createToolMeta()};}function createUnknownToolResult(_0x4ea6c2,_0x443460){const _0x1257bc={_0x58a77e:0x575,_0x17c74c:0x4f0,_0x30a14a:0x551},_0x25fddd={_0x40dafa:0xb9};function _0x5c3bf1(_0x5c9121,_0x3d135b,_0x55fe8d,_0x1e970e){return _0xf3454f(_0x3d135b-0x2b3,_0x3d135b-0x158,_0x5c9121,_0x1e970e-_0x25fddd._0x40dafa);}return createErrorToolResult(_0x4ea6c2,_0x443460,'Unknown\x20tool:\x20'+_0x443460,{'error':_0x5c3bf1(_0x1257bc._0x58a77e,_0x1257bc._0x17c74c,_0x1257bc._0x30a14a,0x48a)});}function cloneToolCallForPublication(_0x41e27e,_0x55c54b,_0x3a9960){const _0x2d2d68={_0x448a89:0x82,_0x4d99f4:0x22,_0x188b87:0xb},_0x5d2b6d={_0x36a0b6:0x2f,_0xc0aa1d:0x113};function _0x144bfc(_0x432e2e,_0x2aeda3,_0x135bf2,_0x258937){return _0x3f402d(_0x432e2e-_0x5d2b6d._0x36a0b6,_0x258937- -0x207,_0x135bf2-_0x5d2b6d._0xc0aa1d,_0x2aeda3);}return{...structuredClone(_0x41e27e),'type':_0x144bfc(_0x2d2d68._0x448a89,0x62,_0x2d2d68._0x4d99f4,_0x2d2d68._0x188b87),'id':_0x55c54b,'name':_0x3a9960};}function cloneToolResultChunkForPublication(_0x43f4a3){return structuredClone(_0x43f4a3);}function cloneToolResultForPublication(_0x3c1f9c,_0x193925,_0x20edc7){const _0xa9fa46={_0x213126:0x267,_0x1b82e7:0x224},_0x4cd242={_0x31f40d:0x396},{chunks:_0x38b496,..._0x4bb5f5}=_0x3c1f9c;function _0x283eae(_0xfdb3c8,_0xdbd7c9,_0x40013e,_0x79e6f2){return _0x3f402d(_0xfdb3c8-0x3e,_0x40013e- -_0x4cd242._0x31f40d,_0x40013e-0x62,_0x79e6f2);}return{...structuredClone(_0x4bb5f5),'callId':_0x193925,'toolName':_0x20edc7,'chunks':_0x38b496[_0x283eae(-0x26f,-_0xa9fa46._0x213126,-0x23b,-_0xa9fa46._0x1b82e7)](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x5a7009){const _0x2b89da={_0x246ffa:0x237,_0xc707fd:0x5a5,_0x5bb226:0x507},_0x4bb9a1={_0x365209:0x106,_0x632ee4:0x19d},_0x324c9c={_0x138093:0x141};function _0x1d8fa0(_0xfb9639,_0x3bca6e,_0x2fbd8b,_0x5224af){return _0x3f402d(_0xfb9639-_0x324c9c._0x138093,_0x2fbd8b-0x3b2,_0x2fbd8b-0x62,_0xfb9639);}if(typeof _0x5a7009!==_0x1d8fa0(0x4b5,0x50b,0x51e,0x4ca)||_0x5a7009===null)return![];function _0x3d67a1(_0x2c025a,_0x107690,_0x54570a,_0x221419){return _0xf3454f(_0x221419- -0x65,_0x107690-_0x4bb9a1._0x365209,_0x107690,_0x221419-_0x4bb9a1._0x632ee4);}return _0x5a7009['action']==='reject'||_0x5a7009[_0x3d67a1(0x1f6,_0x2b89da._0x246ffa,0x29a,0x24a)]===_0x1d8fa0(_0x2b89da._0xc707fd,0x4d4,0x51a,_0x2b89da._0x5bb226);}function normalizeExecutionError(_0x5c6056){const _0x445e72={_0x42c08a:0x42a,_0xd8adb9:0x44d,_0x154419:0x3ee,_0x19017a:0x36f,_0x547956:0x3c0,_0x51f9d5:0x325,_0x318b78:0x301,_0xac9fc4:0x457,_0x2d1ba7:0x361,_0x1521c6:0x3df,_0x21f17a:0x3f5,_0x317422:0x40d},_0x2764e9={_0x422127:0x15b};function _0x567e4d(_0x6455c8,_0x25e1a7,_0xcfc9c0,_0x56f62f){return _0x3f402d(_0x6455c8-0x7f,_0x56f62f-0x1b6,_0xcfc9c0-0xd2,_0x6455c8);}function _0x2c2cbf(_0x341bdb,_0x3e55d5,_0x52c848,_0x3704ba){return _0x3f402d(_0x341bdb-0x42,_0x341bdb-0x203,_0x52c848-_0x2764e9._0x422127,_0x3e55d5);}if(_0x5c6056 instanceof ToolExecutionError)return{'errorMessage':_0x5c6056['message'],'structured':{'error':_0x5c6056['message'],..._0x5c6056[_0x2c2cbf(0x3f2,0x473,0x448,_0x445e72._0x42c08a)]}};if(_0x5c6056 instanceof Error)return{'errorMessage':_0x5c6056[_0x2c2cbf(0x3f5,_0x445e72._0xd8adb9,0x434,0x3e0)],'structured':{'error':_0x5c6056[_0x2c2cbf(0x3f5,_0x445e72._0x154419,0x3dc,0x43e)]}};if(typeof _0x5c6056===_0x2c2cbf(_0x445e72._0x19017a,_0x445e72._0x547956,_0x445e72._0x51f9d5,_0x445e72._0x318b78)&&_0x5c6056!==null&&'message'in _0x5c6056&&typeof _0x5c6056[_0x2c2cbf(0x3f5,0x46c,0x3f1,_0x445e72._0xac9fc4)]===_0x2c2cbf(_0x445e72._0x2d1ba7,0x37e,0x371,_0x445e72._0x1521c6))return{'errorMessage':_0x5c6056[_0x2c2cbf(_0x445e72._0x21f17a,_0x445e72._0x317422,0x39a,0x374)],'structured':{'error':_0x5c6056['message']}};const _0xdf8bd=String(_0x5c6056);return{'errorMessage':_0xdf8bd,'structured':{'error':_0xdf8bd}};}function cloneToolEventForPublication(_0x54ecce){const _0x4ef3e5={_0x1ac7a8:0x107,_0x423ec2:0x97,_0x12e289:0x1ba,_0x3599d8:0x176,_0x22abcf:0x19e,_0x5e7221:0x1c4,_0x23c57a:0x160,_0x2a1389:0x177,_0x1c3e9f:0xf9,_0x17a8ee:0x9b,_0x123336:0x149,_0x5e35bc:0x12d,_0x36266c:0x1cc,_0x58a0cc:0x1a9,_0xe6544d:0x1ea,_0xcc18f4:0x109,_0x1d7b66:0x122,_0x43b353:0xe3,_0x3b11c9:0x16d,_0x2662cd:0x141,_0x4ced04:0x184,_0xcaee62:0x11f,_0x1cea0e:0x16c,_0x53b6a2:0x1d1,_0x4f3a66:0x141,_0x35fdf8:0x1b6,_0x3d4cb8:0x1ac,_0x5cf3bd:0x197,_0x312c76:0xfb,_0xa22567:0x1ca,_0xc0abbd:0x14f,_0x56ad54:0x13b,_0x385696:0x11d,_0x44236e:0x11e,_0x56ac5d:0x1ac,_0x4ecc4e:0x131,_0x3bcda9:0x94,_0x13d452:0x13c,_0x5edf89:0x186},_0x3b79f3={_0x53785c:0x136,_0x598527:0x6a},_0x2bda8e={_0x3b58b7:0x15c,_0x37b2b3:0x47,_0x1200cd:0x17e};function _0xe16f55(_0x4f6029,_0x11ee12,_0x2babc1,_0x441c22){return _0xf3454f(_0x11ee12- -_0x2bda8e._0x3b58b7,_0x11ee12-_0x2bda8e._0x37b2b3,_0x441c22,_0x441c22-_0x2bda8e._0x1200cd);}function _0x199f83(_0x1d2234,_0x3c114d,_0x15e72e,_0x36c2db){return _0x3f402d(_0x1d2234-_0x3b79f3._0x53785c,_0x1d2234- -_0x3b79f3._0x598527,_0x15e72e-0x1cf,_0x36c2db);}switch(_0x54ecce['type']){case _0xe16f55(0x163,_0x4ef3e5._0x1ac7a8,_0x4ef3e5._0x423ec2,0xf2):case _0xe16f55(0x149,0x183,_0x4ef3e5._0x12e289,_0x4ef3e5._0x3599d8):return{..._0x54ecce,'toolCall':cloneToolCallForPublication(_0x54ecce['toolCall'],_0x54ecce['toolCall']['id'],_0x54ecce[_0x199f83(_0x4ef3e5._0x22abcf,_0x4ef3e5._0x5e7221,_0x4ef3e5._0x23c57a,_0x4ef3e5._0x2a1389)][_0xe16f55(_0x4ef3e5._0x1c3e9f,0x109,_0x4ef3e5._0x17a8ee,0x189)])};case _0x199f83(_0x4ef3e5._0x123336,0x1c1,_0x4ef3e5._0x5e35bc,0x109):return{..._0x54ecce,'toolCall':cloneToolCallForPublication(_0x54ecce[_0x199f83(_0x4ef3e5._0x22abcf,_0x4ef3e5._0x36266c,0x160,0x1e3)],_0x54ecce['toolCall']['id'],_0x54ecce[_0x199f83(0x19e,_0x4ef3e5._0x58a0cc,_0x4ef3e5._0xe6544d,0x14d)][_0xe16f55(0xb8,_0x4ef3e5._0xcc18f4,_0x4ef3e5._0x1d7b66,_0x4ef3e5._0x43b353)]),'chunk':cloneToolResultChunkForPublication(_0x54ecce[_0x199f83(_0x4ef3e5._0x3b11c9,0x1b0,_0x4ef3e5._0x2662cd,0x1f9)])};case _0x199f83(0x1d1,0x1b4,0x189,0x241):case _0xe16f55(_0x4ef3e5._0x4ced04,_0x4ef3e5._0xcaee62,0x111,0x16f):return{..._0x54ecce,'toolCall':cloneToolCallForPublication(_0x54ecce[_0x199f83(0x19e,0x225,0x141,_0x4ef3e5._0x1cea0e)],_0x54ecce[_0x199f83(0x19e,0x17b,_0x4ef3e5._0x53b6a2,0x1d1)]['id'],_0x54ecce[_0x199f83(0x19e,0x21e,0x16c,_0x4ef3e5._0x4f3a66)]['name']),'result':cloneToolResultForPublication(_0x54ecce[_0xe16f55(_0x4ef3e5._0x35fdf8,_0x4ef3e5._0x3d4cb8,_0x4ef3e5._0x5cf3bd,0x23a)],_0x54ecce['toolCall']['id'],_0x54ecce[_0xe16f55(0x15d,0x182,_0x4ef3e5._0x312c76,_0x4ef3e5._0xa22567)][_0xe16f55(_0x4ef3e5._0xc0abbd,0x109,0xe6,_0x4ef3e5._0x56ad54)])};case _0xe16f55(_0x4ef3e5._0x385696,0x110,0x16f,0x112):return{..._0x54ecce,'result':cloneToolResultForPublication(_0x54ecce['result'],_0x54ecce[_0xe16f55(_0x4ef3e5._0x44236e,_0x4ef3e5._0x56ac5d,_0x4ef3e5._0x4ecc4e,0x148)][_0x199f83(0xe4,0x16d,0xe3,_0x4ef3e5._0x3bcda9)],_0x54ecce[_0xe16f55(0x1bb,0x1ac,0x125,_0x4ef3e5._0x13d452)][_0xe16f55(0x1a6,0x15d,0x17a,_0x4ef3e5._0x5edf89)])};default:return _0x54ecce;}}async function emitEvent(_0x59af70,_0x20af28,_0x10d415){try{await _0x59af70?.(cloneToolEventForPublication(_0x20af28),_0x10d415);}catch(_0x6b9db){throw new ToolRuntimeInfrastructureError(_0x6b9db);}}function actualCancellationHasPrecedence(_0x152dbf,_0x690ac6){const _0x246d03={_0x59c6d6:0x199,_0x42e8a4:0x1d7},_0x1d8a30={_0x26d3c6:0x11c,_0x29b0af:0x2f6,_0x5585aa:0x130};function _0x51c680(_0x65a95a,_0x9b3d48,_0x107735,_0xf20aa1){return _0x3f402d(_0x65a95a-_0x1d8a30._0x26d3c6,_0x107735- -_0x1d8a30._0x29b0af,_0x107735-_0x1d8a30._0x5585aa,_0xf20aa1);}function _0x7af85c(_0x3f5cb4,_0x27a6c2,_0xd80551,_0x525a98){return _0xf3454f(_0xd80551- -0x2d8,_0x27a6c2-0x190,_0x3f5cb4,_0x525a98-0x2b);}return _0x152dbf[_0x7af85c(-0x43,-0x57,-0x8a,-0x59)][_0x51c680(-0x170,-0x1c6,-_0x246d03._0x59c6d6,-_0x246d03._0x42e8a4)]&&!_0x690ac6;}function selectActualCancellationReason(_0x416b41,_0x2a71f1){const _0x5d7572={_0x44ef27:0xc8,_0x430ec2:0x154,_0x21997e:0xcd,_0x524dce:0x117,_0x3246c1:0x3bc,_0x4469ed:0x3c8},_0x2581db={_0x40e221:0x169,_0x3e0807:0xe,_0x1cc8ed:0x11},_0x53fb7f={_0x134cd2:0xaf,_0x3235df:0xd8,_0x35704:0x1e6};function _0x2a67bb(_0x4ba513,_0x469b95,_0x126494,_0x5b078f){return _0x3f402d(_0x4ba513-_0x53fb7f._0x134cd2,_0x5b078f- -_0x53fb7f._0x3235df,_0x126494-_0x53fb7f._0x35704,_0x469b95);}function _0x17085e(_0x47ffd2,_0x1f6b51,_0x8ccad7,_0x4cadf1){return _0xf3454f(_0x8ccad7-_0x2581db._0x40e221,_0x1f6b51-_0x2581db._0x3e0807,_0x4cadf1,_0x4cadf1-_0x2581db._0x1cc8ed);}return _0x416b41 instanceof ToolExecutionError&&_0x416b41[_0x2a67bb(_0x5d7572._0x44ef27,_0x5d7572._0x430ec2,_0x5d7572._0x21997e,_0x5d7572._0x524dce)][_0x17085e(_0x5d7572._0x3246c1,0x367,0x39c,_0x5d7572._0x4469ed)]===!![]?_0x416b41:_0x2a71f1;}function selectedTerminalStateHasPrecedence(_0x579f26,_0x47d411,_0xe7947d,_0x2bddc2){const _0x11f1c9={_0x4b4eb3:0xd2,_0x34cada:0xd5,_0x16bb5a:0x40,_0x179acd:0x22,_0x438302:0x28,_0x8afd2e:0x31,_0x51d72e:0x24,_0x3e3d3f:0xf1,_0x7f1a28:0x142,_0x53c7d9:0x8f,_0x34211a:0x12a,_0x2a6049:0x7f,_0x38025f:0xe5,_0x16e44e:0xd,_0xcdd043:0xb3,_0xd186b6:0x1c,_0x26ef9f:0x2f,_0x15df73:0x8a},_0x5ed68f={_0x307d1f:0xc8};if(_0x47d411['status']!==_0x4c5404(0x120,0x137,0x15b,0x121))return![];function _0x4c5404(_0x494099,_0x4e2ee6,_0x3b6242,_0x3a3d48){return _0xf3454f(_0x494099- -0x1f3,_0x4e2ee6-0x88,_0x3b6242,_0x3a3d48-_0x5ed68f._0x307d1f);}function _0x569dfd(_0x149af4,_0x1913fe,_0x1a7702,_0x783c17){return _0xf3454f(_0x149af4- -0x344,_0x1913fe-0x2b,_0x783c17,_0x783c17-0xc4);}if(!_0x2bddc2)return _0x47d411[_0x4c5404(_0x11f1c9._0x4b4eb3,0x110,0x104,_0x11f1c9._0x34cada)][_0x4c5404(_0x11f1c9._0x16bb5a,-0x4,_0x11f1c9._0x179acd,_0x11f1c9._0x438302)]===!![]&&actualCancellationHasPrecedence(_0xe7947d,_0x2bddc2);if(_0x579f26!=='Program')return![];return _0x47d411['structured'][_0x569dfd(-_0x11f1c9._0x8afd2e,0x6,-0x2d,-_0x11f1c9._0x51d72e)]===_0x569dfd(-_0x11f1c9._0x3e3d3f,-_0x11f1c9._0x7f1a28,-_0x11f1c9._0x53c7d9,-_0x11f1c9._0x34211a)||_0x47d411[_0x569dfd(-_0x11f1c9._0x2a6049,-0x10,-_0x11f1c9._0x38025f,-0x50)][_0x569dfd(-_0x11f1c9._0x8afd2e,-_0x11f1c9._0x16e44e,-_0x11f1c9._0xcdd043,-0xb4)]===_0x569dfd(-0x2b,0x36,-_0x11f1c9._0xd186b6,-0x54)||_0x47d411[_0x569dfd(-0x7f,-0xd6,0xa,-0x108)]['error']===_0x4c5404(_0x11f1c9._0x26ef9f,_0x11f1c9._0x15df73,0x85,0x18);}async function emitToolCompletedEventWithTerminalPrecedence(_0x4dd927,_0xb4e9b8,_0x524a48,_0x3d27fd,_0x2b197c,_0x1a54e8,_0x6d54a=![]){const _0x1da98e={_0x21dabf:0x4ee,_0x3c7980:0x4fb},_0x141ebf={_0x37fb11:0x2d7,_0x416608:0xe1};function _0x1c8723(_0x2184b6,_0x4724b0,_0x4f0198,_0x1e35e2){return _0x3f402d(_0x2184b6-0x10d,_0x2184b6-_0x141ebf._0x37fb11,_0x4f0198-_0x141ebf._0x416608,_0x4f0198);}try{await emitEvent(_0x4dd927,{'type':_0x1c8723(0x512,0x573,_0x1da98e._0x21dabf,_0x1da98e._0x3c7980),'toolCall':cloneToolCallForPublication(_0xb4e9b8,_0x524a48,_0x3d27fd),'result':_0x2b197c},_0x1a54e8);}catch(_0x56cfdf){if(!(_0x56cfdf instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x3d27fd,_0x2b197c,_0x1a54e8,_0x6d54a))throw _0x56cfdf;}}async function awaitWithAbort(_0x371176,_0x547990){const _0x554f71={_0x3055a2:0x38b,_0x391c30:0x549},_0x47cc4e={_0x5eda5e:0xde},_0x227604={_0x72de30:0x453,_0x31aae0:0x471},_0x4ef194={_0x9d303b:0x49b,_0x2136bd:0x4ac},_0x4d37c2={_0x22d4e2:0x22d},_0xc03afc={_0x5508cd:0xf3};let _0x207e01=()=>{};function _0xf1d8b2(_0x3f90bd,_0x2b4223,_0x1c4c98,_0x532af3){return _0xf3454f(_0x3f90bd-_0xc03afc._0x5508cd,_0x2b4223-0xbf,_0x1c4c98,_0x532af3-0x156);}let _0x100360;_0x547990&&(throwIfAborted(_0x547990),_0x100360=new Promise((_0x905b6e,_0x1a113c)=>{const _0x54f46f={_0x14ce8d:0xf6};function _0x2223b0(_0xa1e487,_0x527b77,_0x152857,_0x16c8d8){return _0x3519(_0x16c8d8- -_0x54f46f._0x14ce8d,_0x152857);}function _0x32c130(_0x50377e,_0x40e79f,_0x4458ff,_0x28c275){return _0x3519(_0x4458ff-_0x4d37c2._0x22d4e2,_0x28c275);}const _0x4cb697=()=>{const _0x266409={_0x3a29a1:0x25d};function _0x858562(_0xe0b8b9,_0x56572c,_0x5138bf,_0x29937b){return _0x3519(_0x29937b-_0x266409._0x3a29a1,_0x5138bf);}_0x1a113c(toAbortError(_0x547990[_0x858562(_0x4ef194._0x9d303b,_0x4ef194._0x2136bd,0x46a,0x4aa)]));};_0x547990[_0x32c130(0x45d,_0x227604._0x72de30,_0x227604._0x31aae0,0x3f7)](_0x32c130(0x389,0x3ad,0x405,0x409),_0x4cb697,{'once':!![]}),_0x207e01=()=>_0x547990[_0x32c130(0x3e9,0x410,0x3f0,0x402)]('abort',_0x4cb697);}));const _0x585b0f=Promise[_0xf1d8b2(0x3f0,0x3dd,_0x554f71._0x3055a2,0x408)]()['then'](()=>{return throwIfAborted(_0x547990),_0x371176();});function _0x4c6152(_0x5e6839,_0x3c482a,_0x347d57,_0x2ee273){return _0xf3454f(_0x2ee273-0x2d5,_0x3c482a-0x170,_0x347d57,_0x2ee273-_0x47cc4e._0x5eda5e);}try{return await(_0x100360?Promise[_0x4c6152(_0x554f71._0x391c30,0x579,0x5a4,0x54f)]([_0x585b0f,_0x100360]):_0x585b0f);}finally{_0x207e01();}}function createNestedCallAdmissionGate(){const _0x21eaa0={_0x52733b:0x1,_0xe73114:0x32,_0x26972c:0x557,_0x13366d:0x501},_0xf829bf={_0x2a1b8b:0x378};let _0x248ff0=0x1,_0xb7393a=![],_0x1f0368,_0x414e30=Promise['resolve']();const _0x59ae07=new Set(),_0x4fc485=_0x512964=>{!_0xb7393a&&(_0xb7393a=!![],_0x1f0368=_0x512964);for(const _0x9b44c2 of[..._0x59ae07]){_0x9b44c2();}};return{'register'(_0x3313f3){if(_0xb7393a)throw _0x1f0368;function _0x5bfee8(_0x2227cf,_0x2c2a4c,_0x3ae8d6,_0x313f1a){return _0x3519(_0x3ae8d6- -0x1cf,_0x2227cf);}if(_0x3313f3!==_0x248ff0){const _0x2d5bae=new Error(_0x5bfee8(-0x6a,_0x21eaa0._0x52733b,0x17,-_0x21eaa0._0xe73114)+_0x3313f3+_0x1a532c(_0x21eaa0._0x26972c,0x52a,0x4d9,0x59e)+_0x248ff0);_0x4fc485(_0x2d5bae);throw _0x2d5bae;}_0x248ff0+=0x1;function _0x1a532c(_0x52f364,_0x3335d7,_0x492168,_0x4e64ee){return _0x3519(_0x52f364-_0xf829bf._0x2a1b8b,_0x492168);}const _0x16ead6=_0x414e30;let _0x25cef8;_0x414e30=new Promise(_0x39060d=>{_0x25cef8=_0x39060d;});const _0x5b9c62=()=>{if(_0x25cef8===void 0x0)return;const _0x3acbb7=_0x25cef8;_0x25cef8=void 0x0,_0x59ae07['delete'](_0x5b9c62),_0x3acbb7();};return _0x59ae07[_0x1a532c(0x569,0x580,_0x21eaa0._0x13366d,0x55c)](_0x5b9c62),{async 'admit'(_0x23221b,_0x1f5cf4){try{await awaitWithAbort(()=>_0x16ead6,_0x1f5cf4);if(_0xb7393a)throw _0x1f0368;await _0x23221b();if(_0xb7393a)throw _0x1f0368;}catch(_0x5afa4e){_0x4fc485(_0x5afa4e);throw _0x5afa4e;}finally{_0x5b9c62();}},'fail'(_0x1e3c6e){_0x4fc485(_0x1e3c6e),_0x5b9c62();}};},'fail':_0x4fc485};}async function awaitRequiredPersistence(_0x11094f,_0x4ab527,_0x27bdf7){const _0x359889={_0x56ed8b:0x39f,_0x28a9a2:0x40a,_0x64411:0x116,_0x220f38:0xd7,_0x2cdd17:0xab},_0x19f4be={_0x169baf:0x143};await awaitWithAbort(()=>{const _0x8da957={_0x1dd3a8:0x154};function _0x20d1c1(_0x499842,_0x36aefe,_0x4f03d8,_0x1d0147){return _0x3519(_0x499842-_0x8da957._0x1dd3a8,_0x1d0147);}const _0x105891=Promise[_0x20d1c1(_0x359889._0x56ed8b,0x40e,0x353,_0x359889._0x28a9a2)]()[_0xedfb34(_0x359889._0x64411,_0x359889._0x220f38,0x116,_0x359889._0x2cdd17)](_0x11094f);function _0xedfb34(_0xe18fca,_0x488022,_0x54eb8c,_0x3c32c7){return _0x3519(_0x488022- -_0x19f4be._0x169baf,_0x54eb8c);}return _0x27bdf7(_0x105891),_0x105891;},_0x4ab527);}async function awaitUncancellableAfterAdmission(_0x146641,_0x3ba4ed){const _0x588ef6={_0x44fdaf:0xca,_0x342bee:0x146,_0x41c5dc:0x59,_0x1e433f:0x18,_0x2cc489:0x24,_0x54d25e:0x6f},_0x4f40d5={_0x846b08:0xc0,_0x293036:0x2ea},_0x1e9939={_0x427807:0x2d8,_0x25a079:0x18a};throwIfAborted(_0x3ba4ed);function _0x3aa969(_0x13220c,_0x2e79b2,_0x3a5320,_0x360317){return _0xf3454f(_0x360317- -_0x1e9939._0x427807,_0x2e79b2-_0x1e9939._0x25a079,_0x2e79b2,_0x360317-0x89);}function _0x1108bf(_0x41b32b,_0x88c81a,_0x58adbf,_0x3a3aa2){return _0x3f402d(_0x41b32b-_0x4f40d5._0x846b08,_0x88c81a- -_0x4f40d5._0x293036,_0x58adbf-0x173,_0x41b32b);}const _0x1e8ba7=()=>{};_0x3ba4ed[_0x1108bf(-0xc4,-_0x588ef6._0x44fdaf,-_0x588ef6._0x342bee,-_0x588ef6._0x41c5dc)](_0x3aa969(_0x588ef6._0x1e433f,-0x83,-0xd9,-0x4e),_0x1e8ba7,{'once':!![]});try{return throwIfAborted(_0x3ba4ed),await _0x146641();}finally{_0x3ba4ed[_0x3aa969(-0xdb,0x21,_0x588ef6._0x2cc489,-0x63)](_0x3aa969(-0x4b,-_0x588ef6._0x54d25e,-0x51,-0x4e),_0x1e8ba7);}}async function resolveDispatchDecision(_0xe79cd1,_0x27d741,_0x297cd1){const _0x5274fe={_0x2b4b9c:0x1cc,_0x57d2ce:0x17f,_0x5b75c5:0x1c3,_0x153976:0x1f1,_0x326864:0x206,_0x48fad7:0x1f0},_0x2f80a3={_0x53a78b:0x1d0,_0x47c392:0x149},_0x194f84={_0x2a387e:0x1d8,_0x251d84:0x10e};if(!_0xe79cd1)return{'action':_0x431a5d(-0x201,-_0x5274fe._0x2b4b9c,-_0x5274fe._0x57d2ce,-_0x5274fe._0x5b75c5)};function _0x267e77(_0x1b5ae8,_0x44dc8a,_0x569889,_0x42696f){return _0x3f402d(_0x1b5ae8-_0x194f84._0x2a387e,_0x44dc8a-0x9e,_0x569889-_0x194f84._0x251d84,_0x569889);}const _0x1b1921=await awaitWithAbort(()=>_0xe79cd1(_0x27d741,_0x297cd1),_0x297cd1[_0x431a5d(-_0x5274fe._0x153976,-0x186,-0x177,-_0x5274fe._0x326864)]);function _0x431a5d(_0x236465,_0x145bb5,_0x30464f,_0x56d648){return _0xf3454f(_0x236465- -0x43f,_0x145bb5-_0x2f80a3._0x53a78b,_0x145bb5,_0x56d648-_0x2f80a3._0x47c392);}return isDispatchDecision(_0x1b1921)?_0x1b1921:{'action':_0x267e77(0x197,0x206,0x180,_0x5274fe._0x48fad7)};}async function prepareNestedToolCall(_0x9c77ce,_0x3222cf,_0x2e9f1e,_0x30d3cf){const _0x59ac42={_0x386ade:0x1c5,_0x566c05:0x91};if(!_0x9c77ce)return _0x3222cf;const _0xba0921=await awaitWithAbort(()=>_0x9c77ce['runTransformers'](_0x34b5dc(0x511,0x4f9,0x5c1,0x562),_0x3222cf,_0x2e9f1e),_0x30d3cf);throwIfAborted(_0x30d3cf),await awaitWithAbort(()=>_0x9c77ce[_0x34b5dc(0x5ac,0x53a,0x53e,0x59a)]('beforeToolExecution',_0xba0921,_0x2e9f1e),_0x30d3cf);function _0x34b5dc(_0x351527,_0x16c0a1,_0x590e18,_0x2d337a){return _0xf3454f(_0x2d337a-0x332,_0x16c0a1-0x105,_0x590e18,_0x2d337a-0x1f0);}function _0xda051a(_0x47e9bf,_0x416d3b,_0x10e404,_0x227a95){return _0x3f402d(_0x47e9bf-_0x59ac42._0x386ade,_0x416d3b-_0x59ac42._0x566c05,_0x10e404-0x15d,_0x47e9bf);}return _0xba0921;}function _0xbcd2(){const _0x57a09a=['CMvHza','DgvYBwLUywW','Aw5WDxq','ywz0zxjnB2rLBfjLC3bVBNnL','CMvQzwn0','ywrKAxrPB25HBfbYB3bLCNrPzxm','AgLZDg9YAwnHBe1LDhjPy3ndB21WBgv0zq','B3v0Chv0sw5KzxG','C29YDa','y2H1BMS','zxHLy3v0Aw9Uu2nVCgu','ywn0Aw9U','CMvWB3j0zwrdB3n0q2fSBenVDw50','yxnRvxnLCG','C2vXDwvUy2u','C3vIywDLBNrszxbVCNq','C2vUzgvYqwDLBNrjza','Bwf4vg9Rzw5Z','y29UDgvUDf9KzwX0yq','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','BgLZDfrVB2Xty2HLBwfZ','Dg9VBe5HBwu','y29TCgXLDgvK','CMfUzg9T','Dg90ywXszwfZB25PBMDuB2TLBNm','ywnXDwLYzq','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','CMvHC29UAw5NtwvZC2fNzuLK','B25uB29Sq2fSBa','y2f0y2G','yMvMB3jLtw9KzwXszxf1zxn0','ywrTAxq','C3rHDhvZ','C3rYDwn0DxjLza','y29TBwL0vgvYBwLUywXtDgf0zq','ChjVDMLKzxi','BwvZC2fNzq','C3rYzwfTAw5N','C3rYAw5NAwz5','ywXS','DgHLBG','CMvXDwLYzwq','x3n5C3rLBvbYB21WDa','zgvWCW','oIbLEhbLy3rLzcbIB29SzwfU','Aw5JBhvKzxm','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','zxH0zxjUywXvC2fNzq','AxrLBxm','Bw9KzwXjzgvUDgL0Eq','yMvMB3jLqxnZAxn0yw50qxbWzw5K','z2v0vg9VBhm','Dg9VBenHBgXqyxrO','CMvHC29UAw5Nx2nODw5R','y29TCgXLDgu','B25fDMvUDa','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','DxnHz2u','Dg9VBenHBgW','Dg9VBf9ZDgfYDgvK','Aw50zxjUywXmAwzLy3LJBgu','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','C3vIBwLZC2LVBG','zxn0Aw1HDgvKq29ZDa','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','oIbLEhbLy3rLzcbVyMPLy3q','oIbLEhbLy3rLzcbHCNjHEq','CNvUvhjHBNnMB3jTzxjZ','Dg9VBf91C2u','CNvUswq','Dg9VBhncEu5HBwu','zM9YrwfJAa','CMvXDwvZDa','DxnLCL9TzxnZywDL','C3vTBwfYEuLUzgv4','mJC1vNDuvNPQ','tMvZDgvKigjLzM9YzvrVB2XfEgvJDxrPB24GzxH0zw5ZAw9UCYbTDxn0ihbYzxnLCNzLihrOzsbJywXSieLeigfUzcbYzxf1zxn0zwqGBMfTzq','mJa1yMTMEvHo','BM93','zMLUywXFBwvZC2fNzq','y3vTDwXHDgL2zvvZywDL','ndyZmtC2A2DYtgfR','ywrKrxzLBNrmAxn0zw5LCG','iIbMB3iG','zMLUza','zgvSzxrL','zMfPBgvK','Dg9VBf91C2vFy2H1BMS','oIbLEhbLy3rLzcbUDw1Izxi','CMvZB2X2zq','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','CMvHC29U','CMvHC29UAw5Nx21LC3nHz2u','Bwv0CMLJCW','BMv4Da','mJDyC09Ntxq','CMvJB3jKvg9VBenHBgW','nJq5mZKWmfHACLfMCG','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','DhjHBNnPzw50sw5WDxq','CMvZDwX0','DhLWzq','A2LUza','DhjHy2u','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','Dg9VBf91C2vFzgvSDge','yxnZAxn0yw50x21LC3nHz2u','CMvJB3jKvg9VBfjLC3vSDa','sw52ywXPzcbLEhrLCM5HBcbTB2rLBcb1C2fNzsb0B3rHBhm','Dg9VBf9JB21WBgv0zwq','CMvXDwvZDgvKtMfTzq','zxjYB3i','Dg9VBa','yMvNAw5qCM9NCMfTvhjHy2u','B2jZzxj2zxi','Dg9VBf91C2vFBwvZC2fNzq','mtC2nZuYmeDmCfztyG','ChjVz3jHBs10Aw1LB3v0','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','B3v0Chv0vg9Rzw5Z','zhjHAw5qzxjZAxn0zw5Jzq','Aw5WDxruB2TLBNm','B3v0Chv0','ChjVDMLKzxjFCMv0CNK','oIb1BMv4CgvJDgvKigzPzwXKici','ywz0zxjuB29SuMvZDwX0','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','Dg90ywXdB3n0vxnKvgLJA3m','zMLSDgvY','zxHLy3v0zq','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','zw50CMLLCW','zMfPBa','DhvYBLn0yxj0zwrbDa','AxntywzLsw50zwDLCG','tw9KzwXvC2fNzu92zxjMBg93rxjYB3i','y2HHDe1VzgvS','ChjPy2LUz1bYB3zPzgvYswq','y2XVC2u','C2XPy2u','CMvXDwvZDenVDw50','DhjHBNnMB3jTzxi','zgvMyxvSDe1LC3nHz2u','C3rYzwfT','ywXSu2v0DgXLza','CMv0DxjU','DhvYBKLUzgv4','ywz0zxjuDxjUq29TCgXLDgu','Dg90ywXpDxrWDxruB2TLBNm','DhvYBLvZywDL','y29UDgv4DfDPBMrVD0XPBwL0','C2L6zq','Dg90ywXjBNb1DfrVA2vUCW','zw5HyMXLza','ChjVz3jHBs1YzxnVDxjJzs1SAw1PDa','A2v5CW','y2fSBeLK','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','Dgv4Da','ChvZAa','B3jPz2LU','DMfSDwu','C3rHz2u','Bw9KzwXFCMvZCg9UC2u','C2vZC2LVBKrPCG','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','mJi5ntiWn1nHz3zZsq','zgvSDge','yMvMB3jLvg9VBev4zwn1DgLVBG','BwfW','Aw5KzxG','ywjVCNrLza','C3rYAw5N','C2vZC2LVBI0','C2vZC2LVBKLK','zxHLy3v0zunHBgXZ','Bw9KzwXuAw1Ltxm','C2v0vg9VBhm','yM9VBgvHBG','yxnZAxn0yw50x2nODw5R','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','Dw5RBM93BL90B29S','CNvU','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','oNjLyxnVBMLUzW','B2jQzwn0','zhjHAw5tDgvLCMLUzW','z2v0q29UDgv4DfDPBMrVD0XPBwL0','ywDLBNrjza','zw51Bq','CMvHC29UAw5Nq29TCgXLDgvKqxq','ChjVz3jHBs1PBNrLCM1LzgLHDgu','Dg9tDhjPBMC','Dg9VBfj1BNrPBwu','y29TCgXLDgvZuMvXDwvZDa','Dg9VBfjLC3vSDhm','C3rHDgu','C2LNBMfS','Bwv0ywrHDge','C3LZDgvT','zxzLCNK','sw52ywXPzcb0B29SigLUChv0igf0ia','ChjVz3jHBs1HyM9YDgvK','AxrLBuLK','y29VCMrPBMf0B3i','B3jKzxi','zNjLzxPL','iIbPCYbHBhjLywr5igvUywjSzwq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','BwLZC2LUz0HPC3rVCMLJywXnB2rLBenHBgXdB3vUDa','tw9KzwWGDxnHz2uGDg90ywWGB3zLCMzSB3C','CMvWB3j0zwrdB3n0','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','DhvYBI0','yxnZAxn0yw50twvZC2fNzuLK','oIbLEhbLy3rLzcbVBMuGB2yG','oda1nZy4ANbyuw5K','CgvYBwLZC2LVBKnSyxnZ','Dg9VBf9JywXS','yMvMB3jLrMLUywXpDxrWDxq','BMfTzq','Dg9VBenHBgXjza','CMvZzxrnzxnZywDLCW','CNvUt2jZzxj2zxjZ','C2vUza','CMvHC29UAw5Nu3rHCNrLzef0','AxnbCNjHEq','Dg9VBf9Yzxn1Bhq','CMvJB3jKrxzLBNq','yw1VDw50vxnKvgLJA3m','C2v0q2HHDe1VzgvS','B25vC2vYtwvZC2fNzq','mK9zwLPesW','y29UDgvUDeLUzgv4','yxnZAxn0yw50','Bwv0yq','CMvTB3zLrxzLBNrmAxn0zw5LCG','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','yw55t2y','Bwf4','DhvYBKnVBxbSzxrLzef0','CMfJzq','Dg9VBf9YzwPLy3rLza','Dg90ywXuB2TLBNm','oIbLEhbLy3rLzcbZDhjPBMC','BwvZC2fNzxm','zxH0zw5ZAw9UCW','ywX3yxLZlwnVBMzPCM0','Aw5WDxrezwX0yq','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','Bw9KzwXdywXSCW','C3LZDgvTuhjVBxb0','Bw9KzwW','y2f1C2u','Bw9KzwXdywXSq291BNq','Aw5WDxrty2HLBwe','Dg9VBf9VDxrWDxrFy2H1BMS','ywjVCNq','y29UDgvUDa','CMvHC29UAw5Nvg9Rzw5Z','DhjPBq','CMvNAxn0CNK','ywz0zxjnzxnZywDLqxbWzw5K','oteZmJCWD3zTzNnQ','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','AgfZt3DU','ntGYntrQvMrYD0S','ywDLBNq','DgHPBMTPBMC','C29Tzq','AM9PBG','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','ChjVCgvYDgLLCW','Dg90ywXnB2rLBfrPBwvnCW','y2fWywjPBgL0AwvZ','DhvYBKLK','z2v0','yxjYyxK','CMvZCg9UC2u','BNvTyMvY','BgvUz3rO','ChjVDMLKzxjtDgf0zq','ywrK'];_0xbcd2=function(){return _0x57a09a;};return _0xbcd2();}function _0x3f402d(_0x4919a4,_0x2b792c,_0xe5c527,_0x39e3de){const _0x21b9da={_0x4ffc52:0x24};return _0x3519(_0x2b792c- -_0x21b9da._0x4ffc52,_0x39e3de);}async function transformNestedToolResult(_0x4b09ca,_0x3b1c44,_0x4ba05b,_0x51f52c){const _0x49aff6={_0x4bf70e:0x1f3,_0x473be0:0x181,_0x5ec443:0x2e};if(!_0x4b09ca)return _0x3b1c44;function _0x24b02d(_0x33252d,_0x640f30,_0x111356,_0x158ed6){return _0x3f402d(_0x33252d-_0x49aff6._0x4bf70e,_0x33252d-_0x49aff6._0x473be0,_0x111356-_0x49aff6._0x5ec443,_0x158ed6);}const _0x1a814f=await awaitWithAbort(()=>_0x4b09ca[_0x5e778e(0x502,0x575,0x588,0x557)](_0x24b02d(0x2b0,0x252,0x233,0x328),_0x3b1c44,_0x4ba05b),_0x51f52c);function _0x5e778e(_0x2b5223,_0x2af709,_0x5cf611,_0x440039){return _0x3f402d(_0x2b5223-0x18d,_0x5cf611-0x377,_0x5cf611-0x12a,_0x2af709);}return throwIfAborted(_0x51f52c),await awaitWithAbort(()=>_0x4b09ca[_0x24b02d(0x313,0x2a0,0x331,0x358)]('afterToolResult',_0x1a814f,_0x4ba05b),_0x51f52c),_0x1a814f;}function snapshotNestedToolRequest(_0x3f3d74){const _0x1ce90f={_0x5f5603:0x22f,_0x252225:0x1c9,_0x27055f:0x216,_0x1ce90d:0x380,_0x3a7ca7:0x161,_0x43eb5b:0x270,_0x317858:0x171,_0x2bf859:0x1ea,_0x3a3793:0x426,_0x26a248:0x411,_0x4502e1:0x3cf,_0x58fadf:0x480,_0x3db527:0x2a3,_0x2f3b73:0x219},_0x4d5439={_0x37b859:0x97},_0x1771bd={_0x5ea201:0xe},_0x388fd1=_0x3f3d74['requestedName'],_0x113bb4=_0x3f3d74['tool'],_0x11dc7f=_0x3f3d74[_0x799f92(0x262,_0x1ce90f._0x5f5603,_0x1ce90f._0x252225,_0x1ce90f._0x27055f)]['id'],_0x5ed6c7=structuredClone(_0x3f3d74[_0x214856(0x3f3,0x3e4,_0x1ce90f._0x1ce90d,0x388)]);function _0x799f92(_0x5ee628,_0x35de22,_0x3127d4,_0x561e98){return _0x3f402d(_0x5ee628-0x16e,_0x561e98-_0x1771bd._0x5ea201,_0x3127d4-0x20,_0x35de22);}function _0x214856(_0x38159c,_0x5a9dad,_0x13a3d1,_0x343c0b){return _0xf3454f(_0x5a9dad-0x106,_0x5a9dad-_0x4d5439._0x37b859,_0x38159c,_0x343c0b-0x156);}const _0x57c6bb=_0x3f3d74[_0x799f92(_0x1ce90f._0x3a7ca7,_0x1ce90f._0x43eb5b,_0x1ce90f._0x317858,_0x1ce90f._0x2bf859)],_0x14a551=_0x3f3d74[_0x214856(_0x1ce90f._0x3a3793,_0x1ce90f._0x26a248,_0x1ce90f._0x4502e1,_0x1ce90f._0x58fadf)];if(_0x5ed6c7['name']!==_0x388fd1||_0x113bb4!==void 0x0&&_0x113bb4['name']!==_0x388fd1)throw new Error(_0x799f92(_0x1ce90f._0x3db527,0x206,0x1ac,_0x1ce90f._0x2f3b73));return{'requestedName':_0x388fd1,'tool':_0x113bb4,'toolCall':_0x5ed6c7,'toolCallId':_0x11dc7f,'sequence':_0x57c6bb,'trace':_0x14a551};}function createImmutableExecutionScope(_0x282f68,_0x248013){const _0x9657aa={_0x126506:0x522},_0x1d7e44={_0x1e7ba8:0x1f,_0x19d794:0xca},_0x225edc={_0x1c2aff:0x1c3};function _0x3b260d(_0x50dc18,_0x465543,_0x7c2480,_0xcc8593){return _0xf3454f(_0x465543- -0x393,_0x465543-0x175,_0xcc8593,_0xcc8593-_0x225edc._0x1c2aff);}function _0x17f167(_0x37c286,_0x6ce7b3,_0x441a56,_0x98178){return _0x3f402d(_0x37c286-_0x1d7e44._0x1e7ba8,_0x37c286-0x3ea,_0x441a56-_0x1d7e44._0x19d794,_0x441a56);}return Object[_0x3b260d(-0x10c,-0x13c,-0x159,-0xe5)]({'agentId':_0x282f68,'toolCallPath':Object[_0x17f167(0x56b,0x50b,_0x9657aa._0x126506,0x5d3)]([..._0x248013])});}async function executeNestedToolRequest(_0x5a8d60,_0x41ceab,_0x447786,_0x21c61f,_0x33a913,_0x4f3f57,_0x25520c,_0x367220){const _0x490421={_0x165456:0x40e,_0x591587:0x3bd,_0x3f7b45:0x3ec,_0x2faaa8:0x6a,_0x5f1065:0x46,_0x358d46:0x40,_0x108f8a:0x47a,_0xd21d8e:0x4cf,_0x4dcf6c:0x40d,_0x55e5a6:0x3d6,_0x9ce59:0x105,_0x2e42e6:0xe5,_0x12f5f9:0x4b,_0x25f269:0x1a,_0x5e9ab6:0x95,_0x463a6e:0x43e,_0xb619ce:0x3b,_0x53c4ec:0x49,_0x47473b:0x4c9,_0x1d182c:0x4c5,_0x102a15:0x411,_0x3b64f2:0x472,_0x146d8c:0x482,_0x4bd79d:0x3f5,_0x1f552b:0x3d1,_0x146138:0x4ab,_0x108918:0x36,_0x3efaae:0x7e,_0x12a5c9:0x44,_0x3cbb7b:0x3dc,_0x1c6625:0xd0,_0x3dae71:0x92,_0x32ac9d:0x32,_0x24a6db:0x94,_0x5c73a7:0x3fe},_0x54205f={_0x125185:0x222,_0x1d46d4:0x102},_0x524685={_0x4f7991:0x15,_0x32f573:0xa,_0x35f51f:0x81,_0x326f3b:0x6f,_0x1eb4a7:0x9a,_0x359ff6:0x76,_0x25323c:0x26b},_0xc35a15={_0x35ed33:0x3a,_0x4444e0:0x471},_0x2eed32={_0x3a3b45:0x17e,_0x460eb3:0x1d9,_0x2a2671:0x1f3},_0x15c4df={'state':_0x41ceab[_0x46fa95(0x407,0x3c3,_0x490421._0x165456,_0x490421._0x591587)],'delivery':_0x46fa95(0x422,0x397,_0x490421._0x3f7b45,0x3b8),'executionScope':_0x447786};let _0x3f4c75;try{_0x3f4c75=await prepareNestedToolCall(_0x4f3f57[_0x55e61e(-0x22,-_0x490421._0x2faaa8,-_0x490421._0x5f1065,-_0x490421._0x358d46)],_0x5a8d60[_0x46fa95(_0x490421._0x108f8a,_0x490421._0xd21d8e,0x4b9,0x44e)],_0x15c4df,_0x21c61f);if(_0x3f4c75['id']!==_0x5a8d60[_0x46fa95(0x3d1,0x3cd,_0x490421._0x4dcf6c,_0x490421._0x55e5a6)]||_0x3f4c75[_0x55e61e(-_0x490421._0x9ce59,-0x93,-0x5a,-_0x490421._0x2e42e6)]!==_0x5a8d60[_0x55e61e(-_0x490421._0x12f5f9,_0x490421._0x25f269,_0x490421._0x5e9ab6,0x71)])throw new Error(_0x46fa95(0x422,0x3f7,_0x490421._0x463a6e,0x460));}catch(_0x14f4f7){_0x33a913['fail'](_0x14f4f7);throw _0x14f4f7;}const _0x5ac717={..._0x41ceab,'signal':_0x21c61f,'executionScope':_0x447786,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0x4d8482=async(_0x51d1e4,_0xf688dc)=>{const _0x319f40={_0x25c413:0x113,_0x3c61e4:0x531};function _0x3c840c(_0x21a7bb,_0xd2a00a,_0x121fa9,_0x41b8df){return _0x46fa95(_0x21a7bb-0x4,_0x41b8df,_0x121fa9-_0x319f40._0x25c413,_0x21a7bb- -_0x319f40._0x3c61e4);}if(_0x21c61f[_0x3c840c(-0x18e,-_0x2eed32._0x3a3b45,-_0x2eed32._0x460eb3,-_0x2eed32._0x2a2671)])return;try{await awaitWithAbort(()=>_0x25520c?.(_0x51d1e4,_0xf688dc),_0x21c61f);}catch(_0x15cb81){if(!isAbortError(_0x15cb81)||!_0x21c61f['aborted'])throw _0x15cb81;}};await _0x33a913[_0x55e61e(-_0x490421._0xb619ce,-0x35,-_0x490421._0x53c4ec,-0x50)](async()=>{const _0x59aad9={_0x52d90a:0x57,_0x1af427:0xfb,_0x31ed84:0x21d};throwIfAborted(_0x21c61f);if(_0x5a8d60[_0x2fd6e4(-_0x524685._0x4f7991,0x43,_0x524685._0x32f573,-_0x524685._0x35f51f)]){const _0xfdbb40=_0x5a8d60[_0x2fd6e4(-0x52,0x26,_0x524685._0x32f573,_0x524685._0x326f3b)];await awaitRequiredPersistence(()=>_0xfdbb40[_0x108d5b(0x20b,0x2ba,0x21e,0x257)](_0x5a8d60[_0x2fd6e4(-0x36,-0xbc,-0x4f,-0xbb)],cloneToolCallForPublication(_0x3f4c75,_0x5a8d60[_0x2fd6e4(-0x23,-0x43,-0x9b,-0x8f)],_0x5a8d60[_0x2fd6e4(-0x62,-0xe,0x11,-0x64)])),_0x21c61f,_0x367220);}function _0x2fd6e4(_0x55223c,_0x140b99,_0x41ee91,_0x59d416){return _0x46fa95(_0x55223c-_0xc35a15._0x35ed33,_0x55223c,_0x41ee91-0x1f,_0x41ee91- -_0xc35a15._0x4444e0);}function _0x108d5b(_0x17adcb,_0x553ade,_0x21abfe,_0x4b7d33){return _0x46fa95(_0x17adcb-_0x59aad9._0x52d90a,_0x17adcb,_0x21abfe-_0x59aad9._0x1af427,_0x4b7d33- -_0x59aad9._0x31ed84);}await _0x4d8482({'type':'tool_call','toolCall':cloneToolCallForPublication(_0x3f4c75,_0x5a8d60[_0x2fd6e4(-_0x524685._0x1eb4a7,-_0x524685._0x359ff6,-0x9b,-0xa8)],_0x5a8d60[_0x108d5b(0x205,_0x524685._0x25323c,0x2e7,0x265)])},_0x5ac717),throwIfAborted(_0x21c61f);},_0x21c61f);const _0x436790=await executeCapturedToolCall(_0x5a8d60[_0x46fa95(0x3ff,0x4f1,_0x490421._0x47473b,0x484)],_0x3f4c75,_0x5a8d60['toolCallId'],_0x5a8d60[_0x46fa95(_0x490421._0x1d182c,_0x490421._0x102a15,_0x490421._0x3b64f2,_0x490421._0x146d8c)],_0x5ac717,_0x4f3f57,_0x4d8482);throwIfAborted(_0x21c61f);const _0x30c48d=await transformNestedToolResult(_0x4f3f57[_0x46fa95(_0x490421._0x4bd79d,0x3f7,_0x490421._0x1f552b,0x3fe)],_0x436790,_0x15c4df,_0x21c61f),_0x955dc9=cloneToolResultForPublication(_0x30c48d,_0x5a8d60['toolCallId'],_0x5a8d60[_0x46fa95(0x49e,_0x490421._0x146138,0x4f7,_0x490421._0x146d8c)]);throwIfAborted(_0x21c61f);if(_0x5a8d60[_0x55e61e(-_0x490421._0x108918,0x13,_0x490421._0x3efaae,-0x23)]){const _0x22db1e=_0x5a8d60[_0x55e61e(-0x33,0x13,_0x490421._0x12a5c9,-0x72)];await awaitRequiredPersistence(()=>_0x22db1e[_0x55e61e(-0x3,0x17,0xc,-0x23)](_0x5a8d60[_0x46fa95(0x497,0x493,0x430,0x422)],cloneToolResultForPublication(_0x955dc9,_0x5a8d60['toolCallId'],_0x5a8d60[_0x46fa95(0x4ec,0x4b6,0x45d,0x482)])),_0x21c61f,_0x367220);}function _0x46fa95(_0x106bbe,_0xb35550,_0x15e849,_0x3b39b8){return _0xf3454f(_0x3b39b8-0x170,_0xb35550-0x32,_0xb35550,_0x3b39b8-0x18);}await _0x4d8482({'type':_0x46fa95(0x40a,0x402,0x3e8,_0x490421._0x3cbb7b),'result':cloneToolResultForPublication(_0x955dc9,_0x5a8d60[_0x55e61e(-_0x490421._0x1c6625,-_0x490421._0x3dae71,-_0x490421._0x32ac9d,-_0x490421._0x24a6db)],_0x5a8d60[_0x46fa95(_0x490421._0x5c73a7,0x4ec,0x4cc,_0x490421._0x146d8c)])},_0x5ac717),throwIfAborted(_0x21c61f);function _0x55e61e(_0xdb4101,_0x52c6f7,_0x309bb9,_0x59c49f){return _0x3f402d(_0xdb4101-0x1ea,_0x52c6f7- -_0x54205f._0x125185,_0x309bb9-_0x54205f._0x1d46d4,_0xdb4101);}return _0x955dc9;}function createBoundToolExecutionControl(_0xc46cb4,_0x9130b6,_0x27fa7f,_0xf404ed){const _0x469a8a={_0x53c264:0x161,_0x1924e7:0x150,_0x4b3f5c:0x14e,_0x5d0d3f:0x540,_0x55d4d1:0x4d2,_0x1bd68d:0x472,_0x3a28b5:0x4d0,_0x4eb2bc:0x53b,_0xd36730:0x137,_0x12dc24:0xca,_0x41b252:0x562,_0x6f96f7:0x5a2,_0x2ab5b0:0x5c1},_0x466e9b={_0x1171b4:0x339},_0x52a020={_0x34cd03:0x28d},_0x1ec536={_0x385452:0x276,_0x2e0d2f:0x2ca},_0x13a2fb={_0x366339:0x49c,_0x1da525:0x463,_0x315834:0xc2,_0x2bcafc:0xf4,_0x56d939:0x50c,_0x11c3a2:0xfb,_0x2ec089:0x11c,_0x3becf7:0x4de,_0x43c14f:0xd4},_0x2df245={_0x1df7fa:0x179,_0x30cb8a:0x1c7},_0x5356cb={_0x240ab6:0x266,_0x2b505a:0x217,_0x1b6e1e:0x1d2,_0x41834c:0x1d1,_0xb6e38f:0x1cd},_0x4e697c={_0x3960a3:0x5},_0x4b197d={_0x1bd00f:0xd,_0xa7da41:0xd0,_0x2dfe59:0x9b,_0x2925d7:0xdd},_0x2c32b9={_0x280aac:0x161},_0x3d766a={_0x578388:0x174,_0x2a6e42:0x4bc,_0xf8c3a4:0x4ab,_0x50560f:0x4cc},_0x412098={_0x2740ed:0x1c5,_0x5beb5a:0x245,_0x11ef2d:0x2c6},_0x133b63=createImmutableExecutionScope(_0x9130b6[_0x4a217a(-_0x469a8a._0x53c264,-0x1a0,-_0x469a8a._0x1924e7,-_0x469a8a._0x4b3f5c)][_0x2f964f(_0x469a8a._0x5d0d3f,_0x469a8a._0x55d4d1,_0x469a8a._0x1bd68d,0x54b)],_0x9130b6[_0x2f964f(_0x469a8a._0x3a28b5,_0x469a8a._0x4eb2bc,0x4c1,0x5c3)][_0x4a217a(-_0x469a8a._0xd36730,-_0x469a8a._0x12dc24,-0x153,-0xb8)]),_0x52daee=new Set(),_0x1e405f=new Set(),_0x30f078=new AbortController(),_0xf23c65=createNestedCallAdmissionGate();let _0x629d79=![],_0x2fb497=![],_0x1b8572,_0x2dffe1=![],_0x3420df=()=>{};const _0x4ac607=_0x4fad87=>{function _0xd29e1(_0x202c0c,_0xc9d500,_0x2160fd,_0x2a6598){return _0x2f964f(_0x202c0c-0xcd,_0x2a6598-0x2d,_0xc9d500,_0x2a6598-0x6a);}if(_0x629d79)return;_0x629d79=!![];const _0x7cf680=toAbortError(_0x4fad87??PARENT_TOOL_SETTLED_MESSAGE);_0xf23c65[_0x4d5177(_0x412098._0x2740ed,0x18f,_0x412098._0x5beb5a,0x215)](_0x7cf680),_0x30f078[_0x4d5177(0x243,_0x412098._0x11ef2d,0x29d,0x1ce)](_0x7cf680);function _0x4d5177(_0x1510ae,_0x523fce,_0x17bc5a,_0x3d857c){return _0x2f964f(_0x1510ae-0x178,_0x1510ae- -0x2d4,_0x3d857c,_0x3d857c-0x11f);}for(const _0x206385 of _0x52daee){_0x206385['abort'](_0x7cf680);}_0x3420df();};_0x3420df=addAbortListener(_0x9130b6[_0x2f964f(0x490,0x4db,_0x469a8a._0x41b252,0x47d)],()=>{const _0x57ab2a={_0x25ab26:0x381,_0x2025c7:0x61};function _0x5555ac(_0x31b5db,_0x556939,_0x9ed0ae,_0x5545c6){return _0x2f964f(_0x31b5db-0x18,_0x556939- -_0x57ab2a._0x25ab26,_0x5545c6,_0x5545c6-_0x57ab2a._0x2025c7);}function _0x810bc7(_0x10e7c8,_0xb49cb7,_0x108882,_0x7ed2c6){return _0x2f964f(_0x10e7c8-0xfc,_0xb49cb7- -0xe1,_0x108882,_0x7ed2c6-0x78);}_0x4ac607(_0x9130b6[_0x5555ac(0x15d,0x15a,0xfd,_0x3d766a._0x578388)][_0x810bc7(_0x3d766a._0x2a6e42,_0x3d766a._0xf8c3a4,0x41d,_0x3d766a._0x50560f)]);});const _0x52dd5e=_0x51c324=>{const _0x1b6528={_0x212dff:0x367,_0x144906:0x21},_0x467e76={_0x5a3b53:0x28a,_0x230899:0x27d,_0x2e1c5a:0x2cc,_0x49e322:0x238};_0x1e405f[_0x59720c(-_0x4b197d._0x1bd00f,-_0x4b197d._0xa7da41,-0x54,-_0x4b197d._0x2dfe59)](_0x51c324);const _0x311621=()=>{const _0x2dd7c5={_0x4cebb9:0x1f0,_0x434f6f:0x2cf};function _0xdc254f(_0xcb1ed9,_0x46266d,_0x161a8c,_0x50e7f1){return _0x59720c(_0xcb1ed9-0xc4,_0x46266d,_0x161a8c-_0x2dd7c5._0x4cebb9,_0xcb1ed9-_0x2dd7c5._0x434f6f);}_0x1e405f[_0xdc254f(_0x467e76._0x5a3b53,_0x467e76._0x230899,_0x467e76._0x2e1c5a,_0x467e76._0x49e322)](_0x51c324);};function _0x59720c(_0x328905,_0x275207,_0x111d85,_0x193736){return _0x2f964f(_0x328905-_0x2c32b9._0x280aac,_0x193736- -0x5cb,_0x275207,_0x193736-0x5);}const _0x5da921=_0x4139e3=>{!_0x2fb497&&(_0x2fb497=!![],_0x1b8572=_0x4139e3),_0x311621();};function _0x31cf11(_0x159e57,_0x1fb098,_0x4518a3,_0x4f0fb7){return _0x4a217a(_0x1fb098-_0x1b6528._0x212dff,_0x4518a3,_0x4518a3-_0x1b6528._0x144906,_0x4f0fb7-0x133);}void _0x51c324[_0x59720c(-0x9f,-0xf9,-_0x4b197d._0x2925d7,-0x72)](_0x311621,_0x5da921);},_0x5b10fc=async()=>{const _0x197905={_0x188bef:0x36};function _0x25b7a4(_0x5bc036,_0x7cf570,_0x1fc276,_0x16aa96){return _0x4a217a(_0x16aa96-0x3c4,_0x5bc036,_0x1fc276-0x124,_0x16aa96-_0x4e697c._0x3960a3);}function _0x20ef19(_0x5e6c8c,_0x47e5ac,_0x159269,_0x5ce853){return _0x4a217a(_0x5e6c8c- -0x6,_0x5ce853,_0x159269-0xe6,_0x5ce853-_0x197905._0x188bef);}while(_0x1e405f[_0x20ef19(-0x1f6,-_0x5356cb._0x240ab6,-_0x5356cb._0x2b505a,-_0x5356cb._0x1b6e1e)]>0x0){await Promise[_0x25b7a4(0x201,0x22d,_0x5356cb._0x41834c,_0x5356cb._0xb6e38f)]([..._0x1e405f]);}if(_0x2fb497)throw _0x1b8572;},_0x16c75e=async _0x12720e=>{const _0x334a6c={_0x413989:0x36a,_0x1440a1:0x31d,_0x36eafb:0x32b,_0x198836:0x34a},_0x45a26e={_0x1d44d0:0x3},_0x10ae6c={_0x5b6bcb:0x1ae,_0x2d85d6:0x16c};if(_0x629d79)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x15cdce(_0x4eb144,_0x475d10,_0x37869a,_0x584275){return _0x2f964f(_0x4eb144-_0x10ae6c._0x5b6bcb,_0x584275- -0x633,_0x475d10,_0x584275-_0x10ae6c._0x2d85d6);}let _0x518108;try{_0x518108=snapshotNestedToolRequest(_0x12720e);}catch(_0x390340){_0xf23c65[_0x9cbe35(_0x13a2fb._0x366339,_0x13a2fb._0x1da525,0x44e,0x4b0)](_0x390340);throw _0x390340;}const _0x381e86=_0xf23c65['register'](_0x518108[_0x15cdce(-0x86,-0x7f,-_0x13a2fb._0x315834,-_0x13a2fb._0x2bcafc)]),_0x3f17b9=createImmutableExecutionScope(_0x133b63[_0x9cbe35(0x4d5,0x4fe,_0x13a2fb._0x56d939,0x505)],[..._0x133b63[_0x15cdce(-0xd9,-0x104,-0x95,-0xce)],_0xc46cb4]),_0x3dea47=new AbortController();_0x52daee[_0x9cbe35(0x533,0x4cb,0x4e8,0x4ec)](_0x3dea47);_0x629d79&&_0x3dea47[_0x15cdce(-0xeb,-0x13a,-_0x13a2fb._0x11c3a2,-_0x13a2fb._0x2ec089)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x4f9404=executeNestedToolRequest(_0x518108,_0x9130b6,_0x3f17b9,_0x3dea47[_0x9cbe35(_0x13a2fb._0x3becf7,0x49d,0x4b2,0x563)],_0x381e86,_0x27fa7f,_0xf404ed,_0x52dd5e);function _0x9cbe35(_0x3edc9a,_0x1bb842,_0x78d319,_0x3881da){return _0x4a217a(_0x3edc9a-0x69f,_0x3881da,_0x78d319-_0x2df245._0x1df7fa,_0x3881da-_0x2df245._0x30cb8a);}const _0x204056=()=>{function _0x2d33ae(_0x2a5a76,_0x1b2407,_0x164f5d,_0x29aff2){return _0x9cbe35(_0x164f5d- -0x25e,_0x1b2407-0x26,_0x164f5d-_0x45a26e._0x1d44d0,_0x29aff2);}_0x52daee[_0x2d33ae(_0x334a6c._0x413989,_0x334a6c._0x1440a1,_0x334a6c._0x36eafb,_0x334a6c._0x198836)](_0x3dea47);};return void _0x4f9404[_0x15cdce(-0x52,-_0x13a2fb._0x43c14f,-0x160,-0xda)](_0x204056,_0x204056),await awaitWithAbort(()=>_0x4f9404,_0x30f078[_0x9cbe35(0x4de,0x56c,0x538,0x54a)]);},_0x41f2a1={'executeNestedTool':_0x16c75e},_0x14fab9=_0x27fa7f[_0x2f964f(0x51c,0x5a2,0x5ef,0x557)];_0x14fab9&&(_0x41f2a1[_0x2f964f(0x621,_0x469a8a._0x6f96f7,0x5da,_0x469a8a._0x2ab5b0)]=async()=>{const _0x95bfb0={_0x5d68ac:0x1c7,_0xa22e52:0x163},_0x514a91={_0x27a127:0xe0};if(_0x629d79)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x33c097(_0x55ac4d,_0x3aa762,_0x2e24d3,_0x30d66f){return _0x2f964f(_0x55ac4d-0x119,_0x3aa762- -0x62f,_0x30d66f,_0x30d66f-_0x514a91._0x27a127);}function _0x34f50f(_0x1b4c08,_0x2aec9a,_0x40e6b5,_0x320b2d){return _0x2f964f(_0x1b4c08-_0x95bfb0._0x5d68ac,_0x1b4c08- -0x265,_0x40e6b5,_0x320b2d-_0x95bfb0._0xa22e52);}return await awaitUncancellableAfterAdmission(()=>_0x14fab9({'executionScope':createImmutableExecutionScope(_0x133b63[_0x34f50f(0x26d,0x27f,0x2b1,0x28e)],_0x133b63[_0x33c097(-0x5d,-0xca,-0xc3,-0x151)]),'programToolCallId':_0xc46cb4}),_0x30f078[_0x34f50f(_0x1ec536._0x385452,_0x1ec536._0x2e0d2f,0x258,0x2c5)]);});const _0x18b267=()=>{_0x2dffe1=!![],_0x4ac607();},_0xb5245f=()=>_0x2dffe1;function _0x2f964f(_0x568a0a,_0x484f40,_0xcd4965,_0xb036bf){return _0xf3454f(_0x484f40-_0x52a020._0x34cd03,_0x484f40-0xf4,_0xcd4965,_0xb036bf-0x1ee);}function _0x4a217a(_0x338e63,_0x5c77db,_0x4ee94c,_0x5a82bc){return _0x3f402d(_0x338e63-0x43,_0x338e63- -_0x466e9b._0x1171b4,_0x4ee94c-0x10d,_0x5c77db);}const _0x14dc67={'capabilities':_0x41f2a1,'close':_0x4ac607,'commitTerminalState':_0x18b267,'drainPersistence':_0x5b10fc,'isTerminalStateCommitted':_0xb5245f};return boundNestedExecutionControls['set'](_0x16c75e,_0x14dc67),_0x14dc67;}async function executeCapturedToolCall(_0x472202,_0x16404c,_0x18e1b9,_0x31b30a,_0x22efa5,_0x5a9503,_0x159b1b=_0x5a9503[_0x3f402d(0x222,0x205,0x20f,0x23b)]){const _0x1b573f={_0xc05874:0x7,_0x4c6b8c:0x4f,_0x18a4ab:0x5d,_0x5c0ee1:0x114,_0x4948b7:0x14c,_0x26f202:0x151,_0x227d48:0x6c,_0x5ceecd:0xaa,_0x3fd0d0:0x4c,_0x7b9e36:0xa0,_0x549659:0xcb,_0x81424b:0xa,_0x281b80:0xbc},_0x557d87={_0xd69c67:0xa},_0x49f6fc={_0x38409d:0x17f,_0x5caaaa:0xbe},_0x595771={..._0x22efa5,'toolCallId':_0x18e1b9,'permissionClass':resolveToolPermissionClass(_0x472202),'executionAuthorization':void 0x0};if(_0x595771[_0x3ee4a8(-_0x1b573f._0xc05874,-_0x1b573f._0x4c6b8c,0xc,-_0x1b573f._0x18a4ab)][_0x292abe(-_0x1b573f._0x5c0ee1,-_0x1b573f._0x4948b7,-_0x1b573f._0x26f202,-0x129)]){const _0x2def3e=createAbortedToolResult(_0x18e1b9,_0x31b30a,_0x595771[_0x3ee4a8(-0x7,_0x1b573f._0x227d48,-0x34,0x33)][_0x3ee4a8(_0x1b573f._0x5ceecd,0x95,0xb3,_0x1b573f._0x3fd0d0)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x159b1b,_0x16404c,_0x18e1b9,_0x31b30a,_0x2def3e,_0x595771),_0x2def3e;}function _0x3ee4a8(_0x1f0c37,_0xce1d36,_0x8170b5,_0x2292f7){return _0x3f402d(_0x1f0c37-0x177,_0x1f0c37- -_0x49f6fc._0x38409d,_0x8170b5-_0x49f6fc._0x5caaaa,_0x8170b5);}let _0x275b3a;try{_0x275b3a=_0x472202?.[_0x3ee4a8(0x8b,0x5b,_0x1b573f._0x7b9e36,0xd1)]?.[_0x3ee4a8(0x68,0x69,_0x1b573f._0x549659,_0x1b573f._0x81424b)]();}catch(_0x350145){const _0x40ed7a=isAbortError(_0x350145);let _0xac3bdc;if(_0x40ed7a)_0xac3bdc=createAbortedToolResult(_0x18e1b9,_0x31b30a,_0x350145);else{const {errorMessage:_0xb87cd9,structured:_0x5e90e6}=normalizeExecutionError(_0x350145);_0xac3bdc=createErrorToolResult(_0x18e1b9,_0x31b30a,_0xb87cd9,_0x5e90e6);}return _0x40ed7a?await emitToolCompletedEventWithTerminalPrecedence(_0x159b1b,_0x16404c,_0x18e1b9,_0x31b30a,_0xac3bdc,_0x595771):await emitEvent(_0x159b1b,{'type':_0x3ee4a8(_0x1b573f._0x281b80,0x83,0x127,0x11b),'toolCall':cloneToolCallForPublication(_0x16404c,_0x18e1b9,_0x31b30a),'result':_0xac3bdc},_0x595771),_0xac3bdc;}function _0x292abe(_0x1d9a13,_0x4da273,_0x43e64b,_0x4dd1ab){return _0xf3454f(_0x43e64b- -0x384,_0x4da273-_0x557d87._0xd69c67,_0x1d9a13,_0x4dd1ab-0x1f2);}try{return await executeAcquiredToolCall(_0x472202,_0x16404c,_0x18e1b9,_0x31b30a,_0x22efa5,_0x5a9503,_0x159b1b);}finally{_0x275b3a?.();}}async function executeAcquiredToolCall(_0x40835e,_0xaafac8,_0x709834,_0x235867,_0x1e94d6,_0x1db3ee,_0x323261){const _0x1c958d={_0x3a3936:0x1a2,_0x1d0bd2:0xa2,_0x3595f8:0x97,_0x3474a4:0x81,_0xef13eb:0x5a,_0x4a560d:0x16f,_0x2dd22f:0x109,_0xf14572:0x1f7,_0x34c643:0x1ab,_0x24b5d5:0xdc,_0x12ccd2:0x162,_0x3644af:0x155,_0x5689a3:0x237,_0x51bc53:0x195,_0x2becd7:0x22a,_0x91bdb7:0x1,_0x217428:0x78,_0x3e9447:0xc,_0x460d41:0x8b,_0x4acc9d:0xe0,_0x262dc9:0x17,_0x48af63:0x30,_0x335579:0x58,_0x35d068:0x177,_0x3e5fa9:0xda,_0x5b935c:0x145,_0x765b36:0x15d,_0xd18f72:0xec,_0x20d90a:0x10c,_0x17c048:0x199,_0x3f9a1e:0x109,_0x4ec59c:0x184,_0x30cf13:0x1b4,_0x4fed46:0x151,_0x5e9636:0x12b,_0x55f569:0x137,_0x3611d9:0x142,_0x429002:0x55,_0x17624a:0x1a,_0x50a024:0x16c,_0x11c1db:0x1ff,_0xacdc2:0x1fb,_0x44076a:0xb3,_0x3dc78a:0x205,_0x3f2975:0x16c,_0xe29c19:0x151,_0x2ae3ab:0xa6,_0x272969:0x7b,_0x11ab19:0x1e2,_0x2011da:0x205,_0x1aa227:0x17d,_0x1d7996:0x14e,_0x25cbe6:0x10d,_0x459df6:0x1d4,_0x1051b0:0x1ca,_0x534495:0x138,_0x5de605:0x154,_0x7ccbfb:0xe1,_0x3588b5:0xe6,_0x2cb2a8:0x12,_0x358699:0xc9,_0x4867dc:0x128,_0x3a4e3d:0xd8,_0x4ddcce:0x1e,_0x392faa:0x260,_0x49e993:0x241,_0x2a1f18:0x2c6,_0x4fa8c1:0x14e,_0x527b2b:0x152,_0x4773a1:0x191},_0x34a5a5={_0x4089c0:0x549,_0x1559a2:0x46f,_0x5da0e5:0x459,_0x479680:0xc1,_0x355baf:0xda},_0x1ea270={_0x51fda0:0x29,_0x2b0c67:0x1d0,_0x1aa040:0x253},_0x4ff44d={_0x3f4fbc:0x37d,_0x507392:0x7b},_0x17d4d4={_0x388b5e:0x357,_0x149fda:0x1e1,_0x7e9c2f:0x1e0};function _0x5c3d5e(_0x39f108,_0x216a0c,_0x365646,_0x512be0){return _0xf3454f(_0x365646- -_0x17d4d4._0x388b5e,_0x216a0c-_0x17d4d4._0x149fda,_0x216a0c,_0x512be0-_0x17d4d4._0x7e9c2f);}const _0x5d77d8={..._0x1e94d6,'toolCallId':_0x709834,'permissionClass':resolveToolPermissionClass(_0x40835e),'executionAuthorization':void 0x0};throwIfAborted(_0x5d77d8[_0x4ca0e1(-_0x1c958d._0x3a3936,-0x1c6,-0x205,-0x224)]);let _0x4f329b;function _0x4ca0e1(_0x2a1d0b,_0x1e61b6,_0x2d442b,_0xe8e16a){return _0x3f402d(_0x2a1d0b-0x144,_0x2d442b- -_0x4ff44d._0x3f4fbc,_0x2d442b-_0x4ff44d._0x507392,_0xe8e16a);}try{_0x4f329b=await resolveDispatchDecision(_0x1db3ee[_0x5c3d5e(-_0x1c958d._0x1d0bd2,-0x7a,-_0x1c958d._0x3595f8,-0xef)],_0xaafac8,_0x5d77d8);}catch(_0x2fd5ad){if(isAbortError(_0x2fd5ad)){const _0x4d6c48=createAbortedToolResult(_0x709834,_0x235867,_0x2fd5ad);return await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x4d6c48,_0x5d77d8),_0x4d6c48;}const {errorMessage:_0x1ad411,structured:_0x10d4f2}=normalizeExecutionError(_0x2fd5ad),_0x34612e=createErrorToolResult(_0x709834,_0x235867,_0x1ad411,_0x10d4f2);return await emitEvent(_0x323261,{'type':_0x5c3d5e(-_0x1c958d._0x3474a4,-_0x1c958d._0xef13eb,-0x46,-0x44),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0x34612e},_0x5d77d8),_0x34612e;}throwIfAborted(_0x5d77d8[_0x5c3d5e(-_0x1c958d._0x4a560d,-0x16b,-_0x1c958d._0x2dd22f,-0xea)]);if(_0x4f329b[_0x4ca0e1(-_0x1c958d._0xf14572,-0x1a0,-0x1a4,-0x204)]===_0x4ca0e1(-0x11f,-0x139,-_0x1c958d._0x34c643,-0x205)){const _0x4b7a4b=createRejectedToolResult(_0x709834,_0x235867,_0x4f329b['reason']);return await emitEvent(_0x323261,{'type':_0x5c3d5e(-0xa5,-0xbe,-_0x1c958d._0x24b5d5,-0x59),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0x4b7a4b},_0x5d77d8),_0x4b7a4b;}if(!_0x40835e){const _0xf80c8a=createUnknownToolResult(_0x709834,_0x235867);return await emitEvent(_0x323261,{'type':_0x4ca0e1(-_0x1c958d._0x12ccd2,-0x1b9,-0x142,-0x108),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0xf80c8a},_0x5d77d8),_0xf80c8a;}const _0x40d78b=createBoundToolExecutionControl(_0x709834,_0x5d77d8,_0x1db3ee,_0x323261),_0x1acdc1={..._0x5d77d8,'executionAuthorization':_0x4f329b[_0x4ca0e1(-0xec,-0xec,-_0x1c958d._0x3644af,-0x102)],..._0x40d78b[_0x4ca0e1(-_0x1c958d._0x5689a3,-0x12a,-0x1b8,-_0x1c958d._0x51bc53)]};throwIfAborted(_0x1acdc1[_0x4ca0e1(-0x264,-_0x1c958d._0x2becd7,-0x205,-0x1ec)]);try{await emitEvent(_0x323261,{'type':_0x5c3d5e(-0xb8,_0x1c958d._0x91bdb7,-_0x1c958d._0x217428,_0x1c958d._0x3e9447),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867)},_0x1acdc1);}catch(_0x4c3354){const _0x4e3b93=_0x40d78b[_0x5c3d5e(-0x14,-_0x1c958d._0x460d41,-0x7b,-_0x1c958d._0x4acc9d)]();if(actualCancellationHasPrecedence(_0x1acdc1,_0x4e3b93)){const _0x3ace55=selectActualCancellationReason(_0x4c3354,_0x1acdc1['signal'][_0x5c3d5e(_0x1c958d._0x262dc9,_0x1c958d._0x48af63,-_0x1c958d._0x335579,0x6)]),_0x19ffd1=createAbortedToolResult(_0x709834,_0x235867,_0x3ace55);return _0x40d78b[_0x5c3d5e(-_0x1c958d._0x35d068,-_0x1c958d._0x3e5fa9,-_0x1c958d._0x5b935c,-_0x1c958d._0x765b36)](_0x3ace55),await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x19ffd1,_0x1acdc1,_0x4e3b93),_0x19ffd1;}_0x40d78b[_0x5c3d5e(-_0x1c958d._0xd18f72,-_0x1c958d._0x20d90a,-0x145,-_0x1c958d._0x17c048)](_0x4c3354);throw _0x4c3354;}try{throwIfAborted(_0x1acdc1[_0x5c3d5e(-0x177,-0x10b,-_0x1c958d._0x3f9a1e,-_0x1c958d._0x4ec59c)]);const _0x5f1d5c=validateToolInput(_0xaafac8[_0x4ca0e1(-0x1c2,-_0x1c958d._0x30cf13,-0x1ad,-0x22a)],_0x40835e[_0x5c3d5e(-_0x1c958d._0x4fed46,-0x109,-0xcf,-_0x1c958d._0x5e9636)]),_0x1fee10=await _0x40835e[_0x5c3d5e(-_0x1c958d._0x55f569,-0x1a3,-0x14e,-_0x1c958d._0x3611d9)](_0x5f1d5c,_0x1acdc1),_0x371b1c=[],_0x969ae2=addAbortListener(_0x1acdc1[_0x5c3d5e(-0x18c,-0x10f,-0x109,-_0x1c958d._0x4a560d)],()=>{const _0x3e3203={_0x5adbfe:0x1ad};function _0x2f91be(_0xfad6ad,_0x34e9b7,_0xe54619,_0x251698){return _0x4ca0e1(_0xfad6ad-_0x1ea270._0x51fda0,_0x34e9b7-_0x1ea270._0x2b0c67,_0xfad6ad-_0x1ea270._0x1aa040,_0x251698);}function _0x38f331(_0x4de45f,_0x3519c1,_0x3041fb,_0x509976){return _0x5c3d5e(_0x4de45f-_0x3e3203._0x5adbfe,_0x4de45f,_0x3519c1-0x5d3,_0x509976-0x79);}!_0x40d78b[_0x38f331(_0x34a5a5._0x4089c0,0x558,0x536,0x501)]()&&void _0x1fee10[_0x38f331(_0x34a5a5._0x1559a2,0x495,0x4ad,_0x34a5a5._0x5da0e5)](void 0x0)[_0x2f91be(_0x34a5a5._0x479680,0x34,_0x34a5a5._0x355baf,0x9f)](()=>{});});try{throwIfAborted(_0x1acdc1['signal']);let _0x480b28=await _0x1fee10[_0x5c3d5e(0x19,-_0x1c958d._0x3e5fa9,-_0x1c958d._0x429002,_0x1c958d._0x17624a)]();while(!_0x480b28['done']){throwIfAborted(_0x1acdc1[_0x5c3d5e(-0x18d,-_0x1c958d._0x50a024,-_0x1c958d._0x2dd22f,-0xdb)]);const _0x28c029=normalizeToolOutputValue(_0x480b28[_0x4ca0e1(-0x24d,-_0x1c958d._0x11c1db,-0x22a,-_0x1c958d._0xacdc2)]);_0x371b1c['push'](_0x28c029),await emitEvent(_0x323261,{'type':_0x5c3d5e(-0x85,-_0x1c958d._0x44076a,-0xce,-0x123),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'chunk':_0x28c029},_0x1acdc1),throwIfAborted(_0x1acdc1[_0x4ca0e1(-0x26d,-0x267,-_0x1c958d._0x3dc78a,-0x25c)]),_0x480b28=await _0x1fee10[_0x4ca0e1(-0x156,-_0x1c958d._0x3f2975,-_0x1c958d._0xe29c19,-0x159)]();}!_0x40d78b[_0x5c3d5e(-0x7b,-_0x1c958d._0x2ae3ab,-_0x1c958d._0x272969,-0xa7)]()&&throwIfAborted(_0x1acdc1[_0x4ca0e1(-_0x1c958d._0x11ab19,-0x1b7,-_0x1c958d._0x2011da,-_0x1c958d._0x1aa227)]);const _0x11e277=_0x480b28['value']===void 0x0?deriveFinalToolOutput(_0x371b1c):normalizeToolOutputValue(_0x480b28[_0x4ca0e1(-0x213,-_0x1c958d._0x30cf13,-0x22a,-0x297)]),_0xda31aa=createSuccessToolResult(_0x709834,_0x235867,_0x11e277,_0x371b1c);return _0x40d78b[_0x5c3d5e(-_0x1c958d._0x1d7996,-0xcf,-0x145,-0x1ce)](),await emitEvent(_0x323261,{'type':_0x4ca0e1(-_0x1c958d._0x25cbe6,-0xf9,-_0x1c958d._0x3611d9,-0x151),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0xda31aa},_0x1acdc1),_0xda31aa;}catch(_0x368072){const _0x530707=_0x40d78b[_0x5c3d5e(-0x55,-0xca,-0x7b,-0xcb)](),_0x5a242b=actualCancellationHasPrecedence(_0x1acdc1,_0x530707);if(_0x5a242b||isAbortError(_0x368072)){const _0x5ea5b6=_0x5a242b?selectActualCancellationReason(_0x368072,_0x1acdc1[_0x4ca0e1(-0x23b,-_0x1c958d._0x459df6,-0x205,-_0x1c958d._0x1051b0)][_0x4ca0e1(-0x110,-_0x1c958d._0x534495,-_0x1c958d._0x5de605,-0x12e)]):_0x368072,_0x190988=createAbortedToolResult(_0x709834,_0x235867,_0x5ea5b6,_0x371b1c);return _0x40d78b['close'](_0x5ea5b6),await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x190988,_0x1acdc1,_0x530707),_0x190988;}if(_0x368072 instanceof ToolRuntimeInfrastructureError)throw _0x368072;const {errorMessage:_0x2b6cf0,structured:_0x67ccb2}=normalizeExecutionError(_0x368072),_0x398fad=createErrorToolResult(_0x709834,_0x235867,_0x2b6cf0,_0x67ccb2,_0x371b1c);return _0x40d78b[_0x5c3d5e(-0x1a6,-_0x1c958d._0x7ccbfb,-0x145,-0x183)](_0x368072),await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x398fad,_0x1acdc1,_0x40d78b[_0x5c3d5e(-_0x1c958d._0x3588b5,_0x1c958d._0x2cb2a8,-0x7b,-_0x1c958d._0x358699)]()),_0x398fad;}finally{_0x969ae2();}}catch(_0x3d85dc){const _0x537fe1=_0x40d78b['isTerminalStateCommitted'](),_0x51c91d=actualCancellationHasPrecedence(_0x1acdc1,_0x537fe1);if(_0x51c91d||isAbortError(_0x3d85dc)){const _0x550086=_0x51c91d?selectActualCancellationReason(_0x3d85dc,_0x1acdc1[_0x5c3d5e(-0x195,-0xa1,-0x109,-_0x1c958d._0x4867dc)][_0x5c3d5e(-0x21,-_0x1c958d._0x3a4e3d,-0x58,_0x1c958d._0x4ddcce)]):_0x3d85dc,_0x585805=createAbortedToolResult(_0x709834,_0x235867,_0x550086);return _0x40d78b[_0x4ca0e1(-0x1fe,-_0x1c958d._0x392faa,-0x241,-0x2bb)](_0x550086),await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x585805,_0x1acdc1,_0x537fe1),_0x585805;}if(_0x3d85dc instanceof ToolRuntimeInfrastructureError)throw _0x3d85dc;const {errorMessage:_0x22a24a,structured:_0x4af3da}=normalizeExecutionError(_0x3d85dc),_0x401129=createErrorToolResult(_0x709834,_0x235867,_0x22a24a,_0x4af3da);return _0x40d78b[_0x4ca0e1(-0x1ce,-0x289,-_0x1c958d._0x49e993,-_0x1c958d._0x2a1f18)](_0x3d85dc),await emitEvent(_0x323261,{'type':_0x4ca0e1(-_0x1c958d._0x4fa8c1,-_0x1c958d._0x527b2b,-0x142,-_0x1c958d._0x4773a1),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0x401129},_0x1acdc1),_0x401129;}finally{_0x40d78b[_0x5c3d5e(-0x169,-0x189,-0x145,-0x198)]();}}async function executeRegisteredToolCall(_0x25ea03,_0x583f14,_0x432ac2,_0x5871bc){const _0x22e9b0=_0x583f14['id'],_0x9f433c=_0x583f14['name'],_0x3d9053=_0x25ea03['get'](_0x9f433c);return await executeCapturedToolCall(_0x3d9053,_0x583f14,_0x22e9b0,_0x9f433c,_0x432ac2,_0x5871bc);}function createInternalToolRuntime(_0x44cde9=[],_0x43dd5c={}){const _0x3cbf32={_0x1ca28d:0x484},_0xc8326d={_0x86c0e5:0x2ff},_0x34b252={_0x8c2fb8:0x1c1,_0xad9c09:0xba},_0x38bb67={_0x9bba94:0xc5},_0x236cce={_0x52aa82:0x9};let _0x257261=new ToolRegistry(_0x44cde9);return{'listToolSchemas'(){function _0x461764(_0x26f564,_0x401cb3,_0x479a23,_0x18211d){return _0x3519(_0x26f564- -0x251,_0x479a23);}return _0x257261[_0x461764(-0x4b,-0x38,-0x6a,_0x236cce._0x52aa82)]();},'setTools'(_0x3aa0b9){_0x257261=new ToolRegistry(_0x3aa0b9);},async 'executeCalls'(_0x30aeb9,_0x3af1b6){function _0x5042f2(_0x2665ab,_0x1a4e4a,_0x5c121a,_0x5de270){return _0x3519(_0x2665ab- -_0x38bb67._0x9bba94,_0x1a4e4a);}function _0x28ef63(_0x2befcb,_0x493224,_0x3c6f1e,_0x519b6f){return _0x3519(_0x3c6f1e-0x9d,_0x519b6f);}return await Promise[_0x5042f2(0x154,0x1c3,_0x34b252._0x8c2fb8,0x103)](_0x30aeb9[_0x5042f2(_0x34b252._0xad9c09,0xf1,0x57,0x105)](async _0x2c920d=>{return await executeRegisteredToolCall(_0x257261,_0x2c920d,_0x3af1b6,_0x43dd5c);}));},async 'execute'(_0x26b109,_0x5a46ce){function _0x3394cb(_0xe5a4ea,_0x52457b,_0xd2a2b9,_0x5f3b1){return _0x3519(_0x52457b-_0xc8326d._0x86c0e5,_0x5f3b1);}const [_0x4fbba4]=await this[_0x3394cb(0x435,_0x3cbf32._0x1ca28d,0x3fb,0x4e4)]([_0x26b109],_0x5a46ce);return _0x4fbba4;}};}function getOrderedObserverExtensions(_0xa1656b,_0x11e80c){const _0x29d673={_0x2bd066:0x1b5,_0x436eda:0x171},_0x1ec1b5={_0x22afe7:0x144,_0x597e85:0x72,_0x27c569:0x118,_0x3ec21a:0xe4,_0x29d06c:0xe3,_0x3f99d5:0x7b,_0x4e2d9c:0x18f,_0x33669d:0x11b,_0x389e58:0x133},_0x2d3571={_0x2bf6d8:0x148},_0xf873d9={_0x1c406b:0x15c,_0x1c1f22:0x3e2,_0x588de8:0x3d2,_0x46e452:0x59a,_0x21e794:0x4d6},_0x5543c7={_0xf61c77:0x379,_0x4c0e01:0x50};function _0x36a6e3(_0x2fae1f,_0x4f4245,_0x58e11c,_0x505ada){return _0xf3454f(_0x58e11c- -_0x5543c7._0xf61c77,_0x4f4245-_0x5543c7._0x4c0e01,_0x505ada,_0x505ada-0x5e);}return _0xa1656b[_0x36a6e3(-0x11d,-_0x29d673._0x2bd066,-_0x29d673._0x436eda,-0x190)](_0x5ddcdf=>{const _0x44cb14={_0x30afa2:0xb};function _0x149930(_0x3ca7a8,_0x357a09,_0xbb424e,_0xff3918){return _0x36a6e3(_0x3ca7a8-0x44,_0x357a09-0x5d,_0x357a09- -0x4,_0x3ca7a8);}function _0x5ce66c(_0x4ef9e8,_0x3deac3,_0x38c287,_0x338988){return _0x36a6e3(_0x4ef9e8-0x10d,_0x3deac3-_0x44cb14._0x30afa2,_0x4ef9e8-0x57f,_0x38c287);}return _0x5ddcdf[_0x149930(-0x166,-_0xf873d9._0x1c406b,-0x192,-0x1e2)]!==![]&&_0x5ddcdf[_0x5ce66c(0x430,0x3c5,_0xf873d9._0x1c1f22,_0xf873d9._0x588de8)]===_0x11e80c&&_0x5ddcdf[_0x5ce66c(0x510,0x4a7,_0xf873d9._0x46e452,_0xf873d9._0x21e794)]==='observer';})['sort']((_0x1ca85b,_0x47045d)=>{const _0x4addb4={_0x44a2ad:0x25,_0x2b9991:0x10};if(_0x1ca85b[_0x10ae73(-_0x1ec1b5._0x22afe7,-0x10d,-0xfd,-0xe4)]===!![]&&_0x47045d[_0x10ae73(-_0x1ec1b5._0x597e85,-_0x1ec1b5._0x27c569,-0x89,-_0x1ec1b5._0x3ec21a)]!==!![])return 0x1;function _0x10ae73(_0x278b11,_0x2970d6,_0x21b93b,_0x54cc62){return _0x36a6e3(_0x278b11-0x196,_0x2970d6-_0x4addb4._0x44a2ad,_0x54cc62- -_0x4addb4._0x2b9991,_0x21b93b);}function _0x26042c(_0xc63881,_0x50cbd3,_0x3c5c52,_0x4eac32){return _0x36a6e3(_0xc63881-0x13a,_0x50cbd3-_0x2d3571._0x2bf6d8,_0x50cbd3-0xa1,_0x4eac32);}if(_0x1ca85b[_0x10ae73(-_0x1ec1b5._0x29d06c,-_0x1ec1b5._0x3f99d5,-0xcc,-0xe4)]!==!![]&&_0x47045d[_0x10ae73(-0x170,-0xaa,-0xd6,-0xe4)]===!![])return-0x1;return _0x1ca85b[_0x10ae73(-_0x1ec1b5._0x4e2d9c,-0xab,-_0x1ec1b5._0x33669d,-_0x1ec1b5._0x389e58)]-_0x47045d['order'];});}function getOrderedTransformerExtensions(_0x479b9a,_0x559489){const _0x30452d={_0x1003ab:0x22b,_0x9fd3a9:0x1a4,_0x54c6af:0x27a},_0x5e3d38={_0x23dd2c:0x3f,_0x4e909f:0xe,_0x21b3da:0x6c,_0x5713e7:0x293,_0x501218:0x2ba,_0x51e58d:0x1f,_0x4c3fd1:0x2,_0x4ab55e:0x89},_0x3cef72={_0x7feae1:0xb6},_0x47d76b={_0x5a7720:0x181,_0x10f8a6:0x72};function _0x37b3a2(_0x6abd27,_0x3a4d29,_0x1e1572,_0xfd491d){return _0xf3454f(_0x6abd27- -0x463,_0x3a4d29-_0x47d76b._0x5a7720,_0x3a4d29,_0xfd491d-_0x47d76b._0x10f8a6);}function _0x35cd7e(_0xb837d2,_0x37a386,_0x2b43c0,_0x455394){return _0xf3454f(_0xb837d2- -_0x3cef72._0x7feae1,_0x37a386-0x1d5,_0x2b43c0,_0x455394-0xe6);}return _0x479b9a['filter'](_0x46c731=>{const _0x27d58f={_0x371676:0x161};function _0x3df50c(_0x489ccb,_0x2644a0,_0x38f640,_0x5c27e3){return _0x3519(_0x2644a0- -_0x27d58f._0x371676,_0x489ccb);}function _0x52b4fd(_0x15891d,_0x1cc65f,_0x4a031d,_0xeef13d){return _0x3519(_0x4a031d- -0x3c8,_0x1cc65f);}return _0x46c731[_0x3df50c(-_0x5e3d38._0x23dd2c,_0x5e3d38._0x4e909f,0x3,_0x5e3d38._0x21b3da)]!==![]&&_0x46c731[_0x52b4fd(-_0x5e3d38._0x5713e7,-0x274,-0x250,-_0x5e3d38._0x501218)]===_0x559489&&_0x46c731['kind']===_0x3df50c(-_0x5e3d38._0x51e58d,_0x5e3d38._0x4c3fd1,-_0x5e3d38._0x4ab55e,-0x47);})[_0x35cd7e(0x1f6,_0x30452d._0x1003ab,_0x30452d._0x9fd3a9,_0x30452d._0x54c6af)]((_0x5976ad,_0x3572a5)=>_0x5976ad[_0x37b3a2(-0x20d,-0x195,-0x216,-0x216)]-_0x3572a5[_0x35cd7e(0x1a0,0x1bb,0x1e6,0x215)]);}function createExtensionRegistry(){const _0x796c85={_0x32fad6:0x147},_0x157bc9={_0x53dde2:0x489},_0x3eb11d={_0x4a9d2f:0xed,_0x56b37f:0x1c1,_0x40c9d8:0x1d8,_0x5ba972:0x29e,_0x117d7f:0x2b9,_0x2a99e7:0x2f0,_0x5ed820:0x285,_0x1da3af:0x283,_0x5429ee:0x223,_0x17dba5:0x1c7,_0x32c1a9:0x205,_0x1d8d1a:0xc7,_0x24595b:0xcb,_0x6b2654:0x5},_0x301a7b={_0x1cf73f:0x145},_0x466b82=[];return{'register'(_0x41e7d3){function _0x337062(_0xd94b41,_0x2842db,_0x29baf2,_0x268088){return _0x3519(_0x29baf2- -_0x301a7b._0x1cf73f,_0x268088);}if(_0x41e7d3['kind']===_0x337062(0x14b,0x174,0x11f,_0x3eb11d._0x4a9d2f)&&_0x41e7d3[_0x2401e2(0x21a,_0x3eb11d._0x56b37f,0x295,_0x3eb11d._0x40c9d8)]!==![]&&_0x41e7d3[_0x2401e2(_0x3eb11d._0x5ba972,0x309,_0x3eb11d._0x117d7f,0x2a6)]===!![]){const _0x20ffc7=_0x466b82[_0x2401e2(0x2f1,0x26b,0x325,0x370)](_0x761b72=>_0x761b72[_0x2401e2(0x303,0x34a,0x31c,0x338)]===_0x2401e2(0x30f,0x38e,0x314,0x31f)&&_0x761b72[_0x337062(-0x51,0x45,0x2a,0x67)]!==![]&&_0x761b72[_0x337062(0x69,-0x4c,0x33,0x1)]===_0x41e7d3[_0x337062(0xb9,0xbe,0x33,0x78)]&&_0x761b72['terminal']===!![]);if(_0x20ffc7)throw new Error('Cannot\x20register\x20terminal\x20observer\x20\x22'+_0x41e7d3['id']+_0x2401e2(_0x3eb11d._0x2a99e7,_0x3eb11d._0x5ed820,_0x3eb11d._0x1da3af,0x2a5)+_0x41e7d3[_0x2401e2(_0x3eb11d._0x5429ee,_0x3eb11d._0x17dba5,_0x3eb11d._0x32c1a9,0x1e3)]+_0x337062(0xf9,0x9b,_0x3eb11d._0x1d8d1a,0x102)+_0x20ffc7['id']+_0x337062(_0x3eb11d._0x24595b,0xe0,0x61,_0x3eb11d._0x6b2654));}function _0x2401e2(_0x3c4e5b,_0x2e344d,_0x534474,_0xe19b7f){return _0x3519(_0x3c4e5b-0xab,_0x2e344d);}_0x466b82['push']({..._0x41e7d3});},async 'runTransformers'(_0x543582,_0x1b96c5,_0x171b68){let _0xf2c809=_0x1b96c5;for(const _0x45b9d1 of getOrderedTransformerExtensions(_0x466b82,_0x543582)){_0xf2c809=await _0x45b9d1[_0x2d0b4b(0x39f,_0x157bc9._0x53dde2,0x3fd,0x38c)](_0xf2c809,_0x171b68);}function _0x2d0b4b(_0x1484aa,_0x5ed49d,_0x263419,_0x21d3b1){return _0x3519(_0x263419-0x271,_0x21d3b1);}return _0xf2c809;},async 'runObservers'(_0x375104,_0x3d9bfb,_0xf881f6){function _0x376ea6(_0x4f448b,_0x33f509,_0x1187c3,_0x37b58a){return _0x3519(_0x1187c3- -0x2,_0x37b58a);}for(const _0x6b0d00 of getOrderedObserverExtensions(_0x466b82,_0x375104)){await _0x6b0d00[_0x376ea6(0x216,_0x796c85._0x32fad6,0x18a,0x132)](_0x3d9bfb,_0xf881f6);}}};}var MODEL_USAGE_TOTAL_KEYS=['totalTokens','totalInputTokens',_0xf3454f(0x21c,0x1d1,0x21a,0x242),_0xf3454f(0x2bc,0x30d,0x315,0x30d),'requestCount',_0xf3454f(0x287,0x2a9,0x2c4,0x282),_0xf3454f(0x29a,0x2d8,0x251,0x2d4),'totalCostUsdTicks',_0xf3454f(0x2d2,0x2c0,0x2a0,0x2fe),_0x3f402d(0x278,0x244,0x269,0x2ab),_0xf3454f(0x2b0,0x30f,0x2e3,0x298),_0xf3454f(0x282,0x24d,0x293,0x2a1),_0x3f402d(0x108,0x169,0x1b2,0x1c1),_0xf3454f(0x2aa,0x278,0x307,0x22b),_0xf3454f(0x25a,0x27a,0x1ef,0x2d4)],SUBAGENT_REPORT_META_KEYS=[_0xf3454f(0x245,0x281,0x20e,0x1e7),_0x3f402d(0x1b8,0x213,0x1b5,0x27f),'turnId',_0xf3454f(0x2c4,0x31e,0x2be,0x317),_0x3f402d(0x17b,0x147,0x152,0xbe),_0xf3454f(0x2f4,0x35a,0x366,0x2ec)],ModelUsageOverflowError=class extends RangeError{[_0x3f402d(0x149,0x18f,0x141,0x1e2)]=_0xf3454f(0x20f,0x23b,0x207,0x183);};function hasExactKeys(_0x186ae4,_0x1366f1){const _0x3eb90e={_0x46afab:0x14f,_0x58f57d:0x161,_0x42e06e:0x1f4,_0x4e3fa0:0x79,_0x5ee696:0x18d,_0x2299cf:0xfd,_0x269a07:0x102,_0x783516:0x125,_0x11097b:0x17a},_0x10feb6={_0xed3c1:0x2cd,_0x4f9329:0x54},_0x3cc398={_0x383352:0x101};function _0x1be8d8(_0x212c0d,_0x15d7e5,_0x45e953,_0x4616b5){return _0x3f402d(_0x212c0d-_0x3cc398._0x383352,_0x45e953-0x8d,_0x45e953-0xa8,_0x4616b5);}if(typeof _0x186ae4!==_0x23799c(-_0x3eb90e._0x46afab,-_0x3eb90e._0x58f57d,-0x170,-0x1b7)||_0x186ae4===null||Array[_0x1be8d8(0x1b7,0x26e,0x222,_0x3eb90e._0x42e06e)](_0x186ae4))return![];const _0x139b31=Object['keys'](_0x186ae4);function _0x23799c(_0x525972,_0x60cc8b,_0x134b77,_0x459e55){return _0x3f402d(_0x525972-0x1cd,_0x60cc8b- -_0x10feb6._0xed3c1,_0x134b77-_0x10feb6._0x4f9329,_0x134b77);}return _0x139b31[_0x23799c(-0xfa,-0x102,-_0x3eb90e._0x4e3fa0,-_0x3eb90e._0x5ee696)]===_0x1366f1[_0x23799c(-_0x3eb90e._0x2299cf,-_0x3eb90e._0x269a07,-_0x3eb90e._0x783516,-_0x3eb90e._0x11097b)]&&_0x139b31[_0x23799c(-0x1bb,-0x152,-0x120,-0x1cf)](_0x11693a=>_0x1366f1[_0x1be8d8(0x29d,0x228,0x288,0x2cf)](_0x11693a));}function isNonNegativeSafeInteger(_0x2fccee){const _0x1fc5cb={_0x23de24:0x4ac,_0x13e33d:0x49f};function _0x3708d2(_0x25761c,_0x2eaf68,_0x1d85d8,_0x342e85){return _0x3f402d(_0x25761c-0x3b,_0x2eaf68-0x341,_0x1d85d8-0x128,_0x25761c);}return typeof _0x2fccee==='number'&&Number[_0x3708d2(_0x1fc5cb._0x23de24,0x479,_0x1fc5cb._0x13e33d,0x47d)](_0x2fccee)&&_0x2fccee>=0x0;}function requireModelUsageInteger(_0x5221e6){const _0x5a5ca1={_0x54a19d:0xc0},_0x183fe3={_0x306d0e:0x1c0,_0x27e800:0xc5,_0x5ae966:0x14f};function _0x3de120(_0x4703c4,_0x4e39e9,_0x318053,_0x291015){return _0x3f402d(_0x4703c4-_0x183fe3._0x306d0e,_0x291015- -_0x183fe3._0x27e800,_0x318053-_0x183fe3._0x5ae966,_0x318053);}if(!isNonNegativeSafeInteger(_0x5221e6))throw new ModelUsageOverflowError(_0x3de120(0xfc,0x10f,0x84,_0x5a5ca1._0x54a19d));return _0x5221e6;}function addModelUsageInteger(_0x37af52,_0x757855){return requireModelUsageInteger(_0x37af52+_0x757855);}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(_0x327da3){const _0x4135d5={_0x3e8977:0x511,_0xf3d6ff:0x561,_0x18bdd3:0x5b,_0x2aab6a:0xf7,_0x15a5e7:0x97,_0x37f0d7:0x86,_0x2902b2:0x114,_0x185e2e:0x498,_0x2580b1:0x4fd,_0x451487:0x480,_0x5e085a:0x483,_0x825987:0x4ec,_0x2bbcaf:0x500,_0x1a33cc:0x4ee,_0xf55c4c:0xc9,_0x3e0cfc:0x170,_0x78f1b6:0x132,_0x3f23d4:0x10d,_0x434a4e:0xec,_0x3f6fa6:0x59,_0x2dc434:0x9c,_0x1c4d53:0xf1,_0x3b2ef6:0x168,_0x232338:0x119,_0x52fdba:0x140,_0x3b63d4:0x142,_0x373e77:0x107,_0x5be3b7:0x13c},_0x105c12={_0x5987aa:0x1d5},_0x573a04={_0x5daea6:0x1f3,_0x42a910:0x126};function _0x1ce682(_0x7e95d6,_0x1a40e2,_0x24778d,_0x45e302){return _0x3f402d(_0x7e95d6-_0x573a04._0x5daea6,_0x1a40e2-0x33d,_0x24778d-_0x573a04._0x42a910,_0x45e302);}if(!hasExactKeys(_0x327da3,MODEL_USAGE_TOTAL_KEYS))return![];for(const _0x1e8490 of MODEL_USAGE_TOTAL_KEYS){if(_0x1e8490==='historicalMetricsComplete')continue;if(!isNonNegativeSafeInteger(_0x327da3[_0x1e8490]))return![];}if(typeof _0x327da3[_0x1ce682(0x4da,_0x4135d5._0x3e8977,_0x4135d5._0xf3d6ff,0x573)]!==_0x810aae(_0x4135d5._0x18bdd3,_0x4135d5._0x2aab6a,0x2f,_0x4135d5._0x15a5e7))return![];const _0x3ebae0=_0x327da3;function _0x810aae(_0x532e00,_0x5474bb,_0x11abe,_0xc87045){return _0xf3454f(_0xc87045- -0x1a3,_0x5474bb-_0x105c12._0x5987aa,_0x532e00,_0xc87045-0x169);}return _0x3ebae0[_0x810aae(0x79,_0x4135d5._0x37f0d7,_0x4135d5._0x2902b2,0xd9)]===_0x3ebae0[_0x1ce682(_0x4135d5._0x185e2e,0x487,_0x4135d5._0x2580b1,0x4dd)]+_0x3ebae0[_0x1ce682(0x4b6,0x483,_0x4135d5._0x451487,0x49e)]&&_0x3ebae0['totalReasoningTokens']<=_0x3ebae0[_0x1ce682(0x400,_0x4135d5._0x5e085a,0x4b4,_0x4135d5._0x825987)]&&_0x3ebae0['requestCount']<=_0x3ebae0[_0x1ce682(_0x4135d5._0x2bbcaf,_0x4135d5._0x1a33cc,0x54d,0x544)]&&_0x3ebae0[_0x810aae(_0x4135d5._0xf55c4c,_0x4135d5._0x3e0cfc,_0x4135d5._0x78f1b6,_0x4135d5._0x3f23d4)]<=_0x3ebae0['modelCallCount']&&_0x3ebae0[_0x810aae(0x16a,_0x4135d5._0x434a4e,0x119,0xdf)]<=_0x3ebae0['modelCallCount']&&_0x3ebae0[_0x810aae(0xfe,0x90,_0x4135d5._0x3f6fa6,_0x4135d5._0x2dc434)]<=_0x3ebae0[_0x810aae(_0x4135d5._0x1c4d53,0x152,_0x4135d5._0x3b2ef6,0xe4)]&&_0x3ebae0[_0x810aae(_0x4135d5._0x232338,_0x4135d5._0x52fdba,_0x4135d5._0x3b63d4,_0x4135d5._0x373e77)]===(_0x3ebae0[_0x810aae(0xcc,0x138,_0x4135d5._0x5be3b7,0xb7)]===0x0);}function isSubagentReportMeta(_0x3760ac){const _0x243529={_0x4d4399:0x57d,_0x97f13c:0x3dd,_0x5ddd54:0x39b,_0xef2470:0x402,_0x2dc64a:0x43f,_0xb36639:0x50c,_0x169fcd:0x4de,_0x576eea:0x388,_0x3eb941:0x35d,_0x40f557:0x3bd,_0x4a2225:0x5f1,_0x309f3c:0x675,_0x163636:0x44a,_0x112755:0x5a1,_0x1a22c0:0x4b2,_0x2810eb:0x445,_0x48119a:0x610,_0x56ff80:0x5d6,_0x598215:0x49b,_0x40f6d9:0x46d,_0x52f631:0x457,_0x1f585a:0x5d4,_0x3e7246:0x554,_0x2c5a21:0x5dc,_0x2d0ac4:0x40d,_0x2b3945:0x58e,_0x314584:0x61c,_0x58f5d4:0x3ee,_0x52b9ef:0x457,_0x372430:0x3b9,_0x4bf737:0x63c,_0x42ad03:0x6a0,_0x416ac2:0x5ab,_0x5787a2:0x616,_0x159351:0x539,_0x46627b:0x4eb,_0x4a2e38:0x53f,_0x466bb2:0x3e7,_0x189bed:0x3c6,_0x55199e:0x368,_0xe72010:0x40b,_0xf60e6d:0x403,_0x5a44ca:0x41c},_0x97211={_0x486ddc:0xfa,_0x20b6d0:0x3f8},_0x47ef45={_0x502583:0x101};if(!hasExactKeys(_0x3760ac,SUBAGENT_REPORT_META_KEYS))return![];if(typeof _0x3760ac[_0x11cd76(0x4da,0x5af,_0x243529._0x4d4399,0x567)]!==_0x23b2b1(0x3db,_0x243529._0x97f13c,0x3d7,0x3e4)||_0x3760ac[_0x23b2b1(0x372,0x3ee,0x3a8,_0x243529._0x5ddd54)][_0x23b2b1(0x408,0x44a,_0x243529._0xef2470,_0x243529._0x2dc64a)]===0x0)return![];if(typeof _0x3760ac[_0x23b2b1(_0x243529._0xb36639,0x492,0x44b,_0x243529._0x169fcd)]!==_0x23b2b1(_0x243529._0x576eea,0x3dd,_0x243529._0x3eb941,_0x243529._0x40f557)||_0x3760ac[_0x11cd76(_0x243529._0x4a2225,_0x243529._0x309f3c,0x5f1,0x60b)][_0x23b2b1(0x4ac,_0x243529._0x163636,0x442,0x463)]===0x0)return![];function _0x23b2b1(_0x1de0fa,_0x18b7f4,_0x16098f,_0x46e555){return _0xf3454f(_0x18b7f4-0x1a9,_0x18b7f4-0x9f,_0x16098f,_0x46e555-_0x47ef45._0x502583);}if(typeof _0x3760ac[_0x11cd76(_0x243529._0x112755,0x5df,0x61e,0x5be)]!=='string'||_0x3760ac[_0x23b2b1(_0x243529._0x1a22c0,_0x243529._0x2810eb,0x462,0x46a)][_0x11cd76(0x538,_0x243529._0x48119a,_0x243529._0x56ff80,0x5c3)]===0x0)return![];if(_0x3760ac[_0x23b2b1(_0x243529._0x598215,_0x243529._0x40f6d9,_0x243529._0x52f631,0x4e6)]!==_0x11cd76(0x669,_0x243529._0x1f585a,_0x243529._0x3e7246,_0x243529._0x2c5a21)&&_0x3760ac[_0x23b2b1(0x436,0x46d,_0x243529._0x2d0ac4,0x417)]!==_0x11cd76(0x5d6,_0x243529._0x2b3945,0x675,_0x243529._0x314584)&&_0x3760ac['status']!==_0x23b2b1(0x45b,0x3dc,_0x243529._0x58f5d4,_0x243529._0x52b9ef))return![];if(!isModelUsageTotals(_0x3760ac[_0x23b2b1(0x34e,0x3c6,0x39a,_0x243529._0x372430)]))return![];function _0x11cd76(_0x5c032b,_0x2c8939,_0x376998,_0xe87710){return _0x3f402d(_0x5c032b-_0x97211._0x486ddc,_0xe87710-_0x97211._0x20b6d0,_0x376998-0x136,_0x2c8939);}if(!isModelUsageTotals(_0x3760ac[_0x11cd76(_0x243529._0x4bf737,_0x243529._0x42ad03,_0x243529._0x416ac2,_0x243529._0x5787a2)]))return![];return _0x3760ac[_0x11cd76(_0x243529._0x159351,0x5c2,_0x243529._0x46627b,_0x243529._0x4a2e38)][_0x23b2b1(_0x243529._0x466bb2,0x453,0x430,0x3fe)]&&_0x3760ac[_0x23b2b1(0x376,_0x243529._0x189bed,_0x243529._0x55199e,_0x243529._0xe72010)][_0x23b2b1(_0x243529._0x189bed,_0x243529._0xf60e6d,0x460,_0x243529._0x5a44ca)]===0x0;}function addModelUsageTotals(_0x34f453,_0x218d5a){const _0x461676={_0x56676b:0x184,_0x5e174d:0x144,_0x8f3f32:0x16a,_0x59e6ed:0xf9,_0x11e141:0x1f8,_0x22042d:0xa3,_0xbfeaa:0x6c,_0x26dcdd:0xb6,_0x2d6285:0x190,_0x4aabd9:0xea,_0x107ca6:0x12a,_0x57d03b:0x16e,_0x19983c:0xf8,_0x596799:0x45,_0x4f4ea:0x1d2,_0xc3f61:0x19f,_0x48f5c7:0x29,_0x59a472:0x2c,_0x39219b:0x58,_0x5a7a16:0xb2,_0x366a80:0x1bf,_0x45aee6:0x209,_0x2d4d1c:0x266,_0x3d26e9:0x28,_0x2de327:0x57,_0x1606bd:0x19,_0x24bb78:0x136,_0x4fbb1c:0x129,_0x31ed67:0x100,_0x5a7832:0xe6,_0xa0581:0xd8,_0x405cca:0xda,_0x18f35c:0xef,_0x478d23:0xba,_0x443dc7:0x84,_0x10721a:0x46,_0x5e0f2:0xbd,_0x69cacb:0x3f,_0x4adc2d:0x12c,_0x309fb6:0x1a4},_0x49199a={_0x679951:0x2c3,_0x37b60a:0x5a},_0x26a336={_0x32d135:0x149};function _0x3ce439(_0x1546ff,_0x3362ac,_0x428ef0,_0xe1c7b4){return _0xf3454f(_0x1546ff- -0x3e6,_0x3362ac-0x9a,_0xe1c7b4,_0xe1c7b4-_0x26a336._0x32d135);}function _0x16670b(_0x2421d1,_0x5d78cd,_0x8cf71d,_0x49bab5){return _0xf3454f(_0x5d78cd- -_0x49199a._0x679951,_0x5d78cd-0x2a,_0x2421d1,_0x49bab5-_0x49199a._0x37b60a);}return{'totalTokens':addModelUsageInteger(_0x34f453[_0x3ce439(-0x16a,-_0x461676._0x56676b,-0x141,-_0x461676._0x5e174d)],_0x218d5a[_0x3ce439(-_0x461676._0x8f3f32,-_0x461676._0x59e6ed,-0x1e6,-_0x461676._0x11e141)]),'totalInputTokens':addModelUsageInteger(_0x34f453['totalInputTokens'],_0x218d5a[_0x16670b(-0x123,-_0x461676._0x22042d,-_0x461676._0xbfeaa,-_0x461676._0x26dcdd)]),'totalOutputTokens':addModelUsageInteger(_0x34f453['totalOutputTokens'],_0x218d5a['totalOutputTokens']),'totalReasoningTokens':addModelUsageInteger(_0x34f453[_0x3ce439(-0x12a,-0x116,-_0x461676._0x2d6285,-_0x461676._0x4aabd9)],_0x218d5a[_0x3ce439(-_0x461676._0x107ca6,-_0x461676._0x57d03b,-_0x461676._0x19983c,-0x1aa)]),'requestCount':addModelUsageInteger(_0x34f453[_0x16670b(-0xc9,-0xaf,-0x8e,-_0x461676._0x596799)],_0x218d5a[_0x3ce439(-_0x461676._0x4f4ea,-_0x461676._0xc3f61,-0x1a9,-0x194)]),'modelCallCount':addModelUsageInteger(_0x34f453['modelCallCount'],_0x218d5a['modelCallCount']),'totalModelTimeMs':addModelUsageInteger(_0x34f453[_0x16670b(-0x3e,-_0x461676._0x48f5c7,-0x10,-_0x461676._0x59a472)],_0x218d5a[_0x16670b(-0xa2,-0x29,_0x461676._0x39219b,-_0x461676._0x5a7a16)]),'totalCostUsdTicks':addModelUsageInteger(_0x34f453[_0x3ce439(-0x1df,-_0x461676._0x366a80,-0x20b,-0x21e)],_0x218d5a[_0x3ce439(-0x1df,-_0x461676._0x45aee6,-0x19c,-_0x461676._0x2d4d1c)]),'totalReportedCostUsdTicks':addModelUsageInteger(_0x34f453['totalReportedCostUsdTicks'],_0x218d5a[_0x16670b(0x42,0xf,0x8a,0x99)]),'totalEstimatedCostUsdTicks':addModelUsageInteger(_0x34f453[_0x16670b(-_0x461676._0x3d26e9,_0x461676._0x2de327,_0x461676._0x1606bd,0x76)],_0x218d5a['totalEstimatedCostUsdTicks']),'reportedCostCallCount':addModelUsageInteger(_0x34f453[_0x3ce439(-_0x461676._0x24bb78,-0x178,-_0x461676._0x4fbb1c,-0x104)],_0x218d5a[_0x3ce439(-0x136,-_0x461676._0x31ed67,-_0x461676._0x5a7832,-0x18a)]),'estimatedCostCallCount':addModelUsageInteger(_0x34f453['estimatedCostCallCount'],_0x218d5a[_0x3ce439(-0x164,-_0x461676._0xa0581,-_0x461676._0x405cca,-_0x461676._0x18f35c)]),'unpricedModelCallCount':addModelUsageInteger(_0x34f453['unpricedModelCallCount'],_0x218d5a[_0x16670b(-_0x461676._0x478d23,-_0x461676._0x443dc7,-0x9,-_0x461676._0x10721a)]),'historicalMetricsComplete':_0x34f453['historicalMetricsComplete']&&_0x218d5a['historicalMetricsComplete'],'missingHistoricalModelCallCount':addModelUsageInteger(_0x34f453[_0x16670b(-_0x461676._0x5e0f2,-0x69,-0xc4,-_0x461676._0x69cacb)],_0x218d5a[_0x3ce439(-0x18c,-_0x461676._0x4adc2d,-_0x461676._0x309fb6,-0x17b)])};}function modelUsageTotalsEqual(_0x1d8d35,_0x1a6200){const _0x1759b4={_0x153af4:0x381,_0x5b397b:0x39d,_0x59f89b:0x3b9,_0x7faa58:0x3e7},_0x3faba1={_0x523911:0x1ae,_0xaebc01:0x222,_0x1e1b0f:0x2f};function _0x14fef7(_0x511b32,_0x1da4f2,_0x22e075,_0x378c35){return _0x3f402d(_0x511b32-_0x3faba1._0x523911,_0x1da4f2-_0x3faba1._0xaebc01,_0x22e075-_0x3faba1._0x1e1b0f,_0x378c35);}return MODEL_USAGE_TOTAL_KEYS[_0x14fef7(_0x1759b4._0x153af4,_0x1759b4._0x5b397b,_0x1759b4._0x59f89b,_0x1759b4._0x7faa58)](_0x390eb7=>_0x1d8d35[_0x390eb7]===_0x1a6200[_0x390eb7]);}function modelUsageTotalsFromSnapshot(_0x2abe79){const _0x3479e3={_0x32650f:0x8e,_0x123752:0x9d,_0x18985f:0xa1,_0x11ba43:0xba,_0x5090c2:0xac,_0x49fbea:0x124,_0x273c0d:0xf4,_0x586758:0xf8,_0xd2dcd0:0x23,_0x177d82:0x31,_0xa34aee:0x138,_0x2851a5:0x2a,_0x11ee45:0x88,_0x5a1f91:0xe6,_0x4d7e45:0x4a,_0x4cc8e8:0x7e,_0x14058c:0x78,_0x2b7e22:0x14c,_0x1379c9:0xbe,_0x28e7ac:0x12d,_0x51513c:0xff},_0x38424b={_0x1bf316:0x292},_0x2503c5={_0x2fa0b5:0x2bd,_0x24489b:0x6c};function _0x4d90ff(_0x440272,_0x1e3705,_0x1a74b7,_0x586896){return _0xf3454f(_0x1a74b7- -_0x2503c5._0x2fa0b5,_0x1e3705-_0x2503c5._0x24489b,_0x440272,_0x586896-0x173);}const _0x2a09e6={'totalTokens':_0x2abe79['totalTokens'],'totalInputTokens':_0x2abe79[_0x4d90ff(-_0x3479e3._0x32650f,-0x119,-_0x3479e3._0x123752,-0x46)],'totalOutputTokens':_0x2abe79[_0x4d90ff(-0xe1,-0x10e,-_0x3479e3._0x18985f,-_0x3479e3._0x11ba43)],'totalReasoningTokens':_0x2abe79[_0x1f1f8f(-0x86,-_0x3479e3._0x5090c2,-0xac,-_0x3479e3._0x49fbea)],'requestCount':_0x2abe79['requestCount'],'modelCallCount':_0x2abe79[_0x1f1f8f(-0x109,-0xe1,-_0x3479e3._0x273c0d,-_0x3479e3._0x586758)],'totalModelTimeMs':_0x2abe79[_0x4d90ff(0x58,-0xf,-_0x3479e3._0xd2dcd0,_0x3479e3._0x177d82)],'totalCostUsdTicks':_0x2abe79[_0x1f1f8f(-0x1cb,-0x161,-_0x3479e3._0xa34aee,-0x1d2)],'totalReportedCostUsdTicks':_0x2abe79[_0x1f1f8f(-0xe2,-0x96,-0x43,-0xc6)],'totalEstimatedCostUsdTicks':_0x2abe79[_0x4d90ff(_0x3479e3._0x2851a5,_0x3479e3._0x11ee45,0x5d,_0x3479e3._0x5a1f91)],'reportedCostCallCount':_0x2abe79['reportedCostCallCount'],'estimatedCostCallCount':_0x2abe79[_0x4d90ff(-0xc4,0x17,-0x3b,_0x3479e3._0x4d7e45)],'unpricedModelCallCount':_0x2abe79[_0x4d90ff(-0x1,-0x102,-_0x3479e3._0x4cc8e8,-_0x3479e3._0x14058c)],'historicalMetricsComplete':_0x2abe79[_0x1f1f8f(-_0x3479e3._0x2b7e22,-_0x3479e3._0x1379c9,-_0x3479e3._0x28e7ac,-0xc2)],'missingHistoricalModelCallCount':_0x2abe79[_0x1f1f8f(-0x13c,-0x10e,-0xd6,-_0x3479e3._0x51513c)]};for(const _0x1b08e8 of MODEL_USAGE_TOTAL_KEYS){if(_0x1b08e8==='historicalMetricsComplete')continue;requireModelUsageInteger(_0x2a09e6[_0x1b08e8]);}function _0x1f1f8f(_0xadfab,_0x733e0a,_0x131637,_0x58f86d){return _0x3f402d(_0xadfab-0x1de,_0x733e0a- -_0x38424b._0x1bf316,_0x131637-0xf9,_0x131637);}return _0x2a09e6;}function modelUsageTotalsFromCall(_0x5e86fc){const _0x38e62f={_0x1a2a62:0x105,_0x32b7f3:0x2e6,_0x1d288f:0x2da,_0x198ec9:0x2ef,_0x1543a3:0x449,_0x1fb5a2:0x409,_0xaa38:0x349,_0x50d30b:0x34b,_0x8c36dd:0x3ac,_0x3e5874:0x1db,_0xe0bd5d:0x1e6,_0x58cccf:0x1c8,_0x38d81a:0x185,_0x519d07:0x174,_0x154b1e:0x188,_0x4843d8:0x394,_0x2048db:0x2e3,_0x48886d:0x324,_0x24471b:0x339},_0x43b488={_0x8a5d8e:0x1ae},_0x4ab50c={_0x5b40f2:0x51,_0x5f421e:0x30c,_0x5a06d5:0x1c0},_0x334d19=_0x5e86fc[_0x176123(-_0x38e62f._0x1a2a62,-0xda,-0xa5,-0x125)],_0x43435b=requireModelUsageInteger(_0x334d19[_0x5424e6(_0x38e62f._0x32b7f3,0x29e,_0x38e62f._0x1d288f,_0x38e62f._0x198ec9)]),_0x1a8d5e=requireModelUsageInteger(_0x334d19[_0x5424e6(0x414,0x3f9,_0x38e62f._0x1543a3,_0x38e62f._0x1fb5a2)]),_0x354a66=requireModelUsageInteger(_0x334d19[_0x5424e6(_0x38e62f._0xaa38,_0x38e62f._0x50d30b,_0x38e62f._0x8c36dd,0x37a)]??0x0),_0x5083e5=requireModelUsageInteger(_0x5e86fc[_0x176123(-0x1aa,-0x124,-_0x38e62f._0x3e5874,-0x22d)]),_0x3e7d59=addModelUsageInteger(_0x43435b,_0x1a8d5e);function _0x176123(_0x25d66d,_0x3cdb30,_0x2a5cdf,_0xcc4ecd){return _0x3f402d(_0x25d66d-_0x4ab50c._0x5b40f2,_0x25d66d- -_0x4ab50c._0x5f421e,_0x2a5cdf-_0x4ab50c._0x5a06d5,_0xcc4ecd);}const _0xa6953d=_0x334d19[_0x176123(-0x186,-_0x38e62f._0xe0bd5d,-_0x38e62f._0x58cccf,-_0x38e62f._0x38d81a)]?.[_0x176123(-_0x38e62f._0x519d07,-0x123,-_0x38e62f._0x154b1e,-0x17f)],_0x315e5f=_0x334d19[_0x5424e6(0x354,_0x38e62f._0x4843d8,0x3f8,0x3d1)]?.['amountUsdTicks'],_0x4c73cf=_0xa6953d===void 0x0?void 0x0:requireModelUsageInteger(_0xa6953d),_0x5aefb7=_0x315e5f===void 0x0?void 0x0:requireModelUsageInteger(_0x315e5f),_0x8749f6=_0x4c73cf??_0x5aefb7,_0x45a234={...emptyModelUsageTotals(),'totalTokens':_0x3e7d59,'totalInputTokens':_0x43435b,'totalOutputTokens':_0x1a8d5e,'totalReasoningTokens':_0x354a66,'requestCount':_0x5e86fc[_0x5424e6(_0x38e62f._0x2048db,_0x38e62f._0x48886d,0x39b,_0x38e62f._0x24471b)]?0x1:0x0,'modelCallCount':0x1,'totalModelTimeMs':_0x5083e5,'totalCostUsdTicks':_0x8749f6??0x0,'totalReportedCostUsdTicks':_0x4c73cf??0x0,'totalEstimatedCostUsdTicks':_0x5aefb7??0x0,'reportedCostCallCount':_0x4c73cf===void 0x0?0x0:0x1,'estimatedCostCallCount':_0x5aefb7===void 0x0?0x0:0x1,'unpricedModelCallCount':_0x4c73cf===void 0x0&&_0x5aefb7===void 0x0?0x1:0x0};function _0x5424e6(_0x305138,_0x1edf11,_0x206b73,_0x1e0cc9){return _0xf3454f(_0x1e0cc9-0xee,_0x1edf11-0xb2,_0x1edf11,_0x1e0cc9-_0x43b488._0x8a5d8e);}if(!isModelUsageTotals(_0x45a234))throw new ModelUsageOverflowError(_0x5424e6(0x354,0x2fe,0x2d5,0x349));return _0x45a234;}function modelUsageTotalsFromHistory(_0x11585c,_0x48f990){const _0x3ca6d9={_0x2feab2:0x440,_0x2b608a:0x458,_0x212964:0x476,_0x6cba42:0x426,_0x38f00e:0x490,_0xd49392:0x4fd,_0x684113:0x489},_0x4a4d3e={_0x98cc45:0x108,_0x41e805:0x24};let _0x11bfef=emptyModelUsageTotals();function _0x10757c(_0x5ae3d6,_0x5bb0a8,_0xb70706,_0x4751a6){return _0x3f402d(_0x5ae3d6-_0x4a4d3e._0x98cc45,_0x5ae3d6- -0x33b,_0xb70706-_0x4a4d3e._0x41e805,_0x5bb0a8);}for(const _0x22477f of _0x11585c){_0x11bfef=addModelUsageTotals(_0x11bfef,modelUsageTotalsFromCall({'usage':_0x22477f[_0x10757c(-0x134,-0xe1,-0x1b0,-0xe0)],'modelTimeMs':_0x22477f[_0x2184c8(_0x3ca6d9._0x2feab2,_0x3ca6d9._0x2b608a,0x44b,_0x3ca6d9._0x212964)],'completesRequest':_0x22477f[_0x2184c8(_0x3ca6d9._0x6cba42,_0x3ca6d9._0x38f00e,_0x3ca6d9._0xd49392,_0x3ca6d9._0x684113)]}));}const _0x563f26=requireModelUsageInteger(_0x48f990);function _0x2184c8(_0x50d500,_0x25b092,_0x31b7a5,_0x5c75ed){return _0x3f402d(_0x50d500-0xe1,_0x5c75ed-0x314,_0x31b7a5-0x17f,_0x25b092);}return{..._0x11bfef,'historicalMetricsComplete':_0x563f26===0x0,'missingHistoricalModelCallCount':_0x563f26};}function createEmptySnapshot(){return{...emptyModelUsageTotals(),'toolCallCount':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function applyModelCall(_0x285a52,_0x1782aa){const _0x504002={_0x526093:0x569,_0x26a57b:0x589,_0x4b8646:0x5c0,_0x17844c:0x557,_0xe1aada:0x55d,_0x534dde:0x4bb,_0x44d2c8:0x4e8,_0x396317:0x56f,_0x5b93e5:0x501,_0x66acd7:0x4f4,_0x12762e:0x4d2,_0xe1c752:0x48c,_0x353c9f:0x4bc,_0x5edd5f:0x4c7,_0x5d41a5:0x498,_0x5e502b:0x5bf,_0x46a0e4:0x521,_0x4d80dc:0x476,_0x366633:0x498},_0x4ba843={_0x50fc35:0x1e4},_0x4555e8={_0x504b54:0xc0,_0x174b63:0x1e5};function _0xfdefb6(_0x14b520,_0x45ab29,_0x38abe0,_0x1ba9de){return _0x3f402d(_0x14b520-_0x4555e8._0x504b54,_0x1ba9de-0x350,_0x38abe0-_0x4555e8._0x174b63,_0x38abe0);}const _0x12b729=modelUsageTotalsFromCall(_0x1782aa),_0x3c9bd3=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x285a52),_0x12b729),_0xe8aeb1=_0x1782aa[_0xfdefb6(_0x504002._0x526093,_0x504002._0x26a57b,_0x504002._0x4b8646,_0x504002._0x17844c)]['reportedCost']?.['amountUsdTicks'],_0x1034d4=_0x1782aa['usage'][_0xfdefb6(0x52f,0x5c5,0x5af,_0x504002._0xe1aada)]?.[_0xfdefb6(0x45b,_0x504002._0x534dde,0x471,_0x504002._0x44d2c8)],{currentReportedCostUsdTicks:_0x51f44a,currentEstimatedCostUsdTicks:_0x486881,..._0x4c915f}=_0x285a52;function _0x5a2894(_0x3608ab,_0x1bae8c,_0x5c965b,_0x43767a){return _0xf3454f(_0x1bae8c-0x334,_0x1bae8c-_0x4ba843._0x50fc35,_0x5c965b,_0x43767a-0x54);}return{..._0x4c915f,..._0x3c9bd3,'currentTokens':_0x12b729[_0xfdefb6(_0x504002._0x396317,_0x504002._0x5b93e5,_0x504002._0x66acd7,0x4f6)],'currentInputTokens':_0x12b729[_0x5a2894(0x591,0x554,0x4ec,_0x504002._0x12762e)],'currentOutputTokens':_0x12b729['totalOutputTokens'],'currentReasoningTokens':_0x12b729['totalReasoningTokens'],'currentModelTimeMs':_0x12b729['totalModelTimeMs'],..._0x4c915f[_0xfdefb6(_0x504002._0xe1c752,_0x504002._0x353c9f,_0x504002._0x5edd5f,_0x504002._0x5d41a5)]&&_0x12b729[_0x5a2894(_0x504002._0x5e502b,0x5b0,0x581,0x62a)]>0x0?{'contextWindowUsage':_0x12b729['totalTokens']/_0x4c915f[_0xfdefb6(_0x504002._0x46a0e4,_0x504002._0xe1c752,_0x504002._0x4d80dc,_0x504002._0x366633)]}:{},..._0xe8aeb1!==void 0x0?{'currentReportedCostUsdTicks':_0xe8aeb1}:{},..._0x1034d4!==void 0x0?{'currentEstimatedCostUsdTicks':_0x1034d4}:{}};}function mergeExternalUsage(_0x5658e0,_0x563373){const _0x14e17f={_0xa49a88:0xc6,_0x13483a:0x59,_0x87382d:0xe6,_0x240ae5:0x91},_0x2c4d00={_0x42f844:0x369,_0x32ed92:0x1d3,_0x1ab984:0xb7};if(!isModelUsageTotals(_0x563373))throw new TypeError(_0x456660(-_0x14e17f._0xa49a88,-_0x14e17f._0x13483a,-_0x14e17f._0x87382d,-_0x14e17f._0x240ae5));const _0x206158=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x5658e0),_0x563373);function _0x456660(_0x4abf50,_0x41ec49,_0x118a9f,_0x35d052){return _0xf3454f(_0x41ec49- -_0x2c4d00._0x42f844,_0x41ec49-_0x2c4d00._0x32ed92,_0x118a9f,_0x35d052-_0x2c4d00._0x1ab984);}return{..._0x5658e0,..._0x206158};}function createAgentMetrics(_0x15eeff={}){const _0xd5f02b={_0x17bfed:0x48d,_0x1d9f38:0x436,_0xd37eb2:0x43f,_0x11a6d8:0x483},_0x50c30e={_0x7b5115:0x4ed,_0x3ac4ab:0x5ca,_0x499711:0x5e2,_0x105e0b:0x351,_0xfbbdaa:0x340,_0xf790aa:0x53b,_0x2d74a0:0x5aa,_0x444bb6:0x5c3,_0x1eb80f:0x61d},_0x20c6e2={_0x4d2a72:0x1cb},_0x4c4ef9={_0x414041:0x3a2},_0x3b934b={_0x427a46:0x170,_0x87654:0x122,_0x427b84:0x126,_0x3eadc3:0x48e,_0x371d3b:0x512,_0x47038d:0x66,_0x27a20d:0xd7,_0x1fc114:0x72,_0x44b588:0xd2,_0x2aeed1:0xbd,_0x580cd4:0x566,_0x3556e5:0x644,_0x501c7a:0x5c0,_0x462ddd:0x560,_0x1bcd66:0x4aa,_0x2edb0a:0x4c5,_0xa00e8a:0x506,_0x428a87:0xd5,_0x38a6ce:0x95,_0x23ec0c:0x588,_0x2a72e7:0x5a2,_0x5b7f68:0x5e1,_0x5a9873:0x5c1},_0x363680={_0x4f347e:0x163};let _0x8fc32a=createEmptySnapshot();const _0x19baba=new Set();let _0x49e98a;const _0x32bd86=()=>{const _0x72158d={..._0x8fc32a};for(const _0x5454e9 of _0x19baba)_0x5454e9(_0x72158d);};return{'getSnapshot'(){return{..._0x8fc32a};},'recordEvent'(_0x54e9f1){const _0x3a9ee2={_0x3a62c1:0x380};if(_0x54e9f1[_0x269d31(_0x3b934b._0x427a46,_0x3b934b._0x87654,0xf4,_0x3b934b._0x427b84)]==='model_request'){_0x49e98a=Date['now']();const _0x3add5b=_0x15eeff[_0x3c3e48(0x515,_0x3b934b._0x3eadc3,_0x3b934b._0x371d3b,0x53b)]?.(_0x54e9f1[_0x269d31(_0x3b934b._0x47038d,0x138,_0x3b934b._0x27a20d,_0x3b934b._0x1fc114)]);_0x3add5b!==void 0x0&&(_0x8fc32a={..._0x8fc32a,'contextWindowLimit':_0x3add5b},_0x32bd86());return;}if(_0x54e9f1[_0x269d31(_0x3b934b._0x44b588,0x14b,0xf4,_0x3b934b._0x2aeed1)]===_0x3c3e48(0x4f0,0x52a,0x4f9,_0x3b934b._0x580cd4)){const _0x2ce359=_0x49e98a===void 0x0?0x0:Date[_0x3c3e48(_0x3b934b._0x3556e5,0x538,_0x3b934b._0x501c7a,0x5cc)]()-_0x49e98a;_0x49e98a=void 0x0,_0x8fc32a=applyModelCall(_0x8fc32a,{'usage':_0x54e9f1[_0x3c3e48(_0x3b934b._0x462ddd,0x523,0x56d,0x4ec)][_0x3c3e48(0x55d,0x624,0x5ab,0x573)],'modelTimeMs':_0x54e9f1[_0x3c3e48(_0x3b934b._0x1bcd66,_0x3b934b._0x2edb0a,_0x3b934b._0xa00e8a,0x52f)]??_0x2ce359}),_0x32bd86();return;}if(_0x54e9f1[_0x269d31(0x175,0xc1,0xf4,0x136)]===_0x269d31(_0x3b934b._0x428a87,_0x3b934b._0x38a6ce,0x4e,0x30)){_0x8fc32a={..._0x8fc32a,'toolCallCount':_0x8fc32a['toolCallCount']+0x1},_0x32bd86();return;}function _0x3c3e48(_0x3f0249,_0x23c2a7,_0x2a86b6,_0x48e528){return _0x3519(_0x2a86b6-_0x3a9ee2._0x3a62c1,_0x48e528);}function _0x269d31(_0x3f1fe4,_0x17062f,_0x45ec35,_0x2e8cbf){return _0x3519(_0x45ec35- -_0x363680._0x4f347e,_0x2e8cbf);}_0x54e9f1[_0x3c3e48(_0x3b934b._0x23ec0c,_0x3b934b._0x2a72e7,0x5d7,0x5ea)]===_0x3c3e48(_0x3b934b._0x5b7f68,0x5de,_0x3b934b._0x5a9873,0x5f2)&&(_0x8fc32a={..._0x8fc32a,'requestCount':addModelUsageInteger(_0x8fc32a['requestCount'],0x1)},_0x32bd86());},'recordExternalUsage'(_0x1af3f7){const _0x3eaefa=mergeExternalUsage(_0x8fc32a,_0x1af3f7);_0x8fc32a=_0x3eaefa,_0x32bd86();},'reset'(){_0x8fc32a=createEmptySnapshot(),_0x49e98a=void 0x0,_0x32bd86();},'restore'(_0xebe56b){let _0x52896c=createEmptySnapshot();function _0x2e9c81(_0x1dd8fa,_0x208e7f,_0x36cb55,_0x4a7b8d){return _0x3519(_0x1dd8fa-_0x4c4ef9._0x414041,_0x4a7b8d);}for(const _0x52f567 of _0xebe56b[_0x2e9c81(0x573,_0x50c30e._0x7b5115,_0x50c30e._0x3ac4ab,_0x50c30e._0x499711)]){_0x52896c=applyModelCall(_0x52896c,{'usage':_0x52f567['usage'],'modelTimeMs':_0x52f567[_0x5b0ec0(0x2e1,_0x50c30e._0x105e0b,0x39e,_0x50c30e._0xfbbdaa)],'completesRequest':_0x52f567[_0x2e9c81(_0x50c30e._0xf790aa,_0x50c30e._0x2d74a0,0x4e8,0x4d9)]});}const _0xdbb13a=requireModelUsageInteger(_0xebe56b['missingModelCallCount']);_0x52896c={..._0x52896c,'toolCallCount':_0xebe56b['toolCallCount'],'historicalMetricsComplete':_0xdbb13a===0x0,'missingHistoricalModelCallCount':_0xdbb13a};let _0x17d64d=_0x52896c;if(_0xebe56b[_0x2e9c81(_0x50c30e._0x444bb6,0x5e3,0x631,0x564)]!==void 0x0)try{_0x17d64d=mergeExternalUsage(_0x52896c,_0xebe56b[_0x2e9c81(_0x50c30e._0x444bb6,0x5e0,_0x50c30e._0x1eb80f,0x631)]);}catch(_0x58022f){if(!(_0x58022f instanceof ModelUsageOverflowError))throw _0x58022f;}_0x8fc32a=_0x17d64d,_0x49e98a=void 0x0;function _0x5b0ec0(_0x33853c,_0x5a19fb,_0x12b7d6,_0x165765){return _0x3519(_0x5a19fb-_0x20c6e2._0x4d2a72,_0x165765);}_0x32bd86();},'subscribe'(_0x504ccd){const _0x2909ff={_0x543728:0x5b2,_0x333dbe:0x545},_0x12bed5={_0x29e90b:0x24e};_0x19baba[_0x44c8de(_0xd5f02b._0x17bfed,_0xd5f02b._0x1d9f38,_0xd5f02b._0xd37eb2,_0xd5f02b._0x11a6d8)](_0x504ccd);function _0x44c8de(_0x368bce,_0x3b2e5c,_0x355253,_0x5a6963){return _0x3519(_0x355253-_0x12bed5._0x29e90b,_0x3b2e5c);}return()=>{const _0x5dcee9={_0x3f2c77:0x11d};function _0xd02d24(_0x3d0c9c,_0x250517,_0x23cad1,_0x5075c1){return _0x44c8de(_0x3d0c9c-0x136,_0x5075c1,_0x3d0c9c-_0x5dcee9._0x3f2c77,_0x5075c1-0x170);}_0x19baba[_0xd02d24(_0x2909ff._0x543728,0x53e,_0x2909ff._0x333dbe,0x616)](_0x504ccd);};}};}function normalizeExecutionScope(_0x3fb0eb){const _0x4ff570={_0x244706:0x3ef,_0x7b44b1:0x41d,_0x212455:0x39a,_0x81f059:0x2ad,_0x26381d:0x323},_0x582c56={_0x4c2888:0x188,_0x43b476:0x104},_0x57388c={_0x290138:0x1aa};function _0x5865e4(_0x1b0623,_0x2e6751,_0x2c5285,_0x2a8ba3){return _0xf3454f(_0x2e6751-_0x57388c._0x290138,_0x2e6751-0xee,_0x1b0623,_0x2a8ba3-0x125);}function _0x2fb77e(_0x20419a,_0xe33636,_0x34573e,_0x157070){return _0x3f402d(_0x20419a-_0x582c56._0x4c2888,_0x34573e-0xeb,_0x34573e-_0x582c56._0x43b476,_0xe33636);}return{'agentId':_0x3fb0eb?.[_0x5865e4(0x468,_0x4ff570._0x244706,0x458,0x43c)]??_0x5865e4(0x3af,_0x4ff570._0x7b44b1,0x443,_0x4ff570._0x212455),'toolCallPath':[..._0x3fb0eb?.[_0x2fb77e(0x279,_0x4ff570._0x81f059,0x2ed,_0x4ff570._0x26381d)]??[]]};}function makeExtensionContext(_0x48d27c,_0x416baa){const _0x3721d7={_0x1ace2a:0x1f7},_0x1cfdbe={_0x5cfe4b:0x155,_0x2e35f0:0x3a6};function _0x3e5128(_0x1ce517,_0x1d34cb,_0x52d1c3,_0xd4ba0c){return _0x3f402d(_0x1ce517-_0x1cfdbe._0x5cfe4b,_0x52d1c3- -_0x1cfdbe._0x2e35f0,_0x52d1c3-0x60,_0x1d34cb);}return{'state':_0x48d27c,'delivery':_0x3e5128(-0x1b7,-0x1c3,-_0x3721d7._0x1ace2a,-0x199),'executionScope':_0x416baa};}async function runStage(_0xa48b5e,_0x3d1742,_0x1b0993,_0x4dc5e7){const _0x54c86d={_0x798696:0x41c,_0x5abf6c:0x419,_0x315288:0x427},_0x140df5={_0x1826fb:0x14c,_0x5acefd:0x1b6},_0xf7e5bb=await _0xa48b5e[_0x5df33e(0x433,_0x54c86d._0x798696,0x48e,0x3e4)](_0x3d1742,_0x1b0993,_0x4dc5e7);function _0x543edf(_0x5bd111,_0x2e9595,_0x180696,_0x36e9ee){return _0xf3454f(_0x180696-0x1b1,_0x2e9595-0xe7,_0x2e9595,_0x36e9ee-0x22);}function _0x5df33e(_0x4cd1be,_0x58db88,_0x290f6a,_0x170d24){return _0xf3454f(_0x4cd1be-_0x140df5._0x1826fb,_0x58db88-0x1d5,_0x290f6a,_0x170d24-_0x140df5._0x5acefd);}return await _0xa48b5e[_0x543edf(0x424,0x3de,_0x54c86d._0x5abf6c,_0x54c86d._0x315288)](_0x3d1742,_0xf7e5bb,_0x4dc5e7),_0xf7e5bb;}async function emitEvent2(_0x376cb0,_0xb79cea,_0x5713a7){await _0x376cb0?.(_0xb79cea,_0x5713a7);}function replaceToolUseBlocks(_0x4f437f,_0x59776d){const _0x439ebe={_0x4906ed:0x3c,_0x4c87c4:0x19,_0x568d64:0x25,_0x49d2f1:0x49},_0x4f1282={_0x2ef12c:0x229,_0x107c4c:0x30e,_0x482739:0x23b},_0x5c27ee={_0x370efb:0xbb,_0x170fe5:0x286,_0x46255f:0xd7},_0x5a707a={_0x420866:0x12a},_0x52f424={_0x194bdf:0x1f2,_0x19a610:0x19c};let _0x4e0d0f=0x0;function _0x220f63(_0x582940,_0x465ca6,_0x340e69,_0x1ef9c7){return _0x3f402d(_0x582940-_0x52f424._0x194bdf,_0x465ca6- -_0x52f424._0x19a610,_0x340e69-0xcd,_0x1ef9c7);}return{..._0x4f437f,'content':_0x4f437f[_0x220f63(_0x439ebe._0x4906ed,_0x439ebe._0x4c87c4,_0x439ebe._0x568d64,_0x439ebe._0x49d2f1)]['map'](_0x2919e9=>{if(_0x2919e9[_0x32f0b0(0x280,_0x4f1282._0x2ef12c,_0x4f1282._0x107c4c,_0x4f1282._0x482739)]!==_0x184cf4(0x33d,0x30d,0x281,0x2fc))return _0x2919e9;const _0x3f0eab=_0x59776d[_0x4e0d0f];_0x4e0d0f+=0x1;function _0x32f0b0(_0xfc11c5,_0x1470c5,_0x262ce9,_0x5261bb){return _0x220f63(_0xfc11c5-0x22,_0xfc11c5-0x1e9,_0x262ce9-_0x5a707a._0x420866,_0x1470c5);}function _0x184cf4(_0x3d6a6e,_0x237e90,_0x4a2a6b,_0x320235){return _0x220f63(_0x3d6a6e-_0x5c27ee._0x370efb,_0x320235-_0x5c27ee._0x170fe5,_0x4a2a6b-_0x5c27ee._0x46255f,_0x237e90);}return structuredClone(_0x3f0eab);})};}function createAssistantMessageId(_0x4155a3,_0x486dfa){return _0x4155a3+':assistant:'+_0x486dfa;}function createReasoningMessageId(_0x1f7a3b){const _0x158a31={_0x2c5456:0xc0,_0x1d2ca9:0x94,_0x4ee095:0xec},_0x3c208e={_0x560713:0x1ff};function _0xf36914(_0x343bfe,_0x26a973,_0x514686,_0x288822){return _0x3f402d(_0x343bfe-0xa8,_0x514686- -_0x3c208e._0x560713,_0x514686-0x1b,_0x288822);}return _0x1f7a3b+_0xf36914(-0x15,-_0x158a31._0x2c5456,-_0x158a31._0x1d2ca9,-_0x158a31._0x4ee095);}function withMessageId(_0x2be50c,_0x5b0d08){if(_0x2be50c['id']===_0x5b0d08)return _0x2be50c;return{..._0x2be50c,'id':_0x5b0d08};}function createAssistantChunkEvent(_0x57f95b,_0x48442f){const _0xae5410={_0x4636be:0x42,_0x1bca06:0x11,_0xe98a0b:0x21b,_0x3b08c8:0x1c5,_0x26d0bc:0x1d2,_0x53c7f7:0x154,_0x282224:0x202,_0x2ac4af:0x200,_0xeed6da:0x12e,_0x3047cc:0xbd,_0x25a00a:0xe8,_0x2f795b:0xb1,_0x3ff4fc:0xc6,_0x4c3e87:0x132,_0x6fedd5:0x7e,_0x57eedd:0x148,_0x538127:0x101,_0x181bd5:0x65},_0x149577={_0x96737a:0x10e},_0x30edb8={_0x55d819:0xd1};function _0x1cf832(_0x5957d4,_0xee3e1b,_0x354c2e,_0x1c012e){return _0xf3454f(_0xee3e1b- -0x2f8,_0xee3e1b-0xc,_0x1c012e,_0x1c012e-_0x30edb8._0x55d819);}function _0x96ae87(_0x2dd5e0,_0x1c6f9c,_0x3d54f1,_0x5cd8b6){return _0x3f402d(_0x2dd5e0-_0x149577._0x96737a,_0x3d54f1-0x5b,_0x3d54f1-0xc7,_0x5cd8b6);}if(_0x57f95b[_0x1cf832(_0xae5410._0x4636be,_0xae5410._0x1bca06,0x2b,-0x1d)]!==_0x96ae87(_0xae5410._0xe98a0b,_0xae5410._0x3b08c8,0x23b,_0xae5410._0x26d0bc))return void 0x0;if(_0x57f95b[_0x96ae87(_0xae5410._0x53c7f7,_0xae5410._0x282224,0x1ab,_0xae5410._0x2ac4af)]===void 0x0)return void 0x0;return{'type':_0x1cf832(-_0xae5410._0xeed6da,-_0xae5410._0x3047cc,-_0xae5410._0x25a00a,-0x104),'index':_0x57f95b[_0x1cf832(-_0xae5410._0x2f795b,-_0xae5410._0x3ff4fc,-0x65,-_0xae5410._0x4c3e87)]??0x0,'messageId':_0x48442f,'chunk':{'type':_0x1cf832(-0x5c,-_0xae5410._0x4636be,-0xc,-_0xae5410._0x6fedd5),'index':_0x57f95b[_0x1cf832(-_0xae5410._0x57eedd,-0xc6,-_0xae5410._0x538127,-0x84)]??0x0,'text':_0x57f95b[_0x1cf832(-0xc9,-0xd2,-0x9d,-_0xae5410._0x181bd5)]}};}function createToolUseChunkEvent(_0x207c62,_0x3bd85b){const _0x43d379={_0x5372a8:0xa2,_0x1083b2:0xb3,_0x3a821f:0xc,_0x560df4:0x3e,_0x118389:0xa6,_0x462586:0x6a,_0x4a8f4b:0x49,_0xeb4f14:0x31,_0x438d6b:0x5c,_0xd66d43:0xb,_0x35b3be:0x40},_0x3b6dc9={_0x5c94b8:0x1eb};function _0x280368(_0x229321,_0x35d3f3,_0xe85dc3,_0x20e2b9){return _0xf3454f(_0x20e2b9- -0x26d,_0x35d3f3-0x166,_0x35d3f3,_0x20e2b9-0x1bb);}function _0x3b704b(_0x306916,_0x5887f1,_0x457122,_0x50e74f){return _0x3f402d(_0x306916-0x199,_0x50e74f- -_0x3b6dc9._0x5c94b8,_0x457122-0x53,_0x306916);}if(_0x207c62[_0x280368(_0x43d379._0x5372a8,0x105,0xba,0x9c)]!==_0x3b704b(_0x43d379._0x1083b2,_0x43d379._0x3a821f,0x8b,0x4c))return void 0x0;return{'type':_0x3b704b(_0x43d379._0x560df4,0x5f,_0x43d379._0x118389,0x3a),'index':_0x207c62[_0x280368(-_0x43d379._0x462586,_0x43d379._0x4a8f4b,0x20,-0x3b)]??0x0,'messageId':_0x3bd85b,'chunk':{'type':'tool_use_delta','id':_0x207c62['id']??'','index':_0x207c62['index']??0x0,..._0x207c62['name']!==void 0x0?{'name':_0x207c62[_0x3b704b(-0xb6,0x10,_0x43d379._0xeb4f14,-_0x43d379._0x438d6b)]}:{},..._0x207c62[_0x3b704b(_0x43d379._0xd66d43,-0x80,-0xca,-_0x43d379._0x35b3be)]!==void 0x0?{'inputDelta':_0x207c62['inputDelta']}:{}}};}function createReasoningChunkEvent(_0x1e968a,_0x4af53c){const _0x1bfab4={_0x4041a8:0x30,_0x18aece:0x198,_0xba08da:0x25,_0x5ca043:0x20b,_0x406f51:0x1af,_0x1d3109:0x1c7,_0x29d088:0x54,_0xc4dd62:0x7c,_0x9b2de8:0x12,_0x1737a6:0xa7,_0xd88cfc:0xd2,_0x205f87:0x185,_0x772fbf:0x27,_0xa91e2e:0x5,_0x3bbfd2:0x22f,_0x596219:0x243,_0x44aade:0x21a,_0x1026d9:0x61,_0x57baf3:0x1cb,_0x585d12:0x20c,_0x2757c5:0x210,_0x59ccb3:0x67,_0x2ffa6f:0xe0,_0x4a051d:0xcd,_0x3c295b:0x131,_0x28a7a3:0x1e9,_0x239bf1:0x203,_0x153b85:0x1db,_0x4129e7:0x1d2,_0x157141:0x12a,_0x24a686:0xaa,_0x54b3e3:0x25,_0x432715:0x214,_0x154a51:0x164,_0x555186:0x1d3,_0x3d16dc:0x1e4,_0x153522:0x15d,_0x8d8299:0x85,_0x5a8572:0xd3,_0x33ec1c:0x50,_0x9b176a:0x31,_0x547b6b:0x5d,_0x425c01:0xb2},_0x23abfe={_0x2c59e5:0x14d},_0x41b58a={_0x3009f5:0x130};function _0x20e1af(_0x26c96b,_0x457355,_0x4b8ebd,_0x30351c){return _0xf3454f(_0x457355- -0x2d9,_0x457355-_0x41b58a._0x3009f5,_0x4b8ebd,_0x30351c-0x15f);}function _0x329645(_0x524911,_0x9dba0c,_0x533869,_0x513f34){return _0xf3454f(_0x524911- -0x43d,_0x9dba0c-_0x23abfe._0x2c59e5,_0x9dba0c,_0x513f34-0x9d);}switch(_0x1e968a[_0x20e1af(0x28,_0x1bfab4._0x4041a8,0x9,-0x17)]){case _0x329645(-0x1e0,-0x1c7,-0x22f,-_0x1bfab4._0x18aece):return{'type':_0x20e1af(0x0,0x0,-0x69,-_0x1bfab4._0xba08da),'index':_0x1e968a[_0x329645(-_0x1bfab4._0x5ca043,-_0x1bfab4._0x406f51,-0x208,-_0x1bfab4._0x1d3109)],'messageId':_0x4af53c,'chunk':{'type':_0x20e1af(-_0x1bfab4._0x29d088,-_0x1bfab4._0xc4dd62,-_0x1bfab4._0x9b2de8,-0x6),'index':_0x1e968a[_0x20e1af(-0x3f,-_0x1bfab4._0x1737a6,-0x12f,-_0x1bfab4._0xd88cfc)]??0x0,'thinking':_0x1e968a[_0x329645(-0x1a8,-_0x1bfab4._0x205f87,-0x21e,-0x22d)]??''},'text':_0x1e968a[_0x20e1af(-_0x1bfab4._0xba08da,-0x44,_0x1bfab4._0x772fbf,_0x1bfab4._0xa91e2e)]??''};case _0x329645(-0x210,-_0x1bfab4._0x3bbfd2,-_0x1bfab4._0x596219,-_0x1bfab4._0x44aade):return{'type':_0x20e1af(-0x18,0x0,-_0x1bfab4._0x1026d9,0x83),'index':_0x1e968a[_0x329645(-_0x1bfab4._0x57baf3,-0x201,-0x1bc,-_0x1bfab4._0x585d12)],'messageId':_0x4af53c,'chunk':{'type':_0x329645(-_0x1bfab4._0x2757c5,-0x214,-0x1aa,-0x237),'contentIndex':_0x1e968a[_0x20e1af(-0xa9,-_0x1bfab4._0x59ccb3,-0xf2,-0xe1)]??0x0,'delta':_0x1e968a[_0x20e1af(-_0x1bfab4._0x2ffa6f,-0xaa,-_0x1bfab4._0x4a051d,-_0x1bfab4._0x3c295b)]??'','itemId':_0x1e968a[_0x329645(-_0x1bfab4._0x28a7a3,-_0x1bfab4._0x239bf1,-_0x1bfab4._0x153b85,-_0x1bfab4._0x4129e7)]??'','outputIndex':_0x1e968a[_0x329645(-0x192,-_0x1bfab4._0x157141,-0x1e4,-0x133)]??0x0},'text':_0x1e968a[_0x20e1af(-0xc2,-_0x1bfab4._0x24a686,-0xfd,-_0x1bfab4._0x54b3e3)]??''};case _0x329645(-0x1e4,-0x1b1,-_0x1bfab4._0x432715,-0x23a):return{'type':_0x329645(-_0x1bfab4._0x154a51,-0x1e9,-_0x1bfab4._0x555186,-0x156),'index':_0x1e968a['summaryIndex'],'messageId':_0x4af53c,'chunk':{'type':_0x329645(-_0x1bfab4._0x3d16dc,-0x1c4,-_0x1bfab4._0x153522,-0x21c),'delta':_0x1e968a['delta']??'','itemId':_0x1e968a[_0x20e1af(-0xf0,-_0x1bfab4._0x8d8299,-_0x1bfab4._0x5a8572,-0x60)]??'','outputIndex':_0x1e968a['outputIndex']??0x0,'summaryIndex':_0x1e968a[_0x20e1af(-_0x1bfab4._0x772fbf,0x15,-_0x1bfab4._0x33ec1c,-_0x1bfab4._0x9b176a)]??0x0},'text':_0x1e968a[_0x20e1af(-_0x1bfab4._0x547b6b,-0xaa,-0x98,-_0x1bfab4._0x425c01)]??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x12431a){return structuredClone(_0x12431a);}function cloneToolResultForPublication2(_0x51f3d6){const _0x72102b={_0x1ecbbd:0x192,_0x545f56:0x18b,_0x38f01a:0x89},_0x358a59={_0x223fea:0x51},_0x3dffde={_0x31d81d:0x4f},_0x128431=_0x51f3d6['callId'],_0x3a31e6=_0x51f3d6[_0x43b0d5(_0x72102b._0x1ecbbd,0x11a,_0x72102b._0x545f56,0x1c5)];function _0x1fff83(_0x4a9e3c,_0x662afd,_0x463d8e,_0x13d8bf){return _0xf3454f(_0x662afd- -0x277,_0x662afd-0x1e7,_0x463d8e,_0x13d8bf-_0x3dffde._0x31d81d);}const {chunks:_0x4e1adc,..._0x32f8ce}=_0x51f3d6;function _0x43b0d5(_0x497b22,_0x39e64b,_0x840a46,_0x4edf8c){return _0x3f402d(_0x497b22-0x13c,_0x497b22- -_0x358a59._0x223fea,_0x840a46-0x177,_0x39e64b);}return{...structuredClone(_0x32f8ce),'callId':_0x128431,'toolName':_0x3a31e6,'chunks':_0x4e1adc[_0x43b0d5(0x10a,0xa9,0x138,_0x72102b._0x38f01a)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x512f28){const _0x332c56={_0x22dc9:0x5b7,_0x236a52:0x52b,_0x35e05d:0x522,_0x4f1c77:0x27b,_0x9d12d2:0x247,_0x28371b:0x224,_0x3897ed:0x19b,_0x5c3add:0x181},_0x502644={_0x286dff:0x122,_0x34ba45:0x33d};function _0x26f242(_0x4dab35,_0x18705c,_0x432623,_0x2febd9){return _0x3f402d(_0x4dab35-_0x502644._0x286dff,_0x432623-_0x502644._0x34ba45,_0x432623-0x6c,_0x2febd9);}function _0x191f72(_0x7506e5,_0xf4c607,_0x7436d7,_0x564158){return _0x3f402d(_0x7506e5-0x104,_0x7506e5-0x3e,_0x7436d7-0x15c,_0x7436d7);}return _0x512f28[_0x26f242(0x520,_0x332c56._0x22dc9,_0x332c56._0x236a52,_0x332c56._0x35e05d)]===_0x191f72(_0x332c56._0x4f1c77,_0x332c56._0x9d12d2,_0x332c56._0x28371b,0x22b)&&_0x512f28['structured'][_0x191f72(_0x332c56._0x3897ed,_0x332c56._0x5c3add,0x1c9,0x186)]===!![];}async function executeModelRequest(_0x5a1aab,_0xcc09af,_0x2b0c45,_0x5367f5,_0x3dcc28,_0x132c94){const _0x75c90f={_0x4173d2:0x3c2,_0x48b073:0x2b7,_0xbf50a1:0x358,_0x263975:0x3bf,_0x3b4ba1:0x2cc,_0x2ff216:0x306,_0x2073c7:0xb1,_0x2929b0:0x1f,_0x154abc:0x24,_0x244598:0x6b,_0x11d4be:0x13,_0x4f42cc:0x26,_0xf326e2:0x13,_0x4cfbdb:0x3a2,_0x59e434:0x337,_0x473cec:0x387,_0x1a8bbd:0x344,_0x540b8c:0x350,_0x3def42:0x2fa,_0x3004ad:0x2f2,_0x26ff92:0x347,_0x3db659:0x2c4,_0x45885b:0x328,_0x568136:0x334,_0x24ba3f:0x2c5,_0x29b545:0x15,_0x8890dd:0x39,_0x3112fa:0x264,_0xf2b53e:0x322,_0x163050:0x2ab,_0x3288a7:0xde,_0xcdf3d5:0xb7,_0x236b2a:0x60,_0x1081ac:0x3b,_0x4c46c2:0x38,_0xe81051:0xa4,_0x40ee15:0x5d,_0x288586:0x28,_0x8a897d:0x8b,_0x198ac7:0x9,_0x2929cf:0x3ba,_0x48d2e1:0x21c,_0x213d48:0x281,_0xf3ab6c:0x22f,_0xf9265f:0x336,_0x4ad435:0xe6,_0xdc6d4:0x3cf,_0x56901a:0xf2,_0xabf28b:0x9e,_0x9f1318:0x31b,_0x3126c2:0x313,_0x294097:0x262,_0x5d6b74:0x26b,_0x4b81c3:0x2a6,_0x4757ed:0x2f2,_0x6b02:0x122,_0x46314e:0x100,_0x3ea75e:0xb9,_0x20eb05:0xa0,_0x4c94a8:0x2dd,_0x67d78a:0x35a,_0x1c1c1b:0x2fb,_0x1d0383:0x29e,_0x14ab27:0x18,_0x66eb41:0x2f,_0x129f92:0x33d,_0x127204:0x273,_0xb2e607:0x50,_0x1d8c10:0x16,_0x9e138d:0x39,_0x5a0e5e:0x3e,_0x3aca28:0x24},_0x3b8c5b={_0xa0a542:0x7e,_0x261807:0xfc};throwIfAborted(_0xcc09af['signal']);function _0x29b810(_0x5e0c05,_0x3a8443,_0x560948,_0x281155){return _0xf3454f(_0x560948-_0x3b8c5b._0xa0a542,_0x3a8443-_0x3b8c5b._0x261807,_0x281155,_0x281155-0x1c);}function _0x4d02a1(_0x55fed3,_0x4f1bdd,_0x2ae692,_0x22aa17){return _0xf3454f(_0x22aa17- -0x23b,_0x4f1bdd-0x190,_0x55fed3,_0x22aa17-0x5d);}if(!_0xcc09af[_0x29b810(_0x75c90f._0x4173d2,0x3c6,0x347,0x3aa)]||!_0x2b0c45[_0x29b810(0x2c3,_0x75c90f._0x48b073,0x295,0x2bc)])return await _0x2b0c45[_0x29b810(0x36a,0x2cb,_0x75c90f._0xbf50a1,_0x75c90f._0x263975)](_0x5a1aab,{'signal':_0xcc09af[_0x29b810(0x2aa,0x2b7,_0x75c90f._0x3b4ba1,_0x75c90f._0x2ff216)]});let _0x4d4434;for await(const _0x4816b4 of _0x2b0c45[_0x4d02a1(-_0x75c90f._0x2073c7,-0x8,-_0x75c90f._0x2929b0,-_0x75c90f._0x154abc)](_0x5a1aab,{'signal':_0xcc09af[_0x4d02a1(0x12,_0x75c90f._0x244598,0xb,_0x75c90f._0x11d4be)]})){throwIfAborted(_0xcc09af[_0x4d02a1(-0x1d,0xa1,-_0x75c90f._0x4f42cc,_0x75c90f._0xf326e2)]);if(_0x4816b4[_0x29b810(_0x75c90f._0x4cfbdb,_0x75c90f._0x59e434,_0x75c90f._0x473cec,_0x75c90f._0x1a8bbd)]==='done'){_0x132c94[_0x29b810(_0x75c90f._0x540b8c,_0x75c90f._0x3def42,_0x75c90f._0x3004ad,_0x75c90f._0x26ff92)]['reasoningStartedAt']!==void 0x0&&_0x132c94[_0x29b810(_0x75c90f._0x3db659,0x35e,_0x75c90f._0x3004ad,_0x75c90f._0x45885b)][_0x29b810(_0x75c90f._0x568136,0x2f7,_0x75c90f._0x24ba3f,0x2a3)]===void 0x0&&(_0x132c94[_0x4d02a1(-_0x75c90f._0x29b545,0x97,-0x1d,_0x75c90f._0x8890dd)][_0x29b810(_0x75c90f._0x3112fa,_0x75c90f._0xf2b53e,_0x75c90f._0x24ba3f,_0x75c90f._0x163050)]=Date['now']());_0x4d4434=_0x4816b4['response'];continue;}if(_0x4816b4[_0x4d02a1(_0x75c90f._0x3288a7,_0x75c90f._0xcdf3d5,0xa0,0xce)]===_0x4d02a1(0x35,0x93,_0x75c90f._0x236b2a,_0x75c90f._0x1081ac)){await emitEvent2(_0x5367f5['onEvent'],{'type':'provider_stream_reset','assistantMessageId':_0x132c94[_0x4d02a1(-_0x75c90f._0x4c46c2,0x19,_0x75c90f._0xe81051,_0x75c90f._0x154abc)],'reasoningMessageId':_0x132c94[_0x4d02a1(_0x75c90f._0x40ee15,0x33,_0x75c90f._0x288586,0x84)]},_0x3dcc28),delete _0x132c94[_0x4d02a1(0x46,-0x55,_0x75c90f._0x8a897d,_0x75c90f._0x8890dd)]['reasoningStartedAt'],delete _0x132c94['meta'][_0x4d02a1(_0x75c90f._0x198ac7,-0x3d,0x1b,0xc)];continue;}if(_0x4816b4[_0x29b810(0x366,0x35f,0x387,_0x75c90f._0x2929cf)]===_0x29b810(0x30f,_0x75c90f._0x48d2e1,_0x75c90f._0x213d48,_0x75c90f._0xf3ab6c)){await emitEvent2(_0x5367f5['onEvent'],{..._0x4816b4,'assistantMessageId':_0x132c94[_0x29b810(0x332,_0x75c90f._0xf9265f,0x2dd,0x2a3)]},_0x3dcc28);continue;}const _0x41d9e4=createReasoningChunkEvent(_0x4816b4,_0x132c94[_0x4d02a1(0xca,0xc8,_0x75c90f._0x4ad435,0x84)]);if(_0x41d9e4&&_0x41d9e4[_0x29b810(0x313,0x413,_0x75c90f._0x473cec,_0x75c90f._0xdc6d4)]===_0x4d02a1(_0x75c90f._0x56901a,0x2b,0x12c,_0x75c90f._0xabf28b)&&_0x41d9e4[_0x4d02a1(-0x12,-0x2b,-0x2c,-0x15)][_0x29b810(0x302,0x2f6,0x31f,0x2ca)]>0x0){_0x132c94[_0x29b810(_0x75c90f._0x9f1318,_0x75c90f._0x3126c2,_0x75c90f._0x3004ad,0x296)][_0x29b810(_0x75c90f._0x294097,0x2ca,0x2e8,_0x75c90f._0x5d6b74)]===void 0x0&&(_0x132c94[_0x29b810(_0x75c90f._0x4b81c3,0x315,_0x75c90f._0x4757ed,0x264)]['reasoningStartedAt']=Date[_0x4d02a1(0xad,_0x75c90f._0x6b02,_0x75c90f._0x46314e,0xb7)]());await emitEvent2(_0x5367f5[_0x4d02a1(0x1e,0x4a,_0x75c90f._0x3ea75e,_0x75c90f._0x20eb05)],_0x41d9e4,_0x3dcc28);continue;}const _0x5c421d=createAssistantChunkEvent(_0x4816b4,_0x132c94[_0x29b810(0x358,0x28f,_0x75c90f._0x4c94a8,_0x75c90f._0x67d78a)]);if(_0x5c421d){_0x132c94[_0x29b810(0x2b5,_0x75c90f._0x1c1c1b,0x2f2,_0x75c90f._0x1d0383)][_0x4d02a1(-0x30,0x73,_0x75c90f._0x14ab27,_0x75c90f._0x66eb41)]!==void 0x0&&_0x132c94['meta'][_0x29b810(_0x75c90f._0x129f92,0x31a,0x2c5,_0x75c90f._0x127204)]===void 0x0&&(_0x132c94[_0x4d02a1(_0x75c90f._0xb2e607,_0x75c90f._0x1d8c10,-0x49,_0x75c90f._0x9e138d)]['reasoningCompletedAt']=Date['now']());await emitEvent2(_0x5367f5['onEvent'],_0x5c421d,_0x3dcc28);continue;}const _0x2f42f9=createToolUseChunkEvent(_0x4816b4,_0x132c94[_0x4d02a1(_0x75c90f._0x5a0e5e,0x2a,0x1d,_0x75c90f._0x3aca28)]);_0x2f42f9&&await emitEvent2(_0x5367f5['onEvent'],_0x2f42f9,_0x3dcc28);}if(!_0x4d4434)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');return _0x4d4434;}function makeTurnGuards(_0x439ff4,_0x4a5b24,_0x119d00,_0x18bf55,_0x4ac387){return{async 'stage'(_0x4f80a0,_0x1a9823){return throwIfAborted(_0x439ff4),await runStage(_0x4a5b24,_0x4f80a0,_0x1a9823,_0x18bf55);},async 'emit'(_0x54e4d1){throwIfAborted(_0x439ff4),await emitEvent2(_0x119d00,_0x54e4d1,_0x4ac387);},async 'stageUnchecked'(_0x383bec,_0x1a1b60){return await runStage(_0x4a5b24,_0x383bec,_0x1a1b60,_0x18bf55);},async 'emitUnchecked'(_0x55bf36){await emitEvent2(_0x119d00,_0x55bf36,_0x4ac387);}};}async function runTurn(_0x14044c,_0x19b869){const _0x407311={_0x22f982:0xb5,_0xad146e:0xa3,_0x166519:0x59,_0x4775d7:0x10d,_0x2c20ba:0x45d,_0x38e703:0x65,_0x4f0605:0x177,_0x3b2087:0x1ac,_0x1a7e9e:0xf1,_0x36796:0xdb,_0x534f83:0x6b,_0x1d7091:0x85,_0x1d2fbc:0x488,_0x120b70:0x141,_0x449e6b:0x457,_0x36a79f:0x157,_0x11f0b3:0xe0,_0x2b061b:0x7e,_0x1c5069:0x110,_0x4fe659:0x449,_0x19efb5:0x474,_0x189626:0x48b,_0xbb8b58:0x4dd,_0x348420:0x19b,_0x5b1f5f:0x1b8,_0x36930c:0x1a2,_0x397707:0x506,_0x542089:0x55c,_0xabc565:0x466,_0x436dee:0x4e3,_0x4dc618:0x502,_0x295238:0x180,_0x456714:0x10e,_0xd55af4:0x4c5,_0x38ad7b:0x44e,_0x578b70:0x15e,_0x67c993:0x529,_0x2038bf:0x4d3,_0x39ea0a:0x4d2,_0x175267:0x4c5,_0xd05d00:0x1ac,_0x52ad7a:0x1c5,_0xae606c:0x135,_0x14202a:0x1c2,_0x5a13b0:0x4ff,_0x88fb45:0x4f1,_0x97ad00:0x4da,_0x2ff8f7:0x546,_0x325953:0x56f,_0x4129ac:0x4fa,_0x3c3cf8:0x16c,_0x4416cd:0x100,_0x1a75a4:0x14a,_0x2f2edb:0xd2,_0x207f50:0xfb,_0x2b561:0x50a,_0x3eb1b5:0x51d,_0x34deb7:0x4a5,_0x361ab2:0x435,_0x8376c5:0x4d4,_0x263f7f:0x47d,_0x233efa:0xfb,_0x42e03c:0x18f,_0x2940a1:0x1be,_0xd4df6f:0x155,_0x53b4bb:0x52a,_0x14b037:0x415,_0x1cc697:0x4a0,_0x58cefa:0xb6,_0x5f5220:0xa4,_0x2b454b:0x54e,_0x4d4bd3:0x4e9,_0x5ab96b:0x458,_0x27b237:0x12e,_0x15c094:0x1e6,_0x564cc2:0x3ec,_0x8d1ca4:0x4a7,_0x23eaac:0x46b,_0x16b275:0x506,_0x4da53c:0x547,_0x1357a2:0x4ce,_0x2c2693:0x4c8,_0x5d064e:0x147,_0xed4916:0xdd,_0x2c33e8:0x177,_0x399685:0xec,_0x4877e3:0xd9,_0x36216b:0x158,_0x5d9548:0x17a,_0x64231b:0x192,_0x1c2e24:0x469,_0x2528ae:0x4cd,_0x3b71ce:0x4c7,_0x3774a7:0x545,_0x66865d:0x532,_0x2c0a57:0x58f,_0x37ae2c:0x480,_0x4412f4:0x17b,_0x19831d:0x1e4,_0x165071:0x15c,_0xde3738:0xd6,_0x2cc4f8:0x13a,_0x13ae63:0xcf,_0x4fdd09:0x5aa,_0x486aee:0x54b,_0x278ac9:0x5a8,_0x348aae:0x597,_0x84b0ef:0x56c,_0x22a8e0:0x5f6,_0x3d8621:0x473,_0x347b8f:0x81,_0x2e81c8:0x51b,_0x154abb:0x576,_0x30459d:0x4f6,_0x457b26:0x109,_0x38c623:0xbe,_0x3e1324:0xe6,_0x19a731:0x50a,_0x595cc2:0x4d3,_0x53383f:0x540,_0x5e61f4:0x123,_0xfb30f1:0xb4,_0x49c1ed:0x15a,_0x3098dc:0x146,_0x3699ed:0x154,_0x489b18:0x562,_0x2c971b:0x4c6,_0x17d8e1:0x133,_0x1a4e6e:0xdc,_0x941596:0x4d0,_0x3ea2e8:0x43f,_0x204884:0xef,_0x4f0127:0x16f,_0x3bff5c:0xfd,_0x391d0e:0x447,_0x5e178a:0x4f9,_0x21bdbb:0x4f4,_0x488ba0:0x414,_0x3b8c77:0x419,_0x9c9ada:0x65,_0x30b7c5:0x142,_0x1846b9:0x466,_0x352180:0x189,_0x54d2ef:0x185,_0x2e544d:0x15d,_0xa0b523:0xd8,_0x48aac9:0xa3,_0x5aa5a9:0xdf,_0xd683a6:0xc8},_0x15fe41={_0x2c1cc4:0x57,_0x1ea991:0x77,_0x23cff7:0x7f,_0x2e2e5e:0x1bd,_0x2902ac:0x152,_0x168824:0x6a,_0x3c99d0:0xd,_0x3194a0:0x5e,_0x245288:0x91,_0x2f42b0:0x38,_0x45829d:0x86,_0x19c52c:0x15d},_0x43a1fa={_0x341035:0x11d,_0x33f9f0:0x4a},_0x354a17={_0x291f1f:0x18a,_0x21b6ca:0x137,_0xbf039b:0x51,_0x44d732:0xad,_0x7b002d:0xd,_0x5dbd7e:0x13,_0x29f152:0x1c3,_0x15da81:0x139,_0x2aeba8:0x230,_0x333f6f:0x125,_0x1f780e:0x142,_0x3bd0e8:0x1b9,_0x37bf7c:0x122,_0x34d0f4:0x176,_0x19e9e0:0x9e},_0x34256e={_0x1dd078:0x32b},_0xbab4fd={_0x5442f3:0x1d3,_0x4cf252:0x1ed,_0x26382a:0x3e4,_0x55b35a:0x378,_0x19618e:0x37e,_0x12f6dd:0x3c5},_0x45b28d={_0x29b1ed:0x82,_0x219703:0x1c0,_0x1a7f8c:0x6a3},_0x5ee743={_0x36baa9:0x159},_0x3cf0ae=_0x19b869[_0x46ede8(_0x407311._0x22f982,_0x407311._0xad146e,_0x407311._0x166519,_0x407311._0x4775d7)];function _0x46ede8(_0x1376fb,_0x75f645,_0x401322,_0x590aa5){return _0x3f402d(_0x1376fb-0x19,_0x1376fb- -0x85,_0x401322-_0x5ee743._0x36baa9,_0x401322);}const _0x1c2f46=_0x14044c[_0x2829cb(0x45e,_0x407311._0x2c20ba,0x4a3,0x447)]??new AbortController()[_0x46ede8(0xf3,0x70,_0x407311._0x38e703,_0x407311._0x4f0605)],_0x7af775=normalizeExecutionScope(_0x19b869[_0x46ede8(0x153,_0x407311._0x3b2087,0x15b,_0x407311._0x1a7e9e)]),_0x4dbedd={'sessionId':_0x14044c[_0x46ede8(_0x407311._0x36796,0x90,_0x407311._0x534f83,_0x407311._0x1d7091)],'turnId':_0x14044c[_0x2829cb(_0x407311._0x1d2fbc,0x4fe,0x4f1,0x541)],'system':normalizeSystem(_0x14044c[_0x46ede8(0xf5,_0x407311._0x120b70,0xd1,0x15f)]),'messages':(_0x14044c[_0x2829cb(_0x407311._0x1d2fbc,_0x407311._0x449e6b,0x4d3,0x48d)]??[])['map'](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x19b869[_0x46ede8(0xd1,_0x407311._0x36a79f,_0x407311._0x11f0b3,_0x407311._0x2b061b)]==='function'?_0x19b869[_0x46ede8(0xd1,0x6c,_0x407311._0x1c5069,0x9c)]():_0x19b869['sessionDir']},_0x2d5277=makeExtensionContext(_0x4dbedd,_0x7af775),_0x3ded47={'sessionId':_0x4dbedd[_0x2829cb(_0x407311._0x4fe659,_0x407311._0x19efb5,_0x407311._0x189626,_0x407311._0xbb8b58)],'turnId':_0x4dbedd['turnId'],'state':_0x4dbedd,'executionScope':_0x7af775,'signal':_0x1c2f46,..._0x19b869[_0x46ede8(0x156,_0x407311._0x348420,_0x407311._0x5b1f5f,_0x407311._0x36930c)]?{'askUser':_0x19b869[_0x2829cb(0x485,0x4f6,_0x407311._0x397707,0x555)]}:{}},{stage:_0x25bde7,emit:_0x2d2244,stageUnchecked:_0x4b6c68,emitUnchecked:_0x1ca68b}=makeTurnGuards(_0x1c2f46,_0x19b869[_0x2829cb(_0x407311._0x542089,_0x407311._0xabc565,_0x407311._0x436dee,_0x407311._0x4dc618)],_0x19b869[_0x46ede8(_0x407311._0x295238,0x123,0x192,_0x407311._0x456714)],_0x2d5277,_0x3ded47),_0x58b4f4=async(_0x1fd0cf,_0x34a188)=>{const _0x54b0dd={_0x1aae27:0x7,_0x49bbcf:0x10a},_0x35ffc6=_0x34a188?{..._0x2d5277,'turnMeta':_0x34a188}:_0x2d5277;function _0x324254(_0x339f86,_0x5da86b,_0x540a5b,_0x248d44){return _0x2829cb(_0x339f86-_0x45b28d._0x29b1ed,_0x5da86b-_0x45b28d._0x219703,_0x248d44- -_0x45b28d._0x1a7f8c,_0x540a5b);}function _0x420213(_0x1fc196,_0x1c534a,_0x4b8462,_0x281396){return _0x46ede8(_0x1fc196-0x2b0,_0x1c534a-_0x54b0dd._0x1aae27,_0x1c534a,_0x281396-_0x54b0dd._0x49bbcf);}await _0x19b869[_0x324254(-0x1c2,-_0xbab4fd._0x5442f3,-_0xbab4fd._0x4cf252,-0x1c0)]['runObservers'](_0x420213(_0xbab4fd._0x26382a,_0xbab4fd._0x55b35a,_0xbab4fd._0x19618e,_0xbab4fd._0x12f6dd),structuredClone(_0x1fd0cf),_0x35ffc6);};function _0x2829cb(_0x16a1a4,_0x1bac34,_0x314ec0,_0x4329a8){return _0x3f402d(_0x16a1a4-0x5,_0x314ec0-_0x34256e._0x1dd078,_0x314ec0-0x1d4,_0x4329a8);}const _0x559c5d=_0x31940b=>{const _0x17468d={_0x5a1a0e:0x62b},_0x1b521a={_0x168c93:0xd8};function _0x2dcfbc(_0x340cb0,_0x10b99f,_0x50e9d2,_0x12f564){return _0x2829cb(_0x340cb0-0x17a,_0x10b99f-_0x1b521a._0x168c93,_0x10b99f- -0x4fb,_0x12f564);}function _0x506a48(_0x3b31b8,_0x247210,_0x2ed8e0,_0x7dc41b){return _0x2829cb(_0x3b31b8-0x166,_0x247210-0x59,_0x3b31b8- -_0x17468d._0x5a1a0e,_0x7dc41b);}if(_0x31940b?.[_0x506a48(-0x1ae,-0x139,-_0x354a17._0x291f1f,-_0x354a17._0x21b6ca)]==='coordinator')return{'submissionOrigin':_0x2dcfbc(-0x1e,-_0x354a17._0xbf039b,-0x8b,-_0x354a17._0x44d732),..._0x31940b[_0x2dcfbc(0x6c,_0x354a17._0x7b002d,-0x32,_0x354a17._0x5dbd7e)]===void 0x0?{}:{'subagentReport':structuredClone(_0x31940b['subagentReport'])}};if(_0x31940b?.[_0x506a48(-0x1ae,-_0x354a17._0x29f152,-_0x354a17._0x15da81,-_0x354a17._0x2aeba8)]===_0x506a48(-0x142,-0x173,-_0x354a17._0x333f6f,-0x1b0))return{'submissionOrigin':_0x506a48(-_0x354a17._0x1f780e,-_0x354a17._0x3bd0e8,-0x156,-0x16d),'senderAgentId':_0x31940b[_0x506a48(-_0x354a17._0x37bf7c,-0x99,-_0x354a17._0x34d0f4,-_0x354a17._0x19e9e0)]};return void 0x0;},_0x2c2b74=_0xe01771=>_0xe01771?.[_0x46ede8(0xcd,0xf7,0x14d,0x7c)]==='agent'?{'senderAgentId':_0xe01771[_0x2829cb(0x513,0x542,0x509,0x552)]}:void 0x0,_0x9865bb=_0x2e875f=>typeof _0x2e875f===_0x46ede8(0xe7,0x125,0x13c,0x131)&&_0x2e875f!==null&&'input'in _0x2e875f&&_0x46ede8(0x187,0x1cf,0x178,0x214)in _0x2e875f,_0x32010a=async _0x46f881=>{const _0x54555c={_0x1e1ea1:0x35,_0x5028d6:0x117};if(!_0x14044c[_0x27ac8c(_0x15fe41._0x2c1cc4,_0x15fe41._0x1ea991,0xb3,_0x15fe41._0x23cff7)])return 0x0;function _0x393a50(_0xa4188e,_0x376dbc,_0xbf73fc,_0x5e0417){return _0x46ede8(_0xbf73fc- -_0x43a1fa._0x341035,_0x376dbc-_0x43a1fa._0x33f9f0,_0xa4188e,_0x5e0417-0x1cb);}const _0x2f75be=await _0x14044c['drainSteering']();function _0x27ac8c(_0x337ad2,_0x307be6,_0x11bf5b,_0x5998c3){return _0x46ede8(_0x11bf5b- -_0x54555c._0x1e1ea1,_0x307be6-0xb1,_0x337ad2,_0x5998c3-_0x54555c._0x5028d6);}throwIfAborted(_0x1c2f46);if(_0x2f75be['length']===0x0)return 0x0;await _0x46f881?.();for(const _0x28a84d of _0x2f75be){const _0x1ab04e=_0x9865bb(_0x28a84d)?_0x28a84d['input']:_0x28a84d,_0x349faf=_0x9865bb(_0x28a84d)?_0x28a84d[_0x27ac8c(_0x15fe41._0x2e2e5e,0x121,_0x15fe41._0x2902ac,0x16f)]:void 0x0,_0x26356d=await _0x25bde7(_0x393a50(-_0x15fe41._0x168824,0x72,-0x8,-_0x15fe41._0x3c99d0),normalizeMessage(_0x1ab04e));throwIfAborted(_0x1c2f46),_0x4dbedd[_0x393a50(-_0x15fe41._0x3194a0,_0x15fe41._0x245288,0x6,_0x15fe41._0x2f42b0)][_0x27ac8c(0xad,0xe4,0x97,_0x15fe41._0x45829d)](_0x26356d),await _0x58b4f4(_0x26356d,_0x559c5d(_0x349faf)),await _0x2d2244({'type':_0x27ac8c(0xe6,0x1ae,_0x15fe41._0x19c52c,0xe7),'message':_0x26356d,..._0x2c2b74(_0x349faf)});}return _0x2f75be['length'];};let _0x1045e4=0x0;try{const _0xf985fd=await _0x25bde7(_0x2829cb(0x54e,0x4b1,_0x407311._0xd55af4,_0x407311._0x38ad7b),normalizeMessage(_0x14044c[_0x46ede8(0x16d,0xe1,0x1f9,_0x407311._0x578b70)]));_0x4dbedd[_0x2829cb(_0x407311._0x67c993,0x464,_0x407311._0x2038bf,_0x407311._0x4dc618)][_0x2829cb(_0x407311._0x39ea0a,0x42e,0x47c,_0x407311._0x175267)](_0xf985fd);_0x14044c[_0x46ede8(_0x407311._0xd05d00,0x1e9,_0x407311._0x52ad7a,_0x407311._0xae606c)]!==!![]&&await _0x58b4f4(_0xf985fd,_0x559c5d(_0x14044c[_0x2829cb(0x5b4,0x593,0x537,0x4d7)]));await _0x2d2244({'type':_0x46ede8(0x192,0x139,_0x407311._0x14202a,0x1fc),'message':_0xf985fd,..._0x2c2b74(_0x14044c['submission'])});while(!![]){throwIfAborted(_0x1c2f46),_0x1045e4+=0x1;const _0x5033cd=createAssistantMessageId(_0x4dbedd[_0x2829cb(0x489,_0x407311._0x5a13b0,_0x407311._0x88fb45,0x50f)],_0x1045e4),_0x4e02b3=createReasoningMessageId(_0x5033cd),_0xf960ed={'model':_0x3cf0ae[_0x2829cb(0x45f,0x4f6,_0x407311._0x97ad00,0x4d3)],'modelIdentity':_0x3cf0ae[_0x2829cb(_0x407311._0x2ff8f7,_0x407311._0x325953,0x52a,_0x407311._0x4129ac)],..._0x3cf0ae['provider']?{'provider':_0x3cf0ae[_0x46ede8(_0x407311._0x3c3cf8,_0x407311._0x4416cd,_0x407311._0x1a75a4,0x15e)]}:{}};let _0x22e40a={'model':_0x3cf0ae[_0x46ede8(0x12a,_0x407311._0x2f2edb,0x16d,_0x407311._0x207f50)],..._0x3cf0ae[_0x2829cb(_0x407311._0x2b561,0x504,_0x407311._0x2b561,0x56f)]!==void 0x0?{'maxTokens':_0x3cf0ae['maxTokens']}:{},'system':structuredClone(_0x4dbedd[_0x2829cb(0x421,_0x407311._0x3eb1b5,_0x407311._0x34deb7,_0x407311._0x361ab2)]),'messages':structuredClone(_0x4dbedd[_0x2829cb(0x4e1,_0x407311._0x8376c5,0x4d3,_0x407311._0x263f7f)]),'tools':_0x19b869['toolRuntime'][_0x46ede8(0x15d,_0x407311._0x233efa,_0x407311._0x42e03c,_0x407311._0x2940a1)](),'metadata':{'sessionId':_0x4dbedd[_0x46ede8(_0x407311._0x36796,0xf1,0xf9,_0x407311._0xd4df6f)],'turnId':_0x4dbedd['turnId'],'modelIdentity':_0x3cf0ae[_0x2829cb(0x5af,0x4a3,_0x407311._0x53b4bb,0x590)],..._0x3cf0ae[_0x2829cb(_0x407311._0x14b037,_0x407311._0x1cc697,0x466,0x4c7)]!==void 0x0?{'pricingProviderId':_0x3cf0ae[_0x46ede8(_0x407311._0x58cefa,0xaf,_0x407311._0x5f5220,0x110)]}:{}},..._0x19b869['outputFormat']?{'outputFormat':_0x19b869['outputFormat']}:{}};_0x22e40a=await _0x25bde7(_0x2829cb(0x4b9,0x569,0x517,_0x407311._0x2b454b),_0x22e40a);{const {pricingProviderId:_0x12d238,..._0x5e4731}=_0x22e40a[_0x2829cb(_0x407311._0x4d4bd3,_0x407311._0x5ab96b,0x4a4,_0x407311._0xabc565)];_0x22e40a={..._0x22e40a,'metadata':{..._0x5e4731,..._0x3cf0ae[_0x2829cb(0x3e5,0x3ff,_0x407311._0xabc565,0x421)]!==void 0x0?{'pricingProviderId':_0x3cf0ae[_0x46ede8(_0x407311._0x58cefa,0x3e,0xcd,_0x407311._0x27b237)]}:{}}};}await _0x2d2244({'type':'model_request','request':_0x22e40a});const _0x1ce60f=Date[_0x46ede8(0x197,_0x407311._0x15c094,0x126,0x15b)]();_0xf960ed[_0x2829cb(_0x407311._0x564cc2,_0x407311._0x8d1ca4,0x462,_0x407311._0x23eaac)]=_0x1ce60f;let _0x1540a0=await executeModelRequest(_0x22e40a,_0x14044c,_0x3cf0ae,_0x19b869,_0x3ded47,{'assistantMessageId':_0x5033cd,'reasoningMessageId':_0x4e02b3,'meta':_0xf960ed});const _0x165acd=Date[_0x2829cb(0x4bf,_0x407311._0x16b275,_0x407311._0x4da53c,_0x407311._0x1357a2)]();_0xf960ed[_0x46ede8(0x11e,_0x407311._0xd4df6f,0x128,0xb3)]=_0x165acd,_0x1540a0=await _0x25bde7(_0x2829cb(0x53f,0x54b,0x4fc,_0x407311._0x2c2693),_0x1540a0);_0x1540a0[_0x46ede8(_0x407311._0x5d064e,_0x407311._0xed4916,_0x407311._0x2c33e8,_0x407311._0x399685)]&&(_0x1540a0={..._0x1540a0,'providerState':{..._0x1540a0[_0x46ede8(0x147,_0x407311._0x4877e3,_0x407311._0x36216b,0xf1)],'originModelIdentity':_0x3cf0ae[_0x46ede8(_0x407311._0x5d9548,_0x407311._0x64231b,0x1b9,0x1b6)]}});_0x1540a0=withEstimatedModelCost(_0x22e40a,_0x1540a0);const _0x2f692b=Math[_0x2829cb(_0x407311._0x1c2e24,0x4d4,_0x407311._0x2528ae,0x54c)](0x0,_0x165acd-_0x1ce60f),_0x3be766={'version':0x1,'usage':structuredClone(_0x1540a0[_0x2829cb(_0x407311._0x3b71ce,_0x407311._0x3774a7,_0x407311._0x66865d,_0x407311._0x2c0a57)]),'modelTimeMs':_0x2f692b},_0x544d36=_0x3a223f=>({..._0xf960ed,'metrics':{..._0x3be766,'usage':structuredClone(_0x3be766['usage']),'completesRequest':_0x3a223f}});await _0x2d2244({'type':_0x2829cb(0x4dc,0x4db,_0x407311._0x37ae2c,0x50e),'response':_0x1540a0,'modelTimeMs':_0x2f692b}),_0x4dbedd['lastResponse']=_0x1540a0;let _0x178eb3=await _0x25bde7(_0x46ede8(_0x407311._0x4412f4,0x1e7,_0x407311._0x19831d,_0x407311._0x165071),withMessageId(responseToAssistantMessage(_0x1540a0),_0x5033cd));_0x178eb3=withMessageId(_0x178eb3,_0x5033cd);const _0x2b836d=getToolUseBlocks(_0x178eb3),_0x25c95e=await Promise['all'](_0x2b836d[_0x46ede8(_0x407311._0xde3738,0x90,_0x407311._0x2cc4f8,_0x407311._0x13ae63)](_0x5531c7=>_0x25bde7('beforeToolExecution',_0x5531c7)));_0x25c95e['length']>0x0&&(_0x178eb3=replaceToolUseBlocks(_0x178eb3,_0x25c95e));const _0x1020be=withMessageId(_0x178eb3,_0x5033cd);_0x178eb3=_0x1020be;const _0x15cb4f=createReasoningMessage(_0x178eb3),_0x38a66c=createAssistantTextMessage(_0x178eb3),_0x3bec5e=createToolUseMessage(_0x178eb3);_0x15cb4f&&await _0x2d2244({'type':_0x2829cb(_0x407311._0x4fdd09,0x5d0,0x555,_0x407311._0x486aee),'message':withMessageId(_0x15cb4f,_0x4e02b3)});_0x38a66c&&await _0x2d2244({'type':_0x2829cb(0x541,0x4f2,0x563,0x587),'message':withMessageId(_0x38a66c,_0x5033cd)});_0x3bec5e&&await _0x2d2244({'type':_0x2829cb(_0x407311._0x278ac9,_0x407311._0x348aae,_0x407311._0x84b0ef,_0x407311._0x22a8e0),'message':withMessageId(_0x3bec5e,_0x5033cd)});_0x4dbedd[_0x2829cb(0x447,_0x407311._0x3d8621,0x4d3,0x44a)][_0x46ede8(0xcc,0x66,_0x407311._0x347b8f,0x82)](_0x1020be);_0x25c95e['length']>0x0&&await _0x58b4f4(_0x1020be,_0x544d36(![]));for(const _0x44c880 of _0x25c95e){await _0x2d2244({'type':'tool_call','toolCall':structuredClone(_0x44c880)});}if(_0x25c95e[_0x2829cb(_0x407311._0x2e81c8,_0x407311._0x154abb,_0x407311._0x30459d,0x4e4)]===0x0){const _0x1d841=await _0x32010a(async()=>{await _0x58b4f4(_0x1020be,_0x544d36(![]));});if(_0x1d841>0x0)continue;const _0x59137c=await _0x25bde7(_0x46ede8(_0x407311._0x457b26,_0x407311._0x38c623,_0x407311._0x3e1324,0x15a),_0x178eb3),_0x250f0e=withMessageId(_0x59137c,_0x5033cd);return _0x4dbedd['finalMessage']=_0x250f0e,_0x4dbedd[_0x2829cb(_0x407311._0x1cc697,_0x407311._0x19a731,_0x407311._0x595cc2,_0x407311._0x53383f)][_0x4dbedd[_0x46ede8(_0x407311._0x5e61f4,0x13d,_0x407311._0xfb30f1,_0x407311._0x49c1ed)][_0x46ede8(_0x407311._0x3098dc,0x11f,0x170,_0x407311._0x3699ed)]-0x1]=_0x250f0e,await _0x58b4f4(_0x250f0e,_0x544d36(!![])),await _0x1ca68b({'type':_0x2829cb(0x5d6,_0x407311._0x489b18,0x548,_0x407311._0x2c971b),'message':_0x250f0e}),throwIfAborted(_0x1c2f46),await _0x19b869[_0x46ede8(_0x407311._0x17d8e1,_0x407311._0x1a4e6e,0xe9,0xbb)]['runObservers'](_0x2829cb(0x3f7,_0x407311._0x941596,0x470,_0x407311._0x3ea2e8),_0x4dbedd,_0x2d5277),await _0x2d2244({'type':'turn_complete','state':_0x4dbedd}),{'status':'completed','finalMessage':_0x250f0e,'state':_0x4dbedd};}let _0x3c8572=await _0x19b869[_0x46ede8(_0x407311._0x204884,0x141,_0x407311._0x4f0127,_0x407311._0x3bff5c)][_0x2829cb(0x483,_0x407311._0x391d0e,0x48c,_0x407311._0x5e178a)](_0x25c95e,_0x3ded47);const _0x386044=_0x3c8572['some'](isAbortedToolResult),_0x1c1c45=_0x386044?_0x4b6c68:_0x25bde7,_0xc0908d=_0x386044?_0x1ca68b:_0x2d2244;_0x3c8572=await Promise['all'](_0x3c8572[_0x2829cb(_0x407311._0x21bdbb,_0x407311._0x488ba0,0x486,_0x407311._0x3b8c77)](_0x44750f=>_0x1c1c45(_0x46ede8(0xaa,0x134,0x38,0xdf),_0x44750f))),_0x4dbedd[_0x46ede8(_0x407311._0x1a7e9e,_0x407311._0x9c9ada,0x178,_0x407311._0x30b7c5)][_0x2829cb(0x4e5,0x494,0x47c,0x43d)](..._0x3c8572);for(const _0x4ba108 of _0x3c8572){await _0xc0908d({'type':_0x2829cb(0x4ce,0x514,0x4c1,_0x407311._0x1846b9),'result':cloneToolResultForPublication2(_0x4ba108)});}const _0x258583=await _0x1c1c45(_0x46ede8(_0x407311._0x352180,0x11d,0x198,_0x407311._0x54d2ef),createToolResultUserMessage(_0x3c8572));await _0xc0908d({'type':_0x46ede8(0xe5,0x7d,_0x407311._0x2e544d,0xe6),'message':_0x258583}),_0x4dbedd['messages']['push'](_0x258583),await _0x58b4f4(_0x258583);if(_0x386044)return{'status':_0x46ede8(_0x407311._0xa0b523,_0x407311._0x1c5069,_0x407311._0x48aac9,_0x407311._0x5aa5a9),'state':_0x4dbedd};await _0x32010a();}}catch(_0x4ca493){if(!_0x1c2f46['aborted'])throw new TurnFailedError(_0x4ca493,_0x4dbedd);return{'status':_0x46ede8(_0x407311._0xa0b523,_0x407311._0xd683a6,0x162,0x14a),'state':_0x4dbedd};}}function createSessionId(){const _0x4517d6={_0xffee5a:0x329,_0x491fbd:0x38b,_0x41a443:0x326,_0x18f34c:0x453,_0x5df2e1:0x3ea,_0x37ce2f:0x435,_0x446ab4:0x399,_0x2e80b9:0x3b3,_0x1925c1:0x31a,_0x1ed31d:0x341,_0x48b83b:0x308,_0x4b300c:0x89,_0x1ef93f:0xc2},_0x131828={_0x4b0168:0x133},_0x9351d5={_0x411852:0x195,_0x35e09:0x14d};function _0x1ed629(_0x1c3de1,_0x1440ab,_0x1b21b8,_0x4de8ab){return _0x3f402d(_0x1c3de1-_0x9351d5._0x411852,_0x4de8ab- -0x7b,_0x1b21b8-_0x9351d5._0x35e09,_0x1440ab);}function _0x5ca1ec(_0x3882c2,_0x303cea,_0x258562,_0x34b0ed){return _0x3f402d(_0x3882c2-_0x131828._0x4b0168,_0x303cea-0x1ce,_0x258562-0x21,_0x258562);}return _0x5ca1ec(_0x4517d6._0xffee5a,0x32d,_0x4517d6._0x491fbd,_0x4517d6._0x41a443)+Date[_0x5ca1ec(_0x4517d6._0x18f34c,_0x4517d6._0x5df2e1,0x438,_0x4517d6._0x37ce2f)]()+'-'+Math[_0x5ca1ec(_0x4517d6._0x446ab4,_0x4517d6._0x2e80b9,0x439,0x383)]()[_0x5ca1ec(_0x4517d6._0x1925c1,_0x4517d6._0x1ed31d,_0x4517d6._0x48b83b,0x3ae)](0x10)[_0x1ed629(_0x4517d6._0x4b300c,0x122,0x14f,_0x4517d6._0x1ef93f)](0x2,0xa);}function createTurnId(_0x70ee5e){const _0x29d14d={_0x28419b:0x183,_0x2acc34:0x103,_0x354018:0x123};function _0x57b493(_0x35abd8,_0xc22e48,_0x46330c,_0x4c523f){return _0x3f402d(_0x35abd8-0x33,_0x35abd8- -0x5,_0x46330c-0x42,_0x4c523f);}return _0x57b493(_0x29d14d._0x28419b,0x17b,_0x29d14d._0x2acc34,_0x29d14d._0x354018)+_0x70ee5e;}function createDefaultMessage(_0x31b26f){if(_0x31b26f===void 0x0)return void 0x0;return normalizeUserInput(_0x31b26f);}function normalizeUserInput(_0x594714){const _0x1f3575={_0x180d6d:0x152,_0x3f3375:0x9a,_0x53d848:0x9b,_0x2b7a2f:0x17},_0x4fff9e={_0xf26bed:0x2c1,_0x3ae61d:0x31},_0xf06835={_0x29a2ce:0x154,_0x480109:0xf9};function _0x379fcf(_0x5e0e32,_0x453bf2,_0x1f6d1d,_0x2b4fe3){return _0xf3454f(_0x2b4fe3- -0xd9,_0x453bf2-_0xf06835._0x29a2ce,_0x5e0e32,_0x2b4fe3-_0xf06835._0x480109);}if(typeof _0x594714===_0x379fcf(0x12f,0x1cd,_0x1f3575._0x180d6d,0x15b))return{'role':'user','content':[{'type':_0x1dd2a7(-_0x1f3575._0x3f3375,-_0x1f3575._0x53d848,-_0x1f3575._0x2b7a2f,-0x41),'text':_0x594714}]};function _0x1dd2a7(_0x5bd60b,_0x12e2fb,_0x4b9d83,_0x4119f7){return _0xf3454f(_0x12e2fb- -_0x4fff9e._0xf26bed,_0x12e2fb-0x68,_0x4b9d83,_0x4119f7-_0x4fff9e._0x3ae61d);}return normalizeMessage(_0x594714);}function isTaggedSteeringInput(_0x573711){const _0x26e447={_0x4f595e:0x137},_0x2c6d8c={_0x14bd1c:0x69},_0x4e002e={_0x2d4148:0x10a,_0x34591b:0x22};function _0x2e7996(_0x2a4284,_0x2b8be1,_0x3910c9,_0x34a367){return _0x3f402d(_0x2a4284-_0x4e002e._0x2d4148,_0x34a367- -_0x4e002e._0x34591b,_0x3910c9-0x124,_0x2a4284);}function _0x57c6b2(_0x302466,_0x39feec,_0x46bca7,_0x5e4535){return _0x3f402d(_0x302466-0xcf,_0x39feec- -0x2fd,_0x46bca7-_0x2c6d8c._0x14bd1c,_0x5e4535);}return typeof _0x573711===_0x2e7996(0xf3,0x128,_0x26e447._0x4f595e,0x14a)&&_0x573711!==null&&_0x57c6b2(-0x144,-0x12d,-0xbf,-0x156)in _0x573711&&'submission'in _0x573711;}function resolveChatModel(_0x5f42cb){const _0x2d28e1={_0x2ec809:0xf,_0x17a264:0x10e,_0x5c16d9:0xb4,_0x39f1b4:0x108,_0x2fb791:0xb4},_0x3ac136={_0x48de2b:0x22},_0x4495e6={_0x1d4b67:0x318,_0x551252:0x55};if(!_0x5f42cb['chatModel'])throw new Error(_0x20e1ab(-_0x2d28e1._0x2ec809,-0x30,-0x5f,-0x8c));function _0x5e5544(_0xa506d2,_0x5801ec,_0xd30ef8,_0xf746c9){return _0xf3454f(_0xd30ef8- -_0x4495e6._0x1d4b67,_0x5801ec-0x1a8,_0xa506d2,_0xf746c9-_0x4495e6._0x551252);}function _0x20e1ab(_0x3a6856,_0x11c52e,_0x1ca569,_0x544d94){return _0x3f402d(_0x3a6856-0x199,_0x544d94- -0x1bc,_0x1ca569-_0x3ac136._0x48de2b,_0x3a6856);}return _0x5f42cb[_0x5e5544(-_0x2d28e1._0x17a264,-_0x2d28e1._0x5c16d9,-_0x2d28e1._0x39f1b4,-_0x2d28e1._0x2fb791)];}function normalizeExecutionScope2(_0x51d2c4){const _0x47898e={_0x342904:0x114,_0x462079:0x145,_0x354b19:0x20f,_0x18ebe7:0x1cd},_0x4358d5={_0x5e0211:0xd5},_0x4e2b88={_0x19d5e2:0x65};function _0x22d8a7(_0x27f299,_0x120b5f,_0x4d854d,_0x156aa5){return _0xf3454f(_0x156aa5- -0x10b,_0x120b5f-_0x4e2b88._0x19d5e2,_0x4d854d,_0x156aa5-0x19a);}function _0xea63aa(_0x5aa12d,_0x2f69f6,_0x51651f,_0x942448){return _0xf3454f(_0x5aa12d- -_0x4358d5._0x5e0211,_0x2f69f6-0x110,_0x51651f,_0x942448-0x1d8);}return{'agentId':_0x51d2c4?.[_0xea63aa(0x170,0xf4,_0x47898e._0x342904,0xf7)]??'assistant','toolCallPath':[..._0x51d2c4?.[_0x22d8a7(_0x47898e._0x462079,_0x47898e._0x354b19,0x1fb,_0x47898e._0x18ebe7)]??[]]};}function createRegistry(_0x34f096){const _0x4fc620={_0x52b83e:0xf9,_0x278b46:0x179,_0x5d3b6b:0x95,_0x220300:0xc3,_0x2501e2:0x13f},_0x3cacc3={_0x3047b3:0x387,_0xb0c210:0x6d,_0x333930:0x69},_0xf59beb={_0x3487f6:0x30f,_0x151c73:0x15c,_0x243960:0xd};if(_0x34f096[_0x405082(-0x103,-0xca,-_0x4fc620._0x52b83e,-_0x4fc620._0x278b46)])return _0x34f096[_0x405082(-0xa4,-_0x4fc620._0x5d3b6b,-_0x4fc620._0x52b83e,-_0x4fc620._0x220300)];function _0x334761(_0x25ea08,_0x47c944,_0x5744f7,_0x50c5df){return _0xf3454f(_0x50c5df-_0xf59beb._0x3487f6,_0x47c944-_0xf59beb._0x151c73,_0x5744f7,_0x50c5df-_0xf59beb._0x243960);}const _0x39fdbc=createExtensionRegistry(),_0x7fbe43=_0x34f096[_0x405082(-0x13b,-_0x4fc620._0x2501e2,-0x108,-0x16c)]??[];function _0x405082(_0x2d8e6d,_0x4c4552,_0x4619f6,_0x59a7d0){return _0xf3454f(_0x4619f6- -_0x3cacc3._0x3047b3,_0x4c4552-_0x3cacc3._0xb0c210,_0x4c4552,_0x59a7d0-_0x3cacc3._0x333930);}for(const _0x5a56cb of _0x7fbe43){_0x39fdbc['register'](_0x5a56cb);}return _0x39fdbc;}var Agent=class{[_0x3f402d(0x1a6,0x1f8,0x205,0x182)];[_0xf3454f(0x2cf,0x247,0x332,0x25c)];[_0x3f402d(0x242,0x22b,0x1c8,0x28b)];[_0xf3454f(0x236,0x248,0x2be,0x206)];[_0x3f402d(0x191,0x1a8,0x138,0x173)];[_0xf3454f(0x216,0x228,0x249,0x27a)];[_0xf3454f(0x21a,0x29b,0x265,0x22a)];constructor(_0x30f38d={}){const _0x190b4f={_0x284a1f:0x46,_0x52e10f:0xc4,_0x5307eb:0x132,_0xad44fa:0x189,_0x3616f2:0x103,_0x149178:0x1f4,_0xfdb616:0x1b6,_0x55f2bf:0x8d,_0x1e096b:0xf4,_0x507379:0x6,_0x3b4c9d:0x66,_0x4486fd:0x17b,_0x27a53f:0x190,_0x5778c0:0x1f8,_0x12d919:0x3d,_0x120971:0x98,_0x2b31f1:0x16d,_0x1aca5c:0x242,_0x1912c2:0x20c,_0x5419ad:0x20c,_0x5add70:0x26b,_0x73ef6f:0x170,_0x69d060:0x173,_0x3fb441:0x184,_0x371e4b:0x1a8,_0x5ed60e:0x195,_0x38783c:0x78,_0x524ca7:0x50,_0x19e339:0x78,_0x43ea4f:0x4e,_0x5cf180:0xb4,_0x3f3a2b:0x258,_0x401de3:0x187,_0xed4ad3:0x20c,_0x38e27f:0x1e6},_0x59db5f={_0x3a6398:0x27c,_0x5af79a:0x5b},_0x4d350a={_0x3bbacc:0x33},_0x3093ed={_0x2f5bd6:0x1da,_0x42e420:0x15c,_0x26f53c:0x31e,_0x3cf2fd:0x34c};this[_0x51042d(-0x4b,-0x82,-0x46,-0x8)]=_0x30f38d[_0x51042d(-0x6c,0x5,-_0x190b4f._0x284a1f,-_0x190b4f._0x52e10f)]??createSessionId(),this[_0x466ae4(_0x190b4f._0x5307eb,0x95,0x111,_0x190b4f._0xad44fa)]=0x0,this['_systemPrompt']=_0x30f38d[_0x466ae4(_0x190b4f._0x3616f2,_0x190b4f._0x149178,0x17b,_0x190b4f._0xfdb616)]??'',this[_0x466ae4(0x1cc,0x173,0x175,0x18d)]=(_0x30f38d[_0x51042d(0x26,-0x14,0x2,_0x190b4f._0x55f2bf)]??[])['map'](normalizeMessage),this[_0x51042d(-_0x190b4f._0x1e096b,_0x190b4f._0x507379,-_0x190b4f._0x3b4c9d,-0xa)]=createDefaultMessage(_0x30f38d[_0x466ae4(0x1ac,_0x190b4f._0x4486fd,0x1bf,_0x190b4f._0x27a53f)]),this[_0x466ae4(0x1d2,0x267,_0x190b4f._0x5778c0,0x175)]=createAgentMetrics({'getContextWindowLimit':_0x30f38d[_0x51042d(0x3e,-_0x190b4f._0x12d919,-0x38,-_0x190b4f._0x120971)]});const _0x4bea33=_0x30f38d[_0x466ae4(_0x190b4f._0x2b31f1,_0x190b4f._0x1aca5c,0x1d2,0x1ad)],_0x5056a4=async(_0x440882,_0x1a8c81)=>{const _0x51a5e4={_0x112588:0xec,_0x5576bf:0x32d,_0x1bbda2:0xdb},_0xf074c8={_0x2f503e:0x103};this[_0x491420(-0x178,-_0x3093ed._0x2f5bd6,-0x130,-_0x3093ed._0x42e420)][_0x844dd1(_0x3093ed._0x26f53c,0x34a,_0x3093ed._0x3cf2fd,0x334)](_0x440882);function _0x491420(_0x4393f8,_0x46c92e,_0x419a5c,_0x11bce1){return _0x51042d(_0x4393f8-0xe3,_0x419a5c,_0x4393f8- -0x1fd,_0x11bce1-_0xf074c8._0x2f503e);}function _0x844dd1(_0x32c1f7,_0x1296b4,_0x301f55,_0x2b4e81){return _0x51042d(_0x32c1f7-_0x51a5e4._0x112588,_0x1296b4,_0x32c1f7-_0x51a5e4._0x5576bf,_0x2b4e81-_0x51a5e4._0x1bbda2);}await _0x4bea33?.(_0x440882,_0x1a8c81);};function _0x466ae4(_0x376743,_0x1733b5,_0x57f46a,_0x309620){return _0x3f402d(_0x376743-0x171,_0x57f46a- -_0x4d350a._0x3bbacc,_0x57f46a-0x19a,_0x376743);}const _0x2c5f5c=createRegistry(_0x30f38d);function _0x51042d(_0x483e0d,_0x2b46b2,_0x3cf87c,_0x30ebbf){return _0xf3454f(_0x3cf87c- -_0x59db5f._0x3a6398,_0x2b46b2-0xc5,_0x2b46b2,_0x30ebbf-_0x59db5f._0x5af79a);}const _0x126de1=createInternalToolRuntime(_0x30f38d['tools']??[],{'onEvent':_0x5056a4,'onToolCall':_0x30f38d['onToolCall'],'registry':_0x2c5f5c,'beginProgramTrace':_0x30f38d[_0x466ae4(_0x190b4f._0x1912c2,0x1c0,_0x190b4f._0x5419ad,_0x190b4f._0x5add70)]});this[_0x466ae4(0x161,_0x190b4f._0x73ef6f,0x1c6,0x191)]={'registry':_0x2c5f5c,'chatModel':resolveChatModel(_0x30f38d),'toolRuntime':_0x126de1,'askUser':_0x30f38d[_0x466ae4(_0x190b4f._0x69d060,_0x190b4f._0x3fb441,_0x190b4f._0x371e4b,_0x190b4f._0x5ed60e)],'onEvent':_0x5056a4,'sessionDir':_0x30f38d[_0x51042d(-_0x190b4f._0x38783c,-0x2e,-_0x190b4f._0x524ca7,-_0x190b4f._0x19e339)],'outputFormat':_0x30f38d['outputFormat'],'executionScope':normalizeExecutionScope2(_0x30f38d[_0x51042d(-0x4d,-_0x190b4f._0x43ea4f,0x32,_0x190b4f._0x5cf180)]),'beginProgramTrace':_0x30f38d[_0x466ae4(_0x190b4f._0x3f3a2b,_0x190b4f._0x401de3,_0x190b4f._0xed4ad3,_0x190b4f._0x38e27f)]};}get['systemPrompt'](){const _0x171db6={_0xe141b1:0x1ea,_0x99e6f5:0x1c1,_0x5f51a3:0x226},_0x245ebb={_0x2d6c7b:0xf2};function _0x2bff7e(_0x2a3854,_0x323e9c,_0x13335e,_0x5dd7c2){return _0x3f402d(_0x2a3854-0xdd,_0x5dd7c2-0x2e,_0x13335e-_0x245ebb._0x2d6c7b,_0x13335e);}return this[_0x2bff7e(_0x171db6._0xe141b1,_0x171db6._0x99e6f5,0x1c5,_0x171db6._0x5f51a3)];}[_0x3f402d(0x1b2,0x163,0x19d,0x1b4)](_0x55e04a=[]){const _0x400e34={_0x1feed7:0x27f,_0x5cdc1a:0x202,_0x406816:0x1f1,_0x26a60d:0x229},_0x2e045b={_0x1f4352:0x175,_0x1c01df:0x8e,_0x2d2a83:0x1de},_0x5def51={_0x947926:0x1b,_0x2c7a17:0x207,_0x4f49e3:0x1b};function _0x57a666(_0x49d4d2,_0x42bb48,_0xe517c1,_0x5ee62f){return _0x3f402d(_0x49d4d2-_0x5def51._0x947926,_0x5ee62f-_0x5def51._0x2c7a17,_0xe517c1-_0x5def51._0x4f49e3,_0x42bb48);}function _0x4fd381(_0x5368fd,_0x3e7612,_0x5a2930,_0x1139d9){return _0x3f402d(_0x5368fd-_0x2e045b._0x1f4352,_0x5a2930-_0x2e045b._0x1c01df,_0x5a2930-_0x2e045b._0x2d2a83,_0x3e7612);}this['deps'][_0x4fd381(0x1ba,_0x400e34._0x1feed7,_0x400e34._0x5cdc1a,0x28e)][_0x4fd381(0x205,0x199,_0x400e34._0x406816,_0x400e34._0x26a60d)](_0x55e04a);}[_0x3f402d(0x208,0x201,0x231,0x214)](){const _0x59eca0={_0x868e4a:0x167,_0x14e09d:0x1bb,_0x1448f6:0x190},_0x317094={_0x99a994:0xbb};function _0x12072e(_0x297396,_0x56483e,_0x5951bd,_0x3cdf2f){return _0xf3454f(_0x5951bd- -0x48a,_0x56483e-0x183,_0x3cdf2f,_0x3cdf2f-_0x317094._0x99a994);}return this[_0x12072e(-0x1e9,-_0x59eca0._0x868e4a,-_0x59eca0._0x14e09d,-_0x59eca0._0x1448f6)]['toolRuntime']['listToolSchemas']();}['setSystemPrompt'](_0x1987fc,_0x51b05c={}){const _0xcbc77d={_0x4b2333:0x4a3,_0x4be3fa:0x46b,_0x25e9df:0x4b0,_0xf0d906:0x43a,_0x32aee1:0x3c3,_0x1728c0:0x3ef,_0x839a37:0x39d,_0x17eeca:0x3c1},_0x22808a={_0x121cef:0x135};function _0x1bb6aa(_0x34b147,_0x4fd033,_0x226024,_0x3146cd){return _0xf3454f(_0x4fd033-0x145,_0x4fd033-0x39,_0x226024,_0x3146cd-0x36);}this[_0x4cf28d(_0xcbc77d._0x4b2333,_0xcbc77d._0x4be3fa,0x524,0x52e)]=_0x1987fc;function _0x4cf28d(_0x4669cd,_0x4a734f,_0x56db46,_0x10d3ac){return _0x3f402d(_0x4669cd-_0x22808a._0x121cef,_0x4669cd-0x2ab,_0x56db46-0x11a,_0x56db46);}_0x51b05c[_0x4cf28d(0x43c,_0xcbc77d._0x25e9df,_0xcbc77d._0xf0d906,0x3b6)]===!![]&&(this[_0x1bb6aa(0x374,_0xcbc77d._0x32aee1,0x391,0x3a6)]=[],this[_0x4cf28d(_0xcbc77d._0x1728c0,_0xcbc77d._0x839a37,_0xcbc77d._0x17eeca,0x417)]=0x0);}['setSessionId'](_0x7ad4d9){const _0x24d4e7={_0x3a9368:0x1d8,_0x82ea59:0x194,_0x8ce4cf:0x172},_0x533f7a={_0x1443bb:0x1cb};function _0x301eb2(_0x288e97,_0x424eae,_0x345c8a,_0x1ddeab){return _0x3f402d(_0x288e97-_0x533f7a._0x1443bb,_0x288e97- -0x338,_0x345c8a-0x90,_0x1ddeab);}this[_0x301eb2(-_0x24d4e7._0x3a9368,-0x1dd,-_0x24d4e7._0x82ea59,-_0x24d4e7._0x8ce4cf)]=_0x7ad4d9;}[_0xf3454f(0x26f,0x243,0x20b,0x21d)](_0x23d629){const _0x3116c8={_0x31ec98:0x22f,_0x551a6d:0x17b,_0x4c93aa:0x15e},_0x365812={_0x27bb76:0x5d,_0x510a4a:0x68};function _0x81715e(_0x4a705e,_0x470f44,_0x43222d,_0x2e3207){return _0x3f402d(_0x4a705e-_0x365812._0x27bb76,_0x470f44-_0x365812._0x510a4a,_0x43222d-0x165,_0x4a705e);}this['deps'][_0x81715e(_0x3116c8._0x31ec98,0x1a2,_0x3116c8._0x551a6d,_0x3116c8._0x4c93aa)]=_0x23d629;}async[_0xf3454f(0x269,0x2d7,0x2ea,0x204)](_0x12a5ac=this[_0x3f402d(0x141,0x140,0x1cd,0xf8)],_0x549c8a={}){const _0x200857={_0x52454e:0x181,_0x58e8a7:0x18c,_0x676c7c:0x1b8,_0x42ee14:0x148,_0x24c30e:0x1cb,_0x2b8754:0x1bc,_0x32da83:0x244,_0xba5fc:0x1aa,_0x5be22b:0x21c,_0x16dd46:0x267,_0x3f398a:0x243,_0x234289:0x23c,_0x1804be:0x250,_0x50f1a0:0x225,_0x20ae57:0x222,_0x2916be:0x23d,_0x3a9992:0x19d,_0x427abc:0x280,_0x385133:0x207,_0x419f2f:0x24a,_0x2c5bdc:0x2ac,_0x2944a2:0x280,_0x1cc69d:0x237,_0x168668:0x1b6,_0x49b902:0x1eb,_0x26a030:0x2a4,_0x4b3dd6:0x27f,_0x40f9ef:0x1ff,_0x38bbe3:0x280,_0x27bbf0:0x1d0,_0x2a0da2:0x1ed,_0x2fa543:0x29a,_0x591858:0x224},_0x1093ca={_0x40502d:0x83,_0x1851f:0xd8,_0x24199d:0xdf},_0x525f66={_0x33ac33:0xde};if(!_0x12a5ac)throw new Error(_0x4d7bca(0x1b3,0x1a4,0x1c3,_0x200857._0x52454e));this[_0x4d7bca(0x214,_0x200857._0x58e8a7,_0x200857._0x676c7c,_0x200857._0x42ee14)]+=0x1;function _0x4d7bca(_0x379d1f,_0x1f9ef2,_0x226751,_0x54a78f){return _0xf3454f(_0x226751- -0x62,_0x1f9ef2-_0x525f66._0x33ac33,_0x54a78f,_0x54a78f-0x56);}const _0x2d95e5=_0x549c8a[_0x1d9e97(0x1f1,0x20a,_0x200857._0x24c30e,0x245)];function _0x1d9e97(_0x1f7262,_0x48247b,_0x5f1cb5,_0x1079aa){return _0x3f402d(_0x1f7262-_0x1093ca._0x40502d,_0x1079aa-_0x1093ca._0x1851f,_0x5f1cb5-_0x1093ca._0x24199d,_0x1f7262);}try{const _0x488569=await runTurn({'sessionId':this[_0x1d9e97(0x1bd,_0x200857._0x2b8754,0x257,0x238)],'turnId':createTurnId(this[_0x1d9e97(_0x200857._0x32da83,0x194,_0x200857._0xba5fc,_0x200857._0x5be22b)]),'streaming':_0x549c8a[_0x4d7bca(0x2e0,0x219,_0x200857._0x16dd46,0x23a)],'signal':_0x549c8a[_0x1d9e97(0x271,_0x200857._0x3f398a,_0x200857._0x234289,_0x200857._0x1804be)],'system':this[_0x4d7bca(_0x200857._0x50f1a0,0x1f8,_0x200857._0x20ae57,0x28b)],'messages':this[_0x4d7bca(_0x200857._0x2916be,0x217,0x21c,_0x200857._0x3a9992)],'message':normalizeUserInput(_0x12a5ac),..._0x549c8a['transientInput']===!![]?{'transientInput':!![]}:{},..._0x549c8a[_0x4d7bca(0x2ed,0x2d9,_0x200857._0x427abc,0x1f4)]===void 0x0?{}:{'submission':_0x549c8a['submission']},..._0x2d95e5?{'drainSteering':async()=>(await _0x2d95e5())[_0x4d7bca(0x207,0x1d0,0x1cf,0x22a)](_0x5bb8e4=>isTaggedSteeringInput(_0x5bb8e4)?{'input':normalizeUserInput(_0x5bb8e4[_0x1d9e97(0x31e,0x2bb,0x2d5,0x2a8)]),'submission':_0x5bb8e4['submission']}:normalizeUserInput(_0x5bb8e4))}:{}},this[_0x4d7bca(0x231,_0x200857._0x385133,0x26d,0x2b9)]);return this[_0x1d9e97(_0x200857._0x419f2f,0x300,_0x200857._0x2c5bdc,_0x200857._0x2944a2)]=_0x488569[_0x4d7bca(_0x200857._0x1cc69d,_0x200857._0x168668,_0x200857._0x49b902,0x269)][_0x1d9e97(_0x200857._0x26a030,_0x200857._0x4b3dd6,_0x200857._0x40f9ef,_0x200857._0x2944a2)]['map'](normalizeMessage),_0x488569;}catch(_0x181f2d){if(_0x181f2d instanceof TurnFailedError){this[_0x1d9e97(0x27e,0x2c6,0x2a7,_0x200857._0x38bbe3)]=synthesizeMissingToolResults(_0x181f2d[_0x4d7bca(0x1db,_0x200857._0x27bbf0,0x1eb,_0x200857._0x2a0da2)]['messages'][_0x1d9e97(_0x200857._0x2fa543,0x1ca,0x253,0x233)](normalizeMessage));throw _0x181f2d[_0x4d7bca(0x264,0x1e6,_0x200857._0x591858,0x251)];}throw _0x181f2d;}}};function _0x3519(_0x459b0d,_0x37464c){_0x459b0d=_0x459b0d-0x14f;const _0xbcd2b1=_0xbcd2();let _0x351933=_0xbcd2b1[_0x459b0d];if(_0x3519['AWQouX']===undefined){var _0x2a86f5=function(_0x119680){const _0xd690f3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d5e55='',_0x30af11='';for(let _0x58ced2=0x0,_0x1619d2,_0x3e7240,_0x405bf3=0x0;_0x3e7240=_0x119680['charAt'](_0x405bf3++);~_0x3e7240&&(_0x1619d2=_0x58ced2%0x4?_0x1619d2*0x40+_0x3e7240:_0x3e7240,_0x58ced2++%0x4)?_0x1d5e55+=String['fromCharCode'](0xff&_0x1619d2>>(-0x2*_0x58ced2&0x6)):0x0){_0x3e7240=_0xd690f3['indexOf'](_0x3e7240);}for(let _0x5b7bf6=0x0,_0x3ce7dd=_0x1d5e55['length'];_0x5b7bf6<_0x3ce7dd;_0x5b7bf6++){_0x30af11+='%'+('00'+_0x1d5e55['charCodeAt'](_0x5b7bf6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x30af11);};_0x3519['KKqIIJ']=_0x2a86f5,_0x3519['oHytgn']={},_0x3519['AWQouX']=!![];}const _0x1c8d4c=_0xbcd2b1[0x0],_0x208a9a=_0x459b0d+_0x1c8d4c,_0xa8ec46=_0x3519['oHytgn'][_0x208a9a];return!_0xa8ec46?(_0x351933=_0x3519['KKqIIJ'](_0x351933),_0x3519['oHytgn'][_0x208a9a]=_0x351933):_0x351933=_0xa8ec46,_0x351933;}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};