@nuvin/agent-core 0.0.0-rc.14 → 0.0.0-rc.15

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(_0x402538,_0x5093c9){const _0x15d65e={_0x3e6b89:0x8f,_0x55b93a:0x6a,_0x167446:0x19,_0x2cab4a:0x68,_0x444a03:0x8f,_0x523a02:0x42,_0x408c18:0xbc,_0x7479cd:0xa9,_0x1107a5:0xb2,_0x36e1d6:0xa3,_0x42a8be:0x73,_0x504fc9:0xb3,_0x29773b:0xb4,_0x5c2d2b:0xbf,_0xe473c7:0x3ee,_0x102cf0:0x411,_0x1141b1:0x3b,_0x83288b:0x36,_0x3841d5:0x60,_0x39f6c4:0x449,_0x118ef6:0x43b},_0x5a189c={_0x4fb51b:0x2c4},_0x5f2c73=_0x402538();function _0x1a47e9(_0x48a45d,_0xeddb8c,_0x46fe0e,_0x4d8e98){return _0x4978(_0x4d8e98- -0xdf,_0x48a45d);}function _0x4918df(_0x5dc652,_0x1c8359,_0x1ef515,_0x120ed8){return _0x4978(_0x1c8359-_0x5a189c._0x4fb51b,_0x1ef515);}while(!![]){try{const _0x692729=parseInt(_0x1a47e9(_0x15d65e._0x3e6b89,0x42,_0x15d65e._0x55b93a,0x59))/0x1+-parseInt(_0x1a47e9(0x3a,0x5,0x88,0x50))/0x2*(parseInt(_0x1a47e9(_0x15d65e._0x167446,_0x15d65e._0x2cab4a,_0x15d65e._0x444a03,_0x15d65e._0x523a02))/0x3)+parseInt(_0x1a47e9(0x9f,0xb5,_0x15d65e._0x408c18,_0x15d65e._0x7479cd))/0x4+-parseInt(_0x1a47e9(0x5e,_0x15d65e._0x1107a5,_0x15d65e._0x36e1d6,_0x15d65e._0x42a8be))/0x5*(-parseInt(_0x1a47e9(_0x15d65e._0x504fc9,0x81,_0x15d65e._0x29773b,_0x15d65e._0x5c2d2b))/0x6)+-parseInt(_0x4918df(_0x15d65e._0xe473c7,0x425,_0x15d65e._0x102cf0,0x3f3))/0x7*(-parseInt(_0x1a47e9(_0x15d65e._0x1141b1,_0x15d65e._0x83288b,0x1d,_0x15d65e._0x3841d5))/0x8)+-parseInt(_0x4918df(0x4af,0x47d,0x4cf,0x4ac))/0x9+parseInt(_0x4918df(_0x15d65e._0x39f6c4,0x3fd,_0x15d65e._0x118ef6,0x3cd))/0xa;if(_0x692729===_0x5093c9)break;else _0x5f2c73['push'](_0x5f2c73['shift']());}catch(_0x462a43){_0x5f2c73['push'](_0x5f2c73['shift']());}}}(_0x362e,0xc13de));import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-SEP4YYY3.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x256849){return typeof _0x256849==='object'&&_0x256849!==null&&!Array['isArray'](_0x256849);}function _0x4978(_0x461fc5,_0x706a88){_0x461fc5=_0x461fc5-0x119;const _0x362e31=_0x362e();let _0x49780f=_0x362e31[_0x461fc5];if(_0x4978['vZWnOb']===undefined){var _0x3d6f9c=function(_0x5462d4){const _0x10a73d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x256849='',_0xecc54c='';for(let _0x29fd32=0x0,_0x157b89,_0x38d21f,_0x16b471=0x0;_0x38d21f=_0x5462d4['charAt'](_0x16b471++);~_0x38d21f&&(_0x157b89=_0x29fd32%0x4?_0x157b89*0x40+_0x38d21f:_0x38d21f,_0x29fd32++%0x4)?_0x256849+=String['fromCharCode'](0xff&_0x157b89>>(-0x2*_0x29fd32&0x6)):0x0){_0x38d21f=_0x10a73d['indexOf'](_0x38d21f);}for(let _0x1b8ac3=0x0,_0x5d5511=_0x256849['length'];_0x1b8ac3<_0x5d5511;_0x1b8ac3++){_0xecc54c+='%'+('00'+_0x256849['charCodeAt'](_0x1b8ac3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xecc54c);};_0x4978['atFzHI']=_0x3d6f9c,_0x4978['YxLSjt']={},_0x4978['vZWnOb']=!![];}const _0x5a8b2b=_0x362e31[0x0],_0x14ca14=_0x461fc5+_0x5a8b2b,_0x328a71=_0x4978['YxLSjt'][_0x14ca14];return!_0x328a71?(_0x49780f=_0x4978['atFzHI'](_0x49780f),_0x4978['YxLSjt'][_0x14ca14]=_0x49780f):_0x49780f=_0x328a71,_0x49780f;}function isToolOutputEnvelope(_0xecc54c){const _0x4fdc36={_0xa777bb:0x18d,_0x41f26d:0x133,_0x1ae201:0xde,_0x176794:0xcf,_0x25b040:0x164,_0x43d514:0x1c2,_0x52d270:0x188},_0x4a7ad0={_0x2e385c:0x1c5},_0x31b5b2={_0x13ddbc:0x2e4};function _0xe65427(_0x89b2dc,_0x3ddbcd,_0x46edb7,_0x15a1b9){return _0x4978(_0x46edb7- -_0x31b5b2._0x13ddbc,_0x3ddbcd);}if(typeof _0xecc54c!==_0xe65427(-0xe7,-_0x4fdc36._0xa777bb,-0x139,-_0x4fdc36._0x41f26d)||_0xecc54c===null||Array[_0x14b007(-0x3a,-0xe,-0x1e,0x13)](_0xecc54c))return![];if(typeof _0xecc54c['output']!==_0x14b007(-0x6d,-0xa3,-_0x4fdc36._0x1ae201,-_0x4fdc36._0x176794))return![];function _0x14b007(_0xb47279,_0x790b2a,_0x721b2f,_0x50591f){return _0x4978(_0x790b2a- -_0x4a7ad0._0x2e385c,_0xb47279);}const _0x29fd32=_0xecc54c[_0xe65427(-_0x4fdc36._0x25b040,-_0x4fdc36._0x43d514,-_0x4fdc36._0x52d270,-0x15f)];return _0x29fd32===void 0x0||isJsonObject(_0x29fd32);}function validateAgainstSchema(_0x157b89,_0x38d21f,_0x16b471){const _0x4abb66={_0x5699ae:0xa8,_0x283ff8:0x7c,_0x82f51c:0x7a,_0x351bd6:0x1c0,_0x232fc4:0x2a,_0x3bfaac:0x9,_0xace4ca:0x48,_0x21b973:0x5e,_0x2efef5:0x1fa,_0x3943a1:0x58,_0x1806b7:0x33,_0x5a0331:0x6,_0x4f62ba:0x38,_0x11f048:0x1c8,_0x53cb8d:0x1b6,_0x4778f0:0x16d,_0x3635db:0x197,_0x110cff:0x18a,_0x362d02:0x16e,_0x580940:0x146,_0x77ba45:0x171,_0x3fcfff:0x39,_0x217f5d:0x44,_0x2b8259:0x190,_0x261446:0x135,_0x427ded:0x14a,_0x2dc9e7:0x3a,_0x27df7f:0x8a,_0x5f73c8:0x53,_0x7c6a98:0x3e,_0x4e0480:0x140,_0x1bb7e3:0x16c,_0x20e95c:0x167,_0x140040:0x1e4,_0x364ca7:0x1cf,_0x32a428:0x1aa},_0x4c10b9={_0x542bb2:0x545,_0x520642:0x54a,_0xa56436:0x529,_0x30e558:0x574},_0x594a97={_0x1f8966:0x1d8,_0x1442cc:0x4a2},_0x4597c4={_0x2e920e:0x2f7};function _0x135764(_0x283e57,_0x5b118c,_0x5500e0,_0xab8113){return _0x4978(_0x5500e0- -0x12c,_0xab8113);}function _0x4eb04f(_0x9e0df5,_0x3d0744,_0x4453e6,_0x3a4277){return _0x4978(_0x3d0744- -_0x4597c4._0x2e920e,_0x4453e6);}switch(_0x16b471[_0x135764(_0x4abb66._0x5699ae,_0x4abb66._0x283ff8,_0x4abb66._0x82f51c,0x54)]){case _0x4eb04f(-0x1f2,-0x1d5,-_0x4abb66._0x351bd6,-0x1cb):if(typeof _0x38d21f!==_0x135764(-_0x4abb66._0x232fc4,-_0x4abb66._0x3bfaac,-0xa,-_0x4abb66._0xace4ca))throw new Error(_0x135764(0x2e,0x4e,_0x4abb66._0x21b973,0x6c)+_0x157b89+_0x4eb04f(-0x195,-0x1b5,-_0x4abb66._0x2efef5,-0x208));return;case _0x135764(-_0x4abb66._0x3943a1,_0x4abb66._0x1806b7,-_0x4abb66._0x5a0331,_0x4abb66._0x4f62ba):if(typeof _0x38d21f!==_0x4eb04f(-_0x4abb66._0x11f048,-0x1d1,-0x1a4,-0x1c0))throw new Error(_0x4eb04f(-_0x4abb66._0x53cb8d,-_0x4abb66._0x4778f0,-_0x4abb66._0x3635db,-0x11c)+_0x157b89+_0x4eb04f(-_0x4abb66._0x110cff,-_0x4abb66._0x362d02,-_0x4abb66._0x580940,-_0x4abb66._0x77ba45));return;case'boolean':if(typeof _0x38d21f!==_0x135764(-_0x4abb66._0x3fcfff,_0x4abb66._0x217f5d,-0xd,-0x48))throw new Error(_0x4eb04f(-_0x4abb66._0x2b8259,-0x16d,-0x119,-0x1bc)+_0x157b89+_0x4eb04f(-_0x4abb66._0x261446,-0x15e,-0x1a4,-_0x4abb66._0x427ded));return;case _0x135764(_0x4abb66._0x2dc9e7,_0x4abb66._0x27df7f,_0x4abb66._0x5f73c8,_0x4abb66._0x7c6a98):if(!Array[_0x4eb04f(-0x160,-_0x4abb66._0x4e0480,-0x151,-0x118)](_0x38d21f))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x157b89+_0x4eb04f(-_0x4abb66._0x1bb7e3,-_0x4abb66._0x20e95c,-0x18e,-0x16b));_0x38d21f[_0x135764(0xc7,0x8b,0x8f,0xaa)]((_0x1b8ac3,_0x5d5511)=>{function _0x59d6a5(_0x1d3843,_0x3faf29,_0x380468,_0x38ccae){return _0x135764(_0x1d3843-0x188,_0x3faf29-_0x594a97._0x1f8966,_0x380468-_0x594a97._0x1442cc,_0x1d3843);}validateAgainstSchema(_0x157b89+'['+_0x5d5511+']',_0x1b8ac3,_0x16b471[_0x59d6a5(_0x4c10b9._0x542bb2,_0x4c10b9._0x520642,_0x4c10b9._0xa56436,_0x4c10b9._0x30e558)]);});return;case'object':if(!isJsonObject(_0x38d21f))throw new Error(_0x135764(0x32,0x80,0x5e,0x49)+_0x157b89+':\x20expected\x20object');for(const _0x5555e6 of _0x16b471[_0x4eb04f(-_0x4abb66._0x53cb8d,-0x1bd,-0x16b,-_0x4abb66._0x4778f0)]??[]){if(!(_0x5555e6 in _0x38d21f))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x157b89+':\x20missing\x20required\x20field\x20\x22'+_0x5555e6+'\x22');}for(const [_0x55920d,_0x53943c]of Object[_0x4eb04f(-_0x4abb66._0x140040,-_0x4abb66._0x364ca7,-0x187,-_0x4abb66._0x32a428)](_0x16b471['properties'])){_0x55920d in _0x38d21f&&validateAgainstSchema(_0x157b89+'.'+_0x55920d,_0x38d21f[_0x55920d],_0x53943c);}}}function normalizeToolOutputValue(_0x290632){const _0x12a4b5={_0x56ea99:0x5f,_0x13cbbd:0xf,_0x352f13:0x4c,_0x24a8e:0x247,_0x4e84b5:0x23b,_0x2ef129:0x62,_0x41d96a:0x7,_0x57d533:0x270,_0x2586ef:0x1f2,_0x528d78:0x234,_0x1dac1d:0x238,_0xfb01cc:0x252,_0x55585a:0x201,_0x22dcde:0x64,_0x2ccb66:0x58,_0x5798a9:0x53,_0x53ffcc:0x294,_0x34f8a6:0x29a,_0x58e2d3:0x26b,_0x4e6354:0x71},_0x67c986={_0x211167:0xdf},_0x49976f={_0x1ab81e:0x158};if(isToolOutputEnvelope(_0x290632))return{'output':_0x290632[_0xbf1ba4(_0x12a4b5._0x56ea99,_0x12a4b5._0x13cbbd,0x8a,_0x12a4b5._0x352f13)],'structured':_0x290632[_0x148432(_0x12a4b5._0x24a8e,0x21a,_0x12a4b5._0x4e84b5,0x25d)]??{'value':_0x290632[_0xbf1ba4(_0x12a4b5._0x2ef129,_0x12a4b5._0x41d96a,0x25,0x4c)]},..._0x290632['content']!==void 0x0?{'content':_0x290632[_0x148432(_0x12a4b5._0x57d533,_0x12a4b5._0x2586ef,_0x12a4b5._0x528d78,_0x12a4b5._0x1dac1d)]}:{}};if(typeof _0x290632===_0x148432(_0x12a4b5._0xfb01cc,0x248,_0x12a4b5._0x55585a,0x1ba))return{'output':_0x290632,'structured':{'value':_0x290632}};if(typeof _0x290632===_0xbf1ba4(_0x12a4b5._0x22dcde,_0x12a4b5._0x2ccb66,0x95,_0x12a4b5._0x5798a9)&&_0x290632!==null&&!Array[_0x148432(_0x12a4b5._0x53ffcc,_0x12a4b5._0x34f8a6,0x296,_0x12a4b5._0x58e2d3)](_0x290632))return{'output':JSON[_0xbf1ba4(0x8a,0x27,_0x12a4b5._0x4e6354,0x56)](_0x290632,null,0x2),'structured':_0x290632};function _0xbf1ba4(_0x26d7c7,_0x2afa13,_0x4c7de7,_0x3c4115){return _0x4978(_0x3c4115- -_0x49976f._0x1ab81e,_0x26d7c7);}function _0x148432(_0x2b1158,_0x190108,_0x3fdd11,_0x1eedbe){return _0x4978(_0x3fdd11-_0x67c986._0x211167,_0x2b1158);}return{'output':JSON['stringify'](_0x290632,null,0x2),'structured':{'value':_0x290632}};}function createToolOutput(_0x2c5466,_0x2442e9={'value':_0x2c5466},_0x103c26){return{'output':_0x2c5466,'structured':_0x2442e9,..._0x103c26!==void 0x0?{'content':_0x103c26}:{}};}var ToolExecutionError=class extends Error{[_0x2cb4b9(0x33,0x22,0x1e,0x49)];constructor(_0x24c76b,_0x349a52={}){const _0x1d6e1d={_0x5b59ba:0x4d5,_0x24be5a:0x519,_0x3754b4:0x4ca,_0xd35e67:0x469,_0xf17686:0x48f,_0x268383:0x427},_0x47c36a={_0x38a702:0x1e3};super(_0x24c76b),this[_0x1b1ef5(0x4cc,_0x1d6e1d._0x5b59ba,_0x1d6e1d._0x24be5a,_0x1d6e1d._0x3754b4)]='ToolExecutionError';function _0x1b1ef5(_0x1a4fba,_0x2feab5,_0x828bdb,_0x1fa160){return _0x2cb4b9(_0x828bdb,_0x2feab5-_0x47c36a._0x38a702,_0x1a4fba-0x44b,_0x1fa160-0x99);}function _0x353b4e(_0xe96eb0,_0x57adbd,_0xfa07f5,_0x3bdcaf){return _0x2cb4b9(_0xe96eb0,_0x57adbd-0x163,_0x3bdcaf-0xb8,_0x3bdcaf-0x32);}this[_0x1b1ef5(_0x1d6e1d._0xd35e67,0x49c,_0x1d6e1d._0xf17686,_0x1d6e1d._0x268383)]=_0x349a52;}};function defineTool(_0x4043da){return _0x4043da;}var ToolRegistry=class{[_0xc4fa22(0x476,0x41a,0x461,0x471)]=new Map();constructor(_0x50500f=[]){const _0xb9a0ca={_0x150a27:0x20a},_0x1e619f={_0x2a98b0:0x13};function _0x4f842a(_0x20064f,_0x30951f,_0x21be0f,_0x352a6b){return _0xc4fa22(_0x21be0f,_0x30951f-_0x1e619f._0x2a98b0,_0x352a6b- -0x237,_0x352a6b-0x18);}for(const _0x4a4ad3 of _0x50500f){this[_0x4f842a(0x22b,_0xb9a0ca._0x150a27,0x243,0x22c)](_0x4a4ad3);}}[_0xc4fa22(0x420,0x462,0x463,0x48a)](_0x55710b){const _0x2e40bf={_0x65ffdd:0x166,_0x110c16:0x148},_0x25a155={_0x3c1d05:0x1b9,_0x3b08db:0x550},_0x32a1b0={_0x42154d:0x183};function _0x478154(_0x149f21,_0x5ac6a0,_0x1e778e,_0x392c8b){return _0x2cb4b9(_0x5ac6a0,_0x5ac6a0-0x132,_0x392c8b-_0x32a1b0._0x42154d,_0x392c8b-0x164);}function _0x4250df(_0x3af6e2,_0x5a6a99,_0x4124a2,_0x3cb2f4){return _0xc4fa22(_0x3af6e2,_0x5a6a99-_0x25a155._0x3c1d05,_0x5a6a99- -_0x25a155._0x3b08db,_0x3cb2f4-0xdb);}this[_0x478154(0x18b,0x17b,0x187,0x1be)][_0x4250df(-_0x2e40bf._0x65ffdd,-_0x2e40bf._0x110c16,-0x101,-0xfb)](_0x55710b['name'],_0x55710b);}[_0xc4fa22(0x470,0x45e,0x432,0x3fc)](_0x5a4d8e){const _0x2d0a46={_0x520271:0x2c,_0x81ff03:0xb1,_0x56e6c2:0x6b,_0x43c8be:0x5c},_0x462b1a={_0x5cf5c9:0x13,_0x5e05ea:0x159},_0x183831={_0x1a944a:0x12,_0x22b529:0x1df};function _0x255007(_0x3647b5,_0x25771a,_0x589119,_0x34be31){return _0x2cb4b9(_0x3647b5,_0x25771a-0xd9,_0x25771a-_0x183831._0x1a944a,_0x34be31-_0x183831._0x22b529);}function _0x1ed563(_0x4653cc,_0x4dd4af,_0x110f5b,_0x223a51){return _0x2cb4b9(_0x223a51,_0x4dd4af-_0x462b1a._0x5cf5c9,_0x110f5b-0x2e,_0x223a51-_0x462b1a._0x5e05ea);}return this[_0x1ed563(0x17,_0x2d0a46._0x520271,0x69,_0x2d0a46._0x81ff03)][_0x1ed563(_0x2d0a46._0x56e6c2,0x7,0x3a,_0x2d0a46._0x43c8be)](_0x5a4d8e);}[_0x2cb4b9(-0x1a,0x28,0x18,0x6a)](){const _0x1cb74b={_0x1f689c:0x3cb,_0x1fb01e:0x3f5},_0x6f0274={_0x235358:0x77},_0x72221c={_0x219705:0x15c,_0x4c3453:0x177};function _0x5bf590(_0x2699ef,_0x27757b,_0x4fd80d,_0x3e1bab){return _0x2cb4b9(_0x3e1bab,_0x27757b-_0x72221c._0x219705,_0x4fd80d- -0x204,_0x3e1bab-_0x72221c._0x4c3453);}function _0x152bc9(_0x1cc265,_0x2f4508,_0x51e481,_0x3ee187){return _0xc4fa22(_0x1cc265,_0x2f4508-0xac,_0x3ee187- -_0x6f0274._0x235358,_0x3ee187-0xd);}return[...this[_0x152bc9(0x3ec,0x3ab,_0x1cb74b._0x1f689c,0x3ea)][_0x152bc9(0x3b6,0x3de,0x3de,_0x1cb74b._0x1fb01e)]()];}[_0x2cb4b9(0x7e,0xc6,0x82,0x77)](){const _0xa98985={_0x3df280:0x39,_0x4349b3:0x6,_0x654ffe:0x3c,_0x2f8393:0x114,_0x11859c:0x150},_0x24a32e={_0x3f5d10:0xdf,_0x44450a:0x130},_0x46cf0c={_0x2a2df7:0x9a},_0x21ed73={_0x314c6a:0x69,_0xacb23f:0x19c};function _0x5ab2c8(_0x31ef43,_0x10477d,_0x45a415,_0x37f0ca){return _0xc4fa22(_0x31ef43,_0x10477d-_0x21ed73._0x314c6a,_0x10477d- -0x444,_0x37f0ca-_0x21ed73._0xacb23f);}function _0x3650ea(_0x2a3ee3,_0x1820bc,_0x4ed948,_0x140ef0){return _0xc4fa22(_0x4ed948,_0x1820bc-0xe0,_0x140ef0- -0x592,_0x140ef0-_0x46cf0c._0x2a2df7);}return this[_0x5ab2c8(-_0xa98985._0x3df280,-_0xa98985._0x4349b3,_0xa98985._0x654ffe,0x42)]()[_0x3650ea(-0x15f,-0x19f,-_0xa98985._0x2f8393,-_0xa98985._0x11859c)](_0x16a1dc=>{const _0x4a2082={_0x94d67a:0x11c,_0x17ae49:0x1ca};function _0x566693(_0x2301aa,_0xf527e1,_0x4389fb,_0x2f6169){return _0x3650ea(_0x2301aa-_0x4a2082._0x94d67a,_0xf527e1-0x60,_0x2301aa,_0xf527e1-_0x4a2082._0x17ae49);}return{'name':_0x16a1dc[_0x566693(0xbc,_0x24a32e._0x3f5d10,0x112,_0x24a32e._0x44450a)],'description':_0x16a1dc['description'],'input_schema':_0x16a1dc['inputSchema']};});}};function validateToolInput(_0x57c157,_0x2c36cf){const _0x5c1452={_0x1519d9:0x424,_0x5d104d:0x3ce},_0x46be6e={_0x5275b0:0x1f0,_0x153c93:0x39a};function _0x25992a(_0x2b0cde,_0x541fc0,_0x19adca,_0x524b0a){return _0x2cb4b9(_0x2b0cde,_0x541fc0-_0x46be6e._0x5275b0,_0x19adca-_0x46be6e._0x153c93,_0x524b0a-0x125);}return validateAgainstSchema(_0x25992a(0x3f4,_0x5c1452._0x1519d9,0x3f6,_0x5c1452._0x5d104d),_0x57c157,_0x2c36cf),_0x57c157;}function deriveFinalToolOutput(_0x38b176){const _0x23d991={_0x1d52c1:0x48c,_0x326359:0x486,_0x457107:0x30,_0x6cea31:0xe,_0x5e7e81:0x468,_0x583114:0x442,_0x380724:0x44a,_0x2bf0a0:0x488,_0x1616b7:0x79,_0x117d45:0x50d,_0x3c4415:0x517,_0x2592ae:0x4aa,_0x2d5770:0x4e0,_0x4ed428:0x3f,_0x5a931a:0x5b},_0x518026={_0x19aed0:0x156,_0x459d2e:0x471};function _0x55d96b(_0x141568,_0x500052,_0x3cefa2,_0x614317){return _0x2cb4b9(_0x141568,_0x500052-_0x518026._0x19aed0,_0x614317-_0x518026._0x459d2e,_0x614317-0x1a2);}if(_0x38b176['length']===0x0)return{'output':'','structured':{}};if(_0x38b176[_0x55d96b(_0x23d991._0x1d52c1,0x438,0x492,_0x23d991._0x326359)]===0x1)return{'output':_0x38b176[0x0][_0x51a5d0(_0x23d991._0x457107,-0x2f,_0x23d991._0x6cea31,-0x5)],'structured':_0x38b176[0x0][_0x55d96b(_0x23d991._0x5e7e81,0x4e1,0x4d2,0x48f)],..._0x38b176[0x0][_0x55d96b(0x4b9,_0x23d991._0x583114,_0x23d991._0x380724,_0x23d991._0x2bf0a0)]!==void 0x0?{'content':_0x38b176[0x0][_0x51a5d0(-0x3a,-0x82,-0x41,-_0x23d991._0x1616b7)]}:{}};function _0x51a5d0(_0x2edf3d,_0x441f81,_0x35c429,_0x38ce2b){return _0x2cb4b9(_0x441f81,_0x441f81-0x22,_0x35c429- -0x58,_0x38ce2b-0x9d);}const _0x555588=_0x38b176[_0x55d96b(_0x23d991._0x117d45,_0x23d991._0x3c4415,_0x23d991._0x2592ae,_0x23d991._0x2d5770)](_0x23f994=>_0x23f994[_0x51a5d0(-0x1d,-0xf,-0x41,-0x6b)]!==void 0x0);return{'output':_0x38b176[_0x51a5d0(-0x4b,-_0x23d991._0x4ed428,-0x3c,-_0x23d991._0x5a931a)](_0x56469d=>_0x56469d[_0x55d96b(0x4ce,0x4fc,0x4d5,0x4d7)])['join'](''),'structured':{'chunks':_0x38b176['map'](_0x33b020=>_0x33b020['structured'])},..._0x555588['length']===0x1?{'content':_0x555588[0x0]['content']}:{}};}function _0xc4fa22(_0x2623c5,_0x73c40d,_0x218b82,_0x120dd9){const _0x1099c2={_0x1410ce:0x2e8};return _0x4978(_0x218b82-_0x1099c2._0x1410ce,_0x2623c5);}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x2ed34f,_0x255fe1,_0x329ada,_0x5078ef=[]){const _0x6dcdcb={_0x2c6031:0xd4},_0x3fcd20={_0xc39298:0x38,_0x5bfb08:0x120,_0x1bf77a:0xc1};function _0x2ac10f(_0xdc496b,_0x9bc53b,_0x4b44ee,_0x33e69d){return _0x2cb4b9(_0xdc496b,_0x9bc53b-_0x3fcd20._0xc39298,_0x33e69d- -_0x3fcd20._0x5bfb08,_0x33e69d-_0x3fcd20._0x1bf77a);}return{'callId':_0x2ed34f['id'],'toolName':_0x2ed34f[_0x2ac10f(-_0x6dcdcb._0x2c6031,-0xd2,-0x94,-0x9f)],'status':'error','output':_0x255fe1,'structured':_0x329ada,'chunks':_0x5078ef,'meta':createToolMeta()};}function createRejectedToolResult(_0x5cc0bd,_0x41b098){const _0x355c74={_0x43e0ee:0x2be,_0x27541b:0x287,_0x18686b:0x75,_0x2a2078:0x89,_0x5cb5a1:0x5b,_0x1341e7:0x8c,_0x10eb98:0x18,_0x268ec4:0x14,_0x32b75a:0x19,_0x2bf24d:0xb,_0x53d8ac:0xad,_0x4aa2dd:0x2b2,_0x4e193a:0x294};function _0x568b84(_0x211980,_0x533e2a,_0x47b5ca,_0x497001){return _0x2cb4b9(_0x497001,_0x533e2a-0x114,_0x47b5ca-0x2d0,_0x497001-0x106);}const _0x3f2514=_0x41b098?.[_0x568b84(0x2ec,0x310,_0x355c74._0x43e0ee,_0x355c74._0x27541b)]()[_0x5e99d1(-_0x355c74._0x18686b,-0x26,-0x58,-_0x355c74._0x2a2078)]?_0x41b098:_0x5e99d1(-0x5f,-0x44,-_0x355c74._0x5cb5a1,-_0x355c74._0x1341e7)+_0x5cc0bd[_0x5e99d1(-_0x355c74._0x10eb98,0x14,_0x355c74._0x268ec4,_0x355c74._0x32b75a)];function _0x5e99d1(_0x2ee137,_0x18eae2,_0x2d68a2,_0x37bf15){return _0xc4fa22(_0x2ee137,_0x18eae2-0x61,_0x2d68a2- -0x493,_0x37bf15-0x1f2);}return createErrorToolResult(_0x5cc0bd,_0x3f2514,{'error':_0x5e99d1(-0xb,-0x2d,-_0x355c74._0x2bf24d,0x49),..._0x41b098?.[_0x5e99d1(-_0x355c74._0x53d8ac,-0xa8,-0x7f,-0xce)]()[_0x568b84(_0x355c74._0x4aa2dd,_0x355c74._0x4e193a,0x2e5,0x298)]?{'reason':_0x41b098}:{}});}function createAbortedToolResult(_0x5d42a7,_0x4f6e1a,_0x4362e3=[]){const _0x236721=toAbortError(_0x4f6e1a);return createErrorToolResult(_0x5d42a7,_0x236721['message'],{'error':_0x236721['message'],'aborted':!![]},_0x4362e3);}function createSuccessToolResult(_0x208f2e,_0xe8265d,_0x649195){const _0xa31e5c={_0x1685a5:0x143,_0x5b52c8:0x160,_0x1e4982:0x17f,_0x30b4fc:0x14c,_0x19c791:0x15f,_0x4e0733:0x192,_0x1531d4:0x1aa,_0x1429c1:0x1c8},_0x51e1e9={_0x1e4924:0x44c},_0x7715cf={_0x57edb6:0xe0};function _0x226f88(_0x39a244,_0xe7a62a,_0x203932,_0x2e267c){return _0xc4fa22(_0xe7a62a,_0xe7a62a-0x1c7,_0x39a244- -0x5cf,_0x2e267c-_0x7715cf._0x57edb6);}function _0x1443ad(_0x3caa5d,_0x4a0346,_0x186b08,_0x152248){return _0xc4fa22(_0x4a0346,_0x4a0346-0x179,_0x186b08- -_0x51e1e9._0x1e4924,_0x152248-0x13b);}return{'callId':_0x208f2e['id'],'toolName':_0x208f2e['name'],'status':'ok','output':_0xe8265d[_0x226f88(-_0xa31e5c._0x1685a5,-0xfa,-_0xa31e5c._0x5b52c8,-_0xa31e5c._0x1e4982)],'structured':_0xe8265d[_0x226f88(-0x18b,-0x191,-_0xa31e5c._0x30b4fc,-0x1df)],..._0xe8265d[_0x226f88(-0x192,-0x1ca,-0x150,-_0xa31e5c._0x19c791)]!==void 0x0?{'content':_0xe8265d[_0x226f88(-_0xa31e5c._0x4e0733,-0x1a9,-_0xa31e5c._0x1531d4,-_0xa31e5c._0x1429c1)]}:{},'chunks':_0x649195,'meta':createToolMeta()};}function createUnknownToolResult(_0xe30945){const _0x2a765e={_0x23a8ea:0x4ce,_0x13f950:0x4b1,_0xa66927:0x4d3,_0x56e64b:0x574,_0x2e8cd8:0x57c,_0x127f47:0x56d,_0x5188a2:0x537,_0x1a4fd1:0x586,_0x407482:0x531},_0x1ba3b6={_0x1a6c9e:0x614,_0x394de7:0x1ae},_0x57f710={_0x1fc603:0x58};function _0x5a397b(_0x3d9063,_0xa15de7,_0x4dbf67,_0x52095f){return _0x2cb4b9(_0x4dbf67,_0xa15de7-_0x57f710._0x1fc603,_0x3d9063-0x4f3,_0x52095f-0x14b);}function _0x471f0a(_0x44e918,_0x200ccc,_0x42cf77,_0x397079){return _0xc4fa22(_0x397079,_0x200ccc-0x114,_0x42cf77- -_0x1ba3b6._0x1a6c9e,_0x397079-_0x1ba3b6._0x394de7);}return createErrorToolResult(_0xe30945,_0x5a397b(_0x2a765e._0x23a8ea,_0x2a765e._0x13f950,0x4ba,_0x2a765e._0xa66927)+_0xe30945[_0x5a397b(_0x2a765e._0x56e64b,_0x2a765e._0x2e8cd8,_0x2a765e._0x127f47,0x5c0)],{'error':_0x5a397b(_0x2a765e._0x5188a2,0x554,_0x2a765e._0x1a4fd1,_0x2a765e._0x407482)});}function isDispatchDecision(_0x450734){const _0x30e379={_0x699433:0x14a,_0x144b90:0x16d,_0x30edc1:0x1ca,_0x5be3fc:0x19c,_0x31b007:0x1b6,_0xd47551:0x1c7,_0x2de2ed:0x1bd,_0x697ad0:0x192},_0x1deb4b={_0x42d9f0:0x1ea,_0xf987d0:0x1d1};function _0x51491d(_0x19be9a,_0x5e4b14,_0x23c8be,_0x4a7c8f){return _0x2cb4b9(_0x5e4b14,_0x5e4b14-_0x1deb4b._0x42d9f0,_0x4a7c8f- -0x1da,_0x4a7c8f-_0x1deb4b._0xf987d0);}if(typeof _0x450734!==_0x51491d(-0x19a,-_0x30e379._0x699433,-0x12c,-_0x30e379._0x144b90)||_0x450734===null)return![];function _0x4b3243(_0x504203,_0x5345da,_0x20db63,_0x2beb64){return _0xc4fa22(_0x2beb64,_0x5345da-0x11f,_0x5345da- -0x29a,_0x2beb64-0x4a);}return _0x450734['action']===_0x4b3243(0x1b2,_0x30e379._0x30edc1,_0x30e379._0x5be3fc,0x219)||_0x450734[_0x51491d(-_0x30e379._0x31b007,-0x1ac,-0x1fa,-_0x30e379._0xd47551)]===_0x51491d(-0x175,-_0x30e379._0x2de2ed,-0x14c,-_0x30e379._0x697ad0);}function normalizeExecutionError(_0x3b76af){const _0x42e046={_0x1b9c6c:0xd1,_0x58aec4:0x101,_0x2aebe0:0xfc,_0x18e20c:0x11b,_0xf75d2:0x90,_0x46f9fa:0x190,_0x4e45bc:0x169},_0x3fcc41={_0x260036:0x1cb},_0x24df75={_0x563f19:0x19d};function _0x118951(_0x17f5f3,_0xde8194,_0x3a61f9,_0x333455){return _0xc4fa22(_0xde8194,_0xde8194-0x27,_0x17f5f3- -0x2b0,_0x333455-_0x24df75._0x563f19);}if(_0x3b76af instanceof ToolExecutionError)return{'errorMessage':_0x3b76af['message'],'structured':{'error':_0x3b76af[_0xfec736(0x9c,0x122,_0x42e046._0x1b9c6c,0x8e)],..._0x3b76af[_0xfec736(_0x42e046._0x58aec4,0xad,0xd5,0x11f)]}};function _0xfec736(_0x3e614a,_0xfb618f,_0x17c527,_0x9021fb){return _0x2cb4b9(_0x3e614a,_0xfb618f-_0x3fcc41._0x260036,_0x17c527-0xb7,_0x9021fb-0x116);}if(_0x3b76af instanceof Error)return{'errorMessage':_0x3b76af[_0xfec736(_0x42e046._0x2aebe0,_0x42e046._0x18e20c,0xd1,_0x42e046._0xf75d2)],'structured':{'error':_0x3b76af[_0x118951(_0x42e046._0x46f9fa,0x19a,_0x42e046._0x4e45bc,0x193)]}};const _0x170e1a=String(_0x3b76af);return{'errorMessage':_0x170e1a,'structured':{'error':_0x170e1a}};}async function emitEvent(_0x5997dc,_0x5bc323,_0xd4d442){await _0x5997dc?.(_0x5bc323,_0xd4d442);}async function resolveDispatchDecision(_0x27df97,_0x222680,_0x12f3c2){const _0x31c65c={_0x2095f2:0x380,_0x1b37a3:0x331,_0x2fa3fa:0x378,_0x1ecaf8:0x4fb,_0x17dff1:0x4f0,_0x5d2a4d:0x323,_0x1e3619:0x385,_0x2d61dd:0x3a3,_0x5ac293:0x3cf},_0x506956={_0x261f27:0x10d,_0x5f08b3:0x17b,_0x2d764f:0x156,_0x56e695:0x190,_0x26984e:0x1c2,_0x160772:0x5b,_0x17cd56:0x85,_0x365a45:0x4d,_0x1d6d3a:0x6,_0x37f198:0x6e},_0xdeb8a2={_0x2e9a07:0x2a4,_0x10ae34:0x2a6,_0x55a527:0x1ae,_0x265a0e:0x1eb,_0x55889a:0x1a9,_0xf7d720:0x326,_0x57f5de:0x2fd},_0x4993a0={_0x28b424:0x6e,_0x2b1b4c:0xfc},_0x1d08a2={_0x46b1ac:0x187},_0x182fcd={_0x32d994:0x4a};if(!_0x27df97)return{'action':_0x6b27d6(0x3d0,0x3cf,0x3f0,0x3e4)};function _0xcad17b(_0x366796,_0x287792,_0x52e531,_0x1231a0){return _0xc4fa22(_0x52e531,_0x287792-_0x182fcd._0x32d994,_0x287792-0x82,_0x1231a0-0x1ad);}const _0x12be15=Promise['resolve']()['then'](()=>_0x27df97(_0x222680,_0x12f3c2));function _0x6b27d6(_0x521f53,_0x2e113f,_0x481fa1,_0x37aa6b){return _0x2cb4b9(_0x37aa6b,_0x2e113f-_0x1d08a2._0x46b1ac,_0x2e113f-0x387,_0x37aa6b-0xa7);}if(!_0x12f3c2[_0x6b27d6(0x368,_0x31c65c._0x2095f2,_0x31c65c._0x1b37a3,_0x31c65c._0x2fa3fa)]){const _0x2effe6=await _0x12be15;return isDispatchDecision(_0x2effe6)?_0x2effe6:{'action':_0xcad17b(_0x31c65c._0x1ecaf8,_0x31c65c._0x17dff1,0x4e3,0x50d)};}const _0x3dde43=new Promise((_0x470c4e,_0x33ba41)=>{function _0x51149c(_0x23effc,_0xa955c6,_0x47663d,_0x425c93){return _0xcad17b(_0x23effc-_0x4993a0._0x28b424,_0x425c93- -0x663,_0x47663d,_0x425c93-_0x4993a0._0x2b1b4c);}const _0xba5ae4=()=>{const _0x15e378={_0x162669:0x15a};function _0x5be6d4(_0x206276,_0x4f795c,_0x50f036,_0x1242e9){return _0x4978(_0x4f795c-_0x15e378._0x162669,_0x206276);}_0x12f3c2[_0x5be6d4(_0xdeb8a2._0x2e9a07,0x291,_0xdeb8a2._0x10ae34,0x283)]?.[_0x2e2f77(_0xdeb8a2._0x55a527,_0xdeb8a2._0x265a0e,0x1f4,_0xdeb8a2._0x55889a)]('abort',_0xba5ae4);function _0x2e2f77(_0x43e5ad,_0x4b6728,_0x590341,_0x51ecec){return _0x4978(_0x43e5ad- -0x1,_0x590341);}_0x33ba41(toAbortError(_0x12f3c2['signal']?.[_0x5be6d4(_0xdeb8a2._0xf7d720,_0xdeb8a2._0x57f5de,0x2df,0x340)]));};if(_0x12f3c2['signal']?.['aborted']){_0x33ba41(toAbortError(_0x12f3c2['signal'][_0x51149c(-_0x506956._0x261f27,-_0x506956._0x5f08b3,-0x18b,-_0x506956._0x2d764f)]));return;}function _0x14af4d(_0x56fc8e,_0x45a994,_0x803d12,_0x4c9886){return _0x6b27d6(_0x56fc8e-0x160,_0x56fc8e- -0x450,_0x803d12-0xa2,_0x803d12);}_0x12f3c2[_0x51149c(-_0x506956._0x56e695,-0x19f,-0x19c,-_0x506956._0x26984e)]?.[_0x14af4d(-0xa7,-_0x506956._0x160772,-_0x506956._0x17cd56,-0x88)](_0x14af4d(-_0x506956._0x365a45,_0x506956._0x1d6d3a,-0x4a,-_0x506956._0x37f198),_0xba5ae4,{'once':!![]});}),_0x1866d8=await Promise[_0x6b27d6(_0x31c65c._0x5d2a4d,0x374,_0x31c65c._0x1e3619,0x395)]([_0x12be15,_0x3dde43]);return isDispatchDecision(_0x1866d8)?_0x1866d8:{'action':_0x6b27d6(_0x31c65c._0x2d61dd,_0x31c65c._0x5ac293,0x39e,0x3c9)};}async function executeToolCall(_0x564ba1,_0xb60e9,_0x248e6a,_0x2c33c8,_0x460775){const _0x6cface={_0x3ff848:0x365,_0x5a13a8:0x326,_0x4a4001:0x355,_0x5ae0de:0x180,_0x5d5eb2:0x1a8,_0x293d1b:0x1da,_0x272a00:0x1a5,_0x5b9a3b:0x1ed,_0x3b3752:0x227,_0xd70507:0x190,_0x481633:0x1aa,_0x13ffc4:0x2f7,_0x1b1b9a:0x311,_0x4755b9:0x169,_0x28197f:0x18a,_0x3f431a:0x1d6,_0x5c3e64:0x21d,_0x393300:0x1e0,_0xdce547:0x306,_0x4c3f6c:0x375,_0x3fcd22:0x326,_0x3a075f:0x186,_0x3eba57:0x1c7,_0x4dd295:0x337,_0x15219c:0x326,_0x3970dd:0x1f6,_0x4b8d77:0x1cd,_0x30847b:0x374,_0x14a2d7:0x2ef,_0x3a1fdd:0x2f4,_0x25d4dc:0x36c,_0x4133c0:0x370,_0x5555e4:0x15e,_0x1a5bdb:0x150,_0x217ce8:0x366,_0x270a53:0x3ab,_0xf98c7f:0x195,_0xec3bd9:0x189,_0x2ea574:0x1b1,_0x2ac143:0x195,_0x22b7ff:0x1a9,_0xb7f478:0x393,_0x14c7f2:0x3c7,_0x8d7b19:0x3ca},_0x3d241c={_0x24841f:0x3e6},_0x3d5201={_0x12bacb:0x1b6},_0x56d752={_0x558010:0x1d5,_0xf26d49:0x32d};function _0x764dbc(_0x468f7f,_0x52bd1d,_0x348eb2,_0xc5f0b8){return _0x2cb4b9(_0x468f7f,_0x52bd1d-_0x56d752._0x558010,_0xc5f0b8-_0x56d752._0xf26d49,_0xc5f0b8-0xc3);}const _0x2c95e7={..._0x248e6a,'toolCallId':_0xb60e9['id']};throwIfAborted(_0x2c95e7['signal']);const _0x317e25=await resolveDispatchDecision(_0x2c33c8,_0xb60e9,_0x2c95e7);throwIfAborted(_0x2c95e7[_0x764dbc(_0x6cface._0x3ff848,0x338,0x2e9,_0x6cface._0x5a13a8)]);if(_0x317e25['action']===_0x764dbc(_0x6cface._0x4a4001,0x342,0x383,0x36b)){const _0xcbba4b=createRejectedToolResult(_0xb60e9,_0x317e25[_0x5d2f58(-0x144,-_0x6cface._0x5ae0de,-0x181,-0x186)]);return await emitEvent(_0x460775,{'type':'tool_rejected','toolCall':_0xb60e9,'result':_0xcbba4b},_0x2c95e7),_0xcbba4b;}const _0x58e1f0=_0x564ba1[_0x5d2f58(-_0x6cface._0x5d5eb2,-0x227,-_0x6cface._0x293d1b,-0x20a)](_0xb60e9['name']);if(!_0x58e1f0){const _0x43a065=createUnknownToolResult(_0xb60e9);return await emitEvent(_0x460775,{'type':'tool_completed','toolCall':_0xb60e9,'result':_0x43a065},_0x2c95e7),_0x43a065;}throwIfAborted(_0x2c95e7[_0x5d2f58(-0x23b,-_0x6cface._0x272a00,-_0x6cface._0x5b9a3b,-_0x6cface._0x3b3752)]),await emitEvent(_0x460775,{'type':_0x5d2f58(-_0x6cface._0xd70507,-0x19a,-_0x6cface._0x481633,-0x1c0),'toolCall':_0xb60e9},_0x2c95e7);function _0x5d2f58(_0x2cf323,_0x834914,_0x34f3f4,_0x261cc4){return _0xc4fa22(_0x2cf323,_0x834914-_0x3d5201._0x12bacb,_0x34f3f4- -0x60c,_0x261cc4-0x170);}try{throwIfAborted(_0x2c95e7[_0x764dbc(0x333,_0x6cface._0x13ffc4,_0x6cface._0x1b1b9a,0x326)]);const _0x558906=validateToolInput(_0xb60e9[_0x5d2f58(-0x13a,-_0x6cface._0x4755b9,-_0x6cface._0x28197f,-0x163)],_0x58e1f0[_0x5d2f58(-_0x6cface._0x3f431a,-_0x6cface._0x5c3e64,-_0x6cface._0x393300,-0x1a9)]),_0x5f02bb=await _0x58e1f0[_0x764dbc(_0x6cface._0xdce547,0x304,0x35e,0x330)](_0x558906,_0x2c95e7),_0x3c65e1=[],_0x2406aa=addAbortListener(_0x2c95e7['signal'],()=>{const _0x98df81={_0x11258e:0x183};function _0x52f071(_0x58f812,_0x33717b,_0x3b8017,_0x1d6e91){return _0x5d2f58(_0x58f812,_0x33717b-0x135,_0x1d6e91-0x592,_0x1d6e91-_0x98df81._0x11258e);}void _0x5f02bb['return'](void 0x0)[_0x52f071(0x3c8,0x3a6,0x3cc,_0x3d241c._0x24841f)](()=>{});});try{throwIfAborted(_0x2c95e7[_0x764dbc(_0x6cface._0x4c3f6c,0x30c,0x2e6,_0x6cface._0x3fcd22)]);let _0x5616de=await _0x5f02bb['next']();while(!_0x5616de[_0x5d2f58(-_0x6cface._0x3a075f,-0x20e,-_0x6cface._0x3eba57,-0x1e6)]){throwIfAborted(_0x2c95e7[_0x764dbc(0x315,0x353,_0x6cface._0x4dd295,_0x6cface._0x15219c)]);const _0x5cd989=normalizeToolOutputValue(_0x5616de[_0x5d2f58(-0x19a,-0x11a,-0x168,-0x17d)]);_0x3c65e1[_0x5d2f58(-0x25a,-_0x6cface._0x3970dd,-0x209,-_0x6cface._0x4b8d77)](_0x5cd989),await emitEvent(_0x460775,{'type':_0x764dbc(0x348,0x312,_0x6cface._0x30847b,0x343),'toolCall':_0xb60e9,'chunk':_0x5cd989},_0x2c95e7),throwIfAborted(_0x2c95e7[_0x764dbc(_0x6cface._0x14a2d7,_0x6cface._0x3a1fdd,0x2fd,0x326)]),_0x5616de=await _0x5f02bb[_0x764dbc(_0x6cface._0x25d4dc,0x350,0x3bb,_0x6cface._0x4133c0)]();}throwIfAborted(_0x2c95e7[_0x5d2f58(-0x1f1,-0x203,-0x1ed,-0x214)]);const _0x1a9e71=_0x5616de[_0x5d2f58(-_0x6cface._0x5555e4,-_0x6cface._0x1a5bdb,-0x168,-0x124)]===void 0x0?deriveFinalToolOutput(_0x3c65e1):normalizeToolOutputValue(_0x5616de[_0x764dbc(_0x6cface._0x217ce8,0x396,0x3ff,_0x6cface._0x270a53)]),_0x291d43=createSuccessToolResult(_0xb60e9,_0x1a9e71,_0x3c65e1);return await emitEvent(_0x460775,{'type':_0x5d2f58(-0x1a7,-0x168,-_0x6cface._0xf98c7f,-_0x6cface._0xec3bd9),'toolCall':_0xb60e9,'result':_0x291d43},_0x2c95e7),_0x291d43;}catch(_0x33ea77){if(isAbortError(_0x33ea77)){const _0x230c12=createAbortedToolResult(_0xb60e9,_0x33ea77,_0x3c65e1);return await emitEvent(_0x460775,{'type':_0x764dbc(0x388,0x375,0x354,0x37e),'toolCall':_0xb60e9,'result':_0x230c12},_0x2c95e7),_0x230c12;}const {errorMessage:_0x35ad9b,structured:_0x4ef7ca}=normalizeExecutionError(_0x33ea77),_0x113f34=createErrorToolResult(_0xb60e9,_0x35ad9b,_0x4ef7ca,_0x3c65e1);return await emitEvent(_0x460775,{'type':_0x5d2f58(-_0x6cface._0x2ea574,-0x1a8,-_0x6cface._0x2ac143,-0x1e7),'toolCall':_0xb60e9,'result':_0x113f34},_0x2c95e7),_0x113f34;}finally{_0x2406aa();}}catch(_0xae89){if(isAbortError(_0xae89)){const _0x372549=createAbortedToolResult(_0xb60e9,_0xae89);return await emitEvent(_0x460775,{'type':_0x5d2f58(-0x147,-_0x6cface._0x22b7ff,-0x195,-0x172),'toolCall':_0xb60e9,'result':_0x372549},_0x2c95e7),_0x372549;}const {errorMessage:_0x15052e,structured:_0x34d561}=normalizeExecutionError(_0xae89),_0x447b10=createErrorToolResult(_0xb60e9,_0x15052e,_0x34d561);return await emitEvent(_0x460775,{'type':_0x764dbc(_0x6cface._0xb7f478,_0x6cface._0x14c7f2,_0x6cface._0x8d7b19,0x37e),'toolCall':_0xb60e9,'result':_0x447b10},_0x2c95e7),_0x447b10;}}function createInternalToolRuntime(_0x4d9c1f=[],_0x32fb3d={}){const _0x4b512b={_0x256cda:0x1df,_0x9a1294:0x1da,_0x4c727e:0x201},_0x1338ed={_0x475aee:0x225},_0x43f8f0={_0x1b37f0:0x61,_0x206174:0x33,_0x18e980:0x10,_0x460c6f:0x17};let _0x24c671=new ToolRegistry(_0x4d9c1f);return{'listToolSchemas'(){const _0x2dcc54={_0x36ab04:0x1d0};function _0x5f848d(_0x169f36,_0x4f777f,_0x1ec1a7,_0x4fec41){return _0x4978(_0x1ec1a7- -_0x2dcc54._0x36ab04,_0x4f777f);}return _0x24c671[_0x5f848d(-_0x43f8f0._0x1b37f0,_0x43f8f0._0x206174,-_0x43f8f0._0x18e980,-_0x43f8f0._0x460c6f)]();},'setTools'(_0x193ea5){_0x24c671=new ToolRegistry(_0x193ea5);},async 'executeCalls'(_0x5d3c08,_0x1af978){const _0x1b7201={_0x14e406:0x51};return await Promise['all'](_0x5d3c08['map'](async _0xf15e0c=>{function _0x23d457(_0x45c19c,_0xef8d61,_0x1bcf59,_0xe06aa1){return _0x4978(_0x1bcf59-_0x1b7201._0x14e406,_0xe06aa1);}return await executeToolCall(_0x24c671,_0xf15e0c,_0x1af978,_0x32fb3d[_0x23d457(_0x1338ed._0x475aee,0x217,0x1e7,0x213)],_0x32fb3d['onEvent']);}));},async 'execute'(_0xa503b0,_0x3d6bb7){const [_0x39d6da]=await this[_0x300217(-_0x4b512b._0x256cda,-0x221,-_0x4b512b._0x9a1294,-_0x4b512b._0x4c727e)]([_0xa503b0],_0x3d6bb7);function _0x300217(_0x207b96,_0x3c3984,_0x5bd9a5,_0xedee2){return _0x4978(_0x207b96- -0x34f,_0x3c3984);}return _0x39d6da;}};}function getOrderedObserverExtensions(_0x157264,_0xe956de){const _0x55511b={_0x4d8dc6:0x74,_0x27260c:0x39},_0x5e91fc={_0x15ee48:0x25a,_0x5900b9:0x264,_0x1b4327:0x265,_0x2aa648:0x2c4,_0x56099c:0x2c3,_0x243767:0x2cf,_0x3e86b8:0x2d5,_0x4dbd64:0x31b},_0x53a7a1={_0x45b035:0x259},_0x48cefd={_0x13b1e2:0x10e,_0x10b3ae:0xe1,_0x3c31df:0x2a6},_0x377e4b={_0x459e04:0x66},_0x1d3b20={_0x18c0de:0x128};function _0x14def8(_0x342f9a,_0x591a7b,_0xc5658c,_0x421011){return _0x2cb4b9(_0x591a7b,_0x591a7b-_0x1d3b20._0x18c0de,_0x421011- -0x36,_0x421011-0x142);}function _0x3181c5(_0x5b0615,_0x410ed1,_0xf6c53c,_0x1a71e7){return _0xc4fa22(_0x410ed1,_0x410ed1-0xbf,_0xf6c53c- -0x348,_0x1a71e7-_0x377e4b._0x459e04);}return _0x157264[_0x14def8(0x56,0x78,_0x55511b._0x4d8dc6,_0x55511b._0x27260c)](_0x247872=>{function _0xb1d24e(_0x56baa5,_0x47d1c0,_0x5837c1,_0x41b45c){return _0x14def8(_0x56baa5-_0x48cefd._0x13b1e2,_0x41b45c,_0x5837c1-_0x48cefd._0x10b3ae,_0x56baa5-_0x48cefd._0x3c31df);}function _0x5c0446(_0x147a94,_0x568f64,_0x4624f5,_0x35292b){return _0x14def8(_0x147a94-0x187,_0x4624f5,_0x4624f5-0x166,_0x147a94-_0x53a7a1._0x45b035);}return _0x247872[_0x5c0446(0x28e,0x2b0,_0x5e91fc._0x15ee48,_0x5e91fc._0x5900b9)]!==![]&&_0x247872[_0xb1d24e(0x29a,_0x5e91fc._0x1b4327,0x254,_0x5e91fc._0x2aa648)]===_0xe956de&&_0x247872[_0xb1d24e(0x2b0,0x2dd,0x2da,_0x5e91fc._0x56099c)]===_0xb1d24e(_0x5e91fc._0x243767,0x28a,_0x5e91fc._0x3e86b8,_0x5e91fc._0x4dbd64);})['sort']((_0x3611de,_0x17c0ee)=>_0x3611de[_0x14def8(0x71,0x5,-0x1d,0x27)]-_0x17c0ee['order']);}function _0x2cb4b9(_0x4f725e,_0x5e9398,_0x3f3164,_0xc54931){return _0x4978(_0x3f3164- -0x13e,_0x4f725e);}function getOrderedTransformerExtensions(_0x394e97,_0x464aa9){const _0x520997={_0xe3a044:0x1d1,_0x472f02:0x1dd,_0x3c6b0a:0x1ce,_0x13390b:0x1c0},_0x59882b={_0x25003f:0x1cd,_0x5b4c08:0x1b4,_0x4e9796:0x1ba,_0x40bb69:0x1d0,_0x286306:0x208,_0x7285ba:0x154,_0xa77de1:0x10a},_0x1e54b8={_0x43fd5d:0x15e,_0x5a9064:0x9b},_0x321738={_0x316474:0x185,_0x872cde:0x120};function _0x2412e3(_0x31f280,_0x568b16,_0x32ee0e,_0x2c5ce1){return _0xc4fa22(_0x32ee0e,_0x568b16-0x3,_0x568b16-0x1f,_0x2c5ce1-0x4b);}function _0x2d1ee7(_0x1dab20,_0x44cb21,_0x4e51c5,_0x39308d){return _0x2cb4b9(_0x1dab20,_0x44cb21-0xf3,_0x4e51c5-_0x321738._0x316474,_0x39308d-_0x321738._0x872cde);}return _0x394e97[_0x2d1ee7(_0x520997._0xe3a044,0x1fe,0x1f4,0x1bd)](_0x4b1f2e=>{function _0x4b9475(_0xf8955e,_0x2751c9,_0x1d94f4,_0x5dfff0){return _0x2d1ee7(_0x1d94f4,_0x2751c9-0x121,_0x5dfff0- -0x29f,_0x5dfff0-0x182);}function _0x297da9(_0x520c26,_0xe4c0fd,_0xbb302d,_0x19f9b0){return _0x2d1ee7(_0xbb302d,_0xe4c0fd-_0x1e54b8._0x43fd5d,_0xe4c0fd-0xb,_0x19f9b0-_0x1e54b8._0x5a9064);}return _0x4b1f2e[_0x297da9(0x1b6,0x1fb,_0x59882b._0x25003f,_0x59882b._0x5b4c08)]!==![]&&_0x4b1f2e[_0x297da9(0x169,_0x59882b._0x4e9796,0x1e1,0x17d)]===_0x464aa9&&_0x4b1f2e[_0x297da9(0x21a,_0x59882b._0x40bb69,_0x59882b._0x286306,0x1df)]===_0x4b9475(-0x120,-_0x59882b._0x7285ba,-0x128,-_0x59882b._0xa77de1);})[_0x2d1ee7(0x1a9,_0x520997._0x472f02,_0x520997._0x3c6b0a,_0x520997._0x13390b)]((_0x2aa368,_0x589ed6)=>_0x2aa368[_0x2d1ee7(0x1dd,0x1c6,0x1e2,0x1f3)]-_0x589ed6[_0x2d1ee7(0x225,0x1f8,0x1e2,0x1c8)]);}function createExtensionRegistry(){const _0x45875d={_0x274d02:0xae,_0x124dee:0xe4,_0x369330:0x130,_0x395a36:0xaf},_0x131cc1={_0x271d19:0x119},_0x3d1539={_0x529c0f:0x19a,_0x5f29de:0x1ab},_0x406564=[];return{'register'(_0x314340){const _0x7109a7={_0x1425e2:0x7f};function _0x59476e(_0x12453d,_0x15e0b1,_0x1e7987,_0x3141a4){return _0x4978(_0x15e0b1-_0x7109a7._0x1425e2,_0x1e7987);}_0x406564[_0x59476e(0x153,_0x3d1539._0x529c0f,0x1dc,_0x3d1539._0x5f29de)](_0x314340);},async 'runTransformers'(_0x27b5b0,_0x4948e2,_0x5113d7){let _0x1d7751=_0x4948e2;function _0x336c58(_0x4aaa73,_0x3d6769,_0x39b194,_0x2d4a7b){return _0x4978(_0x3d6769- -0x28b,_0x4aaa73);}for(const _0x1a1ff7 of getOrderedTransformerExtensions(_0x406564,_0x27b5b0)){_0x1d7751=await _0x1a1ff7[_0x336c58(-_0x131cc1._0x271d19,-0x105,-0xed,-0xdd)](_0x1d7751,_0x5113d7);}return _0x1d7751;},async 'runObservers'(_0x49053e,_0x288583,_0x5b8ba3){function _0x57b6f9(_0x5700a2,_0x5458b9,_0x23622d,_0x2ac495){return _0x4978(_0x5458b9- -0x26a,_0x23622d);}for(const _0x429c8b of getOrderedObserverExtensions(_0x406564,_0x49053e)){await _0x429c8b[_0x57b6f9(-_0x45875d._0x274d02,-_0x45875d._0x124dee,-_0x45875d._0x369330,-_0x45875d._0x395a36)](_0x288583,_0x5b8ba3);}}};}function createEmptySnapshot(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'toolCallCount':0x0,'totalModelTimeMs':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function createAgentMetrics(_0x47371b={}){const _0x193fec={_0x5a7350:0x232,_0x59e3d9:0x221},_0x277acc={_0x2b8cfa:0xaa,_0x3c0c2f:0x130,_0x3b7b14:0x138,_0x248d3d:0x147,_0x2dc889:0x7,_0xae1bce:0x3f,_0x5dc0bd:0x8a,_0x52aee8:0x5b,_0x181ceb:0x1de,_0x3509c0:0x1be,_0x4ff0b3:0x187,_0x263bd8:0xb2,_0x27cdbf:0x9f,_0x181e4c:0x1bb,_0x14ca73:0x194,_0x45367d:0x1f0,_0x38caf8:0x151,_0x418246:0x18c,_0x5432a3:0x15b,_0x3ed5ed:0x143,_0x263557:0x1b9,_0x56b491:0x1fb,_0x987d2e:0x42,_0xcde29c:0x18c,_0xdf35fe:0xf1,_0x49286c:0x93,_0x21c145:0x154,_0x316e7c:0x19f,_0x5d1106:0x1a8,_0x1d887d:0x1ce,_0x359130:0x1ed,_0x2ad0cc:0x1eb,_0x176094:0x72,_0x4d71da:0x80,_0x49ef5a:0xb,_0x366f66:0x87,_0x272f7e:0x69,_0x2d4141:0x5a,_0x2a0623:0xb3,_0x2b2c4d:0x10a,_0x28f72c:0x1d,_0x8d9703:0x6f};let _0x48f5e3=createEmptySnapshot();const _0x5f618c=new Set();let _0x2bc53e;const _0x42dddd=()=>{const _0x40f847={..._0x48f5e3};for(const _0x63e47d of _0x5f618c)_0x63e47d(_0x40f847);};return{'getSnapshot'(){return{..._0x48f5e3};},'recordEvent'(_0x567268){const _0x2983bf={_0x549c1e:0x1e7};function _0x1d71fc(_0x4c1c90,_0x15f437,_0x2b2053,_0x4f16b8){return _0x4978(_0x4f16b8- -_0x2983bf._0x549c1e,_0x2b2053);}if(_0x567268['type']==='model_request'){_0x2bc53e=Date[_0x1d71fc(-0x99,-0xe0,-0x83,-_0x277acc._0x2b8cfa)]();const _0x2764e8=_0x47371b[_0xda3e3b(-_0x277acc._0x3c0c2f,-0x16b,-_0x277acc._0x3b7b14,-_0x277acc._0x248d3d)]?.(_0x567268['request']);_0x2764e8!==void 0x0&&(_0x48f5e3={..._0x48f5e3,'contextWindowLimit':_0x2764e8},_0x42dddd());return;}if(_0x567268[_0x1d71fc(-0x33,-0x81,-0x81,-0x41)]===_0x1d71fc(-_0x277acc._0x2dc889,-_0x277acc._0xae1bce,-_0x277acc._0x5dc0bd,-_0x277acc._0x52aee8)){const _0x2fc32c=_0x567268[_0xda3e3b(-_0x277acc._0x181ceb,-0x18c,-_0x277acc._0x3509c0,-_0x277acc._0x4ff0b3)][_0x1d71fc(-0xdb,-_0x277acc._0x263bd8,-0xae,-_0x277acc._0x27cdbf)][_0xda3e3b(-0x1bc,-_0x277acc._0x181e4c,-_0x277acc._0x14ca73,-_0x277acc._0x45367d)],_0x4180f0=_0x567268[_0xda3e3b(-_0x277acc._0x38caf8,-_0x277acc._0x418246,-_0x277acc._0x5432a3,-_0x277acc._0x3ed5ed)][_0xda3e3b(-0x163,-0x1b6,-_0x277acc._0x263557,-_0x277acc._0x56b491)][_0x1d71fc(-0x7c,-0x8f,-0x81,-_0x277acc._0x987d2e)],_0x334dca=_0x567268[_0xda3e3b(-0x140,-_0x277acc._0xcde29c,-0x15c,-0x15b)]['usage']['reasoningTokens']??0x0,_0x493987=_0x2fc32c+_0x4180f0,_0x3d0a36=_0x2bc53e===void 0x0?0x0:Date[_0x1d71fc(-_0x277acc._0xdf35fe,-0x7b,-_0x277acc._0x49286c,-_0x277acc._0x2b8cfa)]()-_0x2bc53e;_0x2bc53e=void 0x0,_0x48f5e3={..._0x48f5e3,'totalTokens':_0x48f5e3['totalTokens']+_0x493987,'totalInputTokens':_0x48f5e3[_0xda3e3b(-_0x277acc._0x21c145,-_0x277acc._0x14ca73,-_0x277acc._0x316e7c,-0x1d0)]+_0x2fc32c,'totalOutputTokens':_0x48f5e3[_0xda3e3b(-0x1bb,-0x18b,-0x1d6,-_0x277acc._0x5d1106)]+_0x4180f0,'totalReasoningTokens':_0x48f5e3[_0xda3e3b(-0x1f9,-_0x277acc._0x1d887d,-_0x277acc._0x359130,-0x1b0)]+_0x334dca,'modelCallCount':_0x48f5e3['modelCallCount']+0x1,'totalModelTimeMs':_0x48f5e3[_0xda3e3b(-0x214,-0x1e1,-0x209,-_0x277acc._0x2ad0cc)]+_0x3d0a36,'currentTokens':_0x493987,'currentInputTokens':_0x2fc32c,'currentOutputTokens':_0x4180f0,'currentReasoningTokens':_0x334dca,'currentModelTimeMs':_0x3d0a36,..._0x48f5e3[_0x1d71fc(-_0x277acc._0x176094,-0x93,-_0x277acc._0x4d71da,-0x55)]&&_0x493987>0x0?{'contextWindowUsage':_0x493987/_0x48f5e3[_0x1d71fc(-0x23,-0x42,-0x6f,-0x55)]}:{}},_0x42dddd();return;}function _0xda3e3b(_0x595960,_0x26a07a,_0x4c2428,_0xa9ac6e){return _0x4978(_0x26a07a- -0x2fe,_0x595960);}if(_0x567268[_0x1d71fc(_0x277acc._0x49ef5a,-_0x277acc._0x366f66,-_0x277acc._0x272f7e,-0x41)]===_0x1d71fc(-_0x277acc._0x176094,-0x5a,-_0x277acc._0x2d4141,-0x46)){_0x48f5e3={..._0x48f5e3,'toolCallCount':_0x48f5e3[_0x1d71fc(-0xa9,-0xd0,-0x102,-_0x277acc._0x2a0623)]+0x1},_0x42dddd();return;}_0x567268['type']===_0xda3e3b(-0x19c,-0x152,-_0x277acc._0x2b2c4d,-0x15d)&&(_0x48f5e3={..._0x48f5e3,'requestCount':_0x48f5e3[_0x1d71fc(-_0x277acc._0x28f72c,-0x85,-_0x277acc._0x8d9703,-0x37)]+0x1},_0x42dddd());},'reset'(){_0x48f5e3=createEmptySnapshot(),_0x2bc53e=void 0x0,_0x42dddd();},'subscribe'(_0x2c99c9){const _0x291a9a={_0x126adb:0x18e,_0x1ca888:0x13b},_0x2f47e9={_0x24f892:0x78},_0x285bd5={_0x3e6b0e:0x9f};_0x5f618c[_0x5cab14(0x251,_0x193fec._0x5a7350,_0x193fec._0x59e3d9,0x27f)](_0x2c99c9);function _0x5cab14(_0xb8abe,_0x259e0a,_0x5be865,_0x5cbdd1){return _0x4978(_0xb8abe-_0x285bd5._0x3e6b0e,_0x5cbdd1);}return()=>{function _0x1e4df5(_0x3c4dfc,_0x30a73d,_0x4c889e,_0x377be1){return _0x5cab14(_0x3c4dfc- -_0x2f47e9._0x24f892,_0x30a73d-0x17c,_0x4c889e-0x1ce,_0x30a73d);}_0x5f618c[_0x1e4df5(_0x291a9a._0x126adb,0x1dd,_0x291a9a._0x1ca888,0x174)](_0x2c99c9);};}};}function makeExtensionContext(_0x2fd77d){return{'state':_0x2fd77d};}async function runStage(_0x26537e,_0x68fa74,_0x212dd4,_0x4cf2f7){const _0x5a2253={_0x38bbb8:0x3ba},_0x56e381={_0x22ee75:0x19f,_0x35c59c:0x12a};function _0xbcd00(_0x213993,_0x229c36,_0x394228,_0x204aa9){return _0x2cb4b9(_0x229c36,_0x229c36-_0x56e381._0x22ee75,_0x213993-0x37d,_0x204aa9-_0x56e381._0x35c59c);}const _0x54b45c=await _0x26537e['runTransformers'](_0x68fa74,_0x212dd4,_0x4cf2f7);return await _0x26537e[_0xbcd00(0x3f3,_0x5a2253._0x38bbb8,0x40f,0x43a)](_0x68fa74,_0x54b45c,_0x4cf2f7),_0x54b45c;}async function emitEvent2(_0x181f8e,_0x210d0b,_0x140938){await _0x181f8e?.(_0x210d0b,_0x140938);}function _0x362e(){const _0x23dc96=['Dg9VBf91C2u','DhjHBNnMB3jTzxi','DxnLCL9TzxnZywDL','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','ywn0Aw9U','otCYmtqWChnNrfzS','BgvUz3rO','Dg9VBf9VDxrWDxrFy2H1BMS','y29UDgvUDa','BgLZDa','y29UDgvUDeLUzgv4','BwvZC2fNzq','Bwv0CMLJCW','BwfW','C2v0u2vZC2LVBKLK','C3rYDwn0DxjLza','zg9Uzq','Dg9VBfj1BNrPBwu','C2v0vg9VBhm','ywrKrxzLBNrmAxn0zw5LCG','n0LtEg5zAG','C2vZC2LVBKLK','Bw9KzwXFCMvXDwvZDa','CMvJB3jKrxzLBNq','Dg9VBf91C2vFy2H1BMS','BgfZDfjLC3bVBNnL','zgvSzxrL','C3rHz2u','yMvMB3jLvg9VBev4zwn1DgLVBG','Dg90ywXjBNb1DfrVA2vUCW','B25fDMvUDa','CMvHC29UAw5NtwvZC2fNzuLK','DhvYBI0','C2vZC2LVBI0','C3rHDgu','zxHLy3v0zunHBgXZ','C2vUza','CMvZCg9UC2u','Dg90ywXpDxrWDxruB2TLBNm','C3rYzwfTAw5N','CMvNAxn0CNK','Aw5KzxG','DxnLCG','y2f0y2G','Dg9VBhncEu5HBwu','Dg9VBf9ZDgfYDgvK','CMvNAxn0zxi','CMvQzwn0','Dg9VBf91C2vFzgvSDge','A2LUza','yxjYyxK','x3n5C3rLBvbYB21WDa','BMv4Da','Dw5RBM93BL90B29S','ywz0zxjnB2rLBfjLC3bVBNnL','DMfSDwvZ','zxH0zw5ZAw9UCW','CNvU','C29YDa','mZq3mte4neLMz2HRDq','oIbLEhbLy3rLzcbUDw1Izxi','sw52ywXPzcb0B29SigLUChv0igf0ia','B3v0Chv0sw5KzxG','Bw9KzwXFCMvZCg9UC2u','zNvUy3rPB24','C3rYzwfT','Dg9VBf9JB21WBgv0zwq','oIbLEhbLy3rLzcbHCNjHEq','y2f1C2u','y29UDgv4DfDPBMrVD0XPBwL0','z2v0q29UDgv4DfDPBMrVD0XPBwL0','Aw5WDxrezwX0yq','zgvSDge','B25uB29Sq2fSBa','DhvYBKLK','zgvMyxvSDe1LC3nHz2u','oIbLEhbLy3rLzcbIB29SzwfU','Aw5WDxq','B3jKzxi','zMLUywXnzxnZywDL','B2jZzxj2zxi','nKntCwvjrW','Dg9VBf91C2vFBwvZC2fNzq','Dg9VBf9YzwPLy3rLza','Dg9VBf9JywXS','C2vZC2LVBKrPCG','CMvHC29U','B3v0Chv0','B3v0Chv0vg9Rzw5Z','DhLWzq','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','yxnRvxnLCG','zw5HyMXLza','DhvYBKLUzgv4','B2jQzwn0','DhvYBL9JB21WBgv0zq','zMLSDgvY','C3rYAw5NAwz5','CMvTB3zLrxzLBNrmAxn0zw5LCG','CMvXDwvZDenVDw50','CMvHC29UAw5Nx21LC3nHz2u','ywrK','AxrLBxm','CNvUt2jZzxj2zxjZ','C3vTBwfYEuLUzgv4','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','AxnbCNjHEq','ywjVCNrLza','ndC0nZG3ofPOtur6vq','ywjVCNq','zM9YrwfJAa','DMfSDwu','Bw9KzwW','y29TCgXLDgu','BMfTzq','BgLZDfrVB2Xty2HLBwfZ','vw5RBM93BIb0B29SoIa','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','ChvZAa','ywXS','Dg90ywXnB2rLBfrPBwvnCW','Dg9VBfjLC3vSDhm','yM9VBgvHBG','C2v0','ndGWue9OCKXH','C3rYAw5N','BwvZC2fNzxm','ywz0zxjuDxjUq29TCgXLDgu','C3LZDgvT','BNvTyMvY','C3LZDgvTuhjVBxb0','zw50CMLLCW','CMvHC29UAw5Nx2nODw5R','Dg9tDhjPBMC','CMfJzq','DhjPBq','y2HHDe1VzgvS','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','mtuYotjoBfHOsKm','Dg90ywXszwfZB25PBMDuB2TLBNm','yxnZAxn0yw50twvZC2fNzuLK','AxrLBuLK','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','Dg9VBenHBgXdB3vUDa','ywz0zxjnzxnZywDLqxbWzw5K','yxnZAxn0yw50x21LC3nHz2u','C2LNBMfS','ntm2mtG0sxvAuw5z','nJq3mZm5mgLUt0nKqq','CMvXDwLYzwq','CMvZzxrnzxnZywDLCW','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','BM93','zgvWCW','mJm3mZm4nfbssLvXsG','yMvMB3jLqxnZAxn0yw50qxbWzw5K','zxHLy3v0zq','oIbLEhbLy3rLzcbZDhjPBMC','Aw5WDxruB2TLBNm','Aw5WDxrty2HLBwe','DgHPBMTPBMC','Dg9VBf9Yzxn1Bhq','C2XPy2u','DxnHz2u','oNjLyxnVBMLUzW','z2v0','Dgv4Da','y29UDgvUDf9KzwX0yq'];_0x362e=function(){return _0x23dc96;};return _0x362e();}function replaceToolUseBlocks(_0x30d3d8,_0x11417d){const _0x46ea00={_0x23b4e9:0x1b9,_0x58ad81:0x1ec,_0x1c841d:0x1ce},_0x510235={_0x2ef922:0x2e8},_0xd92313={_0x502ef9:0x142},_0x1d9e56={_0x56aae3:0x1d0,_0x2965e5:0x121},_0x13e45f={_0x5aa540:0x81};function _0x544924(_0x439913,_0x26f5ae,_0xdde8f4,_0x5d5862){return _0xc4fa22(_0x5d5862,_0x26f5ae-_0x13e45f._0x5aa540,_0xdde8f4- -0x51c,_0x5d5862-0x1e8);}let _0x360331=0x0;function _0x36609e(_0x27e391,_0x1d7e6b,_0x7ccb58,_0x1e9f5b){return _0x2cb4b9(_0x1d7e6b,_0x1d7e6b-0x52,_0x1e9f5b- -_0x1d9e56._0x56aae3,_0x1e9f5b-_0x1d9e56._0x2965e5);}return{..._0x30d3d8,'content':_0x30d3d8[_0x36609e(-0x1c4,-0x1fd,-0x184,-_0x46ea00._0x23b4e9)][_0x36609e(-_0x46ea00._0x58ad81,-0x1cf,-_0x46ea00._0x1c841d,-0x1b4)](_0x26c926=>{if(_0x26c926['type']!==_0x26cc89(_0x510235._0x2ef922,0x353,0x306,0x2e7))return _0x26c926;const _0x4f75c3=_0x11417d[_0x360331];_0x360331+=0x1;function _0x26cc89(_0x49cf7e,_0x3cb54c,_0x1826fd,_0x136d91){return _0x544924(_0x49cf7e-0x76,_0x3cb54c-_0xd92313._0x502ef9,_0x1826fd-0x3ed,_0x49cf7e);}return structuredClone(_0x4f75c3);})};}function createAssistantMessageId(_0x3aef7e,_0x1c0a56){return _0x3aef7e+':assistant:'+_0x1c0a56;}function createReasoningMessageId(_0xb798ec){const _0x3acc06={_0x455a88:0x3,_0x5a906b:0x6b},_0x1b69f9={_0x2db45f:0x65};function _0x57b150(_0x55a6ff,_0x40ae77,_0x35a99f,_0x541440){return _0xc4fa22(_0x35a99f,_0x40ae77-0x157,_0x541440- -0x3da,_0x541440-_0x1b69f9._0x2db45f);}return _0xb798ec+_0x57b150(0x90,_0x3acc06._0x455a88,_0x3acc06._0x5a906b,0x57);}function withMessageId(_0x1ea88f,_0x21292d){if(_0x1ea88f['id']===_0x21292d)return _0x1ea88f;return{..._0x1ea88f,'id':_0x21292d};}function createAssistantChunkEvent(_0x3823a7,_0x4f3fe3){const _0x302a94={_0x17ef61:0x6b,_0x3d4afb:0x34,_0x235539:0x7a,_0x3165ec:0x22,_0x685deb:0x2e2,_0x3027aa:0x291,_0x2f3867:0x290,_0x2af535:0x28e,_0x4e5970:0x27c,_0x115bde:0x5d,_0x266948:0x17,_0x24ec41:0x42},_0x5cab2c={_0x46f006:0x102,_0xb6b6ef:0x78};function _0x13a39c(_0x4af16e,_0x549964,_0x48bfea,_0x21846b){return _0x2cb4b9(_0x4af16e,_0x549964-0x1f,_0x21846b-0x26e,_0x21846b-0x2f);}function _0x51bb22(_0x336d96,_0x38ebf1,_0x6f3495,_0x14a64b){return _0x2cb4b9(_0x14a64b,_0x38ebf1-_0x5cab2c._0x46f006,_0x336d96- -_0x5cab2c._0xb6b6ef,_0x14a64b-0x1be);}if(_0x3823a7['type']!==_0x51bb22(-0x6a,-0x73,-0xa5,-0xaa))return void 0x0;if(_0x3823a7[_0x51bb22(-_0x302a94._0x17ef61,-_0x302a94._0x3d4afb,-_0x302a94._0x235539,-_0x302a94._0x3165ec)]===void 0x0)return void 0x0;return{'type':'assistant_chunk','index':_0x3823a7[_0x13a39c(0x2b1,_0x302a94._0x685deb,_0x302a94._0x3027aa,0x2a6)]??0x0,'messageId':_0x4f3fe3,'chunk':{'type':_0x13a39c(0x239,_0x302a94._0x2f3867,_0x302a94._0x2af535,_0x302a94._0x4e5970),'index':_0x3823a7[_0x51bb22(-0x40,-_0x302a94._0x115bde,-_0x302a94._0x266948,-0x4a)]??0x0,'text':_0x3823a7[_0x51bb22(-0x6b,-_0x302a94._0x24ec41,-0x92,-0x67)]}};}function createToolUseChunkEvent(_0xf46b91,_0x25ccaa){const _0x80ccc1={_0x4dec9f:0x1f,_0xfef93c:0x249,_0x5d7577:0xa,_0x5a5626:0x35,_0x5e17bd:0x2d3,_0x12d0ea:0x33,_0x145dcb:0x2b3,_0x28f929:0x2b7},_0x4d3918={_0xf4b9bf:0x15c,_0x26dbe9:0x46f};function _0x46a174(_0x4f9cac,_0x5aa512,_0x3efa5e,_0x1fa974){return _0xc4fa22(_0x3efa5e,_0x5aa512-0xee,_0x5aa512- -0x1c9,_0x1fa974-0x82);}function _0x573c8b(_0xebe059,_0x53465b,_0x147406,_0xc01577){return _0xc4fa22(_0x53465b,_0x53465b-_0x4d3918._0xf4b9bf,_0xebe059- -_0x4d3918._0x26dbe9,_0xc01577-0x53);}if(_0xf46b91[_0x573c8b(_0x80ccc1._0x4dec9f,-0x5,0x33,-0x2b)]!=='tool_use_delta')return void 0x0;return{'type':_0x46a174(0x23d,0x284,0x2a1,_0x80ccc1._0xfef93c),'index':_0xf46b91[_0x46a174(0x2b4,0x295,0x27e,0x2a5)]??0x0,'messageId':_0x25ccaa,'chunk':{'type':_0x573c8b(-_0x80ccc1._0x5d7577,0x3c,-0x43,-_0x80ccc1._0x5a5626),'id':_0xf46b91['id']??'','index':_0xf46b91[_0x46a174(0x245,0x295,0x274,_0x80ccc1._0x5e17bd)]??0x0,..._0xf46b91[_0x573c8b(0x38,_0x80ccc1._0x12d0ea,0x40,0x19)]!==void 0x0?{'name':_0xf46b91[_0x573c8b(0x38,0xd,0x79,0x3a)]}:{},..._0xf46b91['inputDelta']!==void 0x0?{'inputDelta':_0xf46b91[_0x46a174(0x274,_0x80ccc1._0x145dcb,0x291,_0x80ccc1._0x28f929)]}:{}}};}function createReasoningChunkEvent(_0x17dc8f,_0x30f0c){const _0x1f089d={_0x81cc1b:0x2ef,_0x13c2ae:0x286,_0x5539fa:0x2c0,_0x51fc17:0x332,_0x8b1104:0x2fc,_0x384050:0x327,_0x1197d1:0x309,_0x23cbc2:0x31d,_0x320a96:0x26f,_0x37bc59:0x2bb,_0x6601f6:0x29a,_0x2ebf88:0xba,_0x31f223:0xe8,_0x2eebdc:0x74,_0x5c75be:0xce,_0x417c24:0x2c6,_0x290821:0x271,_0xf46bac:0xe6,_0x334463:0x2f2,_0x2743ad:0x2db,_0x49d3fb:0x2d8,_0x31a252:0x336,_0x718b84:0x2ec,_0x39bf70:0x32b,_0x20fc75:0x2ba,_0x31efc8:0x30b,_0x590236:0xfd,_0xb8284e:0xad,_0x9168ba:0xf9,_0x1c45b9:0x32c},_0x1834bd={_0x39a340:0x10a,_0x45373b:0x54a},_0x476095={_0x470d60:0x35};function _0x55b7db(_0x256ac6,_0x142194,_0x1818c2,_0x5a8329){return _0xc4fa22(_0x1818c2,_0x142194-_0x476095._0x470d60,_0x5a8329- -0x172,_0x5a8329-0x107);}function _0x2bca49(_0x287f48,_0x3bf5f8,_0x99679d,_0x145c4a){return _0xc4fa22(_0x287f48,_0x3bf5f8-_0x1834bd._0x39a340,_0x99679d- -_0x1834bd._0x45373b,_0x145c4a-0x3);}switch(_0x17dc8f[_0x55b7db(0x2d2,0x331,_0x1f089d._0x81cc1b,0x31c)]){case _0x55b7db(0x2fc,0x34e,0x33d,0x31d):return{'type':_0x55b7db(_0x1f089d._0x13c2ae,0x2b9,_0x1f089d._0x5539fa,0x29f),'index':_0x17dc8f[_0x55b7db(_0x1f089d._0x51fc17,_0x1f089d._0x8b1104,_0x1f089d._0x384050,0x2ec)],'messageId':_0x30f0c,'chunk':{'type':_0x55b7db(0x2fa,_0x1f089d._0x1197d1,0x347,_0x1f089d._0x23cbc2),'index':_0x17dc8f['index']??0x0,'thinking':_0x17dc8f['thinking']??''},'text':_0x17dc8f[_0x55b7db(_0x1f089d._0x320a96,0x2cf,0x2ef,_0x1f089d._0x37bc59)]??''};case'openai_reasoning_delta':return{'type':_0x55b7db(0x28c,_0x1f089d._0x6601f6,0x292,0x29f),'index':_0x17dc8f[_0x55b7db(0x2fe,0x2d1,0x317,0x2cd)],'messageId':_0x30f0c,'chunk':{'type':_0x2bca49(-_0x1f089d._0x2ebf88,-_0x1f089d._0x31f223,-0xac,-_0x1f089d._0x2eebdc),'contentIndex':_0x17dc8f['contentIndex']??0x0,'delta':_0x17dc8f[_0x2bca49(-_0x1f089d._0x5c75be,-0x116,-0xcd,-0xdc)]??'','itemId':_0x17dc8f[_0x55b7db(0x2aa,_0x1f089d._0x417c24,_0x1f089d._0x290821,0x2a8)]??'','outputIndex':_0x17dc8f[_0x2bca49(-0x116,-0x9e,-0xd7,-_0x1f089d._0xf46bac)]??0x0},'text':_0x17dc8f['delta']??''};case'openai_reasoning_summary_delta':return{'type':_0x55b7db(_0x1f089d._0x334463,_0x1f089d._0x2743ad,0x25e,0x29f),'index':_0x17dc8f[_0x55b7db(_0x1f089d._0x49d3fb,_0x1f089d._0x31a252,_0x1f089d._0x718b84,_0x1f089d._0x39bf70)],'messageId':_0x30f0c,'chunk':{'type':_0x2bca49(-0x15e,-0x14e,-0x126,-0xf3),'delta':_0x17dc8f[_0x55b7db(0x31c,0x350,_0x1f089d._0x20fc75,_0x1f089d._0x31efc8)]??'','itemId':_0x17dc8f['itemId']??'','outputIndex':_0x17dc8f['outputIndex']??0x0,'summaryIndex':_0x17dc8f[_0x2bca49(-0x59,-_0x1f089d._0x590236,-_0x1f089d._0xb8284e,-_0x1f089d._0x9168ba)]??0x0},'text':_0x17dc8f[_0x55b7db(_0x1f089d._0x1c45b9,0x33e,0x30d,0x30b)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x2de873){const _0x37a24c={_0x34871d:0x38c,_0x19b92e:0x3b1,_0x3a6b66:0x38b},_0xd40f38={_0x318cd6:0x393,_0x5160d6:0xe3};function _0x282295(_0x96fa82,_0x29b12e,_0x3e1981,_0x3ac140){return _0x2cb4b9(_0x3e1981,_0x29b12e-0x145,_0x29b12e-_0xd40f38._0x318cd6,_0x3ac140-_0xd40f38._0x5160d6);}return _0x2de873['status']==='error'&&_0x2de873[_0x282295(_0x37a24c._0x34871d,_0x37a24c._0x19b92e,0x3b8,_0x37a24c._0x3a6b66)]['aborted']===!![];}async function executeModelRequest(_0x48c4bc,_0x270a41,_0x3c2bb0,_0x902a5b,_0x2f1be5){const _0x14f496={_0x5a0dcc:0x35d,_0x509282:0x315,_0x5379b4:0x2da,_0x5c5be0:0x308,_0x32d9f8:0x30a,_0x5271d6:0x381,_0x4b8aa8:0x3fc,_0x2154fc:0x3c4,_0x4ad559:0x3cf,_0x3d14a3:0x2ee,_0x29701b:0x2e4,_0x234b44:0x2f4,_0xeeeecc:0x36d,_0x56dba7:0x33b,_0x20124b:0x32b,_0x2aead6:0x353,_0x4162c1:0x39a,_0x43d39c:0x31f,_0x5c6709:0x314,_0x559ccb:0x2db,_0xded0fc:0x341,_0x569fe4:0x318,_0x9024e6:0x311,_0x394877:0x2d9,_0x917101:0x33a,_0x26eca2:0x32a,_0x36a42a:0x300,_0x1c8ff6:0x348,_0x4f1f4d:0x31a,_0x4a21ed:0x31d,_0x47d565:0x358,_0x592c0c:0x2f9,_0x5b8a9f:0x2ef,_0x2e3780:0x351,_0xf8edb7:0x2c2,_0x49cb51:0x2cd,_0x39c89c:0x2ca,_0x19e93e:0x342,_0x3da4f1:0x2a4},_0x41f827={_0x51de44:0x6},_0x361b39={_0x30850e:0x14,_0xbb393e:0x2eb,_0x3175af:0x1dc};throwIfAborted(_0x270a41[_0x225005(_0x14f496._0x5a0dcc,0x2f5,0x348,_0x14f496._0x509282)]);if(!_0x270a41['streaming']||!_0x3c2bb0[_0x47c22e(0x29c,_0x14f496._0x5379b4,0x2d9,_0x14f496._0x5c5be0)]['stream'])return await _0x3c2bb0[_0x225005(_0x14f496._0x32d9f8,0x35f,0x33e,_0x14f496._0x5271d6)][_0x225005(_0x14f496._0x4b8aa8,_0x14f496._0x2154fc,_0x14f496._0x4ad559,0x37b)](_0x48c4bc,{'signal':_0x270a41[_0x47c22e(_0x14f496._0x3d14a3,_0x14f496._0x29701b,0x2d1,_0x14f496._0x234b44)]});let _0x6f0db;for await(const _0x5995cc of _0x3c2bb0[_0x225005(_0x14f496._0xeeeecc,0x38c,0x33e,0x2f8)][_0x47c22e(0x35b,_0x14f496._0x56dba7,0x35a,0x311)](_0x48c4bc,{'signal':_0x270a41[_0x47c22e(0x2ac,0x2e4,0x2fa,_0x14f496._0x20124b)]})){throwIfAborted(_0x270a41['signal']);if(_0x5995cc[_0x47c22e(0x352,_0x14f496._0x2aead6,0x305,_0x14f496._0x4162c1)]==='done'){_0x6f0db=_0x5995cc[_0x47c22e(0x32f,_0x14f496._0x43d39c,_0x14f496._0x5c6709,_0x14f496._0x559ccb)];continue;}if(_0x5995cc[_0x47c22e(_0x14f496._0xded0fc,0x353,0x350,0x37b)]==='provider_retry'){await emitEvent2(_0x3c2bb0[_0x47c22e(0x30e,_0x14f496._0x569fe4,0x30a,_0x14f496._0x9024e6)],_0x5995cc,_0x902a5b);continue;}const _0x3fb6b4=createReasoningChunkEvent(_0x5995cc,_0x2f1be5[_0x47c22e(_0x14f496._0x394877,0x319,0x316,_0x14f496._0x917101)]);if(_0x3fb6b4&&_0x3fb6b4['type']==='reasoning_chunk'&&_0x3fb6b4['text'][_0x47c22e(_0x14f496._0x26eca2,_0x14f496._0x36a42a,0x2d8,_0x14f496._0x1c8ff6)]>0x0){await emitEvent2(_0x3c2bb0[_0x47c22e(_0x14f496._0x4f1f4d,0x318,_0x14f496._0x4a21ed,_0x14f496._0x47d565)],_0x3fb6b4,_0x902a5b);continue;}const _0x49a9c6=createAssistantChunkEvent(_0x5995cc,_0x2f1be5['assistantMessageId']);if(_0x49a9c6){await emitEvent2(_0x3c2bb0[_0x47c22e(_0x14f496._0x592c0c,0x318,_0x14f496._0x5b8a9f,_0x14f496._0x2e3780)],_0x49a9c6,_0x902a5b);continue;}const _0x57cc61=createToolUseChunkEvent(_0x5995cc,_0x2f1be5[_0x47c22e(_0x14f496._0xf8edb7,0x2de,_0x14f496._0x49cb51,_0x14f496._0x39c89c)]);_0x57cc61&&await emitEvent2(_0x3c2bb0[_0x225005(0x39b,_0x14f496._0x19e93e,0x37c,0x3c6)],_0x57cc61,_0x902a5b);}if(!_0x6f0db)throw new Error(_0x47c22e(_0x14f496._0x3da4f1,0x2db,_0x14f496._0xf8edb7,0x2b3));function _0x47c22e(_0x3adf3b,_0xc0fd74,_0x1884c7,_0x566937){return _0x2cb4b9(_0x566937,_0xc0fd74-_0x361b39._0x30850e,_0xc0fd74-_0x361b39._0xbb393e,_0x566937-_0x361b39._0x3175af);}function _0x225005(_0x4a6121,_0x50a0f0,_0x4b4f65,_0x3e30da){return _0xc4fa22(_0x3e30da,_0x50a0f0-_0x41f827._0x51de44,_0x4b4f65- -0xd7,_0x3e30da-0x1d7);}return _0x6f0db;}function makeTurnGuards(_0x1b39c0,_0x42608c,_0x220585,_0x25853b,_0x5a8949){return{async 'stage'(_0x4fc6ea,_0x47742d){return throwIfAborted(_0x1b39c0),await runStage(_0x42608c,_0x4fc6ea,_0x47742d,_0x25853b);},async 'emit'(_0x38bbad){throwIfAborted(_0x1b39c0),await emitEvent2(_0x220585,_0x38bbad,_0x5a8949);},async 'stageUnchecked'(_0x235a56,_0x1e7408){return await runStage(_0x42608c,_0x235a56,_0x1e7408,_0x25853b);},async 'emitUnchecked'(_0x57a5b6){await emitEvent2(_0x220585,_0x57a5b6,_0x5a8949);}};}async function runTurn(_0x3b22c1,_0x2f0d57){const _0x389beb={_0xd258e9:0x2ac,_0x412270:0x305,_0x2bda95:0x2a7,_0x36f781:0x2af,_0x413622:0x30c,_0x289122:0x2d,_0x1b7aa9:0x28,_0xea4978:0x63,_0x5d8410:0x27a,_0x364c9:0x2a0,_0x18a895:0x2d,_0x44f71b:0x20,_0x1d9913:0x26,_0x1dcecf:0x2d,_0x458ec5:0x281,_0x566ad6:0x292,_0x43f99b:0x221,_0x4645a9:0x29e,_0x519814:0x28b,_0x31eafc:0x26f,_0x1424a5:0x20f,_0x3939b0:0x21a,_0x40edcc:0x23b,_0x368ae7:0x285,_0x122eb8:0x3b,_0x5e2ede:0xb,_0x2cdaca:0x52,_0x2c11d8:0x3f,_0x283abf:0x1d,_0x2d87d7:0x5a,_0x45d564:0x294,_0x5c72f4:0x2a9,_0x4784da:0x2a5,_0x24ddb6:0x23,_0x155f52:0x22,_0x48a7b0:0x263,_0x25a0f0:0x22d,_0x197a4d:0x279,_0x841f0a:0x82,_0x3f56fa:0x6d,_0x1f5f4f:0x50,_0x209062:0x76,_0x5803b9:0x271,_0x1f8987:0x272,_0x5c85c7:0x1ed,_0x3b6bfc:0x262,_0x22255e:0x23a,_0x522d20:0x2b0,_0x35b2e2:0x21,_0x354e90:0xf,_0x57ed6b:0x288,_0x138a13:0x55,_0xb5c7a4:0x42,_0x3e090:0x39,_0xe6b29d:0x1b,_0x595b8d:0x2a3,_0x264a57:0x26f,_0x1119e4:0x2d7,_0x3238c9:0x289,_0x5d8070:0x2bc,_0x116e49:0x23e,_0x125005:0x22,_0xa43c7b:0x71,_0x330e88:0x5a,_0x141e32:0x3c,_0x3a0ba5:0x54,_0x1c1a53:0x2ad,_0x1b89a5:0x28c,_0x5306ed:0x2ec,_0x38070c:0x244,_0xc56abb:0x25f,_0xf28401:0x22c,_0x3ef06d:0x2c0,_0x2a8181:0x2fe,_0x498084:0x2c8,_0x1d74d0:0x10,_0x2daece:0x6a,_0x5dc4be:0x2c,_0x2c5a0e:0x48,_0x51b8b1:0x27,_0x14c45a:0x2c0,_0x5a12ed:0x2d7,_0xca1d46:0x28,_0x4519b5:0x67,_0x2e5a18:0x28b,_0x55123a:0x7,_0x41757d:0x89,_0xb5687d:0x4d,_0x198af1:0x91,_0x4b3736:0x51,_0x57e3fb:0x96,_0x1d2f66:0x273,_0x2cccc6:0x2c6,_0x5bf538:0x2a1,_0x12d089:0x2a4,_0x1da4ff:0xe,_0x4e64a6:0x1b,_0x23e42a:0x11,_0x16758e:0x25,_0x1fc4fc:0x19,_0x4730cf:0x29d,_0x449067:0x2e1,_0x251ea8:0x2bc,_0x36f8b0:0x2f2,_0x3712d9:0xb,_0x291db7:0x43,_0x12281e:0x64,_0x532494:0x85,_0x4bd65a:0x248,_0x5121d5:0x1ee,_0x107b9e:0x234},_0x2e3a07={_0x4c621d:0x18b},_0x38cdeb={_0xd0213f:0x142,_0x20867b:0x128},_0x5b9826={_0x332a6e:0x303,_0x50153c:0x30b,_0x2701dc:0x2cb,_0x2dda20:0x2c3,_0x122d9c:0x285},_0x4ee12a={_0x16854b:0x571,_0x2d4eab:0x10c,_0xe0e00f:0x144},_0x112ae9=_0x3b22c1['signal']??new AbortController()[_0x47e4d8(-_0x389beb._0xd258e9,-0x26a,-0x2a2,-0x274)],_0x38a040={'sessionId':_0x3b22c1[_0x177665(-0x1d,0x8,-0x13,-0x29)],'turnId':_0x3b22c1['turnId'],'system':normalizeSystem(_0x3b22c1[_0x47e4d8(-0x2be,-0x28a,-_0x389beb._0x412270,-0x307)]),'messages':(_0x3b22c1[_0x47e4d8(-0x2c0,-_0x389beb._0x2bda95,-_0x389beb._0x36f781,-_0x389beb._0x413622)]??[])[_0x177665(_0x389beb._0x289122,_0x389beb._0x1b7aa9,-0x1b,-_0x389beb._0xea4978)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x2f0d57[_0x47e4d8(-0x241,-0x23a,-0x224,-0x1f8)]===_0x47e4d8(-0x256,-_0x389beb._0x5d8410,-_0x389beb._0x364c9,-0x258)?_0x2f0d57[_0x177665(0x3e,0x41,_0x389beb._0x18a895,-_0x389beb._0x44f71b)]():_0x2f0d57[_0x177665(_0x389beb._0x1d9913,0x68,_0x389beb._0x1dcecf,0x75)]},_0x296cf9=makeExtensionContext(_0x38a040),_0x388743={'sessionId':_0x38a040[_0x47e4d8(-_0x389beb._0x458ec5,-0x26b,-_0x389beb._0x566ad6,-0x2cb)],'turnId':_0x38a040[_0x47e4d8(-0x24c,-_0x389beb._0x43f99b,-_0x389beb._0x4645a9,-_0x389beb._0x519814)],'state':_0x38a040,'signal':_0x112ae9,..._0x2f0d57[_0x47e4d8(-0x23b,-_0x389beb._0x31eafc,-_0x389beb._0x1424a5,-_0x389beb._0x3939b0)]?{'askUser':_0x2f0d57[_0x47e4d8(-_0x389beb._0x40edcc,-0x287,-0x26c,-_0x389beb._0x368ae7)]}:{}},{stage:_0x59a856,emit:_0x13fa84,stageUnchecked:_0x4fe36b,emitUnchecked:_0x2b3c59}=makeTurnGuards(_0x112ae9,_0x2f0d57[_0x177665(-0x22,-_0x389beb._0x122eb8,0x0,_0x389beb._0x5e2ede)],_0x2f0d57[_0x177665(-_0x389beb._0x2cdaca,_0x389beb._0x2c11d8,-0xa,0xc)],_0x296cf9,_0x388743),_0x45a435=async _0x30dd92=>{const _0x2fc7e2={_0x4bd496:0x104,_0x18c1cb:0x15f,_0x4e6070:0x8f};function _0x4ac482(_0x560105,_0x9c7279,_0x3d8eb9,_0x204934){return _0x47e4d8(_0x560105-_0x4ee12a._0x16854b,_0x9c7279-_0x4ee12a._0x2d4eab,_0x3d8eb9-_0x4ee12a._0xe0e00f,_0x9c7279);}function _0x2e9a85(_0x4ae563,_0x4132b5,_0x5d4aac,_0x1ec2dd){return _0x177665(_0x4ae563-_0x2fc7e2._0x4bd496,_0x1ec2dd,_0x4ae563-_0x2fc7e2._0x18c1cb,_0x1ec2dd-_0x2fc7e2._0x4e6070);}await _0x2f0d57[_0x4ac482(_0x5b9826._0x332a6e,0x2f0,_0x5b9826._0x50153c,_0x5b9826._0x2701dc)]['runObservers'](_0x4ac482(_0x5b9826._0x2dda20,_0x5b9826._0x122d9c,0x2cf,0x29b),structuredClone(_0x30dd92),_0x296cf9);};let _0x207da5=0x0;function _0x47e4d8(_0x541b66,_0xd8c411,_0x1d4f49,_0x5809f3){return _0x2cb4b9(_0x5809f3,_0xd8c411-_0x38cdeb._0xd0213f,_0x541b66- -0x2a5,_0x5809f3-_0x38cdeb._0x20867b);}function _0x177665(_0x56369e,_0xdadf78,_0x5dd231,_0x398fee){return _0x2cb4b9(_0xdadf78,_0xdadf78-_0x2e3a07._0x4c621d,_0x5dd231- -0x37,_0x398fee-0x25);}try{const _0x485617=await _0x59a856('onUserMessage',normalizeMessage(_0x3b22c1['message']));_0x38a040[_0x177665(-_0x389beb._0x283abf,-0x6a,-0x52,-0x30)][_0x177665(-0x2d,-0xa8,-_0x389beb._0x2d87d7,-0x7)](_0x485617),await _0x45a435(_0x485617),await _0x13fa84({'type':_0x47e4d8(-_0x389beb._0x45d564,-_0x389beb._0x5c72f4,-0x242,-_0x389beb._0x4784da),'message':_0x485617});while(!![]){throwIfAborted(_0x112ae9),_0x207da5+=0x1;const _0x44120c=createAssistantMessageId(_0x38a040[_0x177665(0x6b,-_0x389beb._0x24ddb6,_0x389beb._0x155f52,0x56)],_0x207da5),_0x12b50c=createReasoningMessageId(_0x44120c);let _0x491e36={'model':_0x2f0d57['chatModel'][_0x47e4d8(-0x226,-_0x389beb._0x48a7b0,-_0x389beb._0x25a0f0,-_0x389beb._0x197a4d)],'maxTokens':_0x2f0d57['chatModel']['maxTokens']??0x4000,'system':structuredClone(_0x38a040[_0x177665(-_0x389beb._0x841f0a,-_0x389beb._0x3f56fa,-_0x389beb._0x1f5f4f,-_0x389beb._0x209062)]),'messages':structuredClone(_0x38a040[_0x47e4d8(-0x2c0,-_0x389beb._0x5803b9,-0x312,-0x2e9)]),'tools':_0x2f0d57[_0x47e4d8(-0x285,-0x26e,-_0x389beb._0x1f8987,-0x24f)][_0x47e4d8(-0x223,-0x205,-0x1ed,-_0x389beb._0x5c85c7)](),'metadata':{'sessionId':_0x38a040[_0x47e4d8(-0x281,-_0x389beb._0x3b6bfc,-_0x389beb._0x22255e,-_0x389beb._0x522d20)],'turnId':_0x38a040[_0x177665(0x50,_0x389beb._0x35b2e2,0x22,-_0x389beb._0x354e90)]}};_0x491e36=await _0x59a856('beforeModelRequest',_0x491e36),await _0x13fa84({'type':_0x47e4d8(-0x280,-0x2a5,-_0x389beb._0x57ed6b,-0x2c6),'request':_0x491e36});let _0x390827=await executeModelRequest(_0x491e36,_0x3b22c1,_0x2f0d57,_0x388743,{'assistantMessageId':_0x44120c,'reasoningMessageId':_0x12b50c});_0x390827=await _0x59a856(_0x177665(_0x389beb._0x138a13,-_0x389beb._0xb5c7a4,0xe,_0x389beb._0x3e090),_0x390827),await _0x13fa84({'type':'model_response','response':_0x390827}),_0x38a040[_0x177665(-0x3,0x35,-_0x389beb._0x354e90,_0x389beb._0xe6b29d)]=_0x390827;let _0x453a73=await _0x59a856(_0x47e4d8(-_0x389beb._0x595b8d,-_0x389beb._0x264a57,-0x28a,-_0x389beb._0x1119e4),withMessageId(responseToAssistantMessage(_0x390827),_0x44120c));_0x453a73=withMessageId(_0x453a73,_0x44120c);const _0x1372f0=getToolUseBlocks(_0x453a73),_0x5d7a47=await Promise['all'](_0x1372f0[_0x47e4d8(-_0x389beb._0x3238c9,-_0x389beb._0x5d8070,-0x23b,-_0x389beb._0x116e49)](_0x5c4260=>_0x59a856(_0x47e4d8(-0x27a,-0x297,-0x268,-0x2b3),_0x5c4260)));_0x5d7a47[_0x177665(-0x61,_0x389beb._0x1b7aa9,-_0x389beb._0x125005,-_0x389beb._0xa43c7b)]>0x0&&(_0x453a73=replaceToolUseBlocks(_0x453a73,_0x5d7a47));const _0x57cf90=withMessageId(_0x453a73,_0x44120c);_0x453a73=_0x57cf90;const _0x32bbd1=createReasoningMessage(_0x453a73),_0x3d785b=createAssistantTextMessage(_0x453a73),_0x59e0ac=createToolUseMessage(_0x453a73);_0x32bbd1&&await _0x13fa84({'type':_0x177665(_0x389beb._0x330e88,-0x8,_0x389beb._0x141e32,_0x389beb._0x3a0ba5),'message':withMessageId(_0x32bbd1,_0x12b50c)});_0x3d785b&&await _0x13fa84({'type':_0x47e4d8(-_0x389beb._0x1c1a53,-_0x389beb._0x1b89a5,-_0x389beb._0x5306ed,-0x25c),'message':withMessageId(_0x3d785b,_0x44120c)});_0x59e0ac&&await _0x13fa84({'type':_0x47e4d8(-_0x389beb._0x38070c,-_0x389beb._0xc56abb,-_0x389beb._0xf28401,-0x23b),'message':withMessageId(_0x59e0ac,_0x44120c)});_0x38a040[_0x47e4d8(-_0x389beb._0x3ef06d,-0x30f,-0x2e9,-_0x389beb._0x2a8181)][_0x47e4d8(-_0x389beb._0x498084,-0x2f3,-0x299,-0x29f)](_0x57cf90);_0x5d7a47[_0x177665(_0x389beb._0x1d74d0,-0x4d,-0x22,-0x76)]>0x0&&await _0x45a435(_0x57cf90);for(const _0x42c8a8 of _0x5d7a47){await _0x13fa84({'type':_0x177665(-0x13,_0x389beb._0x2daece,_0x389beb._0x5dc4be,0x8),'toolCall':_0x42c8a8});}if(_0x5d7a47[_0x177665(_0x389beb._0x125005,-0x3d,-0x22,0x2e)]===0x0){const _0x450dc9=await _0x59a856('beforeFinalOutput',_0x453a73),_0x461a72=withMessageId(_0x450dc9,_0x44120c);return _0x38a040[_0x177665(0x34,_0x389beb._0x2c5a0e,_0x389beb._0x51b8b1,_0x389beb._0xea4978)]=_0x461a72,_0x38a040[_0x47e4d8(-_0x389beb._0x14c45a,-_0x389beb._0x1b89a5,-_0x389beb._0x5a12ed,-0x28b)][_0x38a040[_0x177665(-0x1a,-0x3b,-0x52,-0x18)][_0x177665(0x25,-_0x389beb._0xca1d46,-0x22,-_0x389beb._0x4519b5)]-0x1]=_0x461a72,await _0x45a435(_0x461a72),await _0x13fa84({'type':'final_message','message':_0x461a72}),throwIfAborted(_0x112ae9),await _0x2f0d57[_0x47e4d8(-0x26e,-_0x389beb._0x2e5a18,-_0x389beb._0x522d20,-0x240)][_0x177665(0x7,_0x389beb._0x55123a,0x3f,_0x389beb._0x41757d)](_0x177665(-_0x389beb._0xb5687d,-_0x389beb._0x198af1,-_0x389beb._0x4b3736,-_0x389beb._0x57e3fb),_0x38a040,_0x296cf9),await _0x13fa84({'type':'turn_complete','state':_0x38a040}),{'status':'completed','finalMessage':_0x461a72,'state':_0x38a040};}let _0xbf32ed=await _0x2f0d57['toolRuntime'][_0x47e4d8(-_0x389beb._0x1d2f66,-0x27b,-_0x389beb._0x2cccc6,-_0x389beb._0x5bf538)](_0x5d7a47,_0x388743);const _0x98c40b=_0xbf32ed['some'](isAbortedToolResult),_0x507b59=_0x98c40b?_0x4fe36b:_0x59a856,_0x3f0cba=_0x98c40b?_0x2b3c59:_0x13fa84;_0xbf32ed=await Promise[_0x47e4d8(-0x2c7,-_0x389beb._0x197a4d,-_0x389beb._0x12d089,-0x292)](_0xbf32ed[_0x177665(-_0x389beb._0x1da4ff,-0x9,-_0x389beb._0x4e64a6,-_0x389beb._0x23e42a)](_0x1e016d=>_0x507b59('afterToolResult',_0x1e016d))),_0x38a040[_0x47e4d8(-0x2c5,-_0x389beb._0x5803b9,-0x2f6,-_0x389beb._0x2bda95)][_0x177665(-_0x389beb._0x16758e,-_0x389beb._0x1fc4fc,-0x5a,-0x9)](..._0xbf32ed);for(const _0x183dfa of _0xbf32ed){await _0x3f0cba({'type':_0x47e4d8(-_0x389beb._0x4730cf,-0x2c8,-_0x389beb._0x449067,-_0x389beb._0x251ea8),'result':_0x183dfa});}const _0x3d3fe7=await _0x507b59('beforeToolResultAppend',createToolResultUserMessage(_0xbf32ed));await _0x3f0cba({'type':'tool_result_message','message':_0x3d3fe7}),_0x38a040[_0x47e4d8(-0x2c0,-0x2ae,-0x29e,-_0x389beb._0x36f8b0)]['push'](_0x3d3fe7),await _0x45a435(_0x3d3fe7);if(_0x98c40b)return{'status':_0x177665(0x93,_0x389beb._0x3712d9,_0x389beb._0x291db7,0x79),'state':_0x38a040};}}catch(_0x27d5d6){if(!_0x112ae9[_0x177665(0x36,_0x389beb._0x12281e,_0x389beb._0x291db7,_0x389beb._0x532494)])throw new TurnFailedError(_0x27d5d6,_0x38a040);return{'status':_0x47e4d8(-0x22b,-_0x389beb._0x4bd65a,-_0x389beb._0x5121d5,-_0x389beb._0x107b9e),'state':_0x38a040};}}function createSessionId(){const _0x3e3bdd={_0x25c835:0x36a,_0x403ea9:0x34e,_0xe0de99:0x353,_0x20ee3d:0x31d,_0x56ed68:0x2b8,_0x132c4f:0x343,_0x4cd808:0x30a,_0x73f925:0x2e8,_0x19a50d:0x357,_0x7bccb8:0x2fc},_0x243b45={_0x12b14:0x2bc,_0x3ac574:0xef},_0x1a734a={_0x4ce4c1:0x4a,_0xad7e68:0x31e,_0x4dc5b5:0x125};function _0x22f774(_0x13e1eb,_0x1b2472,_0x20cdc2,_0x1579d3){return _0x2cb4b9(_0x1b2472,_0x1b2472-_0x1a734a._0x4ce4c1,_0x1579d3-_0x1a734a._0xad7e68,_0x1579d3-_0x1a734a._0x4dc5b5);}function _0x2fb32f(_0x4ffca1,_0x385a6b,_0xf5fdf9,_0x1d56c3){return _0x2cb4b9(_0x385a6b,_0x385a6b-0x38,_0x4ffca1-_0x243b45._0x12b14,_0x1d56c3-_0x243b45._0x3ac574);}return _0x22f774(0x33b,0x34d,_0x3e3bdd._0x25c835,_0x3e3bdd._0x403ea9)+Date[_0x22f774(_0x3e3bdd._0xe0de99,0x300,0x33c,_0x3e3bdd._0x20ee3d)]()+'-'+Math['random']()[_0x22f774(_0x3e3bdd._0x56ed68,_0x3e3bdd._0x132c4f,0x313,_0x3e3bdd._0x4cd808)](0x10)[_0x22f774(_0x3e3bdd._0x73f925,_0x3e3bdd._0x19a50d,_0x3e3bdd._0x7bccb8,0x327)](0x2,0xa);}function createTurnId(_0xa01604){const _0x542a94={_0x1d492b:0x70,_0x30a846:0x8b,_0x243a24:0x41};function _0x3f9552(_0x2b3dec,_0x4652cf,_0x18803e,_0x3694ef){return _0xc4fa22(_0x18803e,_0x4652cf-0xe0,_0x4652cf- -0x3e5,_0x3694ef-0x130);}return _0x3f9552(0xb3,_0x542a94._0x1d492b,_0x542a94._0x30a846,_0x542a94._0x243a24)+_0xa01604;}function createDefaultMessage(_0x40a1ab){if(_0x40a1ab===void 0x0)return void 0x0;return normalizeUserInput(_0x40a1ab);}function normalizeUserInput(_0x2fe224){const _0x19d363={_0x35d59e:0x2d,_0x1cafa7:0xb,_0x4b4611:0x5b,_0x3600b9:0xa0,_0x8b216:0x99},_0x2d1dfb={_0x123878:0xa0};if(typeof _0x2fe224===_0x24fc94(_0x19d363._0x35d59e,0x67,_0x19d363._0x1cafa7,-0x13))return{'role':_0x113783(_0x19d363._0x4b4611,0x2c,_0x19d363._0x3600b9,_0x19d363._0x8b216),'content':[{'type':'text','text':_0x2fe224}]};function _0x24fc94(_0x5b7fb2,_0xa642e1,_0x5c0bef,_0x3328a){return _0xc4fa22(_0x3328a,_0xa642e1-0x2d,_0x5b7fb2- -0x3dd,_0x3328a-0x9b);}function _0x113783(_0x32c29c,_0x4f2a41,_0x2ab13d,_0x2eee60){return _0xc4fa22(_0x2ab13d,_0x4f2a41-0x1be,_0x32c29c- -0x404,_0x2eee60-_0x2d1dfb._0x123878);}return normalizeMessage(_0x2fe224);}function resolveChatModel(_0x2f6f11){const _0xc0b621={_0x3bfae8:0xda,_0xf9f810:0xae,_0x308a49:0x13f},_0x1c7e3e={_0x373682:0xd6,_0x2cc728:0x85},_0x456285={_0x4cf803:0x1c2};function _0x2b92cf(_0x1df4cd,_0x2d2ae2,_0x3335b9,_0x41dbb8){return _0xc4fa22(_0x1df4cd,_0x2d2ae2-0xdf,_0x2d2ae2- -0x240,_0x41dbb8-_0x456285._0x4cf803);}function _0x4b2224(_0x472918,_0x1960d3,_0x10ba83,_0x4f4101){return _0x2cb4b9(_0x10ba83,_0x1960d3-0x5d,_0x472918- -_0x1c7e3e._0x373682,_0x4f4101-_0x1c7e3e._0x2cc728);}if(!_0x2f6f11[_0x4b2224(-0xe7,-_0xc0b621._0x3bfae8,-0xb0,-_0xc0b621._0xf9f810)])throw new Error(_0x4b2224(-0xfa,-_0xc0b621._0x308a49,-0x10b,-0x109));return _0x2f6f11['chatModel'];}function createRegistry(_0x434dee){const _0x12407a={_0x4331fa:0x235,_0x13ee57:0x25e,_0x2ca5c5:0xaf,_0x212de8:0x1fb,_0x5ae7e7:0x25f},_0x5cac4d={_0xe5447d:0x122,_0x566039:0xd5},_0x1a2e6e={_0x3ef134:0xb0,_0x2275a9:0x38};if(_0x434dee[_0x7cf638(0x1fe,_0x12407a._0x4331fa,0x227,_0x12407a._0x13ee57)])return _0x434dee[_0x1f675c(0xeb,_0x12407a._0x2ca5c5,0xce,0xd8)];const _0x1420e4=createExtensionRegistry();function _0x7cf638(_0x4eeba6,_0x4fa6f6,_0x446e6f,_0x30dbe4){return _0xc4fa22(_0x4eeba6,_0x4fa6f6-_0x1a2e6e._0x3ef134,_0x4fa6f6- -0x228,_0x30dbe4-_0x1a2e6e._0x2275a9);}const _0x573568=_0x434dee[_0x7cf638(_0x12407a._0x212de8,0x245,_0x12407a._0x5ae7e7,0x256)]??[];for(const _0xf5ac06 of _0x573568){_0x1420e4['register'](_0xf5ac06);}function _0x1f675c(_0x7855ec,_0xf8b047,_0x4af51d,_0x547f96){return _0x2cb4b9(_0x4af51d,_0xf8b047-_0x5cac4d._0xe5447d,_0xf8b047-0x78,_0x547f96-_0x5cac4d._0x566039);}return _0x1420e4;}var Agent=class{['_systemPrompt'];[_0x2cb4b9(0x4f,-0x19,0x0,-0x1d)];['metrics'];['sessionId'];[_0x2cb4b9(-0x57,-0x60,-0x1b,-0x39)];[_0x2cb4b9(0x8d,0x6f,0x5a,0x50)];[_0x2cb4b9(0xaf,0xad,0x6c,0x7e)];constructor(_0x5d0fb6={}){const _0x49a09a={_0x12b79e:0x1e,_0x54929f:0x1f,_0x1864b2:0x1f,_0x583db3:0x22,_0x2eac62:0x47d,_0x47d48b:0x3ff,_0x2492a7:0x4bd,_0x3bceb1:0x4dd,_0x56c12:0x49a,_0x33b720:0x3c,_0x3326bb:0xa,_0x38c25d:0x5e,_0x8463b4:0x489,_0xeb071e:0x474,_0x5b00e4:0x45,_0x40bb90:0x4f4,_0x17ce5c:0x54,_0x12b943:0x11},_0x1fcc86={_0x5f0c6e:0x21,_0x1791aa:0x2c3},_0x1f91f8={_0x4fe510:0x1eb},_0x270384={_0x6e6f7:0x10c,_0x186c1c:0x10,_0x414582:0x5a},_0x4ce0c0={_0x125227:0x46e,_0x5e6b01:0xf2};function _0x2f42ba(_0x194045,_0x27e56e,_0x52ba65,_0x643e83){return _0x2cb4b9(_0x27e56e,_0x27e56e-0x88,_0x194045-_0x4ce0c0._0x125227,_0x643e83-_0x4ce0c0._0x5e6b01);}function _0x394a45(_0xf77702,_0xe2b1b8,_0x2aee27,_0x52c6ba){return _0x2cb4b9(_0x52c6ba,_0xe2b1b8-_0x270384._0x6e6f7,_0xe2b1b8- -_0x270384._0x186c1c,_0x52c6ba-_0x270384._0x414582);}this[_0x394a45(-_0x49a09a._0x12b79e,0x14,-0x30,-_0x49a09a._0x54929f)]=_0x5d0fb6[_0x394a45(-_0x49a09a._0x1864b2,0x14,_0x49a09a._0x583db3,0x5c)]??createSessionId(),this[_0x2f42ba(0x4da,0x4e1,0x4ef,0x4a5)]=0x0,this[_0x394a45(0x11,0x32,0x1b,0x86)]=_0x5d0fb6['systemPrompt']??'',this[_0x2f42ba(0x453,0x47d,_0x49a09a._0x2eac62,0x43d)]=(_0x5d0fb6[_0x2f42ba(0x453,0x42e,_0x49a09a._0x47d48b,0x466)]??[])[_0x2f42ba(0x48a,_0x49a09a._0x2492a7,_0x49a09a._0x3bceb1,_0x49a09a._0x56c12)](normalizeMessage),this[_0x394a45(0x55,0x4a,_0x49a09a._0x33b720,0x16)]=createDefaultMessage(_0x5d0fb6[_0x394a45(-0x23,_0x49a09a._0x3326bb,0x4f,_0x49a09a._0x38c25d)]),this[_0x2f42ba(_0x49a09a._0x8463b4,0x472,_0x49a09a._0xeb071e,0x475)]=createAgentMetrics({'getContextWindowLimit':_0x5d0fb6[_0x394a45(0x6a,_0x49a09a._0x5b00e4,0x88,0x96)]});const _0x5aad7a=_0x5d0fb6[_0x394a45(-0x17,0x1d,0x38,0x5f)],_0xeea11d=async(_0x1c6f7f,_0x202713)=>{function _0x5b529e(_0x43bdb6,_0x5b235a,_0x148004,_0x5e0aa5){return _0x2f42ba(_0x43bdb6- -_0x1f91f8._0x4fe510,_0x148004,_0x148004-0x6d,_0x5e0aa5-0x1bb);}function _0x57c173(_0x46c878,_0x102731,_0x219ec1,_0x5e9abb){return _0x394a45(_0x46c878-0xf4,_0x219ec1-0x16,_0x219ec1-0xa,_0x5e9abb);}this[_0x57c173(0x12,0x62,_0x1fcc86._0x5f0c6e,-0x1)][_0x5b529e(0x2a9,0x292,0x2f5,_0x1fcc86._0x1791aa)](_0x1c6f7f),await _0x5aad7a?.(_0x1c6f7f,_0x202713);},_0x172db0=createInternalToolRuntime(_0x5d0fb6['tools']??[],{'onEvent':_0xeea11d,'onToolCall':_0x5d0fb6['onToolCall']});this['deps']={'registry':createRegistry(_0x5d0fb6),'chatModel':resolveChatModel(_0x5d0fb6),'toolRuntime':_0x172db0,'askUser':_0x5d0fb6[_0x2f42ba(0x4d8,_0x49a09a._0x40bb90,0x4be,0x4a3)],'onEvent':_0xeea11d,'sessionDir':_0x5d0fb6[_0x394a45(0x82,_0x49a09a._0x17ce5c,_0x49a09a._0x12b943,0x6c)]};}get[_0x2cb4b9(0x3d,-0x64,-0x17,-0x32)](){const _0x4dc7de={_0x25b176:0x99,_0x13b569:0x44};function _0x420b36(_0x3d222c,_0xb709ef,_0x5e12a5,_0x4c2c5a){return _0x2cb4b9(_0xb709ef,_0xb709ef-0x179,_0x3d222c-0x43,_0x4c2c5a-0x37);}return this[_0x420b36(0x85,_0x4dc7de._0x25b176,_0x4dc7de._0x13b569,0xcf)];}[_0xc4fa22(0x44f,0x40e,0x447,0x47b)](_0x1f1d48=[]){const _0x4714fb={_0x3d75c8:0x323,_0x18ce2b:0x307,_0x549386:0x322,_0x1fb78c:0x343,_0x82a87:0x363,_0x311092:0x38b,_0x9dcb40:0x344},_0x3f50ea={_0x253809:0x23};function _0x81b50a(_0x637205,_0xa784d2,_0x459b87,_0x566c79){return _0xc4fa22(_0x566c79,_0xa784d2-0x1e3,_0xa784d2- -0x1f3,_0x566c79-_0x3f50ea._0x253809);}function _0x508d12(_0x5d25b4,_0xc1f5ce,_0x43a808,_0x31a357){return _0x2cb4b9(_0x31a357,_0xc1f5ce-0x1c,_0x43a808-0x323,_0x31a357-0x11c);}this[_0x508d12(0x2ea,0x2e8,_0x4714fb._0x3d75c8,0x2f4)][_0x508d12(_0x4714fb._0x18ce2b,_0x4714fb._0x549386,_0x4714fb._0x1fb78c,_0x4714fb._0x82a87)][_0x508d12(_0x4714fb._0x311092,0x32d,_0x4714fb._0x9dcb40,0x2f0)](_0x1f1d48);}['setSystemPrompt'](_0x49566e,_0x356f36={}){const _0x2c600a={_0x10c59f:0x27f,_0x2a9872:0x267},_0x84293f={_0x234422:0x21,_0x46e8af:0x280};this['_systemPrompt']=_0x49566e;function _0x17b005(_0xe20799,_0x2d233e,_0x1d603b,_0x534257){return _0x2cb4b9(_0x1d603b,_0x2d233e-_0x84293f._0x234422,_0x2d233e- -_0x84293f._0x46e8af,_0x534257-0xc2);}_0x356f36[_0x17b005(-_0x2c600a._0x10c59f,-0x283,-0x24c,-_0x2c600a._0x2a9872)]===!![]&&(this['messages']=[],this['turnIndex']=0x0);}[_0xc4fa22(0x3ff,0x48a,0x443,0x428)](_0x5d7a03){const _0x3831e2={_0x157cef:0x463};function _0x59c8a1(_0x22204f,_0x588de7,_0x42297b,_0x408b33){return _0xc4fa22(_0x588de7,_0x588de7-0x2e,_0x408b33- -_0x3831e2._0x157cef,_0x408b33-0x8b);}this[_0x59c8a1(0xa,-0x60,-0x48,-0x19)]=_0x5d7a03;}['setChatModel'](_0x38a7be){const _0x47646d={_0x576f9e:0x9d,_0x343c2e:0x42,_0x1e84b1:0xac,_0x47bec3:0x58},_0x3fb7df={_0xa69579:0x44d},_0x13f727={_0x5ca168:0x112};function _0x205ff6(_0x13c2b9,_0x16ed4d,_0x231802,_0x1f15a2){return _0xc4fa22(_0x13c2b9,_0x16ed4d-_0x13f727._0x5ca168,_0x1f15a2- -0x3bd,_0x1f15a2-0x1b1);}function _0x4823cd(_0xbe77cb,_0x183730,_0x44abcf,_0x1a336b){return _0x2cb4b9(_0x44abcf,_0x183730-0x1d8,_0xbe77cb-_0x3fb7df._0xa69579,_0x1a336b-0x1d9);}this[_0x205ff6(_0x47646d._0x576f9e,_0x47646d._0x343c2e,_0x47646d._0x1e84b1,0x69)][_0x205ff6(0x42,0x3a,0x16,_0x47646d._0x47bec3)]=_0x38a7be;}async[_0xc4fa22(0x445,0x47d,0x459,0x45e)](_0x30a059=this[_0xc4fa22(0x4b9,0x493,0x480,0x441)],_0x55a03a={}){const _0x2218e8={_0x1a9e40:0x22e,_0x4b9af8:0x276,_0x331b5f:0x24b,_0x1657f7:0x2d7,_0x37da30:0x2b8,_0x141143:0x30b,_0x2df868:0x2c3,_0x51b2e4:0x279,_0x419a37:0x2cf,_0x3ce988:0x2a8,_0x29d999:0x298,_0x1cfd95:0x217,_0x5333ab:0x234,_0x594ec0:0x249,_0xb52722:0x282,_0x141f97:0x25e,_0x502dbb:0x26f,_0x76da31:0x284,_0x184969:0x24c,_0x5a8269:0x2fd,_0x4177fc:0x29b,_0x29f0cc:0x26f,_0x1b4c73:0x284,_0x161fae:0x2b6,_0x31ab24:0x2e7,_0x5d73d4:0x250,_0x3aed72:0x2f3,_0x27ed76:0x2d4,_0x441290:0x30c,_0x2160b8:0x2de},_0x26f8b1={_0xe8c097:0xbf},_0x539a29={_0x4bf881:0x14,_0xce65e:0x29f};if(!_0x30a059)throw new Error(_0xbef2e8(_0x2218e8._0x1a9e40,_0x2218e8._0x4b9af8,0x269,_0x2218e8._0x331b5f));function _0x46bc76(_0xe52669,_0x6295a4,_0x463266,_0x49de5e){return _0x2cb4b9(_0x49de5e,_0x6295a4-_0x539a29._0x4bf881,_0x463266-_0x539a29._0xce65e,_0x49de5e-0x145);}function _0xbef2e8(_0x201bff,_0xfdd5d4,_0x4b90d5,_0x445412){return _0x2cb4b9(_0x201bff,_0xfdd5d4-_0x26f8b1._0xe8c097,_0xfdd5d4-0x281,_0x445412-0xf4);}this[_0x46bc76(_0x2218e8._0x1657f7,_0x2218e8._0x37da30,_0x2218e8._0x141143,0x2ba)]+=0x1;try{const _0x524421=await runTurn({'sessionId':this[_0x46bc76(0x2fb,0x295,_0x2218e8._0x2df868,_0x2218e8._0x51b2e4)],'turnId':createTurnId(this[_0x46bc76(0x2cf,0x346,0x30b,0x2be)]),'streaming':_0x55a03a[_0xbef2e8(_0x2218e8._0x419a37,0x2b7,_0x2218e8._0x3ce988,0x2f8)],'signal':_0x55a03a[_0x46bc76(0x298,0x261,_0x2218e8._0x29d999,0x281)],'system':this[_0xbef2e8(0x26f,0x26a,_0x2218e8._0x1cfd95,0x237)],'messages':this[_0x46bc76(_0x2218e8._0x5333ab,_0x2218e8._0x594ec0,0x284,_0x2218e8._0x4b9af8)],'message':normalizeUserInput(_0x30a059)},this[_0x46bc76(_0x2218e8._0xb52722,0x26f,0x29f,0x2d2)]);return this['messages']=_0x524421['state'][_0x46bc76(_0x2218e8._0x419a37,0x29e,0x284,_0x2218e8._0x141f97)]['map'](normalizeMessage),_0x524421;}catch(_0x161660){if(_0x161660 instanceof TurnFailedError){this[_0x46bc76(0x24c,_0x2218e8._0x502dbb,_0x2218e8._0x76da31,_0x2218e8._0x184969)]=synthesizeMissingToolResults(_0x161660[_0x46bc76(_0x2218e8._0x5a8269,0x2d1,0x2d0,_0x2218e8._0x4177fc)][_0x46bc76(_0x2218e8._0x29f0cc,0x29b,_0x2218e8._0x1b4c73,_0x2218e8._0x161fae)][_0xbef2e8(0x279,0x29d,_0x2218e8._0x31ab24,_0x2218e8._0x5d73d4)](normalizeMessage));throw _0x161660[_0xbef2e8(_0x2218e8._0x3aed72,_0x2218e8._0x27ed76,_0x2218e8._0x441290,_0x2218e8._0x2160b8)];}throw _0x161660;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
1
+ (function(_0x50d43f,_0x323de3){const _0x2b63e1={_0x5f426f:0x384,_0x4fe3c4:0x3d8,_0x4fcdb8:0x393,_0x1b14e2:0x3a9,_0x21489a:0x408,_0x3418c5:0x1df,_0x38307d:0x1a0,_0x3a05da:0x401,_0x932432:0x3d3,_0x8c92cc:0x3b1,_0x25a689:0x23d,_0xa63f7d:0x25d,_0x1f6737:0x1d1,_0x37f105:0x49c,_0x3a91e0:0x463,_0x5ae64d:0x461,_0x23ebc3:0x3bc,_0x1f8c52:0x40b};function _0x2282e5(_0x4e8245,_0x576033,_0x4119bc,_0x2a603e){return _0x1a80(_0x2a603e-0xf7,_0x4e8245);}function _0x5297b1(_0x5748da,_0x57bbbd,_0x2b5805,_0x232969){return _0x1a80(_0x57bbbd-0x2fd,_0x2b5805);}const _0x30ffd1=_0x50d43f();while(!![]){try{const _0x22c44c=parseInt(_0x5297b1(_0x2b63e1._0x5f426f,_0x2b63e1._0x4fe3c4,0x3d3,_0x2b63e1._0x4fcdb8))/0x1*(-parseInt(_0x5297b1(_0x2b63e1._0x1b14e2,0x3f6,_0x2b63e1._0x21489a,0x42c))/0x2)+-parseInt(_0x2282e5(0x1f0,_0x2b63e1._0x3418c5,_0x2b63e1._0x38307d,0x1c9))/0x3+-parseInt(_0x5297b1(0x44e,_0x2b63e1._0x3a05da,_0x2b63e1._0x932432,_0x2b63e1._0x8c92cc))/0x4+parseInt(_0x2282e5(_0x2b63e1._0x25a689,0x246,0x279,_0x2b63e1._0xa63f7d))/0x5+-parseInt(_0x2282e5(_0x2b63e1._0x1f6737,0x1c8,0x1a6,0x1ca))/0x6+parseInt(_0x5297b1(_0x2b63e1._0x37f105,0x44e,_0x2b63e1._0x3a91e0,_0x2b63e1._0x5ae64d))/0x7+parseInt(_0x5297b1(_0x2b63e1._0x23ebc3,0x3cd,0x3d3,_0x2b63e1._0x1f8c52))/0x8;if(_0x22c44c===_0x323de3)break;else _0x30ffd1['push'](_0x30ffd1['shift']());}catch(_0x2cb3f1){_0x30ffd1['push'](_0x30ffd1['shift']());}}}(_0x5da1,0x6a1c8));import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-SEP4YYY3.js';function _0x11602f(_0x315f2f,_0x29991b,_0x801b2f,_0x152c1f){const _0x39ea9c={_0x406fc9:0x214};return _0x1a80(_0x315f2f-_0x39ea9c._0x406fc9,_0x29991b);}import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x1b0f2c){const _0x3acab0={_0x45913e:0x232,_0x38cf54:0x2aa,_0xa17819:0x207,_0x3fbcdd:0x259,_0x6a1f6c:0x2a5},_0x464407={_0x580763:0x104};function _0x1080bb(_0x52b885,_0x371e0e,_0x51e552,_0xc7dece){return _0x1a80(_0x52b885-0x2c1,_0x51e552);}function _0xa77c7c(_0x3b2e6e,_0x11f375,_0x4aad8b,_0x54ea4b){return _0x1a80(_0x4aad8b-_0x464407._0x580763,_0x3b2e6e);}return typeof _0x1b0f2c===_0xa77c7c(_0x3acab0._0x45913e,0x24a,0x225,0x242)&&_0x1b0f2c!==null&&!Array[_0xa77c7c(_0x3acab0._0x38cf54,_0x3acab0._0xa17819,_0x3acab0._0x3fbcdd,_0x3acab0._0x6a1f6c)](_0x1b0f2c);}function isToolOutputEnvelope(_0x4e7e4d){const _0x51ca8c={_0x5dd024:0x153,_0x474546:0x187,_0x3110a3:0x164,_0x169116:0x1da,_0x407e10:0x2cf,_0x1fd12f:0x288,_0x482ad0:0x103,_0x1fcfcf:0x127,_0x56c293:0x2ad,_0x359eae:0x2c1},_0x15f6e2={_0x4dbc25:0x18c};function _0x476a30(_0x3b7b6a,_0x4d4798,_0x1a6c1e,_0xe34752){return _0x1a80(_0x3b7b6a-0x32,_0x4d4798);}function _0x2c3a28(_0x4ee8e2,_0x294b60,_0x3ee1b5,_0x192c6a){return _0x1a80(_0x192c6a-_0x15f6e2._0x4dbc25,_0x294b60);}if(typeof _0x4e7e4d!==_0x476a30(_0x51ca8c._0x5dd024,0x101,0x16c,0x12b)||_0x4e7e4d===null||Array[_0x476a30(_0x51ca8c._0x474546,0x172,_0x51ca8c._0x3110a3,_0x51ca8c._0x169116)](_0x4e7e4d))return![];if(typeof _0x4e7e4d[_0x2c3a28(0x248,_0x51ca8c._0x407e10,0x26a,_0x51ca8c._0x1fd12f)]!==_0x476a30(0x101,_0x51ca8c._0x482ad0,_0x51ca8c._0x1fcfcf,0x104))return![];const _0x58a39a=_0x4e7e4d[_0x2c3a28(_0x51ca8c._0x56c293,0x299,0x2b8,_0x51ca8c._0x359eae)];return _0x58a39a===void 0x0||isJsonObject(_0x58a39a);}function validateAgainstSchema(_0x577002,_0x401e48,_0x2df5d0){const _0x299675={_0x417636:0x28f,_0x3d636e:0x2a1,_0x3b9475:0x230,_0x4c111f:0x26c,_0x2784a2:0x2be,_0x5a608a:0x2d4,_0x1e5de6:0x306,_0x551aba:0x333,_0x4db7f2:0x2be,_0x3ecc09:0x2a8,_0x3238a4:0x23e,_0x5bc682:0x25a,_0x20488c:0x2c3,_0x24ab38:0x2f8,_0x5428fb:0x31d,_0x519b83:0x371,_0x4718e7:0x26d,_0x29a83b:0x2f8,_0x4bf27c:0x2eb,_0x46244e:0x2ec,_0x49f366:0x2bd,_0x16826c:0x26e,_0x5a70ac:0x298,_0x456f2d:0x324,_0x49a1cd:0x227,_0x5e7127:0x242,_0x44a9c9:0x231,_0x1fa974:0x282,_0x4c8f08:0x33f,_0xa3cc4d:0x279},_0xcaad7c={_0x3a5b01:0x25b},_0x30d686={_0x5a335:0x4be},_0x30d5d1={_0x4b84a1:0x1c0};function _0xa135f0(_0xd5b98f,_0x3bb393,_0x12368d,_0x158639){return _0x1a80(_0x3bb393- -0x3a5,_0xd5b98f);}function _0x5a49be(_0x11e90e,_0x179806,_0x5dc371,_0x348b77){return _0x1a80(_0x11e90e-_0x30d5d1._0x4b84a1,_0x179806);}switch(_0x2df5d0['type']){case'string':if(typeof _0x401e48!==_0x5a49be(_0x299675._0x417636,0x2e0,_0x299675._0x3d636e,0x2c5))throw new Error(_0xa135f0(-_0x299675._0x3b9475,-0x26d,-0x238,-_0x299675._0x4c111f)+_0x577002+_0x5a49be(0x312,_0x299675._0x2784a2,0x313,0x2e6));return;case _0x5a49be(0x2d8,0x2e7,0x31b,_0x299675._0x5a608a):if(typeof _0x401e48!=='number')throw new Error(_0x5a49be(0x2f8,_0x299675._0x1e5de6,_0x299675._0x551aba,_0x299675._0x4db7f2)+_0x577002+_0xa135f0(-_0x299675._0x3ecc09,-0x259,-_0x299675._0x3238a4,-_0x299675._0x5bc682));return;case _0xa135f0(-0x2dc,-_0x299675._0x20488c,-0x2d3,-0x2b9):if(typeof _0x401e48!=='boolean')throw new Error(_0x5a49be(_0x299675._0x24ab38,0x2b9,0x337,0x2d0)+_0x577002+_0x5a49be(_0x299675._0x5428fb,0x302,0x344,_0x299675._0x519b83));return;case _0x5a49be(0x2b2,0x2a3,_0x299675._0x4718e7,0x279):if(!Array['isArray'](_0x401e48))throw new Error(_0x5a49be(_0x299675._0x29a83b,_0x299675._0x4bf27c,_0x299675._0x46244e,0x2ac)+_0x577002+_0x5a49be(_0x299675._0x49f366,0x281,_0x299675._0x16826c,_0x299675._0x5a70ac));_0x401e48[_0xa135f0(-0x290,-0x2da,-_0x299675._0x456f2d,-0x298)]((_0x2f941a,_0x2b6bed)=>{function _0x4e55dc(_0x45f6b7,_0x158d9c,_0x3b452b,_0x36ede6){return _0xa135f0(_0x36ede6,_0x3b452b-_0x30d686._0x5a335,_0x3b452b-0x1a9,_0x36ede6-0x16);}validateAgainstSchema(_0x577002+'['+_0x2b6bed+']',_0x2f941a,_0x2df5d0[_0x4e55dc(_0xcaad7c._0x3a5b01,0x203,0x242,0x27a)]);});return;case'object':if(!isJsonObject(_0x401e48))throw new Error(_0xa135f0(-_0x299675._0x49a1cd,-0x26d,-_0x299675._0x5e7127,-0x269)+_0x577002+_0xa135f0(-_0x299675._0x44a9c9,-0x264,-_0x299675._0x1fa974,-0x268));for(const _0x5d3b39 of _0x2df5d0['required']??[]){if(!(_0x5d3b39 in _0x401e48))throw new Error(_0x5a49be(_0x299675._0x24ab38,0x2bc,0x2d7,_0x299675._0x4c8f08)+_0x577002+_0xa135f0(-0x2a3,-0x2a4,-0x2e6,-0x2e8)+_0x5d3b39+'\x22');}for(const [_0x5664d8,_0x27674d]of Object['entries'](_0x2df5d0[_0xa135f0(-0x2c7,-_0x299675._0xa3cc4d,-0x262,-0x299)])){_0x5664d8 in _0x401e48&&validateAgainstSchema(_0x577002+'.'+_0x5664d8,_0x401e48[_0x5664d8],_0x27674d);}}}function normalizeToolOutputValue(_0xfbd0b7){const _0x5e1820={_0x1ec01f:0x3f1,_0x30f640:0x3ec,_0x2ec3bf:0x3dc,_0x478366:0x155,_0x4a5900:0x13d,_0xb6aa1a:0x12f,_0x38f913:0x17b,_0x15c829:0x175,_0x9b8cdc:0x12e,_0x3217af:0x12f,_0x2ab9b2:0x3dd,_0xff390d:0x408,_0x36fd0a:0x10f,_0x38aef6:0x416,_0x4d1808:0x3f5,_0x5774ee:0x437,_0x3b9dc7:0x3c4,_0x52d154:0x1b8,_0x28a266:0x14b,_0x162673:0x1a4,_0x286f0a:0x19b,_0x36abe5:0x184,_0x239f10:0x172,_0x4866aa:0x141,_0x227dd4:0x3f0,_0x4e331c:0x3d3,_0x4ffd11:0x3a7};if(isToolOutputEnvelope(_0xfbd0b7))return{'output':_0xfbd0b7[_0x243fe3(_0x5e1820._0x1ec01f,0x3d4,_0x5e1820._0x30f640,_0x5e1820._0x2ec3bf)],'structured':_0xfbd0b7[_0x1bc602(_0x5e1820._0x478366,_0x5e1820._0x4a5900,_0x5e1820._0xb6aa1a,_0x5e1820._0x38f913)]??{'value':_0xfbd0b7[_0x1bc602(0xef,0x161,_0x5e1820._0x15c829,0x142)]},..._0xfbd0b7[_0x1bc602(_0x5e1820._0x9b8cdc,0x14d,_0x5e1820._0x3217af,0x14e)]!==void 0x0?{'content':_0xfbd0b7[_0x243fe3(0x3fd,_0x5e1820._0x2ab9b2,0x3dc,_0x5e1820._0xff390d)]}:{}};function _0x1bc602(_0x2eb268,_0x55eca6,_0x46b90b,_0x3e690f){return _0x1a80(_0x3e690f-0x46,_0x2eb268);}if(typeof _0xfbd0b7===_0x1bc602(0x15b,0xfa,_0x5e1820._0x36fd0a,0x115))return{'output':_0xfbd0b7,'structured':{'value':_0xfbd0b7}};function _0x243fe3(_0x22a441,_0x1ee246,_0x56e067,_0x15963b){return _0x1a80(_0x22a441-0x2f5,_0x1ee246);}if(typeof _0xfbd0b7===_0x243fe3(_0x5e1820._0x38aef6,_0x5e1820._0x4d1808,_0x5e1820._0x5774ee,_0x5e1820._0x3b9dc7)&&_0xfbd0b7!==null&&!Array[_0x1bc602(_0x5e1820._0x52d154,_0x5e1820._0x28a266,_0x5e1820._0x162673,_0x5e1820._0x286f0a)](_0xfbd0b7))return{'output':JSON[_0x1bc602(_0x5e1820._0x36abe5,0x172,_0x5e1820._0x239f10,_0x5e1820._0x4866aa)](_0xfbd0b7,null,0x2),'structured':_0xfbd0b7};return{'output':JSON[_0x243fe3(_0x5e1820._0x227dd4,_0x5e1820._0x4e331c,_0x5e1820._0x4ffd11,0x3ed)](_0xfbd0b7,null,0x2),'structured':{'value':_0xfbd0b7}};}function createToolOutput(_0x3d9252,_0x50b820={'value':_0x3d9252},_0x346747){return{'output':_0x3d9252,'structured':_0x50b820,..._0x346747!==void 0x0?{'content':_0x346747}:{}};}var ToolExecutionError=class extends Error{[_0xf76506(-0x23f,-0x1f6,-0x248,-0x1c0)];constructor(_0x19ebe5,_0x520461={}){const _0x1a6111={_0x2a3b8d:0x2a3,_0x36922d:0x2b3,_0x1aace2:0x2e3,_0x3f4309:0x31d,_0x3b3e65:0x2cb,_0x1f8523:0x31e,_0x152eca:0x302},_0x2d8d75={_0x595070:0x4da},_0x4f4157={_0x221b58:0x1da,_0x14f114:0x193,_0x1c56d4:0x40};super(_0x19ebe5),this[_0x148340(_0x1a6111._0x2a3b8d,0x2b4,_0x1a6111._0x36922d,_0x1a6111._0x1aace2)]=_0x148340(_0x1a6111._0x3f4309,_0x1a6111._0x3b3e65,_0x1a6111._0x1f8523,0x35e);function _0x131010(_0x296136,_0x29ee4a,_0x24829c,_0x37d8e4){return _0xf76506(_0x296136-_0x4f4157._0x221b58,_0x24829c-_0x4f4157._0x14f114,_0x37d8e4,_0x37d8e4-_0x4f4157._0x1c56d4);}function _0x148340(_0x48b17f,_0x2fb111,_0x460fb4,_0x4af77c){return _0xf76506(_0x48b17f-0x121,_0x48b17f-_0x2d8d75._0x595070,_0x4af77c,_0x4af77c-0x10c);}this[_0x148340(0x2e4,0x31a,_0x1a6111._0x152eca,0x2a7)]=_0x520461;}};function defineTool(_0x211e56){return _0x211e56;}var ToolRegistry=class{[_0x11602f(0x326,0x320,0x335,0x30b)]=new Map();constructor(_0x47b380=[]){const _0xfe9a9f={_0x3a767b:0x56,_0x33430f:0x34,_0x5ec563:0x92,_0x30f11a:0x83},_0x17f93e={_0x48d033:0x145};function _0x3e9b70(_0x53b7f9,_0x4ba4f3,_0x5f55c7,_0x43c8f0){return _0xf76506(_0x53b7f9-0x6b,_0x43c8f0-0x23b,_0x4ba4f3,_0x43c8f0-_0x17f93e._0x48d033);}for(const _0xe2ba26 of _0x47b380){this[_0x3e9b70(_0xfe9a9f._0x3a767b,_0xfe9a9f._0x33430f,_0xfe9a9f._0x5ec563,_0xfe9a9f._0x30f11a)](_0xe2ba26);}}[_0x11602f(0x387,0x368,0x364,0x351)](_0x389879){const _0x5da97a={_0x40e26b:0x2a,_0x1804c0:0x24,_0x27b1ca:0xb},_0x35e05b={_0x3c5949:0x30},_0x4367c4={_0x547490:0x313,_0x395a9b:0x77};function _0xce6359(_0x3fac3e,_0x560346,_0x2aab1f,_0xa2c18b){return _0x11602f(_0xa2c18b- -_0x4367c4._0x547490,_0x560346,_0x2aab1f-_0x4367c4._0x395a9b,_0xa2c18b-0xc9);}function _0x4267d1(_0x241bdd,_0x154531,_0x3abf14,_0x5e605c){return _0x11602f(_0x3abf14- -0xe,_0x241bdd,_0x3abf14-_0x35e05b._0x3c5949,_0x5e605c-0x190);}this[_0xce6359(0x16,-0x15,-0x21,0x13)]['set'](_0x389879[_0xce6359(-_0x5da97a._0x40e26b,_0x5da97a._0x1804c0,-0x2f,-_0x5da97a._0x27b1ca)],_0x389879);}['get'](_0x26df78){const _0x2d84f5={_0x239bb5:0x259,_0x51caff:0x26b,_0xb9cf07:0x25b},_0x3da073={_0x42490e:0xaf,_0x6ade1a:0x1b8};function _0x5e0d9b(_0x5b7b1b,_0xb28120,_0x2a49e5,_0x30405f){return _0xf76506(_0x5b7b1b-_0x3da073._0x42490e,_0x2a49e5- -0x7a,_0xb28120,_0x30405f-_0x3da073._0x6ade1a);}return this['toolsByName'][_0x5e0d9b(-_0x2d84f5._0x239bb5,-_0x2d84f5._0x51caff,-0x252,-_0x2d84f5._0xb9cf07)](_0x26df78);}[_0xf76506(-0x1a5,-0x1c9,-0x1e5,-0x180)](){const _0xcce6be={_0x6c5472:0x45a,_0x32e30c:0x3ea,_0x754488:0x44f,_0x1ee05e:0x465},_0x179af0={_0x3b9971:0x87,_0x1a3a2d:0x19d};function _0x4efd20(_0x432fbf,_0x23a9d1,_0x1435a6,_0x391f06){return _0x11602f(_0x23a9d1-0x167,_0x391f06,_0x1435a6-0xd2,_0x391f06-0xab);}function _0x1802d6(_0x4c6a0d,_0x2d5419,_0x23005a,_0x5f1c1d){return _0x11602f(_0x23005a-0xf7,_0x5f1c1d,_0x23005a-_0x179af0._0x3b9971,_0x5f1c1d-_0x179af0._0x1a3a2d);}return[...this[_0x1802d6(_0xcce6be._0x6c5472,_0xcce6be._0x32e30c,0x41d,_0xcce6be._0x754488)][_0x1802d6(0x47e,0x45b,0x441,_0xcce6be._0x1ee05e)]()];}[_0xf76506(-0x1de,-0x214,-0x24d,-0x213)](){const _0x5c1269={_0xe0edc:0x46,_0x3ad5d0:0x2e},_0x10cc8f={_0x59889a:0x1bf,_0x1281db:0x1de,_0x36ad91:0x1b1,_0x481e31:0x1e9,_0x34a7a4:0x31f},_0x1048fb={_0x378202:0xa1};function _0x4d4fbc(_0x2af1ee,_0x5d7c49,_0x918f69,_0xbed3f6){return _0x11602f(_0x5d7c49- -0x3b0,_0x2af1ee,_0x918f69-0x18f,_0xbed3f6-_0x1048fb._0x378202);}return this['list']()[_0x4d4fbc(-0x3f,-_0x5c1269._0xe0edc,-0x47,-_0x5c1269._0x3ad5d0)](_0x965db8=>{const _0x4bda20={_0x3d5bac:0x286,_0x51e706:0x1c7};function _0x2d3680(_0x50d68e,_0x2407fd,_0x3a05b6,_0x397f78){return _0x4d4fbc(_0x50d68e,_0x2407fd-_0x4bda20._0x3d5bac,_0x3a05b6-0x11f,_0x397f78-_0x4bda20._0x51e706);}function _0x2cd048(_0x8ac508,_0x2734aa,_0x177f19,_0xfd0192){return _0x4d4fbc(_0x2734aa,_0x177f19-0x34e,_0x177f19-0x25,_0xfd0192-0x1cb);}return{'name':_0x965db8[_0x2d3680(_0x10cc8f._0x59889a,_0x10cc8f._0x1281db,_0x10cc8f._0x36ad91,_0x10cc8f._0x481e31)],'description':_0x965db8['description'],'input_schema':_0x965db8[_0x2cd048(0x2f7,0x317,_0x10cc8f._0x34a7a4,0x30d)]};});}};function validateToolInput(_0x104ca6,_0x58118c){const _0x2d36d4={_0x3b1759:0x185,_0x1eb5f6:0x1b7,_0x16ef36:0x1b9};function _0x383f07(_0x224a90,_0x3d3b0a,_0x298734,_0x419ecd){return _0xf76506(_0x224a90-0x1d2,_0x224a90-0x382,_0x419ecd,_0x419ecd-0x100);}return validateAgainstSchema(_0x383f07(0x171,_0x2d36d4._0x3b1759,_0x2d36d4._0x1eb5f6,_0x2d36d4._0x16ef36),_0x104ca6,_0x58118c),_0x104ca6;}function deriveFinalToolOutput(_0x3cbe43){const _0x3d16a7={_0x3194d4:0x308,_0x1d4def:0x309,_0x5e6137:0x2e9,_0x4d0cc9:0x309,_0x3387bc:0x30a,_0x42dfed:0x2cc,_0x2affa2:0x1a0,_0x2676c7:0x1c9,_0x1d33cc:0x1bb,_0x44e5d6:0x1c2,_0x405ade:0x1bb,_0x3e07e1:0x1df,_0x1550d0:0x215,_0x585d7b:0x309,_0x18978c:0x34b,_0xf00f26:0x2f1},_0x58392f={_0x13ac24:0x68,_0x564e8d:0x198},_0xa1e799={_0x4f0772:0x1b,_0x37f82e:0x22};if(_0x3cbe43[_0x2ba7f8(_0x3d16a7._0x3194d4,_0x3d16a7._0x1d4def,_0x3d16a7._0x5e6137,0x2c3)]===0x0)return{'output':'','structured':{}};if(_0x3cbe43[_0x2ba7f8(0x353,_0x3d16a7._0x4d0cc9,0x2e4,0x2e2)]===0x1)return{'output':_0x3cbe43[0x0]['output'],'structured':_0x3cbe43[0x0][_0x2ba7f8(0x31c,_0x3d16a7._0x3387bc,0x35d,_0x3d16a7._0x42dfed)],..._0x3cbe43[0x0]['content']!==void 0x0?{'content':_0x3cbe43[0x0][_0x13bbfc(-_0x3d16a7._0x2affa2,-_0x3d16a7._0x2676c7,-_0x3d16a7._0x1d33cc,-0x1d6)]}:{}};function _0x2ba7f8(_0x53635a,_0x203788,_0x5331a3,_0x17441f){return _0x11602f(_0x203788- -0x3f,_0x5331a3,_0x5331a3-_0xa1e799._0x4f0772,_0x17441f-_0xa1e799._0x37f82e);}const _0x325e3d=_0x3cbe43['filter'](_0x505ede=>_0x505ede['content']!==void 0x0);function _0x13bbfc(_0x44a1d8,_0x495fa7,_0x3f67cf,_0x23da8f){return _0xf76506(_0x44a1d8-0xad,_0x3f67cf-_0x58392f._0x13ac24,_0x44a1d8,_0x23da8f-_0x58392f._0x564e8d);}return{'output':_0x3cbe43['map'](_0x446a03=>_0x446a03['output'])[_0x13bbfc(-_0x3d16a7._0x44e5d6,-_0x3d16a7._0x405ade,-_0x3d16a7._0x3e07e1,-_0x3d16a7._0x1550d0)](''),'structured':{'chunks':_0x3cbe43['map'](_0x5771b1=>_0x5771b1[_0x2ba7f8(0x2f3,0x30a,0x338,0x2f1)])},..._0x325e3d[_0x2ba7f8(0x2ca,_0x3d16a7._0x585d7b,_0x3d16a7._0x18978c,_0x3d16a7._0xf00f26)]===0x1?{'content':_0x325e3d[0x0]['content']}:{}};}function _0x5da1(){const _0x1a7cde=['yMvMB3jLvg9VBev4zwn1DgLVBG','C3rYAw5NAwz5','B3v0Chv0','oIbLEhbLy3rLzcbHCNjHEq','Dg9VBfjLC3vSDhm','ChvZAa','C2vZC2LVBKLK','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','DhLWzq','Dg9VBf9JywXS','mJq1mZu0nenIDuHHvG','zg9Uzq','zMLUywXFBwvZC2fNzq','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','y29UDgvUDa','CMvHC29UAw5NtwvZC2fNzuLK','zgvSDge','Dg90ywXszwfZB25PBMDuB2TLBNm','ywrKrxzLBNrmAxn0zw5LCG','CMvHC29UAw5Nx21LC3nHz2u','DxnLCL9TzxnZywDL','C29YDa','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','ywrK','Dg9VBhncEu5HBwu','y29TCgXLDgvK','yxnZAxn0yw50twvZC2fNzuLK','CMv0DxjU','y2HHDe1VzgvS','BgLZDfrVB2Xty2HLBwfZ','BNvTyMvY','CMfUzg9T','Aw5WDxq','C3rHz2u','ywz0zxjuB29SuMvZDwX0','ChjVDMLKzxjFCMv0CNK','DxnLCG','DhvYBKLK','zxjYB3i','B2jQzwn0','Dg90ywXuB2TLBNm','y29UDgvUDf9KzwX0yq','Dgv4Da','Aw5WDxrezwX0yq','x3n5C3rLBvbYB21WDa','ywz0zxjnzxnZywDLqxbWzw5K','Dg90ywXpDxrWDxruB2TLBNm','AxrLBxm','zMLUywXnzxnZywDL','C3LZDgvTuhjVBxb0','ChjVCgvYDgLLCW','BwvZC2fNzq','BM93','yxnZAxn0yw50x2nODw5R','C2v0vg9VBhm','yMvMB3jLqxnZAxn0yw50qxbWzw5K','BMv4Da','Aw5KzxG','BgvUz3rO','C3rYDwn0DxjLza','DMfSDwvZ','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','sw52ywXPzcb0B29SigLUChv0igf0ia','C2vZC2LVBI0','C3rYzwfTAw5N','y29UDgvUDeLUzgv4','Dg9VBf9YzwPLy3rLza','Dg9tDhjPBMC','CMvNAxn0CNK','Dw5RBM93BL90B29S','CMvHC29U','oIbLEhbLy3rLzcbVyMPLy3q','zgvSzxrL','y2f1C2u','DgHLBG','C2LNBMfS','zgvWCW','B3jKzxi','C3LZDgvT','Dg9VBfj1BNrPBwu','Bw9KzwXFCMvXDwvZDa','BwvZC2fNzxm','oIbLEhbLy3rLzcbUDw1Izxi','y29UDgv4DfDPBMrVD0XPBwL0','DhvYBL9JB21WBgv0zq','DxnHz2u','C3rYzwfT','mJK2nZeZowXxuuTHDq','oIbLEhbLy3rLzcbZDhjPBMC','z2v0','Aw5WDxruB2TLBNm','AxnbCNjHEq','BwfW','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','zxH0zw5ZAw9UCW','vw5RBM93BIb0B29SoIa','y29TCgXLDgu','Dg9VBf9ZDgfYDgvK','AxrLBuLK','oIbLEhbLy3rLzcbIB29SzwfU','B25vC2vYtwvZC2fNzq','zMLSDgvY','CMvQzwn0','C3vTBwfYEuLUzgv4','BgLZDa','Dg90ywXnB2rLBfrPBwvnCW','Dg9VBf9JB21WBgv0zwq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','mtaWnZuZmhj5rwL1Bq','CMvHC29UAw5Nvg9Rzw5Z','ywjVCNrLza','CMvHC29UAw5Nx2nODw5R','CNvU','C2v0u2vZC2LVBKLK','DgHPBMTPBMC','Aw5WDxrty2HLBwe','vg9VBev4zwn1DgLVBKvYCM9Y','C2vZC2LVBKrPCG','CNvUt2jZzxj2zxjZ','yxnRvxnLCG','yMvMB3jLrMLUywXpDxrWDxq','CMvNAxn0zxi','zNvUy3rPB24','zM9YrwfJAa','Dg9VBf9Yzxn1Bhq','DhvYBKLUzgv4','CMfJzq','C3rYAw5N','mtq5odC4nJrOBfHmrgW','CMvXDwvZDenVDw50','mJiYnJC3n1Dtuw14Ba','otGYodi0ueT3yNzQ','ywXS','Bwf4vg9Rzw5Z','DMfSDwu','C29Tzq','yMvMB3jLtw9KzwXszxf1zxn0','Dg9VBf91C2vFBwvZC2fNzq','Bwv0CMLJCW','mwnRvhDmva','Dg9VBf91C2u','CMvXDwvZDa','ywn0Aw9U','DhjHBNnMB3jTzxi','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','Dg90ywXjBNb1DfrVA2vUCW','yM9VBgvHBG','yxnZAxn0yw50x21LC3nHz2u','AM9PBG','ywjVCNq','Bw9KzwXdywXSq291BNq','DhvYBI0','B25fDMvUDa','zxHLy3v0zq','CMvZzxrnzxnZywDLCW','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBf91C2vFzgvSDge','CMvZCg9UC2u','Dg9VBhm','zgvMyxvSDe1LC3nHz2u','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','Bw9KzwXFCMvZCg9UC2u','yxjYyxK','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','BMfTzq','zw5HyMXLza','B25uB29Sq2fSBa','A2LUza','C2XPy2u','mta4otu3mhvMuhbnzG'];_0x5da1=function(){return _0x1a7cde;};return _0x5da1();}function createToolMeta(){return{'transforms':[]};}function _0xf76506(_0x53007b,_0x3a2289,_0x591c67,_0x152fc8){const _0x148131={_0x2e3fcd:0x32b};return _0x1a80(_0x3a2289- -_0x148131._0x2e3fcd,_0x591c67);}function createErrorToolResult(_0x1c2a59,_0x25ba96,_0x1f18ab,_0x19fdc6=[]){const _0x61df01={_0x3ad650:0x3c4,_0x1ffd13:0x3b7,_0x2502ea:0x3f9,_0x47c1a2:0xdc},_0x3bd398={_0xdbec0:0x12e,_0x58fbbc:0x1ee},_0x17781e={_0x367e07:0xf1,_0x26f6a4:0x110,_0xdecef7:0x1f};function _0x52299f(_0x5696dd,_0x34f7c5,_0x131bf9,_0x2419dd){return _0x11602f(_0x2419dd-_0x17781e._0x367e07,_0x34f7c5,_0x131bf9-_0x17781e._0x26f6a4,_0x2419dd-_0x17781e._0xdecef7);}function _0x356442(_0x55884a,_0x1a8892,_0x9979f0,_0xfe08d8){return _0x11602f(_0xfe08d8- -0x232,_0x1a8892,_0x9979f0-_0x3bd398._0xdbec0,_0xfe08d8-_0x3bd398._0x58fbbc);}return{'callId':_0x1c2a59['id'],'toolName':_0x1c2a59[_0x52299f(0x3cb,_0x61df01._0x3ad650,_0x61df01._0x1ffd13,_0x61df01._0x2502ea)],'status':_0x356442(0x100,_0x61df01._0x47c1a2,0x10d,0x102),'output':_0x25ba96,'structured':_0x1f18ab,'chunks':_0x19fdc6,'meta':createToolMeta()};}function createRejectedToolResult(_0x585bf8,_0x524cf1){const _0x4b3a14={_0xca4dec:0x4e3,_0x12b614:0x4cc,_0x4d7ce1:0x491,_0x5c4600:0x1fe,_0x369d55:0x1ae,_0x5c62f7:0x1de,_0x259eef:0x490},_0x23b471={_0x3f4b09:0x51,_0x19a637:0x59},_0x5ea3f0={_0x5d22d9:0x184,_0x17d708:0xa2},_0x2dbd8e=_0x524cf1?.['trim']()[_0x5a6807(_0x4b3a14._0xca4dec,_0x4b3a14._0x12b614,_0x4b3a14._0x4d7ce1,0x4c5)]?_0x524cf1:_0x56edb5(-0x215,-0x1cb,-_0x4b3a14._0x5c4600,-_0x4b3a14._0x369d55)+_0x585bf8[_0x56edb5(-0x1b9,-0x1de,-_0x4b3a14._0x5c62f7,-0x1bd)];function _0x5a6807(_0x161588,_0x148a55,_0x2d4935,_0x1216eb){return _0x11602f(_0x148a55-_0x5ea3f0._0x5d22d9,_0x1216eb,_0x2d4935-_0x5ea3f0._0x17d708,_0x1216eb-0x17e);}function _0x56edb5(_0x2386bd,_0x5ef9b0,_0x3d9045,_0x2b0d5e){return _0xf76506(_0x2386bd-_0x23b471._0x3f4b09,_0x5ef9b0-_0x23b471._0x19a637,_0x2386bd,_0x2b0d5e-0x2a);}return createErrorToolResult(_0x585bf8,_0x2dbd8e,{'error':'tool_rejected',..._0x524cf1?.['trim']()[_0x5a6807(0x4e8,0x4cc,_0x4b3a14._0x259eef,0x4db)]?{'reason':_0x524cf1}:{}});}function createAbortedToolResult(_0x1f3480,_0x364dbb,_0x2338c5=[]){const _0x4e077a={_0x2a3512:0x1ac,_0x1cb793:0x178,_0x2b6d67:0x16a};function _0x12dc9e(_0x16affa,_0x5e718c,_0x589b8b,_0x4571d7){return _0x11602f(_0x16affa- -0x4e0,_0x589b8b,_0x589b8b-0x119,_0x4571d7-0x126);}function _0x440551(_0x75122f,_0x2141e6,_0x25e8e2,_0x1b446a){return _0xf76506(_0x75122f-0x3b,_0x1b446a-0x598,_0x25e8e2,_0x1b446a-0x12e);}const _0x571ab7=toAbortError(_0x364dbb);return createErrorToolResult(_0x1f3480,_0x571ab7[_0x12dc9e(-0x19f,-0x184,-0x157,-_0x4e077a._0x2a3512)],{'error':_0x571ab7[_0x12dc9e(-0x19f,-_0x4e077a._0x1cb793,-0x1ed,-_0x4e077a._0x2b6d67)],'aborted':!![]},_0x2338c5);}function createSuccessToolResult(_0xeae066,_0x54a849,_0x41d28e){const _0x2ce58f={_0x3766e8:0x296,_0x1c465f:0x243,_0x1341c9:0x290,_0x54cc44:0x25d,_0x1badb0:0x1eb,_0x5eab9d:0x20c,_0x1ecd1f:0x1be,_0x5c7e49:0x171,_0x182812:0x1da,_0x52e54a:0x1ff},_0x4171e0={_0x16b4e0:0x15e,_0x467cd4:0xf8},_0x4fc9f3={_0x4733d6:0x54b};function _0x774756(_0x193993,_0x17f61b,_0x2c4040,_0x43deb1){return _0x11602f(_0x43deb1- -_0x4fc9f3._0x4733d6,_0x193993,_0x2c4040-0x144,_0x43deb1-0x137);}function _0x8dc42(_0x11191e,_0x527ab0,_0x30bdcd,_0xc40f71){return _0x11602f(_0x527ab0- -_0x4171e0._0x16b4e0,_0xc40f71,_0x30bdcd-0x1b6,_0xc40f71-_0x4171e0._0x467cd4);}return{'callId':_0xeae066['id'],'toolName':_0xeae066[_0x774756(-_0x2ce58f._0x3766e8,-0x288,-0x222,-_0x2ce58f._0x1c465f)],'status':'ok','output':_0x54a849[_0x774756(-_0x2ce58f._0x1341c9,-_0x2ce58f._0x54cc44,-0x28c,-0x23b)],'structured':_0x54a849[_0x8dc42(0x1d5,_0x2ce58f._0x1badb0,_0x2ce58f._0x5eab9d,0x1df)],..._0x54a849[_0x8dc42(0x1ef,_0x2ce58f._0x1ecd1f,_0x2ce58f._0x5c7e49,_0x2ce58f._0x182812)]!==void 0x0?{'content':_0x54a849[_0x8dc42(0x1c9,_0x2ce58f._0x1ecd1f,0x1df,_0x2ce58f._0x52e54a)]}:{},'chunks':_0x41d28e,'meta':createToolMeta()};}function createUnknownToolResult(_0x105087){const _0x16f35e={_0xdc145e:0x3d2,_0x4513ed:0x3c1,_0x3041de:0x3ac,_0x33e175:0x43,_0x2f27e4:0x26,_0x11a51a:0x16},_0x37c5d1={_0x48f047:0x45,_0x28f058:0xd3,_0x3f135d:0x99};function _0x48b6d9(_0x185777,_0x4d9cef,_0x23e0c1,_0x5bbfff){return _0xf76506(_0x185777-0x160,_0x23e0c1-0x1d6,_0x4d9cef,_0x5bbfff-0xaa);}function _0x13234b(_0x40842e,_0x46a3fd,_0xea75c9,_0x162c95){return _0x11602f(_0xea75c9-_0x37c5d1._0x48f047,_0x46a3fd,_0xea75c9-_0x37c5d1._0x28f058,_0x162c95-_0x37c5d1._0x3f135d);}return createErrorToolResult(_0x105087,_0x13234b(_0x16f35e._0xdc145e,_0x16f35e._0x4513ed,0x3b2,_0x16f35e._0x3041de)+_0x105087['name'],{'error':_0x48b6d9(-_0x16f35e._0x33e175,-_0x16f35e._0x2f27e4,-_0x16f35e._0x11a51a,0x2a)});}function isDispatchDecision(_0x1bd1a2){const _0xb767cd={_0x18d292:0x343,_0x71e79e:0x2b3,_0x52bcaa:0x82,_0x405766:0xe6},_0x103679={_0x1ac008:0xd6},_0x3b7ac0={_0x17029f:0x17a};function _0x56e0ca(_0x1a4d24,_0x1c475d,_0x45a291,_0x5d76bc){return _0xf76506(_0x1a4d24-_0x3b7ac0._0x17029f,_0x1a4d24-0x506,_0x45a291,_0x5d76bc-0x17f);}if(typeof _0x1bd1a2!==_0x56e0ca(0x2fc,_0xb767cd._0x18d292,0x2b8,0x347)||_0x1bd1a2===null)return![];function _0x4134d9(_0x261dca,_0x28206a,_0x29d11a,_0x1e67bb){return _0x11602f(_0x1e67bb- -0x2ac,_0x28206a,_0x29d11a-_0x103679._0x1ac008,_0x1e67bb-0x2);}return _0x1bd1a2['action']===_0x56e0ca(0x33b,0x33c,0x31c,0x2eb)||_0x1bd1a2[_0x56e0ca(0x2b9,0x2bd,_0xb767cd._0x71e79e,0x2e6)]===_0x4134d9(_0xb767cd._0x52bcaa,0x109,_0xb767cd._0x405766,0xd2);}function normalizeExecutionError(_0xdf31e7){const _0x146020={_0x2b8101:0x89,_0x5e3df9:0x49,_0x17e290:0x7e,_0x3461a0:0xa7},_0x3d30ba={_0x4f2860:0x2f8};if(_0xdf31e7 instanceof ToolExecutionError)return{'errorMessage':_0xdf31e7[_0x16d2ca(0x56,_0x146020._0x2b8101,_0x146020._0x5e3df9,0x50)],'structured':{'error':_0xdf31e7[_0x1b5130(_0x146020._0x17e290,0xd9,0xd5,0x8e)],..._0xdf31e7['structured']}};if(_0xdf31e7 instanceof Error)return{'errorMessage':_0xdf31e7['message'],'structured':{'error':_0xdf31e7[_0x1b5130(0xc2,0xd3,_0x146020._0x3461a0,0x8e)]}};function _0x1b5130(_0xf8fac4,_0x5d2f31,_0x1e8437,_0x4288d3){return _0xf76506(_0xf8fac4-0x12e,_0x4288d3-0x28c,_0x1e8437,_0x4288d3-0xd9);}function _0x16d2ca(_0x5a52d3,_0x15c3a6,_0x245c38,_0x11588b){return _0x11602f(_0x245c38- -_0x3d30ba._0x4f2860,_0x11588b,_0x245c38-0x1e4,_0x11588b-0xea);}const _0x58e52e=String(_0xdf31e7);return{'errorMessage':_0x58e52e,'structured':{'error':_0x58e52e}};}async function emitEvent(_0xa11cd7,_0x24bae3,_0x1b2269){await _0xa11cd7?.(_0x24bae3,_0x1b2269);}async function resolveDispatchDecision(_0x4d6b88,_0x1ca5eb,_0xda6821){const _0x286f99={_0x1489b8:0x370,_0x5ac3fa:0x1f3,_0x3f752a:0x1d8,_0x196b97:0x1fb,_0x2b89e3:0x200,_0x349047:0x1fd,_0x53f29c:0x206,_0xac3c99:0x34e,_0x1a19f7:0x360,_0x456873:0x327},_0x528a8f={_0x311911:0x1c5,_0x4f9650:0x5ab,_0x1cb2b4:0xf0},_0x2f647e={_0x6f94bd:0x26e,_0x4e476f:0x256,_0x30a192:0x283,_0x17d325:0x2a3,_0xb26ad0:0x28a,_0x376297:0x29f,_0x4224b7:0x2f3,_0xceec2:0x27f,_0x42af80:0x31f,_0x45858b:0x2cc,_0x34cd0c:0x311},_0x13767f={_0x5d3069:0x153};if(!_0x4d6b88)return{'action':'run'};function _0x51db93(_0x386297,_0x43c62f,_0x553f8b,_0x39d6a0){return _0x11602f(_0x553f8b- -0x181,_0x39d6a0,_0x553f8b-0xc7,_0x39d6a0-_0x13767f._0x5d3069);}const _0x595950=Promise['resolve']()[_0x410dba(0x3c4,0x3b0,0x388,_0x286f99._0x1489b8)](()=>_0x4d6b88(_0x1ca5eb,_0xda6821));if(!_0xda6821[_0x51db93(0x200,_0x286f99._0x5ac3fa,_0x286f99._0x3f752a,0x1f6)]){const _0x2bc852=await _0x595950;return isDispatchDecision(_0x2bc852)?_0x2bc852:{'action':_0x51db93(_0x286f99._0x196b97,_0x286f99._0x2b89e3,_0x286f99._0x349047,_0x286f99._0x53f29c)};}const _0x4d0c68=new Promise((_0x2ea704,_0x818bf1)=>{const _0x2d5ec1={_0x24a6b9:0x140,_0x51e16c:0x154},_0x1f24fa={_0x5edebb:0x28e,_0x46db0f:0x253,_0x2fc665:0x2a8,_0x2f9d28:0x29d,_0x5f580d:0x232,_0xac872c:0x24e,_0x129c94:0x286,_0x141194:0x248,_0x33823b:0x24c,_0x54050e:0x2fc,_0x16d5d7:0x2a8},_0x4e6162=()=>{function _0x26c402(_0x1572dc,_0x159191,_0x27b7f6,_0x431a4f){return _0x1a80(_0x27b7f6-0x163,_0x1572dc);}function _0x47ffca(_0x2bbd10,_0x495373,_0x565390,_0x161e33){return _0x1a80(_0x2bbd10-0x2cd,_0x565390);}_0xda6821[_0x26c402(_0x1f24fa._0x5edebb,_0x1f24fa._0x46db0f,_0x1f24fa._0x2fc665,0x2c8)]?.[_0x26c402(_0x1f24fa._0x2f9d28,_0x1f24fa._0x5f580d,_0x1f24fa._0xac872c,0x24d)](_0x26c402(0x27b,_0x1f24fa._0x129c94,_0x1f24fa._0x141194,_0x1f24fa._0x33823b),_0x4e6162),_0x818bf1(toAbortError(_0xda6821[_0x26c402(0x257,_0x1f24fa._0x54050e,_0x1f24fa._0x16d5d7,0x2a6)]?.['reason']));};function _0x3b84fb(_0x299702,_0x4dbcbf,_0x38697e,_0x12de8b){return _0x51db93(_0x299702-0x1e5,_0x4dbcbf-_0x2d5ec1._0x24a6b9,_0x38697e-_0x2d5ec1._0x51e16c,_0x12de8b);}function _0x1796b0(_0x1bf245,_0x539482,_0x58fc67,_0x1b95db){return _0x410dba(_0x1bf245- -0x152,_0x539482-0x19a,_0x58fc67-0x19b,_0x539482);}if(_0xda6821['signal']?.[_0x1796b0(0x296,0x264,0x26e,0x29b)]){_0x818bf1(toAbortError(_0xda6821[_0x3b84fb(0x356,0x32c,0x32c,0x317)][_0x1796b0(_0x2f647e._0x6f94bd,_0x2f647e._0x4e476f,0x23f,0x26d)]));return;}_0xda6821[_0x1796b0(0x273,_0x2f647e._0x30a192,_0x2f647e._0x17d325,_0x2f647e._0xb26ad0)]?.[_0x3b84fb(0x33b,_0x2f647e._0x376297,_0x2f647e._0x4224b7,0x324)](_0x3b84fb(_0x2f647e._0xceec2,_0x2f647e._0x42af80,_0x2f647e._0x45858b,_0x2f647e._0x34cd0c),_0x4e6162,{'once':!![]});}),_0x8e802a=await Promise[_0x410dba(_0x286f99._0xac3c99,_0x286f99._0x1a19f7,0x338,_0x286f99._0x456873)]([_0x595950,_0x4d0c68]);function _0x410dba(_0xcb72f9,_0x26ed3b,_0x298c5c,_0x20b1e5){return _0xf76506(_0xcb72f9-_0x528a8f._0x311911,_0xcb72f9-_0x528a8f._0x4f9650,_0x20b1e5,_0x20b1e5-_0x528a8f._0x1cb2b4);}return isDispatchDecision(_0x8e802a)?_0x8e802a:{'action':'run'};}async function executeToolCall(_0xdbb63c,_0x4264e8,_0x588e03,_0x2b9fb9,_0x1459b8){const _0x13e63c={_0x28b074:0x1c1,_0x5dd100:0x1a8,_0x599aee:0x1f9,_0x38a502:0xf5,_0x32793c:0xa9,_0x583ce3:0x9f,_0x5f36a0:0x143,_0x39bb46:0x181,_0x4d0687:0x190,_0x286713:0x17a,_0x50463b:0x1fe,_0x37993e:0x189,_0x4fbc96:0x5e,_0x24850c:0x14,_0x29b54d:0x15b,_0x400a7d:0x1a3,_0x1c9be1:0x19a,_0x3288d1:0x93,_0x4b1e94:0x1d6,_0x3e0e32:0x1c9,_0x165062:0x77,_0x1e3acc:0x6d,_0x2f33b7:0xa0,_0x499246:0xb9,_0x2d999c:0x9e,_0x46f2c3:0x4,_0x891c8e:0x0,_0x1d22b6:0x45,_0x4ea82a:0x35,_0x496f48:0x55,_0x14f0b8:0x82,_0x387df1:0x7e,_0x33ff22:0x213,_0x5bf1f4:0x217,_0x14028c:0x1cb,_0x14582b:0xa7,_0x5165bf:0xcd,_0x5802d1:0x1d0,_0x460090:0x216,_0x2029ee:0x1f1,_0x54cb3e:0x19f,_0x46f9a9:0x24,_0x2a48a8:0x37},_0x85255e={_0x310559:0x31e,_0xc71981:0x278,_0x26f478:0x2ca},_0x29a359={_0x2810b9:0x2d,_0x4033a3:0x175,_0x4828cd:0xf2},_0x81d2bd={_0x4c965c:0x185},_0x97ae1d={_0x42693a:0x15c},_0x377128={..._0x588e03,'toolCallId':_0x4264e8['id']};throwIfAborted(_0x377128[_0x5cb4f9(-_0x13e63c._0x28b074,-0x1be,-_0x13e63c._0x5dd100,-_0x13e63c._0x599aee)]);const _0x41bbb2=await resolveDispatchDecision(_0x2b9fb9,_0x4264e8,_0x377128);throwIfAborted(_0x377128['signal']);if(_0x41bbb2[_0xf5874e(-0xb5,-_0x13e63c._0x38a502,-_0x13e63c._0x32793c,-_0x13e63c._0x583ce3)]===_0x5cb4f9(-_0x13e63c._0x5f36a0,-_0x13e63c._0x39bb46,-0x18d,-_0x13e63c._0x4d0687)){const _0x4f89ad=createRejectedToolResult(_0x4264e8,_0x41bbb2[_0x5cb4f9(-_0x13e63c._0x286713,-_0x13e63c._0x50463b,-0x1ad,-_0x13e63c._0x37993e)]);return await emitEvent(_0x1459b8,{'type':_0xf5874e(-0x91,-_0x13e63c._0x4fbc96,-0x4b,-_0x13e63c._0x24850c),'toolCall':_0x4264e8,'result':_0x4f89ad},_0x377128),_0x4f89ad;}const _0x347101=_0xdbb63c[_0x5cb4f9(-_0x13e63c._0x29b54d,-_0x13e63c._0x400a7d,-_0x13e63c._0x1c9be1,-0x186)](_0x4264e8[_0xf5874e(-0x79,-0x78,-_0x13e63c._0x3288d1,-0xe5)]);if(!_0x347101){const _0x7e34a=createUnknownToolResult(_0x4264e8);return await emitEvent(_0x1459b8,{'type':_0x5cb4f9(-0x1d3,-_0x13e63c._0x1c9be1,-0x189,-_0x13e63c._0x4b1e94),'toolCall':_0x4264e8,'result':_0x7e34a},_0x377128),_0x7e34a;}function _0x5cb4f9(_0x13acfd,_0x2d7af3,_0x32d264,_0x3f2133){return _0x11602f(_0x32d264- -0x501,_0x3f2133,_0x32d264-_0x97ae1d._0x42693a,_0x3f2133-0xee);}function _0xf5874e(_0x314f5c,_0x77f685,_0x2ef7d6,_0x24086d){return _0xf76506(_0x314f5c-0x11,_0x2ef7d6-0x1a4,_0x77f685,_0x24086d-_0x81d2bd._0x4c965c);}throwIfAborted(_0x377128['signal']),await emitEvent(_0x1459b8,{'type':_0xf5874e(0x29,-0x23,-0x2c,-0x41),'toolCall':_0x4264e8},_0x377128);try{throwIfAborted(_0x377128[_0x5cb4f9(-0x1f9,-0x190,-0x1a8,-_0x13e63c._0x3e0e32)]);const _0x6bff1f=validateToolInput(_0x4264e8[_0xf5874e(-0x6e,-_0x13e63c._0x165062,-_0x13e63c._0x1e3acc,-_0x13e63c._0x2f33b7)],_0x347101['inputSchema']),_0x49e208=await _0x347101[_0xf5874e(-0x7d,-_0x13e63c._0x499246,-_0x13e63c._0x2d999c,-0xc4)](_0x6bff1f,_0x377128),_0x2316ae=[],_0x4dd8a3=addAbortListener(_0x377128[_0xf5874e(_0x13e63c._0x46f2c3,-0x37,-0x42,-0x1f)],()=>{function _0xc4f5a6(_0x1b2995,_0x20df24,_0x1dc978,_0xe4cfd8){return _0x5cb4f9(_0x1b2995-_0x29a359._0x2810b9,_0x20df24-_0x29a359._0x4033a3,_0xe4cfd8- -_0x29a359._0x4828cd,_0x1dc978);}void _0x49e208[_0xc4f5a6(-0x2a9,-_0x85255e._0x310559,-_0x85255e._0xc71981,-_0x85255e._0x26f478)](void 0x0)['catch'](()=>{});});try{throwIfAborted(_0x377128[_0xf5874e(_0x13e63c._0x891c8e,-_0x13e63c._0x1d22b6,-0x42,-0x94)]);let _0x26c68b=await _0x49e208[_0xf5874e(-_0x13e63c._0x4ea82a,-0x85,-_0x13e63c._0x496f48,-0x4)]();while(!_0x26c68b[_0xf5874e(-0xa0,-0xaf,-_0x13e63c._0x14f0b8,-0x81)]){throwIfAborted(_0x377128[_0xf5874e(-0x3c,-_0x13e63c._0x387df1,-0x42,0xa)]);const _0x593c0e=normalizeToolOutputValue(_0x26c68b[_0x5cb4f9(-0x1d7,-_0x13e63c._0x33ff22,-_0x13e63c._0x5bf1f4,-_0x13e63c._0x14028c)]);_0x2316ae[_0xf5874e(-_0x13e63c._0x14582b,-0x43,-0x88,-_0x13e63c._0x5165bf)](_0x593c0e),await emitEvent(_0x1459b8,{'type':'tool_output_chunk','toolCall':_0x4264e8,'chunk':_0x593c0e},_0x377128),throwIfAborted(_0x377128[_0x5cb4f9(-0x1dc,-0x1ce,-0x1a8,-0x176)]),_0x26c68b=await _0x49e208['next']();}throwIfAborted(_0x377128[_0x5cb4f9(-0x15e,-0x157,-_0x13e63c._0x5dd100,-_0x13e63c._0x5802d1)]);const _0x2962d7=_0x26c68b[_0x5cb4f9(-_0x13e63c._0x460090,-_0x13e63c._0x2029ee,-0x217,-0x1d1)]===void 0x0?deriveFinalToolOutput(_0x2316ae):normalizeToolOutputValue(_0x26c68b['value']),_0x109a25=createSuccessToolResult(_0x4264e8,_0x2962d7,_0x2316ae);return await emitEvent(_0x1459b8,{'type':_0x5cb4f9(-0x17b,-_0x13e63c._0x54cb3e,-_0x13e63c._0x37993e,-0x14d),'toolCall':_0x4264e8,'result':_0x109a25},_0x377128),_0x109a25;}catch(_0x256049){if(isAbortError(_0x256049)){const _0x3f4104=createAbortedToolResult(_0x4264e8,_0x256049,_0x2316ae);return await emitEvent(_0x1459b8,{'type':_0xf5874e(-0xc,-0x72,-0x23,_0x13e63c._0x46f9a9),'toolCall':_0x4264e8,'result':_0x3f4104},_0x377128),_0x3f4104;}const {errorMessage:_0x36e582,structured:_0x3408ce}=normalizeExecutionError(_0x256049),_0x32e799=createErrorToolResult(_0x4264e8,_0x36e582,_0x3408ce,_0x2316ae);return await emitEvent(_0x1459b8,{'type':_0xf5874e(-0x43,-0x22,-0x23,-_0x13e63c._0x2a48a8),'toolCall':_0x4264e8,'result':_0x32e799},_0x377128),_0x32e799;}finally{_0x4dd8a3();}}catch(_0x51bde1){if(isAbortError(_0x51bde1)){const _0x1c48cd=createAbortedToolResult(_0x4264e8,_0x51bde1);return await emitEvent(_0x1459b8,{'type':'tool_completed','toolCall':_0x4264e8,'result':_0x1c48cd},_0x377128),_0x1c48cd;}const {errorMessage:_0xf317c0,structured:_0x334c1f}=normalizeExecutionError(_0x51bde1),_0x2d71be=createErrorToolResult(_0x4264e8,_0xf317c0,_0x334c1f);return await emitEvent(_0x1459b8,{'type':'tool_completed','toolCall':_0x4264e8,'result':_0x2d71be},_0x377128),_0x2d71be;}}function createInternalToolRuntime(_0x2daa6b=[],_0x11e650={}){const _0x12f9fd={_0xbc2e94:0xbd,_0x504a0f:0x6c,_0x25bd99:0x98},_0x3c2c4d={_0x4c2b41:0x1a8,_0x460623:0x15f,_0x20ef6f:0x19a};let _0x3f8126=new ToolRegistry(_0x2daa6b);return{'listToolSchemas'(){function _0x5a539d(_0x1f6cad,_0x569bf2,_0xfed3d5,_0x522a80){return _0x1a80(_0xfed3d5-0x48,_0x1f6cad);}return _0x3f8126[_0x5a539d(0x15e,_0x3c2c4d._0x4c2b41,_0x3c2c4d._0x460623,_0x3c2c4d._0x20ef6f)]();},'setTools'(_0x2c83d5){_0x3f8126=new ToolRegistry(_0x2c83d5);},async 'executeCalls'(_0x7e127,_0x1573fe){const _0xcedd58={_0x3a8f5c:0x31,_0xfc00a0:0x2e,_0x3743cd:0x4,_0x4546e3:0x127,_0x51b523:0x153},_0x5bd5f7={_0x5e90c6:0x1a6},_0x463193={_0x28b593:0x213};function _0x5d72b4(_0x491dde,_0x209418,_0x18f91d,_0x1fa8f4){return _0x1a80(_0x491dde- -_0x463193._0x28b593,_0x1fa8f4);}return await Promise['all'](_0x7e127[_0x5d72b4(-_0x12f9fd._0xbc2e94,-_0x12f9fd._0x504a0f,-0x98,-_0x12f9fd._0x25bd99)](async _0x3c932c=>{const _0x2eed44={_0x5043a9:0x14c,_0x2d26e6:0x1a8};function _0x458a77(_0x2862af,_0x51f95d,_0x587ef5,_0xde249f){return _0x5d72b4(_0x2862af-0x28e,_0x51f95d-_0x5bd5f7._0x5e90c6,_0x587ef5-0x90,_0xde249f);}function _0x3825fc(_0x5cffdf,_0x8ccd59,_0x2da147,_0x39bf7e){return _0x5d72b4(_0x39bf7e-_0x2eed44._0x5043a9,_0x8ccd59-_0x2eed44._0x2d26e6,_0x2da147-0x14f,_0x8ccd59);}return await executeToolCall(_0x3f8126,_0x3c932c,_0x1573fe,_0x11e650[_0x3825fc(_0xcedd58._0x3a8f5c,_0xcedd58._0xfc00a0,_0xcedd58._0x3743cd,0x2f)],_0x11e650[_0x458a77(0x163,0x170,_0xcedd58._0x4546e3,_0xcedd58._0x51b523)]);}));},async 'execute'(_0x459444,_0x47e06b){const [_0x32a28d]=await this['executeCalls']([_0x459444],_0x47e06b);return _0x32a28d;}};}function getOrderedObserverExtensions(_0x485cce,_0x4859ef){const _0x446e43={_0x3f3451:0x59,_0x387e9e:0x6a,_0x29f42a:0x114,_0x1a296f:0x14a,_0x3101ad:0x137,_0x113f25:0x155},_0x219837={_0x1421bb:0x35a,_0x92a0fd:0x2fd,_0x301b5a:0x3a2,_0x30630e:0x31c,_0xd24a07:0x36f,_0x2a8c7a:0x31},_0x4599c3={_0x4a7e3f:0xbf,_0x5e1994:0x1ef},_0x4d06c8={_0x873449:0xd,_0x221d04:0x18d},_0x2c9696={_0xb10eb4:0x353},_0x44afb9={_0x4713c6:0xd3,_0x57342c:0x71};function _0x2da67a(_0x3cf9bc,_0x3a8ac6,_0x1a0052,_0x49cba6){return _0x11602f(_0x3a8ac6- -0x31a,_0x3cf9bc,_0x1a0052-_0x44afb9._0x4713c6,_0x49cba6-_0x44afb9._0x57342c);}function _0x5f2183(_0x4ffdac,_0x16cda5,_0x3d429c,_0x384a2d){return _0xf76506(_0x4ffdac-0x17b,_0x3d429c-_0x2c9696._0xb10eb4,_0x16cda5,_0x384a2d-0x138);}return _0x485cce[_0x2da67a(0x1f,_0x446e43._0x3f3451,0x17,_0x446e43._0x387e9e)](_0x37e948=>{function _0x366bd5(_0x41ef88,_0x3c84cc,_0x4c6417,_0x1b43ef){return _0x2da67a(_0x4c6417,_0x1b43ef-0x35a,_0x4c6417-_0x4d06c8._0x873449,_0x1b43ef-_0x4d06c8._0x221d04);}function _0x2d0bf0(_0x210e14,_0x209509,_0x55416d,_0x3ba434){return _0x2da67a(_0x55416d,_0x3ba434- -0xb,_0x55416d-_0x4599c3._0x4a7e3f,_0x3ba434-_0x4599c3._0x5e1994);}return _0x37e948[_0x366bd5(_0x219837._0x1421bb,0x35d,_0x219837._0x92a0fd,0x349)]!==![]&&_0x37e948[_0x366bd5(_0x219837._0x301b5a,0x396,_0x219837._0x30630e,_0x219837._0xd24a07)]===_0x4859ef&&_0x37e948[_0x2d0bf0(0x22,-_0x219837._0x2a8c7a,-0x1d,-0x1a)]==='observer';})[_0x5f2183(_0x446e43._0x29f42a,_0x446e43._0x1a296f,_0x446e43._0x3101ad,_0x446e43._0x113f25)]((_0x494b3e,_0x36daf4)=>_0x494b3e[_0x5f2183(0x156,0x168,0x16f,0x124)]-_0x36daf4['order']);}function getOrderedTransformerExtensions(_0x4220c8,_0x2b0964){const _0x17080f={_0x3eaa12:0x142,_0x5941fa:0x13f,_0x4ef68d:0x186,_0x51a6c4:0x1b0,_0x1dbff2:0x1b2},_0x536d17={_0x474d80:0x49e,_0x4a5ac1:0x4ab,_0x3628a1:0x45a,_0x2b9b9b:0x4a0,_0x276593:0x454,_0x257da8:0x450},_0x2967e0={_0x3988f3:0x352};function _0x129b64(_0x2af66c,_0x5be2f2,_0x5487d5,_0x339fce){return _0xf76506(_0x2af66c-0xde,_0x339fce-_0x2967e0._0x3988f3,_0x5487d5,_0x339fce-0x174);}function _0xaab44f(_0x560b0c,_0x2ed8fa,_0x39e6cf,_0x34a43e){return _0xf76506(_0x560b0c-0xed,_0x34a43e-0xbe,_0x2ed8fa,_0x34a43e-0xd8);}return _0x4220c8[_0x129b64(0x15c,_0x17080f._0x3eaa12,_0x17080f._0x5941fa,_0x17080f._0x4ef68d)](_0x3460c9=>{const _0x5f1649={_0xebf03c:0x5},_0x2bca3d={_0x58e329:0x4};function _0x2ae4b1(_0x472785,_0x597382,_0x2829e7,_0x35f801){return _0x129b64(_0x472785-_0x2bca3d._0x58e329,_0x597382-0xeb,_0x35f801,_0x2829e7-0x337);}function _0x6d5470(_0x43cb76,_0x33f08e,_0x9ee465,_0x194ad8){return _0x129b64(_0x43cb76-0x149,_0x33f08e-_0x5f1649._0xebf03c,_0x194ad8,_0x43cb76-0x382);}return _0x3460c9[_0x6d5470(_0x536d17._0x474d80,_0x536d17._0x4a5ac1,_0x536d17._0x3628a1,0x4b9)]!==![]&&_0x3460c9['stage']===_0x2b0964&&_0x3460c9[_0x6d5470(_0x536d17._0x2b9b9b,0x4da,0x481,_0x536d17._0x276593)]===_0x2ae4b1(0x492,0x481,0x43d,_0x536d17._0x257da8);})[_0xaab44f(-_0x17080f._0x51a6c4,-_0x17080f._0x1dbff2,-0x150,-0x15e)]((_0xc15f7f,_0x2c4897)=>_0xc15f7f[_0x129b64(0x13f,0x182,0x175,0x16e)]-_0x2c4897[_0x129b64(0x12a,0x17b,0x16f,0x16e)]);}function createExtensionRegistry(){const _0xc2bef3={_0x4a9cb7:0x170},_0x2fec28={_0x1a7d81:0x2da},_0xf1d6a7={_0x208875:0x36,_0x5c116d:0x8f},_0x1dd6b9=[];return{'register'(_0x2270d6){function _0x56c4bc(_0x2af923,_0x455347,_0xc1697e,_0x601c1a){return _0x1a80(_0x2af923- -0xaa,_0x601c1a);}_0x1dd6b9[_0x56c4bc(0x55,_0xf1d6a7._0x208875,_0xf1d6a7._0x5c116d,0xb)](_0x2270d6);},async 'runTransformers'(_0x4877ca,_0x4fa418,_0x16546f){function _0x4860ee(_0x5cf9a4,_0x2d2972,_0x54dcb1,_0x662897){return _0x1a80(_0x2d2972- -_0x2fec28._0x1a7d81,_0x662897);}let _0x39655d=_0x4fa418;for(const _0x301d59 of getOrderedTransformerExtensions(_0x1dd6b9,_0x4877ca)){_0x39655d=await _0x301d59[_0x4860ee(-0x19b,-_0xc2bef3._0x4a9cb7,-0x1a0,-0x17f)](_0x39655d,_0x16546f);}return _0x39655d;},async 'runObservers'(_0x3cd30c,_0x356a0b,_0x175b94){for(const _0x2c0778 of getOrderedObserverExtensions(_0x1dd6b9,_0x3cd30c)){await _0x2c0778['run'](_0x356a0b,_0x175b94);}}};}function createEmptySnapshot(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'toolCallCount':0x0,'totalModelTimeMs':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function createAgentMetrics(_0x15d10a={}){const _0x1ac1e5={_0x332fbf:0xf1},_0x1ee8e0={_0x1596fb:0x338,_0x29c1d6:0x36c,_0x354fbc:0x3c4,_0x5ca470:0x3fd,_0x2f29e7:0x38d,_0x217498:0x3cb,_0x1a482c:0x404,_0x2466e6:0x424,_0x30283b:0x3f1,_0x398c00:0x468,_0x2760ae:0x438,_0x5ac1e0:0x43a,_0x264786:0x3de,_0x65985f:0x3df,_0x5a6ebf:0x43b,_0x476c3e:0x43f,_0x3ab069:0x30a,_0x20f82e:0x2b8,_0x39a973:0x2e4,_0x57a862:0x31a,_0x5ef88b:0x31a,_0xfbbf66:0x346,_0x198eba:0x32f,_0x3f7526:0x35e,_0x51d493:0x3c1,_0x284152:0x412,_0x273f87:0x3e0,_0x529cff:0x406,_0x279f09:0x2da,_0x4fbb19:0x2df,_0x4b3853:0x2d8,_0x41b8f9:0x2ca,_0x35cf22:0x3bb,_0x2bf04c:0x40c,_0xc1e91a:0x2d2,_0x3a337e:0x35a,_0x55329b:0x41f,_0xcb1987:0x41f,_0x346c75:0x431,_0x53f83c:0x418,_0x2aa102:0x45f,_0x45b129:0x41e,_0x557f33:0x2d7,_0x66501a:0x2ec};let _0x1886e4=createEmptySnapshot();const _0x2688ea=new Set();let _0x3e9275;const _0x10fe05=()=>{const _0x3060e4={..._0x1886e4};for(const _0x2ef06f of _0x2688ea)_0x2ef06f(_0x3060e4);};return{'getSnapshot'(){return{..._0x1886e4};},'recordEvent'(_0x54c177){const _0x37e200={_0x547372:0x2e4};if(_0x54c177[_0x66935f(0x3a7,0x3e8,0x3e6,0x3b3)]===_0x301131(0x391,0x37e,0x341,_0x1ee8e0._0x1596fb)){_0x3e9275=Date['now']();const _0x3905b1=_0x15d10a['getContextWindowLimit']?.(_0x54c177[_0x66935f(_0x1ee8e0._0x29c1d6,_0x1ee8e0._0x354fbc,0x3c1,_0x1ee8e0._0x5ca470)]);_0x3905b1!==void 0x0&&(_0x1886e4={..._0x1886e4,'contextWindowLimit':_0x3905b1},_0x10fe05());return;}function _0x301131(_0x3d8c0c,_0xb40fb8,_0x52ddb6,_0x3cb721){return _0x1a80(_0x52ddb6-0x1f7,_0x3cb721);}if(_0x54c177['type']===_0x66935f(_0x1ee8e0._0x2f29e7,_0x1ee8e0._0x217498,0x3d5,_0x1ee8e0._0x1a482c)){const _0x1107f3=_0x54c177['response'][_0x66935f(_0x1ee8e0._0x2466e6,_0x1ee8e0._0x30283b,0x433,0x415)][_0x66935f(0x40f,_0x1ee8e0._0x398c00,_0x1ee8e0._0x2760ae,_0x1ee8e0._0x5ac1e0)],_0x560fba=_0x54c177[_0x66935f(0x41e,_0x1ee8e0._0x264786,0x3d1,_0x1ee8e0._0x65985f)][_0x66935f(_0x1ee8e0._0x5a6ebf,_0x1ee8e0._0x476c3e,0x433,0x422)]['outputTokens'],_0x2d0339=_0x54c177[_0x301131(_0x1ee8e0._0x3ab069,_0x1ee8e0._0x20f82e,_0x1ee8e0._0x39a973,_0x1ee8e0._0x57a862)][_0x301131(0x364,_0x1ee8e0._0x5ef88b,_0x1ee8e0._0xfbbf66,0x398)][_0x301131(_0x1ee8e0._0x198eba,0x35c,_0x1ee8e0._0x3f7526,0x341)]??0x0,_0x1cab4b=_0x1107f3+_0x560fba,_0x5d6936=_0x3e9275===void 0x0?0x0:Date[_0x66935f(0x409,_0x1ee8e0._0x51d493,_0x1ee8e0._0x284152,0x3ef)]()-_0x3e9275;_0x3e9275=void 0x0,_0x1886e4={..._0x1886e4,'totalTokens':_0x1886e4[_0x66935f(_0x1ee8e0._0x273f87,0x3d4,_0x1ee8e0._0x529cff,0x3f6)]+_0x1cab4b,'totalInputTokens':_0x1886e4[_0x301131(_0x1ee8e0._0x279f09,_0x1ee8e0._0x4fbb19,_0x1ee8e0._0x4b3853,_0x1ee8e0._0x41b8f9)]+_0x1107f3,'totalOutputTokens':_0x1886e4[_0x66935f(0x409,_0x1ee8e0._0x35cf22,_0x1ee8e0._0x2bf04c,0x3ef)]+_0x560fba,'totalReasoningTokens':_0x1886e4[_0x301131(0x309,0x340,0x302,0x30c)]+_0x2d0339,'modelCallCount':_0x1886e4[_0x301131(_0x1ee8e0._0xc1e91a,0x31c,0x2dd,0x2a2)]+0x1,'totalModelTimeMs':_0x1886e4[_0x301131(0x33d,0x347,_0x1ee8e0._0x3a337e,0x353)]+_0x5d6936,'currentTokens':_0x1cab4b,'currentInputTokens':_0x1107f3,'currentOutputTokens':_0x560fba,'currentReasoningTokens':_0x2d0339,'currentModelTimeMs':_0x5d6936,..._0x1886e4[_0x66935f(_0x1ee8e0._0x55329b,_0x1ee8e0._0xcb1987,_0x1ee8e0._0x346c75,0x46f)]&&_0x1cab4b>0x0?{'contextWindowUsage':_0x1cab4b/_0x1886e4[_0x66935f(0x42a,_0x1ee8e0._0x53f83c,0x431,0x47d)]}:{}},_0x10fe05();return;}function _0x66935f(_0x45e48a,_0x2c1573,_0x45dce7,_0x3198f8){return _0x1a80(_0x45dce7-_0x37e200._0x547372,_0x3198f8);}if(_0x54c177['type']==='tool_call'){_0x1886e4={..._0x1886e4,'toolCallCount':_0x1886e4['toolCallCount']+0x1},_0x10fe05();return;}_0x54c177['type']===_0x66935f(0x40d,_0x1ee8e0._0x2aa102,0x432,_0x1ee8e0._0x45b129)&&(_0x1886e4={..._0x1886e4,'requestCount':_0x1886e4[_0x301131(_0x1ee8e0._0x557f33,_0x1ee8e0._0x66501a,0x2c8,0x2e1)]+0x1},_0x10fe05());},'reset'(){_0x1886e4=createEmptySnapshot(),_0x3e9275=void 0x0,_0x10fe05();},'subscribe'(_0x1b9865){const _0xea10e1={_0x223a09:0x3e1,_0x59d711:0x359,_0x16e589:0x399},_0x395afa={_0x5bd6b8:0x108,_0x14a9ac:0x277};function _0x2eda4b(_0x181a54,_0x2056cc,_0x5ee929,_0x29714a){return _0x1a80(_0x29714a- -0x20,_0x5ee929);}return _0x2688ea[_0x2eda4b(0xbc,0xc5,0xe4,_0x1ac1e5._0x332fbf)](_0x1b9865),()=>{function _0x52fcd7(_0x1273d2,_0x878c62,_0x2181b8,_0x35d14e){return _0x2eda4b(_0x1273d2-_0x395afa._0x5bd6b8,_0x878c62-0xca,_0x1273d2,_0x35d14e-_0x395afa._0x14a9ac);}_0x2688ea[_0x52fcd7(0x3d4,_0xea10e1._0x223a09,_0xea10e1._0x59d711,_0xea10e1._0x16e589)](_0x1b9865);};}};}function makeExtensionContext(_0x22c5d0){return{'state':_0x22c5d0};}async function runStage(_0x10042a,_0x560c32,_0x312457,_0x5ae82d){const _0x1d3130={_0x5ea9c4:0x12b},_0x54d1d7={_0x5efeca:0x4af},_0x109479=await _0x10042a['runTransformers'](_0x560c32,_0x312457,_0x5ae82d);function _0x445d09(_0x5c8dcc,_0x398da4,_0x32746a,_0x5e9b13){return _0x11602f(_0x5e9b13- -_0x54d1d7._0x5efeca,_0x32746a,_0x32746a-0x1e9,_0x5e9b13-0x74);}return await _0x10042a[_0x445d09(-0x10e,-0x12d,-0x101,-_0x1d3130._0x5ea9c4)](_0x560c32,_0x109479,_0x5ae82d),_0x109479;}async function emitEvent2(_0x44327d,_0x5b545e,_0x2cfe8f){await _0x44327d?.(_0x5b545e,_0x2cfe8f);}function replaceToolUseBlocks(_0x1c845d,_0x5d14df){const _0x5b32a8={_0x1a3919:0x211,_0x3e36e4:0x211},_0x2f91b2={_0x14acad:0x357,_0x1d3e37:0x3a6,_0x519255:0x1cd},_0x36f683={_0x358bac:0xac,_0x43d4bc:0x1a2},_0x3be3a0={_0x704bdb:0x52d,_0x5e33bb:0xb5};function _0x4840db(_0x56f890,_0x25fc6d,_0x3e4e0e,_0x6032f6){return _0x11602f(_0x56f890- -_0x3be3a0._0x704bdb,_0x25fc6d,_0x3e4e0e-_0x3be3a0._0x5e33bb,_0x6032f6-0x1cf);}let _0x141c20=0x0;return{..._0x1c845d,'content':_0x1c845d[_0x4840db(-_0x5b32a8._0x1a3919,-0x1c5,-_0x5b32a8._0x3e36e4,-0x1bf)]['map'](_0x2aacd4=>{const _0x525877={_0xdff16:0x5bd,_0x43b621:0xb0};function _0x146ad1(_0x3f6d13,_0x133918,_0x48a5d5,_0x3fbb40){return _0x4840db(_0x3fbb40-_0x36f683._0x358bac,_0x48a5d5,_0x48a5d5-0xd1,_0x3fbb40-_0x36f683._0x43d4bc);}if(_0x2aacd4[_0x3f8c3f(_0x2f91b2._0x14acad,0x3df,_0x2f91b2._0x1d3e37,0x362)]!==_0x146ad1(-0x13d,-0x1ae,-_0x2f91b2._0x519255,-0x191))return _0x2aacd4;const _0x40da5b=_0x5d14df[_0x141c20];_0x141c20+=0x1;function _0x3f8c3f(_0x251013,_0xb0b9ff,_0x51f482,_0x8c41d4){return _0x4840db(_0x51f482-_0x525877._0xdff16,_0x8c41d4,_0x51f482-0x15e,_0x8c41d4-_0x525877._0x43b621);}return structuredClone(_0x40da5b);})};}function createAssistantMessageId(_0xfcf2c4,_0x20d7d9){return _0xfcf2c4+':assistant:'+_0x20d7d9;}function createReasoningMessageId(_0xde3d3e){return _0xde3d3e+':reasoning';}function withMessageId(_0x1a1108,_0x4ababd){if(_0x1a1108['id']===_0x4ababd)return _0x1a1108;return{..._0x1a1108,'id':_0x4ababd};}function createAssistantChunkEvent(_0x36eec4,_0x35e937){const _0x3847a7={_0x5c671c:0x10,_0x3ce3df:0x9,_0x1a5146:0x23,_0x5b01f4:0x11d,_0x36c18d:0x16d,_0x14a4d4:0x45,_0x3d1394:0x10b,_0x313cad:0x179,_0x4e7db6:0xee,_0x360387:0x145,_0xdb11bf:0x12d,_0x536be6:0x153,_0xaa6a61:0x3d},_0x11eb57={_0x29b556:0xd6,_0x519020:0x325,_0x570add:0x1b1};function _0x48408b(_0x3170da,_0x160979,_0x3e973d,_0xf97914){return _0xf76506(_0x3170da-_0x11eb57._0x29b556,_0x3170da-_0x11eb57._0x519020,_0x3e973d,_0xf97914-_0x11eb57._0x570add);}function _0x54fb15(_0x38d659,_0x144249,_0x49cec6,_0x5a7e3c){return _0xf76506(_0x38d659-0xe,_0x49cec6-0x24c,_0x144249,_0x5a7e3c-0x16a);}if(_0x36eec4[_0x54fb15(-_0x3847a7._0x5c671c,-_0x3847a7._0x3ce3df,_0x3847a7._0x1a5146,0x63)]!==_0x48408b(_0x3847a7._0x5b01f4,_0x3847a7._0x36c18d,0x14e,0x151))return void 0x0;if(_0x36eec4[_0x54fb15(0x29,0x7d,_0x3847a7._0x14a4d4,0x73)]===void 0x0)return void 0x0;return{'type':_0x48408b(0x129,_0x3847a7._0x3d1394,0x161,_0x3847a7._0x313cad),'index':_0x36eec4[_0x48408b(0x12d,0x132,0xd8,0xd9)]??0x0,'messageId':_0x35e937,'chunk':{'type':_0x48408b(0x11d,_0x3847a7._0x4e7db6,_0x3847a7._0x360387,0xf4),'index':_0x36eec4[_0x48408b(_0x3847a7._0xdb11bf,_0x3847a7._0x536be6,0xef,0x122)]??0x0,'text':_0x36eec4[_0x54fb15(0x28,_0x3847a7._0xaa6a61,0x45,0x10)]}};}function createToolUseChunkEvent(_0x450674,_0x4259eb){const _0x1cd859={_0x4cd170:0x3e4,_0x5664a5:0x41f,_0xd7be30:0x469,_0x2d0efa:0x3b7,_0xb80d37:0x411,_0x13d7dc:0x444,_0x589f9a:0x450,_0x1e35f5:0x40c,_0x429a06:0x3c5,_0xea7542:0x421,_0x3b9c84:0x18,_0x5d7e7a:0x45,_0x21058b:0x442,_0x55d353:0x42c,_0x303a52:0x438},_0x2af588={_0x9dec7f:0x648};function _0x5b1396(_0x3576ab,_0x123862,_0x529a13,_0x40034f){return _0xf76506(_0x3576ab-0x1d6,_0x40034f-0x23c,_0x529a13,_0x40034f-0x5b);}function _0x259c29(_0xb983c0,_0x2a243c,_0x4b3765,_0x160f38){return _0xf76506(_0xb983c0-0x41,_0x2a243c-_0x2af588._0x9dec7f,_0x4b3765,_0x160f38-0xd3);}if(_0x450674[_0x259c29(_0x1cd859._0x4cd170,_0x1cd859._0x5664a5,_0x1cd859._0xd7be30,0x473)]!==_0x259c29(_0x1cd859._0x2d0efa,0x409,_0x1cd859._0xb80d37,_0x1cd859._0x13d7dc))return void 0x0;return{'type':'tool_use_chunk','index':_0x450674[_0x259c29(0x42c,_0x1cd859._0x589f9a,_0x1cd859._0x1e35f5,0x445)]??0x0,'messageId':_0x4259eb,'chunk':{'type':_0x259c29(_0x1cd859._0x429a06,0x409,0x418,_0x1cd859._0xea7542),'id':_0x450674['id']??'','index':_0x450674['index']??0x0,..._0x450674[_0x5b1396(-0x23,_0x1cd859._0x3b9c84,-_0x1cd859._0x5d7e7a,0x5)]!==void 0x0?{'name':_0x450674['name']}:{},..._0x450674['inputDelta']!==void 0x0?{'inputDelta':_0x450674[_0x259c29(0x3ff,_0x1cd859._0x21058b,_0x1cd859._0x55d353,_0x1cd859._0x303a52)]}:{}}};}function createReasoningChunkEvent(_0xdff783,_0x10526a){const _0x1ce381={_0x4c3c7f:0xca,_0x37e8de:0x13,_0x4b5b71:0x2f,_0x79346b:0x36,_0x33f5a5:0x26,_0x4843cc:0xb5,_0x2d5c04:0x14,_0xb7d5af:0x46,_0x379430:0x2b,_0x46b01d:0x1c,_0x405d02:0x8d,_0x590a00:0x67,_0x43421b:0x6,_0x24f854:0x69,_0x34bd07:0x6a,_0x15f012:0x3a,_0x5e3e89:0x4c,_0x445cd9:0x40,_0x925bad:0x1,_0x2db10e:0x1f,_0x264bd4:0x9e,_0x3f8567:0x4a,_0x1d531a:0x46,_0x4eb730:0x45,_0x304f7e:0x47,_0x39f06b:0x1a,_0xaffb84:0x3,_0x5bd30d:0x53,_0x2ab0e1:0x10},_0x48f16b={_0x52d438:0x3b9,_0x15d5ff:0x17e,_0x38d099:0x9d},_0x32b016={_0x33340f:0x89};function _0x521ab0(_0x38aebc,_0x57b393,_0x54f0d0,_0x587ef6){return _0xf76506(_0x38aebc-0x1e6,_0x54f0d0-0x20c,_0x57b393,_0x587ef6-_0x32b016._0x33340f);}function _0x2e71d0(_0x22bd6b,_0x353bd0,_0x571d3c,_0x535b88){return _0x11602f(_0x22bd6b- -_0x48f16b._0x52d438,_0x571d3c,_0x571d3c-_0x48f16b._0x15d5ff,_0x535b88-_0x48f16b._0x38d099);}switch(_0xdff783[_0x2e71d0(-0xa3,-0xb6,-0x74,-_0x1ce381._0x4c3c7f)]){case _0x521ab0(_0x1ce381._0x37e8de,0x5,-_0x1ce381._0x4b5b71,-0x61):return{'type':_0x521ab0(_0x1ce381._0x79346b,0x9e,0x4a,_0x1ce381._0x33f5a5),'index':_0xdff783['index'],'messageId':_0x10526a,'chunk':{'type':_0x2e71d0(-_0x1ce381._0x4843cc,-0x106,-0x61,-0xfb),'index':_0xdff783[_0x521ab0(0x15,-0x40,_0x1ce381._0x2d5c04,-0x39)]??0x0,'thinking':_0xdff783[_0x521ab0(0x83,0x4e,0x4d,_0x1ce381._0xb7d5af)]??''},'text':_0xdff783[_0x521ab0(0x33,0x9e,0x4d,0x5c)]??''};case _0x521ab0(-0x30,-0x3b,-0x2c,-0x42):return{'type':'reasoning_chunk','index':_0xdff783[_0x521ab0(0xd,-_0x1ce381._0x379430,_0x1ce381._0x46b01d,0x35)],'messageId':_0x10526a,'chunk':{'type':_0x2e71d0(-0xb2,-_0x1ce381._0x405d02,-0xba,-_0x1ce381._0x590a00),'contentIndex':_0xdff783['contentIndex']??0x0,'delta':_0xdff783[_0x521ab0(-_0x1ce381._0x43421b,-_0x1ce381._0x24f854,-0x15,-_0x1ce381._0x34bd07)]??'','itemId':_0xdff783[_0x2e71d0(-0x49,-_0x1ce381._0x15f012,-0x4f,-_0x1ce381._0x5e3e89)]??'','outputIndex':_0xdff783['outputIndex']??0x0},'text':_0xdff783['delta']??''};case _0x2e71d0(-_0x1ce381._0x445cd9,-_0x1ce381._0x925bad,-0x32,-0x93):return{'type':_0x521ab0(_0x1ce381._0x2db10e,_0x1ce381._0x264bd4,_0x1ce381._0x3f8567,0x19),'index':_0xdff783['summaryIndex'],'messageId':_0x10526a,'chunk':{'type':_0x521ab0(0x78,0x12,_0x1ce381._0x1d531a,0x47),'delta':_0xdff783['delta']??'','itemId':_0xdff783[_0x521ab0(_0x1ce381._0x4eb730,0x69,0x3d,0x25)]??'','outputIndex':_0xdff783['outputIndex']??0x0,'summaryIndex':_0xdff783[_0x521ab0(_0x1ce381._0x304f7e,_0x1ce381._0x39f06b,0x42,_0x1ce381._0xaffb84)]??0x0},'text':_0xdff783[_0x521ab0(-0x1a,-_0x1ce381._0x5bd30d,-0x15,-_0x1ce381._0x2ab0e1)]??''};default:return void 0x0;}}function isAbortedToolResult(_0xd179ba){const _0x4611ae={_0x34512b:0x34d,_0x422703:0x305,_0x354106:0x348,_0x1e2b30:0x328},_0x456d23={_0x23723a:0x165,_0x1db52a:0x154};function _0x4eac96(_0x46d575,_0x183826,_0x39b1eb,_0x18d809){return _0xf76506(_0x46d575-0x187,_0x18d809-0x51e,_0x39b1eb,_0x18d809-0x1c3);}function _0x46cacc(_0x3cd769,_0x439be2,_0x2425cb,_0x5d56ed){return _0xf76506(_0x3cd769-_0x456d23._0x23723a,_0x5d56ed-_0x456d23._0x1db52a,_0x439be2,_0x5d56ed-0xc0);}return _0xd179ba['status']===_0x4eac96(0x33c,_0x4611ae._0x34512b,0x30f,0x313)&&_0xd179ba[_0x4eac96(_0x4611ae._0x422703,_0x4611ae._0x354106,0x37a,_0x4611ae._0x1e2b30)]['aborted']===!![];}function _0x1a80(_0x2b0f70,_0x11e782){_0x2b0f70=_0x2b0f70-0xca;const _0x5da1e1=_0x5da1();let _0x1a8055=_0x5da1e1[_0x2b0f70];if(_0x1a80['oHzLla']===undefined){var _0x18b41b=function(_0x2acdd1){const _0x47b246='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b0f2c='',_0x4e7e4d='';for(let _0x58a39a=0x0,_0x577002,_0x401e48,_0x2df5d0=0x0;_0x401e48=_0x2acdd1['charAt'](_0x2df5d0++);~_0x401e48&&(_0x577002=_0x58a39a%0x4?_0x577002*0x40+_0x401e48:_0x401e48,_0x58a39a++%0x4)?_0x1b0f2c+=String['fromCharCode'](0xff&_0x577002>>(-0x2*_0x58a39a&0x6)):0x0){_0x401e48=_0x47b246['indexOf'](_0x401e48);}for(let _0x2f941a=0x0,_0x2b6bed=_0x1b0f2c['length'];_0x2f941a<_0x2b6bed;_0x2f941a++){_0x4e7e4d+='%'+('00'+_0x1b0f2c['charCodeAt'](_0x2f941a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e7e4d);};_0x1a80['wYrQAK']=_0x18b41b,_0x1a80['yKyAlb']={},_0x1a80['oHzLla']=!![];}const _0x557f67=_0x5da1e1[0x0],_0x3567e2=_0x2b0f70+_0x557f67,_0x2c122b=_0x1a80['yKyAlb'][_0x3567e2];return!_0x2c122b?(_0x1a8055=_0x1a80['wYrQAK'](_0x1a8055),_0x1a80['yKyAlb'][_0x3567e2]=_0x1a8055):_0x1a8055=_0x2c122b,_0x1a8055;}async function executeModelRequest(_0x1d63a4,_0x22988c,_0x5303fe,_0x3add2c,_0x431157){const _0x41f256={_0x2ce2c3:0x401,_0x3404c1:0x480,_0x92aac3:0x40b,_0x19f563:0x285,_0x32288c:0x286,_0x1c7efe:0x44f,_0x2ac533:0x3c0,_0x39b3f2:0x445,_0xd49a98:0x475,_0x27d7b0:0x43a,_0x27f4c0:0x3f7,_0x5af1f2:0x3d0,_0x2cbc3e:0x42d,_0x50c903:0x3e2,_0x253131:0x414,_0x421927:0x429,_0x2fa78b:0x413,_0x4085c7:0x2c8,_0x63d09a:0x30d,_0x1c1a4c:0x2b9,_0x5557d1:0x2b5,_0x12f48d:0x2aa,_0x297319:0x2cd,_0x426248:0x3b0,_0x53e197:0x40f,_0x107e0a:0x26b,_0x44c106:0x251,_0x3b1b5f:0x2a2,_0x4a6131:0x2a1,_0x1cd7a2:0x3dd,_0x491aed:0x41c,_0x52eb01:0x310,_0x3f6def:0x2c2,_0x5f54a3:0x2a6,_0x47f03b:0x402,_0x4ea7ce:0x3c4,_0x53d104:0x2b3,_0x32fc49:0x2d6,_0x5e8ae3:0x3f1,_0xb5c421:0x3d5},_0x3c4be3={_0x233205:0x1b4},_0x17ae86={_0x452e4c:0x126,_0x230c58:0xab};throwIfAborted(_0x22988c[_0x8747d8(0x43a,0x480,0x42d,0x482)]);if(!_0x22988c[_0x8747d8(0x42f,_0x41f256._0x2ce2c3,_0x41f256._0x3404c1,_0x41f256._0x92aac3)]||!_0x5303fe[_0xa4d789(-0x2a6,-0x2b8,-0x2c0,-0x2e2)][_0xa4d789(-_0x41f256._0x19f563,-0x26a,-_0x41f256._0x32288c,-0x263)])return await _0x5303fe['chatModel'][_0x8747d8(_0x41f256._0x1c7efe,0x4a0,0x49c,0x471)](_0x1d63a4,{'signal':_0x22988c['signal']});let _0x4e1292;for await(const _0x50cb05 of _0x5303fe[_0x8747d8(0x40b,_0x41f256._0x2ac533,0x444,0x3d8)][_0x8747d8(_0x41f256._0x39b3f2,_0x41f256._0xd49a98,0x3f8,0x40c)](_0x1d63a4,{'signal':_0x22988c['signal']})){throwIfAborted(_0x22988c[_0x8747d8(_0x41f256._0x27d7b0,0x3ed,0x3e5,0x487)]);if(_0x50cb05[_0x8747d8(_0x41f256._0x27f4c0,_0x41f256._0x5af1f2,_0x41f256._0x2cbc3e,0x3b2)]==='done'){_0x4e1292=_0x50cb05[_0x8747d8(_0x41f256._0x50c903,_0x41f256._0x253131,0x408,_0x41f256._0x421927)];continue;}if(_0x50cb05[_0x8747d8(0x3f7,0x417,0x3ad,_0x41f256._0x2fa78b)]===_0xa4d789(-_0x41f256._0x4085c7,-_0x41f256._0x63d09a,-_0x41f256._0x1c1a4c,-_0x41f256._0x5557d1)){await emitEvent2(_0x5303fe['onEvent'],_0x50cb05,_0x3add2c);continue;}const _0x23a9fd=createReasoningChunkEvent(_0x50cb05,_0x431157[_0xa4d789(-_0x41f256._0x12f48d,-0x294,-_0x41f256._0x297319,-0x306)]);if(_0x23a9fd&&_0x23a9fd[_0x8747d8(0x3f7,_0x41f256._0x426248,_0x41f256._0x253131,_0x41f256._0x53e197)]===_0xa4d789(-_0x41f256._0x107e0a,-0x254,-0x26d,-0x218)&&_0x23a9fd['text'][_0xa4d789(-_0x41f256._0x44c106,-0x2bb,-_0x41f256._0x3b1b5f,-_0x41f256._0x4a6131)]>0x0){await emitEvent2(_0x5303fe[_0x8747d8(_0x41f256._0x1cd7a2,0x404,0x3ed,_0x41f256._0x491aed)],_0x23a9fd,_0x3add2c);continue;}const _0x49d07c=createAssistantChunkEvent(_0x50cb05,_0x431157[_0xa4d789(-0x274,-_0x41f256._0x52eb01,-_0x41f256._0x3f6def,-_0x41f256._0x5f54a3)]);if(_0x49d07c){await emitEvent2(_0x5303fe[_0x8747d8(0x3dd,_0x41f256._0x47f03b,_0x41f256._0x4ea7ce,0x413)],_0x49d07c,_0x3add2c);continue;}const _0x2164ec=createToolUseChunkEvent(_0x50cb05,_0x431157[_0xa4d789(-0x2a1,-_0x41f256._0x53d104,-0x2c2,-_0x41f256._0x32fc49)]);_0x2164ec&&await emitEvent2(_0x5303fe[_0x8747d8(_0x41f256._0x1cd7a2,_0x41f256._0x5e8ae3,0x3bd,0x395)],_0x2164ec,_0x3add2c);}if(!_0x4e1292)throw new Error(_0x8747d8(_0x41f256._0xb5c421,0x38b,0x40f,0x3d8));function _0xa4d789(_0x21fe24,_0x209a49,_0x75a985,_0x1cece9){return _0xf76506(_0x21fe24-_0x17ae86._0x452e4c,_0x75a985- -_0x17ae86._0x230c58,_0x209a49,_0x1cece9-0x8c);}function _0x8747d8(_0x381995,_0x3f802a,_0x12c4d9,_0x3933f6){return _0xf76506(_0x381995-0xf3,_0x381995-0x620,_0x12c4d9,_0x3933f6-_0x3c4be3._0x233205);}return _0x4e1292;}function makeTurnGuards(_0x3b41b0,_0xf9133b,_0x310e18,_0x1f61b6,_0xea2fab){return{async 'stage'(_0x17405a,_0x591f2c){return throwIfAborted(_0x3b41b0),await runStage(_0xf9133b,_0x17405a,_0x591f2c,_0x1f61b6);},async 'emit'(_0xf711b9){throwIfAborted(_0x3b41b0),await emitEvent2(_0x310e18,_0xf711b9,_0xea2fab);},async 'stageUnchecked'(_0x1c6ff8,_0x24ffd3){return await runStage(_0xf9133b,_0x1c6ff8,_0x24ffd3,_0x1f61b6);},async 'emitUnchecked'(_0x4d6dcf){await emitEvent2(_0x310e18,_0x4d6dcf,_0xea2fab);}};}async function runTurn(_0x48046e,_0x3951a9){const _0x274f42={_0x3f04dc:0x205,_0xada162:0x20e,_0xbf61b:0x1be,_0x3b2e9e:0x1be,_0x14d74c:0x8b,_0x72e979:0xc1,_0x12b900:0x1bb,_0x27444e:0x23a,_0x52f89f:0x208,_0xe7ec2d:0x1d1,_0x4b5985:0x1d1,_0x28c32e:0x72,_0x3aafa6:0xc6,_0x4f6c8c:0x98,_0x31c106:0x1d0,_0x5a3087:0x1e4,_0x4c5eda:0x21c,_0xb1107e:0x4,_0x521432:0x3,_0x4576bb:0x19c,_0x200c16:0x220,_0x3a892e:0x253,_0x56e862:0x19c,_0x3b5223:0x1c7,_0x3e6738:0x1e2,_0x5f25f7:0x1b6,_0x2ff52c:0xb7,_0x3e5bbf:0xd2,_0x4deef9:0x26b,_0x302d05:0xce,_0x1cd213:0xb0,_0x1af5af:0xad,_0x2956ed:0x1e1,_0x2719c8:0x215,_0x16c3a4:0x7f,_0x3a1e92:0x6f,_0x44b005:0x31,_0x756f0a:0x7e,_0x5d2a57:0x84,_0xed7224:0x86,_0x426736:0xa4,_0x3191f7:0x83,_0x533f58:0x45,_0x264185:0x48,_0x21040d:0x87,_0x9dfce6:0xb1,_0x40a80e:0x94,_0x4e8723:0x27d,_0x1e0531:0x48,_0x2ab1c4:0x27,_0x11730e:0xb9,_0x2be090:0xe3,_0x4bd982:0x24,_0x4f7e51:0x10,_0x1a28fc:0xac,_0x1711fd:0x44,_0x221cc0:0x2a,_0x1e5ba6:0x1b2,_0x4ee70f:0x245,_0x441673:0x21f,_0x3de95b:0x25d,_0x342461:0x246,_0xf66d0f:0x259,_0x5abfc8:0x223,_0x1e6a94:0x52,_0x4aa5db:0x22a,_0x533fc4:0x21f,_0x123902:0x26f,_0x4bed95:0x29b,_0x2991fb:0xe2,_0x1c6289:0x103,_0x528c1b:0x268,_0x1d33b2:0x1fc,_0x3f8d2e:0x214,_0x206f5c:0xaa,_0x4f15e1:0x105,_0x410406:0x77,_0x80aca:0x1fa,_0x140791:0x24d,_0x41923c:0x271,_0x126c11:0xe3,_0x2545c4:0xfa,_0x404e0d:0xb9,_0x241d7b:0xcf,_0x24ccf3:0x47,_0xbbb638:0x8f,_0x568142:0xc6,_0x2d056f:0xa9,_0x27f56c:0x91,_0x46bc51:0x243,_0x416dd7:0x28f,_0x3aa570:0xa7,_0x593401:0xef,_0x4cd22e:0xe3},_0x4cc00b={_0x5b0120:0x267,_0x1f9728:0x269,_0x496335:0x2d6,_0x1d79ff:0x17f,_0x5f5679:0x13d,_0x51bbe6:0x16f},_0x8f0b15={_0x1bad8e:0xe6,_0x1b4eb8:0x9c},_0x287614={_0xb1f837:0xb2},_0x2f5b7b={_0x29e808:0x567,_0xc8cb66:0x25},_0x5ef9d8={_0x14fa91:0x69},_0x588c08=_0x48046e[_0x1d48e0(-_0x274f42._0x3f04dc,-_0x274f42._0xada162,-_0x274f42._0xbf61b,-0x1e5)]??new AbortController()[_0x1d48e0(-0x20d,-_0x274f42._0xada162,-_0x274f42._0x3b2e9e,-0x233)],_0x641164={'sessionId':_0x48046e[_0x1f1748(0xa7,0x70,_0x274f42._0x14d74c,_0x274f42._0x72e979)],'turnId':_0x48046e[_0x1d48e0(-0x24b,-0x234,-0x237,-0x25f)],'system':normalizeSystem(_0x48046e[_0x1d48e0(-0x22b,-0x20b,-_0x274f42._0x12b900,-_0x274f42._0x27444e)]),'messages':(_0x48046e[_0x1d48e0(-0x1d0,-_0x274f42._0x52f89f,-_0x274f42._0xe7ec2d,-_0x274f42._0x4b5985)]??[])[_0x1f1748(_0x274f42._0x28c32e,_0x274f42._0x3aafa6,0xa2,_0x274f42._0x4f6c8c)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x3951a9[_0x1d48e0(-_0x274f42._0x31c106,-_0x274f42._0x5a3087,-_0x274f42._0x4c5eda,-0x1bf)]===_0x1f1748(_0x274f42._0xb1107e,0x3a,-_0x274f42._0x521432,0x28)?_0x3951a9[_0x1d48e0(-0x19f,-0x1e4,-_0x274f42._0x4576bb,-_0x274f42._0x200c16)]():_0x3951a9['sessionDir']},_0xcdcd62=makeExtensionContext(_0x641164),_0x388d50={'sessionId':_0x641164[_0x1d48e0(-0x211,-_0x274f42._0x3a892e,-0x265,-0x280)],'turnId':_0x641164['turnId'],'state':_0x641164,'signal':_0x588c08,..._0x3951a9[_0x1d48e0(-0x1a2,-0x1e2,-_0x274f42._0x56e862,-_0x274f42._0x3b5223)]?{'askUser':_0x3951a9[_0x1d48e0(-0x211,-_0x274f42._0x3e6738,-0x1dc,-_0x274f42._0x5f25f7)]}:{}};function _0x1f1748(_0x7f1ca3,_0x87ef45,_0x884d4,_0x4ae449){return _0xf76506(_0x7f1ca3-0x144,_0x87ef45-0x29b,_0x884d4,_0x4ae449-_0x5ef9d8._0x14fa91);}const {stage:_0x398103,emit:_0x2728a2,stageUnchecked:_0x29bef6,emitUnchecked:_0x2b12ad}=makeTurnGuards(_0x588c08,_0x3951a9[_0x1f1748(_0x274f42._0x2ff52c,0xae,0x5f,_0x274f42._0x3e5bbf)],_0x3951a9[_0x1d48e0(-0x240,-_0x274f42._0x4deef9,-0x26d,-0x283)],_0xcdcd62,_0x388d50);function _0x1d48e0(_0x28ac73,_0xab0850,_0x202f37,_0x362331){return _0x11602f(_0xab0850- -_0x2f5b7b._0x29e808,_0x28ac73,_0x202f37-_0x2f5b7b._0xc8cb66,_0x362331-0xf8);}const _0x4dc10d=async _0x26bb86=>{function _0x415507(_0x491378,_0x59c2c1,_0x551694,_0x2d1819){return _0x1d48e0(_0x491378,_0x59c2c1-0x47c,_0x551694-0x62,_0x2d1819-_0x287614._0xb1f837);}function _0x4f91a3(_0x27afbc,_0x5773aa,_0x422c1a,_0x350fa5){return _0x1f1748(_0x27afbc-_0x8f0b15._0x1bad8e,_0x422c1a-_0x8f0b15._0x1b4eb8,_0x5773aa,_0x350fa5-0xd5);}await _0x3951a9[_0x415507(0x215,_0x4cc00b._0x5b0120,_0x4cc00b._0x1f9728,0x225)][_0x415507(0x2e7,0x299,_0x4cc00b._0x496335,0x291)](_0x4f91a3(_0x4cc00b._0x1d79ff,_0x4cc00b._0x5f5679,0x133,_0x4cc00b._0x51bbe6),structuredClone(_0x26bb86),_0xcdcd62);};let _0x4d362e=0x0;try{const _0x5d048d=await _0x398103(_0x1f1748(0x122,_0x274f42._0x302d05,_0x274f42._0x1cd213,_0x274f42._0x1af5af),normalizeMessage(_0x48046e[_0x1d48e0(-0x267,-0x226,-_0x274f42._0x2956ed,-0x1df)]));_0x641164[_0x1d48e0(-_0x274f42._0x2719c8,-_0x274f42._0x52f89f,-0x1f7,-0x226)][_0x1f1748(_0x274f42._0x16c3a4,_0x274f42._0x3a1e92,0x1e,_0x274f42._0x44b005)](_0x5d048d),await _0x4dc10d(_0x5d048d),await _0x2728a2({'type':_0x1f1748(0xc9,_0x274f42._0x756f0a,_0x274f42._0x5d2a57,_0x274f42._0x756f0a),'message':_0x5d048d});while(!![]){throwIfAborted(_0x588c08),_0x4d362e+=0x1;const _0x149a5b=createAssistantMessageId(_0x641164['turnId'],_0x4d362e),_0x438941=createReasoningMessageId(_0x149a5b);let _0x4f11f7={'model':_0x3951a9['chatModel']['model'],'maxTokens':_0x3951a9[_0x1f1748(0x70,_0x274f42._0xed7224,0x73,_0x274f42._0x426736)][_0x1f1748(_0x274f42._0x3191f7,_0x274f42._0x533f58,0xe,0x88)]??0x4000,'system':structuredClone(_0x641164['system']),'messages':structuredClone(_0x641164['messages']),'tools':_0x3951a9['toolRuntime'][_0x1f1748(_0x274f42._0x264185,_0x274f42._0x21040d,_0x274f42._0x9dfce6,0x3c)](),'metadata':{'sessionId':_0x641164[_0x1f1748(0x74,0x70,_0x274f42._0x40a80e,0x62)],'turnId':_0x641164[_0x1d48e0(-_0x274f42._0x4e8723,-0x234,-0x275,-0x212)]}};_0x4f11f7=await _0x398103(_0x1f1748(0x8e,_0x274f42._0x1e0531,0xc,_0x274f42._0x2ab1c4),_0x4f11f7),await _0x2728a2({'type':_0x1f1748(0xf4,0xba,_0x274f42._0x11730e,_0x274f42._0x2be090),'request':_0x4f11f7});let _0x1cbaf7=await executeModelRequest(_0x4f11f7,_0x48046e,_0x3951a9,_0x388d50,{'assistantMessageId':_0x149a5b,'reasoningMessageId':_0x438941});_0x1cbaf7=await _0x398103('afterModelResponse',_0x1cbaf7),await _0x2728a2({'type':_0x1f1748(_0x274f42._0x4bd982,0x61,_0x274f42._0x4f7e51,_0x274f42._0x1a28fc),'response':_0x1cbaf7}),_0x641164['lastResponse']=_0x1cbaf7;let _0x41fa66=await _0x398103(_0x1f1748(0xf4,0xa1,0x8c,0xed),withMessageId(responseToAssistantMessage(_0x1cbaf7),_0x149a5b));_0x41fa66=withMessageId(_0x41fa66,_0x149a5b);const _0x442a21=getToolUseBlocks(_0x41fa66),_0x271d85=await Promise[_0x1f1748(0x5f,_0x274f42._0x1711fd,_0x274f42._0x221cc0,0x1b)](_0x442a21[_0x1d48e0(-0x1cf,-0x1fd,-_0x274f42._0x1e5ba6,-0x1ca)](_0x393f18=>_0x398103(_0x1d48e0(-0x21f,-0x259,-0x26f,-0x255),_0x393f18)));_0x271d85[_0x1d48e0(-_0x274f42._0x4ee70f,-_0x274f42._0x441673,-_0x274f42._0x3de95b,-0x257)]>0x0&&(_0x41fa66=replaceToolUseBlocks(_0x41fa66,_0x271d85));const _0x1dbbb7=withMessageId(_0x41fa66,_0x149a5b);_0x41fa66=_0x1dbbb7;const _0x2a7f10=createReasoningMessage(_0x41fa66),_0x389bb7=createAssistantTextMessage(_0x41fa66),_0x3c7fdf=createToolUseMessage(_0x41fa66);_0x2a7f10&&await _0x2728a2({'type':_0x1d48e0(-0x224,-_0x274f42._0x342461,-_0x274f42._0xf66d0f,-_0x274f42._0x5abfc8),'message':withMessageId(_0x2a7f10,_0x438941)});_0x389bb7&&await _0x2728a2({'type':_0x1f1748(0x7b,0x53,0x68,0x1c),'message':withMessageId(_0x389bb7,_0x149a5b)});_0x3c7fdf&&await _0x2728a2({'type':_0x1f1748(_0x274f42._0x1e6a94,0x49,0x18,0x9a),'message':withMessageId(_0x3c7fdf,_0x149a5b)});_0x641164[_0x1d48e0(-0x1bc,-0x208,-0x1d5,-0x1c5)]['push'](_0x1dbbb7);_0x271d85[_0x1d48e0(-_0x274f42._0x4aa5db,-_0x274f42._0x533fc4,-0x22e,-0x244)]>0x0&&await _0x4dc10d(_0x1dbbb7);for(const _0x268482 of _0x271d85){await _0x2728a2({'type':_0x1d48e0(-_0x274f42._0x123902,-0x250,-_0x274f42._0x4bed95,-0x224),'toolCall':_0x268482});}if(_0x271d85[_0x1d48e0(-0x271,-0x21f,-0x1e8,-0x26a)]===0x0){const _0x1774d2=await _0x398103(_0x1f1748(0x121,_0x274f42._0x2991fb,0xc1,_0x274f42._0x1c6289),_0x41fa66),_0x5cd6c9=withMessageId(_0x1774d2,_0x149a5b);return _0x641164[_0x1d48e0(-_0x274f42._0x528c1b,-0x229,-0x1ea,-_0x274f42._0x1d33b2)]=_0x5cd6c9,_0x641164[_0x1d48e0(-0x1c6,-0x208,-_0x274f42._0x3f8d2e,-_0x274f42._0x4b5985)][_0x641164[_0x1f1748(0xd4,0xbb,_0x274f42._0x206f5c,_0x274f42._0x4f15e1)][_0x1f1748(0xe0,0xa4,_0x274f42._0x410406,0xba)]-0x1]=_0x5cd6c9,await _0x4dc10d(_0x5cd6c9),await _0x2728a2({'type':_0x1d48e0(-_0x274f42._0x80aca,-_0x274f42._0x140791,-0x289,-_0x274f42._0x41923c),'message':_0x5cd6c9}),throwIfAborted(_0x588c08),await _0x3951a9[_0x1f1748(_0x274f42._0x126c11,0xae,0xd7,0x63)]['runObservers']('afterTurnComplete',_0x641164,_0xcdcd62),await _0x2728a2({'type':'turn_complete','state':_0x641164}),{'status':_0x1d48e0(-0x23e,-0x240,-0x219,-0x21c),'finalMessage':_0x5cd6c9,'state':_0x641164};}let _0x5ccf59=await _0x3951a9[_0x1f1748(_0x274f42._0x2545c4,_0x274f42._0x404e0d,_0x274f42._0x241d7b,0x7a)]['executeCalls'](_0x271d85,_0x388d50);const _0x4bb8fb=_0x5ccf59[_0x1f1748(0x6f,_0x274f42._0x24ccf3,0x71,0x94)](isAbortedToolResult),_0x25d225=_0x4bb8fb?_0x29bef6:_0x398103,_0x5a91f4=_0x4bb8fb?_0x2b12ad:_0x2728a2;_0x5ccf59=await Promise[_0x1f1748(_0x274f42._0xbbb638,0x44,_0x274f42._0x28c32e,0x32)](_0x5ccf59[_0x1f1748(0xe2,_0x274f42._0x568142,_0x274f42._0x2d056f,0xb2)](_0x4bcb1b=>_0x25d225(_0x1d48e0(-0x242,-0x237,-0x1ee,-0x200),_0x4bcb1b))),_0x641164[_0x1f1748(0xab,0x6e,0x3f,0x42)][_0x1f1748(0xbc,0x6f,_0x274f42._0x27f56c,0x4a)](..._0x5ccf59);for(const _0x2bd829 of _0x5ccf59){await _0x5a91f4({'type':_0x1d48e0(-_0x274f42._0x46bc51,-0x287,-_0x274f42._0x416dd7,-0x245),'result':_0x2bd829});}const _0x5022da=await _0x25d225(_0x1f1748(0xf3,_0x274f42._0x3aa570,_0x274f42._0x593401,_0x274f42._0x4cd22e),createToolResultUserMessage(_0x5ccf59));await _0x5a91f4({'type':'tool_result_message','message':_0x5022da}),_0x641164['messages']['push'](_0x5022da),await _0x4dc10d(_0x5022da);if(_0x4bb8fb)return{'status':'aborted','state':_0x641164};}}catch(_0x1954c7){if(!_0x588c08['aborted'])throw new TurnFailedError(_0x1954c7,_0x641164);return{'status':'aborted','state':_0x641164};}}function createSessionId(){const _0x1f64f4={_0x2cee8b:0x10c,_0x47cb0e:0x173,_0x1d1459:0x104,_0x2511be:0x168,_0x321fd4:0x138,_0x517667:0x140,_0x2630a4:0xfa,_0x34ae16:0x1c2,_0x32b147:0x172},_0x435ac6={_0xf03d1f:0x19},_0x20dba8={_0x4e232a:0x489,_0x555d8a:0x1a2};function _0x1b04eb(_0x1c8b36,_0x2017a2,_0x15c985,_0xc77e8){return _0x11602f(_0x1c8b36- -_0x20dba8._0x4e232a,_0x2017a2,_0x15c985-_0x20dba8._0x555d8a,_0xc77e8-0x1c4);}function _0x12cc34(_0x14e2a9,_0xd5cb7a,_0x20c01a,_0x2be931){return _0xf76506(_0x14e2a9-0x184,_0xd5cb7a-0x186,_0x20c01a,_0x2be931-_0x435ac6._0xf03d1f);}return _0x1b04eb(-0x13c,-_0x1f64f4._0x2cee8b,-_0x1f64f4._0x47cb0e,-_0x1f64f4._0x1d1459)+Date[_0x1b04eb(-0x147,-0x19b,-_0x1f64f4._0x2511be,-0x190)]()+'-'+Math[_0x12cc34(-0x9b,-0x8c,-0xa6,-0x7f)]()[_0x1b04eb(-_0x1f64f4._0x321fd4,-_0x1f64f4._0x517667,-_0x1f64f4._0x2630a4,-0x181)](0x10)[_0x1b04eb(-0x17d,-0x12b,-_0x1f64f4._0x34ae16,-_0x1f64f4._0x32b147)](0x2,0xa);}function createTurnId(_0x3eb681){const _0xad4eee={_0x4e27d6:0x162},_0x580301={_0x3c1181:0x1cf,_0x2a9a02:0xe2};function _0x2216cc(_0x482e24,_0x4cd937,_0x573d50,_0x3c9957){return _0xf76506(_0x482e24-_0x580301._0x3c1181,_0x4cd937-_0x580301._0x2a9a02,_0x482e24,_0x3c9957-0x181);}return _0x2216cc(-0x17b,-0x162,-_0xad4eee._0x4e27d6,-0x127)+_0x3eb681;}function createDefaultMessage(_0x2104a4){if(_0x2104a4===void 0x0)return void 0x0;return normalizeUserInput(_0x2104a4);}function normalizeUserInput(_0x2c165a){const _0x32c6fc={_0x58a2db:0x1cc,_0x157ebd:0x110,_0x38de82:0x13d,_0x430ffb:0x12c},_0x1c3df0={_0x28eeb2:0x1e3,_0x5de2d2:0x11b},_0xde1e69={_0x578ef3:0x1ec,_0x2753d8:0xc9};if(typeof _0x2c165a===_0x250a22(0x17f,0x217,0x199,_0x32c6fc._0x58a2db))return{'role':_0x2c76ff(-0x138,-_0x32c6fc._0x157ebd,-_0x32c6fc._0x38de82,-_0x32c6fc._0x430ffb),'content':[{'type':'text','text':_0x2c165a}]};function _0x2c76ff(_0x1d0614,_0x26b47e,_0x58cbe3,_0x4c6abd){return _0x11602f(_0x58cbe3- -0x46f,_0x26b47e,_0x58cbe3-_0xde1e69._0x578ef3,_0x4c6abd-_0xde1e69._0x2753d8);}function _0x250a22(_0x15ad05,_0x53c80d,_0xce8784,_0x21a09f){return _0x11602f(_0x21a09f- -0x117,_0xce8784,_0xce8784-_0x1c3df0._0x28eeb2,_0x21a09f-_0x1c3df0._0x5de2d2);}return normalizeMessage(_0x2c165a);}function resolveChatModel(_0x217dcd){const _0x323e22={_0x5b6d99:0x3fe,_0x3bd1c7:0x244,_0x2a7f02:0x27c,_0x165d6e:0x2bf},_0x52bfd5={_0x3e3ab2:0xef};function _0x1c15cd(_0x42c61a,_0x4eea48,_0x48e8f5,_0x2b6ae3){return _0xf76506(_0x42c61a-0xe0,_0x42c61a-0x5e4,_0x4eea48,_0x2b6ae3-0x4d);}if(!_0x217dcd[_0x1c15cd(0x3cf,_0x323e22._0x5b6d99,0x3bd,0x3ad)])throw new Error(_0x12ef6d(_0x323e22._0x3bd1c7,_0x323e22._0x2a7f02,_0x323e22._0x165d6e,0x231));function _0x12ef6d(_0x303de4,_0x2fa6ab,_0x3d204b,_0x56f138){return _0x11602f(_0x2fa6ab- -_0x52bfd5._0x3e3ab2,_0x3d204b,_0x3d204b-0x1b9,_0x56f138-0xa9);}return _0x217dcd['chatModel'];}function createRegistry(_0x31e520){const _0xef7ac6={_0x1b8d0f:0x4d6,_0xa48df6:0x486,_0x38f1f3:0x4a9,_0x579011:0x38,_0x4e82c7:0x470,_0x2ded07:0x482,_0x57b615:0xc},_0x1b825e={_0x26ba0c:0x187},_0x442829={_0x59f1d9:0x189,_0x5010a9:0xa2};function _0xab22f(_0x14a11a,_0x13127f,_0x1813e4,_0xd39217){return _0x11602f(_0x14a11a- -0x36c,_0x1813e4,_0x1813e4-_0x442829._0x59f1d9,_0xd39217-_0x442829._0x5010a9);}if(_0x31e520[_0x3e0fda(0x4a5,_0xef7ac6._0x1b8d0f,_0xef7ac6._0xa48df6,_0xef7ac6._0x38f1f3)])return _0x31e520[_0xab22f(-0x1a,_0xef7ac6._0x579011,0x38,-0x1a)];const _0x578814=createExtensionRegistry();function _0x3e0fda(_0x4f3ce9,_0x4eb4ef,_0x587e61,_0x41622b){return _0x11602f(_0x587e61-0x134,_0x4eb4ef,_0x587e61-0x165,_0x41622b-_0x1b825e._0x26ba0c);}const _0x4eeadf=_0x31e520[_0x3e0fda(_0xef7ac6._0x4e82c7,0x49c,0x4a0,_0xef7ac6._0x2ded07)]??[];for(const _0x3bdbda of _0x4eeadf){_0x578814[_0xab22f(0x1b,_0xef7ac6._0x57b615,0x57,0x16)](_0x3bdbda);}return _0x578814;}var Agent=class{[_0x11602f(0x33a,0x355,0x316,0x2ec)];[_0x11602f(0x35a,0x334,0x31b,0x370)];[_0x11602f(0x2ee,0x337,0x304,0x2e6)];[_0x11602f(0x314,0x31b,0x2d5,0x361)];[_0xf76506(-0x1d3,-0x1e0,-0x1a0,-0x1f1)];[_0x11602f(0x303,0x2de,0x353,0x32b)];[_0xf76506(-0x21d,-0x25e,-0x28a,-0x247)];constructor(_0x4cd942={}){const _0x4a3630={_0x5af525:0x2cd,_0x928ca3:0x303,_0x2d0d25:0x31d,_0x3c66ca:0x2ca,_0x152fe7:0x319,_0x3e97e4:0x305,_0x211be4:0x32b,_0x2f8e36:0x330,_0x11c57b:0x258,_0x5a32b4:0x2d7,_0x26a2f4:0x2e5,_0x432587:0x2d0,_0x17751d:0x2a1,_0x33ae28:0x2e9,_0x22eac1:0x2f3,_0x2be428:0x287,_0xcb127:0x27e,_0x2ef6f4:0x2c2,_0x52ab00:0x376},_0x2945da={_0x516d8f:0x92,_0xb02025:0xd4},_0x5b3cc4={_0x32e289:0x530,_0x19ed39:0x165};this['sessionId']=_0x4cd942[_0x14e8b5(-_0x4a3630._0x5af525,-_0x4a3630._0x928ca3,-0x285,-_0x4a3630._0x2d0d25)]??createSessionId(),this[_0x4f2546(_0x4a3630._0x3c66ca,_0x4a3630._0x152fe7,0x2ce,0x2d2)]=0x0;function _0x4f2546(_0x57d8ee,_0x319283,_0xc80664,_0x4f7fdb){return _0xf76506(_0x57d8ee-0x19b,_0x4f7fdb-_0x5b3cc4._0x32e289,_0x57d8ee,_0x4f7fdb-_0x5b3cc4._0x19ed39);}this[_0x4f2546(_0x4a3630._0x3e97e4,0x348,0x32e,_0x4a3630._0x211be4)]=_0x4cd942[_0x4f2546(0x303,0x2ed,0x311,_0x4a3630._0x2f8e36)]??'',this['messages']=(_0x4cd942[_0x14e8b5(-0x282,-_0x4a3630._0x11c57b,-0x24e,-0x2ad)]??[])['map'](normalizeMessage),this['defaultMessage']=createDefaultMessage(_0x4cd942['message']);function _0x14e8b5(_0x430d5e,_0xa40df,_0x325d1c,_0x117204){return _0x11602f(_0x430d5e- -0x5e1,_0x325d1c,_0x325d1c-_0x2945da._0x516d8f,_0x117204-_0x2945da._0xb02025);}this[_0x14e8b5(-0x2f3,-_0x4a3630._0x5a32b4,-0x33a,-0x2cb)]=createAgentMetrics({'getContextWindowLimit':_0x4cd942['getContextWindowLimit']});const _0xbfca69=_0x4cd942[_0x14e8b5(-_0x4a3630._0x26a2f4,-_0x4a3630._0x432587,-_0x4a3630._0x17751d,-0x333)],_0x24748d=async(_0x1958d0,_0x404f19)=>{const _0x551a72={_0x528c63:0xd3,_0x164c8f:0x1d9,_0x87a1fd:0x3e6};function _0x31aef8(_0x46116a,_0x371c45,_0x573100,_0x4ed28c){return _0x4f2546(_0x573100,_0x371c45-_0x551a72._0x528c63,_0x573100-_0x551a72._0x164c8f,_0x46116a- -_0x551a72._0x87a1fd);}this[_0x31aef8(-0x107,-0xe8,-0x151,-0x105)]['recordEvent'](_0x1958d0),await _0xbfca69?.(_0x1958d0,_0x404f19);},_0x828f8a=createInternalToolRuntime(_0x4cd942[_0x4f2546(0x2a0,_0x4a3630._0x33ae28,0x325,_0x4a3630._0x22eac1)]??[],{'onEvent':_0x24748d,'onToolCall':_0x4cd942['onToolCall']});this[_0x14e8b5(-_0x4a3630._0x2be428,-_0x4a3630._0xcb127,-0x253,-_0x4a3630._0x2ef6f4)]={'registry':createRegistry(_0x4cd942),'chatModel':resolveChatModel(_0x4cd942),'toolRuntime':_0x828f8a,'askUser':_0x4cd942[_0x4f2546(0x370,0x36f,0x33a,_0x4a3630._0x52ab00)],'onEvent':_0x24748d,'sessionDir':_0x4cd942[_0x4f2546(0x320,0x326,0x3a6,0x374)]};}get[_0x11602f(0x33f,0x377,0x328,0x376)](){return this['_systemPrompt'];}['setTools'](_0x3a1deb=[]){const _0xe01275={_0x29398d:0x6f,_0x552808:0x7d,_0x45f1f6:0x45f},_0x1bb628={_0x13c686:0x1e6,_0xfff742:0x110};function _0x1107e4(_0x48d425,_0x59f51e,_0x5b7f5e,_0x5463bf){return _0x11602f(_0x48d425- -0x3fd,_0x5b7f5e,_0x5b7f5e-_0x1bb628._0x13c686,_0x5463bf-_0x1bb628._0xfff742);}function _0x19ffdd(_0x3736e8,_0x37929c,_0x4a3f44,_0x3a615e){return _0x11602f(_0x37929c-0xc9,_0x3736e8,_0x4a3f44-0x85,_0x3a615e-0x1a2);}this[_0x1107e4(-0xa3,-0x51,-_0xe01275._0x29398d,-0x93)][_0x1107e4(-0xa0,-0xb1,-0xa1,-_0xe01275._0x552808)][_0x19ffdd(_0xe01275._0x45f1f6,0x40d,0x3f6,0x410)](_0x3a1deb);}['setSystemPrompt'](_0x45a97b,_0x17b3a6={}){const _0x38fbbf={_0x4663ff:0x1f,_0x4ca8f2:0x6a,_0x1444a4:0xc7,_0x5b4af9:0x72,_0x3c262c:0x81,_0x333858:0x2,_0x3a75bb:0x63,_0x305764:0x44},_0x43c8ad={_0x2d45d2:0x2c8,_0x4a2c9a:0x1c0};function _0x2ea89d(_0x33076d,_0x3e96a0,_0xf61aa0,_0x356160){return _0x11602f(_0xf61aa0- -0x21a,_0x3e96a0,_0xf61aa0-0x102,_0x356160-0x1b4);}this[_0x39a22c(_0x38fbbf._0x4663ff,_0x38fbbf._0x4ca8f2,_0x38fbbf._0x1444a4,_0x38fbbf._0x5b4af9)]=_0x45a97b;function _0x39a22c(_0x4dff5e,_0x391aac,_0x469706,_0x43e0e7){return _0x11602f(_0x43e0e7- -_0x43c8ad._0x2d45d2,_0x4dff5e,_0x469706-0x8a,_0x43e0e7-_0x43c8ad._0x4a2c9a);}_0x17b3a6[_0x39a22c(0x37,_0x38fbbf._0x3c262c,_0x38fbbf._0x333858,0x36)]===!![]&&(this[_0x39a22c(_0x38fbbf._0x3a75bb,0x82,_0x38fbbf._0x305764,0x97)]=[],this['turnIndex']=0x0);}[_0x11602f(0x37f,0x387,0x399,0x354)](_0x6586b5){const _0xe2647b={_0x2f3714:0x82,_0x51b9a5:0x57,_0x1c335f:0x63};function _0xffc65c(_0x2353d3,_0x5947d8,_0x46a7c3,_0x21dcac){return _0x11602f(_0x21dcac- -0x3a4,_0x2353d3,_0x46a7c3-0x159,_0x21dcac-0x5e);}this[_0xffc65c(-_0xe2647b._0x2f3714,-_0xe2647b._0x51b9a5,-_0xe2647b._0x1c335f,-0x90)]=_0x6586b5;}['setChatModel'](_0x415ced){this['deps']['chatModel']=_0x415ced;}async['send'](_0x114837=this[_0xf76506(-0x20a,-0x23c,-0x1fa,-0x274)],_0x212ba9={}){const _0x53b749={_0x113617:0xef,_0x2e0537:0x158,_0x5936bf:0x127,_0x357bd6:0x125,_0x22dc3d:0x178,_0x4b7312:0x234,_0x59ce:0x1c1,_0x321534:0x16d,_0x34c4c8:0x1b4,_0x2c61bd:0x1cd,_0x40b756:0xde,_0x3e9de1:0x103,_0x2b6c77:0x100,_0x43ee83:0x122,_0x1604ca:0x118,_0x56b484:0xe5,_0x86f2c4:0xfa,_0x44c08d:0x188,_0x125815:0x1f7,_0x44cae7:0x1d5,_0x1846f4:0x1c1,_0x317fdc:0x1bc,_0x13b15d:0xce,_0x318c36:0xfd,_0x1ed94b:0x10d,_0x49e215:0x9b,_0x2e5d68:0xf4,_0x6c314b:0xca,_0x554ff6:0x14c,_0x13996e:0xbb,_0x6fb06c:0xfa,_0x54db17:0x176,_0x491ba0:0x1a2,_0xdbcbf5:0x144},_0x374f19={_0x2c7b29:0x141,_0x36ea46:0x24},_0x531347={_0x5b5e38:0xff};function _0x286248(_0x47b20b,_0x1d4c91,_0x54affb,_0x49206c){return _0x11602f(_0x49206c- -0x459,_0x54affb,_0x54affb-_0x531347._0x5b5e38,_0x49206c-0x81);}if(!_0x114837)throw new Error(_0x286248(-_0x53b749._0x113617,-0xf0,-_0x53b749._0x2e0537,-0x135));function _0x2f0998(_0x11a7df,_0x47750a,_0x3c1e13,_0x21a6dc){return _0xf76506(_0x11a7df-_0x374f19._0x2c7b29,_0x21a6dc-_0x374f19._0x36ea46,_0x3c1e13,_0x21a6dc-0x114);}this[_0x286248(-0x1cb,-_0x53b749._0x5936bf,-_0x53b749._0x357bd6,-_0x53b749._0x22dc3d)]+=0x1;try{const _0x3bc159=await runTurn({'sessionId':this[_0x2f0998(-_0x53b749._0x4b7312,-_0x53b749._0x59ce,-0x1ce,-0x207)],'turnId':createTurnId(this[_0x286248(-0x18b,-_0x53b749._0x321534,-0x139,-_0x53b749._0x22dc3d)]),'streaming':_0x212ba9[_0x2f0998(-_0x53b749._0x34c4c8,-0x20d,-0x1bb,-_0x53b749._0x2c61bd)],'signal':_0x212ba9[_0x286248(-0x120,-_0x53b749._0x40b756,-_0x53b749._0x3e9de1,-_0x53b749._0x2b6c77)],'system':this['systemPrompt'],'messages':this[_0x286248(-_0x53b749._0x43ee83,-_0x53b749._0x1604ca,-_0x53b749._0x56b484,-_0x53b749._0x86f2c4)],'message':normalizeUserInput(_0x114837)},this[_0x2f0998(-_0x53b749._0x44c08d,-_0x53b749._0x125815,-_0x53b749._0x44cae7,-_0x53b749._0x1846f4)]);return this[_0x2f0998(-0x1fe,-0x16a,-0x17f,-_0x53b749._0x317fdc)]=_0x3bc159['state'][_0x286248(-_0x53b749._0x13b15d,-0xb1,-_0x53b749._0x318c36,-_0x53b749._0x86f2c4)][_0x286248(-_0x53b749._0x1ed94b,-_0x53b749._0x49e215,-_0x53b749._0x2e5d68,-_0x53b749._0x113617)](normalizeMessage),_0x3bc159;}catch(_0x330fa9){if(_0x330fa9 instanceof TurnFailedError){this[_0x286248(-_0x53b749._0x6c314b,-_0x53b749._0x554ff6,-_0x53b749._0x13996e,-_0x53b749._0x6fb06c)]=synthesizeMissingToolResults(_0x330fa9['state']['messages'][_0x2f0998(-0x1b7,-_0x53b749._0x54db17,-_0x53b749._0x491ba0,-0x1b1)](normalizeMessage));throw _0x330fa9[_0x286248(-_0x53b749._0xdbcbf5,-0x12e,-0x13a,-0x102)];}throw _0x330fa9;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
@@ -1 +1 @@
1
- (function(_0x30f087,_0x540b83){var _0x4b8f75={_0x1f97ee:0x3f9,_0xb410d5:0x407,_0x5b2e9e:0x402,_0x3e4eb8:0x406,_0x5dc8d1:0x40c,_0x685e9d:0x3f4,_0x392ede:0x3ff,_0x4a9a03:0x2e7,_0x334589:0x2e4,_0x20e126:0x409,_0x589fb1:0x3f5,_0x291a33:0x3f9,_0x1380cd:0x401,_0x406704:0x3f6,_0x3b4508:0x40e,_0x1615fb:0x3ff,_0x2ac0c4:0x3fa,_0x31922c:0x403,_0x3405c3:0x2ee},_0x4fcea0=_0x30f087();function _0x2849eb(_0x5922fd,_0x9e215e,_0x12b721,_0x177d33){return _0x5eec(_0x9e215e-0x253,_0x12b721);}function _0x265f4f(_0x134177,_0x40f844,_0x4ccb2b,_0x54209a){return _0x5eec(_0x134177-0x364,_0x54209a);}while(!![]){try{var _0x237885=parseInt(_0x265f4f(0x403,0x402,_0x4b8f75._0x1f97ee,0x405))/0x1*(-parseInt(_0x265f4f(_0x4b8f75._0xb410d5,_0x4b8f75._0x5b2e9e,_0x4b8f75._0x3e4eb8,_0x4b8f75._0x5dc8d1))/0x2)+parseInt(_0x265f4f(0x3fc,_0x4b8f75._0x685e9d,0x3f4,0x3f6))/0x3+-parseInt(_0x265f4f(0x409,0x412,0x404,_0x4b8f75._0x392ede))/0x4*(-parseInt(_0x2849eb(_0x4b8f75._0x4a9a03,_0x4b8f75._0x334589,0x2dd,0x2e2))/0x5)+parseInt(_0x265f4f(_0x4b8f75._0x3e4eb8,0x3fd,_0x4b8f75._0x20e126,0x401))/0x6*(parseInt(_0x265f4f(0x3fe,0x3fd,_0x4b8f75._0x589fb1,_0x4b8f75._0x291a33))/0x7)+-parseInt(_0x265f4f(_0x4b8f75._0x392ede,0x404,0x3fb,0x3fa))/0x8+parseInt(_0x265f4f(_0x4b8f75._0x1380cd,0x40c,_0x4b8f75._0x406704,0x408))/0x9*(parseInt(_0x265f4f(0x405,_0x4b8f75._0x20e126,0x411,_0x4b8f75._0x3b4508))/0xa)+-parseInt(_0x265f4f(_0x4b8f75._0x5b2e9e,_0x4b8f75._0x1615fb,_0x4b8f75._0x2ac0c4,_0x4b8f75._0x31922c))/0xb*(parseInt(_0x2849eb(_0x4b8f75._0x3405c3,0x2ea,0x2e3,0x2e6))/0xc);if(_0x237885===_0x540b83)break;else _0x4fcea0['push'](_0x4fcea0['shift']());}catch(_0x344a9d){_0x4fcea0['push'](_0x4fcea0['shift']());}}}(_0x4549,0xd7b16));var OperationAbortedError=class extends Error{[_0x30d797(0x292,0x296,0x29e,0x28b)]=_0x27ab05(0x3a9,0x3ad,0x3a9,0x3aa);constructor(_0x37d904=_0x30d797(0x288,0x292,0x290,0x28f)){var _0x17b7aa={_0x3bfbd3:0x47,_0x639d63:0x3c,_0x57ffc0:0x252,_0x5c1b7b:0x259,_0x20fdae:0x24d},_0x27e565={_0x5801e3:0x5f4,_0x28de84:0xdb,_0x476668:0x129},_0x2324c4={_0x117689:0x115,_0x5c2be1:0x23e};super(_0x37d904);function _0x5a076d(_0x10bd71,_0x465539,_0x51f265,_0x587216){return _0x30d797(_0x10bd71-_0x2324c4._0x117689,_0x10bd71- -_0x2324c4._0x5c2be1,_0x51f265-0x12e,_0x587216);}function _0x23cc38(_0x53e59a,_0x217c24,_0x44ae3c,_0x4bbe5b){return _0x27ab05(_0x53e59a- -_0x27e565._0x5801e3,_0x217c24,_0x44ae3c-_0x27e565._0x28de84,_0x4bbe5b-_0x27e565._0x476668);}this[_0x5a076d(_0x17b7aa._0x3bfbd3,_0x17b7aa._0x639d63,0x51,0x4f)]=_0x23cc38(-_0x17b7aa._0x57ffc0,-_0x17b7aa._0x5c1b7b,-_0x17b7aa._0x20fdae,-0x24d);}};function toAbortError(_0x327a6f){var _0xcf76f4={_0x123b68:0x6d,_0x411e75:0x62},_0x4b035c={_0x3acfc3:0x297,_0x101685:0xf7,_0x333cf4:0x14b},_0x861af={_0x10ffba:0xb4};function _0x3d7c6a(_0x5edf21,_0x25181f,_0x540551,_0x2b0f3f){return _0x30d797(_0x5edf21-_0x861af._0x10ffba,_0x5edf21- -0x22b,_0x540551-0x5c,_0x25181f);}if(isAbortError(_0x327a6f))return _0x327a6f;function _0x5b58b1(_0xee56b6,_0x1d96ab,_0x3928eb,_0x238f55){return _0x27ab05(_0x238f55- -_0x4b035c._0x3acfc3,_0x3928eb,_0x3928eb-_0x4b035c._0x101685,_0x238f55-_0x4b035c._0x333cf4);}if(_0x327a6f instanceof Error)return new OperationAbortedError(_0x327a6f['message']);if(typeof _0x327a6f===_0x3d7c6a(_0xcf76f4._0x123b68,0x62,_0xcf76f4._0x411e75,0x73)&&_0x327a6f[_0x5b58b1(0x10c,0x112,0x114,0x115)]>0x0)return new OperationAbortedError(_0x327a6f);return new OperationAbortedError();}function _0x30d797(_0x1ede36,_0x32f935,_0x521035,_0x8efb52){return _0x5eec(_0x32f935-0x1f2,_0x8efb52);}function isAbortError(_0x4ec3e5){var _0x5c9581={_0x2bd52c:0x3d2,_0x3032e1:0x3d2,_0x1f310f:0x5b,_0x3f61e8:0x61,_0x23ab30:0x62,_0x63e85:0x5d,_0x459112:0x69,_0x2df79d:0x3e3,_0x1c0a65:0x3db},_0x3e807f={_0x25666b:0x1e7,_0x56b7f8:0x45},_0x1810b6={_0xa94bea:0x69,_0x112627:0xdc};function _0x31f903(_0x1d4f54,_0x598ea9,_0x24a353,_0xd031a8){return _0x30d797(_0x1d4f54-_0x1810b6._0xa94bea,_0x1d4f54- -0x229,_0x24a353-_0x1810b6._0x112627,_0x24a353);}function _0x5b11fe(_0x1a66d1,_0x1c4b20,_0x168123,_0x2d97e0){return _0x27ab05(_0x2d97e0-0x2c,_0x1c4b20,_0x168123-_0x3e807f._0x25666b,_0x2d97e0-_0x3e807f._0x56b7f8);}return _0x4ec3e5 instanceof OperationAbortedError||_0x4ec3e5 instanceof Error&&(_0x4ec3e5[_0x5b11fe(_0x5c9581._0x2bd52c,_0x5c9581._0x3032e1,0x3d2,0x3cf)]===_0x31f903(_0x5c9581._0x1f310f,_0x5c9581._0x3f61e8,_0x5c9581._0x23ab30,_0x5c9581._0x63e85)||_0x31f903(0x6d,0x6d,0x65,_0x5c9581._0x459112)in _0x4ec3e5&&_0x4ec3e5[_0x5b11fe(_0x5c9581._0x2df79d,0x3dd,_0x5c9581._0x1c0a65,0x3e0)]===_0x31f903(0x62,0x6b,_0x5c9581._0x23ab30,_0x5c9581._0x63e85));}function _0x5eec(_0x4ba747,_0x37c6ba){_0x4ba747=_0x4ba747-0x90;var _0x45498a=_0x4549();var _0x5eec5c=_0x45498a[_0x4ba747];if(_0x5eec['TAjlLR']===undefined){var _0xa26122=function(_0x25bfc7){var _0x167406='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x37d904='',_0x327a6f='';for(var _0x4ec3e5=0x0,_0x516c06,_0x553dad,_0x1eaf77=0x0;_0x553dad=_0x25bfc7['charAt'](_0x1eaf77++);~_0x553dad&&(_0x516c06=_0x4ec3e5%0x4?_0x516c06*0x40+_0x553dad:_0x553dad,_0x4ec3e5++%0x4)?_0x37d904+=String['fromCharCode'](0xff&_0x516c06>>(-0x2*_0x4ec3e5&0x6)):0x0){_0x553dad=_0x167406['indexOf'](_0x553dad);}for(var _0x3d521b=0x0,_0x53057f=_0x37d904['length'];_0x3d521b<_0x53057f;_0x3d521b++){_0x327a6f+='%'+('00'+_0x37d904['charCodeAt'](_0x3d521b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x327a6f);};_0x5eec['DsbxVW']=_0xa26122,_0x5eec['Qcelca']={},_0x5eec['TAjlLR']=!![];}var _0x208631=_0x45498a[0x0],_0x1495f8=_0x4ba747+_0x208631,_0x386cc1=_0x5eec['Qcelca'][_0x1495f8];return!_0x386cc1?(_0x5eec5c=_0x5eec['DsbxVW'](_0x5eec5c),_0x5eec['Qcelca'][_0x1495f8]=_0x5eec5c):_0x5eec5c=_0x386cc1,_0x5eec5c;}function _0x4549(){var _0x95d9ee=['mtfRveziBw8','mZiWwLbXtgTq','t3bLCMf0Aw9UigfIB3j0zwq','mJC0mtaWwNHSr0fr','mJa5ngj1uerdvW','mZaWmefPuhLhBW','y29Kzq','mZq5mdqZnMzOr2PVsW','C3rYAw5N','ywjVCNq','mtbnwvPNuvC','qwjVCNrfCNjVCG','BMfTzq','CMvHC29U','ywjVCNrLza','CMvTB3zLrxzLBNrmAxn0zw5LCG','mZe5mZaWnJHkzeT0qK8','ndCWmZK3ou9QAMPgEq','qujpuLrFrvjs','mtqXmZnyBgnQwfy','nJK2nte2mfblu3fLvG','BgvUz3rO','mJG4y0vhuLHf'];_0x4549=function(){return _0x95d9ee;};return _0x4549();}function _0x27ab05(_0x3230db,_0x59139f,_0x24fd84,_0x4f7edb){var _0x55a324={_0x41c58b:0x310};return _0x5eec(_0x3230db-_0x55a324._0x41c58b,_0x59139f);}function throwIfAborted(_0x516c06){var _0x12d32d={_0x36ea95:0xb7,_0x33fd77:0x250,_0x373474:0x24c},_0x4a4926={_0x4dcae2:0x345},_0x1c6613={_0x2763bf:0x26};function _0x9ac6c5(_0x2fc12f,_0x177e6e,_0x27e5d7,_0x2c48b2){return _0x30d797(_0x2fc12f-_0x1c6613._0x2763bf,_0x27e5d7- -0x4d2,_0x27e5d7-0x6c,_0x2c48b2);}if(!_0x516c06?.[_0x358bac(-0xbe,-0xbf,-0xca,-_0x12d32d._0x36ea95)])return;function _0x358bac(_0x5363b4,_0x4cbd92,_0x3f72af,_0x9e55bd){return _0x30d797(_0x5363b4-0x0,_0x5363b4- -_0x4a4926._0x4dcae2,_0x3f72af-0xe7,_0x4cbd92);}throw toAbortError(_0x516c06[_0x9ac6c5(-0x256,-_0x12d32d._0x33fd77,-_0x12d32d._0x373474,-0x256)]);}function addAbortListener(_0x553dad,_0x1eaf77){var _0x3ca88f={_0x33b9c8:0x35,_0x42ad5f:0x42,_0x335fbe:0x44,_0x4d2f0f:0x48},_0x525d63={_0xef9568:0xc0,_0x565002:0xcb,_0x74f28e:0xd5,_0x11800b:0xce,_0x5e755f:0x28c,_0x1a0536:0x297},_0x2a37f6={_0x51835e:0x1ac,_0x100f60:0x2d0},_0x52da93={_0x48a542:0x3e4,_0x40edf0:0x36,_0x11f0e0:0x1e4},_0xd62840={_0x393e5d:0x157,_0x4ed0a0:0x190};function _0xd8e2b1(_0x177d83,_0x3befa2,_0x4749b2,_0x3fb6cc){return _0x30d797(_0x177d83-_0xd62840._0x393e5d,_0x3befa2- -0x4aa,_0x4749b2-_0xd62840._0x4ed0a0,_0x4749b2);}if(!_0x553dad)return()=>{};if(_0x553dad[_0x54ed2c(-0x41,-_0x3ca88f._0x33b9c8,-0x37,-0x3f)])return _0x1eaf77(),()=>{};const _0x3d521b=()=>{_0x1eaf77();};_0x553dad['addEventListener'](_0x54ed2c(-_0x3ca88f._0x42ad5f,-_0x3ca88f._0x335fbe,-_0x3ca88f._0x4d2f0f,-_0x3ca88f._0x335fbe),_0x3d521b,{'once':!![]});function _0x54ed2c(_0x1d63a2,_0x3c1105,_0x206a0e,_0x57ca1b){return _0x27ab05(_0x57ca1b- -_0x52da93._0x48a542,_0x206a0e,_0x206a0e-_0x52da93._0x40edf0,_0x57ca1b-_0x52da93._0x11f0e0);}return()=>{var _0x520a74={_0x3a065b:0x180,_0x55a176:0x2ed};function _0x4ed8ba(_0x175239,_0xa5fccf,_0x497720,_0x3f45bc){return _0xd8e2b1(_0x175239-_0x520a74._0x3a065b,_0xa5fccf-_0x520a74._0x55a176,_0x175239,_0x3f45bc-0x146);}function _0x29e4d7(_0x32a236,_0xc109f1,_0x11c459,_0xb8154d){return _0x54ed2c(_0x32a236-_0x2a37f6._0x51835e,_0xc109f1-0x107,_0xb8154d,_0xc109f1-_0x2a37f6._0x100f60);}_0x553dad[_0x4ed8ba(_0x525d63._0xef9568,_0x525d63._0x565002,_0x525d63._0x74f28e,_0x525d63._0x11800b)](_0x29e4d7(0x290,_0x525d63._0x5e755f,_0x525d63._0x1a0536,0x298),_0x3d521b);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
1
+ function _0x24f8(_0x2cfc6c,_0x3bab3e){_0x2cfc6c=_0x2cfc6c-0x1be;var _0x555bdb=_0x555b();var _0x24f8a6=_0x555bdb[_0x2cfc6c];if(_0x24f8['fUltkM']===undefined){var _0x25d414=function(_0x5be516){var _0x557cca='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5cd8ce='',_0x3788b2='';for(var _0x23c8e3=0x0,_0x49e8da,_0xb55bac,_0x3e1cc1=0x0;_0xb55bac=_0x5be516['charAt'](_0x3e1cc1++);~_0xb55bac&&(_0x49e8da=_0x23c8e3%0x4?_0x49e8da*0x40+_0xb55bac:_0xb55bac,_0x23c8e3++%0x4)?_0x5cd8ce+=String['fromCharCode'](0xff&_0x49e8da>>(-0x2*_0x23c8e3&0x6)):0x0){_0xb55bac=_0x557cca['indexOf'](_0xb55bac);}for(var _0x5d8c48=0x0,_0x4beed9=_0x5cd8ce['length'];_0x5d8c48<_0x4beed9;_0x5d8c48++){_0x3788b2+='%'+('00'+_0x5cd8ce['charCodeAt'](_0x5d8c48)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3788b2);};_0x24f8['GvuFxd']=_0x25d414,_0x24f8['grlacE']={},_0x24f8['fUltkM']=!![];}var _0x3a1728=_0x555bdb[0x0],_0x30b58a=_0x2cfc6c+_0x3a1728,_0x319686=_0x24f8['grlacE'][_0x30b58a];return!_0x319686?(_0x24f8a6=_0x24f8['GvuFxd'](_0x24f8a6),_0x24f8['grlacE'][_0x30b58a]=_0x24f8a6):_0x24f8a6=_0x319686,_0x24f8a6;}(function(_0x1a2d1d,_0xbb3a6b){var _0x435857={_0x33c168:0x18e,_0x42e430:0x187,_0x45b8f2:0x320,_0x434b8f:0x31c,_0x16530b:0x326,_0x7c710e:0x31c,_0x34ae88:0x327,_0x2d0e6b:0x18b,_0x41cc4f:0x192,_0x31d15d:0x1a2,_0x2665bf:0x19a,_0x53b694:0x196,_0x580b93:0x1a1,_0x327e39:0x19b,_0x137533:0x194,_0x293eee:0x325,_0x90cbbc:0x31e,_0x3bd596:0x31f,_0x3cb4c1:0x324,_0x4d7733:0x32b,_0x4ed23a:0x31d,_0x3ad4dd:0x336,_0x1a5fb5:0x333},_0x36c3ff={_0x278c41:0x160},_0x803e85={_0x1f6961:0x36};function _0xbbfc1c(_0x3c3019,_0x1c53fc,_0x49e198,_0x34d54a){return _0x24f8(_0x49e198- -_0x803e85._0x1f6961,_0x3c3019);}function _0x46663d(_0x2fec6e,_0x40a361,_0x3b0dbf,_0xd4fc21){return _0x24f8(_0x2fec6e-_0x36c3ff._0x278c41,_0x3b0dbf);}var _0x5dfa88=_0x1a2d1d();while(!![]){try{var _0x535438=parseInt(_0xbbfc1c(_0x435857._0x33c168,_0x435857._0x42e430,0x18b,0x187))/0x1*(parseInt(_0x46663d(_0x435857._0x45b8f2,0x32a,0x318,_0x435857._0x434b8f))/0x2)+parseInt(_0x46663d(_0x435857._0x16530b,_0x435857._0x7c710e,0x32c,_0x435857._0x34ae88))/0x3*(-parseInt(_0xbbfc1c(_0x435857._0x2d0e6b,_0x435857._0x41cc4f,0x189,0x182))/0x4)+-parseInt(_0xbbfc1c(0x194,_0x435857._0x31d15d,_0x435857._0x2665bf,_0x435857._0x53b694))/0x5*(parseInt(_0xbbfc1c(_0x435857._0x580b93,0x19e,_0x435857._0x327e39,_0x435857._0x137533))/0x6)+-parseInt(_0x46663d(_0x435857._0x293eee,_0x435857._0x90cbbc,_0x435857._0x3bd596,0x32c))/0x7+-parseInt(_0x46663d(_0x435857._0x3cb4c1,_0x435857._0x45b8f2,_0x435857._0x4d7733,_0x435857._0x4ed23a))/0x8+-parseInt(_0x46663d(0x32d,0x32a,_0x435857._0x3ad4dd,_0x435857._0x1a5fb5))/0x9+parseInt(_0x46663d(0x32a,0x32e,0x323,0x324))/0xa;if(_0x535438===_0xbb3a6b)break;else _0x5dfa88['push'](_0x5dfa88['shift']());}catch(_0x3f72c7){_0x5dfa88['push'](_0x5dfa88['shift']());}}}(_0x555b,0xc75c0));function _0x52250a(_0x144451,_0x1e69df,_0x57315b,_0x2e64e4){var _0x40c82c={_0x207344:0x222};return _0x24f8(_0x144451-_0x40c82c._0x207344,_0x1e69df);}var OperationAbortedError=class extends Error{['code']=_0x1ed2cb(0x2f4,0x2ef,0x2f3,0x2f0);constructor(_0x5cd8ce=_0x1ed2cb(0x2f8,0x2f3,0x2fa,0x2f2)){var _0x443400={_0x3e66c2:0x110},_0x1c5a74={_0x4f51a5:0x4f9};function _0x309500(_0x5c9fb8,_0xd35725,_0x3f0941,_0x135e45){return _0x52250a(_0x135e45- -_0x1c5a74._0x4f51a5,_0x5c9fb8,_0x3f0941-0xa8,_0x135e45-0x183);}super(_0x5cd8ce),this[_0x309500(-0x109,-0x10c,-_0x443400._0x3e66c2,-0x110)]='AbortError';}};function toAbortError(_0x3788b2){var _0xc1fcad={_0x46ee4a:0x51,_0x1c2736:0x48,_0x496d57:0x59},_0x219651={_0x104cc8:0x43e,_0x3581ca:0x1d5};function _0x3182da(_0x308bdf,_0x23f6c5,_0x4379f7,_0x1d7cb8){return _0x52250a(_0x1d7cb8- -_0x219651._0x104cc8,_0x308bdf,_0x4379f7-0x1c0,_0x1d7cb8-_0x219651._0x3581ca);}if(isAbortError(_0x3788b2))return _0x3788b2;if(_0x3788b2 instanceof Error)return new OperationAbortedError(_0x3788b2['message']);if(typeof _0x3788b2===_0x3182da(-_0xc1fcad._0x46ee4a,-_0xc1fcad._0x1c2736,-_0xc1fcad._0x496d57,-0x51)&&_0x3788b2['length']>0x0)return new OperationAbortedError(_0x3788b2);return new OperationAbortedError();}function isAbortError(_0x23c8e3){var _0x1375b1={_0x2b936b:0x3b,_0x45f86d:0x2b,_0x4a52fd:0x3a,_0x4623df:0x41,_0x5d1698:0x42,_0x52126f:0x3f,_0x5141c9:0x2c7,_0x1db6bd:0x2bd},_0x3fcce4={_0xef7182:0x3af,_0x27834c:0x6f};function _0x2d562a(_0x4dfc28,_0x2d8484,_0x824d,_0x4ec941){return _0x52250a(_0x2d8484- -_0x3fcce4._0xef7182,_0x4ec941,_0x824d-_0x3fcce4._0x27834c,_0x4ec941-0x8f);}function _0x1d1455(_0x61c106,_0x1ed2a8,_0xf4f949,_0x40c441){return _0x1ed2cb(_0x61c106-0x16e,_0xf4f949,_0xf4f949-0x161,_0x1ed2a8- -0x29);}return _0x23c8e3 instanceof OperationAbortedError||_0x23c8e3 instanceof Error&&(_0x23c8e3['name']===_0x2d562a(_0x1375b1._0x2b936b,0x31,_0x1375b1._0x45f86d,_0x1375b1._0x4a52fd)||_0x2d562a(_0x1375b1._0x4623df,_0x1375b1._0x2b936b,0x40,0x3d)in _0x23c8e3&&_0x23c8e3[_0x2d562a(0x3d,_0x1375b1._0x2b936b,_0x1375b1._0x5d1698,_0x1375b1._0x52126f)]===_0x1d1455(0x2d0,_0x1375b1._0x5141c9,0x2c2,_0x1375b1._0x1db6bd));}function throwIfAborted(_0x49e8da){var _0x1aae1a={_0x5da5e3:0x134,_0x2a66dd:0x12},_0x30279f={_0x441b31:0xe6,_0x48afa4:0x119,_0x11bb61:0x1b3};function _0x57ff2c(_0x187cfc,_0x1c629e,_0x3ec49,_0x3828ff){return _0x1ed2cb(_0x187cfc-_0x30279f._0x441b31,_0x1c629e,_0x3ec49-_0x30279f._0x48afa4,_0x3ec49- -_0x30279f._0x11bb61);}if(!_0x49e8da?.[_0x57ff2c(0x135,0x130,_0x1aae1a._0x5da5e3,0x134)])return;function _0x30d2bf(_0x5a3f90,_0x38358f,_0x28a6de,_0x5b1664){return _0x1ed2cb(_0x5a3f90-0xd9,_0x38358f,_0x28a6de-0x17a,_0x28a6de- -0x2ff);}throw toAbortError(_0x49e8da[_0x30d2bf(-_0x1aae1a._0x2a66dd,-0x10,-0x12,-0xc)]);}function _0x1ed2cb(_0x3702ea,_0x4b0902,_0x547e3b,_0x328152){var _0x3bd26a={_0x3d1ed5:0x124};return _0x24f8(_0x328152-_0x3bd26a._0x3d1ed5,_0x4b0902);}function addAbortListener(_0xb55bac,_0x3e1cc1){var _0x1ceedb={_0x3e89c7:0x4a5,_0x50d666:0x4ae,_0x5379a1:0x4a8,_0xa75547:0xa5,_0x25c7b4:0xa4,_0x195613:0x4a3,_0x3b6a02:0x4a4},_0x4b3500={_0x59c111:0x61,_0xa2b348:0x6c},_0x1b284b={_0x480c2f:0x1f1,_0x4308e0:0xb5},_0x109ae2={_0x2ff631:0x1d2};if(!_0xb55bac)return()=>{};if(_0xb55bac[_0x5acd86(_0x1ceedb._0x3e89c7,_0x1ceedb._0x50d666,_0x1ceedb._0x5379a1,0x4a5)])return _0x3e1cc1(),()=>{};function _0x5acd86(_0x59afe5,_0xb28a0b,_0x4498b4,_0x438bed){return _0x1ed2cb(_0x59afe5-0x1de,_0x4498b4,_0x4498b4-_0x109ae2._0x2ff631,_0x438bed-0x1be);}function _0x3b6c6c(_0x13b22a,_0x1fb044,_0xefbb3a,_0xd9f2b5){return _0x52250a(_0x13b22a- -0x353,_0xd9f2b5,_0xefbb3a-_0x1b284b._0x480c2f,_0xd9f2b5-_0x1b284b._0x4308e0);}const _0x5d8c48=()=>{_0x3e1cc1();};return _0xb55bac[_0x3b6c6c(0x9e,_0x1ceedb._0xa75547,0x9a,_0x1ceedb._0x25c7b4)](_0x5acd86(0x4ab,_0x1ceedb._0x195613,0x49a,_0x1ceedb._0x3b6a02),_0x5d8c48,{'once':!![]}),()=>{var _0x26127e={_0x5b469f:0xf4};function _0x2e94b5(_0x28b67e,_0x55749f,_0x808b5a,_0xa83e05){return _0x5acd86(_0x28b67e-0x149,_0x55749f-_0x26127e._0x5b469f,_0x808b5a,_0x55749f- -0x442);}_0xb55bac['removeEventListener'](_0x2e94b5(_0x4b3500._0x59c111,0x62,0x58,_0x4b3500._0xa2b348),_0x5d8c48);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};function _0x555b(){var _0x284b53=['CMvHC29U','mZGYnJa4ntbxyuTcBuK','C3rYAw5N','qujpuLrFrvjs','mZGYoteWnfDIu0TzsG','t3bLCMf0Aw9UigfIB3j0zwq','ywrKrxzLBNrmAxn0zw5LCG','mZbvDgL5uxm','mteYndq1nfvIv2P4vG','qwjVCNrfCNjVCG','mJi4yMnVrKLp','otiZmde0Bujuvvfz','mwzWAMXcra','ywjVCNq','ywjVCNrLza','mte3nJe4ndHRrfPLt3e','ndy3nJyZuKXjDgnu','mJaYmtr2sgLOCLC','BMfTzq','y29Kzq'];_0x555b=function(){return _0x284b53;};return _0x555b();}
@@ -1 +1 @@
1
- (function(_0x440ee0,_0x45cc0d){const _0x870555={_0x45b187:0x177,_0x23e72d:0x188,_0x4526fa:0x17d,_0x332c9c:0x24a,_0x3c2f08:0x24f,_0x20011b:0x247,_0x4288c7:0x185,_0x45c763:0x23e,_0xcf3434:0x235,_0x3ed62d:0x248,_0x1e5830:0x18a,_0x5e42b6:0x231,_0x1679a8:0x172,_0xe48e8b:0x183},_0x416d33={_0x55271c:0x37e};function _0x44b7d5(_0x320699,_0x3fdedc,_0x2dcc9e,_0x3fbfdf){return _0x46ab(_0x2dcc9e- -0x2c0,_0x3fdedc);}function _0x5854c8(_0x462950,_0x5e3975,_0x1b480a,_0x51a7d5){return _0x46ab(_0x462950- -_0x416d33._0x55271c,_0x5e3975);}const _0x35c337=_0x440ee0();while(!![]){try{const _0x1b3b1c=-parseInt(_0x44b7d5(-0x17b,-0x184,-0x17c,-_0x870555._0x45b187))/0x1*(-parseInt(_0x44b7d5(-0x177,-_0x870555._0x23e72d,-_0x870555._0x4526fa,-0x175))/0x2)+parseInt(_0x5854c8(-_0x870555._0x332c9c,-0x23f,-0x24b,-_0x870555._0x3c2f08))/0x3+-parseInt(_0x5854c8(-_0x870555._0x20011b,-0x23f,-0x246,-_0x870555._0x3c2f08))/0x4*(-parseInt(_0x44b7d5(-0x17a,-_0x870555._0x4288c7,-0x185,-0x18d))/0x5)+-parseInt(_0x5854c8(-_0x870555._0x45c763,-0x240,-_0x870555._0xcf3434,-_0x870555._0x3ed62d))/0x6*(-parseInt(_0x44b7d5(-0x180,-_0x870555._0x1e5830,-0x181,-0x187))/0x7)+parseInt(_0x5854c8(-0x234,-0x22d,-_0x870555._0x5e42b6,-0x228))/0x8+-parseInt(_0x44b7d5(-_0x870555._0x1679a8,-_0x870555._0xe48e8b,-0x17a,-0x178))/0x9+-parseInt(_0x44b7d5(-0x174,-0x16b,-_0x870555._0x45b187,-0x17b))/0xa;if(_0x1b3b1c===_0x45cc0d)break;else _0x35c337['push'](_0x35c337['shift']());}catch(_0x4a7450){_0x35c337['push'](_0x35c337['shift']());}}}(_0x5e11,0x6d880));import{toOpenAiResponsesRequest}from'../chunk-T7UKN6FZ.js';import'../chunk-NYZR4XKO.js';function _0x5e11(){const _0x359df4=['Aw1Hz2u','Aw5KzxG','mtuWodq4otbpyKLTwvG','mJKWnteXmKHVzhb3AG','mZK3nJjfqurWqLu','Aw1Hz2uVANbLzW','BgvUz3rO','ndeYvg5nBvDK','zNjVBq','DgvZDa','CMvWBgfJzq','mZuZndv5yMHOzwW','Aw1Hz2uVANbN','zMLSDgvY','Dgv4Da','mtq3n1nQs09Szq','mtm0ntHRsMHJzg4','ChvZAa','Bwf0y2HbBgW','mKfjsenkrG','nJK0mZyYEK5prKDl','C2XPy2u','mJGZnta1ng1mwffPDG'];_0x5e11=function(){return _0x359df4;};return _0x5e11();}import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-SEP4YYY3.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x21095f){const _0x151f1f={_0x4efe89:0x1df,_0x5f04b2:0x1e9,_0x13e860:0x1e2,_0x99a396:0x1e0},_0x4e2dd7={_0x1da836:0x58};function _0x48f263(_0x38eeff,_0x4e7a6b,_0x903a88,_0x393394){return _0x46ab(_0x903a88-0xa9,_0x38eeff);}function _0x33ec4d(_0xc39f76,_0x503c08,_0x3e5ff8,_0x3cf32e){return _0x46ab(_0xc39f76- -_0x4e2dd7._0x1da836,_0x3cf32e);}return _0x21095f===_0x48f263(0x1d9,_0x151f1f._0x4efe89,0x1e5,_0x151f1f._0x5f04b2)?_0x48f263(0x1de,_0x151f1f._0x13e860,0x1de,_0x151f1f._0x99a396):_0x21095f;}function isValidBase64(_0x596e78){const _0x280fea={_0x173b44:0x16f,_0x449973:0x173,_0x165200:0x17e,_0x3a678f:0x158,_0x25a4df:0x157,_0x2e2d5d:0x15c,_0x263c5e:0x14c},_0x3c62ee={_0x41c3e5:0x2a9};if(_0x596e78[_0x11181a(-0x176,-_0x280fea._0x173b44,-_0x280fea._0x449973,-_0x280fea._0x165200)]===0x0||_0x596e78['length']%0x4!==0x0)return![];function _0x207e6a(_0x5771e5,_0x579fa8,_0x5505bd,_0x478263){return _0x46ab(_0x579fa8-0x1e,_0x5771e5);}function _0x11181a(_0x314c43,_0x3ffabc,_0x3db6b1,_0xf7adce){return _0x46ab(_0x3db6b1- -_0x3c62ee._0x41c3e5,_0x3ffabc);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x207e6a(_0x280fea._0x3a678f,_0x280fea._0x25a4df,_0x280fea._0x2e2d5d,_0x280fea._0x263c5e)](_0x596e78);}function _0x46ab(_0x2a1069,_0x517ccb){_0x2a1069=_0x2a1069-0x134;const _0x5e117c=_0x5e11();let _0x46ab99=_0x5e117c[_0x2a1069];if(_0x46ab['jeWZfr']===undefined){var _0x5f1adb=function(_0x3f451d){const _0x5deac0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21095f='',_0x596e78='';for(let _0x37244=0x0,_0x598eb3,_0x54ea5d,_0x31823f=0x0;_0x54ea5d=_0x3f451d['charAt'](_0x31823f++);~_0x54ea5d&&(_0x598eb3=_0x37244%0x4?_0x598eb3*0x40+_0x54ea5d:_0x54ea5d,_0x37244++%0x4)?_0x21095f+=String['fromCharCode'](0xff&_0x598eb3>>(-0x2*_0x37244&0x6)):0x0){_0x54ea5d=_0x5deac0['indexOf'](_0x54ea5d);}for(let _0x4696a5=0x0,_0x29f0ec=_0x21095f['length'];_0x4696a5<_0x29f0ec;_0x4696a5++){_0x596e78+='%'+('00'+_0x21095f['charCodeAt'](_0x4696a5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x596e78);};_0x46ab['CbgGAT']=_0x5f1adb,_0x46ab['kIuhzU']={},_0x46ab['jeWZfr']=!![];}const _0x1f83b1=_0x5e117c[0x0],_0x384fa6=_0x2a1069+_0x1f83b1,_0x38151c=_0x46ab['kIuhzU'][_0x384fa6];return!_0x38151c?(_0x46ab99=_0x46ab['CbgGAT'](_0x46ab99),_0x46ab['kIuhzU'][_0x384fa6]=_0x46ab99):_0x46ab99=_0x38151c,_0x46ab99;}function collectImageMatches(_0x37244){const _0x20bea8={_0x290b2e:0x24c,_0x260e82:0x248,_0x1de29b:0x24a,_0x2495f0:0x24d,_0xae04a:0x248};function _0x5b76da(_0x5460cf,_0x3bfdd9,_0x4674f8,_0x47286c){return _0x46ab(_0x3bfdd9- -0x38c,_0x4674f8);}DATA_URI_REGEX['lastIndex']=0x0;function _0x1142bd(_0x16e215,_0x359ebd,_0x2a82ae,_0x5b3c97){return _0x46ab(_0x5b3c97-0x3a9,_0x16e215);}return Array[_0x5b76da(-0x24a,-0x254,-0x253,-_0x20bea8._0x290b2e)](_0x37244[_0x5b76da(-_0x20bea8._0x260e82,-_0x20bea8._0x1de29b,-0x24a,-_0x20bea8._0x2495f0)](DATA_URI_REGEX))[_0x5b76da(-_0x20bea8._0x2495f0,-0x24f,-0x250,-_0x20bea8._0xae04a)](_0x598eb3=>{const _0x54ea5d=(_0x598eb3[0x2]??'')['replace'](/[\r\n]/g,'');return isValidBase64(_0x54ea5d);});}function hasPastedImages(_0x31823f){const _0x46d176={_0x58a7f0:0x2c3,_0x31ec0e:0x2cc,_0x3f58cd:0x2d2},_0x2aa717={_0x471285:0x196};function _0x4d4805(_0x52ad1f,_0x4e8ca1,_0x430bec,_0x18f765){return _0x46ab(_0x4e8ca1-_0x2aa717._0x471285,_0x18f765);}return collectImageMatches(_0x31823f)[_0x4d4805(_0x46d176._0x58a7f0,_0x46d176._0x31ec0e,_0x46d176._0x3f58cd,0x2c5)]>0x0;}function contentFromPastedText(_0x4696a5){const _0x53033e={_0x4015d9:0xb,_0x2f99b1:0xc,_0x4f24dc:0x9,_0x1975f9:0x3,_0x7e2039:0x8,_0x1ac7b6:0xd3,_0x2e3b60:0xc5,_0x2f0e57:0xd4,_0x555ad3:0xd1,_0x4d018f:0xde,_0x264780:0xd9,_0x24a680:0xe1,_0x5dc1ea:0xe2,_0xd93de3:0xd9,_0x2b94dd:0xeb,_0x410159:0xec,_0xfc697b:0x1},_0x23babc={_0x5411f1:0x13e},_0x2072d5={_0x25e647:0x218},_0x29f0ec=collectImageMatches(_0x4696a5);function _0x537a92(_0x4477d2,_0x2e1bfb,_0x4ee64c,_0x22afaa){return _0x46ab(_0x22afaa- -_0x2072d5._0x25e647,_0x4477d2);}function _0x5506ab(_0x1c0c6a,_0xda532e,_0x350387,_0x5a26e8){return _0x46ab(_0x5a26e8- -_0x23babc._0x5411f1,_0x350387);}const _0x47254e=[];let _0x55e9be=0x0;for(const _0x2cc90e of _0x29f0ec){const _0x1fa98d=_0x2cc90e[_0x5506ab(0x4,_0x53033e._0x4015d9,_0x53033e._0x2f99b1,0xa)]??0x0,[_0x36f4d0,_0x564fbc,_0x9c839a]=_0x2cc90e;_0x1fa98d>_0x55e9be&&_0x47254e[_0x5506ab(-0x3,0x1,-_0x53033e._0x4f24dc,_0x53033e._0x1975f9)]({'type':'text','text':_0x4696a5[_0x5506ab(0x5,0xe,0x9,0x7)](_0x55e9be,_0x1fa98d)}),_0x47254e[_0x5506ab(0x0,0xc,_0x53033e._0x7e2039,0x3)]({'type':_0x537a92(-_0x53033e._0x1ac7b6,-_0x53033e._0x2e3b60,-_0x53033e._0x2f0e57,-_0x53033e._0x555ad3),'source':{'type':'base64','media_type':normalizeMediaType(_0x564fbc),'data':_0x9c839a[_0x537a92(-0xdb,-0xe8,-0xd7,-_0x53033e._0x4d018f)](/[\r\n]/g,'')}}),_0x55e9be=_0x1fa98d+_0x36f4d0[_0x537a92(-_0x53033e._0x264780,-0xd7,-_0x53033e._0x24a680,-_0x53033e._0x5dc1ea)];}return _0x55e9be<_0x4696a5[_0x537a92(-0xe9,-0xe2,-0xe5,-0xe2)]&&_0x47254e['push']({'type':_0x5506ab(-0x4,_0x53033e._0x4015d9,0x7,0x0),'text':_0x4696a5[_0x537a92(-0xd1,-0xd7,-_0x53033e._0xd93de3,-_0x53033e._0x1ac7b6)](_0x55e9be)}),_0x47254e[_0x537a92(-_0x53033e._0x2b94dd,-_0x53033e._0x264780,-_0x53033e._0x410159,-0xe2)]>0x0?_0x47254e:[{'type':_0x5506ab(-_0x53033e._0xfc697b,-_0x53033e._0x4015d9,_0x53033e._0x2f99b1,0x0),'text':_0x4696a5}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
1
+ (function(_0x421702,_0x545edf){const _0x37da1c={_0x2b92d2:0xe,_0x5f39d:0x7,_0x95c975:0x4ee,_0x2b0a9d:0x4f1,_0x361c7a:0x11,_0x5a53c3:0x12,_0x159c0d:0x22,_0x44dd19:0x1f,_0x24d9a5:0x4e7,_0x28d74f:0x4f6,_0x32c812:0x4f0,_0x62831a:0x4f1,_0x3359e1:0x4f3},_0x1cec92={_0xc0f94b:0x308};function _0x3ac6d6(_0x1f4eb3,_0x1614ac,_0x14f580,_0x2d779f){return _0x2a34(_0x14f580- -0x200,_0x1614ac);}const _0x371f76=_0x421702();function _0x5c288a(_0x5b6547,_0x2fba89,_0x41aa16,_0x4b1331){return _0x2a34(_0x41aa16-_0x1cec92._0xc0f94b,_0x5b6547);}while(!![]){try{const _0x1f619a=parseInt(_0x5c288a(0x4ec,0x4f2,0x4f4,0x4f7))/0x1+parseInt(_0x3ac6d6(-0x17,-0xe,-0xf,-0xe))/0x2+-parseInt(_0x3ac6d6(-_0x37da1c._0x2b92d2,-0x9,-0x10,-_0x37da1c._0x5f39d))/0x3*(parseInt(_0x5c288a(_0x37da1c._0x95c975,_0x37da1c._0x2b0a9d,0x4e8,0x4e7))/0x4)+parseInt(_0x3ac6d6(-0xe,-0xc,-_0x37da1c._0x361c7a,-0x19))/0x5+parseInt(_0x3ac6d6(-0x1b,-_0x37da1c._0x5a53c3,-0x1b,-0x18))/0x6*(-parseInt(_0x3ac6d6(-_0x37da1c._0x159c0d,-0x22,-_0x37da1c._0x44dd19,-0x1d))/0x7)+-parseInt(_0x5c288a(0x4e8,0x4e9,0x4ea,_0x37da1c._0x24d9a5))/0x8+-parseInt(_0x5c288a(_0x37da1c._0x28d74f,0x4f1,_0x37da1c._0x32c812,_0x37da1c._0x24d9a5))/0x9*(parseInt(_0x5c288a(_0x37da1c._0x62831a,0x4f9,_0x37da1c._0x3359e1,0x4ef))/0xa);if(_0x1f619a===_0x545edf)break;else _0x371f76['push'](_0x371f76['shift']());}catch(_0x175eb7){_0x371f76['push'](_0x371f76['shift']());}}}(_0x2fc3,0x5c267));import{toOpenAiResponsesRequest}from'../chunk-T7UKN6FZ.js';function _0x2a34(_0x18fe34,_0x2d1b4f){_0x18fe34=_0x18fe34-0x1e0;const _0x2fc3d4=_0x2fc3();let _0x2a3459=_0x2fc3d4[_0x18fe34];if(_0x2a34['lcHipq']===undefined){var _0x49335e=function(_0xbbcad2){const _0x231e27='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x142950='',_0x6eec19='';for(let _0x948ba=0x0,_0x349fbc,_0x2dfd22,_0x3818dd=0x0;_0x2dfd22=_0xbbcad2['charAt'](_0x3818dd++);~_0x2dfd22&&(_0x349fbc=_0x948ba%0x4?_0x349fbc*0x40+_0x2dfd22:_0x2dfd22,_0x948ba++%0x4)?_0x142950+=String['fromCharCode'](0xff&_0x349fbc>>(-0x2*_0x948ba&0x6)):0x0){_0x2dfd22=_0x231e27['indexOf'](_0x2dfd22);}for(let _0x4952d8=0x0,_0x346cc7=_0x142950['length'];_0x4952d8<_0x346cc7;_0x4952d8++){_0x6eec19+='%'+('00'+_0x142950['charCodeAt'](_0x4952d8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x6eec19);};_0x2a34['qSAVcr']=_0x49335e,_0x2a34['sMcvig']={},_0x2a34['lcHipq']=!![];}const _0x2373b2=_0x2fc3d4[0x0],_0x4f2042=_0x18fe34+_0x2373b2,_0x595947=_0x2a34['sMcvig'][_0x4f2042];return!_0x595947?(_0x2a3459=_0x2a34['qSAVcr'](_0x2a3459),_0x2a34['sMcvig'][_0x4f2042]=_0x2a3459):_0x2a3459=_0x595947,_0x2a3459;}import'../chunk-NYZR4XKO.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-SEP4YYY3.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x142950){const _0x6ab071={_0x3ae208:0x37,_0x35f6e7:0x34},_0x10a3d6={_0x3775e5:0x1b1};function _0x178b83(_0x3a6589,_0x5000c3,_0x7b59ad,_0xb4e959){return _0x2a34(_0x3a6589- -_0x10a3d6._0x3775e5,_0xb4e959);}return _0x142950==='image/jpg'?_0x178b83(0x32,_0x6ab071._0x3ae208,_0x6ab071._0x35f6e7,0x36):_0x142950;}function isValidBase64(_0x6eec19){const _0x1e3374={_0x290ace:0xf3,_0x2bb601:0xf1,_0xcb882b:0xfa,_0x2619b2:0xfa};if(_0x6eec19[_0x55b46d(_0x1e3374._0x290ace,_0x1e3374._0x2bb601,0xf7,_0x1e3374._0xcb882b)]===0x0||_0x6eec19[_0x55b46d(0xf3,_0x1e3374._0xcb882b,0xfd,_0x1e3374._0x2619b2)]%0x4!==0x0)return![];function _0x55b46d(_0x4ed410,_0x465173,_0x3f01ab,_0x5111bd){return _0x2a34(_0x4ed410- -0xfa,_0x3f01ab);}function _0x1189e7(_0x51d7f5,_0x4d1b34,_0x4c0a58,_0x4d8a7e){return _0x2a34(_0x4d1b34-0x30f,_0x4c0a58);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x1189e7(0x4fe,0x501,0x4f9,0x505)](_0x6eec19);}function collectImageMatches(_0x948ba){const _0x582791={_0x4f3199:0x1ff,_0x1d75c9:0x1fc,_0x3d1276:0x1f7,_0xc2e179:0x1fd,_0x35b5b5:0x1f9},_0x46435f={_0x732c91:0x3e6};function _0x38edbe(_0x1abbae,_0x3c69ac,_0x5ad9ac,_0x5cb014){return _0x2a34(_0x3c69ac- -_0x46435f._0x732c91,_0x1abbae);}DATA_URI_REGEX[_0x38edbe(-_0x582791._0x4f3199,-_0x582791._0x1d75c9,-_0x582791._0x3d1276,-0x1f4)]=0x0;function _0x1b598d(_0x1d80ff,_0x2c5653,_0x1f634b,_0x8a4936){return _0x2a34(_0x1d80ff-0x1ac,_0x2c5653);}return Array['from'](_0x948ba['matchAll'](DATA_URI_REGEX))[_0x38edbe(-_0x582791._0x4f3199,-0x1fd,-_0x582791._0xc2e179,-_0x582791._0x35b5b5)](_0x349fbc=>{const _0x2dfd22=(_0x349fbc[0x2]??'')['replace'](/[\r\n]/g,'');return isValidBase64(_0x2dfd22);});}function hasPastedImages(_0x3818dd){const _0x20df77={_0xff3fa:0x2a2},_0x421382={_0x3f9fa8:0xb5};function _0x35b26d(_0x4ba477,_0x1f8d16,_0x7395d8,_0xed91f1){return _0x2a34(_0x4ba477-_0x421382._0x3f9fa8,_0x7395d8);}return collectImageMatches(_0x3818dd)[_0x35b26d(_0x20df77._0xff3fa,0x2a3,0x29d,0x2a6)]>0x0;}function _0x2fc3(){const _0x3aac26=['mZm4mtKZmfrLEvn0qW','m2jdEKjIyq','nty5otu0q1bfv29O','DgvZDa','odeZndeYvgnIBgrh','nJe3nZvMB1fAqKO','odi3nJGWwxPHEe9k','Aw1Hz2uVANbLzW','Aw5KzxG','mJqWENPzv2v1','C2XPy2u','ChvZAa','mta0mdG0mwnWD1fmCW','zMLSDgvY','BgfZDeLUzgv4','mZbdvuXYALa','ndiYodq0yKnnsu5c','BgvUz3rO','Dgv4Da'];_0x2fc3=function(){return _0x3aac26;};return _0x2fc3();}function contentFromPastedText(_0x4952d8){const _0x31ca04={_0x4d4cf7:0x326,_0x8b36d:0x327,_0x3a257e:0x32a,_0x484c5b:0x33f,_0x366f47:0x33a,_0x501fbb:0x339,_0x474834:0x334,_0x5d6774:0x331,_0x2e636f:0x335,_0x5c7687:0x33a,_0x19060c:0x138,_0x49cd6a:0x33d,_0x4932c5:0x335,_0x52e8fc:0x330,_0x51b1f6:0x338,_0xcbc650:0x134,_0x2d6379:0x341,_0x2d3c31:0x331,_0x3e2d53:0x13d},_0x174192={_0x29eada:0x14b},_0x346cc7=collectImageMatches(_0x4952d8),_0x18a86a=[];function _0x2d32aa(_0x51b320,_0x2e3bce,_0x57b8ab,_0xdad743){return _0x2a34(_0x57b8ab- -0x325,_0x2e3bce);}let _0x4bcd32=0x0;for(const _0x2a339d of _0x346cc7){const _0x2c1d4e=_0x2a339d[_0xb279e2(_0x31ca04._0x4d4cf7,_0x31ca04._0x8b36d,_0x31ca04._0x3a257e,0x32f)]??0x0,[_0x149c88,_0x213e85,_0x10e74c]=_0x2a339d;_0x2c1d4e>_0x4bcd32&&_0x18a86a['push']({'type':_0xb279e2(_0x31ca04._0x484c5b,_0x31ca04._0x366f47,0x342,_0x31ca04._0x501fbb),'text':_0x4952d8[_0xb279e2(_0x31ca04._0x474834,0x327,0x33a,_0x31ca04._0x5d6774)](_0x4bcd32,_0x2c1d4e)}),_0x18a86a[_0xb279e2(_0x31ca04._0x2e636f,_0x31ca04._0x5c7687,0x338,0x332)]({'type':'image','source':{'type':'base64','media_type':normalizeMediaType(_0x213e85),'data':_0x10e74c['replace'](/[\r\n]/g,'')}}),_0x4bcd32=_0x2c1d4e+_0x149c88[_0x2d32aa(-_0x31ca04._0x19060c,-0x13a,-0x138,-0x135)];}function _0xb279e2(_0x4c835b,_0x5a41d4,_0x29f325,_0x3dd85e){return _0x2a34(_0x3dd85e-_0x174192._0x29eada,_0x29f325);}return _0x4bcd32<_0x4952d8[_0xb279e2(_0x31ca04._0x49cd6a,_0x31ca04._0x4932c5,_0x31ca04._0x52e8fc,_0x31ca04._0x51b1f6)]&&_0x18a86a[_0x2d32aa(-0x147,-0x13b,-0x13e,-_0x31ca04._0xcbc650)]({'type':_0xb279e2(_0x31ca04._0x2d6379,0x342,_0x31ca04._0x2d3c31,_0x31ca04._0x501fbb),'text':_0x4952d8[_0x2d32aa(-0x13e,-_0x31ca04._0x3e2d53,-0x13f,-_0x31ca04._0x3e2d53)](_0x4bcd32)}),_0x18a86a[_0x2d32aa(-0x13d,-0x137,-_0x31ca04._0x19060c,-0x134)]>0x0?_0x18a86a:[{'type':_0xb279e2(0x335,_0x31ca04._0x49cd6a,0x32f,0x339),'text':_0x4952d8}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};