@nuvin/agent-core 0.1.0-rc.0 → 0.1.0-rc.2

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(_0x3af565,_0x13923e){const _0x28c698={_0x4e58d8:0x451,_0x2a64a9:0x44f,_0x5acb02:0x3d3,_0x360647:0x440,_0x12227a:0x40b,_0x5b2c7c:0x4d7,_0x4a12c7:0x3f1,_0x357aa4:0x217,_0x1901a7:0x376,_0x564c3:0x2aa,_0x1cbc2d:0x3f6,_0x31ed73:0x33f,_0x3cb1a9:0x353,_0x24447c:0x402,_0x52350c:0x2cb,_0x3c0d59:0x1b9,_0x1a72cf:0x322,_0x468e89:0x2df,_0x1f1949:0x292,_0x5b1982:0x30a};function _0x1460d8(_0x25a86f,_0x235ba9,_0x959627,_0x1fc904){return _0x44a4(_0x25a86f-0x130,_0x1fc904);}function _0x48b401(_0x5d9e6c,_0x138d1c,_0x12359f,_0x1c2612){return _0x44a4(_0x12359f-0x1fb,_0x5d9e6c);}const _0x5f20da=_0x3af565();while(!![]){try{const _0x33a2af=-parseInt(_0x48b401(_0x28c698._0x4e58d8,_0x28c698._0x2a64a9,_0x28c698._0x5acb02,_0x28c698._0x360647))/0x1*(parseInt(_0x48b401(_0x28c698._0x12227a,_0x28c698._0x5b2c7c,0x450,_0x28c698._0x4a12c7))/0x2)+parseInt(_0x1460d8(0x24d,0x2e3,_0x28c698._0x357aa4,0x1f2))/0x3*(parseInt(_0x1460d8(_0x28c698._0x1901a7,0x415,_0x28c698._0x564c3,_0x28c698._0x1cbc2d))/0x4)+parseInt(_0x48b401(0x36f,0x35a,0x3eb,_0x28c698._0x31ed73))/0x5+parseInt(_0x48b401(0x326,_0x28c698._0x3cb1a9,0x381,0x3fb))/0x6+parseInt(_0x48b401(0x324,0x399,0x3f2,_0x28c698._0x24447c))/0x7*(-parseInt(_0x1460d8(0x244,_0x28c698._0x52350c,_0x28c698._0x3c0d59,0x2b4))/0x8)+parseInt(_0x48b401(_0x28c698._0x1a72cf,0x221,_0x28c698._0x468e89,_0x28c698._0x1f1949))/0x9+parseInt(_0x1460d8(0x2ff,_0x28c698._0x468e89,_0x28c698._0x5b1982,0x234))/0xa;if(_0x33a2af===_0x13923e)break;else _0x5f20da['push'](_0x5f20da['shift']());}catch(_0x26e2a4){_0x5f20da['push'](_0x5f20da['shift']());}}}(_0x2390,0x60400));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-QDOE7NWO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x317839){const _0x542a75={_0xf6a821:0x42b,_0x9bfe51:0x1b1},_0x9de059={_0x510f73:0x1d5},_0x27d0b4={_0x213fae:0x306};super(_0x317839);function _0x571ab9(_0x706ed6,_0x36d29a,_0x34ed2b,_0x2444a5){return _0x44a4(_0x34ed2b- -_0x27d0b4._0x213fae,_0x2444a5);}function _0x501ff3(_0x1d9b4a,_0x2b23ad,_0x255657,_0x137afa){return _0x44a4(_0x1d9b4a-_0x9de059._0x510f73,_0x2b23ad);}this[_0x501ff3(0x403,0x4cd,_0x542a75._0xf6a821,0x3b4)]=_0x571ab9(-_0x542a75._0x9bfe51,-0x11c,-0x18e,-0xd5);}},ProviderStreamEventError=class extends Error{[_0x3adc1d(-0x114,-0x13c,-0xd3,-0xbe)];[_0x3adc1d(-0x135,-0x1eb,-0x1fb,-0x131)];['status'];constructor(_0x1722e8,_0x58d9da={}){const _0x221458={_0x4c4e80:0x3ae,_0x5d6a15:0x377,_0x519c84:0x224,_0x3b1faf:0x213,_0x12c4c7:0x199,_0x1b887e:0x22d,_0x1377c0:0x19f,_0x4c5353:0x215,_0xc1065e:0x2f2,_0x304d8d:0xdf,_0x18c8bc:0x178,_0x272481:0xf1,_0x4c38ab:0x3d4,_0x3f67f5:0x342,_0x57a54a:0x265},_0x43684c={_0x5376c3:0x82};super(_0x1722e8);function _0x21fef3(_0xbfda77,_0xff6f9a,_0x348a6a,_0x3005a0){return _0x3adc1d(_0xbfda77-0x95,_0xff6f9a,_0x348a6a-0x6d,_0x348a6a-0x2eb);}this[_0x21fef3(0x37e,_0x221458._0x4c4e80,0x30c,_0x221458._0x5d6a15)]=_0x21fef3(_0x221458._0x519c84,0x2a3,_0x221458._0x3b1faf,0x1e4),this[_0x21fef3(_0x221458._0x12c4c7,0x1ab,_0x221458._0x1b887e,_0x221458._0x1377c0)]=_0x58d9da[_0x21fef3(0x2bc,_0x221458._0x4c5353,_0x221458._0x1b887e,_0x221458._0xc1065e)];function _0x2093f0(_0x3f942b,_0x44a916,_0x17c741,_0x1db127){return _0x521c92(_0x3f942b-0x1e4,_0x3f942b,_0x17c741-_0x43684c._0x5376c3,_0x17c741-0x3e);}this[_0x21fef3(_0x221458._0x304d8d,0x19b,0x1ba,0x288)]=_0x58d9da['retryable']??!![],this[_0x2093f0(_0x221458._0x18c8bc,0x163,_0x221458._0x272481,0xea)]=_0x58d9da[_0x21fef3(_0x221458._0x4c38ab,0x277,_0x221458._0x3f67f5,_0x221458._0x57a54a)];}};function isRetryableProviderStreamEventError(_0x2aa62a){return _0x2aa62a instanceof ProviderStreamEventError&&_0x2aa62a['retryable'];}var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x3adc1d(-0x10a,-0xb5,-0x61,-0x103);function parseToolInput(_0x861a54){try{return JSON['parse'](_0x861a54);}catch{return _0x861a54;}}function resolveReasoningVisibility(_0x3ba097){const _0x2ae488={_0x1c6069:0x63b,_0x54ecbe:0x648,_0x5fcd8b:0xbf},_0x5d9c66={_0x5d5029:0x1e0,_0x4f49a1:0x1c7,_0x292f69:0x4d5},_0x2b1b9c={_0x20ef1f:0x12a};function _0x2adcb1(_0x1b8874,_0x2e085d,_0x553c0e,_0x4b3396){return _0x521c92(_0x1b8874-0x1f,_0x4b3396,_0x553c0e-0x5a,_0x553c0e-_0x2b1b9c._0x20ef1f);}function _0x1ea31e(_0xe8ab76,_0x4a73be,_0x313f47,_0x14a03f){return _0x521c92(_0xe8ab76-_0x5d9c66._0x5d5029,_0x313f47,_0x313f47-_0x5d9c66._0x4f49a1,_0x4a73be-_0x5d9c66._0x292f69);}return _0x3ba097[_0x1ea31e(0x4fe,0x595,_0x2ae488._0x1c6069,_0x2ae488._0x54ecbe)]?.[_0x1ea31e(0x4ec,0x410,0x3cd,0x3ec)]??_0x2adcb1(_0x2ae488._0x5fcd8b,0xab,0x69,-0x4a);}function isUserVisibleThinking(_0x272cd8){const _0x5c441e={_0x5cd0d5:0x2eb,_0x222701:0x2ce,_0xbc18c5:0x35d},_0x34e24f={_0x48b8a4:0x1f1,_0x3de91e:0x1cb},_0x27c7cb=resolveAnthropicThinkingConfig(_0x272cd8[_0x4c9f31(0x22f,_0x5c441e._0x5cd0d5,0x1c2,_0x5c441e._0x222701)]);function _0x4c9f31(_0x26ead4,_0x1d36df,_0x342384,_0x48c37c){return _0x3adc1d(_0x26ead4-0xb3,_0x1d36df,_0x342384-_0x34e24f._0x48b8a4,_0x26ead4-_0x34e24f._0x3de91e);}function _0x499a8b(_0x3dbbd3,_0x2c95d6,_0x4a7435,_0x19285a){return _0x521c92(_0x3dbbd3-0x5d,_0x2c95d6,_0x4a7435-0x37,_0x19285a-0x4a4);}return _0x27c7cb!==void 0x0&&_0x27c7cb['type']!=='disabled'&&resolveReasoningVisibility(_0x272cd8)===_0x499a8b(_0x5c441e._0xbc18c5,0x318,0x4ba,0x3e3);}function createAnthropicThinkingBody(_0x228b92){const _0x12472e={_0x1ee7d6:0x5c5,_0x1fbf6e:0x484,_0x1b81f9:0x3ff,_0x461171:0x3f5,_0x5a3125:0x5b9,_0x29b5af:0x572,_0x15b307:0x57d,_0x2235bd:0x4a0,_0x26ad71:0x497,_0x1e34e3:0x579,_0x449a4f:0x6b3,_0x502d6e:0x36f,_0x20f7f4:0x39e,_0x171510:0x43b,_0x413e0e:0x46f,_0x37b36e:0x3c7,_0x53a4e9:0x402},_0x202b8e={_0x1dc03b:0x37,_0x23236c:0x573},_0x4de512={_0x4a3cb1:0x46a},_0x4861da=resolveAnthropicThinkingConfig(_0x228b92[_0x4426b2(0x52a,_0x12472e._0x1ee7d6,0x4cf,0x537)]);if(!_0x4861da||_0x4861da['type']===_0x4426b2(_0x12472e._0x1fbf6e,0x46a,0x450,_0x12472e._0x1b81f9))return{};const _0xcec4c8=_0x4861da['display']??(isUserVisibleThinking(_0x228b92)?_0x4426b2(0x445,0x46c,_0x12472e._0x461171,0x430):_0x4426b2(0x507,_0x12472e._0x5a3125,0x467,0x455)),_0xcbff50=_0x4861da['interleaved']?{'anthropic-beta':_0xd15d60(0x464,_0x12472e._0x29b5af,_0x12472e._0x15b307,_0x12472e._0x2235bd)}:void 0x0;if(_0x4861da[_0xd15d60(0x4ed,0x4ff,_0x12472e._0x26ad71,0x585)]==='enabled')return{..._0xcbff50?{'headers':_0xcbff50}:{},'thinking':{'type':_0xd15d60(0x579,_0x12472e._0x1e34e3,_0x12472e._0x449a4f,0x5f7),'budget_tokens':_0x4861da[_0x4426b2(_0x12472e._0x502d6e,_0x12472e._0x20f7f4,_0x12472e._0x171510,0x3a2)],'display':_0xcec4c8}};function _0x4426b2(_0x1df180,_0x43bdf1,_0x124a00,_0x42e323){return _0x521c92(_0x1df180-0x1e2,_0x43bdf1,_0x124a00-0x14c,_0x1df180-_0x4de512._0x4a3cb1);}function _0xd15d60(_0x5c1928,_0x44ed3d,_0x2e9281,_0x8e46bf){return _0x521c92(_0x5c1928-_0x202b8e._0x1dc03b,_0x44ed3d,_0x2e9281-0x1cb,_0x8e46bf-_0x202b8e._0x23236c);}return{..._0xcbff50?{'headers':_0xcbff50}:{},'thinking':{'type':'adaptive',..._0x4861da[_0x4426b2(_0x12472e._0x413e0e,0x3a3,0x4b6,_0x12472e._0x37b36e)]?{'effort':_0x4861da[_0x4426b2(_0x12472e._0x413e0e,0x3d3,0x442,_0x12472e._0x53a4e9)]}:{},'display':_0xcec4c8}};}function toAnthropicRequestContent(_0x327b5c){const _0x57aec7={_0x38ab72:0x6c,_0x42773e:0xd7,_0x2371b1:0x1e,_0x2707e4:0x7,_0x458cba:0xba,_0x18da01:0x1f,_0x27a97c:0xaf,_0x323ca0:0xab,_0x1ff004:0x127,_0x9adf1f:0x13f,_0x2d8a39:0x3c,_0x5976db:0x1a4,_0x4c6b15:0x50,_0x316aab:0xdc,_0x64c17f:0x12f,_0x5793e6:0x33f,_0xe9c72c:0x270,_0x36ebfe:0x355,_0x20d8e:0xbc,_0x327bc6:0xb,_0x1e7fc1:0x6e,_0xf5c09:0x77,_0x1d574f:0x64,_0x1a7f30:0x64,_0x409e84:0x1bf,_0x4133b2:0xfe,_0x5c4c5f:0xbe,_0x357221:0x2e,_0x492bd9:0xaa,_0x30d108:0x16c,_0x17dda7:0xd4,_0x40320d:0x120,_0x34f418:0x21a},_0x20002a={_0x4ed49e:0x1a7},_0x3f082c={_0x52f941:0x9e};function _0x2d74d9(_0x2d00df,_0x3f128f,_0x401186,_0x1b2bf4){return _0x3adc1d(_0x2d00df-0xac,_0x401186,_0x401186-_0x3f082c._0x52f941,_0x1b2bf4-0x78);}if(_0x327b5c[_0x2d74d9(-0x99,-_0x57aec7._0x38ab72,-_0x57aec7._0x42773e,-0xe6)]===_0x2d74d9(-0xed,0x25,-_0x57aec7._0x2371b1,-_0x57aec7._0x2707e4)&&_0x327b5c[_0x2d74d9(-_0x57aec7._0x458cba,-0x5a,-_0x57aec7._0x18da01,-0xbf)]?.[_0x37e371(0xcd,0x37,_0x57aec7._0x27a97c,_0x57aec7._0x323ca0)])return structuredClone(_0x327b5c[_0x2d74d9(-_0x57aec7._0x1ff004,-_0x57aec7._0x9adf1f,-_0x57aec7._0x2d8a39,-0xbf)][_0x2d74d9(-_0x57aec7._0x5976db,-_0x57aec7._0x4c6b15,-0x145,-_0x57aec7._0x316aab)]);const _0x5b4f48=[];function _0x37e371(_0x48561a,_0x3e3d5f,_0x286b8c,_0x364275){return _0x521c92(_0x48561a-0x16e,_0x3e3d5f,_0x286b8c-0xf7,_0x286b8c-_0x20002a._0x4ed49e);}for(const _0x56f346 of normalizeContent(_0x327b5c['content'])){if(_0x56f346['type']===_0x2d74d9(0x5f,-_0x57aec7._0x64c17f,0x91,-0x5e))continue;if(_0x56f346['type']===_0x37e371(_0x57aec7._0x5793e6,0x2d0,_0x57aec7._0xe9c72c,_0x57aec7._0x36ebfe)){_0x5b4f48[_0x37e371(0x3e,0x18d,_0x57aec7._0x20d8e,0x16b)]({'type':_0x2d74d9(_0x57aec7._0x327bc6,-_0x57aec7._0x1e7fc1,_0x57aec7._0xf5c09,-0x64),'thinking':_0x56f346[_0x2d74d9(-0x12f,-0x95,-_0x57aec7._0x1d574f,-_0x57aec7._0x1a7f30)],'signature':_0x56f346[_0x37e371(_0x57aec7._0x409e84,0x161,_0x57aec7._0x4133b2,0xbe)]});continue;}if(_0x56f346[_0x2d74d9(0x11c,-0x12,_0x57aec7._0x5c4c5f,_0x57aec7._0x357221)]===_0x37e371(0x57,0x132,0x11d,0x107)){_0x5b4f48[_0x2d74d9(0x17,-_0x57aec7._0x492bd9,-0xf8,-0xcf)]({'type':_0x37e371(_0x57aec7._0x30d108,0x13f,0xd5,_0x57aec7._0x17dda7),'data':_0x56f346[_0x37e371(_0x57aec7._0x40320d,0x129,0x1e2,_0x57aec7._0x34f418)]});continue;}_0x5b4f48['push'](structuredClone(_0x56f346));}return _0x5b4f48;}function createAnthropicRequest(_0x2b72a4,_0x16848b){const _0x17708b={_0x65273d:0x325,_0x354985:0x1a2,_0x3aa679:0x2c6,_0xd70273:0x306,_0x52a913:0x5af,_0x23412f:0x11c,_0x2ef21a:0x35,_0x354649:0x96,_0x18bccb:0x4a8,_0x403cc2:0x38,_0x1b8ee2:0x1bb,_0x11c1a5:0x24c,_0x41df3b:0x56d,_0x377128:0x652,_0x57bf0d:0x5fa,_0x4d3512:0x641,_0x34e760:0x5c4,_0x59636f:0x235},_0x3a382d={_0x5d8299:0x336},_0x21f3c0={_0x3fc343:0x16e,_0x4c9f3b:0x356,_0x5ebf20:0x119},_0x3f0580={_0x79e29a:0x190,_0x52eb53:0x19c},_0x588814=toProviderModelRequest(_0x2b72a4);function _0x127d8a(_0x244c56,_0x31d2b9,_0x35dc68,_0xb9474f){return _0x3adc1d(_0x244c56-0xa8,_0x35dc68,_0x35dc68-0x1a2,_0x31d2b9-0x584);}const _0x2f0d22=createAnthropicThinkingBody(_0x2b72a4);function _0x284ae0(_0x14cb16,_0x3863ec,_0x462981,_0x1471f3){return _0x521c92(_0x14cb16-0x153,_0x1471f3,_0x462981-_0x3f0580._0x79e29a,_0x3863ec-_0x3f0580._0x52eb53);}return{'accept':_0x16848b?_0x284ae0(0x165,0x241,_0x17708b._0x65273d,_0x17708b._0x354985):'application/json','body':{..._0x588814,'messages':_0x2b72a4[_0x284ae0(_0x17708b._0x3aa679,0x218,0x2d2,_0x17708b._0xd70273)][_0x127d8a(0x4ea,0x4ea,0x42c,_0x17708b._0x52a913)](_0x3c7c81=>{function _0x232c52(_0x2d361b,_0x7a97b1,_0x572f17,_0x4c01ff){return _0x284ae0(_0x2d361b-_0x21f3c0._0x3fc343,_0x7a97b1- -_0x21f3c0._0x4c9f3b,_0x572f17-_0x21f3c0._0x5ebf20,_0x572f17);}return{'role':_0x3c7c81[_0x232c52(-0x1e6,-0x2bc,-0x38b,-_0x3a382d._0x5d8299)],'content':toAnthropicRequestContent(_0x3c7c81)};}),..._0x2f0d22[_0x284ae0(0x153,_0x17708b._0x23412f,_0x17708b._0x2ef21a,_0x17708b._0x354649)]?{'thinking':_0x2f0d22[_0x127d8a(0x53d,_0x17708b._0x18bccb,0x496,0x40c)]}:{},..._0x16848b?{'stream':!![]}:{},..._0x2b72a4[_0x284ae0(0x10b,0xe8,0x19,_0x17708b._0x403cc2)]?{'output_config':{'format':{'type':_0x284ae0(_0x17708b._0x1b8ee2,0x183,0x151,_0x17708b._0x11c1a5),'schema':_0x2b72a4['outputFormat'][_0x127d8a(0x5db,_0x17708b._0x41df3b,_0x17708b._0x377128,_0x17708b._0x57bf0d)]}}}:{}},..._0x2f0d22['headers']?{'headers':_0x2f0d22[_0x127d8a(_0x17708b._0x4d3512,0x584,0x5f1,_0x17708b._0x34e760)]}:{},'path':_0x284ae0(0x2a4,_0x17708b._0x59636f,0x2e4,0x1f3)};}function parseAnthropicResponse(_0x55e0a9,_0x4d7248){const _0x2491ec={_0x53892d:0x3d7,_0x3876c8:0x3ff,_0x961b74:0x415,_0x4b5944:0x4cb,_0x1977cf:0x4bc,_0x412a54:0x45c,_0x40a5dc:0x557,_0x308044:0x3ce,_0x528d56:0x3f4,_0x3b8f62:0x3ff,_0x566723:0x258,_0x36e134:0x14f,_0xc68536:0x13b,_0x3295c:0x1a4,_0x1900d8:0xe4,_0x2a1f1f:0x10b,_0x2c557e:0x2ea,_0x54b778:0x350,_0x2c4f08:0x276,_0x6b0fe1:0x31b,_0x42dd22:0x30f,_0x1100a8:0x2fa,_0x22e6eb:0x3f5,_0x4bcf1b:0x283,_0x23bae3:0x1c4,_0x574c93:0x21e,_0x1940ec:0x2e5,_0x8089d1:0x1bf,_0xfd2579:0xd5,_0x240a22:0x110,_0x441dd3:0x20d,_0x405262:0x247,_0x3ca356:0x347,_0x12b0b0:0x310,_0x1927fd:0x30c,_0x1175ba:0x258,_0x53abdf:0x206,_0x3fc2b6:0x1e3,_0x2de329:0x5c2,_0x41785c:0x5ab,_0x4e31ea:0x540,_0x577f52:0x236,_0x47f762:0x2de,_0x312d8b:0x3c5,_0x13f6d8:0x38f,_0x46381e:0x48b,_0x3ac95f:0x49c,_0x14e3a4:0x519,_0x477be6:0x501,_0x23a56f:0x562,_0x42d836:0x105,_0x18ee1c:0x15d,_0x32c153:0x236,_0x12eb03:0x219,_0x3fea50:0x183,_0x151281:0x4a7,_0x585ec9:0x3a7,_0xe57340:0x51e},_0x372767={_0x4fe311:0x31,_0x2b2cd7:0x515},_0x5ef62b={_0xdafb93:0x75,_0x42b074:0x1f2},_0x271c93=[],_0xbca83=_0x55e0a9[_0x24bdb9(_0x2491ec._0x53892d,_0x2491ec._0x3876c8,_0x2491ec._0x961b74,0x497)]??[];function _0x2f2e3a(_0x306c5e,_0x92cd80,_0x50967d,_0x45f0b0){return _0x521c92(_0x306c5e-_0x5ef62b._0xdafb93,_0x92cd80,_0x50967d-_0x5ef62b._0x42b074,_0x306c5e-0x264);}let _0x506cad=![];function _0x24bdb9(_0x2bbdd7,_0x1b3964,_0x4128aa,_0x52a48a){return _0x3adc1d(_0x2bbdd7-_0x372767._0x4fe311,_0x4128aa,_0x4128aa-0x184,_0x2bbdd7-_0x372767._0x2b2cd7);}for(const _0x4a6347 of _0xbca83){if(_0x4a6347[_0x24bdb9(_0x2491ec._0x4b5944,_0x2491ec._0x1977cf,_0x2491ec._0x412a54,_0x2491ec._0x40a5dc)]==='thinking'){_0x506cad=!![];isUserVisibleThinking(_0x4d7248)&&_0x271c93[_0x24bdb9(_0x2491ec._0x308044,_0x2491ec._0x528d56,_0x2491ec._0x3b8f62,0x423)]({'type':'anthropic_thinking','thinking':_0x4a6347[_0x2f2e3a(0x1e4,0x257,0x11f,_0x2491ec._0x566723)],'signature':_0x4a6347[_0x2f2e3a(0x1bb,_0x2491ec._0x36e134,_0x2491ec._0xc68536,0xd7)]});continue;}if(_0x4a6347['type']===_0x2f2e3a(0x192,_0x2491ec._0x3295c,_0x2491ec._0x1900d8,_0x2491ec._0x2a1f1f)){_0x506cad=!![];isUserVisibleThinking(_0x4d7248)&&_0x271c93['push']({'type':'anthropic_redacted_thinking','data':_0x4a6347[_0x2f2e3a(0x29f,0x251,_0x2491ec._0x2c557e,_0x2491ec._0x54b778)]});continue;}if(_0x4a6347[_0x2f2e3a(_0x2491ec._0x2c4f08,_0x2491ec._0x6b0fe1,0x1ed,0x1e6)]===_0x24bdb9(0x500,0x4e8,0x4ee,0x493)){_0x4a6347['text'][_0x2f2e3a(_0x2491ec._0x42dd22,0x27f,0x271,_0x2491ec._0x1100a8)]>0x0&&_0x271c93[_0x24bdb9(0x3ce,0x3bf,_0x2491ec._0x22e6eb,0x307)](structuredClone(_0x4a6347));continue;}_0x271c93['push'](structuredClone(_0x4a6347));}return{'id':_0x55e0a9['id']??_0x2f2e3a(_0x2491ec._0x4bcf1b,0x21d,_0x2491ec._0x23bae3,_0x2491ec._0x574c93)+Date[_0x2f2e3a(0x21a,_0x2491ec._0x1940ec,_0x2491ec._0x8089d1,0x23c)](),'content':_0x271c93,'stopReason':_0x271c93[_0x24bdb9(0x47c,0x499,0x3d2,0x4e0)](_0x372453=>_0x372453[_0x2f2e3a(0x276,0x35e,0x307,0x1c4)]===_0x24bdb9(0x565,0x600,0x4dd,0x481))?'tool_use':_0x55e0a9[_0x2f2e3a(0x1ac,_0x2491ec._0xfd2579,_0x2491ec._0x240a22,_0x2491ec._0x441dd3)]===_0x2f2e3a(0x310,_0x2491ec._0x405262,0x3ab,_0x2491ec._0x3ca356)?_0x2f2e3a(_0x2491ec._0x12b0b0,0x378,_0x2491ec._0x1927fd,_0x2491ec._0x1175ba):_0x2f2e3a(0x211,0x143,0x205,0x1d1),'usage':{'inputTokens':(_0x55e0a9[_0x2f2e3a(0x236,_0x2491ec._0x53abdf,_0x2491ec._0x42dd22,_0x2491ec._0x3fc2b6)]?.[_0x24bdb9(0x51d,_0x2491ec._0x2de329,_0x2491ec._0x41785c,_0x2491ec._0x4e31ea)]??0x0)+(_0x55e0a9[_0x2f2e3a(_0x2491ec._0x577f52,0x202,0x279,0x1d9)]?.[_0x2f2e3a(_0x2491ec._0x47f762,0x345,_0x2491ec._0x312d8b,_0x2491ec._0x13f6d8)]??0x0)+(_0x55e0a9[_0x24bdb9(_0x2491ec._0x46381e,0x44d,0x4b8,0x561)]?.[_0x24bdb9(_0x2491ec._0x3ac95f,0x563,_0x2491ec._0x14e3a4,0x582)]??0x0),'outputTokens':_0x55e0a9[_0x24bdb9(0x48b,_0x2491ec._0x477be6,0x49b,_0x2491ec._0x23a56f)]?.[_0x2f2e3a(0x1b1,_0x2491ec._0x42d836,_0x2491ec._0x18ee1c,0x27c)]??0x0,..._0x55e0a9[_0x2f2e3a(_0x2491ec._0x32c153,_0x2491ec._0x12eb03,_0x2491ec._0x3fea50,0x268)]?.['cache_read_input_tokens']?{'cacheReadInputTokens':_0x55e0a9['usage']['cache_read_input_tokens']}:{},..._0x55e0a9['usage']?.[_0x24bdb9(0x49c,_0x2491ec._0x151281,0x3fe,0x4b6)]?{'cacheCreationInputTokens':_0x55e0a9[_0x24bdb9(0x48b,_0x2491ec._0x585ec9,_0x2491ec._0xe57340,0x531)]['cache_creation_input_tokens']}:{}},..._0x506cad?{'providerState':{'anthropicAssistantContent':structuredClone(_0xbca83)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x521c92(-0x18,-0x6a,-0x5a,-0xdf)]=new Map();[_0x3adc1d(-0xc6,-0xb7,-0x11f,-0x39)]=0x0;[_0x521c92(-0x13,-0x109,0x32,-0x29)]=0x0;[_0x521c92(-0x101,-0x144,-0xc3,-0xe3)]=0x0;[_0x521c92(-0x14a,-0xd5,-0x2f,-0xe4)]=_0x521c92(-0xb7,0x26,-0x46,0x1f)+Date['now']();[_0x3adc1d(-0x121,-0x1fb,-0x99,-0x14a)]=0x0;[_0x3adc1d(-0x127,-0x20,-0xba,-0x68)];[_0x3adc1d(-0x2a,-0xd4,0x5,-0xaa)]=_0x3adc1d(-0x31,-0x14a,-0x87,-0xaf);constructor(_0x33631a){const _0x1f1fac={_0x312d52:0x9e},_0xe7e55={_0x27da0d:0x198,_0x210ae8:0x170};function _0x2d0166(_0x1274eb,_0x17134a,_0x1a5ccc,_0x2fe521){return _0x521c92(_0x1274eb-_0xe7e55._0x27da0d,_0x1a5ccc,_0x1a5ccc-0xbc,_0x2fe521- -_0xe7e55._0x210ae8);}this[_0x2d0166(-0x118,-_0x1f1fac._0x312d52,-0xfb,-0x17c)]=_0x33631a;}[_0x521c92(-0x136,-0x38,-0x2,-0xde)](_0x1e0706){const _0x56209b={_0x5a55af:0x46f,_0x16b679:0x469,_0x1d9dd4:0x4e3,_0x2b81ef:0x4c0,_0x4902cf:0x5c6,_0x409fd7:0x4e2,_0x5f1ba3:0x5c3,_0x586b84:0x5bb,_0x14afd7:0x408,_0x412887:0x71,_0x52182b:0x151,_0x2141fb:0x44,_0x3b0f4c:0x44b,_0x219113:0x50a,_0xb1152a:0x163,_0x284cc0:0xa7,_0x4415ef:0x58,_0x3fbfed:0x450,_0x14cdf3:0x15b,_0x1add28:0x5b7,_0x10050d:0x505,_0x5ae67d:0x143,_0x31e408:0xf3,_0x5bdd88:0x65,_0x53f415:0x52a,_0x199a74:0x565,_0x1aaf83:0x53a,_0x5af51b:0x58d,_0x2cb78a:0x42c,_0x51eeea:0x5f0,_0x4f351e:0x550,_0xa2b7e0:0x11,_0x4b8e01:0xd4,_0x5d2b81:0x41c,_0x8b46dc:0x4ce,_0xf5ccb5:0x3e0,_0x7b8129:0x50,_0x5ed375:0x78,_0x138300:0xcc,_0x17c3d4:0xb7,_0x505c9a:0x6d,_0xcc9405:0x16,_0x3b5fcb:0xad,_0x369a59:0x173,_0x6453f6:0x8b,_0x40e418:0x1e4,_0x3d20ca:0x125,_0x545ba3:0x1de,_0x55ef81:0x60f,_0x3aaa02:0x5b0,_0x4738d0:0x5ff,_0x5d44ff:0x4c7,_0x39a18e:0x2b,_0x66168e:0xff,_0x47b393:0x39,_0x2f962f:0x82,_0x3347c1:0x6c,_0x399eb9:0x37,_0xb504e4:0x77,_0x342b50:0xfd,_0x23666e:0xd,_0x5a6172:0x1d4,_0x221228:0x9f,_0x341fee:0xf6,_0x352523:0x18,_0x1b9e8b:0xcf,_0x159812:0x46,_0x2861a4:0x102,_0x5aa2f0:0x470,_0x5da2d4:0x95,_0x2675bd:0x87,_0x5791f0:0x42,_0x5a7228:0x4b3,_0x54313d:0x3d4,_0x2f794f:0x64c,_0x50d003:0x48a,_0x1cb69a:0x3e8,_0x4879ed:0x188,_0x2fb9bc:0xf9,_0x39b565:0xc0,_0x2afdf6:0x7,_0x40284a:0xba,_0x436ee3:0x5a3,_0x136b32:0x545,_0x40ea1e:0x4b2,_0xb8b733:0x5a9,_0x3d3fc6:0x390,_0x34190c:0x504,_0x5cadfe:0x465,_0x5cb7d9:0x426,_0x384edd:0x42,_0x5f4448:0x12,_0x38f529:0x59,_0x5b8080:0x2c,_0x5cc723:0x162,_0xce880f:0xb4,_0x2f42be:0x15,_0x230ae8:0x5e9,_0x367eac:0xb,_0x4f2e01:0x116,_0xbaa68c:0x438,_0x28863f:0x493,_0x5aa257:0x528,_0x5494be:0x3d,_0x12490c:0x5f,_0x161104:0x66,_0x4ae5ba:0x10c,_0x4586fa:0x15,_0x5f1a49:0x1c,_0x5a0a3e:0x15,_0x43bc23:0x690,_0x8d224e:0x4ef,_0x30f1a2:0x545,_0xa24316:0x4ca,_0x1415ba:0x464,_0x55f469:0x54f,_0x4441fb:0x547,_0x3a2c46:0x5e4,_0x47b992:0x61f,_0x4dad8a:0x64a,_0x50fb73:0x57a,_0x3248eb:0x5a8,_0x2bddcc:0x66a,_0x180f27:0x57c,_0x3db363:0x59c,_0x4ca883:0x5d1,_0x4d348d:0x527,_0x37d1c0:0xb1,_0x2e6181:0x24,_0x32d4bc:0x4a3,_0x42a0fd:0x7d,_0x34caf6:0x1a8,_0x449b16:0x154,_0x48d57e:0x54,_0x337a5d:0xc9,_0x2e1e60:0x53c,_0x2ae79f:0x57e,_0x513acf:0x56f,_0x1a5ef0:0x53c,_0x2bb119:0x5b3,_0x3eda01:0x59a,_0x3f1d52:0xc3,_0x5882a9:0x10a,_0x1a1f1a:0x14c,_0x25a94d:0xaf,_0x3eae0e:0x52,_0x36219c:0x460,_0x40d81a:0x119,_0xd16b3f:0x1e9,_0x24a529:0xe8,_0x358999:0x81,_0x369b51:0x7,_0x22a0b9:0x29,_0x85f785:0x632,_0x45fe27:0x583,_0x23084f:0x50c,_0x1b0b09:0x4b9,_0x140363:0x4fd,_0x25e09e:0x536,_0x1d083e:0x619,_0x53bc77:0xf,_0x549bce:0x51,_0x468118:0xa5,_0x20156d:0x6d,_0x24dae4:0x143,_0x11e8e1:0x1af,_0x4a7550:0x62,_0x146638:0x45d,_0x4be68d:0x4b3,_0x310165:0x50b,_0x23dabb:0x458,_0x514f19:0x48a,_0x9a350d:0x492,_0x489e2b:0x543,_0x4f8c05:0x612,_0x181107:0x577,_0x1f0d1f:0x572,_0x3f2223:0x5b,_0x5b97ef:0xdb,_0xa11485:0x30,_0x39d8b5:0x72,_0x212c75:0x519,_0x330c63:0x126,_0x18200e:0x505,_0x55b3f8:0x558,_0x43b24e:0x3de,_0x1e519f:0x597,_0x2ee2a5:0x503,_0x3e4832:0x59c,_0x4cc5f9:0x399,_0x55fdb7:0x524,_0x15f069:0x577,_0x3071ac:0x4f2,_0x3ca882:0xf3,_0x123280:0x9c,_0x3962f0:0x9e,_0x328f88:0x6c,_0x452fd7:0x568,_0xbe6ba1:0x556,_0x2f9bd3:0x51a,_0x2675a8:0x475,_0x18b845:0x3a6,_0x45beea:0xe5,_0x68012b:0x11d,_0x10fbfe:0x3f,_0x537ec5:0x665,_0x3707bc:0x3,_0xf7c5b8:0xaa,_0x2d12e0:0x1a6,_0x1c7ad8:0x56b,_0x20c0fc:0x52d,_0x2bb46a:0x613},_0x50d972={_0x3353de:0x199,_0x1dc856:0x104,_0x31c748:0x533},_0x5b849a={_0x316e0b:0x14a,_0x41682f:0x156,_0x2c318f:0x79},_0x13cfa2=_0x1e0706[_0x33e4d8(0x400,_0x56209b._0x5a55af,_0x56209b._0x16b679,0x4c0)]('\x0a'),_0x163d31=_0x13cfa2[_0x33e4d8(0x479,_0x56209b._0x1d9dd4,0x47d,_0x56209b._0x2b81ef)](_0x5dc1b2=>_0x5dc1b2[_0x3460d2(0x8c,0x8c,0x8a,-0x9)]('event:'))?.[_0x33e4d8(_0x56209b._0x4902cf,_0x56209b._0x409fd7,0x468,_0x56209b._0x5f1ba3)](0x6)['trim'](),_0x43f0cb=_0x13cfa2['filter'](_0x337d6c=>_0x337d6c[_0x33e4d8(0x549,0x544,0x4d7,0x627)]('data:'))[_0x33e4d8(0x4d4,0x4f5,_0x56209b._0x586b84,_0x56209b._0x14afd7)](_0x22a16a=>_0x22a16a[_0x33e4d8(0x452,0x4e2,0x55e,0x4bf)](0x5)[_0x33e4d8(0x4cd,0x561,0x5ce,0x4ae)]())[_0x3460d2(-0x7e,0x56,-0x55,0x60)]('\x0a')['trim']();if(_0x43f0cb[_0x3460d2(0x138,0x17a,0x124,0xb0)]===0x0||_0x43f0cb===_0x3460d2(_0x56209b._0x412887,_0x56209b._0x52182b,0x94,0x47))return[];function _0x3460d2(_0x1393d3,_0x190383,_0x12f33c,_0x18981d){return _0x521c92(_0x1393d3-_0x5b849a._0x316e0b,_0x1393d3,_0x12f33c-_0x5b849a._0x41682f,_0x12f33c-_0x5b849a._0x2c318f);}const _0x1f6c2f=JSON[_0x3460d2(-0x71,0x6d,-0x23,-_0x56209b._0x2141fb)](_0x43f0cb);switch(_0x163d31){case _0x33e4d8(_0x56209b._0x3b0f4c,0x4ae,_0x56209b._0x219113,0x3e3):{const _0x4ccfe4=_0x1f6c2f[_0x3460d2(0x10d,0x1bd,0xcd,_0x56209b._0xb1152a)];this['messageId']=_0x4ccfe4?.['id']??this[_0x3460d2(-_0x56209b._0x284cc0,-_0x56209b._0x4415ef,-0x6b,-0x30)],this[_0x33e4d8(0x44d,_0x56209b._0x3fbfed,0x47a,0x444)]=_0x4ccfe4?.['usage']?.[_0x3460d2(0x6e,0x23,0xdd,_0x56209b._0x14cdf3)]??this['inputTokens'],this['cacheReadInputTokens']=_0x4ccfe4?.[_0x33e4d8(_0x56209b._0x1add28,_0x56209b._0x10050d,0x5a4,0x5a5)]?.[_0x3460d2(_0x56209b._0x5ae67d,0xe8,_0x56209b._0x31e408,_0x56209b._0x5bdd88)]??this[_0x33e4d8(0x590,0x50a,0x503,_0x56209b._0x53f415)],this[_0x33e4d8(_0x56209b._0x199a74,0x556,_0x56209b._0x1aaf83,_0x56209b._0x5af51b)]=_0x4ccfe4?.[_0x33e4d8(0x4c7,_0x56209b._0x10050d,_0x56209b._0x2cb78a,_0x56209b._0x51eeea)]?.[_0x33e4d8(_0x56209b._0x4f351e,0x516,0x59a,0x4e5)]??this[_0x3460d2(0xe5,0x7,0x9c,-0x2c)];break;}case _0x3460d2(_0x56209b._0xa2b7e0,_0x56209b._0x4b8e01,0x95,0x138):{const _0x370a04=typeof _0x1f6c2f[_0x33e4d8(_0x56209b._0x5d2b81,_0x56209b._0x8b46dc,_0x56209b._0xf5ccb5,0x5a9)]===_0x3460d2(_0x56209b._0x7b8129,-0xf6,-_0x56209b._0x5ed375,0x52)?_0x1f6c2f[_0x3460d2(-_0x56209b._0x138300,_0x56209b._0x17c3d4,0x14,0xe4)]:0x0,_0x5c1b53=_0x1f6c2f[_0x3460d2(-0xe4,-0x8b,-_0x56209b._0x505c9a,-_0x56209b._0xcc9405)];if(_0x5c1b53?.[_0x3460d2(_0x56209b._0x3b5fcb,_0x56209b._0x369a59,_0x56209b._0x6453f6,0x16c)]===_0x3460d2(0xa8,_0x56209b._0x40e418,_0x56209b._0x3d20ca,_0x56209b._0x545ba3)&&_0x5c1b53['id']&&_0x5c1b53[_0x33e4d8(_0x56209b._0x55ef81,_0x56209b._0x3aaa02,_0x56209b._0x4738d0,_0x56209b._0x5d44ff)])return this['blocks'][_0x3460d2(0x2a,-0x8a,-0x42,-0x10f)](_0x370a04,{'id':_0x5c1b53['id'],'index':_0x370a04,'inputJson':JSON[_0x3460d2(_0x56209b._0x39a18e,-_0x56209b._0x66168e,-_0x56209b._0x47b393,_0x56209b._0x2f962f)](_0x5c1b53['input']??{}),'kind':_0x3460d2(0x18d,_0x56209b._0x3347c1,0x125,_0x56209b._0x399eb9),'name':_0x5c1b53[_0x3460d2(0x16b,_0x56209b._0xb504e4,0xf6,_0x56209b._0x342b50)]}),[{'type':_0x3460d2(_0x56209b._0x23666e,-0x6d,-_0x56209b._0x6453f6,-0x109),'id':_0x5c1b53['id'],'index':_0x370a04,'name':_0x5c1b53[_0x3460d2(_0x56209b._0x5a6172,_0x56209b._0x221228,_0x56209b._0x341fee,_0x56209b._0x352523)]}];if(_0x5c1b53?.[_0x3460d2(_0x56209b._0x1b9e8b,-_0x56209b._0x159812,_0x56209b._0x6453f6,_0x56209b._0x2861a4)]===_0x33e4d8(0x441,0x4b3,0x3ea,_0x56209b._0x5aa2f0)){this[_0x3460d2(_0x56209b._0x399eb9,-0x16,-0x66,-0xd5)][_0x3460d2(-_0x56209b._0x5da2d4,-_0x56209b._0x2675bd,-_0x56209b._0x5791f0,-0xe6)](_0x370a04,{'index':_0x370a04,'kind':_0x33e4d8(0x3ef,_0x56209b._0x5a7228,_0x56209b._0x54313d,0x448),'signature':typeof _0x5c1b53['signature']===_0x33e4d8(_0x56209b._0x2f794f,0x583,0x59a,0x5b6)?_0x5c1b53[_0x33e4d8(0x3f1,_0x56209b._0x50d003,_0x56209b._0x1cb69a,0x3f3)]:'','thinking':typeof _0x5c1b53[_0x3460d2(_0x56209b._0x4879ed,_0x56209b._0x2fb9bc,_0x56209b._0x39b565,0x71)]==='string'?_0x5c1b53['text']:typeof _0x5c1b53[_0x3460d2(0x6d,0x2,-_0x56209b._0x2afdf6,_0x56209b._0x40284a)]===_0x3460d2(0xe,0xc6,0xc9,0xf1)?String(_0x5c1b53['thinking']):''});break;}if(_0x5c1b53?.[_0x33e4d8(_0x56209b._0x436ee3,_0x56209b._0x136b32,_0x56209b._0x40ea1e,_0x56209b._0xb8b733)]===_0x33e4d8(_0x56209b._0x3d3fc6,0x461,_0x56209b._0x34190c,_0x56209b._0x5cadfe)){this[_0x33e4d8(0x419,0x454,_0x56209b._0x5cb7d9,0x426)][_0x3460d2(0x38,0x7d,-_0x56209b._0x384edd,-0x59)](_0x370a04,{'index':_0x370a04,'kind':_0x3460d2(0x85,-_0x56209b._0x5f4448,-_0x56209b._0x38f529,-0xff),'data':typeof _0x5c1b53[_0x3460d2(_0x56209b._0x5b8080,_0x56209b._0x5cc723,_0x56209b._0xce880f,-_0x56209b._0xa2b7e0)]===_0x3460d2(0x89,-_0x56209b._0x2f42be,0xc9,0x10f)?String(_0x5c1b53['data']):''});break;}this['blocks']['set'](_0x370a04,{'index':_0x370a04,'kind':'text','text':_0x5c1b53?.[_0x33e4d8(0x5ae,0x57a,0x4ee,_0x56209b._0x230ae8)]??''});break;}case _0x3460d2(_0x56209b._0x367eac,_0x56209b._0x4f2e01,0xa9,0x18d):{const _0xc132a9=typeof _0x1f6c2f[_0x33e4d8(_0x56209b._0xbaa68c,0x4ce,0x429,0x4af)]===_0x33e4d8(_0x56209b._0x28863f,0x442,0x4a4,_0x56209b._0x5aa257)?_0x1f6c2f[_0x33e4d8(0x48b,0x4ce,0x42d,0x4a2)]:0x0,_0x3d0c0a=this[_0x3460d2(-_0x56209b._0x5494be,_0x56209b._0x12490c,-_0x56209b._0x161104,-0x12b)][_0x3460d2(_0x56209b._0x4ae5ba,-_0x56209b._0x4586fa,_0x56209b._0x5f1a49,_0x56209b._0x5a0a3e)](_0xc132a9),_0x268364=_0x1f6c2f[_0x33e4d8(0x63a,0x5a5,_0x56209b._0x43bc23,_0x56209b._0x8d224e)];if(!_0x3d0c0a||!_0x268364?.[_0x33e4d8(0x512,_0x56209b._0x30f1a2,0x607,_0x56209b._0xa24316)])break;if(_0x268364[_0x33e4d8(0x46b,0x545,_0x56209b._0x1415ba,_0x56209b._0x55f469)]===_0x33e4d8(0x4b8,_0x56209b._0x4441fb,0x4d0,_0x56209b._0x3a2c46)&&_0x3d0c0a['kind']===_0x33e4d8(0x55f,0x57a,_0x56209b._0x47b992,_0x56209b._0x4dad8a)&&typeof _0x268364[_0x33e4d8(0x653,_0x56209b._0x50fb73,0x504,_0x56209b._0x3248eb)]===_0x33e4d8(_0x56209b._0x2bddcc,0x583,0x60b,0x65a))return _0x3d0c0a[_0x33e4d8(0x4b4,_0x56209b._0x50fb73,_0x56209b._0x180f27,0x4c8)]+=_0x268364[_0x33e4d8(0x498,0x57a,0x61c,0x644)],[{'type':_0x33e4d8(0x60d,_0x56209b._0x3db363,_0x56209b._0x4ca883,_0x56209b._0x4d348d),'index':_0xc132a9,'text':_0x268364[_0x3460d2(0xb,_0x56209b._0x37d1c0,_0x56209b._0x39b565,-_0x56209b._0x2e6181)]}];if(_0x268364[_0x33e4d8(0x4d0,0x545,0x5f1,_0x56209b._0x32d4bc)]==='input_json_delta'&&_0x3d0c0a['kind']==='tool_use'&&typeof _0x268364[_0x3460d2(0x9,_0x56209b._0x42a0fd,0xf9,_0x56209b._0x34caf6)]===_0x3460d2(_0x56209b._0x449b16,_0x56209b._0x48d57e,_0x56209b._0x337a5d,0x8))return _0x3d0c0a[_0x33e4d8(0x54d,_0x56209b._0x2e1e60,_0x56209b._0x2ae79f,_0x56209b._0x513acf)]==='{}'&&(_0x3d0c0a['inputJson']=''),_0x3d0c0a[_0x33e4d8(0x494,_0x56209b._0x1a5ef0,0x507,0x605)]+=_0x268364[_0x33e4d8(0x67a,_0x56209b._0x2bb119,_0x56209b._0x3eda01,0x4d8)],[{'type':_0x3460d2(-_0x56209b._0x3f1d52,-_0x56209b._0x5882a9,-0x8b,-_0x56209b._0x1a1f1a),'id':_0x3d0c0a['id'],'index':_0xc132a9,'inputDelta':_0x268364[_0x3460d2(0x15f,_0x56209b._0x25a94d,_0x56209b._0x2fb9bc,_0x56209b._0x48d57e)]}];if(_0x268364[_0x3460d2(0x31,0xe1,0x8b,_0x56209b._0x3eae0e)]===_0x33e4d8(_0x56209b._0x36219c,0x447,0x40e,0x3ce)&&_0x3d0c0a[_0x3460d2(0xf4,0x1a7,_0x56209b._0x40d81a,_0x56209b._0xd16b3f)]===_0x3460d2(-_0x56209b._0x24a529,-_0x56209b._0x358999,-_0x56209b._0x369b51,_0x56209b._0x22a0b9)){const _0x2cc983=typeof _0x268364['thinking']===_0x33e4d8(_0x56209b._0x85f785,_0x56209b._0x45fe27,_0x56209b._0x23084f,0x5c0)?String(_0x268364[_0x33e4d8(_0x56209b._0x1b0b09,0x4b3,0x590,0x50a)]):'';if(_0x2cc983[_0x33e4d8(_0x56209b._0x140363,0x5de,_0x56209b._0x25e09e,_0x56209b._0x1d083e)]>0x0){_0x3d0c0a[_0x3460d2(-_0x56209b._0x53bc77,-0x5d,-0x7,-0x67)]+=_0x2cc983;if(isUserVisibleThinking(this[_0x3460d2(_0x56209b._0x549bce,_0x56209b._0x468118,_0x56209b._0x20156d,_0x56209b._0x24dae4)]))return[{'type':_0x33e4d8(0x408,0x483,0x4b3,0x462),'index':_0xc132a9,'thinking':_0x2cc983}];}}if(_0x268364['type']==='signature_delta'&&_0x3d0c0a[_0x3460d2(_0x56209b._0x11e8e1,0xd4,0x119,_0x56209b._0x4a7550)]===_0x33e4d8(_0x56209b._0x146638,_0x56209b._0x4be68d,_0x56209b._0x310165,_0x56209b._0x23dabb)){const _0x527e1a=typeof _0x268364[_0x33e4d8(0x4df,_0x56209b._0x514f19,_0x56209b._0x9a350d,0x4dd)]===_0x33e4d8(0x53f,_0x56209b._0x45fe27,_0x56209b._0x489e2b,_0x56209b._0x4f8c05)?String(_0x268364[_0x33e4d8(0x563,_0x56209b._0x514f19,_0x56209b._0x181107,_0x56209b._0x1f0d1f)]):'';if(_0x527e1a[_0x3460d2(_0x56209b._0x3f2223,_0x56209b._0x5b97ef,0x124,0x67)]>0x0){_0x3d0c0a[_0x3460d2(-0xed,-0x35,-_0x56209b._0xa11485,-_0x56209b._0x39d8b5)]=_0x527e1a;if(isUserVisibleThinking(this[_0x33e4d8(_0x56209b._0x212c75,_0x56209b._0x4d348d,0x616,0x5ec)]))return[{'type':_0x3460d2(_0x56209b._0x330c63,0xf3,0x78,-0x3f),'index':_0xc132a9,'signature':_0x527e1a}];}}break;}case _0x33e4d8(0x4c5,0x581,0x648,0x5d2):{const _0x158fbe=_0x1f6c2f[_0x3460d2(0x3c,0x75,0xeb,-0x4)],_0x3463a8=_0x1f6c2f[_0x33e4d8(0x586,_0x56209b._0x18200e,_0x56209b._0x55b3f8,0x4a3)];this[_0x33e4d8(0x52d,_0x56209b._0x3fbfed,0x4c1,_0x56209b._0x43b24e)]=_0x3463a8?.[_0x33e4d8(0x603,_0x56209b._0x1e519f,_0x56209b._0x2ee2a5,_0x56209b._0x3e4832)]??this[_0x33e4d8(0x4d1,0x450,_0x56209b._0x4cc5f9,_0x56209b._0x55fdb7)],this[_0x33e4d8(_0x56209b._0x15f069,0x50a,0x4e1,_0x56209b._0x3071ac)]=_0x3463a8?.[_0x3460d2(0x195,0xf,_0x56209b._0x3ca882,0xab)]??this['cacheReadInputTokens'],this[_0x3460d2(0x155,0x13b,_0x56209b._0x123280,-0x5)]=_0x3463a8?.[_0x3460d2(-0x83,_0x56209b._0x3962f0,0x5c,-_0x56209b._0x328f88)]??this[_0x33e4d8(_0x56209b._0x452fd7,_0x56209b._0xbe6ba1,_0x56209b._0x23084f,0x56e)],this[_0x33e4d8(_0x56209b._0x2f9bd3,0x445,_0x56209b._0x2675a8,_0x56209b._0x18b845)]=_0x3463a8?.[_0x3460d2(0x3a,0xa8,-0x3a,-0xcf)]??this['outputTokens'],this['stopReason']=_0x158fbe?.[_0x3460d2(-_0x56209b._0x45beea,-_0x56209b._0x68012b,-_0x56209b._0x10fbfe,0x5)]===_0x33e4d8(_0x56209b._0x537ec5,0x5df,0x6ae,0x566)?'tool_use':_0x3460d2(0x19,-_0x56209b._0x3707bc,0x26,-_0x56209b._0xf7c5b8);break;}case'error':{const _0xd2a2dc=_0x1f6c2f[_0x3460d2(0xe6,_0x56209b._0x2d12e0,0xfb,0xd4)];throw new ProviderStreamEventError(_0xd2a2dc?.[_0x3460d2(0xb2,0xbd,0xcd,0x3a)]??_0x33e4d8(_0x56209b._0x28863f,0x4a0,_0x56209b._0x1c7ad8,_0x56209b._0x9a350d),{'code':_0xd2a2dc?.[_0x33e4d8(0x47a,0x545,_0x56209b._0x20c0fc,_0x56209b._0x2bb46a)],'retryable':!![]});}}function _0x33e4d8(_0x486b1f,_0x3fe1cc,_0x11c1d1,_0x8df905){return _0x521c92(_0x486b1f-_0x50d972._0x3353de,_0x8df905,_0x11c1d1-_0x50d972._0x1dc856,_0x3fe1cc-_0x50d972._0x31c748);}return[];}[_0x3adc1d(-0x14b,0x64,-0xa6,-0x89)](){const _0x412391={_0x31fbbf:0x192,_0x4a5e8c:0x159,_0xb4e513:0x1a7,_0x1cf134:0x169,_0xa60d2a:0x1f6,_0x362933:0x203,_0x8f9d5b:0x126,_0x38cb89:0x427,_0x3618d8:0x403,_0x4a083d:0x189,_0xfe3efc:0x239,_0x4b03db:0x20c,_0x2dbb97:0x430,_0x154e08:0x401,_0x1c5f5b:0x44c,_0x5ca018:0x4c9,_0x363c76:0x47b,_0x4a98aa:0x465,_0xf73a10:0x3b0,_0x5f3fc1:0x462,_0x1a4eff:0x21b,_0x14c381:0x27d,_0x569e57:0x307,_0x116f44:0x3f2,_0x234892:0x39e,_0xb1cb0c:0x186,_0x2f14de:0x13d,_0x836b3b:0xf,_0x2cf3d3:0x85,_0x48b36f:0xf3,_0x45d395:0xcf,_0x2b68d4:0xf9,_0x18b2d8:0x4f0,_0x8e3f5f:0x13c,_0x254b53:0xac,_0x8d13ed:0xa1,_0x1daf16:0x7f,_0x55626c:0x88,_0x58b2c:0x1d,_0x36d746:0x149,_0x2f96b2:0x6,_0x571eb9:0x3b7,_0x65c288:0x137,_0x551f20:0x17a,_0x21cd0b:0x21f,_0x4fb987:0x40c,_0x4da8aa:0x4e2,_0x33c225:0x557,_0x1b35f8:0x410,_0x596143:0x537,_0x23e57f:0x4c9,_0x31bb46:0x33c,_0x5ca5fe:0x427,_0x5499cd:0x28d,_0x1831ab:0x1c7,_0x2c533d:0x57,_0x4f0668:0x125,_0x48d582:0x3ce,_0x2b767d:0x330,_0x1f37a7:0x1bd,_0x42e005:0x23e,_0x4b7899:0x167},_0x105397={_0x11896b:0x17a,_0x40f80d:0x14b},_0x281eea=Array[_0x8410ec(_0x412391._0x31fbbf,_0x412391._0x4a5e8c,_0x412391._0xb4e513,0x190)](this['blocks'][_0x8410ec(_0x412391._0x1cf134,0x213,0x20d,0x219)]())[_0x8410ec(0x74,_0x412391._0xa60d2a,_0x412391._0x362933,_0x412391._0x8f9d5b)]((_0xea12ce,_0x3c5b7c)=>_0xea12ce[_0x2a7837(0x452,0x323,0x3e6,0x3b9)]-_0x3c5b7c[_0x2a7837(0x2db,0x33b,0x403,0x3b9)]);function _0x8410ec(_0x9687d7,_0x106b83,_0x5cc2b5,_0x372cc5){return _0x3adc1d(_0x9687d7-0x49,_0x5cc2b5,_0x5cc2b5-0x89,_0x372cc5-0x1cf);}const _0x942458=[];function _0x2a7837(_0x417e3d,_0x2aa7b9,_0x485d6e,_0x3eab72){return _0x521c92(_0x417e3d-_0x105397._0x11896b,_0x417e3d,_0x485d6e-_0x105397._0x40f80d,_0x3eab72-0x41e);}for(const _0x438e3e of _0x281eea){if(_0x438e3e[_0x2a7837(0x55a,_0x412391._0x38cb89,_0x412391._0x3618d8,0x4be)]===_0x8410ec(_0x412391._0x4a083d,_0x412391._0xfe3efc,_0x412391._0x4b03db,0x1ba)){_0x438e3e['text'][_0x2a7837(_0x412391._0x2dbb97,_0x412391._0x154e08,_0x412391._0x1c5f5b,_0x412391._0x5ca018)]>0x0&&_0x942458[_0x2a7837(0x3ff,0x2e5,0x410,0x333)]({'type':_0x2a7837(0x425,_0x412391._0x363c76,0x4ab,_0x412391._0x4a98aa),'text':_0x438e3e[_0x2a7837(_0x412391._0xf73a10,0x37d,_0x412391._0x5f3fc1,_0x412391._0x4a98aa)]});continue;}if(_0x438e3e[_0x8410ec(_0x412391._0x1a4eff,0x25b,_0x412391._0x14c381,0x213)]===_0x2a7837(_0x412391._0x569e57,0x471,_0x412391._0x116f44,_0x412391._0x234892)){_0x942458[_0x2a7837(0x2d0,0x37b,0x281,0x333)]({'type':_0x8410ec(_0x412391._0xb1cb0c,_0x412391._0x2f14de,0x3,0xf3),'thinking':_0x438e3e[_0x8410ec(_0x412391._0x836b3b,0xaa,_0x412391._0x2cf3d3,_0x412391._0x48b36f)],'signature':_0x438e3e[_0x8410ec(_0x412391._0x45d395,0x8c,_0x412391._0x2b68d4,0xca)]});continue;}if(_0x438e3e[_0x2a7837(0x557,0x488,_0x412391._0x18b2d8,0x4be)]===_0x8410ec(_0x412391._0x8e3f5f,_0x412391._0x254b53,0xa5,_0x412391._0x8d13ed)){_0x942458[_0x8410ec(-0x12,0x1b,_0x412391._0x1daf16,_0x412391._0x55626c)]({'type':_0x8410ec(-_0x412391._0x58b2c,_0x412391._0x36d746,_0x412391._0x2f96b2,0xa1),'data':_0x438e3e[_0x2a7837(0x52f,0x548,_0x412391._0x571eb9,0x459)]});continue;}_0x942458['push']({'type':_0x8410ec(0x262,_0x412391._0x65c288,_0x412391._0x551f20,_0x412391._0x21cd0b),'id':_0x438e3e['id'],'name':_0x438e3e[_0x8410ec(0x1fa,0x215,0x1ed,0x1f0)],'input':parseToolInput(_0x438e3e[_0x2a7837(0x49d,_0x412391._0x4fb987,_0x412391._0x4da8aa,0x427)][_0x2a7837(_0x412391._0x33c225,_0x412391._0x1b35f8,_0x412391._0x596143,_0x412391._0x23e57f)]>0x0?_0x438e3e[_0x2a7837(0x390,_0x412391._0x31bb46,0x374,_0x412391._0x5ca5fe)]:'{}')});}return parseAnthropicResponse({'id':this['messageId'],'type':_0x8410ec(0x1f7,0x133,_0x412391._0x5499cd,_0x412391._0x1831ab),'role':'assistant','content':_0x942458,'stop_reason':this[_0x8410ec(0x158,_0x412391._0x2c533d,0x158,_0x412391._0x4f0668)],'stop_sequence':null,'usage':{'input_tokens':this[_0x2a7837(_0x412391._0x48d582,0x3cc,_0x412391._0x2b767d,0x33b)],'output_tokens':this['outputTokens'],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this[_0x8410ec(_0x412391._0x1f37a7,0x109,0x10d,0x196)]}},this[_0x8410ec(_0x412391._0x42e005,0x192,0x252,_0x412391._0x4b7899)]);}};function createAnthropicSurfaces(){const _0xae6918={_0x58a53c:0x195,_0x5992bf:0x10e,_0x3b8156:0x4a,_0x40e31e:0x13},_0x594ab5={_0x49b8ee:0x1a8,_0x2c8c00:0x192},_0x581aae={_0x4367a0:0x5b};function _0x1cd038(_0x33ae12,_0x4bf829,_0x5bfd6f,_0x4a7955){return _0x521c92(_0x33ae12-0x1eb,_0x33ae12,_0x5bfd6f-_0x581aae._0x4367a0,_0x5bfd6f-0x342);}function _0x4abace(_0x155805,_0x112e50,_0x2613f4,_0x34854f){return _0x521c92(_0x155805-0x1bf,_0x112e50,_0x2613f4-_0x594ab5._0x49b8ee,_0x2613f4-_0x594ab5._0x2c8c00);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x4abace(_0xae6918._0x58a53c,_0xae6918._0x5992bf,0x1df,0x29a),'createRequest'(_0x5463e7){return createAnthropicRequest(_0x5463e7,![]);},'parseResponse'(_0x2750d3,_0xbb361a){return parseAnthropicResponse(_0x2750d3,_0xbb361a);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x4abace(0x82,-_0xae6918._0x3b8156,0x8b,-_0xae6918._0x40e31e),'createRequest'(_0x197edc){return createAnthropicRequest(_0x197edc,!![]);},'createStreamParser'(_0x2da426){return new AnthropicMessagesStreamParser(_0x2da426);}}];}var StaticModelSurfaceRouter=class{['completeSurface'];[_0x521c92(0x3f,-0x106,-0x34,-0x96)];constructor(_0x1c8369){const _0x1df29b={_0x1420b2:0x182,_0x5c094d:0x265,_0x4cbf10:0x2e8,_0x1260e2:0x2dd,_0xfe40aa:0x266,_0x4aeef9:0x2b4},_0x5132dc={_0x4cb01d:0x16b,_0x2436dc:0xa9,_0x5de9d8:0x254};function _0x2554c5(_0x14cec4,_0x3cb095,_0x40b165,_0x26bb0d){return _0x3adc1d(_0x14cec4-_0x5132dc._0x4cb01d,_0x40b165,_0x40b165-_0x5132dc._0x2436dc,_0x14cec4-_0x5132dc._0x5de9d8);}function _0x4adb49(_0x1fdbe3,_0x51bfd7,_0x3365ec,_0x543db2){return _0x3adc1d(_0x1fdbe3-0x1a5,_0x1fdbe3,_0x3365ec-0xf9,_0x3365ec- -0x1c7);}this[_0x2554c5(_0x1df29b._0x1420b2,0x151,_0x1df29b._0x5c094d,0x221)]=_0x1c8369[_0x4adb49(-0x235,-_0x1df29b._0x4cbf10,-0x245,-_0x1df29b._0x1260e2)],this['streamSurface']=_0x1c8369[_0x2554c5(_0x1df29b._0xfe40aa,_0x1df29b._0x4aeef9,0x1be,0x2b7)];}[_0x3adc1d(-0x2,-0x19f,-0x3,-0xeb)](_0x4613da,_0x415fb8){const _0x20f9c1={_0x40aded:0x2e4,_0x4d0c5c:0x232,_0x3cecea:0x221,_0x354a2e:0x310,_0x50624d:0x38f,_0x35c9d9:0x4c2},_0x3149a4={_0x33f780:0x120,_0x5aa39e:0x16c},_0x5af11e={_0x2737a8:0x360};function _0x2edb2b(_0xcbaa39,_0x3898f6,_0x595fe3,_0x423e8a){return _0x3adc1d(_0xcbaa39-0x18,_0x595fe3,_0x595fe3-0xc6,_0x423e8a-_0x5af11e._0x2737a8);}function _0x522845(_0x441d06,_0x1d9261,_0x5beadc,_0x39a17e){return _0x3adc1d(_0x441d06-_0x3149a4._0x33f780,_0x441d06,_0x5beadc-_0x3149a4._0x5aa39e,_0x39a17e-0x537);}return _0x415fb8[_0x2edb2b(_0x20f9c1._0x40aded,_0x20f9c1._0x4d0c5c,_0x20f9c1._0x3cecea,_0x20f9c1._0x354a2e)]==='stream'?this[_0x522845(_0x20f9c1._0x50624d,_0x20f9c1._0x35c9d9,0x407,0x445)]:this['completeSurface'];}};function trimTrailingSlashes(_0x53802b){const _0x3c1a35={_0x2993a9:0x3eb,_0x2a9210:0x3d1,_0x49aedf:0x499,_0x14a28b:0x3de},_0x3ff7ba={_0x1c41fa:0xe4,_0x468b55:0x33e};function _0x2e3554(_0x1052d8,_0x31906d,_0x4afcea,_0x33be93){return _0x521c92(_0x1052d8-_0x3ff7ba._0x1c41fa,_0x31906d,_0x4afcea-0x8e,_0x1052d8-_0x3ff7ba._0x468b55);}return _0x53802b[_0x2e3554(_0x3c1a35._0x2993a9,_0x3c1a35._0x2a9210,_0x3c1a35._0x49aedf,_0x3c1a35._0x14a28b)](/\/+$/,'');}function resolveApiCredential(_0x1ddbfb,_0x42de5c){const _0x5df078={_0x3d6507:0x1af,_0x3bfb85:0x119,_0x3aa58f:0x1d4,_0x28b092:0x234},_0x5822a0={_0x23da0e:0xde},_0xd92109={_0x40c636:0x195,_0x3a1569:0x300};if(_0x42de5c?.[_0x1e4208(-0x1d4,-0x12b,-_0x5df078._0x3d6507,-_0x5df078._0x3bfb85)])return _0x42de5c[_0x1e4208(-_0x5df078._0x3aa58f,-0x253,-0x255,-0x289)];if(!_0x1ddbfb)return void 0x0;function _0xe76cc3(_0x1c4ac0,_0x1f0174,_0x4ba6b5,_0x890bff){return _0x521c92(_0x1c4ac0-0x1a4,_0x890bff,_0x4ba6b5-_0xd92109._0x40c636,_0x4ba6b5-_0xd92109._0x3a1569);}function _0x1e4208(_0x290671,_0x214b86,_0x5db361,_0x2072ee){return _0x3adc1d(_0x290671-0x88,_0x2072ee,_0x5db361-0x189,_0x290671- -_0x5822a0._0x23da0e);}return{'kind':_0xe76cc3(0x306,0x242,_0x5df078._0x28b092,0x19c),'value':_0x1ddbfb};}function _0x44a4(_0xac12cd,_0x4b1cb5){_0xac12cd=_0xac12cd-0x9c;const _0x23909e=_0x2390();let _0x44a404=_0x23909e[_0xac12cd];if(_0x44a4['hKGsEm']===undefined){var _0x5d0231=function(_0x1d8650){const _0x561609='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x317839='',_0x1722e8='';for(let _0x58d9da=0x0,_0x2aa62a,_0x861a54,_0x3ba097=0x0;_0x861a54=_0x1d8650['charAt'](_0x3ba097++);~_0x861a54&&(_0x2aa62a=_0x58d9da%0x4?_0x2aa62a*0x40+_0x861a54:_0x861a54,_0x58d9da++%0x4)?_0x317839+=String['fromCharCode'](0xff&_0x2aa62a>>(-0x2*_0x58d9da&0x6)):0x0){_0x861a54=_0x561609['indexOf'](_0x861a54);}for(let _0x272cd8=0x0,_0x27c7cb=_0x317839['length'];_0x272cd8<_0x27c7cb;_0x272cd8++){_0x1722e8+='%'+('00'+_0x317839['charCodeAt'](_0x272cd8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1722e8);};_0x44a4['zdrqhn']=_0x5d0231,_0x44a4['lVXqYm']={},_0x44a4['hKGsEm']=!![];}const _0x52ade0=_0x23909e[0x0],_0x510d52=_0xac12cd+_0x52ade0,_0x401319=_0x44a4['lVXqYm'][_0x510d52];return!_0x401319?(_0x44a404=_0x44a4['zdrqhn'](_0x44a404),_0x44a4['lVXqYm'][_0x510d52]=_0x44a404):_0x44a404=_0x401319,_0x44a404;}function resolveSessionBaseUrl(_0x28a3bd,_0x445631){const _0x432214={_0x4deca1:0x422,_0x20c8e8:0x3be,_0x35e970:0x2d3},_0x3e595b={_0x239f24:0x228},_0x2a0ea3={_0x16e428:0x16};function _0x10b05a(_0x3b5071,_0x1e68cc,_0x75acf7,_0x104104){return _0x521c92(_0x3b5071-0x14b,_0x3b5071,_0x75acf7-_0x2a0ea3._0x16e428,_0x1e68cc-0x4af);}function _0x233136(_0x1d5f4c,_0x982ec1,_0x51639d,_0x435a28){return _0x3adc1d(_0x1d5f4c-0x68,_0x1d5f4c,_0x51639d-0x6f,_0x51639d-_0x3e595b._0x239f24);}return trimTrailingSlashes(_0x445631?.[_0x10b05a(_0x432214._0x4deca1,0x454,_0x432214._0x20c8e8,0x3d9)]?.[_0x10b05a(0x2e0,0x3aa,0x43f,_0x432214._0x35e970)]??_0x28a3bd);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':'gpt-4o','cliDefaultModel':_0x521c92(0x12e,0x45,0x9,0x61),'providers':{'anthropic':{'label':_0x521c92(0x6,-0xa3,-0x16d,-0xd1),'baseUrl':_0x521c92(-0x13,0x25,0x11b,0x56),'surface':_0x521c92(-0xc,-0x1b7,-0x1c5,-0xfa),'authScheme':_0x521c92(-0x4a,0xc,-0x8e,0x18),'defaultModel':_0x3adc1d(0x69,0xc4,0x108,0x68),'defaultModels':[_0x521c92(-0x9,0xa7,0xe2,0xc4),'claude-3-5-sonnet-20241022'],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x521c92(-0x69,0x43,-0x10f,-0xaa),'baseUrl':'https://api.z.ai/api/coding/paas/v4','anthropicBaseUrl':_0x521c92(-0x88,0x5d,-0x19,-0x60),'surface':_0x521c92(-0x19,-0x1e9,-0x15,-0xfa),'authScheme':_0x521c92(-0x11,0x74,0xf1,0x2c),'defaultModel':_0x3adc1d(0xdf,0x80,0xa7,0x5),'defaultModels':[_0x3adc1d(-0xb4,-0xfb,-0xe8,-0x162),_0x521c92(-0xd7,-0x8,-0x179,-0xc0),_0x521c92(0x138,-0x14,0x80,0x61),_0x3adc1d(-0x12b,-0xf7,0x2,-0xe3),_0x3adc1d(-0xda,-0x1d,-0x33,-0xa)],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x1f400},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':'OpenRouter','baseUrl':'https://openrouter.ai/api/v1','surface':_0x3adc1d(-0x151,-0x4b,-0x117,-0xbf),'authScheme':_0x3adc1d(0x12,-0xd8,0x2d,-0x30),'defaultModel':_0x521c92(-0x78,-0xa1,-0x8a,-0xe0),'defaultModels':[_0x3adc1d(-0x22a,-0x15e,-0x14d,-0x13c),'openai/gpt-4o-mini'],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':'GitHub\x20Models\x20/\x20Copilot','surface':_0x521c92(0xb,0x11c,0xf7,0x5a),'defaultModel':_0x3adc1d(-0x72,-0x91,-0x43,-0x11b),'defaultModels':['claude-sonnet-4.5',_0x3adc1d(-0x174,-0x217,-0x71,-0x12c),_0x3adc1d(0x14,-0xd1,-0xaa,-0xbb),'gpt-5-mini',_0x3adc1d(0x38,-0x12c,-0xe,-0x74),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x521c92(-0x172,-0x23,-0x10f,-0xfa)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x3adc1d(-0x226,-0x1e8,-0x1d6,-0x156)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0x3adc1d(0x20,-0x24,0x85,0x25),'baseUrl':_0x521c92(0x11,-0xe,0x3e,0xbd),'surface':'openai-chat-completions','authScheme':'bearer','defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x3adc1d(-0xea,-0x31,-0x1d8,-0xfe),'baseUrl':_0x3adc1d(0x62,-0x123,-0xbd,-0x69),'surface':_0x3adc1d(-0x20d,-0x1fd,-0x217,-0x156),'authScheme':_0x3adc1d(0xb,-0xa3,-0x11a,-0x30),'defaultModel':_0x3adc1d(-0x9e,-0x11a,-0x33,-0xdb),'defaultModels':[_0x3adc1d(-0xed,-0xd0,-0xf7,-0xdb),'deepseek-v4-flash'],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x3adc1d(-0x9b,-0x15b,-0x14f,-0xcc),'baseUrl':_0x3adc1d(-0x84,0xaf,0x6b,0x5d),'surface':_0x521c92(-0x13f,-0xf8,-0xed,-0xfa),'authScheme':_0x521c92(-0x1c,0x0,0x99,0x2c),'defaultModel':_0x521c92(0xe,0x15,-0x42,-0x6a),'defaultModels':['MiniMax-M3'],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x3adc1d(-0x16d,-0xbd,-0xc3,-0xda),'baseUrl':_0x521c92(0x101,0x72,0x3e,0x86),'modelsBaseUrl':_0x3adc1d(-0x15e,-0x51,-0x1ab,-0xff),'surface':_0x521c92(-0x19b,-0xaa,-0x16b,-0xfa),'authScheme':'x-api-key','defaultModel':_0x521c92(0x2d,0x52,0x196,0xc4),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':'Xiaomi','baseUrl':_0x521c92(0x146,-0x54,-0x6b,0x65),'modelsBaseUrl':'https://token-plan-sgp.xiaomimimo.com/v1','surface':_0x521c92(-0x3d,-0x14a,-0x1af,-0xfa),'authScheme':_0x3adc1d(0x2f,-0x14,-0x6c,-0x44),'defaultModel':_0x521c92(-0x4,-0xb3,0xfe,0xf),'defaultModels':[_0x521c92(-0x76,-0x66,0x4b,0xf)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x30b4f3){const _0x378db3={_0x48c182:0x3e5,_0x4813cd:0x38f,_0x550584:0x32e,_0xba886:0x2f1,_0x3bd542:0x3c5,_0x1f2357:0x312},_0x2a7ccf={_0x3c1b71:0xd3},_0x1aee1d={_0x167e10:0x157,_0x491e74:0xb5};function _0x508463(_0x3024b3,_0x1d1a8b,_0x3602f7,_0x374355){return _0x3adc1d(_0x3024b3-_0x1aee1d._0x167e10,_0x1d1a8b,_0x3602f7-_0x1aee1d._0x491e74,_0x374355-0x1bf);}const _0xa743c8=_0x30b4f3[_0x40103a(_0x378db3._0x48c182,0x3eb,_0x378db3._0x4813cd,_0x378db3._0x550584)]();function _0x40103a(_0xc44d0b,_0x3dcf13,_0x16e82a,_0x45a0c8){return _0x521c92(_0xc44d0b-0x1b1,_0x3dcf13,_0x16e82a-_0x2a7ccf._0x3c1b71,_0x16e82a-0x415);}return Object['keys'](data['providers'])[_0x40103a(0x36e,_0x378db3._0xba886,_0x378db3._0x3bd542,_0x378db3._0x1f2357)](_0x5296f3=>_0x5296f3[_0x508463(0xeb,0x12c,0x66,0xdd)]()===_0xa743c8);}function getProviderProfile(_0x95424c){const _0x54ccf5={_0x1fd590:0x1ad,_0x2ec3a5:0xcb,_0x8b2292:0x227,_0xc3b21b:0x584,_0x44b117:0x55a,_0x275090:0x457,_0x260c97:0x384,_0x3b27b9:0x42d,_0x2502ba:0x4ba,_0x3aeb3e:0x252,_0x2af9cf:0x2a9,_0xe7f1a6:0x30a,_0x4e6215:0x2bc,_0x5a0706:0x18b,_0x1c7ee2:0x1c0,_0x390720:0x22a,_0x5b42e2:0x185,_0x15fbbc:0x119,_0x566ede:0x424,_0x299a41:0x449,_0x525d14:0x1a3,_0x5614c5:0xc5,_0x24b68b:0x15c},_0x4114f9={_0x5e22b4:0x13e,_0x253a8f:0xfb,_0x34f471:0x251},_0x14cc8a={_0x19b086:0xaa,_0x5d2fbe:0x1d5},_0x26b4bf=findProviderKey(_0x95424c);if(!_0x26b4bf)return void 0x0;const _0x44b07a=data[_0x3b3a69(_0x54ccf5._0x1fd590,_0x54ccf5._0x2ec3a5,_0x54ccf5._0x8b2292,0x17d)][_0x26b4bf],_0x23087b={};function _0x3b112c(_0x249954,_0x23c99c,_0x2ae17e,_0x42cd94){return _0x3adc1d(_0x249954-_0x14cc8a._0x19b086,_0x23c99c,_0x2ae17e-_0x14cc8a._0x5d2fbe,_0x42cd94-0x513);}function _0x3b3a69(_0x3f408d,_0x37e30c,_0x39992b,_0x50a5a1){return _0x521c92(_0x3f408d-_0x4114f9._0x5e22b4,_0x37e30c,_0x39992b-_0x4114f9._0x253a8f,_0x50a5a1-_0x4114f9._0x34f471);}for(const [_0x1b5a25,_0x4dd6f3]of Object[_0x3b112c(0x43f,_0x54ccf5._0xc3b21b,_0x54ccf5._0x44b117,0x4b7)](_0x44b07a[_0x3b112c(0x4f6,_0x54ccf5._0x275090,_0x54ccf5._0x260c97,0x411)])){_0x23087b[_0x1b5a25]=_0x4dd6f3;}return{'label':_0x44b07a[_0x3b112c(0x4ab,_0x54ccf5._0x3b27b9,0x545,_0x54ccf5._0x2502ba)],'baseUrl':_0x44b07a[_0x3b3a69(0x143,_0x54ccf5._0x3aeb3e,0x26e,0x21f)],'modelsBaseUrl':_0x44b07a[_0x3b3a69(_0x54ccf5._0x2af9cf,_0x54ccf5._0xe7f1a6,_0x54ccf5._0x4e6215,0x2e1)],'anthropicBaseUrl':_0x44b07a['anthropicBaseUrl'],'surface':_0x44b07a[_0x3b3a69(_0x54ccf5._0x5a0706,_0x54ccf5._0x1c7ee2,_0x54ccf5._0x390720,0x150)],'authScheme':_0x44b07a[_0x3b3a69(_0x54ccf5._0x5b42e2,0x1f5,_0x54ccf5._0x15fbbc,0x1ce)],'defaultModel':_0x44b07a[_0x3b112c(0x38b,0x48b,_0x54ccf5._0x566ede,_0x54ccf5._0x299a41)],'defaultModels':_0x44b07a['defaultModels']??[],'supportsModelFetch':_0x44b07a[_0x3b3a69(_0x54ccf5._0x525d14,0x1e9,_0x54ccf5._0x5614c5,_0x54ccf5._0x24b68b)]??![],'models':_0x23087b};}function getModelProfile(_0x5a23bc,_0x2cd147){const _0x38b650={_0x4ee0e6:0x157,_0x18c1de:0x556};function _0x5c9810(_0x1788ed,_0x3b77ee,_0x3477ab,_0xbb7649){return _0x521c92(_0x1788ed-_0x38b650._0x4ee0e6,_0x3477ab,_0x3477ab-0x156,_0xbb7649-_0x38b650._0x18c1de);}const _0x538226=findProviderKey(_0x5a23bc);if(!_0x538226)return void 0x0;return data['providers'][_0x538226][_0x5c9810(0x574,0x41e,0x486,0x4b0)][_0x2cd147];}function resolveModelProfile(_0x672660,_0x5ef46d){const _0xf645cd={_0x554ef5:0x9,_0x34878a:0xe,_0x4858cb:0x30e,_0x2e53cd:0x27b,_0x3f15a8:0x2a4,_0x466d1e:0x25e,_0x1d2991:0x2bc,_0x261a69:0x2ee,_0x2f1948:0x3cf,_0x34843a:0x44,_0x5dd4ed:0xca,_0x1dda00:0x78,_0x1ff370:0x105,_0xcae9ef:0x1a,_0x2c971a:0x7e,_0x49919f:0x288},_0x22e12b={_0x51446c:0x12f,_0xf20b8d:0x1ed},_0x4b2889={_0x2a6775:0x1cf},_0x39e568=findProviderKey(_0x672660);if(!_0x39e568)return void 0x0;const _0x1d1aa3=data['providers'][_0x39e568];function _0x16b621(_0x26699e,_0x537173,_0x5cfd12,_0x19a016){return _0x3adc1d(_0x26699e-0x128,_0x19a016,_0x5cfd12-0x150,_0x537173-_0x4b2889._0x2a6775);}const _0x9e4b4c=_0x1d1aa3[_0x16b621(_0xf645cd._0x554ef5,0xcd,0x156,_0xf645cd._0x34878a)][_0x5ef46d];function _0x1cbfe1(_0x335ad8,_0x4ab39f,_0x140808,_0x2cc164){return _0x521c92(_0x335ad8-0x109,_0x335ad8,_0x140808-_0x22e12b._0x51446c,_0x140808- -_0x22e12b._0xf20b8d);}return{'label':_0x1d1aa3['label'],'baseUrl':_0x1d1aa3['baseUrl'],'modelsBaseUrl':_0x1d1aa3['modelsBaseUrl'],'anthropicBaseUrl':_0x1d1aa3[_0x1cbfe1(-0x238,-_0xf645cd._0x4858cb,-_0xf645cd._0x2e53cd,-0x2f7)],'surface':_0x9e4b4c?.[_0x1cbfe1(-0x3ae,-_0xf645cd._0x3f15a8,-0x2ee,-_0xf645cd._0x466d1e)]??_0x1d1aa3[_0x1cbfe1(-0x3c6,-_0xf645cd._0x1d2991,-_0xf645cd._0x261a69,-_0xf645cd._0x2f1948)],'authScheme':_0x1d1aa3[_0x16b621(_0xf645cd._0x34843a,0xf0,_0xf645cd._0x5dd4ed,_0xf645cd._0x1dda00)],'defaultModel':_0x1d1aa3[_0x16b621(0x1b7,_0xf645cd._0x1ff370,0x6f,0x15e)],'defaultModels':_0x1d1aa3['defaultModels'],'supportsModelFetch':_0x1d1aa3[_0x16b621(-_0xf645cd._0xcae9ef,_0xf645cd._0x2c971a,0x112,0x42)],'contextWindow':_0x9e4b4c?.[_0x16b621(0x16b,0x1c6,_0xf645cd._0x49919f,0x222)],'maxOutput':_0x9e4b4c?.[_0x16b621(0x192,0x1b1,0x28f,0x1a7)]};}function _0x521c92(_0xed0c7f,_0x52ce19,_0x23cac6,_0x358d93){return _0x44a4(_0x358d93- -0x1b1,_0x52ce19);}function getDefaultMaxTokens(){const _0xe18b80={_0x4f64aa:0x18,_0x496f69:0x4f},_0x21ccf5={_0x46044e:0x9a};function _0x565d98(_0xa61f58,_0x58ab50,_0x434a4b,_0x564dc9){return _0x3adc1d(_0xa61f58-0xe6,_0xa61f58,_0x434a4b-0x188,_0x58ab50-_0x21ccf5._0x46044e);}return data[_0x565d98(-0x99,-_0xe18b80._0x4f64aa,-0x4f,-_0xe18b80._0x496f69)];}function getDefaultModel(){const _0x48a31a={_0x26256d:0x254,_0x5424a7:0x216,_0x5dac5d:0x24c},_0x5caa9={_0x523594:0xcf};function _0x439a3a(_0x20c3ca,_0x456199,_0x19912a,_0x273ab2){return _0x3adc1d(_0x20c3ca-_0x5caa9._0x523594,_0x456199,_0x19912a-0x13d,_0x273ab2-0x316);}return data[_0x439a3a(_0x48a31a._0x26256d,0x323,_0x48a31a._0x5424a7,_0x48a31a._0x5dac5d)];}function getCliDefaultModel(){const _0x2677c0={_0x412a46:0x324,_0x558cb9:0x333,_0x472f1e:0x360},_0x224cb2={_0x42cfb1:0x45,_0x307bc4:0x2cd};function _0x5e5472(_0x1cd583,_0x528be9,_0x41c4a5,_0x597ea5){return _0x521c92(_0x1cd583-_0x224cb2._0x42cfb1,_0x597ea5,_0x41c4a5-0x3f,_0x41c4a5-_0x224cb2._0x307bc4);}return data[_0x5e5472(_0x2677c0._0x412a46,_0x2677c0._0x558cb9,_0x2677c0._0x472f1e,0x28d)];}function getProviderLabel(_0x2aeaee){const _0x4aecd4={_0x2ce061:0x32a,_0x35adab:0x40d},_0x4a1102={_0x41790b:0xb7,_0x2a7252:0x32e};function _0xc5ccf8(_0x14ab2e,_0x54de22,_0x25241b,_0x29d167){return _0x521c92(_0x14ab2e-0x10,_0x25241b,_0x25241b-_0x4a1102._0x41790b,_0x29d167-_0x4a1102._0x2a7252);}const _0x569f10=findProviderKey(_0x2aeaee);return _0x569f10?data['providers'][_0x569f10][_0xc5ccf8(_0x4aecd4._0x2ce061,_0x4aecd4._0x35adab,0x3d1,0x331)]:void 0x0;}function getProviderDefaultModel(_0x4fcab4){const _0x152380={_0x48026f:0x143},_0x51f6ba={_0x1043a9:0xeb},_0x3590ef=findProviderKey(_0x4fcab4);function _0x492bc9(_0x1de1cd,_0x4b3ec8,_0x3d69f0,_0x3c0058){return _0x521c92(_0x1de1cd-0x14c,_0x4b3ec8,_0x3d69f0-_0x51f6ba._0x1043a9,_0x3c0058-0x1ca);}if(!_0x3590ef)return void 0x0;return data[_0x492bc9(_0x152380._0x48026f,0xde,0x13b,0xf6)][_0x3590ef]['defaultModel'];}function getProviderDefaultModels(_0x12f553){const _0x27e4be={_0x2b5bf0:0x1f8,_0x1d1a87:0x152,_0x30064c:0x27e},_0x3f61e7={_0x5efdbe:0x2d9},_0x107eb6={_0x41f8c3:0x183,_0x2cc902:0x17d};function _0x19adcb(_0x1faccc,_0x2c561e,_0x1fe381,_0x10da5d){return _0x521c92(_0x1faccc-0x104,_0x1faccc,_0x1fe381-_0x107eb6._0x41f8c3,_0x1fe381-_0x107eb6._0x2cc902);}const _0x386395=findProviderKey(_0x12f553);if(!_0x386395)return[];function _0x282777(_0x1d0bce,_0x59c301,_0x151a21,_0x39064b){return _0x521c92(_0x1d0bce-0x1af,_0x39064b,_0x151a21-0xdb,_0x151a21-_0x3f61e7._0x5efdbe);}return[...data[_0x282777(_0x27e4be._0x2b5bf0,0x291,0x205,_0x27e4be._0x1d1a87)][_0x386395][_0x19adcb(_0x27e4be._0x30064c,0x256,0x245,0x28a)]??[]];}function providerSupportsModelFetch(_0x4327a8){const _0x228fba={_0x2eb10c:0x2de,_0x4a0884:0x2b4,_0x2e9445:0x1af,_0x1a70cf:0x23b},_0x248b87={_0x44adad:0xbe,_0x480b55:0x185},_0x60fc1={_0x22886b:0x1f3,_0x2b4638:0x436};function _0x1e8fc0(_0x5425cc,_0x489406,_0x5e5c74,_0x11354f){return _0x521c92(_0x5425cc-_0x60fc1._0x22886b,_0x5425cc,_0x5e5c74-0x170,_0x11354f-_0x60fc1._0x2b4638);}const _0x857861=findProviderKey(_0x4327a8);function _0x293e53(_0x441dc6,_0x3a2494,_0x580d57,_0x37f708){return _0x521c92(_0x441dc6-_0x248b87._0x44adad,_0x3a2494,_0x580d57-0x25,_0x580d57- -_0x248b87._0x480b55);}if(!_0x857861)return![];return data[_0x1e8fc0(0x361,_0x228fba._0x2eb10c,0x384,0x362)][_0x857861][_0x293e53(-_0x228fba._0x4a0884,-_0x228fba._0x2e9445,-0x27a,-_0x228fba._0x1a70cf)]??![];}function getOnboardingProviderKeys(){const _0x47dc53={_0x5f3d5b:0x14};function _0x5bf8ab(_0x740402,_0x1a87c1,_0x40f382,_0x175a21){return _0x521c92(_0x740402-0x1ca,_0x740402,_0x40f382-0x1bd,_0x175a21- -0x5d);}return Object[_0x5bf8ab(-0x91,-0x2b,_0x47dc53._0x5f3d5b,0x9)](data['providers']);}function toErrorMessage(_0x433e7b){const _0x6ea1e2={_0x4a19b0:0x31d,_0x47993c:0x3ee,_0x7c932b:0x366},_0x579f91={_0x59a50c:0x74,_0xe550b1:0x1db,_0x5cebc6:0x1bb};function _0x10b196(_0x456368,_0x49ad58,_0xdae508,_0x25011c){return _0x3adc1d(_0x456368-0xc,_0x25011c,_0xdae508-0xff,_0x49ad58-0x307);}if(_0x433e7b instanceof Error&&_0x433e7b[_0x10b196(0x394,0x2ff,0x22d,_0x6ea1e2._0x4a19b0)][_0x10b196(0x32a,0x356,_0x6ea1e2._0x47993c,_0x6ea1e2._0x7c932b)]>0x0)return _0x433e7b['message'];function _0x35d44f(_0x996ba9,_0x9c58fe,_0x48ae47,_0x67555e){return _0x521c92(_0x996ba9-_0x579f91._0x59a50c,_0x67555e,_0x48ae47-_0x579f91._0xe550b1,_0x996ba9- -_0x579f91._0x5cebc6);}return'WebSocket\x20request\x20failed';}function _0x3adc1d(_0x3ac5c8,_0x21a598,_0x213e84,_0x849f45){const _0x2b612f={_0x4a7d8c:0x20d};return _0x44a4(_0x849f45- -_0x2b612f._0x4a7d8c,_0x21a598);}function createDefaultWebSocketFactory(){return({headers:_0x1c16a0,url:_0x28c876})=>{const _0x289330=globalThis[_0x160f7e(0x1d4,0x6b,0x154,0xa2)];function _0x160f7e(_0x332c7f,_0x22be4f,_0x1c0b83,_0x8ad1e9){return _0x44a4(_0x1c0b83-0x7a,_0x332c7f);}return new _0x289330(_0x28c876,{'headers':_0x1c16a0,'protocols':[]});};}async function*iterateSseEvents(_0x23728b,_0x38b04a){const _0x12c850={_0x2e140d:0x19f,_0x438975:0x16d,_0x1cb045:0x25,_0x3f2e7f:0xdb,_0x56f112:0x7f,_0x4c977a:0x114,_0x9a53e2:0xc5,_0xc2646f:0xa8,_0x3476f5:0x1c5,_0x286d99:0x1c1,_0xda549d:0x1fc,_0xb74f1c:0x196,_0xf70275:0x138,_0x3e8d9f:0xdf,_0x19da8c:0xf6,_0x535b0f:0x121,_0x37d46b:0x130,_0x36e03d:0x24e,_0x111a4d:0x275,_0x266585:0x1a2},_0x2722d5={_0x3bbfe9:0x480,_0x394696:0x530,_0x3f35c8:0x4c0,_0x1b747e:0x107,_0x474bd6:0x110,_0x4f7b60:0x37},_0x57ff54={_0x90e541:0x13d,_0xb82dd2:0x142},_0x3eec30={_0x372643:0x3f,_0x508c6a:0x2c,_0x9e8321:0x69},_0x1e6251={_0x296400:0x1e,_0x482b85:0x1e1};function _0x2b77ce(_0x1e1a23,_0x5e7582,_0x17a008,_0x42d91a){return _0x3adc1d(_0x1e1a23-_0x1e6251._0x296400,_0x17a008,_0x17a008-0x94,_0x5e7582-_0x1e6251._0x482b85);}const _0x3baac9=_0x23728b[_0x2b77ce(0x121,0xbd,_0x12c850._0x2e140d,_0x12c850._0x438975)]?.[_0x58a6e1(0xdd,_0x12c850._0x1cb045,0x153,_0x12c850._0x3f2e7f)]();function _0x58a6e1(_0x5176f6,_0x1050dd,_0x3ef9b3,_0x3a1109){return _0x521c92(_0x5176f6-_0x3eec30._0x372643,_0x3ef9b3,_0x3ef9b3-_0x3eec30._0x508c6a,_0x5176f6-_0x3eec30._0x9e8321);}if(!_0x3baac9)return;const _0x3e2bd6=new TextDecoder('utf-8');let _0x4a73e6='';const _0x21a946=addAbortListener(_0x38b04a,()=>{const _0x256dfd={_0x447853:0x44,_0x3d4d91:0x20};function _0x42dd56(_0x25607a,_0x33d637,_0x3074ed,_0x4a3ec3){return _0x58a6e1(_0x33d637- -0x1e,_0x33d637-_0x57ff54._0x90e541,_0x3074ed,_0x4a3ec3-_0x57ff54._0xb82dd2);}function _0x431430(_0x174b76,_0x58dffe,_0x1e2ddf,_0xc960f0){return _0x58a6e1(_0x58dffe-0x3fd,_0x58dffe-_0x256dfd._0x447853,_0x1e2ddf,_0xc960f0-_0x256dfd._0x3d4d91);}void _0x3baac9[_0x431430(_0x2722d5._0x3bbfe9,_0x2722d5._0x394696,_0x2722d5._0x3f35c8,0x458)](toAbortError(_0x38b04a?.[_0x42dd56(_0x2722d5._0x1b747e,0x25,0xf7,0x44)]))[_0x42dd56(_0x2722d5._0x474bd6,0x10a,_0x2722d5._0x4f7b60,0x1c7)](()=>{});});try{while(!![]){throwIfAborted(_0x38b04a);const {value:_0x3f6048,done:_0x22b49c}=await _0x3baac9[_0x58a6e1(_0x12c850._0x56f112,_0x12c850._0x4c977a,_0x12c850._0x9a53e2,_0x12c850._0xc2646f)]();throwIfAborted(_0x38b04a);if(_0x22b49c)break;_0x4a73e6+=_0x3e2bd6['decode'](_0x3f6048,{'stream':!![]});while(!![]){const _0x429fe4=_0x4a73e6[_0x2b77ce(0x1ff,_0x12c850._0x3476f5,_0x12c850._0x286d99,0x1c4)]('\x0a\x0a');if(_0x429fe4===-0x1)break;const _0x301fe1=_0x4a73e6[_0x2b77ce(_0x12c850._0xda549d,0x134,_0x12c850._0xb74f1c,_0x12c850._0xf70275)](0x0,_0x429fe4);_0x4a73e6=_0x4a73e6[_0x58a6e1(0x18,_0x12c850._0x3e8d9f,_0x12c850._0x19da8c,-0x45)](_0x429fe4+0x2),_0x301fe1[_0x58a6e1(_0x12c850._0x535b0f,0x196,_0x12c850._0x37d46b,0xfe)]()['length']>0x0&&(yield _0x301fe1);}}_0x4a73e6+=_0x3e2bd6[_0x2b77ce(_0x12c850._0x36e03d,0x1bd,0x1b6,_0x12c850._0x111a4d)](),throwIfAborted(_0x38b04a),_0x4a73e6['trim']()[_0x2b77ce(0x250,0x230,0x2c7,_0x12c850._0x266585)]>0x0&&(yield _0x4a73e6);}finally{_0x21a946();}}async function waitForWebSocketOpen(_0x292c49,_0x1ad81){const _0x8c52a8={_0x8b77a:0x1af,_0x2fe20e:0x148,_0x510a48:0x168,_0x52c127:0x123,_0x3318d7:0x20e,_0x11cd53:0x29a,_0x10ae6c:0x25c,_0x53b459:0x173,_0x58529d:0xc5,_0x3fc3c2:0xb2,_0x9b3fde:0x12b},_0x50b527={_0x429123:0x14,_0x38b564:0x1f,_0xa74d2c:0xfa,_0x147e66:0x1c7,_0x38f5b5:0x141,_0x2ce683:0x213,_0x3b8257:0x1cd},_0x5aa54c={_0x12c19f:0x171,_0x49696b:0x146,_0x3e8995:0x29c,_0xcf6e76:0x244};if(_0x292c49['readyState']===WebSocket['OPEN']){throwIfAborted(_0x1ad81);return;}throwIfAborted(_0x1ad81),await new Promise((_0x135841,_0x22f3cf)=>{const _0x55dfc5={_0x4366be:0x26,_0x3b837f:0x11b,_0x4341c4:0xe8,_0x63c485:0x2ee,_0x4b405d:0x2ad,_0x5a4c38:0x138,_0x4e1a2d:0x3d,_0x39f220:0xf7,_0x128b94:0x100,_0x140ca1:0x2f5,_0x42858f:0x3ba,_0x487103:0x31c,_0x56514c:0x1c1,_0x5292a6:0x7f,_0xf3c51a:0x1bf},_0xeed2de={_0x340b4a:0x267},_0x3dbfad={_0xf5d991:0x2c7,_0x1cde91:0x20f,_0x4c699c:0x1e3,_0x348283:0x178,_0x3049a1:0x28d},_0x5e9025={_0x4bf990:0x1f8};function _0x1218be(_0x5ae4b6,_0x5ef465,_0x532f30,_0x2d9046){return _0x44a4(_0x532f30-0xb6,_0x5ae4b6);}const _0x3f2fde=()=>{_0x5cc99b(),_0x135841();},_0x499941=_0x5647cb=>{const _0x14e5e1={_0x5562ad:0x94};_0x5cc99b();function _0x37899a(_0x565da4,_0x5654af,_0xaac654,_0xb5ba43){return _0x44a4(_0xaac654- -_0x14e5e1._0x5562ad,_0xb5ba43);}function _0x32c843(_0x2bd6d1,_0x4dfb13,_0x193e00,_0x52281c){return _0x44a4(_0x2bd6d1-0x37,_0x52281c);}_0x22f3cf(new Error(_0x5647cb[_0x37899a(0x1cf,0x24b,_0x5aa54c._0x12c19f,_0x5aa54c._0x49696b)]||_0x32c843(_0x5aa54c._0x3e8995,_0x5aa54c._0xcf6e76,0x2f6,0x262)));},_0x4cbee9=_0x1eb341=>{_0x5cc99b();const _0x1aac21=_0x1eb341;function _0x47b30e(_0xc4c54c,_0x2b408b,_0x5a78a7,_0x433644){return _0x44a4(_0xc4c54c- -_0x5e9025._0x4bf990,_0x5a78a7);}function _0x3a156f(_0x5b2d79,_0x3e4de3,_0x122e8b,_0x1d4ca6){return _0x44a4(_0x5b2d79-0x77,_0x1d4ca6);}_0x22f3cf(new Error(_0x1aac21[_0x3a156f(0x202,_0x3dbfad._0xf5d991,0x29f,_0x3dbfad._0x1cde91)]||_0x3a156f(_0x3dbfad._0x4c699c,0x1ef,_0x3dbfad._0x348283,_0x3dbfad._0x3049a1)));},_0x2b7c14=()=>{function _0x558cae(_0x1d364a,_0x375c95,_0x4d99c6,_0x53b138){return _0x44a4(_0x53b138- -0x358,_0x1d364a);}function _0x45f5fd(_0x2b12b7,_0x1379b1,_0x5349c5,_0x3afb8a){return _0x44a4(_0x3afb8a- -_0xeed2de._0x340b4a,_0x2b12b7);}_0x5cc99b(),_0x292c49[_0x45f5fd(-_0x50b527._0x429123,-_0x50b527._0x38b564,-0x26,-0xcc)]===WebSocket[_0x45f5fd(-_0x50b527._0xa74d2c,-0xe3,-0x1ef,-_0x50b527._0x147e66)]&&_0x292c49['close'](0x3e8,'aborted'),_0x22f3cf(toAbortError(_0x1ad81?.[_0x558cae(-_0x50b527._0x38f5b5,-_0x50b527._0x2ce683,-0x1a7,-_0x50b527._0x3b8257)]));};function _0x5aad65(_0x4c1134,_0x5784ce,_0x29e990,_0x4ca748){return _0x44a4(_0x4c1134- -0x2d8,_0x29e990);}const _0x5cc99b=()=>{const _0x199d10={_0x20e421:0x3bf};function _0x4c86f8(_0x210130,_0x25c88e,_0x3a2ded,_0x2d2fa1){return _0x44a4(_0x210130- -_0x199d10._0x20e421,_0x25c88e);}_0x292c49[_0x8714d3(_0x55dfc5._0x4366be,_0x55dfc5._0x3b837f,0xf7,_0x55dfc5._0x4341c4)](_0x4c86f8(-0x296,-0x295,-_0x55dfc5._0x63c485,-_0x55dfc5._0x4b405d),_0x3f2fde),_0x292c49[_0x8714d3(0x11e,0x14a,0xf7,_0x55dfc5._0x5a4c38)]('error',_0x499941),_0x292c49[_0x8714d3(0x196,_0x55dfc5._0x4e1a2d,_0x55dfc5._0x39f220,_0x55dfc5._0x128b94)](_0x4c86f8(-_0x55dfc5._0x140ca1,-0x2f4,-_0x55dfc5._0x42858f,-_0x55dfc5._0x487103),_0x4cbee9);function _0x8714d3(_0x4dec98,_0x213060,_0xd24c6f,_0x57754f){return _0x44a4(_0xd24c6f- -0x48,_0x57754f);}_0x1ad81?.[_0x8714d3(0x1c6,_0x55dfc5._0x56514c,0xf7,_0x55dfc5._0x5292a6)](_0x4c86f8(-0x1ac,-0x1b8,-_0x55dfc5._0xf3c51a,-0x1c7),_0x2b7c14);};_0x292c49['addEventListener'](_0x5aad65(-_0x8c52a8._0x8b77a,-_0x8c52a8._0x2fe20e,-0x242,-_0x8c52a8._0x510a48),_0x3f2fde),_0x292c49[_0x5aad65(-0x201,-_0x8c52a8._0x52c127,-0x226,-0x18c)]('error',_0x499941),_0x292c49['addEventListener'](_0x5aad65(-_0x8c52a8._0x3318d7,-_0x8c52a8._0x11cd53,-_0x8c52a8._0x10ae6c,-_0x8c52a8._0x53b459),_0x4cbee9),_0x1ad81?.[_0x1218be(0x188,0x255,0x18d,0x185)](_0x5aad65(-_0x8c52a8._0x58529d,-_0x8c52a8._0x3fc3c2,-0x52,-_0x8c52a8._0x9b3fde),_0x2b7c14,{'once':!![]});});}function iterateWebSocketMessages(_0x4115a3,_0x1bac1f){const _0x3cb917={_0x168f03:0x60,_0x1d5563:0xb0,_0x3a9cab:0xbb,_0x507ef2:0x10a,_0x47b2e6:0xce,_0x2181af:0xfa,_0x508928:0x6b},_0x3cb732={_0x5ebc74:0x6e1,_0x128476:0x619,_0x52c2e3:0x6b0,_0x1f0e5b:0x532,_0x213a88:0x4f1,_0x38fd75:0x295,_0x123416:0x293,_0x549812:0x2f2,_0x1ccb51:0x1ae,_0x130607:0x274},_0x5789b5={_0x438eb1:0xe0,_0x18cd49:0x32,_0x3a609d:0x4b,_0x185da7:0x77,_0x5197be:0x3f4,_0x4acaa5:0x4ac,_0x498de6:0x3bb,_0x500092:0x3db,_0x61d042:0x148,_0x12224f:0x19e,_0x42a4e1:0xdd,_0x11cf5d:0x173},_0x23203d={_0x4c01a5:0x140},_0x38eb44={_0x39d23a:0x311},_0x1be74b={_0x45508a:0x39,_0x5ad937:0x40,_0x1d9126:0xcf},_0x3bbabe={_0x34aad3:0x135},_0xa0e5c0={_0x54c7d3:0x40f,_0x32bb17:0x333,_0x153529:0x3eb,_0x20da34:0x3d3,_0x3f7877:0x3e4},_0x11400e={_0x5e8e52:0x105,_0x19ebe3:0x1d5,_0x2eadb0:0xf5,_0x2fc449:0x87,_0x5e2aa6:0x7b,_0x379237:0x2c6,_0xa80adb:0x36e},_0x5d848d={_0x5018e4:0x10f},_0x1180b0={_0x3fdb5c:0x1dc,_0xa93b6c:0x1ce},_0x200ed9={_0x3fc52d:0x2ab};function _0x17ccf0(_0x54cab1,_0x2f51de,_0x23d874,_0x260566){return _0x521c92(_0x54cab1-0x12d,_0x23d874,_0x23d874-0x71,_0x260566-_0x200ed9._0x3fc52d);}const _0x98a753=[];let _0x39f0d8=![];function _0x5dd5c2(_0x385257,_0x3d8b8c,_0x592e1f,_0x5f4a04){return _0x521c92(_0x385257-_0x1180b0._0x3fdb5c,_0x3d8b8c,_0x592e1f-_0x1180b0._0xa93b6c,_0x5f4a04-0x7a);}let _0x4fb56c,_0x1b620a;const _0x48c142=_0x4e3701=>{function _0x14540a(_0x529c64,_0x1108eb,_0x974700,_0x41e147){return _0x44a4(_0x974700-_0x5d848d._0x5018e4,_0x41e147);}function _0x1f7352(_0x4df611,_0x369de4,_0x10230b,_0x3201fd){return _0x44a4(_0x369de4- -0x159,_0x10230b);}const _0x3a5a46=_0x4e3701;try{_0x98a753[_0x14540a(0x1d7,_0x11400e._0x5e8e52,_0x11400e._0x19ebe3,0x251)](JSON[_0x1f7352(-_0x11400e._0x2eadb0,-0x44,_0x11400e._0x2fc449,-_0x11400e._0x5e2aa6)](String(_0x3a5a46['data']))),_0x1b620a?.(),_0x1b620a=void 0x0;}catch(_0x2d7e09){_0x4fb56c=new Error(_0x14540a(0x383,0x254,_0x11400e._0x379237,_0x11400e._0xa80adb)+toErrorMessage(_0x2d7e09)),_0x1b620a?.(),_0x1b620a=void 0x0;}},_0x5502e2=_0x59763b=>{const _0x2887e9={_0x8551f:0x1e6};function _0x17ca72(_0x1bc439,_0x42d7af,_0x49fa5b,_0x40dd81){return _0x44a4(_0x1bc439-0x16e,_0x49fa5b);}function _0x2b412e(_0x40bc69,_0x3c6ae4,_0x482c03,_0x2d6f29){return _0x44a4(_0x482c03-_0x2887e9._0x8551f,_0x2d6f29);}const _0xda4ff7=_0x59763b;_0x4fb56c=new Error(_0xda4ff7[_0x2b412e(_0xa0e5c0._0x54c7d3,_0xa0e5c0._0x32bb17,_0xa0e5c0._0x153529,0x422)]||_0x17ca72(_0xa0e5c0._0x20da34,0x47d,0x445,_0xa0e5c0._0x3f7877)),_0x1b620a?.(),_0x1b620a=void 0x0;},_0x43092e=_0x56fb5c=>{const _0x1eff97={_0x4e7391:0xad},_0x414a49=_0x56fb5c;function _0x278582(_0x2e597a,_0x3f10cb,_0x1f1313,_0x5f1495){return _0x44a4(_0x3f10cb-_0x1eff97._0x4e7391,_0x1f1313);}function _0x555d9b(_0x145495,_0x3e2c3f,_0x41d7ab,_0x3e6402){return _0x44a4(_0x145495- -_0x3bbabe._0x34aad3,_0x3e2c3f);}!_0x39f0d8&&_0x414a49['code']!==0x3e8&&!_0x4fb56c&&(_0x4fb56c=new Error(_0x414a49[_0x555d9b(0x56,-_0x1be74b._0x45508a,0xb5,_0x1be74b._0x5ad937)]||_0x278582(0x117,0x1a8,0x24d,_0x1be74b._0x1d9126)+_0x414a49['code'])),_0x39f0d8=!![],_0x1b620a?.(),_0x1b620a=void 0x0;},_0x3723d7=addAbortListener(_0x1bac1f,()=>{function _0x5a9c05(_0x426ad3,_0x157b40,_0x20f41c,_0x3c0ac6){return _0x44a4(_0x20f41c-_0x38eb44._0x39d23a,_0x426ad3);}function _0xe2c827(_0x211c5f,_0x34cc99,_0x4e4cc5,_0x1b4601){return _0x44a4(_0x4e4cc5- -_0x23203d._0x4c01a5,_0x34cc99);}_0x4fb56c=toAbortError(_0x1bac1f?.[_0xe2c827(_0x5789b5._0x438eb1,_0x5789b5._0x18cd49,_0x5789b5._0x3a609d,-_0x5789b5._0x185da7)]),_0x4115a3[_0x5a9c05(_0x5789b5._0x5197be,0x494,_0x5789b5._0x4acaa5,0x519)]===WebSocket['OPEN']&&_0x4115a3[_0x5a9c05(_0x5789b5._0x498de6,0x4a8,_0x5789b5._0x500092,0x3ca)](0x3e8,_0xe2c827(_0x5789b5._0x61d042,_0x5789b5._0x12224f,_0x5789b5._0x42a4e1,_0x5789b5._0x11cf5d)),_0x1b620a?.(),_0x1b620a=void 0x0;});return _0x4115a3[_0x5dd5c2(-0x94,0x6b,-0x70,-_0x3cb917._0x168f03)](_0x5dd5c2(_0x3cb917._0x1d5563,_0x3cb917._0x3a9cab,_0x3cb917._0x507ef2,_0x3cb917._0x47b2e6),_0x48c142),_0x4115a3[_0x17ccf0(0x1e5,0x1b2,0x169,0x1d1)]('error',_0x5502e2),_0x4115a3[_0x5dd5c2(-_0x3cb917._0x2181af,_0x3cb917._0x508928,-0x11d,-0x60)](_0x17ccf0(0x1b0,0x142,0xf5,0x1c4),_0x43092e),{async*[Symbol['asyncIterator']](){const _0x12447a={_0x4edfef:0xc5,_0x5dd132:0x282},_0x4d9dd7={_0x4bc170:0x9d,_0x2f420c:0xad,_0x3f6202:0x2b8};function _0x3840eb(_0x48889a,_0x40fb99,_0x5839a4,_0x471328){return _0x17ccf0(_0x48889a-_0x4d9dd7._0x4bc170,_0x40fb99-_0x4d9dd7._0x2f420c,_0x5839a4,_0x40fb99-_0x4d9dd7._0x3f6202);}function _0x379e61(_0x1a5085,_0x5b9392,_0x3f9edb,_0x4da6c8){return _0x5dd5c2(_0x1a5085-0xcf,_0x5b9392,_0x3f9edb-_0x12447a._0x4edfef,_0x3f9edb-_0x12447a._0x5dd132);}try{while(!![]){if(_0x4fb56c)throw _0x4fb56c;if(_0x98a753['length']>0x0){yield _0x98a753[_0x3840eb(_0x3cb732._0x5ebc74,_0x3cb732._0x128476,_0x3cb732._0x52c2e3,_0x3cb732._0x1f0e5b)]();continue;}if(_0x39f0d8)break;await new Promise(_0x320528=>{_0x1b620a=_0x320528;});}}finally{_0x4115a3[_0x3840eb(0x41b,_0x3cb732._0x213a88,0x54e,0x46c)]('message',_0x48c142),_0x4115a3[_0x379e61(_0x3cb732._0x38fd75,_0x3cb732._0x123416,0x28a,_0x3cb732._0x549812)](_0x3840eb(0x688,0x5e5,0x69d,0x564),_0x5502e2),_0x4115a3[_0x379e61(_0x3cb732._0x1ccb51,0x1a5,0x28a,_0x3cb732._0x130607)]('close',_0x43092e),_0x3723d7();}}};}function toWebSocketUrl(_0x5a7931,_0x2b80e7){const _0x594e06={_0x4c8ccb:0x31,_0x1bd27e:0xd7,_0x50ea05:0x10a,_0x489154:0xa2,_0x24124b:0xe,_0x3ea29b:0x3da,_0x3f515c:0x308,_0x207707:0x26f,_0x69f224:0x370},_0x8c657e={_0x13bf8c:0x79,_0x5ed32c:0x1e};function _0x147695(_0x28a825,_0x15a04c,_0xe2fb7f,_0x151de7){return _0x3adc1d(_0x28a825-0x181,_0x15a04c,_0xe2fb7f-0x1df,_0xe2fb7f-0x45d);}const _0x238682=new URL(_0x2b80e7,_0x5a7931);_0x238682[_0x39a376(_0x594e06._0x4c8ccb,0xa2,_0x594e06._0x1bd27e,0xf4)]=_0x238682[_0x39a376(_0x594e06._0x50ea05,_0x594e06._0x489154,-_0x594e06._0x24124b,0x117)]===_0x39a376(0x17c,0xe4,0x1d3,0x2e)?_0x147695(0x2cb,0x2e2,0x36f,0x379):_0x147695(_0x594e06._0x3ea29b,0x277,_0x594e06._0x3f515c,_0x594e06._0x207707);function _0x39a376(_0x534c58,_0x51d481,_0x4ad617,_0x55d155){return _0x3adc1d(_0x534c58-_0x8c657e._0x13bf8c,_0x534c58,_0x4ad617-_0x8c657e._0x5ed32c,_0x51d481-0x91);}return _0x238682[_0x147695(0x47b,0x3f1,0x433,_0x594e06._0x69f224)]();}var ProviderSessionManager=class{['resolver'];[_0x3adc1d(-0x52,0x11f,-0x49,0x55)];constructor(_0x1b7c8e){const _0x57358d={_0x19d849:0x1f0},_0x5f325b={_0x4dabe4:0x159};function _0x51a4ee(_0x113688,_0xd51c69,_0x48e259,_0x1d1b9f){return _0x521c92(_0x113688-_0x5f325b._0x4dabe4,_0x48e259,_0x48e259-0x11b,_0xd51c69-0x36f);}this[_0x51a4ee(0x233,0x2c1,_0x57358d._0x19d849,0x37f)]=_0x1b7c8e;}async[_0x521c92(-0x1b,-0x29,-0xb4,0x36)](_0x1dbdae){const _0xb9c47b={_0x1096a2:0x96,_0xa8cf15:0x2e,_0x38e1fc:0x1e1,_0x1d4262:0x125,_0x129c01:0x1a5,_0x40d5bb:0x133,_0x1b8b87:0xbf},_0x3cfb39={_0xca5b47:0x333,_0x2babcf:0x26d,_0x30dcb7:0x2b1},_0xb735bc={_0x47f04e:0xb},_0x36986a={_0x4bc234:0x7f},_0x2dc4d4={_0x2b6c1b:0x134};function _0x3edee6(_0x281a3c,_0x347b70,_0x49f4e0,_0x38fa57){return _0x521c92(_0x281a3c-_0x2dc4d4._0x2b6c1b,_0x281a3c,_0x49f4e0-0x13f,_0x49f4e0- -0x1e4);}function _0x67ec12(_0xd0eaf7,_0x3aee90,_0x2aae7f,_0x656a18){return _0x3adc1d(_0xd0eaf7-_0x36986a._0x4bc234,_0xd0eaf7,_0x2aae7f-0x117,_0x2aae7f-0x41);}if(!this[_0x67ec12(0x105,0x144,_0xb9c47b._0x1096a2,_0xb9c47b._0xa8cf15)]){const _0x580be0=this['resolver']['resolve'](_0x1dbdae);_0x580be0[_0x3edee6(-_0xb9c47b._0x38e1fc,-0x1aa,-_0xb9c47b._0x1d4262,-0x176)](()=>{function _0x3d3f5e(_0xa741d5,_0x4f8d83,_0x25897e,_0x1c86cf){return _0x67ec12(_0x4f8d83,_0x4f8d83-0x139,_0xa741d5-0x288,_0x1c86cf-_0xb735bc._0x47f04e);}this['cached']===_0x580be0&&(this[_0x3d3f5e(0x31e,_0x3cfb39._0xca5b47,_0x3cfb39._0x2babcf,_0x3cfb39._0x30dcb7)]=void 0x0);}),this['cached']=_0x580be0;}return structuredClone(await this[_0x3edee6(-0x90,-_0xb9c47b._0x129c01,-_0xb9c47b._0x40d5bb,-_0xb9c47b._0x1b8b87)]);}[_0x521c92(-0x17d,-0x6b,-0x71,-0x10d)](){this['cached']=void 0x0;}};async function prepareProviderRequest(_0x37154a,_0x3e5077={}){const _0x2b50ec={_0x92c1e3:0x6d0,_0x28a5a6:0x63d,_0x2ec209:0xe5,_0x51899c:0x72,_0x1903fa:0x8c,_0x3abf79:0xe8,_0x1469bc:0x11d,_0x3648ef:0x14d,_0x350089:0x25c},_0x5a1147={_0x4593b0:0x1d1,_0x27ef6f:0x19,_0x1a5f56:0x570},_0x350f06={_0x2d2797:0xd2};let _0x160a9d={'request':structuredClone(_0x37154a),'session':_0x3e5077[_0x2aa0fc(_0x2b50ec._0x92c1e3,_0x2b50ec._0x28a5a6,0x5e7,0x562)]?await _0x3e5077['sessionManager'][_0x173b03(-0x2a,-_0x2b50ec._0x2ec209,-_0x2b50ec._0x51899c,-0x42)](_0x3e5077[_0x173b03(-_0x2b50ec._0x1903fa,-0x114,-_0x2b50ec._0x3abf79,-_0x2b50ec._0x1469bc)]):void 0x0};for(const _0x2499db of _0x3e5077[_0x173b03(-_0x2b50ec._0x3648ef,-0x1c8,-_0x2b50ec._0x350089,-0x281)]??[]){_0x160a9d=await _0x2499db(_0x160a9d);}function _0x173b03(_0x255c73,_0x4c06d5,_0x13e5c2,_0x2d57ba){return _0x3adc1d(_0x255c73-0x199,_0x2d57ba,_0x13e5c2-_0x350f06._0x2d2797,_0x4c06d5- -0xbf);}function _0x2aa0fc(_0x513d90,_0x3142db,_0x22433d,_0x23655e){return _0x521c92(_0x513d90-_0x5a1147._0x4593b0,_0x23655e,_0x22433d-_0x5a1147._0x27ef6f,_0x22433d-_0x5a1147._0x1a5f56);}return _0x160a9d;}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{[_0x3adc1d(-0x37,-0x118,-0x1ac,-0xed)];[_0x521c92(-0x148,-0x13c,-0x11b,-0xbc)];[_0x521c92(0x10e,0x54,0xe7,0xc0)];[_0x521c92(-0x6d,-0x1bb,-0x199,-0x10a)];[_0x3adc1d(-0x50,-0x17a,-0x37,-0x8e)];[_0x3adc1d(-0x86,-0x12a,-0xf8,-0xc7)];[_0x521c92(-0x3b,0xbf,0x54,0x59)];[_0x521c92(-0x10b,-0x7d,-0x178,-0xad)];['router'];[_0x3adc1d(-0x8f,0xdb,0x2a,0x1b)];[_0x521c92(0x8e,-0xbe,-0x8a,0xd)];[_0x3adc1d(0x5e,-0x3a,0x6c,0x31)]=new Map();constructor(_0x10a6b9){const _0x148b15={_0x44e247:0x32f,_0x29c1d9:0x33b,_0x193d5d:0x308,_0x339bfb:0x3af,_0x588910:0x431,_0xe00885:0x318,_0x494088:0x409,_0x194032:0x384,_0x94f392:0x37a,_0x2b9baf:0x351,_0x120128:0x316,_0x29b499:0x4a5,_0x33c3d2:0x5b4,_0x22c6a9:0x44c,_0x49d2dd:0x312,_0x2f8bf1:0x2f7,_0x350a01:0x447,_0x469576:0x4a7,_0x3f08eb:0x4ae,_0x201653:0x476,_0x564b62:0x2f4,_0x5dd56c:0x33f,_0x39c512:0x531,_0x4cdf74:0x458,_0x2fece1:0x3b7,_0x33ab63:0x446,_0x26aeaf:0x326,_0x3813aa:0x47c,_0x413e6c:0x258,_0x2e70d9:0x274,_0xd2aa06:0x409,_0x3fc397:0x47e,_0x579ec9:0x34d,_0x102469:0x391,_0x1424df:0x4b7,_0x1f5a27:0x4bf,_0xfb5e80:0x438,_0x27961f:0x556,_0x509e55:0x4f5,_0x5ea8f4:0x4e0,_0x821c3b:0x49d,_0x52b11d:0x4fd,_0x326929:0x385,_0x3f3864:0x3c0,_0x6f10f:0x3d4},_0x5ac1e2={_0x10b6ce:0x131,_0x4fd23d:0x399};this[_0x1bc5ce(_0x148b15._0x44e247,0x3bf,_0x148b15._0x29c1d9,_0x148b15._0x193d5d)]=_0x10a6b9[_0xe2b1d3(_0x148b15._0x339bfb,_0x148b15._0x588910,_0x148b15._0xe00885,_0x148b15._0x494088)],this[_0xe2b1d3(_0x148b15._0x194032,_0x148b15._0x94f392,_0x148b15._0x2b9baf,0x445)]=_0x10a6b9[_0xe2b1d3(0x384,0x414,_0x148b15._0x120128,0x345)]??getDefaultMaxTokens(),this['reasoning']=_0x10a6b9[_0xe2b1d3(0x500,_0x148b15._0x29b499,_0x148b15._0x33c3d2,0x5ac)]?structuredClone(_0x10a6b9[_0xe2b1d3(0x500,_0x148b15._0x22c6a9,0x4c9,0x59b)]):void 0x0,this['apiKey']=_0x10a6b9[_0xe2b1d3(0x336,_0x148b15._0x49d2dd,0x3cc,0x391)],this[_0x1bc5ce(_0x148b15._0x2f8bf1,_0x148b15._0x350a01,0x333,0x367)]=_0x10a6b9[_0xe2b1d3(0x40e,0x4e4,_0x148b15._0x469576,0x468)],this[_0xe2b1d3(0x3d5,_0x148b15._0x3f08eb,0x404,_0x148b15._0x201653)]=_0x10a6b9[_0x1bc5ce(0x2da,0x355,_0x148b15._0x564b62,0x2bd)]??globalThis[_0x1bc5ce(0x1da,0x296,_0x148b15._0x5dd56c,0x2bd)];function _0xe2b1d3(_0x4200e4,_0x3741fe,_0x3146c1,_0x2b918e){return _0x521c92(_0x4200e4-0xb7,_0x3146c1,_0x3146c1-0x1f0,_0x4200e4-0x440);}this[_0xe2b1d3(0x499,_0x148b15._0x39c512,_0x148b15._0x4cdf74,_0x148b15._0x2fece1)]=_0x10a6b9['providerAdapter'],this[_0xe2b1d3(0x393,_0x148b15._0x33ab63,_0x148b15._0x26aeaf,_0x148b15._0x3813aa)]=_0x10a6b9[_0x1bc5ce(0x27c,_0x148b15._0x413e6c,_0x148b15._0x2e70d9,0x2ec)]??[],this[_0xe2b1d3(0x3bf,_0x148b15._0xd2aa06,0x314,_0x148b15._0x3fc397)]=_0x10a6b9[_0x1bc5ce(_0x148b15._0x579ec9,_0x148b15._0x102469,0x280,_0x148b15._0xe00885)];function _0x1bc5ce(_0x3a21c1,_0x1b1716,_0x3b3357,_0x38f226){return _0x521c92(_0x3a21c1-0xf6,_0x1b1716,_0x3b3357-_0x5ac1e2._0x10b6ce,_0x38f226-_0x5ac1e2._0x4fd23d);}this['sessionManager']=_0x10a6b9[_0xe2b1d3(_0x148b15._0x1424df,_0x148b15._0x1f5a27,0x498,_0x148b15._0xfb5e80)]??(_0x10a6b9[_0xe2b1d3(0x473,0x465,_0x148b15._0x27961f,_0x148b15._0x509e55)]?new ProviderSessionManager(_0x10a6b9[_0xe2b1d3(0x473,0x541,_0x148b15._0x5ea8f4,0x396)]):void 0x0),this['webSocketFactory']=_0x10a6b9['webSocketFactory']??createDefaultWebSocketFactory();for(const _0x17b5a5 of _0x10a6b9[_0xe2b1d3(0x4cd,0x56e,0x3e3,_0x148b15._0x821c3b)]){this[_0xe2b1d3(0x4cd,_0x148b15._0x52b11d,0x464,0x5b7)][_0xe2b1d3(_0x148b15._0x326929,0x40e,_0x148b15._0x3f3864,_0x148b15._0x6f10f)](_0x17b5a5['id'],_0x17b5a5);}}[_0x521c92(-0xda,0xa2,-0x94,-0x22)](_0xcefcc5,_0x29988e){return this['completeViaRouter'](_0xcefcc5,_0x29988e);}[_0x521c92(0xfe,0xe6,0x13,0x6e)](_0x38f8e8,_0xa56e32){const _0xb12310={_0x41f941:0x30d,_0x12add8:0x242},_0x17804b={_0x2dc0a7:0x7d};function _0x1de1ea(_0x677cb3,_0x109216,_0x2793de,_0x483a44){return _0x3adc1d(_0x677cb3-_0x17804b._0x2dc0a7,_0x2793de,_0x2793de-0x29,_0x109216-0x37a);}return this[_0x1de1ea(0x220,_0xb12310._0x41f941,0x2ae,_0xb12310._0x12add8)](_0x38f8e8,_0xa56e32);}async[_0x3adc1d(0x92,0xe2,0x16,0x59)](_0x3cb12f,_0x598c57){const _0x194769={_0x505b84:0x2bf,_0x3353ef:0x3c7,_0x17435f:0x1ca,_0x52b9ee:0x172,_0x1459c6:0x119,_0x3a2d4a:0x18b,_0x3f07aa:0x1a8,_0x41eeb3:0x2f9,_0x5e7869:0x34f,_0x192ade:0x3ab},_0x20a39b={_0x4439ae:0x371},_0x1846f0={_0x44d291:0x26d};function _0x4c3627(_0x1937af,_0x54aa5d,_0x259e44,_0x25917a){return _0x521c92(_0x1937af-0x128,_0x25917a,_0x259e44-0x28,_0x259e44-_0x1846f0._0x44d291);}const _0xc61339=this[_0x1079a8(_0x194769._0x505b84,0x2bf,0x35f,_0x194769._0x3353ef)](_0x3cb12f),_0x41b2b0=await this[_0x4c3627(_0x194769._0x17435f,0x17f,0x1ec,_0x194769._0x52b9ee)][_0x4c3627(0x1de,_0x194769._0x1459c6,0x1de,_0x194769._0x3a2d4a)](_0xc61339,{'mode':_0x4c3627(0x2ce,_0x194769._0x3f07aa,0x24b,_0x194769._0x41eeb3)});function _0x1079a8(_0x58235d,_0x437057,_0x2e4810,_0xe2f43a){return _0x3adc1d(_0x58235d-0x108,_0x437057,_0x2e4810-0x13a,_0x2e4810-_0x20a39b._0x4439ae);}return this[_0x1079a8(_0x194769._0x5e7869,0x42b,_0x194769._0x192ade,0x45a)](_0xc61339,_0x41b2b0,_0x598c57);}async*[_0x521c92(-0x31,0x53,-0x1b,-0x11)](_0x2704eb,_0x372d8e){const _0x2b7108={_0x30a0e1:0xa6,_0x2ae3ff:0x14e,_0x4bf17f:0xe9,_0x24d373:0x1b},_0x21dd74={_0x39c2e8:0xf2,_0x440899:0xe9,_0x582f8c:0x37},_0xe0fb2b={_0xd59182:0x83},_0x377ee4=this['applyModelDefaults'](_0x2704eb),_0x1fa7ea=await this[_0x13bfb1(-0x171,-0xfb,-_0x2b7108._0x30a0e1,-0x62)][_0x13bfb1(-_0x2b7108._0x2ae3ff,-0x14b,-0xb4,-0x141)](_0x377ee4,{'mode':_0x11c8fb(-_0x2b7108._0x4bf17f,0xc7,-_0x2b7108._0x24d373,0xa0)});function _0x11c8fb(_0x127045,_0x3b2377,_0xb71d2c,_0xe628ed){return _0x521c92(_0x127045-0x89,_0x3b2377,_0xb71d2c-_0xe0fb2b._0xd59182,_0xb71d2c- -0x89);}function _0x13bfb1(_0x59bc54,_0x9dc60c,_0x140af7,_0xf09741){return _0x3adc1d(_0x59bc54-_0x21dd74._0x39c2e8,_0x59bc54,_0x140af7-_0x21dd74._0x440899,_0x140af7-_0x21dd74._0x582f8c);}yield*this['streamViaSurface'](_0x377ee4,_0x1fa7ea,_0x372d8e);}async[_0x521c92(-0x28,0x157,0x11e,0x96)](_0x15f21b,_0x5989f8,_0x4fabb4){const _0x55c4a4={_0x1dc921:0x4dd,_0x5aff0e:0x441,_0x383226:0x491,_0x3ea57c:0x542,_0x406b67:0xc6,_0x2ab7cf:0xe9,_0x3caa9b:0x73,_0x32dc5c:0xf2,_0x4eaeae:0x143,_0x5dfb5c:0xfb,_0xfd204:0x30e,_0x4841be:0x488,_0x4594b6:0x543,_0x3554cd:0x454,_0x4d82e8:0x204,_0x14c6ed:0x1e4,_0x9e5e7:0x14b,_0x31cd52:0xe3,_0x3c7ff6:0xf7,_0x5427aa:0x421,_0x1deddd:0x4a5,_0x5aeaee:0x41,_0x4f1c36:0x54,_0x3aeefe:0x9a,_0x4b55d1:0x48b,_0xb8c559:0x530,_0x4a1ec8:0x3f2,_0x432054:0x113,_0x222e65:0x2d,_0x41a9ec:0x5d},_0xc8c25f={_0x2e628b:0x1ca,_0x2c0ac8:0xf6},_0x5e104d={_0x210dcf:0x493},_0x383f01=this[_0x300ae7(0x400,0x54d,_0x55c4a4._0x1dc921,_0x55c4a4._0x5aff0e)](_0x15f21b),_0x5a16a6=this['getSurface'](_0x5989f8);if(_0x5a16a6[_0x300ae7(0x45e,0x423,_0x55c4a4._0x383226,_0x55c4a4._0x3ea57c)]==='http-json'){const _0x501fdd=await this['sendHttpSurfaceRequest'](_0x383f01,_0x5a16a6,![],_0x4fabb4);if(!_0x501fdd['ok'])throw await this[_0x4623a5(_0x55c4a4._0x406b67,_0x55c4a4._0x2ab7cf,0x76,_0x55c4a4._0x3caa9b)](_0x501fdd);if(!_0x5a16a6[_0x4623a5(_0x55c4a4._0x32dc5c,0x151,_0x55c4a4._0x4eaeae,_0x55c4a4._0x5dfb5c)])throw new Error(_0x300ae7(0x367,_0x55c4a4._0xfd204,0x3dc,_0x55c4a4._0x4841be)+_0x5989f8+_0x300ae7(_0x55c4a4._0x4594b6,0x530,_0x55c4a4._0x3554cd,0x512));return _0x5a16a6[_0x4623a5(0x164,0x151,_0x55c4a4._0x4d82e8,_0x55c4a4._0x14c6ed)](await _0x501fdd[_0x4623a5(-0x31,-0x43,-0x6f,-0x104)](),_0x383f01);}function _0x300ae7(_0x580e02,_0x29706a,_0x10cebf,_0x1d684a){return _0x521c92(_0x580e02-0x175,_0x1d684a,_0x10cebf-0x5a,_0x10cebf-_0x5e104d._0x210dcf);}let _0x5428a6;for await(const _0xa55d8e of this[_0x4623a5(_0x55c4a4._0x9e5e7,_0x55c4a4._0x31cd52,0x80,_0x55c4a4._0x3c7ff6)](_0x383f01,_0x5989f8,_0x4fabb4)){_0xa55d8e[_0x300ae7(_0x55c4a4._0x5427aa,0x4bd,_0x55c4a4._0x1deddd,0x468)]===_0x4623a5(_0x55c4a4._0x5aeaee,_0x55c4a4._0x4f1c36,-_0x55c4a4._0x3aeefe,0xc2)&&(_0x5428a6=_0xa55d8e[_0x300ae7(_0x55c4a4._0x4b55d1,_0x55c4a4._0xb8c559,0x469,_0x55c4a4._0x4a1ec8)]);}function _0x4623a5(_0x13aa9b,_0x520d3b,_0x43b94b,_0x3d333f){return _0x3adc1d(_0x13aa9b-0x82,_0x13aa9b,_0x43b94b-_0xc8c25f._0x2e628b,_0x520d3b-_0xc8c25f._0x2c0ac8);}if(!_0x5428a6)throw new Error('Surface\x20'+_0x5989f8+_0x4623a5(-_0x55c4a4._0x432054,-_0x55c4a4._0x222e65,_0x55c4a4._0x41a9ec,0x1a));return _0x5428a6;}async*[_0x3adc1d(-0x97,0xa,-0x69,-0x13)](_0x4ed36a,_0x4aa88a,_0x4ea63a){const _0x59f42f={_0x389b01:0x357,_0x10714a:0x2c3,_0x4456de:0x306,_0x41e1c5:0x590,_0x14a2d2:0x581,_0x5bb938:0x28a,_0x397d59:0x2d6,_0x468ca8:0x13d,_0x55cc37:0x4cb,_0x5ab6f7:0x582,_0xa8f69c:0x65d,_0x10040f:0x2d0},_0x315d27={_0xca4355:0x32,_0x39bfbe:0x59f},_0x508bb6={_0x5c31de:0x136},_0x5f4dce=this[_0x3d66a8(0x34e,_0x59f42f._0x389b01,0x2fe,0x28a)](_0x4ed36a),_0x43b5d4=this[_0x3d66a8(_0x59f42f._0x10714a,0x3be,0x339,_0x59f42f._0x4456de)](_0x4aa88a);if(_0x43b5d4['transport']===_0xd13930(0x4ea,0x53f,_0x59f42f._0x41e1c5,_0x59f42f._0x14a2d2)){const _0x3dc854=await this[_0x3d66a8(_0x59f42f._0x5bb938,0x37d,0x3a8,_0x59f42f._0x397d59)](_0x5f4dce,_0x4aa88a,_0x4ea63a);yield{'type':_0x3d66a8(_0x59f42f._0x468ca8,0x196,0x282,0x1fa),'response':_0x3dc854};return;}function _0x3d66a8(_0x1d77c4,_0x2e4a1c,_0x2fdb44,_0x17176a){return _0x521c92(_0x1d77c4-0x0,_0x2fdb44,_0x2fdb44-_0x508bb6._0x5c31de,_0x17176a-0x240);}function _0xd13930(_0x2cc972,_0x503995,_0x5dc59c,_0x269767){return _0x3adc1d(_0x2cc972-_0x315d27._0xca4355,_0x2cc972,_0x5dc59c-0xf2,_0x5dc59c-_0x315d27._0x39bfbe);}if(_0x43b5d4[_0xd13930(0x512,_0x59f42f._0x55cc37,0x541,0x580)]==='http-sse'){yield*this[_0xd13930(0x60b,_0x59f42f._0x5ab6f7,0x5f5,_0x59f42f._0xa8f69c)](_0x5f4dce,_0x43b5d4,_0x4ea63a);return;}yield*this['streamWebSocketSurface'](_0x5f4dce,_0x43b5d4,_0x4ea63a?.[_0x3d66a8(0x2cb,0x1df,_0x59f42f._0x10040f,0x247)]);}async[_0x521c92(0x148,-0x4a,0x11a,0x5b)](_0x4cec36){const _0x329c66={_0x26dba3:0x86,_0x46dfaa:0x14b,_0x55ca5e:0xa8},_0x287ec8={_0x12c487:0xf5,_0x10e4e7:0x209},_0x2c35a4={_0x2a14cf:0x2c6,_0x535cb9:0x215,_0x12372c:0x214,_0x4b6bd9:0x260,_0x23ccd3:0x235,_0x3483cb:0x1f0,_0x16fe19:0xf5,_0x551d05:0x2ca,_0x42725f:0x1a8,_0x2e4f80:0x217,_0x51ba02:0x202,_0x36230a:0x236,_0x5650c3:0x21b,_0x376458:0x1f8,_0x941d8e:0x1b7,_0x5cdfe2:0x1a9,_0xb6b07d:0x17,_0x26bedb:0xe9,_0x2836f9:0x1c6,_0x57c96f:0x171,_0x558354:0x2b7,_0x3cd947:0x289,_0x411d60:0x2f2,_0x8aa6c3:0x271,_0x1951c9:0x145,_0x4deb51:0xc0,_0x3cbae8:0x10a,_0xafeb44:0x11c},_0x5ad3a0={_0x5c9f94:0x38},_0x34dcc6=async()=>{const _0x48e472=this[_0x22cb0d(0x306,0x2d4,0x1b5,0x260)]?await this[_0x22cb0d(_0x2c35a4._0x2a14cf,_0x2c35a4._0x535cb9,_0x2c35a4._0x12372c,_0x2c35a4._0x4b6bd9)]['resolve'](_0x4cec36[_0x22cb0d(_0x2c35a4._0x23ccd3,0x2c0,0x109,_0x2c35a4._0x3483cb)]):void 0x0,_0x3fd91c=this[_0x45727b(-_0x2c35a4._0x16fe19,-0x17e,-0x19f,-0x12e)][_0x45727b(-_0x2c35a4._0x551d05,-0x24c,-_0x2c35a4._0x42725f,-0x2b8)](this['apiKey'],_0x48e472);if(!_0x3fd91c)throw this[_0x22cb0d(_0x2c35a4._0x2e4f80,_0x2c35a4._0x51ba02,_0x2c35a4._0x36230a,0x27a)]();const _0x1a3748=await this['createHeaders']({'body':_0x4cec36['body'],'credential':_0x3fd91c,'session':_0x48e472,'stream':![]},{'accept':_0x4cec36['accept']??'application/json','includeContentType':_0x4cec36['method']==='POST'});function _0x45727b(_0x14bf7e,_0x26973d,_0x40c9dc,_0x32e41c){return _0x44a4(_0x26973d- -0x388,_0x40c9dc);}function _0x22cb0d(_0x588107,_0x64930a,_0x5dae42,_0x3bf3f5){return _0x44a4(_0x3bf3f5-_0x5ad3a0._0x5c9f94,_0x5dae42);}return this['fetchImpl'](''+this['providerAdapter'][_0x45727b(-0x6f,-0x14f,-0x111,-0x10c)](this[_0x22cb0d(_0x2c35a4._0x5650c3,0xcf,_0x2c35a4._0x376458,_0x2c35a4._0x941d8e)],_0x48e472)+_0x4cec36[_0x22cb0d(0x68,_0x2c35a4._0x5cdfe2,_0x2c35a4._0xb6b07d,_0x2c35a4._0x26bedb)],{'method':_0x4cec36['method'],'headers':_0x1a3748,..._0x4cec36[_0x22cb0d(0xbd,_0x2c35a4._0x2836f9,_0x2c35a4._0x57c96f,0x121)]!==void 0x0?{'body':JSON[_0x45727b(-_0x2c35a4._0x558354,-_0x2c35a4._0x3cd947,-_0x2c35a4._0x411d60,-_0x2c35a4._0x8aa6c3)](_0x4cec36[_0x22cb0d(_0x2c35a4._0x1951c9,0x140,_0x2c35a4._0x4deb51,0x121)])}:{},'signal':_0x4cec36[_0x22cb0d(_0x2c35a4._0x3cbae8,0x2a8,_0x2c35a4._0xafeb44,0x1f0)]});};function _0x45fec3(_0x1e1e06,_0x4e3484,_0x475e8b,_0x52a5c7){return _0x521c92(_0x1e1e06-_0x287ec8._0x12c487,_0x1e1e06,_0x475e8b-0xe2,_0x475e8b- -_0x287ec8._0x10e4e7);}return await this[_0x45fec3(-_0x329c66._0x26dba3,-0x163,-_0x329c66._0x46dfaa,-_0x329c66._0x55ca5e)](_0x34dcc6,_0x4cec36);}['getRetryDelayMs'](_0x4ff246,_0x55cde7){const _0x1a2ff7={_0x5cc717:0x3e,_0xbf44e9:0x25,_0x17ea76:0x33d,_0x3d9329:0x253,_0x3577cd:0x34a,_0x4aa372:0x2ea,_0x5c3498:0x33b,_0x532bbc:0x24,_0x3304af:0x95,_0x138d42:0xd2,_0x5e1866:0xef,_0x213122:0x11b,_0x39658d:0x14a,_0x49410b:0x278,_0x585bec:0x337,_0x2bc441:0x2b7,_0x26d1b7:0x2a8,_0x147635:0x266,_0xd30961:0x2a0},_0x4321eb={_0x40720a:0x174,_0x390077:0x19e,_0x5df04a:0xa},_0x2607a7={_0x54fc1a:0x187},_0x6d2607=_0x4ff246?.[_0x5dcef0(_0x1a2ff7._0x5cc717,-0xa,-_0x1a2ff7._0xbf44e9,-0x7)][_0x47cb04(0x18c,_0x1a2ff7._0x17ea76,_0x1a2ff7._0x3d9329,0x295)](_0x47cb04(_0x1a2ff7._0x3577cd,_0x1a2ff7._0x4aa372,_0x1a2ff7._0x5c3498,0x343));if(_0x6d2607){const _0x18f82c=Number(_0x6d2607);if(Number[_0x5dcef0(-_0x1a2ff7._0x532bbc,-_0x1a2ff7._0x3304af,-0x5,-_0x1a2ff7._0x138d42)](_0x18f82c)&&_0x18f82c>=0x0)return _0x18f82c*0x3e8;const _0x4d3374=Date['parse'](_0x6d2607);if(Number[_0x5dcef0(-_0x1a2ff7._0x5e1866,-0x95,-_0x1a2ff7._0x213122,-_0x1a2ff7._0x39658d)](_0x4d3374))return Math[_0x47cb04(0x302,_0x1a2ff7._0x49410b,_0x1a2ff7._0x585bec,_0x1a2ff7._0x2bc441)](0x0,_0x4d3374-Date[_0x47cb04(_0x1a2ff7._0x26d1b7,0x2de,_0x1a2ff7._0x147635,_0x1a2ff7._0xd30961)]());}function _0x47cb04(_0x1a67ef,_0x7eff33,_0x2358ad,_0x26af88){return _0x3adc1d(_0x1a67ef-0x19b,_0x1a67ef,_0x2358ad-_0x2607a7._0x54fc1a,_0x2358ad-0x30c);}function _0x5dcef0(_0x52b47f,_0x5be17b,_0x28181f,_0x22cca1){return _0x3adc1d(_0x52b47f-_0x4321eb._0x40720a,_0x22cca1,_0x28181f-_0x4321eb._0x390077,_0x5be17b- -_0x4321eb._0x5df04a);}const _0xf663cc=DEFAULT_RETRY_DELAY_MS*0x2**_0x55cde7;if(_0xf663cc<RETRY_DELAY_STEP_CAP_MS)return _0xf663cc;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x55cde7-0x5);}[_0x521c92(-0x85,0x2e,-0x179,-0xbe)](_0x4a5709){const _0xc00e72={_0x5dd19b:0x290,_0x280a0e:0x21c},_0x5c830e={_0x3c878c:0x1b1};function _0x32a41c(_0x51b588,_0x550b10,_0x41d07d,_0x130308){return _0x521c92(_0x51b588-_0x5c830e._0x3c878c,_0x130308,_0x41d07d-0x14,_0x550b10-0x1dd);}return RETRYABLE_HTTP_STATUSES['has'](_0x4a5709[_0x32a41c(0x30f,_0xc00e72._0x5dd19b,0x328,_0xc00e72._0x280a0e)]);}['shouldRetryRequestError'](_0x532777){return!isAbortError(_0x532777)&&_0x532777 instanceof TypeError;}[_0x3adc1d(-0x142,0x25,-0x1ac,-0xc8)](_0x65d49b){const _0x14d099={_0x1828b3:0x115,_0x199446:0xb},_0x1716a6={_0x5ff69:0x2e};function _0x453ff8(_0x2efc14,_0x63d5f0,_0x49cb2f,_0x5ddb5f){return _0x3adc1d(_0x2efc14-0x160,_0x2efc14,_0x49cb2f-_0x1716a6._0x5ff69,_0x63d5f0-0x98);}return this[_0x453ff8(0xae,-0x33,-_0x14d099._0x1828b3,-_0x14d099._0x199446)](_0x65d49b)||isRetryableProviderStreamEventError(_0x65d49b);}async['waitForRetry'](_0x175074,_0x1ee834){throwIfAborted(_0x1ee834),await new Promise((_0x3c6cb6,_0x298478)=>{let _0x470437=![];const _0x4a9609=addAbortListener(_0x1ee834,()=>{if(_0x470437)return;_0x470437=!![],clearTimeout(_0x25acb2),_0x298478(toAbortError(_0x1ee834?.['reason']));}),_0x25acb2=setTimeout(()=>{_0x470437=!![],_0x4a9609(),_0x3c6cb6();},_0x175074);}),throwIfAborted(_0x1ee834);}async[_0x521c92(0x18f,0x143,0x28,0xbe)](_0x4ff45a,_0x16c3ff={}){const _0x54ffa0={_0x45656e:0x55d,_0x48392d:0x610,_0xaf52b8:0x5fb,_0x4252e2:0x53e,_0x21767e:0xf0,_0x17fa44:0xf9,_0x56b9c2:0x126,_0x11cc15:0x121,_0xe2a289:0x1ee,_0x205547:0x199,_0x125f9f:0x285,_0x233591:0x1f0,_0x57a901:0x255},_0x4a47a7={_0x497fd7:0x125,_0x368793:0x166},{signal:_0x4bc774}=_0x16c3ff;let _0x558005=![];for(let _0xfe03f9=0x0;_0xfe03f9<MAX_PROVIDER_REQUEST_ATTEMPTS;_0xfe03f9+=0x1){throwIfAborted(_0x4bc774);try{const _0x9a0071=await _0x4ff45a();if(_0x9a0071[_0x5b4de2(0x588,_0x54ffa0._0x45656e,0x707,0x64c)]===0x191&&this[_0x5b4de2(0x54d,0x5d4,0x541,_0x54ffa0._0x48392d)]&&!_0x558005){_0x558005=!![],this[_0x5b4de2(_0x54ffa0._0xaf52b8,_0x54ffa0._0x4252e2,0x55d,0x610)][_0x33668d(0x5e,_0x54ffa0._0x21767e,_0x54ffa0._0x17fa44,0x123)]();continue;}if(!this['shouldRetryResponse'](_0x9a0071)||_0xfe03f9===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x9a0071;const _0x2ec0ea=this['getRetryDelayMs'](_0x9a0071,_0xfe03f9);await this[_0x33668d(0x53,_0x54ffa0._0x56b9c2,_0x54ffa0._0x11cc15,_0x54ffa0._0xe2a289)](_0x2ec0ea,_0x4bc774);}catch(_0x13576b){if(!this['shouldRetryRequestError'](_0x13576b)||_0xfe03f9===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x13576b;const _0x5aaa9e=this[_0x33668d(0x28c,0x20f,0x1b7,_0x54ffa0._0x205547)](void 0x0,_0xfe03f9);await this['waitForRetry'](_0x5aaa9e,_0x4bc774);}}function _0x5b4de2(_0x3b576c,_0x320096,_0x1d33ed,_0x293450){return _0x3adc1d(_0x3b576c-_0x4a47a7._0x497fd7,_0x320096,_0x1d33ed-_0x4a47a7._0x368793,_0x293450-0x5f5);}function _0x33668d(_0x537483,_0x2774ad,_0x1008cf,_0x3334f9){return _0x521c92(_0x537483-0x6a,_0x3334f9,_0x1008cf-0x1db,_0x1008cf-0x206);}throw new Error(_0x33668d(_0x54ffa0._0x125f9f,_0x54ffa0._0x233591,0x200,_0x54ffa0._0x57a901));}[_0x521c92(0x9f,0x1e,-0x9,0x91)](){const _0x39ba28={_0x11a2d:0x472,_0x453c0:0x52b},_0x2d05c3={_0x59f279:0x168};function _0x58cb6b(_0x3b8c2e,_0x520d53,_0x51e9dc,_0x550c4d){return _0x521c92(_0x3b8c2e-0x169,_0x520d53,_0x51e9dc-_0x2d05c3._0x59f279,_0x550c4d-0x49a);}return this['providerAdapter'][_0x58cb6b(_0x39ba28._0x11a2d,0x4d2,0x4a0,_0x39ba28._0x453c0)]();}async[_0x3adc1d(-0xda,-0xdb,-0x1f6,-0x15f)](_0x393d55,_0x14d326){const _0xc964ef={_0x4a6b40:0x483,_0x3fcf7d:0x420,_0x2472d2:0x333},_0x54675b={_0x19f460:0x523};function _0x1642e2(_0x53f12c,_0x208229,_0x3507aa,_0x357461){return _0x521c92(_0x53f12c-0x8f,_0x357461,_0x3507aa-0x186,_0x3507aa-_0x54675b._0x19f460);}return await this['providerAdapter'][_0x1642e2(_0xc964ef._0x4a6b40,0x4db,_0xc964ef._0x3fcf7d,_0xc964ef._0x2472d2)](_0x393d55,_0x14d326);}['mapApiError'](_0x555293){const _0x251457={_0x53a7b6:0x356,_0x4e4b38:0x30b,_0x3a5d20:0x38b,_0x5bfcd7:0x3d0,_0x5bdc33:0x27a,_0x40288b:0x222},_0xc18482={_0x1e5abe:0x100,_0x33ed9c:0xaa};function _0x3c2609(_0x4bb577,_0x4acfbb,_0x3cf7cc,_0x2d178c){return _0x3adc1d(_0x4bb577-0x63,_0x4acfbb,_0x3cf7cc-_0xc18482._0x1e5abe,_0x2d178c- -_0xc18482._0x33ed9c);}function _0x513b10(_0x3f4667,_0x2125ef,_0x5ed811,_0x114afb){return _0x3adc1d(_0x3f4667-0xf7,_0x114afb,_0x5ed811-0x6e,_0x3f4667-0x359);}return this[_0x513b10(_0x251457._0x53a7b6,_0x251457._0x4e4b38,_0x251457._0x3a5d20,_0x251457._0x5bfcd7)][_0x513b10(0x2ef,_0x251457._0x5bdc33,0x2b8,_0x251457._0x40288b)](_0x555293);}async[_0x521c92(0xe,0x25,0x7f,0x4f)](_0x5c2593){const _0x9018f9={_0x28556e:0x432,_0x5b0b85:0xe8,_0x32988f:0xc1},_0x53ba03={_0xb46720:0x169,_0x53bebb:0xbc},_0x56818f={_0x1e0202:0x162,_0x2b4598:0xe};function _0x2e482d(_0x5d88e9,_0x55cc51,_0x36ead6,_0x5eb9cf){return _0x3adc1d(_0x5d88e9-_0x56818f._0x1e0202,_0x55cc51,_0x36ead6-0x47,_0x5eb9cf-_0x56818f._0x2b4598);}function _0x2894e0(_0x404f6c,_0x2cd0de,_0x35c8e7,_0x33e937){return _0x3adc1d(_0x404f6c-_0x53ba03._0xb46720,_0x33e937,_0x35c8e7-_0x53ba03._0x53bebb,_0x35c8e7-0x4c5);}return await this[_0x2894e0(0x5a3,_0x9018f9._0x28556e,0x4c2,0x4c0)][_0x2e482d(_0x9018f9._0x5b0b85,_0x9018f9._0x32988f,0xbb,0x1)](_0x5c2593);}[_0x3adc1d(0x147,0x86,-0x10,0x6a)](_0x8b35b1){const _0x5252ac={_0x68d40a:0x2b7},_0x21e45f={_0x438aa8:0x11b},_0xfd5bf4={_0x24f06c:0x149};function _0x4ab5c0(_0x2d5f4c,_0x12773b,_0x48ca3f,_0x860b38){return _0x521c92(_0x2d5f4c-_0xfd5bf4._0x24f06c,_0x48ca3f,_0x48ca3f-0x1d4,_0x2d5f4c-0x2aa);}const _0x268dbe=this['surfaces'][_0x4ab5c0(0x24d,_0x5252ac._0x68d40a,0x255,0x1c3)](_0x8b35b1);if(!_0x268dbe)throw new Error(_0x4ab5c0(0x270,0x25a,0x2ef,0x1f6)+_0x8b35b1);function _0x126c03(_0x1562c0,_0x5689b6,_0x1be0fd,_0x570189){return _0x521c92(_0x1562c0-_0x21e45f._0x438aa8,_0x5689b6,_0x1be0fd-0x1,_0x570189-0x1);}return _0x268dbe;}async[_0x521c92(-0x19,-0x21,-0x1c0,-0xe8)](_0x459e13,_0x45a842){const _0x2d3f48={_0x418898:0xd2,_0x374cd3:0x6e,_0x318abf:0xd3,_0x3dca99:0x16,_0x8a6686:0x45,_0x436dce:0x167,_0x209c2c:0x1c8,_0x36c8c3:0x14,_0x4a59ba:0xec,_0x1bb4b7:0xb1,_0x4be914:0x2b},_0x43cd12={_0xa7eaa5:0x1cc,_0x15d518:0x174,_0x49944d:0xb7},_0x4e4f74={_0x518280:0x1bf,_0x4d49c4:0x58};function _0x273ae8(_0x15a446,_0x9575be,_0x8eb490,_0x17fd70){return _0x521c92(_0x15a446-_0x4e4f74._0x518280,_0x17fd70,_0x8eb490-_0x4e4f74._0x4d49c4,_0x9575be- -0x5d);}const _0x9d4ff1=toModelRequest(_0x459e13),_0x1218fd=await prepareProviderRequest(_0x9d4ff1,{'sessionManager':this[_0x3fcfed(_0x2d3f48._0x418898,0xa3,0x105,0xf8)],'requestMutators':this[_0x3fcfed(-0x52,_0x2d3f48._0x374cd3,0x9,-_0x2d3f48._0x318abf)],'signal':_0x45a842}),_0x4bb242=toChatRequest(_0x1218fd[_0x3fcfed(0x4f,-_0x2d3f48._0x3dca99,0x106,_0x2d3f48._0x8a6686)]),_0xf9b12e=this['providerAdapter']['resolveCredential'](this[_0x273ae8(-0x1c8,-_0x2d3f48._0x436dce,-0x93,-_0x2d3f48._0x209c2c)],_0x1218fd[_0x3fcfed(0x48,-0x1f,-0x6d,_0x2d3f48._0x36c8c3)]);if(!_0xf9b12e)throw this[_0x3fcfed(_0x2d3f48._0x4a59ba,0x18b,_0x2d3f48._0x1bb4b7,0x180)]();function _0x3fcfed(_0x8701ea,_0x56797b,_0x5b043d,_0xc58eb8){return _0x3adc1d(_0x8701ea-_0x43cd12._0xa7eaa5,_0x56797b,_0x5b043d-_0x43cd12._0x15d518,_0x8701ea-_0x43cd12._0x49944d);}return{'baseUrl':this[_0x3fcfed(0xb4,0x140,0xf7,0x85)][_0x273ae8(0xa6,_0x2d3f48._0x4be914,0x10,0x16)](this[_0x273ae8(-0xeb,-0x8f,-0x92,-0xc4)],_0x1218fd['session']),'credential':_0xf9b12e,'request':_0x4bb242,'session':_0x1218fd[_0x273ae8(-0x8c,-0x70,-_0x2d3f48._0x318abf,0x9)]};}['applyModelDefaults'](_0x4c7d17){const _0x572d78={_0x92cff0:0x2a9},_0x61a96b={_0x181ca9:0x19b,_0x492d71:0x1d7},_0x35bf74={_0x417d5a:0x514};function _0x5a7387(_0x5db108,_0x1ca6b3,_0x3b1204,_0x77628c){return _0x3adc1d(_0x5db108-0x1c1,_0x3b1204,_0x3b1204-0xd5,_0x77628c-_0x35bf74._0x417d5a);}function _0x53cb02(_0x141fac,_0xeaf2fc,_0x40f3cd,_0x587492){return _0x521c92(_0x141fac-0x102,_0xeaf2fc,_0x40f3cd-_0x61a96b._0x181ca9,_0x40f3cd-_0x61a96b._0x492d71);}return{...structuredClone(_0x4c7d17),..._0x4c7d17[_0x53cb02(0x214,_0x572d78._0x92cff0,0x297,0x2f5)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x53cb02(0x1a9,0x2b5,0x297,0x2fb)])}:{}};}async[_0x521c92(0x88,-0x27,0x56,-0x14)](_0x240d01,_0x32aa30,_0x11a071,_0x12bdc2={},_0x4644ce=!![]){const _0x5a747d={_0x37915b:0x69,_0x3cd364:0x64},_0x1f6106={_0x3e3b2a:0x352,_0x1ee65e:0x1b2,_0x282000:0x2a0,_0x9381d5:0x41b,_0x4d03b3:0x400,_0x2d4b77:0x37c,_0x5b36df:0x3dc,_0x19cc23:0x38d,_0x3c54f1:0x3bd,_0x5d00ec:0x453,_0x546af2:0x394,_0x16ab82:0x3aa,_0x15196c:0x32e,_0x51f52c:0x257,_0x2c0e67:0x2ee,_0x91de72:0x397,_0x8019e5:0x44c,_0x44d8c1:0x3eb,_0x31d6b7:0x466,_0x3cb90f:0x4b0,_0x40cd7b:0x3d2,_0x41535f:0x33b,_0x50cdd:0x3bf,_0x4314f1:0x548,_0x48f6d9:0x50e,_0xadfc4f:0x3b5,_0xb8b42b:0x333,_0x3223e6:0x3c5,_0x477367:0x209,_0x4af3e6:0x2c0},_0x4da873={_0x18948d:0xdc,_0x4c9312:0x16d,_0x2d3660:0x127};function _0x62ca61(_0x50eb99,_0x5dd44a,_0x583813,_0x5d2bde){return _0x521c92(_0x50eb99-_0x4da873._0x18948d,_0x5dd44a,_0x583813-_0x4da873._0x4c9312,_0x583813- -_0x4da873._0x2d3660);}const {signal:_0x139ca9}=_0x12bdc2,_0x29373b=async()=>{const _0x506713={_0x3bfb88:0x1d7},_0x46b4ac=await this[_0x324ebd(_0x1f6106._0x3e3b2a,_0x1f6106._0x1ee65e,0x28c,_0x1f6106._0x282000)](_0x240d01,_0x139ca9);function _0x45cde5(_0x121ed0,_0x5a4123,_0x3687be,_0xd5ca5d){return _0x44a4(_0x3687be-0x2dc,_0x5a4123);}let _0x19126f;try{_0x19126f=_0x32aa30[_0x45cde5(0x3d7,_0x1f6106._0x9381d5,0x489,0x517)](_0x46b4ac[_0x324ebd(0x382,_0x1f6106._0x4d03b3,0x433,_0x1f6106._0x2d4b77)]);}catch(_0xd30b64){if(_0xd30b64 instanceof Error)throw new ProviderRequestConstructionError(_0xd30b64[_0x324ebd(0x4c6,0x41f,0x3c3,_0x1f6106._0x5b36df)]);throw _0xd30b64;}if(!_0x19126f[_0x45cde5(0x42c,0x2ab,_0x1f6106._0x19cc23,0x30c)])throw new ProviderRequestConstructionError(_0x45cde5(0x48d,0x464,0x3d6,0x495)+_0x32aa30['id']+_0x45cde5(_0x1f6106._0x3c54f1,_0x1f6106._0x5d00ec,0x391,0x3c3));function _0x324ebd(_0x2a9439,_0x3e1968,_0x5cddc6,_0x29dcf6){return _0x44a4(_0x29dcf6-_0x506713._0x3bfb88,_0x5cddc6);}const _0x26bed9=await this['createHeaders']({'request':_0x46b4ac['request'],'body':_0x19126f[_0x45cde5(0x469,0x2e5,0x3c5,_0x1f6106._0x546af2)],'credential':_0x46b4ac[_0x324ebd(_0x1f6106._0x16ab82,_0x1f6106._0x15196c,_0x1f6106._0x51f52c,_0x1f6106._0x2c0e67)],'session':_0x46b4ac[_0x45cde5(0x43f,_0x1f6106._0x91de72,0x47a,_0x1f6106._0x8019e5)],'stream':_0x11a071},{'accept':_0x19126f['accept']??(_0x11a071?'text/event-stream':'application/json'),'includeContentType':_0x19126f['body']!==void 0x0});for(const [_0x489614,_0x2a8db1]of Object[_0x45cde5(_0x1f6106._0x44d8c1,_0x1f6106._0x31d6b7,0x48d,0x40d)](_0x19126f['headers']??{})){_0x26bed9[_0x45cde5(0x46c,_0x1f6106._0x3cb90f,_0x1f6106._0x40cd7b,0x3cb)](_0x489614,_0x2a8db1);}return this[_0x45cde5(_0x1f6106._0x41535f,0x3ca,0x422,0x4ba)](''+_0x46b4ac[_0x45cde5(_0x1f6106._0x50cdd,_0x1f6106._0x4314f1,0x45b,_0x1f6106._0x48f6d9)]+_0x19126f[_0x45cde5(0x380,0x318,0x38d,0x38b)],{'method':'POST','headers':_0x26bed9,..._0x19126f[_0x45cde5(_0x1f6106._0xadfc4f,_0x1f6106._0xb8b42b,_0x1f6106._0x3223e6,0x396)]!==void 0x0?{'body':JSON['stringify'](_0x19126f[_0x324ebd(0x2e0,0x2a2,_0x1f6106._0x477367,_0x1f6106._0x4af3e6)])}:{},'signal':_0x139ca9});};return _0x4644ce?await this[_0x62ca61(-0x8a,0x55,-_0x5a747d._0x37915b,-_0x5a747d._0x3cd364)](_0x29373b,_0x12bdc2):await _0x29373b();}async*[_0x521c92(0x104,0x5,0x17a,0xb2)](_0x315221,_0x4234f1,_0x4e0efd={}){const _0x41e9cb={_0x8784ac:0x538,_0x226c44:0x1e,_0x3e697a:0x11e,_0x56d95e:0x30,_0xdd187e:0xf0,_0x4baf65:0x64,_0x38c086:0x59c,_0x2eff30:0xcf,_0x590423:0xaf,_0x4587a9:0xda,_0x36a9ca:0x13a,_0x55ef72:0xf3,_0x23584d:0x195,_0x2e4985:0x1c1,_0x333c6b:0x3c0,_0xc246e6:0x43c,_0x23f2ad:0x8d,_0x34d994:0x414,_0x13ef08:0x327,_0x954662:0x3e5,_0x26749a:0x4ac,_0x6dbc0b:0x1e3,_0x1fc9a1:0xcd,_0x384ca8:0x110,_0x27b075:0x3cd,_0x243610:0x3d7,_0x26644f:0x489,_0x5064dc:0x53e,_0x28f334:0x4a3,_0x1bdc9c:0x497,_0x203557:0x126,_0x598298:0x52,_0x279301:0x8f,_0x33cf4e:0x49,_0x41611c:0x293,_0x4b4bbd:0x1c8},_0x57427a={_0x27b033:0x157,_0x2fc667:0xef},_0x3840b4={_0x24247d:0x167,_0x2e896f:0x1bf,_0x389fa4:0x54e};function _0x42184e(_0x5ecb91,_0x3396f7,_0x410ed9,_0x2ea5fe){return _0x3adc1d(_0x5ecb91-_0x3840b4._0x24247d,_0x3396f7,_0x410ed9-_0x3840b4._0x2e896f,_0x410ed9-_0x3840b4._0x389fa4);}const {signal:_0x4b5703}=_0x4e0efd;function _0xa3a5af(_0x44ef34,_0x340242,_0x441e1a,_0x5bf992){return _0x521c92(_0x44ef34-_0x57427a._0x27b033,_0x441e1a,_0x441e1a-_0x57427a._0x2fc667,_0x5bf992- -0xe3);}let _0x5a7770=![];for(let _0x36e3da=0x0;_0x36e3da<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x36e3da+=0x1){let _0x1e11db=![];try{const _0x57bea3=await this[_0x42184e(_0x41e9cb._0x8784ac,0x4c8,0x4de,0x55e)](_0x315221,_0x4234f1,!![],_0x4e0efd,![]);if(_0x57bea3[_0xa3a5af(_0x41e9cb._0x226c44,-_0x41e9cb._0x3e697a,0xb7,-_0x41e9cb._0x56d95e)]===0x191&&this[_0xa3a5af(-_0x41e9cb._0xdd187e,-_0x41e9cb._0x4baf65,0x15,-0x6c)]&&!_0x5a7770){_0x5a7770=!![],this[_0x42184e(0x639,0x5a5,0x569,_0x41e9cb._0x38c086)]['invalidate']();continue;}if(!_0x57bea3['ok'])throw await this[_0xa3a5af(-_0x41e9cb._0x2eff30,-0xc8,-_0x41e9cb._0x590423,-0x94)](_0x57bea3);const _0x206a44=_0x4234f1[_0xa3a5af(-_0x41e9cb._0x4587a9,-0x11d,-_0x41e9cb._0x36a9ca,-_0x41e9cb._0x55ef72)]?.(_0x315221);if(!_0x206a44?.[_0xa3a5af(-0x25f,-0x18e,-_0x41e9cb._0x23584d,-_0x41e9cb._0x2e4985)])throw new Error(_0x42184e(_0x41e9cb._0x333c6b,0x46c,0x43b,_0x41e9cb._0xc246e6)+_0x4234f1['id']+_0xa3a5af(-0x97,-0x1c5,-_0x41e9cb._0x23f2ad,-0x12b));for await(const _0x1c94b0 of iterateSseEvents(_0x57bea3,_0x4b5703)){const _0x513cea=_0x206a44[_0x42184e(0x3dd,0x502,_0x41e9cb._0x34d994,_0x41e9cb._0x13ef08)](_0x1c94b0);for(const _0x536bc0 of _0x513cea){_0x1e11db=!![],yield _0x536bc0;}}yield{'type':_0x42184e(0x4df,_0x41e9cb._0x954662,_0x41e9cb._0x26749a,0x599),'response':_0x206a44[_0xa3a5af(-_0x41e9cb._0x6dbc0b,-_0x41e9cb._0x1fc9a1,-0x1d9,-_0x41e9cb._0x384ca8)]()};return;}catch(_0x576baa){if(_0x1e11db||!this[_0x42184e(_0x41e9cb._0x27b075,_0x41e9cb._0x243610,0x486,0x3a5)](_0x576baa)||_0x36e3da===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x576baa;const _0x38b44b=this[_0x42184e(_0x41e9cb._0x26644f,_0x41e9cb._0x5064dc,_0x41e9cb._0x28f334,_0x41e9cb._0x1bdc9c)](void 0x0,_0x36e3da),_0x43ae5d={'type':'provider_retry','attempt':_0x36e3da+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x576baa instanceof Error?_0x576baa[_0xa3a5af(-_0x41e9cb._0x203557,-0xdf,-_0x41e9cb._0x598298,-_0x41e9cb._0x279301)]:String(_0x576baa),'delayMs':_0x38b44b,'reason':this['shouldRetryRequestError'](_0x576baa)?_0xa3a5af(_0x41e9cb._0x33cf4e,0x24,-0x4,-0x6a):'stream_error'};yield _0x43ae5d,await this[_0xa3a5af(-_0x41e9cb._0x41611c,-0x1ed,-0x23c,-_0x41e9cb._0x4b4bbd)](_0x38b44b,_0x4b5703);}}}async*[_0x3adc1d(0x2,0x13b,0x73,0x60)](_0x28f07f,_0x25f5e2,_0x507008){const _0x5d84b8={_0x5dacfa:0xea,_0xade0f6:0xba,_0x2c66fb:0xdd,_0x45c8cb:0x2a,_0x3c22c9:0x40,_0x594764:0x294,_0x3e3cc4:0x17c,_0x5056f0:0x12b,_0x19098d:0x200,_0xe3a3c7:0x1a9,_0x299bee:0x28f,_0x41b59f:0x38,_0x56d034:0x73,_0x4dea53:0x78,_0x137572:0xd2,_0x3ff2d2:0x291,_0xaeee00:0x38b,_0x5da129:0x258,_0x4172ea:0xc7,_0x1a4d2a:0xb9,_0x78c079:0xd5,_0x288b45:0x2ad,_0x35e7f8:0x1ca,_0x26a4b0:0xa9,_0xbeb01e:0x31,_0x34477c:0x65,_0x24a6b3:0x4f,_0x582d93:0x288,_0x5f0383:0x272,_0x328f30:0x18,_0x1f95b0:0x7f,_0x2f1e04:0x53,_0x46ce71:0x12,_0x3988d6:0x31,_0x21dc5c:0x3c,_0x24cc80:0x8a,_0x5c9efb:0xc3,_0x3553e5:0x6a,_0x30dda2:0x12a,_0x37163a:0x207,_0x5c8ada:0xe7,_0x1da6fd:0x136,_0xb9ed3b:0xa0,_0x53122a:0x3b,_0x5c5070:0xde,_0x3c9171:0xd9,_0x10e734:0x53,_0x5729d6:0x34,_0x3f1c05:0x2e,_0x4cf64f:0x171,_0x42bcd7:0x17e,_0xb3302e:0x1ee,_0x4c650a:0x154,_0x20f230:0x4e,_0x387155:0x84,_0x156e43:0xef,_0x4e49d9:0x20,_0x4ab670:0x1cd,_0x5cde15:0x17a,_0x55014a:0x187,_0x2c3aff:0x48,_0x24da81:0x356,_0x124192:0x27f,_0x4cf4e6:0x28,_0x42fdc3:0x92,_0x383367:0x6c,_0x3ee947:0x353,_0x501a4c:0x31e},_0x39beae={_0x5025a8:0x107,_0x4e4714:0x17c},_0x2dc793={_0x1938ab:0x1b9,_0x110b9d:0x134,_0x330d91:0x2e},_0x316a84=await this[_0x503aa1(-_0x5d84b8._0x5dacfa,-0x131,-_0x5d84b8._0xade0f6,-0x8c)](_0x28f07f,_0x507008);function _0x503aa1(_0x3fd6b5,_0x372056,_0x1d330d,_0x52c4b0){return _0x521c92(_0x3fd6b5-_0x2dc793._0x1938ab,_0x52c4b0,_0x1d330d-_0x2dc793._0x110b9d,_0x1d330d-_0x2dc793._0x330d91);}const _0x189d40=_0x25f5e2[_0x503aa1(-0xa5,_0x5d84b8._0x2c66fb,_0x5d84b8._0x45c8cb,-_0x5d84b8._0x3c22c9)](_0x316a84[_0x147d60(-0x2b6,-_0x5d84b8._0x594764,-0x1e4,-_0x5d84b8._0x3e3cc4)]),_0x3954ad=_0x25f5e2[_0x147d60(-0x23e,-0x2a2,-0x1e8,-0x10e)]?.(_0x28f07f);if(!_0x3954ad?.[_0x147d60(-_0x5d84b8._0x5056f0,-0x200,-0x1cd,-0x155)])throw new Error(_0x147d60(-_0x5d84b8._0x19098d,-_0x5d84b8._0xe3a3c7,-_0x5d84b8._0x299bee,-0x273)+_0x25f5e2['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x5ebae3=_0x189d40[_0x503aa1(_0x5d84b8._0x41b59f,-_0x5d84b8._0x56d034,-0x3b,-_0x5d84b8._0x4dea53)]??(_0x189d40[_0x503aa1(-0x91,-0xdd,-_0x5d84b8._0x137572,-0xf4)]?(''+_0x316a84['baseUrl']+_0x189d40[_0x147d60(-0x344,-_0x5d84b8._0x3ff2d2,-0x2d8,-_0x5d84b8._0xaeee00)])['replace'](/^http:/,_0x147d60(-_0x5d84b8._0x5da129,-0x236,-0x2d1,-0x23b))['replace'](/^https:/,'wss:'):void 0x0);function _0x147d60(_0x26f6b8,_0xfc93cc,_0xf1144,_0x375f60){return _0x3adc1d(_0x26f6b8-0x176,_0xfc93cc,_0xf1144-_0x39beae._0x5025a8,_0xf1144- -_0x39beae._0x4e4714);}if(!_0x5ebae3)throw new ProviderRequestConstructionError(_0x147d60(-0x20d,-0x320,-0x28f,-0x366)+_0x25f5e2['id']+_0x503aa1(_0x5d84b8._0x4172ea,0x93,0x25,_0x5d84b8._0x1a4d2a));const _0x3de50a=await this[_0x503aa1(-0xa4,-0x18b,-_0x5d84b8._0x78c079,-0x140)]({'request':_0x316a84[_0x147d60(-_0x5d84b8._0x288b45,-_0x5d84b8._0x35e7f8,-0x1e4,-0x248)],'body':_0x189d40[_0x503aa1(_0x5d84b8._0x26a4b0,-_0x5d84b8._0xbeb01e,_0x5d84b8._0x34477c,-_0x5d84b8._0x24a6b3)],'credential':_0x316a84[_0x147d60(-0x2d7,-_0x5d84b8._0x582d93,-_0x5d84b8._0x5f0383,-0x1ce)],'session':_0x316a84['session'],'stream':!![]},{'accept':_0x189d40[_0x503aa1(0x10c,-_0x5d84b8._0x328f30,0xd0,0xd)]??_0x503aa1(0x25,-_0x5d84b8._0x1f95b0,_0x5d84b8._0x2f1e04,-_0x5d84b8._0x46ce71),'includeContentType':![]});for(const [_0x3e3cf1,_0x750546]of Object['entries'](_0x189d40[_0x503aa1(-_0x5d84b8._0x3988d6,_0x5d84b8._0x21dc5c,_0x5d84b8._0x24cc80,0x67)]??{})){_0x3de50a['set'](_0x3e3cf1,_0x750546);}_0x3de50a[_0x503aa1(_0x5d84b8._0x5c9efb,-0x4d,_0x5d84b8._0x3553e5,_0x5d84b8._0x30dda2)](_0x147d60(-_0x5d84b8._0x37163a,-_0x5d84b8._0x5c8ada,-_0x5d84b8._0x1da6fd,-0x128));const _0xebff58=this[_0x503aa1(-_0x5d84b8._0xb9ed3b,0xe8,_0x5d84b8._0x53122a,_0x5d84b8._0x5c5070)]({'headers':Object[_0x503aa1(_0x5d84b8._0x3c9171,_0x5d84b8._0x46ce71,0xf1,_0x5d84b8._0x10e734)](_0x3de50a[_0x503aa1(_0x5d84b8._0x5729d6,0x20,_0x5d84b8._0x3f1c05,0x10c)]()),'url':_0x5ebae3});try{throwIfAborted(_0x507008);_0xebff58[_0x147d60(-_0x5d84b8._0x4cf64f,-_0x5d84b8._0x42bcd7,-_0x5d84b8._0xb3302e,-_0x5d84b8._0x4c650a)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0xebff58,_0x507008);throwIfAborted(_0x507008);_0x189d40['initialEvent']!==void 0x0&&_0xebff58[_0x503aa1(-0x69,-_0x5d84b8._0x20f230,0x4e,0xf5)](JSON[_0x503aa1(-0xee,-0x114,-_0x5d84b8._0x387155,-0x3d)](_0x189d40[_0x503aa1(0x61,_0x5d84b8._0x5c9efb,_0x5d84b8._0x34477c,_0x5d84b8._0x156e43)]));for await(const _0x5cab9d of iterateWebSocketMessages(_0xebff58,_0x507008)){yield*_0x3954ad[_0x503aa1(0x22,0x3c,0x39,-_0x5d84b8._0x4e49d9)](_0x5cab9d);if(_0x3954ad[_0x147d60(-_0x5d84b8._0x4ab670,-_0x5d84b8._0x5cde15,-_0x5d84b8._0x55014a,-0x20d)]?.())break;}yield{'type':'done','response':_0x3954ad[_0x503aa1(_0x5d84b8._0xb9ed3b,-0xef,0x1,_0x5d84b8._0x2c3aff)]()};}finally{_0xebff58['readyState']===WebSocket[_0x147d60(-_0x5d84b8._0x24da81,-0x38b,-0x2e9,-0x3aa)]&&_0xebff58[_0x147d60(-_0x5d84b8._0x124192,-0x377,-0x2bf,-0x305)](0x3e8,_0x507008?.[_0x503aa1(_0x5d84b8._0x4cf4e6,-0x4d,0x9a,0x73)]?_0x503aa1(_0x5d84b8._0x42fdc3,0x2e,0x9a,_0x5d84b8._0x383367):_0x147d60(-_0x5d84b8._0x3ee947,-_0x5d84b8._0x501a4c,-0x2cb,-0x38b));}}};async function createHttpError(_0x119d0b){const _0x5bd40d={_0x42b9f3:0x1b,_0x57d732:0x2b,_0x2eb9be:0xd2,_0x15eb14:0x43,_0x2c0336:0x182,_0x5b0cf7:0x1e7,_0x414f61:0x16c,_0x346551:0x82},_0x51dd45={_0x3d6382:0xe4,_0x2a7020:0x50,_0x4b43c9:0x14a},_0x1d676d={_0x4db011:0x2a};function _0x26aee4(_0x48c54e,_0x5c60e8,_0x3f053e,_0x3485af){return _0x521c92(_0x48c54e-0x8c,_0x48c54e,_0x3f053e-_0x1d676d._0x4db011,_0x3485af- -0x15e);}function _0x26b246(_0x1406ad,_0x4bc6d4,_0x31f40c,_0x3e63f5){return _0x521c92(_0x1406ad-_0x51dd45._0x3d6382,_0x3e63f5,_0x31f40c-_0x51dd45._0x2a7020,_0x1406ad- -_0x51dd45._0x4b43c9);}const _0x59cabb=await _0x119d0b['text'](),_0x32eecc=_0x59cabb[_0x26b246(-0x92,-0xab,_0x5bd40d._0x42b9f3,-_0x5bd40d._0x57d732)]()||_0x119d0b[_0x26b246(-_0x5bd40d._0x2eb9be,-_0x5bd40d._0x15eb14,-0xc8,-_0x5bd40d._0x2c0336)]||_0x26aee4(-0x22b,-_0x5bd40d._0x5b0cf7,-_0x5bd40d._0x414f61,-0x145);return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0x119d0b[_0x26b246(-0x97,-_0x5bd40d._0x346551,-0x8c,-0x17a)]+':\x20'+_0x32eecc);}var AnthropicProviderAdapter=class{[_0x3adc1d(-0x1b4,-0xca,-0x90,-0xdf)];[_0x3adc1d(-0x11e,0x3e,0x1d,-0x6e)];[_0x3adc1d(-0x1ba,-0xf2,-0x25,-0x100)];constructor(_0x1fa58f){const _0x47bd00={_0x26d43c:0x1e2,_0x3041b3:0x110,_0x20e1e3:0x1a5,_0x1ee0b1:0x2c5,_0x42c0b5:0x308,_0x56714e:0x116,_0x3bbc4d:0x379,_0x45224d:0x377,_0x51b87e:0x2aa,_0x1bf336:0x2e7,_0x2e5e60:0x21,_0x69e9af:0x11},_0x43b052={_0x4126aa:0x145,_0x21d2a9:0x13,_0x2dc4c2:0x38b},_0x50d36e={_0x29f30e:0x19b,_0x4e5416:0x1eb,_0x155709:0x193};function _0x45998a(_0x14dc7a,_0x47df33,_0x10f14,_0x4e7402){return _0x521c92(_0x14dc7a-_0x50d36e._0x29f30e,_0x4e7402,_0x10f14-_0x50d36e._0x4e5416,_0x10f14-_0x50d36e._0x155709);}function _0x12672f(_0x280169,_0x3a35d1,_0x5676fb,_0x4f1d1c){return _0x521c92(_0x280169-_0x43b052._0x4126aa,_0x4f1d1c,_0x5676fb-_0x43b052._0x21d2a9,_0x5676fb-_0x43b052._0x2dc4c2);}this[_0x45998a(0xc7,_0x47bd00._0x26d43c,_0x47bd00._0x3041b3,_0x47bd00._0x20e1e3)]=_0x1fa58f[_0x12672f(0x3af,_0x47bd00._0x1ee0b1,_0x47bd00._0x42c0b5,0x23e)],this[_0x45998a(_0x47bd00._0x56714e,0xd1,0x181,0xf2)]=_0x1fa58f[_0x12672f(0x2b8,0x3ec,_0x47bd00._0x3bbc4d,_0x47bd00._0x45224d)],this[_0x12672f(0x397,_0x47bd00._0x51b87e,_0x47bd00._0x1bf336,0x2c1)]=_0x1fa58f[_0x45998a(_0x47bd00._0x2e5e60,0x38,0xef,_0x47bd00._0x69e9af)];}[_0x521c92(-0x3e,0x6b,0x136,0x91)](){const _0x4fe6bd={_0xd2e41e:0x455,_0x125733:0x505},_0x4bcf3d={_0x12a09c:0x15e};function _0x3d563f(_0x2bfbf8,_0x5ab4a9,_0x2a0304,_0x2f25c3){return _0x3adc1d(_0x2bfbf8-0x11a,_0x2a0304,_0x2a0304-_0x4bcf3d._0x12a09c,_0x5ab4a9-0x452);}return new Error(_0x3d563f(0x407,_0x4fe6bd._0xd2e41e,_0x4fe6bd._0x125733,0x4c2));}async[_0x521c92(-0x1c4,-0x163,-0x6a,-0x103)](_0x4fec00,_0x3edea7){const _0xf7d6a1={_0x116c3e:0x1a6,_0x81a552:0x6fa,_0x1c3b1e:0x41b,_0xb6b687:0x412,_0x39c7b8:0x33f,_0x194ccb:0x435,_0x5e5e99:0x4d9,_0x3a2745:0x47e,_0x34611a:0x5a8,_0x36aaa4:0x4e4,_0x50f03a:0x525,_0x49b1d6:0x4d8,_0x2dd93d:0x4e1,_0x7aa4a5:0x247,_0x4754ae:0x1f6,_0x307f55:0x2f6,_0x59d9de:0x24f,_0x5c918b:0x20f,_0x1e4265:0x19a,_0x211a86:0x2cd,_0x2a31c6:0x288,_0x5a3519:0x5bf,_0x4d6d40:0x5cb,_0x7b477d:0x5a6,_0x49d9f0:0x4af,_0x49c355:0x58d,_0x49dda8:0x573,_0x38a725:0x637,_0x4de057:0x619,_0x105660:0x61e,_0x1cfc61:0x695,_0x11a5e2:0x609,_0xe07ae9:0x3ea,_0x3056c9:0x3ea,_0x3fb6bd:0x4e3,_0x3d820c:0x48f,_0x34f9dd:0x48b,_0x552315:0x2be,_0x573043:0x2c7,_0x93b27d:0x3ba,_0xda6c1a:0x57d,_0x3104d0:0x53d,_0x1a9bf0:0x627,_0x5467aa:0x1ac},_0x385288={_0x4c1470:0x1d4},_0x240e87={_0x1cdf95:0x59,_0x5b856e:0xce},_0x737816=new Headers();function _0x47766d(_0x75aabe,_0x59c65e,_0x272710,_0x268133){return _0x3adc1d(_0x75aabe-_0x240e87._0x1cdf95,_0x59c65e,_0x272710-_0x240e87._0x5b856e,_0x75aabe-0x326);}_0x737816[_0x47766d(0x20f,0x28a,_0xf7d6a1._0x116c3e,0x2da)](_0x14af6a(0x61f,_0xf7d6a1._0x81a552,0x656,0x5fc),_0x3edea7[_0x47766d(0x36c,_0xf7d6a1._0x1c3b1e,_0xf7d6a1._0xb6b687,_0xf7d6a1._0x39c7b8)]),_0x737816['set'](_0x14af6a(0x4b4,_0xf7d6a1._0x194ccb,0x490,0x418),this[_0x14af6a(_0xf7d6a1._0x5e5e99,0x484,_0xf7d6a1._0x3a2745,_0xf7d6a1._0x34611a)]);_0x3edea7[_0x14af6a(_0xf7d6a1._0x36aaa4,0x4ab,_0xf7d6a1._0x50f03a,0x561)]!==![]&&_0x737816['set'](_0x14af6a(_0xf7d6a1._0x49b1d6,0x4c5,0x52e,_0xf7d6a1._0x2dd93d),'application/json');this[_0x47766d(_0xf7d6a1._0x7aa4a5,0x2dd,0x1a5,_0xf7d6a1._0x4754ae)]===_0x47766d(_0xf7d6a1._0x307f55,0x3c1,_0xf7d6a1._0x59d9de,0x30e)?_0x737816[_0x47766d(_0xf7d6a1._0x5c918b,_0xf7d6a1._0x1e4265,0x1e4,_0xf7d6a1._0x211a86)](_0x47766d(0x28e,0x33e,_0xf7d6a1._0x2a31c6,0x316),_0x14af6a(0x5d2,0x542,_0xf7d6a1._0x5a3519,_0xf7d6a1._0x4d6d40)+_0x4fec00[_0x14af6a(0x4e3,_0xf7d6a1._0x7b477d,_0xf7d6a1._0x49d9f0,0x591)]['value']):_0x737816[_0x14af6a(0x4c2,_0xf7d6a1._0x49c355,0x43c,0x59d)](_0x14af6a(0x595,_0xf7d6a1._0x49dda8,_0xf7d6a1._0x38a725,_0xf7d6a1._0x4de057),_0x4fec00[_0x14af6a(0x4e3,0x483,0x551,0x418)][_0x14af6a(_0xf7d6a1._0x105660,0x67c,_0xf7d6a1._0x1cfc61,_0xf7d6a1._0x11a5e2)]);const _0x19662a=await this['headerResolver']?.({'body':_0x4fec00[_0x14af6a(0x4b5,_0xf7d6a1._0xe07ae9,_0xf7d6a1._0x3056c9,0x4a7)],'credential':_0x4fec00[_0x14af6a(_0xf7d6a1._0x3fb6bd,0x50e,_0xf7d6a1._0x3d820c,_0xf7d6a1._0x34f9dd)],'request':_0x4fec00[_0x47766d(_0xf7d6a1._0x552315,0x29a,0x35f,_0xf7d6a1._0x573043)],'session':_0x4fec00['session'],'stream':_0x4fec00[_0x47766d(0x338,0x41e,_0xf7d6a1._0x93b27d,0x420)]});function _0x14af6a(_0x3d9372,_0x3efe06,_0x11ff43,_0x5e3342){return _0x521c92(_0x3d9372-0x10c,_0x3efe06,_0x11ff43-_0x385288._0x4c1470,_0x3d9372-0x57d);}for(const [_0x2f808d,_0x268d07]of Object[_0x14af6a(_0xf7d6a1._0xda6c1a,0x52c,_0xf7d6a1._0x3104d0,_0xf7d6a1._0x1a9bf0)](_0x19662a??{})){_0x737816[_0x47766d(0x20f,0x2c5,_0xf7d6a1._0x5467aa,0x275)](_0x2f808d,_0x268d07);}return _0x737816;}[_0x521c92(0x4a,-0xaf,-0xba,-0xe)](_0x1fc32c){return _0x1fc32c;}[_0x521c92(0xb1,-0x65,0x55,0x88)](_0x583b95,_0x3b7c00){return resolveSessionBaseUrl(_0x583b95,_0x3b7c00);}[_0x521c92(-0x134,-0x13f,0x52,-0x75)](_0x2403ce,_0x805789){return resolveApiCredential(_0x2403ce,_0x805789);}async[_0x3adc1d(0x4d,-0xd4,0xc4,-0xd)](_0x1f2666){return await createHttpError(_0x1f2666);}},AnthropicModel=class extends RoutedModel{constructor(_0x4087ef={}){const _0x2ee958={_0x2b3329:0x390,_0x245e79:0x356,_0x5d8ea6:0x2ab,_0x12e03c:0x2f,_0x3116cc:0x77,_0x14d842:0x3c,_0x1aaa89:0x2c,_0x170461:0x29,_0x400949:0x1c,_0x5e71d8:0x9f,_0x381ef0:0x164,_0x444e2b:0x23a,_0x2cd2e9:0x1f3,_0x18fe4c:0x160,_0x5461e1:0x143,_0x4cf15a:0x208,_0x5ca6c8:0x51,_0x2396bb:0x10a,_0x272306:0xb8,_0xae18a6:0x8e,_0x3f47ca:0x8e,_0x26c6a1:0x3d,_0x2ff788:0xec,_0x1da423:0x425,_0x2b0df0:0x3f5,_0x1a1a8e:0x349,_0x6458ed:0x315},_0x3cccd0={_0x4c6ade:0x55,_0x24db82:0x190},_0xf61e64={_0x3491f8:0x1ac};function _0x508b10(_0x2ef152,_0x302cb0,_0x1b1985,_0x5502c1){return _0x3adc1d(_0x2ef152-0xb8,_0x2ef152,_0x1b1985-_0xf61e64._0x3491f8,_0x302cb0-0x41e);}function _0x2e5d61(_0x21740b,_0x20ed2c,_0x19abda,_0x198860){return _0x3adc1d(_0x21740b-_0x3cccd0._0x4c6ade,_0x198860,_0x19abda-_0x3cccd0._0x24db82,_0x21740b-0xfc);}super({'apiKey':_0x4087ef['apiKey'],'baseUrl':trimTrailingSlashes(_0x4087ef[_0x508b10(0x2ce,_0x2ee958._0x2b3329,_0x2ee958._0x245e79,_0x2ee958._0x5d8ea6)]??_0x2e5d61(0xf6,_0x2ee958._0x12e03c,_0x2ee958._0x3116cc,0x1ba)),'fetch':_0x4087ef[_0x2e5d61(-_0x2ee958._0x14d842,-_0x2ee958._0x1aaa89,-_0x2ee958._0x170461,-0xb8)],'maxTokens':_0x4087ef[_0x2e5d61(-_0x2ee958._0x400949,-0x83,_0x2ee958._0x5e71d8,-0x11)]??0x4000,'model':_0x4087ef['model']??_0x2e5d61(_0x2ee958._0x381ef0,0x170,_0x2ee958._0x444e2b,_0x2ee958._0x2cd2e9),'reasoning':_0x4087ef[_0x2e5d61(_0x2ee958._0x18fe4c,_0x2ee958._0x5461e1,0x24b,_0x2ee958._0x4cf15a)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x4087ef[_0x2e5d61(0x1d,_0x2ee958._0x5ca6c8,_0x2ee958._0x2396bb,-0x6f)]??_0x2e5d61(_0x2ee958._0x272306,-0x1d,_0x2ee958._0xae18a6,0xf4),'headerResolver':_0x4087ef[_0x2e5d61(_0x2ee958._0x3f47ca,-0x52,0x13d,0x174)],'protocolVersion':_0x4087ef['protocolVersion']??_0x2e5d61(0x11e,_0x2ee958._0x26c6a1,_0x2ee958._0x2ff788,0xa0)}),'providerSessionResolver':_0x4087ef[_0x508b10(_0x2ee958._0x1da423,_0x2ee958._0x2b0df0,0x341,_0x2ee958._0x1a1a8e)],'requestMutators':_0x4087ef[_0x508b10(0x248,_0x2ee958._0x6458ed,0x31a,0x3de)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x3adc1d(-0x14b,-0x101,0x50,-0x7e)](_0x3fcf26,_0x4d7a9f){return this['completeViaSurface'](_0x3fcf26,ANTHROPIC_MESSAGES_SURFACE,_0x4d7a9f);}[_0x521c92(0x77,0x3c,0x6d,0x6e)](_0x5a3848,_0x53c43d){return this['streamViaSurface'](_0x5a3848,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x53c43d);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x3adc1d(-0x124,-0xa4,0xa,-0xbf),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x521c92(-0x68,0x70,-0x4,0x85),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x3adc1d(-0xa2,-0x140,-0x6,-0x61),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x521c92(0xf1,0x5,0xa0,0x2),OpenAiApiError=class extends Error{['status'];[_0x521c92(-0xeb,-0x1b2,0x12,-0xc8)];constructor(_0x476c80,_0x6bd0d7,_0x365888){const _0x4a9e64={_0x229ec5:0x177,_0x58f82e:0x188,_0x3425de:0x17f,_0x588856:0x164,_0x2bc294:0x79,_0x3db5d8:0xfb,_0x3068ef:0x96,_0x4f2b39:0x53b,_0x2b5cc6:0x5eb,_0x48e4ec:0x622},_0x53bada={_0x4b5f88:0x17c,_0xa4d6e7:0x8a},_0x1fddd2={_0x5560ea:0x1a7};super(_0x365888);function _0x147d2d(_0x2eda40,_0x483e4c,_0x46a721,_0xbcc549){return _0x521c92(_0x2eda40-_0x1fddd2._0x5560ea,_0x2eda40,_0x46a721-0x13b,_0x483e4c-0x488);}function _0x5cc42e(_0xdc617c,_0x45b832,_0x296947,_0x1532d3){return _0x521c92(_0xdc617c-_0x53bada._0x4b5f88,_0x45b832,_0x296947-_0x53bada._0xa4d6e7,_0xdc617c-0xfa);}this[_0x5cc42e(_0x4a9e64._0x229ec5,0x10c,_0x4a9e64._0x58f82e,_0x4a9e64._0x3425de)]=_0x5cc42e(_0x4a9e64._0x588856,_0x4a9e64._0x2bc294,_0x4a9e64._0x3db5d8,_0x4a9e64._0x3068ef),this[_0x147d2d(0x5b1,_0x4a9e64._0x4f2b39,_0x4a9e64._0x2b5cc6,_0x4a9e64._0x48e4ec)]=_0x476c80,this['body']=_0x6bd0d7;}};function stringifySystem(_0x2f3a65){const _0x126fa4={_0x9912e6:0x4d,_0xaba7ae:0x97,_0x156855:0x125,_0x72c47b:0x108,_0x291e4f:0x1e2,_0x5e6a80:0x209},_0x221cc4={_0x2ed6aa:0x2d,_0x1c793b:0x4},_0xd41cea={_0x3c3fdd:0x30c};function _0x10594b(_0x5d7f57,_0x55bb0c,_0x312843,_0x402f27){return _0x3adc1d(_0x5d7f57-0x1e5,_0x5d7f57,_0x312843-0xb0,_0x55bb0c-_0xd41cea._0x3c3fdd);}function _0x4e3b90(_0x286417,_0x308525,_0x42a222,_0xd0de23){return _0x3adc1d(_0x286417-_0x221cc4._0x2ed6aa,_0x42a222,_0x42a222-_0x221cc4._0x1c793b,_0x286417-0x4d);}return _0x2f3a65[_0x4e3b90(-_0x126fa4._0x9912e6,-_0x126fa4._0xaba7ae,-_0x126fa4._0x156855,0x26)](_0x150e51=>_0x150e51[_0x4e3b90(0x38,-0x6f,-0x66,-0x57)])[_0x10594b(_0x126fa4._0x72c47b,_0x126fa4._0x291e4f,_0x126fa4._0x5e6a80,0x181)]('\x0a\x0a');}function createToolDefinitions(_0x413f7b){const _0xef736b={_0x368376:0x3b},_0x2d1960={_0x1b75dd:0x7d,_0x171ddd:0x71,_0x2f7bbe:0x1ba,_0x4163ea:0x23,_0x273257:0x186,_0x52b805:0x152,_0x3f8522:0x141},_0x4fa82a={_0x46361f:0x108},_0x424406={_0x4f6510:0x2};if(_0x413f7b['length']===0x0)return void 0x0;function _0x3512cd(_0x14eaaf,_0x2229f3,_0x443d84,_0x312791){return _0x3adc1d(_0x14eaaf-0x188,_0x14eaaf,_0x443d84-_0x424406._0x4f6510,_0x443d84-0xe1);}return _0x413f7b[_0x3512cd(0x106,_0xef736b._0x368376,0x47,-0xa7)](_0x2a3558=>{const _0x187588={_0x2dce04:0xd7,_0x449714:0x1cc};function _0x16732c(_0x35302e,_0x2aa3af,_0x29343d,_0x344f74){return _0x3512cd(_0x35302e,_0x2aa3af-_0x4fa82a._0x46361f,_0x29343d-0x2f,_0x344f74-0xed);}function _0x5dbc1b(_0x39222c,_0x114083,_0x5048df,_0x12689f){return _0x3512cd(_0x39222c,_0x114083-_0x187588._0x2dce04,_0x5048df- -_0x187588._0x449714,_0x12689f-0xd2);}return{'type':_0x16732c(_0x2d1960._0x1b75dd,-_0x2d1960._0x171ddd,0x2b,0xbc),'function':{'name':_0x2a3558[_0x16732c(0x19f,_0x2d1960._0x2f7bbe,0x131,0x194)],'description':_0x2a3558[_0x16732c(0x52,0x30,0x71,-_0x2d1960._0x4163ea)],'parameters':_0x2a3558[_0x16732c(_0x2d1960._0x273257,0x14f,_0x2d1960._0x52b805,_0x2d1960._0x3f8522)]}};});}function isImageToolResultBlock(_0x5714ef){const _0x483141={_0x3d53ed:0xeb,_0x32ac6a:0xb,_0x563451:0x127,_0x3fc687:0x29,_0x60ae77:0x2c,_0x4c4fae:0x72,_0xe2f4b8:0x51,_0x8a9a84:0x3d,_0x25c723:0xc,_0xe265d:0x159,_0x4b8a1a:0xe0,_0x3b73d5:0x2f,_0x12a4fa:0xf,_0x3cfb58:0x11e},_0x1bc247={_0x5ca65d:0x90},_0x4ef66a={_0x28f36e:0x8,_0xaadd89:0x9f};if(typeof _0x5714ef!==_0x55da33(-0x109,-0xe3,-_0x483141._0x3d53ed,-0x171)||_0x5714ef===null||Array['isArray'](_0x5714ef))return![];function _0x55da33(_0x1f2c35,_0x344a1f,_0x5825c0,_0x227ba3){return _0x3adc1d(_0x1f2c35-_0x4ef66a._0x28f36e,_0x5825c0,_0x5825c0-_0x4ef66a._0xaadd89,_0x344a1f-0x3f);}function _0x43a5cb(_0x75ad1d,_0x5bb87a,_0x22be33,_0x1ad4cc){return _0x521c92(_0x75ad1d-0xda,_0x75ad1d,_0x22be33-0x183,_0x1ad4cc-_0x1bc247._0x5ca65d);}const _0x41a195=_0x5714ef;return _0x41a195[_0x55da33(-0xd0,-_0x483141._0x32ac6a,0xd2,-0x87)]==='image'&&_0x41a195[_0x55da33(0x63,-0x51,-0x20,-_0x483141._0x563451)]?.[_0x43a5cb(_0x483141._0x3fc687,_0x483141._0x60ae77,0xfe,0xa2)]==='base64'&&typeof _0x41a195[_0x55da33(_0x483141._0x4c4fae,-_0x483141._0xe2f4b8,0x5a,0x3e)][_0x43a5cb(-_0x483141._0x8a9a84,0x1f,-_0x483141._0x25c723,0x79)]===_0x43a5cb(0x5,_0x483141._0xe265d,0x26,_0x483141._0x4b8a1a)&&typeof _0x41a195['source'][_0x43a5cb(_0x483141._0x3b73d5,0x59,0x12c,0xcb)]===_0x43a5cb(-_0x483141._0x12a4fa,0x106,_0x483141._0x3cfb58,_0x483141._0x4b8a1a);}function getToolResultText(_0x21283f){const _0x2ee1cb={_0x1dc7d0:0x1e6,_0x11e383:0x2c6,_0x1b7ae6:0x1fc,_0x4ab222:0x132,_0x552d57:0x12a,_0xbd4d01:0x1d2,_0x40d5ca:0x2c8,_0x48087e:0x28e,_0x79b25:0x241,_0xa3f846:0x2eb,_0x5cbd16:0x135,_0x5d5345:0xed,_0x310019:0x120},_0x2aeb8d={_0x3f850f:0x4f,_0x3b3586:0xa1,_0x5dc5a4:0x1d6},_0xb312c8={_0x45e8c1:0x18e,_0x330cc8:0x1f2},_0x53946a={_0x10f2c9:0x38a,_0x5071cb:0x531,_0x15151a:0x53b,_0x1ba43d:0x3},_0x5a32a9={_0x44f77d:0xc9,_0x3c6927:0x3c},_0x3f6396={_0x1ab0e0:0x373,_0x45ada8:0x163};if(typeof _0x21283f===_0x4b5357(_0x2ee1cb._0x1dc7d0,_0x2ee1cb._0x11e383,_0x2ee1cb._0x1b7ae6,0x204))return _0x21283f;const _0x27b10f=_0x21283f[_0x119552(_0x2ee1cb._0x4ab222,0x1f9,_0x2ee1cb._0x552d57,_0x2ee1cb._0xbd4d01)](_0x56b272=>{function _0x196a0f(_0x612f70,_0x2a516e,_0x345eb5,_0xe22c84){return _0x4b5357(_0x612f70-_0x3f6396._0x1ab0e0,_0x2a516e-_0x3f6396._0x45ada8,_0x345eb5-0x12c,_0x2a516e);}function _0x35bdc0(_0x116acc,_0x48c50b,_0x3e3000,_0x4d4d2e){return _0x4b5357(_0x4d4d2e- -0x116,_0x48c50b-_0x5a32a9._0x44f77d,_0x3e3000-_0x5a32a9._0x3c6927,_0x116acc);}return typeof _0x56b272===_0x196a0f(0x443,0x379,_0x53946a._0x10f2c9,0x47e)&&_0x56b272!==null&&_0x56b272[_0x196a0f(0x51b,0x4e5,_0x53946a._0x5071cb,_0x53946a._0x15151a)]===_0x35bdc0(0x176,0x4f,_0x53946a._0x1ba43d,0xc7);})[_0x119552(0x166,0x22c,0x198,0x181)](_0x3afbdc=>_0x3afbdc[_0x4b5357(0x1dd,0x15e,0x229,0x2ba)])['join']('\x0a\x0a')[_0x119552(0x319,_0x2ee1cb._0x40d5ca,_0x2ee1cb._0x48087e,0x347)]();function _0x4b5357(_0x5ec8fe,_0xab3807,_0x2cd5c1,_0x2c5db6){return _0x3adc1d(_0x5ec8fe-_0xb312c8._0x45e8c1,_0x2c5db6,_0x2cd5c1-0xc9,_0x5ec8fe-_0xb312c8._0x330cc8);}function _0x119552(_0x5589d4,_0x5830d5,_0x10aebf,_0x4a53d0){return _0x521c92(_0x5589d4-_0x2aeb8d._0x3f850f,_0x5589d4,_0x10aebf-_0x2aeb8d._0x3b3586,_0x10aebf-_0x2aeb8d._0x5dc5a4);}return _0x27b10f[_0x4b5357(_0x2ee1cb._0x79b25,0x185,_0x2ee1cb._0xa3f846,0x30d)]>0x0?_0x27b10f:_0x4b5357(0x1d0,_0x2ee1cb._0x5cbd16,_0x2ee1cb._0x5d5345,_0x2ee1cb._0x310019);}function getToolResultImages(_0x7930eb){const _0x16f161={_0xf9772:0xb7,_0x111844:0x1a1,_0x677c21:0x7f},_0x219df9={_0x199090:0x8e,_0xca901f:0x154},_0x4d3b6e={_0x3bf405:0x94};function _0x1cf0ad(_0x1916a2,_0x15b6a1,_0x2e887f,_0x1b9cfe){return _0x521c92(_0x1916a2-_0x4d3b6e._0x3bf405,_0x1b9cfe,_0x2e887f-0xf4,_0x2e887f-0x2d);}function _0x3cf995(_0x4bf83,_0x29d29f,_0x2d39f5,_0x245fbb){return _0x3adc1d(_0x4bf83-0xe,_0x4bf83,_0x2d39f5-_0x219df9._0x199090,_0x245fbb-_0x219df9._0xca901f);}return Array[_0x1cf0ad(0x1a3,_0x16f161._0xf9772,0xc5,_0x16f161._0x111844)](_0x7930eb)?_0x7930eb[_0x1cf0ad(-0xed,0x10,-_0x16f161._0x677c21,0x5b)](isImageToolResultBlock):[];}function parseToolInput2(_0x2f1423){const _0x628aaa={_0x114728:0x639},_0x369dad={_0x33b898:0x5c2};function _0x5758da(_0x35a0bb,_0x39f75d,_0x9af6ec,_0x55e835){return _0x3adc1d(_0x35a0bb-0xae,_0x55e835,_0x9af6ec-0x130,_0x9af6ec-_0x369dad._0x33b898);}if(_0x2f1423[_0x5758da(0x614,0x61f,0x611,_0x628aaa._0x114728)]===0x0)return{};try{return JSON['parse'](_0x2f1423);}catch{return _0x2f1423;}}function isResponsesReasoningItem(_0x37fa06){const _0x445fff={_0x40bf19:0x39a,_0x1f7c24:0x3ae,_0x2c964b:0x39e,_0x384968:0x387},_0x458819={_0x26f21c:0xa0,_0x50d0f5:0x3e4},_0x4b447b={_0x1b5421:0x1a2,_0x52e744:0x1c0};function _0x58ab53(_0x2e20e7,_0x44ea97,_0x36fa48,_0x2f205b){return _0x3adc1d(_0x2e20e7-_0x4b447b._0x1b5421,_0x2f205b,_0x36fa48-_0x4b447b._0x52e744,_0x44ea97-0x23c);}function _0x4ce29e(_0x139856,_0x36a6b2,_0x219024,_0x4ce837){return _0x3adc1d(_0x139856-_0x458819._0x26f21c,_0x219024,_0x219024-0xc1,_0x139856-_0x458819._0x50d0f5);}return typeof _0x37fa06==='object'&&_0x37fa06!==null&&_0x4ce29e(_0x445fff._0x40bf19,0x410,0x34a,_0x445fff._0x1f7c24)in _0x37fa06&&_0x37fa06['type']===_0x4ce29e(0x448,_0x445fff._0x2c964b,0x52f,_0x445fff._0x384968);}function isResponsesMessageItem(_0x3ea71c){const _0x215810={_0x101c87:0x209,_0x1802a8:0x28f,_0x403ccd:0x2ef,_0x5bf5b8:0x223,_0x49c22c:0x3cf,_0x5ccc7f:0x2e1,_0xa8dd79:0x2fc,_0x4d3612:0x330,_0x1b947d:0x323},_0x4a2d33={_0x186356:0x8f},_0x246b79={_0x39bcaa:0x1be};function _0xdf9a79(_0x317658,_0x25240c,_0x481936,_0x3509c3){return _0x521c92(_0x317658-0xd,_0x25240c,_0x481936-_0x246b79._0x39bcaa,_0x3509c3-0x211);}function _0x26d1bf(_0x3581b1,_0x4c2e3b,_0xaf2803,_0x120af3){return _0x521c92(_0x3581b1-_0x4a2d33._0x186356,_0xaf2803,_0xaf2803-0x151,_0x120af3-0x2cf);}return typeof _0x3ea71c===_0x26d1bf(0x2db,0x2ba,0x140,_0x215810._0x101c87)&&_0x3ea71c!==null&&_0xdf9a79(_0x215810._0x1802a8,_0x215810._0x403ccd,0x169,_0x215810._0x5bf5b8)in _0x3ea71c&&_0x3ea71c[_0x26d1bf(0x387,0x28f,_0x215810._0x49c22c,_0x215810._0x5ccc7f)]===_0x26d1bf(_0x215810._0xa8dd79,_0x215810._0x4d3612,0x3ff,_0x215810._0x1b947d);}function isResponsesFunctionCallItem(_0x53c519){const _0x356fce={_0x5c54a1:0x249,_0x488374:0xf,_0x40ce8b:0xbb,_0x56f9ee:0xee,_0x4a4f03:0xf,_0x29ef60:0x79,_0x21b854:0x89},_0x518f38={_0x35e5ca:0x141},_0x4f2f9e={_0x26dbea:0xbf,_0x23a3c1:0x19,_0xa38a02:0x21};function _0x5168f2(_0x462608,_0x2b1510,_0x43cea2,_0x3f8b66){return _0x521c92(_0x462608-_0x4f2f9e._0x26dbea,_0x3f8b66,_0x43cea2-_0x4f2f9e._0x23a3c1,_0x462608- -_0x4f2f9e._0xa38a02);}function _0x590118(_0x209dc4,_0x1cb292,_0xced2c7,_0x39bb01){return _0x3adc1d(_0x209dc4-0x171,_0x209dc4,_0xced2c7-_0x518f38._0x35e5ca,_0x39bb01-0x28b);}return typeof _0x53c519===_0x590118(0x8b,_0x356fce._0x5c54a1,0x1dc,0x169)&&_0x53c519!==null&&_0x5168f2(-_0x356fce._0x488374,-0xcb,-_0x356fce._0x40ce8b,-_0x356fce._0x56f9ee)in _0x53c519&&_0x53c519[_0x5168f2(-_0x356fce._0x4a4f03,-_0x356fce._0x29ef60,0x74,_0x356fce._0x21b854)]==='function_call';}function createContentBlocks(_0x3ce2cf,_0x135292,_0x3c6e47){const _0x4b7003={_0x36dc2d:0xf3,_0x5d2fe6:0xc9,_0xbf76a0:0x1c,_0x45368a:0x53,_0x1e4f0e:0x23c,_0x7c4fcc:0x15b,_0x50e2ae:0x1b7,_0x3c44d6:0x132,_0x53b036:0x1b7,_0xe5836f:0x89,_0x41451c:0x6a,_0x2cd720:0x106,_0x27baea:0x100,_0x4327a6:0xab,_0x5225bd:0x131,_0x5d7c86:0xeb,_0x2a5f21:0x57,_0x125f7a:0x39,_0x2edd62:0x35,_0x21a567:0x8b,_0x54d021:0x11a,_0xefba3:0xe8,_0x2692a8:0x224,_0x435906:0x123,_0x5bfcf0:0x11f,_0x3713c2:0xaa,_0x533e44:0x18,_0x3e364d:0x7b,_0x52d2d3:0x36},_0x4989be={_0x5dab53:0x5c},_0x5bf87c={_0xa4fbc1:0x16,_0x2a207a:0x10c};function _0xe03503(_0x6bd079,_0x4361c6,_0x19e316,_0x208698){return _0x521c92(_0x6bd079-0x98,_0x19e316,_0x19e316-_0x5bf87c._0xa4fbc1,_0x208698-_0x5bf87c._0x2a207a);}const _0x300ba9=[];_0x3c6e47&&_0x3c6e47[_0xe03503(_0x4b7003._0x36dc2d,0x278,0x148,0x1b7)]>0x0&&_0x300ba9[_0x3dadf3(-0xeb,-0xf1,-0x4b,-_0x4b7003._0x5d2fe6)]({'type':_0xe03503(_0x4b7003._0xbf76a0,-_0x4b7003._0x45368a,0x15b,0x92),'summary':[],'text':_0x3c6e47});function _0x3dadf3(_0x32fcc9,_0xf8e1f0,_0x311b10,_0x33abc6){return _0x3adc1d(_0x32fcc9-0x14b,_0x311b10,_0x311b10-0x2,_0x32fcc9-_0x4989be._0x5dab53);}_0x3ce2cf[_0xe03503(0x15c,_0x4b7003._0x1e4f0e,_0x4b7003._0x7c4fcc,_0x4b7003._0x50e2ae)]>0x0&&_0x300ba9['push']({'type':'text','text':_0x3ce2cf});for(const _0x49cd13 of _0x135292){if(_0x49cd13['id']['trim']()[_0xe03503(0x115,0x1c3,_0x4b7003._0x3c44d6,_0x4b7003._0x53b036)]===0x0||_0x49cd13[_0x3dadf3(-_0x4b7003._0xe5836f,-0xc9,-_0x4b7003._0x41451c,-0x5)]['name'][_0x3dadf3(0xb8,_0x4b7003._0x2cd720,0x89,_0x4b7003._0x27baea)]()[_0x3dadf3(_0x4b7003._0x4327a6,-0x2,0x198,_0x4b7003._0x5225bd)]===0x0)continue;_0x300ba9[_0x3dadf3(-_0x4b7003._0x5d7c86,-_0x4b7003._0x2a5f21,-_0x4b7003._0x125f7a,-0x9e)]({'type':_0x3dadf3(0xac,-_0x4b7003._0x2edd62,_0x4b7003._0x21a567,_0x4b7003._0x54d021),'id':_0x49cd13['id'],'name':_0x49cd13[_0x3dadf3(-0x89,-_0x4b7003._0xefba3,-0x5b,-0x1e)][_0xe03503(_0x4b7003._0x2692a8,0x1f5,0x21e,0x189)],'input':parseToolInput2(_0x49cd13[_0x3dadf3(-0x89,-_0x4b7003._0x435906,-_0x4b7003._0x5bfcf0,-_0x4b7003._0x3713c2)][_0xe03503(-_0x4b7003._0x533e44,_0x4b7003._0x3e364d,-0x3,_0x4b7003._0x52d2d3)])});}return _0x300ba9;}function createUsage(_0x3d97ec){const _0x206513={_0x25815d:0x19c,_0x270a66:0xac,_0x385c7a:0x19,_0x463321:0xe9,_0x2a22b5:0x4e,_0x42d03c:0x11c,_0x19f2a3:0x25,_0x45daaf:0xc8,_0x41f800:0x52},_0x78124d={_0x48a65c:0x78},_0x34c378={_0x134565:0x3a,_0x2b8af5:0x194,_0x2e3926:0x195};function _0xa22630(_0x32eb74,_0x21acda,_0x115d64,_0x5cba19){return _0x521c92(_0x32eb74-_0x34c378._0x134565,_0x21acda,_0x115d64-_0x34c378._0x2b8af5,_0x115d64-_0x34c378._0x2e3926);}function _0xc9b4f1(_0x212e72,_0x11fb1f,_0x5321e9,_0x29745c){return _0x521c92(_0x212e72-0x1d3,_0x5321e9,_0x5321e9-_0x78124d._0x48a65c,_0x212e72-0x6a);}return{'inputTokens':_0x3d97ec?.[_0xa22630(_0x206513._0x25815d,0x35,_0x206513._0x270a66,-_0x206513._0x385c7a)]??0x0,'outputTokens':_0x3d97ec?.[_0xc9b4f1(_0x206513._0x463321,_0x206513._0x2a22b5,_0x206513._0x42d03c,_0x206513._0x19f2a3)]??0x0,..._0x3d97ec?.[_0xa22630(0xa9,0xd6,0x169,0x193)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x3d97ec['completion_tokens_details'][_0xc9b4f1(_0x206513._0x45daaf,0x66,0xda,_0x206513._0x41f800)]}:{}};}function resolveReasoningVisibility2(_0x22ed2d){const _0x18d87d={_0x1f84de:0x5cf,_0x3008fc:0x138,_0x2b3269:0x6e},_0x1b968b={_0x329398:0x170};function _0x591883(_0x46b536,_0x5402e6,_0x75671f,_0xe46704){return _0x521c92(_0x46b536-0x31,_0x5402e6,_0x75671f-_0x1b968b._0x329398,_0x46b536-0x50f);}function _0x46f577(_0xb5c9c3,_0x2bd4b2,_0xb11d8a,_0x469d1f){return _0x521c92(_0xb5c9c3-0x1b0,_0x2bd4b2,_0xb11d8a-0x1c2,_0x469d1f-0x53);}return _0x22ed2d[_0x591883(_0x18d87d._0x1f84de,0x599,0x66e,0x5be)]?.['visibility']??_0x46f577(-0xa7,-0xe0,-_0x18d87d._0x3008fc,-_0x18d87d._0x2b3269);}function isUserVisibleReasoning(_0x7bba5d){const _0x196098={_0x20eb81:0x33f,_0x53aa5c:0x317},_0x5ca59c={_0x14fb36:0x30a};function _0x315c5f(_0x517881,_0x4ff0d9,_0x4221ee,_0x20f26c){return _0x3adc1d(_0x517881-0x1ee,_0x517881,_0x4221ee-0x88,_0x4ff0d9-_0x5ca59c._0x14fb36);}return resolveOpenAiReasoningConfig(_0x7bba5d[_0x315c5f(_0x196098._0x20eb81,0x36e,0x3b7,_0x196098._0x53aa5c)])!==void 0x0&&resolveReasoningVisibility2(_0x7bba5d)==='user-visible';}function createChatRequestBody(_0x470357,_0x53e623){const _0x1c1736={_0xae1852:0xb7,_0x1425e0:0x157,_0x1c4ed7:0x16f,_0x2b41d1:0x185,_0xfb1da6:0x1e6,_0x4b796a:0x7c,_0x4d780e:0x13,_0x4b4de2:0x1af,_0x5337fe:0xd2,_0x417171:0x2b,_0x327ef2:0xf1,_0xfe81bd:0x3c,_0x8a31b9:0x39,_0xe8e9b2:0x96,_0x3a8627:0x147,_0x599842:0xe4,_0x1c823d:0xda,_0x32cb00:0x124,_0xcc90d9:0x7b,_0x22ef30:0x24,_0x619164:0x139,_0x47b6d8:0x13d,_0x460ae8:0x183,_0x348708:0x1c1,_0x230bf2:0xfe,_0x4cd650:0x18f,_0x7c61aa:0xbe,_0x119a41:0x23,_0x3bf7a1:0x72,_0x57abed:0x46,_0x1d2a84:0xdd,_0x13f1c2:0x172,_0x15d510:0x127,_0x5a56e2:0x41,_0x65aa06:0xcc,_0x208797:0xdf,_0x5618fb:0xa1,_0x3ad2a5:0x62,_0x3d2f1c:0x10f,_0x3b6d69:0x141,_0x4e4bf7:0x1b2,_0x42e49d:0x68,_0xf78ce2:0x59,_0x4b52c1:0x10f,_0x16de92:0x1ac,_0x3941ee:0xd1,_0x3527f3:0x83,_0x35f38c:0x18c,_0x183780:0x26c,_0x54346e:0x169,_0x128a7b:0xda,_0x3368c6:0x9,_0x4fff90:0x13,_0x46bc83:0x238,_0x4f5d54:0x160,_0x122b24:0x26,_0x376a89:0x34,_0x1a40c4:0xd1,_0x197542:0xfe,_0x2a582e:0xb5,_0x44f7fc:0x84,_0x2edf0c:0x7e,_0x25e633:0x8d,_0x50d167:0x1b8,_0x11d703:0xeb,_0x47b71f:0x175,_0x313b3e:0x111,_0x5eb88e:0x2,_0x46657e:0xca,_0x6877c9:0x45,_0x536c35:0x8e,_0x237eeb:0x19,_0xa69210:0xfd,_0x1828f6:0x43,_0x4ecf9a:0x3e,_0x1e0622:0x199,_0x17ff65:0x15a,_0x3d8184:0x1c7,_0x24d2eb:0x61},_0x2ccb65={_0x2f23e5:0xd0,_0x4a1ccc:0x27,_0x79cd2c:0x89,_0x1370a6:0x147,_0x22bccd:0x10d,_0x27f440:0x10e,_0x5771f2:0x18,_0x4b2dd6:0x77,_0x1f219c:0x8c,_0x36ec96:0x2c,_0x1cab40:0x25,_0x52bc06:0xad,_0x48ebac:0x21,_0x4a6879:0x31,_0x3d8a35:0x169,_0x225122:0x130,_0x39e8b1:0xf,_0x1e5c81:0x9a,_0x530072:0xcd,_0x32fb66:0x15f,_0x570a8d:0xd6,_0x30bb3f:0x16e,_0x5e4b01:0x137,_0x2e22bc:0x1aa,_0x409817:0xce,_0xb8272e:0x23,_0x5a8540:0xce,_0x2af28c:0x33,_0x2f69b6:0x60,_0x227d48:0x34,_0x1b769a:0x25,_0x16cff6:0xe,_0x215734:0xe6,_0x2c21d8:0x177,_0x19ed0f:0xcc,_0x36a69a:0x122,_0x1837a7:0x1a5,_0x2c84ed:0x19e,_0x510043:0x266,_0x267db0:0xf1,_0x3d520c:0x1a2},_0x38bf4a={_0x43bded:0x6d},_0x14cd6d={_0x10aef4:0x1c1};function _0x242398(_0x1fcf11,_0x43f1ec,_0x26a077,_0x38fc37){return _0x521c92(_0x1fcf11-_0x14cd6d._0x10aef4,_0x38fc37,_0x26a077-0x17f,_0x26a077-0x115);}function _0x916303(_0x86c918,_0x400511,_0x5e0f8d,_0x3a090f){return _0x3adc1d(_0x86c918-0x180,_0x86c918,_0x5e0f8d-0x24,_0x400511-_0x38bf4a._0x43bded);}const _0x526d42=[],_0x1417b4=stringifySystem(_0x470357[_0x242398(0x67,0x150,_0x1c1736._0xae1852,_0x1c1736._0x1425e0)]);_0x1417b4[_0x242398(0x1d2,_0x1c1736._0x1c4ed7,0x1c0,0x1bf)]>0x0&&_0x526d42['push']({'role':_0x916303(0x4f,-0x4d,0x44,-0x11b),'content':_0x1417b4});for(const _0x3a51e3 of _0x470357['messages']){const _0x313e09=[],_0x279d1d=[],_0x4e4d07=[],_0x159059=()=>{const _0x55bd11={_0x3c53d2:0x120},_0xf45b42={_0x5ee930:0x7,_0x3880d3:0x137};if(_0x3a51e3['role']===_0x584892(_0x2ccb65._0x2f23e5,0x198,0x15,0x11c)){if(_0x313e09['length']===0x0&&_0x279d1d[_0x36d819(_0x2ccb65._0x4a1ccc,_0x2ccb65._0x79cd2c,_0x2ccb65._0x1370a6,0xa0)]===0x0)return;_0x526d42[_0x36d819(-0x46,-_0x2ccb65._0x22bccd,-_0x2ccb65._0x27f440,-0x146)]({'role':_0x36d819(-0xb6,-0x45,-_0x2ccb65._0x5771f2,_0x2ccb65._0x4b2dd6),'content':_0x313e09[_0x36d819(0x139,0x89,_0x2ccb65._0x1f219c,-_0x2ccb65._0x36ec96)]>0x0?_0x313e09[_0x584892(_0x2ccb65._0x1cab40,0x39,_0x2ccb65._0x52bc06,-0x34)]('\x0a\x0a'):null,..._0x279d1d[_0x36d819(_0x2ccb65._0x48ebac,0x89,0x84,_0x2ccb65._0x4a6879)]>0x0?{'tool_calls':_0x279d1d['splice'](0x0)}:{}}),_0x313e09[_0x36d819(-0x9,_0x2ccb65._0x79cd2c,_0x2ccb65._0x3d8a35,_0x2ccb65._0x225122)]=0x0;return;}if(_0x3a51e3[_0x584892(-_0x2ccb65._0x39e8b1,-_0x2ccb65._0x1e5c81,0xaf,_0x2ccb65._0x530072)]==='user'){if(_0x4e4d07[_0x36d819(_0x2ccb65._0x32fb66,0x89,_0x2ccb65._0x570a8d,-0x1f)]===0x0)return;const _0x44d8f4=_0x4e4d07['some'](_0x582930=>_0x582930[_0x36d819(-0x83,-0x10,-0xb7,-0x58)]===_0x584892(0x196,0x12f,0x1e8,0x13e));_0x526d42['push']({'role':'user','content':_0x44d8f4?_0x4e4d07[_0x584892(0x137,_0x2ccb65._0x30bb3f,0x1b7,0x6c)](0x0):_0x4e4d07[_0x584892(_0x2ccb65._0x5e4b01,_0x2ccb65._0x2e22bc,_0x2ccb65._0x409817,0x13c)](0x0)[_0x36d819(-_0x2ccb65._0xb8272e,-_0x2ccb65._0x5a8540,-0x127,0x22)](_0x588685=>_0x588685['type']===_0x36d819(-0x63,0x25,-0x19,-0x4b))[_0x36d819(_0x2ccb65._0x2af28c,-_0x2ccb65._0x2f69b6,-0xb2,-_0x2ccb65._0x227d48)](_0x571111=>_0x571111['text'])[_0x584892(_0x2ccb65._0x1b769a,-_0x2ccb65._0x16cff6,0x8a,_0x2ccb65._0x215734)]('\x0a\x0a')});return;}if(_0x313e09[_0x36d819(_0x2ccb65._0x2c21d8,0x89,-0x8,_0x2ccb65._0x19ed0f)]===0x0)return;function _0x36d819(_0x49a155,_0x275174,_0x149a9c,_0x4825a2){return _0x242398(_0x49a155-_0xf45b42._0x5ee930,_0x275174-0xcc,_0x275174- -_0xf45b42._0x3880d3,_0x149a9c);}_0x526d42[_0x36d819(-0xc0,-0x10d,-0x121,-0x1d5)]({'role':_0x3a51e3[_0x36d819(-_0x2ccb65._0x36a69a,-0x124,-_0x2ccb65._0x1837a7,-0xd0)],'content':_0x313e09['join']('\x0a\x0a')});function _0x584892(_0x1be693,_0x34abf1,_0x36b23e,_0x456b46){return _0x916303(_0x36b23e,_0x1be693-0xe2,_0x36b23e-0x0,_0x456b46-_0x55bd11._0x3c53d2);}_0x313e09[_0x584892(_0x2ccb65._0x2c84ed,_0x2ccb65._0x510043,_0x2ccb65._0x267db0,_0x2ccb65._0x3d520c)]=0x0;};for(const _0x4314fc of normalizeContent(_0x3a51e3[_0x916303(-0x18c,-0xd1,-_0x1c1736._0x2b41d1,-0x28)])){if(_0x4314fc['type']===_0x242398(_0x1c1736._0xfb1da6,0x121,0x15c,0x1d2)){_0x3a51e3[_0x242398(_0x1c1736._0x4b796a,0xb1,_0x1c1736._0x4d780e,-0x1a)]===_0x242398(0x1e5,0xfd,_0x1c1736._0x4b4de2,_0x1c1736._0x5337fe)?_0x4e4d07[_0x242398(-0xa5,-_0x1c1736._0x417171,0x2a,_0x1c1736._0x327ef2)]({'type':_0x916303(0xb3,0x58,_0x1c1736._0xfe81bd,_0x1c1736._0x8a31b9),'text':_0x4314fc['text']}):_0x313e09['push'](_0x4314fc[_0x916303(_0x1c1736._0xe8e9b2,0x58,_0x1c1736._0x3a8627,_0x1c1736._0x599842)]);continue;}if(_0x3a51e3[_0x916303(-_0x1c1736._0x1c823d,-_0x1c1736._0x327ef2,-0xaa,-_0x1c1736._0x32cb00)]==='user'&&_0x4314fc[_0x916303(0x24,0x23,-_0x1c1736._0xcc90d9,-_0x1c1736._0x22ef30)]==='image'){_0x4e4d07[_0x916303(-0x173,-0xda,-_0x1c1736._0x619164,-_0x1c1736._0x47b6d8)]({'type':'image_url','image_url':{'url':_0x242398(0x1ab,0xd8,0x140,_0x1c1736._0x460ae8)+_0x4314fc['source'][_0x242398(_0x1c1736._0x348708,0xbb,_0x1c1736._0x230bf2,0x49)]+_0x242398(_0x1c1736._0x4cd650,0x60,_0x1c1736._0x7c61aa,0xe5)+_0x4314fc[_0x916303(0x51,-_0x1c1736._0x119a41,-0x2b,_0x1c1736._0x3bf7a1)][_0x916303(_0x1c1736._0x57abed,0x4c,0x79,_0x1c1736._0x1d2a84)]}});continue;}if(_0x4314fc[_0x242398(_0x1c1736._0x13f1c2,0x1ef,_0x1c1736._0x15d510,_0x1c1736._0x5a56e2)]===_0x916303(0xfa,0xbd,0xb3,_0x1c1736._0x65aa06)){_0x279d1d['push']({'id':_0x4314fc['id'],'type':'function','function':{'name':_0x4314fc[_0x242398(_0x1c1736._0x208797,0x1a3,0x192,0x108)],'arguments':JSON[_0x916303(-0xb2,-_0x1c1736._0x5618fb,-_0x1c1736._0x3ad2a5,-0x70)](_0x4314fc[_0x916303(0xd1,0x54,_0x1c1736._0x3d2f1c,_0x1c1736._0x3b6d69)]??{})}});continue;}if(_0x4314fc[_0x242398(_0x1c1736._0x4e4bf7,0x1d3,0x127,0x11d)]!=='tool_result')continue;_0x159059(),_0x526d42[_0x916303(-_0x1c1736._0x1c4ed7,-0xda,-_0x1c1736._0x42e49d,-_0x1c1736._0xf78ce2)]({'role':_0x242398(0x180,0x88,0xca,0x6),'content':getToolResultText(_0x4314fc[_0x242398(0x7c,-0xab,0x33,-0xa5)]),'tool_call_id':_0x4314fc[_0x916303(0x65,0xa5,-0x10,_0x1c1736._0x4b52c1)]});const _0x463485=getToolResultImages(_0x4314fc[_0x916303(-_0x1c1736._0x16de92,-_0x1c1736._0x3941ee,-_0x1c1736._0x3527f3,-0x4c)]);_0x463485[_0x242398(0x26b,_0x1c1736._0x35f38c,0x1c0,_0x1c1736._0x183780)]>0x0&&_0x526d42[_0x916303(-_0x1c1736._0x54346e,-_0x1c1736._0x128a7b,_0x1c1736._0x3368c6,-_0x1c1736._0x4fff90)]({'role':_0x242398(_0x1c1736._0x46bc83,_0x1c1736._0x4f5d54,_0x1c1736._0x4b4de2,0x22c),'content':[{'type':_0x242398(0x1fb,0x184,0x15c,0x131),'text':_0x916303(0x110,_0x1c1736._0x122b24,-0x97,0xa2)+_0x4314fc['tool_use_id']+'.'},..._0x463485[_0x242398(0x14e,_0x1c1736._0x376a89,0xd7,0x1ac)](_0x7bd453=>({'type':'image_url','image_url':{'url':_0x242398(0x1c2,0x1b8,0x140,0xf8)+_0x7bd453[_0x916303(-0xa,-0x23,-0xcb,-0xe6)][_0x916303(-0x63,-0x6,0xd7,-0xa4)]+_0x916303(-0xe9,-0x46,-0x9b,-0x36)+_0x7bd453[_0x242398(0x13c,0x1a9,0xe1,0x19c)]['data']}}))]});}_0x159059();}const _0x55cb53=resolveOpenAiReasoningConfig(_0x470357[_0x916303(0x8d,_0x1c1736._0x1a40c4,_0x1c1736._0x197542,0x110)]);return{'model':_0x470357[_0x242398(_0x1c1736._0x2a582e,0x155,_0x1c1736._0x44f7fc,0x13c)],'messages':_0x526d42,'stream':_0x53e623,..._0x55cb53?{'max_completion_tokens':_0x470357['maxTokens']}:{'max_tokens':_0x470357[_0x916303(-_0x1c1736._0x1d2a84,-0xab,-_0x1c1736._0x2edf0c,0x33)]},..._0x55cb53?.['effort']?{'reasoning_effort':_0x55cb53[_0x242398(_0x1c1736._0x25e633,_0x1c1736._0x50d167,0x11a,_0x1c1736._0x11d703)]}:{},...createToolDefinitions(_0x470357[_0x242398(0x21a,0x139,_0x1c1736._0x47b71f,_0x1c1736._0x313b3e)])?{'tools':createToolDefinitions(_0x470357['tools'])}:{},..._0x470357[_0x242398(_0x1c1736._0x5eb88e,_0x1c1736._0x46657e,0x61,-0x67)]?{'response_format':{'type':_0x916303(-0xcd,-0x8,-_0x1c1736._0x6877c9,-0xd9),'json_schema':{'name':_0x470357['outputFormat'][_0x916303(0x50,_0x1c1736._0x536c35,_0x1c1736._0x237eeb,0x10b)]??_0x242398(0x101,0x185,0xbb,_0x1c1736._0xa69210),'schema':_0x470357[_0x242398(-0x13,-_0x1c1736._0x1828f6,0x61,_0x1c1736._0x4ecf9a)][_0x242398(_0x1c1736._0x1e0622,0x218,_0x1c1736._0x17ff65,_0x1c1736._0x3d8184)],'strict':_0x470357[_0x242398(-0x15,-_0x1c1736._0x24d2eb,_0x1c1736._0x24d2eb,_0x1c1736._0xf78ce2)][_0x916303(-0x88,-0x8d,-0xfa,-0x28)]??!![]}}}:{}};}function createResponsesRequestBody(_0x4ca7be,_0x3bb931){return{...toOpenAiResponsesRequest(_0x4ca7be),..._0x3bb931?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0xb109be,_0x571e3a={}){const _0xcaaa58={_0x4a7df7:0x1b,_0x39ab0d:0xdf,_0xf1c554:0x558,_0x1b308a:0x528,_0x2395de:0x3ec},_0x19b4bd={_0x25d9e8:0x515};function _0x107274(_0x21d699,_0x2eb669,_0x2d817f,_0x1429f6){return _0x521c92(_0x21d699-0x47,_0x1429f6,_0x2d817f-0x21,_0x21d699-_0x19b4bd._0x25d9e8);}const _0x5970fa=toOpenAiResponsesRequest(_0xb109be);function _0x5ec2d5(_0x4fcc81,_0x15c87a,_0xc51723,_0x293b0e){return _0x3adc1d(_0x4fcc81-0x153,_0xc51723,_0xc51723-0x166,_0x293b0e-0xf8);}return{'type':'response.create',..._0x5970fa,..._0x571e3a[_0x5ec2d5(0xb0,-0x2,_0xcaaa58._0x4a7df7,_0xcaaa58._0x39ab0d)]?{'input':_0x571e3a[_0x107274(_0xcaaa58._0xf1c554,0x527,_0xcaaa58._0x1b308a,0x606)]}:{},..._0x571e3a['previousResponseId']?{'previous_response_id':_0x571e3a[_0x107274(0x489,_0xcaaa58._0x2395de,0x4c1,0x465)]}:{},'store':![]};}function normalizeAssistantContent(_0x38d3c3){const _0x28c0a8={_0x1810d9:0x3cc,_0x40373d:0x28f,_0x2171c8:0x3c3,_0x2dc327:0x392,_0x346f8a:0x396,_0x181a5a:0x451},_0x34c87c={_0x2e45d7:0x49d,_0x46d678:0x19f,_0x7aa61d:0x1ac,_0x2761ac:0x173,_0x20715f:0x1ce,_0x190330:0x167,_0x1e4ea2:0x16d},_0x3b8d36={_0x31415f:0xad},_0x418c00={_0x2271ce:0x123};function _0x1cca9f(_0x1a2beb,_0x8d3fcc,_0x526523,_0x470a85){return _0x521c92(_0x1a2beb-0x1cd,_0x526523,_0x526523-0x16c,_0x1a2beb-0x240);}if(typeof _0x38d3c3===_0x1679dd(0x542,0x4a2,_0x28c0a8._0x1810d9,0x467))return _0x38d3c3;function _0x1679dd(_0x613755,_0x5e06bf,_0x3b6154,_0x4b69ad){return _0x3adc1d(_0x613755-_0x418c00._0x2271ce,_0x613755,_0x3b6154-0x1a7,_0x4b69ad-0x473);}if(!Array[_0x1cca9f(0x2d8,_0x28c0a8._0x40373d,_0x28c0a8._0x2171c8,0x3ba)](_0x38d3c3))return'';return _0x38d3c3[_0x1679dd(_0x28c0a8._0x2dc327,_0x28c0a8._0x346f8a,_0x28c0a8._0x181a5a,0x3d9)](_0x1ca9a3=>{const _0x6e2ad3={_0x12a23f:0x87,_0x434a3a:0x128,_0xf44230:0xe4};function _0x184895(_0xa67800,_0x482ab2,_0x9c259c,_0x370509){return _0x1cca9f(_0x482ab2- -0x433,_0x482ab2-_0x3b8d36._0x31415f,_0xa67800,_0x370509-0x1b9);}function _0x1070d7(_0x2ff279,_0x6cf46a,_0x16fd47,_0x32c877){return _0x1679dd(_0x16fd47,_0x6cf46a-_0x6e2ad3._0x12a23f,_0x16fd47-_0x6e2ad3._0x434a3a,_0x32c877-_0x6e2ad3._0xf44230);}return _0x1ca9a3[_0x1070d7(_0x34c87c._0x2e45d7,0x518,0x53d,0x50d)]==='text'?_0x1ca9a3[_0x184895(-_0x34c87c._0x46d678,-_0x34c87c._0x7aa61d,-0x1a7,-_0x34c87c._0x2761ac)]:_0x1ca9a3[_0x184895(-_0x34c87c._0x20715f,-_0x34c87c._0x190330,-_0x34c87c._0x1e4ea2,-0x23c)];})[_0x1679dd(0x334,0x2a3,0x28a,0x349)]('');}function normalizeResponsesMessageContent(_0xc4e224){const _0x123bd3={_0x725b52:0x5fa,_0x58ea7a:0x6ab,_0x13ebf6:0x47c},_0x43f946={_0x5ae046:0x26f,_0x474c53:0x3e9,_0x1fb116:0x237,_0x5b620b:0x27a,_0x5cca70:0x210,_0xfc83d9:0x29c,_0xa64300:0xd1,_0x1b46d0:0x345,_0x751a30:0x261,_0x50b15c:0xe3,_0x2d2b71:0x1c2,_0x25edf2:0xdd,_0x5d779c:0x12a,_0x44c9db:0x79,_0x75b052:0x112,_0x2cca2f:0x381,_0x1a4ec:0x3d0,_0x2689d3:0x35a,_0x2110eb:0x3a4,_0x56e862:0x38f},_0x3d572f={_0x49a41c:0x5be},_0x2bbf6e={_0x86cbc8:0x8c,_0x30ccc2:0x7f,_0x56a3f5:0x3ac};if(!Array[_0x3900cc(0x67b,_0x123bd3._0x725b52,_0x123bd3._0x58ea7a,0x50a)](_0xc4e224))return'';function _0x22b40c(_0x4ff342,_0x37128c,_0x46f82a,_0x33132c){return _0x521c92(_0x4ff342-_0x2bbf6e._0x86cbc8,_0x37128c,_0x46f82a-_0x2bbf6e._0x30ccc2,_0x33132c-_0x2bbf6e._0x56a3f5);}function _0x3900cc(_0x27e854,_0x585ccc,_0x7b5adf,_0x313f3f){return _0x3adc1d(_0x27e854-0x15f,_0x313f3f,_0x7b5adf-0x14f,_0x585ccc-_0x3d572f._0x49a41c);}return _0xc4e224['map'](_0x3bdbda=>{const _0x335dd8={_0x3c6144:0x18e,_0x245e20:0x686},_0x5c3f52={_0x1ef17f:0x15d,_0x26b92a:0x12};function _0x4171ca(_0x43bb2e,_0x355bfb,_0x22331c,_0xe2459f){return _0x3900cc(_0x43bb2e-_0x5c3f52._0x1ef17f,_0x43bb2e- -0x26d,_0x22331c-_0x5c3f52._0x26b92a,_0x355bfb);}if(!_0x3bdbda||typeof _0x3bdbda!==_0xec2b59(-0x234,-_0x43f946._0x5ae046,-0x1ea,-0x299))return'';const _0x4a7af9=_0x3bdbda;if(_0x4a7af9[_0x4171ca(0x307,_0x43f946._0x474c53,_0x43f946._0x1fb116,0x3b6)]===_0x4171ca(_0x43f946._0x5b620b,_0x43f946._0x5cca70,_0x43f946._0xfc83d9,0x2e0)&&typeof _0x4a7af9[_0xec2b59(-0x16,-0x146,-0xdd,-_0x43f946._0xa64300)]===_0x4171ca(_0x43f946._0x1b46d0,_0x43f946._0x751a30,0x273,0x295))return _0x4a7af9[_0xec2b59(-_0x43f946._0x50b15c,-_0x43f946._0x2d2b71,-_0x43f946._0x25edf2,-0x59)];if(_0x4a7af9[_0xec2b59(-_0x43f946._0x5d779c,-_0x43f946._0x44c9db,-_0x43f946._0x75b052,-0x195)]===_0x4171ca(_0x43f946._0x2cca2f,_0x43f946._0x1a4ec,_0x43f946._0x2689d3,_0x43f946._0x2110eb)&&typeof _0x4a7af9[_0x4171ca(0x381,0x2b1,_0x43f946._0x56e862,0x389)]==='string')return _0x4a7af9['refusal'];function _0xec2b59(_0x47af5a,_0x287239,_0x591d1c,_0x2dd5bb){return _0x3900cc(_0x47af5a-_0x335dd8._0x3c6144,_0x591d1c- -_0x335dd8._0x245e20,_0x591d1c-0x174,_0x287239);}return'';})[_0x3900cc(_0x123bd3._0x13ebf6,0x494,0x46a,0x3eb)]('');}function extractOpenAiReasoningText(_0x450178){const _0xd6f0d2={_0x2ef23e:0x49f,_0x3c287b:0x4bc,_0x23ffb3:0xb5,_0x80b424:0x560,_0x5288e6:0x555,_0x366b7c:0x53e,_0x30000c:0x267,_0x55a363:0x34d,_0x2a85b1:0x216,_0x110443:0x43b,_0x3d7b27:0x4bb,_0x4cc519:0x3ee,_0x3e9a3b:0x448},_0xbd8bf5={_0xc57493:0x555};if(typeof _0x450178[_0xa9c815(0x588,_0xd6f0d2._0x2ef23e,0x540,_0xd6f0d2._0x3c287b)]===_0x38ec10(-0x230,-0x16b,-_0xd6f0d2._0x23ffb3,-0x91))return _0x450178[_0xa9c815(_0xd6f0d2._0x80b424,_0xd6f0d2._0x5288e6,0x540,_0xd6f0d2._0x366b7c)];if(!Array['isArray'](_0x450178[_0xa9c815(0x464,0x4e3,0x417,0x482)]))return'';function _0xa9c815(_0x3e8557,_0x5a2032,_0x56c545,_0x47571d){return _0x3adc1d(_0x3e8557-0x40,_0x3e8557,_0x56c545-0x16e,_0x56c545-_0xbd8bf5._0xc57493);}function _0x38ec10(_0x363816,_0x1d2ee7,_0x349306,_0x1a40e3){return _0x521c92(_0x363816-0x135,_0x1a40e3,_0x349306-0x1cc,_0x1d2ee7- -0x1bb);}return _0x450178['content'][_0x38ec10(-0x30c,-_0xd6f0d2._0x30000c,-_0xd6f0d2._0x55a363,-_0xd6f0d2._0x2a85b1)](_0x37a57a=>_0x37a57a[_0x38ec10(-0x27c,-0x1a9,-0x17c,-0x14a)]===_0xa9c815(0x54b,0x472,0x4db,0x5c8)&&typeof _0x37a57a[_0x38ec10(-0x201,-0x174,-0x84,-0x240)]===_0x38ec10(-0x17d,-0x16b,-0x1fb,-0x20c))[_0xa9c815(0x3fe,_0xd6f0d2._0x110443,_0xd6f0d2._0x3d7b27,_0xd6f0d2._0x4cc519)](_0x559940=>_0x559940[_0xa9c815(0x47a,0x61c,0x540,0x597)]??'')[_0xa9c815(0x434,_0xd6f0d2._0x3e9a3b,0x42b,0x3f8)]('');}function createOpenAiReasoningBlock(_0x11f61f){const _0x1c14c6={_0x4977e2:0x266,_0x36afed:0x42a,_0x2e7f86:0x10b,_0x3dedbb:0x513,_0x3cf573:0x3ab,_0x2d8312:0x4a9},_0x2fd750={_0x192640:0x92,_0x13a5d9:0x25f},_0x3266d9=extractOpenAiReasoningText(_0x11f61f);function _0x132989(_0x37237b,_0x436a43,_0x21f6ca,_0x51762f){return _0x521c92(_0x37237b-0x5c,_0x51762f,_0x21f6ca-0x11a,_0x21f6ca-0x3ce);}function _0x491401(_0x4a2fc1,_0x2d0fc6,_0x4d1ced,_0x5e58de){return _0x3adc1d(_0x4a2fc1-0x106,_0x5e58de,_0x4d1ced-_0x2fd750._0x192640,_0x2d0fc6-_0x2fd750._0x13a5d9);}return{'type':_0x132989(_0x1c14c6._0x4977e2,0x26d,0x354,0x355),'summary':structuredClone(_0x11f61f['summary']??[]),..._0x11f61f['id']?{'id':_0x11f61f['id']}:{},..._0x11f61f[_0x132989(0x2c5,_0x1c14c6._0x36afed,0x39b,0x3be)]?{'encryptedContent':_0x11f61f[_0x491401(0x1ef,0x1d0,0x24f,_0x1c14c6._0x2e7f86)]}:{},..._0x3266d9[_0x132989(_0x1c14c6._0x3dedbb,_0x1c14c6._0x3cf573,0x479,_0x1c14c6._0x2d8312)]>0x0?{'text':_0x3266d9}:{}};}function hasVisibleOpenAiReasoning(_0x116ceb){const _0x5b01dc={_0x851c82:0xd6,_0x289ec0:0x148,_0x3c3e71:0x1dd,_0x1fa45b:0x88},_0x630f16={_0x46ee4b:0x14a,_0x2a1ad7:0x1ac,_0x9bf293:0x1b9};function _0x244870(_0x4a6176,_0x39948a,_0x5e3275,_0x50b547){return _0x521c92(_0x4a6176-_0x630f16._0x46ee4b,_0x4a6176,_0x5e3275-_0x630f16._0x2a1ad7,_0x39948a-_0x630f16._0x9bf293);}return _0x116ceb[_0x244870(_0x5b01dc._0x851c82,_0x5b01dc._0x289ec0,_0x5b01dc._0x3c3e71,_0x5b01dc._0x1fa45b)]['length']>0x0||typeof _0x116ceb['text']==='string';}function parseChatCompletionResponse(_0x4e3604){const _0x180ac2={_0x25f16c:0x2b8,_0x419b74:0x1f6,_0x972b8c:0x246,_0x123bea:0x24e,_0x177254:0x1ad,_0xb9054b:0xd8,_0x9c3fd6:0x219,_0x4bb0fc:0x1b0,_0x15cf31:0x186,_0x43cf8f:0x1c,_0x4cd345:0x2ba,_0x289821:0x134,_0x5b9928:0x3ae,_0x256452:0x2d1,_0x7bfd2c:0x382,_0x571359:0x10e,_0x4087af:0x24,_0x3da652:0x1e3,_0x22c653:0x10a,_0x1dd2ca:0x182,_0x171a8a:0x29f,_0x514d49:0x71,_0x3c4c22:0xed,_0x795230:0x1d1,_0x4685ab:0x1aa,_0x364f43:0x2c1,_0x15c473:0x2ac},_0x322c54={_0x228211:0x8a,_0x2925b5:0x193},_0x179ea2={_0x46af52:0x197},_0x5bd3cb=[];function _0x4850ea(_0x3ee098,_0x2d9187,_0x1bde47,_0x392fe0){return _0x3adc1d(_0x3ee098-0x1ec,_0x392fe0,_0x1bde47-0x9c,_0x1bde47- -_0x179ea2._0x46af52);}const _0x1ba94c=[];function _0x59accd(_0x243ad4,_0xc0ff1b,_0x447fa4,_0x53231f){return _0x3adc1d(_0x243ad4-_0x322c54._0x228211,_0x243ad4,_0x447fa4-0x12e,_0xc0ff1b-_0x322c54._0x2925b5);}let _0x329f91=_0x4850ea(-_0x180ac2._0x25f16c,-_0x180ac2._0x419b74,-_0x180ac2._0x972b8c,-0x32d);for(const _0x38b207 of _0x4e3604['choices']??[]){const _0x58ad20=_0x38b207[_0x59accd(0x21c,0x18b,_0x180ac2._0x123bea,_0x180ac2._0x177254)],_0x5a9c8b=normalizeAssistantContent(_0x58ad20?.[_0x59accd(-0x4d,0x55,-0x64,_0x180ac2._0xb9054b)]);_0x5a9c8b[_0x59accd(_0x180ac2._0x9c3fd6,0x1e2,_0x180ac2._0x4bb0fc,_0x180ac2._0x15cf31)]>0x0&&_0x5bd3cb[_0x59accd(0x11d,0x4c,0x113,_0x180ac2._0x43cf8f)](_0x5a9c8b),_0x58ad20?.[_0x59accd(0x23c,0x1e7,_0x180ac2._0x4cd345,_0x180ac2._0x289821)]&&_0x1ba94c[_0x4850ea(-_0x180ac2._0x5b9928,-_0x180ac2._0x256452,-0x2de,-_0x180ac2._0x7bfd2c)](..._0x58ad20['tool_calls']),_0x38b207[_0x59accd(_0x180ac2._0x571359,_0x180ac2._0x4087af,-0x90,0x49)]==='tool_calls'&&(_0x329f91=_0x59accd(0x158,_0x180ac2._0x3da652,_0x180ac2._0x22c653,_0x180ac2._0x1dd2ca));}return _0x1ba94c[_0x59accd(_0x180ac2._0x171a8a,0x1e2,0x2a7,0x2b3)]>0x0&&(_0x329f91='tool_use'),{'id':_0x4e3604['id']??_0x59accd(-0xb6,0x28,-_0x180ac2._0x514d49,-0x1)+Date[_0x59accd(0x180,_0x180ac2._0x3c4c22,_0x180ac2._0x795230,_0x180ac2._0x4685ab)](),'content':createContentBlocks(_0x5bd3cb[_0x4850ea(-0x37b,-0x33d,-_0x180ac2._0x364f43,-_0x180ac2._0x15c473)](''),_0x1ba94c),'stopReason':_0x329f91,'usage':createUsage(_0x4e3604['usage'])};}function parseResponsesResponse(_0x4b7cb8,_0x29462e){const _0x450f7d={_0x9f009f:0x258,_0x356b0e:0xfe,_0x9a6875:0x11e,_0x2b617a:0x92,_0x3ce57f:0x8b,_0x4a5d17:0x79,_0x26a8e9:0x2c4,_0x3ca2a6:0x2c9,_0x44b110:0x296,_0x5cd989:0x11f,_0x2e167a:0x47,_0x364569:0x24e,_0x2e01bb:0x1ff,_0x4dc612:0x165,_0x2eb531:0x143,_0x166431:0x33c,_0x7968f7:0x269,_0x4b06d1:0x33b,_0x5821fa:0x1a4,_0x4b916f:0x25a,_0x1d0cf4:0x22a,_0x416830:0x1bf,_0x1c9936:0x85,_0x22e97c:0xd4,_0x17e3d5:0xe5,_0x526d87:0x19e,_0x537b35:0x1a6,_0x2a2ed7:0x30d,_0x5b5a95:0x260,_0x22835a:0x1c4,_0x1ac660:0x1ab,_0x2ddf15:0xea,_0x213181:0x161,_0x20486c:0x4a,_0x530bf4:0xc5,_0x587847:0x14a,_0xcc9de8:0x86,_0x5a1809:0x2bc,_0x2e5764:0x39,_0x5e271c:0x14,_0x32f77f:0x238,_0x284c1b:0x27f,_0x265fe4:0x1eb,_0x17584a:0x228,_0x400756:0x1cd,_0x3cb0c6:0x1c8,_0x180935:0x8d,_0x39c6cd:0x5f,_0x152c03:0xe3},_0x19e370={_0x2c03f4:0x18c};function _0x155f4f(_0x36f44d,_0x449837,_0x469014,_0x544533){return _0x521c92(_0x36f44d-0x1db,_0x449837,_0x469014-0x1b9,_0x469014- -0x97);}const _0x582792=[];function _0x5287bf(_0x341d84,_0x5da7e8,_0x5869da,_0x1b0492){return _0x3adc1d(_0x341d84-0x1b9,_0x5da7e8,_0x5869da-_0x19e370._0x2c03f4,_0x1b0492-0x275);}for(const _0x49e78a of _0x4b7cb8[_0x5287bf(_0x450f7d._0x9f009f,0x1e2,0x20d,0x1cd)]??[]){if(isResponsesReasoningItem(_0x49e78a)){if(isUserVisibleReasoning(_0x29462e)){const _0x37901a=createOpenAiReasoningBlock(_0x49e78a);hasVisibleOpenAiReasoning(_0x37901a)&&_0x582792['push'](_0x37901a);}continue;}if(isResponsesMessageItem(_0x49e78a)){const _0x57bed6=normalizeResponsesMessageContent(_0x49e78a['content']);_0x57bed6['length']>0x0&&_0x582792['push']({'type':'text','text':_0x57bed6});continue;}if(!isResponsesFunctionCallItem(_0x49e78a)||typeof _0x49e78a[_0x155f4f(-0xdf,-0xe2,-_0x450f7d._0x356b0e,-_0x450f7d._0x9a6875)]!==_0x155f4f(-0x51,_0x450f7d._0x2b617a,-0x47,-_0x450f7d._0x3ce57f)||_0x49e78a[_0x155f4f(-0xb5,-0x3d,-_0x450f7d._0x356b0e,-_0x450f7d._0x4a5d17)]['trim']()[_0x5287bf(0x3b4,0x36b,0x255,_0x450f7d._0x26a8e9)]===0x0||typeof _0x49e78a[_0x5287bf(_0x450f7d._0x3ca2a6,0x1b0,0x2c8,_0x450f7d._0x44b110)]!==_0x155f4f(-_0x450f7d._0x5cd989,-0x91,-_0x450f7d._0x2e167a,0x2f)||_0x49e78a[_0x5287bf(0x296,0x24e,0x203,0x296)][_0x5287bf(_0x450f7d._0x364569,_0x450f7d._0x2e01bb,0x395,0x2d1)]()['length']===0x0||typeof _0x49e78a[_0x5287bf(0x109,0x99,_0x450f7d._0x4dc612,_0x450f7d._0x2eb531)]!=='string')continue;_0x582792['push']({'type':_0x5287bf(_0x450f7d._0x166431,_0x450f7d._0x7968f7,_0x450f7d._0x4b06d1,0x2c5),'id':_0x49e78a[_0x155f4f(-_0x450f7d._0x5821fa,-0x1a8,-0xfe,-0xa3)],'name':_0x49e78a[_0x5287bf(0x343,0x235,_0x450f7d._0x4b916f,0x296)],'input':parseToolInput2(_0x49e78a[_0x155f4f(-_0x450f7d._0x1d0cf4,-0x117,-0x16d,-0x13a)])});}return!_0x582792[_0x155f4f(-_0x450f7d._0x416830,-_0x450f7d._0x1c9936,-_0x450f7d._0x22e97c,-0x47)](_0xacbb34=>_0xacbb34['type']===_0x5287bf(0x208,0x2b9,0x1c7,0x260))&&_0x4b7cb8[_0x5287bf(_0x450f7d._0x17e3d5,0x204,0x1db,_0x450f7d._0x526d87)]&&_0x582792['push']({'type':_0x5287bf(0x1b3,_0x450f7d._0x537b35,_0x450f7d._0x2a2ed7,_0x450f7d._0x5b5a95),'text':_0x4b7cb8['output_text']}),{'id':_0x4b7cb8['id'],'content':_0x582792,'stopReason':_0x582792[_0x155f4f(0x12,-0xfd,-0xd4,-_0x450f7d._0x22835a)](_0x44b995=>_0x44b995[_0x5287bf(0x162,0x314,0x27c,0x22b)]===_0x5287bf(0x3a1,0x2c4,0x1e8,0x2c5))?'tool_use':_0x155f4f(-0xf,-_0x450f7d._0x1ac660,-_0x450f7d._0x2ddf15,-_0x450f7d._0x213181),'usage':{'inputTokens':_0x4b7cb8[_0x155f4f(-0x14,-_0x450f7d._0x20486c,-_0x450f7d._0x530bf4,-0x1a5)]?.['input_tokens']??0x0,'outputTokens':_0x4b7cb8['usage']?.[_0x155f4f(-0x183,-0x1f8,-_0x450f7d._0x587847,-0xe5)]??0x0,..._0x4b7cb8[_0x155f4f(-0xd0,-0x138,-0xc5,-_0x450f7d._0xcc9de8)]?.[_0x5287bf(0x15a,0x1a4,_0x450f7d._0x5a1809,0x1f2)]?.[_0x155f4f(0x20,-0xcd,-_0x450f7d._0x2e5764,_0x450f7d._0x5e271c)]!==void 0x0?{'reasoningTokens':_0x4b7cb8[_0x5287bf(_0x450f7d._0x32f77f,_0x450f7d._0x284c1b,0x2a5,_0x450f7d._0x265fe4)]['output_tokens_details'][_0x5287bf(0x226,0x1ba,_0x450f7d._0x17584a,0x277)]}:{}},..._0x4b7cb8[_0x155f4f(-_0x450f7d._0x400756,-_0x450f7d._0x3cb0c6,-0xe3,-0x1ca)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x4b7cb8[_0x155f4f(-_0x450f7d._0x180935,-_0x450f7d._0x39c6cd,-_0x450f7d._0x152c03,-0x31)]),'openaiResponsesResponseId':_0x4b7cb8['id']}}:{}};}function _0x2390(){const _0x4ebbc1=['v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','yxv0BW','B3v0Chv0rM9YBwf0','B3v0Chv0x3rVA2vUCW','C3rYAw5NAwz5','Bwf4x3rVA2vUCW','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','CMvZCg9UC2vtB2nRzxq','CMvZB2X2zxi','CMvXDwvZDe11Dgf0B3jZ','zMLSDgvY','Dg9Wx3bYB3zPzgvY','wI5bsq','C2LNBMf0DxjL','zNvUy3rPB25Fy2fSBa','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','Bw9KzwXZ','y29UDgvUDc10ExbL','ChjVDg9JB2XwzxjZAw9U','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','rgvLCfnLzwS','B3v0Chv0x2LUzgv4','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','AxrLBq','C3rYAwn0','ogv1zvPizG','CgfYC2u','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','y3jLzgvUDgLHBa','Aw5JBhvKzunVBNrLBNruExbL','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','y2HHDgnTCgW','C3rYzwfTu3vYzMfJzq','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','mtC1mZe3me1wCurdtG','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','D3nZoG','Bw9KzwW','y29UC3vTzuv2zw50','C2vSzwn0u3vYzMfJzq','yw50AhjVCgLJqMfZzvvYBa','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','ChjLDMLVDxnszxnWB25ZzuLK','Bwf4x291Dhb1Df90B2TLBNm','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','zNvUy3rPB24','B3bLBG','z2XTltqUnG','Dg9mB3DLCKnHC2u','BwvZC2fNzv9ZDgfYDa','yw50AhjVCgLJrgvSzwDHDgu','yxv0AfnJAgvTzq','y2fWywjPBgL0AwvZ','CM91DgvY','DgHPBMTPBMC','zgvLChnLzwSTDJqTChjV','q29TBwfUzenVzgu','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','B3v0Chv0x3rLEhq','B3bLBMfPx3jLyxnVBMLUzW','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','qMfZAa','z3b0ltrV','y29TCgXLDgvtDxjMywnL','CMvZB2X2zunYzwrLBNrPywW','zw5JCNLWDgvKq29UDgvUDa','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','CMvTB3zLrxzLBNrmAxn0zw5LCG','C3vTBwfYEq','twLUAu1HEa','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','zgvMyxvSDe1VzgvS','y2fWywjSzv9LBMrWB2LUDhm','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','zMv0y2HjBxbS','twLUAu1HEc1nmW','DxjS','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','y2fSBf9Pza','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Aw5KzxG','y29UDgv4Df9Szw5NDgG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','y29Kzq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','z3b0ltu','C3LZDgvT','z2v0','ChjVEhK','zw5KCg9PBNrZ','C3rYDwn0DxjLzf9VDxrWDxq','C29JA2v0','y2fSBeLKvg9pDxrWDxrjBMrLEa','o2jHC2u2ncW','zgvMyxvSDe1HEfrVA2vUCW','CMvZCg9UC2uUzMfPBgvK','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','zw5Kx3r1CM4','DxnLC1jLC3bVBNnLC0fWAq','C2XPy2u','zMLUza','z2v0uMv0CNLezwXHEu1Z','C3rVCfjLyxnVBG','C29YDa','B3v0Chv0','Dg9VBa','BM93','CMvZCc0','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','AgfZ','zg9Uzq','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','CMvHC29UAw5Nx2rLDgfPBhm','zgvZy3jPChrPB24','AxrLBv9Pza','Aw5WDxrFDgv4Da','CMvZCg9UC2vtDhjLyw0','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','BwfW','C29Tzq','yxv0Ag9YAxPHDgLVBG','B3v0Chv0sw5KzxHuB0nHBgXjza','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','ywDLBNq','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','yxnZAxn0yw50lq','y29UDgvUDf9PBMrLEa','C291CMnL','zw5JCNLWDgvKx2nVBNrLBNq','yMfZzvvYBa','C3vTBwfYEuj5sw5KzxG','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','AxngAw5PDgu','DxnHz2u','zMLUAxnO','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','mJqYmJe5nfPMr2XjvG','CMvZCg9UC2u','y2fJAgvszwfKsw5WDxruB2TLBNm','yNvPBgrqyxj0AwfSt3v0Chv0','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','CMvHC29U','C3vTBwfYAxPLza','Dgv4DfbHCNrZ','yxnZAxn0yw50','y29TCgXLDgu','BgLTAxrZ','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','ue9tva','CMvHC29UAw5Nx3rLEhq','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','y2HVAwnLCW','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','ANnVBL9Zy2HLBwe','z3jVAY1JB2rLlwzHC3qTmq','BwvKAwfFDhLWzq','CMvHzhLtDgf0zq','B2f1DgGTDg9Rzw4','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','C2vZC2LVBG','AgvHzgvYuMvZB2X2zxi','C3rYzwfTvMLHuM91DgvY','y3jLyxrLu3rYzwfTugfYC2vY','B3bLBMfP','BwfWqxbPrxjYB3i','Ahr0Chm6lY9HCgKUzgvLChnLzwSUy29Tl2fUDgHYB3bPyW','CMvXDwvZDa','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','z2v0tw9KzwXZ','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','y3jLyxrLuMvXDwvZDa','B3v0Chv0sw5KzxG','DhjHBNnWB3j0','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','zw50CMLLCW','z2v0t3bLBKfPrgvSzwDHDgu','B3bLBMfPlxjLC3bVBNnLCY13CW','BgfIzwW','DNnJB2rLlZeUmta0lJi','zwzMB3j0','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','C2LNBMfS','oNjLyxnVBMLUzZOW','Aw5WDxrkC29U','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','y29UC3vTzvDLyLnVy2TLDev2zw50','Bw9Kzq','D2vIu29JA2v0rMfJDg9YEq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','BwLTBY12mI41lxbYBW','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','C3rHCNrZv2L0Aa','DhLWzq','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Dgv4Df9KzwX0yq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','CMvHza','zwrPDg9YugX1z2LUvMvYC2LVBG','Ec1HCgKTA2v5','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','zgLZywjSzwq','w0rptKvD','y29UDgvUDf9IBg9JA19ZDgfYDa','zNjVBq','mJuYnJiXmeTJtNfJCa','BxnNlq','C2vUza','DgvSzw1LDhj5','zxzLBNq6','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','ywrK','yxbWBgLJyxrPB24VANnVBG','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','nda0EurMs2jl','Dg9VBenHBgXZqNLjBMrLEa','B3bLBKfPrgvSzwDHDgu','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','zgf0ytO','yMvHCMvY','A2v5','DhjPBvn0yxj0','r0vu','y29UDgvUDf9IBg9JA19KzwX0yq','zxzLBNq','Dg9tDhjPBMC','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','Bwv0ywrHDge','CMvZB2X2zq','Aw5PDgLHBev2zw50','zgvJB2rL','DNnJB2rLlZeUmta2lJe','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','zgf0yq','zgvSzxrL','Dgv4Dej5sw5KzxG','Bwf4t3v0Chv0','mJm4otGWBunHvfPr','Aw5KzxHpzG','Bg9JA2vK','Bw9JAW','Aw5WDxq','C3bSAwnL','C2nOzw1H','ndiXmda3m0XYswvhBa','Dgv4Da','rgLYzwn0igfUC3DLCJOG','C3rYzwfTvMLHu3vYzMfJzq','yxbWBhLnB2rLBerLzMf1BhrZ','C3vTBwfYEv9PBMrLEa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','Ahr0Cc1QC29U','BwvZC2fNzv9KzwX0yq','Dg9bCgLfCNjVCG','C3rYAw5N','AxneB25L','z2XTltqUnq','y29UDgv4DfDPBMrVDW','BwvZC2fNzq','qMvHCMvYia','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C3vTBwfYEv90zxH0','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','ChjVDMLKzxjbzgfWDgvY','B3bLBMfPlxjLC3bVBNnLCW','C2vUzfjHD1jLCxvLC3q','AgvHzgvYCW','Bw9KzwXfBMrWB2LUDenHy2HL','CMvHC29UAw5Nx3rVA2vUCW','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Dg9VBhm','z2XTltqUnW','ywjVCNq','DgvZDa','Aw5WDxrFDg9Rzw5Z','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','A2v5CW','zwrPDg9YvMvYC2LVBG','BgfZDfjLC3bVBNnLswq','y29UDgvUDf9KzwX0yq','t3bLBKfPqxbPrxjYB3i','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','ywjVCNrLza','ChjVDg9JB2W','C3rYzwfT','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','Dg9VBfvZzvn0yxj0rw1PDhrLza','y29UBMvJDf9MywLSzwq','zgvSDge','Dg9VBc1JywXSlq','z2v0uMvHzgvY','y29UBMvJDgLUzW','Dg9VBenHBgXpCMrLCG','C2vZC2LVBK1HBMfNzxi','C3rHDhvZvgv4Da','DhjHBNnWB3j0x2vYCM9Y','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','CMvXDwvZDhm','BwvZC2fNzxm','BMfTzq','mJaYmY0WnI0Wmq','y29TCgXLDgLVBL90B2TLBNm','CgfYDgLHBf9QC29U','t3bLBKfj','zxjYB3i','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','zw5HyMXLza','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','Bwf4','CMvZB2X2zujHC2vvCMW','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','CMv0CNKTywz0zxi','CMvMDxnHBa','C3vYzMfJzxm','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','Bw9KzwXZqMfZzvvYBa','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','y2XPrgvMyxvSDe1VzgvS','Dg9VBf91C2vFAwq','nhnnqNnevW','y29TCgXLDgvwAwftDxjMywnL','CgvUzgLUzW','AxnbCNjHEq','l3yXl21LC3nHz2vZ','DxnLCG','r2L0shvIiefqssbLCNjVCIa','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','B21PDhrLza','Aw5WDxrFC2nOzw1H','sw52ywXPzcbYzxf1zxn0oIa','A2LUza','DMfSDwu','ywnJzxb0','Aw1Hz2vFDxjS','mJe0nNLgtKvWAa','Dgv4Dc9LDMvUDc1ZDhjLyw0','DMfSDwvZ','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','zMXHDe1HCa','B3jPz2LUlxrYywnRzxi','BgvUz3rO','Dg9VBf91C2u','CMvWBgfJzq','Dg9VBenHBgXZ','Ahr0Chm6','Dg9VBf9JywXSCW','y2fJAgvK','C3rYzwfTshr0Cfn1CMzHy2u','C3rHDhvZ','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','y29TCgXLDgvwAwfsB3v0zxi','C2HPzNq','CgfYC2vszxnWB25Zzq','DhjPBq','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','C2L6zq','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','C2vUzfDPDgHszxrYAwvZ','y2f0y2G','CMvHC29UAw5N','CMvZCg9UC2vZugf0Aa','CMvZCg9UC2vuzxH0ugfYDhm','zNjVBuvUDhjPzxm','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','l3jLC3bVBNnLCW','z2v0u3vYzMfJzq','C3vWCg9YDgvKrw5KCg9PBNrZ','zgvMyxvSDe1VzgvSCW','yw50AhjVCgLJx3rOAw5RAw5N','y2fUy2vS','D2vIC29JA2v0','CMvHC29UAw5NugfYDhm','zMLUAxnOx3jLyxnVBG','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','t1bftG','ywnJzxnZvg9Rzw4','y2HHDgnTCgWT','C2vZC2LVBKLK','Aw52ywXPzgf0zq','y2HHDenVBxbSzxrL','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','yxbPs2v5','C2vZC2LVBI10B2TLBG','zM9Yy2vgDwXSuMvWBgf5','Ahr0Cc1ZC2u','z2XTltuUmG','yxbP','Dg9VBf91C2vFzgvSDge','y3jLyxrLsgvHzgvYCW','CM9Szq','C3vYzMfJzq','Cgf0Aa','l2nOyxqVy29TCgXLDgLVBNm','CMvZCg9UC2vjza','z2v0qw50AhjVCgLJrgvSzwDHDgu','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','yNvKz2v0vg9Rzw5Z','yw50AhjVCgLJlw1LC3nHz2vZ','D3m6','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','zMLUywXszxnWB25Zzq','C3vWCg9YDgvKx2vUzhbVAw50CW','C3vWCg9YDhnnB2rLBezLDgnO','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','y29TCgXLDgvK','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','BNvTyMvY','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','BhmGlwXH','B3v0Chv0vg9Rzw5Z','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','DgHPBMTPBMDFzgvSDge','ChvZAa','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','ChjVBxb0x3rVA2vUCW','ChjLCgfYzunOyxrszxf1zxn0','y2XVC2u','y29UDgvUDf9IBg9JAW','D2fPDezVCLjLDhj5','BwvZC2fNzuLK','Aw5WDxruB2TLBNm','y29UDgvUDa','y2HHDenVBxbSzxrPB25Zugf0Aa','B3bLBMfPl2DWDc00BW','yMXVy2TZ','y29UC3vTzvnZzuv2zw50','ANnVBG','zMv0y2G','ChjVDMLKzxjtDgf0zq','ywrKrxzLBNrmAxn0zw5LCG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','mJaYns0Xmc0Wmq','v2vIu29JA2v0','yxjNDw1LBNrZ','CMv0CNLHyMXL','ChjVDMLKzxjZ','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','CMvKywn0zwrFDgHPBMTPBMC','qw50AhjVCgLJ','z3b0ltqUmq','CMvHC29UAw5NsxrLBxm','AM9PBG','mti2ntK4nxrsBfPowa','yxbPlwTLEq','yw50AhjVCgLJ','y2HHDfn0CMvHBq','yw50AhjVCgLJlxzLCNnPB24','yM9KEq','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B2jQzwn0','DMLZAwjPBgL0Eq','C3bSAxq','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','DxnLCI12AxnPyMXL','z2XTltuUmq','z3b0ltuUmI1JB2rLEa','C2HVDwXKuMv0CNLszxnWB25Zzq','z2L0AhvIqxbPvxjS','Bwf4vg9Rzw5Z','C2v0','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Aw5JBhvKzxm','C3rVCf9YzwfZB24','u3vYzMfJzsa'];_0x2390=function(){return _0x4ebbc1;};return _0x2390();}function extractErrorMessage(_0xb5b2b3){const _0x5b5220={_0xd079d0:0x3f7,_0x465f0d:0x534,_0x5ec1f3:0x5fc,_0x5ed1c4:0x70,_0x2c782f:0x15b,_0x58902f:0x59,_0x409370:0x578,_0x1ddb4a:0x625,_0x3a6bc0:0x660,_0xd7a0f1:0x5f7,_0x5bf93d:0xf,_0x5b09f1:0xbe,_0xaf019e:0xc1,_0xd79140:0x2b,_0x194399:0xd1,_0x44fdc2:0x50,_0x376508:0xc9,_0x1e4d4f:0x46,_0x43f7e2:0xe4,_0x3751f0:0x5d1,_0x184ae0:0x7,_0x100922:0x9d,_0x5cbf40:0x58d,_0x47356d:0x5f7,_0x2ba160:0x4fb,_0x248d8a:0x5ab,_0x1e4dc8:0x51d,_0x1806be:0x5ea,_0x3774a0:0x5f4,_0x483aca:0x593,_0x13577:0x583},_0x4fc4ce={_0xde5809:0x1ae,_0x116bf5:0x68},_0x4e0524={_0x5632ac:0x20,_0x1b0322:0x1b1,_0x2b2e7e:0x59b};function _0x3849e5(_0x4bf6c0,_0xbc4777,_0x155120,_0x4c75c2){return _0x3adc1d(_0x4bf6c0-_0x4e0524._0x5632ac,_0x4bf6c0,_0x155120-_0x4e0524._0x1b0322,_0x4c75c2-_0x4e0524._0x2b2e7e);}if(_0xb5b2b3['length']===0x0)return'';try{const _0x347815=JSON[_0x3849e5(_0x5b5220._0xd079d0,0x3b7,_0x5b5220._0x465f0d,0x4a3)](_0xb5b2b3);if(typeof _0x347815[_0x3849e5(0x552,0x626,_0x5b5220._0x5ec1f3,0x5c1)]?.[_0x53bbb8(-0xe1,-_0x5b5220._0x5ed1c4,-_0x5b5220._0x2c782f,-0x10b)]==='string'&&_0x347815['error'][_0x53bbb8(-_0x5b5220._0x58902f,-_0x5b5220._0x5ed1c4,0xb,0x5f)][_0x3849e5(_0x5b5220._0x409370,_0x5b5220._0x1ddb4a,_0x5b5220._0x3a6bc0,_0x5b5220._0xd7a0f1)]()[_0x53bbb8(_0x5b5220._0x5bf93d,-0x19,-_0x5b5220._0x5b09f1,-_0x5b5220._0xaf019e)]>0x0)return _0x347815[_0x53bbb8(-0x68,-0x42,-_0x5b5220._0xd79140,-_0x5b5220._0x194399)][_0x53bbb8(-0xa8,-0x70,-_0x5b5220._0x44fdc2,-_0x5b5220._0x376508)][_0x53bbb8(0xa1,-0xc,_0x5b5220._0x1e4d4f,-_0x5b5220._0x43f7e2)]();if(typeof _0x347815[_0x3849e5(_0x5b5220._0x3751f0,0x5d9,0x558,0x593)]===_0x53bbb8(-0x5,-0x74,_0x5b5220._0x184ae0,-_0x5b5220._0x100922)&&_0x347815['message'][_0x3849e5(_0x5b5220._0x5cbf40,0x6dc,0x587,_0x5b5220._0x47356d)]()[_0x3849e5(_0x5b5220._0x2ba160,_0x5b5220._0x248d8a,_0x5b5220._0x1e4dc8,_0x5b5220._0x1806be)]>0x0)return _0x347815[_0x3849e5(0x4c4,_0x5b5220._0x3774a0,0x665,_0x5b5220._0x483aca)][_0x3849e5(0x55d,_0x5b5220._0x13577,0x643,_0x5b5220._0x47356d)]();}catch{return _0xb5b2b3;}function _0x53bbb8(_0x1772e6,_0x57f139,_0xa988a7,_0x618fdc){return _0x3adc1d(_0x1772e6-0xdd,_0xa988a7,_0xa988a7-_0x4fc4ce._0xde5809,_0x57f139- -_0x4fc4ce._0x116bf5);}return _0xb5b2b3;}async function createOpenAiApiError(_0x143127){const _0x5e0d0d={_0x40890c:0x1f1,_0x384ff2:0xb6,_0x4e2bfc:0x118,_0x151cf9:0x524,_0x1ee374:0x4bf,_0x27c674:0x256},_0x4eec24={_0x144deb:0x1b3,_0x1d4afc:0xe,_0x2eec54:0x4c8},_0x3bd6fe=(await _0x143127[_0x483a35(0x184,_0x5e0d0d._0x40890c,_0x5e0d0d._0x384ff2,_0x5e0d0d._0x4e2bfc)]())[_0x629b7e(0x543,_0x5e0d0d._0x151cf9,_0x5e0d0d._0x1ee374,0x4d1)](),_0x33668f=extractErrorMessage(_0x3bd6fe)||_0x143127[_0x483a35(0x1b5,_0x5e0d0d._0x27c674,0x26b,0x222)]||'OpenAI\x20API\x20error\x20'+_0x143127[_0x483a35(0x1f0,0x252,0x278,0x2d3)];function _0x483a35(_0x4159e8,_0x24793b,_0xd67b71,_0x1fa060){return _0x521c92(_0x4159e8-0x1ea,_0x1fa060,_0xd67b71-0x1c1,_0x4159e8-0x13d);}function _0x629b7e(_0x32deff,_0x211cfb,_0x5c4b61,_0x386898){return _0x3adc1d(_0x32deff-_0x4eec24._0x144deb,_0x5c4b61,_0x5c4b61-_0x4eec24._0x1d4afc,_0x211cfb-_0x4eec24._0x2eec54);}return new OpenAiApiError(_0x143127['status'],_0x3bd6fe,_0x33668f);}function readSseData(_0x31d3a6){const _0x4b7b8d={_0x3beb6b:0x120,_0xb54e4f:0x17d,_0x20fec8:0x93,_0x5e713e:0x4d,_0x2aa9e6:0xa3,_0x13a53e:0x229},_0x4bb29f={_0x180c2d:0x82,_0x26e7aa:0x171},_0x1f681f={_0x44cd9f:0xc3,_0xa4f7eb:0x14e};function _0x342845(_0x76279a,_0x31ef0b,_0x538bb5,_0x4d3626){return _0x521c92(_0x76279a-_0x1f681f._0x44cd9f,_0x4d3626,_0x538bb5-_0x1f681f._0xa4f7eb,_0x538bb5-0x2cc);}function _0x91240e(_0x26bee9,_0x8fb0f0,_0xf769ca,_0x27144a){return _0x521c92(_0x26bee9-_0x4bb29f._0x180c2d,_0x26bee9,_0xf769ca-0xa7,_0xf769ca-_0x4bb29f._0x26e7aa);}return _0x31d3a6[_0x91240e(_0x4b7b8d._0x3beb6b,-0x3d,0xad,_0x4b7b8d._0xb54e4f)]('\x0a')['filter'](_0x170e22=>_0x170e22['startsWith'](_0x342845(0x3ca,0x394,0x2f7,0x282)))['map'](_0x3256c9=>_0x3256c9[_0x91240e(0x206,0x16e,0x120,0x148)](0x5)[_0x91240e(0x23c,0x1fc,0x19f,0x24e)]())[_0x91240e(_0x4b7b8d._0x20fec8,-_0x4b7b8d._0x5e713e,_0x4b7b8d._0x2aa9e6,0xc1)]('\x0a')[_0x91240e(0x2ae,0x29c,_0x4b7b8d._0x13a53e,0x1b6)]();}function readString(_0x491d3e){const _0x510bca={_0x525843:0x1cd,_0x2d45b7:0x1a7,_0x34eceb:0x179},_0x79d485={_0x462d41:0xd5,_0x394918:0x74},_0x17779b={_0x11eb46:0x15f,_0x59f91d:0xa8};function _0x470f90(_0xc43663,_0x48269c,_0x471137,_0x38a369){return _0x521c92(_0xc43663-_0x17779b._0x11eb46,_0x38a369,_0x471137-0x1ad,_0xc43663- -_0x17779b._0x59f91d);}function _0x2224d8(_0x59bb0d,_0x4bf5ae,_0x58ddfa,_0x54786a){return _0x521c92(_0x59bb0d-_0x79d485._0x462d41,_0x59bb0d,_0x58ddfa-_0x79d485._0x394918,_0x4bf5ae- -0x224);}return typeof _0x491d3e===_0x2224d8(-_0x510bca._0x525843,-0x1d4,-_0x510bca._0x2d45b7,-0x295)&&_0x491d3e[_0x2224d8(-0xec,-_0x510bca._0x34eceb,-0x1aa,-0xa5)]>0x0?_0x491d3e:void 0x0;}function extractReasoningDetails(_0x5be36f){const _0x8ed22f={_0x345a31:0xae,_0x340844:0x8a,_0x1f4971:0x25,_0x54fd96:0x12c},_0x23fd19={_0x139bb2:0x20},_0x4fe58f={_0x1a129a:0xd7,_0x4f3932:0x22,_0x5cd3a9:0x177,_0xce6250:0xbb,_0x94ff67:0x11e,_0x438160:0xa7,_0x21a429:0x3a,_0x5cda3e:0xb0,_0x337288:0x30},_0x1abc2f={_0x208f25:0xbb,_0x48922b:0x173,_0x38c179:0xe2},_0x1677dc={_0x42a8c3:0x34};if(!Array['isArray'](_0x5be36f))return void 0x0;function _0x30d61c(_0x1d0777,_0x4dd731,_0x657eff,_0x1bb937){return _0x3adc1d(_0x1d0777-0x143,_0x657eff,_0x657eff-0xa8,_0x4dd731-0x3fb);}const _0xea9294=_0x5be36f[_0xc57a27(_0x8ed22f._0x345a31,_0x8ed22f._0x340844,-0x34,0x68)](_0x4b49db=>{function _0x58552a(_0x13b49d,_0x244a31,_0x4944f0,_0x45c50c){return _0xc57a27(_0x13b49d-_0x1677dc._0x42a8c3,_0x244a31-0xde,_0x45c50c,_0x4944f0-0xa6);}function _0x38957d(_0x517053,_0x53a046,_0x3e9ae6,_0x219232){return _0xc57a27(_0x517053-_0x1abc2f._0x208f25,_0x53a046-_0x1abc2f._0x48922b,_0x219232,_0x3e9ae6-_0x1abc2f._0x38c179);}if(!_0x4b49db||typeof _0x4b49db!=='object')return[];const _0x5986a3=_0x4b49db;if(typeof _0x5986a3['text']===_0x58552a(0x136,_0x4fe58f._0x1a129a,0xb5,-_0x4fe58f._0x4f3932))return[_0x5986a3[_0x38957d(_0x4fe58f._0x5cd3a9,_0x4fe58f._0xce6250,0xe8,_0x4fe58f._0x94ff67)]];if(typeof _0x5986a3[_0x58552a(-0x30,-_0x4fe58f._0x438160,-0xc,-_0x4fe58f._0x21a429)]==='string')return[_0x5986a3[_0x38957d(_0x4fe58f._0x5cda3e,_0x4fe58f._0x337288,_0x4fe58f._0x337288,-0x4c)]];return[];});function _0xc57a27(_0x5b3d4a,_0x1bffe5,_0x36d893,_0x44f42e){return _0x3adc1d(_0x5b3d4a-0x91,_0x36d893,_0x36d893-_0x23fd19._0x139bb2,_0x44f42e-0x1b);}return _0xea9294['length']>0x0?_0xea9294[_0xc57a27(-_0x8ed22f._0x1f4971,-0x8a,-_0x8ed22f._0x54fd96,-0x10f)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x3e3fe6){const _0x46483f={_0x57a660:0xe5,_0x22684b:0xce,_0x2613ff:0x51,_0x43e1b7:0x36,_0x455a4e:0xd4,_0x5063a0:0x37,_0x5a2a50:0x59},_0x36a71f={_0x40fb2d:0x163};function _0x445ebd(_0x1ac4b3,_0x28a793,_0x58b1f5,_0x347b40){return _0x3adc1d(_0x1ac4b3-0xc9,_0x347b40,_0x58b1f5-0xc4,_0x1ac4b3-0x397);}function _0x1264e0(_0x14e323,_0x18aa5e,_0x29b1b4,_0x3b4b3e){return _0x3adc1d(_0x14e323-0x1c0,_0x14e323,_0x29b1b4-_0x36a71f._0x40fb2d,_0x3b4b3e- -0x2e);}return extractReasoningDetails(_0x3e3fe6?.[_0x1264e0(-0x1a2,-0x118,-_0x46483f._0x57a660,-_0x46483f._0x22684b)])??readString(_0x3e3fe6?.[_0x1264e0(-_0x46483f._0x2613ff,-0x7b,0xff,_0x46483f._0x43e1b7)])??readString(_0x3e3fe6?.['reasoning_content'])??readString(_0x3e3fe6?.[_0x1264e0(-_0x46483f._0x455a4e,_0x46483f._0x5063a0,-_0x46483f._0x5a2a50,-0xa8)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x521c92(-0x84,-0x1e9,-0x1e0,-0x114)]=[];[_0x521c92(-0x2c,-0x43,-0x95,-0xc)];[_0x521c92(-0x87,0x95,0xbb,-0x24)]=[];[_0x3adc1d(-0x8a,-0x105,-0x48,-0x34)]=new Map();['toolCallOrder']=[];[_0x521c92(0x75,0x60,0x60,0x70)]=new Set();[_0x521c92(-0x1c1,-0x185,-0xe0,-0xfe)]='';[_0x3adc1d(-0x112,-0x162,-0x9,-0xaa)]='end_turn';[_0x3adc1d(0x42,0x1c,0x42,-0x8a)];constructor(_0x3b7ce7){const _0x5dcb36={_0x406e14:0x25b};function _0x2184ca(_0x1c500d,_0x30291f,_0x347bb5,_0x4d8cc1){return _0x3adc1d(_0x1c500d-0x24,_0x347bb5,_0x347bb5-0x56,_0x1c500d-_0x5dcb36._0x406e14);}this[_0x2184ca(0x1f3,0x177,0x20c,0x25d)]=_0x3b7ce7;}[_0x3adc1d(-0x1e3,-0x215,-0x145,-0x13a)](_0x2905e5){const _0x3da1be={_0x53e7cb:0x1ed,_0x52f6af:0xe9,_0x15b2a9:0x146,_0x27384f:0x1f6,_0x5b65e9:0x1a7,_0xf3c4a4:0x92,_0xd3c579:0x7d,_0x54fc0b:0x206,_0x2d4e4b:0x21e,_0x3aa46b:0xb8,_0x4d51b0:0x6d,_0xc16f85:0x7e,_0x5a1f8e:0xc8,_0x1783cb:0x54},_0xbf53e0={_0x96a92d:0x84},_0x2cee6c={_0x5eac11:0xcd},_0x552add=readSseData(_0x2905e5);function _0x3aa648(_0x46a638,_0x135925,_0x215411,_0x3eb1a1){return _0x3adc1d(_0x46a638-_0x2cee6c._0x5eac11,_0x215411,_0x215411-0xc1,_0x3eb1a1-0x1e8);}if(_0x552add[_0x5a1bba(0x14b,_0x3da1be._0x53e7cb,_0x3da1be._0x52f6af,0x90)]===0x0||_0x552add===_0x3aa648(_0x3da1be._0x15b2a9,0x203,_0x3da1be._0x27384f,_0x3da1be._0x5b65e9))return[];const _0x2b7761=JSON[_0x3aa648(_0x3da1be._0xf3c4a4,0xa2,_0x3da1be._0xd3c579,0xf0)](_0x552add);this['responseId']=_0x2b7761['id']??this['responseId'],this[_0x3aa648(_0x3da1be._0x54fc0b,0x234,_0x3da1be._0x2d4e4b,0x15e)]=_0x2b7761['usage']??this[_0x5a1bba(0x72,_0x3da1be._0x3aa46b,_0x3da1be._0x4d51b0,-_0x3da1be._0xc16f85)];function _0x5a1bba(_0x2f8981,_0x9f5165,_0x5a781d,_0x542d7a){return _0x3adc1d(_0x2f8981-_0xbf53e0._0x96a92d,_0x542d7a,_0x5a781d-0x58,_0x2f8981-0xfc);}return this[_0x3aa648(0x1bb,_0x3da1be._0x5a1f8e,_0x3da1be._0x1783cb,0xfc)](_0x2b7761);}[_0x3adc1d(0x0,-0xc2,-0x3b,-0x89)](){const _0x39ad5b={_0x416b1e:0x4e7,_0x1a5abb:0x539,_0x7c9e6b:0x87,_0x560145:0x118,_0x5d327f:0x367,_0x467cdd:0x423,_0x54f05b:0x4bc,_0x4adc6b:0x3dd,_0x58c0aa:0x22,_0x2c59b7:0xb4,_0x195892:0x101,_0x28b566:0x79,_0x23acba:0x86,_0x119a0f:0x3e,_0x3b8b9f:0x143,_0x250b97:0x147,_0x44d2c3:0xce,_0x4ac982:0x65,_0x43c01c:0x86,_0x19eec1:0x142,_0xc4ca40:0xaa,_0x7df8dc:0x5f,_0x27061b:0x101,_0x598602:0xa2,_0x1ccb4f:0x428,_0x3cab6f:0x3a3,_0x45be89:0x4e7,_0x3fb34e:0x4df,_0x5429e8:0xd7},_0x3261f0={_0x316599:0x1d1,_0x106c71:0x33},_0x2566d4={_0x4e2fdf:0x133,_0x4de443:0x471};function _0x3f12bd(_0x49904d,_0x170621,_0x3cd350,_0x41130f){return _0x521c92(_0x49904d-_0x2566d4._0x4e2fdf,_0x49904d,_0x3cd350-0x6,_0x170621-_0x2566d4._0x4de443);}this[_0x3f12bd(0x55a,_0x39ad5b._0x416b1e,0x43b,_0x39ad5b._0x1a5abb)][_0x244606(_0x39ad5b._0x7c9e6b,0x119,_0x39ad5b._0x560145,0x78)]>0x0&&(this[_0x3f12bd(_0x39ad5b._0x5d327f,_0x39ad5b._0x467cdd,_0x39ad5b._0x54f05b,_0x39ad5b._0x4adc6b)]=_0x244606(-_0x39ad5b._0x58c0aa,_0x39ad5b._0x2c59b7,_0x39ad5b._0x195892,_0x39ad5b._0x28b566));const _0x269579=isUserVisibleReasoning(this[_0x244606(-0xf4,_0x39ad5b._0x23acba,-_0x39ad5b._0x119a0f,-0x3f)])?this[_0x244606(-0xe1,-0x141,-_0x39ad5b._0x3b8b9f,-_0x39ad5b._0x250b97)]['join'](''):void 0x0;function _0x244606(_0x599dc6,_0x4d21bd,_0xd68123,_0x405fd2){return _0x521c92(_0x599dc6-0x198,_0x4d21bd,_0xd68123-_0x3261f0._0x316599,_0x405fd2- -_0x3261f0._0x106c71);}return{'id':this[_0x244606(-_0x39ad5b._0x44d2c3,-0x128,-_0x39ad5b._0x4ac982,-0x131)]||_0x244606(-_0x39ad5b._0x43c01c,-0x92,-0x73,-_0x39ad5b._0x19eec1)+Date[_0x244606(-_0x39ad5b._0xc4ca40,0x1c,_0x39ad5b._0x7df8dc,-0x7d)](),'content':createContentBlocks(this[_0x244606(-0xd0,-_0x39ad5b._0x27061b,-_0x39ad5b._0x598602,-0x57)][_0x3f12bd(_0x39ad5b._0x1ccb4f,_0x39ad5b._0x3cab6f,0x36b,0x47a)](''),this[_0x3f12bd(0x4a7,_0x39ad5b._0x45be89,0x571,0x521)],_0x269579),'stopReason':this[_0x3f12bd(_0x39ad5b._0x3fb34e,_0x39ad5b._0x467cdd,0x380,0x4c0)],'usage':createUsage(this[_0x244606(-0x2e,-_0x39ad5b._0x5429e8,-0x52,-0x61)])};}[_0x3adc1d(-0x1c4,-0x37,-0x142,-0xec)](_0x235e30){const _0x1950ad={_0x1eda66:0x60,_0x321fc8:0x6e,_0x2fce87:0x6c1,_0x4af461:0x650,_0x4ee900:0x6fe,_0x49bd7a:0x6a0,_0x805d4d:0x463,_0x3872ea:0x3f0,_0x322205:0x17d,_0x3c3ca9:0x50,_0x40a224:0x85,_0x3e420b:0x5c,_0x106df1:0x453,_0x5c6208:0x502,_0x17fd66:0x55d,_0x2d14b8:0x538,_0x2322de:0x433,_0x2f6f21:0x88,_0x4eefb5:0x3c,_0x3e6faf:0x1c,_0x266c1d:0xb,_0x2210e8:0x45b,_0x2ad68a:0x495,_0x2c4983:0x50d,_0x3ec16c:0x430,_0x13d1a0:0x46a,_0x548106:0xc,_0x139d0c:0xb3,_0x3abad1:0x10b,_0x1840ba:0x44,_0x36ef0c:0x40f,_0x360e91:0x52c,_0xd00134:0x3e1,_0x32a05b:0x69d,_0x2c474c:0x5f9,_0x23eb8c:0x64b,_0x1d3a11:0x627,_0x39add3:0x512,_0x6d2061:0x596,_0x31e3a6:0x51c,_0x3e2441:0x59f,_0x425218:0xa1,_0x5eb157:0xba,_0x41d215:0x15e,_0x1f776e:0x2f,_0x2a7d16:0x3e,_0x1187f7:0x37,_0x88f5f6:0xcd,_0x5be655:0xda,_0x4cd17d:0x1ad,_0x5b6cfd:0x32,_0x234e31:0x67,_0x37c989:0x116,_0x370ea3:0x4f3,_0x3616be:0x89,_0x3c98f1:0x39,_0x14263d:0x51,_0x260559:0x124,_0x321ead:0x4d,_0xdfeb50:0x12,_0x3a60cf:0x6bc,_0x386b6f:0x5f4,_0x378a44:0x595,_0x1b2989:0x6ca,_0x35deb4:0x62f,_0x148427:0x668,_0x31bf38:0x0,_0x5120fd:0x167,_0x191fa7:0x1bb,_0x3a34f4:0x39,_0x3fb6a6:0x84,_0x637aaa:0x5e7,_0x3d18bc:0x5b0,_0x4b2fd3:0x59b,_0x3788ee:0x5c3,_0x495351:0x463,_0x2a3fc1:0x4dc,_0x46d8ba:0x3f8,_0x4e61eb:0x65f,_0x1e1fde:0x5fe,_0x4ba3f0:0x11a,_0x1cf11c:0x20a,_0x558768:0x136,_0x50b911:0x1c0,_0x5dc21c:0x1c0,_0x875b4a:0x10e,_0x2e754a:0x3b8,_0x398479:0x66,_0x2a7d35:0x5f7,_0x271747:0x623,_0x3052a0:0x6c4,_0x3df50b:0x54f},_0x19bb8e={_0x4a0f73:0x71},_0x3c101b={_0x15b703:0x1aa,_0xe5ac14:0x5d3},_0x153115=[];function _0x3af44f(_0x9a9dd3,_0x302125,_0x52e812,_0x43605a){return _0x3adc1d(_0x9a9dd3-_0x3c101b._0x15b703,_0x52e812,_0x52e812-0x12f,_0x302125-_0x3c101b._0xe5ac14);}for(const _0x58ff28 of _0x235e30[_0x38689b(-_0x1950ad._0x1eda66,0x12,_0x1950ad._0x321fc8,-0xe6)]??[]){const _0x5b7d0a=_0x58ff28[_0x3af44f(_0x1950ad._0x2fce87,0x5e9,0x60c,_0x1950ad._0x4af461)],_0xb6ba5c=extractChatCompletionReasoningDelta(_0x5b7d0a);_0xb6ba5c[_0x3af44f(_0x1950ad._0x4ee900,0x622,_0x1950ad._0x49bd7a,0x5d5)]>0x0&&(this[_0x3af44f(0x421,_0x1950ad._0x805d4d,_0x1950ad._0x3872ea,0x444)][_0x38689b(-0x12f,-_0x1950ad._0x322205,-0x1ed,-0x18e)](_0xb6ba5c),isUserVisibleReasoning(this[_0x38689b(-_0x1950ad._0x3c3ca9,-0xe3,-_0x1950ad._0x40a224,-_0x1950ad._0x3e420b)])&&_0x153115[_0x3af44f(_0x1950ad._0x106df1,0x48c,_0x1950ad._0x5c6208,0x3d5)]({'type':_0x3af44f(0x479,_0x1950ad._0x17fd66,0x495,0x5b4),'contentIndex':0x0,'delta':_0xb6ba5c,'itemId':(this[_0x3af44f(_0x1950ad._0x2d14b8,0x479,0x502,_0x1950ad._0x2322de)]||_0x38689b(-0xdb,-_0x1950ad._0x2f6f21,-0x71,-0xe0))+_0x38689b(-_0x1950ad._0x4eefb5,_0x1950ad._0x3e6faf,-0x124,-_0x1950ad._0x266c1d),'outputIndex':0x0}));const _0x3d0dd9=typeof _0x5b7d0a?.[_0x3af44f(_0x1950ad._0x2210e8,_0x1950ad._0x2ad68a,0x4e5,0x53e)]===_0x3af44f(0x5ab,0x5c7,0x5c2,_0x1950ad._0x2c4983)?_0x5b7d0a[_0x3af44f(_0x1950ad._0x3ec16c,0x495,0x4a0,_0x1950ad._0x13d1a0)]:typeof _0x5b7d0a?.['refusal']===_0x38689b(_0x1950ad._0x548106,-_0x1950ad._0x139d0c,-0xa8,-0x8b)?_0x5b7d0a[_0x3af44f(0x567,0x603,0x698,0x5c7)]:'';_0x3d0dd9['length']>0x0&&(this[_0x38689b(-0x68,-_0x1950ad._0x3abad1,-0x125,_0x1950ad._0x1840ba)][_0x3af44f(_0x1950ad._0x36ef0c,0x48c,_0x1950ad._0x360e91,_0x1950ad._0xd00134)](_0x3d0dd9),_0x153115['push']({'type':_0x3af44f(0x582,0x5e0,_0x1950ad._0x32a05b,_0x1950ad._0x2c474c),'index':0x0,'text':_0x3d0dd9}));for(const _0x5a155f of _0x5b7d0a?.[_0x3af44f(_0x1950ad._0x23eb8c,_0x1950ad._0x1d3a11,0x559,0x53d)]??[]){const _0x2e84c8=_0x5a155f[_0x3af44f(0x47c,_0x1950ad._0x39add3,0x4d4,_0x1950ad._0x6d2061)]??0x0;let _0x5c98db=this[_0x3af44f(_0x1950ad._0x31e3a6,_0x1950ad._0x3e2441,0x640,0x5d3)][_0x38689b(-_0x1950ad._0x425218,-0x22,-_0x1950ad._0x5eb157,-_0x1950ad._0x41d215)](_0x2e84c8);!_0x5c98db&&(_0x5c98db={'id':_0x5a155f['id']??_0x38689b(_0x1950ad._0x1f776e,0xad,_0x1950ad._0x2a7d16,_0x1950ad._0x1187f7)+_0x2e84c8,'type':_0x38689b(-_0x1950ad._0x88f5f6,0x1f,-0x173,-0x1c),'function':{'name':_0x5a155f['function']?.['name']??'','arguments':''}},this['toolCallsByIndex'][_0x38689b(-0xff,-_0x1950ad._0x5be655,-0x186,-_0x1950ad._0x4cd17d)](_0x2e84c8,_0x5c98db),this[_0x38689b(_0x1950ad._0x5b6cfd,_0x1950ad._0x234e31,0x22,-0xa)][_0x38689b(-0x12f,-_0x1950ad._0x37c989,-0x90,-0x148)](_0x5c98db));_0x5a155f['id']&&(_0x5c98db['id']=_0x5a155f['id']);_0x5a155f[_0x3af44f(0x4a0,0x4ee,0x4f6,_0x1950ad._0x370ea3)]?.[_0x38689b(0x39,0xa2,-0x81,-0x21)]&&(_0x5c98db[_0x38689b(-0xcd,-_0x1950ad._0x3616be,-0x13b,-0xed)][_0x38689b(_0x1950ad._0x3c98f1,0xff,-0x4c,-0x45)]=_0x5a155f[_0x38689b(-_0x1950ad._0x88f5f6,-0x154,-_0x1950ad._0x14263d,-_0x1950ad._0x260559)][_0x38689b(_0x1950ad._0x3c98f1,_0x1950ad._0x321ead,0x20,-_0x1950ad._0xdfeb50)]);!this['toolUseStartEmitted']['has'](_0x2e84c8)&&_0x5c98db['function'][_0x3af44f(_0x1950ad._0x3a60cf,_0x1950ad._0x386b6f,0x5d3,_0x1950ad._0x378a44)][_0x3af44f(_0x1950ad._0x1b2989,_0x1950ad._0x35deb4,0x636,_0x1950ad._0x148427)]()['length']>0x0&&(_0x153115['push']({'type':'tool_use_delta','id':_0x5c98db['id'],'index':_0x2e84c8,'name':_0x5c98db[_0x38689b(-0xcd,_0x1950ad._0x31bf38,-_0x1950ad._0x5120fd,-_0x1950ad._0x191fa7)][_0x38689b(_0x1950ad._0x3a34f4,0xbc,0xb6,-_0x1950ad._0x3fb6a6)]}),this[_0x3af44f(0x583,_0x1950ad._0x637aaa,0x513,0x622)][_0x3af44f(_0x1950ad._0x3d18bc,_0x1950ad._0x4b2fd3,_0x1950ad._0x3788ee,0x686)](_0x2e84c8));const _0x35355f=_0x5a155f[_0x38689b(-0xcd,-0x115,-0xf6,0x10)]?.[_0x3af44f(_0x1950ad._0x495351,0x4a1,_0x1950ad._0x2a3fc1,_0x1950ad._0x46d8ba)]??'';_0x35355f[_0x3af44f(_0x1950ad._0x4e61eb,0x622,_0x1950ad._0x1e1fde,0x692)]>0x0&&(_0x5c98db['function'][_0x38689b(-_0x1950ad._0x4ba3f0,-_0x1950ad._0x1cf11c,-_0x1950ad._0x558768,-0x199)]+=_0x35355f,_0x153115[_0x38689b(-0x12f,-0x21e,-0xb1,-_0x1950ad._0x50b911)]({'type':_0x38689b(-0x148,-0x1d5,-_0x1950ad._0x5dc21c,-_0x1950ad._0x875b4a),'id':_0x5c98db['id'],'index':_0x2e84c8,'inputDelta':_0x35355f}));}_0x58ff28[_0x3af44f(_0x1950ad._0x2e754a,0x464,0x4e2,0x460)]===_0x38689b(0x6c,-0x33,-0x2,_0x1950ad._0x398479)&&(this['stopReason']=_0x3af44f(_0x1950ad._0x2a7d35,_0x1950ad._0x271747,_0x1950ad._0x3052a0,_0x1950ad._0x3df50b));}function _0x38689b(_0x1f8982,_0x285e45,_0x4db3e7,_0xf3e965){return _0x521c92(_0x1f8982-_0x19bb8e._0x4a0f73,_0x285e45,_0x4db3e7-0x163,_0x1f8982- -0x44);}return _0x153115;}},OpenAiResponsesStreamParser=class{['callIdToOutputIndex']=new Map();[_0x3adc1d(-0x1f5,-0xab,-0xb7,-0x153)];[_0x3adc1d(0x3d,-0x10e,-0x85,-0x97)]=new Map();[_0x521c92(-0x92,-0x32,-0x155,-0xf0)]=new Map();[_0x3adc1d(-0xb0,-0xd1,-0x1ee,-0x12b)]=new Map();[_0x3adc1d(-0x9,-0x12b,0x48,-0x68)];[_0x3adc1d(0xa5,-0x6f,0x110,0x66)]=new Map();[_0x3adc1d(0x12f,-0x18,-0x1b,0x52)]=new Map();constructor(_0x2c42d8){this['request']=_0x2c42d8;}[_0x521c92(0x9,-0x41,-0xa6,-0xde)](_0xc12e53){const _0x9d81e1={_0x1e3850:0x262,_0x34d222:0x32d,_0x3817e9:0x266,_0x4d317a:0x5c1,_0x3553ac:0x320,_0x297fdd:0x353,_0x19bfeb:0x335,_0xe191db:0x34e,_0x198e56:0x53c,_0x1e7228:0x2ad,_0x5ec4bd:0x2b1,_0x17be62:0x1bf,_0x33ff7d:0x2ed},_0x149e36={_0x531882:0x147,_0xa246fb:0x57,_0x420fa3:0x565},_0xb76e61={_0x44e2ee:0x188},_0x223492=_0xc12e53['split']('\x0a'),_0x2df111=_0x223492[_0x34caa1(_0x9d81e1._0x1e3850,_0x9d81e1._0x34d222,_0x9d81e1._0x3817e9,0x246)](_0x146962=>_0x146962[_0x1583c8(0x51a,0x5f8,0x520,0x5fc)](_0x34caa1(0x35e,0x2d9,0x287,0x2b8)))?.['slice'](0x6)[_0x1583c8(_0x9d81e1._0x4d317a,0x589,0x570,0x5b4)]();function _0x34caa1(_0x23b05d,_0x348673,_0x904ff1,_0x4a98ff){return _0x3adc1d(_0x23b05d-0x126,_0x23b05d,_0x904ff1-_0xb76e61._0x44e2ee,_0x4a98ff-0x2f2);}function _0x1583c8(_0x3cbb97,_0x3263d5,_0xd630b4,_0x3cfc07){return _0x3adc1d(_0x3cbb97-_0x149e36._0x531882,_0xd630b4,_0xd630b4-_0x149e36._0xa246fb,_0x3cbb97-_0x149e36._0x420fa3);}const _0x4c15c9=_0x223492['filter'](_0x121c3a=>_0x121c3a['startsWith'](_0x1583c8(0x534,0x4e5,0x45a,0x5ef)))[_0x34caa1(_0x9d81e1._0x3553ac,0x17c,0x32d,0x258)](_0x238a22=>_0x238a22[_0x1583c8(0x4b8,0x3df,0x547,0x4fb)](0x5)[_0x34caa1(0x32f,0x22d,0x315,0x2c4)]())['join']('\x0a')[_0x34caa1(_0x9d81e1._0x297fdd,_0x9d81e1._0x19bfeb,0x3ff,_0x9d81e1._0xe191db)]();if(_0x4c15c9[_0x1583c8(0x5b4,_0x9d81e1._0x198e56,0x512,0x50e)]===0x0||_0x4c15c9===_0x34caa1(_0x9d81e1._0x1e7228,0x23d,0x2be,_0x9d81e1._0x5ec4bd))return[];const _0xa3a1af=JSON['parse'](_0x4c15c9);return this[_0x34caa1(0x2c1,0x2d0,_0x9d81e1._0x17be62,0x206)](_0x2df111??String(_0xa3a1af[_0x34caa1(_0x9d81e1._0x1e7228,_0x9d81e1._0x33ff7d,0x301,0x2a8)]??''),_0xa3a1af);}[_0x3adc1d(0x22,0x95,-0x58,-0x51)](_0x55e9f4){const _0x41ac93={_0x3ac0df:0x1ee},_0x18a849={_0x351748:0xf3};function _0x29d18f(_0x135956,_0x1b896e,_0x3f6873,_0x50fc06){return _0x521c92(_0x135956-0x12b,_0x3f6873,_0x3f6873-_0x18a849._0x351748,_0x1b896e- -0x200);}return this['consumeEvent'](String(_0x55e9f4[_0x29d18f(-0x149,-_0x41ac93._0x3ac0df,-0x2d9,-0x13f)]??''),_0x55e9f4);}[_0x3adc1d(-0x44,0x27,-0xcc,-0x89)](){const _0x848e7={_0x1e2e82:0xee,_0xde2d86:0x297,_0x1e4655:0x1df,_0x45af4e:0x273,_0x302f8e:0x127,_0x4e38e4:0xa2,_0x1d8699:0xc7,_0x1e940e:0x1f0,_0x24fa52:0x1cc,_0x50b07f:0x147,_0x53826c:0x2e1,_0x24cb19:0x1e1,_0x507f0a:0x109,_0x708a6e:0x142,_0x39c659:0x87,_0x570cf5:0xcb},_0x6a202a={_0x1683e9:0x114};function _0x2c04e9(_0x1164e0,_0x58a878,_0x4fd51b,_0x4bbc9c){return _0x3adc1d(_0x1164e0-0x1b1,_0x1164e0,_0x4fd51b-0x121,_0x4fd51b-0x284);}function _0x3a8802(_0x1a2e49,_0x5bd20a,_0x2765a2,_0x39dbac){return _0x3adc1d(_0x1a2e49-0x22,_0x39dbac,_0x2765a2-_0x6a202a._0x1683e9,_0x1a2e49- -0xa1);}const _0x355ed4=this[_0x2c04e9(_0x848e7._0x1e2e82,0x1ac,0x131,0x19a)]??{'id':_0x2c04e9(0x139,_0x848e7._0xde2d86,_0x848e7._0x1e4655,_0x848e7._0x45af4e)+Date['now'](),'object':_0x3a8802(-_0x848e7._0x302f8e,-0x75,-_0x848e7._0x4e38e4,-_0x848e7._0x1d8699),'status':_0x3a8802(-_0x848e7._0x1e940e,-_0x848e7._0x24fa52,-_0x848e7._0x50b07f,-0x210),'output':this[_0x2c04e9(_0x848e7._0x53826c,0x2a5,0x200,_0x848e7._0x24cb19)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x355ed4,this[_0x3a8802(-_0x848e7._0x507f0a,-_0x848e7._0x708a6e,-_0x848e7._0x39c659,-_0x848e7._0x570cf5)]);}['isDone'](){const _0x1491af={_0x3f6928:0x422,_0x47d5b9:0x4cd,_0x404237:0x347};function _0x1d80c8(_0x40909e,_0x3c8e0a,_0x2f673a,_0x3d20e3){return _0x521c92(_0x40909e-0xf7,_0x2f673a,_0x2f673a-0x1ce,_0x3c8e0a-0x519);}return this[_0x1d80c8(0x3ca,_0x1491af._0x3f6928,_0x1491af._0x47d5b9,_0x1491af._0x404237)]!==void 0x0;}[_0x521c92(-0x118,-0x5f,-0x6a,-0x90)](_0x31c330,_0x4bc9e2){const _0x25cc1a={_0x441a71:0x2a4,_0x12592b:0x44c,_0x1d6913:0x3c3,_0x5a1c32:0x229,_0x4e1116:0x280,_0x4c3a30:0x330,_0x331b51:0x2db,_0x555f6b:0x37b,_0x2125e6:0x2b9,_0x9ff6dd:0x2b0,_0x5286f3:0x267,_0x5c85f4:0x123,_0x5890bf:0x10f,_0x4148c2:0x15d,_0x74ecba:0x277,_0x482e40:0x1aa,_0x5a4b39:0x14d,_0x31cc2a:0xa5,_0x194817:0x41e,_0x32c915:0x407,_0x504ba8:0x521,_0x1ca958:0x486,_0x5c001f:0x2c1,_0x274f5b:0x274,_0x1ca9e4:0x1b1,_0x4c62e2:0x1df,_0x5d978d:0x148,_0x1322b7:0x209,_0x5b3e62:0x5a3,_0x1d8a68:0x613,_0x45d6a7:0x456,_0x14566f:0x4aa,_0xc20086:0x13d,_0x5cea8b:0x1a7,_0x2e087e:0x15f,_0x26309f:0x21e,_0x7fc30e:0xfd,_0x2d8606:0x31c,_0x3d76ed:0x28b,_0x13b9be:0x1af,_0x456adc:0x199,_0x4b1fc2:0x270,_0x1a9a0b:0x1d3,_0x4d7fe3:0x23c,_0x4b46fc:0x11e,_0x217359:0x153,_0x3162c4:0x1f1,_0xd993a:0x1bd,_0xdea596:0x1a7,_0x4ae705:0x243,_0x10eb32:0x17f,_0x1f2503:0xd3,_0x255a93:0x509,_0x3b6fae:0x4aa,_0x64505a:0x575,_0x1ad6e4:0x1a9,_0x393ac:0x177,_0x511fd0:0x245,_0x433067:0x4d2,_0x3836a8:0x506,_0x5760c7:0x625,_0x408bf1:0x5e4,_0x2fcf76:0x5e8,_0x33aa31:0x592,_0x2eb138:0xbf,_0x555b68:0x242,_0x3fd928:0x331,_0x5ea930:0x194,_0x242eb2:0x242,_0x32771c:0x2aa,_0x5cd704:0x61a,_0x245d0c:0x5b5,_0x173fa0:0x614,_0x20ee7a:0x253,_0x2973ae:0x139,_0x3b10b3:0x1a1,_0x125e49:0x1ff,_0xd706ca:0x364,_0x3ddf42:0x54b,_0x5acb48:0x6d2,_0x3d6226:0x6b6,_0x423fb9:0x1f2,_0x30fec3:0x10a,_0x311522:0x1b,_0x2c12c0:0x56e,_0x192929:0x52f,_0x28cde9:0x1c2,_0x36a8e0:0x4de,_0x5ea557:0x4ae,_0x22bb03:0x488,_0x3547ce:0x5d4,_0x53a26d:0xf1,_0x5edaa9:0x1cc,_0x56f27f:0x297,_0x4e01f2:0x17a,_0xb3e38b:0x215,_0x427125:0x14e,_0x80f41b:0x55a,_0x34ff3b:0x508,_0x34d031:0x4e3,_0x1c8d22:0x497,_0x220c1:0x560,_0x8013b5:0x4c6,_0x24cb35:0xc3,_0x487926:0x189,_0x53c513:0x189,_0x392936:0x62e,_0x3429f8:0x4cc,_0xf974b1:0x4dc,_0x23cddc:0x227,_0x1e1e8b:0x48f,_0x176d86:0x4ab,_0x311013:0x4e2,_0x2e4c24:0x54c,_0x4afab8:0x25c,_0x4ff7b3:0x29f,_0x10c2bf:0x22c,_0x1a7fc1:0x526,_0x33382b:0x3fe,_0x4ffcb6:0x50e,_0x2f1e74:0x3ed,_0x4cfcb1:0x4b6,_0x249832:0x520,_0x50094b:0x577,_0xc63529:0x2d0,_0x461057:0x2ce,_0x4a2433:0x25e,_0x471243:0x5e8,_0x58f35d:0x593,_0x515346:0x53d,_0x4d576f:0x50c,_0x2ca32e:0x449,_0x4bf9dd:0x4d7,_0xc9b221:0x5c8,_0x40983b:0x1e6,_0x2c60d1:0x19d,_0x59c6ec:0x4f4,_0x5042fe:0x4bc,_0x49539a:0x65c,_0x58f2d4:0x651,_0x3b2280:0x247,_0x34d788:0x19d,_0x3861b9:0x289,_0x355bc1:0x208,_0x92aeac:0x562,_0x213f78:0x4aa,_0x167a99:0x4e9,_0x26090c:0x5ac,_0x1fd961:0x199,_0x3c0b42:0x24b,_0xf08392:0x1ec,_0x4a4410:0x234,_0x4acb00:0x5cf,_0x44e078:0x5fb,_0x25f61f:0x628,_0x1a2582:0x608,_0xfb7881:0x5d7,_0x11182e:0x653,_0xf34304:0x503,_0x5ddd68:0x5f6,_0x233904:0x13a,_0x25c608:0x17b,_0x4a85f7:0x18f,_0x5de93b:0x199,_0x3d9ebf:0x62,_0x3a4374:0x52b,_0x38f09b:0x4c4,_0x342dc2:0x8f,_0x5f0ddc:0x97,_0x4daf6f:0x4a5,_0x1c9729:0x4e4,_0x5997de:0x498,_0xf4feb6:0x16d,_0xfa5cd0:0x471,_0x27da7d:0x561,_0x371234:0x523,_0x2c866a:0x650,_0xc00a0f:0x6a9,_0x2752ed:0x54a,_0x1ce3f8:0x60d,_0x137291:0x591,_0x35dd72:0x465,_0x1da6e6:0x153,_0x2c57d7:0x20a,_0x40f5e0:0x1dd,_0xf4d948:0x198,_0x4af905:0x580,_0x403e54:0x449,_0x4882a3:0x18d,_0x3bd41f:0x202,_0x43191a:0x229,_0x20598b:0x18b,_0xc0e94:0x206,_0x2834e6:0x168,_0x321a60:0xc2,_0x183ee9:0x4fe,_0x2de627:0x59a,_0x289601:0x183,_0x217023:0x2a3,_0x19af7f:0x260,_0x5bb214:0x52a,_0x430408:0x3c7,_0x186b5b:0x474,_0x535348:0x472,_0x57fb07:0x475,_0x1d7d62:0x23f,_0xf28ce8:0x178,_0x1c88db:0x92,_0x21bbb5:0x11d,_0x2fcd71:0xe2,_0x5d8526:0x22f,_0xa46e9e:0x52d,_0x3097dd:0x60a,_0x563fbc:0x1e2,_0x2b7d90:0x22d,_0x56ea0c:0x255,_0x276bd9:0x52f,_0x13977b:0x5ca,_0x517edd:0x5e5,_0x57218d:0x534,_0x2a5ae4:0x2e9,_0x44dafa:0x268,_0x2e4c90:0x1b5,_0x4901a7:0x2f5,_0xab0ac9:0x4cf,_0x5a51a4:0x4fb,_0xa6ca26:0x523,_0x4a3e1e:0x12f,_0x26ab2c:0xef,_0x21d6b2:0x11e,_0x523a42:0x50a,_0x5d52b2:0x5ca,_0x4bad5e:0x563,_0x43ee5a:0x176,_0x161b93:0x16d,_0x1a768a:0x1d8,_0x1042f3:0x1b0,_0x4c98b4:0x126,_0x511f7a:0x134,_0xd97f27:0x678,_0x44f666:0x52a,_0x229f7b:0x5c1,_0xf4c44c:0x20f,_0x57a477:0x220,_0x25d7c3:0x5b4,_0x155e0c:0x615,_0x504677:0x2d1,_0x22b092:0x29f,_0x2f7b40:0x238,_0x3dad73:0x41d,_0x3431d0:0x44d,_0x5f3cc2:0x4c8,_0x35404c:0x40f,_0xec5cc0:0x3bb,_0x463c63:0x3fa,_0x1855d2:0x3e1,_0x3cf533:0x438,_0x3ee1fc:0x3e5,_0x135cdf:0x408,_0x552641:0x4b0,_0x23aea2:0x4c7,_0x45c383:0x3a2,_0xaa9267:0x57a,_0x39bd98:0x449,_0x3c9cd6:0x491,_0x1f3321:0x530,_0x58893f:0x49f,_0x45437b:0x474,_0x1166f8:0x2c1,_0x22f82c:0x562,_0x26903e:0x677,_0x4a3f23:0x535,_0x339b56:0x549,_0xd89eb0:0x2ca,_0x2d42fe:0x2a4,_0x2c7504:0x2c7,_0x5e99f8:0x28c,_0x400cf4:0x2ac,_0x1cc3cf:0x121,_0x3bd523:0x117,_0x3dcba0:0x1b8,_0x4c5db2:0x1f5,_0x2459d7:0x18e,_0x584651:0x5ec,_0x590f35:0x58f,_0x209721:0x482,_0xd8dc0b:0x630,_0xb6ee68:0x511,_0x50c721:0x501,_0x41f3fb:0x426,_0x55e162:0x285,_0x3c758b:0x32c,_0x2b76b5:0x290,_0x5e7c5a:0x1ac,_0x4d0699:0x569,_0x41cc07:0x584,_0x19f054:0x503,_0x30ddce:0x58a,_0xb5c451:0x2c1,_0x13de26:0x39b,_0x5e4c79:0x185,_0x5ae483:0x6d};function _0x270ef0(_0x65817d,_0x591d3c,_0x415e70,_0x1e92ff){return _0x3adc1d(_0x65817d-0xaf,_0x591d3c,_0x415e70-0x72,_0x415e70-0x26a);}switch(_0x31c330){case _0x270ef0(0x244,0x22b,0x2aa,_0x25cc1a._0x441a71):{const _0x4a3ba3=typeof _0x4bc9e2['output_index']===_0x4bdb23(_0x25cc1a._0x12592b,0x50f,0x474,_0x25cc1a._0x1d6913)?_0x4bc9e2['output_index']:0x0,_0x247f6b=typeof _0x4bc9e2[_0x270ef0(_0x25cc1a._0x5a1c32,0x27d,_0x25cc1a._0x4e1116,0x351)]===_0x270ef0(0x313,_0x25cc1a._0x4c3a30,0x25e,_0x25cc1a._0x331b51)?_0x4bc9e2[_0x270ef0(0x241,0x1a6,_0x25cc1a._0x4e1116,0x257)]:'';if(_0x247f6b[_0x270ef0(0x331,_0x25cc1a._0x555f6b,_0x25cc1a._0x2125e6,_0x25cc1a._0x9ff6dd)]>0x0){const _0x12d598=this[_0x4bdb23(0x641,0x709,0x627,0x5b8)][_0x270ef0(_0x25cc1a._0x5286f3,0x263,0x1b1,0x164)](_0x4a3ba3)??[];return _0x12d598[_0x270ef0(0xf3,0x12d,_0x25cc1a._0x5c85f4,_0x25cc1a._0x5890bf)](_0x247f6b),this[_0x4bdb23(0x549,0x58a,0x627,0x6d3)][_0x270ef0(0x195,0xd1,0x153,_0x25cc1a._0x4148c2)](_0x4a3ba3,_0x12d598),[{'type':_0x270ef0(0x35f,0x335,_0x25cc1a._0x74ecba,_0x25cc1a._0x482e40),'index':_0x4a3ba3,'text':_0x247f6b}];}break;}case _0x270ef0(_0x25cc1a._0x5a4b39,_0x25cc1a._0x31cc2a,0x191,0x1d2):{const _0x39dd9e=typeof _0x4bc9e2[_0x4bdb23(_0x25cc1a._0x194817,_0x25cc1a._0x32c915,0x4c4,_0x25cc1a._0x504ba8)]==='number'?_0x4bc9e2[_0x270ef0(0x25a,0x17e,0x16d,0x1ae)]:void 0x0,_0x56e9cd=_0x4bc9e2[_0x4bdb23(0x58e,0x4a3,0x4c6,_0x25cc1a._0x1ca958)];if(_0x56e9cd?.[_0x270ef0(_0x25cc1a._0x5c001f,_0x25cc1a._0x274f5b,0x220,0x24a)]==='function_call'&&_0x56e9cd[_0x270ef0(_0x25cc1a._0x1ca9e4,_0x25cc1a._0x4c62e2,0x1a7,_0x25cc1a._0x5d978d)]&&_0x56e9cd[_0x270ef0(0x29e,_0x25cc1a._0x1322b7,0x28b,0x2d8)])return this[_0x4bdb23(_0x25cc1a._0x5b3e62,0x598,_0x25cc1a._0x1d8a68,0x6d5)][_0x4bdb23(0x3d6,_0x25cc1a._0x45d6a7,_0x25cc1a._0x14566f,0x56a)](_0x56e9cd[_0x270ef0(_0x25cc1a._0xc20086,0x238,_0x25cc1a._0x5cea8b,_0x25cc1a._0x2e087e)],{'id':_0x56e9cd[_0x270ef0(_0x25cc1a._0x26309f,0x140,0x1a7,_0x25cc1a._0x7fc30e)],'type':'function','function':{'name':_0x56e9cd[_0x270ef0(_0x25cc1a._0x2d8606,0x354,_0x25cc1a._0x3d76ed,_0x25cc1a._0x13b9be)],'arguments':''}}),_0x39dd9e!==void 0x0&&(this[_0x270ef0(_0x25cc1a._0x456adc,_0x25cc1a._0x4b1fc2,_0x25cc1a._0x1a9a0b,0x271)][_0x270ef0(_0x25cc1a._0x4d7fe3,_0x25cc1a._0x4b46fc,_0x25cc1a._0x217359,_0x25cc1a._0x3162c4)](_0x39dd9e,_0x56e9cd[_0x270ef0(0x1fe,_0x25cc1a._0xd993a,_0x25cc1a._0xdea596,_0x25cc1a._0x4ae705)]),this[_0x270ef0(_0x25cc1a._0x10eb32,0x29a,0x1b6,_0x25cc1a._0x1f2503)][_0x4bdb23(_0x25cc1a._0x255a93,0x3d1,_0x25cc1a._0x3b6fae,_0x25cc1a._0x64505a)](_0x56e9cd[_0x270ef0(_0x25cc1a._0x1ad6e4,0x129,_0x25cc1a._0x5cea8b,0xe2)],_0x39dd9e)),[{'type':_0x270ef0(0x14c,0x1c0,0x10a,_0x25cc1a._0x10eb32),'id':_0x56e9cd[_0x270ef0(_0x25cc1a._0x393ac,0x131,0x1a7,_0x25cc1a._0x511fd0)],'index':_0x39dd9e??0x0,'name':_0x56e9cd['name']}];if(_0x56e9cd?.[_0x4bdb23(_0x25cc1a._0x433067,0x606,0x577,_0x25cc1a._0x3836a8)]===_0x4bdb23(0x569,0x67c,_0x25cc1a._0x5760c7,0x6ca)&&_0x56e9cd['id']){const _0x57bf67=this[_0x4bdb23(_0x25cc1a._0x408bf1,0x6d1,_0x25cc1a._0x2fcf76,_0x25cc1a._0x33aa31)](_0x56e9cd['id'],_0x39dd9e);_0x39dd9e!==void 0x0&&this[_0x270ef0(0x65,_0x25cc1a._0x2eb138,0x11e,0x149)][_0x270ef0(0x23e,_0x25cc1a._0x555b68,0x153,0x11f)](_0x39dd9e,_0x57bf67['id']);}break;}case _0x270ef0(_0x25cc1a._0x3fd928,_0x25cc1a._0x5ea930,_0x25cc1a._0x242eb2,_0x25cc1a._0x32771c):{const _0x123d8c=typeof _0x4bc9e2['call_id']===_0x4bdb23(0x4c7,_0x25cc1a._0x5cd704,_0x25cc1a._0x245d0c,_0x25cc1a._0x173fa0)?_0x4bc9e2['call_id']:typeof _0x4bc9e2['output_index']==='number'?this[_0x270ef0(_0x25cc1a._0x20ee7a,_0x25cc1a._0x2973ae,0x1d3,0x292)][_0x270ef0(0x189,_0x25cc1a._0x3b10b3,_0x25cc1a._0x1ca9e4,0x202)](_0x4bc9e2[_0x270ef0(_0x25cc1a._0x125e49,0x243,0x16d,0x247)]):void 0x0,_0x50947e=typeof _0x4bc9e2[_0x270ef0(0x27c,0x21a,0x280,0x1a2)]==='string'?_0x4bc9e2[_0x270ef0(0x307,_0x25cc1a._0xd706ca,0x280,0x27c)]:'',_0x177274=_0x123d8c?this['toolCalls']['get'](_0x123d8c):void 0x0;if(_0x177274&&_0x50947e[_0x4bdb23(_0x25cc1a._0x3ddf42,_0x25cc1a._0x5acb48,0x610,_0x25cc1a._0x3d6226)]>0x0)return _0x177274['function'][_0x270ef0(0x1c8,0x84,0x138,_0x25cc1a._0x423fb9)]+=_0x50947e,[{'type':_0x270ef0(0x1de,0x1c,_0x25cc1a._0x30fec3,_0x25cc1a._0x311522),'id':_0x177274['id'],'index':this['callIdToOutputIndex'][_0x4bdb23(_0x25cc1a._0x2c12c0,0x516,0x508,_0x25cc1a._0x192929)](_0x177274['id'])??(typeof _0x4bc9e2['output_index']===_0x270ef0(0x1e2,_0x25cc1a._0x28cde9,0x11d,0x40)?_0x4bc9e2[_0x4bdb23(_0x25cc1a._0x36a8e0,_0x25cc1a._0x5ea557,0x4c4,0x538)]:0x0),'inputDelta':_0x50947e}];break;}case _0x4bdb23(0x3b9,0x46c,0x47b,0x3a0):{const _0x337ab1=typeof _0x4bc9e2[_0x4bdb23(_0x25cc1a._0x22bb03,_0x25cc1a._0x3547ce,0x4fe,0x4fa)]==='string'?_0x4bc9e2[_0x270ef0(_0x25cc1a._0x53a26d,_0x25cc1a._0x5edaa9,_0x25cc1a._0x5cea8b,_0x25cc1a._0x56f27f)]:typeof _0x4bc9e2[_0x270ef0(_0x25cc1a._0x4e01f2,0x218,0x16d,_0x25cc1a._0xb3e38b)]===_0x270ef0(0x172,0x19b,0x11d,0x110)?this[_0x270ef0(0x193,0x27d,_0x25cc1a._0x1a9a0b,_0x25cc1a._0x427125)][_0x4bdb23(_0x25cc1a._0x80f41b,0x45f,_0x25cc1a._0x34ff3b,_0x25cc1a._0x34d031)](_0x4bc9e2['output_index']):void 0x0,_0xe2b6a=_0x337ab1?this['toolCalls'][_0x4bdb23(_0x25cc1a._0x1c8d22,_0x25cc1a._0x220c1,_0x25cc1a._0x34ff3b,_0x25cc1a._0x8013b5)](_0x337ab1):void 0x0;_0xe2b6a&&typeof _0x4bc9e2[_0x270ef0(_0x25cc1a._0x24cb35,_0x25cc1a._0x487926,0x138,_0x25cc1a._0x53c513)]===_0x4bdb23(0x586,_0x25cc1a._0x392936,0x5b5,_0x25cc1a._0x3429f8)&&(_0xe2b6a[_0x4bdb23(0x59f,0x448,_0x25cc1a._0xf974b1,0x43d)][_0x4bdb23(0x567,0x464,0x48f,0x4d2)]=_0x4bc9e2[_0x270ef0(_0x25cc1a._0x23cddc,0x1f3,0x138,0x170)]);break;}case'response.output_item.done':{const _0x253fdc=typeof _0x4bc9e2[_0x4bdb23(0x41f,_0x25cc1a._0x1e1e8b,0x4c4,0x456)]===_0x4bdb23(0x3e4,_0x25cc1a._0x176d86,0x474,_0x25cc1a._0x311013)?_0x4bc9e2['output_index']:void 0x0,_0x36e937=_0x4bc9e2['item'];if(_0x36e937?.[_0x4bdb23(_0x25cc1a._0x2e4c24,0x665,0x577,0x563)]==='function_call'){const _0x544d81=_0x36e937['call_id']??(_0x253fdc!==void 0x0?this[_0x270ef0(_0x25cc1a._0x4afab8,0x20b,0x1d3,0x2bc)][_0x270ef0(_0x25cc1a._0x4ff7b3,0x1ab,0x1b1,_0x25cc1a._0x10c2bf)](_0x253fdc):void 0x0),_0x188929=_0x544d81?this['toolCalls']['get'](_0x544d81):void 0x0;_0x188929&&typeof _0x36e937[_0x4bdb23(_0x25cc1a._0x1a7fc1,_0x25cc1a._0x33382b,0x48f,0x414)]==='string'&&(_0x188929['function'][_0x4bdb23(_0x25cc1a._0x4ffcb6,_0x25cc1a._0x2f1e74,0x48f,0x551)]=_0x36e937['arguments']);break;}if(_0x36e937?.[_0x4bdb23(_0x25cc1a._0x4cfcb1,_0x25cc1a._0x249832,_0x25cc1a._0x50094b,0x4e0)]===_0x270ef0(_0x25cc1a._0xc63529,0x27c,_0x25cc1a._0x461057,_0x25cc1a._0x4a2433)&&_0x36e937['id']){const _0x243c96=this[_0x4bdb23(0x659,0x53b,_0x25cc1a._0x471243,_0x25cc1a._0x58f35d)](_0x36e937['id'],_0x253fdc);typeof _0x36e937[_0x4bdb23(_0x25cc1a._0x5ea557,_0x25cc1a._0x515346,0x532,0x4e7)]==='string'&&(_0x243c96[_0x4bdb23(_0x25cc1a._0x4d576f,_0x25cc1a._0x2ca32e,0x4f1,0x548)]=_0x36e937[_0x4bdb23(0x46c,_0x25cc1a._0x4bf9dd,0x532,0x4d8)]);if(Array[_0x4bdb23(_0x25cc1a._0xc9b221,0x5c0,0x5fd,0x5e0)](_0x36e937[_0x270ef0(0x257,_0x25cc1a._0x40983b,_0x25cc1a._0x2c60d1,0xed)]))for(let _0x5b0dde=0x0;_0x5b0dde<_0x36e937[_0x4bdb23(0x44a,0x565,_0x25cc1a._0x59c6ec,_0x25cc1a._0x5042fe)][_0x4bdb23(_0x25cc1a._0x49539a,_0x25cc1a._0x58f2d4,0x610,0x68f)];_0x5b0dde+=0x1){const _0x4642d2=_0x36e937[_0x270ef0(0xbc,_0x25cc1a._0x3b2280,_0x25cc1a._0x34d788,_0x25cc1a._0x3861b9)][_0x5b0dde];_0x4642d2[_0x270ef0(0x2ed,0x26e,0x220,_0x25cc1a._0x355bc1)]===_0x4bdb23(_0x25cc1a._0x92aeac,_0x25cc1a._0x192929,0x5bc,0x4cf)&&typeof _0x4642d2[_0x270ef0(0x255,0x242,0x255,0x175)]==='string'&&_0x243c96['summaryByIndex'][_0x4bdb23(0x3cd,0x422,_0x25cc1a._0x213f78,0x401)](_0x5b0dde,_0x4642d2['text']);}typeof _0x36e937[_0x4bdb23(_0x25cc1a._0x167a99,0x581,_0x25cc1a._0x26090c,0x639)]===_0x4bdb23(0x693,0x647,_0x25cc1a._0x245d0c,0x56c)&&_0x243c96[_0x270ef0(_0x25cc1a._0x1fd961,0x288,_0x25cc1a._0x3c0b42,_0x25cc1a._0xf08392)]['set'](0x0,_0x36e937['text']);}break;}case _0x270ef0(0x82,_0x25cc1a._0x4a4410,0x14b,0x15e):{const _0x2ec006=typeof _0x4bc9e2['delta']===_0x4bdb23(_0x25cc1a._0x4acb00,_0x25cc1a._0x44e078,0x5b5,0x4de)?_0x4bc9e2[_0x4bdb23(_0x25cc1a._0x25f61f,_0x25cc1a._0x1a2582,_0x25cc1a._0xfb7881,_0x25cc1a._0x11182e)]:'',_0x3b6b42=typeof _0x4bc9e2[_0x270ef0(0x2a2,0x1b0,0x1cc,0x145)]===_0x4bdb23(0x546,_0x25cc1a._0xf34304,_0x25cc1a._0x245d0c,_0x25cc1a._0x5ddd68)?_0x4bc9e2[_0x270ef0(_0x25cc1a._0x233904,0x26c,0x1cc,_0x25cc1a._0x25c608)]:typeof _0x4bc9e2['output_index']===_0x270ef0(_0x25cc1a._0x4a85f7,_0x25cc1a._0x5de93b,0x11d,_0x25cc1a._0x3d9ebf)?this['outputIndexToReasoningId'][_0x270ef0(0x12b,0x1cb,_0x25cc1a._0x1ca9e4,0x121)](_0x4bc9e2[_0x4bdb23(0x54f,_0x25cc1a._0x3a4374,_0x25cc1a._0x38f09b,0x521)]):void 0x0,_0x53b2aa=typeof _0x4bc9e2[_0x270ef0(0x8c,_0x25cc1a._0x342dc2,0x16d,_0x25cc1a._0x5f0ddc)]===_0x4bdb23(_0x25cc1a._0x4daf6f,_0x25cc1a._0x1c9729,0x474,_0x25cc1a._0x5997de)?_0x4bc9e2[_0x270ef0(0x1d0,_0x25cc1a._0x3162c4,_0x25cc1a._0xf4feb6,0xcd)]:0x0,_0x41e615=typeof _0x4bc9e2['summary_index']===_0x4bdb23(0x420,_0x25cc1a._0xfa5cd0,0x474,0x3b5)?_0x4bc9e2[_0x4bdb23(0x51f,_0x25cc1a._0x27da7d,0x5b0,_0x25cc1a._0x371234)]:0x0;if(_0x3b6b42&&_0x2ec006[_0x4bdb23(_0x25cc1a._0x2c866a,_0x25cc1a._0xc00a0f,0x610,0x6eb)]>0x0){const _0x1bae6a=this[_0x4bdb23(_0x25cc1a._0x2752ed,0x564,0x5e8,_0x25cc1a._0x1ce3f8)](_0x3b6b42,_0x53b2aa);_0x1bae6a[_0x4bdb23(0x578,_0x25cc1a._0x137291,0x534,_0x25cc1a._0x35dd72)][_0x270ef0(0x117,0xf6,_0x25cc1a._0x1da6e6,0x136)](_0x41e615,''+(_0x1bae6a[_0x270ef0(_0x25cc1a._0x2c57d7,0x1c7,_0x25cc1a._0x40f5e0,_0x25cc1a._0xf4d948)][_0x4bdb23(_0x25cc1a._0x4af905,0x4a5,0x508,_0x25cc1a._0x403e54)](_0x41e615)??'')+_0x2ec006);if(isUserVisibleReasoning(this[_0x270ef0(_0x25cc1a._0x4882a3,0x219,_0x25cc1a._0x3bd41f,_0x25cc1a._0x43191a)]))return[{'type':_0x270ef0(_0x25cc1a._0x20598b,0x2c8,_0x25cc1a._0xc0e94,_0x25cc1a._0x2834e6),'delta':_0x2ec006,'itemId':_0x3b6b42,'outputIndex':_0x53b2aa,'summaryIndex':_0x41e615}];}break;}case _0x270ef0(_0x25cc1a._0x321a60,0x165,0x1a6,0x271):{const _0x13fe63=typeof _0x4bc9e2[_0x4bdb23(0x45a,_0x25cc1a._0x183ee9,0x523,_0x25cc1a._0x2de627)]===_0x270ef0(_0x25cc1a._0x289601,_0x25cc1a._0x217023,_0x25cc1a._0x4a2433,0x1d4)?_0x4bc9e2[_0x270ef0(0x2af,0x24c,0x1cc,_0x25cc1a._0x19af7f)]:typeof _0x4bc9e2[_0x4bdb23(_0x25cc1a._0x5bb214,0x400,_0x25cc1a._0x38f09b,0x545)]===_0x4bdb23(0x53d,_0x25cc1a._0x430408,_0x25cc1a._0x186b5b,_0x25cc1a._0x34d031)?this[_0x4bdb23(_0x25cc1a._0x535348,0x39b,_0x25cc1a._0x57fb07,0x418)][_0x270ef0(0x1ab,0x1cf,0x1b1,0xed)](_0x4bc9e2[_0x270ef0(_0x25cc1a._0x1d7d62,0x199,0x16d,0xbe)]):void 0x0,_0x4a3eee=typeof _0x4bc9e2[_0x270ef0(0x1a4,_0x25cc1a._0xf28ce8,_0x25cc1a._0xf4feb6,_0x25cc1a._0x1c88db)]===_0x270ef0(0x50,0xfe,_0x25cc1a._0x21bbb5,0x33)?_0x4bc9e2['output_index']:0x0,_0x5b8b29=typeof _0x4bc9e2['summary_index']===_0x270ef0(0x135,0x11e,_0x25cc1a._0x21bbb5,_0x25cc1a._0x2fcd71)?_0x4bc9e2[_0x270ef0(0x2da,_0x25cc1a._0x5d8526,0x259,0x29b)]:0x0,_0x1f4730=typeof _0x4bc9e2[_0x4bdb23(0x5b1,_0x25cc1a._0xa46e9e,_0x25cc1a._0x26090c,_0x25cc1a._0x3097dd)]==='string'?_0x4bc9e2[_0x270ef0(_0x25cc1a._0x563fbc,_0x25cc1a._0x2b7d90,_0x25cc1a._0x56ea0c,0x17c)]:'';_0x13fe63&&this[_0x4bdb23(_0x25cc1a._0x276bd9,_0x25cc1a._0x13977b,_0x25cc1a._0x471243,0x6ba)](_0x13fe63,_0x4a3eee)[_0x4bdb23(_0x25cc1a._0x517edd,0x487,_0x25cc1a._0x57218d,0x5a6)][_0x270ef0(0xb5,0x205,_0x25cc1a._0x1da6e6,0x223)](_0x5b8b29,_0x1f4730);break;}case'response.reasoning_text.delta':{const _0x23ec6a=typeof _0x4bc9e2[_0x270ef0(_0x25cc1a._0x2b7d90,0x28e,0x280,0x1e2)]===_0x270ef0(0x257,_0x25cc1a._0x2a5ae4,_0x25cc1a._0x4a2433,_0x25cc1a._0x44dafa)?_0x4bc9e2[_0x270ef0(_0x25cc1a._0x2e4c90,0x1eb,0x280,_0x25cc1a._0x4901a7)]:'',_0x34942b=typeof _0x4bc9e2[_0x4bdb23(_0x25cc1a._0xab0ac9,_0x25cc1a._0x5a51a4,_0x25cc1a._0xa6ca26,0x474)]==='string'?_0x4bc9e2[_0x270ef0(0x1bc,_0x25cc1a._0x4a3e1e,_0x25cc1a._0x5edaa9,0x1c7)]:typeof _0x4bc9e2['output_index']==='number'?this[_0x270ef0(_0x25cc1a._0x4a3e1e,_0x25cc1a._0x26ab2c,_0x25cc1a._0x21d6b2,_0x25cc1a._0x289601)][_0x4bdb23(_0x25cc1a._0x523a42,_0x25cc1a._0x5d52b2,0x508,_0x25cc1a._0x4bad5e)](_0x4bc9e2[_0x270ef0(0xdf,0x1e3,_0x25cc1a._0xf4feb6,0x15b)]):void 0x0,_0x3f9a1e=typeof _0x4bc9e2[_0x270ef0(0x158,0x206,_0x25cc1a._0xf4feb6,_0x25cc1a._0x43ee5a)]==='number'?_0x4bc9e2[_0x270ef0(0xb2,_0x25cc1a._0x7fc30e,_0x25cc1a._0x161b93,0x1b8)]:0x0,_0x37e8c8=typeof _0x4bc9e2['content_index']===_0x270ef0(_0x25cc1a._0x1a768a,0x41,_0x25cc1a._0x21bbb5,_0x25cc1a._0x1042f3)?_0x4bc9e2[_0x270ef0(_0x25cc1a._0x4c98b4,_0x25cc1a._0x511f7a,0x1d9,0x2a3)]:0x0;if(_0x34942b&&_0x23ec6a['length']>0x0){const _0x12e913=this[_0x270ef0(0x338,0x2a5,0x291,0x21c)](_0x34942b,_0x3f9a1e);_0x12e913[_0x4bdb23(_0x25cc1a._0xd97f27,_0x25cc1a._0x44f666,0x5a2,_0x25cc1a._0x229f7b)][_0x270ef0(_0x25cc1a._0xf4c44c,_0x25cc1a._0x57a477,_0x25cc1a._0x217359,0xf8)](_0x37e8c8,''+(_0x12e913['textByIndex'][_0x270ef0(_0x25cc1a._0x2973ae,0x1ad,0x1b1,0x18f)](_0x37e8c8)??'')+_0x23ec6a);if(isUserVisibleReasoning(this[_0x4bdb23(_0x25cc1a._0x25d7c3,_0x25cc1a._0x155e0c,0x559,0x637)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x37e8c8,'delta':_0x23ec6a,'itemId':_0x34942b,'outputIndex':_0x3f9a1e}];}break;}case _0x270ef0(_0x25cc1a._0x504677,_0x25cc1a._0x22b092,_0x25cc1a._0x2f7b40,0x2b4):{const _0x301d27=typeof _0x4bc9e2['item_id']===_0x270ef0(0x1f6,0x1b2,0x25e,0x2a3)?_0x4bc9e2[_0x4bdb23(0x510,0x5d4,0x523,0x607)]:typeof _0x4bc9e2[_0x4bdb23(0x4de,_0x25cc1a._0x3dad73,_0x25cc1a._0x38f09b,_0x25cc1a._0x3431d0)]===_0x4bdb23(_0x25cc1a._0x5f3cc2,_0x25cc1a._0x35404c,0x474,_0x25cc1a._0xec5cc0)?this[_0x4bdb23(_0x25cc1a._0x463c63,0x476,0x475,_0x25cc1a._0x1855d2)][_0x4bdb23(0x5e7,0x50c,_0x25cc1a._0x34ff3b,_0x25cc1a._0x3cf533)](_0x4bc9e2[_0x4bdb23(_0x25cc1a._0x3ee1fc,0x531,0x4c4,0x465)]):void 0x0,_0x39cb32=typeof _0x4bc9e2[_0x4bdb23(_0x25cc1a._0x135cdf,0x5a8,0x4c4,_0x25cc1a._0x552641)]===_0x4bdb23(_0x25cc1a._0x23aea2,_0x25cc1a._0x45c383,0x474,_0x25cc1a._0x5ea557)?_0x4bc9e2[_0x4bdb23(0x4fc,_0x25cc1a._0xaa9267,0x4c4,_0x25cc1a._0x39bd98)]:0x0,_0x50625f=typeof _0x4bc9e2[_0x4bdb23(_0x25cc1a._0x3c9cd6,0x45b,_0x25cc1a._0x1f3321,0x4c1)]===_0x4bdb23(0x55d,_0x25cc1a._0x58893f,_0x25cc1a._0x45437b,_0x25cc1a._0x4bad5e)?_0x4bc9e2[_0x270ef0(0x1a2,_0x25cc1a._0x1166f8,0x1d9,_0x25cc1a._0xb3e38b)]:0x0,_0x5c5b22=typeof _0x4bc9e2[_0x4bdb23(0x5b3,_0x25cc1a._0x22f82c,0x5ac,_0x25cc1a._0x26903e)]===_0x4bdb23(0x570,_0x25cc1a._0x4a3f23,0x5b5,_0x25cc1a._0x339b56)?_0x4bc9e2[_0x270ef0(0x313,_0x25cc1a._0xd89eb0,_0x25cc1a._0x56ea0c,_0x25cc1a._0x2d42fe)]:'';_0x301d27&&this[_0x270ef0(_0x25cc1a._0x2c7504,_0x25cc1a._0x5e99f8,0x291,_0x25cc1a._0x400cf4)](_0x301d27,_0x39cb32)['textByIndex'][_0x270ef0(0xd4,0x14d,_0x25cc1a._0x217359,0x129)](_0x50625f,_0x5c5b22);break;}case'response.completed':{this[_0x270ef0(0x7a,_0x25cc1a._0x1cc3cf,_0x25cc1a._0x3bd523,0x95)]=_0x4bc9e2[_0x270ef0(0x103,0x1fd,0x1e4,_0x25cc1a._0x3dcba0)];break;}case _0x270ef0(_0x25cc1a._0x4c5db2,_0x25cc1a._0x2459d7,0x1b9,0x296):{const _0x11903b=_0x4bc9e2[_0x4bdb23(_0x25cc1a._0x584651,_0x25cc1a._0x590f35,0x53b,_0x25cc1a._0x209721)];throw new ProviderStreamEventError(_0x11903b?.[_0x4bdb23(0x6b8,0x5c0,0x5e7,_0x25cc1a._0xd8dc0b)]?.['message']??_0x4bdb23(_0x25cc1a._0xb6ee68,_0x25cc1a._0x50c721,0x511,_0x25cc1a._0x41f3fb),{'code':_0x11903b?.[_0x270ef0(_0x25cc1a._0x55e162,_0x25cc1a._0x3c758b,_0x25cc1a._0x2b76b5,0x1f9)]?.[_0x270ef0(0xf1,0x11f,_0x25cc1a._0x5e7c5a,0x166)],'retryable':!![]});}case'error':{const _0x4a1adf=_0x4bc9e2[_0x4bdb23(0x68a,_0x25cc1a._0xc00a0f,0x5e7,0x66e)];throw new ProviderStreamEventError(_0x4a1adf?.['message']??_0x4bdb23(_0x25cc1a._0x4d0699,0x5da,_0x25cc1a._0xb6ee68,_0x25cc1a._0x41cc07),{'code':_0x4a1adf?.[_0x4bdb23(0x5d8,0x510,_0x25cc1a._0x19f054,_0x25cc1a._0x30ddce)],'retryable':!![],'status':typeof _0x4bc9e2[_0x270ef0(0x216,0x33d,_0x25cc1a._0xb5c451,_0x25cc1a._0x13de26)]===_0x270ef0(_0x25cc1a._0x5e4c79,_0x25cc1a._0x5ae483,0x11d,0x88)?_0x4bc9e2['status']:void 0x0});}}function _0x4bdb23(_0x1bd16b,_0x1a0771,_0x2a1171,_0x3ab80b){return _0x3adc1d(_0x1bd16b-0xf6,_0x1bd16b,_0x2a1171-0xe0,_0x2a1171-0x5c1);}return[];}['buildPartialOutput'](){const _0x108e73={_0x3a740c:0x185,_0x54b1c2:0x11e,_0x4d7f9b:0x26a,_0x4df607:0x22d,_0x206112:0x2f5,_0x3cc3c2:0x21f,_0x51e41a:0x2cb,_0x137272:0x2dd,_0x2707c0:0x3a0,_0x598f64:0x2a0,_0x57b1a8:0x348,_0x8b6390:0x24c,_0x275fe3:0x2f4,_0x5ca29b:0x447,_0x4111a2:0x32b,_0x472082:0x47c,_0x287273:0x3c0,_0xa22580:0x135,_0x3ff316:0x35c,_0x45a9e9:0x112,_0x3681c1:0xf2,_0x4ace97:0x433,_0x10616d:0x3ff,_0x4454e5:0x3e0,_0x2a3086:0x38c,_0x503ff7:0x471,_0x3c1e5f:0x4b3,_0x4cd8f9:0x45f,_0x2a4423:0x2f9,_0x523bd2:0x376,_0x61cc62:0x2b3,_0xfaff35:0x21e,_0x28e775:0x173,_0xad276e:0x350,_0x1144ca:0x47d,_0x1d88bb:0x372,_0x1b8b75:0x400,_0x3696ac:0x3fb,_0x568c27:0x545,_0x595517:0x149,_0x34c6b4:0x250,_0x58f897:0x2cd,_0x2d187e:0x1e0,_0x28ba59:0x42e,_0x36b609:0x385,_0x5cb28a:0x65,_0x40630d:0x132,_0x10f237:0x13a,_0x393a58:0x1b3,_0x20867a:0x21b,_0x3497ac:0x1eb,_0x51ac0c:0x2d8,_0x402c4a:0x373,_0x4b78d5:0x36b,_0x4b2688:0x55a,_0x3ddcfd:0x370,_0xe8bec4:0x381,_0x500746:0x4ad,_0x288731:0x440,_0x1a0ddd:0x40c,_0xeaf13:0x39d,_0x55b23d:0x33a},_0x33be80={_0x375e6e:0x25c},_0x584e86={_0x10771d:0x1d,_0x42b999:0x184},_0x531d06={_0x258288:0x1d3,_0x15f5ea:0x3c3};function _0x3efff9(_0x452af5,_0x453160,_0x548cfb,_0x30690a){return _0x521c92(_0x452af5-_0x531d06._0x258288,_0x452af5,_0x548cfb-0x13f,_0x30690a-_0x531d06._0x15f5ea);}const _0x5deec0=[];function _0x277cb6(_0x5a1c15,_0x5406bd,_0x1000f8,_0x30c2a4){return _0x3adc1d(_0x5a1c15-_0x584e86._0x10771d,_0x5a1c15,_0x1000f8-0xec,_0x5406bd- -_0x584e86._0x42b999);}for(const [_0x412710,_0xc721a6]of this[_0x277cb6(-_0x108e73._0x3a740c,-_0x108e73._0x54b1c2,-0x1aa,-0x6c)]['entries']()){const _0x28c5d7=_0xc721a6[_0x3efff9(_0x108e73._0x4d7f9b,0x3c3,_0x108e73._0x4df607,_0x108e73._0x206112)]('');if(_0x28c5d7['length']===0x0)continue;_0x5deec0[_0x277cb6(-_0x108e73._0x3cc3c2,-_0x108e73._0x51e41a,-_0x108e73._0x137272,-0x364)]({'index':_0x412710,'item':{'type':'message','role':_0x3efff9(0x2dd,0x46e,0x41b,_0x108e73._0x2707c0),'content':[{'type':_0x3efff9(_0x108e73._0x598f64,0x3bc,0x356,_0x108e73._0x57b1a8),'text':_0x28c5d7}]}});}for(const _0x2cbf64 of this[_0x3efff9(0x24d,0x30e,_0x108e73._0x8b6390,_0x108e73._0x275fe3)][_0x3efff9(0x3ab,_0x108e73._0x5ca29b,0x3bd,0x469)]()){_0x5deec0['push']({'index':_0x2cbf64[_0x3efff9(_0x108e73._0x4111a2,0x4a9,_0x108e73._0x472082,_0x108e73._0x287273)]??_0x5deec0[_0x277cb6(-0x13e,-_0x108e73._0xa22580,-0x187,-0x13f)],'item':{'type':'reasoning','id':_0x2cbf64['id'],..._0x2cbf64[_0x277cb6(-_0x108e73._0x8b6390,-0x254,-0x2f4,-0x2ec)]?{'encrypted_content':_0x2cbf64[_0x3efff9(_0x108e73._0x3ff316,0x315,0x281,0x34f)]}:{},..._0x2cbf64['summaryByIndex'][_0x277cb6(-0x14a,-0x126,-_0x108e73._0x45a9e9,-_0x108e73._0x3681c1)]>0x0?{'summary':Array[_0x3efff9(_0x108e73._0x4ace97,0x363,_0x108e73._0x10616d,_0x108e73._0x4454e5)](_0x2cbf64[_0x3efff9(0x3f3,_0x108e73._0x2a3086,0x393,0x392)][_0x3efff9(_0x108e73._0x503ff7,0x2f8,_0x108e73._0x3c1e5f,0x3c3)]())[_0x3efff9(_0x108e73._0x4cd8f9,_0x108e73._0x2a4423,0x360,_0x108e73._0x523bd2)]((_0xfd5ede,_0x473034)=>_0xfd5ede[0x0]-_0x473034[0x0])[_0x277cb6(-_0x108e73._0x61cc62,-_0x108e73._0xfaff35,-_0x108e73._0x28e775,-0x27c)](([,_0x31b3f9])=>{function _0x1cd0f6(_0x4307a0,_0x2fe243,_0x2436f4,_0x45ece9){return _0x3efff9(_0x4307a0,_0x2fe243-0x6c,_0x2436f4-0x1b4,_0x2fe243- -0x1be);}return{'type':_0x1cd0f6(0x181,_0x33be80._0x375e6e,0x31d,0x17b),'text':_0x31b3f9};})}:{},..._0x2cbf64[_0x3efff9(_0x108e73._0xad276e,_0x108e73._0x1144ca,_0x108e73._0x1d88bb,_0x108e73._0x1b8b75)][_0x3efff9(_0x108e73._0x3696ac,_0x108e73._0x568c27,0x3dd,_0x108e73._0x1144ca)]>0x0?{'text':Array[_0x277cb6(-_0x108e73._0x595517,-0x1c3,-0x125,-_0x108e73._0x34c6b4)](_0x2cbf64['textByIndex'][_0x277cb6(-_0x108e73._0x58f897,-_0x108e73._0x2d187e,-0x1da,-0x266)]())['sort']((_0x2b1591,_0x3be823)=>_0x2b1591[0x0]-_0x3be823[0x0])[_0x3efff9(0x2a7,_0x108e73._0x28ba59,0x3d2,_0x108e73._0x36b609)](([,_0x425feb])=>_0x425feb)['join']('')}:{}}});}for(const _0x3253ff of this[_0x277cb6(-_0x108e73._0x5cb28a,-_0x108e73._0x40630d,-0x16c,-0xb6)][_0x277cb6(-0x19d,-_0x108e73._0x10f237,-_0x108e73._0x393a58,-_0x108e73._0x20867a)]()){_0x5deec0[_0x3efff9(0x399,_0x108e73._0x3497ac,0x345,_0x108e73._0x51ac0c)]({'index':this[_0x3efff9(_0x108e73._0x402c4a,0x30b,0x3f6,_0x108e73._0x4b78d5)][_0x277cb6(-0x2d4,-0x23d,-0x20e,-0x159)](_0x3253ff['id'])??_0x5deec0[_0x3efff9(_0x108e73._0x4b2688,0x424,0x4a0,0x46e)],'item':{'type':_0x277cb6(-_0x108e73._0x3ddcfd,-0x288,-0x2f8,-0x242),'call_id':_0x3253ff['id'],'name':_0x3253ff['function'][_0x3efff9(_0x108e73._0xe8bec4,_0x108e73._0x500746,0x390,_0x108e73._0x288731)],'arguments':_0x3253ff[_0x3efff9(0x362,_0x108e73._0x1a0ddd,_0x108e73._0xeaf13,_0x108e73._0x55b23d)]['arguments']}});}return _0x5deec0['sort']((_0x48947b,_0x439431)=>_0x48947b[_0x277cb6(-0x182,-0x245,-0x30c,-0x2cb)]-_0x439431['index'])['map'](_0x2a5ab2=>_0x2a5ab2['item']);}[_0x3adc1d(0x9e,-0x95,-0x3d,0x27)](_0x3095ad,_0x57fa68){const _0x323975={_0x44949e:0x55,_0x25df19:0xe4,_0x56b8bd:0x11f,_0x5478e3:0x446,_0x8573b3:0x3ba,_0xc94284:0x22f,_0x27fbdb:0x31f,_0x27a98b:0x3a4,_0x5325f1:0x25a,_0x105342:0x12c,_0x533f8c:0x12f,_0x4b0a4c:0x2d,_0x361732:0x115,_0x1d9544:0x8c,_0x8e524b:0x15b},_0x1fecf7={_0x54c6f5:0x5e,_0xc8482b:0x1d8},_0x43e3aa={_0x236cf4:0x131},_0x7cfc64=this['reasoningItems'][_0x4c77b4(0x1c5,_0x323975._0x44949e,_0x323975._0x25df19,_0x323975._0x56b8bd)](_0x3095ad);if(_0x7cfc64)return _0x57fa68!==void 0x0&&(_0x7cfc64[_0x307584(0x3d7,_0x323975._0x5478e3,0x2e9,_0x323975._0x8573b3)]=_0x57fa68,this[_0x307584(0x2ea,0x34f,_0x323975._0xc94284,0x270)][_0x307584(_0x323975._0x27fbdb,_0x323975._0x27a98b,_0x323975._0x5325f1,0x2b3)](_0x57fa68,_0x3095ad)),_0x7cfc64;function _0x307584(_0x2aa626,_0x51b7b9,_0xa0255f,_0x43d6b9){return _0x3adc1d(_0x2aa626-0xc9,_0x51b7b9,_0xa0255f-_0x43e3aa._0x236cf4,_0x2aa626-0x436);}const _0x1d515e={'id':_0x3095ad,'outputIndex':_0x57fa68,'summaryByIndex':new Map(),'textByIndex':new Map()};this['reasoningItems'][_0x4c77b4(_0x323975._0x105342,_0x323975._0x533f8c,-_0x323975._0x4b0a4c,0xc1)](_0x3095ad,_0x1d515e);function _0x4c77b4(_0xe765e6,_0x12d8a7,_0x21764f,_0x20b5c3){return _0x3adc1d(_0xe765e6-_0x1fecf7._0x54c6f5,_0x21764f,_0x21764f-0x14d,_0x20b5c3-_0x1fecf7._0xc8482b);}return _0x57fa68!==void 0x0&&this[_0x4c77b4(_0x323975._0x361732,-0x23,0x7c,_0x323975._0x1d9544)][_0x4c77b4(0xfd,_0x323975._0x8e524b,0x14e,0xc1)](_0x57fa68,_0x3095ad),_0x1d515e;}};function createOpenAiResponsesStreamParser(_0x28559d){return new OpenAiResponsesStreamParser(_0x28559d);}function createOpenAiSurfaces(_0x12d75b={}){const _0x347b04={_0x38f88c:0x4b1,_0x46526c:0x499,_0xd2b23c:0x32f,_0x19f75f:0x3f8,_0x16762b:0x4b9,_0x2f025e:0x530,_0x55c484:0x4e6,_0x16c35f:0x584,_0x1b3ced:0x53e,_0x282353:0x62c,_0x4c84fb:0x458,_0x35df22:0x3f0,_0x291e4c:0x401,_0x59a80:0x4ed,_0x570e7f:0x4ac,_0x473dfe:0x3f0,_0x45cddb:0x4d9,_0x265faa:0x48e},_0x1967d8={_0x447c89:0x1a0,_0x4d7710:0x183},_0x179500={_0x498c75:0x115},_0x35b68c={_0x1f0961:0xd,_0x516baf:0x553},_0x22d9d6={_0x2765ba:0x150},_0x4eb76b=_0x12d75b[_0x3f72af(_0x347b04._0x38f88c,_0x347b04._0x46526c,0x416,_0x347b04._0xd2b23c)]??_0x3f72af(0x49e,0x343,_0x347b04._0x19f75f,_0x347b04._0x16762b),_0x5f49dc=_0x12d75b['responsesPath']??_0x3f72af(_0x347b04._0x2f025e,_0x347b04._0x55c484,0x5bc,_0x347b04._0x16c35f);function _0x25b59d(_0x241720,_0xd0fc2a,_0x3a5bf3,_0x310dcb){return _0x3adc1d(_0x241720-0x6,_0xd0fc2a,_0x3a5bf3-_0x22d9d6._0x2765ba,_0x310dcb- -0xad);}function _0x3f72af(_0x1b00ad,_0x5c98ac,_0xa6b11d,_0x46f122){return _0x3adc1d(_0x1b00ad-0x77,_0x1b00ad,_0xa6b11d-_0x35b68c._0x1f0961,_0xa6b11d-_0x35b68c._0x516baf);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x3f72af(0x4a2,_0x347b04._0x1b3ced,0x544,_0x347b04._0x282353),'createRequest'(_0x340bef){return{'accept':'application/json','body':createChatRequestBody(_0x340bef,![]),'path':_0x4eb76b};},'parseResponse'(_0x4dddeb){return parseChatCompletionResponse(_0x4dddeb);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x3f72af(0x303,_0x347b04._0x4c84fb,_0x347b04._0x35df22,_0x347b04._0x291e4c),'createRequest'(_0x442ddc){return{'accept':'text/event-stream','body':createChatRequestBody(_0x442ddc,!![]),'path':_0x4eb76b};},'createStreamParser'(_0x1542ea){return new OpenAiChatCompletionsStreamParser(_0x1542ea);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x3f72af(0x4e8,0x478,0x544,_0x347b04._0x59a80),'createRequest'(_0x6498c4){const _0x27c6ed={_0x22974b:0x62};function _0x332d39(_0x52978d,_0x224d7b,_0x2c7b14,_0x3cda3a){return _0x25b59d(_0x52978d-0xbe,_0x224d7b,_0x2c7b14-0xb6,_0x2c7b14-_0x27c6ed._0x22974b);}return{'accept':_0x332d39(-_0x179500._0x498c75,-0x4b,-0x82,-0x12a),'body':createResponsesRequestBody(_0x6498c4,![]),'path':_0x5f49dc};},'parseResponse'(_0xb733d9,_0x3bcaf7){return parseResponsesResponse(_0xb733d9,_0x3bcaf7);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x3f72af(_0x347b04._0x570e7f,0x3a6,_0x347b04._0x473dfe,_0x347b04._0x45cddb),'createRequest'(_0x45c010){const _0x512c05={_0x266d21:0x184};function _0x5a6965(_0x5ce021,_0xac66a,_0x5c5094,_0x32ef1a){return _0x3f72af(_0x32ef1a,_0xac66a-0xa6,_0x5c5094- -0x70f,_0x32ef1a-_0x512c05._0x266d21);}return{'accept':_0x5a6965(-0xb3,-_0x1967d8._0x447c89,-0x173,-_0x1967d8._0x4d7710),'body':createResponsesRequestBody(_0x45c010,!![]),'path':_0x5f49dc};},'createStreamParser'(_0x4710f3){return new OpenAiResponsesStreamParser(_0x4710f3);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x3f72af(0x43d,_0x347b04._0x265faa,0x3e2,0x43c),'createRequest'(_0x5a21bb){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x5a21bb),'path':_0x5f49dc};},'createStreamParser'(_0x23b659){return createOpenAiResponsesStreamParser(_0x23b659);}}];}var OpenAiProviderAdapter=class{['headerResolver'];constructor(_0x13a159){const _0x5d9eeb={_0x1fd82d:0x48b,_0x121db2:0x51e,_0x589320:0x57a},_0x1d110a={_0x34f1c6:0x1c2};function _0x571cf6(_0x81a6c3,_0xb1a258,_0x78d220,_0x7dd16f){return _0x3adc1d(_0x81a6c3-_0x1d110a._0x34f1c6,_0x81a6c3,_0x78d220-0x12c,_0x78d220-0x58c);}this[_0x571cf6(_0x5d9eeb._0x1fd82d,0x596,_0x5d9eeb._0x121db2,_0x5d9eeb._0x589320)]=_0x13a159;}['createMissingCredentialError'](){const _0x371394={_0x445e73:0x1a5,_0x48bb13:0x1c8},_0x3d244f={_0x49b202:0x138};function _0x192574(_0x167f7c,_0x301eb5,_0x5c3415,_0x45bfce){return _0x3adc1d(_0x167f7c-0x106,_0x301eb5,_0x5c3415-_0x3d244f._0x49b202,_0x167f7c-0x238);}return new Error(_0x192574(_0x371394._0x445e73,0x27c,_0x371394._0x48bb13,0x211));}async[_0x521c92(-0x158,-0x1f1,-0xea,-0x103)](_0x4d8279,_0x39d71e){const _0x168bad={_0xf553df:0x131,_0x5dde27:0x3e,_0x4912b5:0x52,_0xbc41ad:0xbf,_0x1ff583:0x20e,_0x46a44a:0x266,_0xb4f63b:0xbb,_0x39e0a6:0xbc,_0x482e72:0xb7,_0x490926:0x1d,_0x21107b:0x3b,_0x16cac9:0x178,_0xab07c8:0x7e,_0x57c2fc:0xc7,_0x3c5990:0x12b,_0x11c029:0x156,_0x2f637f:0x1ad,_0x21f21c:0xf4,_0xca9395:0xbb,_0x36eed8:0xd2,_0x4abfea:0xb,_0x12676b:0x149,_0x4da0fc:0xdc,_0x270c82:0x118,_0x29eb91:0xed,_0x2616b3:0x155,_0x378f36:0x21e,_0x566b29:0x26,_0x223f33:0x9a,_0x5a9646:0x124},_0x243ec4={_0x16250d:0x1a1,_0x1522be:0x155},_0x457afc=new Headers();function _0xa93c1e(_0x23a63a,_0x299c00,_0x5d8045,_0x2e3cd5){return _0x3adc1d(_0x23a63a-0x118,_0x299c00,_0x5d8045-0x149,_0x23a63a-0xd6);}function _0xb91951(_0x568559,_0x2e7e64,_0x2e7727,_0x2d6e4c){return _0x521c92(_0x568559-0x1c2,_0x2d6e4c,_0x2e7727-_0x243ec4._0x16250d,_0x568559-_0x243ec4._0x1522be);}_0x457afc[_0xa93c1e(-0x41,-_0x168bad._0xf553df,-0x5f,0xa1)]('accept',_0x39d71e['accept']),_0x457afc['set'](_0xa93c1e(_0x168bad._0x5dde27,-0x7b,_0x168bad._0x4912b5,_0x168bad._0xbc41ad),_0xb91951(0x1aa,0x297,_0x168bad._0x1ff583,_0x168bad._0x46a44a)+_0x4d8279[_0xb91951(_0x168bad._0xb4f63b,_0x168bad._0x39e0a6,_0x168bad._0x482e72,_0x168bad._0x490926)][_0xa93c1e(0x11b,0x48,0x170,_0x168bad._0x21107b)]);_0x39d71e['includeContentType']!==![]&&_0x457afc['set'](_0xb91951(0xb0,0x196,_0x168bad._0x16cac9,_0x168bad._0xab07c8),_0xa93c1e(0x9f,_0x168bad._0x57c2fc,_0x168bad._0x3c5990,0xa1));const _0x23f3b3=await this[_0xb91951(0x143,_0x168bad._0x11c029,0x177,_0x168bad._0x2f637f)]?.({'body':_0x4d8279[_0xb91951(0x8d,0xe2,_0x168bad._0x21f21c,_0x168bad._0x39e0a6)],'credential':_0x4d8279[_0xb91951(_0x168bad._0xca9395,_0x168bad._0x36eed8,0x15c,-_0x168bad._0x4abfea)],'request':_0x4d8279[_0xb91951(_0x168bad._0x12676b,_0x168bad._0x4da0fc,0x1e3,_0x168bad._0x270c82)],'session':_0x4d8279[_0xb91951(0x142,_0x168bad._0x29eb91,_0x168bad._0x2616b3,_0x168bad._0x378f36)],'stream':_0x4d8279[_0xa93c1e(0xe8,0xff,0x2b,0x11a)]});for(const [_0x362a30,_0x3ab0a1]of Object[_0xa93c1e(0x7a,0xe6,-_0x168bad._0x566b29,-0xf)](_0x23f3b3??{})){_0x457afc[_0xb91951(_0x168bad._0x223f33,0x9,_0x168bad._0x5a9646,0xa7)](_0x362a30,_0x3ab0a1);}return _0x457afc;}[_0x3adc1d(-0x58,0x46,0xe,-0x6a)](_0x1d02d6){return _0x1d02d6;}['resolveBaseUrl'](_0x3b912c,_0x2bf3a0){return resolveSessionBaseUrl(_0x3b912c,_0x2bf3a0);}[_0x3adc1d(-0x158,-0x72,0x1f,-0xd1)](_0x3e5870,_0x371900){return resolveApiCredential(_0x3e5870,_0x371900);}async[_0x3adc1d(-0xec,0x14,-0xdf,-0xd)](_0x3c178b){return await createOpenAiApiError(_0x3c178b);}},OpenAiModel=class extends RoutedModel{[_0x521c92(-0x8f,-0x30,-0xe0,-0xed)]=new Map();[_0x521c92(-0x1c2,-0xad,-0x165,-0xe1)];[_0x3adc1d(0x6,-0x6a,-0x6a,0x65)];constructor(_0xeb3098={}){const _0x24bb2a={_0x86eb0f:0xc9,_0x1450ae:0x11e,_0x4bdaa2:0x1fb,_0x4bab11:0x1b6,_0x5ca082:0x23b,_0x302bd7:0xb3,_0x54587c:0x3d,_0x238c58:0x5e,_0x1f9c61:0x5b,_0x85276c:0x113,_0xb0c21b:0x72,_0x48223f:0x333,_0x450d0e:0x303,_0x38eb79:0x1ad,_0x19ec0b:0x17f,_0x1ddba0:0x1d3,_0x46d9c6:0x200,_0x4762c9:0x1b7,_0x610b3a:0x21a,_0x4b1c3d:0x141,_0x4ff766:0x260,_0x5525f6:0x215,_0x3fbbb8:0x2c3,_0x47a81c:0x2d5,_0x518f83:0x18d,_0x48f871:0x25b,_0x4ed732:0x2ab,_0x3368ee:0x2b0,_0x5dce7d:0x7e,_0x2af255:0x369,_0x123e51:0x356},_0x429623={_0x1c4b2e:0x18f,_0x38ecbf:0x15a},_0x3bda18={_0x31aa46:0x2ce},_0x4a91a3=_0xeb3098[_0x521f8c(_0x24bb2a._0x86eb0f,0x140,0xec,_0x24bb2a._0x1450ae)]??_0x320017(_0x24bb2a._0x4bdaa2,0x2c8,0x12a,0x20e),_0x10ada8=_0xeb3098[_0x320017(_0x24bb2a._0x4bab11,0x16f,0x110,_0x24bb2a._0x5ca082)]??getDefaultMaxTokens(),_0x437190=_0xeb3098[_0x521f8c(0x79,_0x24bb2a._0x302bd7,-_0x24bb2a._0x54587c,-_0x24bb2a._0x238c58)]??_0x521f8c(_0x24bb2a._0x1f9c61,0xd8,_0x24bb2a._0x85276c,-_0x24bb2a._0xb0c21b),_0x4f596e=_0xeb3098[_0x320017(_0x24bb2a._0x48223f,_0x24bb2a._0x450d0e,0x296,0x3a3)]??_0x521f8c(0x21f,_0x24bb2a._0x38eb79,_0x24bb2a._0x19ec0b,_0x24bb2a._0x1ddba0);super({'apiKey':_0xeb3098[_0x320017(0x168,_0x24bb2a._0x46d9c6,0xc3,0x14e)],'baseUrl':trimTrailingSlashes(_0xeb3098['baseUrl']??_0x521f8c(0x217,0x1eb,0x1f4,_0x24bb2a._0x4762c9)),'fetch':_0xeb3098['fetch'],'maxTokens':_0x10ada8,'model':_0x4a91a3,'reasoning':_0xeb3098[_0x521f8c(_0x24bb2a._0x610b3a,_0x24bb2a._0x4b1c3d,0x18a,0x277)],'providerAdapter':new OpenAiProviderAdapter(_0xeb3098[_0x320017(_0x24bb2a._0x4ff766,_0x24bb2a._0x5525f6,_0x24bb2a._0x3fbbb8,_0x24bb2a._0x47a81c)]),'providerSessionResolver':_0xeb3098[_0x521f8c(_0x24bb2a._0x518f83,_0x24bb2a._0x48f871,0x17e,0x161)],'requestMutators':_0xeb3098[_0x320017(0x1c5,0x159,0x105,_0x24bb2a._0x4ed732)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0xeb3098[_0x521f8c(0x1d1,0x256,_0x24bb2a._0x3368ee,0xf0)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x437190,'responsesPath':_0x4f596e}),'webSocketFactory':_0xeb3098[_0x521f8c(0x167,_0x24bb2a._0x5dce7d,0x150,0xcd)]});function _0x320017(_0x289817,_0xe2a51b,_0x1b0c92,_0x36f4b9){return _0x3adc1d(_0x289817-0x189,_0x1b0c92,_0x1b0c92-0x17c,_0x289817-_0x3bda18._0x31aa46);}function _0x521f8c(_0x43b91d,_0x421ce8,_0x4cb0b5,_0x37c643){return _0x521c92(_0x43b91d-0x64,_0x421ce8,_0x4cb0b5-_0x429623._0x1c4b2e,_0x43b91d-_0x429623._0x38ecbf);}this['chatCompletionsPath']=_0x437190,this[_0x320017(0x333,_0x24bb2a._0x450d0e,_0x24bb2a._0x2af255,_0x24bb2a._0x123e51)]=_0x4f596e;}[_0x3adc1d(-0xd1,-0x13d,-0x104,-0x7c)](_0x1cebd2,_0x327a3e){const _0x566693={_0x40ef42:0x1cf,_0x53ac88:0x13e},_0x56ea90={_0x3b5898:0x1b4,_0x15316c:0x195};function _0x266e57(_0x1e75ba,_0x1c448d,_0x2e7e50,_0x5369b2){return _0x3adc1d(_0x1e75ba-0x32,_0x5369b2,_0x2e7e50-_0x56ea90._0x3b5898,_0x2e7e50-_0x56ea90._0x15316c);}return this[_0x266e57(0x1e1,0x196,_0x566693._0x40ef42,_0x566693._0x53ac88)](_0x1cebd2,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x327a3e);}[_0x521c92(0xf0,-0xc1,0x68,0x26)](_0x3d1c58,_0x55bebf){const _0xde074f={_0x5883a0:0x58c};function _0x5dc161(_0x383daa,_0x2f186b,_0x4fe30f,_0x30c200){return _0x3adc1d(_0x383daa-0x1a4,_0x4fe30f,_0x4fe30f-0x18e,_0x383daa-0x466);}return this[_0x5dc161(0x4a0,_0xde074f._0x5883a0,0x572,0x4c9)](_0x3d1c58,OPENAI_RESPONSES_SURFACE,_0x55bebf);}['completeViaResponsesWebSocketSurface'](_0x3b10e4,_0x27c31f){const _0x4ddc52={_0x361d16:0x5f5,_0x14c68b:0x5f2},_0x108a52={_0x3c07f7:0x1ba,_0xdfd894:0x17a};function _0x1c1f61(_0x5df224,_0x192055,_0xc30801,_0x11f02d){return _0x521c92(_0x5df224-_0x108a52._0x3c07f7,_0x192055,_0xc30801-_0x108a52._0xdfd894,_0x5df224-0x55f);}return this[_0x1c1f61(_0x4ddc52._0x361d16,0x58c,0x61e,_0x4ddc52._0x14c68b)](_0x3b10e4,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x27c31f);}[_0x3adc1d(-0x45,-0x1d,-0x1a0,-0xf7)](_0x471ad7,_0x423a1f){const _0x428a90={_0x40ec69:0x3d2,_0x295863:0x37b,_0x5e704d:0x37f},_0x312f6a={_0x484a42:0x147,_0x1d38f5:0xba};function _0x2380ad(_0x18c273,_0x5870bf,_0x96bc35,_0x388360){return _0x521c92(_0x18c273-_0x312f6a._0x484a42,_0x388360,_0x96bc35-_0x312f6a._0x1d38f5,_0x5870bf-0x389);}return this[_0x2380ad(0x46b,_0x428a90._0x40ec69,_0x428a90._0x295863,_0x428a90._0x5e704d)](_0x471ad7,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x423a1f);}[_0x521c92(-0x14a,-0x67,0x1,-0x61)](_0x4d2f01,_0x56d128){const _0x4dc657={_0x23d477:0x258,_0x384a2d:0x1be},_0x11aef7={_0xec1ce2:0xb7};function _0x201598(_0x546b4d,_0x2c4cb2,_0x5d005d,_0x47e1e4){return _0x3adc1d(_0x546b4d-0x13a,_0x47e1e4,_0x5d005d-_0x11aef7._0xec1ce2,_0x2c4cb2-0x17d);}return this[_0x201598(_0x4dc657._0x23d477,0x16a,0x250,_0x4dc657._0x384a2d)](_0x4d2f01,OPENAI_RESPONSES_STREAM_SURFACE,_0x56d128);}['streamViaResponsesWebSocketSurface'](_0xaf71bf,_0x582dc9){const _0x3cb2c4={_0x432efc:0x442,_0x1fc80b:0x50f},_0x1b9bcc={_0x1c3d69:0x1b};function _0x3af04b(_0x166f86,_0x149547,_0xc44545,_0x441f65){return _0x3adc1d(_0x166f86-_0x1b9bcc._0x1c3d69,_0x441f65,_0xc44545-0x18d,_0xc44545-0x522);}return this[_0x3af04b(_0x3cb2c4._0x432efc,0x42f,_0x3cb2c4._0x1fc80b,0x544)](_0xaf71bf,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x582dc9);}async[_0x3adc1d(-0x226,-0xb9,-0xe5,-0x168)](_0x5727ac,_0x737d6d){const _0x7a51d4={_0x1cefe8:0x363,_0xdda581:0x342,_0x40f7fd:0x26f},_0x3d447f={_0x22cc07:0x14a,_0x373537:0x350},_0x2f33eb={_0x19f03c:0x1b0};function _0x416d1a(_0x23478e,_0x5ad13b,_0x46c421,_0x506c63){return _0x3adc1d(_0x23478e-0x152,_0x46c421,_0x46c421-_0x2f33eb._0x19f03c,_0x5ad13b-0x426);}function _0x4c5f2f(_0x2353ed,_0x2a5a95,_0x338551,_0xd13d35){return _0x521c92(_0x2353ed-_0x3d447f._0x22cc07,_0xd13d35,_0x338551-0xc8,_0x338551-_0x3d447f._0x373537);}try{return await this[_0x416d1a(0x2f1,0x3aa,_0x7a51d4._0x1cefe8,0x301)](_0x5727ac,_0x737d6d);}catch(_0x3c0383){if(_0x3c0383 instanceof OpenAiApiError)throw this[_0x4c5f2f(0x389,0x3fe,_0x7a51d4._0xdda581,_0x7a51d4._0x40f7fd)](_0x3c0383);throw _0x3c0383;}}async['response'](_0x4edec3,_0x212fd6){const _0x3763c1={_0x3b9bdf:0x15e,_0x548494:0x23a},_0x53898c={_0x2b9369:0x101};function _0x5c8ee4(_0x255232,_0x8e7722,_0x283ce7,_0x20cc4e){return _0x3adc1d(_0x255232-_0x53898c._0x2b9369,_0x8e7722,_0x283ce7-0x122,_0x255232-0x194);}try{return await this[_0x5c8ee4(_0x3763c1._0x3b9bdf,0x1cf,0x1d0,_0x3763c1._0x548494)](_0x4edec3,_0x212fd6);}catch(_0x37692a){if(_0x37692a instanceof OpenAiApiError)throw this['mapApiError'](_0x37692a);throw _0x37692a;}}async[_0x521c92(0x20,-0x73,-0x44,-0xaf)](_0x4e7c68,_0x4bca94){const _0x287667={_0x45747d:0x3a7,_0xb09ce8:0x368,_0x38afc9:0x497,_0x4339d5:0x3e0,_0x3bcc55:0x3db,_0x1fe253:0x49d,_0x57e033:0xeb,_0x4f9492:0xef,_0x4fcfaa:0x3bb,_0x43060d:0x315},_0x240229={_0x514521:0x1ac,_0x555174:0x17b},_0x4cd1ca={_0x1afa68:0x425};function _0x450039(_0x456775,_0x57cce8,_0x1f81bf,_0x1c0f0d){return _0x3adc1d(_0x456775-0x54,_0x57cce8,_0x1f81bf-0x175,_0x1f81bf-_0x4cd1ca._0x1afa68);}function _0x2e2c51(_0x4b9a82,_0x48ba4d,_0x6747e4,_0x2139e2){return _0x3adc1d(_0x4b9a82-0x76,_0x6747e4,_0x6747e4-_0x240229._0x514521,_0x2139e2-_0x240229._0x555174);}try{let _0x24d390;for await(const _0x47c27f of this[_0x450039(_0x287667._0x45747d,_0x287667._0xb09ce8,0x453,_0x287667._0x38afc9)](_0x4e7c68,_0x4bca94)){_0x47c27f[_0x450039(0x410,_0x287667._0x4339d5,_0x287667._0x3bcc55,_0x287667._0x1fe253)]===_0x2e2c51(0x2a,0x11d,_0x287667._0x57e033,0xd9)&&(_0x24d390=_0x47c27f['response']);}if(!_0x24d390)throw new Error(_0x2e2c51(0x78,0x1c0,0x5f,_0x287667._0x4f9492));return _0x24d390;}catch(_0x35fb3b){if(_0x35fb3b instanceof OpenAiApiError)throw this[_0x450039(0x42d,0x461,_0x287667._0x4fcfaa,_0x287667._0x43060d)](_0x35fb3b);throw _0x35fb3b;}}async*[_0x3adc1d(-0x56,-0x152,-0x178,-0x126)](_0x36d6ba,_0x250a46){const _0x3e0cc4={_0x261d3e:0x1d},_0x31d3a4={_0x375790:0x3d,_0x53569a:0x115};function _0x7e19ca(_0x38b10e,_0x1b0c72,_0x1173aa,_0x205bd7){return _0x521c92(_0x38b10e-_0x31d3a4._0x375790,_0x205bd7,_0x1173aa-0x1d8,_0x1173aa-_0x31d3a4._0x53569a);}try{yield*this['streamViaChatCompletionsSurface'](_0x36d6ba,_0x250a46);}catch(_0x57251b){if(_0x57251b instanceof OpenAiApiError)throw this[_0x7e19ca(0x16b,_0x3e0cc4._0x261d3e,0x107,0x165)](_0x57251b);throw _0x57251b;}}async*[_0x3adc1d(0x2,-0xeb,-0x139,-0x9c)](_0x44a894,_0x46aba9){const _0x9a4bb={_0x5e4033:0x2c4,_0x4d543d:0x233,_0x3a4699:0x230,_0x566956:0x291,_0x1ad8ee:0x286},_0x2c78cb={_0x49ce75:0x2f0},_0x48474b={_0x3ede93:0x5b,_0x35a7bf:0x123};function _0x2efb78(_0x2e9c2a,_0x463757,_0x2c2365,_0xdadf54){return _0x3adc1d(_0x2e9c2a-_0x48474b._0x3ede93,_0x2c2365,_0x2c2365-_0x48474b._0x35a7bf,_0x2e9c2a-0x4e8);}function _0x214074(_0x2d3cfa,_0x4d6cf4,_0x39d3c1,_0x89fe1e){return _0x3adc1d(_0x2d3cfa-0x37,_0x39d3c1,_0x39d3c1-0x14b,_0x4d6cf4-_0x2c78cb._0x49ce75);}try{yield*this[_0x214074(_0x9a4bb._0x5e4033,_0x9a4bb._0x4d543d,_0x9a4bb._0x3a4699,_0x9a4bb._0x566956)](_0x44a894,_0x46aba9);}catch(_0x217e31){if(_0x217e31 instanceof OpenAiApiError)throw this[_0x214074(0x262,_0x9a4bb._0x1ad8ee,0x2d1,0x257)](_0x217e31);throw _0x217e31;}}async*[_0x521c92(0x163,-0x4d,0x2e,0x8a)](_0x3ca73e,_0xa0bb22){const _0xf82bd3={_0x6b0af1:0x2ec,_0x51a13a:0x37b},_0x2b1aa1={_0x3f2952:0x15e,_0x505ef9:0x118};function _0x5227ae(_0x1fd7aa,_0x95afec,_0x3a709c,_0x3d9e52){return _0x3adc1d(_0x1fd7aa-_0x2b1aa1._0x3f2952,_0x95afec,_0x3a709c-_0x2b1aa1._0x505ef9,_0x1fd7aa-0x3bb);}try{yield*this[_0x5227ae(_0xf82bd3._0x6b0af1,_0xf82bd3._0x51a13a,0x32b,0x397)](_0x3ca73e,_0xa0bb22);}catch(_0x5ac074){if(_0x5ac074 instanceof OpenAiApiError)throw this['mapApiError'](_0x5ac074);throw _0x5ac074;}}[_0x3adc1d(-0x40,0x45,-0x95,-0x7e)](_0x3f47fc,_0x3a04d2){const _0x385ebd={_0x328879:0x3f3,_0x2ff15e:0x3f9,_0x2dea7b:0x3cb},_0x31e39a={_0x45a33e:0x60,_0x425c8c:0x9f};function _0x3c6f61(_0x15300e,_0x258cf8,_0x54f30a,_0x14d035){return _0x3adc1d(_0x15300e-_0x31e39a._0x45a33e,_0x54f30a,_0x54f30a-_0x31e39a._0x425c8c,_0x14d035-0x533);}return this[_0x3c6f61(0x4b7,_0x385ebd._0x328879,_0x385ebd._0x2ff15e,_0x385ebd._0x2dea7b)](_0x3f47fc,_0x3a04d2);}['stream'](_0x177b5c,_0x2bb293){const _0x244a02={_0x241a67:0x38e,_0x1a6491:0x30a,_0xd5146:0x3f4},_0xad5486={_0x1ab3c9:0xcb,_0x594e39:0x4b4};function _0x45043c(_0x50efac,_0xa4b8d9,_0x3c5623,_0x1d3782){return _0x3adc1d(_0x50efac-_0xad5486._0x1ab3c9,_0xa4b8d9,_0x3c5623-0x82,_0x50efac-_0xad5486._0x594e39);}return this[_0x45043c(_0x244a02._0x241a67,_0x244a02._0x1a6491,_0x244a02._0xd5146,0x3d5)](_0x177b5c,_0x2bb293);}[_0x3adc1d(-0x131,-0xfa,-0x40,-0xf4)](_0x2d3aa6){const _0x27e28a={_0x5068df:0x1c7,_0x177e8f:0x26,_0x5ba4a6:0x107,_0x54480d:0x19f,_0x5aa2a0:0x21,_0x4ac1c3:0x20c,_0x6a0376:0x5b,_0x2defc5:0x11b,_0x23a4c7:0x7d},_0x12daeb={_0x13133e:0x153},_0x4a2842={_0x494a69:0xe7,_0x4a897c:0xd0},_0x5b82c1=this[_0x379a47(-0x72,-_0x27e28a._0x5068df,-_0x27e28a._0x177e8f,-_0x27e28a._0x5ba4a6)](_0x2d3aa6);function _0x2866a8(_0x938ca1,_0x29c88c,_0x2451c1,_0x1aa3ef){return _0x3adc1d(_0x938ca1-_0x4a2842._0x494a69,_0x2451c1,_0x2451c1-_0x4a2842._0x4a897c,_0x938ca1-0x80);}function _0x379a47(_0x2396f7,_0x1cf071,_0x4d19c1,_0x35daf9){return _0x3adc1d(_0x2396f7-0x70,_0x1cf071,_0x4d19c1-0x62,_0x35daf9- -_0x12daeb._0x13133e);}let _0x2ccf21=this[_0x2866a8(-0xc9,-_0x27e28a._0x54480d,-_0x27e28a._0x5aa2a0,-0x19c)][_0x379a47(-0x269,-0x2c1,-0x15b,-_0x27e28a._0x4ac1c3)](_0x5b82c1);return!_0x2ccf21&&(_0x2ccf21={'key':_0x5b82c1,'locked':![],'pending':Promise[_0x2866a8(0x5a,0x2,_0x27e28a._0x6a0376,_0x27e28a._0x2defc5)]()},this[_0x2866a8(-0xc9,-0x1e,-_0x27e28a._0x23a4c7,-0x5b)]['set'](_0x5b82c1,_0x2ccf21)),_0x2ccf21;}[_0x521c92(-0xe9,-0x118,-0x1de,-0x112)](_0x2ec56c){const _0x53d21a={_0x4e4309:0xf6,_0x21b52f:0x1d8,_0x4e3591:0x2f8,_0x45d4b0:0xa,_0x556c98:0xa4,_0x58e63e:0xcc,_0x3d69c3:0xb2,_0x41b530:0xbf,_0x276664:0x3a3,_0x3a11cf:0x37c},_0x395f07={_0x5d30d4:0x1df},_0x4f9c02={_0x134e31:0xee};if(_0x2ec56c['locked']||_0x2ec56c['connecting']||_0x2ec56c['socket'])return;function _0x50e0e1(_0x40b28c,_0xf1e689,_0x1fd7de,_0x2e21d2){return _0x521c92(_0x40b28c-0x16e,_0x1fd7de,_0x1fd7de-0x37,_0xf1e689- -_0x4f9c02._0x134e31);}function _0x474d55(_0xff1628,_0x3b0ab5,_0x41dd88,_0x4a9817){return _0x3adc1d(_0xff1628-0x76,_0x4a9817,_0x41dd88-_0x395f07._0x5d30d4,_0x41dd88-0x315);}this[_0x50e0e1(-0x248,-0x1db,-0x251,-_0x53d21a._0x4e4309)][_0x474d55(_0x53d21a._0x21b52f,_0x53d21a._0x4e3591,0x25c,0x16e)](_0x2ec56c[_0x50e0e1(_0x53d21a._0x45d4b0,-0xc1,-_0x53d21a._0x556c98,-_0x53d21a._0x58e63e)])===_0x2ec56c&&this['responsesSocketSessions'][_0x50e0e1(-0x30,-_0x53d21a._0x3d69c3,-0x113,-_0x53d21a._0x41b530)](_0x2ec56c[_0x474d55(_0x53d21a._0x276664,_0x53d21a._0x3a11cf,0x2e6,0x2d8)]);}[_0x3adc1d(-0x56,0xd5,0x136,0x4c)](_0x49a057){const _0x37e4d5={_0x2d919b:0x409},_0x533672={_0x5921ab:0xda},_0x1f45ee={_0x5e1aba:0x12,_0x13c007:0x343};function _0x517401(_0x5511b2,_0x264444,_0x38ce07,_0x10b3e2){return _0x3adc1d(_0x5511b2-_0x1f45ee._0x5e1aba,_0x264444,_0x38ce07-0x135,_0x5511b2-_0x1f45ee._0x13c007);}function _0x2f5ad5(_0x4d45bc,_0x5c27e7,_0x3c6a03,_0x3a6d1a){return _0x521c92(_0x4d45bc-0x159,_0x4d45bc,_0x3c6a03-_0x533672._0x5921ab,_0x5c27e7-0x348);}return''+trimTrailingSlashes(this[_0x2f5ad5(0x247,0x316,0x331,0x2ca)])+this[_0x2f5ad5(0x3aa,_0x37e4d5._0x2d919b,0x3cb,0x376)]+'::'+_0x49a057;}async['acquireResponsesSocketLock'](_0x4a3bbb){const _0x2bf606={_0x43fc60:0x66,_0x2d2a0d:0xe,_0x3fc48c:0x115,_0x1faa59:0x18,_0x1c370d:0x17f,_0xcd4fd4:0x46,_0x3ee25a:0xb2},_0x2c765e={_0x4001ae:0x1d0,_0x16832a:0xb3,_0xafafbe:0x62},_0x4cbaff={_0x5a9a31:0x19b,_0x28667f:0xd0},_0x138b0f={_0x22283b:0x9c},_0x1adfdc=_0x4a3bbb[_0x25d220(-_0x2bf606._0x43fc60,0x64,0x9f,_0x2bf606._0x2d2a0d)][_0x141d9a(0xf7,0xf7,0xff,_0x2bf606._0x3fc48c)](()=>{});function _0x141d9a(_0x2260f6,_0x5a8553,_0x5abbef,_0x324bff){return _0x3adc1d(_0x2260f6-0x1c9,_0x5a8553,_0x5abbef-0x1cd,_0x5abbef-_0x138b0f._0x22283b);}let _0x383037;const _0x352b2d=new Promise(_0x347518=>{_0x383037=_0x347518;});_0x4a3bbb[_0x141d9a(0x5f,_0x2bf606._0x1faa59,0xd7,_0x2bf606._0x1c370d)]=_0x1adfdc['then'](()=>_0x352b2d),await _0x1adfdc,_0x4a3bbb[_0x25d220(_0x2bf606._0xcd4fd4,0xe,0x14,_0x2bf606._0x3ee25a)]=!![];function _0x25d220(_0x494a46,_0x4d3e15,_0x1a634c,_0x5f4ea6){return _0x521c92(_0x494a46-_0x4cbaff._0x5a9a31,_0x1a634c,_0x1a634c-_0x4cbaff._0x28667f,_0x4d3e15- -0x33);}return()=>{const _0x2fd46a={_0x1f7c44:0x13d,_0x2f36c3:0x1a3};_0x4a3bbb[_0xee53c3(0xbf,0x116,0x1cf,_0x2c765e._0x4001ae)]=![];function _0xee53c3(_0x40f132,_0x38203f,_0x5ece7c,_0x50e7de){return _0x141d9a(_0x40f132-0x11b,_0x50e7de,_0x38203f-0x95,_0x50e7de-0x5e);}_0x383037?.();function _0x4457c8(_0x25cdf9,_0x2c9e06,_0x59be3d,_0x2055f5){return _0x141d9a(_0x25cdf9-_0x2fd46a._0x1f7c44,_0x25cdf9,_0x2055f5-0xcd,_0x2055f5-_0x2fd46a._0x2f36c3);}this[_0x4457c8(-_0x2c765e._0x16832a,0x7c,-_0x2c765e._0xafafbe,-0x5)](_0x4a3bbb);};}async[_0x3adc1d(-0x159,-0x1be,-0x7e,-0xd5)](_0x389c6e,_0x17cfe6){const _0x32b09b={_0x54834e:0x51e,_0x5454e9:0x4c2,_0x28bf5f:0x4f1,_0x216a80:0x44b,_0x65f6a4:0x4ef,_0x1c5b9c:0x578,_0x11ecb7:0x33c,_0x2d6016:0x470,_0x22f7a8:0x4b4,_0x217d9d:0x431,_0x1bb5ed:0x3e2,_0x12c2dd:0x46e,_0xe041d2:0x3ba,_0x43dd0b:0x376,_0x2e774c:0x36e,_0x2f0cc4:0x3a9,_0x1b6d2b:0x50c,_0x1bd30f:0x3ae,_0x3fb198:0x4eb,_0x3fb9d0:0x44c,_0x2a8575:0x468,_0x1e8251:0x401,_0x4b7e86:0x465},_0x43fbb0={_0x5cded4:0x1b5},_0x246ac1=this[_0x1577ce(_0x32b09b._0x54834e,0x4a2,_0x32b09b._0x5454e9,_0x32b09b._0x28bf5f)](_0x389c6e),_0x46288a=toModelRequest(_0x246ac1);function _0x3888de(_0x2b75cd,_0xd23cec,_0x1c4e0e,_0x2c5a62){return _0x3adc1d(_0x2b75cd-0xbf,_0xd23cec,_0x1c4e0e-0x1ec,_0x2b75cd-0x4b3);}const _0x2c8f91=await prepareProviderRequest(_0x46288a,{'sessionManager':this[_0x1577ce(0x46d,_0x32b09b._0x216a80,_0x32b09b._0x65f6a4,_0x32b09b._0x1c5b9c)],'requestMutators':this[_0x1577ce(_0x32b09b._0x11ecb7,_0x32b09b._0x2d6016,0x3cb,_0x32b09b._0x22f7a8)],'signal':_0x17cfe6}),_0xd54ed6=toChatRequest(_0x2c8f91['request']);function _0x1577ce(_0x358db2,_0x17aea4,_0x9ae86a,_0x48d38c){return _0x521c92(_0x358db2-_0x43fbb0._0x5cded4,_0x48d38c,_0x9ae86a-0xfb,_0x9ae86a-0x478);}const _0x5523d7=this[_0x1577ce(_0x32b09b._0x217d9d,0x437,0x4d1,0x4cb)][_0x3888de(_0x32b09b._0x1bb5ed,_0x32b09b._0x12c2dd,0x393,_0x32b09b._0xe041d2)](this[_0x1577ce(0x3c8,_0x32b09b._0x43dd0b,_0x32b09b._0x2e774c,_0x32b09b._0x2f0cc4)],_0x2c8f91[_0x1577ce(_0x32b09b._0x1b6d2b,0x406,0x465,_0x32b09b._0x1bd30f)]);if(!_0x5523d7)throw this[_0x3888de(0x4e8,0x4f8,_0x32b09b._0x3fb198,0x5b4)]();return{'baseUrl':this['providerAdapter']['resolveBaseUrl'](this[_0x1577ce(0x505,0x4d8,0x446,_0x32b09b._0x3fb9d0)],_0x2c8f91[_0x1577ce(_0x32b09b._0x2a8575,0x3d7,0x465,_0x32b09b._0x1e8251)]),'credential':_0x5523d7,'request':_0xd54ed6,'session':_0x2c8f91[_0x1577ce(0x4e9,0x3ce,_0x32b09b._0x4b7e86,0x485)]};}[_0x3adc1d(0x5d,0x8a,-0xbc,-0x63)](_0x479766,_0x2ad5ce,_0x33e47d={}){const _0x5da6f9={_0x943070:0x132,_0x3f4ccb:0x9a,_0x19d5ea:0x4d,_0x472866:0x3da,_0x9cec8d:0x40b,_0x4b8509:0x63f,_0x326039:0x5bf,_0x123270:0x59b,_0x3390dc:0x67,_0x3e1cdd:0x10d,_0x5050ab:0x2d,_0x3cb15b:0xcb,_0x5932df:0x4f7,_0x264636:0x40b,_0x290727:0x355},_0x473fd5={_0x16452a:0x19e,_0x5cfe81:0x46},_0x1ca3e9={_0x3e0414:0x41};function _0x401e4a(_0x10ed43,_0x43e30d,_0x45179c,_0x28f90b){return _0x3adc1d(_0x10ed43-0x131,_0x28f90b,_0x45179c-_0x1ca3e9._0x3e0414,_0x45179c-0x565);}function _0x2e3bc7(_0x4303ed,_0x1f0ec2,_0x27ce0d,_0x23e4f7){return _0x3adc1d(_0x4303ed-0x1b0,_0x23e4f7,_0x27ce0d-_0x473fd5._0x16452a,_0x4303ed-_0x473fd5._0x5cfe81);}if(!_0x33e47d[_0x2e3bc7(-0x11e,-0x13e,-0xe6,-0xbe)]){const _0x3514fa=this[_0x2e3bc7(0x79,_0x5da6f9._0x943070,_0x5da6f9._0x3f4ccb,0x32)](_0x479766);if(_0x3514fa&&_0x2ad5ce[_0x2e3bc7(0x52,-_0x5da6f9._0x19d5ea,0x11f,0x140)]&&_0x3514fa[_0x401e4a(0x3df,_0x5da6f9._0x472866,_0x5da6f9._0x9cec8d,0x326)]===_0x2ad5ce[_0x401e4a(_0x5da6f9._0x4b8509,0x4f6,0x571,0x52b)]){const _0x482004=toOpenAiResponsesRequest({..._0x479766,'messages':_0x479766[_0x401e4a(_0x5da6f9._0x326039,0x633,0x585,_0x5da6f9._0x123270)][_0x2e3bc7(-_0x5da6f9._0x3390dc,-0x5e,-0x133,-_0x5da6f9._0x3e1cdd)](_0x3514fa['messageIndex']+0x1)})[_0x2e3bc7(_0x5da6f9._0x5050ab,0xf6,_0x5da6f9._0x3cb15b,0xe)];return{'event':createOpenAiResponsesWebSocketEvent(_0x479766,{'input':_0x482004,'previousResponseId':_0x3514fa['responseId']}),'previousResponseId':_0x3514fa[_0x401e4a(_0x5da6f9._0x5932df,0x477,_0x5da6f9._0x264636,_0x5da6f9._0x290727)]};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x479766)};}[_0x3adc1d(0x96,0xe3,-0xb1,0x33)](_0xcde49a){const _0x33f4a4={_0x402603:0x48,_0x2c59fd:0x5,_0x11c5ac:0x3a6,_0x5906a1:0x48,_0x49898f:0x76,_0x2c02cf:0x71,_0x35a688:0x1f2,_0x525d9e:0x8b,_0x1a4bfa:0x96,_0x4b6cd2:0x18,_0x1cbc38:0x49},_0x12187d={_0x4471f4:0x1c8,_0x511dcc:0x1a,_0x4ecb86:0x28},_0x5a2bc8={_0x4f14a4:0xdd,_0x42f3ac:0x350};function _0x4877cb(_0x577aa0,_0xf44357,_0xf8e857,_0x2bb761){return _0x3adc1d(_0x577aa0-_0x5a2bc8._0x4f14a4,_0xf8e857,_0xf8e857-0x123,_0xf44357-_0x5a2bc8._0x42f3ac);}for(let _0x2fce77=_0xcde49a[_0x3daad0(_0x33f4a4._0x402603,_0x33f4a4._0x2c59fd,0x4b,0xb0)][_0x4877cb(0x46f,0x39f,_0x33f4a4._0x11c5ac,0x2af)]-0x1;_0x2fce77>=0x0;_0x2fce77-=0x1){const _0x7a341e=_0xcde49a[_0x3daad0(_0x33f4a4._0x5906a1,-_0x33f4a4._0x49898f,_0x33f4a4._0x2c02cf,0xba)][_0x2fce77],_0x54e704=_0x7a341e[_0x4877cb(0x150,_0x33f4a4._0x35a688,0x2d0,0x266)]===_0x3daad0(-0x57,_0x33f4a4._0x525d9e,-_0x33f4a4._0x1a4bfa,-0x2c)?_0x7a341e['providerState']?.[_0x3daad0(_0x33f4a4._0x4b6cd2,_0x33f4a4._0x1cbc38,0xf7,0x66)]:void 0x0;if(_0x54e704)return{'messageIndex':_0x2fce77,'responseId':_0x54e704};}function _0x3daad0(_0x5c8d95,_0x13091e,_0x490174,_0x55bd15){return _0x3adc1d(_0x5c8d95-_0x12187d._0x4471f4,_0x13091e,_0x490174-_0x12187d._0x511dcc,_0x5c8d95-_0x12187d._0x4ecb86);}return void 0x0;}[_0x521c92(-0x6d,-0x6f,-0xdf,-0xb)](_0x3cace7){const _0x3dcb04={_0x1f3b6e:0x43a,_0x5c2d26:0x531,_0x40c2d0:0x4ce,_0xaeceb:0x665,_0x5de944:0x588,_0x5dd303:0x472,_0x14e545:0x5b2,_0x50e324:0x25c},_0x509368={_0x5584d5:0x93,_0x369f8e:0x16f},_0x9d3657={_0x16007a:0xf5,_0x825e82:0x1f5};function _0x567619(_0x577b38,_0x444eed,_0x4fe930,_0x588486){return _0x3adc1d(_0x577b38-0xbc,_0x577b38,_0x4fe930-_0x9d3657._0x16007a,_0x4fe930-_0x9d3657._0x825e82);}function _0x5a9d11(_0x3ad92c,_0x38e800,_0x38bb2b,_0x50c955){return _0x521c92(_0x3ad92c-_0x509368._0x5584d5,_0x38bb2b,_0x38bb2b-_0x509368._0x369f8e,_0x50c955-0x530);}return _0x3cace7 instanceof ProviderStreamEventError&&(_0x3cace7[_0x5a9d11(0x3f8,_0x3dcb04._0x1f3b6e,_0x3dcb04._0x5c2d26,_0x3dcb04._0x40c2d0)]===_0x5a9d11(0x4af,0x64a,_0x3dcb04._0xaeceb,_0x3dcb04._0x5de944)||_0x3cace7[_0x5a9d11(0x4f1,_0x3dcb04._0x5dd303,_0x3dcb04._0x14e545,_0x3dcb04._0x40c2d0)]===_0x567619(_0x3dcb04._0x50e324,0x151,0x208,0x2d5));}[_0x3adc1d(-0x69,-0x66,-0x174,-0x116)](_0x5403f0){const _0x5731fd={_0x33708f:0x193,_0x2f1ec0:0x1e7,_0x52a66f:0x18c,_0x56750b:0x21d,_0x3caaac:0x257,_0x4b1de7:0x273,_0x368bba:0x2e1,_0x1381b3:0x2d7,_0x2980db:0x215,_0x22b91e:0x214,_0x585db9:0x1cf,_0x40eef9:0x1e7,_0x4f0445:0x260,_0x4d0635:0x18f},_0x2dcfb7={_0x4e5749:0xf6,_0x2ec113:0x87},_0x2cf35f={_0x42260d:0x17c,_0x4d047c:0x1db,_0x54caea:0x276},_0x40a7ea=_0x5403f0[_0xf8628c(_0x5731fd._0x33708f,_0x5731fd._0x2f1ec0,_0x5731fd._0x52a66f,_0x5731fd._0x56750b)];function _0xf8628c(_0x503f93,_0x927eda,_0x1ef84a,_0xdfa3b4){return _0x521c92(_0x503f93-_0x2cf35f._0x42260d,_0x927eda,_0x1ef84a-_0x2cf35f._0x4d047c,_0xdfa3b4-_0x2cf35f._0x54caea);}_0x5403f0[_0x16e3c2(-_0x5731fd._0x3caaac,-0x342,-_0x5731fd._0x4b1de7,-_0x5731fd._0x368bba)]=void 0x0;function _0x16e3c2(_0x38c062,_0x4a7553,_0x4d6d3f,_0x1692f2){return _0x521c92(_0x38c062-_0x2dcfb7._0x4e5749,_0x4a7553,_0x4d6d3f-_0x2dcfb7._0x2ec113,_0x38c062- -0x1fe);}_0x5403f0['connecting']=void 0x0,_0x5403f0[_0xf8628c(_0x5731fd._0x1381b3,0x29d,_0x5731fd._0x2980db,0x2de)]=void 0x0,_0x40a7ea?.[_0x16e3c2(-_0x5731fd._0x22b91e,-_0x5731fd._0x585db9,-0x283,-_0x5731fd._0x40eef9)]===WebSocket[_0x16e3c2(-0x30f,-0x388,-0x249,-_0x5731fd._0x4f0445)]&&_0x40a7ea[_0xf8628c(0x1e7,0x160,0xda,_0x5731fd._0x4d0635)](0x3e8,'reset');}async[_0x3adc1d(-0x7d,-0x28,-0x96,-0xc2)](_0x2bb7b0,_0x17943f,_0x17cb7b,_0x561dba,_0x5e5fd0){const _0x4fd157={_0x258e8c:0x1f2,_0x30ddc1:0x539,_0x10d940:0x40e,_0x3249a3:0x1a7,_0x2f231b:0x1a6,_0x1f90a3:0xbd,_0x45adfb:0x4a3,_0x376086:0x546,_0x59329f:0x90,_0x307d39:0xa2,_0x40fa92:0xd6,_0x318b35:0x1c,_0x4b3974:0x173,_0x5e7cef:0xa2,_0x4f4298:0xfc},_0x9ef958={_0x32d835:0x366,_0x4f1d29:0x289,_0x294c7e:0x2ee,_0xbfc30a:0x25a,_0xc69401:0x2c1,_0xaf8111:0x1fc,_0x2b471e:0x285,_0x3db99b:0x396,_0x13a7b8:0x369,_0x58158e:0x426,_0x5900f1:0x194,_0xcee902:0x1a6,_0x10e2b4:0x19d,_0x3cf5f0:0x1af,_0x3dbff9:0x40e,_0x19e267:0x3de,_0x38367d:0x2a2,_0x16f81e:0x444,_0x40e3e3:0x3f1,_0x2989dc:0x454,_0x18f92a:0x422,_0x2a1a7d:0x27d,_0x16de84:0x2b1,_0x3a10ec:0x20b,_0x40178a:0x25d,_0x41cd81:0x252,_0x3b1786:0x24a,_0x39260c:0x239,_0x14d7d9:0x2de,_0x3c0944:0x201,_0x2bde6b:0x29f,_0x1d3733:0x2fc,_0x481d9d:0x2b8,_0x1854b7:0x308,_0x2b3a8f:0x1c7,_0x54eab7:0x139},_0x6e4678={_0x5d5391:0x3f1,_0x115e8d:0x479,_0x52be69:0x29c,_0x2c5103:0x349,_0x37c4a3:0x23a},_0x77f35a={_0x5e7e93:0x689},_0x235c31={_0x4897c6:0x199},_0x157dd0={_0x25d3de:0x83,_0x1847d7:0x4fa};function _0x237923(_0x290a26,_0x4a2571,_0x5162f9,_0x8be916){return _0x3adc1d(_0x290a26-0x1ab,_0x5162f9,_0x5162f9-_0x157dd0._0x25d3de,_0x4a2571-_0x157dd0._0x1847d7);}if(_0x17943f[_0x331178(-0xd9,-0x170,-_0x4fd157._0x258e8c,-0x197)]?.[_0x237923(0x46e,0x488,_0x4fd157._0x30ddc1,0x4f4)]===WebSocket[_0x237923(0x2c6,0x38d,_0x4fd157._0x10d940,0x44b)])return _0x17943f[_0x331178(-_0x4fd157._0x3249a3,-0x170,-_0x4fd157._0x2f231b,-_0x4fd157._0x1f90a3)];function _0x331178(_0x377868,_0x140083,_0x4f9df0,_0x14616e){return _0x3adc1d(_0x377868-_0x235c31._0x4897c6,_0x377868,_0x4f9df0-0x0,_0x140083- -0xbb);}if(_0x17943f[_0x237923(_0x4fd157._0x45adfb,0x513,0x541,0x436)])return await _0x17943f[_0x237923(_0x4fd157._0x376086,0x513,0x423,0x436)];_0x17943f[_0x331178(-0x117,-0xa2,-0xcf,-0x13d)]=((async()=>{const _0x10ecb6={_0x3a1714:0x15a},_0x50d462={_0x242c24:0x184,_0x4bbb76:0x11b},_0x7c6cd8={_0x383645:0x6bd};function _0x20320d(_0x3141b0,_0x4c4300,_0xc03af5,_0x2bf6fd){return _0x237923(_0x3141b0-0x165,_0x2bf6fd- -_0x77f35a._0x5e7e93,_0x3141b0,_0x2bf6fd-0xa5);}const _0x2f39e0=await this[_0x20320d(-0x2ed,-_0x9ef958._0x32d835,-_0x9ef958._0x4f1d29,-_0x9ef958._0x294c7e)]({'request':_0x17cb7b[_0x20320d(-_0x9ef958._0xbfc30a,-0x1b8,-_0x9ef958._0xc69401,-0x1f7)],'body':_0x561dba,'credential':_0x17cb7b['credential'],'session':_0x17cb7b[_0x20320d(-_0x9ef958._0xaf8111,-_0x9ef958._0x2b471e,-0x278,-0x1fe)],'stream':!![]},{'accept':_0x1883e7(_0x9ef958._0x3db99b,_0x9ef958._0x13a7b8,0x437,_0x9ef958._0x58158e),'includeContentType':![]});_0x2f39e0[_0x20320d(-_0x9ef958._0x5900f1,-_0x9ef958._0xcee902,-_0x9ef958._0x10e2b4,-_0x9ef958._0x3cf5f0)](_0x1883e7(_0x9ef958._0x3dbff9,0x3e6,0x434,_0x9ef958._0x19e267));const _0x4e5769=this['webSocketFactory']({'headers':Object['fromEntries'](_0x2f39e0[_0x20320d(-0x1c9,-0x1e7,-_0x9ef958._0x38367d,-0x1eb)]()),'url':(''+_0x17cb7b['baseUrl']+this['responsesPath'])[_0x20320d(-0x4f,-0xcd,-0xa4,-0x13e)](/^http:/,'ws:')[_0x1883e7(_0x9ef958._0x16f81e,_0x9ef958._0x40e3e3,_0x9ef958._0x2989dc,_0x9ef958._0x18f92a)](/^https:/,_0x20320d(-0x2b2,-0x217,-0x2bb,-_0x9ef958._0x2a1a7d))}),_0x56270a=()=>{_0x17943f['socket']===_0x4e5769&&(_0x17943f[_0x509aff(_0x6e4678._0x5d5391,0x4eb,_0x6e4678._0x115e8d,0x412)]=void 0x0,_0x17943f[_0x4ebb1c(_0x6e4678._0x52be69,_0x6e4678._0x2c5103,0x373,_0x6e4678._0x37c4a3)]=void 0x0);function _0x509aff(_0xf7b465,_0x23d01a,_0x5a81d3,_0x35e08f){return _0x20320d(_0x23d01a,_0x23d01a-0x136,_0x5a81d3-0xa3,_0x5a81d3-_0x7c6cd8._0x383645);}function _0x4ebb1c(_0x17adcf,_0x53862d,_0x149872,_0x3f37fe){return _0x20320d(_0x149872,_0x53862d-_0x50d462._0x242c24,_0x149872-_0x50d462._0x4bbb76,_0x17adcf-0x41f);}this['maybeEvictResponsesSocketSession'](_0x17943f);};function _0x1883e7(_0x45f690,_0x2c7e19,_0x8a24be,_0x1c31fe){return _0x237923(_0x45f690-0xed,_0x2c7e19- -_0x10ecb6._0x3a1714,_0x1c31fe,_0x1c31fe-0x110);}_0x4e5769[_0x1883e7(0x17d,0x26a,_0x9ef958._0x16de84,0x275)](_0x1883e7(_0x9ef958._0x3a10ec,_0x9ef958._0x40178a,_0x9ef958._0x41cd81,_0x9ef958._0x3b1786),_0x56270a);try{return throwIfAborted(_0x5e5fd0),_0x4e5769[_0x20320d(-_0x9ef958._0x39260c,-_0x9ef958._0x14d7d9,-0x118,-_0x9ef958._0x3c0944)]!==WebSocket[_0x20320d(-_0x9ef958._0x2bde6b,-0x3de,-0x245,-_0x9ef958._0x1d3733)]&&await waitForWebSocketOpen(_0x4e5769,_0x5e5fd0),throwIfAborted(_0x5e5fd0),_0x17943f['socket']=_0x4e5769,_0x4e5769;}catch(_0x39f40a){_0x56270a();_0x4e5769[_0x20320d(-_0x9ef958._0x481d9d,-0x29e,-0x2f1,-0x201)]===WebSocket[_0x1883e7(0x2eb,0x233,_0x9ef958._0x1854b7,0x2fc)]&&_0x4e5769['close'](0x3e8,_0x20320d(-0xd0,-_0x9ef958._0x2b3a8f,-_0x9ef958._0x54eab7,-0x17a));throw _0x39f40a;}})());try{return await _0x17943f[_0x331178(-_0x4fd157._0x59329f,-_0x4fd157._0x307d39,-_0x4fd157._0x40fa92,-_0x4fd157._0x318b35)];}finally{_0x17943f[_0x331178(-_0x4fd157._0x4b3974,-_0x4fd157._0x5e7cef,-_0x4fd157._0x4f4298,-0x175)]=void 0x0;}}async*[_0x521c92(-0xe8,-0x27,-0x146,-0x73)](_0xa93692,_0x39c047){const _0x1cc201={_0x41d840:0x1b2,_0x1b9439:0x21,_0x4652f2:0x18d,_0x1203f6:0x9e,_0x42032f:0x107,_0x5d245e:0x155,_0x4a7891:0x1b4,_0x266d96:0x152,_0x5c2e63:0xba,_0x14fd3f:0xf6,_0x60692b:0x89,_0x2db966:0xd7,_0x5bba65:0x103,_0x22f3ef:0xbd,_0x1f3de5:0x17c,_0x546bdf:0xa2,_0x5020b4:0x180,_0x53db0d:0xda,_0xc7e121:0xf5,_0x308c42:0x15a,_0x196af2:0x191,_0x539820:0x36,_0x2d9ad8:0x97,_0x1035b7:0x4e,_0xf6080b:0x94,_0x5ebf45:0x202,_0x94a688:0x1eb,_0x5c855c:0x18d,_0x47e262:0x132,_0x244e9c:0xa2,_0x251afb:0x139},_0x31e240={_0x10b06c:0x1ec},_0x427982={_0x1257b5:0x82},_0x5a54dd=this[_0x1e8fbd(0x177,0x1b9,0x1a6,_0x1cc201._0x41d840)](_0xa93692);function _0x2e38da(_0x24a688,_0xab833e,_0x3e93a8,_0xad98e2){return _0x3adc1d(_0x24a688-0xbe,_0x24a688,_0x3e93a8-_0x427982._0x1257b5,_0xab833e- -0xcb);}function _0x1e8fbd(_0x417606,_0x76fe87,_0x12625c,_0x304ad2){return _0x521c92(_0x417606-_0x31e240._0x10b06c,_0x417606,_0x12625c-0xb1,_0x12625c-0x15c);}const _0x12144f=this[_0x1e8fbd(_0x1cc201._0x1b9439,0x149,0xc4,0x1a1)](_0x5a54dd[_0x2e38da(-0xe,-0xf2,-_0x1cc201._0x4652f2,-_0x1cc201._0x1203f6)]['sessionId']),_0x497403=await this['acquireResponsesSocketLock'](_0x12144f);try{const _0x47179b=this[_0x1e8fbd(0x99,_0x1cc201._0x42032f,_0x1cc201._0x5d245e,0xe3)](_0x5a54dd,_0x12144f);try{yield*this[_0x2e38da(-0x1b3,-_0x1cc201._0x4a7891,-0x21b,-0x1b9)](_0x5a54dd[_0x1e8fbd(0x21e,0x1e7,0x191,_0x1cc201._0x266d96)]['sessionId'],_0x12144f,_0x5a54dd,_0x47179b[_0x2e38da(-_0x1cc201._0x5c2e63,-_0x1cc201._0x14fd3f,-0x81,-_0x1cc201._0x60692b)],_0x39c047?.['signal']);return;}catch(_0x320a29){if(!_0x47179b[_0x2e38da(-0x148,-0x1b3,-_0x1cc201._0x2db966,-_0x1cc201._0x5bba65)]||!this['shouldRetryResponsesSocketRequest'](_0x320a29)){this[_0x1e8fbd(_0x1cc201._0x22f3ef,_0x1cc201._0x1f3de5,_0x1cc201._0x546bdf,_0x1cc201._0x5020b4)](_0x12144f);throw _0x320a29;}}this[_0x1e8fbd(_0x1cc201._0x53db0d,0x101,0xa2,0xe6)](_0x12144f);const _0x8385c=this['buildResponsesSocketEvent'](_0x5a54dd,_0x12144f,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x5a54dd[_0x1e8fbd(_0x1cc201._0xc7e121,_0x1cc201._0x308c42,_0x1cc201._0x196af2,0x235)][_0x1e8fbd(-_0x1cc201._0x539820,-_0x1cc201._0x2d9ad8,_0x1cc201._0x1035b7,-_0x1cc201._0xf6080b)],_0x12144f,_0x5a54dd,_0x8385c[_0x1e8fbd(_0x1cc201._0x5ebf45,_0x1cc201._0x94a688,_0x1cc201._0x5c855c,_0x1cc201._0x47e262)],_0x39c047?.[_0x1e8fbd(_0x1cc201._0x244e9c,0x16f,0x163,_0x1cc201._0x251afb)]);}finally{_0x497403();}}async*[_0x3adc1d(-0x19c,-0xea,-0x80,-0xe9)](_0x331893,_0x1b55c5,_0x3d39a8,_0x5d0c,_0x137a1){const _0x48309b={_0x34d70e:0x123,_0x27b46d:0x46,_0x5dbda2:0xcd,_0x6c52be:0x1a5,_0x166783:0x13d,_0x2ae7ed:0x106,_0x49caea:0x83,_0x4a103a:0x78,_0xa757f7:0xfb,_0x6e27f8:0x1ae,_0x5ebc63:0x42,_0x1d68d2:0x126,_0x560d03:0xd0,_0x1ee63b:0xc5,_0x1925a3:0x101,_0x3f0de8:0xa9,_0x5a1c68:0x141,_0x1976c9:0x212},_0x3f9fc9={_0x51c2b8:0x14f,_0x50bcfb:0x41},_0x39cb73=await this['prepareResponsesSocketRequest'](_0x3d39a8,_0x137a1),_0x160980=await this['getOrCreateResponsesSocket'](_0x331893,_0x1b55c5,_0x39cb73,_0x5d0c,_0x137a1),_0x15e34d=createOpenAiResponsesStreamParser(_0x3d39a8);function _0x3b088f(_0x3803a2,_0x1da193,_0x5c4987,_0x2b9ac8){return _0x3adc1d(_0x3803a2-_0x3f9fc9._0x51c2b8,_0x5c4987,_0x5c4987-0x142,_0x3803a2-_0x3f9fc9._0x50bcfb);}throwIfAborted(_0x137a1);function _0x1102c9(_0x593aeb,_0x11e03e,_0x1bb266,_0x57037b){return _0x3adc1d(_0x593aeb-0xd4,_0x1bb266,_0x1bb266-0x1b4,_0x593aeb- -0xb5);}_0x160980[_0x1102c9(-0xf1,-_0x48309b._0x34d70e,-_0x48309b._0x27b46d,-0x14b)](JSON[_0x3b088f(-_0x48309b._0x5dbda2,-_0x48309b._0x6c52be,-0x136,-_0x48309b._0x166783)](_0x5d0c));for await(const _0x3f6e48 of iterateWebSocketMessages(_0x160980,_0x137a1)){const _0x175660=_0x15e34d[_0x1102c9(-_0x48309b._0x2ae7ed,-0x5f,-_0x48309b._0x49caea,-_0x48309b._0x4a103a)]?.(_0x3f6e48)??[];yield*_0x175660;if(_0x15e34d[_0x1102c9(-0xc0,-0x79,-_0x48309b._0xa757f7,-0x102)]?.())break;}if(!_0x15e34d[_0x1102c9(-0xc0,-_0x48309b._0x6e27f8,-0x64,-0x145)]?.())throw new Error(_0x3b088f(0x50,_0x48309b._0x5ebc63,_0x48309b._0x1d68d2,-0x16));const _0xdfe1bd=_0x15e34d[_0x3b088f(-0x48,-0x46,-0x93,-_0x48309b._0x560d03)](),_0x49368c=_0xdfe1bd['providerState']?.[_0x1102c9(-_0x48309b._0x1ee63b,-0x70,-0x119,-_0x48309b._0x1925a3)]??_0xdfe1bd['id'];_0x49368c&&(_0x1b55c5[_0x1102c9(-_0x48309b._0x3f0de8,-0xfd,-0xb2,-0x12f)]=_0x49368c),yield{'type':_0x1102c9(-0x157,-0x10f,-_0x48309b._0x5a1c68,-_0x48309b._0x1976c9),'response':_0xdfe1bd};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x3adc1d(-0x151,-0x1ac,-0x96,-0x156),_0x521c92(-0xf2,0x20,-0xaf,-0x63),_0x3adc1d(0xa9,0xa1,0x7b,-0x2),_0x521c92(-0x4f,0x3c,0xda,0x2)];function isAnthropicSurface(_0x51dadc){const _0x289be4={_0x3698c6:0x3,_0x48fee2:0x2a,_0x4df1e5:0x2c},_0xbbeb88={_0x51e460:0x1a3,_0x36ef08:0xbb};function _0x2e4885(_0xc3c9f0,_0x53b9d2,_0x24b39f,_0x4b63b7){return _0x3adc1d(_0xc3c9f0-_0xbbeb88._0x51e460,_0x53b9d2,_0x24b39f-_0xbbeb88._0x36ef08,_0x24b39f-0x12c);}return _0x51dadc===_0x2e4885(0x94,-_0x289be4._0x3698c6,-_0x289be4._0x48fee2,-_0x289be4._0x4df1e5);}function resolveDefaultBaseUrl(_0x1af1b9){const _0x449210={_0x3d16bf:0x202,_0x2507d7:0x24b,_0x4d6cfe:0x2e4,_0x9147cf:0x3fa,_0x150cce:0x281,_0x559a18:0x307,_0x237240:0x246,_0x11895d:0x117,_0x59dffc:0x398},_0x26eaa5={_0x35bd38:0x1ed},_0x376d08={_0x4155e7:0x45};function _0x15529a(_0x5b3ff0,_0x287eaa,_0x197241,_0x36b0d8){return _0x3adc1d(_0x5b3ff0-_0x376d08._0x4155e7,_0x287eaa,_0x197241-0x3f,_0x197241-0x372);}function _0x2feb48(_0x2c5a8d,_0x185b18,_0x44566a,_0x54fd53){return _0x3adc1d(_0x2c5a8d-0x80,_0x185b18,_0x44566a-_0x26eaa5._0x35bd38,_0x44566a-0x11);}if(_0x1af1b9===_0x15529a(_0x449210._0x3d16bf,0x20a,0x21c,0x2ee))return getProviderProfile(_0x15529a(0x312,0x172,_0x449210._0x2507d7,0x1e9))?.[_0x15529a(0x394,0x2f0,_0x449210._0x4d6cfe,0x31d)]??_0x15529a(0x42b,0x344,0x36c,_0x449210._0x9147cf);return getProviderProfile(_0x15529a(_0x449210._0x150cce,0x23d,_0x449210._0x559a18,_0x449210._0x237240))?.[_0x2feb48(-_0x449210._0x11895d,-0x93,-0x7d,-0xcf)]??_0x15529a(_0x449210._0x59dffc,0x42b,0x3d3,0x344);}var ChatModel=class{[_0x521c92(0xa,-0x32,-0x6a,-0x91)];['maxTokens'];[_0x3adc1d(-0xef,-0xa5,-0xe0,-0x15d)];[_0x3adc1d(-0xa7,-0x5,-0x72,-0xe0)];[_0x3adc1d(-0xb9,-0xbe,-0x83,-0x33)];constructor(_0x2722f3={}){const _0xa90d11={_0x22c5f2:0x1c8,_0x355cdb:0x1f6,_0x307887:0x11e,_0x47aaa7:0x19f,_0x1431f9:0xd9,_0x5410c6:0xf3,_0x161295:0x1c2,_0x226b08:0x95,_0x30eeaf:0x104,_0x466a14:0x145,_0xd47fc6:0x219,_0x2511d2:0x14c,_0x26b38e:0x16c,_0x2827e8:0x362,_0x40aec2:0x2c2,_0x34226b:0x2b5,_0x57d2b9:0x385,_0x5e75a2:0x310,_0x57a8a6:0xe1,_0x142196:0xa5,_0x447844:0x7d,_0x4211c4:0x311,_0x30622f:0x253,_0x7eaf49:0x213,_0xf23934:0x256,_0x7bd16f:0x1aa,_0x133578:0x147,_0x3c2f95:0xf3,_0x586e4c:0x120,_0x3da989:0x11e,_0x2a9919:0x77,_0x31e753:0x51f,_0x549d42:0x4b7,_0x3983ec:0x2b6,_0x52fba4:0x1eb,_0xf939b6:0x1bb,_0x553b68:0xd3,_0x11ea7c:0x160,_0x347e3b:0xb8,_0x54ff35:0x246,_0x43053a:0x277,_0x5563b7:0x1e2,_0x437e42:0x1a5,_0xf801a4:0x102,_0x3280ce:0x38},_0x493667={_0x2c43e9:0x183},_0x2f696c={_0x575d8d:0x7,_0x224de5:0x1d2,_0x466ac3:0x1af};function _0x4700ab(_0x42ef35,_0x42e544,_0x533e35,_0x101b00){return _0x521c92(_0x42ef35-_0x2f696c._0x575d8d,_0x101b00,_0x533e35-_0x2f696c._0x224de5,_0x533e35-_0x2f696c._0x466ac3);}this[_0x4700ab(_0xa90d11._0x22c5f2,_0xa90d11._0x355cdb,_0xa90d11._0x307887,0x196)]=_0x2722f3[_0x4700ab(0x12a,0xfb,0x11e,_0xa90d11._0x47aaa7)]??getDefaultModel(),this['maxTokens']=_0x2722f3[_0x4700ab(_0xa90d11._0x1431f9,0x1ab,_0xa90d11._0x5410c6,_0xa90d11._0x161295)]??getDefaultMaxTokens(),this[_0x4700ab(_0xa90d11._0x226b08,_0xa90d11._0x30eeaf,0xae,_0xa90d11._0x466a14)]=_0x2722f3['surface']??_0x4700ab(0x1c7,_0xa90d11._0xd47fc6,_0xa90d11._0x2511d2,_0xa90d11._0x26b38e);const _0x41d2f6=trimTrailingSlashes(_0x2722f3[_0x1f36e8(_0xa90d11._0x2827e8,_0xa90d11._0x40aec2,_0xa90d11._0x34226b,_0xa90d11._0x57d2b9)]??resolveDefaultBaseUrl(this['surface']));if(isAnthropicSurface(this['surface'])){this[_0x1f36e8(_0xa90d11._0x5e75a2,0x365,0x323,0x3cf)]=new AnthropicModel({'apiKey':_0x2722f3[_0x4700ab(_0xa90d11._0x57a8a6,-0x1a,_0xa90d11._0x142196,_0xa90d11._0x447844)],'authScheme':_0x2722f3[_0x1f36e8(_0xa90d11._0x4211c4,0x2ea,0x30a,0x3e6)],'baseUrl':_0x41d2f6,'fetch':_0x2722f3[_0x1f36e8(0x2b8,_0xa90d11._0x30622f,_0xa90d11._0x7eaf49,_0xa90d11._0xf23934)],'maxTokens':this[_0x4700ab(_0xa90d11._0x7bd16f,_0xa90d11._0x133578,_0xa90d11._0x3c2f95,0x166)],'model':this[_0x4700ab(_0xa90d11._0x586e4c,0x3c,_0xa90d11._0x3da989,_0xa90d11._0x2a9919)],'reasoning':_0x2722f3[_0x1f36e8(0x454,0x406,_0xa90d11._0x31e753,_0xa90d11._0x549d42)],'providerSessionResolver':_0x2722f3[_0x1f36e8(0x3c7,0x303,0x47d,0x397)],'requestMutators':_0x2722f3['requestMutators']});return;}function _0x1f36e8(_0x5a5a0f,_0x4f256c,_0x52322f,_0x2e8c7a){return _0x521c92(_0x5a5a0f-_0x493667._0x2c43e9,_0x4f256c,_0x52322f-0xfd,_0x5a5a0f-0x394);}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x2722f3[_0x1f36e8(0x28a,_0xa90d11._0x3983ec,_0xa90d11._0x52fba4,_0xa90d11._0x7eaf49)],'baseUrl':_0x41d2f6,'fetch':_0x2722f3[_0x4700ab(0x61,_0xa90d11._0xf939b6,_0xa90d11._0x553b68,0x3a)],'headerResolver':_0x2722f3['headerResolver'],'maxTokens':this['maxTokens'],'model':this[_0x4700ab(_0xa90d11._0x11ea7c,_0xa90d11._0x347e3b,0x11e,0xdc)],'reasoning':_0x2722f3[_0x4700ab(0x29f,_0xa90d11._0x22c5f2,0x26f,0x33f)],'providerSessionResolver':_0x2722f3[_0x4700ab(_0xa90d11._0x54ff35,_0xa90d11._0x43053a,_0xa90d11._0x5563b7,_0xa90d11._0x437e42)],'requestMutators':_0x2722f3[_0x4700ab(0x183,0x192,_0xa90d11._0xf801a4,_0xa90d11._0x3280ce)],'webSocketFactory':_0x2722f3['webSocketFactory']});}[_0x521c92(-0xb2,-0x10d,-0x50,-0xfd)](){const _0x5471e2={_0x4a5190:0x226,_0x1ba7b6:0x120,_0x37c1c8:0x31d,_0x591a52:0x1ca,_0x42dd49:0x26d,_0xe2f080:0x124},_0x3f51e5={_0x538a80:0x14f,_0x1ee35b:0x2db},_0x5ae8b4={_0x389b51:0x0,_0x7e6b5a:0x30f};function _0x110fe5(_0x358c81,_0x5a241e,_0x1a29f0,_0x3c34b7){return _0x521c92(_0x358c81-0x1c8,_0x1a29f0,_0x1a29f0-_0x5ae8b4._0x389b51,_0x3c34b7-_0x5ae8b4._0x7e6b5a);}function _0x1b75d9(_0x48aa18,_0x1443a7,_0x4d6abb,_0x23ad37){return _0x3adc1d(_0x48aa18-0x28,_0x1443a7,_0x4d6abb-_0x3f51e5._0x538a80,_0x48aa18-_0x3f51e5._0x1ee35b);}if(!this[_0x1b75d9(0x1fb,_0x5471e2._0x4a5190,_0x5471e2._0x1ba7b6,0x259)])throw new Error(_0x110fe5(0x39f,0x2fa,0x3b0,_0x5471e2._0x37c1c8)+this['surface']);return this[_0x1b75d9(0x1fb,_0x5471e2._0x591a52,_0x5471e2._0x42dd49,_0x5471e2._0xe2f080)];}[_0x3adc1d(-0xc1,-0x73,-0x109,-0x5b)](){const _0x390752={_0x590c81:0x599,_0x1ac3d8:0x57a,_0x58d475:0x20,_0x3add7b:0x599,_0x2aa8e2:0x543,_0x1b926c:0x56e},_0xd73a12={_0x5762a1:0x2f},_0x45630d={_0x493dcc:0x1f,_0x62666:0x83};function _0x4c074c(_0x1e2cce,_0x4ae2a0,_0x34401f,_0x58833e){return _0x3adc1d(_0x1e2cce-0x15,_0x34401f,_0x34401f-_0x45630d._0x493dcc,_0x58833e- -_0x45630d._0x62666);}if(!this[_0x336915(_0x390752._0x590c81,0x689,0x5ac,_0x390752._0x1ac3d8)])throw new Error(_0x4c074c(-0x16a,-_0x390752._0x58d475,0x3,-0xcf)+this[_0x336915(0x46f,0x3f7,0x54f,0x4d0)]);function _0x336915(_0x1d5de6,_0x4b602c,_0x27f018,_0x1aa825){return _0x3adc1d(_0x1d5de6-_0xd73a12._0x5762a1,_0x1aa825,_0x27f018-0x1ca,_0x1d5de6-0x5cc);}return this[_0x336915(_0x390752._0x3add7b,0x65b,_0x390752._0x2aa8e2,_0x390752._0x1b926c)];}[_0x3adc1d(0x63,-0x158,-0x16b,-0x7e)](_0x4ccf13,_0x5aa71f){const _0x526035={_0x2a7b89:0x22,_0x5cc840:0x91,_0x41c574:0x94,_0x595623:0x69,_0x5db8d5:0x1ac,_0x57420d:0x1a3,_0x2d4b99:0x1f5,_0x3e2d2c:0x19b,_0x263d1c:0x18b,_0x56dae9:0x20c,_0x36b019:0xce,_0x4cc2ec:0x1f7,_0x16d208:0x170,_0x3adb57:0x13a,_0xd6f285:0x248,_0xca7cbb:0x23f,_0x53b344:0x220,_0x157130:0x284,_0x2d1297:0x170,_0x2ce997:0x1b3},_0x49eb50={_0x14eaa9:0xfd},_0x9224fa={_0x5d93cf:0x15d,_0x5e9a72:0x1aa};function _0x5bc9cb(_0x35a33c,_0x58e54b,_0x4c0c70,_0x5ef58b){return _0x521c92(_0x35a33c-_0x9224fa._0x5d93cf,_0x35a33c,_0x4c0c70-_0x9224fa._0x5e9a72,_0x5ef58b-0x8b);}function _0x515dad(_0x2bd048,_0x58901c,_0x4f27a1,_0x35a6d3){return _0x3adc1d(_0x2bd048-0x88,_0x35a6d3,_0x4f27a1-_0x49eb50._0x14eaa9,_0x4f27a1- -0x115);}switch(this['surface']){case _0x5bc9cb(-0xe7,-0x93,_0x526035._0x2a7b89,-0x6f):return this['getAnthropicDelegate']()[_0x5bc9cb(_0x526035._0x5cc840,0x0,_0x526035._0x41c574,_0x526035._0x595623)](_0x4ccf13,_0x5aa71f);case _0x515dad(-_0x526035._0x5db8d5,-0xce,-0x117,-0x29):return this[_0x515dad(-_0x526035._0x57420d,-0x19d,-0x170,-_0x526035._0x2d4b99)]()[_0x515dad(-0x23a,-0xe4,-_0x526035._0x3e2d2c,-_0x526035._0x263d1c)](_0x4ccf13,_0x5aa71f);case _0x515dad(-0x25f,-_0x526035._0x56dae9,-0x16f,-_0x526035._0x36b019):return this[_0x515dad(-_0x526035._0x4cc2ec,-0x187,-_0x526035._0x16d208,-_0x526035._0x3adb57)]()[_0x515dad(-_0x526035._0xd6f285,-_0x526035._0xca7cbb,-_0x526035._0x53b344,-_0x526035._0x157130)](_0x4ccf13,_0x5aa71f);default:return this[_0x515dad(-0x11d,-0x1c9,-_0x526035._0x2d1297,-0x117)]()[_0x515dad(-_0x526035._0x2ce997,-0x2e0,-0x27d,-0x251)](_0x4ccf13,_0x5aa71f);}}[_0x521c92(0x103,0x96,-0x1e,0x6e)](_0x57df03,_0x4201b6){const _0xfd315f={_0x364d85:0x2f6,_0x5c408d:0x36d,_0x1e463f:0x3d2,_0x2044ad:0x371,_0x20b466:0x435,_0x406499:0x19a,_0x28723a:0x168,_0xcd43b6:0x239,_0xbfd533:0x436,_0x1a6cc3:0x470,_0x1301a9:0x42e,_0x1c049c:0x12d,_0x4084b1:0xd2,_0x36cee4:0x10c,_0x2acb57:0x62,_0x2f278a:0x92},_0x4b738f={_0x165e32:0x155},_0x416ddd={_0x2486a6:0x130,_0x229cc6:0x188};function _0x3c2d3c(_0x3e9d8c,_0x3c8831,_0x82e0bc,_0xb37f7f){return _0x3adc1d(_0x3e9d8c-_0x416ddd._0x2486a6,_0x82e0bc,_0x82e0bc-0x175,_0x3e9d8c-_0x416ddd._0x229cc6);}function _0x369909(_0x1d7c71,_0x589ce8,_0x1c9a35,_0x3c23ad){return _0x521c92(_0x1d7c71-_0x4b738f._0x165e32,_0x1d7c71,_0x1c9a35-0x1e9,_0x1c9a35-0x46e);}switch(this[_0x369909(_0xfd315f._0x364d85,0x31a,_0xfd315f._0x5c408d,0x3c0)]){case'anthropic-messages':return this[_0x369909(0x367,_0xfd315f._0x1e463f,_0xfd315f._0x2044ad,_0xfd315f._0x20b466)]()[_0x3c2d3c(_0xfd315f._0x406499,0x201,0x1de,0x177)](_0x57df03,_0x4201b6);case _0x3c2d3c(0x186,_0xfd315f._0x28723a,0x232,_0xfd315f._0xcd43b6):return this['getOpenAiDelegate']()[_0x369909(_0xfd315f._0xbfd533,_0xfd315f._0x1a6cc3,_0xfd315f._0x1301a9,0x43c)](_0x57df03,_0x4201b6);case'openai-responses-ws':return this[_0x3c2d3c(_0xfd315f._0x1c049c,_0xfd315f._0x4084b1,0x173,_0xfd315f._0x36cee4)]()['responseSocketStream'](_0x57df03,_0x4201b6);default:return this['getOpenAiDelegate']()[_0x3c2d3c(_0xfd315f._0x2acb57,_0xfd315f._0x2f278a,-0x8e,-0x5b)](_0x57df03,_0x4201b6);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{['accessToken'];[_0x3adc1d(-0x103,0x2f,-0xec,-0x8e)];[_0x3adc1d(-0x1b7,0x6,0x26,-0xc7)];[_0x3adc1d(-0x1ea,-0x1f4,-0x169,-0x119)];[_0x3adc1d(-0x25,-0xa4,-0x94,-0x49)];constructor(_0xb5a54e){const _0x417637={_0x47285b:0xae,_0x12ee3a:0x142,_0x46bb03:0x221,_0x1806af:0x288,_0x1f621b:0x24f,_0xc84b20:0x295,_0x3ca921:0x3ba,_0x542e92:0x1c0,_0x1d4ff2:0x278,_0xafca3a:0x2a2,_0x16df6b:0x264,_0x44571b:0x2a2,_0x1bf0e4:0x413,_0x3fffd0:0x368,_0x1401d1:0x32f},_0x3b0708={_0xc5a51d:0x1ca,_0x2752e0:0x116,_0x6140cd:0x3bb},_0xac3d0={_0x2342b4:0x1e5,_0xd54845:0x32};function _0x29b0cb(_0x54a8dc,_0x3d493a,_0x2638a9,_0x130679){return _0x521c92(_0x54a8dc-0x1c2,_0x130679,_0x2638a9-_0xac3d0._0x2342b4,_0x2638a9- -_0xac3d0._0xd54845);}this[_0x29b0cb(-0x1f7,-_0x417637._0x47285b,-_0x417637._0x12ee3a,-0x14f)]=_0xb5a54e[_0x3e0c6e(0x2f5,_0x417637._0x46bb03,_0x417637._0x1806af,_0x417637._0x1f621b)],this['baseUrl']=trimTrailingSlashes2(_0xb5a54e[_0x3e0c6e(_0x417637._0xc84b20,0x354,_0x417637._0x3ca921,0x32d)]);function _0x3e0c6e(_0x207f9e,_0x4bd432,_0x21dcc0,_0x1d6656){return _0x3adc1d(_0x207f9e-_0x3b0708._0xc5a51d,_0x21dcc0,_0x21dcc0-_0x3b0708._0x2752e0,_0x1d6656-_0x3b0708._0x6140cd);}this[_0x29b0cb(-0xe7,-0x53,-0x9d,0xd)]=_0xb5a54e[_0x29b0cb(-0x136,-_0x417637._0x542e92,-0x10e,-0x155)],this[_0x3e0c6e(0x224,0x1e9,_0x417637._0x1d4ff2,_0x417637._0xafca3a)]=trimTrailingSlashes2(_0xb5a54e[_0x3e0c6e(_0x417637._0x16df6b,0x32a,0x2dd,_0x417637._0x44571b)]),this['tokenExchangeApiVersion']=_0xb5a54e[_0x3e0c6e(_0x417637._0x1bf0e4,_0x417637._0x3fffd0,_0x417637._0x1401d1,0x372)];}async[_0x521c92(0xa0,0xba,-0xa7,0x36)](_0x385830){const _0x5263bf={_0x49db5a:0x272,_0x208717:0x298,_0x5cd73a:0x543,_0x40064e:0x4f9,_0x22b1fc:0x4da,_0x53a8a3:0x5bd,_0x51c044:0x67e,_0xa99178:0x13d,_0x563438:0x16d,_0x1ec77d:0x4f1,_0x77f60:0x3ff,_0x55af77:0x5d1,_0x42bd0e:0x585,_0x3657a4:0x492,_0x48bc0e:0x51c,_0x8e17d4:0x50a,_0x5cf9d5:0x395,_0x4ab1d4:0x383,_0x1d38d7:0x317,_0x534f38:0x2cb,_0x32dca0:0x60d,_0x5df0af:0x566,_0x2211f8:0x4d0,_0x10f5c4:0x517,_0x471c58:0x3fe,_0xb7b0cc:0x31c,_0x48ea7e:0x310,_0x5619b9:0x388,_0x2e9769:0x52b,_0x2c16a2:0x4b1,_0x519fd3:0x493,_0x7187cf:0x570,_0x44fdd3:0x556,_0x4ffc30:0x566,_0x440412:0x53b,_0x3b1c52:0x51e,_0x14f05a:0x568,_0x3b51dc:0x642,_0x5562d4:0x616,_0x5d3c20:0x593,_0x215dbe:0x336,_0x1913f9:0x262,_0x335382:0x62c,_0x3fba1b:0x5b9,_0x3d1a77:0x519},_0x1a6e5b={_0xc7b59:0x1cb,_0x42cd8e:0x10a},_0x5f152c={_0x4e4ba9:0x58,_0x43cd5e:0x197,_0x428613:0x1ab},_0xd47dda=await this[_0x3d3283(-0x28d,-0x2a2,-_0x5263bf._0x49db5a,-_0x5263bf._0x208717)](this[_0x3d3283(-0x268,-0x313,-0x2c4,-0x2fa)]+_0x33ddb9(0x3fd,_0x5263bf._0x5cd73a,0x4bf,0x54e),{'method':_0x33ddb9(0x59a,_0x5263bf._0x40064e,0x5c7,0x5f8),'headers':new Headers({'accept':_0x33ddb9(_0x5263bf._0x22b1fc,0x651,_0x5263bf._0x53a8a3,_0x5263bf._0x51c044),'authorization':_0x3d3283(-0x29a,-_0x5263bf._0xa99178,-0x1b2,-_0x5263bf._0x563438)+this[_0x33ddb9(_0x5263bf._0x1ec77d,_0x5263bf._0x77f60,0x488,0x48c)],'editor-version':_0x33ddb9(0x599,0x64a,_0x5263bf._0x55af77,_0x5263bf._0x42bd0e),'user-agent':_0x33ddb9(0x52e,_0x5263bf._0x3657a4,0x57d,0x4d8),'x-github-api-version':this['tokenExchangeApiVersion']}),'signal':_0x385830});if(!_0xd47dda['ok'])return{'credential':{'kind':_0x33ddb9(_0x5263bf._0x48bc0e,0x560,0x583,_0x5263bf._0x8e17d4),'value':this[_0x3d3283(-_0x5263bf._0x5cf9d5,-_0x5263bf._0x4ab1d4,-_0x5263bf._0x1d38d7,-_0x5263bf._0x534f38)]},'endpoints':{'api':this[_0x33ddb9(_0x5263bf._0x32dca0,0x4c3,_0x5263bf._0x5df0af,0x494)]}};const _0x51fa62=await _0xd47dda[_0x33ddb9(_0x5263bf._0x2211f8,_0x5263bf._0x10f5c4,0x4bb,_0x5263bf._0x471c58)]();function _0x3d3283(_0x21ee6e,_0x60d981,_0x349983,_0x489363){return _0x3adc1d(_0x21ee6e-_0x5f152c._0x4e4ba9,_0x60d981,_0x349983-_0x5f152c._0x43cd5e,_0x349983- -_0x5f152c._0x428613);}function _0x33ddb9(_0x164fed,_0x1eb107,_0x4d11eb,_0x2c8a5d){return _0x521c92(_0x164fed-_0x1a6e5b._0xc7b59,_0x1eb107,_0x4d11eb-_0x1a6e5b._0x42cd8e,_0x4d11eb-0x598);}return{'credential':{'kind':_0x3d3283(-0x26a,-_0x5263bf._0xb7b0cc,-_0x5263bf._0x48ea7e,-_0x5263bf._0x5619b9),'value':_0x51fa62['token']??this[_0x33ddb9(0x48b,_0x5263bf._0x2e9769,0x488,0x450)]},'endpoints':{'api':_0x51fa62['endpoints']?.[_0x33ddb9(0x4a6,_0x5263bf._0x2c16a2,_0x5263bf._0x519fd3,0x4f7)]??this[_0x33ddb9(_0x5263bf._0x7187cf,_0x5263bf._0x44fdd3,_0x5263bf._0x4ffc30,_0x5263bf._0x440412)],'originTracker':_0x51fa62[_0x33ddb9(0x45c,_0x5263bf._0x3b1c52,0x53d,0x4f3)]?.[_0x33ddb9(_0x5263bf._0x14f05a,0x5af,_0x5263bf._0x3b51dc,_0x5263bf._0x5562d4)],'proxy':_0x51fa62['endpoints']?.[_0x33ddb9(0x491,_0x5263bf._0x5d3c20,0x53c,0x60a)],'telemetry':_0x51fa62[_0x3d3283(-0x303,-_0x5263bf._0x215dbe,-_0x5263bf._0x1913f9,-0x2a5)]?.[_0x33ddb9(_0x5263bf._0x335382,0x4fa,_0x5263bf._0x3fba1b,_0x5263bf._0x3d1a77)]}};}};function trimTrailingSlashes2(_0x3eb33b){const _0x13a880={_0x4f0634:0x625},_0x1ad20f={_0x628c5f:0xa5,_0x5eb364:0x59f};function _0x235e92(_0x10c8c8,_0x4d68b8,_0xa2243,_0x435cc8){return _0x3adc1d(_0x10c8c8-0x79,_0xa2243,_0xa2243-_0x1ad20f._0x628c5f,_0x4d68b8-_0x1ad20f._0x5eb364);}return _0x3eb33b[_0x235e92(0x63e,0x5f0,0x61e,_0x13a880._0x4f0634)](/\/+$/,'');}function createModelInfo(_0x46bfd0){const _0x3df7c0={_0x10cad0:0x1c3,_0x1894e3:0x3c5,_0x4c99da:0x46a,_0x4a1af3:0x3b5,_0xe8126c:0x335,_0xd12bd0:0x90,_0x5a6642:0x1d3,_0x1a3559:0xf0,_0x21e3a4:0x1aa,_0x4283ce:0x1cf,_0x160e5b:0x25f,_0x1c5c90:0x377,_0x4ac49d:0x382,_0xe4c879:0x4cc,_0x3fc21e:0x195,_0xcdb0b2:0x12c,_0xe77d8a:0x4b4,_0x71ffa:0x419},_0x315ba0={_0x5f5512:0x154,_0x71753a:0x1b0},_0x5a946b={_0x56fa33:0x191},_0x132629=_0x46bfd0[_0x11c23a(-0x200,-0x289,-_0x3df7c0._0x10cad0,-0x2d2)]??_0x46bfd0[_0x3a40a6(0x3ca,_0x3df7c0._0x1894e3,0x47a,_0x3df7c0._0x4c99da)],_0x120fd6=_0x46bfd0[_0x3a40a6(_0x3df7c0._0x4a1af3,_0x3df7c0._0xe8126c,0x33e,0x3ca)]?.[_0x11c23a(-0x12b,-_0x3df7c0._0xd12bd0,-_0x3df7c0._0x5a6642,-_0x3df7c0._0x1a3559)]?.[_0x11c23a(-_0x3df7c0._0x21e3a4,-0x175,-_0x3df7c0._0x4283ce,-_0x3df7c0._0x160e5b)];function _0x3a40a6(_0x457073,_0x4ee93b,_0xe49dd6,_0x53ee1e){return _0x521c92(_0x457073-0xe0,_0x4ee93b,_0xe49dd6-_0x5a946b._0x56fa33,_0x457073-0x437);}const _0xa11309=_0x46bfd0[_0x3a40a6(_0x3df7c0._0x4a1af3,_0x3df7c0._0x1c5c90,_0x3df7c0._0x4ac49d,0x363)]?.[_0x3a40a6(0x416,_0x3df7c0._0xe4c879,0x452,0x3f7)]?.[_0x11c23a(-_0x3df7c0._0x3fc21e,-_0x3df7c0._0xcdb0b2,-0x143,-0x1bf)];function _0x11c23a(_0x5f0375,_0x421e55,_0x3237af,_0x595f86){return _0x3adc1d(_0x5f0375-_0x315ba0._0x5f5512,_0x595f86,_0x3237af-_0x315ba0._0x71753a,_0x5f0375- -0xae);}const _0x487655=_0x120fd6!==void 0x0||_0xa11309!==void 0x0?{..._0x120fd6!==void 0x0?{'contextWindow':_0x120fd6}:{},..._0xa11309!==void 0x0?{'maxOutput':_0xa11309}:{}}:void 0x0;return{'id':_0x46bfd0['id'],'name':_0x46bfd0[_0x3a40a6(_0x3df7c0._0xe77d8a,0x4f8,0x541,_0x3df7c0._0x71ffa)]??_0x46bfd0['id'],..._0x487655?{'limits':_0x487655}:{},..._0x132629?{'supportedEndpoints':_0x132629}:{}};}function deduplicateModels(_0xc7d69f){const _0x1b1100={_0xdc371e:0x3ad,_0x473bde:0x315,_0x286047:0x2a1},_0x1bc17d={_0x13a207:0x15a,_0x2c726e:0x4d,_0x1e7adf:0x81},_0x1746aa={_0x5847db:0x123,_0x1cfb69:0x17,_0x374d3d:0x3b8},_0x4d81d0=new Map();function _0x1ba5c5(_0x587f09,_0x47f784,_0x14ef3a,_0x17f154){return _0x3adc1d(_0x587f09-_0x1746aa._0x5847db,_0x587f09,_0x14ef3a-_0x1746aa._0x1cfb69,_0x17f154-_0x1746aa._0x374d3d);}for(const _0x12b714 of _0xc7d69f){!_0x4d81d0[_0x1ba5c5(_0x1b1100._0xdc371e,0x2b5,0x277,_0x1b1100._0x473bde)](_0x12b714['id'])&&_0x4d81d0[_0x1ba5c5(0x356,0x1bc,0x31c,_0x1b1100._0x286047)](_0x12b714['id'],_0x12b714);}function _0x13d87f(_0x3a8990,_0x2c8b38,_0x50f43e,_0x162f84){return _0x3adc1d(_0x3a8990-_0x1bc17d._0x13a207,_0x3a8990,_0x50f43e-_0x1bc17d._0x2c726e,_0x162f84- -_0x1bc17d._0x1e7adf);}return Array[_0x13d87f(-0x1a4,0xb,-0x27,-0xc0)](_0x4d81d0[_0x13d87f(-0x51,-0xe2,0xa2,-0x37)]());}function hasUserPromptContent(_0x31cc4e){const _0x15bc23={_0x1f8501:0x36,_0x507b73:0x4d,_0x26c3c9:0xb9,_0x1feac0:0x50e,_0x395490:0x4db,_0x5d66a8:0x425,_0x262f49:0x5b1},_0x5051e8={_0x45dff4:0x31d,_0x5a5b45:0x35d,_0x3aa24e:0x4b7,_0x2a7a5b:0x3d7,_0x3be9e3:0x59c,_0x214777:0x48f,_0x3ecde8:0x492,_0x1a70a0:0x416,_0x255027:0x49b,_0x2cb228:0x4cd,_0x3f5fd5:0x47e,_0x401bbe:0x504,_0x1b6396:0x3ed,_0x168471:0x403},_0x95ca0d={_0x511b5f:0x1a0},_0x47e326={_0x39456c:0x166},_0x13490f={_0x56c172:0x146,_0x4597b6:0x86};function _0x4e0cb5(_0x212448,_0x1c7ee7,_0x35dd68,_0x214d1f){return _0x521c92(_0x212448-0x1f2,_0x35dd68,_0x35dd68-_0x13490f._0x56c172,_0x212448- -_0x13490f._0x4597b6);}if(typeof _0x31cc4e===_0x4e0cb5(-_0x15bc23._0x1f8501,_0x15bc23._0x507b73,_0x15bc23._0x26c3c9,0x49))return _0x31cc4e[_0x4310db(_0x15bc23._0x1feac0,0x5d4,0x575,_0x15bc23._0x395490)]()[_0x4310db(0x501,_0x15bc23._0x5d66a8,_0x15bc23._0x262f49,0x4fa)]>0x0;function _0x4310db(_0x503147,_0x3c674e,_0x3cfe29,_0x3b2093){return _0x3adc1d(_0x503147-0x163,_0x3cfe29,_0x3cfe29-_0x47e326._0x39456c,_0x503147-0x4b2);}if(!Array['isArray'](_0x31cc4e))return![];return _0x31cc4e['some'](_0x1e8dbb=>{if(!_0x1e8dbb||typeof _0x1e8dbb!==_0x45ecdf(0x3a3,_0x5051e8._0x45dff4,0x26f,_0x5051e8._0x5a5b45))return![];const _0x2e669f=_0x1e8dbb;function _0x2af37d(_0x30b4f0,_0x5628bd,_0x27bece,_0x4facea){return _0x4e0cb5(_0x27bece-0x52b,_0x5628bd-_0x95ca0d._0x511b5f,_0x4facea,_0x4facea-0x114);}function _0x45ecdf(_0x113dc8,_0x2a98d7,_0x28b56b,_0x193d10){return _0x4310db(_0x2a98d7- -0x73,_0x2a98d7-0x19e,_0x113dc8,_0x193d10-0x73);}return(_0x2e669f[_0x2af37d(0x445,0x536,_0x5051e8._0x3aa24e,0x551)]===_0x2af37d(0x4cd,0x42e,0x464,_0x5051e8._0x2a7a5b)||_0x2e669f['type']===_0x45ecdf(0x434,0x42a,0x342,0x361))&&typeof _0x2e669f['text']===_0x2af37d(_0x5051e8._0x3be9e3,_0x5051e8._0x214777,0x4f5,0x59c)&&_0x2e669f[_0x45ecdf(0x4c1,0x42a,_0x5051e8._0x3ecde8,_0x5051e8._0x1a70a0)][_0x45ecdf(0x56b,_0x5051e8._0x255027,_0x5051e8._0x2cb228,_0x5051e8._0x3f5fd5)]()[_0x45ecdf(_0x5051e8._0x401bbe,0x48e,_0x5051e8._0x1b6396,_0x5051e8._0x168471)]>0x0;});}function _isUserPromptEntry(_0x34fa22){const _0x4f22f7={_0x1a80fb:0x219,_0x4e1910:0x304,_0x2477b3:0x167,_0x1a7631:0x424,_0x2d3143:0x3a4,_0x316144:0x430,_0x183be9:0x37f,_0x3edd41:0x46f,_0x319e30:0x4b8,_0x2f718c:0x3ac,_0x19a001:0x24a,_0x2e5358:0x36f,_0x5bfcf9:0x31e},_0x4d635d={_0x151fd2:0x1cd,_0x2a937c:0x502},_0x1a1189={_0xf13eee:0xd8,_0x29e933:0x33b};function _0xd7d64b(_0x5d753d,_0x174ed7,_0x33e54f,_0x46a6b1){return _0x3adc1d(_0x5d753d-0x1d,_0x33e54f,_0x33e54f-_0x1a1189._0xf13eee,_0x5d753d-_0x1a1189._0x29e933);}if(!_0x34fa22||typeof _0x34fa22!==_0xd7d64b(_0x4f22f7._0x1a80fb,_0x4f22f7._0x4e1910,0x245,_0x4f22f7._0x2477b3))return![];const _0x1ed94c=_0x34fa22;if(_0x1ed94c[_0x168e65(0x30a,_0x4f22f7._0x1a7631,_0x4f22f7._0x2d3143,0x30d)]!==_0xd7d64b(0x379,0x2d4,_0x4f22f7._0x316144,_0x4f22f7._0x183be9))return![];if(_0x1ed94c[_0x168e65(0x4c6,_0x4f22f7._0x3edd41,_0x4f22f7._0x319e30,0x597)]!==void 0x0&&_0x1ed94c['type']!==_0xd7d64b(0x333,_0x4f22f7._0x2f718c,0x25f,_0x4f22f7._0x19a001))return![];function _0x168e65(_0x746ad9,_0x32fbe3,_0x903be5,_0x4173a6){return _0x3adc1d(_0x746ad9-0x184,_0x4173a6,_0x903be5-_0x4d635d._0x151fd2,_0x903be5-_0x4d635d._0x2a937c);}return hasUserPromptContent(_0x1ed94c[_0x168e65(0x2e2,_0x4f22f7._0x2e5358,0x3c4,_0x4f22f7._0x5bfcf9)]);}function determineInitiator(_0x2281b0){const _0x332930={_0x4edc26:0x85,_0x4af8a8:0x62,_0x217a33:0xbd,_0x2d4b91:0x37,_0x32763a:0xab,_0xde243:0x212,_0x72b60b:0x16c,_0x4111f8:0x19b,_0x33cfb6:0xb2,_0xad4e63:0xae,_0x38e570:0x3a,_0x10c07b:0x73,_0x48207a:0x1e7,_0x33cf73:0x139,_0x18cfbf:0x13d,_0x400d50:0xd0,_0x4b3a00:0x140,_0x4e1134:0x13d,_0x557f85:0x173,_0x1b61fb:0xe3,_0x4cacd7:0x47},_0x5877b6={_0x106f97:0x114,_0x3c3a93:0x1b4},_0x37cb7f={_0x5c348d:0x56,_0x12df38:0x14a};function _0x7fc8e(_0x2fda05,_0x4e649d,_0x1bae52,_0x4ec839){return _0x3adc1d(_0x2fda05-_0x37cb7f._0x5c348d,_0x2fda05,_0x1bae52-_0x37cb7f._0x12df38,_0x4e649d- -0x18c);}if(!_0x2281b0||typeof _0x2281b0!==_0x1600b7(-0xdc,-_0x332930._0x4edc26,-0x57,_0x332930._0x4af8a8))return _0x1600b7(_0x332930._0x217a33,0x9b,_0x332930._0x2d4b91,-_0x332930._0x32763a);const _0x1151e2=_0x7fc8e(-_0x332930._0xde243,-0x16c,-0xb6,-0x23c)in _0x2281b0?_0x2281b0[_0x7fc8e(-0x219,-_0x332930._0x72b60b,-_0x332930._0x4111f8,-_0x332930._0x33cfb6)]:'input'in _0x2281b0?_0x2281b0[_0x1600b7(0x147,_0x332930._0xad4e63,0xb2,-_0x332930._0x38e570)]:void 0x0;if(!Array[_0x1600b7(_0x332930._0x10c07b,0xea,0x107,_0x332930._0x48207a)](_0x1151e2)||_0x1151e2[_0x7fc8e(-_0x332930._0x33cf73,-_0x332930._0x18cfbf,-_0x332930._0x400d50,-0xf4)]===0x0)return'agent';function _0x1600b7(_0x367f2d,_0x1a1095,_0x4d4db3,_0x498e50){return _0x521c92(_0x367f2d-_0x5877b6._0x106f97,_0x498e50,_0x4d4db3-_0x5877b6._0x3c3a93,_0x4d4db3-0x6f);}return _isUserPromptEntry(_0x1151e2[_0x1151e2[_0x7fc8e(-_0x332930._0x4b3a00,-_0x332930._0x4e1134,-_0x332930._0x557f85,-_0x332930._0x1b61fb)]-0x1])?'user':_0x1600b7(_0x332930._0x4cacd7,-0x70,0x37,0x44);}function isUnsupportedApiForModel(_0xdf7daf){const _0x5b4a92={_0x1a4d44:0x58f,_0xc1d1a0:0x52c,_0x34e2b0:0x5e4,_0x2b376e:0x5d0,_0x34caaa:0x578},_0x133820={_0x5d0b78:0x191,_0x2cfa3a:0x5b5},_0x25841e={_0x448b34:0x1cf,_0xbaa53e:0x23};function _0x5eb007(_0x12bc61,_0x58abf5,_0x274fb0,_0x41a677){return _0x3adc1d(_0x12bc61-_0x25841e._0x448b34,_0x41a677,_0x274fb0-_0x25841e._0xbaa53e,_0x58abf5-0x396);}function _0x254760(_0x3bd980,_0x3c84fc,_0xa2ce02,_0xf68601){return _0x3adc1d(_0x3bd980-0x2b,_0xf68601,_0xa2ce02-_0x133820._0x5d0b78,_0x3bd980-_0x133820._0x2cfa3a);}return _0xdf7daf[_0x254760(0x4a0,_0x5b4a92._0x1a4d44,_0x5b4a92._0xc1d1a0,0x404)](_0x254760(0x5eb,_0x5b4a92._0x34e2b0,_0x5b4a92._0x2b376e,_0x5b4a92._0x34caaa));}function createResponseError(_0x406e19,_0x10c171){const _0x26f6e7={_0x2c1f62:0x397,_0x620926:0x77,_0x4be6a7:0x4b,_0x24b7e2:0x130},_0x15cc85={_0x3f8df:0x4c,_0x5a387d:0x26},_0x1bff02={_0x47a1bb:0xf5};if(_0x406e19===0x191||_0x406e19===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');if(_0x406e19===0x198||_0x406e19===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');function _0x480d57(_0x4b37c7,_0x1cc451,_0x42ec71,_0x5acef6){return _0x3adc1d(_0x4b37c7-_0x1bff02._0x47a1bb,_0x1cc451,_0x42ec71-0x1e2,_0x42ec71-0xc);}function _0x540d33(_0x2d23ab,_0x27dcae,_0x432306,_0x3b538d){return _0x3adc1d(_0x2d23ab-_0x15cc85._0x3f8df,_0x2d23ab,_0x432306-_0x15cc85._0x5a387d,_0x432306-0x336);}if(_0x406e19===0x190)return new Error(_0x540d33(_0x26f6e7._0x2c1f62,0x2b6,0x379,0x30e)+_0x10c171);return new Error(_0x10c171||_0x480d57(-_0x26f6e7._0x620926,-0x67,_0x26f6e7._0x4be6a7,_0x26f6e7._0x24b7e2)+_0x406e19);}var GitHubModel=class extends OpenAiModel{[_0x521c92(-0x155,-0x80,-0x62,-0x84)];[_0x3adc1d(0x28,0xb,-0x8f,0x1)]=new Map();[_0x3adc1d(-0x1a5,-0x1e5,-0x193,-0x15d)];constructor(_0x3c3b4b={}){const _0x11e5cd={_0x331c7d:0x3b9,_0x3a5c7b:0x481,_0x580e3e:0x29f,_0x198b36:0x26c,_0x54e639:0x2ee,_0x4e377b:0x190,_0x123422:0x161,_0x39a80c:0x240,_0x38ade6:0x273,_0x3ed0c3:0x2dd,_0xc22008:0xfc,_0x66d4a9:0x246,_0x1d76db:0x297,_0x1de954:0x15c,_0x41be44:0x131,_0x13a93c:0x1a3,_0x4b17b1:0x338,_0x273901:0x244,_0x5d6a34:0x1d4,_0x4895a6:0x1b1,_0x1caa66:0x2cd,_0x5f378b:0x332,_0x539d20:0x295,_0x2fe46e:0x348,_0x4c867a:0x281,_0x2ebe0a:0x195,_0x41e9d8:0x211,_0x10cb8f:0x356,_0x56dc38:0x2f3,_0x5e5add:0x30d,_0x66d7a9:0x279,_0x175f32:0x25d,_0x378a60:0x2de,_0xd61d9c:0x2dc,_0x775507:0x310,_0x309689:0x305,_0x44fd48:0x274,_0x272417:0x2f9,_0x2ab656:0x2da,_0x5e07a6:0x254,_0xef64e1:0x15b,_0x3d852c:0x15,_0x210f3b:0x90},_0x509aa4={_0x66fe3b:0x144,_0x613021:0x14e},_0x5ab16f={_0xdacf91:0x13e,_0x47ba72:0x167},_0x28228c=trimTrailingSlashes2(_0x3c3b4b['baseUrl']??_0x51541b(_0x11e5cd._0x331c7d,0x2e4,_0x11e5cd._0x3a5c7b,0x395));function _0x215780(_0x2e0e39,_0x43f9e9,_0x20fe0c,_0x5144f4){return _0x3adc1d(_0x2e0e39-_0x5ab16f._0xdacf91,_0x20fe0c,_0x20fe0c-0x48,_0x2e0e39- -_0x5ab16f._0x47ba72);}const _0x20f041=_0x3c3b4b['fetch']??globalThis[_0x215780(-_0x11e5cd._0x580e3e,-_0x11e5cd._0x198b36,-_0x11e5cd._0x54e639,-0x31f)],_0x8b3e65=_0x3c3b4b[_0x215780(-_0x11e5cd._0x4e377b,-0x13d,-0x26f,-_0x11e5cd._0x123422)]??(_0x3c3b4b['accessToken']?new GitHubAccessTokenResolver({'accessToken':_0x3c3b4b[_0x215780(-0x2d3,-0x295,-0x39d,-_0x11e5cd._0x39a80c)],'baseUrl':_0x28228c,'fetch':_0x20f041,'githubApiUrl':_0x3c3b4b[_0x51541b(_0x11e5cd._0x38ade6,_0x11e5cd._0x3ed0c3,0x25d,0x354)]??'https://api.github.com','tokenExchangeApiVersion':_0x3c3b4b[_0x215780(-0x1b0,-0xf8,-_0x11e5cd._0xc22008,-0x283)]??_0x51541b(0x258,_0x11e5cd._0x66d4a9,0x30b,_0x11e5cd._0x1d76db)}):void 0x0),_0x52ea63=_0x3c3b4b[_0x215780(-_0x11e5cd._0x1de954,-_0x11e5cd._0x41be44,-_0x11e5cd._0x13a93c,-0x13c)]??_0x51541b(0x334,_0x11e5cd._0x4b17b1,0x312,0x360),_0x57c32c=_0x3c3b4b[_0x215780(-0x1ac,-_0x11e5cd._0x273901,-_0x11e5cd._0x5d6a34,-_0x11e5cd._0x4895a6)]??'copilot-chat/0.31.3',_0xc60437=({body:_0x8d7297})=>{return{'editor-plugin-version':_0x57c32c,'editor-version':_0x52ea63,'x-initiator':determineInitiator(_0x8d7297),'x-request-id':randomUUID()};},_0x2bb2e7={'apiKey':_0x3c3b4b[_0x215780(-_0x11e5cd._0x1caa66,-0x301,-_0x11e5cd._0x5f378b,-_0x11e5cd._0x539d20)],'baseUrl':_0x28228c,'fetch':_0x20f041,'maxTokens':_0x3c3b4b[_0x51541b(0x274,_0x11e5cd._0x2fe46e,_0x11e5cd._0x4c867a,_0x11e5cd._0x2ebe0a)],'model':_0x3c3b4b[_0x51541b(0x29f,_0x11e5cd._0x41e9d8,0x34f,_0x11e5cd._0x10cb8f)],'reasoning':_0x3c3b4b['reasoning'],'providerSessionResolver':_0x8b3e65,'requestMutators':_0x3c3b4b[_0x215780(-0x270,-0x2ac,-_0x11e5cd._0x56dc38,-0x25d)],'headerResolver':_0xc60437};super(_0x2bb2e7);function _0x51541b(_0x176057,_0x454c4b,_0xaee7df,_0x2be7e0){return _0x521c92(_0x176057-_0x509aa4._0x66fe3b,_0xaee7df,_0xaee7df-_0x509aa4._0x613021,_0x176057-0x330);}this[_0x215780(-0x2c4,-0x383,-_0x11e5cd._0x5e5add,-0x3ae)]=_0x3c3b4b[_0x215780(-0x2c4,-_0x11e5cd._0x66d7a9,-0x38e,-_0x11e5cd._0x175f32)]??'auto',this[_0x215780(-0x247,-_0x11e5cd._0x378a60,-_0x11e5cd._0xd61d9c,-_0x11e5cd._0x775507)]=new AnthropicModel({'apiKey':_0x3c3b4b[_0x51541b(0x226,0x2bc,_0x11e5cd._0x309689,0x1dc)],'authScheme':'bearer','baseUrl':_0x28228c,'fetch':_0x20f041,'headerResolver':_0xc60437,'maxTokens':_0x3c3b4b[_0x51541b(_0x11e5cd._0x44fd48,_0x11e5cd._0x272417,_0x11e5cd._0x2ab656,0x291)],'model':_0x3c3b4b[_0x215780(-_0x11e5cd._0x5e07a6,-0x324,-0x288,-0x239)],'reasoning':_0x3c3b4b[_0x215780(-0x103,-_0x11e5cd._0xef64e1,-_0x11e5cd._0x3d852c,-_0x11e5cd._0x210f3b)],'providerSessionResolver':_0x8b3e65,'requestMutators':_0x3c3b4b['requestMutators']});}['createMissingCredentialError'](){function _0x117985(_0x55ac69,_0x138e48,_0x58ce7d,_0x2fdab3){return _0x3adc1d(_0x55ac69-0xa4,_0x2fdab3,_0x58ce7d-0xd8,_0x55ac69- -0x1d6);}return new Error(_0x117985(-0x326,-0x23f,-0x2bd,-0x2b9));}[_0x3adc1d(-0x109,-0x16e,-0x36,-0xae)](_0xf24164){const _0x5aa876={_0x3c5e22:0x436,_0x2c4443:0x477,_0x4059bc:0x4f9,_0x4588f5:0x22b,_0x4a674d:0x375,_0x2bd28f:0x451,_0x4ff256:0x2d7,_0x495d37:0x55f,_0x43f91b:0x5c0,_0x474a08:0x4df},_0x14efb7={_0x5e038c:0xab},_0x4750aa=this[_0xce8012(_0x5aa876._0x3c5e22,0x51e,_0x5aa876._0x2c4443,_0x5aa876._0x4059bc)]['get'](_0xf24164);if(!_0x4750aa)return![];function _0x366d34(_0x330100,_0x35c758,_0x37901e,_0x1ab840){return _0x521c92(_0x330100-0x67,_0x1ab840,_0x37901e-0x0,_0x330100-0x2c2);}function _0xce8012(_0x340232,_0x1dd4b5,_0x58e17a,_0x629ffe){return _0x3adc1d(_0x340232-_0x14efb7._0x5e038c,_0x1dd4b5,_0x58e17a-0xdc,_0x58e17a-0x476);}return!_0x4750aa[_0xce8012(0x329,0x337,0x361,0x451)](_0x366d34(0x1c3,0x20a,0x228,_0x5aa876._0x4588f5))&&_0x4750aa[_0xce8012(_0x5aa876._0x4a674d,_0x5aa876._0x2bd28f,0x361,_0x5aa876._0x4ff256)](_0xce8012(_0x5aa876._0x495d37,_0x5aa876._0x43f91b,_0x5aa876._0x474a08,0x56a));}[_0x521c92(0x107,0x90,0x176,0xa7)](_0x18fecc){const _0x30911f={_0x2c8722:0x50f,_0x491c71:0x4db,_0x460749:0x5a8,_0x19b69d:0x6a8,_0x34f90c:0x60f,_0x3cd7ea:0x485,_0x5e1039:0x471,_0x20af8b:0x4b7,_0x1c32ab:0x111,_0x26f3c0:0x100,_0x4b50b:0x3a,_0x2e8988:0x1a,_0x2bbe0b:0x1f,_0x38a128:0x4},_0x44bb7b={_0x2d084f:0x1df,_0x482f7a:0x14},_0x436009=this['modelEndpointCache'][_0x14df8d(0x4ba,0x5c2,_0x30911f._0x2c8722,0x465)](_0x18fecc[_0x14df8d(0x41a,0x542,_0x30911f._0x491c71,_0x30911f._0x460749)]);if(!_0x436009)return![];if(resolveOpenAiReasoningConfig(_0x18fecc[_0x14df8d(_0x30911f._0x19b69d,0x5c7,0x62c,_0x30911f._0x34f90c)]))return _0x436009[_0x14df8d(_0x30911f._0x3cd7ea,_0x30911f._0x5e1039,0x4b3,_0x30911f._0x20af8b)](_0x374614(_0x30911f._0x1c32ab,0x7d,_0x30911f._0x26f3c0,_0x30911f._0x4b50b));function _0x14df8d(_0xe1b212,_0x88d5ae,_0x140a81,_0x356f35){return _0x3adc1d(_0xe1b212-0xdc,_0xe1b212,_0x140a81-0xdc,_0x140a81-0x5c8);}function _0x374614(_0x1b3cd0,_0x3d8000,_0x442113,_0x142453){return _0x3adc1d(_0x1b3cd0-_0x44bb7b._0x2d084f,_0x142453,_0x442113-0xe9,_0x3d8000-_0x44bb7b._0x482f7a);}return this[_0x374614(_0x30911f._0x2e8988,-0x9a,_0x30911f._0x2bbe0b,-_0x30911f._0x38a128)](_0x18fecc['model']);}[_0x521c92(-0x1aa,0x3,-0x3e,-0xc2)](_0x3235b1){const _0x13b6c9={_0x54376c:0x44d,_0x497e2c:0x1f7,_0x53a403:0x14a,_0x384d07:0x558,_0x2dec21:0x4dd},_0x40ad26={_0x1f3147:0xd5,_0x1a9c21:0x120},_0x68131f={_0x5ef7de:0xb9};function _0x272e19(_0x8c0e12,_0x3da905,_0x3b7550,_0x32c22d){return _0x3adc1d(_0x8c0e12-_0x68131f._0x5ef7de,_0x32c22d,_0x3b7550-0xf8,_0x3b7550-0x449);}function _0x2eb35a(_0x52b90f,_0x4f139f,_0x280eca,_0x4c257c){return _0x521c92(_0x52b90f-_0x40ad26._0x1f3147,_0x280eca,_0x280eca-0x187,_0x52b90f- -_0x40ad26._0x1a9c21);}this[_0x272e19(_0x13b6c9._0x54376c,0x4c6,0x44a,0x4b0)][_0x2eb35a(-0x1db,-0x29f,-_0x13b6c9._0x497e2c,-_0x13b6c9._0x53a403)](_0x3235b1,[_0x272e19(0x440,_0x13b6c9._0x384d07,0x4b2,_0x13b6c9._0x2dec21)]);}[_0x3adc1d(-0x5,-0xd8,-0xbd,-0x6a)](_0xeec5af){const _0x59d8bf={_0x119a6f:0xcc,_0x4d5460:0x10a,_0x26964a:0x195},_0x242dc1={_0x4c1a7f:0x45},_0x39aa79={_0x4f9daa:0xb0,_0x5aeda7:0xbb,_0x5802f0:0x2b9};function _0xb9bdd9(_0x3b796b,_0x14865f,_0x2f9545,_0x594855){return _0x3adc1d(_0x3b796b-_0x39aa79._0x4f9daa,_0x2f9545,_0x2f9545-_0x39aa79._0x5aeda7,_0x594855-_0x39aa79._0x5802f0);}if(_0xeec5af instanceof OpenAiApiError)return createResponseError(_0xeec5af['status'],_0xeec5af[_0xb9bdd9(_0x59d8bf._0x119a6f,_0x59d8bf._0x4d5460,0x1fd,_0x59d8bf._0x26964a)]||_0xeec5af[_0x4ed374(0x515,0x6ba,0x5d9,0x61c)]);function _0x4ed374(_0x35d47f,_0x1db547,_0x4ce754,_0x5a5e01){return _0x521c92(_0x35d47f-_0x242dc1._0x4c1a7f,_0x5a5e01,_0x4ce754-0x112,_0x4ce754-0x585);}return _0xeec5af;}[_0x521c92(0x136,-0x2e,0x98,0xbb)](_0xa2602f,_0x1f2036){const _0x5b9679={_0x4cdb52:0x34f,_0x2c1f69:0x2a0,_0xab3918:0x86,_0x3cf3a7:0x2e,_0x2af5eb:0xd4,_0x5ba244:0x263,_0x1dbf55:0x329,_0x47695a:0x31d,_0x331ea9:0x326,_0x382429:0x33e,_0x157e53:0xb8,_0x5eeaea:0x40,_0x113d49:0x46a,_0x127dc6:0x377,_0x223f24:0x41,_0x3561e4:0x35f,_0x28c776:0x30b,_0xa7aa2f:0x2f2,_0x340878:0x2b2,_0x1329b0:0xaa,_0x7c63a9:0x100,_0x5b83bc:0xf8,_0x3e9853:0x3f,_0xb3d7b1:0x87,_0x15ef80:0x1f3},_0xa32489={_0x10d0e8:0x33,_0x4844d6:0x7c},_0x16fcbe={_0x4793db:0x3a1};function _0x3df705(_0x48fbeb,_0x487c69,_0x628fe1,_0x28de15){return _0x521c92(_0x48fbeb-0x180,_0x48fbeb,_0x628fe1-0x77,_0x28de15-_0x16fcbe._0x4793db);}switch(this[_0x3df705(0x1b1,_0x5b9679._0x4cdb52,0x388,_0x5b9679._0x2c1f69)]){case _0x4a0145(-_0x5b9679._0xab3918,0x7e,-_0x5b9679._0x3cf3a7,-_0x5b9679._0x2af5eb):return this[_0x3df705(_0x5b9679._0x5ba244,_0x5b9679._0x1dbf55,0x32b,_0x5b9679._0x47695a)][_0x3df705(0x3fd,0x3ec,0x2d8,0x37f)](_0xa2602f,_0x1f2036);case _0x3df705(0x422,0x31d,_0x5b9679._0x331ea9,_0x5b9679._0x382429):return this[_0x4a0145(-0x36,-_0x5b9679._0x157e53,-_0x5b9679._0x5eeaea,-0x92)](_0xa2602f,_0x1f2036);case _0x3df705(0x4c5,_0x5b9679._0x113d49,0x455,0x3fb):return this[_0x3df705(0x3b1,0x36e,0x44e,_0x5b9679._0x127dc6)](_0xa2602f,_0x1f2036);case _0x4a0145(0x78,0x15,0xce,_0x5b9679._0x223f24):return this[_0x3df705(_0x5b9679._0x3561e4,0x3bc,_0x5b9679._0x28c776,_0x5b9679._0xa7aa2f)](_0xa2602f,_0x1f2036);case _0x3df705(0x299,0x33d,_0x5b9679._0x340878,0x2ec):return this[_0x4a0145(0x109,0x14a,_0x5b9679._0x1329b0,_0x5b9679._0x7c63a9)](_0xa2602f,_0x1f2036);}function _0x4a0145(_0x289157,_0x4b6a90,_0x32bfa0,_0xb48a18){return _0x3adc1d(_0x289157-_0xa32489._0x10d0e8,_0x289157,_0x32bfa0-_0xa32489._0x4844d6,_0x32bfa0-0x128);}throw new Error(_0x4a0145(-_0x5b9679._0x5b83bc,0x55,-_0x5b9679._0x3e9853,_0x5b9679._0xb3d7b1)+String(this[_0x3df705(0x38b,0x209,_0x5b9679._0x15ef80,0x2a0)]));}[_0x3adc1d(-0xaa,-0xa9,0x40,0x32)](_0x5502b6,_0x417e52){const _0x86f86={_0x4930c0:0xaf,_0x2d0393:0x97,_0x111ea3:0x2f,_0x1c172b:0x114,_0x4a45b6:0x12e,_0x74a488:0x58,_0x1a8ba3:0x65,_0x586b18:0x139,_0x555ecc:0x129,_0x574007:0xf1,_0x14ce4f:0x11a,_0x4fa33e:0x277,_0x545ff8:0x125,_0x1381a8:0x13d,_0x46955b:0x4c,_0x45a19c:0x3c,_0x2f7b9c:0x206,_0x569549:0x173,_0x48a8ae:0x105},_0x33adb1={_0x40ec66:0x15d},_0x57736f={_0x4da90a:0x56};function _0x529c35(_0x5ee90a,_0x2ef62f,_0x4285b0,_0x3cac73){return _0x521c92(_0x5ee90a-0x1e8,_0x4285b0,_0x4285b0-_0x57736f._0x4da90a,_0x2ef62f- -0xc6);}switch(this[_0x28e101(_0x86f86._0x4930c0,_0x86f86._0x2d0393,-0x34,0x27)]){case'anthropic-messages':return this[_0x28e101(_0x86f86._0x111ea3,_0x86f86._0x1c172b,0x123,_0x86f86._0x4a45b6)][_0x529c35(0x8,-_0x86f86._0x74a488,0x18,_0x86f86._0x1a8ba3)](_0x5502b6,_0x417e52);case _0x529c35(-_0x86f86._0x586b18,-_0x86f86._0x555ecc,-0xe1,-_0x86f86._0x574007):return this[_0x529c35(-0xa1,-0x190,-_0x86f86._0x14ce4f,-_0x86f86._0x4fa33e)](_0x5502b6,_0x417e52);case _0x529c35(0xf,-0x6c,-_0x86f86._0x545ff8,-_0x86f86._0x1381a8):return this['responseStream'](_0x5502b6,_0x417e52);case'openai-responses-ws':return this[_0x529c35(-_0x86f86._0x46955b,-_0x86f86._0x45a19c,-0x3d,0x3f)](_0x5502b6,_0x417e52);case'auto':return this[_0x28e101(0x1af,_0x86f86._0x2f7b9c,0x2ac,0x24d)](_0x5502b6,_0x417e52);}function _0x28e101(_0x98ed7,_0x149c97,_0xd8e78,_0xfcb8b3){return _0x3adc1d(_0x98ed7-0x12c,_0xfcb8b3,_0xd8e78-_0x33adb1._0x40ec66,_0x149c97-0x1f4);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x529c35(-0x207,-0x1c7,-_0x86f86._0x569549,-_0x86f86._0x48a8ae)]));}async[_0x521c92(-0x90,-0xb5,-0x12,-0x22)](_0x5c1f22,_0x3b2859){const _0x3974b4={_0x5b7b12:0x6b0,_0x5acb74:0x564,_0x5824cf:0x4c0,_0x10712c:0x3a4,_0x42b863:0x3b1,_0x3e763d:0x628,_0x1652d5:0x5c2,_0x14c3b7:0x4b1,_0x4b191a:0x5cc,_0x3f68e1:0x50a,_0xff9e85:0x4f4,_0x361521:0x625,_0xed77ec:0x577},_0x55d0bc={_0x1215c9:0x153,_0x568698:0x63,_0x65ccce:0x585},_0x47a8dc={_0x188a53:0x12b,_0x433679:0x50d};function _0x21f6a5(_0x2a5acc,_0x1f3082,_0x4ffd9e,_0x263b8f){return _0x3adc1d(_0x2a5acc-_0x47a8dc._0x188a53,_0x263b8f,_0x4ffd9e-0xb0,_0x2a5acc-_0x47a8dc._0x433679);}const _0x38c89a=this[_0x3a83bd(_0x3974b4._0x5b7b12,0x500,_0x3974b4._0x5acb74,0x5cf)](_0x5c1f22);function _0x3a83bd(_0x380517,_0x2daf46,_0x10a82e,_0x35feda){return _0x521c92(_0x380517-_0x55d0bc._0x1215c9,_0x2daf46,_0x10a82e-_0x55d0bc._0x568698,_0x35feda-_0x55d0bc._0x65ccce);}if(this[_0x3a83bd(_0x3974b4._0x5824cf,_0x3974b4._0x10712c,0x406,0x484)]!==_0x21f6a5(0x3fc,0x458,0x4b3,_0x3974b4._0x42b863))return this[_0x21f6a5(0x56c,_0x3974b4._0x3e763d,0x5a5,_0x3974b4._0x1652d5)](_0x38c89a,_0x3b2859);if(this['shouldPreferResponsesApi'](_0x38c89a))return this['response'](_0x38c89a,_0x3b2859);try{return await this['completeViaChatCompletionsSurface'](_0x38c89a,_0x3b2859);}catch(_0x5108eb){if(_0x5108eb instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5108eb[_0x3a83bd(_0x3974b4._0x14c3b7,0x4e4,0x48e,0x4bd)]))return this['markModelAsResponsesOnly'](_0x38c89a[_0x3a83bd(_0x3974b4._0x4b191a,0x467,_0x3974b4._0x3f68e1,_0x3974b4._0xff9e85)]),this[_0x3a83bd(0x5ad,_0x3974b4._0x361521,0x606,0x55b)](_0x38c89a,_0x3b2859);throw this[_0x3a83bd(_0x3974b4._0xed77ec,0x4f7,0x509,0x577)](_0x5108eb);}throw _0x5108eb;}}async*[_0x521c92(0x98,0x76,0xd2,0x6e)](_0x37c409,_0x1b7c3b){const _0x8bc359={_0xfe1d97:0x35d,_0x16dfbc:0x228,_0x2cb1ae:0x435,_0x4542a4:0x364,_0x56eecf:0x56c,_0x323154:0x586,_0xa2aec5:0x4a4,_0x437084:0x3d9,_0xce58f2:0x2fc,_0x1abe50:0x42b,_0x407b76:0x341,_0x4549f4:0x4b2,_0x2ff868:0x270,_0x10a6a3:0x3bc,_0x31b3e5:0x357,_0xd413fb:0x41f,_0x54e222:0x305,_0x4bf1db:0x4d3,_0x3256dd:0x5b4,_0x4f0052:0x3ff},_0x1d23b9={_0x499a11:0x193,_0xa6ecc0:0x164,_0x3ec52b:0x475},_0x2602fd={_0x5b96b6:0x1e0,_0x5bf3d3:0x54f};function _0x30e28d(_0x41ffa2,_0xab7909,_0x2d3fe7,_0x271893){return _0x3adc1d(_0x41ffa2-0x8b,_0xab7909,_0x2d3fe7-_0x2602fd._0x5b96b6,_0x41ffa2-_0x2602fd._0x5bf3d3);}const _0x22e6d7=this['applyModelDefaults'](_0x37c409);if(this[_0xef31f0(_0x8bc359._0xfe1d97,_0x8bc359._0x16dfbc,0x318,0x297)]!==_0xef31f0(0x2f2,_0x8bc359._0x2cb1ae,_0x8bc359._0x4542a4,0x440)){yield*this[_0xef31f0(0x549,0x469,0x4a7,0x431)](_0x22e6d7,_0x1b7c3b);return;}if(this[_0xef31f0(_0x8bc359._0x56eecf,_0x8bc359._0x323154,0x4c0,_0x8bc359._0xa2aec5)](_0x22e6d7)){yield*this[_0xef31f0(0x376,0x324,_0x8bc359._0x437084,_0x8bc359._0xce58f2)](_0x22e6d7,_0x1b7c3b);return;}function _0xef31f0(_0x23017c,_0x313663,_0x2671e8,_0x447cc8){return _0x3adc1d(_0x23017c-_0x1d23b9._0x499a11,_0x23017c,_0x2671e8-_0x1d23b9._0xa6ecc0,_0x2671e8-_0x1d23b9._0x3ec52b);}try{yield*this[_0xef31f0(0x358,0x377,0x37e,0x3f4)](_0x22e6d7,_0x1b7c3b);}catch(_0x52bf57){if(_0x52bf57 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x52bf57[_0x30e28d(_0x8bc359._0x1abe50,_0x8bc359._0x407b76,0x479,_0x8bc359._0x4549f4)])){this[_0xef31f0(_0x8bc359._0x2ff868,_0x8bc359._0x10a6a3,_0x8bc359._0x31b3e5,_0x8bc359._0xd413fb)](_0x22e6d7[_0xef31f0(_0x8bc359._0x54e222,0x2bc,0x388,0x324)]),yield*this['responseStream'](_0x22e6d7,_0x1b7c3b);return;}throw this[_0x30e28d(0x4e5,_0x8bc359._0x4bf1db,_0x8bc359._0x3256dd,_0x8bc359._0x4f0052)](_0x52bf57);}throw _0x52bf57;}}async[_0x3adc1d(-0x12c,-0xc5,-0x3d,-0x66)](_0xa9bee8){const _0x1c826e={_0x8c8bd4:0x1a2,_0x221bfe:0x2d1,_0x5bcfed:0x167,_0x16d22f:0x297,_0x45e785:0x2eb,_0x39e898:0x341,_0x347d8f:0x1a2},_0x2a79ba={_0x585818:0x3ea,_0x1b75e6:0x260},_0x37cc6a=await this[_0x23a10d(_0x1c826e._0x8c8bd4,0x27b,0x321,_0x1c826e._0x221bfe)]({'path':'/models','method':'GET','signal':_0xa9bee8});if(!_0x37cc6a['ok'])throw this[_0xcd2cf6(0xc8,0xfe,_0x1c826e._0x5bcfed,0x22f)](await this['toApiError'](_0x37cc6a));function _0x23a10d(_0x2e6d64,_0x26558e,_0x1b6153,_0x1bb743){return _0x521c92(_0x2e6d64-0xe9,_0x1bb743,_0x1b6153-0x19f,_0x26558e-0x220);}const _0x4a1dc3=await _0x37cc6a['json'](),_0x30a207=(_0x4a1dc3[_0x23a10d(_0x1c826e._0x16d22f,0x25b,_0x1c826e._0x45e785,_0x1c826e._0x39e898)]??[])[_0x23a10d(0x16d,0x1e2,0x2b5,_0x1c826e._0x347d8f)](_0x3619fe=>{const _0x1e428e={_0xbbf159:0xdf},_0x22ef26=createModelInfo(_0x3619fe);function _0xc7f848(_0x43eff1,_0x478e8d,_0x5e5204,_0x5e2272){return _0xcd2cf6(_0x43eff1-_0x1e428e._0xbbf159,_0x478e8d-0x94,_0x478e8d-0xc5,_0x5e5204);}return _0x22ef26[_0xc7f848(0x271,0x301,_0x2a79ba._0x585818,_0x2a79ba._0x1b75e6)]&&this['modelEndpointCache']['set'](_0x22ef26['id'],_0x22ef26['supportedEndpoints']),_0x22ef26;});function _0xcd2cf6(_0xbc635d,_0x16464b,_0x5e6aa3,_0x40a785){return _0x521c92(_0xbc635d-0x17a,_0x40a785,_0x5e6aa3-0x38,_0x5e6aa3-0x175);}return deduplicateModels(_0x30a207);}};function createHeaders(_0x3ea750){const _0xf8dc67={_0xab09d1:0x43,_0x36a1b4:0x42,_0x5db080:0x83},_0x489543={_0x40d860:0x160,_0x737d35:0x159},_0x362afb=new Headers();function _0x32b644(_0x46e59b,_0x5b635e,_0x5cd561,_0x484d42){return _0x3adc1d(_0x46e59b-0x146,_0x46e59b,_0x5cd561-_0x489543._0x40d860,_0x5b635e-_0x489543._0x737d35);}for(const [_0x564c08,_0x4cd4a3]of Object['entries'](_0x3ea750)){_0x362afb[_0x32b644(_0xf8dc67._0xab09d1,_0xf8dc67._0x36a1b4,_0xf8dc67._0x5db080,-0x28)](_0x564c08,_0x4cd4a3);}return _0x362afb;}async function fetchRawResponse(_0x7e3fdf){const _0x41df74={_0x401556:0x143,_0x47c43a:0x8f,_0xc76d82:0x301},_0x477047={_0x13638f:0x169,_0x4b7cbe:0x2b4},_0x5e89f7={_0x4085c5:0x237};function _0x16d4eb(_0x2c7628,_0x477059,_0x390efc,_0x5cc51a){return _0x521c92(_0x2c7628-0xd8,_0x2c7628,_0x390efc-0x137,_0x5cc51a-_0x5e89f7._0x4085c5);}function _0x103e8a(_0x165d38,_0x1d1e05,_0x1697f9,_0x26d244){return _0x3adc1d(_0x165d38-_0x477047._0x13638f,_0x1697f9,_0x1697f9-0xe4,_0x26d244-_0x477047._0x4b7cbe);}const _0x26124e=_0x7e3fdf[_0x16d4eb(0x229,_0x41df74._0x401556,_0x41df74._0x47c43a,0x15b)]??globalThis[_0x103e8a(0x1ec,0x14c,0xc3,0x17c)];return _0x26124e(_0x7e3fdf['url'],{'method':_0x103e8a(0x1ee,0x270,0x238,0x239),'headers':createHeaders(_0x7e3fdf[_0x16d4eb(0x22a,0x303,_0x41df74._0xc76d82,0x293)]),'body':JSON['stringify'](_0x7e3fdf['body']),'signal':_0x7e3fdf['signal']});}async function fetchJsonResponse(_0x185fcd){const _0x5255cb={_0x1c0842:0x8b,_0x4d8425:0x82,_0x15bd5f:0x109,_0x2f4184:0x53,_0xb80046:0x6f,_0x303099:0x203,_0x3fa861:0x521,_0x1ab26f:0x5ff,_0x1074be:0xf1,_0x536434:0x1a6},_0x288996={_0x7bdc10:0xc0},_0x3cb0c4={_0x181916:0xdf,_0x24b057:0xfa,_0x16ac91:0x54c};function _0x378527(_0x5821dd,_0x13da9f,_0x4e2674,_0x4d1201){return _0x521c92(_0x5821dd-_0x3cb0c4._0x181916,_0x5821dd,_0x4e2674-_0x3cb0c4._0x24b057,_0x4d1201-_0x3cb0c4._0x16ac91);}const _0x1baf1c=await fetchRawResponse(_0x185fcd);if(!_0x1baf1c['ok']){const _0x13d0de=await _0x1baf1c[_0x2bed97(-_0x5255cb._0x1c0842,-_0x5255cb._0x4d8425,0x7,-_0x5255cb._0x15bd5f)](),_0x32d31a=_0x13d0de['trim']()||_0x1baf1c[_0x2bed97(-_0x5255cb._0x2f4184,-0x51,-_0x5255cb._0xb80046,0x18)]||'Unknown\x20provider\x20error';throw new Error(_0x2bed97(-0xed,-0x1bb,-_0x5255cb._0x303099,-0x15b)+_0x1baf1c[_0x378527(0x612,0x5ff,_0x5255cb._0x3fa861,_0x5255cb._0x1ab26f)]+':\x20'+_0x32d31a);}function _0x2bed97(_0x55a87f,_0xea7d80,_0x109cdb,_0x1df342){return _0x3adc1d(_0x55a87f-_0x288996._0x7bdc10,_0x1df342,_0x109cdb-0xc1,_0xea7d80- -0x6d);}return await _0x1baf1c[_0x2bed97(-_0x5255cb._0x1074be,-_0x5255cb._0x536434,-0x17c,-0x23c)]();}function findLastMessage(_0x51433b,_0x14442f){const _0x1125d5={_0x24209e:0x39b,_0x28a59c:0x37f,_0xa76747:0x2b7,_0x1fc6d1:0x47d},_0x38b8d={_0x4500d7:0x1c},_0x450b46={_0x3177c5:0x5db};function _0x41f218(_0x592171,_0xd551b2,_0x5f56a6,_0x240ffa){return _0x3adc1d(_0x592171-0x49,_0x592171,_0x5f56a6-0x1a9,_0x240ffa-_0x450b46._0x3177c5);}for(let _0x53f776=_0x51433b[_0x1011b8(_0x1125d5._0x24209e,0x21a,_0x1125d5._0x28a59c,_0x1125d5._0xa76747)]-0x1;_0x53f776>=0x0;_0x53f776-=0x1){if(_0x51433b[_0x53f776][_0x41f218(0x3c7,0x519,0x487,_0x1125d5._0x1fc6d1)]===_0x14442f)return _0x51433b[_0x53f776];}function _0x1011b8(_0x4b168f,_0x5c6938,_0x44b6d0,_0x23e75a){return _0x3adc1d(_0x4b168f-_0x38b8d._0x4500d7,_0x44b6d0,_0x44b6d0-0x1cb,_0x23e75a-0x268);}return void 0x0;}function hasTool(_0x2f3062,_0x488462){const _0x2c4a74={_0x3d7353:0x201,_0x63697d:0x20a,_0xfb044d:0x295,_0x24aa9b:0x204,_0x47efb4:0x144},_0x413994={_0x11bba3:0xd0};function _0x2747b9(_0xfedcd7,_0x1f183d,_0x12778e,_0x39199c){return _0x3adc1d(_0xfedcd7-0xd6,_0x12778e,_0x12778e-0x77,_0x1f183d-0x206);}function _0x3e30d2(_0x4a6e94,_0x132e14,_0x3212af,_0x49428f){return _0x521c92(_0x4a6e94-_0x413994._0x11bba3,_0x3212af,_0x3212af-0x1b1,_0x49428f-0x225);}return _0x2f3062[_0x2747b9(_0x2c4a74._0x3d7353,_0x2c4a74._0x63697d,_0x2c4a74._0xfb044d,0x148)][_0x3e30d2(_0x2c4a74._0x24aa9b,0x1ea,_0x2c4a74._0x47efb4,0x1e8)](_0x3a4f83=>_0x3a4f83[_0x2747b9(0x2ca,0x227,0x2ce,0x19a)]===_0x488462);}function createMockResponse(_0x40937f,_0x55bae8,_0x150086,_0x165624){return{'id':_0x40937f,'content':_0x55bae8,'stopReason':_0x150086,'usage':_0x165624};}var MockModel=class{['model'];[_0x3adc1d(-0xea,-0x1d2,-0x1de,-0x118)];[_0x521c92(-0x2a,-0x3d,0x5,0x7b)]=[];[_0x521c92(0x28,0x113,0x150,0xc0)];constructor(_0x546603={}){const _0xde1a94={_0x14b571:0x261,_0x118b5e:0x538,_0x447ba7:0x52a,_0x5143e2:0x5a4,_0x32e2c3:0x4c1,_0x592f88:0x49e,_0x4eedc2:0x63d,_0x535ee6:0x58d,_0x15d0b1:0x3ab,_0x1e7c77:0x3b2,_0x2b92b6:0x421},_0x27094d={_0x447bec:0x4f},_0x28aa76={_0x5dcd88:0x196,_0xe1ddc8:0xe};this['model']=_0x546603[_0x23115c(_0xde1a94._0x14b571,0x326,0x261,0x267)]??_0x53abf9(_0xde1a94._0x118b5e,0x5bf,_0xde1a94._0x447ba7,_0xde1a94._0x5143e2),this[_0x53abf9(0x57d,_0xde1a94._0x32e2c3,_0xde1a94._0x592f88,0x5af)]=_0x546603['maxTokens']??getDefaultMaxTokens();function _0x23115c(_0x3ca7cd,_0x800e66,_0x2eb0a6,_0x2dd4a8){return _0x3adc1d(_0x3ca7cd-_0x28aa76._0x5dcd88,_0x3ca7cd,_0x2eb0a6-_0x28aa76._0xe1ddc8,_0x2eb0a6-0x34e);}function _0x53abf9(_0x6ab1c7,_0x58ea14,_0x2342dc,_0x1777be){return _0x521c92(_0x6ab1c7-_0x27094d._0x447bec,_0x1777be,_0x2342dc-0x18e,_0x58ea14-0x57d);}this['reasoning']=_0x546603[_0x53abf9(0x5cc,_0xde1a94._0x4eedc2,_0xde1a94._0x535ee6,0x722)]?structuredClone(_0x546603[_0x23115c(_0xde1a94._0x15d0b1,0x40f,_0xde1a94._0x1e7c77,_0xde1a94._0x2b92b6)]):void 0x0;}async[_0x521c92(-0xa5,0x1c,-0x93,-0x22)](_0x53c8c8,_0x58a6a4){const _0x28e07b={_0x307c8e:0x55e,_0x56fc4a:0x5c8,_0x225a0f:0x690,_0x96640e:0x5d2,_0x2d571a:0x668,_0x3b20fd:0x265,_0x35548d:0x2ab,_0x111754:0x289,_0x144a8f:0x53c,_0x3e16be:0x482,_0x47b2be:0x521,_0x70d04f:0x3cb,_0x4a0aff:0x2f1,_0x14f3f8:0x3fb,_0x4d6887:0x3f0,_0x117c0a:0x404,_0x407c6f:0x3da,_0x425057:0x34c,_0x4a30cc:0x397,_0x4846d2:0x331,_0x5eb29e:0x3b9,_0x2da057:0x4c2,_0x1ea3c2:0x4d5,_0x482a9e:0x58b,_0x3e9f40:0x504,_0x2e342e:0x537,_0x40673c:0x4ff,_0x2cbcc8:0x4ff,_0x249e18:0x3fc,_0x361435:0x4c0,_0x341ef8:0x5f2,_0x4d1271:0x602,_0x38cef3:0x664,_0x4983ac:0x4eb,_0x4cd647:0x468,_0x34a2a:0x544,_0x728264:0x398,_0x283863:0x2fd,_0x1d5e71:0x332},_0x23c28f={_0x1407cc:0x144,_0x460895:0x350};function _0x235edc(_0x1f2a3f,_0x2f164a,_0x16ef9e,_0x4e4d3a){return _0x521c92(_0x1f2a3f-_0x23c28f._0x1407cc,_0x4e4d3a,_0x16ef9e-0xb3,_0x1f2a3f-_0x23c28f._0x460895);}const _0xfdef3e={...structuredClone(_0x53c8c8),..._0x53c8c8[_0x3ca644(0x670,_0x28e07b._0x307c8e,0x617,0x6eb)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x3ca644(0x6ea,_0x28e07b._0x56fc4a,0x617,0x6cd)])}:{}};this[_0x3ca644(_0x28e07b._0x225a0f,0x5ca,_0x28e07b._0x96640e,_0x28e07b._0x2d571a)][_0x235edc(_0x28e07b._0x3b20fd,_0x28e07b._0x35548d,0x31c,_0x28e07b._0x111754)](_0xfdef3e);const _0x5902b2=findLastMessage(_0xfdef3e['messages'],'user'),_0x1a43f5=getToolResultBlocks(_0x5902b2),_0x182f61=_0x3ca644(_0x28e07b._0x144a8f,_0x28e07b._0x3e16be,_0x28e07b._0x47b2be,0x528)+this[_0x235edc(_0x28e07b._0x70d04f,_0x28e07b._0x4a0aff,0x3cd,0x4a0)][_0x235edc(_0x28e07b._0x14f3f8,_0x28e07b._0x4d6887,0x3cc,_0x28e07b._0x117c0a)];if(_0x1a43f5[_0x235edc(0x3fb,_0x28e07b._0x407c6f,_0x28e07b._0x425057,0x3d2)]>0x0)return createMockResponse(_0x182f61,[{'type':_0x235edc(_0x28e07b._0x4a30cc,_0x28e07b._0x4846d2,0x487,_0x28e07b._0x5eb29e),'text':_0x3ca644(0x4de,0x5aa,_0x28e07b._0x2da057,0x4e3)+_0x1a43f5[0x0]['content']}],_0x3ca644(_0x28e07b._0x1ea3c2,_0x28e07b._0x482a9e,_0x28e07b._0x3e9f40,0x4a2),{'inputTokens':0x78,'outputTokens':0x28});const _0x436ae3=getTextFromMessage(_0x5902b2);if(/list .*files|workspace/i[_0x3ca644(0x60c,0x5ea,0x5ba,_0x28e07b._0x2e342e)](_0x436ae3)&&hasTool(_0xfdef3e,_0x3ca644(_0x28e07b._0x40673c,_0x28e07b._0x2cbcc8,0x4df,0x45e)))return createMockResponse(_0x182f61,[{'type':_0x235edc(_0x28e07b._0x249e18,0x3d9,0x456,_0x28e07b._0x361435),'id':_0x3ca644(0x4e0,0x67c,0x5ca,0x4ff)+this['requests'][_0x3ca644(_0x28e07b._0x341ef8,0x522,_0x28e07b._0x4d1271,_0x28e07b._0x38cef3)],'name':_0x235edc(0x2d8,0x273,0x1e9,0x2ea),'input':{'command':_0x3ca644(0x384,_0x28e07b._0x4983ac,_0x28e07b._0x4cd647,_0x28e07b._0x34a2a)}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});function _0x3ca644(_0x119bfe,_0x37539a,_0x5d6304,_0x2030b9){return _0x3adc1d(_0x119bfe-0x1a9,_0x2030b9,_0x5d6304-0xc6,_0x5d6304-0x5b3);}return createMockResponse(_0x182f61,[{'type':_0x3ca644(0x4dc,0x513,0x59e,0x5bb),'text':_0x235edc(_0x28e07b._0x728264,0x43b,0x31e,0x33b)+_0x436ae3}],_0x235edc(_0x28e07b._0x283863,0x24c,0x2f7,_0x28e07b._0x1d5e71),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x38cba1,_0x4c9747){const _0x1d576a={_0xab1f6a:0x472,_0x2fb5c7:0x4f3,_0x1d27db:0x42a,_0x3cdf3a:0x3f6,_0x279a74:0x38f,_0x24f5e8:0x49f,_0x16f0c9:0x440,_0x1102b1:0x40e,_0x54295c:0x315,_0x3f73b7:0x403},_0x2600da={_0x4dfe13:0x100},_0xce5f9b={_0x1c500b:0x13b,_0x209868:0x161};function _0x4dcecb(_0x5d1c0e,_0x2f17bd,_0x2d7c3d,_0x4d57f4){return _0x521c92(_0x5d1c0e-_0xce5f9b._0x1c500b,_0x5d1c0e,_0x2d7c3d-_0xce5f9b._0x209868,_0x4d57f4-0x3c5);}const _0x4b6751=getModelProfile(_0x38cba1,_0x4c9747);if(!_0x4b6751?.[_0x4dcecb(_0x1d576a._0xab1f6a,_0x1d576a._0x2fb5c7,0x469,0x418)]&&!_0x4b6751?.['maxOutput'])return void 0x0;function _0x1712c0(_0x143a8e,_0x3d97fe,_0x2a6e7e,_0x2cc194){return _0x521c92(_0x143a8e-0x188,_0x143a8e,_0x2a6e7e-_0x2600da._0x4dfe13,_0x2cc194-0x402);}return{..._0x4b6751[_0x1712c0(0x4b1,_0x1d576a._0x1d27db,_0x1d576a._0x3cdf3a,0x455)]?{'contextWindow':_0x4b6751[_0x4dcecb(_0x1d576a._0x279a74,0x4c0,0x45e,0x418)]}:{},..._0x4b6751[_0x1712c0(0x373,0x4da,_0x1d576a._0x24f5e8,_0x1d576a._0x16f0c9)]?{'maxOutput':_0x4b6751[_0x4dcecb(_0x1d576a._0x1102b1,0x4ce,_0x1d576a._0x54295c,_0x1d576a._0x3f73b7)]}:{}};}function normalizeModelInfo(_0x41b7e1,_0x13d79a){const _0x411c46={_0x24c4f4:0x40f,_0x5e5c22:0x349,_0x18842d:0x359,_0x4a9f0f:0x409,_0x599463:0x349,_0x57693d:0x3c2,_0x4d1c53:0x543,_0xc057dc:0x50e,_0x23e84b:0x51e,_0x29424e:0x14b,_0x4bf94f:0x23b,_0x2a0f6d:0x280,_0x1283be:0x220,_0x557819:0x3cc,_0x23add7:0x2a6,_0x8dcce8:0x364,_0x5bb751:0x40c,_0x729f8a:0x43e,_0x2f835e:0x3d1,_0x4aa40d:0x4f4,_0xb22d70:0x404,_0x223cef:0x26f,_0x108115:0x220,_0x31a12f:0x167},_0x53ac5b={_0x57ecf4:0x144},_0xd5cbc4=typeof _0x13d79a['id']===_0xb793c(_0x411c46._0x24c4f4,0x4fb,0x466,0x4b4)?_0x13d79a['id']:'',_0x545ccc=typeof _0x13d79a[_0x17d43b(0x287,0x3ac,_0x411c46._0x5e5c22,0x419)]==='string'?_0x13d79a[_0x17d43b(_0x411c46._0x18842d,_0x411c46._0x4a9f0f,_0x411c46._0x599463,_0x411c46._0x57693d)]:_0xd5cbc4,_0xb9cf50=normalizeModelLimits(_0x41b7e1,_0x13d79a)??getFallbackModelLimits(_0x41b7e1,_0xd5cbc4);function _0xb793c(_0x2dbb5e,_0x20b8a9,_0x34644f,_0x2aecfa){return _0x521c92(_0x2dbb5e-_0x53ac5b._0x57ecf4,_0x34644f,_0x34644f-0x5e,_0x20b8a9-0x4ab);}const _0x17f0a2=Array[_0xb793c(0x530,_0x411c46._0x4d1c53,_0x411c46._0xc057dc,_0x411c46._0x23e84b)](_0x13d79a['supported_endpoints'])?_0x13d79a[_0x17d43b(_0x411c46._0x29424e,_0x411c46._0x4bf94f,0x1d6,0x1d2)][_0x17d43b(0x298,_0x411c46._0x2a0f6d,_0x411c46._0x1283be,0x18b)](_0x243e72=>typeof _0x243e72===_0xb793c(0x594,0x4fb,0x598,0x472)):Array[_0x17d43b(_0x411c46._0x557819,_0x411c46._0x23add7,_0x411c46._0x8dcce8,0x365)](_0x13d79a[_0xb793c(_0x411c46._0x5bb751,_0x411c46._0x729f8a,0x3ed,_0x411c46._0x2f835e)])?_0x13d79a[_0xb793c(_0x411c46._0x4aa40d,0x43e,_0x411c46._0xb22d70,0x352)][_0x17d43b(0x1d0,_0x411c46._0x223cef,_0x411c46._0x108115,_0x411c46._0x31a12f)](_0x3888fb=>typeof _0x3888fb===_0xb793c(0x503,0x4fb,0x4c4,0x504)):void 0x0;function _0x17d43b(_0x3f2d25,_0x24d976,_0x344966,_0x26449c){return _0x3adc1d(_0x3f2d25-0xd7,_0x24d976,_0x344966-0x8,_0x344966-0x328);}return{'id':_0xd5cbc4,'name':_0x545ccc,..._0xb9cf50?{'limits':_0xb9cf50}:{},..._0x17f0a2?{'supportedEndpoints':_0x17f0a2}:{}};}function normalizeModelLimits(_0x2ef05a,_0x42a49c){const _0x108a5d={_0x3fb4c0:0x2cd,_0x4c3487:0x1f3,_0x3942f9:0x23a,_0x10da6a:0x18c,_0x3ac611:0x183,_0x847830:0x106,_0x4d87f8:0x249,_0x35d40d:0x2ec,_0x2ceab9:0x26e,_0x36f4f3:0x1fc,_0x24fef9:0xea,_0x53e08b:0x201,_0x113097:0x2df,_0x51d0a4:0x2c3,_0x418a87:0x353,_0x48bf44:0x232,_0x369711:0x1ad,_0x5c4dfe:0x21f,_0x54723e:0x190,_0x5a9025:0xf7,_0x156432:0x25d,_0x159156:0x2d0,_0x33df9b:0x12,_0x3fb857:0xbc,_0x2057c7:0xb3,_0x26eff2:0x15e,_0x2f6e92:0x12e,_0xafb2c8:0x19d,_0xd868e5:0xd7,_0x2cbd04:0x16f,_0x74022b:0x27d,_0x58887d:0x22a,_0x1ce333:0x236,_0x2a442e:0x2b7,_0x51ed91:0x2c3,_0x3b3992:0x263,_0x21e31c:0x1fb,_0x3c708d:0x2ac,_0x2a1867:0x375,_0x2ebd28:0x34b,_0x228e7b:0x147,_0xe24103:0x2a3,_0x4061d2:0x213,_0xdc0d7b:0x253,_0x590177:0x66,_0x264016:0xa0,_0x3a8426:0x1be,_0x170a52:0x27f},_0x84ba8a={_0x1e7397:0x13c};if(_0x42a49c[_0x3b50b2(-_0x108a5d._0x3fb4c0,-_0x108a5d._0x4c3487,-_0x108a5d._0x3942f9,-_0x108a5d._0x10da6a)]&&typeof _0x42a49c[_0xaa63e0(0x1df,0xd0,_0x108a5d._0x3ac611,_0x108a5d._0x847830)]===_0x3b50b2(-_0x108a5d._0x4d87f8,-0x298,-0x2ec,-_0x108a5d._0x35d40d)){const _0x4641d2=_0x42a49c[_0x3b50b2(-0x1b8,-0x1f3,-0x278,-_0x108a5d._0x2ceab9)];if(typeof _0x4641d2['contextWindow']===_0x3b50b2(-0x312,-0x2c3,-_0x108a5d._0x36f4f3,-0x27e))return{'contextWindow':_0x4641d2[_0x3b50b2(-_0x108a5d._0x24fef9,-0x17f,-0x130,-_0x108a5d._0x53e08b)],...typeof _0x4641d2['maxOutput']===_0x3b50b2(-_0x108a5d._0x113097,-_0x108a5d._0x51d0a4,-_0x108a5d._0x418a87,-0x1f5)?{'maxOutput':_0x4641d2['maxOutput']}:{}};}function _0x3b50b2(_0x102673,_0x2a215c,_0x2a98d3,_0x209204){return _0x521c92(_0x102673-0x9f,_0x209204,_0x2a98d3-0x34,_0x2a215c- -0x1d2);}if(_0x2ef05a['toLowerCase']()==='github'){const _0x1aa590=_0x42a49c['capabilities'],_0x4742c0=_0x1aa590?.[_0xaa63e0(0x22f,0xbc,0x183,_0x108a5d._0x48bf44)];if(typeof _0x4742c0?.[_0x3b50b2(-0x2e0,-0x272,-_0x108a5d._0x369711,-_0x108a5d._0x5c4dfe)]==='number')return{'contextWindow':_0x4742c0[_0xaa63e0(0x171,_0x108a5d._0x54723e,0x104,_0x108a5d._0x5a9025)],...typeof _0x4742c0[_0x3b50b2(-0x2d4,-_0x108a5d._0x156432,-_0x108a5d._0x159156,-0x2ee)]===_0xaa63e0(-_0x108a5d._0x33df9b,_0x108a5d._0x3fb857,_0x108a5d._0x2057c7,0x4)?{'maxOutput':_0x4742c0[_0xaa63e0(0x1a4,0x85,0x119,_0x108a5d._0x26eff2)]}:{}};}function _0xaa63e0(_0x1f2017,_0x201fbc,_0x4efd9b,_0x3edc31){return _0x521c92(_0x1f2017-_0x84ba8a._0x1e7397,_0x3edc31,_0x4efd9b-0xb8,_0x4efd9b-0x1a4);}const _0x1da917=_0x42a49c[_0x3b50b2(-_0x108a5d._0x2f6e92,-_0x108a5d._0xafb2c8,-_0x108a5d._0xd868e5,-_0x108a5d._0x2cbd04)],_0x3c2dfd=_0x42a49c[_0x3b50b2(-0x2d1,-_0x108a5d._0x74022b,-0x360,-_0x108a5d._0x58887d)],_0x30c177=typeof _0x42a49c[_0x3b50b2(-0x262,-_0x108a5d._0x1ce333,-_0x108a5d._0x2a442e,-0x1e4)]===_0x3b50b2(-0x309,-_0x108a5d._0x51ed91,-_0x108a5d._0x3b3992,-0x2a4)?_0x42a49c[_0x3b50b2(-0x146,-0x236,-0x147,-_0x108a5d._0x21e31c)]:typeof _0x1da917?.['context_length']===_0x3b50b2(-_0x108a5d._0x3c708d,-_0x108a5d._0x51d0a4,-_0x108a5d._0x2a1867,-_0x108a5d._0x2ebd28)?_0x1da917[_0x3b50b2(-_0x108a5d._0x228e7b,-0x236,-0x21d,-_0x108a5d._0xe24103)]:typeof _0x3c2dfd?.['context_length']===_0x3b50b2(-_0x108a5d._0x4061d2,-0x2c3,-0x2e4,-_0x108a5d._0xdc0d7b)?_0x3c2dfd[_0xaa63e0(_0x108a5d._0x590177,0x19c,0x140,0xd1)]:void 0x0;if(_0x30c177===void 0x0)return void 0x0;return{'contextWindow':_0x30c177,...typeof _0x1da917?.[_0xaa63e0(0xa1,0x11a,0xf3,0xeb)]===_0xaa63e0(-0x1d,-0x22,0xb3,_0x108a5d._0x264016)?{'maxOutput':_0x1da917['max_tokens']}:typeof _0x3c2dfd?.[_0xaa63e0(0x127,_0x108a5d._0x3a8426,0x1ae,0x20a)]===_0x3b50b2(-0x21f,-_0x108a5d._0x51ed91,-0x26c,-0x268)?{'maxOutput':_0x3c2dfd[_0xaa63e0(_0x108a5d._0x170a52,_0x108a5d._0x21e31c,0x1ae,0x1dc)]}:{}};}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,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
1
+ (function(_0x1e2fac,_0x401de4){const _0x576139={_0x13efcd:0x27c,_0xc47af8:0x24e,_0x422288:0x241,_0x5eb846:0x432,_0x816cfa:0x2c2,_0x4b21e7:0x3b8,_0x3fd5f3:0x2d7,_0x2da365:0x191,_0x4072fd:0x209,_0x26da0b:0x310,_0x80821f:0x329,_0x2b1f1f:0x42c,_0x20c6f9:0x416,_0x567592:0x11b,_0x17110a:0xe5,_0x2d0de0:0x34f,_0x161a9a:0x487,_0x556300:0x3e6},_0x37f768={_0x1a8f2d:0xa7},_0x5b4fdb=_0x1e2fac();function _0x1afde5(_0x4c36b7,_0x5cc3d1,_0x48e072,_0x171956){return _0x5ba7(_0x171956-_0x37f768._0x1a8f2d,_0x5cc3d1);}function _0x384792(_0x10c32a,_0x18a36a,_0x5ac999,_0x2ee1a7){return _0x5ba7(_0x2ee1a7-0x23a,_0x5ac999);}while(!![]){try{const _0x1d71ea=parseInt(_0x1afde5(_0x576139._0x13efcd,_0x576139._0xc47af8,_0x576139._0x422288,0x1ca))/0x1+parseInt(_0x384792(0x432,0x2d0,_0x576139._0x5eb846,0x369))/0x2+-parseInt(_0x1afde5(0x223,0x268,0x1e4,0x191))/0x3*(parseInt(_0x1afde5(0x2d9,_0x576139._0x816cfa,_0x576139._0x4b21e7,_0x576139._0x3fd5f3))/0x4)+-parseInt(_0x1afde5(_0x576139._0x2da365,0x1d5,_0x576139._0x4072fd,0x26b))/0x5*(parseInt(_0x1afde5(0x372,_0x576139._0x26da0b,0x275,_0x576139._0x80821f))/0x6)+-parseInt(_0x384792(0x4c8,0x38d,0x45e,0x46c))/0x7+parseInt(_0x384792(0x38e,_0x576139._0x2b1f1f,0x35a,_0x576139._0x20c6f9))/0x8*(parseInt(_0x1afde5(_0x576139._0x567592,_0x576139._0x17110a,0x9b,0x178))/0x9)+parseInt(_0x384792(0x3cd,_0x576139._0x2d0de0,0x4db,0x3ef))/0xa*(parseInt(_0x384792(_0x576139._0x161a9a,0x3b6,0x4b0,_0x576139._0x556300))/0xb);if(_0x1d71ea===_0x401de4)break;else _0x5b4fdb['push'](_0x5b4fdb['shift']());}catch(_0x358638){_0x5b4fdb['push'](_0x5b4fdb['shift']());}}}(_0x15fa,0x33246));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';function _0x2d9e9f(_0x2d3527,_0x255724,_0x5397c2,_0xfb86a4){const _0x3a5571={_0x25e2cf:0x21b};return _0x5ba7(_0x5397c2-_0x3a5571._0x25e2cf,_0x255724);}import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-QDOE7NWO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x25a203){const _0x5b2d4a={_0x2df142:0x1c3,_0xe191ab:0x335,_0x4fa71e:0x2a3,_0x326286:0x21f},_0x54e62b={_0x29396e:0x38b};function _0x12e257(_0x4fa25a,_0x306b4e,_0x4d698b,_0xae46a5){return _0x5ba7(_0x4d698b- -_0x54e62b._0x29396e,_0xae46a5);}function _0x57c031(_0x3e82b9,_0x59b738,_0x159a16,_0x350b7a){return _0x5ba7(_0x59b738- -0xf8,_0x350b7a);}super(_0x25a203),this[_0x12e257(-_0x5b2d4a._0x2df142,-0x32e,-0x26c,-_0x5b2d4a._0xe191ab)]=_0x12e257(-0x2aa,-_0x5b2d4a._0x4fa71e,-_0x5b2d4a._0x326286,-0x135);}},ProviderStreamEventError=class extends Error{['code'];[_0x1818aa(0x8b,0x12b,0x140,0x6f)];[_0x2d9e9f(0x3b3,0x380,0x447,0x48b)];constructor(_0x3522dc,_0x22af66={}){const _0x5b0546={_0x367bea:0x1a3,_0x519d8f:0x118,_0x2db545:0x25c,_0x58772c:0x22c,_0x22a585:0x369,_0x5c8585:0x23d,_0x2d2e85:0x138,_0x46d7ea:0x26b,_0x3ee768:0x299},_0x21adda={_0x33ac92:0x6b,_0x25c31c:0x1dc},_0x374295={_0x3a3723:0x392};super(_0x3522dc);function _0x353741(_0x230a94,_0x1efc0d,_0x18bb23,_0x1988c2){return _0x2d9e9f(_0x230a94-0x198,_0x1efc0d,_0x18bb23- -_0x374295._0x3a3723,_0x1988c2-0x12b);}this['name']=_0x353741(_0x5b0546._0x367bea,0x146,_0x5b0546._0x519d8f,0x1de),this['code']=_0x22af66[_0x478f23(_0x5b0546._0x2db545,_0x5b0546._0x58772c,0x2d3,_0x5b0546._0x22a585)];function _0x478f23(_0x43f2bb,_0x1c07ba,_0x325460,_0x151137){return _0x2d9e9f(_0x43f2bb-_0x21adda._0x33ac92,_0x43f2bb,_0x325460- -_0x21adda._0x25c31c,_0x151137-0xa5);}this[_0x478f23(_0x5b0546._0x5c8585,0x303,0x266,0x314)]=_0x22af66[_0x353741(0x0,0x5d,0xb0,0x2a)]??!![],this[_0x353741(0xb9,_0x5b0546._0x2d2e85,0xb5,0x121)]=_0x22af66[_0x478f23(0x187,0x2cf,_0x5b0546._0x46d7ea,_0x5b0546._0x3ee768)];}};function isRetryableProviderStreamEventError(_0x56eb4e){const _0x3f73ac={_0x4842b8:0xa9,_0x2ba218:0xdf},_0xf4d620={_0x153e2e:0x147};function _0x15c75a(_0x52b454,_0x233405,_0x1d1598,_0x23805){return _0x1818aa(_0x52b454-_0xf4d620._0x153e2e,_0x52b454,_0x1d1598-0x129,_0x23805-0x70);}return _0x56eb4e instanceof ProviderStreamEventError&&_0x56eb4e[_0x15c75a(_0x3f73ac._0x4842b8,0x1bb,0xfe,_0x3f73ac._0x2ba218)];}var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x339c36){try{return JSON['parse'](_0x339c36);}catch{return _0x339c36;}}function resolveReasoningVisibility(_0x25b787){const _0x300f05={_0x3d50aa:0x139,_0x489c41:0x289,_0x3aa236:0x129,_0x149cc0:0x1db};function _0x3bb689(_0x545d7a,_0x1605d3,_0x3db96d,_0x55d4e3){return _0x2d9e9f(_0x545d7a-0x141,_0x55d4e3,_0x545d7a- -0x521,_0x55d4e3-0x1cc);}function _0x15b339(_0xacbc47,_0x2178e7,_0x912a94,_0x94d5f){return _0x1818aa(_0xacbc47-0x7c,_0x94d5f,_0x912a94-0x10e,_0x912a94- -0x1b5);}return _0x25b787[_0x3bb689(-0x206,-_0x300f05._0x3d50aa,-0x218,-0x2ae)]?.[_0x15b339(-0x1ec,-_0x300f05._0x489c41,-0x213,-_0x300f05._0x3aa236)]??_0x15b339(-0x1a3,-0x2b7,-_0x300f05._0x149cc0,-0x261);}function isUserVisibleThinking(_0x4fdb7e){const _0x41b56b={_0x367d9d:0xf0,_0x398890:0x83,_0x3a6f55:0x2a,_0x3c7749:0x29,_0x1149e3:0x13b,_0x585b93:0x12a,_0x2f6520:0x1d2,_0x4797c8:0x448,_0x3f5232:0x2ca,_0x4e41e3:0x303,_0x50bd97:0x93,_0x20a534:0x68,_0x1be07c:0x70},_0x23f94f={_0x46b94c:0x15c,_0x183235:0x345,_0xc6928a:0xa0},_0x21d2aa={_0xba5686:0x19};function _0x48d457(_0x509f53,_0x45d233,_0x451acf,_0x1e8918){return _0x2d9e9f(_0x509f53-_0x21d2aa._0xba5686,_0x1e8918,_0x45d233-0x5f,_0x1e8918-0x13f);}function _0x30dc8e(_0x47c7ce,_0x2d5ec0,_0xc04849,_0x3add26){return _0x2d9e9f(_0x47c7ce-_0x23f94f._0x46b94c,_0x2d5ec0,_0xc04849- -_0x23f94f._0x183235,_0x3add26-_0x23f94f._0xc6928a);}const _0x18346a=resolveAnthropicThinkingConfig(_0x4fdb7e[_0x30dc8e(-_0x41b56b._0x367d9d,_0x41b56b._0x398890,-_0x41b56b._0x3a6f55,_0x41b56b._0x3c7749)]);return _0x18346a!==void 0x0&&_0x18346a[_0x30dc8e(_0x41b56b._0x1149e3,0x165,_0x41b56b._0x585b93,_0x41b56b._0x2f6520)]!==_0x48d457(_0x41b56b._0x4797c8,0x371,_0x41b56b._0x3f5232,_0x41b56b._0x4e41e3)&&resolveReasoningVisibility(_0x4fdb7e)===_0x30dc8e(_0x41b56b._0x50bd97,0x26,_0x41b56b._0x20a534,-_0x41b56b._0x1be07c);}function createAnthropicThinkingBody(_0x5ae987){const _0x233031={_0x233bc:0x184,_0x12d78f:0x5b9,_0x54d4c3:0x60a,_0x57d618:0x1a4,_0x252239:0x177,_0x1cc10d:0x5ee,_0x508536:0x4f0,_0x41d1b8:0x482,_0x366975:0x49b,_0x54e689:0x580,_0x26facc:0x666,_0xb90ef9:0x58b,_0x1a883e:0x54f,_0x41d789:0x21a,_0x2987a1:0x257,_0x34bee7:0x255,_0x267257:0x3d8,_0x3c0d3c:0x3c2,_0x12e404:0x2e2,_0x3792d0:0x4f0,_0x5d7fdf:0x4a8,_0x27f277:0x52c,_0x33dcae:0x562,_0x38e730:0x2b5,_0x1d3148:0x1d1,_0x3f8d2d:0x2c0},_0x43fc8f={_0xc2f12:0xe0},_0x472b6b={_0x3b32c4:0x174};function _0x1d8f74(_0x557ba7,_0x3fcab0,_0x3a65e5,_0x3d1ba5){return _0x2d9e9f(_0x557ba7-0x28,_0x3a65e5,_0x557ba7- -0x197,_0x3d1ba5-_0x472b6b._0x3b32c4);}const _0x28019f=resolveAnthropicThinkingConfig(_0x5ae987[_0x1d8f74(_0x233031._0x233bc,0x147,0xe0,0x12c)]);if(!_0x28019f||_0x28019f[_0x5d5c1f(0x639,_0x233031._0x12d78f,0x54f,_0x233031._0x54d4c3)]===_0x1d8f74(0x17b,_0x233031._0x57d618,_0x233031._0x252239,0x247))return{};const _0x1a44e1=_0x28019f[_0x5d5c1f(_0x233031._0x1cc10d,0x47e,0x523,_0x233031._0x508536)]??(isUserVisibleThinking(_0x5ae987)?'summarized':_0x5d5c1f(0x5f9,0x51b,0x536,_0x233031._0x41d1b8)),_0x50341d=_0x28019f[_0x5d5c1f(_0x233031._0x366975,0x574,_0x233031._0x54e689,_0x233031._0x26facc)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x28019f[_0x5d5c1f(0x59d,_0x233031._0xb90ef9,_0x233031._0x1a883e,0x4f0)]===_0x1d8f74(_0x233031._0x41d789,0x217,_0x233031._0x2987a1,0x23b))return{..._0x50341d?{'headers':_0x50341d}:{},'thinking':{'type':_0x1d8f74(0x21a,0x196,0x278,_0x233031._0x34bee7),'budget_tokens':_0x28019f[_0x5d5c1f(0x459,_0x233031._0x267257,_0x233031._0x3c0d3c,_0x233031._0x12e404)],'display':_0x1a44e1}};function _0x5d5c1f(_0x31124c,_0x8d0709,_0x4d917c,_0x10f622){return _0x2d9e9f(_0x31124c-0x1b2,_0x10f622,_0x4d917c-_0x43fc8f._0xc2f12,_0x10f622-0xc7);}return{..._0x50341d?{'headers':_0x50341d}:{},'thinking':{'type':'adaptive',..._0x28019f[_0x5d5c1f(_0x233031._0x3792d0,_0x233031._0x5d7fdf,_0x233031._0x27f277,_0x233031._0x33dcae)]?{'effort':_0x28019f[_0x1d8f74(_0x233031._0x38e730,_0x233031._0x1d3148,_0x233031._0x3f8d2d,0x24f)]}:{},'display':_0x1a44e1}};}function toAnthropicRequestContent(_0x387bf4){const _0x37ed23={_0x2d5647:0x12e,_0x206951:0xaa,_0x5c0bfa:0x1a1,_0x5ee409:0x3a1,_0x2cd8d7:0x3e8,_0x4331a2:0xfe,_0x1caece:0x36c,_0x7eaeff:0x3e8,_0x431d14:0x1d,_0x35574d:0x45f,_0x184ffa:0x658,_0x1f550e:0x63c,_0x1f88f3:0x56c,_0x31fbe5:0x41c,_0x1e0d5a:0x61d,_0x3d7fe9:0x1c5,_0x438ffe:0x1b5,_0x30c9ab:0x1b7,_0x217379:0x26d,_0x53f567:0x1b5,_0x22dad:0x150,_0x470a45:0x103,_0x1a4ed7:0x6a,_0x1678c2:0x532,_0x325555:0x176,_0x259123:0x28f,_0x650853:0x74,_0x2c6758:0xc5,_0x52adaf:0x6a,_0xde656f:0x425,_0xd6c8b6:0x51b},_0x5e2374={_0x37d6c9:0x4a},_0x2e475b={_0x5e141d:0x37,_0x5ce2e0:0xf7,_0x5a3b5e:0x4d0};if(_0x387bf4[_0x5edbbf(0xcd,_0x37ed23._0x2d5647,_0x37ed23._0x206951,_0x37ed23._0x5c0bfa)]==='assistant'&&_0x387bf4[_0x2659da(0x437,_0x37ed23._0x5ee409,0x43b,_0x37ed23._0x2cd8d7)]?.[_0x5edbbf(0xbb,0x25,0x11c,_0x37ed23._0x4331a2)])return structuredClone(_0x387bf4[_0x2659da(_0x37ed23._0x1caece,0x3c4,0x331,_0x37ed23._0x7eaeff)][_0x5edbbf(0xbb,-0x13,_0x37ed23._0x431d14,0x2)]);const _0x4b8f05=[];function _0x2659da(_0x1cc3a1,_0x5f34e6,_0x322bea,_0x3d1efa){return _0x1818aa(_0x1cc3a1-_0x2e475b._0x5e141d,_0x322bea,_0x322bea-_0x2e475b._0x5ce2e0,_0x3d1efa-_0x2e475b._0x5a3b5e);}function _0x5edbbf(_0x444608,_0xafdad6,_0x33cce5,_0x5bca91){return _0x2d9e9f(_0x444608-_0x5e2374._0x37d6c9,_0x5bca91,_0x444608- -0x2cd,_0x5bca91-0xf7);}for(const _0x5262aa of normalizeContent(_0x387bf4[_0x2659da(_0x37ed23._0x35574d,0x5e4,0x594,0x50e)])){if(_0x5262aa[_0x2659da(0x4f4,_0x37ed23._0x184ffa,_0x37ed23._0x1f550e,_0x37ed23._0x1f88f3)]===_0x2659da(0x476,_0x37ed23._0x31fbe5,0x4c0,0x4e4))continue;if(_0x5262aa['type']===_0x2659da(0x5f0,0x4ee,_0x37ed23._0x1e0d5a,0x530)){_0x4b8f05[_0x5edbbf(_0x37ed23._0x3d7fe9,0x176,0x13b,0x1d6)]({'type':_0x5edbbf(_0x37ed23._0x438ffe,0x1f6,_0x37ed23._0x30c9ab,_0x37ed23._0x217379),'thinking':_0x5262aa[_0x5edbbf(_0x37ed23._0x53f567,_0x37ed23._0x22dad,0x1fb,_0x37ed23._0x470a45)],'signature':_0x5262aa[_0x5edbbf(0x12,-_0x37ed23._0x1a4ed7,-0x9e,0x1f)]});continue;}if(_0x5262aa['type']===_0x2659da(0x44b,0x5c4,0x500,_0x37ed23._0x1678c2)){_0x4b8f05[_0x5edbbf(_0x37ed23._0x3d7fe9,_0x37ed23._0x325555,0x1ed,_0x37ed23._0x259123)]({'type':_0x5edbbf(_0x37ed23._0x650853,_0x37ed23._0x2c6758,0x9b,-_0x37ed23._0x52adaf),'data':_0x5262aa[_0x2659da(0x532,_0x37ed23._0xde656f,_0x37ed23._0xd6c8b6,0x4b2)]});continue;}_0x4b8f05['push'](structuredClone(_0x5262aa));}return _0x4b8f05;}function createAnthropicRequest(_0xc76e0,_0x133319){const _0x51592a={_0x3ee5cd:0x2d9,_0x3c482b:0x2d4,_0x14139c:0x1ec,_0xfba133:0x265,_0x2c46c8:0x4cc,_0x2e364b:0x526,_0x1d8643:0x337,_0x120366:0x1c2,_0x631252:0x247,_0x5e33f1:0x35b,_0xafde0a:0x31a,_0x2150ba:0x2de},_0x598217={_0x7e5929:0x397},_0x238d6d={_0x399bcc:0x181,_0x4291b4:0xc3,_0x151df1:0x120},_0x5bed3e=toProviderModelRequest(_0xc76e0);function _0x19e894(_0x229759,_0x258292,_0x2e20be,_0x435b5b){return _0x1818aa(_0x229759-_0x238d6d._0x399bcc,_0x435b5b,_0x2e20be-_0x238d6d._0x4291b4,_0x258292-_0x238d6d._0x151df1);}function _0x4316dc(_0x19d1c2,_0x46674f,_0x3959ab,_0x3504e7){return _0x1818aa(_0x19d1c2-0xd3,_0x3959ab,_0x3959ab-0x1e2,_0x46674f-_0x598217._0x7e5929);}const _0x1bf95e=createAnthropicThinkingBody(_0xc76e0);return{'accept':_0x133319?_0x4316dc(_0x51592a._0x3ee5cd,0x303,0x322,_0x51592a._0x3c482b):_0x4316dc(0x21e,0x2a8,0x1bb,0x2b0),'body':{..._0x5bed3e,'messages':_0xc76e0[_0x4316dc(0x54c,0x468,0x487,0x3d0)]['map'](_0x24aa0b=>{return{'role':_0x24aa0b['role'],'content':toAnthropicRequestContent(_0x24aa0b)};}),..._0x1bf95e[_0x19e894(0x262,0x1cf,0x17e,_0x51592a._0x14139c)]?{'thinking':_0x1bf95e[_0x19e894(0x22d,0x1cf,_0x51592a._0xfba133,0x296)]}:{},..._0x133319?{'stream':!![]}:{},..._0xc76e0[_0x4316dc(_0x51592a._0x2c46c8,0x439,_0x51592a._0x2e364b,0x37c)]?{'output_config':{'format':{'type':_0x4316dc(0x312,_0x51592a._0x1d8643,0x2f7,0x2ed),'schema':_0xc76e0[_0x19e894(0x118,_0x51592a._0x120366,_0x51592a._0x631252,0x15b)][_0x4316dc(_0x51592a._0x5e33f1,0x2ea,0x206,_0x51592a._0xafde0a)]}}}:{}},..._0x1bf95e[_0x4316dc(0x276,0x2e0,_0x51592a._0x2150ba,0x33d)]?{'headers':_0x1bf95e[_0x4316dc(0x246,0x2e0,0x346,0x2db)]}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x24b4e3,_0x4eee25){const _0x36e817={_0x37f9fa:0x515,_0x24072f:0x105,_0x5ed957:0x15e,_0x743dac:0xf3,_0x3acf9e:0x141,_0x238d57:0xce,_0x26eacc:0x166,_0x14790f:0xe9,_0x58c394:0x354,_0x4559c4:0x43d,_0x2d0c19:0x3f8,_0x90c2ab:0x100,_0x4fadae:0x25a,_0xd3cf4c:0x481,_0x104094:0x376,_0x26d227:0x482,_0xd29dd5:0x406,_0x11bf59:0x43f,_0xb167e3:0x40a,_0x2da4f5:0x441,_0xf52a9d:0x9,_0x12082a:0xdf,_0x547f06:0x4a5,_0x52fc50:0x464,_0x5e3091:0x3f2,_0x267b61:0x3c0,_0x528f2c:0xd7,_0x229c10:0x1b8,_0x29c891:0x19b,_0x4ad07f:0x137,_0x509ba8:0x10c,_0x37ba82:0x3ea,_0x8d95c3:0x347,_0x597f78:0xa0,_0x2f0058:0x273,_0x574cb4:0x170,_0x3e8f6b:0x12d,_0x400b94:0x33e,_0x5e120d:0x3de,_0x50f854:0x28a,_0x4ef959:0x11b,_0x1956e6:0x31,_0x3aa241:0x1da,_0x14b8d9:0x408,_0x3c38c6:0x437,_0x117c01:0x47b,_0xbf341a:0x51c,_0x2fb814:0x362,_0x371065:0x289,_0x149eb5:0x437,_0x5f579e:0x2cb,_0x447977:0x17d,_0x436d43:0x166,_0x574149:0x163,_0x156477:0x154,_0xe6894c:0x126,_0x1b5861:0x172,_0x380f00:0xda},_0x13554b={_0xeed2cd:0x142},_0x539fd9={_0x4d90a4:0xab,_0x4f4a4c:0x13},_0x18cdc0=[],_0x2c086d=_0x24b4e3['content']??[];function _0x5f1d8e(_0x241f16,_0x12f224,_0x432a79,_0x5f253d){return _0x2d9e9f(_0x241f16-_0x539fd9._0x4d90a4,_0x432a79,_0x241f16-_0x539fd9._0x4f4a4c,_0x5f253d-0x1f2);}let _0x2fbd1b=![];for(const _0x233931 of _0x2c086d){if(_0x233931[_0x5f1d8e(0x482,0x4cd,_0x36e817._0x37f9fa,0x4bf)]==='thinking'){_0x2fbd1b=!![];isUserVisibleThinking(_0x4eee25)&&_0x18cdc0[_0x340d8b(0x189,_0x36e817._0x24072f,_0x36e817._0x5ed957,_0x36e817._0x743dac)]({'type':'anthropic_thinking','thinking':_0x233931[_0x340d8b(0x179,_0x36e817._0x3acf9e,0x123,_0x36e817._0x238d57)],'signature':_0x233931['signature']});continue;}if(_0x233931[_0x340d8b(_0x36e817._0x26eacc,0xc2,_0x36e817._0x14790f,0x1f8)]===_0x5f1d8e(_0x36e817._0x58c394,_0x36e817._0x4559c4,_0x36e817._0x2d0c19,0x293)){_0x2fbd1b=!![];isUserVisibleThinking(_0x4eee25)&&_0x18cdc0[_0x340d8b(0x189,_0x36e817._0x90c2ab,0x269,_0x36e817._0x4fadae)]({'type':_0x5f1d8e(0x448,_0x36e817._0xd3cf4c,0x4af,_0x36e817._0x104094),'data':_0x233931['data']});continue;}if(_0x233931[_0x5f1d8e(_0x36e817._0x26d227,_0x36e817._0xd29dd5,_0x36e817._0x11bf59,_0x36e817._0xb167e3)]===_0x5f1d8e(0x3f9,0x31a,_0x36e817._0x2da4f5,0x4d7)){_0x233931[_0x340d8b(0xdd,0x147,-_0x36e817._0xf52a9d,_0x36e817._0x12082a)]['length']>0x0&&_0x18cdc0[_0x5f1d8e(_0x36e817._0x547f06,_0x36e817._0x52fc50,0x445,0x4da)](structuredClone(_0x233931));continue;}_0x18cdc0[_0x5f1d8e(_0x36e817._0x547f06,_0x36e817._0x5e3091,_0x36e817._0x267b61,0x4df)](structuredClone(_0x233931));}function _0x340d8b(_0x1e7eb1,_0x1b64a5,_0x45fb51,_0x531efc){return _0x1818aa(_0x1e7eb1-_0x13554b._0xeed2cd,_0x45fb51,_0x45fb51-0x16f,_0x1e7eb1-0xca);}return{'id':_0x24b4e3['id']??_0x340d8b(0x11c,_0x36e817._0x528f2c,_0x36e817._0x229c10,_0x36e817._0x29c891)+Date[_0x340d8b(0x148,_0x36e817._0x4ad07f,0xd9,_0x36e817._0x509ba8)](),'content':_0x18cdc0,'stopReason':_0x18cdc0[_0x5f1d8e(0x3bc,0x3b4,0x47e,_0x36e817._0x37ba82)](_0x3c712a=>_0x3c712a[_0x340d8b(0x166,0x115,0x22c,0x130)]===_0x340d8b(0x39,-0x55,-0x68,-0x3a))?_0x5f1d8e(0x355,0x305,0x35d,_0x36e817._0x8d95c3):_0x24b4e3['stop_reason']===_0x340d8b(0x39,-0x9b,-_0x36e817._0x597f78,-0x33)?_0x5f1d8e(0x355,_0x36e817._0x2f0058,0x2f7,0x43d):'end_turn','usage':{'inputTokens':(_0x24b4e3[_0x340d8b(0x11b,0xd8,_0x36e817._0x574cb4,_0x36e817._0x3e8f6b)]?.[_0x5f1d8e(_0x36e817._0x400b94,_0x36e817._0x5e120d,_0x36e817._0x50f854,0x3f2)]??0x0)+(_0x24b4e3[_0x340d8b(_0x36e817._0x4ef959,0x14d,0x109,0xef)]?.[_0x340d8b(0x46,0x0,_0x36e817._0x1956e6,-0x59)]??0x0)+(_0x24b4e3['usage']?.[_0x340d8b(0x126,0xe3,0xd3,_0x36e817._0x3aa241)]??0x0),'outputTokens':_0x24b4e3['usage']?.[_0x5f1d8e(0x412,_0x36e817._0x14b8d9,0x4f4,0x456)]??0x0,..._0x24b4e3[_0x5f1d8e(_0x36e817._0x3c38c6,_0x36e817._0x117c01,_0x36e817._0xbf341a,0x46a)]?.[_0x5f1d8e(_0x36e817._0x2fb814,_0x36e817._0x371065,_0x36e817._0x149eb5,_0x36e817._0x5f579e)]?{'cacheReadInputTokens':_0x24b4e3[_0x340d8b(0x11b,_0x36e817._0x447977,_0x36e817._0x436d43,0x10e)]['cache_read_input_tokens']}:{},..._0x24b4e3[_0x5f1d8e(0x437,0x362,0x3d6,0x494)]?.[_0x340d8b(0x126,0x60,0x51,_0x36e817._0x574149)]?{'cacheCreationInputTokens':_0x24b4e3[_0x340d8b(0x11b,0x8e,0x9f,_0x36e817._0x156477)][_0x340d8b(_0x36e817._0xe6894c,_0x36e817._0x1b5861,0xe0,_0x36e817._0x380f00)]}:{}},..._0x2fbd1b?{'providerState':{'anthropicAssistantContent':structuredClone(_0x2c086d)}}:{}};}var AnthropicMessagesStreamParser=class{['blocks']=new Map();[_0x2d9e9f(0x2b2,0x1ff,0x2d8,0x320)]=0x0;[_0x2d9e9f(0x3ab,0x3a2,0x469,0x3f1)]=0x0;[_0x2d9e9f(0x2e6,0x44f,0x3bb,0x2cf)]=0x0;[_0x1818aa(-0x88,-0xff,-0x105,-0xc3)]='msg-'+Date[_0x2d9e9f(0x377,0x50a,0x451,0x3a6)]();[_0x1818aa(-0x9d,0x89,-0xb2,0x1d)]=0x0;[_0x1818aa(-0x93,0xdc,0xb4,0x1a)];[_0x1818aa(0xbb,0x11c,0x92,0xdd)]=_0x2d9e9f(0x48f,0x3ec,0x47c,0x48a);constructor(_0x413137){const _0x3e9cfd={_0xe67615:0x1f3,_0x573e4e:0x9e};function _0x4ec3cf(_0x9b9809,_0x271f56,_0x467dee,_0x2c53f2){return _0x1818aa(_0x9b9809-0x141,_0x467dee,_0x467dee-0x4c,_0x271f56- -0x19a);}this[_0x4ec3cf(-0xaf,-0x180,-_0x3e9cfd._0xe67615,-_0x3e9cfd._0x573e4e)]=_0x413137;}[_0x1818aa(0x13,0x68,-0xde,-0x49)](_0x2dee05){const _0x47fe72={_0x1bbcaa:0x2d1,_0x121f34:0x33c,_0x5212ff:0x307,_0x42d5b9:0x37a,_0x50cf91:0x396,_0x26b9c0:0x341,_0x4354e0:0x108,_0x4f7f50:0x1bd,_0x2423fc:0x307,_0x30955a:0x27b,_0x2fab5d:0xa1,_0x49e085:0x1b6,_0x43524b:0xfc,_0x5c7d9b:0x1ae,_0x4bf536:0x19b,_0x7549d5:0x12c,_0x36460a:0x13e,_0x23b020:0x18b,_0x2e6f27:0xfe,_0xb06cdc:0xbf,_0x303f84:0x1ec,_0x2aa5e8:0x26e,_0xe10b0b:0x1d2,_0xb708c4:0x24b,_0xc448bc:0x268,_0x4b6127:0x1e4,_0x3b14c4:0x10b,_0x56e600:0xf1,_0x3dcf68:0x360,_0x5338d8:0x348,_0x3a1fce:0x223,_0x31f9d5:0x253,_0x788faf:0x297,_0x31d46e:0x33d,_0x5b650d:0x37b,_0x475541:0x350,_0x2c93bb:0x18f,_0x4d3cd1:0x9f,_0x421052:0x303,_0x58f8e3:0x3c1,_0x403666:0x3c6,_0x318e8a:0x151,_0x3a10fd:0x110,_0xbd197f:0x24c,_0x13221b:0x273,_0x4b948f:0x1e9,_0x840b19:0x32c,_0x33fd55:0x275,_0x25611c:0x3e7,_0x3be03b:0x35d,_0x5f0c41:0x2a6,_0x361505:0xdb,_0x57b728:0x2c2,_0x35bc77:0x24e,_0x237946:0x208,_0xfbe48:0xaa,_0x2e8f71:0x1eb,_0x936955:0x2bf,_0x5ee296:0x277,_0x1f9a44:0x228,_0x5cc589:0x288,_0x5d96df:0x200,_0x577a09:0x162,_0x51c788:0x1ce,_0x1bfab9:0x2ea,_0x3f550a:0x36b,_0x4cefda:0x290,_0x4a9319:0x321,_0x2d5ce9:0x2fd,_0x1a3a2a:0x204,_0x286cca:0x1df,_0x54c00a:0x145,_0x383748:0x17e,_0x6c2a82:0x38a,_0x18b0e8:0x134,_0x5d26d7:0x1b1,_0x3a26ef:0x21e,_0x291737:0x353,_0x402532:0x403,_0x56c1e1:0x282,_0x4aa759:0x2ed,_0x4fbf04:0x364,_0x490552:0x340,_0x397028:0x294,_0x2c7744:0x3e5,_0x7d6514:0x1ec,_0x395de4:0xd0,_0x51fc13:0x1bb,_0x267204:0x161,_0x19042a:0x215,_0x587d42:0x176,_0xc65b97:0x13a,_0x1f6091:0x289,_0x326fd3:0x311,_0x35d5a1:0x2ca,_0x58e2cb:0x316,_0x567946:0x1e6,_0x3eb57d:0x300,_0x2f9eaa:0x216,_0x578d0c:0x159,_0x5a0214:0x261,_0x26e6b2:0x1ff,_0x7aa326:0x2bd,_0x4fb5eb:0x26f,_0x4544a6:0x32b,_0x1440c9:0x2f6,_0x5ba38d:0x2e1,_0x5ea628:0x20a,_0xc58277:0x1bb,_0x13607e:0x289,_0x3cba9b:0x202,_0x560a65:0x251,_0xc5208f:0x213,_0x4ecb7:0x3d3,_0x11b994:0x20f,_0x5926fa:0x156,_0x19ab9e:0x16b,_0x339875:0x1ad,_0x240322:0x295,_0x27a445:0x23c,_0x268a06:0x2aa,_0x49b78c:0x200,_0x4b0e54:0x27b,_0xaa25b2:0x30b,_0x5e65c9:0x28d,_0x1d2161:0x1be,_0x398a7e:0x2e8,_0x568b93:0x2c9,_0xe31831:0x184,_0x521a87:0x1c6,_0x153447:0x1fd,_0x55d2c1:0xe6,_0x45d168:0x1be,_0x5ada5d:0x356,_0x4dc82d:0x42c,_0x264bdf:0x27f,_0x3d6e08:0x32b,_0x5d98f5:0x27e,_0x5cfe44:0x1c2,_0x42f3e9:0x226,_0x4f0c0d:0x2a3,_0xd790d1:0x1cb,_0x44ee97:0x146,_0x250db8:0x287,_0x1497c9:0x2ac,_0x576ad6:0x3e4,_0x31e4bb:0x432,_0x3a1906:0x310,_0x162cdf:0x292,_0x25e49e:0x273,_0x1a3edd:0x31a,_0x29f612:0x2c1,_0x3f4a1e:0x28c,_0x34bfd1:0x22e,_0x5c3d7b:0x11a,_0x11a3fa:0x32e,_0x8cb4ab:0x1a0,_0x3849ed:0x2ef,_0x158498:0x220,_0x4ab0f6:0xa7,_0x593b65:0x30f,_0x9a6433:0x2c1,_0x4d39f3:0x29a,_0x40ed57:0x181,_0x5dd724:0x245,_0x490651:0x1c1,_0x326712:0x1ac,_0x555c22:0x2bf,_0x32c22a:0x1f2,_0x1f55c0:0x28f,_0x27a609:0x36f,_0xe9cfa4:0x31a,_0x2fe038:0x26f,_0x538f6d:0x2a9,_0x28bc9d:0x191,_0x946bf3:0x1ca,_0x4b0e7f:0x1d1,_0x55f39c:0x33d,_0x1e00cd:0x282,_0x48e381:0x2bb,_0x21f647:0x2c4,_0x6ea297:0x397,_0x21b722:0x2ea,_0x236000:0x384,_0x245d53:0x2e0,_0x345653:0x2a0,_0x4cce39:0x1ca,_0x95849d:0x1bd,_0x5da371:0x212,_0x583b40:0x15e,_0x45afee:0x350,_0x29620b:0x26a,_0x8247a0:0x419,_0x421efe:0x1ae,_0x565217:0x133,_0x4244be:0xf4,_0x535dcf:0x2e4,_0x1e33a5:0x26c,_0x30bdee:0x2fc},_0x1df7ca={_0x743e14:0x12c},_0x2da4fb={_0x3d918b:0x95,_0x392ace:0x185,_0x222485:0x1d0};function _0x44091d(_0x393979,_0x1bad43,_0x3c6707,_0x39c806){return _0x2d9e9f(_0x393979-_0x2da4fb._0x3d918b,_0x393979,_0x1bad43- -_0x2da4fb._0x392ace,_0x39c806-_0x2da4fb._0x222485);}const _0x1cd413=_0x2dee05[_0x468802(0x318,_0x47fe72._0x1bbcaa,0x2d3,0x3ff)]('\x0a'),_0x3cffd1=_0x1cd413['find'](_0x30c49e=>_0x30c49e[_0x468802(0x24b,0x29c,0x160,0x29e)](_0x44091d(0x2b3,0x2ed,0x2b2,0x225)))?.['slice'](0x6)[_0x44091d(_0x47fe72._0x121f34,0x2d3,_0x47fe72._0x5212ff,0x2b8)](),_0x22835f=_0x1cd413[_0x468802(_0x47fe72._0x42d5b9,_0x47fe72._0x50cf91,0x2c0,_0x47fe72._0x26b9c0)](_0x2c7a01=>_0x2c7a01[_0x468802(0x24b,0x210,0x2c9,0x28d)](_0x468802(0x359,0x3b9,0x395,0x276)))[_0x468802(0x1d4,0x245,_0x47fe72._0x4354e0,0x231)](_0x69fd8=>_0x69fd8['slice'](0x5)[_0x44091d(0x208,0x1dd,0x22a,0x209)]())['join']('\x0a')['trim']();if(_0x22835f[_0x44091d(_0x47fe72._0x4f7f50,0x273,_0x47fe72._0x2423fc,_0x47fe72._0x30955a)]===0x0||_0x22835f===_0x44091d(0xbd,0x15b,_0x47fe72._0x2fab5d,0x240))return[];const _0x2df84e=JSON['parse'](_0x22835f);function _0x468802(_0x5bb250,_0x220675,_0x2fef44,_0x3473ac){return _0x2d9e9f(_0x5bb250-0x110,_0x2fef44,_0x5bb250- -_0x1df7ca._0x743e14,_0x3473ac-0xd0);}switch(_0x3cffd1){case _0x44091d(0x258,_0x47fe72._0x49e085,_0x47fe72._0x43524b,0xf8):{const _0x3da876=_0x2df84e[_0x468802(_0x47fe72._0x5c7d9b,0x200,_0x47fe72._0x4bf536,_0x47fe72._0x7549d5)];this[_0x44091d(_0x47fe72._0x36460a,_0x47fe72._0x23b020,_0x47fe72._0x2e6f27,_0x47fe72._0xb06cdc)]=_0x3da876?.['id']??this[_0x44091d(_0x47fe72._0x303f84,0x18b,0x1a5,0x1a4)],this[_0x468802(0x28f,0x23e,0x2a5,_0x47fe72._0x2aa5e8)]=_0x3da876?.[_0x44091d(_0x47fe72._0xe10b0b,0x29f,_0x47fe72._0xb708c4,_0x47fe72._0xc448bc)]?.[_0x44091d(_0x47fe72._0x4b6127,0x1a6,_0x47fe72._0x3b14c4,_0x47fe72._0x56e600)]??this['inputTokens'],this['cacheReadInputTokens']=_0x3da876?.[_0x468802(0x2f8,_0x47fe72._0x3dcf68,0x2c1,_0x47fe72._0x5338d8)]?.[_0x468802(_0x47fe72._0x3a1fce,_0x47fe72._0x31f9d5,0x2da,_0x47fe72._0x788faf)]??this[_0x468802(_0x47fe72._0x31d46e,_0x47fe72._0x5b650d,0x323,_0x47fe72._0x475541)],this[_0x44091d(0x158,0x153,_0x47fe72._0x2c93bb,_0x47fe72._0x4d3cd1)]=_0x3da876?.['usage']?.[_0x468802(_0x47fe72._0x421052,_0x47fe72._0x58f8e3,0x30e,_0x47fe72._0x403666)]??this[_0x44091d(_0x47fe72._0x318e8a,0x153,_0x47fe72._0x3a10fd,0xc3)];break;}case'content_block_start':{const _0x26a8fc=typeof _0x2df84e['index']==='number'?_0x2df84e[_0x468802(_0x47fe72._0xbd197f,_0x47fe72._0x13221b,0x30e,_0x47fe72._0x4b948f)]:0x0,_0x29819f=_0x2df84e[_0x468802(0x242,_0x47fe72._0x840b19,_0x47fe72._0x33fd55,0x256)];if(_0x29819f?.[_0x468802(0x343,_0x47fe72._0x25611c,_0x47fe72._0x3be03b,0x3c1)]===_0x44091d(0x1d6,0x1bd,_0x47fe72._0x5f0c41,_0x47fe72._0x361505)&&_0x29819f['id']&&_0x29819f[_0x468802(0x20e,0x1af,0x22a,_0x47fe72._0x57b728)])return this[_0x44091d(0x1e3,0x1bb,_0x47fe72._0x35bc77,_0x47fe72._0x237946)][_0x44091d(_0x47fe72._0xfbe48,0x195,0x1cd,0x1be)](_0x26a8fc,{'id':_0x29819f['id'],'index':_0x26a8fc,'inputJson':JSON[_0x468802(0x275,_0x47fe72._0x2e8f71,_0x47fe72._0x936955,0x2c6)](_0x29819f[_0x44091d(0x274,0x323,_0x47fe72._0x5ee296,0x38d)]??{}),'kind':_0x468802(0x216,_0x47fe72._0x1f9a44,0x16d,0x2d6),'name':_0x29819f[_0x44091d(0x19f,0x1b5,0x1a0,_0x47fe72._0x5cc589)]}),[{'type':'tool_use_delta','id':_0x29819f['id'],'index':_0x26a8fc,'name':_0x29819f[_0x468802(0x20e,_0x47fe72._0x5d96df,_0x47fe72._0x577a09,_0x47fe72._0x51c788)]}];if(_0x29819f?.[_0x44091d(0x277,_0x47fe72._0x1bfab9,_0x47fe72._0x3f550a,_0x47fe72._0x4cefda)]===_0x44091d(_0x47fe72._0x4a9319,_0x47fe72._0x2d5ce9,0x399,0x3d4)){this[_0x44091d(_0x47fe72._0x1a3a2a,0x1bb,0xfb,_0x47fe72._0x286cca)][_0x44091d(0x192,0x195,_0x47fe72._0x54c00a,_0x47fe72._0x383748)](_0x26a8fc,{'index':_0x26a8fc,'kind':'thinking','signature':typeof _0x29819f['signature']===_0x468802(0x364,0x2f5,0x300,_0x47fe72._0x6c2a82)?_0x29819f[_0x468802(0x1b3,_0x47fe72._0x18b0e8,0xfa,_0x47fe72._0x5d26d7)]:'','thinking':typeof _0x29819f[_0x468802(0x2ba,0x328,_0x47fe72._0x3a26ef,_0x47fe72._0x291737)]===_0x468802(0x364,_0x47fe72._0x402532,_0x47fe72._0x56c1e1,0x2f7)?_0x29819f[_0x44091d(_0x47fe72._0x4aa759,0x261,0x317,0x2bb)]:typeof _0x29819f['thinking']===_0x468802(_0x47fe72._0x4fbf04,_0x47fe72._0x490552,_0x47fe72._0x397028,0x2db)?String(_0x29819f[_0x44091d(_0x47fe72._0x2c7744,_0x47fe72._0x2d5ce9,0x2ff,0x34f)]):''});break;}if(_0x29819f?.[_0x468802(0x343,0x2eb,0x32b,0x298)]===_0x468802(0x215,_0x47fe72._0x7d6514,0x1ba,0x248)){this[_0x44091d(_0x47fe72._0x395de4,_0x47fe72._0x51fc13,_0x47fe72._0x267204,0x125)]['set'](_0x26a8fc,{'index':_0x26a8fc,'kind':_0x468802(_0x47fe72._0x19042a,_0x47fe72._0x587d42,_0x47fe72._0xc65b97,0x21c),'data':typeof _0x29819f[_0x468802(_0x47fe72._0x1f6091,0x25d,0x2e1,0x246)]===_0x468802(_0x47fe72._0x4fbf04,_0x47fe72._0x326fd3,_0x47fe72._0x35d5a1,0x2da)?String(_0x29819f[_0x44091d(_0x47fe72._0x58e2cb,0x230,0x24b,0x235)]):''});break;}this[_0x468802(0x214,_0x47fe72._0x567946,0x1f9,_0x47fe72._0x3eb57d)][_0x468802(0x1ee,_0x47fe72._0x2f9eaa,0x13e,_0x47fe72._0x578d0c)](_0x26a8fc,{'index':_0x26a8fc,'kind':_0x44091d(0x200,_0x47fe72._0x5a0214,_0x47fe72._0x26e6b2,0x200),'text':_0x29819f?.['text']??''});break;}case _0x44091d(_0x47fe72._0x7aa326,_0x47fe72._0x4fb5eb,0x20e,_0x47fe72._0x4544a6):{const _0x3f54ac=typeof _0x2df84e['index']==='number'?_0x2df84e[_0x468802(0x24c,0x2d9,_0x47fe72._0x1440c9,_0x47fe72._0x5ba38d)]:0x0,_0x15668c=this[_0x44091d(_0x47fe72._0x5ea628,_0x47fe72._0xc58277,_0x47fe72._0x13607e,_0x47fe72._0x3cba9b)][_0x44091d(0x1c3,_0x47fe72._0x560a65,0x32f,0x2ad)](_0x3f54ac),_0x1b12c9=_0x2df84e[_0x44091d(_0x47fe72._0xc5208f,0x1d5,0x1a0,0x173)];if(!_0x15668c||!_0x1b12c9?.[_0x44091d(_0x47fe72._0x421052,_0x47fe72._0x1bfab9,0x28c,0x3c1)])break;if(_0x1b12c9[_0x44091d(_0x47fe72._0x4ecb7,0x2ea,0x35e,_0x47fe72._0x11b994)]===_0x468802(0x20a,_0x47fe72._0x5926fa,0x2e0,0x230)&&_0x15668c[_0x44091d(0xe6,_0x47fe72._0x19ab9e,_0x47fe72._0x339875,0x96)]===_0x44091d(_0x47fe72._0x240322,0x261,_0x47fe72._0x27a445,_0x47fe72._0x268a06)&&typeof _0x1b12c9[_0x44091d(_0x47fe72._0x31d46e,0x261,_0x47fe72._0x49b78c,_0x47fe72._0x4b0e54)]===_0x44091d(0x333,_0x47fe72._0xaa25b2,0x3ec,0x2ff))return _0x15668c[_0x468802(0x2ba,_0x47fe72._0x5e65c9,_0x47fe72._0x26b9c0,0x343)]+=_0x1b12c9['text'],[{'type':_0x468802(0x284,0x260,_0x47fe72._0x1d2161,_0x47fe72._0x398a7e),'index':_0x3f54ac,'text':_0x1b12c9[_0x468802(0x2ba,_0x47fe72._0x1bbcaa,0x1e2,0x2d2)]}];if(_0x1b12c9[_0x44091d(0x2c0,_0x47fe72._0x1bfab9,_0x47fe72._0x568b93,0x218)]==='input_json_delta'&&_0x15668c[_0x44091d(_0x47fe72._0xe31831,_0x47fe72._0x19ab9e,_0x47fe72._0x521a87,_0x47fe72._0x153447)]===_0x44091d(_0x47fe72._0x55d2c1,_0x47fe72._0x4f7f50,0x10d,_0x47fe72._0x45d168)&&typeof _0x1b12c9['partial_json']===_0x468802(_0x47fe72._0x4fbf04,0x290,_0x47fe72._0x5ada5d,_0x47fe72._0x4dc82d))return _0x15668c[_0x468802(_0x47fe72._0x264bdf,_0x47fe72._0x3d6e08,_0x47fe72._0x5d98f5,_0x47fe72._0x5cfe44)]==='{}'&&(_0x15668c[_0x44091d(0x20c,_0x47fe72._0x42f3e9,0x2d3,_0x47fe72._0x4f0c0d)]=''),_0x15668c[_0x44091d(0x288,0x226,_0x47fe72._0xd790d1,0x28e)]+=_0x1b12c9['partial_json'],[{'type':'tool_use_delta','id':_0x15668c['id'],'index':_0x3f54ac,'inputDelta':_0x1b12c9[_0x44091d(_0x47fe72._0x286cca,_0x47fe72._0x51c788,0x18e,0x219)]}];if(_0x1b12c9['type']==='thinking_delta'&&_0x15668c[_0x44091d(_0x47fe72._0x44ee97,_0x47fe72._0x19ab9e,0xc5,0x140)]===_0x44091d(_0x47fe72._0x250db8,0x2fd,0x30d,_0x47fe72._0x1497c9)){const _0x20ca71=typeof _0x1b12c9[_0x468802(0x356,0x363,_0x47fe72._0x576ad6,_0x47fe72._0x31e4bb)]===_0x44091d(0x291,0x30b,0x2d5,_0x47fe72._0x3a1906)?String(_0x1b12c9[_0x44091d(0x270,0x2fd,_0x47fe72._0x162cdf,0x227)]):'';if(_0x20ca71[_0x44091d(0x27c,_0x47fe72._0x25e49e,_0x47fe72._0x1a3edd,0x323)]>0x0){_0x15668c['thinking']+=_0x20ca71;if(isUserVisibleThinking(this[_0x468802(_0x47fe72._0x29f612,0x2f1,_0x47fe72._0x3f4a1e,0x212)]))return[{'type':'anthropic_thinking_delta','index':_0x3f54ac,'thinking':_0x20ca71}];}}if(_0x1b12c9[_0x44091d(0x21d,_0x47fe72._0x1bfab9,0x2a2,_0x47fe72._0x34bfd1)]==='signature_delta'&&_0x15668c[_0x44091d(_0x47fe72._0x5c3d7b,0x16b,0x188,0x91)]===_0x44091d(_0x47fe72._0x11a3fa,_0x47fe72._0x2d5ce9,0x368,_0x47fe72._0x5ada5d)){const _0x20d0fc=typeof _0x1b12c9[_0x44091d(0x1d0,0x15a,0xb1,_0x47fe72._0x8cb4ab)]===_0x44091d(0x3cc,0x30b,_0x47fe72._0x3849ed,0x2e7)?String(_0x1b12c9[_0x44091d(_0x47fe72._0x158498,0x15a,_0x47fe72._0x4ab0f6,0x159)]):'';if(_0x20d0fc[_0x44091d(0x2e0,0x273,_0x47fe72._0x593b65,0x1e4)]>0x0){_0x15668c['signature']=_0x20d0fc;if(isUserVisibleThinking(this[_0x468802(_0x47fe72._0x9a6433,0x285,0x249,_0x47fe72._0x4d39f3)]))return[{'type':'anthropic_signature_delta','index':_0x3f54ac,'signature':_0x20d0fc}];}}break;}case _0x44091d(_0x47fe72._0x40ed57,0x258,0x2dc,0x271):{const _0x1ece49=_0x2df84e[_0x468802(0x22e,0x200,0x19d,_0x47fe72._0x936955)],_0x49adaf=_0x2df84e['usage'];this[_0x44091d(_0x47fe72._0x5dd724,0x236,_0x47fe72._0x490651,0x236)]=_0x49adaf?.[_0x468802(_0x47fe72._0x26e6b2,_0x47fe72._0x326712,_0x47fe72._0x555c22,_0x47fe72._0x32c22a)]??this[_0x468802(_0x47fe72._0x1f55c0,0x310,_0x47fe72._0x27a609,_0x47fe72._0xe9cfa4)],this[_0x44091d(0x23f,0x2e4,_0x47fe72._0x2fe038,_0x47fe72._0x538f6d)]=_0x49adaf?.[_0x44091d(_0x47fe72._0x28bc9d,_0x47fe72._0x946bf3,_0x47fe72._0x4b0e7f,0x25d)]??this[_0x468802(_0x47fe72._0x55f39c,0x29a,0x2cb,_0x47fe72._0x1e00cd)],this[_0x468802(0x1ac,0x14a,0x144,_0x47fe72._0xe31831)]=_0x49adaf?.[_0x44091d(_0x47fe72._0x48e381,0x2aa,0x288,0x38f)]??this['cacheCreationInputTokens'],this['outputTokens']=_0x49adaf?.['output_tokens']??this[_0x468802(_0x47fe72._0x21f647,0x283,_0x47fe72._0x6ea297,_0x47fe72._0x21b722)],this[_0x44091d(0x3a0,0x32b,_0x47fe72._0x236000,0x284)]=_0x1ece49?.[_0x468802(0x262,_0x47fe72._0x245d53,_0x47fe72._0x345653,_0x47fe72._0x4cce39)]===_0x44091d(0x221,_0x47fe72._0x95849d,0x22d,_0x47fe72._0x5da371)?_0x44091d(0x20e,_0x47fe72._0x4f7f50,0x172,_0x47fe72._0x583b40):_0x468802(_0x47fe72._0x45afee,_0x47fe72._0x21b722,_0x47fe72._0x29620b,_0x47fe72._0x8247a0);break;}case'error':{const _0x4dce05=_0x2df84e['error'];throw new ProviderStreamEventError(_0x4dce05?.[_0x468802(_0x47fe72._0x421efe,_0x47fe72._0x565217,_0x47fe72._0x5926fa,_0x47fe72._0x4244be)]??_0x44091d(_0x47fe72._0x535dcf,0x1fc,0x2ac,_0x47fe72._0x1e33a5),{'code':_0x4dce05?.[_0x468802(0x343,0x3f5,0x41d,_0x47fe72._0x30bdee)],'retryable':!![]});}}return[];}[_0x2d9e9f(0x277,0x3c2,0x2fd,0x262)](){const _0x212344={_0x5e74d9:0x17e,_0x51137a:0x1e0,_0x3a7568:0x178,_0x4ae448:0x204,_0x51fced:0x2e4,_0x15c059:0x3b0,_0x1d930d:0x38e,_0x318254:0x46f,_0x162142:0x27f,_0x1554fc:0x2b8,_0x87950f:0x26e,_0x363ded:0x223,_0x2403e:0x417,_0x2d8270:0x4a1,_0x1411ff:0x410,_0xff9a3b:0x320,_0x2de6ac:0x433,_0x5277f4:0x364,_0x4d34dc:0x2e4,_0x5b856a:0x349,_0x5c72ed:0x26e,_0xc42d6b:0x213,_0x1fd62d:0x400,_0x5a6f0c:0x38c,_0xec995b:0x322,_0x55bdd9:0x38b,_0x459455:0xf2,_0x564b3e:0x17f,_0x1b0fb4:0x1d8,_0x17bbeb:0x190,_0x4ffaa2:0x172,_0x2a4f23:0x22f,_0x5a03ce:0x49d,_0x29de42:0x1de,_0x23f2a1:0x1e1,_0x596671:0x28f,_0x38afd5:0x3a8,_0x5cdef2:0x45e,_0x88a625:0x2f0,_0x26bb06:0x24b,_0x3bb9a5:0x1e4,_0x38851e:0x376,_0x72e28a:0x24b,_0x4b9152:0xfe,_0x5bcb3a:0x1b0,_0x36708e:0x1e1,_0x1cf855:0x1ec,_0x367001:0x306,_0x657d5d:0x156,_0x4e03e4:0x24a},_0x338f65={_0x28c891:0x96},_0x3a008e={_0x17c23:0x11a,_0x3dbb4d:0xf};function _0x1bd03f(_0x16cd10,_0x2de9a8,_0x4eeb9a,_0x2156f){return _0x1818aa(_0x16cd10-_0x3a008e._0x17c23,_0x16cd10,_0x4eeb9a-_0x3a008e._0x3dbb4d,_0x2de9a8-0x273);}const _0x3e8e49=Array[_0x1bd03f(0x1d1,0x2ac,0x262,0x363)](this[_0x1bd03f(_0x212344._0x5e74d9,_0x212344._0x51137a,_0x212344._0x3a7568,0x118)][_0x1bd03f(0x20f,_0x212344._0x4ae448,0x184,_0x212344._0x51fced)]())[_0x4250ef(0x400,_0x212344._0x15c059,_0x212344._0x1d930d,_0x212344._0x318254)]((_0x49a507,_0x1b5208)=>_0x49a507[_0x1bd03f(0x1d3,0x218,0x15c,0x176)]-_0x1b5208[_0x1bd03f(0x2b1,0x218,0x12c,0x2e5)]);function _0x4250ef(_0x1cb924,_0xc0e4f0,_0x33d26a,_0x181863){return _0x2d9e9f(_0x1cb924-_0x338f65._0x28c891,_0xc0e4f0,_0x33d26a- -0x82,_0x181863-0x52);}const _0x4090de=[];for(const _0xfc6fbe of _0x3e8e49){if(_0xfc6fbe[_0x4250ef(_0x212344._0x162142,_0x212344._0x1554fc,_0x212344._0x87950f,0x27b)]===_0x1bd03f(_0x212344._0x363ded,0x286,0x1cf,0x2ee)){_0xfc6fbe['text'][_0x4250ef(0x41c,_0x212344._0x2403e,0x376,0x320)]>0x0&&_0x4090de[_0x4250ef(_0x212344._0x2d8270,0x4ad,_0x212344._0x1411ff,0x4b4)]({'type':'text','text':_0xfc6fbe[_0x4250ef(_0x212344._0xff9a3b,_0x212344._0x2de6ac,_0x212344._0x5277f4,0x2b3)]});continue;}if(_0xfc6fbe[_0x4250ef(_0x212344._0x4d34dc,_0x212344._0x5b856a,_0x212344._0x5c72ed,_0x212344._0xc42d6b)]===_0x4250ef(0x397,0x434,_0x212344._0x1fd62d,0x4af)){_0x4090de[_0x4250ef(0x4b2,0x3dd,0x410,_0x212344._0x5a6f0c)]({'type':_0x1bd03f(0x2de,_0x212344._0xec995b,0x2a9,_0x212344._0x55bdd9),'thinking':_0xfc6fbe['thinking'],'signature':_0xfc6fbe[_0x1bd03f(_0x212344._0x459455,_0x212344._0x564b3e,0x108,0x1d9)]});continue;}if(_0xfc6fbe[_0x1bd03f(_0x212344._0x1b0fb4,_0x212344._0x17bbeb,_0x212344._0x4ffaa2,_0x212344._0x2a4f23)]==='redacted_thinking'){_0x4090de[_0x4250ef(0x43b,0x422,0x410,_0x212344._0x5a03ce)]({'type':_0x1bd03f(_0x212344._0x29de42,_0x212344._0x23f2a1,0x2bb,0x234),'data':_0xfc6fbe[_0x1bd03f(0x20f,0x255,0x177,_0x212344._0x596671)]});continue;}_0x4090de[_0x4250ef(0x37e,_0x212344._0x38afd5,0x410,_0x212344._0x5cdef2)]({'type':'tool_use','id':_0xfc6fbe['id'],'name':_0xfc6fbe[_0x4250ef(_0x212344._0x88a625,0x277,0x2b8,0x32c)],'input':parseToolInput(_0xfc6fbe[_0x1bd03f(0x212,_0x212344._0x26bb06,_0x212344._0x3bb9a5,0x160)][_0x4250ef(0x3e5,0x291,_0x212344._0x38851e,0x2cd)]>0x0?_0xfc6fbe[_0x1bd03f(0x215,_0x212344._0x72e28a,0x2b3,0x277)]:'{}')});}return parseAnthropicResponse({'id':this[_0x1bd03f(_0x212344._0x4b9152,_0x212344._0x5bcb3a,0x14b,0x136)],'type':'message','role':_0x1bd03f(0x1c4,0x284,_0x212344._0x36708e,_0x212344._0x1cf855),'content':_0x4090de,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this[_0x1bd03f(0x25b,0x25b,0x302,_0x212344._0x367001)],'output_tokens':this['outputTokens'],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this[_0x1bd03f(0xae,0x178,_0x212344._0x657d5d,_0x212344._0x4e03e4)]}},this['request']);}};function createAnthropicSurfaces(){const _0x38fcfe={_0x4083b5:0x66,_0x4d8561:0x11b,_0x370744:0x1bc,_0x18a12f:0x284,_0x58b7a2:0x189},_0x399664={_0x4ad5a9:0xc9},_0x191882={_0x473461:0xec,_0x1e0024:0x12f};function _0x52c736(_0x15412b,_0x3a6eab,_0x492f9e,_0x1b6abc){return _0x1818aa(_0x15412b-_0x191882._0x473461,_0x15412b,_0x492f9e-_0x191882._0x1e0024,_0x3a6eab-0x178);}function _0x1f8adb(_0x3ebda2,_0x10b52e,_0x353d19,_0x13fb78){return _0x1818aa(_0x3ebda2-0x144,_0x353d19,_0x353d19-_0x399664._0x4ad5a9,_0x3ebda2-0x40);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x52c736(_0x38fcfe._0x4083b5,0xae,0x14,_0x38fcfe._0x4d8561),'createRequest'(_0xfe384b){return createAnthropicRequest(_0xfe384b,![]);},'parseResponse'(_0x3d565e,_0x43abb2){return parseAnthropicResponse(_0x3d565e,_0x43abb2);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x52c736(_0x38fcfe._0x370744,0x1e4,_0x38fcfe._0x18a12f,_0x38fcfe._0x58b7a2),'createRequest'(_0x10a3b4){return createAnthropicRequest(_0x10a3b4,!![]);},'createStreamParser'(_0x2e73c7){return new AnthropicMessagesStreamParser(_0x2e73c7);}}];}var StaticModelSurfaceRouter=class{[_0x1818aa(0xba,0xa8,-0x63,0x67)];[_0x1818aa(-0x182,-0x10e,-0x137,-0xa1)];constructor(_0x5c48dc){const _0x3d66a1={_0xaf5ce5:0x2a0,_0x1ce9ac:0x1fa,_0x41dc74:0x1ad,_0x5f7455:0x21a,_0x5d8f92:0x4f,_0x42163f:0x3e},_0x181d7f={_0x40387f:0x52,_0x5949b4:0xdf},_0x487864={_0x42ed2e:0x178,_0x5e7d7f:0x1a4};function _0xf7a409(_0x1618b0,_0x3eb8e9,_0x42ec15,_0x4c88ef){return _0x1818aa(_0x1618b0-0x124,_0x3eb8e9,_0x42ec15-_0x487864._0x42ed2e,_0x4c88ef-_0x487864._0x5e7d7f);}function _0x23ca50(_0x3f4918,_0x5b82c7,_0x30cd2c,_0x1f2d4c){return _0x1818aa(_0x3f4918-_0x181d7f._0x40387f,_0x3f4918,_0x30cd2c-_0x181d7f._0x5949b4,_0x1f2d4c-0x46);}this['completeSurface']=_0x5c48dc[_0xf7a409(_0x3d66a1._0xaf5ce5,_0x3d66a1._0x1ce9ac,_0x3d66a1._0x41dc74,_0x3d66a1._0x5f7455)],this[_0x23ca50(0x60,0x44,_0x3d66a1._0x5d8f92,-0x5b)]=_0x5c48dc[_0x23ca50(-_0x3d66a1._0x42163f,-0x28,-0xca,-0x64)];}[_0x2d9e9f(0x49b,0x43f,0x3c4,0x45e)](_0xde6985,_0x174aea){const _0x39d086={_0x32a0b9:0x55c,_0x17d734:0x460,_0x389bb8:0x3f8,_0x580b1:0x36a,_0x2d1233:0x35d,_0x2248d6:0x135,_0xd17452:0x47b,_0x5c3201:0x3ad},_0x29361a={_0x3833cf:0x145},_0x2d713b={_0x2eda47:0x1e9,_0x2f49b0:0x13f};function _0x47289b(_0x4de8f6,_0xbb90f9,_0x56ce0c,_0x363f14){return _0x1818aa(_0x4de8f6-_0x2d713b._0x2eda47,_0x56ce0c,_0x56ce0c-_0x2d713b._0x2f49b0,_0x363f14- -0x168);}function _0x1ded08(_0x50894f,_0x5b7195,_0x5d695e,_0x5b6725){return _0x2d9e9f(_0x50894f-0xcd,_0x5b7195,_0x50894f-0x41,_0x5b6725-_0x29361a._0x3833cf);}return _0x174aea[_0x1ded08(0x48f,_0x39d086._0x32a0b9,_0x39d086._0x17d734,_0x39d086._0x389bb8)]===_0x1ded08(_0x39d086._0x580b1,_0x39d086._0x2d1233,0x347,0x2ba)?this[_0x47289b(-0x26d,-_0x39d086._0x2248d6,-0x2dc,-0x209)]:this[_0x1ded08(_0x39d086._0xd17452,0x4ce,0x3e5,_0x39d086._0x5c3201)];}};function trimTrailingSlashes(_0x39e429){const _0x25081d={_0x1d05ef:0x3d4,_0xd45c96:0x2f8},_0x2fc391={_0x1fc3db:0x1b7,_0x27d7b5:0xf3,_0x250720:0x11b};function _0x1c3a43(_0xa82337,_0x209327,_0x4233b4,_0x405c08){return _0x2d9e9f(_0xa82337-_0x2fc391._0x1fc3db,_0x209327,_0xa82337- -_0x2fc391._0x27d7b5,_0x405c08-_0x2fc391._0x250720);}return _0x39e429[_0x1c3a43(0x38e,0x332,_0x25081d._0x1d05ef,_0x25081d._0xd45c96)](/\/+$/,'');}function resolveApiCredential(_0x525989,_0x2a1d1f){const _0x31f07c={_0x3a1019:0xd9,_0x24d772:0xe5},_0x42a895={_0xb4c7bf:0x1ba},_0x5f2082={_0x7afe31:0x1a,_0xca1c53:0x40e};function _0x2c28e7(_0x30d966,_0x3f451f,_0x138caa,_0x865533){return _0x2d9e9f(_0x30d966-_0x5f2082._0x7afe31,_0x30d966,_0x3f451f- -_0x5f2082._0xca1c53,_0x865533-0x3a);}if(_0x2a1d1f?.[_0x2c28e7(-0x1c2,-0xd9,-0x1c6,-0x188)])return _0x2a1d1f[_0x2c28e7(-0x166,-_0x31f07c._0x3a1019,-0x20,-_0x31f07c._0x24d772)];function _0x40b0b9(_0x1dd62f,_0x403d35,_0x1b89af,_0x1f2463){return _0x2d9e9f(_0x1dd62f-0xe0,_0x403d35,_0x1f2463- -0x172,_0x1f2463-_0x42a895._0xb4c7bf);}if(!_0x525989)return void 0x0;return{'kind':'api-key','value':_0x525989};}function _0x15fa(){const _0x2b409a=['DMLZAwjPBgL0Eq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','C3rHCNrZv2L0Aa','Aw5KzxG','ChjVDMLKzxjZ','CMvZCg9UC2vtDhjLyw0','BwfWqxbPrxjYB3i','A2v5CW','C2vUza','y29UBMvJDgLUzW','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','Aw5WDxrFDgv4Da','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','AgfZ','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','yNvPBgrqyxj0AwfSt3v0Chv0','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Dg9Wx3bYB3zPzgvY','y29UC3vTzvnZzuv2zw50','z3jVAY1JB2rLlwzHC3qTmq','ywnJzxb0','qw50AhjVCgLJ','C3rVCf9YzwfZB24','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','CMvXDwvZDhm','DxnLC1jLC3bVBNnLC0fWAq','C3vTBwfYEv90zxH0','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','B3bLBMfPl2DWDc00BW','y2XPrgvMyxvSDe1VzgvS','CM91DgvY','y3jLyxrLuMvXDwvZDa','CM9Szq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','ChjVDg9JB2XwzxjZAw9U','Aw5PDgLHBev2zw50','Bw9KzwXZqMfZzvvYBa','AxngAw5PDgu','Dg9VBhm','C3rYAw5NAwz5','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','CMvTB3zLrxzLBNrmAxn0zw5LCG','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','C3LZDgvT','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','y3jLyxrLu3rYzwfTugfYC2vY','C29Tzq','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','Aw5WDxrkC29U','y29UDgvUDf9PBMrLEa','DxnLCI12AxnPyMXL','y2fSBf9Pza','C2XPy2u','y29UDgvUDf9KzwX0yq','zw5HyMXLza','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','zNvUy3rPB25Fy2fSBa','rgLYzwn0igfUC3DLCJOG','zgf0yq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','C2vZC2LVBK1HBMfNzxi','Dg9VBf9Yzxn1Bhq','C2LNBMfS','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Aw5WDxruB2TLBNm','Aw5JBhvKzunVBNrLBNruExbL','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','CMvZB2X2zunYzwrLBNrPywW','zxzLBNq','ywrKrxzLBNrmAxn0zw5LCG','CMvHC29UAw5Nx2nVBNrLBNq','zgvZy3jPChrPB24','zgvSzxrL','C2vSzwn0u3vYzMfJzq','D2vIu29JA2v0rMfJDg9YEq','z3b0ltu','mJa5DNrgwu1m','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','DxnLCG','yxbP','CMvZCg9UC2uUy29TCgXLDgvK','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','DhjHBNnWB3j0','mtK2mdeWAuD4veH2','Cgf0Aa','zgvMyxvSDe1VzgvS','ChjVDMLKzxi','AxrLBq','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','z2v0','yxjNDw1LBNrZ','C2vZC2LVBKLK','qMvHCMvYia','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','zw50CMLLCW','zMLUywXszxnWB25Zzq','BwvZC2fNzv9KzwX0yq','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','mtbhq3DkzNa','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','ChjLCgfYzunOyxrszxf1zxn0','yxv0AfnJAgvTzq','zgvLChnLzwSTDJqTzMXHC2G','yxnZAxn0yw50','B3v0Chv0x2LUzgv4','Dgv4Da','B3bLBMfPx3jLyxnVBMLUzW','D2vIC29JA2v0','z2v0u3vYzMfJzq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','qMfZAa','y2XVC2u','CMvXDwvZDa','y29UBMvJDf9MywLSzwq','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','B3v0Chv0vg9Rzw5Z','Dg9VBenHBgXZqNLjBMrLEa','zgvMyxvSDe1HEfrVA2vUCW','CMv0CNKTywz0zxi','y29UDgvUDf9IBg9JA19KzwX0yq','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','C2vUzfDPDgHszxrYAwvZ','nJi1mZm2qKriDgnq','BgvUz3rO','yMfZzvvYBa','C3vTBwfYEuj5sw5KzxG','CMvHC29UAw5Nx3rLEhq','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C3vTBwfYEq','zwrPDg9YugX1z2LUvMvYC2LVBG','B3v0Chv0x3rVA2vUCW','C3rYAwn0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','Dg9VBf91C2vFAwq','yw50AhjVCgLJ','t3bLBKfj','Dg9VBf9JywXSCW','u3vYzMfJzsa','BgfIzwW','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','zgvMyxvSDe1VzgvSCW','Aw5KzxHpzG','zNjVBq','z2v0tw9KzwXZ','Bwv0ywrHDge','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C29YDa','y29UDgvUDa','yM9KEq','Bw9KzwXZ','yxv0Ag9YAxPHDgLVBG','z3b0ltuUmI1JB2rLEa','zw5KCg9PBNrZ','B3bLBKfPrgvSzwDHDgu','Dg9VBenHBgXZ','AxrLBv9Pza','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','Aw1Hz2u','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','BwvZC2fNzuLUzgv4','Dg9Rzw4','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','z2L0AhvIqxbPvxjS','CMvHC29UAw5NugfYDhm','z2v0qw50AhjVCgLJrgvSzwDHDgu','C3vYzMfJzxm','DxnHz2u','BxnNlq','r2L0shvIiefqssbLCNjVCIa','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','C29JA2v0','zMLUAxnOx3jLyxnVBG','Ec1HCgKTA2v5','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','l21VzgvSCW','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','y2fUy2vS','CMvZCg9UC2vuzxH0ugfYDhm','z2XTltuUmq','yw50AhjVCgLJx3rOAw5RAw5N','C3vTBwfYEv9PBMrLEa','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','y2HHDenVBxbSzxrL','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','zMv0y2HjBxbS','CMvZCg9UC2uUzMfPBgvK','y29TCgXLDgvtDxjMywnL','Aw52ywXPzgf0zq','ywrK','sw52ywXPzcbYzxf1zxn0oIa','B3jPz2LUlxrYywnRzxi','Ahr0Cc1ZC2u','wgLHB21P','ChjLDMLVDxnszxnWB25ZzuLK','CMv0CNLHyMXL','zgLZCgXHEq','C3bSAxq','y2HHDgnTCgW','zM9Yy2vgDwXSuMvWBgf5','C3rHDhvZ','zMv0y2G','y29TCgXLDgu','l2nOyxqVy29TCgXLDgLVBNm','mtzND29lA1y','zwzMB3j0','nJKWnZK1C2rwvMXS','Bw9Kzq','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','BM93','z3b0ltrV','DgvZDa','z2v0t3bLBKfPrgvSzwDHDgu','Bw9KzwXfBMrWB2LUDenHy2HL','B21PDhrLza','zgvLChnLzwSTDJqTChjV','DhjPBq','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','CMvHC29U','y29TCgXLDgvwAwfsB3v0zxi','CMvZCg9UC2vtB2nRzxrtDhjLyw0','y2fSBeLKvg9pDxrWDxrjBMrLEa','zw5JCNLWDgvKq29UDgvUDa','C3rYzwfTshr0Cfn1CMzHy2u','yxnZAxn0yw50lq','CMvZB2X2zq','CMvZCg9UC2vZugf0Aa','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','z2XTltuUmG','CgfYC2u','B3bLBMfPlxjLC3bVBNnLCW','C2vUzfjHD1jLCxvLC3q','y2f0y2G','y2fJAgvszwfKsw5WDxruB2TLBNm','Aw5WDxrFC2nOzw1H','C3vWCg9YDgvKrw5KCg9PBNrZ','BNvTyMvY','yw50AhjVCgLJqMfZzvvYBa','D3nZoG','DhLWzq','CMvZCg9UC2uUy3jLyxrL','ChjVDg9JB2W','zxzLBNq6','B3v0Chv0sw5KzxHuB0nHBgXjza','BgLTAxrZ','B3v0Chv0rM9YBwf0','y2HHDfn0CMvHBq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','AgvHzgvYuMvZB2X2zxi','Dg9VBenHBgXpCMrLCG','Dg9mB3DLCKnHC2u','Aw5JBhvKzxm','zw5Kx3r1CM4','wI5bsq','CMvZCg9UC2u','DNnJB2rLlZeUmta0lJi','r0vu','CMvWBgfJzq','DgHPBMTPBMC','y29UDgv4Df9Szw5NDgG','Bwf4x291Dhb1Df90B2TLBNm','zgf0ytO','C3bSAwnL','C3vWCg9YDgvKx2vUzhbVAw50CW','y2fWywjPBgL0AwvZ','Dg9bCgLfCNjVCG','BgfZDfjLC3bVBNnLswq','ue9tva','Dg9VBfvZzvn0yxj0rw1PDhrLza','ywjVCNq','zgvJB2rL','B3v0Chv0','C3rYAw5N','B3v0Chv0x3rLEhq','ChvZAa','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','y29UDgv4DfDPBMrVDW','Dg9tDhjPBMC','y2fWywjSzv9LBMrWB2LUDhm','y2HVAwnLCW','A2v5','t3bLBKfPqxbPrxjYB3i','C3vYzMfJzq','Bg9JA2vK','nta2mdiYwM91sNzk','C3rYzwfTvMLHu3vYzMfJzq','B2jQzwn0','Aw50zxjSzwf2zwq','CMvZB2X2zxi','C3rYDwn0DxjLzf9VDxrWDxq','CMvHC29UAw5Nx2rLDgfPBhm','BwvZC2fNzxm','y2fJAgvK','zMLSDgvY','CMvHC29UAw5NsxrLBxm','Aw5WDxq','C3rHDhvZvgv4Da','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','C2HPzNq','yw50AhjVCgLJlw1LC3nHz2vZ','q29TBwfUzenVzgu','BwvKAwfFDhLWzq','y29Kzq','C3rVCfjLyxnVBG','ywnJzxnZvg9Rzw4','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Bwf4','BwvZC2fNzq','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','yw50AhjVCgLJrgvSzwDHDgu','y29WAwXVDc1JAgf0lZaUmZeUmW','C2LNBMf0DxjL','w0rptKvD','ywjVCNrLza','yNvKz2v0vg9Rzw5Z','ywDLBNq','yxbWBgLJyxrPB24VANnVBG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CgvUzgLUzW','yxn5BMnjDgvYyxrVCG','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','t1bftG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','ChjVDMLKzxjtDgf0zq','oxvLwKjiva','AM9PBG','Dgv4Dej5sw5KzxG','zNjVBuvUDhjPzxm','A2LUza','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','ChjVDMLKzxjbzgfWDgvY','mJaYns0Xmc0Wmq','B3bLBMfPlxjLC3bVBNnLCY13CW','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','ChjVBxb0x3rVA2vUCW','C2vZC2LVBG','zNvUy3rPB24','Bwf4vg9Rzw5Z','mJaYmY0WnI0Wmq','AxnbCNjHEq','y29UDgvUDc10ExbL','zMLUAxnO','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','BwfW','B3v0Chv0sw5KzxG','C2L6zq','Ahr0Chm6','C2HVDwXKuMv0CNLszxnWB25Zzq','mJuYnta3t1rWwgLW','y3jLyxrLsgvHzgvYCW','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','Ahr0Cc1QC29U','yxbWBhLnB2rLBerLzMf1BhrZ','y2HHDgnTCgWT','zxjYB3i','DxrMltG','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','Bw9KzwW','BwvZC2fNzuLK','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','zgLZywjSzwq','Bwv0Ag9K','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','z2v0uMv0CNLezwXHEu1Z','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','DNnJB2rLlZeUmta2lJe','o2jHC2u2ncW','D2fPDezVCLjLDhj5','C2v0','CMvHC29UAw5N','AgvHzgvYCW','y29TCgXLDgvwAwftDxjMywnL','DhjHBNnWB3j0x2vYCM9Y','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Aw1Hz2vFDxjS','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','DMfSDwu','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Dgv4DfbHCNrZ','ChjVDMLKzxjFCMv0CNK','C2nOzw1H','zwrPDg9YvMvYC2LVBG','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','C3rYzwfT','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','Aw5WDxrFDg9Rzw5Z','CMvHzhLtDgf0zq','y29UC3vTzuv2zw50','yxv0BW','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','z2XTltqUnW','CMvZCg9UC2vjza','C3rYzwfTu3vYzMfJzq','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','oNjLyxnVBMLUzZOW','y3jLzgvUDgLHBa','Dgv4Df9KzwX0yq','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','z2XTltqUnG','D3m6','BMfTzq','BwvZC2fNzv9ZDgfYDa','CMvMDxnHBa','l3jLC3bVBNnLCW','mJC0nZm5rfb6DLLk','Dgv4Dc9LDMvUDc1ZDhjLyw0','yMXVy2TZ','CMvKywn0zwrFDgHPBMTPBMC','Dg9VBf91C2u','Dg9VBf91C2vFzgvSDge','CMvZzxq','r2L0shvIie1VzgvSCYaVienVCgLSB3q','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','CMvHC29UAw5Nx3rVA2vUCW','yxbPs2v5','zg9Uzq','mtC2mZC2ExnID2vO','AxneB25L','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','zw5JCNLWDgvKx2nVBNrLBNq','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','zMLUza','yMvHCMvY','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CgfYDgLHBf9QC29U','ANnVBG','Bwf4t3v0Chv0','CMvXDwvZDe11Dgf0B3jZ','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','twLUAu1HEa','zgvSDge','B3bLBG','z2L0AhvI','ChjVEhK','C3rYzwfTx2vYCM9Y','CgfYC2vszxnWB25Zzq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','C3vWCg9YDhnnB2rLBezLDgnO','DhjPBvn0yxj0','CMvZCg9UC2vtB2nRzxq','DMfSDwvZ','CMvZB2X2zujHC2vvCMW','BwLTBY12mI41lxbYBW','Bwf4x3rVA2vUCW','y29UC3vTzvDLyLnVy2TLDev2zw50','y29TCgXLDgLVBL90B2TLBNm','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','z2XTltqUnq','y2HHDenVBxbSzxrPB25Zugf0Aa','yw50AhjVCgLJlxzLCNnPB24','y29UDgvUDf9IBg9JAW','twLUAu1HEc1nmW','rgvLCfnLzwS','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','ANnVBL9Zy2HLBwe','C291CMnL'];_0x15fa=function(){return _0x2b409a;};return _0x15fa();}function resolveSessionBaseUrl(_0x4e3da3,_0xdfa139){return trimTrailingSlashes(_0xdfa139?.['endpoints']?.['api']??_0x4e3da3);}var model_registry_default={'defaultMaxTokens':0x4000,'defaultModel':_0x2d9e9f(0x37c,0x3fd,0x452,0x3a9),'cliDefaultModel':_0x2d9e9f(0x259,0x297,0x330,0x273),'providers':{'anthropic':{'label':_0x2d9e9f(0x46a,0x315,0x38d,0x477),'baseUrl':'https://api.anthropic.com','surface':_0x2d9e9f(0x522,0x419,0x4ac,0x467),'authScheme':_0x2d9e9f(0x3de,0x410,0x42b,0x444),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[_0x2d9e9f(0x2db,0x42a,0x3ba,0x38c),_0x1818aa(0x1c,-0x82,0x86,-0x31)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x1818aa(0x102,0x4d,-0x6,0xaa),'baseUrl':'https://api.z.ai/api/coding/paas/v4','anthropicBaseUrl':_0x1818aa(0xad,0x5c,0x75,0x2),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':'glm-4.7','defaultModels':[_0x1818aa(0xb0,0xf4,0xa6,0x91),_0x1818aa(-0x8a,0x13a,-0x4d,0x5f),'glm-4.7',_0x2d9e9f(0x383,0x2fc,0x338,0x2f1),_0x2d9e9f(0x43f,0x288,0x36b,0x2e0)],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x1f400},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':'OpenRouter','baseUrl':_0x2d9e9f(0x4a1,0x4fe,0x41f,0x416),'surface':_0x2d9e9f(0x2b5,0x313,0x357,0x38a),'authScheme':'bearer','defaultModel':_0x2d9e9f(0x389,0x38c,0x396,0x46a),'defaultModels':[_0x1818aa(0xad,-0x5b,-0xe4,-0x3d),'openai/gpt-4o-mini'],'supportsModelFetch':!![],'models':{'anthropic/claude-3.5-sonnet':{'contextWindow':0x30d40,'maxOutput':0x2000},'openai/gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000},'openai/gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x8000}}},'github':{'label':_0x2d9e9f(0x2e4,0x2aa,0x345,0x32e),'surface':'openai-responses','defaultModel':_0x2d9e9f(0x4e6,0x4aa,0x415,0x33d),'defaultModels':['claude-sonnet-4.5','gpt-4.1',_0x2d9e9f(0x338,0x3a8,0x3c6,0x32d),'gpt-5-mini',_0x1818aa(-0x108,0x16,0x73,-0x48),'claude-sonnet-4'],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x2d9e9f(0x448,0x58a,0x4ac,0x3f9)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x1818aa(0x60,0x57,0x19c,0xd9)},'gpt-5.1-codex':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-5-mini':{'contextWindow':0x30d40,'maxOutput':0x186a0},'gpt-4.1':{'contextWindow':0x1f400,'maxOutput':0x4000},'gpt-4o':{'contextWindow':0x1f400,'maxOutput':0x4000}}},'openai':{'label':_0x1818aa(0xdc,0xe6,0x11d,0x31),'baseUrl':_0x1818aa(-0x18b,-0xe7,-0x18f,-0xe2),'surface':'openai-chat-completions','authScheme':'bearer','defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{}},'deepseek':{'label':_0x2d9e9f(0x3f0,0x297,0x370,0x372),'baseUrl':'https://api.deepseek.com/anthropic','surface':'anthropic-messages','authScheme':_0x1818aa(0x59,-0xe5,-0x9c,-0x82),'defaultModel':_0x2d9e9f(0x3ac,0x416,0x457,0x3f4),'defaultModels':[_0x2d9e9f(0x3d1,0x466,0x457,0x3da),_0x1818aa(-0x6c,-0x9d,0x6d,0x10)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x2d9e9f(0x30a,0x39c,0x359,0x349),'baseUrl':_0x1818aa(-0xf2,0x4e,-0x52,-0x62),'surface':_0x2d9e9f(0x4c2,0x482,0x4ac,0x569),'authScheme':_0x1818aa(0x31,0x36,-0xac,-0x82),'defaultModel':_0x2d9e9f(0x2bb,0x3d8,0x36f,0x366),'defaultModels':[_0x1818aa(-0xe9,-0x72,0x1d,-0x64)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x2d9e9f(0x413,0x453,0x4ad,0x4ab),'baseUrl':_0x1818aa(0x3,-0xcf,-0xa4,-0x4d),'modelsBaseUrl':_0x2d9e9f(0x2de,0x21f,0x2dc,0x21c),'surface':_0x2d9e9f(0x584,0x4d5,0x4ac,0x463),'authScheme':_0x1818aa(0xbe,-0x8c,-0x5b,0x58),'defaultModel':_0x1818aa(-0x53,0xcc,0xc9,-0x19),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x1818aa(0x9e,-0x68,0x9,0x6d),'baseUrl':_0x2d9e9f(0x482,0x35c,0x3a5,0x2e3),'modelsBaseUrl':_0x1818aa(-0x9e,-0x5c,0x108,0x1c),'surface':'anthropic-messages','authScheme':_0x1818aa(0x9f,0x104,-0x86,0x58),'defaultModel':_0x2d9e9f(0x341,0x303,0x366,0x34c),'defaultModels':['mimo-v2.5-pro'],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x1a0701){const _0x96c76f={_0x53507f:0x51,_0x520b76:0xf7,_0x4052b3:0x107,_0xfa464c:0x2dc,_0x51d9ba:0x214,_0x32c293:0x1f8,_0x2d8a98:0x254,_0x48e349:0x168,_0x5642ad:0x87,_0x335e90:0x203},_0x5328bb={_0x1d1dfb:0x1e1,_0x1ecfed:0xeb,_0xa2fe84:0x19e},_0x23fb71={_0x557a5f:0xf9,_0x238f97:0xe6};function _0x17f3b0(_0x30d886,_0x587d9d,_0x3793ea,_0x15e060){return _0x2d9e9f(_0x30d886-_0x23fb71._0x557a5f,_0x3793ea,_0x587d9d- -0x483,_0x15e060-_0x23fb71._0x238f97);}function _0x39d7b0(_0x3ab503,_0x1acdc8,_0x50b295,_0x593538){return _0x1818aa(_0x3ab503-_0x5328bb._0x1d1dfb,_0x3ab503,_0x50b295-_0x5328bb._0x1ecfed,_0x50b295- -_0x5328bb._0xa2fe84);}const _0x2c922e=_0x1a0701[_0x39d7b0(-0x190,-_0x96c76f._0x53507f,-_0x96c76f._0x520b76,-0x1cd)]();return Object[_0x17f3b0(-0xbc,-_0x96c76f._0x4052b3,-0x154,-0x5c)](data[_0x39d7b0(-_0x96c76f._0xfa464c,-_0x96c76f._0x51d9ba,-_0x96c76f._0x32c293,-_0x96c76f._0x2d8a98)])[_0x17f3b0(-_0x96c76f._0x48e349,-0x133,-_0x96c76f._0x5642ad,-_0x96c76f._0x335e90)](_0x3c96cc=>_0x3c96cc['toLowerCase']()===_0x2c922e);}function getProviderProfile(_0x268c54){const _0x5813af={_0x29e5d6:0x1c2,_0x40ac0a:0xe5,_0x1a0b49:0x19c,_0x369193:0x1e6,_0x2607dc:0x1ee,_0x1caddf:0x47f,_0x2ed32e:0x45f,_0x4f641c:0x5db,_0x3a2b4a:0x670,_0x158d9b:0x5fe,_0x150b5e:0x609,_0x197f96:0x5eb,_0x1ec05f:0xf4,_0x1d2f4b:0x1f1,_0x3598a6:0x260,_0x34627f:0x1d7,_0x12788c:0x1b0},_0x3547a7={_0x4d1dc6:0x1b7,_0x4c05cb:0x16e},_0x4ac8cf={_0x5c1454:0x153};function _0x2f0807(_0x1be44b,_0x10993d,_0x1574b8,_0x3981f5){return _0x2d9e9f(_0x1be44b-0x97,_0x10993d,_0x1be44b- -0x219,_0x3981f5-_0x4ac8cf._0x5c1454);}const _0xa2113e=findProviderKey(_0x268c54);if(!_0xa2113e)return void 0x0;const _0x4e623a=data['providers'][_0xa2113e],_0x178804={};function _0x2c7d87(_0x4ffb43,_0x5977e9,_0x1f2a46,_0x135b60){return _0x2d9e9f(_0x4ffb43-_0x3547a7._0x4d1dc6,_0x1f2a46,_0x4ffb43-_0x3547a7._0x4c05cb,_0x135b60-0xc9);}for(const [_0x1702b7,_0x272096]of Object[_0x2f0807(_0x5813af._0x29e5d6,_0x5813af._0x40ac0a,_0x5813af._0x1a0b49,_0x5813af._0x369193)](_0x4e623a['models'])){_0x178804[_0x1702b7]=_0x272096;}return{'label':_0x4e623a[_0x2f0807(_0x5813af._0x2607dc,0x1dd,0x196,0x1d3)],'baseUrl':_0x4e623a[_0x2c7d87(0x567,0x4ba,0x4c2,0x64f)],'modelsBaseUrl':_0x4e623a[_0x2c7d87(0x50c,_0x5813af._0x1caddf,0x4e9,_0x5813af._0x2ed32e)],'anthropicBaseUrl':_0x4e623a[_0x2c7d87(_0x5813af._0x4f641c,_0x5813af._0x3a2b4a,_0x5813af._0x158d9b,0x688)],'surface':_0x4e623a[_0x2c7d87(_0x5813af._0x150b5e,0x654,0x53b,_0x5813af._0x197f96)],'authScheme':_0x4e623a[_0x2f0807(0x1c9,0x106,_0x5813af._0x1ec05f,0xfa)],'defaultModel':_0x4e623a['defaultModel'],'defaultModels':_0x4e623a[_0x2f0807(_0x5813af._0x1d2f4b,_0x5813af._0x3598a6,_0x5813af._0x34627f,0x1f4)]??[],'supportsModelFetch':_0x4e623a[_0x2f0807(0x148,0x157,0xa1,_0x5813af._0x12788c)]??![],'models':_0x178804};}function _0x5ba7(_0x5d39b6,_0x492f4b){_0x5d39b6=_0x5d39b6-0xbc;const _0x15fa56=_0x15fa();let _0x5ba75e=_0x15fa56[_0x5d39b6];if(_0x5ba7['BnTpNK']===undefined){var _0x3cdc00=function(_0x5a4210){const _0x5ea99f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x25a203='',_0x3522dc='';for(let _0x22af66=0x0,_0x56eb4e,_0x339c36,_0x25b787=0x0;_0x339c36=_0x5a4210['charAt'](_0x25b787++);~_0x339c36&&(_0x56eb4e=_0x22af66%0x4?_0x56eb4e*0x40+_0x339c36:_0x339c36,_0x22af66++%0x4)?_0x25a203+=String['fromCharCode'](0xff&_0x56eb4e>>(-0x2*_0x22af66&0x6)):0x0){_0x339c36=_0x5ea99f['indexOf'](_0x339c36);}for(let _0x4fdb7e=0x0,_0x18346a=_0x25a203['length'];_0x4fdb7e<_0x18346a;_0x4fdb7e++){_0x3522dc+='%'+('00'+_0x25a203['charCodeAt'](_0x4fdb7e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3522dc);};_0x5ba7['kSEuqN']=_0x3cdc00,_0x5ba7['VKMsCM']={},_0x5ba7['BnTpNK']=!![];}const _0x540889=_0x15fa56[0x0],_0x55a1b0=_0x5d39b6+_0x540889,_0x1d0b38=_0x5ba7['VKMsCM'][_0x55a1b0];return!_0x1d0b38?(_0x5ba75e=_0x5ba7['kSEuqN'](_0x5ba75e),_0x5ba7['VKMsCM'][_0x55a1b0]=_0x5ba75e):_0x5ba75e=_0x1d0b38,_0x5ba75e;}function getModelProfile(_0x1e3024,_0x26edb6){const _0x1065cc={_0x4a6498:0x14c,_0x594c9c:0x9f,_0x2ec98b:0x4a},_0x527631={_0x2e4c7c:0x33},_0x5b5b6d=findProviderKey(_0x1e3024);function _0x5d9b56(_0x4985b4,_0x3fd100,_0x5f1a3e,_0x6a240a){return _0x2d9e9f(_0x4985b4-0x1e,_0x5f1a3e,_0x4985b4- -0x5e2,_0x6a240a-0x127);}function _0x97228f(_0x58788b,_0x128525,_0x7c9692,_0x3cf0e4){return _0x1818aa(_0x58788b-0x10c,_0x3cf0e4,_0x7c9692-0x71,_0x58788b- -_0x527631._0x2e4c7c);}if(!_0x5b5b6d)return void 0x0;return data[_0x97228f(-0x8d,-_0x1065cc._0x4a6498,0x3c,-_0x1065cc._0x594c9c)][_0x5b5b6d][_0x97228f(0xd,-0xb1,0x73,-_0x1065cc._0x2ec98b)][_0x26edb6];}function resolveModelProfile(_0x1376d5,_0x151868){const _0x12d858={_0x5b2f29:0x521,_0x3c0452:0x387,_0x32eede:0x685,_0x1885c3:0x5a1,_0xf0285b:0x5fc,_0x17a9f6:0x546,_0x513c3a:0x539,_0x5bd5cc:0x64a,_0x314214:0x6b3,_0x257f7a:0x681,_0x34d7c0:0x643,_0x2d0325:0x5ae,_0x1d3ba7:0x421,_0x3a16f9:0x356,_0x2cae39:0x346,_0x1fa5aa:0x54b,_0x2b2b08:0x5b2,_0x16ae5f:0x50f,_0x3c7875:0x626,_0x5eae77:0x5e6,_0x528359:0x5a8,_0x48e9a5:0x4fd,_0x5c0f18:0x4af},_0x48db99={_0x2d9343:0x174,_0x8f86df:0x8c,_0x2d0a55:0x8e},_0x163c8c={_0x24464c:0x70,_0x41669c:0x1a8},_0x5bfbd5=findProviderKey(_0x1376d5);function _0x2dd365(_0x331e9f,_0x1052dd,_0x1c0334,_0x258b88){return _0x2d9e9f(_0x331e9f-_0x163c8c._0x24464c,_0x331e9f,_0x1052dd-_0x163c8c._0x41669c,_0x258b88-0x1e4);}if(!_0x5bfbd5)return void 0x0;function _0x45fd2c(_0x4133b8,_0x4335a4,_0x1fd01e,_0x4a712d){return _0x2d9e9f(_0x4133b8-_0x48db99._0x2d9343,_0x1fd01e,_0x4a712d- -_0x48db99._0x8f86df,_0x4a712d-_0x48db99._0x2d0a55);}const _0x17b57d=data[_0x2dd365(0x50b,_0x12d858._0x5b2f29,0x479,0x604)][_0x5bfbd5],_0xbc16ec=_0x17b57d[_0x45fd2c(0x3c1,0x414,0x39d,_0x12d858._0x3c0452)][_0x151868];return{'label':_0x17b57d['label'],'baseUrl':_0x17b57d[_0x2dd365(_0x12d858._0x32eede,_0x12d858._0x1885c3,0x679,_0x12d858._0xf0285b)],'modelsBaseUrl':_0x17b57d[_0x2dd365(0x5f7,_0x12d858._0x17a9f6,0x4aa,_0x12d858._0x513c3a)],'anthropicBaseUrl':_0x17b57d[_0x2dd365(_0x12d858._0x5bd5cc,0x615,_0x12d858._0x314214,_0x12d858._0x257f7a)],'surface':_0xbc16ec?.[_0x2dd365(0x63e,_0x12d858._0x34d7c0,0x671,_0x12d858._0x2d0325)]??_0x17b57d['surface'],'authScheme':_0x17b57d[_0x45fd2c(0x318,_0x12d858._0x1d3ba7,0x313,_0x12d858._0x3a16f9)],'defaultModel':_0x17b57d[_0x45fd2c(0x34b,0x294,0x37d,_0x12d858._0x2cae39)],'defaultModels':_0x17b57d[_0x2dd365(_0x12d858._0x1fa5aa,_0x12d858._0x2b2b08,_0x12d858._0x16ae5f,_0x12d858._0x3c7875)],'supportsModelFetch':_0x17b57d[_0x2dd365(0x4c9,0x509,_0x12d858._0x5eae77,0x454)],'contextWindow':_0xbc16ec?.[_0x2dd365(0x711,0x63d,0x70a,0x5c2)],'maxOutput':_0xbc16ec?.[_0x2dd365(_0x12d858._0x528359,_0x12d858._0x48e9a5,_0x12d858._0x5c0f18,0x464)]};}function getDefaultMaxTokens(){const _0x2bf97d={_0x359676:0x4a2,_0x5aa874:0x411},_0x15aa51={_0x7d566e:0x18e};function _0x2bd31f(_0x22bca1,_0x2cc417,_0x58f5be,_0x51bc2a){return _0x2d9e9f(_0x22bca1-0x2f,_0x51bc2a,_0x2cc417-0x84,_0x51bc2a-_0x15aa51._0x7d566e);}return data[_0x2bd31f(_0x2bf97d._0x359676,0x476,0x51a,_0x2bf97d._0x5aa874)];}function getDefaultModel(){const _0x5bf997={_0x363fc7:0x0};function _0x5237af(_0xae1705,_0x23c336,_0x23ec8f,_0x4eef1d){return _0x1818aa(_0xae1705-0x1b1,_0x23ec8f,_0x23ec8f-0x7b,_0xae1705-0x1);}return data[_0x5237af(_0x5bf997._0x363fc7,0x3d,0x62,-0x7a)];}function getCliDefaultModel(){const _0x3b03e4={_0x3aea68:0x306,_0x5090d0:0x41e,_0x31a66f:0x374},_0x1284cc={_0xffb572:0x59,_0x92f0ba:0x20,_0x519330:0x3b0};function _0x3d5aad(_0x372c44,_0x1c730f,_0x51462f,_0x19b187){return _0x1818aa(_0x372c44-_0x1284cc._0xffb572,_0x372c44,_0x51462f-_0x1284cc._0x92f0ba,_0x19b187-_0x1284cc._0x519330);}return data[_0x3d5aad(0x3f1,_0x3b03e4._0x3aea68,_0x3b03e4._0x5090d0,_0x3b03e4._0x31a66f)];}function getProviderLabel(_0x4bdd13){const _0x483896={_0x1cc523:0xa4,_0x454076:0x163,_0x45534a:0x101,_0x575804:0x8c,_0x12e0e2:0x1f7},_0x545b28={_0x524b36:0x72,_0x3b3b2d:0x2d},_0x5b1aa0={_0x50c2ff:0x2d5};function _0x266d18(_0x2c4b42,_0x2fb415,_0x12691e,_0x29b8f0){return _0x2d9e9f(_0x2c4b42-0x7b,_0x2fb415,_0x2c4b42- -_0x5b1aa0._0x50c2ff,_0x29b8f0-0x1cb);}function _0x47dcc6(_0x4f6f9c,_0x1d0489,_0x3d15e0,_0x481a4a){return _0x2d9e9f(_0x4f6f9c-_0x545b28._0x524b36,_0x4f6f9c,_0x481a4a-0xb6,_0x481a4a-_0x545b28._0x3b3b2d);}const _0x4bd72b=findProviderKey(_0x4bdd13);return _0x4bd72b?data[_0x266d18(_0x483896._0x1cc523,_0x483896._0x454076,_0x483896._0x45534a,_0x483896._0x575804)][_0x4bd72b][_0x266d18(0x132,0x173,_0x483896._0x12e0e2,0xf8)]:void 0x0;}function _0x1818aa(_0xad9a30,_0x30f237,_0x52a109,_0x2369d2){const _0x72e60c={_0x4b788f:0x1b8};return _0x5ba7(_0x2369d2- -_0x72e60c._0x4b788f,_0x30f237);}function getProviderDefaultModel(_0x146552){const _0x1ba063={_0x21a95f:0x2f4,_0x53c101:0x498,_0x4e816e:0x3d0},_0x400eec={_0x1f8766:0x57};function _0x14638e(_0xcfc083,_0x10cc70,_0x26768a,_0x1979cb){return _0x2d9e9f(_0xcfc083-0x1b5,_0x10cc70,_0x26768a-_0x400eec._0x1f8766,_0x1979cb-0x1d0);}const _0x413f4c=findProviderKey(_0x146552);if(!_0x413f4c)return void 0x0;return data[_0x14638e(_0x1ba063._0x21a95f,_0x1ba063._0x53c101,_0x1ba063._0x4e816e,0x398)][_0x413f4c]['defaultModel'];}function getProviderDefaultModels(_0x3dba56){const _0x4b71e3=findProviderKey(_0x3dba56);if(!_0x4b71e3)return[];return[...data['providers'][_0x4b71e3]['defaultModels']??[]];}function providerSupportsModelFetch(_0x59fab1){const _0x54db1b={_0x3fdde3:0x21e,_0xc88a5:0x21d,_0x2656ba:0x207},_0x579e6b={_0x234cc1:0x1e7,_0x5014cb:0xce,_0xd1738:0x1ac},_0x4cd3c1=findProviderKey(_0x59fab1);if(!_0x4cd3c1)return![];function _0x389bc1(_0x27c35e,_0x36cb05,_0x2d8b0a,_0x36b54a){return _0x1818aa(_0x27c35e-_0x579e6b._0x234cc1,_0x2d8b0a,_0x2d8b0a-_0x579e6b._0x5014cb,_0x27c35e- -_0x579e6b._0xd1738);}return data['providers'][_0x4cd3c1][_0x389bc1(-_0x54db1b._0x3fdde3,-0x2da,-_0x54db1b._0xc88a5,-_0x54db1b._0x2656ba)]??![];}function getOnboardingProviderKeys(){const _0x41ffb6={_0x29261e:0x2d},_0x2fa1a9={_0xa00907:0xde,_0x311617:0xbf};function _0xeef060(_0x5cf784,_0x35821a,_0x1c6c3d,_0x1676a1){return _0x2d9e9f(_0x5cf784-_0x2fa1a9._0xa00907,_0x5cf784,_0x35821a- -0x2fc,_0x1676a1-_0x2fa1a9._0x311617);}return Object['keys'](data[_0xeef060(-_0x41ffb6._0x29261e,0x7d,0xb4,0x3d)]);}function toErrorMessage(_0x2fd918){const _0x4b7b8c={_0x3d19a7:0x297,_0x14605f:0x2fb,_0x23995e:0x37c,_0x5c9ce0:0x402,_0x2c3456:0xd8},_0x1273df={_0x189b3:0xd2,_0x264ada:0x56},_0x4dc6e3={_0x239f85:0x13f};if(_0x2fd918 instanceof Error&&_0x2fd918[_0x11e5e1(0xa6,0x91,0x46,-0x6d)][_0x99fd6d(0x528,0x3e1,0x49a,0x49a)]>0x0)return _0x2fd918[_0x99fd6d(_0x4b7b8c._0x3d19a7,_0x4b7b8c._0x14605f,_0x4b7b8c._0x23995e,_0x4b7b8c._0x5c9ce0)];function _0x11e5e1(_0x275247,_0x547b6f,_0x75a401,_0x4f099c){return _0x1818aa(_0x275247-0x17b,_0x275247,_0x75a401-0x1aa,_0x75a401-_0x4dc6e3._0x239f85);}function _0x99fd6d(_0x38bee9,_0x1819b9,_0x1d4f02,_0x1e2647){return _0x2d9e9f(_0x38bee9-_0x1273df._0x189b3,_0x1819b9,_0x1d4f02-0xa2,_0x1e2647-_0x1273df._0x264ada);}return _0x11e5e1(_0x4b7b8c._0x2c3456,-0x55,0x7a,0x13c);}function createDefaultWebSocketFactory(){return({headers:_0x47a98f,url:_0x4e1947})=>{const _0x110d40=globalThis['WebSocket'];return new _0x110d40(_0x4e1947,{'headers':_0x47a98f,'protocols':[]});};}async function*iterateSseEvents(_0x58d4ce,_0x4b78b3){const _0x202263={_0x24e9f7:0x5b,_0x112a3b:0x9e,_0x3b5d2b:0x38,_0x3c7991:0x18a,_0x614bab:0x19c,_0x181856:0x1c3,_0x4816ea:0x385,_0xf88b2e:0x4d6,_0x26a7b2:0x4be,_0x4fc87e:0x476,_0xb9c831:0x51d,_0x1803bc:0x520,_0x4cc4aa:0x1c1,_0x1b7904:0x5b7,_0x58f67f:0x189,_0x48add1:0x217},_0x28a3d6={_0x5e4685:0x4d2,_0x2bbb31:0x4b0,_0x4a66bf:0x59e,_0x6ef0c0:0x582,_0x5c4106:0x572,_0x44df30:0x66d,_0x594b59:0x5ba},_0x328e0={_0x5e0165:0x3c1,_0x5aaf26:0xe6},_0x2e90fd={_0x421d14:0x3cd,_0x179247:0x195,_0x1a666a:0x104},_0x2bde76={_0x3465be:0x101,_0x5e176b:0x7e,_0x13b7ac:0x1f3},_0x54ee46=_0x58d4ce['body']?.['getReader']();function _0x402d52(_0x2504d5,_0x3a6133,_0x3ecfde,_0x151d33){return _0x2d9e9f(_0x2504d5-_0x2bde76._0x3465be,_0x3a6133,_0x2504d5-_0x2bde76._0x5e176b,_0x151d33-_0x2bde76._0x13b7ac);}if(!_0x54ee46)return;function _0x2f7624(_0x3d7219,_0x40772c,_0x98cb5e,_0x344690){return _0x2d9e9f(_0x3d7219-0x97,_0x3d7219,_0x40772c- -0x26f,_0x344690-0x23);}const _0x588819=new TextDecoder(_0x2f7624(_0x202263._0x24e9f7,_0x202263._0x112a3b,_0x202263._0x3b5d2b,0x67));let _0xc71d66='';const _0x6d5c5c=addAbortListener(_0x4b78b3,()=>{function _0x94b5f(_0x1439ed,_0x525eec,_0x4140d8,_0x29b0d7){return _0x2f7624(_0x29b0d7,_0x525eec-_0x2e90fd._0x421d14,_0x4140d8-_0x2e90fd._0x179247,_0x29b0d7-_0x2e90fd._0x1a666a);}function _0x3f2883(_0x3e40d0,_0x315325,_0x24c146,_0x67bd71){return _0x2f7624(_0x24c146,_0x67bd71-_0x328e0._0x5e0165,_0x24c146-0x1c4,_0x67bd71-_0x328e0._0x5aaf26);}void _0x54ee46[_0x3f2883(_0x28a3d6._0x5e4685,_0x28a3d6._0x2bbb31,_0x28a3d6._0x4a66bf,_0x28a3d6._0x6ef0c0)](toAbortError(_0x4b78b3?.['reason']))[_0x3f2883(_0x28a3d6._0x5c4106,_0x28a3d6._0x44df30,0x4f5,_0x28a3d6._0x594b59)](()=>{});});try{while(!![]){throwIfAborted(_0x4b78b3);const {value:_0x1cd4ff,done:_0x35a14c}=await _0x54ee46['read']();throwIfAborted(_0x4b78b3);if(_0x35a14c)break;_0xc71d66+=_0x588819[_0x2f7624(_0x202263._0x3c7991,0x21f,0x286,0x2ac)](_0x1cd4ff,{'stream':!![]});while(!![]){const _0xe4b43b=_0xc71d66[_0x2f7624(0x126,_0x202263._0x614bab,_0x202263._0x181856,0x180)]('\x0a\x0a');if(_0xe4b43b===-0x1)break;const _0xe4bf79=_0xc71d66[_0x402d52(0x42d,0x3b6,0x510,_0x202263._0x4816ea)](0x0,_0xe4b43b);_0xc71d66=_0xc71d66['slice'](_0xe4b43b+0x2),_0xe4bf79[_0x402d52(_0x202263._0xf88b2e,0x4fe,_0x202263._0x26a7b2,0x5b3)]()[_0x402d52(_0x202263._0x4fc87e,_0x202263._0xb9c831,0x4a7,_0x202263._0x1803bc)]>0x0&&(yield _0xe4bf79);}}_0xc71d66+=_0x588819[_0x2f7624(_0x202263._0x4cc4aa,0x21f,0x2f8,0x2b6)](),throwIfAborted(_0x4b78b3),_0xc71d66[_0x402d52(0x4d6,_0x202263._0x1b7904,0x5c0,0x46a)]()[_0x2f7624(0x1c2,_0x202263._0x58f67f,0x1b6,_0x202263._0x48add1)]>0x0&&(yield _0xc71d66);}finally{_0x6d5c5c();}}async function waitForWebSocketOpen(_0x4facc9,_0x15c128){const _0x5f51ab={_0x29101e:0x575,_0x7f3e56:0x4c1,_0x594d24:0x4de,_0x113e48:0x5a2},_0x3a1a75={_0xc6ac28:0x8d,_0x1f917f:0x156,_0x586e23:0x9d,_0x10e3f8:0x56f,_0x276759:0x65a,_0x143164:0x3f,_0x1d7f75:0x57,_0x113cd8:0x59b,_0x4a3524:0x552,_0x467e40:0x5b8,_0x175220:0x4b5,_0x27c3e9:0x8,_0xf0ce82:0x32,_0xb46157:0x71,_0x2a22d6:0xc9,_0x2c8af8:0x76},_0xf12e89={_0x4d5d0e:0xa,_0xd3b2b7:0x6b7},_0x18fc77={_0x42228d:0xc5,_0x3a957f:0x20d,_0x406e59:0x25e,_0x37e54e:0x17b,_0x2ca6f6:0x1ff,_0x4474d6:0x1ac,_0x4e85e8:0xd0,_0x53229a:0x1c5,_0x386071:0x11d,_0x3a9307:0x1bd,_0x2aa337:0x185,_0x231191:0x10f,_0x23d3a8:0x50,_0x1b70de:0x11f},_0x3630e8={_0x13b4c8:0x48c,_0x901c72:0x52b,_0x3350b9:0x56b},_0x1974ae={_0x4ea73b:0x1c8,_0x776759:0x1be,_0x16aaa3:0xd5},_0x3ab8c3={_0x3926cd:0x23},_0x597790={_0xc15cc8:0x191};if(_0x4facc9[_0x3142e1(_0x5f51ab._0x29101e,_0x5f51ab._0x7f3e56,_0x5f51ab._0x594d24,_0x5f51ab._0x113e48)]===WebSocket[_0x3142e1(0x520,0x518,0x49b,0x3c6)]){throwIfAborted(_0x15c128);return;}function _0x130fa8(_0x154c18,_0x52f46a,_0x30436b,_0x4254e9){return _0x2d9e9f(_0x154c18-_0x597790._0xc15cc8,_0x154c18,_0x4254e9- -0x508,_0x4254e9-0x1a0);}function _0x3142e1(_0x11efa4,_0x216d5f,_0x303922,_0x47b71a){return _0x2d9e9f(_0x11efa4-0x63,_0x47b71a,_0x303922-0x1b2,_0x47b71a-_0x3ab8c3._0x3926cd);}throwIfAborted(_0x15c128),await new Promise((_0x4393f5,_0x2550cb)=>{const _0x2f65fa={_0x330975:0x2f},_0x4f5bd2={_0x38b22f:0x1aa},_0x2308c6=()=>{_0x111ba1(),_0x4393f5();};function _0x1f82cc(_0xe1465c,_0x5220d2,_0x27f3cc,_0x103d46){return _0x130fa8(_0xe1465c,_0x5220d2-_0x4f5bd2._0x38b22f,_0x27f3cc-0x190,_0x103d46-0xf1);}const _0x1a300a=_0x372320=>{_0x111ba1(),_0x2550cb(new Error(_0x372320['message']||'WebSocket\x20request\x20failed'));},_0x132239=_0x43664e=>{const _0x547d6a={_0x10651e:0x3b8};function _0x27949d(_0x50b892,_0xa6cb83,_0x4a0e84,_0x2639a0){return _0x5ba7(_0x50b892- -_0x547d6a._0x10651e,_0xa6cb83);}_0x111ba1();function _0x474f55(_0x4cb7b3,_0x2be553,_0x1e553d,_0x3ed20b){return _0x5ba7(_0x1e553d-_0x2f65fa._0x330975,_0x4cb7b3);}const _0x127f70=_0x43664e;_0x2550cb(new Error(_0x127f70[_0x474f55(_0x1974ae._0x4ea73b,0x2dd,0x26e,0x1d6)]||_0x474f55(0x157,0x26a,_0x1974ae._0x776759,_0x1974ae._0x16aaa3)));},_0x4ce15c=()=>{const _0x27b395={_0x178167:0x37c};_0x111ba1();_0x4facc9[_0x3bbcf9(0x4a2,0x48d,_0x3630e8._0x13b4c8,0x3db)]===WebSocket[_0x3bbcf9(0x48e,0x44a,_0x3630e8._0x901c72,0x42a)]&&_0x4facc9[_0x3bbcf9(0x59d,0x54d,_0x3630e8._0x3350b9,0x586)](0x3e8,'aborted');function _0x3bbcf9(_0x484b8f,_0x4db1de,_0x408b33,_0x1f7792){return _0x5ba7(_0x4db1de-_0x27b395._0x178167,_0x1f7792);}function _0x2e0e44(_0x405c6a,_0x26dcf6,_0x5c7ebc,_0x405090){return _0x5ba7(_0x26dcf6-0x1d,_0x5c7ebc);}_0x2550cb(toAbortError(_0x15c128?.['reason']));},_0x111ba1=()=>{const _0x224468={_0x36daef:0x34d};_0x4facc9[_0x46c893(0x288,0x1ac,_0x18fc77._0x42228d,0x126)](_0x5252fb(-_0x18fc77._0x3a957f,-_0x18fc77._0x406e59,-_0x18fc77._0x37e54e,-0x19e),_0x2308c6);function _0x46c893(_0x547190,_0x1a3178,_0x18237b,_0x3d1171){return _0x5ba7(_0x1a3178-0x24,_0x547190);}function _0x5252fb(_0x79bb6b,_0x18eda5,_0x4fefa3,_0x526c15){return _0x5ba7(_0x79bb6b- -_0x224468._0x36daef,_0x18eda5);}_0x4facc9[_0x46c893(_0x18fc77._0x2ca6f6,_0x18fc77._0x4474d6,_0x18fc77._0x4e85e8,0x24a)]('error',_0x1a300a),_0x4facc9[_0x5252fb(-_0x18fc77._0x53229a,-_0x18fc77._0x386071,-0x10e,-0xf7)]('close',_0x132239),_0x15c128?.[_0x46c893(_0x18fc77._0x3a9307,_0x18fc77._0x4474d6,0x179,_0x18fc77._0x2aa337)](_0x5252fb(-0xdb,-_0x18fc77._0x231191,-_0x18fc77._0x23d3a8,-_0x18fc77._0x1b70de),_0x4ce15c);};_0x4facc9['addEventListener'](_0x1f82cc(-_0x3a1a75._0xc6ac28,-_0x3a1a75._0x1f917f,-_0x3a1a75._0x586e23,-0xbc),_0x2308c6),_0x4facc9[_0x5dd45b(_0x3a1a75._0x10e3f8,0x4de,0x5c9,_0x3a1a75._0x276759)]('error',_0x1a300a),_0x4facc9[_0x1f82cc(_0x3a1a75._0x143164,-0xbd,-0x56,-_0x3a1a75._0x1d7f75)](_0x5dd45b(_0x3a1a75._0x113cd8,_0x3a1a75._0x4a3524,_0x3a1a75._0x467e40,_0x3a1a75._0x175220),_0x132239);function _0x5dd45b(_0x3bd987,_0x2b4c65,_0x57bc7f,_0x4e3ae3){return _0x130fa8(_0x4e3ae3,_0x2b4c65-_0xf12e89._0x4d5d0e,_0x57bc7f-0x89,_0x3bd987-_0xf12e89._0xd3b2b7);}_0x15c128?.[_0x1f82cc(-0xec,_0x3a1a75._0x27c3e9,-0xec,-0x57)](_0x1f82cc(_0x3a1a75._0xf0ce82,-_0x3a1a75._0xb46157,_0x3a1a75._0x2a22d6,_0x3a1a75._0x2c8af8),_0x4ce15c,{'once':!![]});});}function iterateWebSocketMessages(_0x459a0f,_0x4cef19){const _0x4fe73d={_0xcdc83b:0x197,_0x223828:0x1af,_0x351bba:0x132,_0x2a436f:0x15b,_0x13e2f7:0x29,_0x27723b:0x66,_0x5e9c30:0x1ac,_0x54f938:0xfe,_0x55febc:0x134,_0x191d9e:0x28c,_0x5109a6:0x20f},_0x13bfb9={_0x1131c6:0x187,_0xf8d257:0x26e,_0x26a545:0x8a,_0x518864:0x7f,_0x9eba57:0x10b,_0x56c927:0x141,_0x2633b4:0x204,_0x1b0d83:0x136,_0x37061f:0x1fc,_0x4fb70a:0x1f4,_0x5294d2:0x2b9,_0x36ed21:0x121,_0xbb2e2f:0x132,_0x2d97b4:0xa1,_0x503a98:0x8e,_0x378fe3:0xed,_0x599232:0x30},_0xd50c2b={_0x203c94:0x184},_0x56799c={_0x298a43:0x52a,_0x2b741c:0x5e6,_0x94e07a:0x1f1,_0x1f4652:0x1cb,_0x9f04:0x2d2,_0x580045:0x30e,_0x2d1c29:0x87,_0x486470:0x1ff,_0xe24421:0x116,_0x2e405e:0x4b6,_0xb50460:0x3da,_0x2a78aa:0x47a},_0x52a9ec={_0x10a904:0x302},_0x3035b3={_0x4ef750:0x34c,_0x2c252e:0x26e,_0x15c634:0x39d,_0x9886:0x412,_0x4e6133:0xb2,_0x4f8ed9:0x185,_0x5c9b57:0x17b},_0x516f38={_0x252023:0x4a0,_0x16f8a6:0x477,_0x493071:0x3ec},_0x2ed72d={_0x402e13:0x3eb,_0x45f9aa:0x452,_0x5833e1:0x430,_0x1bde21:0x527,_0x659c41:0x488,_0x3ef30d:0x49e,_0x3c18f4:0x52e,_0x587e46:0x600},_0x141743={_0x535c03:0xc4,_0x5e5806:0x16},_0x211e91=[];let _0x588172=![];function _0x5377db(_0x34fce1,_0x58859b,_0x399512,_0x51ea65){return _0x1818aa(_0x34fce1-0xfe,_0x58859b,_0x399512-0x25,_0x51ea65-0x147);}let _0x58720e;function _0x16cb5f(_0x5c25f0,_0x590485,_0x56e8bb,_0x298a57){return _0x1818aa(_0x5c25f0-_0x141743._0x535c03,_0x590485,_0x56e8bb-_0x141743._0x5e5806,_0x5c25f0-0x290);}let _0x556311;const _0x2957db=_0x588cda=>{function _0x3aa303(_0x21410b,_0x52efaf,_0x4e4f15,_0xc458d9){return _0x5ba7(_0x4e4f15-0x3d7,_0xc458d9);}function _0x210285(_0x40e0a5,_0x187924,_0x1944b8,_0x1c2549){return _0x5ba7(_0x187924-0x1db,_0x40e0a5);}const _0x2e8bbf=_0x588cda;try{_0x211e91[_0x210285(_0x2ed72d._0x402e13,_0x2ed72d._0x45f9aa,0x446,_0x2ed72d._0x5833e1)](JSON['parse'](String(_0x2e8bbf[_0x3aa303(_0x2ed72d._0x1bde21,0x645,0x571,_0x2ed72d._0x659c41)]))),_0x556311?.(),_0x556311=void 0x0;}catch(_0x10cf46){_0x58720e=new Error(_0x3aa303(0x5b7,_0x2ed72d._0x3ef30d,_0x2ed72d._0x3c18f4,_0x2ed72d._0x587e46)+toErrorMessage(_0x10cf46)),_0x556311?.(),_0x556311=void 0x0;}},_0x4bc964=_0x51b3f9=>{const _0x9f0fc4=_0x51b3f9;function _0x41456e(_0x2f3afe,_0x53ebe9,_0x51852e,_0x196241){return _0x5ba7(_0x196241-0x309,_0x2f3afe);}_0x58720e=new Error(_0x9f0fc4[_0x41456e(0x3c4,0x32c,0x376,0x3c8)]||_0x3ad78a(0x444,_0x516f38._0x252023,_0x516f38._0x16f8a6,_0x516f38._0x493071));function _0x3ad78a(_0x5d970c,_0x140a40,_0x62cef3,_0x16e850){return _0x5ba7(_0x62cef3-0x384,_0x16e850);}_0x556311?.(),_0x556311=void 0x0;},_0x275cb5=_0x5720a1=>{const _0x37d9f7=_0x5720a1;function _0x77784b(_0x1bffc9,_0x85434e,_0x1dc707,_0x366325){return _0x5ba7(_0x1bffc9- -0x1e2,_0x366325);}function _0x233a14(_0x43b985,_0x2e414c,_0x3e25ad,_0x374567){return _0x5ba7(_0x43b985-0x1d2,_0x374567);}!_0x588172&&_0x37d9f7['code']!==0x3e8&&!_0x58720e&&(_0x58720e=new Error(_0x37d9f7[_0x233a14(0x411,0x49f,_0x3035b3._0x4ef750,0x4a4)]||_0x233a14(_0x3035b3._0x4ef750,_0x3035b3._0x2c252e,_0x3035b3._0x15c634,_0x3035b3._0x9886)+_0x37d9f7[_0x77784b(_0x3035b3._0x4e6133,_0x3035b3._0x4f8ed9,_0x3035b3._0x5c9b57,-0x23)])),_0x588172=!![],_0x556311?.(),_0x556311=void 0x0;},_0x2a55a0=addAbortListener(_0x4cef19,()=>{const _0x2acd52={_0x2c160e:0x3b4};_0x58720e=toAbortError(_0x4cef19?.[_0x256f5d(_0x56799c._0x298a43,_0x56799c._0x2b741c,0x6ae,0x5f3)]);_0x459a0f[_0xf48115(-0x28d,-_0x56799c._0x94e07a,-0x2ba,-_0x56799c._0x1f4652)]===WebSocket[_0xf48115(-_0x56799c._0x9f04,-0x234,-0x212,-_0x56799c._0x580045)]&&_0x459a0f[_0xf48115(-_0x56799c._0x2d1c29,-0x131,-_0x56799c._0x486470,-_0x56799c._0xe24421)](0x3e8,_0x256f5d(_0x56799c._0x2e405e,_0x56799c._0xb50460,0x3f4,_0x56799c._0x2a78aa));_0x556311?.();function _0xf48115(_0x1e7790,_0x4edf7e,_0x2c99c2,_0x2650e1){return _0x5ba7(_0x4edf7e- -_0x52a9ec._0x10a904,_0x1e7790);}function _0x256f5d(_0x426bc7,_0x3c22ae,_0x491380,_0x57ff9b){return _0x5ba7(_0x57ff9b-_0x2acd52._0x2c160e,_0x426bc7);}_0x556311=void 0x0;});return _0x459a0f['addEventListener'](_0x16cb5f(_0x4fe73d._0xcdc83b,_0x4fe73d._0x223828,0x216,_0x4fe73d._0x351bba),_0x2957db),_0x459a0f['addEventListener'](_0x5377db(_0x4fe73d._0x2a436f,-_0x4fe73d._0x13e2f7,0x80,0x80),_0x4bc964),_0x459a0f[_0x5377db(_0x4fe73d._0x27723b,_0x4fe73d._0x5e9c30,_0x4fe73d._0x54f938,_0x4fe73d._0x55febc)](_0x16cb5f(0x2a9,0x302,0x352,_0x4fe73d._0x191d9e),_0x275cb5),{async*[Symbol[_0x16cb5f(0x1a4,_0x4fe73d._0x5109a6,0x1f1,0xf7)]](){const _0x45d712={_0x23698f:0x153};function _0x9316b4(_0x306b8f,_0x38ba3b,_0x457353,_0x24720b){return _0x16cb5f(_0x38ba3b- -0x12e,_0x457353,_0x457353-_0x45d712._0x23698f,_0x24720b-0x18c);}function _0x28892e(_0x487cb1,_0x5360ed,_0x52c237,_0x2c8920){return _0x16cb5f(_0x5360ed- -0x396,_0x52c237,_0x52c237-0xca,_0x2c8920-_0xd50c2b._0x203c94);}try{while(!![]){if(_0x58720e)throw _0x58720e;if(_0x211e91[_0x9316b4(0x1d4,_0x13bfb9._0x1131c6,_0x13bfb9._0xf8d257,0x14b)]>0x0){yield _0x211e91[_0x28892e(-0xab,-0x2e,_0x13bfb9._0x26a545,0x77)]();continue;}if(_0x588172)break;await new Promise(_0x2aec04=>{_0x556311=_0x2aec04;});}}finally{_0x459a0f[_0x9316b4(0x214,0x132,_0x13bfb9._0x518864,_0x13bfb9._0x9eba57)](_0x28892e(-_0x13bfb9._0x56c927,-0x1ff,-_0x13bfb9._0x2633b4,-0x252),_0x2957db),_0x459a0f[_0x28892e(-0x91,-_0x13bfb9._0x1b0d83,-_0x13bfb9._0x37061f,-0x1a0)](_0x28892e(-_0x13bfb9._0x4fb70a,-0x1cd,-0x216,-_0x13bfb9._0x5294d2),_0x4bc964),_0x459a0f[_0x9316b4(_0x13bfb9._0x36ed21,_0x13bfb9._0xbb2e2f,_0x13bfb9._0x2d97b4,_0x13bfb9._0x503a98)](_0x28892e(-0x11f,-_0x13bfb9._0x378fe3,-0x53,-_0x13bfb9._0x599232),_0x275cb5),_0x2a55a0();}}};}function toWebSocketUrl(_0x55323d,_0x7db17){const _0x513a68={_0x3aa1f7:0x26,_0x563da5:0x15,_0x5878e7:0x32,_0x207164:0x60,_0x165017:0x14a,_0x4306a2:0x3,_0x5e5831:0x1bf,_0x16e394:0x106,_0x800c31:0x3b,_0x4d1895:0x17,_0x37caa2:0xb1},_0xcc7280={_0x4c0fa4:0x8};function _0x292d8a(_0x141b2c,_0x4d6ac6,_0x5c4f53,_0x118eee){return _0x1818aa(_0x141b2c-0x180,_0x118eee,_0x5c4f53-0x2d,_0x5c4f53- -0xd0);}const _0xb72dc3=new URL(_0x7db17,_0x55323d);function _0x4d0cec(_0x5ede64,_0x5abff2,_0x68da17,_0x6e1778){return _0x1818aa(_0x5ede64-_0xcc7280._0x4c0fa4,_0x6e1778,_0x68da17-0xd9,_0x5ede64- -0xfe);}return _0xb72dc3[_0x292d8a(-_0x513a68._0x3aa1f7,_0x513a68._0x563da5,-_0x513a68._0x5878e7,-0x60)]=_0xb72dc3[_0x4d0cec(-_0x513a68._0x207164,-0x65,-_0x513a68._0x165017,_0x513a68._0x4306a2)]===_0x4d0cec(-0x1ce,-_0x513a68._0x5e5831,-0x29a,-_0x513a68._0x16e394)?'wss:':'ws:',_0xb72dc3[_0x4d0cec(-_0x513a68._0x800c31,_0x513a68._0x4d1895,-0x1e,_0x513a68._0x37caa2)]();}var ProviderSessionManager=class{['resolver'];[_0x2d9e9f(0x3e9,0x453,0x4a5,0x4ca)];constructor(_0x287b9c){this['resolver']=_0x287b9c;}async[_0x2d9e9f(0x4f7,0x3b9,0x461,0x4b3)](_0x407eb3){const _0x481fa5={_0xb07db0:0x10e,_0x36099e:0x3ba,_0x383b1f:0x368,_0x3d12d:0x415,_0x566579:0x351,_0x43986f:0x36f,_0x356a55:0x45c,_0x282d9a:0x21b},_0x132bdf={_0x7e612a:0x341,_0x410b48:0x411,_0x106673:0x40d,_0x24007c:0x3ec,_0x3a3849:0x33d},_0x39bd62={_0x119473:0xf9},_0x50e713={_0x1ed79d:0xac};function _0x509ad8(_0x2b5dee,_0x2e1093,_0x3a3c1b,_0x39b83f){return _0x1818aa(_0x2b5dee-_0x50e713._0x1ed79d,_0x39b83f,_0x3a3c1b-0x6b,_0x3a3c1b-0x106);}function _0x22c40a(_0x93121b,_0xe29559,_0x25dbbc,_0x52894a){return _0x2d9e9f(_0x93121b-0x2a,_0x52894a,_0xe29559- -_0x39bd62._0x119473,_0x52894a-0xce);}if(!this['cached']){const _0x4fa9b2=this[_0x509ad8(0x1a9,0x101,0x1d4,_0x481fa5._0xb07db0)][_0x22c40a(_0x481fa5._0x36099e,_0x481fa5._0x383b1f,_0x481fa5._0x3d12d,0x370)](_0x407eb3);_0x4fa9b2[_0x22c40a(_0x481fa5._0x566579,_0x481fa5._0x43986f,0x30a,_0x481fa5._0x356a55)](()=>{const _0x236233={_0x5895da:0x52};function _0xd08f78(_0x54cb19,_0x1a4bc4,_0x1358a5,_0x50efce){return _0x509ad8(_0x54cb19-0x178,_0x1a4bc4-0xdc,_0x50efce-0x235,_0x1358a5);}function _0xe4cf5d(_0x55221e,_0x13f4cc,_0x21e1a2,_0x36a8e8){return _0x509ad8(_0x55221e-_0x236233._0x5895da,_0x13f4cc-0x13c,_0x55221e- -0x230,_0x13f4cc);}this[_0xd08f78(_0x132bdf._0x7e612a,0x487,_0x132bdf._0x410b48,_0x132bdf._0x106673)]===_0x4fa9b2&&(this[_0xd08f78(_0x132bdf._0x24007c,_0x132bdf._0x3a3849,0x463,_0x132bdf._0x106673)]=void 0x0);}),this[_0x509ad8(_0x481fa5._0x282d9a,0x28a,0x1d8,0x1fc)]=_0x4fa9b2;}return structuredClone(await this['cached']);}[_0x1818aa(0x1b,0xd9,0x10f,0x68)](){const _0x2f67ff={_0x3dc1d3:0x15a,_0x48101e:0xff,_0x347113:0x7c};function _0x8f9c59(_0xea2847,_0x176be2,_0x4e2eaa,_0x7dbe0c){return _0x1818aa(_0xea2847-_0x2f67ff._0x3dc1d3,_0x4e2eaa,_0x4e2eaa-_0x2f67ff._0x48101e,_0x176be2- -_0x2f67ff._0x347113);}this[_0x8f9c59(0x102,0x56,-0x61,-0x1c)]=void 0x0;}};async function prepareProviderRequest(_0x239e65,_0x23cb1d={}){const _0x3d46fa={_0x521343:0x38,_0x44e042:0x83,_0x64acf3:0xaa,_0x5d1b4a:0x64,_0x405270:0xb6,_0x59bac9:0xf0,_0x498c57:0xde,_0x15f6f2:0xf2,_0x4d40a5:0x168},_0x2a3c80={_0x34da50:0x3c5,_0x110689:0x16},_0x1876fb={_0x51e357:0x1ea};function _0x24c395(_0x3eb5cd,_0x2fe872,_0x37889c,_0x15125b){return _0x1818aa(_0x3eb5cd-0x1d0,_0x37889c,_0x37889c-_0x1876fb._0x51e357,_0x2fe872- -0xa5);}let _0x541b96={'request':structuredClone(_0x239e65),'session':_0x23cb1d[_0x5545cf(-_0x3d46fa._0x521343,-0xe,-_0x3d46fa._0x44e042,-0xa4)]?await _0x23cb1d[_0x5545cf(0xd3,-0xe,_0x3d46fa._0x64acf3,_0x3d46fa._0x5d1b4a)][_0x24c395(-_0x3d46fa._0x405270,-0x17,-_0x3d46fa._0x59bac9,-_0x3d46fa._0x498c57)](_0x23cb1d[_0x5545cf(0xd6,-0xc,-_0x3d46fa._0x15f6f2,-0x5e)]):void 0x0};for(const _0x243044 of _0x23cb1d[_0x24c395(-_0x3d46fa._0x4d40a5,-0x122,-0x1e9,-0x1f9)]??[]){_0x541b96=await _0x243044(_0x541b96);}function _0x5545cf(_0xa5c446,_0x4ad36e,_0x4eb996,_0x52cad8){return _0x2d9e9f(_0xa5c446-0x1b9,_0xa5c446,_0x4ad36e- -_0x2a3c80._0x34da50,_0x52cad8-_0x2a3c80._0x110689);}return _0x541b96;}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'];['maxTokens'];[_0x1818aa(-0x83,-0x4d,-0x19c,-0xb8)];['apiKey'];[_0x2d9e9f(0x394,0x321,0x3f9,0x407)];[_0x2d9e9f(0x34d,0x516,0x438,0x472)];[_0x1818aa(-0x1a1,-0x19c,-0x110,-0xe1)];[_0x2d9e9f(0x305,0x38a,0x356,0x2a7)];['router'];[_0x2d9e9f(0x44c,0x2f3,0x3b7,0x39a)];['webSocketFactory'];['surfaces']=new Map();constructor(_0x1dd66d){const _0x21d6f1={_0x43cd94:0x1da,_0x59cce8:0x1ab,_0x58f529:0x1c4,_0x5f18e1:0x129,_0x169419:0x161,_0x336a9d:0x20c,_0x238088:0x100,_0x15c0f1:0x1e6,_0x391025:0x1bc,_0x1372c2:0x1b8,_0x1a48f9:0x21a,_0x47cc6a:0x299,_0xdf6f07:0x1a1,_0x53c4ad:0x12f,_0x357a84:0x213,_0x126052:0x291,_0x45f7a4:0x188,_0x260a40:0x2c4,_0x50c85c:0x1ff,_0x346925:0x1b0,_0x3622c8:0x18c,_0x184d09:0x313,_0x27f486:0x3c5,_0x586389:0x3c6,_0x358ac6:0x1bd,_0x488fcc:0x132,_0x3d491c:0x145,_0x51e20a:0x146,_0x16cbbd:0x121,_0xdab086:0x67,_0x118ba1:0x221,_0x2943c2:0x1fc,_0x465346:0x18a,_0x48fee0:0xf5,_0x498c45:0xcc,_0x1584df:0x182,_0x123edb:0x1b6,_0x3a2b40:0x1c5,_0x5cefa0:0x2e0,_0x4d91b4:0x33f,_0x8ef263:0x241,_0x590373:0x268,_0x3a21c9:0xcd,_0x371182:0x11a,_0x585f18:0x272,_0x2d6be2:0x2ee,_0x24074b:0x336,_0x4a772c:0x3bd,_0x321114:0xe5,_0x2db1ac:0xab},_0x20cb48={_0x3bdc90:0xc5},_0x1a2764={_0x5adf93:0x148};this['model']=_0x1dd66d[_0x464ee9(_0x21d6f1._0x43cd94,_0x21d6f1._0x59cce8,0x21b,0x178)],this[_0x464ee9(_0x21d6f1._0x58f529,0x106,_0x21d6f1._0x5f18e1,_0x21d6f1._0x169419)]=_0x1dd66d[_0x464ee9(0x1c4,0x274,_0x21d6f1._0x336a9d,_0x21d6f1._0x238088)]??getDefaultMaxTokens(),this[_0x464ee9(_0x21d6f1._0x15c0f1,_0x21d6f1._0x391025,_0x21d6f1._0x1372c2,0x184)]=_0x1dd66d[_0x464ee9(0x1e6,_0x21d6f1._0x1a48f9,_0x21d6f1._0x47cc6a,0x2c8)]?structuredClone(_0x1dd66d[_0x479568(_0x21d6f1._0xdf6f07,0x148,0xe6,_0x21d6f1._0x53c4ad)]):void 0x0;function _0x464ee9(_0x529fe1,_0x1cf054,_0x220797,_0x47f6e2){return _0x1818aa(_0x529fe1-0x45,_0x47f6e2,_0x220797-_0x1a2764._0x5adf93,_0x529fe1-0x29e);}this[_0x464ee9(_0x21d6f1._0x357a84,0x1db,_0x21d6f1._0x126052,_0x21d6f1._0x45f7a4)]=_0x1dd66d['apiKey'],this[_0x464ee9(_0x21d6f1._0x260a40,0x338,0x30a,_0x21d6f1._0x50c85c)]=_0x1dd66d['baseUrl'];function _0x479568(_0x563f62,_0x47cad7,_0x36aa9b,_0x11ebf0){return _0x2d9e9f(_0x563f62-0x170,_0x47cad7,_0x36aa9b- -0x235,_0x11ebf0-_0x20cb48._0x3bdc90);}this[_0x479568(_0x21d6f1._0x346925,0x25f,0x203,0x236)]=_0x1dd66d[_0x479568(0x16d,_0x21d6f1._0x3622c8,_0x21d6f1._0x357a84,0x263)]??globalThis[_0x464ee9(_0x21d6f1._0x184d09,_0x21d6f1._0x27f486,_0x21d6f1._0x586389,0x3dd)],this[_0x464ee9(_0x21d6f1._0x358ac6,0x21d,_0x21d6f1._0x488fcc,_0x21d6f1._0x3d491c)]=_0x1dd66d['providerAdapter'],this[_0x479568(0x157,_0x21d6f1._0x51e20a,_0x21d6f1._0x16cbbd,_0x21d6f1._0xdab086)]=_0x1dd66d[_0x464ee9(_0x21d6f1._0x118ba1,_0x21d6f1._0x2943c2,_0x21d6f1._0x465346,0x151)]??[],this['router']=_0x1dd66d[_0x479568(0xab,0x174,0x163,0x139)],this[_0x479568(_0x21d6f1._0x48fee0,_0x21d6f1._0x498c45,_0x21d6f1._0x1584df,0x1b4)]=_0x1dd66d[_0x479568(_0x21d6f1._0x123edb,_0x21d6f1._0x3a2b40,0x182,0x1da)]??(_0x1dd66d['providerSessionResolver']?new ProviderSessionManager(_0x1dd66d['providerSessionResolver']):void 0x0),this[_0x464ee9(0x290,_0x21d6f1._0x5cefa0,_0x21d6f1._0x4d91b4,_0x21d6f1._0x8ef263)]=_0x1dd66d[_0x479568(_0x21d6f1._0x590373,_0x21d6f1._0x3a21c9,0x190,_0x21d6f1._0x371182)]??createDefaultWebSocketFactory();for(const _0x46d7b1 of _0x1dd66d[_0x464ee9(0x2ee,0x25d,_0x21d6f1._0x585f18,0x28e)]){this[_0x464ee9(_0x21d6f1._0x2d6be2,0x234,_0x21d6f1._0x24074b,_0x21d6f1._0x4a772c)][_0x479568(0x10f,0x99,_0x21d6f1._0x321114,_0x21d6f1._0x2db1ac)](_0x46d7b1['id'],_0x46d7b1);}}[_0x2d9e9f(0x500,0x515,0x449,0x470)](_0x558ee9,_0x42665b){const _0xb397b={_0x4c2006:0x1e},_0x27d857={_0x3972aa:0x114};function _0x31f7d5(_0x5da4e6,_0x13ef5e,_0x357c23,_0x54508c){return _0x1818aa(_0x5da4e6-0x26,_0x13ef5e,_0x357c23-0x1bb,_0x54508c- -_0x27d857._0x3972aa);}return this[_0x31f7d5(_0xb397b._0x4c2006,0x28,0x24,-0x8c)](_0x558ee9,_0x42665b);}[_0x1818aa(-0x161,-0xb4,-0x36,-0xaa)](_0x887fc1,_0x1a88d4){return this['streamViaRouter'](_0x887fc1,_0x1a88d4);}async['completeViaRouter'](_0x6359ad,_0x280be1){const _0x5bc7ce={_0x337cef:0x163,_0x139299:0x234,_0x5ada50:0x127},_0x2a548d={_0x99c58:0x1b8},_0x2be6e2={_0x3bf6d1:0x72},_0x2f2dac=this['applyModelDefaults'](_0x6359ad),_0x49e8b8=await this['router'][_0x412088(-_0x5bc7ce._0x337cef,-0x230,-0x15b,-_0x5bc7ce._0x139299)](_0x2f2dac,{'mode':_0x412088(-0x117,-0x25c,-_0x5bc7ce._0x5ada50,-0x1af)});function _0x3c1164(_0x309f6e,_0x1a61d6,_0x2d8a4f,_0x458baf){return _0x1818aa(_0x309f6e-_0x2be6e2._0x3bf6d1,_0x458baf,_0x2d8a4f-0x10d,_0x309f6e-0x36d);}function _0x412088(_0x1fe71c,_0x3ee49a,_0x3d6a6d,_0x2950ac){return _0x2d9e9f(_0x1fe71c-0x8b,_0x3d6a6d,_0x2950ac- -0x5f8,_0x2950ac-_0x2a548d._0x99c58);}return this['completeViaSurface'](_0x2f2dac,_0x49e8b8,_0x280be1);}async*['streamViaRouter'](_0x2463ba,_0x5622b2){const _0x42399d={_0x59476d:0x279,_0x5642fa:0x2b7,_0x5852de:0x232,_0x3bf05c:0x36c},_0xf4e0df={_0x249142:0x159,_0x346d4c:0x17d},_0x1a6c4b={_0x2bb5a9:0xdf,_0x24d82f:0x91,_0x894a8e:0x1c1},_0x25c7bb=this[_0x2d1096(0x1d2,0x192,_0x42399d._0x59476d,0x200)](_0x2463ba);function _0x2d1096(_0x551044,_0x127df8,_0x510a97,_0x5e77aa){return _0x2d9e9f(_0x551044-_0x1a6c4b._0x2bb5a9,_0x127df8,_0x510a97- -_0x1a6c4b._0x24d82f,_0x5e77aa-_0x1a6c4b._0x894a8e);}function _0x4975d3(_0x235c07,_0x2c0e38,_0x25ed70,_0x141bc1){return _0x1818aa(_0x235c07-_0xf4e0df._0x249142,_0x2c0e38,_0x25ed70-_0xf4e0df._0x346d4c,_0x141bc1-0x26d);}const _0x35bff8=await this[_0x4975d3(0x198,0x14b,_0x42399d._0x5642fa,_0x42399d._0x5852de)]['selectSurface'](_0x25c7bb,{'mode':'stream'});yield*this[_0x2d1096(0x4d8,_0x42399d._0x3bf05c,0x40d,0x42c)](_0x25c7bb,_0x35bff8,_0x5622b2);}async[_0x1818aa(-0x7c,-0x3e,-0x88,-0xb6)](_0x2ca0e4,_0x51c4f7,_0x1f6106){const _0x28e274={_0x52f468:0x301,_0x25bb46:0x2cf,_0x49ea57:0x2a1,_0x3ef5b1:0x3e0,_0x454088:0x406,_0x1549fb:0x3cd,_0x2cb1c2:0x2da,_0x42eb67:0x212,_0x473592:0x37a,_0x1b4a85:0x2fe,_0x2d035d:0x3ea,_0x48c7fb:0x329,_0x46a92b:0x3db,_0x22b9a1:0x3fd,_0x1d448c:0x41f,_0x43e076:0x421,_0x40af66:0x3b0,_0x5f59ae:0x3bd,_0xc21c77:0x3b3,_0x3b9443:0x325,_0x5c8979:0x2c8,_0x3da10d:0x2e7,_0x11b2be:0x440,_0x14a296:0x515,_0x183040:0x287,_0x2e30c5:0x475,_0x41c86e:0x3e3,_0x20fffb:0x554,_0x539774:0x3fd,_0x208127:0x363,_0x4bac83:0x49a,_0x375081:0x328,_0x5e5e2c:0x3b7,_0x5ebe33:0x3a2},_0x37efdb={_0x3b685d:0x1c0},_0x5b67cb={_0xc406e6:0x1b8,_0x4c8d7a:0x2f,_0xd95a3e:0xfe},_0x101e34=this[_0x46f8d2(_0x28e274._0x52f468,_0x28e274._0x25bb46,0x265,_0x28e274._0x49ea57)](_0x2ca0e4),_0x3ef19c=this[_0x46f8d2(_0x28e274._0x3ef5b1,0x3bd,_0x28e274._0x454088,0x304)](_0x51c4f7);if(_0x3ef19c[_0x46f8d2(0x3c6,0x37c,_0x28e274._0x1549fb,0x43c)]===_0x125ddc(_0x28e274._0x2cb1c2,_0x28e274._0x42eb67,0x39e,_0x28e274._0x473592)){const _0x35427d=await this[_0x46f8d2(_0x28e274._0x1b4a85,0x362,_0x28e274._0x2d035d,_0x28e274._0x48c7fb)](_0x101e34,_0x3ef19c,![],_0x1f6106);if(!_0x35427d['ok'])throw await this[_0x125ddc(0x45a,_0x28e274._0x46a92b,0x506,0x4ab)](_0x35427d);if(!_0x3ef19c[_0x125ddc(0x330,0x269,0x412,0x3e8)])throw new Error(_0x46f8d2(_0x28e274._0x22b9a1,_0x28e274._0x1d448c,0x41b,0x3cb)+_0x51c4f7+_0x125ddc(_0x28e274._0x43e076,0x366,0x35d,_0x28e274._0x40af66));return _0x3ef19c[_0x46f8d2(0x356,_0x28e274._0x5f59ae,_0x28e274._0xc21c77,0x420)](await _0x35427d[_0x125ddc(_0x28e274._0x3b9443,0x2e0,_0x28e274._0x5c8979,_0x28e274._0x3da10d)](),_0x101e34);}let _0x35de54;function _0x125ddc(_0x4ef644,_0x2e1b98,_0x21def4,_0x113ec4){return _0x2d9e9f(_0x4ef644-_0x5b67cb._0xc406e6,_0x21def4,_0x4ef644- -_0x5b67cb._0x4c8d7a,_0x113ec4-_0x5b67cb._0xd95a3e);}for await(const _0x2c8524 of this['streamViaSurface'](_0x101e34,_0x51c4f7,_0x1f6106)){_0x2c8524[_0x125ddc(_0x28e274._0x11b2be,0x3ef,_0x28e274._0x14a296,0x3fd)]===_0x46f8d2(0x340,_0x28e274._0x183040,0x280,0x2f6)&&(_0x35de54=_0x2c8524[_0x46f8d2(_0x28e274._0x2e30c5,0x4b3,_0x28e274._0x41c86e,_0x28e274._0x20fffb)]);}function _0x46f8d2(_0x52e7d5,_0x5236fa,_0x49b6e5,_0x1d4bd3){return _0x1818aa(_0x52e7d5-_0x37efdb._0x3b685d,_0x1d4bd3,_0x49b6e5-0x69,_0x52e7d5-0x3ca);}if(!_0x35de54)throw new Error(_0x46f8d2(_0x28e274._0x539774,_0x28e274._0x208127,_0x28e274._0x4bac83,0x31e)+_0x51c4f7+_0x125ddc(0x31d,_0x28e274._0x375081,_0x28e274._0x5e5e2c,_0x28e274._0x5ebe33));return _0x35de54;}async*['streamViaSurface'](_0x3f9b78,_0x599421,_0x40b833){const _0x5553cb={_0x27c525:0x85,_0x2eedc9:0x15a,_0x1fbbf2:0x20c,_0xc5e23b:0x27e,_0x1325b3:0x1e1,_0x3745f5:0x2d5,_0x11e3f5:0x1e0,_0x500592:0x1b2,_0x3edacd:0x182,_0x1b33de:0x7d,_0x3443b2:0xf3,_0x5a8c40:0x75,_0x1b97cd:0x1bf,_0x2c7083:0xca,_0x54335b:0x105,_0x5ae7b3:0x24e,_0x535c07:0x2fc},_0x984ea0={_0xc63919:0x1ad,_0x640f08:0x1e,_0x51a951:0x156},_0x524e7c={_0x2e92cd:0x2dc,_0xb7a0a8:0x6c},_0x496313=this[_0x20471e(0x75,0xb5,_0x5553cb._0x27c525,0x2e)](_0x3f9b78),_0x1567de=this['getSurface'](_0x599421);function _0x20471e(_0x53eeaa,_0x1b67b9,_0x273996,_0x5b96c5){return _0x2d9e9f(_0x53eeaa-0x7c,_0x273996,_0x5b96c5- -_0x524e7c._0x2e92cd,_0x5b96c5-_0x524e7c._0xb7a0a8);}function _0x2f2b6a(_0x448d90,_0x31cc6d,_0x30b2e7,_0x4b27e6){return _0x1818aa(_0x448d90-_0x984ea0._0xc63919,_0x4b27e6,_0x30b2e7-_0x984ea0._0x640f08,_0x448d90- -_0x984ea0._0x51a951);}if(_0x1567de[_0x2f2b6a(-_0x5553cb._0x2eedc9,-0x8d,-0x171,-0xbf)]==='http-json'){const _0x1addc2=await this[_0x2f2b6a(-_0x5553cb._0x1fbbf2,-_0x5553cb._0xc5e23b,-_0x5553cb._0x1325b3,-_0x5553cb._0x3745f5)](_0x496313,_0x599421,_0x40b833);yield{'type':_0x2f2b6a(-_0x5553cb._0x11e3f5,-0x26d,-_0x5553cb._0x500592,-_0x5553cb._0x3edacd),'response':_0x1addc2};return;}if(_0x1567de[_0x20471e(_0x5553cb._0x1b33de,0x21,0x89,_0x5553cb._0x3443b2)]===_0x2f2b6a(-0xea,-0xa3,-_0x5553cb._0x5a8c40,-_0x5553cb._0x1b97cd)){yield*this[_0x2f2b6a(-_0x5553cb._0x2c7083,-0xf,-0x19a,-_0x5553cb._0x54335b)](_0x496313,_0x1567de,_0x40b833);return;}yield*this[_0x2f2b6a(-_0x5553cb._0x5ae7b3,-_0x5553cb._0x535c07,-0x29c,-0x31c)](_0x496313,_0x1567de,_0x40b833?.['signal']);}async['sendRawRequest'](_0x58912d){const _0x1ddf4d={_0x2acff5:0x40},_0x101f08={_0x392446:0x84,_0x4a9c72:0xda},_0x2005a6={_0x35d673:0x16e,_0x3724fc:0xdf,_0x5c54c5:0x8f,_0x58db52:0xa4,_0x1090d2:0x173,_0x2194e3:0x97,_0x43de85:0x21d,_0x318a93:0x1d,_0x4672d1:0x1c9,_0x3e246e:0x175,_0x35bd93:0x171,_0xa0f6e2:0xda,_0x54fef2:0x54,_0x359955:0xff,_0x59a45b:0xe7,_0x307e3e:0x1bd,_0x33180e:0x288,_0x252b32:0x175,_0x4fede9:0xc2,_0x4c8547:0x1ce,_0xc81a2:0x2b7,_0x26b6c0:0x21,_0x4438dd:0x21,_0x465a7a:0xa0,_0x40af09:0x2e9,_0x26eabd:0x242,_0x4a8f68:0x228,_0x23c61a:0x2c7,_0xfbc2d:0x2c,_0x5d637d:0xa9,_0x4ce6a2:0x17,_0x4d5ae7:0x18c,_0x404dfa:0x46,_0x57f071:0x121,_0x22eda4:0x146,_0x1ba74c:0x22c,_0x382d5a:0x24d,_0x49a0c7:0xf0,_0x1e3514:0x1a4,_0x2136af:0x267,_0x515788:0x1db,_0x4a773c:0x1ac,_0x4bd970:0xe5,_0x4ecb51:0x78,_0x61ac84:0x1a6,_0x1c8c24:0x1c9,_0x496fac:0x1b3,_0x463e25:0x170,_0x47202f:0xa7},_0x240bc7={_0x11cf85:0x29},_0x4659f3={_0x127c7f:0x2e},_0x55f781=async()=>{const _0x555a4b=this[_0x5b6d0b(0x192,_0x2005a6._0x35d673,0x220,_0x2005a6._0x3724fc)]?await this[_0x315b0f(_0x2005a6._0x5c54c5,_0x2005a6._0x58db52,_0x2005a6._0x1090d2,_0x2005a6._0x2194e3)][_0x315b0f(0x2cf,0x14a,_0x2005a6._0x43de85,0x26c)](_0x58912d['signal']):void 0x0;function _0x5b6d0b(_0x4adf7e,_0x1a56f3,_0xa1fba1,_0xf3bbce){return _0x5ba7(_0x1a56f3- -_0x4659f3._0x127c7f,_0xf3bbce);}const _0x3c9f6f=this[_0x5b6d0b(_0x2005a6._0x318a93,0xa9,-0x2c,0x2d)][_0x5b6d0b(_0x2005a6._0x4672d1,_0x2005a6._0x3e246e,_0x2005a6._0x35bd93,_0x2005a6._0xa0f6e2)](this[_0x5b6d0b(_0x2005a6._0x54fef2,_0x2005a6._0x359955,0x10d,0x1bd)],_0x555a4b);if(!_0x3c9f6f)throw this[_0x315b0f(_0x2005a6._0x59a45b,0x1cd,_0x2005a6._0x307e3e,_0x2005a6._0x33180e)]();const _0x47c390=await this[_0x315b0f(0x19,_0x2005a6._0x252b32,_0x2005a6._0x4fede9,0x1a)]({'body':_0x58912d[_0x315b0f(0x27c,0x1ad,_0x2005a6._0x4c8547,_0x2005a6._0xc81a2)],'credential':_0x3c9f6f,'session':_0x555a4b,'stream':![]},{'accept':_0x58912d['accept']??_0x315b0f(_0x2005a6._0x26b6c0,_0x2005a6._0x4438dd,_0x2005a6._0x465a7a,0x42),'includeContentType':_0x58912d['method']===_0x5b6d0b(_0x2005a6._0x40af09,_0x2005a6._0x26eabd,0x22a,_0x2005a6._0x4a8f68)});function _0x315b0f(_0x365aff,_0x4b6418,_0x349213,_0x7ecb25){return _0x5ba7(_0x349213- -_0x240bc7._0x11cf85,_0x7ecb25);}return this[_0x315b0f(_0x2005a6._0x23c61a,0x179,0x1f4,0x17a)](''+this[_0x5b6d0b(_0x2005a6._0xfbc2d,_0x2005a6._0x5d637d,-_0x2005a6._0x4ce6a2,-0x1a)][_0x315b0f(_0x2005a6._0x4d5ae7,_0x2005a6._0x404dfa,_0x2005a6._0x57f071,_0x2005a6._0x22eda4)](this['baseUrl'],_0x555a4b)+_0x58912d[_0x5b6d0b(0x269,0x188,_0x2005a6._0x1ba74c,_0x2005a6._0x382d5a)],{'method':_0x58912d[_0x315b0f(_0x2005a6._0x49a0c7,_0x2005a6._0x1e3514,0xcf,0x18c)],'headers':_0x47c390,..._0x58912d[_0x315b0f(_0x2005a6._0x2136af,_0x2005a6._0x515788,0x1ce,_0x2005a6._0x4a773c)]!==void 0x0?{'body':JSON[_0x315b0f(_0x2005a6._0x4bd970,_0x2005a6._0x4ecb51,0x15d,0x188)](_0x58912d[_0x315b0f(_0x2005a6._0x61ac84,0x299,0x1ce,_0x2005a6._0x1c8c24)])}:{},'signal':_0x58912d[_0x5b6d0b(_0x2005a6._0x496fac,_0x2005a6._0x463e25,0x98,_0x2005a6._0x47202f)]});};function _0x5d2966(_0x28571a,_0x39f4ee,_0x420680,_0x13f05c){return _0x1818aa(_0x28571a-_0x101f08._0x392446,_0x13f05c,_0x420680-_0x101f08._0x4a9c72,_0x28571a-0x49);}return await this[_0x5d2966(0x6c,0x7a,-_0x1ddf4d._0x2acff5,0xbb)](_0x55f781,_0x58912d);}[_0x2d9e9f(0x319,0x22d,0x315,0x327)](_0x1a18f0,_0x592a7c){const _0x5b5a7e={_0x40a8be:0x19f,_0x239a33:0x184,_0x27b954:0x1d8,_0x2a3828:0x227,_0x464251:0x275,_0x33c9f7:0x161,_0x11e30a:0x21a,_0x2a8bde:0x150,_0x4dbe78:0x22c,_0x4e7aab:0x39c,_0x3286f6:0x2ef},_0x2ba02a={_0x3dbb4e:0x1cc,_0x313558:0x1c2},_0x5cca47=_0x1a18f0?.['headers'][_0x3475c3(-0x1f0,-0x1cc,-0x20d,-_0x5b5a7e._0x40a8be)](_0x3475c3(-0x1d3,-_0x5b5a7e._0x239a33,-_0x5b5a7e._0x27b954,-0x168));function _0x3475c3(_0x930606,_0x5d6f6d,_0x2d6575,_0x43f28b){return _0x2d9e9f(_0x930606-0x161,_0x5d6f6d,_0x930606- -0x5c6,_0x43f28b-0xbf);}if(_0x5cca47){const _0x2745a5=Number(_0x5cca47);if(Number[_0x3475c3(-_0x5b5a7e._0x2a3828,-0x302,-_0x5b5a7e._0x464251,-0x279)](_0x2745a5)&&_0x2745a5>=0x0)return _0x2745a5*0x3e8;const _0x559a01=Date[_0x3475c3(-_0x5b5a7e._0x33c9f7,-_0x5b5a7e._0x11e30a,-_0x5b5a7e._0x2a8bde,-_0x5b5a7e._0x4dbe78)](_0x5cca47);if(Number['isFinite'](_0x559a01))return Math[_0x3475c3(-0x2ed,-0x3d6,-_0x5b5a7e._0x4e7aab,-_0x5b5a7e._0x3286f6)](0x0,_0x559a01-Date['now']());}function _0x4a6360(_0x38b89c,_0x2584a6,_0x2747e2,_0x998add){return _0x2d9e9f(_0x38b89c-_0x2ba02a._0x3dbb4e,_0x998add,_0x2747e2-0x77,_0x998add-_0x2ba02a._0x313558);}const _0x4dc912=DEFAULT_RETRY_DELAY_MS*0x2**_0x592a7c;if(_0x4dc912<RETRY_DELAY_STEP_CAP_MS)return _0x4dc912;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x592a7c-0x5);}[_0x1818aa(-0x32,-0x135,-0x178,-0xcf)](_0x3127a2){const _0x230542={_0x530f86:0x3ea,_0x2db253:0xd};function _0x2af86e(_0x32e7f0,_0x203d03,_0x138213,_0x1baf38){return _0x2d9e9f(_0x32e7f0-0x52,_0x32e7f0,_0x1baf38- -_0x230542._0x530f86,_0x1baf38-_0x230542._0x2db253);}return RETRYABLE_HTTP_STATUSES[_0x2af86e(-0x136,-0x13e,-0x3d,-0x68)](_0x3127a2['status']);}[_0x2d9e9f(0x406,0x487,0x477,0x48d)](_0x391bf5){return!isAbortError(_0x391bf5)&&_0x391bf5 instanceof TypeError;}[_0x1818aa(0x10,-0x13f,-0xdd,-0x8d)](_0x1309a6){const _0x584f0a={_0x27150b:0x616,_0x4fd5b1:0x5ea};function _0x49496a(_0x4a416d,_0x1b56a0,_0x40b6ea,_0x1f8da9){return _0x1818aa(_0x4a416d-0x16c,_0x40b6ea,_0x40b6ea-0x33,_0x1f8da9-0x546);}return this[_0x49496a(_0x584f0a._0x27150b,0x5a1,0x5ac,_0x584f0a._0x4fd5b1)](_0x1309a6)||isRetryableProviderStreamEventError(_0x1309a6);}async[_0x2d9e9f(0x34f,0x3fe,0x319,0x3df)](_0x8ae81,_0x3623ba){const _0x2dbf5f={_0x5f163c:0x114};throwIfAborted(_0x3623ba),await new Promise((_0x4f0508,_0x591d71)=>{const _0x561b4f={_0x8d76a9:0x26b};let _0x229214=![];const _0x4797a1=addAbortListener(_0x3623ba,()=>{if(_0x229214)return;_0x229214=!![];function _0x5404be(_0x25aa7d,_0x53337a,_0x2dec89,_0x1483a1){return _0x5ba7(_0x2dec89- -_0x561b4f._0x8d76a9,_0x53337a);}clearTimeout(_0x53d85a),_0x591d71(toAbortError(_0x3623ba?.[_0x5404be(-0xf6,-_0x2dbf5f._0x5f163c,-0x2c,-0x3d)]));}),_0x53d85a=setTimeout(()=>{_0x229214=!![],_0x4797a1(),_0x4f0508();},_0x8ae81);}),throwIfAborted(_0x3623ba);}async[_0x2d9e9f(0x39a,0x49a,0x3f6,0x48f)](_0x338321,_0x45b679={}){const _0x25d3af={_0x7613e2:0xed,_0xd00756:0xb,_0x46dd91:0x127,_0x23343b:0x1a2,_0x22e351:0x1f9,_0x1b1031:0xc4,_0x38df44:0xa9,_0x5c346b:0x1d1,_0x2ba34f:0x15a,_0x1aff6f:0x207,_0x13a359:0x204,_0x4fca68:0x101,_0x3326d1:0x21a,_0x2af56a:0x19f,_0x11564c:0x2f,_0x532b08:0x87,_0x581d6c:0x68,_0x5d374c:0x227,_0xbf0ea8:0xc8,_0x50d324:0x149,_0x388240:0x23d,_0x13ac8d:0x203},_0x44764b={_0x38a261:0x127},_0x268528={_0x101656:0x18f};function _0x4ac48e(_0x45c3b9,_0x3b4d41,_0x5e6c0e,_0x4114ba){return _0x1818aa(_0x45c3b9-_0x268528._0x101656,_0x4114ba,_0x5e6c0e-0xaf,_0x45c3b9- -0x18f);}const {signal:_0x1dd3a1}=_0x45b679;let _0x59c091=![];function _0x54ca14(_0x33b5f9,_0x5669a6,_0x4ad746,_0x4da866){return _0x2d9e9f(_0x33b5f9-_0x44764b._0x38a261,_0x33b5f9,_0x4da866- -0x45e,_0x4da866-0x4f);}for(let _0x115286=0x0;_0x115286<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x115286+=0x1){throwIfAborted(_0x1dd3a1);try{const _0x2eed48=await _0x338321();if(_0x2eed48[_0x4ac48e(-0x11b,-0x4e,-0x68,-0x179)]===0x191&&this['sessionManager']&&!_0x59c091){_0x59c091=!![],this[_0x54ca14(-0x30,-_0x25d3af._0x7613e2,_0x25d3af._0xd00756,-0xa7)][_0x4ac48e(-_0x25d3af._0x46dd91,-_0x25d3af._0x23343b,-0xf6,-_0x25d3af._0x22e351)]();continue;}if(!this[_0x54ca14(-_0x25d3af._0x1b1031,-_0x25d3af._0x38df44,-_0x25d3af._0x5c346b,-_0x25d3af._0x2ba34f)](_0x2eed48)||_0x115286===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x2eed48;const _0x2b9361=this[_0x4ac48e(-0x24d,-_0x25d3af._0x1aff6f,-_0x25d3af._0x13a359,-0x28a)](_0x2eed48,_0x115286);await this[_0x54ca14(-_0x25d3af._0x4fca68,-_0x25d3af._0x3326d1,-_0x25d3af._0x2af56a,-0x145)](_0x2b9361,_0x1dd3a1);}catch(_0x2a602b){if(!this[_0x54ca14(-_0x25d3af._0x11564c,-0xcd,-_0x25d3af._0x532b08,0x19)](_0x2a602b)||_0x115286===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x2a602b;const _0x5eca29=this[_0x54ca14(-_0x25d3af._0x581d6c,-_0x25d3af._0x5d374c,-_0x25d3af._0xbf0ea8,-_0x25d3af._0x50d324)](void 0x0,_0x115286);await this['waitForRetry'](_0x5eca29,_0x1dd3a1);}}throw new Error(_0x4ac48e(-0x188,-0x14e,-_0x25d3af._0x388240,-_0x25d3af._0x13ac8d));}[_0x2d9e9f(0x4ae,0x497,0x401,0x452)](){const _0x313699={_0x5a8308:0x47,_0x317386:0x6a},_0x34a0e7={_0x1a3f15:0x112,_0xeb2333:0x1e0,_0x329802:0x18a};function _0x1cd324(_0x2f0172,_0x55bc19,_0x2b0db8,_0x49ab7f){return _0x2d9e9f(_0x2f0172-_0x34a0e7._0x1a3f15,_0x55bc19,_0x2b0db8- -_0x34a0e7._0xeb2333,_0x49ab7f-_0x34a0e7._0x329802);}return this[_0x1cd324(_0x313699._0x5a8308,0x1dd,0x112,_0x313699._0x317386)]['createMissingCredentialError']();}async[_0x2d9e9f(0x254,0x29e,0x306,0x232)](_0x279254,_0x543622){const _0x4428f5={_0x404a0d:0x3a3,_0x53a521:0x2f7,_0x3aefc0:0x2ca,_0xf45b55:0x4a4,_0x22e6c4:0x3b7,_0x414a1d:0x388},_0x3c2b6d={_0x3ff8f8:0x55,_0x8ab461:0xb1,_0x5764f6:0x1c0},_0x1358f6={_0x3e0550:0x100,_0x434764:0x93};function _0x4946df(_0x2b6b77,_0x139c62,_0x3d317d,_0x26d8d2){return _0x2d9e9f(_0x2b6b77-_0x1358f6._0x3e0550,_0x139c62,_0x3d317d-_0x1358f6._0x434764,_0x26d8d2-0xb);}function _0x451adb(_0x463b85,_0x583914,_0x24e7a0,_0x4e65ce){return _0x2d9e9f(_0x463b85-_0x3c2b6d._0x3ff8f8,_0x4e65ce,_0x583914-_0x3c2b6d._0x8ab461,_0x4e65ce-_0x3c2b6d._0x5764f6);}return await this[_0x451adb(0x3e1,_0x4428f5._0x404a0d,_0x4428f5._0x53a521,_0x4428f5._0x3aefc0)][_0x451adb(_0x4428f5._0xf45b55,_0x4428f5._0x22e6c4,0x2e5,_0x4428f5._0x414a1d)](_0x279254,_0x543622);}[_0x1818aa(0x4c,-0xfe,-0xf4,-0x58)](_0x19c778){const _0x4420f6={_0x4b1805:0x18d,_0x3eaba6:0x3e3,_0x506644:0x3a5},_0x571038={_0x3661ea:0x1a5};function _0x158136(_0x59acc,_0x275181,_0x4ed800,_0x39346f){return _0x1818aa(_0x59acc-_0x571038._0x3661ea,_0x39346f,_0x4ed800-0x1f1,_0x4ed800-0x26e);}function _0x1ffa8c(_0x16cb91,_0x4871e2,_0x23a394,_0x3fd91d){return _0x1818aa(_0x16cb91-0x151,_0x16cb91,_0x23a394-0x92,_0x3fd91d-0x3a6);}return this[_0x158136(0x1a8,0x248,_0x4420f6._0x4b1805,0x103)][_0x1ffa8c(0x315,_0x4420f6._0x3eaba6,_0x4420f6._0x506644,0x34e)](_0x19c778);}async[_0x1818aa(0xe4,0x11b,0x193,0xb6)](_0x2cc158){const _0x203303={_0x39ec02:0x117,_0x4c675a:0x135},_0x55fbec={_0x4d7002:0xde};function _0x100ead(_0x5bf141,_0x580b70,_0xbe7cc2,_0x4b5f4d){return _0x1818aa(_0x5bf141-_0x55fbec._0x4d7002,_0x5bf141,_0xbe7cc2-0xa4,_0x580b70-0x61);}return await this['providerAdapter'][_0x100ead(0x1d2,_0x203303._0x39ec02,_0x203303._0x4c675a,0x67)](_0x2cc158);}[_0x2d9e9f(0x333,0x49d,0x3e9,0x364)](_0x4cb755){const _0x3b8396={_0x3527c7:0x5ff},_0x5cf0f3={_0x1a0ce2:0x14b},_0x5ebfbf={_0x28f90f:0x56b};function _0x5032a4(_0x591d58,_0x2c6418,_0x4ecb93,_0x470c13){return _0x1818aa(_0x591d58-0xc2,_0x2c6418,_0x4ecb93-0x2e,_0x470c13-_0x5ebfbf._0x28f90f);}function _0x60c74e(_0x2780f9,_0x37b301,_0x2475af,_0x59f0e9){return _0x1818aa(_0x2780f9-_0x5cf0f3._0x1a0ce2,_0x59f0e9,_0x2475af-0x8,_0x2475af-0x325);}const _0x3f086f=this[_0x5032a4(0x68a,0x68b,_0x3b8396._0x3527c7,0x5bb)]['get'](_0x4cb755);if(!_0x3f086f)throw new Error(_0x5032a4(0x4cc,0x512,0x5e9,0x51b)+_0x4cb755);return _0x3f086f;}async[_0x1818aa(-0xb8,-0x6b,0x93,0xe)](_0x10a40a,_0x212dc1){const _0x5b8383={_0x2d3a24:0x190,_0x485aad:0x2e9,_0x172f7a:0x1c2,_0x4b5427:0x243,_0x385c2a:0x174,_0x4b004e:0x2a,_0x243927:0x187,_0x5ef5db:0x244,_0x5c759a:0x200,_0x1fd024:0x86,_0x377233:0x12c,_0x530f4b:0x31,_0x345b55:0x249,_0xda92e2:0x30a,_0x165d70:0x144,_0x4a9e31:0x146},_0x5b5b14={_0x2e60b0:0x601,_0x2f7f81:0x39},_0x3a9944={_0x5e6c5b:0x9a,_0x5768da:0x4};function _0x1c3eac(_0x27be2c,_0x23f456,_0x50d6ed,_0x4b1d79){return _0x1818aa(_0x27be2c-_0x3a9944._0x5e6c5b,_0x4b1d79,_0x50d6ed-_0x3a9944._0x5768da,_0x27be2c- -0x18);}const _0x36b835=toModelRequest(_0x10a40a),_0x546642=await prepareProviderRequest(_0x36b835,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x212dc1}),_0x48d0f1=toChatRequest(_0x546642[_0x2d3da2(-_0x5b8383._0x2d3a24,-0x266,-0x214,-_0x5b8383._0x485aad)]),_0x42ad90=this['providerAdapter'][_0x2d3da2(-_0x5b8383._0x172f7a,-0x254,-_0x5b8383._0x4b5427,-_0x5b8383._0x385c2a)](this[_0x1c3eac(-0xa3,_0x5b8383._0x4b004e,-_0x5b8383._0x243927,-0x5d)],_0x546642['session']);function _0x2d3da2(_0x37d7f2,_0x277642,_0x59f32e,_0x3d8b36){return _0x2d9e9f(_0x37d7f2-0x101,_0x277642,_0x59f32e- -_0x5b5b14._0x2e60b0,_0x3d8b36-_0x5b5b14._0x2f7f81);}if(!_0x42ad90)throw this[_0x2d3da2(-0x126,-_0x5b8383._0x5ef5db,-_0x5b8383._0x5c759a,-0x286)]();return{'baseUrl':this['providerAdapter'][_0x1c3eac(-_0x5b8383._0x1fd024,-_0x5b8383._0x377233,0x29,-_0x5b8383._0x530f4b)](this['baseUrl'],_0x546642[_0x2d3da2(-0x352,-_0x5b8383._0x345b55,-_0x5b8383._0xda92e2,-0x306)]),'credential':_0x42ad90,'request':_0x48d0f1,'session':_0x546642[_0x1c3eac(-0xf4,-_0x5b8383._0x165d70,-0x139,-_0x5b8383._0x4a9e31)]};}['applyModelDefaults'](_0x33c12d){const _0x47503a={_0xb30822:0x1b5,_0x1fb0d3:0x10d,_0x27c080:0x16a,_0x4f1d28:0x252,_0x2d803a:0x252,_0x1dfc21:0x16a,_0x3dfb5c:0x119},_0xa6f4d4={_0x4a1663:0x334},_0x52a33f={_0x5085f8:0x9b,_0x4d98e9:0x222};function _0x41c0b6(_0x263596,_0x354953,_0xbfd44c,_0x1da4c1){return _0x1818aa(_0x263596-_0x52a33f._0x5085f8,_0x354953,_0xbfd44c-0x83,_0xbfd44c-_0x52a33f._0x4d98e9);}function _0x9020d7(_0x44bcad,_0x38a66a,_0x176401,_0x236be8){return _0x2d9e9f(_0x44bcad-0x11,_0x44bcad,_0x176401- -_0xa6f4d4._0x4a1663,_0x236be8-0x1eb);}return{...structuredClone(_0x33c12d),..._0x33c12d[_0x41c0b6(_0x47503a._0xb30822,_0x47503a._0x1fb0d3,_0x47503a._0x27c080,_0x47503a._0x4f1d28)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x41c0b6(_0x47503a._0x2d803a,0x179,_0x47503a._0x1dfc21,_0x47503a._0x3dfb5c)])}:{}};}async[_0x1818aa(-0x156,-0x11e,0x8,-0xcc)](_0x3dcb0c,_0x516748,_0x45cf03,_0x5954e8={},_0x296dfb=!![]){const _0x312e0e={_0xc761d0:0xb6,_0x50ae8b:0xdb},_0x5d2394={_0x176e58:0xbb,_0x195788:0x134,_0x56d062:0xef,_0x321f27:0x45,_0x2ea037:0x97,_0x3faa98:0x45,_0xcbef19:0x24,_0x523100:0xa2,_0x52b49a:0x14b,_0x59af6b:0xc7,_0x407995:0x133,_0x1af340:0x7,_0x2c22f9:0xd5,_0x270839:0xde,_0xa94b5:0xa0,_0x4a8e1b:0x46,_0x4910d1:0x196,_0x4f2688:0xe8,_0x327173:0xb3,_0x1695b5:0x25e,_0x35b439:0x264,_0x528d06:0x86,_0xb30bfd:0x81,_0x23bbc3:0x195,_0x5be7f4:0x1e1,_0x2c1f9b:0xc1,_0x47c46b:0x145,_0x1a56b8:0x2e7,_0x23d59f:0x234,_0x4d6cd4:0x1bb,_0x308e91:0x16d,_0x48de78:0x168,_0x3ffa57:0x17e},_0x5042b6={_0x53c381:0x130},_0x3a6799={_0x12c37c:0x1c0};function _0x42966d(_0x326d1f,_0xb8bed6,_0x18b798,_0x4ec115){return _0x2d9e9f(_0x326d1f-_0x3a6799._0x12c37c,_0x4ec115,_0x326d1f- -0x333,_0x4ec115-0x125);}const {signal:_0x5bda2e}=_0x5954e8,_0x59a364=async()=>{function _0x4c2ec1(_0x3f3bbf,_0x1fd906,_0x38516c,_0x5ab305){return _0x5ba7(_0x38516c- -0x3c,_0x3f3bbf);}const _0xf3d8d1=await this['prepareChatRequest'](_0x3dcb0c,_0x5bda2e);let _0x44f40f;try{_0x44f40f=_0x516748[_0x4c2ec1(0x1d7,0x1f5,0x142,0xe4)](_0xf3d8d1['request']);}catch(_0x364b4b){if(_0x364b4b instanceof Error)throw new ProviderRequestConstructionError(_0x364b4b['message']);throw _0x364b4b;}if(!_0x44f40f['path'])throw new ProviderRequestConstructionError(_0x47126b(_0x5d2394._0x176e58,_0x5d2394._0x195788,_0x5d2394._0x56d062,0xc6)+_0x516748['id']+_0x47126b(_0x5d2394._0x321f27,0x11f,-_0x5d2394._0x2ea037,_0x5d2394._0x321f27));function _0x47126b(_0x6dae0,_0x2e159d,_0x43b3a9,_0x2ed40e){return _0x5ba7(_0x6dae0- -_0x5042b6._0x53c381,_0x2ed40e);}const _0x5d33e6=await this[_0x47126b(-_0x5d2394._0x3faa98,0x4a,-0xb,_0x5d2394._0xcbef19)]({'request':_0xf3d8d1[_0x47126b(_0x5d2394._0x523100,0xba,0x15e,_0x5d2394._0x52b49a)],'body':_0x44f40f[_0x47126b(_0x5d2394._0x59af6b,_0x5d2394._0x407995,0x194,_0x5d2394._0x1af340)],'credential':_0xf3d8d1[_0x4c2ec1(0xe1,_0x5d2394._0x2c22f9,_0x5d2394._0x270839,0x151)],'session':_0xf3d8d1[_0x4c2ec1(-0x1d,0x13e,_0x5d2394._0xa94b5,-_0x5d2394._0x1af340)],'stream':_0x45cf03},{'accept':_0x44f40f[_0x47126b(0x41,_0x5d2394._0x4a8e1b,0xe1,0xdf)]??(_0x45cf03?_0x4c2ec1(_0x5d2394._0x4910d1,0x47,_0x5d2394._0x4f2688,0x194):'application/json'),'includeContentType':_0x44f40f[_0x47126b(0xc7,_0x5d2394._0x327173,0x93,-0x20)]!==void 0x0});for(const [_0x427c3b,_0x66dcee]of Object[_0x4c2ec1(_0x5d2394._0x1695b5,0xff,0x184,_0x5d2394._0x35b439)](_0x44f40f[_0x4c2ec1(0x19e,_0x5d2394._0x528d06,0xc5,0x8e)]??{})){_0x5d33e6[_0x4c2ec1(0x115,_0x5d2394._0xb30bfd,0xc3,_0x5d2394._0x23bbc3)](_0x427c3b,_0x66dcee);}return this[_0x4c2ec1(0x1c1,0x17f,_0x5d2394._0x5be7f4,0x163)](''+_0xf3d8d1['baseUrl']+_0x44f40f[_0x47126b(0x86,0x115,_0x5d2394._0x2c1f9b,_0x5d2394._0x47c46b)],{'method':_0x4c2ec1(_0x5d2394._0x1a56b8,0x1bb,_0x5d2394._0x23d59f,0x254),'headers':_0x5d33e6,..._0x44f40f[_0x4c2ec1(0x1af,0x18c,_0x5d2394._0x4d6cd4,_0x5d2394._0x308e91)]!==void 0x0?{'body':JSON['stringify'](_0x44f40f[_0x47126b(0xc7,_0x5d2394._0x48de78,_0x5d2394._0x3ffa57,0xd2)])}:{},'signal':_0x5bda2e});};return _0x296dfb?await this[_0x42966d(0xc3,_0x312e0e._0xc761d0,0x1ac,_0x312e0e._0x50ae8b)](_0x59a364,_0x5954e8):await _0x59a364();}async*['streamHttpSurface'](_0x6d828,_0x2fc548,_0x1fdb14={}){const _0x39dd14={_0x48ecd6:0x44f,_0x25ee11:0x58f,_0x13a7b3:0x663,_0x5cf039:0x67a,_0x2e8ef4:0x541,_0x47e667:0x4d8,_0x351f51:0x51a,_0x3652a3:0x5d1,_0x22605a:0x41c,_0x45edfd:0x488,_0x40646e:0x26b,_0x40bb3c:0x2c6,_0x2e452b:0x398,_0x17a0e7:0x3bb,_0x5c7bb9:0x2a4,_0x331812:0x2fd,_0x458934:0x31a,_0x5ec838:0x338,_0x532f4c:0x445,_0x54ca37:0x3c1,_0x5d513d:0x48e,_0x27ef25:0x481,_0x28c8c1:0x3d5,_0x5233de:0x46d,_0xd34a1b:0x479,_0x3c69b7:0x40b,_0x13c740:0x3c0,_0x1d48d2:0x3b3,_0x7268f2:0x4f0,_0x248810:0x40e,_0xa744f6:0x4a6,_0xeb823f:0x3e8,_0x556da2:0x3f0,_0x5d8d28:0x461},_0x1a7e0a={_0x1e5ec5:0x2e,_0x5907b9:0xc4,_0x3fac1c:0xef},_0x1a7afe={_0x58be90:0x18c,_0x24c869:0x88},{signal:_0x282e05}=_0x1fdb14;let _0x543c97=![];function _0x246f95(_0x13be3e,_0x2815c8,_0x2d72cf,_0x1dc816){return _0x1818aa(_0x13be3e-_0x1a7afe._0x58be90,_0x2d72cf,_0x2d72cf-_0x1a7afe._0x24c869,_0x2815c8-0x51b);}function _0x2e0cea(_0x34702f,_0x5d4f07,_0x42a47d,_0x38a211){return _0x2d9e9f(_0x34702f-_0x1a7e0a._0x1e5ec5,_0x34702f,_0x38a211- -_0x1a7e0a._0x5907b9,_0x38a211-_0x1a7e0a._0x3fac1c);}for(let _0x16dad7=0x0;_0x16dad7<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x16dad7+=0x1){let _0x3e34a4=![];try{const _0x43b845=await this[_0x246f95(0x52c,_0x39dd14._0x48ecd6,0x3e2,0x4e4)](_0x6d828,_0x2fc548,!![],_0x1fdb14,![]);if(_0x43b845[_0x246f95(0x623,_0x39dd14._0x25ee11,_0x39dd14._0x13a7b3,_0x39dd14._0x5cf039)]===0x191&&this[_0x246f95(0x46f,0x4ff,_0x39dd14._0x2e8ef4,0x5c0)]&&!_0x543c97){_0x543c97=!![],this[_0x246f95(0x502,0x4ff,_0x39dd14._0x47e667,_0x39dd14._0x351f51)]['invalidate']();continue;}if(!_0x43b845['ok'])throw await this[_0x246f95(0x5fd,_0x39dd14._0x3652a3,0x539,0x616)](_0x43b845);const _0x5623dc=_0x2fc548[_0x246f95(_0x39dd14._0x22605a,0x4f0,0x4aa,_0x39dd14._0x45edfd)]?.(_0x6d828);if(!_0x5623dc?.[_0x2e0cea(0x2c8,0x204,_0x39dd14._0x40646e,_0x39dd14._0x40bb3c)])throw new Error(_0x2e0cea(0x289,_0x39dd14._0x2e452b,0x361,0x342)+_0x2fc548['id']+_0x2e0cea(_0x39dd14._0x17a0e7,_0x39dd14._0x5c7bb9,_0x39dd14._0x331812,_0x39dd14._0x458934));for await(const _0x326162 of iterateSseEvents(_0x43b845,_0x282e05)){const _0x12e275=_0x5623dc[_0x2e0cea(0x39d,0x26b,_0x39dd14._0x5ec838,_0x39dd14._0x40bb3c)](_0x326162);for(const _0x4424de of _0x12e275){_0x3e34a4=!![],yield _0x4424de;}}yield{'type':'done','response':_0x5623dc[_0x246f95(0x3af,_0x39dd14._0x532f4c,0x474,_0x39dd14._0x54ca37)]()};return;}catch(_0x131c49){if(_0x3e34a4||!this[_0x246f95(0x3a5,_0x39dd14._0x5d513d,0x4d7,_0x39dd14._0x27ef25)](_0x131c49)||_0x16dad7===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x131c49;const _0x504c08=this['getRetryDelayMs'](void 0x0,_0x16dad7),_0x2e6230={'type':_0x246f95(_0x39dd14._0x28c8c1,_0x39dd14._0x5233de,0x4ad,_0x39dd14._0xd34a1b),'attempt':_0x16dad7+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x131c49 instanceof Error?_0x131c49['message']:String(_0x131c49),'delayMs':_0x504c08,'reason':this[_0x2e0cea(_0x39dd14._0x3c69b7,_0x39dd14._0x13c740,0x2e1,_0x39dd14._0x1d48d2)](_0x131c49)?_0x246f95(_0x39dd14._0x7268f2,0x466,0x42d,0x399):_0x246f95(_0x39dd14._0x248810,_0x39dd14._0xa744f6,_0x39dd14._0xeb823f,_0x39dd14._0x556da2)};yield _0x2e6230,await this[_0x246f95(0x475,_0x39dd14._0x5d8d28,0x3b1,0x3d7)](_0x504c08,_0x282e05);}}}async*[_0x2d9e9f(0x36f,0x2d4,0x2db,0x2c7)](_0x3448aa,_0x1db47e,_0x58c908){const _0x5632e={_0x336883:0x19c,_0x195fb2:0x21b,_0xeb042f:0x181,_0x476248:0x24b,_0xf476f2:0xc3,_0x5e1cfd:0x14,_0xe5e934:0xb7,_0x4652ff:0x88,_0x1534cd:0x201,_0x1dbc13:0x1f5,_0xf5aa3d:0x8,_0x1ae8b5:0xac,_0x33e6a1:0xae,_0x353628:0x20,_0x4b7dfc:0x15,_0x1b535e:0x42,_0x4f64c4:0xd2,_0x2140d6:0x190,_0x3ce7fd:0x9,_0x9e3258:0xc0,_0x3ef2a9:0x194,_0x209853:0x20c,_0x3244c2:0x1ac,_0x45a364:0xdb,_0x1cf209:0xf,_0x4e7259:0x58,_0x2b4379:0x190,_0x525c92:0x16c,_0x2c035a:0x21b,_0x5214f2:0x67,_0x5a35e8:0x295,_0x2b73e4:0x22c,_0x395d27:0x1e6,_0x20c664:0x36,_0x1033c1:0x2,_0x57513f:0x7e,_0x448eb4:0x245,_0x582bd1:0x2b5,_0x178bd9:0x338,_0x353b2d:0xcf,_0x6e3573:0x296,_0x9a418f:0x1b8,_0x3311e4:0x273,_0x2250a9:0x235,_0x44f275:0x23c,_0x50d644:0x28e,_0x47cca1:0x285,_0xda8821:0x298,_0x27724d:0x123,_0x211a63:0x251,_0x12d68f:0x19c,_0x4d3a0f:0x30e,_0x2dc815:0x294,_0x4af418:0x205,_0x144cbd:0x1e0,_0x331c7e:0x200,_0x445755:0x1ff,_0x2b27c6:0x6c,_0x4505b4:0x176,_0x29429f:0x90,_0x1d76da:0x160,_0x431099:0x17d,_0x291e71:0x1f,_0x326cad:0x20e,_0x10c655:0x170,_0x1e0033:0xf8},_0x2c5f46={_0x2f59af:0x1a9},_0x13ac9b=await this[_0x337927(-_0x5632e._0x336883,-_0x5632e._0x195fb2,-_0x5632e._0xeb042f,-_0x5632e._0x476248)](_0x3448aa,_0x58c908),_0x3ebece=_0x1db47e['createRequest'](_0x13ac9b[_0x2a4686(-_0x5632e._0xf476f2,_0x5632e._0x5e1cfd,_0x5632e._0xe5e934,-_0x5632e._0x4652ff)]),_0x1f2aea=_0x1db47e['createStreamParser']?.(_0x3448aa);if(!_0x1f2aea?.[_0x337927(-0x215,-0x268,-0x1d7,-0x28b)])throw new Error(_0x337927(-0x177,-_0x5632e._0x1534cd,-0x24b,-_0x5632e._0x1dbc13)+_0x1db47e['id']+'\x20cannot\x20parse\x20WebSocket\x20events');const _0x22f028=_0x3ebece['url']??(_0x3ebece[_0x2a4686(-0x9a,-_0x5632e._0xf5aa3d,_0x5632e._0x1ae8b5,_0x5632e._0x33e6a1)]?(''+_0x13ac9b[_0x2a4686(0x16,_0x5632e._0x353628,-_0x5632e._0x4b7dfc,-0xaf)]+_0x3ebece[_0x2a4686(-0x38,-0x8,_0x5632e._0x1b535e,-0xd5)])[_0x2a4686(_0x5632e._0x4f64c4,0xa8,0x169,_0x5632e._0x2140d6)](/^http:/,_0x2a4686(-0x1e,-0xa0,-0x6,-0x129))[_0x2a4686(0x184,0xa8,-_0x5632e._0x3ce7fd,_0x5632e._0x9e3258)](/^https:/,_0x337927(-0x10f,-0x1f4,-0x1e8,-0x121)):void 0x0);if(!_0x22f028)throw new ProviderRequestConstructionError(_0x337927(-0x177,-_0x5632e._0x3ef2a9,-0xd6,-_0x5632e._0x209853)+_0x1db47e['id']+_0x2a4686(-_0x5632e._0x3244c2,-_0x5632e._0x45a364,-_0x5632e._0x1cf209,-_0x5632e._0x4e7259));const _0x3cd327=await this['createHeaders']({'request':_0x13ac9b[_0x337927(-_0x5632e._0x2b4379,-_0x5632e._0x525c92,-_0x5632e._0x2c035a,-0x144)],'body':_0x3ebece[_0x2a4686(0x2b,-0x3c,_0x5632e._0x5214f2,0x1d)],'credential':_0x13ac9b[_0x337927(-0x248,-_0x5632e._0x5a35e8,-_0x5632e._0x2b73e4,-_0x5632e._0x395d27)],'session':_0x13ac9b[_0x2a4686(-_0x5632e._0x20c664,-0xe2,-0x19d,-0x20)],'stream':!![]},{'accept':_0x3ebece['accept']??'application/json','includeContentType':![]});for(const [_0xe2f1f7,_0x174d77]of Object[_0x2a4686(-0x89,_0x5632e._0x1033c1,_0x5632e._0x57513f,-0x69)](_0x3ebece[_0x337927(-0x261,-0x2dc,-0x233,-_0x5632e._0x448eb4)]??{})){_0x3cd327[_0x337927(-0x263,-0x310,-_0x5632e._0x582bd1,-_0x5632e._0x178bd9)](_0xe2f1f7,_0x174d77);}function _0x2a4686(_0x36164e,_0x561531,_0x44313c,_0x775043){return _0x1818aa(_0x36164e-0xe7,_0x36164e,_0x44313c-0x135,_0x561531- -0x6);}_0x3cd327[_0x337927(-0x1ba,-_0x5632e._0x353b2d,-_0x5632e._0x6e3573,-0x231)]('accept');function _0x337927(_0x1ad1a7,_0x5457d9,_0x2286ad,_0x14f172){return _0x1818aa(_0x1ad1a7-0x1da,_0x5457d9,_0x2286ad-_0x2c5f46._0x2f59af,_0x1ad1a7- -0x1aa);}const _0x44b9fd=this[_0x337927(-_0x5632e._0x9a418f,-_0x5632e._0x3311e4,-_0x5632e._0x2250a9,-_0x5632e._0x44f275)]({'headers':Object[_0x337927(-_0x5632e._0x50d644,-_0x5632e._0x47cca1,-_0x5632e._0xda8821,-0x30a)](_0x3cd327[_0x337927(-0x1a2,-_0x5632e._0x27724d,-0x267,-0x1ce)]()),'url':_0x22f028});try{throwIfAborted(_0x58c908);_0x44b9fd[_0x337927(-_0x5632e._0x211a63,-0x2a0,-_0x5632e._0x12d68f,-_0x5632e._0x4d3a0f)]!==WebSocket[_0x337927(-_0x5632e._0x2dc815,-0x23c,-_0x5632e._0x4af418,-0x2df)]&&await waitForWebSocketOpen(_0x44b9fd,_0x58c908);throwIfAborted(_0x58c908);_0x3ebece[_0x337927(-_0x5632e._0x144cbd,-0x2be,-0x1d7,-0x191)]!==void 0x0&&_0x44b9fd[_0x337927(-_0x5632e._0x331c7e,-0x264,-0x1ff,-_0x5632e._0x445755)](JSON['stringify'](_0x3ebece[_0x337927(-_0x5632e._0x144cbd,-0x25a,-0x12e,-0x2bf)]));for await(const _0x52d92b of iterateWebSocketMessages(_0x44b9fd,_0x58c908)){yield*_0x1f2aea[_0x2a4686(0x44,-0x71,-_0x5632e._0x2b27c6,-0x5c)](_0x52d92b);if(_0x1f2aea[_0x337927(-0x232,-0x239,-_0x5632e._0x4505b4,-0x220)]?.())break;}yield{'type':_0x2a4686(-0x1b,-_0x5632e._0x29429f,-_0x5632e._0x1d76da,-_0x5632e._0x431099),'response':_0x1f2aea['finish']()};}finally{_0x44b9fd[_0x2a4686(_0x5632e._0x291e71,-0xad,-0x9b,-0x63)]===WebSocket['OPEN']&&_0x44b9fd[_0x337927(-0x191,-0x150,-0x25f,-_0x5632e._0x326cad)](0x3e8,_0x58c908?.['aborted']?_0x2a4686(-_0x5632e._0x10c655,-_0x5632e._0x1e0033,-0x144,-0x38):'completed');}}};async function createHttpError(_0x54bb41){const _0x2717b6={_0x1b7bc8:0x236,_0x4e864f:0x2de,_0x2069da:0x357,_0x8bc690:0x2c8,_0x3cf86a:0x272,_0x25da2a:0x325,_0x3b1e76:0x2d1,_0x5588ab:0x343},_0x291dc6={_0x448f15:0x10c},_0x2e81ea={_0x5ef203:0x19a};function _0x7e404a(_0x542e48,_0x38c8b2,_0x419deb,_0xab08e7){return _0x2d9e9f(_0x542e48-0x19d,_0x419deb,_0xab08e7- -0x108,_0xab08e7-_0x2e81ea._0x5ef203);}function _0x409a4f(_0x1e8e5b,_0x4402a2,_0xea694e,_0x4a633c){return _0x2d9e9f(_0x1e8e5b-_0x291dc6._0x448f15,_0x4a633c,_0x1e8e5b- -0x97,_0x4a633c-0xaa);}const _0x1e1fd7=await _0x54bb41[_0x7e404a(_0x2717b6._0x1b7bc8,0x337,0x34d,_0x2717b6._0x4e864f)](),_0x402080=_0x1e1fd7[_0x7e404a(0x32c,_0x2717b6._0x2069da,0x2a8,0x350)]()||_0x54bb41['statusText']||'Unknown\x20provider\x20error';return new Error(_0x7e404a(_0x2717b6._0x8bc690,_0x2717b6._0x3cf86a,0x363,_0x2717b6._0x25da2a)+_0x54bb41[_0x7e404a(_0x2717b6._0x3b1e76,0x28a,_0x2717b6._0x5588ab,0x33f)]+':\x20'+_0x402080);}var AnthropicProviderAdapter=class{[_0x1818aa(-0x87,-0x2c,-0xde,0xf)];[_0x1818aa(0x8e,-0x2f,-0x34,0xa5)];[_0x2d9e9f(0x361,0x2f8,0x39c,0x3fe)];constructor(_0x2cc9ea){const _0x4df5f5={_0x341127:0xad,_0x377004:0xe6,_0x2624a9:0x1f5,_0x5cbf35:0x31e,_0x3d67d8:0x8e,_0x48d36b:0xc5,_0x32f7c9:0x163,_0x2df4f0:0x3b6,_0x514b84:0x202,_0x37e481:0x2da},_0x7658f5={_0x302ed8:0x170},_0x1c9c84={_0x303cd1:0x1ec};this[_0x550b6a(0x6b,_0x4df5f5._0x341127,_0x4df5f5._0x377004,0x85)]=_0x2cc9ea[_0x28c3c0(0x177,_0x4df5f5._0x2624a9,_0x4df5f5._0x5cbf35,0x244)];function _0x550b6a(_0x270add,_0xad78eb,_0xf25c09,_0x5d1b68){return _0x2d9e9f(_0x270add-_0x1c9c84._0x303cd1,_0x270add,_0x5d1b68- -0x35d,_0x5d1b68-0x59);}function _0x28c3c0(_0x5244be,_0x849c5d,_0x456bee,_0x11dc4a){return _0x2d9e9f(_0x5244be-_0x7658f5._0x302ed8,_0x456bee,_0x11dc4a- -0x19e,_0x11dc4a-0x1c6);}this[_0x550b6a(_0x4df5f5._0x3d67d8,_0x4df5f5._0x48d36b,_0x4df5f5._0x32f7c9,0x11b)]=_0x2cc9ea[_0x28c3c0(0x27a,_0x4df5f5._0x2df4f0,_0x4df5f5._0x514b84,_0x4df5f5._0x37e481)],this['protocolVersion']=_0x2cc9ea['protocolVersion'];}[_0x1818aa(0x99,-0x9d,0x68,0x2e)](){const _0x2c338a={_0x8193ab:0xc9,_0x18d2d0:0x131},_0x46958c={_0x43c0e4:0x4b6,_0x528ed3:0x4};function _0x41055d(_0x108071,_0x7b30f6,_0x5947cb,_0x203962){return _0x2d9e9f(_0x108071-0x34,_0x7b30f6,_0x5947cb- -_0x46958c._0x43c0e4,_0x203962-_0x46958c._0x528ed3);}return new Error(_0x41055d(-_0x2c338a._0x8193ab,-0xde,-_0x2c338a._0x18d2d0,-0xe7));}async[_0x2d9e9f(0x27d,0x3e4,0x306,0x396)](_0x7bfac4,_0x593a05){const _0x299801={_0x5b15bd:0x205,_0x1067b5:0x136,_0x92f05b:0x146,_0x2f49b2:0x161,_0x535010:0x197,_0x50d866:0x2f5,_0x18e59b:0x232,_0x5174f0:0xcf,_0x10557b:0x17f,_0x511093:0x161,_0x54ecf8:0x272,_0x454e36:0x221,_0x1e2e95:0x2f2,_0x58bba7:0x396,_0xb8c309:0x383,_0x33dc55:0x30a,_0xb7f809:0x316,_0x7aa56d:0x229,_0x42d039:0x198,_0x34b833:0x2e8,_0x1bff97:0x148,_0x1aa099:0x163,_0x4c987f:0x1ee,_0x27c05e:0x216,_0x53ab77:0x2d4,_0x1b8a3f:0x29f,_0x4d8d37:0xe3,_0x49006b:0x1c3,_0x431923:0x10e,_0x420035:0x167,_0x5bd9e1:0x84,_0x3cf6d6:0x23b,_0x4aec8b:0x21e,_0x563a11:0x12d,_0x50381c:0x1e3,_0x1bb5a6:0x218,_0x373466:0x1d9,_0x8bce00:0x2b9,_0x50deb8:0x7f,_0x308e8a:0xea,_0x3f615f:0xd3,_0x4ac299:0x349},_0x41c300={_0x53c1eb:0x113,_0x15f2c6:0x1b1},_0x25a996={_0x3c1f21:0xf2},_0x18e414=new Headers();_0x18e414['set'](_0x4a4435(_0x299801._0x5b15bd,_0x299801._0x1067b5,0x19e,0x1d3),_0x593a05[_0x39c231(-0x271,-0x2d4,-0x2b4,-0x262)]),_0x18e414[_0x4a4435(_0x299801._0x92f05b,0x1d2,0x160,_0x299801._0x2f49b2)](_0x4a4435(0xcb,0x245,_0x299801._0x535010,0x1b4),this['protocolVersion']);_0x593a05[_0x39c231(-0x1bb,-0x2da,-_0x299801._0x50d866,-_0x299801._0x18e59b)]!==![]&&_0x18e414[_0x4a4435(_0x299801._0x5174f0,_0x299801._0x10557b,0xf3,_0x299801._0x511093)](_0x39c231(-0x256,-_0x299801._0x54ecf8,-_0x299801._0x454e36,-_0x299801._0x1e2e95),_0x39c231(-0x3b4,-_0x299801._0x58bba7,-_0x299801._0xb8c309,-_0x299801._0x33dc55));this[_0x4a4435(0x285,0x306,_0x299801._0xb7f809,_0x299801._0x7aa56d)]===_0x4a4435(0x23a,0x26d,0x148,_0x299801._0x42d039)?_0x18e414['set']('authorization',_0x4a4435(0x135,0x29c,_0x299801._0x34b833,0x220)+_0x7bfac4[_0x4a4435(_0x299801._0x1bff97,0x1ec,0x230,0x17c)][_0x4a4435(0x1b4,_0x299801._0x1aa099,_0x299801._0x4c987f,0x169)]):_0x18e414[_0x39c231(-_0x299801._0x27c05e,-0x20d,-0x253,-_0x299801._0x53ab77)](_0x39c231(-_0x299801._0x1b8a3f,-_0x299801._0x4d8d37,-0x243,-_0x299801._0x49006b),_0x7bfac4[_0x4a4435(0x132,_0x299801._0x431923,_0x299801._0x420035,0x17c)][_0x4a4435(_0x299801._0x5bd9e1,_0x299801._0x3cf6d6,_0x299801._0x4aec8b,0x169)]);function _0x4a4435(_0x2227ab,_0x179ccf,_0x3df44c,_0x5d564d){return _0x2d9e9f(_0x2227ab-_0x25a996._0x3c1f21,_0x179ccf,_0x5d564d- -0x1b9,_0x5d564d-0xd9);}const _0x10da36=await this[_0x39c231(-_0x299801._0x563a11,-_0x299801._0x50381c,-_0x299801._0x1bb5a6,-0x176)]?.({'body':_0x7bfac4['body'],'credential':_0x7bfac4[_0x39c231(-_0x299801._0x373466,-0x2ea,-0x248,-_0x299801._0x8bce00)],'request':_0x7bfac4['request'],'session':_0x7bfac4[_0x4a4435(0x1db,0x1d6,_0x299801._0x50deb8,0x13e)],'stream':_0x7bfac4[_0x4a4435(_0x299801._0x308e8a,_0x299801._0x3f615f,0x96,0x170)]});for(const [_0x209d3c,_0x161649]of Object['entries'](_0x10da36??{})){_0x18e414[_0x39c231(-0x2e6,-0x2d7,-_0x299801._0x4ac299,-0x2d4)](_0x209d3c,_0x161649);}function _0x39c231(_0xeced80,_0x579573,_0x5cc384,_0x102731){return _0x2d9e9f(_0xeced80-_0x41c300._0x53c1eb,_0xeced80,_0x102731- -0x5ee,_0x102731-_0x41c300._0x15f2c6);}return _0x18e414;}[_0x2d9e9f(0x3c4,0x459,0x37b,0x327)](_0x29c83c){return _0x29c83c;}['resolveBaseUrl'](_0x31249d,_0x378058){return resolveSessionBaseUrl(_0x31249d,_0x378058);}[_0x2d9e9f(0x2ea,0x2ec,0x3be,0x49d)](_0x4a2648,_0x19342e){return resolveApiCredential(_0x4a2648,_0x19342e);}async[_0x2d9e9f(0x540,0x51c,0x489,0x3b7)](_0x47c9bd){return await createHttpError(_0x47c9bd);}},AnthropicModel=class extends RoutedModel{constructor(_0x4b7cf7={}){const _0x19abcb={_0x208bbf:0x50a,_0x560b5e:0x5f8,_0x111457:0x5b9,_0x1ae8ea:0x645,_0x32be99:0x5b5,_0x4eca81:0x457,_0x470764:0x4b9,_0x4b7aa2:0x472,_0x47a7e0:0x4b6,_0x378532:0x4cf,_0x4d5455:0x514,_0xfbc5c0:0x400,_0x321d76:0x666,_0x5ec699:0x5bb,_0x5ca718:0x638,_0x25615c:0x698,_0x182054:0x581,_0x225336:0x597,_0x39bd2d:0x55c,_0x5d78ac:0x552,_0x1c90d3:0x389,_0x843f81:0x52f,_0x5dccdb:0x472,_0x4049cf:0x484,_0xd520df:0x595,_0x4d232a:0x512,_0x55fba2:0x4bd,_0x17ec8d:0x589,_0x14bf07:0x5a6,_0x1dc759:0x4ce},_0x18d1a1={_0x55f3d7:0x5f},_0x572175={_0x7f74fd:0xc5};function _0x408ba3(_0x884dd1,_0x993ff3,_0x16c7b7,_0x4cb0d6){return _0x2d9e9f(_0x884dd1-0x45,_0x4cb0d6,_0x16c7b7-0x1c0,_0x4cb0d6-_0x572175._0x7f74fd);}function _0x26e109(_0x5154de,_0x7f4edf,_0x3cd82a,_0x5116b4){return _0x2d9e9f(_0x5154de-_0x18d1a1._0x55f3d7,_0x7f4edf,_0x5116b4-0x178,_0x5116b4-0x75);}super({'apiKey':_0x4b7cf7[_0x26e109(0x560,_0x19abcb._0x208bbf,0x54c,0x4c0)],'baseUrl':trimTrailingSlashes(_0x4b7cf7[_0x408ba3(0x5b9,_0x19abcb._0x560b5e,_0x19abcb._0x111457,0x5cb)]??_0x408ba3(_0x19abcb._0x1ae8ea,_0x19abcb._0x32be99,0x5bc,0x4db)),'fetch':_0x4b7cf7['fetch'],'maxTokens':_0x4b7cf7[_0x408ba3(0x499,_0x19abcb._0x4eca81,_0x19abcb._0x470764,0x402)]??0x4000,'model':_0x4b7cf7[_0x408ba3(_0x19abcb._0x4b7aa2,_0x19abcb._0x47a7e0,_0x19abcb._0x378532,0x493)]??'claude-sonnet-4-20250514','reasoning':_0x4b7cf7[_0x408ba3(_0x19abcb._0x4d5455,0x4b7,0x4db,_0x19abcb._0xfbc5c0)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x4b7cf7[_0x408ba3(0x4dc,0x674,0x5a2,0x4c0)]??_0x26e109(_0x19abcb._0x321d76,0x55a,0x5ce,0x5a3),'headerResolver':_0x4b7cf7[_0x408ba3(_0x19abcb._0x5ec699,0x6d4,_0x19abcb._0x5ca718,_0x19abcb._0x25615c)],'protocolVersion':_0x4b7cf7[_0x408ba3(_0x19abcb._0x182054,_0x19abcb._0x225336,_0x19abcb._0x39bd2d,0x534)]??_0x26e109(_0x19abcb._0x5d78ac,_0x19abcb._0x1c90d3,_0x19abcb._0x843f81,_0x19abcb._0x5dccdb)}),'providerSessionResolver':_0x4b7cf7[_0x408ba3(_0x19abcb._0x4049cf,_0x19abcb._0xd520df,_0x19abcb._0x4d232a,_0x19abcb._0x55fba2)],'requestMutators':_0x4b7cf7[_0x26e109(_0x19abcb._0x17ec8d,_0x19abcb._0x14bf07,0x549,_0x19abcb._0x1dc759)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x2d9e9f(0x35f,0x41a,0x449,0x35d)](_0x2aae24,_0x55c7b2){const _0x13d7be={_0x442892:0x496,_0x522a52:0x3f6},_0x565feb={_0x518cdc:0x12a,_0x2e252e:0x55f};function _0x45bc45(_0x3154af,_0x5e58f9,_0x25dcee,_0x16e724){return _0x1818aa(_0x3154af-0x72,_0x25dcee,_0x25dcee-_0x565feb._0x518cdc,_0x16e724-_0x565feb._0x2e252e);}return this[_0x45bc45(_0x13d7be._0x442892,_0x13d7be._0x522a52,0x4ec,0x4a9)](_0x2aae24,ANTHROPIC_MESSAGES_SURFACE,_0x55c7b2);}[_0x1818aa(-0x8e,-0x8c,-0x60,-0xaa)](_0x33f334,_0x3c455c){return this['streamViaSurface'](_0x33f334,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x3c455c);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x2d9e9f(0x40c,0x3c5,0x3a4,0x438),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE='openai-responses-stream',OPENAI_RESPONSES_WEBSOCKET_SURFACE='openai-responses-ws',OpenAiApiError=class extends Error{[_0x2d9e9f(0x447,0x45e,0x447,0x3d0)];[_0x2d9e9f(0x443,0x3b2,0x412,0x4f2)];constructor(_0x4ca1b5,_0x1a99fc,_0x491d5a){const _0x25e175={_0x2af593:0x1eb,_0x1b61e4:0x18f,_0x2930e5:0x24a,_0xf91706:0x1e6,_0x5d9b83:0x1a9,_0xb1839b:0x252},_0x167349={_0x2f65c9:0x584};super(_0x491d5a),this[_0x5acd5b(-0x326,-_0x25e175._0x2af593,-_0x25e175._0x1b61e4,-_0x25e175._0x2930e5)]=_0x5e10e8(0x1ad,_0x25e175._0xf91706,0x26d,0x149);function _0x5e10e8(_0x346255,_0x4e3893,_0x5bb5a8,_0x45eec4){return _0x2d9e9f(_0x346255-0xff,_0x346255,_0x4e3893- -0x2b4,_0x45eec4-0xae);}function _0x5acd5b(_0x2b513f,_0x5ec649,_0x4c6855,_0xb4ea09){return _0x2d9e9f(_0x2b513f-0xe9,_0x4c6855,_0xb4ea09- -_0x167349._0x2f65c9,_0xb4ea09-0x117);}this['status']=_0x4ca1b5,this[_0x5acd5b(-0x181,-_0x25e175._0x5d9b83,-_0x25e175._0xb1839b,-0x172)]=_0x1a99fc;}};function stringifySystem(_0x5b5674){const _0x5e9cd8={_0x149121:0x3b2,_0x78d957:0x3f1,_0x1d87fb:0x14b,_0x46599f:0x1d9,_0x19a506:0x2dc},_0x3f9c97={_0x4afad7:0xf1},_0x365e7b={_0x4c9a1f:0x1e5,_0x502bc8:0x1c4};function _0x5e5977(_0x2afbd6,_0x37b53d,_0x128b41,_0x2a7fee){return _0x2d9e9f(_0x2afbd6-_0x365e7b._0x4c9a1f,_0x128b41,_0x2a7fee- -0xbd,_0x2a7fee-_0x365e7b._0x502bc8);}function _0x511c82(_0x2da13c,_0x33b006,_0x4811dc,_0x27d613){return _0x2d9e9f(_0x2da13c-0x1a3,_0x4811dc,_0x27d613-_0x3f9c97._0x4afad7,_0x27d613-0xa4);}return _0x5b5674[_0x511c82(0x3a1,0x49a,_0x5e9cd8._0x149121,_0x5e9cd8._0x78d957)](_0x58c867=>_0x58c867['text'])[_0x5e5977(_0x5e9cd8._0x1d87fb,_0x5e9cd8._0x46599f,_0x5e9cd8._0x19a506,0x230)]('\x0a\x0a');}function createToolDefinitions(_0x5344f8){const _0x2f8e8a={_0x4bb4fd:0x76},_0xdc6cc0={_0x4956a8:0xc6,_0x3018bc:0x1ab,_0x5b5ce2:0x1e9,_0x33794a:0x17c,_0x46b721:0x123,_0x552e0e:0x7b,_0x3128ad:0xe2};if(_0x5344f8['length']===0x0)return void 0x0;function _0x461944(_0x54d50f,_0xf3ad4c,_0x3cce92,_0x37170f){return _0x1818aa(_0x54d50f-0x6,_0xf3ad4c,_0x3cce92-0x108,_0x37170f-0xe7);}return _0x5344f8[_0x461944(-_0x2f8e8a._0x4bb4fd,-0x42,-0x44,0x14)](_0x10dbbb=>{const _0x592298={_0x568897:0x183},_0x559fc0={_0x444e27:0x132};function _0x1c7f5c(_0x2a2abe,_0x1737ac,_0x2dc0a7,_0x186768){return _0x461944(_0x2a2abe-_0x559fc0._0x444e27,_0x186768,_0x2dc0a7-0x1a0,_0x1737ac- -0x1f9);}function _0x5d5e5d(_0x109510,_0x484a6d,_0x53dce1,_0x109488){return _0x461944(_0x109510-_0x592298._0x568897,_0x109510,_0x53dce1-0x4b,_0x53dce1-0x279);}return{'type':'function','function':{'name':_0x10dbbb[_0x1c7f5c(-_0xdc6cc0._0x4956a8,-_0xdc6cc0._0x3018bc,-_0xdc6cc0._0x5b5ce2,-_0xdc6cc0._0x33794a)],'description':_0x10dbbb[_0x1c7f5c(-0x13b,-_0xdc6cc0._0x46b721,-0x134,-0x84)],'parameters':_0x10dbbb[_0x1c7f5c(-0x11f,-_0xdc6cc0._0x552e0e,-_0xdc6cc0._0x3128ad,-0x48)]}};});}function isImageToolResultBlock(_0x5cb4bd){const _0x32709f={_0x34a1d5:0x3dd,_0x52fd1f:0x3de,_0x1adcca:0x261,_0x536907:0x257,_0x42e34a:0x337,_0x4a2ca8:0x402,_0x1bd83b:0x3b7,_0xce8911:0x440,_0x73a5c8:0x383,_0x1b48f2:0x1b2,_0x4d6a30:0x215},_0x25452f={_0x5a9158:0x103,_0x11a5ae:0xd0},_0x36f6a6={_0x13eaf2:0x2c5};function _0x51b4f1(_0x59da16,_0x4bcb7d,_0x17c9b8,_0x21cd7c){return _0x2d9e9f(_0x59da16-0x88,_0x17c9b8,_0x59da16- -_0x36f6a6._0x13eaf2,_0x21cd7c-0x180);}if(typeof _0x5cb4bd!=='object'||_0x5cb4bd===null||Array['isArray'](_0x5cb4bd))return![];function _0x152e20(_0x35e775,_0xec8004,_0x424e30,_0x5424b0){return _0x1818aa(_0x35e775-_0x25452f._0x5a9158,_0xec8004,_0x424e30-_0x25452f._0x11a5ae,_0x424e30-0x383);}const _0x3ee75a=_0x5cb4bd;return _0x3ee75a['type']===_0x152e20(0x43a,_0x32709f._0x34a1d5,0x3cb,0x349)&&_0x3ee75a[_0x152e20(0x2ff,_0x32709f._0x52fd1f,0x324,_0x32709f._0x1adcca)]?.[_0x51b4f1(0x1aa,0xc4,0x101,_0x32709f._0x536907)]==='base64'&&typeof _0x3ee75a[_0x152e20(_0x32709f._0x42e34a,_0x32709f._0x4a2ca8,0x324,0x34c)]['media_type']===_0x152e20(0x469,_0x32709f._0x1bd83b,_0x32709f._0xce8911,_0x32709f._0x73a5c8)&&typeof _0x3ee75a['source']['data']===_0x51b4f1(0x1cb,_0x32709f._0x1b48f2,_0x32709f._0x4d6a30,0x147);}function getToolResultText(_0x51ba97){const _0x2d55be={_0x21802d:0x122,_0x5a8085:0x23f,_0xddecd0:0x229,_0x41e192:0x2ea,_0x30795e:0x2a4,_0x5c52f4:0x1c9,_0x2f9a65:0x1dd,_0x321606:0xe6,_0x3c3bd5:0x154},_0x67240d={_0x4a3f30:0x179},_0xa6b075={_0x2da076:0x73,_0x570196:0x148,_0x1f1aee:0xa3,_0x112cc5:0x12c,_0x434b43:0x206,_0x80d9c6:0x1b8},_0x36ae2e={_0x172c52:0x1a2,_0x2a6b87:0x3a},_0x46f8f4={_0x283f0d:0x1a5,_0x258012:0x609},_0x3b9bef={_0x1534bb:0x5b,_0x119db9:0x141,_0x4a766e:0x356};if(typeof _0x51ba97==='string')return _0x51ba97;function _0x199ad0(_0xb322c3,_0x4c8acb,_0x3d0d22,_0x3b55ab){return _0x1818aa(_0xb322c3-_0x3b9bef._0x1534bb,_0x3d0d22,_0x3d0d22-_0x3b9bef._0x119db9,_0x3b55ab-_0x3b9bef._0x4a766e);}const _0xab5cc=_0x51ba97[_0x40da62(-0xd4,-_0x2d55be._0x21802d,0x28,-0xa6)](_0x3fcfba=>{function _0x4542ca(_0x364f8a,_0x20fd21,_0x5bbed2,_0x4e84c3){return _0x40da62(_0x364f8a-0x1e4,_0x20fd21,_0x5bbed2-_0x46f8f4._0x283f0d,_0x4e84c3-_0x46f8f4._0x258012);}function _0x1ac76f(_0x7c1f20,_0x2dc78f,_0x7e419e,_0x24611b){return _0x40da62(_0x7c1f20-0x1d8,_0x24611b,_0x7e419e-_0x36ae2e._0x172c52,_0x7c1f20-_0x36ae2e._0x2a6b87);}return typeof _0x3fcfba===_0x1ac76f(-_0xa6b075._0x2da076,-0x28,-0x54,-_0xa6b075._0x570196)&&_0x3fcfba!==null&&_0x3fcfba[_0x1ac76f(-_0xa6b075._0x1f1aee,-0xd4,-0x85,-0x171)]===_0x1ac76f(-_0xa6b075._0x112cc5,-_0xa6b075._0x434b43,-0x191,-_0xa6b075._0x80d9c6);})[_0x199ad0(_0x2d55be._0x5a8085,0x280,0x327,0x283)](_0x5625b4=>_0x5625b4['text'])[_0x199ad0(_0x2d55be._0xddecd0,_0x2d55be._0x41e192,_0x2d55be._0x30795e,0x270)]('\x0a\x0a')[_0x199ad0(0x490,0x39b,0x3cd,0x3db)]();function _0x40da62(_0x1226d6,_0x413e07,_0x5093e9,_0x293af8){return _0x1818aa(_0x1226d6-0x10a,_0x413e07,_0x5093e9-0x18,_0x293af8- -_0x67240d._0x4a3f30);}return _0xab5cc[_0x40da62(-_0x2d55be._0x5c52f4,-_0x2d55be._0x2f9a65,-_0x2d55be._0x321606,-_0x2d55be._0x3c3bd5)]>0x0?_0xab5cc:'Tool\x20returned\x20image\x20content.';}function getToolResultImages(_0x2e3e68){const _0x4a254b={_0x2b563f:0x4bf,_0x2221ce:0x4c1,_0x8cc18e:0x13a,_0x47e4c6:0x3f,_0xbe631c:0x17f},_0xb3aa67={_0x5a1b07:0x1eb};function _0x4eff02(_0x6364e1,_0x11eff9,_0x2c2bf4,_0x1b0236){return _0x2d9e9f(_0x6364e1-0x13,_0x6364e1,_0x1b0236-0x1c6,_0x1b0236-0x199);}function _0x3cb4ea(_0x30a1f5,_0x55c90e,_0x1668ce,_0x417c6c){return _0x1818aa(_0x30a1f5-0x7b,_0x417c6c,_0x1668ce-0x8b,_0x1668ce- -_0xb3aa67._0x5a1b07);}return Array[_0x4eff02(_0x4a254b._0x2b563f,0x465,0x56b,_0x4a254b._0x2221ce)](_0x2e3e68)?_0x2e3e68[_0x3cb4ea(-_0x4a254b._0x8cc18e,-_0x4a254b._0x47e4c6,-0x118,-_0x4a254b._0xbe631c)](isImageToolResultBlock):[];}function parseToolInput2(_0x5848ae){const _0x6f7fbb={_0x5332a7:0x119},_0x403d42={_0x1a03e3:0xd3,_0x309cf7:0x172};function _0x19fcc0(_0x3ffdbf,_0x41c45c,_0x40a3a7,_0x9038dd){return _0x1818aa(_0x3ffdbf-_0x403d42._0x1a03e3,_0x3ffdbf,_0x40a3a7-_0x403d42._0x309cf7,_0x41c45c- -0x1ab);}if(_0x5848ae['length']===0x0)return{};try{return JSON[_0x19fcc0(-0xcd,-_0x6f7fbb._0x5332a7,-0x1d9,-0x130)](_0x5848ae);}catch{return _0x5848ae;}}function isResponsesReasoningItem(_0x10043f){const _0x1a92ea={_0x1ee9b8:0x46a,_0x585b46:0x464,_0x242c78:0x4b6,_0x5f68b3:0x531,_0x4fb6ba:0x2a3,_0xc35e97:0x224,_0x377d5b:0x34e,_0x12bf20:0x1c1,_0x3b0b93:0x501,_0x963d9d:0x423,_0x5193de:0x3ad},_0x4859a8={_0x1ce436:0x23},_0x1f2808={_0x57d839:0x26,_0xdd195b:0x465};function _0x40c495(_0x4523f4,_0x2416f4,_0x519d84,_0x40d3d6){return _0x1818aa(_0x4523f4-_0x1f2808._0x57d839,_0x2416f4,_0x519d84-0x4,_0x40d3d6-_0x1f2808._0xdd195b);}function _0x11f8c3(_0x26811d,_0x57bbed,_0x8a3bd3,_0x78bc85){return _0x2d9e9f(_0x26811d-0x3a,_0x78bc85,_0x26811d- -0x1cc,_0x78bc85-_0x4859a8._0x1ce436);}return typeof _0x10043f===_0x40c495(_0x1a92ea._0x1ee9b8,_0x1a92ea._0x585b46,_0x1a92ea._0x242c78,_0x1a92ea._0x5f68b3)&&_0x10043f!==null&&_0x11f8c3(_0x1a92ea._0x4fb6ba,_0x1a92ea._0xc35e97,_0x1a92ea._0x377d5b,_0x1a92ea._0x12bf20)in _0x10043f&&_0x10043f[_0x40c495(0x4fd,0x480,0x5a3,_0x1a92ea._0x3b0b93)]===_0x40c495(0x42b,0x45d,_0x1a92ea._0x963d9d,_0x1a92ea._0x5193de);}function isResponsesMessageItem(_0x14df24){const _0x166e6d={_0x481673:0x418,_0x4936fa:0x3db,_0x35768d:0x4ee,_0x28f823:0x418,_0x82d772:0x4a1,_0x41ee68:0x6c},_0x2f5d60={_0x29fe84:0x12b,_0x3fa195:0x1c1,_0x164203:0x37c};function _0x4fc8a9(_0x43219d,_0x4d0810,_0x1799ef,_0xb7b577){return _0x1818aa(_0x43219d-0xd6,_0x43219d,_0x1799ef-0xea,_0x4d0810-0x165);}function _0x39ea2b(_0x1746df,_0x19c3f3,_0x5cac7b,_0x29334a){return _0x1818aa(_0x1746df-_0x2f5d60._0x29fe84,_0x1746df,_0x5cac7b-_0x2f5d60._0x3fa195,_0x5cac7b-_0x2f5d60._0x164203);}return typeof _0x14df24==='object'&&_0x14df24!==null&&_0x39ea2b(0x3a1,0x3fa,_0x166e6d._0x481673,0x4da)in _0x14df24&&_0x14df24[_0x39ea2b(_0x166e6d._0x4936fa,_0x166e6d._0x35768d,_0x166e6d._0x28f823,_0x166e6d._0x82d772)]===_0x4fc8a9(-0x1f,_0x166e6d._0x41ee68,0x151,-0x3);}function isResponsesFunctionCallItem(_0x4d7676){const _0x31d88d={_0x1ca0e3:0xd3,_0x58a70e:0x14a,_0x5b16c9:0x3b3,_0x34abc8:0x2ea,_0xf56f7e:0x1f9,_0x483c85:0x180,_0x150d2b:0x313,_0x3f4c4a:0x3a0},_0x106f26={_0x5d3294:0x84,_0x27c0ac:0x85},_0x2157c0={_0x5ae241:0x123,_0xefa3a8:0x311};function _0x25fcc0(_0x469bb5,_0x20f52d,_0xc096e3,_0x51c7ef){return _0x1818aa(_0x469bb5-_0x2157c0._0x5ae241,_0x51c7ef,_0xc096e3-0x56,_0x469bb5-_0x2157c0._0xefa3a8);}function _0x2b6a91(_0x53b974,_0x4cc9d8,_0xc0057a,_0x1e9f1e){return _0x1818aa(_0x53b974-_0x106f26._0x5d3294,_0x53b974,_0xc0057a-_0x106f26._0x27c0ac,_0x1e9f1e- -0x216);}return typeof _0x4d7676===_0x2b6a91(-0x168,-0xcf,-_0x31d88d._0x1ca0e3,-_0x31d88d._0x58a70e)&&_0x4d7676!==null&&_0x25fcc0(0x3ad,_0x31d88d._0x5b16c9,0x3d4,_0x31d88d._0x34abc8)in _0x4d7676&&_0x4d7676[_0x2b6a91(-_0x31d88d._0xf56f7e,-_0x31d88d._0x483c85,-0x25b,-0x17a)]===_0x25fcc0(0x2f1,0x2db,_0x31d88d._0x150d2b,_0x31d88d._0x3f4c4a);}function createContentBlocks(_0x2082a5,_0x1e5486,_0x162b59){const _0x83536c={_0x5947e3:0x264,_0x6d817d:0x1a5,_0xd8994c:0x422,_0x35c583:0x46f,_0x167546:0x20f,_0x1d5c1c:0xa0,_0x1a3412:0xed,_0x39ab25:0x407,_0x39e9b5:0xf1,_0x1e6b36:0x127,_0x1b1bf5:0x417,_0x3fabb5:0x485,_0x1ff6ff:0x40f,_0x3ffb22:0x3d5,_0x46f352:0x1ec,_0x264811:0x2d5,_0x376b59:0x200,_0x4e0be5:0x245,_0x1c8226:0x301,_0x27d374:0x127,_0x4d7a0e:0x13f,_0x57ccf4:0x24c,_0x5191a1:0x4b6,_0x1e0e34:0x29f,_0x2eae38:0x23d,_0x3f7edf:0x1eb,_0xe2ed38:0x29a,_0x53dc0f:0x2c6,_0x335b04:0x357,_0x28e3a2:0x3b4},_0x447493={_0xa51c89:0x1ac},_0x409f56={_0x1639dc:0x10c,_0x404e99:0x3b0},_0x47a853=[];_0x162b59&&_0x162b59[_0x10b3eb(-_0x83536c._0x5947e3,-0x187,-0x18b,-_0x83536c._0x6d817d)]>0x0&&_0x47a853[_0x35e138(0x52a,0x499,_0x83536c._0xd8994c,_0x83536c._0x35c583)]({'type':_0x10b3eb(-0x27b,-0x198,-0x1e3,-_0x83536c._0x167546),'summary':[],'text':_0x162b59});function _0x35e138(_0x169a2a,_0x94495a,_0x3a7bfe,_0x17a142){return _0x1818aa(_0x169a2a-0x42,_0x94495a,_0x3a7bfe-_0x409f56._0x1639dc,_0x17a142-_0x409f56._0x404e99);}_0x2082a5[_0x10b3eb(-_0x83536c._0x1d5c1c,-0x187,-_0x83536c._0x1a3412,-0x255)]>0x0&&_0x47a853[_0x35e138(0x396,_0x83536c._0x39ab25,0x3f8,0x46f)]({'type':'text','text':_0x2082a5});function _0x10b3eb(_0x54c808,_0x398a24,_0x444905,_0x20de8e){return _0x1818aa(_0x54c808-0xd6,_0x54c808,_0x444905-0x140,_0x398a24- -_0x447493._0xa51c89);}for(const _0x1c3e7 of _0x1e5486){if(_0x1c3e7['id'][_0x10b3eb(-_0x83536c._0x39e9b5,-_0x83536c._0x1e6b36,-0x142,-0x1a4)]()[_0x35e138(_0x83536c._0x1b1bf5,_0x83536c._0x3fabb5,_0x83536c._0x1ff6ff,_0x83536c._0x3ffb22)]===0x0||_0x1c3e7[_0x35e138(0x25a,_0x83536c._0x46f352,0x328,_0x83536c._0x264811)][_0x10b3eb(-_0x83536c._0x376b59,-_0x83536c._0x4e0be5,-0x2ca,-_0x83536c._0x1c8226)][_0x10b3eb(-0x174,-_0x83536c._0x27d374,-0x1d5,-0x171)]()[_0x10b3eb(-_0x83536c._0x4d7a0e,-0x187,-_0x83536c._0x57ccf4,-0xa7)]===0x0)continue;_0x47a853[_0x35e138(0x523,0x466,_0x83536c._0x5191a1,0x46f)]({'type':_0x10b3eb(-_0x83536c._0x1e0e34,-_0x83536c._0x2eae38,-_0x83536c._0x3f7edf,-0x193),'id':_0x1c3e7['id'],'name':_0x1c3e7[_0x35e138(_0x83536c._0xe2ed38,0x2ea,0x3ae,0x2d5)]['name'],'input':parseToolInput2(_0x1c3e7[_0x35e138(0x330,0x36e,_0x83536c._0x53dc0f,0x2d5)][_0x35e138(0x37d,0x32a,_0x83536c._0x335b04,_0x83536c._0x28e3a2)])});}return _0x47a853;}function createUsage(_0x202678){const _0x1ebc90={_0x48eb6c:0x1b5,_0x2dafbc:0x1e7,_0x19c8ce:0x284,_0x3f423a:0x28a,_0xcf8e66:0x31a,_0x23bda0:0x1e9,_0x1c5588:0x112,_0x193870:0x195,_0x25ee3f:0xd9,_0x328cfb:0x109,_0x20607c:0x268,_0x50a1a6:0x231,_0x4fda7a:0x1fe,_0x33bd7e:0x2ef,_0x1a4097:0x287},_0xbfcd5={_0xcea78c:0x562,_0xdaff1e:0x5b};function _0x1dda77(_0x432b20,_0x57bbe3,_0x5225f6,_0xca0c51){return _0x2d9e9f(_0x432b20-0x20,_0x432b20,_0xca0c51- -_0xbfcd5._0xcea78c,_0xca0c51-_0xbfcd5._0xdaff1e);}function _0x558037(_0x4e4518,_0x2e9a63,_0x432363,_0x3deffe){return _0x1818aa(_0x4e4518-0x1ee,_0x432363,_0x432363-0x9f,_0x2e9a63-0x2f4);}return{'inputTokens':_0x202678?.[_0x1dda77(-_0x1ebc90._0x48eb6c,-_0x1ebc90._0x2dafbc,-0x2d4,-0x26c)]??0x0,'outputTokens':_0x202678?.[_0x558037(_0x1ebc90._0x19c8ce,_0x1ebc90._0x3f423a,_0x1ebc90._0xcf8e66,_0x1ebc90._0x23bda0)]??0x0,..._0x202678?.[_0x1dda77(-_0x1ebc90._0x1c5588,-_0x1ebc90._0x193870,-_0x1ebc90._0x25ee3f,-_0x1ebc90._0x328cfb)]?.[_0x558037(0x1ce,_0x1ebc90._0x20607c,_0x1ebc90._0x50a1a6,0x338)]!==void 0x0?{'reasoningTokens':_0x202678['completion_tokens_details'][_0x558037(_0x1ebc90._0x4fda7a,0x268,_0x1ebc90._0x33bd7e,_0x1ebc90._0x1a4097)]}:{}};}function resolveReasoningVisibility2(_0x1cdf20){const _0xcfa802={_0x3ce5cc:0x1,_0x40228b:0x18a};function _0x3cb0aa(_0x51a165,_0x1b863c,_0x29b5b6,_0x28dfac){return _0x1818aa(_0x51a165-_0xcfa802._0x3ce5cc,_0x51a165,_0x29b5b6-_0xcfa802._0x40228b,_0x1b863c-0x527);}return _0x1cdf20['reasoning']?.[_0x3cb0aa(0x574,0x4c9,0x4ee,0x42e)]??'user-visible';}function isUserVisibleReasoning(_0x4a27f0){const _0x3b4746={_0x277b83:0x361},_0xcdabb={_0x2d42e9:0x6};function _0x58e376(_0x579a8a,_0x21e951,_0x2a38d6,_0x532cbe){return _0x1818aa(_0x579a8a-_0xcdabb._0x2d42e9,_0x532cbe,_0x2a38d6-0x28,_0x579a8a-0x314);}return resolveOpenAiReasoningConfig(_0x4a27f0['reasoning'])!==void 0x0&&resolveReasoningVisibility2(_0x4a27f0)===_0x58e376(0x2ee,_0x3b4746._0x277b83,0x2d3,0x28f);}function createChatRequestBody(_0x388810,_0x13f83d){const _0x5265c2={_0x3dc010:0x9d,_0x5378eb:0x114,_0x2da9aa:0x10e,_0x1a13a8:0xb2,_0x83799a:0x1e9,_0x2becb6:0x1fb,_0x37f3b1:0x97,_0x12736b:0x125,_0x4e865f:0xf5,_0xe2e79:0x1e1,_0x24bf83:0x27c,_0x1b2ece:0x100,_0x138a61:0xe1,_0x3cafeb:0x204,_0x19086e:0x19c,_0xcf5291:0x200,_0x71d3e4:0x2a3,_0x260470:0x154,_0x183c9c:0x152,_0x54d56d:0x1e3,_0x274472:0x182,_0x5078ab:0x1dc,_0xe566a3:0x271,_0x321baa:0x10b,_0x2e8722:0x16c,_0x18573c:0x1a0,_0x5a05a1:0xad,_0x16bc44:0xfe,_0x9d9ea2:0x80,_0x530b0a:0xeb,_0x34de2b:0x69,_0x119585:0x74,_0x3aa7a4:0x139,_0x34352f:0x150,_0x243cc4:0x192,_0x2745ab:0x16d,_0xd53467:0x20d,_0x161e9c:0xbd,_0x31a86c:0xd7,_0x262e35:0x1ee,_0x5d4729:0x13a,_0x4d7243:0x170,_0x43a0b3:0x1a7,_0x116eb9:0x242,_0x581e66:0x1b0,_0x301725:0x20e,_0x23dde9:0x291,_0x5e0479:0x177,_0x10b0aa:0x2e1,_0x4a2077:0x1cc,_0x2766b4:0x114,_0xa7c566:0x14a,_0x23b84d:0x263,_0x99518c:0x177,_0x262e64:0x97,_0x54ad3c:0x152,_0x59952e:0x211,_0x4976e2:0x2e0,_0x3daffd:0x1e7,_0x42c62f:0xf5,_0x286262:0x283,_0x436803:0x13d,_0xdea721:0x1f5,_0x1a8a29:0x10a,_0x41f357:0x292,_0x40f3fe:0x301,_0x56bfb2:0x2aa,_0x84a322:0x25d,_0xeedaf6:0x14d,_0x2715a8:0x18b,_0x4507f3:0x24,_0x1d5296:0x16f,_0x49ac42:0x266,_0x41aac8:0x1eb,_0x2e1c49:0x1df,_0x9274c5:0x255,_0x11fab2:0x2b4,_0x6a8db3:0x20d,_0x29feac:0x180,_0x20bd87:0x1bc,_0x33c40c:0x147,_0x356d55:0x229,_0x2c8e1d:0x307,_0x597a3f:0x241,_0x4eda1a:0xc8,_0x336e53:0xb1,_0x160369:0x9c,_0x7bde75:0x1a5,_0x301130:0x28a,_0x3598dd:0x277,_0x44afe5:0xb9,_0x13878e:0x91,_0x1cbcbd:0x2,_0x28ef4c:0x3f,_0x3f09c9:0xb5,_0x2c652d:0x106,_0x326915:0x7b},_0x4b8e11={_0x19de93:0x37,_0x341221:0x506,_0x30c8d7:0x2f},_0x563074={_0x5d7484:0xe6,_0x26edce:0x17f,_0x4609c2:0xe2,_0x48722b:0x289,_0x5763ee:0x1a3,_0x207afc:0x23d,_0x31ec8a:0x3a0,_0x75a773:0x303,_0x7b682:0x2f4,_0x160001:0x2e7,_0x46446f:0x2e0,_0x457fdb:0x255,_0x282c20:0x34e,_0x3258b4:0x275,_0x3f087a:0x6a,_0x599a9f:0xac,_0x412143:0x22e,_0x6bf84e:0x2a5,_0x74701c:0x245,_0x343ef3:0x383,_0x1c2e8d:0x25f,_0x30f1ed:0x15e,_0x1be84b:0x188,_0x49f6b5:0x309,_0x155172:0x232,_0x51098b:0x1ad,_0xa2e7e6:0x251,_0x2ec3f4:0x2c5,_0x2fe53b:0x375,_0x1636c9:0x382,_0x446540:0x39c,_0x1f0ffa:0x1fc,_0x24d2e5:0x1a2,_0x2fe1e8:0x25d,_0x26d084:0x5f,_0x49b81e:0x19a,_0x29214f:0x7f,_0x383f4c:0x159,_0x47a4fd:0x1e9,_0x9d9fa2:0x29b,_0x44b5e8:0x1b7},_0x3bc655={_0x169864:0x388},_0x235969={_0x49bea6:0x1ce,_0x486672:0x52},_0x46cd98=[],_0x21ce25=stringifySystem(_0x388810[_0x58b5bb(-0x160,-0x1f5,-_0x5265c2._0x3dc010,-_0x5265c2._0x5378eb)]);function _0x80df29(_0x154865,_0x90767b,_0x209cfd,_0x2c4c19){return _0x2d9e9f(_0x154865-_0x235969._0x49bea6,_0x209cfd,_0x90767b- -0x5c9,_0x2c4c19-_0x235969._0x486672);}_0x21ce25[_0x58b5bb(-_0x5265c2._0x2da9aa,-_0x5265c2._0x1a13a8,-_0x5265c2._0x83799a,-_0x5265c2._0x2becb6)]>0x0&&_0x46cd98[_0x58b5bb(-0x74,-0x79,-0x14,-0x15e)]({'role':'system','content':_0x21ce25});for(const _0x1c7535 of _0x388810[_0x80df29(-_0x5265c2._0x37f3b1,-_0x5265c2._0x12736b,-0x19f,-0x4d)]){const _0x4da3c3=[],_0x293270=[],_0xb476dd=[],_0x55bd6d=()=>{const _0x3193a0={_0x3ea9fb:0x402};function _0x4e8832(_0x1aaea1,_0x17173d,_0x588192,_0xd6e2a6){return _0x80df29(_0x1aaea1-0x1b8,_0xd6e2a6-_0x3bc655._0x169864,_0x17173d,_0xd6e2a6-0xe7);}if(_0x1c7535[_0x4e8832(_0x563074._0x5d7484,0x19e,_0x563074._0x26edce,0x159)]===_0x4e8832(0xd2,_0x563074._0x4609c2,_0x563074._0x48722b,_0x563074._0x5763ee)){if(_0x4da3c3[_0x218de0(0x2f4,_0x563074._0x207afc,_0x563074._0x31ec8a,_0x563074._0x75a773)]===0x0&&_0x293270[_0x218de0(_0x563074._0x7b682,0x374,0x352,0x2f2)]===0x0)return;_0x46cd98[_0x218de0(0x38e,0x35d,_0x563074._0x160001,0x40d)]({'role':_0x218de0(_0x563074._0x46446f,0x3c9,_0x563074._0x457fdb,_0x563074._0x282c20),'content':_0x4da3c3[_0x218de0(0x2f4,0x22b,_0x563074._0x3258b4,0x20d)]>0x0?_0x4da3c3[_0x4e8832(_0x563074._0x3f087a,0xeb,-0x28,_0x563074._0x599a9f)]('\x0a\x0a'):null,..._0x293270[_0x4e8832(0x114,_0x563074._0x412143,0x122,0x1b7)]>0x0?{'tool_calls':_0x293270[_0x4e8832(0x15d,0x31e,_0x563074._0x6bf84e,_0x563074._0x74701c)](0x0)}:{}}),_0x4da3c3['length']=0x0;return;}if(_0x1c7535[_0x218de0(0x296,_0x563074._0x343ef3,_0x563074._0x1c2e8d,0x25c)]===_0x4e8832(0xc8,0x109,_0x563074._0x30f1ed,_0x563074._0x1be84b)){if(_0xb476dd[_0x4e8832(0x12d,0x14f,0x221,0x1b7)]===0x0)return;const _0x4a3503=_0xb476dd[_0x218de0(0x2a5,0x2e4,0x1be,0x212)](_0xba9cfe=>_0xba9cfe[_0x218de0(0x36b,0x430,0x38a,0x3cb)]===_0x4e8832(0x106,0x19d,0x7,0xdf));_0x46cd98[_0x4e8832(_0x563074._0x49f6b5,_0x563074._0x155172,_0x563074._0x51098b,_0x563074._0xa2e7e6)]({'role':_0x218de0(_0x563074._0x2ec3f4,0x236,_0x563074._0x2fe53b,0x373),'content':_0x4a3503?_0xb476dd['splice'](0x0):_0xb476dd[_0x218de0(_0x563074._0x1636c9,0x40d,_0x563074._0x7b682,_0x563074._0x446540)](0x0)['filter'](_0x23f60c=>_0x23f60c[_0x4e8832(0x1a8,0x1e7,0x2a0,0x22e)]===_0x4e8832(0x1ec,0x256,0xec,0x1a5))[_0x218de0(_0x563074._0x1f0ffa,_0x563074._0x24d2e5,0x138,_0x563074._0x2fe1e8)](_0x33b97d=>_0x33b97d['text'])[_0x4e8832(-0xd,_0x563074._0x26d084,0xd4,_0x563074._0x599a9f)]('\x0a\x0a')});return;}if(_0x4da3c3['length']===0x0)return;function _0x218de0(_0x1165e9,_0x5c4317,_0x202ed2,_0xe18f31){return _0x58b5bb(_0x1165e9-_0x3193a0._0x3ea9fb,_0x5c4317-0x1a3,_0xe18f31,_0xe18f31-0xe9);}_0x46cd98['push']({'role':_0x1c7535[_0x4e8832(_0x563074._0x49b81e,_0x563074._0x29214f,0x130,_0x563074._0x383f4c)],'content':_0x4da3c3[_0x218de0(_0x563074._0x47a4fd,_0x563074._0x9d9fa2,0x224,0x16d)]('\x0a\x0a')}),_0x4da3c3[_0x4e8832(0x125,0x25a,0x204,_0x563074._0x44b5e8)]=0x0;};for(const _0x1501c9 of normalizeContent(_0x1c7535[_0x58b5bb(-_0x5265c2._0x4e865f,-0x1a9,-_0x5265c2._0xe2e79,-0x93)])){if(_0x1501c9[_0x58b5bb(-0x97,-0x8d,-0x13b,-0x130)]===_0x80df29(-0x28d,-0x1e3,-0x2cf,-_0x5265c2._0x24bf83)){_0x1c7535[_0x58b5bb(-0x16c,-_0x5265c2._0x1b2ece,-_0x5265c2._0x138a61,-_0x5265c2._0x3cafeb)]===_0x80df29(-_0x5265c2._0x19086e,-_0x5265c2._0xcf5291,-_0x5265c2._0x71d3e4,-0x14e)?_0xb476dd[_0x80df29(-0xbe,-0x137,-0x9f,-_0x5265c2._0x260470)]({'type':_0x80df29(-_0x5265c2._0x183c9c,-_0x5265c2._0x54d56d,-_0x5265c2._0x274472,-0x13c),'text':_0x1501c9[_0x80df29(-_0x5265c2._0x5078ab,-0x1e3,-0x136,-_0x5265c2._0xe566a3)]}):_0x4da3c3['push'](_0x1501c9[_0x80df29(-_0x5265c2._0x321baa,-0x1e3,-0x228,-0x19d)]);continue;}if(_0x1c7535[_0x58b5bb(-_0x5265c2._0x2e8722,-_0x5265c2._0x18573c,-0x113,-0x1fe)]===_0x58b5bb(-0x13d,-0x18c,-_0x5265c2._0x5a05a1,-0x139)&&_0x1501c9[_0x58b5bb(-0x97,-_0x5265c2._0x16bc44,-_0x5265c2._0x9d9ea2,-0x59)]===_0x58b5bb(-_0x5265c2._0x530b0a,-_0x5265c2._0x34de2b,-0x9c,-0x19b)){_0xb476dd[_0x58b5bb(-_0x5265c2._0x119585,-0x81,-0x126,-0x3e)]({'type':'image_url','image_url':{'url':_0x80df29(-_0x5265c2._0x3aa7a4,-0x144,-0x1b8,-_0x5265c2._0x34352f)+_0x1501c9[_0x58b5bb(-_0x5265c2._0x243cc4,-_0x5265c2._0x2745ab,-_0x5265c2._0xd53467,-_0x5265c2._0x161e9c)][_0x58b5bb(-0x58,-0xf5,-_0x5265c2._0x31a86c,-0xc8)]+_0x58b5bb(-_0x5265c2._0x262e35,-_0x5265c2._0x5d4729,-0x1c3,-0x143)+_0x1501c9[_0x80df29(-_0x5265c2._0x4d7243,-0x255,-_0x5265c2._0x43a0b3,-0x16c)][_0x80df29(-_0x5265c2._0x116eb9,-0x214,-_0x5265c2._0x581e66,-0x1f1)]}});continue;}if(_0x1501c9['type']==='tool_use'){_0x293270[_0x58b5bb(-0x74,-0x159,-0x11d,-0xa4)]({'id':_0x1501c9['id'],'type':_0x58b5bb(-_0x5265c2._0x301725,-_0x5265c2._0x23dde9,-_0x5265c2._0x5e0479,-_0x5265c2._0x10b0aa),'function':{'name':_0x1501c9[_0x58b5bb(-_0x5265c2._0x4a2077,-_0x5265c2._0x2766b4,-_0x5265c2._0xa7c566,-0x273)],'arguments':JSON[_0x80df29(-0x1fa,-0x228,-_0x5265c2._0x23b84d,-0x28a)](_0x1501c9[_0x80df29(-0xd4,-0x121,-_0x5265c2._0x99518c,-0x195)]??{})}});continue;}if(_0x1501c9[_0x58b5bb(-_0x5265c2._0x262e64,-0x3f,-0x147,-0xb8)]!==_0x80df29(-_0x5265c2._0x54ad3c,-_0x5265c2._0x59952e,-_0x5265c2._0x4976e2,-_0x5265c2._0x3daffd))continue;_0x55bd6d(),_0x46cd98['push']({'role':'tool','content':getToolResultText(_0x1501c9['content']),'tool_call_id':_0x1501c9['tool_use_id']});const _0x2f76de=getToolResultImages(_0x1501c9[_0x58b5bb(-_0x5265c2._0x42c62f,-0x159,-0x82,-0xc1)]);_0x2f76de[_0x80df29(-0x2a6,-0x1d1,-_0x5265c2._0x286262,-0x19f)]>0x0&&_0x46cd98['push']({'role':_0x58b5bb(-_0x5265c2._0x436803,-0x97,-_0x5265c2._0xdea721,-_0x5265c2._0x1a8a29),'content':[{'type':_0x80df29(-0x131,-_0x5265c2._0x54d56d,-_0x5265c2._0x41f357,-0x16e),'text':_0x80df29(-_0x5265c2._0x40f3fe,-_0x5265c2._0x56bfb2,-_0x5265c2._0x84a322,-0x1f8)+_0x1501c9[_0x58b5bb(-0x104,-_0x5265c2._0xeedaf6,-_0x5265c2._0x2715a8,-_0x5265c2._0x4507f3)]+'.'},..._0x2f76de[_0x58b5bb(-0x206,-_0x5265c2._0x1d5296,-0x16d,-_0x5265c2._0x49ac42)](_0x23a48d=>({'type':_0x58b5bb(-0x1e6,-0x273,-0x1fa,-0x215),'image_url':{'url':_0x80df29(-0x206,-0x144,-0x58,-0x1ef)+_0x23a48d[_0x80df29(-0x1d7,-0x255,-0x26a,-0x1d5)][_0x80df29(-0x1e8,-0x11b,-0x1d5,-0x141)]+_0x80df29(-0x307,-0x2b1,-0x308,-0x1e8)+_0x23a48d[_0x58b5bb(-0x192,-0x21d,-0x234,-0x25c)][_0x58b5bb(-0x151,-0xe5,-0x109,-0x196)]}}))]});}_0x55bd6d();}const _0x1c4aa1=resolveOpenAiReasoningConfig(_0x388810[_0x58b5bb(-_0x5265c2._0x41aac8,-0x218,-_0x5265c2._0x2e1c49,-0x18f)]);function _0x58b5bb(_0x522c64,_0x1b0bc9,_0x436275,_0x4c72d7){return _0x2d9e9f(_0x522c64-_0x4b8e11._0x19de93,_0x436275,_0x522c64- -_0x4b8e11._0x341221,_0x4c72d7-_0x4b8e11._0x30c8d7);}return{'model':_0x388810[_0x80df29(-0x3a5,-0x2ba,-0x2d6,-_0x5265c2._0x9274c5)],'messages':_0x46cd98,'stream':_0x13f83d,..._0x1c4aa1?{'max_completion_tokens':_0x388810[_0x58b5bb(-0x20d,-_0x5265c2._0x11fab2,-0x270,-0x1ac)]}:{'max_tokens':_0x388810[_0x58b5bb(-_0x5265c2._0x6a8db3,-_0x5265c2._0x29feac,-0x150,-_0x5265c2._0x20bd87)]},..._0x1c4aa1?.['effort']?{'reasoning_effort':_0x1c4aa1[_0x58b5bb(-0xba,_0x5265c2._0x4507f3,-0x8c,-0x59)]}:{},...createToolDefinitions(_0x388810[_0x80df29(-_0x5265c2._0x33c40c,-_0x5265c2._0x356d55,-0x213,-0x157)])?{'tools':createToolDefinitions(_0x388810[_0x80df29(-0x177,-0x229,-_0x5265c2._0x2c8e1d,-_0x5265c2._0x597a3f)])}:{},..._0x388810[_0x80df29(-_0x5265c2._0x4eda1a,-0x154,-_0x5265c2._0x336e53,-_0x5265c2._0x160369)]?{'response_format':{'type':_0x80df29(-0x2b3,-0x256,-_0x5265c2._0x7bde75,-0x19e),'json_schema':{'name':_0x388810['outputFormat'][_0x80df29(-0x27a,-0x28f,-_0x5265c2._0x301130,-_0x5265c2._0x3598dd)]??_0x58b5bb(-0x64,0x49,-0x103,-_0x5265c2._0x44afe5),'schema':_0x388810[_0x58b5bb(-_0x5265c2._0x13878e,_0x5265c2._0x1cbcbd,-0x13c,_0x5265c2._0x28ef4c)][_0x58b5bb(-0x1e0,-0x21e,-0x1d3,-0x1d3)],'strict':_0x388810[_0x80df29(-0x1b8,-0x154,-_0x5265c2._0x3f09c9,-0x231)][_0x58b5bb(-_0x5265c2._0x2c652d,-_0x5265c2._0x326915,-0xaa,-0x18f)]??!![]}}}:{}};}function createResponsesRequestBody(_0x5536a9,_0x39509f){return{...toOpenAiResponsesRequest(_0x5536a9),..._0x39509f?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x5458aa,_0x15e008={}){const _0x28a390={_0x2fa9c6:0x614,_0x16f0f7:0x4e9,_0x122dc7:0x5ba,_0xd8fddc:0x462,_0x3d41a2:0x61a,_0x5a8f63:0x5ae},_0x2eecc8={_0x258d54:0x123,_0x46055c:0x41},_0x50d29b={_0x790420:0xdb};function _0x22fddf(_0x1bbffc,_0x2fa796,_0x171fd3,_0x584cf2){return _0x2d9e9f(_0x1bbffc-0x169,_0x584cf2,_0x2fa796-_0x50d29b._0x790420,_0x584cf2-0xb9);}function _0x445636(_0x18e31b,_0x37289e,_0x137c49,_0xb98689){return _0x2d9e9f(_0x18e31b-_0x2eecc8._0x258d54,_0x37289e,_0x18e31b-_0x2eecc8._0x46055c,_0xb98689-0x142);}const _0xf7ea72=toOpenAiResponsesRequest(_0x5458aa);return{'type':_0x22fddf(_0x28a390._0x2fa9c6,0x54b,0x50d,0x4a8),..._0xf7ea72,..._0x15e008[_0x445636(_0x28a390._0x16f0f7,_0x28a390._0x122dc7,0x543,_0x28a390._0xd8fddc)]?{'input':_0x15e008[_0x22fddf(0x564,0x583,_0x28a390._0x3d41a2,_0x28a390._0x5a8f63)]}:{},..._0x15e008['previousResponseId']?{'previous_response_id':_0x15e008['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x546150){const _0x4b667e={_0x4561e8:0xcc},_0x30a6ec={_0x40953c:0xc1,_0x5c0e25:0x1d0,_0x285015:0x113,_0x28f280:0x157,_0x6cb863:0x3a6,_0x24e8bf:0x41d},_0x239b0e={_0x12ee04:0x15a,_0x442378:0x45,_0x377991:0x4c4},_0x3c49f4={_0x263c31:0x1da};function _0x4504be(_0x242fed,_0x3353d5,_0x1d20e4,_0x3f47aa){return _0x2d9e9f(_0x242fed-0xdf,_0x1d20e4,_0x3f47aa- -0x3e3,_0x3f47aa-_0x3c49f4._0x263c31);}if(typeof _0x546150==='string')return _0x546150;if(!Array[_0x4504be(-_0x4b667e._0x4561e8,-0x1a5,-0x2c,-0xe8)](_0x546150))return'';return _0x546150['map'](_0x5f1a8d=>{const _0x508894={_0x498d32:0xa2};function _0x156f45(_0x7bf80e,_0x3c225c,_0x4063f3,_0x54cacb){return _0x4504be(_0x7bf80e-_0x239b0e._0x12ee04,_0x3c225c-_0x239b0e._0x442378,_0x7bf80e,_0x54cacb-_0x239b0e._0x377991);}function _0x5d4965(_0x2d6cd2,_0x2a8e80,_0x84fec8,_0x137f77){return _0x4504be(_0x2d6cd2-0x74,_0x2a8e80-_0x508894._0x498d32,_0x2d6cd2,_0x84fec8- -0x1a8);}return _0x5f1a8d[_0x5d4965(-_0x30a6ec._0x40953c,-0x67,-0x11c,-_0x30a6ec._0x5c0e25)]==='text'?_0x5f1a8d[_0x5d4965(-_0x30a6ec._0x285015,-_0x30a6ec._0x28f280,-0x1a5,-0x1a3)]:_0x5f1a8d[_0x156f45(_0x30a6ec._0x6cb863,0x496,0x3e2,_0x30a6ec._0x24e8bf)];})['join']('');}function normalizeResponsesMessageContent(_0x2307a2){const _0x3f78cc={_0x3c922e:0x189,_0x5151e1:0x124,_0x1c64fe:0x1e2},_0x5e2a20={_0x504282:0x1f9,_0x593a9c:0x2d4,_0x17d64c:0x2dc,_0x398ef6:0x2c3,_0x518ca2:0x25a,_0x55476d:0x321,_0x20f165:0x2f0,_0x56fee3:0x38a,_0x429dbb:0x2ec,_0x28a422:0x277,_0x47d44f:0x21e,_0x54788e:0x485,_0x316332:0x4b7,_0x35c6bd:0x298},_0x45efeb={_0x3b2f8a:0x98,_0x2ef0cc:0xe0},_0x13e5bb={_0x121f52:0x84,_0x3e7985:0x92},_0x5d80eb={_0x2fb0cb:0x39,_0x2f30ab:0x7c,_0x1ebefa:0x274};function _0x4b7fb5(_0x348e54,_0x60a1fd,_0x568664,_0x4a6381){return _0x1818aa(_0x348e54-_0x5d80eb._0x2fb0cb,_0x568664,_0x568664-_0x5d80eb._0x2f30ab,_0x60a1fd-_0x5d80eb._0x1ebefa);}if(!Array[_0x56037e(-0x246,-0x1d4,-_0x3f78cc._0x3c922e,-0x176)](_0x2307a2))return'';function _0x56037e(_0x31895d,_0x1d0ae5,_0x57a346,_0x558fc7){return _0x1818aa(_0x31895d-_0x13e5bb._0x121f52,_0x57a346,_0x57a346-_0x13e5bb._0x3e7985,_0x31895d- -0x16e);}return _0x2307a2[_0x4b7fb5(_0x3f78cc._0x5151e1,0x1a1,0x125,0x1dc)](_0x2fd0c6=>{if(!_0x2fd0c6||typeof _0x2fd0c6!==_0xee4773(_0x5e2a20._0x504282,_0x5e2a20._0x593a9c,0x1ef,0x2d1))return'';function _0x2ca305(_0x2a74db,_0x14fcf1,_0xa84f9e,_0x53c466){return _0x4b7fb5(_0x2a74db-_0x45efeb._0x3b2f8a,_0x2a74db-0x9a,_0x14fcf1,_0x53c466-_0x45efeb._0x2ef0cc);}const _0x55ef9d=_0x2fd0c6;if(_0x55ef9d['type']===_0xee4773(0x32c,0x1f1,_0x5e2a20._0x17d64c,_0x5e2a20._0x398ef6)&&typeof _0x55ef9d['text']===_0xee4773(0x2e1,0x32e,_0x5e2a20._0x518ca2,0x2c2))return _0x55ef9d[_0x2ca305(_0x5e2a20._0x55476d,_0x5e2a20._0x20f165,_0x5e2a20._0x56fee3,0x253)];function _0xee4773(_0x52d979,_0x30347e,_0x3fc194,_0x16dca3){return _0x4b7fb5(_0x52d979-0x19a,_0x16dca3- -0x6f,_0x52d979,_0x16dca3-0xd9);}if(_0x55ef9d[_0x2ca305(0x3aa,0x408,0x3fa,_0x5e2a20._0x429dbb)]==='refusal'&&typeof _0x55ef9d[_0x2ca305(_0x5e2a20._0x28a422,0x2c9,_0x5e2a20._0x47d44f,0x345)]===_0x2ca305(0x3cb,_0x5e2a20._0x54788e,_0x5e2a20._0x316332,0x480))return _0x55ef9d[_0x2ca305(0x277,0x1c3,_0x5e2a20._0x35c6bd,0x342)];return'';})[_0x56037e(-0x254,-_0x3f78cc._0x1c64fe,-0x190,-0x1ec)]('');}function extractOpenAiReasoningText(_0x5f5b4d){const _0xd621cd={_0x2f461a:0x50c,_0x4440d1:0x49c,_0x292633:0x482,_0x5d00bd:0x45f,_0x2f96a4:0x4b7,_0x2d04ab:0x479,_0x563514:0x3b6,_0x30774d:0x3ee,_0x43e585:0x3fb,_0x4d80d1:0x3f9,_0x4ae2ba:0x4a4,_0x19d8d7:0x55a,_0x572dd9:0x510,_0x348600:0x524,_0x1331c2:0x539},_0x5646ca={_0x48deb1:0x71},_0x58e5c1={_0x566070:0x152,_0x54c767:0x466};if(typeof _0x5f5b4d[_0x5c5619(0x448,_0xd621cd._0x2f461a,0x479,_0xd621cd._0x4440d1)]===_0x4335a8(0x5a0,0x501,_0xd621cd._0x292633,0x5e6))return _0x5f5b4d[_0x5c5619(_0xd621cd._0x5d00bd,_0xd621cd._0x2f96a4,_0xd621cd._0x2d04ab,0x417)];function _0x5c5619(_0x1610bb,_0x517eb0,_0x14eaae,_0x5c9c60){return _0x1818aa(_0x1610bb-_0x58e5c1._0x566070,_0x5c9c60,_0x14eaae-0x1c2,_0x14eaae-_0x58e5c1._0x54c767);}if(!Array[_0x5c5619(_0xd621cd._0x563514,_0xd621cd._0x30774d,0x38e,_0xd621cd._0x43e585)](_0x5f5b4d[_0x4335a8(0x424,0x482,0x46e,0x51e)]))return'';function _0x4335a8(_0x4abf6a,_0x57f69e,_0x782737,_0x51b9af){return _0x2d9e9f(_0x4abf6a-0xe0,_0x51b9af,_0x57f69e-_0x5646ca._0x48deb1,_0x51b9af-0x1d0);}return _0x5f5b4d[_0x5c5619(_0xd621cd._0x4d80d1,0x547,_0xd621cd._0x4ae2ba,_0xd621cd._0x19d8d7)][_0x5c5619(_0xd621cd._0x572dd9,_0xd621cd._0x348600,_0xd621cd._0x1331c2,0x556)](_0xa9426d=>_0xa9426d[_0x4335a8(0x5cc,0x4e0,0x4a0,0x4a6)]===_0x4335a8(0x542,0x46c,0x41c,0x478)&&typeof _0xa9426d['text']==='string')['map'](_0x4f891c=>_0x4f891c[_0x4335a8(0x3c2,0x457,0x4de,0x4cc)]??'')['join']('');}function createOpenAiReasoningBlock(_0x4ae9ef){const _0x3dc66b={_0x19a473:0x5c2,_0x1130bc:0x615,_0x12595d:0x693,_0x317dac:0x10b,_0x42a946:0xd1,_0x29ab46:0x1f2,_0x3baf2b:0x5ba,_0x6abd53:0x53e,_0x3e520e:0x530},_0x34d7ab={_0x445318:0x18a,_0x19a738:0x81,_0x372b2c:0x595},_0x244143={_0x5790d9:0x508,_0x387493:0x18d};function _0x445f05(_0x3c596d,_0x136a17,_0x17187e,_0xa21f49){return _0x2d9e9f(_0x3c596d-0xa7,_0x136a17,_0x17187e- -_0x244143._0x5790d9,_0xa21f49-_0x244143._0x387493);}const _0x3fb0b2=extractOpenAiReasoningText(_0x4ae9ef);function _0x6d1fbe(_0x5cc832,_0x429f71,_0x1ee409,_0x4c4626){return _0x1818aa(_0x5cc832-_0x34d7ab._0x445318,_0x5cc832,_0x1ee409-_0x34d7ab._0x19a738,_0x429f71-_0x34d7ab._0x372b2c);}return{'type':_0x6d1fbe(_0x3dc66b._0x19a473,0x5a9,_0x3dc66b._0x1130bc,_0x3dc66b._0x12595d),'summary':structuredClone(_0x4ae9ef[_0x445f05(-0x16a,-0x1c1,-_0x3dc66b._0x317dac,-_0x3dc66b._0x42a946)]??[]),..._0x4ae9ef['id']?{'id':_0x4ae9ef['id']}:{},..._0x4ae9ef[_0x445f05(-0x15e,-0x206,-0x1ba,-_0x3dc66b._0x29ab46)]?{'encryptedContent':_0x4ae9ef['encrypted_content']}:{},..._0x3fb0b2[_0x6d1fbe(0x5fa,_0x3dc66b._0x3baf2b,_0x3dc66b._0x6abd53,_0x3dc66b._0x3e520e)]>0x0?{'text':_0x3fb0b2}:{}};}function hasVisibleOpenAiReasoning(_0x5e2b96){const _0x4789af={_0x112f08:0x276,_0x4c8d07:0x2d3,_0x331055:0x542,_0x44f68d:0x592,_0x33a6ab:0x25f,_0x139952:0x1f0,_0x183679:0x23c,_0x27a594:0x6ab,_0x390fe8:0x683},_0x4857da={_0x38ad67:0x74},_0x9fc253={_0x5c5c69:0x14b,_0x2f3e5a:0x24c};function _0x5d7e2f(_0x37db9f,_0x306b02,_0x12bff2,_0x43e55b){return _0x1818aa(_0x37db9f-_0x9fc253._0x5c5c69,_0x37db9f,_0x12bff2-0x128,_0x306b02-_0x9fc253._0x2f3e5a);}function _0x8ae585(_0x2f2912,_0x3f7a81,_0x250323,_0x1d5100){return _0x2d9e9f(_0x2f2912-_0x4857da._0x38ad67,_0x1d5100,_0x3f7a81-0x14a,_0x1d5100-0x96);}return _0x5e2b96[_0x5d7e2f(0x334,_0x4789af._0x112f08,_0x4789af._0x4c8d07,0x2c9)][_0x8ae585(0x5cf,_0x4789af._0x331055,0x47e,_0x4789af._0x44f68d)]>0x0||typeof _0x5e2b96[_0x5d7e2f(_0x4789af._0x33a6ab,0x25f,_0x4789af._0x139952,_0x4789af._0x183679)]===_0x8ae585(_0x4789af._0x27a594,0x5da,0x5d8,_0x4789af._0x390fe8);}function parseChatCompletionResponse(_0xb9b5aa){const _0x4206b4={_0x5e5f52:0xb0,_0x4913d8:0xfa,_0x18042f:0x190,_0x2a45ab:0x3b,_0x354f62:0x116,_0x1a453e:0x15d,_0x89049e:0x113,_0x1bda14:0x3be,_0x20b4f6:0x3a5,_0x400629:0x408,_0x1646b5:0x4f5,_0xbb4f83:0x50c,_0x46dac9:0x76,_0x18f167:0x47,_0x1bf948:0x51c,_0x19665f:0x5e2,_0x207616:0x576,_0x5801ce:0x518,_0x47e85d:0x34,_0x70fd32:0x176,_0x4c95b9:0x127,_0x15b322:0x426,_0x4ad69d:0x4cc,_0x2d6750:0x38a,_0x590657:0x4c7,_0x53a099:0x45d,_0x20d865:0x5d1,_0x5b8617:0x535,_0x56c27e:0x3b4,_0xaf9ef1:0x333,_0x1aa6e8:0xa3},_0x15922c={_0x26f954:0x10b,_0x5a8b83:0x4b7},_0x4c498c={_0x367e15:0x382,_0x3ffb35:0xa7},_0x3aab44=[],_0x2d09a5=[];function _0x519b4b(_0x1192a8,_0x52556d,_0x4fed78,_0x30d668){return _0x2d9e9f(_0x1192a8-0xd1,_0x30d668,_0x52556d- -_0x4c498c._0x367e15,_0x30d668-_0x4c498c._0x3ffb35);}function _0x19cc7e(_0x558dc9,_0x4e22eb,_0x14a9c4,_0x21af1b){return _0x1818aa(_0x558dc9-0x1b5,_0x4e22eb,_0x14a9c4-_0x15922c._0x26f954,_0x14a9c4-_0x15922c._0x5a8b83);}let _0x283c6a=_0x519b4b(_0x4206b4._0x5e5f52,_0x4206b4._0x4913d8,_0x4206b4._0x18042f,0x133);for(const _0x416537 of _0xb9b5aa[_0x519b4b(_0x4206b4._0x2a45ab,_0x4206b4._0x354f62,_0x4206b4._0x1a453e,_0x4206b4._0x89049e)]??[]){const _0x1beade=_0x416537[_0x19cc7e(0x351,0x34e,_0x4206b4._0x1bda14,_0x4206b4._0x20b4f6)],_0x5be692=normalizeAssistantContent(_0x1beade?.[_0x19cc7e(_0x4206b4._0x400629,0x58a,_0x4206b4._0x1646b5,_0x4206b4._0xbb4f83)]);_0x5be692[_0x519b4b(0x7c,_0x4206b4._0x46dac9,0x13,_0x4206b4._0x18f167)]>0x0&&_0x3aab44[_0x19cc7e(_0x4206b4._0x1bf948,_0x4206b4._0x19665f,_0x4206b4._0x207616,_0x4206b4._0x5801ce)](_0x5be692),_0x1beade?.['tool_calls']&&_0x2d09a5[_0x519b4b(0x1cc,0x110,_0x4206b4._0x47e85d,_0x4206b4._0x70fd32)](..._0x1beade[_0x519b4b(0x165,0x83,_0x4206b4._0x4c95b9,0x70)]),_0x416537['finish_reason']===_0x519b4b(0xd0,0x83,0xdc,0x11c)&&(_0x283c6a=_0x19cc7e(0x4ac,0x488,_0x4206b4._0x15b322,0x3b2));}return _0x2d09a5['length']>0x0&&(_0x283c6a=_0x19cc7e(_0x4206b4._0x4ad69d,_0x4206b4._0x2d6750,_0x4206b4._0x15b322,_0x4206b4._0x590657)),{'id':_0xb9b5aa['id']??_0x19cc7e(0x43b,0x382,0x3ef,_0x4206b4._0x53a099)+Date[_0x19cc7e(_0x4206b4._0x20d865,0x56b,_0x4206b4._0x5b8617,0x598)](),'content':createContentBlocks(_0x3aab44[_0x19cc7e(_0x4206b4._0x56c27e,0x33e,0x3d1,_0x4206b4._0xaf9ef1)](''),_0x2d09a5),'stopReason':_0x283c6a,'usage':createUsage(_0xb9b5aa[_0x519b4b(0x182,0xa2,_0x4206b4._0x1aa6e8,-0x3b)])};}function parseResponsesResponse(_0x3aa5e2,_0x1e64b1){const _0x3536ea={_0x1af549:0x29d,_0x354d36:0x304,_0x1de010:0x22e,_0x1db531:0x13f,_0x1f1841:0x21f,_0x26c3b8:0x126,_0x620782:0x8,_0x2e1776:0x292,_0x406237:0x2c2,_0x52f396:0x23a,_0x100fbf:0x371,_0x3770e3:0x29e,_0x3f2ac8:0x28,_0x207354:0x7e,_0x2e8bd4:0x32,_0x30056f:0x278,_0x296fc6:0x148,_0x519f61:0x62,_0x537e24:0x114,_0x31a1cd:0x5b,_0xc017d2:0x185,_0x1a6b0b:0x266,_0x3adbee:0x23,_0x51b91a:0x6d,_0x409fe6:0x7c,_0x1ad46f:0x27,_0x35b45a:0x1e5,_0x55cb77:0xed,_0x5917cb:0x9a,_0x146bec:0x1bc,_0x5231c2:0x54,_0x4a5220:0x42,_0x49fc78:0x62,_0x4248af:0x11,_0x233bf8:0x26b,_0x266af8:0x165,_0x3da740:0x254,_0x9bd825:0x24e,_0x70a29:0x2a0,_0x5b2561:0x29f,_0x3a7151:0x1ed,_0x2d8ea7:0x1b7,_0x24b4ac:0x1ef,_0x1f0f47:0x88,_0x3e90df:0x193,_0x423c07:0x100,_0x495f61:0x73,_0x377f6f:0x29f,_0x65cd5c:0x1e0,_0x5e6c88:0x1d,_0x5cd9fa:0x51,_0x37534f:0x39,_0x410e55:0x128,_0x5e307a:0xa8,_0x13c7a5:0x27,_0x3a4a3d:0x93,_0x395c10:0x8c,_0x3c1f11:0x19a,_0x400a09:0x15b,_0x286ef2:0x1fa,_0x125314:0x155,_0x343231:0x2f8,_0x3ec7d1:0x29d,_0x421ffd:0x1ab,_0x3af8ef:0x61},_0x3c98e9={_0x47c603:0x14d,_0x478595:0x57},_0x500111={_0x1848c2:0x1f2,_0x1b9fbb:0x1cc};function _0x442209(_0xb40a6e,_0x161748,_0x44a6c5,_0x288fd7){return _0x2d9e9f(_0xb40a6e-0x0,_0xb40a6e,_0x288fd7- -_0x500111._0x1848c2,_0x288fd7-_0x500111._0x1b9fbb);}function _0x55cb17(_0x1df72c,_0x5c0b12,_0x8ef930,_0x50ad1d){return _0x1818aa(_0x1df72c-_0x3c98e9._0x47c603,_0x5c0b12,_0x8ef930-0x1c3,_0x8ef930-_0x3c98e9._0x478595);}const _0x4bdd60=[];for(const _0x331779 of _0x3aa5e2[_0x442209(0x1fc,0x30a,0x248,_0x3536ea._0x1af549)]??[]){if(isResponsesReasoningItem(_0x331779)){if(isUserVisibleReasoning(_0x1e64b1)){const _0x1b15f4=createOpenAiReasoningBlock(_0x331779);hasVisibleOpenAiReasoning(_0x1b15f4)&&_0x4bdd60['push'](_0x1b15f4);}continue;}if(isResponsesMessageItem(_0x331779)){const _0x815166=normalizeResponsesMessageContent(_0x331779[_0x442209(_0x3536ea._0x354d36,_0x3536ea._0x1de010,_0x3536ea._0x1db531,_0x3536ea._0x1f1841)]);_0x815166[_0x55cb17(_0x3536ea._0x26c3b8,0x136,0x7c,_0x3536ea._0x620782)]>0x0&&_0x4bdd60[_0x442209(_0x3536ea._0x2e1776,_0x3536ea._0x406237,0x2dc,0x2a0)]({'type':'text','text':_0x815166});continue;}if(!isResponsesFunctionCallItem(_0x331779)||typeof _0x331779['call_id']!==_0x442209(0x328,_0x3536ea._0x52f396,_0x3536ea._0x100fbf,_0x3536ea._0x3770e3)||_0x331779[_0x55cb17(-_0x3536ea._0x3f2ac8,_0x3536ea._0x207354,_0x3536ea._0x2e8bd4,-0x21)]['trim']()[_0x442209(_0x3536ea._0x30056f,0x1c4,0x164,0x206)]===0x0||typeof _0x331779[_0x442209(0x109,0x198,0x211,_0x3536ea._0x296fc6)]!==_0x55cb17(0x1d4,_0x3536ea._0x519f61,_0x3536ea._0x537e24,_0x3536ea._0x31a1cd)||_0x331779['name'][_0x442209(0x271,0x27f,_0x3536ea._0xc017d2,_0x3536ea._0x1a6b0b)]()[_0x55cb17(-_0x3536ea._0x3adbee,_0x3536ea._0x51b91a,_0x3536ea._0x409fe6,_0x3536ea._0x1ad46f)]===0x0||typeof _0x331779[_0x442209(0x1f9,0x1d2,0x270,_0x3536ea._0x35b45a)]!=='string')continue;_0x4bdd60['push']({'type':_0x442209(_0x3536ea._0x55cb77,0xdd,_0x3536ea._0x5917cb,0x150),'id':_0x331779[_0x442209(0x129,0x105,0x1c0,_0x3536ea._0x146bec)],'name':_0x331779[_0x55cb17(_0x3536ea._0x5231c2,-0x11,-_0x3536ea._0x4a5220,-_0x3536ea._0x49fc78)],'input':parseToolInput2(_0x331779['arguments'])});}return!_0x4bdd60[_0x55cb17(0xd5,-_0x3536ea._0x4248af,0x2d,0x38)](_0x15e9bc=>_0x15e9bc[_0x55cb17(0x133,0x1ac,0xf3,0x32)]===_0x55cb17(0x119,0x35,0x6a,-0x33))&&_0x3aa5e2['output_text']&&_0x4bdd60[_0x442209(0x30f,_0x3536ea._0x233bf8,0x35d,0x2a0)]({'type':_0x442209(_0x3536ea._0x266af8,0x16e,_0x3536ea._0x3da740,0x1f4),'text':_0x3aa5e2[_0x442209(_0x3536ea._0x9bd825,0x278,_0x3536ea._0x70a29,_0x3536ea._0x5b2561)]}),{'id':_0x3aa5e2['id'],'content':_0x4bdd60,'stopReason':_0x4bdd60[_0x442209(_0x3536ea._0x3a7151,_0x3536ea._0x3770e3,0x1d4,_0x3536ea._0x2d8ea7)](_0x51b07b=>_0x51b07b[_0x55cb17(0x170,0x28,0xf3,0x1d4)]===_0x442209(0x117,0x21d,0x78,0x150))?_0x442209(0xfc,_0x3536ea._0x24b4ac,_0x3536ea._0x1f0f47,0x150):_0x55cb17(0x151,_0x3536ea._0x3e90df,_0x3536ea._0x423c07,_0x3536ea._0x495f61),'usage':{'inputTokens':_0x3aa5e2[_0x442209(_0x3536ea._0x377f6f,0x1c7,_0x3536ea._0x65cd5c,0x232)]?.[_0x55cb17(-0x126,_0x3536ea._0x5e6c88,-_0x3536ea._0x5cd9fa,-0x86)]??0x0,'outputTokens':_0x3aa5e2[_0x442209(0x260,0x302,0x28d,0x232)]?.['output_tokens']??0x0,..._0x3aa5e2[_0x55cb17(-_0x3536ea._0x37534f,_0x3536ea._0x410e55,_0x3536ea._0x5e307a,-_0x3536ea._0x13c7a5)]?.['output_tokens_details']?.[_0x442209(_0x3536ea._0x3a4a3d,_0x3536ea._0x395c10,0xaa,0x155)]!==void 0x0?{'reasoningTokens':_0x3aa5e2['usage'][_0x442209(_0x3536ea._0x55cb77,_0x3536ea._0x3c1f11,0xc9,_0x3536ea._0x400a09)][_0x442209(_0x3536ea._0x286ef2,0x150,0x213,_0x3536ea._0x125314)]}:{}},..._0x3aa5e2[_0x442209(_0x3536ea._0x343231,0x1cd,0x1f4,_0x3536ea._0x3ec7d1)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x3aa5e2[_0x55cb17(0x99,_0x3536ea._0x421ffd,0x113,_0x3536ea._0x3af8ef)]),'openaiResponsesResponseId':_0x3aa5e2['id']}}:{}};}function extractErrorMessage(_0x4633ef){const _0x1307ae={_0x38602c:0x3ff,_0xec2658:0x444,_0x161d93:0xdc,_0x2d5d0e:0x145,_0x58b57d:0xda,_0x185f88:0x3f2,_0x8946eb:0x5e6,_0x45333d:0x6a4,_0x524c65:0x5d9,_0x1077f6:0x91,_0x3622d4:0x7a,_0x1b09ae:0x11a,_0x5f504f:0x3c8,_0x55944b:0x49a,_0x2625bd:0x506,_0x29425a:0x468,_0x40f21f:0x4db,_0x2c98ae:0x53b,_0x2020e4:0x5e6,_0x5597a8:0x5f0,_0x2ecb94:0x692,_0x2c8126:0x175,_0x5efad2:0xa5,_0x2988ce:0x5cc,_0x114fdb:0x38e,_0xfeafa1:0x468,_0x362b95:0x530,_0x3e2dd7:0x177,_0x770d1e:0xa3,_0xeac0a:0x15,_0x464352:0xa2,_0x1c3581:0x94,_0x356cb1:0x3,_0x2eeff5:0xa2},_0x2bcd8a={_0x4a6cfa:0x87,_0x224b00:0xc3,_0x67e11b:0x1d},_0x20f731={_0x29e9f9:0xb5,_0x30166b:0x185};if(_0x4633ef['length']===0x0)return'';try{const _0xffe00a=JSON['parse'](_0x4633ef);if(typeof _0xffe00a[_0x34c641(_0x1307ae._0x38602c,0x49a,0x47f,_0x1307ae._0xec2658)]?.[_0x34c641(0x510,0x468,0x4c9,0x3fa)]===_0x46dd58(_0x1307ae._0x161d93,_0x1307ae._0x2d5d0e,0x19f,_0x1307ae._0x58b57d)&&_0xffe00a['error'][_0x34c641(0x4be,0x468,_0x1307ae._0x185f88,0x524)][_0x34c641(0x58e,_0x1307ae._0x8946eb,_0x1307ae._0x45333d,_0x1307ae._0x524c65)]()[_0x46dd58(_0x1307ae._0x1077f6,-_0x1307ae._0x3622d4,_0x1307ae._0x1b09ae,0x42)]>0x0)return _0xffe00a[_0x34c641(_0x1307ae._0x5f504f,_0x1307ae._0x55944b,0x4ca,_0x1307ae._0x2625bd)][_0x34c641(0x463,_0x1307ae._0x29425a,_0x1307ae._0x40f21f,_0x1307ae._0x2c98ae)][_0x34c641(0x676,_0x1307ae._0x2020e4,_0x1307ae._0x5597a8,_0x1307ae._0x2ecb94)]();if(typeof _0xffe00a[_0x46dd58(-0xb,-_0x1307ae._0x2c8126,-_0x1307ae._0x5efad2,-0xdc)]===_0x34c641(0x6a1,0x61e,_0x1307ae._0x2988ce,0x63a)&&_0xffe00a[_0x34c641(_0x1307ae._0x114fdb,_0x1307ae._0xfeafa1,_0x1307ae._0x362b95,0x3b5)][_0x46dd58(_0x1307ae._0x3e2dd7,_0x1307ae._0x770d1e,_0x1307ae._0xeac0a,_0x1307ae._0x464352)]()['length']>0x0)return _0xffe00a['message'][_0x46dd58(_0x1307ae._0x1c3581,_0x1307ae._0x356cb1,-0x2c,_0x1307ae._0x2eeff5)]();}catch{return _0x4633ef;}function _0x34c641(_0xa0371a,_0x4e224b,_0x555bb3,_0x16395b){return _0x1818aa(_0xa0371a-_0x20f731._0x29e9f9,_0x16395b,_0x555bb3-_0x20f731._0x30166b,_0x4e224b-0x561);}function _0x46dd58(_0xfdf369,_0x161d42,_0x186954,_0x47013a){return _0x1818aa(_0xfdf369-_0x2bcd8a._0x4a6cfa,_0x186954,_0x186954-_0x2bcd8a._0x224b00,_0x47013a-_0x2bcd8a._0x67e11b);}return _0x4633ef;}async function createOpenAiApiError(_0x452d8f){const _0x5e14f6={_0x490e4c:0x4c2,_0x20f986:0x485,_0x26965b:0x486,_0xd24505:0x5d2,_0x11c8be:0x5ef,_0x480171:0x623,_0x2f8851:0x5c7,_0x449f0f:0x5c1,_0x525d19:0x66c,_0x2ef301:0x5eb,_0x1966a9:0x54c,_0x43504d:0x58c},_0x5a4319={_0x1d003a:0x99,_0x5b7b01:0x5c},_0x1e8143=(await _0x452d8f[_0x39fb07(0x560,_0x5e14f6._0x490e4c,_0x5e14f6._0x20f986,_0x5e14f6._0x26965b)]())[_0x39fb07(_0x5e14f6._0xd24505,0x628,0x5e9,_0x5e14f6._0x11c8be)]();function _0x553666(_0x3ec995,_0x66e199,_0x5c2dee,_0x31c819){return _0x1818aa(_0x3ec995-_0x5a4319._0x1d003a,_0x66e199,_0x5c2dee-_0x5a4319._0x5b7b01,_0x3ec995-0x1a2);}function _0x39fb07(_0xef3e8a,_0x666f7a,_0x4a334e,_0x5c103e){return _0x2d9e9f(_0xef3e8a-0x189,_0x5c103e,_0xef3e8a-0x17a,_0x5c103e-0x18e);}const _0x1a551d=extractErrorMessage(_0x1e8143)||_0x452d8f[_0x39fb07(_0x5e14f6._0x480171,0x5ab,_0x5e14f6._0x2f8851,0x635)]||'OpenAI\x20API\x20error\x20'+_0x452d8f[_0x39fb07(_0x5e14f6._0x449f0f,0x57a,_0x5e14f6._0x525d19,0x543)];return new OpenAiApiError(_0x452d8f[_0x39fb07(_0x5e14f6._0x449f0f,_0x5e14f6._0x2ef301,_0x5e14f6._0x1966a9,_0x5e14f6._0x43504d)],_0x1e8143,_0x1a551d);}function readSseData(_0xf6d940){const _0x447d54={_0x2f812d:0x585,_0x8e317:0x569,_0x2fc890:0x475,_0x3facfe:0x4e7,_0x9dc602:0x4e4,_0x19a413:0x549,_0x4b3b2e:0x2dd,_0x45a152:0x3a3,_0x271f0c:0x140},_0x450605={_0x1d68c8:0x1ae,_0x321158:0x476},_0x33af16={_0x132c41:0x134,_0x2f5837:0x4eb,_0x99b22b:0x58};function _0x1d45d0(_0x4ca4d7,_0x22fb49,_0x27eebe,_0x557482){return _0x2d9e9f(_0x4ca4d7-_0x33af16._0x132c41,_0x557482,_0x22fb49- -_0x33af16._0x2f5837,_0x557482-_0x33af16._0x99b22b);}function _0x3cfa2f(_0x3780cd,_0x25e61b,_0x568ab4,_0x156f6c){return _0x1818aa(_0x3780cd-0x1d5,_0x3780cd,_0x568ab4-_0x450605._0x1d68c8,_0x156f6c-_0x450605._0x321158);}return _0xf6d940[_0x3cfa2f(_0x447d54._0x2f812d,_0x447d54._0x8e317,_0x447d54._0x2fc890,_0x447d54._0x3facfe)]('\x0a')[_0x3cfa2f(_0x447d54._0x9dc602,0x5bb,0x547,_0x447d54._0x19a413)](_0x44db16=>_0x44db16['startsWith'](_0x3cfa2f(0x577,0x56b,0x473,0x528)))[_0x3cfa2f(0x3cd,0x2bd,_0x447d54._0x4b3b2e,_0x447d54._0x45a152)](_0x3f3a4f=>_0x3f3a4f[_0x1d45d0(-0xa3,-0x13c,-0x188,-0x124)](0x5)[_0x1d45d0(-0x274,-0x189,-0x132,-0x244)]())[_0x1d45d0(-0x1d2,-0x1fe,-_0x447d54._0x271f0c,-0x1fb)]('\x0a')['trim']();}function readString(_0x255668){const _0x2ef55e={_0x42c9de:0xfb,_0x3e6459:0x178,_0x57453f:0x37,_0x345e7c:0x63,_0x330f64:0x74},_0x55c70f={_0x3c2734:0x12d,_0x134de4:0xb1},_0x43fa7a={_0xb8fdb0:0x1d7};function _0x239c34(_0x552145,_0x226bfd,_0x5e90dc,_0x5ba649){return _0x2d9e9f(_0x552145-_0x43fa7a._0xb8fdb0,_0x226bfd,_0x5e90dc- -0x395,_0x5ba649-0x18f);}function _0x1a6bfe(_0x1c894f,_0x429072,_0x36f55d,_0x2877a2){return _0x1818aa(_0x1c894f-_0x55c70f._0x3c2734,_0x2877a2,_0x36f55d-_0x55c70f._0x134de4,_0x429072-0x3df);}return typeof _0x255668===_0x239c34(0x1cf,0x171,_0x2ef55e._0x42c9de,_0x2ef55e._0x3e6459)&&_0x255668[_0x239c34(-0x76,_0x2ef55e._0x57453f,_0x2ef55e._0x345e7c,_0x2ef55e._0x330f64)]>0x0?_0x255668:void 0x0;}function extractReasoningDetails(_0x753d35){const _0x55d0f9={_0x1efe3e:0xb0,_0x27d587:0x99,_0x54e543:0x12d,_0x2e5ef2:0x64,_0x38ff85:0x127,_0x4ae14c:0xa7},_0x148039={_0x28e887:0x1e2,_0x376465:0x87},_0x4809d5={_0x5de9c3:0xd4,_0x5edc17:0x9f,_0x208300:0x27,_0x15fa7a:0x179,_0x4871db:0xb3,_0x3d2de2:0x18a,_0x43e13f:0xc,_0x1d64c7:0xba,_0x2c03b7:0xd0},_0x2da1e1={_0x3b60f2:0xc6},_0x4eb62d={_0xa823f6:0x197},_0x1037e8={_0x187e53:0x2e};function _0x1456bd(_0x53ee3f,_0x2aa6f2,_0x425d84,_0xf0835e){return _0x2d9e9f(_0x53ee3f-_0x1037e8._0x187e53,_0x2aa6f2,_0x425d84- -0x394,_0xf0835e-0x71);}if(!Array[_0x1456bd(-0x146,-_0x55d0f9._0x1efe3e,-_0x55d0f9._0x27d587,-0x133)](_0x753d35))return void 0x0;const _0x1cdd95=_0x753d35['flatMap'](_0x30dde5=>{if(!_0x30dde5||typeof _0x30dde5!==_0x204400(_0x4809d5._0x5de9c3,-0x56,0xa3,-0x18))return[];const _0x169875=_0x30dde5;if(typeof _0x169875[_0x204400(-0x1b9,-0x32,-0x25,-0xd1)]===_0x204400(-0x64,-0xd9,_0x4809d5._0x5edc17,-_0x4809d5._0x208300))return[_0x169875[_0x5e51a4(_0x4809d5._0x15fa7a,_0x4809d5._0x4871db,_0x4809d5._0x3d2de2,0xfd)]];function _0x5e51a4(_0x4b51da,_0x261ad9,_0x10ec92,_0x3d97b1){return _0x1456bd(_0x4b51da-_0x4eb62d._0xa823f6,_0x10ec92,_0x3d97b1-0xab,_0x3d97b1-0x175);}if(typeof _0x169875[_0x204400(-0x48,-_0x4809d5._0x43e13f,-0x116,-_0x4809d5._0x1d64c7)]===_0x5e51a4(0xf3,0x276,_0x4809d5._0x2c03b7,0x1a7))return[_0x169875['summary']];function _0x204400(_0x80655f,_0x221bc9,_0x4ea9c4,_0x3a2488){return _0x1456bd(_0x80655f-0x1a3,_0x221bc9,_0x3a2488- -0x123,_0x3a2488-_0x2da1e1._0x3b60f2);}return[];});function _0x35a68e(_0xaf42da,_0x26ea86,_0x12bb5f,_0x45b48c){return _0x2d9e9f(_0xaf42da-_0x148039._0x28e887,_0x45b48c,_0xaf42da- -_0x148039._0x376465,_0x45b48c-0x50);}return _0x1cdd95[_0x1456bd(_0x55d0f9._0x54e543,0x11d,_0x55d0f9._0x2e5ef2,_0x55d0f9._0x38ff85)]>0x0?_0x1cdd95[_0x1456bd(-0xe1,-0xa4,-_0x55d0f9._0x4ae14c,0x9)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x2f8385){const _0x572332={_0x1d2e64:0x1a3,_0x52262f:0x1ae,_0x3b6b72:0x1ff,_0x40a4ef:0x288,_0x1152fe:0x123},_0x1408d6={_0xe90ee6:0xcb,_0x10fc3c:0x9d,_0x2c3545:0x112};function _0x3354bb(_0x39e53b,_0x451aff,_0x578d59,_0xb222d){return _0x1818aa(_0x39e53b-_0x1408d6._0xe90ee6,_0x451aff,_0x578d59-_0x1408d6._0x10fc3c,_0x39e53b-_0x1408d6._0x2c3545);}function _0x4e94bd(_0x51a668,_0xe8fc9a,_0x19a93b,_0x5228fd){return _0x2d9e9f(_0x51a668-0xc2,_0x19a93b,_0x51a668- -0x5a1,_0x5228fd-0x1cf);}return extractReasoningDetails(_0x2f8385?.[_0x3354bb(0x1e2,_0x572332._0x1d2e64,0x1ad,_0x572332._0x52262f)])??readString(_0x2f8385?.['reasoning'])??readString(_0x2f8385?.[_0x4e94bd(-0x1e0,-_0x572332._0x3b6b72,-0x2b1,-_0x572332._0x40a4ef)])??readString(_0x2f8385?.[_0x4e94bd(-0x1a6,-_0x572332._0x1152fe,-0x16a,-0x1ce)])??'';}var OpenAiChatCompletionsStreamParser=class{['reasoningParts']=[];[_0x2d9e9f(0x449,0x301,0x3ed,0x328)];['textParts']=[];[_0x1818aa(0xa9,0x3c,0xb3,0x1e)]=new Map();['toolCallOrder']=[];[_0x1818aa(-0x27,0x22,0x1e,0xb9)]=new Set();['responseId']='';['stopReason']=_0x2d9e9f(0x393,0x3ab,0x47c,0x3fa);[_0x1818aa(0x0,0x123,0x79,0x51)];constructor(_0x1568fa){const _0x45acd1={_0x270d63:0x50,_0x142409:0xae,_0x54fd42:0xe0},_0x1c3984={_0x29e5ec:0xdc};function _0x2b7721(_0x4d8485,_0x51e3dc,_0x5d192d,_0x12335c){return _0x2d9e9f(_0x4d8485-0x92,_0x4d8485,_0x12335c- -0x3cf,_0x12335c-_0x1c3984._0x29e5ec);}this[_0x2b7721(-_0x45acd1._0x270d63,_0x45acd1._0x142409,_0x45acd1._0x54fd42,0x1e)]=_0x1568fa;}[_0x1818aa(0x4,0x5,0x25,-0x49)](_0x2aba87){const _0x2a656c={_0x2612bb:0x1f9,_0x556dab:0x11e,_0x2e3a83:0x1ce,_0x407c44:0x49,_0xf05899:0x57,_0x18cb11:0x9a,_0x484349:0x48,_0x287f09:0x15f,_0x707b57:0x1a6,_0x101329:0x10f,_0x1bcab:0x14a,_0x547941:0x217,_0x3d86e4:0xa2,_0x545ede:0xd,_0x17f8e2:0x53},_0x13cdbf={_0x45d25c:0x120,_0x537ee1:0x2da,_0x5913e4:0x69},_0x292d99={_0xaeff01:0x61,_0x2b3fd2:0x5a},_0x13a0ac=readSseData(_0x2aba87);function _0x5dad84(_0x2b6bab,_0x4798d6,_0x56c4f2,_0x54b0f2){return _0x1818aa(_0x2b6bab-0x71,_0x56c4f2,_0x56c4f2-_0x292d99._0xaeff01,_0x4798d6-_0x292d99._0x2b3fd2);}if(_0x13a0ac[_0x2a5a46(0xb8,_0x2a656c._0x2612bb,0x63,_0x2a656c._0x556dab)]===0x0||_0x13a0ac==='[DONE]')return[];const _0x25c886=JSON[_0x5dad84(0x158,0xec,0x17b,_0x2a656c._0x2e3a83)](_0x13a0ac);this[_0x2a5a46(0x65,-_0x2a656c._0x407c44,-_0x2a656c._0x407c44,_0x2a656c._0xf05899)]=_0x25c886['id']??this[_0x5dad84(-_0x2a656c._0x18cb11,-_0x2a656c._0x484349,-0x73,0x57)],this[_0x2a5a46(_0x2a656c._0x287f09,_0x2a656c._0x707b57,_0x2a656c._0x101329,_0x2a656c._0x1bcab)]=_0x25c886['usage']??this[_0x2a5a46(0x200,_0x2a656c._0x547941,0x153,0x14a)];function _0x2a5a46(_0xf46e16,_0xc742bb,_0x256a59,_0x2aaa71){return _0x2d9e9f(_0xf46e16-_0x13cdbf._0x45d25c,_0x256a59,_0x2aaa71- -_0x13cdbf._0x537ee1,_0x2aaa71-_0x13cdbf._0x5913e4);}return this[_0x2a5a46(_0x2a656c._0x3d86e4,0xa2,-_0x2a656c._0x545ede,_0x2a656c._0x17f8e2)](_0x25c886);}[_0x2d9e9f(0x3c3,0x38d,0x2fd,0x3a0)](){const _0x4a4b6d={_0x1344b7:0x55d,_0x5110d2:0x5f2,_0x18a6cb:0x592,_0x5f3e4b:0x629,_0x2b68a6:0x5df,_0x4d6e13:0x66a,_0x58a768:0xab,_0xe39f5e:0xa1,_0x46297d:0x67,_0x5b1a7b:0x18,_0x384f0e:0xa2,_0x36de47:0xae,_0x8160f0:0x45,_0x480c30:0x4fc,_0xe8ce8f:0x466,_0xf2791:0x533,_0x210704:0x379,_0x16bdf2:0xa7,_0x4bf883:0x554,_0xb7abcd:0x61f,_0x317618:0x59d,_0x3d4214:0x530,_0x3d083f:0x4c4},_0x40d4bc={_0x4c4e90:0x0,_0x5e55fe:0x54c},_0x515b67={_0x3bf9a6:0x46,_0x21e269:0x35,_0x4bdc27:0x1};this[_0x34d990(_0x4a4b6d._0x1344b7,_0x4a4b6d._0x5110d2,0x63d,_0x4a4b6d._0x18a6cb)]['length']>0x0&&(this[_0x34d990(0x643,_0x4a4b6d._0x5f3e4b,_0x4a4b6d._0x2b68a6,_0x4a4b6d._0x4d6e13)]=_0x34d990(0x44d,0x4bb,0x4ab,0x514));function _0x240080(_0x2371ac,_0x56ac2d,_0x3a7969,_0x3e54e0){return _0x1818aa(_0x2371ac-_0x515b67._0x3bf9a6,_0x2371ac,_0x3a7969-_0x515b67._0x21e269,_0x56ac2d-_0x515b67._0x4bdc27);}function _0x34d990(_0xe29aa2,_0x1b61d6,_0x22e20c,_0xacf3f1){return _0x1818aa(_0xe29aa2-_0x40d4bc._0x4c4e90,_0x22e20c,_0x22e20c-0x154,_0x1b61d6-_0x40d4bc._0x5e55fe);}const _0x33658c=isUserVisibleReasoning(this[_0x240080(-_0x4a4b6d._0x58a768,0x1b,_0x4a4b6d._0xe39f5e,_0x4a4b6d._0x46297d)])?this['reasoningParts']['join'](''):void 0x0;return{'id':this[_0x240080(-_0x4a4b6d._0x5b1a7b,-0xa1,-0x156,-0x143)]||'chatcmpl-'+Date[_0x240080(0xd5,0x7f,_0x4a4b6d._0x384f0e,0x167)](),'content':createContentBlocks(this[_0x240080(-0x6,-_0x4a4b6d._0x36de47,0x13,-_0x4a4b6d._0x8160f0)][_0x34d990(_0x4a4b6d._0x480c30,_0x4a4b6d._0xe8ce8f,_0x4a4b6d._0xf2791,_0x4a4b6d._0x210704)](''),this[_0x240080(0x16f,_0x4a4b6d._0x16bdf2,0x14d,0x30)],_0x33658c),'stopReason':this[_0x34d990(_0x4a4b6d._0x4bf883,_0x4a4b6d._0x5f3e4b,0x606,_0x4a4b6d._0xb7abcd)],'usage':createUsage(this[_0x34d990(0x4f6,_0x4a4b6d._0x317618,_0x4a4b6d._0x3d4214,_0x4a4b6d._0x3d083f)])};}[_0x2d9e9f(0x2a5,0x26b,0x32d,0x27a)](_0x2834ad){const _0x45f2fd={_0x1882b9:0x25,_0x1fec0e:0x52,_0x19092c:0xb2,_0x2305a0:0x11c,_0x559a5a:0x14a,_0x101a27:0x7b,_0x1ad43b:0xc1,_0x98477c:0x2f,_0x491d60:0x7a,_0x1827f6:0x86,_0x2a6125:0x69,_0x1de932:0x7,_0x50e0fc:0x3c,_0x488f55:0x142,_0xeeae5a:0x9e,_0x4e1b37:0x1d6,_0x1bf84f:0x2e,_0x38432f:0x4f,_0x2224a9:0x97,_0x476e39:0x1c3,_0x5f32a7:0x26,_0x411a1f:0x99,_0x42d21a:0xde,_0x532d70:0xab,_0x2795ec:0xf0,_0x5311eb:0x125,_0x336217:0x2b4,_0x24fc47:0x151,_0x6f516:0x1f9,_0x4b9ce7:0x20b,_0x271fe1:0x131,_0x444c30:0x8b,_0x5aecaa:0x143,_0x445362:0x8b,_0xf5ba02:0xe1,_0x562f24:0xe0,_0x442759:0x1f0,_0x47c0ba:0xd5,_0x1ae0b5:0x92,_0x9e18c:0x15b,_0x29afd7:0xa3,_0x379846:0x17b,_0x21a5b7:0x164,_0x19bd10:0x227,_0x577c5c:0x10e,_0x50eeeb:0xf1,_0x19ee62:0xdd,_0x4a2a54:0xc0,_0x1a68b7:0x12c,_0x2cd521:0x175,_0x13ed2f:0x1,_0x5ab00d:0x170,_0x1d0c95:0x185,_0x4c1d1c:0x1e3,_0x7763fc:0x29c,_0x1f77fe:0x225,_0x432e3c:0x1a6,_0x179378:0x139,_0x3bd4fc:0x200,_0x27169b:0x78,_0x4cc85f:0x207,_0x42b081:0x91,_0x3a20c4:0xb1,_0x148f4d:0x65,_0x40b032:0xda,_0x26b9e2:0xa1,_0x5d0ed3:0x1e9,_0x375573:0x8e,_0x38fd23:0x1f,_0x5681ef:0x3b,_0x315828:0x238,_0x51b7db:0x15a,_0x1d7910:0x1fa,_0x3ff829:0x19,_0x5744d4:0x12,_0x2695e4:0x95,_0x1778e9:0x17b,_0x4608f9:0x1b6,_0x2a524c:0x9c,_0x4875c0:0x56,_0x4084ac:0x102,_0x4bf97f:0x207,_0x50d29f:0x225,_0x4c4d42:0x146,_0x5e13d5:0x204,_0x16b258:0x1f,_0x410d68:0x6b,_0x83686a:0x130,_0xdac3b1:0x4c,_0x793de8:0xcc,_0x513df0:0xf3,_0x2ad9de:0x155,_0x4fb9e4:0x12f,_0x319cf:0x118,_0x4cb48d:0x3d,_0x114fb6:0x4b,_0x50eac5:0x11f},_0x4b98db={_0x30327b:0x1ed},_0x309ef8={_0x2eabba:0x11b};function _0x5a6145(_0x1ac063,_0x4ae185,_0x4b6642,_0x42d356){return _0x1818aa(_0x1ac063-_0x309ef8._0x2eabba,_0x42d356,_0x4b6642-0xbd,_0x1ac063- -0xa0);}const _0x5d6685=[];function _0x5e6790(_0xabb067,_0x2f46a5,_0x12c2af,_0x39cd73){return _0x1818aa(_0xabb067-0xa9,_0xabb067,_0x12c2af-_0x4b98db._0x30327b,_0x12c2af- -0x14a);}for(const _0x173fb3 of _0x2834ad[_0x5a6145(_0x45f2fd._0x1882b9,_0x45f2fd._0x1fec0e,0xcf,-0x3d)]??[]){const _0x5ca1aa=_0x173fb3[_0x5a6145(-0x119,-_0x45f2fd._0x19092c,-_0x45f2fd._0x2305a0,-_0x45f2fd._0x559a5a)],_0x158025=extractChatCompletionReasoningDelta(_0x5ca1aa);_0x158025[_0x5a6145(-_0x45f2fd._0x101a27,-0xa3,-0x125,-_0x45f2fd._0x1ad43b)]>0x0&&(this[_0x5a6145(-0x52,_0x45f2fd._0x98477c,0x31,-_0x45f2fd._0x1ad43b)][_0x5e6790(-0x8b,-0x65,-0x8b,-_0x45f2fd._0x491d60)](_0x158025),isUserVisibleReasoning(this[_0x5a6145(-_0x45f2fd._0x1827f6,-0x95,0x17,-0x152)])&&_0x5d6685['push']({'type':_0x5a6145(-0x4b,-_0x45f2fd._0x2a6125,_0x45f2fd._0x1de932,-_0x45f2fd._0x50e0fc),'contentIndex':0x0,'delta':_0x158025,'itemId':(this[_0x5a6145(-_0x45f2fd._0x488f55,-_0x45f2fd._0xeeae5a,-_0x45f2fd._0x4e1b37,-0x16f)]||_0x5a6145(-_0x45f2fd._0x1bf84f,_0x45f2fd._0x38432f,0x9b,_0x45f2fd._0x38432f))+_0x5a6145(-0x13f,-_0x45f2fd._0x2224a9,-_0x45f2fd._0x476e39,-0xc7),'outputIndex':0x0}));const _0xa38e75=typeof _0x5ca1aa?.[_0x5a6145(-0x62,_0x45f2fd._0x5f32a7,-0x8c,0x65)]==='string'?_0x5ca1aa['content']:typeof _0x5ca1aa?.['refusal']===_0x5a6145(0x1d,0xf7,-0x66,_0x45f2fd._0x411a1f)?_0x5ca1aa[_0x5a6145(-0x137,-0xf1,-_0x45f2fd._0x42d21a,-0x8a)]:'';_0xa38e75[_0x5e6790(-_0x45f2fd._0x532d70,-_0x45f2fd._0x2795ec,-_0x45f2fd._0x5311eb,-0x4d)]>0x0&&(this[_0x5e6790(-_0x45f2fd._0x336217,-_0x45f2fd._0x24fc47,-_0x45f2fd._0x6f516,-_0x45f2fd._0x4b9ce7)][_0x5e6790(-_0x45f2fd._0x271fe1,-0x15e,-_0x45f2fd._0x444c30,_0x45f2fd._0x1882b9)](_0xa38e75),_0x5d6685[_0x5e6790(-0x28,-_0x45f2fd._0x5aecaa,-_0x45f2fd._0x445362,-_0x45f2fd._0xf5ba02)]({'type':'content_delta','index':0x0,'text':_0xa38e75}));for(const _0x1b70aa of _0x5ca1aa?.[_0x5e6790(-_0x45f2fd._0x562f24,-0x71,-0x118,-_0x45f2fd._0x442759)]??[]){const _0x6700b2=_0x1b70aa[_0x5a6145(-0xfb,-0x150,-0x149,-_0x45f2fd._0x47c0ba)]??0x0;let _0x4291c0=this[_0x5e6790(-0xce,-0x1c5,-0x12c,-_0x45f2fd._0x1ae0b5)][_0x5e6790(-0xcc,-_0x45f2fd._0x9e18c,-0x147,-_0x45f2fd._0x29afd7)](_0x6700b2);!_0x4291c0&&(_0x4291c0={'id':_0x1b70aa['id']??'tool-call-'+_0x6700b2,'type':_0x5a6145(-_0x45f2fd._0x379846,-_0x45f2fd._0x21a5b7,-_0x45f2fd._0x19bd10,-0x228),'function':{'name':_0x1b70aa[_0x5a6145(-0x17b,-_0x45f2fd._0x577c5c,-_0x45f2fd._0x50eeeb,-_0x45f2fd._0x19ee62)]?.['name']??'','arguments':''}},this[_0x5e6790(-0x15a,-_0x45f2fd._0x4a2a54,-_0x45f2fd._0x1a68b7,-_0x45f2fd._0x2cd521)]['set'](_0x6700b2,_0x4291c0),this[_0x5e6790(-0x147,-0x18,-0xa4,-_0x45f2fd._0x13ed2f)][_0x5e6790(-0x1c,-0xcc,-0x8b,-_0x45f2fd._0x5ab00d)](_0x4291c0));_0x1b70aa['id']&&(_0x4291c0['id']=_0x1b70aa['id']);_0x1b70aa['function']?.[_0x5e6790(-0x1ad,-_0x45f2fd._0x1d0c95,-_0x45f2fd._0x4c1d1c,-_0x45f2fd._0x7763fc)]&&(_0x4291c0[_0x5e6790(-0x27e,-0x2da,-_0x45f2fd._0x1f77fe,-_0x45f2fd._0x432e3c)][_0x5a6145(-_0x45f2fd._0x179378,-0x117,-0x17b,-_0x45f2fd._0x3bd4fc)]=_0x1b70aa['function'][_0x5a6145(-0x139,-0x59,-_0x45f2fd._0x27169b,-_0x45f2fd._0x4cc85f)]);!this[_0x5e6790(-0xee,-0xe6,-_0x45f2fd._0x42b081,-_0x45f2fd._0x3a20c4)]['has'](_0x6700b2)&&_0x4291c0['function'][_0x5a6145(-0x139,-_0x45f2fd._0x148f4d,-0x120,-0xd1)][_0x5a6145(-0x1b,-0x32,-_0x45f2fd._0x40b032,_0x45f2fd._0x26b9e2)]()[_0x5e6790(-0xdc,-_0x45f2fd._0x5d0ed3,-0x125,-_0x45f2fd._0x375573)]>0x0&&(_0x5d6685[_0x5a6145(_0x45f2fd._0x38fd23,-0x58,-0x1a,_0x45f2fd._0x5681ef)]({'type':'tool_use_delta','id':_0x4291c0['id'],'index':_0x6700b2,'name':_0x4291c0[_0x5e6790(-0x175,-_0x45f2fd._0x315828,-_0x45f2fd._0x1f77fe,-_0x45f2fd._0x51b7db)][_0x5e6790(-_0x45f2fd._0x1d7910,-0x155,-_0x45f2fd._0x4c1d1c,-0x1fd)]}),this[_0x5a6145(_0x45f2fd._0x3ff829,-0xc4,-0x71,-_0x45f2fd._0x5744d4)][_0x5e6790(-_0x45f2fd._0x2695e4,-0x174,-_0x45f2fd._0xf5ba02,-0x162)](_0x6700b2));const _0x657c4f=_0x1b70aa[_0x5a6145(-_0x45f2fd._0x1778e9,-_0x45f2fd._0x4608f9,-0x9f,-0x1e8)]?.[_0x5a6145(-_0x45f2fd._0x2a524c,-0x131,-_0x45f2fd._0x4875c0,-0x117)]??'';_0x657c4f[_0x5e6790(-_0x45f2fd._0x4084ac,-_0x45f2fd._0x4bf97f,-0x125,-0x135)]>0x0&&(_0x4291c0[_0x5e6790(-0x310,-0x27b,-_0x45f2fd._0x50d29f,-0x202)][_0x5e6790(-0xb2,-0x6c,-_0x45f2fd._0x4c4d42,-_0x45f2fd._0x5e13d5)]+=_0x657c4f,_0x5d6685[_0x5a6145(_0x45f2fd._0x16b258,_0x45f2fd._0x410d68,0xd5,_0x45f2fd._0x375573)]({'type':_0x5a6145(-_0x45f2fd._0x83686a,-0x11a,-_0x45f2fd._0xdac3b1,-_0x45f2fd._0x793de8),'id':_0x4291c0['id'],'index':_0x6700b2,'inputDelta':_0x657c4f}));}_0x173fb3[_0x5e6790(-0x4d,-0x166,-_0x45f2fd._0x513df0,-_0x45f2fd._0x2ad9de)]===_0x5e6790(-_0x45f2fd._0x4fb9e4,-0xf3,-_0x45f2fd._0x319cf,-0x43)&&(this[_0x5e6790(-_0x45f2fd._0x4cb48d,_0x45f2fd._0x114fb6,-0x6d,-_0x45f2fd._0x50eac5)]=_0x5a6145(-_0x45f2fd._0x271fe1,-0x9a,-0x1dc,-0x148));}return _0x5d6685;}},OpenAiResponsesStreamParser=class{[_0x1818aa(0xbd,0x30,0xa0,0x8a)]=new Map();['finalResponse'];['outputIndexToCallId']=new Map();[_0x2d9e9f(0x47e,0x47c,0x3a7,0x34b)]=new Map();[_0x2d9e9f(0x590,0x555,0x4a7,0x4f8)]=new Map();[_0x1818aa(-0xba,0x1d,0x70,0x1a)];[_0x2d9e9f(0x420,0x40c,0x431,0x350)]=new Map();[_0x2d9e9f(0x44b,0x4fb,0x418,0x345)]=new Map();constructor(_0x312cd0){const _0x52ba5f={_0x5c7920:0x240,_0x18301f:0x312},_0x2d3b5b={_0x292bce:0x132};function _0x1462ee(_0x24b5bb,_0x540fc2,_0x1e270a,_0x2d1ab5){return _0x1818aa(_0x24b5bb-0x15f,_0x24b5bb,_0x1e270a-_0x2d3b5b._0x292bce,_0x540fc2-0x242);}this[_0x1462ee(_0x52ba5f._0x5c7920,0x25c,0x2c6,_0x52ba5f._0x18301f)]=_0x312cd0;}[_0x1818aa(-0xbb,0x91,-0x3a,-0x49)](_0x2d8044){const _0x23006f={_0x2f14d7:0x261,_0x1c322f:0x210,_0x7bc5e8:0x299,_0x504f51:0x1b5,_0x4fe7ff:0x295,_0xa69e21:0x1a2,_0x3d293c:0x3a2,_0x2d2a00:0x3ee,_0x43bb3e:0x33a,_0x14f96f:0x8d,_0x52c72f:0x11b,_0x51327a:0x16a,_0x355c05:0x1ea,_0x50ab1a:0x310,_0x208fb8:0x2e3,_0x4da4a0:0x1e5,_0x4e7716:0x262,_0x30c2af:0xc8,_0x162b79:0x1c2,_0xfdf304:0xf8,_0xe22f4e:0x332,_0x591849:0x259,_0x18ec08:0x2cf,_0x318227:0x2a3,_0x4a9e95:0x229,_0x36dd9a:0x32c},_0x3d9633={_0x42d2d5:0x17f,_0x4aea1f:0x1ab,_0x37fdb1:0xe5},_0x389296={_0x51733d:0xe9},_0x13a7ca=_0x2d8044[_0x520e1e(_0x23006f._0x2f14d7,0x289,_0x23006f._0x1c322f,_0x23006f._0x7bc5e8)]('\x0a');function _0xd87be5(_0x216364,_0x37621a,_0x1d1ce5,_0x23d759){return _0x2d9e9f(_0x216364-0xf4,_0x216364,_0x1d1ce5- -0x196,_0x23d759-_0x389296._0x51733d);}const _0x14fd56=_0x13a7ca[_0xd87be5(_0x23006f._0x504f51,_0x23006f._0x4fe7ff,0x1ba,0x226)](_0x368d18=>_0x368d18[_0x520e1e(0x1d3,0x106,0x261,0x1cc)](_0xd87be5(0x242,0x2b5,0x2dc,0x20d)))?.[_0xd87be5(_0x23006f._0xa69e21,0x2bf,0x219,0x2f5)](0x6)[_0xd87be5(0x316,0x1e1,0x2c2,_0x23006f._0x3d293c)](),_0x4e48bf=_0x13a7ca[_0xd87be5(_0x23006f._0x2d2a00,0x2ea,0x310,_0x23006f._0x43bb3e)](_0x34db65=>_0x34db65['startsWith']('data:'))[_0xd87be5(_0x23006f._0x14f96f,_0x23006f._0x52c72f,_0x23006f._0x51327a,0x1fd)](_0x2717a5=>_0x2717a5[_0xd87be5(0x2d7,0x226,0x219,0x1b2)](0x5)[_0x520e1e(0x20a,0x1ad,0x241,0x1b7)]())[_0x520e1e(0x1f1,0x64,_0x23006f._0x355c05,0x142)]('\x0a')[_0x520e1e(_0x23006f._0x50ab1a,0x222,0x20b,0x2ad)]();if(_0x4e48bf[_0xd87be5(_0x23006f._0x208fb8,_0x23006f._0x4da4a0,_0x23006f._0x4e7716,0x236)]===0x0||_0x4e48bf===_0x520e1e(_0x23006f._0x30c2af,_0x23006f._0x162b79,_0x23006f._0xfdf304,0x135))return[];const _0x56a52d=JSON[_0xd87be5(_0x23006f._0xe22f4e,_0x23006f._0x591849,_0x23006f._0x18ec08,0x28c)](_0x4e48bf);function _0x520e1e(_0x256799,_0x5d3694,_0x4ea58c,_0x2e1c32){return _0x2d9e9f(_0x256799-_0x3d9633._0x42d2d5,_0x256799,_0x2e1c32- -_0x3d9633._0x4aea1f,_0x2e1c32-_0x3d9633._0x37fdb1);}return this['consumeEvent'](_0x14fd56??String(_0x56a52d[_0xd87be5(_0x23006f._0x318227,_0x23006f._0x4a9e95,0x2d9,_0x23006f._0x36dd9a)]??''),_0x56a52d);}['consumeWebSocketEvent'](_0x1d71ed){const _0x51746c={_0x32d179:0x9b,_0x413455:0x2e},_0x1ef27e={_0x3f7217:0x37,_0x13a65b:0x2d,_0x36e1eb:0xf0},_0x5e2ec4={_0x5ea693:0x2a,_0x359999:0x1d3};function _0x413025(_0x2043ec,_0x3d60d3,_0x3be1af,_0x211a15){return _0x1818aa(_0x2043ec-_0x5e2ec4._0x5ea693,_0x3be1af,_0x3be1af-_0x5e2ec4._0x359999,_0x3d60d3- -0x11e);}function _0x272dfe(_0x5bfb33,_0x49436b,_0x43db3e,_0x4cd3b6){return _0x1818aa(_0x5bfb33-_0x1ef27e._0x3f7217,_0x49436b,_0x43db3e-_0x1ef27e._0x13a65b,_0x4cd3b6-_0x1ef27e._0x36e1eb);}return this[_0x272dfe(_0x51746c._0x32d179,0xfa,-_0x51746c._0x413455,0x4a)](String(_0x1d71ed[_0x413025(-0x14e,-0x82,0x59,-0x37)]??''),_0x1d71ed);}[_0x1818aa(-0x12d,-0x16b,-0x16d,-0xd6)](){const _0x2576e9={_0x2109d9:0x358,_0x49a72a:0x32d,_0xe115:0x280,_0x5f3639:0x38d,_0x5f2a78:0x28c,_0x497d0d:0x204},_0x4bfc39={_0xf4154a:0x15c,_0x4e5de1:0xa2};function _0x3262c9(_0x4c98cd,_0x1e55a4,_0x5c78e2,_0xdab3df){return _0x2d9e9f(_0x4c98cd-0x1d0,_0x1e55a4,_0xdab3df- -0x19a,_0xdab3df-0x67);}function _0x47a3f0(_0x5785f8,_0x225115,_0x4c5f17,_0x4002af){return _0x2d9e9f(_0x5785f8-0x19d,_0x225115,_0x4002af- -_0x4bfc39._0xf4154a,_0x4002af-_0x4bfc39._0x4e5de1);}const _0x224dc6=this[_0x47a3f0(_0x2576e9._0x2109d9,0x317,_0x2576e9._0x49a72a,_0x2576e9._0xe115)]??{'id':'resp-'+Date['now'](),'object':_0x47a3f0(0x26b,_0x2576e9._0x5f3639,0x3ee,0x322),'status':'completed','output':this[_0x3262c9(_0x2576e9._0x5f2a78,_0x2576e9._0x497d0d,0x135,0x1ea)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x224dc6,this[_0x3262c9(0x2a7,0x233,0x217,0x253)]);}['isDone'](){const _0x53400b={_0x1f8d69:0x213},_0x1e52cc={_0x35befe:0x110};function _0x5d43b7(_0x2951ad,_0x419862,_0x5b0f20,_0x1ad9bc){return _0x2d9e9f(_0x2951ad-_0x1e52cc._0x35befe,_0x2951ad,_0x419862- -0x573,_0x1ad9bc-0x15c);}return this[_0x5d43b7(-0x16b,-0x197,-_0x53400b._0x1f8d69,-0x221)]!==void 0x0;}['consumeEvent'](_0x280ce2,_0xfa6a54){const _0x2e26df={_0x1a2543:0x372,_0xa65978:0x391,_0x25c6be:0x3f8,_0x58e9a2:0x330,_0x58fae2:0x2f6,_0x3d5cf8:0x23d,_0x25a39c:0x182,_0x5d4f32:0x260,_0x5cf911:0x26a,_0x462de4:0x3e4,_0x3a17f6:0x520,_0x27e1fe:0x252,_0x5b9c30:0x2da,_0x3c1afd:0x2e5,_0x586fc1:0x565,_0x12c062:0x570,_0xc1820d:0x405,_0x3db9a8:0x472,_0x26acdb:0x126,_0x5f31ab:0x210,_0x136b09:0x3f7,_0x57bf65:0x3ad,_0x5af8a7:0x2eb,_0x8d5651:0x2fb,_0x34819d:0x4c2,_0x291d19:0x426,_0xd539fa:0x536,_0x2f6141:0x593,_0x5ad7a8:0x4ca,_0x4108a:0x1e8,_0x5b1fdc:0x196,_0x5c282d:0x223,_0x33cfee:0x556,_0x3318b5:0x49a,_0x184ecb:0x320,_0xbb0512:0x1e2,_0x85581c:0x29d,_0xdd4173:0x2f8,_0x32e9e9:0x22a,_0x505ff3:0x248,_0x3ac5e8:0x4b3,_0x1b5b4a:0x4ec,_0x1c40ae:0x549,_0x5b54be:0x259,_0x394bdc:0xe7,_0x564f61:0x1b9,_0x585215:0x2f2,_0x29ca94:0x171,_0x47ca02:0x438,_0x473f0d:0x368,_0x524aa2:0x484,_0x5dddf5:0x2d1,_0x1d2cb2:0x215,_0x67f9eb:0x221,_0x438aa9:0x197,_0x3aa519:0x123,_0x21d0d7:0x414,_0x46e665:0x463,_0x531e66:0x4bb,_0x270c39:0x196,_0x51c23a:0x229,_0xf6a4b9:0x24a,_0x940dbe:0x241,_0x2128aa:0x1dc,_0xb643a8:0x2b0,_0x2e31fc:0x5ab,_0x4e0647:0x558,_0x39a85e:0x1ba,_0x3c31a9:0x4a2,_0x4dd188:0x491,_0x3011d7:0x528,_0x5816cf:0x4aa,_0x2050cf:0x370,_0x27242b:0x252,_0x3770b7:0x306,_0x30d062:0x27d,_0x44c924:0x29c,_0x430977:0x2d9,_0x2d3296:0x28d,_0x596dec:0x1c5,_0x55ed16:0x261,_0x43b7fa:0x293,_0x4ba0e0:0x494,_0x29b932:0x558,_0x80000a:0x54c,_0x431166:0x572,_0x39cfdb:0x168,_0x54b59f:0x209,_0x902c6e:0x152,_0x1a43e5:0x3b3,_0x3215f9:0x486,_0x3fb447:0x56b,_0x90f6c8:0x4c2,_0x451ec4:0x1c7,_0xfa10b:0x308,_0x1491a4:0x17e,_0x26670c:0x294,_0x4f32e0:0x57c,_0x4cbefd:0x329,_0x49230b:0x253,_0x53703c:0x31f,_0x4f5417:0x20b,_0x5d8d52:0x537,_0x4d98a5:0x406,_0x225aed:0x2e9,_0x12a2d2:0x2e8,_0x21902b:0x29d,_0xc0ddcb:0x2d5,_0x5d1c74:0x2a8,_0x5eab8b:0x585,_0x31611f:0x5aa,_0x25beb3:0x3d6,_0x1ab1c8:0x444,_0xc25dd1:0x2ef,_0x19f09a:0x2bc,_0x3cb12b:0x5ac,_0x1331a0:0x5b6,_0x5a6306:0x443,_0xcc2495:0x3fe,_0x1e0486:0x50f,_0x561dad:0x4c2,_0x4cade5:0x21d,_0x24b96a:0x300,_0x457b72:0x282,_0x449cd7:0x315,_0x228e58:0x275,_0x22411f:0x1c4,_0x294a00:0x253,_0x333978:0x1c1,_0x47f904:0x474,_0x2e2645:0x56b,_0xba2a1a:0x3fc,_0x328bc1:0x3f0,_0x17ad5a:0x64e,_0x2a2eb1:0x656,_0x5b1af1:0x542,_0x1d5cfc:0x3e3,_0x59e088:0x497,_0x47ed5f:0x564,_0xa25d46:0x4e9,_0x4aa874:0x41f,_0xabbc75:0x5bc,_0x53b6d0:0x437,_0x129328:0x4e9,_0x29e4cb:0x2d5,_0x1cb1d2:0x271,_0x397b1a:0x55c,_0x2e72f4:0x47f,_0x47279d:0x41e,_0x49e916:0x54d,_0x4f99f6:0x5a2,_0x4864dd:0x355,_0x36824e:0x31f,_0x2ac499:0x276,_0xc78a12:0x1e6,_0xfbc59c:0x644,_0x296e3e:0x57c,_0xb768f0:0x18a,_0x2b93f7:0x475,_0x4d0e05:0x4dd,_0x4f9266:0x579,_0x282d76:0x4d2,_0x654d49:0x4d6,_0x176860:0x36c,_0x20503e:0x64b,_0x6fb31a:0x51d,_0x3c3b80:0x52e,_0x4b81ae:0x169,_0x55c7d9:0x11b,_0x36bba4:0x4df,_0x34b43a:0x295,_0x10c035:0x3ae,_0xef194f:0x398,_0x31cfe1:0x41d,_0x758288:0x4ce,_0x39bca4:0x2d6,_0x3b4d2a:0x2fd,_0x1ad1fc:0x4b8,_0x2e7228:0x540,_0x5ea916:0x52c,_0x45688f:0x46f,_0x1b6c60:0x5ef,_0x1f266f:0x252,_0x9df4d3:0x355,_0x37c52e:0x555,_0x47a085:0x581,_0x3d584f:0x4d9,_0x5351c3:0x3dd,_0x54a3fb:0x53a,_0x4c5029:0x439,_0x31b4ee:0x4a2,_0x3d613d:0x437,_0xa27a1c:0x505,_0x37caa6:0x38c,_0x46501:0x30c,_0x326dc8:0x2b3,_0x270dba:0x57c,_0x5194f7:0x57f,_0xc36e5d:0x558,_0x4db78c:0x320,_0x45e2db:0x261,_0x54d311:0x21d,_0x1c677a:0x281,_0x2ef546:0x22c,_0x3451ca:0x2b0,_0x45ca47:0x2dd,_0x43fadf:0x459,_0x3e5342:0x2c7,_0x3d5e06:0x310,_0x2ddc1a:0x2a1,_0x3acbe5:0x5cc,_0x2bf706:0x4ad,_0x4aaacc:0x3bf,_0x1bd258:0x36e,_0x4c618a:0x3ec,_0x4e4183:0x628,_0x506d1a:0x4f8,_0x4de26b:0x425,_0x2871d0:0x446,_0x5a08b3:0x3d4,_0x215be3:0x2ca,_0x3cc528:0x502,_0x58082e:0x4d1,_0x13ce5a:0x419,_0x1f0e21:0x604,_0x3975b5:0x562,_0x112e6b:0x52b,_0x1212f7:0x4d1,_0x588aee:0x4f3,_0x400d28:0x498,_0x2f9e9d:0x3c0,_0x49f37d:0x38e,_0x40bdb4:0x3d1,_0x41feec:0x185,_0x45595b:0x228,_0x2db32b:0x27b,_0x1a97a1:0x5c4,_0x3c0bc3:0x440,_0x5bab61:0x4e4,_0x2bfe37:0x309,_0x418bcb:0x310,_0x3a63a9:0x16a,_0x6b024d:0x57c,_0x689573:0x340,_0x40bffc:0x2f3,_0x2a5b92:0x598,_0x5b82d3:0x41b,_0x4d6706:0x1eb,_0x4d4d3d:0x261,_0x214c3f:0x566,_0xce3bfb:0x16e,_0x4eb3a4:0x252,_0x4c2818:0x1ac,_0x5da509:0x323,_0x3935c9:0x261,_0x18ff0b:0x26a,_0x103120:0x4b2,_0x2d2159:0x488,_0x4ba32b:0x262,_0x2c23dd:0x2f9,_0x1b3d83:0x4bd,_0x31bfa5:0x4e6,_0x184261:0x46e,_0x332c73:0x3f2,_0xb6b490:0x3cc,_0x5c0bab:0x4ef,_0x30aa75:0x4e5,_0x4a39f5:0x54a,_0x85b942:0x2fa,_0x575727:0x2f7,_0x578151:0x211,_0x30a669:0x2b5,_0x16aed6:0x2c2,_0x2d8e93:0x3c0,_0x2fd9b7:0x2fa,_0x679cef:0x3f8,_0xfe554f:0x490,_0x5bcb08:0x3c6,_0x1ee7a5:0x319,_0x108fc2:0x26e,_0x126434:0x32b,_0x50e0b1:0x2cd,_0x14be48:0x2ae,_0x4b2aaf:0x56a,_0x367a80:0x449,_0x33db20:0x533,_0x37a890:0x491},_0x271692={_0x4a18c1:0xec},_0x29e04e={_0x15860a:0x24f};switch(_0x280ce2){case _0x39f04d(_0x2e26df._0x1a2543,_0x2e26df._0xa65978,_0x2e26df._0x25c6be,0x41f):{const _0x18f0e3=typeof _0xfa6a54['output_index']===_0x357adf(_0x2e26df._0x58e9a2,0x2e8,_0x2e26df._0x58fae2,0x260)?_0xfa6a54[_0x357adf(_0x2e26df._0x3d5cf8,0x261,_0x2e26df._0x25a39c,_0x2e26df._0x5d4f32)]:0x0,_0x553106=typeof _0xfa6a54['delta']===_0x357adf(_0x2e26df._0x5cf911,0x30c,_0x2e26df._0x462de4,0x2ee)?_0xfa6a54[_0x357adf(0x1d3,0x1d6,0x2b7,0x11b)]:'';if(_0x553106['length']>0x0){const _0x1d568c=this[_0x39f04d(_0x2e26df._0x3a17f6,0x582,0x5a8,0x51d)][_0x357adf(0x20d,_0x2e26df._0x27e1fe,_0x2e26df._0x5b9c30,_0x2e26df._0x3c1afd)](_0x18f0e3)??[];return _0x1d568c['push'](_0x553106),this[_0x39f04d(0x4d6,_0x2e26df._0x586fc1,_0x2e26df._0x12c062,0x51d)]['set'](_0x18f0e3,_0x1d568c),[{'type':_0x39f04d(_0x2e26df._0xc1820d,0x556,_0x2e26df._0x3db9a8,0x49c),'index':_0x18f0e3,'text':_0x553106}];}break;}case _0x357adf(_0x2e26df._0x26acdb,_0x2e26df._0x5f31ab,0x18d,0x2e9):{const _0x190abb=typeof _0xfa6a54[_0x39f04d(0x56a,_0x2e26df._0x136b09,0x420,0x4d1)]==='number'?_0xfa6a54['output_index']:void 0x0,_0x31484c=_0xfa6a54['item'];if(_0x31484c?.[_0x357adf(_0x2e26df._0x57bf65,_0x2e26df._0x5af8a7,_0x2e26df._0x8d5651,0x248)]==='function_call'&&_0x31484c['call_id']&&_0x31484c[_0x39f04d(0x408,_0x2e26df._0x34819d,0x437,_0x2e26df._0x291d19)])return this[_0x39f04d(_0x2e26df._0xd539fa,_0x2e26df._0x2f6141,_0x2e26df._0x5ad7a8,0x504)][_0x357adf(_0x2e26df._0x4108a,_0x2e26df._0x5b1fdc,0xc8,_0x2e26df._0x5c282d)](_0x31484c['call_id'],{'id':_0x31484c[_0x39f04d(0x480,_0x2e26df._0x33cfee,0x521,_0x2e26df._0x3318b5)],'type':_0x39f04d(0x319,_0x2e26df._0x184ecb,0x421,_0x2e26df._0x462de4),'function':{'name':_0x31484c[_0x357adf(_0x2e26df._0xbb0512,0x1b6,0x106,_0x2e26df._0x85581c)],'arguments':''}}),_0x190abb!==void 0x0&&(this['outputIndexToCallId'][_0x39f04d(0x3c8,0x3e8,0x3cd,0x406)](_0x190abb,_0x31484c[_0x357adf(_0x2e26df._0xdd4173,_0x2e26df._0x32e9e9,_0x2e26df._0x505ff3,0x30b)]),this[_0x39f04d(0x538,_0x2e26df._0x3ac5e8,_0x2e26df._0x1b5b4a,_0x2e26df._0x1c40ae)][_0x357adf(0x113,0x196,_0x2e26df._0x5b54be,0xc1)](_0x31484c[_0x357adf(0x2c7,0x22a,0x304,0x21f)],_0x190abb)),[{'type':_0x357adf(0x1b2,0x1bf,_0x2e26df._0x394bdc,_0x2e26df._0x564f61),'id':_0x31484c[_0x357adf(0x18c,_0x2e26df._0x32e9e9,_0x2e26df._0x585215,_0x2e26df._0x29ca94)],'index':_0x190abb??0x0,'name':_0x31484c[_0x39f04d(_0x2e26df._0x47ca02,_0x2e26df._0x473f0d,_0x2e26df._0x524aa2,0x426)]}];if(_0x31484c?.[_0x357adf(_0x2e26df._0x5dddf5,0x2eb,0x23b,_0x2e26df._0x1d2cb2)]===_0x357adf(_0x2e26df._0x67f9eb,_0x2e26df._0x438aa9,0x109,_0x2e26df._0x3aa519)&&_0x31484c['id']){const _0x48edc3=this['getOrCreateReasoningItem'](_0x31484c['id'],_0x190abb);_0x190abb!==void 0x0&&this[_0x39f04d(_0x2e26df._0x21d0d7,_0x2e26df._0x46e665,_0x2e26df._0x531e66,0x493)][_0x357adf(0x264,_0x2e26df._0x270c39,0x26f,0x258)](_0x190abb,_0x48edc3['id']);}break;}case _0x357adf(_0x2e26df._0x51c23a,_0x2e26df._0xf6a4b9,_0x2e26df._0x940dbe,_0x2e26df._0x2128aa):{const _0x4e03b7=typeof _0xfa6a54[_0x357adf(0x22c,0x22a,0x1e2,_0x2e26df._0xb643a8)]===_0x39f04d(_0x2e26df._0x2e31fc,_0x2e26df._0x4e0647,0x50d,0x57c)?_0xfa6a54['call_id']:typeof _0xfa6a54['output_index']==='number'?this['outputIndexToCallId'][_0x357adf(_0x2e26df._0x39a85e,0x252,0x33e,0x1ae)](_0xfa6a54['output_index']):void 0x0,_0x69c68e=typeof _0xfa6a54['delta']===_0x39f04d(_0x2e26df._0x3c31a9,_0x2e26df._0x4dd188,_0x2e26df._0x3011d7,0x57c)?_0xfa6a54[_0x39f04d(_0x2e26df._0x5816cf,0x417,_0x2e26df._0x2050cf,0x446)]:'',_0x410645=_0x4e03b7?this['toolCalls'][_0x357adf(0x2fa,_0x2e26df._0x27242b,0x1b9,_0x2e26df._0x3770b7)](_0x4e03b7):void 0x0;if(_0x410645&&_0x69c68e['length']>0x0)return _0x410645['function'][_0x357adf(_0x2e26df._0x30d062,0x253,_0x2e26df._0x44c924,0x25c)]+=_0x69c68e,[{'type':'tool_use_delta','id':_0x410645['id'],'index':this[_0x357adf(0x2f7,_0x2e26df._0x430977,0x2eb,_0x2e26df._0x2d3296)][_0x357adf(0x183,0x252,0x2c3,_0x2e26df._0x596dec)](_0x410645['id'])??(typeof _0xfa6a54[_0x357adf(0x1c3,_0x2e26df._0x55ed16,0x30e,_0x2e26df._0x43b7fa)]===_0x39f04d(_0x2e26df._0x4ba0e0,0x544,0x61a,_0x2e26df._0x29b932)?_0xfa6a54[_0x39f04d(0x3f9,_0x2e26df._0x80000a,_0x2e26df._0x431166,0x4d1)]:0x0),'inputDelta':_0x69c68e}];break;}case _0x357adf(_0x2e26df._0x39cfdb,0x1dc,0x238,_0x2e26df._0x67f9eb):{const _0x2f2896=typeof _0xfa6a54[_0x357adf(0x1aa,_0x2e26df._0x32e9e9,_0x2e26df._0x54b59f,_0x2e26df._0x902c6e)]==='string'?_0xfa6a54[_0x39f04d(_0x2e26df._0x1a43e5,0x3cc,0x544,0x49a)]:typeof _0xfa6a54[_0x357adf(0x28b,_0x2e26df._0x55ed16,0x236,0x285)]===_0x39f04d(0x602,0x566,_0x2e26df._0x3215f9,_0x2e26df._0x29b932)?this[_0x39f04d(0x542,0x5dd,0x4c4,0x55f)][_0x39f04d(_0x2e26df._0x3fb447,0x4cb,0x4e9,_0x2e26df._0x90f6c8)](_0xfa6a54[_0x357adf(_0x2e26df._0x451ec4,_0x2e26df._0x55ed16,_0x2e26df._0xfa10b,_0x2e26df._0x1491a4)]):void 0x0,_0x1464a1=_0x2f2896?this[_0x357adf(0x2ff,_0x2e26df._0x26670c,0x318,0x2df)]['get'](_0x2f2896):void 0x0;_0x1464a1&&typeof _0xfa6a54['arguments']===_0x39f04d(0x643,0x5b0,0x60a,_0x2e26df._0x4f32e0)&&(_0x1464a1[_0x39f04d(0x3ba,_0x2e26df._0x3770b7,0x486,0x3e4)]['arguments']=_0xfa6a54[_0x357adf(_0x2e26df._0x4cbefd,_0x2e26df._0x49230b,_0x2e26df._0x53703c,_0x2e26df._0x4f5417)]);break;}case _0x39f04d(0x520,_0x2e26df._0x5d8d52,0x5da,0x523):{const _0x44fda8=typeof _0xfa6a54[_0x39f04d(0x57e,0x50d,_0x2e26df._0x4d98a5,0x4d1)]===_0x357adf(_0x2e26df._0x225aed,_0x2e26df._0x12a2d2,_0x2e26df._0x21902b,_0x2e26df._0xc0ddcb)?_0xfa6a54[_0x357adf(_0x2e26df._0x5d1c74,0x261,0x1ff,0x198)]:void 0x0,_0x5e9d70=_0xfa6a54[_0x39f04d(_0x2e26df._0x5eab8b,0x49a,_0x2e26df._0x31611f,0x4c0)];if(_0x5e9d70?.['type']===_0x39f04d(_0x2e26df._0x25beb3,_0x2e26df._0x1ab1c8,0x575,0x49f)){const _0x1a1ac2=_0x5e9d70['call_id']??(_0x44fda8!==void 0x0?this[_0x357adf(0x23d,_0x2e26df._0xc25dd1,_0x2e26df._0x19f09a,0x372)][_0x39f04d(_0x2e26df._0x3cb12b,0x45d,0x4a7,0x4c2)](_0x44fda8):void 0x0),_0x240c81=_0x1a1ac2?this[_0x39f04d(_0x2e26df._0x1331a0,_0x2e26df._0x5d8d52,_0x2e26df._0x5a6306,0x504)][_0x39f04d(_0x2e26df._0xcc2495,0x500,_0x2e26df._0x1e0486,_0x2e26df._0x561dad)](_0x1a1ac2):void 0x0;_0x240c81&&typeof _0x5e9d70[_0x357adf(_0x2e26df._0x4cade5,0x253,_0x2e26df._0x24b96a,_0x2e26df._0x457b72)]===_0x357adf(_0x2e26df._0x449cd7,0x30c,0x3b6,_0x2e26df._0x228e58)&&(_0x240c81['function'][_0x357adf(_0x2e26df._0x22411f,_0x2e26df._0x294a00,_0x2e26df._0x333978,0x2f8)]=_0x5e9d70[_0x39f04d(0x583,_0x2e26df._0x47f904,0x530,0x4c3)]);break;}if(_0x5e9d70?.[_0x39f04d(0x565,0x59f,_0x2e26df._0x2e2645,0x55b)]==='reasoning'&&_0x5e9d70['id']){const _0x1f7fcd=this[_0x357adf(0x341,0x310,_0x2e26df._0xba2a1a,_0x2e26df._0x328bc1)](_0x5e9d70['id'],_0x44fda8);typeof _0x5e9d70['encrypted_content']===_0x39f04d(0x54b,_0x2e26df._0x17ad5a,_0x2e26df._0x2a2eb1,_0x2e26df._0x4f32e0)&&(_0x1f7fcd[_0x39f04d(_0x2e26df._0x5b1af1,0x465,0x5b8,0x54a)]=_0x5e9d70['encrypted_content']);if(Array[_0x39f04d(_0x2e26df._0x1d5cfc,_0x2e26df._0x59e088,0x366,0x3e7)](_0x5e9d70[_0x39f04d(0x59c,_0x2e26df._0x47ed5f,0x554,_0x2e26df._0xa25d46)]))for(let _0x4b6fa0=0x0;_0x4b6fa0<_0x5e9d70[_0x39f04d(0x420,_0x2e26df._0x4aa874,0x407,_0x2e26df._0xa25d46)]['length'];_0x4b6fa0+=0x1){const _0x13ab51=_0x5e9d70[_0x39f04d(0x570,_0x2e26df._0xabbc75,_0x2e26df._0x53b6d0,_0x2e26df._0x129328)][_0x4b6fa0];_0x13ab51[_0x357adf(_0x2e26df._0x29e4cb,_0x2e26df._0x5af8a7,0x227,_0x2e26df._0x1cb1d2)]===_0x39f04d(0x4f5,0x425,_0x2e26df._0x397b1a,_0x2e26df._0x2e72f4)&&typeof _0x13ab51[_0x39f04d(_0x2e26df._0x47279d,_0x2e26df._0x49e916,_0x2e26df._0x4f99f6,0x4d2)]===_0x357adf(0x307,0x30c,0x2c8,_0x2e26df._0x4864dd)&&_0x1f7fcd[_0x357adf(_0x2e26df._0x36824e,_0x2e26df._0x2ac499,0x199,0x331)][_0x357adf(0x274,_0x2e26df._0x270c39,0xe6,0xba)](_0x4b6fa0,_0x13ab51[_0x357adf(_0x2e26df._0xc78a12,0x262,0x2f7,0x31c)]);}typeof _0x5e9d70['text']===_0x39f04d(_0x2e26df._0xfbc59c,0x4c7,0x669,_0x2e26df._0x296e3e)&&_0x1f7fcd[_0x357adf(_0x2e26df._0xb768f0,0x16a,_0x2e26df._0x5f31ab,0x9d)][_0x39f04d(0x3c7,0x495,0x3f3,0x406)](0x0,_0x5e9d70[_0x39f04d(_0x2e26df._0x2b93f7,_0x2e26df._0x4d0e05,_0x2e26df._0x4f9266,_0x2e26df._0x282d76)]);}break;}case'response.reasoning_summary_text.delta':{const _0x299eed=typeof _0xfa6a54[_0x39f04d(_0x2e26df._0x654d49,_0x2e26df._0x176860,0x42c,0x446)]===_0x39f04d(_0x2e26df._0x20503e,_0x2e26df._0x6fb31a,_0x2e26df._0x3c3b80,_0x2e26df._0x296e3e)?_0xfa6a54[_0x357adf(_0x2e26df._0x4b81ae,0x1d6,_0x2e26df._0x55c7d9,0x2b0)]:'',_0x5a17ca=typeof _0xfa6a54[_0x39f04d(0x58b,0x421,_0x2e26df._0x36bba4,0x505)]==='string'?_0xfa6a54[_0x357adf(0x295,_0x2e26df._0x34b43a,0x228,0x1e8)]:typeof _0xfa6a54['output_index']===_0x357adf(0x2c5,0x2e8,_0x2e26df._0x10c035,_0x2e26df._0xef194f)?this[_0x39f04d(_0x2e26df._0x31cfe1,0x4ad,_0x2e26df._0x758288,0x493)][_0x357adf(_0x2e26df._0x39bca4,_0x2e26df._0x27e1fe,_0x2e26df._0x3b4d2a,_0x2e26df._0xb768f0)](_0xfa6a54['output_index']):void 0x0,_0x3ae22=typeof _0xfa6a54['output_index']==='number'?_0xfa6a54[_0x39f04d(_0x2e26df._0x6fb31a,0x59c,0x400,0x4d1)]:0x0,_0x1b4c42=typeof _0xfa6a54[_0x39f04d(_0x2e26df._0x1ad1fc,_0x2e26df._0x2e7228,_0x2e26df._0x5ea916,0x520)]===_0x39f04d(_0x2e26df._0x45688f,_0x2e26df._0x4f32e0,0x5c4,0x558)?_0xfa6a54[_0x39f04d(0x52a,0x525,0x496,0x520)]:0x0;if(_0x5a17ca&&_0x299eed['length']>0x0){const _0x570091=this[_0x39f04d(_0x2e26df._0x1b6c60,0x5fb,0x552,0x580)](_0x5a17ca,_0x3ae22);_0x570091[_0x357adf(_0x2e26df._0x1f266f,0x276,_0x2e26df._0x9df4d3,0x1d7)]['set'](_0x1b4c42,''+(_0x570091['summaryByIndex'][_0x39f04d(_0x2e26df._0x3db9a8,_0x2e26df._0x37c52e,0x4cf,0x4c2)](_0x1b4c42)??'')+_0x299eed);if(isUserVisibleReasoning(this[_0x39f04d(0x455,_0x2e26df._0x47a085,0x41c,_0x2e26df._0x3d584f)]))return[{'type':_0x39f04d(_0x2e26df._0x5351c3,_0x2e26df._0x54a3fb,_0x2e26df._0x4c5029,_0x2e26df._0x31b4ee),'delta':_0x299eed,'itemId':_0x5a17ca,'outputIndex':_0x3ae22,'summaryIndex':_0x1b4c42}];}break;}case'response.reasoning_summary_text.done':{const _0x2cb616=typeof _0xfa6a54[_0x39f04d(0x581,0x470,_0x2e26df._0x3d613d,_0x2e26df._0xa27a1c)]===_0x357adf(_0x2e26df._0x37caa6,_0x2e26df._0x46501,0x245,0x3b1)?_0xfa6a54[_0x357adf(_0x2e26df._0x326dc8,_0x2e26df._0x34b43a,0x2de,0x1dc)]:typeof _0xfa6a54['output_index']===_0x39f04d(_0x2e26df._0x270dba,_0x2e26df._0x5194f7,0x4ad,_0x2e26df._0xc36e5d)?this['outputIndexToReasoningId']['get'](_0xfa6a54[_0x357adf(0x18a,_0x2e26df._0x55ed16,0x321,0x249)]):void 0x0,_0x9fec05=typeof _0xfa6a54[_0x357adf(_0x2e26df._0x4db78c,_0x2e26df._0x45e2db,_0x2e26df._0x54d311,0x24e)]==='number'?_0xfa6a54[_0x357adf(0x2ca,0x261,_0x2e26df._0x1c677a,_0x2e26df._0x2ef546)]:0x0,_0x39b1d6=typeof _0xfa6a54[_0x357adf(_0x2e26df._0x326dc8,_0x2e26df._0x3451ca,0x1e1,0x20c)]===_0x357adf(0x375,0x2e8,0x38f,_0x2e26df._0x45ca47)?_0xfa6a54[_0x39f04d(_0x2e26df._0x43fadf,0x58d,0x5dd,0x520)]:0x0,_0x129c8d=typeof _0xfa6a54['text']==='string'?_0xfa6a54[_0x39f04d(0x5b7,0x502,0x550,_0x2e26df._0x282d76)]:'';_0x2cb616&&this[_0x357adf(_0x2e26df._0x3e5342,_0x2e26df._0x3d5e06,_0x2e26df._0x2ddc1a,0x3ed)](_0x2cb616,_0x9fec05)[_0x39f04d(0x504,_0x2e26df._0x3acbe5,_0x2e26df._0x2bf706,0x4e6)][_0x39f04d(_0x2e26df._0x4aaacc,_0x2e26df._0x1bd258,0x4ce,0x406)](_0x39b1d6,_0x129c8d);break;}case _0x357adf(0x254,0x17b,0x18d,0x1a3):{const _0x1326b9=typeof _0xfa6a54[_0x39f04d(0x507,_0x2e26df._0x4c618a,_0x2e26df._0x758288,0x446)]===_0x39f04d(_0x2e26df._0x4e4183,0x4d6,0x52a,0x57c)?_0xfa6a54[_0x39f04d(_0x2e26df._0x506d1a,_0x2e26df._0x4de26b,0x4d0,_0x2e26df._0x2871d0)]:'',_0x54c420=typeof _0xfa6a54[_0x357adf(0x338,0x295,0x35c,0x237)]===_0x357adf(_0x2e26df._0x5a08b3,_0x2e26df._0x46501,_0x2e26df._0x215be3,0x39c)?_0xfa6a54[_0x39f04d(0x568,0x5e5,0x4f9,0x505)]:typeof _0xfa6a54['output_index']==='number'?this['outputIndexToReasoningId']['get'](_0xfa6a54[_0x39f04d(0x420,_0x2e26df._0x3cc528,_0x2e26df._0x4dd188,_0x2e26df._0x58082e)]):void 0x0,_0x33c996=typeof _0xfa6a54[_0x39f04d(0x45f,_0x2e26df._0x13ce5a,0x41a,0x4d1)]===_0x39f04d(_0x2e26df._0x1f0e21,_0x2e26df._0x3975b5,0x5c0,0x558)?_0xfa6a54[_0x39f04d(_0x2e26df._0x112e6b,0x496,_0x2e26df._0x431166,_0x2e26df._0x1212f7)]:0x0,_0x375a8b=typeof _0xfa6a54[_0x39f04d(0x4a8,_0x2e26df._0x588aee,0x55e,_0x2e26df._0x400d28)]===_0x357adf(_0x2e26df._0x2f9e9d,_0x2e26df._0x12a2d2,_0x2e26df._0x49f37d,_0x2e26df._0x40bdb4)?_0xfa6a54[_0x357adf(_0x2e26df._0x41feec,_0x2e26df._0x45595b,0x2da,_0x2e26df._0x2db32b)]:0x0;if(_0x54c420&&_0x1326b9[_0x39f04d(_0x2e26df._0x1a97a1,_0x2e26df._0x3c0bc3,0x57f,_0x2e26df._0x5bab61)]>0x0){const _0x540378=this[_0x357adf(_0x2e26df._0x2bfe37,_0x2e26df._0x418bcb,0x224,0x338)](_0x54c420,_0x33c996);_0x540378[_0x39f04d(0x429,0x319,0x40d,0x3da)]['set'](_0x375a8b,''+(_0x540378[_0x357adf(0x1d6,_0x2e26df._0x3a63a9,0xe3,0x133)][_0x39f04d(0x3e8,0x3d6,_0x2e26df._0x6b024d,0x4c2)](_0x375a8b)??'')+_0x1326b9);if(isUserVisibleReasoning(this['request']))return[{'type':'openai_reasoning_delta','contentIndex':_0x375a8b,'delta':_0x1326b9,'itemId':_0x54c420,'outputIndex':_0x33c996}];}break;}case'response.reasoning_text.done':{const _0x574510=typeof _0xfa6a54[_0x357adf(0x36d,_0x2e26df._0x34b43a,_0x2e26df._0x689573,_0x2e26df._0x40bffc)]===_0x39f04d(_0x2e26df._0x296e3e,0x601,_0x2e26df._0x2a5b92,0x57c)?_0xfa6a54[_0x39f04d(0x55d,0x422,_0x2e26df._0x5b82d3,0x505)]:typeof _0xfa6a54[_0x357adf(_0x2e26df._0x4d6706,_0x2e26df._0x4d4d3d,0x232,0x2cf)]==='number'?this[_0x39f04d(_0x2e26df._0x214c3f,0x54f,0x3d0,0x493)][_0x357adf(_0x2e26df._0xce3bfb,_0x2e26df._0x4eb3a4,_0x2e26df._0x4c2818,0x308)](_0xfa6a54[_0x357adf(_0x2e26df._0x5da509,_0x2e26df._0x3935c9,0x27b,_0x2e26df._0x18ff0b)]):void 0x0,_0x42e02a=typeof _0xfa6a54['output_index']===_0x39f04d(_0x2e26df._0x103120,0x4e7,_0x2e26df._0x2d2159,_0x2e26df._0x29b932)?_0xfa6a54['output_index']:0x0,_0x2d4feb=typeof _0xfa6a54['content_index']==='number'?_0xfa6a54[_0x357adf(0x2dd,0x228,0x2ae,0x1e5)]:0x0,_0x388496=typeof _0xfa6a54[_0x357adf(0x1bd,_0x2e26df._0x4ba32b,_0x2e26df._0x2c23dd,0x1e7)]==='string'?_0xfa6a54['text']:'';_0x574510&&this[_0x39f04d(0x605,_0x2e26df._0x1b3d83,_0x2e26df._0x31bfa5,0x580)](_0x574510,_0x42e02a)['textByIndex'][_0x39f04d(_0x2e26df._0x184261,_0x2e26df._0x57bf65,_0x2e26df._0x332c73,0x406)](_0x2d4feb,_0x388496);break;}case _0x39f04d(_0x2e26df._0x3d613d,_0x2e26df._0xb6b490,_0x2e26df._0x5c0bab,0x4b7):{this[_0x39f04d(_0x2e26df._0x30aa75,_0x2e26df._0x4a39f5,0x4dd,0x4c8)]=_0xfa6a54[_0x357adf(0x243,_0x2e26df._0x85b942,_0x2e26df._0x575727,_0x2e26df._0x578151)];break;}case _0x357adf(0x280,_0x2e26df._0x30a669,0x315,_0x2e26df._0x16aed6):{const _0x54b768=_0xfa6a54[_0x357adf(_0x2e26df._0x2d8e93,_0x2e26df._0x2fd9b7,0x2ff,0x24e)];throw new ProviderStreamEventError(_0x54b768?.['error']?.['message']??'Responses\x20stream\x20failed',{'code':_0x54b768?.['error']?.['code'],'retryable':!![]});}case'error':{const _0x20f114=_0xfa6a54[_0x39f04d(0x37b,0x332,0x322,_0x2e26df._0x679cef)];throw new ProviderStreamEventError(_0x20f114?.[_0x39f04d(0x3fc,_0x2e26df._0xfe554f,0x377,_0x2e26df._0x5bcb08)]??_0x357adf(0x2ee,0x239,0x1c0,_0x2e26df._0x1ee7a5),{'code':_0x20f114?.[_0x357adf(_0x2e26df._0x108fc2,_0x2e26df._0x126434,_0x2e26df._0x50e0b1,_0x2e26df._0x14be48)],'retryable':!![],'status':typeof _0xfa6a54[_0x39f04d(0x607,_0x2e26df._0x4b2aaf,_0x2e26df._0x367a80,_0x2e26df._0x33db20)]==='number'?_0xfa6a54[_0x39f04d(_0x2e26df._0x37a890,0x4cc,_0x2e26df._0x4a39f5,_0x2e26df._0x33db20)]:void 0x0});}}function _0x357adf(_0x3f3619,_0x398fcf,_0x116631,_0x204422){return _0x1818aa(_0x3f3619-0x18c,_0x3f3619,_0x116631-0xa9,_0x398fcf-_0x29e04e._0x15860a);}function _0x39f04d(_0x42558c,_0x4d52c0,_0x2a305c,_0x17a666){return _0x2d9e9f(_0x42558c-0x10d,_0x2a305c,_0x17a666-_0x271692._0x4a18c1,_0x17a666-0xb5);}return[];}[_0x1818aa(0x40,-0x60,0x61,-0x4f)](){const _0x2bb71f={_0x5b9716:0x479,_0x160bcb:0x4d8,_0x330dd6:0x474,_0x1dafa5:0x48c,_0x5efd12:0x56,_0x3310d1:0x1e9,_0x1c2ae2:0x1a,_0x40adea:0xdb,_0x3c48a0:0x342,_0x790641:0x468,_0x127fd9:0x4f8,_0x2883fa:0x1d3,_0x6ed885:0x189,_0x440d98:0x165,_0x5ccbd9:0x446,_0x2b297b:0x433,_0x1fa7d7:0x51a,_0x438726:0x4a1,_0x352dc7:0x78,_0x3c543b:0x13,_0x1476a0:0x258,_0xb20cc2:0xf,_0x43e066:0xca,_0x17c66c:0xed,_0x48b833:0x47c,_0x42ad94:0x4ae,_0x4b2516:0x10,_0x461df5:0xfb,_0x15c11d:0x449,_0x2ed468:0x535,_0x4fa2dd:0x527,_0x33140c:0x44f,_0x25155d:0x405,_0x395b30:0x1e8,_0x4c22f6:0x150,_0x505b7e:0x23a,_0x55321c:0x422,_0x233b01:0x26f,_0x30bc8e:0x1d6,_0x22fe28:0x231,_0x521423:0x1d9,_0x4a5cf7:0x9b,_0x20426e:0x3a7,_0x1fef13:0x38e,_0x36e680:0x41f,_0x5094f2:0x4a0,_0x13cb87:0x544,_0x834108:0x458,_0x149b92:0xde,_0x14d7df:0x7f,_0x2ca1cc:0x341,_0x21d3e0:0x2a0,_0x4a9e48:0x33b,_0x525002:0x379,_0x22d094:0x37d,_0x332e58:0x2a6,_0x22dadd:0x34a,_0x5d2956:0x33b,_0xca30d0:0x271,_0x41f0bf:0x3a9,_0x79b748:0x4eb,_0x177986:0x41a},_0x366efa={_0x59ad22:0x16a},_0x254b16=[];function _0x5268c1(_0x5790f1,_0x2df077,_0x6ef0c6,_0x526e04){return _0x2d9e9f(_0x5790f1-_0x366efa._0x59ad22,_0x5790f1,_0x2df077- -0x4d6,_0x526e04-0x59);}for(const [_0xe9809e,_0x381697]of this[_0x559290(_0x2bb71f._0x5b9716,_0x2bb71f._0x160bcb,_0x2bb71f._0x330dd6,_0x2bb71f._0x1dafa5)][_0x5268c1(-0xb1,-0xfb,-0x4c,-_0x2bb71f._0x5efd12)]()){const _0x6a9ba9=_0x381697[_0x5268c1(-0x209,-_0x2bb71f._0x3310d1,-0x2d1,-0x128)]('');if(_0x6a9ba9[_0x5268c1(-0x1b9,-0xde,-_0x2bb71f._0x1c2ae2,-_0x2bb71f._0x40adea)]===0x0)continue;_0x254b16['push']({'index':_0xe9809e,'item':{'type':_0x559290(0x331,0x38e,0x31d,_0x2bb71f._0x3c48a0),'role':'assistant','content':[{'type':'output_text','text':_0x6a9ba9}]}});}function _0x559290(_0x99b144,_0x41b02f,_0x318f7b,_0x21ff6f){return _0x2d9e9f(_0x99b144-0x95,_0x99b144,_0x318f7b-0x43,_0x21ff6f-0xf3);}for(const _0x374a59 of this[_0x559290(_0x2bb71f._0x790641,_0x2bb71f._0x127fd9,0x4ea,0x46c)][_0x5268c1(-_0x2bb71f._0x2883fa,-0x172,-_0x2bb71f._0x6ed885,-_0x2bb71f._0x440d98)]()){_0x254b16['push']({'index':_0x374a59['outputIndex']??_0x254b16[_0x559290(_0x2bb71f._0x5ccbd9,0x440,0x43b,0x510)],'item':{'type':'reasoning','id':_0x374a59['id'],..._0x374a59[_0x559290(_0x2bb71f._0x2b297b,_0x2bb71f._0x1fa7d7,_0x2bb71f._0x438726,0x53b)]?{'encrypted_content':_0x374a59[_0x5268c1(0x62,-_0x2bb71f._0x352dc7,-0x6c,_0x2bb71f._0x3c543b)]}:{},..._0x374a59['summaryByIndex'][_0x559290(0x381,_0x2bb71f._0x1476a0,0x345,0x31d)]>0x0?{'summary':Array[_0x5268c1(-_0x2bb71f._0xb20cc2,-_0x2bb71f._0x43e066,-_0x2bb71f._0x17c66c,-0x6b)](_0x374a59[_0x559290(_0x2bb71f._0x48b833,0x51c,0x43d,_0x2bb71f._0x42ad94)][_0x5268c1(-_0x2bb71f._0x4b2516,-_0x2bb71f._0x461df5,-0xe5,-0xf2)]())[_0x559290(_0x2bb71f._0x15c11d,0x4fd,0x453,0x4af)]((_0x4cc2aa,_0x4b4705)=>_0x4cc2aa[0x0]-_0x4b4705[0x0])[_0x559290(0x398,0x2ca,0x343,0x289)](([,_0x3c0cf6])=>{return{'type':'summary_text','text':_0x3c0cf6};})}:{},..._0x374a59['textByIndex']['size']>0x0?{'text':Array[_0x559290(_0x2bb71f._0x2ed468,_0x2bb71f._0x4fa2dd,_0x2bb71f._0x33140c,_0x2bb71f._0x25155d)](_0x374a59[_0x5268c1(-0x24a,-_0x2bb71f._0x395b30,-_0x2bb71f._0x4c22f6,-_0x2bb71f._0x505b7e)][_0x559290(0x333,0x349,0x41e,_0x2bb71f._0x55321c)]())['sort']((_0x46e742,_0x1567d3)=>_0x46e742[0x0]-_0x1567d3[0x0])[_0x5268c1(-_0x2bb71f._0x233b01,-_0x2bb71f._0x30bc8e,-_0x2bb71f._0x22fe28,-_0x2bb71f._0x521423)](([,_0x49544e])=>_0x49544e)['join']('')}:{}}});}for(const _0x1ab392 of this[_0x5268c1(-0x12,-0xbe,-_0x2bb71f._0x4a5cf7,-0x100)][_0x559290(0x3fd,0x369,_0x2bb71f._0x20426e,_0x2bb71f._0x1fef13)]()){_0x254b16['push']({'index':this[_0x559290(0x57b,_0x2bb71f._0x36e680,_0x2bb71f._0x5094f2,_0x2bb71f._0x13cb87)][_0x559290(_0x2bb71f._0x834108,0x356,0x419,0x498)](_0x1ab392['id'])??_0x254b16[_0x5268c1(-0xc3,-_0x2bb71f._0x149b92,-_0x2bb71f._0x14d7df,-0x18b)],'item':{'type':_0x559290(0x31d,_0x2bb71f._0x2ca1cc,0x3f6,0x3d2),'call_id':_0x1ab392['id'],'name':_0x1ab392[_0x559290(0x30d,_0x2bb71f._0x21d3e0,_0x2bb71f._0x4a9e48,0x3b7)][_0x559290(0x463,_0x2bb71f._0x525002,_0x2bb71f._0x22d094,_0x2bb71f._0x332e58)],'arguments':_0x1ab392[_0x559290(0x319,_0x2bb71f._0x22dadd,_0x2bb71f._0x5d2956,_0x2bb71f._0xca30d0)][_0x559290(_0x2bb71f._0x41f0bf,_0x2bb71f._0x79b748,_0x2bb71f._0x177986,0x4ec)]}});}return _0x254b16['sort']((_0x14d02f,_0x48288a)=>_0x14d02f[_0x559290(0x442,0x2dd,0x3bb,0x301)]-_0x48288a[_0x559290(0x3af,0x331,0x3bb,0x485)])['map'](_0x29ba7e=>_0x29ba7e[_0x5268c1(-0xfd,-0x102,-0xfc,-0x7a)]);}[_0x2d9e9f(0x408,0x4b4,0x494,0x4b3)](_0x118e13,_0x3514d9){const _0x19ab9f={_0x39b779:0x295,_0x46ba10:0x274,_0x45028c:0x242,_0x2b2ada:0x283,_0xe1ff9:0x1a2,_0x4e16de:0x290,_0x2e19f5:0x207,_0x50768b:0x245,_0x1ed04a:0x1d6,_0x234736:0x1b8,_0xd4b577:0x40e,_0x2e42a5:0x312},_0x541d64={_0x5081e5:0x17e},_0x578ae9={_0x209795:0x1ba,_0x4ee661:0x3b4};function _0x465a6b(_0xb341ea,_0x2dfb4a,_0xa47dde,_0xb9c969){return _0x2d9e9f(_0xb341ea-_0x578ae9._0x209795,_0xb9c969,_0x2dfb4a- -_0x578ae9._0x4ee661,_0xb9c969-0x93);}const _0xa99d77=this['reasoningItems'][_0x5dc737(_0x19ab9f._0x39b779,0x21e,0x292,_0x19ab9f._0x46ba10)](_0x118e13);if(_0xa99d77)return _0x3514d9!==void 0x0&&(_0xa99d77[_0x5dc737(_0x19ab9f._0x45028c,0xee,_0x19ab9f._0x2b2ada,0x19f)]=_0x3514d9,this[_0x5dc737(_0x19ab9f._0xe1ff9,_0x19ab9f._0x4e16de,_0x19ab9f._0x2e19f5,_0x19ab9f._0x50768b)][_0x5dc737(0x220,0x10d,_0x19ab9f._0x1ed04a,_0x19ab9f._0x234736)](_0x3514d9,_0x118e13)),_0xa99d77;function _0x5dc737(_0x194704,_0x12da86,_0x573aaa,_0x9a9622){return _0x1818aa(_0x194704-0x106,_0x12da86,_0x573aaa-_0x541d64._0x5081e5,_0x9a9622-0x271);}const _0x2ae700={'id':_0x118e13,'outputIndex':_0x3514d9,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x5dc737(0x2ba,_0x19ab9f._0xd4b577,_0x19ab9f._0x2e42a5,0x345)]['set'](_0x118e13,_0x2ae700),_0x3514d9!==void 0x0&&this['outputIndexToReasoningId']['set'](_0x3514d9,_0x118e13),_0x2ae700;}};function createOpenAiResponsesStreamParser(_0x1f2dff){return new OpenAiResponsesStreamParser(_0x1f2dff);}function createOpenAiSurfaces(_0x3a4bbe={}){const _0x4bba21={_0x3e13f9:0x455,_0x272654:0x3bc,_0x3243b5:0x399,_0x5f1691:0x451,_0x10a24e:0x52d,_0x3b01b5:0x38b,_0x35d2e4:0x2fc,_0x2d566b:0x3d4,_0x497caa:0x5a8,_0x11c752:0x50a,_0xa29e5b:0x3f2,_0x15ffea:0x39c,_0x381aeb:0x3f8,_0x131127:0x54d},_0x5f18a7={_0x3743c5:0x85,_0x2a82f5:0xd},_0xf864e6={_0x3ba24f:0x177,_0x3d8bb4:0x1cb},_0x1b7162={_0x48179f:0x323,_0x2f9c9e:0x22e,_0x250796:0x243},_0x17b222={_0x23f36f:0xa9,_0x3490fa:0x22},_0x239bbe={_0x49b07f:0x2c5,_0x1c6f05:0x34f},_0x5a9332={_0xaae39a:0xe},_0x5a8380={_0x491563:0x1bd,_0xf2153b:0x136},_0x597da5={_0x3cbc15:0x1a6,_0x47b5e1:0x5f,_0x3460bb:0x49e},_0x30c774={_0x42ee17:0x54},_0x470f44=_0x3a4bbe[_0x17d869(_0x4bba21._0x3e13f9,0x43c,_0x4bba21._0x272654,_0x4bba21._0x3243b5)]??'/chat/completions',_0x31b2ce=_0x3a4bbe[_0x221198(0x574,_0x4bba21._0x5f1691,0x4c5,_0x4bba21._0x10a24e)]??_0x221198(_0x4bba21._0x3b01b5,0x3ea,0x439,0x408);function _0x17d869(_0x5acd1f,_0x94b2d5,_0x16292b,_0x2802f6){return _0x2d9e9f(_0x5acd1f-_0x30c774._0x42ee17,_0x16292b,_0x5acd1f-0xe9,_0x2802f6-0x14a);}function _0x221198(_0xbfea4c,_0x180067,_0x413657,_0x29b8ee){return _0x1818aa(_0xbfea4c-_0x597da5._0x3cbc15,_0x180067,_0x413657-_0x597da5._0x47b5e1,_0x29b8ee-_0x597da5._0x3460bb);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x221198(0x3bf,_0x4bba21._0x35d2e4,0x389,_0x4bba21._0x2d566b),'createRequest'(_0x2a6afe){function _0x37436d(_0x23fef2,_0x349efc,_0x257e45,_0x4781ab){return _0x221198(_0x23fef2-_0x5a8380._0x491563,_0x349efc,_0x257e45-_0x5a8380._0xf2153b,_0x4781ab- -0x43b);}return{'accept':_0x37436d(-0x56,_0x5a9332._0xaae39a,-0xaf,-0x8c),'body':createChatRequestBody(_0x2a6afe,![]),'path':_0x470f44};},'parseResponse'(_0x519cc0){return parseChatCompletionResponse(_0x519cc0);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x221198(0x4c9,_0x4bba21._0x497caa,0x4e2,_0x4bba21._0x11c752),'createRequest'(_0x12a375){const _0xfb6739={_0x3bd51c:0x1a2};function _0x3b76d7(_0x229321,_0xca6f88,_0x1eed6d,_0x275e60){return _0x221198(_0x229321-_0xfb6739._0x3bd51c,_0x229321,_0x1eed6d-0x163,_0x275e60- -0x6bb);}return{'accept':_0x3b76d7(-_0x239bbe._0x49b07f,-0x200,-_0x239bbe._0x1c6f05,-0x2b1),'body':createChatRequestBody(_0x12a375,!![]),'path':_0x470f44};},'createStreamParser'(_0x7229a2){return new OpenAiChatCompletionsStreamParser(_0x7229a2);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x17d869(_0x4bba21._0xa29e5b,_0x4bba21._0x15ffea,0x415,_0x4bba21._0x381aeb),'createRequest'(_0x27a136){function _0x1be7d3(_0x4b7846,_0x3e22a7,_0x592089,_0x43a59f){return _0x17d869(_0x4b7846- -0x187,_0x3e22a7-_0x17b222._0x23f36f,_0x43a59f,_0x43a59f-_0x17b222._0x3490fa);}return{'accept':_0x1be7d3(0x246,_0x1b7162._0x48179f,_0x1b7162._0x2f9c9e,_0x1b7162._0x250796),'body':createResponsesRequestBody(_0x27a136,![]),'path':_0x31b2ce};},'parseResponse'(_0x37ac5b,_0x40de96){return parseResponsesResponse(_0x37ac5b,_0x40de96);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0xc6142){function _0x21e516(_0x36e9c2,_0x2c1d6f,_0x3b831f,_0x1cb560){return _0x221198(_0x36e9c2-_0xf864e6._0x3ba24f,_0x36e9c2,_0x3b831f-_0xf864e6._0x3d8bb4,_0x1cb560- -0x3fd);}return{'accept':_0x21e516(_0x5f18a7._0x3743c5,-0x11,0x53,_0x5f18a7._0x2a82f5),'body':createResponsesRequestBody(_0xc6142,!![]),'path':_0x31b2ce};},'createStreamParser'(_0x319e6d){return new OpenAiResponsesStreamParser(_0x319e6d);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x17d869(0x4d1,0x4d7,_0x4bba21._0x131127,0x57b),'createRequest'(_0x4e4bf8){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x4e4bf8),'path':_0x31b2ce};},'createStreamParser'(_0x511962){return createOpenAiResponsesStreamParser(_0x511962);}}];}var OpenAiProviderAdapter=class{[_0x2d9e9f(0x420,0x42a,0x478,0x3ce)];constructor(_0x44c6c3){const _0x34b679={_0x2dbf48:0x0};function _0x56d734(_0x2bf62e,_0x4b0165,_0x49d312,_0x374c98){return _0x2d9e9f(_0x2bf62e-_0x34b679._0x2dbf48,_0x49d312,_0x2bf62e-0xec,_0x374c98-0x18e);}this[_0x56d734(0x564,0x538,0x53e,0x588)]=_0x44c6c3;}['createMissingCredentialError'](){const _0x4dfe4b={_0x5c0fc2:0x118},_0x5d7322={_0x45735f:0x198};function _0x3ab57e(_0x1d5b05,_0x318556,_0x28325f,_0x3d0295){return _0x2d9e9f(_0x1d5b05-_0x5d7322._0x45735f,_0x1d5b05,_0x28325f- -0x2e0,_0x3d0295-0x14b);}return new Error(_0x3ab57e(-0x17,0x7e,0x41,_0x4dfe4b._0x5c0fc2));}async['createHeaders'](_0x16c3f1,_0x1150f1){const _0xeb16d1={_0x4edc3a:0x15b,_0x353d1a:0xb0,_0x328b42:0x12b,_0x5b3b02:0x180,_0x2e6761:0xc4,_0x2c2a90:0x177,_0x1a0428:0x188,_0x2581fe:0x19b,_0x6d2382:0x19d,_0x14f697:0x15c,_0x384496:0x23f,_0x26d885:0x1ea,_0x211ecd:0xcf,_0x2aecc5:0x133,_0x5a3ec0:0x1c0,_0x238b88:0xf8,_0x5b07a8:0x78,_0x262861:0x26,_0x2683b5:0x9e,_0x18d3a6:0x37,_0x5e0ef6:0x9c,_0x542209:0x28b,_0x5ca2f4:0x289,_0x51d837:0xd4,_0x211b51:0x259,_0x555448:0x146,_0x4fe29e:0x18f,_0x387191:0xcb,_0x48200c:0x122,_0x73ce86:0xbc,_0x28b500:0x196},_0x18c260={_0x44604f:0x107,_0x460649:0x175},_0x5712ab={_0x214f12:0x1b4,_0x41bd75:0x1ef,_0x27b728:0x18a},_0x444179=new Headers();_0x444179[_0x3fc2b8(_0xeb16d1._0x4edc3a,_0xeb16d1._0x353d1a,_0xeb16d1._0x328b42,_0xeb16d1._0x5b3b02)](_0x98980e(_0xeb16d1._0x2e6761,0x12e,_0xeb16d1._0x2c2a90,0xb9),_0x1150f1[_0x3fc2b8(_0xeb16d1._0x1a0428,_0xeb16d1._0x2581fe,_0xeb16d1._0x6d2382,_0xeb16d1._0x14f697)]),_0x444179['set'](_0x3fc2b8(_0xeb16d1._0x384496,0x226,0x225,0x1c4),_0x98980e(0xec,0x17b,0x193,_0xeb16d1._0x26d885)+_0x16c3f1['credential'][_0x3fc2b8(0x129,_0xeb16d1._0x211ecd,_0xeb16d1._0x2aecc5,0xc2)]);function _0x3fc2b8(_0x4bce52,_0x53a93c,_0x1a94ea,_0x3b8f68){return _0x2d9e9f(_0x4bce52-_0x5712ab._0x214f12,_0x53a93c,_0x1a94ea- -_0x5712ab._0x41bd75,_0x3b8f68-_0x5712ab._0x27b728);}_0x1150f1[_0x98980e(_0xeb16d1._0x5a3ec0,0x15e,_0xeb16d1._0x238b88,_0xeb16d1._0x5b07a8)]!==![]&&_0x444179['set'](_0x98980e(-_0xeb16d1._0x262861,_0xeb16d1._0x2683b5,_0xeb16d1._0x18d3a6,_0xeb16d1._0x5e0ef6),_0x98980e(0x15a,0x86,0x3d,0x11d));function _0x98980e(_0x4b89a8,_0x5ce31b,_0x203756,_0x187d06){return _0x1818aa(_0x4b89a8-_0x18c260._0x44604f,_0x4b89a8,_0x203756-0xfa,_0x5ce31b-_0x18c260._0x460649);}const _0x2fd91d=await this[_0x3fc2b8(_0xeb16d1._0x542209,0x1e4,_0xeb16d1._0x5ca2f4,0x245)]?.({'body':_0x16c3f1[_0x98980e(0x1db,0x1b4,_0xeb16d1._0x51d837,_0xeb16d1._0x211b51)],'credential':_0x16c3f1[_0x3fc2b8(0x12b,0x147,_0xeb16d1._0x555448,0x168)],'request':_0x16c3f1[_0x98980e(0x164,_0xeb16d1._0x4fe29e,0xf8,0x205)],'session':_0x16c3f1['session'],'stream':_0x16c3f1[_0x98980e(0x1a7,_0xeb16d1._0x387191,0xc3,_0xeb16d1._0x48200c)]});for(const [_0x3a4383,_0x432f56]of Object['entries'](_0x2fd91d??{})){_0x444179[_0x98980e(0x3b,_0xeb16d1._0x73ce86,0x6b,_0xeb16d1._0x28b500)](_0x3a4383,_0x432f56);}return _0x444179;}[_0x1818aa(-0x41,-0x3a,-0x16,-0x58)](_0xa87690){return _0xa87690;}[_0x2d9e9f(0x362,0x330,0x365,0x36b)](_0xf88767,_0x43c3ea){return resolveSessionBaseUrl(_0xf88767,_0x43c3ea);}[_0x1818aa(-0xd7,-0x1a,-0x5f,-0x15)](_0x26e984,_0x4e6edf){return resolveApiCredential(_0x26e984,_0x4e6edf);}async['toApiError'](_0x195b5b){return await createOpenAiApiError(_0x195b5b);}},OpenAiModel=class extends RoutedModel{[_0x2d9e9f(0x4f2,0x46c,0x42c,0x428)]=new Map();[_0x1818aa(-0xf7,-0xcf,-0x3,-0x67)];[_0x2d9e9f(0x546,0x42a,0x462,0x453)];constructor(_0x3d055e={}){const _0x1389df={_0xa24ed7:0x55d,_0x5eadf9:0x4fc,_0x501957:0x4c0,_0x4cd480:0x560,_0x27d818:0x2d6,_0x585b55:0x660,_0x3d033c:0x5c0,_0x1b337b:0x659,_0x145763:0x539,_0x3d7bf1:0x40d,_0x4876ed:0x54d,_0x4b87c6:0x5a0,_0x19b23b:0x60f,_0x432e99:0x1a7,_0x59b906:0x224,_0x3743e3:0x4ee,_0x462a1d:0x576,_0xf4221c:0x1d9,_0x429f35:0x246,_0x15d4d2:0x1f8,_0x5c98ce:0x2d0},_0xb1e849={_0x40d537:0xc8,_0x3a3f6c:0x1c7,_0x57f32f:0x13a};function _0x3533b2(_0x4f1e3d,_0x306953,_0x39221b,_0x41aa6f){return _0x2d9e9f(_0x4f1e3d-_0xb1e849._0x40d537,_0x41aa6f,_0x39221b-_0xb1e849._0x3a3f6c,_0x41aa6f-_0xb1e849._0x57f32f);}function _0x3dc39f(_0x23cfc2,_0x574bc4,_0x1a8caa,_0x259871){return _0x1818aa(_0x23cfc2-0x1a3,_0x259871,_0x1a8caa-0x5b,_0x574bc4-0x25f);}const _0x2152f2=_0x3d055e[_0x3533b2(0x41d,_0x1389df._0xa24ed7,0x4d6,_0x1389df._0x5eadf9)]??'gpt-4o',_0x4b1b96=_0x3d055e[_0x3533b2(0x5aa,0x460,_0x1389df._0x501957,0x48d)]??getDefaultMaxTokens(),_0xfd4c9e=_0x3d055e[_0x3533b2(0x58d,_0x1389df._0x4cd480,0x533,0x589)]??_0x3dc39f(0x36f,_0x1389df._0x27d818,0x382,0x28a),_0x19b338=_0x3d055e[_0x3533b2(0x5f5,_0x1389df._0x585b55,0x629,0x6b0)]??'/responses';super({'apiKey':_0x3d055e['apiKey'],'baseUrl':trimTrailingSlashes(_0x3d055e[_0x3533b2(0x644,0x62c,_0x1389df._0x3d033c,_0x1389df._0x1b337b)]??_0x3533b2(_0x1389df._0x145763,_0x1389df._0x3d7bf1,0x4b8,0x551)),'fetch':_0x3d055e[_0x3533b2(_0x1389df._0x4876ed,_0x1389df._0x4b87c6,_0x1389df._0x19b23b,0x652)],'maxTokens':_0x4b1b96,'model':_0x2152f2,'reasoning':_0x3d055e[_0x3dc39f(0x18d,_0x1389df._0x432e99,0xfb,0xfd)],'providerAdapter':new OpenAiProviderAdapter(_0x3d055e[_0x3dc39f(_0x1389df._0x59b906,0x304,0x2d5,0x3a8)]),'providerSessionResolver':_0x3d055e[_0x3533b2(0x483,_0x1389df._0x3743e3,0x519,_0x1389df._0x462a1d)],'requestMutators':_0x3d055e[_0x3dc39f(0x10c,0x1e2,0x254,_0x1389df._0xf4221c)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x3d055e['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0xfd4c9e,'responsesPath':_0x19b338}),'webSocketFactory':_0x3d055e[_0x3dc39f(0x1b7,0x251,_0x1389df._0x429f35,0x2bb)]}),this[_0x3dc39f(0x161,_0x1389df._0x15d4d2,0x14e,_0x1389df._0x5c98ce)]=_0xfd4c9e,this['responsesPath']=_0x19b338;}[_0x1818aa(-0x104,-0xb9,-0x106,-0xa9)](_0x2c67cf,_0x1f7f8f){const _0x280e77={_0x13c691:0x274,_0x578fc0:0x336,_0x1a6ce6:0x1eb},_0xd8d831={_0x28fe40:0x127};function _0x100b79(_0x23c233,_0x458518,_0x193272,_0x15304b){return _0x1818aa(_0x23c233-0xe5,_0x458518,_0x193272-_0xd8d831._0x28fe40,_0x23c233-0x32a);}return this[_0x100b79(_0x280e77._0x13c691,_0x280e77._0x578fc0,_0x280e77._0x1a6ce6,0x25d)](_0x2c67cf,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x1f7f8f);}[_0x1818aa(-0xb4,-0x17,-0x61,-0x7)](_0x5bac22,_0x159956){const _0x5b9481={_0xd67867:0x16c},_0x146a1b={_0x28bad9:0x9e};function _0x554e3f(_0x4fd62f,_0x2209bd,_0x13c00,_0x1dff52){return _0x2d9e9f(_0x4fd62f-0xb9,_0x13c00,_0x1dff52- -0x234,_0x1dff52-_0x146a1b._0x28bad9);}return this[_0x554e3f(0x10e,_0x5b9481._0xd67867,0x2a,0xe9)](_0x5bac22,OPENAI_RESPONSES_SURFACE,_0x159956);}['completeViaResponsesWebSocketSurface'](_0x1f5c44,_0x41e80b){const _0x2e7a5c={_0x28bebb:0x373,_0x9c70b1:0x3a6,_0x86ee39:0x393};function _0x2e1ad1(_0x129e2f,_0x35bfa3,_0x3e9d2d,_0x213915){return _0x2d9e9f(_0x129e2f-0x121,_0x3e9d2d,_0x129e2f-0x56,_0x213915-0x1c4);}return this[_0x2e1ad1(_0x2e7a5c._0x28bebb,_0x2e7a5c._0x9c70b1,0x35f,_0x2e7a5c._0x86ee39)](_0x1f5c44,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x41e80b);}[_0x2d9e9f(0x326,0x228,0x308,0x28d)](_0x3bd158,_0xd38789){const _0x2025e7={_0x24e87c:0x31};function _0x3fce4a(_0x56ea9f,_0x171a58,_0x1a139f,_0x2b04f1){return _0x2d9e9f(_0x56ea9f-0x7e,_0x1a139f,_0x2b04f1- -0x53a,_0x2b04f1-0xa2);}return this[_0x3fce4a(-0x7f,-_0x2025e7._0x24e87c,-0xb5,-0x9c)](_0x3bd158,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0xd38789);}[_0x2d9e9f(0x4dd,0x4b2,0x427,0x4b9)](_0x47944a,_0x506772){return this['streamViaSurface'](_0x47944a,OPENAI_RESPONSES_STREAM_SURFACE,_0x506772);}[_0x1818aa(0x128,-0x72,0x115,0x47)](_0xf9d605,_0x2d57e1){const _0x3c01c5={_0x19f924:0x264},_0x26a508={_0x10e35d:0x25b};function _0x374b8a(_0x52e177,_0x5d069a,_0x3602b2,_0x5599f4){return _0x2d9e9f(_0x52e177-0x8b,_0x5d069a,_0x5599f4- -_0x26a508._0x10e35d,_0x5599f4-0x0);}return this[_0x374b8a(0x2dc,_0x3c01c5._0x19f924,0x218,0x243)](_0xf9d605,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x2d57e1);}async[_0x2d9e9f(0x3f8,0x451,0x436,0x3bb)](_0x1b2f62,_0x5193e7){const _0x2217d9={_0x1412d5:0x3a,_0x2e5c19:0x16,_0x479ef3:0x1a2,_0x36b8ea:0x1e3},_0x529901={_0x406ff3:0x6a,_0x406c69:0x23b},_0x4507b2={_0x3fe06c:0xe3};function _0x567164(_0x54b6f5,_0x1d8b71,_0x2ae8ba,_0x438c77){return _0x1818aa(_0x54b6f5-0x1b7,_0x438c77,_0x2ae8ba-0x18,_0x54b6f5-_0x4507b2._0x3fe06c);}function _0x40b743(_0x41fbd6,_0x54dd42,_0x1c989f,_0x922931){return _0x1818aa(_0x41fbd6-_0x529901._0x406ff3,_0x41fbd6,_0x1c989f-0x8f,_0x922931-_0x529901._0x406c69);}try{return await this[_0x567164(_0x2217d9._0x1412d5,-0x64,0x30,_0x2217d9._0x2e5c19)](_0x1b2f62,_0x5193e7);}catch(_0xe2cf40){if(_0xe2cf40 instanceof OpenAiApiError)throw this[_0x40b743(_0x2217d9._0x479ef3,0x141,0x290,_0x2217d9._0x36b8ea)](_0xe2cf40);throw _0xe2cf40;}}async['response'](_0x356fa5,_0x1cad45){const _0x1b688d={_0x22a07e:0x31,_0x4cb521:0x55,_0x431ef2:0xb6,_0x15c34d:0x57},_0x48cc58={_0x2405b6:0x38},_0x3e9155={_0x30a21c:0x185};function _0x311cd8(_0x2d4c5a,_0x53a6a6,_0xc59083,_0x1c715e){return _0x1818aa(_0x2d4c5a-_0x3e9155._0x30a21c,_0x1c715e,_0xc59083-0x19f,_0x53a6a6- -0x16d);}function _0xb20771(_0x316447,_0x1af2d3,_0x1fb28d,_0x525e10){return _0x1818aa(_0x316447-0xb1,_0x316447,_0x1fb28d-0x19c,_0x1af2d3-_0x48cc58._0x2405b6);}try{return await this[_0xb20771(0x72,_0x1b688d._0x22a07e,-_0x1b688d._0x4cb521,_0x1b688d._0x431ef2)](_0x356fa5,_0x1cad45);}catch(_0xff3a8){if(_0xff3a8 instanceof OpenAiApiError)throw this[_0xb20771(-0x21,-0x20,-0xb8,_0x1b688d._0x15c34d)](_0xff3a8);throw _0xff3a8;}}async['responseSocket'](_0x11e1bf,_0x285529){const _0x519654={_0x7c0fed:0x59b,_0x4df5dc:0x5b2,_0x536dba:0x574,_0x38fddc:0x5e7,_0x40ba7f:0xb8,_0x1f3b22:0x7b,_0x407150:0xad,_0x2d4874:0x609,_0xc2944a:0x5da,_0x4627f3:0x4c9},_0x174c31={_0x3a2a04:0x8f,_0x4eacda:0xf},_0x2adf35={_0x38cafa:0xfd,_0x2d940d:0x6e,_0x3e1b03:0x55e};function _0x22bbb1(_0x298589,_0x24d5ae,_0x40303e,_0x3f013a){return _0x1818aa(_0x298589-_0x2adf35._0x38cafa,_0x40303e,_0x40303e-_0x2adf35._0x2d940d,_0x3f013a-_0x2adf35._0x3e1b03);}function _0x2f3bc2(_0xdcc21a,_0x166c92,_0x7adcbd,_0x2c07db){return _0x1818aa(_0xdcc21a-0x129,_0x2c07db,_0x7adcbd-_0x174c31._0x3a2a04,_0x166c92-_0x174c31._0x4eacda);}try{let _0x397cd3;for await(const _0x2d019e of this[_0x22bbb1(_0x519654._0x7c0fed,_0x519654._0x4df5dc,_0x519654._0x536dba,_0x519654._0x38fddc)](_0x11e1bf,_0x285529)){_0x2d019e[_0x2f3bc2(-0x2e,0xab,0x19,_0x519654._0x40ba7f)]===_0x2f3bc2(0x68,-_0x519654._0x1f3b22,-_0x519654._0x407150,-0xff)&&(_0x397cd3=_0x2d019e[_0x22bbb1(0x5b5,0x6f3,0x5ac,_0x519654._0x2d4874)]);}if(!_0x397cd3)throw new Error(_0x22bbb1(0x6a4,0x667,0x4f4,_0x519654._0xc2944a));return _0x397cd3;}catch(_0x1693ab){if(_0x1693ab instanceof OpenAiApiError)throw this[_0x22bbb1(_0x519654._0x4627f3,0x500,0x534,0x506)](_0x1693ab);throw _0x1693ab;}}async*[_0x2d9e9f(0x542,0x4a8,0x476,0x4e1)](_0x5ed5e8,_0xb09f53){const _0x1bdce1={_0xb3fa29:0x1f4,_0x3634b8:0x1c4,_0x4bc0f2:0x10c,_0x5df79e:0x74},_0x2a03df={_0x10fd6e:0xd9},_0x13f89d={_0x3dc54c:0x23,_0xa84147:0x10d};function _0x3661d7(_0x19f0f9,_0x3adae8,_0x28f242,_0x1d52a9){return _0x1818aa(_0x19f0f9-_0x13f89d._0x3dc54c,_0x1d52a9,_0x28f242-_0x13f89d._0xa84147,_0x28f242-0x201);}function _0x5a9963(_0x5f0c54,_0x6b9f3b,_0xa49cc1,_0x1c8002){return _0x2d9e9f(_0x5f0c54-0x1b3,_0x1c8002,_0xa49cc1- -0x41e,_0x1c8002-_0x2a03df._0x10fd6e);}try{yield*this[_0x3661d7(_0x1bdce1._0xb3fa29,_0x1bdce1._0x3634b8,0x136,_0x1bdce1._0x4bc0f2)](_0x5ed5e8,_0xb09f53);}catch(_0xfebf28){if(_0xfebf28 instanceof OpenAiApiError)throw this[_0x5a9963(-0xda,-_0x1bdce1._0x5df79e,-0xa3,-0x57)](_0xfebf28);throw _0xfebf28;}}async*[_0x1818aa(-0x4b,-0x98,-0x8b,-0x59)](_0x253541,_0x1006aa){const _0x3b450a={_0x12dec1:0x15d},_0xbcf31={_0xb4f797:0x18a},_0x5b6c16={_0x412cf8:0x21,_0x536764:0xd8};function _0x48d243(_0x11980f,_0x5450d9,_0x5d8957,_0x36b390){return _0x2d9e9f(_0x11980f-_0x5b6c16._0x412cf8,_0x5d8957,_0x36b390- -0x24,_0x36b390-_0x5b6c16._0x536764);}function _0x383f1b(_0x362fc3,_0x54fbf2,_0x36ea06,_0x21faa0){return _0x1818aa(_0x362fc3-0xb6,_0x36ea06,_0x36ea06-_0xbcf31._0xb4f797,_0x21faa0-0x109);}try{yield*this[_0x383f1b(0x12a,0x18b,0x205,_0x3b450a._0x12dec1)](_0x253541,_0x1006aa);}catch(_0x56a186){if(_0x56a186 instanceof OpenAiApiError)throw this[_0x383f1b(0xb4,0x151,0x69,0xb1)](_0x56a186);throw _0x56a186;}}async*['responseSocketStream'](_0x14f0c6,_0x157d1d){const _0x4f0774={_0x5d0a26:0x2d2,_0x4deee1:0x294,_0x312bcd:0x3a1,_0x129c52:0x284,_0x530544:0x4c1,_0x397f35:0x4bc},_0x55b559={_0xe69557:0x1a6,_0x4994b3:0x42};function _0xf25756(_0x457ef4,_0x17da26,_0xe1d30,_0x3a645a){return _0x1818aa(_0x457ef4-0xeb,_0xe1d30,_0xe1d30-0x1bf,_0x457ef4-0x519);}function _0xd643f8(_0x5a549c,_0x15a544,_0x276f2d,_0x541f07){return _0x2d9e9f(_0x5a549c-_0x55b559._0xe69557,_0x15a544,_0x5a549c- -_0x55b559._0x4994b3,_0x541f07-0x132);}try{yield*this[_0xd643f8(_0x4f0774._0x5d0a26,_0x4f0774._0x4deee1,_0x4f0774._0x312bcd,_0x4f0774._0x129c52)](_0x14f0c6,_0x157d1d);}catch(_0x5db430){if(_0x5db430 instanceof OpenAiApiError)throw this[_0xf25756(_0x4f0774._0x530544,0x420,_0x4f0774._0x397f35,0x45c)](_0x5db430);throw _0x5db430;}}['complete'](_0x33fa52,_0xf05871){const _0x4aaf04={_0x3f07dc:0x258},_0x3edbbc={_0x28b619:0x163};function _0x478d2e(_0x341bfc,_0x3bf4e6,_0x48c9b2,_0x55a787){return _0x1818aa(_0x341bfc-0x2b,_0x55a787,_0x48c9b2-_0x3edbbc._0x28b619,_0x48c9b2-0x1df);}return this[_0x478d2e(0x157,_0x4aaf04._0x3f07dc,0x242,0x319)](_0x33fa52,_0xf05871);}[_0x2d9e9f(0x315,0x395,0x329,0x377)](_0x6388c9,_0x2b4e57){const _0x41e2c1={_0x34d43f:0x56,_0x2d8767:0x99},_0x551208={_0x1c205e:0x16a};function _0x469d87(_0x446f3b,_0x5edca5,_0x426951,_0x166386){return _0x2d9e9f(_0x446f3b-_0x551208._0x1c205e,_0x166386,_0x426951- -0x4d2,_0x166386-0x1a3);}return this[_0x469d87(-_0x41e2c1._0x34d43f,-0xf8,-0x5c,-_0x41e2c1._0x2d8767)](_0x6388c9,_0x2b4e57);}[_0x2d9e9f(0x358,0x2b9,0x2e8,0x274)](_0x245f1f){const _0x2877a8={_0x1c2b88:0x319,_0x1a7ea3:0x384,_0x2d3fae:0x4b5,_0x437323:0x3f8,_0x17cbf5:0x10b,_0x172c14:0x24d,_0x40c11a:0x1cc,_0x375fab:0x48e,_0x25dc09:0x4d2,_0x9a65b:0x3cd,_0x17a6eb:0x3d1,_0x345215:0x2c1},_0x3786ee={_0x44b58a:0x132},_0x4ee735={_0x17a9a3:0x17c};function _0x505085(_0x12a4d3,_0x51f606,_0x19aca5,_0x497111){return _0x1818aa(_0x12a4d3-0x13b,_0x19aca5,_0x19aca5-_0x4ee735._0x17a9a3,_0x51f606-0x435);}function _0x5a365c(_0x30e4a6,_0x15ce41,_0x4f339f,_0x386580){return _0x1818aa(_0x30e4a6-0x1b3,_0x15ce41,_0x4f339f-_0x3786ee._0x44b58a,_0x386580-0x13e);}const _0x51a42c=this[_0x505085(0x31f,0x399,_0x2877a8._0x1c2b88,0x31e)](_0x245f1f);let _0x22d2e9=this['responsesSocketSessions'][_0x505085(_0x2877a8._0x1a7ea3,0x438,_0x2877a8._0x2d3fae,_0x2877a8._0x437323)](_0x51a42c);return!_0x22d2e9&&(_0x22d2e9={'key':_0x51a42c,'locked':![],'pending':Promise[_0x5a365c(_0x2877a8._0x17cbf5,_0x2877a8._0x172c14,0x137,_0x2877a8._0x40c11a)]()},this[_0x505085(0x406,_0x2877a8._0x375fab,_0x2877a8._0x25dc09,_0x2877a8._0x9a65b)][_0x505085(0x3ca,0x37c,_0x2877a8._0x17a6eb,_0x2877a8._0x345215)](_0x51a42c,_0x22d2e9)),_0x22d2e9;}[_0x1818aa(0x63,-0x18,-0xfc,-0x54)](_0x546931){const _0x55c8d5={_0x289cdf:0x578,_0x222f7d:0x49a,_0xd96b01:0x507,_0x11a317:0x4f0,_0x4e7660:0x548,_0x7d4d10:0x5ea,_0x213003:0x4df,_0x1f4fe0:0x4cd,_0x2da98c:0x5b5,_0x3919b4:0x65c,_0x34e809:0x487,_0x12b732:0x5be,_0x3144fc:0x4cc},_0x212ae6={_0x32278c:0x109},_0x1be864={_0x4384f2:0x148,_0xdbc5e8:0xd7};function _0x1cf95a(_0x11cfba,_0x132774,_0x402764,_0x1433f3){return _0x1818aa(_0x11cfba-_0x1be864._0x4384f2,_0x1433f3,_0x402764-_0x1be864._0xdbc5e8,_0x402764-0x4ef);}if(_0x546931['locked']||_0x546931[_0x1cf95a(0x537,_0x55c8d5._0x289cdf,_0x55c8d5._0x222f7d,_0x55c8d5._0xd96b01)]||_0x546931[_0x1cf95a(_0x55c8d5._0x11a317,0x563,0x545,0x5ba)])return;function _0x5893e0(_0x2e9e34,_0x1a761d,_0x4042f1,_0x4f4f3e){return _0x2d9e9f(_0x2e9e34-0x157,_0x1a761d,_0x4f4f3e-_0x212ae6._0x32278c,_0x4f4f3e-0x1e5);}this[_0x1cf95a(0x59a,0x622,_0x55c8d5._0x4e7660,_0x55c8d5._0x7d4d10)][_0x5893e0(0x4c9,0x4c2,0x3f4,_0x55c8d5._0x213003)](_0x546931[_0x1cf95a(_0x55c8d5._0x1f4fe0,0x650,_0x55c8d5._0x2da98c,_0x55c8d5._0x3919b4)])===_0x546931&&this[_0x5893e0(0x490,_0x55c8d5._0x34e809,_0x55c8d5._0x12b732,0x535)][_0x5893e0(0x53f,0x4c1,0x493,_0x55c8d5._0x3144fc)](_0x546931['key']);}['getResponsesSocketSessionKey'](_0x165ce6){const _0x546d77={_0xc3f9bc:0x142,_0x1385ad:0x213,_0x18d170:0xd9,_0x179a9f:0x1b3},_0x2bd88a={_0x403ad4:0x1d9},_0x1e9c05={_0xcbc824:0x1a6};function _0x1bd566(_0x324b34,_0x1def0b,_0x4318ab,_0x240119){return _0x2d9e9f(_0x324b34-_0x1e9c05._0xcbc824,_0x4318ab,_0x1def0b- -0x53b,_0x240119-0x37);}function _0x40b9ff(_0x115d05,_0x2e9883,_0x11a9c1,_0x393199){return _0x2d9e9f(_0x115d05-0xe5,_0x115d05,_0x393199- -_0x2bd88a._0x403ad4,_0x393199-0x46);}return''+trimTrailingSlashes(this[_0x1bd566(-0x5c,-_0x546d77._0xc3f9bc,-_0x546d77._0x1385ad,-0x55)])+this[_0x1bd566(-0xd0,-_0x546d77._0x18d170,-_0x546d77._0x179a9f,-0x142)]+'::'+_0x165ce6;}async[_0x2d9e9f(0x47d,0x573,0x493,0x3f1)](_0x28dcd8){const _0x12d384={_0x541360:0x3eb,_0x5844ed:0x461,_0x18ec7d:0x37b,_0x565835:0x2df,_0x7f4922:0x48a,_0x2edf20:0x3aa,_0x5536ac:0x458},_0x25f1bf={_0x3ed7c2:0x59a,_0x455ec8:0x4fa,_0x32c433:0x4c9,_0x3be8fd:0x417,_0x4f6173:0x3a4,_0x1c511a:0x449},_0x4fe3d3={_0x8874e:0x5},_0x4342c5={_0x37e93c:0x60},_0x4c0aeb={_0xa8b874:0x128,_0x2a7a34:0xe4,_0x1c669b:0x424},_0x4a88b2=_0x28dcd8['pending'][_0x65b2b7(0x520,0x444,_0x12d384._0x541360,_0x12d384._0x5844ed)](()=>{});function _0xd5194d(_0x3e7310,_0x30e675,_0x4ff204,_0x442461){return _0x1818aa(_0x3e7310-_0x4c0aeb._0xa8b874,_0x4ff204,_0x4ff204-_0x4c0aeb._0x2a7a34,_0x442461-_0x4c0aeb._0x1c669b);}let _0x1662d1;function _0x65b2b7(_0x237ed7,_0x4e13d7,_0x3356a2,_0x5a7e44){return _0x1818aa(_0x237ed7-_0x4342c5._0x37e93c,_0x237ed7,_0x3356a2-0x38,_0x5a7e44-0x3cc);}const _0x353d28=new Promise(_0x457b16=>{_0x1662d1=_0x457b16;});return _0x28dcd8[_0x65b2b7(0x212,_0x12d384._0x18ec7d,0x238,_0x12d384._0x565835)]=_0x4a88b2['then'](()=>_0x353d28),await _0x4a88b2,_0x28dcd8[_0x65b2b7(_0x12d384._0x7f4922,_0x12d384._0x2edf20,_0x12d384._0x5536ac,0x495)]=!![],()=>{const _0x208c12={_0x26788f:0x1e0,_0x195648:0xc5};_0x28dcd8[_0x408142(_0x25f1bf._0x3ed7c2,0x534,_0x25f1bf._0x455ec8,_0x25f1bf._0x32c433)]=![],_0x1662d1?.();function _0xe228ed(_0x5b652d,_0x4fe646,_0x2e0c6c,_0xcb35ed){return _0xd5194d(_0x5b652d-0x5d,_0x4fe646-_0x4fe3d3._0x8874e,_0x5b652d,_0xcb35ed- -0x1af);}function _0x408142(_0x423644,_0x58299c,_0x4f35e9,_0x3e98f6){return _0xd5194d(_0x423644-_0x208c12._0x26788f,_0x58299c-_0x208c12._0x195648,_0x423644,_0x58299c-0x47);}this[_0x408142(0x3c2,_0x25f1bf._0x3be8fd,_0x25f1bf._0x4f6173,_0x25f1bf._0x1c511a)](_0x28dcd8);};}async[_0x1818aa(-0x141,0x1e,-0xbb,-0xa4)](_0xa69f9c,_0x3da613){const _0x18f0f6={_0x14fed6:0x1a6,_0x1dcd0e:0x202,_0x18201f:0x2a0,_0x21f86a:0x273,_0x52eea3:0x154,_0x5c3498:0x2a2,_0x3b344e:0x101,_0x19a9f5:0xeb,_0x2185d1:0x21d,_0x24d0f4:0x2c0,_0x5489ae:0x23f,_0x164864:0x352,_0x37ebb6:0x30},_0x460c28={_0x5bb587:0x10b,_0x5bc053:0x14f},_0x23fa81={_0x5dc93c:0x1b3,_0x5f47bb:0x1bf},_0x4af0e8=this['applyModelDefaults'](_0xa69f9c),_0x12855b=toModelRequest(_0x4af0e8),_0x5cd507=await prepareProviderRequest(_0x12855b,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x3da613});function _0x3ecadb(_0x6dcd77,_0x213608,_0x1fc4a9,_0x3c095a){return _0x1818aa(_0x6dcd77-_0x23fa81._0x5dc93c,_0x6dcd77,_0x1fc4a9-0x1ee,_0x213608- -_0x23fa81._0x5f47bb);}const _0x3736ab=toChatRequest(_0x5cd507[_0x16a9e1(_0x18f0f6._0x14fed6,0x210,0x10f,_0x18f0f6._0x1dcd0e)]),_0x4026ae=this[_0x3ecadb(-0x35b,-_0x18f0f6._0x18201f,-_0x18f0f6._0x21f86a,-0x383)][_0x3ecadb(-_0x18f0f6._0x52eea3,-0x1d4,-0x184,-_0x18f0f6._0x5c3498)](this[_0x16a9e1(_0x18f0f6._0x3b344e,0x74,0x44,_0x18f0f6._0x19a9f5)],_0x5cd507[_0x3ecadb(-_0x18f0f6._0x2185d1,-0x29b,-0x320,-_0x18f0f6._0x24d0f4)]);if(!_0x4026ae)throw this['createMissingCredentialError']();function _0x16a9e1(_0x26d7c6,_0x3a8b55,_0x489dc4,_0x29c2da){return _0x2d9e9f(_0x26d7c6-_0x460c28._0x5bb587,_0x29c2da,_0x26d7c6- -0x247,_0x29c2da-_0x460c28._0x5bc053);}return{'baseUrl':this[_0x3ecadb(-_0x18f0f6._0x5489ae,-0x2a0,-0x30e,-_0x18f0f6._0x164864)]['resolveBaseUrl'](this[_0x16a9e1(0x1b2,0x143,0x1c1,0x13e)],_0x5cd507[_0x16a9e1(0xb0,_0x18f0f6._0x37ebb6,0x19d,0x7d)]),'credential':_0x4026ae,'request':_0x3736ab,'session':_0x5cd507['session']};}[_0x1818aa(0x1e,-0x3c,-0xb1,-0xbd)](_0x45e558,_0x37eaa9,_0x323492={}){const _0x24d02c={_0x195242:0x141,_0x371f81:0x214,_0xba1638:0xdf,_0x319a96:0x114,_0x376950:0x185,_0x5242fe:0x19f,_0x47abe9:0x27,_0x251e9e:0x1ae,_0x5389f5:0x118,_0x47e567:0x121,_0x123c5a:0x93},_0x38483d={_0x450f8b:0x189},_0x424e95={_0x530068:0xa5};function _0x24d5f4(_0x27121c,_0x4e0e02,_0xe3565a,_0x33318b){return _0x1818aa(_0x27121c-0x43,_0x27121c,_0xe3565a-0x19,_0xe3565a-_0x424e95._0x530068);}if(!_0x323492[_0x5daaff(0x202,0x66,_0x24d02c._0x195242,0x175)]){const _0x263848=this['findResponsesSocketCheckpoint'](_0x45e558);if(_0x263848&&_0x37eaa9[_0x5daaff(0x24a,_0x24d02c._0x371f81,0x185,0xec)]&&_0x263848[_0x5daaff(-0x7,_0x24d02c._0xba1638,0x2c,0x1f)]===_0x37eaa9[_0x5daaff(0x132,_0x24d02c._0x319a96,_0x24d02c._0x376950,0x1ae)]){const _0x58b19a=toOpenAiResponsesRequest({..._0x45e558,'messages':_0x45e558[_0x5daaff(0x1dd,0x1f9,_0x24d02c._0x5242fe,0x1a6)][_0x5daaff(0x115,0xc,0xaa,-_0x24d02c._0x47abe9)](_0x263848[_0x5daaff(_0x24d02c._0x251e9e,0x186,_0x24d02c._0x5389f5,_0x24d02c._0x47e567)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x45e558,{'input':_0x58b19a,'previousResponseId':_0x263848[_0x24d5f4(-0xb7,0xd6,0x3,-_0x24d02c._0x123c5a)]}),'previousResponseId':_0x263848['responseId']};}}function _0x5daaff(_0x1c3bcd,_0x18788e,_0xba1a8f,_0x3a03ff){return _0x2d9e9f(_0x1c3bcd-_0x38483d._0x450f8b,_0x3a03ff,_0xba1a8f- -0x305,_0x3a03ff-0xeb);}return{'event':createOpenAiResponsesWebSocketEvent(_0x45e558)};}[_0x2d9e9f(0x378,0x433,0x376,0x2a7)](_0x17abac){const _0x1d4db6={_0x4c99dd:0x19a,_0x457713:0x26,_0x47419f:0xa8,_0x29814a:0x260,_0xb3b629:0x106,_0x1a8084:0x260,_0x1a72cb:0x112,_0xdbba84:0x124},_0x1c4e16={_0x3ea40c:0x35,_0x2eb2e0:0x18c},_0x3aa041={_0x10f851:0xa3,_0x189a71:0x0};for(let _0x4f5903=_0x17abac[_0xc8ede0(0x13c,0x167,0x1b9,0x25c)][_0xc8ede0(_0x1d4db6._0x4c99dd,_0x1d4db6._0x457713,0x10d,_0x1d4db6._0x47419f)]-0x1;_0x4f5903>=0x0;_0x4f5903-=0x1){const _0x2b735d=_0x17abac[_0xc8ede0(_0x1d4db6._0x29814a,_0x1d4db6._0xb3b629,0x1b9,_0x1d4db6._0x1a8084)][_0x4f5903],_0x1141b2=_0x2b735d['role']==='assistant'?_0x2b735d['providerState']?.[_0xc8ede0(_0x1d4db6._0x1a72cb,0x73,_0x1d4db6._0xdbba84,0x6f)]:void 0x0;if(_0x1141b2)return{'messageIndex':_0x4f5903,'responseId':_0x1141b2};}function _0xbd02ae(_0x4febf2,_0x2cf028,_0x1761e0,_0x1f4689){return _0x2d9e9f(_0x4febf2-_0x3aa041._0x10f851,_0x1f4689,_0x2cf028- -0x354,_0x1f4689-_0x3aa041._0x189a71);}function _0xc8ede0(_0x4ce429,_0x542dba,_0x44ff64,_0x36032c){return _0x2d9e9f(_0x4ce429-_0x1c4e16._0x3ea40c,_0x36032c,_0x44ff64- -0x2eb,_0x36032c-_0x1c4e16._0x2eb2e0);}return void 0x0;}[_0x2d9e9f(0x332,0x345,0x3ea,0x448)](_0x4850f8){const _0x5a1780={_0x2ca77c:0x308,_0x72ae71:0x2b7,_0x452fd2:0x23b,_0x592cf9:0x66,_0x25ad90:0x2d0,_0x1d8dc4:0x2b7,_0x540006:0x36f,_0x50fb5a:0x1e1},_0x230751={_0x5c6b2e:0xf0,_0x45662e:0x1f8,_0x4c8b82:0x191},_0x25bc43={_0xd76b4f:0x1bb};function _0x97d7de(_0x329d89,_0x2d4941,_0x26149a,_0x13555d){return _0x2d9e9f(_0x329d89-0x1cf,_0x2d4941,_0x26149a- -0x418,_0x13555d-_0x25bc43._0xd76b4f);}function _0x1edf82(_0x41be41,_0x4e099e,_0x30f129,_0x51b582){return _0x2d9e9f(_0x41be41-_0x230751._0x5c6b2e,_0x51b582,_0x4e099e- -_0x230751._0x45662e,_0x51b582-_0x230751._0x4c8b82);}return _0x4850f8 instanceof ProviderStreamEventError&&(_0x4850f8[_0x1edf82(_0x5a1780._0x2ca77c,_0x5a1780._0x72ae71,0x30e,_0x5a1780._0x452fd2)]===_0x97d7de(-0x27,-0x85,-_0x5a1780._0x592cf9,0x7c)||_0x4850f8[_0x1edf82(_0x5a1780._0x25ad90,_0x5a1780._0x1d8dc4,_0x5a1780._0x540006,_0x5a1780._0x50fb5a)]==='websocket_connection_limit_reached');}[_0x1818aa(-0x11,-0xdd,0xe2,-0x6)](_0x1662b2){const _0x377a1a={_0x5a01c9:0x4ad,_0x906575:0x55c,_0x2a090e:0x523,_0x480237:0x50a,_0x35079a:0x445,_0x580f71:0x5c7,_0xc1ccd8:0x3cb,_0x3d9996:0x4a0},_0x3a7d64={_0x2c3002:0x9b},_0x1f16c0=_0x1662b2[_0x381d2d(0x5c8,_0x377a1a._0x5a01c9,0x585,_0x377a1a._0x906575)];function _0x39fb31(_0x3fb240,_0x5f1074,_0xe95b3b,_0x2abcf2){return _0x2d9e9f(_0x3fb240-0x4c,_0xe95b3b,_0x3fb240-0x14c,_0x2abcf2-0x1de);}_0x1662b2[_0x39fb31(0x575,0x5b8,_0x377a1a._0x2a090e,_0x377a1a._0x480237)]=void 0x0;function _0x381d2d(_0xea43dc,_0x50df5c,_0x4c7486,_0x59ebed){return _0x1818aa(_0xea43dc-0x14d,_0x59ebed,_0x4c7486-_0x3a7d64._0x2c3002,_0x4c7486-0x52f);}_0x1662b2['connecting']=void 0x0,_0x1662b2['lastResponseId']=void 0x0,_0x1f16c0?.[_0x39fb31(0x478,0x40c,0x3fb,0x434)]===WebSocket[_0x381d2d(0x43b,0x47b,_0x377a1a._0x35079a,0x402)]&&_0x1f16c0[_0x39fb31(0x538,_0x377a1a._0x580f71,0x4b6,0x577)](0x3e8,_0x381d2d(_0x377a1a._0xc1ccd8,0x4c0,_0x377a1a._0x3d9996,0x431));}async[_0x2d9e9f(0x44d,0x395,0x39b,0x418)](_0x3a90b5,_0x53dd3e,_0x21e435,_0x5cc580,_0x5e7a66){const _0xb9d70f={_0x2ea936:0x9e,_0x1404c4:0xad,_0xc0c0c4:0x274,_0x19f157:0x34e,_0x4e4f09:0x32b,_0x484288:0xd3,_0x6aff8a:0xa3,_0x30d274:0xaf,_0x5f5778:0x1df,_0x4120d3:0x1c4,_0x52fba3:0x252,_0x3089b8:0x1a9},_0x31ba5a={_0x52058e:0x4c4,_0x693d7b:0x4f4,_0x4bc8d6:0x440,_0x162e08:0x415,_0x1d2e05:0x244,_0x358a98:0x1b6,_0xf33d7c:0x1eb,_0x2323e3:0xc4,_0x513016:0x1f1,_0x335c99:0x20d,_0x3d5f7b:0x240,_0x39bb5c:0x1c9,_0x2456c8:0x558,_0x1c1c94:0x46c,_0x174e30:0x4ee,_0x4faf9a:0x429,_0x358ebe:0x407,_0x5467c2:0x446,_0x3d6349:0x533,_0x57f5a7:0x516,_0x4a250c:0x5a0,_0x5527d9:0x63b,_0xbda880:0x617,_0x4f7878:0x5bb,_0x339646:0x5d4,_0x5b41e7:0x502,_0x132de5:0x4e9,_0x2f4ffa:0x5a8,_0x36a8cd:0x517,_0x459774:0x52a,_0x542a64:0x46f,_0x21426f:0x526,_0x2826e8:0x511,_0x12cf29:0x490,_0x29c55c:0x466,_0x5644e2:0x423,_0x56d56f:0x446,_0x138203:0x1dd,_0x25e35f:0x176,_0x36292f:0x100,_0x49a41a:0x478,_0x802283:0x34d,_0x4af10d:0x4a8,_0x125d3f:0x562,_0x25f024:0x20b,_0x4d1a58:0x288,_0x1c0fd3:0x28a},_0x389ee7={_0xc1ecb6:0x3a},_0x51869b={_0x418fe3:0x49a,_0x430c36:0x404,_0x1da008:0x415,_0x1927eb:0x22c,_0x42e8f6:0x57d,_0x3e7b3d:0x4fb,_0x3684e9:0x47d,_0x55f009:0x25e,_0xfa7b70:0x1c0},_0x1ed27b={_0x340e49:0x55d},_0x49d914={_0x173241:0x185,_0x4f3fe9:0x27e};function _0x33688a(_0x3f9a94,_0x21aa4f,_0x57564d,_0x5da81f){return _0x2d9e9f(_0x3f9a94-_0x49d914._0x173241,_0x5da81f,_0x3f9a94- -_0x49d914._0x4f3fe9,_0x5da81f-0x34);}function _0x3a4e0f(_0xd6ecff,_0x54be40,_0x514a36,_0x11e105){return _0x2d9e9f(_0xd6ecff-0x12a,_0x514a36,_0xd6ecff- -_0x1ed27b._0x340e49,_0x11e105-0x133);}if(_0x53dd3e[_0x3a4e0f(-0x134,-_0xb9d70f._0x2ea936,-0xf4,-_0xb9d70f._0x1404c4)]?.['readyState']===WebSocket[_0x3a4e0f(-_0xb9d70f._0xc0c0c4,-_0xb9d70f._0x19f157,-0x2bd,-_0xb9d70f._0x4e4f09)])return _0x53dd3e[_0x3a4e0f(-0x134,-_0xb9d70f._0x484288,-_0xb9d70f._0x6aff8a,-_0xb9d70f._0x30d274)];if(_0x53dd3e['connecting'])return await _0x53dd3e[_0x3a4e0f(-_0xb9d70f._0x5f5778,-_0xb9d70f._0x4120d3,-_0xb9d70f._0x52fba3,-0x132)];_0x53dd3e[_0x3a4e0f(-0x1df,-0x157,-0x13a,-0x1e6)]=((async()=>{const _0x1877cd={_0x491ccb:0x227,_0x191b8f:0x1b7},_0x4a8921=await this[_0x5c49c7(_0x31ba5a._0x52058e,_0x31ba5a._0x693d7b,_0x31ba5a._0x4bc8d6,_0x31ba5a._0x162e08)]({'request':_0x21e435[_0x54fffc(_0x31ba5a._0x1d2e05,0x237,_0x31ba5a._0x358a98,0x26a)],'body':_0x5cc580,'credential':_0x21e435['credential'],'session':_0x21e435[_0x54fffc(0x113,0x141,_0x31ba5a._0xf33d7c,0x62)],'stream':!![]},{'accept':_0x54fffc(0x7b,0x12e,0x15a,_0x31ba5a._0x2323e3),'includeContentType':![]});_0x4a8921[_0x54fffc(_0x31ba5a._0x513016,_0x31ba5a._0x335c99,_0x31ba5a._0x3d5f7b,_0x31ba5a._0x39bb5c)](_0x5c49c7(_0x31ba5a._0x2456c8,0x449,0x4c6,0x3e3));const _0x45baf7=this[_0x5c49c7(0x542,_0x31ba5a._0x1c1c94,0x4ff,_0x31ba5a._0x174e30)]({'headers':Object[_0x5c49c7(0x48d,0x42f,_0x31ba5a._0x4faf9a,_0x31ba5a._0x358ebe)](_0x4a8921['entries']()),'url':(''+_0x21e435[_0x5c49c7(_0x31ba5a._0x5467c2,0x4b5,_0x31ba5a._0x3d6349,0x531)]+this['responsesPath'])[_0x5c49c7(_0x31ba5a._0x57f5a7,_0x31ba5a._0x4a250c,0x5bb,_0x31ba5a._0x5527d9)](/^http:/,'ws:')[_0x5c49c7(0x556,_0x31ba5a._0xbda880,_0x31ba5a._0x4f7878,_0x31ba5a._0x339646)](/^https:/,_0x5c49c7(_0x31ba5a._0x5b41e7,_0x31ba5a._0x132de5,_0x31ba5a._0x2f4ffa,_0x31ba5a._0x36a8cd))}),_0x13d98c=()=>{const _0x59b9ef={_0x325df8:0x152,_0x824f03:0x17a};_0x53dd3e[_0x3256fd(0x4e9,_0x51869b._0x418fe3,_0x51869b._0x430c36,_0x51869b._0x1da008)]===_0x45baf7&&(_0x53dd3e[_0x3ba773(-_0x51869b._0x1927eb,-0x1e2,-0x1b4,-0x15f)]=void 0x0,_0x53dd3e[_0x3256fd(_0x51869b._0x42e8f6,_0x51869b._0x3e7b3d,0x51b,_0x51869b._0x3684e9)]=void 0x0);function _0x3256fd(_0x1b46f2,_0x549679,_0x1ec260,_0x27c1cc){return _0x54fffc(_0x1b46f2,_0x549679-_0x1877cd._0x491ccb,_0x1ec260-_0x1877cd._0x191b8f,_0x27c1cc-0x72);}function _0x3ba773(_0x5cf14f,_0x242cb7,_0x31a55c,_0x5657e1){return _0x54fffc(_0x5657e1,_0x31a55c- -0x427,_0x31a55c-_0x59b9ef._0x325df8,_0x5657e1-_0x59b9ef._0x824f03);}this[_0x3ba773(-0x266,-0x2c2,-_0x51869b._0x55f009,-_0x51869b._0xfa7b70)](_0x53dd3e);};function _0x54fffc(_0x34f185,_0x2019d2,_0x5d47b7,_0x9e832d){return _0x33688a(_0x2019d2-0xc8,_0x2019d2-0x131,_0x5d47b7-0xa8,_0x34f185);}function _0x5c49c7(_0x2f90a6,_0x2fc1e6,_0x40e3dd,_0x412290){return _0x33688a(_0x40e3dd-0x3b8,_0x2fc1e6-0xa3,_0x40e3dd-_0x389ee7._0xc1ecb6,_0x2f90a6);}_0x45baf7[_0x5c49c7(_0x31ba5a._0x459774,0x59d,0x4fa,_0x31ba5a._0x542a64)](_0x5c49c7(0x4e9,0x5ba,_0x31ba5a._0x21426f,_0x31ba5a._0x2826e8),_0x13d98c);try{return throwIfAborted(_0x5e7a66),_0x45baf7[_0x5c49c7(0x543,_0x31ba5a._0x12cf29,_0x31ba5a._0x29c55c,0x48a)]!==WebSocket[_0x5c49c7(0x4fe,0x3b3,_0x31ba5a._0x5644e2,_0x31ba5a._0x56d56f)]&&await waitForWebSocketOpen(_0x45baf7,_0x5e7a66),throwIfAborted(_0x5e7a66),_0x53dd3e['socket']=_0x45baf7,_0x45baf7;}catch(_0x360f3b){_0x13d98c();_0x45baf7[_0x54fffc(_0x31ba5a._0x138203,_0x31ba5a._0x25e35f,0x261,_0x31ba5a._0x36292f)]===WebSocket[_0x5c49c7(0x42d,_0x31ba5a._0x49a41a,_0x31ba5a._0x5644e2,_0x31ba5a._0x802283)]&&_0x45baf7[_0x5c49c7(0x4c4,_0x31ba5a._0x4af10d,0x526,_0x31ba5a._0x125d3f)](0x3e8,_0x54fffc(_0x31ba5a._0x25f024,0x238,_0x31ba5a._0x4d1a58,_0x31ba5a._0x1c0fd3));throw _0x360f3b;}})());try{return await _0x53dd3e['connecting'];}finally{_0x53dd3e[_0x3a4e0f(-0x1df,-0x21e,-0x2af,-_0xb9d70f._0x3089b8)]=void 0x0;}}async*[_0x2d9e9f(0x3e2,0x28c,0x314,0x29a)](_0xb21ca1,_0x64e370){const _0x2de572={_0x3ba84d:0x133,_0x3f699c:0x12e,_0x258b3a:0x1de,_0x3bb0b1:0x267,_0x272d44:0x38d,_0x2bef0e:0x2d9,_0x51280f:0x4e9,_0x2bfaf9:0x412,_0x2cbe6e:0x447,_0x40d23c:0x295,_0x2971a9:0x95,_0x19d04b:0x375,_0x11ac2a:0x3e7,_0xf7d1d5:0x400,_0x22b99b:0x16b,_0x267501:0x40,_0x5698c8:0x57,_0x4a5d0e:0x16c,_0x169e4c:0xba,_0x9ce166:0x8f,_0x18d635:0x111,_0x26e253:0x24b},_0x2663a8={_0x41c67d:0xa8},_0x1fc73a={_0x208d3e:0x7f,_0x58b66c:0x81,_0x3162ff:0xb8},_0x1ecbbd=this[_0x5dd1f4(-_0x2de572._0x3ba84d,-_0x2de572._0x3f699c,-0x144,-0x86)](_0xb21ca1),_0x58e2a5=this[_0x49d3db(_0x2de572._0x258b3a,0x291,_0x2de572._0x3bb0b1,0x191)](_0x1ecbbd[_0x49d3db(0x2eb,0x36e,_0x2de572._0x272d44,_0x2de572._0x2bef0e)]['sessionId']),_0x219c87=await this[_0x49d3db(_0x2de572._0x51280f,0x395,_0x2de572._0x2bfaf9,_0x2de572._0x2cbe6e)](_0x58e2a5);function _0x49d3db(_0xf81707,_0x216231,_0x30335b,_0x36f3f0){return _0x2d9e9f(_0xf81707-_0x1fc73a._0x208d3e,_0xf81707,_0x30335b- -_0x1fc73a._0x58b66c,_0x36f3f0-_0x1fc73a._0x3162ff);}function _0x5dd1f4(_0x680347,_0x13acc1,_0x22b912,_0x9149c7){return _0x2d9e9f(_0x680347-0x1c6,_0x680347,_0x22b912- -0x44e,_0x9149c7-_0x2663a8._0x41c67d);}try{const _0x5b9aa1=this[_0x49d3db(0x32c,0x2b3,_0x2de572._0x40d23c,0x35e)](_0x1ecbbd,_0x58e2a5);try{yield*this['streamViaResponsesSocketAttempt'](_0x1ecbbd['metadata']['sessionId'],_0x58e2a5,_0x1ecbbd,_0x5b9aa1['event'],_0x64e370?.[_0x5dd1f4(-0x65,-0x156,-_0x2de572._0x2971a9,-0xbe)]);return;}catch(_0x103ec9){if(!_0x5b9aa1[_0x49d3db(0x3bf,0x3ba,0x3c0,_0x2de572._0x19d04b)]||!this[_0x5dd1f4(-0xb3,0x28,-0x64,0x53)](_0x103ec9)){this[_0x49d3db(_0x2de572._0x11ac2a,0x31d,0x34c,_0x2de572._0xf7d1d5)](_0x58e2a5);throw _0x103ec9;}}this[_0x5dd1f4(-0x7f,-_0x2de572._0x22b99b,-0x81,-0xa2)](_0x58e2a5);const _0x3c1f2d=this['buildResponsesSocketEvent'](_0x1ecbbd,_0x58e2a5,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x1ecbbd[_0x5dd1f4(-0xd0,0x35,-_0x2de572._0x267501,-0xc0)][_0x5dd1f4(-0x47,-0x117,-0x76,_0x2de572._0x5698c8)],_0x58e2a5,_0x1ecbbd,_0x3c1f2d[_0x5dd1f4(-_0x2de572._0x4a5d0e,-_0x2de572._0x169e4c,-_0x2de572._0x9ce166,-_0x2de572._0x18d635)],_0x64e370?.[_0x49d3db(0x332,_0x2de572._0x26e253,0x338,0x39b)]);}finally{_0x219c87();}}async*[_0x1818aa(-0x9f,-0xec,0x34,-0xb0)](_0x2cb586,_0x4c5123,_0x411022,_0x27a9fe,_0x582b9d){const _0x181ef5={_0x3b8efa:0x462,_0x4260e7:0x34a,_0x5b1a93:0x42d,_0x5e5014:0x1d5,_0x112328:0x21a,_0x3659f6:0x142,_0xf58998:0x1fc,_0x17b065:0x2e1,_0x2e6879:0x211,_0x469155:0x220,_0x4eaaa5:0x284,_0xf62d04:0x52d,_0x4d2ef5:0x390,_0x13031b:0x247,_0x4de077:0x187,_0x78967b:0x16a,_0x8cfd08:0xdf,_0x324118:0x22a,_0x11be4c:0x5b8,_0x1000e2:0x20b,_0x332a12:0x15f},_0x1237b6={_0x570411:0x134,_0x2bffc5:0x105,_0x3be54b:0x139};function _0x45a81b(_0x40d1b0,_0x535af2,_0xf6d729,_0x4e7fde){return _0x2d9e9f(_0x40d1b0-_0x1237b6._0x570411,_0x535af2,_0xf6d729-_0x1237b6._0x2bffc5,_0x4e7fde-_0x1237b6._0x3be54b);}const _0x520cc8=await this[_0x45a81b(_0x181ef5._0x3b8efa,_0x181ef5._0x4260e7,0x434,_0x181ef5._0x5b1a93)](_0x411022,_0x582b9d),_0x12d02c=await this[_0x550ecd(_0x181ef5._0x5e5014,_0x181ef5._0x112328,0x25e,0x1fa)](_0x2cb586,_0x4c5123,_0x520cc8,_0x27a9fe,_0x582b9d),_0x5746b0=createOpenAiResponsesStreamParser(_0x411022);throwIfAborted(_0x582b9d);function _0x550ecd(_0x3af4aa,_0x183f05,_0x4bffcf,_0x2ea200){return _0x1818aa(_0x3af4aa-0xfb,_0x2ea200,_0x4bffcf-0xaf,_0x183f05-0x252);}_0x12d02c[_0x550ecd(_0x181ef5._0x3659f6,_0x181ef5._0xf58998,_0x181ef5._0x17b065,0x146)](JSON[_0x550ecd(_0x181ef5._0x2e6879,_0x181ef5._0x469155,0x2c7,0x1cd)](_0x27a9fe));for await(const _0x40ac18 of iterateWebSocketMessages(_0x12d02c,_0x582b9d)){const _0x417441=_0x5746b0[_0x550ecd(0x2a4,0x1e7,0x1b8,_0x181ef5._0x4eaaa5)]?.(_0x40ac18)??[];yield*_0x417441;if(_0x5746b0['isDone']?.())break;}if(!_0x5746b0[_0x45a81b(_0x181ef5._0xf62d04,0x523,0x450,_0x181ef5._0x4d2ef5)]?.())throw new Error(_0x550ecd(0x178,_0x181ef5._0x13031b,0x2ec,0x212));const _0xd63d0b=_0x5746b0[_0x550ecd(0x263,0x17c,0x260,0x244)](),_0x18c59e=_0xd63d0b[_0x550ecd(_0x181ef5._0x4de077,_0x181ef5._0x78967b,_0x181ef5._0x8cfd08,_0x181ef5._0x324118)]?.[_0x45a81b(_0x181ef5._0x11be4c,0x531,0x514,0x44b)]??_0xd63d0b['id'];_0x18c59e&&(_0x4c5123['lastResponseId']=_0x18c59e),yield{'type':_0x550ecd(0x1f2,0x1c8,_0x181ef5._0x1000e2,_0x181ef5._0x332a12),'response':_0xd63d0b};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0x1818aa(-0x16,-0xf3,-0x3e,-0x7c),_0x2d9e9f(0x4c0,0x527,0x466,0x3d2),_0x1818aa(-0xe2,-0x87,-0x19c,-0xdf)];function isAnthropicSurface(_0xb4fb35){const _0x3e6163={_0x1eb5b9:0x527,_0x4f1588:0x46d};function _0x4b470c(_0x374142,_0x2b71ec,_0x3c03ee,_0x1eeeb0){return _0x1818aa(_0x374142-0x1eb,_0x3c03ee,_0x3c03ee-0x10a,_0x374142-0x44e);}return _0xb4fb35===_0x4b470c(_0x3e6163._0x1eb5b9,0x45c,_0x3e6163._0x4f1588,0x5ab);}function providerFromSurface(_0x247184){const _0x3ab88a={_0x223bfb:0x25a,_0x209235:0xe9,_0x25ebb3:0x22e,_0xb5cb52:0x1af},_0x2fe07a={_0x316230:0x1ff,_0x5e2cfb:0x1df};function _0x130670(_0x43089c,_0x1ddb23,_0x282ce6,_0x2e597d){return _0x2d9e9f(_0x43089c-0x5a,_0x282ce6,_0x1ddb23- -0x5d1,_0x2e597d-0x118);}function _0x227dcd(_0x2cb833,_0x25bdfe,_0x3522e1,_0x57db3b){return _0x2d9e9f(_0x2cb833-0x3e,_0x25bdfe,_0x2cb833- -_0x2fe07a._0x316230,_0x57db3b-_0x2fe07a._0x5e2cfb);}return _0x247184[_0x130670(-0x2a1,-_0x3ab88a._0x223bfb,-0x283,-0x270)](_0x130670(-_0x3ab88a._0x209235,-0x1ce,-_0x3ab88a._0x25ebb3,-0x1b1))?_0x130670(-0x217,-0x1ce,-0x2a4,-_0x3ab88a._0xb5cb52):'openai';}function resolveDefaultBaseUrl(_0x1c1567){const _0x44cbf6={_0x124bff:0x96,_0x3629d3:0x9e,_0x47adbb:0x29,_0xfbd62e:0x80},_0x4b3fb7={_0x58d26b:0xe2,_0x349498:0x1b},_0x1d0931={_0x216539:0x137};if(_0x1c1567===_0x1ca09f(-_0x44cbf6._0x124bff,-0x9b,_0x44cbf6._0x3629d3,_0x44cbf6._0x47adbb))return getProviderProfile(_0x1ca09f(-0x14c,0x37,-0xd8,-_0x44cbf6._0xfbd62e))?.[_0x1888f5(0x22b,0x232,0x233,0x317)]??'https://api.anthropic.com';function _0x1ca09f(_0x2140ba,_0x1e7e9e,_0x13e330,_0x1a62f4){return _0x2d9e9f(_0x2140ba-_0x1d0931._0x216539,_0x1e7e9e,_0x1a62f4- -0x483,_0x1a62f4-0x12c);}function _0x1888f5(_0x17bc51,_0x4db86b,_0x415c49,_0x5334e4){return _0x2d9e9f(_0x17bc51-0x1b2,_0x415c49,_0x5334e4- -_0x4b3fb7._0x58d26b,_0x5334e4-_0x4b3fb7._0x349498);}return getProviderProfile('openai')?.['baseUrl']??'https://api.openai.com/v1';}var ChatModel=class{[_0x2d9e9f(0x3f3,0x31a,0x30f,0x265)];['maxTokens'];[_0x2d9e9f(0x514,0x3bd,0x49b,0x3e2)];[_0x1818aa(0xf,-0xd9,0x20,0x0)];[_0x1818aa(-0x108,-0x67,-0x27,-0xf6)];[_0x1818aa(-0x68,0x10c,0x11a,0x44)];constructor(_0x343a38={}){const _0x2adc5c={_0x5be8df:0x325,_0x2c55b4:0x2f3,_0x5aaa71:0x33d,_0x42ffec:0x2c,_0x152ed4:0xdd,_0x124c9b:0x1b7,_0x1a4f98:0x230,_0x4f6b25:0x1f3,_0x156bab:0x60,_0x1ad44f:0x3bf,_0x219570:0x401,_0x19edf7:0xfe,_0x38f639:0x1de,_0x1c7798:0x24b,_0xad6a05:0x13b,_0x2097dc:0xa1,_0x10b1dd:0xaf,_0x254987:0x0,_0x563b00:0x476,_0x560628:0x433,_0x2108df:0x406,_0x4dc7c1:0x3ba,_0x500a87:0xa,_0xb8318a:0xa1,_0x284d6d:0x5a,_0x5e16a8:0x31,_0x5cac20:0x52,_0x31cc40:0x123,_0x42c1ce:0x68,_0x45d3a8:0x198,_0x3443cb:0x16,_0x6456e5:0xf,_0x495647:0x5b,_0x52ff77:0xc2,_0x1182bb:0x31,_0x2191e2:0x9a,_0x27b86f:0xed,_0x3fd59c:0x3ef,_0x1dfa9c:0x451},_0x24ce18={_0x1027ea:0x121,_0x451e34:0x401};function _0x4c044c(_0x5a6077,_0x3897ee,_0x277f6a,_0x1194bb){return _0x1818aa(_0x5a6077-0x71,_0x3897ee,_0x277f6a-_0x24ce18._0x1027ea,_0x277f6a-_0x24ce18._0x451e34);}this[_0x4c044c(_0x2adc5c._0x5be8df,_0x2adc5c._0x2c55b4,_0x2adc5c._0x5aaa71,0x3e3)]=_0x343a38['model']??getDefaultModel(),this['maxTokens']=_0x343a38[_0x15e64c(-_0x2adc5c._0x42ffec,-_0x2adc5c._0x152ed4,-0x61,0x2c)]??getDefaultMaxTokens(),this[_0x15e64c(0x176,_0x2adc5c._0x124c9b,_0x2adc5c._0x1a4f98,_0x2adc5c._0x4f6b25)]=_0x343a38['surface']??_0x15e64c(0x32,-0x42,-_0x2adc5c._0x156bab,0x10b),this[_0x4c044c(_0x2adc5c._0x1ad44f,0x39f,_0x2adc5c._0x219570,0x4d4)]=providerFromSurface(this[_0x15e64c(0x176,_0x2adc5c._0x19edf7,0x1ba,0xcf)]);function _0x15e64c(_0xbe9378,_0x234f69,_0x3bee7d,_0x51182e){return _0x1818aa(_0xbe9378-0x18e,_0x3bee7d,_0x3bee7d-0x73,_0xbe9378-0xae);}const _0xffd8e6=trimTrailingSlashes(_0x343a38['baseUrl']??resolveDefaultBaseUrl(this[_0x15e64c(0x176,_0x2adc5c._0x38f639,0x1b4,_0x2adc5c._0x1c7798)]));if(isAnthropicSurface(this[_0x15e64c(0x176,0x1f7,_0x2adc5c._0xad6a05,_0x2adc5c._0x2097dc)])){this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x343a38[_0x15e64c(0x23,0x10e,-0x8,_0x2adc5c._0x10b1dd)],'authScheme':_0x343a38[_0x15e64c(0xbd,0x5f,_0x2adc5c._0x254987,0x16a)],'baseUrl':_0xffd8e6,'fetch':_0x343a38[_0x4c044c(0x4ca,0x4d2,_0x2adc5c._0x563b00,_0x2adc5c._0x560628)],'maxTokens':this[_0x4c044c(_0x2adc5c._0x2108df,_0x2adc5c._0x4dc7c1,0x327,0x2b0)],'model':this['model'],'reasoning':_0x343a38[_0x15e64c(-_0x2adc5c._0x500a87,-_0x2adc5c._0xb8318a,_0x2adc5c._0x284d6d,0x80)],'providerSessionResolver':_0x343a38[_0x15e64c(0x2d,-0x93,0xd6,0x11)],'requestMutators':_0x343a38[_0x15e64c(_0x2adc5c._0x5e16a8,0xde,0xf9,0x6e)]});return;}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x343a38[_0x15e64c(0x23,0xfb,0xfb,_0x2adc5c._0x5cac20)],'baseUrl':_0xffd8e6,'fetch':_0x343a38[_0x15e64c(_0x2adc5c._0x31cc40,_0x2adc5c._0x42c1ce,0x1f3,_0x2adc5c._0x45d3a8)],'headerResolver':_0x343a38['headerResolver'],'maxTokens':this[_0x15e64c(-0x2c,-0xf1,0x57,-0x21)],'model':this[_0x15e64c(-_0x2adc5c._0x3443cb,-_0x2adc5c._0x6456e5,-0x36,-0x3b)],'reasoning':_0x343a38['reasoning'],'providerSessionResolver':_0x343a38[_0x15e64c(0x2d,_0x2adc5c._0x10b1dd,_0x2adc5c._0x495647,_0x2adc5c._0x52ff77)],'requestMutators':_0x343a38[_0x15e64c(_0x2adc5c._0x1182bb,-0x49,-_0x2adc5c._0x2191e2,_0x2adc5c._0x27b86f)],'webSocketFactory':_0x343a38[_0x4c044c(_0x2adc5c._0x3fd59c,_0x2adc5c._0x1dfa9c,0x3f3,0x31f)]});}[_0x1818aa(0xe1,0xac,0x90,0x4f)](){const _0xac2118={_0x36426b:0x1ca,_0x58d4a6:0x1c8,_0x602a30:0x5ad,_0x173d48:0x526,_0x2ebae1:0x697,_0x5c2674:0x5b9,_0x44d445:0x33b,_0x1bdfb9:0x3fb},_0x34bfeb={_0x568162:0x1bd,_0x23adc9:0x31};function _0x53761c(_0x4981cc,_0x3aa596,_0x3ec637,_0x123958){return _0x2d9e9f(_0x4981cc-0x8d,_0x3aa596,_0x123958-0x11e,_0x123958-0xcc);}function _0x22bc16(_0x1da38d,_0x28770b,_0xffff4a,_0x15a84f){return _0x2d9e9f(_0x1da38d-0x1bd,_0xffff4a,_0x15a84f- -_0x34bfeb._0x568162,_0x15a84f-_0x34bfeb._0x23adc9);}if(!this[_0x22bc16(_0xac2118._0x36426b,_0xac2118._0x58d4a6,0x17a,0x120)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x53761c(_0xac2118._0x602a30,_0xac2118._0x173d48,_0xac2118._0x2ebae1,_0xac2118._0x5c2674)]);return this[_0x53761c(_0xac2118._0x44d445,0x391,0x3d4,_0xac2118._0x1bdfb9)];}[_0x2d9e9f(0x508,0x4da,0x454,0x3aa)](){const _0x5cbc9b={_0x4eca8c:0x2a,_0x16f4e6:0x14b,_0x278f46:0x120,_0x323961:0x216,_0x2323af:0x174},_0x9e6c66={_0x342cd5:0x14a},_0x5741c5={_0x4b2bfe:0x1b0,_0x656af1:0x67};if(!this[_0x5151e8(_0x5cbc9b._0x4eca8c,0x197,_0x5cbc9b._0x16f4e6,0xf0)])throw new Error('OpenAI\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x5151e8(_0x5cbc9b._0x278f46,0x14b,_0x5cbc9b._0x323961,_0x5cbc9b._0x2323af)]);function _0x5151e8(_0x28f458,_0x41ef0a,_0x8b9a0d,_0x33bcc2){return _0x2d9e9f(_0x28f458-_0x5741c5._0x4b2bfe,_0x8b9a0d,_0x33bcc2- -0x327,_0x33bcc2-_0x5741c5._0x656af1);}function _0x2b3e94(_0x322342,_0x355b0e,_0x588db0,_0x353922){return _0x1818aa(_0x322342-0x146,_0x322342,_0x588db0-0x1b3,_0x355b0e-_0x9e6c66._0x342cd5);}return this['openAiDelegate'];}['complete'](_0x4770c1,_0x599a1){const _0x172411={_0x18725c:0x3c1,_0x10f494:0x2f2,_0x14cc57:0x2cf,_0x1f524b:0x401,_0x45fadc:0x452,_0x3c9560:0x466,_0x2a2688:0x473,_0x58ec51:0x34c,_0x5735ca:0x3da,_0x455b85:0x32c,_0x209cb5:0x22d,_0x564ccd:0x4fa,_0x1ea45e:0x3ae,_0x5b4c84:0x3c7,_0x1479d3:0x2b9,_0x2733c6:0x36f,_0x37b9e3:0x40d},_0x2374a1={_0x587f94:0xf4,_0x394688:0xd5};function _0x47db70(_0x1a4d39,_0x2b1eff,_0x1b376e,_0x3ac45c){return _0x1818aa(_0x1a4d39-0x1f0,_0x1a4d39,_0x1b376e-0x0,_0x3ac45c-0x3f2);}function _0xcaf1bb(_0x4a899c,_0x1605a2,_0x5a8356,_0x4bbaf2){return _0x1818aa(_0x4a899c-_0x2374a1._0x587f94,_0x4a899c,_0x5a8356-_0x2374a1._0x394688,_0x4bbaf2-0x2ee);}switch(this[_0xcaf1bb(0x40f,0x37f,_0x172411._0x18725c,0x3b6)]){case _0xcaf1bb(0x33d,_0x172411._0x10f494,0x330,0x3c7):return this['getAnthropicDelegate']()['complete'](_0x4770c1,_0x599a1);case _0xcaf1bb(_0x172411._0x14cc57,_0x172411._0x1f524b,_0x172411._0x45fadc,0x381):return this[_0x47db70(_0x172411._0x3c9560,0x4fe,0x4fc,_0x172411._0x2a2688)]()[_0xcaf1bb(0x36c,_0x172411._0x58ec51,_0x172411._0x5735ca,0x399)](_0x4770c1,_0x599a1);case _0x47db70(_0x172411._0x455b85,0x36d,_0x172411._0x209cb5,0x313):return this[_0x47db70(_0x172411._0x564ccd,_0x172411._0x1ea45e,_0x172411._0x5b4c84,0x473)]()['responseSocket'](_0x4770c1,_0x599a1);default:return this[_0xcaf1bb(_0x172411._0x1479d3,0x396,0x343,_0x172411._0x2733c6)]()[_0xcaf1bb(0x274,_0x172411._0x37b9e3,0x387,0x351)](_0x4770c1,_0x599a1);}}[_0x1818aa(-0xc3,0x28,-0x128,-0xaa)](_0xd913fe,_0x4212ef){const _0x2a13f6={_0x4ac5fc:0x50,_0x3e6614:0x2f,_0x498f16:0x11,_0x30039d:0x63c,_0x2accdc:0x629,_0x7c0e4:0xd5,_0x38ac79:0x225,_0x188cae:0x679,_0x4e8010:0x5e3,_0xb26d83:0x1e,_0x323c30:0x76,_0x5543a1:0x4b,_0x3a9ae7:0x65,_0x1687ad:0x530,_0x55c506:0x514,_0x37de5b:0x4f7,_0x5c1a05:0x18a,_0x4b39c8:0x244,_0x39313e:0x1f7,_0x56023e:0x629,_0x30fc22:0x5d9,_0x6a7130:0x62e,_0x372eee:0x5d1,_0x2d41f6:0x8f,_0x67ffb5:0x54,_0x301d61:0x12a,_0x19bede:0x70},_0x3929ae={_0x59b2d2:0x17d};function _0x2bc535(_0x4259da,_0x378481,_0x44ddef,_0x1312bc){return _0x1818aa(_0x4259da-0x14d,_0x44ddef,_0x44ddef-0xd7,_0x378481- -0xf7);}function _0x57ba9a(_0x3d6916,_0x218c69,_0x211475,_0x407683){return _0x2d9e9f(_0x3d6916-0xbf,_0x218c69,_0x407683-_0x3929ae._0x59b2d2,_0x407683-0x156);}switch(this[_0x2bc535(-_0x2a13f6._0x4ac5fc,-_0x2a13f6._0x3e6614,-_0x2a13f6._0x498f16,-0xdf)]){case _0x57ba9a(0x5d4,0x56c,_0x2a13f6._0x30039d,_0x2a13f6._0x2accdc):return this[_0x2bc535(-0x91,-0xa8,-0xef,-_0x2a13f6._0x7c0e4)]()[_0x2bc535(-0xf2,-0x1a1,-_0x2a13f6._0x38ac79,-0x1e8)](_0xd913fe,_0x4212ef);case _0x57ba9a(0x638,_0x2a13f6._0x188cae,0x65a,_0x2a13f6._0x4e8010):return this[_0x2bc535(_0x2a13f6._0xb26d83,-_0x2a13f6._0x323c30,_0x2a13f6._0x5543a1,_0x2a13f6._0x3a9ae7)]()[_0x57ba9a(_0x2a13f6._0x1687ad,0x4e8,_0x2a13f6._0x55c506,_0x2a13f6._0x37de5b)](_0xd913fe,_0x4212ef);case _0x2bc535(-_0x2a13f6._0x5c1a05,-0x1d6,-_0x2a13f6._0x4b39c8,-_0x2a13f6._0x39313e):return this[_0x57ba9a(0x659,_0x2a13f6._0x56023e,0x67c,0x5d1)]()[_0x57ba9a(0x635,0x5df,0x61c,_0x2a13f6._0x30fc22)](_0xd913fe,_0x4212ef);default:return this[_0x57ba9a(0x52f,_0x2a13f6._0x6a7130,0x54f,_0x2a13f6._0x372eee)]()[_0x2bc535(_0x2a13f6._0x2d41f6,-_0x2a13f6._0x67ffb5,-_0x2a13f6._0x301d61,_0x2a13f6._0x19bede)](_0xd913fe,_0x4212ef);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x2d9e9f(0x348,0x25d,0x2d7,0x2b0)];[_0x2d9e9f(0x459,0x31f,0x3f9,0x395)];[_0x1818aa(0xa0,0x139,0x0,0x65)];[_0x1818aa(0x130,-0x58,0x9,0x4d)];[_0x2d9e9f(0x39c,0x376,0x409,0x3d2)];constructor(_0x5879dd){const _0x5939cc={_0x184656:0x3bf,_0x38b741:0x320,_0x3e5a1e:0x139,_0x2c8022:0x1d7,_0x49be17:0x151,_0x38f255:0xb5,_0x4faeb1:0x13a,_0x50aa64:0x178,_0x7cfafb:0x16c,_0x43f324:0x12b},_0x2c5883={_0x470e80:0xfd,_0x71af28:0xa6,_0x3cf542:0xdb},_0x26ee54={_0x242aed:0x172,_0x2f22b9:0x10f};this[_0xc21cf(-0x25c,-_0x5939cc._0x184656,-_0x5939cc._0x38b741,-0x2ca)]=_0x5879dd[_0x2ed9b6(-_0x5939cc._0x3e5a1e,-_0x5939cc._0x2c8022,-0x271,-_0x5939cc._0x49be17)];function _0xc21cf(_0x2cd20c,_0x541ecb,_0x37355f,_0x25394d){return _0x1818aa(_0x2cd20c-_0x26ee54._0x242aed,_0x2cd20c,_0x37355f-_0x26ee54._0x2f22b9,_0x37355f- -0x224);}function _0x2ed9b6(_0x3d69cf,_0x5168f4,_0x100673,_0x52b112){return _0x1818aa(_0x3d69cf-_0x2c5883._0x470e80,_0x100673,_0x100673-_0x2c5883._0x71af28,_0x5168f4- -_0x2c5883._0x3cf542);}this['baseUrl']=trimTrailingSlashes2(_0x5879dd[_0x2ed9b6(-0x27,-_0x5939cc._0x38f255,-0xd1,-0x60)]),this[_0x2ed9b6(-_0x5939cc._0x4faeb1,-0x76,0x2c,-0x15d)]=_0x5879dd['fetch'],this['githubApiUrl']=trimTrailingSlashes2(_0x5879dd['githubApiUrl']),this[_0xc21cf(-_0x5939cc._0x50aa64,-_0x5939cc._0x7cfafb,-0x1ee,-0x254)]=_0x5879dd[_0x2ed9b6(-_0x5939cc._0x43f324,-0xa5,-0x91,-0x59)];}async[_0x1818aa(-0xf,0xb7,0x8a,0x8e)](_0x65c564){const _0x50d56d={_0x2e6250:0x83,_0x3630ad:0xe4,_0x3eff62:0x5a,_0x232607:0x1ac,_0x3b1475:0x1a6,_0x7799cd:0x73,_0x50baf8:0x5c,_0x4854a2:0x28,_0xbb4bc1:0xcd,_0x3e6e66:0x8d,_0x12c9fe:0x191,_0x514add:0x227,_0x37246e:0x1fe,_0x40f036:0x1e5,_0x462194:0x163,_0x18b13d:0x179,_0x501737:0x1cb,_0x164278:0xfd,_0x56d263:0x170,_0x5ba57a:0xed,_0x44cc76:0x8b,_0x2598b9:0x198,_0x4f7f83:0x126,_0x2c197e:0xf8,_0x38e34b:0x16,_0x14d032:0x35,_0x1b8701:0x4e,_0x134968:0xf,_0xad9a4:0x7c,_0x6c0c14:0x148,_0xe5313e:0x81,_0xb57c68:0x12d,_0x39969b:0xe9,_0x467ba7:0x76,_0x2cfaf0:0x3c,_0x252026:0x10a,_0x52408f:0x7c,_0x46f86f:0x74},_0xcaf245={_0x1da9fc:0x91,_0x1ee719:0x15e,_0x59f294:0xc7},_0x1f2643=await this[_0x598d87(_0x50d56d._0x2e6250,-0x6b,-0x43,-0x42)](this[_0x598d87(0x86,-_0x50d56d._0x3630ad,-0x135,-_0x50d56d._0x3eff62)]+_0x598d87(-_0x50d56d._0x232607,-_0x50d56d._0x3b1475,-0x132,-0x122),{'method':_0x598d87(0x75,_0x50d56d._0x7799cd,-_0x50d56d._0x50baf8,0x6),'headers':new Headers({'accept':_0xea2587(-0x6a,-_0x50d56d._0x4854a2,0x75,-0x7e),'authorization':_0xea2587(0xb0,_0x50d56d._0xbb4bc1,_0x50d56d._0x3e6e66,_0x50d56d._0x12c9fe)+this[_0x598d87(-0x1ce,-_0x50d56d._0x514add,-0x154,-0x1a3)],'editor-version':_0x598d87(-0xf4,-_0x50d56d._0x37246e,-_0x50d56d._0x40f036,-_0x50d56d._0x462194),'user-agent':_0x598d87(-_0x50d56d._0x18b13d,0x2d,-0xc0,-0x9a),'x-github-api-version':this[_0xea2587(_0x50d56d._0x501737,_0x50d56d._0x164278,0x69,0x146)]}),'signal':_0x65c564});function _0xea2587(_0x180d23,_0x4271af,_0x9cbcd6,_0x1f1ef8){return _0x1818aa(_0x180d23-_0xcaf245._0x1da9fc,_0x180d23,_0x9cbcd6-_0xcaf245._0x1ee719,_0x4271af-_0xcaf245._0x59f294);}function _0x598d87(_0x2b1192,_0x3f15b4,_0x2e3be0,_0x4c5db9){return _0x2d9e9f(_0x2b1192-0xf,_0x2b1192,_0x4c5db9- -0x47a,_0x4c5db9-0x41);}if(!_0x1f2643['ok'])return{'credential':{'kind':'oauth-token','value':this['accessToken']},'endpoints':{'api':this[_0xea2587(_0x50d56d._0x56d263,_0x50d56d._0x5ba57a,0x199,_0x50d56d._0x44cc76)]}};const _0x1993ba=await _0x1f2643[_0x598d87(-_0x50d56d._0x2598b9,-0xa3,-0x4b,-_0x50d56d._0x4f7f83)]();return{'credential':{'kind':'session-token','value':_0x1993ba[_0x598d87(0x65,-_0x50d56d._0x2c197e,-0x5f,-_0x50d56d._0x50baf8)]??this[_0xea2587(_0x50d56d._0x38e34b,-_0x50d56d._0x14d032,-_0x50d56d._0x1b8701,-0xa2)]},'endpoints':{'api':_0x1993ba[_0x598d87(_0x50d56d._0x134968,-0x146,-_0x50d56d._0xad9a4,-0x64)]?.[_0xea2587(0x170,0xbe,0x1a0,0x4c)]??this[_0x598d87(-_0x50d56d._0x6c0c14,-0x15f,-0x156,-_0x50d56d._0xe5313e)],'originTracker':_0x1993ba[_0xea2587(0x113,0x10a,0x75,_0x50d56d._0xb57c68)]?.[_0x598d87(-_0x50d56d._0x39969b,-0x101,_0x50d56d._0x467ba7,-_0x50d56d._0x2cfaf0)],'proxy':_0x1993ba[_0xea2587(0x3f,_0x50d56d._0x252026,_0x50d56d._0x52408f,0x197)]?.[_0x598d87(-0xb2,-_0x50d56d._0x46f86f,-0x1f0,-0x11d)],'telemetry':_0x1993ba[_0xea2587(0xee,_0x50d56d._0x252026,0x61,0x13b)]?.['telemetry']}};}};function trimTrailingSlashes2(_0x202281){const _0x3f8480={_0x4d47a2:0x55f,_0x63b0e6:0x595},_0xf76894={_0x4399c0:0x17d};function _0x77f9cb(_0x4547b0,_0x3f0ae5,_0x3feaec,_0x3f1279){return _0x1818aa(_0x4547b0-_0xf76894._0x4399c0,_0x3f1279,_0x3feaec-0xba,_0x3feaec-0x404);}return _0x202281[_0x77f9cb(_0x3f8480._0x4d47a2,0x4b5,0x4b2,_0x3f8480._0x63b0e6)](/\/+$/,'');}function createModelInfo(_0x32ca3c){const _0x441d67={_0x113247:0x52,_0x38c711:0xe9,_0x274c4e:0x16f,_0x5d47af:0x6d,_0x33b746:0x99,_0x35ab05:0xfc,_0xd67328:0x94,_0x185182:0x1d,_0x8dd8ae:0xe8,_0x1347eb:0xb3,_0x4aede3:0xa9,_0x1781b3:0xe2},_0x20aa5a={_0x5dc187:0x107,_0x214903:0x570,_0x5cff9d:0xaf},_0x3d8963={_0x16cd32:0x183};function _0x2a1702(_0x682d84,_0xc87c32,_0x50c106,_0xd4744b){return _0x2d9e9f(_0x682d84-0x157,_0xd4744b,_0xc87c32- -0x3da,_0xd4744b-_0x3d8963._0x16cd32);}function _0x17c6a7(_0xb5c4b1,_0x26f6a8,_0x5a6356,_0x2e4162){return _0x2d9e9f(_0xb5c4b1-_0x20aa5a._0x5dc187,_0x2e4162,_0x5a6356- -_0x20aa5a._0x214903,_0x2e4162-_0x20aa5a._0x5cff9d);}const _0x3b9f39=_0x32ca3c[_0x17c6a7(-0x83,-_0x441d67._0x113247,-_0x441d67._0x38c711,-0x1d)]??_0x32ca3c[_0x2a1702(0xec,0xbd,0x29,_0x441d67._0x274c4e)],_0x137d80=_0x32ca3c[_0x2a1702(0x0,0xae,_0x441d67._0x5d47af,_0x441d67._0x33b746)]?.[_0x17c6a7(-0x17a,-0x1c4,-_0x441d67._0x35ab05,-_0x441d67._0xd67328)]?.['max_context_window_tokens'],_0x494010=_0x32ca3c[_0x17c6a7(-0x1c2,-_0x441d67._0x185182,-_0x441d67._0x8dd8ae,-0x122)]?.[_0x2a1702(0xe2,0x9a,_0x441d67._0x1347eb,-0x47)]?.['max_output_tokens'],_0x190deb=_0x137d80!==void 0x0||_0x494010!==void 0x0?{..._0x137d80!==void 0x0?{'contextWindow':_0x137d80}:{},..._0x494010!==void 0x0?{'maxOutput':_0x494010}:{}}:void 0x0;return{'id':_0x32ca3c['id'],'name':_0x32ca3c[_0x2a1702(-_0x441d67._0x4aede3,-0xa0,-0x187,-_0x441d67._0x1781b3)]??_0x32ca3c['id'],..._0x190deb?{'limits':_0x190deb}:{},..._0x3b9f39?{'supportedEndpoints':_0x3b9f39}:{}};}function deduplicateModels(_0x4e8df2){const _0xf2c153={_0x5f5d0d:0x5f,_0x1d0888:0x3e,_0x40d91d:0x78,_0xc15752:0x6a};function _0x3cad4a(_0x4c435c,_0x33a805,_0x1fc82e,_0x59ac10){return _0x2d9e9f(_0x4c435c-0x1d0,_0x33a805,_0x1fc82e- -0x147,_0x59ac10-0xd5);}const _0x39f346=new Map();function _0x45b884(_0x302f0a,_0x829ffa,_0x46d362,_0x2d1bd2){return _0x1818aa(_0x302f0a-0xa8,_0x829ffa,_0x46d362-0x160,_0x2d1bd2-0xd9);}for(const _0x2a45c4 of _0x4e8df2){!_0x39f346['has'](_0x2a45c4['id'])&&_0x39f346[_0x45b884(_0xf2c153._0x5f5d0d,0x4e,-_0xf2c153._0x1d0888,0x20)](_0x2a45c4['id'],_0x2a45c4);}return Array['from'](_0x39f346[_0x45b884(-0x5f,-_0xf2c153._0x40d91d,-0x65,_0xf2c153._0xc15752)]());}function hasUserPromptContent(_0x4cb7c8){const _0x598fed={_0x50fd67:0x185,_0x3461b6:0x2c9,_0x2b4cfb:0x29f,_0x3867d8:0x1ef,_0x5a9d34:0x34e,_0x226d7:0x46f,_0x5a8037:0x428},_0x4c1ef5={_0x297560:0x5dd,_0x1c317c:0x541,_0x59606c:0x44a,_0x3bacbb:0x428,_0x4174d1:0x4d4,_0x10ef38:0x600,_0x226428:0x69d,_0x264919:0x58b,_0x3cc0b1:0x525,_0x18ddea:0x48c,_0x34be69:0x67c,_0x2cc4d2:0x4b8,_0xf0b29:0x5b0},_0x36039c={_0xb75dbe:0x104,_0xd1f52d:0x132,_0x49d3b8:0x3bd},_0x2f778f={_0xb3362:0x1d,_0x598d35:0x1dd},_0x3ad738={_0x2dc44f:0x11e,_0x4aca53:0x1d7,_0xa66e02:0x452},_0x4180f7={_0x204629:0x196};function _0x4c47f0(_0x2cc3b8,_0xedbfa1,_0x5773aa,_0x15521c){return _0x2d9e9f(_0x2cc3b8-0x9b,_0x15521c,_0x5773aa- -0x269,_0x15521c-_0x4180f7._0x204629);}if(typeof _0x4cb7c8===_0x4c47f0(_0x598fed._0x50fd67,_0x598fed._0x3461b6,0x227,0x232))return _0x4cb7c8[_0x4c47f0(_0x598fed._0x2b4cfb,0x13b,_0x598fed._0x3867d8,0x105)]()[_0x4c47f0(0x1f4,0x278,0x18f,0x15d)]>0x0;if(!Array[_0x4db2bd(0x40c,0x2ff,0x2f5,0x37a)](_0x4cb7c8))return![];function _0x4db2bd(_0x5550a9,_0x5db00a,_0x386a35,_0x3b0b9c){return _0x1818aa(_0x5550a9-_0x3ad738._0x2dc44f,_0x386a35,_0x386a35-_0x3ad738._0x4aca53,_0x3b0b9c-_0x3ad738._0xa66e02);}return _0x4cb7c8[_0x4db2bd(_0x598fed._0x5a9d34,_0x598fed._0x226d7,0x423,_0x598fed._0x5a8037)](_0x3142ba=>{if(!_0x3142ba||typeof _0x3142ba!==_0x11213d(0x5e9,0x604,_0x4c1ef5._0x297560,0x547))return![];const _0xe77ed7=_0x3142ba;function _0x11213d(_0x5a1fba,_0x506d59,_0x3d2fab,_0x19d44b){return _0x4db2bd(_0x5a1fba-_0x2f778f._0xb3362,_0x506d59-_0x2f778f._0x598d35,_0x5a1fba,_0x19d44b-0x29);}function _0x3cdaa8(_0x24afb8,_0x25b4f1,_0x505126,_0x501633){return _0x4c47f0(_0x24afb8-_0x36039c._0xb75dbe,_0x25b4f1-_0x36039c._0xd1f52d,_0x505126-_0x36039c._0x49d3b8,_0x501633);}return(_0xe77ed7[_0x11213d(_0x4c1ef5._0x1c317c,0x5ac,_0x4c1ef5._0x59606c,0x517)]===_0x3cdaa8(0x526,_0x4c1ef5._0x3bacbb,_0x4c1ef5._0x4174d1,0x4e4)||_0xe77ed7[_0x3cdaa8(0x686,_0x4c1ef5._0x10ef38,0x5c3,_0x4c1ef5._0x226428)]==='text')&&typeof _0xe77ed7[_0x3cdaa8(_0x4c1ef5._0x264919,_0x4c1ef5._0x3cc0b1,0x53a,_0x4c1ef5._0x18ddea)]==='string'&&_0xe77ed7['text'][_0x3cdaa8(_0x4c1ef5._0x34be69,0x685,0x5ac,0x513)]()[_0x3cdaa8(_0x4c1ef5._0x2cc4d2,_0x4c1ef5._0xf0b29,0x54c,0x5db)]>0x0;});}function _isUserPromptEntry(_0x1c7201){const _0xb5f403={_0x3ce10f:0x59,_0x218917:0x9,_0x1c1c02:0x73,_0x396ec0:0x8,_0x40bcbe:0xe1,_0x1df667:0x68,_0x47364f:0x30,_0x19abe8:0xf5,_0x164341:0x166,_0xb82667:0x1ad,_0xb8dadb:0x138,_0x1657ca:0x165,_0x3c54ec:0xce,_0x19880d:0x2a};if(!_0x1c7201||typeof _0x1c7201!==_0x335f5c(0x7b,_0xb5f403._0x3ce10f,0x60,_0xb5f403._0x218917))return![];function _0x321b11(_0x17f696,_0x272bc4,_0x4d7291,_0x2890b4){return _0x2d9e9f(_0x17f696-0x26,_0x4d7291,_0x17f696- -0x564,_0x2890b4-0x1a1);}const _0x3750d9=_0x1c7201;function _0x335f5c(_0xcde3b6,_0x3b0ce0,_0x210021,_0x2aab54){return _0x2d9e9f(_0xcde3b6-0xdf,_0x2aab54,_0x210021- -0x43f,_0x2aab54-0x21);}if(_0x3750d9['role']!==_0x335f5c(_0xb5f403._0x1c1c02,-0xe2,-0x76,_0xb5f403._0x396ec0))return![];if(_0x3750d9[_0x335f5c(_0xb5f403._0x40bcbe,_0xb5f403._0x1df667,_0xb5f403._0x47364f,-0x36)]!==void 0x0&&_0x3750d9[_0x321b11(-_0xb5f403._0x19abe8,-_0xb5f403._0x164341,-0x126,-0xeb)]!==_0x335f5c(-_0xb5f403._0xb82667,-_0xb5f403._0xb8dadb,-_0xb5f403._0x1657ca,-_0xb5f403._0x3c54ec))return![];return hasUserPromptContent(_0x3750d9[_0x335f5c(-_0xb5f403._0x19880d,-0x99,-0x2e,-0x74)]);}function determineInitiator(_0x39d319){const _0x47078a={_0xd81b44:0x4b6,_0x1533a0:0x452,_0x280774:0x46d,_0x6fb6ea:0x296,_0x4d320a:0x2e1,_0x4b435d:0x45e,_0x5f3f81:0x595,_0x18f679:0x4a9,_0x4f0158:0x410,_0x572a04:0x5d6,_0x5807a1:0x570,_0x4aa157:0x4ed,_0x4bfee0:0x2ae,_0x54cd05:0x4a3,_0x1c06b6:0x478,_0x10aef2:0x44c,_0x28887e:0x486,_0x4f65f4:0x388,_0x508ee6:0x413,_0x4e651c:0x328},_0x250820={_0x52a359:0xc1},_0x5ee9ce={_0x15d277:0x45,_0x327aa1:0xed};function _0x36f1b6(_0x41b791,_0x2d3d7f,_0x55f5,_0xb8ed38){return _0x2d9e9f(_0x41b791-0x3e,_0x2d3d7f,_0xb8ed38-_0x5ee9ce._0x15d277,_0xb8ed38-_0x5ee9ce._0x327aa1);}function _0x342599(_0x472d9b,_0x342074,_0x5f4f4f,_0x53e295){return _0x2d9e9f(_0x472d9b-0xb0,_0x342074,_0x5f4f4f- -0x4d,_0x53e295-_0x250820._0x52a359);}if(!_0x39d319||typeof _0x39d319!==_0x342599(0x376,_0x47078a._0xd81b44,_0x47078a._0x1533a0,_0x47078a._0x280774))return _0x342599(0x1f9,0x1ec,_0x47078a._0x6fb6ea,_0x47078a._0x4d320a);const _0x8dde7c=_0x36f1b6(0x489,_0x47078a._0x4b435d,0x574,0x4e9)in _0x39d319?_0x39d319[_0x36f1b6(_0x47078a._0x5f3f81,0x4e0,_0x47078a._0x18f679,0x4e9)]:_0x36f1b6(0x516,_0x47078a._0x4f0158,0x514,0x4ed)in _0x39d319?_0x39d319[_0x36f1b6(0x4a2,_0x47078a._0x572a04,_0x47078a._0x5807a1,_0x47078a._0x4aa157)]:void 0x0;if(!Array[_0x342599(0x341,0x1e5,_0x47078a._0x4bfee0,0x2e6)](_0x8dde7c)||_0x8dde7c[_0x36f1b6(0x42d,_0x47078a._0x54cd05,_0x47078a._0x1c06b6,0x43d)]===0x0)return'agent';return _isUserPromptEntry(_0x8dde7c[_0x8dde7c[_0x36f1b6(_0x47078a._0x10aef2,_0x47078a._0x28887e,0x380,0x43d)]-0x1])?'user':_0x36f1b6(_0x47078a._0x4f65f4,0x248,_0x47078a._0x508ee6,_0x47078a._0x4e651c);}function isUnsupportedApiForModel(_0x6e5756){const _0x178857={_0x4019e2:0x251,_0x21050c:0x1f3},_0x27e1c0={_0x1ad88e:0x4b,_0x2d154f:0x18a};function _0xace596(_0x1cdccb,_0x29b916,_0x19371a,_0x3094aa){return _0x2d9e9f(_0x1cdccb-_0x27e1c0._0x1ad88e,_0x3094aa,_0x19371a- -0x288,_0x3094aa-_0x27e1c0._0x2d154f);}return _0x6e5756[_0xace596(_0x178857._0x4019e2,0x259,_0x178857._0x21050c,0x1c2)]('unsupported_api_for_model');}function createResponseError(_0x8e5f5d,_0x4faad4){const _0x380052={_0x42caec:0x8,_0x447d02:0x14,_0x11c0a0:0x38,_0xd95a2a:0xe2,_0x125451:0x136,_0x61dda7:0x129,_0x3e939d:0x18a,_0x219daa:0x21d,_0x39255c:0x26a,_0x3de3fc:0x1a1},_0x61c7bc={_0x27e6d3:0x5c7},_0x16f124={_0x1ec235:0xa2,_0x3ee298:0x2d};if(_0x8e5f5d===0x191||_0x8e5f5d===0x193)return new Error('Authentication\x20failed.\x20Please\x20check\x20your\x20API\x20key.');function _0x4a6800(_0x16d0ec,_0x4a74a3,_0x3e61a4,_0x504899){return _0x1818aa(_0x16d0ec-0x1bc,_0x504899,_0x3e61a4-_0x16f124._0x1ec235,_0x16d0ec- -_0x16f124._0x3ee298);}function _0x1ca354(_0x2f463f,_0x2baf07,_0x9b6313,_0x5cd337){return _0x2d9e9f(_0x2f463f-0x100,_0x2baf07,_0x5cd337- -_0x61c7bc._0x27e6d3,_0x5cd337-0x5b);}if(_0x8e5f5d===0x198||_0x8e5f5d===0x1ad)return new Error(_0x4a6800(_0x380052._0x42caec,_0x380052._0x447d02,-_0x380052._0x11c0a0,-_0x380052._0xd95a2a));if(_0x8e5f5d===0x190)return new Error(_0x1ca354(-0x1e3,-_0x380052._0x125451,-_0x380052._0x61dda7,-_0x380052._0x3e939d)+_0x4faad4);return new Error(_0x4faad4||_0x1ca354(-_0x380052._0x219daa,-_0x380052._0x39255c,-0x25e,-_0x380052._0x3de3fc)+_0x8e5f5d);}var GitHubModel=class extends OpenAiModel{[_0x1818aa(-0x1c6,-0x133,-0x5a,-0xf6)];[_0x1818aa(0x7a,0x153,0x9d,0x82)]=new Map();[_0x2d9e9f(0x4ed,0x52b,0x49b,0x522)];constructor(_0x34b696={}){const _0x473941={_0x240368:0x411,_0xfd45dc:0x334,_0x4a452b:0x3b1,_0x864f6c:0x43d,_0x503b03:0x402,_0x3e3b07:0x295,_0x3a7f67:0x249,_0x478254:0x111,_0x364739:0x28a,_0x3ffef6:0x2cc,_0x37b710:0x43a,_0x110901:0x2bd,_0x4e3e4d:0x2dc,_0x415eb8:0x38a,_0x1891cd:0x21e,_0x4323ca:0x243,_0x3642ed:0x457,_0x140a1b:0x342,_0x1d3581:0x387,_0x561879:0x2f5,_0x3ec1e2:0x2d3,_0x3bfabe:0x24c,_0x39ac3e:0x330,_0x4a7098:0x15b,_0x2d108e:0x2de,_0x22b0e7:0x388,_0x4a0d43:0x490,_0x1aad21:0x4f4,_0x38259f:0x2ac,_0x40fb2d:0x392,_0x10cdf8:0x376,_0x2bb9e4:0x171,_0x413953:0x2ee,_0x40b04c:0x304,_0x314a0b:0x235,_0x244e08:0x288,_0x4e81aa:0x1ba,_0x3fab24:0x1bf,_0x408d69:0x275},_0x223156={_0x5446da:0x34,_0x1741f6:0x34,_0x1a0021:0x2ca},_0x20cf49={_0x1f8e7d:0x19e,_0x3050bc:0xb},_0x34b4f9=trimTrailingSlashes2(_0x34b696[_0x407b7a(0x3ee,_0x473941._0x240368,_0x473941._0xfd45dc,_0x473941._0x4a452b)]??'https://api.individual.githubcopilot.com'),_0x5e1c62=_0x34b696[_0x407b7a(_0x473941._0x864f6c,_0x473941._0x503b03,0x4b7,0x375)]??globalThis['fetch'];function _0x407b7a(_0x5352d7,_0x12ed0b,_0x1903de,_0x1fcbfe){return _0x2d9e9f(_0x5352d7-_0x20cf49._0x1f8e7d,_0x12ed0b,_0x5352d7- -_0x20cf49._0x3050bc,_0x1fcbfe-0x19e);}const _0x2c976f=_0x34b696[_0x2b2b90(_0x473941._0x3e3b07,0x22d,_0x473941._0x3a7f67,0x19e)]??(_0x34b696[_0x2b2b90(0x19c,_0x473941._0x478254,0x1ce,_0x473941._0x364739)]?new GitHubAccessTokenResolver({'accessToken':_0x34b696[_0x407b7a(_0x473941._0x3ffef6,0x227,0x33e,0x332)],'baseUrl':_0x34b4f9,'fetch':_0x5e1c62,'githubApiUrl':_0x34b696['githubApiUrl']??_0x407b7a(0x35f,_0x473941._0x37b710,0x3a1,_0x473941._0x110901),'tokenExchangeApiVersion':_0x34b696[_0x2b2b90(_0x473941._0x4e3e4d,0x2d0,0x300,_0x473941._0x415eb8)]??_0x2b2b90(0x257,_0x473941._0x364739,0x1ea,0x242)}):void 0x0),_0x596e0a=_0x34b696[_0x2b2b90(0x2db,0x2bf,_0x473941._0x1891cd,_0x473941._0x4323ca)]??_0x2b2b90(_0x473941._0x3642ed,0x410,0x376,_0x473941._0x140a1b),_0x2c800e=_0x34b696[_0x2b2b90(_0x473941._0x1d3581,0x2a6,_0x473941._0x561879,0x376)]??_0x407b7a(_0x473941._0x3ec1e2,0x2b0,_0x473941._0x3bfabe,_0x473941._0x39ac3e),_0x4d5a2c=({body:_0x453f0a})=>{return{'editor-plugin-version':_0x2c800e,'editor-version':_0x596e0a,'x-initiator':determineInitiator(_0x453f0a),'x-request-id':randomUUID()};},_0x59d466={'apiKey':_0x34b696['apiKey'],'baseUrl':_0x34b4f9,'fetch':_0x5e1c62,'maxTokens':_0x34b696['maxTokens'],'model':_0x34b696['model'],'reasoning':_0x34b696[_0x2b2b90(0x1bb,_0x473941._0x4a7098,0x212,_0x473941._0x2d108e)],'providerSessionResolver':_0x2c976f,'requestMutators':_0x34b696[_0x407b7a(0x34b,0x353,0x374,_0x473941._0x22b0e7)],'headerResolver':_0x4d5a2c};super(_0x59d466);function _0x2b2b90(_0x141242,_0x4a5554,_0x27bb63,_0x5a9540){return _0x1818aa(_0x141242-_0x223156._0x5446da,_0x4a5554,_0x27bb63-_0x223156._0x1741f6,_0x27bb63-_0x223156._0x1a0021);}this[_0x407b7a(_0x473941._0x4a0d43,0x575,_0x473941._0x1aad21,0x51b)]=_0x34b696[_0x2b2b90(0x3cb,_0x473941._0x38259f,_0x473941._0x40fb2d,_0x473941._0x10cdf8)]??'auto',this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x34b696['apiKey'],'authScheme':_0x2b2b90(_0x473941._0x2bb9e4,0x28c,0x248,0x2d0),'baseUrl':_0x34b4f9,'fetch':_0x5e1c62,'headerResolver':_0x4d5a2c,'maxTokens':_0x34b696[_0x407b7a(_0x473941._0x413953,0x225,_0x473941._0x2d108e,0x250)],'model':_0x34b696[_0x407b7a(_0x473941._0x40b04c,_0x473941._0x314a0b,_0x473941._0x244e08,0x23f)],'reasoning':_0x34b696[_0x2b2b90(_0x473941._0x4e81aa,_0x473941._0x3fab24,0x212,_0x473941._0x408d69)],'providerSessionResolver':_0x2c976f,'requestMutators':_0x34b696['requestMutators']});}[_0x2d9e9f(0x392,0x403,0x401,0x46e)](){const _0x3462ff={_0x37a3a0:0x12f,_0x50ddac:0xdf},_0x2aa49b={_0xf0cfef:0x78,_0xe056e3:0x197};function _0x5a3fee(_0x4c3fcf,_0x572214,_0x13104d,_0x3c3315){return _0x1818aa(_0x4c3fcf-_0x2aa49b._0xf0cfef,_0x4c3fcf,_0x13104d-_0x2aa49b._0xe056e3,_0x3c3315-0x1cd);}return new Error(_0x5a3fee(_0x3462ff._0x37a3a0,0x48,0x74,_0x3462ff._0x50ddac));}[_0x1818aa(0x5c,-0x7,-0x26,-0x41)](_0x312742){const _0x46ca1e={_0x2b2f30:0x172,_0x1370fc:0x22d,_0x4d562b:0x217,_0x173e37:0x280,_0x236804:0x74,_0x1a7492:0x245,_0x1b9879:0x146,_0x574842:0x1cc},_0x416a3e={_0x217b7b:0x152,_0x20f2e7:0x4f1,_0x3f5b94:0xff},_0x17f72e={_0x30e843:0x1b3},_0x370c89=this['modelEndpointCache'][_0x3618dd(0x1de,_0x46ca1e._0x2b2f30,_0x46ca1e._0x1370fc,0xdd)](_0x312742);if(!_0x370c89)return![];function _0x3618dd(_0x1b9404,_0x497fca,_0x40a883,_0x3e17bd){return _0x2d9e9f(_0x1b9404-0x67,_0x40a883,_0x497fca- -0x264,_0x3e17bd-_0x17f72e._0x30e843);}function _0x1c59d4(_0x413014,_0x190865,_0x39d902,_0x1aca9c){return _0x2d9e9f(_0x413014-_0x416a3e._0x217b7b,_0x1aca9c,_0x413014- -_0x416a3e._0x20f2e7,_0x1aca9c-_0x416a3e._0x3f5b94);}return!_0x370c89[_0x3618dd(0x1c6,_0x46ca1e._0x4d562b,0x13d,_0x46ca1e._0x173e37)](_0x1c59d4(-0xa7,-0x12b,-0xe0,-_0x46ca1e._0x236804))&&_0x370c89[_0x3618dd(_0x46ca1e._0x1a7492,_0x46ca1e._0x4d562b,_0x46ca1e._0x1b9879,_0x46ca1e._0x574842)]('/responses');}['shouldPreferResponsesApi'](_0x362e0a){const _0x314df1={_0x4e7329:0x320,_0x43f2a7:0x3d9,_0x38c7f2:0x3bb,_0x23a0f1:0x193,_0x3085f3:0x160,_0x212aaa:0x18c,_0x1f7b35:0x1d3,_0x1d75e3:0x50a,_0x39ee56:0x340,_0x47b186:0x3b7,_0x3f9ee6:0x395,_0x37acf6:0x3dc,_0xf2f972:0x256},_0x1a55a6={_0x5df686:0x3,_0x4b8155:0x184},_0x5b8ca5={_0x3d1e07:0x6c};function _0x2dbeeb(_0x86bfe2,_0x1dd764,_0x2bda9b,_0x33f1d0){return _0x2d9e9f(_0x86bfe2-0x67,_0x2bda9b,_0x1dd764- -0x47b,_0x33f1d0-_0x5b8ca5._0x3d1e07);}function _0x2bd49c(_0x430cf3,_0x29be70,_0x5759d5,_0x2c171c){return _0x2d9e9f(_0x430cf3-0x10f,_0x5759d5,_0x29be70-_0x1a55a6._0x5df686,_0x2c171c-_0x1a55a6._0x4b8155);}const _0x4f4957=this['modelEndpointCache'][_0x2bd49c(_0x314df1._0x4e7329,_0x314df1._0x43f2a7,_0x314df1._0x38c7f2,0x42e)](_0x362e0a['model']);if(!_0x4f4957)return![];if(resolveOpenAiReasoningConfig(_0x362e0a[_0x2dbeeb(-_0x314df1._0x23a0f1,-_0x314df1._0x3085f3,-_0x314df1._0x212aaa,-_0x314df1._0x1f7b35)]))return _0x4f4957[_0x2bd49c(0x4d0,0x47e,_0x314df1._0x1d75e3,0x43e)](_0x2bd49c(0x2d3,_0x314df1._0x39ee56,0x25d,0x3aa));return this[_0x2bd49c(_0x314df1._0x47b186,_0x314df1._0x3f9ee6,_0x314df1._0x37acf6,0x3fe)](_0x362e0a[_0x2bd49c(_0x314df1._0xf2f972,0x312,0x301,0x23c)]);}[_0x1818aa(-0x93,-0xd1,-0xb8,-0xe9)](_0x43e534){const _0x290217={_0x20e7a0:0xfd,_0x276ae4:0x18b,_0x24a49a:0x1ba,_0x113f0f:0x10a,_0x3f0168:0x42},_0x231150={_0x12e341:0x169,_0x30260f:0x165,_0x483e5e:0x74},_0x40a3ea={_0x36de17:0x15c,_0x367ef6:0x10};function _0x5f299b(_0x576867,_0x3a5a84,_0x13f18f,_0x254e3e){return _0x2d9e9f(_0x576867-_0x40a3ea._0x36de17,_0x13f18f,_0x254e3e- -0x5e0,_0x254e3e-_0x40a3ea._0x367ef6);}function _0x582854(_0x32080a,_0x2dc3dd,_0x14027e,_0x199535){return _0x1818aa(_0x32080a-_0x231150._0x12e341,_0x2dc3dd,_0x14027e-_0x231150._0x30260f,_0x14027e- -_0x231150._0x483e5e);}this[_0x5f299b(-0x201,-_0x290217._0x20e7a0,-0x198,-_0x290217._0x276ae4)][_0x582854(-0xc4,-0x101,-0x12d,-_0x290217._0x24a49a)](_0x43e534,[_0x582854(-0x178,-0x53,-_0x290217._0x113f0f,-_0x290217._0x3f0168)]);}[_0x1818aa(-0xb7,0x5a,-0x17,-0x58)](_0x247926){const _0x18eab1={_0xb8ff11:0x177,_0x1fd27f:0x15a,_0x2ed6f1:0x177},_0x4547e6={_0x1522f2:0x4a0},_0x3dbf0e={_0x2db033:0x1e7,_0x640387:0x170};function _0x83d970(_0x3583c6,_0x937895,_0xda6f3c,_0x129354){return _0x1818aa(_0x3583c6-0x161,_0xda6f3c,_0xda6f3c-_0x3dbf0e._0x2db033,_0x129354-_0x3dbf0e._0x640387);}if(_0x247926 instanceof OpenAiApiError)return createResponseError(_0x247926['status'],_0x247926[_0x83d970(0x28c,0x269,_0x18eab1._0xb8ff11,0x1af)]||_0x247926[_0x48829d(-0xee,-_0x18eab1._0x1fd27f,-0x1c6,-_0x18eab1._0x2ed6f1)]);function _0x48829d(_0x567186,_0x4b9883,_0x5cc92a,_0x5cb4ab){return _0x2d9e9f(_0x567186-0x1f,_0x5cb4ab,_0x5cc92a- -_0x4547e6._0x1522f2,_0x5cb4ab-0x7);}return _0x247926;}['completeViaConfiguredSurface'](_0x4a892b,_0x53c18e){const _0x246ccc={_0x60f94d:0x633,_0x380abc:0x6e1,_0x3a025c:0x37e,_0x448780:0x3dc,_0x12cb6d:0x308,_0x5484b9:0x338,_0x1b902e:0x419,_0x5078cb:0x174,_0x5ca804:0x4fb,_0x5e6afd:0x49d,_0xdb6d4:0x4c6,_0x55bfc1:0x4d0,_0x2c25e1:0x4a0,_0xed560c:0x5e1,_0x44ae66:0x51e,_0x5f910a:0x36d,_0x34f0dd:0x44a},_0x5bc4a5={_0x4ec5e5:0x16c,_0x1a5741:0x198,_0x52b97a:0x179},_0x9ea4ce={_0x40ec41:0x31,_0x591364:0x50};function _0x1cd155(_0x560ae1,_0x19620a,_0x3db083,_0x412555){return _0x1818aa(_0x560ae1-_0x9ea4ce._0x40ec41,_0x3db083,_0x3db083-_0x9ea4ce._0x591364,_0x560ae1-0x2a5);}function _0x1ce7ee(_0x2ec388,_0x1beb58,_0x2a991a,_0xa846c3){return _0x2d9e9f(_0x2ec388-_0x5bc4a5._0x4ec5e5,_0x1beb58,_0x2ec388-_0x5bc4a5._0x1a5741,_0xa846c3-_0x5bc4a5._0x52b97a);}switch(this[_0x1ce7ee(_0x246ccc._0x60f94d,_0x246ccc._0x380abc,0x5b2,0x6b5)]){case _0x1cd155(_0x246ccc._0x3a025c,0x41d,0x453,0x415):return this['anthropicDelegate'][_0x1cd155(0x31b,0x403,0x404,_0x246ccc._0x448780)](_0x4a892b,_0x53c18e);case'openai-chat-completions':return this[_0x1cd155(_0x246ccc._0x12cb6d,0x37d,0x25b,0x256)](_0x4a892b,_0x53c18e);case _0x1cd155(_0x246ccc._0x5484b9,0x2e2,0x345,_0x246ccc._0x1b902e):return this['response'](_0x4a892b,_0x53c18e);case _0x1cd155(0x1c6,_0x246ccc._0x5078cb,0x1c8,0xef):return this[_0x1ce7ee(_0x246ccc._0x5ca804,_0x246ccc._0x5e6afd,0x45a,0x5d5)](_0x4a892b,_0x53c18e);case _0x1ce7ee(_0x246ccc._0xdb6d4,0x588,_0x246ccc._0x55bfc1,_0x246ccc._0x2c25e1):return this[_0x1ce7ee(_0x246ccc._0xed560c,0x65b,0x56b,_0x246ccc._0x44ae66)](_0x4a892b,_0x53c18e);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x1cd155(_0x246ccc._0x5f910a,_0x246ccc._0x34f0dd,0x3bd,0x443)]));}[_0x1818aa(-0x31,0xa7,-0x125,-0x44)](_0x22ab9b,_0x5d5391){const _0x45e906={_0x995ace:0xe8,_0x41bfa9:0x1b,_0x3fbd1d:0xb1,_0x15d850:0xff,_0x528c7d:0x20,_0x2ceec5:0x136,_0x5934fe:0x1a3,_0xda1e00:0x248,_0x12ac20:0x145,_0x33696b:0x1e0,_0x1df34d:0xb8,_0x389405:0xa4,_0x4b1085:0x32,_0x55ea22:0x42,_0x3570ee:0x5df,_0x315ef8:0x3fd,_0x50f5a4:0x4c9,_0x116a23:0x478,_0x5addc4:0x598,_0x2d9631:0x590,_0x2d04fe:0x56f,_0x165546:0x554,_0x28f70b:0x4fc,_0x27d5fe:0x5b6},_0x5d6ebb={_0x220bcb:0x1cf},_0x3414de={_0xad681f:0x6c};function _0x27afb7(_0x501de0,_0x3293fc,_0x121535,_0x1f1054){return _0x2d9e9f(_0x501de0-_0x3414de._0xad681f,_0x121535,_0x501de0-0xd4,_0x1f1054-0x1e8);}function _0x49478d(_0x48db71,_0x2167cb,_0x5e4ddc,_0x6da62a){return _0x1818aa(_0x48db71-0x30,_0x6da62a,_0x5e4ddc-_0x5d6ebb._0x220bcb,_0x2167cb-0x111);}switch(this['surface']){case'anthropic-messages':return this[_0x49478d(_0x45e906._0x995ace,_0x45e906._0x41bfa9,_0x45e906._0x3fbd1d,_0x45e906._0x15d850)]['stream'](_0x22ab9b,_0x5d5391);case _0x49478d(0x5c,0x95,0x156,_0x45e906._0x528c7d):return this[_0x49478d(_0x45e906._0x2ceec5,0x1b4,_0x45e906._0x5934fe,_0x45e906._0xda1e00)](_0x22ab9b,_0x5d5391);case _0x49478d(_0x45e906._0x12ac20,0x1a4,0x169,_0x45e906._0x33696b):return this[_0x49478d(0x1,_0x45e906._0x1df34d,_0x45e906._0x389405,0x193)](_0x22ab9b,_0x5d5391);case _0x49478d(-0x6,_0x45e906._0x4b1085,0x6,-_0x45e906._0x55ea22):return this[_0x27afb7(0x530,_0x45e906._0x3570ee,0x4ad,0x5ff)](_0x22ab9b,_0x5d5391);case'auto':return this[_0x27afb7(_0x45e906._0x315ef8,0x4d8,0x330,0x441)](_0x22ab9b,_0x5d5391);}throw new Error(_0x27afb7(_0x45e906._0x50f5a4,_0x45e906._0x116a23,_0x45e906._0x5addc4,_0x45e906._0x2d9631)+String(this[_0x27afb7(_0x45e906._0x2d04fe,_0x45e906._0x165546,_0x45e906._0x28f70b,_0x45e906._0x27d5fe)]));}async['complete'](_0x55b64f,_0x272edd){const _0xc4121b={_0x13ae49:0x5ae,_0x326913:0x4f1,_0xafe1a3:0x4ce,_0x221657:0x4d3,_0x5003f2:0x416,_0x5113b8:0x584,_0x1778ad:0x597,_0x1a6316:0x642,_0xc952f1:0x499,_0x2116f5:0x355,_0x31297c:0x320,_0x128906:0x51c,_0x1df969:0x53f},_0x359627={_0x28d34e:0xb1},_0x768765={_0x376d89:0x47,_0x4173cd:0x4f4};function _0x524a2a(_0x2ae056,_0x59f41f,_0x167dca,_0x5022f8){return _0x1818aa(_0x2ae056-_0x768765._0x376d89,_0x59f41f,_0x167dca-0x79,_0x2ae056-_0x768765._0x4173cd);}const _0x1e5297=this[_0x1145f0(0x59c,_0xc4121b._0x13ae49,_0xc4121b._0x326913,_0xc4121b._0xafe1a3)](_0x55b64f);if(this[_0x524a2a(0x5bc,0x5b3,0x601,_0xc4121b._0x221657)]!=='auto')return this[_0x524a2a(_0xc4121b._0x5003f2,0x35f,0x367,0x426)](_0x1e5297,_0x272edd);function _0x1145f0(_0x52a5e4,_0x38677c,_0x444092,_0x3457f2){return _0x1818aa(_0x52a5e4-_0x359627._0x28d34e,_0x52a5e4,_0x444092-0x119,_0x3457f2-0x597);}if(this[_0x524a2a(_0xc4121b._0x5113b8,0x640,_0xc4121b._0x1778ad,0x615)](_0x1e5297))return this[_0x1145f0(0x58f,0x6f3,0x5e2,_0xc4121b._0x1a6316)](_0x1e5297,_0x272edd);try{return await this['completeViaChatCompletionsSurface'](_0x1e5297,_0x272edd);}catch(_0x341c91){if(_0x341c91 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x341c91['body']))return this[_0x524a2a(0x40b,_0xc4121b._0xc952f1,_0xc4121b._0x2116f5,_0xc4121b._0x31297c)](_0x1e5297['model']),this['response'](_0x1e5297,_0x272edd);throw this[_0x1145f0(_0xc4121b._0x128906,0x4d5,0x5ba,_0xc4121b._0x1df969)](_0x341c91);}throw _0x341c91;}}async*[_0x1818aa(-0x19,-0x160,-0x148,-0xaa)](_0xc2519b,_0x45a97c){const _0x3111ae={_0xb856f0:0x144,_0x50e7c4:0xfe,_0x5ee694:0x185,_0x1a1f0a:0x119,_0x29eb19:0x29d,_0x44f1f2:0x26c,_0x21b7f3:0x2c7,_0x40adc9:0x122,_0x4a7fa6:0x1b2,_0x58a17b:0x142,_0x28b672:0x2c2,_0x12b04f:0x243,_0x25f029:0x2f2,_0x552439:0x19c,_0xd50044:0x1f4,_0x519509:0x10c,_0x34e3e9:0x1a6},_0x7eac02={_0x2155a2:0x161,_0x2fc59a:0x275},_0x3f6c11={_0x351528:0x68,_0x32c52a:0x20d},_0x1f867a=this[_0x561027(_0x3111ae._0xb856f0,_0x3111ae._0x50e7c4,_0x3111ae._0x5ee694,_0x3111ae._0x1a1f0a)](_0xc2519b);function _0x561027(_0x4f9c11,_0x5eca81,_0x4d622a,_0x3f13b6){return _0x1818aa(_0x4f9c11-_0x3f6c11._0x351528,_0x4d622a,_0x4d622a-0x60,_0x4f9c11-_0x3f6c11._0x32c52a);}if(this['surface']!=='auto'){yield*this['streamViaConfiguredSurface'](_0x1f867a,_0x45a97c);return;}function _0x127e20(_0x2adfd1,_0x1d1458,_0x592534,_0x33a3b1){return _0x1818aa(_0x2adfd1-0x19c,_0x2adfd1,_0x592534-_0x7eac02._0x2155a2,_0x33a3b1-_0x7eac02._0x2fc59a);}if(this[_0x561027(_0x3111ae._0x29eb19,_0x3111ae._0x44f1f2,_0x3111ae._0x21b7f3,0x233)](_0x1f867a)){yield*this[_0x561027(0x1b4,_0x3111ae._0x40adc9,_0x3111ae._0x4a7fa6,0x21e)](_0x1f867a,_0x45a97c);return;}try{yield*this[_0x561027(_0x3111ae._0x58a17b,0x55,0x1da,0x115)](_0x1f867a,_0x45a97c);}catch(_0x5a2d67){if(_0x5a2d67 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x5a2d67[_0x127e20(_0x3111ae._0x28b672,_0x3111ae._0x12b04f,_0x3111ae._0x25f029,0x2b4)])){this[_0x561027(0x124,0x45,0x1fd,0x12b)](_0x1f867a[_0x561027(0x149,_0x3111ae._0x552439,_0x3111ae._0xd50044,_0x3111ae._0x519509)]),yield*this['responseStream'](_0x1f867a,_0x45a97c);return;}throw this[_0x561027(0x1b5,_0x3111ae._0x34e3e9,0x270,0xd6)](_0x5a2d67);}throw _0x5a2d67;}}async[_0x1818aa(0x82,0xa0,0xf2,0x3a)](_0x3504c4){const _0x2d782d={_0xe1e7ba:0x203,_0x167e56:0x210,_0x10045a:0x1f0,_0x5e276f:0x2df,_0x4650e0:0x1fd,_0x4e007a:0x3a2,_0x521cec:0x17a,_0x23135b:0xdb,_0x9853e9:0x1f0,_0xc55798:0x18b,_0x5c7da8:0x157,_0x58879f:0xfe,_0x4a7853:0x6a,_0x41dd84:0x72,_0x239b1b:0x9c},_0x1bd300={_0x2c30f1:0x6a,_0x3578d2:0x394,_0x35bcab:0x392,_0x1cea93:0x404,_0x3f9159:0x3b2,_0x1c77e0:0x3a8},_0x1b3802={_0x4f17cf:0x1c2,_0x41a2ad:0x1e1},_0x1f671b={_0x43bd8e:0xd3,_0x1b840c:0x162},_0x489059=await this[_0x284630(0x2a5,_0x2d782d._0xe1e7ba,0x200,_0x2d782d._0x167e56)]({'path':_0x284630(0x26c,_0x2d782d._0x10045a,_0x2d782d._0x5e276f,_0x2d782d._0x4650e0),'method':_0x284630(0x2be,_0x2d782d._0x4e007a,0x20c,0x258),'signal':_0x3504c4});function _0xd417a5(_0x4e2046,_0x5c3d7f,_0x42d459,_0x2bbe60){return _0x2d9e9f(_0x4e2046-_0x1f671b._0x43bd8e,_0x2bbe60,_0x42d459- -0x2ea,_0x2bbe60-_0x1f671b._0x1b840c);}if(!_0x489059['ok'])throw this[_0x284630(0x1b9,_0x2d782d._0x521cec,_0x2d782d._0x23135b,0xd8)](await this[_0xd417a5(_0x2d782d._0x9853e9,_0x2d782d._0xc55798,0x19f,0x234)](_0x489059));const _0x30b77e=await _0x489059[_0xd417a5(_0x2d782d._0x5c7da8,_0x2d782d._0x58879f,_0x2d782d._0x4a7853,_0x2d782d._0x41dd84)]();function _0x284630(_0x521a2b,_0x586dec,_0x32d392,_0x4c228d){return _0x2d9e9f(_0x521a2b-0x120,_0x586dec,_0x521a2b- -_0x1b3802._0x4f17cf,_0x4c228d-_0x1b3802._0x41a2ad);}const _0x412a66=(_0x30b77e[_0x284630(0x1f3,0x182,0x11e,0x174)]??[])[_0x284630(0x13e,_0x2d782d._0x239b1b,0x191,0x179)](_0x515e40=>{const _0x402e70={_0xc0724c:0x6d},_0x5702ca=createModelInfo(_0x515e40);_0x5702ca[_0x5ec37d(-_0x1bd300._0x2c30f1,0x81,0x54,-0x7f)]&&this[_0x239a1f(_0x1bd300._0x3578d2,0x457,_0x1bd300._0x35bcab,_0x1bd300._0x1cea93)]['set'](_0x5702ca['id'],_0x5702ca[_0x239a1f(0x2bd,_0x1bd300._0x3f9159,_0x1bd300._0x1c77e0,0x345)]);function _0x5ec37d(_0x2c1aeb,_0x20292b,_0x38e28b,_0x2e6575){return _0x284630(_0x38e28b- -0x255,_0x2c1aeb,_0x38e28b-0x110,_0x2e6575-0x1d8);}function _0x239a1f(_0x36379f,_0x55262a,_0x53bcc6,_0x5678c){return _0xd417a5(_0x36379f-0x1dc,_0x55262a-_0x402e70._0xc0724c,_0x53bcc6-0x227,_0x55262a);}return _0x5702ca;});return deduplicateModels(_0x412a66);}};function createHeaders(_0x2d302c){const _0x130a59={_0xcd7c0b:0x20a,_0x2961ec:0x1ec,_0x32a1ff:0x1a0,_0x1a4b84:0xdb},_0x1a31c5={_0x168538:0xe2,_0x21ed5d:0x454},_0x5b1f33=new Headers();function _0x286d1f(_0x504c6b,_0x3b13cf,_0x569690,_0x4e3e7f){return _0x2d9e9f(_0x504c6b-_0x1a31c5._0x168538,_0x504c6b,_0x4e3e7f- -_0x1a31c5._0x21ed5d,_0x4e3e7f-0x10f);}function _0x294899(_0x50dc2b,_0x24b6cc,_0x12e7f0,_0x2eb3fa){return _0x1818aa(_0x50dc2b-0xce,_0x2eb3fa,_0x12e7f0-0xa8,_0x24b6cc- -0x1f4);}for(const [_0x162605,_0x3bd598]of Object[_0x294899(-_0x130a59._0xcd7c0b,-_0x130a59._0x2961ec,-0x18a,-0x131)](_0x2d302c)){_0x5b1f33[_0x286d1f(-0x14b,-_0x130a59._0x32a1ff,-_0x130a59._0x1a4b84,-0x13a)](_0x162605,_0x3bd598);}return _0x5b1f33;}async function fetchRawResponse(_0x5779b3){const _0x1190f5={_0xa4f658:0x252,_0x121ab5:0x385,_0x30a5f5:0x3aa,_0x55f63f:0x321,_0x4f0a23:0x37f,_0x678395:0x379,_0x208f9c:0x37c,_0x2625f0:0x2a3,_0x23d7d7:0x292,_0x227e36:0x2f0,_0x27f55c:0x297,_0x1159d6:0x303,_0x39470a:0x1e8,_0xf3f0e7:0x29f,_0x2bb7ae:0x282},_0x35b3e7={_0x220140:0x1c1,_0x3ca06d:0x2c4},_0x5ed24a={_0x2bba4c:0x12e},_0x1520c2=_0x5779b3[_0x7ce4fa(_0x1190f5._0xa4f658,0x376,_0x1190f5._0x121ab5,0x339)]??globalThis[_0x7ce4fa(0x260,_0x1190f5._0x30a5f5,_0x1190f5._0x55f63f,0x339)];function _0x34a756(_0x84869e,_0x1b0128,_0x19f6db,_0xce3b8e){return _0x1818aa(_0x84869e-_0x5ed24a._0x2bba4c,_0x84869e,_0x19f6db-0xde,_0x1b0128-0x2b9);}function _0x7ce4fa(_0x1cfbf2,_0xd8fa2c,_0x371243,_0x427275){return _0x1818aa(_0x1cfbf2-_0x35b3e7._0x220140,_0x1cfbf2,_0x371243-0xb8,_0x427275-_0x35b3e7._0x3ca06d);}return _0x1520c2(_0x5779b3['url'],{'method':_0x7ce4fa(0x2da,_0x1190f5._0x4f0a23,_0x1190f5._0x678395,_0x1190f5._0x208f9c),'headers':createHeaders(_0x5779b3['headers']),'body':JSON[_0x7ce4fa(0x2f9,_0x1190f5._0x2625f0,0x345,_0x1190f5._0x23d7d7)](_0x5779b3[_0x7ce4fa(0x348,_0x1190f5._0x227e36,_0x1190f5._0x27f55c,_0x1190f5._0x1159d6)]),'signal':_0x5779b3[_0x34a756(_0x1190f5._0x39470a,_0x1190f5._0xf3f0e7,0x1c7,_0x1190f5._0x2bb7ae)]});}async function fetchJsonResponse(_0x2911f0){const _0x2f5313={_0x284f5c:0x462,_0x2f04df:0x102,_0x15f1dd:0x10c,_0x2d14dc:0x1d6,_0x134072:0x294,_0x509d55:0x451,_0x645325:0x55d,_0xe29e44:0x522,_0x1c9fb5:0x56f,_0x5bc30b:0x4a5,_0x556744:0x51e,_0x24185a:0x1a},_0x3cec21={_0x5804d1:0x146},_0x3b5b74={_0x30c0b8:0xdf};function _0x46a40e(_0xa85de4,_0xc813d7,_0x3b22b3,_0x4eb0d4){return _0x2d9e9f(_0xa85de4-_0x3b5b74._0x30c0b8,_0x4eb0d4,_0x3b22b3- -0x2d3,_0x4eb0d4-0xa7);}function _0x4661a1(_0x28b9ab,_0x5db89f,_0xf6d688,_0x2fd8c0){return _0x2d9e9f(_0x28b9ab-0x118,_0x28b9ab,_0xf6d688-0xf5,_0x2fd8c0-_0x3cec21._0x5804d1);}const _0x402f06=await fetchRawResponse(_0x2911f0);if(!_0x402f06['ok']){const _0x1052d1=await _0x402f06[_0x4661a1(0x59c,0x59b,0x4db,_0x2f5313._0x284f5c)](),_0x214834=_0x1052d1[_0x46a40e(0x172,0x149,0x185,_0x2f5313._0x2f04df)]()||_0x402f06[_0x46a40e(0x243,_0x2f5313._0x15f1dd,_0x2f5313._0x2d14dc,_0x2f5313._0x134072)]||_0x4661a1(0x440,0x49b,0x511,_0x2f5313._0x509d55);throw new Error(_0x4661a1(0x52d,_0x2f5313._0x645325,_0x2f5313._0xe29e44,_0x2f5313._0x1c9fb5)+_0x402f06[_0x4661a1(_0x2f5313._0x5bc30b,_0x2f5313._0x556744,0x53c,0x553)]+':\x20'+_0x214834);}return await _0x402f06[_0x46a40e(-_0x2f5313._0x24185a,0x15a,0x81,0x4e)]();}function findLastMessage(_0x1f5890,_0x3d44f7){const _0x53bea5={_0x5e5aab:0x299,_0xd2b4f5:0x344},_0x1aa887={_0x5122d2:0x2c8};function _0x3e386b(_0x3cc796,_0x22eefb,_0x71af41,_0x265d37){return _0x1818aa(_0x3cc796-0x1c9,_0x265d37,_0x71af41-0xc0,_0x3cc796-_0x1aa887._0x5122d2);}for(let _0x3d2204=_0x1f5890['length']-0x1;_0x3d2204>=0x0;_0x3d2204-=0x1){if(_0x1f5890[_0x3d2204][_0x3e386b(0x28f,0x28c,_0x53bea5._0x5e5aab,_0x53bea5._0xd2b4f5)]===_0x3d44f7)return _0x1f5890[_0x3d2204];}return void 0x0;}function hasTool(_0x44458f,_0x4114c0){const _0x2e4a4e={_0x2fdea1:0x282},_0x31c6a1={_0x372b55:0xad};function _0x1acd2d(_0x1c07f4,_0x547c9c,_0x116c40,_0x5bd482){return _0x1818aa(_0x1c07f4-_0x31c6a1._0x372b55,_0x1c07f4,_0x116c40-0x11c,_0x547c9c-0x362);}return _0x44458f[_0x1acd2d(0x28c,0x32f,_0x2e4a4e._0x2fdea1,0x2ad)]['some'](_0x4301dc=>_0x4301dc['name']===_0x4114c0);}function createMockResponse(_0x52dc49,_0x248812,_0x556bd7,_0x1d1d5b){return{'id':_0x52dc49,'content':_0x248812,'stopReason':_0x556bd7,'usage':_0x1d1d5b};}var MockModel=class{[_0x2d9e9f(0x35d,0x3eb,0x30f,0x371)];['maxTokens'];[_0x2d9e9f(0x3be,0x3b5,0x391,0x386)]=[];[_0x2d9e9f(0x346,0x33f,0x31b,0x3d9)];constructor(_0x33b324={}){const _0x29a483={_0x4b78bc:0x26f,_0x1b1d23:0x34f,_0x2ff999:0x1af,_0x2c1118:0x2b3,_0x36e0b4:0x1a0,_0x571c2f:0x1f2,_0x5c2e2e:0x285,_0x289b6e:0x336,_0x1cb8e4:0x347,_0x4c5ac0:0x350,_0x44c0f8:0x203},_0x49b47c={_0xf4d819:0x3eb};this[_0x320da3(-0x30b,-_0x29a483._0x4b78bc,-_0x29a483._0x1b1d23,-_0x29a483._0x2ff999)]=_0x33b324[_0x320da3(-0x34e,-0x26f,-_0x29a483._0x2c1118,-_0x29a483._0x36e0b4)]??'mock',this['maxTokens']=_0x33b324[_0x320da3(-_0x29a483._0x571c2f,-_0x29a483._0x5c2e2e,-0x1b4,-0x1ff)]??getDefaultMaxTokens();function _0x320da3(_0x3f0223,_0x554e0,_0x28c9dc,_0x53175e){return _0x1818aa(_0x3f0223-0x1ba,_0x53175e,_0x28c9dc-0xae,_0x554e0- -0x1ab);}function _0x5b57e6(_0x41fbdf,_0x6a3b04,_0x392568,_0x1a8950){return _0x1818aa(_0x41fbdf-0x87,_0x41fbdf,_0x392568-0x3f,_0x392568-_0x49b47c._0xf4d819);}this[_0x320da3(-0x304,-0x263,-0x2aa,-0x1cb)]=_0x33b324[_0x5b57e6(_0x29a483._0x289b6e,_0x29a483._0x1cb8e4,0x333,0x24f)]?structuredClone(_0x33b324[_0x320da3(-_0x29a483._0x4c5ac0,-0x263,-_0x29a483._0x44c0f8,-0x2b2)]):void 0x0;}async[_0x2d9e9f(0x48b,0x470,0x449,0x49b)](_0x9440cf,_0x501c1c){const _0xc6d636={_0x38c457:0x215,_0x1cadb2:0x252,_0x4d110d:0x2c8,_0x3522b4:0x2b0,_0x76353b:0x182,_0x5edfe4:0x1ca,_0x337a31:0x198,_0x3f2386:0x195,_0x433bad:0x154,_0x393fc7:0x98,_0x174f77:0x6e,_0x1db747:0x53,_0xd2b496:0x39e,_0x4370af:0x42d,_0x37ed15:0x150,_0x3e2081:0x161,_0x2400d0:0xae,_0x2fe214:0x5f,_0x3e154f:0x0,_0x597a38:0x138,_0x157d44:0x87,_0x5ce48d:0xe2,_0x9b5a7a:0x238,_0x2b8c28:0x2e0,_0x43efea:0x351,_0x57433d:0x30b,_0x3eeb65:0x30c,_0x28b010:0x28e,_0x40942d:0x3bc,_0x37f5db:0x350,_0x4dea19:0x3a7,_0x1d94a6:0x290,_0x516f6e:0x267,_0x64c077:0x2e5,_0x25e6de:0x2c1,_0x4ff612:0x200,_0x5ae064:0x3bf,_0xe975f4:0x23c,_0x5c49a7:0x153,_0x23cf5d:0x326,_0x2992aa:0x2e0,_0x4a1fe2:0x247,_0x965435:0x3cc,_0x4779fa:0x370,_0x5a9b08:0x284,_0x317330:0x376,_0x20fa21:0x35c},_0x58aacf={_0x1d7850:0xfa,_0xe4f861:0x112},_0x32ded3={_0x683c93:0x2cd},_0x3c373b={...structuredClone(_0x9440cf),..._0x9440cf[_0x5da5dc(_0xc6d636._0x38c457,0x268,_0xc6d636._0x1cadb2,0x2f1)]===void 0x0&&this[_0x5da5dc(_0xc6d636._0x38c457,0x2f2,0x210,_0xc6d636._0x4d110d)]!==void 0x0?{'reasoning':structuredClone(this[_0x4d37ab(-_0xc6d636._0x3522b4,-_0xc6d636._0x76353b,-_0xc6d636._0x5edfe4,-_0xc6d636._0x337a31)])}:{}};this[_0x4d37ab(-_0xc6d636._0x3f2386,-0x230,-_0xc6d636._0x433bad,-_0xc6d636._0x393fc7)][_0x4d37ab(-_0xc6d636._0x174f77,-0x95,-_0xc6d636._0x1db747,0x14)](_0x3c373b);const _0x342681=findLastMessage(_0x3c373b[_0x5da5dc(_0xc6d636._0xd2b496,_0xc6d636._0x4370af,0x3bb,0x34d)],_0x4d37ab(-0x207,-_0xc6d636._0x37ed15,-0x11c,-_0xc6d636._0x3e2081));function _0x5da5dc(_0x351846,_0x5b563f,_0xbd87a3,_0x5ba801){return _0x1818aa(_0x351846-0x12b,_0xbd87a3,_0xbd87a3-0xa,_0x351846-_0x32ded3._0x683c93);}const _0x16dd90=getToolResultBlocks(_0x342681),_0x48bbb5=_0x4d37ab(-_0xc6d636._0x2400d0,-_0xc6d636._0x2fe214,-0x85,_0xc6d636._0x3e154f)+this[_0x4d37ab(-_0xc6d636._0x597a38,-_0xc6d636._0x157d44,-0x154,-_0xc6d636._0x5ce48d)][_0x5da5dc(0x2f2,0x270,_0xc6d636._0x9b5a7a,0x351)];if(_0x16dd90['length']>0x0)return createMockResponse(_0x48bbb5,[{'type':_0x5da5dc(_0xc6d636._0x2b8c28,0x2e0,_0xc6d636._0x43efea,0x382),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x16dd90[0x0][_0x5da5dc(_0xc6d636._0x57433d,_0xc6d636._0x3eeb65,0x3ad,_0xc6d636._0x28b010)]}],_0x5da5dc(0x376,_0xc6d636._0x40942d,0x38a,_0xc6d636._0x37f5db),{'inputTokens':0x78,'outputTokens':0x28});const _0x36de6e=getTextFromMessage(_0x342681);function _0x4d37ab(_0x48ea45,_0xfe0350,_0x3ef6c2,_0x2776ce){return _0x1818aa(_0x48ea45-0xbc,_0x48ea45,_0x3ef6c2-_0x58aacf._0x1d7850,_0x3ef6c2- -_0x58aacf._0xe4f861);}if(/list .*files|workspace/i[_0x5da5dc(0x34d,_0xc6d636._0x4dea19,_0xc6d636._0x1d94a6,_0xc6d636._0x516f6e)](_0x36de6e)&&hasTool(_0x3c373b,_0x5da5dc(_0xc6d636._0x64c077,0x38e,0x314,0x39c)))return createMockResponse(_0x48bbb5,[{'type':_0x4d37ab(-0x10b,-0xcb,-0x1a3,-0x240),'id':'tool-call-'+this[_0x5da5dc(0x28b,_0xc6d636._0x25e6de,_0xc6d636._0x4ff612,0x298)]['length'],'name':_0x5da5dc(_0xc6d636._0x64c077,0x255,_0xc6d636._0x5ae064,0x240),'input':{'command':'ls\x20-la'}}],_0x5da5dc(_0xc6d636._0xe975f4,0x264,_0xc6d636._0x5c49a7,_0xc6d636._0x23cf5d),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x48bbb5,[{'type':_0x5da5dc(_0xc6d636._0x2992aa,_0xc6d636._0x4a1fe2,_0xc6d636._0x965435,_0xc6d636._0x4779fa),'text':_0x5da5dc(0x2ae,0x209,_0xc6d636._0x5a9b08,0x27a)+_0x36de6e}],_0x5da5dc(_0xc6d636._0x317330,0x3b6,_0xc6d636._0x20fa21,0x436),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x57f3ab,_0x3556fb){const _0x4bd974={_0x29e62c:0x22b,_0x5206e2:0x311,_0xe140f1:0x35d,_0x3ebdbc:0x39f,_0x3fe2ce:0x354},_0x462303={_0x1c2600:0xf4,_0x50a9f3:0x8},_0x60ac0d={_0x2255ed:0x12a},_0x22480e=getModelProfile(_0x57f3ab,_0x3556fb);if(!_0x22480e?.['contextWindow']&&!_0x22480e?.[_0x40ff58(_0x4bd974._0x29e62c,0x26f,0x299,_0x4bd974._0x5206e2)])return void 0x0;function _0x40ff58(_0x3c1462,_0x3d9e56,_0x1296f5,_0x108d7e){return _0x2d9e9f(_0x3c1462-0x12b,_0x108d7e,_0x3c1462- -_0x60ac0d._0x2255ed,_0x108d7e-0x17c);}function _0x22b1fc(_0x3d7789,_0x1902fb,_0x585def,_0x206af5){return _0x2d9e9f(_0x3d7789-_0x462303._0x1c2600,_0x3d7789,_0x585def-_0x462303._0x50a9f3,_0x206af5-0x28);}return{..._0x22480e[_0x22b1fc(0x46c,0x3c2,0x49d,0x4de)]?{'contextWindow':_0x22480e[_0x40ff58(0x36b,0x3cc,0x33c,0x441)]}:{},..._0x22480e[_0x22b1fc(0x3a4,0x3f0,_0x4bd974._0xe140f1,_0x4bd974._0x3ebdbc)]?{'maxOutput':_0x22480e[_0x22b1fc(_0x4bd974._0x3fe2ce,0x389,_0x4bd974._0xe140f1,0x3d7)]}:{}};}function normalizeModelInfo(_0x373cce,_0x4a3ce4){const _0x4af273={_0x2efd65:0x4d6,_0x687947:0x4d4,_0xfad0a8:0x469,_0x1827ad:0x3fc,_0x28d61b:0x535,_0x31d8ce:0x469,_0x40fdf3:0x42c,_0x162718:0x48a,_0x3e1400:0x63c,_0x3f54ee:0x5b6,_0x4ddd43:0x2f,_0x43cd7d:0xb2,_0x50f8a8:0x489,_0x3a1df0:0x530,_0x3beb75:0x652,_0x48fdcf:0x5ea,_0x1ffc38:0x19},_0x4a9bc2={_0x3ea1a7:0x1d},_0x48eb24={_0x2b7a3c:0x75},_0x17fbc7=typeof _0x4a3ce4['id']==='string'?_0x4a3ce4['id']:'',_0x240db0=typeof _0x4a3ce4[_0x5e5547(_0x4af273._0x2efd65,0x4e0,_0x4af273._0x687947,_0x4af273._0xfad0a8)]===_0x5e5547(0x614,0x616,0x516,0x5bf)?_0x4a3ce4[_0x5e5547(_0x4af273._0x1827ad,_0x4af273._0x28d61b,0x39e,_0x4af273._0x31d8ce)]:_0x17fbc7,_0x5a2db0=normalizeModelLimits(_0x373cce,_0x4a3ce4)??getFallbackModelLimits(_0x373cce,_0x17fbc7),_0x4f2d8b=Array[_0x5e5547(_0x4af273._0x40fdf3,0x453,_0x4af273._0x162718,0x42a)](_0x4a3ce4['supported_endpoints'])?_0x4a3ce4[_0x5e5547(0x62d,0x63d,_0x4af273._0x3e1400,_0x4af273._0x3f54ee)][_0x100bb8(-_0x4af273._0x4ddd43,-0x9c,-0x140,-_0x4af273._0x43cd7d)](_0x30b66c=>typeof _0x30b66c===_0x100bb8(-0x114,-0xb2,-0x85,-0x14c)):Array[_0x5e5547(0x499,0x393,_0x4af273._0x50f8a8,0x42a)](_0x4a3ce4[_0x5e5547(0x602,0x4da,_0x4af273._0x3a1df0,0x5c6)])?_0x4a3ce4[_0x5e5547(_0x4af273._0x3beb75,_0x4af273._0x48fdcf,0x656,0x5c6)][_0x100bb8(0x37,-0x9c,-0x12a,-_0x4af273._0x1ffc38)](_0x2a2e54=>typeof _0x2a2e54===_0x5e5547(0x54e,0x665,0x52b,0x5bf)):void 0x0;function _0x100bb8(_0x2235c6,_0x73afc7,_0x4c52ca,_0x6b6f9c){return _0x1818aa(_0x2235c6-_0x48eb24._0x2b7a3c,_0x4c52ca,_0x4c52ca-0x194,_0x73afc7- -0x16f);}function _0x5e5547(_0x43dab8,_0x596fb5,_0x769162,_0x3160f0){return _0x1818aa(_0x43dab8-0x5f,_0x43dab8,_0x769162-_0x4a9bc2._0x3ea1a7,_0x3160f0-0x502);}return{'id':_0x17fbc7,'name':_0x240db0,..._0x5a2db0?{'limits':_0x5a2db0}:{},..._0x4f2d8b?{'supportedEndpoints':_0x4f2d8b}:{}};}function normalizeModelLimits(_0x37df1c,_0x329255){const _0x48f4b9={_0x2561a9:0x57e,_0x3f7aba:0x633,_0x2dffd6:0x4c5,_0x383202:0x57e,_0x238d5c:0x5fc,_0x39f6f0:0x4fe,_0x31c368:0x5a9,_0x3db7dc:0x5dd,_0x212273:0x594,_0x6c027f:0x4c6,_0xb6300b:0x511,_0x390d19:0x4f4,_0x4964fa:0x59f,_0x1810ab:0x5e7,_0x3cf91d:0x17b,_0x31640a:0xab,_0x45e178:0x1b6,_0x5a870b:0x64,_0x186a48:0x11a,_0x4e8db3:0x3,_0x4f2c7d:0xd7,_0x3c52f7:0x1cc,_0x250a6c:0x642,_0x570b79:0x56,_0x55fc29:0x1bf,_0x3e7e9f:0x2a4,_0x4c0f30:0x8c,_0x2e8950:0x5f,_0x215d29:0x4df,_0x271570:0x576,_0x2d5c25:0x545,_0x3e9400:0x63b,_0x4f91f4:0x4c,_0x519692:0x2a,_0x12f6a4:0xb2,_0x8d582b:0x55e,_0x27b9e6:0x493,_0x1d0190:0x86,_0x3801f9:0xb,_0x302f5b:0xa9,_0x219284:0x4cd,_0x84e00e:0x66e,_0x516ee4:0x64,_0xb9593a:0x15,_0x488a26:0x5a8,_0x1b2362:0x536,_0x2bf630:0x655,_0x1eeddd:0x58d,_0xff57b8:0x59c,_0x3495a0:0xd,_0x434f58:0x1f0,_0x424755:0x1ba,_0x471bb7:0x1a8,_0x1d0744:0xf7,_0x2674a5:0x352},_0x585bc6={_0x126156:0x190,_0x4f88c0:0x1a6},_0x4508cc={_0x1cedac:0xac,_0x847bf7:0x4d0};if(_0x329255[_0x9cb74d(0x574,_0x48f4b9._0x2561a9,_0x48f4b9._0x3f7aba,0x51d)]&&typeof _0x329255[_0x9cb74d(_0x48f4b9._0x2dffd6,_0x48f4b9._0x383202,_0x48f4b9._0x238d5c,0x631)]===_0x9cb74d(_0x48f4b9._0x39f6f0,_0x48f4b9._0x31c368,0x50f,_0x48f4b9._0x3db7dc)){const _0x150079=_0x329255[_0x9cb74d(_0x48f4b9._0x212273,_0x48f4b9._0x2561a9,_0x48f4b9._0x6c027f,0x4a8)];if(typeof _0x150079[_0x9cb74d(_0x48f4b9._0xb6300b,0x59f,0x63e,0x527)]==='number')return{'contextWindow':_0x150079[_0x9cb74d(_0x48f4b9._0x390d19,_0x48f4b9._0x4964fa,0x5b5,_0x48f4b9._0x1810ab)],...typeof _0x150079[_0x572c77(-_0x48f4b9._0x3cf91d,-_0x48f4b9._0x31640a,-0xa4,-_0x48f4b9._0x45e178)]===_0x572c77(-_0x48f4b9._0x5a870b,-_0x48f4b9._0x186a48,_0x48f4b9._0x4e8db3,-_0x48f4b9._0x4f2c7d)?{'maxOutput':_0x150079['maxOutput']}:{}};}if(_0x37df1c[_0x9cb74d(0x535,0x584,0x55c,0x5df)]()===_0x572c77(-0x174,-0x183,-0xd7,-_0x48f4b9._0x3c52f7)){const _0x15f6e0=_0x329255[_0x9cb74d(0x67d,0x592,0x520,_0x48f4b9._0x250a6c)],_0x276714=_0x15f6e0?.[_0x572c77(-0x5c,-0xf8,0x37,_0x48f4b9._0x570b79)];if(typeof _0x276714?.[_0x572c77(-_0x48f4b9._0x55fc29,-0x21e,-0x17f,-_0x48f4b9._0x3e7e9f)]===_0x9cb74d(0x59b,0x576,0x57a,0x638))return{'contextWindow':_0x276714['max_context_window_tokens'],...typeof _0x276714[_0x572c77(-0x4c,-_0x48f4b9._0x4c0f30,0x17,-_0x48f4b9._0x2e8950)]===_0x9cb74d(_0x48f4b9._0x215d29,_0x48f4b9._0x271570,_0x48f4b9._0x2d5c25,_0x48f4b9._0x3e9400)?{'maxOutput':_0x276714[_0x572c77(-_0x48f4b9._0x4f91f4,_0x48f4b9._0x519692,-_0x48f4b9._0x12f6a4,0x5d)]}:{}};}const _0x5baabd=_0x329255[_0x9cb74d(0x5f9,0x518,0x4e5,0x5bb)];function _0x572c77(_0x2e5661,_0x3b728a,_0x3fc26e,_0x46ddf9){return _0x2d9e9f(_0x2e5661-_0x4508cc._0x1cedac,_0x3fc26e,_0x2e5661- -_0x4508cc._0x847bf7,_0x46ddf9-0x18f);}const _0x19ad58=_0x329255[_0x9cb74d(_0x48f4b9._0x8d582b,_0x48f4b9._0x27b9e6,0x53b,0x501)];function _0x9cb74d(_0x2a656b,_0x459121,_0x5e7f8a,_0x452b02){return _0x1818aa(_0x2a656b-_0x585bc6._0x126156,_0x452b02,_0x5e7f8a-_0x585bc6._0x4f88c0,_0x459121-0x4dd);}const _0x2bc27d=typeof _0x329255[_0x572c77(-0x4d,0x32,-_0x48f4b9._0x1d0190,-_0x48f4b9._0x3801f9)]===_0x572c77(-0x64,0x89,-_0x48f4b9._0x302f5b,-0x21)?_0x329255[_0x9cb74d(0x56c,0x58d,_0x48f4b9._0x219284,_0x48f4b9._0x84e00e)]:typeof _0x5baabd?.[_0x572c77(-0x4d,-0x4,-0x7b,0x33)]===_0x572c77(-_0x48f4b9._0x516ee4,-0xc2,-0x11a,-_0x48f4b9._0xb9593a)?_0x5baabd[_0x9cb74d(_0x48f4b9._0x488a26,0x58d,0x668,_0x48f4b9._0x1b2362)]:typeof _0x19ad58?.[_0x9cb74d(_0x48f4b9._0x2bf630,_0x48f4b9._0x1eeddd,_0x48f4b9._0xff57b8,0x58d)]===_0x572c77(-0x64,-_0x48f4b9._0x3495a0,-0xa5,_0x48f4b9._0x519692)?_0x19ad58['context_length']:void 0x0;if(_0x2bc27d===void 0x0)return void 0x0;return{'contextWindow':_0x2bc27d,...typeof _0x5baabd?.[_0x572c77(-0x169,-_0x48f4b9._0x434f58,-_0x48f4b9._0x424755,-0x15f)]===_0x572c77(-_0x48f4b9._0x516ee4,-0x17,-0xb8,-0xb)?{'maxOutput':_0x5baabd[_0x9cb74d(0x4af,0x471,0x46d,0x3b1)]}:typeof _0x19ad58?.[_0x572c77(-_0x48f4b9._0x471bb7,-0x1e5,-_0x48f4b9._0x1d0744,-0xc2)]==='number'?{'maxOutput':_0x19ad58[_0x9cb74d(0x503,0x432,0x3d8,_0x48f4b9._0x2674a5)]}:{}};}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,createChatRequestBody,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,getCliDefaultModel,getDefaultMaxTokens,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};