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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0xd02a3a,_0x352238){const _0x51a548={_0x3207db:0x8c,_0x21e70c:0x16f,_0x32e03:0x148,_0x568c67:0x76,_0x50755e:0x12c,_0x597eeb:0x93,_0xac0349:0x23,_0x46166b:0x21,_0x41b803:0xfa,_0x258d54:0xb4,_0x1bc9b5:0x152,_0x29f5ab:0x245,_0x2c29c0:0x14,_0x2c22ea:0x123,_0x28c501:0x60,_0x4ee3b3:0xb,_0x473f6:0x1fb,_0x30c604:0x1c4,_0x438c25:0x261,_0x2ac13d:0x6d},_0x300fdc={_0x1ea094:0x213},_0x4aa2d2={_0x222aa0:0x90},_0x105282=_0xd02a3a();function _0x15e588(_0x3908a3,_0x2ecd43,_0xa972d1,_0x36dea5){return _0x2cfd(_0x2ecd43- -_0x4aa2d2._0x222aa0,_0x3908a3);}function _0x588495(_0x207cbb,_0x20a5cc,_0xccd39e,_0x54527c){return _0x2cfd(_0xccd39e- -_0x300fdc._0x1ea094,_0x54527c);}while(!![]){try{const _0x2de410=-parseInt(_0x588495(_0x51a548._0x3207db,0x14,0x6a,-0x12))/0x1*(parseInt(_0x588495(-_0x51a548._0x21e70c,-_0x51a548._0x32e03,-0xf3,-0x182))/0x2)+-parseInt(_0x15e588(-0x1a,0xa8,0x58,-0x22))/0x3+parseInt(_0x588495(_0x51a548._0x568c67,_0x51a548._0x50755e,_0x51a548._0x597eeb,_0x51a548._0xac0349))/0x4*(parseInt(_0x588495(-0x5d,0x6c,-0x18,-_0x51a548._0x46166b))/0x5)+-parseInt(_0x15e588(0xe0,_0x51a548._0x41b803,0x50,_0x51a548._0x258d54))/0x6+parseInt(_0x15e588(_0x51a548._0x1bc9b5,0x1f7,0x18c,_0x51a548._0x29f5ab))/0x7+parseInt(_0x588495(_0x51a548._0x2c29c0,_0x51a548._0x2c22ea,_0x51a548._0x28c501,_0x51a548._0x4ee3b3))/0x8+parseInt(_0x15e588(_0x51a548._0x473f6,_0x51a548._0x30c604,_0x51a548._0x438c25,0x1bd))/0x9*(-parseInt(_0x588495(_0x51a548._0x2ac13d,0x76,0x1c,_0x51a548._0x2c29c0))/0xa);if(_0x2de410===_0x352238)break;else _0x105282['push'](_0x105282['shift']());}catch(_0x4b6b21){_0x105282['push'](_0x105282['shift']());}}}(_0x521a,0x8cd4c));import{toOpenAiResponsesRequest}from'../chunk-LXQDGX4K.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x414b70){const _0x1d4348={_0xb60870:0x5bb,_0x3dc166:0x3f7};super(_0x414b70);function _0x2a726a(_0x3005ca,_0x1514dd,_0x38e1b1,_0x43cea3){return _0x2cfd(_0x38e1b1-0x276,_0x1514dd);}function _0x432f7c(_0x31c4bc,_0x34bb2e,_0x459925,_0x1c1fc2){return _0x2cfd(_0x31c4bc-0x84,_0x459925);}this[_0x2a726a(0x59a,_0x1d4348._0xb60870,0x506,0x4ac)]=_0x2a726a(0x302,0x431,0x393,_0x1d4348._0x3dc166);}},ProviderStreamEventError=class extends Error{['code'];['retryable'];[_0x18006e(0x7b,0x24,0x33,0x8c)];constructor(_0x3af60d,_0x5e5526={}){const _0x4fcac4={_0xde9d28:0x46e,_0x1e0507:0x4eb,_0x48bd2f:0x453,_0x2180c6:0x35d,_0x4d9233:0x446,_0x5327bb:0x391,_0xb42ed4:0x357,_0x44d520:0x32c,_0x367252:0x38a,_0x3f4eff:0x2f4,_0x8535e2:0x2c7,_0x3d259a:0x3d1,_0x87cc6e:0x3a5,_0x6488b4:0x492,_0x463772:0x3a6,_0x18899d:0x38e,_0x5dc96b:0x3af},_0x2a4a3d={_0x531aa1:0x19b,_0x2d9c8f:0x153,_0x302871:0x289},_0x116e31={_0x4df2c6:0x175,_0x55dd65:0xf7};function _0x8ed590(_0x36306b,_0x4302c3,_0x16ef22,_0x32147b){return _0x18006e(_0x36306b-_0x116e31._0x4df2c6,_0x4302c3-_0x116e31._0x55dd65,_0x16ef22-0x37c,_0x32147b);}super(_0x3af60d),this[_0x8ed590(_0x4fcac4._0xde9d28,_0x4fcac4._0x1e0507,0x50d,_0x4fcac4._0x48bd2f)]=_0x379398(_0x4fcac4._0x2180c6,_0x4fcac4._0x4d9233,0x338,_0x4fcac4._0x5327bb);function _0x379398(_0x347b55,_0x5a7109,_0x58e83e,_0x48e190){return _0x18006e(_0x347b55-_0x2a4a3d._0x531aa1,_0x5a7109-_0x2a4a3d._0x2d9c8f,_0x48e190-_0x2a4a3d._0x302871,_0x5a7109);}this[_0x379398(_0x4fcac4._0xb42ed4,_0x4fcac4._0x44d520,_0x4fcac4._0x367252,0x2c7)]=_0x5e5526[_0x379398(0x36c,0x248,_0x4fcac4._0x3f4eff,_0x4fcac4._0x8535e2)],this[_0x379398(_0x4fcac4._0x3d259a,_0x4fcac4._0x87cc6e,_0x4fcac4._0x6488b4,0x3e3)]=_0x5e5526['retryable']??!![],this['status']=_0x5e5526[_0x8ed590(_0x4fcac4._0x463772,_0x4fcac4._0x18899d,_0x4fcac4._0x5dc96b,0x3bc)];}};function isRetryableProviderStreamEventError(_0x5d185d){const _0x4c0767={_0x5c0fca:0x1e4,_0x55b886:0x24d},_0x4205a5={_0x5aaba1:0xa0,_0x4802b0:0xf3};function _0x5e9c5f(_0x2dac86,_0x1ec2e2,_0x3adad6,_0x16da9d){return _0x18006e(_0x2dac86-0x1cd,_0x1ec2e2-_0x4205a5._0x5aaba1,_0x16da9d-_0x4205a5._0x4802b0,_0x3adad6);}return _0x5d185d instanceof ProviderStreamEventError&&_0x5d185d[_0x5e9c5f(0x29a,0x314,_0x4c0767._0x5c0fca,_0x4c0767._0x55b886)];}var ANTHROPIC_MESSAGES_SURFACE=_0x4d4006(0x2f,0xe9,0x27,0x85),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x18006e(0xbd,0x5,0x29,0x8d);function parseToolInput(_0x39c1eb){const _0x6bb8f9={_0x1bd7d1:0x58,_0xe7e71b:0xe9,_0x54e638:0x17},_0x1677bd={_0x27df01:0x102};function _0x5280c2(_0x2ff5cb,_0x1aeeb5,_0x3cefeb,_0x19979b){return _0x18006e(_0x2ff5cb-_0x1677bd._0x27df01,_0x1aeeb5-0x13e,_0x2ff5cb-0x46,_0x19979b);}try{return JSON[_0x5280c2(0x7c,_0x6bb8f9._0x1bd7d1,_0x6bb8f9._0xe7e71b,-_0x6bb8f9._0x54e638)](_0x39c1eb);}catch{return _0x39c1eb;}}function resolveReasoningVisibility(_0x3c8254){const _0x92e150={_0x35c7f3:0x28a,_0xb5ffa1:0x1d1,_0x4c6c81:0x269,_0x4dee05:0x43d,_0xe138fe:0x4c5,_0x5777d3:0x54b},_0x791695={_0x3da0ff:0x158},_0x377cfa={_0x128d7a:0x28,_0x10ad18:0x450};function _0x1ea997(_0x3ea13,_0x751ad8,_0x1ec1d3,_0x16e384){return _0x18006e(_0x3ea13-_0x377cfa._0x128d7a,_0x751ad8-0x16,_0x1ec1d3-_0x377cfa._0x10ad18,_0x751ad8);}function _0x4898dd(_0x1d21f7,_0x119701,_0x264171,_0x1dacf8){return _0x18006e(_0x1d21f7-0x1c0,_0x119701-0xda,_0x1d21f7-_0x791695._0x3da0ff,_0x264171);}return _0x3c8254[_0x1ea997(0x58d,0x5f4,0x55f,0x5be)]?.[_0x4898dd(0x1cf,_0x92e150._0x35c7f3,_0x92e150._0xb5ffa1,_0x92e150._0x4c6c81)]??_0x1ea997(_0x92e150._0x4dee05,_0x92e150._0xe138fe,0x4e0,_0x92e150._0x5777d3);}function isUserVisibleThinking(_0x2c344d){const _0x4b8afb={_0x1bb803:0x462,_0x580f7d:0x2ea,_0x5315ed:0x2f8,_0x84940b:0x2d2},_0x59621c={_0x5b2d9c:0x39,_0x150fc6:0x145},_0x56c7e0={_0x181683:0x27b};function _0x59dc1(_0x174489,_0x5e56aa,_0x183e72,_0x31364b){return _0x4d4006(_0x5e56aa,_0x5e56aa-0x1a3,_0x31364b-_0x56c7e0._0x181683,_0x31364b-0xa8);}const _0x1ac443=resolveAnthropicThinkingConfig(_0x2c344d[_0x59dc1(0x347,0x3f7,0x349,0x351)]);function _0x3824a8(_0x3ce5ea,_0x3b550c,_0x351dee,_0x189602){return _0x18006e(_0x3ce5ea-_0x59621c._0x5b2d9c,_0x3b550c-0x1b2,_0x3b550c- -_0x59621c._0x150fc6,_0x189602);}return _0x1ac443!==void 0x0&&_0x1ac443['type']!==_0x59dc1(0x454,_0x4b8afb._0x1bb803,0x481,0x3ec)&&resolveReasoningVisibility(_0x2c344d)===_0x59dc1(0x38a,_0x4b8afb._0x580f7d,_0x4b8afb._0x5315ed,_0x4b8afb._0x84940b);}function createAnthropicThinkingBody(_0x200c09){const _0x50d137={_0x3d6080:0x54d,_0x586725:0xb0,_0x53ce01:0x136,_0x405513:0x5af,_0x488219:0x117,_0x2d7b3e:0x1d0,_0x93fd57:0x172,_0x253dff:0x115,_0x262d2d:0x1b5,_0x1fc287:0x14f,_0xbec105:0x1f3,_0x288d4c:0x1e2,_0x55ec71:0x4f8,_0x30240e:0x548,_0x3babe4:0x58f},_0x299325={_0x1b1ed8:0x78,_0xa09393:0x134,_0x42e1c9:0x4e},_0x623d7={_0x5009dc:0x47d},_0x23c373=resolveAnthropicThinkingConfig(_0x200c09[_0x361555(0x58c,0x5d8,0x5d0,_0x50d137._0x3d6080)]);if(!_0x23c373||_0x23c373['type']==='disabled')return{};function _0x361555(_0x17e556,_0x11bc87,_0x4ead55,_0x1a9cc8){return _0x18006e(_0x17e556-0xd2,_0x11bc87-0x28,_0x17e556-_0x623d7._0x5009dc,_0x11bc87);}function _0x3effd6(_0x4b97bc,_0x356667,_0x1b889e,_0x1fc857){return _0x4d4006(_0x356667,_0x356667-_0x299325._0x1b1ed8,_0x1b889e-_0x299325._0xa09393,_0x1fc857-_0x299325._0x42e1c9);}const _0x2b632c=_0x23c373['display']??(isUserVisibleThinking(_0x200c09)?'summarized':'omitted'),_0x2d2baf=_0x23c373['interleaved']?{'anthropic-beta':_0x3effd6(0xa9,_0x50d137._0x586725,0x117,_0x50d137._0x53ce01)}:void 0x0;if(_0x23c373[_0x361555(0x52f,0x54d,_0x50d137._0x405513,0x580)]===_0x3effd6(_0x50d137._0x488219,0x16d,_0x50d137._0x53ce01,_0x50d137._0x2d7b3e))return{..._0x2d2baf?{'headers':_0x2d2baf}:{},'thinking':{'type':_0x3effd6(_0x50d137._0x93fd57,_0x50d137._0x253dff,0x136,0x174),'budget_tokens':_0x23c373[_0x3effd6(_0x50d137._0x262d2d,_0x50d137._0x1fc287,_0x50d137._0xbec105,0x1c5)],'display':_0x2b632c}};return{..._0x2d2baf?{'headers':_0x2d2baf}:{},'thinking':{'type':'adaptive',..._0x23c373[_0x3effd6(_0x50d137._0x288d4c,0x101,0x176,0x172)]?{'effort':_0x23c373[_0x361555(_0x50d137._0x55ec71,_0x50d137._0x30240e,0x53b,_0x50d137._0x3babe4)]}:{},'display':_0x2b632c}};}function toAnthropicRequestContent(_0x54c1d4){const _0x18093b={_0x5be29b:0x126,_0x318b8f:0x21e,_0x1eabaa:0xbf,_0x18de93:0x188,_0x362d08:0x265,_0x56ec61:0x2ff,_0x533960:0x25b,_0x5e1db4:0xe8,_0x337837:0x192,_0x5d7696:0xd1,_0x14dd6d:0x7d,_0x16fc54:0x27d,_0x13fb01:0x95,_0x1ba845:0x22f,_0x5b0c94:0x24e,_0x9fa23e:0x1c3,_0x512535:0x4,_0x2d8a08:0x215,_0x220921:0x1be,_0x321a86:0x9c,_0x21cbb4:0xf6,_0x350f62:0x141,_0xc2da2c:0x6f,_0x4e19e6:0xe9,_0x2b423a:0x11f},_0x16428c={_0x2e86d8:0x5a};function _0x8dfbca(_0x5c791e,_0x4177d2,_0x3708f9,_0x30d0b2){return _0x18006e(_0x5c791e-0x1b6,_0x4177d2-0x1b,_0x3708f9- -_0x16428c._0x2e86d8,_0x5c791e);}if(_0x54c1d4[_0xf52417(_0x18093b._0x5be29b,0x19c,0x1d3,_0x18093b._0x318b8f)]===_0x8dfbca(_0x18093b._0x1eabaa,0x1c6,0x11d,_0x18093b._0x18de93)&&_0x54c1d4['providerState']?.['anthropicAssistantContent'])return structuredClone(_0x54c1d4['providerState']['anthropicAssistantContent']);const _0x36317c=[];function _0xf52417(_0x219af5,_0x1b6cf0,_0x178c9e,_0x48d7c4){return _0x4d4006(_0x1b6cf0,_0x1b6cf0-0xb8,_0x178c9e-0x183,_0x48d7c4-0x127);}for(const _0x1c93ce of normalizeContent(_0x54c1d4[_0xf52417(0x227,_0x18093b._0x362d08,0x245,_0x18093b._0x56ec61)])){if(_0x1c93ce[_0xf52417(_0x18093b._0x533960,0x27d,0x1fc,0x139)]===_0x8dfbca(_0x18093b._0x5e1db4,_0x18093b._0x337837,_0x18093b._0x5d7696,_0x18093b._0x14dd6d))continue;if(_0x1c93ce['type']===_0xf52417(0x380,_0x18093b._0x16fc54,0x2e9,0x365)){_0x36317c[_0xf52417(0x276,0x2bb,0x29a,0x2ee)]({'type':_0x8dfbca(-0x2d,0x7e,0x1f,_0x18093b._0x13fb01),'thinking':_0x1c93ce[_0xf52417(_0x18093b._0x1ba845,_0x18093b._0x5b0c94,_0x18093b._0x9fa23e,0x1ff)],'signature':_0x1c93ce['signature']});continue;}if(_0x1c93ce[_0x8dfbca(0xb,-_0x18093b._0x512535,0x58,0x1c)]===_0xf52417(_0x18093b._0x2d8a08,_0x18093b._0x220921,0x257,0x2d5)){_0x36317c[_0x8dfbca(_0x18093b._0x321a86,0xf7,_0x18093b._0x21cbb4,_0x18093b._0x350f62)]({'type':_0x8dfbca(0xb8,-0x21,_0x18093b._0xc2da2c,_0x18093b._0x4e19e6),'data':_0x1c93ce['data']});continue;}_0x36317c[_0x8dfbca(_0x18093b._0x2b423a,0xaf,0xf6,0x12f)](structuredClone(_0x1c93ce));}return _0x36317c;}function createAnthropicRequest(_0x50a4a0,_0x2cccd4){const _0x3e0942={_0x257c3a:0x1c4,_0x4fb555:0x14c,_0x4553c4:0x103,_0x15638b:0xf4,_0x356fe:0xf8,_0x55cd9b:0xf8,_0x133e48:0x191,_0x5cebbb:0x94},_0x221b83={_0x307581:0x237,_0x24b394:0x300},_0x34b35d={_0x5de413:0xb2,_0xbb6ae4:0xb8,_0x4f58a8:0x43},_0x1822c6={_0x11c750:0x13a};function _0x58439a(_0x37cb37,_0x30689b,_0x3d7adc,_0x545234){return _0x18006e(_0x37cb37-0x16c,_0x30689b-_0x1822c6._0x11c750,_0x37cb37- -0x282,_0x30689b);}const _0x10206c=toProviderModelRequest(_0x50a4a0),_0x5e7b10=createAnthropicThinkingBody(_0x50a4a0);function _0x4895be(_0xfb69c8,_0x5a5919,_0x326311,_0x3aa826){return _0x4d4006(_0x326311,_0x5a5919-_0x34b35d._0x5de413,_0x5a5919-_0x34b35d._0xbb6ae4,_0x3aa826-_0x34b35d._0x4f58a8);}return{'accept':_0x2cccd4?'text/event-stream':'application/json','body':{..._0x10206c,'messages':_0x50a4a0[_0x58439a(-0x25e,-0x227,-0x2f3,-_0x3e0942._0x257c3a)][_0x4895be(_0x3e0942._0x4fb555,_0x3e0942._0x4553c4,0x9b,_0x3e0942._0x15638b)](_0x18aa02=>{const _0x531c7c={_0x4415ac:0x12f};function _0x460c50(_0x1bd9c7,_0x21c7f8,_0x37b7f5,_0x3e589e){return _0x4895be(_0x1bd9c7-0x119,_0x21c7f8-_0x531c7c._0x4415ac,_0x3e589e,_0x3e589e-0x192);}return{'role':_0x18aa02[_0x460c50(0x1fd,_0x221b83._0x307581,0x202,_0x221b83._0x24b394)],'content':toAnthropicRequestContent(_0x18aa02)};}),..._0x5e7b10['thinking']?{'thinking':_0x5e7b10[_0x4895be(_0x3e0942._0x356fe,_0x3e0942._0x55cd9b,_0x3e0942._0x133e48,0x1c2)]}:{},..._0x2cccd4?{'stream':!![]}:{}},..._0x5e7b10[_0x58439a(-0xf2,-_0x3e0942._0x5cebbb,-0x67,-0x184)]?{'headers':_0x5e7b10['headers']}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x1dde13,_0x404aa0){const _0x390279={_0xbb8976:0x2a,_0x406e46:0x32,_0x317238:0x11,_0x2ad780:0x71,_0xf37fb:0x38,_0x297cb8:0x47,_0x3b4b05:0x127,_0x2f55d4:0x51,_0x43f1cb:0x3af,_0x1ca7ce:0x280,_0x5575bd:0x19,_0x545060:0xb5,_0x4a45eb:0x273,_0x31b19d:0x1e4,_0x49f968:0x31d,_0x346d44:0xc7,_0x53dbca:0x116,_0x37d9f9:0x2ac,_0x231700:0x353,_0x235909:0x23a,_0x20bb9d:0x2fe,_0x7ad6b6:0x46,_0x492508:0xc1,_0x46b2ec:0x34a,_0x879fef:0x3c2,_0xa2b4a6:0x3bd,_0x29093f:0x2ec,_0xf8ebc7:0x335,_0x46376d:0x3b0,_0x5202fe:0x38,_0x40fcc3:0x75,_0x2c488b:0x3c7,_0x51afdc:0x3b6,_0x5726bd:0x2ed,_0x8ab5c4:0x66,_0x5aeaea:0x112,_0x4e6ebd:0x2a7,_0x3784c6:0x3ad,_0xc1fb94:0x343,_0x566cdb:0x398,_0x487784:0x363,_0x266586:0x0,_0xc4327:0x13e,_0xca3df6:0xaf,_0x4cc3b7:0x53,_0x3cdb61:0x296,_0x56d86d:0x2c9,_0x4ccc37:0x34e,_0x56b6a5:0x2ec,_0x35f9b9:0x298,_0x2d6530:0x2af,_0x4ad7bf:0x2c3,_0x32c418:0x359,_0x1c4eb3:0x3d8,_0x4b2c96:0x4f,_0x5f53f8:0x125,_0x4efa03:0x4c,_0x259ba1:0xb7},_0x2bc50c={_0x21baff:0x12e,_0x4d3b40:0xb4,_0x15baa4:0xea},_0x23a259={_0x4719a0:0x1cb,_0x93b805:0x233,_0x26db1a:0x15f};function _0x3ecf31(_0x267620,_0xa4e11e,_0xdac197,_0x31519c){return _0x4d4006(_0xa4e11e,_0xa4e11e-_0x23a259._0x4719a0,_0x267620-_0x23a259._0x93b805,_0x31519c-_0x23a259._0x26db1a);}const _0x4fcf96=[],_0x448dc2=_0x1dde13[_0x581544(_0x390279._0xbb8976,-_0x390279._0x406e46,_0x390279._0x317238,_0x390279._0x2ad780)]??[];let _0x22684f=![];for(const _0x529e12 of _0x448dc2){if(_0x529e12[_0x581544(0x72,-0x1,-_0x390279._0xf37fb,_0x390279._0x297cb8)]===_0x581544(-0x59,-_0x390279._0x3b4b05,-_0x390279._0x2ad780,-_0x390279._0x2f55d4)){_0x22684f=!![];isUserVisibleThinking(_0x404aa0)&&_0x4fcf96[_0x3ecf31(0x34a,0x2bd,_0x390279._0x43f1cb,_0x390279._0x1ca7ce)]({'type':_0x581544(_0x390279._0x5575bd,0x121,_0x390279._0x545060,0x43),'thinking':_0x529e12[_0x3ecf31(_0x390279._0x4a45eb,_0x390279._0x31b19d,0x263,_0x390279._0x49f968)],'signature':_0x529e12[_0x581544(-0x22,-0x169,-_0x390279._0x346d44,-_0x390279._0x53dbca)]});continue;}if(_0x529e12[_0x3ecf31(_0x390279._0x37d9f9,_0x390279._0x231700,_0x390279._0x235909,_0x390279._0x20bb9d)]===_0x581544(-_0x390279._0x7ad6b6,-0x3c,-0x21,-_0x390279._0x492508)){_0x22684f=!![];isUserVisibleThinking(_0x404aa0)&&_0x4fcf96[_0x3ecf31(_0x390279._0x46b2ec,_0x390279._0x879fef,0x31d,_0x390279._0xa2b4a6)]({'type':'anthropic_redacted_thinking','data':_0x529e12[_0x3ecf31(_0x390279._0x29093f,0x28b,_0x390279._0xf8ebc7,_0x390279._0x46376d)]});continue;}if(_0x529e12[_0x581544(-0xe9,0x5d,-_0x390279._0x5202fe,-_0x390279._0x40fcc3)]===_0x3ecf31(0x305,0x2f5,_0x390279._0x2c488b,0x2d2)){_0x529e12[_0x3ecf31(0x305,0x2c0,0x3b9,0x296)][_0x3ecf31(0x31f,_0x390279._0x51afdc,_0x390279._0x5726bd,0x3b6)]>0x0&&_0x4fcf96[_0x581544(0x10d,-0x64,_0x390279._0x8ab5c4,_0x390279._0x5aeaea)](structuredClone(_0x529e12));continue;}_0x4fcf96[_0x3ecf31(0x34a,_0x390279._0x4e6ebd,_0x390279._0x3784c6,_0x390279._0xc1fb94)](structuredClone(_0x529e12));}function _0x581544(_0x5058b5,_0x38870b,_0x2bc152,_0x830c8d){return _0x18006e(_0x5058b5-_0x2bc50c._0x21baff,_0x38870b-_0x2bc50c._0x4d3b40,_0x2bc152- -_0x2bc50c._0x15baa4,_0x5058b5);}return{'id':_0x1dde13['id']??_0x3ecf31(_0x390279._0x566cdb,0x449,0x31c,_0x390279._0x487784)+Date[_0x581544(_0x390279._0x266586,_0x390279._0xc4327,_0x390279._0xca3df6,_0x390279._0x4cc3b7)](),'content':_0x4fcf96,'stopReason':_0x4fcf96['some'](_0x30cc6b=>_0x30cc6b[_0x581544(-0x49,-0xf3,-0x38,0x24)]===_0x3ecf31(0x296,0x31a,0x338,0x1dd))?_0x3ecf31(_0x390279._0x3cdb61,0x32e,_0x390279._0x56d86d,0x2db):_0x1dde13['stop_reason']===_0x3ecf31(0x296,0x308,_0x390279._0x4ccc37,_0x390279._0x56b6a5)?'tool_use':_0x3ecf31(_0x390279._0x35f9b9,_0x390279._0x2d6530,0x353,_0x390279._0x4ad7bf),'usage':{'inputTokens':_0x1dde13[_0x3ecf31(_0x390279._0x32c418,0x307,_0x390279._0x1c4eb3,0x417)]?.['input_tokens']??0x0,'outputTokens':_0x1dde13[_0x581544(-_0x390279._0x4b2c96,_0x390279._0x5f53f8,0x75,-_0x390279._0x4efa03)]?.[_0x581544(0xb2,0xe8,_0x390279._0x259ba1,0xdd)]??0x0},..._0x22684f?{'providerState':{'anthropicAssistantContent':structuredClone(_0x448dc2)}}:{}};}function _0x4d4006(_0xc65ec6,_0x41fc9e,_0x3e324b,_0x31c017){const _0xd5270f={_0x15e327:0x138};return _0x2cfd(_0x3e324b- -_0xd5270f._0x15e327,_0xc65ec6);}var AnthropicMessagesStreamParser=class{[_0x18006e(0xde,0x140,0x1a2,0x156)]=new Map();[_0x4d4006(0xe3,-0x14,0x8b,0x81)]=0x0;[_0x4d4006(0x29,0x12e,0x7c,0x10a)]='msg-'+Date[_0x4d4006(0x186,0xd5,0x160,0x20d)]();[_0x4d4006(0x190,0x10,0xcd,0x10e)]=0x0;[_0x18006e(0x35,0x17b,0xc8,0x7c)];['stopReason']='end_turn';constructor(_0x199a55){const _0x4e2181={_0x25102a:0x525,_0x2e35f2:0x4e7},_0xf54b15={_0x56241a:0x1a1,_0x17a0c3:0xfa};function _0xa37b81(_0x5a9a9e,_0xee461,_0xcbd8dd,_0x332620){return _0x18006e(_0x5a9a9e-_0xf54b15._0x56241a,_0xee461-_0xf54b15._0x17a0c3,_0xcbd8dd-0x41f,_0x5a9a9e);}this[_0xa37b81(_0x4e2181._0x25102a,0x4d5,_0x4e2181._0x2e35f2,0x523)]=_0x199a55;}[_0x18006e(0xc4,0x1f7,0x149,0xa5)](_0x336827){const _0x50e361={_0x32fc:0x4c3,_0x12a347:0x4a1,_0x17e302:0x483,_0x242761:0x401,_0x4f4add:0x40e,_0x33800b:0x391,_0x37fdc5:0x3a5,_0x544727:0x421,_0x8ed964:0x3ad,_0x425bc1:0x45f,_0x2731da:0x46d,_0x323bc6:0x47c,_0x2bc799:0x2f9,_0xc99b68:0x2f2,_0x28c72d:0x359,_0x3a6760:0x3c5,_0x3de8cc:0x35a,_0x4db91b:0x374,_0x39c060:0x47e,_0x37d8bd:0x48f,_0x20b544:0x50d,_0x2f2c8f:0x402,_0x3a88b7:0x39c,_0x5d2d55:0x44c,_0x4d9688:0x502,_0x173200:0x521,_0x5e00a3:0x4eb,_0x1deba4:0x4ed,_0x36999c:0x434,_0x5263d8:0x39b,_0x1aecef:0x2dd,_0x279b07:0x338,_0x54fa1d:0x3ab,_0x2965b7:0x3be,_0x58435f:0x478,_0x2659dc:0x3e2,_0x252e74:0x393,_0xaa6d75:0x333,_0x2504fb:0x440,_0x10b5c8:0x43a,_0x2c2776:0x3d4,_0x282f46:0x3dc,_0x3b0ee8:0x4cf,_0xdbb33:0x532,_0x4a4fe2:0x4e0,_0x4a8a27:0x492,_0x2d241d:0x483,_0x3b1a94:0x3e3,_0x276e3a:0x34c,_0x158e26:0x3b2,_0x557771:0x4ed,_0x5b4f5a:0x4b5,_0x1e9490:0x579,_0x3f204d:0x2c8,_0x35e532:0x371,_0x4b2c92:0x406,_0x5764d6:0x513,_0x56e345:0x358,_0x21d116:0x3b7,_0x1c2914:0x581,_0x1709b5:0x4c6,_0x578e3b:0x3b7,_0x122557:0x394,_0x3e55ab:0x367,_0x352b3d:0x3e9,_0x4c51d3:0x3e6,_0x40dd9f:0x49f,_0xe291dd:0x37d,_0x1c1297:0x363,_0x361552:0x449,_0x1b127f:0x468,_0xc93a3:0x32c,_0x5deb81:0x4a8,_0x48aa7c:0x3b7,_0x8e4836:0x3f0,_0x18a7aa:0x433,_0xeeee0b:0x3e9,_0x534cd9:0x3d6,_0x2fbb1e:0x329,_0x220810:0x4e0,_0x487ab3:0x4bc,_0x2d0485:0x495,_0x2fb9c0:0x399,_0x3c76c9:0x455,_0x2fec06:0x3ed,_0x114233:0x3e5,_0x26e267:0x395,_0x48ff8d:0x3ed,_0x57a566:0x4ae,_0x16026e:0x3bb,_0x43fd7d:0x4d4,_0x5b728b:0x41c,_0x401349:0x426,_0x425837:0x3d8,_0x224f59:0x492,_0x30eed7:0x360,_0xcc9d56:0x46d,_0x3520bf:0x3e8,_0x1555b5:0x38c,_0x1b8065:0x390,_0x1ff844:0x3ff,_0x47b723:0x3d4,_0x51584e:0x446,_0x1db58a:0x4a2,_0x24fcd7:0x3fe,_0x171dcf:0x447,_0x18b3b9:0x4c4,_0x3cbbc3:0x42f,_0x25f4e1:0x3c6,_0x4b2e7b:0x38e,_0x2ee0c0:0x497,_0x5cd985:0x481,_0x59fd7a:0x53f,_0x4f60a0:0x4ff,_0x2efb76:0x4ea,_0x354956:0x441,_0x4462a9:0x409,_0x2d22f5:0x3c0,_0x5168d1:0x465,_0x3d3939:0x4d1,_0x1dce7d:0x3e9,_0x29e5c7:0x32b,_0x17d0d5:0x415,_0xfe4211:0x485,_0x426d7e:0x380,_0x529716:0x430,_0x2c06f6:0x379,_0x47105b:0x408,_0x461c1d:0x4af,_0x3922e7:0x427,_0x25e8e9:0x4a8,_0x1865c9:0x31a,_0x2cd1f6:0x287,_0x5e9d96:0x343,_0x2ad700:0x4eb,_0x3984f3:0x558,_0x9338c2:0x4ae,_0x20d804:0x457,_0x5c3dc5:0x3a2,_0x3c3ffe:0x39d,_0x14c145:0x463,_0x4f0cf9:0x47c,_0x4e3178:0x32d,_0x5881bd:0x43f,_0x28ca10:0x342,_0x426fd1:0x44a,_0x347ef5:0x341,_0x544b86:0x38b,_0x5b605a:0x3f0,_0x5b8526:0x45a,_0x1541bc:0x51d,_0x121267:0x4d5,_0x36ed20:0x429,_0x14859f:0x477,_0x5034f1:0x463,_0x1f2bfd:0x319,_0x5b2785:0x37f,_0x1cdf56:0x3cf,_0x5a80d5:0x3c5,_0x79a901:0x3fc,_0x26a085:0x3ba,_0x561106:0x49c,_0x3ff552:0x386,_0x2bc006:0x381,_0x1c0f72:0x457,_0x2fbb07:0x4dc,_0xc2a7bb:0x431,_0x517056:0x506,_0x28b159:0x467,_0x3a490d:0x3fa,_0x4ed161:0x43f,_0x4d0c77:0x472,_0x5bf392:0x401,_0x5b01f1:0x3da,_0x492a1d:0x49e,_0x2bf15f:0x3ee,_0x2ff2e6:0x444,_0x3f819a:0x430,_0x19a602:0x40b,_0x2fe12a:0x370,_0x191c34:0x475,_0x1e7306:0x3c9,_0x17876d:0x3f2},_0x12db19={_0x1cc751:0xf8},_0x12d06b={_0x5de759:0x1a0,_0x2e5e6b:0x91},_0x4f866b=_0x336827['split']('\x0a'),_0xe47628=_0x4f866b['find'](_0x29bd29=>_0x29bd29[_0x2a0b75(0x46d,0x477,0x484,0x4bc)](_0x2a0b75(0x390,0x2ef,0x388,0x418)))?.[_0x3b6112(0x498,_0x50e361._0x32fc,0x459,0x502)](0x6)[_0x2a0b75(_0x50e361._0x12a347,_0x50e361._0x17e302,_0x50e361._0x242761,_0x50e361._0x4f4add)](),_0x11fcfb=_0x4f866b[_0x2a0b75(_0x50e361._0x33800b,0x3fe,_0x50e361._0x37fdc5,_0x50e361._0x544727)](_0x417009=>_0x417009[_0x3b6112(0x3c4,0x3a8,0x453,0x39f)]('data:'))['map'](_0x1e3c7c=>_0x1e3c7c['slice'](0x5)['trimStart']())[_0x2a0b75(_0x50e361._0x8ed964,0x2f6,_0x50e361._0x425bc1,0x397)]('\x0a')[_0x3b6112(0x41e,0x480,0x487,_0x50e361._0x2731da)]();function _0x2a0b75(_0x5a0278,_0x1a4a73,_0x5b8a47,_0x56e5c6){return _0x18006e(_0x5a0278-_0x12d06b._0x5de759,_0x1a4a73-_0x12d06b._0x2e5e6b,_0x5a0278-0x33e,_0x56e5c6);}if(_0x11fcfb[_0x3b6112(0x436,_0x50e361._0x323bc6,0x449,0x4d7)]===0x0||_0x11fcfb===_0x3b6112(_0x50e361._0x2bc799,_0x50e361._0xc99b68,0x3a2,0x327))return[];function _0x3b6112(_0x27641d,_0x461806,_0x1367aa,_0x492370){return _0x18006e(_0x27641d-0x98,_0x461806-_0x12db19._0x1cc751,_0x1367aa-0x324,_0x461806);}const _0xc76e0f=JSON[_0x3b6112(_0x50e361._0x28c72d,_0x50e361._0x3a6760,_0x50e361._0x3de8cc,_0x50e361._0x4db91b)](_0x11fcfb);switch(_0xe47628){case _0x2a0b75(0x45a,0x4ee,_0x50e361._0x39c060,0x46d):{const _0x29daf7=_0xc76e0f[_0x2a0b75(_0x50e361._0x37d8bd,0x3c9,_0x50e361._0x20b544,0x48d)];this[_0x2a0b75(0x3f3,0x3fd,0x44f,0x3e4)]=_0x29daf7?.['id']??this['messageId'],this[_0x2a0b75(_0x50e361._0x2f2c8f,0x38e,_0x50e361._0x3a88b7,_0x50e361._0x5d2d55)]=_0x29daf7?.[_0x3b6112(_0x50e361._0x4d9688,_0x50e361._0x173200,0x483,0x522)]?.[_0x3b6112(_0x50e361._0x5e00a3,_0x50e361._0x1deba4,0x4cd,0x4d6)]??this[_0x2a0b75(_0x50e361._0x2f2c8f,0x381,0x38c,_0x50e361._0x36999c)];break;}case _0x2a0b75(_0x50e361._0x5263d8,0x36d,_0x50e361._0x1aecef,_0x50e361._0x279b07):{const _0x169af4=typeof _0xc76e0f['index']==='number'?_0xc76e0f[_0x3b6112(_0x50e361._0x54fa1d,0x379,_0x50e361._0x2965b7,_0x50e361._0x58435f)]:0x0,_0x5d6dc6=_0xc76e0f[_0x2a0b75(0x37f,_0x50e361._0x2659dc,_0x50e361._0x252e74,0x2b6)];if(_0x5d6dc6?.[_0x2a0b75(0x3f0,_0x50e361._0xaa6d75,_0x50e361._0x2504fb,_0x50e361._0x10b5c8)]===_0x2a0b75(0x3da,0x311,_0x50e361._0x2c2776,_0x50e361._0x282f46)&&_0x5d6dc6['id']&&_0x5d6dc6[_0x2a0b75(_0x50e361._0x3b0ee8,_0x50e361._0xdbb33,0x552,0x49e)])return this[_0x2a0b75(_0x50e361._0x4a4fe2,0x43e,0x4ed,0x485)][_0x2a0b75(0x4d4,_0x50e361._0x4a8a27,0x411,0x4b1)](_0x169af4,{'id':_0x5d6dc6['id'],'index':_0x169af4,'inputJson':JSON[_0x3b6112(0x493,0x467,_0x50e361._0x544727,0x43a)](_0x5d6dc6[_0x3b6112(_0x50e361._0x2d241d,0x37c,_0x50e361._0x3b1a94,_0x50e361._0x276e3a)]??{}),'kind':_0x2a0b75(0x3da,_0x50e361._0x158e26,0x3ce,0x487),'name':_0x5d6dc6[_0x3b6112(_0x50e361._0x557771,0x4cf,_0x50e361._0x5b4f5a,_0x50e361._0x1e9490)]}),[{'type':_0x2a0b75(0x35d,_0x50e361._0x3f204d,0x3c4,_0x50e361._0x35e532),'id':_0x5d6dc6['id'],'index':_0x169af4,'name':_0x5d6dc6[_0x3b6112(0x42b,_0x50e361._0x4b2c92,0x4b5,_0x50e361._0x5764d6)]}];if(_0x5d6dc6?.[_0x3b6112(0x34a,0x480,0x3d6,_0x50e361._0x56e345)]===_0x2a0b75(_0x50e361._0x21d116,0x364,0x42b,0x409)){this[_0x3b6112(0x4c5,_0x50e361._0x1c2914,_0x50e361._0x1709b5,0x499)]['set'](_0x169af4,{'index':_0x169af4,'kind':_0x2a0b75(_0x50e361._0x578e3b,_0x50e361._0x122557,0x45c,_0x50e361._0x3e55ab),'signature':typeof _0x5d6dc6['signature']===_0x2a0b75(_0x50e361._0x352b3d,_0x50e361._0x4c51d3,_0x50e361._0x40dd9f,0x388)?_0x5d6dc6[_0x2a0b75(0x361,_0x50e361._0xe291dd,0x2dd,_0x50e361._0x1c1297)]:'','thinking':typeof _0x5d6dc6[_0x2a0b75(_0x50e361._0x361552,0x47b,_0x50e361._0x1b127f,0x477)]===_0x2a0b75(0x3e9,0x45c,_0x50e361._0xc93a3,_0x50e361._0x5deb81)?_0x5d6dc6['text']:typeof _0x5d6dc6[_0x2a0b75(_0x50e361._0x48aa7c,_0x50e361._0x8e4836,_0x50e361._0x18a7aa,0x41c)]===_0x2a0b75(_0x50e361._0xeeee0b,0x453,0x464,0x35a)?String(_0x5d6dc6['thinking']):''});break;}if(_0x5d6dc6?.[_0x3b6112(0x38d,_0x50e361._0x56e345,_0x50e361._0x534cd9,_0x50e361._0x2fbb1e)]==='redacted_thinking'){this[_0x2a0b75(_0x50e361._0x220810,_0x50e361._0x487ab3,0x532,0x53c)][_0x2a0b75(0x4d4,0x41e,0x462,_0x50e361._0x2d0485)](_0x169af4,{'index':_0x169af4,'kind':_0x3b6112(_0x50e361._0x2fb9c0,_0x50e361._0x3c76c9,_0x50e361._0x2fec06,_0x50e361._0x114233),'data':typeof _0x5d6dc6[_0x2a0b75(0x430,_0x50e361._0x26e267,_0x50e361._0x48ff8d,_0x50e361._0x57a566)]===_0x2a0b75(_0x50e361._0x352b3d,_0x50e361._0x16026e,0x418,0x475)?String(_0x5d6dc6['data']):''});break;}this['blocks'][_0x2a0b75(_0x50e361._0x43fd7d,0x4e6,_0x50e361._0x5b728b,0x558)](_0x169af4,{'index':_0x169af4,'kind':_0x3b6112(0x4ce,0x4a7,0x42f,0x3f2),'text':_0x5d6dc6?.[_0x2a0b75(0x449,0x3f2,_0x50e361._0x401349,0x511)]??''});break;}case'content_block_delta':{const _0x3330d2=typeof _0xc76e0f[_0x2a0b75(_0x50e361._0x425837,_0x50e361._0x224f59,0x418,0x462)]==='number'?_0xc76e0f[_0x2a0b75(0x3d8,0x475,_0x50e361._0x30eed7,_0x50e361._0xcc9d56)]:0x0,_0x187ec2=this[_0x3b6112(0x476,0x51a,0x4c6,0x4f7)]['get'](_0x3330d2),_0xcd04db=_0xc76e0f[_0x3b6112(_0x50e361._0x3520bf,_0x50e361._0x1555b5,_0x50e361._0x1b8065,0x446)];if(!_0x187ec2||!_0xcd04db?.[_0x3b6112(0x428,_0x50e361._0x1ff844,0x3d6,0x412)])break;if(_0xcd04db['type']==='text_delta'&&_0x187ec2['kind']===_0x2a0b75(0x449,_0x50e361._0x47b723,_0x50e361._0x425bc1,0x3cc)&&typeof _0xcd04db[_0x2a0b75(_0x50e361._0x361552,0x4e8,_0x50e361._0x51584e,_0x50e361._0x1db58a)]===_0x3b6112(_0x50e361._0x4c51d3,_0x50e361._0x24fcd7,0x3cf,_0x50e361._0x171dcf))return _0x187ec2[_0x3b6112(_0x50e361._0x18b3b9,0x4ae,_0x50e361._0x3cbbc3,_0x50e361._0x25f4e1)]+=_0xcd04db[_0x2a0b75(_0x50e361._0x361552,0x4b4,_0x50e361._0x4b2e7b,0x3b3)],[{'type':_0x3b6112(_0x50e361._0x2ee0c0,_0x50e361._0x3b0ee8,_0x50e361._0x5cd985,_0x50e361._0x59fd7a),'index':_0x3330d2,'text':_0xcd04db[_0x3b6112(0x438,0x4de,_0x50e361._0x3cbbc3,0x467)]}];if(_0xcd04db['type']===_0x2a0b75(0x483,0x475,_0x50e361._0x4f60a0,_0x50e361._0x2efb76)&&_0x187ec2[_0x3b6112(_0x50e361._0x354956,0x467,0x477,0x528)]===_0x3b6112(_0x50e361._0x4462a9,_0x50e361._0x282f46,_0x50e361._0x2d22f5,0x454)&&typeof _0xcd04db[_0x3b6112(_0x50e361._0x5168d1,0x4fa,_0x50e361._0x3d3939,0x48a)]===_0x2a0b75(_0x50e361._0x1dce7d,_0x50e361._0x29e5c7,_0x50e361._0x17d0d5,_0x50e361._0xfe4211))return _0x187ec2[_0x2a0b75(_0x50e361._0x426d7e,0x390,_0x50e361._0x529716,_0x50e361._0x2c06f6)]==='{}'&&(_0x187ec2[_0x2a0b75(0x380,0x43a,0x2da,_0x50e361._0x47105b)]=''),_0x187ec2['inputJson']+=_0xcd04db[_0x2a0b75(0x4eb,_0x50e361._0x461c1d,_0x50e361._0x3922e7,_0x50e361._0x25e8e9)],[{'type':_0x3b6112(_0x50e361._0x1865c9,_0x50e361._0x2cd1f6,_0x50e361._0x5e9d96,0x3e1),'id':_0x187ec2['id'],'index':_0x3330d2,'inputDelta':_0xcd04db[_0x2a0b75(_0x50e361._0x2ad700,0x52c,0x4b4,_0x50e361._0x3984f3)]}];if(_0xcd04db['type']===_0x2a0b75(_0x50e361._0x9338c2,0x55c,0x415,0x519)&&_0x187ec2['kind']===_0x2a0b75(_0x50e361._0x48aa7c,0x422,_0x50e361._0x20d804,0x3b0)){const _0x5160a5=typeof _0xcd04db['thinking']==='string'?String(_0xcd04db[_0x3b6112(0x32c,_0x50e361._0x5c3dc5,_0x50e361._0x3c3ffe,0x2fb)]):'';if(_0x5160a5[_0x2a0b75(_0x50e361._0x14c145,0x426,0x4cc,0x498)]>0x0){_0x187ec2[_0x2a0b75(_0x50e361._0x21d116,_0x50e361._0x4f0cf9,_0x50e361._0x4e3178,_0x50e361._0x5881bd)]+=_0x5160a5;if(isUserVisibleThinking(this[_0x3b6112(_0x50e361._0x28ca10,_0x50e361._0x426fd1,0x3ec,_0x50e361._0x16026e)]))return[{'type':_0x3b6112(_0x50e361._0x347ef5,0x42f,_0x50e361._0x544b86,0x445),'index':_0x3330d2,'thinking':_0x5160a5}];}}if(_0xcd04db[_0x2a0b75(_0x50e361._0x5b605a,0x44a,_0x50e361._0x3520bf,0x3d7)]===_0x3b6112(0x46e,_0x50e361._0x5b8526,_0x50e361._0x2d0485,_0x50e361._0x1541bc)&&_0x187ec2[_0x3b6112(_0x50e361._0x121267,_0x50e361._0x36ed20,_0x50e361._0x14859f,0x4cd)]===_0x2a0b75(0x3b7,0x3f4,_0x50e361._0x5034f1,0x3e6)){const _0x3ddb02=typeof _0xcd04db['signature']===_0x3b6112(_0x50e361._0x1f2bfd,_0x50e361._0x5b2785,_0x50e361._0x1cdf56,_0x50e361._0x5a80d5)?String(_0xcd04db['signature']):'';if(_0x3ddb02[_0x3b6112(_0x50e361._0x79a901,_0x50e361._0x25f4e1,_0x50e361._0x361552,0x4b1)]>0x0){_0x187ec2[_0x3b6112(0x3b4,_0x50e361._0x26a085,0x347,_0x50e361._0x2bc799)]=_0x3ddb02;if(isUserVisibleThinking(this[_0x2a0b75(0x406,0x3d3,0x3dd,_0x50e361._0x561106)]))return[{'type':'anthropic_signature_delta','index':_0x3330d2,'signature':_0x3ddb02}];}}break;}case'message_delta':{const _0x509b4f=_0xc76e0f[_0x3b6112(_0x50e361._0x3ff552,_0x50e361._0x2bc006,_0x50e361._0x1b8065,_0x50e361._0x1c0f72)],_0x3ebef1=_0xc76e0f[_0x2a0b75(0x49d,_0x50e361._0x2fbb07,0x431,_0x50e361._0xc2a7bb)];this[_0x3b6112(0x4cc,0x411,0x42a,0x4f1)]=_0x3ebef1?.[_0x3b6112(0x4c6,_0x50e361._0x517056,0x4c5,0x57c)]??this[_0x3b6112(0x3de,_0x50e361._0x28b159,0x42a,0x49a)],this[_0x3b6112(0x338,0x483,_0x50e361._0x3a490d,0x39b)]=_0x509b4f?.[_0x3b6112(0x3c8,_0x50e361._0x4ed161,_0x50e361._0x4d0c77,0x4cc)]===_0x3b6112(0x3ba,0x41c,0x3c0,_0x50e361._0x5bf392)?_0x2a0b75(_0x50e361._0x5b01f1,_0x50e361._0x492a1d,_0x50e361._0x2bf15f,_0x50e361._0x2ff2e6):'end_turn';break;}case _0x3b6112(0x360,_0x50e361._0x3f819a,_0x50e361._0x19a602,0x3a8):{const _0x2becef=_0xc76e0f[_0x2a0b75(0x425,0x3e8,0x3a8,_0x50e361._0x2fe12a)];throw new ProviderStreamEventError(_0x2becef?.[_0x3b6112(_0x50e361._0x4f60a0,_0x50e361._0x361552,_0x50e361._0x191c34,_0x50e361._0x2ad700)]??_0x2a0b75(0x376,0x3b8,0x33c,0x2ed),{'code':_0x2becef?.[_0x2a0b75(_0x50e361._0x5b605a,0x4ba,_0x50e361._0x1e7306,_0x50e361._0x17876d)],'retryable':!![]});}}return[];}[_0x4d4006(0x1d5,0x1e4,0x14d,0x1d7)](){const _0x2f9cd2={_0x54c4a7:0x23,_0x408c8f:0x63,_0x196c8e:0x59,_0x40b174:0x8,_0x659915:0x13,_0x54997f:0x13,_0x4635d9:0x3e,_0x2d8562:0x2c,_0x88e7fc:0x4f,_0x27465e:0xf5,_0x5f38b5:0xe4,_0x2d81b8:0xe8,_0x1ac2ca:0x57,_0x105f8c:0x8f,_0x56324b:0x5a,_0x27095b:0x27,_0x32c4e0:0x13e,_0x23d09e:0x35,_0x494c71:0x53,_0x2064ed:0xdb,_0x3f5a71:0x87,_0x51884f:0x176,_0x28708b:0x8e,_0x56c620:0x1aa,_0x5794ea:0xf6,_0x33253a:0x201,_0x5d689d:0x198,_0x1aa469:0x37,_0x5f1f1e:0x64,_0x5cfe61:0x1c8,_0x40cc63:0x1f3,_0x1f1978:0x52,_0x5a9b93:0x44,_0x1d311e:0x67,_0x15d346:0x1c4,_0x53108e:0x272,_0xd49f9d:0xb4,_0x7e3c71:0xc2,_0x53ace7:0x1d4,_0x4e8503:0xfd,_0x40d9b3:0x10e,_0x2e3929:0x90,_0x198b22:0x14,_0x11ef8e:0x14,_0x1efb50:0x170,_0xd4e353:0xaf,_0xf33a76:0x13e},_0x3106e8={_0x8a9e8a:0x146,_0x1bf210:0x1bb};function _0x333512(_0x4f5163,_0x1fd9d1,_0x3adf12,_0x1ba1de){return _0x4d4006(_0x4f5163,_0x1fd9d1-0x154,_0x1fd9d1- -_0x3106e8._0x8a9e8a,_0x1ba1de-_0x3106e8._0x1bf210);}const _0x79abe8=Array['from'](this[_0x333512(0x10,_0x2f9cd2._0x54c4a7,-_0x2f9cd2._0x408c8f,0x6f)][_0x333512(-0xbb,-0x5,_0x2f9cd2._0x196c8e,-0x66)]())[_0x333512(_0x2f9cd2._0x40b174,-_0x2f9cd2._0x659915,0x1a,-_0x2f9cd2._0x54997f)]((_0x3b99bd,_0x1e4c1c)=>_0x3b99bd['index']-_0x1e4c1c[_0x4253b5(-0x171,-0xc7,-0x1d2,-0x177)]);function _0x4253b5(_0x18fd50,_0x2e3e72,_0x246a1a,_0x30d37c){return _0x18006e(_0x18fd50-0xc7,_0x2e3e72-0x26,_0x30d37c- -0x211,_0x2e3e72);}const _0x2f0902=[];for(const _0x53dfea of _0x79abe8){if(_0x53dfea[_0x333512(-_0x2f9cd2._0x4635d9,-_0x2f9cd2._0x2d8562,_0x2f9cd2._0x88e7fc,-_0x2f9cd2._0x27465e)]===_0x4253b5(-0xcd,-_0x2f9cd2._0x5f38b5,-_0x2f9cd2._0x2d81b8,-0x106)){_0x53dfea[_0x333512(-0x66,-0x74,-_0x2f9cd2._0x1ac2ca,-_0x2f9cd2._0x105f8c)][_0x333512(-0x85,-_0x2f9cd2._0x56324b,_0x2f9cd2._0x27095b,0x49)]>0x0&&_0x2f0902[_0x4253b5(-_0x2f9cd2._0x32c4e0,-_0x2f9cd2._0x23d09e,-_0x2f9cd2._0x494c71,-0xc1)]({'type':'text','text':_0x53dfea[_0x4253b5(-0x6c,-_0x2f9cd2._0x2064ed,-0x16a,-0x106)]});continue;}if(_0x53dfea[_0x4253b5(-0x4,-_0x2f9cd2._0x3f5a71,-_0x2f9cd2._0x51884f,-0xbe)]==='thinking'){_0x2f0902[_0x333512(0x5b,-0x2f,0x5f,_0x2f9cd2._0x28708b)]({'type':_0x4253b5(-0xfd,-_0x2f9cd2._0x56c620,-0x145,-0x198),'thinking':_0x53dfea[_0x4253b5(-_0x2f9cd2._0x5794ea,-0x20d,-_0x2f9cd2._0x33253a,-_0x2f9cd2._0x5d689d)],'signature':_0x53dfea['signature']});continue;}if(_0x53dfea[_0x333512(-_0x2f9cd2._0x1aa469,-0x2c,-_0x2f9cd2._0x5f1f1e,-0x15)]===_0x4253b5(-0xfd,-_0x2f9cd2._0x5cfe61,-_0x2f9cd2._0x40cc63,-0x148)){_0x2f0902['push']({'type':'redacted_thinking','data':_0x53dfea['data']});continue;}_0x2f0902[_0x4253b5(-_0x2f9cd2._0x1f1978,-_0x2f9cd2._0x5a9b93,-0x160,-0xc1)]({'type':'tool_use','id':_0x53dfea['id'],'name':_0x53dfea[_0x333512(-0x6d,0x12,_0x2f9cd2._0x1d311e,0x34)],'input':parseToolInput(_0x53dfea[_0x4253b5(-0x1ea,-_0x2f9cd2._0x15d346,-_0x2f9cd2._0x53108e,-0x1cf)]['length']>0x0?_0x53dfea[_0x333512(-0x162,-0x13d,-_0x2f9cd2._0xd49f9d,-_0x2f9cd2._0x7e3c71)]:'{}')});}return parseAnthropicResponse({'id':this[_0x4253b5(-_0x2f9cd2._0x53ace7,-_0x2f9cd2._0x4e8503,-_0x2f9cd2._0x40d9b3,-0x15c)],'type':_0x333512(0x8,-0x2e,_0x2f9cd2._0x2e3929,0x59),'role':_0x4253b5(-_0x2f9cd2._0x198b22,-0xa,_0x2f9cd2._0x11ef8e,-0x9a),'content':_0x2f0902,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x333512(-_0x2f9cd2._0x1efb50,-0xbb,-0xe1,-_0x2f9cd2._0xd4e353)],'output_tokens':this['outputTokens']}},this[_0x4253b5(-0x87,-_0x2f9cd2._0xf33a76,-0x167,-0x149)]);}};function createAnthropicSurfaces(){const _0x59b1fa={_0x23ff78:0x2a,_0x57330a:0x92};function _0x5dd5ef(_0x57879f,_0x2ecf51,_0x21680a,_0x20dfb7){return _0x18006e(_0x57879f-0x18,_0x2ecf51-0x19,_0x20dfb7- -0x1be,_0x57879f);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':'http-json','createRequest'(_0x506d3f){return createAnthropicRequest(_0x506d3f,![]);},'parseResponse'(_0x21b7d0,_0x5e6199){return parseAnthropicResponse(_0x21b7d0,_0x5e6199);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x5dd5ef(_0x59b1fa._0x23ff78,-0x37,-0x102,-_0x59b1fa._0x57330a),'createRequest'(_0x337f6e){return createAnthropicRequest(_0x337f6e,!![]);},'createStreamParser'(_0x311db8){return new AnthropicMessagesStreamParser(_0x311db8);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];['streamSurface'];constructor(_0x266422){const _0x51a92f={_0x3daf57:0x507,_0x1081a9:0x62c,_0x2abf47:0x6c,_0x3aba10:0xec,_0x255a1a:0x5e},_0x4b77d6={_0x20347d:0x110};this['completeSurface']=_0x266422[_0x4539eb(_0x51a92f._0x3daf57,_0x51a92f._0x1081a9,0x5b5,0x4ed)];function _0x4539eb(_0x210be8,_0x19491b,_0xdebbd4,_0x35d591){return _0x4d4006(_0x35d591,_0x19491b-0x5e,_0xdebbd4-0x4d1,_0x35d591-0x178);}function _0x15de85(_0x325b2c,_0x35cdaf,_0x3196fe,_0x2f37b4){return _0x4d4006(_0x35cdaf,_0x35cdaf-0x9e,_0x3196fe- -_0x4b77d6._0x20347d,_0x2f37b4-0x1b2);}this[_0x15de85(_0x51a92f._0x2abf47,-0x2b,0x43,0x2f)]=_0x266422[_0x15de85(0x5,-_0x51a92f._0x3aba10,-_0x51a92f._0x255a1a,0x22)];}['selectSurface'](_0x52846d,_0x35ca80){const _0x528c6a={_0xe24a9a:0xf8,_0x530a3e:0x176,_0x246ef4:0x1bb,_0x1ab584:0x4b,_0x1e6604:0x67,_0x5af63e:0x52},_0x383cc8={_0x1166d6:0x162,_0x26c033:0x164};function _0x1f3a99(_0x1c2854,_0x4f23c2,_0x5adb6d,_0x2a4ab6){return _0x4d4006(_0x2a4ab6,_0x4f23c2-_0x383cc8._0x1166d6,_0x1c2854- -0xff,_0x2a4ab6-_0x383cc8._0x26c033);}function _0x111294(_0x5f064d,_0x3d78ca,_0x3b5c76,_0x155955){return _0x18006e(_0x5f064d-0x152,_0x3d78ca-0x8f,_0x5f064d-0x2f,_0x3b5c76);}return _0x35ca80[_0x1f3a99(-_0x528c6a._0xe24a9a,-0x17c,-_0x528c6a._0x530a3e,-0xaf)]===_0x111294(0x11a,0x174,0x107,0x18f)?this[_0x111294(_0x528c6a._0x246ef4,0x172,0x183,0x181)]:this[_0x1f3a99(_0x528c6a._0x1ab584,_0x528c6a._0x1e6604,-_0x528c6a._0x5af63e,-0x78)];}};function trimTrailingSlashes(_0x57964a){const _0x303bbc={_0xe6fb4a:0x3f1},_0x23c019={_0x4903dd:0x13d,_0x234858:0x449};function _0xe32ea0(_0x57cc03,_0xcf298c,_0x144035,_0x5bc091){return _0x18006e(_0x57cc03-0x7,_0xcf298c-_0x23c019._0x4903dd,_0x5bc091-_0x23c019._0x234858,_0xcf298c);}return _0x57964a[_0xe32ea0(0x492,_0x303bbc._0xe6fb4a,0x41a,0x4ad)](/\/+$/,'');}function resolveApiCredential(_0x32a749,_0x5bdda6){const _0x6a38bc={_0x55c335:0x24b,_0x5469a6:0x183,_0x160e8a:0x183,_0x4eae32:0x135,_0xbb930a:0xea,_0x232e39:0x29},_0x78e97b={_0xeca59b:0x37,_0x48d1ff:0x1a8},_0x5649f8={_0x2c28a4:0x152};function _0x50be11(_0x29b43a,_0x22a7de,_0x42375b,_0x31d561){return _0x4d4006(_0x42375b,_0x22a7de-_0x5649f8._0x2c28a4,_0x29b43a- -0x58,_0x31d561-0x1bd);}if(_0x5bdda6?.[_0x5b2626(-_0x6a38bc._0x55c335,-_0x6a38bc._0x5469a6,-0x214,-0x19f)])return _0x5bdda6[_0x5b2626(-0xc7,-_0x6a38bc._0x160e8a,-0x223,-_0x6a38bc._0x4eae32)];function _0x5b2626(_0x33bb3d,_0x20c4a9,_0x504c51,_0x19ddda){return _0x18006e(_0x33bb3d-_0x78e97b._0xeca59b,_0x20c4a9-0x1eb,_0x20c4a9- -_0x78e97b._0x48d1ff,_0x19ddda);}if(!_0x32a749)return void 0x0;return{'kind':_0x5b2626(-0x6d,-_0x6a38bc._0xbb930a,-_0x6a38bc._0x232e39,-0x2c),'value':_0x32a749};}function resolveSessionBaseUrl(_0x418a1d,_0x337841){const _0x2ce9fc={_0x2d6acf:0x4},_0x5785b1={_0x45ea07:0x139,_0x256620:0x1d8};function _0x4682f2(_0x706660,_0x440d37,_0x5653e7,_0x37b5e5){return _0x18006e(_0x706660-0x15c,_0x440d37-_0x5785b1._0x45ea07,_0x706660- -_0x5785b1._0x256620,_0x37b5e5);}return trimTrailingSlashes(_0x337841?.[_0x4682f2(-0x4e,-0x59,-_0x2ce9fc._0x2d6acf,0x46)]?.['api']??_0x418a1d);}function _0x18006e(_0x16a8b1,_0x310cab,_0x556e9f,_0x23ebb1){const _0x908d41={_0x4231ba:0xff};return _0x2cfd(_0x556e9f- -_0x908d41._0x4231ba,_0x23ebb1);}function toErrorMessage(_0x9f5ace){const _0x433467={_0xbe1b3b:0x440,_0x1e54ca:0x1d5,_0x5313f1:0x1e5},_0x44385a={_0x2d2672:0x1ca,_0x49f720:0x31b},_0x258dad={_0x4ccb7f:0x7f,_0x1e622f:0x1b6};function _0xb85057(_0x145a6a,_0x57e477,_0x256552,_0x5614b1){return _0x4d4006(_0x57e477,_0x57e477-_0x258dad._0x4ccb7f,_0x145a6a- -_0x258dad._0x1e622f,_0x5614b1-0x13b);}if(_0x9f5ace instanceof Error&&_0x9f5ace['message'][_0x1b08e3(0x3cb,_0x433467._0xbe1b3b,0x439,0x4fd)]>0x0)return _0x9f5ace['message'];function _0x1b08e3(_0x179a60,_0x5b11e6,_0x4096de,_0x2b3b3f){return _0x18006e(_0x179a60-0xb3,_0x5b11e6-_0x44385a._0x2d2672,_0x5b11e6-_0x44385a._0x49f720,_0x2b3b3f);}return _0xb85057(-_0x433467._0x1e54ca,-_0x433467._0x5313f1,-0x1b8,-0x1bc);}function createDefaultWebSocketFactory(){return({headers:_0x541af3,url:_0x137e1e})=>{const _0x44ad25=globalThis['WebSocket'];return new _0x44ad25(_0x137e1e,{'headers':_0x541af3,'protocols':[]});};}async function*iterateSseEvents(_0x211659,_0x57365e){const _0x514968={_0x19f178:0x4c8,_0x5bfa7a:0x4c6,_0x4ec3e8:0x3d3,_0x3441ab:0x3ba,_0x51899f:0xfa,_0x562802:0x40d,_0x1a2f86:0x46a,_0x3aa073:0x376,_0x434b15:0x1de,_0x303350:0x187,_0x1fae88:0x250,_0x40ab62:0x1fe,_0x2ace63:0x1d5,_0x195532:0x14c,_0x5697db:0x407,_0x13bca7:0x404},_0x4fe133={_0x388c55:0x39c,_0x4a8cea:0x323},_0x487975={_0x3d4637:0x54,_0xda2095:0x359},_0x2464fc=_0x211659[_0x459798(_0x514968._0x19f178,0x577,_0x514968._0x5bfa7a,0x419)]?.[_0x459798(0x447,_0x514968._0x4ec3e8,_0x514968._0x3441ab,0x46d)]();function _0x459798(_0x16dc47,_0x31146b,_0xa63fbe,_0x50ba4f){return _0x4d4006(_0x31146b,_0x31146b-_0x487975._0x3d4637,_0x16dc47-_0x487975._0xda2095,_0x50ba4f-0x16b);}if(!_0x2464fc)return;const _0x4306e7=new TextDecoder(_0x51138c(0xce,0x137,_0x514968._0x51899f,0x176));let _0x4c388e='';const _0x51d7e1=addAbortListener(_0x57365e,()=>{const _0x3eef15={_0x2c599a:0x64,_0x448f82:0x196};function _0x2eb11b(_0x568eca,_0x27c37f,_0x3185d7,_0x2918a8){return _0x459798(_0x2918a8- -_0x3eef15._0x2c599a,_0x568eca,_0x3185d7-0xaa,_0x2918a8-_0x3eef15._0x448f82);}void _0x2464fc[_0x2eb11b(0x438,_0x4fe133._0x388c55,_0x4fe133._0x4a8cea,0x3d2)](toAbortError(_0x57365e?.['reason']))['catch'](()=>{});});function _0x51138c(_0x24cb38,_0xb20e94,_0x5efc03,_0x415e86){return _0x4d4006(_0x24cb38,_0xb20e94-0x1a1,_0xb20e94-0xd9,_0x415e86-0xa);}try{while(!![]){throwIfAborted(_0x57365e);const {value:_0x18b1ca,done:_0x413fba}=await _0x2464fc['read']();throwIfAborted(_0x57365e);if(_0x413fba)break;_0x4c388e+=_0x4306e7[_0x459798(_0x514968._0x562802,_0x514968._0x1a2f86,_0x514968._0x3aa073,0x4cb)](_0x18b1ca,{'stream':!![]});while(!![]){const _0x3eb147=_0x4c388e[_0x51138c(0x1fd,_0x514968._0x434b15,_0x514968._0x303350,_0x514968._0x1fae88)]('\x0a\x0a');if(_0x3eb147===-0x1)break;const _0x45e6bd=_0x4c388e[_0x459798(0x455,0x3bc,0x3d0,0x4a3)](0x0,_0x3eb147);_0x4c388e=_0x4c388e[_0x51138c(_0x514968._0x40ab62,_0x514968._0x2ace63,_0x514968._0x195532,0x11f)](_0x3eb147+0x2),_0x45e6bd['trim']()[_0x459798(0x445,_0x514968._0x5697db,0x445,_0x514968._0x13bca7)]>0x0&&(yield _0x45e6bd);}}_0x4c388e+=_0x4306e7['decode'](),throwIfAborted(_0x57365e),_0x4c388e['trim']()['length']>0x0&&(yield _0x4c388e);}finally{_0x51d7e1();}}async function waitForWebSocketOpen(_0x3c6061,_0x32ec64){const _0x329b9c={_0x14cf3a:0x491,_0x1566dc:0x4d0,_0x2bcc29:0x551,_0x7780e5:0x138,_0xf01358:0x106},_0x5b54df={_0x42c256:0xed,_0x11e238:0x107,_0x202a8b:0x3df,_0xd4c858:0x345,_0x4c2231:0x2d4,_0x49618a:0x292,_0x1550e1:0x2be,_0x1574ba:0x34a,_0x180781:0x138,_0x3dac34:0xe9,_0x5c0104:0x125},_0x58876b={_0x354d47:0x1ac,_0xc8186d:0x16a,_0x27b572:0x1c5,_0x2b732b:0x21d,_0x1d04c9:0x145,_0x3508ee:0x15a,_0x1880f2:0x284},_0x19c391={_0x2bfe2c:0x9,_0x5bae12:0x32},_0x115df0={_0x6fda6d:0xda},_0x56e394={_0x17e926:0x142};if(_0x3c6061[_0x5f4775(0x525,_0x329b9c._0x14cf3a,_0x329b9c._0x1566dc,_0x329b9c._0x2bcc29)]===WebSocket[_0x14a86d(_0x329b9c._0x7780e5,0x16c,0x118,_0x329b9c._0xf01358)]){throwIfAborted(_0x32ec64);return;}throwIfAborted(_0x32ec64);function _0x14a86d(_0x533e83,_0x1101d9,_0x9c1049,_0x41eb78){return _0x18006e(_0x533e83-_0x56e394._0x17e926,_0x1101d9-0x122,_0x41eb78-0xb2,_0x1101d9);}function _0x5f4775(_0x1ef401,_0x297f59,_0x2f6096,_0x3f7615){return _0x4d4006(_0x3f7615,_0x297f59-0x126,_0x2f6096-0x3db,_0x3f7615-_0x115df0._0x6fda6d);}await new Promise((_0x2ec6a2,_0x5326fb)=>{const _0x4332af={_0x48e4f3:0x21},_0x1c286a={_0x1e5850:0xfc,_0x5c8d8e:0x7},_0x31123e={_0x1abd50:0x181,_0x37603b:0x1b0,_0x2a1d3c:0x15d},_0x5320b1={_0x319e72:0xe},_0x4b39b2={_0x105775:0x1a2},_0x21e30a=()=>{_0x8b6aa2(),_0x2ec6a2();},_0x181e05=_0x2a4911=>{const _0x111caa={_0x439394:0x282};function _0x58c5c6(_0x5c170e,_0x1c1278,_0x38daf0,_0x4da46d){return _0x2cfd(_0x38daf0- -_0x111caa._0x439394,_0x4da46d);}_0x8b6aa2(),_0x5326fb(new Error(_0x2a4911[_0x58c5c6(-_0x19c391._0x2bfe2c,0x89,-_0x19c391._0x5bae12,-0x2d)]||'WebSocket\x20request\x20failed'));};function _0x33f770(_0x2b815c,_0x4cfc32,_0x724184,_0x3f942f){return _0x5f4775(_0x2b815c-0x7e,_0x4cfc32-_0x4b39b2._0x105775,_0x4cfc32- -0x2e4,_0x2b815c);}const _0x28e780=_0x37cc1c=>{_0x8b6aa2();function _0x253386(_0x3f58b7,_0x2eb2c5,_0x364990,_0x4094d0){return _0x2cfd(_0x3f58b7- -0x395,_0x364990);}const _0x285d85=_0x37cc1c;function _0x11d9e9(_0x3513de,_0x3f06ac,_0x3632e3,_0x60a0e1){return _0x2cfd(_0x3513de-_0x5320b1._0x319e72,_0x3f06ac);}_0x5326fb(new Error(_0x285d85[_0x253386(-_0x31123e._0x1abd50,-0x1b6,-0x1de,-0x1dd)]||_0x253386(-0x1f0,-_0x31123e._0x37603b,-0x1f5,-_0x31123e._0x2a1d3c)));},_0x25cb07=()=>{const _0x39eab0={_0x24b212:0x10a};function _0x845292(_0x1f0316,_0x232c80,_0x4ed777,_0x49e107){return _0x2cfd(_0x4ed777- -_0x39eab0._0x24b212,_0x49e107);}_0x8b6aa2();_0x3c6061['readyState']===WebSocket['OPEN']&&_0x3c6061['close'](0x3e8,_0x845292(_0x1c286a._0x1e5850,-_0x1c286a._0x5c8d8e,0x8d,0x137));function _0x348cb2(_0x58f187,_0x19136e,_0x253906,_0x2010d0){return _0x2cfd(_0x58f187-0x2df,_0x2010d0);}_0x5326fb(toAbortError(_0x32ec64?.[_0x348cb2(0x4f3,0x5aa,0x505,0x5a8)]));},_0x8b6aa2=()=>{_0x3c6061['removeEventListener']('open',_0x21e30a);function _0xc6e2c8(_0x472ba8,_0xe28aa0,_0x14b739,_0x237564){return _0x2cfd(_0xe28aa0- -_0x4332af._0x48e4f3,_0x14b739);}_0x3c6061[_0xc6e2c8(_0x58876b._0x354d47,0x1c3,0x269,_0x58876b._0xc8186d)](_0xc6e2c8(0x169,_0x58876b._0x27b572,_0x58876b._0x2b732b,0x267),_0x181e05),_0x3c6061['removeEventListener'](_0xc6e2c8(0x147,0x153,_0x58876b._0x1d04c9,_0x58876b._0x3508ee),_0x28e780);function _0xee4b4a(_0x106c62,_0x46cc2b,_0x408ccf,_0x3bd8af){return _0x2cfd(_0x106c62- -0x256,_0x408ccf);}_0x32ec64?.['removeEventListener'](_0xc6e2c8(0x258,_0x58876b._0x1880f2,0x2c1,0x1d6),_0x25cb07);};_0x3c6061[_0x33f770(0x78,_0x5b54df._0x42c256,_0x5b54df._0x11e238,0x9c)](_0x1be84d(_0x5b54df._0x202a8b,0x35b,_0x5b54df._0xd4c858,0x33a),_0x21e30a),_0x3c6061[_0x1be84d(0x356,0x26f,_0x5b54df._0x4c2231,_0x5b54df._0x49618a)](_0x1be84d(0x2eb,_0x5b54df._0x1550e1,0x2b2,_0x5b54df._0x1574ba),_0x181e05),_0x3c6061[_0x33f770(_0x5b54df._0x180781,0xed,_0x5b54df._0x3dac34,0x109)]('close',_0x28e780);function _0x1be84d(_0x3edcab,_0x40fc09,_0x24a768,_0x5d3353){return _0x5f4775(_0x3edcab-0x1ae,_0x40fc09-0x103,_0x5d3353- -0x13f,_0x24a768);}_0x32ec64?.[_0x33f770(0x60,0xed,_0x5b54df._0x5c0104,0x49)]('abort',_0x25cb07,{'once':!![]});});}function iterateWebSocketMessages(_0x5904d4,_0x33f31e){const _0x461594={_0xe2f019:0x126,_0x51d13d:0x2e0,_0x2b7bcc:0x215,_0x4ee729:0x1d1,_0x1f0a62:0x1da},_0x5408f4={_0x15c46d:0x330,_0x2bbd39:0x3a7,_0x432457:0x3bf,_0x2b590f:0x3ad,_0x356590:0x439,_0x3cebb5:0x3a8,_0x9c4075:0x3ac,_0x25880e:0x11a,_0x707da0:0x188,_0x4db6eb:0x1c8,_0x5b0943:0x1e5,_0x10c3b5:0x3fe,_0x271ebc:0x364,_0x37c5fe:0x2f7},_0x4e0a6e={_0x107e78:0x5e,_0x2a0279:0x19e},_0x4330e3={_0xa74951:0x67},_0x572e36={_0x3044a8:0x107,_0x3f7ac3:0x97,_0x1b277d:0x49,_0x3c7cba:0x1d9,_0x39285b:0x2a7,_0x35b2b5:0x24c,_0x2f5626:0x276,_0x2b4858:0x26f},_0x155442={_0x462b18:0xb0,_0x1dffa7:0x15c},_0x33e16d={_0x51d1d1:0x227,_0x43e6e1:0x208,_0x26bdff:0x1aa,_0x29288f:0xb,_0x2c740f:0xd3,_0x3de1b2:0x91,_0x4720ec:0x107,_0x109983:0x14c,_0x279f6e:0x19e,_0x1b11da:0x229,_0x13a0e6:0x196,_0x12700d:0x22c,_0x5769f2:0x102},_0x377fdd={_0x58e23c:0x2e7},_0x39a1b5={_0x437676:0x507,_0x9312b:0x5a0,_0x3bb401:0x4dd,_0x5d26ac:0x63c,_0x242c19:0x541,_0x5c79d3:0x605},_0x57c8b8={_0x23e0d1:0x2ce},_0x54069e=[];let _0x139a25=![],_0x421874,_0x3b1c5b;const _0x345479=_0x293d19=>{function _0xa4759e(_0x46d1b8,_0x4f0bb0,_0x3cf9c7,_0x3a72fc){return _0x2cfd(_0x3a72fc-_0x57c8b8._0x23e0d1,_0x3cf9c7);}function _0x1fe0fe(_0x1fef22,_0x14ad41,_0x52ba7a,_0x963e52){return _0x2cfd(_0x14ad41-0x3a1,_0x963e52);}const _0x39487e=_0x293d19;try{_0x54069e[_0xa4759e(0x5b5,_0x39a1b5._0x437676,_0x39a1b5._0x9312b,0x51d)](JSON['parse'](String(_0x39487e[_0x1fe0fe(_0x39a1b5._0x3bb401,0x592,_0x39a1b5._0x5d26ac,0x585)]))),_0x3b1c5b?.(),_0x3b1c5b=void 0x0;}catch(_0x26b656){_0x421874=new Error(_0x1fe0fe(0x4a1,_0x39a1b5._0x242c19,_0x39a1b5._0x5c79d3,0x5e8)+toErrorMessage(_0x26b656)),_0x3b1c5b?.(),_0x3b1c5b=void 0x0;}},_0xb5eb97=_0x4f41bb=>{const _0x58a9ba=_0x4f41bb;_0x421874=new Error(_0x58a9ba['message']||_0x56d9d5(0x169,0x219,0x193,0x182)),_0x3b1c5b?.();function _0x56d9d5(_0x1616c8,_0x16d92d,_0x1255b2,_0x218de0){return _0x2cfd(_0x1616c8-0x50,_0x1255b2);}_0x3b1c5b=void 0x0;},_0x2cf222=_0x5a4820=>{const _0x462860={_0x3a4bb6:0x59};function _0x3f328b(_0x34c757,_0x4613ca,_0x35e1bc,_0x3503dc){return _0x2cfd(_0x35e1bc- -_0x377fdd._0x58e23c,_0x34c757);}const _0x2973f6=_0x5a4820;!_0x139a25&&_0x2973f6[_0x3f328b(-_0x33e16d._0x51d1d1,-_0x33e16d._0x43e6e1,-_0x33e16d._0x26bdff,-0x21b)]!==0x3e8&&!_0x421874&&(_0x421874=new Error(_0x2973f6[_0x3f328b(-_0x33e16d._0x29288f,-0x87,-_0x33e16d._0x2c740f,-_0x33e16d._0x3de1b2)]||_0x3f328b(-_0x33e16d._0x4720ec,-_0x33e16d._0x109983,-0x132,-_0x33e16d._0x279f6e)+_0x2973f6[_0x3f2ddd(_0x33e16d._0x1b11da,_0x33e16d._0x13a0e6,_0x33e16d._0x12700d,_0x33e16d._0x5769f2)]));function _0x3f2ddd(_0x20f37a,_0x45382c,_0x2983e7,_0x76f0f4){return _0x2cfd(_0x45382c-_0x462860._0x3a4bb6,_0x2983e7);}_0x139a25=!![],_0x3b1c5b?.(),_0x3b1c5b=void 0x0;};function _0x120e32(_0x317cef,_0x5d4a1,_0x135e1e,_0x5086ff){return _0x18006e(_0x317cef-_0x155442._0x462b18,_0x5d4a1-0x16,_0x5d4a1-_0x155442._0x1dffa7,_0x135e1e);}const _0x1548cd=addAbortListener(_0x33f31e,()=>{const _0x33009b={_0x998ac4:0xd8};_0x421874=toAbortError(_0x33f31e?.[_0x223491(_0x572e36._0x3044a8,_0x572e36._0x3f7ac3,_0x572e36._0x1b277d,-0x78)]);function _0x30edb1(_0x8bd21e,_0x2e0e02,_0x3293c9,_0x4640e8){return _0x2cfd(_0x4640e8-_0x33009b._0x998ac4,_0x3293c9);}_0x5904d4['readyState']===WebSocket['OPEN']&&_0x5904d4[_0x30edb1(_0x572e36._0x3c7cba,0x1be,_0x572e36._0x39285b,_0x572e36._0x35b2b5)](0x3e8,_0x30edb1(0x1ec,0x2c0,_0x572e36._0x2f5626,_0x572e36._0x2b4858));_0x3b1c5b?.();function _0x223491(_0x54ccc6,_0x395bcf,_0x4819a2,_0x431280){return _0x2cfd(_0x4819a2- -0x1cb,_0x54ccc6);}_0x3b1c5b=void 0x0;});_0x5904d4['addEventListener'](_0x4144d8(0x567,0x4de,0x61f,0x4a3),_0x345479),_0x5904d4[_0x120e32(_0x461594._0xe2f019,0x18b,0x206,0x1e7)](_0x120e32(0x2d7,0x243,0x2ff,_0x461594._0x51d13d),_0xb5eb97);function _0x4144d8(_0x13ac8b,_0x14e2be,_0x1a0470,_0x3725c1){return _0x18006e(_0x13ac8b-_0x4330e3._0xa74951,_0x14e2be-0x1ec,_0x13ac8b-0x416,_0x1a0470);}return _0x5904d4[_0x4144d8(0x445,0x4da,0x400,0x3ca)](_0x120e32(_0x461594._0x2b7bcc,_0x461594._0x4ee729,0x296,_0x461594._0x1f0a62),_0x2cf222),{async*[Symbol['asyncIterator']](){function _0x5718d0(_0x58c185,_0x3b30f7,_0x1f1a67,_0x2caeb0){return _0x4144d8(_0x3b30f7- -0x683,_0x3b30f7-0x29,_0x1f1a67,_0x2caeb0-0x1b8);}function _0x4f6ffd(_0x156dce,_0x3449ce,_0x1992ef,_0x1a3764){return _0x120e32(_0x156dce-_0x4e0a6e._0x107e78,_0x1a3764-0x126,_0x1992ef,_0x1a3764-_0x4e0a6e._0x2a0279);}try{while(!![]){if(_0x421874)throw _0x421874;if(_0x54069e[_0x4f6ffd(0x37e,_0x5408f4._0x15c46d,0x444,_0x5408f4._0x2bbd39)]>0x0){yield _0x54069e[_0x5718d0(-0x26e,-0x1ad,-0x13d,-0x120)]();continue;}if(_0x139a25)break;await new Promise(_0x194b3d=>{_0x3b1c5b=_0x194b3d;});}}finally{_0x5904d4[_0x4f6ffd(_0x5408f4._0x432457,_0x5408f4._0x2b590f,0x2ee,0x367)](_0x4f6ffd(_0x5408f4._0x356590,_0x5408f4._0x3cebb5,_0x5408f4._0x9c4075,0x3d3),_0x345479),_0x5904d4[_0x5718d0(-_0x5408f4._0x25880e,-_0x5408f4._0x707da0,-_0x5408f4._0x4db6eb,-_0x5408f4._0x5b0943)](_0x4f6ffd(0x424,_0x5408f4._0x10c3b5,0x40c,0x369),_0xb5eb97),_0x5904d4['removeEventListener'](_0x4f6ffd(0x34c,0x233,_0x5408f4._0x271ebc,_0x5408f4._0x37c5fe),_0x2cf222),_0x1548cd();}}};}function toWebSocketUrl(_0x355390,_0x3fcd32){const _0x769d33={_0x444dee:0x4c2,_0x343037:0x12b,_0x5b59fa:0x181,_0x914188:0x49b,_0x2d2e3f:0x258},_0x2cc40c={_0x341bdb:0x1b9,_0x25550b:0x3b2},_0x4b0665={_0x28b3d6:0x12d},_0x95b6b0=new URL(_0x3fcd32,_0x355390);function _0x28891e(_0x495597,_0x2a9555,_0x25f3b9,_0x89fe35){return _0x4d4006(_0x495597,_0x2a9555-0x182,_0x89fe35- -0x271,_0x89fe35-_0x4b0665._0x28b3d6);}_0x95b6b0[_0x203523(0x3ec,0x4b0,0x505,_0x769d33._0x444dee)]=_0x95b6b0['protocol']==='https:'?_0x28891e(-_0x769d33._0x343037,-_0x769d33._0x5b59fa,-0x16d,-0x1ce):_0x203523(0x556,_0x769d33._0x914188,0x44e,0x4d7);function _0x203523(_0x4a086d,_0x2837e8,_0x38e637,_0x2e4c08){return _0x18006e(_0x4a086d-_0x2cc40c._0x341bdb,_0x2837e8-0x4f,_0x2837e8-_0x2cc40c._0x25550b,_0x2e4c08);}return _0x95b6b0[_0x28891e(-0x18e,-_0x769d33._0x2d2e3f,-0x171,-0x225)]();}var ProviderSessionManager=class{[_0x4d4006(0x63,-0x26,0x9a,0xf0)];[_0x18006e(0x168,0x20b,0x195,0x16c)];constructor(_0x44e13a){const _0xaa8a79={_0x743969:0x1e1,_0x36194f:0x11c,_0x3010cb:0x1ca},_0x23b057={_0x54506a:0x14d,_0x345e4b:0x80};function _0x44b40e(_0x582c3c,_0x1c8d02,_0x2bc514,_0x572182){return _0x18006e(_0x582c3c-_0x23b057._0x54506a,_0x1c8d02-_0x23b057._0x345e4b,_0x582c3c-0x10e,_0x2bc514);}this[_0x44b40e(_0xaa8a79._0x743969,0x230,_0xaa8a79._0x36194f,_0xaa8a79._0x3010cb)]=_0x44e13a;}async[_0x4d4006(0x19,0xbf,0x91,0x7d)](_0x46e0bb){const _0xddc925={_0x28879b:0x62,_0x5cc8b2:0xea,_0x40919c:0x52,_0x7ee72a:0x5e,_0x915481:0x6d,_0xbb712:0x27,_0x4218d0:0xcc,_0x3d3ac8:0x1d0,_0x153601:0x10f,_0x9af6af:0x1b8,_0x2be3cf:0x91},_0x5e94ab={_0x5d8dcb:0x188,_0x55fc48:0x1a9,_0x25dc7f:0xda},_0x5f458c={_0x11b1d0:0x1c1,_0x42b8b4:0x128,_0x181bae:0x1f7};function _0x397a76(_0x4e831b,_0x355f80,_0x5e83f6,_0x283139){return _0x18006e(_0x4e831b-_0x5f458c._0x11b1d0,_0x355f80-_0x5f458c._0x42b8b4,_0x4e831b- -_0x5f458c._0x181bae,_0x283139);}!this[_0x397a76(-_0xddc925._0x28879b,-_0xddc925._0x5cc8b2,-_0xddc925._0x40919c,_0xddc925._0x7ee72a)]&&(this[_0x397a76(-0x62,-_0xddc925._0x915481,_0xddc925._0xbb712,-0xf6)]=this[_0x5b1eb4(-0xb1,-_0xddc925._0x4218d0,-_0xddc925._0x3d3ac8,-_0xddc925._0x153601)][_0x5b1eb4(-0x17e,-0x6c,-_0xddc925._0x9af6af,-0x118)](_0x46e0bb));function _0x5b1eb4(_0x33f843,_0x117317,_0x36e96c,_0x51b676){return _0x4d4006(_0x33f843,_0x117317-_0x5e94ab._0x5d8dcb,_0x51b676- -_0x5e94ab._0x55fc48,_0x51b676-_0x5e94ab._0x25dc7f);}return structuredClone(await this[_0x397a76(-0x62,-0x6f,-_0xddc925._0x2be3cf,0x27)]);}[_0x18006e(0xc9,0x6a,0x70,0x6c)](){const _0x301275={_0xb78f87:0x17a,_0x1940cd:0x1ab},_0x283d4e={_0x12905b:0x2b,_0x439afd:0x1a3};function _0x552748(_0x2baf78,_0x29969b,_0x2a98fe,_0x543024){return _0x18006e(_0x2baf78-_0x283d4e._0x12905b,_0x29969b-_0x283d4e._0x439afd,_0x29969b- -0x2d9,_0x543024);}this[_0x552748(-_0x301275._0xb78f87,-0x144,-0x1ba,-_0x301275._0x1940cd)]=void 0x0;}};async function prepareProviderRequest(_0x10f97c,_0x325d36={}){const _0x54f194={_0x31e1b8:0x408,_0x516052:0x4eb,_0x7b7e17:0x4a7,_0x28c0ca:0xbc},_0x39eb5e={_0x36a619:0x416,_0x53da3e:0x1ea},_0x133b5e={_0x587d36:0xa9};function _0x2b724e(_0x3ba694,_0x53d859,_0xc1e29,_0x1a7378){return _0x4d4006(_0x53d859,_0x53d859-0x195,_0xc1e29- -_0x133b5e._0x587d36,_0x1a7378-0x115);}let _0x3fab79={'request':structuredClone(_0x10f97c),'session':_0x325d36[_0x552754(0x393,_0x54f194._0x31e1b8,0x464,0x39a)]?await _0x325d36['sessionManager'][_0x552754(_0x54f194._0x516052,_0x54f194._0x7b7e17,0x539,0x4aa)](_0x325d36['signal']):void 0x0};function _0x552754(_0xdc7046,_0x20bd41,_0x1ae965,_0x3f4285){return _0x4d4006(_0x3f4285,_0x20bd41-0x1ae,_0x20bd41-_0x39eb5e._0x36a619,_0x3f4285-_0x39eb5e._0x53da3e);}for(const _0x51f031 of _0x325d36[_0x2b724e(0x3f,0xe0,0x7f,_0x54f194._0x28c0ca)]??[]){_0x3fab79=await _0x51f031(_0x3fab79);}return _0x3fab79;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{['model'];[_0x18006e(0x18a,0x1a9,0x19d,0x170)];[_0x18006e(0x70,0xdb,0x10f,0x64)];[_0x18006e(0xed,0x175,0x14a,0xc0)];[_0x4d4006(0x1a6,0x18a,0x10d,0xef)];[_0x18006e(0xdf,0x97,0xc5,0xb0)];[_0x4d4006(-0x40,-0x6e,-0xd,0x40)];[_0x18006e(0x222,0x226,0x161,0x16b)];[_0x18006e(0x18,0x46,0x87,0xee)];['sessionManager'];[_0x4d4006(0x89,0x1aa,0xf9,0x95)];['surfaces']=new Map();constructor(_0x2392e3){const _0x5e4ee5={_0x32d5bf:0x19,_0x1d0c26:0x53,_0x29053b:0x16b,_0x21900f:0xbe,_0x1b9fa0:0x42,_0x29f0df:0x147,_0x4577c9:0xe5,_0x2dc76c:0xf7,_0x23f900:0x7a,_0x99d370:0x14d,_0x34a70a:0x3e,_0x17151a:0xe1,_0x32cca8:0x5c,_0x4d7d77:0x134,_0x32d1c7:0xaa,_0x5570d4:0x12d,_0x3b3590:0x62,_0x1881b9:0xe4,_0xca5128:0x18c,_0x436cf1:0x89,_0x5b3e34:0x12f,_0x59ec0f:0xe8,_0xd9035d:0x12e,_0x5aca77:0xf8,_0x321f2f:0xe8,_0xcce3d:0x86,_0x4b6b82:0x1ac,_0x2d84bc:0x9f,_0x2fcba9:0x14,_0x36b2de:0x7c,_0x5bc9da:0x3,_0x4b193d:0x32,_0x5e8211:0x1d,_0xf63def:0x16c,_0x5dc09a:0x15f,_0x819e9d:0x16b,_0x34d0d7:0x1c9,_0x2e8267:0x91,_0x13dd3a:0x107,_0x33e8db:0xba,_0x2c2a2a:0x195,_0x4b41f1:0x140,_0x4b8f2a:0xbf,_0x49a710:0x14b,_0x5d79f5:0x18b,_0x45746c:0xc2,_0x5a8fd4:0x11a,_0x2576bc:0x71,_0x2e0adc:0xcd,_0x5f08b8:0x96,_0x249041:0x15d,_0xa8c201:0x10e,_0x3f8ffc:0x17e,_0x555198:0x1f5,_0x1f6bc0:0x1d6,_0x59343e:0x1e2},_0x2e2fca={_0x5be018:0x1a6,_0x3900f8:0x18},_0x534b7d={_0x2acb46:0x1e,_0x35d6c0:0x4c,_0x1db9fd:0x1f4};this['model']=_0x2392e3[_0xfcea84(0x30,_0x5e4ee5._0x32d5bf,0x7e,_0x5e4ee5._0x1d0c26)],this[_0xfcea84(0x185,0xd8,0x22b,0xc0)]=_0x2392e3[_0xfcea84(0x185,0x166,_0x5e4ee5._0x29053b,_0x5e4ee5._0x21900f)]??0x4000,this[_0x5d1f14(-_0x5e4ee5._0x1b9fa0,-0x13d,-_0x5e4ee5._0x29f0df,-_0x5e4ee5._0x4577c9)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x2dc76c,_0x5e4ee5._0x23f900,0x48,_0x5e4ee5._0x99d370)]?structuredClone(_0x2392e3[_0x5d1f14(-0x159,-_0x5e4ee5._0x34a70a,-_0x5e4ee5._0x17151a,-0xe5)]):void 0x0,this[_0x5d1f14(-_0x5e4ee5._0x32cca8,-_0x5e4ee5._0x4d7d77,-0xfc,-_0x5e4ee5._0x32d1c7)]=_0x2392e3['apiKey'],this[_0x5d1f14(-_0x5e4ee5._0x5570d4,-_0x5e4ee5._0x3b3590,-0x163,-0xae)]=_0x2392e3[_0xfcea84(0x12e,0x1dc,_0x5e4ee5._0x1881b9,0xd9)],this[_0x5d1f14(-_0x5e4ee5._0xca5128,-_0x5e4ee5._0x436cf1,-_0x5e4ee5._0x5b3e34,-_0x5e4ee5._0x5b3e34)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x59ec0f,_0x5e4ee5._0xd9035d,0x17e,_0x5e4ee5._0x5aca77)]??globalThis[_0xfcea84(_0x5e4ee5._0x321f2f,_0x5e4ee5._0xcce3d,_0x5e4ee5._0x4b6b82,_0x5e4ee5._0x2d84bc)],this[_0xfcea84(_0x5e4ee5._0x2fcba9,0x2d,-_0x5e4ee5._0x36b2de,-0x4b)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x2fcba9,0x8,-0x71,-0x24)],this[_0x5d1f14(-0x154,-0x13e,-_0x5e4ee5._0x5bc9da,-0x93)]=_0x2392e3[_0x5d1f14(-0x96,-0x10f,-0x150,-0x93)]??[],this[_0xfcea84(0x6f,-_0x5e4ee5._0x4b193d,_0x5e4ee5._0x5e8211,0x46)]=_0x2392e3['router'];function _0x5d1f14(_0x38461a,_0xdaa6d,_0x54992f,_0x191085){return _0x18006e(_0x38461a-_0x534b7d._0x2acb46,_0xdaa6d-_0x534b7d._0x35d6c0,_0x191085- -_0x534b7d._0x1db9fd,_0x38461a);}this[_0x5d1f14(-_0x5e4ee5._0xf63def,-_0x5e4ee5._0x5dc09a,-_0x5e4ee5._0x819e9d,-_0x5e4ee5._0x34d0d7)]=_0x2392e3[_0xfcea84(0x13,-0x1b,-0xab,_0x5e4ee5._0x2e8267)]??(_0x2392e3[_0xfcea84(_0x5e4ee5._0x13dd3a,_0x5e4ee5._0x33e8db,_0x5e4ee5._0x2c2a2a,_0x5e4ee5._0x4b41f1)]?new ProviderSessionManager(_0x2392e3[_0xfcea84(_0x5e4ee5._0x13dd3a,0x98,_0x5e4ee5._0x4b8f2a,0x16d)]):void 0x0);function _0xfcea84(_0x558ed2,_0x78bf84,_0x26554d,_0x576b8d){return _0x18006e(_0x558ed2-0x133,_0x78bf84-_0x2e2fca._0x5be018,_0x558ed2- -_0x2e2fca._0x3900f8,_0x26554d);}this[_0x5d1f14(-_0x5e4ee5._0x49a710,-_0x5e4ee5._0x5d79f5,-0x17e,-_0x5e4ee5._0x45746c)]=_0x2392e3[_0xfcea84(_0x5e4ee5._0x5a8fd4,_0x5e4ee5._0x2576bc,_0x5e4ee5._0x2e0adc,0xf6)]??createDefaultWebSocketFactory();for(const _0x3d030a of _0x2392e3[_0x5d1f14(-0x4a,-0x145,0x24,-_0x5e4ee5._0x5f08b8)]){this[_0x5d1f14(-_0x5e4ee5._0x249041,-0x57,-_0x5e4ee5._0xa8c201,-_0x5e4ee5._0x5f08b8)][_0xfcea84(_0x5e4ee5._0x3f8ffc,_0x5e4ee5._0x555198,_0x5e4ee5._0x1f6bc0,_0x5e4ee5._0x59343e)](_0x3d030a['id'],_0x3d030a);}}['complete'](_0x4df51a,_0x3d7134){const _0x4dfa10={_0x24bca1:0x2f2,_0xb8605b:0x301},_0xd039e4={_0x3f8dc0:0x11d,_0x2b72de:0x103};function _0x5a16dd(_0x122bd7,_0x34a8f3,_0x12a9bf,_0x3a7d6e){return _0x18006e(_0x122bd7-_0xd039e4._0x3f8dc0,_0x34a8f3-0x173,_0x3a7d6e-_0xd039e4._0x2b72de,_0x122bd7);}return this[_0x5a16dd(_0x4dfa10._0x24bca1,0x24b,_0x4dfa10._0xb8605b,0x290)](_0x4df51a,_0x3d7134);}[_0x18006e(0x164,0x56,0xeb,0x24)](_0x38adea,_0x4e2924){const _0x5b3f1a={_0x5af46c:0xcb,_0x3310b4:0x126},_0x182ab1={_0x2d0341:0xa2};function _0x2c238c(_0x457042,_0x5b0af6,_0x3436a2,_0xf95b9a){return _0x4d4006(_0x5b0af6,_0x5b0af6-0x161,_0x457042-_0x182ab1._0x2d0341,_0xf95b9a-0x1d2);}return this[_0x2c238c(0xeb,0x115,_0x5b3f1a._0x5af46c,_0x5b3f1a._0x3310b4)](_0x38adea,_0x4e2924);}async['completeViaRouter'](_0x177334,_0x3c3727){const _0x13c12a={_0x583128:0x673,_0x409f7c:0x5ca,_0x43d606:0x4ea,_0x7eab8c:0x4e2,_0x464050:0x564,_0x438329:0x543,_0x4287e0:0x615},_0x2d060a={_0x4920fc:0xdb,_0x18b724:0xc5,_0x394be5:0x3d7},_0x4ce30d={_0x3109c2:0x4d,_0x4b1fc2:0x510};function _0x480dc2(_0x941c19,_0xf1b343,_0x307c73,_0x3f1e36){return _0x4d4006(_0x307c73,_0xf1b343-_0x4ce30d._0x3109c2,_0xf1b343-_0x4ce30d._0x4b1fc2,_0x3f1e36-0x197);}const _0x18e23a=this[_0x480dc2(0x5ef,_0x13c12a._0x583128,0x685,_0x13c12a._0x409f7c)](_0x177334),_0x155467=await this[_0x480dc2(_0x13c12a._0x43d606,0x55e,_0x13c12a._0x7eab8c,0x4d2)][_0x252666(_0x13c12a._0x464050,_0x13c12a._0x438329,0x56f,_0x13c12a._0x4287e0)](_0x18e23a,{'mode':'complete'});function _0x252666(_0x2e783e,_0x4e76bc,_0x386905,_0x3661ae){return _0x18006e(_0x2e783e-_0x2d060a._0x4920fc,_0x4e76bc-_0x2d060a._0x18b724,_0x386905-_0x2d060a._0x394be5,_0x2e783e);}return this['completeViaSurface'](_0x18e23a,_0x155467,_0x3c3727);}async*['streamViaRouter'](_0x321aef,_0x41889e){const _0x3872e0={_0x2abfc4:0x2,_0x328db4:0xcc,_0x324fd4:0x6f,_0x449898:0x80,_0x17afac:0x87,_0x385097:0xd1,_0x3344fc:0xf4,_0x211262:0x102},_0x342a64={_0x1f0b22:0x10e,_0x334293:0xa1},_0x25fca6={_0xec0618:0x171},_0x4ffd3b=this['applyModelDefaults'](_0x321aef);function _0x554bb9(_0x55a440,_0x56e407,_0x24076d,_0x6a6432){return _0x4d4006(_0x55a440,_0x56e407-0x1ce,_0x56e407-0x41,_0x6a6432-_0x25fca6._0xec0618);}const _0x41a5b4=await this[_0x3c7ee6(-0x128,-0xda,-_0x3872e0._0x2abfc4,-0xc0)][_0x3c7ee6(_0x3872e0._0x328db4,_0x3872e0._0x324fd4,-0x29,0x51)](_0x4ffd3b,{'mode':_0x554bb9(_0x3872e0._0x449898,0xf3,_0x3872e0._0x17afac,_0x3872e0._0x385097)});function _0x3c7ee6(_0xf94e32,_0x5a7867,_0x1b9c54,_0x3c01d9){return _0x4d4006(_0x1b9c54,_0x5a7867-0x152,_0x3c01d9- -_0x342a64._0x1f0b22,_0x3c01d9-_0x342a64._0x334293);}yield*this[_0x554bb9(0x9f,_0x3872e0._0x3344fc,_0x3872e0._0x211262,0x169)](_0x4ffd3b,_0x41a5b4,_0x41889e);}async['completeViaSurface'](_0x1d1eaf,_0x48b4e1,_0x197af7){const _0x1beac6={_0x44f10d:0x38d,_0x4c7938:0x490,_0x3b2a25:0x295,_0x185fc3:0x3e0,_0x390801:0x27d,_0xc2666c:0x267,_0x353777:0x2a7,_0x23fe57:0x374,_0x1a93b8:0x2ae,_0x48a3b6:0x36c,_0x2e87db:0x3eb,_0x1221db:0x454,_0x57cfb3:0x263,_0x82a534:0x303,_0x582c4f:0x2d0,_0x50aae7:0x374,_0x30cd9e:0x2b1,_0x1aa5bc:0x262,_0x2994af:0x28d,_0x1519a2:0x346,_0xfb3a46:0x36c,_0x2364be:0x32c,_0x2838a8:0x2c2,_0x34e81c:0x2f3,_0x3cdcd9:0x1af,_0x14a5a9:0x212},_0x249182={_0x3c37b7:0x11f},_0x26caf8={_0x27513c:0x1a3},_0xbee1a3=this[_0x2fa6fc(_0x1beac6._0x44f10d,0x46d,_0x1beac6._0x4c7938,0x3d9)](_0x1d1eaf);function _0x259805(_0x131674,_0x152da4,_0x1312b8,_0x19f679){return _0x4d4006(_0x1312b8,_0x152da4-0x197,_0x152da4-0x226,_0x19f679-_0x26caf8._0x27513c);}const _0xc5e3bc=this['getSurface'](_0x48b4e1);if(_0xc5e3bc[_0x2fa6fc(0x297,_0x1beac6._0x3b2a25,_0x1beac6._0x185fc3,0x320)]===_0x259805(_0x1beac6._0x390801,_0x1beac6._0xc2666c,_0x1beac6._0x353777,0x1e9)){const _0x4883e1=await this[_0x2fa6fc(_0x1beac6._0x23fe57,0x26e,0x2f2,_0x1beac6._0x1a93b8)](_0xbee1a3,_0xc5e3bc,![],_0x197af7?.[_0x259805(0x340,0x31a,0x3de,0x3c8)]);if(!_0x4883e1['ok'])throw await this[_0x2fa6fc(_0x1beac6._0x48a3b6,_0x1beac6._0x2e87db,_0x1beac6._0x1221db,0x3cb)](_0x4883e1);if(!_0xc5e3bc['parseResponse'])throw new Error('Surface\x20'+_0x48b4e1+_0x259805(0x1f1,_0x1beac6._0x57cfb3,_0x1beac6._0x82a534,0x272));return _0xc5e3bc['parseResponse'](await _0x4883e1['json'](),_0xbee1a3);}let _0x59fd71;for await(const _0x4ee4cd of this[_0x259805(_0x1beac6._0x582c4f,0x2d9,_0x1beac6._0x50aae7,0x387)](_0xbee1a3,_0x48b4e1,_0x197af7)){_0x4ee4cd[_0x259805(_0x1beac6._0x30cd9e,0x29f,_0x1beac6._0x1aa5bc,_0x1beac6._0x2994af)]===_0x259805(_0x1beac6._0x1519a2,_0x1beac6._0xfb3a46,0x389,_0x1beac6._0x2364be)&&(_0x59fd71=_0x4ee4cd[_0x259805(_0x1beac6._0x2838a8,0x27f,0x22c,_0x1beac6._0x34e81c)]);}function _0x2fa6fc(_0x4f762e,_0x17207f,_0x129215,_0x4725cb){return _0x18006e(_0x4f762e-0x12f,_0x17207f-_0x249182._0x3c37b7,_0x4725cb-0x23d,_0x17207f);}if(!_0x59fd71)throw new Error('Surface\x20'+_0x48b4e1+_0x259805(0x26e,0x250,_0x1beac6._0x3cdcd9,_0x1beac6._0x14a5a9));return _0x59fd71;}async*[_0x18006e(0x3a,0x4f,0xec,0x119)](_0x2d886b,_0x4f0142,_0x5f34df){const _0x5cb8b1={_0x41ebbe:0x1af,_0x45d383:0x26a,_0x1dd6dc:0x1f1,_0xf3d4fa:0x25e,_0x2dbbd4:0x1cf,_0x5ae0cf:0x287,_0x792c6:0x1ac,_0x463e2b:0xab,_0x549191:0x13a,_0x1c1366:0x169,_0x1a3176:0x116,_0x31ff7f:0x193,_0x4b592f:0x12c,_0x58a025:0x1bc,_0x2f4a89:0x1c3,_0x4b047a:0x192,_0x44fc3f:0xf6,_0x4edde3:0x16e},_0xef6e56={_0x399592:0x6e,_0x2b9773:0x2e8},_0x11a26d={_0x591049:0x1b3,_0xefa35d:0x13},_0x107c9d=this[_0x43f44c(_0x5cb8b1._0x41ebbe,_0x5cb8b1._0x45d383,_0x5cb8b1._0x1dd6dc,_0x5cb8b1._0xf3d4fa)](_0x2d886b),_0x3f2c27=this[_0x1d8eeb(-0x305,-0x2ee,-_0x5cb8b1._0x2dbbd4,-_0x5cb8b1._0x5ae0cf)](_0x4f0142);function _0x43f44c(_0x17e2b9,_0x1dfb94,_0x3bf9f6,_0x8f1b38){return _0x18006e(_0x17e2b9-_0x11a26d._0x591049,_0x1dfb94-0x178,_0x17e2b9-_0x11a26d._0xefa35d,_0x3bf9f6);}function _0x1d8eeb(_0x4b4d8d,_0x237afe,_0x4b0362,_0x3085f8){return _0x18006e(_0x4b4d8d-_0xef6e56._0x399592,_0x237afe-0x1bd,_0x3085f8- -_0xef6e56._0x2b9773,_0x237afe);}if(_0x3f2c27[_0x43f44c(0xf6,_0x5cb8b1._0x792c6,_0x5cb8b1._0x463e2b,0x5f)]==='http-json'){yield{'type':_0x1d8eeb(-_0x5cb8b1._0x549191,-0x140,-0xb7,-_0x5cb8b1._0x1c1366),'response':await this[_0x1d8eeb(-0x187,-0x229,-0x188,-0x1d8)](_0x107c9d,_0x4f0142,_0x5f34df)};return;}if(_0x3f2c27[_0x43f44c(0xf6,0x32,_0x5cb8b1._0x1a3176,_0x5cb8b1._0x31ff7f)]===_0x1d8eeb(-_0x5cb8b1._0x4b592f,-0x1ec,-0x198,-_0x5cb8b1._0x58a025)){yield*this[_0x43f44c(0x1bf,0x152,_0x5cb8b1._0x2f4a89,0x1a0)](_0x107c9d,_0x3f2c27,_0x5f34df?.[_0x43f44c(0x140,0xf1,_0x5cb8b1._0x4b047a,_0x5cb8b1._0x44fc3f)]);return;}yield*this['streamWebSocketSurface'](_0x107c9d,_0x3f2c27,_0x5f34df?.[_0x1d8eeb(-0x14d,-0x1d7,-_0x5cb8b1._0x4edde3,-0x1bb)]);}async[_0x18006e(0xf1,0x7e,0x5b,-0x30)](_0x2d003d){const _0x24e082={_0x5b27df:0x49,_0x3f7bff:0x20},_0x1fac31={_0x3a9fbb:0x3b5,_0x57dd45:0x225,_0x1dcf9a:0x1cd,_0x291913:0x575,_0x2450f2:0x4e2,_0x5cb634:0x4a6,_0x5bb55b:0x47d,_0x5b39a2:0x3b6,_0xc09cfa:0x365,_0x644718:0x4aa,_0x42b002:0x4e6,_0x19a341:0x423,_0x1679fd:0x3bc,_0xe9dc73:0x1ee,_0x552e8d:0x14d,_0x18c22d:0x105,_0x5f03c9:0x194,_0x4b02ad:0xef,_0x1da9a1:0x160,_0x42008e:0xe8,_0x1c6070:0x217,_0x4669f6:0x2de,_0x218bed:0x12c,_0x1f8c31:0x1c3,_0x226cc1:0x118,_0x2c31f3:0xaa,_0x405b79:0x1ad,_0x54bd36:0x250,_0x50a380:0x208,_0x25ba1f:0x48e,_0x171d30:0x1f8,_0x8654f2:0x15e,_0x482d7c:0xe7,_0x353316:0xd9,_0x53b550:0x16a},_0x201e86={_0x4050f:0x28b},_0x3e2395=async()=>{const _0x3ad29f=this['sessionManager']?await this[_0x17d6af(0x323,0x3f4,_0x1fac31._0x3a9fbb,0x30d)][_0x200def(-0x255,-0x1ff,-_0x1fac31._0x57dd45,-_0x1fac31._0x1dcf9a)](_0x2d003d[_0x17d6af(_0x1fac31._0x291913,_0x1fac31._0x2450f2,0x4b7,_0x1fac31._0x5cb634)]):void 0x0,_0x4797a6=this[_0x17d6af(_0x1fac31._0x5bb55b,0x426,_0x1fac31._0x5b39a2,_0x1fac31._0xc09cfa)][_0x17d6af(_0x1fac31._0x644718,_0x1fac31._0x42b002,_0x1fac31._0x19a341,_0x1fac31._0x1679fd)](this[_0x200def(-_0x1fac31._0xe9dc73,-0x1a9,-0x1fe,-_0x1fac31._0x552e8d)],_0x3ad29f);if(!_0x4797a6)throw this['createMissingCredentialError']();const _0x442e5e=await this['createHeaders']({'body':_0x2d003d[_0x200def(-0xdd,-_0x1fac31._0x18c22d,-_0x1fac31._0x5f03c9,-_0x1fac31._0x4b02ad)],'credential':_0x4797a6,'session':_0x3ad29f,'stream':![]},{'accept':_0x2d003d[_0x200def(-_0x1fac31._0x1da9a1,-0x173,-_0x1fac31._0x42008e,-0x15a)]??_0x200def(-_0x1fac31._0x1c6070,-_0x1fac31._0x4669f6,-0x164,-0x21f),'includeContentType':_0x2d003d[_0x200def(-_0x1fac31._0x218bed,-0x5c,-0x12e,-0x10c)]===_0x200def(-_0x1fac31._0x1f8c31,-_0x1fac31._0x226cc1,-_0x1fac31._0x2c31f3,-0x131)});function _0x200def(_0x3e7dff,_0x1c473c,_0x45e9ee,_0x2f683f){return _0x2cfd(_0x2f683f- -0x396,_0x1c473c);}function _0x17d6af(_0x7dd54,_0x572d29,_0x49738d,_0x281dc4){return _0x2cfd(_0x49738d-_0x201e86._0x4050f,_0x7dd54);}return this['fetchImpl'](''+this['providerAdapter'][_0x200def(-_0x1fac31._0x405b79,-0x1c4,-_0x1fac31._0x54bd36,-_0x1fac31._0x50a380)](this[_0x17d6af(0x479,0x589,0x4d0,_0x1fac31._0x25ba1f)],_0x3ad29f)+_0x2d003d[_0x200def(-0x151,-0x183,-_0x1fac31._0x171d30,-_0x1fac31._0x8654f2)],{'method':_0x2d003d['method'],'headers':_0x442e5e,..._0x2d003d[_0x200def(-0x39,-0x18e,-0x74,-_0x1fac31._0x4b02ad)]!==void 0x0?{'body':JSON['stringify'](_0x2d003d['body'])}:{},'signal':_0x2d003d[_0x200def(-0xcb,-_0x1fac31._0x482d7c,-_0x1fac31._0x353316,-_0x1fac31._0x53b550)]});};function _0x169391(_0xdcd44a,_0x3ac61e,_0x4b35c4,_0x1a1fe3){return _0x4d4006(_0x4b35c4,_0x3ac61e-0x103,_0xdcd44a- -0xab,_0x1a1fe3-0xd5);}return await this['sendWithRetries'](_0x3e2395,_0x2d003d[_0x169391(_0x24e082._0x5b27df,-0x6e,0x2d,_0x24e082._0x3f7bff)]);}[_0x18006e(0x40,0xc7,0xf6,0x4e)](_0x1aadb3,_0x30ee59){const _0x46513c={_0x587dac:0xb1,_0x2e3371:0x18e,_0x5ea2c6:0x73,_0x2b6604:0xa0,_0xab3139:0x1d4,_0x3a1245:0x1fa,_0xb63bee:0x255,_0x83ed83:0x1c7,_0x63b12b:0x87,_0xde8604:0x88,_0x534542:0x83,_0x5dce9a:0x38,_0x584b85:0xf2},_0x1f0a02={_0x299107:0x17c},_0x191532={_0x16f2af:0x144,_0x4e520d:0xfb,_0x2f2d7d:0x28b},_0x3c91da=_0x1aadb3?.['headers'][_0x51b5eb(-_0x46513c._0x587dac,-_0x46513c._0x2e3371,-0xdd,-0x112)](_0x4c278b(-0xf4,-0x36,_0x46513c._0x5ea2c6,-_0x46513c._0x2b6604));function _0x51b5eb(_0x28db9e,_0x20c2b1,_0x508c9d,_0x401a8c){return _0x18006e(_0x28db9e-_0x191532._0x16f2af,_0x20c2b1-_0x191532._0x4e520d,_0x508c9d- -_0x191532._0x2f2d7d,_0x28db9e);}if(_0x3c91da){const _0x326772=Number(_0x3c91da);if(Number[_0x51b5eb(-_0x46513c._0xab3139,-0xfe,-0x17a,-0x185)](_0x326772)&&_0x326772>=0x0)return _0x326772*0x3e8;const _0x208515=Date[_0x51b5eb(-_0x46513c._0x3a1245,-0x2f0,-_0x46513c._0xb63bee,-_0x46513c._0x83ed83)](_0x3c91da);if(Number[_0x4c278b(_0x46513c._0x63b12b,-0x37,-_0x46513c._0xde8604,-_0x46513c._0x534542)](_0x208515))return Math['max'](0x0,_0x208515-Date[_0x51b5eb(-_0x46513c._0x5dce9a,-0xde,-_0x46513c._0x584b85,-0x118)]());}const _0x485dd7=DEFAULT_RETRY_DELAY_MS*0x2**_0x30ee59;function _0x4c278b(_0x378c8c,_0x5614d2,_0x5bb145,_0x114ac1){return _0x18006e(_0x378c8c-0x68,_0x5614d2-_0x1f0a02._0x299107,_0x5614d2- -0x148,_0x114ac1);}if(_0x485dd7<RETRY_DELAY_STEP_CAP_MS)return _0x485dd7;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x30ee59-0x5);}[_0x4d4006(0x129,0xbd,0xde,0x4b)](_0x12b42c){const _0x336ff7={_0x4ab907:0x1a3,_0x27dc29:0xf5},_0x48a703={_0x498a13:0x8b,_0x17747d:0x8e,_0x3b3935:0x128};function _0x4c67fc(_0x35c650,_0x421ade,_0x1f3654,_0x1ed8c3){return _0x18006e(_0x35c650-_0x48a703._0x498a13,_0x421ade-_0x48a703._0x17747d,_0x421ade- -_0x48a703._0x3b3935,_0x1f3654);}return RETRYABLE_HTTP_STATUSES['has'](_0x12b42c[_0x4c67fc(-_0x336ff7._0x4ab907,-_0x336ff7._0x27dc29,-0x19f,-0xdc)]);}[_0x4d4006(-0x29,0x5c,0x15,0xc2)](_0x78b9fa){return!isAbortError(_0x78b9fa)&&_0x78b9fa instanceof TypeError;}[_0x18006e(0x136,0x174,0x114,0x1cb)](_0x591efb){const _0x25f199={_0x349565:0x131,_0x1f87ee:0x130},_0x5789cc={_0x477942:0xeb,_0x2135d2:0x11c};function _0x31d2ee(_0x2e6ac1,_0x2afd7e,_0x5311c9,_0x42911e){return _0x4d4006(_0x2e6ac1,_0x2afd7e-_0x5789cc._0x477942,_0x2afd7e-_0x5789cc._0x2135d2,_0x42911e-0x62);}return this[_0x31d2ee(0x170,_0x25f199._0x349565,0x1f4,_0x25f199._0x1f87ee)](_0x591efb)||isRetryableProviderStreamEventError(_0x591efb);}async['waitForRetry'](_0xcacb6f,_0x2fdffc){throwIfAborted(_0x2fdffc),await new Promise((_0x40238f,_0x10fb78)=>{const _0x3e8063={_0x3da804:0x2a2,_0x30ca0a:0x206};let _0x3345a=![];const _0x368735=addAbortListener(_0x2fdffc,()=>{if(_0x3345a)return;_0x3345a=!![];function _0x5d42cd(_0x4c26a2,_0x33dd3e,_0x508801,_0x276de1){return _0x2cfd(_0x4c26a2-0x40,_0x276de1);}clearTimeout(_0x2e8fe7),_0x10fb78(toAbortError(_0x2fdffc?.[_0x5d42cd(0x254,_0x3e8063._0x3da804,0x266,_0x3e8063._0x30ca0a)]));}),_0x2e8fe7=setTimeout(()=>{_0x3345a=!![],_0x368735(),_0x40238f();},_0xcacb6f);}),throwIfAborted(_0x2fdffc);}async[_0x18006e(0x1de,0x15a,0x176,0xf4)](_0x50daa1,_0x161633){const _0xd650cf={_0xc45f48:0x235,_0xb71fd:0x22d,_0x5c6eee:0x176,_0x43d65d:0x470,_0x5e3be3:0x41a,_0x584a03:0x379,_0x4577b0:0x463,_0xabe644:0x49f,_0x595294:0x402,_0x147d38:0x4cc,_0x5179fe:0x36b,_0x398352:0x192,_0x45c8b1:0x14a,_0x46b854:0xa7,_0x5e3d43:0x181},_0x58cd69={_0x95310b:0x1df,_0x1a497a:0xb1},_0x16be92={_0x1b7ee9:0x61,_0x51ec03:0x144};function _0x3ec857(_0x476fb9,_0x4a7f64,_0x3ee84d,_0x507667){return _0x18006e(_0x476fb9-_0x16be92._0x1b7ee9,_0x4a7f64-_0x16be92._0x51ec03,_0x476fb9- -0x268,_0x3ee84d);}let _0xb4023c=![];for(let _0x1930e4=0x0;_0x1930e4<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x1930e4+=0x1){throwIfAborted(_0x161633);try{const _0x3187fc=await _0x50daa1();if(_0x3187fc[_0x3ec857(-_0xd650cf._0xc45f48,-_0xd650cf._0xb71fd,-0x17a,-0x1d2)]===0x191&&this['sessionManager']&&!_0xb4023c){_0xb4023c=!![],this[_0x3ec857(-0x23d,-0x26b,-0x1be,-_0xd650cf._0x5c6eee)][_0x3db96f(_0xd650cf._0x43d65d,_0xd650cf._0x5e3be3,_0xd650cf._0x584a03,_0xd650cf._0x4577b0)]();continue;}if(!this['shouldRetryResponse'](_0x3187fc)||_0x1930e4===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x3187fc;await this[_0x3db96f(0x46f,_0xd650cf._0xabe644,_0xd650cf._0x595294,_0xd650cf._0x147d38)](this['getRetryDelayMs'](_0x3187fc,_0x1930e4),_0x161633);}catch(_0x2f7c65){if(!this[_0x3db96f(0x351,0x3f8,_0xd650cf._0x5179fe,_0xd650cf._0xabe644)](_0x2f7c65)||_0x1930e4===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x2f7c65;await this[_0x3ec857(-0x173,-0x235,-_0xd650cf._0x398352,-_0xd650cf._0x45c8b1)](this[_0x3ec857(-0x172,-_0xd650cf._0x46b854,-_0xd650cf._0x5e3d43,-0x23a)](void 0x0,_0x1930e4),_0x161633);}}function _0x3db96f(_0x55b459,_0x28c694,_0x588fbc,_0x77bb56){return _0x18006e(_0x55b459-_0x58cd69._0x95310b,_0x28c694-_0x58cd69._0x1a497a,_0x28c694-0x3aa,_0x77bb56);}throw new Error('Provider\x20request\x20retry\x20loop\x20exited\x20unexpectedly');}[_0x4d4006(0x18e,0x9d,0x15e,0xd4)](){const _0x52b939={_0x23d1f3:0x4c3,_0x54e2af:0x3c2};function _0x34585c(_0x14cb44,_0x328c5f,_0x2651b8,_0x45ea2a){return _0x18006e(_0x14cb44-0xbc,_0x328c5f-0xf6,_0x328c5f-0x3f5,_0x2651b8);}return this[_0x34585c(0x40d,0x421,_0x52b939._0x23d1f3,_0x52b939._0x54e2af)]['createMissingCredentialError']();}async[_0x18006e(0x7a,0x107,0x140,0x14d)](_0x2358cf,_0x1a7768){const _0x362054={_0x68562c:0xf9,_0x3651a8:0xfa,_0x33760b:0x88,_0x380375:0x245,_0x5899cd:0x2fb,_0x57dcc3:0x313},_0x30911f={_0x13912f:0x1cf,_0x3ef4c9:0x234},_0x5c3cbd={_0x275c98:0x18f,_0xad87f7:0x12e};function _0x20a132(_0x4976df,_0x4e47ca,_0x3c19a9,_0x3678d3){return _0x4d4006(_0x3c19a9,_0x4e47ca-_0x5c3cbd._0x275c98,_0x4976df-0x150,_0x3678d3-_0x5c3cbd._0xad87f7);}function _0x32a702(_0x511250,_0xfc30b4,_0x14291b,_0x57e7f5){return _0x18006e(_0x511250-0x53,_0xfc30b4-_0x30911f._0x13912f,_0x57e7f5-_0x30911f._0x3ef4c9,_0x14291b);}return await this[_0x20a132(0x143,_0x362054._0x68562c,_0x362054._0x3651a8,_0x362054._0x33760b)][_0x20a132(0x257,_0x362054._0x380375,_0x362054._0x5899cd,_0x362054._0x57dcc3)](_0x2358cf,_0x1a7768);}['mapApiError'](_0x17e351){const _0x4551dc={_0x81fecc:0x24f,_0x389237:0x17d,_0x4b725b:0x21a},_0xed07c1={_0x5ed803:0x138};function _0x1e7be0(_0x2dd1df,_0x495f33,_0x46af65,_0x5ec15e){return _0x4d4006(_0x2dd1df,_0x495f33-_0xed07c1._0x5ed803,_0x46af65- -0x21b,_0x5ec15e-0x142);}return this['providerAdapter'][_0x1e7be0(-_0x4551dc._0x81fecc,-_0x4551dc._0x389237,-_0x4551dc._0x4b725b,-0x15d)](_0x17e351);}async['toApiError'](_0x416499){const _0x37d256={_0x59c879:0x3a7,_0x1bb095:0x316,_0x5c6f8a:0x3a7,_0x5aac7d:0x2b6,_0x191b80:0x32b,_0xb7b79b:0x278,_0x42ce3c:0x29b},_0x276641={_0x10d86f:0x3b4},_0x36cc96={_0x1210bc:0x149,_0x22a507:0xa5};function _0x151f90(_0x5d99ae,_0x5832fe,_0x59976d,_0x4b32ee){return _0x18006e(_0x5d99ae-_0x36cc96._0x1210bc,_0x5832fe-_0x36cc96._0x22a507,_0x59976d-0xea,_0x5d99ae);}function _0xe6d8c2(_0x2640f9,_0x3ccb6d,_0x4a68a4,_0x13b755){return _0x4d4006(_0x4a68a4,_0x3ccb6d-0x4d,_0x2640f9-_0x276641._0x10d86f,_0x13b755-0x162);}return await this[_0xe6d8c2(_0x37d256._0x59c879,_0x37d256._0x1bb095,0x355,_0x37d256._0x5c6f8a)][_0x151f90(_0x37d256._0x5aac7d,_0x37d256._0x191b80,_0x37d256._0xb7b79b,_0x37d256._0x42ce3c)](_0x416499);}[_0x4d4006(0x1e,0xf2,0x28,-0xd)](_0x9fe07e){const _0x374bfe={_0x39b198:0x4c8,_0x3ab67c:0x3b4,_0x395fa7:0x436,_0x2a1b9a:0x509,_0x908601:0x563},_0x4be43a={_0x3add0f:0x12f,_0x2e45a4:0x6a,_0x16cbed:0x35b};function _0x5a642d(_0xfa8910,_0x96ea38,_0x200ac1,_0x1e9717){return _0x18006e(_0xfa8910-0x3b,_0x96ea38-0x3d,_0x200ac1-0x2d8,_0x96ea38);}const _0x5e4b09=this[_0x5a642d(_0x374bfe._0x39b198,_0x374bfe._0x3ab67c,_0x374bfe._0x395fa7,0x453)][_0xd75e71(_0x374bfe._0x2a1b9a,0x5bb,0x4bb,_0x374bfe._0x908601)](_0x9fe07e);function _0xd75e71(_0x38191a,_0x304dfe,_0x34357d,_0x1b094f){return _0x18006e(_0x38191a-_0x4be43a._0x3add0f,_0x304dfe-_0x4be43a._0x2e45a4,_0x38191a-_0x4be43a._0x16cbed,_0x1b094f);}if(!_0x5e4b09)throw new Error('Unknown\x20model\x20surface:\x20'+_0x9fe07e);return _0x5e4b09;}async[_0x4d4006(0x29,0x130,0xba,0x98)](_0x728547,_0x329943){const _0x5daeec={_0x4f9fe5:0x24e,_0x2caffb:0x250,_0x559d67:0xe7,_0x369a:0xf5,_0x4395c5:0x7f,_0x4baf92:0x139,_0x49bb34:0x127,_0x24c427:0x143,_0x3956bf:0x49,_0x22f43f:0xe5,_0x1f2084:0x133,_0x4e8134:0x1c7,_0x26a69b:0x22a,_0x47a2ac:0xf7},_0x30eb96={_0x1d022c:0x12d},_0x13533d={_0x4d8bce:0x1ac};function _0x1ca258(_0xd518ab,_0x261c47,_0x748124,_0x21eb79){return _0x4d4006(_0x21eb79,_0x261c47-_0x13533d._0x4d8bce,_0x261c47- -0x1c,_0x21eb79-0xed);}function _0x4e0f87(_0x2e255e,_0x23003b,_0x55ee38,_0xde2d45){return _0x4d4006(_0x55ee38,_0x23003b-_0x30eb96._0x1d022c,_0xde2d45- -0x243,_0xde2d45-0x194);}const _0x5415e0=toModelRequest(_0x728547),_0x232cac=await prepareProviderRequest(_0x5415e0,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x329943}),_0x189340=toChatRequest(_0x232cac['request']),_0x2c1809=this[_0x4e0f87(-_0x5daeec._0x4f9fe5,-0x213,-0x266,-_0x5daeec._0x2caffb)]['resolveCredential'](this[_0x1ca258(_0x5daeec._0x559d67,_0x5daeec._0x369a,0x95,0x173)],_0x232cac[_0x1ca258(0x12e,_0x5daeec._0x4395c5,_0x5daeec._0x4baf92,_0x5daeec._0x49bb34)]);if(!_0x2c1809)throw this[_0x4e0f87(-_0x5daeec._0x24c427,-_0x5daeec._0x3956bf,-0x136,-_0x5daeec._0x22f43f)]();return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this[_0x1ca258(_0x5daeec._0x1f2084,0xf1,0xc8,0xa7)],_0x232cac[_0x4e0f87(-_0x5daeec._0x4e8134,-_0x5daeec._0x26a69b,-0x1e2,-0x1a8)]),'credential':_0x2c1809,'request':_0x189340,'session':_0x232cac[_0x4e0f87(-0x15f,-_0x5daeec._0x47a2ac,-0x217,-0x1a8)]};}[_0x18006e(0x143,0x1ed,0x19c,0x23d)](_0x1659dc){const _0x56e1c2={_0x57d44c:0x60b,_0x1dfb6e:0x4de,_0x59101b:0x4bf,_0x5e7dd0:0x444,_0x55a941:0x4c2},_0x2244d6={_0x367dea:0x178,_0x15ea28:0x490},_0x78e804={_0xfffcd4:0x73,_0x1dad9b:0x36e};function _0x24dbba(_0xfe4770,_0x1d1b44,_0x799ac,_0x4cc01a){return _0x4d4006(_0x1d1b44,_0x1d1b44-_0x78e804._0xfffcd4,_0x799ac-_0x78e804._0x1dad9b,_0x4cc01a-0x4b);}function _0x2e1900(_0x41a014,_0x329791,_0x45377e,_0x2103c5){return _0x18006e(_0x41a014-_0x2244d6._0x367dea,_0x329791-0x83,_0x41a014-_0x2244d6._0x15ea28,_0x329791);}return{...structuredClone(_0x1659dc),..._0x1659dc[_0x2e1900(0x59f,_0x56e1c2._0x57d44c,_0x56e1c2._0x1dfb6e,0x51f)]===void 0x0&&this[_0x24dbba(_0x56e1c2._0x59101b,0x477,_0x56e1c2._0x5e7dd0,_0x56e1c2._0x55a941)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x18006e(0x2a,0x118,0x71,0x21)](_0x182088,_0x17ee77,_0x10d672,_0x5717ed,_0x242894=!![]){const _0xee128b={_0xceaad3:0x16a},_0x5e7eaf={_0x25cf35:0x58},_0x212faa={_0x1f11ae:0x3e6,_0x22099a:0x44f,_0x14887e:0x4da,_0x203e40:0x413,_0x405709:0x505,_0x35c3d3:0x521,_0x279590:0x53d,_0x2367a0:0x4c6,_0x378b4f:0x516,_0x30aec9:0x4de,_0x5e9ee1:0x59f,_0x114c62:0x46b,_0xdd124f:0x41f,_0x4fcae6:0x464,_0x37faec:0x4ea,_0x2f6e82:0x504,_0x21d981:0x4bf,_0x45f6da:0x493,_0x38e93e:0x611,_0x186e54:0x55b,_0x1bbeae:0x47d,_0x287eef:0x3f0,_0x366d87:0x4ad,_0x414032:0x5d1,_0x3012ad:0x5ba,_0x20c457:0x4d9,_0x13d7f1:0x525,_0x22aa48:0x594,_0x89e532:0x534,_0x10fb89:0x530,_0x3734b6:0x5ae,_0x38a76c:0x50e},_0x27e2f8={_0x79c146:0x25d},_0x1e6296=async()=>{const _0x5e70ae={_0x7ad4a2:0x2ed},_0x45b66e=await this[_0x2784ff(0x4d0,_0x212faa._0x1f11ae,_0x212faa._0x22099a,0x519)](_0x182088,_0x5717ed);let _0x21148c;function _0x2784ff(_0x4ffb7c,_0x107e85,_0x1a4e40,_0x4a5acc){return _0x2cfd(_0x1a4e40-_0x27e2f8._0x79c146,_0x4a5acc);}function _0xe444bb(_0x4ea0bf,_0x1df384,_0x25e6fb,_0x3a675a){return _0x2cfd(_0x25e6fb-_0x5e70ae._0x7ad4a2,_0x3a675a);}try{_0x21148c=_0x17ee77[_0xe444bb(0x43b,0x46a,_0x212faa._0x14887e,_0x212faa._0x203e40)](_0x45b66e['request']);}catch(_0x4d4529){if(_0x4d4529 instanceof Error)throw new ProviderRequestConstructionError(_0x4d4529[_0xe444bb(_0x212faa._0x405709,_0x212faa._0x35c3d3,_0x212faa._0x279590,_0x212faa._0x2367a0)]);throw _0x4d4529;}if(!_0x21148c[_0x2784ff(_0x212faa._0x378b4f,_0x212faa._0x30aec9,0x495,0x4ed)])throw new ProviderRequestConstructionError('Surface\x20'+_0x17ee77['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x5e1674=await this[_0xe444bb(_0x212faa._0x5e9ee1,0x54e,0x52c,_0x212faa._0x114c62)]({'request':_0x45b66e['request'],'body':_0x21148c['body'],'credential':_0x45b66e['credential'],'session':_0x45b66e['session'],'stream':_0x10d672},{'accept':_0x21148c['accept']??(_0x10d672?'text/event-stream':_0xe444bb(0x4e2,_0x212faa._0xdd124f,_0x212faa._0x4fcae6,_0x212faa._0x37faec)),'includeContentType':_0x21148c[_0x2784ff(0x4b6,0x4bf,_0x212faa._0x2f6e82,0x470)]!==void 0x0});for(const [_0x556aa4,_0x380699]of Object[_0xe444bb(_0x212faa._0x21d981,0x4bb,_0x212faa._0x45f6da,0x431)](_0x21148c[_0xe444bb(_0x212faa._0x38e93e,0x4b7,0x57c,_0x212faa._0x186e54)]??{})){_0x5e1674['set'](_0x556aa4,_0x380699);}return this[_0xe444bb(_0x212faa._0x1bbeae,_0x212faa._0x287eef,0x4b1,_0x212faa._0x366d87)](''+_0x45b66e[_0xe444bb(_0x212faa._0x414032,_0x212faa._0x3012ad,0x532,_0x212faa._0x20c457)]+_0x21148c[_0xe444bb(0x5b2,0x5c9,_0x212faa._0x13d7f1,0x494)],{'method':'POST','headers':_0x5e1674,..._0x21148c[_0xe444bb(0x538,0x5e3,_0x212faa._0x22aa48,_0x212faa._0x89e532)]!==void 0x0?{'body':JSON[_0xe444bb(_0x212faa._0x10fb89,0x438,0x4e9,0x586)](_0x21148c[_0xe444bb(_0x212faa._0x3734b6,_0x212faa._0x38a76c,_0x212faa._0x22aa48,0x658)])}:{},'signal':_0x5717ed});};function _0xf13f4(_0x3c761d,_0x38ad42,_0xf24434,_0x3a2ed2){return _0x18006e(_0x3c761d-0x12a,_0x38ad42-_0x5e7eaf._0x25cf35,_0x3a2ed2-0x7a,_0xf24434);}return _0x242894?await this[_0xf13f4(_0xee128b._0xceaad3,0x133,0x1ef,0x1f0)](_0x1e6296,_0x5717ed):await _0x1e6296();}async*[_0x4d4006(0x202,0x15d,0x173,0x17a)](_0xc715f1,_0x489e8e,_0x2de320){const _0x4bcb00={_0xe2a3d6:0x227,_0x5861a2:0x1e8,_0x404d30:0x28b,_0x1b7708:0x32e,_0x1d8154:0x31c,_0x3eafea:0x65,_0xa84699:0xc,_0x5853bf:0xb4,_0x2bb1d8:0x13,_0x246776:0x15e,_0x230407:0x18,_0x2dad78:0x45,_0x15e78d:0x22,_0x411d8c:0x27e,_0x79b37f:0x360,_0x252cdb:0x13f,_0x3f8d58:0x30,_0x4acb33:0x68,_0x5c5cc2:0x20e,_0x1a5560:0x20f,_0x14df7b:0x2e7,_0x5ed088:0x1d6,_0x1624ec:0x26d},_0x3a0bb6={_0x474cbd:0x1e,_0x2a5fb5:0x177},_0x1c1919={_0x365832:0x1dc,_0x5d58b1:0xe4};function _0x3cf99b(_0x492d30,_0x15421f,_0x3143c6,_0x2c6282){return _0x18006e(_0x492d30-0x17c,_0x15421f-_0x1c1919._0x365832,_0x492d30- -_0x1c1919._0x5d58b1,_0x2c6282);}function _0x237aa7(_0x15016f,_0x4a9f1f,_0x43f3b8,_0x21f5d6){return _0x18006e(_0x15016f-_0x3a0bb6._0x474cbd,_0x4a9f1f-0x42,_0x21f5d6-_0x3a0bb6._0x2a5fb5,_0x4a9f1f);}for(let _0x27c4d2=0x0;_0x27c4d2<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x27c4d2+=0x1){let _0x25c59c=![];try{const _0x4f7aac=await this[_0x237aa7(_0x4bcb00._0xe2a3d6,0x13e,0x19a,_0x4bcb00._0x5861a2)](_0xc715f1,_0x489e8e,!![],_0x2de320,![]);if(!_0x4f7aac['ok'])throw await this['toApiError'](_0x4f7aac);const _0x6cacaf=_0x489e8e[_0x237aa7(0x3dd,_0x4bcb00._0x404d30,_0x4bcb00._0x1b7708,_0x4bcb00._0x1d8154)]?.(_0xc715f1);if(!_0x6cacaf?.[_0x3cf99b(_0x4bcb00._0x3eafea,_0x4bcb00._0xa84699,0x24,0xc4)])throw new Error(_0x3cf99b(-_0x4bcb00._0x5853bf,-0x42,_0x4bcb00._0x2bb1d8,-_0x4bcb00._0x246776)+_0x489e8e['id']+_0x3cf99b(-_0x4bcb00._0x230407,-0x33,_0x4bcb00._0x2dad78,-_0x4bcb00._0x15e78d));for await(const _0x35e20e of iterateSseEvents(_0x4f7aac,_0x2de320)){const _0x468739=_0x6cacaf[_0x3cf99b(0x65,0x110,0xd8,0x68)](_0x35e20e);for(const _0x5b4e2a of _0x468739){_0x25c59c=!![],yield _0x5b4e2a;}}yield{'type':_0x237aa7(_0x4bcb00._0x411d8c,0x380,_0x4bcb00._0x79b37f,0x2f6),'response':_0x6cacaf[_0x3cf99b(0xa2,_0x4bcb00._0x252cdb,0x16,0x12)]()};return;}catch(_0xf337ea){if(_0x25c59c||!this[_0x3cf99b(_0x4bcb00._0x3f8d58,0x48,_0x4bcb00._0x4acb33,0x5f)](_0xf337ea)||_0x27c4d2===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0xf337ea;await this[_0x237aa7(0x23f,_0x4bcb00._0x5c5cc2,_0x4bcb00._0x1a5560,0x26c)](this[_0x237aa7(0x265,_0x4bcb00._0x14df7b,_0x4bcb00._0x5ed088,_0x4bcb00._0x1624ec)](void 0x0,_0x27c4d2),_0x2de320);}}}async*[_0x18006e(0x162,0x107,0xbb,0x10a)](_0x3ac278,_0x55ecf6,_0x58f22d){const _0x5160dd={_0x1e8b91:0xb8,_0x48db66:0x13e,_0x181894:0x102,_0x3efc97:0x18e,_0x36289a:0x42,_0x518edb:0x44,_0x200c16:0x73,_0x4f4502:0x1a6,_0x4a6fff:0x26c,_0x310abe:0x121,_0x43e056:0xd5,_0x68a7d4:0x115,_0x451cd2:0x115,_0x1d4730:0x159,_0xef7c64:0xc7,_0x85919:0x293,_0x3745f2:0x1ea,_0xea87d4:0xae,_0x2e5b74:0x1c8,_0x1a5ae0:0x165,_0x46800a:0x142,_0x76f318:0x205,_0x1394f0:0x109,_0x4a15e9:0x1b6,_0x17cfec:0x172,_0x21cd78:0x178,_0x227628:0x1fe,_0x3f4995:0x21e,_0x5346f5:0xe4,_0x269c06:0x66,_0x4f6eb8:0xc1,_0x1d4a2e:0x162,_0x5309d6:0x186,_0x22c9b7:0x2b0,_0x5d0b51:0xf0,_0x1e6b6d:0xbd,_0x3a2445:0x2c,_0x564993:0x4c,_0x50aa6e:0x243,_0x223da8:0xff,_0x53a059:0x43,_0x48aad5:0xb6,_0x3ab7fc:0x1bb,_0x21a7a4:0x41,_0x2f3824:0xbe,_0x6f7484:0x10,_0x73a0e6:0x15,_0x3f5920:0xca,_0x36de05:0x1ab,_0x322e6a:0x31,_0xbb5eed:0xcf,_0x23cc77:0x148,_0x28bccb:0xfa,_0x361423:0x111,_0x2e77cb:0x38,_0x2645a7:0x61,_0x527565:0x9a,_0x5ef2c6:0x6f,_0x505b17:0x1a4,_0x25c769:0xd,_0x58e60e:0x96,_0x27aaa7:0x8d,_0x760a5:0x23,_0x265691:0x6b,_0x285872:0x13,_0xbd8cd4:0x10f,_0x345659:0x2f,_0xa14493:0x275,_0x14af8a:0x184,_0x2b4f59:0xe6,_0x3d8fda:0x1ac,_0x591738:0x128,_0x183d4a:0x240,_0x3d153c:0x1b6,_0x4c2922:0x178,_0x5ccc1e:0xa4},_0x14d5b6={_0x89a972:0x1a8,_0x297cf5:0x56},_0x10dbb9={_0x16c2a3:0x16d},_0x4b2dec=await this['prepareChatRequest'](_0x3ac278,_0x58f22d);function _0x46fc5e(_0x2dfa79,_0x25f4cc,_0x3688a7,_0x2c386a){return _0x4d4006(_0x3688a7,_0x25f4cc-0xf2,_0x2dfa79- -_0x10dbb9._0x16c2a3,_0x2c386a-0x19e);}const _0x153d22=_0x55ecf6[_0x46fc5e(-_0x5160dd._0x1e8b91,-0x116,-_0x5160dd._0x48db66,-_0x5160dd._0x181894)](_0x4b2dec[_0x46fc5e(-0xde,-_0x5160dd._0x3efc97,-0x52,-_0x5160dd._0x36289a)]),_0x18be64=_0x55ecf6[_0x46fc5e(-0x1,-_0x5160dd._0x518edb,0x34,-0xb)]?.(_0x3ac278);if(!_0x18be64?.['consumeWebSocketEvent'])throw new Error('Surface\x20'+_0x55ecf6['id']+_0x46fc5e(-0x13e,-0x1fd,-_0x5160dd._0x200c16,-0x119));function _0x5de445(_0x432649,_0x4c6709,_0x3bb34f,_0x2fbc88){return _0x4d4006(_0x432649,_0x4c6709-_0x14d5b6._0x89a972,_0x2fbc88- -0x215,_0x2fbc88-_0x14d5b6._0x297cf5);}const _0x39156f=_0x153d22[_0x5de445(-0x16e,-_0x5160dd._0x4f4502,-_0x5160dd._0x4a6fff,-0x20b)]??(_0x153d22[_0x5de445(-0x4b,-_0x5160dd._0x310abe,-_0x5160dd._0x43e056,-_0x5160dd._0x68a7d4)]?(''+_0x4b2dec[_0x5de445(-_0x5160dd._0x451cd2,-0x7f,-0xa2,-0x108)]+_0x153d22[_0x5de445(-_0x5160dd._0x1d4730,-0x1c5,-_0x5160dd._0xef7c64,-0x115)])[_0x5de445(-0x16c,-_0x5160dd._0x85919,-0x198,-_0x5160dd._0x3745f2)](/^http:/,_0x5de445(-_0x5160dd._0xea87d4,-0xe1,-_0x5160dd._0x2e5b74,-_0x5160dd._0x1a5ae0))[_0x46fc5e(-_0x5160dd._0x46800a,-0x195,-_0x5160dd._0x76f318,-0x8e)](/^https:/,_0x5de445(-_0x5160dd._0x1394f0,-_0x5160dd._0x4a15e9,-0x125,-_0x5160dd._0x17cfec)):void 0x0);if(!_0x39156f)throw new ProviderRequestConstructionError(_0x5de445(-_0x5160dd._0x21cd78,-_0x5160dd._0x227628,-0x1bf,-_0x5160dd._0x3f4995)+_0x55ecf6['id']+_0x46fc5e(-0x17c,-_0x5160dd._0x5346f5,-0x208,-0x1d5));const _0x435fdc=await this[_0x46fc5e(-_0x5160dd._0x269c06,0x38,-0x80,-_0x5160dd._0x4f6eb8)]({'request':_0x4b2dec[_0x5de445(-0x1fc,-_0x5160dd._0x1d4a2e,-0xfb,-_0x5160dd._0x5309d6)],'body':_0x153d22['initialEvent'],'credential':_0x4b2dec[_0x5de445(-0x2c9,-_0x5160dd._0x22c9b7,-0x2e8,-0x229)],'session':_0x4b2dec[_0x5de445(-_0x5160dd._0x5d0b51,-0x166,-0x124,-0x17a)],'stream':!![]},{'accept':_0x153d22[_0x46fc5e(-0x69,-_0x5160dd._0x1e6b6d,-_0x5160dd._0x3a2445,-_0x5160dd._0x564993)]??_0x5de445(-0x27b,-0x22b,-_0x5160dd._0x50aa6e,-0x1d6),'includeContentType':![]});for(const [_0x54a76b,_0x2868fd]of Object[_0x46fc5e(-_0x5160dd._0x223da8,-_0x5160dd._0x53a059,-_0x5160dd._0x48aad5,-_0x5160dd._0x3ab7fc)](_0x153d22[_0x5de445(-0x185,-_0x5160dd._0x21a7a4,-0x16b,-_0x5160dd._0x2f3824)]??{})){_0x435fdc[_0x46fc5e(-_0x5160dd._0x6f7484,_0x5160dd._0x73a0e6,0x6a,0x2f)](_0x54a76b,_0x2868fd);}_0x435fdc[_0x5de445(-0xe2,-_0x5160dd._0x3f5920,-_0x5160dd._0x36de05,-0x12a)]('accept');const _0x28dd6f=this[_0x46fc5e(-0x74,_0x5160dd._0x322e6a,-0x1e,0x24)]({'headers':Object[_0x5de445(-_0x5160dd._0xbb5eed,-0x136,-_0x5160dd._0x23cc77,-_0x5160dd._0x28bccb)](_0x435fdc[_0x46fc5e(-0xff,-_0x5160dd._0x361423,-_0x5160dd._0x2e77cb,-_0x5160dd._0x2645a7)]()),'url':_0x39156f});try{throwIfAborted(_0x58f22d);_0x28dd6f[_0x5de445(-0x1ad,-_0x5160dd._0x527565,-_0x5160dd._0x5ef2c6,-0x120)]!==WebSocket[_0x46fc5e(-0x152,-0x11f,-0xc8,-_0x5160dd._0x505b17)]&&await waitForWebSocketOpen(_0x28dd6f,_0x58f22d);throwIfAborted(_0x58f22d);_0x153d22['initialEvent']!==void 0x0&&_0x28dd6f['send'](JSON[_0x46fc5e(-0xa9,-0x16c,_0x5160dd._0x25c769,-_0x5160dd._0x58e60e)](_0x153d22[_0x46fc5e(-_0x5160dd._0x27aaa7,-0x123,-_0x5160dd._0x760a5,-0x49)]));for await(const _0x450159 of iterateWebSocketMessages(_0x28dd6f,_0x58f22d)){yield*_0x18be64[_0x46fc5e(-_0x5160dd._0x265691,-0x93,-_0x5160dd._0x285872,-_0x5160dd._0xbd8cd4)](_0x450159);if(_0x18be64[_0x46fc5e(-0xaf,-_0x5160dd._0x345659,-0x16f,-0x135)]?.())break;}yield{'type':'done','response':_0x18be64[_0x5de445(-0x22,-0x93,-0x17c,-0xc8)]()};}finally{_0x28dd6f['readyState']===WebSocket[_0x5de445(-0x2bc,-0x160,-0x1a1,-0x1fa)]&&_0x28dd6f[_0x5de445(-_0x5160dd._0xa14493,-0x145,-_0x5160dd._0x14af8a,-0x1d9)](0x3e8,_0x58f22d?.[_0x46fc5e(-0x10e,-_0x5160dd._0x2b4f59,-_0x5160dd._0x3d8fda,-_0x5160dd._0x5309d6)]?_0x5de445(-_0x5160dd._0x591738,-0x110,-_0x5160dd._0x183d4a,-_0x5160dd._0x3d153c):_0x46fc5e(-0xe9,-_0x5160dd._0x4c2922,-_0x5160dd._0x5ccc1e,-_0x5160dd._0x5346f5));}}};async function createHttpError(_0x3542c4){const _0x2f9559={_0x1a468d:0xd8,_0x5f3d16:0x117,_0x7189b0:0xda,_0x311524:0x1e3,_0x49601d:0x258},_0x2c34e7={_0xaac221:0x17f,_0x4860aa:0x47},_0x554ab1={_0x5a1e4:0x143},_0x2ccfd7=await _0x3542c4[_0x598260(-0x24a,-0x149,-0x180,-_0x2f9559._0x1a468d)]();function _0x2fb9d3(_0x3925c4,_0x50e64f,_0x4a85c3,_0x5d84a0){return _0x18006e(_0x3925c4-_0x554ab1._0x5a1e4,_0x50e64f-0x1b3,_0x4a85c3- -0x1ae,_0x50e64f);}const _0x2b3ff0=_0x2ccfd7['trim']()||_0x3542c4['statusText']||_0x598260(-0x1e7,-_0x2f9559._0x5f3d16,-0x169,-_0x2f9559._0x7189b0);function _0x598260(_0x4705ff,_0x233dae,_0x1aa783,_0x18ae4f){return _0x18006e(_0x4705ff-_0x2c34e7._0xaac221,_0x233dae-_0x2c34e7._0x4860aa,_0x1aa783- -0x28b,_0x18ae4f);}return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x3542c4[_0x598260(-0x1e6,-_0x2f9559._0x311524,-_0x2f9559._0x49601d,-0x280)]+':\x20'+_0x2b3ff0);}var AnthropicProviderAdapter=class{[_0x4d4006(0x2,-0x1,0x96,0x3)];[_0x18006e(0x170,0x1b9,0x120,0x170)];[_0x18006e(0xfa,0x2e,0xd5,0x11e)];constructor(_0x2b89ae){const _0x43d03e={_0x3b0ab3:0x4da,_0x252447:0x43f,_0x3765e1:0x506,_0x3009b7:0x5c4,_0x3065ce:0x614,_0x3fb18b:0x48e,_0x36b18e:0x488,_0x4492f8:0x3dc,_0x217d09:0x41d,_0x42ff45:0x4f6},_0x5c6869={_0x493c05:0x1e6},_0x2073d2={_0x3fbf2c:0x19a,_0x5145d0:0x3b3};function _0x5db6a3(_0x3389d8,_0x2de498,_0x2101a9,_0x1b7db3){return _0x18006e(_0x3389d8-_0x2073d2._0x3fbf2c,_0x2de498-0x1c1,_0x2de498-_0x2073d2._0x5145d0,_0x2101a9);}this[_0x5db6a3(0x401,0x482,0x3be,_0x43d03e._0x3b0ab3)]=_0x2b89ae[_0x2c11ac(0x5c8,0x578,_0x43d03e._0x252447,_0x43d03e._0x3765e1)];function _0x2c11ac(_0x25920f,_0x1244a4,_0x127704,_0x521e10){return _0x18006e(_0x25920f-0x19a,_0x1244a4-_0x5c6869._0x493c05,_0x521e10-0x437,_0x127704);}this['headerResolver']=_0x2b89ae[_0x2c11ac(_0x43d03e._0x3009b7,_0x43d03e._0x3065ce,0x4ee,0x557)],this[_0x5db6a3(_0x43d03e._0x3fb18b,_0x43d03e._0x36b18e,_0x43d03e._0x4492f8,_0x43d03e._0x217d09)]=_0x2b89ae[_0x5db6a3(0x454,_0x43d03e._0x36b18e,_0x43d03e._0x42ff45,0x3d0)];}[_0x4d4006(0x19b,0x218,0x15e,0xb6)](){const _0x13e6c4={_0x491f93:0x133,_0x1fe340:0x210},_0x31a358={_0x5f1df3:0x182,_0x2a5b91:0x25a};function _0x4a19fd(_0x18ddfe,_0x5d426b,_0x49a67b,_0x6875f5){return _0x4d4006(_0x5d426b,_0x5d426b-_0x31a358._0x5f1df3,_0x6875f5- -_0x31a358._0x2a5b91,_0x6875f5-0x8d);}return new Error(_0x4a19fd(-_0x13e6c4._0x491f93,-_0x13e6c4._0x1fe340,-0x133,-0x1ba));}async['createHeaders'](_0xc503a2,_0x55094d){const _0x280cc5={_0x2e584a:0x53,_0x1ed2c3:0x86,_0x5056e7:0x151,_0x1ec79e:0xcb,_0x4a621e:0xf7,_0x2bc0e9:0x3e,_0x1f6ba2:0x2d,_0x225775:0x64,_0x2d6b4d:0x1c4,_0x32ac73:0x3e,_0x57b5e3:0xf8,_0x518a67:0xf4,_0x4208fe:0x7e,_0x4775eb:0x141,_0x9a97c8:0x12,_0x316d6b:0x68,_0x54137a:0x59,_0x4ab18d:0xe0,_0x515d38:0x8c,_0xc9cb27:0xbf,_0x380618:0x118,_0x8d4320:0x5d,_0x36b2f8:0x15,_0x30741d:0x72,_0xfae4bd:0x113,_0xab33f7:0x52,_0x1bd576:0x1b,_0x56b683:0x9f,_0x1fadfb:0xb5,_0x32c575:0xfb,_0x2762b5:0x9,_0x362310:0x29,_0x219eb2:0x2e,_0xf4179:0x16a,_0x284dff:0xcd,_0x45852c:0xd8,_0x47a9d1:0xb9,_0x1c2bcd:0xa4,_0x2af3d4:0x69},_0x245cb1={_0x2af45d:0x1e6},_0x2aa69f={_0x572cf9:0x114,_0x36973c:0xdd},_0x247109=new Headers();function _0x18a5f9(_0x3018ac,_0x27f62b,_0x2b85b6,_0x3092c3){return _0x18006e(_0x3018ac-0x94,_0x27f62b-_0x2aa69f._0x572cf9,_0x3018ac- -_0x2aa69f._0x36973c,_0x3092c3);}_0x247109['set'](_0x318164(-0x91,-_0x280cc5._0x2e584a,-0x63,-_0x280cc5._0x1ed2c3),_0x55094d[_0x318164(-0x12c,-_0x280cc5._0x5056e7,-0xf4,-0x86)]);function _0x318164(_0x129e9,_0x1b4d64,_0x3cb56e,_0x3e6910){return _0x4d4006(_0x129e9,_0x1b4d64-_0x245cb1._0x2af45d,_0x3e6910- -0x18a,_0x3e6910-0x102);}_0x247109[_0x318164(-_0x280cc5._0x1ec79e,-0x5,-0x33,-0x2d)](_0x318164(-_0x280cc5._0x4a621e,-0x9e,-0x11e,-0x5b),this[_0x18a5f9(-0x8,_0x280cc5._0x2bc0e9,-0x92,-0x69)]);_0x55094d[_0x18a5f9(_0x280cc5._0x1f6ba2,_0x280cc5._0x225775,0x44,-0x74)]!==![]&&_0x247109['set']('content-type',_0x318164(-0x94,-0xa3,-_0x280cc5._0x2d6b4d,-0x14b));this[_0x318164(-_0x280cc5._0x32ac73,-_0x280cc5._0x57b5e3,-0xe2,-_0x280cc5._0x518a67)]===_0x18a5f9(_0x280cc5._0x4208fe,-0x40,0xff,_0x280cc5._0x4775eb)?_0x247109['set'](_0x18a5f9(_0x280cc5._0x9a97c8,0xc4,0x6,-_0x280cc5._0x316d6b),_0x18a5f9(_0x280cc5._0x54137a,0xc1,0x58,0x111)+_0xc503a2['credential']['value']):_0x247109[_0x318164(-_0x280cc5._0x4ab18d,-0x11,0x8e,-0x2d)](_0x18a5f9(_0x280cc5._0x515d38,_0x280cc5._0xc9cb27,_0x280cc5._0x380618,-0x18),_0xc503a2['credential'][_0x18a5f9(0x2,-_0x280cc5._0x8d4320,-_0x280cc5._0x36b2f8,-_0x280cc5._0x30741d)]);const _0x119165=await this[_0x318164(-_0x280cc5._0xfae4bd,-_0x280cc5._0xab33f7,-0xd8,-0xa3)]?.({'body':_0xc503a2[_0x318164(0x46,-0x9e,0xb,-_0x280cc5._0x1bd576)],'credential':_0xc503a2['credential'],'request':_0xc503a2[_0x318164(-0x54,-_0x280cc5._0x56b683,-_0x280cc5._0x1fadfb,-_0x280cc5._0x32c575)],'session':_0xc503a2[_0x18a5f9(-_0x280cc5._0x2762b5,-_0x280cc5._0x362310,-0x64,-_0x280cc5._0x219eb2)],'stream':_0xc503a2[_0x318164(-0xa8,-_0x280cc5._0xf4179,-_0x280cc5._0x284dff,-_0x280cc5._0x45852c)]});for(const [_0x59bd8b,_0x3c7010]of Object['entries'](_0x119165??{})){_0x247109[_0x18a5f9(_0x280cc5._0x47a9d1,_0x280cc5._0x1c2bcd,0x8e,_0x280cc5._0x2af3d4)](_0x59bd8b,_0x3c7010);}return _0x247109;}['mapApiError'](_0x272661){return _0x272661;}[_0x18006e(-0x28,0xfd,0x8f,0xe1)](_0x3ffe25,_0x4cecb8){return resolveSessionBaseUrl(_0x3ffe25,_0x4cecb8);}[_0x4d4006(0xc,0x3,0x60,0x4e)](_0x3f63e9,_0x4e9af2){return resolveApiCredential(_0x3f63e9,_0x4e9af2);}async[_0x18006e(0x256,0x228,0x18e,0x15d)](_0x30d7df){return await createHttpError(_0x30d7df);}},AnthropicModel=class extends RoutedModel{constructor(_0x22f5ca={}){const _0x9b86b0={_0x4f6ee3:0x264,_0x8b7ba8:0x4c,_0x270455:0x55,_0x208f58:0x91,_0x4b5f69:0x222,_0x304f9a:0x215,_0x34d373:0x2c7,_0x5256f9:0x259,_0xcbe5b9:0x153,_0x4a480e:0xb0,_0x36c1a1:0x1df,_0x2bfd66:0x202,_0x3b2c81:0x14b,_0x47dbd5:0x83,_0x62d4cc:0x1af,_0x53ce82:0x100},_0x1d8ac3={_0x59dc37:0xc1,_0x396a20:0x1a,_0x190f30:0x2c},_0x505fac={_0x7629fe:0xce};function _0x5dc457(_0xc1f748,_0x1baade,_0x320f6c,_0x5ecace){return _0x4d4006(_0x5ecace,_0x1baade-_0x505fac._0x7629fe,_0xc1f748-0x1f1,_0x5ecace-0xf8);}function _0x37eea9(_0x4b0c02,_0x28116e,_0x28d81e,_0x39e5ab){return _0x4d4006(_0x28d81e,_0x28116e-_0x1d8ac3._0x59dc37,_0x39e5ab-_0x1d8ac3._0x396a20,_0x39e5ab-_0x1d8ac3._0x190f30);}super({'apiKey':_0x22f5ca[_0x5dc457(0x302,0x314,0x275,_0x9b86b0._0x4f6ee3)],'baseUrl':trimTrailingSlashes(_0x22f5ca['baseUrl']??_0x37eea9(-_0x9b86b0._0x8b7ba8,_0x9b86b0._0x270455,_0x9b86b0._0x208f58,0x16)),'fetch':_0x22f5ca['fetch'],'maxTokens':_0x22f5ca['maxTokens']??0x4000,'model':_0x22f5ca[_0x5dc457(0x200,0x156,_0x9b86b0._0x4b5f69,_0x9b86b0._0x304f9a)]??'claude-sonnet-4-20250514','reasoning':_0x22f5ca[_0x5dc457(_0x9b86b0._0x34d373,0x2bf,0x281,_0x9b86b0._0x5256f9)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x22f5ca[_0x37eea9(0x13c,0x78,_0x9b86b0._0xcbe5b9,_0x9b86b0._0x4a480e)]??'x-api-key','headerResolver':_0x22f5ca['headerResolver'],'protocolVersion':_0x22f5ca[_0x37eea9(0x54,0x124,0xc8,0xb6)]??_0x5dc457(_0x9b86b0._0x36c1a1,_0x9b86b0._0x2bfd66,_0x9b86b0._0x3b2c81,0x291)}),'providerSessionResolver':_0x22f5ca[_0x37eea9(_0x9b86b0._0x47dbd5,0x178,_0x9b86b0._0x62d4cc,_0x9b86b0._0x53ce82)],'requestMutators':_0x22f5ca['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x18006e(0x108,0xd4,0x11d,0x1d2)](_0x3400ce,_0x448991){const _0xa07e70={_0x3f1b0d:0x54f,_0x206d36:0x549,_0x430864:0x61a},_0x5d75f6={_0x2fc9b0:0xc1,_0x318e28:0x43f};function _0x22b724(_0x30c0a7,_0x33e514,_0x5587c3,_0x218551){return _0x18006e(_0x30c0a7-0x1ed,_0x33e514-_0x5d75f6._0x2fc9b0,_0x33e514-_0x5d75f6._0x318e28,_0x30c0a7);}return this[_0x22b724(0x5a0,_0xa07e70._0x3f1b0d,_0xa07e70._0x206d36,_0xa07e70._0x430864)](_0x3400ce,ANTHROPIC_MESSAGES_SURFACE,_0x448991);}[_0x18006e(0x188,0x9f,0xeb,0x13c)](_0x713424,_0x4da3de){const _0x344188={_0x331a16:0x177,_0x5923f8:0x114,_0x37d123:0x1ce},_0x539a1a={_0x39469e:0x110,_0x397776:0x37};function _0x2f3bbf(_0xb3a6c9,_0x1befa6,_0x33ce88,_0x1f22db){return _0x18006e(_0xb3a6c9-_0x539a1a._0x39469e,_0x1befa6-_0x539a1a._0x397776,_0x1befa6-0x28,_0x1f22db);}return this[_0x2f3bbf(_0x344188._0x331a16,_0x344188._0x5923f8,0xec,_0x344188._0x37d123)](_0x713424,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x4da3de);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x4d4006(0xd8,0xb2,0xcb,0x96),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x4d4006(0x14c,0x19d,0x116,0xff),OpenAiApiError=class extends Error{[_0x4d4006(0x37,0x81,-0x6,-0x56)];[_0x4d4006(0x147,0x1b3,0x16f,0x1d4)];constructor(_0x500928,_0x4fbca2,_0x1c3f71){const _0x320080={_0x4d9fd8:0x64f,_0x1a47e1:0x60c,_0x33af23:0x57c,_0x2d80c9:0x5c2,_0x3fba2a:0x474,_0x684e53:0x6e7,_0x282646:0x5ba,_0x556020:0x676},_0x456a78={_0x65858e:0x47b};super(_0x1c3f71),this[_0x1e6776(0x6a2,_0x320080._0x4d9fd8,_0x320080._0x1a47e1,0x654)]=_0x1e6776(_0x320080._0x33af23,0x542,_0x320080._0x2d80c9,0x5a3),this[_0x1e6776(_0x320080._0x3fba2a,0x3f5,0x4ae,0x550)]=_0x500928;function _0x1e6776(_0x435f68,_0x3b1e86,_0x193790,_0x325b76){return _0x18006e(_0x435f68-0x1d1,_0x3b1e86-0x1d3,_0x193790-_0x456a78._0x65858e,_0x3b1e86);}function _0x5cdec6(_0x32787f,_0x3bc502,_0x266c91,_0x4d94df){return _0x4d4006(_0x266c91,_0x3bc502-0x5d,_0x3bc502-0x17c,_0x4d94df-0x190);}this[_0x1e6776(_0x320080._0x684e53,_0x320080._0x282646,0x623,_0x320080._0x556020)]=_0x4fbca2;}};function stringifySystem(_0x17562a){const _0x41883a={_0x5b4dca:0x16d},_0x5f09c8={_0x31965b:0x1dd};function _0x475f15(_0x32e95c,_0x48bc60,_0x3ff28f,_0x1d7905){return _0x18006e(_0x32e95c-_0x5f09c8._0x31965b,_0x48bc60-0x1c4,_0x1d7905- -0x284,_0x32e95c);}return _0x17562a['map'](_0x292121=>_0x292121['text'])[_0x475f15(-0x161,-_0x41883a._0x5b4dca,-0x261,-0x215)]('\x0a\x0a');}function createToolDefinitions(_0x324094){const _0x1081d1={_0x2a54cc:0x53b},_0x150757={_0x4794d8:0x42a,_0x3cf260:0x3e2,_0x440553:0x397,_0x5acde6:0xa4,_0x3f42c3:0x37,_0x7c64b1:0x2c,_0x4c512b:0xa1,_0x24c14c:0x298,_0x2990f4:0x328,_0x119985:0x318},_0xa79cac={_0x1c7389:0x5d5,_0x49e2c7:0x13f},_0x3e4617={_0x12052c:0x233,_0x27a339:0x5b},_0x9c72cf={_0x2a0ec4:0x16c};function _0x541ed0(_0x64aca1,_0x318d13,_0x4bb4e7,_0x5390e9){return _0x18006e(_0x64aca1-0x1e9,_0x318d13-_0x9c72cf._0x2a0ec4,_0x318d13-0x4b7,_0x64aca1);}if(_0x324094['length']===0x0)return void 0x0;return _0x324094[_0x541ed0(0x5dc,_0x1081d1._0x2a54cc,0x4d1,0x5c0)](_0x2b222c=>{function _0x2019fa(_0x494a83,_0x45cd8e,_0x273a60,_0x19cf62){return _0x541ed0(_0x45cd8e,_0x19cf62- -_0x3e4617._0x12052c,_0x273a60-0x19f,_0x19cf62-_0x3e4617._0x27a339);}function _0x122c81(_0x31cf99,_0x20de46,_0x5635ca,_0x408b22){return _0x541ed0(_0x20de46,_0x5635ca- -_0xa79cac._0x1c7389,_0x5635ca-_0xa79cac._0x49e2c7,_0x408b22-0xc2);}return{'type':_0x2019fa(_0x150757._0x4794d8,_0x150757._0x3cf260,0x392,_0x150757._0x440553),'function':{'name':_0x2b222c[_0x122c81(_0x150757._0x5acde6,-_0x150757._0x3f42c3,0x73,_0x150757._0x7c64b1)],'description':_0x2b222c[_0x122c81(0xa,0x22,0x76,_0x150757._0x4c512b)],'parameters':_0x2b222c[_0x2019fa(0x3bb,_0x150757._0x24c14c,_0x150757._0x2990f4,_0x150757._0x119985)]}};});}function isImageToolResultBlock(_0x4ad823){const _0xb86783={_0x5c9c86:0x355,_0x15b775:0x487,_0x90a119:0x4a7,_0x475580:0x478,_0x1b4821:0x82,_0x1004cd:0x24,_0x541427:0x6a,_0x1c292f:0xb2,_0x4a224f:0xba,_0x1081ed:0x14c},_0xd1fee3={_0x12a482:0x46,_0x36b419:0x38f,_0x19f006:0x8};if(typeof _0x4ad823!==_0x237958(0x400,_0xb86783._0x5c9c86,0x411,0x3a3)||_0x4ad823===null||Array[_0x237958(_0xb86783._0x15b775,_0xb86783._0x90a119,0x4fe,_0xb86783._0x475580)](_0x4ad823))return![];function _0x4262f7(_0xf3c807,_0x22891a,_0x14c09a,_0x21e4b4){return _0x18006e(_0xf3c807-0xb5,_0x22891a-0x6c,_0x14c09a- -0x157,_0xf3c807);}const _0x76c1e8=_0x4ad823;function _0x237958(_0x57b70e,_0x56eef2,_0x349b1b,_0xc7e519){return _0x4d4006(_0x56eef2,_0x56eef2-_0xd1fee3._0x12a482,_0x57b70e-_0xd1fee3._0x36b419,_0xc7e519-_0xd1fee3._0x19f006);}return _0x76c1e8['type']===_0x4262f7(-0xed,-_0xb86783._0x1b4821,-_0xb86783._0x1004cd,_0xb86783._0x541427)&&_0x76c1e8[_0x4262f7(-_0xb86783._0x1c292f,-0x157,-_0xb86783._0x4a224f,-_0xb86783._0x1081ed)]?.['type']==='base64'&&typeof _0x76c1e8[_0x4262f7(-0x16f,-0x15c,-0xba,-0x8f)]['media_type']==='string'&&typeof _0x76c1e8['source'][_0x237958(0x448,0x47d,0x3d6,0x4e4)]===_0x237958(0x401,0x473,0x45a,0x49c);}function getToolResultText(_0x45ada8){const _0x45f88d={_0x37662b:0xa7,_0x52335c:0x14d,_0xcda167:0x7e,_0x14912b:0x19b,_0x2a2e9f:0x12e,_0x3be403:0x15d,_0x22d664:0x115,_0x14b3a4:0x182},_0x2f9b9a={_0x5e6763:0x3df,_0x4b2c13:0x30b,_0x529d52:0x386},_0x3016d1={_0x3871a2:0x101},_0x34b1d9={_0x46c01d:0x101,_0x4c8e39:0x102};function _0x2e9b8b(_0x555363,_0x58753d,_0x34b6cd,_0x1726e7){return _0x4d4006(_0x34b6cd,_0x58753d-_0x34b1d9._0x46c01d,_0x1726e7-0xd,_0x1726e7-_0x34b1d9._0x4c8e39);}if(typeof _0x45ada8==='string')return _0x45ada8;function _0x35a86b(_0x2e2c39,_0x136f21,_0x2ac04a,_0x20f369){return _0x18006e(_0x2e2c39-0x14c,_0x136f21-0xac,_0x2e2c39-0x38,_0x20f369);}const _0x245265=_0x45ada8['filter'](_0x4817f4=>{const _0x15d9ed={_0x4b83f9:0x26c};function _0x3c8ded(_0x26469b,_0x460fc7,_0x28ff89,_0x367cc5){return _0x2cfd(_0x26469b-_0x3016d1._0x3871a2,_0x460fc7);}function _0x44f4f2(_0x20d811,_0x5d860c,_0x58f7ff,_0x35ef2b){return _0x2cfd(_0x58f7ff-_0x15d9ed._0x4b83f9,_0x20d811);}return typeof _0x4817f4==='object'&&_0x4817f4!==null&&_0x4817f4[_0x44f4f2(0x440,_0x2f9b9a._0x5e6763,0x41d,0x4b0)]===_0x3c8ded(_0x2f9b9a._0x4b2c13,0x365,_0x2f9b9a._0x529d52,0x2a3);})['map'](_0x4801cc=>_0x4801cc[_0x2e9b8b(0x107,0x29,0x7f,0xdf)])[_0x35a86b(_0x45f88d._0x37662b,_0x45f88d._0x52335c,0x5b,_0x45f88d._0xcda167)]('\x0a\x0a')[_0x35a86b(_0x45f88d._0x14912b,_0x45f88d._0x2a2e9f,0x237,0x1b5)]();return _0x245265[_0x35a86b(_0x45f88d._0x3be403,_0x45f88d._0x22d664,0x117,0x221)]>0x0?_0x245265:_0x35a86b(0x1dc,_0x45f88d._0x14b3a4,0x25d,0x194);}function getToolResultImages(_0x4d2cd3){return Array['isArray'](_0x4d2cd3)?_0x4d2cd3['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x5eb183){const _0x32d27d={_0x3ba722:0x142,_0x3ca4da:0x17c},_0x6ee867={_0x24288e:0x14f,_0x41508d:0x2d};function _0x13dfe3(_0x901ef2,_0x20ffa8,_0x258c3f,_0x2ec29a){return _0x4d4006(_0x901ef2,_0x20ffa8-0x56,_0x2ec29a- -_0x6ee867._0x24288e,_0x2ec29a-_0x6ee867._0x41508d);}function _0x5a567a(_0x502771,_0x4013fd,_0xc2316b,_0xfbc5d){return _0x4d4006(_0x502771,_0x4013fd-0x1d3,_0xc2316b- -0x14f,_0xfbc5d-0xf1);}if(_0x5eb183[_0x5a567a(-0xf8,-0x125,-0x63,-0x90)]===0x0)return{};try{return JSON[_0x5a567a(-0x1a6,-_0x32d27d._0x3ba722,-0x152,-_0x32d27d._0x3ca4da)](_0x5eb183);}catch{return _0x5eb183;}}function isResponsesReasoningItem(_0x17f58f){const _0x33c262={_0x45d8f7:0x304,_0x56036b:0x32f,_0x29711d:0x411,_0x5368cc:0x67,_0x141510:0x45,_0xb1741c:0x43},_0x524dd8={_0x584da8:0x78,_0x15e422:0x304},_0x3b73d9={_0xe307ab:0xa4,_0x255926:0x65,_0x24c2ff:0x4b};function _0x3f478a(_0x8f60d4,_0x42205b,_0x3f0971,_0x3d0130){return _0x18006e(_0x8f60d4-_0x3b73d9._0xe307ab,_0x42205b-_0x3b73d9._0x255926,_0x8f60d4- -_0x3b73d9._0x24c2ff,_0x42205b);}function _0x1e76d3(_0x55e4b0,_0x2af80d,_0x45fc47,_0x1285b2){return _0x18006e(_0x55e4b0-0xa0,_0x2af80d-_0x524dd8._0x584da8,_0x45fc47-_0x524dd8._0x15e422,_0x55e4b0);}return typeof _0x17f58f===_0x1e76d3(_0x33c262._0x45d8f7,_0x33c262._0x56036b,0x3ae,_0x33c262._0x29711d)&&_0x17f58f!==null&&_0x3f478a(_0x33c262._0x5368cc,0x28,_0x33c262._0x141510,_0x33c262._0xb1741c)in _0x17f58f&&_0x17f58f['type']==='reasoning';}function isResponsesMessageItem(_0x207593){const _0x2a0551={_0x35d587:0x442,_0x3c6898:0x4f3,_0x5d80a1:0x4da,_0x5f5108:0x4a8,_0x36ce24:0x4f7,_0xd84e5e:0x4e9,_0x24c5bf:0x562,_0x50600a:0x54e},_0x2454d4={_0x57328a:0xed,_0x5e927d:0x106},_0x2af478={_0x196e63:0x1af,_0x43043d:0x22};function _0x3ebddf(_0x545773,_0x38e321,_0x359c35,_0x10f153){return _0x18006e(_0x545773-_0x2af478._0x196e63,_0x38e321-_0x2af478._0x43043d,_0x359c35-0x445,_0x38e321);}function _0xee7c67(_0x424ee0,_0x4df327,_0x33115a,_0x108e15){return _0x4d4006(_0x4df327,_0x4df327-_0x2454d4._0x57328a,_0x108e15-0x482,_0x108e15-_0x2454d4._0x5e927d);}return typeof _0x207593===_0xee7c67(0x51c,_0x2a0551._0x35d587,0x5a6,_0x2a0551._0x3c6898)&&_0x207593!==null&&_0x3ebddf(_0x2a0551._0x5d80a1,_0x2a0551._0x5f5108,_0x2a0551._0x36ce24,_0x2a0551._0xd84e5e)in _0x207593&&_0x207593[_0xee7c67(_0x2a0551._0x24c5bf,_0x2a0551._0x50600a,0x459,0x4fb)]==='message';}function isResponsesFunctionCallItem(_0x46a0b4){const _0x48c2ea={_0x45b79a:0x4b6,_0x5d1125:0x3b7,_0x2e2de5:0x467,_0x5de2e7:0xf2},_0xc1e425={_0x18470d:0x16d,_0x57369b:0x1e0,_0x4fc87c:0x40},_0x17a858={_0x24d7e3:0x196,_0xa745d4:0x3bd};function _0x2dfdbe(_0x705a63,_0xf8f09,_0x3dd122,_0x4cf141){return _0x18006e(_0x705a63-_0x17a858._0x24d7e3,_0xf8f09-0x13e,_0x4cf141-_0x17a858._0xa745d4,_0x3dd122);}function _0x50f1fd(_0xaf80e,_0x18069f,_0x4e64ec,_0x24b5fc){return _0x18006e(_0xaf80e-_0xc1e425._0x18470d,_0x18069f-_0xc1e425._0x57369b,_0xaf80e-_0xc1e425._0x4fc87c,_0x24b5fc);}return typeof _0x46a0b4===_0x2dfdbe(0x51f,_0x48c2ea._0x45b79a,_0x48c2ea._0x5d1125,_0x48c2ea._0x2e2de5)&&_0x46a0b4!==null&&'type'in _0x46a0b4&&_0x46a0b4[_0x50f1fd(_0x48c2ea._0x5de2e7,0xf1,0x14c,0x1bc)]==='function_call';}function createContentBlocks(_0x20b7f3,_0x3a2d9c,_0x5d79e0){const _0x13195c={_0x3d5383:0xf6,_0x56acef:0xf1,_0x23221c:0x73,_0x179d49:0x1bd,_0x1feeb1:0x26f,_0x162d21:0x86,_0x3f8c8c:0xc7,_0x19f7c5:0x16c,_0x3d018e:0x99,_0x1492cf:0x1df,_0x4ffe52:0x280,_0x53b891:0x257,_0x46853c:0x8a,_0x19997d:0x110,_0x153845:0x159,_0x1a767c:0x90,_0x1f2649:0x14b,_0x9d6167:0x309,_0x43793e:0x34e,_0x3b1e58:0x17f,_0x334a9f:0x12d,_0x45e7bf:0xba,_0x42c772:0x211,_0x3ba09c:0x1ad},_0x419cde={_0x28e1e0:0x4,_0x1d38bc:0x17d},_0x3ef5ef={_0x541e51:0xa3,_0x9f5eb4:0x21b},_0x29738d=[];_0x5d79e0&&_0x5d79e0[_0x550d23(-_0x13195c._0x3d5383,-0x39,-0x1c0,-_0x13195c._0x56acef)]>0x0&&_0x29738d[_0x550d23(-0xcb,-_0x13195c._0x23221c,-0x174,-0x15f)]({'type':_0x564233(_0x13195c._0x179d49,0x22d,0x33a,_0x13195c._0x1feeb1),'summary':[],'text':_0x5d79e0});function _0x550d23(_0x223ced,_0x315f33,_0x41c33b,_0x38d126){return _0x18006e(_0x223ced-_0x3ef5ef._0x541e51,_0x315f33-0x196,_0x223ced- -_0x3ef5ef._0x9f5eb4,_0x38d126);}_0x20b7f3[_0x550d23(-0xf6,-_0x13195c._0x162d21,-0x59,-_0x13195c._0x3f8c8c)]>0x0&&_0x29738d['push']({'type':'text','text':_0x20b7f3});function _0x564233(_0x3b25b4,_0x5e9cf7,_0x8c7bf,_0x240587){return _0x4d4006(_0x3b25b4,_0x5e9cf7-_0x419cde._0x28e1e0,_0x240587-_0x419cde._0x1d38bc,_0x240587-0xa7);}for(const _0x212eb4 of _0x3a2d9c){if(_0x212eb4['id'][_0x550d23(-0xb8,-_0x13195c._0x19f7c5,-0x18,-_0x13195c._0x3d018e)]()['length']===0x0||_0x212eb4[_0x564233(0x19b,_0x13195c._0x1492cf,_0x13195c._0x4ffe52,_0x13195c._0x53b891)][_0x550d23(-_0x13195c._0x46853c,-0x100,-0x60,-_0x13195c._0x19997d)][_0x550d23(-0xb8,-_0x13195c._0x153845,-_0x13195c._0x1a767c,-_0x13195c._0x1f2649)]()[_0x550d23(-_0x13195c._0x3d5383,-0x11c,-0xcf,-0x177)]===0x0)continue;_0x29738d[_0x564233(_0x13195c._0x9d6167,_0x13195c._0x43793e,0x2e0,0x294)]({'type':_0x550d23(-_0x13195c._0x3b1e58,-0xf2,-0x134,-_0x13195c._0x334a9f),'id':_0x212eb4['id'],'name':_0x212eb4[_0x564233(0x1db,0x261,0x1cf,0x257)]['name'],'input':parseToolInput2(_0x212eb4[_0x550d23(-0x108,-0xa1,-0x81,-_0x13195c._0x45e7bf)][_0x550d23(-0x18e,-_0x13195c._0x42c772,-_0x13195c._0x3ba09c,-0xef)])});}return _0x29738d;}function createUsage(_0x59f715){const _0x2940d7={_0x59cdd5:0xae,_0x5d15f5:0x1b5,_0x163849:0x3e5,_0x3a396e:0x35c,_0x517053:0x3f1,_0x119774:0x327,_0x1467f4:0x469,_0x146724:0x65,_0x748a87:0x6},_0x29d689={_0x3489eb:0x1c6,_0x58f4c6:0xa8},_0x4626f4={_0x281ee2:0x181,_0x40d3e4:0x50,_0x27976e:0x1d1};function _0x4db4c7(_0x2d596c,_0x45d188,_0x29e12e,_0x2e333c){return _0x4d4006(_0x2d596c,_0x45d188-_0x4626f4._0x281ee2,_0x45d188- -_0x4626f4._0x40d3e4,_0x2e333c-_0x4626f4._0x27976e);}function _0x377369(_0x46e8b3,_0x1032d6,_0x172dac,_0x117176){return _0x4d4006(_0x172dac,_0x1032d6-_0x29d689._0x3489eb,_0x46e8b3-0x3fd,_0x117176-_0x29d689._0x58f4c6);}return{'inputTokens':_0x59f715?.['prompt_tokens']??0x0,'outputTokens':_0x59f715?.[_0x4db4c7(_0x2940d7._0x59cdd5,0x111,_0x2940d7._0x5d15f5,0x1d3)]??0x0,..._0x59f715?.[_0x377369(0x3f1,_0x2940d7._0x163849,_0x2940d7._0x3a396e,0x39c)]?.[_0x4db4c7(0x53,-0x69,0x1e,0x28)]!==void 0x0?{'reasoningTokens':_0x59f715[_0x377369(_0x2940d7._0x517053,_0x2940d7._0x119774,0x328,_0x2940d7._0x1467f4)][_0x4db4c7(-_0x2940d7._0x146724,-0x69,-_0x2940d7._0x748a87,-0x22)]}:{}};}function resolveReasoningVisibility2(_0x49786b){const _0x294810={_0x2646d2:0x21e,_0x408ba5:0x22d},_0x4bc7ae={_0xcb6fe:0x1c9,_0xcda990:0x19};function _0x546a79(_0x2b4c27,_0x43c13a,_0x440e95,_0x2c9415){return _0x18006e(_0x2b4c27-_0x4bc7ae._0xcb6fe,_0x43c13a-_0x4bc7ae._0xcda990,_0x2c9415- -0x2bd,_0x440e95);}return _0x49786b['reasoning']?.['visibility']??_0x546a79(-_0x294810._0x2646d2,-0x1ec,-0x247,-_0x294810._0x408ba5);}function isUserVisibleReasoning(_0x24bc35){const _0x921131={_0x2ea496:0x547,_0x485a20:0x60b},_0x38c725={_0x5c2a18:0x2ae},_0x30a8b0={_0x17bcee:0x1e9,_0x45cc7a:0x4de};function _0x3a0100(_0x1fa93d,_0x47ffae,_0x1e294e,_0x410bf5){return _0x18006e(_0x1fa93d-_0x30a8b0._0x17bcee,_0x47ffae-0x72,_0x1e294e-_0x30a8b0._0x45cc7a,_0x410bf5);}function _0x1c7f5c(_0x363494,_0x46221c,_0x370ccc,_0x44fa57){return _0x18006e(_0x363494-0x86,_0x46221c-0x1c3,_0x46221c- -_0x38c725._0x5c2a18,_0x370ccc);}return resolveOpenAiReasoningConfig(_0x24bc35[_0x3a0100(0x665,0x5e6,0x5ed,0x6ad)])!==void 0x0&&resolveReasoningVisibility2(_0x24bc35)===_0x3a0100(_0x921131._0x2ea496,0x4cc,0x56e,_0x921131._0x485a20);}function createChatRequestBody(_0x440420,_0x49bb39){const _0x105eba={_0x9c3fba:0x136,_0x44483a:0xb9,_0x5a90ed:0xb3,_0xeb368b:0xd,_0xcb21b4:0x2d,_0x2fdf51:0x9c,_0x123ce5:0xe9,_0x3af4af:0x148,_0x4625e3:0x41,_0xb16c0e:0xd0,_0x2cb895:0x28d,_0x23b4be:0x28e,_0x50dc81:0xc6,_0x1464aa:0x1dc,_0x2d7abe:0x222,_0xcb60b5:0x12e,_0x558abb:0xac,_0x32832f:0x94,_0x1fd599:0x82,_0x19115b:0x89,_0x25fba6:0x78,_0x3d0f6b:0x80,_0x248950:0x6f,_0x1bae2f:0x18d,_0x597f7e:0x235,_0xfa008c:0xc2,_0x4d11ad:0xe5,_0x676796:0x6,_0x5e4841:0x1a6,_0x4597b4:0x11f,_0x4e2d99:0x23,_0x3efc1e:0x15e,_0x481dec:0x2,_0x6e88f1:0x167,_0x69c17:0x132,_0x17a36c:0x157,_0x5d0c14:0x1fb,_0x1e76f0:0x161,_0x4db76b:0xc6,_0xa5fb7e:0x76,_0x4b9b81:0x114,_0x3e6181:0x118,_0x2bf403:0xa4,_0x3944d0:0xe2,_0x30bd20:0x266,_0x470482:0x11c,_0x507fcc:0x19b,_0x5d78c4:0xf4,_0x285a5b:0x12e,_0x1d380d:0xb6,_0x7e272f:0x25d,_0x46a622:0x12,_0x548705:0x14b,_0xe7d0c5:0xfd,_0x3dd1d4:0x194,_0x5012b8:0x134},_0x33db5a={_0x51b5e5:0x201,_0x1b7275:0x1a3,_0x514b4c:0x254,_0x345c4c:0x1b5,_0x4e61f6:0x329,_0x34c6d0:0x2c9,_0x362c20:0x3ca,_0x22015c:0x222,_0x3d79b7:0x30d,_0x4068db:0x345,_0x53d5d6:0x363,_0x410028:0x336,_0x100d38:0x2e0,_0x163934:0x2ea,_0x38c034:0x2ce,_0x357fb1:0x280,_0x1d64e2:0x1b4,_0x238bc4:0x2f5,_0x37507f:0x2a7,_0x41ae49:0x1d0,_0x2ae4d4:0x23f,_0x477f76:0x24c,_0x4d3785:0x23c,_0x125efe:0x22a,_0x579653:0x2d8},_0x4faca0={_0x336db2:0x165},_0x25d9ab={_0x1224f7:0xb1},_0x28abd0=[],_0x912555=stringifySystem(_0x440420[_0x56b43e(-_0x105eba._0x9c3fba,-_0x105eba._0x44483a,-0x124,-_0x105eba._0x5a90ed)]);function _0x48b9fd(_0x327151,_0x4ff199,_0x56b8da,_0x5e57e4){return _0x4d4006(_0x4ff199,_0x4ff199-0x149,_0x56b8da- -0x188,_0x5e57e4-0x1d9);}_0x912555[_0x48b9fd(-_0x105eba._0xeb368b,_0x105eba._0xcb21b4,-_0x105eba._0x2fdf51,0x8)]>0x0&&_0x28abd0[_0x56b43e(-0x16c,-_0x105eba._0x123ce5,-0x151,-_0x105eba._0x3af4af)]({'role':_0x48b9fd(-0x3,0x1d,-_0x105eba._0x4625e3,-_0x105eba._0xb16c0e),'content':_0x912555});function _0x56b43e(_0x59f84b,_0x441285,_0x5b5e7b,_0x550074){return _0x4d4006(_0x5b5e7b,_0x441285-0xb2,_0x441285- -0x200,_0x550074-_0x25d9ab._0x1224f7);}for(const _0x2165d8 of _0x440420[_0x56b43e(-_0x105eba._0x2cb895,-0x215,-0x1ce,-_0x105eba._0x23b4be)]){const _0x37fb10=[],_0x51eadc=[],_0x1edf6f=()=>{const _0x4f3ba7={_0x2fcb60:0x3,_0x777fcf:0x353,_0xb888d8:0x8a};if(_0x2165d8[_0xaa6bdc(_0x33db5a._0x51b5e5,_0x33db5a._0x1b7275,_0x33db5a._0x514b4c,_0x33db5a._0x345c4c)]===_0x4bd115(_0x33db5a._0x4e61f6,0x315,0x330,0x332)){if(_0x37fb10[_0xaa6bdc(0x2ae,0x23f,0x28c,0x21c)]===0x0&&_0x51eadc[_0x4bd115(0x2cb,0x336,_0x33db5a._0x34c6d0,0x2e0)]===0x0)return;_0x28abd0[_0x4bd115(0x2b0,_0x33db5a._0x362c20,0x2e5,0x30b)]({'role':_0xaa6bdc(_0x33db5a._0x22015c,0x291,0x354,_0x33db5a._0x3d79b7),'content':_0x37fb10[_0x4bd115(_0x33db5a._0x4068db,_0x33db5a._0x53d5d6,_0x33db5a._0x410028,_0x33db5a._0x100d38)]>0x0?_0x37fb10[_0x4bd115(_0x33db5a._0x163934,_0x33db5a._0x38c034,_0x33db5a._0x357fb1,0x22a)]('\x0a\x0a'):null,..._0x51eadc['length']>0x0?{'tool_calls':_0x51eadc[_0xaa6bdc(_0x33db5a._0x1d64e2,0x159,0x8e,0x20f)](0x0)}:{}}),_0x37fb10[_0x4bd115(_0x33db5a._0x238bc4,_0x33db5a._0x37507f,0x284,0x2e0)]=0x0;return;}function _0x4bd115(_0x35d89a,_0x53be0a,_0x2db550,_0x10e028){return _0x48b9fd(_0x35d89a-0x31,_0x53be0a,_0x10e028-0x37c,_0x10e028-_0x4faca0._0x336db2);}function _0xaa6bdc(_0x2278fa,_0x17a3df,_0x28b5c5,_0x3f79f6){return _0x56b43e(_0x2278fa-_0x4f3ba7._0x2fcb60,_0x17a3df-_0x4f3ba7._0x777fcf,_0x3f79f6,_0x3f79f6-_0x4f3ba7._0xb888d8);}if(_0x37fb10[_0xaa6bdc(_0x33db5a._0x41ae49,_0x33db5a._0x2ae4d4,_0x33db5a._0x477f76,_0x33db5a._0x4d3785)]===0x0)return;_0x28abd0[_0xaa6bdc(0x2c0,0x26a,_0x33db5a._0x1b7275,0x32a)]({'role':_0x2165d8['role'],'content':_0x37fb10[_0x4bd115(0x25f,0x235,0x2bb,_0x33db5a._0x125efe)]('\x0a\x0a')}),_0x37fb10[_0xaa6bdc(0x22c,_0x33db5a._0x2ae4d4,_0x33db5a._0x579653,0x26c)]=0x0;};for(const _0x2e0740 of normalizeContent(_0x2165d8[_0x48b9fd(-0x24,-0x5b,-_0x105eba._0x50dc81,-0xc0)])){if(_0x2e0740[_0x56b43e(-_0x105eba._0x1464aa,-0x187,-0xeb,-_0x105eba._0x2d7abe)]===_0x56b43e(-0xa2,-_0x105eba._0xcb60b5,-0x185,-0xd0)){_0x37fb10[_0x48b9fd(-_0x105eba._0x558abb,0x3b,-0x71,-_0x105eba._0x32832f)](_0x2e0740[_0x56b43e(-0x186,-0x12e,-_0x105eba._0x1fd599,-_0x105eba._0x19115b)]);continue;}if(_0x2e0740[_0x48b9fd(-_0x105eba._0x25fba6,-_0x105eba._0x3d0f6b,-0x10f,-_0x105eba._0x248950)]===_0x56b43e(-_0x105eba._0x1bae2f,-0x19d,-_0x105eba._0x597f7e,-0x21b)){_0x51eadc[_0x56b43e(-0x19d,-0xe9,-0x33,-_0x105eba._0xfa008c)]({'id':_0x2e0740['id'],'type':_0x48b9fd(-0x102,-0x75,-0xae,-0x5c),'function':{'name':_0x2e0740[_0x48b9fd(-_0x105eba._0x4d11ad,-0xfa,-0x30,-_0x105eba._0x676796)],'arguments':JSON['stringify'](_0x2e0740[_0x56b43e(-_0x105eba._0x5e4841,-0x17a,-0x13b,-0x15b)]??{})}});continue;}if(_0x2e0740[_0x56b43e(-0x11e,-0x187,-0xcf,-0x188)]!==_0x56b43e(-_0x105eba._0x4597b4,-0x11e,-0x8b,-0x6b))continue;_0x1edf6f(),_0x28abd0['push']({'role':'tool','content':getToolResultText(_0x2e0740[_0x48b9fd(-_0x105eba._0x4e2d99,-_0x105eba._0x3efc1e,-0xc6,-_0x105eba._0x481dec)]),'tool_call_id':_0x2e0740[_0x56b43e(-_0x105eba._0x6e88f1,-_0x105eba._0x69c17,-_0x105eba._0x17a36c,-_0x105eba._0x5d0c14)]});const _0x2bd928=getToolResultImages(_0x2e0740[_0x48b9fd(-0x8,-_0x105eba._0x1e76f0,-_0x105eba._0x4db76b,-0x15d)]);_0x2bd928[_0x56b43e(-_0x105eba._0xa5fb7e,-_0x105eba._0x4b9b81,-_0x105eba._0x3e6181,-0x1dc)]>0x0&&_0x28abd0[_0x48b9fd(-0x5e,-_0x105eba._0x2bf403,-0x71,-_0x105eba._0x3944d0)]({'role':_0x48b9fd(-_0x105eba._0x30bd20,-_0x105eba._0x470482,-_0x105eba._0x507fcc,-_0x105eba._0x5d78c4),'content':[{'type':_0x56b43e(-0x123,-_0x105eba._0x285a5b,-0x10f,-0x12c),'text':_0x48b9fd(-0x1f5,-_0x105eba._0x1d380d,-0x17a,-0xb8)+_0x2e0740['tool_use_id']+'.'},..._0x2bd928[_0x56b43e(-_0x105eba._0x7e272f,-0x1b5,-0x1e4,-0x1e8)](_0x3d3ab1=>({'type':_0x56b43e(-0x26,-0xd4,-0xd1,-0xaf),'image_url':{'url':_0x56b43e(-0x6e,-0x12d,-0xea,-0x19f)+_0x3d3ab1[_0x56b43e(-0x24a,-0x19c,-0x130,-0x1bf)][_0x48b9fd(-0xff,-0x153,-0x11e,-0x190)]+_0x48b9fd(-0xe2,-0xe7,-0xe0,-0x124)+_0x3d3ab1['source'][_0x48b9fd(-0x184,-0x74,-0xcf,-0x175)]}}))]});}_0x1edf6f();}const _0x340b27=resolveOpenAiReasoningConfig(_0x440420[_0x56b43e(-0xea,-0x12a,-0xcd,-0x183)]);return{'model':_0x440420['model'],'messages':_0x28abd0,'stream':_0x49bb39,..._0x340b27?{'max_completion_tokens':_0x440420[_0x56b43e(-0x60,-0x9c,-_0x105eba._0x46a622,0x29)]}:{'max_tokens':_0x440420['maxTokens']},..._0x340b27?.[_0x56b43e(-_0x105eba._0x548705,-0x1be,-0x248,-_0x105eba._0xe7d0c5)]?{'reasoning_effort':_0x340b27['effort']}:{},...createToolDefinitions(_0x440420[_0x56b43e(-0x166,-_0x105eba._0x3dd1d4,-_0x105eba._0x5012b8,-0xe5)])?{'tools':createToolDefinitions(_0x440420['tools'])}:{}};}function createResponsesRequestBody(_0x5cc09e,_0x2608bf){return{...toOpenAiResponsesRequest(_0x5cc09e),..._0x2608bf?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x284ca6,_0x522ebb={}){const _0x22d902={_0x174682:0x18e,_0x129596:0xdf,_0x191f8a:0x14,_0x27c9:0xc6,_0x5295c1:0x1a},_0x342a40={_0x4f6834:0x163,_0x400b0b:0xe,_0x3b479c:0x274};function _0x24af7f(_0x50eb8a,_0x43fe64,_0x4ded36,_0x486427){return _0x18006e(_0x50eb8a-0x16f,_0x43fe64-0xbc,_0x43fe64- -0x24d,_0x4ded36);}const _0xa11c75=toOpenAiResponsesRequest(_0x284ca6);function _0x272017(_0x4849fa,_0x169c41,_0x40f819,_0x3d8928){return _0x18006e(_0x4849fa-_0x342a40._0x4f6834,_0x169c41-_0x342a40._0x400b0b,_0x40f819- -_0x342a40._0x3b479c,_0x169c41);}return{'type':_0x272017(-0x2b7,-0x160,-0x216,-0x25f),..._0xa11c75,..._0x522ebb['input']?{'input':_0x522ebb[_0x24af7f(-0x16c,-_0x22d902._0x174682,-_0x22d902._0x129596,-0x22d)]}:{},..._0x522ebb[_0x24af7f(-_0x22d902._0x191f8a,-_0x22d902._0x27c9,-_0x22d902._0x5295c1,-0x51)]?{'previous_response_id':_0x522ebb[_0x24af7f(-0x10e,-_0x22d902._0x27c9,-0xe9,-0x178)]}:{},'store':![]};}function normalizeAssistantContent(_0x271b21){const _0x3ac8ac={_0x25c777:0xe4,_0x56ba34:0xbf,_0x8ab0ca:0x2b,_0x596c6e:0x119},_0xaf5dfb={_0x3964e1:0x119,_0xfb315f:0x108,_0x5167d7:0xc1,_0x57578e:0x239},_0x3e01a9={_0x5a84e3:0x1f7,_0x4996d1:0xc5},_0x5a235b={_0x1f555e:0xc5,_0x409eb1:0x160};if(typeof _0x271b21===_0x5288d6(-0x122,-0x63,-_0x3ac8ac._0x25c777,-0x118))return _0x271b21;if(!Array[_0x5288d6(0x18,0x23,_0x3ac8ac._0x56ba34,_0x3ac8ac._0x8ab0ca)](_0x271b21))return'';function _0x5288d6(_0x2c87,_0x485b76,_0x4e09a0,_0xc85a88){return _0x4d4006(_0x4e09a0,_0x485b76-_0x5a235b._0x1f555e,_0x485b76- -0xd5,_0xc85a88-_0x5a235b._0x409eb1);}function _0x1e00d3(_0x423c4a,_0x2b3e54,_0x271235,_0x44903c){return _0x4d4006(_0x44903c,_0x2b3e54-0x13f,_0x423c4a- -_0x3e01a9._0x5a84e3,_0x44903c-_0x3e01a9._0x4996d1);}return _0x271b21[_0x1e00d3(-0x1ac,-0x1e2,-0x233,-_0x3ac8ac._0x596c6e)](_0x4de4a2=>{const _0x116de9={_0x3010cd:0x19,_0x5c14c0:0x10e};function _0xaf1c09(_0x52eccc,_0x135372,_0x4220f6,_0x2259b5){return _0x1e00d3(_0x135372-0x22d,_0x135372-_0x116de9._0x3010cd,_0x4220f6-_0x116de9._0x5c14c0,_0x2259b5);}function _0x2a9de5(_0x2e8c70,_0x3b75fe,_0x3521a7,_0x4e715a){return _0x1e00d3(_0x3b75fe- -0xa4,_0x3b75fe-0x13f,_0x3521a7-0x1a5,_0x4e715a);}return _0x4de4a2['type']===_0xaf1c09(_0xaf5dfb._0x3964e1,_0xaf5dfb._0xfb315f,_0xaf5dfb._0x5167d7,0x80)?_0x4de4a2['text']:_0x4de4a2[_0x2a9de5(-0x150,-0x1cb,-0x17d,-_0xaf5dfb._0x57578e)];})['join']('');}function normalizeResponsesMessageContent(_0x33961f){const _0x41158c={_0x3997b3:0x48,_0x48bb05:0x55,_0x37c5e6:0xb0,_0x4a74e9:0x3a,_0x30d764:0xc4},_0x397e22={_0x46bb4b:0x240,_0x1f997b:0x21b,_0x4c6cdb:0x2dc,_0x844638:0x1e8,_0x3cd79b:0x33a,_0x442f16:0x3ea,_0x390ad2:0x337,_0x3f8c60:0x248,_0x36029b:0x1fa,_0x49d77:0x411,_0x3f3f13:0x318},_0x3a4919={_0x35fe50:0xa1},_0x2a003b={_0x3fc904:0x44,_0x31eda4:0x60},_0x37c79f={_0x38b61d:0x17e,_0x426bed:0xa1};function _0x23c32e(_0x4f0108,_0x5d237d,_0x188807,_0x2d7745){return _0x18006e(_0x4f0108-0x7b,_0x5d237d-_0x37c79f._0x38b61d,_0x188807- -_0x37c79f._0x426bed,_0x5d237d);}if(!Array[_0x23c32e(_0x41158c._0x3997b3,_0x41158c._0x48bb05,0x90,_0x41158c._0x37c5e6)](_0x33961f))return'';function _0x254e0b(_0xd2a510,_0x4f4fbe,_0x66ed07,_0x36c3c0){return _0x4d4006(_0x36c3c0,_0x4f4fbe-_0x2a003b._0x3fc904,_0xd2a510-_0x2a003b._0x31eda4,_0x36c3c0-0x1a8);}return _0x33961f[_0x23c32e(0x1a,-0xb4,-0x1d,0x62)](_0x41c46a=>{const _0x3af93b={_0x4690b8:0x34b};if(!_0x41c46a||typeof _0x41c46a!==_0x520bca(_0x397e22._0x46bb4b,0x2e0,0x291,_0x397e22._0x1f997b))return'';const _0x5bfd9f=_0x41c46a;if(_0x5bfd9f[_0x520bca(0x248,_0x397e22._0x4c6cdb,_0x397e22._0x844638,0x2ed)]==='output_text'&&typeof _0x5bfd9f['text']===_0x3882e2(0x327,_0x397e22._0x3cd79b,0x355,_0x397e22._0x442f16))return _0x5bfd9f[_0x520bca(0x2a1,0x2d0,0x35c,_0x397e22._0x390ad2)];if(_0x5bfd9f[_0x520bca(_0x397e22._0x3f8c60,_0x397e22._0x36029b,0x2c0,0x257)]===_0x3882e2(0x3d0,_0x397e22._0x49d77,0x3b3,0x44f)&&typeof _0x5bfd9f['refusal']===_0x3882e2(0x3cd,0x2d9,0x355,_0x397e22._0x3f3f13))return _0x5bfd9f['refusal'];function _0x3882e2(_0x5f2237,_0x23b55f,_0x20f02c,_0x23b8cf){return _0x23c32e(_0x5f2237-0xf1,_0x23b8cf,_0x20f02c-_0x3af93b._0x4690b8,_0x23b8cf-0x49);}function _0x520bca(_0x421a8e,_0x258dd0,_0x4951c7,_0x478ca2){return _0x254e0b(_0x421a8e-0x16f,_0x258dd0-0xaa,_0x4951c7-_0x3a4919._0x35fe50,_0x4951c7);}return'';})[_0x254e0b(0x96,_0x41158c._0x4a74e9,0x6e,_0x41158c._0x30d764)]('');}function extractOpenAiReasoningText(_0x3f0102){const _0x42ad8b={_0x13f32a:0x5e8,_0x3a9911:0x54c,_0x2952a0:0x78,_0x1f41e9:0x105,_0x32c4fc:0x18,_0x5f140e:0x18,_0x475eaa:0x5a5,_0x95503b:0x544,_0x229a52:0x58c,_0x5c7230:0x5b7,_0x3ed370:0x50e,_0x2fe159:0xfc,_0x169a6d:0xd0,_0x390b50:0x6,_0x44d82f:0x17,_0x2ab064:0x500,_0x57217c:0x502},_0xe9ac62={_0x18413b:0xd5,_0x5b7841:0xea,_0x12c4fb:0x181},_0x3da2d2={_0x3d9a33:0x80,_0x395a32:0x4ca};if(typeof _0x3f0102[_0x1fb3de(0x59c,_0x42ad8b._0x13f32a,_0x42ad8b._0x3a9911,0x4d2)]===_0x5bcd23(-0xf,-0xfa,-_0x42ad8b._0x2952a0,-_0x42ad8b._0x1f41e9))return _0x3f0102[_0x5bcd23(0x19,-0xb3,-_0x42ad8b._0x32c4fc,_0x42ad8b._0x5f140e)];function _0x1fb3de(_0x47529e,_0x9c875b,_0x1499e3,_0x1e93a3){return _0x4d4006(_0x1e93a3,_0x9c875b-_0x3da2d2._0x3d9a33,_0x47529e-_0x3da2d2._0x395a32,_0x1e93a3-0x80);}function _0x5bcd23(_0x4e5986,_0x1dcb5d,_0x194130,_0x5013ce){return _0x4d4006(_0x4e5986,_0x1dcb5d-_0xe9ac62._0x18413b,_0x194130- -_0xe9ac62._0x5b7841,_0x5013ce-_0xe9ac62._0x12c4fb);}if(!Array[_0x1fb3de(0x5c2,_0x42ad8b._0x475eaa,0x609,_0x42ad8b._0x95503b)](_0x3f0102[_0x1fb3de(_0x42ad8b._0x229a52,0x5d1,0x63a,_0x42ad8b._0x5c7230)]))return'';return _0x3f0102[_0x1fb3de(_0x42ad8b._0x229a52,0x557,0x649,_0x42ad8b._0x3ed370)][_0x5bcd23(-0x126,-_0x42ad8b._0x2fe159,-_0x42ad8b._0x169a6d,-0x18c)](_0x4175c4=>_0x4175c4[_0x1fb3de(0x543,0x4db,0x5c4,0x4c8)]===_0x1fb3de(0x5f3,0x6b1,0x682,0x645)&&typeof _0x4175c4[_0x1fb3de(0x59c,0x531,0x576,0x4f0)]===_0x1fb3de(0x53c,0x4bf,0x4f8,0x478))[_0x5bcd23(-_0x42ad8b._0x390b50,_0x42ad8b._0x44d82f,-0x9f,0x3)](_0x20bbf7=>_0x20bbf7[_0x5bcd23(-0x5a,0x8a,-0x18,-0x75)]??'')[_0x1fb3de(_0x42ad8b._0x2ab064,0x45e,_0x42ad8b._0x57217c,0x456)]('');}function createOpenAiReasoningBlock(_0x32b2cc){const _0x556c9b={_0xe3d97d:0x37a,_0x4a4ddb:0x3ee,_0x436f41:0x306,_0x2ee8ef:0x32b,_0x45fb44:0x3c9,_0x361f9c:0x4b8,_0x1907eb:0x547,_0x53d278:0x58f},_0x373111={_0x3d0111:0x1dc,_0x3e1b2a:0x7e},_0x53a81e=extractOpenAiReasoningText(_0x32b2cc);function _0x26eab9(_0x125722,_0x194484,_0x21fd7a,_0x2eb62b){return _0x18006e(_0x125722-0x192,_0x194484-0x140,_0x21fd7a-0x4b3,_0x194484);}function _0x10e185(_0x39c044,_0x54cd1d,_0x3b2f1f,_0x2635e9){return _0x18006e(_0x39c044-_0x373111._0x3d0111,_0x54cd1d-_0x373111._0x3e1b2a,_0x39c044-0x270,_0x2635e9);}return{'type':_0x10e185(0x39b,_0x556c9b._0xe3d97d,0x3d3,_0x556c9b._0x4a4ddb),'summary':structuredClone(_0x32b2cc[_0x10e185(_0x556c9b._0x436f41,0x365,_0x556c9b._0x2ee8ef,_0x556c9b._0x45fb44)]??[]),..._0x32b2cc['id']?{'id':_0x32b2cc['id']}:{},..._0x32b2cc[_0x26eab9(0x45d,_0x556c9b._0x361f9c,0x4d0,0x4e4)]?{'encryptedContent':_0x32b2cc[_0x26eab9(_0x556c9b._0x1907eb,_0x556c9b._0x53d278,0x4d0,0x508)]}:{},..._0x53a81e['length']>0x0?{'text':_0x53a81e}:{}};}function hasVisibleOpenAiReasoning(_0x13f2e6){const _0xd97136={_0x140176:0x412,_0x191331:0x39e,_0x546071:0x2a4,_0x3075a8:0x304,_0x31ba45:0x31a},_0x53b077={_0x4cb3c2:0xd8},_0x254aee={_0x15984c:0x292};function _0x461073(_0x24fa5b,_0x8af3f,_0x2f6794,_0x10953f){return _0x4d4006(_0x24fa5b,_0x8af3f-0x119,_0x2f6794-_0x254aee._0x15984c,_0x10953f-0x1e4);}function _0x86ebba(_0x43232a,_0x81cfa7,_0x26adc0,_0x310b01){return _0x4d4006(_0x26adc0,_0x81cfa7-0xee,_0x81cfa7- -_0x53b077._0x4cb3c2,_0x310b01-0x174);}return _0x13f2e6[_0x86ebba(-0x3e,-0x7b,-0xc5,-0x138)]['length']>0x0||typeof _0x13f2e6[_0x461073(0x429,0x3e0,0x364,_0xd97136._0x140176)]===_0x461073(_0xd97136._0x191331,_0xd97136._0x546071,_0xd97136._0x3075a8,_0xd97136._0x31ba45);}function parseChatCompletionResponse(_0x5524cf){const _0x37395f={_0x30fa05:0x298,_0x2b4702:0x1e5,_0x5908ec:0x30a,_0x2597e9:0x2c4,_0x352822:0x23b,_0x4c35c3:0x305,_0x4eb54d:0x2db,_0x2b36a6:0x2fe,_0x47d1e6:0x2a5,_0x4c51c9:0x3ad,_0x579794:0x353,_0x5015b4:0x32d,_0x569623:0x288,_0xbf5412:0x216,_0x854049:0x287,_0x2a5b78:0x27e,_0x341a02:0x236,_0x4307e1:0x273,_0x3c515a:0x2aa,_0x22becf:0x294,_0x50f870:0x28d},_0x3113ea={_0x34c571:0x1ca,_0x54c218:0xea},_0x1db242={_0xf1fddc:0x84,_0xaba0a9:0x224,_0x259392:0x58},_0x5da47f=[],_0x319068=[];let _0x2dcabd='end_turn';for(const _0x2139ab of _0x5524cf[_0x5b4a42(_0x37395f._0x30fa05,0x2a7,_0x37395f._0x2b4702,_0x37395f._0x5908ec)]??[]){const _0x20880f=_0x2139ab[_0x4a41f3(_0x37395f._0x2597e9,0x1ed,_0x37395f._0x352822,0x2dc)],_0x5b178e=normalizeAssistantContent(_0x20880f?.['content']);_0x5b178e['length']>0x0&&_0x5da47f['push'](_0x5b178e),_0x20880f?.[_0x5b4a42(0x2af,_0x37395f._0x4c35c3,0x2e6,_0x37395f._0x4eb54d)]&&_0x319068[_0x4a41f3(_0x37395f._0x2b36a6,_0x37395f._0x47d1e6,0x23a,0x227)](..._0x20880f[_0x5b4a42(_0x37395f._0x4c51c9,_0x37395f._0x4c35c3,0x2d5,_0x37395f._0x579794)]),_0x2139ab['finish_reason']===_0x5b4a42(0x334,0x305,_0x37395f._0x5015b4,_0x37395f._0x569623)&&(_0x2dcabd=_0x5b4a42(_0x37395f._0xbf5412,_0x37395f._0x854049,0x1e6,0x2d5));}function _0x5b4a42(_0xf366f5,_0x5380a6,_0x272f4e,_0x5e73f1){return _0x4d4006(_0xf366f5,_0x5380a6-_0x1db242._0xf1fddc,_0x5380a6-_0x1db242._0xaba0a9,_0x5e73f1-_0x1db242._0x259392);}function _0x4a41f3(_0x1c2400,_0x1a218c,_0x3ee4a5,_0x6090c8){return _0x18006e(_0x1c2400-0x30,_0x1a218c-_0x3113ea._0x34c571,_0x3ee4a5-_0x3113ea._0x54c218,_0x1a218c);}return _0x319068[_0x4a41f3(0x247,0x272,0x20f,0x25b)]>0x0&&(_0x2dcabd='tool_use'),{'id':_0x5524cf['id']??_0x5b4a42(0x240,_0x37395f._0x2a5b78,_0x37395f._0x341a02,0x1f7)+Date['now'](),'content':createContentBlocks(_0x5da47f[_0x5b4a42(_0x37395f._0x4307e1,0x25a,0x319,_0x37395f._0x3c515a)](''),_0x319068),'stopReason':_0x2dcabd,'usage':createUsage(_0x5524cf[_0x5b4a42(_0x37395f._0x22becf,0x34a,_0x37395f._0x50f870,0x355)])};}function parseResponsesResponse(_0x2fe194,_0x6f3132){const _0x5b07c4={_0x578647:0x4ed,_0x574a18:0x462,_0xb82b12:0x43b,_0x1d8a39:0x520,_0x217c92:0x502,_0x205d0d:0x603,_0x34b70f:0x594,_0x31d819:0x498,_0x30a939:0x48a,_0x2d4267:0x476,_0xb9f3f3:0x4cf,_0x13d039:0x539,_0x130548:0x4ce,_0x2eaff1:0x620,_0x34d7b3:0x6a2,_0x4c86f0:0x4e1,_0x2bf0f7:0x644,_0x4ac6e0:0x677,_0x3ac13d:0x694,_0x393c5c:0x55b,_0x1e0a71:0x54a,_0x21d475:0x44d,_0x4a99a8:0x4d5,_0x2e4812:0x57a,_0x3f334e:0x4d0,_0x3949a4:0x65d,_0x54cc64:0x5cf,_0x160486:0x4b2,_0x3221b4:0x53d,_0x569310:0x671,_0x5a139b:0x4ac,_0x57e594:0x4c8,_0xe6a9a2:0x3cf,_0x4feba8:0x499,_0x1ccf83:0x555,_0x15d6cc:0x463,_0x408350:0x694,_0x41144b:0x53b,_0x5ee21e:0x55a,_0x38c8ca:0x541,_0x1da562:0x405,_0x13c2fb:0x584,_0xc347a2:0x612,_0xb00862:0x649,_0xb2492:0x59a,_0x5deea1:0x683,_0x38b457:0x5fc,_0x2edec4:0x610,_0x4400df:0x69e,_0x30d765:0x531,_0x2dcedc:0x553,_0x39bcac:0x584,_0x2b89f3:0x636,_0x2dad3d:0x4d3,_0x2fba9c:0x433,_0x4d5b08:0x559,_0x39df77:0x4ed,_0x5285e4:0x58f,_0x5d266a:0x4d3,_0x5b281c:0x424,_0x4e7eb3:0x467,_0x1ffffe:0x462,_0x34efab:0x491,_0x2aa2c4:0x572},_0x456e00={_0x31dcf9:0x4a,_0x52785f:0x1c2},_0x912b5a=[];for(const _0x326642 of _0x2fe194[_0xc8b618(_0x5b07c4._0x578647,0x3ba,_0x5b07c4._0x574a18,_0x5b07c4._0xb82b12)]??[]){if(isResponsesReasoningItem(_0x326642)){if(isUserVisibleReasoning(_0x6f3132)){const _0x52aabb=createOpenAiReasoningBlock(_0x326642);hasVisibleOpenAiReasoning(_0x52aabb)&&_0x912b5a['push'](_0x52aabb);}continue;}if(isResponsesMessageItem(_0x326642)){const _0x4952e2=normalizeResponsesMessageContent(_0x326642[_0xc8b618(0x559,_0x5b07c4._0x1d8a39,0x520,_0x5b07c4._0x217c92)]);_0x4952e2['length']>0x0&&_0x912b5a[_0x5e771a(_0x5b07c4._0x205d0d,0x6b5,_0x5b07c4._0x34b70f,0x64e)]({'type':'text','text':_0x4952e2});continue;}if(!isResponsesFunctionCallItem(_0x326642)||typeof _0x326642[_0xc8b618(_0x5b07c4._0x31d819,_0x5b07c4._0x30a939,_0x5b07c4._0x2d4267,_0x5b07c4._0xb9f3f3)]!==_0xc8b618(_0x5b07c4._0x13d039,0x4f8,0x4d0,_0x5b07c4._0x130548)||_0x326642[_0x5e771a(0x504,0x485,0x587,0x4e2)][_0xc8b618(_0x5b07c4._0x2eaff1,0x4d7,0x588,0x4f7)]()[_0x5e771a(0x5d8,0x608,_0x5b07c4._0x34d7b3,0x5d2)]===0x0||typeof _0x326642['name']!==_0x5e771a(0x55e,0x57a,_0x5b07c4._0x4c86f0,0x572)||_0x326642[_0x5e771a(_0x5b07c4._0x2bf0f7,_0x5b07c4._0x4ac6e0,0x5eb,_0x5b07c4._0x3ac13d)]['trim']()[_0xc8b618(_0x5b07c4._0x393c5c,0x5b2,_0x5b07c4._0x1e0a71,0x4c2)]===0x0||typeof _0x326642[_0xc8b618(0x4a9,_0x5b07c4._0x21d475,0x4b2,_0x5b07c4._0x4a99a8)]!==_0xc8b618(_0x5b07c4._0x2e4812,0x534,_0x5b07c4._0x3f334e,0x4be))continue;_0x912b5a[_0x5e771a(0x603,_0x5b07c4._0x3949a4,0x602,_0x5b07c4._0x54cc64)]({'type':_0x5e771a(0x54f,_0x5b07c4._0x160486,0x568,_0x5b07c4._0x3221b4),'id':_0x326642[_0x5e771a(0x504,0x557,0x590,0x4a0)],'name':_0x326642[_0x5e771a(0x644,0x5bb,_0x5b07c4._0x569310,0x5bd)],'input':parseToolInput2(_0x326642[_0x5e771a(0x540,0x4d6,0x489,_0x5b07c4._0x5a139b)])});}!_0x912b5a[_0xc8b618(_0x5b07c4._0x57e594,_0x5b07c4._0xe6a9a2,_0x5b07c4._0x4feba8,0x561)](_0x4ef22d=>_0x4ef22d[_0xc8b618(0x555,0x4ca,0x4d7,0x530)]==='text')&&_0x2fe194[_0x5e771a(_0x5b07c4._0x217c92,_0x5b07c4._0x1ccf83,0x4f7,_0x5b07c4._0x15d6cc)]&&_0x912b5a[_0x5e771a(_0x5b07c4._0x205d0d,_0x5b07c4._0x408350,_0x5b07c4._0x41144b,_0x5b07c4._0x5ee21e)]({'type':_0x5e771a(0x5be,0x594,0x5d1,_0x5b07c4._0x38c8ca),'text':_0x2fe194[_0xc8b618(0x47c,0x3f8,0x474,_0x5b07c4._0x1da562)]});function _0x5e771a(_0x255656,_0x4b4fd0,_0x2f1e46,_0x2f95a5){return _0x4d4006(_0x2f95a5,_0x4b4fd0-0x1b4,_0x255656-0x4ec,_0x2f95a5-0x33);}function _0xc8b618(_0x265e99,_0x5949fc,_0x22f1d9,_0x32f040){return _0x18006e(_0x265e99-_0x456e00._0x31dcf9,_0x5949fc-_0x456e00._0x52785f,_0x22f1d9-0x425,_0x32f040);}return{'id':_0x2fe194['id'],'content':_0x912b5a,'stopReason':_0x912b5a[_0x5e771a(0x527,0x53d,0x46e,_0x5b07c4._0x13c2fb)](_0x40a70b=>_0x40a70b[_0xc8b618(0x488,0x50e,0x4d7,0x578)]===_0xc8b618(0x405,0x485,0x4c1,0x468))?'tool_use':'end_turn','usage':{'inputTokens':_0x2fe194[_0x5e771a(_0x5b07c4._0xc347a2,_0x5b07c4._0xb00862,0x675,_0x5b07c4._0xb2492)]?.[_0xc8b618(0x60c,0x5ca,0x5ce,_0x5b07c4._0x5deea1)]??0x0,'outputTokens':_0x2fe194[_0xc8b618(0x63c,_0x5b07c4._0x38b457,0x584,0x54d)]?.[_0x5e771a(0x654,0x707,_0x5b07c4._0x2edec4,_0x5b07c4._0x4400df)]??0x0,..._0x2fe194[_0xc8b618(_0x5b07c4._0x30d765,_0x5b07c4._0x2dcedc,_0x5b07c4._0x39bcac,_0x5b07c4._0x2b89f3)]?.[_0xc8b618(0x4e1,0x61e,0x58f,0x606)]?.[_0x5e771a(_0x5b07c4._0x2dad3d,_0x5b07c4._0x2fba9c,0x553,_0x5b07c4._0x4d5b08)]!==void 0x0?{'reasoningTokens':_0x2fe194['usage'][_0xc8b618(_0x5b07c4._0x39df77,0x585,_0x5b07c4._0x5285e4,0x5e1)][_0x5e771a(_0x5b07c4._0x5d266a,0x4fe,0x55f,_0x5b07c4._0x5b281c)]}:{}},..._0x2fe194[_0xc8b618(0x48d,_0x5b07c4._0x4e7eb3,_0x5b07c4._0x1ffffe,0x52a)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x2fe194[_0x5e771a(0x4f0,0x4b1,_0x5b07c4._0x34efab,_0x5b07c4._0x2aa2c4)]),'openaiResponsesResponseId':_0x2fe194['id']}}:{}};}function extractErrorMessage(_0x6b0c3d){const _0x38c67a={_0x3c5ae7:0x10f,_0x5cfe40:0x174,_0x1c4e35:0x119,_0x56b670:0x3f,_0x51001a:0xf2,_0x396981:0x1e5,_0x5ac83d:0x19c,_0x259367:0x1af,_0x5b11bc:0x303,_0x9ad901:0x255,_0xe12969:0x1a2,_0x2cc9e7:0x291,_0x493a01:0x197,_0x11372d:0x1cf,_0x3f850c:0x161,_0x11d497:0x1eb,_0x591e8d:0x14c,_0x1f846e:0x2c0,_0x17edd3:0x2e1,_0x3d915c:0x267,_0x5948c2:0x247,_0x9c0f40:0x120,_0x147d81:0x18d,_0x7963f2:0x143,_0x3b07e7:0x102,_0x1e2862:0x18d,_0x36e96f:0x229,_0x536cad:0x2c7},_0x975aa9={_0x2448be:0x6a};function _0xfef3bc(_0x2670fa,_0x4ea6da,_0x45029c,_0x377918){return _0x18006e(_0x2670fa-0x145,_0x4ea6da-0x42,_0x377918-0x3c,_0x2670fa);}function _0x47d653(_0x428fa0,_0x5c1d0f,_0x12d570,_0x1a9db7){return _0x18006e(_0x428fa0-_0x975aa9._0x2448be,_0x5c1d0f-0x1c8,_0x5c1d0f-0x104,_0x428fa0);}if(_0x6b0c3d[_0xfef3bc(0xc6,_0x38c67a._0x3c5ae7,_0x38c67a._0x5cfe40,0x161)]===0x0)return'';try{const _0x2e14ca=JSON[_0xfef3bc(_0x38c67a._0x1c4e35,-_0x38c67a._0x56b670,0xa3,0x72)](_0x6b0c3d);if(typeof _0x2e14ca[_0xfef3bc(_0x38c67a._0x51001a,_0x38c67a._0x396981,_0x38c67a._0x5ac83d,0x123)]?.['message']===_0x47d653(0x128,_0x38c67a._0x259367,0x1a6,0x1d0)&&_0x2e14ca['error'][_0x47d653(_0x38c67a._0x5b11bc,_0x38c67a._0x9ad901,_0x38c67a._0xe12969,_0x38c67a._0x2cc9e7)]['trim']()[_0xfef3bc(0x172,_0x38c67a._0x493a01,_0x38c67a._0x11372d,_0x38c67a._0x3f850c)]>0x0)return _0x2e14ca[_0x47d653(0x206,_0x38c67a._0x11d497,_0x38c67a._0x591e8d,0x133)][_0x47d653(_0x38c67a._0x1f846e,0x255,_0x38c67a._0x17edd3,0x30c)][_0x47d653(0x314,_0x38c67a._0x3d915c,0x21a,0x2c5)]();if(typeof _0x2e14ca[_0xfef3bc(_0x38c67a._0x5948c2,_0x38c67a._0x9c0f40,0x235,_0x38c67a._0x147d81)]===_0x47d653(_0x38c67a._0x7963f2,0x1af,_0x38c67a._0x3b07e7,0x22d)&&_0x2e14ca[_0xfef3bc(0x226,0x199,0x14e,_0x38c67a._0x1e2862)]['trim']()[_0x47d653(0x1ad,_0x38c67a._0x36e96f,_0x38c67a._0x536cad,0x24c)]>0x0)return _0x2e14ca['message']['trim']();}catch{return _0x6b0c3d;}return _0x6b0c3d;}async function createOpenAiApiError(_0xa9bd2d){const _0x5d9257={_0x2ff50e:0x455,_0x5981ad:0x456,_0x42f40e:0x42f,_0xc6d262:0x533,_0x5d317a:0x4a0,_0x181758:0x4f1,_0x67353e:0x5a9,_0x4ab797:0x462,_0x5b3035:0x37d,_0x31ff1a:0x43a,_0x5ea1b3:0x338},_0x5603d9={_0x5285cd:0x139,_0x1321bb:0x34a},_0x1f9d2a=(await _0xa9bd2d[_0x13edc7(_0x5d9257._0x2ff50e,_0x5d9257._0x5981ad,_0x5d9257._0x42f40e,0x457)]())['trim']();function _0x13edc7(_0x17ecd2,_0x537c3f,_0x13fa99,_0x2afe11){return _0x18006e(_0x17ecd2-0x18a,_0x537c3f-_0x5603d9._0x5285cd,_0x17ecd2-_0x5603d9._0x1321bb,_0x13fa99);}function _0x1484cc(_0x26eda2,_0x3af87e,_0x2e5421,_0xf621fc){return _0x18006e(_0x26eda2-0x13d,_0x3af87e-0x158,_0xf621fc-0x42f,_0x3af87e);}const _0x53ebc1=extractErrorMessage(_0x1f9d2a)||_0xa9bd2d[_0x1484cc(_0x5d9257._0xc6d262,0x578,_0x5d9257._0x5d317a,_0x5d9257._0x181758)]||_0x1484cc(_0x5d9257._0x67353e,0x4d1,0x536,0x531)+_0xa9bd2d[_0x1484cc(0x3bc,0x4bb,0x430,_0x5d9257._0x4ab797)];return new OpenAiApiError(_0xa9bd2d[_0x13edc7(_0x5d9257._0x5b3035,_0x5d9257._0x31ff1a,_0x5d9257._0x5ea1b3,0x420)],_0x1f9d2a,_0x53ebc1);}function readSseData(_0x52ee6a){const _0x400e98={_0x132ef0:0xd1,_0x45a79a:0x177,_0x20a4fa:0x6f,_0x91bb9f:0x36,_0x16eecb:0x92},_0x297d58={_0x14653d:0x102,_0x3e36b7:0x5b},_0x23a662={_0x42d536:0x1c1};function _0x5002f3(_0x42f1ad,_0x4f4cc2,_0x1a3d83,_0x6c6797){return _0x18006e(_0x42f1ad-0x189,_0x4f4cc2-0x57,_0x6c6797- -_0x23a662._0x42d536,_0x1a3d83);}function _0x1efba2(_0x2abc16,_0x95fc38,_0x269a5d,_0x6e2098){return _0x18006e(_0x2abc16-_0x297d58._0x14653d,_0x95fc38-0x90,_0x95fc38- -_0x297d58._0x3e36b7,_0x6e2098);}return _0x52ee6a[_0x5002f3(-_0x400e98._0x132ef0,-0x4e,-_0x400e98._0x45a79a,-0xc2)]('\x0a')[_0x1efba2(-0xc8,-0x8,0x81,0x5f)](_0x5037a3=>_0x5037a3['startsWith'](_0x1efba2(0x62,0xb1,0x54,0x130)))[_0x1efba2(-_0x400e98._0x20a4fa,0x29,0x8e,-0x67)](_0x1368eb=>_0x1368eb[_0x1efba2(0x19a,0xda,0x141,0x123)](0x5)['trimStart']())['join']('\x0a')[_0x5002f3(_0x400e98._0x91bb9f,-_0x400e98._0x16eecb,0x5b,-0x5e)]();}function readString(_0x568de4){const _0x1e79ba={_0x49f5ec:0x4d,_0x349632:0x48,_0x56c295:0x76,_0x20df16:0x68,_0x37a875:0x7c},_0x4f0960={_0xc83a69:0x1c7,_0x47eeea:0xec},_0x5cb33a={_0x487566:0x1a4};function _0x21ee87(_0x3802d8,_0x2c6bac,_0x590cb3,_0x1a0ad4){return _0x4d4006(_0x2c6bac,_0x2c6bac-0x1ca,_0x3802d8- -0xbf,_0x1a0ad4-_0x5cb33a._0x487566);}function _0x52e7d2(_0x91b1c6,_0x2fbc51,_0xaa60ee,_0x399512){return _0x4d4006(_0x399512,_0x2fbc51-_0x4f0960._0xc83a69,_0x91b1c6- -0x239,_0x399512-_0x4f0960._0x47eeea);}return typeof _0x568de4===_0x21ee87(-_0x1e79ba._0x49f5ec,_0x1e79ba._0x349632,-_0x1e79ba._0x56c295,0x41)&&_0x568de4[_0x21ee87(0x2d,_0x1e79ba._0x20df16,0x89,_0x1e79ba._0x37a875)]>0x0?_0x568de4:void 0x0;}function extractReasoningDetails(_0x1f9096){const _0x12dfa3={_0x4c85cd:0x297,_0x32e562:0x239,_0x2ed3ce:0x1f5,_0x383d1a:0x1e1,_0x238209:0x23e},_0x1d909a={_0xdd6f9e:0x9f,_0x477300:0x37f,_0x1e2839:0x2f3,_0x581bfa:0x1,_0x5b14c5:0x9,_0x28ab97:0x338},_0x1851cd={_0x4dfa14:0x177,_0x3159b9:0x172},_0x33bdd0={_0x103a04:0x272};function _0x41a92b(_0x52b7bf,_0x1e7ba7,_0x4a2d55,_0x2df846){return _0x18006e(_0x52b7bf-0x167,_0x1e7ba7-0x190,_0x4a2d55-_0x33bdd0._0x103a04,_0x52b7bf);}if(!Array['isArray'](_0x1f9096))return void 0x0;function _0x18f6ea(_0x3b2f71,_0x53d1a2,_0x335332,_0x5a4800){return _0x18006e(_0x3b2f71-0x17,_0x53d1a2-_0x1851cd._0x4dfa14,_0x3b2f71-_0x1851cd._0x3159b9,_0x335332);}const _0x21f809=_0x1f9096['flatMap'](_0x513ebf=>{const _0x4da160={_0x1bc7fd:0x10a};function _0x2c01cf(_0x23e75b,_0x451647,_0x1db222,_0x5bddc5){return _0x2cfd(_0x1db222- -_0x4da160._0x1bc7fd,_0x451647);}if(!_0x513ebf||typeof _0x513ebf!==_0x2c01cf(-0x1e,0x152,_0x1d909a._0xdd6f9e,0x167))return[];const _0x4afdb1=_0x513ebf;function _0x35759d(_0x2e5b99,_0x2f2b2,_0x3e1276,_0x2f3d8e){return _0x2cfd(_0x2f3d8e-0xe9,_0x3e1276);}if(typeof _0x4afdb1[_0x35759d(0x2e5,_0x1d909a._0x477300,0x2ff,_0x1d909a._0x1e2839)]===_0x2c01cf(0x11c,_0x1d909a._0x581bfa,0xa0,-_0x1d909a._0x5b14c5))return[_0x4afdb1['text']];if(typeof _0x4afdb1[_0x35759d(0x28f,0x2cf,0x285,0x27e)]===_0x2c01cf(0x15f,0x97,0xa0,0x119))return[_0x4afdb1[_0x35759d(0x23e,_0x1d909a._0x28ab97,0x2a2,0x27e)]];return[];});return _0x21f809[_0x18f6ea(_0x12dfa3._0x4c85cd,_0x12dfa3._0x32e562,0x22b,_0x12dfa3._0x2ed3ce)]>0x0?_0x21f809[_0x18f6ea(_0x12dfa3._0x383d1a,0x13d,_0x12dfa3._0x238209,0x1c6)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x4e4883){const _0xd7722b={_0x439e96:0xdc,_0x3cf2ac:0x8a,_0x1fe2ba:0x30,_0x3f5f3:0x13d,_0xa56e9f:0x1,_0x49258b:0x24,_0x460813:0x46,_0x3c6782:0x5e,_0x1df8b0:0x73,_0x5b1ae5:0xc1,_0x124619:0x67,_0x2c587d:0xaf,_0x59d223:0x165,_0x11c698:0xd5},_0x17a006={_0x59eec2:0x77},_0x4ecd58={_0x17df08:0x54,_0x4b5378:0x1b0};function _0x36937c(_0x1daf8e,_0x3fab4d,_0x549210,_0x2d2e1d){return _0x4d4006(_0x1daf8e,_0x3fab4d-0x11b,_0x2d2e1d- -_0x4ecd58._0x17df08,_0x2d2e1d-_0x4ecd58._0x4b5378);}function _0x18768d(_0x1729dd,_0x529393,_0x4da2cf,_0x5f0ff6){return _0x4d4006(_0x4da2cf,_0x529393-0x1d8,_0x1729dd- -0xd7,_0x5f0ff6-_0x17a006._0x59eec2);}return extractReasoningDetails(_0x4e4883?.[_0x18768d(-_0xd7722b._0x439e96,-_0xd7722b._0x3cf2ac,-_0xd7722b._0x1fe2ba,-_0xd7722b._0x3f5f3)])??readString(_0x4e4883?.[_0x18768d(-_0xd7722b._0xa56e9f,-_0xd7722b._0x49258b,-_0xd7722b._0x460813,_0xd7722b._0x3c6782)])??readString(_0x4e4883?.[_0x36937c(_0xd7722b._0x1df8b0,0x93,_0xd7722b._0x5b1ae5,_0xd7722b._0x124619)])??readString(_0x4e4883?.[_0x36937c(_0xd7722b._0x2c587d,_0xd7722b._0x59d223,0x81,_0xd7722b._0x11c698)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x18006e(0x170,0x139,0xe0,0x156)]=[];[_0x4d4006(0x3,0x48,0x8f,0x145)];[_0x18006e(0xf4,0x55,0xa2,0x150)]=[];['toolCallsByIndex']=new Map();[_0x4d4006(0xc0,0x4a,0xab,0x13a)]=[];[_0x4d4006(0x132,0x128,0xed,0x151)]=new Set();[_0x18006e(0x122,0x149,0xb3,0x4)]='';[_0x4d4006(-0x11,0x5a,0x9d,0x14d)]=_0x4d4006(0x83,0xd4,0x65,0x60);[_0x18006e(0x204,0x16c,0x15f,0x20a)];constructor(_0x19829c){const _0x553b75={_0x5c4008:0x5a,_0x4a3679:0xa5},_0x4791b0={_0x9453e1:0x17};function _0x252657(_0x1b1532,_0xaceb7c,_0x3636f0,_0x2c6cf6){return _0x4d4006(_0x2c6cf6,_0xaceb7c-0x33,_0xaceb7c- -0x35,_0x2c6cf6-_0x4791b0._0x9453e1);}this[_0x252657(0xd2,_0x553b75._0x5c4008,_0x553b75._0x4a3679,0xe2)]=_0x19829c;}[_0x18006e(0x204,0x85,0x149,0xcd)](_0x4a88e){const _0xbc0c27={_0xcde89f:0x15c,_0x5e87b1:0x12e,_0x521756:0x3a7,_0x3aaca6:0x33e,_0xda1cd4:0x42a,_0x419bb7:0x34e,_0x22a805:0x2f3,_0x4c0383:0x304,_0x2375aa:0x279,_0x5b632e:0x2c0,_0x1e2f08:0x25f,_0x3a6938:0x299,_0x448501:0x39c,_0x5d8b87:0x364,_0x57c79e:0x3bc},_0x21b580={_0x2a93f3:0x2f4},_0xbfcd7={_0x48fbfa:0x16f,_0x20dc57:0x11a};function _0x213f39(_0x3fb636,_0x4f81b8,_0x2d6649,_0x301501){return _0x18006e(_0x3fb636-_0xbfcd7._0x48fbfa,_0x4f81b8-0xaf,_0x3fb636-_0xbfcd7._0x20dc57,_0x2d6649);}function _0x2c9da6(_0x375304,_0x586c46,_0x342cfd,_0x416596){return _0x18006e(_0x375304-0x1e8,_0x586c46-0xe3,_0x375304-_0x21b580._0x2a93f3,_0x416596);}const _0x5dffa5=readSseData(_0x4a88e);if(_0x5dffa5['length']===0x0||_0x5dffa5==='[DONE]')return[];const _0x11b54a=JSON[_0x213f39(0x150,_0xbc0c27._0xcde89f,0x12f,_0xbc0c27._0x5e87b1)](_0x5dffa5);return this[_0x2c9da6(_0xbc0c27._0x521756,_0xbc0c27._0x3aaca6,0x3b1,_0xbc0c27._0xda1cd4)]=_0x11b54a['id']??this[_0x2c9da6(0x3a7,0x3ea,_0xbc0c27._0x419bb7,_0xbc0c27._0x22a805)],this[_0x213f39(0x279,0x208,0x32b,_0xbc0c27._0x4c0383)]=_0x11b54a[_0x213f39(_0xbc0c27._0x2375aa,_0xbc0c27._0x5b632e,_0xbc0c27._0x1e2f08,0x2ab)]??this[_0x213f39(0x279,0x221,_0xbc0c27._0x3a6938,0x1fb)],this[_0x2c9da6(_0xbc0c27._0x448501,_0xbc0c27._0x5d8b87,_0xbc0c27._0x57c79e,0x30d)](_0x11b54a);}[_0x18006e(0xe8,0x1e3,0x186,0xff)](){const _0x404ff2={_0x2f1098:0x462,_0x207ec9:0x3a3,_0x342ebc:0x507,_0x336572:0x4a3,_0x2e22aa:0x464,_0x14e9c8:0x5cb,_0x749fcf:0x599,_0x1f2149:0x5ee,_0x331a88:0x3ed,_0x5cddde:0x35f,_0x2e541c:0x371,_0x339ca6:0x460,_0x2cc0fb:0x368,_0x50eb02:0x670,_0x21fd4b:0x712,_0xc2f57a:0x403,_0x5cbc6a:0x5e2,_0x2abe73:0x546,_0x1be5d3:0x610,_0x3c0098:0x649,_0x1cd4e2:0x5ad,_0x261bed:0x50b,_0x1744fc:0x4e7,_0x1c455f:0x56c,_0x24db93:0x43c},_0x31673a={_0x377b38:0xcb},_0x3a4661={_0x50594c:0x1cc,_0x51474f:0x37e};function _0x20ea1a(_0x3e8451,_0x4b8c84,_0x1bcbed,_0x4fd9e3){return _0x18006e(_0x3e8451-_0x3a4661._0x50594c,_0x4b8c84-0x190,_0x3e8451-_0x3a4661._0x51474f,_0x4fd9e3);}this[_0x20ea1a(_0x404ff2._0x2f1098,_0x404ff2._0x207ec9,_0x404ff2._0x342ebc,0x501)][_0x20ea1a(_0x404ff2._0x336572,0x4e6,_0x404ff2._0x2e22aa,0x47d)]>0x0&&(this['stopReason']=_0x2eea18(_0x404ff2._0x14e9c8,0x573,0x4c1,_0x404ff2._0x749fcf));const _0x38944c=isUserVisibleReasoning(this[_0x2eea18(0x5c7,0x59f,_0x404ff2._0x1f2149,0x596)])?this['reasoningParts'][_0x20ea1a(_0x404ff2._0x331a88,0x454,_0x404ff2._0x5cddde,_0x404ff2._0x2e541c)](''):void 0x0;function _0x2eea18(_0x57fe0f,_0x62c062,_0x47287e,_0x52dd5d){return _0x18006e(_0x57fe0f-_0x31673a._0x377b38,_0x62c062-0x1bd,_0x62c062-0x4d7,_0x52dd5d);}return{'id':this[_0x20ea1a(0x431,0x3e9,_0x404ff2._0x339ca6,_0x404ff2._0x2cc0fb)]||'chatcmpl-'+Date[_0x2eea18(0x6f5,_0x404ff2._0x50eb02,0x604,_0x404ff2._0x21fd4b)](),'content':createContentBlocks(this[_0x20ea1a(0x420,0x4a8,_0x404ff2._0xc2f57a,0x4c2)][_0x2eea18(_0x404ff2._0x5cbc6a,_0x404ff2._0x2abe73,0x568,_0x404ff2._0x1be5d3)](''),this['toolCallOrder'],_0x38944c),'stopReason':this[_0x2eea18(_0x404ff2._0x3c0098,_0x404ff2._0x1cd4e2,0x60b,_0x404ff2._0x261bed)],'usage':createUsage(this[_0x20ea1a(0x4dd,_0x404ff2._0x1744fc,_0x404ff2._0x1c455f,_0x404ff2._0x24db93)])};}[_0x18006e(0x167,0xf2,0xa8,0xb7)](_0xa0147f){const _0x512a21={_0x249d72:0x15b,_0x541127:0x118,_0xd719ae:0xff,_0x4f0052:0xf2,_0x221a4e:0x176,_0x46a773:0x280,_0x3fdb58:0x181,_0x2b7915:0x260,_0x3be19e:0x2af,_0x4b0fc1:0x204,_0x1c64e3:0x1f1,_0x3bc1c6:0x294,_0x6ff25:0xc7,_0x8b2013:0x34,_0x1c4447:0x178,_0x55af8e:0x263,_0x19a8ab:0x1be,_0x515012:0x1ed,_0x34c5b6:0x25b,_0x5039a:0x113,_0x324314:0x77,_0x5ce3c6:0x65,_0xee2a36:0x6c,_0x209dea:0x2c1,_0xcc8a2e:0x25f,_0x2d6dc7:0x2e5,_0x52c99f:0xb5,_0x53ca20:0xf4,_0x544800:0x16c,_0x27a722:0x103,_0x30dc52:0x1b4,_0x5b6ce1:0x161,_0x1aee35:0x1cd,_0x5e9174:0x2bc,_0x3ab5b6:0x26f,_0x248229:0x19b,_0x432ec1:0x4b,_0x1a75dc:0x6b,_0xc450e5:0x307,_0x55bb5e:0x279,_0x2b8524:0x2b0,_0x5ebb4a:0xc7,_0x259746:0xba,_0xaddc91:0x1c3,_0x3fdb26:0x28b,_0xc21fe1:0xd1,_0x540355:0x17d,_0xe4f0bb:0x104,_0x12b871:0x86,_0x516438:0x17d,_0x257899:0x3e,_0x3747ba:0x2d,_0x253007:0x2a4,_0x4e065b:0x281,_0x3c83f3:0x328,_0x4973ef:0x339,_0x419af6:0x37d,_0x1a71b8:0xb3,_0x22d4a6:0xbc,_0x3eeccd:0x108,_0x1b257e:0x2d5,_0xafaf70:0x285,_0x6d9707:0x23c,_0x2a0975:0x1fe,_0x4daafc:0x104,_0x1bcaf6:0x8f,_0x469145:0x14a,_0x57b06b:0x23c,_0x29a3ca:0x2cc,_0x3c6638:0xf1,_0x473b49:0x1aa,_0x439764:0x1af,_0x2b9b2b:0x70,_0x42d26d:0x8f,_0x49c051:0xb4,_0x3c36fd:0xad,_0x1af87a:0x21,_0x218360:0x166,_0x1f213b:0x1fb,_0x183987:0x13e,_0x512675:0x36f,_0x540370:0x2ba,_0xee2b26:0x2db,_0x2dc7fd:0xf1,_0x2f20c0:0x7d,_0x12d54d:0x126,_0x14785e:0x11d,_0x17df3c:0x357,_0x498ac2:0x28d,_0x480557:0x331,_0x11769a:0x5b,_0x56ef9b:0x82,_0x40139d:0x174,_0x5275a3:0x1b6,_0x4a2253:0x1c2,_0x42c633:0xf2,_0x517045:0x4d,_0x5c025e:0x25c,_0x5bc57d:0x18a,_0x388032:0x23a,_0x1d3ece:0x1f8,_0x24e077:0x2a1,_0x323954:0xdf,_0x3a5436:0x16,_0x3d190d:0x1ff,_0x3055d4:0x139,_0x3bb8f0:0x1e1},_0xefdb35={_0x173db9:0x1c9},_0x54379b={_0x415090:0xcc,_0x4117af:0x217};function _0x3feb76(_0x533a5f,_0x315573,_0xc56212,_0x283b29){return _0x18006e(_0x533a5f-_0x54379b._0x415090,_0x315573-0x18,_0x533a5f- -_0x54379b._0x4117af,_0x315573);}const _0x3d265b=[];for(const _0x575886 of _0xa0147f[_0x3feb76(-_0x512a21._0x249d72,-0x183,-0x1e0,-_0x512a21._0x541127)]??[]){const _0x19468b=_0x575886[_0x183ae5(0x217,_0x512a21._0xd719ae,0x195,0x191)],_0x410555=extractChatCompletionReasoningDelta(_0x19468b);_0x410555[_0x3feb76(-_0x512a21._0x4f0052,-_0x512a21._0x221a4e,-0xe0,-0x89)]>0x0&&(this[_0x183ae5(_0x512a21._0x46a773,0x286,0x209,_0x512a21._0x3fdb58)][_0x183ae5(_0x512a21._0x2b7915,_0x512a21._0x3be19e,0x279,_0x512a21._0x4b0fc1)](_0x410555),isUserVisibleReasoning(this[_0x183ae5(0x1b8,0x146,_0x512a21._0x1c64e3,_0x512a21._0x3bc1c6)])&&_0x3d265b[_0x3feb76(-_0x512a21._0x6ff25,-_0x512a21._0x8b2013,-_0x512a21._0x1c4447,-0x42)]({'type':_0x183ae5(0x26c,_0x512a21._0x55af8e,_0x512a21._0x19a8ab,0x15f),'contentIndex':0x0,'delta':_0x410555,'itemId':(this[_0x183ae5(_0x512a21._0x515012,_0x512a21._0x34c5b6,0x1dc,_0x512a21._0x5039a)]||_0x3feb76(-_0x512a21._0x324314,-_0x512a21._0x5ce3c6,-_0x512a21._0xee2a36,-0x99))+_0x183ae5(_0x512a21._0x209dea,_0x512a21._0xcc8a2e,0x2cc,_0x512a21._0x2d6dc7),'outputIndex':0x0}));const _0x5f1df4=typeof _0x19468b?.[_0x3feb76(-0x11c,-_0x512a21._0x52c99f,-0x1c1,-_0x512a21._0x53ca20)]===_0x3feb76(-_0x512a21._0x544800,-_0x512a21._0x27a722,-_0x512a21._0x30dc52,-_0x512a21._0x5b6ce1)?_0x19468b[_0x183ae5(_0x512a21._0x1aee35,_0x512a21._0x5e9174,0x224,0x1d4)]:typeof _0x19468b?.[_0x183ae5(0x239,0x286,0x232,0x2ca)]===_0x183ae5(_0x512a21._0x3ab5b6,_0x512a21._0x248229,0x1d4,0x12a)?_0x19468b[_0x3feb76(-0x10e,-_0x512a21._0x432ec1,-_0x512a21._0x1a75dc,-0xb6)]:'';_0x5f1df4['length']>0x0&&(this['textParts'][_0x183ae5(_0x512a21._0xc450e5,0x29a,_0x512a21._0x55bb5e,_0x512a21._0x2b8524)](_0x5f1df4),_0x3d265b[_0x3feb76(-_0x512a21._0x5ebb4a,-0x48,-0x151,-0x102)]({'type':_0x3feb76(-_0x512a21._0x259746,0xd,-0xe,-0x8b),'index':0x0,'text':_0x5f1df4}));for(const _0x457397 of _0x19468b?.['tool_calls']??[]){const _0x1e26d3=_0x457397[_0x183ae5(0x14e,0x17f,_0x512a21._0xaddc91,0x24f)]??0x0;let _0x1e0866=this[_0x183ae5(0x20e,0x299,0x281,0x1c9)]['get'](_0x1e26d3);!_0x1e0866&&(_0x1e0866={'id':_0x457397['id']??_0x183ae5(_0x512a21._0x3fdb26,0x2a5,0x27f,0x259)+_0x1e26d3,'type':_0x3feb76(-0x104,-_0x512a21._0xee2a36,-_0x512a21._0xc21fe1,-_0x512a21._0x540355),'function':{'name':_0x457397[_0x3feb76(-_0x512a21._0xe4f0bb,-0x89,-_0x512a21._0x12b871,-_0x512a21._0x516438)]?.[_0x3feb76(-0x86,_0x512a21._0x257899,-0xb2,_0x512a21._0x3747ba)]??'','arguments':''}},this[_0x183ae5(_0x512a21._0x253007,0x2ed,_0x512a21._0x4e065b,_0x512a21._0x3c83f3)][_0x183ae5(_0x512a21._0x4973ef,_0x512a21._0x419af6,0x2bf,0x32d)](_0x1e26d3,_0x1e0866),this[_0x3feb76(-0x133,-0x9a,-_0x512a21._0x1a71b8,-_0x512a21._0x22d4a6)][_0x3feb76(-_0x512a21._0x5ebb4a,-0x17b,-0x54,-_0x512a21._0x3eeccd)](_0x1e0866));_0x457397['id']&&(_0x1e0866['id']=_0x457397['id']);_0x457397[_0x183ae5(_0x512a21._0x1b257e,_0x512a21._0xafaf70,_0x512a21._0x6d9707,_0x512a21._0x2a0975)]?.['name']&&(_0x1e0866[_0x3feb76(-_0x512a21._0x4daafc,-_0x512a21._0x1bcaf6,-_0x512a21._0x469145,-0x16a)]['name']=_0x457397[_0x183ae5(0x24f,0x2c5,_0x512a21._0x57b06b,_0x512a21._0x29a3ca)]['name']);!this[_0x3feb76(-_0x512a21._0x3c6638,-0x6e,-_0x512a21._0x473b49,-0xc1)][_0x3feb76(-0x191,-0x1c5,-0x1e7,-_0x512a21._0x439764)](_0x1e26d3)&&_0x1e0866[_0x3feb76(-_0x512a21._0xe4f0bb,-0xd9,-_0x512a21._0x2b9b2b,-_0x512a21._0x42d26d)]['name'][_0x3feb76(-_0x512a21._0x49c051,-_0x512a21._0x3c36fd,-0x119,-_0x512a21._0x1af87a)]()['length']>0x0&&(_0x3d265b['push']({'type':_0x3feb76(-0x1f8,-_0x512a21._0x218360,-_0x512a21._0x1f213b,-_0x512a21._0x183987),'id':_0x1e0866['id'],'index':_0x1e26d3,'name':_0x1e0866['function'][_0x183ae5(_0x512a21._0x512675,0x246,_0x512a21._0x540370,_0x512a21._0xee2b26)]}),this[_0x3feb76(-_0x512a21._0x2dc7fd,-_0x512a21._0x2f20c0,-_0x512a21._0x12d54d,-_0x512a21._0x14785e)][_0x183ae5(_0x512a21._0x17df3c,0x312,_0x512a21._0x498ac2,_0x512a21._0x480557)](_0x1e26d3));const _0x142b45=_0x457397[_0x3feb76(-_0x512a21._0x4daafc,-_0x512a21._0x11769a,-0x1c8,-_0x512a21._0x56ef9b)]?.[_0x183ae5(_0x512a21._0x40139d,0x26c,_0x512a21._0x5275a3,_0x512a21._0x4a2253)]??'';_0x142b45[_0x3feb76(-_0x512a21._0x42c633,-_0x512a21._0x517045,-0x176,-0x3d)]>0x0&&(_0x1e0866[_0x183ae5(_0x512a21._0x5c025e,0x178,0x23c,0x302)][_0x3feb76(-_0x512a21._0x5bc57d,-0xdb,-0x23b,-_0x512a21._0x388032)]+=_0x142b45,_0x3d265b['push']({'type':_0x3feb76(-_0x512a21._0x1d3ece,-0x18a,-_0x512a21._0x24e077,-0x258),'id':_0x1e0866['id'],'index':_0x1e26d3,'inputDelta':_0x142b45}));}_0x575886[_0x3feb76(-_0x512a21._0x323954,-0x16d,-_0x512a21._0x3a5436,-0x3e)]==='tool_calls'&&(this[_0x183ae5(0x1b0,0x1cd,_0x512a21._0x3d190d,_0x512a21._0x3055d4)]=_0x3feb76(-0x17b,-0x13e,-_0x512a21._0x3bb8f0,-0x1d8));}function _0x183ae5(_0x139a4a,_0x5c10b6,_0x401084,_0x5a9057){return _0x4d4006(_0x139a4a,_0x5c10b6-_0xefdb35._0x173db9,_0x401084-0x162,_0x5a9057-0x1c4);}return _0x3d265b;}},OpenAiResponsesStreamParser=class{[_0x18006e(-0x1d,0x6,0x9f,0xbf)]=new Map();[_0x18006e(-0x7,0x13e,0xad,0xb8)];[_0x4d4006(0xb1,0x80,0x17,0x17)]=new Map();[_0x18006e(0x15d,0x15e,0x15c,0x168)]=new Map();['reasoningItems']=new Map();[_0x18006e(0x83,0x17d,0xc8,0xa)];[_0x4d4006(0xcf,0x12f,0x15a,0xcd)]=new Map();[_0x18006e(0x196,0x1aa,0xfa,0x8d)]=new Map();constructor(_0x3c37c6){const _0x33400c={_0xdbada0:0x12b},_0x3727e7={_0x281397:0x17a};function _0x51d418(_0xde9c3e,_0x51aeda,_0x286063,_0x4f7132){return _0x4d4006(_0x4f7132,_0x51aeda-_0x3727e7._0x281397,_0xde9c3e-0x2e,_0x4f7132-0x8d);}this[_0x51d418(0xbd,_0x33400c._0xdbada0,0x2f,0xbb)]=_0x3c37c6;}[_0x4d4006(0x16e,0x8e,0x110,0x19b)](_0x19d37b){const _0x4a9bb1={_0xff41f0:0x1e3,_0x26175e:0x1d9,_0x233bdf:0x258,_0x6a0531:0x37d,_0x3cdab5:0x2d1,_0x544ac2:0x412,_0x54db34:0x3ab,_0x27bc66:0x457,_0x1d47c6:0x39b,_0x193d1c:0x132,_0x25dd54:0x2e2,_0x184a95:0x3ce,_0x2c2efb:0x31d,_0x3c6157:0x1d6,_0x3286b0:0x1fa,_0x28433e:0x255,_0x2a56c5:0x3b4,_0x17b431:0x257,_0x27eaa9:0x28e},_0x3a15dd={_0x42681e:0x191,_0x3f2022:0x95},_0x40d48c={_0x106b7c:0x17d},_0x33c73a=_0x19d37b['split']('\x0a'),_0x5a6bfd=_0x33c73a[_0x2ea155(_0x4a9bb1._0xff41f0,_0x4a9bb1._0x26175e,_0x4a9bb1._0x233bdf,0x27a)](_0x16c80e=>_0x16c80e[_0x3c201c(0x40e,0x377,0x302,0x436)](_0x2ea155(0x18c,0x1aa,0x23a,0x252)))?.[_0x3c201c(_0x4a9bb1._0x6a0531,0x37d,0x3ad,_0x4a9bb1._0x3cdab5)](0x6)[_0x3c201c(_0x4a9bb1._0x544ac2,_0x4a9bb1._0x54db34,_0x4a9bb1._0x27bc66,_0x4a9bb1._0x1d47c6)]();function _0x3c201c(_0xdbff73,_0x49b289,_0x4bba0f,_0x31f9b9){return _0x18006e(_0xdbff73-0x1aa,_0x49b289-_0x40d48c._0x106b7c,_0x49b289-0x248,_0x31f9b9);}const _0x480c98=_0x33c73a[_0x2ea155(_0x4a9bb1._0x193d1c,0x1ab,0x186,0x147)](_0x3d04a0=>_0x3d04a0[_0x2ea155(0x2b9,0x287,0x340,0x1e4)](_0x2ea155(0x22e,0x264,0x2aa,0x292)))['map'](_0x16acbc=>_0x16acbc['slice'](0x5)[_0x3c201c(0x35e,0x3b6,0x3f6,0x3cb)]())['join']('\x0a')[_0x3c201c(_0x4a9bb1._0x25dd54,_0x4a9bb1._0x54db34,_0x4a9bb1._0x184a95,0x3d5)]();if(_0x480c98[_0x3c201c(0x39f,0x36d,0x2e8,_0x4a9bb1._0x2c2efb)]===0x0||_0x480c98===_0x2ea155(0x15b,_0x4a9bb1._0x3c6157,0x282,_0x4a9bb1._0x3286b0))return[];function _0x2ea155(_0x5d5421,_0x1420bf,_0x33fec9,_0x145a62){return _0x4d4006(_0x5d5421,_0x1420bf-0x14b,_0x1420bf-_0x3a15dd._0x42681e,_0x145a62-_0x3a15dd._0x3f2022);}const _0x40afb6=JSON[_0x2ea155(0x106,0x18e,0xfd,_0x4a9bb1._0x28433e)](_0x480c98);return this[_0x3c201c(_0x4a9bb1._0x2a56c5,0x2f0,0x355,_0x4a9bb1._0x17b431)](_0x5a6bfd??String(_0x40afb6[_0x2ea155(0x1b6,0x20a,0x297,_0x4a9bb1._0x27eaa9)]??''),_0x40afb6);}[_0x18006e(0x1b1,0x152,0x13b,0xc1)](_0x1e37e4){return this['consumeEvent'](String(_0x1e37e4['type']??''),_0x1e37e4);}['finish'](){const _0x314b47={_0x155ef6:0x180,_0x19bee3:0x4d2,_0x9c0b52:0x597,_0x1a4087:0x639,_0x506ec5:0x286,_0x5d234a:0x58a,_0x5f4401:0x62e,_0x231557:0x5c1},_0x51817b={_0x596f81:0x1bf,_0x3d8019:0x167};function _0x2b8108(_0x3f99ab,_0x56ec74,_0x2f3b72,_0x42b378){return _0x18006e(_0x3f99ab-_0x51817b._0x596f81,_0x56ec74-_0x51817b._0x3d8019,_0x42b378-0x4a0,_0x56ec74);}function _0x1db5d2(_0x41114f,_0x5ca164,_0xff330f,_0x3222af){return _0x4d4006(_0x41114f,_0x5ca164-0xad,_0x5ca164- -0x25d,_0x3222af-0x6b);}const _0x5ef9ba=this[_0x1db5d2(-0x1c8,-0x1e9,-_0x314b47._0x155ef6,-0x20b)]??{'id':_0x2b8108(0x461,0x438,0x496,_0x314b47._0x19bee3)+Date[_0x2b8108(0x5b7,_0x314b47._0x9c0b52,0x682,_0x314b47._0x1a4087)](),'object':_0x1db5d2(-0x173,-0x204,-0x215,-_0x314b47._0x506ec5),'status':_0x2b8108(_0x314b47._0x5d234a,0x58c,0x4cf,0x55d),'output':this[_0x2b8108(0x6b7,_0x314b47._0x5f4401,0x619,0x62f)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x5ef9ba,this[_0x2b8108(0x4f3,_0x314b47._0x231557,0x5c5,0x568)]);}[_0x4d4006(0x5d,0x118,0xbe,0x9b)](){const _0x4753a2={_0x52a552:0x253,_0x587525:0x1a9,_0x3b7762:0x1d7},_0x46a44c={_0x1cb99d:0x5d,_0x18a346:0x1df};function _0x3fb556(_0x46bc61,_0x574f0a,_0xad6a56,_0x153067){return _0x4d4006(_0x574f0a,_0x574f0a-_0x46a44c._0x1cb99d,_0x46bc61-_0x46a44c._0x18a346,_0x153067-0xe7);}return this[_0x3fb556(_0x4753a2._0x52a552,_0x4753a2._0x587525,_0x4753a2._0x3b7762,0x253)]!==void 0x0;}[_0x18006e(0x100,0x16a,0xa8,0xb)](_0x110c76,_0x1e40cf){const _0xbea379={_0x275d93:0x27c,_0xd17512:0x109,_0x3b56e2:0x130,_0x574347:0x14d,_0x425ef1:0x84,_0x55e5ba:0x14c,_0x3e4ece:0x1fd,_0xc83ceb:0x1b1,_0x47ee98:0x14e,_0x118061:0x1b5,_0x4b4a58:0x10e,_0x1eee9b:0x2b4,_0x3c3c0b:0x29d,_0x34eee1:0x269,_0x2c2563:0x237,_0x134a85:0x254,_0x49b8a6:0x1fe,_0x35aecc:0x210,_0x498cda:0x13f,_0x1143aa:0x1c1,_0x10a9f7:0x1e7,_0x25efbe:0x1f0,_0x5caa6d:0x143,_0x59af78:0x20e,_0x2b4d86:0x1cc,_0x59014d:0x1ed,_0x33b85e:0x267,_0x4ac354:0x199,_0x3a7b0e:0x153,_0x4ba108:0x1ef,_0x463b23:0x8d,_0x44c81c:0xc9,_0x14f0fb:0x1e3,_0x7020fe:0x11c,_0x15dcca:0x21d,_0x41cdef:0x27b,_0x596685:0x1a9,_0x19060f:0x19b,_0x147723:0x129,_0x11a6ad:0x237,_0x9cb31e:0x194,_0x2c3621:0x24c,_0x25e461:0xfb,_0x337828:0xba,_0x3c2339:0xf2,_0x10a27a:0x71,_0x462d4d:0x1b4,_0x29323d:0x270,_0x449939:0x1b2,_0xe18f44:0x278,_0x593981:0xdb,_0x7c3c3e:0x12a,_0x5ba85f:0x14f,_0x525ba2:0x1b3,_0x44403a:0x232,_0x4cc453:0x1dd,_0x56439f:0x19d,_0x14e4ce:0x19b,_0x4d6ae3:0x178,_0x318201:0xc8,_0x2a5b46:0x19f,_0x577b57:0x169,_0x1c68e7:0xde,_0x2f95b0:0x1e6,_0x3990d0:0x7c,_0x1a09c6:0x1f9,_0x4cef43:0x2a3,_0x2ddee2:0x1a8,_0x12e26c:0x134,_0x426a16:0xf1,_0x3823bf:0xce,_0x47b4b5:0x24e,_0x1f9b5a:0xd2,_0x65309:0x1f8,_0x4df969:0x17a,_0x19ecd4:0x11b,_0x5c8a13:0x1a7,_0x3d0be4:0x1ca,_0x27493a:0x214,_0xc199fa:0x140,_0x153c65:0x12c,_0x486ffb:0x27e,_0x340e65:0x22d,_0x4cde81:0x158,_0x3f92f4:0x18c,_0x58c36d:0x20e,_0x3749ab:0x2d7,_0x4956c4:0xdd,_0x3c35c2:0x12e,_0x5434bd:0x55,_0x5ea9a0:0x9d,_0x1945ef:0x1c7,_0x4721ac:0x1e4,_0x5b324:0x26f,_0x125d6e:0x186,_0x36862a:0x1f6,_0x143ded:0x108,_0x12aea2:0x218,_0x258871:0x30f,_0x5c7cd1:0x2c3,_0x496a14:0x17b,_0x46f466:0xd8,_0x2bd1d9:0x20b,_0x4d74a9:0xfd,_0x5561c0:0x119,_0x4be824:0x150,_0x107d5e:0xc3,_0x56fc84:0x9a,_0x4ff45e:0xb6,_0x41af51:0x1ce,_0x44db9e:0x25c,_0x26e799:0x12c,_0x5471db:0x152,_0x2bcb36:0x1a2,_0x3e6722:0x17f,_0x995e40:0x12f,_0x1f208f:0xdd,_0x303c65:0x2f9,_0x3eae80:0x247,_0x53d6eb:0x24f,_0x4a073e:0x2c5,_0xb47d23:0x26c,_0x4f9769:0x1a8,_0x4f663f:0xff,_0x5d8eb2:0xba,_0x5b1078:0x1a8,_0x19fc83:0x151,_0x4a1a04:0xfb,_0x363008:0xd1,_0x9767b:0xd0,_0x2ce940:0xfc,_0x58210d:0x4f,_0x6b11d7:0xa9,_0x5c8f6b:0x12d,_0x4a90e8:0x215,_0xda1616:0x282,_0x3e3885:0x137,_0x208183:0x100,_0x27094b:0x18b,_0x460b5d:0x1be,_0x54250c:0x1e1,_0x5ac8d8:0x14a,_0x3c5594:0x1c6,_0x2304e4:0x10a,_0x27a5b4:0x1e3,_0x186176:0x1e6,_0x29fdec:0x20d,_0x541323:0xea,_0x58c329:0xe2,_0x1ab84b:0x234,_0x42ca02:0x1bb,_0x52acf0:0x222,_0x14473f:0x16d,_0x4945f6:0x1da,_0x21983a:0x1ac,_0x3bebb4:0xfa,_0x2a206f:0x190,_0x9e06be:0x1d1,_0x5c70c2:0xc4,_0x145481:0x125,_0x4cc415:0x1b6,_0x32b5d3:0x117,_0x311d90:0x10d,_0x4bec25:0x1d3,_0x22c749:0xfe,_0x2b7fe5:0x159,_0x1b8f84:0x126,_0x12b620:0xdc,_0x1ea093:0x18e,_0x2bba24:0x1b2,_0x57c1a0:0x227,_0x4c9994:0x1fd,_0x455bd6:0x2b4,_0x3ee003:0x23a,_0x32d7a8:0x1d2,_0x23373f:0x237,_0x25b803:0x2c2,_0x43a769:0x1aa,_0x55fe3c:0x1a7,_0x468f42:0x20e,_0x577dd0:0x1ac,_0x51dec7:0x213,_0x5d3eec:0x1d5,_0xe4905b:0x13a,_0x3cb942:0xe5,_0x5fffe3:0x169,_0xfcc8b1:0x212,_0xa60fad:0x228,_0x55c480:0x1fa,_0x2244b3:0x1bf,_0x409dc7:0x2ed,_0x487af5:0x233,_0x40ae50:0x186,_0x4da3c9:0x2b5,_0x210c6d:0x167,_0x98e69b:0x184,_0xf19723:0x21b,_0x142bcc:0xef,_0x1b1b67:0x265,_0x46aac3:0x1e8,_0x2d240a:0x2eb,_0xc68a03:0x198,_0x2f20dc:0x18f,_0x1b598a:0x1f9,_0x1c8db2:0x21c,_0x126a7c:0x1d9,_0x5bea9a:0x1a6,_0x5b5b34:0x258,_0x563843:0x148,_0x583338:0x1ac,_0x1ee413:0x19e,_0x239f37:0x114,_0xdcd08c:0xac,_0x13774a:0x272,_0xd1d152:0x1bf,_0xfc8f94:0x13a,_0x3d775c:0xbd,_0x5d4e14:0x120,_0x24b565:0x222,_0x171f8d:0x214,_0x28e969:0x1ee,_0x1b5cdc:0x16f,_0x20280c:0xf8,_0x57bf4e:0x118,_0x6b6d55:0x137,_0x1ce9ec:0xa2,_0x44719c:0x18d,_0x5cb762:0x2b1,_0x25d905:0x1a8,_0x4f701e:0x2b1,_0x2341b9:0x20d,_0x494fab:0x105,_0x216bc8:0x20e,_0x50be61:0x2a1,_0x397b43:0x8a,_0x103005:0x1aa,_0xac32:0x1f4,_0x1b8d95:0x1bf,_0x140b49:0x185,_0x5265a1:0x230,_0x3957fa:0x23a,_0x265a7c:0x294,_0x16286e:0x204,_0x379f52:0x154,_0x52204f:0x94,_0x3fbf2e:0x90,_0x2c0f8c:0x160,_0x1d676d:0x201,_0x11674f:0x154,_0x56d30f:0x2af,_0x566837:0x1c4,_0xd39a0f:0x14c,_0x395b60:0x116,_0x52e386:0x131,_0x497e2c:0x16e,_0x598d7d:0x155,_0x569afc:0x158,_0x563a79:0x1bb,_0x5c0b40:0x20e,_0x439827:0x2c0,_0x1af25e:0x1bf,_0x2b8873:0x144,_0x2c0a48:0x1c2,_0x57713b:0x1ba,_0xc2fb9e:0x176,_0x5d9a44:0x174,_0x5e2e2e:0x197,_0x49c081:0x180,_0x243d6e:0xf9,_0x4da261:0x133,_0x43101b:0xc1,_0x18bc15:0xd6,_0xe40850:0x6d,_0x873951:0x188,_0x3d0e60:0x1a8,_0x4998ae:0x1f3,_0x2708c6:0xdf,_0x3ee1c9:0x188,_0x22c5ce:0xc6,_0x2adec5:0xbf,_0x4f05d2:0x2a9,_0xc75ae2:0x15c,_0x587166:0xca,_0xe4e5b0:0x14d,_0x40c440:0xbf,_0x3c0007:0x2b,_0x55ac20:0x1d},_0x3870aa={_0x56e591:0x1e0,_0x49f85d:0x37,_0x345d18:0x8c};function _0xa78179(_0x25ed95,_0x4ea1d0,_0xb232e0,_0x2c1707){return _0x18006e(_0x25ed95-_0x3870aa._0x56e591,_0x4ea1d0-_0x3870aa._0x49f85d,_0x25ed95-_0x3870aa._0x345d18,_0x2c1707);}function _0x210bc2(_0x566f26,_0xb35003,_0x4fccd7,_0x42c45d){return _0x4d4006(_0x4fccd7,_0xb35003-0x58,_0x566f26-0xda,_0x42c45d-0x157);}switch(_0x110c76){case _0xa78179(0x20d,0x208,_0xbea379._0x275d93,0x245):{const _0x2a7d9d=typeof _0x1e40cf['output_index']===_0x210bc2(0x158,_0xbea379._0xd17512,_0xbea379._0x3b56e2,0xe7)?_0x1e40cf['output_index']:0x0,_0x5b3b49=typeof _0x1e40cf[_0x210bc2(0x10d,0x191,_0xbea379._0x574347,_0xbea379._0x425ef1)]===_0x210bc2(_0xbea379._0x55e5ba,0x100,_0xbea379._0x3e4ece,0xf9)?_0x1e40cf['delta']:'';if(_0x5b3b49[_0xa78179(_0xbea379._0xc83ceb,_0xbea379._0x47ee98,_0xbea379._0x118061,_0xbea379._0x4b4a58)]>0x0){const _0x2bcfb6=this['responseTextParts'][_0xa78179(0x23a,0x24e,_0xbea379._0x1eee9b,_0xbea379._0x3c3c0b)](_0x2a7d9d)??[];return _0x2bcfb6['push'](_0x5b3b49),this[_0xa78179(0x21f,_0xbea379._0x34eee1,0x249,0x1ac)][_0x210bc2(_0xbea379._0x2c2563,0x2fd,0x184,_0xbea379._0x134a85)](_0x2a7d9d,_0x2bcfb6),[{'type':_0x210bc2(_0xbea379._0x49b8a6,0x1a2,_0xbea379._0x35aecc,_0xbea379._0x498cda),'index':_0x2a7d9d,'text':_0x5b3b49}];}break;}case _0xa78179(0x215,_0xbea379._0x1143aa,_0xbea379._0x10a9f7,0x1a2):{const _0x22cb8d=typeof _0x1e40cf[_0x210bc2(0x20e,0x2ad,0x1a0,_0xbea379._0x25efbe)]===_0xa78179(_0xbea379._0x5caa6d,0x19d,0x1ca,0x1a9)?_0x1e40cf[_0x210bc2(_0xbea379._0x59af78,_0xbea379._0x2b4d86,0x209,_0xbea379._0x59014d)]:void 0x0,_0x5aec80=_0x1e40cf[_0x210bc2(0x1e3,_0xbea379._0x33b85e,_0xbea379._0x4ac354,0x296)];if(_0x5aec80?.[_0x210bc2(_0xbea379._0x3a7b0e,0x134,0x1e2,_0xbea379._0x4ba108)]===_0x210bc2(0x152,_0xbea379._0x463b23,_0xbea379._0x44c81c,_0xbea379._0x14f0fb)&&_0x5aec80[_0x210bc2(0xf2,0x1ba,_0xbea379._0x7020fe,0xc9)]&&_0x5aec80[_0xa78179(_0xbea379._0x15dcca,0x2a7,_0xbea379._0x41cdef,_0xbea379._0x596685)])return this[_0x210bc2(_0xbea379._0x19060f,_0xbea379._0x147723,0x19c,0x22f)][_0x210bc2(_0xbea379._0x11a6ad,0x2b5,_0xbea379._0x9cb31e,_0xbea379._0x2c3621)](_0x5aec80[_0xa78179(0xdd,_0xbea379._0x25e461,_0xbea379._0x337828,0x58)],{'id':_0x5aec80[_0x210bc2(_0xbea379._0x3c2339,0x17c,_0xbea379._0x10a27a,0x4c)],'type':_0x210bc2(_0xbea379._0x462d4d,_0xbea379._0x29323d,_0xbea379._0x449939,_0xbea379._0xe18f44),'function':{'name':_0x5aec80['name'],'arguments':''}}),_0x22cb8d!==void 0x0&&(this[_0xa78179(0xdc,_0xbea379._0x593981,0x113,_0xbea379._0x7c3c3e)]['set'](_0x22cb8d,_0x5aec80[_0x210bc2(0xf2,_0xbea379._0x5ba85f,0x184,_0xbea379._0x525ba2)]),this['callIdToOutputIndex']['set'](_0x5aec80[_0x210bc2(0xf2,0x3c,0xad,0x12e)],_0x22cb8d)),[{'type':'tool_use_delta','id':_0x5aec80[_0xa78179(0xdd,0x1a1,0x184,0x19e)],'index':_0x22cb8d??0x0,'name':_0x5aec80[_0x210bc2(_0xbea379._0x44403a,0x1fb,0x2f0,_0xbea379._0x4cc453)]}];if(_0x5aec80?.[_0xa78179(0x13e,0x105,_0xbea379._0x56439f,0x139)]===_0xa78179(_0xbea379._0x14e4ce,0x168,0x222,0x1ed)&&_0x5aec80['id']){const _0x2e358=this[_0xa78179(0x13a,_0xbea379._0x4d6ae3,0x1f9,_0xbea379._0x318201)](_0x5aec80['id'],_0x22cb8d);_0x22cb8d!==void 0x0&&this[_0x210bc2(_0xbea379._0x3e4ece,0x1fa,_0xbea379._0x2a5b46,_0xbea379._0x577b57)]['set'](_0x22cb8d,_0x2e358['id']);}break;}case _0x210bc2(0x121,0x173,0x84,_0xbea379._0x1c68e7):{const _0x24fdca=typeof _0x1e40cf[_0x210bc2(0xf2,0x18c,0xbf,_0xbea379._0x1c68e7)]===_0x210bc2(_0xbea379._0x55e5ba,_0xbea379._0x2f95b0,0x208,0xd7)?_0x1e40cf[_0x210bc2(0xf2,_0xbea379._0x3990d0,0x17a,0x70)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x4cef43,0x1c3,0x1fd)]===_0x210bc2(0x158,_0xbea379._0x2ddee2,_0xbea379._0x12e26c,0xa1)?this[_0x210bc2(_0xbea379._0x426a16,_0xbea379._0x3823bf,0x6d,0x135)][_0xa78179(0x23a,0x1cc,_0xbea379._0x47b4b5,0x1f3)](_0x1e40cf['output_index']):void 0x0,_0x3a251d=typeof _0x1e40cf['delta']===_0xa78179(0x137,_0xbea379._0x1f9b5a,_0xbea379._0x65309,_0xbea379._0x4df969)?_0x1e40cf['delta']:'',_0x5acb2c=_0x24fdca?this[_0xa78179(0x186,0xfa,0x1a7,0x11a)]['get'](_0x24fdca):void 0x0;if(_0x5acb2c&&_0x3a251d[_0xa78179(0x1b1,_0xbea379._0x19ecd4,_0xbea379._0x449939,_0xbea379._0x5c8a13)]>0x0)return _0x5acb2c[_0x210bc2(0x1b4,0x1a1,_0xbea379._0x3d0be4,_0xbea379._0x27493a)]['arguments']+=_0x3a251d,[{'type':'tool_use_delta','id':_0x5acb2c['id'],'index':this[_0x210bc2(_0xbea379._0xc199fa,_0xbea379._0x153c65,0x84,0xa8)]['get'](_0x5acb2c['id'])??(typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0x486ffb,_0xbea379._0x340e65,0x1ce)]===_0x210bc2(_0xbea379._0x4cde81,_0xbea379._0x3f92f4,0x172,0x195)?_0x1e40cf[_0x210bc2(_0xbea379._0x58c36d,_0xbea379._0x3749ab,0x210,0x14b)]:0x0),'inputDelta':_0x3a251d}];break;}case'response.function_call_arguments.done':{const _0x995747=typeof _0x1e40cf[_0xa78179(_0xbea379._0x4956c4,0x121,_0xbea379._0x3c35c2,0x14b)]==='string'?_0x1e40cf[_0x210bc2(0xf2,_0xbea379._0x5434bd,0x13a,_0xbea379._0x5ea9a0)]:typeof _0x1e40cf[_0xa78179(0x1f9,_0xbea379._0x3b56e2,0x179,0x258)]===_0xa78179(_0xbea379._0x5caa6d,_0xbea379._0x1945ef,0xba,0x198)?this[_0xa78179(0xdc,0x165,0x72,0x10d)]['get'](_0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x4721ac,_0xbea379._0x5b324,0x154)]):void 0x0,_0xa4c721=_0x995747?this[_0xa78179(_0xbea379._0x125d6e,0x234,_0xbea379._0x36862a,_0xbea379._0x143ded)][_0x210bc2(0x24f,_0xbea379._0x12aea2,_0xbea379._0x258871,_0xbea379._0x5c7cd1)](_0x995747):void 0x0;_0xa4c721&&typeof _0x1e40cf['arguments']===_0xa78179(0x137,_0xbea379._0x496a14,0xef,_0xbea379._0x5ba85f)&&(_0xa4c721[_0xa78179(_0xbea379._0x2a5b46,_0xbea379._0x46f466,_0xbea379._0x2bd1d9,_0xbea379._0x4d74a9)][_0xa78179(_0xbea379._0x5561c0,0xaa,_0xbea379._0x4be824,0xe0)]=_0x1e40cf['arguments']);break;}case _0xa78179(0xae,-0x11,_0xbea379._0x107d5e,_0xbea379._0x56fc84):{const _0x158a7d=typeof _0x1e40cf['output_index']===_0xa78179(0x143,0x1fa,_0xbea379._0x4ff45e,0x137)?_0x1e40cf['output_index']:void 0x0,_0x27d61d=_0x1e40cf[_0xa78179(_0xbea379._0x41af51,_0xbea379._0x44db9e,_0xbea379._0x26e799,0x208)];if(_0x27d61d?.[_0xa78179(0x13e,_0xbea379._0x498cda,0x157,0x1c4)]===_0x210bc2(_0xbea379._0x5471db,_0xbea379._0x2bcb36,_0xbea379._0x3e6722,_0xbea379._0x995e40)){const _0x375f04=_0x27d61d[_0xa78179(_0xbea379._0x1f208f,0x160,0xa8,0x16e)]??(_0x158a7d!==void 0x0?this['outputIndexToCallId'][_0xa78179(0x23a,0x29e,_0xbea379._0x303c65,0x267)](_0x158a7d):void 0x0),_0x11e61d=_0x375f04?this[_0xa78179(_0xbea379._0x125d6e,0x184,0x17a,_0xbea379._0x3eae80)][_0x210bc2(_0xbea379._0x53d6eb,0x2a9,0x1d3,_0xbea379._0x4a073e)](_0x375f04):void 0x0;_0x11e61d&&typeof _0x27d61d['arguments']==='string'&&(_0x11e61d[_0x210bc2(_0xbea379._0x462d4d,0x27b,_0xbea379._0xb47d23,_0xbea379._0x12e26c)][_0x210bc2(_0xbea379._0x3c35c2,_0xbea379._0x4f9769,_0xbea379._0xd17512,0x6a)]=_0x27d61d[_0x210bc2(0x12e,_0xbea379._0x4f663f,0x198,_0xbea379._0x5d8eb2)]);break;}if(_0x27d61d?.[_0x210bc2(0x153,_0xbea379._0x5b1078,0x172,0x117)]===_0xa78179(_0xbea379._0x19060f,0x14a,_0xbea379._0x19fc83,0x10f)&&_0x27d61d['id']){const _0x6b4e56=this[_0x210bc2(0x14f,_0xbea379._0x4a1a04,0x129,_0xbea379._0x363008)](_0x27d61d['id'],_0x158a7d);typeof _0x27d61d[_0x210bc2(0xbe,_0xbea379._0x9767b,_0xbea379._0x2ce940,_0xbea379._0x58210d)]==='string'&&(_0x6b4e56['encryptedContent']=_0x27d61d[_0xa78179(_0xbea379._0x6b11d7,0x54,_0xbea379._0x5c8f6b,0x65)]);if(Array[_0x210bc2(0x1d2,_0xbea379._0x4a90e8,0x18c,_0xbea379._0xda1616)](_0x27d61d[_0x210bc2(_0xbea379._0x3e3885,_0xbea379._0x208183,_0xbea379._0x27094b,0x157)]))for(let _0x189491=0x0;_0x189491<_0x27d61d[_0x210bc2(_0xbea379._0x3e3885,_0xbea379._0x460b5d,_0xbea379._0x54250c,_0xbea379._0x5ac8d8)][_0x210bc2(_0xbea379._0x3c5594,0x1c8,0x24f,0x141)];_0x189491+=0x1){const _0x554016=_0x27d61d[_0x210bc2(0x137,0x17e,0x1f0,_0xbea379._0x2304e4)][_0x189491];_0x554016[_0x210bc2(0x153,_0xbea379._0x27a5b4,_0xbea379._0x186176,_0xbea379._0x29fdec)]==='summary_text'&&typeof _0x554016[_0xa78179(0x197,0x25b,_0xbea379._0x541323,0x138)]==='string'&&_0x6b4e56[_0xa78179(_0xbea379._0x577b57,_0xbea379._0x58c329,_0xbea379._0x1ab84b,_0xbea379._0x42ca02)][_0xa78179(_0xbea379._0x52acf0,0x250,_0xbea379._0x14473f,_0xbea379._0x4945f6)](_0x189491,_0x554016[_0x210bc2(_0xbea379._0x21983a,_0xbea379._0x3bebb4,_0xbea379._0x2a206f,_0xbea379._0x9e06be)]);}typeof _0x27d61d[_0x210bc2(0x1ac,0x137,0x212,0xfa)]===_0xa78179(_0xbea379._0x3e3885,_0xbea379._0x55e5ba,_0xbea379._0x5c70c2,_0xbea379._0x145481)&&_0x6b4e56['textByIndex'][_0xa78179(0x222,0x178,_0xbea379._0x4cc415,_0xbea379._0x3c5594)](0x0,_0x27d61d[_0xa78179(0x197,0x162,0xfb,0x147)]);}break;}case _0x210bc2(0x141,0xcc,0x1a8,_0xbea379._0x32b5d3):{const _0x484ec1=typeof _0x1e40cf[_0x210bc2(_0xbea379._0x311d90,0x19e,_0xbea379._0x4bec25,0xa1)]==='string'?_0x1e40cf[_0xa78179(0xf8,0xd6,_0xbea379._0x22c749,0x167)]:'',_0x43f3c6=typeof _0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,0x191,_0xbea379._0x1b8f84,0xf0)]===_0x210bc2(0x14c,_0xbea379._0x12b620,_0xbea379._0x1ea093,_0xbea379._0x2bba24)?_0x1e40cf['item_id']:typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0x57c1a0,0x20f,0x27a)]==='number'?this[_0x210bc2(_0xbea379._0x4c9994,_0xbea379._0x455bd6,0x2a5,0x1a0)][_0xa78179(_0xbea379._0x3ee003,_0xbea379._0x32d7a8,0x2ac,_0xbea379._0x23373f)](_0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,0x133,0x133,_0xbea379._0x25b803)]):void 0x0,_0x456917=typeof _0x1e40cf[_0xa78179(0x1f9,_0xbea379._0x43a769,0x20f,_0xbea379._0x55fe3c)]==='number'?_0x1e40cf[_0x210bc2(_0xbea379._0x468f42,0x207,_0xbea379._0x577dd0,0x214)]:0x0,_0x7d53d6=typeof _0x1e40cf[_0xa78179(0x191,0xe2,_0xbea379._0x51dec7,0x239)]===_0x210bc2(0x158,_0xbea379._0x5d3eec,0x111,0x221)?_0x1e40cf['summary_index']:0x0;if(_0x43f3c6&&_0x484ec1[_0x210bc2(0x1c6,0x125,0x125,0x24f)]>0x0){const _0x513de0=this[_0xa78179(_0xbea379._0xe4905b,_0xbea379._0x995e40,_0xbea379._0x3d0be4,_0xbea379._0x3cb942)](_0x43f3c6,_0x456917);_0x513de0[_0xa78179(_0xbea379._0x5fffe3,_0xbea379._0xfcc8b1,_0xbea379._0x460b5d,0x1c8)]['set'](_0x7d53d6,''+(_0x513de0[_0x210bc2(0x17e,_0xbea379._0xa60fad,0x183,0x14e)][_0x210bc2(0x24f,_0xbea379._0x55c480,_0xbea379._0x2244b3,_0xbea379._0x409dc7)](_0x7d53d6)??'')+_0x484ec1);if(isUserVisibleReasoning(this['request']))return[{'type':_0x210bc2(_0xbea379._0x487af5,0x1b9,_0xbea379._0x40ae50,_0xbea379._0x4da3c9),'delta':_0x484ec1,'itemId':_0x43f3c6,'outputIndex':_0x456917,'summaryIndex':_0x7d53d6}];}break;}case'response.reasoning_summary_text.done':{const _0x2f5a0b=typeof _0x1e40cf[_0x210bc2(0x16e,_0xbea379._0x210c6d,0x1c5,0x22e)]===_0x210bc2(0x14c,0x202,_0xbea379._0x98e69b,0x18f)?_0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,_0xbea379._0xf19723,_0xbea379._0x142bcc,0xb7)]:typeof _0x1e40cf[_0x210bc2(_0xbea379._0x59af78,_0xbea379._0x1b1b67,0x21f,0x18d)]==='number'?this[_0xa78179(_0xbea379._0x46aac3,0x282,_0xbea379._0x340e65,0x22e)][_0xa78179(_0xbea379._0x3ee003,0x2e8,_0xbea379._0x2d240a,0x24b)](_0x1e40cf['output_index']):void 0x0,_0x7c22c3=typeof _0x1e40cf[_0x210bc2(0x20e,_0xbea379._0xc68a03,0x1d1,0x148)]===_0xa78179(0x143,_0xbea379._0x47ee98,_0xbea379._0x2f20dc,_0xbea379._0x4be824)?_0x1e40cf[_0xa78179(_0xbea379._0x1b598a,0x237,0x141,_0xbea379._0x1c8db2)]:0x0,_0x478976=typeof _0x1e40cf[_0x210bc2(0x1a6,0x207,0xf5,_0xbea379._0x126a7c)]==='number'?_0x1e40cf[_0x210bc2(_0xbea379._0x5bea9a,_0xbea379._0xa60fad,_0xbea379._0x5b5b34,_0xbea379._0x563843)]:0x0,_0x3099d9=typeof _0x1e40cf[_0x210bc2(_0xbea379._0x583338,_0xbea379._0x4945f6,0x125,0xe8)]===_0xa78179(_0xbea379._0x3e3885,_0xbea379._0x1ee413,_0xbea379._0x239f37,_0xbea379._0xdcd08c)?_0x1e40cf[_0x210bc2(0x1ac,_0xbea379._0x13774a,_0xbea379._0xd1d152,0x125)]:'';_0x2f5a0b&&this[_0xa78179(_0xbea379._0xfc8f94,0xa5,0xa8,_0xbea379._0x3d775c)](_0x2f5a0b,_0x7c22c3)[_0xa78179(0x169,0x1f4,0x175,_0xbea379._0x5d4e14)][_0xa78179(_0xbea379._0x24b565,_0xbea379._0x171f8d,_0xbea379._0x28e969,0x2a5)](_0x478976,_0x3099d9);break;}case _0x210bc2(_0xbea379._0x1b5cdc,0x103,0x110,0x1fa):{const _0x193e78=typeof _0x1e40cf[_0xa78179(_0xbea379._0x20280c,_0xbea379._0x496a14,0xb6,_0xbea379._0x57bf4e)]===_0xa78179(_0xbea379._0x6b6d55,0x17e,_0xbea379._0x210c6d,0xcd)?_0x1e40cf['delta']:'',_0x1def8e=typeof _0x1e40cf[_0xa78179(0x159,0xc0,0xf7,_0xbea379._0x1ce9ec)]===_0x210bc2(0x14c,0x1bf,0x16a,_0xbea379._0x44719c)?_0x1e40cf[_0xa78179(_0xbea379._0x2b7fe5,0x15c,0x200,0x119)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1b598a,_0xbea379._0x5cb762,0x16c,0x1a1)]==='number'?this['outputIndexToReasoningId'][_0x210bc2(0x24f,_0xbea379._0x25d905,_0xbea379._0x1eee9b,_0xbea379._0x4f701e)](_0x1e40cf['output_index']):void 0x0,_0x44e810=typeof _0x1e40cf['output_index']===_0xa78179(0x143,_0xbea379._0x2341b9,0x17c,_0xbea379._0x494fab)?_0x1e40cf[_0x210bc2(_0xbea379._0x216bc8,0x1ea,_0xbea379._0x4945f6,_0xbea379._0x50be61)]:0x0,_0x5d7b61=typeof _0x1e40cf[_0xa78179(0xf1,0x1a5,0x1a0,0x10d)]==='number'?_0x1e40cf[_0x210bc2(0x106,0x181,0xf1,_0xbea379._0x397b43)]:0x0;if(_0x1def8e&&_0x193e78['length']>0x0){const _0x1fcbc3=this['getOrCreateReasoningItem'](_0x1def8e,_0x44e810);_0x1fcbc3[_0xa78179(_0xbea379._0x103005,0x12c,_0xbea379._0x143ded,0xf2)][_0xa78179(0x222,0x200,0x24d,_0xbea379._0xac32)](_0x5d7b61,''+(_0x1fcbc3[_0x210bc2(_0xbea379._0x1b8d95,_0xbea379._0x140b49,_0xbea379._0x5265a1,0x236)][_0xa78179(_0xbea379._0x3957fa,0x2e5,_0xbea379._0x265a7c,_0xbea379._0x16286e)](_0x5d7b61)??'')+_0x193e78);if(isUserVisibleReasoning(this[_0xa78179(_0xbea379._0x379f52,_0xbea379._0x52204f,_0xbea379._0x3fbf2e,_0xbea379._0xfcc8b1)]))return[{'type':_0x210bc2(0x136,_0xbea379._0x2c0f8c,_0xbea379._0x5d4e14,0x6e),'contentIndex':_0x5d7b61,'delta':_0x193e78,'itemId':_0x1def8e,'outputIndex':_0x44e810}];}break;}case _0x210bc2(_0xbea379._0x1d676d,_0xbea379._0x11674f,0x27a,_0xbea379._0x56d30f):{const _0x43cef1=typeof _0x1e40cf[_0x210bc2(0x16e,0xc6,0x134,_0xbea379._0x566837)]===_0x210bc2(_0xbea379._0xd39a0f,_0xbea379._0x395b60,_0xbea379._0x52e386,0x216)?_0x1e40cf[_0x210bc2(_0xbea379._0x497e2c,0x182,0x160,0x181)]:typeof _0x1e40cf[_0xa78179(_0xbea379._0x1a09c6,_0xbea379._0x10a9f7,_0xbea379._0x6b6d55,_0xbea379._0x598d7d)]===_0x210bc2(_0xbea379._0x569afc,0x192,_0xbea379._0x563a79,0xd8)?this['outputIndexToReasoningId']['get'](_0x1e40cf[_0x210bc2(_0xbea379._0x5c0b40,0x1f4,0x184,0x1e1)]):void 0x0,_0x6792c6=typeof _0x1e40cf[_0xa78179(_0xbea379._0x1b598a,0x169,_0xbea379._0x439827,_0xbea379._0x1af25e)]==='number'?_0x1e40cf['output_index']:0x0,_0x237369=typeof _0x1e40cf[_0xa78179(0xf1,0xee,_0xbea379._0x2b8873,_0xbea379._0x145481)]===_0x210bc2(_0xbea379._0x4cde81,_0xbea379._0x2c0a48,_0xbea379._0x57713b,_0xbea379._0xc2fb9e)?_0x1e40cf[_0xa78179(0xf1,0xd3,0x102,_0xbea379._0x5d9a44)]:0x0,_0x2ccdc4=typeof _0x1e40cf[_0xa78179(_0xbea379._0x5e2e2e,_0xbea379._0x49c081,0x202,0x1a4)]===_0x210bc2(0x14c,0x1ae,_0xbea379._0x4ba108,0x1ee)?_0x1e40cf['text']:'';_0x43cef1&&this[_0x210bc2(0x14f,0x14c,0x20b,_0xbea379._0x58c329)](_0x43cef1,_0x6792c6)['textByIndex']['set'](_0x237369,_0x2ccdc4);break;}case'response.completed':{this[_0xa78179(0x139,_0xbea379._0x243d6e,0x9b,0xe9)]=_0x1e40cf[_0x210bc2(_0xbea379._0x4da261,0x167,_0xbea379._0x43101b,_0xbea379._0x18bc15)];break;}case'response.failed':{const _0x152a3d=_0x1e40cf[_0x210bc2(_0xbea379._0x4da261,0xf0,_0xbea379._0x55e5ba,_0xbea379._0xe40850)];throw new ProviderStreamEventError(_0x152a3d?.[_0x210bc2(_0xbea379._0x873951,0xeb,0x158,0x139)]?.[_0x210bc2(0x1f2,0x29a,_0xbea379._0x3d0e60,_0xbea379._0x4998ae)]??'Responses\x20stream\x20failed',{'code':_0x152a3d?.['error']?.[_0x210bc2(_0xbea379._0x2708c6,0xcc,0x186,0xe9)],'retryable':!![]});}case'error':{const _0x3e665b=_0x1e40cf[_0x210bc2(_0xbea379._0x3ee1c9,_0xbea379._0x22c5ce,0x214,_0xbea379._0x2adec5)];throw new ProviderStreamEventError(_0x3e665b?.[_0x210bc2(0x1f2,0x1aa,0x237,_0xbea379._0x4f05d2)]??_0xa78179(_0xbea379._0xc75ae2,0x202,0x222,0x1c7),{'code':_0x3e665b?.[_0xa78179(_0xbea379._0x587166,0x17d,0x8,0x61)],'retryable':!![],'status':typeof _0x1e40cf[_0x210bc2(0xd4,_0xbea379._0x49c081,0x31,0x47)]===_0x210bc2(0x158,0xb9,_0xbea379._0xe4e5b0,0xab)?_0x1e40cf[_0xa78179(_0xbea379._0x40c440,0x76,_0xbea379._0x3c0007,_0xbea379._0x55ac20)]:void 0x0});}}return[];}['buildPartialOutput'](){const _0x378cc1={_0x583997:0x4d1,_0x1cce1d:0x536,_0x57c607:0x5d7,_0x4560eb:0x1d2,_0x2a8c0c:0x4b,_0x35c15b:0x15b,_0x21a45b:0x16f,_0x57d089:0x47,_0x3ebdb7:0x59,_0xc3f8c4:0xb,_0x5cb376:0x3f,_0x22f241:0xe1,_0xbd4b6f:0x18a,_0x56dec4:0xe9,_0x209fb1:0x4ba,_0x6c8d78:0x4bc,_0x4f25f7:0x53f,_0x57a56:0x556,_0x6ab8b6:0x74,_0x3cf3bc:0x8a,_0x5a9100:0x25,_0x30bc5a:0x6b,_0x1a57b3:0x4c6,_0x555036:0x5dc,_0x25e254:0x5b6,_0x2dad98:0xd8,_0x4bc25b:0x6b,_0xac57d6:0x586,_0x27dc80:0x517,_0x37393c:0x40a,_0x4742cb:0x580,_0x433189:0x67f,_0x4f9a0c:0x5ce,_0x51b984:0x515,_0x36e9a7:0x55c,_0x41d749:0x493,_0x40832f:0x1e4,_0x447922:0x13e,_0x2ea572:0xf1,_0x54bd76:0x14a,_0x16c4f8:0xce,_0x470a56:0x22,_0x1ffc4c:0x63,_0x5e694f:0xf2,_0xe42e7f:0x15e,_0x689dcb:0x172,_0x3c2765:0x5ea,_0x5e4ddb:0x5a1,_0x2fa24c:0xad,_0x1c4ab9:0x155,_0x56e574:0x5c7,_0x141a1e:0x4cd,_0x2bd47f:0x575,_0x4ba5b9:0x649,_0x515c6f:0x5ce,_0x49100e:0x5a9,_0x454256:0x4e6,_0x2bd864:0x52b},_0x422fab={_0x4d2859:0x49b,_0x259040:0x13d},_0x3d59b4={_0x1e9845:0x2d6,_0x49b8e9:0x27d,_0xd3898d:0x2f2},_0x555282={_0x1faa75:0xb0,_0x366029:0x2aa},_0x228b04={_0x426679:0x1b},_0x270563=[];for(const [_0x4add10,_0x35325f]of this['responseTextParts']['entries']()){const _0x50c66e=_0x35325f[_0x40501c(0x51b,0x429,_0x378cc1._0x583997,0x4b2)]('');if(_0x50c66e[_0x40501c(0x565,_0x378cc1._0x1cce1d,0x587,_0x378cc1._0x57c607)]===0x0)continue;_0x270563[_0x24d68d(0x18b,0x83,_0x378cc1._0x4560eb,0x114)]({'index':_0x4add10,'item':{'type':_0x24d68d(_0x378cc1._0x2a8c0c,_0x378cc1._0x35c15b,0x6f,0x115),'role':_0x24d68d(_0x378cc1._0x21a45b,0x198,0x203,0x13b),'content':[{'type':_0x24d68d(-0x8f,-_0x378cc1._0x57d089,-_0x378cc1._0x3ebdb7,0x13),'text':_0x50c66e}]}});}function _0x24d68d(_0x50ab14,_0x30bc97,_0x1fe793,_0x4c4ecc){return _0x4d4006(_0x1fe793,_0x30bc97-_0x228b04._0x426679,_0x4c4ecc- -0x3,_0x4c4ecc-0x185);}for(const _0xe3b14b of this['reasoningItems']['values']()){_0x270563['push']({'index':_0xe3b14b[_0x24d68d(_0x378cc1._0xc3f8c4,-_0x378cc1._0x5cb376,_0x378cc1._0x22f241,0x6d)]??_0x270563[_0x24d68d(0xd9,0x18a,_0x378cc1._0xbd4b6f,_0x378cc1._0x56dec4)],'item':{'type':'reasoning','id':_0xe3b14b['id'],..._0xe3b14b[_0x40501c(0x454,0x49a,0x4f0,_0x378cc1._0x209fb1)]?{'encrypted_content':_0xe3b14b['encryptedContent']}:{},..._0xe3b14b[_0x40501c(_0x378cc1._0x6c8d78,0x530,_0x378cc1._0x4f25f7,_0x378cc1._0x57a56)][_0x24d68d(_0x378cc1._0x6ab8b6,-_0x378cc1._0x3cf3bc,-0x1e,0x1e)]>0x0?{'summary':Array[_0x24d68d(-_0x378cc1._0x5a9100,_0x378cc1._0x30bc5a,0x11b,0x7c)](_0xe3b14b[_0x40501c(_0x378cc1._0x1a57b3,_0x378cc1._0x555036,0x53f,_0x378cc1._0x25e254)][_0x24d68d(0xf2,_0x378cc1._0x2dad98,0xde,_0x378cc1._0x4bc25b)]())['sort']((_0x53c0ca,_0x409946)=>_0x53c0ca[0x0]-_0x409946[0x0])['map'](([,_0x1172a6])=>{function _0x255118(_0x1a3e59,_0x31325d,_0x559c55,_0x35e9a2){return _0x24d68d(_0x1a3e59-_0x555282._0x1faa75,_0x31325d-0x162,_0x1a3e59,_0x559c55- -_0x555282._0x366029);}return{'type':_0x255118(-0x231,-_0x3d59b4._0x1e9845,-_0x3d59b4._0x49b8e9,-_0x3d59b4._0xd3898d),'text':_0x1172a6};})}:{},..._0xe3b14b[_0x40501c(_0x378cc1._0xac57d6,0x50c,0x580,_0x378cc1._0x27dc80)][_0x40501c(0x42f,_0x378cc1._0x37393c,0x4bc,0x4af)]>0x0?{'text':Array['from'](_0xe3b14b[_0x40501c(0x57d,0x5a0,_0x378cc1._0x4742cb,0x5e5)]['entries']())[_0x40501c(_0x378cc1._0x433189,0x62a,_0x378cc1._0x4f9a0c,0x663)]((_0x251ee4,_0x49a2e9)=>_0x251ee4[0x0]-_0x49a2e9[0x0])['map'](([,_0x4468a1])=>_0x4468a1)['join']('')}:{}}});}function _0x40501c(_0x3de6f2,_0x356976,_0x418c31,_0x2e2127){return _0x4d4006(_0x356976,_0x356976-0x1e2,_0x418c31-_0x422fab._0x4d2859,_0x2e2127-_0x422fab._0x259040);}for(const _0x4e28f8 of this[_0x40501c(0x5c2,_0x378cc1._0x51b984,_0x378cc1._0x36e9a7,_0x378cc1._0x41d749)][_0x24d68d(0xfe,0x128,_0x378cc1._0x40832f,_0x378cc1._0x447922)]()){_0x270563[_0x24d68d(0xa0,_0x378cc1._0x2ea572,_0x378cc1._0x54bd76,0x114)]({'index':this[_0x24d68d(_0x378cc1._0x16c4f8,0x34,-_0x378cc1._0x470a56,_0x378cc1._0x1ffc4c)][_0x24d68d(_0x378cc1._0x5e694f,0x20f,_0x378cc1._0xe42e7f,_0x378cc1._0x689dcb)](_0x4e28f8['id'])??_0x270563['length'],'item':{'type':'function_call','call_id':_0x4e28f8['id'],'name':_0x4e28f8[_0x40501c(_0x378cc1._0x3c2765,0x58d,0x575,_0x378cc1._0x5e4ddb)][_0x24d68d(_0x378cc1._0x2fa24c,0x15d,0x213,_0x378cc1._0x1c4ab9)],'arguments':_0x4e28f8[_0x40501c(_0x378cc1._0x56e574,_0x378cc1._0x141a1e,_0x378cc1._0x2bd47f,0x5e7)]['arguments']}});}return _0x270563[_0x40501c(0x57f,_0x378cc1._0x4ba5b9,_0x378cc1._0x515c6f,_0x378cc1._0x49100e)]((_0x259770,_0x728e63)=>_0x259770[_0x40501c(0x4dc,0x490,0x4fc,0x546)]-_0x728e63['index'])[_0x40501c(0x53f,0x539,_0x378cc1._0x454256,_0x378cc1._0x2bd864)](_0x4ff190=>_0x4ff190['item']);}[_0x4d4006(0x128,0x135,0x75,0x116)](_0x2d269f,_0x4315f3){const _0x2dde5a={_0x4a31e0:0x276,_0x31316c:0x1da,_0x109b44:0x222,_0x515f77:0xc1,_0x5d975c:0x15b,_0x74d305:0x44,_0x3bf0bd:0xd8,_0x2c1685:0x7c,_0x1a4225:0x5e,_0x17ae9b:0x28c,_0x52f758:0x199,_0x330688:0x32a,_0x454751:0x262},_0x46c5fd={_0x1942dd:0x14,_0x528d23:0x10f},_0x451306={_0x12b072:0x125,_0x1bf4e6:0x42},_0x105979=this[_0x1d6a9b(_0x2dde5a._0x4a31e0,_0x2dde5a._0x31316c,0x28d,_0x2dde5a._0x109b44)][_0xcfc3e4(_0x2dde5a._0x515f77,0x175,0x11a,_0x2dde5a._0x5d975c)](_0x2d269f);if(_0x105979)return _0x4315f3!==void 0x0&&(_0x105979[_0xcfc3e4(-_0x2dde5a._0x74d305,0x4e,-_0x2dde5a._0x3bf0bd,-0xc9)]=_0x4315f3,this[_0xcfc3e4(0x6f,_0x2dde5a._0x2c1685,0x9c,_0x2dde5a._0x1a4225)][_0x1d6a9b(0x281,0x262,_0x2dde5a._0x17ae9b,_0x2dde5a._0x52f758)](_0x4315f3,_0x2d269f)),_0x105979;function _0xcfc3e4(_0x12289d,_0x4cfc9b,_0x18ddd6,_0x509555){return _0x18006e(_0x12289d-_0x451306._0x12b072,_0x4cfc9b-_0x451306._0x1bf4e6,_0x12289d- -0xed,_0x18ddd6);}const _0x1cd1ec={'id':_0x2d269f,'outputIndex':_0x4315f3,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x1d6a9b(0x194,0x1da,0x158,0x1fe)]['set'](_0x2d269f,_0x1cd1ec);_0x4315f3!==void 0x0&&this[_0x1d6a9b(0x1c5,0x228,0x2ba,0x2c8)][_0x1d6a9b(_0x2dde5a._0x330688,_0x2dde5a._0x454751,0x30f,0x2f1)](_0x4315f3,_0x2d269f);function _0x1d6a9b(_0x146ca7,_0x4884a2,_0x416f2d,_0x55e1f7){return _0x18006e(_0x146ca7-_0x46c5fd._0x1942dd,_0x4884a2-_0x46c5fd._0x528d23,_0x4884a2-0xcc,_0x416f2d);}return _0x1cd1ec;}};function createOpenAiResponsesStreamParser(_0x28ca6c){return new OpenAiResponsesStreamParser(_0x28ca6c);}function _0x521a(){const _0x433da0=['AM9PBG','Aw52ywXPzgf0zq','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','D2vIC29JA2v0','C3vWCg9YDgvKrw5KCg9PBNrZ','C29Tzq','y2XVC2u','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','DMLZAwjPBgL0Eq','yxbWBgLJyxrPB24VANnVBG','DgHPBMTPBMC','Ahr0Cc1QC29U','zwzMB3j0','C3vYzMfJzq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','w0rptKvD','zM9Yy2vgDwXSuMvWBgf5','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','zMLUza','C3rYzwfTvMLHuM91DgvY','mJaYns0Xmc0Wmq','BwfW','Dg9tDhjPBMC','AgfZ','CM91DgvY','yxbP','CM9Szq','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','mtm3ntu2mgnvt1jfyq','z2v0tw9KzwXZ','yxjNDw1LBNrZ','zw5JCNLWDgvKq29UDgvUDa','CMvZB2X2zujHC2vvCMW','DxnLCI12AxnPyMXL','qMfZAa','CMvZCg9UC2u','y2HHDgnTCgWT','Aw5WDxrFC2nOzw1H','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','C3vTBwfYEq','DxrMltG','ywjVCNrLza','CMvZB2X2zunYzwrLBNrPywW','Aw5KzxG','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','Dg9VBf91C2u','C291CMnL','zw5Kx3r1CM4','y2fSBeLKvg9pDxrWDxrjBMrLEa','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','Dgv4DfbHCNrZ','BwvKAwfFDhLWzq','z2L0AhvIqxbPvxjS','Dg9VBhm','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','zw50CMLLCW','y29UC3vTzuv2zw50','B3v0Chv0sw5KzxG','B2jQzwn0','C3rYAw5N','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','zMLUywXszxnWB25Zzq','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','zxzLBNq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','zNvUy3rPB25Fy2fSBa','DhLWzq','CMvZCg9UC2vjza','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','BwvZC2fNzuLK','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','BNvTyMvY','zNjVBq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','y2HVAwnLCW','y29TCgXLDgvK','yxbPlwTLEq','Aw5WDxq','C2HPzNq','C2vZC2LVBKLK','C3rHDhvZvgv4Da','CgvUzgLUzW','Aw5WDxruB2TLBNm','zMv0y2HjBxbS','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','CMvXDwvZDa','CMvKywn0zwrFDgHPBMTPBMC','CMvZB2X2zq','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','AxrLBv9Pza','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','yxv0AfnJAgvTzq','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','BgLTAxrZ','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','CMvZB2X2zxi','C2vZC2LVBG','ChjVDg9JB2XwzxjZAw9U','C3rVCfjLyxnVBG','B3bLBG','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','l3jLC3bVBNnLCW','ChjVDMLKzxjtDgf0zq','D3nZoG','C3vTBwfYEuj5sw5KzxG','yw50AhjVCgLJrgvSzwDHDgu','DMfSDwu','CMvHC29UAw5NugfYDhm','o2jHC2u2ncW','ywnJzxnZvg9Rzw4','DhjHBNnWB3j0','Dg9VBenHBgXpCMrLCG','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','zxjYB3i','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','D3m6','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C3rYzwfT','C3rYzwfTvMLHu3vYzMfJzq','zgvJB2rL','y3jLyxrLuMvXDwvZDa','yxv0Ag9YAxPHDgLVBG','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvZCg9UC2vtB2nRzxrtDhjLyw0','zgf0yq','ChjLCgfYzunOyxrszxf1zxn0','CMvHC29UAw5Nx2nVBNrLBNq','D2fPDezVCLjLDhj5','z2v0uMv0CNLezwXHEu1Z','AxneB25L','yNvKz2v0vg9Rzw5Z','Bwv0ywrHDge','Dg9VBenHBgXZ','y29UDgvUDa','mZm1mJiXnwfNzLrZwa','C3rYAw5NAwz5','ChjVDg9JB2W','C3bSAxq','zMv0y2G','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','t3bLBKfjiefqssbLCNjVCIa','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','C3vTBwfYEv9PBMrLEa','B3v0Chv0vg9Rzw5Z','Dg9VBf91C2vFAwq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','CMvMDxnHBa','Aw5JBhvKzunVBNrLBNruExbL','Dgv4Da','zgf0ytO','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','CMvHC29UAw5NsxrLBxm','CMvHC29UAw5N','y29TCgXLDgvwAwftDxjMywnL','AxngAw5PDgu','CMv0CNKTywz0zxi','zNvUy3rPB24','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvHC29U','y2fUy2vS','C2HVDwXKuMv0CNLszxnWB25Zzq','ywDLBNq','Aw5PDgLHBev2zw50','Dg9VBf9JywXSCW','Dg9VBf9Yzxn1Bhq','BwvZC2fNzv9ZDgfYDa','y29TCgXLDgu','Dgv4Dej5sw5KzxG','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','AgvHzgvYuMvZB2X2zxi','Aw5WDxrFDgv4Da','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','zgvSzxrL','BgvUz3rO','Dg9VBfvZzvn0yxj0rw1PDhrLza','z2v0uMvHzgvY','y2fWywjSzv9LBMrWB2LUDhm','Aw5JBhvKzxm','CMvXDwvZDhm','B3bLBMfPx3jLyxnVBMLUzW','Ahr0Cc1ZC2u','C2LNBMfS','CMvHzhLtDgf0zq','C3rHCNrZv2L0Aa','odmWBuHquuTR','AxnbCNjHEq','D2vIu29JA2v0rMfJDg9YEq','Aw1Hz2u','Bwf4x291Dhb1Df90B2TLBNm','C2XPy2u','qMvHCMvYia','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','zMLUAxnOx3jLyxnVBG','Cgf0Aa','r2L0shvIiefqssbLCNjVCIa','y29UC3vTzvDLyLnVy2TLDev2zw50','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','ywnJzxb0','Aw5KzxHpzG','DNnJB2rLlZeUmta2lJe','y3jLyxrLsgvHzgvYCW','yxv0BW','AxrLBq','y2HHDenVBxbSzxrPB25Zugf0Aa','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Aw5WDxrFANnVBL9KzwX0yq','yMfZzvvYBa','t3bLBKfPqxbPrxjYB3i','C2vUza','y29UC3vTzvnZzuv2zw50','yxbPs2v5','z3b0ltrV','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','C3rVCf9YzwfZB24','B3bLBMfPlxjLC3bVBNnLCY13CW','ChvZAa','BwvZC2fNzq','DNnJB2rLlZeUmta0lJi','A2LUza','zNjVBuvUDhjPzxm','mZCXndnXsMfsCKG','Dg9VBc1JywXSlq','B3jPz2LUlxrYywnRzxi','Dg9VBenHBgXZqNLjBMrLEa','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','CMv0CNLHyMXL','yMvHCMvY','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','y29UDgvUDf9KzwX0yq','C3vYzMfJzxm','DxnHz2u','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','CMvXDwvZDe11Dgf0B3jZ','CMvHC29UAw5Nx3rLEhq','DhjPBq','ywrK','Aw1Hz2vFDxjS','ue9tva','Bw9KzwXfBMrWB2LUDenHy2HL','yw50AhjVCgLJlxzLCNnPB24','Ec1HCgKTA2v5','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','y29UBMvJDgLUzW','C29YDa','B3v0Chv0x2LUzgv4','DhjPBvn0yxj0','ChjVEhK','DgHPBMTPBMDFzgvSDge','C2LNBMf0DxjLx2rLBhrH','y2f0y2G','y2HHDfn0CMvHBq','odG4mte4ngfSAgHbBa','DgHLBG','C2vUzfDPDgHszxrYAwvZ','yxnZAxn0yw50','y2HHDenVBxbSzxrL','l2nOyxqVy29TCgXLDgLVBNm','DMfSDwvZ','DxnLC1jLC3bVBNnLC0fWAq','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Bw9JAW','ntCZngfJz2rZvG','zg9Uzq','C3LZDgvT','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','B3bLBMfPlxjLC3bVBNnLCW','y29TCgXLDgvtDxjMywnL','B3bLBKfPrgvSzwDHDgu','r0vu','zMLUAxnO','ChjLDMLVDxnszxnWB25ZzuLK','nJC2mJbUs0TzqLq','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','zw5KCg9PBNrZ','Bwv0Ag9K','C3rYzwfTu3vYzMfJzq','y29TCgXLDgvwAwfsB3v0zxi','Dg9bCgLfCNjVCG','yNvPBgrqyxj0AwfSt3v0Chv0','AgvHzgvYCW','BMfTzq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','CMvZCg9UC2vuzxH0ugfYDhm','zgvZy3jPChrPB24','y2fJAgvK','C2v0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C2vSzwn0u3vYzMfJzq','BM93','y29TCgXLDgLVBL90B2TLBNm','ANnVBG','yxbWBhLnB2rLBerLzMf1BhrZ','Bwf4vg9Rzw5Z','BxnNlq','yw50AhjVCgLJx3rOAw5RAw5N','y2HHDgnTCgW','B3v0Chv0x3rVA2vUCW','yMXVy2TZ','oNjLyxnVBMLUzZOW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','y3jLyxrLu3rYzwfTugfYC2vY','ywjVCNq','nhPotKDcBW','yM9KEq','Aw5WDxrFDg9Rzw5Z','zgLZywjSzwq','y29WAwXVDc1JAgf0lZaUmZeUmW','C3rYzwfTshr0Cfn1CMzHy2u','CgfYDgLHBf9QC29U','z2v0','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','zw5JCNLWDgvKx2nVBNrLBNq','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','Dg9VBf91C2vFzgvSDge','CMvHC29UAw5Nx3rVA2vUCW','mtu4zfzQwuHk','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','C2LNBMf0DxjL','BwvZC2fNzxm','y3jLzgvUDgLHBa','DxnLCG','mJaYmY0WnI0Wmq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','C2vZC2LVBK1HBMfNzxi','ChjVDMLKzxjbzgfWDgvY','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','ywrKrxzLBNrmAxn0zw5LCG','u3vYzMfJzsa','CMvZCg9UC2vZugf0Aa','CMvZCc0','C3rHDhvZ','CMvHC29UAw5Nx2rLDgfPBhm','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CgfYC2u','C29JA2v0','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','nty1odyWCLr5y0vu','BwfWqxbPrxjYB3i','zw5HyMXLza','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','B3v0Chv0','y29Kzq','C3bSAwnL','Bw9Kzq','y29UDgvUDf9IBg9JAW','Aw5WDxrkC29U','DxjS','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','CMvZCg9UC2vtB2nRzxq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Bw9KzwW','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','Dgv4Dc9LDMvUDc1ZDhjLyw0','zwrPDg9YugX1z2LUvMvYC2LVBG','BwvZC2fNzuLUzgv4','CMvZzxq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','B3v0Chv0x3rLEhq','B3v0Chv0sw5KzxHuB0nHBgXjza','y2fSBf9Pza','zxzLBNq6','zMLSDgvY','t1bftG','C3vWCg9YDgvKx2vUzhbVAw50CW','CMvZCg9UC2vtDhjLyw0','BgfZDfjLC3bVBNnLswq','C2vZC2LVBI10B2TLBG','l21VzgvSCW','C2L6zq','C2vUzfjHD1jLCxvLC3q','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','y29UDgvUDf9IBg9JA19ZDgfYDa','CMvZCg9UC2uUy3jLyxrL','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','yw50AhjVCgLJlw1LC3nHz2vZ','z2v0u3vYzMfJzq','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','CMvWBgfJzq','y29UDgvUDf9PBMrLEa','B2f1DgGTDg9Rzw4','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','C3vTBwfYEv90zxH0','z2v0t3bLBKfPrgvSzwDHDgu','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','zgvSDge','y29UBMvJDf9MywLSzwq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq'];_0x521a=function(){return _0x433da0;};return _0x521a();}function createOpenAiSurfaces(_0x3c9c89={}){const _0x3d2925={_0x5e63a9:0x6d8,_0x146267:0x5e8,_0x5ef840:0x55d,_0x28f57e:0x4c0,_0x3246f6:0x599,_0x13d80:0x495,_0x546d31:0x69b,_0x27876a:0x558,_0x337801:0x4ec},_0x2e2b7f={_0xe01fc:0x297,_0xa62a8c:0x2de},_0x2a8355={_0x465bb8:0x28c,_0x19a227:0x1ff,_0xf9fab2:0x306},_0x58968b={_0x138117:0x267},_0x24436c={_0x5afe25:0x92,_0x557054:0x2},_0xb218a7=_0x3c9c89[_0x177195(0x82,0xbd,0x4a,0x23)]??_0x300a9b(0x622,0x64a,0x67a,_0x3d2925._0x5e63a9);function _0x300a9b(_0x5ec720,_0x3aac7e,_0x11e56a,_0x2bd9a1){return _0x18006e(_0x5ec720-_0x24436c._0x5afe25,_0x3aac7e-_0x24436c._0x557054,_0x5ec720-0x4a9,_0x3aac7e);}function _0x177195(_0x322b40,_0x1f31c1,_0x530601,_0x86cafe){return _0x4d4006(_0x530601,_0x1f31c1-0x153,_0x1f31c1- -0x4d,_0x86cafe-0x185);}const _0xe8ac5c=_0x3c9c89['responsesPath']??_0x300a9b(0x583,_0x3d2925._0x146267,_0x3d2925._0x5ef840,_0x3d2925._0x28f57e);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x105452){return{'accept':'application/json','body':createChatRequestBody(_0x105452,![]),'path':_0xb218a7};},'parseResponse'(_0x202014){return parseChatCompletionResponse(_0x202014);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x300a9b(0x5d5,0x627,_0x3d2925._0x3246f6,0x64a),'createRequest'(_0x3253d0){function _0x227d63(_0x5f09ef,_0x2d0684,_0x4c6b4a,_0x32482a){return _0x300a9b(_0x5f09ef- -_0x58968b._0x138117,_0x2d0684,_0x4c6b4a-0x1bc,_0x32482a-0x11);}return{'accept':_0x227d63(_0x2a8355._0x465bb8,_0x2a8355._0x19a227,_0x2a8355._0xf9fab2,0x1c3),'body':createChatRequestBody(_0x3253d0,!![]),'path':_0xb218a7};},'createStreamParser'(_0x42ef96){return new OpenAiChatCompletionsStreamParser(_0x42ef96);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x300a9b(0x523,0x5a1,0x4af,_0x3d2925._0x13d80),'createRequest'(_0xa20850){const _0x496a7b={_0x43303d:0xa8,_0x9068ec:0xa7};function _0x30115b(_0x4f4720,_0x3b2434,_0x16e2ab,_0x17499c){return _0x177195(_0x4f4720-_0x496a7b._0x43303d,_0x16e2ab-0x280,_0x4f4720,_0x17499c-_0x496a7b._0x9068ec);}return{'accept':_0x30115b(_0x2e2b7f._0xe01fc,0x1a7,0x272,_0x2e2b7f._0xa62a8c),'body':createResponsesRequestBody(_0xa20850,![]),'path':_0xe8ac5c};},'parseResponse'(_0x258cab,_0x4f7413){return parseResponsesResponse(_0x258cab,_0x4f7413);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x300a9b(0x5d5,0x668,0x621,_0x3d2925._0x546d31),'createRequest'(_0x24d4a3){return{'accept':'text/event-stream','body':createResponsesRequestBody(_0x24d4a3,!![]),'path':_0xe8ac5c};},'createStreamParser'(_0x3bedda){return new OpenAiResponsesStreamParser(_0x3bedda);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x300a9b(0x51b,0x5aa,_0x3d2925._0x27876a,_0x3d2925._0x337801),'createRequest'(_0x209a57){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x209a57),'path':_0xe8ac5c};},'createStreamParser'(_0x2098ca){return createOpenAiResponsesStreamParser(_0x2098ca);}}];}var OpenAiProviderAdapter=class{['headerResolver'];constructor(_0x390c71){const _0x299762={_0x8f508d:0x1c5},_0x3920d5={_0x249954:0x14b,_0x4cd155:0x21};function _0x2c3ddc(_0x4f1bac,_0x593d4d,_0x12d17b,_0xcef2ff){return _0x18006e(_0x4f1bac-0x126,_0x593d4d-_0x3920d5._0x249954,_0xcef2ff-_0x3920d5._0x4cd155,_0x12d17b);}this[_0x2c3ddc(0x184,0x1cf,_0x299762._0x8f508d,0x141)]=_0x390c71;}[_0x4d4006(0x211,0x223,0x15e,0xba)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async['createHeaders'](_0x1eaedc,_0x4044bb){const _0x5b0468={_0x28b717:0x573,_0x4eed4f:0x5cc,_0x4a9925:0x5a3,_0x5c4893:0x4ff,_0x3ef1bd:0x508,_0x4dec9a:0x8f,_0x175441:0x145,_0x5bea74:0x3f2,_0x2da41d:0x48b,_0xdec50b:0x1ab,_0x929bc0:0x1bd,_0x256856:0x61e,_0x73b8e:0x683,_0x2e4eed:0x32f,_0xd8e97a:0x275,_0x132481:0x362,_0xc83ab8:0x4d5,_0x157c5f:0x5dd,_0x57d3c6:0x53a,_0x440cec:0x5f7,_0x45d15e:0x5c4,_0x24c3f8:0x474,_0x544f35:0x56d},_0x232795={_0x34bf11:0x1d8,_0x5f0b29:0x49f},_0x158658={_0x5a8f1c:0x2db},_0x3c1c28=new Headers();_0x3c1c28['set'](_0x3fb75e(_0x5b0468._0x28b717,0x50b,_0x5b0468._0x4eed4f,_0x5b0468._0x4a9925),_0x4044bb[_0x3fb75e(0x503,_0x5b0468._0x5c4893,_0x5b0468._0x3ef1bd,0x5a3)]);function _0x140157(_0x2fb3ba,_0x380112,_0x56280a,_0x3c404f){return _0x18006e(_0x2fb3ba-0x17c,_0x380112-0x83,_0x3c404f- -_0x158658._0x5a8f1c,_0x56280a);}_0x3c1c28[_0x140157(-_0x5b0468._0x4dec9a,-0xf6,-0x155,-_0x5b0468._0x175441)]('authorization','Bearer\x20'+_0x1eaedc[_0x3fb75e(_0x5b0468._0x5bea74,0x518,0x535,_0x5b0468._0x2da41d)][_0x140157(-0x14e,-_0x5b0468._0xdec50b,-_0x5b0468._0x929bc0,-0x1fc)]);_0x4044bb[_0x140157(-0x28c,-0x12d,-0x22d,-0x1d1)]!==![]&&_0x3c1c28[_0x3fb75e(_0x5b0468._0x256856,0x56c,_0x5b0468._0x73b8e,0x5fc)]('content-type','application/json');function _0x3fb75e(_0x25da47,_0xf4420d,_0x8e36f2,_0xbde560){return _0x4d4006(_0x25da47,_0xf4420d-_0x232795._0x34bf11,_0xbde560-_0x232795._0x5f0b29,_0xbde560-0xab);}const _0x18168f=await this['headerResolver']?.({'body':_0x1eaedc['body'],'credential':_0x1eaedc[_0x140157(-_0x5b0468._0x2e4eed,-_0x5b0468._0xd8e97a,-_0x5b0468._0x132481,-0x2b6)],'request':_0x1eaedc['request'],'session':_0x1eaedc[_0x3fb75e(_0x5b0468._0xc83ab8,0x4a9,_0x5b0468._0x157c5f,_0x5b0468._0x57d3c6)],'stream':_0x1eaedc[_0x3fb75e(_0x5b0468._0x440cec,_0x5b0468._0x45d15e,0x593,0x551)]});for(const [_0x1a7ed0,_0x5215a3]of Object[_0x3fb75e(0x4ce,_0x5b0468._0x24c3f8,_0x5b0468._0x544f35,0x50d)](_0x18168f??{})){_0x3c1c28['set'](_0x1a7ed0,_0x5215a3);}return _0x3c1c28;}[_0x18006e(0x59,0x1f,0x3a,0x4e)](_0x5c020e){return _0x5c020e;}[_0x18006e(0xd2,0x41,0x8f,-0x2a)](_0x2bbdcc,_0x5370ec){return resolveSessionBaseUrl(_0x2bbdcc,_0x5370ec);}[_0x4d4006(0x115,0xdf,0x60,-0x4d)](_0x36ede9,_0x569bb5){return resolveApiCredential(_0x36ede9,_0x569bb5);}async['toApiError'](_0x167774){return await createOpenAiApiError(_0x167774);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static ['sharedResponsesSocketSessions']=new Map();[_0x18006e(0x13e,0xca,0x143,0x97)];[_0x4d4006(0x3f,0x76,-0x8,0x44)];constructor(_0xc351a7={}){const _0xa66e16={_0x25e232:0x463,_0x5756e7:0x3ca,_0x124c3b:0x4f3,_0x398e4c:0x3e1,_0x12f7c7:0x1cd,_0xf10e9a:0x218,_0x5be427:0x27a,_0x45bc47:0x2cf,_0x43011e:0x303,_0x175618:0x1e3,_0x28eb55:0x2a4,_0x519a4a:0x489,_0x2af140:0x495,_0x1a773f:0x54a,_0x458c91:0x4f4,_0x420b85:0x5da,_0x4d6871:0x51b,_0x2f6840:0x5e1,_0x3e37ce:0x2ea,_0x1b676d:0x324,_0x263c1f:0x2e9,_0x35fa1c:0x202,_0x5ce7d2:0x283,_0x47bc3a:0x2fc,_0xc03f89:0x44c,_0x1d9760:0x3df,_0x1fce20:0x466},_0x94bf35={_0x254bc7:0x203,_0x34ee95:0x1f0},_0x1aadef={_0x498127:0x454,_0x17250f:0x22};function _0x37c95f(_0x2c0dc6,_0xd2dbec,_0x2b62d4,_0x49699f){return _0x4d4006(_0x49699f,_0xd2dbec-0x1d2,_0x2c0dc6-_0x1aadef._0x498127,_0x49699f-_0x1aadef._0x17250f);}function _0x8a0186(_0x45cd77,_0x46f0d0,_0x3f0c3a,_0x31567a){return _0x4d4006(_0x45cd77,_0x46f0d0-0x20,_0x31567a-_0x94bf35._0x254bc7,_0x31567a-_0x94bf35._0x34ee95);}const _0x5e7509=_0xc351a7[_0x37c95f(_0xa66e16._0x25e232,0x4fc,0x415,_0xa66e16._0x5756e7)]??_0x37c95f(0x566,0x51d,0x596,_0xa66e16._0x124c3b),_0x33b873=_0xc351a7[_0x8a0186(_0xa66e16._0x398e4c,0x39d,0x2b1,0x367)]??0x4000,_0x53ef8e=_0xc351a7['chatCompletionsPath']??_0x37c95f(0x594,0x54d,0x4ef,0x51d),_0x1db39e=_0xc351a7[_0x8a0186(_0xa66e16._0x12f7c7,_0xa66e16._0xf10e9a,_0xa66e16._0x5be427,0x1fb)]??_0x8a0186(_0xa66e16._0x45bc47,_0xa66e16._0x43011e,_0xa66e16._0x175618,_0xa66e16._0x28eb55);super({'apiKey':_0xc351a7['apiKey'],'baseUrl':trimTrailingSlashes(_0xc351a7['baseUrl']??_0x37c95f(_0xa66e16._0x519a4a,_0xa66e16._0x2af140,_0xa66e16._0x1a773f,_0xa66e16._0x458c91)),'fetch':_0xc351a7['fetch'],'maxTokens':_0x33b873,'model':_0x5e7509,'reasoning':_0xc351a7[_0x37c95f(0x52a,_0xa66e16._0x420b85,_0xa66e16._0x4d6871,_0xa66e16._0x2f6840)],'providerAdapter':new OpenAiProviderAdapter(_0xc351a7[_0x8a0186(0x3af,0x2a3,0x2ce,_0xa66e16._0x3e37ce)]),'providerSessionResolver':_0xc351a7[_0x8a0186(0x387,_0xa66e16._0x1b676d,0x2fd,_0xa66e16._0x263c1f)],'requestMutators':_0xc351a7['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0xc351a7[_0x8a0186(0x1d1,0x256,_0xa66e16._0x35fa1c,0x1f5)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x53ef8e,'responsesPath':_0x1db39e}),'webSocketFactory':_0xc351a7[_0x8a0186(_0xa66e16._0x5ce7d2,0x28a,0x3b9,_0xa66e16._0x47bc3a)]}),this['chatCompletionsPath']=_0x53ef8e,this[_0x37c95f(_0xa66e16._0xc03f89,0x3d5,_0xa66e16._0x1d9760,_0xa66e16._0x1fce20)]=_0x1db39e;}[_0x18006e(0x98,0x119,0xac,0x7)](_0x3b89c1,_0x395cca){const _0x2d843e={_0x126358:0x34,_0x3cd886:0x51,_0x131589:0x94},_0x2fd087={_0x283754:0x15c,_0x417040:0xa3};function _0x278374(_0x8c42de,_0x1243b1,_0x3a7fd7,_0x2ffad8){return _0x4d4006(_0x3a7fd7,_0x1243b1-_0x2fd087._0x283754,_0x1243b1- -_0x2fd087._0x417040,_0x2ffad8-0x145);}return this[_0x278374(-0x91,_0x2d843e._0x126358,-_0x2d843e._0x3cd886,-_0x2d843e._0x131589)](_0x3b89c1,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x395cca);}[_0x4d4006(0xcd,0x12f,0xb1,0xa0)](_0x5bf4f0,_0x2c4e5d){return this['completeViaSurface'](_0x5bf4f0,OPENAI_RESPONSES_SURFACE,_0x2c4e5d);}['completeViaResponsesWebSocketSurface'](_0x517c04,_0x7f9496){return this['completeViaSurface'](_0x517c04,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x7f9496);}['streamViaChatCompletionsSurface'](_0x3cad1d,_0x3a51ca){const _0x38961e={_0x13998:0x5ee},_0x30a1f9={_0x4465d4:0x115,_0x484b01:0x45d};function _0x8ca9c2(_0x351c13,_0x183d94,_0x72304f,_0x4f1144){return _0x18006e(_0x351c13-_0x30a1f9._0x4465d4,_0x183d94-0x10b,_0x351c13-_0x30a1f9._0x484b01,_0x72304f);}return this[_0x8ca9c2(0x549,0x577,0x561,_0x38961e._0x13998)](_0x3cad1d,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x3a51ca);}[_0x4d4006(0x9f,-0x39,-0x11,-0xd2)](_0xa128cf,_0x19752e){return this['streamViaSurface'](_0xa128cf,OPENAI_RESPONSES_STREAM_SURFACE,_0x19752e);}[_0x4d4006(0x1c,0xea,0x51,0xf3)](_0x56b226,_0x5d2a42){return this['streamViaSurface'](_0x56b226,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x5d2a42);}async['chatComplete'](_0x1449ac,_0x25c958){const _0x4a0b8a={_0x12384a:0x1e6},_0x4246ca={_0x6a36d9:0x30,_0x28d2af:0x19c},_0x2902de={_0x198a54:0xf8};function _0x50800f(_0x1352cb,_0x44ae18,_0x236e4b,_0x162fc7){return _0x4d4006(_0x162fc7,_0x44ae18-0x45,_0x236e4b-_0x2902de._0x198a54,_0x162fc7-0x1e2);}function _0x37c447(_0x1eb23f,_0x531caa,_0x5b37bd,_0x4db4b7){return _0x18006e(_0x1eb23f-_0x4246ca._0x6a36d9,_0x531caa-0x185,_0x1eb23f-_0x4246ca._0x28d2af,_0x531caa);}try{return await this[_0x37c447(0x248,0x265,0x266,0x2f0)](_0x1449ac,_0x25c958);}catch(_0x544665){if(_0x544665 instanceof OpenAiApiError)throw this[_0x37c447(0x1d6,_0x4a0b8a._0x12384a,0x277,0x155)](_0x544665);throw _0x544665;}}async[_0x18006e(-0x7,0xd3,0x92,-0x2b)](_0x16abca,_0xcfdf21){const _0x3a99e2={_0x440340:0x2cc,_0x3f3531:0x239},_0xd49f32={_0x5e3f52:0x6b,_0x5caf99:0x238};function _0x2c071c(_0x54c407,_0x3a1af5,_0x50b275,_0x27b724){return _0x4d4006(_0x27b724,_0x3a1af5-_0xd49f32._0x5e3f52,_0x3a1af5-_0xd49f32._0x5caf99,_0x27b724-0xbb);}try{return await this['completeViaResponsesSurface'](_0x16abca,_0xcfdf21);}catch(_0x3e04e6){if(_0x3e04e6 instanceof OpenAiApiError)throw this[_0x2c071c(_0x3a99e2._0x440340,_0x3a99e2._0x3f3531,0x173,0x257)](_0x3e04e6);throw _0x3e04e6;}}async[_0x4d4006(0x56,0xc7,0xd,-0x37)](_0x3eca4b,_0x353299){const _0x18a177={_0x5406db:0x3ca,_0x3fa661:0x424,_0x214004:0x4c0,_0x44f28e:0x449,_0x5de7d7:0x1d7,_0x56f2cb:0x1a6,_0x6d026:0x3ce,_0x259609:0x44a,_0x32a0bf:0x375,_0x3d6a6c:0x4ba},_0x1b2c3e={_0x280eeb:0x397},_0x36dc15={_0x8694c8:0x4};function _0x40f44c(_0x2ffcd3,_0xcf2b37,_0x166a5f,_0xf66b9f){return _0x18006e(_0x2ffcd3-0x10a,_0xcf2b37-_0x36dc15._0x8694c8,_0x166a5f-0x27,_0xf66b9f);}function _0x57c5e5(_0x39c41e,_0x1e94e9,_0x5028ac,_0x33efe5){return _0x18006e(_0x39c41e-0x18f,_0x1e94e9-0x33,_0x33efe5-_0x1b2c3e._0x280eeb,_0x1e94e9);}try{let _0x2977bf;for await(const _0x3eb96e of this[_0x57c5e5(0x52c,_0x18a177._0x5406db,_0x18a177._0x3fa661,0x488)](_0x3eca4b,_0x353299)){_0x3eb96e[_0x57c5e5(0x3b2,0x400,_0x18a177._0x214004,_0x18a177._0x44f28e)]===_0x40f44c(0x1d8,_0x18a177._0x5de7d7,_0x18a177._0x56f2cb,0x105)&&(_0x2977bf=_0x3eb96e[_0x57c5e5(_0x18a177._0x6d026,_0x18a177._0x259609,_0x18a177._0x32a0bf,0x429)]);}if(!_0x2977bf)throw new Error(_0x57c5e5(0x470,0x548,0x54e,_0x18a177._0x3d6a6c));return _0x2977bf;}catch(_0x318bb9){if(_0x318bb9 instanceof OpenAiApiError)throw this[_0x57c5e5(0x364,0x320,0x360,0x3d1)](_0x318bb9);throw _0x318bb9;}}async*[_0x4d4006(0x1e1,0x116,0x13a,0x188)](_0x5a440c,_0x340542){const _0x26495f={_0x4e2703:0xc,_0x25cbf0:0x15f,_0xd50c49:0x203,_0x2c7dd2:0x2e4},_0xf1816c={_0x4541e4:0x72},_0xdc9f76={_0x31150b:0x15c};function _0x6fa04d(_0x8a30cc,_0xc90847,_0x5085d3,_0x279d1b){return _0x4d4006(_0xc90847,_0xc90847-0x106,_0x8a30cc- -_0xdc9f76._0x31150b,_0x279d1b-0x26);}function _0xfc84bf(_0x23d3c5,_0x542bf1,_0x40efc9,_0xe1595c){return _0x18006e(_0x23d3c5-_0xf1816c._0x4541e4,_0x542bf1-0xc5,_0x542bf1- -0x259,_0x23d3c5);}try{yield*this[_0x6fa04d(-0xbd,-0xfc,-0x16f,-_0x26495f._0x4e2703)](_0x5a440c,_0x340542);}catch(_0x32c322){if(_0x32c322 instanceof OpenAiApiError)throw this[_0xfc84bf(-_0x26495f._0x25cbf0,-0x21f,-_0x26495f._0xd50c49,-_0x26495f._0x2c7dd2)](_0x32c322);throw _0x32c322;}}async*[_0x18006e(-0xd,0x70,0x56,0xae)](_0x33414e,_0x502189){const _0x42ca77={_0x7e9247:0xfc,_0x28a8f8:0xd0,_0x486809:0xed,_0x305ad2:0x12a},_0x45e2f9={_0x3df7c5:0xb3},_0x1b1f24={_0x2a3da4:0xce,_0x5d1e6a:0x5c,_0x60558:0x138};function _0x12aed7(_0x333e98,_0x3a10c6,_0xaa3a58,_0x5175e1){return _0x18006e(_0x333e98-_0x1b1f24._0x2a3da4,_0x3a10c6-_0x1b1f24._0x5d1e6a,_0x5175e1- -_0x1b1f24._0x60558,_0xaa3a58);}function _0xdf78df(_0x1a1b50,_0x4594d0,_0x1880cd,_0x2e0559){return _0x18006e(_0x1a1b50-0x1a6,_0x4594d0-0xb8,_0x1880cd-_0x45e2f9._0x3df7c5,_0x1a1b50);}try{yield*this[_0xdf78df(0x11a,0x139,0xdb,_0x42ca77._0x7e9247)](_0x33414e,_0x502189);}catch(_0x5bd50a){if(_0x5bd50a instanceof OpenAiApiError)throw this[_0xdf78df(0x6d,_0x42ca77._0x28a8f8,_0x42ca77._0x486809,_0x42ca77._0x305ad2)](_0x5bd50a);throw _0x5bd50a;}}async*[_0x4d4006(0xd3,0x12e,0xb8,0x17a)](_0x150802,_0x4ba883){const _0xd4c0ba={_0x488d50:0xc9,_0xda06e5:0x0},_0x1da2f1={_0x4e7317:0x13e};function _0x5435f6(_0x1b37bf,_0x59dd2a,_0x1793f6,_0x3bb764){return _0x4d4006(_0x1793f6,_0x59dd2a-0x1bd,_0x1b37bf- -0xe,_0x3bb764-0x6b);}function _0x300528(_0x30de6d,_0x44de50,_0x12dfa5,_0x6cf18){return _0x4d4006(_0x30de6d,_0x44de50-0xdd,_0x6cf18-0x2e,_0x6cf18-_0x1da2f1._0x4e7317);}try{yield*this[_0x300528(0xd3,_0xd4c0ba._0x488d50,_0xd4c0ba._0xda06e5,0xa9)](_0x150802,_0x4ba883);}catch(_0x24a3e9){if(_0x24a3e9 instanceof OpenAiApiError)throw this[_0x5435f6(-0xd,0x2d,0x95,0x75)](_0x24a3e9);throw _0x24a3e9;}}['complete'](_0x55fe85,_0x515e90){const _0x1de1c4={_0x19c0ec:0x32,_0x3000da:0x56},_0x8ddf09={_0x47e56c:0x135};function _0x43e59e(_0x80f2a0,_0x2e39f6,_0x55baca,_0x446c9f){return _0x18006e(_0x80f2a0-0x8f,_0x2e39f6-0x151,_0x446c9f- -_0x8ddf09._0x47e56c,_0x55baca);}return this[_0x43e59e(_0x1de1c4._0x19c0ec,-0x4e,-_0x1de1c4._0x3000da,0x43)](_0x55fe85,_0x515e90);}[_0x4d4006(0x152,0x112,0xb2,0xd3)](_0x12a9ee,_0x14449a){const _0x2ebef2={_0x1f8aaf:0x444,_0x204e1a:0x381},_0x57ea55={_0x315d42:0x5};function _0xb8ba27(_0x320757,_0x370f3a,_0x313ba7,_0x3c4751){return _0x18006e(_0x320757-_0x57ea55._0x315d42,_0x370f3a-0x14a,_0x313ba7-0x20e,_0x3c4751);}return this[_0xb8ba27(_0x2ebef2._0x1f8aaf,0x2c7,_0x2ebef2._0x204e1a,0x3ba)](_0x12a9ee,_0x14449a);}[_0x18006e(0xd0,0x61,0xb0,0x15b)](_0x4b8534){const _0x2f1ce7={_0x2c92e1:0x493,_0x64545e:0x445,_0x491023:0x52e,_0x2c39e:0x4c3,_0x251b12:0x463,_0x315f69:0x373,_0x394462:0x2e4,_0x3ebfe3:0x3d1},_0x516ff7={_0x1f4243:0x16,_0x33cfaf:0x2e2,_0x1e2e18:0xd7},_0x37f76d={_0x244ea4:0x2ee},_0xd1fc2f=this[_0x3cbc14(_0x2f1ce7._0x2c92e1,0x4c0,0x3ab,0x401)](_0x4b8534);function _0x3cbc14(_0x4596ec,_0x2d5c61,_0x1f48a5,_0x45741f){return _0x4d4006(_0x1f48a5,_0x2d5c61-0x75,_0x45741f-_0x37f76d._0x244ea4,_0x45741f-0x64);}function _0x12a6d9(_0x277b7d,_0x27614b,_0x4abd18,_0x1a2b65){return _0x4d4006(_0x27614b,_0x27614b-_0x516ff7._0x1f4243,_0x277b7d-_0x516ff7._0x33cfaf,_0x1a2b65-_0x516ff7._0x1e2e18);}let _0x3a9f68=_OpenAiModel['sharedResponsesSocketSessions'][_0x3cbc14(_0x2f1ce7._0x64545e,_0x2f1ce7._0x491023,_0x2f1ce7._0x2c39e,_0x2f1ce7._0x251b12)](_0xd1fc2f);return!_0x3a9f68&&(_0x3a9f68={'pending':Promise[_0x12a6d9(_0x2f1ce7._0x315f69,0x3e4,0x389,_0x2f1ce7._0x394462)]()},_OpenAiModel['sharedResponsesSocketSessions'][_0x12a6d9(0x43f,0x43c,_0x2f1ce7._0x3ebfe3,0x3ae)](_0xd1fc2f,_0x3a9f68)),_0x3a9f68;}['getResponsesSocketSessionKey'](_0x227687){const _0x186faf={_0x92f280:0x1c2},_0x5c7d62={_0x5baacf:0x13f,_0x3c316d:0x171};function _0x354770(_0x2c8870,_0x3d644c,_0x587cf0,_0x1beb75){return _0x18006e(_0x2c8870-_0x5c7d62._0x5baacf,_0x3d644c-_0x5c7d62._0x3c316d,_0x587cf0-0x10c,_0x1beb75);}return''+trimTrailingSlashes(this[_0x354770(_0x186faf._0x92f280,0x1bb,0x252,0x2bf)])+this['responsesPath']+'::'+_0x227687;}async[_0x18006e(-0x42,0xf4,0x7d,0xc8)](_0x1d7da7){const _0x3f4ef1={_0x2e0ab7:0x510,_0x1f3c5a:0x4f4,_0x21cd1f:0x48d,_0x26837d:0x472,_0x11b66e:0x561,_0x53c7c7:0x60f,_0xfb5cd4:0x5c2},_0x19fd28={_0x318ac9:0x19b,_0x37f72b:0x8f},_0x3a2747=_0x1d7da7[_0x5bc154(0x53c,0x458,0x5a5,_0x3f4ef1._0x2e0ab7)][_0x48e296(0x59b,_0x3f4ef1._0x1f3c5a,_0x3f4ef1._0x21cd1f,_0x3f4ef1._0x26837d)](()=>{});let _0x4446a4;const _0x2f4672=new Promise(_0x5ee779=>{_0x4446a4=_0x5ee779;});function _0x48e296(_0x106a7e,_0x1b2ce8,_0x4ca0d2,_0x4e7b49){return _0x4d4006(_0x106a7e,_0x1b2ce8-_0x19fd28._0x318ac9,_0x1b2ce8-0x3bb,_0x4e7b49-_0x19fd28._0x37f72b);}function _0x5bc154(_0xeb0825,_0x46c44d,_0x4604c4,_0x294a96){return _0x18006e(_0xeb0825-0xe0,_0x46c44d-0x15,_0x294a96-0x44d,_0x46c44d);}return _0x1d7da7['pending']=_0x3a2747[_0x5bc154(_0x3f4ef1._0x11b66e,0x5b2,_0x3f4ef1._0x53c7c7,_0x3f4ef1._0xfb5cd4)](()=>_0x2f4672),await _0x3a2747,()=>{_0x4446a4?.();};}async['prepareResponsesSocketRequest'](_0x560d5a,_0x45d304){const _0x446271={_0x2256b4:0x40f,_0x46ffe6:0x39f,_0x4aaa3e:0x4ab,_0x19cc02:0x45e,_0x593d53:0x623,_0x1a487f:0x5d3,_0x37006d:0x30e,_0x3c163d:0x2ef,_0x5c2424:0x42f,_0x17b143:0x38a,_0x5d60c0:0x548,_0x3b434e:0x4f7,_0x1aa3a3:0x4ee,_0x4f7d95:0x56a,_0x311c15:0x4dc,_0x38a87e:0x52a,_0x5d57e5:0x549,_0x2e72fd:0x6b6,_0x3bf16c:0x233,_0x4a6fdf:0x245,_0x2b90bb:0x2ee,_0x1c854c:0x44e,_0x33d90c:0x376,_0x3cb244:0x362,_0xcb6b5b:0x64e,_0x573b40:0x596},_0x457e2f={_0x43c656:0x8,_0xf5738c:0x2fb},_0x12229c=this[_0x812a03(_0x446271._0x2256b4,_0x446271._0x46ffe6,_0x446271._0x4aaa3e,_0x446271._0x19cc02)](_0x560d5a),_0x4f0ee7=toModelRequest(_0x12229c),_0x42292c=await prepareProviderRequest(_0x4f0ee7,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x2e5ced(0x5ba,0x5fb,_0x446271._0x593d53,_0x446271._0x1a487f)],'signal':_0x45d304});function _0x812a03(_0xe5de4e,_0x3d2a46,_0x440fd3,_0x4ee438){return _0x4d4006(_0xe5de4e,_0x3d2a46-_0x457e2f._0x43c656,_0x4ee438-_0x457e2f._0xf5738c,_0x4ee438-0x1a1);}const _0x4d9718=toChatRequest(_0x42292c[_0x812a03(_0x446271._0x37006d,_0x446271._0x3c163d,_0x446271._0x5c2424,_0x446271._0x17b143)]),_0x168940=this[_0x2e5ced(_0x446271._0x5d60c0,_0x446271._0x3b434e,_0x446271._0x1aa3a3,_0x446271._0x4f7d95)]['resolveCredential'](this['apiKey'],_0x42292c[_0x2e5ced(_0x446271._0x311c15,_0x446271._0x38a87e,0x596,_0x446271._0x5d57e5)]);function _0x2e5ced(_0x16c91d,_0x16a6af,_0x459aff,_0x1fe076){return _0x18006e(_0x16c91d-0x3a,_0x16a6af-0xf,_0x459aff-0x4c2,_0x16a6af);}if(!_0x168940)throw this[_0x2e5ced(0x6fb,_0x446271._0x2e72fd,0x659,0x593)]();return{'baseUrl':this[_0x812a03(_0x446271._0x3bf16c,0x2b7,_0x446271._0x4a6fdf,_0x446271._0x2b90bb)]['resolveBaseUrl'](this[_0x812a03(_0x446271._0x1c854c,_0x446271._0x33d90c,_0x446271._0x3cb244,0x408)],_0x42292c['session']),'credential':_0x168940,'request':_0x4d9718,'session':_0x42292c[_0x2e5ced(_0x446271._0xcb6b5b,0x584,_0x446271._0x573b40,0x52f)]};}[_0x18006e(0x136,0x7d,0xd2,0x125)](_0x396cca,_0xd32e4c,_0x509a46={}){const _0x16d9e1={_0x232a76:0x55,_0x474e08:0x1b,_0x1202c4:0xdb,_0x356b59:0x1e9,_0x54bc76:0x1f5,_0x59abb5:0x40,_0x388fea:0x79,_0x5b7652:0x53,_0x2f26be:0x8a,_0x42ddb2:0xe7,_0x443b1b:0xa,_0x573e53:0x159,_0x6de383:0x218,_0x28ccce:0xe5,_0x3cfd2f:0xf1},_0x5a1925={_0x239fc5:0x98,_0x54325e:0x16c},_0x48cb13={_0x1dbb7b:0x59,_0x2b5c90:0x61,_0x37d9e7:0xf3};function _0x5d28c1(_0x5eab55,_0x1c4d9a,_0x37d57b,_0x364f76){return _0x18006e(_0x5eab55-_0x48cb13._0x1dbb7b,_0x1c4d9a-_0x48cb13._0x2b5c90,_0x5eab55- -_0x48cb13._0x37d9e7,_0x1c4d9a);}if(!_0x509a46[_0x5d28c1(-0x74,_0x16d9e1._0x232a76,0x4a,-0x122)]){const _0x451d90=this[_0x40502b(-0xde,-_0x16d9e1._0x474e08,-_0x16d9e1._0x1202c4,-0xa2)](_0x396cca);if(_0x451d90&&_0xd32e4c[_0x40502b(-0x14e,-_0x16d9e1._0x356b59,-_0x16d9e1._0x54bc76,-0x12e)]&&_0x451d90[_0x5d28c1(-_0x16d9e1._0x59abb5,_0x16d9e1._0x388fea,-_0x16d9e1._0x5b7652,-_0x16d9e1._0x2f26be)]===_0xd32e4c['lastResponseId']){const _0x43b0d7=toOpenAiResponsesRequest({..._0x396cca,'messages':_0x396cca[_0x5d28c1(-0xcf,-_0x16d9e1._0x42ddb2,-0x164,-_0x16d9e1._0x443b1b)]['slice'](_0x451d90[_0x40502b(-_0x16d9e1._0x573e53,-_0x16d9e1._0x6de383,-0x211,-0x90)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x396cca,{'input':_0x43b0d7,'previousResponseId':_0x451d90[_0x5d28c1(-_0x16d9e1._0x59abb5,-0x4d,0x19,0x66)]}),'previousResponseId':_0x451d90[_0x5d28c1(-0x40,-_0x16d9e1._0x28ccce,-0x103,-_0x16d9e1._0x3cfd2f)]};}}function _0x40502b(_0x40ab4d,_0x280512,_0xf66591,_0x5f4374){return _0x4d4006(_0x280512,_0x280512-_0x5a1925._0x239fc5,_0x40ab4d- -_0x5a1925._0x54325e,_0x5f4374-0x75);}return{'event':createOpenAiResponsesWebSocketEvent(_0x396cca)};}[_0x18006e(0x9e,0x161,0xc7,0x80)](_0x5ae8c7){const _0x4d8de2={_0x2880dc:0x23e,_0x1118d3:0x1ff,_0x51cc5f:0x2c6,_0x4e396e:0x4e3,_0x5dd9af:0x497,_0xb70102:0x173,_0x324f23:0x8c,_0x13ba0e:0x542},_0x2dda36={_0x43332b:0x3e,_0x1c8336:0x1a9},_0x60f337={_0xa0ecd3:0x1a3,_0x14cb22:0x9b,_0xc48736:0x223};function _0x5d1ed1(_0x193a4e,_0x568a67,_0x1dbdad,_0x33a885){return _0x18006e(_0x193a4e-_0x60f337._0xa0ecd3,_0x568a67-_0x60f337._0x14cb22,_0x33a885- -_0x60f337._0xc48736,_0x1dbdad);}function _0x45ba78(_0x436817,_0x2e7534,_0x5b6b47,_0xf1e704){return _0x18006e(_0x436817-_0x2dda36._0x43332b,_0x2e7534-_0x2dda36._0x1c8336,_0x436817-0x45a,_0xf1e704);}for(let _0x3d4eaa=_0x5ae8c7[_0x5d1ed1(-0x250,-0x215,-_0x4d8de2._0x2880dc,-_0x4d8de2._0x1118d3)]['length']-0x1;_0x3d4eaa>=0x0;_0x3d4eaa-=0x1){const _0x5af37c=_0x5ae8c7[_0x5d1ed1(-_0x4d8de2._0x51cc5f,-0x229,-0x1fa,-_0x4d8de2._0x1118d3)][_0x3d4eaa],_0x166e15=_0x5af37c[_0x45ba78(_0x4d8de2._0x4e396e,0x4c9,0x445,_0x4d8de2._0x5dd9af)]==='assistant'?_0x5af37c[_0x5d1ed1(-0x14a,-_0x4d8de2._0xb70102,-_0x4d8de2._0x324f23,-0x148)]?.[_0x45ba78(_0x4d8de2._0x13ba0e,0x4dd,0x55d,0x478)]:void 0x0;if(_0x166e15)return{'messageIndex':_0x3d4eaa,'responseId':_0x166e15};}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x29d1af){const _0x1e0ac7={_0x4babbd:0x291,_0x4b4da5:0x296,_0x43469f:0x1d9,_0x24b788:0x33b,_0x349a03:0x2f6},_0x38251e={_0x4f0e0a:0x14b,_0x462196:0x24d},_0x13f3a0={_0x5ef03a:0x309};function _0x5ce6f7(_0x33681f,_0x3b2edd,_0x262b3a,_0x5b9177){return _0x4d4006(_0x3b2edd,_0x3b2edd-0x15,_0x262b3a-_0x13f3a0._0x5ef03a,_0x5b9177-0xf9);}function _0xe7d44c(_0x21df8d,_0x35049e,_0x223dde,_0x9d9ff6){return _0x18006e(_0x21df8d-0x22,_0x35049e-_0x38251e._0x4f0e0a,_0x223dde-_0x38251e._0x462196,_0x35049e);}return _0x29d1af instanceof ProviderStreamEventError&&(_0x29d1af['code']===_0xe7d44c(0x214,_0x1e0ac7._0x4babbd,_0x1e0ac7._0x4b4da5,_0x1e0ac7._0x43469f)||_0x29d1af['code']===_0x5ce6f7(0x381,0x2fe,_0x1e0ac7._0x24b788,_0x1e0ac7._0x349a03));}[_0x18006e(0x101,0x4c,0x45,0x5a)](_0x49b291){const _0xd6d5a0={_0x584fae:0x220,_0x12947f:0x30e,_0x445523:0x332,_0x3b3689:0x1b5,_0x290ea9:0xf9,_0x26f2f6:0x98,_0x3e3e7c:0xb,_0x3825a6:0x178,_0xe9ee8d:0x1d6,_0x39b08b:0x2b9,_0x1a2776:0xbf,_0x58bb76:0x1f3,_0x58fdf5:0x2b9},_0xb8fa={_0x82c486:0x185,_0x564249:0x4a},_0x41f8c1={_0x39ba9e:0x44},_0x4207b6=_0x49b291['socket'];_0x49b291[_0x433d77(_0xd6d5a0._0x584fae,_0xd6d5a0._0x12947f,_0xd6d5a0._0x445523,0x2a3)]=void 0x0;function _0x433d77(_0x455869,_0x229cef,_0x3f883b,_0x3d8c3a){return _0x4d4006(_0x455869,_0x229cef-_0x41f8c1._0x39ba9e,_0x3d8c3a-0x2a5,_0x3d8c3a-0x184);}_0x49b291[_0x158aab(_0xd6d5a0._0x3b3689,0x10a,_0xd6d5a0._0x290ea9,0x23b)]=void 0x0,_0x49b291[_0x158aab(0xa1,_0xd6d5a0._0x26f2f6,_0xd6d5a0._0x3e3e7c,0x65)]=void 0x0;function _0x158aab(_0x4413ba,_0x45062c,_0x57df04,_0x2fb282){return _0x18006e(_0x4413ba-0xcd,_0x45062c-_0xb8fa._0x82c486,_0x4413ba-_0xb8fa._0x564249,_0x45062c);}_0x4207b6?.[_0x158aab(_0xd6d5a0._0x3825a6,0x20a,0xf4,_0xd6d5a0._0xe9ee8d)]===WebSocket[_0x433d77(_0xd6d5a0._0x39b08b,0x361,0x315,0x2c0)]&&_0x4207b6[_0x158aab(_0xd6d5a0._0x1a2776,0x188,0xeb,0x153)](0x3e8,_0x433d77(_0xd6d5a0._0x58bb76,0x36c,0x1ff,_0xd6d5a0._0x58fdf5));}async['getOrCreateResponsesSocket'](_0x1ee1a1,_0x176d83,_0xd05af1,_0x525489,_0x174c43){const _0xa0bb25={_0x1d21f9:0x316,_0x5204cc:0x334,_0x4e1ba9:0x2f1,_0x1577bf:0x40d,_0x5f574d:0x3c1,_0x2205ee:0x270,_0x237dbc:0x131,_0x4dce36:0x254,_0x51c982:0x140,_0x4b6420:0x9b,_0x5cd1db:0x44a,_0x60bdac:0x4aa,_0x399a2f:0x3c6,_0x27152c:0x477,_0x317a2c:0x90,_0x2419b7:0x8a,_0xe6f52c:0x44a},_0x2e78ff={_0x4982e1:0x2e4,_0x1b84c5:0x8c,_0x51f21e:0x137,_0x32dfeb:0x18,_0x49020f:0x302,_0x1fcad0:0x18b,_0x156e13:0x24a,_0x4bde09:0x1c2,_0x236e13:0x2f8,_0x183916:0x3e8,_0x4a23a1:0x2e9,_0x240ab4:0x33f,_0x4ea8fc:0x374,_0x48e106:0x1da,_0x31f78c:0x1c5,_0x16e775:0x2e2,_0x43409d:0x2b7,_0x5e1772:0x34a,_0x5b9e60:0x292,_0x3da300:0x284,_0x3e314a:0x2de,_0x2673ea:0x317,_0x4b6ed4:0x2d4,_0x2ecfd5:0x152,_0x1da0bb:0x17b,_0x49cc63:0x26,_0x13d81a:0x11b,_0x3135eb:0xd1,_0x58dcdc:0x123,_0x4ef432:0x32,_0x41f367:0x2a5,_0x22e8d3:0x2bc,_0x39568e:0x1db,_0x21ab7e:0x238,_0x8f2105:0x32d,_0x181c7a:0x2a3,_0x11817a:0x2e6,_0x52beef:0x34a,_0x448743:0x29b,_0x5044d8:0x2ae},_0x4c5fa5={_0x53eeab:0xb1},_0x4d2655={_0x34a1e4:0x3d5,_0x237468:0x473,_0x4ebb05:0x45e,_0x42baa8:0x483,_0x12a685:0x473,_0x2b875f:0x4ce},_0x26d3b2={_0x19da81:0x16d,_0x249fb7:0xcd},_0x539597={_0x26a998:0x95,_0x1d6680:0x318,_0x3cda2e:0x1de},_0x58ae01={_0xfddc89:0x1cd,_0x154bc0:0x59};if(_0x176d83[_0x3c7f93(_0xa0bb25._0x1d21f9,_0xa0bb25._0x5204cc,0x2e4,_0xa0bb25._0x4e1ba9)]?.[_0x3c7f93(_0xa0bb25._0x1577bf,0x452,_0xa0bb25._0x5f574d,0x380)]===WebSocket[_0x353373(-0x150,-0x185,-0x1b2,-_0xa0bb25._0x2205ee)])return _0x176d83[_0x353373(-_0xa0bb25._0x237dbc,-0x122,-0x1cf,-_0xa0bb25._0x4dce36)];function _0x353373(_0x1e28c1,_0x4ebb08,_0x2a6bc5,_0x37f37f){return _0x4d4006(_0x1e28c1,_0x4ebb08-0x104,_0x2a6bc5- -_0x58ae01._0xfddc89,_0x37f37f-_0x58ae01._0x154bc0);}function _0x3c7f93(_0x28a269,_0x55900e,_0x2b6224,_0x2004d7){return _0x4d4006(_0x55900e,_0x55900e-_0x539597._0x26a998,_0x28a269-_0x539597._0x1d6680,_0x2004d7-_0x539597._0x3cda2e);}if(_0x176d83[_0x353373(-0x102,-_0xa0bb25._0x51c982,-_0xa0bb25._0x4b6420,-0x1c)])return await _0x176d83[_0x3c7f93(_0xa0bb25._0x5cd1db,_0xa0bb25._0x60bdac,_0xa0bb25._0x399a2f,_0xa0bb25._0x27152c)];_0x176d83[_0x353373(-_0xa0bb25._0x317a2c,-0x31,-_0xa0bb25._0x4b6420,-_0xa0bb25._0x2419b7)]=((async()=>{const _0x222ab0={_0x22613b:0x15a,_0x11493e:0x189},_0x253b3e=await this[_0x546cd4(_0x2e78ff._0x4982e1,0x3f0,0x36e,0x3f2)]({'request':_0xd05af1['request'],'body':_0x525489,'credential':_0xd05af1[_0x1d894e(_0x2e78ff._0x1b84c5,_0x2e78ff._0x51f21e,0x14a,-_0x2e78ff._0x32dfeb)],'session':_0xd05af1[_0x546cd4(0x371,0x303,_0x2e78ff._0x49020f,0x3a6)],'stream':!![]},{'accept':_0x1d894e(0xdf,0x135,0x150,0x118),'includeContentType':![]});function _0x1d894e(_0x2bd24c,_0xce1d4b,_0x2552ab,_0x3bc23f){return _0x3c7f93(_0x2bd24c- -0x278,_0xce1d4b,_0x2552ab-_0x26d3b2._0x19da81,_0x3bc23f-_0x26d3b2._0x249fb7);}_0x253b3e[_0x1d894e(_0x2e78ff._0x1fcad0,_0x2e78ff._0x156e13,0x19a,_0x2e78ff._0x4bde09)](_0x546cd4(0x3c7,_0x2e78ff._0x236e13,0x36b,0x326));const _0x187601=this['webSocketFactory']({'headers':Object[_0x546cd4(_0x2e78ff._0x183916,_0x2e78ff._0x4a23a1,0x382,0x429)](_0x253b3e['entries']()),'url':(''+_0xd05af1[_0x546cd4(_0x2e78ff._0x240ab4,0x3fe,_0x2e78ff._0x4ea8fc,0x35f)]+this[_0x546cd4(_0x2e78ff._0x48e106,_0x2e78ff._0x31f78c,0x25f,_0x2e78ff._0x16e775)])[_0x546cd4(_0x2e78ff._0x43409d,_0x2e78ff._0x5e1772,_0x2e78ff._0x5b9e60,_0x2e78ff._0x3da300)](/^http:/,_0x546cd4(0x301,_0x2e78ff._0x3e314a,_0x2e78ff._0x2673ea,_0x2e78ff._0x4b6ed4))[_0x1d894e(0xcb,_0x2e78ff._0x2ecfd5,_0x2e78ff._0x1da0bb,_0x2e78ff._0x49cc63)](/^https:/,_0x546cd4(0x3ba,0x261,0x30a,0x356))}),_0x225e69=()=>{const _0x4dabf9={_0x466286:0x3d5,_0x268853:0x35,_0x976850:0x1d0};function _0x3f2150(_0x716ee,_0x40e604,_0x176283,_0x114723){return _0x1d894e(_0x716ee-0x17d,_0x114723,_0x176283-_0x222ab0._0x22613b,_0x114723-_0x222ab0._0x11493e);}function _0xb1384f(_0x25a0ee,_0x5abfe,_0x308d86,_0x345084){return _0x1d894e(_0x308d86-_0x4dabf9._0x466286,_0x5abfe,_0x308d86-_0x4dabf9._0x268853,_0x345084-_0x4dabf9._0x976850);}_0x176d83[_0xb1384f(0x4a6,_0x4d2655._0x34a1e4,_0x4d2655._0x237468,_0x4d2655._0x4ebb05)]===_0x187601&&(_0x176d83[_0xb1384f(_0x4d2655._0x42baa8,0x3d2,_0x4d2655._0x12a685,_0x4d2655._0x2b875f)]=void 0x0,_0x176d83['lastResponseId']=void 0x0);};_0x187601['addEventListener'](_0x1d894e(0xdc,_0x2e78ff._0x13d81a,0x2e,0x7e),_0x225e69);function _0x546cd4(_0x654554,_0x1f037f,_0x5c9740,_0x5bed2b){return _0x3c7f93(_0x5c9740- -_0x4c5fa5._0x53eeab,_0x654554,_0x5c9740-0x68,_0x5bed2b-0x128);}try{return throwIfAborted(_0x174c43),_0x187601['readyState']!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x187601,_0x174c43),throwIfAborted(_0x174c43),_0x176d83[_0x1d894e(0x9e,_0x2e78ff._0x3135eb,_0x2e78ff._0x58dcdc,_0x2e78ff._0x4ef432)]=_0x187601,_0x187601;}catch(_0x5a8b1c){_0x225e69();_0x187601[_0x546cd4(_0x2e78ff._0x41f367,_0x2e78ff._0x22e8d3,0x35c,0x3cf)]===WebSocket[_0x546cd4(_0x2e78ff._0x39568e,_0x2e78ff._0x21ab7e,0x282,_0x2e78ff._0x8f2105)]&&_0x187601[_0x546cd4(0x2e1,0x243,_0x2e78ff._0x181c7a,0x24b)](0x3e8,_0x546cd4(_0x2e78ff._0x11817a,_0x2e78ff._0x52beef,_0x2e78ff._0x448743,_0x2e78ff._0x5044d8));throw _0x5a8b1c;}})());try{return await _0x176d83[_0x3c7f93(_0xa0bb25._0xe6f52c,0x44e,0x3d1,0x3f7)];}finally{_0x176d83['connecting']=void 0x0;}}async*[_0x4d4006(0xcf,0xbb,0x7b,0xa1)](_0x441081,_0x2d7698){const _0x20eccf={_0x449895:0x40b,_0x50835d:0x4c1,_0x5dffe6:0x4e1,_0x376054:0x1eb,_0x3f796e:0x387,_0x4c61ba:0x41e,_0x1c6e62:0x35c,_0x302230:0x74,_0x567371:0x1a4,_0x4d2e18:0x380,_0x593aab:0x238,_0x192ead:0x499,_0x108264:0xf2,_0x416143:0x14a,_0x4eb548:0xd9,_0x52645a:0x13f,_0x469046:0x452,_0x221fe5:0x4b4,_0x4f53af:0x4ac,_0x2ae00b:0x43e,_0x263f5c:0x439,_0x567df9:0x36a,_0x1e0472:0x3d8,_0x284698:0x145,_0x59719a:0xfe,_0x1aaa29:0xb7,_0x7d03f2:0x1b4,_0x72b73f:0x469,_0x54616d:0x513,_0x163312:0x37d,_0x46b389:0x3e6,_0x1d1be6:0x333,_0x492e2a:0x198,_0x4f3f38:0x7e,_0x232cd4:0x111,_0x5d41d9:0x219,_0x504f8e:0x1bd},_0xe24f06={_0x2e72d0:0xc9};function _0xfdab6b(_0x4af597,_0x388c09,_0xacdb02,_0x1df6d7){return _0x4d4006(_0x388c09,_0x388c09-0xc4,_0x1df6d7-_0xe24f06._0x2e72d0,_0x1df6d7-0x11);}const _0x3c65ef=this[_0x5b7d58(_0x20eccf._0x449895,_0x20eccf._0x50835d,_0x20eccf._0x5dffe6,0x57e)](_0x441081),_0x19ae5b=this[_0xfdab6b(0xe2,0x19a,_0x20eccf._0x376054,0x140)](_0x3c65ef[_0x5b7d58(_0x20eccf._0x3f796e,_0x20eccf._0x4c61ba,_0x20eccf._0x1c6e62,0x3e8)]['sessionId']);function _0x5b7d58(_0x47276e,_0xfdc47b,_0x4d5331,_0x545192){return _0x18006e(_0x47276e-0xe5,_0xfdc47b-0x1de,_0xfdc47b-0x325,_0x47276e);}const _0x3a04ea=await this[_0xfdab6b(0x62,_0x20eccf._0x302230,_0x20eccf._0x567371,0x10d)](_0x19ae5b);try{const _0x3dfff6=this[_0x5b7d58(_0x20eccf._0x4d2e18,0x3f7,0x4b9,0x47d)](_0x3c65ef,_0x19ae5b);try{yield*this['streamViaResponsesSocketAttempt'](_0x3c65ef[_0xfdab6b(0xf9,0x1d3,_0x20eccf._0x593aab,0x189)][_0x5b7d58(_0x20eccf._0x192ead,0x3e6,0x3b0,0x3de)],_0x19ae5b,_0x3c65ef,_0x3dfff6[_0xfdab6b(_0x20eccf._0x108264,_0x20eccf._0x416143,_0x20eccf._0x4eb548,_0x20eccf._0x52645a)],_0x2d7698?.[_0x5b7d58(0x4aa,_0x20eccf._0x469046,0x3bd,0x3dd)]);return;}catch(_0x2e00c0){if(!_0x3dfff6[_0x5b7d58(_0x20eccf._0x221fe5,_0x20eccf._0x4f53af,_0x20eccf._0x2ae00b,_0x20eccf._0x263f5c)]||!this[_0x5b7d58(0x4d5,0x40b,_0x20eccf._0x567df9,_0x20eccf._0x1e0472)](_0x2e00c0)){this[_0xfdab6b(_0x20eccf._0x284698,0x120,_0x20eccf._0x59719a,0xd5)](_0x19ae5b);throw _0x2e00c0;}}this[_0xfdab6b(0x78,_0x20eccf._0x1aaa29,0x198,0xd5)](_0x19ae5b);const _0x24817d=this[_0xfdab6b(0xc5,_0x20eccf._0x7d03f2,0x9a,0x162)](_0x3c65ef,_0x19ae5b,{'forceFullReplay':!![]});yield*this[_0x5b7d58(0x42b,_0x20eccf._0x72b73f,_0x20eccf._0x54616d,0x4ca)](_0x3c65ef[_0x5b7d58(0x394,0x41e,0x478,_0x20eccf._0x163312)][_0x5b7d58(0x453,_0x20eccf._0x46b389,_0x20eccf._0x1d1be6,0x43f)],_0x19ae5b,_0x3c65ef,_0x24817d[_0xfdab6b(_0x20eccf._0x492e2a,_0x20eccf._0x4f3f38,0x1f9,0x13f)],_0x2d7698?.[_0xfdab6b(0x201,_0x20eccf._0x232cd4,_0x20eccf._0x5d41d9,_0x20eccf._0x504f8e)]);}finally{_0x3a04ea();}}async*[_0x4d4006(0x1b3,0x18c,0x10b,0x138)](_0x3f497a,_0x26909c,_0xa3f3e3,_0x3b4a72,_0xe254bd){const _0x535222={_0x24f939:0x400,_0x4f2d10:0x399,_0x35c66b:0x37c,_0x3c897f:0x532,_0x16d161:0x4cf,_0x2b38ec:0x4de,_0x21ee2a:0x32e,_0xe05aec:0x30f,_0x88d8ef:0x4e1,_0x42fe77:0x473,_0xfbdb91:0x460,_0xd1bf0a:0x367,_0x49ad21:0x250,_0x4703fa:0x2d7,_0x538e95:0x311,_0x2e4b5a:0x2db,_0xfb7b19:0x217,_0x14bd34:0x55c,_0xc11f8:0x4fc,_0x106b5:0x3be,_0x4b9129:0x3a6,_0x56e8f3:0x2f5,_0x30ccc9:0x3ab,_0x1c406f:0x353,_0x573860:0x276,_0x45c64f:0x469,_0xe45ab2:0x441,_0x16f1b1:0x3cd,_0x4cff94:0x464,_0x53bdc7:0x5bb,_0x402c53:0x4f5,_0x46d81f:0x511},_0x411787={_0x2ebc7b:0x2c,_0x15ee84:0x25,_0x4ea16b:0x21a},_0x4ed85f={_0x1c5b0a:0x15f},_0x1a90f4=await this[_0x500d7b(_0x535222._0x24f939,_0x535222._0x4f2d10,0x3d8,_0x535222._0x35c66b)](_0xa3f3e3,_0xe254bd),_0x2e0bf2=await this[_0x500d7b(_0x535222._0x3c897f,0x550,_0x535222._0x16d161,_0x535222._0x2b38ec)](_0x3f497a,_0x26909c,_0x1a90f4,_0x3b4a72,_0xe254bd),_0x38baef=createOpenAiResponsesStreamParser(_0xa3f3e3);throwIfAborted(_0xe254bd),_0x2e0bf2[_0x17c458(_0x535222._0x21ee2a,_0x535222._0xe05aec,0x362,0x29c)](JSON[_0x500d7b(_0x535222._0x88d8ef,0x44d,_0x535222._0x42fe77,_0x535222._0xfbdb91)](_0x3b4a72));function _0x500d7b(_0x47ad05,_0x257485,_0x1bb91f,_0x210ea4){return _0x4d4006(_0x47ad05,_0x257485-_0x4ed85f._0x1c5b0a,_0x1bb91f-0x3af,_0x210ea4-0xaf);}for await(const _0x161169 of iterateWebSocketMessages(_0x2e0bf2,_0xe254bd)){const _0x533a1c=_0x38baef[_0x17c458(0x32e,0x331,0x355,_0x535222._0xd1bf0a)]?.(_0x161169)??[];yield*_0x533a1c;if(_0x38baef[_0x17c458(_0x535222._0x49ad21,_0x535222._0x4703fa,_0x535222._0x538e95,0x2b4)]?.())break;}if(!_0x38baef['isDone']?.())throw new Error(_0x17c458(_0x535222._0x2e4b5a,0x35c,0x2d4,_0x535222._0xfb7b19));const _0x894833=_0x38baef[_0x500d7b(0x598,_0x535222._0x14bd34,_0x535222._0xc11f8,0x57f)](),_0x24d192=_0x894833[_0x17c458(_0x535222._0x106b5,_0x535222._0x4b9129,_0x535222._0x56e8f3,_0x535222._0x30ccc9)]?.[_0x17c458(_0x535222._0x1c406f,0x343,0x302,_0x535222._0x573860)]??_0x894833['id'];function _0x17c458(_0x2a5049,_0x204b4f,_0x32047f,_0x1c3925){return _0x18006e(_0x2a5049-_0x411787._0x2ebc7b,_0x204b4f-_0x411787._0x15ee84,_0x32047f-_0x411787._0x4ea16b,_0x1c3925);}_0x24d192&&(_0x26909c[_0x500d7b(_0x535222._0x45c64f,_0x535222._0xe45ab2,_0x535222._0x16f1b1,_0x535222._0x4cff94)]=_0x24d192),yield{'type':_0x500d7b(_0x535222._0x53bdc7,0x4c4,_0x535222._0x402c53,_0x535222._0x46d81f),'response':_0x894833};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0x4d4006(-0x75,-0x33,-0xb,-0x77),_0x4d4006(0x1c6,0xdf,0x149,0xd0),'openai-responses-ws'];function isAnthropicSurface(_0x6a8084){const _0x5e92db={_0x6da96b:0x343,_0x2edeaf:0x401},_0xff3010={_0x371495:0x3da,_0x4de8f7:0x39};function _0x44ac3d(_0x5381ed,_0x31c543,_0x2df38b,_0x15e858){return _0x4d4006(_0x31c543,_0x31c543-0x1de,_0x15e858-_0xff3010._0x371495,_0x15e858-_0xff3010._0x4de8f7);}return _0x6a8084===_0x44ac3d(_0x5e92db._0x6da96b,0x39d,0x347,_0x5e92db._0x2edeaf);}function resolveDefaultBaseUrl(_0x622b51){const _0x3ae362={_0x59d24c:0x4b,_0xa6d685:0x77,_0x235f7a:0x47,_0x5452f2:0x2c,_0x5e0155:0x1f},_0x416133={_0x2204f9:0x89},_0x3ddae8={_0x298622:0xf9};function _0xb3692f(_0x15353a,_0x103a55,_0x378965,_0x4c65a2){return _0x18006e(_0x15353a-_0x3ddae8._0x298622,_0x103a55-0x10b,_0x378965-0xaf,_0x4c65a2);}function _0x2cff67(_0x34cf8f,_0x33b06f,_0x2bf591,_0x534f7d){return _0x4d4006(_0x34cf8f,_0x33b06f-_0x416133._0x2204f9,_0x33b06f- -0x73,_0x534f7d-0x156);}return isAnthropicSurface(_0x622b51)?_0x2cff67(_0x3ae362._0x59d24c,-_0x3ae362._0xa6d685,-_0x3ae362._0x235f7a,_0x3ae362._0x5452f2):_0x2cff67(-0x94,-0x3e,_0x3ae362._0x5e0155,0x8a);}var ChatModel=class{[_0x4d4006(0x72,0xa4,0xf,0x3)];[_0x4d4006(0x182,0x159,0x164,0x1db)];['surface'];[_0x4d4006(0x107,0x5b,0xa5,0x1)];[_0x4d4006(0x158,0x143,0x14b,0x8f)];constructor(_0x495196={}){const _0x2ff22f={_0x211a25:0x361,_0x17d8e1:0x3ca,_0x1d7e28:0x13e,_0x1cc2bb:0x1e4,_0x7f8df0:0x244,_0xadf678:0x1eb,_0x24960c:0x13a,_0x2d25d5:0x1c9,_0x3580bb:0x237,_0x147e5f:0x1ae,_0x347282:0x1f9,_0x1b9513:0x1d2,_0x347ce9:0x1ed,_0x2937a9:0x26f,_0x3126e1:0x36f,_0x5a28cb:0x30c,_0x1957fe:0x1d7,_0x41ab13:0x291,_0x1175bc:0x287,_0x59be02:0x2e0,_0x4c110a:0x28a,_0x3c79ce:0x2c9,_0x5c4f70:0x27c,_0x2866e6:0x278,_0x38e257:0x3b9,_0xa345be:0x2f3,_0x5a610f:0x35e,_0x455ba8:0x2b9,_0x2ef521:0x1cd,_0x204bbb:0x291,_0x3d689c:0x32d,_0xe9fa06:0x28f,_0x3da4a0:0x377,_0x792f8c:0x377,_0x17f109:0x1fb,_0x261f83:0x1b0,_0x58e0f6:0x171,_0x2f1512:0x27e,_0x3c1949:0x2bc,_0x2c92d8:0x2bb},_0x26983f={_0x243933:0xb2},_0x11d6c0={_0x5ba3f4:0x9f,_0x1e2939:0x1a1,_0x98534f:0x120};this['model']=_0x495196['model']??_0x2c768b(0x2fb,0x2b3,_0x2ff22f._0x211a25,0x2a6);function _0x2c768b(_0x3a0754,_0x4672c6,_0x593390,_0x21c5ae){return _0x4d4006(_0x3a0754,_0x4672c6-_0x11d6c0._0x5ba3f4,_0x4672c6-_0x11d6c0._0x1e2939,_0x21c5ae-_0x11d6c0._0x98534f);}this[_0x5266ea(_0x2ff22f._0x17d8e1,0x31a,0x3c2,0x30c)]=_0x495196['maxTokens']??0x4000,this[_0x2c768b(_0x2ff22f._0x1d7e28,_0x2ff22f._0x1cc2bb,0x1b6,0x146)]=_0x495196[_0x5266ea(0x1bc,0x1c4,_0x2ff22f._0x7f8df0,_0x2ff22f._0xadf678)]??'openai-chat-completions';const _0x374085=trimTrailingSlashes(_0x495196['baseUrl']??resolveDefaultBaseUrl(this[_0x2c768b(0x1dd,_0x2ff22f._0x1cc2bb,0x13c,0x1b6)]));function _0x5266ea(_0x31f7f8,_0x18deda,_0x33172f,_0xb9514e){return _0x18006e(_0x31f7f8-0x28,_0x18deda-_0x26983f._0x243933,_0xb9514e-0x16f,_0x31f7f8);}if(isAnthropicSurface(this[_0x2c768b(0x213,0x1e4,0x231,_0x2ff22f._0x24960c)])){this[_0x5266ea(0x28c,_0x2ff22f._0x2d25d5,0x1ce,0x24d)]=new AnthropicModel({'apiKey':_0x495196['apiKey'],'authScheme':_0x495196[_0x2c768b(0x24b,_0x2ff22f._0x3580bb,0x1d4,_0x2ff22f._0x147e5f)],'baseUrl':_0x374085,'fetch':_0x495196[_0x5266ea(_0x2ff22f._0x347282,_0x2ff22f._0x1b9513,_0x2ff22f._0x347ce9,_0x2ff22f._0x2937a9)],'maxTokens':this[_0x5266ea(0x397,_0x2ff22f._0x3126e1,0x2a7,_0x2ff22f._0x5a28cb)],'model':this['model'],'reasoning':_0x495196[_0x2c768b(0x1f4,0x277,0x2df,_0x2ff22f._0x1957fe)],'providerSessionResolver':_0x495196[_0x2c768b(_0x2ff22f._0x41ab13,_0x2ff22f._0x1175bc,_0x2ff22f._0x59be02,_0x2ff22f._0x4c110a)],'requestMutators':_0x495196[_0x2c768b(0x308,_0x2ff22f._0x3c79ce,0x332,0x241)]});return;}this[_0x5266ea(_0x2ff22f._0x5c4f70,_0x2ff22f._0x2866e6,_0x2ff22f._0x38e257,_0x2ff22f._0xa345be)]=new OpenAiModel({'apiKey':_0x495196[_0x5266ea(0x27a,_0x2ff22f._0x5a610f,0x2f4,_0x2ff22f._0x455ba8)],'baseUrl':_0x374085,'fetch':_0x495196[_0x5266ea(0x2d5,_0x2ff22f._0x2ef521,0x1e4,_0x2ff22f._0x2937a9)],'headerResolver':_0x495196[_0x5266ea(_0x2ff22f._0x204bbb,_0x2ff22f._0x3d689c,0x2ad,_0x2ff22f._0xe9fa06)],'maxTokens':this[_0x5266ea(_0x2ff22f._0x3da4a0,_0x2ff22f._0x792f8c,_0x2ff22f._0x211a25,0x30c)],'model':this[_0x2c768b(_0x2ff22f._0x17f109,_0x2ff22f._0x261f83,0x1ea,_0x2ff22f._0x58e0f6)],'reasoning':_0x495196[_0x5266ea(0x259,0x1bb,0x1ce,_0x2ff22f._0x2f1512)],'providerSessionResolver':_0x495196[_0x5266ea(_0x2ff22f._0x3c1949,_0x2ff22f._0x2c92d8,0x317,0x28e)],'requestMutators':_0x495196['requestMutators'],'webSocketFactory':_0x495196['webSocketFactory']});}[_0x4d4006(0x11c,0x160,0xb7,0x70)](){const _0x2eb0ce={_0x30f911:0x115,_0x40e119:0xf9,_0x45958f:0x179},_0xd20d4a={_0x29e228:0x6c,_0x423ff8:0x153};function _0x1d20ba(_0x177c98,_0x209638,_0x3c0410,_0x4ebf6c){return _0x4d4006(_0x209638,_0x209638-_0xd20d4a._0x29e228,_0x4ebf6c- -0x1bc,_0x4ebf6c-_0xd20d4a._0x423ff8);}if(!this['anthropicDelegate'])throw new Error(_0x2749cd(0x2b6,0x1cb,0x199,0x24d)+this[_0x1d20ba(-_0x2eb0ce._0x30f911,-0x235,-_0x2eb0ce._0x40e119,-_0x2eb0ce._0x45958f)]);function _0x2749cd(_0x598b57,_0x5ce2b4,_0x2f3ff4,_0x2c1ea7){return _0x18006e(_0x598b57-0x1a5,_0x5ce2b4-0xb0,_0x2c1ea7-0x14a,_0x5ce2b4);}return this['anthropicDelegate'];}['getOpenAiDelegate'](){const _0x345ff3={_0x599e87:0x420,_0x304efa:0x332,_0x1c2d99:0x40d,_0xa6d918:0x3cf},_0x350e39={_0x1542b4:0xf5},_0x303eef={_0x15cedd:0x1d4};if(!this['openAiDelegate'])throw new Error(_0xc03e63(0x40f,0x39e,0x3f8,_0x345ff3._0x599e87)+this[_0x373d25(0x209,0x2c7,_0x345ff3._0x304efa,0x229)]);function _0xc03e63(_0x49e06c,_0xdd380b,_0x3a078a,_0x337d10){return _0x4d4006(_0x49e06c,_0xdd380b-_0x303eef._0x15cedd,_0xdd380b-0x37b,_0x337d10-0x147);}function _0x373d25(_0x5efdd7,_0x22649b,_0xb44345,_0x30442e){return _0x18006e(_0x5efdd7-_0x350e39._0x1542b4,_0x22649b-0x102,_0x22649b-0x24b,_0x30442e);}return this[_0x373d25(_0x345ff3._0x1c2d99,_0x345ff3._0xa6d918,0x3f7,0x411)];}[_0x18006e(0x160,0x9c,0x11d,0x13c)](_0x44b80b,_0x2c27c8){const _0x31e77d={_0x22fd2d:0x127,_0x522ea0:0x14c,_0x34d021:0x209,_0x197448:0x103,_0x4e5fad:0x13b,_0x488218:0x182,_0x3e4952:0x32f,_0x5e7c84:0x42d,_0x4dd5e1:0x4b3,_0xfd0dca:0x158,_0x29bb2f:0x285,_0x54ba40:0x267,_0x502c6b:0x2ff,_0x1df684:0x148,_0x3fe6c6:0x2d7,_0x41d826:0x35c,_0xa4b410:0x3e5},_0x21c426={_0x4370de:0x2a6},_0x186e73={_0x47952a:0x1e2};function _0x32f7f8(_0x5c2111,_0x476b6d,_0x213d70,_0x22a4e8){return _0x18006e(_0x5c2111-0x185,_0x476b6d-0x107,_0x22a4e8- -_0x186e73._0x47952a,_0x213d70);}function _0x35d12a(_0x386a92,_0x1bc1ea,_0x50ec2c,_0x33d1a7){return _0x4d4006(_0x50ec2c,_0x1bc1ea-0x198,_0x33d1a7-_0x21c426._0x4370de,_0x33d1a7-0x125);}switch(this[_0x32f7f8(-0x177,-_0x31e77d._0x22fd2d,-_0x31e77d._0x522ea0,-0x166)]){case _0x32f7f8(-_0x31e77d._0x34d021,-_0x31e77d._0x197448,-_0x31e77d._0x4e5fad,-_0x31e77d._0x488218):return this[_0x35d12a(0x415,_0x31e77d._0x3e4952,0x400,0x35d)]()[_0x35d12a(0x394,0x3de,_0x31e77d._0x5e7c84,0x38a)](_0x44b80b,_0x2c27c8);case _0x35d12a(_0x31e77d._0x4dd5e1,0x3fc,0x411,0x3ef):return this[_0x32f7f8(-_0x31e77d._0xfd0dca,-0xc1,-0x1a7,-0x178)]()[_0x35d12a(_0x31e77d._0x29bb2f,_0x31e77d._0x54ba40,0x286,_0x31e77d._0x502c6b)](_0x44b80b,_0x2c27c8);case'openai-responses-ws':return this[_0x32f7f8(-0x1e7,-_0x31e77d._0x1df684,-0x227,-0x178)]()['responseSocket'](_0x44b80b,_0x2c27c8);default:return this[_0x35d12a(0x2be,0x275,0x333,_0x31e77d._0x3fe6c6)]()[_0x35d12a(0x3ae,_0x31e77d._0x41d826,0x3a5,_0x31e77d._0xa4b410)](_0x44b80b,_0x2c27c8);}}[_0x18006e(0x19b,0x10d,0xeb,0x93)](_0x4fad29,_0x2fdec2){const _0x306261={_0x16a529:0xe7,_0x52c793:0x27,_0x499198:0x1f2,_0x332f78:0x6c,_0x250715:0xa,_0x24b3af:0x32,_0x334daa:0xe8,_0x2f8d0b:0xfa,_0x245ca1:0x57,_0x36c246:0x9f,_0x5565b4:0x2a},_0x15c959={_0x58620e:0xf3,_0x3342c5:0x19d},_0x564cd9={_0x241a7c:0xdf,_0x2c1695:0x147};function _0x44095f(_0x54c363,_0x150686,_0x484913,_0x37dada){return _0x18006e(_0x54c363-0x90,_0x150686-_0x564cd9._0x241a7c,_0x150686- -_0x564cd9._0x2c1695,_0x54c363);}function _0x5ec8ec(_0x31002f,_0x5ac8f4,_0x2a5423,_0x2cca80){return _0x18006e(_0x31002f-0xf3,_0x5ac8f4-_0x15c959._0x58620e,_0x2a5423-_0x15c959._0x3342c5,_0x31002f);}switch(this['surface']){case _0x44095f(-0xd8,-_0x306261._0x16a529,-0xf3,-0x116):return this[_0x44095f(-0xf9,-0x57,0x43,-_0x306261._0x52c793)]()['stream'](_0x4fad29,_0x2fdec2);case'openai-responses':return this[_0x44095f(-0x183,-0xdd,-0xd1,-0x3b)]()[_0x5ec8ec(_0x306261._0x499198,0x21e,0x1f3,0x13e)](_0x4fad29,_0x2fdec2);case _0x44095f(_0x306261._0x332f78,0x8,-_0x306261._0x250715,-0x7b):return this[_0x44095f(-_0x306261._0x24b3af,-0xdd,-0x77,-_0x306261._0x334daa)]()[_0x44095f(-0xea,-0x56,0x2a,-_0x306261._0x2f8d0b)](_0x4fad29,_0x2fdec2);default:return this['getOpenAiDelegate']()[_0x44095f(-_0x306261._0x245ca1,0x2c,_0x306261._0x36c246,-_0x306261._0x5565b4)](_0x4fad29,_0x2fdec2);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x4d4006(0x129,0xb3,0xa9,0xa)];[_0x4d4006(0x194,0x75,0x10d,0x151)];[_0x18006e(0x26,0x9,0xc5,0x65)];['githubApiUrl'];[_0x4d4006(0x1e0,0xd3,0x143,0xe0)];constructor(_0x3f8815){const _0x2f5173={_0xd76473:0x49f,_0x4d7327:0x503,_0x5c6776:0x53e,_0x12cf73:0x54b,_0x1ff35f:0x3fc,_0x20192f:0x410,_0x5bb3df:0x4c9,_0x476ecb:0x55c,_0x19a5f3:0x527},_0x585de7={_0x467b60:0x153,_0x6e6cce:0x32},_0x1da4c0={_0x5a81d6:0x34d};this[_0x1cac27(_0x2f5173._0xd76473,0x542,0x4d8,0x4b0)]=_0x3f8815['accessToken'],this[_0x1cac27(_0x2f5173._0x4d7327,_0x2f5173._0x5c6776,0x486,_0x2f5173._0x12cf73)]=trimTrailingSlashes2(_0x3f8815['baseUrl']);function _0x38e301(_0x4f923e,_0x3764b0,_0x304d7b,_0x13fb00){return _0x18006e(_0x4f923e-0x1a2,_0x3764b0-0x8b,_0x3764b0-_0x1da4c0._0x5a81d6,_0x13fb00);}this[_0x38e301(0x466,0x412,0x4a2,0x3ca)]=_0x3f8815['fetch'],this['githubApiUrl']=trimTrailingSlashes2(_0x3f8815[_0x1cac27(0x461,0x414,_0x2f5173._0x1ff35f,0x412)]);function _0x1cac27(_0x309627,_0x3613f7,_0x561c72,_0x2f4a70){return _0x4d4006(_0x2f4a70,_0x3613f7-_0x585de7._0x467b60,_0x309627-0x3f6,_0x2f4a70-_0x585de7._0x6e6cce);}this[_0x38e301(_0x2f5173._0x20192f,_0x2f5173._0x5bb3df,0x4d4,0x461)]=_0x3f8815[_0x38e301(0x52f,0x4c9,_0x2f5173._0x476ecb,_0x2f5173._0x19a5f3)];}async['resolve'](_0x109842){const _0x1df73e={_0x3fea0d:0x47e,_0x438792:0x38e,_0x5d9e99:0x3c2,_0x285f3b:0x38c,_0x48ec01:0x301,_0x483a45:0x2b4,_0x596b40:0x474,_0x136dd6:0x32c,_0x5725d1:0x2d1,_0x536bb1:0x3c9,_0x401063:0x46a,_0x43bfad:0x416,_0x567e89:0x4fe,_0x191366:0x4a8,_0x6c5bf3:0x4ca,_0x3e81d1:0x433,_0x12658c:0x341,_0x149bfb:0x3b4,_0x48146b:0x46e,_0x3d4eff:0x430,_0x1ac89c:0x381,_0x22ba8e:0x3e3,_0x2279d4:0x47c,_0x3cd4ae:0x468,_0x48d5b2:0x1ed,_0x2e90b1:0x498,_0x11be39:0x4d8,_0x41548c:0x2d0,_0xfb0ba5:0x34c,_0x7f92cd:0x494,_0x5210d3:0x58b,_0x3c266b:0x58d,_0x29c7b8:0x43b,_0x530fcb:0x4a5,_0x1b2220:0x451,_0x451e5e:0x3d2,_0x57de81:0x32f},_0x5748c3={_0x48dcbe:0x281},_0x39ead3={_0x18c965:0x1ef},_0x24dff0=await this[_0x223583(_0x1df73e._0x3fea0d,0x3ab,0x413,_0x1df73e._0x438792)](this[_0x223583(_0x1df73e._0x5d9e99,0x3d5,0x3f2,_0x1df73e._0x285f3b)]+_0xab4e93(_0x1df73e._0x48ec01,0x2a6,_0x1df73e._0x483a45,0x2e9),{'method':_0xab4e93(0x3cd,_0x1df73e._0x596b40,_0x1df73e._0x136dd6,0x43a),'headers':new Headers({'accept':_0xab4e93(0x2c0,_0x1df73e._0x5725d1,0x24d,0x1f8),'authorization':'Bearer\x20'+this[_0x223583(_0x1df73e._0x536bb1,0x491,0x430,_0x1df73e._0x401063)],'editor-version':_0x223583(_0x1df73e._0x43bfad,0x3ff,0x48d,0x3e9),'user-agent':'GitHubCopilotChat/0.33.1','x-github-api-version':this[_0x223583(_0x1df73e._0x567e89,_0x1df73e._0x191366,_0x1df73e._0x6c5bf3,_0x1df73e._0x3e81d1)]}),'signal':_0x109842});if(!_0x24dff0['ok'])return{'credential':{'kind':_0x223583(_0x1df73e._0x12658c,0x43b,_0x1df73e._0x149bfb,0x42a),'value':this[_0x223583(_0x1df73e._0x438792,_0x1df73e._0x48146b,_0x1df73e._0x3d4eff,0x388)]},'endpoints':{'api':this[_0xab4e93(0x38e,0x2cd,0x2fd,_0x1df73e._0x1ac89c)]}};function _0x223583(_0x4a5977,_0x77efa2,_0x399ab,_0x5c1d71){return _0x18006e(_0x4a5977-_0x39ead3._0x18c965,_0x77efa2-0x53,_0x399ab-0x34e,_0x5c1d71);}const _0x501077=await _0x24dff0[_0xab4e93(_0x1df73e._0x22ba8e,_0x1df73e._0x2279d4,_0x1df73e._0x3cd4ae,0x3be)]();function _0xab4e93(_0x2c05bc,_0x229a62,_0x560747,_0x25fc08){return _0x4d4006(_0x25fc08,_0x229a62-0x194,_0x2c05bc-_0x5748c3._0x48dcbe,_0x25fc08-0x42);}return{'credential':{'kind':_0xab4e93(0x2a0,_0x1df73e._0x48d5b2,0x35e,0x1f3),'value':_0x501077['token']??this[_0xab4e93(0x32a,0x303,0x304,0x305)]},'endpoints':{'api':_0x501077[_0x223583(0x52b,_0x1df73e._0x2e90b1,_0x1df73e._0x11be39,0x447)]?.[_0xab4e93(_0x1df73e._0x41548c,_0x1df73e._0xfb0ba5,0x2c7,0x274)]??this[_0x223583(0x3e7,0x42f,_0x1df73e._0x7f92cd,0x547)],'originTracker':_0x501077[_0x223583(0x4d2,_0x1df73e._0x5210d3,0x4d8,_0x1df73e._0x3c266b)]?.[_0x223583(_0x1df73e._0x29c7b8,0x461,_0x1df73e._0x530fcb,_0x1df73e._0x1b2220)],'proxy':_0x501077[_0xab4e93(_0x1df73e._0x451e5e,0x426,0x493,_0x1df73e._0x57de81)]?.[_0x223583(0x493,0x588,0x4bd,0x462)],'telemetry':_0x501077['endpoints']?.['telemetry']}};}};function trimTrailingSlashes2(_0x44e8a0){const _0x41da11={_0x582ec7:0x520,_0x5a3d02:0x5b2},_0x3a1142={_0x487896:0x4f5};function _0x24f0eb(_0x4dd945,_0xd34d7c,_0x2e06a4,_0x5ad3b7){return _0x4d4006(_0x4dd945,_0xd34d7c-0x1e1,_0xd34d7c-_0x3a1142._0x487896,_0x5ad3b7-0x13d);}return _0x44e8a0[_0x24f0eb(0x5e6,_0x41da11._0x582ec7,0x50f,_0x41da11._0x5a3d02)](/\/+$/,'');}function createModelInfo(_0x1fdabc){const _0x38b67f={_0x16c7ca:0xb1,_0x882793:0x2f,_0x3b2e00:0x71,_0x1e835b:0x66,_0x38feba:0x97,_0x19e67c:0xd6,_0x56478a:0x41,_0x576694:0x114,_0x4e35e5:0x49,_0x5eb539:0x45,_0x192f35:0x125,_0x4a0577:0x19a},_0x5cefd9={_0x104f98:0x149},_0x54d4f2={_0x21655b:0x55,_0x4549bc:0xf},_0x4f2d05=_0x1fdabc[_0x207f8e(-_0x38b67f._0x16c7ca,_0x38b67f._0x882793,-_0x38b67f._0x3b2e00,-0x33)]??_0x1fdabc[_0x207f8e(_0x38b67f._0x1e835b,0x26,_0x38b67f._0x38feba,0xa0)];function _0x233197(_0xe8ab57,_0x50ef8c,_0x22e751,_0x5836e9){return _0x18006e(_0xe8ab57-0xd7,_0x50ef8c-_0x54d4f2._0x21655b,_0x50ef8c- -_0x54d4f2._0x4549bc,_0x5836e9);}const _0x5befe8=_0x1fdabc['capabilities']?.[_0x207f8e(_0x38b67f._0x19e67c,-_0x38b67f._0x56478a,_0x38b67f._0x576694,_0x38b67f._0x4e35e5)]?.['max_context_window_tokens'];function _0x207f8e(_0x5917b6,_0x2e339c,_0x1abc31,_0x18bff6){return _0x4d4006(_0x5917b6,_0x2e339c-_0x5cefd9._0x104f98,_0x18bff6- -0x4f,_0x18bff6-0x88);}const _0x37d2a9=_0x1fdabc['capabilities']?.[_0x207f8e(0x85,-_0x38b67f._0x5eb539,0x114,_0x38b67f._0x4e35e5)]?.[_0x233197(0x1bb,_0x38b67f._0x192f35,0x1dc,0x1a4)],_0xbc9b70=_0x5befe8!==void 0x0||_0x37d2a9!==void 0x0?{..._0x5befe8!==void 0x0?{'contextWindow':_0x5befe8}:{},..._0x37d2a9!==void 0x0?{'maxOutput':_0x37d2a9}:{}}:void 0x0;return{'id':_0x1fdabc['id'],'name':_0x1fdabc[_0x207f8e(_0x38b67f._0x4a0577,0xb6,0x119,0x109)]??_0x1fdabc['id'],..._0xbc9b70?{'limits':_0xbc9b70}:{},..._0x4f2d05?{'supportedEndpoints':_0x4f2d05}:{}};}function deduplicateModels(_0x45f225){const _0x4cfb2d={_0x3923bb:0xf0,_0x3e0ed6:0x19b,_0x4878de:0x244,_0x3c6059:0x1eb,_0xe49551:0x25e,_0x26ce85:0x41f},_0x41cdb1={_0x21a0c6:0x351},_0x34ff34={_0xe33ec:0xe7};function _0x2b27d1(_0x2c191c,_0x118874,_0x3b5418,_0xfde1bb){return _0x4d4006(_0x2c191c,_0x118874-0x113,_0x118874-_0x34ff34._0xe33ec,_0xfde1bb-0x1c8);}const _0x3d5f32=new Map();function _0x41a386(_0x25e11c,_0x270688,_0x469a06,_0x18dfa7){return _0x18006e(_0x25e11c-0x197,_0x270688-0x13f,_0x25e11c-_0x41cdb1._0x21a0c6,_0x18dfa7);}for(const _0x2013ef of _0x45f225){!_0x3d5f32[_0x2b27d1(_0x4cfb2d._0x3923bb,0x134,0x1ec,0x152)](_0x2013ef['id'])&&_0x3d5f32[_0x2b27d1(_0x4cfb2d._0x3e0ed6,_0x4cfb2d._0x4878de,_0x4cfb2d._0x3c6059,_0x4cfb2d._0xe49551)](_0x2013ef['id'],_0x2013ef);}return Array[_0x41a386(0x409,_0x4cfb2d._0x26ce85,0x3d3,0x357)](_0x3d5f32['values']());}function hasUserPromptContent(_0x30eaf2){const _0x2e31d8={_0x215833:0x10c,_0x5c172e:0x143,_0x4bb9fc:0x211,_0x41d9b8:0xef,_0x21a50c:0x177,_0x183637:0xf8,_0x376110:0x257,_0x307552:0x234,_0xe88dc2:0x16d},_0x1cfbed={_0x440dc5:0x26c,_0x145164:0x31f,_0x594e53:0x1f3,_0x12a618:0x229,_0x408755:0x2b0,_0x2066ca:0x339,_0x154bee:0x228,_0x3772ac:0x2af,_0x502d48:0x218,_0x418877:0x3e6,_0x238098:0x361,_0x1f2a97:0x36e,_0x231a71:0x32e,_0x309055:0x29e},_0xbe2347={_0x566b6a:0x1c5,_0x4f79a7:0x4a6},_0x57583c={_0x68ef64:0x26c,_0x38f823:0x150},_0x16d879={_0x161534:0x1b1},_0x21e5f9={_0x2800db:0x66};function _0x4f6c97(_0x43b641,_0x324234,_0x25617f,_0xf94f9c){return _0x4d4006(_0x324234,_0x324234-0x3e,_0x25617f- -0x26f,_0xf94f9c-_0x21e5f9._0x2800db);}function _0x39b4da(_0xcda5da,_0xb6adf,_0x8905ec,_0x256458){return _0x18006e(_0xcda5da-_0x16d879._0x161534,_0xb6adf-0x14a,_0xcda5da- -0x57,_0x8905ec);}if(typeof _0x30eaf2==='string')return _0x30eaf2[_0x39b4da(_0x2e31d8._0x215833,0x4e,_0x2e31d8._0x5c172e,0x13a)]()['length']>0x0;if(!Array[_0x4f6c97(-_0x2e31d8._0x4bb9fc,-_0x2e31d8._0x41d9b8,-_0x2e31d8._0x21a50c,-_0x2e31d8._0x183637)](_0x30eaf2))return![];return _0x30eaf2[_0x4f6c97(-0x218,-_0x2e31d8._0x376110,-_0x2e31d8._0x307552,-_0x2e31d8._0xe88dc2)](_0x5245c9=>{if(!_0x5245c9||typeof _0x5245c9!==_0x12d1a0(-0x1bb,-0x219,-0x22d,-0x27d))return![];function _0x12d1a0(_0x5b9df5,_0x569309,_0x23ab25,_0x4465a8){return _0x39b4da(_0x569309- -_0x57583c._0x68ef64,_0x569309-0x5a,_0x23ab25,_0x4465a8-_0x57583c._0x38f823);}function _0x514e69(_0x1eca05,_0x21fd92,_0x2233b9,_0x136a27){return _0x4f6c97(_0x1eca05-_0xbe2347._0x566b6a,_0x1eca05,_0x136a27-_0xbe2347._0x4f79a7,_0x136a27-0x141);}const _0x47bb49=_0x5245c9;return(_0x47bb49['type']===_0x514e69(0x348,_0x1cfbed._0x440dc5,0x377,_0x1cfbed._0x145164)||_0x47bb49[_0x514e69(0x1ef,_0x1cfbed._0x594e53,_0x1cfbed._0x12a618,_0x1cfbed._0x408755)]===_0x514e69(0x320,_0x1cfbed._0x2066ca,0x287,0x309))&&typeof _0x47bb49[_0x12d1a0(-0x233,-0x1b8,-0x10c,-_0x1cfbed._0x154bee)]===_0x12d1a0(-_0x1cfbed._0x3772ac,-_0x1cfbed._0x502d48,-0x1c3,-0x1e4)&&_0x47bb49['text'][_0x514e69(0x346,0x328,_0x1cfbed._0x418877,_0x1cfbed._0x238098)]()[_0x514e69(_0x1cfbed._0x1f2a97,_0x1cfbed._0x231a71,_0x1cfbed._0x309055,0x323)]>0x0;});}function isUserPromptEntry(_0xc8732c){const _0x19dd23={_0x393bf2:0x3e,_0x10c04b:0x233,_0x108296:0x7},_0x5c678d={_0x18afe6:0xde,_0x26fc5f:0x1c},_0x2709b0={_0x330847:0x1cd};if(!_0xc8732c||typeof _0xc8732c!==_0x39d34c(-_0x19dd23._0x393bf2,-0xe7,0xb,-0xc5))return![];function _0x39d34c(_0x5ebd7e,_0x3c72f2,_0x5404f7,_0x3a97b0){return _0x18006e(_0x5ebd7e-_0x2709b0._0x330847,_0x3c72f2-0x174,_0x5ebd7e- -0xe8,_0x3a97b0);}const _0x4a443c=_0xc8732c;if(_0x4a443c['role']!==_0x574d9e(-0x2f4,-0x245,-0x2ea,-_0x19dd23._0x10c04b))return![];function _0x574d9e(_0x5e455f,_0x93ca59,_0x342dec,_0x553aab){return _0x4d4006(_0x93ca59,_0x93ca59-_0x5c678d._0x18afe6,_0x553aab- -0x220,_0x553aab-_0x5c678d._0x26fc5f);}if(_0x4a443c[_0x39d34c(-0x36,0x49,_0x19dd23._0x108296,0x22)]!==void 0x0&&_0x4a443c['type']!=='message')return![];return hasUserPromptContent(_0x4a443c[_0x574d9e(-0x1eb,-0x1dc,-0xa0,-0x15e)]);}function determineInitiator(_0x48d9d6){const _0x974db9={_0x119e1d:0x19a,_0xe060f2:0x15c,_0x1ef6e0:0x211,_0x187dae:0x3fe,_0x2ae726:0x3ab,_0x3b3d69:0x1a3,_0x470ede:0x1be,_0x243644:0x4f2,_0x26a808:0x494,_0x51aee2:0x50e,_0x45f82c:0x16b},_0x5c67ea={_0x54bea9:0xcf,_0x278b58:0x105},_0x3ee253={_0x302f1a:0x12f};if(!_0x48d9d6||typeof _0x48d9d6!==_0x3f9a22(0x17a,0x128,_0x974db9._0x119e1d,_0x974db9._0xe060f2))return _0x3f9a22(_0x974db9._0x1ef6e0,0x196,0x125,0x1d5);function _0x3f9a22(_0x1bbaee,_0xb08e03,_0x189aab,_0x49b97a){return _0x4d4006(_0x1bbaee,_0xb08e03-_0x3ee253._0x302f1a,_0xb08e03-0xb7,_0x49b97a-0x1c4);}function _0x96186b(_0x5d4246,_0x415fd3,_0x371ed1,_0x92de2b){return _0x4d4006(_0x371ed1,_0x415fd3-_0x5c67ea._0x54bea9,_0x5d4246-0x413,_0x92de2b-_0x5c67ea._0x278b58);}const _0x7957c6='messages'in _0x48d9d6?_0x48d9d6[_0x96186b(_0x974db9._0x187dae,0x353,0x3bb,_0x974db9._0x2ae726)]:_0x96186b(0x499,0x442,0x4a4,0x4c7)in _0x48d9d6?_0x48d9d6['input']:void 0x0;if(!Array['isArray'](_0x7957c6)||_0x7957c6[_0x3f9a22(0x142,_0x974db9._0x3b3d69,0x23d,_0x974db9._0x470ede)]===0x0)return _0x96186b(_0x974db9._0x243644,_0x974db9._0x26a808,_0x974db9._0x51aee2,0x46d);return isUserPromptEntry(_0x7957c6[_0x7957c6[_0x3f9a22(_0x974db9._0x45f82c,0x1a3,0x10d,0x1f1)]-0x1])?'user':'agent';}function isUnsupportedApiForModel(_0x91f189){const _0xaa5a3b={_0x1e441d:0x4d5,_0x3cb1d6:0x5ba,_0x5573aa:0x615};function _0xde7692(_0x4d0a3b,_0x126b7f,_0x595e06,_0x1543d0){return _0x4d4006(_0x126b7f,_0x126b7f-0x37,_0x595e06-0x498,_0x1543d0-0x16);}return _0x91f189['includes'](_0xde7692(_0xaa5a3b._0x1e441d,_0xaa5a3b._0x3cb1d6,0x59b,_0xaa5a3b._0x5573aa));}function createResponseError(_0x690f9a,_0x2480d1){const _0x8bdc0={_0x44df0e:0x294,_0x3e1422:0x2b5,_0x5744a4:0x37a,_0xfce499:0x213,_0x9e63b9:0x47c,_0x3631b8:0x3bc},_0x15c422={_0x2790be:0x10,_0x1169d5:0x37b,_0x149745:0x6d};function _0x34fa99(_0x52cad9,_0x1b3f66,_0x418e63,_0xccd2ae){return _0x4d4006(_0xccd2ae,_0x1b3f66-0x59,_0x1b3f66-0x1ed,_0xccd2ae-0x148);}if(_0x690f9a===0x191||_0x690f9a===0x193)return new Error(_0x34fa99(_0x8bdc0._0x44df0e,_0x8bdc0._0x3e1422,0x2f6,_0x8bdc0._0x5744a4));function _0x171d28(_0x92220b,_0x3f5952,_0xde7972,_0x808c39){return _0x4d4006(_0x808c39,_0x3f5952-_0x15c422._0x2790be,_0x92220b-_0x15c422._0x1169d5,_0x808c39-_0x15c422._0x149745);}if(_0x690f9a===0x198||_0x690f9a===0x1ad)return new Error(_0x34fa99(0x1a4,_0x8bdc0._0xfce499,0x1d5,0x259));if(_0x690f9a===0x190)return new Error('Invalid\x20request:\x20'+_0x2480d1);return new Error(_0x2480d1||_0x171d28(_0x8bdc0._0x9e63b9,_0x8bdc0._0x3631b8,0x4fd,0x44b)+_0x690f9a);}function _0x2cfd(_0x4f9e14,_0x39f3f9){_0x4f9e14=_0x4f9e14-0x119;const _0x521a58=_0x521a();let _0x2cfd5b=_0x521a58[_0x4f9e14];if(_0x2cfd['aexqJb']===undefined){var _0x53f76f=function(_0x2a112c){const _0x3ca786='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x414b70='',_0x3af60d='';for(let _0x5e5526=0x0,_0x5d185d,_0x39c1eb,_0x3c8254=0x0;_0x39c1eb=_0x2a112c['charAt'](_0x3c8254++);~_0x39c1eb&&(_0x5d185d=_0x5e5526%0x4?_0x5d185d*0x40+_0x39c1eb:_0x39c1eb,_0x5e5526++%0x4)?_0x414b70+=String['fromCharCode'](0xff&_0x5d185d>>(-0x2*_0x5e5526&0x6)):0x0){_0x39c1eb=_0x3ca786['indexOf'](_0x39c1eb);}for(let _0x2c344d=0x0,_0x1ac443=_0x414b70['length'];_0x2c344d<_0x1ac443;_0x2c344d++){_0x3af60d+='%'+('00'+_0x414b70['charCodeAt'](_0x2c344d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3af60d);};_0x2cfd['RwAHDv']=_0x53f76f,_0x2cfd['GZVmrA']={},_0x2cfd['aexqJb']=!![];}const _0x18dcf2=_0x521a58[0x0],_0x28ceab=_0x4f9e14+_0x18dcf2,_0xa4fa67=_0x2cfd['GZVmrA'][_0x28ceab];return!_0xa4fa67?(_0x2cfd5b=_0x2cfd['RwAHDv'](_0x2cfd5b),_0x2cfd['GZVmrA'][_0x28ceab]=_0x2cfd5b):_0x2cfd5b=_0xa4fa67,_0x2cfd5b;}var GitHubModel=class extends OpenAiModel{[_0x18006e(0x67,0x14c,0xde,0x15)];[_0x18006e(0x1f3,0xa3,0x167,0xfd)]=new Map();[_0x4d4006(0x70,0xa5,0x43,0xf7)];constructor(_0xb0969f={}){const _0x371a76={_0x42b181:0x445,_0x238061:0x45e,_0x4bf6a5:0x3b9,_0xd6979:0x52d,_0x38ff87:0x3bb,_0x506ff2:0x17e,_0x39c44a:0x1d1,_0x434027:0x408,_0xc2269c:0x4ee,_0x15c42f:0x4d7,_0x26d971:0x4da,_0x2c02c1:0x3e1,_0x346de9:0x432,_0x1b3210:0x27c,_0xb1024b:0x299,_0x56e889:0x1f8,_0x450cb2:0x5c9,_0x4d72ae:0x55b,_0x386937:0x4fb,_0x51f1b3:0x354,_0x3f9125:0x33a,_0x5e9c25:0x1a1,_0x341d48:0x2a0,_0x5c2811:0x256,_0x473762:0x2e8,_0x116a87:0x411,_0x3973e1:0x543,_0x5ee18f:0x226,_0x39981e:0x428,_0xe20318:0x49f,_0x3bfb16:0x537,_0x911e6c:0x1d5,_0xf7f03:0x232,_0x551af3:0x291,_0x566c34:0x4f7,_0x5a0c0d:0x18f,_0x507013:0x242,_0x11d2b8:0x456,_0x4afa11:0x505},_0x5123e5={_0x1c7709:0x180,_0x4ad401:0x8},_0x3284d4={_0x4ff9d2:0x397,_0x53191a:0x34},_0x3d3bcb=trimTrailingSlashes2(_0xb0969f['baseUrl']??'https://api.individual.githubcopilot.com'),_0x52d38d=_0xb0969f[_0x248241(0x4bb,_0x371a76._0x42b181,_0x371a76._0x238061,0x3c4)]??globalThis[_0x248241(0x3c2,0x3a7,0x45e,_0x371a76._0x4bf6a5)];function _0x248241(_0x4e74e0,_0x84e084,_0x40aed1,_0x32b604){return _0x4d4006(_0x32b604,_0x84e084-0x115,_0x40aed1-_0x3284d4._0x4ff9d2,_0x32b604-_0x3284d4._0x53191a);}const _0x3a222c=_0xb0969f[_0x248241(_0x371a76._0xd6979,_0x371a76._0x38ff87,0x47d,_0x371a76._0x4bf6a5)]??(_0xb0969f['accessToken']?new GitHubAccessTokenResolver({'accessToken':_0xb0969f['accessToken'],'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'githubApiUrl':_0xb0969f[_0x1f1dc2(0x259,_0x371a76._0x506ff2,0x1eb,_0x371a76._0x39c44a)]??_0x248241(_0x371a76._0x434027,_0x371a76._0xc2269c,0x429,_0x371a76._0x15c42f),'tokenExchangeApiVersion':_0xb0969f[_0x248241(0x432,0x487,_0x371a76._0x26d971,0x4c7)]??_0x248241(0x40d,0x38d,_0x371a76._0x2c02c1,_0x371a76._0x346de9)}):void 0x0),_0x32a773=_0xb0969f['editorVersion']??_0x1f1dc2(0x203,_0x371a76._0x1b3210,_0x371a76._0xb1024b,0x364),_0x44ca2e=_0xb0969f[_0x1f1dc2(0x189,0x16b,0x192,_0x371a76._0x56e889)]??_0x248241(_0x371a76._0x450cb2,0x47b,0x509,0x4a6),_0x311fca=({body:_0x40d2ee})=>{return{'editor-plugin-version':_0x44ca2e,'editor-version':_0x32a773,'x-initiator':determineInitiator(_0x40d2ee),'x-request-id':randomUUID()};},_0xe61d4b={'apiKey':_0xb0969f['apiKey'],'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'maxTokens':_0xb0969f[_0x248241(_0x371a76._0x4d72ae,0x49a,_0x371a76._0x386937,0x4c5)],'model':_0xb0969f[_0x248241(_0x371a76._0x51f1b3,_0x371a76._0x3f9125,0x3a6,0x324)],'reasoning':_0xb0969f[_0x1f1dc2(_0x371a76._0x5e9c25,_0x371a76._0x341d48,_0x371a76._0x5c2811,_0x371a76._0x473762)],'providerSessionResolver':_0x3a222c,'requestMutators':_0xb0969f[_0x248241(_0x371a76._0x116a87,_0x371a76._0x3973e1,0x4bf,0x45e)],'headerResolver':_0x311fca};super(_0xe61d4b);function _0x1f1dc2(_0x3469bd,_0x4af6d3,_0x2edfd2,_0x5cd10e){return _0x4d4006(_0x4af6d3,_0x4af6d3-0xb1,_0x2edfd2-_0x5123e5._0x1c7709,_0x5cd10e-_0x5123e5._0x4ad401);}this['surface']=_0xb0969f[_0x1f1dc2(0x124,_0x371a76._0x5ee18f,0x1c3,0x153)]??_0x248241(0x4c6,_0x371a76._0x39981e,_0x371a76._0xe20318,_0x371a76._0x3bfb16),this[_0x1f1dc2(0x2be,0x22a,0x225,_0x371a76._0x911e6c)]=new AnthropicModel({'apiKey':_0xb0969f[_0x1f1dc2(_0x371a76._0xf7f03,0x342,_0x371a76._0x551af3,0x21b)],'authScheme':_0x248241(0x52a,_0x371a76._0x566c34,0x4b9,0x517),'baseUrl':_0x3d3bcb,'fetch':_0x52d38d,'headerResolver':_0x311fca,'maxTokens':_0xb0969f['maxTokens'],'model':_0xb0969f[_0x1f1dc2(0x1c3,0x162,_0x371a76._0x5a0c0d,_0x371a76._0x507013)],'reasoning':_0xb0969f[_0x1f1dc2(0x262,0x269,_0x371a76._0x5c2811,0x1a0)],'providerSessionResolver':_0x3a222c,'requestMutators':_0xb0969f[_0x248241(0x57d,_0x371a76._0x11d2b8,0x4bf,_0x371a76._0x4afa11)]});}[_0x18006e(0xe1,0xdc,0x197,0x195)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}['usesResponsesApi'](_0x576467){const _0x26f9f9={_0x1de32a:0x32c,_0x5a4351:0x1cd,_0x172e28:0x218,_0x34e0ee:0x298,_0xfc08dd:0x472,_0x119dda:0x3ed,_0x3a7cb1:0x4ab,_0x2691ee:0x4c2,_0xb0bcd6:0x4f6,_0x4e777a:0x45b,_0x4a987d:0x498,_0x33787a:0x25a,_0x2fdf7e:0x423,_0x599cc3:0x4a6,_0x33cf76:0x3f5},_0x4a2510={_0x18df5d:0x382},_0x464ad4={_0x1b53f3:0xaa},_0x2616f0=this[_0x21b2bc(_0x26f9f9._0x1de32a,_0x26f9f9._0x5a4351,_0x26f9f9._0x172e28,_0x26f9f9._0x34e0ee)]['get'](_0x576467);function _0x21b2bc(_0x4c1c56,_0x26de81,_0x4a2561,_0x162a6b){return _0x18006e(_0x4c1c56-_0x464ad4._0x1b53f3,_0x26de81-0x57,_0x162a6b-0x131,_0x4a2561);}function _0x476017(_0x4ceb7f,_0x56fa94,_0x2e6a5e,_0x331a8c){return _0x4d4006(_0x331a8c,_0x56fa94-0x17a,_0x4ceb7f-_0x4a2510._0x18df5d,_0x331a8c-0x78);}if(!_0x2616f0)return![];return!_0x2616f0[_0x476017(_0x26f9f9._0xfc08dd,_0x26f9f9._0x119dda,_0x26f9f9._0x3a7cb1,0x4e8)](_0x476017(_0x26f9f9._0x2691ee,_0x26f9f9._0xb0bcd6,_0x26f9f9._0x4e777a,_0x26f9f9._0x4a987d))&&_0x2616f0[_0x21b2bc(0x2a1,0x30a,_0x26f9f9._0x33787a,_0x26f9f9._0x33787a)](_0x476017(_0x26f9f9._0x2fdf7e,0x412,_0x26f9f9._0x599cc3,_0x26f9f9._0x33cf76));}['shouldPreferResponsesApi'](_0xf6ca30){const _0x522cbf={_0x2d3292:0x233,_0x557bac:0x302,_0x5be036:0x25c,_0x8d0842:0x7b,_0x4fe0ca:0x38,_0x23b8ee:0x15,_0x454520:0xbc,_0x33b8eb:0xb8,_0x2898f6:0x107,_0x364801:0x136,_0x1d64a3:0x81},_0x44b8d4={_0x144afe:0xc7,_0x1138b4:0xc2},_0x2996aa={_0x27a9a1:0x9f},_0x5a8ca7=this[_0x153653(_0x522cbf._0x2d3292,0x259,0x2e9,0x29e)]['get'](_0xf6ca30[_0x1426d5(-0xb8,-0xe5,-0x174,-0x140)]);if(!_0x5a8ca7)return![];function _0x153653(_0x5977c9,_0x389277,_0x3a8074,_0xa3e236){return _0x18006e(_0x5977c9-_0x2996aa._0x27a9a1,_0x389277-0xe1,_0x3a8074-0x182,_0x389277);}if(resolveOpenAiReasoningConfig(_0xf6ca30[_0x153653(0x24c,0x33b,0x291,0x293)]))return _0x5a8ca7['includes'](_0x153653(0x29c,_0x522cbf._0x557bac,_0x522cbf._0x5be036,0x319));function _0x1426d5(_0x1b2382,_0x4e8d8b,_0x26e15b,_0x431f65){return _0x4d4006(_0x431f65,_0x4e8d8b-0x118,_0x1b2382- -_0x44b8d4._0x144afe,_0x431f65-_0x44b8d4._0x1138b4);}return this[_0x1426d5(_0x522cbf._0x8d0842,_0x522cbf._0x4fe0ca,-_0x522cbf._0x23b8ee,_0x522cbf._0x454520)](_0xf6ca30[_0x1426d5(-_0x522cbf._0x33b8eb,-_0x522cbf._0x2898f6,-_0x522cbf._0x364801,-_0x522cbf._0x1d64a3)]);}['markModelAsResponsesOnly'](_0x5dd513){const _0x1cab02={_0x155bd6:0x3b9,_0x3ec098:0x3f4,_0x2c0519:0x3ab,_0x2c85bd:0x41b},_0x44231b={_0x1139bb:0x130},_0x3d6547={_0x14def4:0x75,_0x472016:0xe9};function _0x41a524(_0x1e82d7,_0x21758d,_0x211c08,_0xcc13c1){return _0x18006e(_0x1e82d7-_0x3d6547._0x14def4,_0x21758d-_0x3d6547._0x472016,_0xcc13c1-0x411,_0x1e82d7);}function _0x3098ff(_0x1d5936,_0x14a232,_0x3551c0,_0x24fb59){return _0x4d4006(_0x14a232,_0x14a232-0x11f,_0x24fb59-0x2be,_0x24fb59-_0x44231b._0x1139bb);}this[_0x3098ff(0x33f,0x329,0x409,0x3ec)][_0x3098ff(_0x1cab02._0x155bd6,_0x1cab02._0x3ec098,_0x1cab02._0x2c0519,_0x1cab02._0x2c85bd)](_0x5dd513,['/responses']);}[_0x18006e(-0x5f,0xa4,0x3a,0xd9)](_0x5919a6){const _0x219c06={_0x295041:0x206,_0x22fb50:0x1a2},_0x5a570a={_0x58e260:0x1c2};if(_0x5919a6 instanceof OpenAiApiError)return createResponseError(_0x5919a6['status'],_0x5919a6[_0x12ab1f(0x2cd,_0x219c06._0x295041,0x226,0x21b)]||_0x5919a6[_0x12ab1f(0x257,0x1af,0x1ba,_0x219c06._0x22fb50)]);function _0x12ab1f(_0x3bd491,_0x349bc5,_0x44d123,_0x58012f){return _0x18006e(_0x3bd491-0x1,_0x349bc5-_0x5a570a._0x58e260,_0x349bc5-0x5e,_0x3bd491);}function _0x4cfa21(_0x7d92b9,_0x54f5c0,_0xb95598,_0x5b806d){return _0x18006e(_0x7d92b9-0x10d,_0x54f5c0-0x146,_0xb95598-0x3c,_0x7d92b9);}return _0x5919a6;}[_0x18006e(0xee,0x12b,0xc6,0x166)](_0x1da5e1,_0x3f77cb){const _0x15e866={_0x3498c3:0x37,_0x58ef1b:0x85,_0x5ec148:0x7,_0x47237a:0x59,_0x1f04a5:0x13,_0xc77923:0x7c,_0x14680e:0x192,_0x4089a9:0x7b,_0x44d2e4:0x114,_0x781294:0x17,_0x205f31:0x58,_0x25a0d7:0x4d,_0x141044:0x1f8,_0x1b15d7:0xba,_0x3c732f:0x2,_0x2da5b0:0xc8,_0x2092b8:0x11c,_0xb799:0xf3,_0x593c3b:0x97,_0x258381:0x27,_0x43be8e:0x7c,_0x341094:0x4d,_0x806b61:0x177,_0x5c0383:0x203,_0x1cc3bf:0x84,_0x59280c:0x57,_0x31971e:0x8f,_0x160767:0x27,_0x29ea53:0x1f,_0x831cb8:0xaf},_0x2edf0e={_0x35b114:0x13e,_0x5ee13f:0x6f,_0x11f44d:0x1ed};switch(this[_0x597c2a(_0x15e866._0x3498c3,-_0x15e866._0x58ef1b,-_0x15e866._0x5ec148,-_0x15e866._0x47237a)]){case _0x597c2a(0x1b,-0x5,-_0x15e866._0x1f04a5,-_0x15e866._0xc77923):return this[_0x1fafc1(_0x15e866._0x14680e,_0x15e866._0x4089a9,_0x15e866._0x44d2e4,0x8c)]['complete'](_0x1da5e1,_0x3f77cb);case _0x597c2a(-_0x15e866._0x781294,-_0x15e866._0x205f31,0x80,_0x15e866._0x25a0d7):return this['chatComplete'](_0x1da5e1,_0x3f77cb);case _0x597c2a(0x13d,_0x15e866._0x141044,_0x15e866._0x1b15d7,0x75):return this[_0x1fafc1(0x16f,_0x15e866._0x3c732f,_0x15e866._0x2da5b0,0x62)](_0x1da5e1,_0x3f77cb);case _0x1fafc1(_0x15e866._0x2092b8,_0x15e866._0xb799,0x185,0x218):return this[_0x1fafc1(_0x15e866._0x593c3b,_0x15e866._0x258381,_0x15e866._0x43be8e,-_0x15e866._0x341094)](_0x1da5e1,_0x3f77cb);case _0x1fafc1(0x1e3,0xd6,_0x15e866._0x806b61,_0x15e866._0x5c0383):return this['complete'](_0x1da5e1,_0x3f77cb);}function _0x1fafc1(_0x16ea5c,_0x37d0a2,_0x546d09,_0x5b8da9){return _0x4d4006(_0x16ea5c,_0x37d0a2-_0x2edf0e._0x35b114,_0x546d09-_0x2edf0e._0x5ee13f,_0x5b8da9-_0x2edf0e._0x11f44d);}function _0x597c2a(_0x41945b,_0x1ff39e,_0x5ed06a,_0x1e095a){return _0x18006e(_0x41945b-0x73,_0x1ff39e-0x10f,_0x41945b- -0x45,_0x1ff39e);}throw new Error(_0x597c2a(-0x9,-_0x15e866._0x1cc3bf,_0x15e866._0x59280c,_0x15e866._0x31971e)+String(this[_0x597c2a(0x37,_0x15e866._0x160767,-_0x15e866._0x29ea53,_0x15e866._0x831cb8)]));}['streamViaConfiguredSurface'](_0xec447,_0x2108d7){const _0x36bded={_0x4e621c:0x69,_0x1ebbc3:0xa3,_0x13dfab:0x9e,_0xc3fd3e:0x15,_0xa227da:0x37,_0x1d1610:0x87,_0x46e73d:0x7a,_0x2c85e2:0xca,_0x24a454:0x34,_0x51600f:0xea,_0x45c557:0x104,_0x16eb88:0x114,_0x29ffa3:0x61,_0x3c23fb:0x30,_0x4f43a9:0xdb,_0xd96016:0xc9,_0x4d539b:0x43,_0x2ecf97:0x13,_0x3816bb:0xec},_0x428e31={_0x5cc9f9:0x14f,_0xd27e32:0x152,_0x254865:0xfe},_0x4cf2d8={_0x2286b6:0xe6,_0x20e287:0xc};switch(this[_0x4b15b6(-_0x36bded._0x4e621c,-0xb4,-_0x36bded._0x1ebbc3,-0xf5)]){case _0x37ea9a(-_0x36bded._0x13dfab,_0x36bded._0xc3fd3e,-_0x36bded._0xa227da,0xe):return this[_0x4b15b6(-_0x36bded._0x1d1610,_0x36bded._0x46e73d,-0x41,-0xec)][_0x4b15b6(-_0x36bded._0x2c85e2,-0x59,-_0x36bded._0x24a454,-0x28)](_0xec447,_0x2108d7);case _0x37ea9a(-0xd0,-_0x36bded._0x51600f,-_0x36bded._0x45c557,-0x155):return this[_0x37ea9a(0x75,_0x36bded._0x16eb88,-0x2f,_0x36bded._0x29ffa3)](_0xec447,_0x2108d7);case _0x4b15b6(_0x36bded._0x3c23fb,-0xd,0x63,0x6c):return this[_0x4b15b6(-_0x36bded._0x4f43a9,-0xfe,-_0x36bded._0xd96016,-0x2a)](_0xec447,_0x2108d7);case'openai-responses-ws':return this['responseSocketStream'](_0xec447,_0x2108d7);case _0x37ea9a(_0x36bded._0x4d539b,-0x68,0xed,-0x2a):return this[_0x37ea9a(-_0x36bded._0x2ecf97,-0x5c,-0xa3,0x76)](_0xec447,_0x2108d7);}function _0x4b15b6(_0x3ac337,_0x2a134c,_0x49a83f,_0x3eac85){return _0x4d4006(_0x3eac85,_0x2a134c-0xbf,_0x49a83f- -_0x4cf2d8._0x2286b6,_0x3eac85-_0x4cf2d8._0x20e287);}function _0x37ea9a(_0x36cd85,_0x5105b9,_0x177266,_0x2e7fae){return _0x18006e(_0x36cd85-_0x428e31._0x5cc9f9,_0x5105b9-_0x428e31._0xd27e32,_0x36cd85- -_0x428e31._0x254865,_0x177266);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x37ea9a(-0x82,-0x132,-_0x36bded._0x3816bb,-0xdb)]));}async[_0x18006e(0x136,0x157,0x11d,0xa4)](_0x56682e,_0xdc7fb7){const _0x37933a={_0x460c10:0x2c,_0x19db4c:0xb1,_0x4fe69d:0x110,_0x10acaf:0x164,_0x57a41c:0x51,_0x150bb4:0xc3,_0x13d228:0x24,_0x27fc48:0x62,_0x262eb9:0x7c,_0x33f63b:0x194,_0x209066:0x113,_0x374b0b:0xb0,_0x1a7a54:0xa7,_0x55e320:0x3,_0xa9ce34:0xd8},_0xec6f5e={_0x331bfc:0xd7,_0x1b9357:0x8};function _0x465c74(_0x53f5bf,_0x3335d5,_0x7f1187,_0x4ebcc3){return _0x4d4006(_0x53f5bf,_0x3335d5-0x142,_0x4ebcc3-_0xec6f5e._0x331bfc,_0x4ebcc3-_0xec6f5e._0x1b9357);}const _0x417f50=this['applyModelDefaults'](_0x56682e);if(this[_0x26aeaa(0x7,-_0x37933a._0x460c10,0x4e,-0x19)]!=='auto')return this[_0x465c74(_0x37933a._0x19db4c,_0x37933a._0x4fe69d,0x225,_0x37933a._0x10acaf)](_0x417f50,_0xdc7fb7);if(this[_0x26aeaa(0xaf,-_0x37933a._0x57a41c,-0x6b,0x6)](_0x417f50))return this[_0x26aeaa(_0x37933a._0x150bb4,-0x27,-_0x37933a._0x13d228,-0x3)](_0x417f50,_0xdc7fb7);function _0x26aeaa(_0x548c5c,_0x756b6d,_0x781c78,_0x57824b){return _0x4d4006(_0x548c5c,_0x756b6d-0x1e1,_0x57824b- -0x5c,_0x57824b-0xb9);}try{return await this[_0x26aeaa(-0x6a,-0xa5,-0x42,0x17)](_0x417f50,_0xdc7fb7);}catch(_0x1fb0fd){if(_0x1fb0fd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1fb0fd[_0x26aeaa(_0x37933a._0x27fc48,_0x37933a._0x262eb9,_0x37933a._0x33f63b,_0x37933a._0x209066)]))return this['markModelAsResponsesOnly'](_0x417f50['model']),this[_0x26aeaa(0xf,-_0x37933a._0x374b0b,_0x37933a._0x1a7a54,-_0x37933a._0x55e320)](_0x417f50,_0xdc7fb7);throw this[_0x465c74(0x125,0x51,0x8c,_0x37933a._0xa9ce34)](_0x1fb0fd);}throw _0x1fb0fd;}}async*[_0x4d4006(0x14e,0x27,0xb2,0x12e)](_0x412711,_0x4b9982){const _0x32a277={_0x1a8159:0x678,_0x43e2ab:0x6c7,_0x578058:0x51c,_0x562374:0x499,_0x4a1249:0x49b,_0x32fb17:0x39b,_0xf72b32:0x355,_0x15051b:0x350,_0x37b90f:0x3e2,_0x39f9b2:0x26e,_0x4ea456:0x432,_0x6dbbcb:0x3b4,_0x3a30db:0x3d0,_0x4943dd:0x687,_0x4ca73e:0x2b7,_0x326552:0x4e8,_0x2ed047:0x45b,_0x488c2f:0x45c,_0xc4ab50:0x4de,_0x34d8ab:0x58c,_0x293682:0x226,_0xde708c:0x2d6,_0x56e567:0x28e},_0x44d24b={_0x145021:0x4d9,_0x452a42:0x113},_0x2ed5a3={_0x22aeaf:0x163};function _0x32601c(_0x66a5d4,_0x5b0e9f,_0x5715cd,_0x3beb3d){return _0x18006e(_0x66a5d4-_0x2ed5a3._0x22aeaf,_0x5b0e9f-0x2c,_0x5715cd-0x29c,_0x66a5d4);}const _0x1e756f=this[_0x43afd4(0x63c,_0x32a277._0x1a8159,_0x32a277._0x43e2ab,0x6bc)](_0x412711);function _0x43afd4(_0x31d932,_0x41fc55,_0x411ede,_0x3a7bb2){return _0x4d4006(_0x41fc55,_0x41fc55-0x11b,_0x31d932-_0x44d24b._0x145021,_0x3a7bb2-_0x44d24b._0x452a42);}if(this[_0x43afd4(_0x32a277._0x578058,_0x32a277._0x562374,_0x32a277._0x4a1249,0x59c)]!==_0x32601c(0x3f5,_0x32a277._0x32fb17,0x3dd,0x372)){yield*this[_0x32601c(0x289,0x2a9,0x2e0,0x26c)](_0x1e756f,_0x4b9982);return;}if(this[_0x32601c(_0x32a277._0xf72b32,_0x32a277._0x15051b,0x337,_0x32a277._0x37b90f)](_0x1e756f)){yield*this[_0x32601c(_0x32a277._0x39f9b2,0x24a,0x2f2,0x319)](_0x1e756f,_0x4b9982);return;}try{yield*this[_0x32601c(_0x32a277._0x4ea456,_0x32a277._0x6dbbcb,0x374,_0x32a277._0x3a30db)](_0x1e756f,_0x4b9982);}catch(_0x3d26f1){if(_0x3d26f1 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3d26f1[_0x43afd4(0x648,_0x32a277._0x4943dd,0x5b1,0x5b2)])){this[_0x32601c(0x2bf,0x32a,_0x32a277._0x4ca73e,0x254)](_0x1e756f[_0x43afd4(_0x32a277._0x326552,_0x32a277._0x2ed047,_0x32a277._0x488c2f,_0x32a277._0xc4ab50)]),yield*this[_0x43afd4(0x4f6,_0x32a277._0x34d8ab,0x540,0x4b3)](_0x1e756f,_0x4b9982);return;}throw this[_0x32601c(0x35f,_0x32a277._0x293682,_0x32a277._0xde708c,_0x32a277._0x56e567)](_0x3d26f1);}throw _0x3d26f1;}}async[_0x18006e(0xac,0x97,0x8c,0x16)](_0x237f54){const _0x3ea4aa={_0x276648:0x2d9,_0x510386:0x279,_0x1133ee:0x27b,_0x385908:0x9d,_0x35a712:0x404,_0x37b703:0x456,_0x2ee88f:0x25,_0x53e6e7:0xef,_0x3a4d0c:0x64,_0x443a6f:0x85,_0x5201eb:0x9f,_0x4805d2:0x2be,_0x32ac43:0x312},_0xc7ac98={_0x1d4814:0x306,_0x4cb73f:0x8d,_0x431c3c:0x1c3,_0x2f9e83:0x1b0,_0x4aea6b:0x1eb},_0x113f41={_0x878fae:0x220};function _0x1c57f7(_0x56d20a,_0xd62d10,_0x2b37a5,_0x3d178a){return _0x4d4006(_0x56d20a,_0xd62d10-0x1bf,_0x2b37a5- -0xdd,_0x3d178a-0x10f);}const _0x2051d8=await this[_0xffb86(_0x3ea4aa._0x276648,_0x3ea4aa._0x510386,0x273,_0x3ea4aa._0x1133ee)]({'path':_0x1c57f7(-0x124,-0x15,-0xbd,-_0x3ea4aa._0x385908),'method':_0xffb86(0x363,_0x3ea4aa._0x35a712,_0x3ea4aa._0x37b703,0x3a5),'signal':_0x237f54});if(!_0x2051d8['ok'])throw this['mapApiError'](await this[_0x1c57f7(0xa2,-_0x3ea4aa._0x2ee88f,0x78,_0x3ea4aa._0x53e6e7)](_0x2051d8));function _0xffb86(_0x1965f9,_0x2ca85c,_0xf43f6d,_0x3de336){return _0x18006e(_0x1965f9-0x1c3,_0x2ca85c-0x18b,_0x3de336-_0x113f41._0x878fae,_0x2ca85c);}const _0x5cb8cb=await _0x2051d8[_0x1c57f7(-0x23,_0x3ea4aa._0x3a4d0c,_0x3ea4aa._0x443a6f,_0x3ea4aa._0x5201eb)](),_0xa0b2d5=(_0x5cb8cb[_0xffb86(0x2f3,_0x3ea4aa._0x4805d2,0x3d0,_0x3ea4aa._0x32ac43)]??[])['map'](_0x2fa26f=>{const _0x364fc8={_0x4032df:0x66};function _0x3e71ec(_0x33f21e,_0x322a90,_0x47b025,_0x3e263d){return _0x1c57f7(_0x47b025,_0x322a90-0x33,_0x322a90- -0x10d,_0x3e263d-0x7c);}const _0x12f2bb=createModelInfo(_0x2fa26f);function _0x53101d(_0x5794f5,_0x5e3977,_0x4f9b89,_0x1c2a5c){return _0x1c57f7(_0x5794f5,_0x5e3977-0x1b8,_0x4f9b89-0x46e,_0x1c2a5c-_0x364fc8._0x4032df);}return _0x12f2bb[_0x53101d(0x44d,_0xc7ac98._0x1d4814,0x3cb,0x3f2)]&&this['modelEndpointCache'][_0x3e71ec(-0x2b,-_0xc7ac98._0x4cb73f,-0x91,-0x9d)](_0x12f2bb['id'],_0x12f2bb[_0x3e71ec(-_0xc7ac98._0x431c3c,-_0xc7ac98._0x2f9e83,-_0xc7ac98._0x4aea6b,-0x218)]),_0x12f2bb;});return deduplicateModels(_0xa0b2d5);}};function createHeaders(_0x2f5f98){const _0x41dae1={_0x13b71f:0x168,_0x556c48:0x451,_0x423fa4:0x4d8},_0x5845c8={_0x694cae:0x161,_0x1c926a:0x38},_0x5e038d={_0x4d3ad3:0x88,_0x529534:0x15e},_0x225c2d=new Headers();function _0x319b85(_0x4884e6,_0x5a75f6,_0x28390d,_0x15a3b4){return _0x4d4006(_0x5a75f6,_0x5a75f6-0x4,_0x28390d-_0x5e038d._0x4d3ad3,_0x15a3b4-_0x5e038d._0x529534);}for(const [_0x15bd27,_0x1f6d44]of Object[_0x319b85(0x5a,0xfa,0xf6,_0x41dae1._0x13b71f)](_0x2f5f98)){_0x225c2d[_0xe3cfb3(0x4bd,0x571,_0x41dae1._0x556c48,_0x41dae1._0x423fa4)](_0x15bd27,_0x1f6d44);}function _0xe3cfb3(_0x2e29b9,_0x24b6e9,_0x5edfde,_0xe163cb){return _0x4d4006(_0x24b6e9,_0x24b6e9-_0x5845c8._0x694cae,_0x2e29b9-0x360,_0xe163cb-_0x5845c8._0x1c926a);}return _0x225c2d;}async function fetchRawResponse(_0x348588){const _0x5620f8={_0x4524c5:0x459,_0x1adfd5:0x30d,_0x102b66:0x3b2,_0x113148:0x2fc,_0x4a6dab:0x3a3,_0x483d35:0x455,_0x5412b8:0x49d,_0x17d2fc:0x599,_0x34b7c2:0x527,_0x22d055:0x486},_0x11efcf={_0x28ec85:0x1ce},_0x4d87e7={_0x209004:0xb1};function _0xdc44b1(_0x9761f1,_0x42a8b9,_0x330df4,_0x4157a5){return _0x18006e(_0x9761f1-0x137,_0x42a8b9-_0x4d87e7._0x209004,_0x330df4-0x359,_0x4157a5);}function _0x3f675d(_0x55e7bf,_0x27fe6c,_0x5d5eb3,_0xb74746){return _0x4d4006(_0x27fe6c,_0x27fe6c-_0x11efcf._0x28ec85,_0xb74746-0x2f2,_0xb74746-0x59);}const _0x5b9e52=_0x348588['fetch']??globalThis[_0xdc44b1(0x436,0x3f3,_0x5620f8._0x4524c5,0x426)];return _0x5b9e52(_0x348588[_0x3f675d(_0x5620f8._0x1adfd5,_0x5620f8._0x102b66,0x239,_0x5620f8._0x113148)],{'method':_0x3f675d(0x3f6,_0x5620f8._0x4a6dab,0x3b7,0x41f),'headers':createHeaders(_0x348588[_0xdc44b1(_0x5620f8._0x483d35,0x5a5,0x4e9,_0x5620f8._0x5412b8)]),'body':JSON['stringify'](_0x348588[_0xdc44b1(_0x5620f8._0x17d2fc,0x46b,0x501,_0x5620f8._0x34b7c2)]),'signal':_0x348588[_0xdc44b1(0x45e,0x434,_0x5620f8._0x22d055,0x3e0)]});}async function fetchJsonResponse(_0x2cdbbf){const _0x25a7ab={_0x35d4d1:0x247,_0x133693:0x2fb,_0x10c6b4:0x3d2,_0x5d4afa:0x31f,_0x15e28d:0x2f2,_0x5e69bc:0x35e,_0x15a38c:0x59,_0x147ce9:0x7b,_0x2d048b:0xc,_0x254e05:0x34a,_0x471c6a:0x309,_0x214f01:0x39d},_0x2bfe61={_0x166f97:0xa2,_0x579666:0x95,_0xc04ed2:0x3b},_0x29d993={_0x1a7108:0x36,_0x157634:0x1bc},_0xb379cb=await fetchRawResponse(_0x2cdbbf);function _0x2f80f0(_0x4c3c0b,_0x234e6e,_0x548389,_0xf7adc8){return _0x18006e(_0x4c3c0b-0x2e,_0x234e6e-_0x29d993._0x1a7108,_0x234e6e-_0x29d993._0x157634,_0x548389);}function _0x23a531(_0x1ae2db,_0x3b9b1b,_0x4224ad,_0x5c3cf5){return _0x4d4006(_0x5c3cf5,_0x3b9b1b-_0x2bfe61._0x166f97,_0x4224ad- -_0x2bfe61._0x579666,_0x5c3cf5-_0x2bfe61._0xc04ed2);}if(!_0xb379cb['ok']){const _0x56409e=await _0xb379cb[_0x2f80f0(0x2cb,0x2c7,_0x25a7ab._0x35d4d1,_0x25a7ab._0x133693)](),_0x990a78=_0x56409e[_0x2f80f0(_0x25a7ab._0x10c6b4,_0x25a7ab._0x5d4afa,_0x25a7ab._0x15e28d,_0x25a7ab._0x5e69bc)]()||_0xb379cb[_0x23a531(_0x25a7ab._0x15a38c,_0x25a7ab._0x147ce9,-_0x25a7ab._0x2d048b,-0x5a)]||'Unknown\x20provider\x20error';throw new Error(_0x2f80f0(_0x25a7ab._0x254e05,_0x25a7ab._0x471c6a,_0x25a7ab._0x214f01,0x3b2)+_0xb379cb['status']+':\x20'+_0x990a78);}return await _0xb379cb['json']();}function findLastMessage(_0xa98cb2,_0x3f1c39){for(let _0x45bb81=_0xa98cb2['length']-0x1;_0x45bb81>=0x0;_0x45bb81-=0x1){if(_0xa98cb2[_0x45bb81]['role']===_0x3f1c39)return _0xa98cb2[_0x45bb81];}return void 0x0;}function hasTool(_0x5ec286,_0x37ed62){const _0xa7da64={_0x496c09:0x299,_0x5092e:0x1b5,_0x924c23:0x236},_0x2b4a1d={_0x372c5f:0xe8,_0x2d8051:0x12e},_0x4cfa0a={_0x19f0d9:0x1fb,_0x29fe11:0x24};function _0x3d55ca(_0x2815b8,_0x4f13fe,_0x3ae066,_0xc99e2e){return _0x4d4006(_0x3ae066,_0x4f13fe-0x81,_0xc99e2e-_0x4cfa0a._0x19f0d9,_0xc99e2e-_0x4cfa0a._0x29fe11);}function _0x143e59(_0x6053e7,_0x1073cb,_0x50a8fe,_0xf98f5d){return _0x18006e(_0x6053e7-_0x2b4a1d._0x372c5f,_0x1073cb-0x19f,_0x6053e7- -_0x2b4a1d._0x2d8051,_0x50a8fe);}return _0x5ec286[_0x3d55ca(0x22c,0x31f,0x32e,0x267)][_0x3d55ca(_0xa7da64._0x496c09,_0xa7da64._0x5092e,0x2b9,_0xa7da64._0x924c23)](_0x26deac=>_0x26deac[_0x3d55ca(0x316,0x3ae,0x3e4,0x353)]===_0x37ed62);}function createMockResponse(_0x2e927a,_0x342813,_0x1f455c,_0x52fc4f){return{'id':_0x2e927a,'content':_0x342813,'stopReason':_0x1f455c,'usage':_0x52fc4f};}var MockModel=class{[_0x18006e(0x89,-0x43,0x48,0x4a)];['maxTokens'];[_0x18006e(0x1c4,0x1b4,0x12a,0x179)]=[];[_0x4d4006(0x15a,0x191,0xd6,0xe5)];constructor(_0x7bd564={}){const _0x2b0220={_0x4a0acc:0x1c4,_0x1a545a:0x226,_0x1b0cbe:0x160,_0x18dacc:0x7a,_0x5c88f2:0x11,_0x1fee72:0x8f,_0x5c7647:0x110,_0x5b2617:0x7,_0x481e73:0x67,_0x185035:0x111,_0x26f2e7:0xd7,_0x264f60:0x88,_0x32c439:0xf5,_0x48737f:0x111,_0x368941:0xfd,_0x146e75:0x1c6,_0x57d0e9:0x99,_0x496401:0xfb},_0x1924d6={_0x391d6c:0x1d3},_0x4dceed={_0x23a6d0:0x106};this[_0x3f6eb4(-_0x2b0220._0x4a0acc,-_0x2b0220._0x1a545a,-_0x2b0220._0x1b0cbe,-0x1b7)]=_0x7bd564[_0x16df09(_0x2b0220._0x18dacc,_0x2b0220._0x5c88f2,-0x44,-0xc4)]??_0x3f6eb4(-_0x2b0220._0x1fee72,-_0x2b0220._0x5c7647,_0x2b0220._0x5b2617,-0xb2);function _0x16df09(_0x2783c9,_0x312a91,_0x2de6e7,_0x3719ad){return _0x4d4006(_0x2783c9,_0x312a91-_0x4dceed._0x23a6d0,_0x2de6e7- -0x53,_0x3719ad-0x144);}function _0x3f6eb4(_0x1cab31,_0x33a667,_0x31afa4,_0x3f4d8d){return _0x4d4006(_0x33a667,_0x33a667-0xed,_0x1cab31- -_0x1924d6._0x391d6c,_0x3f4d8d-0x1d3);}this[_0x16df09(0x1b3,_0x2b0220._0x481e73,_0x2b0220._0x185035,_0x2b0220._0x26f2e7)]=_0x7bd564[_0x16df09(_0x2b0220._0x264f60,_0x2b0220._0x32c439,_0x2b0220._0x48737f,0x88)]??0x4000,this['reasoning']=_0x7bd564[_0x3f6eb4(-_0x2b0220._0x368941,-_0x2b0220._0x146e75,-0xed,-_0x2b0220._0x57d0e9)]?structuredClone(_0x7bd564[_0x16df09(-0x38,_0x2b0220._0x496401,0x83,0x30)]):void 0x0;}async[_0x4d4006(0x195,0xaf,0xe4,0xed)](_0x5e14a4,_0x4d29c9){const _0xd1d6c1={_0xf6a6c3:0x159,_0x239935:0x1f7,_0x2a0816:0x500,_0x331998:0x4c9,_0x5f0928:0x4e8,_0x2218da:0x1ff,_0x48ad75:0x2af,_0x486208:0x238,_0x3086fc:0x3ed,_0xf1e3ca:0x471,_0x403d44:0x46d,_0x58ac7c:0x16e,_0x1855a8:0x1fb,_0x341549:0x212,_0x303452:0x4c4,_0x1eb37a:0x45d,_0x1acb41:0x452,_0x4f045a:0x4b4,_0x26f6d0:0x255,_0x5a6562:0x19a,_0x4a6293:0x483,_0x414807:0x574,_0x38a336:0x419,_0x470466:0xe6,_0x200d6d:0xff,_0x78f6d5:0x186,_0x2c3165:0x2e6,_0x115da2:0x185,_0x22a901:0x23e,_0x24bef1:0x297,_0x150f52:0x4bd,_0x2ddbff:0x3d9,_0x7b289a:0x42a,_0x6ef9:0x472,_0xa57e46:0x190,_0x2ee365:0x1f3},_0x1c8c8e={_0x209736:0x5b,_0x244909:0x121},_0x2f2523={_0x19488c:0x5f,_0x58959d:0xac},_0x220b59={...structuredClone(_0x5e14a4),..._0x5e14a4['reasoning']===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x3fec9b(_0xd1d6c1._0xf6a6c3,0x12c,0x218,_0xd1d6c1._0x239935)])}:{}};this[_0x49e9e2(0x448,_0xd1d6c1._0x2a0816,_0xd1d6c1._0x331998,_0xd1d6c1._0x5f0928)][_0x3fec9b(_0xd1d6c1._0x2218da,_0xd1d6c1._0x48ad75,0x23b,_0xd1d6c1._0x486208)](_0x220b59);function _0x49e9e2(_0x12b0b7,_0x5882f9,_0x182a83,_0x5e1026){return _0x4d4006(_0x12b0b7,_0x5882f9-_0x2f2523._0x19488c,_0x5882f9-0x40f,_0x5e1026-_0x2f2523._0x58959d);}const _0x1c4295=findLastMessage(_0x220b59[_0x49e9e2(0x46f,0x3fa,0x339,_0xd1d6c1._0x3086fc)],_0x49e9e2(0x35f,0x3fc,_0xd1d6c1._0xf1e3ca,_0xd1d6c1._0x403d44));function _0x3fec9b(_0x1a300e,_0x4372f3,_0x54081e,_0x3f1104){return _0x4d4006(_0x1a300e,_0x4372f3-_0x1c8c8e._0x209736,_0x3f1104-_0x1c8c8e._0x244909,_0x3f1104-0x1a3);}const _0x964e7=getToolResultBlocks(_0x1c4295),_0x202f79='assistant-'+this[_0x3fec9b(_0xd1d6c1._0x58ac7c,0x209,_0xd1d6c1._0x1855a8,_0xd1d6c1._0x341549)][_0x49e9e2(_0xd1d6c1._0x303452,0x4fb,0x539,0x5bb)];if(_0x964e7['length']>0x0)return createMockResponse(_0x202f79,[{'type':_0x49e9e2(_0xd1d6c1._0x1eb37a,0x4e1,_0xd1d6c1._0x1acb41,_0xd1d6c1._0x4f045a),'text':_0x3fec9b(0x2e5,_0xd1d6c1._0x26f6d0,_0xd1d6c1._0x5a6562,0x21f)+_0x964e7[0x0][_0x49e9e2(_0xd1d6c1._0x4a6293,0x4d1,_0xd1d6c1._0x414807,_0xd1d6c1._0x38a336)]}],_0x3fec9b(_0xd1d6c1._0x470466,_0xd1d6c1._0x200d6d,0x14f,_0xd1d6c1._0x78f6d5),{'inputTokens':0x78,'outputTokens':0x28});const _0x488b46=getTextFromMessage(_0x1c4295);if(/list .*files|workspace/i['test'](_0x488b46)&&hasTool(_0x220b59,_0x3fec9b(0x12d,0x1e1,0xef,0x179)))return createMockResponse(_0x202f79,[{'type':'tool_use','id':_0x3fec9b(_0xd1d6c1._0x2c3165,0x189,_0xd1d6c1._0x115da2,_0xd1d6c1._0x22a901)+this[_0x3fec9b(0x24d,0x1f3,_0xd1d6c1._0x24bef1,0x212)][_0x49e9e2(_0xd1d6c1._0x150f52,0x4fb,0x53f,0x460)],'name':_0x49e9e2(_0xd1d6c1._0x2ddbff,0x467,0x3ca,_0xd1d6c1._0x7b289a),'input':{'command':'ls\x20-la'}}],_0x49e9e2(0x404,_0xd1d6c1._0x6ef9,0x4fb,0x4b3),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x202f79,[{'type':_0x3fec9b(_0xd1d6c1._0xa57e46,0x1bd,0x283,_0xd1d6c1._0x2ee365),'text':'Direct\x20answer:\x20'+_0x488b46}],_0x3fec9b(0x1ef,0xc2,0x207,0x186),{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
1
+ (function(_0x385a8a,_0x58039d){const _0x2f7fb5={_0x227b35:0x6b,_0x95e879:0x34,_0x469675:0x15c,_0x5a82dc:0x145,_0x34eafa:0x261,_0x200058:0x106,_0x3e0a08:0x95,_0x49841a:0x21d,_0x210c33:0x18f,_0x138ff8:0x159,_0x39f043:0x123,_0x109b40:0x21e,_0x4daacc:0x1e2,_0x22e7db:0x161,_0x374cee:0xb2,_0x19e4c6:0x98,_0x2d9641:0xad,_0x5ae0e7:0x16d,_0x225428:0x14a,_0x162ecd:0x196,_0x122941:0xf6,_0x55f660:0x119,_0x1105ed:0x39,_0x26d0a9:0xd3,_0x507d9f:0xeb,_0x5218fd:0x18a,_0x1ff74a:0x10a,_0x217ab0:0xef,_0x29a590:0xc2},_0x268e6c={_0x4165db:0x312};function _0x49777f(_0x41cdbd,_0x1df2ba,_0x946391,_0x5ad802){return _0x1f89(_0x946391- -_0x268e6c._0x4165db,_0x5ad802);}function _0x5695f3(_0x315fc0,_0x1df979,_0x183990,_0x545399){return _0x1f89(_0x545399- -0xfe,_0x1df979);}const _0x2190c8=_0x385a8a();while(!![]){try{const _0x145f5a=-parseInt(_0x5695f3(_0x2f7fb5._0x227b35,_0x2f7fb5._0x95e879,0x75,0x68))/0x1+-parseInt(_0x49777f(-_0x2f7fb5._0x469675,-_0x2f7fb5._0x5a82dc,-0x1a0,-_0x2f7fb5._0x34eafa))/0x2*(parseInt(_0x5695f3(0x1cf,_0x2f7fb5._0x200058,_0x2f7fb5._0x3e0a08,0x126))/0x3)+-parseInt(_0x49777f(-_0x2f7fb5._0x49841a,-_0x2f7fb5._0x210c33,-_0x2f7fb5._0x138ff8,-_0x2f7fb5._0x39f043))/0x4*(parseInt(_0x49777f(-_0x2f7fb5._0x109b40,-0x278,-_0x2f7fb5._0x4daacc,-_0x2f7fb5._0x22e7db))/0x5)+-parseInt(_0x49777f(-_0x2f7fb5._0x374cee,-0x141,-_0x2f7fb5._0x19e4c6,-_0x2f7fb5._0x2d9641))/0x6*(-parseInt(_0x5695f3(_0x2f7fb5._0x5ae0e7,0xde,_0x2f7fb5._0x225428,0x105))/0x7)+-parseInt(_0x49777f(-0xeb,-0xfd,-_0x2f7fb5._0x162ecd,-0x179))/0x8*(-parseInt(_0x5695f3(0x4d,0x1a8,0x153,_0x2f7fb5._0x122941))/0x9)+-parseInt(_0x49777f(-_0x2f7fb5._0x55f660,-0x195,-0x11f,-0x142))/0xa*(parseInt(_0x49777f(-_0x2f7fb5._0x1105ed,-_0x2f7fb5._0x26d0a9,-_0x2f7fb5._0x507d9f,-_0x2f7fb5._0x5218fd))/0xb)+parseInt(_0x49777f(-_0x2f7fb5._0x1ff74a,-_0x2f7fb5._0x217ab0,-_0x2f7fb5._0x29a590,-0x4a))/0xc;if(_0x145f5a===_0x58039d)break;else _0x2190c8['push'](_0x2190c8['shift']());}catch(_0x4178e7){_0x2190c8['push'](_0x2190c8['shift']());}}}(_0x3352,0x432a1));import{toOpenAiResponsesRequest}from'../chunk-4DNIDCX7.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x18dfc5){const _0x5896d2={_0x26a334:0x4fb,_0x38213a:0x575,_0x3d3cd2:0x5d3},_0x9ce705={_0x362afb:0x32b};function _0x417e62(_0x7e3de5,_0x254127,_0x1b5b71,_0x3bc2f6){return _0x1f89(_0x254127-0x2cd,_0x3bc2f6);}function _0x2a6235(_0x49f4c3,_0x26ec11,_0x4602c1,_0x5b556e){return _0x1f89(_0x5b556e-_0x9ce705._0x362afb,_0x4602c1);}super(_0x18dfc5),this[_0x417e62(_0x5896d2._0x26a334,_0x5896d2._0x38213a,0x61f,_0x5896d2._0x3d3cd2)]=_0x417e62(0x40c,0x447,0x47e,0x40d);}},ProviderStreamEventError=class extends Error{[_0x2c5722(0x17c,0x1a2,0x1bc,0x1b6)];['retryable'];[_0x949fe0(-0x1ce,-0x1b4,-0x188,-0x196)];constructor(_0x2551a0,_0x14d2d3={}){const _0x154ede={_0x5847ce:0x464,_0x35cfe2:0x40e,_0x2f6e89:0x4d1,_0x93362d:0x554,_0x2750bd:0x5e9,_0x1a54c5:0x58f,_0x3239b6:0x4c3,_0x33fd59:0x4d9,_0x52442c:0x410,_0x40ce62:0x49a,_0x31e8d0:0x533,_0x480e12:0x581,_0x2ce804:0x62b,_0x22a8ba:0x471,_0x658764:0x3e3},_0x1608b9={_0xb9672e:0x31d,_0x5d3737:0x6e};super(_0x2551a0);function _0x46c238(_0x337ecc,_0x17b2ef,_0x179bcb,_0x1a1b48){return _0x949fe0(_0x337ecc,_0x179bcb-0x68c,_0x179bcb-0x52,_0x1a1b48-0x160);}this[_0x2bc796(_0x154ede._0x5847ce,_0x154ede._0x35cfe2,_0x154ede._0x2f6e89,_0x154ede._0x93362d)]=_0x46c238(_0x154ede._0x2750bd,0x557,_0x154ede._0x1a54c5,0x59b);function _0x2bc796(_0x1c1da2,_0x333dd8,_0x5f464a,_0x13df32){return _0x2c5722(_0x1c1da2,_0x333dd8-0x1d4,_0x5f464a-_0x1608b9._0xb9672e,_0x13df32-_0x1608b9._0x5d3737);}this[_0x2bc796(_0x154ede._0x3239b6,0x561,_0x154ede._0x33fd59,0x4ff)]=_0x14d2d3['code'],this[_0x2bc796(0x4d9,_0x154ede._0x52442c,_0x154ede._0x40ce62,_0x154ede._0x31e8d0)]=_0x14d2d3[_0x46c238(0x517,_0x154ede._0x480e12,0x565,_0x154ede._0x2ce804)]??!![],this[_0x2bc796(_0x154ede._0x22a8ba,0x494,0x40d,_0x154ede._0x658764)]=_0x14d2d3[_0x46c238(0x4f5,0x495,0x4d8,0x46d)];}};function _0x949fe0(_0x128800,_0x361011,_0x5b2812,_0xdc496c){return _0x1f89(_0x361011- -0x398,_0x128800);}function isRetryableProviderStreamEventError(_0x42fb0e){const _0x543088={_0x2fea3f:0x19,_0x58becc:0xbb},_0x481092={_0x41a97a:0x179};function _0x4c2150(_0x29b3a2,_0x4a22e7,_0x1acd4d,_0x5cd069){return _0x2c5722(_0x29b3a2,_0x4a22e7-0x181,_0x5cd069- -0x19a,_0x5cd069-_0x481092._0x41a97a);}return _0x42fb0e instanceof ProviderStreamEventError&&_0x42fb0e[_0x4c2150(-0x37,_0x543088._0x2fea3f,-_0x543088._0x58becc,-0x1d)];}var ANTHROPIC_MESSAGES_SURFACE=_0x2c5722(0x12f,0x124,0x139,0xb5),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x2c5722(0x5d,-0x1b,0x7a,-0x4d);function parseToolInput(_0x5280b7){const _0x4c283={_0x5e4ca6:0xfc},_0x552f75={_0x515dfe:0x154,_0x1197d3:0x72};function _0x28ee2c(_0x5b07a6,_0x2250eb,_0x43241c,_0x4037f2){return _0x2c5722(_0x43241c,_0x2250eb-_0x552f75._0x515dfe,_0x5b07a6-0x69,_0x4037f2-_0x552f75._0x1197d3);}try{return JSON[_0x28ee2c(_0x4c283._0x5e4ca6,0x94,0x1b4,0x1bd)](_0x5280b7);}catch{return _0x5280b7;}}function resolveReasoningVisibility(_0x5bdc3e){const _0x2daae4={_0x41fa8b:0x19d,_0x111f7b:0x106,_0x5b2b2f:0x242,_0x373b54:0x10d,_0x3af566:0x1ff,_0x441514:0x1e3,_0x4d2079:0x147},_0x55ce2e={_0x3ce4c2:0x415,_0x253fbf:0x59,_0x54bcfb:0xf9};function _0x399627(_0x6bd777,_0x4b0957,_0x1d3af5,_0x5a843d){return _0x949fe0(_0x1d3af5,_0x6bd777-0x315,_0x1d3af5-0x88,_0x5a843d-0x16a);}function _0x4067c0(_0x5e19ac,_0x287396,_0x24a387,_0x5a57ea){return _0x949fe0(_0x24a387,_0x5e19ac-_0x55ce2e._0x3ce4c2,_0x24a387-_0x55ce2e._0x253fbf,_0x5a57ea-_0x55ce2e._0x54bcfb);}return _0x5bdc3e['reasoning']?.[_0x399627(_0x2daae4._0x41fa8b,_0x2daae4._0x111f7b,_0x2daae4._0x5b2b2f,_0x2daae4._0x373b54)]??_0x399627(_0x2daae4._0x3af566,_0x2daae4._0x441514,0x18b,_0x2daae4._0x4d2079);}function isUserVisibleThinking(_0xc3725a){const _0x1fe465={_0x141c2d:0x29d,_0x3ba36d:0x330,_0x315e13:0x335,_0x525be1:0x36d,_0x581444:0x317,_0x48c770:0x31c,_0x5bf2e0:0x3ad},_0x405ffb={_0x366fd9:0x75},_0x53a473={_0x4745b9:0x1a};function _0x5548d9(_0xe47008,_0xf1e3f1,_0x49a17b,_0x591d19){return _0x2c5722(_0xf1e3f1,_0xf1e3f1-_0x53a473._0x4745b9,_0x591d19-0x21f,_0x591d19-0xf2);}function _0x4f56e1(_0x3e09b1,_0x245136,_0x549bd2,_0x3580ea){return _0x949fe0(_0x549bd2,_0x3e09b1-0x529,_0x549bd2-0x57,_0x3580ea-_0x405ffb._0x366fd9);}const _0xa50e8=resolveAnthropicThinkingConfig(_0xc3725a[_0x5548d9(0x3ff,0x36c,_0x1fe465._0x141c2d,0x344)]);return _0xa50e8!==void 0x0&&_0xa50e8[_0x5548d9(_0x1fe465._0x3ba36d,_0x1fe465._0x315e13,0x29c,0x29c)]!==_0x5548d9(0x2f2,_0x1fe465._0x525be1,0x355,0x327)&&resolveReasoningVisibility(_0xc3725a)===_0x5548d9(_0x1fe465._0x581444,0x3be,_0x1fe465._0x48c770,_0x1fe465._0x5bf2e0);}function createAnthropicThinkingBody(_0x3f5b33){const _0x1c8c3b={_0x43a5:0x6f,_0x44d161:0xd6,_0x693b8a:0x2e,_0x29d4fe:0x49,_0x3871c5:0xef,_0x27adec:0x15b,_0x694de9:0x193,_0x4081cf:0x21,_0x41e184:0x77,_0xaad97a:0x15c,_0x437899:0x101,_0x32c1e5:0xa3,_0x41b1f8:0x109,_0x2e3517:0x6b,_0x11e9f2:0xa9,_0x18cd40:0x9,_0x3daac5:0x13f,_0x5137ab:0x7d,_0x3985b5:0xed,_0x4bfcaa:0xe9,_0x4b531c:0xab,_0x5f53f6:0xca,_0x3dc10e:0x171,_0x4cf7fe:0x26,_0x3d0c3d:0x65,_0x19719b:0xb3,_0x472594:0x58,_0x3ad630:0xe1,_0x3896a3:0x91},_0x10bc8c={_0x314219:0x0,_0x179f58:0x9f},_0x39591e={_0x2c026d:0x194},_0x1cbf0b=resolveAnthropicThinkingConfig(_0x3f5b33[_0x14fdf0(-0x2f,-_0x1c8c3b._0x43a5,-0x2e,-_0x1c8c3b._0x44d161)]);if(!_0x1cbf0b||_0x1cbf0b[_0x37b3da(-_0x1c8c3b._0x693b8a,_0x1c8c3b._0x29d4fe,_0x1c8c3b._0x3871c5,0x7d)]===_0x37b3da(_0x1c8c3b._0x27adec,0x165,_0x1c8c3b._0x694de9,0x108))return{};const _0x3a1f81=_0x1cbf0b[_0x37b3da(-_0x1c8c3b._0x4081cf,0xd2,_0x1c8c3b._0x41e184,0x64)]??(isUserVisibleThinking(_0x3f5b33)?_0x14fdf0(-0xdf,-_0x1c8c3b._0xaad97a,-_0x1c8c3b._0x437899,-0x21e):_0x37b3da(0x86,_0x1c8c3b._0x32c1e5,_0x1c8c3b._0x41b1f8,_0x1c8c3b._0x2e3517)),_0x19dcc4=_0x1cbf0b['interleaved']?{'anthropic-beta':_0x14fdf0(-0x86,-0xc5,-_0x1c8c3b._0x11e9f2,-_0x1c8c3b._0x18cd40)}:void 0x0;function _0x14fdf0(_0xe747c2,_0xa1f3d4,_0x188940,_0x3ac7d6){return _0x2c5722(_0x3ac7d6,_0xa1f3d4-0x1aa,_0xa1f3d4- -_0x39591e._0x2c026d,_0x3ac7d6-0x1db);}if(_0x1cbf0b['type']===_0x37b3da(_0x1c8c3b._0x3daac5,0x62,0x46,0xa7))return{..._0x19dcc4?{'headers':_0x19dcc4}:{},'thinking':{'type':_0x14fdf0(-_0x1c8c3b._0x5137ab,-_0x1c8c3b._0x3985b5,-0x164,-_0x1c8c3b._0x4bfcaa),'budget_tokens':_0x1cbf0b[_0x37b3da(0xd8,0x2f,_0x1c8c3b._0x4b531c,0x62)],'display':_0x3a1f81}};function _0x37b3da(_0x2126dc,_0x1d9642,_0x5b159b,_0x49cb92){return _0x2c5722(_0x2126dc,_0x1d9642-0x29,_0x49cb92-_0x10bc8c._0x314219,_0x49cb92-_0x10bc8c._0x179f58);}return{..._0x19dcc4?{'headers':_0x19dcc4}:{},'thinking':{'type':_0x37b3da(0x158,_0x1c8c3b._0x5f53f6,0x1af,_0x1c8c3b._0x3dc10e),..._0x1cbf0b[_0x37b3da(_0x1c8c3b._0x4cf7fe,0x3f,_0x1c8c3b._0x3d0c3d,_0x1c8c3b._0x19719b)]?{'effort':_0x1cbf0b[_0x14fdf0(-_0x1c8c3b._0x472594,-_0x1c8c3b._0x3ad630,-_0x1c8c3b._0x3896a3,-0x156)]}:{},'display':_0x3a1f81}};}function toAnthropicRequestContent(_0x2556af){const _0xddcf17={_0x21f80f:0x5e6,_0x5abc96:0x5af,_0x506280:0x65d,_0x8f1c7a:0x4c1,_0x5bb9a9:0x596,_0x198d1a:0x525,_0x4477ba:0x494,_0x390ac4:0x557,_0x1afa03:0x4a7,_0x2c2ca2:0x54c,_0x28501e:0x479,_0x167682:0x4ed,_0x59f82b:0x55a,_0xcdc896:0x45f,_0x35607f:0x4a7,_0x306483:0x50c,_0x14c3e8:0x500,_0x207c03:0x4f6,_0x464421:0x59e,_0x283af9:0x58a,_0x47b253:0x612,_0x3db07e:0x58a,_0x11ae15:0x571,_0xe3a0ce:0x505,_0x870c65:0x57d,_0x583a76:0x564,_0x3ea323:0x61c,_0x36d76e:0x620,_0x2f0a8f:0x5d5,_0x34095b:0x578,_0x4efe63:0x68c},_0x2dd06c={_0x35f591:0x72c,_0x4bb8de:0xb6};function _0x166a2c(_0x3269de,_0xa6165b,_0x5d8801,_0x2b3744){return _0x949fe0(_0x2b3744,_0x3269de-0x714,_0x5d8801-0x139,_0x2b3744-0x71);}if(_0x2556af['role']===_0x166a2c(_0xddcf17._0x21f80f,_0xddcf17._0x5abc96,_0xddcf17._0x506280,0x5d7)&&_0x2556af[_0x166a2c(0x4f2,_0xddcf17._0x8f1c7a,_0xddcf17._0x5bb9a9,_0xddcf17._0x198d1a)]?.['anthropicAssistantContent'])return structuredClone(_0x2556af[_0x57d3a0(_0xddcf17._0x4477ba,0x4e4,0x50a,0x523)][_0x166a2c(0x602,0x6bc,_0xddcf17._0x390ac4,0x693)]);function _0x57d3a0(_0xc734ef,_0x31100f,_0x2b1fc9,_0x3c8022){return _0x949fe0(_0x31100f,_0x2b1fc9-_0x2dd06c._0x35f591,_0x2b1fc9-0x1f4,_0x3c8022-_0x2dd06c._0x4bb8de);}const _0x519fe0=[];for(const _0x5e7d80 of normalizeContent(_0x2556af[_0x166a2c(_0xddcf17._0x1afa03,_0xddcf17._0x2c2ca2,_0xddcf17._0x28501e,0x51c)])){if(_0x5e7d80[_0x166a2c(_0xddcf17._0x167682,_0xddcf17._0x59f82b,_0xddcf17._0xcdc896,_0xddcf17._0x35607f)]===_0x57d3a0(0x587,0x574,0x4ed,0x4cd))continue;if(_0x5e7d80[_0x57d3a0(0x4d9,_0xddcf17._0x306483,0x505,_0xddcf17._0x14c3e8)]===_0x57d3a0(_0xddcf17._0x207c03,0x4db,_0xddcf17._0x464421,_0xddcf17._0x283af9)){_0x519fe0['push']({'type':'thinking','thinking':_0x5e7d80[_0x166a2c(0x5c0,0x51a,_0xddcf17._0x47b253,_0xddcf17._0x3db07e)],'signature':_0x5e7d80['signature']});continue;}if(_0x5e7d80[_0x57d3a0(0x5d0,_0xddcf17._0x11ae15,_0xddcf17._0xe3a0ce,_0xddcf17._0x870c65)]===_0x57d3a0(_0xddcf17._0x583a76,0x600,_0xddcf17._0x3ea323,_0xddcf17._0x36d76e)){_0x519fe0['push']({'type':_0x166a2c(_0xddcf17._0x2f0a8f,_0xddcf17._0x34095b,0x521,0x527),'data':_0x5e7d80[_0x57d3a0(0x5dd,_0xddcf17._0x4efe63,0x5f6,0x54a)]});continue;}_0x519fe0[_0x57d3a0(0x4b3,0x5cf,0x546,0x600)](structuredClone(_0x5e7d80));}return _0x519fe0;}function createAnthropicRequest(_0x5996fd,_0x3de49f){const _0x2dc062={_0x864701:0x4e,_0x5b96ea:0xc3,_0x3ff785:0x10b,_0x246538:0xc6,_0x19eea4:0xc0,_0x329b00:0x4b,_0x2f6484:0x72},_0x469a3d={_0x2aadb6:0x1d1},_0x1b9707={_0x33866c:0x134,_0x2a3921:0x1ed,_0xcd6fdb:0xbc},_0x1dfdc4={_0x343b92:0x1b8},_0xd5c967={_0x3e1540:0x11};function _0x168315(_0xb7e346,_0x17223e,_0x26a7a9,_0x469e00){return _0x949fe0(_0x17223e,_0x469e00-0x288,_0x26a7a9-_0xd5c967._0x3e1540,_0x469e00-0x1c9);}function _0x4e9878(_0x1e7135,_0x247c7b,_0xff447f,_0x217e4c){return _0x2c5722(_0x217e4c,_0x247c7b-_0x1dfdc4._0x343b92,_0xff447f-0x109,_0x217e4c-0x17e);}const _0x1c1c42=toProviderModelRequest(_0x5996fd),_0x9f23eb=createAnthropicThinkingBody(_0x5996fd);return{'accept':_0x3de49f?_0x168315(-0x1e,_0x2dc062._0x864701,_0x2dc062._0x5b96ea,0x92):_0x168315(_0x2dc062._0x3ff785,_0x2dc062._0x246538,0xe8,_0x2dc062._0x19eea4),'body':{..._0x1c1c42,'messages':_0x5996fd['messages']['map'](_0x17cf44=>{function _0x573bee(_0x1dcf05,_0x5777e3,_0x2adfae,_0x3e6c82){return _0x168315(_0x1dcf05-_0x1b9707._0x33866c,_0x1dcf05,_0x2adfae-_0x1b9707._0x2a3921,_0x2adfae-_0x1b9707._0xcd6fdb);}return{'role':_0x17cf44[_0x573bee(0x199,0x120,_0x469a3d._0x2aadb6,0x137)],'content':toAnthropicRequestContent(_0x17cf44)};}),..._0x9f23eb['thinking']?{'thinking':_0x9f23eb['thinking']}:{},..._0x3de49f?{'stream':!![]}:{}},..._0x9f23eb['headers']?{'headers':_0x9f23eb['headers']}:{},'path':_0x168315(-0x52,-_0x2dc062._0x329b00,0xa,_0x2dc062._0x2f6484)};}function parseAnthropicResponse(_0x3341bf,_0x22b010){const _0x5b46ee={_0x1b598e:0x2e5,_0xcf6b05:0x2e3,_0x46f637:0x2b2,_0x4fc483:0x22f,_0x3b162e:0x21f,_0x43be97:0x2d4,_0x558bc3:0x39c,_0x86aa30:0x3df,_0x491b1b:0x1f7,_0x5f473c:0x11e,_0x1f4ee7:0x17e,_0x29b745:0x23b,_0x13f84c:0x356,_0x46e11a:0x293,_0x11f4a2:0x1c2,_0x48c088:0x176,_0x52f916:0x147,_0x57b03a:0x2d4,_0x41c1a9:0x15a,_0x202b18:0x2d6,_0x38c2c0:0x237,_0x4a4240:0x53,_0x57e9b1:0x14f,_0x26a42e:0xe7,_0x2b5df8:0x138,_0xebb25f:0x89,_0x4caef4:0x195,_0x15ade9:0x1ee,_0x421222:0x36b,_0x46bbfa:0x2d4,_0x41fbd1:0x27d,_0x5598d5:0x309,_0x26ab94:0x2ab,_0x9d1e71:0x360,_0x430c83:0x17b,_0x2f2609:0xcb,_0x231af1:0x291,_0x50d440:0xc3,_0x2a4292:0x10e,_0x3302ad:0x16e,_0x32d162:0x99,_0xfc123:0x2bc,_0x45c0c8:0x2c8,_0x591c1a:0x22c,_0x2a81b1:0x1e1,_0x3caf22:0x2e8,_0x39592c:0x3f9,_0x3d9943:0x3f8,_0x96b700:0x3a3,_0x586b3b:0x1d5,_0x5de930:0x119},_0x51c507={_0x431d96:0x8b},_0x25d236={_0x387d12:0x1b3,_0x301862:0xd0},_0x122dd1=[],_0x34ad5c=_0x3341bf[_0x39c3b0(_0x5b46ee._0x1b598e,0x2f2,0x283,0x24d)]??[];function _0x310356(_0x41225c,_0x56356b,_0x44a1fb,_0x381fc4){return _0x2c5722(_0x41225c,_0x56356b-_0x25d236._0x387d12,_0x381fc4- -0x2ac,_0x381fc4-_0x25d236._0x301862);}function _0x39c3b0(_0x3f64d1,_0x247c15,_0x5a6f1e,_0x2582c6){return _0x949fe0(_0x5a6f1e,_0x2582c6-0x4ba,_0x5a6f1e-_0x51c507._0x431d96,_0x2582c6-0xa0);}let _0x3f15ec=![];for(const _0x4f75a3 of _0x34ad5c){if(_0x4f75a3[_0x310356(-_0x5b46ee._0xcf6b05,-_0x5b46ee._0x46f637,-0x2f7,-_0x5b46ee._0x4fc483)]===_0x310356(-0xf6,-0x19b,-0x1f1,-0x15c)){_0x3f15ec=!![];isUserVisibleThinking(_0x22b010)&&_0x122dd1[_0x39c3b0(0x2b5,0x331,_0x5b46ee._0x3b162e,_0x5b46ee._0x43be97)]({'type':_0x39c3b0(_0x5b46ee._0x558bc3,_0x5b46ee._0x86aa30,0x396,0x32c),'thinking':_0x4f75a3[_0x310356(-0xba,-_0x5b46ee._0x491b1b,-_0x5b46ee._0x5f473c,-0x15c)],'signature':_0x4f75a3[_0x310356(-_0x5b46ee._0x1f4ee7,-0x173,-_0x5b46ee._0x29b745,-0x1f6)]});continue;}if(_0x4f75a3[_0x39c3b0(0x2f5,_0x5b46ee._0x13f84c,0x246,_0x5b46ee._0x46e11a)]===_0x310356(-_0x5b46ee._0x11f4a2,-0xe2,-_0x5b46ee._0x48c088,-_0x5b46ee._0x52f916)){_0x3f15ec=!![];isUserVisibleThinking(_0x22b010)&&_0x122dd1[_0x39c3b0(0x234,0x251,0x289,_0x5b46ee._0x57b03a)]({'type':_0x310356(-0x1d5,-0x15e,-_0x5b46ee._0x41c1a9,-0x118),'data':_0x4f75a3[_0x39c3b0(_0x5b46ee._0x202b18,0x30e,0x325,0x384)]});continue;}if(_0x4f75a3[_0x39c3b0(0x2e4,_0x5b46ee._0x38c2c0,0x298,_0x5b46ee._0x46e11a)]==='text'){_0x4f75a3[_0x310356(-_0x5b46ee._0x4a4240,-_0x5b46ee._0x57e9b1,-0xe4,-_0x5b46ee._0x26a42e)][_0x310356(-_0x5b46ee._0x2b5df8,-_0x5b46ee._0xebb25f,-0x98,-0x104)]>0x0&&_0x122dd1[_0x310356(-_0x5b46ee._0x4caef4,-0x1bd,-0x202,-_0x5b46ee._0x15ade9)](structuredClone(_0x4f75a3));continue;}_0x122dd1[_0x39c3b0(_0x5b46ee._0x421222,0x32c,0x211,_0x5b46ee._0x46bbfa)](structuredClone(_0x4f75a3));}return{'id':_0x3341bf['id']??'msg-'+Date[_0x39c3b0(_0x5b46ee._0x41fbd1,_0x5b46ee._0x5598d5,0x1e6,_0x5b46ee._0x26ab94)](),'content':_0x122dd1,'stopReason':_0x122dd1[_0x39c3b0(0x2b0,0x414,0x346,_0x5b46ee._0x9d1e71)](_0x4212e9=>_0x4212e9['type']==='tool_use')?_0x310356(-0x118,-_0x5b46ee._0x430c83,-_0x5b46ee._0x2f2609,-0x138):_0x3341bf[_0x310356(-_0x5b46ee._0x231af1,-0x215,-0x1f2,-0x1f5)]===_0x310356(-0x1d9,-0x18f,-_0x5b46ee._0x50d440,-0x138)?_0x310356(-_0x5b46ee._0x2a4292,-_0x5b46ee._0x3302ad,-_0x5b46ee._0x32d162,-_0x5b46ee._0x2b5df8):_0x39c3b0(_0x5b46ee._0xfc123,0x272,_0x5b46ee._0x45c0c8,0x2d2),'usage':{'inputTokens':_0x3341bf[_0x310356(-0x1a8,-0x286,-_0x5b46ee._0x591c1a,-_0x5b46ee._0x2a81b1)]?.[_0x39c3b0(_0x5b46ee._0x3caf22,_0x5b46ee._0x39592c,_0x5b46ee._0x3d9943,_0x5b46ee._0x96b700)]??0x0,'outputTokens':_0x3341bf[_0x310356(-_0x5b46ee._0x586b3b,-0x280,-0x1c8,-0x1e1)]?.[_0x310356(-0x19b,-0x15b,-0x1af,-_0x5b46ee._0x5de930)]??0x0},..._0x3f15ec?{'providerState':{'anthropicAssistantContent':structuredClone(_0x34ad5c)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x2c5722(0x7c,0xba,0x140,0xc9)]=new Map();['inputTokens']=0x0;['messageId']=_0x949fe0(-0x1c5,-0x143,-0xcf,-0x13d)+Date['now']();[_0x949fe0(-0x117,-0x16e,-0x1d8,-0x142)]=0x0;[_0x2c5722(0x9c,0x1dd,0x14b,0x128)];[_0x949fe0(-0x19a,-0x198,-0x207,-0x237)]=_0x949fe0(-0x21a,-0x1e8,-0x1f8,-0x171);constructor(_0xbbc172){const _0x339a5e={_0x25257e:0x327,_0x170dcb:0x3e1},_0x3e8c0f={_0x7493bc:0x1c4};function _0x18815f(_0xe2107f,_0x456a9b,_0x1192bd,_0x9031c3){return _0x949fe0(_0xe2107f,_0x456a9b-0x480,_0x1192bd-0x90,_0x9031c3-_0x3e8c0f._0x7493bc);}this[_0x18815f(0x2ba,_0x339a5e._0x25257e,0x2d4,_0x339a5e._0x170dcb)]=_0xbbc172;}[_0x949fe0(-0x20d,-0x170,-0x171,-0x18f)](_0x15f20f){const _0x39223e={_0x2bb3e8:0x25e,_0x37b6df:0x1ef,_0x439500:0x574,_0x43c0ad:0x54b,_0x53470b:0x127,_0x592611:0x110,_0x512505:0x1e6,_0x5dce57:0x82,_0x494ceb:0x5b1,_0x2e848a:0x518,_0x47bf37:0x540,_0x1c2345:0x4f2,_0x4c35ab:0xe4,_0x5181e6:0xb0,_0xb92f1a:0x148,_0x42d1ed:0x57c,_0x510de6:0x49a,_0x540fda:0xae,_0x155883:0xc2,_0x36b5e1:0x4c6,_0x58b15e:0x573,_0x34988f:0xec,_0x2ac4c4:0x28,_0x68f4d0:0x15c,_0x56ebd8:0xff,_0x2951cc:0x129,_0x3821ba:0x3d,_0x578e1f:0x3,_0x409e2d:0x393,_0x569c8f:0x459,_0x2ea542:0x593,_0x82a3fb:0x4af,_0xfaad85:0x3ea,_0x1c15ff:0x3ab,_0x463f70:0x459,_0x3a6e56:0x522,_0x1920da:0x4ad,_0x428ad8:0x559,_0x44f09d:0x1d5,_0x30597e:0x24f,_0x552471:0x195,_0x5679d7:0x1a3,_0x16c612:0x1aa,_0x51a7d6:0x1c9,_0x3434ce:0x1ee,_0x41b87b:0x624,_0x481e8a:0x9e,_0x1ccbd2:0x41,_0x5dbe57:0x58d,_0x589ef4:0x4f3,_0x51ae0c:0x4e8,_0x2b1930:0x466,_0x167b29:0xd7,_0x535480:0x144,_0x279a2d:0x51d,_0x89ae64:0x427,_0x45d6b9:0x4c0,_0x5d6131:0x55e,_0xb017e4:0x4db,_0x42dbf4:0x586,_0x86e23:0x55e,_0x18358c:0x5e0,_0x3aa3cd:0x131,_0x1ca647:0x201,_0xdbb3ea:0xc6,_0x4abf44:0xc0,_0x445ec5:0x410,_0x494f9:0x498,_0x375a71:0x4be,_0x1a750a:0x580,_0xf0826c:0x50b,_0x37a8c8:0x604,_0xcca5ef:0x408,_0x2927f4:0x3c2,_0x5bd373:0x466,_0x74785b:0x554,_0x5207be:0x54a,_0x5e8e13:0x580,_0x54096a:0x21a,_0x3f4e40:0x4ff,_0x56c5f6:0x4f8,_0x10cd9d:0x4d0,_0x5d085d:0x5b3,_0x17c1a8:0x55b,_0x49d245:0x540,_0x4f9f36:0x6c,_0x5f06fe:0xdd,_0x4547d4:0x176,_0x510056:0x22f,_0x4de6ce:0x23a,_0x4b26be:0x5f,_0x39c14d:0xfc,_0x2debd6:0x128,_0x5de587:0x189,_0x512d63:0x209,_0x135ef4:0x160,_0x219580:0x1b1,_0x1b2b7e:0x85,_0x51b3c6:0x9e,_0x5e3815:0xe0,_0x436509:0x46,_0x1aef40:0x16a,_0x1f26c5:0x215,_0x44bfe8:0x11c,_0x218956:0x296,_0xbd733d:0x27d,_0x2a7ed8:0x463,_0x1931f3:0x158,_0x1c52a2:0xd9,_0x2239f8:0xdd,_0x59a348:0x121,_0x256fc5:0x133,_0x16616a:0x515,_0x4ea9d3:0x422,_0xd66360:0x54c,_0x285997:0x116,_0x36fa9b:0x58,_0x59d21b:0x177,_0x4b4334:0x116,_0x16de22:0x1ba,_0x1cf007:0x14f,_0x59ca65:0x171,_0x37c9de:0x1ea,_0x20a126:0x147,_0x4b23d1:0x17b,_0x467542:0x213,_0x1f042d:0x16a,_0x42402d:0x142,_0xe54418:0x1be,_0x41f036:0x599,_0x4cfaff:0x9e,_0x496203:0x5e4,_0x3a46c0:0x56b,_0x316761:0x56b,_0x29c547:0x617,_0x4069e1:0xcb,_0x23437a:0x145,_0x59019d:0x22a,_0x128f14:0x234,_0x437ebc:0x107,_0x428cb2:0x16c,_0x35706e:0x141,_0x580793:0x12a,_0x3f99de:0xb5,_0xfa83a0:0x54a,_0x37890b:0x4b4,_0x4aa59b:0x495,_0x30eb30:0x482,_0x43ee7d:0x1ac,_0x2ca297:0x1c9,_0x837e4d:0x168,_0x4bbfd7:0x1e1,_0x5bf998:0xad,_0x67d933:0x146,_0x661945:0x620,_0x7c1b08:0x508,_0x5a67e5:0x4d4,_0x11b303:0x551,_0x368932:0x536,_0x1c7426:0x1d1,_0xb6edc0:0x5bb,_0x3aca8c:0x259,_0x2ba30f:0x1ca,_0x62523c:0x541,_0x4d1709:0x475,_0x1a3819:0x9e,_0x43c21e:0x3f},_0x1a180a={_0x33cc22:0x41b},_0x6bb263={_0x59f88e:0x2c5,_0x45e8c8:0x1b4},_0x20a889=_0x15f20f[_0x304703(0x1a2,_0x39223e._0x2bb3e8,_0x39223e._0x37b6df,0x17b)]('\x0a');function _0x304703(_0x56a8f6,_0x29f97c,_0x5c09d3,_0x53dd0c){return _0x949fe0(_0x53dd0c,_0x56a8f6-_0x6bb263._0x59f88e,_0x5c09d3-0xaa,_0x53dd0c-_0x6bb263._0x45e8c8);}const _0x3c1dcc=_0x20a889[_0x74cd8a(0x679,_0x39223e._0x439500,0x5c9,_0x39223e._0x43c0ad)](_0x1062cd=>_0x1062cd['startsWith']('event:'))?.['slice'](0x6)[_0x304703(_0x39223e._0x53470b,_0x39223e._0x592611,_0x39223e._0x512505,0x144)](),_0x4daef3=_0x20a889['filter'](_0x856625=>_0x856625[_0x74cd8a(0x663,0x5a1,0x597,0x548)](_0x74cd8a(0x536,0x526,0x489,0x4da)))['map'](_0x214efb=>_0x214efb['slice'](0x5)['trimStart']())[_0x74cd8a(0x4a3,0x409,0x4cc,0x52f)]('\x0a')[_0x304703(_0x39223e._0x53470b,0x7b,0x1af,_0x39223e._0x5dce57)]();if(_0x4daef3['length']===0x0||_0x4daef3===_0x74cd8a(0x4ae,_0x39223e._0x494ceb,_0x39223e._0x2e848a,0x559))return[];const _0x49c328=JSON[_0x74cd8a(0x568,_0x39223e._0x47bf37,0x4ae,_0x39223e._0x1c2345)](_0x4daef3);function _0x74cd8a(_0x28c0e7,_0x486b23,_0x3d3e2c,_0x1cfaaf){return _0x2c5722(_0x28c0e7,_0x486b23-0x1a6,_0x3d3e2c-_0x1a180a._0x33cc22,_0x1cfaaf-0x5d);}switch(_0x3c1dcc){case _0x304703(0xfc,_0x39223e._0x4c35ab,_0x39223e._0x5181e6,_0x39223e._0xb92f1a):{const _0xd3235=_0x49c328[_0x74cd8a(0x5e7,0x483,0x53d,_0x39223e._0x42d1ed)];this[_0x74cd8a(0x438,_0x39223e._0x510de6,0x4a8,0x48a)]=_0xd3235?.['id']??this[_0x304703(_0x39223e._0x540fda,0x13a,_0x39223e._0x155883,0x113)],this[_0x74cd8a(_0x39223e._0x36b5e1,_0x39223e._0x58b15e,0x50e,0x5c5)]=_0xd3235?.[_0x304703(_0x39223e._0x34988f,_0x39223e._0x2ac4c4,_0x39223e._0x68f4d0,0x156)]?.['input_tokens']??this[_0x304703(0x114,_0x39223e._0x56ebd8,0x11d,_0x39223e._0x2951cc)];break;}case _0x304703(0x99,_0x39223e._0x3821ba,0x132,-_0x39223e._0x578e1f):{const _0x30bbba=typeof _0x49c328[_0x74cd8a(0x4cf,_0x39223e._0x409e2d,_0x39223e._0x569c8f,0x3c5)]===_0x74cd8a(_0x39223e._0x2ea542,_0x39223e._0x82a3fb,0x56d,0x510)?_0x49c328[_0x74cd8a(_0x39223e._0xfaad85,_0x39223e._0x1c15ff,_0x39223e._0x463f70,_0x39223e._0x3a6e56)]:0x0,_0x3de123=_0x49c328[_0x74cd8a(0x45f,0x4f3,_0x39223e._0x1920da,0x539)];if(_0x3de123?.[_0x304703(0x9e,0x13d,0xaf,0x114)]===_0x74cd8a(0x543,_0x39223e._0x428ad8,0x58f,0x4d1)&&_0x3de123['id']&&_0x3de123[_0x304703(_0x39223e._0x44f09d,_0x39223e._0x30597e,0x1da,0x216)])return this[_0x74cd8a(0x580,0x49d,0x55b,0x609)]['set'](_0x30bbba,{'id':_0x3de123['id'],'index':_0x30bbba,'inputJson':JSON['stringify'](_0x3de123['input']??{}),'kind':_0x304703(_0x39223e._0x552471,_0x39223e._0x5679d7,0x12e,_0x39223e._0x16c612),'name':_0x3de123[_0x304703(0x1d5,0x21a,_0x39223e._0x51a7d6,_0x39223e._0x3434ce)]}),[{'type':_0x74cd8a(0x5dc,_0x39223e._0x41b87b,0x55c,0x4e0),'id':_0x3de123['id'],'index':_0x30bbba,'name':_0x3de123[_0x304703(_0x39223e._0x44f09d,0x210,0x155,0x28e)]}];if(_0x3de123?.[_0x304703(_0x39223e._0x481e8a,_0x39223e._0x1ccbd2,0x1,0xd5)]===_0x304703(0x171,0xc4,0x1df,0x175)){this[_0x74cd8a(_0x39223e._0x5dbe57,_0x39223e._0x589ef4,0x55b,0x504)][_0x74cd8a(0x519,_0x39223e._0x51ae0c,_0x39223e._0x2b1930,0x472)](_0x30bbba,{'index':_0x30bbba,'kind':_0x304703(0x171,0x14d,0xb0,0xe8),'signature':typeof _0x3de123[_0x304703(_0x39223e._0x167b29,_0x39223e._0x535480,0x54,0x83)]===_0x74cd8a(_0x39223e._0x279a2d,_0x39223e._0x89ae64,_0x39223e._0x45d6b9,_0x39223e._0x5d6131)?_0x3de123[_0x74cd8a(_0x39223e._0xb017e4,_0x39223e._0x42dbf4,0x4d1,0x521)]:'','thinking':typeof _0x3de123[_0x74cd8a(_0x39223e._0x86e23,0x64d,_0x39223e._0x18358c,0x569)]==='string'?_0x3de123[_0x304703(_0x39223e._0x512505,0x1bd,_0x39223e._0x3aa3cd,_0x39223e._0x1ca647)]:typeof _0x3de123['thinking']===_0x304703(_0x39223e._0xdbb3ea,0xb5,0x30,_0x39223e._0x4abf44)?String(_0x3de123['thinking']):''});break;}if(_0x3de123?.[_0x74cd8a(_0x39223e._0x445ec5,0x4f4,_0x39223e._0x494f9,0x482)]===_0x74cd8a(0x4cc,_0x39223e._0x375a71,_0x39223e._0x1a750a,0x582)){this[_0x74cd8a(0x4c4,_0x39223e._0xf0826c,0x55b,_0x39223e._0x37a8c8)][_0x74cd8a(_0x39223e._0xcca5ef,_0x39223e._0x2927f4,_0x39223e._0x5bd373,0x438)](_0x30bbba,{'index':_0x30bbba,'kind':_0x74cd8a(_0x39223e._0x74785b,_0x39223e._0x5207be,_0x39223e._0x5e8e13,0x5c3),'data':typeof _0x3de123[_0x304703(0x18f,0x173,0x12f,_0x39223e._0x54096a)]==='string'?String(_0x3de123[_0x74cd8a(_0x39223e._0x3f4e40,_0x39223e._0x56c5f6,0x589,0x5df)]):''});break;}this[_0x74cd8a(_0x39223e._0x10cd9d,_0x39223e._0x5d085d,_0x39223e._0x17c1a8,_0x39223e._0x49d245)][_0x304703(_0x39223e._0x4f9f36,0x106,0x49,_0x39223e._0x5f06fe)](_0x30bbba,{'index':_0x30bbba,'kind':_0x304703(0x1e6,0x16e,0x1b8,0x12c),'text':_0x3de123?.[_0x304703(0x1e6,_0x39223e._0x4547d4,0x1b7,0x1ba)]??''});break;}case _0x304703(0x1ce,0x1d7,_0x39223e._0x510056,_0x39223e._0x4de6ce):{const _0x870f04=typeof _0x49c328[_0x304703(_0x39223e._0x4b26be,0xc,_0x39223e._0x39c14d,0xe5)]==='number'?_0x49c328['index']:0x0,_0x4ca4ef=this[_0x304703(0x161,0x220,0xdb,_0x39223e._0x2debd6)][_0x304703(_0x39223e._0x5de587,_0x39223e._0x512d63,0x223,0x19d)](_0x870f04),_0x53a00a=_0x49c328[_0x304703(_0x39223e._0x135ef4,0x17a,0x1d6,_0x39223e._0x219580)];if(!_0x4ca4ef||!_0x53a00a?.[_0x304703(_0x39223e._0x481e8a,-0x1a,0x2,_0x39223e._0x1b2b7e)])break;if(_0x53a00a[_0x304703(_0x39223e._0x51b3c6,0xa5,_0x39223e._0x5e3815,_0x39223e._0x436509)]===_0x74cd8a(0x4a7,0x4d9,0x4d0,0x54c)&&_0x4ca4ef[_0x304703(_0x39223e._0x1aef40,_0x39223e._0x1f26c5,0xf8,_0x39223e._0x44bfe8)]==='text'&&typeof _0x53a00a[_0x74cd8a(0x595,0x51f,0x5e0,0x572)]==='string')return _0x4ca4ef[_0x304703(0x1e6,_0x39223e._0x218956,_0x39223e._0xbd733d,0x231)]+=_0x53a00a['text'],[{'type':_0x74cd8a(0x3da,0x47f,0x47c,0x49e),'index':_0x870f04,'text':_0x53a00a[_0x304703(0x1e6,0x134,0x217,0x26f)]}];if(_0x53a00a[_0x74cd8a(0x513,_0x39223e._0x2a7ed8,0x498,0x4fd)]===_0x304703(_0x39223e._0x1931f3,_0x39223e._0x1c52a2,0x12b,_0x39223e._0x2239f8)&&_0x4ca4ef[_0x304703(0x16a,0x173,_0x39223e._0x59a348,_0x39223e._0x256fc5)]===_0x74cd8a(0x4f7,_0x39223e._0x16616a,0x58f,0x50b)&&typeof _0x53a00a['partial_json']===_0x74cd8a(0x4ec,_0x39223e._0x4ea9d3,_0x39223e._0x45d6b9,_0x39223e._0xd66360))return _0x4ca4ef[_0x304703(_0x39223e._0x285997,0xc1,_0x39223e._0x36fa9b,_0x39223e._0x59d21b)]==='{}'&&(_0x4ca4ef[_0x304703(_0x39223e._0x4b4334,0x102,_0x39223e._0x16de22,_0x39223e._0x1cf007)]=''),_0x4ca4ef[_0x304703(0x116,0x10a,_0x39223e._0x59ca65,0x1cd)]+=_0x53a00a[_0x304703(_0x39223e._0x37c9de,_0x39223e._0x20a126,_0x39223e._0x4b23d1,_0x39223e._0x467542)],[{'type':_0x304703(0x162,_0x39223e._0x1f042d,_0x39223e._0x42402d,_0x39223e._0xe54418),'id':_0x4ca4ef['id'],'index':_0x870f04,'inputDelta':_0x53a00a[_0x74cd8a(0x5c6,_0x39223e._0x41f036,0x5e4,0x53d)]}];if(_0x53a00a[_0x304703(_0x39223e._0x4cfaff,-0x29,_0x39223e._0x4f9f36,0x95)]==='thinking_delta'&&_0x4ca4ef['kind']===_0x74cd8a(0x637,_0x39223e._0x496203,_0x39223e._0x3a46c0,0x605)){const _0x2a640a=typeof _0x53a00a[_0x74cd8a(0x530,0x5c7,_0x39223e._0x316761,_0x39223e._0x29c547)]===_0x304703(_0x39223e._0xdbb3ea,_0x39223e._0x4069e1,_0x39223e._0x23437a,0x29)?String(_0x53a00a[_0x304703(0x171,0x1f1,_0x39223e._0x59019d,0x104)]):'';if(_0x2a640a[_0x304703(_0x39223e._0x51a7d6,0x12d,_0x39223e._0x128f14,_0x39223e._0x437ebc)]>0x0){_0x4ca4ef['thinking']+=_0x2a640a;if(isUserVisibleThinking(this[_0x304703(_0x39223e._0x428cb2,_0x39223e._0x35706e,_0x39223e._0x580793,_0x39223e._0x3f99de)]))return[{'type':_0x74cd8a(0x494,0x4ec,_0x39223e._0xfa83a0,0x578),'index':_0x870f04,'thinking':_0x2a640a}];}}if(_0x53a00a['type']===_0x74cd8a(_0x39223e._0x37890b,_0x39223e._0x4aa59b,_0x39223e._0x30eb30,0x4de)&&_0x4ca4ef[_0x304703(0x16a,_0x39223e._0x1cf007,0xb0,_0x39223e._0x43ee7d)]==='thinking'){const _0x6de468=typeof _0x53a00a['signature']===_0x74cd8a(0x573,0x423,0x4c0,0x53d)?String(_0x53a00a['signature']):'';if(_0x6de468[_0x304703(_0x39223e._0x2ca297,_0x39223e._0x837e4d,_0x39223e._0x4bbfd7,0x196)]>0x0){_0x4ca4ef['signature']=_0x6de468;if(isUserVisibleThinking(this['request']))return[{'type':'anthropic_signature_delta','index':_0x870f04,'signature':_0x6de468}];}}break;}case _0x304703(_0x39223e._0x5bf998,_0x39223e._0x67d933,0xde,0x14f):{const _0x12c0f4=_0x49c328[_0x74cd8a(0x491,_0x39223e._0x661945,0x55a,_0x39223e._0x7c1b08)],_0x2b0a42=_0x49c328['usage'];this[_0x74cd8a(_0x39223e._0x5a67e5,0x5d5,_0x39223e._0x11b303,_0x39223e._0x368932)]=_0x2b0a42?.['output_tokens']??this[_0x304703(0x157,0x20f,_0x39223e._0x1c7426,0x155)],this[_0x74cd8a(_0x39223e._0xb6edc0,0x5ea,0x527,0x5e7)]=_0x12c0f4?.['stop_reason']==='tool_use'?_0x304703(_0x39223e._0x552471,0xe4,_0x39223e._0x3aca8c,_0x39223e._0x2ba30f):'end_turn';break;}case'error':{const _0x168584=_0x49c328['error'];throw new ProviderStreamEventError(_0x168584?.[_0x74cd8a(_0x39223e._0x62523c,0x48c,0x53d,_0x39223e._0x4d1709)]??'Anthropic\x20stream\x20failed',{'code':_0x168584?.[_0x304703(_0x39223e._0x1a3819,_0x39223e._0x43c21e,-0x17,0x160)],'retryable':!![]});}}return[];}[_0x2c5722(0x20b,0x122,0x179,0x1ff)](){const _0x51a40f={_0x52bf0b:0x518,_0x27abb5:0x50d,_0x345e02:0x5d4,_0x13afd3:0x442,_0x8e2fad:0x500,_0x55b7b6:0x4a7,_0x41d11e:0x44e,_0x2ab5b1:0x3a9,_0x584790:0x431,_0x19a4aa:0x578,_0x149c6c:0x5b4,_0x2ad2f1:0x60b,_0x6c83ec:0x351,_0x5d56ea:0x359,_0x2b58d9:0x3d2,_0x920a68:0x441,_0x567143:0x471,_0x33b147:0x5c7,_0xda8edf:0x504,_0x160149:0x503,_0x49ad2e:0x498,_0x5b7f95:0x410,_0x136c9e:0x3d9,_0x2e3248:0x313,_0x4c5229:0x33b,_0x2c301f:0x4b6,_0x71f1f7:0x4fc,_0x176c74:0x4aa,_0x513bae:0x462,_0x243dd8:0x4d0,_0x2d9e3:0x440,_0x1594cf:0x497,_0x2c6902:0x4c8,_0x5e7866:0x38d,_0x1f16b7:0x3f4,_0x56af0d:0x3ee,_0x2ae11f:0x525,_0x401192:0x50b,_0x2dd3d7:0x527,_0x57b1d8:0x456,_0x407d66:0x41c,_0x29cb1b:0x43f,_0x1ead77:0x38b,_0x1e6f52:0x36f,_0x34ab23:0x410,_0x5c6243:0x4e8,_0x4aae54:0x54d,_0x181b47:0x330,_0x4e3c90:0x395,_0x58fb78:0x368,_0x104847:0x3bf,_0x30c9ab:0x427},_0x206454={_0x5bd2de:0x657},_0x5ac57f={_0x1e3ddf:0xee};function _0xfe1c9(_0x3ce417,_0x9d90a4,_0x517521,_0x32bad3){return _0x949fe0(_0x9d90a4,_0x32bad3-0x52d,_0x517521-0x9b,_0x32bad3-_0x5ac57f._0x1e3ddf);}function _0x39dc38(_0x32e038,_0x63f54e,_0x2fb75c,_0x3d04c5){return _0x949fe0(_0x63f54e,_0x2fb75c-_0x206454._0x5bd2de,_0x2fb75c-0x176,_0x3d04c5-0x1e);}const _0x4a9393=Array[_0x39dc38(_0x51a40f._0x52bf0b,0x543,_0x51a40f._0x27abb5,_0x51a40f._0x345e02)](this[_0x39dc38(_0x51a40f._0x13afd3,_0x51a40f._0x8e2fad,0x4f3,0x52e)]['values']())['sort']((_0x4c8f34,_0x1ab3a0)=>_0x4c8f34['index']-_0x1ab3a0[_0x39dc38(0x3dc,0x4a3,0x3f1,0x499)]),_0x154b23=[];for(const _0x17a9cd of _0x4a9393){if(_0x17a9cd['kind']==='text'){_0x17a9cd[_0xfe1c9(0x3c8,0x4e1,_0x51a40f._0x55b7b6,_0x51a40f._0x41d11e)][_0xfe1c9(0x381,_0x51a40f._0x2ab5b1,0x40e,_0x51a40f._0x584790)]>0x0&&_0x154b23[_0xfe1c9(0x2f1,0x34f,0x2bb,0x347)]({'type':_0x39dc38(0x60b,0x588,_0x51a40f._0x19a4aa,_0x51a40f._0x149c6c),'text':_0x17a9cd[_0x39dc38(0x4d4,0x5ba,_0x51a40f._0x19a4aa,_0x51a40f._0x2ad2f1)]});continue;}if(_0x17a9cd[_0xfe1c9(_0x51a40f._0x6c83ec,_0x51a40f._0x5d56ea,0x333,_0x51a40f._0x2b58d9)]==='thinking'){_0x154b23[_0x39dc38(0x470,_0x51a40f._0x920a68,_0x51a40f._0x567143,0x3be)]({'type':_0x39dc38(_0x51a40f._0x33b147,_0x51a40f._0xda8edf,_0x51a40f._0x160149,_0x51a40f._0x49ad2e),'thinking':_0x17a9cd[_0xfe1c9(0x495,0x413,_0x51a40f._0x5b7f95,_0x51a40f._0x136c9e)],'signature':_0x17a9cd[_0xfe1c9(0x2bc,_0x51a40f._0x2e3248,_0x51a40f._0x4c5229,0x33f)]});continue;}if(_0x17a9cd[_0x39dc38(_0x51a40f._0x2c301f,0x4fe,_0x51a40f._0x71f1f7,_0x51a40f._0x176c74)]===_0x39dc38(_0x51a40f._0x513bae,_0x51a40f._0x243dd8,0x518,0x4df)){_0x154b23[_0x39dc38(_0x51a40f._0x2d9e3,_0x51a40f._0x1594cf,_0x51a40f._0x567143,_0x51a40f._0x2c6902)]({'type':_0xfe1c9(_0x51a40f._0x5e7866,_0x51a40f._0x1f16b7,0x36a,_0x51a40f._0x56af0d),'data':_0x17a9cd[_0x39dc38(_0x51a40f._0x19a4aa,_0x51a40f._0x2ae11f,0x521,_0x51a40f._0x401192)]});continue;}_0x154b23[_0x39dc38(0x3cd,0x3f1,_0x51a40f._0x567143,0x45c)]({'type':_0x39dc38(_0x51a40f._0x149c6c,0x5d9,_0x51a40f._0x2dd3d7,0x483),'id':_0x17a9cd['id'],'name':_0x17a9cd[_0xfe1c9(_0x51a40f._0x57b1d8,0x492,0x3d7,0x43d)],'input':parseToolInput(_0x17a9cd[_0x39dc38(0x48f,_0x51a40f._0x407d66,0x4a8,_0x51a40f._0x29cb1b)][_0xfe1c9(0x441,0x3ec,_0x51a40f._0x1ead77,0x431)]>0x0?_0x17a9cd[_0xfe1c9(_0x51a40f._0x1e6f52,0x444,0x3fd,0x37e)]:'{}')});}return parseAnthropicResponse({'id':this[_0x39dc38(_0x51a40f._0x34ab23,0x3ee,0x440,0x460)],'type':'message','role':_0x39dc38(0x55b,_0x51a40f._0x5c6243,0x529,_0x51a40f._0x4aae54),'content':_0x154b23,'stop_reason':this[_0xfe1c9(0x3ef,_0x51a40f._0x181b47,0x3b9,_0x51a40f._0x4e3c90)],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0xfe1c9(0x334,_0x51a40f._0x58fb78,0x30e,_0x51a40f._0x104847)]}},this[_0xfe1c9(0x3ca,0x406,_0x51a40f._0x30c9ab,0x3d4)]);}};function createAnthropicSurfaces(){const _0x1f0cc5={_0x280644:0x44,_0x191b4f:0xa1},_0x5529ee={_0x29e3af:0x63};function _0x10210f(_0x1659d7,_0x3058d4,_0x213811,_0x442d78){return _0x949fe0(_0x3058d4,_0x442d78-0x22a,_0x213811-0x1c9,_0x442d78-0x124);}function _0x3aeba8(_0x271fca,_0x19dad6,_0x235958,_0x2fb1e0){return _0x2c5722(_0x2fb1e0,_0x19dad6-_0x5529ee._0x29e3af,_0x19dad6-0x35e,_0x2fb1e0-0x61);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x10210f(0x9b,0x4f,_0x1f0cc5._0x280644,0xc1),'createRequest'(_0x36f880){return createAnthropicRequest(_0x36f880,![]);},'parseResponse'(_0x104eed,_0x514921){return parseAnthropicResponse(_0x104eed,_0x514921);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x10210f(0x3,-_0x1f0cc5._0x191b4f,0x49,-0x27),'createRequest'(_0x1e297f){return createAnthropicRequest(_0x1e297f,!![]);},'createStreamParser'(_0x1eb2a2){return new AnthropicMessagesStreamParser(_0x1eb2a2);}}];}var StaticModelSurfaceRouter=class{[_0x949fe0(-0x2a6,-0x25e,-0x2f2,-0x299)];['streamSurface'];constructor(_0x43dbb9){const _0x397d67={_0x2b9974:0x2ad,_0x46cf9c:0x280,_0x46600f:0x375,_0x3e0a2e:0x10f,_0x472af4:0x1d6,_0x4a781c:0xde,_0x43a1fe:0x11c,_0x38118d:0x36c,_0x2d111b:0x2a3,_0xb48845:0x424,_0x37ebf9:0x42e},_0x3cef8d={_0x1729a5:0x118},_0x1540e6={_0x1ece82:0x50b,_0x4b656b:0x13e,_0x269a7a:0xb6};function _0x38f6bc(_0x229c55,_0x5c9ad2,_0x33ae68,_0x16b197){return _0x949fe0(_0x5c9ad2,_0x229c55-_0x1540e6._0x1ece82,_0x33ae68-_0x1540e6._0x4b656b,_0x16b197-_0x1540e6._0x269a7a);}function _0x3b3e62(_0x2895f8,_0x1388a9,_0x5aaab6,_0x2178b7){return _0x2c5722(_0x5aaab6,_0x1388a9-_0x3cef8d._0x1729a5,_0x2178b7- -0x164,_0x2178b7-0x135);}this[_0x38f6bc(_0x397d67._0x2b9974,0x234,_0x397d67._0x46cf9c,_0x397d67._0x46600f)]=_0x43dbb9[_0x3b3e62(-_0x397d67._0x3e0a2e,-_0x397d67._0x472af4,-_0x397d67._0x4a781c,-_0x397d67._0x43a1fe)],this[_0x38f6bc(_0x397d67._0x38118d,_0x397d67._0x2d111b,_0x397d67._0xb48845,_0x397d67._0x37ebf9)]=_0x43dbb9['stream'];}[_0x949fe0(-0x20e,-0x201,-0x1d7,-0x27f)](_0x5cf7cc,_0x55f651){const _0x329d17={_0x35f5ee:0x26b,_0x26c9dc:0x210,_0x28d9ff:0x273,_0x493c51:0x154,_0x28449f:0xa5,_0x6d204f:0x112},_0x15ca7b={_0x2cfe40:0xb2},_0x416d79={_0x3448fd:0x16e};function _0x3b783c(_0x192ffe,_0x45be6c,_0x4ba5a2,_0x5e8fd4){return _0x2c5722(_0x192ffe,_0x45be6c-0x14f,_0x5e8fd4-_0x416d79._0x3448fd,_0x5e8fd4-0x12d);}function _0x50461d(_0x1efab1,_0x202623,_0x538418,_0x49eff3){return _0x949fe0(_0x538418,_0x202623-0xfa,_0x538418-_0x15ca7b._0x2cfe40,_0x49eff3-0x36);}return _0x55f651[_0x3b783c(0x264,0x1dc,_0x329d17._0x35f5ee,0x23e)]===_0x3b783c(0x245,_0x329d17._0x26c9dc,_0x329d17._0x28d9ff,0x2b0)?this[_0x50461d(-_0x329d17._0x493c51,-_0x329d17._0x28449f,-0xe7,-_0x329d17._0x6d204f)]:this['completeSurface'];}};function trimTrailingSlashes(_0x98ca92){const _0x1be21b={_0x11f862:0x59d,_0x1301fc:0x4e2},_0x53db6f={_0x212dab:0x3c7};function _0xa227ca(_0x2fb5ca,_0x3ad95e,_0x4e7cb7,_0x57d83d){return _0x2c5722(_0x3ad95e,_0x3ad95e-0x114,_0x4e7cb7-_0x53db6f._0x212dab,_0x57d83d-0x164);}return _0x98ca92[_0xa227ca(_0x1be21b._0x11f862,0x57d,_0x1be21b._0x1301fc,0x4b8)](/\/+$/,'');}function resolveApiCredential(_0x374e13,_0x1d6317){const _0x24c763={_0x4a6fcc:0x15a,_0x3297fc:0x168,_0x522204:0x1e5,_0x25727f:0x406,_0xa87f7c:0x320,_0x2b888c:0x458,_0x2a6a9e:0x1d9},_0x3e0539={_0x7311c5:0x1e3},_0x5cf909={_0x6f0e94:0x2c3,_0x48f3bf:0xd};if(_0x1d6317?.[_0xde6e25(0x272,_0x24c763._0x4a6fcc,_0x24c763._0x3297fc,_0x24c763._0x522204)])return _0x1d6317[_0x2e7ff1(0x39f,_0x24c763._0x25727f,_0x24c763._0xa87f7c,_0x24c763._0x2b888c)];if(!_0x374e13)return void 0x0;function _0xde6e25(_0x5acfa3,_0x50b02e,_0x1d0631,_0x4e1b44){return _0x949fe0(_0x1d0631,_0x4e1b44-_0x5cf909._0x6f0e94,_0x1d0631-0x93,_0x4e1b44-_0x5cf909._0x48f3bf);}function _0x2e7ff1(_0x3d3f75,_0x43e105,_0x45643b,_0x3a212e){return _0x949fe0(_0x45643b,_0x3d3f75-0x47d,_0x45643b-0xb9,_0x3a212e-_0x3e0539._0x7311c5);}return{'kind':_0x2e7ff1(0x262,0x2dc,0x1c3,_0x24c763._0x2a6a9e),'value':_0x374e13};}function resolveSessionBaseUrl(_0x349783,_0xf76a2b){const _0x51a27f={_0x3f0fd5:0x4bd,_0x517573:0x516,_0x4c507b:0x4f1},_0x273ffa={_0x40a8dd:0x1ee,_0x2d18dc:0x4a9,_0x4660af:0x1a7},_0x18f94f={_0x5e73b9:0xb8};function _0x8f42a4(_0x29579e,_0x3f3959,_0x296c77,_0x40ee33){return _0x2c5722(_0x40ee33,_0x3f3959-_0x18f94f._0x5e73b9,_0x29579e- -0x1c5,_0x40ee33-0xe7);}function _0x34e732(_0x4b5d08,_0xe86b4f,_0x20726d,_0x17d33d){return _0x2c5722(_0x17d33d,_0xe86b4f-_0x273ffa._0x40a8dd,_0xe86b4f-_0x273ffa._0x2d18dc,_0x17d33d-_0x273ffa._0x4660af);}return trimTrailingSlashes(_0xf76a2b?.[_0x34e732(_0x51a27f._0x3f0fd5,_0x51a27f._0x517573,_0x51a27f._0x4c507b,0x4f5)]?.[_0x8f42a4(-0x19,-0xc1,0x78,-0x8f)]??_0x349783);}function toErrorMessage(_0x51aa00){const _0xe479ca={_0x1e3dcc:0x579,_0x3cd4ee:0x55d},_0x240797={_0x27fe18:0x11};function _0xa331f5(_0x55afca,_0x42b47c,_0x46a787,_0x5f39a1){return _0x2c5722(_0x55afca,_0x42b47c-0x186,_0x42b47c-0x35d,_0x5f39a1-_0x240797._0x27fe18);}if(_0x51aa00 instanceof Error&&_0x51aa00['message'][_0xa331f5(_0xe479ca._0x1e3dcc,0x505,0x58c,_0xe479ca._0x3cd4ee)]>0x0)return _0x51aa00['message'];return'WebSocket\x20request\x20failed';}function createDefaultWebSocketFactory(){const _0x4f4215={_0x341fb2:0xb3};return({headers:_0x2db19a,url:_0x424c55})=>{function _0x2487f2(_0x156a87,_0x15ee1b,_0xa6b08a,_0x7829bf){return _0x1f89(_0x7829bf- -0x38,_0x15ee1b);}const _0x59eb9d=globalThis[_0x2487f2(0x1b1,_0x4f4215._0x341fb2,0x1d4,0x125)];return new _0x59eb9d(_0x424c55,{'headers':_0x2db19a,'protocols':[]});};}async function*iterateSseEvents(_0x5cf357,_0x2c1b82){const _0x26b192={_0x35428b:0xe1,_0x4a1b53:0x149,_0x4dab8c:0x2d,_0x984d1e:0x11c,_0x57c20b:0x128,_0x4dfbf8:0x8e,_0x1ef7a3:0x32,_0x31f764:0x466,_0x523f4:0x45a,_0x3c4ddc:0x527,_0xeb8a67:0x1f5,_0x4adb93:0xc0,_0x32b77b:0x300,_0xb70023:0x362,_0x223d94:0x36a,_0x2d7afa:0x369,_0x307e61:0x44d,_0x527a72:0x4fd,_0x5ea263:0x50c,_0x4429a1:0x192,_0x745362:0x117,_0x2375f2:0xcd},_0x21686c={_0x1a4d0e:0x260,_0x259efa:0x2e3,_0x3c53db:0x2eb},_0x593331={_0x257b5e:0xb8},_0x1b9f10={_0x54fd65:0x44,_0x4d3989:0x2a5,_0x3a0954:0x30},_0x2c61e9=_0x5cf357[_0x314e31(-0x127,-0x169,-_0x26b192._0x35428b,-_0x26b192._0x4a1b53)]?.[_0x314e31(-_0x26b192._0x4dab8c,-_0x26b192._0x984d1e,-_0x26b192._0x57c20b,-0xdc)]();if(!_0x2c61e9)return;const _0x7bc0ce=new TextDecoder(_0x314e31(-0x8c,-0x55,-_0x26b192._0x4dfbf8,-_0x26b192._0x1ef7a3));let _0x2532f5='';function _0x22dfed(_0x2942f2,_0xa6e1db,_0x1d2a6b,_0x24376a){return _0x2c5722(_0xa6e1db,_0xa6e1db-_0x1b9f10._0x54fd65,_0x2942f2-_0x1b9f10._0x4d3989,_0x24376a-_0x1b9f10._0x3a0954);}function _0x314e31(_0x15fd56,_0x569f9b,_0x4a65d2,_0x34010f){return _0x2c5722(_0x4a65d2,_0x569f9b-_0x593331._0x257b5e,_0x34010f- -0x1d3,_0x34010f-0x12d);}const _0x42303b=addAbortListener(_0x2c1b82,()=>{const _0x355286={_0x44865d:0x14e};function _0x2074f2(_0x58975b,_0x1cb035,_0xe146ea,_0x45a118){return _0x22dfed(_0x58975b- -_0x355286._0x44865d,_0xe146ea,_0xe146ea-0x17,_0x45a118-0x1e8);}function _0x37df7f(_0x1b0112,_0x2dcf55,_0x2a4a7f,_0x17d486){return _0x314e31(_0x1b0112-0xc2,_0x2dcf55-0x1ec,_0x17d486,_0x2a4a7f-0x7b);}void _0x2c61e9['cancel'](toAbortError(_0x2c1b82?.[_0x2074f2(0x2d9,0x37b,0x22a,_0x21686c._0x1a4d0e)]))[_0x2074f2(_0x21686c._0x259efa,0x35e,_0x21686c._0x3c53db,0x253)](()=>{});});try{while(!![]){throwIfAborted(_0x2c1b82);const {value:_0x362111,done:_0x1b41ff}=await _0x2c61e9[_0x22dfed(_0x26b192._0x31f764,_0x26b192._0x523f4,_0x26b192._0x3c4ddc,0x4ea)]();throwIfAborted(_0x2c1b82);if(_0x1b41ff)break;_0x2532f5+=_0x7bc0ce[_0x314e31(-_0x26b192._0xeb8a67,-_0x26b192._0x4adb93,-0x1ae,-0x132)](_0x362111,{'stream':!![]});while(!![]){const _0xddb816=_0x2532f5[_0x22dfed(_0x26b192._0x32b77b,_0x26b192._0xb70023,_0x26b192._0x223d94,_0x26b192._0x2d7afa)]('\x0a\x0a');if(_0xddb816===-0x1)break;const _0x39a068=_0x2532f5['slice'](0x0,_0xddb816);_0x2532f5=_0x2532f5['slice'](_0xddb816+0x2),_0x39a068['trim']()[_0x22dfed(_0x26b192._0x307e61,0x435,_0x26b192._0x527a72,_0x26b192._0x5ea263)]>0x0&&(yield _0x39a068);}}_0x2532f5+=_0x7bc0ce['decode'](),throwIfAborted(_0x2c1b82),_0x2532f5[_0x314e31(-_0x26b192._0x4429a1,-_0x26b192._0x745362,-0x126,-_0x26b192._0x2375f2)]()[_0x314e31(-0x9e,0x79,0x79,-0x2b)]>0x0&&(yield _0x2532f5);}finally{_0x42303b();}}async function waitForWebSocketOpen(_0x3b331a,_0x2cd2c2){const _0x39604e={_0x3e52af:0x150,_0x1c9707:0x146},_0x4e3fa8={_0x86954a:0xba,_0x8e4e76:0x95,_0xf2460b:0x1e,_0x974504:0x97,_0x1c5784:0x85,_0x41440d:0x12a,_0x1a0a87:0x85,_0x1a5c3e:0x193,_0x4703bc:0x148,_0x3a70da:0x202,_0x283d9a:0x94,_0x3fcdb:0x6f,_0x645b53:0xc8,_0x34cf16:0xbb,_0x18251d:0xad,_0x3177e5:0x28},_0x17d2d1={_0x4878d4:0x186,_0x53b647:0x213,_0xbc7d62:0x18e,_0x331cbd:0x259,_0xe49b20:0x42f,_0x174a81:0x30a,_0x142f6a:0x258,_0x60ad17:0x1db,_0x578949:0x124,_0x5ce449:0x14c,_0x1a48a0:0x186,_0x413d23:0x116,_0x37df01:0x1cb,_0x367fcb:0x23d,_0x388879:0x1da,_0x5ece7b:0x2bf},_0x263527={_0x3cc054:0x5ba,_0x2c1ff6:0x5ab,_0x12fae1:0x3fa},_0x359d84={_0x479a18:0x1ad,_0x279e85:0x1a7},_0x1f8972={_0x30fa33:0x5,_0x46eb7a:0x138},_0x1d057f={_0x4a1d40:0x15d};if(_0x3b331a['readyState']===WebSocket[_0x458739(-0x17c,-_0x39604e._0x3e52af,-_0x39604e._0x1c9707,-0x207)]){throwIfAborted(_0x2cd2c2);return;}throwIfAborted(_0x2cd2c2);function _0x458739(_0x3fe282,_0x15bf3c,_0x2379d7,_0x437d3d){return _0x949fe0(_0x437d3d,_0x15bf3c-0xaa,_0x2379d7-_0x1d057f._0x4a1d40,_0x437d3d-0xc9);}await new Promise((_0x36ba87,_0x133c75)=>{const _0x3d15fc={_0x152d4d:0x87,_0x4410a7:0x22e},_0x31c6e9={_0x216802:0x5d},_0x479cd8={_0x3256d8:0x3d4,_0x2eb14d:0x3b8,_0x311fb7:0x3ce,_0x233f90:0x353,_0x9016c1:0x110,_0x271cf9:0xd3,_0x8fd8e7:0x1fa,_0x41055f:0x1f3,_0x4154f7:0x272},_0x1d4957=()=>{_0xea18d8(),_0x36ba87();};function _0x43e9f6(_0xaee079,_0x56b012,_0x1c7cc3,_0x23a08c){return _0x458739(_0xaee079-_0x1f8972._0x30fa33,_0x56b012-0x1fb,_0x1c7cc3-_0x1f8972._0x46eb7a,_0xaee079);}const _0x27983c=_0x19dea8=>{_0xea18d8();function _0x2cc0b9(_0x536c39,_0x2b262b,_0x5c7ab0,_0x3257f1){return _0x1f89(_0x2b262b- -0x39,_0x3257f1);}_0x133c75(new Error(_0x19dea8['message']||_0x2cc0b9(_0x359d84._0x479a18,0x105,0x84,_0x359d84._0x279e85)));},_0x560cfe=_0x5be44d=>{function _0x5b599b(_0x823c34,_0x109fe2,_0x2c272d,_0x400dbf){return _0x1f89(_0x2c272d- -0x20d,_0x109fe2);}_0xea18d8();const _0x4a0926=_0x5be44d;function _0x15de46(_0x2ccdcd,_0x1e11e0,_0x58efb2,_0x49fa7a){return _0x1f89(_0x1e11e0-0x335,_0x2ccdcd);}_0x133c75(new Error(_0x4a0926[_0x15de46(_0x263527._0x3cc054,_0x263527._0x2c1ff6,0x588,0x56e)]||_0x15de46(0x47f,0x495,0x514,_0x263527._0x12fae1)));},_0x5d019d=()=>{const _0x195df0={_0x5de89c:0xa};_0xea18d8();function _0x26ae81(_0x3c594f,_0x24d2ef,_0x5dac86,_0x1ce92b){return _0x1f89(_0x24d2ef-0x11a,_0x1ce92b);}function _0x219508(_0x4a4669,_0x39967a,_0x4e5687,_0x6af7d7){return _0x1f89(_0x39967a- -_0x195df0._0x5de89c,_0x6af7d7);}_0x3b331a[_0x26ae81(_0x479cd8._0x3256d8,_0x479cd8._0x2eb14d,_0x479cd8._0x311fb7,_0x479cd8._0x233f90)]===WebSocket[_0x219508(_0x479cd8._0x9016c1,0x194,0x17e,_0x479cd8._0x271cf9)]&&_0x3b331a['close'](0x3e8,_0x219508(0x1b6,_0x479cd8._0x8fd8e7,_0x479cd8._0x41055f,0x1ef)),_0x133c75(toAbortError(_0x2cd2c2?.[_0x219508(_0x479cd8._0x4154f7,0x26c,0x329,0x24c)]));},_0xea18d8=()=>{const _0x468097={_0x2ea657:0x24c};_0x3b331a[_0xfc8af0(0x148,_0x17d2d1._0x4878d4,0x16e,_0x17d2d1._0x53b647)](_0xfc8af0(0x219,0x1a2,_0x17d2d1._0xbc7d62,_0x17d2d1._0x331cbd),_0x1d4957);function _0x400c20(_0xe76942,_0x3f84ea,_0x4b7740,_0x5e5319){return _0x1f89(_0x5e5319-_0x468097._0x2ea657,_0x3f84ea);}_0x3b331a[_0x400c20(_0x17d2d1._0xe49b20,_0x17d2d1._0x174a81,0x317,0x375)](_0xfc8af0(0x208,0x265,_0x17d2d1._0x142f6a,_0x17d2d1._0x60ad17),_0x27983c),_0x3b331a[_0xfc8af0(_0x17d2d1._0x578949,0x186,0x215,0xd4)]('close',_0x560cfe);function _0xfc8af0(_0x41bb47,_0x3176a7,_0x3b16dc,_0x3dfab){return _0x1f89(_0x3176a7-_0x31c6e9._0x216802,_0x3dfab);}_0x2cd2c2?.[_0xfc8af0(_0x17d2d1._0x5ce449,_0x17d2d1._0x1a48a0,_0x17d2d1._0x413d23,0x13b)](_0xfc8af0(_0x17d2d1._0x37df01,_0x17d2d1._0x367fcb,_0x17d2d1._0x388879,_0x17d2d1._0x5ece7b),_0x5d019d);};_0x3b331a[_0x43e9f6(_0x4e3fa8._0x86954a,_0x4e3fa8._0x8e4e76,0x113,0x11f)](_0xca2eca(_0x4e3fa8._0xf2460b,_0x4e3fa8._0x974504,_0x4e3fa8._0x1c5784,_0x4e3fa8._0x41440d),_0x1d4957);function _0xca2eca(_0x308242,_0x2df479,_0x332553,_0xe65e6c){return _0x458739(_0x308242-_0x3d15fc._0x152d4d,_0x332553-_0x3d15fc._0x4410a7,_0x332553-0x36,_0x2df479);}_0x3b331a[_0xca2eca(0x35,_0x4e3fa8._0x1a0a87,0xc8,0xef)](_0xca2eca(0x86,_0x4e3fa8._0x1a5c3e,_0x4e3fa8._0x4703bc,_0x4e3fa8._0x3a70da),_0x27983c),_0x3b331a[_0xca2eca(_0x4e3fa8._0x283d9a,_0x4e3fa8._0x3fcdb,_0x4e3fa8._0x645b53,_0x4e3fa8._0x34cf16)]('close',_0x560cfe),_0x2cd2c2?.[_0x43e9f6(_0x4e3fa8._0x18251d,0x95,0x11a,-_0x4e3fa8._0x3177e5)](_0xca2eca(0x183,0x116,0x120,0x113),_0x5d019d,{'once':!![]});});}function iterateWebSocketMessages(_0x5e3d6a,_0xc38ab2){const _0xf23339={_0x1645e4:0x29f,_0x2c8b21:0x1f6,_0x11310a:0x5fb,_0x4d971f:0x2ef,_0x58d395:0x332,_0x1aa670:0x5dc,_0x308f6c:0x567,_0x2e232b:0x570,_0x26dada:0x4f4,_0x502963:0x4ea,_0xed753:0x549,_0x5de376:0x553,_0x194147:0x52f,_0x3b542f:0x48f},_0x4a0764={_0x591dd:0x2f1,_0xdde314:0x53,_0x43b9d8:0x57,_0x271239:0x5d,_0x21317a:0x4f,_0x193a7a:0x1d,_0x7b499:0x61,_0x284943:0x118,_0x5c1203:0x2f5,_0x3916e9:0x229,_0x149680:0x20},_0x33f8c7={_0x58c55a:0x4b,_0x164c5a:0x5,_0x30d646:0x379,_0x57bb6f:0x35a,_0x3913a6:0x3c7,_0x25a2ef:0x96,_0x2347dc:0xc1,_0x3d0b65:0xa0,_0x3074bd:0xc},_0x1759c0={_0x19f08f:0x1b7,_0x197631:0x1fc},_0x513e00={_0x197810:0xa0,_0x40b9bc:0x402},_0x226316={_0xe8f842:0x2fb,_0x197c72:0x295,_0x32e00e:0x266,_0x275e2a:0x223,_0x52fc29:0x18b},_0x33229a={_0x1fae00:0x307},_0x5979b2={_0x38d55a:0x396,_0x11076e:0x3b7,_0x5e68bc:0x36b,_0x350076:0x34f,_0x1cbfd3:0x204,_0x30ced7:0x244},_0x35f1dc={_0x4049bc:0x6f7,_0x4443e1:0xd,_0x520b77:0x1e1},_0x41ad85=[];function _0x2d13b9(_0x921041,_0x4d9e83,_0x20c56b,_0x15e8a4){return _0x949fe0(_0x15e8a4,_0x4d9e83-_0x35f1dc._0x4049bc,_0x20c56b-_0x35f1dc._0x4443e1,_0x15e8a4-_0x35f1dc._0x520b77);}let _0x39573b=![],_0x8b200,_0x27c221;const _0x5e7c16=_0x1ffa01=>{function _0x265c1b(_0x3c6a33,_0x59feaa,_0x3be7a1,_0x4fb59f){return _0x1f89(_0x59feaa-0x1e4,_0x3c6a33);}const _0x451537=_0x1ffa01;function _0x16568b(_0x241aa9,_0x3f3414,_0x4e92e4,_0xbd2907){return _0x1f89(_0x4e92e4- -0x1e,_0x3f3414);}try{_0x41ad85[_0x265c1b(0x43d,_0x5979b2._0x38d55a,_0x5979b2._0x11076e,0x45d)](JSON[_0x265c1b(0x383,_0x5979b2._0x5e68bc,0x2c1,_0x5979b2._0x350076)](String(_0x451537[_0x16568b(_0x5979b2._0x1cbfd3,0x2a8,_0x5979b2._0x30ced7,0x1f6)]))),_0x27c221?.(),_0x27c221=void 0x0;}catch(_0x4ba81c){_0x8b200=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x4ba81c)),_0x27c221?.(),_0x27c221=void 0x0;}},_0x491b1f=_0x1f2785=>{const _0x3b5ca1=_0x1f2785;_0x8b200=new Error(_0x3b5ca1[_0x2e9359(0x329,_0x226316._0xe8f842,_0x226316._0x197c72,0x318)]||_0x2e9359(_0x226316._0x32e00e,_0x226316._0x275e2a,_0x226316._0x52fc29,0x2bd));function _0x14538f(_0x33725f,_0x4e3508,_0x1e918e,_0x442d01){return _0x1f89(_0x1e918e-_0x33229a._0x1fae00,_0x442d01);}_0x27c221?.();function _0x2e9359(_0x286dc4,_0x823249,_0x3c77fa,_0x4a6a7b){return _0x1f89(_0x823249-0xe5,_0x4a6a7b);}_0x27c221=void 0x0;},_0x71cddc=_0xc91d36=>{const _0x3f85ef={_0x2d7372:0x26f},_0x3f30eb=_0xc91d36;!_0x39573b&&_0x3f30eb[_0x54a07a(0x45,-0x88,_0x513e00._0x197810,0x41)]!==0x3e8&&!_0x8b200&&(_0x8b200=new Error(_0x3f30eb['reason']||'WebSocket\x20closed\x20with\x20code\x20'+_0x3f30eb[_0x3b9917(0x3ba,_0x513e00._0x40b9bc,0x36b,0x45a)]));function _0x3b9917(_0x45936b,_0x7c9da4,_0x2fe4c5,_0xe0b0a0){return _0x1f89(_0x7c9da4-0x152,_0x45936b);}_0x39573b=!![],_0x27c221?.();function _0x54a07a(_0x5e8e14,_0x84b3a8,_0x25dd14,_0x28477d){return _0x1f89(_0x28477d- -_0x3f85ef._0x2d7372,_0x25dd14);}_0x27c221=void 0x0;};function _0x100172(_0x251355,_0x39ceef,_0x21736e,_0x40348e){return _0x2c5722(_0x39ceef,_0x39ceef-_0x1759c0._0x19f08f,_0x251355-_0x1759c0._0x197631,_0x40348e-0x77);}const _0x34063d=addAbortListener(_0xc38ab2,()=>{_0x8b200=toAbortError(_0xc38ab2?.[_0x2519e6(0x101,_0x33f8c7._0x58c55a,_0x33f8c7._0x164c5a,0x4b)]);_0x5e3d6a['readyState']===WebSocket[_0x5c055b(0x3ed,_0x33f8c7._0x30d646,_0x33f8c7._0x57bb6f,_0x33f8c7._0x3913a6)]&&_0x5e3d6a[_0x2519e6(-0x152,-_0x33f8c7._0x25a2ef,-_0x33f8c7._0x2347dc,-_0x33f8c7._0x3d0b65)](0x3e8,_0x2519e6(-0xc3,-0x27,_0x33f8c7._0x3074bd,-0x27));_0x27c221?.();function _0x5c055b(_0x4b7ee1,_0x50ec37,_0xfa41fa,_0xe0f550){return _0x1f89(_0x4b7ee1-0x24f,_0xe0f550);}function _0x2519e6(_0x528a8c,_0x21a1a2,_0x468aae,_0x9289c0){return _0x1f89(_0x9289c0- -0x22b,_0x528a8c);}_0x27c221=void 0x0;});return _0x5e3d6a[_0x100172(0x290,_0xf23339._0x1645e4,0x22e,_0xf23339._0x2c8b21)](_0x2d13b9(0x4d4,0x575,0x63b,_0xf23339._0x11310a),_0x5e7c16),_0x5e3d6a[_0x100172(0x290,_0xf23339._0x4d971f,_0xf23339._0x58d395,0x359)](_0x2d13b9(_0xf23339._0x1aa670,_0xf23339._0x308f6c,_0xf23339._0x2e232b,_0xf23339._0x11310a),_0x491b1f),_0x5e3d6a[_0x100172(0x290,0x22d,0x1d3,0x308)](_0x2d13b9(_0xf23339._0x26dada,_0xf23339._0x502963,_0xf23339._0xed753,0x551),_0x71cddc),{async*[Symbol[_0x2d13b9(_0xf23339._0x5de376,0x495,_0xf23339._0x194147,_0xf23339._0x3b542f)]](){const _0x34cc37={_0x300990:0xe7,_0x5de26b:0x104};function _0x2b775e(_0x32df96,_0x5ac031,_0x2e06e0,_0xfcf96){return _0x100172(_0xfcf96- -_0x34cc37._0x300990,_0x32df96,_0x2e06e0-_0x34cc37._0x5de26b,_0xfcf96-0xcd);}function _0x4ba4ab(_0x347e78,_0x569ecc,_0x5dc1ca,_0x551f44){return _0x2d13b9(_0x347e78-0x17,_0x5dc1ca- -0x4e9,_0x5dc1ca-0x71,_0x347e78);}try{while(!![]){if(_0x8b200)throw _0x8b200;if(_0x41ad85[_0x2b775e(0x2d4,_0x4a0764._0x591dd,0x2b7,0x2bd)]>0x0){yield _0x41ad85[_0x4ba4ab(-0x70,_0x4a0764._0xdde314,-_0x4a0764._0x43b9d8,-_0x4a0764._0x271239)]();continue;}if(_0x39573b)break;await new Promise(_0x5026b9=>{_0x27c221=_0x5026b9;});}}finally{_0x5e3d6a[_0x4ba4ab(_0x4a0764._0x21317a,_0x4a0764._0x193a7a,-0x61,-0xe1)]('message',_0x5e7c16),_0x5e3d6a[_0x4ba4ab(-0x3c,0x58,-_0x4a0764._0x7b499,-_0x4a0764._0x284943)](_0x2b775e(0x2ba,_0x4a0764._0x5c1203,0x21c,_0x4a0764._0x3916e9),_0x491b1f),_0x5e3d6a[_0x4ba4ab(-0x21,0x3f,-0x61,-_0x4a0764._0x149680)]('close',_0x71cddc),_0x34063d();}}};}function toWebSocketUrl(_0x5cd8fa,_0x4f36b1){const _0xc18ccb={_0x430c0f:0xc0,_0x1f6f9f:0x1db,_0x45ee7b:0x1db,_0x509bd5:0x22c,_0x4d5670:0x17a,_0x58fbda:0x31,_0x3e47c1:0xbe,_0x4c991b:0x10,_0x5d924d:0x37},_0x5e07ad={_0x58d001:0x10f},_0x2fa9fb={_0x3fad6d:0x1f1},_0x51bde1=new URL(_0x4f36b1,_0x5cd8fa);function _0x3da515(_0x5e3379,_0x386528,_0x5966d1,_0xc7277){return _0x2c5722(_0x5e3379,_0x386528-_0x2fa9fb._0x3fad6d,_0x386528-0x43,_0xc7277-0x52);}function _0x5c0815(_0x5dd12e,_0x425e3f,_0x4d983b,_0x1715fe){return _0x949fe0(_0x4d983b,_0x425e3f-_0x5e07ad._0x58d001,_0x4d983b-0x1cb,_0x1715fe-0x107);}return _0x51bde1['protocol']=_0x51bde1[_0x5c0815(-0x19c,-0x147,-_0xc18ccb._0x430c0f,-_0xc18ccb._0x1f6f9f)]===_0x3da515(0x1b0,_0xc18ccb._0x45ee7b,_0xc18ccb._0x509bd5,_0xc18ccb._0x4d5670)?_0x5c0815(-0x19c,-0xfa,-0x199,-_0xc18ccb._0x58fbda):'ws:',_0x51bde1[_0x5c0815(_0xc18ccb._0x3e47c1,_0xc18ccb._0x4c991b,-_0xc18ccb._0x5d924d,-_0xc18ccb._0x58fbda)]();}var ProviderSessionManager=class{[_0x949fe0(-0x1fd,-0x153,-0x12e,-0x1d3)];[_0x2c5722(0x161,0x110,0x19f,0x151)];constructor(_0x26930a){const _0x3bdd7c={_0x34c349:0x7a,_0x3f329b:0x61,_0x368663:0xad},_0x3e5bfe={_0x5efea6:0x1c1};function _0x2f12af(_0x51e419,_0x4e6132,_0x3cf3ad,_0x3f27a0){return _0x2c5722(_0x4e6132,_0x4e6132-0x189,_0x51e419- -0x1cb,_0x3f27a0-_0x3e5bfe._0x5efea6);}this[_0x2f12af(-_0x3bdd7c._0x34c349,-_0x3bdd7c._0x3f329b,-0x72,-_0x3bdd7c._0x368663)]=_0x26930a;}async[_0x2c5722(0x99,0xd7,0x74,0x42)](_0x2859b0){const _0x468417={_0x2e051e:0xc,_0x235c5d:0xa2,_0x3c8cf2:0x18,_0x140efe:0x1be,_0x2277ee:0x14a},_0x57ab68={_0x6b7522:0xd8};function _0x1d027c(_0x341f07,_0x221a9f,_0x94b53e,_0x492d9d){return _0x949fe0(_0x341f07,_0x221a9f-0xf9,_0x94b53e-0x18a,_0x492d9d-0x8d);}function _0x5f2d89(_0x3aed35,_0x1aed4d,_0x37f012,_0x36671b){return _0x2c5722(_0x37f012,_0x1aed4d-_0x57ab68._0x6b7522,_0x36671b- -0x1ef,_0x36671b-0xe9);}return!this['cached']&&(this[_0x1d027c(0x3,-_0x468417._0x2e051e,0x3c,_0x468417._0x235c5d)]=this[_0x5f2d89(-0x50,_0x468417._0x3c8cf2,-0x89,-0x9e)][_0x5f2d89(-_0x468417._0x140efe,-_0x468417._0x2277ee,-0x21b,-0x17b)](_0x2859b0)),structuredClone(await this['cached']);}[_0x2c5722(0xfa,0x231,0x1a9,0x24a)](){const _0x1c3323={_0x2ad79a:0xc6},_0x14cd03={_0x2e202f:0x1cb};function _0x42366f(_0x53f651,_0x2614cf,_0x192371,_0x5b7305){return _0x949fe0(_0x2614cf,_0x192371-0x182,_0x192371-0x1d6,_0x5b7305-_0x14cd03._0x2e202f);}this[_0x42366f(0x80,_0x1c3323._0x2ad79a,0x7d,0x4a)]=void 0x0;}};async function prepareProviderRequest(_0x5ff33b,_0x4eeca6={}){const _0xb1c3ce={_0x2c02f6:0x32c,_0x25ab99:0x2d4,_0x515b49:0x393,_0x2c532d:0x2aa,_0x1e7312:0x2df,_0x5223bb:0x279,_0x1ffe65:0x2c2,_0x4f24e2:0x257,_0x5ce990:0x31b},_0x466a2d={_0x310a70:0x144,_0x3f56cd:0x1d0};function _0x2c5047(_0xb32e0e,_0x5d6b71,_0x2082cd,_0x5ba4eb){return _0x2c5722(_0x5ba4eb,_0x5d6b71-0xa9,_0x2082cd-0x26b,_0x5ba4eb-0x60);}let _0x5921c3={'request':structuredClone(_0x5ff33b),'session':_0x4eeca6[_0x150f33(0x249,0x2b5,0x341,0x282)]?await _0x4eeca6[_0x2c5047(0x379,0x3c4,_0xb1c3ce._0x2c02f6,_0xb1c3ce._0x25ab99)][_0x2c5047(_0xb1c3ce._0x515b49,_0xb1c3ce._0x2c532d,_0xb1c3ce._0x1e7312,0x270)](_0x4eeca6[_0x150f33(0x1f8,0x283,0x1e9,0x338)]):void 0x0};for(const _0xdb9a7e of _0x4eeca6[_0x150f33(_0xb1c3ce._0x5223bb,_0xb1c3ce._0x1ffe65,_0xb1c3ce._0x4f24e2,_0xb1c3ce._0x5ce990)]??[]){_0x5921c3=await _0xdb9a7e(_0x5921c3);}function _0x150f33(_0x17f0fa,_0x14f011,_0xa48f5e,_0x360066){return _0x949fe0(_0xa48f5e,_0x14f011-0x498,_0xa48f5e-_0x466a2d._0x310a70,_0x360066-_0x466a2d._0x3f56cd);}return _0x5921c3;}var MAX_PROVIDER_REQUEST_ATTEMPTS=0xa,RETRYABLE_HTTP_STATUSES=new Set([0x198,0x1ad,0x1f4,0x1f6,0x1f7,0x1f8]),DEFAULT_RETRY_DELAY_MS=0x1f4,RETRY_DELAY_STEP_CAP_MS=0x3a98,RoutedModel=class{[_0x2c5722(0x90,0x63,0x56,-0x59)];[_0x2c5722(0x21e,0x1b2,0x1bd,0x225)];[_0x2c5722(0x154,0x1c7,0x125,0x1a7)];[_0x949fe0(-0x1cb,-0x138,-0x113,-0xf7)];[_0x2c5722(0x1d,0x27,0xd7,0x12a)];[_0x2c5722(0x104,-0x33,0x43,0xbe)];[_0x2c5722(-0x25,-0x30,0x84,-0x6)];[_0x949fe0(-0x1ab,-0x1d6,-0x277,-0x25e)];[_0x2c5722(0xff,0x15,0x77,0x109)];[_0x949fe0(-0x1cc,-0x1e3,-0x228,-0x25d)];[_0x949fe0(-0x2e9,-0x22e,-0x22b,-0x19e)];[_0x2c5722(0xb7,0x92,0x87,0x10e)]=new Map();constructor(_0x5448c8){const _0x529d7d={_0x352b21:0x446,_0x179dec:0x492,_0x174fcb:0x544,_0x4ff988:0x3ae,_0x49275e:0x33a,_0x24a9ee:0x560,_0xd8dfa1:0x4ac,_0x44f6f9:0x4a9,_0x173574:0x45e,_0x4bb947:0x4b0,_0x5ac9d1:0x3b2,_0x391830:0x3fe,_0x1fe84a:0x2df,_0xfca50e:0x3e2,_0x4fdb8d:0x44d,_0x567231:0x457,_0x1de208:0x30d,_0x421cdc:0x34c,_0x362f97:0x2b3,_0x19689c:0x3b4,_0x240959:0x3a0,_0x336d0b:0x29d,_0x5429ec:0x3bb,_0x3d8b11:0x2ff,_0x51fb42:0x300,_0x80d7df:0x240,_0x1e1485:0x31e,_0x250d54:0x3d7,_0x3cd31c:0x3d3,_0x56df62:0x3b1,_0x5bef3e:0x50e,_0x3d207a:0x3d4,_0x54b59b:0x419,_0x542442:0x370,_0x2bae56:0x3e5,_0x25dc38:0x38f,_0x34bca3:0x379,_0xb2366f:0x391,_0xd3484c:0x310,_0x2215ea:0x2f2,_0x583209:0x340,_0x3869ee:0x2d4,_0x3f7bb9:0x232,_0x3cf725:0x287},_0x488f99={_0x2f21ef:0x62b,_0x590064:0x37},_0x20692a={_0xd407c4:0x1dc};this['model']=_0x5448c8['model'];function _0x276817(_0xe52034,_0x55cfac,_0x1b14f0,_0x2175c9){return _0x949fe0(_0x1b14f0,_0xe52034-0x52d,_0x1b14f0-_0x20692a._0xd407c4,_0x2175c9-0x90);}this[_0x276817(_0x529d7d._0x352b21,0x3e7,0x459,0x38e)]=_0x5448c8[_0x39c2aa(_0x529d7d._0x179dec,_0x529d7d._0x174fcb,0x4ef,0x4a3)]??0x4000;function _0x39c2aa(_0x32e4b2,_0x4a9b81,_0x14c07b,_0x479b5d){return _0x949fe0(_0x32e4b2,_0x4a9b81-_0x488f99._0x2f21ef,_0x14c07b-_0x488f99._0x590064,_0x479b5d-0x119);}this[_0x276817(_0x529d7d._0x4ff988,0x477,0x3b8,_0x529d7d._0x49275e)]=_0x5448c8['reasoning']?structuredClone(_0x5448c8[_0x39c2aa(_0x529d7d._0x24a9ee,_0x529d7d._0xd8dfa1,_0x529d7d._0x44f6f9,0x4d2)]):void 0x0,this['apiKey']=_0x5448c8[_0x276817(0x3f5,0x405,0x334,0x3e8)],this[_0x39c2aa(0x4f5,_0x529d7d._0x173574,_0x529d7d._0x4bb947,0x433)]=_0x5448c8[_0x276817(0x360,_0x529d7d._0x5ac9d1,_0x529d7d._0x391830,_0x529d7d._0x1fe84a)],this[_0x39c2aa(0x426,0x3ca,_0x529d7d._0xfca50e,_0x529d7d._0x4fdb8d)]=_0x5448c8[_0x276817(0x3f0,0x417,_0x529d7d._0x567231,0x399)]??globalThis['fetch'],this[_0x276817(_0x529d7d._0x1de208,0x27d,_0x529d7d._0x421cdc,_0x529d7d._0x362f97)]=_0x5448c8[_0x39c2aa(_0x529d7d._0x19689c,0x40b,_0x529d7d._0x240959,0x3d0)],this[_0x276817(0x357,_0x529d7d._0x336d0b,0x2ce,_0x529d7d._0x5429ec)]=_0x5448c8[_0x276817(0x357,_0x529d7d._0x3d8b11,0x349,0x381)]??[],this[_0x276817(0x300,0x30e,0x356,0x2a8)]=_0x5448c8[_0x276817(_0x529d7d._0x51fb42,0x36d,_0x529d7d._0x80d7df,_0x529d7d._0x1e1485)],this[_0x276817(0x34a,_0x529d7d._0x250d54,0x3b6,_0x529d7d._0x3cd31c)]=_0x5448c8[_0x39c2aa(0x50d,0x448,0x3ae,_0x529d7d._0x56df62)]??(_0x5448c8[_0x39c2aa(_0x529d7d._0x5bef3e,0x46e,_0x529d7d._0x3d207a,_0x529d7d._0x54b59b)]?new ProviderSessionManager(_0x5448c8[_0x276817(_0x529d7d._0x542442,0x318,_0x529d7d._0x2bae56,0x2be)]):void 0x0),this['webSocketFactory']=_0x5448c8[_0x276817(0x2ff,_0x529d7d._0x25dc38,0x259,_0x529d7d._0x34bca3)]??createDefaultWebSocketFactory();for(const _0x5b952a of _0x5448c8[_0x39c2aa(0x38e,0x40e,0x375,_0x529d7d._0xb2366f)]){this[_0x276817(_0x529d7d._0xd3484c,_0x529d7d._0x2215ea,_0x529d7d._0x583209,0x3cb)][_0x276817(_0x529d7d._0x3869ee,0x217,_0x529d7d._0x3f7bb9,_0x529d7d._0x3cf725)](_0x5b952a['id'],_0x5b952a);}}[_0x2c5722(0xee,-0x1c,0x48,-0x59)](_0x65876b,_0x55a445){const _0x35e58c={_0x432530:0x473},_0x1d50f6={_0x1e9b20:0x1d2};function _0x5b218f(_0x4b4ba3,_0x172af4,_0x32f26b,_0x16d5e2){return _0x949fe0(_0x16d5e2,_0x4b4ba3-0x5dd,_0x32f26b-_0x1d50f6._0x1e9b20,_0x16d5e2-0x1f3);}return this[_0x5b218f(0x3e2,0x3fd,0x43f,_0x35e58c._0x432530)](_0x65876b,_0x55a445);}['stream'](_0xb6c85e,_0x4511c9){const _0x465624={_0x4b3ce0:0x435,_0x2b061b:0xb,_0xc47af7:0xa3};function _0x4c1865(_0x553bed,_0x1b4d12,_0x408ff4,_0x55bb23){return _0x949fe0(_0x408ff4,_0x553bed-_0x465624._0x4b3ce0,_0x408ff4-_0x465624._0x2b061b,_0x55bb23-_0x465624._0xc47af7);}return this[_0x4c1865(0x2cd,0x280,0x241,0x23a)](_0xb6c85e,_0x4511c9);}async[_0x2c5722(0x2d,0xfd,0xa9,0x122)](_0x180d1d,_0x3e550a){const _0x2ea620={_0xe680aa:0x4bf,_0x39105a:0x471,_0x5ce706:0x46c,_0x2f1ff7:0x388,_0x3e5d01:0x3f0,_0x5e81dc:0x2f2,_0x26c092:0x36c,_0x1e5005:0x37a,_0xbc238b:0x2c6,_0x1302aa:0x2f6,_0x26c75f:0x51c,_0xbf4256:0x4db},_0x467ed6={_0x3177f5:0x311};function _0x236a80(_0x54f7bc,_0x266a34,_0x15812e,_0x1b81f3){return _0x2c5722(_0x1b81f3,_0x266a34-0x83,_0x15812e-0x2ae,_0x1b81f3-0x74);}const _0xcb9e29=this[_0x236a80(0x536,_0x2ea620._0xe680aa,_0x2ea620._0x39105a,_0x2ea620._0x5ce706)](_0x180d1d),_0x7024d6=await this[_0x3e343f(0x390,_0x2ea620._0x2f1ff7,_0x2ea620._0x3e5d01,0x2bf)][_0x236a80(_0x2ea620._0x5e81dc,_0x2ea620._0x26c092,0x351,_0x2ea620._0x1e5005)](_0xcb9e29,{'mode':_0x236a80(0x28d,_0x2ea620._0xbc238b,_0x2ea620._0x1302aa,0x371)});function _0x3e343f(_0x387cd3,_0x466f05,_0x4aa8a4,_0x5ed0c9){return _0x2c5722(_0x387cd3,_0x466f05-0xa8,_0x466f05-_0x467ed6._0x3177f5,_0x5ed0c9-0x68);}return this[_0x3e343f(_0x2ea620._0x26c75f,_0x2ea620._0xbf4256,0x507,0x4d6)](_0xcb9e29,_0x7024d6,_0x3e550a);}async*[_0x2c5722(0x1a8,0x200,0x13c,0x1f0)](_0x544066,_0x42ec6e){const _0x44940c={_0x221f6e:0x3d1,_0x1220bb:0x304,_0x1fe76d:0x425,_0x1876a9:0x36d,_0x748ae5:0x22b,_0xece1b6:0x1a3,_0x52722a:0x340,_0xc4c3c8:0x36a},_0x515837={_0x357e71:0xa1};function _0x21d3e2(_0x4e501e,_0x315c77,_0x3c85bb,_0x207861){return _0x949fe0(_0x207861,_0x4e501e-0x3bc,_0x3c85bb-0x2c,_0x207861-0x1eb);}const _0x2da43d=this['applyModelDefaults'](_0x544066),_0x143e90=await this[_0x1e4e7f(0x2b2,_0x44940c._0x221f6e,0x341,_0x44940c._0x1220bb)][_0x1e4e7f(_0x44940c._0x1fe76d,0x421,_0x44940c._0x1876a9,0x300)](_0x2da43d,{'mode':_0x21d3e2(0x25a,_0x44940c._0x748ae5,0x1f0,_0x44940c._0xece1b6)});function _0x1e4e7f(_0x4ee84a,_0x1bb068,_0x5c88ea,_0x366d84){return _0x2c5722(_0x1bb068,_0x1bb068-0x195,_0x5c88ea-0x2ca,_0x366d84-_0x515837._0x357e71);}yield*this[_0x1e4e7f(_0x44940c._0x52722a,0x304,0x3c6,_0x44940c._0xc4c3c8)](_0x2da43d,_0x143e90,_0x42ec6e);}async[_0x2c5722(0x259,0x21e,0x1ca,0x250)](_0x5cf63c,_0x544b4e,_0x1ee4c3){const _0xc2d0dd={_0x2432a1:0x2b5,_0x561168:0x1fd,_0x5af8b0:0x2c4,_0xc626a7:0x32,_0xedb81b:0x97,_0x964ad7:0x163,_0x4656c7:0x15c,_0x61cc42:0x182,_0x1dae09:0xc5,_0x1aff5c:0xdb,_0x2ff488:0x141,_0x2865ac:0xe0,_0x238c6c:0x284,_0x167474:0x192,_0x49829a:0x1f6,_0xbbfe12:0x5c,_0x3acd9d:0x116,_0x1cedbd:0x1e4,_0x369100:0x2e6,_0x46e08f:0x278,_0x4b885f:0x1c5,_0x3c421d:0x119,_0x1f84d6:0x328,_0x3fbecf:0xac,_0x57d433:0x9a,_0x47efa0:0x143,_0x171aa1:0x129,_0x1af402:0x128,_0x3f1dc7:0x1df,_0x3c5c8b:0x158},_0x1299a5={_0x164b1d:0xe9,_0x16255e:0xce},_0xbef815={_0x3495fd:0x141},_0x56e3af=this[_0x4eaa13(_0xc2d0dd._0x2432a1,_0xc2d0dd._0x561168,0x20a,_0xc2d0dd._0x5af8b0)](_0x5cf63c),_0x554893=this['getSurface'](_0x544b4e);if(_0x554893[_0x4eaa13(0xe8,-_0xc2d0dd._0xc626a7,_0xc2d0dd._0xedb81b,_0xc2d0dd._0x964ad7)]===_0x4eaa13(0x1a4,_0xc2d0dd._0x4656c7,_0xc2d0dd._0x61cc42,0x1d6)){const _0x3b4855=await this[_0x4eaa13(_0xc2d0dd._0x1dae09,_0xc2d0dd._0x1aff5c,_0xc2d0dd._0x2ff488,_0xc2d0dd._0x2865ac)](_0x56e3af,_0x554893,![],_0x1ee4c3?.['signal']);if(!_0x3b4855['ok'])throw await this[_0x147859(_0xc2d0dd._0x238c6c,_0xc2d0dd._0x167474,_0xc2d0dd._0x49829a,0x1f0)](_0x3b4855);if(!_0x554893['parseResponse'])throw new Error(_0x4eaa13(_0xc2d0dd._0xbbfe12,_0xc2d0dd._0x3acd9d,0xf4,0x71)+_0x544b4e+_0x147859(_0xc2d0dd._0x1cedbd,_0xc2d0dd._0x369100,_0xc2d0dd._0x46e08f,_0xc2d0dd._0x4b885f));return _0x554893[_0x4eaa13(_0xc2d0dd._0x3c421d,0x115,0xe4,0x162)](await _0x3b4855[_0x147859(0x276,_0xc2d0dd._0x1f84d6,0x2d9,0x261)](),_0x56e3af);}let _0xaad858;for await(const _0x3e4c42 of this[_0x4eaa13(_0xc2d0dd._0x3fbecf,_0xc2d0dd._0x57d433,_0xc2d0dd._0x47efa0,_0xc2d0dd._0x171aa1)](_0x56e3af,_0x544b4e,_0x1ee4c3)){_0x3e4c42[_0x147859(0x262,0x28b,0x1d1,_0xc2d0dd._0x1af402)]==='done'&&(_0xaad858=_0x3e4c42[_0x147859(0x263,0x204,_0xc2d0dd._0x3f1dc7,_0xc2d0dd._0x3c5c8b)]);}if(!_0xaad858)throw new Error('Surface\x20'+_0x544b4e+'\x20did\x20not\x20produce\x20a\x20final\x20response');function _0x147859(_0x4b0ae3,_0x223fdd,_0x1df8e9,_0x3740c3){return _0x949fe0(_0x4b0ae3,_0x1df8e9-0x3f8,_0x1df8e9-0x40,_0x3740c3-_0xbef815._0x3495fd);}function _0x4eaa13(_0x24edb8,_0x289b92,_0x3b3ec8,_0x369904){return _0x949fe0(_0x289b92,_0x3b3ec8-0x2eb,_0x3b3ec8-_0x1299a5._0x164b1d,_0x369904-_0x1299a5._0x16255e);}return _0xaad858;}async*['streamViaSurface'](_0x327107,_0xd53d1a,_0x4377cc){const _0x4bd152={_0x480e56:0x2ab,_0x215d8a:0xdf,_0x9c0185:0x183,_0xb4c429:0xfd,_0x17850b:0x1d0,_0x5ee76c:0x223,_0xc8af6a:0x171,_0x32940a:0xbb,_0x13c15d:0x24d,_0x2e51b7:0x255,_0x9cfb21:0x318,_0x1b3692:0x2ce,_0x3f6e7d:0x1f0,_0x1f9743:0x252,_0x1ad41:0x290,_0x1da0e8:0x6c,_0x43d7aa:0x125},_0x58b670={_0x1a8d2f:0x1ee,_0x28ff4d:0xe8},_0x366f0a={_0x11e4e1:0x98,_0x588901:0x4c},_0x26e610=this[_0x227ae0(0x36b,0x2fa,0x2a3,_0x4bd152._0x480e56)](_0x327107),_0x346e2c=this['getSurface'](_0xd53d1a);if(_0x346e2c[_0x227ae0(_0x4bd152._0x215d8a,_0x4bd152._0x9c0185,_0x4bd152._0xb4c429,0x138)]===_0x227ae0(0x275,0x242,_0x4bd152._0x17850b,_0x4bd152._0x5ee76c)){yield{'type':_0x227ae0(0x192,0xa9,_0x4bd152._0xc8af6a,0x140),'response':await this[_0x568ad3(-0x10f,-0x73,-_0x4bd152._0x32940a,-0xdb)](_0x26e610,_0xd53d1a,_0x4377cc)};return;}function _0x568ad3(_0x4d7268,_0x454c54,_0x3dccf4,_0x22acdf){return _0x949fe0(_0x3dccf4,_0x22acdf- -0x1,_0x3dccf4-_0x366f0a._0x11e4e1,_0x22acdf-_0x366f0a._0x588901);}function _0x227ae0(_0x3ba1a8,_0x5d59e9,_0x4dae2b,_0x510474){return _0x2c5722(_0x4dae2b,_0x5d59e9-_0x58b670._0x1a8d2f,_0x510474-_0x58b670._0x28ff4d,_0x510474-0x22);}if(_0x346e2c[_0x568ad3(-_0x4bd152._0x13c15d,-0x1f4,-0x2af,-_0x4bd152._0x2e51b7)]===_0x568ad3(-_0x4bd152._0x9cfb21,-_0x4bd152._0x1b3692,-_0x4bd152._0x3f6e7d,-_0x4bd152._0x1f9743)){yield*this['streamHttpSurface'](_0x26e610,_0x346e2c,_0x4377cc?.[_0x568ad3(-0x2ad,-_0x4bd152._0x1ad41,-0x2b4,-0x216)]);return;}yield*this[_0x568ad3(-0x19e,-_0x4bd152._0x1da0e8,-_0x4bd152._0x43d7aa,-0xf3)](_0x26e610,_0x346e2c,_0x4377cc?.[_0x227ae0(0x19b,0x12f,0xcb,0x177)]);}async[_0x949fe0(-0x142,-0x167,-0x1c1,-0x187)](_0x152c4a){const _0x235857={_0x11666a:0x210},_0x51805f={_0x3d5367:0x4d,_0x398938:0x29f,_0x430a91:0x5c},_0x1477b2={_0x5f2a4a:0x1c7,_0x2c3d0c:0xe5,_0x5c205d:0x158,_0x1bacc1:0x157,_0x13ba49:0x19a,_0x19878c:0x126,_0x5d322b:0x143,_0x25b48c:0x125,_0x430f96:0x12e,_0x49b646:0x10e,_0x3fa1d5:0xcd,_0x3c87b5:0x104,_0x11b4a6:0x175,_0x1a4a87:0x61,_0x35d821:0x21a,_0x55dfad:0x192,_0xc84c02:0x4c,_0x34ffe2:0x8c,_0x2c8bb9:0xf2,_0x5f0a43:0x178,_0x2ccb20:0x2f4,_0x34db01:0x24a,_0x58b542:0x8b,_0x31a1a8:0x68,_0x3d7c5f:0x12a,_0x1290d0:0x19d},_0x3a51b8=async()=>{const _0x2aeab3={_0x2b6a9f:0x116},_0x113945={_0x16d17e:0x5d},_0x14f7f7=this[_0x407ecb(_0x1477b2._0x5f2a4a,_0x1477b2._0x2c3d0c,0x220,_0x1477b2._0x5c205d)]?await this[_0x407ecb(_0x1477b2._0x1bacc1,0x20a,0x8e,0x158)]['resolve'](_0x152c4a[_0x407ecb(0x1c6,_0x1477b2._0x13ba49,0x1e1,_0x1477b2._0x19878c)]):void 0x0,_0x32839a=this['providerAdapter']['resolveCredential'](this[_0x407ecb(0x260,_0x1477b2._0x5d322b,0x22e,0x203)],_0x14f7f7);if(!_0x32839a)throw this[_0x407ecb(_0x1477b2._0x25b48c,0x139,_0x1477b2._0x430f96,0x182)]();const _0x2b2915=await this[_0x407ecb(_0x1477b2._0x49b646,0x3,0x4e,_0x1477b2._0x3fa1d5)]({'body':_0x152c4a['body'],'credential':_0x32839a,'session':_0x14f7f7,'stream':![]},{'accept':_0x152c4a[_0x407ecb(_0x1477b2._0x3c87b5,_0x1477b2._0x11b4a6,_0x1477b2._0x1a4a87,0xf3)]??_0x407ecb(_0x1477b2._0x35d821,0x10c,0x12c,0x173),'includeContentType':_0x152c4a[_0x5910f4(-0x57,0x1e,0xb6,-0x37)]===_0x407ecb(0x151,0x13f,0x251,_0x1477b2._0x55dfad)});function _0x407ecb(_0x4a0a9d,_0xaa2629,_0xe401d8,_0x1e8816){return _0x1f89(_0x1e8816- -_0x113945._0x16d17e,_0xe401d8);}function _0x5910f4(_0x2c3af8,_0x9f642b,_0x4f194d,_0x13d43c){return _0x1f89(_0x9f642b- -_0x2aeab3._0x2b6a9f,_0x4f194d);}return this[_0x407ecb(0xcd,_0x1477b2._0xc84c02,0x77,0xda)](''+this[_0x5910f4(_0x1477b2._0x34ffe2,0x62,_0x1477b2._0x2c8bb9,0xed)][_0x407ecb(0xf6,_0x1477b2._0x5f0a43,0xcf,0x13b)](this['baseUrl'],_0x14f7f7)+_0x152c4a[_0x407ecb(0x1eb,_0x1477b2._0x2ccb20,0x283,_0x1477b2._0x34db01)],{'method':_0x152c4a[_0x5910f4(0x54,0x1e,_0x1477b2._0x58b542,0xb3)],'headers':_0x2b2915,..._0x152c4a['body']!==void 0x0?{'body':JSON[_0x407ecb(0x15c,0x1b2,0x1a6,0x108)](_0x152c4a[_0x5910f4(0x59,_0x1477b2._0x31a1a8,_0x1477b2._0x3d7c5f,0x71)])}:{},'signal':_0x152c4a[_0x407ecb(0x12f,_0x1477b2._0x1290d0,0x175,0x126)]});};function _0x3e4002(_0x1726b6,_0x48883e,_0xc372c2,_0xa290ce){return _0x2c5722(_0x48883e,_0x48883e-_0x51805f._0x3d5367,_0x1726b6- -_0x51805f._0x398938,_0xa290ce-_0x51805f._0x430a91);}return await this['sendWithRetries'](_0x3a51b8,_0x152c4a[_0x3e4002(-_0x235857._0x11666a,-0x2d0,-0x2d6,-0x295)]);}[_0x949fe0(-0x20e,-0x1a1,-0x104,-0x1b7)](_0x32b560,_0x169195){const _0x25a7dd={_0x5bc620:0x5bc,_0x27aeca:0x5b1,_0x560867:0x55f,_0x5799fd:0x197},_0x1c5f01={_0x44a417:0x4d},_0x55b9c4={_0x4ea010:0x92};function _0x43ede1(_0x20b691,_0x208a01,_0x3ca32f,_0x30499d){return _0x949fe0(_0x30499d,_0x20b691-0x775,_0x3ca32f-_0x55b9c4._0x4ea010,_0x30499d-0xa);}const _0x5efa82=_0x32b560?.[_0x43ede1(0x671,0x604,0x5aa,_0x25a7dd._0x5bc620)]['get']('retry-after');function _0x25c053(_0x57e289,_0x14a141,_0x5eaaa2,_0x566078){return _0x949fe0(_0x14a141,_0x566078-0x353,_0x5eaaa2-_0x1c5f01._0x44a417,_0x566078-0x59);}if(_0x5efa82){const _0x3ff8f9=Number(_0x5efa82);if(Number[_0x43ede1(0x552,_0x25a7dd._0x27aeca,_0x25a7dd._0x560867,0x5ba)](_0x3ff8f9)&&_0x3ff8f9>=0x0)return _0x3ff8f9*0x3e8;const _0xf32ad0=Date[_0x25c053(0x15d,_0x25a7dd._0x5799fd,0x13b,0x142)](_0x5efa82);if(Number[_0x43ede1(0x552,0x4a1,0x5b5,0x4fe)](_0xf32ad0))return Math['max'](0x0,_0xf32ad0-Date['now']());}const _0x20857e=DEFAULT_RETRY_DELAY_MS*0x2**_0x169195;if(_0x20857e<RETRY_DELAY_STEP_CAP_MS)return _0x20857e;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x169195-0x5);}[_0x949fe0(-0x9f,-0x10a,-0x4d,-0x1b5)](_0x3119dc){const _0x331ff5={_0x1962e7:0x136,_0x128f74:0x163,_0x975862:0x359,_0x20e7e1:0x361},_0x12114a={_0xfe7d19:0x9b,_0xf9113f:0x27d,_0x281745:0x19c},_0x4b6dc4={_0x279eae:0x112,_0x245712:0x15e};function _0x8b2728(_0x590798,_0x5986bd,_0x1ee5ef,_0x5a2ee2){return _0x949fe0(_0x1ee5ef,_0x590798-0x290,_0x1ee5ef-_0x4b6dc4._0x279eae,_0x5a2ee2-_0x4b6dc4._0x245712);}function _0x4e2e91(_0xf01672,_0x34b341,_0x5506c1,_0x41fef1){return _0x2c5722(_0x5506c1,_0x34b341-_0x12114a._0xfe7d19,_0x34b341-_0x12114a._0xf9113f,_0x41fef1-_0x12114a._0x281745);}return RETRYABLE_HTTP_STATUSES[_0x8b2728(0x12a,0x1e9,_0x331ff5._0x1962e7,_0x331ff5._0x128f74)](_0x3119dc[_0x4e2e91(_0x331ff5._0x975862,0x36d,_0x331ff5._0x20e7e1,0x32c)]);}['shouldRetryRequestError'](_0x441b6b){return!isAbortError(_0x441b6b)&&_0x441b6b instanceof TypeError;}[_0x949fe0(-0x21e,-0x1f8,-0x28a,-0x276)](_0x9d28d3){const _0xb473c0={_0x412004:0x3b0,_0x2a9c55:0x3e9},_0x2e41be={_0x5ec6d8:0x596};function _0x5a1248(_0x2ac99e,_0x2a6c4c,_0x24eae6,_0x44380f){return _0x949fe0(_0x44380f,_0x2ac99e-_0x2e41be._0x5ec6d8,_0x24eae6-0x153,_0x44380f-0xae);}return this[_0x5a1248(0x472,_0xb473c0._0x412004,0x46c,_0xb473c0._0x2a9c55)](_0x9d28d3)||isRetryableProviderStreamEventError(_0x9d28d3);}async[_0x949fe0(-0x1bb,-0x21f,-0x1ae,-0x2aa)](_0x2ab30d,_0x387c5f){throwIfAborted(_0x387c5f),await new Promise((_0x395083,_0x257204)=>{let _0x2355cf=![];const _0x152ee1=addAbortListener(_0x387c5f,()=>{if(_0x2355cf)return;_0x2355cf=!![],clearTimeout(_0x372e62),_0x257204(toAbortError(_0x387c5f?.['reason']));}),_0x372e62=setTimeout(()=>{_0x2355cf=!![],_0x152ee1(),_0x395083();},_0x2ab30d);}),throwIfAborted(_0x387c5f);}async['sendWithRetries'](_0x236575,_0x4fb4f1){const _0x5dffae={_0x5f153f:0x26f,_0x11aa26:0x21e,_0x9e37e2:0x26f,_0x4d4aba:0x1ca,_0x4c1ed2:0x115,_0x2c56a0:0x1fd,_0x107459:0x292,_0x1e294a:0x102,_0xb77929:0x22b,_0x533a9a:0x25d,_0x4b6c63:0x201,_0x376509:0x136,_0x657f95:0x1f3},_0x458b0d={_0x38865b:0x1ac,_0x14839a:0xf},_0x19ae6c={_0x85cf94:0x128,_0x4cb928:0xe0};let _0x51766e=![];function _0x4e84af(_0x4c6f2f,_0x3328f2,_0x4b89b9,_0x199a6a){return _0x2c5722(_0x4c6f2f,_0x3328f2-0x12c,_0x3328f2-_0x19ae6c._0x85cf94,_0x199a6a-_0x19ae6c._0x4cb928);}function _0x580904(_0x3d5f36,_0xeb726a,_0x30c636,_0x40cea5){return _0x2c5722(_0xeb726a,_0xeb726a-_0x458b0d._0x38865b,_0x3d5f36-0x7d,_0x40cea5-_0x458b0d._0x14839a);}for(let _0x539137=0x0;_0x539137<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x539137+=0x1){throwIfAborted(_0x4fb4f1);try{const _0x165d24=await _0x236575();if(_0x165d24[_0x4e84af(0x289,0x218,0x211,_0x5dffae._0x5f153f)]===0x191&&this[_0x580904(0x13e,0x154,0x108,0x1e7)]&&!_0x51766e){_0x51766e=!![],this[_0x4e84af(0x1f3,0x1e9,0x17d,0x232)]['invalidate']();continue;}if(!this[_0x580904(0x217,0x21d,_0x5dffae._0x11aa26,_0x5dffae._0x9e37e2)](_0x165d24)||_0x539137===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x165d24;await this[_0x4e84af(0x1d3,0x1ad,_0x5dffae._0x4d4aba,_0x5dffae._0x4c1ed2)](this['getRetryDelayMs'](_0x165d24,_0x539137),_0x4fb4f1);}catch(_0x37ec38){if(!this[_0x580904(_0x5dffae._0x2c56a0,0x207,0x2c8,_0x5dffae._0x107459)](_0x37ec38)||_0x539137===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x37ec38;await this[_0x580904(_0x5dffae._0x1e294a,0x1b1,0xe2,0x5b)](this[_0x4e84af(0x1b4,_0x5dffae._0xb77929,_0x5dffae._0x533a9a,_0x5dffae._0x4b6c63)](void 0x0,_0x539137),_0x4fb4f1);}}throw new Error(_0x580904(0x12d,_0x5dffae._0x376509,0x199,_0x5dffae._0x657f95));}[_0x2c5722(0x3f,0x126,0xeb,0xb6)](){const _0x37eaa2={_0x23d14f:0xf0,_0x48141b:0x169,_0x4c06ae:0x146,_0x27c1b8:0x17f,_0x40f9ad:0x178},_0x424d95={_0x463486:0x119};function _0x1e1508(_0x506d73,_0x36c851,_0x22f355,_0x5b1199){return _0x949fe0(_0x506d73,_0x22f355-0x366,_0x22f355-0x131,_0x5b1199-_0x424d95._0x463486);}function _0x41446e(_0x53450b,_0x273471,_0x11a26f,_0x1be558){return _0x949fe0(_0x1be558,_0x273471-0x403,_0x11a26f-0x155,_0x1be558-0x40);}return this[_0x1e1508(_0x37eaa2._0x23d14f,_0x37eaa2._0x48141b,_0x37eaa2._0x4c06ae,0x1c7)][_0x1e1508(_0x37eaa2._0x27c1b8,_0x37eaa2._0x40f9ad,0x1ad,0x244)]();}async[_0x2c5722(0x4e,-0x12,0x36,-0x1)](_0xae99f0,_0x231e8f){const _0x199aa4={_0x3b234b:0xa,_0x18b0a6:0x20,_0x480bda:0x12},_0x24af9e={_0x50dc4f:0x1f4,_0xe40273:0x72};function _0x5c281d(_0x40356f,_0xb06a7b,_0x53b250,_0x410715){return _0x2c5722(_0x40356f,_0xb06a7b-_0x24af9e._0x50dc4f,_0x410715- -_0x24af9e._0xe40273,_0x410715-0x8e);}return await this[_0x5c281d(-_0x199aa4._0x3b234b,0x6a,_0x199aa4._0x18b0a6,_0x199aa4._0x480bda)]['createHeaders'](_0xae99f0,_0x231e8f);}[_0x949fe0(-0x1c7,-0x15d,-0x112,-0xa8)](_0x427f63){const _0x13f376={_0x3d642f:0xae},_0x3b6bd2={_0x3b55ae:0x20e};function _0x2f54c2(_0x347d6a,_0x3527f9,_0xc4478c,_0x279e65){return _0x949fe0(_0x3527f9,_0x347d6a-_0x3b6bd2._0x3b55ae,_0xc4478c-0x46,_0x279e65-0x83);}return this['providerAdapter'][_0x2f54c2(0xb1,0x177,_0x13f376._0x3d642f,0xa3)](_0x427f63);}async[_0x2c5722(-0x15,0x149,0xa2,0xc8)](_0x1b2290){const _0x319eb7={_0x4aab4f:0x1c5,_0xd081cc:0x212,_0x2023ae:0x178,_0xb5e773:0x240},_0xb7ebc={_0x3e1100:0x1ad,_0x2f9bff:0x120,_0x1d2010:0x3c};function _0x2d798c(_0x4b2438,_0x5cb269,_0x3c3804,_0x18261c){return _0x949fe0(_0x4b2438,_0x18261c- -0x3e,_0x3c3804-0xa1,_0x18261c-0x1e0);}function _0x33570b(_0x2eff9b,_0xfdea24,_0x1351d0,_0xfbe7d2){return _0x949fe0(_0x1351d0,_0xfdea24-_0xb7ebc._0x3e1100,_0x1351d0-_0xb7ebc._0x2f9bff,_0xfbe7d2-_0xb7ebc._0x1d2010);}return await this[_0x2d798c(-0x295,-_0x319eb7._0x4aab4f,-0x19f,-0x25e)][_0x2d798c(-_0x319eb7._0xd081cc,-0x27c,-_0x319eb7._0x2023ae,-_0x319eb7._0xb5e773)](_0x1b2290);}['getSurface'](_0x43748c){const _0x43e1b6={_0x568efd:0x1ef,_0x2a4ec3:0x2f,_0x48596f:0xfe,_0x290cf1:0x185,_0x213e15:0x212},_0x455ecd={_0x7e314:0x232,_0x1f2b1f:0x4d},_0x45cc78=this[_0x3eeb08(-0x191,-0x1ab,-_0x43e1b6._0x568efd,-0x175)][_0x3eeb08(-_0x43e1b6._0x2a4ec3,-0xca,-0x5,-_0x43e1b6._0x48596f)](_0x43748c);function _0x3eeb08(_0x195d6d,_0x1351a1,_0x46dd3b,_0x4f5d1b){return _0x2c5722(_0x4f5d1b,_0x1351a1-0x1d4,_0x1351a1- -_0x455ecd._0x7e314,_0x4f5d1b-_0x455ecd._0x1f2b1f);}function _0x58cca6(_0x72a6bd,_0x2ca434,_0x22b660,_0x284ebd){return _0x949fe0(_0x284ebd,_0x2ca434-0x1de,_0x22b660-0x1a2,_0x284ebd-0xc6);}if(!_0x45cc78)throw new Error(_0x3eeb08(-_0x43e1b6._0x290cf1,-0x1c2,-0x286,-_0x43e1b6._0x213e15)+_0x43748c);return _0x45cc78;}async[_0x949fe0(-0x1fc,-0x14c,-0xf8,-0x1ac)](_0x14bd69,_0x22bdc5){const _0x11f191={_0x2a7f3f:0xf8,_0x52e9af:0x23a,_0x5112bb:0x193,_0x265f21:0xd0,_0x177e41:0x17d,_0x28cb35:0x21a,_0xb8197e:0x2aa,_0x4decdc:0x30f,_0x1a9123:0x281,_0x662ce0:0x23c,_0x11e966:0x2d8,_0x30da8f:0x390,_0x5da5ba:0x386,_0x208acd:0x10f,_0x5a2368:0xae,_0x4d0346:0x133,_0x4566b4:0x210,_0x3add5f:0x21c,_0x599644:0x1e1},_0xc3fc3d={_0x31d2e5:0x35},_0x3884b4={_0x5af110:0xaf,_0x58a3cf:0x19d},_0x496aa9=toModelRequest(_0x14bd69),_0x506fb7=await prepareProviderRequest(_0x496aa9,{'sessionManager':this[_0x534553(0x199,_0x11f191._0x2a7f3f,_0x11f191._0x52e9af,0x170)],'requestMutators':this[_0x534553(_0x11f191._0x5112bb,_0x11f191._0x265f21,0x103,_0x11f191._0x177e41)],'signal':_0x22bdc5});function _0x534553(_0x2e7da2,_0x29c6e6,_0x4740ff,_0x2ebeb3){return _0x2c5722(_0x4740ff,_0x29c6e6-0xe9,_0x2ebeb3-_0x3884b4._0x5af110,_0x2ebeb3-_0x3884b4._0x58a3cf);}const _0x4194e4=toChatRequest(_0x506fb7[_0x534553(0x2aa,_0x11f191._0x28cb35,0x28a,0x1fa)]),_0x28824=this[_0x520b8c(0x181,0x1f0,0x2a7,0x1d0)][_0x520b8c(_0x11f191._0xb8197e,_0x11f191._0x4decdc,0x294,_0x11f191._0x1a9123)](this[_0x520b8c(_0x11f191._0x662ce0,_0x11f191._0x11e966,_0x11f191._0x30da8f,_0x11f191._0x5da5ba)],_0x506fb7['session']);function _0x520b8c(_0x24c57e,_0xf64701,_0x379927,_0x442def){return _0x2c5722(_0x24c57e,_0xf64701-0xf7,_0xf64701-0x16c,_0x442def-_0xc3fc3d._0x31d2e5);}if(!_0x28824)throw this['createMissingCredentialError']();return{'baseUrl':this[_0x534553(0x197,_0x11f191._0x208acd,_0x11f191._0x5a2368,_0x11f191._0x4d0346)][_0x520b8c(0x2c7,_0x11f191._0x4566b4,0x254,0x19d)](this['baseUrl'],_0x506fb7[_0x520b8c(0x1f6,0x29e,0x364,0x208)]),'credential':_0x28824,'request':_0x4194e4,'session':_0x506fb7[_0x534553(0x1a0,_0x11f191._0x3add5f,0x204,_0x11f191._0x599644)]};}[_0x2c5722(0x16f,0x205,0x1c3,0x214)](_0x1d2990){const _0x116736={_0x385db1:0x5e8,_0x4ade42:0x52d,_0x3152e6:0x642,_0x53524c:0x5b8},_0xa4d3fe={_0x1f8498:0x1c2},_0x840a3e={_0x2c6003:0x166};function _0x52a9f2(_0x53ad45,_0x1d2da0,_0x5eaf90,_0x49511b){return _0x949fe0(_0x49511b,_0x53ad45-0x767,_0x5eaf90-_0x840a3e._0x2c6003,_0x49511b-0x1ce);}function _0x196aef(_0x421613,_0x263b1b,_0xe400a7,_0x3fe80b){return _0x949fe0(_0x263b1b,_0x421613-_0xa4d3fe._0x1f8498,_0xe400a7-0x162,_0x3fe80b-0x14);}return{...structuredClone(_0x1d2990),..._0x1d2990['reasoning']===void 0x0&&this[_0x52a9f2(_0x116736._0x385db1,0x59c,_0x116736._0x4ade42,_0x116736._0x3152e6)]!==void 0x0?{'reasoning':structuredClone(this[_0x52a9f2(_0x116736._0x385db1,0x692,0x54e,_0x116736._0x53524c)])}:{}};}async[_0x949fe0(-0x220,-0x1aa,-0x1bc,-0xff)](_0x74a4ed,_0x53fe22,_0x1c23b3,_0x37695d,_0x393b0a=!![]){const _0x8892e5={_0x2a40e1:0x5dd,_0x5a2129:0x64f,_0xbbb803:0x54d,_0x1680a8:0xf6,_0x1ed952:0x14c,_0x3e1d9e:0xf0,_0x4a1794:0xef,_0x2804ee:0x4a2,_0x55a616:0x53a,_0x5ea449:0x570,_0x343e6b:0x527,_0x56348e:0x106,_0x57cac1:0xc1,_0x368d5b:0x188,_0x31db91:0x1b6,_0x29fe81:0x19e,_0x2eee2f:0x1a5,_0x547ac2:0x1f7,_0x580407:0x164,_0x288c50:0x574,_0x410dc0:0x5c0,_0x326db4:0x680,_0x5531ea:0x617,_0x370131:0x5b4,_0x16d878:0x62d,_0x318d93:0x434,_0x1bcab4:0x57d,_0x2a06d4:0x4d8,_0x44a197:0x54b,_0x2c0663:0x536,_0x1df9b3:0x5fa,_0x95afd:0x564,_0x414e7f:0x5f,_0x4bf7ce:0x5a7,_0x78ef65:0x558,_0xa6c51:0x561,_0x5d2c4b:0x4fe,_0x5ca43f:0x49c},_0x5d75f2={_0x5dfc4e:0x399},_0x20a7c2=async()=>{const _0x2ad6c2=await this[_0x4ff425(0x640,_0x8892e5._0x2a40e1,0x5e5,0x66f)](_0x74a4ed,_0x37695d);function _0x34e3fd(_0x478386,_0x3b247d,_0x1f1ebd,_0x39935b){return _0x1f89(_0x39935b- -0x306,_0x1f1ebd);}let _0x15b7bd;try{_0x15b7bd=_0x53fe22['createRequest'](_0x2ad6c2[_0x4ff425(_0x8892e5._0x5a2129,0x666,0x5d8,_0x8892e5._0xbbb803)]);}catch(_0x2a9652){if(_0x2a9652 instanceof Error)throw new ProviderRequestConstructionError(_0x2a9652[_0x34e3fd(-_0x8892e5._0x1680a8,-0xc7,-_0x8892e5._0x1ed952,-_0x8892e5._0x3e1d9e)]);throw _0x2a9652;}function _0x4ff425(_0x29fb2d,_0x1dcfae,_0x4135c4,_0x19070f){return _0x1f89(_0x4135c4-_0x5d75f2._0x5dfc4e,_0x1dcfae);}if(!_0x15b7bd[_0x34e3fd(-_0x8892e5._0x4a1794,-0x22,-0xf2,-0x5f)])throw new ProviderRequestConstructionError(_0x4ff425(0x5da,_0x8892e5._0x2804ee,_0x8892e5._0x55a616,_0x8892e5._0x5ea449)+_0x53fe22['id']+_0x4ff425(0x5ed,0x4a9,_0x8892e5._0x343e6b,0x494));const _0x56a720=await this[_0x34e3fd(-0x268,-0x29d,-0x1b8,-0x1dc)]({'request':_0x2ad6c2['request'],'body':_0x15b7bd[_0x34e3fd(-_0x8892e5._0x56348e,-0x1f0,-_0x8892e5._0x57cac1,-_0x8892e5._0x368d5b)],'credential':_0x2ad6c2[_0x4ff425(0x686,0x5c2,0x653,0x71a)],'session':_0x2ad6c2['session'],'stream':_0x1c23b3},{'accept':_0x15b7bd[_0x34e3fd(-0x205,-0x181,-0x242,-_0x8892e5._0x31db91)]??(_0x1c23b3?_0x34e3fd(-_0x8892e5._0x29fe81,-_0x8892e5._0x2eee2f,-_0x8892e5._0x547ac2,-_0x8892e5._0x580407):_0x4ff425(_0x8892e5._0x288c50,_0x8892e5._0x410dc0,0x569,0x52a)),'includeContentType':_0x15b7bd['body']!==void 0x0});for(const [_0x975d5a,_0x3ebf57]of Object[_0x4ff425(_0x8892e5._0x326db4,0x665,_0x8892e5._0x5531ea,0x557)](_0x15b7bd[_0x4ff425(0x620,_0x8892e5._0x370131,_0x8892e5._0x16d878,0x605)]??{})){_0x56a720[_0x4ff425(_0x8892e5._0x318d93,_0x8892e5._0x1bcab4,_0x8892e5._0x2a06d4,0x5a1)](_0x975d5a,_0x3ebf57);}return this[_0x4ff425(_0x8892e5._0x44a197,0x560,0x4d0,_0x8892e5._0x2c0663)](''+_0x2ad6c2[_0x4ff425(_0x8892e5._0x1df9b3,0x4e2,_0x8892e5._0x95afd,0x526)]+_0x15b7bd[_0x34e3fd(-0xe,-0x59,-0xf6,-_0x8892e5._0x414e7f)],{'method':_0x4ff425(0x549,0x50b,0x588,0x4cf),'headers':_0x56a720,..._0x15b7bd[_0x4ff425(_0x8892e5._0x4bf7ce,_0x8892e5._0x78ef65,0x517,0x4bf)]!==void 0x0?{'body':JSON[_0x4ff425(_0x8892e5._0xa6c51,0x56c,_0x8892e5._0x5d2c4b,_0x8892e5._0x5ca43f)](_0x15b7bd['body'])}:{},'signal':_0x37695d});};return _0x393b0a?await this['sendWithRetries'](_0x20a7c2,_0x37695d):await _0x20a7c2();}async*['streamHttpSurface'](_0x59934,_0xde0266,_0x5dcaba){const _0x5be4c6={_0x3be5ca:0x131,_0x5ee55a:0x144,_0x57cdfc:0x199,_0x27a43e:0x26a,_0x36c4ab:0x218,_0x4052e1:0x260,_0x529103:0x5b7,_0x210fce:0x5f6,_0x5d24ab:0x550,_0x3d1f70:0x18a,_0x3a1534:0x200,_0x1d1027:0x1f9,_0x2a5ef5:0x119,_0x5311b8:0x288,_0x4685b1:0x161,_0x262199:0x1d6,_0x4354a8:0x4d9,_0xea80b0:0x582,_0x572f58:0x4a9,_0x14c0ff:0x5ec,_0x1bfc32:0x184,_0x44d3bc:0x142,_0x717806:0xda,_0x21dd8c:0x10f,_0x4680b6:0x1a5};function _0x192ce1(_0x579a6b,_0x5f447d,_0x34106e,_0x2505bf){return _0x949fe0(_0x579a6b,_0x2505bf-0x346,_0x34106e-0x60,_0x2505bf-0x18f);}function _0x4d2c4a(_0x2beb02,_0x4eeea8,_0x41fa84,_0x3b2807){return _0x2c5722(_0x4eeea8,_0x4eeea8-0x4e,_0x3b2807-0x49b,_0x3b2807-0x31);}for(let _0x45b442=0x0;_0x45b442<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x45b442+=0x1){let _0x1240b4=![];try{const _0x43a320=await this['sendHttpSurfaceRequest'](_0x59934,_0xde0266,!![],_0x5dcaba,![]);if(!_0x43a320['ok'])throw await this[_0x192ce1(0x126,0x116,_0x5be4c6._0x3be5ca,_0x5be4c6._0x5ee55a)](_0x43a320);const _0x14719e=_0xde0266[_0x192ce1(_0x5be4c6._0x57cdfc,_0x5be4c6._0x27a43e,_0x5be4c6._0x36c4ab,_0x5be4c6._0x4052e1)]?.(_0x59934);if(!_0x14719e?.[_0x4d2c4a(0x519,_0x5be4c6._0x529103,0x5c6,0x5cf)])throw new Error(_0x4d2c4a(0x4ea,_0x5be4c6._0x210fce,_0x5be4c6._0x5d24ab,0x548)+_0xde0266['id']+_0x192ce1(_0x5be4c6._0x3d1f70,_0x5be4c6._0x3a1534,_0x5be4c6._0x1d1027,0x232));for await(const _0x211e43 of iterateSseEvents(_0x43a320,_0x5dcaba)){const _0x50da11=_0x14719e[_0x192ce1(_0x5be4c6._0x2a5ef5,_0x5be4c6._0x5311b8,_0x5be4c6._0x4685b1,_0x5be4c6._0x262199)](_0x211e43);for(const _0x1c8113 of _0x50da11){_0x1240b4=!![],yield _0x1c8113;}}yield{'type':_0x4d2c4a(_0x5be4c6._0x4354a8,_0x5be4c6._0xea80b0,0x53d,0x4f3),'response':_0x14719e['finish']()};return;}catch(_0x4e92ad){if(_0x1240b4||!this[_0x4d2c4a(_0x5be4c6._0x572f58,0x59c,_0x5be4c6._0x14c0ff,0x547)](_0x4e92ad)||_0x45b442===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x4e92ad;await this[_0x192ce1(0xe1,_0x5be4c6._0x1bfc32,_0x5be4c6._0x44d3bc,0x127)](this[_0x192ce1(_0x5be4c6._0x717806,_0x5be4c6._0x21dd8c,0x118,_0x5be4c6._0x4680b6)](void 0x0,_0x45b442),_0x5dcaba);}}}async*[_0x949fe0(-0x76,-0xf2,-0x39,-0x12d)](_0x48fd79,_0xdae4bb,_0x48730a){const _0xfe3255={_0x24c789:0x2,_0x54dd9d:0x12f,_0xc1b265:0x477,_0x9f8c5:0x4cb,_0x61a2f9:0x47b,_0xe2eeeb:0x1f,_0x5b48a4:0x60,_0x12c1f5:0x3d4,_0x420e0f:0x390,_0x117790:0x480,_0x230a4d:0x4ab,_0x512a18:0x87,_0xcf36c4:0x169,_0x5db03e:0x109,_0x393bdf:0xa6,_0x772e51:0x125,_0x3ea68c:0xe,_0x2aec03:0xdc,_0x57d2db:0x53,_0x2b4fa1:0x2f,_0x2b2ca3:0x66,_0x4a3cb9:0x3da,_0x3c89fb:0x42d,_0x1b5eb4:0x3e2,_0x4204c7:0x492,_0x3d89ba:0x54c,_0x57d220:0x446,_0x27c876:0x8f,_0x3ed26b:0x76,_0x164376:0x99,_0x2211bf:0xd,_0x50d727:0x461,_0x1240e2:0x3fa,_0x45a457:0x50a,_0x1d39d9:0x4d9,_0xae03f4:0xb5,_0x35c2b8:0xb1,_0x1fa08c:0x40b,_0x47db06:0x3cb,_0x1f5bb3:0x448,_0x3737d1:0x3dc,_0x4fd85f:0x362,_0x5ea29c:0x3bd,_0x44f5a8:0x3b4,_0x3b8fa0:0x5a9,_0x412d7e:0x562,_0x5d725d:0x1b,_0x52bf48:0xb6,_0xc433ad:0xf,_0x144a85:0x124,_0x476c44:0x82,_0x6c3df2:0x53,_0x53a317:0x15b,_0x5e533d:0x9c,_0x27e819:0x136,_0x2c7a28:0xb9,_0x41c2c0:0x3d8,_0x3a687e:0x32d,_0x3dc54e:0x556,_0x1b8b7a:0x9f,_0x180dda:0x439,_0x5d5e17:0x3d0,_0x74bfba:0x427,_0x2d78bf:0xab,_0xdfb3f3:0x41b,_0x40f434:0x404,_0x2d3ae6:0x26,_0x52a0c7:0x28,_0x555882:0x4d},_0x115ad1={_0x1570cd:0xa5},_0x1e3ec9={_0x599798:0x380};function _0x3de0f9(_0x343967,_0x3640cb,_0x5d64e7,_0x49bfc0){return _0x2c5722(_0x5d64e7,_0x3640cb-0x1cb,_0x3640cb-_0x1e3ec9._0x599798,_0x49bfc0-0x48);}const _0x4c3b83=await this['prepareChatRequest'](_0x48fd79,_0x48730a),_0x383ab9=_0xdae4bb[_0x559dc5(-_0xfe3255._0x24c789,_0xfe3255._0x54dd9d,0x6b,-0x45)](_0x4c3b83[_0x3de0f9(_0xfe3255._0xc1b265,_0xfe3255._0x9f8c5,_0xfe3255._0x61a2f9,0x4e9)]),_0x5b386d=_0xdae4bb[_0x559dc5(_0xfe3255._0xe2eeeb,_0xfe3255._0x5b48a4,0xb1,0x2f)]?.(_0x48fd79);if(!_0x5b386d?.[_0x3de0f9(0x380,_0xfe3255._0x12c1f5,0x47f,_0xfe3255._0x420e0f)])throw new Error(_0x559dc5(0x58,-0x4b,-0x60,0x60)+_0xdae4bb['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x148841=_0x383ab9[_0x3de0f9(_0xfe3255._0x117790,0x547,0x4c5,_0xfe3255._0x230a4d)]??(_0x383ab9[_0x559dc5(0xf9,0x141,0xa6,0x15d)]?(''+_0x4c3b83[_0x559dc5(0x3b,_0xfe3255._0x512a18,-0x36,-0x35)]+_0x383ab9[_0x559dc5(_0xfe3255._0xcf36c4,_0xfe3255._0x5db03e,_0xfe3255._0x393bdf,_0xfe3255._0x772e51)])[_0x559dc5(0xd,0x5f,_0xfe3255._0x3ea68c,-0x81)](/^http:/,_0x559dc5(_0xfe3255._0x2aec03,-0x36,_0xfe3255._0x57d2db,0x22))[_0x559dc5(_0xfe3255._0x2b4fa1,_0xfe3255._0x2b2ca3,0xe,0xba)](/^https:/,'wss:'):void 0x0);function _0x559dc5(_0x58323c,_0x18ab14,_0x5bb7ee,_0x405b37){return _0x2c5722(_0x18ab14,_0x18ab14-0x8c,_0x5bb7ee- -0x10d,_0x405b37-_0x115ad1._0x1570cd);}if(!_0x148841)throw new ProviderRequestConstructionError(_0x3de0f9(_0xfe3255._0x4a3cb9,_0xfe3255._0x3c89fb,_0xfe3255._0x1b5eb4,0x45d)+_0xdae4bb['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x477a4a=await this['createHeaders']({'request':_0x4c3b83[_0x3de0f9(_0xfe3255._0x4204c7,_0xfe3255._0x9f8c5,_0xfe3255._0x3d89ba,_0xfe3255._0x57d220)],'body':_0x383ab9['initialEvent'],'credential':_0x4c3b83[_0x559dc5(_0xfe3255._0xcf36c4,0x176,0xb9,0xd2)],'session':_0x4c3b83[_0x559dc5(0xd9,-_0xfe3255._0x27c876,0x25,-_0xfe3255._0x3ed26b)],'stream':!![]},{'accept':_0x383ab9[_0x559dc5(-_0xfe3255._0x164376,-0xa5,-0xb1,_0xfe3255._0x2211bf)]??_0x3de0f9(0x467,0x45c,_0xfe3255._0x50d727,_0xfe3255._0x1240e2),'includeContentType':![]});for(const [_0x313ecd,_0x52d016]of Object[_0x3de0f9(0x5cf,_0xfe3255._0x45a457,0x507,_0xfe3255._0x1d39d9)](_0x383ab9[_0x559dc5(_0xfe3255._0xae03f4,0x107,0x93,_0xfe3255._0x35c2b8)]??{})){_0x477a4a[_0x3de0f9(_0xfe3255._0x1fa08c,_0xfe3255._0x47db06,_0xfe3255._0x1f5bb3,0x311)](_0x313ecd,_0x52d016);}_0x477a4a['delete'](_0x3de0f9(0x3c0,_0xfe3255._0x3737d1,0x38f,0x470));const _0x3ecdcc=this['webSocketFactory']({'headers':Object[_0x3de0f9(_0xfe3255._0x4fd85f,_0xfe3255._0x5ea29c,0x3dc,_0xfe3255._0x44f5a8)](_0x477a4a[_0x3de0f9(_0xfe3255._0x3b8fa0,0x50a,0x4af,_0xfe3255._0x412d7e)]()),'url':_0x148841});try{throwIfAborted(_0x48730a);_0x3ecdcc[_0x559dc5(-_0xfe3255._0x5d725d,_0xfe3255._0x52bf48,0x9d,_0xfe3255._0xc433ad)]!==WebSocket[_0x559dc5(-_0xfe3255._0x144a85,-0x7a,-0x63,-0xfb)]&&await waitForWebSocketOpen(_0x3ecdcc,_0x48730a);throwIfAborted(_0x48730a);_0x383ab9['initialEvent']!==void 0x0&&_0x3ecdcc[_0x559dc5(-_0xfe3255._0x476c44,-_0xfe3255._0x6c3df2,-0x24,-0x25)](JSON[_0x559dc5(-_0xfe3255._0x53a317,-0xb9,-_0xfe3255._0x5e533d,-0x12e)](_0x383ab9['initialEvent']));for await(const _0x3ce6e8 of iterateWebSocketMessages(_0x3ecdcc,_0x48730a)){yield*_0x5b386d[_0x559dc5(-_0xfe3255._0x27e819,-0x42,-_0xfe3255._0x2c7a28,-0xae)](_0x3ce6e8);if(_0x5b386d['isDone']?.())break;}yield{'type':_0x3de0f9(0x3a2,_0xfe3255._0x41c2c0,_0xfe3255._0x3a687e,0x38f),'response':_0x5b386d[_0x3de0f9(0x472,0x4f9,0x451,_0xfe3255._0x3dc54e)]()};}finally{_0x3ecdcc[_0x559dc5(0x140,_0xfe3255._0x1b8b7a,0x9d,0xa4)]===WebSocket[_0x3de0f9(0x4a3,0x42a,0x42d,_0xfe3255._0x180dda)]&&_0x3ecdcc[_0x3de0f9(0x40f,0x417,_0xfe3255._0x5d5e17,_0xfe3255._0x74bfba)](0x3e8,_0x48730a?.[_0x559dc5(-0x86,-_0xfe3255._0x2d78bf,0x3,0x80)]?_0x3de0f9(0x52e,0x490,_0xfe3255._0xdfb3f3,_0xfe3255._0x40f434):_0x559dc5(-_0xfe3255._0x2d3ae6,_0xfe3255._0x52a0c7,-_0xfe3255._0x555882,0x7f));}}};async function createHttpError(_0x39725b){const _0x5c0fed={_0x4c154c:0x2af,_0x59e3d1:0x1b5,_0x4c42c3:0x254,_0x4fc8e2:0x1e2,_0x5d65d4:0xfb,_0x4b3116:0x211,_0x2976b4:0x1b7,_0x5e974c:0x18f,_0x3ebef0:0x200,_0x11b174:0x17f},_0x18401b={_0x523b06:0x393},_0x4fb658={_0xd4e99a:0xf7};function _0x40e04f(_0xd4ad2e,_0x44f797,_0x3b2e78,_0x1eb026){return _0x2c5722(_0x44f797,_0x44f797-_0x4fb658._0xd4e99a,_0x1eb026-0x8f,_0x1eb026-0xe3);}const _0x68ad36=await _0x39725b[_0x40e04f(0x2b9,_0x5c0fed._0x4c154c,_0x5c0fed._0x59e3d1,_0x5c0fed._0x4c42c3)]();function _0x332a7c(_0x2c7690,_0x46d1df,_0x348ff2,_0x3eab8b){return _0x949fe0(_0x348ff2,_0x2c7690-_0x18401b._0x523b06,_0x348ff2-0x15b,_0x3eab8b-0x18e);}const _0x17d5b7=_0x68ad36[_0x40e04f(_0x5c0fed._0x4fc8e2,0xd1,0x259,0x195)]()||_0x39725b[_0x40e04f(_0x5c0fed._0x5d65d4,0x27d,_0x5c0fed._0x4b3116,_0x5c0fed._0x2976b4)]||'Unknown\x20provider\x20error';return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x39725b[_0x40e04f(_0x5c0fed._0x5e974c,0x1c3,_0x5c0fed._0x3ebef0,_0x5c0fed._0x11b174)]+':\x20'+_0x17d5b7);}var AnthropicProviderAdapter=class{['authScheme'];[_0x2c5722(0x112,0x63,0x126,0x67)];[_0x949fe0(-0x16f,-0x192,-0x238,-0x1bb)];constructor(_0x3fc892){const _0x1725dc={_0x4d046:0x7e,_0x217863:0x64,_0x5af9d4:0x14,_0x34d4cb:0xcc,_0x2db02b:0x98,_0x4094e7:0x134,_0x237776:0xdf,_0x1b836e:0xb8,_0x4f4b61:0x5f0,_0x5054e4:0x5ce,_0x3aa4dd:0x5f4,_0x2cd31a:0x5bb,_0x31d6a2:0x5e0,_0x490e04:0xa1},_0x388b7e={_0xce9ef2:0x155},_0x19b794={_0x4f333e:0xac,_0x20589c:0x1de};function _0x3fbe92(_0x29dd4e,_0x4add90,_0x4b6cdb,_0x7e57aa){return _0x2c5722(_0x4b6cdb,_0x4add90-_0x19b794._0x4f333e,_0x7e57aa- -_0x19b794._0x20589c,_0x7e57aa-0x15b);}function _0x3c11af(_0x1f6850,_0x429141,_0x481ff8,_0x2efabd){return _0x949fe0(_0x481ff8,_0x2efabd-0x772,_0x481ff8-_0x388b7e._0xce9ef2,_0x2efabd-0x99);}this[_0x3fbe92(-_0x1725dc._0x4d046,-0x130,-_0x1725dc._0x4d046,-_0x1725dc._0x217863)]=_0x3fc892[_0x3fbe92(-_0x1725dc._0x5af9d4,-_0x1725dc._0x34d4cb,-_0x1725dc._0x2db02b,-0x64)],this[_0x3fbe92(-0xa5,-_0x1725dc._0x4094e7,-_0x1725dc._0x237776,-_0x1725dc._0x1b836e)]=_0x3fc892[_0x3c11af(_0x1725dc._0x4f4b61,0x557,_0x1725dc._0x5054e4,_0x1725dc._0x3aa4dd)],this[_0x3c11af(0x552,0x5b4,_0x1725dc._0x2cd31a,_0x1725dc._0x31d6a2)]=_0x3fc892[_0x3fbe92(-0xb6,-_0x1725dc._0x490e04,-0x59,-_0x1725dc._0x34d4cb)];}[_0x949fe0(-0x223,-0x1b9,-0x1f9,-0x10e)](){const _0x3b81cf={_0x7ae3e1:0x1a6},_0x4d3534={_0x9b6e83:0x41,_0x53c6ba:0x69};function _0xadf372(_0x398751,_0xfedf38,_0x304d10,_0x10296e){return _0x949fe0(_0x398751,_0x10296e- -_0x4d3534._0x9b6e83,_0x304d10-0xec,_0x10296e-_0x4d3534._0x53c6ba);}return new Error(_0xadf372(-0x1a3,-_0x3b81cf._0x7ae3e1,-0x14a,-0x1a0));}async[_0x2c5722(0x29,0xaa,0x36,0x35)](_0x3e5dfa,_0x58afed){const _0xe3d300={_0x49c96e:0x378,_0x47a02b:0x450,_0x5e1b64:0x465,_0x1965d7:0x3ab,_0xb8aceb:0x504,_0x117652:0x417,_0x53082f:0x43f,_0x127890:0x390,_0x5d86ba:0x443,_0x15c34b:0x6e,_0x27c8f5:0x428,_0x1a09df:0x4d6,_0x35b7d4:0x4c1,_0x53ecf4:0x47f,_0x333b7c:0xa2,_0x3cbe5a:0x131,_0x595997:0xa3,_0x16724f:0x133,_0x5960c3:0x4d0,_0x55e1ef:0x46f,_0x2e563b:0x4cb,_0x4003cd:0x56e,_0x3a8756:0x57f,_0x3d437a:0x614,_0x18d7e4:0xe7,_0x50b5a8:0x40,_0x19da9b:0x4a2,_0x373908:0x61c,_0x4ee629:0x652,_0x7cfa71:0x5d,_0x12161e:0x2,_0x2371fb:0x12,_0xaeff50:0x522,_0x663936:0x5be,_0x5db19c:0x46c,_0x105f15:0x53a,_0x11c7e7:0x4aa,_0x10ccf7:0x522,_0x5d843f:0x486,_0x530e81:0x474,_0x193eb7:0x473,_0x240c38:0x572,_0x477ba9:0xfd,_0x2edd37:0x6a,_0x1bc25b:0xc3,_0x5e4afc:0x9b,_0x3cdec7:0x5fb,_0x3faaae:0x53f,_0x3de8a2:0x5c5,_0x242559:0x526,_0x5ccf18:0x575,_0x4d0cb9:0x4e3,_0x294ade:0x536,_0x41ecd9:0x5e7,_0x26be40:0x536},_0x1b9149={_0x507f46:0x698},_0x329619={_0x3520a6:0x15c,_0x279c44:0xd2},_0x1f997=new Headers();_0x1f997[_0x493082(0x3d1,0x43f,_0xe3d300._0x49c96e,0x502)](_0x493082(0x428,_0xe3d300._0x47a02b,_0xe3d300._0x5e1b64,0x504),_0x58afed[_0x493082(_0xe3d300._0x1965d7,_0xe3d300._0x47a02b,0x3e3,_0xe3d300._0xb8aceb)]),_0x1f997[_0x493082(_0xe3d300._0x117652,_0xe3d300._0x53082f,_0xe3d300._0x127890,_0xe3d300._0x5d86ba)]('anthropic-version',this[_0x24310e(-0x7e,-0x4a,-0x74,-_0xe3d300._0x15c34b)]);_0x58afed[_0x493082(_0xe3d300._0x27c8f5,_0xe3d300._0x1a09df,_0xe3d300._0x35b7d4,_0xe3d300._0x53ecf4)]!==![]&&_0x1f997[_0x24310e(-_0xe3d300._0x333b7c,-0x111,-_0xe3d300._0x3cbe5a,-0x10e)](_0x24310e(-0x11d,-_0xe3d300._0x595997,0x3,-_0xe3d300._0x16724f),_0x493082(0x4c0,_0xe3d300._0x5960c3,_0xe3d300._0x55e1ef,_0xe3d300._0x2e563b));this[_0x493082(0x4c2,_0xe3d300._0x4003cd,_0xe3d300._0x3a8756,_0xe3d300._0x3d437a)]===_0x24310e(-0xed,-_0xe3d300._0x18d7e4,-0x21,-_0xe3d300._0x50b5a8)?_0x1f997[_0x493082(0x494,_0xe3d300._0x53082f,_0xe3d300._0x5960c3,_0xe3d300._0x19da9b)](_0x493082(0x536,0x58b,_0xe3d300._0x373908,_0xe3d300._0x4ee629),'Bearer\x20'+_0x3e5dfa[_0x24310e(_0xe3d300._0x7cfa71,0x6a,_0xe3d300._0x12161e,_0xe3d300._0x2371fb)][_0x493082(0x5c6,_0xe3d300._0xaeff50,_0xe3d300._0x663936,0x4cb)]):_0x1f997[_0x493082(0x3fe,0x43f,0x479,_0xe3d300._0x5db19c)](_0x493082(0x560,_0xe3d300._0x105f15,_0xe3d300._0x11c7e7,0x51c),_0x3e5dfa['credential'][_0x493082(0x54d,_0xe3d300._0x10ccf7,_0xe3d300._0x5d843f,_0xe3d300._0x530e81)]);const _0x523d76=await this[_0x493082(_0xe3d300._0x193eb7,0x51a,0x5a0,_0xe3d300._0x240c38)]?.({'body':_0x3e5dfa[_0x24310e(-0xf7,-0xd2,-_0xe3d300._0x477ba9,-0xa3)],'credential':_0x3e5dfa[_0x24310e(0x11b,_0xe3d300._0x2edd37,_0xe3d300._0x1bc25b,_0xe3d300._0x5e4afc)],'request':_0x3e5dfa[_0x493082(_0xe3d300._0x3cdec7,_0xe3d300._0x3faaae,0x5ab,_0xe3d300._0x3de8a2)],'session':_0x3e5dfa[_0x493082(0x4d3,_0xe3d300._0x242559,_0xe3d300._0x5ccf18,_0xe3d300._0x4d0cb9)],'stream':_0x3e5dfa[_0x493082(0x5fb,_0xe3d300._0x294ade,_0xe3d300._0x41ecd9,0x56b)]});for(const [_0x32ccd0,_0x39cf2f]of Object[_0x493082(_0xe3d300._0x26be40,0x57e,_0xe3d300._0x3de8a2,0x600)](_0x523d76??{})){_0x1f997['set'](_0x32ccd0,_0x39cf2f);}function _0x24310e(_0x2bd489,_0x30ef06,_0x19fc8f,_0x55017a){return _0x2c5722(_0x55017a,_0x30ef06-0x1b5,_0x30ef06- -_0x329619._0x3520a6,_0x55017a-_0x329619._0x279c44);}function _0x493082(_0x39a38b,_0x22edfa,_0x327776,_0x148226){return _0x949fe0(_0x148226,_0x22edfa-_0x1b9149._0x507f46,_0x327776-0x1a2,_0x148226-0xa3);}return _0x1f997;}[_0x2c5722(0xc5,0x20e,0x147,0x1b5)](_0x329783){return _0x329783;}[_0x949fe0(-0x189,-0x200,-0x232,-0x2c1)](_0x455a73,_0x51b2b6){return resolveSessionBaseUrl(_0x455a73,_0x51b2b6);}['resolveCredential'](_0x135741,_0x336e82){return resolveApiCredential(_0x135741,_0x336e82);}async['toApiError'](_0xf97399){return await createHttpError(_0xf97399);}},AnthropicModel=class extends RoutedModel{constructor(_0x52b53a={}){const _0x50589b={_0xe47a67:0x45,_0x95859f:0x4a,_0x30fd0b:0x345,_0x2ddaa5:0x38a,_0x1e20c0:0x2c8,_0x559ef9:0x3ab,_0xdd52e4:0x30d,_0x1816b8:0x2fd,_0x172594:0x2fb,_0x45c7c2:0x47e,_0x1b255e:0x38c,_0x3ac1c3:0x66,_0x5b1f2e:0x204,_0xff38ca:0x157,_0x362e77:0xd4,_0x58c96d:0x119,_0x285071:0x393,_0x53e280:0x33c,_0x310338:0x380,_0x117deb:0x2f5,_0x23eed1:0x2b8,_0xfe712a:0x418,_0x1333ec:0x36f,_0x34b735:0x36c,_0x3ac3f6:0x373,_0x18b651:0x2db,_0x334f76:0x33c,_0x875740:0x2ed,_0x5adbf2:0x28e},_0x345384={_0x3bd7e2:0x2f,_0x487672:0x26e},_0x5bada9={_0x46cc3c:0x1a2,_0x2a3961:0xc0};function _0x4b07f4(_0x104488,_0x1d8635,_0x2e41c8,_0xc885ff){return _0x949fe0(_0xc885ff,_0x2e41c8-0x109,_0x2e41c8-_0x5bada9._0x46cc3c,_0xc885ff-_0x5bada9._0x2a3961);}function _0x31fcde(_0x3bd095,_0xde8108,_0x40188e,_0x399179){return _0x2c5722(_0x399179,_0xde8108-_0x345384._0x3bd7e2,_0x3bd095-_0x345384._0x487672,_0x399179-0x146);}super({'apiKey':_0x52b53a[_0x4b07f4(-_0x50589b._0xe47a67,0x43,-0x2f,_0x50589b._0x95859f)],'baseUrl':trimTrailingSlashes(_0x52b53a[_0x31fcde(_0x50589b._0x30fd0b,_0x50589b._0x2ddaa5,_0x50589b._0x1e20c0,_0x50589b._0x559ef9)]??_0x31fcde(_0x50589b._0xdd52e4,_0x50589b._0x1816b8,0x3b8,_0x50589b._0x172594)),'fetch':_0x52b53a[_0x31fcde(0x3d5,0x35a,_0x50589b._0x45c7c2,_0x50589b._0x1b255e)],'maxTokens':_0x52b53a[_0x4b07f4(0x75,0xee,0x22,_0x50589b._0x3ac1c3)]??0x4000,'model':_0x52b53a[_0x31fcde(0x2c4,_0x50589b._0x5b1f2e,0x248,0x21c)]??_0x4b07f4(-_0x50589b._0xff38ca,-_0x50589b._0x362e77,-0xd1,-_0x50589b._0x58c96d),'reasoning':_0x52b53a[_0x31fcde(_0x50589b._0x285071,_0x50589b._0x53e280,0x3f1,0x3be)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x52b53a['authScheme']??'x-api-key','headerResolver':_0x52b53a['headerResolver'],'protocolVersion':_0x52b53a[_0x31fcde(_0x50589b._0x310338,_0x50589b._0x117deb,_0x50589b._0x23eed1,_0x50589b._0xfe712a)]??_0x31fcde(_0x50589b._0x1333ec,_0x50589b._0x34b735,0x3a4,0x2d9)}),'providerSessionResolver':_0x52b53a[_0x31fcde(0x355,_0x50589b._0x3ac3f6,0x3a9,_0x50589b._0x18b651)],'requestMutators':_0x52b53a[_0x31fcde(_0x50589b._0x334f76,_0x50589b._0x875740,0x274,_0x50589b._0x5adbf2)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x2c5722(0x31,0x6b,0x48,0x1f)](_0x5e674d,_0x1b27fd){const _0x221074={_0x414b84:0x54},_0x2e01fb={_0x1957f3:0x1e,_0x12d596:0x1c};function _0x255fe4(_0x11be57,_0x391cae,_0x4b3f97,_0x5a13c7){return _0x949fe0(_0x5a13c7,_0x4b3f97- -_0x2e01fb._0x1957f3,_0x4b3f97-0x1de,_0x5a13c7-_0x2e01fb._0x12d596);}return this[_0x255fe4(-0x11a,-_0x221074._0x414b84,-0xf8,-0xb6)](_0x5e674d,ANTHROPIC_MESSAGES_SURFACE,_0x1b27fd);}['stream'](_0x288dbf,_0x579dad){return this['streamViaSurface'](_0x288dbf,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x579dad);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x2c5722(0x1c3,0xfa,0x184,0x240),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE='openai-chat-completions-stream',OPENAI_RESPONSES_SURFACE=_0x2c5722(0x78,0x5f,0x60,-0x41),OPENAI_RESPONSES_STREAM_SURFACE=_0x2c5722(0x54,0x185,0xcd,0x11),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x949fe0(-0x76,-0xed,-0xa7,-0x1af),OpenAiApiError=class extends Error{['status'];[_0x949fe0(-0x2d0,-0x21a,-0x1bb,-0x22e)];constructor(_0x425d9b,_0x43b159,_0x252982){const _0xec01b8={_0x288982:0x11e,_0x154cb1:0x97,_0x37c69c:0xc9,_0x413398:0x181,_0x22a780:0x163,_0x51a2cf:0x251,_0x132832:0x109,_0x535c70:0x126,_0x551ef2:0x2d2},_0x291c86={_0x18d1ed:0x16};super(_0x252982);function _0x36ea01(_0x5eec0d,_0x5f84b9,_0x5b2373,_0xfd915){return _0x949fe0(_0x5b2373,_0x5f84b9- -_0x291c86._0x18d1ed,_0x5b2373-0x5d,_0xfd915-0x99);}function _0xd34718(_0x4c246a,_0x5271ca,_0x19c4e0,_0x21b049){return _0x949fe0(_0x5271ca,_0x19c4e0-0x187,_0x19c4e0-0x16,_0x21b049-0x185);}this[_0xd34718(_0xec01b8._0x288982,0x162,_0xec01b8._0x154cb1,_0xec01b8._0x37c69c)]=_0x36ea01(-_0xec01b8._0x413398,-0x197,-_0xec01b8._0x22a780,-0x1e5),this[_0x36ea01(-_0xec01b8._0x51a2cf,-0x1ca,-_0xec01b8._0x132832,-_0xec01b8._0x535c70)]=_0x425d9b,this[_0x36ea01(-0x25c,-0x230,-0x290,-_0xec01b8._0x551ef2)]=_0x43b159;}};function stringifySystem(_0x3b3a84){const _0x2765b8={_0x10339a:0x163},_0x3c1605={_0x5aec7e:0x10b},_0x411d08={_0x2924e0:0x7a};function _0x2bf625(_0x4f0b59,_0x16c516,_0x311161,_0x141822){return _0x949fe0(_0x16c516,_0x4f0b59-0x305,_0x311161-_0x411d08._0x2924e0,_0x141822-0x156);}function _0x3b447d(_0xc8fd23,_0x54174c,_0x22a151,_0x2ae397){return _0x949fe0(_0x54174c,_0x22a151-0x661,_0x22a151-0xb4,_0x2ae397-_0x3c1605._0x5aec7e);}return _0x3b3a84[_0x3b447d(0x440,0x4a2,0x46f,0x4ac)](_0x5ee2aa=>_0x5ee2aa[_0x3b447d(0x5bf,0x638,0x582,0x5a5)])[_0x2bf625(0x112,0x167,_0x2765b8._0x10339a,0xb1)]('\x0a\x0a');}function createToolDefinitions(_0x1a3e71){const _0x1fd081={_0x1062d8:0x47a,_0x4ff3d6:0x3b7,_0x4b7952:0x47a,_0xd45a3a:0x247},_0x242ba6={_0x1e1d12:0x185,_0x2e6e6b:0x22d,_0x249228:0x200,_0xc96c0e:0x2af,_0xfa52fe:0x1fc},_0x485b89={_0x4e543b:0x1ba},_0x4da49b={_0x4ec804:0x24};function _0x3656c1(_0x40d8e4,_0xeb7af8,_0x30627f,_0x3e0d81){return _0x949fe0(_0x3e0d81,_0xeb7af8-0x300,_0x30627f-_0x4da49b._0x4ec804,_0x3e0d81-0x18d);}if(_0x1a3e71[_0x4f3e58(_0x1fd081._0x1062d8,_0x1fd081._0x4ff3d6,_0x1fd081._0x4b7952,0x2f6)]===0x0)return void 0x0;function _0x4f3e58(_0x6ff247,_0x582103,_0x3ab134,_0x36cfa2){return _0x949fe0(_0x36cfa2,_0x582103-0x4b3,_0x3ab134-0xe3,_0x36cfa2-0x1ef);}return _0x1a3e71[_0x4f3e58(_0x1fd081._0xd45a3a,0x2c1,0x245,0x255)](_0x233c34=>{function _0x47bb0a(_0x188324,_0x3076f7,_0x2d9f3a,_0x32153e){return _0x4f3e58(_0x188324-0x1ba,_0x3076f7-0x119,_0x2d9f3a-0xdb,_0x32153e);}function _0x4cb167(_0x35bb43,_0x29203c,_0x236dfc,_0x584f4a){return _0x3656c1(_0x35bb43-0x128,_0x236dfc- -0x336,_0x236dfc-_0x485b89._0x4e543b,_0x29203c);}return{'type':'function','function':{'name':_0x233c34[_0x4cb167(-_0x242ba6._0x1e1d12,-0x16b,-0x126,-0x149)],'description':_0x233c34[_0x4cb167(-0x243,-_0x242ba6._0x2e6e6b,-_0x242ba6._0x249228,-0x18c)],'parameters':_0x233c34[_0x4cb167(-_0x242ba6._0xc96c0e,-0x136,-_0x242ba6._0xfa52fe,-0x1a5)]}};});}function isImageToolResultBlock(_0xf4351d){const _0x3d24b0={_0x52f031:0x588,_0xaac69c:0x9e,_0x14a502:0xd1,_0x19cd7b:0x541,_0x3ed574:0x4f0,_0x34ae28:0x546,_0x553e30:0x411,_0x25ffc4:0x3e5,_0x2b75ba:0xa4,_0x4e6dfa:0xfe,_0x524a6a:0x8c,_0x39d624:0xad,_0x1308c4:0x4bb},_0x1e7a1e={_0x5cbd3f:0x1de,_0x449ff1:0x150},_0x2bb9a4={_0x233a62:0xa9,_0x521c46:0x1e2,_0x54b32d:0x15c};function _0x5c3394(_0x3e5e3d,_0x231e94,_0x537735,_0x4407d3){return _0x949fe0(_0x231e94,_0x4407d3-_0x2bb9a4._0x233a62,_0x537735-_0x2bb9a4._0x521c46,_0x4407d3-_0x2bb9a4._0x54b32d);}if(typeof _0xf4351d!==_0x4f3ccf(0x509,0x4fe,0x557,_0x3d24b0._0x52f031)||_0xf4351d===null||Array['isArray'](_0xf4351d))return![];const _0x275383=_0xf4351d;function _0x4f3ccf(_0x530945,_0x1b049e,_0x4ab6f0,_0x16c845){return _0x949fe0(_0x530945,_0x16c845-0x6e4,_0x4ab6f0-_0x1e7a1e._0x5cbd3f,_0x16c845-_0x1e7a1e._0x449ff1);}return _0x275383['type']===_0x5c3394(-0x11f,-_0x3d24b0._0xaac69c,-0x118,-_0x3d24b0._0x14a502)&&_0x275383[_0x4f3ccf(_0x3d24b0._0x19cd7b,_0x3d24b0._0x3ed574,_0x3d24b0._0x34ae28,0x597)]?.[_0x4f3ccf(0x53d,0x433,0x509,0x4bd)]===_0x4f3ccf(0x544,_0x3d24b0._0x553e30,_0x3d24b0._0x25ffc4,0x49f)&&typeof _0x275383[_0x5c3394(-0xda,-0xde,-0x7c,-_0x3d24b0._0x2b75ba)][_0x5c3394(-0x111,-_0x3d24b0._0x4e6dfa,-_0x3d24b0._0x524a6a,-_0x3d24b0._0x39d624)]==='string'&&typeof _0x275383['source']['data']===_0x4f3ccf(0x455,_0x3d24b0._0x1308c4,0x426,0x4e5);}function getToolResultText(_0x13d3ef){const _0x32da8c={_0x22c621:0x37e,_0x480cbe:0x370,_0x5c1218:0x5c,_0x1dc658:0x20,_0x545f09:0x35,_0x4d1a24:0x58,_0x1e7875:0x7b,_0x4bb870:0x3e3,_0x1ac14a:0x29},_0x3e8d97={_0x24ac67:0xda},_0x10b4e7={_0x12e050:0x84,_0x30c3bf:0x42,_0x2e7b27:0x26,_0x1d422b:0x7},_0x25bc8d={_0x3b4664:0x2c0};if(typeof _0x13d3ef==='string')return _0x13d3ef;const _0x68f5eb=_0x13d3ef['filter'](_0x58269e=>{const _0x1b4836={_0x5aa532:0x29f};function _0x2a16c6(_0x42f3d4,_0x476baf,_0x1f004b,_0x6f029){return _0x1f89(_0x1f004b- -_0x1b4836._0x5aa532,_0x6f029);}function _0x5a64ef(_0x39b9c8,_0x3dcc31,_0x17b277,_0x491faf){return _0x1f89(_0x3dcc31- -_0x25bc8d._0x3b4664,_0x17b277);}return typeof _0x58269e===_0x5a64ef(-0x3d,-_0x10b4e7._0x12e050,-_0x10b4e7._0x30c3bf,-_0x10b4e7._0x2e7b27)&&_0x58269e!==null&&_0x58269e['type']===_0x5a64ef(0xb5,-_0x10b4e7._0x1d422b,0x38,0xc2);})[_0x566e5e(0x207,_0x32da8c._0x22c621,0x2d0,_0x32da8c._0x480cbe)](_0x39ae30=>_0x39ae30[_0x188d22(0x155,0xf4,0x169,0x86)])[_0x188d22(-_0x32da8c._0x5c1218,-_0x32da8c._0x1dc658,-0xd6,-0x23)]('\x0a\x0a')[_0x188d22(0x88,_0x32da8c._0x545f09,_0x32da8c._0x4d1a24,_0x32da8c._0x1e7875)]();function _0x566e5e(_0x355355,_0x1a559a,_0x511026,_0x367e66){return _0x2c5722(_0x1a559a,_0x1a559a-0xc8,_0x511026-0x21e,_0x367e66-0xbf);}function _0x188d22(_0x22b8af,_0x42ecda,_0x1d4af7,_0x480739){return _0x949fe0(_0x480739,_0x42ecda-0x1d3,_0x1d4af7-_0x3e8d97._0x24ac67,_0x480739-0x181);}return _0x68f5eb[_0x566e5e(_0x32da8c._0x4bb870,0x3f6,0x3c6,0x332)]>0x0?_0x68f5eb:_0x188d22(-_0x32da8c._0x1ac14a,-0xd,0x3d,-0xb3);}function getToolResultImages(_0x4e079f){const _0x1f3f70={_0xfb4497:0x5b,_0x3c6962:0xe,_0x443d62:0x98},_0xa7e6a4={_0x16991b:0x145,_0x38213f:0x7a,_0x203c7b:0x5e};function _0x47ef23(_0x131330,_0x2ad380,_0x32f537,_0x31c100){return _0x949fe0(_0x32f537,_0x131330-_0xa7e6a4._0x16991b,_0x32f537-_0xa7e6a4._0x38213f,_0x31c100-_0xa7e6a4._0x203c7b);}return Array['isArray'](_0x4e079f)?_0x4e079f[_0x47ef23(_0x1f3f70._0xfb4497,0x56,_0x1f3f70._0x3c6962,_0x1f3f70._0x443d62)](isImageToolResultBlock):[];}function parseToolInput2(_0x551c15){const _0xb3609a={_0x3291f0:0x5b},_0xe29891={_0x581319:0x62};if(_0x551c15[_0x10c57c(_0xb3609a._0x3291f0,-0x77,-0x6e,-0xb)]===0x0)return{};function _0x10c57c(_0x3721c9,_0x3fa0eb,_0x4596fc,_0x5c58ba){return _0x2c5722(_0x3721c9,_0x3fa0eb-0x1c7,_0x5c58ba- -0x1b3,_0x5c58ba-_0xe29891._0x581319);}try{return JSON['parse'](_0x551c15);}catch{return _0x551c15;}}function isResponsesReasoningItem(_0x50dd4a){const _0x382eb5={_0xd62a8:0x10b,_0x15428c:0x9e,_0x414fcf:0x40,_0x3a5ca0:0xb9},_0x2bb3ca={_0x27da66:0x72},_0x3eeefd={_0x32dd00:0xbf,_0x2e5b4e:0x313};function _0x289472(_0x4ecdbc,_0x197219,_0xcd0520,_0x495791){return _0x2c5722(_0x197219,_0x197219-_0x3eeefd._0x32dd00,_0xcd0520-_0x3eeefd._0x2e5b4e,_0x495791-0x111);}function _0x165c53(_0x5b59b3,_0x518a0a,_0x473ff2,_0x14aa1b){return _0x949fe0(_0x473ff2,_0x14aa1b-0x189,_0x473ff2-_0x2bb3ca._0x27da66,_0x14aa1b-0x2c);}return typeof _0x50dd4a==='object'&&_0x50dd4a!==null&&'type'in _0x50dd4a&&_0x50dd4a[_0x165c53(-0x5b,-0x65,-_0x382eb5._0xd62a8,-_0x382eb5._0x15428c)]===_0x165c53(-_0x382eb5._0x414fcf,-_0x382eb5._0x3a5ca0,0x19,0xa);}function isResponsesMessageItem(_0x3c8265){const _0x38a902={_0x353f16:0x496,_0x51808b:0x43f,_0xe0cc85:0x45c,_0xcc3e95:0x311,_0x5a749c:0x3b8,_0x58a72c:0x3b6,_0x37dab3:0x3d6,_0x5a5040:0x382,_0x43740f:0x2fd},_0x2f80e7={_0x97306f:0x294},_0x3376a4={_0x18ec76:0x160,_0x5a7c82:0x38c,_0x526deb:0xdd};function _0x59fefd(_0x5b3a04,_0x5a4e16,_0x3e4238,_0x250b73){return _0x2c5722(_0x5b3a04,_0x5a4e16-_0x3376a4._0x18ec76,_0x3e4238-_0x3376a4._0x5a7c82,_0x250b73-_0x3376a4._0x526deb);}function _0x52fc1d(_0x1cacca,_0x4c06e0,_0x1ac3b1,_0x1d75ca){return _0x2c5722(_0x1d75ca,_0x4c06e0-0x13e,_0x1cacca-_0x2f80e7._0x97306f,_0x1d75ca-0x1e2);}return typeof _0x3c8265===_0x59fefd(_0x38a902._0x353f16,_0x38a902._0x51808b,0x4d4,0x57b)&&_0x3c8265!==null&&_0x59fefd(0x345,_0x38a902._0xe0cc85,0x409,0x403)in _0x3c8265&&_0x3c8265[_0x52fc1d(_0x38a902._0xcc3e95,0x2cd,0x2f3,_0x38a902._0x5a749c)]===_0x52fc1d(_0x38a902._0x58a72c,_0x38a902._0x37dab3,_0x38a902._0x5a5040,_0x38a902._0x43740f);}function isResponsesFunctionCallItem(_0x1b06ec){const _0x3eede5={_0x115573:0x19a,_0x3b8157:0x1de,_0x1faf11:0x1f7,_0x33e4d4:0x116,_0x5a561b:0x34,_0x5d62f9:0xed,_0x4332a8:0x117,_0x2a9f82:0x173},_0x1e606a={_0x21de5e:0x29c,_0x3638c8:0x17b},_0x4a2a79={_0x2dda27:0x160};function _0x28ea0b(_0x162b68,_0x4123a5,_0x87b8d2,_0x46fab3){return _0x949fe0(_0x4123a5,_0x87b8d2-0x2b8,_0x87b8d2-_0x4a2a79._0x2dda27,_0x46fab3-0x4d);}function _0x204dac(_0x1ea086,_0x2c46ca,_0x5b7e94,_0x5f21e8){return _0x949fe0(_0x5b7e94,_0x5f21e8-_0x1e606a._0x21de5e,_0x5b7e94-0x195,_0x5f21e8-_0x1e606a._0x3638c8);}return typeof _0x1b06ec===_0x28ea0b(_0x3eede5._0x115573,_0x3eede5._0x3b8157,0x15c,_0x3eede5._0x1faf11)&&_0x1b06ec!==null&&_0x28ea0b(_0x3eede5._0x33e4d4,-_0x3eede5._0x5a561b,0x91,_0x3eede5._0x5d62f9)in _0x1b06ec&&_0x1b06ec['type']===_0x204dac(_0x3eede5._0x4332a8,0x1c1,_0x3eede5._0x2a9f82,0x176);}function createContentBlocks(_0x516e15,_0x2cd5b6,_0x137b24){const _0x22fc93={_0x5dc3fc:0x18e,_0x5f0ac7:0x60,_0x16a61c:0x1b3,_0x298079:0x297,_0x47a175:0x20c,_0x2900e4:0x1f9,_0x12102a:0x153,_0x102acd:0x103,_0x55e40f:0xd2,_0x3b907c:0x45,_0x106c0b:0xd1,_0x3e568c:0xf2,_0x3e9185:0x1cc,_0x17ce56:0x2bb,_0xfde5d1:0x142,_0x3dee45:0x147,_0x4de221:0x6e,_0x43899d:0x106,_0xfbe0e1:0x1c4,_0x5bb56e:0x172,_0x44cee1:0x24b},_0x374900={_0x6c06b5:0x6,_0x40f65f:0x7a},_0x1c00e9={_0x169d95:0x3c},_0x1765c2=[];_0x137b24&&_0x137b24[_0x279feb(-_0x22fc93._0x5dc3fc,-0xc9,-_0x22fc93._0x5f0ac7,-0x12e)]>0x0&&_0x1765c2[_0x279feb(-0x1ec,-_0x22fc93._0x16a61c,-0x1d2,-0x276)]({'type':_0x279feb(-_0x22fc93._0x298079,-_0x22fc93._0x47a175,-_0x22fc93._0x2900e4,-_0x22fc93._0x12102a),'summary':[],'text':_0x137b24});function _0x279feb(_0x3b32f4,_0x2c0045,_0x575d2f,_0x37edd9){return _0x2c5722(_0x3b32f4,_0x2c0045-0x196,_0x2c0045- -0x271,_0x37edd9-_0x1c00e9._0x169d95);}_0x516e15[_0x4d1867(-_0x22fc93._0x102acd,-_0x22fc93._0x55e40f,-_0x22fc93._0x3b907c,-_0x22fc93._0x106c0b)]>0x0&&_0x1765c2['push']({'type':'text','text':_0x516e15});function _0x4d1867(_0x8d6f0c,_0x2da65d,_0x22cc37,_0x32336d){return _0x949fe0(_0x22cc37,_0x2da65d-0x2a,_0x22cc37-_0x374900._0x6c06b5,_0x32336d-_0x374900._0x40f65f);}for(const _0x54aa04 of _0x2cd5b6){if(_0x54aa04['id'][_0x4d1867(-0xcb,-0x174,-_0x22fc93._0x3e568c,-_0x22fc93._0x3e9185)]()['length']===0x0||_0x54aa04[_0x4d1867(-0x1aa,-0x1ff,-_0x22fc93._0x17ce56,-0x1e7)]['name'][_0x279feb(-0x120,-0x16b,-_0x22fc93._0xfde5d1,-_0x22fc93._0x3dee45)]()[_0x279feb(-0x15e,-0xc9,-_0x22fc93._0x4de221,-0xe2)]===0x0)continue;_0x1765c2['push']({'type':_0x4d1867(-0x6b,-_0x22fc93._0x43899d,-_0x22fc93._0xfbe0e1,-0x13f),'id':_0x54aa04['id'],'name':_0x54aa04[_0x4d1867(-0x26a,-0x1ff,-_0x22fc93._0x5bb56e,-0x25c)]['name'],'input':parseToolInput2(_0x54aa04[_0x279feb(-0x25d,-0x1f6,-_0x22fc93._0x44cee1,-0x205)]['arguments'])});}return _0x1765c2;}function createUsage(_0x6c70cd){const _0x5c9c50={_0x5efdf6:0x15b,_0x3b3fcc:0xf8,_0x2b6c0e:0x105,_0x3199a6:0x236,_0x3ae7c5:0x19f},_0x5b9e84={_0x2f727d:0x2d1},_0xabd2f9={_0x1c325f:0x16c};function _0xb3e670(_0x16b1e3,_0x23bb7c,_0x1b747a,_0x3f7b9b){return _0x2c5722(_0x3f7b9b,_0x23bb7c-_0xabd2f9._0x1c325f,_0x16b1e3- -0x2b4,_0x3f7b9b-0x61);}function _0x14de2e(_0x2822c6,_0x49f215,_0x1960ae,_0x1440bd){return _0x949fe0(_0x1960ae,_0x1440bd-_0x5b9e84._0x2f727d,_0x1960ae-0x8d,_0x1440bd-0x16);}return{'inputTokens':_0x6c70cd?.[_0xb3e670(-_0x5c9c50._0x5efdf6,-0x13e,-0x1e7,-_0x5c9c50._0x3b3fcc)]??0x0,'outputTokens':_0x6c70cd?.[_0xb3e670(-_0x5c9c50._0x2b6c0e,-0xc6,-0xc2,-0x81)]??0x0,..._0x6c70cd?.[_0xb3e670(-0x194,-0x1fb,-0xfe,-_0x5c9c50._0x3199a6)]?.[_0xb3e670(-0x218,-_0x5c9c50._0x3ae7c5,-0x22e,-0x2e2)]!==void 0x0?{'reasoningTokens':_0x6c70cd[_0x14de2e(0x1a4,0x18f,0xb9,0x14d)][_0x14de2e(0xa6,0x107,0xb6,0xc9)]}:{}};}function resolveReasoningVisibility2(_0x22b7af){const _0x795638={_0x2d0842:0x17c,_0x45204d:0x113,_0x29741e:0xd9,_0x4455f5:0x23},_0x4d9620={_0x5932cf:0x1d2},_0x3f730f={_0x194b89:0x251,_0xc153d2:0xa5};function _0x3af1fa(_0x1ad0d0,_0x212c4f,_0x125a9d,_0x5e52cd){return _0x949fe0(_0x1ad0d0,_0x125a9d-_0x3f730f._0x194b89,_0x125a9d-_0x3f730f._0xc153d2,_0x5e52cd-0x1e9);}function _0x322da5(_0x437cee,_0x5966e2,_0x53f5bd,_0x46a81f){return _0x2c5722(_0x437cee,_0x5966e2-0xe0,_0x46a81f- -_0x4d9620._0x5932cf,_0x46a81f-0x0);}return _0x22b7af[_0x3af1fa(0x26,0xb3,0xd2,0xa6)]?.[_0x3af1fa(_0x795638._0x2d0842,_0x795638._0x45204d,_0x795638._0x29741e,_0x795638._0x4455f5)]??'user-visible';}function _0x1f89(_0x612f92,_0x30b0df){_0x612f92=_0x612f92-0x128;const _0x335208=_0x3352();let _0x1f89db=_0x335208[_0x612f92];if(_0x1f89['uKglsw']===undefined){var _0x271d99=function(_0x32c408){const _0x346507='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x18dfc5='',_0x2551a0='';for(let _0x14d2d3=0x0,_0x42fb0e,_0x5280b7,_0x5bdc3e=0x0;_0x5280b7=_0x32c408['charAt'](_0x5bdc3e++);~_0x5280b7&&(_0x42fb0e=_0x14d2d3%0x4?_0x42fb0e*0x40+_0x5280b7:_0x5280b7,_0x14d2d3++%0x4)?_0x18dfc5+=String['fromCharCode'](0xff&_0x42fb0e>>(-0x2*_0x14d2d3&0x6)):0x0){_0x5280b7=_0x346507['indexOf'](_0x5280b7);}for(let _0xc3725a=0x0,_0xa50e8=_0x18dfc5['length'];_0xc3725a<_0xa50e8;_0xc3725a++){_0x2551a0+='%'+('00'+_0x18dfc5['charCodeAt'](_0xc3725a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2551a0);};_0x1f89['FWYYgV']=_0x271d99,_0x1f89['IPaXcr']={},_0x1f89['uKglsw']=!![];}const _0x22a3f4=_0x335208[0x0],_0x216714=_0x612f92+_0x22a3f4,_0x28d2f9=_0x1f89['IPaXcr'][_0x216714];return!_0x28d2f9?(_0x1f89db=_0x1f89['FWYYgV'](_0x1f89db),_0x1f89['IPaXcr'][_0x216714]=_0x1f89db):_0x1f89db=_0x28d2f9,_0x1f89db;}function isUserVisibleReasoning(_0xecf83e){const _0x315d7a={_0x20bb3e:0x47b,_0x474fce:0x4bd,_0x3a467d:0x2bf},_0xbcb7dc={_0x427648:0x6a7,_0x1873b3:0x12e},_0x1d9317={_0x5e98de:0x1b3,_0x59c80c:0x1f1};function _0x113c45(_0x40edf1,_0x35f647,_0xc1d4ed,_0x94746){return _0x2c5722(_0x35f647,_0x35f647-_0x1d9317._0x5e98de,_0x40edf1-0x104,_0x94746-_0x1d9317._0x59c80c);}function _0x296a60(_0xb13f3a,_0x4b942b,_0x5d134d,_0x2943ad){return _0x949fe0(_0x2943ad,_0xb13f3a-_0xbcb7dc._0x427648,_0x5d134d-_0xbcb7dc._0x1873b3,_0x2943ad-0x2a);}return resolveOpenAiReasoningConfig(_0xecf83e[_0x296a60(0x528,0x52b,_0x315d7a._0x20bb3e,_0x315d7a._0x474fce)])!==void 0x0&&resolveReasoningVisibility2(_0xecf83e)===_0x113c45(0x292,_0x315d7a._0x3a467d,0x240,0x1c9);}function createChatRequestBody(_0x271d6d,_0x20d879){const _0x4be8e6={_0x169888:0x678,_0x2fd8e1:0x5d8,_0x4e50a5:0x5ad,_0x28803e:0x57f,_0x52e352:0x605,_0x3b2e21:0x58f,_0x3e45a7:0x5fb,_0x2193c1:0x502,_0xb81f7e:0x4e7,_0x3987e2:0x5a4,_0x5aafcf:0x458,_0x3ce187:0x454,_0x5d83f0:0x40f,_0x401c33:0x59c,_0x117a36:0x5d9,_0x4a99b5:0x4ea,_0x2e6f4c:0x4f4,_0x368692:0x4e2,_0x281927:0x495,_0xda023f:0x4d8,_0x2bf237:0x445,_0x43bb25:0x59c,_0xcc3110:0x52f,_0xcb0f86:0x54f,_0x316317:0x67f,_0x52d0c0:0x5e5,_0x35b32e:0x3d8,_0x7b1e70:0x525,_0x4a8755:0x59c,_0x350bc1:0x648,_0x3cb1b1:0x62b,_0x1617c5:0x657,_0x14feb0:0x65b,_0x5a9310:0x5af,_0x5c8efa:0x5a4,_0xb8b6e0:0x49d,_0x519d4c:0x539,_0x15b83c:0x515,_0x1e9ce3:0x487,_0x208841:0x4f0,_0x22fee5:0x47c,_0x246a1a:0x386,_0x1170cc:0x47f,_0x43d835:0x49f,_0xd001b4:0x38a,_0x58dd7b:0x493,_0x3ffbe0:0x467,_0x473aea:0x40e,_0x25ccdb:0x472,_0x5782eb:0x4bf,_0x4dbb1b:0x40e,_0x250194:0x66a,_0x228535:0x592,_0x2b53d2:0x568,_0x3fa63e:0x62e,_0x5729d5:0x510,_0x42de59:0x492,_0x22819a:0x4ec,_0x1ec4de:0x56c,_0x1af465:0x47b,_0x2e720a:0x43a,_0x41ea63:0x551,_0x4783c8:0x5be,_0x59e70e:0x511,_0x5627fc:0x3d2,_0x177c9e:0x486,_0x9213ed:0x44c,_0x2ba44c:0x478,_0x4b8587:0x484,_0x4c7eac:0x41b},_0x4f289c={_0x4ba8f9:0x4f,_0x76e31:0xcb,_0x5731ed:0x182,_0x5311be:0x99,_0x295c22:0x101,_0x62bff7:0x55,_0x76ec56:0xbc,_0x571bb6:0x183,_0x26dd2d:0x215,_0x36c8fc:0x23f,_0x3a128a:0x10e,_0x51fe8e:0x172,_0x147578:0x201,_0x6dff27:0x21a,_0x2367c6:0x3b,_0x3f4f79:0x88,_0x350487:0x16c,_0x18efd1:0xc6,_0x51d45e:0x142,_0xc09e17:0x110,_0x5e170f:0x174,_0x28a228:0x8a,_0xfa2b10:0x28,_0x31ebfc:0xf7,_0x2a7033:0x147,_0x571c97:0x5d,_0xe9522b:0x74,_0x213dea:0x45,_0x4674e6:0x94,_0x50d7d3:0x78,_0x3dee30:0xe1,_0x4a6525:0x16b,_0x20ef31:0x13f,_0x58785d:0x2d,_0x2688c3:0x102,_0x278a5d:0xdb,_0x1da87b:0x18f,_0x7a1d12:0x10c,_0x571571:0x237,_0x5da007:0x190,_0xe8e63:0xc8,_0x4496d3:0x214,_0x54ff66:0x251,_0x551b1e:0x83,_0x6a4496:0x15b,_0x49df6e:0x1da,_0x4abc5d:0xde,_0x530c71:0xe8,_0x1b76fb:0x99,_0xe6d125:0x43},_0x478815={_0x11a1ce:0x5f0,_0x234ae5:0x9e,_0x12031a:0xb4},_0x51cb25={_0x1e3633:0x3d7,_0x5e29e6:0x10e},_0x40316b={_0x165d9f:0xce};function _0x4b1b7e(_0x1434d5,_0x501854,_0x28e4bd,_0x1effd7){return _0x949fe0(_0x1434d5,_0x28e4bd-0x6c4,_0x28e4bd-0xa5,_0x1effd7-_0x40316b._0x165d9f);}const _0x5112cd=[],_0x2ce0d6=stringifySystem(_0x271d6d[_0x4b1b7e(_0x4be8e6._0x169888,0x530,_0x4be8e6._0x2fd8e1,_0x4be8e6._0x4e50a5)]);function _0x103274(_0x2f9acd,_0xb5e52,_0x225885,_0x2d6e74){return _0x2c5722(_0x225885,_0xb5e52-0x66,_0x2f9acd-_0x51cb25._0x1e3633,_0x2d6e74-_0x51cb25._0x5e29e6);}_0x2ce0d6[_0x103274(_0x4be8e6._0x28803e,_0x4be8e6._0x52e352,0x581,0x57b)]>0x0&&_0x5112cd['push']({'role':_0x103274(_0x4be8e6._0x3b2e21,0x4f6,0x531,_0x4be8e6._0x3e45a7),'content':_0x2ce0d6});for(const _0x50e3a8 of _0x271d6d[_0x103274(_0x4be8e6._0x2193c1,_0x4be8e6._0xb81f7e,_0x4be8e6._0x3987e2,_0x4be8e6._0x5aafcf)]){const _0x1acbc3=[],_0x59a3a0=[],_0x42286c=[],_0x24de3e=()=>{const _0x17643c={_0x2e18bb:0x125,_0x2978eb:0x661};if(_0x50e3a8[_0x17cbba(-0x110,-0x137,-_0x4f289c._0x4ba8f9,-0x10b)]===_0x17cbba(-_0x4f289c._0x76e31,-_0x4f289c._0x5731ed,-0x12a,-0x31)){if(_0x1acbc3[_0x17cbba(-_0x4f289c._0x5311be,-_0x4f289c._0x295c22,-0x106,-0x14c)]===0x0&&_0x59a3a0[_0x17cbba(-_0x4f289c._0x5311be,-0x19,-_0x4f289c._0x62bff7,-_0x4f289c._0x76ec56)]===0x0)return;_0x5112cd[_0x17cbba(-_0x4f289c._0x571bb6,-_0x4f289c._0x26dd2d,-_0x4f289c._0x36c8fc,-0x1c2)]({'role':_0x17cbba(-_0x4f289c._0x76e31,-_0x4f289c._0x3a128a,-_0x4f289c._0x51fe8e,-0xbb),'content':_0x1acbc3['length']>0x0?_0x1acbc3[_0x295445(-0x1ee,-0x168,-_0x4f289c._0x147578,-_0x4f289c._0x6dff27)]('\x0a\x0a'):null,..._0x59a3a0[_0x295445(_0x4f289c._0x2367c6,-0x71,-0xd5,-_0x4f289c._0x3f4f79)]>0x0?{'tool_calls':_0x59a3a0[_0x295445(-_0x4f289c._0x350487,-0xe1,-0x59,-_0x4f289c._0x18efd1)](0x0)}:{}}),_0x1acbc3[_0x17cbba(-_0x4f289c._0x5311be,-_0x4f289c._0x51d45e,-0x138,-0x100)]=0x0;return;}if(_0x50e3a8[_0x17cbba(-_0x4f289c._0xc09e17,-_0x4f289c._0x5e170f,-0x1a6,-0xb0)]===_0x295445(-0x9a,-_0x4f289c._0x28a228,-0xe1,-_0x4f289c._0xfa2b10)){if(_0x42286c['length']===0x0)return;const _0x880f0=_0x42286c[_0x17cbba(-_0x4f289c._0x31ebfc,-_0x4f289c._0x2a7033,-0x73,-_0x4f289c._0x571c97)](_0x562f4b=>_0x562f4b[_0x17cbba(-0x1c4,-0x28b,-0x12a,-0x25a)]===_0x17cbba(-0x12c,-0xac,-0x1ec,-0x1a2));_0x5112cd[_0x17cbba(-0x183,-0x196,-0x121,-0x204)]({'role':_0x295445(-_0x4f289c._0xe9522b,-_0x4f289c._0x28a228,-_0x4f289c._0x213dea,-_0x4f289c._0x4674e6),'content':_0x880f0?_0x42286c[_0x295445(-_0x4f289c._0x50d7d3,-_0x4f289c._0x3dee30,-_0x4f289c._0x4a6525,-0xac)](0x0):_0x42286c[_0x295445(-0xa2,-0xe1,-_0x4f289c._0x20ef31,-_0x4f289c._0x58785d)](0x0)[_0x295445(-_0x4f289c._0x2688c3,-0x5f,-0x5a,-_0x4f289c._0x278a5d)](_0x919d7=>_0x919d7['type']===_0x295445(-0x5b,-0x54,0x9,-0x114))[_0x17cbba(-_0x4f289c._0x1da87b,-_0x4f289c._0x7a1d12,-0x21d,-_0x4f289c._0x571571)](_0x46273d=>_0x46273d['text'])[_0x17cbba(-_0x4f289c._0x5da007,-_0x4f289c._0xe8e63,-_0x4f289c._0x4496d3,-_0x4f289c._0x54ff66)]('\x0a\x0a')});return;}function _0x295445(_0x486f87,_0x58883f,_0x19a90c,_0x5f070b){return _0x103274(_0x58883f- -_0x478815._0x11a1ce,_0x58883f-_0x478815._0x234ae5,_0x19a90c,_0x5f070b-_0x478815._0x12031a);}if(_0x1acbc3[_0x17cbba(-_0x4f289c._0x5311be,-0x8,-_0x4f289c._0x551b1e,-0x2d)]===0x0)return;function _0x17cbba(_0x17feaf,_0x192cba,_0x39332e,_0x3b53f1){return _0x4b1b7e(_0x3b53f1,_0x192cba-_0x17643c._0x2e18bb,_0x17feaf- -_0x17643c._0x2978eb,_0x3b53f1-0x1cf);}_0x5112cd[_0x295445(-0x94,-_0x4f289c._0x6a4496,-_0x4f289c._0x49df6e,-_0x4f289c._0x4abc5d)]({'role':_0x50e3a8[_0x295445(-0x3a,-_0x4f289c._0x530c71,-0x59,-0x1ae)],'content':_0x1acbc3['join']('\x0a\x0a')}),_0x1acbc3[_0x17cbba(-_0x4f289c._0x1b76fb,_0x4f289c._0x58785d,-_0x4f289c._0xe6d125,-0x40)]=0x0;};for(const _0x4717cc of normalizeContent(_0x50e3a8['content'])){if(_0x4717cc[_0x103274(_0x4be8e6._0x3ce187,0x456,_0x4be8e6._0x5d83f0,0x43c)]===_0x103274(_0x4be8e6._0x401c33,_0x4be8e6._0x117a36,_0x4be8e6._0x4a99b5,_0x4be8e6._0x52e352)){_0x50e3a8[_0x103274(0x508,_0x4be8e6._0x2e6f4c,_0x4be8e6._0x368692,0x4f9)]==='user'?_0x42286c[_0x103274(_0x4be8e6._0x281927,_0x4be8e6._0xda023f,0x464,_0x4be8e6._0x2bf237)]({'type':_0x103274(_0x4be8e6._0x43bb25,0x559,_0x4be8e6._0xcc3110,_0x4be8e6._0xcb0f86),'text':_0x4717cc[_0x4b1b7e(0x568,_0x4be8e6._0x316317,_0x4be8e6._0x52d0c0,0x680)]}):_0x1acbc3[_0x103274(0x495,_0x4be8e6._0x35b32e,_0x4be8e6._0x7b1e70,0x4d3)](_0x4717cc[_0x103274(_0x4be8e6._0x4a8755,_0x4be8e6._0x350bc1,_0x4be8e6._0x3cb1b1,_0x4be8e6._0x1617c5)]);continue;}if(_0x50e3a8['role']===_0x4b1b7e(_0x4be8e6._0x14feb0,0x621,_0x4be8e6._0x5a9310,_0x4be8e6._0x5c8efa)&&_0x4717cc[_0x4b1b7e(0x3da,0x479,_0x4be8e6._0xb8b6e0,0x555)]==='image'){_0x42286c['push']({'type':_0x4b1b7e(0x540,_0x4be8e6._0x519d4c,0x535,0x4c8),'image_url':{'url':'data:'+_0x4717cc['source'][_0x103274(_0x4be8e6._0x7b1e70,_0x4be8e6._0x15b83c,0x5dd,_0x4be8e6._0x1e9ce3)]+_0x103274(0x54a,0x587,0x58a,0x58b)+_0x4717cc['source']['data']}});continue;}if(_0x4717cc[_0x4b1b7e(0x471,0x4f8,0x49d,_0x4be8e6._0x208841)]==='tool_use'){_0x59a3a0[_0x103274(_0x4be8e6._0x281927,_0x4be8e6._0x22fee5,0x521,0x3e3)]({'id':_0x4717cc['id'],'type':'function','function':{'name':_0x4717cc['name'],'arguments':JSON[_0x103274(0x448,0x3f7,_0x4be8e6._0x246a1a,0x4a0)](_0x4717cc[_0x4b1b7e(0x59c,0x572,0x58b,0x61d)]??{})}});continue;}if(_0x4717cc[_0x103274(0x454,_0x4be8e6._0x1170cc,_0x4be8e6._0x43d835,_0x4be8e6._0xd001b4)]!=='tool_result')continue;_0x24de3e(),_0x5112cd[_0x4b1b7e(0x4c2,_0x4be8e6._0x58dd7b,0x4de,_0x4be8e6._0x3ffbe0)]({'role':'tool','content':getToolResultText(_0x4717cc[_0x103274(_0x4be8e6._0x473aea,_0x4be8e6._0x25ccdb,_0x4be8e6._0x5782eb,0x4c1)]),'tool_call_id':_0x4717cc[_0x103274(0x453,0x408,0x4c2,0x464)]});const _0x1ee56c=getToolResultImages(_0x4717cc[_0x103274(_0x4be8e6._0x4dbb1b,0x4d7,0x3b0,0x4aa)]);_0x1ee56c[_0x4b1b7e(_0x4be8e6._0x250194,0x5aa,0x5c8,_0x4be8e6._0x228535)]>0x0&&_0x5112cd['push']({'role':_0x103274(0x566,_0x4be8e6._0x2b53d2,_0x4be8e6._0x3fa63e,0x59c),'content':[{'type':'text','text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x4717cc[_0x4b1b7e(_0x4be8e6._0x5729d5,_0x4be8e6._0x42de59,0x49c,0x46d)]+'.'},..._0x1ee56c[_0x103274(0x489,0x413,0x3d5,_0x4be8e6._0x22819a)](_0x47f277=>({'type':'image_url','image_url':{'url':_0x4b1b7e(0x53b,0x48e,0x48e,0x4b2)+_0x47f277[_0x103274(0x52e,0x4b0,0x4c1,0x5c4)]['media_type']+_0x4b1b7e(0x4e6,0x56a,0x593,0x5a4)+_0x47f277[_0x4b1b7e(0x5c6,0x57a,0x577,0x604)][_0x4b1b7e(0x501,0x651,0x58e,0x4e6)]}}))]});}_0x24de3e();}const _0x4d7d13=resolveOpenAiReasoningConfig(_0x271d6d[_0x103274(0x4fc,0x504,0x56e,_0x4be8e6._0x1ec4de)]);return{'model':_0x271d6d[_0x103274(0x42d,_0x4be8e6._0x1af465,_0x4be8e6._0x2e720a,0x48d)],'messages':_0x5112cd,'stream':_0x20d879,..._0x4d7d13?{'max_completion_tokens':_0x271d6d['maxTokens']}:{'max_tokens':_0x271d6d[_0x4b1b7e(_0x4be8e6._0x41ea63,_0x4be8e6._0x4783c8,0x5dd,0x6a6)]},..._0x4d7d13?.[_0x103274(0x48a,_0x4be8e6._0x59e70e,_0x4be8e6._0x5627fc,_0x4be8e6._0x177c9e)]?{'reasoning_effort':_0x4d7d13[_0x103274(0x48a,_0x4be8e6._0x9213ed,_0x4be8e6._0x2ba44c,_0x4be8e6._0x4b8587)]}:{},...createToolDefinitions(_0x271d6d[_0x103274(_0x4be8e6._0x4c7eac,0x392,0x461,0x3ac)])?{'tools':createToolDefinitions(_0x271d6d['tools'])}:{}};}function createResponsesRequestBody(_0x32ab83,_0x13b89d){return{...toOpenAiResponsesRequest(_0x32ab83),..._0x13b89d?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x473a77,_0x180266={}){const _0x2167a6={_0x54b712:0x173,_0xb47345:0xe8,_0x171315:0x482,_0x29beb1:0x4a2,_0x42075f:0x43a,_0x28c70d:0x427},_0x267aeb={_0x5ead60:0x365,_0x250340:0x70};function _0x419315(_0x473d67,_0x13e770,_0x52b4e7,_0x25a508){return _0x2c5722(_0x25a508,_0x13e770-0x1a8,_0x52b4e7- -0x83,_0x25a508-0x80);}const _0x1dde3a=toOpenAiResponsesRequest(_0x473a77);function _0x2fdbda(_0x99e5cc,_0x3aed30,_0x2e923b,_0x23190f){return _0x2c5722(_0x23190f,_0x3aed30-0x7b,_0x99e5cc-_0x267aeb._0x5ead60,_0x23190f-_0x267aeb._0x250340);}return{'type':'response.create',..._0x1dde3a,..._0x180266['input']?{'input':_0x180266[_0x419315(0xdf,_0x2167a6._0x54b712,_0x2167a6._0xb47345,0xc6)]}:{},..._0x180266[_0x2fdbda(_0x2167a6._0x171315,0x4b4,_0x2167a6._0x29beb1,_0x2167a6._0x42075f)]?{'previous_response_id':_0x180266[_0x2fdbda(0x482,0x3f6,0x478,_0x2167a6._0x28c70d)]}:{},'store':![]};}function normalizeAssistantContent(_0x5f04ab){const _0x24f03d={_0x4032e4:0x31c,_0x354c5c:0x35d,_0x4c929a:0x482},_0x2107d7={_0x46f506:0x74,_0x5c50ff:0x8f,_0x41d59a:0x399,_0x5ea42d:0x40e},_0x403fdc={_0x46cc74:0xba,_0x4583b7:0x161},_0x558549={_0x2bb135:0x51b},_0x19583f={_0x19ce1f:0x675};if(typeof _0x5f04ab===_0x48aabc(_0x24f03d._0x4032e4,0x302,0x2b3,0x317))return _0x5f04ab;function _0x60fc59(_0x3e93bf,_0x107dc8,_0x5f2341,_0x379475){return _0x949fe0(_0x5f2341,_0x379475-_0x19583f._0x19ce1f,_0x5f2341-0x1de,_0x379475-0xfe);}if(!Array[_0x48aabc(0x3ff,0x3c3,0x46b,0x47c)](_0x5f04ab))return'';function _0x48aabc(_0x227c5b,_0x71811f,_0x4d92a9,_0x4a8c67){return _0x949fe0(_0x4d92a9,_0x227c5b-_0x558549._0x2bb135,_0x4d92a9-0x5c,_0x4a8c67-0x4f);}return _0x5f04ab[_0x48aabc(0x329,0x2c7,0x373,_0x24f03d._0x354c5c)](_0x44fea6=>{const _0x133005={_0x516ffc:0x31a,_0x514bba:0x147};function _0x1db88b(_0x20c183,_0x711ef0,_0x3b882a,_0x384813){return _0x48aabc(_0x384813- -_0x133005._0x516ffc,_0x711ef0-0x1e,_0x3b882a,_0x384813-_0x133005._0x514bba);}function _0x3e2dae(_0x2f47ba,_0x3842c0,_0x2cfd7e,_0x349c2b){return _0x60fc59(_0x2f47ba-_0x403fdc._0x46cc74,_0x3842c0-0x3e,_0x2cfd7e,_0x349c2b- -_0x403fdc._0x4583b7);}return _0x44fea6[_0x1db88b(-_0x2107d7._0x46f506,_0x2107d7._0x5c50ff,0x81,-0x26)]==='text'?_0x44fea6['text']:_0x44fea6[_0x3e2dae(0x428,0x3f8,_0x2107d7._0x41d59a,_0x2107d7._0x5ea42d)];})[_0x60fc59(0x490,0x47b,0x3bb,_0x24f03d._0x4c929a)]('');}function normalizeResponsesMessageContent(_0x1f6ca9){const _0x458718={_0x548e56:0x5e2,_0x1feaec:0x50c,_0x354a31:0x49e,_0x3f1fe7:0x483},_0x565da9={_0x3b6017:0x23f,_0x16902c:0x18c,_0x223dcf:0x1d6,_0x9209e2:0x156,_0x618d45:0x1de,_0x455253:0x14b,_0x5ea757:0xb4,_0x2443bf:0x16a,_0x5ad07c:0x15e,_0x22e2f3:0x21c,_0x5a5c39:0x1b6,_0x4b8eb4:0x209,_0x9ebdae:0x13f,_0x50ab0c:0xac,_0x449417:0x17a,_0x1dc593:0x285,_0x3dfefb:0x241,_0x4c7256:0xee,_0x1f91e5:0x155,_0x27132f:0x10c,_0xcd920e:0xe9,_0x1a8f72:0x13f,_0x1c9c35:0xe3},_0x2774a8={_0x2e53ab:0x6fe,_0x74ff05:0x1b3},_0x145723={_0x4881c2:0x773,_0x250cf0:0x78,_0x2e787f:0x8c};if(!Array[_0x21d10a(_0x458718._0x548e56,0x5cc,0x69a,0x588)](_0x1f6ca9))return'';function _0x7a5489(_0x197d0a,_0x1eea3b,_0x8209bf,_0x286b6a){return _0x949fe0(_0x197d0a,_0x286b6a-_0x145723._0x4881c2,_0x8209bf-_0x145723._0x250cf0,_0x286b6a-_0x145723._0x2e787f);}function _0x21d10a(_0x5ee1e5,_0xde06c4,_0x38be33,_0x1574f3){return _0x949fe0(_0x38be33,_0x5ee1e5-_0x2774a8._0x2e53ab,_0x38be33-_0x2774a8._0x74ff05,_0x1574f3-0x191);}return _0x1f6ca9[_0x21d10a(_0x458718._0x1feaec,0x48b,0x553,0x5a6)](_0x3c79a4=>{const _0x14564b={_0x4d070:0x416,_0x3aa140:0x16},_0x1f2153={_0x4b69d9:0xa4};function _0x34f6c5(_0x29aec6,_0x182592,_0x552764,_0x5091a2){return _0x21d10a(_0x5091a2- -0x6b5,_0x182592-0x1d3,_0x29aec6,_0x5091a2-_0x1f2153._0x4b69d9);}function _0x4511db(_0x21dc06,_0x33fec4,_0x301cc3,_0x30c759){return _0x21d10a(_0x33fec4- -_0x14564b._0x4d070,_0x33fec4-0x150,_0x301cc3,_0x30c759-_0x14564b._0x3aa140);}if(!_0x3c79a4||typeof _0x3c79a4!==_0x4511db(_0x565da9._0x3b6017,_0x565da9._0x16902c,0x19a,0x1b4))return'';const _0x396585=_0x3c79a4;if(_0x396585[_0x34f6c5(-0x213,-_0x565da9._0x223dcf,-_0x565da9._0x9209e2,-_0x565da9._0x618d45)]===_0x4511db(_0x565da9._0x455253,0xe2,_0x565da9._0x5ea757,_0x565da9._0x2443bf)&&typeof _0x396585[_0x4511db(0x257,0x209,0x14d,_0x565da9._0x5ad07c)]===_0x34f6c5(-0x1cc,-_0x565da9._0x22e2f3,-0x139,-_0x565da9._0x5a5c39))return _0x396585[_0x4511db(0x1f0,_0x565da9._0x4b8eb4,0x1ad,_0x565da9._0x9ebdae)];if(_0x396585[_0x4511db(_0x565da9._0x50ab0c,0xc1,_0x565da9._0x449417,0x105)]===_0x4511db(_0x565da9._0x1dc593,0x1e2,_0x565da9._0x3dfefb,0x1ba)&&typeof _0x396585[_0x34f6c5(-_0x565da9._0x4c7256,-0x130,-_0x565da9._0x1f91e5,-0xbd)]===_0x4511db(_0x565da9._0x27132f,_0x565da9._0xcd920e,_0x565da9._0x1a8f72,0xf0))return _0x396585[_0x34f6c5(-_0x565da9._0x1c9c35,-0x16b,-0x50,-0xbd)];return'';})[_0x21d10a(0x50b,_0x458718._0x354a31,_0x458718._0x3f1fe7,0x586)]('');}function extractOpenAiReasoningText(_0x404bd7){const _0x2ff2bf={_0x24eb20:0x27e,_0x22deda:0xdc,_0x2ab21e:0x2dd,_0x46ac70:0x261,_0x421ff5:0x327,_0x24a3e2:0x241,_0xe20982:0xb4,_0x8e7ab:0x181,_0x5f321d:0xf0,_0x46c1f4:0x8f,_0x57fd38:0xda,_0x570f9a:0x2c0,_0x3c2fcd:0x273,_0x48ed8a:0x284,_0x5c45be:0x176,_0x144ce3:0x1c8},_0xccee84={_0x1ebcf6:0x90,_0x1f49a8:0x70},_0x48e59b={_0x19cbfb:0x35d};function _0x63dac4(_0x1d33e1,_0x46a414,_0x203e08,_0x505c30){return _0x949fe0(_0x203e08,_0x46a414-_0x48e59b._0x19cbfb,_0x203e08-0x19e,_0x505c30-0x118);}if(typeof _0x404bd7[_0x63dac4(0x30c,_0x2ff2bf._0x24eb20,0x2d5,0x292)]===_0x48d2ac(_0x2ff2bf._0x22deda,0xae,0x141,0x11d))return _0x404bd7[_0x48d2ac(_0x2ff2bf._0x2ab21e,0x293,_0x2ff2bf._0x46ac70,_0x2ff2bf._0x421ff5)];function _0x48d2ac(_0x574731,_0x1002fb,_0x4cfa8c,_0x3ffd7f){return _0x2c5722(_0x3ffd7f,_0x1002fb-_0xccee84._0x1ebcf6,_0x4cfa8c-0x9c,_0x3ffd7f-_0xccee84._0x1f49a8);}if(!Array[_0x63dac4(0x2c4,_0x2ff2bf._0x24a3e2,0x18f,0x28e)](_0x404bd7[_0x63dac4(0x180,0xf0,0x1ac,_0x2ff2bf._0xe20982)]))return'';return _0x404bd7[_0x63dac4(_0x2ff2bf._0x8e7ab,_0x2ff2bf._0x5f321d,_0x2ff2bf._0x46c1f4,_0x2ff2bf._0x57fd38)][_0x63dac4(_0x2ff2bf._0x570f9a,_0x2ff2bf._0x3c2fcd,_0x2ff2bf._0x48ed8a,0x205)](_0x41069d=>_0x41069d[_0x48d2ac(0xbe,0x85,0x119,0x55)]==='reasoning_text'&&typeof _0x41069d[_0x63dac4(0x332,0x27e,0x1d1,0x1c5)]===_0x63dac4(0xfb,0x15e,0x1e4,0x1d4))[_0x63dac4(0xbb,0x16b,0x18f,_0x2ff2bf._0x5c45be)](_0x58c3fe=>_0x58c3fe['text']??'')[_0x63dac4(_0x2ff2bf._0x144ce3,0x16a,0x186,0x1d4)]('');}function _0x2c5722(_0x323146,_0x2da220,_0x12177a,_0x15f562){return _0x1f89(_0x12177a- -0xf4,_0x323146);}function createOpenAiReasoningBlock(_0x4af28c){const _0x2a4674={_0x4b9231:0x10b,_0x4d0aaf:0x13a,_0xc0559a:0x169,_0x116a61:0x150,_0x32a8f0:0x1cd},_0x2d2c0d={_0x1e4c56:0x1b4,_0x10cadd:0xc4},_0x2383c0={_0x5d4947:0x18a,_0x47236b:0x1d4},_0xbd639d=extractOpenAiReasoningText(_0x4af28c);function _0xb6d62d(_0x145552,_0x576143,_0x5130fc,_0x128caa){return _0x2c5722(_0x5130fc,_0x576143-_0x2383c0._0x5d4947,_0x145552-0xa6,_0x128caa-_0x2383c0._0x47236b);}function _0x5a0741(_0x447975,_0x1a47ef,_0x1f382d,_0x48316e){return _0x2c5722(_0x1a47ef,_0x1a47ef-_0x2d2c0d._0x1e4c56,_0x447975- -0x24e,_0x48316e-_0x2d2c0d._0x10cadd);}return{'type':_0xb6d62d(_0x2a4674._0x4b9231,_0x2a4674._0x4d0aaf,_0x2a4674._0xc0559a,0x1a5),'summary':structuredClone(_0x4af28c[_0xb6d62d(0x172,0x19d,_0x2a4674._0x116a61,0xca)]??[]),..._0x4af28c['id']?{'id':_0x4af28c['id']}:{},..._0x4af28c['encrypted_content']?{'encryptedContent':_0x4af28c[_0xb6d62d(_0x2a4674._0x32a8f0,0x143,0x129,0x1ac)]}:{},..._0xbd639d['length']>0x0?{'text':_0xbd639d}:{}};}function hasVisibleOpenAiReasoning(_0x4c4788){const _0x550ee0={_0x33bc16:0x83,_0x9bd0fc:0x51,_0x19b25b:0xd8,_0x2e2f51:0x6e,_0x47050a:0x52,_0x2ca67a:0xf6,_0x476724:0x5e},_0x4263a2={_0x15158d:0xd0},_0x32bdbd={_0x17fdf3:0x153};function _0x2723df(_0x4b70d6,_0x2621bd,_0x110206,_0x4cf6cc){return _0x2c5722(_0x4cf6cc,_0x2621bd-_0x32bdbd._0x17fdf3,_0x4b70d6- -0x49,_0x4cf6cc-0x2b);}function _0x3b9223(_0x57cf3a,_0x5a36bb,_0x3a7b57,_0x38d462){return _0x2c5722(_0x38d462,_0x5a36bb-0x2e,_0x3a7b57- -_0x4263a2._0x15158d,_0x38d462-0x110);}return _0x4c4788[_0x2723df(_0x550ee0._0x33bc16,0x73,_0x550ee0._0x9bd0fc,0x20)][_0x3b9223(0x97,0x45,_0x550ee0._0x19b25b,0x1e)]>0x0||typeof _0x4c4788[_0x3b9223(_0x550ee0._0x2e2f51,0x19c,0xf5,0x44)]===_0x3b9223(-_0x550ee0._0x47050a,-_0x550ee0._0x2ca67a,-0x2b,_0x550ee0._0x476724);}function parseChatCompletionResponse(_0x41c1d7){const _0xf1802a={_0x2e570d:0x3ea,_0x5e3a38:0x36e,_0x36a610:0x16a,_0x36bd36:0xc6,_0x2b8520:0x1e0,_0x374e8c:0x184,_0x39659b:0x2f5,_0x24a624:0x26c,_0x12f895:0x1e2,_0x59d2ee:0x20b,_0x3c6a6e:0x1b5,_0x365995:0x3ec,_0x2de1ef:0x4a3,_0xad8c14:0x20b,_0x834bb6:0x1d9,_0x1b5060:0x4b3,_0x34dc16:0x2f5,_0x39f4bb:0x247,_0x50e70a:0x3b2,_0xfeb8bd:0x4dc,_0x10daff:0x4a2,_0x4172f4:0x55e,_0x3fad11:0x3f4,_0x149080:0x46f,_0x11e470:0x40c},_0x76b226={_0x1daa58:0x170,_0x52f755:0x14d,_0x46c152:0x45},_0x219231={_0x954dc6:0x1b,_0x32e5f1:0x32e},_0x3db820=[],_0x3148c7=[];let _0x968660=_0x5ba95a(0x36d,_0xf1802a._0x2e570d,0x3c4,_0xf1802a._0x5e3a38);for(const _0x481551 of _0x41c1d7[_0xd852ad(0x1b2,0x188,_0xf1802a._0x36a610,_0xf1802a._0x36bd36)]??[]){const _0x522777=_0x481551[_0xd852ad(0x2a0,0x26f,0x244,0x1e9)],_0xe80cf8=normalizeAssistantContent(_0x522777?.[_0xd852ad(_0xf1802a._0x2b8520,_0xf1802a._0x374e8c,0x14f,0x15f)]);_0xe80cf8[_0xd852ad(0x23a,_0xf1802a._0x39659b,0x337,_0xf1802a._0x24a624)]>0x0&&_0x3db820[_0xd852ad(_0xf1802a._0x12f895,_0xf1802a._0x59d2ee,0x157,0x185)](_0xe80cf8),_0x522777?.[_0xd852ad(0x1fd,_0xf1802a._0x3c6a6e,0x26f,0x17f)]&&_0x3148c7[_0x5ba95a(0x437,_0xf1802a._0x365995,0x477,_0xf1802a._0x2de1ef)](..._0x522777['tool_calls']),_0x481551[_0x5ba95a(0x54a,0x49e,0x526,0x564)]===_0xd852ad(_0xf1802a._0xad8c14,_0xf1802a._0x3c6a6e,_0xf1802a._0x834bb6,0x179)&&(_0x968660=_0x5ba95a(0x479,0x4a2,_0xf1802a._0x1b5060,0x449));}_0x3148c7[_0xd852ad(0x2fb,_0xf1802a._0x34dc16,_0xf1802a._0x39f4bb,_0xf1802a._0x50e70a)]>0x0&&(_0x968660=_0x5ba95a(_0xf1802a._0xfeb8bd,_0xf1802a._0x10daff,_0xf1802a._0x4172f4,0x3dc));function _0x5ba95a(_0x5a4168,_0x3831da,_0x15df0e,_0xa17129){return _0x2c5722(_0x15df0e,_0x3831da-_0x219231._0x954dc6,_0x3831da-_0x219231._0x32e5f1,_0xa17129-0xd9);}function _0xd852ad(_0x4c691a,_0x507583,_0x1fea30,_0x5d474d){return _0x2c5722(_0x5d474d,_0x507583-_0x76b226._0x1daa58,_0x507583-_0x76b226._0x52f755,_0x5d474d-_0x76b226._0x46c152);}return{'id':_0x41c1d7['id']??_0x5ba95a(0x36d,_0xf1802a._0x3fad11,_0xf1802a._0x149080,_0xf1802a._0x11e470)+Date['now'](),'content':createContentBlocks(_0x3db820['join'](''),_0x3148c7),'stopReason':_0x968660,'usage':createUsage(_0x41c1d7['usage'])};}function parseResponsesResponse(_0x2ffcad,_0x1c2c60){const _0x141be0={_0x31e6eb:0x294,_0x5eeed6:0x1f2,_0x3164b6:0x168,_0xcd4b8c:0x22a,_0x5a6d30:0x211,_0x38419d:0x495,_0x340ffb:0x4a5,_0x182ac3:0x494,_0x1684d7:0x4b8,_0x21b19c:0x1af,_0x5a1793:0x267,_0x4d1fb3:0xf0,_0x1e82d0:0xb4,_0x2fa574:0x470,_0x5c6113:0x3ea,_0x24042e:0x134,_0x506590:0x1f8,_0x36c1f8:0x321,_0x42a331:0x435,_0x503ce2:0x322,_0x113477:0x170,_0x3a67ec:0x15a,_0x347970:0x509,_0x204c57:0x1eb,_0x397126:0x32f,_0x1ee9f0:0x1ff,_0x58265a:0x577,_0x488f91:0x513,_0x33672a:0x4b8,_0x414b19:0x198,_0x4ba588:0x38f,_0x1de89f:0x370,_0x205d40:0x1ad,_0x35daea:0x301,_0x19a8e4:0x9d,_0x571187:0x82,_0x5115f0:0x3d3,_0x2d1c7e:0x2d7,_0x17364f:0x19e,_0x25c89d:0x11c,_0xa55a36:0x116,_0x24d20b:0x4a0,_0x17bde2:0x474,_0x2512fc:0x403,_0x199f76:0x471,_0x549d33:0x22c,_0xe21373:0x242,_0xcdbf2:0x21d,_0x2de25f:0x15b,_0x2e51ac:0xcf,_0x5cccec:0x3d0,_0x3febc8:0x3ac,_0xdc4364:0x3c8,_0x2c3f59:0x353,_0x2c607c:0x21d,_0x31b301:0x2d3,_0x413f53:0x1c5,_0x2cb26a:0x262,_0x1f3b73:0x28b,_0x41724d:0x219,_0xbe7ebe:0x2dc,_0x407a09:0x41c,_0x2ba328:0x399,_0x3baf56:0x351,_0x283209:0x428,_0x570673:0x4a8},_0x2528ec={_0x3714e1:0x2e8,_0x26b588:0x40},_0x3964ec={_0x59f2aa:0x5a1,_0x2966f0:0x108,_0x1ded1c:0x79},_0x39753c=[];function _0x4b8937(_0x33567a,_0x3c43ee,_0x1865a3,_0x2eeb97){return _0x949fe0(_0x33567a,_0x2eeb97-_0x3964ec._0x59f2aa,_0x1865a3-_0x3964ec._0x2966f0,_0x2eeb97-_0x3964ec._0x1ded1c);}for(const _0x58469d of _0x2ffcad[_0x3e9d22(-_0x141be0._0x31e6eb,-_0x141be0._0x5eeed6,-0x254,-0x13d)]??[]){if(isResponsesReasoningItem(_0x58469d)){if(isUserVisibleReasoning(_0x1c2c60)){const _0x39ae77=createOpenAiReasoningBlock(_0x58469d);hasVisibleOpenAiReasoning(_0x39ae77)&&_0x39753c[_0x3e9d22(-_0x141be0._0x3164b6,-_0x141be0._0xcd4b8c,-_0x141be0._0x5a6d30,-0x27f)](_0x39ae77);}continue;}if(isResponsesMessageItem(_0x58469d)){const _0x3b9882=normalizeResponsesMessageContent(_0x58469d['content']);_0x3b9882[_0x4b8937(0x451,0x50e,_0x141be0._0x38419d,_0x141be0._0x340ffb)]>0x0&&_0x39753c['push']({'type':'text','text':_0x3b9882});continue;}if(!isResponsesFunctionCallItem(_0x58469d)||typeof _0x58469d[_0x4b8937(0x49c,0x565,_0x141be0._0x182ac3,_0x141be0._0x1684d7)]!==_0x3e9d22(-0x1a2,-0x243,-_0x141be0._0x21b19c,-_0x141be0._0x5a1793)||_0x58469d[_0x3e9d22(-0x110,-0x12d,-_0x141be0._0x4d1fb3,-_0x141be0._0x1e82d0)][_0x4b8937(_0x141be0._0x2fa574,_0x141be0._0x5c6113,0x473,0x403)]()['length']===0x0||typeof _0x58469d[_0x3e9d22(-0xef,-_0x141be0._0x24042e,-0x197,-_0x141be0._0x506590)]!==_0x4b8937(_0x141be0._0x36c1f8,_0x141be0._0x42a331,_0x141be0._0x503ce2,0x3a2)||_0x58469d[_0x3e9d22(-0xcc,-0x134,-_0x141be0._0x113477,-_0x141be0._0x3a67ec)]['trim']()[_0x4b8937(0x480,_0x141be0._0x347970,0x457,0x4a5)]===0x0||typeof _0x58469d[_0x3e9d22(-0x1b5,-0x275,-0x2a9,-_0x141be0._0x204c57)]!==_0x4b8937(0x36a,0x34e,_0x141be0._0x397126,0x3a2))continue;_0x39753c[_0x4b8937(0x3ea,0x3c2,0x33f,0x3bb)]({'type':_0x3e9d22(-0xb3,-0x174,-_0x141be0._0x1ee9f0,-0x161),'id':_0x58469d[_0x4b8937(_0x141be0._0x58265a,_0x141be0._0x488f91,0x52b,_0x141be0._0x33672a)],'name':_0x58469d[_0x3e9d22(-_0x141be0._0x414b19,-0x134,-0x1c4,-0xd0)],'input':parseToolInput2(_0x58469d[_0x4b8937(0x2e1,_0x141be0._0x4ba588,0x314,_0x141be0._0x1de89f)])});}function _0x3e9d22(_0xc5b999,_0x141f89,_0xfff208,_0x1e09aa){return _0x2c5722(_0xfff208,_0x141f89-0xff,_0x141f89- -_0x2528ec._0x3714e1,_0x1e09aa-_0x2528ec._0x26b588);}return!_0x39753c['some'](_0x4e7c67=>_0x4e7c67['type']===_0x3e9d22(-0x100,-0x123,-0xcc,-0x159))&&_0x2ffcad[_0x3e9d22(-0x25e,-0x24a,-_0x141be0._0x205d40,-_0x141be0._0x35daea)]&&_0x39753c['push']({'type':_0x3e9d22(-_0x141be0._0x19a8e4,-0x123,-_0x141be0._0x571187,-0x67),'text':_0x2ffcad[_0x4b8937(0x39d,_0x141be0._0x5115f0,_0x141be0._0x2d1c7e,0x39b)]}),{'id':_0x2ffcad['id'],'content':_0x39753c,'stopReason':_0x39753c[_0x3e9d22(-0x162,-_0x141be0._0x17364f,-_0x141be0._0x25c89d,-_0x141be0._0xa55a36)](_0xf74642=>_0xf74642[_0x3e9d22(-0x1b9,-0x26b,-0x2bd,-0x1a8)]===_0x3e9d22(-0xf2,-0x174,-0x10b,-0x17e))?_0x4b8937(_0x141be0._0x24d20b,_0x141be0._0x17bde2,_0x141be0._0x2512fc,_0x141be0._0x199f76):_0x3e9d22(-0x272,-_0x141be0._0x549d33,-0x2e6,-0x199),'usage':{'inputTokens':_0x2ffcad[_0x3e9d22(-_0x141be0._0xe21373,-_0x141be0._0xcdbf2,-_0x141be0._0x414b19,-0x276)]?.[_0x3e9d22(-0x116,-_0x141be0._0x2de25f,-_0x141be0._0x2e51ac,-0x9b)]??0x0,'outputTokens':_0x2ffcad['usage']?.['output_tokens']??0x0,..._0x2ffcad[_0x4b8937(_0x141be0._0x5cccec,0x3d9,_0x141be0._0x3febc8,_0x141be0._0xdc4364)]?.[_0x3e9d22(-0x20b,-0x28b,-_0x141be0._0x2c3f59,-0x204)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x2ffcad[_0x3e9d22(-0x19b,-_0x141be0._0x2c607c,-_0x141be0._0x31b301,-_0x141be0._0x413f53)][_0x3e9d22(-_0x141be0._0x2cb26a,-_0x141be0._0x1f3b73,-_0x141be0._0x41724d,-0x328)][_0x4b8937(_0x141be0._0xbe7ebe,0x38c,_0x141be0._0x407a09,_0x141be0._0x2ba328)]}:{}},..._0x2ffcad['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x2ffcad[_0x4b8937(_0x141be0._0x3baf56,_0x141be0._0x283209,_0x141be0._0x570673,0x3f3)]),'openaiResponsesResponseId':_0x2ffcad['id']}}:{}};}function extractErrorMessage(_0x4c734b){const _0x27da1a={_0x32757a:0x31d,_0x5bac61:0x3bd,_0x4cfd45:0x29e,_0x431a0b:0x35b,_0x29ddc2:0x329,_0x4c5384:0x382,_0x3aabd7:0x329,_0x8dfe90:0x32d,_0x2d4d05:0x2a6,_0xe0f496:0x2e9,_0x2c6ba4:0x50,_0x1f3fa9:0xce,_0x2d4c52:0x35,_0x54a506:0x3a,_0x5cc6c2:0x3f,_0x1c3aca:0xc9,_0x29ddf6:0xaa,_0x3b88d8:0x6c,_0x30cd2e:0xc9,_0x5de00e:0x273,_0x3f0df:0x3b4,_0x1aeae6:0x277,_0x5d8648:0x31b,_0x3d5011:0x56,_0x557990:0xec,_0x59c745:0x63,_0x588735:0xee,_0x21ccff:0x27},_0x52adcb={_0x4ed73c:0x1d2},_0x37dcbc={_0x2ff763:0x4b9,_0x8667ba:0x1af,_0x146248:0xa2};function _0x3b8f54(_0x11640d,_0x769529,_0x43114a,_0xa5514e){return _0x949fe0(_0x43114a,_0xa5514e-_0x37dcbc._0x2ff763,_0x43114a-_0x37dcbc._0x8667ba,_0xa5514e-_0x37dcbc._0x146248);}if(_0x4c734b[_0x3b8f54(0x32d,_0x27da1a._0x32757a,0x44b,_0x27da1a._0x5bac61)]===0x0)return'';try{const _0x159096=JSON[_0x3b8f54(0x336,_0x27da1a._0x4cfd45,0x339,0x2a8)](_0x4c734b);if(typeof _0x159096[_0x3b8f54(0x2e2,0x272,_0x27da1a._0x431a0b,_0x27da1a._0x29ddc2)]?.['message']===_0x3b8f54(_0x27da1a._0x4c5384,0x346,0x200,0x2ba)&&_0x159096[_0x3b8f54(0x277,0x38d,0x39c,_0x27da1a._0x3aabd7)][_0x3b8f54(0x2b2,_0x27da1a._0x8dfe90,_0x27da1a._0x2d4d05,0x337)][_0x3b8f54(0x337,0x327,_0x27da1a._0xe0f496,0x31b)]()[_0x12ca10(0x100,0x18c,0x97,0xc9)]>0x0)return _0x159096[_0x12ca10(0x6b,-_0x27da1a._0x2c6ba4,_0x27da1a._0x1f3fa9,_0x27da1a._0x2d4c52)]['message'][_0x12ca10(_0x27da1a._0x54a506,_0x27da1a._0x5cc6c2,-0x88,0x27)]();if(typeof _0x159096[_0x12ca10(_0x27da1a._0x1c3aca,_0x27da1a._0x29ddf6,-0x54,0x43)]===_0x12ca10(-0xdf,-_0x27da1a._0x3b88d8,-_0x27da1a._0x30cd2e,-0x3a)&&_0x159096[_0x3b8f54(0x3c2,_0x27da1a._0x5de00e,0x2e1,0x337)][_0x3b8f54(_0x27da1a._0x3f0df,_0x27da1a._0x1aeae6,0x336,_0x27da1a._0x5d8648)]()['length']>0x0)return _0x159096[_0x12ca10(-0x86,-_0x27da1a._0x3d5011,_0x27da1a._0x557990,0x43)][_0x12ca10(-_0x27da1a._0x59c745,0xd0,_0x27da1a._0x588735,_0x27da1a._0x21ccff)]();}catch{return _0x4c734b;}function _0x12ca10(_0x3e59d9,_0x447fed,_0x225816,_0x31c48d){return _0x2c5722(_0x225816,_0x447fed-_0x52adcb._0x4ed73c,_0x31c48d- -0xdf,_0x31c48d-0x13e);}return _0x4c734b;}async function createOpenAiApiError(_0x381587){const _0x2b15a3={_0x2afd95:0x83,_0x149006:0x203,_0x51881d:0xc8,_0x2af612:0x52,_0x35d493:0x3b},_0x389003={_0x4f2f21:0x76},_0x2be872={_0x3b2916:0x13b,_0x1084ec:0x3d1},_0x3f416a=(await _0x381587[_0x1f8bc2(_0x2b15a3._0x2afd95,_0x2b15a3._0x149006,0x210,0x14f)]())['trim']();function _0x4147ca(_0x5acbcf,_0x38308a,_0x13d547,_0x329f04){return _0x2c5722(_0x329f04,_0x38308a-_0x2be872._0x3b2916,_0x13d547-_0x2be872._0x1084ec,_0x329f04-0x14a);}function _0x1f8bc2(_0x483f96,_0x5866e7,_0x4a04b2,_0x4fb94){return _0x2c5722(_0x483f96,_0x5866e7-0x184,_0x4fb94- -_0x389003._0x4f2f21,_0x4fb94-0xd);}const _0x2bb0c6=extractErrorMessage(_0x3f416a)||_0x381587[_0x4147ca(0x4ef,0x53f,0x4f9,0x580)]||_0x1f8bc2(0x10d,_0x2b15a3._0x51881d,0x71,_0x2b15a3._0x2af612)+_0x381587[_0x1f8bc2(_0x2b15a3._0x35d493,0x66,0x13a,0x7a)];return new OpenAiApiError(_0x381587[_0x1f8bc2(0x6a,0x123,-0x43,0x7a)],_0x3f416a,_0x2bb0c6);}function readSseData(_0x1c7568){const _0x5a7250={_0x3bab3c:0x1c3,_0xa8e93b:0xcf,_0xcc90b0:0x101,_0x5ca41f:0x1a0,_0x53c08b:0x43d,_0x45f9c7:0x3ec,_0x44e985:0x488},_0x524f04={_0xbd607d:0x149},_0x4ec030={_0x577fdc:0x337};function _0x3c9a53(_0x57547d,_0x138c35,_0x18faf1,_0x4cbb19){return _0x2c5722(_0x4cbb19,_0x138c35-0x1d,_0x138c35-_0x4ec030._0x577fdc,_0x4cbb19-0xb0);}function _0x3b3273(_0x2f7143,_0x3df2cd,_0x5902c3,_0x3107b9){return _0x949fe0(_0x2f7143,_0x5902c3-0xf2,_0x5902c3-_0x524f04._0xbd607d,_0x3107b9-0x61);}return _0x1c7568['split']('\x0a')['filter'](_0x55c440=>_0x55c440[_0x3b3273(0x1a,-0x62,-0x36,-0x62)](_0x3c9a53(0x35f,0x3a5,0x3f8,0x45c)))['map'](_0x10160f=>_0x10160f['slice'](0x5)[_0x3c9a53(0x3f2,0x451,0x49d,0x3d3)]())[_0x3b3273(-_0x5a7250._0x3bab3c,-_0x5a7250._0xa8e93b,-_0x5a7250._0xcc90b0,-_0x5a7250._0x5ca41f)]('\x0a')[_0x3c9a53(0x432,_0x5a7250._0x53c08b,_0x5a7250._0x45f9c7,_0x5a7250._0x44e985)]();}function readString(_0x41bbdc){const _0x3d2a89={_0x4b557e:0x155,_0x1ce5c2:0x1b3,_0x15057c:0xea,_0x1b771e:0x20b,_0x532bbb:0xb0,_0x1446eb:0x125,_0x7d8c19:0xa},_0x35d287={_0x1ab9ff:0x1dd,_0x416ce7:0x4aa,_0xe0adfe:0x1a8};function _0x48767c(_0x32650d,_0x30dddc,_0x1b8ed9,_0x59776b){return _0x2c5722(_0x59776b,_0x30dddc-_0x35d287._0x1ab9ff,_0x30dddc-_0x35d287._0x416ce7,_0x59776b-_0x35d287._0xe0adfe);}function _0x484eee(_0x2367d7,_0x3ba031,_0x170be6,_0x9487a4){return _0x2c5722(_0x2367d7,_0x3ba031-0x60,_0x3ba031- -0x258,_0x9487a4-0xb0);}return typeof _0x41bbdc===_0x484eee(-_0x3d2a89._0x4b557e,-_0x3d2a89._0x1ce5c2,-_0x3d2a89._0x15057c,-_0x3d2a89._0x1b771e)&&_0x41bbdc[_0x484eee(0x0,-_0x3d2a89._0x532bbb,-_0x3d2a89._0x1446eb,-_0x3d2a89._0x7d8c19)]>0x0?_0x41bbdc:void 0x0;}function extractReasoningDetails(_0x4018e1){const _0x360f3d={_0x447740:0xd,_0x42e1be:0xc9,_0x376187:0x1},_0x49349f={_0x124aa4:0x1a0,_0x486c76:0x16f,_0x5140ef:0x215,_0x495a39:0x144,_0x51057f:0x1fb,_0x4bfaa3:0x22d,_0x23a7de:0x223,_0x2c7130:0x115,_0x3f7561:0x1a4,_0x5aa67c:0x21c,_0x423ae6:0x201,_0x51b1ec:0x1a9,_0x46d7b0:0x1ff,_0x5d0769:0x243,_0x3fd005:0x29a,_0x2cbf0a:0x2df,_0x16e4ad:0x2ca},_0x186d08={_0x1da033:0x62,_0x50b34c:0x247},_0x47678e={_0x23eae3:0xc7,_0x3b52bd:0x211,_0xab8f94:0x182},_0x9533c6={_0x572f65:0x104,_0xa742bb:0x83};function _0x160ee6(_0x594bdf,_0x26c835,_0x1f869d,_0x3498ff){return _0x2c5722(_0x1f869d,_0x26c835-_0x9533c6._0x572f65,_0x3498ff- -0x31,_0x3498ff-_0x9533c6._0xa742bb);}function _0x2b6699(_0x5741ec,_0x4dc7ff,_0x45d707,_0x5dfbcc){return _0x2c5722(_0x5741ec,_0x4dc7ff-_0x47678e._0x23eae3,_0x45d707- -_0x47678e._0x3b52bd,_0x5dfbcc-_0x47678e._0xab8f94);}if(!Array[_0x2b6699(_0x360f3d._0x447740,-0xe3,-0x89,0x38)](_0x4018e1))return void 0x0;const _0x576327=_0x4018e1[_0x160ee6(-0xa1,_0x360f3d._0x42e1be,_0x360f3d._0x376187,0x8)](_0x760a12=>{const _0x1dcbb5={_0x3ff446:0x15};if(!_0x760a12||typeof _0x760a12!==_0x478a10(-_0x49349f._0x124aa4,-_0x49349f._0x486c76,-0x234,-_0x49349f._0x5140ef))return[];const _0x3644bd=_0x760a12;if(typeof _0x3644bd[_0x14e5a1(_0x49349f._0x495a39,_0x49349f._0x51057f,_0x49349f._0x4bfaa3,_0x49349f._0x23a7de)]==='string')return[_0x3644bd[_0x478a10(-0x123,-0x72,-_0x49349f._0x2c7130,-_0x49349f._0x3f7561)]];function _0x478a10(_0x1c344d,_0x6345c3,_0xb37e28,_0x216f5e){return _0x160ee6(_0x1c344d-0x14,_0x6345c3-_0x1dcbb5._0x3ff446,_0x216f5e,_0x1c344d- -0x2b7);}function _0x14e5a1(_0x12a6ed,_0x7df031,_0x140f30,_0x41e9ba){return _0x2b6699(_0x140f30,_0x7df031-_0x186d08._0x1da033,_0x7df031-_0x186d08._0x50b34c,_0x41e9ba-0x27);}if(typeof _0x3644bd[_0x478a10(-_0x49349f._0x5aa67c,-_0x49349f._0x423ae6,-_0x49349f._0x51b1ec,-_0x49349f._0x46d7b0)]===_0x478a10(-_0x49349f._0x5d0769,-_0x49349f._0x3fd005,-_0x49349f._0x2cbf0a,-_0x49349f._0x16e4ad))return[_0x3644bd['summary']];return[];});return _0x576327['length']>0x0?_0x576327['join'](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x45aef){const _0x4b3b49={_0x392c32:0x252,_0x340778:0x24b,_0x5ae6b8:0x63};function _0x1af104(_0x1dee1a,_0x5d0163,_0x2ab562,_0x16d24d){return _0x949fe0(_0x2ab562,_0x1dee1a-0x1a4,_0x2ab562-0x13c,_0x16d24d-0x1cb);}function _0x295b74(_0x2989bc,_0x87c289,_0x5b1b30,_0xf5803f){return _0x949fe0(_0x87c289,_0xf5803f-0x4c1,_0x5b1b30-0xdc,_0xf5803f-0x13c);}return extractReasoningDetails(_0x45aef?.[_0x295b74(0x2dc,_0x4b3b49._0x392c32,_0x4b3b49._0x340778,0x30c)])??readString(_0x45aef?.['reasoning'])??readString(_0x45aef?.['reasoning_content'])??readString(_0x45aef?.[_0x1af104(0x66,_0x4b3b49._0x5ae6b8,0x85,0xe5)])??'';}var OpenAiChatCompletionsStreamParser=class{['reasoningParts']=[];['request'];['textParts']=[];[_0x949fe0(-0xe3,-0xe0,-0xf0,-0x23)]=new Map();['toolCallOrder']=[];[_0x949fe0(-0x291,-0x221,-0x18f,-0x2c4)]=new Set();['responseId']='';[_0x949fe0(-0x21f,-0x198,-0x21f,-0x130)]=_0x2c5722(0x17a,0x12d,0xbc,0x13);[_0x2c5722(0x122,0x12a,0xcb,0x68)];constructor(_0x11bcc1){const _0x3cf4d9={_0x577a8d:0x535,_0x3f89c8:0x549,_0x2af213:0x4ec},_0x43d10b={_0x3b943f:0x68e,_0x5cb22d:0x162};function _0x170e06(_0x4fadf5,_0x4c85b2,_0x222716,_0x5b8519){return _0x949fe0(_0x5b8519,_0x4c85b2-_0x43d10b._0x3b943f,_0x222716-0x71,_0x5b8519-_0x43d10b._0x5cb22d);}this[_0x170e06(0x4ff,_0x3cf4d9._0x577a8d,_0x3cf4d9._0x3f89c8,_0x3cf4d9._0x2af213)]=_0x11bcc1;}[_0x949fe0(-0xc6,-0x170,-0x1f2,-0xd8)](_0x264b3e){const _0x246455={_0x2fbe8d:0x11b,_0x3390ac:0x63,_0x2ddf17:0x2e,_0xf68083:0xe8,_0x52db27:0xe8,_0xee2af6:0x4e,_0x3890ae:0x26,_0x257421:0x17,_0x270159:0xb0,_0x557a64:0xe,_0x799db0:0x16c,_0x511a68:0x94,_0x41e493:0xa9,_0x142ab1:0xeb,_0x4feecd:0x19},_0xfda6b8={_0x27fcf6:0x3d},_0x40d015={_0x3bb29c:0x1b4},_0x5852be=readSseData(_0x264b3e);if(_0x5852be[_0x247ff3(_0x246455._0x2fbe8d,0x139,0x120,0xe2)]===0x0||_0x5852be===_0x50dc64(-0x7e,-_0x246455._0x3390ac,-0x93,-_0x246455._0x2ddf17))return[];const _0x521485=JSON[_0x50dc64(-_0x246455._0xf68083,-_0x246455._0x52db27,-0xf0,-0x73)](_0x5852be);function _0x247ff3(_0x512683,_0x4e1f99,_0x32753e,_0x49245a){return _0x2c5722(_0x32753e,_0x4e1f99-0x79,_0x512683- -0x8d,_0x49245a-_0x40d015._0x3bb29c);}this[_0x50dc64(-0x17,-_0x246455._0xee2af6,-0x54,_0x246455._0x3890ae)]=_0x521485['id']??this[_0x50dc64(-_0x246455._0x257421,0xf,-0x5e,-0xb9)];function _0x50dc64(_0x1061df,_0x29ce2d,_0x370ce9,_0x341fb1){return _0x949fe0(_0x341fb1,_0x1061df-0x129,_0x370ce9-0x105,_0x341fb1-_0xfda6b8._0x27fcf6);}return this[_0x50dc64(-_0x246455._0x270159,-_0x246455._0x557a64,-_0x246455._0x799db0,-_0x246455._0x511a68)]=_0x521485['usage']??this[_0x50dc64(-_0x246455._0x270159,-_0x246455._0x41e493,-_0x246455._0x142ab1,-_0x246455._0x4feecd)],this['consumeEvent'](_0x521485);}['finish'](){const _0x5ec77b={_0x22a17a:0x0,_0x2a3db2:0x93,_0x5e4945:0xa2,_0x56987d:0x3e3,_0x1efd3b:0x96,_0x33a027:0x4,_0x4a28af:0x3af,_0x3539fb:0x2de,_0x4c5ac9:0xe7,_0x268c94:0x6e,_0x3897c3:0x17,_0x241562:0x2ec,_0x526b75:0x3b2,_0x541127:0xee,_0x1bfb42:0x15b,_0x5da6df:0x6f,_0x40c838:0x2d0,_0x7c6e15:0x378,_0x5d4b20:0x2f4,_0x50993b:0x2b3,_0x353a91:0x334,_0x50354a:0x3a3,_0x8f792:0xe3,_0x5519a6:0x83,_0x3f18e4:0x55},_0x2c7250={_0x121795:0x23b,_0x19bef9:0x28};function _0x47d7ba(_0x552bc2,_0x1e6122,_0x5b07cf,_0x4fdc32){return _0x2c5722(_0x4fdc32,_0x1e6122-0x1ee,_0x5b07cf- -0x76,_0x4fdc32-0x74);}this[_0x47d7ba(0xd1,_0x5ec77b._0x22a17a,_0x5ec77b._0x2a3db2,_0x5ec77b._0x5e4945)][_0x566197(_0x5ec77b._0x56987d,0x31e,0x38a,0x455)]>0x0&&(this[_0x47d7ba(0x135,0x13e,_0x5ec77b._0x1efd3b,-_0x5ec77b._0x33a027)]=_0x566197(_0x5ec77b._0x4a28af,0x347,0x302,0x42e));const _0x5ee4b2=isUserVisibleReasoning(this[_0x566197(0x386,0x3d5,0x3de,_0x5ec77b._0x3539fb)])?this[_0x47d7ba(_0x5ec77b._0x4c5ac9,0x119,_0x5ec77b._0x268c94,_0x5ec77b._0x3897c3)][_0x566197(_0x5ec77b._0x241562,0x334,0x352,_0x5ec77b._0x526b75)](''):void 0x0;function _0x566197(_0x54f271,_0x42d1da,_0x409876,_0x496670){return _0x2c5722(_0x409876,_0x42d1da-0x177,_0x54f271-_0x2c7250._0x121795,_0x496670-_0x2c7250._0x19bef9);}return{'id':this[_0x47d7ba(0x165,0x2b,_0x5ec77b._0x541127,_0x5ec77b._0x1bfb42)]||_0x47d7ba(0xdb,0x66,0x50,_0x5ec77b._0x5da6df)+Date[_0x566197(_0x5ec77b._0x40c838,_0x5ec77b._0x7c6e15,0x279,_0x5ec77b._0x5d4b20)](),'content':createContentBlocks(this['textParts'][_0x566197(_0x5ec77b._0x241562,0x344,_0x5ec77b._0x50993b,_0x5ec77b._0x353a91)](''),this[_0x566197(0x344,_0x5ec77b._0x50354a,0x34b,0x352)],_0x5ee4b2),'stopReason':this['stopReason'],'usage':createUsage(this[_0x47d7ba(_0x5ec77b._0x8f792,_0x5ec77b._0x5519a6,_0x5ec77b._0x3f18e4,0x1a)])};}['consumeEvent'](_0x467c78){const _0x3fbb71={_0x1c2814:0x58,_0x4d9897:0x289,_0x3596f4:0x1fa,_0x2394f1:0x207,_0x2ac620:0x261,_0x2a4691:0x279,_0x41f2aa:0x3b2,_0x3965b8:0x2f2,_0x1a4d75:0x32d,_0x8aba78:0xeb,_0x2dcdf6:0x21c,_0x5e2d58:0x1de,_0x592edc:0x18f,_0x58f586:0x8e,_0x4b7a93:0x117,_0x514dab:0x144,_0x32ee1e:0x484,_0x5dce69:0xe4,_0x4e8ce7:0x170,_0x2dc7e6:0x46c,_0x566d2f:0x463,_0x4b7f29:0x46b,_0x3aa255:0x1cd,_0x3de782:0x3fd,_0x258775:0x515,_0x53bc15:0x3c3,_0x40e962:0x26b,_0x3accf0:0x38c,_0x51a49f:0x41d,_0x256f9d:0x2e7,_0x2359e3:0x2b6,_0x4e1f41:0x394,_0x22b14a:0x2fe,_0x2193af:0x3a1,_0x1fc867:0x3fb,_0x5ad834:0x349,_0x2b5604:0x13e,_0x4d4c4c:0xe8,_0x63ad4d:0x14c,_0x22548c:0x464,_0x1a78e7:0xe3,_0x69d291:0x5c,_0x5801fe:0x237,_0x309284:0x1d0,_0x2b3cd4:0x413,_0x1ef26f:0x37d,_0x2f0e63:0x122,_0x16170c:0x11f,_0x5af4eb:0x21a,_0x14206b:0x285,_0x453e41:0x2a2,_0x5e238e:0x2a1,_0x6f823:0x20f,_0x4ca583:0x202,_0x5fe550:0x308,_0x4ce10a:0x29a,_0x5b45ab:0x28b,_0x16eba4:0x2dc,_0x6355c5:0x302,_0xb59169:0x343,_0x1a3290:0x42e,_0x1ebce2:0x276,_0x23a749:0x19f,_0xd62951:0x212,_0xa9ee9d:0x17a,_0x32764b:0x2ab,_0x3c982b:0x285,_0x465590:0x82,_0x11b901:0x135,_0x275420:0x2d7,_0x33d79c:0x279,_0x56fc24:0x341,_0x48f0c7:0x3ae,_0x4cda06:0x3cd,_0x41e48c:0x3aa,_0x1a5354:0xd0,_0x5d70f6:0x241,_0x45cc18:0x1bf,_0xaf2669:0x139,_0x314cb5:0x3da,_0x544683:0x3b8},_0x36eb93={_0xbc8f76:0x10d,_0x1862f1:0xd1,_0x109b05:0x13},_0x181547={_0x5f154a:0x2ce};function _0x5a5a6c(_0x36a156,_0x41ff6a,_0x32bc91,_0x2234d2){return _0x2c5722(_0x2234d2,_0x41ff6a-0xfa,_0x36a156-_0x181547._0x5f154a,_0x2234d2-0xe4);}function _0x3d0950(_0x1d0e69,_0x267079,_0x2e479b,_0xab4084){return _0x2c5722(_0x2e479b,_0x267079-_0x36eb93._0xbc8f76,_0xab4084-_0x36eb93._0x1862f1,_0xab4084-_0x36eb93._0x109b05);}const _0xf2e8c0=[];for(const _0x1556f9 of _0x467c78[_0x3d0950(_0x3fbb71._0x1c2814,0x170,0xca,0x10c)]??[]){const _0x1c54a8=_0x1556f9[_0x3d0950(_0x3fbb71._0x4d9897,_0x3fbb71._0x3596f4,0x220,0x210)],_0x449adf=extractChatCompletionReasoningDelta(_0x1c54a8);_0x449adf[_0x3d0950(_0x3fbb71._0x2394f1,0x1c2,_0x3fbb71._0x2ac620,_0x3fbb71._0x2a4691)]>0x0&&(this[_0x5a5a6c(_0x3fbb71._0x41f2aa,0x317,_0x3fbb71._0x3965b8,_0x3fbb71._0x1a4d75)][_0x3d0950(_0x3fbb71._0x8aba78,0x1b3,0x1f6,0x18f)](_0x449adf),isUserVisibleReasoning(this[_0x3d0950(0x2c3,0x21c,0x26d,_0x3fbb71._0x2dcdf6)])&&_0xf2e8c0[_0x3d0950(0x234,0x23d,_0x3fbb71._0x5e2d58,_0x3fbb71._0x592edc)]({'type':_0x3d0950(_0x3fbb71._0x58f586,_0x3fbb71._0x4b7a93,_0x3fbb71._0x514dab,0x11d),'contentIndex':0x0,'delta':_0x449adf,'itemId':(this[_0x5a5a6c(0x432,0x44b,0x370,0x457)]||'chatcmpl')+_0x5a5a6c(_0x3fbb71._0x32ee1e,0x497,0x439,0x53b),'outputIndex':0x0}));const _0x339810=typeof _0x1c54a8?.[_0x3d0950(_0x3fbb71._0x5dce69,_0x3fbb71._0x4e8ce7,0x13c,0x108)]==='string'?_0x1c54a8['content']:typeof _0x1c54a8?.[_0x5a5a6c(_0x3fbb71._0x2dc7e6,0x46c,_0x3fbb71._0x566d2f,_0x3fbb71._0x4b7f29)]===_0x3d0950(_0x3fbb71._0x3aa255,0x158,0x234,0x176)?_0x1c54a8[_0x5a5a6c(0x46c,_0x3fbb71._0x3de782,_0x3fbb71._0x258775,_0x3fbb71._0x53bc15)]:'';_0x339810['length']>0x0&&(this[_0x5a5a6c(0x325,_0x3fbb71._0x40e962,0x305,0x3b1)][_0x5a5a6c(_0x3fbb71._0x3accf0,_0x3fbb71._0x51a49f,0x2f3,_0x3fbb71._0x256f9d)](_0x339810),_0xf2e8c0['push']({'type':'content_delta','index':0x0,'text':_0x339810}));for(const _0x32be42 of _0x1c54a8?.['tool_calls']??[]){const _0x599fb3=_0x32be42[_0x5a5a6c(0x30c,_0x3fbb71._0x2359e3,_0x3fbb71._0x4e1f41,_0x3fbb71._0x22b14a)]??0x0;let _0x58e7de=this['toolCallsByIndex']['get'](_0x599fb3);!_0x58e7de&&(_0x58e7de={'id':_0x32be42['id']??_0x5a5a6c(_0x3fbb71._0x2193af,0x3fe,0x41b,_0x3fbb71._0x1fc867)+_0x599fb3,'type':_0x5a5a6c(_0x3fbb71._0x5ad834,0x363,0x3b1,0x2a2),'function':{'name':_0x32be42[_0x3d0950(_0x3fbb71._0x2b5604,0x104,_0x3fbb71._0x4d4c4c,_0x3fbb71._0x63ad4d)]?.[_0x5a5a6c(0x482,0x45c,_0x3fbb71._0x22548c,0x517)]??'','arguments':''}},this[_0x3d0950(0x279,0x1cd,0x35e,0x295)][_0x3d0950(_0x3fbb71._0x1a78e7,_0x3fbb71._0x69d291,0x52,0x11c)](_0x599fb3,_0x58e7de),this['toolCallOrder'][_0x3d0950(_0x3fbb71._0x5801fe,0x1d6,_0x3fbb71._0x309284,0x18f)](_0x58e7de));_0x32be42['id']&&(_0x58e7de['id']=_0x32be42['id']);_0x32be42[_0x5a5a6c(0x349,_0x3fbb71._0x2b3cd4,0x390,_0x3fbb71._0x1ef26f)]?.['name']&&(_0x58e7de[_0x3d0950(_0x3fbb71._0x2f0e63,0x1b2,_0x3fbb71._0x16170c,0x14c)][_0x5a5a6c(0x482,0x496,0x548,0x4a2)]=_0x32be42[_0x5a5a6c(0x349,0x2d7,0x348,0x2bd)][_0x3d0950(0x1c4,0x1d5,_0x3fbb71._0x5af4eb,_0x3fbb71._0x14206b)]);!this['toolUseStartEmitted'][_0x3d0950(0x1ba,_0x3fbb71._0x453e41,_0x3fbb71._0x5e238e,_0x3fbb71._0x6f823)](_0x599fb3)&&_0x58e7de['function'][_0x3d0950(_0x3fbb71._0x4ca583,_0x3fbb71._0x5fe550,_0x3fbb71._0x4ce10a,0x285)]['trim']()[_0x3d0950(_0x3fbb71._0x5b45ab,_0x3fbb71._0x16eba4,_0x3fbb71._0x6355c5,0x279)]>0x0&&(_0xf2e8c0[_0x5a5a6c(0x38c,_0x3fbb71._0xb59169,_0x3fbb71._0x1a3290,0x42c)]({'type':_0x3d0950(0x164,_0x3fbb71._0x1ebce2,_0x3fbb71._0x23a749,_0x3fbb71._0xd62951),'id':_0x58e7de['id'],'index':_0x599fb3,'name':_0x58e7de[_0x3d0950(0xec,0xb2,_0x3fbb71._0xa9ee9d,_0x3fbb71._0x63ad4d)][_0x3d0950(_0x3fbb71._0x32764b,0x323,0x1ec,_0x3fbb71._0x3c982b)]}),this['toolUseStartEmitted'][_0x3d0950(0x82,_0x3fbb71._0x465590,0x106,0x11a)](_0x599fb3));const _0xd61871=_0x32be42['function']?.[_0x3d0950(_0x3fbb71._0x11b901,0x16b,0xd0,0x144)]??'';_0xd61871[_0x3d0950(0x1f4,_0x3fbb71._0x275420,0x1d1,_0x3fbb71._0x33d79c)]>0x0&&(_0x58e7de[_0x5a5a6c(0x349,0x2df,0x28a,0x313)][_0x5a5a6c(_0x3fbb71._0x56fc24,_0x3fbb71._0x48f0c7,_0x3fbb71._0x4cda06,_0x3fbb71._0x41e48c)]+=_0xd61871,_0xf2e8c0[_0x3d0950(0x1ef,0x17c,_0x3fbb71._0x1a5354,0x18f)]({'type':_0x5a5a6c(0x40f,0x47a,0x3d5,0x4ae),'id':_0x58e7de['id'],'index':_0x599fb3,'inputDelta':_0xd61871}));}_0x1556f9[_0x3d0950(0x29e,0x2a8,0x1c4,_0x3fbb71._0x5d70f6)]===_0x3d0950(0x124,0x1c2,_0x3fbb71._0x45cc18,_0x3fbb71._0xaf2669)&&(this[_0x5a5a6c(_0x3fbb71._0x314cb5,0x394,0x3e2,_0x3fbb71._0x544683)]='tool_use');}return _0xf2e8c0;}},OpenAiResponsesStreamParser=class{[_0x949fe0(-0x166,-0x22b,-0x232,-0x2d1)]=new Map();['finalResponse'];[_0x2c5722(0x174,0x96,0xe1,0x12e)]=new Map();[_0x2c5722(0xb9,0x181,0x14c,0x129)]=new Map();[_0x2c5722(0x18d,0x1c6,0x1b9,0x1ae)]=new Map();['request'];[_0x949fe0(-0x196,-0x150,-0x9f,-0xe8)]=new Map();[_0x2c5722(0x1ed,0xe1,0x19d,0x242)]=new Map();constructor(_0x4cb693){const _0x4a2c2c={_0x4a78a1:0x4da,_0xd59d4e:0x467,_0xae61af:0x512},_0x3378c3={_0x11bb23:0x1e8,_0x38cb87:0xbd};function _0x1d1dec(_0x1ab070,_0x256a01,_0x1b234a,_0x4aebdf){return _0x949fe0(_0x4aebdf,_0x256a01-0x60d,_0x1b234a-_0x3378c3._0x11bb23,_0x4aebdf-_0x3378c3._0x38cb87);}this[_0x1d1dec(_0x4a2c2c._0x4a78a1,0x4b4,_0x4a2c2c._0xd59d4e,_0x4a2c2c._0xae61af)]=_0x4cb693;}[_0x949fe0(-0xa6,-0x170,-0x105,-0xb3)](_0x508624){const _0x10585b={_0x24d180:0x6d2,_0x56554b:0x58c,_0x52309a:0x613,_0x4f4ba1:0x5b0,_0x2c0ecc:0x66d,_0x5cad4e:0x656,_0x5adb1a:0x58a,_0x59ebe6:0x619,_0x5ae18a:0x679,_0x2ae597:0x5cf,_0x34abaf:0x5ed,_0x3f7aaf:0x63a,_0x54ebde:0x5f3,_0x4dbb7d:0x5b8,_0x126bac:0x60f,_0xdec83b:0x576,_0x3f0d9d:0x50f},_0x426205={_0x4024e4:0x1e8,_0x2e9109:0xec},_0x477848={_0x26a8d8:0x492},_0x1187e9=_0x508624[_0x4046f5(_0x10585b._0x24d180,0x58b,_0x10585b._0x56554b,_0x10585b._0x52309a)]('\x0a'),_0x3a7c41=_0x1187e9[_0x22395d(_0x10585b._0x4f4ba1,_0x10585b._0x2c0ecc,_0x10585b._0x5cad4e,0x5bf)](_0x1e9d4c=>_0x1e9d4c['startsWith']('event:'))?.['slice'](0x6)[_0x22395d(0x645,0x5c5,0x5ba,_0x10585b._0x5adb1a)]();function _0x4046f5(_0x40370c,_0x7d78af,_0x15eaa5,_0x534273){return _0x2c5722(_0x40370c,_0x7d78af-0xf7,_0x534273-_0x477848._0x26a8d8,_0x534273-0x129);}function _0x22395d(_0x21d221,_0x55fce2,_0x236166,_0x5c0858){return _0x949fe0(_0x21d221,_0x55fce2-0x763,_0x236166-_0x426205._0x4024e4,_0x5c0858-_0x426205._0x2e9109);}const _0x13d8e7=_0x1187e9[_0x22395d(_0x10585b._0x59ebe6,_0x10585b._0x5ae18a,0x65d,0x681)](_0xb2eb53=>_0xb2eb53[_0x4046f5(0x67f,0x60c,0x6a4,0x60e)](_0x22395d(0x5e5,0x52d,0x49b,0x4da)))['map'](_0x46b1f6=>_0x46b1f6['slice'](0x5)[_0x4046f5(0x5e4,0x651,0x509,0x5ac)]())[_0x22395d(0x530,0x570,_0x10585b._0x2ae597,_0x10585b._0x34abaf)]('\x0a')['trim']();if(_0x13d8e7[_0x4046f5(0x5d2,0x581,0x5c7,_0x10585b._0x3f7aaf)]===0x0||_0x13d8e7==='[DONE]')return[];const _0x20ad0d=JSON['parse'](_0x13d8e7);return this[_0x22395d(_0x10585b._0x54ebde,_0x10585b._0x4dbb7d,_0x10585b._0x126bac,0x5c3)](_0x3a7c41??String(_0x20ad0d[_0x4046f5(0x583,_0x10585b._0xdec83b,0x598,_0x10585b._0x3f0d9d)]??''),_0x20ad0d);}[_0x949fe0(-0x2d5,-0x250,-0x20e,-0x2c2)](_0x242d7c){const _0x3e6d80={_0x5c9d07:0x1a0,_0x4e2e01:0x250,_0x21d67b:0x156,_0x2c6516:0x1b1,_0x555253:0x21e,_0x538c58:0x2e0,_0x2a156e:0x1c6},_0x381bfa={_0x32b1c4:0xa5};function _0x114e7a(_0x39a7ef,_0x3a26b6,_0x4b88d6,_0x333fdc){return _0x949fe0(_0x4b88d6,_0x333fdc- -0x6,_0x4b88d6-0xd4,_0x333fdc-_0x381bfa._0x32b1c4);}function _0x25f0da(_0x57a7b0,_0x45170d,_0x5c4df2,_0x267f52){return _0x2c5722(_0x45170d,_0x45170d-0x12d,_0x57a7b0-0x1a1,_0x267f52-0x1b1);}return this[_0x114e7a(-_0x3e6d80._0x5c9d07,-_0x3e6d80._0x4e2e01,-_0x3e6d80._0x21d67b,-_0x3e6d80._0x2c6516)](String(_0x242d7c[_0x25f0da(_0x3e6d80._0x555253,_0x3e6d80._0x538c58,_0x3e6d80._0x2a156e,0x1f6)]??''),_0x242d7c);}[_0x2c5722(0x205,0x181,0x179,0x194)](){const _0xce2c79={_0x2bae57:0x256,_0x12a490:0x406,_0x572a95:0x2e4,_0x17f1de:0x24e,_0x50eda0:0x292,_0x23de0c:0x294,_0x5bd498:0x26d},_0x482ba2={_0x4d9133:0x14e,_0x4ab8dd:0x3c},_0xe277f3={_0xf8bfdd:0x4ab,_0x17064d:0x133,_0x4d0a88:0xba},_0x51de65=this['finalResponse']??{'id':_0x46b678(0x2bb,0x269,_0xce2c79._0x2bae57,0x287)+Date[_0x19d2f5(0x414,_0xce2c79._0x12a490,0x3b4,0x413)](),'object':_0x46b678(0x212,_0xce2c79._0x572a95,_0xce2c79._0x17f1de,_0xce2c79._0x50eda0),'status':'completed','output':this[_0x46b678(_0xce2c79._0x23de0c,0x2b6,0x283,_0xce2c79._0x5bd498)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x46b678(_0x3f2e6c,_0x4c92c3,_0x5be88d,_0x30f8a0){return _0x949fe0(_0x4c92c3,_0x30f8a0-_0xe277f3._0xf8bfdd,_0x5be88d-_0xe277f3._0x17064d,_0x30f8a0-_0xe277f3._0x4d0a88);}function _0x19d2f5(_0x4c5097,_0x5237e3,_0x54007e,_0x4aa310){return _0x949fe0(_0x4c5097,_0x54007e-0x5c3,_0x54007e-_0x482ba2._0x4d9133,_0x4aa310-_0x482ba2._0x4ab8dd);}return parseResponsesResponse(_0x51de65,this['request']);}['isDone'](){return this['finalResponse']!==void 0x0;}[_0x2c5722(0x103,0x167,0xf9,0xf2)](_0x50e163,_0x4df759){const _0x419677={_0x31a2ef:0x4d2,_0x1a1bb0:0x58b,_0x1b3792:0x464,_0x48e4cd:0x512,_0x396712:0x3db,_0x20cb60:0x10d,_0x5a7483:0x537,_0x55c39d:0x4ee,_0xd8bd9e:0x479,_0x8590a2:0xa7,_0x4a48a5:0x11e,_0x1013bc:0xd9,_0x53f240:0x42,_0x5f5dd6:0x62,_0x32eb71:0x37,_0x3f22f2:0x2e,_0x420fea:0x4ad,_0x455d5e:0x3f0,_0x55d490:0x497,_0xfadfe:0x4e6,_0x1b8e67:0x506,_0x488c15:0x4e5,_0x34d824:0x16d,_0x2db029:0xa9,_0x2f3e6a:0x8d,_0x4ad8f5:0x183,_0x4e8473:0x135,_0x33b320:0x10e,_0x5aaf8e:0x8a,_0x5a5c04:0x1d4,_0x57880d:0x51a,_0x41075e:0x3da,_0x26a254:0x408,_0x1bcd64:0x37e,_0x57499e:0x4b,_0x6e2a7d:0xed,_0x4db5fa:0x32,_0x1ae12d:0x8a,_0x2a33a2:0x470,_0x594461:0x12d,_0x45387b:0x54a,_0x2fa43d:0x5d8,_0x380d42:0x4b0,_0x2143c8:0x54a,_0x348eaf:0x4d0,_0x4f277e:0x566,_0x114dc8:0x496,_0x2cd365:0x572,_0xbf645:0x78,_0x3dfddc:0xf,_0x34a4b9:0x13e,_0x460e59:0x100,_0x548f27:0x4ec,_0x587202:0x3da,_0x2aad01:0x3e2,_0x1ee705:0x5c,_0x46f2fa:0x95,_0x1e0bfd:0xd8,_0x25ab71:0x141,_0x3e5f4d:0x434,_0x4d1148:0x43e,_0x28e6c1:0x48c,_0x55e6c9:0x54a,_0x57022b:0x4e1,_0x46916c:0x47e,_0x3ddd3c:0x424,_0x321fbe:0x470,_0x5d6549:0x46b,_0x2e2412:0x4cc,_0x288bf2:0x596,_0x191474:0x431,_0x5f59:0x453,_0x34b352:0x8,_0x2a6fb2:0xb3,_0x38e6c9:0x78,_0x272515:0x86,_0x47c36f:0x92,_0x2c3a06:0xe3,_0x3fd26c:0x5da,_0x566bc9:0x52c,_0x466af7:0x5f6,_0x18cfb2:0x551,_0x42894d:0x46e,_0x4852b6:0x66,_0x16a47c:0x98,_0x5ad38e:0x7f,_0x13690e:0x1f,_0x397a8f:0xdc,_0x1b7137:0x34,_0x1bd411:0x73,_0x40c108:0x4a8,_0x416131:0x5b1,_0x17123d:0x56b,_0x2b2145:0x4f3,_0x36d8c9:0x3,_0x49c65a:0x11d,_0x2294f8:0x9a,_0x5c4f0e:0x377,_0x407c2f:0x3c3,_0x19768d:0x42f,_0x516867:0x4cd,_0x38a00a:0x59a,_0x117887:0x8,_0x52ba66:0x5b,_0x4b2441:0x39,_0x3ce090:0xb6,_0xcfa1d:0x1ac,_0x1c8d37:0x138,_0x18f6f9:0x54e,_0x47ebe5:0xbf,_0x521cb2:0x4f7,_0x1fbc37:0x8c,_0x5f54a6:0x496,_0x515173:0x487,_0x801697:0x4c0,_0x3c210c:0x4b8,_0x2b46d6:0x446,_0x38031b:0x36,_0x2b3368:0x27,_0x20fdb5:0x42b,_0x175b2e:0xa5,_0x2dc5ac:0x22,_0x2b3426:0xb,_0x1f5b87:0x59,_0x341436:0x40c,_0xb2feb2:0x356,_0x1ffbc1:0xd1,_0xfa7993:0x82,_0x1675a3:0x470,_0x37e901:0x4a5,_0x29a6e6:0x5e7,_0x46f743:0x59f,_0x2f7ab4:0x3f8,_0x272f1b:0x39a,_0x4b6141:0x422,_0x55f1fb:0x402,_0x2a1baa:0x3a,_0x504bbd:0x96,_0x53d1c7:0xbc,_0x224dcd:0x30,_0x2f8223:0x97,_0x421e09:0x47,_0x3fbc35:0x52,_0x3a61da:0x54f,_0x5e7a07:0x4d5,_0x88a888:0x4b6,_0x15050c:0x12,_0x53ef3a:0x7c,_0x327133:0x49a,_0x2bb438:0x4cf,_0x1bb907:0x4b5,_0xaf95f6:0x1f,_0x4ae741:0xc9,_0x4927ed:0x4be,_0x16d6fd:0x537,_0x32ca0c:0x59c,_0x5761c8:0x1f,_0x2c48c1:0x6a,_0x1510b2:0x30,_0x25cd9e:0x1b,_0x366f19:0x17,_0x7e6bd9:0xcc,_0x3b10bc:0x20,_0x211abf:0x5c5,_0x460e10:0x4fc,_0x117195:0x3f4,_0x3b0113:0x4a5,_0xd930ae:0x2a,_0x2aaf25:0x7a,_0x2bde14:0xae,_0x6a25f4:0x19,_0x55a9f:0x5,_0x4fc193:0x118,_0x112fb7:0x1e2,_0x360e53:0x1b9,_0x15637c:0x6d,_0x1ed8c8:0x1cc,_0x5cbb33:0xe5,_0x2db61f:0xdd,_0x35bc08:0x6f,_0x1b3d8e:0x554,_0x544293:0x56d,_0x52c3cc:0x4ce,_0x3864cb:0xcd,_0x42757c:0x58,_0x5b5fb0:0xc,_0x19920e:0x73,_0x504908:0x41f,_0x3ef11f:0x478,_0x3f7b2b:0x381,_0x3d6ed0:0x5b0,_0x4fb1dd:0x506,_0x5e2807:0x125,_0x2840f7:0x4e5,_0x3f19e7:0x48f,_0x1aa593:0x4c5,_0x27cbb8:0x426,_0x12fd64:0x24,_0x19fb9f:0x7,_0x2ec509:0x12,_0x572ad7:0xa,_0xf34f60:0x110,_0x1637ea:0x44e,_0x5bf1d9:0x3f6,_0x2d6104:0x3fa,_0x4d38ed:0x493,_0xd8e6f5:0x46e,_0x7e7d8a:0x506,_0x437fd8:0x4c3,_0x44a99a:0x463,_0x55cf23:0x4e5,_0x1d4694:0x4c4,_0x17d526:0x535,_0x19e856:0x4db,_0x4f68b2:0x4d4,_0x1b55e4:0xec,_0x3751cf:0xf5,_0x2c927e:0xa9,_0x2ba916:0xa4,_0x1b3c86:0xa9,_0x371e43:0x94,_0x7b82a:0xff,_0x3f7058:0x8b,_0x482cde:0x45c,_0x2bd55f:0x460,_0x345471:0x4ec,_0x1d1841:0xdc,_0x3d75d:0x5bc,_0x729cd4:0x489,_0x289399:0x595,_0x4abeab:0x12,_0x23c0f3:0xaf,_0x4e26f6:0xce,_0x8bf2ec:0x50,_0x50cdb6:0x3d,_0x55a68a:0x97,_0x267bd7:0x4c,_0x29f5dd:0xc0,_0x4767d4:0x92,_0x5d41ca:0x506,_0x2c3244:0x8f,_0x5e41fd:0x51,_0x41ccd6:0x96,_0x5b240f:0xfc,_0x32f6b9:0x9f,_0x3e43b:0x14a,_0xb349f4:0x4ff,_0x3d71a6:0x4f7,_0x3728e3:0x2c,_0x1c44d9:0x7e,_0x2eb3d4:0xe7,_0x50186d:0x23,_0x9a4301:0x80,_0x545be0:0x121,_0x270cd2:0xc8,_0x4e7ab1:0xb0,_0x7bbeff:0x134,_0xa42983:0x355,_0x1fa39c:0x47b,_0x297e22:0x3ca,_0x40cf39:0x3df,_0x527ab2:0x4b2,_0x1408c6:0x61,_0x898dfc:0x5b,_0x2ccda7:0xca,_0x2dce24:0x115,_0x557677:0x21,_0x1ff368:0x4a8,_0xea335e:0x55b,_0x37f7e0:0x4db,_0x20ddb8:0x55a,_0x16bd9f:0x11f,_0x395bc7:0x64,_0x146463:0xa9,_0x3653ce:0x170,_0x49f2f3:0x132,_0x2e8817:0x91,_0x1b9d97:0xbd,_0x1a184b:0xd4,_0x1812ab:0x93,_0x759fa2:0x24,_0xb996af:0x510,_0x50a8fc:0x4bb,_0x4d0f68:0x5bf,_0x3cdf6d:0x2,_0xb3797c:0x5a,_0x5d23b5:0x41,_0x2d598c:0x3da,_0x4fb93d:0x39e,_0x4a58f5:0x15,_0x46e0ed:0x64,_0x36b6bc:0x35,_0x22764c:0x359,_0x132cb2:0x67,_0x735d27:0x9f,_0x14b5fb:0x41c,_0x2cead7:0x4b1,_0x3db994:0x67,_0x3e140e:0x54f,_0x3ae82a:0x58e,_0x5dbdd6:0x117,_0xf3ce5d:0x44,_0x538120:0x4b1,_0x425910:0x1c,_0x53f0b6:0x91},_0x214d44={_0x14d2e8:0x1f7},_0x5196e1={_0x5f09ba:0x106};function _0x825a01(_0x7c6f1,_0x55108e,_0x5f4899,_0x5943f8){return _0x949fe0(_0x5943f8,_0x55108e-0x633,_0x5f4899-_0x5196e1._0x5f09ba,_0x5943f8-0x42);}switch(_0x50e163){case _0x825a01(0x49b,0x467,0x52c,_0x419677._0x31a2ef):{const _0x353ede=typeof _0x4df759['output_index']===_0x825a01(_0x419677._0x1a1bb0,0x4e1,_0x419677._0x1b3792,_0x419677._0x48e4cd)?_0x4df759['output_index']:0x0,_0x1b1a97=typeof _0x4df759['delta']===_0x825a01(0x42a,0x434,0x4d0,_0x419677._0x396712)?_0x4df759[_0x1fcd5e(0x92,0x55,_0x419677._0x20cb60,-0x15)]:'';if(_0x1b1a97[_0x825a01(0x5ca,_0x419677._0x5a7483,_0x419677._0x55c39d,_0x419677._0xd8bd9e)]>0x0){const _0x13a33d=this[_0x1fcd5e(_0x419677._0x8590a2,_0x419677._0x4a48a5,_0x419677._0x1013bc,_0x419677._0x53f240)]['get'](_0x353ede)??[];return _0x13a33d['push'](_0x1b1a97),this['responseTextParts'][_0x1fcd5e(-_0x419677._0x5f5dd6,_0x419677._0x32eb71,_0x419677._0x3f22f2,-0xc)](_0x353ede,_0x13a33d),[{'type':_0x825a01(_0x419677._0x420fea,_0x419677._0x455d5e,_0x419677._0x55d490,0x38d),'index':_0x353ede,'text':_0x1b1a97}];}break;}case _0x825a01(0x50a,0x465,_0x419677._0xfadfe,0x51b):{const _0x40bae0=typeof _0x4df759[_0x825a01(_0x419677._0x1b8e67,_0x419677._0x488c15,0x514,0x4f7)]===_0x1fcd5e(0xa5,0x107,0x143,_0x419677._0x34d824)?_0x4df759[_0x1fcd5e(_0x419677._0x2db029,_0x419677._0x2f3e6a,0xd5,0x66)]:void 0x0,_0x520d6a=_0x4df759['item'];if(_0x520d6a?.['type']===_0x1fcd5e(0xd1,0x17f,_0x419677._0x4ad8f5,_0x419677._0x4e8473)&&_0x520d6a[_0x1fcd5e(_0x419677._0x33b320,_0x419677._0x5aaf8e,0xbc,_0x419677._0x5a5c04)]&&_0x520d6a['name'])return this[_0x825a01(0x5a0,0x52c,_0x419677._0x57880d,0x572)][_0x825a01(0x3a0,_0x419677._0x41075e,_0x419677._0x26a254,_0x419677._0x1bcd64)](_0x520d6a[_0x1fcd5e(_0x419677._0x33b320,_0x419677._0x57499e,0x1ae,_0x419677._0x6e2a7d)],{'id':_0x520d6a['call_id'],'type':_0x1fcd5e(-_0x419677._0x4db5fa,-0x31,0x8d,-_0x419677._0x1ae12d),'function':{'name':_0x520d6a['name'],'arguments':''}}),_0x40bae0!==void 0x0&&(this[_0x825a01(0x537,_0x419677._0x2a33a2,0x511,0x44c)][_0x1fcd5e(-0x62,-0x93,_0x419677._0x4db5fa,-_0x419677._0x594461)](_0x40bae0,_0x520d6a[_0x825a01(0x4fe,_0x419677._0x45387b,_0x419677._0x2fa43d,0x491)]),this[_0x1fcd5e(-0x34,-0x1,0x60,-0xe1)][_0x825a01(0x3ed,0x3da,0x337,0x49b)](_0x520d6a[_0x825a01(_0x419677._0x380d42,_0x419677._0x2143c8,0x542,0x539)],_0x40bae0)),[{'type':_0x825a01(0x42e,_0x419677._0x348eaf,_0x419677._0x4f277e,0x517),'id':_0x520d6a[_0x825a01(_0x419677._0x114dc8,0x54a,_0x419677._0x2cd365,0x5ec)],'index':_0x40bae0??0x0,'name':_0x520d6a['name']}];if(_0x520d6a?.['type']===_0x1fcd5e(_0x419677._0xbf645,_0x419677._0x3dfddc,_0x419677._0x34a4b9,_0x419677._0x460e59)&&_0x520d6a['id']){const _0xe57d7d=this[_0x825a01(_0x419677._0x548f27,0x4ec,0x569,0x58e)](_0x520d6a['id'],_0x40bae0);_0x40bae0!==void 0x0&&this['outputIndexToReasoningId'][_0x825a01(0x460,_0x419677._0x587202,0x490,_0x419677._0x2aad01)](_0x40bae0,_0xe57d7d['id']);}break;}case _0x1fcd5e(-0x14,_0x419677._0x1ee705,-0xa4,-_0x419677._0x46f2fa):{const _0x2b89d8=typeof _0x4df759[_0x1fcd5e(0x10e,0x91,_0x419677._0x1e0bfd,_0x419677._0x25ab71)]===_0x825a01(0x3c3,_0x419677._0x3e5f4d,_0x419677._0x4d1148,0x4b4)?_0x4df759[_0x825a01(_0x419677._0x28e6c1,_0x419677._0x55e6c9,0x575,0x50a)]:typeof _0x4df759['output_index']===_0x825a01(0x58b,_0x419677._0x57022b,_0x419677._0x46916c,_0x419677._0x3ddd3c)?this[_0x825a01(0x3ff,_0x419677._0x321fbe,_0x419677._0x5d6549,0x46b)][_0x825a01(_0x419677._0x2e2412,0x4f7,_0x419677._0x288bf2,0x4b7)](_0x4df759[_0x825a01(_0x419677._0x191474,_0x419677._0x488c15,_0x419677._0x5f59,0x41a)]):void 0x0,_0x1fec13=typeof _0x4df759['delta']===_0x1fcd5e(-_0x419677._0x34b352,_0x419677._0x2a6fb2,-_0x419677._0x38e6c9,_0x419677._0x272515)?_0x4df759[_0x1fcd5e(_0x419677._0x47c36f,0x6c,0xfa,_0x419677._0x2c3a06)]:'',_0x292fe4=_0x2b89d8?this[_0x825a01(_0x419677._0x3fd26c,_0x419677._0x566bc9,0x54b,_0x419677._0x466af7)][_0x825a01(_0x419677._0x18cfb2,0x4f7,_0x419677._0x42894d,0x4a8)](_0x2b89d8):void 0x0;if(_0x292fe4&&_0x1fec13['length']>0x0)return _0x292fe4[_0x1fcd5e(-0x32,-_0x419677._0x4852b6,_0x419677._0x16a47c,-0x98)][_0x1fcd5e(-0x3a,-0x97,-_0x419677._0x5ad38e,-_0x419677._0x13690e)]+=_0x1fec13,[{'type':_0x1fcd5e(0x94,0x12c,0x141,_0x419677._0x397a8f),'id':_0x292fe4['id'],'index':this[_0x1fcd5e(-_0x419677._0x1b7137,0x42,-_0x419677._0x1bd411,-0x9d)][_0x825a01(_0x419677._0x40c108,0x4f7,_0x419677._0x416131,0x46f)](_0x292fe4['id'])??(typeof _0x4df759[_0x825a01(0x4e8,0x4e5,_0x419677._0x17123d,_0x419677._0x2b2145)]===_0x1fcd5e(0xa5,_0x419677._0x36d8c9,_0x419677._0x49c65a,_0x419677._0x2294f8)?_0x4df759['output_index']:0x0),'inputDelta':_0x1fec13}];break;}case _0x825a01(_0x419677._0x5c4f0e,_0x419677._0x407c2f,_0x419677._0x19768d,0x452):{const _0x1b7739=typeof _0x4df759[_0x825a01(_0x419677._0x516867,_0x419677._0x2143c8,_0x419677._0x38a00a,0x505)]===_0x1fcd5e(-_0x419677._0x117887,-_0x419677._0x52ba66,-_0x419677._0x4b2441,_0x419677._0x3ce090)?_0x4df759[_0x1fcd5e(0x10e,_0x419677._0xcfa1d,0x97,0x1ca)]:typeof _0x4df759[_0x1fcd5e(0xa9,0x15c,_0x419677._0x1c8d37,0x130)]===_0x825a01(_0x419677._0x18f6f9,0x4e1,0x52c,0x57c)?this[_0x1fcd5e(0x34,_0x419677._0x47ebe5,0xde,0x6)][_0x825a01(0x4c1,_0x419677._0x521cb2,0x564,0x4ad)](_0x4df759[_0x1fcd5e(0xa9,_0x419677._0x1fbc37,-0xd,0x12b)]):void 0x0,_0x39604d=_0x1b7739?this[_0x825a01(_0x419677._0x5f54a6,_0x419677._0x566bc9,0x47a,_0x419677._0x515173)][_0x825a01(_0x419677._0x801697,_0x419677._0x521cb2,_0x419677._0x3c210c,_0x419677._0x516867)](_0x1b7739):void 0x0;_0x39604d&&typeof _0x4df759['arguments']==='string'&&(_0x39604d['function'][_0x825a01(0x35f,0x402,0x370,0x3cc)]=_0x4df759[_0x825a01(0x487,0x402,0x470,_0x419677._0x2b46d6)]);break;}case _0x1fcd5e(_0x419677._0x38031b,-0x8d,0x2,_0x419677._0x2b3368):{const _0xc7299d=typeof _0x4df759[_0x825a01(0x579,_0x419677._0x488c15,_0x419677._0x20fdb5,0x593)]===_0x1fcd5e(_0x419677._0x175b2e,0x156,-_0x419677._0x2dc5ac,-_0x419677._0x2b3426)?_0x4df759[_0x1fcd5e(_0x419677._0x2db029,0x75,_0x419677._0x1f5b87,0x18)]:void 0x0,_0x3a38ae=_0x4df759['item'];if(_0x3a38ae?.[_0x825a01(0x4b5,_0x419677._0x341436,_0x419677._0xb2feb2,0x383)]===_0x1fcd5e(_0x419677._0x1ffbc1,0x8a,0x168,0x15b)){const _0x255f64=_0x3a38ae[_0x1fcd5e(0x10e,0x7e,_0x419677._0xfa7993,0xc7)]??(_0xc7299d!==void 0x0?this[_0x825a01(0x4cc,_0x419677._0x1675a3,0x4cc,_0x419677._0x37e901)]['get'](_0xc7299d):void 0x0),_0x3e0318=_0x255f64?this[_0x825a01(_0x419677._0x29a6e6,_0x419677._0x566bc9,0x472,0x541)][_0x825a01(0x530,0x4f7,_0x419677._0x46f743,0x46f)](_0x255f64):void 0x0;_0x3e0318&&typeof _0x3a38ae[_0x825a01(_0x419677._0x2f7ab4,0x402,0x35e,0x48f)]===_0x825a01(_0x419677._0x272f1b,0x434,_0x419677._0x4b6141,0x459)&&(_0x3e0318['function'][_0x825a01(0x3a2,_0x419677._0x55f1fb,0x4af,0x382)]=_0x3a38ae[_0x1fcd5e(-_0x419677._0x2a1baa,-_0x419677._0x504bbd,-0x9,-_0x419677._0x53d1c7)]);break;}if(_0x3a38ae?.[_0x1fcd5e(-_0x419677._0x224dcd,-_0x419677._0x2f8223,-_0x419677._0x421e09,0x81)]===_0x1fcd5e(_0x419677._0x38e6c9,0x66,0xc0,_0x419677._0x3fbc35)&&_0x3a38ae['id']){const _0x323e83=this[_0x825a01(_0x419677._0x3a61da,0x4ec,_0x419677._0x5e7a07,0x436)](_0x3a38ae['id'],_0xc7299d);typeof _0x3a38ae[_0x825a01(0x424,_0x419677._0x88a888,0x575,0x453)]==='string'&&(_0x323e83[_0x1fcd5e(-0x4f,_0x419677._0x15050c,-_0x419677._0x47ebe5,_0x419677._0x53ef3a)]=_0x3a38ae[_0x825a01(0x4e0,0x4b6,0x507,_0x419677._0x327133)]);if(Array[_0x825a01(_0x419677._0x2bb438,0x517,0x4fc,_0x419677._0x1bb907)](_0x3a38ae[_0x1fcd5e(_0x419677._0xaf95f6,0x44,-0xa5,0x5c)]))for(let _0x34b629=0x0;_0x34b629<_0x3a38ae[_0x1fcd5e(_0x419677._0xaf95f6,_0x419677._0x4ae741,-0x96,0x20)][_0x825a01(_0x419677._0x4927ed,_0x419677._0x16d6fd,_0x419677._0x32ca0c,0x575)];_0x34b629+=0x1){const _0x141186=_0x3a38ae[_0x1fcd5e(_0x419677._0x5761c8,-0x1b,0xd4,-_0x419677._0x2c48c1)][_0x34b629];_0x141186[_0x1fcd5e(-_0x419677._0x1510b2,_0x419677._0x25cd9e,0x68,0x21)]===_0x1fcd5e(_0x419677._0x1510b2,-_0x419677._0x366f19,_0x419677._0x7e6bd9,_0x419677._0x3b10bc)&&typeof _0x141186[_0x825a01(0x50b,0x554,_0x419677._0x211abf,_0x419677._0x460e10)]===_0x825a01(_0x419677._0x117195,0x434,_0x419677._0x3b0113,0x4ee)&&_0x323e83[_0x1fcd5e(_0x419677._0x15050c,-_0x419677._0xd930ae,_0x419677._0x2aaf25,-_0x419677._0x2bde14)][_0x1fcd5e(-_0x419677._0x5f5dd6,-0x63,_0x419677._0x6a25f4,-_0x419677._0x55a9f)](_0x34b629,_0x141186[_0x1fcd5e(_0x419677._0x4fc193,_0x419677._0x112fb7,_0x419677._0x360e53,0x74)]);}typeof _0x3a38ae[_0x1fcd5e(0x118,_0x419677._0x15637c,_0x419677._0x1ed8c8,_0x419677._0x5cbb33)]==='string'&&_0x323e83['textByIndex'][_0x1fcd5e(-0x62,-_0x419677._0x2db61f,-_0x419677._0x35bc08,-0x5c)](0x0,_0x3a38ae[_0x825a01(0x5c9,_0x419677._0x1b3d8e,_0x419677._0x544293,0x5ec)]);}break;}case'response.reasoning_summary_text.delta':{const _0x38055f=typeof _0x4df759[_0x825a01(0x588,_0x419677._0x52c3cc,0x4eb,0x44a)]==='string'?_0x4df759[_0x1fcd5e(0x92,0x6e,0x103,_0x419677._0x3864cb)]:'',_0x3b53c9=typeof _0x4df759[_0x1fcd5e(0xca,_0x419677._0x42757c,_0x419677._0x5b5fb0,_0x419677._0x19920e)]===_0x825a01(_0x419677._0x504908,0x434,_0x419677._0x3ef11f,_0x419677._0x3f7b2b)?_0x4df759[_0x825a01(_0x419677._0x3d6ed0,_0x419677._0x4fb1dd,0x5ae,0x5c5)]:typeof _0x4df759['output_index']==='number'?this['outputIndexToReasoningId']['get'](_0x4df759['output_index']):void 0x0,_0x59779c=typeof _0x4df759['output_index']===_0x1fcd5e(0xa5,0x68,0x9b,_0x419677._0x5e2807)?_0x4df759[_0x825a01(0x42a,_0x419677._0x2840f7,0x4b3,0x4a8)]:0x0,_0x1445ff=typeof _0x4df759['summary_index']===_0x825a01(_0x419677._0x3f19e7,0x4e1,_0x419677._0x1aa593,_0x419677._0x27cbb8)?_0x4df759[_0x1fcd5e(_0x419677._0x12fd64,0xcd,-_0x419677._0x19fb9f,_0x419677._0xaf95f6)]:0x0;if(_0x3b53c9&&_0x38055f[_0x1fcd5e(0xfb,0x6f,_0x419677._0x3864cb,0x101)]>0x0){const _0x4ec504=this['getOrCreateReasoningItem'](_0x3b53c9,_0x59779c);_0x4ec504[_0x1fcd5e(_0x419677._0x2ec509,-_0x419677._0x572ad7,-0x69,0xb5)][_0x1fcd5e(-_0x419677._0x5f5dd6,-_0x419677._0xf34f60,-0x12e,-0x7b)](_0x1445ff,''+(_0x4ec504[_0x825a01(0x429,_0x419677._0x1637ea,_0x419677._0x5bf1d9,0x473)]['get'](_0x1445ff)??'')+_0x38055f);if(isUserVisibleReasoning(this[_0x825a01(0x528,0x4da,0x49e,0x4d0)]))return[{'type':_0x825a01(0x4d3,0x437,0x500,_0x419677._0x4d1148),'delta':_0x38055f,'itemId':_0x3b53c9,'outputIndex':_0x59779c,'summaryIndex':_0x1445ff}];}break;}case _0x825a01(_0x419677._0x2d6104,_0x419677._0x4d38ed,_0x419677._0xd8e6f5,0x3db):{const _0x1772be=typeof _0x4df759[_0x825a01(0x445,_0x419677._0x7e7d8a,0x5d1,_0x419677._0x437fd8)]==='string'?_0x4df759['item_id']:typeof _0x4df759[_0x825a01(_0x419677._0x44a99a,_0x419677._0x55cf23,0x42f,_0x419677._0x1d4694)]===_0x1fcd5e(0xa5,0x58,_0x419677._0x34b352,0x7b)?this[_0x825a01(_0x419677._0x17d526,_0x419677._0x19e856,_0x419677._0x460e10,_0x419677._0x4f68b2)][_0x1fcd5e(0xbb,0xf4,_0x419677._0x1b55e4,_0x419677._0x3751cf)](_0x4df759['output_index']):void 0x0,_0x15e72a=typeof _0x4df759[_0x1fcd5e(_0x419677._0x2c927e,_0x419677._0x2ba916,0x76,0x159)]==='number'?_0x4df759[_0x1fcd5e(_0x419677._0x1b3c86,_0x419677._0x3864cb,_0x419677._0x371e43,_0x419677._0x7b82a)]:0x0,_0x3cfd29=typeof _0x4df759[_0x1fcd5e(0x24,-0x81,0x55,-_0x419677._0x3f7058)]==='number'?_0x4df759[_0x825a01(_0x419677._0x482cde,_0x419677._0x2bd55f,_0x419677._0x345471,0x492)]:0x0,_0x351592=typeof _0x4df759[_0x1fcd5e(_0x419677._0x4fc193,0x12a,0x135,_0x419677._0x1d1841)]==='string'?_0x4df759[_0x825a01(_0x419677._0x3d75d,_0x419677._0x1b3d8e,_0x419677._0x18cfb2,_0x419677._0x729cd4)]:'';_0x1772be&&this[_0x825a01(0x453,0x4ec,_0x419677._0x289399,0x4b4)](_0x1772be,_0x15e72a)[_0x1fcd5e(_0x419677._0x4abeab,-_0x419677._0x23c0f3,0x2d,_0x419677._0x4e26f6)][_0x1fcd5e(-0x62,0x39,-0x7a,_0x419677._0x8bf2ec)](_0x3cfd29,_0x351592);break;}case'response.reasoning_text.delta':{const _0x345394=typeof _0x4df759[_0x1fcd5e(_0x419677._0x47c36f,_0x419677._0x50cdb6,-_0x419677._0xaf95f6,_0x419677._0x55a68a)]===_0x1fcd5e(-0x8,_0x419677._0x267bd7,_0x419677._0x29f5dd,0xbc)?_0x4df759[_0x1fcd5e(_0x419677._0x4767d4,-_0x419677._0x34b352,0xbd,0xc3)]:'',_0x4a439b=typeof _0x4df759[_0x825a01(0x4b8,_0x419677._0x5d41ca,0x465,0x5bd)]===_0x1fcd5e(-_0x419677._0x117887,-_0x419677._0x2c3244,-0x96,_0x419677._0x5e41fd)?_0x4df759[_0x1fcd5e(0xca,0x9e,_0x419677._0x41ccd6,0x1b)]:typeof _0x4df759[_0x1fcd5e(0xa9,0x143,_0x419677._0x5b240f,0x99)]==='number'?this[_0x1fcd5e(0x9f,_0x419677._0x32f6b9,0x13a,_0x419677._0x3e43b)][_0x825a01(_0x419677._0xb349f4,_0x419677._0x3d71a6,0x44a,0x4ff)](_0x4df759[_0x1fcd5e(_0x419677._0x2db029,0x156,_0x419677._0x3728e3,0x5e)]):void 0x0,_0x57242e=typeof _0x4df759[_0x1fcd5e(0xa9,_0x419677._0x1c44d9,_0x419677._0x2eb3d4,0x139)]===_0x1fcd5e(0xa5,0xcd,0x28,_0x419677._0x50186d)?_0x4df759[_0x1fcd5e(0xa9,0x5a,-_0x419677._0x2b3426,_0x419677._0x9a4301)]:0x0,_0x32c326=typeof _0x4df759['content_index']===_0x1fcd5e(_0x419677._0x175b2e,_0x419677._0x545be0,_0x419677._0x270cd2,_0x419677._0x5ad38e)?_0x4df759['content_index']:0x0;if(_0x4a439b&&_0x345394['length']>0x0){const _0xcc98e9=this[_0x1fcd5e(_0x419677._0x4e7ab1,_0x419677._0x7bbeff,0x34,_0x419677._0x2dc5ac)](_0x4a439b,_0x57242e);_0xcc98e9['textByIndex'][_0x825a01(_0x419677._0xa42983,0x3da,0x344,_0x419677._0x1fa39c)](_0x32c326,''+(_0xcc98e9[_0x825a01(_0x419677._0x297e22,0x43e,_0x419677._0x40cf39,_0x419677._0x527ab2)][_0x1fcd5e(0xbb,0x142,0xff,0xb7)](_0x32c326)??'')+_0x345394);if(isUserVisibleReasoning(this['request']))return[{'type':_0x1fcd5e(-_0x419677._0x1408c6,-0x5d,0x3e,_0x419677._0x898dfc),'contentIndex':_0x32c326,'delta':_0x345394,'itemId':_0x4a439b,'outputIndex':_0x57242e}];}break;}case'response.reasoning_text.done':{const _0xa777ea=typeof _0x4df759[_0x825a01(0x489,_0x419677._0x5d41ca,0x51d,0x4cc)]==='string'?_0x4df759[_0x1fcd5e(_0x419677._0x2ccda7,_0x419677._0x2dce24,0x152,_0x419677._0x557677)]:typeof _0x4df759[_0x825a01(_0x419677._0x1ff368,_0x419677._0x488c15,0x4c9,_0x419677._0xea335e)]==='number'?this[_0x825a01(0x43a,_0x419677._0x37f7e0,_0x419677._0x20ddb8,0x4b8)][_0x1fcd5e(0xbb,_0x419677._0x16bd9f,0x138,_0x419677._0x395bc7)](_0x4df759[_0x1fcd5e(_0x419677._0x146463,0x35,_0x419677._0x3653ce,0x89)]):void 0x0,_0x2949ea=typeof _0x4df759['output_index']===_0x1fcd5e(0xa5,_0x419677._0x49f2f3,0x16d,_0x419677._0x2e8817)?_0x4df759[_0x1fcd5e(0xa9,_0x419677._0x1b9d97,_0x419677._0x1a184b,_0x419677._0x16a47c)]:0x0,_0x3de94f=typeof _0x4df759['content_index']===_0x1fcd5e(0xa5,_0x419677._0x1812ab,0x165,-_0x419677._0x759fa2)?_0x4df759['content_index']:0x0,_0x593165=typeof _0x4df759[_0x825a01(_0x419677._0xb996af,_0x419677._0x1b3d8e,_0x419677._0x18cfb2,_0x419677._0x50a8fc)]===_0x825a01(0x4d7,_0x419677._0x3e5f4d,0x45a,_0x419677._0x20fdb5)?_0x4df759[_0x825a01(_0x419677._0x4d0f68,0x554,0x516,0x54f)]:'';_0xa777ea&&this['getOrCreateReasoningItem'](_0xa777ea,_0x2949ea)[_0x1fcd5e(_0x419677._0x3cdf6d,-0x89,_0x419677._0xb3797c,_0x419677._0x5d23b5)][_0x825a01(0x440,_0x419677._0x2d598c,0x36b,_0x419677._0x4fb93d)](_0x3de94f,_0x593165);break;}case'response.completed':{this[_0x1fcd5e(-_0x419677._0x4a58f5,-_0x419677._0x46e0ed,0xb6,-_0x419677._0x36b6bc)]=_0x4df759[_0x825a01(0x47e,0x41a,0x409,_0x419677._0x22764c)];break;}case'response.failed':{const _0x3b473b=_0x4df759['response'];throw new ProviderStreamEventError(_0x3b473b?.[_0x1fcd5e(_0x419677._0x132cb2,0x7,_0x419677._0x735d27,0xf3)]?.[_0x825a01(_0x419677._0x14b5fb,_0x419677._0x2cead7,_0x419677._0x4927ed,0x48c)]??'Responses\x20stream\x20failed',{'code':_0x3b473b?.[_0x1fcd5e(_0x419677._0x3db994,_0x419677._0x3dfddc,-0x4f,0xd8)]?.[_0x825a01(0x584,0x54b,_0x419677._0x3e140e,_0x419677._0x3ae82a)],'retryable':!![]});}case'error':{const _0xa57433=_0x4df759[_0x1fcd5e(0x67,_0x419677._0x5dbdd6,_0x419677._0xf3ce5d,0x1a)];throw new ProviderStreamEventError(_0xa57433?.[_0x825a01(_0x419677._0x44a99a,_0x419677._0x538120,0x50c,0x53c)]??'Responses\x20stream\x20failed',{'code':_0xa57433?.[_0x825a01(0x4e9,0x54b,0x57e,_0x419677._0x521cb2)],'retryable':!![],'status':typeof _0x4df759['status']==='number'?_0x4df759[_0x1fcd5e(0x43,_0x419677._0x425910,_0x419677._0x53f0b6,0x74)]:void 0x0});}}function _0x1fcd5e(_0x36b69b,_0x137625,_0x5b4dd0,_0x5e082d){return _0x949fe0(_0x137625,_0x36b69b-_0x214d44._0x14d2e8,_0x5b4dd0-0x1d2,_0x5e082d-0xbe);}return[];}['buildPartialOutput'](){const _0x407aa7={_0x381a79:0x16e,_0x51c082:0xdf,_0x2dbeca:0x9b,_0x11acd3:0x265,_0x356ad9:0xcd,_0x5e46b3:0x18,_0x1a6d25:0x15a,_0x20fb74:0x1f9,_0x3bd542:0x1a6,_0x3b2473:0x2d2,_0x2ed83e:0x267,_0xa6b226:0xe,_0x1d328e:0xe8,_0x2acbcc:0x179,_0x406ea1:0x199,_0x27ae1f:0x2fb,_0x8df343:0x244,_0xa5ba1d:0x1bd,_0x493652:0x1bb,_0x45c720:0x28d,_0x137679:0x1e6,_0x172df2:0x19a,_0x28ad99:0xd9,_0x9b8d82:0x139,_0x2ae505:0xa2,_0x79e10d:0x7d,_0xac276e:0x140,_0x47405a:0x270,_0x388fc7:0x1d3,_0x1f2f7b:0xcf,_0x335ad2:0x1b,_0x3c457c:0x137,_0x3bdd56:0xdb,_0x1eb6e9:0x146,_0x19f4b2:0x119,_0x51fbfc:0x129,_0x29529d:0x149,_0x4a68e9:0xf2,_0x55c015:0x164,_0x2f4eed:0x1d3,_0x308895:0x119,_0x1e29e3:0x2a,_0x3e3394:0x8,_0x1a5e1a:0x171,_0x19230e:0x26c,_0xc79eb4:0x180,_0xc54a76:0x248,_0x1ba489:0x147,_0x18d4aa:0x7e,_0x48678c:0xaf,_0x320b2a:0x90,_0x34ced1:0x154,_0x2b2d16:0x1d6,_0x5d2001:0x243,_0x118fdd:0x11b,_0x551e4c:0xd1,_0x1d4977:0x1f0,_0x540728:0x177,_0x4ec101:0x44,_0x5bc302:0xcb,_0x3e9618:0xa3,_0x2b5546:0x1f7,_0x37d96e:0x156,_0xf3f6c2:0x120,_0x5750bf:0xcf},_0x5ea3b4={_0x162750:0x13b,_0x1c66de:0xdc},_0x153b12={_0x6968fe:0x99,_0x98f768:0x171},_0x50c93b={_0xf492db:0xac,_0x54fda2:0x18b},_0x2ab0f3=[];function _0x48c30d(_0x528ad4,_0x54acbb,_0x443e34,_0x2541c2){return _0x949fe0(_0x443e34,_0x528ad4-_0x50c93b._0xf492db,_0x443e34-0xda,_0x2541c2-_0x50c93b._0x54fda2);}function _0x358aa9(_0x33e0b8,_0x2e6615,_0x5e9617,_0x2d711b){return _0x2c5722(_0x2d711b,_0x2e6615-_0x153b12._0x6968fe,_0x5e9617-0xdb,_0x2d711b-_0x153b12._0x98f768);}for(const [_0x54b4d2,_0x450f58]of this[_0x48c30d(-0xa4,-_0x407aa7._0x381a79,-_0x407aa7._0x51c082,-_0x407aa7._0x2dbeca)][_0x358aa9(0x1a3,0x20c,_0x407aa7._0x11acd3,0x31d)]()){const _0x8053e8=_0x450f58[_0x358aa9(0x137,0x142,0x18c,_0x407aa7._0x356ad9)]('');if(_0x8053e8[_0x48c30d(-0x50,-_0x407aa7._0x5e46b3,-0x3,0x17)]===0x0)continue;_0x2ab0f3['push']({'index':_0x54b4d2,'item':{'type':'message','role':'assistant','content':[{'type':_0x48c30d(-_0x407aa7._0x1a6d25,-0xfb,-_0x407aa7._0x20fb74,-_0x407aa7._0x3bd542),'text':_0x8053e8}]}});}for(const _0x5d5017 of this[_0x358aa9(0x1f2,_0x407aa7._0x3b2473,0x294,_0x407aa7._0x2ed83e)][_0x48c30d(-0xa5,_0x407aa7._0xa6b226,0x1e,-0xdb)]()){_0x2ab0f3[_0x358aa9(_0x407aa7._0x1d328e,_0x407aa7._0x2acbcc,_0x407aa7._0x406ea1,0x191)]({'index':_0x5d5017[_0x358aa9(_0x407aa7._0x27ae1f,0x20b,_0x407aa7._0x8df343,_0x407aa7._0xa5ba1d)]??_0x2ab0f3['length'],'item':{'type':_0x358aa9(_0x407aa7._0x493652,0x22e,0x200,_0x407aa7._0x45c720),'id':_0x5d5017['id'],..._0x5d5017[_0x358aa9(0x1cd,0x97,0x139,_0x407aa7._0x137679)]?{'encrypted_content':_0x5d5017[_0x48c30d(-_0x407aa7._0x172df2,-0x20a,-_0x407aa7._0x28ad99,-0x124)]}:{},..._0x5d5017[_0x48c30d(-_0x407aa7._0x9b8d82,-_0x407aa7._0x2ae505,-_0x407aa7._0x79e10d,-_0x407aa7._0xac276e)][_0x358aa9(0x290,_0x407aa7._0x47405a,_0x407aa7._0x388fc7,0x12c)]>0x0?{'summary':Array[_0x48c30d(-0x9e,-_0x407aa7._0x1f2f7b,_0x407aa7._0x335ad2,0x2)](_0x5d5017[_0x358aa9(0x1d8,0xfd,0x19a,0x234)][_0x358aa9(0x31e,0x1e3,0x265,0x323)]())[_0x48c30d(-0x9a,-_0x407aa7._0x3c457c,-0x4c,-_0x407aa7._0x3bdd56)]((_0x26382d,_0x5a00a4)=>_0x26382d[0x0]-_0x5a00a4[0x0])[_0x48c30d(-_0x407aa7._0x1eb6e9,-_0x407aa7._0x19f4b2,-0x1c3,-_0x407aa7._0x51fbfc)](([,_0x432ccd])=>{const _0x2cf1ac={_0x3a6662:0x3f,_0x13a78e:0x91,_0x54417d:0x1af};function _0x4757aa(_0x50449d,_0x4e2b8f,_0x39b7ed,_0x360b18){return _0x48c30d(_0x39b7ed-_0x2cf1ac._0x3a6662,_0x4e2b8f-_0x2cf1ac._0x13a78e,_0x50449d,_0x360b18-_0x2cf1ac._0x54417d);}return{'type':_0x4757aa(-0x4f,-_0x5ea3b4._0x162750,-_0x5ea3b4._0x1c66de,-0xe3),'text':_0x432ccd};})}:{},..._0x5d5017[_0x48c30d(-_0x407aa7._0x29529d,-0x10b,-_0x407aa7._0x4a68e9,-0x19a)][_0x358aa9(_0x407aa7._0x55c015,0x1a1,_0x407aa7._0x2f4eed,_0x407aa7._0x308895)]>0x0?{'text':Array[_0x48c30d(-0x9e,-0x97,-_0x407aa7._0x1e29e3,-_0x407aa7._0x3e3394)](_0x5d5017[_0x48c30d(-0x149,-_0x407aa7._0x1a5e1a,-0x14a,-0x8d)]['entries']())[_0x358aa9(_0x407aa7._0x19230e,_0x407aa7._0xc79eb4,0x239,_0x407aa7._0xc54a76)]((_0x149126,_0x5d83f2)=>_0x149126[0x0]-_0x5d83f2[0x0])['map'](([,_0x1ffc35])=>_0x1ffc35)[_0x48c30d(-_0x407aa7._0x1ba489,-_0x407aa7._0x18d4aa,-_0x407aa7._0x48678c,-0x163)]('')}:{}}});}for(const _0x440782 of this['toolCalls']['values']()){_0x2ab0f3[_0x48c30d(-0x13a,-0xd9,-0x1cc,-0x171)]({'index':this[_0x358aa9(_0x407aa7._0x320b2a,0xa0,_0x407aa7._0x34ced1,0xc5)][_0x358aa9(_0x407aa7._0x2b2d16,0x267,_0x407aa7._0x5d2001,0x1ee)](_0x440782['id'])??_0x2ab0f3['length'],'item':{'type':_0x48c30d(-0x7a,-_0x407aa7._0x118fdd,-0x137,-_0x407aa7._0x551e4c),'call_id':_0x440782['id'],'name':_0x440782[_0x48c30d(-0x17d,-0x224,-_0x407aa7._0x1d4977,-_0x407aa7._0x540728)][_0x48c30d(-_0x407aa7._0x4ec101,-_0x407aa7._0x5bc302,-_0x407aa7._0x3e9618,-0x87)],'arguments':_0x440782[_0x358aa9(0x165,_0x407aa7._0x2b5546,_0x407aa7._0x37d96e,_0x407aa7._0xf3f6c2)][_0x358aa9(0x167,_0x407aa7._0x5750bf,0x14e,0x1dd)]}});}return _0x2ab0f3['sort']((_0x5172da,_0xb31399)=>_0x5172da[_0x48c30d(-0x1ba,-0x11a,-0x227,-0x214)]-_0xb31399[_0x48c30d(-0x1ba,-0x211,-0x25f,-0x205)])[_0x48c30d(-0x146,-0x1de,-0x13d,-0xcc)](_0x51bc1f=>_0x51bc1f['item']);}[_0x949fe0(-0x1a1,-0x147,-0x1e4,-0x1b0)](_0x727945,_0x2d8e43){const _0x367e6d={_0x191753:0x2d3,_0x53f7e0:0x233,_0x24f72a:0x386,_0x49650b:0x282,_0x44ec66:0x1ce,_0x5623b6:0x328,_0x471e46:0x1d0,_0x2b1e6e:0x1c2,_0xab8e39:0x10f,_0x5615f5:0x1d8,_0x2d4891:0x2d4,_0x20cbb7:0x265,_0x14e446:0x2c5,_0x5bdf22:0xde,_0x3b002d:0x1e4,_0x261626:0xc3,_0x475d2f:0x165,_0x43a1ef:0x15f,_0x4a6800:0x1f3,_0x181fbe:0x22d},_0x3364b2={_0x22377c:0x1b7,_0x248553:0xa6},_0x5cf6ec=this[_0x2f3805(_0x367e6d._0x191753,_0x367e6d._0x53f7e0,_0x367e6d._0x24f72a,0x32a)][_0x2f3805(_0x367e6d._0x49650b,_0x367e6d._0x44ec66,0x2f7,_0x367e6d._0x5623b6)](_0x727945);if(_0x5cf6ec)return _0x2d8e43!==void 0x0&&(_0x5cf6ec['outputIndex']=_0x2d8e43,this[_0x2f3805(0x266,_0x367e6d._0x471e46,0x291,0x2ea)][_0x2f3805(0x165,_0x367e6d._0x2b1e6e,_0x367e6d._0xab8e39,_0x367e6d._0x5615f5)](_0x2d8e43,_0x727945)),_0x5cf6ec;function _0x2f3805(_0x3694d7,_0xd526d5,_0x3bfdd7,_0xfe7476){return _0x949fe0(_0x3bfdd7,_0x3694d7-0x3be,_0x3bfdd7-_0x3364b2._0x22377c,_0xfe7476-_0x3364b2._0x248553);}const _0xd97bf7={'id':_0x727945,'outputIndex':_0x2d8e43,'summaryByIndex':new Map(),'textByIndex':new Map()};function _0x204174(_0x1e35b2,_0x12aa8a,_0xac95d1,_0x1dffbc){return _0x949fe0(_0xac95d1,_0x1e35b2-0x3bf,_0xac95d1-0x14f,_0x1dffbc-0x1a8);}return this[_0x204174(_0x367e6d._0x2d4891,0x236,_0x367e6d._0x20cbb7,_0x367e6d._0x14e446)][_0x204174(0x166,_0x367e6d._0x5bdf22,_0x367e6d._0x3b002d,_0x367e6d._0x261626)](_0x727945,_0xd97bf7),_0x2d8e43!==void 0x0&&this[_0x204174(0x267,0x206,0x31b,0x237)][_0x2f3805(_0x367e6d._0x475d2f,_0x367e6d._0x43a1ef,_0x367e6d._0x4a6800,_0x367e6d._0x181fbe)](_0x2d8e43,_0x727945),_0xd97bf7;}};function createOpenAiResponsesStreamParser(_0x41a356){return new OpenAiResponsesStreamParser(_0x41a356);}function createOpenAiSurfaces(_0x2102f2={}){const _0x231889={_0x2ac10e:0xcb,_0x44fcc5:0xa6,_0x3d525a:0x3,_0x8fcfff:0x2aa,_0x2698ba:0x25a,_0x18fad3:0x1fd,_0x37744e:0x25d,_0x257392:0x9c,_0x28ad4c:0x145,_0x3cced8:0x2b,_0x1bb82b:0xca,_0x51870e:0xb0,_0x4bc9c7:0x1e,_0x15b8ed:0x30,_0x45458c:0x2a,_0x2075bc:0x5f,_0x4410c0:0xf7,_0x4289f2:0xfc,_0x36a0cf:0xbe},_0x2e600f={_0xdc3470:0x238,_0x13ee68:0x1ff},_0x263810={_0x2ad24e:0x2eb,_0x359590:0x2cb},_0x28e6f7={_0x2a2848:0x12b,_0x45db2b:0x320},_0x4a08ca={_0x5908d0:0x16d,_0x41130b:0x1d6,_0x2cdf7f:0x1e2},_0x251c1a={_0x5f31b6:0xea,_0x293730:0x367},_0xe7bbb4={_0x55c365:0x1b9,_0x242582:0x227,_0x289094:0x172,_0x180c06:0x236},_0xd71a59={_0x4e933a:0xa5};function _0x39f3c3(_0x3fe0ea,_0x48a1c9,_0x593e16,_0x24d03a){return _0x949fe0(_0x24d03a,_0x593e16- -0x4,_0x593e16-_0xd71a59._0x4e933a,_0x24d03a-0xa7);}function _0x4723b4(_0x3d5022,_0x395695,_0x1e1abe,_0x3a50cb){return _0x949fe0(_0x395695,_0x3a50cb-0x193,_0x1e1abe-0x9d,_0x3a50cb-0x0);}const _0x8d2415=_0x2102f2[_0x39f3c3(-0x14a,-0x225,-0x164,-0x1dd)]??_0x4723b4(-_0x231889._0x2ac10e,_0x231889._0x44fcc5,-0x43,-_0x231889._0x3d525a),_0x8fdf32=_0x2102f2[_0x39f3c3(-_0x231889._0x8fcfff,-_0x231889._0x2698ba,-_0x231889._0x18fad3,-_0x231889._0x37744e)]??_0x4723b4(-_0x231889._0x257392,-_0x231889._0x28ad4c,-_0x231889._0x3cced8,-_0x231889._0x1bb82b);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x4723b4(_0x231889._0x51870e,_0x231889._0x4bc9c7,-_0x231889._0x15b8ed,_0x231889._0x45458c),'createRequest'(_0x159599){const _0x2da472={_0xdab00b:0x64};function _0x1a6978(_0x127145,_0x55927d,_0x236944,_0x368405){return _0x39f3c3(_0x127145-0x43,_0x55927d-_0x2da472._0xdab00b,_0x236944-0x5a,_0x127145);}return{'accept':_0x1a6978(-_0xe7bbb4._0x55c365,-_0xe7bbb4._0x242582,-_0xe7bbb4._0x289094,-_0xe7bbb4._0x180c06),'body':createChatRequestBody(_0x159599,![]),'path':_0x8d2415};},'parseResponse'(_0x21cc8f){return parseChatCompletionResponse(_0x21cc8f);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x58d9a5){function _0x2a4082(_0x42aadf,_0x58fb45,_0x37ba38,_0x2947e3){return _0x39f3c3(_0x42aadf-0xc5,_0x58fb45-_0x251c1a._0x5f31b6,_0x42aadf-_0x251c1a._0x293730,_0x58fb45);}return{'accept':_0x2a4082(_0x4a08ca._0x5908d0,_0x4a08ca._0x41130b,0x1dc,_0x4a08ca._0x2cdf7f),'body':createChatRequestBody(_0x58d9a5,!![]),'path':_0x8d2415};},'createStreamParser'(_0x632b58){return new OpenAiChatCompletionsStreamParser(_0x632b58);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x4723b4(0xae,-0x60,_0x231889._0x2075bc,0x2a),'createRequest'(_0x3aa031){function _0x8f4970(_0x44942c,_0x24a440,_0x50ebae,_0x369fad){return _0x4723b4(_0x44942c-_0x28e6f7._0x2a2848,_0x50ebae,_0x50ebae-0x10a,_0x44942c-_0x28e6f7._0x45db2b);}return{'accept':_0x8f4970(_0x263810._0x2ad24e,_0x263810._0x359590,0x308,0x355),'body':createResponsesRequestBody(_0x3aa031,![]),'path':_0x8fdf32};},'parseResponse'(_0x4aed5f,_0x156bf6){return parseResponsesResponse(_0x4aed5f,_0x156bf6);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x4723b4(-_0x231889._0x4410c0,-_0x231889._0x4289f2,-0x8c,-_0x231889._0x36a0cf),'createRequest'(_0xfd1e15){function _0x33433a(_0x50fbe6,_0x360ac8,_0x1607c3,_0x2fbe7b){return _0x4723b4(_0x50fbe6-0x3a,_0x1607c3,_0x1607c3-0x13,_0x360ac8- -0x19c);}return{'accept':_0x33433a(-_0x2e600f._0xdc3470,-_0x2e600f._0x13ee68,-0x1bf,-0x292),'body':createResponsesRequestBody(_0xfd1e15,!![]),'path':_0x8fdf32};},'createStreamParser'(_0x39014){return new OpenAiResponsesStreamParser(_0x39014);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x2f9ce7){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x2f9ce7),'path':_0x8fdf32};},'createStreamParser'(_0x531015){return createOpenAiResponsesStreamParser(_0x531015);}}];}var OpenAiProviderAdapter=class{[_0x2c5722(0x1a6,0xc4,0x126,0x7f)];constructor(_0x4137cf){const _0x3a8f69={_0x5d09a1:0x152,_0x18edc1:0x27c,_0x497698:0x189};function _0x54e0f8(_0x57af77,_0x57a7d7,_0x5adb40,_0x3616cd){return _0x2c5722(_0x57a7d7,_0x57a7d7-_0x3a8f69._0x5d09a1,_0x57af77- -_0x3a8f69._0x18edc1,_0x3616cd-_0x3a8f69._0x497698);}this[_0x54e0f8(-0x156,-0x1df,-0x209,-0x1cb)]=_0x4137cf;}[_0x949fe0(-0x11f,-0x1b9,-0x205,-0x27e)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async['createHeaders'](_0x204bcb,_0x117eb8){const _0x2be5f3={_0x1dad93:0x200,_0x4ec3c5:0x4a,_0x12db31:0x343,_0x5705b9:0x333,_0x465579:0x6b,_0xd6d89b:0x133,_0x5e546b:0x1f,_0xec3e6e:0x1e5,_0x4a110e:0x1b3,_0x1f2c3b:0x253,_0x2b89ed:0x1ad,_0x437d72:0x227,_0x11c819:0x2c0,_0x19dc6d:0x328,_0x669937:0x3ee,_0x49cdf1:0x391,_0x145be0:0xf4,_0x3c31dd:0x134,_0x4ea937:0x134,_0x371fb8:0xb2,_0x2fa460:0x1a,_0x3a8aa3:0x45,_0x5eded1:0x1bd,_0x22d291:0x2af,_0x837f5d:0x153},_0x2a9af0={_0x4cd145:0x1e1,_0x32ea3c:0x1b0,_0x213755:0x4f},_0xeff9ba=new Headers();function _0x5eebbb(_0x2128cf,_0x394ee8,_0x46a822,_0x58ef89){return _0x949fe0(_0x58ef89,_0x2128cf-_0x2a9af0._0x4cd145,_0x46a822-_0x2a9af0._0x32ea3c,_0x58ef89-_0x2a9af0._0x213755);}_0xeff9ba[_0x2381e4(0x186,0x295,0x1e5,_0x2be5f3._0x1dad93)]('accept',_0x117eb8[_0x5eebbb(-0x67,0x1c,-0x56,_0x2be5f3._0x4ec3c5)]),_0xeff9ba[_0x2381e4(0x1b0,0x1a3,0x1e5,0x1de)](_0x2381e4(0x33d,_0x2be5f3._0x12db31,0x331,0x295),_0x2381e4(0x2b4,0x2f4,_0x2be5f3._0x5705b9,0x3b9)+_0x204bcb['credential'][_0x5eebbb(_0x2be5f3._0x465579,0xec,0x3d,_0x2be5f3._0xd6d89b)]);_0x117eb8[_0x5eebbb(_0x2be5f3._0x5e546b,-0x94,0x70,-0xe)]!==![]&&_0xeff9ba[_0x2381e4(0x150,0x208,_0x2be5f3._0xec3e6e,_0x2be5f3._0x4a110e)](_0x2381e4(0x1ce,0x27c,_0x2be5f3._0x1f2c3b,0x238),_0x2381e4(0x218,0x1d4,0x276,_0x2be5f3._0x2b89ed));const _0x49e684=await this[_0x2381e4(_0x2be5f3._0x437d72,0x29e,_0x2be5f3._0x11c819,_0x2be5f3._0x19dc6d)]?.({'body':_0x204bcb['body'],'credential':_0x204bcb[_0x2381e4(0x2ef,_0x2be5f3._0x669937,0x360,_0x2be5f3._0x49cdf1)],'request':_0x204bcb[_0x5eebbb(0x88,_0x2be5f3._0x145be0,_0x2be5f3._0x3c31dd,_0x2be5f3._0x4ea937)],'session':_0x204bcb['session'],'stream':_0x204bcb[_0x5eebbb(0x7f,_0x2be5f3._0x371fb8,_0x2be5f3._0x2fa460,_0x2be5f3._0x3a8aa3)]});function _0x2381e4(_0x11af96,_0x3ed30f,_0x58c404,_0x1b064e){return _0x949fe0(_0x11af96,_0x58c404-0x43e,_0x58c404-0x1ee,_0x1b064e-0x11d);}for(const [_0x1d8be8,_0xc0d137]of Object['entries'](_0x49e684??{})){_0xeff9ba[_0x2381e4(_0x2be5f3._0x5eded1,_0x2be5f3._0x22d291,0x1e5,_0x2be5f3._0x837f5d)](_0x1d8be8,_0xc0d137);}return _0xeff9ba;}['mapApiError'](_0x57f2d1){return _0x57f2d1;}[_0x2c5722(0xdd,0x149,0xa4,0x99)](_0x258288,_0x2e8e36){return resolveSessionBaseUrl(_0x258288,_0x2e8e36);}[_0x2c5722(0x1dd,0x238,0x1a3,0xf9)](_0x502b34,_0x435837){return resolveApiCredential(_0x502b34,_0x435837);}async['toApiError'](_0x43c9bf){return await createOpenAiApiError(_0x43c9bf);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x949fe0(-0x1f8,-0x1f0,-0x1f6,-0x206)]=new Map();[_0x2c5722(0x94,0x1bc,0x144,0x127)];['responsesPath'];constructor(_0x2c729e={}){const _0x56bdc9={_0x32f5de:0x9f,_0x442f41:0x13,_0x52d3a0:0x95,_0x383fab:0xae,_0x1f3038:0x4f,_0x1d7a0c:0x2,_0x18d349:0x86,_0x2c7539:0x38e,_0x332104:0x275,_0x23e92f:0x2ad,_0x5e9430:0x306,_0x6cecc8:0x72,_0x2f3e2c:0x12a,_0x4ca0ae:0x369,_0x3adbfc:0x22,_0x39c937:0x64,_0x59ca9a:0x1b,_0x2b31c9:0x20,_0x31645f:0x2a0,_0x31ea50:0x325,_0x1cd75a:0xa4},_0x165088={_0x58adf3:0x34},_0x543576={_0x233621:0x63},_0x2a26af=_0x2c729e[_0x315ca3(-_0x56bdc9._0x32f5de,-0x141,-0x181,-0xf0)]??_0x315ca3(-_0x56bdc9._0x442f41,0x1f,-0x22,-0x60),_0x59fe19=_0x2c729e['maxTokens']??0x4000;function _0x57b3ab(_0x3234d5,_0x3272e6,_0x217eed,_0x5e8469){return _0x949fe0(_0x3272e6,_0x217eed-0x4e2,_0x217eed-0x3c,_0x5e8469-_0x543576._0x233621);}const _0x5b8270=_0x2c729e[_0x315ca3(_0x56bdc9._0x52d3a0,_0x56bdc9._0x383fab,-_0x56bdc9._0x1f3038,-_0x56bdc9._0x1d7a0c)]??_0x315ca3(0x5b,0x82,_0x56bdc9._0x18d349,-0x38),_0x391958=_0x2c729e[_0x57b3ab(_0x56bdc9._0x2c7539,0x272,0x2e9,_0x56bdc9._0x332104)]??_0x57b3ab(0x2ac,_0x56bdc9._0x23e92f,0x285,0x2e3);super({'apiKey':_0x2c729e[_0x57b3ab(0x343,0x337,0x3aa,_0x56bdc9._0x5e9430)],'baseUrl':trimTrailingSlashes(_0x2c729e[_0x315ca3(-0x65,-_0x56bdc9._0x6cecc8,-_0x56bdc9._0x2f3e2c,-0x6f)]??_0x57b3ab(0x32e,0x31a,0x3c9,_0x56bdc9._0x4ca0ae)),'fetch':_0x2c729e['fetch'],'maxTokens':_0x59fe19,'model':_0x2a26af,'reasoning':_0x2c729e['reasoning'],'providerAdapter':new OpenAiProviderAdapter(_0x2c729e[_0x315ca3(-_0x56bdc9._0x3adbfc,_0x56bdc9._0x39c937,-_0x56bdc9._0x59ca9a,-_0x56bdc9._0x2b31c9)]),'providerSessionResolver':_0x2c729e[_0x57b3ab(0x25d,_0x56bdc9._0x31645f,_0x56bdc9._0x31ea50,0x336)],'requestMutators':_0x2c729e['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x2c729e['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x5b8270,'responsesPath':_0x391958}),'webSocketFactory':_0x2c729e['webSocketFactory']}),this[_0x315ca3(-_0x56bdc9._0x1cd75a,0x5d,-0x4c,-_0x56bdc9._0x1d7a0c)]=_0x5b8270;function _0x315ca3(_0x3104b5,_0x432577,_0x51d22e,_0x302e9f){return _0x949fe0(_0x432577,_0x302e9f-0x15e,_0x51d22e-_0x165088._0x58adf3,_0x302e9f-0xd8);}this['responsesPath']=_0x391958;}[_0x2c5722(0xcd,0x16b,0x191,0x235)](_0x1a82ec,_0x39b024){const _0x59e84f={_0x3779cb:0x536,_0x5df723:0x516,_0x2a6797:0x5ff};function _0x439aeb(_0x2a4a9d,_0x4ed49e,_0x4459d,_0x41e34d){return _0x949fe0(_0x2a4a9d,_0x41e34d-0x69b,_0x4459d-0x77,_0x41e34d-0x8e);}return this[_0x439aeb(_0x59e84f._0x3779cb,_0x59e84f._0x5df723,_0x59e84f._0x2a6797,0x5c1)](_0x1a82ec,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x39b024);}[_0x2c5722(0x147,0x1dc,0x155,0x176)](_0x2eaa3c,_0x48d538){const _0x51fa4e={_0x1196e2:0x662,_0x1ccb69:0x586},_0x2272cb={_0x27af15:0x122};function _0x16155b(_0x5d6833,_0x32a761,_0xa613fb,_0x1e089c){return _0x2c5722(_0x5d6833,_0x32a761-_0x2272cb._0x27af15,_0xa613fb-0x424,_0x1e089c-0x146);}return this[_0x16155b(_0x51fa4e._0x1196e2,_0x51fa4e._0x1ccb69,0x5ee,0x69c)](_0x2eaa3c,OPENAI_RESPONSES_SURFACE,_0x48d538);}[_0x949fe0(-0x1c9,-0x1cb,-0x10a,-0x296)](_0x182711,_0x5f885e){const _0x101f1b={_0x5b3251:0x169},_0x2415db={_0x233b11:0x243,_0x23be11:0x129};function _0x27d3ad(_0x3d9601,_0x3a160b,_0x59b0f1,_0x268d6b){return _0x949fe0(_0x3a160b,_0x59b0f1-_0x2415db._0x233b11,_0x59b0f1-0x2f,_0x268d6b-_0x2415db._0x23be11);}return this[_0x27d3ad(0x1ff,0x123,_0x101f1b._0x5b3251,0x1c0)](_0x182711,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x5f885e);}[_0x2c5722(0x170,0x69,0xed,0x38)](_0x2d96b8,_0x1cf8d0){const _0x516ce={_0xac2bbd:0x108},_0x2ca63b={_0x3a1c17:0x1f3,_0x437d42:0x125};function _0x25b203(_0x3b199c,_0x492ed0,_0xf24cd6,_0x40c8a4){return _0x949fe0(_0xf24cd6,_0x3b199c-_0x2ca63b._0x3a1c17,_0xf24cd6-0xce,_0x40c8a4-_0x2ca63b._0x437d42);}return this[_0x25b203(0x4b,0x21,0x19,_0x516ce._0xac2bbd)](_0x2d96b8,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x1cf8d0);}[_0x2c5722(0x195,0x237,0x1b1,0x223)](_0x5afcc4,_0x44ded0){const _0xaf68a0={_0x163b4c:0x1dc,_0x4809b:0x11f},_0x531133={_0x14e84a:0x20e,_0x386c22:0x171};function _0x4b1942(_0x57c476,_0x5f188e,_0x3fba26,_0x5dedc4){return _0x2c5722(_0x5f188e,_0x5f188e-0x13,_0x3fba26- -_0x531133._0x14e84a,_0x5dedc4-_0x531133._0x386c22);}return this[_0x4b1942(-_0xaf68a0._0x163b4c,-_0xaf68a0._0x4809b,-0x112,-0x103)](_0x5afcc4,OPENAI_RESPONSES_STREAM_SURFACE,_0x44ded0);}['streamViaResponsesWebSocketSurface'](_0x2b7cce,_0x1b17ba){return this['streamViaSurface'](_0x2b7cce,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1b17ba);}async[_0x2c5722(0xce,0xbf,0xee,0xbf)](_0x2bc2d0,_0x554e44){try{return await this['completeViaChatCompletionsSurface'](_0x2bc2d0,_0x554e44);}catch(_0x1a52d5){if(_0x1a52d5 instanceof OpenAiApiError)throw this['mapApiError'](_0x1a52d5);throw _0x1a52d5;}}async['response'](_0x58d476,_0x49b696){const _0x189e38={_0x193ca3:0x3e5,_0x368260:0x407,_0x46b958:0x391,_0x36c26b:0x408},_0x4319a8={_0x5ee22d:0x81};function _0x39949f(_0x3df694,_0x4eb265,_0x1580b8,_0x47e902){return _0x2c5722(_0x4eb265,_0x4eb265-_0x4319a8._0x5ee22d,_0x47e902-0x2b3,_0x47e902-0x13a);}try{return await this[_0x39949f(_0x189e38._0x193ca3,_0x189e38._0x368260,_0x189e38._0x46b958,_0x189e38._0x36c26b)](_0x58d476,_0x49b696);}catch(_0x143012){if(_0x143012 instanceof OpenAiApiError)throw this['mapApiError'](_0x143012);throw _0x143012;}}async['responseSocket'](_0x3ac593,_0x4f77c0){const _0x280583={_0x5c87b4:0x17b,_0x9a74e8:0x112,_0x232efd:0x5a,_0x27576a:0x19,_0x37d8f8:0x7e,_0x276d8d:0x122,_0x2a084e:0x1d8,_0x3e870b:0x9e,_0x1cbcc:0x13a},_0x152585={_0x2cb93b:0x1a2,_0x1db912:0xd,_0x1d00cb:0x103},_0x4c1397={_0x1bf0e2:0x0};function _0x1eb1c5(_0x2d48c5,_0x2d47a5,_0x146737,_0x26fe01){return _0x949fe0(_0x26fe01,_0x2d47a5-0x62e,_0x146737-0x1b0,_0x26fe01-_0x4c1397._0x1bf0e2);}function _0x2d6e3c(_0x16311d,_0x4ba825,_0x1e88b3,_0x3d0a3d){return _0x2c5722(_0x4ba825,_0x4ba825-_0x152585._0x2cb93b,_0x3d0a3d- -_0x152585._0x1db912,_0x3d0a3d-_0x152585._0x1d00cb);}try{let _0x1e5ca2;for await(const _0x4d916f of this[_0x2d6e3c(0x1cd,0x51,_0x280583._0x5c87b4,_0x280583._0x9a74e8)](_0x3ac593,_0x4f77c0)){_0x4d916f[_0x2d6e3c(_0x280583._0x232efd,-0xd,0xa5,0x70)]==='done'&&(_0x1e5ca2=_0x4d916f[_0x2d6e3c(0xfc,-0x8,-_0x280583._0x27576a,_0x280583._0x37d8f8)]);}if(!_0x1e5ca2)throw new Error(_0x2d6e3c(0x1b6,_0x280583._0x276d8d,_0x280583._0x2a084e,0x142));return _0x1e5ca2;}catch(_0x131d88){if(_0x131d88 instanceof OpenAiApiError)throw this[_0x2d6e3c(0xba,_0x280583._0x3e870b,0xca,_0x280583._0x1cbcc)](_0x131d88);throw _0x131d88;}}async*['chatStream'](_0x293ce5,_0x3c6cc2){const _0x1d5ec9={_0x2fcad7:0x4c5,_0x2aec30:0x4a7},_0x462c83={_0x283f16:0x65e,_0x173c51:0x39,_0x9163ec:0x131};function _0x500731(_0x4166e2,_0x10d7be,_0x5e292e,_0x4408a3){return _0x949fe0(_0x5e292e,_0x4408a3-_0x462c83._0x283f16,_0x5e292e-_0x462c83._0x173c51,_0x4408a3-_0x462c83._0x9163ec);}try{yield*this[_0x500731(0x44c,0x498,_0x1d5ec9._0x2fcad7,_0x1d5ec9._0x2aec30)](_0x293ce5,_0x3c6cc2);}catch(_0x5d305d){if(_0x5d305d instanceof OpenAiApiError)throw this['mapApiError'](_0x5d305d);throw _0x5d305d;}}async*[_0x2c5722(0x13e,0x72,0xc9,0x64)](_0x1c24dd,_0x5ef5e8){const _0x5ad83c={_0x2835e3:0x559,_0x560bef:0x61c},_0x1aec96={_0x2eeee6:0xf,_0x4b156c:0x412};function _0x3fb568(_0x321a4e,_0x43ca39,_0x513606,_0x5e9bb6){return _0x2c5722(_0x43ca39,_0x43ca39-_0x1aec96._0x2eeee6,_0x321a4e-_0x1aec96._0x4b156c,_0x5e9bb6-0x99);}try{yield*this['streamViaResponsesSurface'](_0x1c24dd,_0x5ef5e8);}catch(_0x158c75){if(_0x158c75 instanceof OpenAiApiError)throw this[_0x3fb568(_0x5ad83c._0x2835e3,0x48e,_0x5ad83c._0x560bef,0x4d9)](_0x158c75);throw _0x158c75;}}async*['responseSocketStream'](_0x49123d,_0x42f217){const _0x1090d8={_0x57a8d6:0x37,_0x5f2a81:0xf7,_0xb2b78a:0x578,_0x155fe0:0x567},_0x3f232c={_0x519397:0x1cd},_0x3c93d8={_0x4bcf61:0x26d,_0x539f3f:0x5c};function _0x5e39d2(_0x31a299,_0x1c05d5,_0xc24e04,_0x136081){return _0x2c5722(_0x1c05d5,_0x1c05d5-0x7e,_0xc24e04- -_0x3c93d8._0x4bcf61,_0x136081-_0x3c93d8._0x539f3f);}function _0x143f23(_0x2bffeb,_0x224543,_0x219f09,_0x53ccf7){return _0x949fe0(_0x53ccf7,_0x219f09-0x734,_0x219f09-_0x3f232c._0x519397,_0x53ccf7-0x99);}try{yield*this[_0x5e39d2(-_0x1090d8._0x57a8d6,-_0x1090d8._0x5f2a81,-0xd7,-0x109)](_0x49123d,_0x42f217);}catch(_0x5e20fb){if(_0x5e20fb instanceof OpenAiApiError)throw this[_0x143f23(0x5b8,_0x1090d8._0xb2b78a,0x5d7,_0x1090d8._0x155fe0)](_0x5e20fb);throw _0x5e20fb;}}['complete'](_0x2f7801,_0x1cac29){const _0x3f00f7={_0x5ad611:0x27c,_0x32da02:0x3c1,_0x2108bb:0x2a9,_0x470396:0x338},_0x439d11={_0x49cc47:0x49};function _0x2b9dda(_0x5939b7,_0x3fe448,_0x4f62e4,_0x4d1989){return _0x2c5722(_0x4f62e4,_0x3fe448-_0x439d11._0x49cc47,_0x4d1989-0x24a,_0x4d1989-0x144);}return this[_0x2b9dda(_0x3f00f7._0x5ad611,_0x3f00f7._0x32da02,_0x3f00f7._0x2108bb,_0x3f00f7._0x470396)](_0x2f7801,_0x1cac29);}[_0x2c5722(0xfe,0x11a,0x142,0x132)](_0x3bc4ae,_0xd137ea){const _0x3dfe64={_0xc2d672:0xb,_0x53df7b:0x2d},_0x562101={_0x567963:0x3d};function _0x3f36a6(_0x1bdd11,_0x2221fa,_0x351801,_0x1a1a1d){return _0x949fe0(_0x2221fa,_0x351801-0x18e,_0x351801-0x19b,_0x1a1a1d-_0x562101._0x567963);}return this[_0x3f36a6(-_0x3dfe64._0xc2d672,_0x3dfe64._0x53df7b,-0x5c,-0xb5)](_0x3bc4ae,_0xd137ea);}[_0x949fe0(-0x144,-0x1d2,-0x280,-0x119)](_0x4aaa06){const _0x3df535={_0x834d15:0x43d,_0x28dd35:0x415,_0x4cc5ca:0x422,_0x5e9839:0x86,_0x330d07:0x488,_0x4483a2:0x495,_0x2cf6f3:0x47f,_0x58493e:0x377,_0x2dfeed:0x2e7},_0x11dba4={_0x2d6c9a:0x36e,_0x1dc3cf:0x195},_0x241f54={_0x5bc487:0x1a9};function _0x2666ad(_0x225592,_0x5f27d8,_0x23c515,_0x429b59){return _0x949fe0(_0x23c515,_0x5f27d8-0x2f,_0x23c515-0x139,_0x429b59-_0x241f54._0x5bc487);}const _0x3cf142=this['getResponsesSocketSessionKey'](_0x4aaa06);let _0x17537e=_OpenAiModel[_0xe1785b(_0x3df535._0x834d15,_0x3df535._0x28dd35,0x4d2,_0x3df535._0x4cc5ca)][_0x2666ad(-0x10b,-0x10d,-_0x3df535._0x5e9839,-0x11d)](_0x3cf142);function _0xe1785b(_0x515c71,_0x27ee75,_0xc679d8,_0x2d67b6){return _0x2c5722(_0x515c71,_0x27ee75-0x108,_0x2d67b6-_0x11dba4._0x2d6c9a,_0x2d67b6-_0x11dba4._0x1dc3cf);}return!_0x17537e&&(_0x17537e={'pending':Promise[_0xe1785b(_0x3df535._0x330d07,0x4aa,_0x3df535._0x4483a2,0x3e2)]()},_OpenAiModel[_0xe1785b(_0x3df535._0x2cf6f3,0x36e,_0x3df535._0x58493e,_0x3df535._0x4cc5ca)][_0x2666ad(-0x19f,-0x22a,-_0x3df535._0x2dfeed,-0x201)](_0x3cf142,_0x17537e)),_0x17537e;}[_0x949fe0(-0x200,-0x137,-0x128,-0x17d)](_0x2e9196){const _0x48c345={_0x676e71:0x193,_0x22de9b:0x19e},_0x1a13d1={_0x3fdb4f:0x47,_0x5740a2:0xa0};function _0x40f5b0(_0x2f47a3,_0x2a748f,_0x430d09,_0x590f4f){return _0x949fe0(_0x590f4f,_0x2f47a3-0x3a,_0x430d09-_0x1a13d1._0x3fdb4f,_0x590f4f-_0x1a13d1._0x5740a2);}return''+trimTrailingSlashes(this[_0x40f5b0(-_0x48c345._0x676e71,-0x108,-0x23e,-_0x48c345._0x22de9b)])+this['responsesPath']+'::'+_0x2e9196;}async[_0x2c5722(0x260,0x214,0x1c0,0x104)](_0x542a59){const _0x3fbabe={_0x2acb21:0x1d9,_0x468dfb:0x22f,_0x4f8691:0x244,_0x5a4a91:0x181,_0x94d904:0x127,_0x5229eb:0x17a,_0x11b741:0x1c5},_0x2c5119={_0x26e4d7:0x1b1},_0x1b2eb2={_0x142e68:0xb8,_0x1e5340:0x14};function _0x255f3c(_0x390a7f,_0x82f08d,_0x2da02d,_0x1c6b3f){return _0x2c5722(_0x2da02d,_0x82f08d-0x1a7,_0x1c6b3f-_0x1b2eb2._0x142e68,_0x1c6b3f-_0x1b2eb2._0x1e5340);}const _0x3f1a97=_0x542a59['pending'][_0x255f3c(_0x3fbabe._0x2acb21,0x2e7,_0x3fbabe._0x468dfb,_0x3fbabe._0x4f8691)](()=>{});let _0x336b82;function _0x1074dc(_0x589405,_0x6db500,_0x59ac41,_0x1acc97){return _0x949fe0(_0x1acc97,_0x59ac41-0x3d9,_0x59ac41-0xb1,_0x1acc97-_0x2c5119._0x26e4d7);}const _0x4acd97=new Promise(_0x54f04e=>{_0x336b82=_0x54f04e;});return _0x542a59[_0x255f3c(0xc0,_0x3fbabe._0x5a4a91,_0x3fbabe._0x94d904,_0x3fbabe._0x5229eb)]=_0x3f1a97[_0x255f3c(0x251,0x1bc,0x13c,_0x3fbabe._0x11b741)](()=>_0x4acd97),await _0x3f1a97,()=>{_0x336b82?.();};}async[_0x2c5722(0xaa,0x87,0xf4,0x186)](_0x3e34bc,_0x4d5bd4){const _0x291f14={_0x5752a1:0xfc,_0x5a802a:0x133,_0x33914b:0x9c,_0x4fa1c3:0x59,_0x37a411:0x229,_0x1d4257:0x120,_0x40269c:0x19b,_0x57258a:0x463,_0x459d2:0x3e9,_0x20005f:0x673,_0x599e50:0x592,_0x3abfad:0x52c,_0x1eece9:0x580,_0x43173f:0x555,_0x225264:0x4d3,_0x48f326:0x13b,_0x23e8d2:0x4bf,_0x23a714:0x1d0,_0x54257d:0x127,_0x69645c:0x23e,_0x3f0e73:0x168,_0x2706c9:0x1d5,_0x3419ac:0x182,_0x372360:0xc0},_0x86bb92={_0x1b627c:0x2f4},_0x4903eb={_0x3f94b0:0x10a},_0x49783d=this['applyModelDefaults'](_0x3e34bc),_0x55bc66=toModelRequest(_0x49783d);function _0x3d504c(_0x349e52,_0x230d65,_0x908bb3,_0x3dfe38){return _0x949fe0(_0x3dfe38,_0x230d65-0x6c7,_0x908bb3-0x15e,_0x3dfe38-_0x4903eb._0x3f94b0);}function _0xd81ed9(_0x100271,_0x65d39e,_0x2cd5de,_0x38a91c){return _0x949fe0(_0x2cd5de,_0x38a91c-_0x86bb92._0x1b627c,_0x2cd5de-0x1ed,_0x38a91c-0x1eb);}const _0x5c4458=await prepareProviderRequest(_0x55bc66,{'sessionManager':this[_0xd81ed9(_0x291f14._0x5752a1,_0x291f14._0x5a802a,0x18c,0x111)],'requestMutators':this[_0xd81ed9(_0x291f14._0x33914b,0x11e,_0x291f14._0x4fa1c3,0x11e)],'signal':_0x4d5bd4}),_0x1193a9=toChatRequest(_0x5c4458[_0xd81ed9(0x1a4,_0x291f14._0x37a411,_0x291f14._0x1d4257,_0x291f14._0x40269c)]),_0x33fcd1=this[_0x3d504c(0x4c3,0x4a7,_0x291f14._0x57258a,_0x291f14._0x459d2)][_0x3d504c(0x59d,0x5c6,_0x291f14._0x20005f,0x625)](this[_0x3d504c(_0x291f14._0x599e50,0x58f,_0x291f14._0x3abfad,0x5d3)],_0x5c4458[_0x3d504c(_0x291f14._0x1eece9,_0x291f14._0x43173f,_0x291f14._0x225264,0x5e2)]);if(!_0x33fcd1)throw this[_0xd81ed9(0x10d,0xb7,0x92,_0x291f14._0x48f326)]();return{'baseUrl':this[_0x3d504c(_0x291f14._0x23e8d2,0x4a7,0x4b3,0x4d4)]['resolveBaseUrl'](this[_0xd81ed9(0x1e3,_0x291f14._0x23a714,0xd0,_0x291f14._0x54257d)],_0x5c4458[_0xd81ed9(_0x291f14._0x69645c,_0x291f14._0x3f0e73,_0x291f14._0x2706c9,_0x291f14._0x3419ac)]),'credential':_0x33fcd1,'request':_0x1193a9,'session':_0x5c4458[_0xd81ed9(0x24c,0x23b,_0x291f14._0x372360,0x182)]};}[_0x949fe0(-0x13c,-0x193,-0x17b,-0x203)](_0x1ce4b5,_0x110633,_0x4c1fb9={}){const _0x2a90ba={_0x4d401d:0x105,_0x3c0c26:0xa3,_0x3ce61d:0xc7,_0x4c1ad5:0xfc,_0x5564ae:0x164,_0x42bf88:0x43f,_0x5a7c53:0x42c,_0xe07f36:0x4dd,_0x3b8a18:0x4f8,_0x429188:0x9c,_0x38bdf2:0xb9,_0x29964f:0x78,_0x371b9a:0x46b,_0x1f0f09:0xa3,_0x525766:0x81},_0x49d6fb={_0x247ff4:0x207,_0x5a9050:0x4c};function _0x129971(_0x53bce0,_0x3d2737,_0x3bdf30,_0x837d34){return _0x2c5722(_0x3bdf30,_0x3d2737-0xc7,_0x53bce0- -_0x49d6fb._0x247ff4,_0x837d34-_0x49d6fb._0x5a9050);}if(!_0x4c1fb9[_0x129971(-_0x2a90ba._0x4d401d,-0x107,-0x73,-_0x2a90ba._0x3c0c26)]){const _0x13c0c1=this[_0x48f96d(0x425,0x47d,0x3f9,0x3db)](_0x1ce4b5);if(_0x13c0c1&&_0x110633['lastResponseId']&&_0x13c0c1['responseId']===_0x110633[_0x129971(-0xe6,-_0x2a90ba._0x3ce61d,-_0x2a90ba._0x4c1ad5,-_0x2a90ba._0x5564ae)]){const _0x316bc3=toOpenAiResponsesRequest({..._0x1ce4b5,'messages':_0x1ce4b5[_0x48f96d(0x414,0x45e,_0x2a90ba._0x42bf88,_0x2a90ba._0x5a7c53)][_0x48f96d(_0x2a90ba._0xe07f36,0x3c1,0x46f,_0x2a90ba._0x3b8a18)](_0x13c0c1[_0x129971(-0xba,0x8,-0x136,-0x42)]+0x1)})[_0x129971(-_0x2a90ba._0x429188,-_0x2a90ba._0x38bdf2,-_0x2a90ba._0x29964f,-0xf7)];return{'event':createOpenAiResponsesWebSocketEvent(_0x1ce4b5,{'input':_0x316bc3,'previousResponseId':_0x13c0c1[_0x48f96d(0x478,0x3ad,0x478,_0x2a90ba._0x371b9a)]}),'previousResponseId':_0x13c0c1[_0x129971(-_0x2a90ba._0x1f0f09,-0xdd,-0xe9,-_0x2a90ba._0x525766)]};}}function _0x48f96d(_0x42b72f,_0x21a893,_0x35d657,_0x562fac){return _0x2c5722(_0x21a893,_0x21a893-0x62,_0x35d657-0x314,_0x562fac-0xb0);}return{'event':createOpenAiResponsesWebSocketEvent(_0x1ce4b5)};}[_0x2c5722(0xd0,0x10f,0xe5,0x53)](_0x53d451){const _0x5e612d={_0x4c5a91:0xe6,_0x4c89fd:0x2a,_0x5611a4:0x1f1,_0x416b8d:0xcb,_0x3ab09e:0x59,_0x37ac5c:0x16e,_0x33b93a:0x118,_0x3de3ea:0x274,_0x362b1f:0x1cb},_0x310408={_0x229c77:0xa};function _0xab9d3d(_0x4778cd,_0x17fe31,_0xcf6aa1,_0x732d01){return _0x949fe0(_0x17fe31,_0xcf6aa1-0x16,_0xcf6aa1-_0x310408._0x229c77,_0x732d01-0xcb);}for(let _0x557495=_0x53d451['messages'][_0xab9d3d(-0x6a,-0x110,-_0x5e612d._0x4c5a91,-_0x5e612d._0x4c89fd)]-0x1;_0x557495>=0x0;_0x557495-=0x1){const _0x1762a1=_0x53d451[_0xab9d3d(-0x102,-0x187,-0x163,-0x156)][_0x557495],_0x9c11fe=_0x1762a1[_0xab9d3d(-_0x5e612d._0x5611a4,-0x1f3,-0x15d,-_0x5e612d._0x416b8d)]===_0xab9d3d(-_0x5e612d._0x3ab09e,-_0x5e612d._0x37ac5c,-_0x5e612d._0x33b93a,-0x1a2)?_0x1762a1['providerState']?.[_0xab9d3d(-_0x5e612d._0x3de3ea,-0x216,-_0x5e612d._0x362b1f,-0x263)]:void 0x0;if(_0x9c11fe)return{'messageIndex':_0x557495,'responseId':_0x9c11fe};}function _0x519c99(_0x5982ba,_0x4253ce,_0x288657,_0x3bc5c8){return _0x2c5722(_0x4253ce,_0x4253ce-0x61,_0x5982ba- -0x2dc,_0x3bc5c8-0x1ed);}return void 0x0;}[_0x2c5722(0x6a,-0x2a,0x7f,0x71)](_0xac38c1){const _0x48b734={_0x34a07d:0xc3,_0x187d0b:0x167,_0x29daf6:0x1b3},_0x1178f2={_0x1300e1:0xa8,_0x312ddc:0xe5};function _0x5e1152(_0x11464e,_0x1bf337,_0x37961d,_0x1f7f0d){return _0x2c5722(_0x1f7f0d,_0x1bf337-0x8e,_0x37961d- -_0x1178f2._0x1300e1,_0x1f7f0d-_0x1178f2._0x312ddc);}return _0xac38c1 instanceof ProviderStreamEventError&&(_0xac38c1['code']==='previous_response_not_found'||_0xac38c1[_0x5e1152(_0x48b734._0x34a07d,_0x48b734._0x187d0b,0x114,_0x48b734._0x29daf6)]==='websocket_connection_limit_reached');}[_0x949fe0(-0x1cd,-0x20e,-0x2d6,-0x294)](_0x280e30){const _0x2b7742={_0xf2a7f7:0x5a8,_0x160fa1:0x5e1,_0xe18ad6:0x4ec,_0x4e4b66:0x4fb,_0xe0d3c2:0x531,_0x9033d1:0x16,_0x32e052:0x5bd,_0x7148e2:0x51b,_0x2c4bb9:0x589,_0x3b07bb:0xf0,_0x402c46:0x37,_0x4ca68c:0x53c,_0x2bf222:0x497},_0x2590f9={_0x488d12:0x16d,_0x4eb64f:0x186},_0x527896={_0x30e425:0xfb,_0x3e96aa:0x413,_0x4f4115:0xd8};function _0x10a8d4(_0x509848,_0x29927c,_0x52ea9d,_0xdc95ed){return _0x2c5722(_0x52ea9d,_0x29927c-_0x527896._0x30e425,_0x509848-_0x527896._0x3e96aa,_0xdc95ed-_0x527896._0x4f4115);}const _0x39ae5a=_0x280e30[_0x10a8d4(_0x2b7742._0xf2a7f7,0x501,_0x2b7742._0x160fa1,_0x2b7742._0xe18ad6)];_0x280e30[_0x10a8d4(_0x2b7742._0xf2a7f7,_0x2b7742._0x4e4b66,0x53e,_0x2b7742._0xe0d3c2)]=void 0x0;function _0x30fd0a(_0x4039f9,_0x546263,_0x45e687,_0xf955b7){return _0x949fe0(_0xf955b7,_0x4039f9-_0x2590f9._0x488d12,_0x45e687-_0x2590f9._0x4eb64f,_0xf955b7-0x144);}_0x280e30['connecting']=void 0x0,_0x280e30[_0x30fd0a(-_0x2b7742._0x9033d1,-0x70,-0x5e,-0x59)]=void 0x0,_0x39ae5a?.[_0x10a8d4(_0x2b7742._0x32e052,_0x2b7742._0x7148e2,0x62f,_0x2b7742._0x2c4bb9)]===WebSocket[_0x30fd0a(-0x8d,-_0x2b7742._0x3b07bb,-0x9d,_0x2b7742._0x402c46)]&&_0x39ae5a['close'](0x3e8,_0x10a8d4(0x4a4,_0x2b7742._0x4ca68c,0x464,_0x2b7742._0x2bf222));}async[_0x949fe0(-0x26d,-0x252,-0x187,-0x1a1)](_0x5a3c04,_0x201b09,_0x1225d3,_0x4922f5,_0x10f168){const _0x3dcd6f={_0x2dc2e8:0x1ba,_0x2bd379:0x131,_0x3e2ea9:0x42f,_0x19d39c:0x4ad,_0x3285fc:0x43e,_0x373b0e:0x403},_0x41bef5={_0x1df555:0x198,_0x5ba3e2:0x5a,_0x29cc2b:0xfb,_0x5e9b0e:0x107,_0x26c908:0xe5,_0x1c584f:0xb1,_0xa68b92:0xa5,_0x6081bd:0x20,_0xc4779f:0x461,_0x1d4a8e:0x548,_0x45df7e:0x9b,_0x21d674:0x40a,_0x4ed552:0x406,_0x221933:0x428,_0x48d5d3:0x4a0,_0x501589:0x38e,_0x2dc444:0x35b,_0x21e3f1:0x3ef,_0x4331da:0x3bf,_0x58c065:0x394,_0x2eccdb:0x45d,_0x2af102:0x4f5,_0x553e13:0x4b3,_0x382c15:0x4cd,_0x363bcb:0x53b,_0x465306:0x4b,_0x2db2f4:0x60,_0x4adacf:0xc3,_0x585f59:0x494,_0x35020b:0x547,_0x1c6811:0x55c,_0x2fad2a:0x44e,_0x31406f:0x40c,_0x263bd1:0x45c,_0x3e0894:0x124,_0x9e335a:0x15e,_0x9c9eb:0x4a5,_0x3186bd:0x55c,_0x5521f8:0x45b,_0x5175cb:0x3fb,_0x23676a:0x429,_0x51c185:0x3a9},_0x5e3cf6={_0x36df69:0x129,_0x4fc210:0x4e},_0x5f3f29={_0x1e95ca:0x3b9,_0x5cc2bf:0x44c,_0x22863a:0x494,_0xb7d82f:0x251,_0x47794a:0x1cf,_0x510537:0x1b8},_0x1ece29={_0x315a59:0x181},_0x152d0b={_0x40059c:0x6f},_0x3b0cd2={_0x125df7:0xac,_0x3e19b7:0x290};if(_0x201b09['socket']?.['readyState']===WebSocket['OPEN'])return _0x201b09[_0xc71139(-_0x3dcd6f._0x2dc2e8,-0xb4,-0x11f,-0xfb)];function _0xc71139(_0x3eb6aa,_0x14b5df,_0x47bca8,_0x5112cc){return _0x2c5722(_0x14b5df,_0x14b5df-_0x3b0cd2._0x125df7,_0x5112cc- -_0x3b0cd2._0x3e19b7,_0x5112cc-0x41);}if(_0x201b09[_0xc71139(-_0x3dcd6f._0x2bd379,-0x2e,-0x62,-0xc8)])return await _0x201b09['connecting'];function _0x13918f(_0x1be51c,_0x468d30,_0x39bc6b,_0x40ed61){return _0x2c5722(_0x468d30,_0x468d30-_0x152d0b._0x40059c,_0x1be51c-0x2f2,_0x40ed61-0x1d7);}_0x201b09['connecting']=((async()=>{const _0x11e075={_0x4dab6b:0x2d9,_0x10c21b:0xd6},_0x1cd6e8=await this['createHeaders']({'request':_0x1225d3[_0x380ee2(0x10f,0xe3,0x114,_0x41bef5._0x1df555)],'body':_0x4922f5,'credential':_0x1225d3['credential'],'session':_0x1225d3[_0x380ee2(0xe9,_0x41bef5._0x5ba3e2,_0x41bef5._0x29cc2b,_0x41bef5._0x5e9b0e)],'stream':!![]},{'accept':_0x380ee2(_0x41bef5._0x26c908,_0x41bef5._0x1c584f,_0x41bef5._0xa68b92,-_0x41bef5._0x6081bd),'includeContentType':![]});_0x1cd6e8[_0x329a46(0x4d4,_0x41bef5._0xc4779f,_0x41bef5._0x1d4a8e,0x4a4)](_0x380ee2(0xcd,0x43,0x25,_0x41bef5._0x45df7e));function _0x329a46(_0x384641,_0x350781,_0x40ec8e,_0x152bb0){return _0xc71139(_0x384641-0xd4,_0x384641,_0x40ec8e-_0x1ece29._0x315a59,_0x152bb0-0x642);}const _0x117f2e=this[_0x329a46(_0x41bef5._0x21d674,_0x41bef5._0x4ed552,0x408,_0x41bef5._0x221933)]({'headers':Object[_0x329a46(_0x41bef5._0x48d5d3,_0x41bef5._0x501589,_0x41bef5._0x2dc444,_0x41bef5._0x21e3f1)](_0x1cd6e8['entries']()),'url':(''+_0x1225d3['baseUrl']+this[_0x329a46(_0x41bef5._0x4331da,0x4ac,_0x41bef5._0x58c065,_0x41bef5._0x2eccdb)])[_0x329a46(0x4e4,_0x41bef5._0x2af102,_0x41bef5._0x553e13,_0x41bef5._0x382c15)](/^http:/,'ws:')[_0x329a46(_0x41bef5._0x363bcb,0x433,0x464,0x4cd)](/^https:/,'wss:')}),_0x5dc69c=()=>{const _0x4c35fd={_0xea65f7:0xea,_0x480521:0x7b};function _0x322f0c(_0x55ac55,_0xdce075,_0x2aa849,_0x74d6f9){return _0x380ee2(_0x55ac55-_0x4c35fd._0xea65f7,_0x2aa849,_0x74d6f9-0xce,_0x74d6f9-_0x4c35fd._0x480521);}function _0x3c504d(_0x273fd1,_0x5ae87f,_0x1ad69c,_0x20d6f8){return _0x380ee2(_0x273fd1-0x156,_0x5ae87f,_0x1ad69c-_0x11e075._0x4dab6b,_0x20d6f8-_0x11e075._0x10c21b);}_0x201b09['socket']===_0x117f2e&&(_0x201b09[_0x3c504d(_0x5f3f29._0x1e95ca,_0x5f3f29._0x5cc2bf,0x437,_0x5f3f29._0x22863a)]=void 0x0,_0x201b09[_0x322f0c(0x215,_0x5f3f29._0xb7d82f,_0x5f3f29._0x47794a,_0x5f3f29._0x510537)]=void 0x0);};_0x117f2e['addEventListener'](_0x380ee2(-0x4d,_0x41bef5._0x465306,_0x41bef5._0x2db2f4,_0x41bef5._0x4adacf),_0x5dc69c);function _0x380ee2(_0x3b713b,_0x3bdbe6,_0x2a2673,_0x24265b){return _0x13918f(_0x2a2673- -0x329,_0x3bdbe6,_0x2a2673-_0x5e3cf6._0x36df69,_0x24265b-_0x5e3cf6._0x4fc210);}try{return throwIfAborted(_0x10f168),_0x117f2e[_0x329a46(_0x41bef5._0x585f59,0x4b0,_0x41bef5._0x35020b,_0x41bef5._0x1c6811)]!==WebSocket[_0x329a46(0x399,_0x41bef5._0x2fad2a,_0x41bef5._0x31406f,_0x41bef5._0x263bd1)]&&await waitForWebSocketOpen(_0x117f2e,_0x10f168),throwIfAborted(_0x10f168),_0x201b09[_0x380ee2(_0x41bef5._0x3e0894,0x1ab,_0x41bef5._0x9e335a,0x1a2)]=_0x117f2e,_0x117f2e;}catch(_0x5a9dda){_0x5dc69c();_0x117f2e[_0x329a46(_0x41bef5._0x9c9eb,0x575,0x625,_0x41bef5._0x3186bd)]===WebSocket[_0x329a46(_0x41bef5._0x5521f8,_0x41bef5._0x5175cb,0x48e,_0x41bef5._0x263bd1)]&&_0x117f2e[_0x380ee2(0xc8,0xb7,0x60,0x6a)](0x3e8,_0x329a46(_0x41bef5._0x23676a,0x47c,_0x41bef5._0x51c185,0x3ff));throw _0x5a9dda;}})());try{return await _0x201b09[_0x13918f(0x4ba,_0x3dcd6f._0x3e2ea9,_0x3dcd6f._0x19d39c,0x523)];}finally{_0x201b09[_0x13918f(0x4ba,0x44d,_0x3dcd6f._0x3285fc,_0x3dcd6f._0x373b0e)]=void 0x0;}}async*[_0x2c5722(0x198,0x116,0x196,0x23c)](_0x58bc60,_0x2fc410){const _0x219ca2={_0x178ca7:0x4de,_0xdcd4c4:0x590,_0x14b1a6:0x443,_0x190f44:0x3b2,_0x5d8727:0x562,_0x4cff63:0x536,_0x2ab44e:0x4b0,_0x40a8ea:0x479,_0x20370f:0x3ee,_0x2e7f88:0x3ff,_0x2546cb:0x40e,_0x1293c3:0x3f7,_0x3ef64a:0x385,_0x4e1f6e:0x382,_0x195ae9:0x34a,_0x8e1b3c:0x42c,_0x250810:0x367,_0x32249b:0x425,_0x4602a1:0x471,_0x5a3685:0x4d8,_0x590af0:0x3e0,_0x492a94:0x4a2,_0x7047a1:0x46b,_0x107ece:0x37e,_0x45cc11:0x482,_0x4600b3:0x447},_0x38ac5b={_0x1ad2fa:0x60c},_0x1b5978={_0x4aae26:0x162},_0x11905c=this[_0x1555c4(0x58c,_0x219ca2._0x178ca7,_0x219ca2._0xdcd4c4,0x49a)](_0x58bc60);function _0x1555c4(_0x588102,_0x5d47bb,_0x3096ac,_0x7f1ba){return _0x949fe0(_0x7f1ba,_0x5d47bb-0x5bf,_0x3096ac-0xc9,_0x7f1ba-_0x1b5978._0x4aae26);}const _0x59344c=this[_0x3b4af7(_0x219ca2._0x14b1a6,0x393,_0x219ca2._0x190f44,0x43a)](_0x11905c['metadata']['sessionId']),_0x3d3494=await this[_0x3b4af7(0x5ae,0x47d,_0x219ca2._0x5d8727,0x528)](_0x59344c);function _0x3b4af7(_0x3644e7,_0x538d66,_0x5b94c9,_0x5cb09d){return _0x949fe0(_0x538d66,_0x5cb09d-_0x38ac5b._0x1ad2fa,_0x5b94c9-0x1ca,_0x5cb09d-0x158);}try{const _0x71eeff=this[_0x3b4af7(_0x219ca2._0x4cff63,0x3ff,_0x219ca2._0x2ab44e,_0x219ca2._0x40a8ea)](_0x11905c,_0x59344c);try{yield*this['streamViaResponsesSocketAttempt'](_0x11905c[_0x1555c4(_0x219ca2._0x20370f,0x49a,_0x219ca2._0x2e7f88,0x50e)]['sessionId'],_0x59344c,_0x11905c,_0x71eeff['event'],_0x2fc410?.[_0x3b4af7(0x381,0x452,_0x219ca2._0x2546cb,_0x219ca2._0x1293c3)]);return;}catch(_0x156820){if(!_0x71eeff[_0x1555c4(_0x219ca2._0x40a8ea,0x438,_0x219ca2._0x3ef64a,_0x219ca2._0x4e1f6e)]||!this['shouldRetryResponsesSocketRequest'](_0x156820)){this[_0x1555c4(0x46f,0x3b1,0x410,_0x219ca2._0x195ae9)](_0x59344c);throw _0x156820;}}this['invalidateResponsesSocketSession'](_0x59344c);const _0x511a4f=this[_0x1555c4(0x417,_0x219ca2._0x8e1b3c,0x478,_0x219ca2._0x250810)](_0x11905c,_0x59344c,{'forceFullReplay':!![]});yield*this[_0x1555c4(0x466,_0x219ca2._0x32249b,0x36d,_0x219ca2._0x4602a1)](_0x11905c[_0x1555c4(0x4b7,0x49a,_0x219ca2._0x5a3685,0x4a7)][_0x1555c4(_0x219ca2._0x590af0,_0x219ca2._0x492a94,_0x219ca2._0x7047a1,0x4d3)],_0x59344c,_0x11905c,_0x511a4f[_0x3b4af7(_0x219ca2._0x107ece,0x3b5,_0x219ca2._0x45cc11,_0x219ca2._0x4600b3)],_0x2fc410?.['signal']);}finally{_0x3d3494();}}async*[_0x949fe0(-0x1a5,-0x19a,-0x122,-0x101)](_0x521ce5,_0x50978b,_0x3c5122,_0x1f3855,_0x3a4fca){const _0x351ba9={_0x3d00ed:0x291,_0x51c854:0x220,_0x14e425:0x2f1,_0x3d926a:0x353,_0x45ab46:0x331,_0x4febd7:0x2b5,_0x478263:0x268,_0x28957f:0x226,_0x422822:0x1ca,_0x52f548:0x40,_0x3b2f6d:0x185,_0x5cb2c3:0xf1,_0x5864a9:0xf3,_0x289be0:0x2a0,_0x3d7834:0x25d,_0x15636f:0x28e,_0x570aa9:0x24e,_0x30f66c:0x16e,_0x59fd1f:0x20a,_0x10b2cd:0x1c7,_0x48862d:0x2db,_0x2eb68f:0x372,_0x4dcc07:0x170,_0x4eda9d:0x201,_0x3bc9bb:0x222},_0x309433={_0x42b2a8:0x2a,_0x515859:0x1c7},_0x24b983=await this[_0x1c462d(_0x351ba9._0x3d00ed,0x232,0x289,0x2c0)](_0x3c5122,_0x3a4fca);function _0x4383dc(_0x593423,_0x5ebd4f,_0x3c3331,_0x417bf3){return _0x949fe0(_0x593423,_0x3c3331-_0x309433._0x42b2a8,_0x3c3331-_0x309433._0x515859,_0x417bf3-0x16b);}function _0x1c462d(_0x368751,_0x245d26,_0x1632e9,_0x14848a){return _0x949fe0(_0x368751,_0x14848a-0x470,_0x1632e9-0x137,_0x14848a-0x8);}const _0x1ace6f=await this[_0x4383dc(-_0x351ba9._0x51c854,-0x274,-0x228,-0x2e7)](_0x521ce5,_0x50978b,_0x24b983,_0x1f3855,_0x3a4fca),_0x43c98e=createOpenAiResponsesStreamParser(_0x3c5122);throwIfAborted(_0x3a4fca),_0x1ace6f[_0x1c462d(_0x351ba9._0x14e425,_0x351ba9._0x3d926a,_0x351ba9._0x45ab46,_0x351ba9._0x4febd7)](JSON['stringify'](_0x1f3855));for await(const _0x480c26 of iterateWebSocketMessages(_0x1ace6f,_0x3a4fca)){const _0x48f50c=_0x43c98e[_0x4383dc(-_0x351ba9._0x478263,-0x2b3,-_0x351ba9._0x28957f,-_0x351ba9._0x422822)]?.(_0x480c26)??[];yield*_0x48f50c;if(_0x43c98e[_0x4383dc(-_0x351ba9._0x52f548,-_0x351ba9._0x3b2f6d,-_0x351ba9._0x5cb2c3,-_0x351ba9._0x5864a9)]?.())break;}if(!_0x43c98e[_0x4383dc(-0x6b,-0x3f,-0xf1,-0x138)]?.())throw new Error(_0x1c462d(0x220,0x275,0x25f,_0x351ba9._0x289be0));const _0x1eaa3b=_0x43c98e['finish'](),_0x41afb9=_0x1eaa3b[_0x1c462d(_0x351ba9._0x3d7834,0x22a,_0x351ba9._0x15636f,_0x351ba9._0x570aa9)]?.[_0x4383dc(-_0x351ba9._0x30f66c,-_0x351ba9._0x59fd1f,-0x1b7,-_0x351ba9._0x10b2cd)]??_0x1eaa3b['id'];_0x41afb9&&(_0x50978b[_0x1c462d(0x378,_0x351ba9._0x48862d,_0x351ba9._0x2eb68f,0x2ed)]=_0x41afb9),yield{'type':_0x4383dc(-_0x351ba9._0x4dcc07,-_0x351ba9._0x4eda9d,-_0x351ba9._0x3bc9bb,-0x1bc),'response':_0x1eaa3b};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x2c5722(0x94,0x147,0x139,0xd2),_0x949fe0(-0xc2,-0x120,-0x99,-0x58),'openai-responses',_0x949fe0(-0x118,-0xed,-0x147,-0x71)];function isAnthropicSurface(_0x37d1f8){const _0xc65570={_0x383b37:0x3d5},_0x2febdf={_0x235390:0x4ef,_0x1233e0:0x2};function _0x278186(_0xca16b4,_0x525ea2,_0x4652b4,_0x39ef2d){return _0x949fe0(_0xca16b4,_0x525ea2-_0x2febdf._0x235390,_0x4652b4-0x173,_0x39ef2d-_0x2febdf._0x1233e0);}return _0x37d1f8===_0x278186(_0xc65570._0x383b37,0x384,0x2cb,0x2e2);}function resolveDefaultBaseUrl(_0x22baa1){const _0x4c7d91={_0x57f3f7:0x26f,_0x1ef1e5:0x2a7,_0x46be64:0x133,_0xdfa8ed:0x151},_0x1e65b1={_0x33a5c4:0x4ac,_0x363698:0x17a},_0x438af7={_0x28a0f3:0x2c};function _0x1ab40c(_0x13969c,_0x519654,_0x5daf06,_0x3532b6){return _0x2c5722(_0x13969c,_0x519654-0x1d4,_0x3532b6- -0x23d,_0x3532b6-_0x438af7._0x28a0f3);}function _0x1b7c60(_0x2d381a,_0x1f143a,_0x7d75b5,_0x17fb11){return _0x949fe0(_0x2d381a,_0x7d75b5-_0x1e65b1._0x33a5c4,_0x7d75b5-_0x1e65b1._0x363698,_0x17fb11-0x21);}return isAnthropicSurface(_0x22baa1)?_0x1b7c60(0x346,_0x4c7d91._0x57f3f7,_0x4c7d91._0x1ef1e5,0x2e4):_0x1ab40c(-0x17a,-_0x4c7d91._0x46be64,-_0x4c7d91._0xdfa8ed,-0xb2);}var ChatModel=class{[_0x2c5722(-0x46,-0x44,0x56,0x65)];[_0x949fe0(-0x16c,-0xe7,-0x188,-0x10c)];[_0x949fe0(-0x198,-0x263,-0x1ac,-0x1c4)];[_0x2c5722(0x156,0x188,0xf1,0x13f)];[_0x2c5722(0x85,0x193,0xea,0x15f)];constructor(_0x47ccc6={}){const _0x1911c8={_0x39f754:0x3d7,_0x121445:0x328,_0x27ab46:0x4d3,_0x7f6d68:0x4f0,_0x5a8bb7:0x467,_0xa69741:0x466,_0x573b09:0x8e,_0x1224a3:0x7e,_0x222de2:0x5c,_0x35d627:0xfe,_0x30e5ef:0x505,_0xbb2a03:0x43c,_0x2bb7e0:0x68,_0x47319e:0x411,_0x53b14f:0x3a0,_0x488445:0x438,_0x2d16dd:0x3f5,_0x46669b:0x451,_0x2b1525:0x4fb,_0x287bd3:0xdb,_0x350329:0x127,_0x379742:0xd1,_0x16f23a:0xaf,_0x21699b:0x6a,_0x1a6357:0x1a,_0xea0126:0x57f,_0x6cc060:0x443,_0x1c1af1:0x43e,_0x4bc473:0x4a7,_0x5762c9:0x7e,_0x4476c9:0x420,_0x18fb9e:0x110,_0x588df4:0x44,_0x1f2fc2:0x2e,_0x3b4d86:0x58,_0x2ca862:0x399,_0x102cf2:0x38f,_0x3df190:0x168,_0x4badde:0xbd},_0xdbf94c={_0xa5a5ee:0xc2},_0x164ce6={_0x397455:0x1ad};this[_0x55fe38(0x3cb,0x449,_0x1911c8._0x39f754,_0x1911c8._0x121445)]=_0x47ccc6['model']??_0x55fe38(_0x1911c8._0x27ab46,_0x1911c8._0x7f6d68,_0x1911c8._0x5a8bb7,_0x1911c8._0xa69741),this['maxTokens']=_0x47ccc6[_0x1cb9d2(0x7d,_0x1911c8._0x573b09,0x143,_0x1911c8._0x1224a3)]??0x4000,this[_0x1cb9d2(-0x13b,-0xe0,-0x118,-0xfe)]=_0x47ccc6[_0x1cb9d2(-0x1b9,-_0x1911c8._0x222de2,-0x18c,-_0x1911c8._0x35d627)]??_0x55fe38(0x44a,0x585,_0x1911c8._0x30e5ef,_0x1911c8._0xbb2a03);function _0x1cb9d2(_0x588f98,_0x34ec4d,_0x40db32,_0x159543){return _0x2c5722(_0x40db32,_0x34ec4d-0x11d,_0x159543- -0x13f,_0x159543-_0x164ce6._0x397455);}const _0x461a61=trimTrailingSlashes(_0x47ccc6[_0x1cb9d2(-0xa6,-0xbd,-0x24,-_0x1911c8._0x2bb7e0)]??resolveDefaultBaseUrl(this[_0x55fe38(0x3e3,0x3a8,0x3c2,0x373)]));function _0x55fe38(_0x3d3bef,_0x5ef39e,_0x3ee21d,_0x4acf45){return _0x949fe0(_0x5ef39e,_0x3ee21d-0x625,_0x3ee21d-_0xdbf94c._0xa5a5ee,_0x4acf45-0xc7);}if(isAnthropicSurface(this[_0x55fe38(0x442,_0x1911c8._0x47319e,0x3c2,_0x1911c8._0x53b14f)])){this[_0x55fe38(_0x1911c8._0x488445,0x3ae,0x472,_0x1911c8._0x2d16dd)]=new AnthropicModel({'apiKey':_0x47ccc6[_0x55fe38(0x59b,0x5b3,0x4ed,_0x1911c8._0x46669b)],'authScheme':_0x47ccc6[_0x55fe38(0x430,0x5b0,_0x1911c8._0x2b1525,0x441)],'baseUrl':_0x461a61,'fetch':_0x47ccc6[_0x1cb9d2(0xab,_0x1911c8._0x287bd3,0x95,0x28)],'maxTokens':this[_0x1cb9d2(0x14,_0x1911c8._0x350329,_0x1911c8._0x379742,0x7e)],'model':this['model'],'reasoning':_0x47ccc6[_0x1cb9d2(-_0x1911c8._0x16f23a,-0x94,-_0x1911c8._0x21699b,-_0x1911c8._0x1a6357)],'providerSessionResolver':_0x47ccc6['providerSessionResolver'],'requestMutators':_0x47ccc6['requestMutators']});return;}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x47ccc6[_0x1cb9d2(0x62,-0x24,0xda,0x2d)],'baseUrl':_0x461a61,'fetch':_0x47ccc6[_0x55fe38(0x535,_0x1911c8._0xea0126,0x4e8,0x54c)],'headerResolver':_0x47ccc6[_0x55fe38(_0x1911c8._0x6cc060,_0x1911c8._0x1c1af1,_0x1911c8._0x4bc473,0x45d)],'maxTokens':this[_0x1cb9d2(0xba,0xb7,0xb6,_0x1911c8._0x5762c9)],'model':this['model'],'reasoning':_0x47ccc6[_0x55fe38(_0x1911c8._0x4476c9,0x4d6,0x4a6,0x53d)],'providerSessionResolver':_0x47ccc6[_0x1cb9d2(-_0x1911c8._0x18fb9e,_0x1911c8._0x588df4,_0x1911c8._0x1f2fc2,-_0x1911c8._0x3b4d86)],'requestMutators':_0x47ccc6[_0x55fe38(_0x1911c8._0x2ca862,0x4cc,0x44f,_0x1911c8._0x102cf2)],'webSocketFactory':_0x47ccc6[_0x1cb9d2(-0x149,-_0x1911c8._0x3df190,-_0x1911c8._0x4badde,-0xc9)]});}[_0x949fe0(-0xb6,-0x13a,-0x130,-0xb1)](){const _0x22fc09={_0x326a2e:0x9e,_0x399f4f:0x139,_0x6465d8:0xf5,_0x221b4b:0xc2,_0x46c331:0x88,_0x33e8f0:0x36,_0x46f01c:0x84},_0x417c36={_0xf4fa12:0x42,_0x37d38b:0x1cc},_0x90e731={_0x423669:0x1a1,_0x412630:0x100};function _0x33d0b8(_0xa404f0,_0x15dd99,_0xc3a429,_0x4b7675){return _0x949fe0(_0x4b7675,_0x15dd99-0x1db,_0xc3a429-_0x90e731._0x423669,_0x4b7675-_0x90e731._0x412630);}if(!this['anthropicDelegate'])throw new Error(_0x214f4a(_0x22fc09._0x326a2e,_0x22fc09._0x399f4f,_0x22fc09._0x6465d8,0x8c)+this[_0x33d0b8(-_0x22fc09._0x221b4b,-_0x22fc09._0x46c331,0x13,-0x39)]);function _0x214f4a(_0xb31c5a,_0x11a150,_0x189d14,_0x4ae91f){return _0x2c5722(_0x189d14,_0x11a150-0x86,_0x11a150- -_0x417c36._0xf4fa12,_0x4ae91f-_0x417c36._0x37d38b);}return this[_0x214f4a(0x50,0xaf,_0x22fc09._0x33e8f0,_0x22fc09._0x46f01c)];}[_0x2c5722(0x114,0x193,0x15f,0xf8)](){const _0x4cc015={_0x1b507b:0x15,_0x371bd0:0xd,_0x4d0d31:0x25,_0x1f69a6:0x3f6,_0x34d7e9:0x496,_0x5c0557:0x483,_0x283658:0x3fa,_0x4bc6aa:0x5cc,_0x38eee1:0x53f,_0x1e5269:0x53e},_0x4c6f0d={_0x17e748:0xe8};if(!this['openAiDelegate'])throw new Error(_0x2442f0(_0x4cc015._0x1b507b,-0x8d,-_0x4cc015._0x371bd0,_0x4cc015._0x4d0d31)+this[_0x3fef1f(_0x4cc015._0x1f69a6,_0x4cc015._0x34d7e9,_0x4cc015._0x5c0557,_0x4cc015._0x283658)]);function _0x3fef1f(_0x3f0cec,_0x10fb87,_0x3b72ac,_0x1599aa){return _0x949fe0(_0x3b72ac,_0x10fb87-0x6f9,_0x3b72ac-0x3f,_0x1599aa-0x64);}function _0x2442f0(_0xd614cf,_0x41ed92,_0x585aed,_0x23fc2e){return _0x949fe0(_0x585aed,_0xd614cf-0x17f,_0x585aed-0x146,_0x23fc2e-_0x4c6f0d._0x17e748);}return this[_0x3fef1f(_0x4cc015._0x4bc6aa,_0x4cc015._0x38eee1,0x4a1,_0x4cc015._0x1e5269)];}[_0x949fe0(-0x1aa,-0x25c,-0x2e1,-0x2a2)](_0x14e0d8,_0x54f80e){const _0x2698e8={_0x3f8730:0x337,_0x2554dc:0x387,_0x447352:0x38d,_0x1835cd:0x591,_0x116743:0x472,_0x23f701:0x5ba,_0x1aebfd:0x632,_0x663c3c:0x424,_0x2a1cbc:0x3f6,_0x3d956e:0x4a4,_0x572a4f:0x40f,_0x48c898:0x522,_0x54ab12:0x4fe,_0x12c704:0x5ff},_0x244ff3={_0x40de00:0x6d6,_0x14581a:0x1e4,_0x50ea6a:0x120};function _0x25db4d(_0x4bbfa4,_0x5134ea,_0x1b9eb5,_0x5ec154){return _0x2c5722(_0x4bbfa4,_0x5134ea-0x33,_0x1b9eb5-0x32d,_0x5ec154-0x21);}function _0x590553(_0x18f17d,_0x49ce6e,_0x51f9e1,_0x3dacd8){return _0x949fe0(_0x18f17d,_0x51f9e1-_0x244ff3._0x40de00,_0x51f9e1-_0x244ff3._0x14581a,_0x3dacd8-_0x244ff3._0x50ea6a);}switch(this['surface']){case'anthropic-messages':return this['getAnthropicDelegate']()['complete'](_0x14e0d8,_0x54f80e);case _0x25db4d(_0x2698e8._0x3f8730,_0x2698e8._0x2554dc,_0x2698e8._0x447352,0x2ec):return this[_0x590553(0x5ad,0x64f,_0x2698e8._0x1835cd,0x656)]()[_0x25db4d(0x3b7,_0x2698e8._0x116743,0x3b8,0x3a2)](_0x14e0d8,_0x54f80e);case _0x590553(0x664,_0x2698e8._0x23f701,0x5e9,_0x2698e8._0x1aebfd):return this[_0x25db4d(_0x2698e8._0x663c3c,_0x2698e8._0x2a1cbc,0x48c,0x49f)]()[_0x590553(_0x2698e8._0x3d956e,_0x2698e8._0x572a4f,0x495,_0x2698e8._0x48c898)](_0x14e0d8,_0x54f80e);default:return this[_0x590553(_0x2698e8._0x54ab12,0x5ea,0x591,_0x2698e8._0x12c704)]()['chatComplete'](_0x14e0d8,_0x54f80e);}}[_0x949fe0(-0x200,-0x162,-0x1b6,-0x1c3)](_0x5723db,_0xfc3c5a){const _0x36574f={_0x389797:0x110,_0x4f7b7c:0xff,_0x594568:0x18a,_0x480e8c:0xd5,_0xc321b:0x58,_0x30831e:0x36,_0x1a6ebe:0xd,_0x36ff2c:0xf7,_0x5c735a:0x141,_0x1dda87:0x1bc,_0x3dd4d9:0x2,_0x1408d7:0xf8,_0x45e134:0x1ef,_0x3536af:0xf2,_0x386e13:0x7f,_0x44096d:0x1b6,_0x117fdf:0xec,_0xeda1c1:0xec,_0x5d6d03:0xe2,_0x3a5c8c:0x30,_0x1b0c33:0x4f},_0x4c5716={_0xc5b9b0:0x6d},_0x1392f8={_0x574a2e:0x68};function _0x39b6ec(_0x2b3297,_0x406adb,_0x2fa63c,_0x31a0d5){return _0x2c5722(_0x2fa63c,_0x406adb-0x0,_0x2b3297- -_0x1392f8._0x574a2e,_0x31a0d5-0x42);}function _0x5f0c64(_0x55db00,_0x397d10,_0x2ba08e,_0xa31c12){return _0x2c5722(_0x397d10,_0x397d10-0x17f,_0x2ba08e- -_0x4c5716._0xc5b9b0,_0xa31c12-0x129);}switch(this['surface']){case'anthropic-messages':return this[_0x5f0c64(0x89,_0x36574f._0x389797,0xfd,_0x36574f._0x4f7b7c)]()[_0x5f0c64(0x155,_0x36574f._0x594568,_0x36574f._0x480e8c,0x13e)](_0x5723db,_0xfc3c5a);case _0x5f0c64(-_0x36574f._0xc321b,-_0x36574f._0x30831e,-_0x36574f._0x1a6ebe,0xae):return this[_0x39b6ec(_0x36574f._0x36ff2c,_0x36574f._0x5c735a,_0x36574f._0x1dda87,0x152)]()[_0x5f0c64(_0x36574f._0x3dd4d9,0x18,0x5c,_0x36574f._0x1408d7)](_0x5723db,_0xfc3c5a);case _0x39b6ec(0x14f,0x16d,0xf4,_0x36574f._0x45e134):return this[_0x5f0c64(0x3a,0x12e,_0x36574f._0x3536af,_0x36574f._0x386e13)]()[_0x5f0c64(0xad,0x4c,0xb2,0x28)](_0x5723db,_0xfc3c5a);default:return this[_0x5f0c64(_0x36574f._0x44096d,_0x36574f._0x117fdf,0xf2,_0x36574f._0xeda1c1)]()[_0x39b6ec(0x52,_0x36574f._0x5d6d03,_0x36574f._0x3a5c8c,-_0x36574f._0x1b0c33)](_0x5723db,_0xfc3c5a);}}};function _0x3352(){const _0x16cd38=['CMvZB2X2zunYzwrLBNrPywW','B3jPz2LUlxrYywnRzxi','Dg9tDhjPBMC','zwrPDg9YvMvYC2LVBG','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','BgvUz3rO','Aw52ywXPzgf0zq','CMvHzhLtDgf0zq','DxnLC1jLC3bVBNnLC0fWAq','yxbP','y29UDgvUDf9IBg9JA19KzwX0yq','zMLUza','y29TCgXLDgLVBL90B2TLBNm','DgvSzw1LDhj5','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Cgf0Aa','BMfTzq','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','oNjLyxnVBMLUzZOW','B3bLBMfPlxjLC3bVBNnLCY13CW','C3LZDgvT','CMvHC29UAw5NsxrLBxm','zMLSDgvY','y2fSBf9Pza','y29Kzq','Bwf4vg9Rzw5Z','y3jLyxrLu3rYzwfTugfYC2vY','r2L0shvIiefqssbLCNjVCIa','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','CMvHza','C2vZC2LVBI10B2TLBG','yxbWBhLnB2rLBerLzMf1BhrZ','Dg9VBenHBgXZqNLjBMrLEa','Dgv4Da','y3jLzgvUDgLHBa','DxjS','y29UBMvJDgLUzW','CgfYDgLHBf9QC29U','y29TCgXLDgvwAwftDxjMywnL','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','CMvTB3zLrxzLBNrmAxn0zw5LCG','y3jLyxrLsgvHzgvYCW','y29UDgvUDa','C3vTBwfYAxPLza','zMXHDe1HCa','rgLYzwn0igfUC3DLCJOG','y2HVAwnLCW','nw15Bfb2ta','zNjVBuvUDhjPzxm','Aw5KzxG','C2HPzNq','Bwv0Ag9K','C3vYzMfJzq','yxn5BMnjDgvYyxrVCG','zMv0y2HjBxbS','Dg9VBhm','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','y29TCgXLDgvtDxjMywnL','l3jLC3bVBNnLCW','y29TCgXLDgu','ywrK','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','C2v0','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','y29UBMvJDf9MywLSzwq','ChjVDg9JB2W','y29WAwXVDc1JAgf0lZaUmZeUmW','DhjHBNnWB3j0','B3bLBG','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Ahr0Cc1ZC2u','y29UC3vTzvDLyLnVy2TLDev2zw50','ChjVEhK','Bw9KzwW','Dgv4DfbHCNrZ','zg9Uzq','Bwf4x291Dhb1Df90B2TLBNm','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','Aw5KzxHpzG','ywnJzxb0','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','zw5JCNLWDgvKq29UDgvUDa','yMfZzty0','B3bLBMfPlxjLC3bVBNnLCW','y29UDgvUDf9KzwX0yq','yNvKz2v0vg9Rzw5Z','CMvZCg9UC2vtB2nRzxq','zgLZCgXHEq','B3bLBMfPx3jLyxnVBMLUzW','yNvPBgrqyxj0AwfSt3v0Chv0','C2LNBMf0DxjLx2rLBhrH','Dg9VBf9JywXSCW','v2vIu29JA2v0','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','B21PDhrLza','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','zw5KCg9PBNrZ','zgf0ytO','DgvZDa','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','C3rYAw5NAwz5','ndmYmtK2rejiyuHy','yxjNDw1LBNrZ','CMvZB2X2zq','yMvHCMvY','D2vIu29JA2v0rMfJDg9YEq','CM91DgvY','y29UDgvUDf9IBg9JA19ZDgfYDa','y2fSBeLKvg9pDxrWDxrjBMrLEa','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','zNvUy3rPB24','Dg9VBf91C2vFAwq','DhLWzq','mK1KvMzJtW','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','CMvZCc0','AxngAw5PDgu','ChjVDMLKzxjtDgf0zq','Dg9VBfvZzvn0yxj0rw1PDhrLza','ChjVDMLKzxjbzgfWDgvY','D2fPDezVCLjLDhj5','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','C3vYzMfJzxm','mteYy2XbBe94','yxbPlwTLEq','yM9KEq','CMvZCg9UC2u','BwvZC2fNzv9KzwX0yq','BwvZC2fNzuLK','l3yXl21LC3nHz2vZ','C2LNBMfS','sw52ywXPzcbYzxf1zxn0oIa','CMvZzxq','y29UDgvUDf9IBg9JAW','CgfYC2u','ywrKrxzLBNrmAxn0zw5LCG','BM93','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','y2XVC2u','zMLUywXszxnWB25Zzq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','D3nZoG','CMvHC29UAw5Nx3rVA2vUCW','CgfYC2vszxnWB25Zzq','B3v0Chv0x3rLEhq','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','zgvJB2rL','Dg9bCgLfCNjVCG','C2vSzwn0u3vYzMfJzq','CMvZB2X2zujHC2vvCMW','C3rYAw5N','r0vu','zw5HyMXLza','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','y29TCgXLDgvwAwfsB3v0zxi','t1bftG','CMvZCg9UC2vZugf0Aa','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','u3vYzMfJzsa','Dgv4Dc9LDMvUDc1ZDhjLyw0','Dgv4Dej5sw5KzxG','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','AM9PBG','BwfW','zwzMB3j0','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','Dgv4Df9KzwX0yq','C2LNBMf0DxjL','C3rVCf9YzwfZB24','z2L0AhvIqxbPvxjS','y29UDgvUDc10ExbL','y2HHDfn0CMvHBq','C3vWCg9YDgvKrw5KCg9PBNrZ','zw5Kx3r1CM4','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','ChvZAa','C3vTBwfYEuj5sw5KzxG','y29TCgXLDgvK','C2vZC2LVBK1HBMfNzxi','CgvUzgLUzW','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','mtuYodaXmKjkshnHtW','y2HHDgnTCgWT','BgLTAxrZ','t3bLBKfjiefqssbLCNjVCIa','CMvZCg9UC2vtDhjLyw0','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','DxnHz2u','C3vTBwfYEq','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','CMvXDwvZDe11Dgf0B3jZ','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','Bw9Kzq','C3vTBwfYEv9PBMrLEa','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','Dg9VBc1JywXSlq','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','qMfZAa','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','yMfZzvvYBa','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','zgvZy3jPChrPB24','BwvZC2fNzv9ZDgfYDa','yxbWBgLJyxrPB24VANnVBG','C3vTBwfYEv90zxH0','Aw5WDxrFC2nOzw1H','zxzLBNq','ywDLBNq','B3v0Chv0sw5KzxHuB0nHBgXjza','Aw5JBhvKzunVBNrLBNruExbL','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','CMvHC29UAw5NugfYDhm','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','z3b0ltrV','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','BhmGlwXH','C2vUza','B3bLBKfPrgvSzwDHDgu','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','ywjVCNq','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','y2HHDenVBxbSzxrL','CMvHC29UAw5Nx2rLDgfPBhm','C3rHDhvZ','yw50AhjVCgLJrgvSzwDHDgu','zgvSzxrL','Aw5WDxruB2TLBNm','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','Aw5WDxrkC29U','B3v0Chv0','z2v0uMvHzgvY','C2L6zq','y29UC3vTzuv2zw50','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','ue9tva','C3rYzwfTvMLHu3vYzMfJzq','w0rptKvD','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','mtCYmg1twK5Xsq','mJyXmtCXtwDSrfHI','mJaYmY0WnI0Wmq','zM9Yy2vgDwXSuMvWBgf5','z2v0uMv0CNLezwXHEu1Z','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','C3rYzwfTu3vYzMfJzq','DhjPBq','Bw9KzwXfBMrWB2LUDenHy2HL','zgLZywjSzwq','Dg9VBenHBgXpCMrLCG','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','C3rVCfjLyxnVBG','DgHLBG','l2nOyxqVy29TCgXLDgLVBNm','mtuZm2nRC1DZvG','ywjVCNrLza','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ChjVDg9JB2XwzxjZAw9U','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','zxjYB3i','Aw1Hz2vFDxjS','yw50AhjVCgLJx3rOAw5RAw5N','C3vWCg9YDgvKx2vUzhbVAw50CW','mJaYns0Xmc0Wmq','DNnJB2rLlZeUmta0lJi','DhjPBvn0yxj0','CMvWBgfJzq','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','ChjLDMLVDxnszxnWB25ZzuLK','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','CMvZCg9UC2vtB2nRzxrtDhjLyw0','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','BgfZDfjLC3bVBNnLswq','BwvZC2fNzq','t3bLBKfPqxbPrxjYB3i','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','CMvHC29UAw5N','AgvHzgvYuMvZB2X2zxi','zw5JCNLWDgvKx2nVBNrLBNq','C3rHDhvZvgv4Da','CMvXDwvZDhm','Aw1Hz2u','BwvZC2fNzxm','DMLZAwjPBgL0Eq','y2fWywjPBgL0AwvZ','DMfSDwu','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','mti2mtq0m3P2DvzqvG','CM9Szq','C2vZC2LVBG','mty2odDbAgftvfK','y29UC3vTzvnZzuv2zw50','ywnJzxnZvg9Rzw4','B3v0Chv0vg9Rzw5Z','Aw5WDxrFANnVBL9KzwX0yq','C3bSAwnL','yw50AhjVCgLJlw1LC3nHz2vZ','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','Ahr0Cc1QC29U','C3rYzwfTvMLHuM91DgvY','C2vUzfjHD1jLCxvLC3q','AgfZ','zgvSDge','yMXVy2TZ','Dg9VBf91C2vFzgvSDge','C3rYzwfT','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','y2HHDenVBxbSzxrPB25Zugf0Aa','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Ec1HCgKTA2v5','BwfWqxbPrxjYB3i','B2jQzwn0','A2LUza','C29Tzq','CMvXDwvZDa','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','BwvZC2fNzuLUzgv4','BwvKAwfFDhLWzq','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','DgHPBMTPBMC','CMvZB2X2zxi','BNvTyMvY','DMfSDwvZ','CMvZCg9UC2vuzxH0ugfYDhm','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','B3v0Chv0x2LUzgv4','C291CMnL','ChjLCgfYzunOyxrszxf1zxn0','ChjVBxb0x3rVA2vUCW','zNjVBq','C2XPy2u','mtaXotq4odH1Au1gq28','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','C29YDa','z2v0t3bLBKfPrgvSzwDHDgu','D3m6','BxnNlq','Aw5JBhvKzxm','B2f1DgGTDg9Rzw4','CMvZCg9UC2vjza','CMvKywn0zwrFDgHPBMTPBMC','CMvHC29UAw5Nx3rLEhq','zMv0y2G','z2v0','B3v0Chv0sw5KzxG','z2v0qw50AhjVCgLJrgvSzwDHDgu','Aw5WDxq','yxbPs2v5','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','zgf0yq','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','zMLUAxnOx3jLyxnVBG','ywrHChrPDMu','Aw5WDxrFDgv4Da','o2jHC2u2ncW','Dg9VBf91C2u','DNnJB2rLlZeUmta2lJe','yxnZAxn0yw50','AxrLBv9Pza','y3jLyxrLuMvXDwvZDa','zMLUAxnO','yxv0AfnJAgvTzq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3rHCNrZv2L0Aa','CMv0CNLHyMXL','zNvUy3rPB25Fy2fSBa','Bwv0ywrHDge','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','C3bSAxq','CMvHC29U','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','ANnVBG','mtqXmdzdy1nequy','C2vZC2LVBKLK','AxnbCNjHEq','AxneB25L','zw50CMLLCW','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','y2f0y2G','Aw5WDxrFDg9Rzw5Z','DxnLCI12AxnPyMXL','DxnLCG','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','B3v0Chv0x3rVA2vUCW','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C29JA2v0','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','yxv0Ag9YAxPHDgLVBG','Ahr0Chm6','qMvHCMvYia','C2HVDwXKuMv0CNLszxnWB25Zzq','Dg9Rzw4','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','Dg9VBenHBgXZ','CMvMDxnHBa','y2fJAgvK','AgvHzgvYCW','DxrMltG','yxv0BW'];_0x3352=function(){return _0x16cd38;};return _0x3352();}import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{['accessToken'];[_0x2c5722(0xe1,0x3e,0xd7,0x123)];[_0x949fe0(-0x271,-0x261,-0x2b6,-0x1ca)];['githubApiUrl'];[_0x949fe0(-0xa0,-0x121,-0x61,-0x148)];constructor(_0x35d3ff){const _0x7f62d4={_0x4c87d4:0x81,_0x5ce4a2:0xad,_0x2b246a:0x3cd,_0xd492b7:0x443,_0x419cd1:0x171,_0x3024f1:0x19c,_0x48a94e:0x16f,_0x33424c:0x56},_0x2f24fe={_0x599f09:0x109,_0x5b6483:0x1bb};function _0x20c4de(_0x160c7e,_0x5df697,_0x5149f2,_0xe4df96){return _0x949fe0(_0xe4df96,_0x5df697-0x5de,_0x5149f2-_0x2f24fe._0x599f09,_0xe4df96-_0x2f24fe._0x5b6483);}this[_0x5e15d1(-0x133,-_0x7f62d4._0x4c87d4,-_0x7f62d4._0x5ce4a2,-0x11f)]=_0x35d3ff[_0x20c4de(_0x7f62d4._0x2b246a,0x46f,0x41c,_0x7f62d4._0xd492b7)];function _0x5e15d1(_0x3f73fe,_0x4238c3,_0x5dda14,_0x3355f1){return _0x949fe0(_0x4238c3,_0x3355f1-0x50,_0x5dda14-0x1bf,_0x3355f1-0x1e3);}this['baseUrl']=trimTrailingSlashes2(_0x35d3ff['baseUrl']),this[_0x20c4de(0x311,0x37d,0x3e5,0x384)]=_0x35d3ff['fetch'],this[_0x5e15d1(-0x1ff,-0x14b,-_0x7f62d4._0x419cd1,-_0x7f62d4._0x3024f1)]=trimTrailingSlashes2(_0x35d3ff['githubApiUrl']),this[_0x5e15d1(-0xbd,-_0x7f62d4._0x48a94e,-0x18f,-0xd1)]=_0x35d3ff[_0x5e15d1(-_0x7f62d4._0x33424c,-0x12c,-0xb6,-0xd1)];}async[_0x949fe0(-0x2d4,-0x230,-0x2b2,-0x1c0)](_0x4e3cb4){const _0x1c50a7={_0x2dbc65:0x2f,_0x36a029:0xb,_0x51d551:0x186,_0xaadaab:0x209,_0x5ffa87:0x11b,_0x27ff26:0x137,_0x1702cb:0xa5,_0x115a0a:0x17c,_0x2afb43:0x181,_0x9eb07e:0x146,_0x94a6ba:0x116,_0x3b60d0:0x93,_0x40a94b:0x120,_0xf79fb0:0x18e,_0x3033f7:0x166,_0x58520e:0x215,_0x382b77:0x7a,_0x51b15b:0x10a,_0x1860f8:0x9,_0x5bc122:0x10f,_0x27b8a7:0x12e,_0x41d998:0x171,_0x2d1cec:0x18,_0x18b172:0x211,_0x3d172f:0x156,_0x1812fc:0xe1,_0x1a5c29:0xbd,_0x5ca8da:0x1b,_0x34eef1:0x9a,_0x4bfd9d:0x42,_0x2e875e:0xb9,_0x518f40:0x106,_0x20e1dc:0xde,_0x355b12:0x1f6,_0xe7b062:0x170,_0x287174:0xbf,_0x3eb754:0x1fc,_0xef8b25:0x1ce,_0x2d19c6:0xa8,_0x5054e2:0xd,_0x94b8ae:0x3e,_0x11d99d:0x39,_0x53e1ef:0xaa,_0x3cf0bb:0xeb,_0xa1613c:0x46,_0x4fcdfd:0x88,_0x39e43e:0x60,_0x5eb7a3:0x144,_0x416a90:0x188,_0x3a6050:0x1c4,_0x4eb81c:0x1d,_0x28ca8d:0x92},_0x226ee3={_0x2c2950:0x55},_0x3cd391={_0x49f7f2:0x275};function _0x2ddd0c(_0x37b938,_0x426951,_0x18e5b5,_0x1cc3e0){return _0x949fe0(_0x1cc3e0,_0x426951-_0x3cd391._0x49f7f2,_0x18e5b5-0x1cf,_0x1cc3e0-0x78);}const _0x1a6a75=await this[_0x2ddd0c(0xdf,0x14,-_0x1c50a7._0x2dbc65,_0x1c50a7._0x36a029)](this['githubApiUrl']+_0x2ddd0c(0x16e,_0x1c50a7._0x51d551,0x15a,_0x1c50a7._0xaadaab),{'method':_0x3af858(-_0x1c50a7._0x5ffa87,-_0x1c50a7._0x27ff26,-_0x1c50a7._0x1702cb,-0x1ec),'headers':new Headers({'accept':'application/json','authorization':_0x2ddd0c(0xdc,0x16a,0x1d4,_0x1c50a7._0x115a0a)+this['accessToken'],'editor-version':_0x2ddd0c(_0x1c50a7._0x2afb43,_0x1c50a7._0x9eb07e,_0x1c50a7._0x94a6ba,_0x1c50a7._0x3b60d0),'user-agent':_0x3af858(-0x1d7,-_0x1c50a7._0x40a94b,-_0x1c50a7._0xf79fb0,-_0x1c50a7._0x3033f7),'x-github-api-version':this[_0x2ddd0c(_0x1c50a7._0x58520e,0x154,0x148,0x1bf)]}),'signal':_0x4e3cb4});if(!_0x1a6a75['ok'])return{'credential':{'kind':_0x3af858(-0x6f,-_0x1c50a7._0x382b77,-_0x1c50a7._0x51b15b,_0x1c50a7._0x1860f8),'value':this[_0x2ddd0c(0xb8,0x106,_0x1c50a7._0x5bc122,0x119)]},'endpoints':{'api':this[_0x2ddd0c(_0x1c50a7._0x27b8a7,0xa8,_0x1c50a7._0x41d998,_0x1c50a7._0x2d1cec)]}};const _0x33e03e=await _0x1a6a75[_0x2ddd0c(_0x1c50a7._0x18b172,_0x1c50a7._0x3d172f,0x12f,_0x1c50a7._0x1812fc)]();function _0x3af858(_0x5ba24b,_0x4f72e1,_0x20d6ac,_0xe72071){return _0x949fe0(_0x20d6ac,_0x4f72e1-0xc7,_0x20d6ac-_0x226ee3._0x2c2950,_0xe72071-0x4e);}return{'credential':{'kind':_0x3af858(-_0x1c50a7._0x1a5c29,-_0x1c50a7._0x5ca8da,-0xba,-0x2e),'value':_0x33e03e[_0x3af858(-_0x1c50a7._0x34eef1,-_0x1c50a7._0x4bfd9d,-0x2e,-_0x1c50a7._0x2e875e)]??this[_0x2ddd0c(0x5d,_0x1c50a7._0x518f40,0x1b6,_0x1c50a7._0x20e1dc)]},'endpoints':{'api':_0x33e03e[_0x3af858(-_0x1c50a7._0x355b12,-_0x1c50a7._0xe7b062,-_0x1c50a7._0x287174,-0x218)]?.[_0x2ddd0c(_0x1c50a7._0x3eb754,0x17d,_0x1c50a7._0xef8b25,0x1d6)]??this[_0x2ddd0c(0x150,_0x1c50a7._0x2d19c6,-_0x1c50a7._0x5054e2,0x50)],'originTracker':_0x33e03e[_0x2ddd0c(-0x7a,_0x1c50a7._0x94b8ae,-0x5e,-0x1e)]?.[_0x3af858(-0x89,-_0x1c50a7._0x11d99d,-_0x1c50a7._0x53e1ef,-_0x1c50a7._0x3cf0bb)],'proxy':_0x33e03e[_0x2ddd0c(-_0x1c50a7._0xa1613c,0x3e,_0x1c50a7._0x4fcdfd,_0x1c50a7._0x39e43e)]?.[_0x3af858(-_0x1c50a7._0x5eb7a3,-_0x1c50a7._0x416a90,-_0x1c50a7._0x3a6050,-0x242)],'telemetry':_0x33e03e[_0x2ddd0c(0x9f,_0x1c50a7._0x94b8ae,0xbd,-0x54)]?.[_0x3af858(-_0x1c50a7._0x4eb81c,-0x2d,-0x95,-_0x1c50a7._0x28ca8d)]}};}};function trimTrailingSlashes2(_0x38851a){const _0x41e4bc={_0x2b3e9d:0x531,_0xb717b9:0x56d},_0x3cff98={_0x4976a0:0x6f6,_0x4ca5b8:0x13f};function _0x4a7920(_0x289cd6,_0x44b2dd,_0x2fb6f2,_0x44d06f){return _0x949fe0(_0x44d06f,_0x2fb6f2-_0x3cff98._0x4976a0,_0x2fb6f2-0x161,_0x44d06f-_0x3cff98._0x4ca5b8);}return _0x38851a[_0x4a7920(_0x41e4bc._0x2b3e9d,0x5e7,_0x41e4bc._0xb717b9,0x5bb)](/\/+$/,'');}function createModelInfo(_0x4da20c){const _0x32c566={_0x22c542:0x26,_0x4ee5cf:0xb,_0x300c2e:0x50,_0xc6c8b7:0xa,_0x5c8d:0x10,_0x15ff0b:0x73,_0xf3e3d9:0x10d,_0x4b7371:0x10,_0x3788d8:0x4c,_0x26429e:0x1ac,_0x472fb9:0x46,_0x58b301:0x5e,_0x2a99ea:0xd8},_0x43220b={_0x3c30cd:0x31,_0x28b1ad:0x13d},_0x259b14={_0x46a14f:0x8d,_0x1c0b3e:0xb7},_0x2a8237=_0x4da20c[_0x4c71de(_0x32c566._0x22c542,-_0x32c566._0x4ee5cf,0x60,0x62)]??_0x4da20c['capable_endpoints'];function _0x4c71de(_0x59c935,_0x301304,_0x23760a,_0x1bbc58){return _0x2c5722(_0x1bbc58,_0x301304-_0x259b14._0x46a14f,_0x23760a- -_0x259b14._0x1c0b3e,_0x1bbc58-0x1d1);}const _0x130c85=_0x4da20c[_0x4c71de(_0x32c566._0x300c2e,0x54,0x76,0x10c)]?.[_0x4c71de(0x68,_0x32c566._0xc6c8b7,_0x32c566._0x5c8d,-_0x32c566._0x15ff0b)]?.[_0x4c71de(_0x32c566._0xf3e3d9,_0x32c566._0x4b7371,0x65,-_0x32c566._0x3788d8)];function _0x4bfaaf(_0x10b437,_0x3cc141,_0x4a9aa6,_0x2a5d6b){return _0x949fe0(_0x10b437,_0x2a5d6b-_0x43220b._0x3c30cd,_0x4a9aa6-0x1cf,_0x2a5d6b-_0x43220b._0x28b1ad);}const _0x2725a7=_0x4da20c['capabilities']?.[_0x4bfaaf(-0x20b,-0x257,-0x273,-_0x32c566._0x26429e)]?.[_0x4c71de(0x5c,_0x32c566._0x472fb9,-_0x32c566._0x58b301,-_0x32c566._0x2a99ea)],_0x4e4991=_0x130c85!==void 0x0||_0x2725a7!==void 0x0?{..._0x130c85!==void 0x0?{'contextWindow':_0x130c85}:{},..._0x2725a7!==void 0x0?{'maxOutput':_0x2725a7}:{}}:void 0x0;return{'id':_0x4da20c['id'],'name':_0x4da20c['name']??_0x4da20c['id'],..._0x4e4991?{'limits':_0x4e4991}:{},..._0x2a8237?{'supportedEndpoints':_0x2a8237}:{}};}function deduplicateModels(_0x4449f){const _0x516c79={_0x24c64e:0x19a,_0x22bfd7:0x1ab,_0xf4e139:0x227,_0x13542e:0x67},_0x106050={_0x96a8f0:0x1e7,_0x25d1dc:0x1a1},_0x1e21f7={_0x3f5563:0x65,_0x5d7290:0x1c};function _0x29f57f(_0x44c91c,_0x3fab82,_0x2c02ca,_0x667040){return _0x2c5722(_0x2c02ca,_0x3fab82-_0x1e21f7._0x3f5563,_0x3fab82-_0x1e21f7._0x5d7290,_0x667040-0x197);}function _0x482426(_0x3ad81c,_0x1283fe,_0x518a71,_0x46867d){return _0x2c5722(_0x1283fe,_0x1283fe-_0x106050._0x96a8f0,_0x46867d-0xe9,_0x46867d-_0x106050._0x25d1dc);}const _0x582f94=new Map();for(const _0x316894 of _0x4449f){!_0x582f94[_0x482426(_0x516c79._0x24c64e,_0x516c79._0x22bfd7,0x2d5,_0x516c79._0xf4e139)](_0x316894['id'])&&_0x582f94[_0x29f57f(-0x42,_0x516c79._0x13542e,0x3a,-0x33)](_0x316894['id'],_0x316894);}return Array['from'](_0x582f94['values']());}function hasUserPromptContent(_0x3bac6e){const _0x2aa713={_0x268ade:0x135,_0x585177:0x1d1,_0x561850:0xce,_0x518e70:0x302,_0x18d96c:0x355,_0x510526:0x2f0,_0x23c573:0xf1,_0xd67f69:0x11f,_0x3c5b0a:0xb4},_0x504f28={_0x3c14b5:0x605,_0x4ef1a2:0x676,_0xc38cba:0x61f,_0x2c8593:0x62f,_0x1320a8:0x5bf,_0x56e8cf:0x553,_0x2b06ab:0x53a,_0x1d6eb2:0x4fd,_0x41d157:0x318,_0x6161ce:0x33f,_0x2570e3:0x2f8,_0xa3238f:0x673,_0x22c736:0x291,_0x38139d:0x1ea,_0x418c34:0x64c,_0x56a431:0x682,_0x181628:0x2f4,_0x46fe12:0x38d,_0x5bc1b6:0x422,_0x377991:0x2d3,_0x310694:0x3d9},_0x4ecbb7={_0x4f7ec2:0x1c,_0xd1bb08:0x97},_0x46683c={_0x489b18:0xcb},_0x195b71={_0x352606:0x20f,_0x1bb6ce:0x63},_0x2b1975={_0xa2b65b:0x7a};function _0x273396(_0x128be2,_0x3d7003,_0x123b3b,_0x3442ef){return _0x949fe0(_0x3d7003,_0x128be2-0x69,_0x123b3b-_0x2b1975._0xa2b65b,_0x3442ef-0x2f);}if(typeof _0x3bac6e==='string')return _0x3bac6e[_0x273396(-_0x2aa713._0x268ade,-_0x2aa713._0x585177,-0xb6,-_0x2aa713._0x561850)]()[_0x2b7f93(_0x2aa713._0x518e70,_0x2aa713._0x18d96c,0x3b7,_0x2aa713._0x510526)]>0x0;if(!Array[_0x2b7f93(0x438,0x2ef,0x397,0x428)](_0x3bac6e))return![];function _0x2b7f93(_0x327280,_0x58004d,_0x510a24,_0x35d603){return _0x2c5722(_0x327280,_0x58004d-0x1cf,_0x510a24-_0x195b71._0x352606,_0x35d603-_0x195b71._0x1bb6ce);}return _0x3bac6e[_0x273396(-_0x2aa713._0x23c573,-0x16c,-_0x2aa713._0xd67f69,-_0x2aa713._0x3c5b0a)](_0x536ea3=>{function _0x171918(_0x4620e6,_0x2fdf92,_0x5b5e95,_0x187ba8){return _0x2b7f93(_0x2fdf92,_0x2fdf92-_0x46683c._0x489b18,_0x5b5e95-0x2ae,_0x187ba8-0x149);}if(!_0x536ea3||typeof _0x536ea3!==_0x171918(0x6bb,0x61d,_0x504f28._0x3c14b5,_0x504f28._0x4ef1a2))return![];const _0x59f9e9=_0x536ea3;function _0x46c198(_0x1ae3fc,_0x38d411,_0x26a9fb,_0x6bc007){return _0x2b7f93(_0x1ae3fc,_0x38d411-_0x4ecbb7._0x4f7ec2,_0x26a9fb- -0x21,_0x6bc007-_0x4ecbb7._0xd1bb08);}return(_0x59f9e9['type']===_0x171918(_0x504f28._0xc38cba,0x579,_0x504f28._0x2c8593,0x68a)||_0x59f9e9[_0x171918(_0x504f28._0x1320a8,_0x504f28._0x56e8cf,_0x504f28._0x2b06ab,_0x504f28._0x1d6eb2)]===_0x46c198(_0x504f28._0x41d157,_0x504f28._0x6161ce,0x3b3,_0x504f28._0x2570e3))&&typeof _0x59f9e9[_0x171918(0x625,_0x504f28._0xa3238f,0x682,0x5d1)]===_0x46c198(_0x504f28._0x22c736,0x22d,0x293,_0x504f28._0x38139d)&&_0x59f9e9[_0x171918(0x5f7,_0x504f28._0x418c34,_0x504f28._0x56a431,0x74d)][_0x46c198(0x2b0,0x2d0,_0x504f28._0x181628,_0x504f28._0x46fe12)]()[_0x46c198(_0x504f28._0x5bc1b6,_0x504f28._0x377991,0x396,_0x504f28._0x310694)]>0x0;});}function isUserPromptEntry(_0x4be6f9){const _0x1fa353={_0x18fccf:0x1a,_0x1579d5:0x36,_0x5aedeb:0xd3,_0x533b5b:0x37,_0x5e388c:0x28,_0x4e50e5:0x4b,_0x5971f0:0xd4,_0x7ccb3a:0x7b,_0x5b261c:0x3b},_0x2fe95b={_0x4f59ef:0x262,_0x48192b:0x59};if(!_0x4be6f9||typeof _0x4be6f9!=='object')return![];const _0x5e6857=_0x4be6f9;if(_0x5e6857[_0x2a0a8e(-0x6e,_0x1fa353._0x18fccf,-_0x1fa353._0x1579d5,-_0x1fa353._0x5aedeb)]!==_0x2a0a8e(-_0x1fa353._0x533b5b,0x47,_0x1fa353._0x5e388c,_0x1fa353._0x4e50e5))return![];if(_0x5e6857[_0x2a0a8e(-0x107,-0x1b4,-0xea,-0x18f)]!==void 0x0&&_0x5e6857[_0x5b649c(_0x1fa353._0x5971f0,_0x1fa353._0x7ccb3a,_0x1fa353._0x5b261c,-0x76)]!=='message')return![];function _0x5b649c(_0x38cd6d,_0x14d937,_0x333651,_0x2e4ad7){return _0x949fe0(_0x2e4ad7,_0x333651-_0x2fe95b._0x4f59ef,_0x333651-_0x2fe95b._0x48192b,_0x2e4ad7-0x123);}function _0x2a0a8e(_0x59e52c,_0x23fe8e,_0x5bb8cf,_0x1cb054){return _0x2c5722(_0x1cb054,_0x23fe8e-0x4b,_0x5bb8cf- -0x167,_0x1cb054-0x91);}return hasUserPromptContent(_0x5e6857['content']);}function determineInitiator(_0x3a79e2){const _0x325187={_0x213e0f:0x5ec,_0x296586:0x515,_0x45bd1e:0x56b,_0x35a7b6:0xe8,_0x3905ab:0x68,_0xebaf55:0x54,_0x1ae1ac:0x134,_0x426b5f:0x170,_0x5f213c:0xb2,_0x5614dd:0xe5,_0x4ad55c:0x58f,_0x29f159:0x549,_0x2daba4:0xcb,_0x9a948d:0x12e,_0x1894e7:0x173},_0x4dc595={_0x3e09e9:0xa9,_0x3519b5:0xb9},_0x5195d3={_0x586fde:0xa,_0x1d1b78:0xc3};if(!_0x3a79e2||typeof _0x3a79e2!==_0x3ccfa4(0x54c,_0x325187._0x213e0f,0x595,0x5d3))return _0x3ccfa4(0x50a,_0x325187._0x296586,0x5f1,_0x325187._0x45bd1e);function _0x164e3e(_0x11d1d4,_0x282375,_0x3a5382,_0x503deb){return _0x2c5722(_0x282375,_0x282375-_0x5195d3._0x586fde,_0x3a5382- -_0x5195d3._0x1d1b78,_0x503deb-0x93);}function _0x3ccfa4(_0x3eac73,_0x3aa887,_0x10f791,_0x8427de){return _0x949fe0(_0x3eac73,_0x8427de-0x72f,_0x10f791-_0x4dc595._0x3e09e9,_0x8427de-_0x4dc595._0x3519b5);}const _0x258900=_0x164e3e(0x17,_0x325187._0x35a7b6,_0x325187._0x3905ab,-_0x325187._0xebaf55)in _0x3a79e2?_0x3a79e2['messages']:'input'in _0x3a79e2?_0x3a79e2[_0x164e3e(_0x325187._0x1ae1ac,_0x325187._0x426b5f,0xa8,0x143)]:void 0x0;if(!Array['isArray'](_0x258900)||_0x258900[_0x164e3e(0x11c,_0x325187._0x5f213c,_0x325187._0x5614dd,0x22)]===0x0)return _0x3ccfa4(_0x325187._0x4ad55c,0x51a,_0x325187._0x29f159,0x56b);return isUserPromptEntry(_0x258900[_0x258900[_0x164e3e(_0x325187._0x2daba4,_0x325187._0x9a948d,_0x325187._0x5614dd,_0x325187._0x1894e7)]-0x1])?'user':'agent';}function isUnsupportedApiForModel(_0x2dcf76){const _0x2ee185={_0x258387:0x9d,_0x116cb2:0x101,_0x256485:0x13b},_0x5e13be={_0x23e254:0x1ea};function _0x4a493b(_0x33eda2,_0x9bc3eb,_0x582844,_0x1a9b2e){return _0x2c5722(_0x33eda2,_0x9bc3eb-0xae,_0x9bc3eb- -0x263,_0x1a9b2e-0x1c0);}function _0x530424(_0x2ba46c,_0xf64db8,_0x274864,_0x12583d){return _0x2c5722(_0xf64db8,_0xf64db8-0x148,_0x274864-0x3ce,_0x12583d-_0x5e13be._0x23e254);}return _0x2dcf76[_0x4a493b(-_0x2ee185._0x258387,-_0x2ee185._0x116cb2,-0x104,-0x9b)](_0x4a493b(-_0x2ee185._0x256485,-0x158,-0x1e8,-0x1a5));}function createResponseError(_0x521508,_0x2a9c9d){const _0x4e4bd3={_0xf3195d:0x101,_0x4bc5cf:0x22a,_0x342f1b:0xa4,_0x3b3bed:0x180},_0x21b278={_0x51a37a:0x236,_0x5e498f:0x56},_0xf9ecf={_0x53e239:0x1e1,_0x59c1f7:0x37};if(_0x521508===0x191||_0x521508===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');if(_0x521508===0x198||_0x521508===0x1ad)return new Error(_0x417c39(_0x4e4bd3._0xf3195d,0x17a,_0x4e4bd3._0x4bc5cf,0xf5));function _0x417c39(_0xc25f1f,_0x3263c0,_0x3ae1fa,_0x14c90d){return _0x2c5722(_0xc25f1f,_0x3263c0-_0xf9ecf._0x53e239,_0x3263c0-_0xf9ecf._0x59c1f7,_0x14c90d-0x2b);}function _0x541684(_0x51a06b,_0x27cc1d,_0x386c3f,_0x44f28a){return _0x949fe0(_0x27cc1d,_0x386c3f-_0x21b278._0x51a37a,_0x386c3f-0x85,_0x44f28a-_0x21b278._0x5e498f);}if(_0x521508===0x190)return new Error(_0x417c39(0x4b,0xc7,_0x4e4bd3._0x342f1b,_0x4e4bd3._0x3b3bed)+_0x2a9c9d);return new Error(_0x2a9c9d||_0x541684(0x187,0xad,0x151,0x1c4)+_0x521508);}var GitHubModel=class extends OpenAiModel{[_0x949fe0(-0x18d,-0x1b3,-0x22b,-0x163)];[_0x2c5722(0x127,0x97,0x107,0x13b)]=new Map();[_0x949fe0(-0x2cf,-0x263,-0x30a,-0x1cf)];constructor(_0x3b5d48={}){const _0xb864f3={_0x46c8e0:0x323,_0x361e9a:0x327,_0xd8e5cd:0x35b,_0x379629:0x113,_0x47105e:0x2a9,_0x46e51a:0x2f1,_0x217656:0x320,_0x116e61:0x135,_0x1adb77:0xfb,_0x498491:0x16b,_0x4c96c9:0x13e,_0x21a6ba:0xfe,_0x35cdd5:0x11d,_0x28790e:0x243,_0x52c51:0x282,_0x485f8e:0x381,_0x5a8aba:0x343,_0x471614:0x2a2,_0x31a9e4:0x359,_0x32af1a:0x2cd,_0x14fde6:0x1c9,_0x2de303:0x139,_0x46ad98:0x23f,_0x372cbf:0x254,_0x1481c6:0x124,_0x431526:0x188,_0x1b609e:0x8f,_0x508093:0xc7,_0x188f07:0x1bb,_0x46e71c:0x1e1,_0x228b49:0x299,_0x384a2d:0x296,_0x40ca9f:0x2e7,_0x48dce8:0x1da,_0x31f68b:0x2ad,_0x361a78:0x211,_0x55cd22:0x1db,_0x35294b:0x27a,_0x3793f8:0x28e,_0x51595d:0x2b7,_0x45bdb1:0x162,_0x35ac84:0x199,_0x1b7a17:0x274,_0x224b1f:0x86},_0xd58ea4={_0x449cc6:0x42f,_0x41036f:0x15e},_0x679dd5={_0x2a5aa2:0x2f,_0x34b8ca:0x10c},_0xd3e9ce=trimTrailingSlashes2(_0x3b5d48['baseUrl']??_0x1d35f9(_0xb864f3._0x46c8e0,_0xb864f3._0x361e9a,_0xb864f3._0xd8e5cd,0x2e6)),_0x788dd2=_0x3b5d48[_0x27c4dd(-0x145,-_0xb864f3._0x379629,-0xeb,-0x1ac)]??globalThis[_0x1d35f9(_0xb864f3._0x47105e,0x2f2,_0xb864f3._0x46e51a,_0xb864f3._0x217656)],_0x2d379d=_0x3b5d48[_0x27c4dd(-_0xb864f3._0x116e61,-_0xb864f3._0x1adb77,-_0xb864f3._0x498491,-_0xb864f3._0x4c96c9)]??(_0x3b5d48['accessToken']?new GitHubAccessTokenResolver({'accessToken':_0x3b5d48[_0x27c4dd(-_0xb864f3._0x21a6ba,-0xc3,-_0xb864f3._0x35cdd5,-0x1a1)],'baseUrl':_0xd3e9ce,'fetch':_0x788dd2,'githubApiUrl':_0x3b5d48[_0x1d35f9(0x246,_0xb864f3._0x28790e,0x291,0x305)]??'https://api.github.com','tokenExchangeApiVersion':_0x3b5d48[_0x1d35f9(_0xb864f3._0x52c51,0x30e,_0xb864f3._0x485f8e,_0xb864f3._0x5a8aba)]??_0x1d35f9(0x26f,0x2a3,_0xb864f3._0x471614,0x29b)}):void 0x0),_0x2a558e=_0x3b5d48[_0x1d35f9(_0xb864f3._0x31a9e4,0x331,0x326,_0xb864f3._0x32af1a)]??_0x27c4dd(-0x94,-_0xb864f3._0x14fde6,-_0xb864f3._0x2de303,-0x127),_0x15e3ac=_0x3b5d48['editorPluginVersion']??_0x1d35f9(_0xb864f3._0x46ad98,0x1da,_0xb864f3._0x372cbf,_0xb864f3._0x1481c6);function _0x27c4dd(_0x561b7a,_0x3bacbb,_0x20ca57,_0x2dbe1e){return _0x949fe0(_0x2dbe1e,_0x20ca57-0x52,_0x20ca57-_0x679dd5._0x2a5aa2,_0x2dbe1e-_0x679dd5._0x34b8ca);}const _0x527d0e=({body:_0x325d95})=>{return{'editor-plugin-version':_0x15e3ac,'editor-version':_0x2a558e,'x-initiator':determineInitiator(_0x325d95),'x-request-id':randomUUID()};},_0x2168d1={'apiKey':_0x3b5d48[_0x27c4dd(-_0xb864f3._0x431526,-_0xb864f3._0x1b609e,-0xe6,-_0xb864f3._0x508093)],'baseUrl':_0xd3e9ce,'fetch':_0x788dd2,'maxTokens':_0x3b5d48['maxTokens'],'model':_0x3b5d48[_0x1d35f9(_0xb864f3._0x188f07,_0xb864f3._0x46e71c,_0xb864f3._0x228b49,_0xb864f3._0x384a2d)],'reasoning':_0x3b5d48[_0x1d35f9(0x32c,0x2b0,0x353,_0xb864f3._0x40ca9f)],'providerSessionResolver':_0x2d379d,'requestMutators':_0x3b5d48[_0x1d35f9(0x305,0x259,0x301,0x2d7)],'headerResolver':_0x527d0e};super(_0x2168d1);function _0x1d35f9(_0x4d5513,_0x43e43b,_0x1ea9c0,_0x3ed9e5){return _0x949fe0(_0x3ed9e5,_0x43e43b-_0xd58ea4._0x449cc6,_0x1ea9c0-0x192,_0x3ed9e5-_0xd58ea4._0x41036f);}this[_0x27c4dd(-_0xb864f3._0x48dce8,-_0xb864f3._0x31f68b,-_0xb864f3._0x361a78,-0x18b)]=_0x3b5d48[_0x27c4dd(-0x28c,-_0xb864f3._0x55cd22,-0x211,-0x233)]??'auto',this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x3b5d48[_0x1d35f9(_0xb864f3._0x35294b,0x2f7,_0xb864f3._0x3793f8,_0xb864f3._0x51595d)],'authScheme':_0x1d35f9(_0xb864f3._0x45bdb1,0x200,_0xb864f3._0x35ac84,_0xb864f3._0x1b7a17),'baseUrl':_0xd3e9ce,'fetch':_0x788dd2,'headerResolver':_0x527d0e,'maxTokens':_0x3b5d48[_0x27c4dd(-0x80,-0x10f,-0x95,-_0xb864f3._0x224b1f)],'model':_0x3b5d48['model'],'reasoning':_0x3b5d48['reasoning'],'providerSessionResolver':_0x2d379d,'requestMutators':_0x3b5d48['requestMutators']});}['createMissingCredentialError'](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0x2c5722(0x17b,0x227,0x1ab,0x25f)](_0x1d0dce){const _0x29aa9d={_0xbf8675:0x171,_0x12881a:0x124,_0x4f1d8f:0x22d,_0x1a6bcc:0x135,_0x81e8de:0x1e7,_0x54a41d:0x25f,_0x395b1e:0x1fe,_0x4926a6:0x1e0,_0xba483a:0x10f},_0x4d2494={_0x4c0fd1:0x7,_0xc9a9ef:0x1b6,_0x19ad3a:0xb4},_0x296ea5={_0x3478de:0xc8,_0x4f2a63:0x9f},_0x114043=this[_0x5b5eae(-_0x29aa9d._0xbf8675,-_0x29aa9d._0x12881a,-_0x29aa9d._0x4f1d8f,-0x196)][_0x5b5eae(-0xfa,-0xf3,-0x95,-_0x29aa9d._0x1a6bcc)](_0x1d0dce);function _0x576f73(_0xe8688b,_0x5c8a9f,_0x34d1c7,_0xe7fdf9){return _0x2c5722(_0x34d1c7,_0x5c8a9f-0xae,_0x5c8a9f-_0x296ea5._0x3478de,_0xe7fdf9-_0x296ea5._0x4f2a63);}function _0x5b5eae(_0x55c7f4,_0x3d1f91,_0x28f5ea,_0x4a2b2e){return _0x949fe0(_0x3d1f91,_0x4a2b2e-_0x4d2494._0x4c0fd1,_0x28f5ea-_0x4d2494._0xc9a9ef,_0x4a2b2e-_0x4d2494._0x19ad3a);}if(!_0x114043)return![];return!_0x114043['includes'](_0x576f73(_0x29aa9d._0x81e8de,0x1d6,_0x29aa9d._0x54a41d,0x270))&&_0x114043[_0x576f73(_0x29aa9d._0x395b1e,0x22a,_0x29aa9d._0x4926a6,0x1c1)](_0x576f73(0x6c,_0x29aa9d._0xba483a,0x17a,0x147));}['shouldPreferResponsesApi'](_0x258d46){const _0x4a7bfe={_0x1c1bb0:0x292,_0x1957aa:0x1ec,_0x2b0249:0x1b2,_0x11f313:0x526,_0x143dba:0x4b4,_0x236740:0x45f,_0x12c71e:0x3bd,_0x1b98a0:0x191,_0x184ac3:0x13e,_0x560346:0xee,_0x1bbf56:0xf7,_0x3443a6:0x29d,_0x24a00e:0x24e},_0x37f03e={_0x46ea23:0x195,_0x18292c:0x96},_0x5ee4ac={_0x16ad2f:0x4c},_0x48979d=this[_0x40738a(-_0x4a7bfe._0x1c1bb0,-_0x4a7bfe._0x1957aa,-0x26b,-_0x4a7bfe._0x2b0249)][_0x53c904(_0x4a7bfe._0x11f313,_0x4a7bfe._0x143dba,0x5d3,0x52b)](_0x258d46[_0x53c904(_0x4a7bfe._0x236740,_0x4a7bfe._0x12c71e,0x3dc,0x419)]);if(!_0x48979d)return![];if(resolveOpenAiReasoningConfig(_0x258d46['reasoning']))return _0x48979d[_0x40738a(-0x1d0,-_0x4a7bfe._0x1b98a0,-_0x4a7bfe._0x184ac3,-0x14a)](_0x40738a(-0x354,-0x2ac,-0x1f5,-0x2f3));function _0x40738a(_0x3e1e3c,_0x14641a,_0x1eba94,_0x3aa4b7){return _0x2c5722(_0x1eba94,_0x14641a-_0x5ee4ac._0x16ad2f,_0x14641a- -0x2f3,_0x3aa4b7-0x189);}function _0x53c904(_0x52213e,_0x53d15c,_0x3e2ea0,_0x42b133){return _0x949fe0(_0x52213e,_0x42b133-0x667,_0x3e2ea0-_0x37f03e._0x46ea23,_0x42b133-_0x37f03e._0x18292c);}return this[_0x40738a(-_0x4a7bfe._0x560346,-0x148,-0x173,-_0x4a7bfe._0x1bbf56)](_0x258d46[_0x40738a(-0x21c,-_0x4a7bfe._0x3443a6,-0x2e2,-_0x4a7bfe._0x24a00e)]);}[_0x2c5722(0xa6,0x1c7,0xfe,0xfe)](_0x11249c){const _0x5c9e5d={_0x2117f2:0x19f,_0x3a663a:0x13f,_0x2cb629:0x1f1},_0x387969={_0x184c39:0x1b6,_0x50e4ed:0x38,_0x443a7e:0x186};function _0x371ffa(_0x3075ed,_0x225e67,_0x131ed2,_0x5d7aa2){return _0x2c5722(_0x5d7aa2,_0x225e67-_0x387969._0x184c39,_0x131ed2-_0x387969._0x50e4ed,_0x5d7aa2-_0x387969._0x443a7e);}this[_0x371ffa(_0x5c9e5d._0x2117f2,0x154,_0x5c9e5d._0x3a663a,_0x5c9e5d._0x2cb629)]['set'](_0x11249c,['/responses']);}[_0x949fe0(-0xb0,-0x15d,-0x1cb,-0x16f)](_0x200b57){const _0x562297={_0x838ad4:0x1ab,_0x55a08d:0xd4},_0x4919b7={_0x1c1fef:0x24,_0x5dacc4:0x1f0,_0x2f95fc:0x86},_0x56f492={_0x2189bf:0x117};function _0x26087e(_0x4c7154,_0x1d08b2,_0x17816d,_0x1f94c6){return _0x949fe0(_0x1d08b2,_0x1f94c6-0x3fb,_0x17816d-_0x56f492._0x2189bf,_0x1f94c6-0x104);}function _0x16b96e(_0x419e22,_0x3c04a5,_0x1b1cc5,_0xba0aa6){return _0x2c5722(_0x1b1cc5,_0x3c04a5-_0x4919b7._0x1c1fef,_0x419e22- -_0x4919b7._0x5dacc4,_0xba0aa6-_0x4919b7._0x2f95fc);}if(_0x200b57 instanceof OpenAiApiError)return createResponseError(_0x200b57[_0x26087e(_0x562297._0x838ad4,0x2f9,0x200,0x247)],_0x200b57['body']||_0x200b57[_0x16b96e(-0xce,-_0x562297._0x55a08d,-0xad,-0x186)]);return _0x200b57;}[_0x949fe0(-0x261,-0x24a,-0x1a8,-0x246)](_0x226490,_0x282b81){const _0x47046e={_0x2bc04:0x11d,_0x51846a:0x16b,_0x49bc7f:0x699,_0x4cd095:0x614,_0x1eaa41:0x21b,_0x5b270b:0x2c9,_0x2bbb3a:0x14e,_0x411990:0x172,_0x23f0cf:0xfc,_0x1bd6b7:0x1b3,_0x115e9c:0x20c,_0x49888b:0x218,_0xb4a335:0x17c,_0x53ae3b:0x54f,_0x135335:0x6cf,_0x40d7ab:0x611,_0x22c109:0x72b,_0x344165:0x57f,_0x50fa47:0x599,_0x1d82bd:0x53e,_0x45b8a0:0x671,_0x22e7c1:0x6f3,_0x21c3a8:0x67d,_0x1cc93a:0x4ab,_0x8df4b8:0x523,_0x48a551:0x66e,_0x2a6ecd:0x5ee,_0x9c0413:0x4e0},_0x423885={_0x76a3e4:0x77f,_0x3f2ecd:0xe2,_0x5cf3f6:0xcb};function _0x1a9acf(_0x28973b,_0x102be1,_0x368ff2,_0x27909c){return _0x949fe0(_0x102be1,_0x27909c-_0x423885._0x76a3e4,_0x368ff2-_0x423885._0x3f2ecd,_0x27909c-_0x423885._0x5cf3f6);}function _0x5b534b(_0x106b64,_0x448b04,_0x8930ac,_0x5672e7){return _0x949fe0(_0x8930ac,_0x448b04-0x3ce,_0x8930ac-0x1e8,_0x5672e7-0x86);}switch(this[_0x5b534b(_0x47046e._0x2bc04,_0x47046e._0x51846a,0x110,0x14d)]){case _0x1a9acf(_0x47046e._0x49bc7f,0x62c,0x552,_0x47046e._0x4cd095):return this[_0x5b534b(0x1e2,_0x47046e._0x1eaa41,_0x47046e._0x5b270b,0x1ee)][_0x5b534b(_0x47046e._0x2bbb3a,_0x47046e._0x411990,_0x47046e._0x23f0cf,_0x47046e._0x1bd6b7)](_0x226490,_0x282b81);case'openai-chat-completions':return this[_0x5b534b(_0x47046e._0x115e9c,_0x47046e._0x49888b,_0x47046e._0xb4a335,0x202)](_0x226490,_0x282b81);case _0x1a9acf(0x5ce,_0x47046e._0x53ae3b,0x4e8,0x53b):return this['response'](_0x226490,_0x282b81);case _0x1a9acf(_0x47046e._0x135335,_0x47046e._0x40d7ab,_0x47046e._0x22c109,0x692):return this[_0x1a9acf(0x472,_0x47046e._0x344165,_0x47046e._0x50fa47,_0x47046e._0x1d82bd)](_0x226490,_0x282b81);case _0x1a9acf(_0x47046e._0x45b8a0,0x5fe,_0x47046e._0x22e7c1,_0x47046e._0x21c3a8):return this[_0x1a9acf(_0x47046e._0x1cc93a,0x51e,0x47a,_0x47046e._0x8df4b8)](_0x226490,_0x282b81);}throw new Error(_0x1a9acf(0x5c8,_0x47046e._0x48a551,0x588,_0x47046e._0x2a6ecd)+String(this[_0x1a9acf(_0x47046e._0x9c0413,_0x47046e._0x1cc93a,0x56e,0x51c)]));}[_0x949fe0(-0x26a,-0x204,-0x1d8,-0x1c3)](_0x4cd533,_0x5ed903){const _0x291e23={_0x5cc5ef:0x2db,_0x26afdb:0x3bd,_0x5ddaea:0x366,_0xefb04d:0x46a,_0x209b0e:0x4a3,_0x157dd0:0x416,_0x537ba4:0x3cf,_0x9485e3:0x3df,_0x3a8a20:0x429,_0x19fff7:0x2f9,_0x567624:0x385,_0x5bb81d:0x4a7,_0x14fdc4:0x531,_0x65446e:0x60c,_0x2b4999:0x422,_0x21a7d1:0x494,_0x3fc4d7:0x467,_0x16f5ea:0x4e8,_0x30d540:0x4c7,_0x38bf5e:0x438},_0x55738e={_0x380b4c:0x682};function _0x4a37b5(_0x5cae1b,_0x384fe9,_0x4b445f,_0x11da14){return _0x949fe0(_0x384fe9,_0x4b445f-_0x55738e._0x380b4c,_0x4b445f-0x10c,_0x11da14-0x8b);}switch(this[_0x563619(_0x291e23._0x5cc5ef,0x3f8,_0x291e23._0x26afdb,_0x291e23._0x5ddaea)]){case _0x563619(_0x291e23._0xefb04d,0x3c6,0x3e9,0x45e):return this[_0x563619(0x38c,_0x291e23._0x209b0e,0x3c8,_0x291e23._0x157dd0)]['stream'](_0x4cd533,_0x5ed903);case _0x563619(0x401,0x4d7,0x470,0x4a9):return this[_0x563619(0x393,_0x291e23._0x537ba4,0x3b1,_0x291e23._0x9485e3)](_0x4cd533,_0x5ed903);case _0x563619(0x3b3,_0x291e23._0x3a8a20,_0x291e23._0x19fff7,_0x291e23._0x567624):return this[_0x4a37b5(0x52f,0x3ec,_0x291e23._0x5bb81d,_0x291e23._0x14fdc4)](_0x4cd533,_0x5ed903);case _0x4a37b5(0x4df,0x573,0x595,_0x291e23._0x65446e):return this['responseSocketStream'](_0x4cd533,_0x5ed903);case'auto':return this[_0x563619(0x4cb,_0x291e23._0x2b4999,_0x291e23._0x21a7d1,_0x291e23._0x3fc4d7)](_0x4cd533,_0x5ed903);}function _0x563619(_0x2f6d4c,_0x2518a9,_0x7bbba1,_0x552b0a){return _0x2c5722(_0x7bbba1,_0x2518a9-0x96,_0x552b0a-0x325,_0x552b0a-0x4e);}throw new Error(_0x563619(_0x291e23._0x16f5ea,_0x291e23._0x30d540,0x454,_0x291e23._0x38bf5e)+String(this['surface']));}async[_0x2c5722(0x9c,-0x48,0x48,-0x29)](_0x7caa78,_0x358e8c){const _0x5b1879={_0x39c901:0x3cb,_0x5ca9d2:0x428,_0x1b1647:0x26f,_0x33a696:0x4aa,_0x505f44:0x292,_0x5ae65d:0x39f,_0xdf3585:0x2f0,_0x485a63:0x2e1,_0x3af698:0x3b2,_0x3170ce:0x40e,_0x37afd8:0x3f6,_0x895701:0x3a8,_0x359c3d:0x363,_0x10d84e:0x3ff,_0x2fb79e:0x385,_0x404646:0x2bb,_0x230e10:0x278,_0x416e83:0x2e3,_0xc8e99a:0x261,_0x360bda:0x22f,_0xef0798:0x223},_0x4fb8dc={_0x51da1e:0x509,_0x11d350:0x12c,_0x23db9c:0xf8},_0x28b21c=this[_0x3e6ce5(_0x5b1879._0x39c901,_0x5b1879._0x5ca9d2,0x3f0,0x37e)](_0x7caa78);function _0x3e6ce5(_0x3e2ead,_0x5542d7,_0x47711c,_0x2133fe){return _0x949fe0(_0x2133fe,_0x5542d7-_0x4fb8dc._0x51da1e,_0x47711c-_0x4fb8dc._0x11d350,_0x2133fe-_0x4fb8dc._0x23db9c);}function _0x109fc3(_0x3501a5,_0x1a4dcf,_0x5e896c,_0x35a0df){return _0x2c5722(_0x1a4dcf,_0x1a4dcf-0xbb,_0x3501a5- -0x2ec,_0x35a0df-0x13b);}if(this[_0x109fc3(-0x2ab,-_0x5b1879._0x1b1647,-0x242,-0x299)]!==_0x3e6ce5(0x3e5,0x407,_0x5b1879._0x33a696,0x3cb))return this[_0x109fc3(-_0x5b1879._0x505f44,-0x261,-0x258,-0x2b9)](_0x28b21c,_0x358e8c);if(this['shouldPreferResponsesApi'](_0x28b21c))return this[_0x3e6ce5(_0x5b1879._0x5ae65d,_0x5b1879._0xdf3585,_0x5b1879._0x485a63,_0x5b1879._0x3af698)](_0x28b21c,_0x358e8c);try{return await this[_0x3e6ce5(_0x5b1879._0x3170ce,_0x5b1879._0x37afd8,0x4a3,0x386)](_0x28b21c,_0x358e8c);}catch(_0x5d3b8b){if(_0x5d3b8b instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5d3b8b['body']))return this[_0x3e6ce5(_0x5b1879._0x895701,_0x5b1879._0x359c3d,_0x5b1879._0x10d84e,_0x5b1879._0x2fb79e)](_0x28b21c[_0x3e6ce5(0x288,_0x5b1879._0x404646,_0x5b1879._0x230e10,_0x5b1879._0x416e83)]),this[_0x109fc3(-_0x5b1879._0xc8e99a,-_0x5b1879._0x360bda,-0x21e,-_0x5b1879._0xef0798)](_0x28b21c,_0x358e8c);throw this['mapApiError'](_0x5d3b8b);}throw _0x5d3b8b;}}async*[_0x2c5722(0xb9,0xa5,0x142,0x165)](_0x6cf61b,_0x39b8e9){const _0x33f9f5={_0x4b38c5:0x86,_0x559293:0x67,_0x5620e5:0x1ae,_0x258344:0x5a,_0x34e9d8:0x47,_0x5d42e8:0x71,_0x169eaa:0x45b,_0x452c32:0x554,_0x5929f5:0x516,_0x7818d7:0x162,_0x22b38d:0x1fa,_0x38e6c8:0x220,_0x12389d:0x1e3,_0x4686bf:0x236,_0x2ba56:0x134,_0x208542:0x613,_0x7e5edd:0x507,_0x4d5fe5:0x574,_0x43f97b:0x40a,_0x1314b9:0x4cc,_0x485354:0xad,_0x4f3d3d:0x133,_0x58b225:0xeb,_0x48c07c:0x124,_0x12c2c3:0xaf,_0x114e8e:0xe,_0xadac96:0x10e},_0x46267d={_0x920c0a:0x13b,_0x121d0c:0x10b},_0x33a002={_0x286506:0xa8},_0x3a7dab=this[_0x40b9ec(_0x33f9f5._0x4b38c5,-0x39,0x5f,-_0x33f9f5._0x559293)](_0x6cf61b);function _0x40b9ec(_0x319d85,_0x14baa9,_0x5f323e,_0x40a6cd){return _0x949fe0(_0x319d85,_0x14baa9-_0x33a002._0x286506,_0x5f323e-0x1ef,_0x40a6cd-0x173);}if(this[_0x40b9ec(-_0x33f9f5._0x5620e5,-0x1bb,-0x211,-0x188)]!==_0x40b9ec(-0x51,-_0x33f9f5._0x258344,-_0x33f9f5._0x34e9d8,_0x33f9f5._0x5d42e8)){yield*this[_0x3e636b(0x573,_0x33f9f5._0x169eaa,_0x33f9f5._0x452c32,_0x33f9f5._0x5929f5)](_0x3a7dab,_0x39b8e9);return;}if(this[_0x40b9ec(-_0x33f9f5._0x7818d7,-0x192,-_0x33f9f5._0x22b38d,-_0x33f9f5._0x38e6c8)](_0x3a7dab)){yield*this[_0x40b9ec(-_0x33f9f5._0x12389d,-0x133,-0xbc,-0x17e)](_0x3a7dab,_0x39b8e9);return;}function _0x3e636b(_0x2bfd05,_0x39a25f,_0x485e20,_0x58e7c0){return _0x2c5722(_0x485e20,_0x39a25f-_0x46267d._0x920c0a,_0x58e7c0-0x476,_0x58e7c0-_0x46267d._0x121d0c);}try{yield*this['streamViaChatCompletionsSurface'](_0x3a7dab,_0x39b8e9);}catch(_0x1d02d1){if(_0x1d02d1 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1d02d1[_0x40b9ec(-_0x33f9f5._0x4686bf,-0x172,-_0x33f9f5._0x2ba56,-0xf3)])){this[_0x3e636b(_0x33f9f5._0x208542,0x4db,_0x33f9f5._0x7e5edd,_0x33f9f5._0x4d5fe5)](_0x3a7dab[_0x3e636b(0x4c5,0x590,_0x33f9f5._0x43f97b,_0x33f9f5._0x1314b9)]),yield*this[_0x40b9ec(-_0x33f9f5._0x485354,-_0x33f9f5._0x4f3d3d,-_0x33f9f5._0x58b225,-_0x33f9f5._0x48c07c)](_0x3a7dab,_0x39b8e9);return;}throw this[_0x40b9ec(-_0x33f9f5._0x12c2c3,-0xb5,_0x33f9f5._0x114e8e,-_0x33f9f5._0xadac96)](_0x1d02d1);}throw _0x1d02d1;}}async['getModels'](_0x2d1475){const _0x5790e0={_0x4b23f0:0x166,_0x10e47e:0x5c,_0x3ab290:0x2e,_0x3dc71d:0xab,_0x359083:0xc8,_0x475422:0x4a,_0x3f67d6:0x10,_0x4bc241:0x8,_0x130643:0x3a},_0x465d91={_0x327218:0x84},_0x5e649e={_0x1cf369:0x36b,_0x25c8b8:0x3fa,_0x4b520d:0x44b,_0x337278:0x62a,_0x30c20b:0x326,_0xecf25:0x32e,_0x5e2c0e:0x2ce,_0x3d7209:0x57b,_0x3cd363:0x568,_0x125dd1:0x511},_0x502469={_0x43cf37:0xf3},_0x1d5e4={_0x3849af:0x5},_0x59cbd3=await this['sendRawRequest']({'path':'/models','method':_0x157e17(-_0x5790e0._0x4b23f0,-0x5b,-0x52,-0xcf),'signal':_0x2d1475});if(!_0x59cbd3['ok'])throw this[_0x157e17(-_0x5790e0._0x10e47e,-0x62,-0xcc,-_0x5790e0._0x3ab290)](await this[_0x5bb193(0xc6,0xbc,_0x5790e0._0x3dc71d,_0x5790e0._0x359083)](_0x59cbd3));const _0x483585=await _0x59cbd3[_0x157e17(0x44,0x7a,_0x5790e0._0x475422,_0x5790e0._0x3f67d6)]();function _0x5bb193(_0x17fc30,_0x28f97b,_0x17dfb4,_0x1366fd){return _0x949fe0(_0x1366fd,_0x17dfb4-0x2ad,_0x17dfb4-_0x1d5e4._0x3849af,_0x1366fd-0x27);}const _0x2da6f0=(_0x483585['data']??[])[_0x157e17(_0x5790e0._0x4bc241,-_0x5790e0._0x130643,-0x31,-0xc3)](_0x3e2e07=>{const _0x4ff785={_0x42860d:0xe6},_0x594c09=createModelInfo(_0x3e2e07);function _0x4fb3fe(_0x3526c7,_0x523fca,_0x48d7d0,_0x1d104c){return _0x157e17(_0x523fca,_0x523fca-0xcb,_0x48d7d0-_0x4ff785._0x42860d,_0x3526c7-0x450);}_0x594c09[_0x4fb3fe(0x396,_0x5e649e._0x1cf369,_0x5e649e._0x25c8b8,_0x5e649e._0x4b520d)]&&this[_0x4e04d1(0x5c7,_0x5e649e._0x337278,0x5bc,0x668)][_0x4fb3fe(_0x5e649e._0x30c20b,_0x5e649e._0xecf25,_0x5e649e._0x5e2c0e,0x357)](_0x594c09['id'],_0x594c09[_0x4e04d1(_0x5e649e._0x3d7209,_0x5e649e._0x3cd363,_0x5e649e._0x125dd1,0x558)]);function _0x4e04d1(_0x16f539,_0x3eb828,_0x44a44d,_0x42b64a){return _0x5bb193(_0x16f539-0x1b2,_0x3eb828-_0x502469._0x43cf37,_0x16f539-0x4b7,_0x3eb828);}return _0x594c09;});function _0x157e17(_0x19f9d5,_0x5614d5,_0x42483e,_0x20e020){return _0x949fe0(_0x19f9d5,_0x20e020-0x12f,_0x42483e-0x167,_0x20e020-_0x465d91._0x327218);}return deduplicateModels(_0x2da6f0);}};function createHeaders(_0x5c64f9){const _0x2c2ece={_0x3c4aec:0x40c,_0x5b3ccb:0x3d9},_0x6a4bfd={_0x273da6:0xc4,_0x50061a:0x1b5},_0x4a1357=new Headers();function _0x5bcc62(_0x47eb09,_0x536c6b,_0xc0f718,_0x390b80){return _0x2c5722(_0x390b80,_0x536c6b-_0x6a4bfd._0x273da6,_0xc0f718-0x24f,_0x390b80-_0x6a4bfd._0x50061a);}for(const [_0x465a52,_0x5762b5]of Object[_0x5bcc62(0x417,_0x2c2ece._0x3c4aec,_0x2c2ece._0x5b3ccb,0x37b)](_0x5c64f9)){_0x4a1357['set'](_0x465a52,_0x5762b5);}return _0x4a1357;}async function fetchRawResponse(_0x337601){const _0xc73cd2={_0x42a2ba:0x305,_0x84baf7:0x34d,_0x5786b6:0x2d3,_0x3b7681:0x280,_0x39afdb:0x39d,_0x33e236:0x478,_0x5db1ed:0x3c9,_0xc91280:0x2bc,_0x562d0a:0x30c,_0x16c49a:0x272,_0x4473cb:0x36a,_0x54c0b0:0x262,_0x40ba08:0x38c,_0xda561:0x320,_0x56f21b:0x26c},_0x3ca9f9={_0x347e8c:0xa3,_0x5d37b8:0x173},_0x120852={_0x45c83f:0x11b,_0x1b4fba:0x296,_0x574cdf:0x35};function _0x5d3326(_0xf28d56,_0x4d3541,_0x1c1951,_0x3211ef){return _0x2c5722(_0x3211ef,_0x4d3541-_0x120852._0x45c83f,_0x1c1951-_0x120852._0x1b4fba,_0x3211ef-_0x120852._0x574cdf);}const _0x6ce4fc=_0x337601[_0x261a85(_0xc73cd2._0x42a2ba,_0xc73cd2._0x84baf7,_0xc73cd2._0x5786b6,_0xc73cd2._0x3b7681)]??globalThis[_0x5d3326(0x417,_0xc73cd2._0x39afdb,0x3fd,_0xc73cd2._0x33e236)];function _0x261a85(_0x22c0fb,_0xdfa17c,_0x11d2fa,_0x23feca){return _0x949fe0(_0x22c0fb,_0x11d2fa-0x410,_0x11d2fa-_0x3ca9f9._0x347e8c,_0x23feca-_0x3ca9f9._0x5d37b8);}return _0x6ce4fc(_0x337601[_0x5d3326(0x3f0,0x4c3,0x45d,_0xc73cd2._0x5db1ed)],{'method':'POST','headers':createHeaders(_0x337601[_0x261a85(_0xc73cd2._0xc91280,0x38b,_0xc73cd2._0x562d0a,0x3bf)]),'body':JSON[_0x5d3326(0x386,_0xc73cd2._0x16c49a,0x307,_0xc73cd2._0x4473cb)](_0x337601[_0x5d3326(_0xc73cd2._0x54c0b0,_0xc73cd2._0x40ba08,_0xc73cd2._0xda561,0x36b)]),'signal':_0x337601[_0x5d3326(0x2c6,0x2b0,0x325,_0xc73cd2._0x56f21b)]});}async function fetchJsonResponse(_0xc94404){const _0x5cb471={_0x5a6c34:0xd8,_0x345253:0xcb,_0x4a6f64:0x87,_0x340432:0x181,_0x24696c:0xde},_0x15010e={_0x26b73a:0x1e1},_0x4680aa={_0x14991b:0x18f,_0x23dcdb:0x199};function _0x3e8cd7(_0x6a74cc,_0x580647,_0x57ce45,_0x1cbf64){return _0x949fe0(_0x6a74cc,_0x580647-0x1b7,_0x57ce45-_0x4680aa._0x14991b,_0x1cbf64-_0x4680aa._0x23dcdb);}function _0x474395(_0x2dca53,_0x23d859,_0x56f150,_0x298db9){return _0x2c5722(_0x23d859,_0x23d859-0x1c9,_0x56f150- -0x24d,_0x298db9-_0x15010e._0x26b73a);}const _0x895895=await fetchRawResponse(_0xc94404);if(!_0x895895['ok']){const _0x42eb01=await _0x895895[_0x3e8cd7(0x7f,_0x5cb471._0x5a6c34,0x117,_0x5cb471._0x345253)](),_0x393ccb=_0x42eb01[_0x474395(-0x155,-0x169,-0x147,-0x1a7)]()||_0x895895['statusText']||_0x3e8cd7(_0x5cb471._0x4a6f64,0x31,-0x17,0xd);throw new Error(_0x474395(-0xea,-_0x5cb471._0x340432,-_0x5cb471._0x24696c,-0x132)+_0x895895['status']+':\x20'+_0x393ccb);}return await _0x895895['json']();}function findLastMessage(_0x5cf03b,_0x426ce7){const _0x5cb1dd={_0xb44f9:0x7d,_0xcf0d7b:0x4e},_0x400f48={_0x3fe699:0x14a,_0x1bf824:0x1e3,_0x4774b4:0x2b};for(let _0x7e137d=_0x5cf03b[_0x140242(0x1,-_0x5cb1dd._0xb44f9,_0x5cb1dd._0xcf0d7b,0xe0)]-0x1;_0x7e137d>=0x0;_0x7e137d-=0x1){if(_0x5cf03b[_0x7e137d]['role']===_0x426ce7)return _0x5cf03b[_0x7e137d];}function _0x140242(_0x499c69,_0x4c5630,_0x487f78,_0x459d30){return _0x949fe0(_0x499c69,_0x487f78-_0x400f48._0x3fe699,_0x487f78-_0x400f48._0x1bf824,_0x459d30-_0x400f48._0x4774b4);}return void 0x0;}function hasTool(_0x8dd4e4,_0x11ca0c){const _0x3cdfc2={_0x9a4b10:0xa9,_0x472d6b:0x57,_0x421b10:0xe7,_0x2cb0ad:0x3d},_0x38bd31={_0x1f9e95:0x1e0};function _0x4ced65(_0x1bde0f,_0x2544d4,_0x3d3b1a,_0x5dc904){return _0x2c5722(_0x5dc904,_0x2544d4-_0x38bd31._0x1f9e95,_0x2544d4- -0xf3,_0x5dc904-0x6d);}function _0x1481e8(_0xaff52c,_0x2a125e,_0x454e96,_0x5b8aab){return _0x2c5722(_0x454e96,_0x2a125e-0x65,_0x2a125e- -0x255,_0x5b8aab-0x19);}return _0x8dd4e4['tools'][_0x4ced65(_0x3cdfc2._0x9a4b10,_0x3cdfc2._0x472d6b,_0x3cdfc2._0x421b10,_0x3cdfc2._0x2cb0ad)](_0x44457f=>_0x44457f[_0x1481e8(-0x63,-0xa1,-0xb2,-0x3b)]===_0x11ca0c);}function createMockResponse(_0xd93faf,_0x5daca0,_0x453688,_0x24ec31){return{'id':_0xd93faf,'content':_0x5daca0,'stopReason':_0x453688,'usage':_0x24ec31};}var MockModel=class{[_0x949fe0(-0x27c,-0x24e,-0x302,-0x2db)];[_0x949fe0(-0x12e,-0xe7,-0x13f,-0x38)];[_0x2c5722(0x6d,0x18f,0x129,0xf2)]=[];[_0x2c5722(0x1e5,0xbc,0x125,0x1d6)];constructor(_0x12a2c7={}){const _0x35306d={_0x1e62fe:0x45e,_0x57276f:0x4c0,_0x3a80fc:0x6dc,_0x2624c5:0x667,_0x16f91f:0x6af,_0x599d88:0x667},_0x25d3ea={_0x40b656:0x50,_0x14398a:0xe7};function _0x3d8601(_0x105f1e,_0xcfec73,_0x4e1133,_0x29afce){return _0x949fe0(_0xcfec73,_0x29afce-0x74e,_0x4e1133-0x69,_0x29afce-0xcc);}function _0x5eef89(_0x45d93a,_0x28c40d,_0x4d8609,_0x2f0666){return _0x2c5722(_0x2f0666,_0x28c40d-0x101,_0x28c40d-_0x25d3ea._0x40b656,_0x2f0666-_0x25d3ea._0x14398a);}this['model']=_0x12a2c7[_0x3d8601(0x4e0,_0x35306d._0x1e62fe,_0x35306d._0x57276f,0x500)]??'mock',this[_0x3d8601(0x6c4,0x653,_0x35306d._0x3a80fc,_0x35306d._0x2624c5)]=_0x12a2c7[_0x3d8601(0x721,_0x35306d._0x16f91f,0x693,_0x35306d._0x599d88)]??0x4000,this['reasoning']=_0x12a2c7[_0x3d8601(0x58f,0x57d,0x554,0x5cf)]?structuredClone(_0x12a2c7['reasoning']):void 0x0;}async['complete'](_0x2a5cf2,_0x27c6a9){const _0x383d29={_0x4c8db6:0x1d0,_0x534e0d:0x1cb,_0x119f9b:0x21e,_0x16de13:0x285,_0x3098d0:0x216,_0x1f0b65:0x23c,_0x36f26d:0x1d6,_0x3b884c:0x1ab,_0x423546:0x106,_0x4cb1ae:0x164,_0x3d2fd2:0x27c,_0x1974fe:0x163,_0x3c1a73:0x9d,_0x18b5e8:0x98,_0x2f16d3:0x58,_0x3d990f:0x8b,_0x3508f8:0x117,_0x59fc57:0x236,_0x3839c4:0x2e9,_0xc52927:0x2b3,_0x54bc0d:0x242,_0x386524:0x2b2,_0x43f7f1:0x14c,_0x557094:0x11b,_0x119743:0x124,_0x206d6b:0xb7,_0xa93bb8:0x11c,_0x3b0638:0x15c,_0x33a66f:0x22b,_0x3305cd:0x17c,_0xbd4b35:0x1c2,_0x39ed14:0x1a1,_0x17c215:0x2e4,_0x521c1b:0x1cc,_0x3b3f73:0x231,_0x5cb566:0x1b1,_0x56e9d1:0x1c0,_0x2e6bf7:0x311,_0x2d08f2:0x1f2,_0x48e3b7:0x104,_0x260eef:0x44,_0x16dc35:0xc8,_0x37638a:0x6e,_0x36550c:0x160,_0x4b2f16:0x73,_0x4284ad:0x191,_0x4e0d0b:0x134,_0x1c8159:0x12,_0x16538d:0xbd,_0x19e116:0xe},_0x2f8901={_0xb799e0:0x19a,_0x4e5adb:0x91,_0x15991f:0x95},_0x65658={_0xe6ae23:0x391,_0x30cafd:0x187,_0x598f11:0x164},_0x1e3fd7={...structuredClone(_0x2a5cf2),..._0x2a5cf2[_0x181c1e(_0x383d29._0x4c8db6,0x1f8,0x1f8,0x212)]===void 0x0&&this[_0x181c1e(0x147,_0x383d29._0x534e0d,0x14f,0x212)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this[_0x181c1e(_0x383d29._0x119f9b,0x2b4,_0x383d29._0x16de13,_0x383d29._0x3098d0)][_0x181c1e(0x11f,_0x383d29._0x1f0b65,_0x383d29._0x36f26d,_0x383d29._0x3b884c)](_0x1e3fd7);function _0x181c1e(_0x3057bc,_0x2b79eb,_0x19e379,_0xd930b9){return _0x949fe0(_0x3057bc,_0xd930b9-_0x65658._0xe6ae23,_0x19e379-_0x65658._0x30cafd,_0xd930b9-_0x65658._0x598f11);}const _0x4b4337=findLastMessage(_0x1e3fd7[_0xf88445(_0x383d29._0x423546,_0x383d29._0x4cb1ae,0x9a,0xe0)],_0x181c1e(0x2ce,0x33f,0x2e9,_0x383d29._0x3d2fd2)),_0x15b7b9=getToolResultBlocks(_0x4b4337),_0x126e11='assistant-'+this[_0xf88445(_0x383d29._0x1974fe,_0x383d29._0x3c1a73,_0x383d29._0x18b5e8,0x2e)][_0xf88445(_0x383d29._0x2f16d3,_0x383d29._0x3d990f,_0x383d29._0x3508f8,0x17b)];if(_0x15b7b9[_0x181c1e(_0x383d29._0x59fc57,0x1ed,0x223,0x295)]>0x0)return createMockResponse(_0x126e11,[{'type':_0x181c1e(_0x383d29._0x3839c4,_0x383d29._0xc52927,_0x383d29._0x54bc0d,_0x383d29._0x386524),'text':_0x181c1e(0x72,_0x383d29._0x43f7f1,_0x383d29._0x557094,0x132)+_0x15b7b9[0x0][_0x181c1e(0x10f,0xfb,0x1e7,_0x383d29._0x119743)]}],_0x181c1e(0x1f9,0x159,0xe0,0x1a9),{'inputTokens':0x78,'outputTokens':0x28});function _0xf88445(_0x2d50a4,_0x30ecd9,_0x207709,_0x36c4f8){return _0x2c5722(_0x30ecd9,_0x30ecd9-_0x2f8901._0xb799e0,_0x207709- -_0x2f8901._0x4e5adb,_0x36c4f8-_0x2f8901._0x15991f);}const _0x296c15=getTextFromMessage(_0x4b4337);if(/list .*files|workspace/i[_0x181c1e(_0x383d29._0x206d6b,0x1d0,_0x383d29._0xa93bb8,_0x383d29._0x3b0638)](_0x296c15)&&hasTool(_0x1e3fd7,_0x181c1e(0x24c,_0x383d29._0x33a66f,_0x383d29._0x3305cd,_0x383d29._0xbd4b35)))return createMockResponse(_0x126e11,[{'type':_0x181c1e(_0x383d29._0x39ed14,_0x383d29._0x17c215,_0x383d29._0x521c1b,0x261),'id':_0x181c1e(_0x383d29._0x3b3f73,_0x383d29._0x5cb566,0x177,_0x383d29._0x56e9d1)+this['requests'][_0x181c1e(0x1f7,_0x383d29._0x2e6bf7,_0x383d29._0x2d08f2,0x295)],'name':_0xf88445(0x94,_0x383d29._0x48e3b7,_0x383d29._0x260eef,_0x383d29._0x16dc35),'input':{'command':_0xf88445(0x8c,-0x3a,0x57,-_0x383d29._0x37638a)}}],_0xf88445(_0x383d29._0x36550c,_0x383d29._0x4b2f16,0xe3,0x6d),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x126e11,[{'type':_0xf88445(_0x383d29._0x4284ad,0x8c,_0x383d29._0x4e0d0b,0x198),'text':_0xf88445(-_0x383d29._0x1c8159,-_0x383d29._0x16538d,-0x57,_0x383d29._0x19e116)+_0x296c15}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};