@nuvin/agent-core 0.1.0-rc.9 → 0.1.0

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.
package/dist/VERSION CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "0.1.0-rc.9",
3
- "commit": "40cfc5d"
2
+ "version": "0.1.0",
3
+ "commit": "e1ab3dc"
4
4
  }
@@ -1 +1 @@
1
- (function(_0x4a0bb2,_0x3fd266){const _0x206e56={_0x438de7:0x316,_0x3912c3:0x31f,_0x9c3413:0x31d,_0x5833e1:0x229,_0x153d31:0x21d,_0x4cd9ce:0x327,_0x59e462:0x32c,_0x1050c6:0x31b,_0x5e222b:0x320,_0x173cbb:0x32a,_0x533ea5:0x31e,_0x18b25c:0x31e,_0x358b6a:0x327,_0x399c36:0x325,_0x31b5f1:0x328,_0x199cde:0x326,_0x3a22ee:0x23c,_0xa9640b:0x23e,_0x244b22:0x239,_0x5c38fe:0x231,_0x22af01:0x22b,_0x340440:0x22d,_0x427bb7:0x23c,_0x5b73bb:0x331,_0x3e913b:0x313,_0x1b6e11:0x313,_0x491f69:0x31e},_0x571cd9={_0x28cd9a:0x205},_0x317f44={_0x18788a:0x358};function _0x2ce220(_0x154d02,_0x2d4d7e,_0x408320,_0x3111c2){return _0x29ca(_0x408320- -_0x317f44._0x18788a,_0x3111c2);}function _0x7eec4d(_0x274bdf,_0x11cb45,_0x2fc79b,_0x455118){return _0x29ca(_0x455118-_0x571cd9._0x28cd9a,_0x11cb45);}const _0x4886ab=_0x4a0bb2();while(!![]){try{const _0x5ce624=-parseInt(_0x7eec4d(0x32b,_0x206e56._0x438de7,_0x206e56._0x3912c3,_0x206e56._0x9c3413))/0x1*(-parseInt(_0x2ce220(-0x225,-0x22a,-_0x206e56._0x5833e1,-_0x206e56._0x153d31))/0x2)+-parseInt(_0x7eec4d(0x335,_0x206e56._0x4cd9ce,0x31d,_0x206e56._0x59e462))/0x3+parseInt(_0x7eec4d(_0x206e56._0x1050c6,_0x206e56._0x5e222b,_0x206e56._0x173cbb,_0x206e56._0x533ea5))/0x4*(-parseInt(_0x7eec4d(_0x206e56._0x18b25c,_0x206e56._0x358b6a,_0x206e56._0x399c36,_0x206e56._0x31b5f1))/0x5)+-parseInt(_0x7eec4d(0x326,_0x206e56._0x199cde,0x315,0x320))/0x6*(parseInt(_0x2ce220(-_0x206e56._0x3a22ee,-_0x206e56._0xa9640b,-_0x206e56._0x244b22,-0x234))/0x7)+parseInt(_0x2ce220(-_0x206e56._0x5c38fe,-_0x206e56._0x22af01,-0x232,-0x22b))/0x8+parseInt(_0x2ce220(-0x232,-_0x206e56._0x340440,-_0x206e56._0x427bb7,-0x244))/0x9*(parseInt(_0x7eec4d(0x327,_0x206e56._0x5b73bb,0x336,0x330))/0xa)+-parseInt(_0x7eec4d(_0x206e56._0x3e913b,_0x206e56._0x1b6e11,_0x206e56._0x491f69,0x319))/0xb;if(_0x5ce624===_0x3fd266)break;else _0x4886ab['push'](_0x4886ab['shift']());}catch(_0x2037d2){_0x4886ab['push'](_0x4886ab['shift']());}}}(_0xa7e3,0x39fdf));import{Agent,createAgentMetrics,createExtensionRegistry,runTurn}from'../chunk-LIJXXCAA.js';function _0xa7e3(){const _0x51af25=['nte1ndi0DhbvBhLy','BwfW','Dgv4Da','BgvUz3rO','ndeYmdi0mgTjv09QyW','zMLSDgvY','AM9PBG','Bw9KzwW','ody3mKvQsNDJvq','y29TCgXLDgu','yMvMB3jLtw9KzwXszxf1zxn0','tM8Gy29UDMvYC2f0Aw9UigHPC3rVCNKGDg8GC3vTBwfYAxPLlG','DxnLCG','DhjPBq','qxnZAxn0yw50','mJGYmJe4mKPpA1f4zG','C3LZDgvT','y29UDgvUDa','Dg9WAwmTCMvTAw5KzxiTyMvMB3jLlw1VzgvSlxjLCxvLC3q','otfMvNvQy0q','neDhzgnmEq','yxnZAxn0yw50','mtjSALLSEu0','ouPnvfPYAG','vxnLCG','BM90ihLLDcbZzxq','mta3ntGYm1jzzvL3sW','vg9VBa','DhjHBNnMB3jTzxi','C3vTBwfYEq','nduXoda1wvzitxLm','DhLWzq','CM9Szq','mJa1nJm1mKnZwhbqqW'];_0xa7e3=function(){return _0x51af25;};return _0xa7e3();}function _0x417c47(_0x2c6979,_0x32217b,_0x5309eb,_0x4406d2){return _0x29ca(_0x5309eb- -0x280,_0x4406d2);}import{getTextFromMessage}from'../chunk-YWQXXHHU.js';import'../chunk-FFIZ6TKW.js';function _0x29ca(_0x51e59e,_0x346b5b){_0x51e59e=_0x51e59e-0x10e;const _0xa7e35d=_0xa7e3();let _0x29ca66=_0xa7e35d[_0x51e59e];if(_0x29ca['wSpMMr']===undefined){var _0xae98fe=function(_0x523a6d){const _0x232e4b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5da9a5='',_0x3bfa12='';for(let _0x938a28=0x0,_0x550a4c,_0x4c3bf5,_0x7b25e4=0x0;_0x4c3bf5=_0x523a6d['charAt'](_0x7b25e4++);~_0x4c3bf5&&(_0x550a4c=_0x938a28%0x4?_0x550a4c*0x40+_0x4c3bf5:_0x4c3bf5,_0x938a28++%0x4)?_0x5da9a5+=String['fromCharCode'](0xff&_0x550a4c>>(-0x2*_0x938a28&0x6)):0x0){_0x4c3bf5=_0x232e4b['indexOf'](_0x4c3bf5);}for(let _0x411e67=0x0,_0x3f9fae=_0x5da9a5['length'];_0x411e67<_0x3f9fae;_0x411e67++){_0x3bfa12+='%'+('00'+_0x5da9a5['charCodeAt'](_0x411e67)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3bfa12);};_0x29ca['vQuGXo']=_0xae98fe,_0x29ca['vXBFmf']={},_0x29ca['wSpMMr']=!![];}const _0x1cc73c=_0xa7e35d[0x0],_0x44b930=_0x51e59e+_0x1cc73c,_0x17194c=_0x29ca['vXBFmf'][_0x44b930];return!_0x17194c?(_0x29ca66=_0x29ca['vQuGXo'](_0x29ca66),_0x29ca['vXBFmf'][_0x44b930]=_0x29ca66):_0x29ca66=_0x17194c,_0x29ca66;}import'../chunk-X7VAACWY.js';function roleLabel(_0x5da9a5){const _0x47d0ec={_0xb937a:0xfa,_0x309a2d:0xeb,_0x2fa547:0xe6,_0x359fae:0x1f9,_0xa54eb5:0x1f4,_0x7dbb2b:0xfd,_0x2a8450:0xf1,_0x2b74cf:0xf6,_0x4555cd:0xf7,_0xf64c9b:0xfc,_0x469f3a:0x107};function _0x3bb9ab(_0x492f9d,_0x136619,_0x56aeb3,_0x105c25){return _0x29ca(_0x492f9d-0xdc,_0x136619);}if(_0x5da9a5===_0x3c164d(0xf4,_0x47d0ec._0xb937a,_0x47d0ec._0x309a2d,_0x47d0ec._0x2fa547))return _0x3bb9ab(_0x47d0ec._0x359fae,0x1fd,_0x47d0ec._0xa54eb5,0x208);if(_0x5da9a5===_0x3c164d(_0x47d0ec._0x7dbb2b,0x10c,_0x47d0ec._0x2a8450,0xf7))return _0x3c164d(_0x47d0ec._0x2b74cf,0xfe,0xe7,_0x47d0ec._0x4555cd);function _0x3c164d(_0x5ea2e7,_0x42234b,_0x2f00d5,_0x1037e4){return _0x29ca(_0x5ea2e7- -0x1d,_0x1037e4);}return _0x3c164d(0x103,_0x47d0ec._0xf64c9b,_0x47d0ec._0x469f3a,0x102);}function messagesToText(_0x3bfa12){const _0x2021fd={_0x1680a5:0x44d,_0x17ad7c:0x464,_0x407fa2:0x452,_0x3b9865:0x185,_0x4d365f:0x1a7,_0x437d3a:0x196},_0x1fc6d0={_0x52cb83:0x1b,_0x4c2f47:0x15},_0x257c44={_0x1e41bc:0xff},_0x4f9020={_0x144efc:0x2c3};function _0xd5b25c(_0x3626d2,_0x2e864d,_0x5a43f9,_0x35fccb){return _0x29ca(_0x35fccb- -_0x4f9020._0x144efc,_0x5a43f9);}function _0x4e56f1(_0x364167,_0x5e9ea8,_0x4ea428,_0x6dfd8){return _0x29ca(_0x4ea428-0x329,_0x6dfd8);}return _0x3bfa12['map'](_0x938a28=>{function _0x52da93(_0x12b975,_0x5bc055,_0x6a039f,_0x1a9dae){return _0x29ca(_0x5bc055- -0x3e7,_0x6a039f);}const _0x550a4c=getTextFromMessage(_0x938a28)[_0x19e9b9(0x13,0x21,_0x1fc6d0._0x52cb83,_0x1fc6d0._0x4c2f47)]();function _0x19e9b9(_0xa44ceb,_0x1146ec,_0x290303,_0x556937){return _0x29ca(_0xa44ceb- -_0x257c44._0x1e41bc,_0x556937);}return _0x550a4c?roleLabel(_0x938a28[_0x19e9b9(0x26,0x2e,0x31,_0x1fc6d0._0x4c2f47)])+':\x20'+_0x550a4c:'';})[_0x4e56f1(_0x2021fd._0x1680a5,_0x2021fd._0x17ad7c,0x455,_0x2021fd._0x407fa2)](_0x4c3bf5=>_0x4c3bf5[_0xd5b25c(-0x19a,-0x197,-0x198,-0x199)]>0x0)[_0xd5b25c(-0x196,-_0x2021fd._0x3b9865,-_0x2021fd._0x4d365f,-_0x2021fd._0x437d3a)]('\x0a\x0a');}var SUMMARY_SYSTEM_PROMPT='You\x20are\x20a\x20session-continuity\x20summarizer\x20for\x20a\x20CLI\x20coding\x20assistant.\x20The\x20conversation\x20you\x20are\x20summarizing\x20is\x20an\x20in-progress\x20coding\x20session\x20that\x20was\x20interrupted\x20because\x20the\x20context\x20window\x20is\x20full.\x20Your\x20summary\x20will\x20be\x20injected\x20into\x20a\x20fresh\x20session\x20so\x20the\x20assistant\x20can\x20resume\x20work\x20without\x20losing\x20progress.\x0a\x0aProduce\x20a\x20structured\x20summary\x20using\x20the\x20following\x20sections.\x20Omit\x20any\x20section\x20that\x20has\x20no\x20relevant\x20content.\x0a\x0a###\x20Session\x20Goal\x0aState\x20the\x20user\x27s\x20original\x20request\x20or\x20objective\x20in\x201-2\x20sentences.\x0a\x0a###\x20Work\x20Completed\x0aList\x20what\x20has\x20already\x20been\x20done,\x20with\x20specifics:\x0a-\x20Files\x20created,\x20modified,\x20or\x20deleted\x20(include\x20paths)\x0a-\x20Key\x20implementation\x20decisions\x20made\x20and\x20their\x20rationale\x0a-\x20Commands\x20run\x20and\x20their\x20outcomes\x20(pass/fail)\x0a-\x20Tests\x20written\x20or\x20executed\x20and\x20their\x20results\x0a\x0a###\x20Current\x20State\x0aDescribe\x20where\x20things\x20stand\x20right\x20now:\x0a-\x20What\x20was\x20the\x20assistant\x20doing\x20when\x20the\x20session\x20ended?\x0a-\x20Any\x20in-progress\x20file\x20edits\x20or\x20partially\x20completed\x20steps\x0a-\x20Error\x20messages,\x20failing\x20tests,\x20or\x20blockers\x20encountered\x0a-\x20The\x20current\x20branch,\x20working\x20directory,\x20or\x20environment\x20state\x20if\x20mentioned\x0a\x0a###\x20Remaining\x20Work\x0aList\x20what\x20still\x20needs\x20to\x20be\x20done\x20to\x20complete\x20the\x20original\x20goal:\x0a-\x20Specific\x20next\x20steps,\x20in\x20order\x20if\x20sequence\x20matters\x0a-\x20Known\x20issues\x20or\x20edge\x20cases\x20still\x20unaddressed\x0a-\x20Any\x20pending\x20user\x20decisions\x20or\x20questions\x20that\x20were\x20unanswered\x0a\x0a###\x20Key\x20Context\x0aPreserve\x20critical\x20details\x20that\x20would\x20be\x20expensive\x20to\x20re-derive:\x0a-\x20Architecture\x20or\x20design\x20patterns\x20being\x20followed\x0a-\x20Important\x20variable\x20names,\x20function\x20signatures,\x20or\x20API\x20shapes\x0a-\x20File\x20paths\x20and\x20line\x20numbers\x20referenced\x20repeatedly\x0a-\x20Constraints\x20or\x20requirements\x20the\x20user\x20specified\x0a-\x20Todo\x20list\x20items\x20and\x20their\x20status\x20(pending/in_progress/completed)\x0a\x0aRules:\x0a-\x20Be\x20precise\x20and\x20specific.\x20Use\x20exact\x20file\x20paths,\x20function\x20names,\x20and\x20error\x20messages\x20—\x20not\x20vague\x20references.\x0a-\x20Do\x20NOT\x20include\x20conversational\x20pleasantries,\x20repeated\x20back-and-forth,\x20or\x20exploratory\x20dead\x20ends\x20that\x20were\x20abandoned.\x0a-\x20Do\x20NOT\x20summarize\x20tool\x20calls\x20verbatim.\x20Capture\x20their\x20outcomes\x20and\x20decisions,\x20not\x20the\x20mechanics.\x0a-\x20Keep\x20the\x20total\x20summary\x20under\x201500\x20tokens.\x20Prioritize\x20actionable\x20state\x20over\x20narrative.\x0a-\x20Write\x20for\x20a\x20coding\x20agent\x20that\x20will\x20read\x20this\x20summary\x20and\x20immediately\x20resume\x20work,\x20not\x20for\x20a\x20human\x20reader.',NO_HISTORY=_0x417c47(-0x170,-0x15f,-0x170,-0x174),SUMMARY_MESSAGE_PREFIX='Previous\x20conversation\x20summary:';async function summarizeMessages(_0x7b25e4,_0x411e67,_0x3f9fae={}){const _0x29a7ba={_0x396b17:0x1d,_0x269295:0x198,_0x51842d:0x198,_0x4e0483:0x199,_0x2273a0:0x199,_0x513470:0x19b,_0x53b79b:0x1a8,_0x47cb29:0xb,_0x189d45:0xf,_0x509ab7:0x1a0,_0x2c6d44:0x1b4,_0x3f0ce2:0x1b8,_0x298bd8:0x11,_0x34a3ee:0x1b,_0x1655a0:0x1a1,_0x287584:0x195,_0x45a83b:0x19a,_0x2de811:0x197},_0x2fbd82={_0x2fa2d0:0x10c},_0x439cbc={_0x4d376b:0x11c,_0x2e8d36:0x169};if(_0x7b25e4[_0xf89eb4(0x13,0x23,0x15,_0x29a7ba._0x396b17)]===0x0)return NO_HISTORY;const _0x19126d=messagesToText(_0x7b25e4);function _0xf89eb4(_0x23adf8,_0x3fa364,_0x1f81da,_0x5b45d3){return _0x417c47(_0x23adf8-_0x439cbc._0x4d376b,_0x3fa364-0x15f,_0x23adf8-_0x439cbc._0x2e8d36,_0x3fa364);}const _0x18f8b9={'model':_0x411e67[_0x286c7e(-_0x29a7ba._0x269295,-0x194,-0x199,-_0x29a7ba._0x51842d)],'maxTokens':_0x411e67['maxTokens']??0x1000,'system':[{'type':_0x286c7e(-_0x29a7ba._0x4e0483,-_0x29a7ba._0x2273a0,-_0x29a7ba._0x513470,-_0x29a7ba._0x53b79b),'text':SUMMARY_SYSTEM_PROMPT}],'messages':[{'role':'user','content':[{'type':'text','text':_0x19126d}]}],'tools':[],'metadata':{'sessionId':_0xf89eb4(_0x29a7ba._0x47cb29,_0x29a7ba._0x189d45,_0x29a7ba._0x47cb29,0xc),'turnId':_0x286c7e(-0x192,-_0x29a7ba._0x509ab7,-0x1a4,-0x1a4)}};function _0x286c7e(_0x5bc14e,_0x4afb9a,_0x2c8c97,_0x116fe9){return _0x417c47(_0x5bc14e-0x8c,_0x4afb9a-_0x2fbd82._0x2fa2d0,_0x4afb9a- -0x42,_0x116fe9);}const _0x3f43aa=await _0x411e67[_0x286c7e(-0x1ba,-_0x29a7ba._0x2c6d44,-0x1c3,-_0x29a7ba._0x3f0ce2)](_0x18f8b9,{'signal':_0x3f9fae['signal']});return _0x3f43aa[_0xf89eb4(-0x1,0x5,0x8,0x5)]['filter'](_0x39e4cb=>_0x39e4cb[_0xf89eb4(0xd,0x13,0x15,0x12)]===_0xf89eb4(0x12,0x1a,0x13,0x1d))[_0xf89eb4(_0x29a7ba._0x298bd8,0x22,_0x29a7ba._0x34a3ee,0x0)](_0x31cb7c=>_0x31cb7c['text'])[_0x286c7e(-_0x29a7ba._0x1655a0,-_0x29a7ba._0x287584,-_0x29a7ba._0x45a83b,-_0x29a7ba._0x2de811)]('')['trim']();}function buildSummaryMessage(_0x2caf0c){const _0x240b8d={_0x305180:0x373,_0x127923:0x36c,_0x5988ab:0x37e,_0x1ddec4:0x38b,_0x48e2d1:0x390,_0x4e5862:0x391},_0x188a40={_0x2f19f4:0x65,_0x45b653:0x4e2},_0x10e566={_0x73cff7:0x81,_0x3d2e00:0x2b6};function _0x4312cd(_0x1c81bb,_0x647d2b,_0x2506fc,_0x354559){return _0x417c47(_0x1c81bb-_0x10e566._0x73cff7,_0x647d2b-0x168,_0x1c81bb-_0x10e566._0x3d2e00,_0x354559);}function _0x2a98b9(_0x21b63f,_0x253187,_0x4267ca,_0x48ce74){return _0x417c47(_0x21b63f-0x8,_0x253187-_0x188a40._0x2f19f4,_0x253187-_0x188a40._0x45b653,_0x48ce74);}return{'role':_0x2a98b9(0x382,_0x240b8d._0x305180,0x374,_0x240b8d._0x127923),'content':[{'type':_0x2a98b9(_0x240b8d._0x5988ab,_0x240b8d._0x1ddec4,_0x240b8d._0x48e2d1,_0x240b8d._0x4e5862),'text':SUMMARY_MESSAGE_PREFIX+'\x0a\x0a'+_0x2caf0c}]};}function buildTopicReminderText(_0x107051){return'<system-reminder>\x0aThe\x20current\x20session\x20topic\x20is\x20\x22'+_0x107051+'\x22.\x20If\x20the\x20user\x27s\x20latest\x20message\x20starts\x20a\x20clearly\x20different\x20topic,\x20call\x20UpdateTopic\x20with\x20a\x20concise\x20new\x20topic\x20(3-6\x20words).\x20Otherwise\x20do\x20not\x20call\x20it.\x0a</system-reminder>';}function createTopicReminderExtension(_0x5273f0){const _0x1a17bf={_0xce2704:0x44b,_0x3bc2e4:0x453,_0x199acc:0x44d,_0x2b4b5f:0x499},_0x419aab={_0x1643e4:0x233,_0xe8ffb5:0x234,_0x478732:0x223,_0x18cace:0x20d,_0x1815f9:0x20b,_0x12bd67:0x218,_0x4498b4:0x222,_0xa0191c:0x22c},_0x43b3ed={_0x362469:0x127,_0x34b79c:0x61c},_0x26a6a9={_0x466180:0x88,_0x299d5a:0x135,_0x15d05d:0x5c4},_0x3af21b={_0x507941:0x18c};function _0x526dfc(_0x316605,_0x505ea9,_0x13a66b,_0x4687bc){return _0x417c47(_0x316605-0x47,_0x505ea9-_0x3af21b._0x507941,_0x13a66b-0x603,_0x4687bc);}const {getTopic:_0x2d4e70}=_0x5273f0;function _0x38143a(_0x4ce397,_0x122014,_0x39f957,_0x24d9fb){return _0x417c47(_0x4ce397-_0x26a6a9._0x466180,_0x122014-_0x26a6a9._0x299d5a,_0x122014-_0x26a6a9._0x15d05d,_0x24d9fb);}return{'id':_0x526dfc(0x48e,0x48f,0x49a,0x4a1),'stage':_0x38143a(_0x1a17bf._0xce2704,_0x1a17bf._0x3bc2e4,0x443,_0x1a17bf._0x199acc),'kind':_0x526dfc(0x4ae,_0x1a17bf._0x2b4b5f,0x4a4,0x4a0),'order':0xbb8,'enabled':!![],'run'(_0x5dd41f){const _0xdc2989={_0xc9b852:0xa8},_0x15488e=_0x2d4e70()??_0x1d7f80(-0x22d,-_0x419aab._0x1643e4,-_0x419aab._0xe8ffb5,-0x223),_0x50338f={'type':_0x1d7f80(-_0x419aab._0x478732,-_0x419aab._0x18cace,-_0x419aab._0x1815f9,-_0x419aab._0x12bd67),'text':buildTopicReminderText(_0x15488e)};function _0x1d7f80(_0x157623,_0x2637e4,_0x573015,_0x1d6351){return _0x526dfc(_0x157623-_0xdc2989._0xc9b852,_0x2637e4-0x70,_0x1d6351- -0x6c4,_0x157623);}function _0x58e229(_0x451dfe,_0x4e1025,_0x1b3d28,_0x2d9893){return _0x38143a(_0x451dfe-_0x43b3ed._0x362469,_0x451dfe- -_0x43b3ed._0x34b79c,_0x1b3d28-0x4d,_0x2d9893);}return{..._0x5dd41f,'system':[..._0x5dd41f[_0x1d7f80(-0x223,-_0x419aab._0xe8ffb5,-_0x419aab._0x4498b4,-_0x419aab._0xa0191c)],_0x50338f]};}};}export{Agent,SUMMARY_MESSAGE_PREFIX,SUMMARY_SYSTEM_PROMPT,buildSummaryMessage,buildTopicReminderText,createAgentMetrics,createExtensionRegistry,createTopicReminderExtension,runTurn,summarizeMessages};
1
+ (function(_0x55cb5e,_0x3c3dff){const _0x458aeb={_0x32a068:0x17a,_0x2dcd37:0x26c,_0x3236f4:0x275,_0x1f84b6:0x267,_0x3741e7:0x259,_0x58e1df:0x26a,_0x5d8072:0x17c,_0x1943f3:0x26b,_0x19e23d:0x176,_0x23cae3:0x17f,_0x4557bf:0x162,_0x3a6c37:0x279,_0x3196aa:0x18a,_0x4fa6c8:0x19b,_0x423ff3:0x181,_0x2d3a2e:0x261,_0x22f84e:0x251,_0xef64bf:0x187,_0x3ea231:0x185},_0x511e23={_0x1fb2c6:0x2cb},_0x5bc3e1={_0x579e0b:0x3a5};function _0x1a9c50(_0x21d17b,_0xb9d1ca,_0x45c584,_0x2a6a7f){return _0x5ba3(_0x2a6a7f- -_0x5bc3e1._0x579e0b,_0x21d17b);}const _0x5115de=_0x55cb5e();function _0x63f4d2(_0x533f01,_0x213106,_0x4bdd0f,_0x4634b9){return _0x5ba3(_0x533f01- -_0x511e23._0x1fb2c6,_0x213106);}while(!![]){try{const _0x2df941=parseInt(_0x63f4d2(-_0x458aeb._0x32a068,-0x173,-0x16c,-0x183))/0x1+parseInt(_0x1a9c50(-0x274,-_0x458aeb._0x2dcd37,-_0x458aeb._0x3236f4,-_0x458aeb._0x1f84b6))/0x2+-parseInt(_0x63f4d2(-0x19c,-0x1ae,-0x1ab,-0x19a))/0x3*(parseInt(_0x1a9c50(-0x263,-0x27e,-_0x458aeb._0x3741e7,-_0x458aeb._0x58e1df))/0x4)+-parseInt(_0x63f4d2(-0x17d,-0x176,-0x17d,-_0x458aeb._0x5d8072))/0x5*(parseInt(_0x1a9c50(-0x263,-0x271,-0x25a,-_0x458aeb._0x1943f3))/0x6)+-parseInt(_0x63f4d2(-_0x458aeb._0x19e23d,-_0x458aeb._0x23cae3,-_0x458aeb._0x4557bf,-0x178))/0x7*(parseInt(_0x1a9c50(-0x27e,-_0x458aeb._0x3a6c37,-0x26d,-0x272))/0x8)+-parseInt(_0x63f4d2(-_0x458aeb._0x3196aa,-0x18a,-_0x458aeb._0x4fa6c8,-_0x458aeb._0x423ff3))/0x9+parseInt(_0x1a9c50(-0x264,-0x240,-_0x458aeb._0x2d3a2e,-_0x458aeb._0x22f84e))/0xa*(parseInt(_0x63f4d2(-0x196,-_0x458aeb._0xef64bf,-_0x458aeb._0x3ea231,-0x195))/0xb);if(_0x2df941===_0x3c3dff)break;else _0x5115de['push'](_0x5115de['shift']());}catch(_0x158bcb){_0x5115de['push'](_0x5115de['shift']());}}}(_0x1900,0x2a26c));import{Agent,createAgentMetrics,createExtensionRegistry,runTurn}from'../chunk-UIXQPCSN.js';import{getTextFromMessage}from'../chunk-YWQXXHHU.js';function _0x12f400(_0x1007d7,_0x1c1294,_0x46f9f5,_0x2fe1a1){const _0x3e4dd5={_0x3444be:0x26};return _0x5ba3(_0x2fe1a1-_0x3e4dd5._0x3444be,_0x1c1294);}import'../chunk-FFIZ6TKW.js';import'../chunk-X7VAACWY.js';function roleLabel(_0x119c14){const _0x2d24cf={_0x384a0e:0x154,_0x3064bf:0x15c,_0x24b1e2:0x150,_0x271eec:0x163,_0x37e686:0x167},_0x5a7ccb={_0x34b8d8:0x293};function _0x4bdb20(_0x19ab34,_0x3529f0,_0x16b97f,_0xd03c2e){return _0x5ba3(_0x3529f0- -_0x5a7ccb._0x34b8d8,_0x16b97f);}if(_0x119c14===_0x3f3c6d(-0x156,-_0x2d24cf._0x384a0e,-_0x2d24cf._0x3064bf,-_0x2d24cf._0x24b1e2))return'User';function _0x3f3c6d(_0x3ef510,_0x5809a6,_0x36967c,_0x51cb52){return _0x5ba3(_0x36967c- -0x2a8,_0x3ef510);}if(_0x119c14===_0x4bdb20(-0x162,-_0x2d24cf._0x271eec,-_0x2d24cf._0x37e686,-0x165))return'Assistant';return'Tool';}function messagesToText(_0x3a03c4){const _0x750d9e={_0x582057:0x496,_0x12d3e1:0x4b0},_0x300ae8={_0x79fcd8:0x178,_0x1cbfb7:0x15c,_0xaf7dac:0x16c,_0x2f6c78:0x78,_0x1cd7a1:0x86},_0x29817e={_0x5175d3:0x2ab},_0x442c8c={_0x278e97:0xc3},_0x1eb358={_0x483c8d:0x379};function _0x593538(_0x202ce8,_0x1307cf,_0x3f9cd0,_0x49c816){return _0x5ba3(_0x3f9cd0-_0x1eb358._0x483c8d,_0x1307cf);}function _0x265947(_0x181a8f,_0x510a56,_0x383fa0,_0x1c8fff){return _0x5ba3(_0x510a56-0x35f,_0x181a8f);}return _0x3a03c4['map'](_0x48df84=>{function _0xb4e215(_0x594358,_0x2c6742,_0x2cd578,_0x577b78){return _0x5ba3(_0x577b78- -_0x442c8c._0x278e97,_0x2c6742);}function _0x23d695(_0x45b9e8,_0x4f4dc2,_0x4e26d6,_0x4b6064){return _0x5ba3(_0x4b6064- -_0x29817e._0x5175d3,_0x4f4dc2);}const _0x3f026c=getTextFromMessage(_0x48df84)[_0x23d695(-_0x300ae8._0x79fcd8,-_0x300ae8._0x1cbfb7,-_0x300ae8._0xaf7dac,-0x167)]();return _0x3f026c?roleLabel(_0x48df84[_0xb4e215(0x98,0x8a,_0x300ae8._0x2f6c78,_0x300ae8._0x1cd7a1)])+':\x20'+_0x3f026c:'';})[_0x265947(_0x750d9e._0x582057,0x4a6,0x4a7,_0x750d9e._0x12d3e1)](_0x1318a2=>_0x1318a2[_0x593538(0x4b6,0x4cb,0x4b9,0x4ba)]>0x0)['join']('\x0a\x0a');}var SUMMARY_SYSTEM_PROMPT='You\x20are\x20a\x20session-continuity\x20summarizer\x20for\x20a\x20CLI\x20coding\x20assistant.\x20The\x20conversation\x20you\x20are\x20summarizing\x20is\x20an\x20in-progress\x20coding\x20session\x20that\x20was\x20interrupted\x20because\x20the\x20context\x20window\x20is\x20full.\x20Your\x20summary\x20will\x20be\x20injected\x20into\x20a\x20fresh\x20session\x20so\x20the\x20assistant\x20can\x20resume\x20work\x20without\x20losing\x20progress.\x0a\x0aProduce\x20a\x20structured\x20summary\x20using\x20the\x20following\x20sections.\x20Omit\x20any\x20section\x20that\x20has\x20no\x20relevant\x20content.\x0a\x0a###\x20Session\x20Goal\x0aState\x20the\x20user\x27s\x20original\x20request\x20or\x20objective\x20in\x201-2\x20sentences.\x0a\x0a###\x20Work\x20Completed\x0aList\x20what\x20has\x20already\x20been\x20done,\x20with\x20specifics:\x0a-\x20Files\x20created,\x20modified,\x20or\x20deleted\x20(include\x20paths)\x0a-\x20Key\x20implementation\x20decisions\x20made\x20and\x20their\x20rationale\x0a-\x20Commands\x20run\x20and\x20their\x20outcomes\x20(pass/fail)\x0a-\x20Tests\x20written\x20or\x20executed\x20and\x20their\x20results\x0a\x0a###\x20Current\x20State\x0aDescribe\x20where\x20things\x20stand\x20right\x20now:\x0a-\x20What\x20was\x20the\x20assistant\x20doing\x20when\x20the\x20session\x20ended?\x0a-\x20Any\x20in-progress\x20file\x20edits\x20or\x20partially\x20completed\x20steps\x0a-\x20Error\x20messages,\x20failing\x20tests,\x20or\x20blockers\x20encountered\x0a-\x20The\x20current\x20branch,\x20working\x20directory,\x20or\x20environment\x20state\x20if\x20mentioned\x0a\x0a###\x20Remaining\x20Work\x0aList\x20what\x20still\x20needs\x20to\x20be\x20done\x20to\x20complete\x20the\x20original\x20goal:\x0a-\x20Specific\x20next\x20steps,\x20in\x20order\x20if\x20sequence\x20matters\x0a-\x20Known\x20issues\x20or\x20edge\x20cases\x20still\x20unaddressed\x0a-\x20Any\x20pending\x20user\x20decisions\x20or\x20questions\x20that\x20were\x20unanswered\x0a\x0a###\x20Key\x20Context\x0aPreserve\x20critical\x20details\x20that\x20would\x20be\x20expensive\x20to\x20re-derive:\x0a-\x20Architecture\x20or\x20design\x20patterns\x20being\x20followed\x0a-\x20Important\x20variable\x20names,\x20function\x20signatures,\x20or\x20API\x20shapes\x0a-\x20File\x20paths\x20and\x20line\x20numbers\x20referenced\x20repeatedly\x0a-\x20Constraints\x20or\x20requirements\x20the\x20user\x20specified\x0a-\x20Todo\x20list\x20items\x20and\x20their\x20status\x20(pending/in_progress/completed)\x0a\x0aRules:\x0a-\x20Be\x20precise\x20and\x20specific.\x20Use\x20exact\x20file\x20paths,\x20function\x20names,\x20and\x20error\x20messages\x20—\x20not\x20vague\x20references.\x0a-\x20Do\x20NOT\x20include\x20conversational\x20pleasantries,\x20repeated\x20back-and-forth,\x20or\x20exploratory\x20dead\x20ends\x20that\x20were\x20abandoned.\x0a-\x20Do\x20NOT\x20summarize\x20tool\x20calls\x20verbatim.\x20Capture\x20their\x20outcomes\x20and\x20decisions,\x20not\x20the\x20mechanics.\x0a-\x20Keep\x20the\x20total\x20summary\x20under\x201500\x20tokens.\x20Prioritize\x20actionable\x20state\x20over\x20narrative.\x0a-\x20Write\x20for\x20a\x20coding\x20agent\x20that\x20will\x20read\x20this\x20summary\x20and\x20immediately\x20resume\x20work,\x20not\x20for\x20a\x20human\x20reader.',NO_HISTORY=_0x2c7d32(-0x79,-0x59,-0x78,-0x66);function _0x2c7d32(_0x31cdc2,_0x14f02a,_0x27277c,_0x5c38cd){const _0x541cca={_0x43e9ec:0x1ac};return _0x5ba3(_0x5c38cd- -_0x541cca._0x43e9ec,_0x31cdc2);}function _0x5ba3(_0x274385,_0x4042af){_0x274385=_0x274385-0x12f;const _0x1900d5=_0x1900();let _0x5ba337=_0x1900d5[_0x274385];if(_0x5ba3['whOEZQ']===undefined){var _0x5564dc=function(_0x5ad8d7){const _0x297c16='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x119c14='',_0x3a03c4='';for(let _0x48df84=0x0,_0x3f026c,_0x1318a2,_0x358c11=0x0;_0x1318a2=_0x5ad8d7['charAt'](_0x358c11++);~_0x1318a2&&(_0x3f026c=_0x48df84%0x4?_0x3f026c*0x40+_0x1318a2:_0x1318a2,_0x48df84++%0x4)?_0x119c14+=String['fromCharCode'](0xff&_0x3f026c>>(-0x2*_0x48df84&0x6)):0x0){_0x1318a2=_0x297c16['indexOf'](_0x1318a2);}for(let _0x481ae6=0x0,_0x6b8c7d=_0x119c14['length'];_0x481ae6<_0x6b8c7d;_0x481ae6++){_0x3a03c4+='%'+('00'+_0x119c14['charCodeAt'](_0x481ae6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a03c4);};_0x5ba3['NWcvTb']=_0x5564dc,_0x5ba3['XIJCpB']={},_0x5ba3['whOEZQ']=!![];}const _0xa3192d=_0x1900d5[0x0],_0x5b0266=_0x274385+_0xa3192d,_0x588be8=_0x5ba3['XIJCpB'][_0x5b0266];return!_0x588be8?(_0x5ba337=_0x5ba3['NWcvTb'](_0x5ba337),_0x5ba3['XIJCpB'][_0x5b0266]=_0x5ba337):_0x5ba337=_0x588be8,_0x5ba337;}var SUMMARY_MESSAGE_PREFIX=_0x2c7d32(-0x6b,-0x67,-0x62,-0x61);async function summarizeMessages(_0x358c11,_0x481ae6,_0x6b8c7d={}){const _0x2cd6e3={_0x22437d:0x8,_0x42901e:0xd,_0x724d38:0xb,_0x244eeb:0x193,_0x1e5261:0x173,_0xc6e823:0x185,_0x41749e:0x15,_0x16bb44:0xe,_0x95b469:0x10,_0x1bbd98:0x18,_0x1fb1a0:0xa,_0x3d3d4e:0x18d,_0x3ebd7b:0x1a6,_0x127acb:0x19b,_0xe3cd65:0x1ad,_0x5b0923:0x19f,_0x545c85:0x1,_0x358c70:0x181,_0x574811:0x18a,_0x1c0320:0x17a,_0x2a296f:0x18a,_0x148a04:0x172,_0x56e55d:0x178,_0xac8eac:0x19,_0x199042:0xc,_0x30ea8f:0x3,_0x596584:0x7,_0x4d8c35:0xb,_0xc4a229:0x1,_0xa5c40b:0x20,_0x477df1:0x196,_0x30cbdf:0x1a0,_0xae2e11:0x184,_0x3b9041:0x1c,_0x127576:0xc,_0x4379c4:0x9,_0x56a45d:0xa,_0x4ac129:0x6,_0x36b425:0x190,_0xebe527:0xc,_0x2b3bd1:0x13,_0x45772f:0x9},_0x54846={_0x263596:0xc6,_0x41a601:0x124},_0x5624f4={_0x1571de:0x8f};function _0xb7c4b8(_0x415da0,_0x2d9a06,_0x97bdbc,_0x23aae8){return _0x12f400(_0x415da0-0xb2,_0x97bdbc,_0x97bdbc-_0x5624f4._0x1571de,_0x23aae8-0x29);}if(_0x358c11['length']===0x0)return NO_HISTORY;const _0x43605c=messagesToText(_0x358c11),_0x45bd07={'model':_0x481ae6[_0x804e7(0x5,_0x2cd6e3._0x22437d,_0x2cd6e3._0x42901e,_0x2cd6e3._0x724d38)],..._0x481ae6['maxTokens']!==void 0x0?{'maxTokens':_0x481ae6[_0xb7c4b8(_0x2cd6e3._0x244eeb,0x18b,_0x2cd6e3._0x1e5261,_0x2cd6e3._0xc6e823)]}:{},'system':[{'type':_0x804e7(-_0x2cd6e3._0x41749e,-_0x2cd6e3._0x16bb44,-_0x2cd6e3._0x95b469,0x5),'text':SUMMARY_SYSTEM_PROMPT}],'messages':[{'role':_0x804e7(_0x2cd6e3._0x1bbd98,0x5,0x0,_0x2cd6e3._0x1fb1a0),'content':[{'type':_0xb7c4b8(0x194,_0x2cd6e3._0x3d3d4e,0x18e,0x188),'text':_0x43605c}]}],'tools':[],'metadata':{'sessionId':_0xb7c4b8(_0x2cd6e3._0x3ebd7b,_0x2cd6e3._0x127acb,_0x2cd6e3._0xe3cd65,_0x2cd6e3._0x5b0923),'turnId':_0x804e7(0x1b,0x9,_0x2cd6e3._0x545c85,-0x9)}};let _0x4d3383;if(_0x481ae6[_0xb7c4b8(_0x2cd6e3._0x358c70,_0x2cd6e3._0x574811,_0x2cd6e3._0x1c0320,0x181)]){let _0x4fffa5;for await(const _0x16ea92 of _0x481ae6[_0xb7c4b8(_0x2cd6e3._0x2a296f,_0x2cd6e3._0x148a04,0x172,0x181)](_0x45bd07,{'signal':_0x6b8c7d[_0xb7c4b8(_0x2cd6e3._0x56e55d,0x188,0x174,0x187)]})){if(_0x16ea92[_0x804e7(_0x2cd6e3._0x545c85,-0x5,0x0,-_0x2cd6e3._0x42901e)]===_0x804e7(-0x6,-0x8,-_0x2cd6e3._0xac8eac,0x0)){_0x4fffa5=_0x16ea92[_0x804e7(-_0x2cd6e3._0x199042,_0x2cd6e3._0x30ea8f,-0xd,-0x9)];break;}}if(!_0x4fffa5)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');_0x4d3383=_0x4fffa5;}else _0x4d3383=await _0x481ae6[_0x804e7(_0x2cd6e3._0x596584,-_0x2cd6e3._0x4d8c35,-0x9,-0x9)](_0x45bd07,{'signal':_0x6b8c7d[_0x804e7(_0x2cd6e3._0xc4a229,-0xf,-_0x2cd6e3._0xa5c40b,-0x1c)]});const _0xb010c3=_0x4d3383[_0xb7c4b8(_0x2cd6e3._0x477df1,_0x2cd6e3._0x30cbdf,_0x2cd6e3._0xae2e11,0x194)][_0xb7c4b8(0x18f,0x193,0x18f,0x196)](_0x49384c=>_0x49384c[_0xb7c4b8(0x182,0x194,0x1a3,0x191)]===_0xb7c4b8(0x17e,0x188,0x17d,0x188))[_0x804e7(_0x2cd6e3._0x3b9041,_0x2cd6e3._0x127576,_0x2cd6e3._0x4379c4,0x7)](_0x165fb4=>_0x165fb4[_0x804e7(-0x12,-0xe,-0x1e,-0x2)])[_0x804e7(-_0x2cd6e3._0x56a45d,_0x2cd6e3._0x4ac129,0x2,-0x2)]('')[_0xb7c4b8(_0x2cd6e3._0x36b425,0x180,0x199,0x193)]();function _0x804e7(_0x4d7cee,_0x23d875,_0x17684d,_0x17d256){return _0x12f400(_0x4d7cee-_0x54846._0x263596,_0x17684d,_0x17684d-_0x54846._0x41a601,_0x23d875- -0x16d);}if(!_0xb010c3)throw new Error(_0x804e7(-_0x2cd6e3._0xebe527,-_0x2cd6e3._0x2b3bd1,-_0x2cd6e3._0x45772f,-0x20));return _0xb010c3;}function buildSummaryMessage(_0x53a2a2){const _0x5c84a4={_0xda81aa:0x1c8,_0x1b6d84:0x1c5,_0xd88a01:0x1b3},_0x1a1719={_0x2f1710:0x1aa};function _0x53ebfa(_0x147fea,_0x1b15d4,_0x55d126,_0x4b6219){return _0x12f400(_0x147fea-_0x1a1719._0x2f1710,_0x55d126,_0x55d126-0x1de,_0x1b15d4- -0x332);}return{'role':_0x53ebfa(-_0x5c84a4._0xda81aa,-0x1c0,-_0x5c84a4._0x1b6d84,-_0x5c84a4._0xd88a01),'content':[{'type':'text','text':SUMMARY_MESSAGE_PREFIX+'\x0a\x0a'+_0x53a2a2}]};}function buildTopicReminderText(_0x5e191d){const _0x558555={_0x406c2e:0x331,_0x11ce4e:0x347},_0x1aaf00={_0x32359d:0xd4},_0x2b635b={_0x28b9df:0x175};function _0x4363e8(_0x1d9f8e,_0x4ac8df,_0x33aaae,_0x5d6f2e){return _0x12f400(_0x1d9f8e-0xa3,_0x1d9f8e,_0x33aaae-_0x2b635b._0x28b9df,_0x5d6f2e-0x1cd);}function _0x2b0ca0(_0x49c936,_0x2b4b24,_0xc22eda,_0x18e0f1){return _0x12f400(_0x49c936-0xe7,_0xc22eda,_0xc22eda-_0x1aaf00._0x32359d,_0x49c936-0x54);}return _0x4363e8(0x328,0x342,_0x558555._0x406c2e,0x33b)+_0x5e191d+_0x4363e8(0x334,0x343,_0x558555._0x11ce4e,0x336);}function _0x1900(){const _0x2ff618=['oxjZuMvywq','yxnZAxn0yw50','Dg9WAwmTCMvTAw5KzxiTyMvMB3jLlw1VzgvSlxjLCxvLC3q','C3rYzwfT','mZC2twfWr0DA','tw9KzwWGCMv0DxjUzwqGyw4Gzw1WDhKGC3vTBwfYEq','nZK5mJKWoffzvgzkDG','Bwf4vg9Rzw5Z','BM90ihLLDcbZzxq','C2LNBMfS','Dgv4Da','mtG2quHqDLH6','mJq1nZC2CKPJy294','y29TCgXLDgu','DhjHBNnMB3jTzxi','ndi2ndi2BgfvrfDr','zg9Uzq','BgvUz3rO','mJG3ndu1nxnRsMfhzG','DhLWzq','iI4GswyGDgHLihvZzxiNCYbSyxrLC3qGBwvZC2fNzsbZDgfYDhmGysbJBgvHCMX5igrPzMzLCMvUDcb0B3bPyYWGy2fSBcbvCgrHDgvuB3bPyYb3AxrOigeGy29Uy2LZzsbUzxCGDg9WAwmGkdmTnIb3B3jKCYKUie90AgvYD2LZzsbKBYbUB3qGy2fSBcbPDc4kpc9ZExn0zw0TCMvTAw5Kzxi+','DhjPBq','y29UDgvUDa','tM8Gy29UDMvYC2f0Aw9UigHPC3rVCNKGDg8GC3vTBwfYAxPLlG','zMLSDgvY','phn5C3rLBs1Yzw1PBMrLCJ4kvgHLign1CNjLBNqGC2vZC2LVBIb0B3bPyYbPCYaI','CM9Szq','CMvZCg9UC2u','uhjLDMLVDxmGy29UDMvYC2f0Aw9Uihn1Bw1HCNK6','DxnLCG','AM9PBG','mta1nwrdvK1Lyq','Bw9KzwW','C3vTBwfYEq','nJaWmdbPDM9Uu0C','C3LZDgvT','BwfW','mtbpDeTuCee','ndCYmdftrffbyKC'];_0x1900=function(){return _0x2ff618;};return _0x1900();}function createTopicReminderExtension(_0x499f11){const _0x52a363={_0x36c8f0:0x93,_0x21df7f:0x4f0},_0x52c57e={_0x363352:0x27f,_0x531465:0x28a,_0x2234c5:0x287,_0x37a03a:0x16a,_0x286563:0x173,_0x2e5080:0x173},_0x31b488={_0x191a40:0x196,_0x1a3117:0x13};function _0x56ae11(_0x1d1d3d,_0x40039e,_0x249a6d,_0x552e6e){return _0x12f400(_0x1d1d3d-0x40,_0x1d1d3d,_0x249a6d-0xaf,_0x249a6d-0x381);}function _0xc9e9d1(_0x672790,_0x2b686f,_0xbaed90,_0x554fee){return _0x2c7d32(_0x554fee,_0x2b686f-_0x31b488._0x191a40,_0xbaed90-0x1cc,_0xbaed90- -_0x31b488._0x1a3117);}const {getTopic:_0x16d769}=_0x499f11;return{'id':_0xc9e9d1(-0x9e,-0x9c,-0x8e,-_0x52a363._0x36c8f0),'stage':'beforeModelRequest','kind':_0x56ae11(_0x52a363._0x21df7f,0x4d1,0x4e4,0x4d8),'order':0xbb8,'enabled':!![],'run'(_0x643fbf){const _0x43880f={_0x40efcd:0x38f,_0x3375a2:0x19d},_0x4612eb=_0x16d769()??_0x4cc97f(_0x52c57e._0x363352,0x280,_0x52c57e._0x531465,_0x52c57e._0x2234c5);function _0x214088(_0xadadaa,_0x2dd5dc,_0x48780a,_0x5ca306){return _0x56ae11(_0x48780a,_0x2dd5dc-0x88,_0x2dd5dc- -_0x43880f._0x40efcd,_0x5ca306-_0x43880f._0x3375a2);}const _0x49bf79={'type':'text','text':buildTopicReminderText(_0x4612eb)};function _0x4cc97f(_0x39f439,_0x332593,_0x3bcffa,_0x4c6009){return _0xc9e9d1(_0x39f439-0x1d3,_0x332593-0x173,_0x332593-0x308,_0x4c6009);}return{..._0x643fbf,'system':[..._0x643fbf[_0x214088(0x170,_0x52c57e._0x37a03a,_0x52c57e._0x286563,_0x52c57e._0x2e5080)],_0x49bf79]};}};}export{Agent,SUMMARY_MESSAGE_PREFIX,SUMMARY_SYSTEM_PROMPT,buildSummaryMessage,buildTopicReminderText,createAgentMetrics,createExtensionRegistry,createTopicReminderExtension,runTurn,summarizeMessages};
@@ -0,0 +1 @@
1
+ (function(_0x285b08,_0x2a02df){const _0x5004ea={_0x27dc0d:0x3e2,_0x5b6519:0x3e7,_0x3e9f6c:0x3f3,_0x20cd34:0x3de,_0x3bab46:0x3e1,_0x590e05:0x3e2,_0x185ab5:0x3e4,_0x21b90b:0x40e,_0x240372:0x425,_0x4bed69:0x422,_0x5bcbb7:0x3d8,_0x2d0a70:0x3ef,_0x473f3e:0x3e5,_0x4cd644:0x3c8,_0x424df0:0x40b,_0x51ecdb:0x407},_0x9b88cc={_0x48f782:0x33a};function _0x142947(_0x294de4,_0x523b87,_0x1e5bf1,_0x97c747){return _0x14c5(_0x294de4-_0x9b88cc._0x48f782,_0x523b87);}const _0x268463=_0x285b08();function _0x4d744f(_0x558c30,_0x5b1d28,_0xf616ab,_0x15ea15){return _0x14c5(_0x5b1d28-0x300,_0xf616ab);}while(!![]){try{const _0x4b4a3a=parseInt(_0x4d744f(0x3bf,0x3d2,0x3ce,_0x5004ea._0x27dc0d))/0x1+parseInt(_0x4d744f(0x3dc,_0x5004ea._0x5b6519,0x3f3,0x401))/0x2+-parseInt(_0x4d744f(0x3e2,_0x5004ea._0x3e9f6c,_0x5004ea._0x20cd34,_0x5004ea._0x3bab46))/0x3*(-parseInt(_0x4d744f(_0x5004ea._0x590e05,0x3ea,_0x5004ea._0x185ab5,0x3f0))/0x4)+-parseInt(_0x142947(_0x5004ea._0x21b90b,0x415,_0x5004ea._0x240372,_0x5004ea._0x4bed69))/0x5+parseInt(_0x4d744f(0x3c4,_0x5004ea._0x5bcbb7,0x3f0,_0x5004ea._0x2d0a70))/0x6+-parseInt(_0x4d744f(_0x5004ea._0x5b6519,_0x5004ea._0x473f3e,0x3f9,_0x5004ea._0x4cd644))/0x7+-parseInt(_0x142947(0x422,0x416,_0x5004ea._0x424df0,_0x5004ea._0x51ecdb))/0x8;if(_0x4b4a3a===_0x2a02df)break;else _0x268463['push'](_0x268463['shift']());}catch(_0x8c3c60){_0x268463['push'](_0x268463['shift']());}}}(_0x7d62,0x81bbb));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-YWQXXHHU.js';function _0x7d62(){const _0x3c872a=['zNvUy3rPB24','o2jHC2u2ncW','C3rYAw5N','zwzMB3j0','B3v0Chv0x3rLEhq','ndm2mJG1qvjcAxPY','Aw5WDxq','nJCZnteWD0DrExne','CMvHC29UAw5N','ChvZAa','BwfW','mJe4ody2ohLozfnHva','DxnLCG','C291CMnL','BwvZC2fNzxm','BwvKAwfFDhLWzq','CM9Szq','B3v0Chv0rM9YBwf0','yxv0BW','Dg9VBf91C2u','AxnbCNjHEq','Dg9VBhm','Aw5WDxrFDgv4Da','ANnVBL9Zy2HLBwe','mZe1nJe2mfLKzwXdsa','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','odq0mZm0v0PXwMPf','odiWntu5mMXrzNjOzW','Aw1Hz2u','mtGZodG3nNfHq3DcEG','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','C3vTBwfYEq','C3rYAw5NAwz5','AM9PBG','C3LZDgvT','C3bSAwnL','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','zNvUy3rPB25Fy2fSBf9VDxrWDxq','nMniEMnNDq','Aw5WDxrFAw1Hz2u','BMfTzq','DhLWzq','yxnZAxn0yw50','BgvUz3rO','zMLSDgvY','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','A2v5CW','DxnLCI12AxnPyMXL','zNvUy3rPB25Fy2fSBa','B2jQzwn0','Dgv4Da','DhjPBq','zgf0yq','zgf0ytO','yMfZzty0','Dg9VBf91C2vFAwq','Aw5WDxrFC2nOzw1H','Bwf4vg9Rzw5Z','zgvZy3jPChrPB24','y29UDgvUDa','Bw9KzwW','DMLZAwjPBgL0Eq','C2nOzw1H','ChjVDMLKzxjtDgf0zq','C3rYAwn0'];_0x7d62=function(){return _0x3c872a;};return _0x7d62();}function systemToInstructions(_0x568116){const _0xafe7aa={_0x5e715b:0x2ad,_0x2d2d11:0x2c0,_0x10daff:0x291,_0x507b56:0x16c,_0x945eb4:0x177},_0x283d={_0x521f97:0x3a6};function _0x378f89(_0x56d0c7,_0x57eac4,_0x43e456,_0x522c5a){return _0x14c5(_0x56d0c7- -_0x283d._0x521f97,_0x43e456);}function _0x11191f(_0x4950ae,_0x248ac5,_0x507609,_0x2e4637){return _0x14c5(_0x2e4637- -0x26b,_0x4950ae);}return normalizeContent(_0x568116)[_0x378f89(-_0xafe7aa._0x5e715b,-0x296,-_0xafe7aa._0x2d2d11,-_0xafe7aa._0x10daff)](_0x2dcb20=>_0x2dcb20[_0x378f89(-0x2b0,-0x2c7,-0x2a1,-0x2ce)]===_0x378f89(-0x2a7,-0x296,-0x2af,-0x2ba))['map'](_0x20c264=>_0x20c264['text'])[_0x11191f(-0x199,-_0xafe7aa._0x507b56,-_0xafe7aa._0x945eb4,-0x17d)]('\x0a\x0a');}function _0x14c5(_0x4eb5c1,_0x3a27c9){_0x4eb5c1=_0x4eb5c1-0xcd;const _0x7d622=_0x7d62();let _0x14c58f=_0x7d622[_0x4eb5c1];if(_0x14c5['UOvGgG']===undefined){var _0x1aaa23=function(_0x320e54){const _0x46d763='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x568116='',_0x2dcb20='';for(let _0x20c264=0x0,_0x4b3313,_0x3147dd,_0x3e9b9e=0x0;_0x3147dd=_0x320e54['charAt'](_0x3e9b9e++);~_0x3147dd&&(_0x4b3313=_0x20c264%0x4?_0x4b3313*0x40+_0x3147dd:_0x3147dd,_0x20c264++%0x4)?_0x568116+=String['fromCharCode'](0xff&_0x4b3313>>(-0x2*_0x20c264&0x6)):0x0){_0x3147dd=_0x46d763['indexOf'](_0x3147dd);}for(let _0x49cc42=0x0,_0x3d5701=_0x568116['length'];_0x49cc42<_0x3d5701;_0x49cc42++){_0x2dcb20+='%'+('00'+_0x568116['charCodeAt'](_0x49cc42)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2dcb20);};_0x14c5['TZwQjB']=_0x1aaa23,_0x14c5['LklbGf']={},_0x14c5['UOvGgG']=!![];}const _0x38dfff=_0x7d622[0x0],_0x7697a=_0x4eb5c1+_0x38dfff,_0x19e093=_0x14c5['LklbGf'][_0x7697a];return!_0x19e093?(_0x14c58f=_0x14c5['TZwQjB'](_0x14c58f),_0x14c5['LklbGf'][_0x7697a]=_0x14c58f):_0x14c58f=_0x19e093,_0x14c58f;}function pushUserContentMessage(_0x4b3313,_0x3147dd,_0x3e9b9e){const _0x25dd7a={_0x5a6924:0x1fd,_0x2bd6a4:0x1e4,_0x2d1ad2:0x1ff,_0x9600e1:0x1fb},_0x27d8f5={_0x4bb8d9:0x2d1};function _0x4ad523(_0x41cf1a,_0x42dcfb,_0x2dff1e,_0x29a66c){return _0x14c5(_0x29a66c- -_0x27d8f5._0x4bb8d9,_0x42dcfb);}if(_0x3e9b9e[_0xb3387d(0x1e0,0x1de,_0x25dd7a._0x5a6924,0x1f0)]===0x0)return;function _0xb3387d(_0x493c82,_0x5313db,_0x52e03e,_0x1cbb13){return _0x14c5(_0x52e03e-0x105,_0x1cbb13);}_0x4b3313[_0x4ad523(-0x210,-_0x25dd7a._0x2bd6a4,-_0x25dd7a._0x2d1ad2,-_0x25dd7a._0x9600e1)]({'type':'message','role':_0x3147dd,'content':_0x3e9b9e});}function hasSerializableToolUse(_0x49cc42){const _0xafe6c2={_0x3fdc09:0x9b,_0x2749b7:0xb3,_0x30a164:0x8d,_0x2485e4:0xb9},_0x414657={_0x29a45f:0x64};function _0x41e7f9(_0x12e9cf,_0xcc632f,_0x409cbf,_0x54b08e){return _0x14c5(_0xcc632f-0x8a,_0x54b08e);}function _0x99e9a3(_0x36650c,_0x5c357e,_0x109d5d,_0x320701){return _0x14c5(_0x5c357e- -_0x414657._0x29a45f,_0x109d5d);}return _0x49cc42['id'][_0x99e9a3(_0xafe6c2._0x3fdc09,0x9c,0x95,0xa3)]()[_0x99e9a3(_0xafe6c2._0x2749b7,0x94,0xb2,0x8f)]>0x0&&_0x49cc42['name'][_0x99e9a3(_0xafe6c2._0x30a164,0x9c,0x9b,_0xafe6c2._0x2485e4)]()['length']>0x0;}function hasSerializableToolResult(_0x3d5701){const _0x3e3287={_0x5c9b7f:0x1e0,_0x5ccaf5:0x1d8,_0x4d3790:0x1e5,_0x4371db:0x1e8,_0x36073c:0x81,_0x1a09dc:0x52,_0x30c56d:0x59},_0x57345a={_0x3aaef6:0x87},_0x1c5a11={_0x486917:0xe4};function _0x2dea95(_0xc217fb,_0x33e6a3,_0x21182a,_0x3ead03){return _0x14c5(_0x3ead03-_0x1c5a11._0x486917,_0xc217fb);}function _0x2e5ec1(_0x73e37e,_0x2f8994,_0x3fcb5c,_0x38361b){return _0x14c5(_0x2f8994- -_0x57345a._0x3aaef6,_0x73e37e);}return _0x3d5701[_0x2dea95(_0x3e3287._0x5c9b7f,_0x3e3287._0x5ccaf5,_0x3e3287._0x4d3790,_0x3e3287._0x4371db)][_0x2e5ec1(0x6b,0x79,_0x3e3287._0x36073c,0x7d)]()[_0x2e5ec1(_0x3e3287._0x1a09dc,0x71,0x72,_0x3e3287._0x30c56d)]>0x0;}function isResponseInputObject(_0x535686){const _0x44cc71={_0x5424a2:0x5f,_0x4dbe2e:0x65,_0x2fad75:0x56,_0x36d3f0:0x39,_0x240407:0x4b,_0x4f9ea1:0x5d,_0x2b3f5b:0xd4,_0x145f41:0xca,_0xab2551:0xba};if(typeof _0x535686!==_0x406427(0x83,_0x44cc71._0x5424a2,0x4c,_0x44cc71._0x4dbe2e)||_0x535686===null||Array[_0x406427(_0x44cc71._0x2fad75,0x5e,_0x44cc71._0x36d3f0,0x48)](_0x535686))return![];function _0x406427(_0x2c8759,_0x1815ec,_0x440033,_0x2ade1c){return _0x14c5(_0x2ade1c- -0x99,_0x1815ec);}const _0x3b2fa5=_0x535686;function _0x3a95f0(_0x3e37a3,_0x491e97,_0xd256d8,_0x3cce92){return _0x14c5(_0x3cce92- -0x15,_0xd256d8);}return typeof _0x3b2fa5[_0x406427(0x40,0x55,_0x44cc71._0x240407,_0x44cc71._0x4f9ea1)]===_0x3a95f0(_0x44cc71._0x2b3f5b,_0x44cc71._0x145f41,0xcf,_0x44cc71._0xab2551);}function isImageToolResultBlock(_0x4bd6f8){const _0x2b1f40={_0x58a8b0:0x430,_0x3f4f41:0x409,_0x575da4:0x405,_0x2649d2:0x408,_0x5348be:0x40d,_0x21b1bf:0x412,_0x5b446b:0xa5,_0x529d8a:0x8a,_0x5b2734:0x6b,_0x3bdcde:0x411,_0x3d8f0e:0x3fb,_0xa04523:0x3fd},_0x5908ce={_0x54532b:0x32e};if(typeof _0x4bd6f8!==_0xb1bab4(0x44a,_0x2b1f40._0x58a8b0,0x442,0x42c)||_0x4bd6f8===null||Array[_0xb1bab4(0x3f6,_0x2b1f40._0x3f4f41,0x412,0x40f)](_0x4bd6f8))return![];function _0x486834(_0x13eec2,_0x208f60,_0x449751,_0x244b3d){return _0x14c5(_0x449751- -0x164,_0x244b3d);}function _0xb1bab4(_0x48ac31,_0x31557a,_0x7692ba,_0x43960d){return _0x14c5(_0x43960d-_0x5908ce._0x54532b,_0x48ac31);}const _0x2b0a65=_0x4bd6f8;return _0x2b0a65['type']===_0xb1bab4(0x423,_0x2b1f40._0x575da4,0x40e,0x417)&&_0x2b0a65[_0xb1bab4(_0x2b1f40._0x2649d2,0x418,_0x2b1f40._0x5348be,0x408)]?.['type']===_0xb1bab4(0x44b,_0x2b1f40._0x21b1bf,0x417,0x431)&&typeof _0x2b0a65[_0x486834(-0xa5,-_0x2b1f40._0x5b446b,-_0x2b1f40._0x529d8a,-_0x2b1f40._0x5b2734)]['media_type']==='string'&&typeof _0x2b0a65[_0xb1bab4(0x415,0x41a,_0x2b1f40._0x3bdcde,0x408)][_0x486834(-0x5b,-0x7e,-0x63,-0x6e)]===_0xb1bab4(0x3de,_0x2b1f40._0x3d8f0e,0x3fe,_0x2b1f40._0xa04523);}function getToolResultText(_0x2570ec){const _0x5efd66={_0x590dca:0x76,_0x190c5c:0x215,_0x5c2548:0x20c,_0x46e305:0x202,_0x51e882:0x1fb,_0x340e52:0x22e,_0x1a3f41:0x217,_0x19f33b:0x231,_0x4f4336:0x1ea,_0x5aa176:0x205,_0x484b3b:0x82,_0x3336c3:0x78,_0x1fc5f3:0x21f},_0x1d56cd={_0x46a73b:0x76},_0x32105e={_0x36fbce:0x195,_0xaa422c:0x180,_0x1cd6f3:0x170},_0x4cf75b={_0x5bda31:0x54,_0x43b41a:0xad},_0x14aeb1={_0x2a7222:0x7c};if(typeof _0x2570ec===_0x1d8e02(0x60,0x59,0x5c,_0x5efd66._0x590dca))return _0x2570ec;function _0x45da7d(_0x1b5bbf,_0x2c9057,_0x1488b0,_0x357e49){return _0x14c5(_0x2c9057- -0x305,_0x1b5bbf);}const _0x592c02=_0x2570ec[_0x45da7d(-_0x5efd66._0x190c5c,-_0x5efd66._0x5c2548,-_0x5efd66._0x46e305,-_0x5efd66._0x51e882)](_0x24ef1f=>{function _0x4cafbc(_0x26843f,_0x538096,_0x31cd90,_0x5a2596){return _0x1d8e02(_0x26843f-_0x14aeb1._0x2a7222,_0x538096- -0x215,_0x31cd90-0x23,_0x26843f);}function _0x1f5bb0(_0x3528de,_0x4959de,_0x2c765a,_0x548506){return _0x45da7d(_0x4959de,_0x3528de- -_0x4cf75b._0x5bda31,_0x2c765a-_0x4cf75b._0x43b41a,_0x548506-0x157);}return typeof _0x24ef1f==='object'&&_0x24ef1f!==null&&_0x24ef1f[_0x4cafbc(-0x1a8,-_0x32105e._0x36fbce,-_0x32105e._0xaa422c,-0x177)]===_0x4cafbc(-0x19a,-0x18c,-_0x32105e._0x1cd6f3,-0x19e);})[_0x45da7d(-0x217,-_0x5efd66._0x340e52,-0x23c,-0x213)](_0xc45eed=>_0xc45eed[_0x1d8e02(0x84,0x89,0xa9,0x70)])[_0x45da7d(-0x210,-_0x5efd66._0x1a3f41,-_0x5efd66._0x19f33b,-0x1fe)]('\x0a\x0a')[_0x45da7d(-_0x5efd66._0x4f4336,-_0x5efd66._0x5aa176,-0x217,-0x220)]();function _0x1d8e02(_0x372afe,_0x32e37f,_0x857f91,_0x484182){return _0x14c5(_0x32e37f- -_0x1d56cd._0x46a73b,_0x484182);}return _0x592c02[_0x1d8e02(0x8b,_0x5efd66._0x484b3b,_0x5efd66._0x3336c3,0x97)]>0x0?_0x592c02:_0x45da7d(-0x219,-_0x5efd66._0x1fc5f3,-_0x5efd66._0x340e52,-0x210);}function getToolResultImages(_0x3f45c1){const _0x4e4706={_0x28b7a7:0x7e,_0x3e527a:0x95,_0x42e108:0x3e9,_0x5e6186:0x3b3,_0x24f36e:0x3d3},_0x1aac88={_0x4eef22:0x2da};function _0x3518dc(_0x1bd471,_0x48484e,_0x103d42,_0x300360){return _0x14c5(_0x103d42-_0x1aac88._0x4eef22,_0x300360);}function _0x122365(_0x4a017a,_0x5c7e3d,_0x1e274b,_0x2f6807){return _0x14c5(_0x2f6807- -0x15d,_0x5c7e3d);}return Array[_0x122365(-_0x4e4706._0x28b7a7,-_0x4e4706._0x3e527a,-0x7c,-0x7c)](_0x3f45c1)?_0x3f45c1[_0x3518dc(_0x4e4706._0x42e108,_0x4e4706._0x5e6186,_0x4e4706._0x24f36e,0x3e0)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x1c23a5){const _0x3b46aa={_0x24e91e:0x125,_0x11b64c:0x2a},_0x47a068={_0x1d5151:0x65},_0x35d30a={_0xa1c6df:0xe0};function _0x4e8e9d(_0x500050,_0x116b99,_0x542927,_0x4a765b){return _0x14c5(_0x500050- -_0x35d30a._0xa1c6df,_0x542927);}function _0x55fe75(_0x327550,_0x48c01f,_0xb16315,_0x5a6fb3){return _0x14c5(_0x48c01f-_0x47a068._0x1d5151,_0xb16315);}return _0x1c23a5[_0x55fe75(_0x3b46aa._0x24e91e,0x13a,0x120,0x144)]?.[_0x4e8e9d(_0x3b46aa._0x11b64c,0x1a,0x25,0x4b)]??'user-visible';}function createOpenAiResponsesReasoning(_0xdb0447){const _0x4cc063={_0x30a117:0x3ff,_0x5c68fa:0x42a,_0x2b06b4:0x416,_0x454832:0xee,_0x2850eb:0xf1,_0x423d73:0x409,_0x4ab308:0x3f6,_0x13a49d:0x42c,_0x2cb02c:0x401,_0x3829b6:0x414,_0x258f70:0x436,_0x478cff:0x425,_0x51223b:0x423,_0x1f06d4:0xeb,_0xb2ca4:0x103},_0x3e8196={_0x32877a:0x1df};function _0x146630(_0x314c5f,_0x2e81a5,_0x4dab78,_0x527f5e){return _0x14c5(_0x4dab78- -_0x3e8196._0x32877a,_0x2e81a5);}const _0x3a2e10=resolveOpenAiReasoningConfig(_0xdb0447[_0x385fb9(0x41e,_0x4cc063._0x30a117,0x3e5,0x407)]);if(!_0x3a2e10)return{};const _0x126b9d={},_0x375b37=_0x3a2e10[_0x385fb9(_0x4cc063._0x5c68fa,_0x4cc063._0x2b06b4,0x435,0x3fc)]??(resolveReasoningVisibility(_0xdb0447)===_0x146630(-_0x4cc063._0x454832,-0xe7,-0xe3,-_0x4cc063._0x2850eb)?_0x385fb9(0x414,_0x4cc063._0x423d73,_0x4cc063._0x4ab308,0x3f8):void 0x0);_0x3a2e10['effort']&&(_0x126b9d[_0x146630(-0x106,-0xfb,-0x10f,-0x116)]=_0x3a2e10['effort']);_0x375b37&&(_0x126b9d['summary']=_0x375b37);function _0x385fb9(_0x110cae,_0x241940,_0xc22f7b,_0x1ba8d6){return _0x14c5(_0x241940-0x32a,_0x1ba8d6);}return{..._0x3a2e10[_0x385fb9(_0x4cc063._0x13a49d,0x415,_0x4cc063._0x2cb02c,_0x4cc063._0x3829b6)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object[_0x385fb9(_0x4cc063._0x258f70,_0x4cc063._0x478cff,_0x4cc063._0x51223b,0x415)](_0x126b9d)[_0x146630(-0xf7,-_0x4cc063._0x1f06d4,-0xe7,-_0x4cc063._0xb2ca4)]>0x0?{'reasoning':_0x126b9d}:{}};}function pushAssistantProviderState(_0x2bba0a,_0x5400d3){const _0x40e166={_0x2e3eae:0x368,_0x2a9a37:0x77,_0x12a522:0x3c0,_0x20a8ea:0x38b,_0x32930d:0x39b,_0x1e1aa9:0x3a4,_0x59523d:0x392,_0x233e44:0x374,_0x817a82:0x388,_0x1a7812:0x87,_0x16b529:0x378,_0x2660c7:0x36d,_0x32609d:0x391,_0x35e777:0x384,_0x18d4e0:0x8e,_0x119260:0x98},_0x22feee={_0x374f58:0x298};if(_0x5400d3[_0xaad6fd(0x361,0x38a,_0x40e166._0x2e3eae,0x375)]!==_0x1ef8ab(-0x83,-_0x40e166._0x2a9a37,-0x98,-0x8e))return![];function _0xaad6fd(_0x3cd7b0,_0xff96ce,_0x4546ad,_0x122440){return _0x14c5(_0x122440-_0x22feee._0x374f58,_0xff96ce);}const _0xcef8ec=_0x5400d3[_0xaad6fd(_0x40e166._0x12a522,_0x40e166._0x20a8ea,_0x40e166._0x32930d,_0x40e166._0x1e1aa9)]?.[_0xaad6fd(0x373,0x37a,0x385,_0x40e166._0x59523d)]??[];if(_0xcef8ec[_0xaad6fd(_0x40e166._0x233e44,0x39e,0x36f,0x390)]===0x0)return![];for(const _0x2b00a0 of _0xcef8ec){if(isResponseInputObject(_0x2b00a0)){const _0x420ea0=structuredClone(_0x2b00a0);_0x420ea0['type']===_0xaad6fd(0x378,0x364,_0x40e166._0x817a82,0x36d)&&!Array[_0x1ef8ab(-_0x40e166._0x1a7812,-0x8d,-_0x40e166._0x1a7812,-0x73)](_0x420ea0[_0xaad6fd(_0x40e166._0x16b529,_0x40e166._0x2660c7,_0x40e166._0x32609d,_0x40e166._0x35e777)])&&(_0x420ea0['summary']=[]),_0x2bba0a[_0x1ef8ab(-_0x40e166._0x18d4e0,-_0x40e166._0x119260,-0xb1,-0x94)](_0x420ea0);}}function _0x1ef8ab(_0x59e7d6,_0x54bf45,_0xfab096,_0x5476d9){return _0x14c5(_0x54bf45- -0x16e,_0xfab096);}return!![];}function toOpenAiResponsesRequest(_0x4ae987){const _0x1d43ed={_0x1378a1:0x15e,_0xceb84c:0x119,_0x3ab9de:0x141,_0x19960b:0x182,_0x3c6c93:0x16a,_0x4f2f4c:0x14f,_0x265c8a:0x14d,_0x2f8817:0x15c,_0x5e98df:0x13e,_0x5d35c1:0x149,_0x332dd0:0x12c,_0xb99846:0x3ec,_0x2492be:0x3da,_0x15e5bb:0x41a,_0x7bc375:0x43a,_0x40aac5:0x14c,_0x50c122:0x141,_0x3988bd:0x411,_0x1bd0a7:0x40e,_0x3a7b00:0x3f4,_0x352cf5:0x41d,_0x9ba2ff:0x41a,_0x3b1fc6:0x3eb,_0x421ac7:0x3e8,_0x125725:0x3db,_0x1a3a94:0x3f3,_0x5db3d4:0x3e4,_0x1853a6:0x166,_0x2854ce:0x41c,_0x2f7ff1:0x3fc,_0x465e99:0x147,_0x5329f1:0x152,_0xb27f24:0x146,_0x128294:0x150,_0x272cf3:0x13b,_0x4ebd2e:0x3dd,_0x35a3ad:0x3f1,_0x364595:0x405,_0x2e20da:0x3ec,_0x175973:0x418,_0x36c1d4:0x400,_0x4b7199:0x42a,_0x254350:0x410,_0x412dae:0x153,_0x533801:0x145,_0x32d14f:0x185,_0x391c95:0x14a,_0x4872b2:0x157,_0x5db5db:0x402,_0x49597c:0x438,_0x1c2715:0x403,_0x3300cf:0x157,_0x361ce5:0x17e,_0x2e0cb6:0x14e,_0x548cc8:0x141,_0x4f9089:0x41f,_0x3fefed:0x15f,_0x4d0c03:0x13f,_0x207642:0x162,_0x16b3f4:0x17c,_0x3a11a2:0x3ea,_0x5acdb1:0x3e1,_0x2bf0e6:0x14f,_0x3523be:0x131,_0x389bd5:0x13c,_0x4bee46:0x123,_0x43ba2c:0x169,_0x11057b:0x17c,_0x818403:0x175,_0x171a4b:0x146,_0x34b9a8:0x151,_0x4512f9:0x142,_0x379e4c:0x421,_0x15f55f:0x3fd,_0x571fcb:0x3ff,_0x59eb56:0x14e,_0x3d59ce:0x188,_0x1ad46c:0x402,_0x554ebf:0x3f3,_0x3eb000:0x158,_0x370e37:0x155,_0x1c8395:0x150,_0x220889:0x3f9,_0x52953c:0x3f0,_0x1d5b34:0x3e7,_0x22cae7:0x133,_0x402929:0x143,_0x1d3acf:0x114},_0x3f402c={_0x246a41:0x1ce,_0x2eab34:0x287,_0x235835:0x29f,_0x30bed1:0x28d,_0x4599df:0x298,_0x4db066:0x2af,_0x30250b:0x2aa},_0x38a77b={_0x330aed:0x17e},_0x557674={_0x35bf1b:0x240};function _0x2c2120(_0x6c691a,_0x45eddb,_0x13c553,_0x1227e2){return _0x14c5(_0x45eddb- -_0x557674._0x35bf1b,_0x6c691a);}function _0x142c23(_0x5b8432,_0x514149,_0x38fa8c,_0x1f903a){return _0x14c5(_0x5b8432-0x31b,_0x1f903a);}const _0x352a10=[];for(const _0x3ec209 of _0x4ae987[_0x2c2120(-0x14a,-0x165,-0x16c,-_0x1d43ed._0x1378a1)]){if(pushAssistantProviderState(_0x352a10,_0x3ec209))continue;const _0xdc2b68=[];for(const _0x3a22cc of normalizeContent(_0x3ec209[_0x2c2120(-0x14e,-0x138,-_0x1d43ed._0xceb84c,-0x144)])){if(_0x3a22cc['type']===_0x2c2120(-0x15c,-_0x1d43ed._0x3ab9de,-0x126,-0x143)){_0xdc2b68[_0x2c2120(-_0x1d43ed._0x19960b,-_0x1d43ed._0x3c6c93,-_0x1d43ed._0x4f2f4c,-_0x1d43ed._0x265c8a)](_0x3ec209[_0x2c2120(-0x14a,-0x163,-_0x1d43ed._0x2f8817,-0x170)]===_0x2c2120(-_0x1d43ed._0x5e98df,-_0x1d43ed._0x5d35c1,-_0x1d43ed._0x332dd0,-0x14d)?{'type':_0x142c23(_0x1d43ed._0xb99846,0x406,_0x1d43ed._0x2492be,0x3fc),'text':_0x3a22cc[_0x142c23(_0x1d43ed._0x15e5bb,0x405,_0x1d43ed._0x7bc375,0x429)]}:{'type':_0x2c2120(-0x175,-0x15d,-_0x1d43ed._0x40aac5,-0x153),'text':_0x3a22cc[_0x2c2120(-0x142,-_0x1d43ed._0x50c122,-0x13b,-0x147)]});continue;}if(_0x3a22cc[_0x142c23(_0x1d43ed._0x3988bd,0x3f7,0x3f6,0x3f7)]==='image'){_0xdc2b68[_0x142c23(0x3f1,0x405,_0x1d43ed._0x1bd0a7,0x3fe)]({'type':_0x142c23(0x40f,0x42d,_0x1d43ed._0x3a7b00,0x416),'image_url':_0x142c23(_0x1d43ed._0x352cf5,_0x1d43ed._0x9ba2ff,0x415,0x406)+_0x3a22cc[_0x142c23(0x3f5,_0x1d43ed._0x3b1fc6,0x411,_0x1d43ed._0x421ac7)][_0x142c23(0x3f7,0x3f7,0x3f0,_0x1d43ed._0x125725)]+_0x142c23(0x3e9,_0x1d43ed._0x1a3a94,_0x1d43ed._0x5db3d4,0x3e9)+_0x3a22cc[_0x2c2120(-0x174,-_0x1d43ed._0x1853a6,-0x162,-0x154)][_0x142c23(_0x1d43ed._0x2854ce,0x42b,_0x1d43ed._0x2f7ff1,0x40a)]});continue;}pushUserContentMessage(_0x352a10,_0x3ec209[_0x2c2120(-0x165,-0x163,-_0x1d43ed._0x465e99,-_0x1d43ed._0x5329f1)],_0xdc2b68[_0x2c2120(-_0x1d43ed._0xb27f24,-_0x1d43ed._0x128294,-0x15c,-_0x1d43ed._0x272cf3)](0x0));if(_0x3a22cc[_0x2c2120(-0x12b,-0x14a,-0x15b,-0x132)]===_0x142c23(0x3fb,_0x1d43ed._0x4ebd2e,0x41a,0x406)){if(!hasSerializableToolUse(_0x3a22cc))continue;_0x352a10[_0x142c23(_0x1d43ed._0x35a3ad,_0x1d43ed._0x364595,_0x1d43ed._0x2e20da,0x3d3)]({'type':_0x142c23(_0x1d43ed._0x175973,_0x1d43ed._0x36c1d4,_0x1d43ed._0x4b7199,0x433),'call_id':_0x3a22cc['id'],'name':_0x3a22cc[_0x142c23(_0x1d43ed._0x254350,0x418,_0x1d43ed._0x2854ce,0x413)],'arguments':JSON[_0x2c2120(-0x146,-_0x1d43ed._0x412dae,-0x13b,-_0x1d43ed._0x533801)](_0x3a22cc[_0x2c2120(-0x166,-0x16d,-0x14d,-_0x1d43ed._0x32d14f)]??{})});continue;}if(_0x3a22cc[_0x2c2120(-0x15c,-_0x1d43ed._0x391c95,-_0x1d43ed._0x4872b2,-0x14e)]==='tool_result'){if(!hasSerializableToolResult(_0x3a22cc))continue;const _0x180b1c=getToolResultText(_0x3a22cc[_0x142c23(0x423,_0x1d43ed._0x5db5db,_0x1d43ed._0x49597c,_0x1d43ed._0x1c2715)]);_0x352a10[_0x2c2120(-0x157,-_0x1d43ed._0x3c6c93,-_0x1d43ed._0x3300cf,-_0x1d43ed._0x361ce5)]({'type':_0x2c2120(-0x158,-_0x1d43ed._0x2e0cb6,-_0x1d43ed._0x548cc8,-0x137),'call_id':_0x3a22cc[_0x142c23(_0x1d43ed._0x4f9089,0x3fe,0x416,0x436)],'output':_0x180b1c});const _0x519c7a=getToolResultImages(_0x3a22cc['content']);_0x519c7a[_0x2c2120(-_0x1d43ed._0x3fefed,-0x148,-_0x1d43ed._0x4d0c03,-_0x1d43ed._0x207642)]>0x0&&_0x352a10[_0x2c2120(-_0x1d43ed._0x16b3f4,-0x16a,-_0x1d43ed._0x32d14f,-_0x1d43ed._0x265c8a)]({'type':'message','role':_0x142c23(_0x1d43ed._0x3a7b00,0x3de,0x3fd,_0x1d43ed._0x3a11a2),'content':[{'type':_0x142c23(0x3fe,0x409,_0x1d43ed._0x5acdb1,0x3e0),'text':_0x2c2120(-0x130,-_0x1d43ed._0x2bf0e6,-_0x1d43ed._0x128294,-0x142)+_0x3a22cc[_0x2c2120(-_0x1d43ed._0x3523be,-_0x1d43ed._0x389bd5,-_0x1d43ed._0x4bee46,-0x130)]+'.'},..._0x519c7a[_0x2c2120(-_0x1d43ed._0x3c6c93,-_0x1d43ed._0x43ba2c,-_0x1d43ed._0x11057b,-0x159)](_0x408ceb=>({'type':_0x2c2120(-0x13b,-0x14c,-0x152,-0x150),'image_url':_0x142c23(0x41d,0x43e,0x41b,0x3ff)+_0x408ceb['source'][_0x2c2120(-0x165,-0x164,-0x173,-0x17f)]+_0x142c23(0x3e9,0x3d9,0x403,0x3e5)+_0x408ceb[_0x142c23(0x3f5,0x3f9,0x3fa,0x3fd)]['data']}))]});}}pushUserContentMessage(_0x352a10,_0x3ec209[_0x2c2120(-_0x1d43ed._0x818403,-0x163,-_0x1d43ed._0x171a4b,-0x150)],_0xdc2b68);}return{...createOpenAiResponsesReasoning(_0x4ae987),'model':_0x4ae987[_0x2c2120(-0x140,-0x137,-0x135,-_0x1d43ed._0x272cf3)],'instructions':systemToInstructions(_0x4ae987[_0x2c2120(-0x155,-_0x1d43ed._0x34b9a8,-_0x1d43ed._0x4512f9,-0x170)]),'input':_0x352a10,..._0x4ae987[_0x142c23(_0x1d43ed._0x379e4c,0x417,0x442,_0x1d43ed._0x379e4c)]!==void 0x0?{'max_output_tokens':_0x4ae987['maxTokens']}:{},'tools':_0x4ae987[_0x142c23(_0x1d43ed._0x15f55f,0x40b,0x41d,_0x1d43ed._0x571fcb)][_0x2c2120(-_0x1d43ed._0x391c95,-_0x1d43ed._0x43ba2c,-_0x1d43ed._0x59eb56,-_0x1d43ed._0x3d59ce)](_0x195aba=>{const _0x4ed48b={_0x365955:0x78,_0x3c9636:0x89};function _0x317780(_0xe8e867,_0x682ccc,_0x4e68f2,_0x304de3){return _0x2c2120(_0x4e68f2,_0x682ccc- -_0x4ed48b._0x365955,_0x4e68f2-0x1cc,_0x304de3-_0x4ed48b._0x3c9636);}function _0x50ebb1(_0x46e0e8,_0x12c2b5,_0x4cf245,_0x2ef220){return _0x2c2120(_0x46e0e8,_0x4cf245-0x3ea,_0x4cf245-_0x38a77b._0x330aed,_0x2ef220-0x13b);}return{'type':_0x317780(-0x1f1,-0x1eb,-_0x3f402c._0x246a41,-0x1f8),'name':_0x195aba[_0x50ebb1(0x2a7,_0x3f402c._0x2eab34,_0x3f402c._0x235835,_0x3f402c._0x30bed1)],'description':_0x195aba[_0x50ebb1(0x2bf,0x293,0x2b1,0x2bd)],'parameters':_0x195aba[_0x50ebb1(_0x3f402c._0x4599df,0x2ba,_0x3f402c._0x4db066,_0x3f402c._0x30250b)]};}),..._0x4ae987[_0x142c23(0x3f9,0x3f1,_0x1d43ed._0x1ad46c,_0x1d43ed._0x554ebf)]?{'text':{'format':{'type':_0x2c2120(-_0x1d43ed._0x3eb000,-0x15c,-_0x1d43ed._0x370e37,-_0x1d43ed._0x1c8395),'name':_0x4ae987[_0x142c23(_0x1d43ed._0x220889,_0x1d43ed._0x52953c,_0x1d43ed._0x1d5b34,0x3fb)][_0x142c23(_0x1d43ed._0x254350,0x410,0x420,0x3f3)]??'structured_output','schema':_0x4ae987[_0x142c23(0x3f9,0x3f3,0x3dc,0x3e1)][_0x142c23(0x426,0x412,0x432,0x407)],'strict':_0x4ae987['outputFormat'][_0x2c2120(-0x12c,-_0x1d43ed._0x22cae7,-_0x1d43ed._0x402929,-_0x1d43ed._0x1d3acf)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
@@ -0,0 +1 @@
1
+ (function(_0x3c44a5,_0x383bd6){var _0x24ab35={_0x19b1ff:0x435,_0x5c1584:0x433,_0x5993d9:0x426,_0x1d4527:0x42c,_0x5e49f5:0x429,_0x4fe096:0x423,_0x428bc2:0x42e,_0x489f0c:0x432,_0xee328a:0x430,_0x1fb899:0x42d,_0x31c3ff:0x435,_0x168c52:0x434,_0x1ef415:0x422,_0x4b5ec1:0x421,_0x4d2a87:0x428,_0x24c3b0:0x427,_0x5644ee:0x421,_0x3c9145:0x145,_0x20e152:0x148,_0x4535c8:0x14c,_0x41764b:0x149,_0xf72392:0x427,_0x591134:0x430},_0x5888eb={_0x14ee15:0x29c};function _0x188ec8(_0x250092,_0x4d68f2,_0x28b666,_0xd78a98){return _0x312b(_0xd78a98-0x2db,_0x28b666);}var _0x51c516=_0x3c44a5();function _0x5d6c9e(_0x32a1ec,_0x78f0ca,_0x1fae9e,_0x4a8e9f){return _0x312b(_0x32a1ec- -_0x5888eb._0x14ee15,_0x1fae9e);}while(!![]){try{var _0xf1107=parseInt(_0x188ec8(_0x24ab35._0x19b1ff,_0x24ab35._0x5c1584,0x433,0x42e))/0x1*(-parseInt(_0x188ec8(0x42a,_0x24ab35._0x5993d9,0x42c,_0x24ab35._0x1d4527))/0x2)+parseInt(_0x188ec8(0x423,0x42f,0x426,_0x24ab35._0x5e49f5))/0x3*(parseInt(_0x188ec8(_0x24ab35._0x4fe096,0x429,_0x24ab35._0x428bc2,0x427))/0x4)+parseInt(_0x188ec8(_0x24ab35._0x489f0c,0x42d,_0x24ab35._0xee328a,_0x24ab35._0x1fb899))/0x5*(-parseInt(_0x188ec8(_0x24ab35._0x31c3ff,_0x24ab35._0x168c52,0x42f,0x431))/0x6)+parseInt(_0x188ec8(_0x24ab35._0x1ef415,_0x24ab35._0x4b5ec1,0x42d,_0x24ab35._0x4d2a87))/0x7+-parseInt(_0x188ec8(_0x24ab35._0x24c3b0,0x423,_0x24ab35._0x5644ee,_0x24ab35._0x5993d9))/0x8+-parseInt(_0x188ec8(_0x24ab35._0x489f0c,_0x24ab35._0x489f0c,_0x24ab35._0x168c52,0x42f))/0x9*(parseInt(_0x5d6c9e(-_0x24ab35._0x3c9145,-0x147,-0x148,-_0x24ab35._0x20e152))/0xa)+parseInt(_0x5d6c9e(-_0x24ab35._0x4535c8,-_0x24ab35._0x41764b,-0x146,-0x152))/0xb*(parseInt(_0x188ec8(_0x24ab35._0xf72392,_0x24ab35._0x591134,0x42f,0x42a))/0xc);if(_0xf1107===_0x383bd6)break;else _0x51c516['push'](_0x51c516['shift']());}catch(_0x3a73b3){_0x51c516['push'](_0x51c516['shift']());}}}(_0x277a,0xc1bdf));function modelIdentityFromParts(_0xee7397,_0x100c8a){var _0x4b1ecb={_0x9f94fc:0x345,_0x5a2f30:0x347};if(_0xee7397)return _0xee7397+':'+_0x100c8a;function _0x292270(_0x17d914,_0x3ea1c2,_0x11d90f,_0x56f80b){return _0x312b(_0x56f80b-0x1f0,_0x17d914);}return _0x100c8a[_0x292270(0x348,_0x4b1ecb._0x9f94fc,_0x4b1ecb._0x5a2f30,_0x4b1ecb._0x9f94fc)](':')?':'+_0x100c8a:_0x100c8a;}function _0x312b(_0x4ad6b5,_0x551729){_0x4ad6b5=_0x4ad6b5-0x14b;var _0x277a23=_0x277a();var _0x312b2c=_0x277a23[_0x4ad6b5];if(_0x312b['PKOeUG']===undefined){var _0x74f0c2=function(_0x4b677f){var _0x568d45='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xee7397='',_0x100c8a='';for(var _0x497ec3=0x0,_0x931267,_0x515a9b,_0x2d98dc=0x0;_0x515a9b=_0x4b677f['charAt'](_0x2d98dc++);~_0x515a9b&&(_0x931267=_0x497ec3%0x4?_0x931267*0x40+_0x515a9b:_0x515a9b,_0x497ec3++%0x4)?_0xee7397+=String['fromCharCode'](0xff&_0x931267>>(-0x2*_0x497ec3&0x6)):0x0){_0x515a9b=_0x568d45['indexOf'](_0x515a9b);}for(var _0x41a09a=0x0,_0x203ccd=_0xee7397['length'];_0x41a09a<_0x203ccd;_0x41a09a++){_0x100c8a+='%'+('00'+_0xee7397['charCodeAt'](_0x41a09a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x100c8a);};_0x312b['QwmaSl']=_0x74f0c2,_0x312b['xuCpll']={},_0x312b['PKOeUG']=!![];}var _0x5e80c2=_0x277a23[0x0],_0x21444a=_0x4ad6b5+_0x5e80c2,_0x1f7f0b=_0x312b['xuCpll'][_0x21444a];return!_0x1f7f0b?(_0x312b2c=_0x312b['QwmaSl'](_0x312b2c),_0x312b['xuCpll'][_0x21444a]=_0x312b2c):_0x312b2c=_0x1f7f0b,_0x312b2c;}export{modelIdentityFromParts};function _0x277a(){var _0x2c2396=['Aw5JBhvKzxm','mZm5nK1NEMvzEG','otKYntG1mfjczKDltW','mtiXnJmWntzOB3Pov1y','mJe1mKTTEfPfyq','nde4mdaZnLPJsejqyW','nJi0oxvAqxbzCq','mtGXmMvSC1zdwG','mJe0mtu5zLrUv1LH','mZy2mtm0rMrXD2fn','nJe1rwncz2PW','n25YBhHMyq','ovn1A1b2CG'];_0x277a=function(){return _0x2c2396;};return _0x277a();}
@@ -1 +1 @@
1
- function _0x48fe75(_0xa22eaa,_0x32e36c,_0x30b88b,_0x124ff3){var _0x10d819={_0x133898:0x5c};return _0x352e(_0xa22eaa- -_0x10d819._0x133898,_0x30b88b);}function _0x1813(){var _0x3c7dba=['C3rHDgu','otfOCLHMtei','vhvYBIbMywLSzwq','mJCYnJm4nezstKTgBW','mtK2mJe2sM9bze1R','mZi2ndC2ohnprvjLvq','nezLseHhCW','mty1BeHvCgzV','mtq4mZi2D1vtq3LH','odu0otuWuxf6vwPr','mtb5DK9ZBgq','mZq4ndm4zgXQseHs','BMfTzq','mZe1nJy3sg9tzgvX'];_0x1813=function(){return _0x3c7dba;};return _0x1813();}(function(_0x1dbf2c,_0x1f356b){var _0x3f1c60={_0x58f91c:0x273,_0x406d75:0x272,_0x4dca07:0x270,_0x51abc9:0x26f,_0x5c9421:0x268,_0x1445d3:0xa1,_0xa03d8c:0x271,_0x4eefc9:0x270,_0x5b1df4:0x275,_0x2a684d:0x96,_0x348b48:0xa3,_0x2c1703:0x9e,_0x176807:0x27b,_0x2b85d7:0x26e,_0x47b193:0x275,_0xf86dbd:0x279,_0x53105c:0x26f},_0x3bd08a={_0x417cc9:0x37b},_0x36b49b=_0x1dbf2c();function _0x96c95(_0x2f35b8,_0x5948da,_0x56c080,_0x2f3ec4){return _0x352e(_0x2f35b8- -0x1a6,_0x5948da);}function _0x1ca0da(_0x23eca0,_0x270977,_0x597e6a,_0x525274){return _0x352e(_0x270977- -_0x3bd08a._0x417cc9,_0x525274);}while(!![]){try{var _0x49a2d5=parseInt(_0x1ca0da(-_0x3f1c60._0x58f91c,-0x26d,-0x26b,-0x26b))/0x1+-parseInt(_0x1ca0da(-_0x3f1c60._0x406d75,-0x274,-0x272,-0x277))/0x2*(-parseInt(_0x1ca0da(-_0x3f1c60._0x4dca07,-_0x3f1c60._0x51abc9,-0x276,-_0x3f1c60._0x5c9421))/0x3)+-parseInt(_0x96c95(-_0x3f1c60._0x1445d3,-0xa6,-0xa6,-0xa3))/0x4*(parseInt(_0x1ca0da(-_0x3f1c60._0xa03d8c,-_0x3f1c60._0x4eefc9,-0x26c,-_0x3f1c60._0x5b1df4))/0x5)+-parseInt(_0x96c95(-0x9d,-_0x3f1c60._0x2a684d,-_0x3f1c60._0x348b48,-_0x3f1c60._0x2a684d))/0x6*(-parseInt(_0x96c95(-0xa4,-_0x3f1c60._0x2c1703,-0xaa,-0xa5))/0x7)+parseInt(_0x1ca0da(-_0x3f1c60._0x176807,-0x277,-0x277,-0x27c))/0x8+parseInt(_0x1ca0da(-_0x3f1c60._0x2b85d7,-_0x3f1c60._0x47b193,-_0x3f1c60._0xf86dbd,-_0x3f1c60._0x2b85d7))/0x9+parseInt(_0x96c95(-0x9c,-0x9f,-0x9e,-_0x3f1c60._0x2c1703))/0xa*(-parseInt(_0x1ca0da(-0x277,-0x273,-0x26c,-_0x3f1c60._0x53105c))/0xb);if(_0x49a2d5===_0x1f356b)break;else _0x36b49b['push'](_0x36b49b['shift']());}catch(_0x4fb4ac){_0x36b49b['push'](_0x36b49b['shift']());}}}(_0x1813,0x2ef5d));function _0x352e(_0x539de2,_0x3a3a81){_0x539de2=_0x539de2-0x102;var _0x181332=_0x1813();var _0x352e7a=_0x181332[_0x539de2];if(_0x352e['HakKUS']===undefined){var _0x440ef6=function(_0x3c6521){var _0x9c094e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2a79d4='',_0x2b13cb='';for(var _0x9cb55d=0x0,_0x56cfcd,_0x4c7a79,_0x238778=0x0;_0x4c7a79=_0x3c6521['charAt'](_0x238778++);~_0x4c7a79&&(_0x56cfcd=_0x9cb55d%0x4?_0x56cfcd*0x40+_0x4c7a79:_0x4c7a79,_0x9cb55d++%0x4)?_0x2a79d4+=String['fromCharCode'](0xff&_0x56cfcd>>(-0x2*_0x9cb55d&0x6)):0x0){_0x4c7a79=_0x9c094e['indexOf'](_0x4c7a79);}for(var _0x5784dc=0x0,_0x59ed2b=_0x2a79d4['length'];_0x5784dc<_0x59ed2b;_0x5784dc++){_0x2b13cb+='%'+('00'+_0x2a79d4['charCodeAt'](_0x5784dc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b13cb);};_0x352e['TxZRyU']=_0x440ef6,_0x352e['oYRUzw']={},_0x352e['HakKUS']=!![];}var _0x567bfb=_0x181332[0x0],_0xd1b5b4=_0x539de2+_0x567bfb,_0x41a2c3=_0x352e['oYRUzw'][_0xd1b5b4];return!_0x41a2c3?(_0x352e7a=_0x352e['TxZRyU'](_0x352e7a),_0x352e['oYRUzw'][_0xd1b5b4]=_0x352e7a):_0x352e7a=_0x41a2c3,_0x352e7a;}var TurnFailedError=class extends Error{[_0x48fe75(0xb3,0xb2,0xb8,0xb1)];constructor(_0x2a79d4,_0x2b13cb){var _0x4a1dd9={_0x3360c2:0x6c,_0x4d1098:0x68,_0x490a76:0x77,_0x34665a:0x76,_0x25dfa7:0x6f,_0x9d2761:0x2c3},_0x4ed9d0={_0x598d5d:0x123,_0x586b30:0x34},_0x114cb8={_0x27e749:0x3b,_0x589183:0x31,_0x2fe817:0x184};function _0x14b35a(_0x380ce3,_0x5e9f5c,_0x5ac068,_0x14fbe5){return _0x48fe75(_0x5e9f5c- -_0x114cb8._0x27e749,_0x5e9f5c-_0x114cb8._0x589183,_0x14fbe5,_0x14fbe5-_0x114cb8._0x2fe817);}super(_0x2a79d4 instanceof Error?_0x2a79d4['message']:_0x14b35a(0x6a,_0x4a1dd9._0x3360c2,0x72,_0x4a1dd9._0x4d1098),{'cause':_0x2a79d4}),this[_0x14b35a(_0x4a1dd9._0x490a76,_0x4a1dd9._0x34665a,0x77,_0x4a1dd9._0x25dfa7)]='TurnFailedError';function _0x45d00b(_0x5886a0,_0x47433e,_0x5a2b3d,_0x4dafa9){return _0x48fe75(_0x47433e-0x20d,_0x47433e-_0x4ed9d0._0x598d5d,_0x5886a0,_0x4dafa9-_0x4ed9d0._0x586b30);}this[_0x45d00b(0x2c1,0x2c0,0x2c4,_0x4a1dd9._0x9d2761)]=_0x2b13cb;}};export{TurnFailedError};
1
+ (function(_0x1da5fc,_0x2af104){var _0x5ebd88={_0x122973:0x16f,_0x7bf408:0x16d,_0x2e859a:0x3b0,_0x2cb50b:0x166,_0x3f7b57:0x3b6,_0x19735f:0x3b3,_0x3894ab:0x3b1,_0x4441e4:0x170,_0x309845:0x173,_0x1e6ee1:0x3b4,_0x1e286e:0x3b2,_0xbc84c1:0x3b0,_0x2b971f:0x3ad,_0x165112:0x179,_0x2934f1:0x3a9},_0x1dac41={_0x3b33a8:0x26},_0x18e8f5={_0xd56de3:0x26c};function _0x11540f(_0x285e99,_0x5b9fc6,_0x986b96,_0x55c99b){return _0x4473(_0x55c99b-_0x18e8f5._0xd56de3,_0x285e99);}function _0x3caa19(_0x1d0dd8,_0xb54bec,_0x22a145,_0x23a20d){return _0x4473(_0x1d0dd8-_0x1dac41._0x3b33a8,_0x23a20d);}var _0x3f8107=_0x1da5fc();while(!![]){try{var _0x38bb5e=-parseInt(_0x3caa19(_0x5ebd88._0x122973,_0x5ebd88._0x7bf408,0x16f,0x176))/0x1+parseInt(_0x11540f(0x3be,_0x5ebd88._0x2e859a,0x3b0,0x3b7))/0x2+parseInt(_0x3caa19(_0x5ebd88._0x2cb50b,0x16b,0x169,0x16a))/0x3*(parseInt(_0x11540f(_0x5ebd88._0x3f7b57,0x3af,_0x5ebd88._0x19735f,_0x5ebd88._0x3894ab))/0x4)+parseInt(_0x3caa19(_0x5ebd88._0x4441e4,0x16d,0x16f,_0x5ebd88._0x309845))/0x5*(parseInt(_0x11540f(0x3b6,_0x5ebd88._0x1e6ee1,_0x5ebd88._0x1e286e,_0x5ebd88._0xbc84c1))/0x6)+-parseInt(_0x11540f(_0x5ebd88._0x1e286e,0x3b8,0x3b1,_0x5ebd88._0x1e6ee1))/0x7+-parseInt(_0x11540f(0x3ae,_0x5ebd88._0x2b971f,0x3b4,0x3ae))/0x8*(parseInt(_0x3caa19(_0x5ebd88._0x309845,_0x5ebd88._0x165112,0x171,0x16c))/0x9)+parseInt(_0x11540f(_0x5ebd88._0x2934f1,_0x5ebd88._0x19735f,0x3ac,0x3ad))/0xa;if(_0x38bb5e===_0x2af104)break;else _0x3f8107['push'](_0x3f8107['shift']());}catch(_0x4029c0){_0x3f8107['push'](_0x3f8107['shift']());}}}(_0x358d,0x977ae));function _0x358d(){var _0x989ca0=['vhvYBKzHAwXLzevYCM9Y','mJa0otbOA1PxDfC','mJa0ohzPBMXIyG','BMfTzq','C3rHDgu','nZi4nZe5nLruB1fhCa','odu4otq3vxjIugDf','ndmWuuTOywzS','mta3otyYmNDJvg9lwa','vhvYBIbMywLSzwq','mZe1yKTduKzo','ndm1m0H3DLn5zG','mtG5nJGYotb3Cgfty0q','mJe3nZG0qNjXu3jh'];_0x358d=function(){return _0x989ca0;};return _0x358d();}var TurnFailedError=class extends Error{[_0x50cddd(-0xf5,-0xf9,-0xf3,-0xf5)];constructor(_0x33b07a,_0x5cadec){var _0x1e7629={_0x57b0eb:0x4ce,_0x812207:0x9f,_0x5f5086:0x94,_0x41bd50:0x9a,_0x59431e:0x4cb},_0x55ee86={_0x53ea3d:0xc8},_0x1474ab={_0x116222:0x7a,_0x328e56:0x44};super(_0x33b07a instanceof Error?_0x33b07a['message']:_0x80b28c(0x4d2,_0x1e7629._0x57b0eb,0x4d4,0x4d2),{'cause':_0x33b07a}),this[_0x2e1595(_0x1e7629._0x812207,0x9e,_0x1e7629._0x5f5086,_0x1e7629._0x41bd50)]=_0x80b28c(0x4d0,0x4d0,_0x1e7629._0x59431e,0x4c9);function _0x80b28c(_0x292929,_0x5a1d63,_0x36e956,_0x3e1a66){return _0x50cddd(_0x292929-_0x1474ab._0x116222,_0x3e1a66-0x5c6,_0x36e956-_0x1474ab._0x328e56,_0x36e956);}function _0x2e1595(_0x18be3a,_0x3c9da7,_0x284c9f,_0x7a6b66){return _0x50cddd(_0x18be3a-_0x55ee86._0x53ea3d,_0x7a6b66-0x194,_0x284c9f-0x7f,_0x3c9da7);}this['state']=_0x5cadec;}};function _0x4473(_0x535b03,_0x2ebc6f){_0x535b03=_0x535b03-0x140;var _0x358d56=_0x358d();var _0x44739c=_0x358d56[_0x535b03];if(_0x4473['AFUAqT']===undefined){var _0x3a9760=function(_0x56abf2){var _0x4f2355='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x33b07a='',_0x5cadec='';for(var _0x372774=0x0,_0xeaf990,_0x446ddd,_0x4c3b95=0x0;_0x446ddd=_0x56abf2['charAt'](_0x4c3b95++);~_0x446ddd&&(_0xeaf990=_0x372774%0x4?_0xeaf990*0x40+_0x446ddd:_0x446ddd,_0x372774++%0x4)?_0x33b07a+=String['fromCharCode'](0xff&_0xeaf990>>(-0x2*_0x372774&0x6)):0x0){_0x446ddd=_0x4f2355['indexOf'](_0x446ddd);}for(var _0x3af901=0x0,_0x7b0a1a=_0x33b07a['length'];_0x3af901<_0x7b0a1a;_0x3af901++){_0x5cadec+='%'+('00'+_0x33b07a['charCodeAt'](_0x3af901)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5cadec);};_0x4473['BIVKLu']=_0x3a9760,_0x4473['QhTZZQ']={},_0x4473['AFUAqT']=!![];}var _0x18f04f=_0x358d56[0x0],_0x40b350=_0x535b03+_0x18f04f,_0x376a76=_0x4473['QhTZZQ'][_0x40b350];return!_0x376a76?(_0x44739c=_0x4473['BIVKLu'](_0x44739c),_0x4473['QhTZZQ'][_0x40b350]=_0x44739c):_0x44739c=_0x376a76,_0x44739c;}function _0x50cddd(_0x3bf8e1,_0x31052c,_0x4b83bb,_0x5d5e2a){var _0x49225f={_0x5d75e1:0x240};return _0x4473(_0x31052c- -_0x49225f._0x5d75e1,_0x5d5e2a);}export{TurnFailedError};
@@ -1 +1 @@
1
- function _0x5136(){var _0x1648f3=['mtqXnxPRBMDyyq','yxv0BW','ntbHC1DOCMO','B3bLBMfP','ntjLqu1VEvy','zwzMB3j0','mJe0BuPXtKjz','ntiWmdi0zMXyz09x','mJyWmZuZmvLYC1rxsW','zw5HyMXLza','yw50AhjVCgLJ','m2DUBKPfqG','nZq2mZi1zvz4s1Ps','ogD4v2nOEq','mty1nfjfvNHTsa','otqXnhzMAwDcCq','nZu1n0vYrhPhBa','mte1mtqZnKThEKHbuW'];_0x5136=function(){return _0x1648f3;};return _0x5136();}(function(_0x403763,_0x3b5ecb){var _0x29f85b={_0x2ee4b6:0x4af,_0x2b874b:0x4b2,_0x3827f3:0x4a6,_0x954a97:0x4a1,_0x3303e5:0x194,_0x134b78:0x18c,_0x378ccc:0x196,_0x901f3f:0x192,_0x140d5a:0x18a,_0x12555d:0x4ad,_0x314535:0x4aa,_0x12046c:0x4a9,_0x17bdd6:0x4ab,_0x2f2f01:0x197,_0x35ee74:0x190,_0x41b48c:0x196,_0x59ff23:0x4ac,_0x199c67:0x4b5,_0x4930f0:0x4bd,_0x4b163b:0x4bc,_0x808f3d:0x4b1,_0x18e12c:0x4b8,_0x4f7377:0x194,_0x57072c:0x193,_0x5f291:0x198,_0x1b8c57:0x199},_0x3ab6c3={_0x4e29e9:0x30f},_0x1fe023=_0x403763();function _0x10c243(_0x53bd4e,_0x177ddf,_0x2b3cc0,_0x38d665){return _0x1f14(_0x177ddf- -0x32f,_0x38d665);}function _0x27286e(_0x398687,_0x1fb28e,_0xc2d06e,_0x1e5c66){return _0x1f14(_0x398687-_0x3ab6c3._0x4e29e9,_0x1e5c66);}while(!![]){try{var _0xa73dd7=parseInt(_0x27286e(_0x29f85b._0x2ee4b6,_0x29f85b._0x2b874b,_0x29f85b._0x3827f3,0x4ac))/0x1*(-parseInt(_0x27286e(0x4a7,_0x29f85b._0x954a97,0x4a4,0x4aa))/0x2)+-parseInt(_0x10c243(-_0x29f85b._0x3303e5,-0x192,-_0x29f85b._0x134b78,-_0x29f85b._0x378ccc))/0x3*(parseInt(_0x10c243(-0x19f,-0x196,-0x19c,-_0x29f85b._0x901f3f))/0x4)+parseInt(_0x10c243(-0x187,-0x18b,-0x186,-_0x29f85b._0x140d5a))/0x5*(parseInt(_0x27286e(0x4b0,_0x29f85b._0x12555d,0x4b5,_0x29f85b._0x314535))/0x6)+-parseInt(_0x27286e(_0x29f85b._0x12046c,0x4aa,_0x29f85b._0x17bdd6,_0x29f85b._0x314535))/0x7+-parseInt(_0x10c243(-_0x29f85b._0x2f2f01,-_0x29f85b._0x35ee74,-_0x29f85b._0x41b48c,-0x18c))/0x8*(-parseInt(_0x27286e(0x4ad,0x4ac,_0x29f85b._0x59ff23,0x4a5))/0x9)+-parseInt(_0x27286e(_0x29f85b._0x199c67,0x4ba,_0x29f85b._0x4930f0,_0x29f85b._0x4b163b))/0xa*(-parseInt(_0x27286e(_0x29f85b._0x808f3d,0x4b6,_0x29f85b._0x314535,_0x29f85b._0x18e12c))/0xb)+-parseInt(_0x10c243(-_0x29f85b._0x4f7377,-0x18c,-_0x29f85b._0x57072c,-0x191))/0xc*(-parseInt(_0x10c243(-_0x29f85b._0x5f291,-_0x29f85b._0x1b8c57,-0x1a0,-_0x29f85b._0x2f2f01))/0xd);if(_0xa73dd7===_0x3b5ecb)break;else _0x1fe023['push'](_0x1fe023['shift']());}catch(_0x501a15){_0x1fe023['push'](_0x1fe023['shift']());}}}(_0x5136,0x39712));var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function mapAutoReasoningEffortToBudgetTokens(_0x13312f){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0x13312f];}function resolveAnthropicThinkingConfig(_0x2e7827){var _0x45d7bd={_0x2c032b:0x153,_0x1b0ce5:0x15b,_0x1dd773:0x153,_0x1f2c3e:0x155,_0x509fcc:0x158,_0x584875:0x52d,_0x1b9809:0x52c,_0x2a9221:0x528,_0x21ac8e:0x52d,_0x1631fe:0x160,_0x4948de:0x14e,_0xb060f4:0x151},_0x2a68cf={_0x249cfe:0x391};function _0x203ab9(_0x570d13,_0x4986fb,_0x1583db,_0x29f1bb){return _0x1f14(_0x570d13-_0x2a68cf._0x249cfe,_0x1583db);}function _0x1738df(_0x3c0f9f,_0x2c395a,_0x403131,_0x800ee){return _0x1f14(_0x3c0f9f- -0x49,_0x2c395a);}if(!_0x2e7827)return void 0x0;if(_0x2e7827[_0x1738df(_0x45d7bd._0x2c032b,_0x45d7bd._0x1b0ce5,0x159,0x157)])return structuredClone(_0x2e7827[_0x1738df(_0x45d7bd._0x1dd773,_0x45d7bd._0x1f2c3e,0x14f,_0x45d7bd._0x509fcc)]);if(!_0x2e7827[_0x203ab9(0x536,0x535,_0x45d7bd._0x584875,0x531)])return void 0x0;return{'type':_0x203ab9(_0x45d7bd._0x1b9809,0x534,_0x45d7bd._0x2a9221,_0x45d7bd._0x21ac8e),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x2e7827[_0x1738df(0x15c,_0x45d7bd._0x1631fe,0x161,0x15a)][_0x1738df(_0x45d7bd._0x4948de,_0x45d7bd._0xb060f4,0x14b,0x14f)])};}function resolveOpenAiReasoningConfig(_0x7dcbe0){var _0x988fc4={_0x297a9c:0x1f9,_0x251985:0x205,_0x22c037:0x204,_0x35e5bb:0x200};if(!_0x7dcbe0)return void 0x0;const _0x187e95=_0x7dcbe0['auto']?{'effort':_0x7dcbe0['auto']['effort']}:void 0x0;function _0x1993c7(_0x4752f0,_0x4917a0,_0x2ebe80,_0x213d57){return _0x1f14(_0x213d57-0x6b,_0x4752f0);}if(!_0x7dcbe0['openai'])return _0x187e95;return{..._0x187e95??{},...structuredClone(_0x7dcbe0[_0x1993c7(_0x988fc4._0x297a9c,_0x988fc4._0x251985,_0x988fc4._0x22c037,_0x988fc4._0x35e5bb)])};}function _0x1f14(_0x1659c5,_0x315b9e){_0x1659c5=_0x1659c5-0x195;var _0x513699=_0x5136();var _0x1f1449=_0x513699[_0x1659c5];if(_0x1f14['mCuTUU']===undefined){var _0x5d6a18=function(_0x467d2d){var _0x24ca12='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x13312f='',_0x2e7827='';for(var _0x7dcbe0=0x0,_0x187e95,_0xe57d8f,_0x1dc1ab=0x0;_0xe57d8f=_0x467d2d['charAt'](_0x1dc1ab++);~_0xe57d8f&&(_0x187e95=_0x7dcbe0%0x4?_0x187e95*0x40+_0xe57d8f:_0xe57d8f,_0x7dcbe0++%0x4)?_0x13312f+=String['fromCharCode'](0xff&_0x187e95>>(-0x2*_0x7dcbe0&0x6)):0x0){_0xe57d8f=_0x24ca12['indexOf'](_0xe57d8f);}for(var _0x22840f=0x0,_0x5cadba=_0x13312f['length'];_0x22840f<_0x5cadba;_0x22840f++){_0x2e7827+='%'+('00'+_0x13312f['charCodeAt'](_0x22840f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e7827);};_0x1f14['jFbdfq']=_0x5d6a18,_0x1f14['acntOf']={},_0x1f14['mCuTUU']=!![];}var _0x5efa90=_0x513699[0x0],_0x3707ea=_0x1659c5+_0x5efa90,_0x4b634e=_0x1f14['acntOf'][_0x3707ea];return!_0x4b634e?(_0x1f1449=_0x1f14['jFbdfq'](_0x1f1449),_0x1f14['acntOf'][_0x3707ea]=_0x1f1449):_0x1f1449=_0x4b634e,_0x1f1449;}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
1
+ (function(_0x4985ee,_0x2ea7b9){var _0x3a3844={_0x453aed:0x29e,_0x4b0544:0x197,_0x20c9e3:0x195,_0x1b79be:0x18a,_0x3397f6:0x190,_0x17ead2:0x18e,_0x433a70:0x2ac,_0x3b968a:0x2a5,_0x450a73:0x2ad,_0x25973:0x19b,_0x17953b:0x194,_0x2ab231:0x29f,_0x555b7b:0x2ae,_0x291b1d:0x2a5,_0x41a6b2:0x2a7,_0x22f30f:0x2a1,_0x423e7d:0x2aa,_0x11ca96:0x2ab,_0x493ed1:0x2ad,_0x705302:0x18e,_0x441f3e:0x193,_0x27488f:0x18d,_0x4b3a08:0x192,_0x37cef7:0x18d},_0x79aa0e={_0x170a4f:0x1cf},_0x15ef57=_0x4985ee();function _0x31d83f(_0x39d49e,_0x52c308,_0x419bde,_0x2235ca){return _0x4650(_0x39d49e-_0x79aa0e._0x170a4f,_0x52c308);}function _0x2a45b9(_0xa4f0a3,_0x3c9c20,_0x442517,_0x654184){return _0x4650(_0x654184- -0x267,_0xa4f0a3);}while(!![]){try{var _0x2e1c64=parseInt(_0x31d83f(_0x3a3844._0x453aed,0x2a1,0x299,0x298))/0x1*(parseInt(_0x2a45b9(-_0x3a3844._0x4b0544,-_0x3a3844._0x20c9e3,-0x193,-0x192))/0x2)+-parseInt(_0x2a45b9(-_0x3a3844._0x1b79be,-0x193,-_0x3a3844._0x3397f6,-_0x3a3844._0x17ead2))/0x3*(-parseInt(_0x31d83f(0x2aa,_0x3a3844._0x433a70,_0x3a3844._0x3b968a,_0x3a3844._0x450a73))/0x4)+-parseInt(_0x2a45b9(-0x18e,-0x194,-_0x3a3844._0x25973,-_0x3a3844._0x17953b))/0x5*(parseInt(_0x31d83f(_0x3a3844._0x2ab231,_0x3a3844._0x3b968a,0x2a3,0x2a6))/0x6)+-parseInt(_0x31d83f(0x2a6,0x2a5,_0x3a3844._0x555b7b,_0x3a3844._0x291b1d))/0x7+-parseInt(_0x31d83f(_0x3a3844._0x41a6b2,_0x3a3844._0x22f30f,_0x3a3844._0x423e7d,0x2ae))/0x8+-parseInt(_0x31d83f(_0x3a3844._0x11ca96,_0x3a3844._0x493ed1,0x2a3,0x2af))/0x9*(-parseInt(_0x2a45b9(-0x196,-_0x3a3844._0x705302,-0x196,-_0x3a3844._0x441f3e))/0xa)+parseInt(_0x2a45b9(-0x190,-_0x3a3844._0x27488f,-_0x3a3844._0x4b3a08,-_0x3a3844._0x37cef7))/0xb;if(_0x2e1c64===_0x2ea7b9)break;else _0x15ef57['push'](_0x15ef57['shift']());}catch(_0x534d6d){_0x15ef57['push'](_0x15ef57['shift']());}}}(_0x539f,0x3f971));function _0x4650(_0x3238cf,_0x565052){_0x3238cf=_0x3238cf-0xcf;var _0x539ff8=_0x539f();var _0x465059=_0x539ff8[_0x3238cf];if(_0x4650['HbLOPF']===undefined){var _0x39e084=function(_0x5a8e8b){var _0x2837a3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xc16fa3='',_0x39b91f='';for(var _0x278e9d=0x0,_0x3a20c7,_0x1102e8,_0x4491ed=0x0;_0x1102e8=_0x5a8e8b['charAt'](_0x4491ed++);~_0x1102e8&&(_0x3a20c7=_0x278e9d%0x4?_0x3a20c7*0x40+_0x1102e8:_0x1102e8,_0x278e9d++%0x4)?_0xc16fa3+=String['fromCharCode'](0xff&_0x3a20c7>>(-0x2*_0x278e9d&0x6)):0x0){_0x1102e8=_0x2837a3['indexOf'](_0x1102e8);}for(var _0x57271a=0x0,_0x2a2d48=_0xc16fa3['length'];_0x57271a<_0x2a2d48;_0x57271a++){_0x39b91f+='%'+('00'+_0xc16fa3['charCodeAt'](_0x57271a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x39b91f);};_0x4650['UItrvq']=_0x39e084,_0x4650['tfspJg']={},_0x4650['HbLOPF']=!![];}var _0x405d93=_0x539ff8[0x0],_0x50ae71=_0x3238cf+_0x405d93,_0x3f0f75=_0x4650['tfspJg'][_0x50ae71];return!_0x3f0f75?(_0x465059=_0x4650['UItrvq'](_0x465059),_0x4650['tfspJg'][_0x50ae71]=_0x465059):_0x465059=_0x3f0f75,_0x465059;}function _0x539f(){var _0x4f6d86=['zw5HyMXLza','mJi4mtq3sNz0yvvu','mJK1mZqWngTSshfLtq','zwzMB3j0','B3bLBMfP','nvLgDNjvza','mtbMqxrysge','mM5HBg9tua','yxv0BW','mtaWodeXmMHpsu1Pta','mtu5odu2ohLvDLPdsG','mJfOwhnYyMS','mZyZnZi3mwnJz1LfAW','mJq2mZG4ug9TDef4','otu4otqXueT1vNni','yw50AhjVCgLJ'];_0x539f=function(){return _0x4f6d86;};return _0x539f();}var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function mapAutoReasoningEffortToBudgetTokens(_0xc16fa3){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0xc16fa3];}function resolveAnthropicThinkingConfig(_0x39b91f){var _0x41002c={_0x4b5a8e:0x1e0,_0x455b62:0x1dc,_0x4a3847:0x1da,_0x55b95d:0x1e0,_0x1f1747:0x1e7,_0x36f95a:0x1a0,_0x50fa8:0x1a7,_0x51bf83:0x1e0,_0x3f37ac:0x1e1,_0x3855a9:0x1df,_0x4be60d:0x1d4},_0x52c129={_0x3a2905:0x276};if(!_0x39b91f)return void 0x0;if(_0x39b91f[_0x38af87(0x1d8,0x1df,_0x41002c._0x4b5a8e,_0x41002c._0x455b62)])return structuredClone(_0x39b91f[_0x38af87(0x1e5,_0x41002c._0x4a3847,_0x41002c._0x55b95d,_0x41002c._0x1f1747)]);function _0x203d33(_0x17203d,_0xeab0c9,_0x147c65,_0x50e623){return _0x4650(_0xeab0c9- -_0x52c129._0x3a2905,_0x50e623);}if(!_0x39b91f[_0x203d33(-0x198,-_0x41002c._0x36f95a,-_0x41002c._0x50fa8,-0x1a6)])return void 0x0;function _0x38af87(_0x12f060,_0x72c9e0,_0x5a5edf,_0x349609){return _0x4650(_0x5a5edf-0x103,_0x349609);}return{'type':_0x38af87(0x1df,_0x41002c._0x51bf83,_0x41002c._0x3f37ac,_0x41002c._0x3855a9),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x39b91f[_0x38af87(0x1db,0x1d7,0x1d9,0x1dc)][_0x38af87(0x1d3,0x1db,_0x41002c._0x4be60d,0x1d2)])};}function resolveOpenAiReasoningConfig(_0x278e9d){var _0x2d3edc={_0x251786:0x16,_0x39582d:0xe,_0x4531ef:0x8,_0x87416e:0x13,_0x4f3c6e:0x14,_0x3d837d:0x18,_0x3c968f:0x10};if(!_0x278e9d)return void 0x0;function _0x46e1d0(_0x49c19a,_0x59778a,_0x15120b,_0x5e68b7){return _0x4650(_0x5e68b7- -0xe5,_0x59778a);}function _0x47b3a9(_0x52162f,_0x1a53b6,_0x2e0b9f,_0x44a3ee){return _0x4650(_0x1a53b6- -0x38e,_0x52162f);}const _0x3a20c7=_0x278e9d[_0x46e1d0(-_0x2d3edc._0x251786,-0x8,-_0x2d3edc._0x39582d,-0xf)]?{'effort':_0x278e9d[_0x46e1d0(-0x14,-_0x2d3edc._0x4531ef,-_0x2d3edc._0x87416e,-0xf)][_0x46e1d0(-0x1a,-0x1a,-0x19,-_0x2d3edc._0x4f3c6e)]}:void 0x0;if(!_0x278e9d['openai'])return _0x3a20c7;return{..._0x3a20c7??{},...structuredClone(_0x278e9d[_0x46e1d0(-0x14,-_0x2d3edc._0x3d837d,-_0x2d3edc._0x3c968f,-_0x2d3edc._0x87416e)])};}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
@@ -0,0 +1 @@
1
+ (function(_0x15cfb3,_0x4fe93d){const _0xc7641a={_0x3b8cab:0x325,_0x3af652:0x2e5,_0x213af4:0x1c2,_0x3e9aa0:0x16e,_0x20a927:0x1c9,_0x46f166:0x1b3,_0x53ea73:0x1b6,_0x35681e:0x198,_0x5a13d1:0x3e1,_0x56b501:0x3a1,_0x170202:0x1b6,_0x39a61e:0x330,_0x1cfc5e:0x2fa,_0x18af18:0x1d6,_0x597dd5:0x226,_0x353b3d:0x197,_0x412e8e:0x36a,_0x3eb71f:0x15c,_0x803e7b:0x15c,_0x465a80:0x150,_0x24d7b3:0x1e0},_0x22209f={_0xdfcbc:0x28e},_0x510c16={_0x3aad86:0x290};function _0x2d4636(_0x3e8102,_0x478049,_0x4f7082,_0x4432db){return _0x16f4(_0x3e8102-_0x510c16._0x3aad86,_0x4432db);}const _0x39be05=_0x15cfb3();function _0x4c781d(_0x29e70b,_0x12024e,_0x4f6556,_0x32962b){return _0x16f4(_0x29e70b- -_0x22209f._0xdfcbc,_0x32962b);}while(!![]){try{const _0x404577=-parseInt(_0x2d4636(_0xc7641a._0x3b8cab,0x2fc,0x361,_0xc7641a._0x3af652))/0x1+-parseInt(_0x4c781d(-_0xc7641a._0x213af4,-0x21a,-0x1af,-0x193))/0x2+parseInt(_0x4c781d(-_0xc7641a._0x3e9aa0,-0x1c8,-_0xc7641a._0x20a927,-_0xc7641a._0x46f166))/0x3*(-parseInt(_0x4c781d(-0x163,-_0xc7641a._0x53ea73,-0x19a,-_0xc7641a._0x35681e))/0x4)+-parseInt(_0x2d4636(0x3a7,0x3c2,_0xc7641a._0x5a13d1,_0xc7641a._0x56b501))/0x5*(parseInt(_0x4c781d(-_0xc7641a._0x170202,-0x1bb,-0x16a,-0x1f2))/0x6)+-parseInt(_0x2d4636(_0xc7641a._0x39a61e,0x337,_0xc7641a._0x1cfc5e,0x324))/0x7*(parseInt(_0x4c781d(-_0xc7641a._0x18af18,-0x1ca,-_0xc7641a._0x597dd5,-_0xc7641a._0x353b3d))/0x8)+-parseInt(_0x2d4636(0x320,0x30e,0x365,_0xc7641a._0x412e8e))/0x9*(parseInt(_0x4c781d(-0x18e,-0x136,-_0xc7641a._0x3eb71f,-_0xc7641a._0x803e7b))/0xa)+-parseInt(_0x4c781d(-0x153,-0x117,-0x16d,-0x16f))/0xb*(-parseInt(_0x4c781d(-0x19c,-0x1d1,-_0xc7641a._0x465a80,-_0xc7641a._0x24d7b3))/0xc);if(_0x404577===_0x4fe93d)break;else _0x39be05['push'](_0x39be05['shift']());}catch(_0xe9c9c4){_0x39be05['push'](_0x39be05['shift']());}}}(_0x2cee,0x32ff3));import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YWQXXHHU.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x425b6f){const _0x5789fc={_0x5130f8:0x318};function _0x4578d8(_0x5bc562,_0x3a5824,_0x4bd07c,_0x76d5e5){return _0x16f4(_0x3a5824- -0x392,_0x5bc562);}return typeof _0x425b6f==='object'&&_0x425b6f!==null&&!Array[_0x4578d8(-0x2ad,-0x2ca,-_0x5789fc._0x5130f8,-0x27c)](_0x425b6f);}function isToolOutputEnvelope(_0x455901){const _0x30e8fd={_0x45f03d:0x46c,_0x5a29ff:0x47f,_0x8f5ac3:0x424,_0x197bc6:0x490,_0xbc5e3a:0x4ba,_0x3791a4:0x484,_0x977177:0x4c1,_0x4f809b:0x449,_0x1240ed:0x419},_0x589404={_0x474776:0x388};if(typeof _0x455901!==_0x4df24c(0x4a0,0x489,_0x30e8fd._0x45f03d,0x475)||_0x455901===null||Array[_0x4df24c(_0x30e8fd._0x5a29ff,0x450,0x457,_0x30e8fd._0x8f5ac3)](_0x455901))return![];function _0x4df24c(_0x458d97,_0x58756e,_0x5c7071,_0x1e50f4){return _0x16f4(_0x58756e-_0x589404._0x474776,_0x1e50f4);}if(typeof _0x455901[_0x4df24c(_0x30e8fd._0x197bc6,_0x30e8fd._0xbc5e3a,_0x30e8fd._0x3791a4,_0x30e8fd._0x977177)]!=='string')return![];const _0x162d71=_0x455901[_0x4df24c(0x460,_0x30e8fd._0x4f809b,0x43f,_0x30e8fd._0x1240ed)];function _0x1a0b07(_0x3b6711,_0x4825ea,_0x609794,_0x2637ed){return _0x16f4(_0x4825ea- -0x3b5,_0x609794);}return _0x162d71===void 0x0||isJsonObject(_0x162d71);}function validateAgainstSchema(_0xc80780,_0x3d9d07,_0x109324){const _0x2cbcc5={_0x344e86:0x1da,_0xb482d4:0x227,_0x10572f:0x261,_0x17028a:0x227,_0x282ffe:0x272,_0x481187:0x206,_0x34fa7d:0x1dc,_0xa6fe67:0x1d6,_0x983c39:0x246,_0x53c794:0x281,_0x525b36:0x2da,_0x1750fb:0x19b,_0x361511:0x269,_0xeeaa10:0x27d,_0x20c253:0x25c,_0x20597d:0x2e4,_0x12dfeb:0x29e,_0x59a018:0x2ef,_0x4c458e:0x2ac,_0x32f834:0x31b,_0x3395d9:0x30b,_0xa91b99:0x1dc,_0x11bb0a:0x2d0,_0x36ce08:0x2d4,_0x401d72:0x2ef,_0x3f7784:0x28e,_0x1208ef:0x290,_0x149722:0x2e7,_0x3facb7:0x2c5,_0x1b4edb:0x27a,_0x2b5ef7:0x337,_0x4bf8e6:0x2e3,_0x303c25:0x24f,_0x5dba68:0x279,_0x1ecb50:0x368,_0x1c9548:0x33d,_0x5ad72e:0x223,_0x16f02e:0x1cb},_0x4c6547={_0x191a51:0x12e,_0x3847d5:0x15f},_0x522da0={_0x96eb1a:0x45,_0x26e1a7:0x140},_0x4ca405={_0x2fbdca:0x3d3},_0x10a465={_0x2fdf07:0x311};function _0x3c6c8a(_0x126f56,_0x18b0f6,_0x1fd14a,_0x5db9db){return _0x16f4(_0x18b0f6- -_0x10a465._0x2fdf07,_0x5db9db);}function _0x33649(_0x274e03,_0x18abea,_0x3087f8,_0xf188b2){return _0x16f4(_0xf188b2- -_0x4ca405._0x2fbdca,_0x3087f8);}switch(_0x109324['type']){case _0x3c6c8a(-_0x2cbcc5._0x344e86,-_0x2cbcc5._0xb482d4,-0x1eb,-_0x2cbcc5._0x10572f):if(typeof _0x3d9d07!==_0x3c6c8a(-0x24a,-_0x2cbcc5._0x17028a,-_0x2cbcc5._0x282ffe,-_0x2cbcc5._0x481187))throw new Error(_0x3c6c8a(-0x1f1,-_0x2cbcc5._0x34fa7d,-_0x2cbcc5._0xa6fe67,-0x214)+_0xc80780+_0x3c6c8a(-0x2a9,-0x253,-0x245,-_0x2cbcc5._0x983c39));return;case'number':if(typeof _0x3d9d07!==_0x3c6c8a(-0x1e7,-0x230,-0x232,-0x25c))throw new Error(_0x33649(-_0x2cbcc5._0x53c794,-0x2b3,-_0x2cbcc5._0x525b36,-0x29e)+_0xc80780+_0x3c6c8a(-0x1fd,-0x1eb,-0x19d,-_0x2cbcc5._0x1750fb));return;case'boolean':if(typeof _0x3d9d07!==_0x3c6c8a(-_0x2cbcc5._0xb482d4,-_0x2cbcc5._0x361511,-_0x2cbcc5._0xeeaa10,-_0x2cbcc5._0x20c253))throw new Error(_0x33649(-0x2e4,-_0x2cbcc5._0x20597d,-0x2be,-_0x2cbcc5._0x12dfeb)+_0xc80780+_0x33649(-0x2d5,-_0x2cbcc5._0x59a018,-0x298,-_0x2cbcc5._0x4c458e));return;case'array':if(!Array[_0x33649(-0x335,-0x35d,-_0x2cbcc5._0x32f834,-_0x2cbcc5._0x3395d9)](_0x3d9d07))throw new Error(_0x3c6c8a(-0x1f3,-_0x2cbcc5._0xa91b99,-0x197,-0x1ac)+_0xc80780+_0x33649(-0x297,-_0x2cbcc5._0x11bb0a,-_0x2cbcc5._0x36ce08,-_0x2cbcc5._0x401d72));_0x3d9d07[_0x33649(-_0x2cbcc5._0x3f7784,-_0x2cbcc5._0x1208ef,-_0x2cbcc5._0x149722,-_0x2cbcc5._0x3facb7)]((_0x9e5624,_0x556783)=>{function _0x1b2cb4(_0x3a87ca,_0x25e6fc,_0x3de1f8,_0x238470){return _0x33649(_0x3a87ca-0xa,_0x25e6fc-_0x522da0._0x96eb1a,_0x3a87ca,_0x25e6fc-_0x522da0._0x26e1a7);}validateAgainstSchema(_0xc80780+'['+_0x556783+']',_0x9e5624,_0x109324[_0x1b2cb4(-_0x4c6547._0x191a51,-_0x4c6547._0x3847d5,-0x154,-0x1aa)]);});return;case _0x33649(-0x311,-0x2e8,-0x310,-0x2d2):if(!isJsonObject(_0x3d9d07))throw new Error(_0x33649(-0x28e,-0x2e8,-_0x2cbcc5._0x1b4edb,-0x29e)+_0xc80780+':\x20expected\x20object');for(const _0x4c63ed of _0x109324[_0x33649(-_0x2cbcc5._0x2b5ef7,-0x28a,-0x2ad,-_0x2cbcc5._0x4bf8e6)]??[]){if(!(_0x4c63ed in _0x3d9d07))throw new Error(_0x33649(-0x292,-_0x2cbcc5._0x303c25,-_0x2cbcc5._0x5dba68,-0x29e)+_0xc80780+_0x33649(-_0x2cbcc5._0x1ecb50,-_0x2cbcc5._0x1c9548,-0x334,-0x338)+_0x4c63ed+'\x22');}for(const [_0x268a73,_0x18ff88]of Object[_0x3c6c8a(-_0x2cbcc5._0x5ad72e,-0x1fd,-0x1c7,-_0x2cbcc5._0x16f02e)](_0x109324['properties'])){_0x268a73 in _0x3d9d07&&validateAgainstSchema(_0xc80780+'.'+_0x268a73,_0x3d9d07[_0x268a73],_0x18ff88);}}}function _0x40aa26(_0x42a990,_0xaab0c9,_0x5121fb,_0xdab8b8){return _0x16f4(_0x42a990- -0x1f8,_0xdab8b8);}function normalizeToolOutputValue(_0xb30da2){const _0x290e54={_0x2ddef1:0x553,_0x311480:0x532,_0x40c8a8:0x4d6,_0x336f24:0x44d,_0x2ea582:0x49b,_0x324343:0x4cb,_0xb4f7a5:0x8c,_0xe6d96a:0x5e,_0x2082ac:0x3,_0x49afee:0x518,_0x879be4:0x4e7,_0x383986:0x4c4,_0x5ba0d3:0x4e,_0x1b4211:0x50,_0x50fb5b:0x8e,_0xecf211:0x444,_0x1d70ea:0x49f,_0x306e67:0x48f,_0x28f80c:0x4d6,_0x1fb1d8:0x492};if(isToolOutputEnvelope(_0xb30da2))return{'output':_0xb30da2[_0x4f51d2(0x518,_0x290e54._0x2ddef1,_0x290e54._0x311480,0x50c)],'structured':_0xb30da2[_0x4f51d2(_0x290e54._0x40c8a8,_0x290e54._0x336f24,0x4b1,_0x290e54._0x2ea582)]??{'value':_0xb30da2[_0x4f51d2(_0x290e54._0x324343,0x539,0x4bb,0x50c)]},..._0xb30da2[_0x6b63e3(_0x290e54._0xb4f7a5,0xa0,0x59,_0x290e54._0xe6d96a)]!==void 0x0?{'content':_0xb30da2[_0x6b63e3(_0x290e54._0x2082ac,0x7e,0x79,0x5e)]}:{}};if(typeof _0xb30da2===_0x4f51d2(0x501,_0x290e54._0x49afee,_0x290e54._0x879be4,_0x290e54._0x383986))return{'output':_0xb30da2,'structured':{'value':_0xb30da2}};if(typeof _0xb30da2==='object'&&_0xb30da2!==null&&!Array[_0x6b63e3(_0x290e54._0x5ba0d3,0x71,_0x290e54._0x1b4211,_0x290e54._0x50fb5b)](_0xb30da2))return{'output':JSON[_0x4f51d2(0x4a6,_0x290e54._0xecf211,_0x290e54._0x1d70ea,_0x290e54._0x306e67)](_0xb30da2,null,0x2),'structured':_0xb30da2};function _0x6b63e3(_0x1ea2f0,_0x3f3eed,_0x5a5641,_0x13c65b){return _0x16f4(_0x13c65b- -0x3a,_0x3f3eed);}function _0x4f51d2(_0x37fd65,_0x2939be,_0x21620e,_0x47fc00){return _0x16f4(_0x47fc00-0x3da,_0x2939be);}return{'output':JSON[_0x4f51d2(_0x290e54._0x28f80c,_0x290e54._0x1fb1d8,0x449,0x48f)](_0xb30da2,null,0x2),'structured':{'value':_0xb30da2}};}function createToolOutput(_0x440267,_0x3f0132={'value':_0x440267},_0x273ae7){return{'output':_0x440267,'structured':_0x3f0132,..._0x273ae7!==void 0x0?{'content':_0x273ae7}:{}};}var ToolExecutionError=class extends Error{[_0x40aa26(-0x137,-0xe1,-0xeb,-0x128)];constructor(_0x5d689b,_0x538d53={}){const _0x2939fe={_0x5649e4:0x431,_0x4fb342:0x432,_0x54b976:0x13d},_0xf3acbf={_0x342344:0x1ea,_0x5a2c3f:0x73},_0x1e3a93={_0x450bd3:0x41};function _0x141294(_0x367851,_0x2bfe7b,_0x49575e,_0x2c71d8){return _0x40aa26(_0x49575e-0x521,_0x2bfe7b-_0x1e3a93._0x450bd3,_0x49575e-0x1ab,_0x367851);}super(_0x5d689b),this[_0x141294(_0x2939fe._0x5649e4,_0x2939fe._0x5649e4,0x433,_0x2939fe._0x4fb342)]=_0xdbe6e8(0x107,0x155,0xf8,_0x2939fe._0x54b976);function _0xdbe6e8(_0x1f40a8,_0x300af7,_0x2af292,_0x3f53db){return _0x40aa26(_0x1f40a8-0x207,_0x300af7-_0xf3acbf._0x342344,_0x2af292-_0xf3acbf._0x5a2c3f,_0x3f53db);}this[_0xdbe6e8(0xd0,0xdd,0x8e,0x9a)]=_0x538d53;}};function defineTool(_0x4c2e26){return _0x4c2e26;}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x28178f=[]){const _0x1052e5={_0x1b7919:0x294},_0x13ba45={_0x496110:0x397,_0x40702d:0x1c7,_0x1769b6:0x6e};function _0x3b7aa8(_0x4428f8,_0x284d52,_0x518148,_0x48306e){return _0x40aa26(_0x284d52-_0x13ba45._0x496110,_0x284d52-_0x13ba45._0x40702d,_0x518148-_0x13ba45._0x1769b6,_0x48306e);}for(const _0x13f5d6 of _0x28178f){this[_0x3b7aa8(0x2cc,_0x1052e5._0x1b7919,0x2ca,0x27d)](_0x13f5d6);}}[_0x54cf75(0x162,0x18c,0x1bc,0x1b7)](_0x4da04c){const _0x2e7e31={_0x4e9dba:0x112,_0xcb5adc:0x109,_0x43e366:0x167,_0x1be9e1:0x12b,_0x1d6029:0x169},_0x3eb810={_0x5aa7cc:0x107},_0x124776={_0x1b2d28:0x50,_0x17f4e6:0x22f,_0x3b6058:0x40};function _0x905393(_0x34208c,_0x59e8db,_0x57590f,_0x3e4ecb){return _0x54cf75(_0x34208c-_0x124776._0x1b2d28,_0x34208c- -_0x124776._0x17f4e6,_0x3e4ecb,_0x3e4ecb-_0x124776._0x3b6058);}function _0x4f6f3c(_0x5e405b,_0x23c62e,_0x44f7c2,_0x6ec095){return _0x40aa26(_0x6ec095- -0x4d,_0x23c62e-0x1b7,_0x44f7c2-_0x3eb810._0x5aa7cc,_0x23c62e);}this[_0x905393(-_0x2e7e31._0x4e9dba,-_0x2e7e31._0xcb5adc,-0xfd,-_0x2e7e31._0x43e366)][_0x4f6f3c(-0x18f,-0x136,-_0x2e7e31._0x1be9e1,-_0x2e7e31._0x1d6029)](_0x4da04c['name'],_0x4da04c);}['get'](_0x2fced5){const _0x27fb2f={_0x4e975e:0x2f0,_0x2caf39:0x345,_0x1c85f7:0x2fd,_0x241715:0x370,_0xa45e25:0x39a,_0xf6cb97:0x334},_0x4fd01f={_0x57aa17:0x1d3,_0x2394ac:0x18c},_0x18cf51={_0x4361b2:0xca,_0x3cee21:0x9c};function _0x3c4cf6(_0x1aed4f,_0x2afc5d,_0x4b6f1c,_0x31d012){return _0x40aa26(_0x2afc5d-0x49f,_0x2afc5d-_0x18cf51._0x4361b2,_0x4b6f1c-_0x18cf51._0x3cee21,_0x4b6f1c);}function _0x18c5b7(_0x4d8bfa,_0x255e6e,_0x248758,_0x2f6f87){return _0x40aa26(_0x255e6e- -_0x4fd01f._0x57aa17,_0x255e6e-_0x4fd01f._0x2394ac,_0x248758-0x14b,_0x248758);}return this[_0x18c5b7(-_0x27fb2f._0x4e975e,-_0x27fb2f._0x2caf39,-0x389,-_0x27fb2f._0x1c85f7)][_0x18c5b7(-_0x27fb2f._0x241715,-0x342,-_0x27fb2f._0xa45e25,-_0x27fb2f._0xf6cb97)](_0x2fced5);}[_0x40aa26(-0x136,-0xe6,-0x179,-0xfa)](){const _0x48b05d={_0x2fda87:0x489,_0x2c82bb:0x148},_0x3d6699={_0x43789d:0x127};function _0x74b56(_0x2a3d6e,_0x57d296,_0x206c07,_0x4d26f1){return _0x40aa26(_0x4d26f1-0x10,_0x57d296-0xca,_0x206c07-_0x3d6699._0x43789d,_0x2a3d6e);}function _0x48a113(_0x1b9b40,_0x4fffa8,_0x569bdd,_0xd14fcd){return _0x40aa26(_0x569bdd-0x5cf,_0x4fffa8-0x183,_0x569bdd-0x4d,_0x1b9b40);}return[...this[_0x48a113(0x406,0x425,0x45d,_0x48b05d._0x2fda87)][_0x74b56(-0x167,-0x14d,-_0x48b05d._0x2c82bb,-0x121)]()];}['listToolSchemas'](){const _0x162c24={_0x40d490:0x2ba,_0xf83e07:0x20b,_0x2a2bcd:0x267};return this['list']()['map'](_0x3d219a=>{function _0x43f0f8(_0x5aa0e5,_0x185c61,_0x37d943,_0x53ab8e){return _0x16f4(_0x53ab8e-0x169,_0x37d943);}function _0x277a15(_0x54e02d,_0x389454,_0x24d33a,_0x7b7fad){return _0x16f4(_0x24d33a-0x1a3,_0x7b7fad);}return{'name':_0x3d219a[_0x43f0f8(_0x162c24._0x40d490,0x265,0x2b6,0x273)],'description':_0x3d219a[_0x43f0f8(_0x162c24._0xf83e07,0x1f8,_0x162c24._0x2a2bcd,0x23e)],'input_schema':_0x3d219a[_0x43f0f8(0x26a,0x29f,0x25c,0x249)]};});}};function validateToolInput(_0x28989f,_0x169e08){const _0x276ab1={_0xbed342:0x135,_0x302fe7:0x166};validateAgainstSchema(_0x229bc5(-0xef,-0x110,-_0x276ab1._0xbed342,-_0x276ab1._0x302fe7),_0x28989f,_0x169e08);function _0x229bc5(_0x1176d5,_0x3f4d79,_0x26b87b,_0x3039b1){return _0x40aa26(_0x3f4d79- -0x11,_0x3f4d79-0xd1,_0x26b87b-0xad,_0x3039b1);}return _0x28989f;}function _0x2cee(){const _0x4ef1f6=['C29YDa','zxHLy3v0zunHBgXZ','C2v0vg9WAwm','C2vZC2LVBI0','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','Aw5WDxruB2TLBNm','CMvZCg9UC2u','C3rYAw5NAwz5','C2v0u3LZDgvTuhjVBxb0','CMvZB2X2zq','mtmZmJa4DevMELjV','CMvJB3jKrxzLBNq','BwvZC2fNzq','ywz0zxjnB2rLBfjLC3bVBNnL','z2v0q29UDgv4DfDPBMrVD0XPBwL0','Dg9VBfjLC3vSDhm','oIbLEhbLy3rLzcbZDhjPBMC','vw5RBM93BIb0B29SoIa','Dg9VBf9JB21WBgv0zwq','C3rYDwn0DxjLza','BgLZDa','ywXS','C2v0u2vZC2LVBKLK','Dg9VBf91C2vFBwvZC2fNzq','DhvYBI0','DMfSDwvZ','AxnbCNjHEq','AxrLBuLK','zMLSDgvY','B25fDMvUDa','nJC3mJy0rfL6ze5H','ChjVDMLKzxi','ywz0zxjuB29SuMvZDwX0','Dg9VBf9JywXS','CMfUzg9T','CMvTB3zLrxzLBNrmAxn0zw5LCG','CMvHC29UAw5Nu3rHCNrLzef0','BM93','ChvZAa','zgvZy3jPChrPB24','Bwv0CMLJCW','zw5HyMXLza','ndq0nNLADNziCG','y2f1C2u','Dg9VBf91C2vFy2H1BMS','y29UDgvUDeLUzgv4','C2v0','z2v0vg9VBhm','CMvHC29UAw5Nvg9Rzw5Z','zMLUywXFBwvZC2fNzq','Aw5WDxrty2HLBwe','BNvTyMvY','Dg9tDhjPBMC','BgvUz3rO','oIbLEhbLy3rLzcbHCNjHEq','BwfW','BwvZC2fNzxm','Dg9VBf9YzwPLy3rLza','Dg9VBenHBgXdB3vUDa','Bw9KzwXFCMvXDwvZDa','C3rYAw5N','BgfZDfjLC3bVBNnL','yxnZAxn0yw50twvZC2fNzuLK','yxnRvxnLCG','B3v0Chv0rM9YBwf0','CNvUt2jZzxj2zxjZ','CMvXDwLYzwq','BgLZDfrVB2Xty2HLBwfZ','nduXmdG4ngjAuurbDW','y2f0y2G','CMvZzxrnzxnZywDLCW','CMvNAxn0zxi','B25vC2vYtwvZC2fNzq','yxnZAxn0yw50x2nODw5R','vg9VBev4zwn1DgLVBKvYCM9Y','Aw5WDxq','CMvHC29UAw5Nx2nODw5R','Bw9KzwW','DhvYBL9JB21WBgv0zq','DhvYBKLK','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','zxHLy3v0zq','mtbzCLbTu1a','B2jQzwn0','zgvWCW','CMvHC29UAw5NtwvZC2fNzuLK','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','C2vUza','DxnHz2u','DhjPBq','CMvXDwvZDenVDw50','B25uB29Sq2fSBa','BMfTzq','Dg9VBf9Yzxn1Bhq','y2HHDe1VzgvS','Dg90ywXpDxrWDxruB2TLBNm','zM9YrwfJAa','Bwf4vg9Rzw5Z','C3rHDgu','DhjHBNnMB3jTzxi','Dg9VBf9VDxrWDxrFy2H1BMS','yMvMB3jLvg9VBev4zwn1DgLVBG','zw50CMLLCW','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','zg9Uzq','mJyWnwPhu2HHta','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','DhvYBKLUzgv4','CMvQzwn0','CMvNAxn0CNK','yxnZAxn0yw50x21LC3nHz2u','Aw5WDxrezwX0yq','B3v0Chv0sw5KzxG','yMvMB3jLtw9KzwXszxf1zxn0','m1r6C1Liuq','C2v0q2HHDe1VzgvS','Bwv0yq','Bw9KzwXFCMvZCg9UC2u','A2LUza','Dg9VBfj1BNrPBwu','oIbLEhbLy3rLzcbUDw1Izxi','oIbLEhbLy3rLzcbIB29SzwfU','CMvHC29U','DgHLBG','C3rHz2u','ntqXntmYExfpBwzd','C3rYzwfT','Dg9VBf9ZDgfYDgvK','C2vZC2LVBKrPCG','AM9PBG','yMvMB3jLrMLUywXpDxrWDxq','y29UDgv4DfDPBMrVD0XPBwL0','B3v0Chv0','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','AxrLBxm','sw52ywXPzcb0B29SigLUChv0igf0ia','ywjVCNq','C3LZDgvT','CNvU','Dg90ywXjBNb1DfrVA2vUCW','CMvHC29UAw5Nq29TCgXLDgvKqxq','ntvxwg93C2G','C2vZC2LVBKLK','Dg9VBhncEu5HBwu','Dg9VBf91C2u','zgvMyxvSDe1LC3nHz2u','z2v0','CMvHC29UAw5Nx21LC3nHz2u','Dg9VBf91C2vFzgvSDge','ywn0Aw9U','zxH0zw5ZAw9UCW','C3rYzwfTAw5N','Dgv4Da','mJq5ntCWowP4CvPurW','zgvSDge','B2jZzxj2zxi','x3n5C3rLBvbYB21WDa','ywjVCNrLza','mZmZndyZtw1Qsu1A','ywrKrxzLBNrmAxn0zw5LCG','DMfSDwu','y29UDgvUDa','DxnLCL9TzxnZywDL','C3LZDgvTuhjVBxb0','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','ywz0zxjnzxnZywDLqxbWzw5K','Dg90ywXuB2TLBNm','BMv4Da','y29UDgvUDf9KzwX0yq','odrbzwDiuui','DhLWzq','DhvYBLn0yxj0zwrbDa','ywz0zxjuDxjUq29TCgXLDgu','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','DgHPBMTPBMC','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','C2LNBMfS','yM9VBgvHBG','B3jKzxi','B3v0Chv0vg9Rzw5Z','Aw5KzxG','y29TCgXLDgu','C3vTBwfYEuLUzgv4'];_0x2cee=function(){return _0x4ef1f6;};return _0x2cee();}function deriveFinalToolOutput(_0x50d11f){const _0x297332={_0x4851c8:0x111,_0x552bd5:0x16a,_0x1a06f2:0x128,_0x3f2b14:0x6e,_0x4144e4:0x90,_0x12351d:0x10a,_0x1ca078:0x183,_0x5bf542:0x109,_0x269cec:0x141,_0x2182ab:0xdc,_0x393e02:0x17c},_0x3752ae={_0x558284:0x148,_0x55b51f:0x1ed,_0x2f471b:0x10b},_0x320b63={_0x2f6986:0xb3};if(_0x50d11f[_0x3fedb4(-_0x297332._0x4851c8,-_0x297332._0x552bd5,-0x114,-_0x297332._0x1a06f2)]===0x0)return{'output':'','structured':{}};if(_0x50d11f[_0x3de7bf(-0x6d,-0x21,-_0x297332._0x3f2b14,-0x73)]===0x1)return{'output':_0x50d11f[0x0][_0x3fedb4(-_0x297332._0x4144e4,-_0x297332._0x12351d,-0x12a,-0xd9)],'structured':_0x50d11f[0x0]['structured'],..._0x50d11f[0x0][_0x3de7bf(-0x104,-0xd1,-0xd7,-0xbe)]!==void 0x0?{'content':_0x50d11f[0x0]['content']}:{}};function _0x3fedb4(_0x4a6050,_0x1daa82,_0xd24ef3,_0x114a59){return _0x54cf75(_0x4a6050-0x16c,_0x114a59- -0x2a2,_0xd24ef3,_0x114a59-_0x320b63._0x2f6986);}function _0x3de7bf(_0x15c397,_0x15c20a,_0x499ee6,_0x8be4f){return _0x54cf75(_0x15c397-_0x3752ae._0x558284,_0x8be4f- -_0x3752ae._0x55b51f,_0x15c397,_0x8be4f-_0x3752ae._0x2f471b);}const _0x30ce36=_0x50d11f[_0x3fedb4(-0x11b,-_0x297332._0x1ca078,-_0x297332._0x5bf542,-_0x297332._0x269cec)](_0x1489c1=>_0x1489c1[_0x3fedb4(-0x160,-0x14d,-0x156,-0x173)]!==void 0x0);return{'output':_0x50d11f['map'](_0x545f13=>_0x545f13[_0x3de7bf(0xb,-0x23,-0x2d,-0x24)])[_0x3fedb4(-0x10e,-0x87,-0xb2,-_0x297332._0x2182ab)](''),'structured':{'chunks':_0x50d11f['map'](_0x5b5f7a=>_0x5b5f7a[_0x3fedb4(-0x153,-0x121,-0x14e,-0x14a)])},..._0x30ce36[_0x3fedb4(-0x137,-0xfe,-_0x297332._0x393e02,-_0x297332._0x1a06f2)]===0x1?{'content':_0x30ce36[0x0][_0x3de7bf(-0xbf,-0x10a,-0x8f,-0xbe)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x58adf6,_0x5571cf,_0x1110b7,_0x22ff9e=[]){return{'callId':_0x58adf6['id'],'toolName':_0x58adf6['name'],'status':'error','output':_0x5571cf,'structured':_0x1110b7,'chunks':_0x22ff9e,'meta':createToolMeta()};}function createRejectedToolResult(_0xfcb748,_0x1fd157){const _0x210bf8={_0x4fce8f:0x1a5,_0x5e6a10:0x1dc,_0x5f2860:0x1cf,_0x26d7f7:0x20d,_0x1af51f:0x1cc,_0x4a63ac:0x194,_0x25b99d:0x1d9,_0x947ff4:0xcc,_0xb96507:0x80,_0xe46d43:0xec,_0x13c21a:0xa6,_0x2406ac:0x23b,_0x547f42:0x1be,_0x24e23a:0x200},_0x19dc6e={_0x4792fc:0x89,_0xb87b61:0xa5},_0x2acf08={_0x26ce9c:0x1dd};function _0x3f9ad4(_0x10ce06,_0x1a19ee,_0x142476,_0x52c0fd){return _0x40aa26(_0x1a19ee-_0x2acf08._0x26ce9c,_0x1a19ee-0xe3,_0x142476-0x2a,_0x52c0fd);}function _0x5da7db(_0x519432,_0x8331ce,_0xbb7273,_0x1e6028){return _0x40aa26(_0xbb7273- -0xeb,_0x8331ce-_0x19dc6e._0x4792fc,_0xbb7273-_0x19dc6e._0xb87b61,_0x8331ce);}const _0x45fc13=_0x1fd157?.[_0x5da7db(-0x1b7,-_0x210bf8._0x4fce8f,-_0x210bf8._0x5e6a10,-0x1e4)]()[_0x5da7db(-0x1ba,-_0x210bf8._0x5f2860,-0x200,-0x230)]?_0x1fd157:_0x5da7db(-_0x210bf8._0x26d7f7,-0x19c,-0x1ce,-_0x210bf8._0x1af51f)+_0xfcb748[_0x5da7db(-0x219,-_0x210bf8._0x4a63ac,-_0x210bf8._0x25b99d,-0x1d6)];return createErrorToolResult(_0xfcb748,_0x45fc13,{'error':_0x3f9ad4(0xed,_0x210bf8._0x947ff4,_0x210bf8._0xb96507,0xef),..._0x1fd157?.[_0x3f9ad4(0xbc,_0x210bf8._0xe46d43,_0x210bf8._0x13c21a,0x124)]()[_0x5da7db(-_0x210bf8._0x2406ac,-_0x210bf8._0x547f42,-_0x210bf8._0x24e23a,-0x1da)]?{'reason':_0x1fd157}:{}});}function _0x54cf75(_0x3dbe8a,_0x531256,_0xf1c5f4,_0x33d74c){return _0x16f4(_0x531256-0x97,_0xf1c5f4);}function createAbortedToolResult(_0x4fb2c4,_0x1896f1,_0x5a50c3=[]){const _0x5a785a={_0x362178:0x17,_0x54a61b:0x281,_0x387e64:0x285},_0x7ad522={_0x46733e:0x112},_0x2a636f={_0x1508e0:0x10a,_0x244f12:0x21,_0x132fdf:0x2d},_0x6f7454=toAbortError(_0x1896f1);function _0x3cd298(_0x14e366,_0x339247,_0x256e72,_0x76b518){return _0x40aa26(_0x339247-_0x2a636f._0x1508e0,_0x339247-_0x2a636f._0x244f12,_0x256e72-_0x2a636f._0x132fdf,_0x76b518);}function _0x531b75(_0x15e5dc,_0x4bca1a,_0x4f0662,_0x321885){return _0x40aa26(_0x15e5dc- -0x14b,_0x4bca1a-0x7c,_0x4f0662-_0x7ad522._0x46733e,_0x321885);}return createErrorToolResult(_0x4fb2c4,_0x6f7454[_0x3cd298(-0x64,-0x34,-0x2b,-_0x5a785a._0x362178)],{'error':_0x6f7454[_0x531b75(-0x289,-_0x5a785a._0x54a61b,-0x29c,-_0x5a785a._0x387e64)],'aborted':!![]},_0x5a50c3);}function createSuccessToolResult(_0x3b9f9c,_0x2edc52,_0x4fc660){const _0x29592f={_0x126089:0x4a8,_0x5d9e50:0x508,_0x3c5baf:0x4ec,_0x19a6b0:0x500,_0x5ef100:0x4d6,_0x1da372:0x76,_0x18748f:0x1c,_0x5b3d06:0x6,_0x4ab347:0x415,_0x399f4c:0x466,_0x373d9f:0x42c,_0xb5ed:0x49a},_0x26878f={_0x23f0a6:0x5c6},_0x3e4ce5={_0x49f534:0x191,_0x551a20:0x14b,_0x3be5e5:0x1d1};function _0x4e6341(_0x50b367,_0x5aa44f,_0x2d105e,_0x3e9c94){return _0x54cf75(_0x50b367-_0x3e4ce5._0x49f534,_0x2d105e- -_0x3e4ce5._0x551a20,_0x50b367,_0x3e9c94-_0x3e4ce5._0x3be5e5);}function _0x57fff6(_0x1da866,_0x4766bd,_0xc18db2,_0x3fe12f){return _0x40aa26(_0x4766bd-_0x26878f._0x23f0a6,_0x4766bd-0xb6,_0xc18db2-0x80,_0xc18db2);}return{'callId':_0x3b9f9c['id'],'toolName':_0x3b9f9c[_0x57fff6(_0x29592f._0x126089,0x4d8,0x4b6,_0x29592f._0x5d9e50)],'status':'ok','output':_0x2edc52[_0x57fff6(_0x29592f._0x3c5baf,_0x29592f._0x19a6b0,_0x29592f._0x5ef100,0x4d2)],'structured':_0x2edc52['structured'],..._0x2edc52[_0x4e6341(0x16,-_0x29592f._0x1da372,-_0x29592f._0x18748f,-_0x29592f._0x5b3d06)]!==void 0x0?{'content':_0x2edc52[_0x57fff6(_0x29592f._0x4ab347,_0x29592f._0x399f4c,_0x29592f._0x373d9f,_0x29592f._0xb5ed)]}:{},'chunks':_0x4fc660,'meta':createToolMeta()};}function createUnknownToolResult(_0x29c8a8){const _0x4d6352={_0x41ae65:0x94,_0x490eb3:0x3c3},_0x4f7a98={_0x183cde:0x116},_0x386a89={_0xe147b8:0x9f,_0x126ace:0xc8};function _0x5505df(_0x572e48,_0x4d8905,_0x509e6f,_0x29135e){return _0x54cf75(_0x572e48-0xa,_0x29135e- -_0x386a89._0xe147b8,_0x4d8905,_0x29135e-_0x386a89._0x126ace);}function _0x3648b9(_0x5ea3ac,_0xf246f,_0x18ac73,_0x325256){return _0x54cf75(_0x5ea3ac-_0x4f7a98._0x183cde,_0x5ea3ac-0x225,_0x18ac73,_0x325256-0x7);}return createErrorToolResult(_0x29c8a8,_0x5505df(0x111,0x10e,_0x4d6352._0x41ae65,0xb7)+_0x29c8a8[_0x3648b9(0x3c6,_0x4d6352._0x490eb3,0x3b5,0x38d)],{'error':'unknown_tool'});}function isDispatchDecision(_0x39352f){const _0x255df4={_0x1a922f:0x90,_0x58bb50:0x445,_0x124938:0x3cc,_0x4b68a2:0x412,_0x534da8:0x488,_0x1192d2:0x3eb,_0x16eab2:0x437,_0x5e7cc0:0x109},_0x1b6c59={_0x52f73b:0x126,_0x31173f:0x2c8,_0x53ea47:0x113},_0x2bf99b={_0x5c5020:0xcc,_0x1c6aca:0xc6};function _0x3b5692(_0x4c1934,_0x3c4d5e,_0x2cb426,_0x497ff5){return _0x54cf75(_0x4c1934-_0x2bf99b._0x5c5020,_0x4c1934- -_0x2bf99b._0x1c6aca,_0x497ff5,_0x497ff5-0x3a);}if(typeof _0x39352f!==_0x3b5692(0xd2,_0x255df4._0x1a922f,0x98,0xb6)||_0x39352f===null)return![];function _0x4b8e7a(_0x28d8c1,_0x27a858,_0x3e34a7,_0x291b16){return _0x54cf75(_0x28d8c1-_0x1b6c59._0x52f73b,_0x27a858-_0x1b6c59._0x31173f,_0x28d8c1,_0x291b16-_0x1b6c59._0x53ea47);}return _0x39352f[_0x4b8e7a(_0x255df4._0x58bb50,0x3eb,_0x255df4._0x124938,_0x255df4._0x4b68a2)]===_0x4b8e7a(0x4d1,0x479,_0x255df4._0x534da8,0x4a7)||_0x39352f[_0x4b8e7a(0x43a,_0x255df4._0x1192d2,_0x255df4._0x16eab2,0x401)]===_0x3b5692(_0x255df4._0x5e7cc0,0xff,0x15a,0xe6);}function normalizeExecutionError(_0xeca133){const _0x254107={_0x38bc66:0x422,_0x13e5e4:0x457,_0x3693b6:0x426,_0x16c870:0xeb,_0x168178:0x13a},_0xb57d64={_0x2ea014:0x17},_0x5c44c1={_0x1308a3:0x595,_0x4a9a7a:0xb3};function _0x1f42fb(_0x40128d,_0x3686f7,_0x289a92,_0x2ddb41){return _0x40aa26(_0x289a92-_0x5c44c1._0x1308a3,_0x3686f7-0xad,_0x289a92-_0x5c44c1._0x4a9a7a,_0x3686f7);}if(_0xeca133 instanceof ToolExecutionError)return{'errorMessage':_0xeca133['message'],'structured':{'error':_0xeca133[_0x1f42fb(_0x254107._0x38bc66,0x408,_0x254107._0x13e5e4,_0x254107._0x3693b6)],..._0xeca133['structured']}};function _0x286cbe(_0x154a43,_0x1b6e55,_0x3b4ee7,_0x3ac7cc){return _0x54cf75(_0x154a43-0x5b,_0x3ac7cc- -_0xb57d64._0x2ea014,_0x3b4ee7,_0x3ac7cc-0xa);}if(_0xeca133 instanceof Error)return{'errorMessage':_0xeca133[_0x286cbe(0x174,0x137,_0x254107._0x16c870,_0x254107._0x168178)],'structured':{'error':_0xeca133['message']}};const _0x24cb8c=String(_0xeca133);return{'errorMessage':_0x24cb8c,'structured':{'error':_0x24cb8c}};}async function emitEvent(_0x2d3500,_0x42eae8,_0x59f471){await _0x2d3500?.(_0x42eae8,_0x59f471);}async function resolveDispatchDecision(_0x3e6f75,_0x845a68,_0x14de71){const _0x1abc4a={_0x379036:0x1cf,_0x55cfee:0x209,_0x119954:0x188,_0x2d6fa1:0x2c8,_0x545fd6:0x286,_0x113f03:0x2fb,_0x5e3dde:0x1f1,_0x1d0a96:0x20d},_0x946a82={_0x537c08:0x44f,_0x548afa:0x466,_0x884d38:0x3ff,_0x4b2860:0x43c,_0x26752b:0x441,_0x579e93:0xb7,_0x2c2491:0x14c,_0x4e3996:0x10f,_0x54ac9d:0x3ee,_0xe1f6b5:0x483,_0x440c6e:0x453,_0x5dbc43:0xbd},_0x48cecd={_0x14ffbf:0x24d,_0x28ba7c:0x1fd,_0x583374:0x2e,_0x404213:0x50,_0x35056e:0x207,_0x3d1250:0x240,_0x2775fe:0x247},_0x45c9d6={_0x307627:0x22,_0x8069bc:0x1d1},_0x2d7a55={_0x2b691e:0x16a,_0x1b1cda:0xf9};function _0x2487c8(_0xf673ea,_0x499cc2,_0x1dcdda,_0x3eb5e8){return _0x54cf75(_0xf673ea-_0x2d7a55._0x2b691e,_0xf673ea-_0x2d7a55._0x1b1cda,_0x3eb5e8,_0x3eb5e8-0x126);}if(!_0x3e6f75)return{'action':_0x2b9839(0x1f1,0x1a7,_0x1abc4a._0x379036,_0x1abc4a._0x55cfee)};const _0xab9a72=Promise[_0x2b9839(0x170,0x181,0x12d,_0x1abc4a._0x119954)]()[_0x2487c8(0x2b9,0x2c5,0x301,0x271)](()=>_0x3e6f75(_0x845a68,_0x14de71));function _0x2b9839(_0x276277,_0x4274d0,_0x222fac,_0x3c151f){return _0x54cf75(_0x276277-0x42,_0x276277-_0x45c9d6._0x307627,_0x222fac,_0x3c151f-_0x45c9d6._0x8069bc);}if(!_0x14de71[_0x2b9839(0x160,0x188,0x139,0x17a)]){const _0x3cd067=await _0xab9a72;return isDispatchDecision(_0x3cd067)?_0x3cd067:{'action':_0x2487c8(_0x1abc4a._0x2d6fa1,0x2e2,_0x1abc4a._0x545fd6,_0x1abc4a._0x113f03)};}const _0x12ac9b=new Promise((_0x2530b0,_0x153ed2)=>{const _0x17b8bf={_0x29e588:0x66,_0x1da7f9:0xa5},_0x5df53f={_0x565971:0x2a4};function _0x606272(_0x3bb1a3,_0x11d04b,_0x43055d,_0x14e397){return _0x2b9839(_0x3bb1a3- -0x2ac,_0x11d04b-0xed,_0x43055d,_0x14e397-0x11b);}const _0x38c886=()=>{function _0x51b977(_0x28ab34,_0x3abdcb,_0x987446,_0x4399a9){return _0x16f4(_0x3abdcb- -_0x5df53f._0x565971,_0x987446);}_0x14de71[_0x51b977(-_0x48cecd._0x14ffbf,-_0x48cecd._0x28ba7c,-0x23b,-0x1c6)]?.[_0x3c633f(-0x9d,-0x54,-0x5b,-0x1a)](_0x3c633f(-_0x48cecd._0x583374,-_0x48cecd._0x404213,0xa,0x3f),_0x38c886);function _0x3c633f(_0x51469c,_0x4780bb,_0xb9861e,_0x3c57cd){return _0x16f4(_0xb9861e- -0x12c,_0x3c57cd);}_0x153ed2(toAbortError(_0x14de71[_0x51b977(-_0x48cecd._0x35056e,-0x1fd,-_0x48cecd._0x3d1250,-_0x48cecd._0x2775fe)]?.['reason']));};function _0x2a9dee(_0x54de8e,_0x3e2622,_0x436b50,_0x4e1e1e){return _0x2b9839(_0x4e1e1e-0x2ef,_0x3e2622-_0x17b8bf._0x29e588,_0x3e2622,_0x4e1e1e-_0x17b8bf._0x1da7f9);}if(_0x14de71[_0x2a9dee(0x463,0x499,0x41a,_0x946a82._0x537c08)]?.[_0x2a9dee(0x44d,_0x946a82._0x548afa,_0x946a82._0x884d38,_0x946a82._0x4b2860)]){_0x153ed2(toAbortError(_0x14de71[_0x2a9dee(0x476,_0x946a82._0x26752b,0x447,0x44f)][_0x606272(-0xcb,-0x117,-0xce,-_0x946a82._0x579e93)]));return;}_0x14de71[_0x606272(-_0x946a82._0x2c2491,-_0x946a82._0x4e3996,-0x13d,-0x123)]?.[_0x2a9dee(_0x946a82._0x54ac9d,_0x946a82._0xe1f6b5,_0x946a82._0x440c6e,0x43e)](_0x606272(-_0x946a82._0x5dbc43,-0xdb,-0x6e,-0xbf),_0x38c886,{'once':!![]});}),_0x1bdb25=await Promise['race']([_0xab9a72,_0x12ac9b]);return isDispatchDecision(_0x1bdb25)?_0x1bdb25:{'action':_0x2b9839(_0x1abc4a._0x5e3dde,0x1d0,0x224,_0x1abc4a._0x1d0a96)};}async function executeToolCall(_0x204d69,_0x47073c,_0x31316f,_0x5d3339,_0x3938bd){const _0x5ce6fc={_0xa55205:0x391,_0x392d7f:0x39c,_0x5dd66f:0x384,_0x11beb1:0x2d2,_0x429f23:0x2ec,_0xcd498e:0x2eb,_0x558936:0x29f,_0x3c6020:0x368,_0x24208e:0x3b8,_0x19a7b4:0x276,_0x32d762:0x27b,_0x48f27d:0x216,_0x4616b6:0x2d5,_0x254ab5:0x365,_0xf10961:0x3e6,_0x53e88f:0x400,_0x529126:0x398,_0x109615:0x39d,_0x223bab:0x3bf,_0x13363f:0x383,_0x113a1f:0x388,_0x484899:0x256,_0xdc1cea:0x2aa,_0x56ad76:0x2f2,_0x5245d6:0x279,_0x315bf0:0x2a9,_0x29508d:0x2c3,_0x3b0f0c:0x37a,_0x3d2d90:0x3c9,_0x2ce8b8:0x361,_0x11b428:0x2b5,_0x1384e6:0x282,_0x596c23:0x363,_0x1c7d5a:0x328,_0x4329d7:0x3ee,_0x573168:0x403,_0x488144:0x330,_0x409056:0x299,_0x166e41:0x373,_0x17e312:0x3b0,_0x25d651:0x302,_0x2f5b31:0x2f8,_0x596150:0x2d2,_0x3508ea:0x324,_0x3ba854:0x2b8},_0x493dd7={_0x4cf1aa:0x1a1,_0x22b11e:0x1f7},_0xa5aa41={_0x15c947:0x429,_0x39bd04:0x170},_0x2c7bc1={_0x5309c2:0x4d4,_0x4d439f:0x1b5},_0x2de3fd={..._0x31316f,'toolCallId':_0x47073c['id']};throwIfAborted(_0x2de3fd[_0x5cfb92(0x383,0x396,_0x5ce6fc._0xa55205,0x38e)]);let _0x2e0d4b;function _0x5cfb92(_0x3ab8d7,_0x4645bd,_0xcc3f74,_0x15db06){return _0x40aa26(_0x3ab8d7-_0x2c7bc1._0x5309c2,_0x4645bd-0x1b8,_0xcc3f74-_0x2c7bc1._0x4d439f,_0x15db06);}try{_0x2e0d4b=await resolveDispatchDecision(_0x5d3339,_0x47073c,_0x2de3fd);}catch(_0x1c28ab){if(isAbortError(_0x1c28ab)){const _0x3d42f7=createAbortedToolResult(_0x47073c,_0x1c28ab);return await emitEvent(_0x3938bd,{'type':_0x5cfb92(_0x5ce6fc._0x392d7f,0x35b,_0x5ce6fc._0x5dd66f,0x35d),'toolCall':_0x47073c,'result':_0x3d42f7},_0x2de3fd),_0x3d42f7;}const {errorMessage:_0x306e4a,structured:_0x306be7}=normalizeExecutionError(_0x1c28ab),_0x906a35=createErrorToolResult(_0x47073c,_0x306e4a,_0x306be7);return await emitEvent(_0x3938bd,{'type':_0x536ccd(-_0x5ce6fc._0x11beb1,-0x2ad,-0x2c9,-_0x5ce6fc._0x429f23),'toolCall':_0x47073c,'result':_0x906a35},_0x2de3fd),_0x906a35;}throwIfAborted(_0x2de3fd[_0x536ccd(-_0x5ce6fc._0xcd498e,-_0x5ce6fc._0x558936,-0x33f,-0x2f8)]);if(_0x2e0d4b[_0x5cfb92(_0x5ce6fc._0x3c6020,0x385,_0x5ce6fc._0x24208e,0x31c)]===_0x536ccd(-0x278,-0x278,-_0x5ce6fc._0x19a7b4,-_0x5ce6fc._0x32d762)){const _0x14bf64=createRejectedToolResult(_0x47073c,_0x2e0d4b[_0x536ccd(-0x26a,-0x278,-0x293,-_0x5ce6fc._0x48f27d)]);return await emitEvent(_0x3938bd,{'type':_0x536ccd(-0x2ab,-0x26a,-0x27b,-_0x5ce6fc._0x4616b6),'toolCall':_0x47073c,'result':_0x14bf64},_0x2de3fd),_0x14bf64;}const _0xa4a519=_0x204d69[_0x5cfb92(_0x5ce6fc._0x254ab5,0x3bd,0x3ae,0x36d)](_0x47073c[_0x5cfb92(_0x5ce6fc._0xf10961,0x3c7,0x3ca,_0x5ce6fc._0x53e88f)]);if(!_0xa4a519){const _0x56d9d4=createUnknownToolResult(_0x47073c);return await emitEvent(_0x3938bd,{'type':'tool_completed','toolCall':_0x47073c,'result':_0x56d9d4},_0x2de3fd),_0x56d9d4;}throwIfAborted(_0x2de3fd[_0x5cfb92(0x383,_0x5ce6fc._0x529126,_0x5ce6fc._0x109615,_0x5ce6fc._0x223bab)]),await emitEvent(_0x3938bd,{'type':_0x536ccd(-0x265,-0x27e,-0x238,-0x2a6),'toolCall':_0x47073c},_0x2de3fd);function _0x536ccd(_0x2bcf6f,_0xeba5b3,_0x138afb,_0x508c37){return _0x54cf75(_0x2bcf6f-0x12a,_0x2bcf6f- -_0xa5aa41._0x15c947,_0xeba5b3,_0x508c37-_0xa5aa41._0x39bd04);}try{throwIfAborted(_0x2de3fd[_0x5cfb92(_0x5ce6fc._0x13363f,_0x5ce6fc._0x113a1f,0x3ae,0x3cf)]);const _0x73fdcd=validateToolInput(_0x47073c[_0x536ccd(-0x299,-0x273,-_0x5ce6fc._0x484899,-_0x5ce6fc._0xdc1cea)],_0xa4a519[_0x536ccd(-0x2b2,-_0x5ce6fc._0x56ad76,-_0x5ce6fc._0x5245d6,-_0x5ce6fc._0x315bf0)]),_0x3b23db=await _0xa4a519[_0x536ccd(-0x293,-_0x5ce6fc._0x29508d,-0x2e5,-0x2d1)](_0x73fdcd,_0x2de3fd),_0x5a7740=[],_0x1978d9=addAbortListener(_0x2de3fd['signal'],()=>{function _0x1f6961(_0x50f477,_0x533bd3,_0x3b228d,_0x31bf85){return _0x5cfb92(_0x3b228d- -0x5c6,_0x533bd3-0x193,_0x3b228d-0x27,_0x31bf85);}void _0x3b23db['return'](void 0x0)[_0x1f6961(-0x227,-_0x493dd7._0x4cf1aa,-_0x493dd7._0x22b11e,-0x1c4)](()=>{});});try{throwIfAborted(_0x2de3fd['signal']);let _0x3459ae=await _0x3b23db[_0x5cfb92(_0x5ce6fc._0x3b0f0c,_0x5ce6fc._0x3d2d90,0x369,_0x5ce6fc._0x2ce8b8)]();while(!_0x3459ae[_0x536ccd(-0x27c,-_0x5ce6fc._0x11b428,-_0x5ce6fc._0x1384e6,-0x2b4)]){throwIfAborted(_0x2de3fd[_0x5cfb92(0x383,0x32e,0x337,_0x5ce6fc._0x596c23)]);const _0x380012=normalizeToolOutputValue(_0x3459ae[_0x536ccd(-0x2fb,-0x320,-_0x5ce6fc._0x1c7d5a,-0x305)]);_0x5a7740[_0x536ccd(-0x2be,-0x29b,-0x2a6,-_0x5ce6fc._0x29508d)](_0x380012),await emitEvent(_0x3938bd,{'type':_0x5cfb92(_0x5ce6fc._0x4329d7,_0x5ce6fc._0x573168,0x421,0x3bf),'toolCall':_0x47073c,'chunk':_0x380012},_0x2de3fd),throwIfAborted(_0x2de3fd[_0x536ccd(-0x2eb,-_0x5ce6fc._0x488144,-0x341,-_0x5ce6fc._0x409056)]),_0x3459ae=await _0x3b23db['next']();}throwIfAborted(_0x2de3fd[_0x536ccd(-0x2eb,-0x32b,-0x30d,-0x2a8)]);const _0x5547cb=_0x3459ae[_0x5cfb92(_0x5ce6fc._0x166e41,_0x5ce6fc._0x17e312,0x3a1,0x3bb)]===void 0x0?deriveFinalToolOutput(_0x5a7740):normalizeToolOutputValue(_0x3459ae['value']),_0x368f5c=createSuccessToolResult(_0x47073c,_0x5547cb,_0x5a7740);return await emitEvent(_0x3938bd,{'type':'tool_completed','toolCall':_0x47073c,'result':_0x368f5c},_0x2de3fd),_0x368f5c;}catch(_0xad647d){if(isAbortError(_0xad647d)){const _0x4fe07d=createAbortedToolResult(_0x47073c,_0xad647d,_0x5a7740);return await emitEvent(_0x3938bd,{'type':_0x536ccd(-_0x5ce6fc._0x11beb1,-0x306,-_0x5ce6fc._0x25d651,-_0x5ce6fc._0x2f5b31),'toolCall':_0x47073c,'result':_0x4fe07d},_0x2de3fd),_0x4fe07d;}const {errorMessage:_0x53abeb,structured:_0x203a13}=normalizeExecutionError(_0xad647d),_0x1416a2=createErrorToolResult(_0x47073c,_0x53abeb,_0x203a13,_0x5a7740);return await emitEvent(_0x3938bd,{'type':'tool_completed','toolCall':_0x47073c,'result':_0x1416a2},_0x2de3fd),_0x1416a2;}finally{_0x1978d9();}}catch(_0x52779e){if(isAbortError(_0x52779e)){const _0xd0129d=createAbortedToolResult(_0x47073c,_0x52779e);return await emitEvent(_0x3938bd,{'type':_0x536ccd(-_0x5ce6fc._0x596150,-0x299,-0x293,-_0x5ce6fc._0x3508ea),'toolCall':_0x47073c,'result':_0xd0129d},_0x2de3fd),_0xd0129d;}const {errorMessage:_0x40a495,structured:_0x22d299}=normalizeExecutionError(_0x52779e),_0x54dc2e=createErrorToolResult(_0x47073c,_0x40a495,_0x22d299);return await emitEvent(_0x3938bd,{'type':_0x536ccd(-0x2d2,-0x2ed,-0x27b,-_0x5ce6fc._0x3ba854),'toolCall':_0x47073c,'result':_0x54dc2e},_0x2de3fd),_0x54dc2e;}}function createInternalToolRuntime(_0x5dc845=[],_0x4a9dee={}){const _0x2f4220={_0x3b5e54:0xbc,_0x37a84d:0x29,_0x19b172:0x6f,_0x4e40f2:0x1e},_0x53a8e6={_0x48a4c4:0x11e},_0x37bc06={_0x52118d:0xa5,_0x3814ac:0x55,_0x538ce6:0xdd,_0x5b2e60:0xac,_0x283973:0xd8,_0x9aee79:0xff,_0x1647df:0xe3,_0x3b96de:0x110},_0x4003d0={_0x251c8d:0x352,_0x244410:0x323,_0xf09787:0x36b};let _0x24625c=new ToolRegistry(_0x5dc845);return{'listToolSchemas'(){function _0x2b7ac0(_0x4a66f2,_0x551b15,_0x44b4f3,_0x1a98a0){return _0x16f4(_0x551b15-0x25d,_0x4a66f2);}return _0x24625c[_0x2b7ac0(_0x4003d0._0x251c8d,0x34e,_0x4003d0._0x244410,_0x4003d0._0xf09787)]();},'setTools'(_0x5a180c){_0x24625c=new ToolRegistry(_0x5a180c);},async 'executeCalls'(_0xd0ce70,_0x3d4904){const _0x2525fb={_0x5b82a8:0x214,_0x2f5d36:0x265,_0x1c986a:0x1eb},_0x432444={_0x26ff50:0x1d6,_0x52ec04:0x107};function _0x2fb0cd(_0x241051,_0x556796,_0x543783,_0x2ac4ae){return _0x16f4(_0x241051- -0x1e,_0x556796);}function _0xd36a69(_0x59be37,_0x249b37,_0x532d89,_0x4906b9){return _0x16f4(_0x59be37- -0xd,_0x249b37);}return await Promise[_0x2fb0cd(_0x37bc06._0x52118d,_0x37bc06._0x3814ac,_0x37bc06._0x538ce6,_0x37bc06._0x5b2e60)](_0xd0ce70[_0xd36a69(_0x37bc06._0x283973,_0x37bc06._0x9aee79,_0x37bc06._0x1647df,_0x37bc06._0x3b96de)](async _0x2c38ff=>{function _0x147a17(_0x7ce2f1,_0x35a1c9,_0x31e32a,_0x28a1c6){return _0x2fb0cd(_0x35a1c9- -0x2bf,_0x7ce2f1,_0x31e32a-_0x432444._0x26ff50,_0x28a1c6-_0x432444._0x52ec04);}return await executeToolCall(_0x24625c,_0x2c38ff,_0x3d4904,_0x4a9dee['onToolCall'],_0x4a9dee[_0x147a17(-_0x2525fb._0x5b82a8,-0x212,-_0x2525fb._0x2f5d36,-_0x2525fb._0x1c986a)]);}));},async 'execute'(_0x5cb93c,_0x3a3059){const [_0x33d522]=await this[_0x57681c(-_0x2f4220._0x3b5e54,-_0x2f4220._0x37a84d,-_0x2f4220._0x19b172,-_0x2f4220._0x4e40f2)]([_0x5cb93c],_0x3a3059);function _0x57681c(_0x3096f4,_0x115027,_0xc44795,_0x5b534e){return _0x16f4(_0xc44795- -_0x53a8e6._0x48a4c4,_0x5b534e);}return _0x33d522;}};}function getOrderedObserverExtensions(_0x5d0475,_0x21069e){const _0x4de15f={_0xab61ee:0x82,_0x1a58aa:0xf3,_0x51dd18:0x9d,_0x4e1f88:0x128,_0x23fdf9:0x13f,_0x333df9:0xb4,_0x10589a:0xec,_0xee5245:0xf9,_0x1ef7ad:0xe6,_0x14bf36:0x179,_0x8b2c0e:0x13d},_0x54b40c={_0x2d7b12:0x3e},_0x4a2255={_0x502d09:0x312,_0x372eb5:0x1ca},_0x3b2611={_0x172f82:0x19e,_0x37fe40:0x182};function _0x475e9f(_0x613d8a,_0x13604a,_0x4f2f39,_0xba95e){return _0x40aa26(_0x613d8a-_0x3b2611._0x172f82,_0x13604a-0xa1,_0x4f2f39-_0x3b2611._0x37fe40,_0x4f2f39);}function _0x3b3c42(_0x10cd47,_0x52ecae,_0x40fe90,_0x3df42a){return _0x54cf75(_0x10cd47-0x1eb,_0x40fe90- -_0x4a2255._0x502d09,_0x52ecae,_0x3df42a-_0x4a2255._0x372eb5);}return _0x5d0475['filter'](_0x318d65=>{const _0x13a85a={_0x2676d7:0x20b};function _0x31bdc1(_0x59b2bc,_0xd35884,_0x1b1acd,_0x2460a7){return _0x16f4(_0xd35884- -_0x13a85a._0x2676d7,_0x1b1acd);}function _0xb45812(_0x4859a9,_0x220cb2,_0xeb93c9,_0x1da608){return _0x16f4(_0x1da608- -_0x54b40c._0x2d7b12,_0xeb93c9);}return _0x318d65[_0xb45812(_0x4de15f._0xab61ee,_0x4de15f._0x1a58aa,_0x4de15f._0x51dd18,0x99)]!==![]&&_0x318d65[_0xb45812(_0x4de15f._0x4e1f88,_0x4de15f._0x23fdf9,_0x4de15f._0x333df9,_0x4de15f._0x10589a)]===_0x21069e&&_0x318d65[_0xb45812(0x140,0xed,_0x4de15f._0xee5245,_0x4de15f._0x1ef7ad)]===_0x31bdc1(-0x196,-_0x4de15f._0x14bf36,-0x18d,-_0x4de15f._0x8b2c0e);})[_0x475e9f(0x54,-0x2,0x5f,0x21)]((_0x295c45,_0x57ca4e)=>_0x295c45['order']-_0x57ca4e[_0x3b3c42(-0x1a2,-0x208,-0x1d2,-0x1b4)]);}function getOrderedTransformerExtensions(_0x288035,_0x2f9e02){const _0x331d1b={_0x2cba71:0xad},_0x425170={_0x350fd7:0x417,_0x3a930a:0x438,_0x2d5d3f:0x4d4,_0x3fd91c:0x48b,_0x42f954:0x46c,_0x3fbfc1:0x4a5,_0x52e5fb:0x4c0,_0xdeba85:0x43f},_0x183052={_0x2b18b5:0x175},_0x39ed9b={_0x71b687:0x9d,_0x436d39:0x167};function _0x126a7d(_0x481f77,_0x25160c,_0xc93e6d,_0x54372a){return _0x54cf75(_0x481f77-0xe5,_0x25160c-0xaa,_0xc93e6d,_0x54372a-0x1d9);}function _0x4d749a(_0x22ba53,_0x1b1475,_0xa93650,_0x29b637){return _0x40aa26(_0x29b637-_0x39ed9b._0x71b687,_0x1b1475-_0x39ed9b._0x436d39,_0xa93650-0x11,_0x22ba53);}return _0x288035[_0x126a7d(0x249,0x20b,0x1cf,0x20c)](_0x59f378=>{const _0x24bac3={_0x26d4fa:0x1ad,_0x2a50c0:0x207,_0x286fdc:0x7a};function _0x53f4ff(_0xaea5be,_0xe95ac7,_0x3075bc,_0x3e8c92){return _0x126a7d(_0xaea5be-_0x24bac3._0x26d4fa,_0xaea5be-_0x24bac3._0x2a50c0,_0xe95ac7,_0x3e8c92-_0x24bac3._0x286fdc);}function _0xb43f37(_0x25b0da,_0xc851a1,_0x49d810,_0x513d02){return _0x126a7d(_0x25b0da-_0x183052._0x2b18b5,_0x513d02-0x220,_0x25b0da,_0x513d02-0x2b);}return _0x59f378[_0xb43f37(0x477,0x427,_0x425170._0x350fd7,_0x425170._0x3a930a)]!==![]&&_0x59f378[_0xb43f37(0x476,_0x425170._0x2d5d3f,0x463,_0x425170._0x3fd91c)]===_0x2f9e02&&_0x59f378[_0x53f4ff(_0x425170._0x42f954,0x470,_0x425170._0x3fbfc1,0x48b)]===_0xb43f37(_0x425170._0x52e5fb,0x431,_0x425170._0xdeba85,0x472);})[_0x4d749a(-0x8c,-0x93,-0x58,-_0x331d1b._0x2cba71)]((_0x2eac9f,_0xc7d4e8)=>_0x2eac9f[_0x4d749a(-0x90,-0x59,-0xae,-0xb2)]-_0xc7d4e8[_0x126a7d(0x196,0x1ea,0x21f,0x214)]);}function createExtensionRegistry(){const _0x502fe5={_0x26c3d2:0x29b},_0x1c3632={_0x538aac:0x349},_0x331647=[];return{'register'(_0x20eb06){function _0x1e7e19(_0x3bac03,_0x20f7bc,_0x1e24e0,_0x162a00){return _0x16f4(_0x20f7bc- -_0x1c3632._0x538aac,_0x3bac03);}_0x331647[_0x1e7e19(-0x21d,-0x275,-_0x502fe5._0x26c3d2,-0x292)](_0x20eb06);},async 'runTransformers'(_0x46350f,_0x1e3804,_0x24fdd3){let _0x528d35=_0x1e3804;for(const _0x390919 of getOrderedTransformerExtensions(_0x331647,_0x46350f)){_0x528d35=await _0x390919['run'](_0x528d35,_0x24fdd3);}return _0x528d35;},async 'runObservers'(_0x497edf,_0x22696d,_0x22ff50){for(const _0x57d015 of getOrderedObserverExtensions(_0x331647,_0x497edf)){await _0x57d015['run'](_0x22696d,_0x22ff50);}}};}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(_0x309f53={}){const _0x2e84dd={_0x3ab3af:0x32a,_0x8080c5:0x303,_0x1d17ad:0x2db,_0x10c0aa:0x2e1,_0x59d3c0:0x26c,_0x22e422:0x2d6,_0x4c4294:0xe9,_0x2341cf:0x12f,_0x2c608b:0x352,_0x1a4367:0xd8,_0x5a438b:0x11c,_0x4b80e3:0xdc,_0x541c3a:0xe4,_0x317847:0x138,_0x2cb3b5:0x11d,_0x234d65:0x12e,_0x1d937b:0xc9,_0x5c2eb8:0x11c,_0x440a54:0x306,_0x5b301a:0x346,_0x23f2aa:0x2f8,_0x4f8fbe:0x2f5,_0x1dba2d:0x29c,_0x216b21:0x251,_0x233a0b:0x2ef,_0x2a3f29:0x2a4,_0x18b2be:0x2a6,_0x25d680:0x2c5,_0x5b594e:0x2ea,_0x254723:0x28f,_0x4eb217:0x343,_0x420014:0x32b,_0x21bf2c:0x2f4,_0x47c393:0x371,_0x2d6bed:0x323,_0x3dbeca:0x2c1,_0x3c9b6a:0xc4,_0x31e28a:0x244,_0x49609e:0x293,_0x4962c6:0x2f0,_0x283f87:0x348,_0xc9a8ae:0x11f,_0x574a35:0x111,_0x136c6b:0xc8},_0x390140={_0x71991b:0x1d0};let _0x39f02e=createEmptySnapshot();const _0x1ca716=new Set();let _0xad98c3;const _0x56582c=()=>{const _0x3d4dc4={..._0x39f02e};for(const _0x52540d of _0x1ca716)_0x52540d(_0x3d4dc4);};return{'getSnapshot'(){return{..._0x39f02e};},'recordEvent'(_0x42db0a){const _0x4d7106={_0x401b9d:0x1f2};function _0x2b2a5b(_0x36aa99,_0x225922,_0x1d9b03,_0x56cf4c){return _0x16f4(_0x56cf4c- -_0x390140._0x71991b,_0x36aa99);}if(_0x42db0a['type']===_0x3c2241(0x2f9,_0x2e84dd._0x3ab3af,_0x2e84dd._0x8080c5,_0x2e84dd._0x1d17ad)){_0xad98c3=Date[_0x3c2241(0x2db,0x2e5,0x318,0x2c5)]();const _0x3b448a=_0x309f53[_0x3c2241(_0x2e84dd._0x10c0aa,_0x2e84dd._0x59d3c0,_0x2e84dd._0x22e422,0x2ae)]?.(_0x42db0a['request']);_0x3b448a!==void 0x0&&(_0x39f02e={..._0x39f02e,'contextWindowLimit':_0x3b448a},_0x56582c());return;}if(_0x42db0a[_0x2b2a5b(-0x12d,-0x107,-_0x2e84dd._0x4c4294,-_0x2e84dd._0x2341cf)]===_0x3c2241(_0x2e84dd._0x2c608b,0x334,0x307,0x315)){const _0x5795c5=_0x42db0a[_0x2b2a5b(-0x105,-0x115,-_0x2e84dd._0x1a4367,-_0x2e84dd._0x5a438b)]['usage'][_0x2b2a5b(-_0x2e84dd._0x4b80e3,-_0x2e84dd._0x541c3a,-_0x2e84dd._0x317847,-_0x2e84dd._0x2cb3b5)],_0x2175fe=_0x42db0a[_0x2b2a5b(-0x178,-_0x2e84dd._0x234d65,-_0x2e84dd._0x1d937b,-_0x2e84dd._0x5c2eb8)][_0x3c2241(_0x2e84dd._0x440a54,0x32e,_0x2e84dd._0x5b301a,_0x2e84dd._0x23f2aa)][_0x3c2241(0x28a,0x258,_0x2e84dd._0x4f8fbe,_0x2e84dd._0x1dba2d)],_0x3e7c5b=_0x42db0a[_0x3c2241(_0x2e84dd._0x216b21,_0x2e84dd._0x233a0b,_0x2e84dd._0x2a3f29,_0x2e84dd._0x18b2be)]['usage'][_0x3c2241(0x2be,_0x2e84dd._0x4f8fbe,0x2d4,0x2d0)]??0x0,_0x3b7899=_0x5795c5+_0x2175fe,_0x31003c=_0xad98c3===void 0x0?0x0:Date[_0x3c2241(0x2ad,0x30b,0x308,_0x2e84dd._0x25d680)]()-_0xad98c3;_0xad98c3=void 0x0,_0x39f02e={..._0x39f02e,'totalTokens':_0x39f02e[_0x3c2241(0x254,_0x2e84dd._0x5b594e,_0x2e84dd._0x59d3c0,_0x2e84dd._0x254723)]+_0x3b7899,'totalInputTokens':_0x39f02e[_0x3c2241(_0x2e84dd._0x5b594e,_0x2e84dd._0x4eb217,0x342,_0x2e84dd._0x420014)]+_0x5795c5,'totalOutputTokens':_0x39f02e[_0x3c2241(_0x2e84dd._0x21bf2c,0x341,0x2cc,0x2ff)]+_0x2175fe,'totalReasoningTokens':_0x39f02e['totalReasoningTokens']+_0x3e7c5b,'modelCallCount':_0x39f02e['modelCallCount']+0x1,'totalModelTimeMs':_0x39f02e['totalModelTimeMs']+_0x31003c,'currentTokens':_0x3b7899,'currentInputTokens':_0x5795c5,'currentOutputTokens':_0x2175fe,'currentReasoningTokens':_0x3e7c5b,'currentModelTimeMs':_0x31003c,..._0x39f02e['contextWindowLimit']&&_0x3b7899>0x0?{'contextWindowUsage':_0x3b7899/_0x39f02e[_0x3c2241(_0x2e84dd._0x47c393,0x323,0x376,_0x2e84dd._0x2d6bed)]}:{}},_0x56582c();return;}if(_0x42db0a['type']===_0x3c2241(0x2fe,0x2ed,0x26e,_0x2e84dd._0x3dbeca)){_0x39f02e={..._0x39f02e,'toolCallCount':_0x39f02e[_0x2b2a5b(-0x10c,-_0x2e84dd._0x3c9b6a,-0x8d,-0xe8)]+0x1},_0x56582c();return;}function _0x3c2241(_0x24225a,_0xc861fd,_0x1b7be2,_0x442ab5){return _0x16f4(_0x442ab5-_0x4d7106._0x401b9d,_0x1b7be2);}_0x42db0a[_0x3c2241(0x2e1,0x2ca,_0x2e84dd._0x31e28a,_0x2e84dd._0x49609e)]===_0x3c2241(_0x2e84dd._0x4962c6,0x344,_0x2e84dd._0x283f87,0x2ee)&&(_0x39f02e={..._0x39f02e,'requestCount':_0x39f02e[_0x2b2a5b(-0xef,-_0x2e84dd._0xc9a8ae,-_0x2e84dd._0x574a35,-_0x2e84dd._0x136c6b)]+0x1},_0x56582c());},'reset'(){_0x39f02e=createEmptySnapshot(),_0xad98c3=void 0x0,_0x56582c();},'subscribe'(_0x4a0bef){return _0x1ca716['add'](_0x4a0bef),()=>{_0x1ca716['delete'](_0x4a0bef);};}};}function makeExtensionContext(_0x53fd5a){return{'state':_0x53fd5a};}async function runStage(_0x4ea641,_0x28451a,_0x1a7a94,_0x2a637e){const _0x42fe7a={_0x49477c:0x4a5},_0x2362d6={_0x1dcf86:0x5a2,_0x5b5267:0x104,_0xfa4e86:0x1db},_0x438b02=await _0x4ea641['runTransformers'](_0x28451a,_0x1a7a94,_0x2a637e);await _0x4ea641[_0x13a88b(0x4d9,_0x42fe7a._0x49477c,0x499,0x487)](_0x28451a,_0x438b02,_0x2a637e);function _0x13a88b(_0x380230,_0x38e0b8,_0x53237f,_0x161584){return _0x40aa26(_0x53237f-_0x2362d6._0x1dcf86,_0x38e0b8-_0x2362d6._0x5b5267,_0x53237f-_0x2362d6._0xfa4e86,_0x380230);}return _0x438b02;}async function emitEvent2(_0x2b328e,_0x29510a,_0x41d49d){await _0x2b328e?.(_0x29510a,_0x41d49d);}function replaceToolUseBlocks(_0x574d2c,_0x5b016d){const _0x18bf24={_0x23f911:0x44},_0x6a469e={_0x2c6918:0x1d3,_0x45ba65:0x262,_0x21b45d:0x1f4},_0x400e63={_0x5ba4bb:0xfa};function _0x4d4fa8(_0x23fdc6,_0xa7255c,_0x4b3442,_0x4bd0b0){return _0x40aa26(_0x23fdc6-_0x400e63._0x5ba4bb,_0xa7255c-0x1dc,_0x4b3442-0x68,_0x4b3442);}let _0xbe2f63=0x0;return{..._0x574d2c,'content':_0x574d2c['content'][_0x4d4fa8(-0x19,-_0x18bf24._0x23f911,0x2b,-0x24)](_0xe63b15=>{const _0x37bdda={_0x324ffd:0x1a7,_0x4f8db1:0x119};if(_0xe63b15[_0x496d46(_0x6a469e._0x2c6918,_0x6a469e._0x45ba65,0x20e,0x216)]!==_0x496d46(0x226,0x1aa,_0x6a469e._0x21b45d,0x20a))return _0xe63b15;const _0x517887=_0x5b016d[_0xbe2f63];_0xbe2f63+=0x1;function _0x496d46(_0x8f9cb8,_0x1ce05d,_0x1e389e,_0x5bd790){return _0x4d4fa8(_0x1e389e-0x26b,_0x1ce05d-_0x37bdda._0x324ffd,_0x1ce05d,_0x5bd790-_0x37bdda._0x4f8db1);}function _0x2fc244(_0x7f9891,_0x3e1a1b,_0x5d7b9b,_0x5e5361){return _0x4d4fa8(_0x7f9891-0x3ba,_0x3e1a1b-0x19a,_0x5d7b9b,_0x5e5361-0x19c);}return structuredClone(_0x517887);})};}function createAssistantMessageId(_0x5c34d3,_0x4ba29c){return _0x5c34d3+':assistant:'+_0x4ba29c;}function createReasoningMessageId(_0x46ca25){return _0x46ca25+':reasoning';}function withMessageId(_0x1bbae5,_0x1b9aac){if(_0x1bbae5['id']===_0x1b9aac)return _0x1bbae5;return{..._0x1bbae5,'id':_0x1b9aac};}function createAssistantChunkEvent(_0x3b5369,_0x6e6a2b){const _0x4fb77a={_0x577874:0x31,_0x3134c6:0x1b,_0x5984b8:0x39,_0x15cec0:0x35,_0x38379a:0x30,_0x596dd0:0x30,_0x179fbd:0x43,_0x2c7b95:0x60,_0x431576:0x20,_0x285525:0x17,_0x5eda8e:0x47,_0x25e936:0x53,_0xcfb4c6:0x30,_0x2dceb2:0x20,_0x41e977:0x1c},_0x36f93e={_0x10bde4:0x19b,_0x5cafbb:0x14d},_0x425e04={_0x3d787d:0x139,_0x4da2a5:0x1d5,_0x2b0c9b:0x1f3};if(_0x3b5369[_0x50ee30(_0x4fb77a._0x577874,-0x1e,-_0x4fb77a._0x3134c6,-0x69)]!==_0x50ee30(-0x4b,-0x20,_0x4fb77a._0x5984b8,-_0x4fb77a._0x15cec0))return void 0x0;function _0x50ee30(_0x37e87a,_0x47a17f,_0x41c518,_0x17b1e0){return _0x40aa26(_0x47a17f-_0x425e04._0x3d787d,_0x47a17f-_0x425e04._0x4da2a5,_0x41c518-_0x425e04._0x2b0c9b,_0x41c518);}function _0x2a95b6(_0x550ffe,_0x37b330,_0x1d5999,_0x4f85f3){return _0x54cf75(_0x550ffe-_0x36f93e._0x10bde4,_0x4f85f3- -_0x36f93e._0x5cafbb,_0x550ffe,_0x4f85f3-0x11d);}if(_0x3b5369[_0x50ee30(-_0x4fb77a._0x38379a,-_0x4fb77a._0x596dd0,-_0x4fb77a._0x179fbd,-0x35)]===void 0x0)return void 0x0;return{'type':_0x2a95b6(_0x4fb77a._0x2c7b95,0xe,-0xd,0x41),'index':_0x3b5369['index']??0x0,'messageId':_0x6e6a2b,'chunk':{'type':_0x50ee30(0x13,-_0x4fb77a._0x431576,-0x1d,_0x4fb77a._0x285525),'index':_0x3b5369[_0x50ee30(0x36,-0x14,-0x13,_0x4fb77a._0x5eda8e)]??0x0,'text':_0x3b5369[_0x50ee30(-_0x4fb77a._0x25e936,-_0x4fb77a._0xcfb4c6,-_0x4fb77a._0x2dceb2,_0x4fb77a._0x41e977)]}};}function createToolUseChunkEvent(_0x50b33d,_0x4b56fb){const _0x293a29={_0x4af6f5:0x31f,_0x54ac55:0x305,_0x58d499:0x347,_0x9bc256:0x31c,_0x430e6b:0x2cd,_0x304b9c:0x2cb,_0x149457:0x2f7,_0x217755:0x1aa,_0x894566:0x1d8,_0x59fff5:0x378,_0x49dcc9:0x335,_0x2cf723:0x2f2,_0x139c70:0x319,_0x3af248:0x14b,_0x28576e:0xbb,_0x4917c4:0x348,_0x401175:0x377,_0x29a259:0x33d},_0x248868={_0x2e17e2:0x192};if(_0x50b33d['type']!=='tool_use_delta')return void 0x0;function _0x4a7010(_0x28abca,_0x3f7682,_0x4f223e,_0x28ce5c){return _0x40aa26(_0x3f7682- -0x34,_0x3f7682-0x1cd,_0x4f223e-_0x248868._0x2e17e2,_0x4f223e);}function _0x5bc964(_0x3d9634,_0x1c3e21,_0x2335d8,_0x5149c9){return _0x40aa26(_0x1c3e21-0x423,_0x1c3e21-0xf7,_0x2335d8-0x9e,_0x3d9634);}return{'type':_0x5bc964(_0x293a29._0x4af6f5,_0x293a29._0x54ac55,0x2eb,_0x293a29._0x58d499),'index':_0x50b33d[_0x5bc964(_0x293a29._0x9bc256,0x2d6,0x2b5,_0x293a29._0x430e6b)]??0x0,'messageId':_0x4b56fb,'chunk':{'type':_0x5bc964(0x2c8,0x2b6,_0x293a29._0x304b9c,_0x293a29._0x149457),'id':_0x50b33d['id']??'','index':_0x50b33d[_0x4a7010(-_0x293a29._0x217755,-0x181,-0x14c,-_0x293a29._0x894566)]??0x0,..._0x50b33d['name']!==void 0x0?{'name':_0x50b33d[_0x5bc964(_0x293a29._0x59fff5,_0x293a29._0x49dcc9,_0x293a29._0x2cf723,_0x293a29._0x139c70)]}:{},..._0x50b33d[_0x4a7010(-_0x293a29._0x3af248,-0x10f,-0x149,-_0x293a29._0x28576e)]!==void 0x0?{'inputDelta':_0x50b33d[_0x5bc964(0x371,_0x293a29._0x4917c4,_0x293a29._0x401175,_0x293a29._0x29a259)]}:{}}};}function createReasoningChunkEvent(_0x4b51f3,_0x2e33a3){const _0x11c555={_0x325386:0x2bb,_0x28e660:0x2e5,_0x1a5d03:0x1ad,_0x5d8dad:0x22b,_0x3dc683:0x1e7,_0x53f0ea:0x27f,_0x2392d1:0x1f5,_0x41ef0b:0x1e1,_0x13a052:0x1ca,_0x17d601:0x202,_0xa8eae4:0x240,_0x2c8bca:0x2f0,_0x3ccd20:0x29b,_0xd71565:0x217,_0x4bc980:0x241,_0x2e1776:0x305,_0x11a230:0x2c2,_0x233873:0x223,_0x32bfeb:0x1cd,_0x14dde8:0x260,_0x46b257:0x292,_0x30aaec:0x217,_0x5992c5:0x2d9,_0x5dc1cf:0x2a8,_0x39608f:0x328,_0x29f828:0x279,_0x2e9bfb:0x1ba,_0x1c08e7:0x1cd,_0x284214:0x1d3,_0x505ce8:0x2e8,_0xcec4ae:0x2e2,_0x263a98:0x288,_0x5a4525:0x1db},_0x32e5ac={_0x3eacea:0xa5};function _0x164694(_0x3b26ed,_0x1fa369,_0xa11db2,_0x309a95){return _0x54cf75(_0x3b26ed-0x16c,_0xa11db2-_0x32e5ac._0x3eacea,_0x1fa369,_0x309a95-0x8a);}function _0x1b3143(_0x4f2e08,_0x385940,_0x1deb33,_0x56e163){return _0x40aa26(_0x385940-0x3d3,_0x385940-0x1b,_0x1deb33-0x68,_0x56e163);}switch(_0x4b51f3['type']){case _0x1b3143(0x2a9,0x28d,0x254,0x2c4):return{'type':_0x1b3143(0x2ec,0x2d5,_0x11c555._0x325386,_0x11c555._0x28e660),'index':_0x4b51f3[_0x164694(_0x11c555._0x1a5d03,_0x11c555._0x5d8dad,_0x11c555._0x3dc683,0x1b6)],'messageId':_0x2e33a3,'chunk':{'type':'anthropic_thinking_delta','index':_0x4b51f3[_0x1b3143(_0x11c555._0x53f0ea,0x286,0x23c,0x268)]??0x0,'thinking':_0x4b51f3[_0x164694(0x1c0,_0x11c555._0x2392d1,_0x11c555._0x41ef0b,0x1d5)]??''},'text':_0x4b51f3[_0x164694(_0x11c555._0x13a052,0x1a7,0x1e1,0x1ca)]??''};case _0x164694(_0x11c555._0x17d601,0x220,_0x11c555._0xa8eae4,0x22a):return{'type':_0x1b3143(_0x11c555._0x2c8bca,0x2d5,_0x11c555._0x3ccd20,0x2e6),'index':_0x4b51f3[_0x164694(0x24a,0x1d5,_0x11c555._0xd71565,_0x11c555._0x4bc980)],'messageId':_0x2e33a3,'chunk':{'type':_0x1b3143(0x2a1,0x2df,_0x11c555._0x2e1776,0x2d6),'contentIndex':_0x4b51f3[_0x1b3143(_0x11c555._0x11a230,0x2b6,0x2ca,0x27a)]??0x0,'delta':_0x4b51f3[_0x164694(0x1a6,_0x11c555._0x233873,_0x11c555._0x32bfeb,0x19c)]??'','itemId':_0x4b51f3['itemId']??'','outputIndex':_0x4b51f3[_0x164694(_0x11c555._0x14dde8,_0x11c555._0x46b257,0x25a,0x289)]??0x0},'text':_0x4b51f3[_0x1b3143(0x254,0x26c,_0x11c555._0xd71565,_0x11c555._0x30aaec)]??''};case _0x1b3143(0x2c8,_0x11c555._0x5992c5,_0x11c555._0x5dc1cf,_0x11c555._0x39608f):return{'type':'reasoning_chunk','index':_0x4b51f3['summaryIndex'],'messageId':_0x2e33a3,'chunk':{'type':_0x164694(0x1fd,_0x11c555._0x29f828,0x23a,_0x11c555._0x5d8dad),'delta':_0x4b51f3[_0x164694(0x17e,_0x11c555._0x2e9bfb,_0x11c555._0x1c08e7,0x205)]??'','itemId':_0x4b51f3[_0x164694(0x1d9,_0x11c555._0x284214,0x205,0x257)]??'','outputIndex':_0x4b51f3[_0x1b3143(0x2ee,0x2f9,_0x11c555._0x505ce8,0x336)]??0x0,'summaryIndex':_0x4b51f3[_0x1b3143(_0x11c555._0xcec4ae,_0x11c555._0x263a98,0x231,0x2ac)]??0x0},'text':_0x4b51f3[_0x164694(0x1f8,_0x11c555._0x5a4525,0x1cd,0x1d1)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x37d61b){const _0x56f7b2={_0x25600e:0xed,_0x1f69d6:0xac,_0x13f9a1:0xbf,_0x45d095:0x70,_0x5c85ca:0x4c,_0x15021f:0x24},_0x537bcb={_0x5d2ed8:0x1b8,_0x58ac51:0xf},_0x4c0ff6={_0x524c18:0xfd};function _0x1f6dd3(_0x2bba9f,_0x1b620e,_0x557fef,_0x268047){return _0x40aa26(_0x1b620e-0x1d4,_0x1b620e-0xf7,_0x557fef-_0x4c0ff6._0x524c18,_0x268047);}function _0x4b5ebc(_0x1e3f25,_0x2c69cb,_0x4409fd,_0x315fdb){return _0x54cf75(_0x1e3f25-0x7b,_0x1e3f25-_0x537bcb._0x5d2ed8,_0x315fdb,_0x315fdb-_0x537bcb._0x58ac51);}return _0x37d61b['status']==='error'&&_0x37d61b[_0x1f6dd3(0xc9,0x9d,_0x56f7b2._0x25600e,_0x56f7b2._0x1f69d6)][_0x1f6dd3(_0x56f7b2._0x13f9a1,_0x56f7b2._0x45d095,_0x56f7b2._0x5c85ca,_0x56f7b2._0x15021f)]===!![];}async function executeModelRequest(_0x39d79c,_0x4a6ddf,_0x593b03,_0x5ec2bf,_0x3f9283,_0x19ccea){const _0x3323bc={_0x11db67:0xed,_0xbf050c:0x22,_0x38ced6:0x37,_0xa48667:0xd5,_0x4948ee:0xe0,_0x12efea:0xea,_0x3a93e7:0xcf,_0x276489:0x11e,_0x475723:0xd4,_0x35ba75:0x24,_0x8efaff:0x79,_0x11e316:0x83,_0x49a5e4:0xd4,_0x2eeb52:0x78,_0x1b21b7:0x82,_0x1381b3:0xd,_0x1e42c7:0x50,_0x8fe114:0x40,_0x288f10:0x6e,_0x5783bd:0x76,_0x5393a2:0x78,_0x2fcb20:0x10b,_0x537896:0x107,_0x269512:0xcc,_0xd6c340:0x78,_0x5bc8bc:0xaf,_0x195600:0x7f,_0x7566a8:0x4a,_0x5058b3:0x81,_0x5575bc:0xcb,_0x3ca4ce:0x117,_0xd1b924:0xee,_0x20a784:0x57,_0x477a28:0xc0,_0x38ac98:0x5f,_0x223730:0x59,_0x866aa3:0x67,_0xc03d7b:0x9d,_0x57705a:0x66,_0x4cb212:0x4f,_0x491581:0x7c,_0x79397f:0xe5,_0x31db0d:0x8f,_0x21e6f8:0xa9,_0x4ce59b:0x53,_0x480b0e:0x71,_0xc1361a:0x57,_0x5a3cd6:0x15,_0x567951:0x2a,_0x3c7973:0x41,_0x17ca3f:0x29,_0x1b18f4:0x61,_0x8a1a67:0x14,_0x56fc60:0x48,_0x324696:0xcd,_0x60e801:0xd7,_0x468d17:0xa8,_0x48eea6:0x62,_0x4ec858:0x96,_0x33ad27:0x3d,_0x988b06:0x97},_0x15b7f4={_0x29323b:0x2e,_0x4be33a:0x212,_0x291d5a:0x1a4},_0x2de79e={_0x3ceeba:0x1e5,_0x1453df:0x47};function _0x4e3e51(_0x20447f,_0x1c1877,_0x514c02,_0x430e20){return _0x54cf75(_0x20447f-0x56,_0x20447f- -_0x2de79e._0x3ceeba,_0x1c1877,_0x430e20-_0x2de79e._0x1453df);}throwIfAborted(_0x4a6ddf['signal']);if(!_0x4a6ddf[_0x422c6d(-0xca,-0xa2,-0xbd,-_0x3323bc._0x11db67)]||!_0x593b03[_0x4e3e51(-_0x3323bc._0xbf050c,-0x46,0x8,_0x3323bc._0x38ced6)])return await _0x593b03[_0x422c6d(-_0x3323bc._0xa48667,-_0x3323bc._0x4948ee,-_0x3323bc._0x12efea,-_0x3323bc._0x3a93e7)](_0x39d79c,{'signal':_0x4a6ddf[_0x422c6d(-0x114,-0xd7,-_0x3323bc._0x276489,-_0x3323bc._0x475723)]});let _0x3b1e2e;for await(const _0x4c654b of _0x593b03[_0x422c6d(-0x4d,-0x3d,-_0x3323bc._0x35ba75,-0x4f)](_0x39d79c,{'signal':_0x4a6ddf[_0x422c6d(-0xbe,-_0x3323bc._0x8efaff,-_0x3323bc._0x11e316,-_0x3323bc._0x49a5e4)]})){throwIfAborted(_0x4a6ddf[_0x4e3e51(-0xa7,-_0x3323bc._0x2eeb52,-_0x3323bc._0x1b21b7,-0xb0)]);if(_0x4c654b['type']===_0x4e3e51(-0x38,0x18,-0x43,_0x3323bc._0x1381b3)){_0x19ccea[_0x4e3e51(-0x2c,-0x67,0x2,-_0x3323bc._0x1e42c7)][_0x4e3e51(-0x7c,-_0x3323bc._0x8fe114,-0x85,-_0x3323bc._0x288f10)]!==void 0x0&&_0x19ccea[_0x4e3e51(-0x2c,-_0x3323bc._0x5783bd,-0x38,-_0x3323bc._0x5393a2)]['reasoningCompletedAt']===void 0x0&&(_0x19ccea['meta']['reasoningCompletedAt']=Date['now']());_0x3b1e2e=_0x4c654b[_0x4e3e51(-0x9a,-0x54,-0xb7,-0x55)];continue;}if(_0x4c654b[_0x422c6d(-_0x3323bc._0x2fcb20,-_0x3323bc._0x537896,-0xb4,-0xda)]==='provider_retry'){await emitEvent2(_0x5ec2bf['onEvent'],_0x4c654b,_0x3f9283);continue;}const _0x114c1e=createReasoningChunkEvent(_0x4c654b,_0x19ccea[_0x422c6d(-0x75,-_0x3323bc._0x269512,-0x85,-_0x3323bc._0xd6c340)]);if(_0x114c1e&&_0x114c1e[_0x422c6d(-0xef,-0x10c,-0xbf,-0xda)]===_0x422c6d(-_0x3323bc._0x5bc8bc,-_0x3323bc._0x195600,-_0x3323bc._0x7566a8,-_0x3323bc._0x5058b3)&&_0x114c1e[_0x4e3e51(-0xbf,-_0x3323bc._0x5575bc,-_0x3323bc._0x3ca4ce,-_0x3323bc._0xd1b924)][_0x4e3e51(-0x6b,-_0x3323bc._0x20a784,-0x36,-_0x3323bc._0x477a28)]>0x0){_0x19ccea[_0x422c6d(-0x4b,-0x35,-_0x3323bc._0x38ac98,-_0x3323bc._0x223730)][_0x4e3e51(-0x7c,-_0x3323bc._0x866aa3,-_0x3323bc._0xc03d7b,-0xb6)]===void 0x0&&(_0x19ccea[_0x422c6d(-_0x3323bc._0x57705a,-0x4,-_0x3323bc._0x4cb212,-_0x3323bc._0x223730)][_0x4e3e51(-_0x3323bc._0x491581,-0x22,-_0x3323bc._0x3a93e7,-0x48)]=Date[_0x422c6d(-_0x3323bc._0x79397f,-0xe4,-0xa5,-0xa8)]());await emitEvent2(_0x5ec2bf['onEvent'],_0x114c1e,_0x3f9283);continue;}const _0xad66ef=createAssistantChunkEvent(_0x4c654b,_0x19ccea[_0x422c6d(-0xd2,-0x82,-0xa9,-_0x3323bc._0x31db0d)]);if(_0xad66ef){_0x19ccea['meta'][_0x422c6d(-0xf2,-0xcb,-0xd3,-_0x3323bc._0x21e6f8)]!==void 0x0&&_0x19ccea[_0x422c6d(-_0x3323bc._0x4ce59b,-0x13,-_0x3323bc._0x480b0e,-0x59)][_0x422c6d(-_0x3323bc._0xc1361a,-_0x3323bc._0x5a3cd6,-_0x3323bc._0x567951,-_0x3323bc._0x3c7973)]===void 0x0&&(_0x19ccea[_0x4e3e51(-0x2c,_0x3323bc._0x17ca3f,-_0x3323bc._0x38ced6,-_0x3323bc._0x1b18f4)][_0x4e3e51(-_0x3323bc._0x8a1a67,0x45,-0x6d,-_0x3323bc._0x56fc60)]=Date[_0x422c6d(-0x63,-_0x3323bc._0x324696,-_0x3323bc._0x60e801,-_0x3323bc._0x468d17)]());await emitEvent2(_0x5ec2bf[_0x422c6d(-0xa6,-0xe9,-0xf2,-0xb0)],_0xad66ef,_0x3f9283);continue;}const _0x263603=createToolUseChunkEvent(_0x4c654b,_0x19ccea[_0x4e3e51(-_0x3323bc._0x48eea6,-_0x3323bc._0x5393a2,-_0x3323bc._0x4ec858,-0x72)]);_0x263603&&await emitEvent2(_0x5ec2bf[_0x4e3e51(-0x83,-_0x3323bc._0x33ad27,-0x35,-0x2c)],_0x263603,_0x3f9283);}function _0x422c6d(_0x4c712c,_0x4606c6,_0x1eb604,_0x3eea71){return _0x54cf75(_0x4c712c-_0x15b7f4._0x29323b,_0x3eea71- -_0x15b7f4._0x4be33a,_0x4606c6,_0x3eea71-_0x15b7f4._0x291d5a);}if(!_0x3b1e2e)throw new Error(_0x422c6d(-0x57,-_0x3323bc._0x988b06,-0x5b,-_0x3323bc._0x56fc60));return _0x3b1e2e;}function makeTurnGuards(_0x4bc8a2,_0x522888,_0x539065,_0x2b8f3e,_0x488df0){return{async 'stage'(_0x49ec8c,_0x456ecc){return throwIfAborted(_0x4bc8a2),await runStage(_0x522888,_0x49ec8c,_0x456ecc,_0x2b8f3e);},async 'emit'(_0x4c6731){throwIfAborted(_0x4bc8a2),await emitEvent2(_0x539065,_0x4c6731,_0x488df0);},async 'stageUnchecked'(_0x27a526,_0x5b4e4c){return await runStage(_0x522888,_0x27a526,_0x5b4e4c,_0x2b8f3e);},async 'emitUnchecked'(_0x176f1a){await emitEvent2(_0x539065,_0x176f1a,_0x488df0);}};}async function runTurn(_0x1647cb,_0xb77740){const _0x3a3fb5={_0x4fceb1:0x367,_0xc62424:0x377,_0x506caa:0x373,_0x10e4cc:0x2b6,_0x529798:0x2c4,_0x3d5e9c:0x30e,_0x22dfa2:0x224,_0x4da899:0x1d7,_0x24701b:0x25d,_0x13eceb:0x3fe,_0x25d614:0x36c,_0x1f7256:0x393,_0x180e87:0x3a3,_0x30ba7f:0x1ff,_0x2e8cad:0x1ce,_0x582a7e:0x1e6,_0xda852:0x1cb,_0x1ce7bb:0x1b0,_0x1a3af5:0x35e,_0x4192fd:0x371,_0x433a3d:0x19d,_0x2bf7d4:0x196,_0x136b54:0x38d,_0x1e84bd:0x38c,_0x494b32:0x3a3,_0x59adfa:0x217,_0xdd7f43:0x1f8,_0x1ab552:0x302,_0xa80195:0x385,_0x872e1f:0x354,_0x13c03b:0x354,_0x1057d9:0x2f5,_0x56ea96:0x34e,_0x4b0d40:0x33c,_0x5405e1:0x317,_0x2cd708:0x1fb,_0x5cfe39:0x24d,_0x108af8:0x37b,_0x366f42:0x2e0,_0x4bd139:0x30b,_0x3cf2ae:0x332,_0x16e362:0x2ee,_0x3f2596:0x33b,_0x41530c:0x231,_0xad2f00:0x202,_0x3b6ca8:0x1a7,_0x28d314:0x1ce,_0x3209f9:0x181,_0x41461d:0x318,_0x521478:0x362,_0x1d7b81:0x370,_0x46803b:0x316,_0x1e5ec0:0x39a,_0x209270:0x392,_0x3cb0a3:0x1d6,_0x38ea7d:0x207,_0x55cbe9:0x3c7,_0x2ebfcc:0x376,_0x40446b:0x1dd,_0x642705:0x194,_0x2c3545:0x1c5,_0x2e2c85:0x14c,_0x191fbd:0x1c5,_0x480d6c:0x203,_0x5b696e:0x325,_0x228660:0x368,_0x456006:0x30c,_0x9c2220:0x1ac,_0x2d488c:0x15d,_0x43584c:0x33a,_0x24e0be:0x360,_0x407d6d:0x36e,_0x588626:0x395,_0x38a955:0x2f4,_0x1eaf71:0x32c,_0x3b8a60:0x33a,_0x3e1b14:0x335,_0x3f42ff:0x2db,_0x20f63e:0x346,_0x2681a1:0x315,_0x3775eb:0x3a4,_0x399d7b:0x32a,_0x4731d7:0x31e,_0x37136f:0x35f,_0x5180f3:0x305,_0xdef390:0x1d0,_0x15d038:0x1af,_0x330785:0x1b7,_0x4c5a0b:0x1e5,_0xe5422d:0x1de,_0x7be62a:0x227,_0x187a4b:0x1f7,_0x121b07:0x39b,_0x4f53a9:0x1e8,_0x4f0b64:0x357,_0x4cbc7a:0x340,_0x1f1e70:0x355,_0x3327bf:0x39f,_0x52bb13:0x37d,_0x5ca31e:0x34d,_0x2b6dc4:0x1ea,_0x4454f1:0x1d3,_0x4470d1:0x1e2,_0x8d31a8:0x1dc,_0x53f692:0x213,_0x4a6719:0x228,_0x318dd8:0x247,_0x7ba9da:0x30a,_0xfe7a62:0x3a0,_0x205b7e:0x1f4,_0x1dceb5:0x19e,_0x5e34a0:0x2fb,_0x420cab:0x33a,_0x1bd294:0x324,_0x3140f9:0x386,_0x41f5f7:0x33e,_0x317762:0x372,_0x5e98ca:0x272,_0x7a9bc:0x225,_0x4a607a:0x206,_0x41f760:0x260,_0x112389:0x20f,_0x1355e0:0x2df,_0x5ea87b:0x30d},_0x3d6a8c={_0x368235:0x38b,_0x26e453:0x379,_0x5bf8a8:0x126,_0x235fe:0x125,_0x3917e3:0x173,_0x41e2dd:0x302,_0x380c77:0x2fa},_0x538378={_0x372a3b:0x14,_0x3619bb:0x1a8,_0x1767d3:0x9},_0x297f62={_0x5cd0cf:0x301,_0x1012a5:0x167},_0x36b0be={_0x36cf95:0x6b,_0x3e265e:0x362},_0x5f4f38={_0x376daa:0x192};function _0xa11631(_0xdd026a,_0x3a7565,_0x3c52a6,_0x4b296e){return _0x54cf75(_0xdd026a-0x142,_0x4b296e-0x1d0,_0x3a7565,_0x4b296e-_0x5f4f38._0x376daa);}const _0x2ebd5d=_0xb77740[_0xa11631(_0x3a3fb5._0x4fceb1,_0x3a3fb5._0xc62424,0x35f,_0x3a3fb5._0x506caa)],_0x5d711d=_0x1647cb[_0xa11631(0x311,_0x3a3fb5._0x10e4cc,_0x3a3fb5._0x529798,_0x3a3fb5._0x3d5e9c)]??new AbortController()[_0x5d9cf8(-0x1d5,-_0x3a3fb5._0x22dfa2,-_0x3a3fb5._0x4da899,-_0x3a3fb5._0x24701b)],_0x187e3f={'sessionId':_0x1647cb[_0xa11631(_0x3a3fb5._0x13eceb,_0x3a3fb5._0x25d614,_0x3a3fb5._0x1f7256,_0x3a3fb5._0x180e87)],'turnId':_0x1647cb[_0x5d9cf8(-_0x3a3fb5._0x30ba7f,-_0x3a3fb5._0x2e8cad,-0x1a4,-0x1f6)],'system':normalizeSystem(_0x1647cb['system']),'messages':(_0x1647cb['messages']??[])[_0x5d9cf8(-0x238,-_0x3a3fb5._0x582a7e,-_0x3a3fb5._0xda852,-_0x3a3fb5._0x1ce7bb)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0xb77740['sessionDir']==='function'?_0xb77740[_0xa11631(0x37e,_0x3a3fb5._0x1a3af5,_0x3a3fb5._0x4192fd,0x395)]():_0xb77740[_0x5d9cf8(-0x16f,-_0x3a3fb5._0x433a3d,-_0x3a3fb5._0x2bf7d4,-0x177)]},_0x30922b=makeExtensionContext(_0x187e3f),_0x54d5e5={'sessionId':_0x187e3f[_0xa11631(_0x3a3fb5._0x136b54,0x3c5,_0x3a3fb5._0x1e84bd,_0x3a3fb5._0x494b32)],'turnId':_0x187e3f[_0x5d9cf8(-_0x3a3fb5._0x59adfa,-_0x3a3fb5._0x2e8cad,-_0x3a3fb5._0xdd7f43,-0x1fd)],'state':_0x187e3f,'signal':_0x5d711d,..._0xb77740[_0xa11631(_0x3a3fb5._0x1ab552,_0x3a3fb5._0xa80195,0x2fb,_0x3a3fb5._0x872e1f)]?{'askUser':_0xb77740[_0xa11631(0x363,0x338,0x34e,_0x3a3fb5._0x13c03b)]}:{},..._0xb77740[_0xa11631(_0x3a3fb5._0x1057d9,_0x3a3fb5._0x56ea96,_0x3a3fb5._0x4b0d40,_0x3a3fb5._0x5405e1)]?{'setTopic':_0xb77740[_0x5d9cf8(-_0x3a3fb5._0x2cd708,-0x21b,-0x217,-_0x3a3fb5._0x5cfe39)]}:{}},{stage:_0x1ef96f,emit:_0x430f7d,stageUnchecked:_0x3b2e96,emitUnchecked:_0x3e0aed}=makeTurnGuards(_0x5d711d,_0xb77740['registry'],_0xb77740[_0xa11631(_0x3a3fb5._0x108af8,_0x3a3fb5._0x366f42,_0x3a3fb5._0x4bd139,_0x3a3fb5._0x3cf2ae)],_0x30922b,_0x54d5e5);function _0x5d9cf8(_0x8ca155,_0x551fae,_0x50de22,_0x44c4c5){return _0x54cf75(_0x8ca155-_0x36b0be._0x36cf95,_0x551fae- -_0x36b0be._0x3e265e,_0x50de22,_0x44c4c5-0xa3);}const _0x23ba29=async(_0x55c010,_0x1910ff)=>{function _0x15f43f(_0x452a30,_0x34a90f,_0x304fde,_0x119659){return _0x5d9cf8(_0x452a30-0x103,_0x34a90f-_0x297f62._0x5cd0cf,_0x119659,_0x119659-_0x297f62._0x1012a5);}function _0x490341(_0x289976,_0x20033e,_0x4659a9,_0x2e37e2){return _0xa11631(_0x289976-_0x538378._0x372a3b,_0x289976,_0x4659a9-_0x538378._0x3619bb,_0x4659a9- -_0x538378._0x1767d3);}const _0x1e579f=_0x1910ff?{..._0x30922b,'turnMeta':_0x1910ff}:_0x30922b;await _0xb77740[_0x490341(0x332,_0x3d6a8c._0x368235,_0x3d6a8c._0x26e453,0x378)][_0x15f43f(_0x3d6a8c._0x5bf8a8,_0x3d6a8c._0x235fe,0x14e,_0x3d6a8c._0x3917e3)](_0x490341(_0x3d6a8c._0x41e2dd,0x2fb,_0x3d6a8c._0x380c77,0x2e3),structuredClone(_0x55c010),_0x1e579f);};let _0x53db67=0x0;try{const _0x489cc1=await _0x1ef96f(_0x5d9cf8(-0x1d5,-0x1d5,-0x22f,-0x206),normalizeMessage(_0x1647cb[_0x5d9cf8(-0x20a,-0x211,-0x1c9,-0x1b6)]));_0x187e3f['messages'][_0xa11631(_0x3a3fb5._0x16e362,0x317,0x321,_0x3a3fb5._0x3f2596)](_0x489cc1),await _0x23ba29(_0x489cc1),await _0x430f7d({'type':_0x5d9cf8(-0x1fb,-0x232,-_0x3a3fb5._0x41530c,-_0x3a3fb5._0xad2f00),'message':_0x489cc1});while(!![]){throwIfAborted(_0x5d711d),_0x53db67+=0x1;const _0x4ee801=createAssistantMessageId(_0x187e3f[_0x5d9cf8(-_0x3a3fb5._0x3b6ca8,-_0x3a3fb5._0x28d314,-0x202,-_0x3a3fb5._0x3209f9)],_0x53db67),_0x5f2001=createReasoningMessageId(_0x4ee801),_0x421337={'model':_0x2ebd5d[_0xa11631(0x349,_0x3a3fb5._0x41461d,0x394,_0x3a3fb5._0x521478)],..._0x2ebd5d['provider']?{'provider':_0x2ebd5d[_0xa11631(_0x3a3fb5._0x1d7b81,_0x3a3fb5._0x46803b,0x37f,0x334)]}:{}};let _0x56b8f6={'model':_0x2ebd5d[_0xa11631(_0x3a3fb5._0x1e5ec0,0x340,_0x3a3fb5._0x209270,0x362)],..._0x2ebd5d[_0x5d9cf8(-_0x3a3fb5._0x3cb0a3,-0x1bc,-_0x3a3fb5._0x38ea7d,-0x17b)]!==void 0x0?{'maxTokens':_0x2ebd5d[_0xa11631(_0x3a3fb5._0x55cbe9,0x3a0,0x39c,_0x3a3fb5._0x2ebfcc)]}:{},'system':structuredClone(_0x187e3f[_0x5d9cf8(-_0x3a3fb5._0x40446b,-_0x3a3fb5._0x642705,-_0x3a3fb5._0x2c3545,-0x167)]),'messages':structuredClone(_0x187e3f['messages']),'tools':_0xb77740['toolRuntime']['listToolSchemas'](),'metadata':{'sessionId':_0x187e3f[_0x5d9cf8(-_0x3a3fb5._0x2e2c85,-0x18f,-_0x3a3fb5._0x191fbd,-0x194)],'turnId':_0x187e3f[_0x5d9cf8(-0x1ce,-_0x3a3fb5._0x28d314,-_0x3a3fb5._0x480d6c,-0x217)]},..._0xb77740[_0xa11631(_0x3a3fb5._0x5b696e,0x339,0x315,0x355)]?{'outputFormat':_0xb77740[_0xa11631(_0x3a3fb5._0x228660,0x32a,_0x3a3fb5._0x456006,0x355)]}:{}};_0x56b8f6=await _0x1ef96f(_0x5d9cf8(-0x1a8,-_0x3a3fb5._0x9c2220,-_0x3a3fb5._0x2d488c,-0x187),_0x56b8f6),await _0x430f7d({'type':_0xa11631(_0x3a3fb5._0x43584c,_0x3a3fb5._0x24e0be,_0x3a3fb5._0x407d6d,0x350),'request':_0x56b8f6}),_0x421337[_0x5d9cf8(-0x255,-0x229,-0x233,-0x275)]=Date[_0xa11631(_0x3a3fb5._0x588626,_0x3a3fb5._0x38a955,_0x3a3fb5._0x1eaf71,_0x3a3fb5._0x3b8a60)]();let _0x4c9790=await executeModelRequest(_0x56b8f6,_0x1647cb,_0x2ebd5d,_0xb77740,_0x54d5e5,{'assistantMessageId':_0x4ee801,'reasoningMessageId':_0x5f2001,'meta':_0x421337});_0x421337['turnCompletedAt']=Date[_0xa11631(0x368,0x2fc,0x34d,0x33a)](),_0x4c9790=await _0x1ef96f(_0xa11631(_0x3a3fb5._0x3e1b14,_0x3a3fb5._0x3f42ff,0x30d,0x322),_0x4c9790),await _0x430f7d({'type':_0xa11631(0x335,0x352,_0x3a3fb5._0x20f63e,0x38a),'response':_0x4c9790}),_0x187e3f[_0xa11631(_0x3a3fb5._0x2681a1,0x354,_0x3a3fb5._0x3775eb,0x352)]=_0x4c9790;let _0x387cac=await _0x1ef96f('beforeAssistantAppend',withMessageId(responseToAssistantMessage(_0x4c9790),_0x4ee801));_0x387cac=withMessageId(_0x387cac,_0x4ee801);const _0x374713=getToolUseBlocks(_0x387cac),_0x45cfdc=await Promise[_0xa11631(0x2e4,0x340,0x2dc,_0x3a3fb5._0x399d7b)](_0x374713['map'](_0xc4ffb0=>_0x1ef96f(_0xa11631(0x3cb,0x347,0x346,0x37a),_0xc4ffb0)));_0x45cfdc[_0xa11631(_0x3a3fb5._0x4731d7,0x39e,_0x3a3fb5._0x37136f,0x34a)]>0x0&&(_0x387cac=replaceToolUseBlocks(_0x387cac,_0x45cfdc));const _0x5d68e5=withMessageId(_0x387cac,_0x4ee801);_0x387cac=_0x5d68e5;const _0x5498f5=createReasoningMessage(_0x387cac),_0x17b7cc=createAssistantTextMessage(_0x387cac),_0xcb22ca=createToolUseMessage(_0x387cac);_0x5498f5&&await _0x430f7d({'type':_0xa11631(0x2a1,0x33d,_0x3a3fb5._0x5180f3,0x2f1),'message':withMessageId(_0x5498f5,_0x5f2001)});_0x17b7cc&&await _0x430f7d({'type':_0x5d9cf8(-_0x3a3fb5._0xdef390,-_0x3a3fb5._0x15d038,-0x199,-_0x3a3fb5._0x330785),'message':withMessageId(_0x17b7cc,_0x4ee801)});_0xcb22ca&&await _0x430f7d({'type':_0x5d9cf8(-0x1c4,-0x206,-0x1bc,-0x1d4),'message':withMessageId(_0xcb22ca,_0x4ee801)});_0x187e3f[_0x5d9cf8(-0x1bb,-_0x3a3fb5._0x4c5a0b,-_0x3a3fb5._0xe5422d,-_0x3a3fb5._0x7be62a)][_0x5d9cf8(-0x206,-_0x3a3fb5._0x187a4b,-0x1e1,-0x1a3)](_0x5d68e5);_0x45cfdc[_0xa11631(0x30c,_0x3a3fb5._0x121b07,0x353,0x34a)]>0x0&&await _0x23ba29(_0x5d68e5,_0x421337);for(const _0x5bacc8 of _0x45cfdc){await _0x430f7d({'type':'tool_call','toolCall':_0x5bacc8});}if(_0x45cfdc[_0x5d9cf8(-_0x3a3fb5._0x38ea7d,-_0x3a3fb5._0x4f53a9,-0x1f7,-_0x3a3fb5._0x59adfa)]===0x0){const _0x2588b9=await _0x1ef96f(_0xa11631(_0x3a3fb5._0x4f0b64,_0x3a3fb5._0x4cbc7a,_0x3a3fb5._0x1f1e70,0x397),_0x387cac),_0x3a09a0=withMessageId(_0x2588b9,_0x4ee801);return _0x187e3f['finalMessage']=_0x3a09a0,_0x187e3f[_0xa11631(0x316,_0x3a3fb5._0x3327bf,_0x3a3fb5._0x52bb13,_0x3a3fb5._0x5ca31e)][_0x187e3f['messages']['length']-0x1]=_0x3a09a0,await _0x23ba29(_0x3a09a0,_0x421337),await _0x430f7d({'type':_0x5d9cf8(-_0x3a3fb5._0x2b6dc4,-0x1ec,-_0x3a3fb5._0x4454f1,-0x1a8),'message':_0x3a09a0}),throwIfAborted(_0x5d711d),await _0xb77740['registry'][_0x5d9cf8(-_0x3a3fb5._0x4470d1,-_0x3a3fb5._0x8d31a8,-_0x3a3fb5._0x53f692,-0x1f2)](_0x5d9cf8(-0x1ea,-_0x3a3fb5._0x4a6719,-0x266,-_0x3a3fb5._0x318dd8),_0x187e3f,_0x30922b),await _0x430f7d({'type':_0xa11631(_0x3a3fb5._0x7ba9da,0x38f,_0x3a3fb5._0xfe7a62,0x363),'state':_0x187e3f}),{'status':'completed','finalMessage':_0x3a09a0,'state':_0x187e3f};}let _0x5c5b31=await _0xb77740[_0x5d9cf8(-_0x3a3fb5._0x205b7e,-0x1a6,-_0x3a3fb5._0x1dceb5,-0x151)][_0xa11631(0x2f0,_0x3a3fb5._0x5e34a0,0x30b,_0x3a3fb5._0x46803b)](_0x45cfdc,_0x54d5e5);const _0x38b5c6=_0x5c5b31['some'](isAbortedToolResult),_0x2362af=_0x38b5c6?_0x3b2e96:_0x1ef96f,_0xc7f40b=_0x38b5c6?_0x3e0aed:_0x430f7d;_0x5c5b31=await Promise['all'](_0x5c5b31[_0xa11631(0x2f2,0x305,_0x3a3fb5._0x2681a1,0x34c)](_0x472d7d=>_0x2362af(_0xa11631(0x30a,0x315,0x2f4,0x335),_0x472d7d))),_0x187e3f[_0xa11631(0x34d,_0x3a3fb5._0x1ab552,_0x3a3fb5._0x420cab,_0x3a3fb5._0x1bd294)][_0xa11631(0x2f0,0x387,_0x3a3fb5._0x3140f9,_0x3a3fb5._0x3f2596)](..._0x5c5b31);for(const _0x2233e3 of _0x5c5b31){await _0xc7f40b({'type':_0xa11631(0x38a,_0x3a3fb5._0x41f5f7,_0x3a3fb5._0x3775eb,_0x3a3fb5._0x317762),'result':_0x2233e3});}const _0x2b5973=await _0x2362af(_0x5d9cf8(-_0x3a3fb5._0x5e98ca,-_0x3a3fb5._0x7a9bc,-0x205,-_0x3a3fb5._0x4a607a),createToolResultUserMessage(_0x5c5b31));await _0xc7f40b({'type':'tool_result_message','message':_0x2b5973}),_0x187e3f['messages'][_0xa11631(0x2e2,_0x3a3fb5._0x3cf2ae,0x338,_0x3a3fb5._0x3f2596)](_0x2b5973),await _0x23ba29(_0x2b5973);if(_0x38b5c6)return{'status':_0x5d9cf8(-_0x3a3fb5._0x41f760,-0x237,-_0x3a3fb5._0x112389,-0x281),'state':_0x187e3f};}}catch(_0x1a42fd){if(!_0x5d711d[_0xa11631(_0x3a3fb5._0x1355e0,_0x3a3fb5._0x5ea87b,0x2b2,0x2fb)])throw new TurnFailedError(_0x1a42fd,_0x187e3f);return{'status':'aborted','state':_0x187e3f};}}function createSessionId(){const _0x427c63={_0x325b60:0x13c,_0x5585ba:0x122,_0x4cc1bc:0x283,_0x57be2c:0x29f,_0x3f338e:0x2b1,_0x12b6e6:0x29c,_0x2ec135:0x2e7,_0x2a2e6d:0x29b},_0x12dc18={_0x2bc93d:0x106},_0x1fa735={_0x9a84d7:0x11a,_0x12ceb4:0x11c};function _0x4cf291(_0x245dd6,_0x488047,_0x590378,_0x21f3d6){return _0x54cf75(_0x245dd6-_0x1fa735._0x9a84d7,_0x245dd6-0x123,_0x21f3d6,_0x21f3d6-_0x1fa735._0x12ceb4);}function _0x1592fc(_0x21af22,_0xbc7206,_0x56ce8c,_0x915e52){return _0x40aa26(_0xbc7206-0x283,_0xbc7206-0x1ed,_0x56ce8c-_0x12dc18._0x2bc93d,_0x21af22);}return _0x1592fc(0x18f,_0x427c63._0x325b60,0x122,_0x427c63._0x5585ba)+Date[_0x4cf291(0x28d,0x27a,_0x427c63._0x4cc1bc,_0x427c63._0x57be2c)]()+'-'+Math[_0x4cf291(0x28a,0x282,0x24f,_0x427c63._0x3f338e)]()[_0x4cf291(_0x427c63._0x12b6e6,0x290,_0x427c63._0x2ec135,_0x427c63._0x2a2e6d)](0x10)['slice'](0x2,0xa);}function createTurnId(_0x1b8a10){const _0x2a5a36={_0x47e9d8:0x2ae,_0x18c165:0x286,_0x47b015:0x287},_0x3838d7={_0x17f9dd:0x3b9,_0x2fd9a5:0x189,_0x30c5d1:0x149};function _0x43d47f(_0x2f1ced,_0x1d73ba,_0x319d20,_0x25f7b0){return _0x40aa26(_0x25f7b0-_0x3838d7._0x17f9dd,_0x1d73ba-_0x3838d7._0x2fd9a5,_0x319d20-_0x3838d7._0x30c5d1,_0x1d73ba);}return _0x43d47f(_0x2a5a36._0x47e9d8,_0x2a5a36._0x18c165,0x2b4,_0x2a5a36._0x47b015)+_0x1b8a10;}function _0x16f4(_0x1f15eb,_0x321b6d){_0x1f15eb=_0x1f15eb-0x86;const _0x2cee31=_0x2cee();let _0x16f4e8=_0x2cee31[_0x1f15eb];if(_0x16f4['tGmeAQ']===undefined){var _0x546638=function(_0x2a6acd){const _0x4e619d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x425b6f='',_0x455901='';for(let _0x162d71=0x0,_0xc80780,_0x3d9d07,_0x109324=0x0;_0x3d9d07=_0x2a6acd['charAt'](_0x109324++);~_0x3d9d07&&(_0xc80780=_0x162d71%0x4?_0xc80780*0x40+_0x3d9d07:_0x3d9d07,_0x162d71++%0x4)?_0x425b6f+=String['fromCharCode'](0xff&_0xc80780>>(-0x2*_0x162d71&0x6)):0x0){_0x3d9d07=_0x4e619d['indexOf'](_0x3d9d07);}for(let _0x9e5624=0x0,_0x556783=_0x425b6f['length'];_0x9e5624<_0x556783;_0x9e5624++){_0x455901+='%'+('00'+_0x425b6f['charCodeAt'](_0x9e5624)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x455901);};_0x16f4['yuVaww']=_0x546638,_0x16f4['QmUSFB']={},_0x16f4['tGmeAQ']=!![];}const _0x215da2=_0x2cee31[0x0],_0x2ee0c9=_0x1f15eb+_0x215da2,_0x546299=_0x16f4['QmUSFB'][_0x2ee0c9];return!_0x546299?(_0x16f4e8=_0x16f4['yuVaww'](_0x16f4e8),_0x16f4['QmUSFB'][_0x2ee0c9]=_0x16f4e8):_0x16f4e8=_0x546299,_0x16f4e8;}function createDefaultMessage(_0x3d0657){if(_0x3d0657===void 0x0)return void 0x0;return normalizeUserInput(_0x3d0657);}function normalizeUserInput(_0x201523){const _0x5347d0={_0x50412e:0x327,_0xdb7bc3:0x2bf,_0x5884c6:0x2e7,_0x5f2f8f:0x2ce,_0x247faa:0x280},_0x42ca87={_0x2b5c71:0x12,_0x1456df:0x1d4},_0x58b65b={_0x2896e7:0x180};if(typeof _0x201523===_0x39b40a(_0x5347d0._0x50412e,0x301,_0x5347d0._0xdb7bc3,0x2ce))return{'role':'user','content':[{'type':_0x39b40a(_0x5347d0._0x5884c6,0x2a6,_0x5347d0._0x5f2f8f,_0x5347d0._0x247faa),'text':_0x201523}]};function _0x39b40a(_0x6487cb,_0x3776b6,_0x2eb83b,_0x3dfd70){return _0x54cf75(_0x6487cb-0x189,_0x3776b6-_0x58b65b._0x2896e7,_0x3dfd70,_0x3dfd70-0x118);}function _0x12ce0b(_0x50291c,_0x5f14c4,_0x4c1fb2,_0x9a2a38){return _0x54cf75(_0x50291c-_0x42ca87._0x2b5c71,_0x4c1fb2- -0x27c,_0x5f14c4,_0x9a2a38-_0x42ca87._0x1456df);}return normalizeMessage(_0x201523);}function resolveChatModel(_0x51aa43){const _0x5357a4={_0x1dad16:0x27e,_0x498c17:0x2a4,_0x58e4fe:0x15b},_0x5b9bac={_0x6b0076:0x23b,_0x41630a:0x1,_0x34a618:0x198},_0x4a63c8={_0x207536:0x3a5};function _0x3c0607(_0x4fc63e,_0x3c4b89,_0x14bab5,_0x4ff653){return _0x40aa26(_0x14bab5-_0x4a63c8._0x207536,_0x3c4b89-0x52,_0x14bab5-0x43,_0x3c4b89);}function _0x53b58f(_0x47491e,_0x3ae242,_0x4ebf83,_0x2b8f1d){return _0x40aa26(_0x2b8f1d-_0x5b9bac._0x6b0076,_0x3ae242-_0x5b9bac._0x41630a,_0x4ebf83-_0x5b9bac._0x34a618,_0x47491e);}if(!_0x51aa43[_0x3c0607(_0x5357a4._0x1dad16,0x2a7,0x2b9,_0x5357a4._0x498c17)])throw new Error(_0x53b58f(_0x5357a4._0x58e4fe,0x198,0x175,_0x5357a4._0x58e4fe));return _0x51aa43['chatModel'];}function createRegistry(_0x24bbc2){const _0x53ebe7={_0x18b030:0x2ab,_0x25f6cd:0x30d,_0x202253:0x2f2,_0x2abb1e:0x2b5,_0x2f7356:0x275,_0xe017ac:0x2a9,_0x27bd3a:0x2dd,_0x3b249d:0x303,_0xa28e75:0x28f},_0x33c4e8={_0x484c66:0x108};if(_0x24bbc2[_0x5718b6(0x307,0x2f2,0x2e9,_0x53ebe7._0x18b030)])return _0x24bbc2[_0x5718b6(_0x53ebe7._0x25f6cd,_0x53ebe7._0x202253,_0x53ebe7._0x2abb1e,0x2a7)];function _0x5337ea(_0x3b5ce6,_0x3f8149,_0x89e12e,_0x57fe35){return _0x40aa26(_0x3b5ce6-0x3e0,_0x3f8149-0x121,_0x89e12e-0x1c9,_0x89e12e);}const _0x77611b=createExtensionRegistry(),_0x2f6a29=_0x24bbc2[_0x5337ea(_0x53ebe7._0x2f7356,0x2cb,0x221,_0x53ebe7._0xe017ac)]??[];for(const _0x56b65b of _0x2f6a29){_0x77611b[_0x5337ea(_0x53ebe7._0x27bd3a,_0x53ebe7._0x3b249d,_0x53ebe7._0xa28e75,_0x53ebe7._0x2abb1e)](_0x56b65b);}function _0x5718b6(_0x2bfb2b,_0x38a740,_0xaa9803,_0x6484da){return _0x54cf75(_0x2bfb2b-_0x33c4e8._0x484c66,_0x38a740-0x140,_0x2bfb2b,_0x6484da-0x16a);}return _0x77611b;}var Agent=class{[_0x54cf75(0x12b,0x12a,0x178,0x117)];[_0x40aa26(-0xf6,-0x122,-0x13c,-0xc6)];[_0x54cf75(0x13e,0x16d,0x143,0x1c4)];[_0x40aa26(-0xbc,-0xb2,-0xed,-0xa8)];[_0x54cf75(0x143,0x17d,0x17a,0x175)];[_0x54cf75(0x14a,0x11f,0x157,0x168)];[_0x54cf75(0x18d,0x1b0,0x1ea,0x188)];constructor(_0x1b2f92={}){const _0x15ef08={_0x33a52c:0x189,_0x3160c5:0x1b5,_0x2e54cf:0xd5,_0x171559:0x116,_0x44c952:0xcf,_0x54ce99:0xc9,_0x2c6743:0x1ba,_0x5254d1:0x1b0,_0x524db2:0x1d5,_0x58f29c:0x1e7,_0x5516eb:0x223,_0x3b3a60:0x1dc,_0x1bb4d3:0x92,_0x22f925:0x4f,_0x23edb9:0xd5,_0x3cd9dd:0xc5,_0x2b0b73:0x1d7,_0x3ce868:0x1ff,_0x2cb8cd:0x202,_0x100e73:0x1cd,_0x28e7d7:0x257,_0x9d9c7c:0x240,_0x42c7d7:0x1db,_0x5d99a8:0x143,_0x19bf97:0x1bb,_0x257b52:0x1cc},_0x5895c3={_0x14aeba:0x183},_0x15b6a4={_0x55d43b:0x446,_0x2367dd:0x3f7,_0x2eb495:0x434,_0x3ca01e:0x40c,_0x593fef:0x417},_0x48b691={_0x1ed1e4:0x13c,_0x4cb02b:0x159},_0x2d7b3b={_0x417548:0x48};this[_0x27e1e9(-0x159,-0x13a,-_0x15ef08._0x33a52c,-0x17e)]=_0x1b2f92[_0x27e1e9(-_0x15ef08._0x3160c5,-0x1d0,-0x15b,-0x17e)]??createSessionId(),this[_0x58601a(_0x15ef08._0x2e54cf,_0x15ef08._0x171559,_0x15ef08._0x44c952,_0x15ef08._0x54ce99)]=0x0,this['_systemPrompt']=_0x1b2f92[_0x27e1e9(-0x25c,-0x265,-0x1e8,-0x220)]??'',this[_0x27e1e9(-0x1f8,-0x1bb,-0x1df,-0x1d4)]=(_0x1b2f92[_0x27e1e9(-0x229,-0x1e9,-_0x15ef08._0x2c6743,-0x1d4)]??[])[_0x27e1e9(-0x213,-0x196,-_0x15ef08._0x5254d1,-_0x15ef08._0x524db2)](normalizeMessage),this[_0x27e1e9(-_0x15ef08._0x58f29c,-0x1e5,-0x270,-0x232)]=createDefaultMessage(_0x1b2f92[_0x27e1e9(-_0x15ef08._0x5516eb,-_0x15ef08._0x3b3a60,-0x226,-0x200)]);function _0x58601a(_0x2d4c69,_0x5df9f2,_0x4bf956,_0x30ad54){return _0x54cf75(_0x2d4c69-_0x2d7b3b._0x417548,_0x2d4c69- -0xdb,_0x30ad54,_0x30ad54-0xc5);}this[_0x58601a(_0x15ef08._0x1bb4d3,_0x15ef08._0x22f925,0x78,_0x15ef08._0x23edb9)]=createAgentMetrics({'getContextWindowLimit':_0x1b2f92['getContextWindowLimit']});const _0x3c9738=_0x1b2f92['onEvent'],_0x46068f=async(_0xb502,_0x1c7a72)=>{const _0x3effa5={_0xd6bb6f:0x3a2};function _0x3a36dd(_0xdc0465,_0x44f5b3,_0x26cf73,_0x462363){return _0x58601a(_0x462363-_0x48b691._0x1ed1e4,_0x44f5b3-_0x48b691._0x4cb02b,_0x26cf73-0x197,_0x26cf73);}this[_0x4e2b7f(0x420,_0x15b6a4._0x55d43b,_0x15b6a4._0x2367dd,_0x15b6a4._0x2eb495)][_0x4e2b7f(0x447,0x402,_0x15b6a4._0x3ca01e,_0x15b6a4._0x593fef)](_0xb502);function _0x4e2b7f(_0x3ca292,_0x369c00,_0x108465,_0x1b61db){return _0x58601a(_0x1b61db-_0x3effa5._0xd6bb6f,_0x369c00-0x8f,_0x108465-0xa,_0x369c00);}await _0x3c9738?.(_0xb502,_0x1c7a72);};function _0x27e1e9(_0x15c82f,_0x494157,_0x5f1c09,_0x44bd44){return _0x40aa26(_0x44bd44- -0xc2,_0x494157-0x61,_0x5f1c09-_0x5895c3._0x14aeba,_0x5f1c09);}const _0x4ab612=createInternalToolRuntime(_0x1b2f92['tools']??[],{'onEvent':_0x46068f,'onToolCall':_0x1b2f92[_0x58601a(_0x15ef08._0x3cd9dd,0x83,0xa1,0x11e)]});this['deps']={'registry':createRegistry(_0x1b2f92),'chatModel':resolveChatModel(_0x1b2f92),'toolRuntime':_0x4ab612,'askUser':_0x1b2f92[_0x27e1e9(-_0x15ef08._0x2b0b73,-_0x15ef08._0x3ce868,-_0x15ef08._0x2cb8cd,-_0x15ef08._0x100e73)],'setTopic':_0x1b2f92[_0x27e1e9(-_0x15ef08._0x28e7d7,-0x1d3,-_0x15ef08._0x9d9c7c,-0x20a)],'onEvent':_0x46068f,'sessionDir':_0x1b2f92[_0x27e1e9(-_0x15ef08._0x42c7d7,-0x16f,-_0x15ef08._0x5d99a8,-0x18c)],'outputFormat':_0x1b2f92[_0x27e1e9(-0x1d6,-_0x15ef08._0x19bf97,-0x1c9,-_0x15ef08._0x257b52)]};}get[_0x40aa26(-0x15e,-0x14d,-0x127,-0x174)](){const _0x2be2bf={_0x526ceb:0x193,_0x20743a:0x2d4,_0x2cd31a:0x14};function _0x3702c5(_0x28814d,_0x240fe7,_0x2b0ecd,_0x3c61eb){return _0x54cf75(_0x28814d-_0x2be2bf._0x526ceb,_0x28814d- -_0x2be2bf._0x20743a,_0x3c61eb,_0x3c61eb-_0x2be2bf._0x2cd31a);}return this[_0x3702c5(-0x1aa,-0x1ce,-0x17b,-0x1a4)];}['setTools'](_0x231439=[]){const _0x497b56={_0x274dde:0x112,_0x177a66:0x108},_0x1159e1={_0x4ac861:0x87};function _0x181d34(_0x4f2a11,_0x520646,_0x3e5608,_0x29afc6){return _0x54cf75(_0x4f2a11-0x113,_0x3e5608- -_0x1159e1._0x4ac861,_0x29afc6,_0x29afc6-0xd1);}this[_0x181d34(0xcb,0xda,_0x497b56._0x274dde,_0x497b56._0x177a66)]['toolRuntime']['setTools'](_0x231439);}[_0x40aa26(-0x11b,-0x107,-0xf5,-0xf7)](){const _0x13eb0e={_0x478ad9:0x216,_0x43335a:0x22b,_0x4e5ec0:0x236,_0x155693:0x1ac,_0x256a88:0x215},_0x5c079c={_0x32ae93:0x3c4,_0x56d32b:0xe},_0x416e86={_0x1491c1:0xfc,_0x54415d:0x1c2};function _0x3188df(_0xc72c6e,_0x2d9aaf,_0x5245da,_0x28e842){return _0x54cf75(_0xc72c6e-_0x416e86._0x1491c1,_0x28e842-_0x416e86._0x54415d,_0x2d9aaf,_0x28e842-0x127);}function _0x383737(_0x349d09,_0x4bc9f9,_0x25a1cb,_0x3a185a){return _0x54cf75(_0x349d09-0x25,_0x25a1cb- -_0x5c079c._0x32ae93,_0x4bc9f9,_0x3a185a-_0x5c079c._0x56d32b);}return this[_0x383737(-0x1dc,-_0x13eb0e._0x478ad9,-_0x13eb0e._0x43335a,-_0x13eb0e._0x4e5ec0)][_0x383737(-0x213,-_0x13eb0e._0x155693,-0x208,-_0x13eb0e._0x256a88)][_0x3188df(0x394,0x39d,0x38e,0x34a)]();}[_0x54cf75(0x176,0x14d,0x176,0x12b)](_0xde785c,_0x19c088={}){const _0x449f76={_0x45a39e:0x2,_0x12e92d:0xf,_0x12c899:0x39,_0x17e815:0xcb,_0x500e74:0x56,_0x4e66ae:0x4a5,_0x1b022c:0x487,_0x3a967c:0x4cf,_0x6db42a:0x46a,_0x199d09:0x4ba,_0x4384a9:0x49e},_0x4451d9={_0x3e54be:0x1c1},_0x1774d7={_0x509061:0xb8};this[_0x5f4ad2(0x63,_0x449f76._0x45a39e,-_0x449f76._0x12e92d,_0x449f76._0x12c899)]=_0xde785c;function _0x5f4ad2(_0x36916b,_0x5da329,_0x593f90,_0x32f460){return _0x54cf75(_0x36916b-_0x1774d7._0x509061,_0x32f460- -0xf1,_0x5da329,_0x32f460-0x65);}function _0x41dd23(_0x581c72,_0x4fe113,_0x57e533,_0x18efa5){return _0x40aa26(_0x581c72-0x5b7,_0x4fe113-0x126,_0x57e533-_0x4451d9._0x3e54be,_0x4fe113);}_0x19c088[_0x5f4ad2(0x5c,_0x449f76._0x17e815,_0x449f76._0x500e74,0x9a)]===!![]&&(this[_0x41dd23(_0x449f76._0x4e66ae,_0x449f76._0x1b022c,_0x449f76._0x3a967c,_0x449f76._0x6db42a)]=[],this[_0x41dd23(0x4d8,0x4d0,_0x449f76._0x199d09,_0x449f76._0x4384a9)]=0x0);}[_0x54cf75(0x11c,0x15b,0x1a8,0x1a9)](_0x29e99f){const _0x37f77b={_0xba4413:0x8d,_0xa9b72:0x52};function _0x2e95e7(_0x41a7d4,_0x5ae8c3,_0x25a6cb,_0x1b25c0){return _0x54cf75(_0x41a7d4-0x13e,_0x1b25c0- -0x126,_0x25a6cb,_0x1b25c0-0x18a);}this[_0x2e95e7(_0x37f77b._0xba4413,0xd6,_0x37f77b._0xa9b72,0xad)]=_0x29e99f;}[_0x54cf75(0x1d1,0x1b8,0x18b,0x19e)](_0x183118){this['deps']['chatModel']=_0x183118;}async[_0x54cf75(0x193,0x19c,0x156,0x146)](_0x30175b=this[_0x54cf75(0x15f,0x11f,0xde,0x175)],_0x4dea1f={}){const _0x4f436b={_0x16d242:0x5e,_0x50000a:0x5e,_0x2004f8:0x96,_0x188033:0x31,_0x3a267c:0x163,_0x24fc0e:0x148,_0x36c10f:0x17d,_0x117ca7:0x21,_0x324c1b:0x7e,_0x84d37e:0x75,_0x1d1037:0xac,_0x243cf0:0xa1,_0x2fea6a:0x5b,_0x56e8ea:0x93,_0x254356:0x6e,_0x2c7955:0xb5,_0x398b0f:0xee,_0x46545b:0x106,_0x3be617:0x101,_0x71d216:0x12c,_0x20a621:0x12b,_0x32243f:0xec,_0x26bcba:0x54,_0x207797:0x6f,_0x1f95a4:0x55,_0x4b5380:0x11,_0x186895:0x109,_0x268fc5:0x140,_0x1763cb:0xee,_0x56d4d9:0x12d,_0x5d0d78:0xfd,_0x16b317:0x114,_0x3167e9:0xde,_0x41c07f:0x101,_0x28e091:0x143,_0x446aba:0x100,_0xbe6f11:0x73,_0x4469d2:0x2e,_0x2c1826:0x82},_0x13bb25={_0x594877:0x4e,_0x1b16a2:0x7c};function _0x259cb2(_0x29152f,_0x2ee279,_0x558c6c,_0x1593a0){return _0x54cf75(_0x29152f-_0x13bb25._0x594877,_0x1593a0- -_0x13bb25._0x1b16a2,_0x29152f,_0x1593a0-0x1b);}if(!_0x30175b)throw new Error(_0x3bfb7d(-_0x4f436b._0x16d242,-_0x4f436b._0x50000a,-_0x4f436b._0x2004f8,-0xe5));function _0x3bfb7d(_0x1af860,_0x2a7b3d,_0x5888f5,_0x1b2272){return _0x40aa26(_0x5888f5-0xbe,_0x2a7b3d-0x19f,_0x5888f5-0x185,_0x1af860);}this[_0x3bfb7d(-0x15,0x35,-0x21,_0x4f436b._0x188033)]+=0x1;try{const _0x7fb19f=await runTurn({'sessionId':this[_0x259cb2(_0x4f436b._0x3a267c,_0x4f436b._0x24fc0e,_0x4f436b._0x36c10f,0x157)],'turnId':createTurnId(this[_0x3bfb7d(-0x4b,-0x39,-_0x4f436b._0x117ca7,-0x8)]),'streaming':_0x4dea1f[_0x3bfb7d(-_0x4f436b._0x324c1b,-_0x4f436b._0x84d37e,-_0x4f436b._0x1d1037,-_0x4f436b._0x243cf0)],'signal':_0x4dea1f[_0x3bfb7d(-0xd0,-_0x4f436b._0x2fea6a,-_0x4f436b._0x56e8ea,-0x8e)],'system':this[_0x259cb2(0x65,_0x4f436b._0x254356,0xd9,_0x4f436b._0x2c7955)],'messages':this[_0x259cb2(0xbf,_0x4f436b._0x398b0f,_0x4f436b._0x46545b,_0x4f436b._0x3be617)],'message':normalizeUserInput(_0x30175b)},this['deps']);return this[_0x259cb2(_0x4f436b._0x71d216,_0x4f436b._0x20a621,_0x4f436b._0x32243f,0x101)]=_0x7fb19f['state'][_0x3bfb7d(-0xad,-0x88,-_0x4f436b._0x26bcba,-_0x4f436b._0x207797)][_0x3bfb7d(-0x13,-0x40,-_0x4f436b._0x1f95a4,-_0x4f436b._0x4b5380)](normalizeMessage),_0x7fb19f;}catch(_0x3451f4){if(_0x3451f4 instanceof TurnFailedError){this[_0x259cb2(_0x4f436b._0x186895,_0x4f436b._0x268fc5,_0x4f436b._0x1763cb,0x101)]=synthesizeMissingToolResults(_0x3451f4[_0x259cb2(0xf6,_0x4f436b._0x56d4d9,0xd4,0x12b)][_0x259cb2(_0x4f436b._0x5d0d78,_0x4f436b._0x16b317,_0x4f436b._0x3167e9,_0x4f436b._0x41c07f)][_0x259cb2(_0x4f436b._0x186895,_0x4f436b._0x20a621,_0x4f436b._0x28e091,_0x4f436b._0x446aba)](normalizeMessage));throw _0x3451f4[_0x3bfb7d(-_0x4f436b._0xbe6f11,-_0x4f436b._0x4469d2,-0x61,-_0x4f436b._0x2c1826)];}throw _0x3451f4;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
@@ -1 +1 @@
1
- function _0xf0a0cd(_0xfc30df,_0x21dfa3,_0x53893d,_0x5e931b){var _0x51ab92={_0x2e7433:0x3a4};return _0x49d2(_0x5e931b- -_0x51ab92._0x2e7433,_0x53893d);}(function(_0x26010f,_0x2cd76a){var _0x3615ef={_0x1e3c32:0x434,_0x2a9489:0x388,_0x3e635d:0x424,_0x498a1d:0x389,_0x481a2:0x430,_0x1a0161:0x42f,_0x5bca69:0x42e,_0x12362b:0x37e,_0x2d299f:0x383,_0x195263:0x41f,_0x20a70d:0x41c},_0x5a5fd7={_0xdea43:0x2fa};function _0x5236b0(_0x111049,_0x414d9,_0x12d63a,_0x4a2da6){return _0x49d2(_0x111049-0x39f,_0x4a2da6);}function _0x11a8b9(_0x2f5ca1,_0x105220,_0xcf5468,_0x181339){return _0x49d2(_0x181339-_0x5a5fd7._0xdea43,_0x2f5ca1);}var _0xd633a7=_0x26010f();while(!![]){try{var _0x10ba89=parseInt(_0x5236b0(0x432,0x439,0x42e,_0x3615ef._0x1e3c32))/0x1+-parseInt(_0x11a8b9(0x392,0x38d,0x37f,_0x3615ef._0x2a9489))/0x2+-parseInt(_0x5236b0(0x42c,0x424,_0x3615ef._0x3e635d,0x427))/0x3+-parseInt(_0x5236b0(0x42b,0x432,0x421,0x42d))/0x4+parseInt(_0x11a8b9(_0x3615ef._0x498a1d,0x38a,0x38f,0x38c))/0x5+parseInt(_0x5236b0(_0x3615ef._0x481a2,_0x3615ef._0x1a0161,_0x3615ef._0x1a0161,_0x3615ef._0x5bca69))/0x6*(parseInt(_0x11a8b9(0x383,_0x3615ef._0x12362b,_0x3615ef._0x2d299f,0x37c))/0x7)+parseInt(_0x5236b0(0x422,_0x3615ef._0x195263,_0x3615ef._0x20a70d,0x41b))/0x8*(parseInt(_0x11a8b9(0x388,0x37f,0x377,0x380))/0x9);if(_0x10ba89===_0x2cd76a)break;else _0xd633a7['push'](_0xd633a7['shift']());}catch(_0x4f6610){_0xd633a7['push'](_0xd633a7['shift']());}}}(_0x2af8,0xa179c));var OperationAbortedError=class extends Error{[_0xf0a0cd(-0x322,-0x313,-0x31d,-0x319)]=_0xf8e158(-0x249,-0x243,-0x250,-0x248);constructor(_0x3a5c77=_0xf0a0cd(-0x322,-0x319,-0x31b,-0x31c)){var _0x1cd35b={_0x48f926:0x13f,_0x141988:0x151,_0x341d44:0x146,_0x155d9c:0x146},_0x452bb3={_0x276aaa:0x97,_0x5bf761:0x255},_0x1e676a={_0x5576c7:0xc5,_0x6d75dc:0x468};function _0x985715(_0x24d588,_0x51b68c,_0x3cf88b,_0x4169f1){return _0xf0a0cd(_0x24d588-0x9b,_0x51b68c-_0x1e676a._0x5576c7,_0x3cf88b,_0x24d588-_0x1e676a._0x6d75dc);}super(_0x3a5c77);function _0x14926f(_0x4fd29f,_0x22cbc7,_0x39bff9,_0x46e668){return _0xf0a0cd(_0x4fd29f-0x6b,_0x22cbc7-_0x452bb3._0x276aaa,_0x46e668,_0x4fd29f-_0x452bb3._0x5bf761);}this[_0x985715(0x149,_0x1cd35b._0x48f926,0x14e,_0x1cd35b._0x141988)]=_0x985715(0x14b,_0x1cd35b._0x341d44,_0x1cd35b._0x155d9c,0x155);}};function toAbortError(_0x984e94){var _0x45bb22={_0x5efb58:0x25,_0x391bb1:0x29,_0x1566ac:0x1e,_0x3ac9ec:0x1e,_0x24f4ac:0x28,_0x44850c:0x30,_0x34d0ab:0x3a},_0x12c872={_0x1627e6:0x1d7},_0x4b44a2={_0x19f509:0x1ea};if(isAbortError(_0x984e94))return _0x984e94;function _0x331a77(_0x16a074,_0x3db3b2,_0x1a692e,_0x482e35){return _0xf8e158(_0x16a074-0x9e,_0x3db3b2-_0x4b44a2._0x19f509,_0x16a074,_0x3db3b2-0x22f);}if(_0x984e94 instanceof Error)return new OperationAbortedError(_0x984e94[_0x331a77(-_0x45bb22._0x5efb58,-0x24,-_0x45bb22._0x391bb1,-_0x45bb22._0x1566ac)]);if(typeof _0x984e94===_0x331a77(-0x1b,-_0x45bb22._0x3ac9ec,-0x1d,-_0x45bb22._0x24f4ac)&&_0x984e94[_0x49096e(-_0x45bb22._0x44850c,-_0x45bb22._0x34d0ab,-0x34,-0x3c)]>0x0)return new OperationAbortedError(_0x984e94);function _0x49096e(_0x549e4f,_0x2d89a3,_0xb4c56a,_0x4f551c){return _0xf8e158(_0x549e4f-0x140,_0x2d89a3-_0x12c872._0x1627e6,_0x4f551c,_0x2d89a3-0x214);}return new OperationAbortedError();}function _0xf8e158(_0x233c5b,_0x5c5c1b,_0x1cde4,_0x414542){var _0x48a72b={_0x172532:0x2d7};return _0x49d2(_0x414542- -_0x48a72b._0x172532,_0x1cde4);}function isAbortError(_0x50844d){var _0x5ed930={_0x6a0f9e:0x15e,_0x441333:0x164,_0x901867:0x241,_0x28edf6:0x242,_0x59582a:0x243,_0x1f7541:0x163,_0x602a01:0x162,_0x52635d:0x167,_0x45ec5f:0x15d,_0x1b430f:0x161,_0x5b6fc9:0x24a,_0x21cd58:0x248},_0x324d0e={_0x2e8426:0x181},_0x40764f={_0x1cf8e0:0x3ad};function _0xa8c85f(_0x4e7f82,_0x1fab4a,_0x5a968a,_0x4aab43){return _0xf8e158(_0x4e7f82-0xa5,_0x1fab4a-0x64,_0x4e7f82,_0x5a968a-_0x40764f._0x1cf8e0);}function _0x56e772(_0x215472,_0x55be0a,_0x29d955,_0x4881f4){return _0xf0a0cd(_0x215472-0xc6,_0x55be0a-_0x324d0e._0x2e8426,_0x4881f4,_0x55be0a-0x55f);}return _0x50844d instanceof OperationAbortedError||_0x50844d instanceof Error&&(_0x50844d[_0xa8c85f(_0x5ed930._0x6a0f9e,0x157,0x15b,_0x5ed930._0x441333)]===_0x56e772(_0x5ed930._0x901867,_0x5ed930._0x28edf6,_0x5ed930._0x59582a,0x24a)||_0xa8c85f(_0x5ed930._0x1f7541,_0x5ed930._0x602a01,0x161,_0x5ed930._0x52635d)in _0x50844d&&_0x50844d[_0xa8c85f(_0x5ed930._0x45ec5f,0x168,_0x5ed930._0x1b430f,0x16a)]===_0x56e772(_0x5ed930._0x5b6fc9,_0x5ed930._0x5b6fc9,_0x5ed930._0x21cd58,0x249));}function throwIfAborted(_0x157b0b){var _0x3be020={_0x4687cc:0xe0,_0x2e2f15:0xe2,_0x38dfeb:0xde,_0x2f1a8e:0xdb};function _0x5d96fe(_0x13b3c8,_0x1680a2,_0x1359df,_0x5b2dcd){return _0xf0a0cd(_0x13b3c8-0x123,_0x1680a2-0x15e,_0x13b3c8,_0x1359df-0x245);}if(!_0x157b0b?.['aborted'])return;throw toAbortError(_0x157b0b[_0x5d96fe(-_0x3be020._0x4687cc,-_0x3be020._0x2e2f15,-_0x3be020._0x38dfeb,-_0x3be020._0x2f1a8e)]);}function _0x49d2(_0x54eb1e,_0x308158){_0x54eb1e=_0x54eb1e-0x80;var _0x2af8aa=_0x2af8();var _0x49d233=_0x2af8aa[_0x54eb1e];if(_0x49d2['dnchra']===undefined){var _0x2a0be8=function(_0x228550){var _0x568767='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3a5c77='',_0x984e94='';for(var _0x50844d=0x0,_0x157b0b,_0x3c6b2c,_0x47ae82=0x0;_0x3c6b2c=_0x228550['charAt'](_0x47ae82++);~_0x3c6b2c&&(_0x157b0b=_0x50844d%0x4?_0x157b0b*0x40+_0x3c6b2c:_0x3c6b2c,_0x50844d++%0x4)?_0x3a5c77+=String['fromCharCode'](0xff&_0x157b0b>>(-0x2*_0x50844d&0x6)):0x0){_0x3c6b2c=_0x568767['indexOf'](_0x3c6b2c);}for(var _0x486116=0x0,_0x3b7df9=_0x3a5c77['length'];_0x486116<_0x3b7df9;_0x486116++){_0x984e94+='%'+('00'+_0x3a5c77['charCodeAt'](_0x486116)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x984e94);};_0x49d2['SwWDXw']=_0x2a0be8,_0x49d2['kKnzeI']={},_0x49d2['dnchra']=!![];}var _0x2a7d82=_0x2af8aa[0x0],_0x3161b6=_0x54eb1e+_0x2a7d82,_0x1d5693=_0x49d2['kKnzeI'][_0x3161b6];return!_0x1d5693?(_0x49d233=_0x49d2['SwWDXw'](_0x49d233),_0x49d2['kKnzeI'][_0x3161b6]=_0x49d233):_0x49d233=_0x1d5693,_0x49d233;}function addAbortListener(_0x3c6b2c,_0x47ae82){var _0x45bdd2={_0x4a0860:0x321,_0x52ca15:0x325},_0x1bc8c0={_0x5755d5:0x9e},_0x529a2c={_0x5b1959:0x71,_0x761556:0x14c,_0x2ba991:0x56c};if(!_0x3c6b2c)return()=>{};if(_0x3c6b2c[_0x56d4e2(_0x45bdd2._0x4a0860,0x324,0x329,_0x45bdd2._0x52ca15)])return _0x47ae82(),()=>{};function _0x56d4e2(_0x1d7048,_0xd67fa7,_0x342ca0,_0x4c0762){return _0xf8e158(_0x1d7048-_0x529a2c._0x5b1959,_0xd67fa7-_0x529a2c._0x761556,_0xd67fa7,_0x4c0762-_0x529a2c._0x2ba991);}const _0x486116=()=>{_0x47ae82();};return _0x3c6b2c['addEventListener']('abort',_0x486116,{'once':!![]}),()=>{var _0x15073f={_0x49a830:0x112,_0x56fca5:0x27d};function _0x85b200(_0x50d3f7,_0x45688a,_0x1b5b28,_0x1037c1){return _0x56d4e2(_0x50d3f7-_0x15073f._0x49a830,_0x45688a,_0x1b5b28-0x2e,_0x1b5b28- -_0x15073f._0x56fca5);}_0x3c6b2c['removeEventListener'](_0x85b200(_0x1bc8c0._0x5755d5,0xa1,0x98,0x96),_0x486116);};}function _0x2af8(){var _0x364757=['ywjVCNq','CMvHC29U','n2nhAu5xBq','mty0odq3mKTsDu9qwa','BwvZC2fNzq','BMfTzq','mtHPr2rdswi','qwjVCNrfCNjVCG','t3bLCMf0Aw9UigfIB3j0zwq','BgvUz3rO','C3rYAw5N','y29Kzq','mtu2mJe3mMDJEvrcqW','mJu4mtKZmLbjwvvcAq','mZeXnJGWBLjUuvrM','qujpuLrFrvjs','ywjVCNrLza','mZyZnZG2yND2DfDm','mJi3nti3merQrKnPCW','mte0mdyYoeHorufXtG'];_0x2af8=function(){return _0x364757;};return _0x2af8();}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
1
+ function _0x4cb079(_0x46394d,_0x521b01,_0x17578a,_0xda0d30){return _0x23b3(_0x521b01- -0x2df,_0x46394d);}function _0x23b3(_0x364644,_0xff8029){_0x364644=_0x364644-0xfa;var _0x4f7034=_0x4f70();var _0x23b317=_0x4f7034[_0x364644];if(_0x23b3['HvSesO']===undefined){var _0x2d24a9=function(_0x539346){var _0xcc4cc0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3d0356='',_0x4f3015='';for(var _0x12429d=0x0,_0x5802d8,_0x31acf4,_0x22bebb=0x0;_0x31acf4=_0x539346['charAt'](_0x22bebb++);~_0x31acf4&&(_0x5802d8=_0x12429d%0x4?_0x5802d8*0x40+_0x31acf4:_0x31acf4,_0x12429d++%0x4)?_0x3d0356+=String['fromCharCode'](0xff&_0x5802d8>>(-0x2*_0x12429d&0x6)):0x0){_0x31acf4=_0xcc4cc0['indexOf'](_0x31acf4);}for(var _0x4459a3=0x0,_0x245b5e=_0x3d0356['length'];_0x4459a3<_0x245b5e;_0x4459a3++){_0x4f3015+='%'+('00'+_0x3d0356['charCodeAt'](_0x4459a3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4f3015);};_0x23b3['gTelXg']=_0x2d24a9,_0x23b3['AElYbW']={},_0x23b3['HvSesO']=!![];}var _0x2c7b82=_0x4f7034[0x0],_0x4e4c56=_0x364644+_0x2c7b82,_0x291f8f=_0x23b3['AElYbW'][_0x4e4c56];return!_0x291f8f?(_0x23b317=_0x23b3['gTelXg'](_0x23b317),_0x23b3['AElYbW'][_0x4e4c56]=_0x23b317):_0x23b317=_0x291f8f,_0x23b317;}(function(_0x3a111b,_0x2dbaa0){var _0x545804={_0x42e797:0xf2,_0x5a3d5d:0xe9,_0xc96a6b:0xfc,_0x1f2f8b:0xfd,_0x24adfb:0x2b0,_0x4e7a05:0x2aa,_0x395056:0x2a5,_0x32b6f9:0x29d,_0x25a306:0x2a2,_0x3d3929:0xeb,_0x4c0790:0xf5,_0x134af5:0xec,_0x25a0f3:0xf3,_0x441fbe:0x2ac,_0x14163c:0x2b5,_0xc9ea5f:0x2b5,_0xaa7ce0:0x2b8},_0x25f12f=_0x3a111b();function _0x39c8a8(_0x159d9b,_0x35c288,_0x3ccceb,_0x14dea5){return _0x23b3(_0x35c288- -0xd,_0x159d9b);}function _0x4f81eb(_0x254d70,_0x425655,_0x46c0ab,_0x42913d){return _0x23b3(_0x46c0ab- -0x3b2,_0x254d70);}while(!![]){try{var _0x592fe2=-parseInt(_0x39c8a8(0xf3,_0x545804._0x42e797,_0x545804._0x5a3d5d,_0x545804._0xc96a6b))/0x1+-parseInt(_0x39c8a8(0xf7,0xf7,0x100,_0x545804._0x1f2f8b))/0x2+-parseInt(_0x4f81eb(-_0x545804._0x24adfb,-0x2ad,-_0x545804._0x4e7a05,-_0x545804._0x395056))/0x3+parseInt(_0x4f81eb(-_0x545804._0x32b6f9,-_0x545804._0x25a306,-0x2a7,-0x2af))/0x4+-parseInt(_0x39c8a8(_0x545804._0x3d3929,_0x545804._0x4c0790,_0x545804._0x134af5,0xef))/0x5+parseInt(_0x39c8a8(0x105,0xff,0xfa,0xfe))/0x6+-parseInt(_0x39c8a8(0xf8,_0x545804._0x25a0f3,0xe9,_0x545804._0x42e797))/0x7*(-parseInt(_0x4f81eb(-_0x545804._0x441fbe,-_0x545804._0x14163c,-_0x545804._0xc9ea5f,-_0x545804._0xaa7ce0))/0x8);if(_0x592fe2===_0x2dbaa0)break;else _0x25f12f['push'](_0x25f12f['shift']());}catch(_0x37b2d5){_0x25f12f['push'](_0x25f12f['shift']());}}}(_0x4f70,0x6c2ab));function _0x42abc9(_0x32db52,_0x11d2a1,_0x3afa4c,_0x2499b8){var _0x1e2768={_0x1f0007:0x111};return _0x23b3(_0x2499b8- -_0x1e2768._0x1f0007,_0x11d2a1);}var OperationAbortedError=class extends Error{['code']=_0x4cb079(-0x1d4,-0x1d8,-0x1cf,-0x1db);constructor(_0x3d0356=_0x42abc9(-0xe,-0x15,-0xf,-0x10)){var _0x1e50a6={_0x339271:0x3ec},_0x40dd2e={_0xadbe5a:0x10c};super(_0x3d0356);function _0x161238(_0x428211,_0x1c16b3,_0x520f9c,_0x11e0fb){return _0x4cb079(_0x520f9c,_0x1c16b3-0x5c6,_0x520f9c-0x1ba,_0x11e0fb-_0x40dd2e._0xadbe5a);}this['name']=_0x161238(0x3e6,_0x1e50a6._0x339271,0x3ec,0x3ea);}};function toAbortError(_0x4f3015){var _0x2ba9be={_0x306b3f:0x480,_0x49dd8c:0x242},_0x4e83a7={_0x1a6042:0xa7,_0x55bf2d:0x80},_0x519eac={_0x5f1af7:0x238};function _0x37b648(_0x5ce3f1,_0x346227,_0x217b8a,_0x34f549){return _0x42abc9(_0x5ce3f1-0x32,_0x217b8a,_0x217b8a-0x63,_0x5ce3f1- -_0x519eac._0x5f1af7);}if(isAbortError(_0x4f3015))return _0x4f3015;function _0x3cbbd9(_0x32183e,_0x2eb5a0,_0xb0d0e1,_0x2414d7){return _0x4cb079(_0x32183e,_0xb0d0e1-0x665,_0xb0d0e1-_0x4e83a7._0x1a6042,_0x2414d7-_0x4e83a7._0x55bf2d);}if(_0x4f3015 instanceof Error)return new OperationAbortedError(_0x4f3015['message']);if(typeof _0x4f3015===_0x3cbbd9(0x478,0x47d,_0x2ba9be._0x306b3f,0x489)&&_0x4f3015[_0x37b648(-0x24b,-0x24b,-_0x2ba9be._0x49dd8c,-0x242)]>0x0)return new OperationAbortedError(_0x4f3015);return new OperationAbortedError();}function isAbortError(_0x12429d){var _0x4dcb2f={_0x3e5fc8:0x281,_0xdd48a3:0x27b,_0x205a69:0x246,_0x105967:0x279,_0x18e8ef:0x270,_0x1ca302:0x271,_0x23e2f3:0x253,_0x1829e9:0x254,_0x32decd:0x24b},_0x42ea2d={_0x53cdd7:0x423,_0x1bba63:0x158},_0x4214bc={_0x46a452:0x455,_0x4b0e53:0xe6};function _0x304287(_0x293175,_0x3d509a,_0xb6d404,_0x55e16e){return _0x4cb079(_0x3d509a,_0x55e16e-_0x4214bc._0x46a452,_0xb6d404-0x18e,_0x55e16e-_0x4214bc._0x4b0e53);}function _0x1d2a19(_0xf8088,_0x13effd,_0x57057f,_0x19ab7a){return _0x4cb079(_0x13effd,_0x19ab7a-_0x42ea2d._0x53cdd7,_0x57057f-0x1a8,_0x19ab7a-_0x42ea2d._0x1bba63);}return _0x12429d instanceof OperationAbortedError||_0x12429d instanceof Error&&(_0x12429d['name']===_0x304287(_0x4dcb2f._0x3e5fc8,_0x4dcb2f._0xdd48a3,0x274,_0x4dcb2f._0xdd48a3)||_0x1d2a19(0x247,0x238,_0x4dcb2f._0x205a69,0x23f)in _0x12429d&&_0x12429d[_0x304287(0x270,_0x4dcb2f._0x105967,_0x4dcb2f._0x18e8ef,_0x4dcb2f._0x1ca302)]===_0x1d2a19(_0x4dcb2f._0x23e2f3,0x246,_0x4dcb2f._0x1829e9,_0x4dcb2f._0x32decd));}function throwIfAborted(_0x5802d8){var _0x336ae6={_0x487de3:0x8},_0x4399f5={_0x2df58a:0x74},_0x34a218={_0x271a51:0x47};function _0x3a7e55(_0x318a6e,_0x12ead4,_0x36f3a1,_0xefced){return _0x42abc9(_0x318a6e-_0x34a218._0x271a51,_0x318a6e,_0x36f3a1-0x61,_0x12ead4-0x1d1);}if(!_0x5802d8?.[_0x3a7e55(0x1c3,0x1c6,0x1c8,0x1c8)])return;function _0xe78954(_0x372bf6,_0x1cbc02,_0x57e29f,_0x1dccbf){return _0x42abc9(_0x372bf6-0xd9,_0x57e29f,_0x57e29f-_0x4399f5._0x2df58a,_0x372bf6-0x23);}throw toAbortError(_0x5802d8[_0xe78954(0xe,0x11,0xb,_0x336ae6._0x487de3)]);}function addAbortListener(_0x31acf4,_0x22bebb){var _0x37b6d4={_0x52d628:0x1f,_0x30e9e0:0x27,_0x3e8a68:0x17,_0x44b798:0x28,_0x5a92d1:0x4e7},_0x4dc7d4={_0x180fcc:0x313,_0x5555d1:0x31a,_0x785492:0x31c,_0x3a75ee:0x32c},_0x5a3c8d={_0x1e92a9:0x1b2},_0x188961={_0x1fb204:0x17a};if(!_0x31acf4)return()=>{};if(_0x31acf4[_0x2449e1(_0x37b6d4._0x52d628,_0x37b6d4._0x30e9e0,_0x37b6d4._0x3e8a68,_0x37b6d4._0x44b798)])return _0x22bebb(),()=>{};const _0x4459a3=()=>{_0x22bebb();};function _0x417ca4(_0x4ee581,_0x1cbe7e,_0x2356b1,_0x4f2496){return _0x42abc9(_0x4ee581-_0x188961._0x1fb204,_0x1cbe7e,_0x2356b1-0x27,_0x4f2496-0x4e6);}function _0x2449e1(_0x5c9ed2,_0x1362fd,_0x54fff5,_0x33be14){return _0x42abc9(_0x5c9ed2-0x126,_0x54fff5,_0x54fff5-0x19f,_0x5c9ed2-0x2a);}return _0x31acf4[_0x417ca4(0x4e5,_0x37b6d4._0x5a92d1,0x4d9,0x4de)]('abort',_0x4459a3,{'once':!![]}),()=>{function _0x49280f(_0x11c82a,_0x4c7249,_0xe45376,_0xf945f7){return _0x417ca4(_0x11c82a-0x3,_0x4c7249,_0xe45376-0x1d7,_0xf945f7- -_0x5a3c8d._0x1e92a9);}function _0x4c52d2(_0x2b242c,_0x3e5f71,_0x1347a1,_0x32c729){return _0x2449e1(_0x32c729-0x300,_0x3e5f71-0x113,_0x3e5f71,_0x32c729-0x38);}_0x31acf4[_0x4c52d2(0x317,_0x4dc7d4._0x180fcc,_0x4dc7d4._0x5555d1,_0x4dc7d4._0x785492)](_0x49280f(0x325,_0x4dc7d4._0x3a75ee,0x327,0x32d),_0x4459a3);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};function _0x4f70(){var _0x52d725=['mtC0mZu4ogPlq0D4wq','ywrKrxzLBNrmAxn0zw5LCG','ywjVCNq','mtKXntu3mMv0BMHmCq','mZy5nZGXohDNshPQAa','C3rYAw5N','y29Kzq','CMvHC29U','ogrvqNHyAW','BgvUz3rO','ndu1odm1q0XUD3DY','mta2odq3mdL3ENHXEve','t3bLCMf0Aw9UigfIB3j0zwq','mJq3nJC0mfPlv2Ldvq','CMvTB3zLrxzLBNrmAxn0zw5LCG','mti5mJmWnNHXAwvmAq','qwjVCNrfCNjVCG','ywjVCNrLza','qujpuLrFrvjs'];_0x4f70=function(){return _0x52d725;};return _0x4f70();}