@nuvin/agent-core 0.1.0-rc.10 → 0.1.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-BLGBVFVX.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -0
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-UIXQPCSN.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YWQXXHHU.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/chat-model.d.ts +1 -0
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +2 -0
- package/dist/models/routed-model.d.ts +2 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/model-identity.d.ts +2 -0
- package/dist/shared/types.d.ts +2 -0
- package/dist/tools/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-LIJXXCAA.js +0 -1
package/dist/models/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1b09(_0xe52716,_0x1b7e95){_0xe52716=_0xe52716-0x158;const _0x4c99f8=_0x4c99();let _0x1b09c1=_0x4c99f8[_0xe52716];if(_0x1b09['KBPokb']===undefined){var _0x2ff6d3=function(_0xc2aae9){const _0xb33da5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x291fab='',_0x2bac81='';for(let _0x114584=0x0,_0x256afd,_0x16d21a,_0x220c1b=0x0;_0x16d21a=_0xc2aae9['charAt'](_0x220c1b++);~_0x16d21a&&(_0x256afd=_0x114584%0x4?_0x256afd*0x40+_0x16d21a:_0x16d21a,_0x114584++%0x4)?_0x291fab+=String['fromCharCode'](0xff&_0x256afd>>(-0x2*_0x114584&0x6)):0x0){_0x16d21a=_0xb33da5['indexOf'](_0x16d21a);}for(let _0x551ce9=0x0,_0x5e6729=_0x291fab['length'];_0x551ce9<_0x5e6729;_0x551ce9++){_0x2bac81+='%'+('00'+_0x291fab['charCodeAt'](_0x551ce9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2bac81);};_0x1b09['KDpNHb']=_0x2ff6d3,_0x1b09['KabJJI']={},_0x1b09['KBPokb']=!![];}const _0x3c602b=_0x4c99f8[0x0],_0x3fce2b=_0xe52716+_0x3c602b,_0x462c11=_0x1b09['KabJJI'][_0x3fce2b];return!_0x462c11?(_0x1b09c1=_0x1b09['KDpNHb'](_0x1b09c1),_0x1b09['KabJJI'][_0x3fce2b]=_0x1b09c1):_0x1b09c1=_0x462c11,_0x1b09c1;}(function(_0x2a3a2a,_0x71a8af){const _0x138ed7={_0x587c72:0x507,_0x264980:0x472,_0x13ac45:0x58,_0x529fb6:0x64,_0x3eadaf:0x5ce,_0x519e0b:0x4a1,_0x3cc3af:0x87,_0x14c4df:0xd2,_0x59d804:0x525,_0x5901e7:0x5dc,_0x4742c0:0x13d,_0x10b54b:0x18f,_0x87e836:0x105,_0x3a0bea:0x552,_0x125535:0x59e,_0x21e22b:0x465,_0x2738ef:0x18a,_0x13d02d:0x171,_0x395cc1:0x173,_0xce9484:0x503,_0x56e2e9:0x557,_0x492c88:0x559,_0x2322b5:0x91,_0x1ee497:0x93,_0x3620c1:0x3ab,_0x2efcaf:0x48d,_0x3dc4be:0x315,_0x1f8203:0x4d8,_0x42ed84:0x3f1},_0xe7e663={_0x3dae43:0x333},_0x574d60={_0x212921:0x247},_0x34965c=_0x2a3a2a();function _0x4fe047(_0x4257e2,_0xa4139f,_0x3da976,_0x4847db){return _0x1b09(_0xa4139f-_0x574d60._0x212921,_0x4847db);}function _0xe727ff(_0x14c565,_0x46a540,_0x45e128,_0x2c71e4){return _0x1b09(_0x46a540- -_0xe7e663._0x3dae43,_0x14c565);}while(!![]){try{const _0x1b504a=parseInt(_0x4fe047(_0x138ed7._0x587c72,_0x138ed7._0x264980,0x508,0x4d5))/0x1*(-parseInt(_0xe727ff(_0x138ed7._0x13ac45,-_0x138ed7._0x529fb6,-0x1b,0x5d))/0x2)+parseInt(_0x4fe047(_0x138ed7._0x3eadaf,0x55b,_0x138ed7._0x519e0b,0x631))/0x3*(-parseInt(_0xe727ff(-0xee,-0x128,-_0x138ed7._0x3cc3af,-_0x138ed7._0x14c4df))/0x4)+parseInt(_0x4fe047(0x610,0x529,_0x138ed7._0x59d804,_0x138ed7._0x5901e7))/0x5+-parseInt(_0xe727ff(-_0x138ed7._0x4742c0,-_0x138ed7._0x10b54b,-_0x138ed7._0x87e836,-0x170))/0x6+-parseInt(_0x4fe047(0x4d7,_0x138ed7._0x3a0bea,_0x138ed7._0x125535,_0x138ed7._0x21e22b))/0x7*(parseInt(_0xe727ff(-_0x138ed7._0x2738ef,-0xd1,-_0x138ed7._0x13d02d,-_0x138ed7._0x395cc1))/0x8)+-parseInt(_0x4fe047(_0x138ed7._0xce9484,0x4bb,_0x138ed7._0x56e2e9,_0x138ed7._0x492c88))/0x9*(parseInt(_0xe727ff(-0xa0,-_0x138ed7._0x2322b5,0x31,-_0x138ed7._0x1ee497))/0xa)+parseInt(_0x4fe047(0x31a,_0x138ed7._0x3620c1,_0x138ed7._0x2efcaf,_0x138ed7._0x3dc4be))/0xb*(parseInt(_0x4fe047(0x3f9,0x479,_0x138ed7._0x1f8203,_0x138ed7._0x42ed84))/0xc);if(_0x1b504a===_0x71a8af)break;else _0x34965c['push'](_0x34965c['shift']());}catch(_0x5ab843){_0x34965c['push'](_0x34965c['shift']());}}}(_0x4c99,0xdbc36));import{toOpenAiResponsesRequest}from'../chunk-BLGBVFVX.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-YWQXXHHU.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x291fab){const _0x13920b={_0x1945ad:0xc5};super(_0x291fab);function _0x5b8ce5(_0x2ef024,_0x208620,_0x5e5d1b,_0x46e965){return _0x1b09(_0x46e965- -0x2f9,_0x5e5d1b);}this[_0x5b8ce5(_0x13920b._0x1945ad,0xbc,-0x32,0x39)]='ProviderRequestConstructionError';}},ProviderStreamEventError=class extends Error{[_0x1c2b50(-0x135,-0x1f2,-0x165,-0xbc)];[_0x263708(0x1af,0x15e,0xf7,0xfe)];['status'];constructor(_0x2bac81,_0x114584={}){const _0x4c491a={_0x1755b5:0x4ec,_0x50bf88:0x157,_0x2bc423:0x170,_0x9aee32:0x373,_0x526004:0x4aa,_0x3919b1:0x414,_0x191098:0x4ff,_0x155fe5:0x3f5,_0x414852:0x328,_0x36ca76:0x3c2,_0x11c377:0x557,_0x3ea6fb:0x358,_0x19b546:0x326},_0x1d71c2={_0x17fed1:0x155,_0x345ffb:0x2d5},_0x53733c={_0x4f4930:0xdd,_0x5b91b8:0x8f};function _0x180957(_0xf8ca62,_0x367288,_0x269fb9,_0x297924){return _0x1c2b50(_0xf8ca62-_0x53733c._0x4f4930,_0x367288-_0x53733c._0x5b91b8,_0x269fb9-0x5ba,_0x297924);}function _0x4e88b7(_0x15902e,_0x105872,_0x17a0b8,_0x37477d){return _0x1c2b50(_0x15902e-0x88,_0x105872-_0x1d71c2._0x17fed1,_0x17a0b8-_0x1d71c2._0x345ffb,_0x105872);}super(_0x2bac81),this['name']=_0x180957(0x47d,0x487,0x4a3,_0x4c491a._0x1755b5),this['code']=_0x114584[_0x4e88b7(0x179,_0x4c491a._0x50bf88,_0x4c491a._0x2bc423,0x1ee)],this[_0x180957(_0x4c491a._0x9aee32,_0x4c491a._0x526004,_0x4c491a._0x3919b1,_0x4c491a._0x191098)]=_0x114584[_0x180957(_0x4c491a._0x155fe5,_0x4c491a._0x414852,_0x4c491a._0x3919b1,_0x4c491a._0x36ca76)]??!![],this[_0x180957(0x59f,_0x4c491a._0x11c377,0x57b,0x5c1)]=_0x114584[_0x4e88b7(_0x4c491a._0x3ea6fb,0x319,0x296,_0x4c491a._0x19b546)];}};function isRetryableProviderStreamEventError(_0x256afd){return _0x256afd instanceof ProviderStreamEventError&&_0x256afd['retryable'];}var ANTHROPIC_MESSAGES_SURFACE=_0x1c2b50(-0x202,-0x1b5,-0x182,-0x92),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x1c2b50(0x3a,0x55,-0x49,-0x44);function parseToolInput(_0x16d21a){const _0x105fad={_0x1822dd:0x3fb,_0xbc74c1:0x354,_0x481f39:0x3c2,_0x861957:0x3a1},_0x1c44e7={_0x257cd7:0x14a,_0x247a5a:0x3eb};function _0x4412a4(_0x4186ea,_0x483706,_0x13740e,_0x37725d){return _0x1c2b50(_0x4186ea-0x196,_0x483706-_0x1c44e7._0x257cd7,_0x483706-_0x1c44e7._0x247a5a,_0x4186ea);}try{return JSON[_0x4412a4(_0x105fad._0x1822dd,_0x105fad._0xbc74c1,_0x105fad._0x481f39,_0x105fad._0x861957)](_0x16d21a);}catch{return _0x16d21a;}}function resolveReasoningVisibility(_0x220c1b){const _0x4ade51={_0x1cfcb5:0x4c8,_0x48f473:0x3f6,_0x12349e:0x392,_0x3371f4:0x4d5,_0x37f7f3:0x4b0,_0xcf1a55:0x54a,_0xac572b:0x5e6},_0x5c6c85={_0x5c7510:0x224};function _0x58f1d0(_0x53ffae,_0x4950b4,_0x57caa3,_0x463541){return _0x1c2b50(_0x53ffae-0x127,_0x4950b4-0x12f,_0x57caa3-0x56b,_0x463541);}function _0x5b26d4(_0x364517,_0x130e37,_0x3b23e5,_0x594f28){return _0x263708(_0x130e37-_0x5c6c85._0x5c7510,_0x364517,_0x3b23e5-0x91,_0x594f28-0x31);}return _0x220c1b[_0x58f1d0(0x3b7,_0x4ade51._0x1cfcb5,_0x4ade51._0x48f473,_0x4ade51._0x12349e)]?.[_0x5b26d4(_0x4ade51._0x3371f4,_0x4ade51._0x37f7f3,0x55e,0x44a)]??_0x5b26d4(0x635,_0x4ade51._0xcf1a55,_0x4ade51._0xac572b,0x5ac);}function isUserVisibleThinking(_0x551ce9){const _0x1eb160={_0x5c780a:0x291,_0x1f0a57:0x2c7,_0x2792c2:0x44b,_0x1521d8:0x49e},_0x5d5932={_0x40a616:0x25e,_0x164c8c:0xa7},_0x5e6729=resolveAnthropicThinkingConfig(_0x551ce9['reasoning']);function _0x3445db(_0xdf58af,_0x59ce34,_0x1e8b12,_0x4659be){return _0x263708(_0x59ce34-_0x5d5932._0x40a616,_0x1e8b12,_0x1e8b12-0x157,_0x4659be-_0x5d5932._0x164c8c);}function _0x2d7998(_0x4c82fe,_0x38f510,_0x3c8ade,_0x17ade8){return _0x263708(_0x17ade8-0xf7,_0x4c82fe,_0x3c8ade-0xe2,_0x17ade8-0x3a);}return _0x5e6729!==void 0x0&&_0x5e6729[_0x2d7998(_0x1eb160._0x5c780a,0x2f0,0x3b7,_0x1eb160._0x1f0a57)]!==_0x3445db(_0x1eb160._0x2792c2,_0x1eb160._0x1521d8,0x47b,0x4db)&&resolveReasoningVisibility(_0x551ce9)==='user-visible';}function createAnthropicThinkingBody(_0x1779af){const _0x1cfd2b={_0x109c76:0x9a,_0x4bbc94:0xe1,_0x405f73:0xc0,_0x5681a1:0x93,_0x56d154:0x81,_0x579e02:0x7a,_0x48e694:0x3d9,_0x176cc4:0x30d,_0x671c3d:0xcc,_0x966f69:0xd,_0x4d68b0:0x54,_0x1d53a8:0x62,_0x29b857:0x8f,_0xe9116b:0x3a1,_0x1c1d73:0x3ef,_0x5f11e8:0x3bd,_0x1f67f7:0x11,_0x1fddd6:0x73,_0x49685a:0xd9,_0x372f0a:0x46},_0x57cb72={_0x3428e0:0x130,_0x3b81ba:0xdb},_0x4e861b={_0x54b9bf:0x17b,_0x19e62c:0x159},_0x3f3e66=resolveAnthropicThinkingConfig(_0x1779af[_0x319345(-_0x1cfd2b._0x109c76,-0x46,-_0x1cfd2b._0x4bbc94,-0xbc)]);function _0x1efabf(_0x289950,_0x30d143,_0x5bc8f1,_0x1c95f3){return _0x1c2b50(_0x289950-_0x4e861b._0x54b9bf,_0x30d143-_0x4e861b._0x19e62c,_0x1c95f3-0x436,_0x289950);}if(!_0x3f3e66||_0x3f3e66[_0x319345(-0xaa,-0x10d,-0x43,-0xaf)]==='disabled')return{};function _0x319345(_0x204d1d,_0x11d03e,_0x8980cb,_0x17232a){return _0x1c2b50(_0x204d1d-0x0,_0x11d03e-_0x57cb72._0x3428e0,_0x204d1d-_0x57cb72._0x3b81ba,_0x17232a);}const _0x2de660=_0x3f3e66['display']??(isUserVisibleThinking(_0x1779af)?_0x319345(-_0x1cfd2b._0x405f73,-_0x1cfd2b._0x5681a1,-_0x1cfd2b._0x56d154,-_0x1cfd2b._0x579e02):_0x1efabf(0x35d,_0x1cfd2b._0x48e694,0x241,_0x1cfd2b._0x176cc4)),_0x4ebf06=_0x3f3e66[_0x319345(0x98,-0x51,_0x1cfd2b._0x671c3d,_0x1cfd2b._0x966f69)]?{'anthropic-beta':_0x319345(-0xd2,-0x129,-_0x1cfd2b._0x4d68b0,-0x49)}:void 0x0;if(_0x3f3e66['type']===_0x319345(-0x3f,_0x1cfd2b._0x1d53a8,0x2b,_0x1cfd2b._0x29b857))return{..._0x4ebf06?{'headers':_0x4ebf06}:{},'thinking':{'type':_0x1efabf(_0x1cfd2b._0xe9116b,_0x1cfd2b._0x1c1d73,_0x1cfd2b._0x5f11e8,0x31c),'budget_tokens':_0x3f3e66[_0x319345(0x22,-_0x1cfd2b._0x1f67f7,-0x9a,-_0x1cfd2b._0x1fddd6)],'display':_0x2de660}};return{..._0x4ebf06?{'headers':_0x4ebf06}:{},'thinking':{'type':'adaptive',..._0x3f3e66['effort']?{'effort':_0x3f3e66[_0x319345(0xde,_0x1cfd2b._0x49685a,0xea,_0x1cfd2b._0x372f0a)]}:{},'display':_0x2de660}};}function toAnthropicRequestContent(_0x3e0594){const _0x4692c8={_0x474384:0x52,_0x10eb39:0x95,_0x270673:0x2d4,_0xead661:0x31e,_0x5af9a5:0x3df,_0x5293a2:0xff,_0x5afc47:0x120,_0x18ebbe:0x13f,_0x558ba5:0x7b,_0x2e4ffd:0xac,_0x3a79cc:0xc6,_0x4b7e7b:0x55,_0x45cd5b:0x1a3,_0x47e55e:0x278,_0x4eb3e2:0x21b,_0x5902eb:0x163,_0x41acfc:0x147,_0x5d831d:0x114,_0x326332:0x2b3,_0x31b0a9:0x2e6,_0x218821:0x22e,_0x3aa1b9:0xae,_0x4fc844:0x24,_0x544967:0x26,_0x6f6e0d:0x3a,_0x5321eb:0x308,_0x40c14a:0x26d,_0x22ae64:0x291,_0x5df495:0x8c,_0x3ec034:0x9f,_0x394ebd:0x385,_0x215807:0x353,_0x2f11b4:0x36b,_0x5a33db:0x2b6,_0x48912c:0x26d,_0x1a3277:0x267},_0x4651f7={_0x398a58:0x20a,_0x39a5d9:0x197,_0xc21bed:0x73},_0x31710d={_0x192609:0x1cc};function _0x24ce8c(_0x2dc813,_0x2c0077,_0x51a958,_0x160099){return _0x263708(_0x2c0077-0x81,_0x2dc813,_0x51a958-0x10d,_0x160099-_0x31710d._0x192609);}if(_0x3e0594[_0x5c67bd(0x54,-_0x4692c8._0x474384,-_0x4692c8._0x10eb39,-0x17)]==='assistant'&&_0x3e0594[_0x24ce8c(_0x4692c8._0x270673,0x351,_0x4692c8._0xead661,_0x4692c8._0x5af9a5)]?.[_0x5c67bd(_0x4692c8._0x5293a2,0x18b,_0x4692c8._0x5afc47,_0x4692c8._0x18ebbe)])return structuredClone(_0x3e0594[_0x5c67bd(_0x4692c8._0x558ba5,_0x4692c8._0x2e4ffd,0x95,_0x4692c8._0x3a79cc)][_0x5c67bd(0x207,_0x4692c8._0x4b7e7b,_0x4692c8._0x45cd5b,0x13f)]);function _0x5c67bd(_0x31a8bf,_0x1136c9,_0x9f7cad,_0x29ccd5){return _0x263708(_0x29ccd5- -_0x4651f7._0x398a58,_0x31a8bf,_0x9f7cad-_0x4651f7._0x39a5d9,_0x29ccd5-_0x4651f7._0xc21bed);}const _0x574003=[];for(const _0x4c5a2c of normalizeContent(_0x3e0594['content'])){if(_0x4c5a2c[_0x24ce8c(0x334,0x251,_0x4692c8._0x47e55e,0x2da)]===_0x5c67bd(0x1f9,_0x4692c8._0x4eb3e2,_0x4692c8._0x5902eb,_0x4692c8._0x41acfc))continue;if(_0x4c5a2c[_0x5c67bd(-0x65,-_0x4692c8._0x5d831d,0xa5,-0x3a)]==='anthropic_thinking'){_0x574003[_0x24ce8c(0x33c,0x26d,_0x4692c8._0x326332,0x342)]({'type':'thinking','thinking':_0x4c5a2c['thinking'],'signature':_0x4c5a2c[_0x24ce8c(_0x4692c8._0x31b0a9,0x25d,_0x4692c8._0x218821,0x178)]});continue;}if(_0x4c5a2c[_0x5c67bd(-_0x4692c8._0x3aa1b9,_0x4692c8._0x4fc844,-_0x4692c8._0x544967,-_0x4692c8._0x6f6e0d)]==='anthropic_redacted_thinking'){_0x574003[_0x24ce8c(_0x4692c8._0x5321eb,_0x4692c8._0x40c14a,_0x4692c8._0x22ae64,0x184)]({'type':_0x5c67bd(_0x4692c8._0x5df495,-0x7,_0x4692c8._0x3ec034,0xdd),'data':_0x4c5a2c[_0x24ce8c(_0x4692c8._0x394ebd,0x3d0,_0x4692c8._0x215807,_0x4692c8._0x2f11b4)]});continue;}_0x574003[_0x24ce8c(_0x4692c8._0x5a33db,_0x4692c8._0x48912c,0x19e,_0x4692c8._0x1a3277)](structuredClone(_0x4c5a2c));}return _0x574003;}function createAnthropicRequest(_0x8afa1d,_0x241f0c){const _0x4d0491={_0x8c1945:0x76,_0x3cb6dd:0x528,_0x47cde1:0x498,_0x11e5ce:0x444,_0x318ba5:0x10e,_0x3a5b0a:0x12f,_0x5b8efa:0xd2,_0x4d960b:0x61,_0x4c8231:0xf1,_0x1c5a22:0xc7,_0x2ac323:0xe8,_0x1dc5e1:0x3,_0x177b41:0x5ec,_0x2b83ff:0x71,_0x2eab13:0x698,_0x38dcb1:0x594,_0xa0b2b4:0x5b6,_0x2266cd:0x14c},_0x1b2e50={_0x1f3aca:0x118,_0x352589:0x623},_0x2f1a19={_0x56106b:0x31,_0x9114f:0x186},_0x22656f=toProviderModelRequest(_0x8afa1d);function _0x4e2fbc(_0x5488d9,_0x4a0664,_0x263543,_0x311e5f){return _0x263708(_0x4a0664- -0x325,_0x311e5f,_0x263543-_0x2f1a19._0x56106b,_0x311e5f-_0x2f1a19._0x9114f);}function _0x32aa05(_0x1934b7,_0x142742,_0x1be6db,_0x364a79){return _0x1c2b50(_0x1934b7-_0x1b2e50._0x1f3aca,_0x142742-0x65,_0x364a79-_0x1b2e50._0x352589,_0x1934b7);}const _0x408247=createAnthropicThinkingBody(_0x8afa1d);return{'accept':_0x241f0c?'text/event-stream':_0x4e2fbc(-_0x4d0491._0x8c1945,-0xe2,-0x156,-0xb0),'body':{..._0x22656f,'messages':_0x8afa1d[_0x32aa05(0x5ab,0x46a,0x4d3,_0x4d0491._0x3cb6dd)][_0x32aa05(_0x4d0491._0x47cde1,_0x4d0491._0x11e5ce,0x5fc,0x514)](_0x292a57=>{return{'role':_0x292a57['role'],'content':toAnthropicRequestContent(_0x292a57)};}),..._0x408247[_0x4e2fbc(-0x3f,-0xd2,-0x1a2,-_0x4d0491._0x318ba5)]?{'thinking':_0x408247[_0x4e2fbc(-_0x4d0491._0x3a5b0a,-_0x4d0491._0x5b8efa,-0x5a,-0x16b)]}:{},..._0x241f0c?{'stream':!![]}:{},..._0x8afa1d[_0x4e2fbc(0x43,-0x90,-_0x4d0491._0x4d960b,-_0x4d0491._0x4c8231)]?{'output_config':{'format':{'type':_0x4e2fbc(-0x171,-_0x4d0491._0x1c5a22,-_0x4d0491._0x2ac323,_0x4d0491._0x1dc5e1),'schema':_0x8afa1d[_0x32aa05(0x5eb,_0x4d0491._0x177b41,0x595,0x563)][_0x4e2fbc(-_0x4d0491._0x2b83ff,-0xc,0x1d,0x28)]}}}:{}},..._0x408247[_0x32aa05(0x675,0x613,_0x4d0491._0x2eab13,0x5b6)]?{'headers':_0x408247[_0x32aa05(_0x4d0491._0x38dcb1,0x50a,0x4f5,_0x4d0491._0xa0b2b4)]}:{},'path':_0x4e2fbc(-0xf,-0x82,-0x55,-_0x4d0491._0x2266cd)};}function parseAnthropicResponse(_0x3764b4,_0x44d551){const _0x45cd98={_0x3a8046:0xf0,_0x22db9a:0x145,_0x5294a5:0x28b,_0x3fc06b:0x143,_0x3146c2:0x185,_0x1be6eb:0x22b,_0x3e5bc0:0x1cc,_0xfdf525:0x1f9,_0x191f22:0x15b,_0x28e913:0x138,_0x3a711f:0x1af,_0x15d307:0x57,_0x331d0c:0x60,_0x4664af:0x15b,_0x52a09c:0x1c6,_0x50c779:0x22c,_0x5cf0f3:0x177,_0x173495:0x1d2,_0x49bfd7:0x36,_0x333351:0xc5,_0x26e0bf:0x6,_0x199940:0x268,_0x166dd2:0xb8,_0x15b047:0x15c,_0x205364:0x115,_0x16b7b7:0x1ef,_0x4c2772:0x15c,_0x480972:0x6a,_0xe62a74:0x71,_0x1c1bb1:0x113,_0x3dc211:0x13f,_0x91b1cc:0xf5,_0x50b12e:0x21a,_0x58ca87:0x239,_0x20299a:0x275,_0x4542cf:0x1e,_0x4ee731:0x8a,_0x239274:0x4c,_0x363ad7:0x199,_0x1e6a73:0x102,_0x38d355:0x15a,_0x492881:0x155,_0x4501f4:0x4a,_0x2b61a7:0x117,_0x460a54:0x23d,_0xd52dd4:0x14b,_0x5032b8:0x25c,_0x16eeb5:0xb5,_0x52e024:0x10b,_0x4cf32a:0x11f,_0x55b64b:0xe1,_0x1c1139:0xc0,_0x1104cc:0x1e7,_0x5ed4b2:0x7c,_0x5e70ed:0x7b,_0x5286f4:0x13e},_0x29c469={_0x3120df:0x38b,_0x23c712:0x5a,_0x5e4ace:0x9a},_0x42593d=[],_0x3f79a7=_0x3764b4[_0x43170b(-0x15a,-_0x45cd98._0x3a8046,-_0x45cd98._0x22db9a,-0x1a8)]??[];let _0x2fe24e=![];function _0xeb558b(_0x4bcf11,_0x183edc,_0xdefe3d,_0x467344){return _0x263708(_0xdefe3d- -_0x29c469._0x3120df,_0x4bcf11,_0xdefe3d-_0x29c469._0x23c712,_0x467344-_0x29c469._0x5e4ace);}function _0x43170b(_0x31cc7e,_0x3a579,_0xeabf01,_0x3de87d){return _0x263708(_0x3de87d- -0x347,_0x3a579,_0xeabf01-0x10,_0x3de87d-0x124);}for(const _0x203944 of _0x3f79a7){if(_0x203944[_0xeb558b(-0x23c,-_0x45cd98._0x5294a5,-0x1bb,-0x1b5)]===_0xeb558b(-0x105,-0x65,-0x138,-0x215)){_0x2fe24e=!![];isUserVisibleThinking(_0x44d551)&&_0x42593d[_0x43170b(-_0x45cd98._0x3fc06b,-0x18c,-_0x45cd98._0x3146c2,-0x15b)]({'type':_0xeb558b(-_0x45cd98._0x1be6eb,-0x169,-_0x45cd98._0x3e5bc0,-_0x45cd98._0xfdf525),'thinking':_0x203944[_0xeb558b(-0x1f7,-_0x45cd98._0x191f22,-_0x45cd98._0x28e913,-0x13e)],'signature':_0x203944[_0xeb558b(-0xe8,-0x232,-_0x45cd98._0x3a711f,-0x29c)]});continue;}if(_0x203944['type']===_0x43170b(-0xd9,-0x9e,-_0x45cd98._0x15d307,-_0x45cd98._0x331d0c)){_0x2fe24e=!![];isUserVisibleThinking(_0x44d551)&&_0x42593d[_0x43170b(-0x20b,-0xc0,-0x130,-_0x45cd98._0x4664af)]({'type':'anthropic_redacted_thinking','data':_0x203944[_0xeb558b(0xa4,-0x4,-0x3c,-0x3c)]});continue;}if(_0x203944[_0x43170b(-_0x45cd98._0x52a09c,-_0x45cd98._0x50c779,-0x225,-_0x45cd98._0x5cf0f3)]===_0xeb558b(-0x9a,-_0x45cd98._0x173495,-0x146,-0x96)){_0x203944['text'][_0x43170b(_0x45cd98._0x49bfd7,-_0x45cd98._0x333351,-_0x45cd98._0x26e0bf,-0x5e)]>0x0&&_0x42593d[_0xeb558b(-_0x45cd98._0x199940,-_0x45cd98._0x166dd2,-0x19f,-0xea)](structuredClone(_0x203944));continue;}_0x42593d['push'](structuredClone(_0x203944));}return{'id':_0x3764b4['id']??'msg-'+Date[_0xeb558b(-_0x45cd98._0x15b047,-_0x45cd98._0x22db9a,-_0x45cd98._0x205364,-_0x45cd98._0x16b7b7)](),'content':_0x42593d,'stopReason':_0x42593d[_0xeb558b(-_0x45cd98._0x4c2772,-_0x45cd98._0x480972,-_0x45cd98._0xe62a74,0x51)](_0x4b7246=>_0x4b7246['type']===_0x43170b(-0x125,-0x165,-0x18c,-0xcb))?_0x43170b(-_0x45cd98._0x1c1bb1,-0xec,-0x1b1,-0xcb):_0x3764b4[_0x43170b(-0x130,-_0x45cd98._0x3dc211,-0x20f,-0x13d)]===_0xeb558b(-0x1aa,-0x10f,-0x10f,-0xca)?_0xeb558b(-0x1e4,-0x135,-0x10f,-_0x45cd98._0x91b1cc):_0x43170b(-0x218,-_0x45cd98._0x50b12e,-0x282,-0x1c6),'usage':{'inputTokens':(_0x3764b4[_0xeb558b(-_0x45cd98._0x58ca87,-0x101,-0x199,-_0x45cd98._0x20299a)]?.[_0xeb558b(-0x84,-_0x45cd98._0x4542cf,-_0x45cd98._0x4ee731,-_0x45cd98._0x239274)]??0x0)+(_0x3764b4[_0xeb558b(-0x216,-0x180,-_0x45cd98._0x363ad7,-_0x45cd98._0x1e6a73)]?.['cache_read_input_tokens']??0x0)+(_0x3764b4[_0x43170b(-_0x45cd98._0x38d355,-0x9b,-0x78,-_0x45cd98._0x492881)]?.[_0xeb558b(-0x26,-_0x45cd98._0x4501f4,-0xbf,-0xca)]??0x0),'outputTokens':_0x3764b4[_0x43170b(-0x102,-_0x45cd98._0x2b61a7,-_0x45cd98._0x460a54,-_0x45cd98._0x492881)]?.[_0xeb558b(-_0x45cd98._0xd52dd4,-_0x45cd98._0x5032b8,-0x202,-0x265)]??0x0,..._0x3764b4[_0x43170b(-0x1c2,-0x145,-_0x45cd98._0x16eeb5,-0x155)]?.[_0xeb558b(-0x114,-0x145,-0xed,-_0x45cd98._0x52e024)]?{'cacheReadInputTokens':_0x3764b4[_0x43170b(-_0x45cd98._0x4cf32a,-_0x45cd98._0x55b64b,-0x20c,-_0x45cd98._0x492881)][_0xeb558b(-0x28,-_0x45cd98._0x1c1139,-0xed,-0x18e)]}:{},..._0x3764b4[_0xeb558b(-_0x45cd98._0x1104cc,-0x11d,-_0x45cd98._0x363ad7,-0xa9)]?.[_0x43170b(-0x156,-_0x45cd98._0x5ed4b2,-0x82,-_0x45cd98._0x5e70ed)]?{'cacheCreationInputTokens':_0x3764b4['usage'][_0x43170b(-_0x45cd98._0x5286f4,-0x116,-0xf9,-0x7b)]}:{}},..._0x2fe24e?{'providerState':{'anthropicAssistantContent':structuredClone(_0x3f79a7)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x1c2b50(0x87,-0x89,-0x61,-0xf7)]=new Map();[_0x1c2b50(0x54,0x2f,-0x44,-0xf9)]=0x0;[_0x1c2b50(-0x158,-0x19a,-0x14a,-0x220)]=0x0;[_0x1c2b50(0x19,0x61,-0x66,-0xd5)]=0x0;[_0x263708(0x221,0x2d5,0x154,0x1e6)]='msg-'+Date[_0x263708(0x276,0x277,0x19c,0x29b)]();['outputTokens']=0x0;['request'];['stopReason']=_0x263708(0x181,0x264,0x252,0x1ca);constructor(_0x301ca3){this['request']=_0x301ca3;}[_0x1c2b50(0x3b,-0x23,-0x95,0x27)](_0x37fb6b){const _0x55de5f={_0x42c097:0x545,_0x1490aa:0x4e6,_0x5da2f9:0x279,_0x298841:0x2f8,_0x2f536f:0x337,_0x1a3a28:0x2a9,_0xda0a71:0x351,_0x35a51f:0x412,_0x5c00d5:0x4d2,_0x397086:0x475,_0x2e6793:0x37d,_0x35a1eb:0x434,_0x322fe4:0x402,_0xd30f21:0x27e,_0x11f56e:0x265,_0xabe4a:0x475,_0x105164:0x35e,_0x5f33da:0x361,_0x55d316:0x1fb,_0x3749a1:0x1f1,_0x33b394:0x4a0,_0x2359bd:0x30f,_0x1396ab:0x2ca,_0x2abe94:0x152,_0x2137ad:0x502,_0x32bd44:0x2dd,_0x233d16:0x31c,_0x2242ed:0x3cd,_0x390003:0x3b7,_0xc1353a:0x2dc,_0x52c6b4:0x3ef,_0x8af876:0x4e0,_0x366901:0x182,_0x4c2a7c:0x314,_0x144d34:0x3d9,_0x4c1884:0x4f1,_0x527fc6:0x4ca,_0x4f610d:0x296,_0x52cd7d:0x2d8,_0x3b0a59:0x30c,_0x1f6c59:0x2f2,_0x5b8b66:0x34a,_0x588d9d:0x4cc,_0x365318:0x45c,_0x24d6cf:0x3f6,_0x20c295:0x41c,_0x5d59a1:0x466,_0x5495aa:0x2b4,_0x47efde:0x38b,_0x170884:0x229,_0x416781:0x1ed,_0x58107a:0x2f6,_0x126ffe:0x31d,_0x1b2189:0x409,_0x3cde6b:0x323,_0x5ae3a2:0x465,_0x57ae05:0x32c,_0x978b44:0x2d6,_0x55a302:0x3ad,_0x154870:0x423,_0x43665e:0x245,_0x5146e3:0x4ce,_0x1acb32:0x290,_0x32ad70:0x2ef,_0x1548e4:0x3ad,_0x7d78ca:0x401,_0x44b3c9:0x26e,_0x5c2809:0x4eb,_0x311871:0x569,_0x1b4773:0x484,_0xe3accb:0x3b7,_0x56f8ee:0x378,_0x2f55d1:0x341,_0x158139:0x2e1,_0x427601:0x33f,_0x274333:0x263,_0x21d231:0x27c,_0x4e1005:0x375,_0x433a5b:0x40b,_0x26151b:0x31c,_0x35ea8d:0x207,_0x3d1955:0x31e,_0xa9bc8:0x21d,_0x4e4c1e:0x41f,_0x3f3df5:0x297,_0x18dd51:0x43f,_0x3dbbcd:0x386,_0x193122:0x4db,_0x417bd7:0x555,_0xb603ad:0x3bd,_0xb17b8b:0x4c9,_0x59ab4d:0x51e,_0x18cb68:0x14f,_0x20f987:0x1ed,_0x50e1a0:0x1fd,_0x4d4b2e:0x2d0,_0x5675ac:0x10f,_0x3364a9:0x12e,_0x5128cd:0x3bb,_0x7f8048:0x28d,_0x13215c:0x3d5,_0x912206:0x371,_0x46d20f:0x3fa,_0x22e80d:0x4a5,_0x5ce7de:0x3ce,_0x1b944b:0x43b,_0x5e1dcc:0x50f,_0x33a494:0x37a,_0x1c85c5:0x2cc,_0x82beb9:0x2d9,_0x308cca:0x16a,_0x3093e2:0x1a1,_0x294fac:0x324,_0x433ad0:0x298,_0x4d5d47:0x44a,_0xec9ab4:0x27c,_0x454d21:0x3da,_0x1eace2:0x262,_0x2952d9:0x424,_0x3d38a5:0x420,_0x3773fc:0x475,_0x1b82c0:0x36b,_0x7b826e:0x36f,_0x2fce2b:0x3f1,_0x239b1c:0x478,_0x15c13a:0x18a,_0x10eb3a:0x1c1,_0x2bbbc2:0x1fe,_0x40e3b7:0x1d8,_0xf3774a:0x53f,_0x2147f5:0x403,_0x461ffe:0x2f4,_0x2838f5:0x28c,_0x4fa10c:0x351,_0x2de1f5:0x3d1,_0x4cccd2:0x2bf,_0x1c520b:0x31b,_0x187ac8:0x2ad,_0x44d26c:0x29e,_0x51a4fc:0x3e0,_0x404060:0x25a,_0xdb341c:0x2dc,_0x449e51:0x30a,_0x12b3a:0x3e2,_0x195612:0x389,_0x2316a8:0x2c0,_0x4212fe:0x3d2,_0x25fb65:0x454,_0xef9f21:0x2dc,_0x450021:0x2cf,_0x38eb80:0x285,_0x35967f:0x542,_0x276295:0x411,_0x5f2894:0x463,_0x60cd26:0x3a0,_0x38a2e8:0x299,_0x148fff:0x2b2,_0x4550fc:0x253,_0x1dc6a4:0x1e7,_0x2d9b23:0x212,_0x2cbe52:0x2b0,_0x50fa6e:0x344,_0x11cb15:0x269,_0x6bace8:0x3c2,_0x58878d:0x435,_0x4cfa1a:0x3dc,_0x1b56f7:0x2ff,_0x3b4c71:0x21c,_0x1fd527:0x213,_0x760f12:0x3f5,_0x247147:0x262,_0x506ac1:0x2f3,_0x4ff85e:0x56a,_0x4e38e9:0x556,_0x4dc687:0x529,_0x332a81:0x470,_0x4a3d4d:0x381,_0x439a55:0x469,_0x228c22:0x385,_0xfcd6ea:0x3a6,_0xc5c1ca:0x366,_0x17680e:0x38f,_0x92f01d:0x1a5,_0x475848:0x348,_0x2c3ac7:0x3b0,_0x24f683:0x446,_0x47b78f:0x413,_0x5bd474:0x348,_0x3ae620:0x334,_0x1312b6:0x282,_0x2f83d4:0x22d,_0xa788cb:0x27f,_0x4d17d9:0x2b3,_0x12f557:0x24c,_0x37b771:0x2fb,_0x4484a2:0x205,_0x4aa318:0x31d,_0x2e577c:0x335,_0x42daf5:0x37e,_0x2d4799:0x34a},_0x3f2b03={_0x45ee3c:0x4c,_0x3aab5b:0x38c},_0x387bc3={_0x45b7c0:0x131,_0x20d58a:0x124};function _0x3a9a13(_0x719d24,_0x3f5944,_0x5c88e8,_0x262056){return _0x263708(_0x5c88e8-0x17a,_0x3f5944,_0x5c88e8-_0x387bc3._0x45b7c0,_0x262056-_0x387bc3._0x20d58a);}const _0x3a6364=_0x37fb6b[_0x3a9a13(0x40b,_0x55de5f._0x42c097,0x466,0x504)]('\x0a'),_0x3f0010=_0x3a6364[_0x3a9a13(0x3f8,0x265,0x32c,0x410)](_0x402531=>_0x402531['startsWith'](_0x54a371(0x24f,0x326,0x1ab,0x265)))?.[_0x3a9a13(0x3ce,0x4dc,0x428,_0x55de5f._0x1490aa)](0x6)['trim']();function _0x54a371(_0x3010cb,_0x38066f,_0x1f4768,_0x59022a){return _0x1c2b50(_0x3010cb-_0x3f2b03._0x45ee3c,_0x38066f-0x17a,_0x59022a-_0x3f2b03._0x3aab5b,_0x38066f);}const _0x330f30=_0x3a6364[_0x3a9a13(_0x55de5f._0x5da2f9,0x3aa,_0x55de5f._0x298841,0x245)](_0x2f8927=>_0x2f8927[_0x54a371(0x259,0x3b8,0x242,0x2d9)](_0x3a9a13(0x35d,0x38b,0x3eb,0x373)))['map'](_0x2436d3=>_0x2436d3[_0x54a371(0x322,0x211,0x337,0x2e5)](0x5)['trimStart']())[_0x3a9a13(0x380,0x411,_0x55de5f._0x2f536f,0x268)]('\x0a')[_0x3a9a13(0x3fa,_0x55de5f._0x1a3a28,0x317,_0x55de5f._0xda0a71)]();if(_0x330f30['length']===0x0||_0x330f30===_0x3a9a13(_0x55de5f._0x35a51f,_0x55de5f._0x5c00d5,_0x55de5f._0x397086,0x509))return[];const _0x2cb2da=JSON['parse'](_0x330f30);switch(_0x3f0010){case _0x3a9a13(_0x55de5f._0x2e6793,0x45a,0x43d,_0x55de5f._0x35a1eb):{const _0x115403=_0x2cb2da[_0x3a9a13(_0x55de5f._0x322fe4,_0x55de5f._0xd30f21,0x335,_0x55de5f._0x11f56e)];this['messageId']=_0x115403?.['id']??this[_0x3a9a13(0x2e0,_0x55de5f._0xabe4a,0x39b,0x446)],this[_0x54a371(_0x55de5f._0x105164,0x280,_0x55de5f._0x5f33da,0x326)]=_0x115403?.[_0x54a371(_0x55de5f._0x55d316,0x24c,_0x55de5f._0x3749a1,0x229)]?.[_0x3a9a13(0x4d8,0x392,0x47b,_0x55de5f._0x33b394)]??this['inputTokens'],this[_0x3a9a13(_0x55de5f._0x2359bd,_0x55de5f._0x1396ab,0x385,0x34a)]=_0x115403?.['usage']?.['cache_read_input_tokens']??this[_0x54a371(0x1c0,_0x55de5f._0x2abe94,0x23e,0x242)],this[_0x3a9a13(_0x55de5f._0x2137ad,0x4fa,0x48b,0x4b2)]=_0x115403?.[_0x54a371(0x1f7,_0x55de5f._0x32bd44,0x299,0x229)]?.[_0x54a371(0x2d0,_0x55de5f._0x233d16,_0x55de5f._0x2242ed,0x303)]??this[_0x54a371(_0x55de5f._0x390003,_0x55de5f._0xc1353a,0x291,0x348)];break;}case'content_block_start':{const _0x4fea41=typeof _0x2cb2da[_0x3a9a13(0x3f6,_0x55de5f._0x52c6b4,0x4a5,_0x55de5f._0x8af876)]===_0x54a371(_0x55de5f._0x366901,0x151,_0x55de5f._0x4c2a7c,0x22e)?_0x2cb2da[_0x3a9a13(_0x55de5f._0x144d34,_0x55de5f._0x4c1884,0x4a5,_0x55de5f._0x527fc6)]:0x0,_0xcc1120=_0x2cb2da[_0x54a371(_0x55de5f._0x4f610d,0x2b8,_0x55de5f._0x52cd7d,0x21b)];if(_0xcc1120?.[_0x3a9a13(_0x55de5f._0x3b0a59,_0x55de5f._0x1f6c59,_0x55de5f._0x5b8b66,0x3ab)]===_0x3a9a13(_0x55de5f._0x588d9d,_0x55de5f._0x365318,_0x55de5f._0x24d6cf,_0x55de5f._0x20c295)&&_0xcc1120['id']&&_0xcc1120[_0x54a371(0x2a4,_0x55de5f._0x5d59a1,_0x55de5f._0x5495aa,_0x55de5f._0x47efde)])return this['blocks'][_0x54a371(0x106,0x19b,_0x55de5f._0x170884,_0x55de5f._0x416781)](_0x4fea41,{'id':_0xcc1120['id'],'index':_0x4fea41,'inputJson':JSON[_0x54a371(_0x55de5f._0x58107a,_0x55de5f._0x126ffe,_0x55de5f._0x1b2189,0x37c)](_0xcc1120[_0x54a371(0x3ce,0x3a0,_0x55de5f._0x3cde6b,0x368)]??{}),'kind':_0x3a9a13(0x3c2,_0x55de5f._0x5ae3a2,_0x55de5f._0x24d6cf,_0x55de5f._0x57ae05),'name':_0xcc1120[_0x54a371(_0x55de5f._0x978b44,_0x55de5f._0x55a302,_0x55de5f._0x154870,_0x55de5f._0x47efde)]}),[{'type':_0x54a371(0x2a9,0x28b,_0x55de5f._0x43665e,0x29e),'id':_0xcc1120['id'],'index':_0x4fea41,'name':_0xcc1120[_0x3a9a13(0x431,_0x55de5f._0x24d6cf,_0x55de5f._0x5146e3,0x3e4)]}];if(_0xcc1120?.[_0x54a371(_0x55de5f._0x1acb32,_0x55de5f._0x32ad70,0x189,0x207)]===_0x3a9a13(_0x55de5f._0x1548e4,0x44e,0x3cd,_0x55de5f._0x7d78ca)){this['blocks']['set'](_0x4fea41,{'index':_0x4fea41,'kind':'thinking','signature':typeof _0xcc1120[_0x54a371(0x1be,0x2ad,_0x55de5f._0x44b3c9,0x213)]===_0x3a9a13(_0x55de5f._0x5c2809,_0x55de5f._0x311871,_0x55de5f._0x1b4773,0x40f)?_0xcc1120['signature']:'','thinking':typeof _0xcc1120['text']===_0x54a371(0x320,_0x55de5f._0xe3accb,_0x55de5f._0x56f8ee,_0x55de5f._0x2f55d1)?_0xcc1120[_0x54a371(_0x55de5f._0x158139,_0x55de5f._0x427601,_0x55de5f._0x274333,_0x55de5f._0x21d231)]:typeof _0xcc1120[_0x54a371(0x280,_0x55de5f._0x4e1005,0x32b,0x28a)]===_0x3a9a13(0x397,0x4a3,0x484,0x47c)?String(_0xcc1120[_0x3a9a13(0x3c9,_0x55de5f._0x433a5b,0x3cd,_0x55de5f._0x26151b)]):''});break;}if(_0xcc1120?.[_0x54a371(0x14c,0x1ec,0x2bf,_0x55de5f._0x35ea8d)]===_0x54a371(0x3c4,0x38d,0x3bb,_0x55de5f._0x3d1955)){this['blocks'][_0x54a371(0x19f,0x127,_0x55de5f._0xa9bc8,0x1ed)](_0x4fea41,{'index':_0x4fea41,'kind':_0x3a9a13(0x4e1,0x383,0x461,_0x55de5f._0x4e4c1e),'data':typeof _0xcc1120[_0x54a371(0x358,_0x55de5f._0x3f3df5,_0x55de5f._0x18dd51,_0x55de5f._0x3dbbcd)]===_0x3a9a13(_0x55de5f._0x193122,_0x55de5f._0x417bd7,_0x55de5f._0x1b4773,_0x55de5f._0xb603ad)?String(_0xcc1120[_0x3a9a13(0x3ef,0x561,_0x55de5f._0xb17b8b,_0x55de5f._0x59ab4d)]):''});break;}this['blocks'][_0x54a371(0x14f,_0x55de5f._0x18cb68,0x167,_0x55de5f._0x20f987)](_0x4fea41,{'index':_0x4fea41,'kind':_0x54a371(0x314,0x2c2,0x2fc,_0x55de5f._0x21d231),'text':_0xcc1120?.[_0x54a371(0x261,_0x55de5f._0x50e1a0,_0x55de5f._0x4d4b2e,_0x55de5f._0x21d231)]??''});break;}case _0x54a371(_0x55de5f._0x5675ac,_0x55de5f._0x3364a9,0x1a6,0x1d9):{const _0x42f84c=typeof _0x2cb2da[_0x54a371(0x3fa,_0x55de5f._0x5128cd,_0x55de5f._0x7f8048,0x362)]===_0x3a9a13(_0x55de5f._0x13215c,0x3d4,_0x55de5f._0x912206,0x3bf)?_0x2cb2da[_0x3a9a13(_0x55de5f._0x46d20f,0x4e1,_0x55de5f._0x22e80d,_0x55de5f._0x5ce7de)]:0x0,_0x43f279=this[_0x3a9a13(_0x55de5f._0x1b944b,0x417,0x46e,_0x55de5f._0x5e1dcc)]['get'](_0x42f84c),_0x3c0688=_0x2cb2da[_0x54a371(_0x55de5f._0x33a494,_0x55de5f._0x1c85c5,0x2b0,_0x55de5f._0x2f536f)];if(!_0x43f279||!_0x3c0688?.[_0x54a371(_0x55de5f._0x82beb9,_0x55de5f._0x308cca,_0x55de5f._0x3093e2,0x207)])break;if(_0x3c0688[_0x3a9a13(_0x55de5f._0x294fac,0x39e,0x34a,_0x55de5f._0x433ad0)]==='text_delta'&&_0x43f279[_0x54a371(0x326,_0x55de5f._0x4d5d47,0x290,0x36f)]===_0x3a9a13(0x366,0x3c7,0x3bf,0x3d3)&&typeof _0x3c0688[_0x54a371(0x34a,0x285,0x1dc,_0x55de5f._0xec9ab4)]===_0x54a371(0x2f6,0x356,_0x55de5f._0x454d21,_0x55de5f._0x2f55d1))return _0x43f279['text']+=_0x3c0688['text'],[{'type':_0x54a371(0x13e,0x227,_0x55de5f._0x1eace2,0x201),'index':_0x42f84c,'text':_0x3c0688[_0x3a9a13(0x497,0x411,0x3bf,0x45e)]}];if(_0x3c0688['type']===_0x3a9a13(_0x55de5f._0x2952d9,0x37c,_0x55de5f._0x3d38a5,_0x55de5f._0x3773fc)&&_0x43f279[_0x54a371(_0x55de5f._0x1b82c0,0x35f,0x447,_0x55de5f._0x7b826e)]===_0x3a9a13(_0x55de5f._0x2fce2b,0x362,0x3f6,_0x55de5f._0x239b1c)&&typeof _0x3c0688[_0x54a371(_0x55de5f._0x15c13a,_0x55de5f._0x10eb3a,_0x55de5f._0x2bbbc2,_0x55de5f._0x40e3b7)]===_0x3a9a13(0x39c,_0x55de5f._0xf3774a,_0x55de5f._0x1b4773,0x54a))return _0x43f279['inputJson']==='{}'&&(_0x43f279[_0x3a9a13(_0x55de5f._0x2147f5,_0x55de5f._0x461ffe,_0x55de5f._0xda0a71,0x264)]=''),_0x43f279[_0x3a9a13(0x27d,_0x55de5f._0x2838f5,_0x55de5f._0x4fa10c,_0x55de5f._0x2de1f5)]+=_0x3c0688[_0x3a9a13(_0x55de5f._0x4cccd2,_0x55de5f._0x21d231,_0x55de5f._0x1c520b,0x288)],[{'type':_0x54a371(0x33a,_0x55de5f._0x187ac8,0x377,_0x55de5f._0x44d26c),'id':_0x43f279['id'],'index':_0x42f84c,'inputDelta':_0x3c0688[_0x3a9a13(0x3da,_0x55de5f._0x51a4fc,0x31b,0x2ed)]}];if(_0x3c0688[_0x3a9a13(_0x55de5f._0x404060,_0x55de5f._0xdb341c,0x34a,_0x55de5f._0x449e51)]===_0x54a371(_0x55de5f._0x12b3a,_0x55de5f._0x195612,_0x55de5f._0x2316a8,0x35e)&&_0x43f279[_0x54a371(0x3cd,_0x55de5f._0x4212fe,_0x55de5f._0x25fb65,0x36f)]===_0x54a371(_0x55de5f._0xef9f21,_0x55de5f._0x450021,0x22d,0x28a)){const _0x10b3a1=typeof _0x3c0688['thinking']===_0x54a371(0x3d8,_0x55de5f._0x38eb80,0x297,0x341)?String(_0x3c0688[_0x3a9a13(0x3d6,0x381,_0x55de5f._0x2242ed,_0x55de5f._0x195612)]):'';if(_0x10b3a1[_0x3a9a13(_0x55de5f._0x35967f,_0x55de5f._0x276295,_0x55de5f._0x5f2894,0x50b)]>0x0){_0x43f279['thinking']+=_0x10b3a1;if(isUserVisibleThinking(this[_0x54a371(0x2e0,_0x55de5f._0x60cd26,_0x55de5f._0x38a2e8,_0x55de5f._0x148fff)]))return[{'type':_0x54a371(_0x55de5f._0x4550fc,0x16d,_0x55de5f._0x18cb68,_0x55de5f._0x1dc6a4),'index':_0x42f84c,'thinking':_0x10b3a1}];}}if(_0x3c0688[_0x54a371(_0x55de5f._0x2d9b23,0x130,_0x55de5f._0x2cbe52,_0x55de5f._0x35ea8d)]===_0x3a9a13(0x3c3,_0x55de5f._0x50fa6e,0x350,_0x55de5f._0x11cb15)&&_0x43f279[_0x54a371(0x3bc,_0x55de5f._0x6bace8,0x29b,_0x55de5f._0x7b826e)]==='thinking'){const _0x45f6a7=typeof _0x3c0688['signature']===_0x3a9a13(_0x55de5f._0x58878d,0x4f2,0x484,_0x55de5f._0x4cfa1a)?String(_0x3c0688['signature']):'';if(_0x45f6a7[_0x54a371(0x2c6,0x40d,_0x55de5f._0x1b82c0,0x320)]>0x0){_0x43f279[_0x54a371(0x2e1,_0x55de5f._0x1b56f7,_0x55de5f._0x3b4c71,_0x55de5f._0x1fd527)]=_0x45f6a7;if(isUserVisibleThinking(this[_0x3a9a13(0x3df,0x478,_0x55de5f._0x760f12,0x4b9)]))return[{'type':_0x54a371(_0x55de5f._0x247147,0x2ef,0x3dd,_0x55de5f._0x506ac1),'index':_0x42f84c,'signature':_0x45f6a7}];}}break;}case _0x3a9a13(0x415,_0x55de5f._0x4ff85e,0x48d,_0x55de5f._0x4e38e9):{const _0x31c779=_0x2cb2da[_0x3a9a13(_0x55de5f._0x4dc687,_0x55de5f._0x332a81,0x47a,0x4f1)],_0x3422db=_0x2cb2da[_0x3a9a13(0x2c4,_0x55de5f._0x4a3d4d,0x36c,0x449)];this[_0x3a9a13(0x414,0x439,_0x55de5f._0x439a55,0x447)]=_0x3422db?.['input_tokens']??this[_0x54a371(0x28d,0x30d,0x32a,0x326)],this[_0x3a9a13(0x2d8,0x395,_0x55de5f._0x228c22,_0x55de5f._0xfcd6ea)]=_0x3422db?.[_0x3a9a13(_0x55de5f._0xc5c1ca,_0x55de5f._0x17680e,0x418,0x411)]??this[_0x54a371(0x1d5,_0x55de5f._0x92f01d,0x222,0x242)],this[_0x54a371(0x26b,0x344,0x428,_0x55de5f._0x475848)]=_0x3422db?.[_0x3a9a13(0x532,_0x55de5f._0x2c3ac7,_0x55de5f._0x24f683,0x401)]??this[_0x54a371(0x2bf,0x3ef,_0x55de5f._0x47b78f,_0x55de5f._0x5bd474)],this[_0x3a9a13(0x2fd,0x410,0x3c5,0x3e0)]=_0x3422db?.['output_tokens']??this[_0x54a371(0x1a4,0x21c,_0x55de5f._0x3ae620,_0x55de5f._0x1312b6)],this[_0x54a371(_0x55de5f._0x2f83d4,0x358,0x277,0x302)]=_0x31c779?.['stop_reason']===_0x54a371(_0x55de5f._0x2f83d4,_0x55de5f._0x2316a8,_0x55de5f._0xa788cb,_0x55de5f._0x4d17d9)?'tool_use':_0x3a9a13(_0x55de5f._0x12f557,0x346,_0x55de5f._0x37b771,0x3e1);break;}case _0x3a9a13(_0x55de5f._0x4484a2,_0x55de5f._0x4d17d9,0x2f4,0x29c):{const _0x4da6be=_0x2cb2da['error'];throw new ProviderStreamEventError(_0x4da6be?.[_0x3a9a13(_0x55de5f._0x4aa318,0x2d1,_0x55de5f._0x2e577c,0x32d)]??'Anthropic\x20stream\x20failed',{'code':_0x4da6be?.[_0x3a9a13(0x364,_0x55de5f._0x42daf5,_0x55de5f._0x2d4799,0x363)],'retryable':!![]});}}return[];}[_0x263708(0x215,0x247,0x2d4,0x1b9)](){const _0x2b7649={_0x396882:0x4dc,_0x49e8f7:0x592,_0x3ed6f9:0x4f7,_0x2f2252:0x1fa,_0x5afe95:0x165,_0xa35199:0xde,_0x42e6e5:0x198,_0x77477b:0x224,_0x1e4ee8:0x168,_0x540533:0x1dc,_0x4f6ab8:0x1b9,_0x2bbd9b:0x4d1,_0x5ebbdd:0x53f,_0x5e124f:0x555,_0x42eec8:0x457,_0x57a448:0x1fa,_0x339fef:0xaa,_0xab0d9c:0x46d,_0x2c624d:0x48c,_0x548717:0x3d4,_0x14663c:0x430,_0x5634ec:0x4cd,_0x2abf5c:0x100,_0x37ab21:0x3c4,_0x426e3d:0x4e1,_0x39c78b:0x59d,_0x31ca3b:0x223,_0x3b7bed:0x1c1,_0x1777ed:0x134,_0x10e121:0x4cf,_0x5302f7:0x530,_0xff5ff5:0x42d,_0x7841e5:0x22,_0x418564:0x1d2,_0x4f591e:0xe8,_0x35bb1e:0x92,_0x2dc6cd:0x53c,_0x4ba932:0x535,_0x48431d:0x4cb,_0x2860ac:0x3bf,_0x16b65a:0x356,_0x57813f:0x30f,_0x185980:0xc4,_0x2f5e2e:0x11,_0x2b5381:0x1d6,_0x1fc058:0x1a0,_0x51efd2:0x319,_0x1247d3:0x1b2,_0x5e0b7a:0x278,_0x204638:0x1f2,_0x359f94:0x494,_0x3b314c:0x4b8,_0x470e34:0xaf,_0xe0ff82:0x50f,_0x49cf6a:0x23e,_0x211b48:0x1a2,_0x4a5081:0x4f9,_0x2bf4aa:0x1a1,_0x3715b8:0x132,_0x4d83dd:0x14c},_0x30bd6f={_0x3dc4a3:0x28,_0x1fc11f:0x9d},_0x1f5358={_0x42f7c1:0x1e8,_0x5d8a77:0x3e},_0x4a2990=Array['from'](this[_0x188fb7(_0x2b7649._0x396882,0x477,0x49f,_0x2b7649._0x49e8f7)][_0x188fb7(0x514,_0x2b7649._0x3ed6f9,0x562,0x554)]())[_0x6137a2(-0x76,-_0x2b7649._0x2f2252,-_0x2b7649._0x5afe95,-0x152)]((_0x2540bc,_0x9e8ae1)=>_0x2540bc[_0x6137a2(-0xf7,-0x9c,-0x82,0x5b)]-_0x9e8ae1[_0x6137a2(-0xa3,0xe,-0x82,-0xfc)]);function _0x188fb7(_0x42aad9,_0x332c68,_0x5241cf,_0x4a8c8d){return _0x263708(_0x42aad9-_0x1f5358._0x42f7c1,_0x4a8c8d,_0x5241cf-_0x1f5358._0x5d8a77,_0x4a8c8d-0xdf);}function _0x6137a2(_0x329ed5,_0x593380,_0xed5b4,_0x4d711c){return _0x1c2b50(_0x329ed5-_0x30bd6f._0x3dc4a3,_0x593380-_0x30bd6f._0x1fc11f,_0xed5b4- -0x58,_0x4d711c);}const _0x12118d=[];for(const _0x5e3dd1 of _0x4a2990){if(_0x5e3dd1[_0x6137a2(-_0x2b7649._0xa35199,0x6a,-0x75,-0xb2)]===_0x6137a2(-_0x2b7649._0x42e6e5,-_0x2b7649._0x77477b,-_0x2b7649._0x1e4ee8,-_0x2b7649._0x540533)){_0x5e3dd1[_0x6137a2(-0xf6,-0x1bc,-0x168,-_0x2b7649._0x4f6ab8)][_0x188fb7(_0x2b7649._0x2bbd9b,_0x2b7649._0x5ebbdd,0x41d,_0x2b7649._0x5e124f)]>0x0&&_0x12118d[_0x188fb7(0x3d4,0x4a3,_0x2b7649._0x42eec8,0x485)]({'type':_0x6137a2(-0xf1,-_0x2b7649._0x57a448,-_0x2b7649._0x1e4ee8,-_0x2b7649._0x339fef),'text':_0x5e3dd1['text']});continue;}if(_0x5e3dd1['kind']===_0x188fb7(0x43b,0x350,_0x2b7649._0xab0d9c,_0x2b7649._0x2c624d)){_0x12118d[_0x188fb7(_0x2b7649._0x548717,0x353,_0x2b7649._0x14663c,0x481)]({'type':_0x188fb7(0x43b,0x413,_0x2b7649._0x5634ec,0x430),'thinking':_0x5e3dd1[_0x6137a2(-0x1e0,-_0x2b7649._0x2abf5c,-0x15a,-0x1d4)],'signature':_0x5e3dd1[_0x188fb7(_0x2b7649._0x37ab21,0x419,0x49c,0x427)]});continue;}if(_0x5e3dd1[_0x188fb7(0x520,_0x2b7649._0x426e3d,0x4f2,_0x2b7649._0x39c78b)]==='redacted_thinking'){_0x12118d[_0x6137a2(-_0x2b7649._0x31ca3b,-0x20e,-_0x2b7649._0x3b7bed,-_0x2b7649._0x1777ed)]({'type':_0x188fb7(_0x2b7649._0x10e121,_0x2b7649._0x5302f7,0x49b,_0x2b7649._0xff5ff5),'data':_0x5e3dd1[_0x6137a2(0x19,_0x2b7649._0x7841e5,-0x5e,-0x77)]});continue;}_0x12118d[_0x6137a2(-_0x2b7649._0x418564,-0x1fc,-_0x2b7649._0x3b7bed,-_0x2b7649._0x4f591e)]({'type':_0x6137a2(-0xf4,-_0x2b7649._0x35bb1e,-0x131,-0xec),'id':_0x5e3dd1['id'],'name':_0x5e3dd1[_0x188fb7(_0x2b7649._0x2dc6cd,0x570,_0x2b7649._0x4ba932,_0x2b7649._0x48431d)],'input':parseToolInput(_0x5e3dd1[_0x188fb7(_0x2b7649._0x2860ac,_0x2b7649._0x16b65a,_0x2b7649._0x57813f,0x31b)][_0x6137a2(-0x197,-0x1b1,-_0x2b7649._0x185980,_0x2b7649._0x2f5e2e)]>0x0?_0x5e3dd1[_0x6137a2(-0x104,-0x185,-_0x2b7649._0x2b5381,-_0x2b7649._0x1fc058)]:'{}')});}return parseAnthropicResponse({'id':this[_0x188fb7(0x409,0x4a9,_0x2b7649._0x51efd2,0x3a8)],'type':_0x6137a2(-_0x2b7649._0x1247d3,-_0x2b7649._0x5e0b7a,-_0x2b7649._0x204638,-0x166),'role':_0x188fb7(_0x2b7649._0x359f94,0x4df,0x51b,0x582),'content':_0x12118d,'stop_reason':this[_0x188fb7(0x4b3,_0x2b7649._0x3b314c,0x3eb,0x48b)],'stop_sequence':null,'usage':{'input_tokens':this[_0x6137a2(-0xe2,-_0x2b7649._0x470e34,-0xbe,0x20)],'output_tokens':this[_0x188fb7(0x433,_0x2b7649._0xe0ff82,0x376,0x459)],'cache_read_input_tokens':this[_0x6137a2(-0x1e5,-_0x2b7649._0x49cf6a,-_0x2b7649._0x211b48,-0x11c)],'cache_creation_input_tokens':this[_0x188fb7(_0x2b7649._0x4a5081,0x56f,0x5e0,0x43a)]}},this[_0x6137a2(-0x156,-_0x2b7649._0x2bf4aa,-_0x2b7649._0x3715b8,-_0x2b7649._0x4d83dd)]);}};function createAnthropicSurfaces(){const _0x13b11a={_0x55bf30:0x6ee,_0x49eb0b:0x61e,_0x50dbe9:0x5eb,_0x353f3c:0x52d,_0x182bd6:0x516},_0x48dc33={_0x54d449:0x651},_0x16e79f={_0x54ba8c:0x12b};function _0x45f819(_0x51d17e,_0x5d9c7f,_0x589104,_0x3653c4){return _0x263708(_0x3653c4- -0x3e3,_0x51d17e,_0x589104-_0x16e79f._0x54ba8c,_0x3653c4-0x1a2);}function _0x3cb408(_0x4a1ffc,_0x5607ac,_0xadd519,_0x227612){return _0x1c2b50(_0x4a1ffc-0x61,_0x5607ac-0xc2,_0x5607ac-_0x48dc33._0x54d449,_0x227612);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3cb408(_0x13b11a._0x55bf30,_0x13b11a._0x49eb0b,_0x13b11a._0x50dbe9,_0x13b11a._0x353f3c),'createRequest'(_0x2da8d9){return createAnthropicRequest(_0x2da8d9,![]);},'parseResponse'(_0x3e06a6,_0x5e2c99){return parseAnthropicResponse(_0x3e06a6,_0x5e2c99);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x3cb408(0x536,_0x13b11a._0x182bd6,0x442,0x5a7),'createRequest'(_0xe78736){return createAnthropicRequest(_0xe78736,!![]);},'createStreamParser'(_0x375d2c){return new AnthropicMessagesStreamParser(_0x375d2c);}}];}var StaticModelSurfaceRouter=class{[_0x263708(0x26f,0x358,0x1d9,0x1b3)];[_0x263708(0x1f8,0x13f,0x28f,0x214)];constructor(_0xc33a71){const _0x15ad7d={_0x50f45f:0xea,_0x4f2acf:0x11b,_0x3bd2f1:0x1e0,_0xa81fa1:0xf4,_0xc69466:0x62},_0x4b73de={_0x4cc47e:0x165},_0x107f86={_0x36f1a1:0x185};function _0x42bf9f(_0x21fc40,_0x4cff12,_0xb14899,_0x5e4934){return _0x263708(_0xb14899- -_0x107f86._0x36f1a1,_0x21fc40,_0xb14899-0x7e,_0x5e4934-0xf5);}this[_0x42bf9f(0x1d,0x197,_0x15ad7d._0x50f45f,_0x15ad7d._0x4f2acf)]=_0xc33a71['complete'];function _0x561588(_0x1fc9b8,_0x909f7c,_0xeb84f1,_0x1b3bd0){return _0x1c2b50(_0x1fc9b8-0x18,_0x909f7c-_0x4b73de._0x4cc47e,_0x909f7c-0x593,_0xeb84f1);}this['streamSurface']=_0xc33a71[_0x42bf9f(_0x15ad7d._0x3bd2f1,0x1a2,_0x15ad7d._0xa81fa1,_0x15ad7d._0xc69466)];}[_0x263708(0x219,0x207,0x1b4,0x1d7)](_0xe90984,_0x3e6632){const _0x513fe2={_0x35c5e4:0x15b,_0x5043ea:0x100,_0x42e8a2:0x1a9,_0x2ea57b:0xeb,_0x148ae6:0xf6},_0x23de08={_0x29e261:0xc1};function _0x1ad95c(_0x277be7,_0x214bf3,_0x1ff6c9,_0x2bda0d){return _0x263708(_0x1ff6c9- -0x179,_0x277be7,_0x1ff6c9-_0x23de08._0x29e261,_0x2bda0d-0x49);}function _0x5a2598(_0x4ae689,_0x3a9bc0,_0x313af7,_0x315ad2){return _0x1c2b50(_0x4ae689-0x1ac,_0x3a9bc0-0x10a,_0x313af7-0x2f2,_0x3a9bc0);}return _0x3e6632['mode']===_0x1ad95c(_0x513fe2._0x35c5e4,0x5d,_0x513fe2._0x5043ea,_0x513fe2._0x42e8a2)?this['streamSurface']:this[_0x1ad95c(0x92,_0x513fe2._0x2ea57b,_0x513fe2._0x148ae6,0x13d)];}};function trimTrailingSlashes(_0x211872){return _0x211872['replace'](/\/+$/,'');}function resolveApiCredential(_0xa4e75a,_0x149fd1){const _0x1adb25={_0x4d1680:0x37a,_0xeb4381:0x3ae,_0x1dbec2:0x640,_0x32af25:0x5da,_0x273441:0x35f,_0x190bd7:0x3d0},_0x3854dc={_0x422d3a:0x81},_0x15aa06={_0x166a86:0x3e3};function _0x119695(_0x5ecb34,_0x5983de,_0x3487c1,_0x20524b){return _0x1c2b50(_0x5ecb34-0x46,_0x5983de-0x8b,_0x20524b-_0x15aa06._0x166a86,_0x5983de);}if(_0x149fd1?.[_0x119695(0x35f,0x306,_0x1adb25._0x4d1680,_0x1adb25._0xeb4381)])return _0x149fd1[_0x34c160(0x609,_0x1adb25._0x1dbec2,_0x1adb25._0x32af25,0x558)];function _0x34c160(_0x2935af,_0x4f0852,_0x9b9adf,_0x5dfc4a){return _0x263708(_0x4f0852-0x320,_0x9b9adf,_0x9b9adf-0xed,_0x5dfc4a-_0x3854dc._0x422d3a);}if(!_0xa4e75a)return void 0x0;return{'kind':_0x119695(0x2e2,_0x1adb25._0x273441,0x327,_0x1adb25._0x190bd7),'value':_0xa4e75a};}function resolveSessionBaseUrl(_0x3f2661,_0x46824c){const _0x40cfdb={_0x4a04a0:0x4d7,_0x9addf4:0x41d,_0x3b7758:0x455},_0x4d217f={_0xffafb5:0x282,_0x3f652d:0xf2};function _0xfdcac1(_0x1c2f9e,_0x4a2348,_0x2c94db,_0x10458e){return _0x263708(_0x2c94db-_0x4d217f._0xffafb5,_0x10458e,_0x2c94db-0xdd,_0x10458e-_0x4d217f._0x3f652d);}return trimTrailingSlashes(_0x46824c?.[_0xfdcac1(0x440,_0x40cfdb._0x4a04a0,_0x40cfdb._0x9addf4,_0x40cfdb._0x3b7758)]?.['api']??_0x3f2661);}function toErrorMessage(_0x16f0b0){const _0x1094a6={_0x4c6234:0x21c,_0x1db5ad:0x23c,_0x34bf5e:0x2ed,_0x5a46ea:0x2a7,_0x2590cc:0x81,_0x8f6ccf:0x7},_0x199dc9={_0x38c8e6:0x6},_0x4d6b54={_0x12b558:0x21b,_0x9f60db:0x38};function _0x53d7db(_0x5bdd8b,_0x275c3c,_0x24a176,_0x1a6ecb){return _0x263708(_0x24a176- -_0x4d6b54._0x12b558,_0x5bdd8b,_0x24a176-0x1e3,_0x1a6ecb-_0x4d6b54._0x9f60db);}if(_0x16f0b0 instanceof Error&&_0x16f0b0[_0x53d7db(-0xdf,0x3c,-0x60,-0xfc)][_0x4ba8c5(_0x1094a6._0x4c6234,_0x1094a6._0x1db5ad,_0x1094a6._0x34bf5e,_0x1094a6._0x5a46ea)]>0x0)return _0x16f0b0['message'];function _0x4ba8c5(_0x1bc4fe,_0x46a771,_0x3677ac,_0x5324aa){return _0x1c2b50(_0x1bc4fe-_0x199dc9._0x38c8e6,_0x46a771-0x1e0,_0x46a771-0x2a8,_0x3677ac);}return _0x53d7db(-0xfb,-0xf3,-_0x1094a6._0x2590cc,_0x1094a6._0x8f6ccf);}function createDefaultWebSocketFactory(){return({headers:_0xcc34b5,url:_0x5a008a})=>{const _0x3abdb4=globalThis['WebSocket'];return new _0x3abdb4(_0x5a008a,{'headers':_0xcc34b5,'protocols':[]});};}function _0x1c2b50(_0x472c9d,_0x2981ba,_0x23b13c,_0x473176){return _0x1b09(_0x23b13c- -0x333,_0x473176);}async function*iterateSseEvents(_0x3ba746,_0x4147a3){const _0x2f8503={_0xfc3eef:0x305,_0x708c2b:0x380,_0x3be5b5:0x2ee,_0x173a84:0x303,_0x36b216:0x289,_0x33dd64:0x328,_0x1155d3:0x2b1,_0x5824e6:0x4b,_0x49742a:0x7c,_0x3c6f1f:0x2fb,_0x3df5dc:0x217,_0x5bbf45:0xab,_0xc4ff25:0x2c,_0x29e3f4:0x47,_0x3662b7:0x4c,_0x4b4be0:0x271,_0x193fdf:0x18d,_0x2dc2da:0xd3,_0x4a39f6:0x3d3,_0x46f827:0x3a7,_0x634a2d:0x438},_0x446a06={_0x500bdb:0x7a},_0x19bf23={_0x541096:0x5b,_0x1f2bbb:0x2e,_0x18b6e9:0x116,_0x121466:0xe2,_0x54471e:0xd1},_0x3e3a90={_0x2f6868:0x1e6,_0x2cc0a9:0x4b,_0x5265b2:0x1e2},_0x43c79c={_0x592140:0x3a2},_0x17c1c7={_0x39cf0a:0x2b},_0x4c026f=_0x3ba746['body']?.[_0x50e6eb(_0x2f8503._0xfc3eef,_0x2f8503._0x708c2b,0x3bc,0x2a5)]();if(!_0x4c026f)return;const _0x3a226f=new TextDecoder(_0x50e6eb(_0x2f8503._0x3be5b5,_0x2f8503._0x173a84,0x2e9,0x372));let _0x16b22c='';function _0x3b5e36(_0x1ac823,_0x205888,_0x486cdd,_0x21b84a){return _0x1c2b50(_0x1ac823-0x35,_0x205888-0x66,_0x486cdd-_0x17c1c7._0x39cf0a,_0x21b84a);}const _0x27311f=addAbortListener(_0x4147a3,()=>{function _0x34d3f7(_0x404d81,_0xb42706,_0x2dc9f1,_0x30be51){return _0x50e6eb(_0x404d81-0x3f,_0x404d81- -_0x43c79c._0x592140,_0x2dc9f1-0x1d2,_0x30be51);}function _0x667d0d(_0x19f4c5,_0x2d0317,_0x49b8b3,_0x2d25a1){return _0x3b5e36(_0x19f4c5-_0x3e3a90._0x2f6868,_0x2d0317-_0x3e3a90._0x2cc0a9,_0x49b8b3-_0x3e3a90._0x5265b2,_0x2d25a1);}void _0x4c026f[_0x34d3f7(-_0x19bf23._0x541096,_0x19bf23._0x1f2bbb,-_0x19bf23._0x18b6e9,-_0x19bf23._0x121466)](toAbortError(_0x4147a3?.[_0x34d3f7(-0xd1,-0x12d,-_0x19bf23._0x54471e,-0xb3)]))[_0x34d3f7(-0x140,-0x222,-0x1f1,-0x1d2)](()=>{});});function _0x50e6eb(_0x3baaaa,_0x37b21a,_0x3729f4,_0x47395c){return _0x263708(_0x37b21a-_0x446a06._0x500bdb,_0x47395c,_0x3729f4-0xc7,_0x47395c-0x4);}try{while(!![]){throwIfAborted(_0x4147a3);const {value:_0x1b594a,done:_0x1845f0}=await _0x4c026f['read']();throwIfAborted(_0x4147a3);if(_0x1845f0)break;_0x16b22c+=_0x3a226f['decode'](_0x1b594a,{'stream':!![]});while(!![]){const _0x40b4a0=_0x16b22c['indexOf']('\x0a\x0a');if(_0x40b4a0===-0x1)break;const _0x5e8473=_0x16b22c[_0x50e6eb(_0x2f8503._0x36b216,_0x2f8503._0x33dd64,_0x2f8503._0x1155d3,0x25e)](0x0,_0x40b4a0);_0x16b22c=_0x16b22c[_0x3b5e36(-0x16c,_0x2f8503._0x5824e6,-_0x2f8503._0x49742a,-0x98)](_0x40b4a0+0x2),_0x5e8473[_0x50e6eb(_0x2f8503._0x3c6f1f,_0x2f8503._0x3df5dc,0x27c,0x144)]()[_0x3b5e36(-0xc,-_0x2f8503._0x5bbf45,-0x41,-0xf6)]>0x0&&(yield _0x5e8473);}}_0x16b22c+=_0x3a226f[_0x3b5e36(-_0x2f8503._0xc4ff25,-0x14,-_0x2f8503._0x29e3f4,-_0x2f8503._0x3662b7)](),throwIfAborted(_0x4147a3),_0x16b22c[_0x3b5e36(-_0x2f8503._0x4b4be0,-0x1a1,-_0x2f8503._0x193fdf,-_0x2f8503._0x2dc2da)]()[_0x50e6eb(_0x2f8503._0x4a39f6,0x363,_0x2f8503._0x46f827,_0x2f8503._0x634a2d)]>0x0&&(yield _0x16b22c);}finally{_0x27311f();}}async function waitForWebSocketOpen(_0x1d06aa,_0x1419f2){const _0x41d53c={_0x1a473c:0x479,_0x13d466:0x48a,_0x183579:0x4c3,_0x4feeba:0x2c1,_0x45502b:0x250,_0x1e1da1:0x249},_0x39d3b1={_0x5a174b:0xed,_0x34cb75:0xcb,_0x4d95ae:0x5e,_0x523118:0x32,_0x39c94b:0x23,_0x2908ac:0x7f,_0x4556e7:0xc3,_0x538f24:0x137,_0x141bc9:0x156,_0x353313:0xd8,_0xf0b84a:0x9c,_0x56b432:0x82,_0x3eb64f:0x8a,_0x9afa91:0x10},_0x3f72e7={_0x4be2ee:0x2a5,_0x33ddb9:0x370},_0x17b56d={_0x44cd77:0x19d,_0x28ab85:0x1bf};function _0x3c750d(_0x396eb4,_0x2d80e3,_0x5e0785,_0x5b9abc){return _0x263708(_0x2d80e3-0xac,_0x396eb4,_0x5e0785-_0x17b56d._0x44cd77,_0x5b9abc-_0x17b56d._0x28ab85);}if(_0x1d06aa[_0x20266d(_0x41d53c._0x1a473c,_0x41d53c._0x13d466,0x480,_0x41d53c._0x183579)]===WebSocket[_0x20266d(_0x41d53c._0x4feeba,_0x41d53c._0x45502b,_0x41d53c._0x1e1da1,0x213)]){throwIfAborted(_0x1419f2);return;}function _0x20266d(_0x211cc8,_0x9d66b1,_0x1dabcc,_0x17a9a4){return _0x1c2b50(_0x211cc8-0xdf,_0x9d66b1-0x10,_0x211cc8-0x48a,_0x1dabcc);}throwIfAborted(_0x1419f2),await new Promise((_0x5da02e,_0x4772ee)=>{const _0x421813={_0x2cfeb4:0x212,_0x2de1ea:0x1df},_0x34d071={_0x512ca4:0x595,_0x2e794:0x552,_0x3e7494:0x526,_0x30dcc2:0x486,_0x2a25fa:0x3ec,_0x3689d2:0x480,_0x4bd3e3:0x4d3,_0x2230e7:0x4d8,_0x52b4f8:0x4d8},_0x495d81={_0x15ae6b:0x457,_0x3678a5:0x49b,_0xfb1506:0x4bc,_0x4ed828:0x567,_0x6fc497:0x55f,_0x2734f1:0x54d,_0x633b78:0x56f},_0x5e4243={_0x46ac88:0x5c,_0x20cec5:0xd8,_0x5635c0:0xcb},_0x5dfa58={_0x24844e:0x398,_0x2334b5:0x9},_0x5a2b4e=()=>{_0x2f052f(),_0x5da02e();};function _0x51fa21(_0x47b0a1,_0x138a27,_0x3e19c6,_0x1b1d6e){return _0x3c750d(_0x138a27,_0x3e19c6- -_0x5dfa58._0x24844e,_0x3e19c6-_0x5dfa58._0x2334b5,_0x1b1d6e-0xcd);}const _0x490fe5=_0xf6a440=>{_0x2f052f();function _0x13fa9a(_0x1b28a2,_0x5ca32a,_0x4743f5,_0x6b1fbd){return _0x1b09(_0x4743f5-0x1f8,_0x1b28a2);}function _0x2d7d4d(_0x23a12a,_0x905ae5,_0x2b8c6c,_0x179932){return _0x1b09(_0x905ae5- -0x15d,_0x2b8c6c);}_0x4772ee(new Error(_0xf6a440[_0x13fa9a(0x2b4,_0x3f72e7._0x4be2ee,0x391,0x3b6)]||_0x13fa9a(0x392,0x3cc,_0x3f72e7._0x33ddb9,0x368)));},_0x4b4bc4=_0x46393b=>{function _0x2f922d(_0x2cab2b,_0x11791f,_0x4ecd83,_0x16fa2f){return _0x1b09(_0x2cab2b- -0x161,_0x11791f);}function _0x2f7b30(_0x453dde,_0x2b8ba1,_0x424ae2,_0x505918){return _0x1b09(_0x424ae2-0x32f,_0x453dde);}_0x2f052f();const _0x1bc596=_0x46393b;_0x4772ee(new Error(_0x1bc596[_0x2f922d(0xd4,0xd9,0x131,_0x5e4243._0x46ac88)]||_0x2f922d(_0x5e4243._0x20cec5,_0x5e4243._0x5635c0,0xf3,0x1a9)));},_0x3a35c4=()=>{function _0x5dd521(_0x1e58a0,_0x312d44,_0x5bd51e,_0x2c2b0c){return _0x1b09(_0x2c2b0c-0x331,_0x1e58a0);}_0x2f052f();_0x1d06aa['readyState']===WebSocket[_0x5dd521(0x3de,0x457,_0x495d81._0x15ae6b,_0x495d81._0x3678a5)]&&_0x1d06aa[_0x5dd521(_0x495d81._0xfb1506,_0x495d81._0x4ed828,0x4a1,_0x495d81._0x6fc497)](0x3e8,_0x5dd521(0x51a,_0x495d81._0x2734f1,0x632,_0x495d81._0x633b78));function _0x1d5a48(_0x27be13,_0x4aba05,_0x5bae50,_0xa3c528){return _0x1b09(_0xa3c528- -0x3a7,_0x4aba05);}_0x4772ee(toAbortError(_0x1419f2?.['reason']));},_0x2f052f=()=>{_0x1d06aa['removeEventListener'](_0x24e8a3(0x4a5,_0x34d071._0x512ca4,_0x34d071._0x2e794,_0x34d071._0x3e7494),_0x5a2b4e);function _0x40395a(_0x4515ac,_0x19bad2,_0x5e987f,_0x28e745){return _0x1b09(_0x19bad2-0x294,_0x28e745);}_0x1d06aa['removeEventListener'](_0x40395a(_0x34d071._0x30dcc2,_0x34d071._0x2a25fa,_0x34d071._0x3689d2,0x311),_0x490fe5);function _0x24e8a3(_0x2ef8c6,_0x5659af,_0xd6ff30,_0x102440){return _0x1b09(_0x102440-0x2ba,_0x5659af);}_0x1d06aa['removeEventListener'](_0x24e8a3(0x4e8,_0x34d071._0x4bd3e3,0x5ad,0x4e8),_0x4b4bc4),_0x1419f2?.[_0x24e8a3(0x3ef,0x5a3,_0x34d071._0x2230e7,0x4bf)](_0x40395a(0x619,0x56e,0x528,_0x34d071._0x52b4f8),_0x3a35c4);};_0x1d06aa['addEventListener'](_0x51fa21(-_0x39d3b1._0x5a174b,-_0x39d3b1._0x34cb75,-_0x39d3b1._0x4d95ae,-_0x39d3b1._0x523118),_0x5a2b4e),_0x1d06aa['addEventListener'](_0x53678b(-_0x39d3b1._0x39c94b,0x14,_0x39d3b1._0x2908ac,0x3c),_0x490fe5),_0x1d06aa[_0x53678b(_0x39d3b1._0x4556e7,_0x39d3b1._0x538f24,0x179,_0x39d3b1._0x141bc9)](_0x51fa21(-_0x39d3b1._0x353313,-0x40,-_0x39d3b1._0xf0b84a,-0x47),_0x4b4bc4);function _0x53678b(_0x889193,_0x495041,_0x23592e,_0x5dc875){return _0x3c750d(_0x5dc875,_0x495041- -_0x421813._0x2cfeb4,_0x23592e-0xcb,_0x5dc875-_0x421813._0x2de1ea);}_0x1419f2?.[_0x51fa21(_0x39d3b1._0x56b432,-0x77,-0x4f,-0xe6)](_0x51fa21(-_0x39d3b1._0x3eb64f,-0x7d,_0x39d3b1._0x9afa91,0xe8),_0x3a35c4,{'once':!![]});});}function iterateWebSocketMessages(_0x10be77,_0x2cebe0){const _0x444d34={_0x352835:0x53,_0x11ce70:0x67,_0x43e409:0xf5,_0x136c66:0x48,_0x36193a:0x21e,_0xa4d839:0x140,_0x465a99:0x3c9,_0x5ba043:0x341,_0x5be28f:0x3e5,_0x29086a:0x23e,_0x248480:0x12,_0x112b5e:0x128},_0x13b06a={_0x4bda89:0x79,_0x1a7ff1:0x3,_0x15dca6:0x16,_0x7e50c7:0x19e,_0x447e3a:0x185,_0x582043:0x236,_0x1b4cbd:0x154,_0x4af928:0x189,_0x3ed980:0x9,_0x2621c9:0x28,_0x2b626e:0xd8,_0x226dc6:0x6c,_0xd910f:0x1e4},_0x13b7f9={_0x22646c:0x1f4},_0x11bcaf={_0x528089:0x134,_0x18c9f8:0x59,_0x4bb1f4:0xeb,_0x5ee43c:0xd8,_0xd141c2:0x1ac,_0x12bc22:0x21c,_0x26a724:0x1a1},_0x4f88a4={_0x3e34f:0x155,_0x8fdeb:0x106,_0x32d97b:0x15f,_0x57b110:0xa2,_0x309b97:0x6b,_0x2a4739:0xee,_0x250cc8:0x106,_0x9e23e2:0xe5},_0x58d704={_0x2c73c8:0x222,_0x4c41cf:0x1be},_0x3a7acb={_0x5ab605:0x210,_0x3657cd:0x2ca,_0x3b7a36:0x1ef},_0x5589ea={_0x4336f5:0x77},_0x23a134={_0x1f13ea:0x3b8,_0x1f2a6b:0x3c8,_0x3ec80b:0x537,_0x36b7fa:0x408},_0x557260={_0x168142:0x1e4,_0x1332b9:0x3f9},_0x34ed6a=[];let _0x1684e3=![];function _0x5a7048(_0x57c8ca,_0x335eae,_0x20fe34,_0x5088c4){return _0x1c2b50(_0x57c8ca-_0x557260._0x168142,_0x335eae-0xc2,_0x335eae-_0x557260._0x1332b9,_0x57c8ca);}let _0x54337b,_0x5a1955;const _0x35ef3b=_0x32b153=>{const _0x1e6ff9={_0x56891b:0x1d4};function _0x1c4a8b(_0x17cfee,_0x4e5f60,_0x289fe4,_0x41cc1e){return _0x1b09(_0x289fe4-_0x1e6ff9._0x56891b,_0x4e5f60);}const _0x3f4d40=_0x32b153;function _0x33ac3d(_0x575d18,_0x24fb32,_0x20cbc5,_0x3eadbc){return _0x1b09(_0x3eadbc-0x104,_0x20cbc5);}try{_0x34ed6a[_0x1c4a8b(_0x23a134._0x1f13ea,0x2f2,0x39e,_0x23a134._0x1f2a6b)](JSON[_0x1c4a8b(_0x23a134._0x3ec80b,0x3d3,0x470,_0x23a134._0x36b7fa)](String(_0x3f4d40['data']))),_0x5a1955?.(),_0x5a1955=void 0x0;}catch(_0x4be9d4){_0x54337b=new Error('Invalid\x20WebSocket\x20message:\x20'+toErrorMessage(_0x4be9d4)),_0x5a1955?.(),_0x5a1955=void 0x0;}},_0x312156=_0x388521=>{function _0xc7905c(_0x5cfc3b,_0x446a78,_0x30064a,_0x11f059){return _0x1b09(_0x11f059- -0x124,_0x5cfc3b);}const _0x354602=_0x388521;function _0x2e2933(_0x22813c,_0x2e3e9e,_0xdbe874,_0x444212){return _0x1b09(_0x444212-_0x5589ea._0x4336f5,_0xdbe874);}_0x54337b=new Error(_0x354602[_0x2e2933(0x141,0x241,0x2dd,_0x3a7acb._0x5ab605)]||_0x2e2933(0x20c,_0x3a7acb._0x3657cd,0x15c,_0x3a7acb._0x3b7a36)),_0x5a1955?.(),_0x5a1955=void 0x0;};function _0x230946(_0x4cef67,_0x1b6692,_0x172357,_0xa00e5b){return _0x263708(_0x1b6692- -_0x58d704._0x2c73c8,_0xa00e5b,_0x172357-_0x58d704._0x4c41cf,_0xa00e5b-0x1ec);}const _0x41fded=_0x352b18=>{const _0x1934ac=_0x352b18;!_0x1684e3&&_0x1934ac[_0x4979e1(_0x4f88a4._0x3e34f,0x2f,_0x4f88a4._0x8fdeb,0x10c)]!==0x3e8&&!_0x54337b&&(_0x54337b=new Error(_0x1934ac[_0x4979e1(0x7f,_0x4f88a4._0x32d97b,0x16d,_0x4f88a4._0x57b110)]||_0x125003(-0x1b8,-_0x4f88a4._0x309b97,-0x215,-0x15a)+_0x1934ac[_0x4979e1(0x17b,_0x4f88a4._0x2a4739,_0x4f88a4._0x250cc8,_0x4f88a4._0x9e23e2)]));function _0x4979e1(_0x5bd774,_0x3c7c43,_0x1ea94b,_0x485517){return _0x1b09(_0x1ea94b- -0xc8,_0x5bd774);}function _0x125003(_0x363e36,_0x162d1b,_0x574d3e,_0x1dd692){return _0x1b09(_0x1dd692- -0x31b,_0x574d3e);}_0x1684e3=!![],_0x5a1955?.(),_0x5a1955=void 0x0;},_0x58f7b2=addAbortListener(_0x2cebe0,()=>{const _0x246498={_0xd0772d:0x369};function _0x424b59(_0x1f0117,_0x2b9359,_0x2af308,_0x4e4356){return _0x1b09(_0x2b9359- -0x237,_0x4e4356);}_0x54337b=toAbortError(_0x2cebe0?.[_0x2b0f3e(-_0x11bcaf._0x528089,-0xc0,-0xfa,-0xab)]);function _0x2b0f3e(_0x520a19,_0x226636,_0x45fbce,_0x2eda11){return _0x1b09(_0x520a19- -_0x246498._0xd0772d,_0x2eda11);}_0x10be77[_0x424b59(_0x11bcaf._0x18c9f8,_0x11bcaf._0x4bb1f4,0xbe,_0x11bcaf._0x5ee43c)]===WebSocket[_0x2b0f3e(-0x1ff,-_0x11bcaf._0xd141c2,-0x2a5,-0x13b)]&&_0x10be77['close'](0x3e8,_0x2b0f3e(-0x12b,-0x148,-_0x11bcaf._0x12bc22,-_0x11bcaf._0x26a724)),_0x5a1955?.(),_0x5a1955=void 0x0;});return _0x10be77[_0x5a7048(0x3c5,0x341,0x371,0x409)](_0x230946(_0x444d34._0x352835,-_0x444d34._0x11ce70,-_0x444d34._0x43e409,_0x444d34._0x136c66),_0x35ef3b),_0x10be77[_0x5a7048(0x362,0x341,0x257,0x324)](_0x5a7048(0x1ff,_0x444d34._0x36193a,_0x444d34._0xa4d839,0x194),_0x312156),_0x10be77[_0x5a7048(_0x444d34._0x465a99,_0x444d34._0x5ba043,0x283,_0x444d34._0x5be28f)](_0x5a7048(0x2a4,0x2f4,_0x444d34._0x29086a,0x394),_0x41fded),{async*[Symbol[_0x230946(_0x444d34._0x248480,0x51,_0x444d34._0x112b5e,0x63)]](){const _0x15325f={_0x324215:0x3a3,_0x52793a:0x5,_0x40d7be:0x184};function _0x146d39(_0x35b46d,_0x1d8c3a,_0x1ab0ca,_0x21b65c){return _0x5a7048(_0x21b65c,_0x1ab0ca- -0x177,_0x1ab0ca-_0x13b7f9._0x22646c,_0x21b65c-0xa2);}function _0x467f4a(_0x22b366,_0x5206fe,_0xb45d55,_0x24edbe){return _0x5a7048(_0x22b366,_0xb45d55- -_0x15325f._0x324215,_0xb45d55-_0x15325f._0x52793a,_0x24edbe-_0x15325f._0x40d7be);}try{while(!![]){if(_0x54337b)throw _0x54337b;if(_0x34ed6a[_0x467f4a(_0x13b06a._0x4bda89,_0x13b06a._0x1a7ff1,-_0x13b06a._0x15dca6,-0xdd)]>0x0){yield _0x34ed6a['shift']();continue;}if(_0x1684e3)break;await new Promise(_0xffd5a5=>{_0x5a1955=_0xffd5a5;});}}finally{_0x10be77[_0x467f4a(-_0x13b06a._0x7e50c7,-_0x13b06a._0x447e3a,-0xd8,-0xb4)]('message',_0x35ef3b),_0x10be77[_0x146d39(0xd5,_0x13b06a._0x582043,_0x13b06a._0x1b4cbd,_0x13b06a._0x4af928)]('error',_0x312156),_0x10be77[_0x467f4a(-_0x13b06a._0x3ed980,-_0x13b06a._0x2621c9,-_0x13b06a._0x2b626e,-_0x13b06a._0x226dc6)](_0x146d39(0x26e,_0x13b06a._0xd910f,0x17d,0x254),_0x41fded),_0x58f7b2();}}};}function toWebSocketUrl(_0x40f279,_0x1b80f2){const _0x1e8159={_0x7cac93:0xc4,_0x1d60b4:0x84,_0x4cd9b3:0x6e,_0x4b648e:0x82},_0x2a4610={_0x4799f1:0x35c,_0x5b4de5:0x1e5},_0x294215={_0x2f4627:0x8d,_0x17fa4e:0x30b},_0x17e9d2=new URL(_0x1b80f2,_0x40f279);_0x17e9d2['protocol']=_0x17e9d2[_0x4e07d6(0x1e1,0x1ba,0x101,0x17d)]===_0x4722c2(-_0x1e8159._0x7cac93,-0x16d,-0xb3,-0x169)?_0x4722c2(-0xaa,-_0x1e8159._0x1d60b4,-_0x1e8159._0x4cd9b3,-0x10e):'ws:';function _0x4e07d6(_0x275684,_0x161f64,_0x458634,_0x379aba){return _0x1c2b50(_0x275684-0x39,_0x161f64-_0x294215._0x2f4627,_0x161f64-_0x294215._0x17fa4e,_0x275684);}function _0x4722c2(_0x15f602,_0x4424c4,_0x37ad98,_0x35aa98){return _0x263708(_0x37ad98- -_0x2a4610._0x4799f1,_0x15f602,_0x37ad98-0x4d,_0x35aa98-_0x2a4610._0x5b4de5);}return _0x17e9d2[_0x4722c2(-0x40,-0x77,-_0x1e8159._0x4b648e,-0x100)]();}var ProviderSessionManager=class{['resolver'];[_0x263708(0x31d,0x315,0x2b9,0x23f)];constructor(_0x2482f6){const _0x553cf8={_0x476965:0x331,_0x4e9cd6:0x354,_0x4ce2b6:0x3b1},_0x3607f3={_0x31358b:0x72,_0x21205f:0x11d,_0x2ae63e:0x30};function _0x38c5aa(_0x1f8a69,_0x4e4944,_0x14a971,_0x2581d6){return _0x263708(_0x4e4944-_0x3607f3._0x31358b,_0x1f8a69,_0x14a971-_0x3607f3._0x21205f,_0x2581d6-_0x3607f3._0x2ae63e);}this[_0x38c5aa(_0x553cf8._0x476965,_0x553cf8._0x4e9cd6,_0x553cf8._0x4ce2b6,0x347)]=_0x2482f6;}async['resolve'](_0x557523){const _0x2f9baa={_0x4c6c31:0x455,_0x53f10b:0x439,_0x47f6a1:0x39d,_0x5534d2:0x4c0,_0xa1def2:0x367,_0x2d1dcd:0x2ea,_0xf24cf1:0x2c0,_0x32cb29:0x1fb,_0x3feb19:0xab,_0x5c5d08:0xa6,_0x16d1b1:0x45e},_0x21bc5f={_0x24dacb:0x193,_0x146401:0x23c,_0x38bdce:0x60,_0x52d230:0x2e,_0x4c87ee:0x62},_0x2aa9a8={_0x60e870:0xbf};function _0x1a5076(_0x9eb666,_0x366a81,_0x57da10,_0x5368c5){return _0x1c2b50(_0x9eb666-0x13a,_0x366a81-_0x2aa9a8._0x60e870,_0x366a81-0x4ac,_0x57da10);}if(!this['cached']){const _0x5dbd62=this[_0x1a5076(_0x2f9baa._0x4c6c31,_0x2f9baa._0x53f10b,_0x2f9baa._0x47f6a1,_0x2f9baa._0x5534d2)][_0x1a5076(_0x2f9baa._0xa1def2,_0x2f9baa._0x2d1dcd,_0x2f9baa._0xf24cf1,0x3a8)](_0x557523);_0x5dbd62[_0x37c55f(-0x183,-_0x2f9baa._0x32cb29,-_0x2f9baa._0x3feb19,-0x138)](()=>{const _0x4f7637={_0x1c1e89:0xce},_0x51cd63={_0x4787d2:0x175,_0x19d9ab:0x20f};function _0xda0f40(_0x237c68,_0x4e2b4b,_0x1822ac,_0x3eed01){return _0x37c55f(_0x237c68,_0x4e2b4b-_0x51cd63._0x4787d2,_0x1822ac-0x31,_0x4e2b4b-_0x51cd63._0x19d9ab);}function _0x336d01(_0x2a9520,_0xaa5b25,_0x2a0064,_0x4871bf){return _0x37c55f(_0xaa5b25,_0xaa5b25-_0x4f7637._0x1c1e89,_0x2a0064-0x1b,_0x2a9520- -0x5d);}this[_0xda0f40(0x284,0x20c,_0x21bc5f._0x24dacb,_0x21bc5f._0x146401)]===_0x5dbd62&&(this[_0x336d01(-_0x21bc5f._0x38bdce,-0x3b,_0x21bc5f._0x52d230,-_0x21bc5f._0x4c87ee)]=void 0x0);}),this[_0x37c55f(-_0x2f9baa._0x5c5d08,-0xf1,-0x48,-0x3)]=_0x5dbd62;}function _0x37c55f(_0x39098d,_0x51043b,_0x54ca4e,_0xb752c9){return _0x1c2b50(_0x39098d-0x1c,_0x51043b-0x1ca,_0xb752c9-0x35,_0x39098d);}return structuredClone(await this[_0x1a5076(_0x2f9baa._0x16d1b1,0x474,0x421,0x4fa)]);}[_0x1c2b50(-0x168,-0x159,-0x81,-0x97)](){const _0x7a3120={_0x1bf39a:0x426,_0x51de35:0x466},_0x3fd6de={_0x4c0b66:0x128,_0x44a524:0x446};this['resolver']['invalidate']?.();function _0x5ba03d(_0x2edf1f,_0x48ff50,_0x349234,_0x4a2b30){return _0x1c2b50(_0x2edf1f-0x31,_0x48ff50-_0x3fd6de._0x4c0b66,_0x2edf1f-_0x3fd6de._0x44a524,_0x48ff50);}this[_0x5ba03d(0x40e,0x423,_0x7a3120._0x1bf39a,_0x7a3120._0x51de35)]=void 0x0;}};async function prepareProviderRequest(_0x202a84,_0x5660ee={}){const _0x945e0a={_0x23f0ff:0xd3,_0x4e525e:0xd8,_0x542e48:0xea,_0x17d433:0x1a,_0x190068:0x1a3,_0x4dba4c:0xc6,_0x1e1803:0x17d,_0x4ac354:0x5a0},_0x141417={_0x719a97:0x2c5},_0x115241={_0x3f5af3:0x113,_0x23d364:0x3b};function _0x1806bd(_0x5c1cdd,_0x15eeea,_0x34997b,_0x5b9275){return _0x263708(_0x34997b- -0x294,_0x5b9275,_0x34997b-_0x115241._0x3f5af3,_0x5b9275-_0x115241._0x23d364);}let _0xdfdfb4={'request':structuredClone(_0x202a84),'session':_0x5660ee[_0x1806bd(-0xf2,-0x196,-_0x945e0a._0x23f0ff,-_0x945e0a._0x4e525e)]?await _0x5660ee[_0x1806bd(-_0x945e0a._0x542e48,-_0x945e0a._0x17d433,-_0x945e0a._0x23f0ff,-_0x945e0a._0x190068)][_0x1806bd(-_0x945e0a._0x4dba4c,-0x157,-0x101,-0x151)](_0x5660ee[_0x1806bd(-0x19a,-_0x945e0a._0x1e1803,-0xf8,-0x1b1)]):void 0x0};function _0x263547(_0x36a4ac,_0x1a5d4d,_0xc4d718,_0x1e4d5c){return _0x263708(_0x36a4ac-_0x141417._0x719a97,_0x1e4d5c,_0xc4d718-0x129,_0x1e4d5c-0x1a3);}for(const _0x37d98a of _0x5660ee[_0x263547(0x587,0x658,0x54c,_0x945e0a._0x4ac354)]??[]){_0xdfdfb4=await _0x37d98a(_0xdfdfb4);}return _0xdfdfb4;}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'];[_0x263708(0x2eb,0x288,0x2a5,0x3cb)];[_0x263708(0x1e0,0x130,0x1f7,0x232)];[_0x1c2b50(0x51,-0x115,-0x9e,-0x138)];[_0x263708(0x286,0x2fc,0x1ae,0x2db)];[_0x263708(0x2bb,0x22e,0x20b,0x250)];[_0x1c2b50(-0x1a4,-0x186,-0x156,-0x147)];[_0x1c2b50(-0xf3,-0xc2,-0x93,0x3d)];[_0x263708(0x1a6,0x204,0xd6,0xd1)];['sessionManager'];[_0x1c2b50(-0x86,-0xaf,-0x5c,0x1a)];[_0x263708(0x334,0x272,0x412,0x3fc)]=new Map();constructor(_0x2aaef5){const _0xdd3ddd={_0x464fcd:0x611,_0x36baff:0x690,_0x25fc6f:0x5d9,_0x11ff5b:0x663,_0x35e54a:0x5e9,_0x3f6dc1:0x64d,_0x135c84:0x572,_0x9ecf37:0x590,_0x4b85b6:0x558,_0x575b97:0x46e,_0x59fb2d:0x511,_0x185947:0x485,_0xf063d9:0x640,_0x45cf96:0x634,_0x9d5773:0x628,_0x371423:0x453,_0x372c27:0x4c8,_0x414037:0x52b,_0xe1c5cd:0x550,_0x1855a5:0x50b,_0x1fa5c5:0x577,_0x186408:0x52a,_0x428935:0x662,_0x1563cb:0x63a,_0x32e82b:0x597,_0x2e7c14:0x6f7,_0x4ccffa:0x450,_0x212455:0x42d,_0x376e04:0x44b,_0x2c74f7:0x5c8,_0x47873f:0x539,_0x194a47:0x61b,_0x34f197:0x50e,_0x228a77:0x492,_0x4f276f:0x40b,_0x48e34c:0x466,_0xa2ce47:0x670,_0x358522:0x4ff,_0x1be580:0x5b0,_0x235a6a:0x671,_0x32016b:0x538,_0x1215ab:0x53c,_0x5e2640:0x5d9,_0x1d1e1d:0x670,_0x1b7e13:0x5c8,_0xeb93a0:0x6e2,_0x2a4563:0x3f3,_0x4639c8:0x45b},_0x21235b={_0x16364f:0x154},_0x7bab79={_0x3e6d86:0x2a5,_0x552d2c:0x4e};this[_0x57c235(0x5c5,_0xdd3ddd._0x464fcd,_0xdd3ddd._0x36baff,_0xdd3ddd._0x25fc6f)]=_0x2aaef5['model'],this[_0x57c235(0x64a,_0xdd3ddd._0x11ff5b,0x6e8,_0xdd3ddd._0x35e54a)]=_0x2aaef5[_0x51544f(0x4aa,_0xdd3ddd._0x3f6dc1,_0xdd3ddd._0x135c84,_0xdd3ddd._0x9ecf37)],this[_0x57c235(0x48b,_0xdd3ddd._0x4b85b6,0x624,0x5b5)]=_0x2aaef5[_0x51544f(_0xdd3ddd._0x575b97,_0xdd3ddd._0x59fb2d,0x52b,_0xdd3ddd._0x185947)]?structuredClone(_0x2aaef5[_0x51544f(0x4f4,0x514,0x500,0x485)]):void 0x0,this[_0x51544f(_0xdd3ddd._0xf063d9,_0xdd3ddd._0x45cf96,_0xdd3ddd._0x9d5773,0x55c)]=_0x2aaef5['apiKey'];function _0x51544f(_0x21483a,_0x2fd3b8,_0x18e6fd,_0x1cc8c4){return _0x263708(_0x1cc8c4-_0x7bab79._0x3e6d86,_0x2fd3b8,_0x18e6fd-0xb6,_0x1cc8c4-_0x7bab79._0x552d2c);}this['baseUrl']=_0x2aaef5[_0x51544f(_0xdd3ddd._0x371423,_0xdd3ddd._0x372c27,0x4b8,_0xdd3ddd._0x414037)];function _0x57c235(_0x4ad65d,_0x5265f0,_0x48a614,_0x492312){return _0x263708(_0x5265f0-0x378,_0x4ad65d,_0x48a614-0xa8,_0x492312-_0x21235b._0x16364f);}this['fetchImpl']=_0x2aaef5[_0x57c235(0x4cd,0x550,0x500,0x63e)]??globalThis[_0x57c235(0x4a9,_0xdd3ddd._0xe1c5cd,0x4cf,0x4ba)],this[_0x57c235(_0xdd3ddd._0x1855a5,_0xdd3ddd._0x1fa5c5,_0xdd3ddd._0x186408,_0xdd3ddd._0x428935)]=_0x2aaef5['providerAdapter'],this[_0x57c235(0x5f8,_0xdd3ddd._0x1563cb,0x595,0x693)]=_0x2aaef5[_0x57c235(_0xdd3ddd._0x32e82b,_0xdd3ddd._0x1563cb,_0xdd3ddd._0x2e7c14,0x62d)]??[],this[_0x51544f(0x4c8,_0xdd3ddd._0x4ccffa,_0xdd3ddd._0x212455,_0xdd3ddd._0x376e04)]=_0x2aaef5['router'],this[_0x57c235(_0xdd3ddd._0x2c74f7,_0xdd3ddd._0x47873f,_0xdd3ddd._0x194a47,_0xdd3ddd._0x34f197)]=_0x2aaef5[_0x51544f(_0xdd3ddd._0x228a77,0x3ba,_0xdd3ddd._0x4f276f,_0xdd3ddd._0x48e34c)]??(_0x2aaef5['providerSessionResolver']?new ProviderSessionManager(_0x2aaef5['providerSessionResolver']):void 0x0),this[_0x51544f(_0xdd3ddd._0xa2ce47,0x689,_0xdd3ddd._0x358522,0x59e)]=_0x2aaef5[_0x57c235(_0xdd3ddd._0x1be580,_0xdd3ddd._0x235a6a,0x62e,0x588)]??createDefaultWebSocketFactory();for(const _0x1249aa of _0x2aaef5[_0x51544f(0x5d2,_0xdd3ddd._0x32016b,_0xdd3ddd._0x1215ab,_0xdd3ddd._0x5e2640)]){this[_0x57c235(_0xdd3ddd._0x1d1e1d,0x6ac,_0xdd3ddd._0x1b7e13,_0xdd3ddd._0xeb93a0)][_0x51544f(0x3c5,_0xdd3ddd._0x2a4563,0x493,_0xdd3ddd._0x4639c8)](_0x1249aa['id'],_0x1249aa);}}[_0x263708(0x2dc,0x37d,0x20c,0x276)](_0x58b4a3,_0xeaa3a8){return this['completeViaRouter'](_0x58b4a3,_0xeaa3a8);}[_0x1c2b50(-0x171,0xc,-0xdc,-0xd8)](_0x2b4950,_0x441b58){return this['streamViaRouter'](_0x2b4950,_0x441b58);}async[_0x1c2b50(-0x2b,-0x101,-0x100,-0xf1)](_0x1668a2,_0x448748){const _0x24aede={_0x14e0a6:0x3e1,_0x2e51dc:0x302,_0x28d7ff:0x64,_0x487320:0xc,_0x1faa61:0x48,_0x98122a:0x79,_0x1254eb:0x67},_0x4015a7={_0x250d1b:0x47},_0x2babd2={_0x37f050:0x9f};function _0x406f82(_0xa30b0d,_0x3b286f,_0xeb59ff,_0x1a5e27){return _0x1c2b50(_0xa30b0d-_0x2babd2._0x37f050,_0x3b286f-0x66,_0xeb59ff-0x7b,_0x1a5e27);}const _0x63c107=this['applyModelDefaults'](_0x1668a2);function _0x4e4808(_0x1dfd0a,_0x4fae0f,_0x394a19,_0x8ddcce){return _0x1c2b50(_0x1dfd0a-_0x4015a7._0x250d1b,_0x4fae0f-0x19e,_0x1dfd0a-0x51d,_0x394a19);}const _0x49a816=await this['router'][_0x4e4808(_0x24aede._0x14e0a6,0x45b,_0x24aede._0x2e51dc,0x391)](_0x63c107,{'mode':_0x406f82(0x57,-_0x24aede._0x28d7ff,0x2,_0x24aede._0x487320)});return this[_0x406f82(_0x24aede._0x1faa61,-_0x24aede._0x98122a,_0x24aede._0x1254eb,-0x3)](_0x63c107,_0x49a816,_0x448748);}async*[_0x1c2b50(-0xca,-0x1ba,-0x12d,-0x43)](_0x226f9f,_0x21b0c9){const _0xce11a1={_0x53a938:0xf0,_0x14cc98:0x13d,_0x5b62d6:0x23b,_0x266bbf:0x243,_0x111812:0x6d,_0x34e937:0x84,_0x27a477:0x77,_0x269378:0x110,_0x54b0b1:0xd7,_0x549b04:0x96,_0x3215f0:0x87,_0x3c822c:0x36,_0x1a0d83:0x97},_0x14b764={_0x3c072e:0xa6,_0x24e4ad:0xf3,_0x1b7a96:0xc5},_0x57dff1={_0x2c7e9f:0x174},_0x584167=this[_0x75e413(-0x218,-_0xce11a1._0x53a938,-0x1dd,-_0xce11a1._0x14cc98)](_0x226f9f);function _0x75e413(_0x2e9a97,_0x854c47,_0x5b73f1,_0x24c7e6){return _0x263708(_0x24c7e6- -0x30f,_0x2e9a97,_0x5b73f1-0xd6,_0x24c7e6-_0x57dff1._0x2c7e9f);}const _0x468c9a=await this[_0x75e413(-_0xce11a1._0x5b62d6,-0x17c,-_0xce11a1._0x266bbf,-0x169)][_0x55d9e5(-0x10d,_0xce11a1._0x111812,-_0xce11a1._0x34e937,-_0xce11a1._0x27a477)](_0x584167,{'mode':_0x75e413(-_0xce11a1._0x269378,0x3d,-_0xce11a1._0x54b0b1,-_0xce11a1._0x549b04)});function _0x55d9e5(_0x374748,_0x46b8cd,_0x463b5a,_0x139601){return _0x1c2b50(_0x374748-_0x14b764._0x3c072e,_0x46b8cd-_0x14b764._0x24e4ad,_0x139601-_0x14b764._0x1b7a96,_0x463b5a);}yield*this[_0x75e413(-_0xce11a1._0x3215f0,-0xac,_0xce11a1._0x3c822c,-_0xce11a1._0x1a0d83)](_0x584167,_0x468c9a,_0x21b0c9);}async['completeViaSurface'](_0x13f4cb,_0x398216,_0x5ad95c){const _0x1d89ff={_0x405d2e:0x228,_0x574275:0x19a,_0x99ae9:0x293,_0x4aa118:0x271,_0x24db03:0x2c3,_0x39d348:0x29e,_0x5dd09b:0x2b5,_0x389184:0x1fd,_0x46b6ef:0x3dd,_0x22c3cc:0x3a4,_0x124754:0x314,_0x47ed49:0x2bf,_0x2f409f:0x348,_0x396500:0x38a,_0x33b620:0x301,_0x4795ba:0x2a0,_0x288a9c:0x32a,_0x5961df:0x3d3,_0x36948a:0x31e,_0x2ea214:0x31f,_0x5c4c87:0x316,_0x374286:0x3ea,_0x12a4cd:0x304},_0x588b48={_0x1dfe8f:0x56},_0x1d34f0={_0x41b4d6:0xd0,_0x3b393:0x1c5},_0x51441b=this[_0x133045(0x303,0x269,_0x1d89ff._0x405d2e,_0x1d89ff._0x574275)](_0x13f4cb),_0x5ad27a=this['getSurface'](_0x398216);function _0x4bfc05(_0x25fb2e,_0x2fb541,_0x380ddf,_0x4b6743){return _0x263708(_0x380ddf-_0x1d34f0._0x41b4d6,_0x25fb2e,_0x380ddf-0x7f,_0x4b6743-_0x1d34f0._0x3b393);}if(_0x5ad27a[_0x4bfc05(_0x1d89ff._0x99ae9,0x396,0x35d,_0x1d89ff._0x4aa118)]===_0x133045(_0x1d89ff._0x24db03,0x355,0x378,_0x1d89ff._0x39d348)){const _0x396a62=await this[_0x4bfc05(0x2f7,0x24f,_0x1d89ff._0x5dd09b,0x24a)](_0x51441b,_0x5ad27a,![],_0x5ad95c);if(!_0x396a62['ok'])throw await this['toApiError'](_0x396a62);if(!_0x5ad27a['parseResponse'])throw new Error('Surface\x20'+_0x398216+_0x133045(0x17e,0x213,_0x1d89ff._0x389184,0x12f));return _0x5ad27a['parseResponse'](await _0x396a62[_0x133045(_0x1d89ff._0x46b6ef,_0x1d89ff._0x22c3cc,0x375,_0x1d89ff._0x124754)](),_0x51441b);}let _0x209835;for await(const _0x3d801e of this[_0x4bfc05(_0x1d89ff._0x47ed49,0x2b0,_0x1d89ff._0x2f409f,_0x1d89ff._0x396500)](_0x51441b,_0x398216,_0x5ad95c)){_0x3d801e[_0x4bfc05(_0x1d89ff._0x33b620,0x31c,_0x1d89ff._0x4795ba,0x366)]===_0x4bfc05(0x33a,0x271,0x267,0x2c6)&&(_0x209835=_0x3d801e[_0x4bfc05(0x1d1,_0x1d89ff._0x288a9c,0x26e,0x19f)]);}if(!_0x209835)throw new Error(_0x133045(_0x1d89ff._0x5961df,_0x1d89ff._0x36948a,0x34e,_0x1d89ff._0x2ea214)+_0x398216+_0x4bfc05(_0x1d89ff._0x5c4c87,_0x1d89ff._0x374286,_0x1d89ff._0x12a4cd,0x2e9));function _0x133045(_0x897d78,_0x664a39,_0x465cd8,_0x41e99e){return _0x263708(_0x465cd8-_0x588b48._0x1dfe8f,_0x41e99e,_0x465cd8-0x1f2,_0x41e99e-0x96);}return _0x209835;}async*[_0x263708(0x278,0x2e4,0x2ad,0x204)](_0x54ff7a,_0x399b22,_0x269ed2){const _0x5d7817={_0x440468:0x49,_0x2dc874:0x60,_0x4adbf7:0xd8,_0x2804a9:0x220,_0x8fdecb:0xb7,_0x14384a:0xec,_0x38fbc6:0xd2,_0x18c6d4:0x7b,_0x2fec0f:0x36d,_0x33fed1:0x412,_0x5513e9:0x1c3,_0x401cda:0x244,_0x1f8366:0x4b,_0x3363ab:0x5d,_0x1367b0:0x246,_0x5473c6:0x2d3,_0x2be31a:0xa6,_0x5c79f4:0x61,_0x2f08b1:0x78},_0x2bb140={_0x4df73e:0x236,_0x3ce480:0x135},_0x5880ea={_0x9493d4:0x2c};function _0x459096(_0x2c5f17,_0x3ce6c8,_0x2d8ee3,_0x5131a3){return _0x263708(_0x2c5f17-_0x5880ea._0x9493d4,_0x5131a3,_0x2d8ee3-0x104,_0x5131a3-0x1a0);}const _0x3b27e5=this[_0x513de5(_0x5d7817._0x440468,-0x64,_0x5d7817._0x2dc874,-_0x5d7817._0x4adbf7)](_0x54ff7a),_0x220fb2=this['getSurface'](_0x399b22);function _0x513de5(_0x557166,_0x36eca9,_0x2ef3d1,_0x1b77dd){return _0x263708(_0x36eca9- -_0x2bb140._0x4df73e,_0x2ef3d1,_0x2ef3d1-_0x2bb140._0x3ce480,_0x1b77dd-0xf1);}if(_0x220fb2[_0x459096(0x2b9,0x254,_0x5d7817._0x2804a9,0x234)]===_0x513de5(_0x5d7817._0x8fdecb,_0x5d7817._0x14384a,_0x5d7817._0x38fbc6,_0x5d7817._0x18c6d4)){const _0x5081f4=await this[_0x459096(_0x5d7817._0x2fec0f,0x3ca,0x34c,_0x5d7817._0x33fed1)](_0x3b27e5,_0x399b22,_0x269ed2);yield{'type':_0x459096(_0x5d7817._0x5513e9,0x19b,0x113,_0x5d7817._0x401cda),'response':_0x5081f4};return;}if(_0x220fb2[_0x513de5(-_0x5d7817._0x1f8366,0x57,-_0x5d7817._0x3363ab,-0x9a)]===_0x459096(_0x5d7817._0x1367b0,0x17f,0x1c8,_0x5d7817._0x5473c6)){yield*this[_0x513de5(_0x5d7817._0x2be31a,_0x5d7817._0x5c79f4,-0x46,_0x5d7817._0x2f08b1)](_0x3b27e5,_0x220fb2,_0x269ed2);return;}yield*this[_0x513de5(0x151,0x6b,0x14c,0x1f)](_0x3b27e5,_0x220fb2,_0x269ed2?.['signal']);}async['sendRawRequest'](_0x6c21b){const _0x4097f5={_0x4264c5:0x10f,_0x17df44:0xba,_0x3abfd9:0x139,_0x315228:0x9b,_0x5c3edc:0x118,_0x5b2365:0x58,_0x4cf32b:0xbf,_0x49112a:0x43,_0x2d9fe6:0x73,_0x1a2f76:0x2f,_0x5676c4:0x3d,_0x1d9c3f:0x79,_0x5f21d9:0x62,_0x575635:0xdd,_0x54185c:0x14,_0x409d27:0x7f,_0x12419a:0x22,_0x1891fc:0x125,_0x49a8b1:0xb1,_0x294aee:0x9,_0x3b2e43:0x19,_0x3ab6ba:0x9a,_0x18b1bd:0x18,_0x3e1a59:0x187,_0x298846:0xc7,_0x333b7d:0xa7,_0x2c5984:0x4,_0x32a4e9:0x9f,_0x45fbfa:0x17,_0x415ded:0x1c4,_0x1f9f6c:0x117,_0x2097ec:0x123,_0x3e6bfc:0x101,_0x58945a:0x67,_0x2a99dc:0x1dc,_0x4e3763:0xcb,_0x1361b6:0x105,_0x3d6a10:0x2a,_0x7b3043:0x10b,_0x2da2b5:0x110},_0x36d57e={_0x43314b:0x2d2},_0xd1539=async()=>{const _0x2bdb9f={_0x8820d5:0x1d2},_0xd8fa7=this['sessionManager']?await this[_0x35a210(-0x1d1,-0x133,-0x8f,-_0x4097f5._0x4264c5)][_0x3d0f6a(-_0x4097f5._0x17df44,-_0x4097f5._0x3abfd9,-0x61,-_0x4097f5._0x315228)](_0x6c21b[_0x3d0f6a(-_0x4097f5._0x5c3edc,-0xbf,-_0x4097f5._0x5b2365,-_0x4097f5._0x4cf32b)]):void 0x0,_0x46db9d=this['providerAdapter'][_0x35a210(-0x86,-_0x4097f5._0x49112a,-0x90,_0x4097f5._0x2d9fe6)](this[_0x35a210(-_0x4097f5._0x1a2f76,-_0x4097f5._0x5676c4,0x6a,_0x4097f5._0x1d9c3f)],_0xd8fa7);function _0x3d0f6a(_0xdc4c4f,_0x4371f5,_0x48a08b,_0xb2f41d){return _0x1b09(_0x48a08b- -_0x2bdb9f._0x8820d5,_0xdc4c4f);}if(!_0x46db9d)throw this[_0x3d0f6a(-0x13d,-_0x4097f5._0x5c3edc,-_0x4097f5._0x5f21d9,-_0x4097f5._0x575635)]();function _0x35a210(_0xf0e098,_0x37fcb5,_0x47f0bd,_0x48f5d1){return _0x1b09(_0x37fcb5- -_0x36d57e._0x43314b,_0x47f0bd);}const _0x23122f=await this[_0x35a210(-0x21,_0x4097f5._0x54185c,-_0x4097f5._0x409d27,0xdc)]({'body':_0x6c21b[_0x3d0f6a(0x139,0x140,0x12a,0x79)],'credential':_0x46db9d,'session':_0xd8fa7,'stream':![]},{'accept':_0x6c21b[_0x35a210(-_0x4097f5._0x12419a,-0xf2,-0x136,-_0x4097f5._0x1891fc)]??_0x35a210(-0x12f,-_0x4097f5._0x49a8b1,-_0x4097f5._0x294aee,-0x46),'includeContentType':_0x6c21b[_0x35a210(-0xc4,-_0x4097f5._0x3b2e43,-0xb8,_0x4097f5._0x3ab6ba)]==='POST'});return this[_0x3d0f6a(-_0x4097f5._0x18b1bd,_0x4097f5._0x3e1a59,_0x4097f5._0x298846,_0x4097f5._0x333b7d)](''+this[_0x3d0f6a(_0x4097f5._0x2c5984,-_0x4097f5._0x32a4e9,0xb,-_0x4097f5._0x45fbfa)][_0x3d0f6a(_0x4097f5._0x415ded,_0x4097f5._0x1f9f6c,_0x4097f5._0x2097ec,0x14b)](this[_0x3d0f6a(0x7a,_0x4097f5._0x3e6bfc,0x92,_0x4097f5._0x58945a)],_0xd8fa7)+_0x6c21b[_0x3d0f6a(0x161,0x140,0x14f,0x185)],{'method':_0x6c21b['method'],'headers':_0x23122f,..._0x6c21b[_0x3d0f6a(_0x4097f5._0x2a99dc,0x63,0x12a,0xe0)]!==void 0x0?{'body':JSON[_0x3d0f6a(_0x4097f5._0x4e3763,0x15b,0x151,_0x4097f5._0x1361b6)](_0x6c21b[_0x35a210(-0x2c,_0x4097f5._0x3d6a10,_0x4097f5._0x7b3043,_0x4097f5._0x2da2b5)])}:{},'signal':_0x6c21b['signal']});};return await this['sendWithRetries'](_0xd1539,_0x6c21b);}[_0x263708(0x1ae,0x257,0xdd,0x113)](_0x52a9fb,_0x9c5f08){const _0x9df33a={_0x165bb:0x4be,_0x512a79:0x449,_0x513d69:0x2b1,_0x5e3dcc:0x2e0,_0x5e1f58:0x1a8,_0x3ee0d4:0x291,_0x269022:0x462,_0x100cf3:0x353,_0x47175e:0x3d0,_0x5ce59f:0x12a,_0x1d185a:0x281,_0x27363d:0x177,_0x31d4d2:0x3bb,_0x36f9dc:0x2c6},_0x3d85af={_0x547cc0:0xdc},_0x4b1332=_0x52a9fb?.[_0x4c210f(0x404,_0x9df33a._0x165bb,_0x9df33a._0x512a79,0x3fa)][_0x4c210f(_0x9df33a._0x513d69,0x29e,0x230,_0x9df33a._0x5e3dcc)](_0x4c210f(0x339,0x3ed,0x3b7,0x3d8));function _0x3691d4(_0x2dd306,_0x1c17dd,_0x1b48bb,_0x553cba){return _0x1c2b50(_0x2dd306-0x195,_0x1c17dd-0xa3,_0x1b48bb-0x300,_0x2dd306);}if(_0x4b1332){const _0x5b3075=Number(_0x4b1332);if(Number[_0x4c210f(0x212,_0x9df33a._0x5e1f58,0x1dc,_0x9df33a._0x3ee0d4)](_0x5b3075)&&_0x5b3075>=0x0)return _0x5b3075*0x3e8;const _0xedbfd6=Date[_0x4c210f(0x41b,_0x9df33a._0x269022,_0x9df33a._0x100cf3,_0x9df33a._0x47175e)](_0x4b1332);if(Number[_0x3691d4(0x217,0x1bf,_0x9df33a._0x5ce59f,0x20f)](_0xedbfd6))return Math[_0x3691d4(_0x9df33a._0x1d185a,_0x9df33a._0x27363d,0x1ab,0x132)](0x0,_0xedbfd6-Date[_0x4c210f(0x3ec,_0x9df33a._0x31d4d2,_0x9df33a._0x36f9dc,0x388)]());}const _0x57e3c0=DEFAULT_RETRY_DELAY_MS*0x2**_0x9c5f08;function _0x4c210f(_0x4b45d5,_0xeca86c,_0x226cb0,_0x536e9d){return _0x1c2b50(_0x4b45d5-_0x3d85af._0x547cc0,_0xeca86c-0x14a,_0x536e9d-0x467,_0xeca86c);}if(_0x57e3c0<RETRY_DELAY_STEP_CAP_MS)return _0x57e3c0;return RETRY_DELAY_STEP_CAP_MS*0x2**(_0x9c5f08-0x5);}[_0x1c2b50(-0x3e,0x8f,-0x1b,0x73)](_0x2e9e98){const _0x32cad2={_0x419a47:0x5cc,_0x24960a:0x80,_0x401f93:0x49,_0x39537e:0x119},_0x49033b={_0x614610:0x5d,_0x2b3335:0xbf},_0x5b7deb={_0x4c6044:0x1e0};function _0x837a1d(_0x4e0347,_0x5e9a23,_0x4c82b1,_0xc90526){return _0x1c2b50(_0x4e0347-0x183,_0x5e9a23-_0x5b7deb._0x4c6044,_0xc90526-0x71a,_0x4c82b1);}function _0x561a60(_0x1e7e72,_0x4c0bb0,_0x20c897,_0x35057d){return _0x1c2b50(_0x1e7e72-_0x49033b._0x614610,_0x4c0bb0-0x40,_0x1e7e72-_0x49033b._0x2b3335,_0x20c897);}return RETRYABLE_HTTP_STATUSES[_0x837a1d(0x5d3,0x4ee,_0x32cad2._0x419a47,0x57d)](_0x2e9e98[_0x561a60(_0x32cad2._0x24960a,-_0x32cad2._0x401f93,-0x14,_0x32cad2._0x39537e)]);}[_0x263708(0x1f1,0x1b4,0x2df,0x2af)](_0x450002){return!isAbortError(_0x450002)&&_0x450002 instanceof TypeError;}[_0x263708(0x1fa,0x2b5,0x25f,0x29e)](_0x5c14a3){const _0x476608={_0x5af27e:0x292,_0x359911:0x383},_0x251a5a={_0x1c64aa:0xc9,_0x1f7702:0xf1,_0x28b478:0x83};function _0x1fcdaa(_0x2ff92c,_0x3c39ec,_0x192562,_0x374e84){return _0x263708(_0x192562-_0x251a5a._0x1c64aa,_0x374e84,_0x192562-_0x251a5a._0x1f7702,_0x374e84-_0x251a5a._0x28b478);}return this[_0x1fcdaa(_0x476608._0x5af27e,0x323,0x2ba,_0x476608._0x359911)](_0x5c14a3)||isRetryableProviderStreamEventError(_0x5c14a3);}async[_0x1c2b50(-0x28c,-0x176,-0x1aa,-0x27d)](_0x238f8d,_0x538234){throwIfAborted(_0x538234),await new Promise((_0x42a347,_0x496a4f)=>{let _0x280ce2=![];const _0x525050=addAbortListener(_0x538234,()=>{if(_0x280ce2)return;_0x280ce2=!![],clearTimeout(_0x5484ca),_0x496a4f(toAbortError(_0x538234?.['reason']));}),_0x5484ca=setTimeout(()=>{_0x280ce2=!![],_0x525050(),_0x42a347();},_0x238f8d);}),throwIfAborted(_0x538234);}async['sendWithRetries'](_0x2dd0b9,_0x354eac={}){const _0x18c638={_0x4c3661:0x599,_0x5a7e51:0x66e,_0x985b2f:0x11,_0xd1bb31:0xeb,_0x58ae92:0x4,_0x148b5e:0x429,_0x1a7809:0x403,_0x40022c:0x46a,_0x52a795:0x36d,_0xc5aa6a:0x188,_0x67778f:0x5c,_0xbee91a:0x582,_0x378d6b:0x416,_0x24b4a3:0x468,_0x1bada0:0x416,_0x57b9a9:0x347,_0x95777e:0x531,_0x307210:0x5dd},_0x16e2c3={_0x35daa1:0x1b2,_0x272a3b:0x195},_0x2aab57={_0x39bad0:0x179},{signal:_0xd504c3}=_0x354eac;let _0x4a3bf5=![];function _0x5003a8(_0x50d140,_0x47ad92,_0x3d6dbf,_0x3ea65d){return _0x1c2b50(_0x50d140-0x1d9,_0x47ad92-_0x2aab57._0x39bad0,_0x50d140-0x5bd,_0x47ad92);}function _0x35f280(_0x1f2da3,_0x597f1e,_0x40cf8f,_0xd38856){return _0x1c2b50(_0x1f2da3-0x81,_0x597f1e-_0x16e2c3._0x35daa1,_0x1f2da3-_0x16e2c3._0x272a3b,_0xd38856);}for(let _0xf30fff=0x0;_0xf30fff<MAX_PROVIDER_REQUEST_ATTEMPTS;_0xf30fff+=0x1){throwIfAborted(_0xd504c3);try{const _0x754b26=await _0x2dd0b9();if(_0x754b26[_0x5003a8(0x57e,_0x18c638._0x4c3661,_0x18c638._0x5a7e51,0x648)]===0x191&&this[_0x35f280(0x1,-_0x18c638._0x985b2f,-_0x18c638._0xd1bb31,_0x18c638._0x58ae92)]&&!_0x4a3bf5){_0x4a3bf5=!![],this[_0x5003a8(_0x18c638._0x148b5e,_0x18c638._0x1a7809,_0x18c638._0x40022c,_0x18c638._0x52a795)][_0x35f280(0x114,0xaa,_0x18c638._0xc5aa6a,_0x18c638._0x67778f)]();continue;}if(!this[_0x5003a8(0x5a2,_0x18c638._0xbee91a,0x689,0x509)](_0x754b26)||_0xf30fff===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x754b26;const _0x5ccebd=this[_0x5003a8(_0x18c638._0x378d6b,0x45e,0x505,_0x18c638._0x24b4a3)](_0x754b26,_0xf30fff);await this['waitForRetry'](_0x5ccebd,_0xd504c3);}catch(_0x3e1d8a){if(!this['shouldRetryRequestError'](_0x3e1d8a)||_0xf30fff===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x3e1d8a;const _0xa081b4=this[_0x5003a8(_0x18c638._0x1bada0,_0x18c638._0x57b9a9,0x384,0x3c6)](void 0x0,_0xf30fff);await this['waitForRetry'](_0xa081b4,_0xd504c3);}}throw new Error(_0x5003a8(_0x18c638._0x95777e,0x441,_0x18c638._0x307210,0x50a));}['createMissingCredentialError'](){const _0x46ccd1={_0xd5569:0x2d2,_0x2265dc:0x19d,_0x22048c:0x1ec,_0x2398c3:0x259,_0xee268f:0x157,_0x15626a:0x17f},_0x3329be={_0x3a2098:0xfb},_0x4f1c0e={_0x1de662:0x13,_0xd09e35:0x1e9,_0x4dcac4:0x77};function _0x155cc3(_0x48d94b,_0x438fb1,_0x11a1d4,_0x21805c){return _0x263708(_0x21805c- -_0x4f1c0e._0x1de662,_0x438fb1,_0x11a1d4-_0x4f1c0e._0xd09e35,_0x21805c-_0x4f1c0e._0x4dcac4);}function _0x32a9a8(_0x380547,_0xdd6030,_0x5c218b,_0x319599){return _0x1c2b50(_0x380547-_0x3329be._0x3a2098,_0xdd6030-0x1f1,_0x5c218b-0x407,_0x319599);}return this[_0x155cc3(0x227,_0x46ccd1._0xd5569,_0x46ccd1._0x2265dc,_0x46ccd1._0x22048c)][_0x155cc3(_0x46ccd1._0x2398c3,_0x46ccd1._0xee268f,0x1ac,_0x46ccd1._0x15626a)]();}async[_0x1c2b50(-0x135,0x49,-0x4d,-0x49)](_0x2d5b74,_0x5ac621){const _0x6ff49={_0xa13e97:0x5dd,_0x27cae7:0x572,_0x448520:0x60f},_0x5ee431={_0x18a851:0x15f},_0x1df7ae={_0x72780f:0x1bc};function _0x517cc4(_0x228d82,_0x3432ea,_0x250577,_0x59347a){return _0x1c2b50(_0x228d82-_0x1df7ae._0x72780f,_0x3432ea-0xd3,_0x228d82-0x333,_0x59347a);}function _0x50929a(_0x2a6fcd,_0x49782b,_0x16c55f,_0x107c11){return _0x263708(_0x16c55f-0x373,_0x107c11,_0x16c55f-0x105,_0x107c11-_0x5ee431._0x18a851);}return await this[_0x50929a(0x526,_0x6ff49._0xa13e97,_0x6ff49._0x27cae7,_0x6ff49._0x448520)][_0x50929a(0x76b,0x621,0x67b,0x746)](_0x2d5b74,_0x5ac621);}[_0x1c2b50(-0xd4,-0x161,-0xca,-0xc3)](_0x262f44){const _0x3b1662={_0x4d5887:0x41b,_0x29ea60:0x362,_0x5a636f:0x421,_0x3562fa:0x4a7,_0x1aa339:0x57a},_0x4d4ef4={_0x396abb:0x132,_0x499069:0x87,_0x46f970:0x571};function _0x311ecc(_0x4c5db7,_0x3daf9e,_0x2c22d2,_0x1de0c4){return _0x1c2b50(_0x4c5db7-0x6b,_0x3daf9e-0x11a,_0x1de0c4-0x3ba,_0x2c22d2);}function _0x11b7c7(_0x1f032b,_0x19a9a2,_0xfc46e2,_0x4c44f2){return _0x1c2b50(_0x1f032b-_0x4d4ef4._0x396abb,_0x19a9a2-_0x4d4ef4._0x499069,_0x19a9a2-_0x4d4ef4._0x46f970,_0xfc46e2);}return this[_0x11b7c7(0x4e7,_0x3b1662._0x4d5887,_0x3b1662._0x29ea60,_0x3b1662._0x5a636f)][_0x11b7c7(0x45b,_0x3b1662._0x3562fa,_0x3b1662._0x1aa339,0x492)](_0x262f44);}async[_0x1c2b50(-0xab,-0xf,-0xd5,-0x18a)](_0x4b20c0){const _0x162610={_0x2ad6af:0x484,_0x560426:0x4bd,_0x4c1741:0x46e,_0x3ccd5f:0x316,_0x20d5ad:0x2fc,_0x14fb90:0x285},_0x5f4208={_0x5a2325:0x122,_0xd4684a:0x1e6,_0x2ed2ee:0x3d1};function _0xcb9244(_0xd81891,_0x53f3fa,_0x45e4b8,_0x1c5a80){return _0x1c2b50(_0xd81891-_0x5f4208._0x5a2325,_0x53f3fa-_0x5f4208._0xd4684a,_0x45e4b8-_0x5f4208._0x2ed2ee,_0x53f3fa);}function _0x1663f6(_0x10816f,_0x55bbd2,_0x3701c5,_0x4160a0){return _0x1c2b50(_0x10816f-0x179,_0x55bbd2-0x8f,_0x4160a0-0x5c4,_0x10816f);}return await this[_0x1663f6(_0x162610._0x2ad6af,_0x162610._0x560426,0x501,_0x162610._0x4c1741)][_0xcb9244(_0x162610._0x3ccd5f,0x33e,_0x162610._0x20d5ad,_0x162610._0x14fb90)](_0x4b20c0);}[_0x263708(0x1cd,0x217,0x151,0x274)](_0x4931e6){const _0x1cd329={_0x184d13:0x456,_0x401e31:0x507,_0x58f519:0x192,_0x5d1bde:0x157,_0xc1af66:0x257},_0x3d1eb1={_0x50dba1:0x33b,_0x4b41ed:0xa4,_0xbd53d3:0x137},_0x59e7fe={_0x3be9e7:0x1e5,_0x3ef65b:0x3b};function _0x5537f9(_0x488b25,_0x5c5e6c,_0xc3d98c,_0x5a09ca){return _0x1c2b50(_0x488b25-0x155,_0x5c5e6c-_0x59e7fe._0x3be9e7,_0x488b25-_0x59e7fe._0x3ef65b,_0x5a09ca);}const _0xc42b4d=this['surfaces'][_0x28365e(0x509,_0x1cd329._0x184d13,_0x1cd329._0x401e31,0x48b)](_0x4931e6);if(!_0xc42b4d)throw new Error(_0x5537f9(-_0x1cd329._0x58f519,-_0x1cd329._0x5d1bde,-0x1fe,-_0x1cd329._0xc1af66)+_0x4931e6);function _0x28365e(_0x140786,_0xae08a6,_0x43c0cd,_0x41a47f){return _0x263708(_0x140786-_0x3d1eb1._0x50dba1,_0x43c0cd,_0x43c0cd-_0x3d1eb1._0x4b41ed,_0x41a47f-_0x3d1eb1._0xbd53d3);}return _0xc42b4d;}async['prepareChatRequest'](_0x400524,_0x4b1ee1){const _0x95142c={_0x352d1b:0x1c9,_0x225fda:0x14b,_0xfdbd40:0x163,_0x4c7e54:0x238,_0x3d1302:0x14d,_0x325df0:0x1ff,_0x29af93:0x367,_0x36020e:0x22a,_0x19fe91:0x14d,_0x58fea6:0x90,_0x281d9e:0x236,_0x1dd460:0x21a,_0xeeadf3:0x210,_0x5ed8da:0x19e,_0x6f8f96:0x284},_0x1ef65d={_0x598a7e:0x2a3},_0x42a102=toModelRequest(_0x400524);function _0xce42f4(_0x31a3a3,_0x30e844,_0x3952b3,_0x37b494){return _0x263708(_0x37b494- -0x76,_0x30e844,_0x3952b3-0x10e,_0x37b494-0x150);}const _0x27f929=await prepareProviderRequest(_0x42a102,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x4b1ee1});function _0x520fe7(_0x2de541,_0x5ee038,_0x178857,_0x1fb12c){return _0x1c2b50(_0x2de541-0x1d1,_0x5ee038-0x134,_0x5ee038-_0x1ef65d._0x598a7e,_0x1fb12c);}const _0x399393=toChatRequest(_0x27f929[_0x520fe7(0x19a,_0x95142c._0x352d1b,_0x95142c._0x225fda,_0x95142c._0xfdbd40)]),_0x2fd420=this[_0x520fe7(_0x95142c._0x4c7e54,_0x95142c._0x3d1302,0x231,0x1f2)][_0x520fe7(0x28d,_0x95142c._0x325df0,0x181,0x23a)](this[_0xce42f4(0x2c6,0x1fd,0x20c,0x241)],_0x27f929[_0xce42f4(_0x95142c._0x29af93,_0x95142c._0x36020e,0x336,0x284)]);if(!_0x2fd420)throw this[_0xce42f4(0x2d,0x1a7,0x125,0x11c)]();return{'baseUrl':this[_0x520fe7(0x19b,_0x95142c._0x19fe91,_0x95142c._0x58fea6,0xe4)][_0x520fe7(0x29a,0x265,0x344,0x1d5)](this[_0xce42f4(0x280,_0x95142c._0x281d9e,_0x95142c._0x1dd460,_0x95142c._0xeeadf3)],_0x27f929['session']),'credential':_0x2fd420,'request':_0x399393,'session':_0x27f929[_0xce42f4(0x1b1,_0x95142c._0x5ed8da,0x317,_0x95142c._0x6f8f96)]};}[_0x1c2b50(-0xca,-0xf5,-0x183,-0x18c)](_0x436c1e){const _0x30453b={_0x4a163d:0x35c,_0xc143cf:0x398},_0x134728={_0x3bce67:0x1b8,_0x1ed31f:0x16b,_0x1d8602:0x17f};function _0x5f502a(_0x15e245,_0x210e2d,_0x56e139,_0xd033a0){return _0x263708(_0xd033a0-_0x134728._0x3bce67,_0x56e139,_0x56e139-_0x134728._0x1ed31f,_0xd033a0-_0x134728._0x1d8602);}return{...structuredClone(_0x436c1e),..._0x436c1e['reasoning']===void 0x0&&this[_0x5f502a(0x339,0x3f8,_0x30453b._0x4a163d,_0x30453b._0xc143cf)]!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};}async[_0x1c2b50(-0x1af,-0x160,-0x170,-0x8a)](_0x5e140c,_0x7c259f,_0x7d2ae2,_0x581e8d={},_0x400507=!![]){const _0x583f6c={_0x437d9f:0x207,_0x1b0828:0x22f,_0x57027c:0x2c6},_0x3eb8a5={_0x5a73cd:0x1c6},_0x2405a7={_0x12b0f3:0x2e2,_0x20b920:0x5ad,_0x4d5920:0x631,_0x1c58d7:0x2cc,_0x5199d0:0x3a5,_0x4cd318:0x3a6,_0x5d8372:0x3a8,_0x566be3:0x34b,_0x1d23c7:0x5e5,_0x282f04:0x4ae,_0x5e96ee:0x516,_0x3ac75e:0x51e,_0x4107df:0x606,_0x548f1f:0x54e,_0x303997:0x36f,_0x3c70ba:0x2b1,_0x264740:0x562,_0x34013f:0x6ce,_0x509143:0x680,_0x571d67:0x394,_0x246c5f:0x34e,_0x1067f4:0x1e2,_0x53722b:0x223,_0x2668d2:0x6dc,_0x4971f1:0x632,_0x2f80fe:0x6e8},{signal:_0x3fcad7}=_0x581e8d,_0x4830ed=async()=>{const _0xa2ab13={_0x16bb03:0x73},_0x4f986d=await this['prepareChatRequest'](_0x5e140c,_0x3fcad7);let _0x13dcd9;function _0x2d9479(_0x29eee4,_0x121383,_0x2fe3f1,_0x162339){return _0x1b09(_0x29eee4-_0xa2ab13._0x16bb03,_0x121383);}try{_0x13dcd9=_0x7c259f[_0x2d9479(0x256,0x339,_0x2405a7._0x12b0f3,0x2b0)](_0x4f986d['request']);}catch(_0x33952e){if(_0x33952e instanceof Error)throw new ProviderRequestConstructionError(_0x33952e[_0x23c89d(_0x2405a7._0x20b920,0x572,0x4cf,0x4dd)]);throw _0x33952e;}if(!_0x13dcd9['path'])throw new ProviderRequestConstructionError('Surface\x20'+_0x7c259f['id']+'\x20did\x20not\x20provide\x20an\x20HTTP\x20path');const _0x419bf5=await this[_0x23c89d(0x6b0,_0x2405a7._0x4d5920,0x61c,0x636)]({'request':_0x4f986d[_0x2d9479(_0x2405a7._0x1c58d7,_0x2405a7._0x5199d0,0x227,0x323)],'body':_0x13dcd9['body'],'credential':_0x4f986d[_0x2d9479(0x371,_0x2405a7._0x4cd318,0x2ec,_0x2405a7._0x5d8372)],'session':_0x4f986d[_0x2d9479(_0x2405a7._0x566be3,0x388,0x38f,0x2c3)],'stream':_0x7d2ae2},{'accept':_0x13dcd9[_0x23c89d(_0x2405a7._0x1d23c7,_0x2405a7._0x282f04,_0x2405a7._0x5e96ee,_0x2405a7._0x3ac75e)]??(_0x7d2ae2?_0x23c89d(_0x2405a7._0x4107df,0x5bd,_0x2405a7._0x548f1f,0x5c9):_0x2d9479(0x294,0x21a,0x1da,0x270)),'includeContentType':_0x13dcd9[_0x2d9479(_0x2405a7._0x303997,_0x2405a7._0x3c70ba,0x3ea,0x334)]!==void 0x0});for(const [_0x25218f,_0x1258fd]of Object[_0x23c89d(0x574,0x52a,_0x2405a7._0x264740,0x489)](_0x13dcd9[_0x23c89d(_0x2405a7._0x34013f,_0x2405a7._0x509143,0x5fc,0x5a6)]??{})){_0x419bf5['set'](_0x25218f,_0x1258fd);}function _0x23c89d(_0x17eecf,_0x174401,_0x37c215,_0x38998d){return _0x1b09(_0x37c215-0x336,_0x174401);}return this['fetchImpl'](''+_0x4f986d['baseUrl']+_0x13dcd9[_0x2d9479(_0x2405a7._0x571d67,0x42d,0x301,_0x2405a7._0x246c5f)],{'method':_0x2d9479(0x1d3,0x160,_0x2405a7._0x1067f4,_0x2405a7._0x53722b),'headers':_0x419bf5,..._0x13dcd9['body']!==void 0x0?{'body':JSON['stringify'](_0x13dcd9[_0x23c89d(_0x2405a7._0x2668d2,0x5ff,_0x2405a7._0x4971f1,_0x2405a7._0x2f80fe)])}:{},'signal':_0x3fcad7});};function _0x5db97f(_0x36f72e,_0xee39c0,_0xd47911,_0xbde95a){return _0x1c2b50(_0x36f72e-0xb6,_0xee39c0-_0x3eb8a5._0x5a73cd,_0xd47911-0x246,_0xbde95a);}return _0x400507?await this[_0x5db97f(_0x583f6c._0x437d9f,0x31f,_0x583f6c._0x1b0828,_0x583f6c._0x57027c)](_0x4830ed,_0x581e8d):await _0x4830ed();}async*[_0x1c2b50(-0xaa,-0x12c,-0xbe,-0xd5)](_0x4c3dda,_0x554639,_0x393b7c={}){const _0xb5c825={_0x2d7a63:0x314,_0x4999f9:0x405,_0x4cea98:0x27a,_0x51c37e:0x246,_0x4171d7:0x33d,_0xc97741:0x1d7,_0x39e2b6:0x2d6,_0x27c534:0x319,_0x51ac45:0x3ae,_0x3d5b85:0xf0,_0x1ca237:0x18d,_0x4c0b76:0x4f4,_0x52d2f0:0x431,_0x4964bf:0x477,_0x1a3734:0x47c,_0x58ac1f:0x3ff,_0x491d28:0x42e,_0xedef90:0x4b6,_0x24e6c4:0x3f5,_0xb9957a:0x432,_0x2fe450:0x3e3,_0x563c45:0x18a,_0x93fce2:0x276,_0x277a54:0x35a,_0x51896b:0x2d8,_0x25ce40:0x512,_0x1e36b8:0x4d1,_0x2c050c:0x504,_0x35af48:0x563,_0x2d35ab:0x243,_0x244cdb:0x176,_0x511e2a:0x459,_0x458830:0x1d9,_0x4a51cd:0xea,_0x413b95:0x301,_0x3d60b8:0x3f2,_0x89cf6a:0x212,_0x3fead1:0x1eb,_0x30e451:0x28f,_0x351e1a:0x2e4,_0x67e9d3:0x480,_0x390fdd:0x50e,_0x1e149b:0x11c,_0x2964c5:0x1e8},_0x2c91fa={_0x5df68b:0x165,_0x2971ea:0x334};function _0x10d5ca(_0x435b70,_0x147219,_0x33f1a9,_0x44e8a9){return _0x1c2b50(_0x435b70-_0x2c91fa._0x5df68b,_0x147219-0xe7,_0x33f1a9-_0x2c91fa._0x2971ea,_0x147219);}function _0x4a59b7(_0x3b6f57,_0x279347,_0x17f778,_0x515001){return _0x263708(_0x17f778-0x244,_0x279347,_0x17f778-0x81,_0x515001-0x16d);}const {signal:_0x20240f}=_0x393b7c;let _0x114142=![];for(let _0x5ad98a=0x0;_0x5ad98a<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x5ad98a+=0x1){let _0x26b14b=![];try{const _0x38645b=await this[_0x4a59b7(0x376,0x4d4,0x429,0x441)](_0x4c3dda,_0x554639,!![],_0x393b7c,![]);if(_0x38645b['status']===0x191&&this[_0x4a59b7(_0xb5c825._0x2d7a63,0x449,_0xb5c825._0x4999f9,0x4c3)]&&!_0x114142){_0x114142=!![],this['sessionManager'][_0x10d5ca(_0xb5c825._0x4cea98,0x21a,0x2b3,_0xb5c825._0x51c37e)]();continue;}if(!_0x38645b['ok']){const _0x571abf=await this[_0x10d5ca(0x1cd,_0xb5c825._0x4171d7,0x25f,_0xb5c825._0xc97741)](_0x38645b);if(!this[_0x10d5ca(0x3d6,_0xb5c825._0x39e2b6,_0xb5c825._0x27c534,_0xb5c825._0x51ac45)](_0x38645b)||_0x5ad98a===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x571abf;const _0x5f37c9=this[_0x10d5ca(0xc9,_0xb5c825._0x3d5b85,_0xb5c825._0x1ca237,0x1ef)](_0x38645b,_0x5ad98a),_0x46cbf7={'type':_0x4a59b7(_0xb5c825._0x4c0b76,_0xb5c825._0x52d2f0,_0xb5c825._0x4964bf,0x460),'attempt':_0x5ad98a+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x571abf[_0x4a59b7(_0xb5c825._0x1a3734,0x374,_0xb5c825._0x58ac1f,_0xb5c825._0x491d28)],'delayMs':_0x5f37c9,'reason':_0x4a59b7(0x4b5,_0xb5c825._0xedef90,_0xb5c825._0x24e6c4,_0xb5c825._0xb9957a),'status':_0x38645b[_0x10d5ca(0x3c5,_0xb5c825._0x2fe450,0x2f5,0x24e)]};yield _0x46cbf7,await this[_0x10d5ca(0x1ee,0x200,_0xb5c825._0x563c45,0x18d)](_0x5f37c9,_0x20240f);continue;}const _0x558490=_0x554639['createStreamParser']?.(_0x4c3dda);if(!_0x558490?.[_0x4a59b7(0x574,0x4f8,0x504,0x565)])throw new Error(_0x10d5ca(_0xb5c825._0x93fce2,_0xb5c825._0x277a54,0x2d7,_0xb5c825._0x51896b)+_0x554639['id']+_0x4a59b7(_0xb5c825._0x25ce40,_0xb5c825._0x1e36b8,0x58f,0x60f));for await(const _0x2c147c of iterateSseEvents(_0x38645b,_0x20240f)){const _0x164b44=_0x558490[_0x4a59b7(0x5d0,0x4be,_0xb5c825._0x2c050c,_0xb5c825._0x35af48)](_0x2c147c);for(const _0x156714 of _0x164b44){_0x26b14b=!![],yield _0x156714;}}yield{'type':_0x10d5ca(0x1d5,_0xb5c825._0x2d35ab,_0xb5c825._0x244cdb,0x8d),'response':_0x558490[_0x4a59b7(0x545,0x36a,_0xb5c825._0x511e2a,0x3a5)]()};return;}catch(_0x37776e){if(_0x26b14b||!this[_0x10d5ca(0x109,0x1a6,_0xb5c825._0x458830,_0xb5c825._0x4a51cd)](_0x37776e)||_0x5ad98a===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x37776e;const _0x2d7de8=this[_0x4a59b7(0x31e,_0xb5c825._0x413b95,_0xb5c825._0x3d60b8,0x432)](void 0x0,_0x5ad98a),_0x1ea6e0={'type':_0x10d5ca(0x2e2,0x245,_0xb5c825._0x89cf6a,0x2d8),'attempt':_0x5ad98a+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x37776e instanceof Error?_0x37776e[_0x4a59b7(0x48d,0x365,0x3ff,0x3d7)]:String(_0x37776e),'delayMs':_0x2d7de8,'reason':this[_0x10d5ca(_0xb5c825._0x3fead1,_0xb5c825._0x30e451,0x1d0,0x1ce)](_0x37776e)?_0x10d5ca(0x2c4,0x217,0x2a7,_0xb5c825._0x351e1a):_0x4a59b7(0x563,_0xb5c825._0x67e9d3,_0xb5c825._0x390fdd,0x58b)};yield _0x1ea6e0,await this[_0x10d5ca(0x101,_0xb5c825._0x1e149b,0x18a,_0xb5c825._0x2964c5)](_0x2d7de8,_0x20240f);}}}async*[_0x263708(0x2a1,0x22d,0x329,0x1e9)](_0x218377,_0x58f5d8,_0x175857){const _0x2a6b18={_0x3710d0:0x26d,_0xf1b049:0x26d,_0x341467:0x183,_0x1d5ae8:0x50d,_0x442d07:0xb5,_0x1a67c9:0xf7,_0x52bae3:0x8a,_0x501edb:0x90,_0x876d79:0x38e,_0x24516f:0x399,_0x1dc081:0x40e,_0x58d18b:0x534,_0x2bb28b:0x89,_0x5ede30:0x35,_0x5cdf60:0x45,_0x31f927:0x119,_0x411f63:0x31f,_0xe467d8:0x419,_0x25e0a5:0x1b,_0x37111b:0x78,_0x256417:0x90,_0x133e8b:0x67,_0x3dd18d:0x95,_0xad19c6:0x80,_0xfda689:0x343,_0x56e015:0x35a,_0x4be463:0x41a,_0x4a0e5c:0x3ee,_0x2afb61:0x3d5,_0x398c92:0x43e,_0x3ae065:0x49a,_0x5acc54:0x1fd,_0x57adad:0xd1,_0x10a94b:0x16e,_0x5612cf:0x186,_0x2e4a36:0xb7,_0x40f78d:0xd4,_0x3ccbd3:0x8b,_0x4beb63:0x449,_0x55a73e:0x468,_0x1fab6c:0x383,_0x332a12:0x26f,_0xe8d0e9:0x1ec,_0x974622:0x109,_0x3093f8:0x186,_0x2d8300:0x1a1,_0x359d52:0x1fc,_0x3424bb:0x294,_0x18dda6:0x2ed,_0x1c3883:0x213,_0x205e1b:0x34e,_0x245652:0x4bc,_0x464bb1:0x472,_0x9fca83:0x4a6,_0x536dd2:0x51c,_0x1d8772:0x4ba,_0x4fe5e3:0x4fb,_0x9435bb:0x455,_0x528d40:0x4aa,_0x552012:0x3ba,_0x1cf19a:0x45f,_0x499425:0x2f8,_0x33ec39:0x313,_0x2c5f54:0x368,_0x54cbd3:0x376,_0x3eb173:0x30a,_0x5ac9ef:0xbe,_0x139990:0x3b1,_0x5a3f37:0x2d1,_0x5d7715:0x1cd,_0x33b74a:0xa7,_0xd22ad7:0x128,_0x5de293:0x3c1,_0x10fadf:0x359,_0x220a32:0x35c,_0x158b03:0xe0},_0x17e344={_0xef7c96:0x388,_0x475f20:0x13d};function _0x5e6e52(_0x37091c,_0x1973e6,_0x221a0a,_0x54b7a3){return _0x263708(_0x54b7a3- -_0x17e344._0xef7c96,_0x1973e6,_0x221a0a-_0x17e344._0x475f20,_0x54b7a3-0xf4);}function _0x230b2c(_0x543bfd,_0x2741d6,_0x13af17,_0x5c921b){return _0x263708(_0x2741d6-0x161,_0x13af17,_0x13af17-0x5d,_0x5c921b-0x121);}const _0x12975c=await this['prepareChatRequest'](_0x218377,_0x175857),_0x40f1a1=_0x58f5d8[_0x5e6e52(-_0x2a6b18._0x3710d0,-_0x2a6b18._0xf1b049,-0x174,-_0x2a6b18._0x341467)](_0x12975c['request']),_0x29eaa8=_0x58f5d8['createStreamParser']?.(_0x218377);if(!_0x29eaa8?.[_0x230b2c(0x49e,0x41e,_0x2a6b18._0x1d5ae8,0x440)])throw new Error(_0x5e6e52(-_0x2a6b18._0x442d07,-_0x2a6b18._0x1a67c9,-_0x2a6b18._0x52bae3,-_0x2a6b18._0x501edb)+_0x58f5d8['id']+_0x230b2c(_0x2a6b18._0x876d79,0x3a8,_0x2a6b18._0x24516f,_0x2a6b18._0x1dc081));const _0x5c0544=_0x40f1a1[_0x230b2c(_0x2a6b18._0x58d18b,0x4ad,0x3f1,0x3d2)]??(_0x40f1a1['path']?(''+_0x12975c['baseUrl']+_0x40f1a1[_0x5e6e52(-0x9e,_0x2a6b18._0x2bb28b,_0x2a6b18._0x5ede30,-_0x2a6b18._0x5cdf60)])['replace'](/^http:/,_0x5e6e52(-0xf9,-0x92,-_0x2a6b18._0x31f927,-0x10a))[_0x230b2c(_0x2a6b18._0x411f63,0x381,0x2c4,_0x2a6b18._0xe467d8)](/^https:/,'wss:'):void 0x0);if(!_0x5c0544)throw new ProviderRequestConstructionError(_0x5e6e52(-_0x2a6b18._0x25e0a5,-_0x2a6b18._0x37111b,-0x5c,-_0x2a6b18._0x256417)+_0x58f5d8['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x2c38fb=await this[_0x5e6e52(-_0x2a6b18._0x133e8b,-0xf6,-_0x2a6b18._0x3dd18d,-_0x2a6b18._0xad19c6)]({'request':_0x12975c[_0x230b2c(_0x2a6b18._0xfda689,0x3dc,0x35d,_0x2a6b18._0x56e015)],'body':_0x40f1a1[_0x230b2c(0x478,_0x2a6b18._0x4be463,_0x2a6b18._0x4a0e5c,0x419)],'credential':_0x12975c['credential'],'session':_0x12975c[_0x230b2c(_0x2a6b18._0x2afb61,0x45b,_0x2a6b18._0x398c92,_0x2a6b18._0x3ae065)],'stream':!![]},{'accept':_0x40f1a1[_0x5e6e52(-_0x2a6b18._0x5acc54,-_0x2a6b18._0x57adad,-_0x2a6b18._0x10a94b,-_0x2a6b18._0x5612cf)]??'application/json','includeContentType':![]});for(const [_0x184adb,_0x86b202]of Object[_0x5e6e52(-_0x2a6b18._0x2e4a36,-_0x2a6b18._0x40f78d,-_0x2a6b18._0x3ccbd3,-0x13a)](_0x40f1a1[_0x230b2c(0x43a,_0x2a6b18._0x4beb63,_0x2a6b18._0x55a73e,_0x2a6b18._0x1fab6c)]??{})){_0x2c38fb[_0x5e6e52(-0x110,-_0x2a6b18._0x332a12,-0xe9,-0x1d2)](_0x184adb,_0x86b202);}_0x2c38fb[_0x5e6e52(-0x114,-0x22b,-_0x2a6b18._0xe8d0e9,-0x18a)](_0x5e6e52(-_0x2a6b18._0x974622,-0x21a,-0x165,-_0x2a6b18._0x3093f8));const _0x32113a=this[_0x5e6e52(-0xb5,-0x3f,-0x3c,-0x8f)]({'headers':Object['fromEntries'](_0x2c38fb[_0x5e6e52(-0x190,-_0x2a6b18._0x2d8300,-_0x2a6b18._0x359d52,-0x13a)]()),'url':_0x5c0544});try{throwIfAborted(_0x175857);_0x32113a['readyState']!==WebSocket[_0x230b2c(_0x2a6b18._0x3424bb,_0x2a6b18._0x18dda6,_0x2a6b18._0x1c3883,0x271)]&&await waitForWebSocketOpen(_0x32113a,_0x175857);throwIfAborted(_0x175857);_0x40f1a1[_0x230b2c(_0x2a6b18._0x205e1b,0x41a,0x42b,_0x2a6b18._0x245652)]!==void 0x0&&_0x32113a['send'](JSON[_0x230b2c(_0x2a6b18._0x464bb1,_0x2a6b18._0x9fca83,_0x2a6b18._0x536dd2,_0x2a6b18._0x1d8772)](_0x40f1a1[_0x230b2c(_0x2a6b18._0x4fe5e3,_0x2a6b18._0x4be463,0x497,_0x2a6b18._0x9435bb)]));for await(const _0x2053a8 of iterateWebSocketMessages(_0x32113a,_0x175857)){yield*_0x29eaa8[_0x230b2c(_0x2a6b18._0x528d40,0x41e,_0x2a6b18._0x552012,_0x2a6b18._0x1cf19a)](_0x2053a8);if(_0x29eaa8['isDone']?.())break;}yield{'type':_0x230b2c(0x237,_0x2a6b18._0x499425,_0x2a6b18._0x33ec39,0x364),'response':_0x29eaa8[_0x230b2c(_0x2a6b18._0x2c5f54,_0x2a6b18._0x54cbd3,0x2bf,_0x2a6b18._0x3eb173)]()};}finally{_0x32113a[_0x5e6e52(-0x1a,-_0x2a6b18._0x5ac9ef,-0x6,-0x44)]===WebSocket[_0x5e6e52(-0x13f,-0x147,-0x21c,-_0x2a6b18._0x359d52)]&&_0x32113a[_0x230b2c(0x49a,_0x2a6b18._0x139990,_0x2a6b18._0x5a3f37,0x486)](0x3e8,_0x175857?.[_0x5e6e52(-0x1f6,-_0x2a6b18._0x5d7715,-_0x2a6b18._0x33b74a,-_0x2a6b18._0xd22ad7)]?_0x230b2c(0x386,_0x2a6b18._0x5de293,_0x2a6b18._0x10fadf,_0x2a6b18._0x220a32):_0x5e6e52(-0x1b,-0x18a,-0x89,-_0x2a6b18._0x158b03));}}};async function createHttpError(_0x48f361){const _0x15c041={_0x2dd2c2:0x244,_0x1dfef6:0x28c,_0x1a9e57:0x293,_0x139b15:0x37a},_0x4820b8={_0x50df51:0x29,_0xe5f8f4:0x97,_0xc49650:0xf5},_0xc5ac13={_0x462662:0xb4};function _0x571d96(_0x18b78b,_0x5a0ee3,_0x38a1a2,_0x1becb0){return _0x263708(_0x1becb0- -0x3e1,_0x5a0ee3,_0x38a1a2-0x10f,_0x1becb0-_0xc5ac13._0x462662);}function _0x33e915(_0x14e675,_0x47f409,_0x489ab8,_0x3e029d){return _0x263708(_0x489ab8-_0x4820b8._0x50df51,_0x3e029d,_0x489ab8-_0x4820b8._0xe5f8f4,_0x3e029d-_0x4820b8._0xc49650);}const _0x4cd097=await _0x48f361['text'](),_0x387ff8=_0x4cd097[_0x571d96(-0x1bf,-0x251,-0x22b,-_0x15c041._0x2dd2c2)]()||_0x48f361[_0x33e915(_0x15c041._0x1dfef6,0x2ee,_0x15c041._0x1a9e57,0x1e3)]||'Unknown\x20provider\x20error';return new Error(_0x33e915(_0x15c041._0x139b15,0x270,0x29b,0x2b1)+_0x48f361['status']+':\x20'+_0x387ff8);}var AnthropicProviderAdapter=class{['authScheme'];[_0x1c2b50(-0x9d,-0x1f8,-0x15a,-0x242)];[_0x1c2b50(-0x1c7,-0xaf,-0x136,-0x177)];constructor(_0x168888){const _0x5cc53c={_0x1a6f82:0x2e9,_0x105992:0x49a,_0x467004:0x526,_0x20d81c:0x576,_0x1ea620:0x3c2,_0x590328:0x411,_0x37fc00:0x533,_0x592401:0x36a},_0x382015={_0xcb6b16:0x92};this[_0x2c2a3f(0x358,_0x5cc53c._0x1a6f82,0x20b,0x3b0)]=_0x168888[_0x192898(_0x5cc53c._0x105992,_0x5cc53c._0x467004,0x3c9,_0x5cc53c._0x20d81c)];function _0x192898(_0x2c2247,_0x147c4c,_0xa95707,_0x55a8c4){return _0x1c2b50(_0x2c2247-0x81,_0x147c4c-_0x382015._0xcb6b16,_0x2c2247-0x5ca,_0x55a8c4);}this['headerResolver']=_0x168888[_0x192898(0x470,0x4c2,_0x5cc53c._0x1ea620,0x476)];function _0x2c2a3f(_0x1dfb7a,_0x4a9ac2,_0xa937b6,_0x4407c4){return _0x1c2b50(_0x1dfb7a-0x1ce,_0x4a9ac2-0x19d,_0x4a9ac2-0x419,_0xa937b6);}this[_0x192898(0x494,_0x5cc53c._0x590328,_0x5cc53c._0x37fc00,0x449)]=_0x168888[_0x2c2a3f(0x343,0x2e3,_0x5cc53c._0x592401,0x2f4)];}['createMissingCredentialError'](){const _0x3760db={_0x3d37a8:0x6cd,_0x187a3f:0x6d6,_0x318705:0x5f5},_0xd3b0c4={_0xb164ed:0x30b};function _0x556cf9(_0x5103ec,_0x62927,_0x3c3527,_0x5b880c){return _0x263708(_0x5103ec-_0xd3b0c4._0xb164ed,_0x62927,_0x3c3527-0x10a,_0x5b880c-0x14f);}return new Error(_0x556cf9(0x61b,_0x3760db._0x3d37a8,_0x3760db._0x187a3f,_0x3760db._0x318705));}async[_0x263708(0x308,0x3a1,0x23d,0x30f)](_0x1d42e9,_0x582008){const _0x1c7e2c={_0x546297:0x3b1,_0x24d540:0x318,_0x9c3e5b:0x321,_0x53e4e6:0x19e,_0x3fb1a3:0x227,_0x253ade:0x1b1,_0x2f5fdd:0xb7,_0x4a924b:0x24c,_0x175a86:0x1dd,_0x31b17a:0x1ea,_0x2aa1b7:0x360,_0x22bfdb:0x29b,_0x4035c6:0x2ef,_0x264a5e:0x125,_0x51502a:0x3cb,_0x216269:0x3d9,_0x5b1c57:0x3c9,_0x2c7866:0x3b6,_0x5e49dd:0x3ae,_0x2ca6e1:0x45b,_0x27f255:0x383,_0x4ebc55:0x1c0,_0x50cd81:0x1d8,_0xf0ef81:0x429,_0x376631:0x40b,_0x504e58:0x1b6,_0x5b267e:0x3e2,_0x4f327a:0x4cd,_0x161bed:0xbb,_0x25cc91:0x16e,_0x4cace4:0x1f,_0x31820f:0x297,_0x208327:0x4c5,_0x468019:0x578,_0xf12265:0x48b,_0x165211:0x34f,_0x180ff6:0x2b4,_0xc1c9d0:0x35e,_0x13f1d5:0x366,_0x3b69d0:0xf7,_0x4d6932:0x515,_0x28482c:0x1b7,_0x273110:0x506,_0x5b1137:0x386,_0x78220d:0x3b9,_0x5cbcb8:0x2d0,_0x31ec0f:0x1e4,_0x1f4f4a:0x16e},_0x1d61a0={_0x111bc7:0x5b,_0x2a03c3:0x175,_0x2faf14:0x4c0},_0x4b6562={_0x4b8044:0x4b},_0x569e7d=new Headers();_0x569e7d[_0x545c26(_0x1c7e2c._0x546297,0x355,_0x1c7e2c._0x24d540,_0x1c7e2c._0x9c3e5b)](_0x317d02(-_0x1c7e2c._0x53e4e6,-_0x1c7e2c._0x3fb1a3,-_0x1c7e2c._0x253ade,-_0x1c7e2c._0x2f5fdd),_0x582008[_0x317d02(-0x19e,-0xb5,-_0x1c7e2c._0x4a924b,-_0x1c7e2c._0x175a86)]);function _0x317d02(_0x457afc,_0x4385df,_0x45bbc9,_0x37f7a2){return _0x1c2b50(_0x457afc-0x18,_0x4385df-0xd5,_0x457afc- -_0x4b6562._0x4b8044,_0x4385df);}_0x569e7d[_0x317d02(-_0x1c7e2c._0x31b17a,-0x265,-0x17f,-0x1a4)](_0x545c26(0x2b1,0x3d1,0x42a,_0x1c7e2c._0x2aa1b7),this[_0x545c26(0x2af,_0x1c7e2c._0x22bfdb,0x2dd,0x38a)]);function _0x545c26(_0x7b7e3f,_0x4712ff,_0x527606,_0x3b58ae){return _0x1c2b50(_0x7b7e3f-_0x1d61a0._0x111bc7,_0x4712ff-_0x1d61a0._0x2a03c3,_0x3b58ae-_0x1d61a0._0x2faf14,_0x4712ff);}_0x582008[_0x545c26(0x349,0x368,0x249,_0x1c7e2c._0x4035c6)]!==![]&&_0x569e7d[_0x317d02(-0x1ea,-0x203,-_0x1c7e2c._0x264a5e,-0x120)](_0x545c26(0x3c7,0x36c,_0x1c7e2c._0x51502a,_0x1c7e2c._0x216269),_0x545c26(_0x1c7e2c._0x5b1c57,0x31b,_0x1c7e2c._0x2c7866,_0x1c7e2c._0x5e49dd));this['authScheme']===_0x545c26(_0x1c7e2c._0x2ca6e1,0x386,0x2fa,_0x1c7e2c._0x27f255)?_0x569e7d[_0x317d02(-_0x1c7e2c._0x31b17a,-_0x1c7e2c._0x4ebc55,-_0x1c7e2c._0x50cd81,-0x1f3)](_0x545c26(_0x1c7e2c._0xf0ef81,_0x1c7e2c._0x376631,0x397,0x37c),_0x317d02(-_0x1c7e2c._0x504e58,-0x145,-0xf8,-0x22a)+_0x1d42e9[_0x545c26(0x55f,_0x1c7e2c._0x5b267e,_0x1c7e2c._0x4f327a,0x48b)][_0x317d02(-_0x1c7e2c._0x161bed,-_0x1c7e2c._0x25cc91,-0xc9,-_0x1c7e2c._0x4cace4)]):_0x569e7d[_0x317d02(-_0x1c7e2c._0x31b17a,-0x2c5,-0x173,-_0x1c7e2c._0x31820f)]('x-api-key',_0x1d42e9[_0x545c26(_0x1c7e2c._0x208327,0x448,_0x1c7e2c._0x468019,_0x1c7e2c._0xf12265)]['value']);const _0x3e7da5=await this[_0x545c26(_0x1c7e2c._0x165211,_0x1c7e2c._0x180ff6,_0x1c7e2c._0xc1c9d0,_0x1c7e2c._0x13f1d5)]?.({'body':_0x1d42e9[_0x317d02(-0x82,-0x67,0x38,-_0x1c7e2c._0x3b69d0)],'credential':_0x1d42e9[_0x545c26(0x4d3,_0x1c7e2c._0x4d6932,0x42c,0x48b)],'request':_0x1d42e9[_0x317d02(-_0x1c7e2c._0x264a5e,-0x144,-0x165,-_0x1c7e2c._0x28482c)],'session':_0x1d42e9[_0x545c26(_0x1c7e2c._0x273110,0x3d8,0x521,0x465)],'stream':_0x1d42e9[_0x545c26(0x3fb,_0x1c7e2c._0x5b1137,0x365,0x3e4)]});for(const [_0x24303d,_0x404d4c]of Object[_0x545c26(0x4a7,0x45c,0x395,_0x1c7e2c._0x78220d)](_0x3e7da5??{})){_0x569e7d[_0x317d02(-0x1ea,-_0x1c7e2c._0x5cbcb8,-_0x1c7e2c._0x31ec0f,-_0x1c7e2c._0x1f4f4a)](_0x24303d,_0x404d4c);}return _0x569e7d;}['mapApiError'](_0x178d54){return _0x178d54;}['resolveBaseUrl'](_0x257081,_0x1d43e8){return resolveSessionBaseUrl(_0x257081,_0x1d43e8);}[_0x263708(0x2b1,0x269,0x1f1,0x2ee)](_0x4868d6,_0x2f9a3e){return resolveApiCredential(_0x4868d6,_0x2f9a3e);}async[_0x1c2b50(-0x9e,-0x1be,-0xd5,-0x97)](_0x37a01e){return await createHttpError(_0x37a01e);}},AnthropicModel=class extends RoutedModel{constructor(_0x1da1a7={}){const _0x218bc6={_0x2347bf:0x585,_0x561933:0x6b0,_0x3e59b0:0x597,_0x29e1a1:0x613,_0x215cfd:0x16d,_0x2c0f9d:0x1f0,_0x4b44bb:0xf2,_0x395904:0x758,_0x820b13:0x5ad,_0x558312:0x583,_0x53b47f:0x572,_0x3b82ef:0x599,_0x2e791a:0x614,_0x1be1d9:0x6ad,_0x32f3a8:0x563,_0xdf1952:0x58d,_0x1de188:0xa1,_0x473797:0x29,_0x8171a6:0xc2,_0x12f9e0:0x162,_0x1275a9:0x57f,_0x5d1e0e:0x5d5,_0x37c7e5:0x144,_0x26dbf7:0x1b1,_0x278751:0x1cf},_0xf11cf2={_0x4850b6:0x1ca},_0x257855={_0x3a724e:0x81,_0x513b25:0x1d7};function _0x1a0e56(_0x4f47c6,_0x5dc7ed,_0x2bb1d6,_0x53114e){return _0x1c2b50(_0x4f47c6-0x3d,_0x5dc7ed-_0x257855._0x3a724e,_0x4f47c6-_0x257855._0x513b25,_0x2bb1d6);}function _0x5be38a(_0x2b49c9,_0x56abaa,_0xee5cc9,_0x14f08f){return _0x1c2b50(_0x2b49c9-_0xf11cf2._0x4850b6,_0x56abaa-0x15a,_0x56abaa-0x6e7,_0x14f08f);}super({'apiKey':_0x1da1a7[_0x5be38a(_0x218bc6._0x2347bf,0x649,_0x218bc6._0x561933,0x5c3)],'baseUrl':trimTrailingSlashes(_0x1da1a7['baseUrl']??'https://api.anthropic.com'),'fetch':_0x1da1a7[_0x5be38a(_0x218bc6._0x3e59b0,0x56a,_0x218bc6._0x29e1a1,0x646)],..._0x1da1a7[_0x1a0e56(_0x218bc6._0x215cfd,_0x218bc6._0x2c0f9d,_0x218bc6._0x4b44bb,0x1f5)]!==void 0x0?{'maxTokens':_0x1da1a7[_0x5be38a(0x659,0x67d,0x596,_0x218bc6._0x395904)]}:{},'model':_0x1da1a7['model']??_0x5be38a(0x636,_0x218bc6._0x820b13,_0x218bc6._0x558312,0x581),'reasoning':_0x1da1a7[_0x5be38a(0x56f,_0x218bc6._0x53b47f,0x53d,_0x218bc6._0x3b82ef)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x1da1a7['authScheme']??_0x5be38a(_0x218bc6._0x2e791a,_0x218bc6._0x1be1d9,0x6fb,0x66b),'headerResolver':_0x1da1a7[_0x5be38a(_0x218bc6._0x32f3a8,_0x218bc6._0xdf1952,0x4a7,0x4c6)],'protocolVersion':_0x1da1a7[_0x1a0e56(_0x218bc6._0x1de188,-_0x218bc6._0x473797,_0x218bc6._0x8171a6,_0x218bc6._0x12f9e0)]??'2023-06-01'}),'providerSessionResolver':_0x1da1a7[_0x5be38a(_0x218bc6._0x1275a9,0x626,0x672,_0x218bc6._0x5d1e0e)],'requestMutators':_0x1da1a7[_0x1a0e56(_0x218bc6._0x37c7e5,_0x218bc6._0x26dbf7,0x175,_0x218bc6._0x278751)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x263708(0x2dc,0x349,0x39d,0x2d3)](_0x46869d,_0xb8b7ff){return this['completeViaSurface'](_0x46869d,ANTHROPIC_MESSAGES_SURFACE,_0xb8b7ff);}[_0x263708(0x279,0x2f9,0x33f,0x2c0)](_0x217cdd,_0x5a3672){return this['streamViaSurface'](_0x217cdd,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x5a3672);}},model_registry_default={'defaultModel':'gpt-4o','cliDefaultModel':_0x1c2b50(-0x131,-0xcb,-0x161,-0x9a),'providers':{'anthropic':{'label':_0x263708(0x314,0x379,0x350,0x3dd),'baseUrl':'https://api.anthropic.com','surface':'anthropic-messages','authScheme':_0x263708(0x31b,0x26b,0x3c5,0x3c0),'defaultModel':_0x263708(0x21b,0x1a4,0x2a9,0x1b6),'defaultModels':[_0x1c2b50(-0x220,-0x167,-0x13a,-0xe8),_0x1c2b50(-0x158,-0xfa,-0x1ab,-0xed)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':_0x263708(0x352,0x286,0x357,0x342),'baseUrl':_0x263708(0x2ff,0x3c5,0x334,0x2e0),'anthropicBaseUrl':_0x263708(0x21d,0x1a0,0x162,0x214),'surface':'anthropic-messages','authScheme':'bearer','defaultModel':_0x1c2b50(-0x12b,-0x134,-0x161,-0x13d),'defaultModels':[_0x1c2b50(-0x217,-0x167,-0x139,-0x7e),_0x1c2b50(-0x163,-0x21c,-0x19c,-0x22a),_0x263708(0x1f4,0x29c,0x17e,0x27e),_0x1c2b50(-0xed,-0x248,-0x1ca,-0x1db),'glm-4.5'],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x20000},'glm-4.7':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.6':{'contextWindow':0x30d40,'maxOutput':0x1f400},'glm-4.5':{'contextWindow':0x30d40,'maxOutput':0x1f400}}},'openrouter':{'label':_0x263708(0x2e0,0x36c,0x261,0x27b),'baseUrl':_0x263708(0x1e1,0x220,0x1db,0x27d),'surface':'openai-chat-completions','authScheme':'bearer','defaultModel':'openai/gpt-4o','defaultModels':[_0x1c2b50(-0x76,-0x79,-0x124,-0xae),_0x1c2b50(0x43,0x18,-0x50,0x21)],'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':_0x1c2b50(-0x14f,-0x61,-0xce,-0x19e),'defaultModel':_0x263708(0x25c,0x182,0x248,0x345),'defaultModels':['claude-sonnet-4.5',_0x263708(0x1e7,0x1f3,0x15a,0x24c),_0x1c2b50(0x7f,0x68,-0x4a,-0xe4),_0x1c2b50(-0x70,-0x186,-0x11d,-0x30),_0x1c2b50(-0x197,-0xc3,-0xf1,-0x9e),_0x263708(0x259,0x1ab,0x21b,0x1ae)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x263708(0x1d3,0x284,0x119,0x24a)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x263708(0x1d3,0x1d6,0x16b,0x228)},'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}}},'grok':{'label':_0x1c2b50(-0x2f,-0xf7,-0x4c,-0x43),'baseUrl':_0x263708(0x27f,0x1cf,0x2bb,0x24d),'surface':_0x1c2b50(-0x11c,-0x2,-0xce,-0x31),'authScheme':_0x263708(0x218,0x1be,0x213,0x128),'defaultModel':_0x1c2b50(0x7,-0xda,-0x84,-0x77),'defaultModels':['grok-4.3','grok-build-0.1'],'supportsModelFetch':!![],'models':{'grok-4.3':{'contextWindow':0x20000,'maxOutput':0x4000},'grok-build-0.1':{'contextWindow':0x20000,'maxOutput':0x4000}}},'openai':{'label':_0x263708(0x285,0x226,0x197,0x204),'baseUrl':_0x1c2b50(0x12,0x2,-0x34,0x58),'surface':_0x1c2b50(-0x48,-0x153,-0x12b,-0x93),'authScheme':'bearer','defaultModel':_0x263708(0x2de,0x39a,0x390,0x3ab),'defaultModels':[],'supportsModelFetch':![],'models':{}},'openai-codex':{'label':_0x263708(0x210,0x2fb,0x2d8,0x1bc),'baseUrl':_0x1c2b50(-0x12d,-0x1e3,-0x1d0,-0x2b0),'surface':'openai-responses','authScheme':_0x1c2b50(-0x16b,-0x192,-0x13d,-0xae),'defaultModel':_0x263708(0x359,0x3c7,0x347,0x3fb),'defaultModels':['gpt-5.4'],'supportsModelFetch':!![],'models':{'gpt-5.4':{'contextWindow':0x42680,'maxOutput':0x1f400}}},'deepseek':{'label':_0x1c2b50(-0x38,-0x25,-0xf4,-0x148),'baseUrl':'https://api.deepseek.com/anthropic','surface':'anthropic-messages','authScheme':_0x263708(0x218,0x278,0x1a7,0x2b0),'defaultModel':_0x1c2b50(-0x124,-0x188,-0xc2,-0x13b),'defaultModels':[_0x1c2b50(-0xc1,-0x1e,-0xc2,-0x14a),_0x263708(0x206,0x14c,0x251,0x244)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0x1c2b50(-0x1b5,-0x94,-0x178,-0x144),'baseUrl':'https://api.minimax.io/anthropic','surface':_0x263708(0x1d3,0x202,0x20a,0x269),'authScheme':_0x1c2b50(-0x66,-0x107,-0x13d,-0x56),'defaultModel':_0x263708(0x222,0x2d2,0x20c,0x294),'defaultModels':[_0x263708(0x222,0x1d0,0x2ac,0x27d)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0x1c2b50(0x8,-0x1e,-0x1c,-0x9c),'baseUrl':'https://api.commandcode.ai/provider','modelsBaseUrl':_0x1c2b50(-0x157,-0x161,-0x116,-0xea),'surface':_0x1c2b50(-0x150,-0x1ef,-0x182,-0x1d8),'authScheme':_0x1c2b50(-0xf9,0x67,-0x3a,0x8c),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0x1c2b50(-0xf6,-0x1f5,-0x1da,-0xed),'baseUrl':_0x263708(0x34d,0x319,0x2b2,0x3df),'modelsBaseUrl':_0x1c2b50(-0xcd,-0x3a,-0xf6,-0x1de),'surface':_0x263708(0x1d3,0x204,0x262,0x2c0),'authScheme':_0x263708(0x31b,0x2f1,0x3d5,0x265),'defaultModel':'mimo-v2.5-pro','defaultModels':[_0x263708(0x180,0x238,0xa8,0x25a)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x54a6e){const _0x708c34={_0x38b3c1:0x119,_0x46fee7:0xcc,_0x2319b1:0x30,_0x13244b:0xb4,_0x4b0295:0x217,_0x480dd1:0x250,_0x3c3854:0x1e2,_0x41f5ab:0xa3,_0x5c5bca:0x104},_0x1125e0={_0x3b4675:0xc},_0x1eaba2={_0x778ce3:0x1b5,_0x4bc29a:0xc0};function _0x8bed2e(_0x3683f0,_0x51cfcf,_0x492636,_0x56b293){return _0x263708(_0x51cfcf- -_0x1eaba2._0x778ce3,_0x3683f0,_0x492636-0x163,_0x56b293-_0x1eaba2._0x4bc29a);}const _0x1973b8=_0x54a6e[_0x8bed2e(_0x708c34._0x38b3c1,_0x708c34._0x46fee7,_0x708c34._0x2319b1,_0x708c34._0x13244b)]();function _0x43d5d5(_0x4e7fe6,_0x588289,_0x3aff96,_0x1908b9){return _0x1c2b50(_0x4e7fe6-_0x1125e0._0x3b4675,_0x588289-0x133,_0x3aff96- -0xa0,_0x1908b9);}return Object[_0x43d5d5(-_0x708c34._0x4b0295,-0x2fa,-_0x708c34._0x480dd1,-_0x708c34._0x3c3854)](data[_0x8bed2e(0x141,_0x708c34._0x41f5ab,0x14b,_0x708c34._0x5c5bca)])['find'](_0x346a3e=>_0x346a3e[_0x8bed2e(0x1a2,0xcc,-0x19,0x6e)]()===_0x1973b8);}function getProviderProfile(_0x22c0c1){const _0xea02b0={_0x433141:0x172,_0x5878ae:0xf8,_0x2f41d3:0x1c1,_0x148eb7:0x78,_0x4b0601:0x41,_0x3139b7:0x179,_0x13a345:0x129,_0x2e1d4f:0x1f3,_0x1c2eb0:0x6d,_0x53812d:0x2e,_0x50a98b:0xa9,_0x4f8386:0xf1,_0x33e399:0x14d,_0x10af79:0xfe,_0x8418f0:0x2bf,_0x54d5a2:0x2e5,_0x23f8bc:0x299,_0x3cd8f7:0x1f5},_0x1e7bdf=findProviderKey(_0x22c0c1);function _0x2f3b93(_0x545767,_0x45ae75,_0x3c2eb4,_0x3b8fc7){return _0x263708(_0x3c2eb4- -0x97,_0x545767,_0x3c2eb4-0x144,_0x3b8fc7-0x46);}function _0x4dbdd2(_0x3f75d3,_0x5e9809,_0x2f2eaf,_0x164e6d){return _0x1c2b50(_0x3f75d3-0x44,_0x5e9809-0x71,_0x164e6d-0x98,_0x3f75d3);}if(!_0x1e7bdf)return void 0x0;const _0x8784d=data[_0x2f3b93(_0xea02b0._0x433141,_0xea02b0._0x5878ae,_0xea02b0._0x2f41d3,0x13e)][_0x1e7bdf],_0x4fa3ce={};for(const [_0x42155b,_0xaf8bfc]of Object['entries'](_0x8784d[_0x4dbdd2(_0xea02b0._0x148eb7,-0x46,0x50,_0xea02b0._0x4b0601)])){_0x4fa3ce[_0x42155b]=_0xaf8bfc;}return{'label':_0x8784d[_0x2f3b93(_0xea02b0._0x3139b7,0x209,_0xea02b0._0x13a345,0x92)],'baseUrl':_0x8784d[_0x2f3b93(_0xea02b0._0x2e1d4f,0x254,0x1ef,0x26d)],'modelsBaseUrl':_0x8784d[_0x4dbdd2(0x96,_0xea02b0._0x1c2eb0,-0xff,-_0xea02b0._0x53812d)],'anthropicBaseUrl':_0x8784d['anthropicBaseUrl'],'surface':_0x8784d[_0x4dbdd2(-0x19a,-_0xea02b0._0x50a98b,-0x106,-_0xea02b0._0x4f8386)],'authScheme':_0x8784d[_0x2f3b93(_0xea02b0._0x33e399,_0xea02b0._0x10af79,0x18e,0x205)],'defaultModel':_0x8784d[_0x2f3b93(0x2b4,0x1e2,_0xea02b0._0x8418f0,0x200)],'defaultModels':_0x8784d[_0x2f3b93(_0xea02b0._0x54d5a2,0x266,_0xea02b0._0x23f8bc,_0xea02b0._0x3cd8f7)]??[],'supportsModelFetch':_0x8784d[_0x4dbdd2(-0x5d,-0x3f,0x85,0x52)]??![],'models':_0x4fa3ce};}function getModelProfile(_0x3bb9dc,_0x5858b3){const _0x1cc4fd={_0x5c2cfd:0x16f,_0x516fc1:0x1d6},_0xf20f7e=findProviderKey(_0x3bb9dc);if(!_0xf20f7e)return void 0x0;function _0x540f10(_0x495ed4,_0x4bff84,_0x22d05e,_0x583fc8){return _0x1c2b50(_0x495ed4-0x192,_0x4bff84-0x4f,_0x4bff84- -0xa8,_0x583fc8);}return data['providers'][_0xf20f7e][_0x540f10(-_0x1cc4fd._0x5c2cfd,-0xff,-0x116,-_0x1cc4fd._0x516fc1)][_0x5858b3];}function resolveModelProfile(_0x35dcd7,_0x2e4e08){const _0x53962c={_0xb97c4b:0x3ae,_0x1b2bc5:0x34f,_0x315d32:0x413,_0x1e5da5:0x781,_0x473cc7:0x6ba,_0x154647:0x5bb,_0x10b0f4:0x595,_0xd82721:0x2e1,_0xd2264d:0x37d,_0x5f3b0f:0x2e5,_0x535d7c:0x2e4,_0x17d601:0x3e0,_0x557fd7:0x3b9,_0x192dfc:0x4e4,_0x27c4eb:0x41c,_0x139b77:0x49b,_0x4c26e8:0x279,_0x4a3cab:0x1e4,_0x41a073:0x2bd,_0x8f7130:0x2c3,_0x16e684:0x1f0,_0x5dfcdc:0x516,_0x206a98:0x764,_0x2e0caa:0x6f0,_0x1ebdab:0x39c,_0x45e825:0x5d2,_0x3617e7:0x4fd},_0x3f774e={_0x3a389d:0x135,_0x1c2744:0x53},_0x48af05={_0x63b5e0:0x181};function _0x631529(_0x502b57,_0x470d35,_0x253a2a,_0x39708c){return _0x263708(_0x470d35-0x3bc,_0x39708c,_0x253a2a-0x6f,_0x39708c-_0x48af05._0x63b5e0);}const _0x15a6bc=findProviderKey(_0x35dcd7);if(!_0x15a6bc)return void 0x0;const _0x456eaa=data[_0x272896(_0x53962c._0xb97c4b,_0x53962c._0x1b2bc5,0x2fa,_0x53962c._0x315d32)][_0x15a6bc];function _0x272896(_0x4d6b9c,_0x6e7728,_0x4541d2,_0x345918){return _0x263708(_0x6e7728-0xf7,_0x4d6b9c,_0x4541d2-_0x3f774e._0x3a389d,_0x345918-_0x3f774e._0x1c2744);}const _0x25c84b=_0x456eaa[_0x631529(_0x53962c._0x1e5da5,_0x53962c._0x473cc7,0x756,0x66a)][_0x2e4e08];return{'label':_0x456eaa[_0x631529(0x56d,0x57c,_0x53962c._0x154647,_0x53962c._0x10b0f4)],'baseUrl':_0x456eaa[_0x272896(_0x53962c._0xd82721,_0x53962c._0xd2264d,_0x53962c._0x5f3b0f,_0x53962c._0x535d7c)],'modelsBaseUrl':_0x456eaa[_0x272896(_0x53962c._0x17d601,0x386,0x424,_0x53962c._0x557fd7)],'anthropicBaseUrl':_0x456eaa[_0x272896(_0x53962c._0x192dfc,_0x53962c._0x27c4eb,_0x53962c._0x139b77,0x3c6)],'surface':_0x25c84b?.[_0x272896(_0x53962c._0x4c26e8,0x2c3,_0x53962c._0x4a3cab,_0x53962c._0x41a073)]??_0x456eaa[_0x272896(0x2a8,_0x53962c._0x8f7130,0x39f,_0x53962c._0x16e684)],'authScheme':_0x456eaa[_0x631529(0x5be,0x5e1,0x676,_0x53962c._0x5dfcdc)],'defaultModel':_0x456eaa[_0x631529(0x7a8,0x712,_0x53962c._0x206a98,0x70b)],'defaultModels':_0x456eaa[_0x631529(_0x53962c._0x2e0caa,0x6ec,0x7d2,0x63c)],'supportsModelFetch':_0x456eaa['supportsModelFetch'],'contextWindow':_0x25c84b?.[_0x272896(0x510,0x44c,_0x53962c._0x1ebdab,0x35d)],'maxOutput':_0x25c84b?.[_0x631529(0x561,_0x53962c._0x45e825,0x612,_0x53962c._0x3617e7)]};}function getDefaultModel(){const _0x2e3b83={_0x1a625d:0x49b},_0x556d0f={_0x1ab827:0x233,_0x519f55:0x46};function _0x22b05e(_0x1adb0d,_0x2e6719,_0x2cceda,_0xd2c891){return _0x263708(_0x2cceda-_0x556d0f._0x1ab827,_0x2e6719,_0x2cceda-_0x556d0f._0x519f55,_0xd2c891-0x13);}return data[_0x22b05e(_0x2e3b83._0x1a625d,0x619,0x589,0x51c)];}function getCliDefaultModel(){const _0x286f99={_0x19875e:0x165};function _0x587800(_0x1fbda4,_0x3e28ca,_0x17ebcf,_0x219378){return _0x263708(_0x219378- -0x390,_0x3e28ca,_0x17ebcf-0x1dc,_0x219378-0x32);}return data[_0x587800(-0x80,-0x226,-0xc3,-_0x286f99._0x19875e)];}function getProviderLabel(_0xca4c33){const _0x2056c5={_0x3fcda0:0x47b,_0x288662:0x42c,_0x3d965a:0x412,_0x2eb6b1:0x4af,_0x1cdaad:0x4fd,_0x2def2e:0x582},_0x172f0f={_0x33797f:0x132,_0x472769:0x7c},_0x51014=findProviderKey(_0xca4c33);function _0x2ab01f(_0x214696,_0x1d1c86,_0x552d54,_0x570f30){return _0x263708(_0x552d54-0x33d,_0x214696,_0x552d54-_0x172f0f._0x33797f,_0x570f30-_0x172f0f._0x472769);}function _0x1d0b82(_0x4b3735,_0x4056f5,_0x2f50d3,_0xe5c68d){return _0x263708(_0x4056f5-0x1d4,_0xe5c68d,_0x2f50d3-0x65,_0xe5c68d-0x5b);}return _0x51014?data[_0x1d0b82(_0x2056c5._0x3fcda0,_0x2056c5._0x288662,0x4cb,_0x2056c5._0x3d965a)][_0x51014][_0x2ab01f(_0x2056c5._0x2eb6b1,0x592,_0x2056c5._0x1cdaad,_0x2056c5._0x2def2e)]:void 0x0;}function getProviderDefaultModel(_0x13f8bc){const _0x4b13c2={_0x5405a1:0x5ae,_0x3e7f30:0x4c4,_0x404cf5:0x6a6,_0x3c56bc:0x5c2,_0x108c77:0x5d8},_0x1cf51e={_0xfc3a5f:0x36},_0x381965={_0x3c275b:0x1ce,_0x5563a6:0xb7},_0x2494f8=findProviderKey(_0x13f8bc);function _0x54cf62(_0x788f85,_0x42f333,_0x827e03,_0x142eac){return _0x1c2b50(_0x788f85-_0x381965._0x3c275b,_0x42f333-0x178,_0x42f333-_0x381965._0x5563a6,_0x788f85);}if(!_0x2494f8)return void 0x0;function _0x3e08e4(_0x16b6a2,_0x1e7d1f,_0x49a72f,_0x3a9685){return _0x1c2b50(_0x16b6a2-_0x1cf51e._0xfc3a5f,_0x1e7d1f-0x13b,_0x3a9685-0x5c1,_0x49a72f);}return data[_0x3e08e4(0x44d,0x401,_0x4b13c2._0x5405a1,_0x4b13c2._0x3e7f30)][_0x2494f8][_0x3e08e4(_0x4b13c2._0x404cf5,_0x4b13c2._0x3c56bc,_0x4b13c2._0x108c77,_0x4b13c2._0x3c56bc)];}function getProviderDefaultModels(_0x137e67){const _0x352128={_0x3bacb2:0x311,_0x557789:0x14f,_0x8f2c88:0x1e9},_0x2af482={_0xef2b83:0x26},_0x2693e7={_0x58bd54:0xf0,_0x304da9:0x20e},_0x2d1e7c=findProviderKey(_0x137e67);function _0x15150f(_0x136c04,_0x4834d3,_0xd6ec84,_0x5bdfa0){return _0x1c2b50(_0x136c04-0x63,_0x4834d3-_0x2693e7._0x58bd54,_0x5bdfa0-_0x2693e7._0x304da9,_0x4834d3);}if(!_0x2d1e7c)return[];function _0x567287(_0x505570,_0x710259,_0x5544ec,_0x7f0c54){return _0x263708(_0x5544ec- -_0x2af482._0xef2b83,_0x505570,_0x5544ec-0x1f1,_0x7f0c54-0x1eb);}return[...data[_0x567287(0x1cf,0x2eb,0x232,_0x352128._0x3bacb2)][_0x2d1e7c][_0x15150f(0x124,_0x352128._0x557789,0x1af,_0x352128._0x8f2c88)]??[]];}function providerSupportsModelFetch(_0x5196b0){const _0x59df65={_0x7e48c:0x576,_0x520a92:0x59f,_0x4a5e15:0x95,_0x385a1b:0xb6},_0x2cd544={_0x3b703f:0x349,_0x1d8cb6:0xd1,_0x2683db:0x1b},_0x1c1338={_0x2a7479:0x35,_0x1d1f8d:0x5bd};function _0x34788c(_0x582112,_0x33571d,_0x2e2d3a,_0xa452f4){return _0x1c2b50(_0x582112-_0x1c1338._0x2a7479,_0x33571d-0xad,_0x582112-_0x1c1338._0x1d1f8d,_0x33571d);}function _0x17392a(_0x143194,_0x5b3149,_0x1a0de8,_0x27e756){return _0x263708(_0x1a0de8- -_0x2cd544._0x3b703f,_0x27e756,_0x1a0de8-_0x2cd544._0x1d8cb6,_0x27e756-_0x2cd544._0x2683db);}const _0x30a549=findProviderKey(_0x5196b0);if(!_0x30a549)return![];return data[_0x34788c(0x4c0,_0x59df65._0x7e48c,_0x59df65._0x520a92,0x3d0)][_0x30a549][_0x17392a(_0x59df65._0x4a5e15,-_0x59df65._0x385a1b,-0x3a,-0x81)]??![];}function getOnboardingProviderKeys(){const _0x33c5e2={_0x1dc5fc:0x193,_0x43aa0c:0x1b0,_0x58d289:0xe0},_0x4e29dd={_0x3336ca:0x1a4};function _0x234736(_0x1fe191,_0x3dd972,_0x393268,_0x2caa5b){return _0x263708(_0x393268- -0x338,_0x3dd972,_0x393268-0xa1,_0x2caa5b-0xba);}function _0x2ca668(_0x4678e0,_0x528994,_0x12b0cf,_0x142a91){return _0x1c2b50(_0x4678e0-_0x4e29dd._0x3336ca,_0x528994-0x1e3,_0x4678e0-0x560,_0x142a91);}return Object[_0x234736(-0x1e3,-0x1d6,-_0x33c5e2._0x1dc5fc,-_0x33c5e2._0x43aa0c)](data[_0x234736(-0x158,-0x10f,-_0x33c5e2._0x58d289,-0xe6)]);}var OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x263708(0x1e2,0x25c,0x1ac,0x299),OPENAI_RESPONSES_SURFACE=_0x263708(0x287,0x235,0x319,0x315),OPENAI_RESPONSES_STREAM_SURFACE=_0x1c2b50(-0x1a5,-0x94,-0xc5,-0xac),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x263708(0x1d9,0xff,0x177,0x2b6),OpenAiApiError=class extends Error{['status'];[_0x263708(0x31e,0x352,0x313,0x2c5)];constructor(_0x2d6f9f,_0x23b769,_0x158e74){const _0x59f4b0={_0x40c525:0xea,_0x40aec8:0xa9,_0x34d26b:0x70,_0x52c741:0xe7,_0x1d80f3:0x18f,_0x3d4e8d:0x566,_0xa20074:0x5ba},_0x31366e={_0x5e7a45:0x3fd};function _0x2de19c(_0x248344,_0x3e9963,_0x53ed63,_0x73c18){return _0x263708(_0x53ed63-0x2c1,_0x248344,_0x53ed63-0x17e,_0x73c18-0x140);}super(_0x158e74),this[_0x1448f0(-0x181,-_0x59f4b0._0x40c525,-_0x59f4b0._0x40aec8,-0x13f)]=_0x1448f0(-_0x59f4b0._0x34d26b,-0xf5,-0x150,-0x9d);function _0x1448f0(_0xdd0b2c,_0x4449b5,_0x2cedc7,_0x185ce1){return _0x263708(_0x2cedc7- -_0x31366e._0x5e7a45,_0xdd0b2c,_0x2cedc7-0xf8,_0x185ce1-0x3e);}this[_0x1448f0(-0x1cc,-0x34,-_0x59f4b0._0x52c741,-_0x59f4b0._0x1d80f3)]=_0x2d6f9f,this[_0x2de19c(_0x59f4b0._0x3d4e8d,0x6be,0x5df,_0x59f4b0._0xa20074)]=_0x23b769;}};function stringifySystem(_0x24abf7){const _0x37251b={_0x12c340:0x151,_0x556c13:0x7c,_0x55f534:0xc6},_0x561c9d={_0x5d30d2:0xd5},_0x3aec30={_0x4ec8f6:0x30e,_0x3ed054:0x164};function _0x231c87(_0x1488eb,_0x3a4970,_0x424efd,_0x2e644e){return _0x263708(_0x3a4970- -_0x3aec30._0x4ec8f6,_0x1488eb,_0x424efd-_0x3aec30._0x3ed054,_0x2e644e-0x65);}function _0x39b715(_0x2d9f1e,_0x258787,_0x355846,_0x577daf){return _0x1c2b50(_0x2d9f1e-0xec,_0x258787-_0x561c9d._0x5d30d2,_0x258787- -0x49,_0x2d9f1e);}return _0x24abf7['map'](_0x58514d=>_0x58514d[_0x39b715(-0x119,-0x159,-0x109,-0x12c)])[_0x231c87(-0xf1,-_0x37251b._0x12c340,-_0x37251b._0x556c13,-_0x37251b._0x55f534)]('\x0a\x0a');}function createToolDefinitions(_0x22e527){const _0x63f5eb={_0x19d8e6:0x51c,_0x1f8a92:0x64c},_0x1d6008={_0x3ef351:0x84,_0x384962:0x56,_0x1815f9:0x4b,_0x30b90c:0x9e,_0x55e236:0x6d,_0x4c1ce9:0x9,_0x2126d1:0x5f},_0x4fd09a={_0x5eeb9f:0x109},_0x427378={_0x1a4772:0x5c},_0xb2ffe3={_0x4b77e0:0x191};function _0x3aa3c8(_0x39a667,_0x5d8b6e,_0x356906,_0x56ad2d){return _0x1c2b50(_0x39a667-_0xb2ffe3._0x4b77e0,_0x5d8b6e-0x141,_0x39a667-0x2f9,_0x56ad2d);}function _0x492db4(_0x5a18c7,_0x46977f,_0x19775d,_0x27612c){return _0x263708(_0x46977f-0x325,_0x5a18c7,_0x19775d-0x1cc,_0x27612c-_0x427378._0x1a4772);}if(_0x22e527[_0x3aa3c8(0x28d,0x2af,0x22a,0x359)]===0x0)return void 0x0;return _0x22e527[_0x492db4(_0x63f5eb._0x19d8e6,0x56b,_0x63f5eb._0x1f8a92,0x5be)](_0x133988=>{const _0x44bba0={_0x5d04b2:0x34e,_0x195079:0x26};function _0x26f7c6(_0x10afb0,_0x365d4b,_0x1acbaf,_0x5279ec){return _0x492db4(_0x5279ec,_0x10afb0- -0x6d8,_0x1acbaf-0x19e,_0x5279ec-_0x4fd09a._0x5eeb9f);}function _0x4a32ae(_0x2e79f1,_0x5180b5,_0x41c2c5,_0x2daffd){return _0x3aa3c8(_0x5180b5- -_0x44bba0._0x5d04b2,_0x5180b5-0x189,_0x41c2c5-_0x44bba0._0x195079,_0x41c2c5);}return{'type':'function','function':{'name':_0x133988[_0x4a32ae(_0x1d6008._0x3ef351,-_0x1d6008._0x384962,-_0x1d6008._0x1815f9,-0x103)],'description':_0x133988[_0x26f7c6(-0xda,0x11,-_0x1d6008._0x30b90c,-0xd6)],'parameters':_0x133988[_0x26f7c6(-_0x1d6008._0x55e236,-_0x1d6008._0x4c1ce9,-_0x1d6008._0x2126d1,-0x111)]}};});}function isImageToolResultBlock(_0x1feacc){const _0x33eb24={_0x36ce08:0x2ec,_0x2a9d41:0x3aa,_0xa58005:0x351,_0x579e6e:0x23c,_0x313607:0x371,_0x403ef5:0x31c,_0x2f2b3d:0x340,_0x55f6c3:0x2d1,_0x59bdd1:0x2d8,_0x1cd2fa:0x25f,_0x398245:0x301,_0x22b432:0x239,_0x4204ed:0x2ab,_0x42e5ff:0x1fa,_0x49c2ef:0x1df,_0x4ced6b:0x281,_0x232919:0x2ef,_0xf584c9:0x288,_0x239c55:0x22b,_0x52ff96:0x19e,_0x456c75:0x30d,_0x353f90:0x35e,_0x2ca146:0x2da,_0xe700a5:0x312,_0x46e4ec:0x38c,_0xe70494:0x25a,_0x318b67:0x168,_0xf415f:0x365,_0x1e75cc:0x305,_0x4d6459:0x3df,_0x39253b:0x406,_0x19f537:0x334},_0x5a6a82={_0x122e31:0x36b},_0x407d6a={_0x235589:0xbb,_0x1a5434:0x173};if(typeof _0x1feacc!==_0x1b860f(_0x33eb24._0x36ce08,_0x33eb24._0x2a9d41,_0x33eb24._0xa58005,_0x33eb24._0x579e6e)||_0x1feacc===null||Array[_0x4bdf49(_0x33eb24._0x313607,_0x33eb24._0x403ef5,_0x33eb24._0x2f2b3d,_0x33eb24._0x55f6c3)](_0x1feacc))return![];function _0x4bdf49(_0x79a6f9,_0x5925ee,_0x55eace,_0x177b6b){return _0x1c2b50(_0x79a6f9-_0x407d6a._0x235589,_0x5925ee-_0x407d6a._0x1a5434,_0x5925ee-0x37f,_0x55eace);}const _0x1aa25e=_0x1feacc;function _0x1b860f(_0x4ea871,_0x292ada,_0x549809,_0x4994ec){return _0x1c2b50(_0x4ea871-0x18f,_0x292ada-0xa4,_0x4ea871-_0x5a6a82._0x122e31,_0x4994ec);}return _0x1aa25e[_0x4bdf49(0x199,0x1fa,0x24d,_0x33eb24._0x59bdd1)]===_0x4bdf49(_0x33eb24._0x1cd2fa,_0x33eb24._0x398245,0x2f3,0x354)&&_0x1aa25e[_0x1b860f(_0x33eb24._0x22b432,0x2b5,0x14c,_0x33eb24._0x4204ed)]?.[_0x4bdf49(0x251,_0x33eb24._0x42e5ff,0x265,_0x33eb24._0x49c2ef)]===_0x1b860f(_0x33eb24._0x4ced6b,_0x33eb24._0x232919,0x31d,_0x33eb24._0xf584c9)&&typeof _0x1aa25e[_0x1b860f(0x239,_0x33eb24._0x239c55,_0x33eb24._0x52ff96,_0x33eb24._0x456c75)][_0x1b860f(_0x33eb24._0x353f90,_0x33eb24._0x2ca146,_0x33eb24._0xe700a5,_0x33eb24._0x46e4ec)]==='string'&&typeof _0x1aa25e[_0x1b860f(_0x33eb24._0x22b432,0x149,_0x33eb24._0xe70494,_0x33eb24._0x318b67)][_0x1b860f(_0x33eb24._0xf415f,_0x33eb24._0x1e75cc,_0x33eb24._0x4d6459,0x321)]===_0x4bdf49(_0x33eb24._0x39253b,_0x33eb24._0x19f537,0x2bf,0x376);}function getToolResultText(_0x481e14){const _0xe4ca82={_0x50cd9e:0x3a,_0x143356:0x5f,_0x3580f4:0xa4,_0x8e2bde:0x86,_0x4c2a84:0x98,_0x390ac0:0xfe,_0x15cab4:0x36,_0x2f11a1:0x4d,_0x11d593:0x8,_0x2f043b:0xb7},_0x2c0aa5={_0x3e8b65:0x588,_0x390952:0x47b,_0x93c329:0xfe,_0x3b46dd:0xfa,_0xae52b4:0x60},_0x23d9a2={_0x4e1aea:0x17b},_0x1ac58b={_0x5407c4:0xdd,_0x5a4c74:0x1e0};function _0x13113b(_0x1c1865,_0x2151a0,_0x580efc,_0x28816f){return _0x263708(_0x1c1865- -0x344,_0x580efc,_0x580efc-_0x1ac58b._0x5407c4,_0x28816f-_0x1ac58b._0x5a4c74);}function _0x3d6fdc(_0x127327,_0x242173,_0x239697,_0xddc037){return _0x263708(_0x239697- -0x1ab,_0xddc037,_0x239697-0x171,_0xddc037-0x157);}if(typeof _0x481e14===_0x13113b(-_0xe4ca82._0x50cd9e,-_0xe4ca82._0x143356,_0xe4ca82._0x3580f4,_0xe4ca82._0x8e2bde))return _0x481e14;const _0x428d17=_0x481e14[_0x3d6fdc(-0x62,-_0xe4ca82._0x4c2a84,-0x2d,-0x102)](_0xcdb8dd=>{const _0x1af551={_0xc2e41a:0x3e,_0x11ff70:0x60};function _0x3aea21(_0x4dfc4b,_0x4bc6f9,_0x247058,_0x4923b6){return _0x3d6fdc(_0x4dfc4b-_0x1af551._0xc2e41a,_0x4bc6f9-0xf8,_0x247058-_0x1af551._0x11ff70,_0x4dfc4b);}function _0x411949(_0x19872c,_0x2e16df,_0x34e789,_0x5e064a){return _0x13113b(_0x19872c-0x5af,_0x2e16df-_0x23d9a2._0x4e1aea,_0x5e064a,_0x5e064a-0xc4);}return typeof _0xcdb8dd===_0x411949(0x541,_0x2c0aa5._0x3e8b65,_0x2c0aa5._0x390952,0x541)&&_0xcdb8dd!==null&&_0xcdb8dd['type']===_0x3aea21(0x168,_0x2c0aa5._0x93c329,_0x2c0aa5._0x3b46dd,_0x2c0aa5._0xae52b4);})[_0x13113b(-_0xe4ca82._0x390ac0,-_0xe4ca82._0x15cab4,-0x26,-_0xe4ca82._0x2f11a1)](_0x1a24ca=>_0x1a24ca['text'])[_0x13113b(-0x187,-0x167,-0x1fc,-0x96)]('\x0a\x0a')[_0x3d6fdc(-0xf8,-0x63,-0xe,0xc3)]();return _0x428d17['length']>0x0?_0x428d17:_0x3d6fdc(0xc4,0xd9,-_0xe4ca82._0x11d593,_0xe4ca82._0x2f043b);}function getToolResultImages(_0x15fc8c){const _0x4fcdae={_0xbf1c58:0xcf,_0xee97bf:0xc1},_0x42a78c={_0x4b7522:0xda,_0x5f036f:0xa8};function _0x27f9b4(_0x3465b6,_0x5db9bf,_0xc65870,_0x4f4430){return _0x263708(_0xc65870- -0x199,_0x4f4430,_0xc65870-_0x42a78c._0x4b7522,_0x4f4430-_0x42a78c._0x5f036f);}return Array[_0x27f9b4(_0x4fcdae._0xbf1c58,0xbd,0x159,_0x4fcdae._0xee97bf)](_0x15fc8c)?_0x15fc8c['filter'](isImageToolResultBlock):[];}function parseToolInput2(_0x32689b){const _0x2c1c57={_0x57ec3a:0x258,_0x5c9ed8:0x2d5},_0x74d59d={_0x98fc22:0x66,_0x16526f:0x1c4};if(_0x32689b['length']===0x0)return{};function _0xacfe61(_0x4fb85a,_0x42976f,_0x3a7775,_0x8185e5){return _0x263708(_0x4fb85a- -_0x74d59d._0x98fc22,_0x3a7775,_0x3a7775-0xcd,_0x8185e5-_0x74d59d._0x16526f);}try{return JSON[_0xacfe61(_0x2c1c57._0x57ec3a,_0x2c1c57._0x5c9ed8,0x240,0x268)](_0x32689b);}catch{return _0x32689b;}}function isResponsesReasoningItem(_0x59907a){const _0x353764={_0x3a0f6f:0x45,_0xe413b5:0x6f,_0x58c058:0x38,_0x1831ec:0x22f,_0x53da27:0x1c4,_0x4dd7dc:0x288,_0x2f5b2e:0x1a7,_0x3c757e:0x2d6,_0x33c65b:0x1e1},_0x1bc4d4={_0x381a82:0x7d,_0x2d68cc:0x142},_0x3764ca={_0x42e9c0:0x1a};function _0x3a8a8d(_0x4b02bc,_0x469381,_0x1e403,_0x5242ed){return _0x1c2b50(_0x4b02bc-0x1d1,_0x469381-_0x3764ca._0x42e9c0,_0x4b02bc-0x3fd,_0x5242ed);}function _0x284309(_0x4d2c8d,_0x294164,_0x4b88,_0x195362){return _0x263708(_0x195362- -0x358,_0x4d2c8d,_0x4b88-_0x1bc4d4._0x381a82,_0x195362-_0x1bc4d4._0x2d68cc);}return typeof _0x59907a===_0x284309(_0x353764._0x3a0f6f,_0x353764._0xe413b5,-_0x353764._0x58c058,-0x82)&&_0x59907a!==null&&_0x3a8a8d(0x278,_0x353764._0x1831ec,0x2a2,_0x353764._0x53da27)in _0x59907a&&_0x59907a['type']===_0x3a8a8d(_0x353764._0x4dd7dc,_0x353764._0x2f5b2e,_0x353764._0x3c757e,_0x353764._0x33c65b);}function isResponsesMessageItem(_0x47b1ef){const _0x5a8404={_0x2b44dc:0x6b,_0x57f0f6:0x7,_0x1ce1d3:0x380,_0x295fd8:0x346},_0x210a69={_0x46b74b:0x1c,_0x3138fe:0xa9},_0x1f5653={_0x5dbabb:0x5a,_0x167cc8:0x17f};function _0x475c11(_0x498785,_0x73cc4,_0x48f004,_0x5c9767){return _0x1c2b50(_0x498785-_0x1f5653._0x5dbabb,_0x73cc4-_0x1f5653._0x167cc8,_0x48f004-0x484,_0x73cc4);}function _0xb1d3ad(_0x3efb48,_0x19253a,_0x2b5e1f,_0x53a67e){return _0x1c2b50(_0x3efb48-0x136,_0x19253a-_0x210a69._0x46b74b,_0x19253a-_0x210a69._0x3138fe,_0x53a67e);}return typeof _0x47b1ef===_0xb1d3ad(_0x5a8404._0x2b44dc,0x2a,0x4d,_0x5a8404._0x57f0f6)&&_0x47b1ef!==null&&'type'in _0x47b1ef&&_0x47b1ef[_0x475c11(_0x5a8404._0x1ce1d3,_0x5a8404._0x295fd8,0x2ff,0x219)]==='message';}function isResponsesFunctionCallItem(_0xbe6716){const _0x5ad1cf={_0x45245e:0x579,_0x2a64da:0x502,_0x2b19f6:0x4bd,_0x235867:0x45b,_0x5ef3c9:0x504,_0x1889bb:0x3d6,_0x273d0e:0x456,_0x746b9:0x4e7,_0x153804:0x4e8},_0x94e1eb={_0x2f2ea3:0x44};function _0xe27e1e(_0x4293d1,_0x668553,_0x3d2494,_0x3e0f7b){return _0x263708(_0x3d2494-0x28b,_0x668553,_0x3d2494-_0x94e1eb._0x2f2ea3,_0x3e0f7b-0x5d);}function _0x48aa1d(_0x12d95a,_0x26269,_0x586371,_0x119972){return _0x263708(_0x586371-0x2ac,_0x12d95a,_0x586371-0xc1,_0x119972-0xd);}return typeof _0xbe6716===_0xe27e1e(_0x5ad1cf._0x45245e,0x4cc,0x561,_0x5ad1cf._0x2a64da)&&_0xbe6716!==null&&_0xe27e1e(0x46a,_0x5ad1cf._0x2b19f6,_0x5ad1cf._0x235867,_0x5ad1cf._0x5ef3c9)in _0xbe6716&&_0xbe6716[_0x48aa1d(_0x5ad1cf._0x1889bb,0x3e9,0x47c,_0x5ad1cf._0x273d0e)]===_0xe27e1e(_0x5ad1cf._0x746b9,0x41b,_0x5ad1cf._0x153804,0x4b7);}function createContentBlocks(_0x5b6ec4,_0x479f7a,_0x59d3d0){const _0x32b8db={_0x3541e9:0x4f3,_0x3f3eb5:0x3b4,_0x37296d:0x2f1,_0x433e9d:0x4b1,_0x468cfc:0x40f,_0x2ac856:0x405,_0x2a9457:0x435,_0x5dfcc0:0x5aa,_0x4cdfdd:0x2f3,_0x5981e0:0x228,_0x10b5a2:0x3cd,_0x1f42bc:0x2e2,_0xd9ab04:0x46a,_0x4de847:0x3d2,_0x4ee166:0x3a1,_0x27f41b:0x2e7,_0x59d648:0x64e,_0x45f4ec:0x61d,_0x2103e6:0x5a3,_0x35021a:0x5dc},_0x19e23a={_0x1910d6:0x156,_0x36c9fb:0xf},_0x9e57c3=[];_0x59d3d0&&_0x59d3d0['length']>0x0&&_0x9e57c3[_0x4678c5(_0x32b8db._0x3541e9,0x442,0x3c1,0x454)]({'type':'openai_reasoning','summary':[],'text':_0x59d3d0});function _0x467c63(_0x3d6f2d,_0x4ffb84,_0x5e4490,_0x6637f0){return _0x263708(_0x3d6f2d-_0x19e23a._0x1910d6,_0x6637f0,_0x5e4490-0x25,_0x6637f0-_0x19e23a._0x36c9fb);}function _0x4678c5(_0x2def7f,_0x308aba,_0x14f90f,_0x58246b){return _0x263708(_0x308aba-0x256,_0x58246b,_0x14f90f-0xf2,_0x58246b-0x1da);}_0x5b6ec4['length']>0x0&&_0x9e57c3[_0x467c63(0x342,0x253,0x2d8,0x2da)]({'type':_0x467c63(0x39b,0x45c,_0x32b8db._0x3f3eb5,_0x32b8db._0x37296d),'text':_0x5b6ec4});for(const _0x22975c of _0x479f7a){if(_0x22975c['id']['trim']()[_0x467c63(0x43f,_0x32b8db._0x433e9d,0x37e,_0x32b8db._0x468cfc)]===0x0||_0x22975c[_0x467c63(0x480,0x4be,_0x32b8db._0x2ac856,_0x32b8db._0x2a9457)][_0x4678c5(0x651,_0x32b8db._0x5dfcc0,0x5bc,0x5d1)][_0x467c63(_0x32b8db._0x4cdfdd,_0x32b8db._0x5981e0,_0x32b8db._0x10b5a2,_0x32b8db._0x1f42bc)]()[_0x4678c5(0x451,0x53f,_0x32b8db._0xd9ab04,0x4c3)]===0x0)continue;_0x9e57c3['push']({'type':_0x467c63(_0x32b8db._0x4de847,0x493,_0x32b8db._0x4ee166,_0x32b8db._0x27f41b),'id':_0x22975c['id'],'name':_0x22975c[_0x4678c5(_0x32b8db._0x59d648,0x580,_0x32b8db._0x45f4ec,0x54c)]['name'],'input':parseToolInput2(_0x22975c['function'][_0x4678c5(_0x32b8db._0x2103e6,0x596,_0x32b8db._0x35021a,0x56b)])});}return _0x9e57c3;}function createUsage(_0x3a9db0){const _0x59913c={_0x5d1797:0x2c,_0x617f66:0x75,_0x29fe2b:0x53,_0x1698c1:0x5b,_0x1bd48d:0x11a,_0x10998b:0x1e3,_0x3f0211:0x15e,_0x2cb148:0x179,_0x24ba64:0x142,_0x2f8d91:0x8f,_0xa56d89:0xed,_0x175706:0x73,_0x2ed6f9:0x47},_0x4875ed={_0x1cb254:0x88,_0x1ae58d:0x19},_0x5b50b1={_0x269446:0x3e};function _0xbf28b5(_0x3191d7,_0x58846d,_0x5373c1,_0x58524b){return _0x1c2b50(_0x3191d7-0x92,_0x58846d-_0x5b50b1._0x269446,_0x58524b-0x234,_0x3191d7);}function _0x201e67(_0x5d8ca1,_0xbc9e25,_0x11ff6a,_0x38bdca){return _0x1c2b50(_0x5d8ca1-_0x4875ed._0x1cb254,_0xbc9e25-0xb,_0xbc9e25-_0x4875ed._0x1ae58d,_0x38bdca);}return{'inputTokens':_0x3a9db0?.['prompt_tokens']??0x0,'outputTokens':_0x3a9db0?.[_0x201e67(_0x59913c._0x5d1797,-_0x59913c._0x617f66,-_0x59913c._0x29fe2b,_0x59913c._0x1698c1)]??0x0,..._0x3a9db0?.[_0xbf28b5(_0x59913c._0x1bd48d,_0x59913c._0x10998b,_0x59913c._0x3f0211,_0x59913c._0x2cb148)]?.[_0xbf28b5(_0x59913c._0x24ba64,0x107,_0x59913c._0x2f8d91,_0x59913c._0xa56d89)]!==void 0x0?{'reasoningTokens':_0x3a9db0['completion_tokens_details'][_0xbf28b5(0x1b1,_0x59913c._0x175706,_0x59913c._0x2ed6f9,_0x59913c._0xa56d89)]}:{}};}function resolveReasoningVisibility2(_0x503c8c){const _0x5369b0={_0x41ffdf:0x3df,_0x391287:0x36d,_0x2ffc92:0x4ab,_0x229ba4:0x56e,_0x2cae5d:0x3d3},_0x5c0c1e={_0x34807e:0x158,_0x3134d1:0x127},_0x1335d5={_0x2aad36:0xce,_0x17cfc2:0x1e0};function _0x90ba5d(_0x4fc374,_0x4499ea,_0x474cdc,_0x3ddb0a){return _0x263708(_0x474cdc-0xe1,_0x4fc374,_0x474cdc-_0x1335d5._0x2aad36,_0x3ddb0a-_0x1335d5._0x17cfc2);}function _0x219ccc(_0x476d6a,_0xd769ef,_0x4b3f4b,_0x5cb053){return _0x263708(_0xd769ef-0x185,_0x4b3f4b,_0x4b3f4b-_0x5c0c1e._0x34807e,_0x5cb053-_0x5c0c1e._0x3134d1);}return _0x503c8c['reasoning']?.[_0x90ba5d(_0x5369b0._0x41ffdf,0x319,_0x5369b0._0x391287,0x2ca)]??_0x219ccc(0x506,_0x5369b0._0x2ffc92,_0x5369b0._0x229ba4,_0x5369b0._0x2cae5d);}function isUserVisibleReasoning(_0x441ba1){const _0x4136e0={_0x273027:0x166,_0x30f6b2:0x23a,_0x319d82:0x409},_0x3834a7={_0x9411c6:0x1ee},_0x4f74e3={_0x502317:0xca};function _0x49dd38(_0x24052a,_0x59d729,_0x371cbf,_0x5cf056){return _0x1c2b50(_0x24052a-_0x4f74e3._0x502317,_0x59d729-0xd,_0x24052a-0x2d4,_0x371cbf);}function _0x2c49ec(_0x5cfffa,_0x1f78b3,_0x1ec719,_0x16b438){return _0x263708(_0x16b438-0xe3,_0x1f78b3,_0x1ec719-_0x3834a7._0x9411c6,_0x16b438-0x45);}return resolveOpenAiReasoningConfig(_0x441ba1[_0x49dd38(0x15f,_0x4136e0._0x273027,_0x4136e0._0x30f6b2,0x170)])!==void 0x0&&resolveReasoningVisibility2(_0x441ba1)===_0x2c49ec(0x38a,0x4ea,0x40e,_0x4136e0._0x319d82);}function createChatRequestBody(_0x2d14ab,_0x15946f){const _0x19f2db={_0x4339b2:0x81,_0x582f2f:0x129,_0x23d384:0x1e8,_0x2caa13:0xfd,_0x5008eb:0x29,_0x2011da:0x2c,_0x520009:0x22e,_0x31cece:0x168,_0x45dec5:0x4a3,_0x5118d5:0x4eb,_0x26b4e6:0x21,_0x2910d7:0xc5,_0x49cd61:0xb4,_0x960388:0x2c,_0x2ff110:0xe1,_0xdb3897:0x3e,_0x107716:0x435,_0xad2c07:0x3cf,_0x5d9ad7:0x3c4,_0x4313ee:0x48e,_0x421d42:0x4ec,_0x58cfa1:0x480,_0x354749:0x4ba,_0x2ec6c1:0x3df,_0x3546ee:0x476,_0x488242:0x484,_0x4a448c:0x4b6,_0x41f5f5:0x4a9,_0x3310b2:0x1fc,_0x4b03fc:0x113,_0x3a7118:0x530,_0x1479bb:0xfb,_0x4a4e04:0x53f,_0x3b0c44:0x42b,_0x559845:0x435,_0x4f205f:0x3eb,_0x5a5615:0x246,_0x50227d:0x194,_0x353290:0xc8,_0xd04421:0x57a,_0x29db80:0x669,_0xdddc5:0x10,_0x44c267:0x54,_0x4e686f:0x7e,_0x1d3b13:0x2,_0x28e5bb:0x3f,_0x3b77a5:0x84,_0x4cce41:0x533,_0x458db3:0x458,_0x4d8338:0x4d6,_0x25a02c:0x3e8,_0x1c4ad3:0x34a,_0x41d0b1:0x3b1,_0x4c3148:0x35b,_0x1bf7e1:0x3cc,_0x4cd5c5:0x1ec,_0xe13a28:0x435,_0x440065:0x510,_0x1d7251:0x578,_0x17da98:0x4ea,_0x565c61:0x4be,_0x48536a:0x7f,_0x3681ae:0x9,_0x258591:0x6,_0x1ee380:0xea,_0x1c13b6:0x357,_0x357268:0x3df,_0x48c0dc:0x162,_0x40126f:0x12b,_0x3bee1e:0xed,_0x2b706f:0x5cc,_0x1d7a87:0x6a,_0x235471:0x14,_0x1724b5:0x41d,_0x17e0eb:0x3a1,_0xc62b6c:0x75,_0x375fa4:0xd5,_0x3d28a8:0x12f,_0x1b490b:0xd5,_0x2f50b3:0x123,_0x82e823:0x662,_0x4e6389:0xfd,_0x43e450:0x15b,_0xaf1842:0x562,_0x267719:0x5a3,_0x50d896:0x4b4,_0x418c45:0x597,_0x53f5d5:0xac,_0x30ed43:0x59c,_0x3b97df:0x50c,_0x7d876e:0x683,_0x5da6f7:0x4d4},_0x1508be={_0x39a523:0x1f,_0x411c23:0x51c,_0x19c26f:0x4c9,_0x1f2eb9:0x5d9,_0x2b06a0:0x50a,_0x598d72:0x96,_0x1479a8:0xb9,_0x1fcee8:0x92,_0x2e6885:0x9a,_0x3e679d:0x102,_0xa270f1:0x60f,_0x75543:0x58e,_0x3321ec:0x416,_0xf0a6b7:0x42d,_0x2d1932:0x15,_0x2542eb:0x5,_0x3bbb67:0x159,_0x21eab2:0x559,_0x26eb9d:0x5c8,_0x10ef10:0x3f2,_0x40d386:0x98,_0x38306d:0x45c,_0x3427fb:0x663,_0x3c8c4f:0x5e2,_0x413393:0x3e4,_0xa4e984:0x4d9,_0x436c24:0x44b,_0x25d128:0x40d,_0x157616:0x35f,_0x27507b:0xc5,_0x4d861b:0x6f,_0x1fa14b:0x51f,_0xbd10e9:0x8f,_0x31511b:0x135,_0x50b556:0x114,_0x5398be:0x116,_0x80641d:0x2c,_0x54136b:0x5fe,_0x1001ee:0x47e},_0x1ea72e={_0x145eef:0xe7},_0x1f6b2e={_0xcd8c77:0xeb},_0x190079={_0x580a47:0x1c0,_0x22b284:0x1e7,_0x3f6dd1:0x96};function _0x2289a8(_0x2f6061,_0x30bb34,_0x10805c,_0xc1c7ae){return _0x263708(_0x30bb34- -_0x190079._0x580a47,_0xc1c7ae,_0x10805c-_0x190079._0x22b284,_0xc1c7ae-_0x190079._0x3f6dd1);}function _0x43207d(_0x36d611,_0x5b5d7f,_0x1c996c,_0x1a46a5){return _0x263708(_0x36d611-0x249,_0x1a46a5,_0x1c996c-_0x1f6b2e._0xcd8c77,_0x1a46a5-0x1cc);}const _0x1cfe7f=[],_0x3c75ca=stringifySystem(_0x2d14ab['system']);_0x3c75ca[_0x2289a8(_0x19f2db._0x4339b2,_0x19f2db._0x582f2f,_0x19f2db._0x23d384,_0x19f2db._0x2caa13)]>0x0&&_0x1cfe7f[_0x2289a8(_0x19f2db._0x5008eb,_0x19f2db._0x2011da,0x9c,-0x82)]({'role':_0x2289a8(_0x19f2db._0x520009,_0x19f2db._0x31cece,0x179,0xeb),'content':_0x3c75ca});for(const _0x5d44a3 of _0x2d14ab[_0x43207d(_0x19f2db._0x45dec5,_0x19f2db._0x5118d5,0x3d8,0x3b9)]){const _0x4ccf64=[],_0x3b0c5d=[],_0x2a1101=[],_0x4ac97c=()=>{const _0x190288={_0x470724:0x16e,_0x3aabc3:0xe7};if(_0x5d44a3[_0x573a9a(-0x8f,0x59,-_0x1508be._0x39a523,-0xe3)]===_0x185a05(0x4eb,_0x1508be._0x411c23,_0x1508be._0x19c26f,0x508)){if(_0x4ccf64[_0x185a05(0x494,0x559,_0x1508be._0x1f2eb9,0x4db)]===0x0&&_0x3b0c5d[_0x185a05(0x51b,0x559,0x490,_0x1508be._0x2b06a0)]===0x0)return;_0x1cfe7f[_0x573a9a(-_0x1508be._0x598d72,-_0x1508be._0x1479a8,0xd,-_0x1508be._0x1fcee8)]({'role':_0x573a9a(0x2a,0xb6,_0x1508be._0x2e6885,_0x1508be._0x3e679d),'content':_0x4ccf64[_0x185a05(_0x1508be._0xa270f1,0x559,0x622,_0x1508be._0x75543)]>0x0?_0x4ccf64[_0x185a05(_0x1508be._0x3321ec,_0x1508be._0xf0a6b7,0x3d3,0x427)]('\x0a\x0a'):null,..._0x3b0c5d['length']>0x0?{'tool_calls':_0x3b0c5d[_0x573a9a(-0xb1,-_0x1508be._0x2d1932,_0x1508be._0x2542eb,-_0x1508be._0x3bbb67)](0x0)}:{}}),_0x4ccf64[_0x185a05(0x523,_0x1508be._0x21eab2,0x52a,_0x1508be._0x26eb9d)]=0x0;return;}function _0x573a9a(_0x23c31a,_0xca5c0c,_0x299bc7,_0xa0a5f5){return _0x2289a8(_0x23c31a-0x164,_0x23c31a- -0xc2,_0x299bc7-_0x1ea72e._0x145eef,_0xca5c0c);}function _0x185a05(_0x963b84,_0x182cac,_0x1bb9b6,_0x50aea3){return _0x43207d(_0x182cac-0x27,_0x182cac-_0x190288._0x470724,_0x1bb9b6-_0x190288._0x3aabc3,_0x1bb9b6);}if(_0x5d44a3[_0x185a05(0x39f,0x463,0x4b2,_0x1508be._0x10ef10)]==='user'){if(_0x2a1101['length']===0x0)return;const _0x25c6e0=_0x2a1101[_0x573a9a(_0x1508be._0x40d386,0x172,0xf8,0x16b)](_0x41b524=>_0x41b524[_0x573a9a(-0xb2,-0x17b,-0x193,-0x11)]===_0x573a9a(-0x8,-0xa4,-0x15,-0xcd));_0x1cfe7f[_0x185a05(0x415,_0x1508be._0x38306d,0x540,0x3c2)]({'role':_0x185a05(0x66e,0x59f,_0x1508be._0x3427fb,_0x1508be._0x3c8c4f),'content':_0x25c6e0?_0x2a1101[_0x185a05(0x4b1,0x441,0x383,_0x1508be._0x413393)](0x0):_0x2a1101[_0x185a05(_0x1508be._0xa4e984,0x441,0x37d,0x4b3)](0x0)[_0x185a05(_0x1508be._0x436c24,0x3ee,_0x1508be._0x25d128,_0x1508be._0x157616)](_0x1099ed=>_0x1099ed['type']===_0x185a05(0x4a0,0x4b5,0x57e,0x3fd))['map'](_0x54e167=>_0x54e167['text'])[_0x573a9a(-_0x1508be._0x27507b,-0x17c,-0xfc,-0x105)]('\x0a\x0a')});return;}if(_0x4ccf64[_0x573a9a(0x67,0x14,0x14e,_0x1508be._0x4d861b)]===0x0)return;_0x1cfe7f[_0x185a05(0x502,0x45c,_0x1508be._0x1fa14b,0x4d5)]({'role':_0x5d44a3[_0x573a9a(-_0x1508be._0xbd10e9,-0xe6,-0xaf,-_0x1508be._0x31511b)],'content':_0x4ccf64[_0x573a9a(-0xc5,-_0x1508be._0x50b556,-_0x1508be._0x5398be,-_0x1508be._0x80641d)]('\x0a\x0a')}),_0x4ccf64[_0x185a05(_0x1508be._0x54136b,0x559,0x4a2,_0x1508be._0x1001ee)]=0x0;};for(const _0x4ca6da of normalizeContent(_0x5d44a3[_0x2289a8(-0xb3,-_0x19f2db._0x26b4e6,0x83,-0xd7)])){if(_0x4ca6da[_0x2289a8(-0xdc,0x10,-0xdd,-0x76)]===_0x2289a8(0x10b,0x85,0x67,_0x19f2db._0x2910d7)){_0x5d44a3['role']==='user'?_0x2a1101[_0x2289a8(-_0x19f2db._0x49cd61,_0x19f2db._0x960388,_0x19f2db._0x2ff110,-_0x19f2db._0xdb3897)]({'type':'text','text':_0x4ca6da['text']}):_0x4ccf64[_0x43207d(_0x19f2db._0x107716,_0x19f2db._0xad2c07,_0x19f2db._0x5d9ad7,0x3a2)](_0x4ca6da[_0x43207d(_0x19f2db._0x4313ee,0x553,0x43a,_0x19f2db._0x421d42)]);continue;}if(_0x5d44a3['role']==='user'&&_0x4ca6da[_0x43207d(0x419,0x40c,0x3bc,0x3f4)]===_0x43207d(0x520,_0x19f2db._0x58cfa1,0x5fc,0x469)){_0x2a1101['push']({'type':_0x2289a8(0xd9,0xba,0xed,0x17d),'image_url':{'url':_0x43207d(_0x19f2db._0x354749,_0x19f2db._0x2ec6c1,_0x19f2db._0x3546ee,0x3d8)+_0x4ca6da[_0x43207d(0x46c,0x3aa,_0x19f2db._0x488242,_0x19f2db._0x4a448c)][_0x43207d(0x591,_0x19f2db._0x41f5f5,0x583,0x4eb)]+_0x2289a8(_0x19f2db._0x3310b2,_0x19f2db._0x4b03fc,0x7f,0x1f0)+_0x4ca6da[_0x43207d(0x46c,0x382,_0x19f2db._0x3a7118,0x446)]['data']}});continue;}if(_0x4ca6da[_0x2289a8(0xfa,0x10,0xd1,_0x19f2db._0x1479bb)]===_0x43207d(0x4c5,_0x19f2db._0x4a4e04,_0x19f2db._0x3b0c44,0x501)){_0x3b0c5d[_0x43207d(_0x19f2db._0x559845,0x47c,_0x19f2db._0x4f205f,0x410)]({'id':_0x4ca6da['id'],'type':'function','function':{'name':_0x4ca6da[_0x2289a8(_0x19f2db._0x5a5615,_0x19f2db._0x50227d,_0x19f2db._0x353290,0x207)],'arguments':JSON['stringify'](_0x4ca6da[_0x43207d(_0x19f2db._0xd04421,0x57d,0x5d1,_0x19f2db._0x29db80)]??{})}});continue;}if(_0x4ca6da[_0x2289a8(-0x40,_0x19f2db._0xdddc5,0x74,_0x19f2db._0x44c267)]!==_0x2289a8(-_0x19f2db._0x4e686f,_0x19f2db._0x1d3b13,-0x7e,_0x19f2db._0x28e5bb))continue;_0x4ac97c(),_0x1cfe7f[_0x2289a8(0xf1,0x2c,-0xb,-_0x19f2db._0x3b77a5)]({'role':_0x43207d(_0x19f2db._0x4cce41,_0x19f2db._0x458db3,_0x19f2db._0x4d8338,0x4e7),'content':getToolResultText(_0x4ca6da[_0x43207d(_0x19f2db._0x25a02c,_0x19f2db._0x1c4ad3,0x397,_0x19f2db._0x41d0b1)]),'tool_call_id':_0x4ca6da['tool_use_id']});const _0x3c400f=getToolResultImages(_0x4ca6da[_0x43207d(0x3e8,_0x19f2db._0x4d8338,_0x19f2db._0x4c3148,_0x19f2db._0x1bf7e1)]);_0x3c400f[_0x2289a8(0x11f,0x129,_0x19f2db._0x4cd5c5,0x3b)]>0x0&&_0x1cfe7f[_0x43207d(_0x19f2db._0xe13a28,0x50d,_0x19f2db._0x440065,0x454)]({'role':_0x43207d(_0x19f2db._0x1d7251,_0x19f2db._0x17da98,_0x19f2db._0x565c61,0x4c2),'content':[{'type':'text','text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x4ca6da[_0x2289a8(0x12c,0x82,_0x19f2db._0x48536a,_0x19f2db._0x3681ae)]+'.'},..._0x3c400f[_0x2289a8(0x162,0x86,_0x19f2db._0x258591,_0x19f2db._0x1ee380)](_0x50acb0=>({'type':_0x2289a8(0x11,0xba,-0x12,0x12f),'image_url':{'url':_0x2289a8(0xbd,0xb1,0x62,0x100)+_0x50acb0['source'][_0x2289a8(0xab,0x188,0x164,0x269)]+_0x2289a8(0xf9,0x113,0x174,0x81)+_0x50acb0[_0x2289a8(0xe2,0x63,0xb0,0x113)][_0x2289a8(0x1ea,0x18f,0xb7,0x24b)]}}))]});}_0x4ac97c();}const _0x234900=resolveOpenAiReasoningConfig(_0x2d14ab[_0x43207d(0x429,_0x19f2db._0x1c13b6,_0x19f2db._0x357268,0x3f5)]);return{'model':_0x2d14ab['model'],'messages':_0x1cfe7f,'stream':_0x15946f,..._0x2d14ab[_0x43207d(0x534,0x464,0x458,0x4cd)]!==void 0x0?_0x234900?{'max_completion_tokens':_0x2d14ab['maxTokens']}:{'max_tokens':_0x2d14ab[_0x2289a8(_0x19f2db._0x48c0dc,_0x19f2db._0x40126f,_0x19f2db._0x3bee1e,0x15b)]}:{},..._0x234900?.['effort']?{'reasoning_effort':_0x234900[_0x43207d(0x5a1,_0x19f2db._0x2b706f,0x623,0x4b3)]}:{},...createToolDefinitions(_0x2d14ab[_0x2289a8(_0x19f2db._0x1d7a87,_0x19f2db._0x235471,0xe2,-0x99)])?{'tools':createToolDefinitions(_0x2d14ab[_0x43207d(_0x19f2db._0x1724b5,0x42a,0x41c,_0x19f2db._0x17e0eb)])}:{},..._0x2d14ab[_0x2289a8(_0x19f2db._0xc62b6c,_0x19f2db._0x375fa4,0xca,_0x19f2db._0x3d28a8)]?{'response_format':{'type':_0x2289a8(0x146,0x9e,-0x3b,0x49),'json_schema':{'name':_0x2d14ab[_0x2289a8(0x94,_0x19f2db._0x1b490b,0xac,_0x19f2db._0x2f50b3)]['name']??_0x43207d(0x588,_0x19f2db._0x82e823,0x4b3,0x579),'schema':_0x2d14ab[_0x2289a8(_0x19f2db._0x4e6389,0xd5,_0x19f2db._0x43e450,0x154)][_0x43207d(_0x19f2db._0xaf1842,_0x19f2db._0x267719,_0x19f2db._0x50d896,_0x19f2db._0x418c45)],'strict':_0x2d14ab[_0x2289a8(-0xa,_0x19f2db._0x375fa4,0x94,_0x19f2db._0x53f5d5)][_0x43207d(_0x19f2db._0x30ed43,_0x19f2db._0x3b97df,_0x19f2db._0x7d876e,_0x19f2db._0x5da6f7)]??!![]}}}:{}};}function createResponsesRequestBody(_0x2d7a90,_0x1aede7,_0x47881c){const _0x4a2c52=_0x47881c?.(_0x2d7a90);return{...toOpenAiResponsesRequest(_0x2d7a90),..._0x1aede7?{'stream':!![]}:{},..._0x4a2c52!==void 0x0?{'prompt_cache_key':_0x4a2c52}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x4bb50d,_0x78ff71={}){const _0x1a2444={_0x91f50b:0x567,_0xc812ab:0x47c,_0x54f90f:0x4bc,_0x2f1a7f:0x395},_0x338933={_0x161618:0x70},_0x41e79f={_0x4ba664:0x9e,_0xaf9e25:0x1ba,_0x261f7b:0x66a};function _0x3c95f5(_0x987c26,_0x33ef22,_0x302131,_0x2987ce){return _0x1c2b50(_0x987c26-_0x41e79f._0x4ba664,_0x33ef22-_0x41e79f._0xaf9e25,_0x33ef22-_0x41e79f._0x261f7b,_0x987c26);}function _0x493067(_0x52c760,_0x1dae9b,_0x3799b3,_0x5ce7ef){return _0x1c2b50(_0x52c760-0x169,_0x1dae9b-_0x338933._0x161618,_0x5ce7ef-0x587,_0x3799b3);}const _0x150d13=toOpenAiResponsesRequest(_0x4bb50d);return{'type':'response.create',..._0x150d13,..._0x78ff71[_0x493067(0x621,_0x1a2444._0x91f50b,_0x1a2444._0xc812ab,0x563)]?{'input':_0x78ff71['input']}:{},..._0x78ff71[_0x493067(0x405,_0x1a2444._0x54f90f,_0x1a2444._0x2f1a7f,0x401)]!==void 0x0?{'prompt_cache_key':_0x78ff71[_0x493067(0x4bb,0x43a,0x4e9,0x401)]}:{},..._0x78ff71['previousResponseId']?{'previous_response_id':_0x78ff71['previousResponseId']}:{},'store':![]};}function normalizeAssistantContent(_0x482f24){const _0x2e5ab6={_0x2d5a6c:0x3ea,_0x2c6076:0x344,_0x5b6e18:0x39b,_0x5bf883:0x33f,_0x34ddaf:0x1b6,_0x1781ae:0x2b7,_0x42bfa2:0x120,_0x35fd6e:0xa8},_0x10628d={_0x1e909c:0x4da,_0x1f96fa:0x595,_0x54ffdf:0x67b,_0x107da1:0x58e,_0x4427e6:0x465,_0x1fdf7d:0x560},_0x5080c9={_0x1c4aa9:0x72},_0x5d0e95={_0xee41e5:0x57};if(typeof _0x482f24===_0xd378de(_0x2e5ab6._0x2d5a6c,0x364,0x357,0x2a5))return _0x482f24;if(!Array[_0xd378de(_0x2e5ab6._0x2c6076,_0x2e5ab6._0x5b6e18,_0x2e5ab6._0x5bf883,0x2ff)](_0x482f24))return'';function _0x162464(_0x5d7082,_0xeaa36,_0x512b51,_0x1b72ca){return _0x1c2b50(_0x5d7082-0x74,_0xeaa36-_0x5d0e95._0xee41e5,_0x1b72ca-0xf0,_0x5d7082);}function _0xd378de(_0x3a3a58,_0xcd5f82,_0x5c3590,_0x4e3ed1){return _0x1c2b50(_0x3a3a58-_0x5080c9._0x1c4aa9,_0xcd5f82-0x149,_0x5c3590-0x3a2,_0x3a3a58);}return _0x482f24[_0xd378de(_0x2e5ab6._0x34ddaf,_0x2e5ab6._0x1781ae,0x293,0x2ec)](_0x427094=>{const _0x42a835={_0x43f41d:0x11f,_0x4d414e:0xd3};function _0x1a276a(_0x3ba2ff,_0x472098,_0x43d1cd,_0x1eddd5){return _0xd378de(_0x3ba2ff,_0x472098-0x140,_0x1eddd5-0x2fc,_0x1eddd5-0x6c);}function _0x411382(_0x2d6441,_0x515e9c,_0x32766d,_0xa42aba){return _0xd378de(_0x32766d,_0x515e9c-_0x42a835._0x43f41d,_0xa42aba-0x1d3,_0xa42aba-_0x42a835._0x4d414e);}return _0x427094['type']===_0x1a276a(_0x10628d._0x1e909c,_0x10628d._0x1f96fa,_0x10628d._0x54ffdf,_0x10628d._0x107da1)?_0x427094[_0x411382(0x47b,0x495,0x3cf,_0x10628d._0x4427e6)]:_0x427094[_0x1a276a(0x5e3,0x55e,0x5b5,_0x10628d._0x1fdf7d)];})[_0x162464(-0x192,-0x13d,-_0x2e5ab6._0x42bfa2,-_0x2e5ab6._0x35fd6e)]('');}function normalizeResponsesMessageContent(_0x4ca613){const _0x48ed6c={_0x3d6009:0x55,_0x84288e:0x114,_0x28b71f:0x68,_0x32ed9f:0xbc,_0x615c28:0x41},_0x28057e={_0x177f88:0x562,_0x536535:0x5bd,_0x550af3:0x3b2,_0x50d1aa:0x355,_0x611a46:0x674,_0x302dc7:0x6d2,_0x53e534:0x352,_0x5963a1:0x461,_0x23d649:0x394,_0x3ee90e:0x444,_0x493ae2:0x372,_0x47fb29:0x308,_0x52885f:0x3b9,_0x514292:0x322,_0x546214:0x34e,_0x8782e8:0x560},_0x2b3e89={_0x42bd12:0x25,_0x478af2:0x176},_0x2e6951={_0x235771:0x8,_0x2b474d:0xeb};function _0x586adf(_0x38c103,_0xac7a8c,_0x2b5d48,_0x298111){return _0x263708(_0x2b5d48- -0x1de,_0x38c103,_0x2b5d48-_0x2e6951._0x235771,_0x298111-_0x2e6951._0x2b474d);}function _0x26435f(_0x49e794,_0x2fb58f,_0x8ef737,_0x4c1b1e){return _0x1c2b50(_0x49e794-0xc6,_0x2fb58f-_0x2b3e89._0x42bd12,_0x4c1b1e-_0x2b3e89._0x478af2,_0x2fb58f);}if(!Array[_0x586adf(_0x48ed6c._0x3d6009,0x93,_0x48ed6c._0x84288e,0x1e6)](_0x4ca613))return'';return _0x4ca613[_0x586adf(0x24,0xdb,_0x48ed6c._0x28b71f,0x55)](_0x547a48=>{const _0x5b4f7f={_0x39cd0:0xc6},_0x52c86a={_0x1305c6:0x1f4,_0x24b47c:0x381};if(!_0x547a48||typeof _0x547a48!==_0x1a7550(_0x28057e._0x177f88,0x499,0x478,0x44d))return'';const _0x19f6dd=_0x547a48;if(_0x19f6dd['type']===_0x515a3c(0x677,0x6b0,_0x28057e._0x536535,0x63a)&&typeof _0x19f6dd[_0x1a7550(_0x28057e._0x550af3,0x4cf,0x3e7,_0x28057e._0x50d1aa)]===_0x515a3c(_0x28057e._0x611a46,0x675,0x703,_0x28057e._0x302dc7))return _0x19f6dd[_0x1a7550(0x4b9,_0x28057e._0x53e534,0x3e7,_0x28057e._0x5963a1)];function _0x1a7550(_0x16ee69,_0x3ecc97,_0x5003e0,_0x57d652){return _0x26435f(_0x16ee69-_0x52c86a._0x1305c6,_0x16ee69,_0x5003e0-0x16a,_0x5003e0-_0x52c86a._0x24b47c);}function _0x515a3c(_0x441000,_0x191d06,_0x18bdf4,_0x308168){return _0x26435f(_0x441000-0x1f1,_0x18bdf4,_0x18bdf4-_0x5b4f7f._0x39cd0,_0x441000-0x549);}if(_0x19f6dd[_0x1a7550(_0x28057e._0x23d649,_0x28057e._0x3ee90e,_0x28057e._0x493ae2,0x317)]===_0x1a7550(_0x28057e._0x47fb29,0x2ea,_0x28057e._0x52885f,_0x28057e._0x514292)&&typeof _0x19f6dd[_0x1a7550(0x442,_0x28057e._0x546214,0x3b9,0x412)]===_0x1a7550(0x3db,0x59d,0x4ac,_0x28057e._0x8782e8))return _0x19f6dd['refusal'];return'';})[_0x26435f(0xac,_0x48ed6c._0x32ed9f,_0x48ed6c._0x615c28,-0x22)]('');}function extractOpenAiReasoningText(_0x30672f){const _0x4a0f6f={_0x5acee2:0x1fc,_0xa87b5d:0x18e,_0x4df40f:0x185,_0x14f90a:0x23,_0x400c28:0x6f,_0x4498e6:0xca},_0x46c165={_0x10f103:0x6c,_0x5c0c3c:0x1d9},_0x1c520f={_0x299a71:0x95};if(typeof _0x30672f[_0x4ba904(-0x73,-0x134,-0x127,-_0x4a0f6f._0x5acee2)]===_0xfa7e0f(_0x4a0f6f._0xa87b5d,_0x4a0f6f._0x4df40f,0x186,0xce))return _0x30672f['text'];function _0x4ba904(_0x916ebb,_0x37673d,_0xf7b078,_0x7ea18e){return _0x1c2b50(_0x916ebb-_0x1c520f._0x299a71,_0x37673d-0x31,_0x37673d- -0x24,_0xf7b078);}function _0xfa7e0f(_0x4bde21,_0xda5a96,_0x40f3f8,_0xe2a516){return _0x1c2b50(_0x4bde21-_0x46c165._0x10f103,_0xda5a96-0xc7,_0x4bde21-_0x46c165._0x5c0c3c,_0xe2a516);}if(!Array['isArray'](_0x30672f[_0xfa7e0f(_0x4a0f6f._0x14f90a,_0x4a0f6f._0x400c28,-0x35,0xcd)]))return'';return _0x30672f['content']['filter'](_0x854e5c=>_0x854e5c[_0x4ba904(-0xba,-0x1a9,-0x1d5,-0xf7)]===_0xfa7e0f(0xda,0x19c,0x2d,0x155)&&typeof _0x854e5c[_0xfa7e0f(0xc9,0x2e,0x112,0x20)]===_0x4ba904(-0xc2,-0x6f,-0x6c,0xb))[_0xfa7e0f(_0x4a0f6f._0x4498e6,0xac,0x5c,0x1a9)](_0x568a05=>_0x568a05['text']??'')['join']('');}function createOpenAiReasoningBlock(_0x297d4){const _0x15b2ef={_0x323ca2:0x2da,_0xd1f6dd:0x3c8,_0x711deb:0x37b,_0x49c739:0x2de,_0x4da876:0x2e9,_0x233261:0x121,_0xb8a606:0x5c,_0x670dea:0x12a,_0x1aeb4c:0x2bd,_0x4bc8e7:0x19,_0x5ea4f8:0x21},_0x1eaee8={_0x1b3d1c:0xae},_0x29403c={_0x12dbfc:0x37f},_0x52841d=extractOpenAiReasoningText(_0x297d4);function _0x599ce1(_0x9fd092,_0x46c084,_0x33c3e2,_0x22d9c8){return _0x1c2b50(_0x9fd092-0xc0,_0x46c084-0xbf,_0x22d9c8-_0x29403c._0x12dbfc,_0x33c3e2);}function _0x1526b9(_0x5995f4,_0x128c28,_0x38e75e,_0x6bc094){return _0x1c2b50(_0x5995f4-_0x1eaee8._0x1b3d1c,_0x128c28-0x1df,_0x6bc094-0x163,_0x38e75e);}return{'type':_0x599ce1(0x38d,_0x15b2ef._0x323ca2,_0x15b2ef._0xd1f6dd,_0x15b2ef._0x711deb),'summary':structuredClone(_0x297d4[_0x599ce1(_0x15b2ef._0x49c739,0x30e,0x23f,_0x15b2ef._0x4da876)]??[]),..._0x297d4['id']?{'id':_0x297d4['id']}:{},..._0x297d4[_0x1526b9(0x6e,_0x15b2ef._0x233261,_0x15b2ef._0xb8a606,_0x15b2ef._0x670dea)]?{'encryptedContent':_0x297d4[_0x599ce1(0x325,0x2d3,_0x15b2ef._0x1aeb4c,0x346)]}:{},..._0x52841d[_0x1526b9(0xe6,_0x15b2ef._0x4bc8e7,_0x15b2ef._0x5ea4f8,0xf7)]>0x0?{'text':_0x52841d}:{}};}function hasVisibleOpenAiReasoning(_0x55bb36){const _0x449f1e={_0x1ecddb:0x45d,_0x8c3695:0x47d,_0x3800bc:0x407,_0x4b077e:0x35e},_0xdf4d40={_0x3e0a24:0x70};function _0xc1d069(_0x3ead6d,_0xcf3b4a,_0x3a660f,_0x2fbf5f){return _0x263708(_0x3ead6d-_0xdf4d40._0x3e0a24,_0x2fbf5f,_0x3a660f-0x3a,_0x2fbf5f-0x19b);}function _0x24cace(_0x2e9edf,_0x2a5bff,_0xb95db0,_0x20fed9){return _0x1c2b50(_0x2e9edf-0x2c,_0x2a5bff-0x1d5,_0xb95db0-0x4a4,_0x2a5bff);}return _0x55bb36[_0x24cace(0x3a6,_0x449f1e._0x1ecddb,0x40e,0x4f0)][_0x24cace(0x42f,_0x449f1e._0x8c3695,0x438,_0x449f1e._0x3800bc)]>0x0||typeof _0x55bb36[_0xc1d069(0x2b5,_0x449f1e._0x4b077e,0x248,0x378)]==='string';}function parseChatCompletionResponse(_0xab36b4){const _0x2c5960={_0x2f02a4:0x4a5,_0x1189cc:0x272,_0x207dfb:0x1b9,_0x5ccecf:0x1fb,_0x3af364:0xfe,_0x58c757:0x8f,_0x55a262:0x512,_0x289dd7:0x582,_0x39d43d:0x65b,_0x8ab054:0x71e,_0x259189:0x641,_0x510a46:0x59d,_0x45d42e:0x4b8,_0x48b73c:0x5f5,_0x43ae6d:0x201,_0x5f3d19:0xf7,_0x365d18:0x5d9,_0x2fadcd:0x512,_0x26d9f4:0x515,_0x281ce2:0x188,_0x194322:0x606,_0x2ac886:0x553,_0x426019:0x64,_0x54f0fa:0x118},_0x126ce0={_0x5833c0:0x396},_0x187ddb={_0x12b475:0xee,_0x78e704:0x1a0,_0x8a168d:0x15b};function _0x3fa475(_0xb56c47,_0x1b03fe,_0x1a7dc1,_0x5f5819){return _0x263708(_0x1b03fe- -_0x187ddb._0x12b475,_0x1a7dc1,_0x1a7dc1-_0x187ddb._0x78e704,_0x5f5819-_0x187ddb._0x8a168d);}const _0x3eaf62=[],_0x5c8052=[];let _0x5ee064=_0x57ae76(0x4c0,0x603,0x517,_0x2c5960._0x2f02a4);for(const _0x174d43 of _0xab36b4[_0x3fa475(_0x2c5960._0x1189cc,_0x2c5960._0x207dfb,0x157,_0x2c5960._0x5ccecf)]??[]){const _0x299cb4=_0x174d43['message'],_0x4d6d7b=normalizeAssistantContent(_0x299cb4?.['content']);_0x4d6d7b['length']>0x0&&_0x3eaf62[_0x3fa475(0x38,_0x2c5960._0x3af364,_0x2c5960._0x58c757,_0x2c5960._0x207dfb)](_0x4d6d7b),_0x299cb4?.['tool_calls']&&_0x5c8052[_0x57ae76(0x595,_0x2c5960._0x55a262,_0x2c5960._0x289dd7,_0x2c5960._0x39d43d)](..._0x299cb4[_0x57ae76(0x5db,_0x2c5960._0x8ab054,_0x2c5960._0x259189,_0x2c5960._0x510a46)]),_0x174d43[_0x57ae76(_0x2c5960._0x45d42e,0x4b5,0x583,_0x2c5960._0x48b73c)]==='tool_calls'&&(_0x5ee064=_0x3fa475(0xed,0x18e,_0x2c5960._0x43ae6d,_0x2c5960._0x5f3d19));}_0x5c8052['length']>0x0&&(_0x5ee064='tool_use');function _0x57ae76(_0x2d863f,_0x474fea,_0x3afef5,_0x344e2e){return _0x263708(_0x3afef5-_0x126ce0._0x5833c0,_0x344e2e,_0x3afef5-0xca,_0x344e2e-0xa);}return{'id':_0xab36b4['id']??_0x57ae76(0x560,_0x2c5960._0x365d18,_0x2c5960._0x2fadcd,_0x2c5960._0x26d9f4)+Date[_0x3fa475(0x1ec,_0x2c5960._0x281ce2,0xad,0x159)](),'content':createContentBlocks(_0x3eaf62[_0x57ae76(0x4b9,_0x2c5960._0x194322,_0x2c5960._0x2ac886,0x4e1)](''),_0x5c8052),'stopReason':_0x5ee064,'usage':createUsage(_0xab36b4[_0x3fa475(_0x2c5960._0x426019,0x104,_0x2c5960._0x54f0fa,0x31)])};}function _0x263708(_0x27506d,_0x1164b0,_0x1a4b81,_0x4d71bf){const _0x3bec9e={_0x295f27:0x22};return _0x1b09(_0x27506d-_0x3bec9e._0x295f27,_0x1164b0);}function parseResponsesResponse(_0x4f27ad,_0x105b7e){const _0x2db2b7={_0x2e783b:0x28f,_0x370a52:0x1b4,_0x10f9da:0x1a4,_0x25197f:0x1e0,_0x299fc9:0x15f,_0x32d0e2:0xe1,_0x17f0cf:0x6c,_0x570e8e:0x81,_0x4dbe9b:0x26,_0x1cf9c0:0x78,_0x158a66:0x7f,_0x260652:0x106,_0x2a6eb2:0x169,_0x222b63:0x114,_0x48deee:0x116,_0x4aec35:0xda,_0x1e0fc0:0x1ae,_0x2e0573:0xf4,_0x2f7edd:0x62,_0x3c0548:0x1be,_0x5e0064:0x104,_0x1e8fea:0x35,_0x4023f6:0x87,_0x2ca5fb:0x15d,_0x23d3b1:0x200,_0x441159:0xcc,_0x145c2c:0xbd,_0x5b26df:0x6b,_0x1986e5:0x48,_0x170f23:0x82,_0x50d3aa:0xae,_0x8d17d6:0x125,_0x12e104:0x164,_0x404c4e:0xcf,_0x43c3aa:0x114,_0x5c7344:0x9c,_0x1a4cd7:0x194,_0x127747:0x111,_0x29b80f:0xf1,_0x1ac79b:0x1a,_0x10246a:0x65,_0x591247:0xc3,_0x3c8a42:0x5e,_0x3e8f05:0x67,_0x90af61:0x63,_0x5ceac5:0x1d9,_0x5a9365:0x159,_0x5129ae:0xdf,_0x33ba88:0xd,_0x2bdd13:0xe6,_0x159482:0x134,_0x5c47e9:0x1a3,_0x57f5d9:0x159,_0x345b1d:0x11b,_0x5940f1:0xb4,_0x3ef909:0x84,_0x34cd54:0x13d,_0x2f5c46:0x140,_0x29eb12:0x1aa,_0x493af0:0x1ef},_0x3a8e56={_0x33b0f4:0x34b,_0x3d165d:0x49},_0x12c267=[];for(const _0x140e17 of _0x4f27ad[_0x1bd2b6(_0x2db2b7._0x2e783b,_0x2db2b7._0x370a52,_0x2db2b7._0x10f9da,0xd3)]??[]){if(isResponsesReasoningItem(_0x140e17)){if(isUserVisibleReasoning(_0x105b7e)){const _0x576eb1=createOpenAiReasoningBlock(_0x140e17);hasVisibleOpenAiReasoning(_0x576eb1)&&_0x12c267[_0x36d2db(-0x167,-_0x2db2b7._0x25197f,-_0x2db2b7._0x299fc9,-_0x2db2b7._0x32d0e2)](_0x576eb1);}continue;}if(isResponsesMessageItem(_0x140e17)){const _0xf62734=normalizeResponsesMessageContent(_0x140e17[_0x1bd2b6(-_0x2db2b7._0x17f0cf,0x9,_0x2db2b7._0x570e8e,-0x9e)]);_0xf62734[_0x36d2db(-_0x2db2b7._0x4dbe9b,_0x2db2b7._0x1cf9c0,-0x62,-0x13b)]>0x0&&_0x12c267[_0x1bd2b6(_0x2db2b7._0x158a66,0x56,-0x7e,-0x73)]({'type':_0x36d2db(-0x63,-0x13a,-_0x2db2b7._0x260652,-0x1ab),'text':_0xf62734});continue;}if(!isResponsesFunctionCallItem(_0x140e17)||typeof _0x140e17['call_id']!=='string'||_0x140e17[_0x1bd2b6(_0x2db2b7._0x2a6eb2,_0x2db2b7._0x222b63,0xac,_0x2db2b7._0x48deee)][_0x36d2db(-0x18a,-_0x2db2b7._0x4aec35,-_0x2db2b7._0x1e0fc0,-0x27e)]()[_0x36d2db(0x42,-_0x2db2b7._0x2e0573,-_0x2db2b7._0x2f7edd,0x86)]===0x0||typeof _0x140e17[_0x1bd2b6(0x252,_0x2db2b7._0x3c0548,_0x2db2b7._0x5e0064,0xe0)]!==_0x36d2db(-_0x2db2b7._0x1e8fea,-0x75,-0x41,-_0x2db2b7._0x4023f6)||_0x140e17[_0x1bd2b6(_0x2db2b7._0x2ca5fb,0x1be,_0x2db2b7._0x23d3b1,0x296)][_0x36d2db(-_0x2db2b7._0x441159,-0x15f,-0x1ae,-0x141)]()[_0x36d2db(-_0x2db2b7._0x145c2c,-_0x2db2b7._0x5b26df,-_0x2db2b7._0x2f7edd,-_0x2db2b7._0x1986e5)]===0x0||typeof _0x140e17['arguments']!==_0x36d2db(_0x2db2b7._0x170f23,_0x2db2b7._0x50d3aa,-0x41,-0x117))continue;_0x12c267['push']({'type':_0x36d2db(-_0x2db2b7._0x8d17d6,-_0x2db2b7._0x12e104,-_0x2db2b7._0x404c4e,-_0x2db2b7._0x145c2c),'id':_0x140e17[_0x1bd2b6(0x3c,_0x2db2b7._0x43c3aa,0x11c,_0x2db2b7._0x5c7344)],'name':_0x140e17[_0x1bd2b6(_0x2db2b7._0x1a4cd7,0x1be,0xdf,0x119)],'input':parseToolInput2(_0x140e17['arguments'])});}function _0x1bd2b6(_0x5f5055,_0x13b691,_0x19459d,_0x4d4030){return _0x1c2b50(_0x5f5055-0xe7,_0x13b691-0x1dd,_0x13b691-0x1bf,_0x5f5055);}!_0x12c267['some'](_0x575ac6=>_0x575ac6['type']===_0x36d2db(-0x7a,-0x150,-0x106,-0x1ac))&&_0x4f27ad['output_text']&&_0x12c267[_0x1bd2b6(-0x8c,0x56,-0x56,_0x2db2b7._0x127747)]({'type':'text','text':_0x4f27ad[_0x36d2db(-_0x2db2b7._0x29b80f,-_0x2db2b7._0x1ac79b,-0x3e,-_0x2db2b7._0x48deee)]});function _0x36d2db(_0x5dd7cf,_0x3d3fd9,_0x127594,_0xd3f047){return _0x263708(_0x127594- -_0x3a8e56._0x33b0f4,_0x3d3fd9,_0x127594-0x145,_0xd3f047-_0x3a8e56._0x3d165d);}return{'id':_0x4f27ad['id'],'content':_0x12c267,'stopReason':_0x12c267['some'](_0xfb057d=>_0xfb057d[_0x36d2db(-0x21d,-0x1eb,-0x17b,-0x195)]==='tool_use')?_0x36d2db(-_0x2db2b7._0x10246a,-0x4f,-0xcf,-_0x2db2b7._0x591247):'end_turn','usage':{'inputTokens':_0x4f27ad[_0x1bd2b6(-_0x2db2b7._0x3c8a42,0x5c,_0x2db2b7._0x3e8f05,-_0x2db2b7._0x90af61)]?.['input_tokens']??0x0,'outputTokens':_0x4f27ad[_0x36d2db(-0xa6,-_0x2db2b7._0x5ceac5,-_0x2db2b7._0x5a9365,-0x134)]?.[_0x1bd2b6(-_0x2db2b7._0x5129ae,-_0x2db2b7._0x33ba88,-_0x2db2b7._0x2bdd13,0x60)]??0x0,..._0x4f27ad[_0x36d2db(-_0x2db2b7._0x159482,-_0x2db2b7._0x5c47e9,-_0x2db2b7._0x57f5d9,-_0x2db2b7._0x345b1d)]?.[_0x1bd2b6(-0x2b,_0x2db2b7._0x5940f1,-0x15,0x136)]?.[_0x36d2db(-0x60,-_0x2db2b7._0x3ef909,-_0x2db2b7._0x34cd54,-_0x2db2b7._0x2f5c46)]!==void 0x0?{'reasoningTokens':_0x4f27ad[_0x36d2db(-0xe4,-0xa0,-0x159,-_0x2db2b7._0x29eb12)]['output_tokens_details']['reasoning_tokens']}:{}},..._0x4f27ad['output']?{'providerState':{'openaiResponsesOutput':structuredClone(_0x4f27ad[_0x1bd2b6(0x24b,0x1b4,_0x2db2b7._0x493af0,0x188)]),'openaiResponsesResponseId':_0x4f27ad['id']}}:{}};}function extractErrorMessage(_0x9ad44f){const _0x272887={_0x17b4bf:0x10e,_0x44dec5:0x13e,_0xc0fbb4:0x26c,_0x46323a:0xc8,_0x2e362d:0x13e,_0x572c14:0x39,_0x2fa5ce:0xc8,_0x5f10e5:0x33,_0x27dee3:0x1,_0x1a2f2e:0xcd,_0x768775:0xa2,_0x42a0fc:0x85,_0x31017a:0x75,_0x2bb4eb:0xa5,_0x1a4be7:0xd8,_0x4e38b7:0xc6,_0x2c0477:0xad,_0x438d06:0x9c,_0x5982a9:0x112,_0x2e69c1:0x155,_0x4c1357:0x146,_0x337e0b:0x2f,_0x2d946e:0x16b,_0x124f17:0x87,_0x41f55f:0x2d},_0x238d57={_0x20f6f3:0x143};if(_0x9ad44f[_0xecc966(0x1f4,_0x272887._0x17b4bf,_0x272887._0x44dec5,0x210)]===0x0)return'';try{const _0x5633d3=JSON[_0xecc966(0x1c9,0x172,_0x272887._0xc0fbb4,0x294)](_0x9ad44f);if(typeof _0x5633d3[_0x3ce454(-0x9f,-0xf4,-_0x272887._0x46323a,-_0x272887._0x2e362d)]?.['message']===_0x3ce454(_0x272887._0x572c14,0x1c,_0x272887._0x2fa5ce,0x181)&&_0x5633d3['error'][_0x3ce454(-0x5a,_0x272887._0x5f10e5,-0x87,0xc)][_0x3ce454(-0x13,_0x272887._0x27dee3,-0xa5,-0xe5)]()[_0x3ce454(0x50,_0x272887._0x1a2f2e,0xa7,_0x272887._0x768775)]>0x0)return _0x5633d3[_0xecc966(_0x272887._0x42a0fc,0x114,-0x3d,0x6f)][_0x3ce454(-_0x272887._0x31017a,0x53,-0x87,-0x140)][_0x3ce454(0x3d,-0xc9,-_0x272887._0x2bb4eb,-_0x272887._0x1a4be7)]();if(typeof _0x5633d3[_0xecc966(_0x272887._0x4e38b7,0x1b6,0x19f,0xac)]===_0x3ce454(_0x272887._0x2c0477,0x15,_0x272887._0x2fa5ce,_0x272887._0x438d06)&&_0x5633d3['message'][_0x3ce454(0x13,-_0x272887._0x5982a9,-0xa5,-_0x272887._0x2e69c1)]()[_0x3ce454(_0x272887._0x4c1357,0x9b,0xa7,0x4b)]>0x0)return _0x5633d3[_0x3ce454(-_0x272887._0x337e0b,-_0x272887._0x2d946e,-_0x272887._0x124f17,0x5)][_0x3ce454(-0x62,-_0x272887._0x41f55f,-0xa5,-0x92)]();}catch{return _0x9ad44f;}function _0x3ce454(_0x2bc7b2,_0x3ddb43,_0x22437d,_0x216adf){return _0x1c2b50(_0x2bc7b2-_0x238d57._0x20f6f3,_0x3ddb43-0xb0,_0x22437d-0x113,_0x3ddb43);}function _0xecc966(_0x1af75b,_0x5530cf,_0x319696,_0x217644){return _0x1c2b50(_0x1af75b-0xb7,_0x5530cf-0x48,_0x1af75b-0x260,_0x319696);}return _0x9ad44f;}async function createOpenAiApiError(_0x259ba9){const _0x4fbab8={_0x85563a:0x1be,_0x3f1fb8:0xef,_0x39ccfd:0x42,_0x4e0199:0x22,_0x99da32:0x31,_0x206e3a:0x76,_0x2eb5cb:0x8a,_0x4f0f23:0x1bd},_0x39790c={_0x8d3648:0x88,_0x228fa6:0xc9},_0x51ecf6={_0x220fff:0x1ac,_0x2a4453:0x17e};function _0x2a2777(_0xa2f3dd,_0x24d88d,_0x321b0d,_0x24110d){return _0x1c2b50(_0xa2f3dd-_0x51ecf6._0x220fff,_0x24d88d-_0x51ecf6._0x2a4453,_0x24110d-0x1ec,_0x321b0d);}const _0x26a357=(await _0x259ba9[_0x2a2777(0x17a,_0x4fbab8._0x85563a,0x154,0xdc)]())[_0x48a6a9(-0x115,-_0x4fbab8._0x3f1fb8,-0x16,-_0x4fbab8._0x39ccfd)](),_0x2c51c7=extractErrorMessage(_0x26a357)||_0x259ba9[_0x48a6a9(0x9a,-_0x4fbab8._0x4e0199,-_0x4fbab8._0x99da32,-_0x4fbab8._0x206e3a)]||'OpenAI\x20API\x20error\x20'+_0x259ba9[_0x48a6a9(0x126,_0x4fbab8._0x2eb5cb,0xe2,0x13b)];function _0x48a6a9(_0x4f6ce2,_0x30ef0c,_0x1b5627,_0x6f179a){return _0x1c2b50(_0x4f6ce2-_0x39790c._0x8d3648,_0x30ef0c-0x79,_0x30ef0c-_0x39790c._0x228fa6,_0x6f179a);}return new OpenAiApiError(_0x259ba9[_0x2a2777(0x13c,0x1e3,_0x4fbab8._0x4f0f23,0x1ad)],_0x26a357,_0x2c51c7);}function readSseData(_0x156940){const _0x22eae2={_0x4d14d0:0x4c9,_0x29834d:0x456,_0x53c012:0x49f,_0x4d7b6a:0x285,_0x1226d4:0x371,_0x2938ad:0x326,_0x117e11:0x3b1,_0x5b23cb:0x31e,_0x5909ff:0x437,_0x41abef:0x4d8,_0x4ea4c9:0x4c5},_0xcbf7c8={_0x598b05:0x30,_0x2582ff:0x4bf};function _0x559266(_0x1f7649,_0x569ecd,_0x108fc9,_0xcbdd4c){return _0x1c2b50(_0x1f7649-_0xcbf7c8._0x598b05,_0x569ecd-0x9b,_0x569ecd-_0xcbf7c8._0x2582ff,_0xcbdd4c);}function _0x2ebee8(_0x5d0605,_0x252b2f,_0x17a590,_0x16fd32){return _0x1c2b50(_0x5d0605-0x147,_0x252b2f-0x40,_0x17a590-0x67d,_0x252b2f);}return _0x156940[_0x559266(_0x22eae2._0x4d14d0,_0x22eae2._0x29834d,0x511,_0x22eae2._0x53c012)]('\x0a')[_0x559266(_0x22eae2._0x4d7b6a,0x2e8,_0x22eae2._0x1226d4,_0x22eae2._0x2938ad)](_0x5a31dc=>_0x5a31dc[_0x559266(0x431,0x40c,0x359,0x3a5)](_0x559266(0x41e,0x3db,0x414,0x466)))['map'](_0x16217a=>_0x16217a[_0x559266(0x45e,0x418,0x38b,0x4c2)](0x5)[_0x559266(0x3ef,0x32e,0x250,0x3a4)]())[_0x559266(0x2bc,0x327,_0x22eae2._0x117e11,_0x22eae2._0x5b23cb)]('\x0a')[_0x2ebee8(_0x22eae2._0x5909ff,_0x22eae2._0x41abef,_0x22eae2._0x4ea4c9,0x511)]();}function readString(_0x46cc60){const _0x136a7b={_0x1b47bc:0x3e4,_0x59b56a:0x4c7},_0x4d00be={_0x23cf58:0x1b0};function _0x1f01c2(_0x135e4b,_0x56e2be,_0x767ca0,_0xeb955d){return _0x263708(_0x767ca0-0x19a,_0xeb955d,_0x767ca0-_0x4d00be._0x23cf58,_0xeb955d-0x2c);}return typeof _0x46cc60==='string'&&_0x46cc60[_0x1f01c2(_0x136a7b._0x1b47bc,0x4f4,0x483,_0x136a7b._0x59b56a)]>0x0?_0x46cc60:void 0x0;}function extractReasoningDetails(_0x494065){const _0xb24bfb={_0x3f4ebc:0x543,_0x523f9:0x5a6,_0x227588:0x4aa,_0xb299c2:0x49f,_0x2bb8e1:0x561},_0xd92c1b={_0x442d65:0xdc,_0xb0d98f:0x2d},_0x1ef05b={_0x41942f:0x1c5,_0x5eafad:0x258,_0x559f1c:0x206,_0x2f2333:0x26f,_0x5af007:0x1ed,_0x503bf3:0x28d,_0x3d5554:0x322,_0x95a75d:0x10e,_0x15294e:0x64,_0x52a6cd:0x94,_0x7f99b7:0x17a,_0x5d14c2:0x8,_0x2172af:0x94,_0x4b4919:0xbd},_0x4fb857={_0x41697d:0xad,_0x6225a7:0x1b4};function _0x540f6d(_0x2eb9d0,_0x15d378,_0x15db58,_0x3ca40e){return _0x263708(_0x3ca40e-0x2e1,_0x15db58,_0x15db58-_0x4fb857._0x41697d,_0x3ca40e-_0x4fb857._0x6225a7);}if(!Array[_0x4d72fc(0x465,_0xb24bfb._0x3f4ebc,_0xb24bfb._0x523f9,0x53b)](_0x494065))return void 0x0;const _0x16926d=_0x494065[_0x540f6d(_0xb24bfb._0x227588,_0xb24bfb._0xb299c2,0x4ac,0x4e9)](_0x1352c1=>{const _0x23b72d={_0x3f56de:0x16c,_0x245406:0x9,_0x35873f:0x59c};if(!_0x1352c1||typeof _0x1352c1!==_0x30cb93(0x212,0x259,_0x1ef05b._0x41942f,_0x1ef05b._0x5eafad))return[];const _0x415514=_0x1352c1;function _0x30cb93(_0x3a8bf1,_0x175310,_0x582e55,_0x21af86){return _0x540f6d(_0x3a8bf1-0x12e,_0x175310-0x65,_0x3a8bf1,_0x175310- -0x35e);}if(typeof _0x415514[_0x30cb93(_0x1ef05b._0x559f1c,0x1c8,_0x1ef05b._0x2f2333,_0x1ef05b._0x5af007)]===_0x30cb93(0x208,_0x1ef05b._0x503bf3,0x1ee,_0x1ef05b._0x3d5554))return[_0x415514[_0x35eb8c(-0x174,-_0x1ef05b._0x95a75d,-0x1b4,-0x9d)]];function _0x35eb8c(_0x432448,_0x8dd94a,_0x509b0a,_0x4f90b1){return _0x4d72fc(_0x432448-_0x23b72d._0x3f56de,_0x8dd94a-_0x23b72d._0x245406,_0x4f90b1,_0x8dd94a- -_0x23b72d._0x35873f);}if(typeof _0x415514[_0x35eb8c(-_0x1ef05b._0x15294e,-_0x1ef05b._0x52a6cd,-0xa3,-_0x1ef05b._0x7f99b7)]==='string')return[_0x415514[_0x35eb8c(-_0x1ef05b._0x5d14c2,-_0x1ef05b._0x2172af,-0x10c,-_0x1ef05b._0x4b4919)]];return[];});function _0x4d72fc(_0x156bf9,_0x25bddf,_0x538169,_0x20979a){return _0x263708(_0x20979a-0x249,_0x538169,_0x538169-_0xd92c1b._0x442d65,_0x20979a-_0xd92c1b._0xb0d98f);}return _0x16926d[_0x4d72fc(0x58e,_0xb24bfb._0x2bb8e1,0x4ae,0x532)]>0x0?_0x16926d[_0x540f6d(0x529,0x41b,0x557,0x49e)](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x1fb892){const _0x21b3a5={_0x5201d0:0x485,_0x3a3ee4:0x54f,_0x4c58c3:0x55b,_0x2fb614:0x403,_0x2ef654:0x438,_0x30f05d:0x53d,_0x9c0c70:0x59e},_0x5ce39a={_0x5e49aa:0x2ca},_0x494bf3={_0x4b6032:0x15d,_0x56fc53:0x136,_0x5c4bd4:0xe1};function _0x57091a(_0x200f2a,_0x2b62da,_0x11c79b,_0xd31159){return _0x263708(_0xd31159-_0x494bf3._0x4b6032,_0x2b62da,_0x11c79b-_0x494bf3._0x56fc53,_0xd31159-_0x494bf3._0x5c4bd4);}function _0x18feeb(_0x67c17,_0x3456b2,_0x75940e,_0x22b244){return _0x263708(_0x67c17-_0x5ce39a._0x5e49aa,_0x75940e,_0x75940e-0x115,_0x22b244-0x8d);}return extractReasoningDetails(_0x1fb892?.[_0x57091a(_0x21b3a5._0x5201d0,_0x21b3a5._0x3a3ee4,0x519,0x48b)])??readString(_0x1fb892?.[_0x18feeb(0x4aa,_0x21b3a5._0x4c58c3,_0x21b3a5._0x2fb614,_0x21b3a5._0x2ef654)])??readString(_0x1fb892?.[_0x18feeb(0x4fa,_0x21b3a5._0x30f05d,_0x21b3a5._0x9c0c70,0x417)])??readString(_0x1fb892?.['reasoning_text'])??'';}var OpenAiChatCompletionsStreamParser=class{['reasoningParts']=[];['request'];[_0x1c2b50(-0x200,-0x7d,-0x15c,-0xde)]=[];[_0x1c2b50(-0x68,-0x81,-0x65,0x17)]=new Map();[_0x1c2b50(-0x1c6,-0x100,-0x1b5,-0x1af)]=[];['toolUseStartEmitted']=new Set();[_0x1c2b50(-0xc1,-0x204,-0x16f,-0xab)]='';['stopReason']=_0x263708(0x181,0xe3,0x240,0x1fa);['usage'];constructor(_0x2e7ef9){const _0xa2aa72={_0x728826:0x2fd},_0x86f532={_0xc426d9:0x30,_0x4b4c23:0x11b};function _0x11fa5d(_0x5b5aa7,_0x30f6ab,_0x56161d,_0x51f6fb){return _0x263708(_0x56161d-0x82,_0x5b5aa7,_0x56161d-_0x86f532._0xc426d9,_0x51f6fb-_0x86f532._0x4b4c23);}this[_0x11fa5d(0x2da,0x344,_0xa2aa72._0x728826,0x3eb)]=_0x2e7ef9;}[_0x263708(0x2c0,0x239,0x266,0x370)](_0x5aa095){const _0x19743b={_0x216f36:0x3c2,_0x1d43e5:0x360,_0x28b693:0x58a,_0x427ef8:0x4d2,_0x2627d1:0x484,_0xfbae89:0x3ce,_0x28311b:0x3f1,_0xa9b62c:0x43d,_0x15bf41:0x40e},_0x4eb363={_0x1bd946:0x641},_0x5767a5={_0x13fa44:0x189};function _0xfe8961(_0x3d82f8,_0x1fabe2,_0x32584,_0x4d387e){return _0x263708(_0x1fabe2-0x1dc,_0x4d387e,_0x32584-0x1e7,_0x4d387e-_0x5767a5._0x13fa44);}const _0x414d18=readSseData(_0x5aa095);if(_0x414d18['length']===0x0||_0x414d18===_0x1ca1cf(0x67a,0x65e,0x67b,0x5e7))return[];const _0x4ac8bc=JSON['parse'](_0x414d18);this[_0xfe8961(0x476,_0x19743b._0x216f36,_0x19743b._0x1d43e5,0x419)]=_0x4ac8bc['id']??this[_0x1ca1cf(0x4ab,_0x19743b._0x28b693,0x57a,_0x19743b._0x427ef8)];function _0x1ca1cf(_0x4007e8,_0x28c640,_0xd71e94,_0x110ae6){return _0x1c2b50(_0x4007e8-0x163,_0x28c640-0x25,_0x110ae6-_0x4eb363._0x1bd946,_0x28c640);}return this[_0xfe8961(_0x19743b._0x2627d1,_0x19743b._0xfbae89,_0x19743b._0x28311b,_0x19743b._0xa9b62c)]=_0x4ac8bc[_0xfe8961(0x4a6,0x3ce,0x499,0x4ae)]??this[_0xfe8961(0x2f2,0x3ce,0x3cd,_0x19743b._0x15bf41)],this['consumeEvent'](_0x4ac8bc);}[_0x263708(0x215,0x17d,0x1ee,0x2b2)](){const _0x1e343e={_0xc9da75:0x3ce,_0x1ecb8c:0x456,_0x1d5776:0x68e,_0x5ba44d:0x67c,_0x6f6b67:0x664,_0xb86ccb:0x653,_0xf2a36a:0x6aa,_0x265f86:0x543,_0xb1aa24:0x556,_0x25d616:0x4c6,_0x251b73:0x515,_0x24c868:0x56a,_0x29471a:0x559,_0x109742:0x645,_0x26e078:0x5dc,_0x4908bc:0x465,_0x25b8f2:0x492,_0x3c6ea4:0x406,_0x3dafe8:0x475,_0x5ac18b:0x676,_0x34fafc:0x5a0,_0x3ff018:0x469,_0x2264c7:0x599,_0x51ad7d:0x4c7},_0x3ca926={_0x2a569c:0x166,_0xe9e616:0x6ee},_0x4b78fc={_0x520b24:0x1d7};this[_0x2e0a44(0x562,_0x1e343e._0xc9da75,0x475,_0x1e343e._0x1ecb8c)][_0xa1c4af(0x682,_0x1e343e._0x1d5776,0x6bb,_0x1e343e._0x5ba44d)]>0x0&&(this[_0xa1c4af(_0x1e343e._0x6f6b67,_0x1e343e._0xb86ccb,0x6e9,0x700)]=_0xa1c4af(0x615,0x657,0x573,_0x1e343e._0xf2a36a));function _0x2e0a44(_0x5309a4,_0x2a816c,_0x19c0b9,_0x14e892){return _0x263708(_0x19c0b9-0x2d5,_0x2a816c,_0x19c0b9-_0x4b78fc._0x520b24,_0x14e892-0xee);}const _0x1a54c2=isUserVisibleReasoning(this[_0x2e0a44(_0x1e343e._0x265f86,0x564,0x550,0x53d)])?this['reasoningParts'][_0xa1c4af(_0x1e343e._0xb1aa24,0x645,0x4f8,_0x1e343e._0x25d616)](''):void 0x0;function _0xa1c4af(_0x3fd945,_0x28b25e,_0x5d5cc3,_0x3d7703){return _0x1c2b50(_0x3fd945-0x54,_0x28b25e-_0x3ca926._0x2a569c,_0x3fd945-_0x3ca926._0xe9e616,_0x3d7703);}return{'id':this['responseId']||_0xa1c4af(_0x1e343e._0x251b73,0x5a6,_0x1e343e._0x24c868,_0x1e343e._0x29471a)+Date[_0xa1c4af(0x60f,0x5d4,_0x1e343e._0x109742,_0x1e343e._0x26e078)](),'content':createContentBlocks(this[_0x2e0a44(0x42b,0x551,0x4ce,0x526)][_0x2e0a44(_0x1e343e._0x4908bc,_0x1e343e._0x1ecb8c,_0x1e343e._0x25b8f2,0x528)](''),this[_0x2e0a44(0x49a,_0x1e343e._0x3c6ea4,_0x1e343e._0x3dafe8,0x461)],_0x1a54c2),'stopReason':this[_0x2e0a44(_0x1e343e._0x5ac18b,0x63a,_0x1e343e._0x34fafc,0x5db)],'usage':createUsage(this[_0x2e0a44(_0x1e343e._0x3ff018,_0x1e343e._0x2264c7,_0x1e343e._0x51ad7d,0x571)])};}[_0x263708(0x2f5,0x284,0x3bb,0x346)](_0x39099a){const _0x48b24f={_0x3e6c1a:0x0,_0x3a959f:0x47,_0x413423:0x17,_0x15e006:0x6f,_0x1ab276:0x28e,_0x3c56b6:0x1c5,_0x42cf5d:0x336,_0x34fcfe:0x329,_0x95b15b:0x123,_0x4c05e2:0x36a,_0x4bb32e:0x1c2,_0x40f617:0x3ac,_0xf3aafe:0x43c,_0x1ed17f:0x3bd,_0x181e97:0x131,_0x3ec030:0x5a,_0x27c1a7:0x32,_0x66d47b:0x98,_0x17ac81:0x15c,_0x2ffc2e:0xf0,_0xb9b5a7:0x15b,_0xad0b73:0xfd,_0x879066:0x17f,_0x55485d:0x23,_0x30e8ed:0x3e,_0x55970a:0xd2,_0x39cc51:0x120,_0x24e975:0x392,_0x1e9823:0x2d6,_0x21b74d:0x169,_0x545977:0x11b,_0xb8d67e:0xb9,_0x58a419:0x147,_0x744a1e:0xbd,_0x3349df:0x31,_0x54f4ac:0x41,_0x2b7483:0x44,_0x337804:0x147,_0x4870a9:0x22,_0x28f31a:0x2b5,_0x390576:0x2cd,_0x48fc7b:0x38d,_0x2c2b73:0x249,_0x6c216:0x112,_0x32fc6e:0x6b,_0x274c06:0x8f,_0x13fa17:0x3de,_0x16acfb:0x177,_0x41baf:0x3f6,_0x3ad2ee:0x314,_0x478812:0x3e3,_0x242e4c:0x4ca,_0x551e33:0x18d,_0x5327d4:0x274,_0x4427d:0xcd,_0x26e85e:0x41,_0x2603dc:0x3f6,_0x18804a:0x30c,_0xa421d5:0x35d,_0x3ef50b:0xfd,_0x51a9df:0x16c,_0x5c4bcc:0x20a,_0x549a3a:0x3c2,_0x52881c:0x459,_0x2498ae:0x38b,_0x464c5f:0x2e1,_0x3f3a94:0x3cc,_0x4d0179:0x40c,_0x439c8e:0x49,_0x21daa0:0x2f9,_0x2fabd9:0x26d,_0x266b51:0x2a1,_0x2753f0:0x1db,_0x52a369:0xfc,_0x502f88:0x1d0,_0x174392:0x3f0,_0x26c561:0x31e,_0xc7534:0x3e3,_0x391f06:0x302},_0x1d79f2={_0x6c4042:0x2e9},_0x5062a7={_0x2056c:0x18e,_0x147e8b:0x3f7},_0x1671d3=[];function _0x3c343a(_0x21f28e,_0x58830e,_0x58eb20,_0x5e653f){return _0x1c2b50(_0x21f28e-_0x5062a7._0x2056c,_0x58830e-0x4a,_0x21f28e-_0x5062a7._0x147e8b,_0x58830e);}for(const _0x498d31 of _0x39099a['choices']??[]){const _0x53915c=_0x498d31[_0x2a35b3(_0x48b24f._0x3e6c1a,_0x48b24f._0x3a959f,_0x48b24f._0x413423,-0xc7)],_0x43a3b9=extractChatCompletionReasoningDelta(_0x53915c);_0x43a3b9[_0x2a35b3(0x5b,-0xb2,0x0,0x37)]>0x0&&(this[_0x2a35b3(-0x10f,0x97,-0x51,_0x48b24f._0x15e006)]['push'](_0x43a3b9),isUserVisibleReasoning(this['request'])&&_0x1671d3[_0x3c343a(_0x48b24f._0x1ab276,0x336,_0x48b24f._0x3c56b6,_0x48b24f._0x42cf5d)]({'type':_0x3c343a(0x3a9,0x383,0x30e,_0x48b24f._0x34fcfe),'contentIndex':0x0,'delta':_0x43a3b9,'itemId':(this[_0x2a35b3(-_0x48b24f._0x95b15b,-0x9a,-0x103,-0x142)]||_0x3c343a(0x30b,0x363,0x3a5,_0x48b24f._0x4c05e2))+_0x3c343a(0x2a9,0x212,_0x48b24f._0x4bb32e,0x34c),'outputIndex':0x0}));const _0x126f14=typeof _0x53915c?.['content']==='string'?_0x53915c[_0x2a35b3(-0x218,-0x18d,-0x14a,-0x1be)]:typeof _0x53915c?.[_0x3c343a(0x2b9,0x381,0x2d0,0x21c)]===_0x3c343a(_0x48b24f._0x40f617,_0x48b24f._0xf3aafe,0x340,_0x48b24f._0x1ed17f)?_0x53915c[_0x2a35b3(-_0x48b24f._0x181e97,-_0x48b24f._0x3ec030,-0xd2,-0x1b6)]:'';_0x126f14[_0x2a35b3(0x51,-_0x48b24f._0x27c1a7,0x0,_0x48b24f._0x66d47b)]>0x0&&(this[_0x2a35b3(-0x42,-_0x48b24f._0x17ac81,-_0x48b24f._0x2ffc2e,-_0x48b24f._0xb9b5a7)][_0x3c343a(0x28e,0x2a4,0x29e,0x1ce)](_0x126f14),_0x1671d3[_0x2a35b3(-0x1a3,-0xa2,-_0x48b24f._0xad0b73,-0xfe)]({'type':_0x2a35b3(-0x191,-_0x48b24f._0x879066,-0x11f,-0xac),'index':0x0,'text':_0x126f14}));for(const _0x2f6c36 of _0x53915c?.[_0x2a35b3(-_0x48b24f._0x55485d,0x30,-_0x48b24f._0x30e8ed,-0x29)]??[]){const _0x5f52b9=_0x2f6c36[_0x2a35b3(_0x48b24f._0x55970a,_0x48b24f._0x39cc51,0x42,-0x5)]??0x0;let _0x467463=this[_0x3c343a(_0x48b24f._0x24e975,0x3e9,0x2d4,_0x48b24f._0x1e9823)][_0x2a35b3(-_0x48b24f._0x21b74d,-_0x48b24f._0x66d47b,-_0x48b24f._0x545977,-0x9b)](_0x5f52b9);!_0x467463&&(_0x467463={'id':_0x2f6c36['id']??_0x2a35b3(-_0x48b24f._0xb8d67e,-_0x48b24f._0x58a419,-0xb2,-_0x48b24f._0x744a1e)+_0x5f52b9,'type':'function','function':{'name':_0x2f6c36[_0x2a35b3(0x9c,-_0x48b24f._0x3349df,_0x48b24f._0x54f4ac,_0x48b24f._0x2b7483)]?.[_0x2a35b3(_0x48b24f._0x337804,0xdd,0x6b,_0x48b24f._0x4870a9)]??'','arguments':''}},this[_0x3c343a(_0x48b24f._0x24e975,_0x48b24f._0x28f31a,_0x48b24f._0x390576,_0x48b24f._0x48fc7b)]['set'](_0x5f52b9,_0x467463),this[_0x3c343a(0x242,_0x48b24f._0x2c2b73,0x1a8,_0x48b24f._0x1e9823)]['push'](_0x467463));_0x2f6c36['id']&&(_0x467463['id']=_0x2f6c36['id']);_0x2f6c36['function']?.[_0x2a35b3(0x147,_0x48b24f._0x6c216,_0x48b24f._0x32fc6e,_0x48b24f._0x274c06)]&&(_0x467463['function'][_0x3c343a(0x3f6,0x33e,0x4b3,0x461)]=_0x2f6c36[_0x3c343a(0x3cc,0x313,_0x48b24f._0x13fa17,0x45a)]['name']);!this['toolUseStartEmitted'][_0x2a35b3(-0x54,-0x11f,-_0x48b24f._0x181e97,-_0x48b24f._0x16acfb)](_0x5f52b9)&&_0x467463['function'][_0x3c343a(_0x48b24f._0x41baf,_0x48b24f._0x3ad2ee,_0x48b24f._0x478812,_0x48b24f._0x242e4c)][_0x3c343a(0x23f,_0x48b24f._0x551e33,_0x48b24f._0x5327d4,0x1c9)]()[_0x3c343a(0x38b,0x3b9,0x39c,_0x48b24f._0x13fa17)]>0x0&&(_0x1671d3['push']({'type':'tool_use_delta','id':_0x467463['id'],'index':_0x5f52b9,'name':_0x467463[_0x2a35b3(0xe0,_0x48b24f._0x4427d,_0x48b24f._0x26e85e,-_0x48b24f._0x55485d)][_0x3c343a(_0x48b24f._0x2603dc,0x46c,0x3d5,0x320)]}),this[_0x3c343a(0x2ae,0x36c,_0x48b24f._0x18804a,_0x48b24f._0xa421d5)][_0x2a35b3(-_0x48b24f._0x3ef50b,-0x198,-_0x48b24f._0x51a9df,-_0x48b24f._0x5c4bcc)](_0x5f52b9));const _0x19d14a=_0x2f6c36['function']?.[_0x3c343a(0x3e2,_0x48b24f._0x549a3a,0x3f1,_0x48b24f._0x52881c)]??'';_0x19d14a[_0x3c343a(_0x48b24f._0x2498ae,0x461,0x31b,_0x48b24f._0x464c5f)]>0x0&&(_0x467463[_0x3c343a(_0x48b24f._0x3f3a94,0x3dd,_0x48b24f._0x4d0179,0x499)][_0x2a35b3(0xc6,0xa3,0x57,_0x48b24f._0x439c8e)]+=_0x19d14a,_0x1671d3[_0x3c343a(0x28e,_0x48b24f._0x21daa0,0x349,_0x48b24f._0x2fabd9)]({'type':_0x3c343a(0x309,_0x48b24f._0x266b51,0x2ba,0x235),'id':_0x467463['id'],'index':_0x5f52b9,'inputDelta':_0x19d14a}));}_0x498d31[_0x2a35b3(-_0x48b24f._0x2753f0,-0x81,-_0x48b24f._0x52a369,-_0x48b24f._0x502f88)]===_0x3c343a(0x34d,_0x48b24f._0x174392,0x35a,0x2c2)&&(this['stopReason']=_0x3c343a(_0x48b24f._0x26c561,0x2d7,_0x48b24f._0xc7534,_0x48b24f._0x391f06));}function _0x2a35b3(_0x53c210,_0x375364,_0x40d01b,_0x394084){return _0x263708(_0x40d01b- -_0x1d79f2._0x6c4042,_0x394084,_0x40d01b-0x3f,_0x394084-0x80);}return _0x1671d3;}},OpenAiResponsesStreamParser=class{[_0x263708(0x232,0x1fa,0x283,0x154)]=new Map();[_0x263708(0x1ee,0x2b6,0x1f1,0x142)];[_0x263708(0x196,0x1d0,0x16f,0x1f3)]=new Map();[_0x1c2b50(-0x15a,-0x145,-0xd8,-0x1a4)]=new Map();['reasoningItems']=new Map();[_0x1c2b50(-0x86,-0x13a,-0xda,-0xa1)];['responseTextParts']=new Map();[_0x263708(0x266,0x277,0x1d3,0x2a1)]=new Map();constructor(_0x537dd8){const _0x174935={_0x11335c:0x3,_0x33ae27:0x9e};function _0x30398b(_0x4b71fd,_0x3a15b6,_0x59032e,_0x475135){return _0x1c2b50(_0x4b71fd-0x5c,_0x3a15b6-0xe0,_0x475135-0x99,_0x3a15b6);}this[_0x30398b(_0x174935._0x11335c,-0x4b,-_0x174935._0x33ae27,-0x41)]=_0x537dd8;}['consumeSseEvent'](_0x3ac82b){const _0x23ca82={_0x5befd9:0xea,_0xd96c97:0xc6,_0x33acfc:0x377,_0x456f49:0x2ab,_0x2ddf0d:0x17e,_0x450bb4:0x174,_0x1df882:0x220,_0x3c151b:0xd5,_0xe114ee:0xc5,_0x3f3782:0x2d5,_0x2c1495:0x1e1,_0x2091ba:0x4ec,_0x217a51:0x4e6,_0x566512:0x1d6,_0x18ffcc:0x307,_0x431d47:0xee,_0x5ef5d9:0x27},_0x1fa016={_0x37c817:0xf3},_0x3aee9d={_0x39118a:0x198},_0x482350=_0x3ac82b['split']('\x0a');function _0x15e47f(_0x537b9b,_0x486df4,_0x5a4ea0,_0x328002){return _0x1c2b50(_0x537b9b-_0x3aee9d._0x39118a,_0x486df4-0x60,_0x537b9b-0x28d,_0x5a4ea0);}const _0x5c7392=_0x482350[_0x15e47f(_0x23ca82._0x5befd9,0x1a6,_0x23ca82._0xd96c97,0x15a)](_0x1e61af=>_0x1e61af[_0x15e47f(0x1da,0x2c4,0x25c,0xf5)](_0x152db5(0x408,0x492,0x340,0x3c7)))?.[_0x152db5(0x488,0x3f9,0x3e9,0x3b2)](0x6)[_0x152db5(_0x23ca82._0x33acfc,0x30e,_0x23ca82._0x456f49,0x40d)]();function _0x152db5(_0x4f3143,_0x8a0460,_0x357aba,_0x5322a0){return _0x263708(_0x4f3143-0x1da,_0x357aba,_0x357aba-0x107,_0x5322a0-_0x1fa016._0x37c817);}const _0x20b3b9=_0x482350['filter'](_0x11c7ec=>_0x11c7ec['startsWith'](_0x152db5(0x44b,0x48b,0x435,0x49c)))[_0x15e47f(_0x23ca82._0x2ddf0d,_0x23ca82._0x450bb4,0x254,_0x23ca82._0x1df882)](_0x510179=>_0x510179[_0x15e47f(0x1e6,0x1ff,0x14f,0x17f)](0x5)['trimStart']())['join']('\x0a')[_0x15e47f(_0x23ca82._0x3c151b,0xd5,_0x23ca82._0xe114ee,0xbe)]();if(_0x20b3b9[_0x15e47f(0x221,0x27d,_0x23ca82._0x3f3782,_0x23ca82._0x2c1495)]===0x0||_0x20b3b9===_0x152db5(0x4d5,_0x23ca82._0x2091ba,0x559,_0x23ca82._0x217a51))return[];const _0x38b6e8=JSON['parse'](_0x20b3b9);return this[_0x15e47f(0x22d,_0x23ca82._0x566512,_0x23ca82._0x18ffcc,0x21b)](_0x5c7392??String(_0x38b6e8[_0x15e47f(0x108,_0x23ca82._0x431d47,_0x23ca82._0x5ef5d9,0x184)]??''),_0x38b6e8);}[_0x263708(0x2bd,0x3a7,0x377,0x1ee)](_0x390913){const _0x591e42={_0x651d73:0x63f,_0x4254a7:0x589},_0x353828={_0x2fe976:0x294};function _0x5e31a6(_0x22f9ca,_0x2726f2,_0xc3d3ac,_0x2c32d4){return _0x263708(_0xc3d3ac-_0x353828._0x2fe976,_0x22f9ca,_0xc3d3ac-0xbb,_0x2c32d4-0xd5);}return this[_0x5e31a6(_0x591e42._0x651d73,0x66b,_0x591e42._0x4254a7,0x66b)](String(_0x390913['type']??''),_0x390913);}[_0x1c2b50(-0x78,-0xed,-0x140,-0x1f9)](){const _0x2c882b={_0x3886e0:0x243,_0x3d65c8:0x24c,_0x4be1d2:0x1b8,_0x1f5e86:0x29e,_0x3e4198:0x250,_0x2e5924:0x2c5,_0x34be54:0x1f6,_0x838051:0x21c,_0x121848:0x3d,_0x156755:0x195,_0x311a00:0x5e,_0x1aad80:0x1f6,_0x3a9afc:0x42,_0x3ead88:0x258,_0x1d30b9:0x1b5,_0x43cb63:0x110,_0x25c7b4:0x9c,_0xdc8290:0xdc,_0x1c64f9:0x1e3},_0x1906ee={_0x520408:0x1c5,_0x8b5557:0x185},_0x45a87d={_0x296abb:0x1e,_0x2b6f42:0x2c};function _0x5dd640(_0x57fe6d,_0x1b5d2e,_0x152efc,_0x42903b){return _0x1c2b50(_0x57fe6d-0x65,_0x1b5d2e-_0x45a87d._0x296abb,_0x152efc- -_0x45a87d._0x2b6f42,_0x57fe6d);}function _0x3588b0(_0x3c7e2f,_0x2b25bb,_0x59e31b,_0x5436fa){return _0x1c2b50(_0x3c7e2f-_0x1906ee._0x520408,_0x2b25bb-_0x1906ee._0x8b5557,_0x59e31b- -0x8f,_0x3c7e2f);}const _0x2d7ed6=this[_0x5dd640(-_0x2c882b._0x3886e0,-_0x2c882b._0x3d65c8,-_0x2c882b._0x4be1d2,-_0x2c882b._0x1f5e86)](),_0x4c8344=this[_0x3588b0(-_0x2c882b._0x3e4198,-0x296,-0x1f6,-0x247)]?{...this['finalResponse'],'output':this[_0x3588b0(-_0x2c882b._0x2e5924,-0x1e7,-_0x2c882b._0x34be54,-_0x2c882b._0x838051)]['output']&&this['finalResponse'][_0x5dd640(-0x9b,_0x2c882b._0x121848,-0x37,-0x3e)][_0x3588b0(-0xf,-_0x2c882b._0x156755,-0xfb,-_0x2c882b._0x311a00)]>0x0?this[_0x3588b0(-0x170,-0x19a,-_0x2c882b._0x1aad80,-0x11a)][_0x3588b0(-_0x2c882b._0x3a9afc,-0x118,-0x9a,-0x38)]:_0x2d7ed6}:{'id':_0x3588b0(-0x1f7,-_0x2c882b._0x3ead88,-_0x2c882b._0x1d30b9,-_0x2c882b._0x43cb63)+Date[_0x3588b0(-_0x2c882b._0x25c7b4,-0x22f,-0x16e,-_0x2c882b._0xdc8290)](),'object':_0x5dd640(-0x10b,-0x102,-_0x2c882b._0x1c64f9,-0x140),'status':'completed','output':_0x2d7ed6,'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x4c8344,this['request']);}[_0x263708(0x265,0x20a,0x244,0x21d)](){const _0x527343={_0x5f1bd2:0x1f3},_0x2abb15={_0x5f2168:0x5};function _0x2bb262(_0x33aa9a,_0x5c7719,_0xb513be,_0x73a505){return _0x263708(_0x73a505-_0x2abb15._0x5f2168,_0x5c7719,_0xb513be-0x1ea,_0x73a505-0xee);}return this[_0x2bb262(_0x527343._0x5f1bd2,0x2db,0x129,_0x527343._0x5f1bd2)]!==void 0x0;}[_0x263708(0x2f5,0x38a,0x3b7,0x270)](_0x10cf61,_0x348268){const _0x5543ac={_0x15a343:0x27a,_0x1ba144:0x1d0,_0x399d74:0x1ad,_0x2ea155:0x135,_0x20b8f2:0x212,_0x140d69:0x187,_0x2ff697:0x145,_0x463f23:0x8,_0x469a1a:0x107,_0xd6b764:0x31,_0x131b27:0x73,_0x26e9e4:0x104,_0x5f38e0:0x1f6,_0x3e570b:0x198,_0x4f655a:0x145,_0x55658b:0x20a,_0x364f26:0x102,_0x4e8853:0x218,_0x4b7d3e:0x191,_0x130b53:0x171,_0x2de002:0x204,_0x45fc6a:0x2c7,_0x52068b:0xc9,_0x122931:0x253,_0x345551:0x15a,_0x52242c:0x25,_0x2dc4f6:0x233,_0x714db4:0x68,_0x53c4e1:0x34,_0x269248:0x82,_0x51cf60:0xb0,_0x4fa157:0x196,_0x17432f:0x12a,_0x41e8e1:0x137,_0x5f1bba:0x2,_0x58193b:0x39,_0xdf31fc:0xf0,_0x416e42:0x199,_0xa25b6c:0x196,_0x631944:0x1b9,_0x5165c3:0x272,_0x17d410:0x30,_0x4907fa:0x49,_0x583c9e:0x14e,_0x5c7484:0x19b,_0x653633:0xc5,_0x55b6a5:0x59,_0x39fb33:0x206,_0x38f414:0x14c,_0x382fb2:0x178,_0xd1c3a1:0x194,_0x4ebeac:0x15c,_0x960da8:0xbf,_0x5a41ad:0x15b,_0x115b8d:0xc1,_0x82cf6e:0x1a9,_0x214a61:0x1c5,_0x4395e1:0xa2,_0x1480b7:0x18f,_0x302d91:0x81,_0x4e8f8c:0x6e,_0x55122c:0x241,_0x27a484:0x1aa,_0x162ce3:0x244,_0x440759:0x1d0,_0x4702ed:0x219,_0x4150e1:0x61,_0x4caf5b:0x2c,_0x2cbea6:0xd8,_0x96a844:0x12e,_0x3ff9d7:0x143,_0x129401:0x150,_0x13a73a:0xe2,_0x462e4:0x23,_0x42ceed:0x100,_0x46449b:0x6,_0x354da7:0xc6,_0x49c5e5:0xf9,_0x2230ad:0xc4,_0x32a5ac:0x162,_0x54fef2:0x4f,_0x40f4b1:0x179,_0x1635ef:0x1b8,_0x28b817:0xe6,_0x3a3bba:0x15e,_0x543314:0x1cb,_0x2564f3:0x11a,_0x14ba52:0x16a,_0x4e235f:0x1eb,_0x2624a2:0x148,_0x3ad33d:0x1f3,_0xcd328f:0x107,_0xcaf99a:0x220,_0x29f65d:0x24,_0x3bb193:0xfc,_0x46387e:0xb4,_0x1ddff2:0x86,_0x4ce8b7:0x22,_0x405682:0x6d,_0x34d4dc:0x1eb,_0x22ebc6:0xfe,_0x59e0e0:0x196,_0x58f95d:0x264,_0x482a9f:0x225,_0x32d33e:0x140,_0x2544b4:0xe9,_0x9ac24b:0x74,_0x2d67f3:0x48,_0x1598f7:0x4d,_0x556007:0x8d,_0x37a3e7:0xa2,_0x9c43d6:0x23e,_0x22d0c4:0x1f4,_0xbd7327:0x1d0,_0x5cc40e:0x187,_0x2485c0:0x208,_0x4fa0dd:0x130,_0x338dd2:0x10d,_0x572825:0x66,_0x48c713:0x105,_0x1b1258:0x218,_0x117f53:0xcf,_0x472f67:0xd6,_0x2b5537:0x17c,_0x56e227:0x265,_0x30b5a8:0xac,_0x3b8a89:0x111,_0x542b1c:0x15e,_0x13fbca:0xe8,_0x3cc554:0x9a,_0x3dc575:0xb3,_0x5ac205:0x10f,_0x1a67b2:0xa2,_0x4a1a3e:0x190,_0x8ae862:0x7f,_0x465a10:0x14,_0x1ded8c:0x20e,_0x38438e:0x203,_0x3083dd:0x117,_0x417dad:0x252,_0x444394:0x1f7,_0x503350:0x16e,_0x3cd225:0x29,_0x55ff87:0x118,_0x26527d:0xf8,_0x312c48:0x38,_0x3a0318:0x5a,_0x1fcb35:0x4e,_0x5c1815:0x7e,_0x3dfb19:0x5b,_0x2aa46e:0x146,_0x5c60a7:0x15c,_0x42b464:0x1e8,_0x1d236f:0x143,_0x5532be:0x180,_0x32295c:0x6b,_0x3fcf3b:0x27,_0x496610:0xce,_0x239c2b:0x22c,_0x432b66:0x2c6,_0x367ccb:0x13f,_0x1d9f67:0xe7,_0x44e000:0xd,_0x44cc3f:0x19d,_0x153f6e:0x149,_0x187851:0x77,_0x108084:0x11d,_0x511ba0:0x13b,_0x289af9:0x221,_0x5941b9:0x189,_0x286f67:0x176,_0x2f7051:0x1b0,_0x2c547c:0xe7,_0x2606fd:0x17b,_0x48b4f6:0x7b,_0x29fc79:0x72,_0x49fa14:0x88,_0x31ca81:0x80,_0x3ed840:0x10b,_0x37152f:0x173,_0x13f939:0xcb,_0x49e499:0xdd,_0x67a81:0x1eb,_0x4d484a:0x181,_0x7a0a5e:0x1ad,_0x2a7c59:0x1b5,_0x3367be:0xbb,_0x28b2a6:0x11a,_0x43d95a:0xa7,_0x149602:0x195,_0x3b2fa9:0xf5,_0x518229:0x1ac,_0xa7501b:0x28d,_0x3bed85:0x296,_0x395642:0x6a,_0x3f3702:0x4e,_0xd97c3b:0x43,_0x5a7e57:0x11,_0xdd6632:0xb9,_0x50931f:0xaa,_0x2a0ba3:0x12f,_0x572454:0x1e5,_0x3e7adc:0x40,_0x300783:0xbd,_0x590b40:0x176,_0x4bd598:0x219,_0x175944:0x1af,_0x578c90:0x15e,_0x4a3194:0xf7,_0x525a7f:0x106,_0x505e62:0xf,_0x4c80cd:0xb1,_0x2dd444:0x1,_0x5bff3b:0x12c,_0x5160da:0x6b,_0x1b594c:0x11c,_0x3555d8:0x57,_0xcab89a:0xb,_0x48ddcf:0x33,_0x33e437:0x193,_0x50e05a:0x222,_0x2caf59:0x2d,_0x5418ad:0x103,_0x5cde8e:0xaf,_0x26bc44:0xd0,_0x1d67c6:0x109,_0x2a656b:0xba,_0x3e57ab:0x1d1,_0x592b42:0x1ba,_0x20c1ec:0x1c2,_0x816694:0xfb,_0x56de0b:0xa2,_0x22cff6:0xcb,_0x47db2c:0x149,_0x15cdb4:0xe7,_0x1ce57d:0xd5,_0x3ac5ff:0x137,_0x418af3:0x1c1,_0x4bcd4a:0xe7,_0x21396e:0x19,_0x18aa96:0x12f,_0x562623:0x153,_0x13e1e9:0x5b,_0x38f077:0xe2,_0xb0c492:0x10f,_0x39c858:0x54,_0x143c71:0xd8,_0xcb7919:0xbf,_0x3af1e1:0x46,_0x1e9e80:0xda,_0xbcda1c:0x115,_0x1c8d53:0x1de,_0x55d760:0x135,_0x206e68:0x154,_0x34cf70:0x180,_0x259687:0x17d,_0x27318d:0x148,_0x4478c8:0x19e,_0x23fcd0:0x1d0,_0x284bc3:0x13d,_0x3b064b:0x2be,_0x576c4c:0x14f,_0x34701b:0x10a,_0x29381c:0x1d3,_0x1fd660:0x240,_0x1fcd6d:0x2a1,_0x3dc580:0x86,_0x549f4f:0x162,_0x22f115:0x54,_0x3f5c76:0x8c,_0x162725:0x51,_0x4f418a:0xdd,_0x1d7647:0x4a,_0x1023bb:0x3c,_0x5094ee:0x1bb,_0xb5f19a:0x16e,_0x3cff56:0x15f,_0x5afcdf:0xd2,_0x36b984:0x55,_0xc1e63d:0x213,_0x16d3b3:0x1be,_0x1560fd:0x11d,_0x46de12:0xba,_0x2b6dd9:0x7c,_0x23abad:0x1a5,_0x49a605:0x8f,_0x3a371d:0x11d,_0x239e96:0x1fc,_0x58a531:0xc5,_0x4e029b:0x2a,_0x296c9c:0x13e,_0x48ecdf:0xbf,_0x56ff38:0x244,_0xaa86b0:0x1c5,_0x2f1a47:0x268,_0x475f19:0x1d9,_0x45637e:0x1a2,_0x1a47cb:0xa3,_0xc23c:0x250,_0x5f58c2:0x111,_0x15990b:0x1ab,_0x338ca6:0x222,_0x3b65a2:0x1b2,_0xee0f2e:0x2ce,_0x3c1366:0x227,_0x356574:0x29d,_0x55806a:0x1e6,_0x165f68:0x1f2,_0x36d75d:0xcc,_0x43a584:0x2b6,_0x1a57de:0x7},_0x3b2706={_0x25c678:0x115},_0x284ea={_0x185e0a:0x162};function _0x1cf59c(_0x7d16cd,_0x21cd5c,_0x44f7ac,_0x486544){return _0x1c2b50(_0x7d16cd-0xdb,_0x21cd5c-_0x284ea._0x185e0a,_0x44f7ac-0x29,_0x486544);}function _0x122492(_0x1d9e1b,_0x230254,_0x519c3e,_0x315d14){return _0x1c2b50(_0x1d9e1b-_0x3b2706._0x25c678,_0x230254-0xf3,_0x1d9e1b- -0x8d,_0x230254);}switch(_0x10cf61){case _0x122492(-0x1e6,-0x26e,-0x2c7,-_0x5543ac._0x15a343):{const _0x43b526=typeof _0x348268[_0x122492(-_0x5543ac._0x1ba144,-0x133,-_0x5543ac._0x399d74,-0xed)]===_0x1cf59c(-0x15c,-0x219,-_0x5543ac._0x2ea155,-_0x5543ac._0x20b8f2)?_0x348268[_0x1cf59c(-_0x5543ac._0x140d69,-0x113,-0x11a,-_0x5543ac._0x2ff697)]:0x0,_0x14db90=typeof _0x348268[_0x122492(-0xe2,-0x8b,-0x71,_0x5543ac._0x463f23)]===_0x122492(-0xd8,-_0x5543ac._0x469a1a,-0x1b3,-0x53)?_0x348268[_0x1cf59c(-_0x5543ac._0xd6b764,_0x5543ac._0x131b27,-0x2c,-_0x5543ac._0x26e9e4)]:'';if(_0x14db90['length']>0x0){const _0xc04c11=this['responseTextParts']['get'](_0x43b526)??[];return _0xc04c11[_0x122492(-_0x5543ac._0x5f38e0,-_0x5543ac._0x3e570b,-0x226,-0x2a7)](_0x14db90),this[_0x122492(-0x172,-_0x5543ac._0x4f655a,-0x8a,-0x95)][_0x1cf59c(-_0x5543ac._0x55658b,-_0x5543ac._0x364f26,-0x176,-0x8f)](_0x43b526,_0xc04c11),[{'type':_0x122492(-_0x5543ac._0x4e8853,-0x210,-_0x5543ac._0x4b7d3e,-0x243),'index':_0x43b526,'text':_0x14db90}];}break;}case'response.output_item.added':{const _0x4d52b8=typeof _0x348268[_0x1cf59c(-0x155,-0x1e7,-0x11a,-0x8b)]===_0x1cf59c(-0x189,-0x5a,-_0x5543ac._0x2ea155,-0x1ed)?_0x348268[_0x122492(-0x1d0,-0x19b,-0x135,-_0x5543ac._0x130b53)]:void 0x0,_0xfe5955=_0x348268[_0x122492(-_0x5543ac._0x2de002,-0x13c,-0x2c9,-_0x5543ac._0x45fc6a)];if(_0xfe5955?.[_0x1cf59c(-_0x5543ac._0x52068b,-0x183,-0x15c,-0x84)]===_0x122492(-0x185,-0x1cd,-0x197,-_0x5543ac._0x122931)&&_0xfe5955['call_id']&&_0xfe5955[_0x122492(-0x8e,-_0x5543ac._0x345551,-0xb6,_0x5543ac._0x52242c)])return this[_0x122492(-0x17c,-0x96,-_0x5543ac._0x2dc4f6,-0x1f4)]['set'](_0xfe5955[_0x1cf59c(-_0x5543ac._0x714db4,_0x5543ac._0x53c4e1,-_0x5543ac._0x269248,-_0x5543ac._0x51cf60)],{'id':_0xfe5955[_0x122492(-0x138,-_0x5543ac._0x4fa157,-_0x5543ac._0x17432f,-_0x5543ac._0x41e8e1)],'type':_0x1cf59c(0xa9,-_0x5543ac._0xd6b764,-_0x5543ac._0x5f1bba,-0xb),'function':{'name':_0xfe5955[_0x122492(-0x8e,-0x120,-_0x5543ac._0x58193b,-0xfc)],'arguments':''}}),_0x4d52b8!==void 0x0&&(this[_0x1cf59c(-_0x5543ac._0xdf31fc,-_0x5543ac._0x416e42,-_0x5543ac._0xa25b6c,-0x272)][_0x122492(-0x22c,-0x2e9,-0x249,-0x2ae)](_0x4d52b8,_0xfe5955['call_id']),this[_0x122492(-0x1b0,-0xf5,-_0x5543ac._0x122931,-0x103)][_0x122492(-0x22c,-0x247,-_0x5543ac._0x631944,-_0x5543ac._0x5165c3)](_0xfe5955[_0x1cf59c(-0x14e,_0x5543ac._0x17d410,-0x82,-_0x5543ac._0x4907fa)],_0x4d52b8)),[{'type':_0x1cf59c(-_0x5543ac._0x583c9e,-_0x5543ac._0x5c7484,-_0x5543ac._0x653633,-0x189),'id':_0xfe5955[_0x122492(-0x138,-_0x5543ac._0x55b6a5,-_0x5543ac._0x39fb33,-_0x5543ac._0x653633)],'index':_0x4d52b8??0x0,'name':_0xfe5955[_0x122492(-0x8e,-_0x5543ac._0x38f414,-0x141,-0x111)]}];if(_0xfe5955?.[_0x1cf59c(-_0x5543ac._0x382fb2,-_0x5543ac._0xd1c3a1,-_0x5543ac._0x4ebeac,-_0x5543ac._0x960da8)]===_0x122492(-0x202,-_0x5543ac._0x5a41ad,-0x1bf,-0x242)&&_0xfe5955['id']){const _0x3de6a9=this['getOrCreateReasoningItem'](_0xfe5955['id'],_0x4d52b8);_0x4d52b8!==void 0x0&&this[_0x1cf59c(-0x52,-_0x5543ac._0x115b8d,-0xaf,-_0x5543ac._0x140d69)][_0x1cf59c(-_0x5543ac._0x82cf6e,-_0x5543ac._0x214a61,-0x176,-0x1fa)](_0x4d52b8,_0x3de6a9['id']);}break;}case'response.function_call_arguments.delta':{const _0x274533=typeof _0x348268[_0x122492(-0x138,-0x79,-0x67,-0xae)]===_0x122492(-0xd8,-_0x5543ac._0x4395e1,-0x57,-_0x5543ac._0x1480b7)?_0x348268['call_id']:typeof _0x348268[_0x1cf59c(-0xa9,-0x1bd,-0x11a,-0xac)]===_0x1cf59c(-_0x5543ac._0x302d91,-0x1e9,-0x135,-_0x5543ac._0x4e8f8c)?this[_0x1cf59c(-_0x5543ac._0x55122c,-_0x5543ac._0x27a484,-0x196,-0x17b)][_0x1cf59c(-0xbd,-_0x5543ac._0x162ce3,-0x15e,-0x1a9)](_0x348268[_0x122492(-_0x5543ac._0x440759,-_0x5543ac._0x4702ed,-0x283,-0x223)]):void 0x0,_0x590b01=typeof _0x348268[_0x1cf59c(-0xa3,_0x5543ac._0x4150e1,-_0x5543ac._0x4caf5b,0xbb)]===_0x122492(-_0x5543ac._0x2cbea6,-_0x5543ac._0x96a844,-_0x5543ac._0x3ff9d7,-_0x5543ac._0x129401)?_0x348268[_0x122492(-_0x5543ac._0x13a73a,-_0x5543ac._0x462e4,-0x92,-_0x5543ac._0x42ceed)]:'',_0x5c439c=_0x274533?this[_0x1cf59c(-0x12c,_0x5543ac._0x46449b,-_0x5543ac._0x354da7,-_0x5543ac._0x49c5e5)]['get'](_0x274533):void 0x0;if(_0x5c439c&&_0x590b01[_0x122492(-0xf9,-0xa0,-_0x5543ac._0x41e8e1,-0x7b)]>0x0)return _0x5c439c[_0x122492(-0xb8,-_0x5543ac._0x2230ad,-_0x5543ac._0x32a5ac,-_0x5543ac._0x54fef2)]['arguments']+=_0x590b01,[{'type':_0x122492(-0x17b,-_0x5543ac._0x40f4b1,-_0x5543ac._0x1635ef,-_0x5543ac._0x28b817),'id':_0x5c439c['id'],'index':this['callIdToOutputIndex'][_0x1cf59c(-0x176,-0x123,-_0x5543ac._0x3a3bba,-_0x5543ac._0x543314)](_0x5c439c['id'])??(typeof _0x348268[_0x1cf59c(-0x88,-0x1f3,-_0x5543ac._0x2564f3,-_0x5543ac._0x14ba52)]===_0x122492(-_0x5543ac._0x4e235f,-_0x5543ac._0x2ea155,-_0x5543ac._0x40f4b1,-0x2d5)?_0x348268[_0x1cf59c(-0x60,-0xa6,-_0x5543ac._0x2564f3,-_0x5543ac._0x2624a2)]:0x0),'inputDelta':_0x590b01}];break;}case _0x122492(-_0x5543ac._0x3ad33d,-0x1cd,-_0x5543ac._0xcd328f,-_0x5543ac._0xcaf99a):{const _0x51f5a5=typeof _0x348268[_0x1cf59c(-_0x5543ac._0x29f65d,-0x65,-0x82,-_0x5543ac._0x3bb193)]===_0x1cf59c(_0x5543ac._0x46387e,_0x5543ac._0x1ddff2,-_0x5543ac._0x4ce8b7,-_0x5543ac._0x405682)?_0x348268[_0x122492(-0x138,-0x8e,-_0x5543ac._0x34d4dc,-_0x5543ac._0x22ebc6)]:typeof _0x348268['output_index']===_0x1cf59c(-0x1c8,-0x191,-0x135,-0xdc)?this[_0x1cf59c(-0x12e,-0x1db,-_0x5543ac._0x59e0e0,-_0x5543ac._0x58f95d)][_0x1cf59c(-_0x5543ac._0x482a9f,-0x21e,-_0x5543ac._0x3a3bba,-0x200)](_0x348268['output_index']):void 0x0,_0x254fed=_0x51f5a5?this['toolCalls']['get'](_0x51f5a5):void 0x0;_0x254fed&&typeof _0x348268[_0x122492(-_0x5543ac._0x4395e1,-_0x5543ac._0x32d33e,-0x14e,-_0x5543ac._0x2544b4)]===_0x122492(-0xd8,-_0x5543ac._0x9ac24b,-_0x5543ac._0x2d67f3,-0x58)&&(_0x254fed[_0x1cf59c(_0x5543ac._0x1598f7,0x54,-0x2,-_0x5543ac._0x556007)]['arguments']=_0x348268[_0x122492(-_0x5543ac._0x37a3e7,-0xa2,-0x43,-0x14)]);break;}case _0x122492(-_0x5543ac._0x9c43d6,-_0x5543ac._0x22d0c4,-0x1dc,-0x17a):{const _0xc10e0b=typeof _0x348268[_0x122492(-_0x5543ac._0xbd7327,-0x213,-0x290,-0x29b)]===_0x1cf59c(-0x1e6,-0x74,-0x135,-_0x5543ac._0x5cc40e)?_0x348268[_0x122492(-0x1d0,-0x28c,-_0x5543ac._0x2485c0,-0x24e)]:void 0x0,_0x4c14c2=_0x348268[_0x1cf59c(-_0x5543ac._0x4fa0dd,-_0x5543ac._0x338dd2,-0x14e,-_0x5543ac._0x572825)];if(_0x4c14c2?.['type']===_0x1cf59c(-0xe6,-0xea,-0xcf,-0x27)){const _0x1e586a=_0x4c14c2[_0x122492(-0x138,-0x14b,-_0x5543ac._0x48c713,-0xa1)]??(_0xc10e0b!==void 0x0?this[_0x1cf59c(-_0x5543ac._0x1b1258,-0x1e7,-0x196,-_0x5543ac._0x117f53)][_0x1cf59c(-_0x5543ac._0x472f67,-0xd2,-0x15e,-0xdc)](_0xc10e0b):void 0x0),_0x3b254f=_0x1e586a?this[_0x122492(-_0x5543ac._0x2b5537,-0x23d,-0x221,-_0x5543ac._0x56e227)][_0x1cf59c(-_0x5543ac._0x30b5a8,-_0x5543ac._0x3b8a89,-_0x5543ac._0x542b1c,-0x1b6)](_0x1e586a):void 0x0;_0x3b254f&&typeof _0x4c14c2[_0x1cf59c(_0x5543ac._0x13fbca,-_0x5543ac._0x3cc554,0x14,0x19)]===_0x122492(-_0x5543ac._0x2cbea6,-0xa3,-0x65,-0xec)&&(_0x3b254f[_0x122492(-0xb8,-_0x5543ac._0x3dc575,-_0x5543ac._0x32d33e,-_0x5543ac._0x5ac205)][_0x122492(-_0x5543ac._0x1a67b2,-_0x5543ac._0x4a1a3e,-0x136,-0x104)]=_0x4c14c2[_0x1cf59c(_0x5543ac._0x13fbca,_0x5543ac._0x8ae862,_0x5543ac._0x465a10,0xd4)]);break;}if(_0x4c14c2?.['type']===_0x1cf59c(-_0x5543ac._0x1ded8c,-_0x5543ac._0x38438e,-_0x5543ac._0x38f414,-0x1d4)&&_0x4c14c2['id']){const _0x3ec74c=this['getOrCreateReasoningItem'](_0x4c14c2['id'],_0xc10e0b);typeof _0x4c14c2[_0x122492(-_0x5543ac._0x354da7,-_0x5543ac._0x37a3e7,-0x78,-0xb9)]===_0x122492(-0xd8,-0x13e,-_0x5543ac._0x3083dd,-0x139)&&(_0x3ec74c[_0x122492(-_0x5543ac._0x417dad,-_0x5543ac._0x444394,-0x2b3,-_0x5543ac._0x503350)]=_0x4c14c2['encrypted_content']);if(Array[_0x122492(-0xf0,-_0x5543ac._0x3cd225,-_0x5543ac._0x55ff87,-0x7a)](_0x4c14c2[_0x1cf59c(-_0x5543ac._0x26527d,-_0x5543ac._0x312c48,-0x6d,_0x5543ac._0x3a0318)]))for(let _0x1bcd95=0x0;_0x1bcd95<_0x4c14c2['summary'][_0x122492(-0xf9,-_0x5543ac._0x1fcb35,-0xc8,-_0x5543ac._0x5c1815)];_0x1bcd95+=0x1){const _0x10630e=_0x4c14c2[_0x122492(-0x123,-_0x5543ac._0x960da8,-_0x5543ac._0x3dfb19,-_0x5543ac._0x2aa46e)][_0x1bcd95];_0x10630e[_0x1cf59c(-0x102,-0xea,-_0x5543ac._0x5c60a7,-_0x5543ac._0x42b464)]===_0x122492(-_0x5543ac._0x1d236f,-0x20e,-0x61,-_0x5543ac._0x5532be)&&typeof _0x10630e['text']==='string'&&_0x3ec74c[_0x1cf59c(_0x5543ac._0x32295c,_0x5543ac._0x3fcf3b,-0x79,-_0x5543ac._0x496610)][_0x122492(-_0x5543ac._0x239c2b,-0x26f,-_0x5543ac._0x40f4b1,-_0x5543ac._0x432b66)](_0x1bcd95,_0x10630e[_0x1cf59c(-_0x5543ac._0x367ccb,-0x9,-_0x5543ac._0x1d9f67,-_0x5543ac._0x44e000)]);}typeof _0x4c14c2[_0x122492(-_0x5543ac._0x44cc3f,-0x165,-_0x5543ac._0x153f6e,-0x212)]===_0x1cf59c(-_0x5543ac._0x187851,-0xbd,-0x22,-0xc8)&&_0x3ec74c[_0x122492(-_0x5543ac._0x108084,-_0x5543ac._0x511ba0,-0xee,-0x103)][_0x1cf59c(-_0x5543ac._0x289af9,-_0x5543ac._0x5941b9,-_0x5543ac._0x286f67,-_0x5543ac._0x48c713)](0x0,_0x4c14c2[_0x1cf59c(-_0x5543ac._0x2f7051,-0x1bc,-_0x5543ac._0x2c547c,-_0x5543ac._0x2606fd)]);}break;}case _0x1cf59c(-_0x5543ac._0x48b4f6,-0xed,-_0x5543ac._0x29fc79,-0x29):{const _0x51d922=typeof _0x348268[_0x1cf59c(-0xf3,-_0x5543ac._0x49fa14,-_0x5543ac._0x4caf5b,0x18)]===_0x1cf59c(-0x10f,_0x5543ac._0x31ca81,-_0x5543ac._0x4ce8b7,-_0x5543ac._0x3ed840)?_0x348268[_0x122492(-0xe2,-0x2a,-_0x5543ac._0x37152f,-0x123)]:'',_0x597fcf=typeof _0x348268['item_id']==='string'?_0x348268[_0x1cf59c(-0xdd,-_0x5543ac._0x13f939,-_0x5543ac._0x49e499,0xd)]:typeof _0x348268['output_index']===_0x122492(-_0x5543ac._0x67a81,-_0x5543ac._0x4d484a,-0x220,-0x2a3)?this['outputIndexToReasoningId'][_0x1cf59c(-_0x5543ac._0x7a0a5e,-0x6e,-0x15e,-_0x5543ac._0x2a7c59)](_0x348268['output_index']):void 0x0,_0x4281ed=typeof _0x348268[_0x1cf59c(-_0x5543ac._0x3a0318,-_0x5543ac._0x3367be,-_0x5543ac._0x28b2a6,-0x12b)]===_0x1cf59c(-0x182,-_0x5543ac._0x43d95a,-_0x5543ac._0x2ea155,-_0x5543ac._0x149602)?_0x348268[_0x1cf59c(-0x77,-_0x5543ac._0x3b2fa9,-0x11a,-0xd6)]:0x0,_0x2ace7a=typeof _0x348268[_0x122492(-_0x5543ac._0x518229,-0x151,-0x19a,-_0x5543ac._0xa7501b)]==='number'?_0x348268[_0x122492(-_0x5543ac._0x518229,-0x218,-_0x5543ac._0x3bed85,-0x296)]:0x0;if(_0x597fcf&&_0x51d922[_0x1cf59c(-_0x5543ac._0x395642,-_0x5543ac._0x3f3702,-_0x5543ac._0xd97c3b,0x9)]>0x0){const _0x50ef8e=this[_0x1cf59c(_0x5543ac._0x5a7e57,-_0x5543ac._0xdd6632,-_0x5543ac._0x50931f,-0x14e)](_0x597fcf,_0x4281ed);_0x50ef8e[_0x122492(-_0x5543ac._0x2a0ba3,-_0x5543ac._0x572454,-0x1f4,-_0x5543ac._0x3e7adc)][_0x1cf59c(-_0x5543ac._0x300783,-0x20c,-_0x5543ac._0x590b40,-0x1cf)](_0x2ace7a,''+(_0x50ef8e[_0x122492(-0x12f,-0xa5,-_0x5543ac._0x4bd598,-_0x5543ac._0x175944)][_0x1cf59c(-0x89,-0x1f6,-_0x5543ac._0x578c90,-_0x5543ac._0x4a3194)](_0x2ace7a)??'')+_0x51d922);if(isUserVisibleReasoning(this[_0x1cf59c(-_0x5543ac._0x525a7f,-_0x5543ac._0x505e62,-_0x5543ac._0x4c80cd,_0x5543ac._0x2dd444)]))return[{'type':_0x122492(-_0x5543ac._0x5bff3b,-_0x5543ac._0x5160da,-_0x5543ac._0x1ba144,-0x170),'delta':_0x51d922,'itemId':_0x597fcf,'outputIndex':_0x4281ed,'summaryIndex':_0x2ace7a}];}break;}case _0x122492(-0xec,-0x18f,-_0x5543ac._0x1b594c,-_0x5543ac._0x3555d8):{const _0x11de75=typeof _0x348268[_0x1cf59c(_0x5543ac._0xcab89a,-0xc,-0xdd,-0x120)]===_0x122492(-0xd8,-_0x5543ac._0x48ddcf,-0x1d,-0x154)?_0x348268[_0x122492(-_0x5543ac._0x33e437,-_0x5543ac._0x50e05a,-0x1bc,-0xcd)]:typeof _0x348268['output_index']==='number'?this[_0x1cf59c(_0x5543ac._0x2caf59,-_0x5543ac._0x5418ad,-_0x5543ac._0x5cde8e,-0xf6)]['get'](_0x348268[_0x1cf59c(-_0x5543ac._0x26bc44,-_0x5543ac._0x1d67c6,-0x11a,-_0x5543ac._0x2a656b)]):void 0x0,_0x4ac9da=typeof _0x348268[_0x1cf59c(-0x2e,-_0x5543ac._0x3e57ab,-_0x5543ac._0x2564f3,-0xe1)]==='number'?_0x348268[_0x1cf59c(-0x9b,-_0x5543ac._0x592b42,-0x11a,-_0x5543ac._0x20c1ec)]:0x0,_0x452ba6=typeof _0x348268[_0x122492(-0x1ac,-0x276,-_0x5543ac._0x816694,-0xdb)]===_0x122492(-_0x5543ac._0x34d4dc,-0x1c9,-0x15f,-0x241)?_0x348268[_0x1cf59c(-0x1ce,-_0x5543ac._0x592b42,-0xf6,-_0x5543ac._0x56de0b)]:0x0,_0x2c3fd9=typeof _0x348268[_0x1cf59c(-_0x5543ac._0x22cff6,-_0x5543ac._0x47db2c,-_0x5543ac._0x15cdb4,-_0x5543ac._0x1ce57d)]==='string'?_0x348268[_0x1cf59c(-_0x5543ac._0x3ac5ff,-_0x5543ac._0x418af3,-_0x5543ac._0x4bcd4a,-_0x5543ac._0x21396e)]:'';_0x11de75&&this[_0x122492(-0x160,-0x1a3,-0x11b,-0xbe)](_0x11de75,_0x4ac9da)[_0x122492(-_0x5543ac._0x18aa96,-_0x5543ac._0xbd7327,-_0x5543ac._0x562623,-_0x5543ac._0x13e1e9)]['set'](_0x452ba6,_0x2c3fd9);break;}case'response.reasoning_text.delta':{const _0x5d2d87=typeof _0x348268[_0x122492(-_0x5543ac._0x38f077,0xb,-_0x5543ac._0xb0c492,-_0x5543ac._0x39c858)]===_0x122492(-_0x5543ac._0x143c71,-0x82,-_0x5543ac._0xcb7919,-_0x5543ac._0x5160da)?_0x348268['delta']:'',_0x5c0d63=typeof _0x348268[_0x1cf59c(-_0x5543ac._0xdf31fc,-_0x5543ac._0x3af1e1,-0xdd,-0x190)]===_0x122492(-0xd8,0x5,-_0x5543ac._0x1e9e80,-_0x5543ac._0xbcda1c)?_0x348268[_0x122492(-0x193,-0xdd,-0x1d1,-_0x5543ac._0x1c8d53)]:typeof _0x348268['output_index']===_0x1cf59c(-0x88,-0x12e,-_0x5543ac._0x55d760,-0xc6)?this[_0x1cf59c(-_0x5543ac._0x206e68,-_0x5543ac._0x34cf70,-0xaf,-_0x5543ac._0x259687)][_0x1cf59c(-0x1d4,-_0x5543ac._0x27318d,-_0x5543ac._0x578c90,-0x104)](_0x348268[_0x1cf59c(-0x196,-0xd4,-_0x5543ac._0x2564f3,-_0x5543ac._0x4478c8)]):void 0x0,_0x2e01a9=typeof _0x348268[_0x122492(-_0x5543ac._0x23fcd0,-_0x5543ac._0x284bc3,-0x120,-_0x5543ac._0x3b064b)]===_0x122492(-0x1eb,-_0x5543ac._0x576c4c,-0x13d,-0x17e)?_0x348268[_0x1cf59c(-0x135,-_0x5543ac._0x34701b,-0x11a,-0x10c)]:0x0,_0x18a924=typeof _0x348268['content_index']==='number'?_0x348268[_0x122492(-_0x5543ac._0x29381c,-_0x5543ac._0x1fd660,-_0x5543ac._0x1fcd6d,-0x226)]:0x0;if(_0x5c0d63&&_0x5d2d87['length']>0x0){const _0x2a7207=this['getOrCreateReasoningItem'](_0x5c0d63,_0x2e01a9);_0x2a7207[_0x1cf59c(-_0x5543ac._0x32d33e,_0x5543ac._0x3dc580,-0x67,-0x5e)][_0x1cf59c(-_0x5543ac._0x115b8d,-_0x5543ac._0x549f4f,-0x176,-0xf5)](_0x18a924,''+(_0x2a7207['textByIndex']['get'](_0x18a924)??'')+_0x5d2d87);if(isUserVisibleReasoning(this['request']))return[{'type':_0x1cf59c(-_0x5543ac._0x46449b,0x91,-0x25,_0x5543ac._0x354da7),'contentIndex':_0x18a924,'delta':_0x5d2d87,'itemId':_0x5c0d63,'outputIndex':_0x2e01a9}];}break;}case _0x1cf59c(-0xde,-0x129,-_0x5543ac._0x22f115,_0x5543ac._0x3f5c76):{const _0x5876ed=typeof _0x348268[_0x1cf59c(-_0x5543ac._0x162725,-0x161,-_0x5543ac._0x4f418a,-0x48)]===_0x1cf59c(-_0x5543ac._0x2230ad,-_0x5543ac._0x1d7647,-0x22,-_0x5543ac._0x1023bb)?_0x348268[_0x1cf59c(-_0x5543ac._0x5094ee,-_0x5543ac._0xb5f19a,-0xdd,0x5)]:typeof _0x348268['output_index']==='number'?this['outputIndexToReasoningId']['get'](_0x348268['output_index']):void 0x0,_0x2cd87c=typeof _0x348268[_0x122492(-0x1d0,-0x12b,-_0x5543ac._0x2ea155,-_0x5543ac._0x3cff56)]===_0x1cf59c(-_0x5543ac._0x345551,-_0x5543ac._0x5afcdf,-0x135,-_0x5543ac._0x36b984)?_0x348268[_0x122492(-0x1d0,-0x1e3,-0x229,-0x26b)]:0x0,_0x41bb76=typeof _0x348268['content_index']===_0x1cf59c(-0x1f7,-_0x5543ac._0xc1e63d,-0x135,-_0x5543ac._0x16d3b3)?_0x348268[_0x1cf59c(-0x13d,-0x65,-_0x5543ac._0x1560fd,-_0x5543ac._0x405682)]:0x0,_0x1761de=typeof _0x348268[_0x1cf59c(-0x68,-0x1c0,-0xe7,-0x12a)]===_0x1cf59c(-_0x5543ac._0x46de12,_0x5543ac._0x2b6dd9,-0x22,-0x59)?_0x348268[_0x1cf59c(-_0x5543ac._0x5bff3b,-0xf7,-0xe7,-0x12b)]:'';_0x5876ed&&this[_0x122492(-0x160,-_0x5543ac._0x23abad,-0x249,-_0x5543ac._0x49a605)](_0x5876ed,_0x2cd87c)[_0x122492(-_0x5543ac._0x3a371d,-0x1f0,-_0x5543ac._0x5cde8e,-0x11b)][_0x1cf59c(-_0x5543ac._0x239e96,-0xf2,-0x176,-_0x5543ac._0x58a531)](_0x41bb76,_0x1761de);break;}case _0x1cf59c(-0x9d,_0x5543ac._0x115b8d,-_0x5543ac._0x4e029b,0x70):{this[_0x1cf59c(-0x1ee,-0x1b0,-_0x5543ac._0x296c9c,-_0x5543ac._0x48ecdf)]=_0x348268[_0x1cf59c(-0x1c8,-0xde,-0x18e,-0x1b3)];break;}case'response.failed':{const _0x223363=_0x348268[_0x122492(-_0x5543ac._0x56ff38,-_0x5543ac._0xaa86b0,-0x271,-0x234)];throw new ProviderStreamEventError(_0x223363?.[_0x122492(-_0x5543ac._0x2f1a47,-0x351,-_0x5543ac._0x475f19,-_0x5543ac._0x45637e)]?.[_0x1cf59c(-0x155,-_0x5543ac._0x1a47cb,-_0x5543ac._0x130b53,-_0x5543ac._0xc23c)]??_0x1cf59c(-0xf2,-_0x5543ac._0x5f58c2,-0xdb,-0x79),{'code':_0x223363?.[_0x1cf59c(-_0x5543ac._0x15990b,-_0x5543ac._0x5ac205,-0x1b2,-0x163)]?.[_0x1cf59c(-0x213,-_0x5543ac._0x338ca6,-0x13c,-0x12e)],'retryable':!![]});}case _0x1cf59c(-0x121,-0xd2,-_0x5543ac._0x3b65a2,-0x1e1):{const _0x1c7b51=_0x348268[_0x122492(-_0x5543ac._0x2f1a47,-0x2d2,-_0x5543ac._0xee0f2e,-0x31d)];throw new ProviderStreamEventError(_0x1c7b51?.[_0x122492(-_0x5543ac._0x3c1366,-_0x5543ac._0x356574,-0x1c5,-_0x5543ac._0x55806a)]??_0x1cf59c(-0xc9,-0x118,-0xdb,-0xbc),{'code':_0x1c7b51?.[_0x122492(-_0x5543ac._0x165f68,-0x2d9,-0x2c3,-0x210)],'retryable':!![],'status':typeof _0x348268[_0x122492(-_0x5543ac._0x36d75d,-0x2f,0x8,-0x4b)]===_0x122492(-0x1eb,-0x21d,-_0x5543ac._0x43a584,-0x1da)?_0x348268[_0x1cf59c(-0xd8,-_0x5543ac._0x1a57de,-0x16,-0x11)]:void 0x0});}}return[];}[_0x263708(0x1c9,0x19b,0x1a2,0x1a0)](){const _0x4f769a={_0x3590ec:0x554,_0x32b25b:0x47a,_0x46cd46:0x406,_0x5c2adb:0x458,_0x597ea6:0x4a,_0x10f159:0xc5,_0x342d87:0x19,_0x36a123:0x55,_0x2810d3:0x90,_0x37b28c:0x5a5,_0x1db02f:0x36c,_0x5163ec:0x2fc,_0x367ad7:0x569,_0x9a496f:0x536,_0x2445c7:0x3f6,_0x25b9bb:0x516,_0x486733:0x4fd,_0x5d700a:0x147,_0x503e15:0x173,_0x3c0d99:0x146,_0x17fb60:0x12,_0x18448a:0x98,_0x2a5567:0x2c5,_0x3c23e9:0x2c9,_0x1624a5:0x59,_0x34a268:0x4b9,_0x46018d:0xac,_0x1a9e32:0x1b,_0x3e9b3b:0x78,_0x6f1847:0xa6,_0x5ac31b:0xd5,_0x47e348:0x78,_0x28cc4b:0x54,_0x11526f:0xa,_0x58b826:0x81,_0x5f3cf1:0x481,_0x526502:0x494,_0x5c94f9:0x45e,_0x2c80e3:0x436,_0x17f3e9:0x357,_0x263d5b:0x205,_0x410d81:0x1e8,_0x420dcd:0x4eb,_0x2ced7b:0x4af,_0x25d015:0x3e8,_0x401e98:0x452,_0xb1a9d0:0xa4,_0x56f81e:0x4d,_0x534b8a:0x6d,_0x1b8702:0x4aa,_0x393126:0x536,_0x1dc002:0x4a,_0xb1c9f2:0x8d,_0x485852:0x3e9,_0x1064dd:0x37b,_0x5921dd:0x8a,_0x1b95aa:0xea,_0x2f874f:0x150,_0x129595:0x188,_0x231b7b:0xb2,_0x549c0b:0x19e,_0x2a0eca:0x234,_0x37d1ee:0x1ed,_0x4e6587:0xa6,_0x3923ee:0x125,_0x1a5296:0x89},_0x407c75={_0x4c38c7:0x55f},_0x6ec55d={_0x357f56:0x1a2,_0x376dbf:0x1b0},_0xf7b192=[];for(const [_0x567bb8,_0xe48bb7]of this[_0x4d6e52(_0x4f769a._0x3590ec,0x4dd,0x53c,_0x4f769a._0x32b25b)][_0x4d6e52(0x51d,_0x4f769a._0x46cd46,0x4f7,_0x4f769a._0x5c2adb)]()){const _0x11dfbd=_0xe48bb7['join']('');if(_0x11dfbd['length']===0x0)continue;_0xf7b192[_0x832512(_0x4f769a._0x597ea6,_0x4f769a._0x10f159,-0x93,-0x56)]({'index':_0x567bb8,'item':{'type':_0x832512(_0x4f769a._0x342d87,-_0x4f769a._0x36a123,-0x93,-_0x4f769a._0x2810d3),'role':'assistant','content':[{'type':_0x4d6e52(0x4b6,_0x4f769a._0x37b28c,0x5a0,0x517),'text':_0x11dfbd}]}});}for(const _0x771507 of this[_0x4d6e52(0x4a8,_0x4f769a._0x1db02f,_0x4f769a._0x5163ec,0x3c6)][_0x4d6e52(0x4b0,0x46f,_0x4f769a._0x367ad7,_0x4f769a._0x9a496f)]()){_0xf7b192[_0x4d6e52(0x434,0x3fa,0x464,_0x4f769a._0x2445c7)]({'index':_0x771507[_0x4d6e52(_0x4f769a._0x25b9bb,0x57c,0x5cc,_0x4f769a._0x486733)]??_0xf7b192[_0x832512(_0x4f769a._0x5d700a,_0x4f769a._0x503e15,_0x4f769a._0x3c0d99,0x227)],'item':{'type':'reasoning','id':_0x771507['id'],..._0x771507[_0x832512(-_0x4f769a._0x17fb60,-0xe,_0x4f769a._0x18448a,0x52)]?{'encrypted_content':_0x771507[_0x4d6e52(_0x4f769a._0x2a5567,_0x4f769a._0x3c23e9,0x463,0x39a)]}:{},..._0x771507['summaryByIndex'][_0x832512(0x33,-0x60,0x24,0x2c)]>0x0?{'summary':Array[_0x832512(0x12d,_0x4f769a._0x1624a5,0x134,0x79)](_0x771507[_0x4d6e52(0x4bc,0x446,_0x4f769a._0x34a268,0x4bd)][_0x832512(_0x4f769a._0x46018d,-_0x4f769a._0x1a9e32,_0x4f769a._0x3e9b3b,-0xc)]())[_0x832512(_0x4f769a._0x6f1847,_0x4f769a._0x5ac31b,_0x4f769a._0x47e348,_0x4f769a._0x28cc4b)]((_0x213a38,_0x51e21a)=>_0x213a38[0x0]-_0x51e21a[0x0])[_0x832512(0xa4,_0x4f769a._0x11526f,0x87,_0x4f769a._0x58b826)](([,_0xc0dad0])=>{return{'type':'summary_text','text':_0xc0dad0};})}:{},..._0x771507[_0x4d6e52(_0x4f769a._0x5f3cf1,_0x4f769a._0x526502,_0x4f769a._0x5c94f9,0x4cf)][_0x4d6e52(0x45c,_0x4f769a._0x2c80e3,_0x4f769a._0x17f3e9,0x3df)]>0x0?{'text':Array['from'](_0x771507[_0x832512(0x123,_0x4f769a._0x263d5b,_0x4f769a._0x410d81,0xd6)][_0x4d6e52(_0x4f769a._0x420dcd,0x511,_0x4f769a._0x2ced7b,_0x4f769a._0x5c2adb)]())[_0x4d6e52(0x3a5,_0x4f769a._0x25d015,0x3f1,_0x4f769a._0x401e98)]((_0x3eef80,_0x2e5c21)=>_0x3eef80[0x0]-_0x2e5c21[0x0])[_0x832512(_0x4f769a._0xb1a9d0,-_0x4f769a._0x56f81e,0x12b,_0x4f769a._0x534b8a)](([,_0x55aea5])=>_0x55aea5)['join']('')}:{}}});}function _0x832512(_0x47ba00,_0x444431,_0x2ceb79,_0x463c4f){return _0x263708(_0x47ba00- -_0x6ec55d._0x357f56,_0x444431,_0x2ceb79-0x74,_0x463c4f-_0x6ec55d._0x376dbf);}function _0x4d6e52(_0x1137e2,_0x3b539d,_0x4dd469,_0x1d0745){return _0x1c2b50(_0x1137e2-0x1b5,_0x3b539d-0x7e,_0x1d0745-_0x407c75._0x4c38c7,_0x4dd469);}for(const _0x28b3af of this[_0x4d6e52(0x3f8,0x3c3,_0x4f769a._0x1b8702,0x470)][_0x4d6e52(0x587,0x571,0x4b0,_0x4f769a._0x393126)]()){_0xf7b192[_0x832512(_0x4f769a._0x1dc002,-0x69,-_0x4f769a._0xb1c9f2,-0x6f)]({'index':this['callIdToOutputIndex'][_0x4d6e52(_0x4f769a._0x485852,_0x4f769a._0x1064dd,0x48d,0x3d8)](_0x28b3af['id'])??_0xf7b192[_0x832512(0x147,0x1db,0x17c,_0x4f769a._0x5921dd)],'item':{'type':_0x832512(0xbb,_0x4f769a._0x1b95aa,0xad,_0x4f769a._0x2f874f),'call_id':_0x28b3af['id'],'name':_0x28b3af[_0x832512(_0x4f769a._0x129595,_0x4f769a._0x231b7b,0x22f,0xec)][_0x832512(0x1b2,0x201,0x122,0xff)],'arguments':_0x28b3af[_0x832512(0x188,0xe8,0xa6,0x148)][_0x832512(_0x4f769a._0x549c0b,_0x4f769a._0x2a0eca,_0x4f769a._0x37d1ee,0x264)]}});}return _0xf7b192[_0x832512(_0x4f769a._0x4e6587,_0x4f769a._0x5921dd,_0x4f769a._0x3923ee,_0x4f769a._0x1a5296)]((_0x40cd85,_0x2cf5f9)=>_0x40cd85[_0x4d6e52(0x5c5,0x45f,0x5f3,0x535)]-_0x2cf5f9['index'])['map'](_0x3159d3=>_0x3159d3[_0x4d6e52(0x33b,0x385,0x3da,0x3e8)]);}[_0x1c2b50(-0xa2,-0x108,-0xd3,-0x99)](_0x331096,_0x2a06cc){const _0x5c2537={_0x4e20fd:0x140,_0x5a046c:0x107,_0xc3709:0x12d,_0x17509d:0x3f,_0x41cf83:0x128,_0x4c04ee:0xef,_0x1873b3:0x195},_0x40fccc={_0x3494c0:0xd6},_0x196cb1=this['reasoningItems'][_0x4e691f(0x1f3,0x6e,0x102,_0x5c2537._0x4e20fd)](_0x331096);if(_0x196cb1)return _0x2a06cc!==void 0x0&&(_0x196cb1['outputIndex']=_0x2a06cc,this[_0x1b3cb2(-_0x5c2537._0x5a046c,-0xef,-_0x5c2537._0xc3709,-_0x5c2537._0x17509d)]['set'](_0x2a06cc,_0x331096)),_0x196cb1;function _0x1b3cb2(_0x5134c4,_0x56039a,_0x2ed01e,_0x454017){return _0x263708(_0x56039a- -0x36c,_0x5134c4,_0x2ed01e-_0x40fccc._0x3494c0,_0x454017-0x14);}const _0x4f7647={'id':_0x331096,'outputIndex':_0x2a06cc,'summaryByIndex':new Map(),'textByIndex':new Map()};this['reasoningItems'][_0x4e691f(0xdc,0x1e0,0x187,_0x5c2537._0x41cf83)](_0x331096,_0x4f7647);function _0x4e691f(_0x462fd8,_0x542146,_0x1a3c09,_0xe310e4){return _0x1c2b50(_0x462fd8-0x110,_0x542146-0x73,_0xe310e4-0x2c7,_0x462fd8);}return _0x2a06cc!==void 0x0&&this[_0x1b3cb2(-0x53,-_0x5c2537._0x4c04ee,-0x4e,-_0x5c2537._0x1873b3)]['set'](_0x2a06cc,_0x331096),_0x4f7647;}};function createOpenAiResponsesStreamParser(_0x1f76f9){return new OpenAiResponsesStreamParser(_0x1f76f9);}function createOpenAiSurfaces(_0x224c47={}){const _0x2d8efd={_0x2237e6:0x2a,_0x399868:0xd,_0x1e4131:0x77,_0x46ab55:0x1b3,_0x174293:0x38,_0x24d780:0xf8,_0x467563:0x13f,_0x17888a:0x6b,_0x5c98c5:0x2c,_0x41d7f8:0x140,_0x374118:0x4b},_0x3f8729={_0x22e65d:0x340},_0x537c7f={_0x212555:0x251,_0x4b251e:0x4ce,_0x314f77:0x40b},_0x29d700={_0x17563a:0x17a},_0xdaa4f1={_0x512147:0x7d,_0x5951d0:0x1b5,_0x38bb1a:0x167,_0x35d5f1:0x173},_0x3f56b7={_0xc11ce7:0xc4,_0x2efabd:0xb3,_0x4a44ca:0x169},_0x427692={_0x4a9df1:0x112,_0x575bf0:0x1e9},_0x3b1f0d={_0x1c4345:0xfc},_0x2c4333={_0xcbd5b3:0x359,_0xe6b17c:0x1d0,_0x4a5064:0x126},_0x3dd380=_0x224c47[_0x3291cf(-_0x2d8efd._0x2237e6,_0x2d8efd._0x399868,-0xb6,-0xa9)]??'/chat/completions';function _0x3291cf(_0x57a681,_0x1bc13c,_0x3355cd,_0x3f93b7){return _0x263708(_0x3f93b7- -_0x2c4333._0xcbd5b3,_0x57a681,_0x3355cd-_0x2c4333._0xe6b17c,_0x3f93b7-_0x2c4333._0x4a5064);}function _0x3b9d3b(_0x296617,_0x2b9fb8,_0x20d945,_0x371c9a){return _0x1c2b50(_0x296617-0xdd,_0x2b9fb8-_0x3b1f0d._0x1c4345,_0x20d945-0x7,_0x371c9a);}const _0x375cfb=_0x224c47[_0x3b9d3b(-_0x2d8efd._0x1e4131,-0x6b,-0xc4,-_0x2d8efd._0x46ab55)]??_0x3291cf(-0xd4,-0x69,-0x134,-0xb9);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x3291cf(0x22,-0x128,-_0x2d8efd._0x174293,-0x37),'createRequest'(_0x56ef25){const _0x173752={_0x3eb3da:0x137,_0x494d59:0x228};function _0x29ac27(_0x454491,_0x4e880d,_0x59c87a,_0x3fe280){return _0x3291cf(_0x4e880d,_0x4e880d-_0x173752._0x3eb3da,_0x59c87a-0x8,_0x454491-_0x173752._0x494d59);}return{'accept':_0x29ac27(_0x427692._0x4a9df1,0x18f,0xf1,_0x427692._0x575bf0),'body':createChatRequestBody(_0x56ef25,![]),'path':_0x3dd380};},'parseResponse'(_0x2083e4){return parseChatCompletionResponse(_0x2083e4);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x3291cf(-0xec,-_0x2d8efd._0x24d780,-0xa3,-_0x2d8efd._0x467563),'createRequest'(_0x55784f){function _0x543cba(_0x5302da,_0x57fc3b,_0x45137f,_0x5c5bf1){return _0x3291cf(_0x57fc3b,_0x57fc3b-0x1dc,_0x45137f-0x193,_0x5c5bf1-0x288);}return{'accept':_0x543cba(0xe2,_0x3f56b7._0xc11ce7,_0x3f56b7._0x2efabd,_0x3f56b7._0x4a44ca),'body':createChatRequestBody(_0x55784f,!![]),'path':_0x3dd380};},'createStreamParser'(_0x493384){return new OpenAiChatCompletionsStreamParser(_0x493384);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x3b9d3b(_0x2d8efd._0x17888a,0xc,-_0x2d8efd._0x5c98c5,0x29),'createRequest'(_0x1baa51){const _0x3520c2={_0x44abc5:0x6d,_0x449a87:0x1d7,_0x5df7cc:0x7e};function _0x2be073(_0x2523b8,_0x5ee7b2,_0x52f213,_0x17c1fd){return _0x3291cf(_0x5ee7b2,_0x5ee7b2-_0x3520c2._0x44abc5,_0x52f213-_0x3520c2._0x449a87,_0x17c1fd- -_0x3520c2._0x5df7cc);}function _0x253ffa(_0x3979e0,_0x39f247,_0x2b4cac,_0x4ac52d){return _0x3291cf(_0x4ac52d,_0x39f247-0x1a7,_0x2b4cac-0x2f,_0x3979e0- -0x3f);}return{'accept':_0x253ffa(-0x155,-_0xdaa4f1._0x512147,-_0xdaa4f1._0x5951d0,-_0xdaa4f1._0x38bb1a),'body':createResponsesRequestBody(_0x1baa51,![],_0x224c47[_0x2be073(-0x1bf,-0x2b7,-_0xdaa4f1._0x35d5f1,-0x23f)]),'path':_0x375cfb};},'parseResponse'(_0x5e155f,_0x3bcdea){return parseResponsesResponse(_0x5e155f,_0x3bcdea);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x3b9d3b(-_0x2d8efd._0x41d7f8,-0x54,-0x134,-_0x2d8efd._0x374118),'createRequest'(_0x55d6f4){const _0x44ae7f={_0x2565f2:0x80};function _0x3f3067(_0x15aa00,_0x149348,_0x2133c3,_0x1d4e49){return _0x3291cf(_0x149348,_0x149348-0xc4,_0x2133c3-0x1c9,_0x15aa00- -_0x44ae7f._0x2565f2);}function _0xa04d1b(_0x1a72df,_0x459138,_0x534f4c,_0x1772e3){return _0x3b9d3b(_0x1a72df-_0x29d700._0x17563a,_0x459138-0x10e,_0x1a72df-0x659,_0x1772e3);}return{'accept':_0x3f3067(-0x19f,-0x282,-0x182,-_0x537c7f._0x212555),'body':createResponsesRequestBody(_0x55d6f4,!![],_0x224c47[_0xa04d1b(0x4a3,0x431,_0x537c7f._0x4b251e,_0x537c7f._0x314f77)]),'path':_0x375cfb};},'createStreamParser'(_0x43fa2d){return new OpenAiResponsesStreamParser(_0x43fa2d);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x4eeab8){function _0x46126b(_0x4487ac,_0xc6a135,_0x3d3c27,_0x4316f7){return _0x3291cf(_0x4316f7,_0xc6a135-0xb0,_0x3d3c27-0x1b8,_0x4487ac-0x46a);}return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x4eeab8,{'promptCacheKey':_0x224c47[_0x46126b(0x2a9,0x2fd,0x364,_0x3f8729._0x22e65d)]?.(_0x4eeab8)}),'path':_0x375cfb};},'createStreamParser'(_0x2211da){return createOpenAiResponsesStreamParser(_0x2211da);}}];}var OpenAiProviderAdapter=class{['headerResolver'];constructor(_0x3460ec){const _0x153256={_0x1f24cd:0x254},_0x5ef5d3={_0x30c288:0x73,_0x1f2545:0x26};function _0x1ab0e1(_0x2e31c1,_0x57f4a5,_0x1da573,_0x56732e){return _0x1c2b50(_0x2e31c1-0x4a,_0x57f4a5-_0x5ef5d3._0x30c288,_0x2e31c1- -_0x5ef5d3._0x1f2545,_0x56732e);}this[_0x1ab0e1(-0x180,-0x1b6,-_0x153256._0x1f24cd,-0x1d7)]=_0x3460ec;}[_0x263708(0x192,0xe8,0x266,0xf0)](){const _0x43e823={_0x3ac574:0x389,_0x5a5e41:0x20f},_0x48a59e={_0x533b35:0x98,_0xbaa71:0xc1,_0x2901c9:0x3b1};function _0x244030(_0x42ebc7,_0x20b54e,_0x3e5272,_0x3eccff){return _0x1c2b50(_0x42ebc7-_0x48a59e._0x533b35,_0x20b54e-_0x48a59e._0xbaa71,_0x42ebc7-_0x48a59e._0x2901c9,_0x20b54e);}return new Error(_0x244030(0x2e4,_0x43e823._0x3ac574,0x22a,_0x43e823._0x5a5e41));}async['createHeaders'](_0x5aa88e,_0x12c633){const _0x123273={_0x9e0996:0x54d,_0x14ab68:0x48d,_0x57cb6f:0x4e5,_0x3ad49f:0x4cf,_0x3e28ef:0x226,_0x369b17:0x180,_0x17e68b:0x149,_0xafb3cf:0x55c,_0x555b51:0x616,_0x54ca53:0x571,_0x21383d:0x4b0,_0x1807a9:0x47d,_0x48d3aa:0x112,_0x52e4e3:0x630,_0x57b6ef:0x62f,_0x4944ac:0x508,_0x5da8b1:0x4be,_0x3aeea5:0x3e2,_0x39d30f:0x4ec,_0x2f2521:0xbc,_0x134c95:0x1c,_0x17cd0c:0x42,_0x3546f2:0x1f,_0x3f1af8:0x66b,_0x38c14d:0x6b0,_0x3fc16d:0xf,_0x3b9e6f:0x15f,_0x1b56eb:0x83,_0x9031fd:0x5,_0x550eb9:0x5c4,_0x416c46:0x4d8,_0x2c995b:0x599,_0x2f1495:0x5af,_0x5581d2:0x149},_0x58a72c={_0xa25d17:0x34b,_0x540dbb:0x146},_0x24b595={_0x512ab7:0x2ff,_0x24883f:0x35},_0x4c5d69=new Headers();_0x4c5d69['set'](_0x16d462(0x54d,0x51c,0x551,0x549),_0x12c633[_0x16d462(_0x123273._0x9e0996,_0x123273._0x14ab68,_0x123273._0x57cb6f,_0x123273._0x3ad49f)]),_0x4c5d69[_0x4e2189(-_0x123273._0x3e28ef,-_0x123273._0x369b17,-0xa6,-_0x123273._0x17e68b)](_0x16d462(_0x123273._0xafb3cf,_0x123273._0x555b51,_0x123273._0x54ca53,0x474),_0x16d462(0x535,_0x123273._0x21383d,0x5ba,_0x123273._0x1807a9)+_0x5aa88e[_0x4e2189(_0x123273._0x48d3aa,-0x66,0x64,0x21)][_0x16d462(_0x123273._0x52e4e3,0x698,0x656,_0x123273._0x57b6ef)]);_0x12c633[_0x16d462(0x4cf,_0x123273._0x4944ac,_0x123273._0x5da8b1,_0x123273._0x3aeea5)]!==![]&&_0x4c5d69[_0x16d462(0x501,0x4a5,0x56b,0x47e)](_0x16d462(0x5b9,0x60d,0x54f,_0x123273._0x39d30f),_0x4e2189(-0x185,-0x1a9,-0x18d,-_0x123273._0x2f2521));function _0x4e2189(_0x56cc53,_0x267959,_0x4f098a,_0x232ab9){return _0x263708(_0x232ab9- -_0x24b595._0x512ab7,_0x4f098a,_0x4f098a-_0x24b595._0x24883f,_0x232ab9-0xd8);}const _0x42b59f=await this['headerResolver']?.({'body':_0x5aa88e[_0x4e2189(-_0x123273._0x134c95,-_0x123273._0x17cd0c,-0x29,_0x123273._0x3546f2)],'credential':_0x5aa88e[_0x16d462(_0x123273._0x3f1af8,0x68c,0x5e6,_0x123273._0x38c14d)],'request':_0x5aa88e[_0x4e2189(-0xa2,_0x123273._0x3fc16d,-_0x123273._0x3b9e6f,-0x84)],'session':_0x5aa88e[_0x4e2189(-_0x123273._0x1b56eb,-0xa6,-0xbf,-_0x123273._0x9031fd)],'stream':_0x5aa88e[_0x16d462(_0x123273._0x550eb9,0x5f3,_0x123273._0x416c46,0x693)]});function _0x16d462(_0x11add2,_0x4a909c,_0x614c56,_0x2aa347){return _0x263708(_0x11add2-_0x58a72c._0xa25d17,_0x614c56,_0x614c56-0x4b,_0x2aa347-_0x58a72c._0x540dbb);}for(const [_0x339ccc,_0x4ebf17]of Object[_0x16d462(_0x123273._0x2c995b,0x502,0x675,_0x123273._0x2f1495)](_0x42b59f??{})){_0x4c5d69[_0x4e2189(-0x188,-0x17b,-0x128,-_0x123273._0x5581d2)](_0x339ccc,_0x4ebf17);}return _0x4c5d69;}[_0x1c2b50(-0x11c,-0xe1,-0xca,-0x110)](_0x46d8f0){return _0x46d8f0;}['resolveBaseUrl'](_0x2f2240,_0x305c20){return resolveSessionBaseUrl(_0x2f2240,_0x305c20);}[_0x1c2b50(-0xae,-0x65,-0xa4,-0xc)](_0x2153f3,_0x27f353){return resolveApiCredential(_0x2153f3,_0x27f353);}async[_0x263708(0x280,0x1e0,0x204,0x1fa)](_0xe4cd29){return await createOpenAiApiError(_0xe4cd29);}},OpenAiModel=class extends RoutedModel{[_0x263708(0x183,0x1c2,0x136,0x212)]=new Map();[_0x1c2b50(-0x1e5,-0x221,-0x1bd,-0x292)];[_0x1c2b50(-0x31,-0xe4,-0xa5,-0x1d)];['responsesPath'];constructor(_0x1c9023={}){const _0x201ed8={_0x55da8f:0x63,_0x10b991:0x38,_0x1223b4:0x71,_0x37a61c:0x7c,_0x214888:0x5ab,_0x288ac3:0x5e9,_0x33aa3d:0x57c,_0x2939a7:0x4f9,_0x147313:0x58e,_0xc21279:0x97,_0x4a8052:0x53,_0x1b2551:0x65,_0x5c02b9:0x651,_0x19ef08:0x31,_0xc0a9d:0x17,_0x52cf6f:0xc5,_0x4729c9:0x12a,_0x4eb607:0x14c,_0x1c635a:0x55a,_0x3705e9:0x53c,_0x2105f2:0x37,_0x3b5378:0x15b,_0x4006b8:0x113,_0x203728:0x153,_0x2f4a16:0x4f7,_0xf339d3:0x4cd,_0x2c3a32:0x40d,_0x261f89:0xcc,_0x1aeb8c:0x39,_0x5c5b63:0xd,_0x2a6fc3:0x60f,_0x3e5d44:0x59e,_0x330f21:0x574,_0x26f258:0x5fc,_0x2bf801:0x1ed,_0x3ad497:0x172,_0x12fde9:0x1b6,_0x2635e1:0xe2,_0x1c7d9c:0x120},_0x4c0c7a={_0x1bde71:0x111,_0x48899f:0x6b4},_0x2aaaa7={_0x1e1614:0x1ad},_0x5d1d62=_0x1c9023[_0x50bc64(_0x201ed8._0x55da8f,_0x201ed8._0x10b991,-_0x201ed8._0x1223b4,-_0x201ed8._0x37a61c)]??'gpt-4o',_0x449340=_0x1c9023['chatCompletionsPath']??_0x16a9a3(_0x201ed8._0x214888,0x5fd,0x5d5,0x5f1),_0x5a7d18=_0x1c9023[_0x16a9a3(_0x201ed8._0x288ac3,0x62e,_0x201ed8._0x33aa3d,_0x201ed8._0x2939a7)]??_0x16a9a3(0x5ff,0x59b,0x585,_0x201ed8._0x147313);function _0x50bc64(_0x23b8cf,_0x40ee14,_0xc0fa1b,_0x7fc849){return _0x1c2b50(_0x23b8cf-0xe,_0x40ee14-_0x2aaaa7._0x1e1614,_0xc0fa1b-0x4b,_0x40ee14);}super({'apiKey':_0x1c9023[_0x50bc64(-0xd5,_0x201ed8._0xc21279,-_0x201ed8._0x4a8052,_0x201ed8._0x1b2551)],'baseUrl':trimTrailingSlashes(_0x1c9023[_0x16a9a3(0x5e5,0x676,_0x201ed8._0x5c02b9,0x698)]??_0x50bc64(0xe6,_0x201ed8._0x19ef08,_0x201ed8._0xc0a9d,-_0x201ed8._0x52cf6f)),'fetch':_0x1c9023['fetch'],..._0x1c9023['maxTokens']!==void 0x0?{'maxTokens':_0x1c9023['maxTokens']}:{},'model':_0x5d1d62,'reasoning':_0x1c9023[_0x50bc64(-0xb2,-0x3e,-_0x201ed8._0x4729c9,-_0x201ed8._0x4eb607)],'providerAdapter':new OpenAiProviderAdapter(_0x1c9023[_0x16a9a3(_0x201ed8._0x1c635a,0x51a,0x52a,_0x201ed8._0x3705e9)]),'providerSessionResolver':_0x1c9023[_0x50bc64(_0x201ed8._0x2105f2,-0x69,-0x76,-_0x201ed8._0x3b5378)],'requestMutators':_0x1c9023[_0x50bc64(0xe,-0x30,-0x48,-_0x201ed8._0x4006b8)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x1c9023[_0x50bc64(-0xab,-0xc4,-0x149,-_0x201ed8._0x203728)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x449340,'promptCacheKeyResolver':_0x1c9023[_0x16a9a3(_0x201ed8._0x2f4a16,0x434,_0x201ed8._0xf339d3,_0x201ed8._0x2c3a32)],'responsesPath':_0x5a7d18}),'webSocketFactory':_0x1c9023[_0x50bc64(-_0x201ed8._0x261f89,-_0x201ed8._0x1aeb8c,-0x11,-_0x201ed8._0x5c5b63)]}),this[_0x16a9a3(_0x201ed8._0x2a6fc3,_0x201ed8._0x3e5d44,_0x201ed8._0x330f21,_0x201ed8._0x26f258)]=_0x449340,this[_0x50bc64(-_0x201ed8._0x2bf801,-0x1a5,-_0x201ed8._0x3ad497,-_0x201ed8._0x12fde9)]=_0x1c9023[_0x50bc64(-0x21b,-_0x201ed8._0x2635e1,-_0x201ed8._0x3ad497,-_0x201ed8._0x1c7d9c)];function _0x16a9a3(_0x418960,_0x2d9540,_0x138dcc,_0x1ea905){return _0x1c2b50(_0x418960-0x142,_0x2d9540-_0x4c0c7a._0x1bde71,_0x418960-_0x4c0c7a._0x48899f,_0x138dcc);}this[_0x50bc64(-0x30,-0x2c,-0x80,0x45)]=_0x5a7d18;}[_0x263708(0x2e4,0x378,0x357,0x2c1)](_0x421cf2,_0x4ed7d3){const _0x42e2ba={_0x1ee9a2:0x655,_0x47f6ec:0x730},_0x56a5c0={_0x3b1aab:0x2f};function _0x32d82b(_0x2e05e0,_0x1c5e6a,_0x4d4cd1,_0x1b8f0e){return _0x1c2b50(_0x2e05e0-0x173,_0x1c5e6a-_0x56a5c0._0x3b1aab,_0x1c5e6a-0x6ea,_0x4d4cd1);}return this[_0x32d82b(_0x42e2ba._0x1ee9a2,0x6d6,0x7a1,_0x42e2ba._0x47f6ec)](_0x421cf2,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x4ed7d3);}[_0x263708(0x33d,0x2d0,0x30c,0x3ba)](_0x5b6813,_0x2093d2){const _0x2ec260={_0x2a1653:0xa9,_0x17a98a:0x58,_0x1eed1c:0x117},_0x13baec={_0x5e5a6b:0x1a4,_0x2fa6d7:0x16e};function _0x4a287f(_0x32fe01,_0x49f4ab,_0x401a03,_0x278a79){return _0x263708(_0x49f4ab- -0x3ea,_0x32fe01,_0x401a03-_0x13baec._0x5e5a6b,_0x278a79-_0x13baec._0x2fa6d7);}return this[_0x4a287f(-0x192,-_0x2ec260._0x2a1653,-_0x2ec260._0x17a98a,-_0x2ec260._0x1eed1c)](_0x5b6813,OPENAI_RESPONSES_SURFACE,_0x2093d2);}[_0x263708(0x350,0x3e0,0x2bf,0x2ec)](_0x281e88,_0x4c7cb5){const _0x2b6e3a={_0x1381f7:0x184,_0x504e25:0x1b2},_0x3d1a8b={_0xc01d5:0x288};function _0x512d26(_0x3af654,_0x1a6bc7,_0xb985c6,_0x38dc17){return _0x1c2b50(_0x3af654-0xb6,_0x1a6bc7-0xf1,_0x3af654-_0x3d1a8b._0xc01d5,_0x38dc17);}return this[_0x512d26(0x274,_0x2b6e3a._0x1381f7,_0x2b6e3a._0x504e25,0x1e3)](_0x281e88,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x4c7cb5);}[_0x263708(0x2b8,0x2a5,0x1d2,0x239)](_0x40e645,_0x30ba90){const _0x4d9b69={_0x205c50:0x45c},_0x46abe3={_0x42fd0b:0x98,_0x3e78af:0xd1,_0x215bf7:0x485};function _0x1831c2(_0x4d9578,_0x54e6b5,_0x149a8d,_0x3566bd){return _0x1c2b50(_0x4d9578-_0x46abe3._0x42fd0b,_0x54e6b5-_0x46abe3._0x3e78af,_0x4d9578-_0x46abe3._0x215bf7,_0x3566bd);}return this[_0x1831c2(0x3a8,0x446,_0x4d9b69._0x205c50,0x331)](_0x40e645,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x30ba90);}[_0x263708(0x2b4,0x37b,0x2fa,0x2fb)](_0x393ee8,_0x16b430){const _0x33aea2={_0x441c34:0x1dd,_0x5a343e:0x2a4},_0x408a80={_0x54f42d:0x61,_0x33ba59:0x179};function _0xca93d4(_0x3a1ae5,_0x41e5e5,_0x4e3bca,_0xd3dfd4){return _0x1c2b50(_0x3a1ae5-_0x408a80._0x54f42d,_0x41e5e5-_0x408a80._0x33ba59,_0x41e5e5-0x2ba,_0x3a1ae5);}return this[_0xca93d4(0x18f,_0x33aea2._0x441c34,0x110,_0x33aea2._0x5a343e)](_0x393ee8,OPENAI_RESPONSES_STREAM_SURFACE,_0x16b430);}[_0x1c2b50(-0x9c,-0x1d3,-0x111,-0xd0)](_0x20e42b,_0x136c20){const _0x2940fd={_0x44c444:0x477},_0x2a39f3={_0x446ef7:0x4,_0x4e7758:0x36};function _0x43ff57(_0x1e4dde,_0x416c01,_0x21ba7f,_0x415af4){return _0x263708(_0x1e4dde-0x21b,_0x21ba7f,_0x21ba7f-_0x2a39f3._0x446ef7,_0x415af4-_0x2a39f3._0x4e7758);}return this[_0x43ff57(0x493,_0x2940fd._0x44c444,0x49b,0x545)](_0x20e42b,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x136c20);}async[_0x1c2b50(-0x1b5,-0xdc,-0xc4,-0x150)](_0x4b21fc,_0x5b3601){const _0x510f58={_0x555a22:0x15e,_0x54823e:0x212},_0x124e3f={_0x18e46a:0x150};function _0x446774(_0x42e61,_0x11a7ef,_0xd64d31,_0x439525){return _0x263708(_0x439525- -0x79,_0x11a7ef,_0xd64d31-_0x124e3f._0x18e46a,_0x439525-0x94);}try{return await this['completeViaChatCompletionsSurface'](_0x4b21fc,_0x5b3601);}catch(_0x4ce229){if(_0x4ce229 instanceof OpenAiApiError)throw this[_0x446774(0x16e,_0x510f58._0x555a22,0x2c6,_0x510f58._0x54823e)](_0x4ce229);throw _0x4ce229;}}async[_0x1c2b50(-0x271,-0x1ea,-0x1b7,-0x236)](_0x2650e7,_0x64f020){const _0x5bb916={_0x1f44e2:0xc5,_0x26e082:0x3ac,_0x50fdc3:0x2ed},_0x1eff42={_0x4189d7:0x17c},_0x3b865e={_0x5ccb25:0x14,_0x142748:0xd3,_0x5c7172:0xad};function _0x287802(_0xb48890,_0x55ffa0,_0xd61357,_0x45e97b){return _0x1c2b50(_0xb48890-_0x3b865e._0x5ccb25,_0x55ffa0-_0x3b865e._0x142748,_0xd61357- -_0x3b865e._0x5c7172,_0x45e97b);}function _0x1edd2a(_0x5eacb2,_0x110aa4,_0x74f5cf,_0x2bc47f){return _0x263708(_0x74f5cf-0x108,_0x110aa4,_0x74f5cf-0x156,_0x2bc47f-_0x1eff42._0x4189d7);}try{return await this[_0x287802(0x0,-0x186,-_0x5bb916._0x1f44e2,-0x11c)](_0x2650e7,_0x64f020);}catch(_0x564286){if(_0x564286 instanceof OpenAiApiError)throw this[_0x1edd2a(0x451,_0x5bb916._0x26e082,0x393,_0x5bb916._0x50fdc3)](_0x564286);throw _0x564286;}}async[_0x263708(0x1df,0x18c,0x1ae,0x173)](_0x2493b5,_0x2199ef){const _0x5e194f={_0x31f4ae:0x21,_0x2caa57:0xb1,_0x2b4282:0x97,_0x26acab:0x1a,_0x48cb0b:0x1e1,_0x378d66:0x160,_0x28ae4b:0xeb,_0x976dba:0x1f7,_0x4953ac:0x1dd,_0xbb7084:0x2b7,_0x58277c:0x2e4,_0x3e7b10:0xfd,_0x544fed:0xbe,_0x4c8df2:0x10a,_0x297a35:0x15a},_0x38f9db={_0x362c72:0x395},_0x407353={_0xf3cf0d:0x7b};function _0x4ea2c9(_0x5d5b79,_0x51cf41,_0x31e190,_0x2d2979){return _0x1c2b50(_0x5d5b79-0x81,_0x51cf41-_0x407353._0xf3cf0d,_0x31e190-0x12d,_0x5d5b79);}function _0x5be11c(_0x2e9be7,_0x120227,_0x58623e,_0x2045b8){return _0x263708(_0x2e9be7- -_0x38f9db._0x362c72,_0x120227,_0x58623e-0xe5,_0x2045b8-0x100);}try{let _0x53dd17;for await(const _0x50892f of this[_0x4ea2c9(_0x5e194f._0x31f4ae,-_0x5e194f._0x2caa57,-_0x5e194f._0x2b4282,_0x5e194f._0x26acab)](_0x2493b5,_0x2199ef)){_0x50892f[_0x5be11c(-0x1c5,-_0x5e194f._0x48cb0b,-_0x5e194f._0x378d66,-0x110)]===_0x4ea2c9(-_0x5e194f._0x28ae4b,-0x2f,-0x91,-0xc)&&(_0x53dd17=_0x50892f[_0x5be11c(-_0x5e194f._0x976dba,-_0x5e194f._0x4953ac,-_0x5e194f._0xbb7084,-_0x5e194f._0x58277c)]);}if(!_0x53dd17)throw new Error(_0x4ea2c9(_0x5e194f._0x3e7b10,-_0x5e194f._0x544fed,0x15,-0x85));return _0x53dd17;}catch(_0x2c187a){if(_0x2c187a instanceof OpenAiApiError)throw this[_0x5be11c(-_0x5e194f._0x4c8df2,-0x1a,-0x1f1,-_0x5e194f._0x297a35)](_0x2c187a);throw _0x2c187a;}}async*[_0x1c2b50(-0x7a,-0x7f,-0x131,-0xe2)](_0x4539e5,_0x3af7f4){const _0xa5e32a={_0x2b4c45:0x121,_0x3dae2d:0xeb,_0xac85c4:0x78,_0x345aba:0x14e,_0x65b22d:0x669,_0x3617bd:0x630};function _0x57540a(_0xf702f5,_0x30a91e,_0x2abcb4,_0x13b00c){return _0x263708(_0x2abcb4-0x363,_0xf702f5,_0x2abcb4-0x173,_0x13b00c-0xf4);}function _0x1589ea(_0x98ea7,_0x23d889,_0x895187,_0x4f7d56){return _0x263708(_0x4f7d56- -0x16a,_0x23d889,_0x895187-0xc2,_0x4f7d56-0xe3);}try{yield*this[_0x1589ea(_0xa5e32a._0x2b4c45,_0xa5e32a._0x3dae2d,_0xa5e32a._0xac85c4,_0xa5e32a._0x345aba)](_0x4539e5,_0x3af7f4);}catch(_0x5539e8){if(_0x5539e8 instanceof OpenAiApiError)throw this[_0x57540a(_0xa5e32a._0x65b22d,0x628,0x5ee,_0xa5e32a._0x3617bd)](_0x5539e8);throw _0x5539e8;}}async*[_0x1c2b50(-0x139,0x37,-0x52,-0xe8)](_0x12c157,_0xa03ad4){const _0xa92b7d={_0x478fde:0x18};function _0x2f9691(_0x2f9c81,_0x293ad4,_0x38762a,_0xd2cafc){return _0x1c2b50(_0x2f9c81-0xcf,_0x293ad4-_0xa92b7d._0x478fde,_0x38762a-0x15e,_0x2f9c81);}try{yield*this[_0x2f9691(0x16f,0x183,0xbd,0x63)](_0x12c157,_0xa03ad4);}catch(_0x3f3051){if(_0x3f3051 instanceof OpenAiApiError)throw this['mapApiError'](_0x3f3051);throw _0x3f3051;}}async*['responseSocketStream'](_0x31852f,_0x261fbc){const _0x21bf85={_0x56f8e0:0x103,_0x4ba6f2:0x161,_0x1fa7b7:0x179},_0x487cfa={_0x27e3a7:0x3ec,_0x1c4f7f:0x71};function _0x333f7b(_0x362fdf,_0x2a2889,_0x4bce4c,_0x24f6a2){return _0x263708(_0x24f6a2- -0xc5,_0x4bce4c,_0x4bce4c-0x190,_0x24f6a2-0x1ce);}function _0x31d9b7(_0x99ea60,_0x520a27,_0xd93af6,_0x4d8b48){return _0x263708(_0xd93af6- -_0x487cfa._0x27e3a7,_0x520a27,_0xd93af6-0xe0,_0x4d8b48-_0x487cfa._0x1c4f7f);}try{yield*this[_0x333f7b(0x1a9,0xc3,0x1dc,_0x21bf85._0x56f8e0)](_0x31852f,_0x261fbc);}catch(_0x3e3b1c){if(_0x3e3b1c instanceof OpenAiApiError)throw this[_0x31d9b7(-0x223,-0xcb,-_0x21bf85._0x4ba6f2,-_0x21bf85._0x1fa7b7)](_0x3e3b1c);throw _0x3e3b1c;}}[_0x263708(0x2dc,0x307,0x2f6,0x2c1)](_0xba8ba6,_0x22bf96){const _0x131171={_0x19be3c:0x4dc,_0x3e400f:0x46d},_0x560628={_0x18a630:0x187};function _0x134188(_0x206933,_0x29df68,_0x25683a,_0x2b01ae){return _0x1c2b50(_0x206933-0x196,_0x29df68-_0x560628._0x18a630,_0x29df68-0x5a0,_0x25683a);}return this[_0x134188(0x512,_0x131171._0x19be3c,_0x131171._0x3e400f,0x555)](_0xba8ba6,_0x22bf96);}[_0x1c2b50(-0x160,-0x1c2,-0xdc,-0xdc)](_0xbc0b38,_0x2893e0){return this['chatStream'](_0xbc0b38,_0x2893e0);}[_0x263708(0x18a,0xa2,0x1a9,0x180)](_0x203427){const _0x293f65={_0x5caa92:0x227,_0x5d9f4d:0x395,_0x50f0dd:0x2f3,_0x1a23bf:0x35a,_0x535e36:0x36d,_0x2a2643:0x34a,_0x5a6719:0x308,_0x3c659a:0x2ec,_0x2e8ddc:0x324},_0x2eba6e={_0x7e5204:0xcd,_0xe2601d:0x173},_0x4979e9={_0x5a75ec:0x51c},_0x4e2d46=this[_0x46dee0(_0x293f65._0x5caa92,0x24a,0x2e4,0x2c4)](_0x203427);let _0x1cea56=this['responsesSocketSessions'][_0x15a65d(0x2d4,_0x293f65._0x5d9f4d,_0x293f65._0x50f0dd,0x45f)](_0x4e2d46);function _0x15a65d(_0x5cf6a1,_0x27b6fd,_0x33c7fd,_0x46fcb8){return _0x1c2b50(_0x5cf6a1-0x1cb,_0x27b6fd-0x1d5,_0x27b6fd-_0x4979e9._0x5a75ec,_0x33c7fd);}function _0x46dee0(_0x359afe,_0x524f0a,_0x6c37e9,_0x33a814){return _0x263708(_0x359afe-0x99,_0x6c37e9,_0x6c37e9-_0x2eba6e._0x7e5204,_0x33a814-_0x2eba6e._0xe2601d);}return!_0x1cea56&&(_0x1cea56={'key':_0x4e2d46,'locked':![],'pending':Promise[_0x15a65d(0x414,_0x293f65._0x1a23bf,0x445,0x275)]()},this[_0x15a65d(_0x293f65._0x535e36,_0x293f65._0x2a2643,0x429,_0x293f65._0x5a6719)][_0x15a65d(_0x293f65._0x3c659a,0x37d,_0x293f65._0x2e8ddc,0x30c)](_0x4e2d46,_0x1cea56)),_0x1cea56;}[_0x263708(0x262,0x1b3,0x2f0,0x289)](_0x323f4c){const _0xfe6b6c={_0x4c5209:0x1fd,_0x1db4b1:0x25b,_0x49a2c3:0x255,_0x3774d7:0x33c,_0x133e91:0x517,_0x207358:0x15f,_0x45a712:0x190,_0x2e4c9c:0xe9,_0x6b6ebc:0x230,_0x27b94c:0x278,_0x158c58:0x47b,_0x3b86c9:0x547,_0x40a77d:0x63d,_0x32e6d0:0x67b,_0x1a8965:0x636},_0x237c7f={_0x1b4c0c:0x3de,_0x5854da:0xb0},_0x1d6b64={_0xf398af:0x160};function _0x58d211(_0xacb14e,_0x1da2dc,_0x318556,_0x5da725){return _0x1c2b50(_0xacb14e-0xda,_0x1da2dc-_0x1d6b64._0xf398af,_0x318556-0x69e,_0xacb14e);}if(_0x323f4c[_0x25cbc7(-0x21b,-_0xfe6b6c._0x4c5209,-0x16b,-0x2c5)]||_0x323f4c['connecting']||_0x323f4c['socket'])return;function _0x25cbc7(_0x19c9d1,_0x3e516f,_0x3cee25,_0xb8beb1){return _0x263708(_0x19c9d1- -_0x237c7f._0x1b4c0c,_0x3e516f,_0x3cee25-0x189,_0xb8beb1-_0x237c7f._0x5854da);}this[_0x25cbc7(-_0xfe6b6c._0x1db4b1,-_0xfe6b6c._0x49a2c3,-_0xfe6b6c._0x3774d7,-0x241)][_0x58d211(0x58e,0x4ea,_0xfe6b6c._0x133e91,0x5c1)](_0x323f4c[_0x25cbc7(-0xac,-_0xfe6b6c._0x207358,-_0xfe6b6c._0x45a712,-_0xfe6b6c._0x2e4c9c)])===_0x323f4c&&this[_0x25cbc7(-_0xfe6b6c._0x1db4b1,-_0xfe6b6c._0x6b6ebc,-0x1a0,-_0xfe6b6c._0x27b94c)][_0x58d211(_0xfe6b6c._0x158c58,0x463,_0xfe6b6c._0x3b86c9,0x4f2)](_0x323f4c[_0x58d211(0x58a,_0xfe6b6c._0x40a77d,_0xfe6b6c._0x32e6d0,_0xfe6b6c._0x1a8965)]);}['getResponsesSocketSessionKey'](_0xfefa7e){const _0x5316ba={_0x51c6bc:0xf6,_0x227ed:0xb9,_0x373309:0x7c},_0x20d265={_0x59e14e:0x122,_0x5b78d4:0x151},_0x417524={_0x195dbd:0x1b8,_0x1a9ca1:0x20,_0x4de77c:0x164};function _0x25a41(_0x1c2f11,_0x493e4a,_0x7ad2d2,_0x3cb2fe){return _0x1c2b50(_0x1c2f11-_0x417524._0x195dbd,_0x493e4a-_0x417524._0x1a9ca1,_0x1c2f11-_0x417524._0x4de77c,_0x3cb2fe);}function _0x27f018(_0x3703de,_0x48e1f9,_0xb0278c,_0x1be01a){return _0x263708(_0x48e1f9- -0x343,_0x1be01a,_0xb0278c-_0x20d265._0x59e14e,_0x1be01a-_0x20d265._0x5b78d4);}return''+trimTrailingSlashes(this[_0x27f018(-0xdd,-0xbd,-0x36,-0x9e)])+this[_0x27f018(-_0x5316ba._0x51c6bc,-_0x5316ba._0x227ed,-_0x5316ba._0x373309,-0x14d)]+'::'+_0xfefa7e;}async[_0x1c2b50(-0x108,-0xb8,-0xb0,-0xe8)](_0x576272){const _0x506494={_0x2df0e7:0x135,_0x2d7ef5:0x1c1,_0x1e65bf:0xdc,_0x42ddd9:0x95,_0x28ded7:0x6c,_0xe80f98:0xbf,_0x204684:0x147,_0x14c2c1:0xe4,_0x37fdca:0xd5,_0x5e542a:0xde,_0x148d8c:0x148,_0x269db4:0x15e,_0x23a6ae:0xc6,_0x1021e1:0x9a},_0x37c2b6={_0x787e90:0x8,_0x1f305b:0x2e,_0x18c05d:0xcc},_0x2abc44={_0x4b787f:0x2,_0x37184b:0x6d},_0x2dae93={_0x502672:0x15a},_0x5843c9={_0x35ea2f:0x22c},_0x1a0996={_0x2644a8:0xf0,_0x1f0dac:0x169},_0xf2ad1b=_0x576272[_0x3222bf(_0x506494._0x2df0e7,_0x506494._0x2d7ef5,0xd5,0xfb)][_0x36efbd(_0x506494._0x1e65bf,_0x506494._0x42ddd9,_0x506494._0x28ded7,_0x506494._0xe80f98)](()=>{});let _0x29669a;const _0x1093a2=new Promise(_0x16d071=>{_0x29669a=_0x16d071;});function _0x3222bf(_0x316df4,_0x8e24ab,_0x4e6a87,_0x7526f1){return _0x263708(_0x4e6a87- -_0x1a0996._0x2644a8,_0x7526f1,_0x4e6a87-_0x1a0996._0x1f0dac,_0x7526f1-0x18b);}_0x576272[_0x3222bf(_0x506494._0x204684,_0x506494._0x14c2c1,_0x506494._0x37fdca,_0x506494._0x5e542a)]=_0xf2ad1b['then'](()=>_0x1093a2),await _0xf2ad1b;function _0x36efbd(_0x31c9d0,_0x13849c,_0x479267,_0x35d5c3){return _0x1c2b50(_0x31c9d0-0x12b,_0x13849c-0x13a,_0x35d5c3-_0x5843c9._0x35ea2f,_0x31c9d0);}return _0x576272[_0x36efbd(_0x506494._0x148d8c,_0x506494._0x269db4,_0x506494._0x23a6ae,_0x506494._0x1021e1)]=!![],()=>{_0x576272[_0x3e6334(-0x87,_0x37c2b6._0x787e90,_0x37c2b6._0x1f305b,-0x14c)]=![];function _0x3e6334(_0x290e50,_0x3cc117,_0x47427c,_0x5bfaca){return _0x3222bf(_0x290e50-0x115,_0x3cc117-0x1e9,_0x290e50- -_0x2dae93._0x502672,_0x3cc117);}function _0x4d8588(_0x590055,_0x3f6a90,_0x4deb0a,_0x208228){return _0x3222bf(_0x590055-_0x2abc44._0x4b787f,_0x3f6a90-0x14c,_0x3f6a90- -_0x2abc44._0x37184b,_0x590055);}_0x29669a?.(),this[_0x3e6334(0x18,0xa7,0x107,_0x37c2b6._0x18c05d)](_0x576272);};}async['prepareResponsesSocketRequest'](_0x592a54,_0x495bee){const _0x476e82={_0x5bf81d:0x488,_0x21f480:0x3d4,_0x2d77fa:0x3a8,_0x21261f:0x3f2,_0x2c1855:0x42e,_0x18fda9:0x3e5,_0x15ddb6:0x3a0,_0x4006db:0x41a,_0x24980b:0x507,_0x464d08:0x4d8,_0x283356:0x273,_0x2d8e7f:0x1c4,_0x34a249:0x49b,_0x449088:0x524,_0x2a11f1:0x51a,_0x2e3603:0x5c9,_0x3d5940:0x493,_0x2fcd5a:0x427,_0x48dc93:0x5cf,_0x273648:0x294,_0x3a5074:0x38b},_0x3e2c00={_0x5bca4d:0x17f};function _0x26d684(_0x599824,_0x284ddb,_0x516eb4,_0x127de2){return _0x1c2b50(_0x599824-0x1dd,_0x284ddb-0x54,_0x599824-0x562,_0x127de2);}const _0x561b5a=this['applyModelDefaults'](_0x592a54),_0x3cba2f=toModelRequest(_0x561b5a),_0x189a89=await prepareProviderRequest(_0x3cba2f,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x26d684(0x4cf,0x527,0x59d,0x489)],'signal':_0x495bee});function _0x596abb(_0x30894c,_0x4fd042,_0x27b0ed,_0x2aca34){return _0x263708(_0x27b0ed-0x69,_0x30894c,_0x27b0ed-_0x3e2c00._0x5bca4d,_0x2aca34-0x1a1);}const _0xb73484=toChatRequest(_0x189a89[_0x26d684(_0x476e82._0x5bf81d,_0x476e82._0x21f480,_0x476e82._0x2d77fa,_0x476e82._0x21261f)]),_0xcd278e=this[_0x26d684(0x40c,_0x476e82._0x2c1855,_0x476e82._0x18fda9,_0x476e82._0x15ddb6)][_0x26d684(0x4be,_0x476e82._0x4006db,0x4c2,0x546)](this['apiKey'],_0x189a89[_0x26d684(_0x476e82._0x24980b,_0x476e82._0x464d08,0x518,0x5cb)]);if(!_0xcd278e)throw this[_0x596abb(_0x476e82._0x283356,0x255,0x1fb,_0x476e82._0x2d8e7f)]();return{'baseUrl':this[_0x26d684(0x40c,_0x476e82._0x34a249,0x4ed,0x3e9)][_0x26d684(_0x476e82._0x449088,0x582,_0x476e82._0x2a11f1,_0x476e82._0x2e3603)](this[_0x26d684(_0x476e82._0x3d5940,0x48f,0x48f,_0x476e82._0x2fcd5a)],_0x189a89[_0x26d684(_0x476e82._0x24980b,_0x476e82._0x48dc93,0x4ae,0x58d)]),'credential':_0xcd278e,'request':_0xb73484,'session':_0x189a89[_0x596abb(_0x476e82._0x273648,0x29c,0x363,_0x476e82._0x3a5074)]};}[_0x1c2b50(-0x1ad,-0x196,-0xd2,0x16)](_0x35acb0,_0x3702a5,_0x2d25f7={}){const _0x21edf3={_0x2e5e0d:0x5a,_0x14dae2:0xb,_0x533f2e:0xb,_0x37a239:0xd7,_0x2338aa:0xa2,_0x378158:0x1e,_0xd49e7b:0x6f,_0x1bc328:0x135,_0x108a34:0x6a,_0xe53342:0xd,_0x6751fe:0x9b,_0x17b3da:0xaa,_0x1ae4f2:0x146,_0x56b85c:0x123,_0x59b290:0xa3,_0x1e7ab8:0x5,_0x519672:0x30,_0x4d87f3:0x4b},_0x5ed5ad={_0x3757f5:0x86,_0x144104:0x9a};function _0x56bbdf(_0x55a6c6,_0x2c0fe7,_0x38aa12,_0x337048){return _0x1c2b50(_0x55a6c6-0x18c,_0x2c0fe7-_0x5ed5ad._0x3757f5,_0x38aa12-_0x5ed5ad._0x144104,_0x2c0fe7);}function _0x564bbc(_0x56fcd6,_0x4d80cf,_0x4cd8b8,_0x104863){return _0x1c2b50(_0x56fcd6-0xf2,_0x4d80cf-0x196,_0x4cd8b8-0x16a,_0x56fcd6);}if(!_0x2d25f7[_0x56bbdf(0x77,0x35,_0x21edf3._0x2e5e0d,-_0x21edf3._0x14dae2)]){const _0x3fd591=this[_0x564bbc(0x40,0xfc,_0x21edf3._0x533f2e,0xea)](_0x35acb0);if(_0x3fd591&&_0x3702a5['lastResponseId']&&_0x3fd591['responseId']===_0x3702a5[_0x564bbc(_0x21edf3._0x37a239,_0x21edf3._0x2338aa,0x112,0x1f2)]){const _0x29781c=toOpenAiResponsesRequest({..._0x35acb0,'messages':_0x35acb0[_0x564bbc(0xbd,-_0x21edf3._0x378158,_0x21edf3._0xd49e7b,_0x21edf3._0x1bc328)][_0x56bbdf(0x8f,-_0x21edf3._0x108a34,-_0x21edf3._0xe53342,_0x21edf3._0x6751fe)](_0x3fd591['messageIndex']+0x1)})[_0x564bbc(_0x21edf3._0x17b3da,0x1bf,_0x21edf3._0x1ae4f2,0x234)];return{'event':createOpenAiResponsesWebSocketEvent(_0x35acb0,{'input':_0x29781c,'promptCacheKey':this[_0x56bbdf(-0x1ee,-0xeb,-_0x21edf3._0x56b85c,-_0x21edf3._0x59b290)]?.(_0x35acb0),'previousResponseId':_0x3fd591[_0x564bbc(0xb4,-0x26,-_0x21edf3._0x1e7ab8,-_0x21edf3._0x519672)]}),'previousResponseId':_0x3fd591[_0x564bbc(-0xc5,-_0x21edf3._0x4d87f3,-0x5,-0xc4)]};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x35acb0,{'promptCacheKey':this['promptCacheKeyResolver']?.(_0x35acb0)})};}[_0x1c2b50(-0x14a,-0xe4,-0x15f,-0x78)](_0x28cab3){const _0x29525a={_0x24bd7f:0x1cb,_0x4dd21f:0x16c,_0x5cf184:0xab,_0x335a80:0x154,_0x466efb:0x7b,_0x52e83e:0x1cf,_0x4e031e:0x153},_0x5f2603={_0x5c1427:0x87,_0x223f9c:0x154};function _0x5c6235(_0x574466,_0x521d77,_0x59cdd5,_0x19cda1){return _0x263708(_0x521d77-_0x5f2603._0x5c1427,_0x19cda1,_0x59cdd5-_0x5f2603._0x223f9c,_0x19cda1-0xd1);}for(let _0x2fb3ac=_0x28cab3[_0x5c6235(0x24d,0x2e1,0x286,0x3bd)][_0x21639a(0x24e,_0x29525a._0x24bd7f,0x229,_0x29525a._0x4dd21f)]-0x1;_0x2fb3ac>=0x0;_0x2fb3ac-=0x1){const _0x1cddb4=_0x28cab3[_0x21639a(_0x29525a._0x5cf184,_0x29525a._0x335a80,_0x29525a._0x466efb,0xdd)][_0x2fb3ac],_0x383a70=_0x1cddb4['role']==='assistant'?_0x1cddb4[_0x21639a(0x13e,0x6b,_0x29525a._0x52e83e,_0x29525a._0x4e031e)]?.['openaiResponsesResponseId']:void 0x0;if(_0x383a70)return{'messageIndex':_0x2fb3ac,'responseId':_0x383a70};}function _0x21639a(_0x99a4e4,_0x59632d,_0x1d52da,_0x1a076c){return _0x263708(_0x1a076c- -0x17d,_0x99a4e4,_0x1d52da-0x2b,_0x1a076c-0x8d);}return void 0x0;}[_0x263708(0x2d5,0x208,0x369,0x393)](_0x1e2d59){const _0x2f5e4f={_0x1f832c:0x4ec,_0x526790:0x56c,_0x4ccec5:0x51a,_0x5f4d66:0x565,_0x53fa0c:0xe8},_0xff652f={_0x5f53ab:0x4},_0x577a38={_0xc7c630:0x37c,_0x4faf23:0x178};function _0x3244fc(_0x45ab9e,_0x5a5e8c,_0x17c20d,_0x4d961f){return _0x263708(_0x5a5e8c-_0x577a38._0xc7c630,_0x45ab9e,_0x17c20d-0x58,_0x4d961f-_0x577a38._0x4faf23);}function _0x2986a3(_0x1ce33a,_0xa9a08d,_0x2cb4c6,_0x51553e){return _0x1c2b50(_0x1ce33a-0x16b,_0xa9a08d-_0xff652f._0x5f53ab,_0xa9a08d- -0x1a,_0x2cb4c6);}return _0x1e2d59 instanceof ProviderStreamEventError&&(_0x1e2d59[_0x3244fc(_0x2f5e4f._0x1f832c,_0x2f5e4f._0x526790,_0x2f5e4f._0x4ccec5,0x616)]===_0x3244fc(0x5d6,_0x2f5e4f._0x5f4d66,0x61f,0x63a)||_0x1e2d59[_0x2986a3(-_0x2f5e4f._0x53fa0c,-0x17f,-0x18c,-0x1ab)]==='websocket_connection_limit_reached');}[_0x263708(0x21e,0x2d6,0x17d,0x2ab)](_0x50bcaa){const _0xcf3ef1={_0x30a08d:0x1b8,_0x95058c:0x19a,_0x4bb6a4:0x150,_0x1e0f90:0x14d,_0x451484:0x214,_0x99085:0x540,_0x1e04ce:0x5bb,_0x501b1e:0x572,_0x3bc919:0x6f1,_0x270985:0x52c,_0x52e5ec:0x501,_0x5c33bd:0x44a,_0x488b68:0x465,_0x1be596:0x46b,_0x48f16b:0x50e,_0x512c42:0x1d9,_0x99cc55:0x161},_0x56782c={_0x4fd595:0x76,_0x69d240:0x2ae},_0x1ff2ba=_0x50bcaa[_0x4e5d9f(_0xcf3ef1._0x30a08d,_0xcf3ef1._0x95058c,_0xcf3ef1._0x4bb6a4,0x102)];function _0x2e98bb(_0x2b2fda,_0x47850b,_0x509ca7,_0x3ac2f5){return _0x1c2b50(_0x2b2fda-0x116,_0x47850b-0xcd,_0x509ca7-0x613,_0x2b2fda);}function _0x4e5d9f(_0x432a0f,_0x25af6b,_0x1c3a77,_0x1869ed){return _0x1c2b50(_0x432a0f-0x0,_0x25af6b-_0x56782c._0x4fd595,_0x25af6b-_0x56782c._0x69d240,_0x1c3a77);}_0x50bcaa['socket']=void 0x0,_0x50bcaa[_0x4e5d9f(0x273,0x1eb,_0xcf3ef1._0x1e0f90,_0xcf3ef1._0x451484)]=void 0x0,_0x50bcaa[_0x2e98bb(0x50a,_0xcf3ef1._0x99085,_0xcf3ef1._0x1e04ce,0x653)]=void 0x0,_0x1ff2ba?.[_0x2e98bb(0x573,_0xcf3ef1._0x501b1e,0x602,_0xcf3ef1._0x3bc919)]===WebSocket[_0x2e98bb(_0xcf3ef1._0x270985,_0xcf3ef1._0x52e5ec,_0xcf3ef1._0x5c33bd,_0xcf3ef1._0x488b68)]&&_0x1ff2ba[_0x2e98bb(0x4ad,_0xcf3ef1._0x1be596,_0xcf3ef1._0x48f16b,0x542)](0x3e8,_0x4e5d9f(_0xcf3ef1._0x512c42,0x124,_0xcf3ef1._0x99cc55,0x16c));}async['getOrCreateResponsesSocket'](_0x1a6d26,_0x259a20,_0x5d6d6c,_0x4dc3cf,_0x57a02f){const _0x4300ac={_0x594dd0:0x2b7,_0x833119:0x489,_0x4fb854:0x4ae,_0x17d139:0x341,_0x304d20:0x41a,_0x5a87e7:0x194,_0x399766:0x1e8,_0x414394:0x132,_0x5587bf:0xf3,_0x254a7a:0x1af,_0x4e32af:0x409,_0x3ad2ad:0x4c5,_0x5de8cc:0x429},_0x520d4b={_0x59dc21:0xd9,_0xe3d9ef:0x252,_0x435099:0x309,_0x2f47e4:0x22d,_0x2a80bf:0x2df,_0x30ebc8:0x2c2,_0x5cfd45:0x1e3,_0x375ef1:0x11e,_0x53e842:0x232,_0x36adbb:0x16f,_0x4ffc19:0x193,_0x37fcdc:0x1a0,_0x555b55:0x1ed,_0x975161:0x24b,_0x27ca5c:0x15b,_0x331e8b:0x153,_0x5d9139:0x13b,_0xbc0ef0:0x163,_0x40407c:0x4c,_0x2c9b64:0xaa,_0x3f1847:0x14c,_0x2c6f86:0xf3,_0x1ca93c:0x1cd,_0x3ba098:0x1c8,_0x385fe6:0x207,_0x16bf4c:0x191,_0x3230e1:0x21,_0x40597f:0x2ea,_0x4346e7:0x277,_0xfa3b4b:0x230,_0xea86cf:0x313,_0x4fca41:0x2cd,_0x5b1654:0x2a5,_0x172ca5:0x293},_0x534fe1={_0x2aa752:0x160,_0x595c5b:0x12d},_0x1606f0={_0x1674e1:0x1d9,_0x1278d8:0xe};function _0x197f8f(_0x4b2b9f,_0x3f58d4,_0x410718,_0x44bb06){return _0x263708(_0x44bb06-_0x1606f0._0x1674e1,_0x3f58d4,_0x410718-0x129,_0x44bb06-_0x1606f0._0x1278d8);}if(_0x259a20['socket']?.[_0x197f8f(0x541,0x5ea,0x511,0x51d)]===WebSocket[_0x197f8f(0x2c2,0x42e,_0x4300ac._0x594dd0,0x365)])return _0x259a20[_0x197f8f(_0x4300ac._0x833119,_0x4300ac._0x4fb854,_0x4300ac._0x17d139,_0x4300ac._0x304d20)];if(_0x259a20[_0x7ca851(0x176,0x94,0x132,_0x4300ac._0x5a87e7)])return await _0x259a20['connecting'];function _0x7ca851(_0x20ca6e,_0x3f8554,_0x59b06a,_0x59bd99){return _0x263708(_0x59b06a- -_0x534fe1._0x2aa752,_0x3f8554,_0x59b06a-0x36,_0x59bd99-_0x534fe1._0x595c5b);}_0x259a20[_0x7ca851(0x1b6,_0x4300ac._0x399766,_0x4300ac._0x414394,0x136)]=((async()=>{const _0x50fe0a={_0x55ba14:0x2b2,_0x5e98c9:0x5e,_0x23daa7:0x36e,_0x3a6dcc:0x3e2,_0x2a5f2f:0x42b},_0x154077={_0x9b9c8a:0x13e,_0xb6e75c:0x130,_0x582d24:0x54},_0x1e6f8c={_0x1e4289:0xa7},_0x3addd9={_0x173d83:0x191,_0xf03a50:0x281,_0x25de6c:0x39},_0x4e879e=await this[_0x47bcdb(-0xa6,-0x16c,-0xd8,-_0x520d4b._0x59dc21)]({'request':_0x5d6d6c['request'],'body':_0x4dc3cf,'credential':_0x5d6d6c[_0x392bf3(0x253,_0x520d4b._0xe3d9ef,0x163,_0x520d4b._0x435099)],'session':_0x5d6d6c[_0x392bf3(_0x520d4b._0x2f47e4,0x206,0x1d3,_0x520d4b._0x2a80bf)],'stream':!![]},{'accept':'application/json','includeContentType':![]});function _0x47bcdb(_0x32900c,_0x509da3,_0xb24434,_0x4a69e5){return _0x7ca851(_0x32900c-_0x3addd9._0x173d83,_0x32900c,_0x4a69e5- -_0x3addd9._0xf03a50,_0x4a69e5-_0x3addd9._0x25de6c);}_0x4e879e[_0x47bcdb(-_0x520d4b._0x30ebc8,-0x2b0,-0x25c,-_0x520d4b._0x5cfd45)](_0x47bcdb(-0x200,-0x161,-0x15e,-0x1df));const _0x2b0b91=this['webSocketFactory']({'headers':Object[_0x392bf3(_0x520d4b._0x375ef1,0x20a,0x130,0x1d1)](_0x4e879e[_0x47bcdb(-0x1c3,-_0x520d4b._0x53e842,-_0x520d4b._0x36adbb,-_0x520d4b._0x4ffc19)]()),'url':(''+_0x5d6d6c[_0x47bcdb(-_0x520d4b._0x37fcdc,-_0x520d4b._0x555b55,-_0x520d4b._0x975161,-_0x520d4b._0x27ca5c)]+this['responsesPath'])[_0x392bf3(_0x520d4b._0x331e8b,0x23c,0x1fb,_0x520d4b._0x5d9139)](/^http:/,_0x47bcdb(-0x244,-0x210,-0x235,-_0x520d4b._0xbc0ef0))['replace'](/^https:/,_0x47bcdb(-_0x520d4b._0x40407c,-_0x520d4b._0x2c9b64,-_0x520d4b._0x3f1847,-_0x520d4b._0x2c6f86))});function _0x392bf3(_0x1f022a,_0x1c4910,_0x4566d5,_0x32aa81){return _0x7ca851(_0x1f022a-_0x1e6f8c._0x1e4289,_0x4566d5,_0x1f022a-0x93,_0x32aa81-0x62);}const _0x2124f0=()=>{const _0x22930c={_0x1903f6:0x140,_0x534583:0x1a8};_0x259a20[_0x2d48ad(0x2d3,_0x50fe0a._0x55ba14,0x20a,0x2ec)]===_0x2b0b91&&(_0x259a20[_0x1eb0fc(_0x50fe0a._0x5e98c9,0x63,-0x5b,0x4e)]=void 0x0,_0x259a20[_0x2d48ad(0x37b,_0x50fe0a._0x23daa7,_0x50fe0a._0x3a6dcc,_0x50fe0a._0x2a5f2f)]=void 0x0);function _0x1eb0fc(_0x107a0f,_0x73c319,_0x52a6ba,_0xed787d){return _0x392bf3(_0x73c319- -0x111,_0x73c319-_0x22930c._0x1903f6,_0x107a0f,_0xed787d-_0x22930c._0x534583);}function _0x2d48ad(_0x1dd591,_0x45e2a1,_0x265afe,_0x58b0f8){return _0x392bf3(_0x45e2a1-_0x154077._0x9b9c8a,_0x45e2a1-_0x154077._0xb6e75c,_0x265afe,_0x58b0f8-_0x154077._0x582d24);}this[_0x2d48ad(0x33a,0x2d3,0x28d,0x249)](_0x259a20);};_0x2b0b91[_0x392bf3(0x1d0,0x27b,0x274,0x1cd)](_0x47bcdb(-_0x520d4b._0x1ca93c,-_0x520d4b._0x3ba098,-_0x520d4b._0x385fe6,-_0x520d4b._0x16bf4c),_0x2124f0);try{return throwIfAborted(_0x57a02f),_0x2b0b91[_0x47bcdb(-0x41,-_0x520d4b._0x3230e1,-0x80,-0x9d)]!==WebSocket[_0x47bcdb(-0x2a8,-0x324,-_0x520d4b._0x40597f,-0x255)]&&await waitForWebSocketOpen(_0x2b0b91,_0x57a02f),throwIfAborted(_0x57a02f),_0x259a20['socket']=_0x2b0b91,_0x2b0b91;}catch(_0x52f334){_0x2124f0();_0x2b0b91[_0x392bf3(_0x520d4b._0x4346e7,_0x520d4b._0xfa3b4b,0x18e,_0x520d4b._0xea86cf)]===WebSocket[_0x47bcdb(-_0x520d4b._0x4fca41,-_0x520d4b._0x5b1654,-_0x520d4b._0x172ca5,-0x255)]&&_0x2b0b91['close'](0x3e8,'connect_failed');throw _0x52f334;}})());try{return await _0x259a20[_0x7ca851(_0x4300ac._0x5587bf,_0x4300ac._0x254a7a,0x132,0x143)];}finally{_0x259a20[_0x197f8f(_0x4300ac._0x4e32af,_0x4300ac._0x3ad2ad,_0x4300ac._0x5de8cc,0x46b)]=void 0x0;}}async*[_0x1c2b50(-0x1a6,-0x11a,-0x18d,-0xe5)](_0x25a86b,_0xf9530e){const _0x31b258={_0x2e7239:0x5a0,_0x1ce017:0x589,_0x3f60cb:0x384,_0x34ca44:0x339,_0x4decc1:0x4d5,_0x594b70:0x5a1,_0x44ac1b:0x550,_0x5bea2c:0x587,_0x4232e9:0x358,_0x4f67e1:0x3e7,_0x36cec9:0x61e,_0x3d238d:0x52e,_0xaf8613:0x59a,_0x5e58ff:0x550,_0x103bf0:0x3d1,_0x12713f:0x592,_0x33c753:0x61d,_0x24e6c1:0x56a,_0x528c45:0x60f,_0x9a4c8:0x4ea,_0x580d26:0x5b8,_0xf7c6f4:0x561,_0x3aa64c:0x5a4,_0x426587:0x675,_0x4252ed:0x685,_0x394b03:0x4f3,_0x4702ce:0x5d5,_0x53beb4:0x58c,_0x89d1d6:0x3e2,_0x5bc614:0x4c1,_0x5c5f0c:0x40d,_0x1a36a7:0x4ba,_0x5c8586:0x550,_0x114199:0x471,_0x505353:0x54e,_0x357b6e:0x56a,_0x57bbf2:0x2f7,_0x44307b:0x2bd,_0x5f1d3a:0x233},_0x54f88e={_0x21fa0:0x1d,_0x537e62:0x185},_0x52a5a0={_0x4d7535:0x1c5},_0x2bed10=this[_0x2bcd77(_0x31b258._0x2e7239,0x569,_0x31b258._0x1ce017,0x513)](_0x25a86b),_0x347a7e=this[_0x46dd3c(0x304,_0x31b258._0x3f60cb,0x328,_0x31b258._0x34ca44)](_0x2bed10[_0x2bcd77(_0x31b258._0x4decc1,_0x31b258._0x594b70,_0x31b258._0x44ac1b,0x4df)][_0x2bcd77(_0x31b258._0x5bea2c,0x5c3,0x56a,0x5eb)]),_0x5c0a19=await this[_0x46dd3c(0x41f,_0x31b258._0x4232e9,0x360,_0x31b258._0x4f67e1)](_0x347a7e);function _0x2bcd77(_0x4f04ed,_0x4df110,_0x15c7bc,_0x2023d6){return _0x1c2b50(_0x4f04ed-0x1d4,_0x4df110-_0x52a5a0._0x4d7535,_0x15c7bc-0x70c,_0x2023d6);}function _0x46dd3c(_0x9cc395,_0x43f2c1,_0x53af7c,_0x553105){return _0x1c2b50(_0x9cc395-_0x54f88e._0x21fa0,_0x43f2c1-_0x54f88e._0x537e62,_0x9cc395-0x4cf,_0x43f2c1);}try{const _0xeee6a1=this[_0x2bcd77(0x60d,_0x31b258._0x36cec9,0x63a,_0x31b258._0x2e7239)](_0x2bed10,_0x347a7e);try{yield*this[_0x2bcd77(_0x31b258._0x3d238d,_0x31b258._0xaf8613,0x61f,_0x31b258._0x5e58ff)](_0x2bed10[_0x46dd3c(0x313,_0x31b258._0x103bf0,0x224,0x28b)][_0x2bcd77(_0x31b258._0x12713f,_0x31b258._0x33c753,_0x31b258._0x24e6c1,0x4e7)],_0x347a7e,_0x2bed10,_0xeee6a1[_0x2bcd77(_0x31b258._0x528c45,_0x31b258._0x9a4c8,_0x31b258._0x580d26,_0x31b258._0xf7c6f4)],_0xf9530e?.['signal']);return;}catch(_0x331d26){if(!_0xeee6a1[_0x2bcd77(_0x31b258._0x3aa64c,_0x31b258._0x426587,_0x31b258._0x4252ed,0x5d0)]||!this[_0x46dd3c(0x44f,0x492,0x440,_0x31b258._0x394b03)](_0x331d26)){this[_0x2bcd77(0x55a,0x5a6,_0x31b258._0x4702ce,0x626)](_0x347a7e);throw _0x331d26;}}this['invalidateResponsesSocketSession'](_0x347a7e);const _0x3c3edf=this[_0x2bcd77(_0x31b258._0x53beb4,0x5fe,0x63a,0x674)](_0x2bed10,_0x347a7e,{'forceFullReplay':!![]});yield*this[_0x46dd3c(_0x31b258._0x89d1d6,_0x31b258._0x5bc614,0x3ee,_0x31b258._0x5c5f0c)](_0x2bed10[_0x2bcd77(_0x31b258._0x1a36a7,0x5ec,_0x31b258._0x5c8586,_0x31b258._0x114199)][_0x2bcd77(_0x31b258._0x505353,0x57b,_0x31b258._0x357b6e,0x60f)],_0x347a7e,_0x2bed10,_0x3c3edf[_0x46dd3c(0x37b,_0x31b258._0x57bbf2,0x2f9,_0x31b258._0x44307b)],_0xf9530e?.[_0x46dd3c(0x316,_0x31b258._0x5f1d3a,0x3c8,0x250)]);}finally{_0x5c0a19();}}async*[_0x1c2b50(-0x10c,-0x17a,-0xed,-0xef)](_0x1b9d5a,_0x172477,_0x13a630,_0x3e46e2,_0x1dfd16){const _0x5333f1={_0x348a08:0x52,_0x27ad01:0x18,_0x914261:0x613,_0x5907fc:0x534,_0x3948d9:0x5c1,_0x4a120d:0x228,_0x194fdf:0x21f,_0x87b97a:0x2df,_0x686308:0x9e,_0x444ab4:0x45c,_0x1b9cb8:0x510,_0x4bbb07:0x1e8,_0x2979a4:0x496,_0x1e8a4c:0x4b8,_0x5931aa:0x434,_0x42dbe3:0x4e4,_0x1bf3aa:0xe7,_0x5e5360:0x1b6,_0x24477c:0x135,_0x351944:0x52a,_0x3a2ab6:0x49b,_0x5e584d:0x41a,_0xb59d24:0xd8},_0xa84f3d={_0x56875d:0x3cb,_0x58a546:0x6d,_0x42ec7c:0x16a},_0x49c61c={_0x4823f2:0x1d3,_0x3bf411:0x5a8},_0x581621=await this[_0x517a9d(-_0x5333f1._0x348a08,-0x74,-0x103,-_0x5333f1._0x27ad01)](_0x13a630,_0x1dfd16),_0x4e7fd6=await this[_0xbec1c1(_0x5333f1._0x914261,_0x5333f1._0x5907fc,_0x5333f1._0x3948d9,0x5e6)](_0x1b9d5a,_0x172477,_0x581621,_0x3e46e2,_0x1dfd16),_0x23b315=createOpenAiResponsesStreamParser(_0x13a630);throwIfAborted(_0x1dfd16);function _0xbec1c1(_0x4a7905,_0x3f7ae3,_0x1f15fb,_0x54e4ac){return _0x1c2b50(_0x4a7905-_0x49c61c._0x4823f2,_0x3f7ae3-0x189,_0x3f7ae3-_0x49c61c._0x3bf411,_0x54e4ac);}function _0x517a9d(_0x1e04fb,_0x4b9e6c,_0x2750df,_0x35ad8f){return _0x263708(_0x4b9e6c- -_0xa84f3d._0x56875d,_0x2750df,_0x2750df-_0xa84f3d._0x58a546,_0x35ad8f-_0xa84f3d._0x42ec7c);}_0x4e7fd6[_0x517a9d(-_0x5333f1._0x4a120d,-_0x5333f1._0x194fdf,-0x1ad,-_0x5333f1._0x87b97a)](JSON[_0x517a9d(-0x15,-0x86,-_0x5333f1._0x686308,0x23)](_0x3e46e2));for await(const _0x2f1d8f of iterateWebSocketMessages(_0x4e7fd6,_0x1dfd16)){const _0x498843=_0x23b315[_0xbec1c1(_0x5333f1._0x444ab4,_0x5333f1._0x1b9cb8,0x590,0x4c0)]?.(_0x2f1d8f)??[];yield*_0x498843;if(_0x23b315[_0x517a9d(-0x195,-0x166,-_0x5333f1._0x4bbb07,-0xd0)]?.())break;}if(!_0x23b315[_0xbec1c1(_0x5333f1._0x2979a4,_0x5333f1._0x1e8a4c,_0x5333f1._0x5931aa,_0x5333f1._0x42dbe3)]?.())throw new Error('Responses\x20WebSocket\x20closed\x20before\x20response.completed');const _0x18ecc4=_0x23b315[_0x517a9d(-_0x5333f1._0x1bf3aa,-_0x5333f1._0x5e5360,-0x166,-_0x5333f1._0x24477c)](),_0x1cb878=_0x18ecc4[_0xbec1c1(0x4d4,0x523,0x551,_0x5333f1._0x351944)]?.[_0xbec1c1(_0x5333f1._0x3a2ab6,_0x5333f1._0x5e584d,0x34b,0x4c2)]??_0x18ecc4['id'];_0x1cb878&&(_0x172477[_0x517a9d(-0x1a2,-0xce,-_0x5333f1._0xb59d24,-0x92)]=_0x1cb878),yield{'type':'done','response':_0x18ecc4};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x263708(0x1d3,0x211,0x287,0x1c8),_0x1c2b50(-0x1b6,-0x1c5,-0x12b,-0x14b),_0x263708(0x287,0x348,0x318,0x248),'openai-responses-ws'];function isAnthropicSurface(_0x174639){return _0x174639==='anthropic-messages';}function _0x4c99(){const _0xc830cf=['ywDLBNq','D3nZoG','Aw5WDxruB2TLBNm','Dg9VBenHBgXZqNLjBMrLEa','ndmYmJaYs1byvLvr','AxnbCNjHEq','B3v0Chv0sw5KzxG','yMXVy2TZ','y29UC3vTzuv2zw50','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','y29UDgv4Df9Szw5NDgG','u3vYzMfJzsa','D2vIu29JA2v0rMfJDg9YEq','C2vZC2LVBG','w0rptKvD','ywjVCNq','BgfZDfjLC3bVBNnLswq','Bw9KzwXZ','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','zgvSDge','Aw5WDxrFDg9Rzw5Z','CMvZCg9UC2uUy29TCgXLDgvK','CMvZCg9UC2vtDhjLyw0','odeZmJyXnwvRBxrPtW','B3bLBMfPl2DWDc00BY1TAw5P','z2v0uMvHzgvY','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','y3jLyxrLsgvHzgvYCW','r3jVAYaOEc5HAsK','C3rYAw5N','z3b0ltu','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','B3v0Chv0x3rLEhq','B2f1DgGTDg9Rzw4','C3vWCg9YDhnnB2rLBezLDgnO','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Aw50zxjSzwf2zwq','BwvZC2fNzv9KzwX0yq','qw50AhjVCgLJ','zM9Yy2vgDwXSuMvWBgf5','C3rHDhvZ','CMvZB2X2zujHC2vvCMW','B3jPz2LUlxrYywnRzxi','C2nOzw1H','C29Tzq','Ec1HCgKTA2v5','zw5JCNLWDgvKx2nVBNrLBNq','y2fJAgvK','yM9KEq','ANnVBG','y3jLzgvUDgLHBa','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','Ahr0Cc1QC29U','zwrPDg9YugX1z2LUvMvYC2LVBG','B3bLBMfP','yw50AhjVCgLJqMfZzvvYBa','DxnLCI12AxnPyMXL','DgHPBMTPBMDFzgvSDge','C3LZDgvT','y2fWywjSzv9LBMrWB2LUDhm','zNvUy3rPB24','Aw5KzxG','DMfSDwvZ','mta1y0vYtNfK','CMvHC29UAw5Nx2rLDgfPBhm','DxnLCG','zgvMyxvSDe1VzgvSCW','Aw5WDxq','A2v5','z2L0AhvIqxbPvxjS','C3vYzMfJzxm','ChjVDMLKzxi','mtH0A0PcDLK','B3bLBKfPrgvSzwDHDgu','A2LUza','q29TBwfUzenVzgu','C2HVDwXKuMv0CNLszxnWB25Zzq','z2v0t3bLBKfPrgvSzwDHDgu','Bw9KzwXfBMrWB2LUDenHy2HL','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C2vUzfDPDgHszxrYAwvZ','C3rYDwn0DxjLzf9VDxrWDxq','yxjNDw1LBNrZ','y29TCgXLDgvwAwftDxjMywnL','yxbPlwTLEq','Cgf0Aa','CMvHzhLtDgf0zq','C3rYAw5NAwz5','Aw5WDxrFC2nOzw1H','Bwf4x2nVBxbSzxrPB25FDg9Rzw5Z','BwvKAwfFDhLWzq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','B3v0Chv0','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','DxjS','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','Bwf4x291Dhb1Df90B2TLBNm','zgf0yq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','B3bLBMfPx3jLyxnVBMLUzW','wI5bsq','C3rYAwn0','BMfTzq','y29UDgv4DfDPBMrVDW','zgvMyxvSDe1VzgvS','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','zwzMB3j0','z3b0ltuUna','r2L0shvIiefqssbLCNjVCIa','CMvXDwvZDhm','zxjYB3i','wgLHB21P','y2HHDgnTCgWT','ywrK','zMLSDgvY','AxngAw5PDgu','BwLTBY12mI41lxbYBW','zw5Kx3r1CM4','ue9tva','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','Aw5JBhvKzunVBNrLBNruExbL','Ahr0Chm6lY9JAgf0z3b0lMnVBs9IywnRzw5KlwfWAs9JB2rLEa','mZu5n1f3vuXzCW','r0vu','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','B3v0Chv0x3rVA2vUCW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','z2XTltqUnG','t1bftG','C2vUzfjHD1jLCxvLC3q','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','zw5JCNLWDgvKq29UDgvUDa','CMvZCg9UC2vtB2nRzxrtDhjLyw0','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','CMvZB2X2zq','C3vWCg9YDgvKx2vUzhbVAw50CW','yw50AhjVCgLJrgvSzwDHDgu','B3v0Chv0sw5KzxHuB0nHBgXjza','zg9Uzq','ChjVBxb0q2fJAgvlzxLszxnVBhzLCG','Bwv0ywrHDge','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','zw5KCg9PBNrZ','C2LNBMfS','DhjPBq','CMvZCg9UC2u','y29UDgvUDa','Dg9VBenHBgXpCMrLCG','CgfYDgLHBf9QC29U','y29UDgvUDf9IBg9JA19KzwX0yq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','A2v5CW','CM91DgvY','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','D2fPDezVCLjLDhj5','C2vUza','z2L0AhvI','z2v0uMv0CNLezwXHEu1Z','CMv0CNLHyMXL','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','Ahr0Cf9ZDgf0Dxm','zMLUza','C2vZC2LVBKLK','Aw5WDxrFDgv4Da','DNnJB2rLlZeUmta0lJi','C2v0','yxbP','AgfZ','z2XTltuUmq','C3vTBwfYAxPLza','BwvZC2fNzq','CMvHC29UAw5NsxrLBxm','AM9PBG','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','yw50AhjVCgLJx3rOAw5RAw5N','BgfIzwW','C2vZC2LVBK1HBMfNzxi','Dg9VBf9Yzxn1Bhq','Bg9JA2vK','DhjPBvn0yxj0','CgvUzgLUzW','mZu5mZy0mgnguxvHDq','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','yNvPBgrqyxj0AwfSt3v0Chv0','y29UDgvUDf9KzwX0yq','CMvZzxq','C3vYzMfJzq','z2v0u3vYzMfJzq','z2v0','ChjVBxb0q2fJAgvlzxK','DhLWzq','C3bSAwnL','yxbWBhLnB2rLBerLzMf1BhrZ','yw50AhjVCgLJlw1LC3nHz2vZ','Dg9VBhm','C2L6zq','C2LNBMf0DxjLx2rLBhrH','Aw5WDxrkC29U','zMv0y2G','B3bLBMfPlxjLC3bVBNnLCY13CW','yw50AhjVCgLJ','ywnJzxnZvg9Rzw4','C2LNBMf0DxjL','twLUAu1HEa','AxrLBq','CMvZCg9UC2vtB2nRzxq','CMvHC29UAw5N','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','y29UDgvUDf9IBg9JAW','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','CMvZCg9UC2vjza','z3b0ltqUmq','y2f0y2G','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','qMvHCMvYia','zNjVBuvUDhjPzxm','ChvZAa','zMLUAxnOx3jLyxnVBG','zMLUywXszxnWB25Zzq','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','y29Kzq','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','DxnHz2u','CM9Szq','z2XTltqUnW','yw50AhjVCgLJlxzLCNnPB24','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','BNvTyMvY','C3rYzwfTu3vYzMfJzq','Dgv4DfbHCNrZ','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','AgvHzgvYuMvZB2X2zxi','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','sw52ywXPzcbYzxf1zxn0oIa','zgvSzxrL','ChjVDMLKzxjbzgfWDgvY','Bwf4','zxzLBNq','ywnJzxb0','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','ChjVDg9JB2W','y3jLyxrLuMvXDwvZDa','zgvLChnLzwSTDJqTzMXHC2G','oNjLyxnVBMLUzZOW','zMXHDe1HCa','DgvSzw1LDhj5','C3rVCf9YzwfZB24','y2fJAgvszwfKsw5WDxruB2TLBNm','Dg9VBfvZzvn0yxj0rw1PDhrLza','y29WAwXVDc1JAgf0lZaUmZeUmW','CMvHC29UAw5Nx3rVA2vUCW','y29UDgvUDf9PBMrLEa','q2HHDeDqvcaVienVzgv4','yxv0Ag9YAxPHDgLVBG','B3v0Chv0x2LUzgv4','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','mJaYns0Xmc0Wmq','zMLUAxnO','Bwf4t3v0Chv0','CMvMDxnHBa','yMvHCMvY','C2vSzwn0u3vYzMfJzq','Ahr0Cc1ZC2u','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','z2XTltuUmG','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','ChjVDg9JB2XwzxjZAw9U','CMvWBgfJzq','BwvZC2fNzuLK','twLUAu1HEc1nmW','C291CMnL','y2HHDfn0CMvHBq','yxv0AfnJAgvTzq','yxv0BW','CMvTB3zLrxzLBNrmAxn0zw5LCG','C3rYzwfTvMLHuM91DgvY','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','y2XPrgvMyxvSDe1VzgvS','B21PDhrLza','nJm4nJKYsxHyA1LS','zxzLBNq6','CMvZCc0','CMvHC29UAw5Nx2nVBNrLBNq','B3bLBMfPl2DWDc00BW','y2fSBeLKvg9pDxrWDxrjBMrLEa','ChjVDMLKzxjFCMv0CNK','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','l21VzgvSCW','C3vTBwfYEv9PBMrLEa','Dg9VBc1JywXSlq','z3b0ltuTBwLUAq','DgvZDa','Dgv4Dc9LDMvUDc1ZDhjLyw0','zw5HyMXLza','BgLTAxrZ','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','zgLZywjSzwq','C29JA2v0','Dg9VBf91C2vFAwq','yxbWBgLJyxrPB24VANnVBG','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','Dgv4Da','BwfW','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','C29YDa','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','B3v0Chv0vg9Rzw5Z','l2nOyxqVy29TCgXLDgLVBNm','n2jYvev0uW','zw50CMLLCW','AxrLBv9Pza','y2XVC2u','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','DgHPBMTPBMC','mtq1ndy0zwz6ugTK','y29TCgXLDgvwAwfsB3v0zxi','CMvHC29UAw5Nx3rLEhq','CMvHC29U','ChjVDMLKzxjZ','y2XHDwrLlxnVBM5LDc00','BwvZC2fNzxm','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','z3b0ltuUmI1JB2rLEa','zNvUy3rPB25Fy2fSBa','ANnVBL9Zy2HLBwe','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs92mq','ywjVCNrLza','rgvLCfnLzwS','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','qMfZAa','z3jVAY1JB2rLlwzHC3qTmq','AxneB25L','Dg9VBenHBgXZ','Dg9VBf91C2vFzgvSDge','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','y2HHDgnTCgW','C3rHDhvZvgv4Da','yMfZzty0','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','z2v0tw9KzwXZ','y29UDgvUDc10ExbL','y29TCgXLDgvtDxjMywnL','CMvZCg9UC2vuzxH0ugfYDhm','zgf0ytO','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','yxn5BMnjDgvYyxrVCG','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','C3vWCg9YDgvKrw5KCg9PBNrZ','BM93','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C3rYzwfTvMLHu3vYzMfJzq','C3rYzwfT','Aw1Hz2vFDxjS','CMvXDwvZDa','Dg9VBf91C2u','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','D3m6','Ahr0Chm6lY9HCgKUEc5HAs92mq','Dg9bCgLfCNjVCG','Dg9mB3DLCKnHC2u','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','mtC1odG4EgX1DNjb','t3bLBKfj','yMfZzvvYBa','B3bLBMfPlxjLC3bVBNnLCW','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','DxrMltG','CMvZCg9UC2vZugf0Aa','BwfWqxbPrxjYB3i','DMLZAwjPBgL0Eq','DhjHBNnWB3j0','B3bLBG','Bw9KzwXZqMfZzvvYBa','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','y2HHDenVBxbSzxrL','y29UBMvJDgLUzW','zgvLChnLzwSTDJqTChjV','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','B3v0Chv0rM9YBwf0','mtHkuhPMzfi','C3rYzwfTshr0Cfn1CMzHy2u','CMvHC29UAw5NugfYDhm','Bw9KzwW','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','Dg9Rzw4','yNvKz2v0vg9Rzw5Z','ywrKrxzLBNrmAxn0zw5LCG','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','C3vTBwfYEv90zxH0','l3jLC3bVBNnLCW','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','C3rHCNrZv2L0Aa','l3yXl21LC3nHz2vZ','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','Aw5WDxrFANnVBL9KzwX0yq','y2HVAwnLCW','y29TCgXLDgvK','Ahr0Chm6','y2fSBf9Pza','Dg9VBf9JywXSCW','yxnZAxn0yw50','t3bLBKfPqxbPrxjYB3i','C2XPy2u','z2v0qw50AhjVCgLJrgvSzwDHDgu','y2HHDenVBxbSzxrPB25Zugf0Aa','CMvZB2X2zunYzwrLBNrPywW','zwrPDg9YvMvYC2LVBG','C3vTBwfYEuj5sw5KzxG','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','Bw9JAW','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','yxbPs2v5','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','Aw5PDgLHBev2zw50','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','zMv0y2HjBxbS','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','y29UC3vTzvDLyLnVy2TLDev2zw50','CgfYC2u','C3vTBwfYEq','y29UC3vTzvnZzuv2zw50','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','CMvXDwvZDe11Dgf0B3jZ','BwvZC2fNzv9ZDgfYDa','nJq1mZK2mgX6zwTJAq','Dgv4Dej5sw5KzxG','CMv0CNKTywz0zxi','y29TCgXLDgLVBL90B2TLBNm','DhjHBNnWB3j0x2vYCM9Y','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','C3rYzwfTx2vYCM9Y','C3rVCfjLyxnVBG','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','y2fUy2vS','ChjLDMLVDxnszxnWB25ZzuLK','zNjVBq','ChjVDMLKzxjtDgf0zq','z3jVAY00lJm','Bwf4x3rVA2vUCW','o2jHC2u2ncW','Aw52ywXPzgf0zq','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','B2jQzwn0','Aw1Hz2u','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','zgvZy3jPChrPB24','Dg9tDhjPBMC','Bwv0Ag9K','y29TCgXLDgu','Aw5JBhvKzxm','z3b0ltrV','BhmGlwXH','t3bLBLjVDxrLCG','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','CMvZB2X2zxi','zgvJB2rL','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','DMfSDwu','y2fWywjPBgL0AwvZ','CMvKywn0zwrFDgHPBMTPBMC','AgvHzgvYCW','BgvUz3rO','Dg9VBa','Bwf4vg9Rzw5Z','C3bSAxq'];_0x4c99=function(){return _0xc830cf;};return _0x4c99();}function providerFromSurface(_0x448374){const _0x5d940b={_0x2dfda2:0xe3,_0x4ab17e:0x2e,_0x182fc8:0xa1,_0x27985b:0x6b,_0x451dbb:0xd6,_0x185bb2:0x190,_0xa91e91:0x1ae},_0x405b7a={_0x294791:0x175};function _0x351f34(_0x2a5972,_0xe581d0,_0x29db35,_0x20a0e0){return _0x1c2b50(_0x2a5972-_0x405b7a._0x294791,_0xe581d0-0xcd,_0x20a0e0-0x110,_0x29db35);}function _0x4b5aa6(_0x50e299,_0x3fe079,_0x472969,_0x474689){return _0x263708(_0x3fe079- -0x2a4,_0x472969,_0x472969-0x150,_0x474689-0x1d7);}return _0x448374[_0x4b5aa6(-0x23,-0x2,-0x7c,_0x5d940b._0x2dfda2)](_0x351f34(_0x5d940b._0x4ab17e,-_0x5d940b._0x182fc8,-0x79,-_0x5d940b._0x27985b))?'anthropic':_0x351f34(_0x5d940b._0x451dbb,_0x5d940b._0x185bb2,_0x5d940b._0xa91e91,0xdf);}function resolveDefaultBaseUrl(_0x492733){const _0x2bf756={_0x4d3c86:0x248,_0x3e7242:0x157,_0x2a32a0:0xeb,_0x1e9f81:0xdd,_0x5a490c:0x1f5,_0x1693ba:0x150,_0x2aaf97:0x21c,_0x2228a1:0x49,_0x3cfbc7:0xa4,_0x1e2c94:0xd6,_0x7e09b6:0x1fe,_0x372d83:0x10d,_0x146ac7:0x29d,_0x586ef0:0x2a6,_0x1783cb:0x1ba,_0x1cdb48:0x138},_0x1650c6={_0x4ce35a:0xb5,_0x16d480:0x62},_0x5528d2={_0xb15ac7:0x9f,_0x3a025d:0x147,_0x4c5996:0x1eb};function _0x1f6161(_0x4c1472,_0xb89f6,_0x4c5378,_0xdccdb3){return _0x1c2b50(_0x4c1472-_0x5528d2._0xb15ac7,_0xb89f6-_0x5528d2._0x3a025d,_0xdccdb3-_0x5528d2._0x4c5996,_0xb89f6);}function _0x5ee0fa(_0x5f2d6a,_0x4a3d7f,_0x15fa86,_0x3226b5){return _0x263708(_0x4a3d7f- -0x32a,_0x15fa86,_0x15fa86-_0x1650c6._0x4ce35a,_0x3226b5-_0x1650c6._0x16d480);}if(_0x492733===_0x5ee0fa(-_0x2bf756._0x4d3c86,-_0x2bf756._0x3e7242,-_0x2bf756._0x2a32a0,-_0x2bf756._0x1e9f81))return getProviderProfile(_0x5ee0fa(-_0x2bf756._0x5a490c,-_0x2bf756._0x1693ba,-0xee,-_0x2bf756._0x2aaf97))?.[_0x5ee0fa(_0x2bf756._0x2228a1,-_0x2bf756._0x3cfbc7,-0x13f,-0x14e)]??_0x1f6161(_0x2bf756._0x1e2c94,_0x2bf756._0x7e09b6,0x26,_0x2bf756._0x372d83);return getProviderProfile(_0x1f6161(0x141,_0x2bf756._0x146ac7,_0x2bf756._0x586ef0,_0x2bf756._0x1783cb))?.[_0x5ee0fa(-0xa6,-0xa4,0x5,-_0x2bf756._0x1cdb48)]??'https://api.openai.com/v1';}var ChatModel=class{['model'];[_0x263708(0x2eb,0x357,0x3b3,0x243)];[_0x263708(0x1cc,0x260,0x1ac,0x25f)];[_0x1c2b50(-0xa3,-0xb6,-0x20,0xb4)];[_0x1c2b50(-0x281,-0x143,-0x1c0,-0x1b9)];[_0x1c2b50(0x6c,-0x8d,-0x1e,-0x36)];constructor(_0x52ae08={}){const _0x124314={_0x312216:0x87,_0x385fcb:0x91,_0x273443:0x156,_0x3f3677:0x489,_0x333c46:0x3fc,_0x355ef8:0x4a,_0x177f3e:0x6a,_0x4b8eb6:0x3c,_0x188fe7:0x22,_0x12235c:0x48a,_0x443f42:0x58a,_0x4d9541:0x54d,_0x12a338:0x434,_0x1c080c:0x386,_0x4ddf26:0x3bd,_0x1b9e00:0x529,_0x583539:0x440,_0x20a160:0x34f,_0x17b522:0x38b,_0x339e63:0x67,_0x7e8f54:0x17c,_0xa940c8:0x25,_0x3ccd50:0x1d,_0x2aac4e:0x2ef,_0x2ddd0e:0x3d0,_0x4077c5:0x392,_0x1b1b2f:0x52f,_0x3ae348:0x3d5,_0x4349f8:0x179,_0x2b4840:0x3be,_0x124f29:0x334,_0x3f6cc1:0x407,_0x303a6e:0x42,_0x1c7715:0x8c,_0x54feb5:0x44a,_0x4ac6ad:0x47c,_0x1b1b31:0x3e1,_0x39e682:0x471,_0x30639e:0x2c5,_0x1cbcf6:0x358,_0x28eade:0x417,_0x95a208:0x47f,_0x5cf27d:0xea,_0x27b3c7:0x130,_0x2c91f2:0x4f5,_0x4824fa:0x43b,_0x5baf75:0x3f2,_0x542718:0x31e,_0x3f3c75:0x377,_0x139de9:0x6,_0x4c313a:0xd9,_0x5d8799:0x1f},_0x5885c5={_0x26c344:0x1ba},_0x5d3a0d={_0x36f7ad:0x208,_0x4c1418:0x19e};this[_0x257401(0x82,_0x124314._0x312216,0x139,_0x124314._0x385fcb)]=_0x52ae08[_0x257401(-0x4d,_0x124314._0x273443,0xdf,0x91)]??getDefaultModel();function _0x257401(_0x4e1255,_0x3d9f07,_0x4f8714,_0x291b29){return _0x263708(_0x291b29- -_0x5d3a0d._0x36f7ad,_0x3d9f07,_0x4f8714-_0x5d3a0d._0x4c1418,_0x291b29-0x149);}this['maxTokens']=_0x52ae08[_0x4fdf01(0x4b3,_0x124314._0x3f3677,0x4a5,_0x124314._0x333c46)],this[_0x257401(-_0x124314._0x355ef8,_0x124314._0x177f3e,-0x127,-_0x124314._0x4b8eb6)]=_0x52ae08['surface']??_0x257401(0xfc,0x2d,0x48,_0x124314._0x188fe7),this[_0x4fdf01(_0x124314._0x12235c,_0x124314._0x443f42,0x4ef,_0x124314._0x4d9541)]=providerFromSurface(this[_0x4fdf01(_0x124314._0x12a338,0x42a,_0x124314._0x1c080c,_0x124314._0x4ddf26)]);const _0x56b2b5=trimTrailingSlashes(_0x52ae08[_0x4fdf01(0x415,_0x124314._0x1b9e00,_0x124314._0x583539,0x3a1)]??resolveDefaultBaseUrl(this['surface']));function _0x4fdf01(_0x1b086c,_0x26c6fa,_0x2d47de,_0xd30cfd){return _0x263708(_0x2d47de-_0x5885c5._0x26c344,_0x1b086c,_0x2d47de-0x12d,_0xd30cfd-0x67);}if(isAnthropicSurface(this['surface'])){this[_0x4fdf01(0x3c8,0x28e,_0x124314._0x20a160,_0x124314._0x17b522)]=new AnthropicModel({'apiKey':_0x52ae08[_0x257401(0xfe,_0x124314._0x339e63,_0x124314._0x7e8f54,0xaf)],'authScheme':_0x52ae08[_0x257401(_0x124314._0xa940c8,-0xa8,0x95,_0x124314._0x3ccd50)],'baseUrl':_0x56b2b5,'fetch':_0x52ae08[_0x4fdf01(_0x124314._0x2aac4e,_0x124314._0x2ddd0e,_0x124314._0x4077c5,0x44e)],'headerResolver':_0x52ae08['anthropicHeaderResolver'],...this['maxTokens']!==void 0x0?{'maxTokens':this[_0x4fdf01(0x3c5,_0x124314._0x1b1b2f,0x4a5,_0x124314._0x3ae348)]}:{},'model':this[_0x257401(_0x124314._0x4349f8,0x4c,0xce,_0x124314._0x385fcb)],'reasoning':_0x52ae08[_0x4fdf01(_0x124314._0x2b4840,_0x124314._0x124f29,0x39a,_0x124314._0x3f6cc1)],'providerSessionResolver':_0x52ae08[_0x257401(-_0x124314._0x303a6e,0x16e,0x139,_0x124314._0x1c7715)],'requestMutators':_0x52ae08[_0x4fdf01(_0x124314._0x54feb5,0x3b3,_0x124314._0x4ac6ad,_0x124314._0x1b1b31)]});return;}this['openAiDelegate']=new OpenAiModel({'apiKey':_0x52ae08[_0x4fdf01(0x3c7,0x407,_0x124314._0x39e682,0x431)],'baseUrl':_0x56b2b5,'fetch':_0x52ae08[_0x4fdf01(_0x124314._0x30639e,_0x124314._0x1cbcf6,0x392,_0x124314._0x28eade)],'headerResolver':_0x52ae08[_0x4fdf01(_0x124314._0x95a208,0x316,0x3b5,0x2fb)],...this[_0x257401(0xa5,_0x124314._0x5cf27d,_0x124314._0x27b3c7,0xe3)]!==void 0x0?{'maxTokens':this[_0x4fdf01(_0x124314._0x2c91f2,_0x124314._0x4824fa,0x4a5,_0x124314._0x5baf75)]}:{},'model':this['model'],'promptCacheKeyResolver':_0x52ae08['promptCacheKeyResolver'],'reasoning':_0x52ae08[_0x4fdf01(_0x124314._0x542718,0x46c,0x39a,_0x124314._0x3f3c75)],'providerSessionResolver':_0x52ae08['providerSessionResolver'],'requestMutators':_0x52ae08[_0x257401(_0x124314._0x139de9,_0x124314._0x4c313a,-_0x124314._0x5d8799,0xba)],'webSocketFactory':_0x52ae08['webSocketFactory']});}[_0x1c2b50(-0x31,0x29,-0xa6,-0x15d)](){const _0x303a2f={_0x579802:0x290,_0xc7f028:0x1d9,_0xccf6dc:0x1a4},_0x350353={_0x4af0ee:0x19c,_0x142693:0x87,_0x23ee1b:0x1c},_0x5c2dfa={_0x2d3900:0x160,_0x13ab60:0x136};function _0x2ae4d1(_0x17f5a1,_0x5be253,_0x51db24,_0x9dcc5f){return _0x263708(_0x17f5a1- -0x2af,_0x51db24,_0x51db24-_0x5c2dfa._0x2d3900,_0x9dcc5f-_0x5c2dfa._0x13ab60);}if(!this[_0x45bba5(-0x18f,-0x214,-_0x303a2f._0x579802,-0x1a4)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this['surface']);function _0x45bba5(_0x3f8663,_0x129f94,_0xbc6a1f,_0x3a444f){return _0x1c2b50(_0x3f8663-_0x350353._0x4af0ee,_0x129f94-_0x350353._0x142693,_0x3a444f-_0x350353._0x23ee1b,_0xbc6a1f);}return this[_0x45bba5(-_0x303a2f._0xc7f028,-0x133,-0x163,-_0x303a2f._0xccf6dc)];}['getOpenAiDelegate'](){const _0x311558={_0x3d95a4:0x1cd,_0x2a84e3:0x138,_0x4305f5:0x16c,_0x13bb61:0x108,_0x3cc2ae:0xcb,_0x9ef35c:0x26e,_0x563103:0x359,_0x48a71c:0x32a},_0x451d44={_0x519820:0x81},_0x4928a3={_0x4dac4f:0x66};function _0x529ec2(_0x12fba7,_0x587796,_0x25ec84,_0x4c0246){return _0x1c2b50(_0x12fba7-_0x4928a3._0x4dac4f,_0x587796-0xdd,_0x12fba7-0x379,_0x25ec84);}function _0x27b73b(_0xf2551f,_0x414a0f,_0x57f821,_0x13dc99){return _0x1c2b50(_0xf2551f-0x9,_0x414a0f-0x6e,_0x414a0f-_0x451d44._0x519820,_0x13dc99);}if(!this['openAiDelegate'])throw new Error(_0x529ec2(_0x311558._0x3d95a4,_0x311558._0x2a84e3,0x110,_0x311558._0x4305f5)+this[_0x27b73b(-0xca,-_0x311558._0x13bb61,-_0x311558._0x3cc2ae,-0x1a)]);return this[_0x529ec2(0x35b,_0x311558._0x9ef35c,_0x311558._0x563103,_0x311558._0x48a71c)];}[_0x1c2b50(-0x83,-0x100,-0x79,0xe)](_0x42d6c7,_0x57c1c7){const _0x293f7c={_0x52d141:0x47,_0x4be260:0x115,_0x37e203:0x101,_0x346063:0x3ee,_0x58ec55:0x146,_0x4da8e3:0x199,_0x5e1768:0x18c,_0x51a31c:0x3d5,_0x5eb753:0x47d,_0x21e0bf:0x3f7,_0x46af64:0x408},_0x3376fa={_0x36773a:0xcd,_0x35fc42:0xfc,_0x3c26d6:0xac},_0x2811f6={_0x1df636:0x17d,_0x1f1bf8:0x214};function _0x29802b(_0x25f53a,_0xb16587,_0x3544c2,_0x4f6b3a){return _0x1c2b50(_0x25f53a-0x125,_0xb16587-_0x2811f6._0x1df636,_0x4f6b3a-_0x2811f6._0x1f1bf8,_0x25f53a);}function _0x246d01(_0x49f3ed,_0x4dcdae,_0x2cc506,_0x397568){return _0x263708(_0x397568-_0x3376fa._0x36773a,_0x2cc506,_0x2cc506-_0x3376fa._0x35fc42,_0x397568-_0x3376fa._0x3c26d6);}switch(this[_0x29802b(_0x293f7c._0x52d141,0x17,_0x293f7c._0x4be260,0x8b)]){case _0x29802b(0x94,0x136,_0x293f7c._0x37e203,0x92):return this[_0x246d01(0x466,0x45c,_0x293f7c._0x346063,0x37c)]()['complete'](_0x42d6c7,_0x57c1c7);case _0x29802b(0x12b,0x1c9,0x218,_0x293f7c._0x58ec55):return this['getOpenAiDelegate']()[_0x246d01(_0x293f7c._0x4da8e3,_0x293f7c._0x5e1768,0x2da,0x26b)](_0x42d6c7,_0x57c1c7);case'openai-responses-ws':return this[_0x246d01(_0x293f7c._0x51a31c,_0x293f7c._0x5eb753,_0x293f7c._0x21e0bf,0x408)]()['responseSocket'](_0x42d6c7,_0x57c1c7);default:return this[_0x246d01(0x48a,0x400,0x345,_0x293f7c._0x46af64)]()['chatComplete'](_0x42d6c7,_0x57c1c7);}}['stream'](_0x10a858,_0xfb18fa){const _0x3da9f2={_0x12e808:0x3aa,_0x243510:0x43b,_0x53348b:0x527,_0x2893c6:0x600,_0x4bf23d:0x6bf,_0x5823ad:0x66e,_0xcd3426:0x5ca,_0x9eecda:0x591,_0x4afa12:0x68d,_0x4d0acc:0x5f5,_0x2c7644:0x64f,_0xf148f8:0x5a3,_0x2d1d9b:0x634,_0x1af333:0x735,_0x4e1280:0x423,_0x587524:0x3d2,_0x4a6e1c:0x4be,_0x4d76f8:0x542,_0x430c45:0x4ef},_0x1afc47={_0x1aa53f:0x2e,_0x2c69dc:0x26},_0x2b13b4={_0x2cfe5e:0x351,_0x5a49e1:0xa7};function _0x3ca113(_0x17833f,_0x40f508,_0x1cd86e,_0x2c19d8){return _0x263708(_0x40f508-_0x2b13b4._0x2cfe5e,_0x1cd86e,_0x1cd86e-0x4b,_0x2c19d8-_0x2b13b4._0x5a49e1);}function _0x4ed0d4(_0x3802c3,_0x2eda4b,_0x480573,_0x4201cc){return _0x1c2b50(_0x3802c3-_0x1afc47._0x1aa53f,_0x2eda4b-_0x1afc47._0x2c69dc,_0x480573-0x5bd,_0x2eda4b);}switch(this[_0x4ed0d4(0x4b0,_0x3da9f2._0x12e808,0x434,0x3e1)]){case _0x4ed0d4(0x475,0x38f,_0x3da9f2._0x243510,_0x3da9f2._0x53348b):return this[_0x3ca113(0x541,_0x3da9f2._0x2893c6,_0x3da9f2._0x4bf23d,0x625)]()[_0x3ca113(_0x3da9f2._0x5823ad,_0x3da9f2._0xcd3426,_0x3da9f2._0x9eecda,0x52c)](_0x10a858,_0xfb18fa);case _0x3ca113(0x623,0x5d8,0x6bb,_0x3da9f2._0x4afa12):return this[_0x4ed0d4(_0x3da9f2._0x4d0acc,_0x3da9f2._0x2c7644,_0x3da9f2._0xf148f8,0x5f9)]()[_0x3ca113(_0x3da9f2._0x2d1d9b,0x654,0x65a,_0x3da9f2._0x1af333)](_0x10a858,_0xfb18fa);case _0x4ed0d4(_0x3da9f2._0x4e1280,0x4c9,0x441,_0x3da9f2._0x587524):return this['getOpenAiDelegate']()[_0x4ed0d4(0x386,_0x3da9f2._0x4a6e1c,0x3f9,0x3c6)](_0x10a858,_0xfb18fa);default:return this[_0x4ed0d4(_0x3da9f2._0x4d76f8,_0x3da9f2._0x430c45,_0x3da9f2._0xf148f8,0x5d9)]()[_0x4ed0d4(0x4d4,0x4b7,0x48c,0x3d3)](_0x10a858,_0xfb18fa);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x263708(0x1db,0x20b,0xf1,0x1b4)];[_0x1c2b50(-0x7f,-0x75,-0xcf,0x22)];[_0x263708(0x2bb,0x1fe,0x391,0x36e)];[_0x263708(0x333,0x3df,0x2be,0x27c)];[_0x263708(0x252,0x18f,0x1d1,0x1af)];constructor(_0x337c74){const _0x4acfc5={_0x407f53:0x30c,_0x5a3805:0x24e,_0x1f1d96:0x259,_0x244a7f:0x112,_0x440adb:0x174,_0x551249:0x207,_0x3f9b23:0x1a9,_0x531174:0x245,_0x1a222c:0x194,_0x70a2e7:0x24b,_0x57e934:0x17c,_0x3939a1:0x2cb,_0x36515b:0x3a6,_0x236ede:0x2ff,_0x518b3:0x1dd},_0x28bf56={_0x1db655:0x1dd},_0x1f2b5d={_0xb903d2:0xd1,_0x227409:0x243};function _0x77fab5(_0x3503df,_0x2011dc,_0x13b3ba,_0xd1ae77){return _0x1c2b50(_0x3503df-_0x1f2b5d._0xb903d2,_0x2011dc-0x16a,_0x2011dc-_0x1f2b5d._0x227409,_0xd1ae77);}this['accessToken']=_0x337c74[_0x31acf9(_0x4acfc5._0x407f53,_0x4acfc5._0x5a3805,_0x4acfc5._0x1f1d96,0x1f1)],this[_0x77fab5(_0x4acfc5._0x244a7f,_0x4acfc5._0x440adb,_0x4acfc5._0x551249,0x18f)]=trimTrailingSlashes2(_0x337c74['baseUrl']),this[_0x77fab5(0x186,_0x4acfc5._0x3f9b23,0x166,_0x4acfc5._0x531174)]=_0x337c74[_0x31acf9(_0x4acfc5._0x1a222c,_0x4acfc5._0x70a2e7,_0x4acfc5._0x57e934,_0x4acfc5._0x3939a1)],this[_0x31acf9(0x462,_0x4acfc5._0x36515b,0x35e,_0x4acfc5._0x236ede)]=trimTrailingSlashes2(_0x337c74['githubApiUrl']);function _0x31acf9(_0x292abf,_0x20dd7e,_0x533316,_0x4deda6){return _0x263708(_0x20dd7e-0x73,_0x4deda6,_0x533316-0x2d,_0x4deda6-_0x28bf56._0x1db655);}this[_0x77fab5(0x1ed,0x140,_0x4acfc5._0x518b3,0x1b5)]=_0x337c74[_0x31acf9(0x3a1,0x2c5,0x2df,0x3a6)];}async[_0x263708(0x193,0x1ba,0x21e,0x108)](_0x317aa5){const _0x14cff6={_0x25f538:0xb5,_0x33a288:0x518,_0x299335:0x514,_0x2611cc:0x12e,_0x18c205:0x3d7,_0x241df3:0x332,_0x3f40a1:0x30b,_0x403ef1:0x125,_0x3dd6f0:0x155,_0x279788:0x93,_0xf359ed:0xbe,_0xe93fdb:0x11e,_0x162673:0x77,_0x24c83f:0x16a,_0x26bd88:0x40b,_0x37f0e2:0x484,_0x3fc9df:0x3b3,_0x2ff88b:0x442,_0x58b047:0x38c,_0x4486eb:0x351,_0x29251d:0x4c6,_0xf0c4c9:0x391,_0x4f60b5:0x34b,_0x5c3f31:0x3fc,_0x13da9f:0x51,_0x3e9c80:0x3c2,_0x571f9b:0x3d0,_0x3aeff2:0x372,_0x5d455c:0x1fb,_0x25c785:0x1e9,_0x38e7f0:0x449,_0x1c12af:0x350,_0x3ae2de:0x2e8},_0x455bba={_0x2a9588:0x176,_0x4e17af:0x169};function _0x3894c8(_0x3c9faa,_0x181d0b,_0x5a8780,_0x43345f){return _0x263708(_0x43345f-_0x455bba._0x2a9588,_0x3c9faa,_0x5a8780-_0x455bba._0x4e17af,_0x43345f-0xed);}const _0x3816e5=await this[_0x43238e(-_0x14cff6._0x25f538,-0xa2,-0xab,-0x1a2)](this[_0x3894c8(_0x14cff6._0x33a288,_0x14cff6._0x299335,0x459,0x4a9)]+'/copilot_internal/v2/token',{'method':_0x43238e(-0x1e9,-0xfb,-_0x14cff6._0x2611cc,-0x125),'headers':new Headers({'accept':_0x3894c8(_0x14cff6._0x18c205,_0x14cff6._0x241df3,_0x14cff6._0x3f40a1,0x3b9),'authorization':_0x43238e(-0x186,-_0x14cff6._0x403ef1,-_0x14cff6._0x3dd6f0,-0xae)+this['accessToken'],'editor-version':'vscode/1.106.1','user-agent':_0x43238e(-0xaf,-_0x14cff6._0x279788,-_0x14cff6._0xf359ed,-0xc0),'x-github-api-version':this[_0x43238e(-_0x14cff6._0xe93fdb,-_0x14cff6._0x162673,-0x11f,-_0x14cff6._0x24c83f)]}),'signal':_0x317aa5});if(!_0x3816e5['ok'])return{'credential':{'kind':_0x3894c8(_0x14cff6._0x26bd88,0x51c,0x416,_0x14cff6._0x37f0e2),'value':this[_0x3894c8(_0x14cff6._0x3fc9df,_0x14cff6._0x2ff88b,_0x14cff6._0x58b047,_0x14cff6._0x4486eb)]},'endpoints':{'api':this[_0x3894c8(_0x14cff6._0x29251d,_0x14cff6._0xf0c4c9,_0x14cff6._0x4f60b5,_0x14cff6._0x5c3f31)]}};function _0x43238e(_0x2901cf,_0x54e586,_0x4d036d,_0x3879ca){return _0x263708(_0x2901cf- -0x370,_0x54e586,_0x4d036d-0x74,_0x3879ca-0xdf);}const _0x1ee7ff=await _0x3816e5[_0x43238e(-_0x14cff6._0x13da9f,0x4b,-0x72,-0x26)]();return{'credential':{'kind':'session-token','value':_0x1ee7ff[_0x3894c8(_0x14cff6._0x3e9c80,_0x14cff6._0x571f9b,_0x14cff6._0x3aeff2,0x411)]??this[_0x43238e(-0x195,-0x189,-0x24e,-0xdd)]},'endpoints':{'api':_0x1ee7ff['endpoints']?.[_0x43238e(-0x1b9,-0x23e,-_0x14cff6._0x5d455c,-_0x14cff6._0x25c785)]??this['baseUrl'],'originTracker':_0x1ee7ff['endpoints']?.[_0x3894c8(0x502,_0x14cff6._0x38e7f0,0x3cd,0x48e)],'proxy':_0x1ee7ff['endpoints']?.['proxy'],'telemetry':_0x1ee7ff['endpoints']?.[_0x3894c8(_0x14cff6._0x1c12af,0x2d4,_0x14cff6._0x3ae2de,0x37f)]}};}};function trimTrailingSlashes2(_0xaf3b26){return _0xaf3b26['replace'](/\/+$/,'');}function createModelInfo(_0x39dfeb){const _0x304a85={_0xd0b3e2:0x583,_0x4ba94f:0x647,_0x40231c:0x642,_0x27ad35:0x1aa,_0x1bb12c:0xc7,_0x19e008:0x22d,_0x3ef86a:0x496,_0x838969:0x431,_0x4d5689:0x4c4,_0x28420b:0x10f,_0x2f3e68:0xca,_0x39ca5a:0x142,_0x2af0b8:0x4d2,_0x2cd70a:0x4d3,_0x56a2fa:0x88,_0x260384:0x216},_0x33b47f={_0x130aba:0xa,_0xa9db98:0xf9},_0x14395b={_0x1d3df4:0x151};function _0x91f65d(_0x25652c,_0x52879f,_0x26db27,_0x31e8e7){return _0x1c2b50(_0x25652c-_0x14395b._0x1d3df4,_0x52879f-0xba,_0x52879f-0x1ab,_0x31e8e7);}function _0x3e11f2(_0x36fd9f,_0x29b0f9,_0xfaa033,_0x26b834){return _0x263708(_0x36fd9f-0x25a,_0x26b834,_0xfaa033-_0x33b47f._0x130aba,_0x26b834-_0x33b47f._0xa9db98);}const _0x389fa3=_0x39dfeb[_0x91f65d(-0x16,-0x16,-0xff,-0x4f)]??_0x39dfeb[_0x3e11f2(_0x304a85._0xd0b3e2,_0x304a85._0x4ba94f,_0x304a85._0x40231c,0x4f3)],_0x2b7020=_0x39dfeb[_0x91f65d(_0x304a85._0x27ad35,0x13c,_0x304a85._0x1bb12c,_0x304a85._0x19e008)]?.[_0x3e11f2(_0x304a85._0x3ef86a,_0x304a85._0x838969,_0x304a85._0x4d5689,0x547)]?.[_0x91f65d(_0x304a85._0x28420b,_0x304a85._0x2f3e68,0x17d,_0x304a85._0x39ca5a)],_0x16d083=_0x39dfeb[_0x3e11f2(0x540,_0x304a85._0x2af0b8,_0x304a85._0x2cd70a,0x533)]?.[_0x91f65d(_0x304a85._0x56a2fa,0x92,-0x1c,0x13b)]?.[_0x91f65d(_0x304a85._0x260384,0x1a4,0x1f1,0x1fb)],_0x1badef=_0x2b7020!==void 0x0||_0x16d083!==void 0x0?{..._0x2b7020!==void 0x0?{'contextWindow':_0x2b7020}:{},..._0x16d083!==void 0x0?{'maxOutput':_0x16d083}:{}}:void 0x0;return{'id':_0x39dfeb['id'],'name':_0x39dfeb['name']??_0x39dfeb['id'],..._0x1badef?{'limits':_0x1badef}:{},..._0x389fa3?{'supportedEndpoints':_0x389fa3}:{}};}function deduplicateModels(_0x370e96){const _0x1f6553={_0x5f4d56:0x2f0,_0x23af6c:0x20e,_0x59a70e:0x2ca,_0x58edc5:0x2dc,_0x4b2dd0:0x428,_0x520db6:0x519,_0x4f8346:0x3ab,_0x3dd685:0x42f,_0x32858f:0x4cb,_0x242b97:0x637},_0x2451dd={_0x23ddae:0x1f2,_0x3155ba:0x126},_0x506814={_0x3bff9f:0x192},_0x55f885=new Map();function _0x122c7e(_0x4706ac,_0x328089,_0x207f86,_0x2f66a1){return _0x1c2b50(_0x4706ac-0x1a4,_0x328089-_0x506814._0x3bff9f,_0x2f66a1-0x5ce,_0x207f86);}for(const _0x45fd6d of _0x370e96){!_0x55f885[_0xbe30bc(-_0x1f6553._0x5f4d56,-_0x1f6553._0x23af6c,-_0x1f6553._0x59a70e,-_0x1f6553._0x58edc5)](_0x45fd6d['id'])&&_0x55f885[_0x122c7e(_0x1f6553._0x4b2dd0,_0x1f6553._0x520db6,_0x1f6553._0x4f8346,_0x1f6553._0x3dd685)](_0x45fd6d['id'],_0x45fd6d);}function _0xbe30bc(_0x37f816,_0x4f1036,_0x2febfb,_0x111fe7){return _0x263708(_0x4f1036- -0x3c6,_0x111fe7,_0x2febfb-_0x2451dd._0x23ddae,_0x111fe7-_0x2451dd._0x3155ba);}return Array[_0xbe30bc(-0x162,-0xf7,-0x41,-0xb2)](_0x55f885[_0x122c7e(0x4ef,_0x1f6553._0x32858f,_0x1f6553._0x242b97,0x5a5)]());}function hasUserPromptContent(_0x4f7082){const _0x1af428={_0x137f11:0xa2,_0x242288:0x59,_0x544727:0x2f9,_0xe85a:0x7c,_0x521482:0x47d,_0x38299f:0x470,_0x19d846:0x50e,_0x52bf36:0x3ce},_0x5d5927={_0x13989d:0x14a,_0x470180:0xd4,_0x4948f4:0x225,_0x3f986e:0xa0,_0x284b29:0x105,_0x4f24c0:0x1f2,_0x498b6f:0x1c8,_0x35ab52:0x59,_0x2099c7:0xb9,_0x5b69b6:0x11d,_0x2aa69e:0x1f,_0x86afb7:0x25b,_0x2b379c:0xb9,_0x2cd2ae:0x7d},_0x382554={_0x48943f:0xa8},_0x1a3d22={_0xf94a75:0x18b};if(typeof _0x4f7082===_0x3eb30b(-_0x1af428._0x137f11,-0x9f,-0x6d,-_0x1af428._0x242288))return _0x4f7082[_0x3eb30b(-_0x1af428._0x544727,-0x20c,-0x21a,-0x198)]()[_0x3eb30b(-_0x1af428._0xe85a,-0xc0,-0x1ab,-0xc4)]>0x0;if(!Array[_0xcb3fae(_0x1af428._0x521482,_0x1af428._0x38299f,_0x1af428._0x19d846,0x520)](_0x4f7082))return![];function _0x3eb30b(_0x3ba223,_0x25931c,_0x92e46e,_0x4f1965){return _0x1c2b50(_0x3ba223-0x105,_0x25931c-0xad,_0x25931c- -0x54,_0x3ba223);}function _0xcb3fae(_0x2db9ab,_0x2ab22e,_0x365818,_0x5d6633){return _0x263708(_0x2db9ab-_0x1a3d22._0xf94a75,_0x2ab22e,_0x365818-0x88,_0x5d6633-0x13c);}return _0x4f7082[_0xcb3fae(0x4a5,_0x1af428._0x52bf36,0x452,0x456)](_0x3fd56d=>{function _0x5b0fdc(_0x42c54c,_0x2a34c1,_0x3e9068,_0x4256f7){return _0xcb3fae(_0x42c54c- -0x23a,_0x2a34c1,_0x3e9068-0x112,_0x4256f7-0x114);}if(!_0x3fd56d||typeof _0x3fd56d!==_0x1a4882(_0x5d5927._0x13989d,0xd6,_0x5d5927._0x470180,_0x5d5927._0x4948f4))return![];function _0x1a4882(_0x189969,_0x3d5c3c,_0xba34d5,_0x1828f4){return _0xcb3fae(_0x189969- -0x317,_0xba34d5,_0xba34d5-0x49,_0x1828f4-_0x382554._0x48943f);}const _0x158102=_0x3fd56d;return(_0x158102[_0x5b0fdc(0x121,0x4a,_0x5d5927._0x13989d,_0x5d5927._0x3f986e)]===_0x5b0fdc(_0x5d5927._0x284b29,_0x5d5927._0x4f24c0,_0x5d5927._0x498b6f,_0x5d5927._0x35ab52)||_0x158102['type']===_0x1a4882(_0x5d5927._0x2099c7,0x18e,_0x5d5927._0x5b69b6,_0x5d5927._0x2aa69e))&&typeof _0x158102['text']===_0x5b0fdc(_0x5d5927._0x86afb7,0x1ba,0x1d6,0x334)&&_0x158102[_0x1a4882(_0x5d5927._0x2b379c,0xe4,0x49,0xf3)][_0x5b0fdc(0xee,_0x5d5927._0x2cd2ae,0x10b,0x1a9)]()['length']>0x0;});}function _isUserPromptEntry(_0x5ea535){const _0x2128e3={_0x5adaf2:0x1df,_0x2fea9a:0x265,_0x5d9494:0x33a,_0x345228:0xc4,_0x4d8f67:0x207,_0x262687:0xb6,_0x25fbba:0x386,_0x3bd69f:0x2d6,_0x507d4b:0x220,_0x39dfaf:0x1d6,_0x48b1f0:0x124,_0x31d3b1:0x208,_0x4b5123:0x15f,_0xf4b5ec:0x24d,_0x544a29:0x12e},_0x193a4c={_0x5adadc:0x129,_0x55b219:0x38},_0x267f67={_0x319355:0xc4};if(!_0x5ea535||typeof _0x5ea535!==_0x1692cd(_0x2128e3._0x5adaf2,0x18f,_0x2128e3._0x2fea9a,_0x2128e3._0x5d9494))return![];function _0x4e38f8(_0x171c97,_0x50e915,_0x4f9ba6,_0x31ba9c){return _0x1c2b50(_0x171c97-_0x267f67._0x319355,_0x50e915-0x1e3,_0x171c97-0x3ac,_0x50e915);}const _0x581840=_0x5ea535;function _0x1692cd(_0x16c97a,_0x223cfe,_0x541f28,_0x333829){return _0x1c2b50(_0x16c97a-_0x193a4c._0x5adadc,_0x223cfe-_0x193a4c._0x55b219,_0x541f28-0x2e4,_0x16c97a);}if(_0x581840[_0x1692cd(_0x2128e3._0x345228,_0x2128e3._0x4d8f67,0x182,_0x2128e3._0x262687)]!==_0x4e38f8(_0x2128e3._0x25fbba,_0x2128e3._0x3bd69f,0x3bf,0x2a8))return![];if(_0x581840[_0x1692cd(_0x2128e3._0x507d4b,_0x2128e3._0x39dfaf,0x15f,_0x2128e3._0x48b1f0)]!==void 0x0&&_0x581840[_0x1692cd(_0x2128e3._0x31d3b1,0x19f,_0x2128e3._0x4b5123,_0x2128e3._0xf4b5ec)]!=='message')return![];return hasUserPromptContent(_0x581840[_0x1692cd(0x1dd,0x9d,_0x2128e3._0x544a29,0x18d)]);}function determineInitiator(_0x27e669){const _0x454b2d={_0xf9f711:0x388,_0x252b5f:0x418,_0x3e999f:0x42b,_0x312cc3:0x108,_0x444156:0x1d1,_0x28af06:0xf3,_0x2ce47b:0x13e,_0x695c02:0xe8,_0x20874c:0x1c4,_0x38b324:0x1ae,_0x564ea1:0x41c,_0x61a90:0x473,_0x5a9b19:0x537,_0x598882:0x39f,_0x249cbe:0x434,_0x174b7d:0x38c,_0x274f8a:0x1ab},_0x448b83={_0x2797ac:0x142,_0x1d06f5:0xe0};if(!_0x27e669||typeof _0x27e669!==_0x5db3c7(_0x454b2d._0xf9f711,_0x454b2d._0x252b5f,0x4b8,_0x454b2d._0x3e999f))return _0x488bfd(0x173,_0x454b2d._0x312cc3,0x2a9,_0x454b2d._0x444156);const _0x2bd627=_0x488bfd(_0x454b2d._0x28af06,_0x454b2d._0x2ce47b,0xa0,_0x454b2d._0x2ce47b)in _0x27e669?_0x27e669[_0x488bfd(_0x454b2d._0x695c02,0x52,0x202,0x13e)]:_0x488bfd(0x151,_0x454b2d._0x20874c,_0x454b2d._0x38b324,0x215)in _0x27e669?_0x27e669[_0x5db3c7(_0x454b2d._0x564ea1,_0x454b2d._0x61a90,_0x454b2d._0x5a9b19,_0x454b2d._0x598882)]:void 0x0;function _0x5db3c7(_0xf9ea0b,_0x22d8a0,_0x156c8d,_0xc70dc0){return _0x263708(_0x22d8a0-_0x448b83._0x2797ac,_0x156c8d,_0x156c8d-_0x448b83._0x1d06f5,_0xc70dc0-0x175);}function _0x488bfd(_0x7923a1,_0x59bf21,_0x43023d,_0x3fe08b){return _0x1c2b50(_0x7923a1-0x13e,_0x59bf21-0x13,_0x3fe08b-0x239,_0x7923a1);}if(!Array[_0x5db3c7(0x38a,_0x454b2d._0x249cbe,0x4d7,0x450)](_0x2bd627)||_0x2bd627['length']===0x0)return'agent';return _isUserPromptEntry(_0x2bd627[_0x2bd627['length']-0x1])?_0x5db3c7(0x496,0x471,_0x454b2d._0x564ea1,_0x454b2d._0x174b7d):_0x488bfd(_0x454b2d._0x274f8a,0xeb,0x168,_0x454b2d._0x444156);}function isUnsupportedApiForModel(_0x48c384){const _0x1dd3bf={_0x2e3dbc:0x113,_0x57e501:0x119,_0xfe9c6f:0x131,_0x5ddbcc:0xf9,_0x18781a:0xbb,_0x1c9655:0xec},_0x693b70={_0x54dabd:0x13f},_0x141c37={_0x36c852:0x1c};function _0xeb02aa(_0xe2a4ea,_0x1d5ae1,_0x253363,_0x2c4e94){return _0x263708(_0x2c4e94- -_0x141c37._0x36c852,_0x1d5ae1,_0x253363-0xc3,_0x2c4e94-0x34);}function _0x1c02c2(_0x46a106,_0x309bc9,_0x4fcb52,_0x20ac98){return _0x263708(_0x4fcb52- -0x3f6,_0x46a106,_0x4fcb52-0x57,_0x20ac98-_0x693b70._0x54dabd);}return _0x48c384[_0x1c02c2(-_0x1dd3bf._0x2e3dbc,-0x4f,-_0x1dd3bf._0x57e501,-_0x1dd3bf._0xfe9c6f)](_0x1c02c2(-_0x1dd3bf._0x5ddbcc,-_0x1dd3bf._0x18781a,-0x18a,-_0x1dd3bf._0x1c9655));}function createResponseError(_0x2cbbe7,_0x4ef6b8){const _0x3bcd25={_0x1593c2:0x3ac,_0x2c9a27:0x2c8,_0x4b9c6:0x2c2,_0x1cb6f7:0x21b,_0x1578b9:0x47b},_0x49bfee={_0x578592:0xcb,_0x143444:0xfb},_0x131b6f={_0xaffcde:0x8e};if(_0x2cbbe7===0x191||_0x2cbbe7===0x193)return new Error(_0x3f4260(0x2ed,_0x3bcd25._0x1593c2,_0x3bcd25._0x2c9a27,_0x3bcd25._0x4b9c6));if(_0x2cbbe7===0x198||_0x2cbbe7===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');if(_0x2cbbe7===0x190)return new Error(_0x3f4260(0x1f4,_0x3bcd25._0x1cb6f7,0x27c,0x1fe)+_0x4ef6b8);function _0x3f4260(_0xc5e6b8,_0x26ee5f,_0x40f455,_0x8bc3c6){return _0x1c2b50(_0xc5e6b8-0xc7,_0x26ee5f-_0x131b6f._0xaffcde,_0x40f455-0x3d4,_0x8bc3c6);}function _0x2fe3ea(_0x5658ba,_0x1507d8,_0x141a3f,_0x326985){return _0x1c2b50(_0x5658ba-0x19,_0x1507d8-_0x49bfee._0x578592,_0x5658ba-_0x49bfee._0x143444,_0x326985);}return new Error(_0x4ef6b8||_0x3f4260(0x4aa,0x417,0x3d9,_0x3bcd25._0x1578b9)+_0x2cbbe7);}var GitHubModel=class extends OpenAiModel{[_0x263708(0x195,0xd9,0x1da,0x1b3)];[_0x263708(0x33c,0x2b5,0x2b1,0x381)]=new Map();[_0x263708(0x1cc,0x249,0x150,0x293)];constructor(_0x3d5a6c={}){const _0x386ee8={_0xcea4e5:0x383,_0x90dc78:0x3f1,_0x4e66c0:0x13e,_0x3d63d0:0x110,_0x38b4e0:0xb6,_0x519f47:0xc,_0x406e16:0x216,_0x169eef:0x172,_0x58cc58:0x34a,_0x10220a:0x32b,_0x1b55f7:0x386,_0x3fbc8f:0x1ba,_0x458688:0x361,_0x3290d0:0x4c6,_0x15574c:0x45d,_0x124b4a:0x42a,_0x2acd34:0x4ed,_0x44fe65:0x3e9,_0x3468d5:0x3bf,_0x1e8c4d:0x3cc,_0x1b599d:0x4d3,_0xb74c7a:0x15e,_0x5c83d6:0x131,_0x2ffa22:0x142,_0x16ce08:0x4ce,_0x1ee18c:0x41d,_0x3c0a95:0x45a,_0x2ecdb6:0xeb,_0x3f7b39:0x19a,_0x5a00dc:0x177,_0x56d5f5:0x1fa,_0x42cc0d:0x38b,_0x296ab9:0x2aa,_0x763bb3:0x2e5,_0x28677c:0x377,_0x50b51a:0x340,_0x2896b4:0x2ce,_0x1a707f:0x30,_0x3e85bf:0x28,_0x269cb4:0xa1,_0x5aedbe:0x34c,_0x311266:0x3d1,_0x267ac2:0x430,_0x814122:0x493,_0xf1b370:0x47a,_0x14af07:0x3ea},_0x49596b={_0x465530:0x500},_0x291352={_0x593388:0x42,_0x4c2b12:0x112},_0x67ea1b=trimTrailingSlashes2(_0x3d5a6c['baseUrl']??'https://api.individual.githubcopilot.com');function _0x5396dc(_0x71fff3,_0x429d78,_0x1afe35,_0x994f92){return _0x1c2b50(_0x71fff3-_0x291352._0x593388,_0x429d78-_0x291352._0x4c2b12,_0x1afe35-0x233,_0x71fff3);}const _0x5e33b2=_0x3d5a6c[_0xee6233(0x340,_0x386ee8._0xcea4e5,_0x386ee8._0x90dc78,0x474)]??globalThis[_0x5396dc(_0x386ee8._0x4e66c0,_0x386ee8._0x3d63d0,_0x386ee8._0x38b4e0,_0x386ee8._0x519f47)],_0x4aab6a=_0x3d5a6c[_0x5396dc(_0x386ee8._0x406e16,0x154,_0x386ee8._0x169eef,0x248)]??(_0x3d5a6c[_0xee6233(_0x386ee8._0x58cc58,0x386,_0x386ee8._0x10220a,0x474)]?new GitHubAccessTokenResolver({'accessToken':_0x3d5a6c[_0xee6233(0x372,_0x386ee8._0x1b55f7,0x42a,0x398)],'baseUrl':_0x67ea1b,'fetch':_0x5e33b2,'githubApiUrl':_0x3d5a6c[_0x5396dc(0x25d,0x181,0x211,_0x386ee8._0x3fbc8f)]??_0xee6233(_0x386ee8._0x458688,0x44f,_0x386ee8._0x3290d0,_0x386ee8._0x3290d0),'tokenExchangeApiVersion':_0x3d5a6c[_0xee6233(_0x386ee8._0x15574c,0x3fd,_0x386ee8._0x124b4a,_0x386ee8._0x2acd34)]??_0xee6233(_0x386ee8._0x44fe65,_0x386ee8._0x3468d5,_0x386ee8._0x1e8c4d,0x303)}):void 0x0),_0x2f4759=_0x3d5a6c[_0xee6233(_0x386ee8._0x1b599d,0x45d,0x434,0x505)]??_0x5396dc(_0x386ee8._0xb74c7a,_0x386ee8._0x5c83d6,0x93,_0x386ee8._0x2ffa22),_0x1d0401=_0x3d5a6c[_0xee6233(0x3e8,_0x386ee8._0x16ce08,_0x386ee8._0x1ee18c,_0x386ee8._0x3c0a95)]??_0x5396dc(0x18b,0xf9,_0x386ee8._0x2ecdb6,0xe);function _0xee6233(_0x2708c0,_0x19e3e8,_0x31dcac,_0x55ec05){return _0x1c2b50(_0x2708c0-0xb9,_0x19e3e8-0x166,_0x19e3e8-_0x49596b._0x465530,_0x55ec05);}const _0x301d30=({body:_0x5b4ece})=>{return{'editor-plugin-version':_0x1d0401,'editor-version':_0x2f4759,'x-initiator':determineInitiator(_0x5b4ece),'x-request-id':randomUUID()};},_0xd67438={'apiKey':_0x3d5a6c[_0xee6233(0x537,0x462,0x54b,0x436)],'baseUrl':_0x67ea1b,'fetch':_0x5e33b2,'maxTokens':_0x3d5a6c['maxTokens'],'model':_0x3d5a6c[_0x5396dc(_0x386ee8._0x3f7b39,0xf0,_0x386ee8._0x5a00dc,_0x386ee8._0x56d5f5)],'reasoning':_0x3d5a6c[_0xee6233(0x429,_0x386ee8._0x42cc0d,0x32a,_0x386ee8._0x296ab9)],'providerSessionResolver':_0x4aab6a,'requestMutators':_0x3d5a6c['requestMutators'],'headerResolver':_0x301d30};super(_0xd67438),this[_0xee6233(_0x386ee8._0x763bb3,_0x386ee8._0x28677c,_0x386ee8._0x50b51a,_0x386ee8._0x2896b4)]=_0x3d5a6c[_0x5396dc(_0x386ee8._0x1a707f,_0x386ee8._0x3e85bf,0xaa,_0x386ee8._0x269cb4)]??_0xee6233(_0x386ee8._0x5aedbe,_0x386ee8._0x311266,_0x386ee8._0x267ac2,0x365),this['anthropicDelegate']=new AnthropicModel({'apiKey':_0x3d5a6c[_0xee6233(0x548,0x462,_0x386ee8._0x814122,_0x386ee8._0xf1b370)],'authScheme':'bearer','baseUrl':_0x67ea1b,'fetch':_0x5e33b2,'headerResolver':_0x301d30,'maxTokens':_0x3d5a6c[_0xee6233(_0x386ee8._0x14af07,0x496,0x508,0x4f0)],'model':_0x3d5a6c['model'],'reasoning':_0x3d5a6c['reasoning'],'providerSessionResolver':_0x4aab6a,'requestMutators':_0x3d5a6c['requestMutators']});}[_0x1c2b50(-0x1b6,-0x123,-0x1c3,-0x1c7)](){const _0x15c0c1={_0x2d6cb7:0xc5,_0x49d27e:0x92};function _0x204ec1(_0x2640e2,_0x21a4ca,_0x4f6105,_0x41df5e){return _0x263708(_0x21a4ca-0x17e,_0x41df5e,_0x4f6105-_0x15c0c1._0x2d6cb7,_0x41df5e-_0x15c0c1._0x49d27e);}return new Error(_0x204ec1(0x2f9,0x381,0x2e2,0x351));}['usesResponsesApi'](_0x84ac1e){const _0x328fa9={_0x247065:0x4ac,_0x443fdb:0x447,_0x287482:0x154,_0x32094d:0xe0,_0x47cc10:0x4c,_0x572e05:0x486,_0x93440a:0x32,_0x276b67:0x22,_0x3b014d:0xe},_0x3560d2={_0xf3e99d:0xc6,_0x263252:0xa7},_0x5732b3={_0x48e069:0xf2,_0xcbae5a:0x4de};function _0x1da4c4(_0x400ccc,_0x361b69,_0x17e624,_0x18ea7a){return _0x1c2b50(_0x400ccc-0x1eb,_0x361b69-_0x5732b3._0x48e069,_0x17e624-_0x5732b3._0xcbae5a,_0x361b69);}const _0xa494e2=this[_0x1da4c4(_0x328fa9._0x247065,_0x328fa9._0x443fdb,0x4c5,0x47f)][_0x4afc40(-_0x328fa9._0x287482,-0x93,-_0x328fa9._0x32094d,-_0x328fa9._0x47cc10)](_0x84ac1e);if(!_0xa494e2)return![];function _0x4afc40(_0x2f4f7c,_0x3b6d62,_0x107095,_0x247ec1){return _0x1c2b50(_0x2f4f7c-_0x3560d2._0xf3e99d,_0x3b6d62-0x82,_0x107095-_0x3560d2._0x263252,_0x3b6d62);}return!_0xa494e2[_0x1da4c4(0x51e,0x512,0x466,_0x328fa9._0x572e05)](_0x1da4c4(0x440,0x3f0,0x3d5,0x4a2))&&_0xa494e2['includes'](_0x4afc40(-_0x328fa9._0x93440a,_0x328fa9._0x276b67,-_0x328fa9._0x3b014d,-0x26));}[_0x1c2b50(-0x17d,-0x219,-0x142,-0x1aa)](_0x31f095){const _0x1b4b96={_0xd6141f:0x5a4,_0x3fb595:0x58d,_0x26e765:0x2a8,_0x45a30c:0x28c,_0x452d66:0x36e,_0x1ac514:0x457,_0x2def5f:0x378,_0x273e9c:0x439},_0x3df662={_0x56f106:0x19d},_0x4f428d=this[_0x482f2e(_0x1b4b96._0xd6141f,_0x1b4b96._0x3fb595,0x5a1,0x4f3)][_0x39a801(0x2e7,_0x1b4b96._0x26e765,_0x1b4b96._0x45a30c,_0x1b4b96._0x452d66)](_0x31f095['model']);if(!_0x4f428d)return![];function _0x39a801(_0x3a0db0,_0x1fb62b,_0x214971,_0x4d0444){return _0x1c2b50(_0x3a0db0-0x11b,_0x1fb62b-0x84,_0x4d0444-0x4f5,_0x214971);}if(resolveOpenAiReasoningConfig(_0x31f095['reasoning']))return _0x4f428d['includes'](_0x482f2e(0x404,0x36e,0x440,_0x1b4b96._0x1ac514));function _0x482f2e(_0x5870f1,_0x113391,_0x20401f,_0x657e1b){return _0x263708(_0x657e1b-0x1b7,_0x20401f,_0x20401f-_0x3df662._0x56f106,_0x657e1b-0x12e);}return this['usesResponsesApi'](_0x31f095[_0x39a801(0x471,0x465,_0x1b4b96._0x2def5f,_0x1b4b96._0x273e9c)]);}['markModelAsResponsesOnly'](_0x3c8ca3){const _0x194c59={_0x20d6c6:0x79d,_0x281730:0x6e0,_0x630cd4:0x743,_0x2776da:0x27e,_0x55aca1:0x2b1},_0xbdaac3={_0x324475:0x14a,_0xe58f17:0x6f9},_0x3da2be={_0x2b133e:0x22,_0x1a6654:0x179,_0x54edb9:0x1bd};function _0x409a78(_0x45e45c,_0x5dac27,_0x42bc64,_0x1a284c){return _0x263708(_0x5dac27- -_0x3da2be._0x2b133e,_0x42bc64,_0x42bc64-_0x3da2be._0x1a6654,_0x1a284c-_0x3da2be._0x54edb9);}function _0x5bd44d(_0x466cd6,_0x2e1f9b,_0x140d82,_0x1adc24){return _0x1c2b50(_0x466cd6-_0xbdaac3._0x324475,_0x2e1f9b-0x72,_0x140d82-_0xbdaac3._0xe58f17,_0x2e1f9b);}this[_0x5bd44d(_0x194c59._0x20d6c6,0x796,_0x194c59._0x281730,_0x194c59._0x630cd4)]['set'](_0x3c8ca3,[_0x409a78(0x1b5,_0x194c59._0x2776da,_0x194c59._0x55aca1,0x2f7)]);}[_0x263708(0x28b,0x244,0x2e9,0x1ec)](_0x504290){const _0x110aaf={_0x4dac2f:0x15a},_0x219fc2={_0x2efa71:0x144,_0x2cd4ce:0x8};function _0x261b9a(_0x22e995,_0x2272aa,_0x2a8f16,_0x18a1c0){return _0x1c2b50(_0x22e995-_0x219fc2._0x2efa71,_0x2272aa-0xd9,_0x2a8f16-_0x219fc2._0x2cd4ce,_0x2272aa);}function _0x279c35(_0x4d54e8,_0x192f35,_0xb5e0fd,_0x2fa08b){return _0x1c2b50(_0x4d54e8-0x10e,_0x192f35-0x8a,_0x2fa08b- -0x39,_0x4d54e8);}if(_0x504290 instanceof OpenAiApiError)return createResponseError(_0x504290['status'],_0x504290[_0x279c35(-0x14c,-0xb4,0x65,-0x70)]||_0x504290[_0x261b9a(-_0x110aaf._0x4dac2f,-0x20f,-0x192,-0x16f)]);return _0x504290;}[_0x263708(0x229,0x19c,0x1e2,0x21d)](_0x304804,_0x4ae39f){const _0x12a92c={_0x30bc52:0x353,_0x416b3b:0x3e3,_0x43fa76:0x4c5,_0x25ec5e:0x4a1,_0x1e6072:0x3ea,_0x4832cd:0x3c1,_0x14f268:0x432,_0x3bf4c2:0x1be,_0x261560:0x143,_0x504d8f:0x45e,_0x119f82:0x3f0,_0xb54154:0x249,_0x2524d6:0x2ae,_0x25a14c:0x24a,_0x172d85:0x290,_0x2bec14:0x1cc,_0x325bbc:0x449,_0x200665:0x406},_0xcc400c={_0x407edb:0x6a,_0x3d93b0:0x1bd},_0x27b0d5={_0x17d2ef:0x217,_0x10a5f5:0x167};function _0x4abdc0(_0x513b78,_0x4cfe24,_0x5ae7c9,_0x1069ec){return _0x263708(_0x1069ec-_0x27b0d5._0x17d2ef,_0x5ae7c9,_0x5ae7c9-_0x27b0d5._0x10a5f5,_0x1069ec-0x43);}function _0x2a88fa(_0x2cbc97,_0x348b35,_0x4856c3,_0x476344){return _0x263708(_0x2cbc97-_0xcc400c._0x407edb,_0x476344,_0x4856c3-0x10c,_0x476344-_0xcc400c._0x3d93b0);}switch(this[_0x4abdc0(0x368,0x3e6,_0x12a92c._0x30bc52,_0x12a92c._0x416b3b)]){case _0x4abdc0(0x3e6,_0x12a92c._0x43fa76,_0x12a92c._0x25ec5e,_0x12a92c._0x1e6072):return this[_0x4abdc0(_0x12a92c._0x4832cd,0x3e8,0x3f5,0x3ac)]['complete'](_0x304804,_0x4ae39f);case'openai-chat-completions':return this[_0x4abdc0(0x597,0x582,0x558,0x4a8)](_0x304804,_0x4ae39f);case _0x4abdc0(0x572,0x568,_0x12a92c._0x14f268,0x49e):return this[_0x2a88fa(0x208,0x197,_0x12a92c._0x3bf4c2,_0x12a92c._0x261560)](_0x304804,_0x4ae39f);case _0x4abdc0(0x31d,0x4be,_0x12a92c._0x504d8f,_0x12a92c._0x119f82):return this[_0x2a88fa(_0x12a92c._0xb54154,_0x12a92c._0x2524d6,_0x12a92c._0x25a14c,0x2ab)](_0x304804,_0x4ae39f);case _0x2a88fa(_0x12a92c._0x172d85,0x2a2,0x26f,_0x12a92c._0x2bec14):return this['complete'](_0x304804,_0x4ae39f);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this[_0x4abdc0(0x4c8,_0x12a92c._0x325bbc,_0x12a92c._0x200665,0x3e3)]));}[_0x263708(0x1be,0x28d,0x26a,0x13b)](_0x339d63,_0x7c998b){const _0x5c562f={_0x4b473b:0x17f,_0x2f9583:0x1cc,_0x434c28:0x185,_0xfafbda:0x118,_0x3f4239:0x23d,_0x59137a:0x39,_0x1cdff8:0x23,_0x1ab59c:0x5c,_0x47e08d:0x11d,_0x2d8c17:0x4b,_0x1c4f78:0xce,_0x423280:0x45,_0x3a44f7:0xb5,_0x5e961e:0x7e,_0xe068df:0x12b,_0x4320be:0x17a,_0x6d55ba:0x7d,_0x4ea4fa:0x8b,_0x6f2f15:0x5f,_0x1ba514:0x1ba,_0x1732d3:0x21a,_0x538fed:0x125,_0x5e0feb:0x164,_0x57fe06:0x19f,_0x1e769a:0x1b7,_0x2136d2:0x2d,_0x30ed69:0x38},_0x3fab13={_0x3111aa:0x132,_0x423685:0xa},_0x135f04={_0x801848:0x28,_0x266c55:0x138};function _0x7c2e54(_0x5f376c,_0x1994e9,_0x2fb339,_0x55571c){return _0x263708(_0x5f376c- -0x15c,_0x1994e9,_0x2fb339-_0x135f04._0x801848,_0x55571c-_0x135f04._0x266c55);}function _0x26940f(_0x1bae9c,_0x51f7f2,_0x3f8b5a,_0x5b9cec){return _0x1c2b50(_0x1bae9c-0x175,_0x51f7f2-_0x3fab13._0x3111aa,_0x1bae9c-_0x3fab13._0x423685,_0x5b9cec);}switch(this[_0x26940f(-_0x5c562f._0x4b473b,-_0x5c562f._0x2f9583,-0x169,-_0x5c562f._0x434c28)]){case _0x26940f(-0x178,-0x256,-_0x5c562f._0xfafbda,-_0x5c562f._0x3f4239):return this[_0x7c2e54(_0x5c562f._0x59137a,0x9c,_0x5c562f._0x1cdff8,-_0x5c562f._0x1ab59c)][_0x7c2e54(_0x5c562f._0x47e08d,0x1d3,_0x5c562f._0x2d8c17,0x3e)](_0x339d63,_0x7c998b);case _0x7c2e54(_0x5c562f._0x1c4f78,0xf8,_0x5c562f._0x423280,_0x5c562f._0x3a44f7):return this[_0x7c2e54(0xc8,0x1a5,0x40,_0x5c562f._0x5e961e)](_0x339d63,_0x7c998b);case _0x7c2e54(_0x5c562f._0xe068df,0x123,0x141,_0x5c562f._0x4320be):return this['responseStream'](_0x339d63,_0x7c998b);case _0x7c2e54(_0x5c562f._0x6d55ba,_0x5c562f._0x4ea4fa,_0x5c562f._0x6f2f15,0xd5):return this[_0x26940f(-_0x5c562f._0x1ba514,-0x104,-0x178,-_0x5c562f._0x1732d3)](_0x339d63,_0x7c998b);case _0x26940f(-_0x5c562f._0x538fed,-_0x5c562f._0x5e0feb,-_0x5c562f._0x57fe06,-0xbf):return this[_0x26940f(-0xd2,-_0x5c562f._0x1e769a,-_0x5c562f._0x2136d2,-_0x5c562f._0x30ed69)](_0x339d63,_0x7c998b);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this['surface']));}async[_0x263708(0x2dc,0x267,0x3a7,0x2d9)](_0x15cd21,_0x17fa19){const _0x383eff={_0x4891be:0x2d0,_0x5dd421:0x3c1,_0x11ddc1:0x8,_0x3b0721:0xe2,_0x166e57:0x6d,_0x1af123:0x507,_0x46cc71:0x57c,_0x2860c0:0x3eb,_0x189916:0x55f,_0x3ef19b:0x4fd,_0x4a8482:0x407,_0x1f2e82:0x2eb,_0x364fb5:0x45d,_0xa092bd:0x168,_0x53f55d:0x24},_0x197a7a={_0x537348:0x15b},_0x50cb2f={_0x4521b6:0x221,_0xa59739:0x6c},_0x254e69=this[_0x1f5595(_0x383eff._0x4891be,_0x383eff._0x5dd421,0x3b1,0x37a)](_0x15cd21);if(this['surface']!=='auto')return this[_0x44e372(_0x383eff._0x11ddc1,0xac,-_0x383eff._0x3b0721,-_0x383eff._0x166e57)](_0x254e69,_0x17fa19);function _0x44e372(_0x5a18e9,_0x51a55e,_0x2056fa,_0x45c982){return _0x263708(_0x5a18e9- -_0x50cb2f._0x4521b6,_0x45c982,_0x2056fa-0x165,_0x45c982-_0x50cb2f._0xa59739);}function _0x1f5595(_0x1da5c4,_0x40925b,_0x4f758a,_0x530456){return _0x263708(_0x4f758a-0x1df,_0x530456,_0x4f758a-_0x197a7a._0x537348,_0x530456-0xd3);}if(this[_0x44e372(-0xe,-0x3f,-0xab,0x4c)](_0x254e69))return this['response'](_0x254e69,_0x17fa19);try{return await this[_0x1f5595(_0x383eff._0x1af123,_0x383eff._0x46cc71,0x4c3,_0x383eff._0x2860c0)](_0x254e69,_0x17fa19);}catch(_0x1f0870){if(_0x1f0870 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x1f0870[_0x1f5595(0x4a7,_0x383eff._0x189916,_0x383eff._0x3ef19b,0x58c)]))return this[_0x1f5595(_0x383eff._0x4a8482,_0x383eff._0x1f2e82,0x36e,_0x383eff._0x364fb5)](_0x254e69['model']),this[_0x44e372(-0x83,-_0x383eff._0xa092bd,_0x383eff._0x53f55d,-0x4b)](_0x254e69,_0x17fa19);throw this[_0x1f5595(0x49a,0x478,0x46a,0x51d)](_0x1f0870);}throw _0x1f0870;}}async*[_0x263708(0x279,0x2a9,0x297,0x1a0)](_0x212a31,_0x331485){const _0x49bc3d={_0x68c80:0xab,_0x2220e1:0x61,_0x40ac30:0xe5,_0x1b6449:0x64,_0x3cc4a4:0x69,_0x3a2cca:0x1d,_0x12ad0f:0x114,_0x421da8:0xa6,_0x1b4177:0x291,_0x5c49e3:0x261,_0x492c6f:0x217,_0x5a6fb5:0x15e,_0x4383bc:0x1d7,_0x5693f6:0x19f,_0x1d36a5:0xae,_0x2947f9:0x67,_0x250e6e:0x104},_0x48bc38={_0x27b15a:0xbe},_0x37fa21={_0xdaea6:0x15a,_0x32a822:0x186},_0x14b858=this[_0x56da93(-0x4c,_0x49bc3d._0x68c80,-_0x49bc3d._0x2220e1,0x53)](_0x212a31);if(this[_0x19cbb3(_0x49bc3d._0x40ac30,0x15b,0xaa,0x72)]!=='auto'){yield*this[_0x19cbb3(_0x49bc3d._0x1b6449,-_0x49bc3d._0x3cc4a4,-_0x49bc3d._0x3a2cca,0x64)](_0x14b858,_0x331485);return;}function _0x19cbb3(_0x41fcde,_0x3e6ad1,_0x5e6a8f,_0x36d084){return _0x263708(_0x36d084- -_0x37fa21._0xdaea6,_0x41fcde,_0x5e6a8f-0xc7,_0x36d084-_0x37fa21._0x32a822);}function _0x56da93(_0x58695c,_0x1ab912,_0x38dcff,_0x4ffb8b){return _0x263708(_0x4ffb8b- -0x17f,_0x58695c,_0x38dcff-_0x48bc38._0x27b15a,_0x4ffb8b-0x1dd);}if(this[_0x56da93(0x131,_0x49bc3d._0x12ad0f,_0x49bc3d._0x421da8,0x94)](_0x14b858)){yield*this[_0x19cbb3(0x165,_0x49bc3d._0x1b4177,_0x49bc3d._0x5c49e3,0x1a9)](_0x14b858,_0x331485);return;}try{yield*this[_0x19cbb3(_0x49bc3d._0x492c6f,0x1ae,0x22e,_0x49bc3d._0x5a6fb5)](_0x14b858,_0x331485);}catch(_0xab2bdd){if(_0xab2bdd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0xab2bdd[_0x56da93(0x285,_0x49bc3d._0x4383bc,0xef,_0x49bc3d._0x5693f6)])){this[_0x56da93(0xcc,_0x49bc3d._0x1d36a5,0x4c,0x10)](_0x14b858[_0x56da93(_0x49bc3d._0x2947f9,0x77,0x141,0x11a)]),yield*this[_0x56da93(_0x49bc3d._0x250e6e,0x25f,0x1dc,0x184)](_0x14b858,_0x331485);return;}throw this['mapApiError'](_0xab2bdd);}throw _0xab2bdd;}}async[_0x1c2b50(-0xec,-0x135,-0xe8,-0xd3)](_0x26d0d8){const _0x597323={_0x58008b:0x111,_0x276dab:0x25b,_0x2d5f1c:0x1d5,_0x131826:0x245,_0x272ceb:0x202,_0x1c2146:0x5f8,_0x6e7e10:0x6d6,_0x397f79:0x5ae,_0x9c54f3:0x642,_0x43471c:0x643,_0x252678:0x676,_0x105250:0x124},_0x449720={_0x2f0b08:0x210,_0x508f24:0x2fc,_0x4578a7:0x75e,_0x2f0c93:0x6f4,_0x103970:0x25e,_0x560f71:0x288,_0x196e57:0x167,_0x15fe08:0x26c,_0x1cdd1e:0x1c7},_0x4648b1={_0x3b0655:0x3c8},_0x173df6={_0x24bf4c:0xac,_0x47eda4:0x118},_0x48ee35=await this[_0x255a4a(-_0x597323._0x58008b,-_0x597323._0x276dab,-_0x597323._0x2d5f1c,-_0x597323._0x131826)]({'path':_0x255a4a(-0x201,-_0x597323._0x272ceb,-0x12d,-0x14c),'method':'GET','signal':_0x26d0d8});if(!_0x48ee35['ok'])throw this[_0x1f6a87(0x6bc,_0x597323._0x1c2146,0x64d,0x723)](await this[_0x1f6a87(_0x597323._0x6e7e10,_0x597323._0x397f79,_0x597323._0x9c54f3,_0x597323._0x43471c)](_0x48ee35));const _0x11e8e6=await _0x48ee35['json']();function _0x1f6a87(_0x2cc093,_0x27132f,_0x54d866,_0x1314e1){return _0x263708(_0x54d866-0x3c2,_0x2cc093,_0x54d866-_0x173df6._0x24bf4c,_0x1314e1-_0x173df6._0x47eda4);}function _0x255a4a(_0x50f58e,_0x3cdf08,_0x5f4e10,_0x232805){return _0x1c2b50(_0x50f58e-0x4e,_0x3cdf08-0x2c,_0x5f4e10- -0xd,_0x50f58e);}const _0x2c1f44=(_0x11e8e6[_0x1f6a87(0x7ed,_0x597323._0x252678,0x711,0x6fd)]??[])[_0x255a4a(-0x1da,-_0x597323._0x105250,-0x11c,-0x11b)](_0x3bcf51=>{function _0x39cb33(_0x530550,_0xd6a441,_0x52fff2,_0x4074ca){return _0x1f6a87(_0x52fff2,_0xd6a441-0x132,_0xd6a441- -0xa,_0x4074ca-0x148);}function _0x1a321a(_0x251bd5,_0x2ea592,_0x5d790f,_0x203611){return _0x1f6a87(_0x5d790f,_0x2ea592-0x96,_0x2ea592- -_0x4648b1._0x3b0655,_0x203611-0x1bb);}const _0x55f3de=createModelInfo(_0x3bcf51);return _0x55f3de[_0x1a321a(_0x449720._0x2f0b08,0x26f,_0x449720._0x508f24,0x2a7)]&&this[_0x39cb33(_0x449720._0x4578a7,_0x449720._0x2f0c93,0x6ca,0x79b)][_0x1a321a(_0x449720._0x103970,0x1b0,_0x449720._0x560f71,_0x449720._0x196e57)](_0x55f3de['id'],_0x55f3de[_0x1a321a(_0x449720._0x15fe08,0x26f,_0x449720._0x1cdd1e,0x27e)]),_0x55f3de;});return deduplicateModels(_0x2c1f44);}};function createHeaders(_0x11535b){const _0x6b7fb={_0x2e56b9:0x97,_0xa109ae:0x2c,_0x3ddc67:0x52},_0x42e2ab={_0xd1dca7:0x7e,_0x3e0bdd:0x133},_0x3eaa7b=new Headers();for(const [_0x44be4c,_0x3763c9]of Object[_0x405e1c(-_0x6b7fb._0x2e56b9,_0x6b7fb._0xa109ae,-_0x6b7fb._0x3ddc67,0x8)](_0x11535b)){_0x3eaa7b['set'](_0x44be4c,_0x3763c9);}function _0x405e1c(_0x7c22,_0x3e9967,_0x377668,_0x4bcc6f){return _0x1c2b50(_0x7c22-_0x42e2ab._0xd1dca7,_0x3e9967-0x12,_0x3e9967-_0x42e2ab._0x3e0bdd,_0x377668);}return _0x3eaa7b;}async function fetchRawResponse(_0x4cd449){const _0x8642fb={_0x48c73b:0x173,_0x1ade64:0x1e5,_0x4b2914:0x1a,_0x410bca:0x90,_0x48c517:0x16,_0x40c4c2:0x192,_0x358b00:0x248,_0xffa548:0x1ef,_0x188167:0x15c,_0x36e542:0x198,_0x54b44e:0x142,_0x43d321:0x309,_0x477d22:0x1fb,_0x5dc207:0x221},_0x34744c={_0x4f86ec:0x3bd,_0x3e321e:0x1e7},_0x211a97={_0x4c8264:0x3a},_0x4d0816=_0x4cd449[_0x2b375(-0x14a,-_0x8642fb._0x48c73b,-0x1f1,-_0x8642fb._0x1ade64)]??globalThis[_0x4ea6f5(0x82,0xec,_0x8642fb._0x4b2914,0xf4)];function _0x4ea6f5(_0x2a1b92,_0x203cbf,_0x21fd16,_0x4b2d5e){return _0x263708(_0x2a1b92- -0x156,_0x21fd16,_0x21fd16-_0x211a97._0x4c8264,_0x4b2d5e-0x13a);}function _0x2b375(_0x268bcd,_0x354218,_0x25c00a,_0x21ddcf){return _0x263708(_0x21ddcf- -_0x34744c._0x4f86ec,_0x354218,_0x25c00a-0x1c0,_0x21ddcf-_0x34744c._0x3e321e);}return _0x4d0816(_0x4cd449[_0x2b375(0x1c,0x55,-0x88,-0x71)],{'method':_0x4ea6f5(0x2c,-0xab,_0x8642fb._0x410bca,-_0x8642fb._0x48c517),'headers':createHeaders(_0x4cd449[_0x4ea6f5(_0x8642fb._0x40c4c2,0x165,_0x8642fb._0x358b00,0x215)]),'body':JSON[_0x4ea6f5(_0x8642fb._0xffa548,0x2bd,_0x8642fb._0x188167,0x163)](_0x4cd449[_0x4ea6f5(0x1c8,0x11a,_0x8642fb._0x36e542,_0x8642fb._0x54b44e)]),'signal':_0x4cd449[_0x2b375(-_0x8642fb._0x43d321,-_0x8642fb._0x477d22,-0x142,-_0x8642fb._0x5dc207)]});}async function fetchJsonResponse(_0x2fa3b6){const _0x563610={_0x196d84:0x325,_0x541c81:0x34a,_0x538d9f:0x322,_0xd2a52a:0x2ee,_0x1bdda7:0x2eb,_0x456db1:0x4da},_0x9f9e08={_0x495479:0x7f},_0x2a9043={_0x117fb0:0x161,_0x4f5e34:0x4f5},_0x5b1a27=await fetchRawResponse(_0x2fa3b6);function _0x265f38(_0x49534e,_0x561e35,_0x486b70,_0x4d9fed){return _0x1c2b50(_0x49534e-_0x2a9043._0x117fb0,_0x561e35-0x1dc,_0x49534e-_0x2a9043._0x4f5e34,_0x4d9fed);}if(!_0x5b1a27['ok']){const _0xc417a6=await _0x5b1a27[_0x396994(_0x563610._0x196d84,0x3a7,_0x563610._0x541c81,_0x563610._0x538d9f)](),_0x7bb47a=_0xc417a6['trim']()||_0x5b1a27[_0x396994(0x346,0x3cc,_0x563610._0xd2a52a,0x347)]||'Unknown\x20provider\x20error';throw new Error(_0x396994(0x39d,0x3d4,0x4c4,_0x563610._0x1bdda7)+_0x5b1a27['status']+':\x20'+_0x7bb47a);}function _0x396994(_0x38d270,_0x38cd4a,_0x1dc6b2,_0x246407){return _0x1c2b50(_0x38d270-_0x9f9e08._0x495479,_0x38cd4a-0x17e,_0x38cd4a-0x4b7,_0x38d270);}return await _0x5b1a27[_0x265f38(0x4bf,0x497,0x4df,_0x563610._0x456db1)]();}function findLastMessage(_0x533279,_0x49853e){const _0x55ce05={_0x35718d:0x22},_0x4b2640={_0x3e0109:0x1c0};function _0x8baceb(_0x422ecb,_0x1fbb40,_0x3bc6dd,_0x63153d){return _0x1c2b50(_0x422ecb-0x113,_0x1fbb40-0x191,_0x63153d-_0x4b2640._0x3e0109,_0x3bc6dd);}for(let _0x1ec103=_0x533279['length']-0x1;_0x1ec103>=0x0;_0x1ec103-=0x1){if(_0x533279[_0x1ec103][_0x8baceb(0x4b,0xe5,-_0x55ce05._0x35718d,0x5e)]===_0x49853e)return _0x533279[_0x1ec103];}return void 0x0;}function hasTool(_0x365b9c,_0x512c84){const _0x2cc510={_0x2e52f6:0x2f7,_0x1ee080:0x37a,_0x20d694:0x448,_0x22a76c:0x490},_0x302f56={_0x3fc540:0xfa,_0x3a61bc:0x10b,_0x4dd15d:0x550};function _0x36b1d9(_0x2dbd44,_0x46c935,_0x5b2c82,_0x2aba9b){return _0x1c2b50(_0x2dbd44-_0x302f56._0x3fc540,_0x46c935-_0x302f56._0x3a61bc,_0x2dbd44-_0x302f56._0x4dd15d,_0x5b2c82);}function _0x280eb2(_0x46f210,_0x184f2e,_0x4a0089,_0xbde947){return _0x1c2b50(_0x46f210-0x186,_0x184f2e-0x36,_0xbde947-0x4cb,_0x4a0089);}return _0x365b9c[_0x280eb2(_0x2cc510._0x2e52f6,_0x2cc510._0x1ee080,0x3a8,0x34a)][_0x280eb2(0x3ee,0x52b,_0x2cc510._0x20d694,_0x2cc510._0x22a76c)](_0x2d832d=>_0x2d832d[_0x280eb2(0x538,0x40c,0x4c7,0x4ca)]===_0x512c84);}function createMockResponse(_0x18c986,_0x57bdd0,_0x270295,_0x4d3577){return{'id':_0x18c986,'content':_0x57bdd0,'stopReason':_0x270295,'usage':_0x4d3577};}var MockModel=class{[_0x263708(0x299,0x294,0x1e2,0x367)];['maxTokens'];[_0x263708(0x35b,0x3e6,0x320,0x287)]=[];[_0x263708(0x1e0,0x279,0x263,0x120)];constructor(_0x32cbc2={}){const _0x2f7fbc={_0x1a4265:0x4a8,_0x423b23:0x592,_0x1f8fe:0x5ec,_0x529fb7:0x503,_0x5640ae:0x636,_0x4f818f:0x5e4,_0x1decf0:0x658,_0x1b7654:0x5c6,_0x34a569:0x562,_0x5b5be1:0x5a5,_0x18824f:0x577,_0x57e8f9:0x4d9,_0xd3fd79:0x51e},_0x2d61c5={_0x382f3c:0x75};this[_0x57bb79(0x4c1,_0x2f7fbc._0x1a4265,_0x2f7fbc._0x423b23,_0x2f7fbc._0x1f8fe)]=_0x32cbc2['model']??_0x57bb79(0x668,_0x2f7fbc._0x529fb7,0x5ae,0x596);function _0x57bb79(_0xdf7f2f,_0x5850f1,_0x3026d2,_0x38f05e){return _0x263708(_0x3026d2-0x2f9,_0xdf7f2f,_0x3026d2-_0x2d61c5._0x382f3c,_0x38f05e-0x17f);}function _0x41d3f3(_0x4659f5,_0x10afe1,_0x51e0cb,_0x50febc){return _0x263708(_0x51e0cb-0x382,_0x10afe1,_0x51e0cb-0x16,_0x50febc-0x45);}this[_0x57bb79(_0x2f7fbc._0x5640ae,0x59d,_0x2f7fbc._0x4f818f,_0x2f7fbc._0x1decf0)]=_0x32cbc2[_0x57bb79(0x6b3,0x527,0x5e4,_0x2f7fbc._0x1b7654)],this[_0x41d3f3(0x505,0x50b,_0x2f7fbc._0x34a569,_0x2f7fbc._0x5b5be1)]=_0x32cbc2[_0x57bb79(_0x2f7fbc._0x18824f,0x545,_0x2f7fbc._0x57e8f9,0x418)]?structuredClone(_0x32cbc2[_0x57bb79(0x5a0,0x594,_0x2f7fbc._0x57e8f9,_0x2f7fbc._0xd3fd79)]):void 0x0;}async['complete'](_0x57484a,_0x2c2526){const _0x1b5011={_0x2ae2fb:0x4fa,_0x125225:0x572,_0x3030fa:0x503,_0x3dcf94:0x5ee,_0x27ea50:0x4dd,_0x390bb2:0x6c5,_0x40a520:0x487,_0x52d0d6:0x556,_0x56bc96:0x58e,_0x56dfd4:0xa0,_0x5de1ac:0x6af,_0x14449a:0x71,_0x1f4b15:0x1e,_0x2cf797:0x65c,_0xeaa6d1:0x5af,_0x52dca4:0x4c3,_0x607882:0x509,_0x5b2c3a:0x4eb,_0x4b3659:0x83,_0x1edfe5:0x1a5,_0x27213f:0x52e,_0x5bdfad:0x50c,_0x51fa0a:0x5cd,_0x1460c1:0x168,_0xb62ad9:0x123,_0x22ce4b:0x5d9,_0x35f6cb:0x5a5,_0x3fee36:0x653,_0x391e82:0xf7,_0xac51a9:0x7c,_0x1cca73:0x515,_0x524db2:0x5e6,_0x2fd81e:0x4eb},_0x2a1c57={_0x415182:0x1cc},_0x173d6e={_0x56121b:0x1b4,_0x256845:0x108},_0x1c1682={...structuredClone(_0x57484a),..._0x57484a[_0x15d2cc(_0x1b5011._0x2ae2fb,_0x1b5011._0x125225,0x5ab,0x54a)]===void 0x0&&this[_0x190c6a(-0x1a3,-0x17a,-0x1d5,-0x245)]!==void 0x0?{'reasoning':structuredClone(this[_0x15d2cc(_0x1b5011._0x3030fa,_0x1b5011._0x3dcf94,_0x1b5011._0x27ea50,0x54a)])}:{}};this[_0x15d2cc(0x697,0x669,0x79c,_0x1b5011._0x390bb2)][_0x15d2cc(0x5f2,_0x1b5011._0x40a520,0x5da,_0x1b5011._0x52d0d6)](_0x1c1682);const _0x15e332=findLastMessage(_0x1c1682[_0x15d2cc(0x6af,0x4e1,_0x1b5011._0x56bc96,0x5c4)],_0x190c6a(-0x79,-0x2b,-_0x1b5011._0x56dfd4,0xb0));function _0x190c6a(_0x3d0294,_0x5f2652,_0x14a385,_0x1a2584){return _0x1c2b50(_0x3d0294-_0x173d6e._0x56121b,_0x5f2652-_0x173d6e._0x256845,_0x5f2652- -0x5,_0x1a2584);}const _0x5980b9=getToolResultBlocks(_0x15e332);function _0x15d2cc(_0x50cf0e,_0x2d12b5,_0x508228,_0x4da094){return _0x1c2b50(_0x50cf0e-0x154,_0x2d12b5-_0x2a1c57._0x415182,_0x4da094-0x6bf,_0x508228);}const _0x396b20='assistant-'+this[_0x15d2cc(0x780,_0x1b5011._0x5de1ac,0x632,0x6c5)]['length'];if(_0x5980b9[_0x190c6a(0x2f,-_0x1b5011._0x14449a,_0x1b5011._0x1f4b15,0x5a)]>0x0)return createMockResponse(_0x396b20,[{'type':_0x15d2cc(0x61f,_0x1b5011._0x2cf797,0x4de,_0x1b5011._0xeaa6d1),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x5980b9[0x0][_0x15d2cc(0x49c,_0x1b5011._0x52dca4,0x5ea,_0x1b5011._0x607882)]}],_0x15d2cc(0x542,0x41c,0x46c,_0x1b5011._0x5b2c3a),{'inputTokens':0x78,'outputTokens':0x28});const _0x5e1717=getTextFromMessage(_0x15e332);if(/list .*files|workspace/i[_0x190c6a(-_0x1b5011._0x4b3659,-0x121,-_0x1b5011._0x1edfe5,-0x181)](_0x5e1717)&&hasTool(_0x1c1682,_0x15d2cc(_0x1b5011._0x27213f,_0x1b5011._0x5bdfad,0x5e5,_0x1b5011._0x51fa0a)))return createMockResponse(_0x396b20,[{'type':'tool_use','id':_0x190c6a(-_0x1b5011._0x1460c1,-_0x1b5011._0xb62ad9,-0x20c,-0xd6)+this['requests'][_0x15d2cc(0x613,_0x1b5011._0x22ce4b,_0x1b5011._0x35f6cb,_0x1b5011._0x3fee36)],'name':_0x190c6a(-0x195,-_0x1b5011._0x391e82,-0x93,-0x67),'input':{'command':_0x190c6a(0x1f,-0x7b,-0x41,-_0x1b5011._0xac51a9)}}],_0x15d2cc(0x545,0x687,_0x1b5011._0x1cca73,_0x1b5011._0x524db2),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x396b20,[{'type':'text','text':'Direct\x20answer:\x20'+_0x5e1717}],_0x15d2cc(_0x1b5011._0x56bc96,0x4ec,0x4c3,_0x1b5011._0x2fd81e),{'inputTokens':0x50,'outputTokens':0x12});}};function getFallbackModelLimits(_0x3c4b26,_0x13dd6a){const _0x42f7da={_0x3d07d3:0x5f0,_0x5e8e50:0x582,_0x36044e:0x6c1,_0x42cc23:0x5a4,_0x299fbf:0x516},_0x30fad8={_0x28bdb0:0xac},_0x517a2e=getModelProfile(_0x3c4b26,_0x13dd6a);function _0x59193e(_0x57390a,_0x217322,_0x20f235,_0x4b371c){return _0x1c2b50(_0x57390a-_0x30fad8._0x28bdb0,_0x217322-0x19e,_0x4b371c-0x519,_0x20f235);}function _0x12f0fd(_0x5e133a,_0xdf6a1d,_0x5246c5,_0x312094){return _0x263708(_0xdf6a1d-0x36c,_0x5e133a,_0x5246c5-0x197,_0x312094-0x1ab);}if(!_0x517a2e?.[_0x12f0fd(_0x42f7da._0x3d07d3,0x6c1,0x6c5,0x7a5)]&&!_0x517a2e?.[_0x12f0fd(0x625,_0x42f7da._0x5e8e50,0x61a,0x4ec)])return void 0x0;return{..._0x517a2e[_0x12f0fd(0x725,_0x42f7da._0x36044e,0x6c4,0x6ad)]?{'contextWindow':_0x517a2e['contextWindow']}:{},..._0x517a2e['maxOutput']?{'maxOutput':_0x517a2e[_0x12f0fd(0x531,0x582,_0x42f7da._0x42cc23,_0x42f7da._0x299fbf)]}:{}};}function normalizeModelInfo(_0x404731,_0xb890f4){const _0x59a279={_0x343694:0x9d,_0x1a4ade:0x17f,_0x14339b:0xf4,_0x4889b4:0x135,_0x398c0f:0x13e,_0x5092c4:0xbb,_0x1dd8c9:0x2a,_0x35df6d:0x1b5,_0x4ea420:0xf4,_0x297877:0x10a,_0x3f2311:0x5c,_0x4e5265:0xaf,_0x163b39:0x117,_0x2fd36f:0xbd,_0x2311e4:0x82,_0x5113dc:0xa4,_0x2d17da:0x77,_0x74860b:0x82,_0x250912:0x26c,_0x44056b:0x22a,_0x18da1c:0x37,_0x54e0f3:0x6c,_0x2e9fb2:0x153,_0x1de266:0x8,_0x1142d3:0x16,_0x262618:0x98},_0x3896af={_0x53f86b:0x196,_0x10f5f0:0x4a},_0x51420d={_0x41d217:0x216,_0x54fad6:0x26},_0x58dd53=typeof _0xb890f4['id']===_0x396bed(_0x59a279._0x343694,0x189,_0x59a279._0x1a4ade,_0x59a279._0x14339b)?_0xb890f4['id']:'',_0x27383a=typeof _0xb890f4[_0x396bed(_0x59a279._0x4889b4,0x1f5,0x1e8,_0x59a279._0x398c0f)]===_0x396bed(_0x59a279._0x5092c4,_0x59a279._0x1dd8c9,_0x59a279._0x35df6d,_0x59a279._0x4ea420)?_0xb890f4[_0x396bed(_0x59a279._0x297877,_0x59a279._0x3f2311,_0x59a279._0x4e5265,0x13e)]:_0x58dd53,_0x3697c8=normalizeModelLimits(_0x404731,_0xb890f4)??getFallbackModelLimits(_0x404731,_0x58dd53);function _0x396bed(_0x575e4b,_0x185dd6,_0x422839,_0x39e3f5){return _0x263708(_0x39e3f5- -_0x51420d._0x41d217,_0x422839,_0x422839-_0x51420d._0x54fad6,_0x39e3f5-0xad);}const _0x26cf6c=Array[_0xf200a8(-0xe7,-_0x59a279._0x163b39,-0xd7,-0xb6)](_0xb890f4[_0x396bed(-_0x59a279._0x2fd36f,-0x14f,-0x15f,-_0x59a279._0x2311e4)])?_0xb890f4[_0x396bed(-_0x59a279._0x5113dc,-0x68,-_0x59a279._0x2d17da,-_0x59a279._0x74860b)][_0xf200a8(-0x17a,-0x17a,-_0x59a279._0x250912,-_0x59a279._0x44056b)](_0x19366f=>typeof _0x19366f===_0xf200a8(-0x15d,0x33,-0x1e,-0x9e)):Array['isArray'](_0xb890f4[_0x396bed(_0x59a279._0x18da1c,_0x59a279._0x54e0f3,_0x59a279._0x2e9fb2,0x113)])?_0xb890f4[_0xf200a8(-0xda,-0x6e,-_0x59a279._0x1de266,-0x7f)][_0x396bed(0x16,-0xd9,-_0x59a279._0x1142d3,-_0x59a279._0x262618)](_0x52da5c=>typeof _0x52da5c===_0xf200a8(-0x17,-0x83,-0x9f,-0x9e)):void 0x0;function _0xf200a8(_0x25846c,_0x3fb60e,_0x2bba01,_0x531f99){return _0x263708(_0x531f99- -0x3a8,_0x2bba01,_0x2bba01-_0x3896af._0x53f86b,_0x531f99-_0x3896af._0x10f5f0);}return{'id':_0x58dd53,'name':_0x27383a,..._0x3697c8?{'limits':_0x3697c8}:{},..._0x26cf6c?{'supportedEndpoints':_0x26cf6c}:{}};}function normalizeModelLimits(_0x24b571,_0x3eb9df){const _0x2479fd={_0x8ab243:0x40,_0xa95b94:0x5c,_0xd9b977:0x10,_0x2e4c73:0x3c,_0x4b6c6b:0xbb,_0x2a1bb6:0x43,_0xcba445:0xd2,_0x2557a4:0xab,_0x1eccd1:0x2,_0x34b973:0x13,_0x1e22cd:0xc4,_0x9ed3bc:0x9f,_0x46d1b2:0x6c,_0x8ba5ad:0x90,_0x43e1eb:0x7e,_0x134b8d:0x24f,_0x57b93f:0xeb,_0x97ab00:0xd6,_0x4aa102:0x10c,_0x430be4:0x17,_0x4093a7:0x71,_0x454ba1:0xb2,_0x8251c0:0xc,_0xec77ae:0x10b,_0x42cdde:0x1f5,_0x2d6cdc:0x9,_0x234b6f:0xba,_0x2438c2:0x8f,_0x9c4b78:0x99,_0xf7eea:0x54,_0x3cf16e:0x1b,_0x59bbfe:0x3e,_0x485011:0x9,_0x3ad609:0x58,_0x38f01c:0x11b,_0x103f4c:0xa3,_0x1bed8c:0x73,_0x50afdc:0xf4,_0x3aeed5:0x95,_0x52d84a:0x4a,_0x2ccfa8:0x46,_0x538ab8:0x14,_0x3fa7e0:0x45,_0x32a928:0xcf,_0x2720cf:0x9e,_0x4ad364:0x35,_0xef6c25:0x6a,_0x2ff7e0:0xae,_0x19da44:0x144,_0x22e7a3:0x14f},_0x5ae1f7={_0x41d654:0x6d},_0xca4432={_0x2c6720:0x8e,_0x550b8c:0x43};function _0x458064(_0x584ef7,_0x1d5968,_0x4ff96c,_0x14387e){return _0x1c2b50(_0x584ef7-_0xca4432._0x2c6720,_0x1d5968-0x39,_0x584ef7-_0xca4432._0x550b8c,_0x4ff96c);}function _0x529276(_0x2e3046,_0x85c81c,_0x448d05,_0x5f5104){return _0x263708(_0x448d05- -0x203,_0x2e3046,_0x448d05-0x186,_0x5f5104-_0x5ae1f7._0x41d654);}if(_0x3eb9df[_0x458064(-0xd6,-_0x2479fd._0x8ab243,-_0x2479fd._0xa95b94,-0x1c)]&&typeof _0x3eb9df[_0x458064(-0xd6,-0x166,-0x1c4,_0x2479fd._0xd9b977)]===_0x458064(-_0x2479fd._0x2e4c73,0x57,-_0x2479fd._0x4b6c6b,0x4f)){const _0x12b627=_0x3eb9df[_0x458064(-0xd6,-0xb1,0x16,-0x10e)];if(typeof _0x12b627['contextWindow']==='number')return{'contextWindow':_0x12b627[_0x458064(_0x2479fd._0x2a1bb6,_0x2479fd._0xcba445,-_0x2479fd._0x2557a4,-_0x2479fd._0x1eccd1)],...typeof _0x12b627[_0x529276(-0x68,-0x7c,_0x2479fd._0x34b973,-_0x2479fd._0x1e22cd)]==='number'?{'maxOutput':_0x12b627[_0x458064(-0xfc,-_0x2479fd._0x9ed3bc,-0x18c,-_0x2479fd._0x46d1b2)]}:{}};}if(_0x24b571[_0x529276(-0xf,_0x2479fd._0x8ba5ad,_0x2479fd._0x43e1eb,-0x5a)]()===_0x458064(-0x165,-_0x2479fd._0x134b8d,-0x1d2,-0x1de)){const _0x10f39f=_0x3eb9df['capabilities'],_0x1e6c02=_0x10f39f?.[_0x458064(-0xd6,-_0x2479fd._0x57b93f,-_0x2479fd._0x97ab00,-_0x2479fd._0x4aa102)];if(typeof _0x1e6c02?.[_0x529276(-_0x2479fd._0x430be4,0x100,_0x2479fd._0x4093a7,0xb4)]===_0x529276(_0x2479fd._0x454ba1,0x84,-_0x2479fd._0x8251c0,0x20))return{'contextWindow':_0x1e6c02[_0x458064(-0x9e,-0x13e,-_0x2479fd._0xec77ae,-0x184)],...typeof _0x1e6c02[_0x458064(0x3c,0xc0,0x28,0x4e)]===_0x458064(-0x11b,-_0x2479fd._0x42cdde,-0x139,-0x1e6)?{'maxOutput':_0x1e6c02[_0x458064(_0x2479fd._0x2e4c73,_0x2479fd._0x2d6cdc,_0x2479fd._0x234b6f,0x121)]}:{}};}const _0x3fc108=_0x3eb9df['metadata'],_0x472849=_0x3eb9df['top_provider'],_0x3db84d=typeof _0x3eb9df[_0x458064(-0x1b,-_0x2479fd._0x2438c2,_0x2479fd._0x9c4b78,-0x105)]==='number'?_0x3eb9df[_0x458064(-0x1b,-0x1e,-0x104,-_0x2479fd._0xf7eea)]:typeof _0x3fc108?.[_0x458064(-_0x2479fd._0x3cf16e,_0x2479fd._0x59bbfe,_0x2479fd._0x485011,_0x2479fd._0x3ad609)]===_0x458064(-_0x2479fd._0x38f01c,-_0x2479fd._0x103f4c,-0x164,-0x1e1)?_0x3fc108[_0x529276(0x1bb,_0x2479fd._0x1bed8c,_0x2479fd._0x50afdc,0x56)]:typeof _0x472849?.['context_length']===_0x529276(_0x2479fd._0x3aeed5,-0x42,-0xc,-_0x2479fd._0x52d84a)?_0x472849[_0x458064(-0x1b,_0x2479fd._0x2ccfa8,0x46,_0x2479fd._0x538ab8)]:void 0x0;if(_0x3db84d===void 0x0)return void 0x0;return{'contextWindow':_0x3db84d,...typeof _0x3fc108?.[_0x529276(0xc0,_0x2479fd._0x3fa7e0,_0x2479fd._0x32a928,_0x2479fd._0x2720cf)]==='number'?{'maxOutput':_0x3fc108['max_tokens']}:typeof _0x472849?.[_0x458064(_0x2479fd._0x4ad364,_0x2479fd._0xef6c25,0x111,-0x8f)]===_0x529276(_0x2479fd._0x2ff7e0,0x86,-0xc,-_0x2479fd._0x1bed8c)?{'maxOutput':_0x472849[_0x529276(0x140,0x1e0,_0x2479fd._0x19da44,_0x2479fd._0x22e7a3)]}:{}};}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,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|
|
1
|
+
(function(_0x5a6094,_0x63365f){const _0x918e23={_0x5cacd3:0x8,_0x36a78f:0x8e,_0x549630:0x8b,_0x2fa2cd:0x4d,_0x5c359a:0xc4,_0x316481:0x32,_0x1d6780:0x57,_0x2ce82c:0xd1,_0x28ad82:0x1c0,_0x27cab8:0x2b5,_0x1dc937:0x2ed,_0x3ba2ec:0x28f,_0x494551:0x1f0,_0x10ec1a:0x28c,_0x1665db:0x21c,_0x2a3471:0x2c4,_0x2e5762:0x385},_0x443c3c={_0x2ed910:0x2fa},_0x19054e=_0x5a6094();function _0x28ec9d(_0x4bd28a,_0x3016ea,_0x1b1480,_0x2fb268){return _0x5dc3(_0x1b1480- -_0x443c3c._0x2ed910,_0x3016ea);}function _0x5bacc3(_0x328f40,_0x2e4938,_0x3fbefe,_0xa8381e){return _0x5dc3(_0x3fbefe-0x6a,_0x328f40);}while(!![]){try{const _0x16ae5b=parseInt(_0x28ec9d(-_0x918e23._0x5cacd3,-_0x918e23._0x36a78f,-_0x918e23._0x549630,-_0x918e23._0x2fa2cd))/0x1+-parseInt(_0x28ec9d(0x0,0xd,-0xa,_0x918e23._0x5c359a))/0x2*(parseInt(_0x28ec9d(-0x81,_0x918e23._0x316481,-0xb,_0x918e23._0x1d6780))/0x3)+parseInt(_0x28ec9d(-_0x918e23._0x2ce82c,-_0x918e23._0x28ad82,-0x130,-0xca))/0x4+-parseInt(_0x5bacc3(_0x918e23._0x27cab8,_0x918e23._0x1dc937,_0x918e23._0x3ba2ec,0x259))/0x5+parseInt(_0x5bacc3(0x2fa,_0x918e23._0x494551,0x260,0x22f))/0x6+parseInt(_0x5bacc3(_0x918e23._0x10ec1a,0x370,0x29f,0x2af))/0x7+parseInt(_0x28ec9d(-_0x918e23._0x1665db,-0x11e,-0x1b1,-0x1da))/0x8*(parseInt(_0x5bacc3(_0x918e23._0x2a3471,0x29e,0x377,_0x918e23._0x2e5762))/0x9);if(_0x16ae5b===_0x63365f)break;else _0x19054e['push'](_0x19054e['shift']());}catch(_0x54aac9){_0x19054e['push'](_0x19054e['shift']());}}}(_0x275d,0x52a16));import{toOpenAiResponsesRequest}from'../chunk-BLGBVFVX.js';import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-YWQXXHHU.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ProviderRequestConstructionError=class extends Error{constructor(_0x256238){const _0x386410={_0x27857c:0x1b6,_0x46dca2:0x150,_0x32670a:0x152},_0x2c65cb={_0x2bc70e:0x3c6};function _0x1df8be(_0x4c95b4,_0x282c75,_0xfc8c82,_0x32f681){return _0x5dc3(_0x32f681- -_0x2c65cb._0x2bc70e,_0x282c75);}super(_0x256238);function _0xa27680(_0x4192f6,_0x2c71a8,_0x199f85,_0x75484){return _0x5dc3(_0x199f85-0x2f3,_0x75484);}this[_0x1df8be(-_0x386410._0x27857c,-0x42,-0x8d,-0xd5)]=_0x1df8be(-0x60,-_0x386410._0x46dca2,-_0x386410._0x32670a,-0x9f);}},ProviderStreamEventError=class extends Error{[_0xd0b0c8(0x4ec,0x5cf,0x4e2,0x616)];['retryable'];['status'];constructor(_0x20d5d0,_0x33de18={}){const _0x1c2baf={_0x11fffd:0x2f0,_0xfa4a8e:0x333,_0x30095b:0xe,_0x30f578:0x76,_0x4e36ab:0xc,_0x2fe77d:0x1c1,_0xff5096:0x2d9,_0x21283e:0x1c,_0x4ef7b7:0xb,_0x20421d:0xc2,_0xc9850e:0x1b,_0x185c85:0x135,_0x9c571:0xcc,_0x583f0a:0x83,_0x1c7a20:0x5b,_0x210596:0xf8},_0x99208b={_0x43709b:0x93},_0x384e81={_0x436cbb:0x360,_0x5d005c:0x8f};super(_0x20d5d0);function _0x421622(_0x501cb8,_0x13a62a,_0x5e1ace,_0x4c9b60){return _0xd0b0c8(_0x501cb8-0x1a4,_0x5e1ace- -_0x384e81._0x436cbb,_0x4c9b60,_0x4c9b60-_0x384e81._0x5d005c);}function _0x5ba9c4(_0x531a57,_0xafdae0,_0x1a6c3b,_0x55eda0){return _0xd0b0c8(_0x531a57-0xb1,_0x531a57- -0x5d9,_0xafdae0,_0x55eda0-_0x99208b._0x43709b);}this[_0x421622(0x401,_0x1c2baf._0x11fffd,_0x1c2baf._0xfa4a8e,0x2d9)]=_0x5ba9c4(0xc5,0x14c,0x194,0x1a7),this[_0x5ba9c4(-0xa,_0x1c2baf._0x30095b,_0x1c2baf._0x30f578,-_0x1c2baf._0x4e36ab)]=_0x33de18[_0x421622(_0x1c2baf._0x2fe77d,0x22e,0x26f,_0x1c2baf._0xff5096)],this[_0x5ba9c4(0x1c,-0x2c,0xa9,-0xc0)]=_0x33de18[_0x5ba9c4(_0x1c2baf._0x21283e,_0x1c2baf._0x4ef7b7,-_0x1c2baf._0x20421d,_0x1c2baf._0xc9850e)]??!![],this[_0x5ba9c4(0x5f,_0x1c2baf._0x185c85,_0x1c2baf._0x9c571,_0x1c2baf._0x583f0a)]=_0x33de18[_0x5ba9c4(0x5f,0xab,_0x1c2baf._0x1c7a20,_0x1c2baf._0x210596)];}};function isRetryableProviderStreamEventError(_0x557b65){const _0x227faa={_0x4ead34:0xd7};function _0x284b6f(_0x2bc6f5,_0x29f50d,_0x285cd1,_0x1ce5fc){return _0xd0b0c8(_0x2bc6f5-0x158,_0x2bc6f5- -0x51e,_0x29f50d,_0x1ce5fc-0x13d);}return _0x557b65 instanceof ProviderStreamEventError&&_0x557b65[_0x284b6f(_0x227faa._0x4ead34,0x15d,0x5b,0x167)];}var ANTHROPIC_MESSAGES_SURFACE=_0xd0b0c8(0x43f,0x50f,0x5c8,0x42a),ANTHROPIC_MESSAGES_STREAM_SURFACE=_0xd0b0c8(0x684,0x5fb,0x6be,0x68a);function parseToolInput(_0x1bdb74){const _0x117692={_0x2a00ed:0xd8,_0x41e690:0x1d9},_0x2e6db2={_0x2c5711:0x584,_0xe77230:0xf7};function _0x1bc274(_0x374983,_0x4aa856,_0x29f4b8,_0x2a5f5e){return _0xd0b0c8(_0x374983-0xac,_0x29f4b8- -_0x2e6db2._0x2c5711,_0x2a5f5e,_0x2a5f5e-_0x2e6db2._0xe77230);}try{return JSON[_0x1bc274(0x1bd,_0x117692._0x2a00ed,0xf1,_0x117692._0x41e690)](_0x1bdb74);}catch{return _0x1bdb74;}}function resolveReasoningVisibility(_0x5a1ad9){const _0x185990={_0x570207:0xcd,_0x5c638f:0x110,_0x1aca28:0xd5,_0x3a873f:0x219},_0x2b4f8a={_0x111f7f:0x159,_0x27b3c6:0x180},_0x1085f8={_0x5e303a:0x42e,_0x12dc28:0x1ad,_0x766460:0x10d};function _0x290013(_0x3e623c,_0x34b625,_0x12bea0,_0x2efd83){return _0x495204(_0x3e623c,_0x34b625- -_0x1085f8._0x5e303a,_0x12bea0-_0x1085f8._0x12dc28,_0x2efd83-_0x1085f8._0x766460);}function _0x37bcb3(_0x18d1bb,_0x1a9380,_0x476614,_0x4426a1){return _0xd0b0c8(_0x18d1bb-_0x2b4f8a._0x111f7f,_0x18d1bb- -0x518,_0x1a9380,_0x4426a1-_0x2b4f8a._0x27b3c6);}return _0x5a1ad9[_0x37bcb3(_0x185990._0x570207,0x13,-0x25,0xb2)]?.[_0x290013(-0x124,-_0x185990._0x5c638f,-0x41,-_0x185990._0x1aca28)]??_0x37bcb3(0x18b,0x227,0x1ee,_0x185990._0x3a873f);}function isUserVisibleThinking(_0x324279){const _0x15ac2c={_0x1a9172:0x243,_0x36c2be:0x228,_0x327b60:0x101,_0x5a579b:0x25e},_0xc2fd6={_0x544afe:0x239};function _0x1e71b1(_0x2ea8a9,_0xc8566f,_0x5bfb82,_0x83d339){return _0xd0b0c8(_0x2ea8a9-0x6f,_0xc8566f- -0x761,_0x2ea8a9,_0x83d339-0x14a);}const _0x25bbd6=resolveAnthropicThinkingConfig(_0x324279[_0x1e71b1(-_0x15ac2c._0x1a9172,-0x17c,-_0x15ac2c._0x36c2be,-_0x15ac2c._0x327b60)]);function _0x4c7cac(_0x4afe96,_0x180cc8,_0x2b8c1b,_0x2edfc2){return _0x495204(_0x2b8c1b,_0x4afe96- -_0xc2fd6._0x544afe,_0x2b8c1b-0x100,_0x2edfc2-0xda);}return _0x25bbd6!==void 0x0&&_0x25bbd6[_0x1e71b1(-0x29d,-0x1e3,-_0x15ac2c._0x5a579b,-0x2a6)]!==_0x1e71b1(0x9,-0xa4,-0x72,-0x171)&&resolveReasoningVisibility(_0x324279)==='user-visible';}function createAnthropicThinkingBody(_0x1af9c8){const _0x1bc948={_0x4b76e8:0x136,_0xdd3085:0x137,_0xe9b7fc:0x1a7,_0x1ebd9a:0x1a8,_0x6b97d4:0x19c,_0x2e1a01:0x194,_0xd9ca04:0x1,_0x2e4aed:0xca,_0x387c26:0x130,_0x107a3f:0xed,_0x7db40:0x48,_0x281769:0x82,_0x210715:0x2e,_0x179995:0x12d,_0xc8236:0x6b,_0x2da5eb:0x3e,_0x41a45e:0x17},_0x2fa477={_0x99d62:0x138},_0x1d21c2={_0x4f7e82:0x2b1},_0x2438aa=resolveAnthropicThinkingConfig(_0x1af9c8[_0x54be62(_0x1bc948._0x4b76e8,_0x1bc948._0xdd3085,0xbc,_0x1bc948._0xe9b7fc)]);if(!_0x2438aa||_0x2438aa['type']===_0x54be62(_0x1bc948._0x1ebd9a,_0x1bc948._0x6b97d4,_0x1bc948._0x2e1a01,0x155))return{};function _0x337204(_0x23bed8,_0x2062d8,_0x29d3f7,_0xa6e45c){return _0x495204(_0xa6e45c,_0x2062d8- -_0x1d21c2._0x4f7e82,_0x29d3f7-0x13f,_0xa6e45c-0x19d);}const _0x2a880b=_0x2438aa[_0x54be62(-_0x1bc948._0xd9ca04,-0x4d,0x19,-_0x1bc948._0x2e4aed)]??(isUserVisibleThinking(_0x1af9c8)?_0x337204(-0x1b,0x61,_0x1bc948._0x387c26,_0x1bc948._0x107a3f):_0x54be62(-0x4,_0x1bc948._0x7db40,_0x1bc948._0x281769,-_0x1bc948._0x210715)),_0xae028f=_0x2438aa[_0x54be62(0xda,0xac,_0x1bc948._0x179995,0x20c)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;function _0x54be62(_0x465852,_0x40d23e,_0x214426,_0x58d2a0){return _0x495204(_0x465852,_0x214426- -0x20b,_0x214426-_0x2fa477._0x99d62,_0x58d2a0-0x1e9);}if(_0x2438aa['type']==='enabled')return{..._0xae028f?{'headers':_0xae028f}:{},'thinking':{'type':'enabled','budget_tokens':_0x2438aa['budgetTokens'],'display':_0x2a880b}};return{..._0xae028f?{'headers':_0xae028f}:{},'thinking':{'type':_0x54be62(-0x15,0xe6,0xd5,0x3e),..._0x2438aa[_0x337204(-_0x1bc948._0xc8236,_0x1bc948._0x2da5eb,-0x75,-_0x1bc948._0x41a45e)]?{'effort':_0x2438aa['effort']}:{},'display':_0x2a880b}};}function toAnthropicRequestContent(_0xbc9f61){const _0x59df6b={_0xf0a2e0:0x4ae,_0x5df8f1:0x4cc,_0x262908:0x2f,_0x40565e:0xf1,_0x19d97b:0x35,_0xe05031:0x5d8,_0x3e35c1:0x560,_0x213b1a:0x50b,_0x37e4bb:0x590,_0xcfd706:0x523,_0x329a56:0xe9,_0x4b5750:0x60,_0x13caef:0x43,_0x2fd69c:0x402,_0x4240a0:0x4db,_0x4c839c:0x4a8,_0x1f259a:0x4c8,_0x518511:0x551,_0x425aa6:0xd4,_0x102e0b:0x8a,_0x51301c:0x4c8,_0x3a4fed:0x3f2,_0x57d4e5:0x48e,_0x29718a:0x40c,_0x248d86:0x41b,_0x226f97:0x4ea,_0x2a6015:0x519,_0x399927:0x4db,_0x2da515:0x537,_0x3841a1:0x55c,_0x165119:0x4ab,_0x3b7eaf:0x51c,_0x1ee3cd:0x574,_0x19123e:0x151,_0x3c070b:0x10c,_0x4097f4:0x5a3,_0x352795:0x54b,_0x4aa962:0x509,_0x3b2934:0x488,_0x5c2236:0x449},_0x5dacc5={_0x4e9d9e:0x7,_0x51c383:0x1db},_0x1d6781={_0x457038:0x1da,_0xd6b489:0x104};function _0x3df6da(_0x552b93,_0x38dfb1,_0x80b8cf,_0x4b8bfd){return _0xd0b0c8(_0x552b93-_0x1d6781._0x457038,_0x552b93- -0xa3,_0x4b8bfd,_0x4b8bfd-_0x1d6781._0xd6b489);}if(_0xbc9f61[_0x3df6da(0x522,0x4a4,_0x59df6b._0xf0a2e0,_0x59df6b._0x5df8f1)]==='assistant'&&_0xbc9f61[_0x33bbac(_0x59df6b._0x262908,-0x10e,-_0x59df6b._0x40565e,-_0x59df6b._0x19d97b)]?.[_0x3df6da(_0x59df6b._0xe05031,0x6b4,0x6b5,0x6a9)])return structuredClone(_0xbc9f61[_0x3df6da(_0x59df6b._0x3e35c1,_0x59df6b._0x213b1a,_0x59df6b._0x37e4bb,_0x59df6b._0xcfd706)][_0x33bbac(0x12a,_0x59df6b._0x329a56,_0x59df6b._0x4b5750,_0x59df6b._0x13caef)]);function _0x33bbac(_0x1eb554,_0x3db0c9,_0x22adeb,_0x5a7a90){return _0x495204(_0x3db0c9,_0x5a7a90- -0x31a,_0x22adeb-_0x5dacc5._0x4e9d9e,_0x5a7a90-_0x5dacc5._0x51c383);}const _0x1ddb49=[];for(const _0x597c73 of normalizeContent(_0xbc9f61[_0x3df6da(0x4b9,_0x59df6b._0x2fd69c,0x3ce,0x4b6)])){if(_0x597c73[_0x3df6da(_0x59df6b._0x4240a0,0x45c,_0x59df6b._0x4c839c,0x59c)]===_0x33bbac(-0x40,-0x81,0xe6,-0x2))continue;if(_0x597c73[_0x3df6da(0x4db,_0x59df6b._0x1f259a,0x41a,_0x59df6b._0x518511)]===_0x33bbac(0xf3,0x27,_0x59df6b._0x425aa6,_0x59df6b._0x102e0b)){_0x1ddb49[_0x3df6da(0x488,0x3bd,_0x59df6b._0x51301c,_0x59df6b._0x3a4fed)]({'type':_0x3df6da(_0x59df6b._0x57d4e5,_0x59df6b._0x29718a,0x3eb,_0x59df6b._0x248d86),'thinking':_0x597c73[_0x3df6da(0x48e,0x4d7,0x418,_0x59df6b._0x29718a)],'signature':_0x597c73[_0x3df6da(0x44b,_0x59df6b._0x226f97,_0x59df6b._0x2a6015,0x37d)]});continue;}if(_0x597c73[_0x3df6da(_0x59df6b._0x399927,_0x59df6b._0x2da515,_0x59df6b._0x3841a1,_0x59df6b._0x165119)]===_0x3df6da(_0x59df6b._0x3b7eaf,_0x59df6b._0x1ee3cd,0x585,0x544)){_0x1ddb49[_0x33bbac(-_0x59df6b._0x19123e,-_0x59df6b._0x3c070b,-0xdc,-0x10d)]({'type':_0x3df6da(_0x59df6b._0x4097f4,0x4dc,_0x59df6b._0x352795,_0x59df6b._0x4aa962),'data':_0x597c73['data']});continue;}_0x1ddb49[_0x3df6da(_0x59df6b._0x3b2934,0x4f2,_0x59df6b._0x5c2236,0x55a)](structuredClone(_0x597c73));}return _0x1ddb49;}function createAnthropicRequest(_0x44541c,_0x3206da){const _0x45f1a9={_0x22ea96:0x13f,_0x119ce2:0x1b2,_0x2ef41c:0x2a5,_0x3f1844:0x27e,_0x1501dd:0x2a3,_0xc34ac2:0x2bb,_0x5222c9:0x2b3,_0x2f45c2:0x258,_0x890346:0x28c,_0x20798c:0x2b6,_0x6e397a:0x246,_0x4de514:0x296,_0x273cbe:0x209,_0x52a078:0x309,_0x4c557c:0x258,_0x35aab6:0x1d5,_0x2c3dda:0x3cc,_0x3b440f:0x382,_0x34b5f0:0x2cd,_0x5b0a5a:0x12f,_0x39f145:0x1e8,_0x12eb55:0x11c},_0x31ede3={_0x17f454:0x154,_0x1b72e2:0x3a3},_0x2aa30f={_0xf0bc47:0x6b},_0x4b2b50={_0x30d63a:0x10e,_0x13e3f2:0x17d},_0x2fa3ed=toProviderModelRequest(_0x44541c);function _0x27e459(_0x336651,_0x949c92,_0x5c9c58,_0x497150){return _0x495204(_0x497150,_0x949c92- -_0x4b2b50._0x30d63a,_0x5c9c58-_0x4b2b50._0x13e3f2,_0x497150-0x18f);}const _0x3e809c=createAnthropicThinkingBody(_0x44541c);function _0x2af24f(_0x19e90f,_0x3ecdc8,_0x39f502,_0x108157){return _0x495204(_0x108157,_0x3ecdc8-0x83,_0x39f502-_0x2aa30f._0xf0bc47,_0x108157-0xf6);}return{'accept':_0x3206da?_0x27e459(_0x45f1a9._0x22ea96,_0x45f1a9._0x119ce2,_0x45f1a9._0x2ef41c,0x280):_0x27e459(_0x45f1a9._0x3f1844,_0x45f1a9._0x1501dd,0x1f7,_0x45f1a9._0xc34ac2),'body':{..._0x2fa3ed,'messages':_0x44541c[_0x2af24f(0x1dd,_0x45f1a9._0x5222c9,_0x45f1a9._0x2f45c2,0x306)][_0x2af24f(_0x45f1a9._0x890346,_0x45f1a9._0x20798c,_0x45f1a9._0x6e397a,0x29b)](_0x87d983=>{function _0x4552fd(_0x24de38,_0x1cc004,_0x2cf5b8,_0x52ba01){return _0x27e459(_0x24de38-_0x31ede3._0x17f454,_0x52ba01-_0x31ede3._0x1b72e2,_0x2cf5b8-0x6f,_0x1cc004);}return{'role':_0x87d983[_0x4552fd(0x5bf,0x563,0x44e,0x53c)],'content':toAnthropicRequestContent(_0x87d983)};}),..._0x3e809c['thinking']?{'thinking':_0x3e809c[_0x2af24f(0x276,_0x45f1a9._0x4de514,_0x45f1a9._0x3f1844,_0x45f1a9._0x273cbe)]}:{},..._0x3206da?{'stream':!![]}:{},..._0x44541c['outputFormat']?{'output_config':{'format':{'type':_0x2af24f(_0x45f1a9._0x52a078,0x281,_0x45f1a9._0x4c557c,_0x45f1a9._0x35aab6),'schema':_0x44541c[_0x2af24f(_0x45f1a9._0x2c3dda,_0x45f1a9._0x3b440f,_0x45f1a9._0x34b5f0,_0x45f1a9._0x2ef41c)]['schema']}}}:{}},..._0x3e809c['headers']?{'headers':_0x3e809c[_0x27e459(_0x45f1a9._0x5b0a5a,_0x45f1a9._0x39f145,_0x45f1a9._0x12eb55,0x265)]}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x36fbe3,_0x7569f9){const _0x5a9922={_0x9e91f6:0x475,_0x4010e8:0xe3,_0x348eac:0xcb,_0x4d343e:0x37,_0x41cbb4:0x32,_0x4fcb17:0xc,_0x3b1add:0x75,_0x2a4b69:0xb7,_0x39fe02:0xf,_0x27d1c6:0xa4,_0x295fb5:0x74,_0x3aa597:0xd8,_0xb8bdf4:0x5ac,_0x51a101:0x582,_0x6554d0:0x4c2,_0x212618:0x6,_0x5a367c:0xe4,_0x17ec48:0x8c,_0xeb4a4d:0x1a,_0x4d5c96:0x640,_0x8e1c60:0x596,_0x2245a6:0x5c9,_0x48cbef:0xb0,_0x53cca7:0x5a9,_0x5e914b:0x469,_0x2a9988:0x4df,_0xf338d3:0x62,_0xf44c06:0x37,_0x3f96c1:0x394,_0xd9de4b:0x476,_0x4f38ba:0x46f,_0x57c810:0x507,_0x235597:0x60b,_0x4a8906:0x5ae,_0x531708:0x44,_0x16e9a3:0x2e,_0xcc5a35:0x50f,_0x3927f4:0x549,_0x22fd18:0x52d,_0x386714:0x22d,_0x5a6d45:0x157,_0x7d74f9:0x234,_0x31cd0c:0x118,_0x53733b:0x13b,_0x4dda1f:0x9e,_0x3c14dc:0x50c,_0x176630:0x429,_0x360848:0x448,_0x3927c7:0x48e,_0x26d77c:0x39,_0x568fd6:0xfe,_0x38c9b5:0x6c,_0x159c7d:0x437,_0x9490ad:0x54c,_0x133aee:0x4aa,_0x40ebb9:0x522,_0x50f4d2:0x23,_0x1ee040:0x1b8,_0x20c3d0:0x2e,_0x1e5d31:0xcc,_0x3a4f67:0x11e,_0x75bd48:0x12c,_0x1006a1:0x45,_0x484c98:0x6d},_0x1496ba={_0x2a2673:0x262,_0x419e09:0x14a,_0x2b1773:0x65},_0x198700={_0x1c7ed7:0x16d},_0x25fec6=[],_0x1ec2db=_0x36fbe3['content']??[];let _0x9e4e5=![];function _0x3c422f(_0x3b1192,_0x5c109e,_0x148368,_0x4db985){return _0xd0b0c8(_0x3b1192-_0x198700._0x1c7ed7,_0x148368- -0x562,_0x3b1192,_0x4db985-0x1b2);}for(const _0x5b7489 of _0x1ec2db){if(_0x5b7489['type']===_0x1cc5e7(0x391,0x3e3,0x3f1,_0x5a9922._0x9e91f6)){_0x9e4e5=!![];isUserVisibleThinking(_0x7569f9)&&_0x25fec6[_0x3c422f(-_0x5a9922._0x4010e8,-_0x5a9922._0x348eac,-_0x5a9922._0x4d343e,_0x5a9922._0x41cbb4)]({'type':'anthropic_thinking','thinking':_0x5b7489[_0x3c422f(_0x5a9922._0x4fcb17,_0x5a9922._0x3b1add,-0x31,-_0x5a9922._0x2a4b69)],'signature':_0x5b7489[_0x3c422f(_0x5a9922._0x39fe02,-_0x5a9922._0x27d1c6,-_0x5a9922._0x295fb5,-_0x5a9922._0x3aa597)]});continue;}if(_0x5b7489[_0x1cc5e7(_0x5a9922._0xb8bdf4,_0x5a9922._0x51a101,0x5a5,_0x5a9922._0x6554d0)]===_0x3c422f(_0x5a9922._0x212618,0x11a,_0x5a9922._0x5a367c,0x17c)){_0x9e4e5=!![];isUserVisibleThinking(_0x7569f9)&&_0x25fec6[_0x3c422f(0xaa,-0xba,-0x37,-0xe0)]({'type':_0x3c422f(0x130,_0x5a9922._0x17ec48,0x5d,_0x5a9922._0xeb4a4d),'data':_0x5b7489[_0x1cc5e7(0x693,_0x5a9922._0x4d5c96,_0x5a9922._0x8e1c60,_0x5a9922._0x2245a6)]});continue;}if(_0x5b7489[_0x3c422f(_0x5a9922._0x48cbef,-0x86,0x1c,-0x39)]===_0x1cc5e7(0x63b,0x525,_0x5a9922._0x53cca7,0x598)){_0x5b7489['text'][_0x1cc5e7(0x58b,_0x5a9922._0x5e914b,_0x5a9922._0x2a9988,0x4c9)]>0x0&&_0x25fec6[_0x3c422f(-_0x5a9922._0xf338d3,-0x128,-_0x5a9922._0xf44c06,-0xab)](structuredClone(_0x5b7489));continue;}_0x25fec6[_0x1cc5e7(_0x5a9922._0x3f96c1,0x50f,_0x5a9922._0xd9de4b,_0x5a9922._0x4f38ba)](structuredClone(_0x5b7489));}function _0x1cc5e7(_0x380a06,_0x268b5b,_0x20dbf7,_0x68d49e){return _0x495204(_0x268b5b,_0x68d49e-_0x1496ba._0x2a2673,_0x20dbf7-_0x1496ba._0x419e09,_0x68d49e-_0x1496ba._0x2b1773);}return{'id':_0x36fbe3['id']??_0x1cc5e7(_0x5a9922._0x57c810,0x4b6,0x3b3,0x463)+Date[_0x1cc5e7(_0x5a9922._0x235597,0x620,0x5c4,_0x5a9922._0x4a8906)](),'content':_0x25fec6,'stopReason':_0x25fec6[_0x3c422f(0x6c,-_0x5a9922._0x531708,_0x5a9922._0x16e9a3,-0x27)](_0x38331e=>_0x38331e[_0x1cc5e7(0x4a5,0x430,0x52f,0x4c2)]===_0x1cc5e7(0x6db,0x5e5,0x54f,0x5fd))?'tool_use':_0x36fbe3[_0x1cc5e7(_0x5a9922._0xcc5a35,_0x5a9922._0x3927f4,_0x5a9922._0x22fd18,0x583)]==='tool_use'?_0x3c422f(_0x5a9922._0x386714,0x176,_0x5a9922._0x5a6d45,_0x5a9922._0x7d74f9):_0x3c422f(0x1e3,0x1b8,_0x5a9922._0x31cd0c,0x116),'usage':{'inputTokens':(_0x36fbe3[_0x3c422f(_0x5a9922._0x53733b,0x2e,0xcc,_0x5a9922._0x4dda1f)]?.[_0x1cc5e7(_0x5a9922._0x3c14dc,_0x5a9922._0x176630,_0x5a9922._0x360848,_0x5a9922._0x3927c7)]??0x0)+(_0x36fbe3['usage']?.[_0x3c422f(0x48,_0x5a9922._0x26d77c,0xc4,_0x5a9922._0x568fd6)]??0x0)+(_0x36fbe3[_0x3c422f(_0x5a9922._0x38c9b5,0x17f,0xcc,0x167)]?.[_0x1cc5e7(0x5a9,_0x5a9922._0x159c7d,_0x5a9922._0x9490ad,0x4ea)]??0x0),'outputTokens':_0x36fbe3['usage']?.[_0x1cc5e7(_0x5a9922._0x133aee,_0x5a9922._0x40ebb9,0x5aa,0x53d)]??0x0,..._0x36fbe3['usage']?.[_0x3c422f(0xb2,_0x5a9922._0x50f4d2,0xc4,0xa9)]?{'cacheReadInputTokens':_0x36fbe3[_0x3c422f(_0x5a9922._0x1ee040,_0x5a9922._0x20c3d0,_0x5a9922._0x1e5d31,0x84)][_0x3c422f(_0x5a9922._0x3a4f67,_0x5a9922._0x75bd48,0xc4,0x1ac)]}:{},..._0x36fbe3[_0x3c422f(-0x14,_0x5a9922._0x1006a1,0xcc,-0xe)]?.[_0x3c422f(0xe,0x61,0x44,-_0x5a9922._0x484c98)]?{'cacheCreationInputTokens':_0x36fbe3['usage']['cache_creation_input_tokens']}:{}},..._0x9e4e5?{'providerState':{'anthropicAssistantContent':structuredClone(_0x1ec2db)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x495204(0x1f6,0x2e2,0x2c3,0x24f)]=new Map();[_0x495204(0x16a,0x1e4,0x1f2,0x272)]=0x0;[_0x495204(0x29b,0x26b,0x2c6,0x2cf)]=0x0;[_0x495204(0x2ce,0x324,0x23e,0x2e2)]=0x0;[_0x495204(0x1fe,0x280,0x1b4,0x242)]=_0x495204(0x2d6,0x201,0x12f,0x118)+Date['now']();['outputTokens']=0x0;[_0x495204(0x1f8,0x25d,0x306,0x2ce)];[_0x495204(0x2bb,0x1dd,0x133,0x1bd)]=_0x495204(0x33d,0x35c,0x319,0x3ec);constructor(_0x540bab){const _0x1be7b5={_0x408d19:0xca,_0x3883e7:0x84},_0x3e8e29={_0x3cb0b7:0x3c2};function _0x43674a(_0x4c0de5,_0x2b4df9,_0x7ab941,_0x5d9e68){return _0x495204(_0x5d9e68,_0x7ab941- -_0x3e8e29._0x3cb0b7,_0x7ab941-0x16a,_0x5d9e68-0x1e3);}this[_0x43674a(-_0x1be7b5._0x408d19,-0x128,-0x165,-_0x1be7b5._0x3883e7)]=_0x540bab;}[_0x495204(0x292,0x2eb,0x2db,0x38d)](_0x1e6e1b){const _0x2c81e8={_0x473582:0x5df,_0x3fccd5:0x529,_0x19594e:0x1ef,_0x16497f:0x2d,_0x4217ba:0xb7,_0x54e3ec:0x1c7,_0x4e70a6:0x237,_0x4d3dd8:0x263,_0x567309:0x2cf,_0x4e1269:0x9d,_0x2d984f:0x2be,_0x1a4a3d:0x27e,_0x59eac3:0x673,_0x19aff2:0x653,_0x99e188:0x58b,_0x59727f:0x1da,_0x1c69a8:0x197,_0x293761:0x286,_0x31effb:0x673,_0x23f42c:0x66a,_0x8bdb5f:0x6a4,_0x12297e:0x722,_0x4e9ad0:0x1b7,_0x4192bc:0x163,_0x822e46:0x604,_0x398801:0x5af,_0x42dadd:0x533,_0x2a02dd:0x4b4,_0x506a34:0x1ee,_0x38f23e:0x197,_0x436159:0x1e8,_0x18c8d5:0x1ca,_0x4f88c8:0x67f,_0x538740:0x5d7,_0x9e214d:0x5e8,_0x3b0048:0x12d,_0x16d713:0x84,_0x393338:0x4d7,_0x168589:0x136,_0xd89c95:0x117,_0x4d2f5e:0x176,_0x405fe9:0x5ce,_0x898b6d:0x5e0,_0x4a0d43:0x591,_0x74be79:0x629,_0x5a04b9:0x5cc,_0x59a2d3:0x61b,_0x4d15cb:0x5ad,_0x5b9ea:0x5af,_0x6ed318:0x674,_0x534c72:0x6ea,_0x46ec7d:0x7b9,_0x1368f6:0x639,_0x5e5f32:0x631,_0x49eb4:0x6b2,_0x186a5d:0x602,_0x18d2ec:0x5e9,_0x558c41:0x4e8,_0x1a8ae2:0x169,_0x5f2f24:0x11b,_0x7fda6f:0x251,_0x1a04a0:0x136,_0x3a4433:0x286,_0x4f14b4:0x1b9,_0x3c6ef8:0x13b,_0x7b7526:0xa5,_0x7fb2c5:0xd1,_0x42ca00:0x5,_0x8808af:0x3e,_0x3802a8:0x49f,_0x190ff5:0x12f,_0x3321a7:0x1bd,_0x497fa4:0x269,_0x2f60a6:0x58,_0x1fd5c5:0x56c,_0x4474c1:0x56d,_0x247a5d:0x56,_0x4f25f3:0x75,_0x50a869:0x74e,_0x36e2db:0x677,_0x270eb1:0x169,_0x3c0cfe:0x1ac,_0x2d5e33:0x6b6,_0x4951b9:0x742,_0x1f6e99:0x55f,_0x566ee6:0x586,_0x26812b:0x523,_0x4f1cc5:0x255,_0xfa71f0:0x1d9,_0x17657c:0x19d,_0x338238:0x220,_0x57b136:0x685,_0x4c27ae:0x70d,_0x139f10:0x563,_0x5b0e01:0x572,_0x239fe7:0x4c1,_0x35d72e:0xc1,_0x1f48af:0x117,_0x3c93b8:0x5f,_0x2bc135:0x8c,_0x29567c:0x51,_0x373339:0xf3,_0x2e722f:0x5fc,_0x91bd21:0x589,_0x352038:0x4bd,_0x4bbda3:0x622,_0x30dabe:0x66b,_0x13c003:0x539,_0x1b5810:0xb4,_0x573c68:0x20b,_0x4bb994:0x1d9,_0x4d6e9f:0x1df,_0x256209:0x17b,_0x221d84:0x10,_0x28ebb2:0x13e,_0x522ed3:0x32,_0x3f385d:0x92,_0x41281d:0x194,_0x566cdb:0xb5,_0x194c34:0x6a,_0x1f87f9:0x3e,_0x258312:0x565,_0x49be3d:0x566,_0x597b22:0x72,_0x41a2da:0xe8,_0x3b1b58:0x43,_0x448d3e:0x57,_0x7c8668:0x580,_0x4dfb9b:0x5be,_0x487697:0x46d,_0x50f257:0x11a,_0x855faf:0x26,_0x4f72d9:0x69d,_0x346992:0x5af,_0x4a7a2c:0x501,_0x2be5dc:0x528,_0x1a8886:0x65a,_0xe76b62:0x535,_0x1595a9:0x562,_0x5d0176:0x58c,_0x290c20:0x599,_0x23b6f5:0x79,_0x51a91a:0x9a,_0x21436d:0x8,_0xa025:0x61b,_0x309bd8:0xba,_0x184a53:0x54,_0x549884:0x13,_0x3a508d:0x1c6,_0xb6623b:0x4bb,_0x228b60:0x57,_0x198de9:0x8d,_0x18adf8:0x4a8,_0x13b8c8:0x582,_0x1e3183:0x74,_0x2b3323:0x16b,_0x22a32c:0x66f,_0x1ff1e6:0x709,_0x48a7ec:0x197,_0x33e255:0xff,_0x3f6c81:0xb3,_0x14e92a:0xd6,_0x226d2e:0x9d,_0x499ddf:0x142,_0x47f053:0x16b,_0x4c28bc:0x4c7,_0x340175:0x522,_0x19a6c7:0x617,_0x324d14:0x4ea,_0x37c00d:0x10f,_0x185aaf:0x29,_0x187f86:0x4f5,_0x3e9770:0x62a,_0x186835:0x592,_0x54b8de:0x6ea,_0x3e5b23:0x6b3,_0x4b64dc:0x2a7,_0x55a355:0x151,_0x4c5e1a:0x117,_0x1b0bfa:0x1f9,_0x304a41:0x116,_0x23769a:0x1b2,_0x2f1a7e:0x5de,_0x4c5a7f:0x56b,_0x166927:0x258,_0x2f7d9f:0x4fe,_0x463baa:0x5e2},_0x3a51c3={_0x19b6ae:0x9c},_0xefef00={_0x3f18c9:0x34f,_0x2d26d3:0x1f4},_0x8b5d15=_0x1e6e1b[_0x27043d(_0x2c81e8._0x473582,0x57e,0x4a5,_0x2c81e8._0x3fccd5)]('\x0a'),_0x4a5299=_0x8b5d15['find'](_0x469c06=>_0x469c06[_0x27043d(0x4d7,0x58e,0x561,0x65a)](_0x27043d(0x4d2,0x572,0x649,0x4ec)))?.[_0x36930a(0x182,0x132,_0x2c81e8._0x19594e,0x143)](0x6)['trim'](),_0x510bbb=_0x8b5d15['filter'](_0x31c12c=>_0x31c12c[_0x36930a(0x18,0xc6,0xb3,0xf3)](_0x27043d(0x4ed,0x5b3,0x53c,0x5b9)))[_0x36930a(-_0x2c81e8._0x16497f,0xba,0x8f,_0x2c81e8._0x4217ba)](_0x4203a=>_0x4203a[_0x27043d(0x559,0x5fa,0x532,0x5ee)](0x5)[_0x27043d(0x5cc,0x60d,0x627,0x687)]())[_0x36930a(_0x2c81e8._0x54e3ec,_0x2c81e8._0x4e70a6,_0x2c81e8._0x4d3dd8,_0x2c81e8._0x567309)]('\x0a')[_0x36930a(-0x3f,_0x2c81e8._0x4e1269,0x56,-0x21)]();function _0x27043d(_0x11660d,_0x730080,_0x12993c,_0x310988){return _0x495204(_0x11660d,_0x730080-_0xefef00._0x3f18c9,_0x12993c-0xbd,_0x310988-_0xefef00._0x2d26d3);}function _0x36930a(_0x386b89,_0x3d8e84,_0xeb011d,_0x24b8b8){return _0xd0b0c8(_0x386b89-_0x3a51c3._0x19b6ae,_0x3d8e84- -0x497,_0x386b89,_0x24b8b8-0xe);}if(_0x510bbb['length']===0x0||_0x510bbb==='[DONE]')return[];const _0x20c062=JSON[_0x27043d(0x6bb,0x6a6,0x720,0x6d6)](_0x510bbb);switch(_0x4a5299){case'message_start':{const _0x58ca72=_0x20c062[_0x36930a(0x31e,0x22d,_0x2c81e8._0x2d984f,_0x2c81e8._0x1a4a3d)];this['messageId']=_0x58ca72?.['id']??this['messageId'],this[_0x27043d(0x735,_0x2c81e8._0x59eac3,_0x2c81e8._0x19aff2,_0x2c81e8._0x99e188)]=_0x58ca72?.[_0x36930a(_0x2c81e8._0x59727f,_0x2c81e8._0x1c69a8,_0x2c81e8._0x293761,0x261)]?.['input_tokens']??this[_0x27043d(0x698,_0x2c81e8._0x31effb,_0x2c81e8._0x23f42c,0x686)],this['cacheReadInputTokens']=_0x58ca72?.[_0x27043d(_0x2c81e8._0x8bdb5f,0x65f,_0x2c81e8._0x12297e,0x5bc)]?.[_0x36930a(_0x2c81e8._0x4e9ad0,0x18f,0x22c,_0x2c81e8._0x4192bc)]??this[_0x27043d(0x5be,0x5ba,_0x2c81e8._0x822e46,0x645)],this[_0x27043d(_0x2c81e8._0x398801,_0x2c81e8._0x42dadd,_0x2c81e8._0x2a02dd,0x5bc)]=_0x58ca72?.[_0x36930a(_0x2c81e8._0x506a34,_0x2c81e8._0x38f23e,_0x2c81e8._0x436159,_0x2c81e8._0x18c8d5)]?.[_0x27043d(_0x2c81e8._0x4f88c8,_0x2c81e8._0x538740,_0x2c81e8._0x9e214d,0x558)]??this[_0x36930a(0x94,0x6b,-0x79,_0x2c81e8._0x3b0048)];break;}case _0x36930a(-0x4b,0x5b,0x120,_0x2c81e8._0x16d713):{const _0x5ac94d=typeof _0x20c062[_0x27043d(_0x2c81e8._0x393338,0x554,0x552,0x5d4)]===_0x36930a(_0x2c81e8._0x168589,_0x2c81e8._0xd89c95,_0x2c81e8._0x4d2f5e,0x107)?_0x20c062[_0x27043d(_0x2c81e8._0x405fe9,0x554,_0x2c81e8._0x898b6d,_0x2c81e8._0x4a0d43)]:0x0,_0x3c40cd=_0x20c062[_0x27043d(_0x2c81e8._0x74be79,0x59a,_0x2c81e8._0x5a04b9,_0x2c81e8._0x59a2d3)];if(_0x3c40cd?.[_0x27043d(_0x2c81e8._0x4d15cb,_0x2c81e8._0x5b9ea,_0x2c81e8._0x6ed318,0x635)]===_0x27043d(0x639,_0x2c81e8._0x534c72,0x6c5,_0x2c81e8._0x46ec7d)&&_0x3c40cd['id']&&_0x3c40cd['name'])return this[_0x27043d(_0x2c81e8._0x1368f6,_0x2c81e8._0x5e5f32,_0x2c81e8._0x5a04b9,_0x2c81e8._0x49eb4)]['set'](_0x5ac94d,{'id':_0x3c40cd['id'],'index':_0x5ac94d,'inputJson':JSON[_0x27043d(_0x2c81e8._0x186a5d,0x5e9,0x69e,_0x2c81e8._0x18d2ec)](_0x3c40cd['input']??{}),'kind':'tool_use','name':_0x3c40cd['name']}),[{'type':_0x27043d(0x591,0x52e,_0x2c81e8._0x558c41,0x4bc),'id':_0x3c40cd['id'],'index':_0x5ac94d,'name':_0x3c40cd['name']}];if(_0x3c40cd?.[_0x27043d(0x5b8,0x5af,0x664,0x59c)]===_0x36930a(0xe3,0x9a,0x81,0x142)){this[_0x36930a(0xd0,_0x2c81e8._0x1a8ae2,_0x2c81e8._0x5f2f24,_0x2c81e8._0x7fda6f)][_0x36930a(_0x2c81e8._0x1a04a0,0x19d,_0x2c81e8._0x3a4433,_0x2c81e8._0x4f14b4)](_0x5ac94d,{'index':_0x5ac94d,'kind':_0x36930a(0x7,0x9a,0x138,_0x2c81e8._0x3c6ef8),'signature':typeof _0x3c40cd['signature']===_0x36930a(-0x3c,_0x2c81e8._0x7b7526,-0x49,_0x2c81e8._0x7fb2c5)?_0x3c40cd[_0x36930a(0x6d,0x57,-_0x2c81e8._0x42ca00,_0x2c81e8._0x8808af)]:'','thinking':typeof _0x3c40cd['text']===_0x27043d(0x5e9,0x56d,_0x2c81e8._0x3802a8,0x57e)?_0x3c40cd[_0x36930a(_0x2c81e8._0x190ff5,_0x2c81e8._0x3321a7,_0x2c81e8._0x497fa4,0x264)]:typeof _0x3c40cd[_0x36930a(-_0x2c81e8._0x2f60a6,0x9a,0x12f,0x124)]===_0x27043d(_0x2c81e8._0x1fd5c5,_0x2c81e8._0x4474c1,0x5f7,0x64d)?String(_0x3c40cd[_0x36930a(0x15a,0x9a,-_0x2c81e8._0x247a5d,_0x2c81e8._0x4f25f3)]):''});break;}if(_0x3c40cd?.['type']===_0x27043d(_0x2c81e8._0x50a869,_0x2c81e8._0x36e2db,0x739,0x765)){this[_0x36930a(0x122,_0x2c81e8._0x270eb1,0x1f2,0xef)][_0x27043d(0x5e9,0x665,0x589,0x624)](_0x5ac94d,{'index':_0x5ac94d,'kind':_0x36930a(_0x2c81e8._0x3c0cfe,0x1af,0x103,0x213),'data':typeof _0x3c40cd[_0x27043d(0x5dd,_0x2c81e8._0x2d5e33,_0x2c81e8._0x4951b9,0x73a)]===_0x27043d(_0x2c81e8._0x1f6e99,_0x2c81e8._0x4474c1,_0x2c81e8._0x566ee6,_0x2c81e8._0x26812b)?String(_0x3c40cd[_0x36930a(0x240,0x1ee,0x1f9,0x284)]):''});break;}this[_0x36930a(0x75,_0x2c81e8._0x1a8ae2,0x23b,_0x2c81e8._0x4f1cc5)][_0x36930a(_0x2c81e8._0xfa71f0,_0x2c81e8._0x17657c,_0x2c81e8._0x338238,0x1bd)](_0x5ac94d,{'index':_0x5ac94d,'kind':_0x27043d(0x6c0,_0x2c81e8._0x57b136,_0x2c81e8._0x4c27ae,0x735),'text':_0x3c40cd?.[_0x36930a(0x1b7,0x1bd,0x1c4,0x13e)]??''});break;}case _0x27043d(_0x2c81e8._0x139f10,_0x2c81e8._0x4d15cb,_0x2c81e8._0x5b0e01,0x4e7):{const _0x239b4a=typeof _0x20c062[_0x27043d(0x574,0x554,_0x2c81e8._0x239fe7,_0x2c81e8._0x186a5d)]===_0x36930a(_0x2c81e8._0x35d72e,_0x2c81e8._0x1f48af,0x19d,0x53)?_0x20c062[_0x36930a(-_0x2c81e8._0x3c93b8,_0x2c81e8._0x2bc135,-0x12,_0x2c81e8._0x29567c)]:0x0,_0x1a6052=this[_0x36930a(0x193,0x169,_0x2c81e8._0x373339,0x15e)][_0x27043d(_0x2c81e8._0x2e722f,_0x2c81e8._0x91bd21,_0x2c81e8._0x352038,0x505)](_0x239b4a),_0x70ccfa=_0x20c062[_0x27043d(0x65d,_0x2c81e8._0x4bbda3,_0x2c81e8._0x30dabe,_0x2c81e8._0x13c003)];if(!_0x1a6052||!_0x70ccfa?.[_0x36930a(_0x2c81e8._0x1b5810,0xe7,0x10b,0x180)])break;if(_0x70ccfa['type']===_0x36930a(_0x2c81e8._0x573c68,_0x2c81e8._0x4bb994,_0x2c81e8._0x4d6e9f,_0x2c81e8._0x256209)&&_0x1a6052[_0x36930a(_0x2c81e8._0x221d84,0x7d,_0x2c81e8._0x28ebb2,-_0x2c81e8._0x522ed3)]===_0x27043d(0x772,_0x2c81e8._0x57b136,0x698,0x6bf)&&typeof _0x70ccfa['text']===_0x36930a(_0x2c81e8._0x3f385d,0xa5,0x19,0xb))return _0x1a6052[_0x27043d(0x6d0,0x685,0x769,0x64b)]+=_0x70ccfa['text'],[{'type':'content_delta','index':_0x239b4a,'text':_0x70ccfa['text']}];if(_0x70ccfa['type']===_0x36930a(_0x2c81e8._0x41281d,_0x2c81e8._0x566cdb,_0x2c81e8._0x194c34,-_0x2c81e8._0x1f87f9)&&_0x1a6052[_0x27043d(_0x2c81e8._0x258312,0x545,0x4f2,_0x2c81e8._0x49be3d)]==='tool_use'&&typeof _0x70ccfa[_0x36930a(_0x2c81e8._0x597b22,0x113,_0x2c81e8._0x41a2da,0x1c4)]===_0x36930a(_0x2c81e8._0x3b1b58,0xa5,_0x2c81e8._0x448d3e,0x18a))return _0x1a6052['inputJson']==='{}'&&(_0x1a6052[_0x27043d(_0x2c81e8._0x7c8668,0x53a,_0x2c81e8._0x4dfb9b,_0x2c81e8._0x487697)]=''),_0x1a6052[_0x36930a(0xfc,_0x2c81e8._0x597b22,_0x2c81e8._0x50f257,-_0x2c81e8._0x855faf)]+=_0x70ccfa[_0x36930a(_0x2c81e8._0x41281d,0x113,0x124,0x1ee)],[{'type':'tool_use_delta','id':_0x1a6052['id'],'index':_0x239b4a,'inputDelta':_0x70ccfa[_0x27043d(0x596,0x5db,_0x2c81e8._0x4f72d9,0x4fd)]}];if(_0x70ccfa[_0x27043d(0x564,_0x2c81e8._0x346992,_0x2c81e8._0x4a7a2c,_0x2c81e8._0x2be5dc)]===_0x27043d(0x562,_0x2c81e8._0x4a0d43,_0x2c81e8._0x1a8886,0x514)&&_0x1a6052[_0x27043d(_0x2c81e8._0xe76b62,0x545,0x58a,0x451)]===_0x27043d(0x54d,_0x2c81e8._0x1595a9,_0x2c81e8._0x5d0176,_0x2c81e8._0x290c20)){const _0x119d52=typeof _0x70ccfa['thinking']==='string'?String(_0x70ccfa['thinking']):'';if(_0x119d52[_0x36930a(0x1d7,0xee,0xa2,_0x2c81e8._0x23b6f5)]>0x0){_0x1a6052[_0x36930a(0x122,_0x2c81e8._0x51a91a,-_0x2c81e8._0x21436d,-0x1)]+=_0x119d52;if(isUserVisibleThinking(this[_0x27043d(_0x2c81e8._0xa025,0x5ac,0x4c0,0x5dd)]))return[{'type':'anthropic_thinking_delta','index':_0x239b4a,'thinking':_0x119d52}];}}if(_0x70ccfa[_0x36930a(_0x2c81e8._0x597b22,0xe7,_0x2c81e8._0x309bd8,_0x2c81e8._0x184a53)]===_0x36930a(-_0x2c81e8._0x549884,0xd7,_0x2c81e8._0x3a508d,0x8)&&_0x1a6052[_0x27043d(0x519,0x545,0x557,0x47a)]==='thinking'){const _0x1c7396=typeof _0x70ccfa[_0x27043d(0x54a,0x51f,0x46c,0x60b)]===_0x27043d(_0x2c81e8._0xb6623b,0x56d,0x590,0x599)?String(_0x70ccfa[_0x36930a(0x6b,_0x2c81e8._0x228b60,-0x1e,_0x2c81e8._0x198de9)]):'';if(_0x1c7396['length']>0x0){_0x1a6052[_0x27043d(0x58c,0x51f,_0x2c81e8._0x18adf8,_0x2c81e8._0x13b8c8)]=_0x1c7396;if(isUserVisibleThinking(this[_0x36930a(_0x2c81e8._0x1e3183,0xe4,0x1d4,0x4e)]))return[{'type':_0x36930a(_0x2c81e8._0x2b3323,0xbd,0x1a0,0x165),'index':_0x239b4a,'signature':_0x1c7396}];}}break;}case _0x27043d(0x5b6,_0x2c81e8._0x22a32c,_0x2c81e8._0x1a8886,_0x2c81e8._0x1ff1e6):{const _0x23de7e=_0x20c062['delta'],_0x4d0028=_0x20c062[_0x36930a(0x286,_0x2c81e8._0x48a7ec,_0x2c81e8._0x33e255,0x15b)];this['inputTokens']=_0x4d0028?.[_0x36930a(0xdc,_0x2c81e8._0x3f6c81,_0x2c81e8._0x14e92a,_0x2c81e8._0x226d2e)]??this[_0x36930a(_0x2c81e8._0x499ddf,0x1ab,0x1a1,_0x2c81e8._0x47f053)],this[_0x27043d(0x5cc,0x5ba,0x55a,_0x2c81e8._0x4c28bc)]=_0x4d0028?.['cache_read_input_tokens']??this[_0x27043d(_0x2c81e8._0x340175,0x5ba,_0x2c81e8._0x19a6c7,_0x2c81e8._0x324d14)],this['cacheCreationInputTokens']=_0x4d0028?.[_0x36930a(0x133,_0x2c81e8._0x37c00d,_0x2c81e8._0x185aaf,0x114)]??this[_0x27043d(_0x2c81e8._0x187f86,0x533,0x5b3,0x570)],this['outputTokens']=_0x4d0028?.[_0x27043d(0x683,_0x2c81e8._0x3e9770,_0x2c81e8._0x186835,0x6fc)]??this['outputTokens'],this[_0x36930a(0x6,0x64,0x158,0xf6)]=_0x23de7e?.[_0x36930a(0x274,0x1a8,0x224,0x1df)]===_0x27043d(0x725,_0x2c81e8._0x54b8de,0x7a0,_0x2c81e8._0x3e5b23)?'tool_use':_0x36930a(_0x2c81e8._0x4b64dc,0x1e3,_0x2c81e8._0x55a355,_0x2c81e8._0x4c5e1a);break;}case _0x36930a(_0x2c81e8._0x1b0bfa,_0x2c81e8._0x304a41,_0x2c81e8._0x23769a,0x30):{const _0x2f0ea0=_0x20c062[_0x27043d(0x6c7,_0x2c81e8._0x2f1a7e,_0x2c81e8._0x4c5a7f,0x58a)];throw new ProviderStreamEventError(_0x2f0ea0?.[_0x36930a(0x254,0x22d,0x1c0,_0x2c81e8._0x166927)]??'Anthropic\x20stream\x20failed',{'code':_0x2f0ea0?.[_0x27043d(0x5ce,_0x2c81e8._0x346992,_0x2c81e8._0x2f7d9f,_0x2c81e8._0x463baa)],'retryable':!![]});}}return[];}[_0xd0b0c8(0x540,0x58c,0x5e5,0x4aa)](){const _0x22b2fa={_0x2ac93c:0x259,_0x21a5b3:0x334,_0x2c0eca:0x2a0,_0x4c88fa:0x1b8,_0x109705:0x1ad,_0x43f939:0x1db,_0x15b2a1:0x13a,_0x4426ab:0x11f,_0x1f9918:0xb7,_0x162a2f:0x138,_0x41753c:0x1b0,_0x3f3251:0x13f,_0xab33b2:0x21d,_0x48d4d8:0xc3,_0x246dcd:0x1d2,_0x224ea8:0x91,_0x1fb03b:0x217,_0x212812:0x1d6,_0x7fa0a:0x143,_0x46b650:0x25,_0xad8a55:0x50,_0x57dc14:0x14d,_0x345f89:0x10c,_0x557b57:0x106,_0x37933d:0x3f,_0x9261fb:0x39,_0x1317b8:0xf2,_0x4e9d4f:0x1bf,_0x80cd89:0x9c,_0x496690:0x108,_0x3752bb:0x280,_0x5057e4:0x1ec,_0x3d4045:0x6a,_0x2dba11:0xec,_0x10c3b4:0x125,_0x5d04d3:0xe4,_0x3258d4:0x22c,_0xa3ead9:0x246,_0x255fc4:0x37b,_0x5eecc3:0x295,_0x1dab41:0x2a,_0x1f61c8:0x22,_0x15f3c5:0x3a,_0x2fad8e:0x30a,_0x1e0eb4:0x285,_0x20a3f6:0x22a,_0xb65c88:0x170,_0x5d4ac5:0x271,_0x29022a:0x1b3,_0x1a4fda:0xd6,_0x47683a:0x1a6,_0xcae164:0xf5},_0x58d431={_0x1d6dad:0xe0},_0xbe269c={_0x25d28b:0x107},_0x7daf32=Array[_0x429ca6(_0x22b2fa._0x2ac93c,_0x22b2fa._0x21a5b3,_0x22b2fa._0x2c0eca,_0x22b2fa._0x4c88fa)](this[_0x429ca6(_0x22b2fa._0x109705,0x151,_0x22b2fa._0x43f939,_0x22b2fa._0x15b2a1)]['values']())[_0x429ca6(0x20c,0x106,_0x22b2fa._0x4426ab,0x1d4)]((_0x285c9b,_0x2edfe8)=>_0x285c9b[_0x429ca6(0xaa,0x18d,0xfe,0x4e)]-_0x2edfe8[_0x2e78e1(0x45,0xe4,0xd1,0x198)]),_0x10268f=[];for(const _0x5a2c63 of _0x7daf32){if(_0x5a2c63[_0x429ca6(0x1bc,_0x22b2fa._0x1f9918,0xef,_0x22b2fa._0x162a2f)]===_0x2e78e1(0x204,0x215,_0x22b2fa._0x41753c,0x1ea)){_0x5a2c63[_0x2e78e1(_0x22b2fa._0x3f3251,0x215,_0x22b2fa._0xab33b2,0x269)][_0x429ca6(_0x22b2fa._0x48d4d8,_0x22b2fa._0x246dcd,0x160,0x1c8)]>0x0&&_0x10268f[_0x2e78e1(0x10,0xec,_0x22b2fa._0x224ea8,0x132)]({'type':_0x2e78e1(_0x22b2fa._0x1fb03b,0x215,_0x22b2fa._0x212812,0x2e2),'text':_0x5a2c63['text']});continue;}if(_0x5a2c63[_0x2e78e1(0xf,0xd5,_0x22b2fa._0x7fa0a,_0x22b2fa._0x46b650)]===_0x429ca6(_0x22b2fa._0xad8a55,_0x22b2fa._0x57dc14,_0x22b2fa._0x345f89,0x154)){_0x10268f[_0x429ca6(0x5a,0x129,_0x22b2fa._0x557b57,_0x22b2fa._0x37933d)]({'type':'thinking','thinking':_0x5a2c63[_0x2e78e1(_0x22b2fa._0x9261fb,_0x22b2fa._0x1317b8,0x142,_0x22b2fa._0x4e9d4f)],'signature':_0x5a2c63['signature']});continue;}if(_0x5a2c63[_0x429ca6(_0x22b2fa._0x80cd89,0x153,0xef,_0x22b2fa._0x496690)]===_0x429ca6(_0x22b2fa._0x3752bb,_0x22b2fa._0x5057e4,0x221,0x301)){_0x10268f[_0x2e78e1(_0x22b2fa._0x3d4045,_0x22b2fa._0x2dba11,_0x22b2fa._0x10c3b4,_0x22b2fa._0x5d04d3)]({'type':'redacted_thinking','data':_0x5a2c63[_0x2e78e1(_0x22b2fa._0x3258d4,_0x22b2fa._0xa3ead9,0x2b0,0x265)]});continue;}_0x10268f[_0x429ca6(0xb7,0xb7,_0x22b2fa._0x557b57,0x149)]({'type':_0x429ca6(_0x22b2fa._0x255fc4,0x36d,0x294,0x22d),'id':_0x5a2c63['id'],'name':_0x5a2c63[_0x2e78e1(0x1de,0x254,_0x22b2fa._0x5eecc3,0x267)],'input':parseToolInput(_0x5a2c63[_0x429ca6(_0x22b2fa._0x1dab41,_0x22b2fa._0x1f61c8,_0x22b2fa._0x5d04d3,_0x22b2fa._0x15f3c5)]['length']>0x0?_0x5a2c63['inputJson']:'{}')});}function _0x429ca6(_0x3439dd,_0x286bce,_0x4d2155,_0xe637ab){return _0x495204(_0x3439dd,_0x4d2155- -_0xbe269c._0x25d28b,_0x4d2155-0xff,_0xe637ab-0xf2);}function _0x2e78e1(_0x36c325,_0x2f1ada,_0xd7aa81,_0x5ab89b){return _0x495204(_0x5ab89b,_0x2f1ada- -0x121,_0xd7aa81-0xc3,_0x5ab89b-_0x58d431._0x1d6dad);}return parseAnthropicResponse({'id':this['messageId'],'type':_0x2e78e1(_0x22b2fa._0x2fad8e,_0x22b2fa._0x1e0eb4,_0x22b2fa._0x20a3f6,0x204),'role':_0x429ca6(0x1ac,_0x22b2fa._0xb65c88,0x1e9,_0x22b2fa._0x5d4ac5),'content':_0x10268f,'stop_reason':this[_0x429ca6(0x11f,_0x22b2fa._0x29022a,_0x22b2fa._0x1a4fda,0x5b)],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x2e78e1(_0x22b2fa._0x47683a,0x13b,0x120,0x73)],'cache_read_input_tokens':this['cacheReadInputTokens'],'cache_creation_input_tokens':this['cacheCreationInputTokens']}},this[_0x2e78e1(0x16d,0x13c,_0x22b2fa._0xcae164,0x145)]);}};function createAnthropicSurfaces(){const _0x4fe467={_0x5a21bd:0x97,_0x56ca8b:0x8,_0x1cc231:0x618,_0x28bb46:0x6b0},_0x21aff1={_0x30c90d:0x2f3,_0x389e8f:0x1b4},_0x397473={_0x2db85b:0x23c};function _0x5f2daa(_0x253a85,_0x183496,_0x240b03,_0x52d32e){return _0x495204(_0x52d32e,_0x253a85- -_0x397473._0x2db85b,_0x240b03-0xba,_0x52d32e-0x183);}function _0x38618e(_0x169d8a,_0x5a5684,_0x5a3194,_0x4b2542){return _0x495204(_0x5a3194,_0x169d8a-_0x21aff1._0x30c90d,_0x5a3194-0xed,_0x4b2542-_0x21aff1._0x389e8f);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x5f2daa(-0x40,-_0x4fe467._0x5a21bd,0x4a,_0x4fe467._0x56ca8b),'createRequest'(_0x28f778){return createAnthropicRequest(_0x28f778,![]);},'parseResponse'(_0x4ff19a,_0x38efba){return parseAnthropicResponse(_0x4ff19a,_0x38efba);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':_0x38618e(_0x4fe467._0x1cc231,_0x4fe467._0x28bb46,0x62a,0x5dc),'createRequest'(_0x1d74a4){return createAnthropicRequest(_0x1d74a4,!![]);},'createStreamParser'(_0x324114){return new AnthropicMessagesStreamParser(_0x324114);}}];}var StaticModelSurfaceRouter=class{[_0x495204(0x1a2,0x28b,0x251,0x324)];[_0x495204(0x2a2,0x35a,0x296,0x39d)];constructor(_0x9f26e8){const _0x422737={_0x5282c7:0x46,_0x55c734:0x158,_0x37a4fb:0x40},_0x28ddd1={_0x2a3396:0x9b},_0x5d7415={_0x331172:0x162,_0x218fdf:0xc3};function _0x137d51(_0x304f51,_0x5c83bc,_0x11612a,_0x16bfc9){return _0x495204(_0x5c83bc,_0x304f51- -_0x5d7415._0x331172,_0x11612a-0x1c9,_0x16bfc9-_0x5d7415._0x218fdf);}function _0x29019a(_0x32c2cd,_0x2644e6,_0x6fb760,_0x37550e){return _0xd0b0c8(_0x32c2cd-0x52,_0x2644e6- -0x599,_0x6fb760,_0x37550e-_0x28ddd1._0x2a3396);}this['completeSurface']=_0x9f26e8[_0x29019a(-0x124,-_0x422737._0x5282c7,-0xd3,0x39)],this['streamSurface']=_0x9f26e8[_0x29019a(-0xde,-0xa6,-_0x422737._0x55c734,-_0x422737._0x37a4fb)];}[_0x495204(0x2ff,0x34a,0x35b,0x2cd)](_0x17944e,_0x3a32a4){const _0x329c5b={_0x2ce080:0x462,_0x44bec4:0x3d3,_0x33174e:0x424,_0x492c01:0x558,_0x55ab06:0x5ae},_0x77ec19={_0x229728:0x70},_0x2072d6={_0x534db5:0x13f,_0x3ad435:0x5};function _0x2f869f(_0xec66d9,_0x21d776,_0x1dfbfb,_0x25a330){return _0xd0b0c8(_0xec66d9-_0x2072d6._0x534db5,_0xec66d9-_0x2072d6._0x3ad435,_0x21d776,_0x25a330-0xb7);}function _0x2c8616(_0xd4b548,_0x5765ed,_0x6ae70c,_0x5dcab4){return _0x495204(_0xd4b548,_0x5765ed-0x1fe,_0x6ae70c-0x1e,_0x5dcab4-_0x77ec19._0x229728);}return _0x3a32a4['mode']===_0x2c8616(_0x329c5b._0x2ce080,_0x329c5b._0x44bec4,0x429,_0x329c5b._0x33174e)?this[_0x2c8616(0x61f,_0x329c5b._0x492c01,0x5a2,0x4cc)]:this[_0x2f869f(_0x329c5b._0x55ab06,0x505,0x516,0x620)];}};function trimTrailingSlashes(_0x55ebd8){return _0x55ebd8['replace'](/\/+$/,'');}function resolveApiCredential(_0x35e3d5,_0x3f40da){const _0x4f6bc8={_0x58497d:0xfc,_0x3bf904:0x11f,_0x3bd4a0:0x96,_0x57996d:0x110,_0x5b817e:0x513,_0xed7a27:0x4dd,_0x19dd27:0x4da,_0x1fc6ad:0x37d,_0x4afafa:0x3d7},_0xceb7de={_0x31f635:0x77,_0x5db398:0x17f};if(_0x3f40da?.[_0x48442a(_0x4f6bc8._0x58497d,_0x4f6bc8._0x3bf904,_0x4f6bc8._0x3bd4a0,_0x4f6bc8._0x57996d)])return _0x3f40da[_0x2f705e(_0x4f6bc8._0x5b817e,_0x4f6bc8._0xed7a27,0x414,_0x4f6bc8._0x19dd27)];if(!_0x35e3d5)return void 0x0;function _0x48442a(_0x9c4eb7,_0x137db8,_0x240cfc,_0x58ea48){return _0x495204(_0x9c4eb7,_0x58ea48- -0x22e,_0x240cfc-0x137,_0x58ea48-0x24);}function _0x2f705e(_0x56d919,_0x4a94dd,_0x445cd3,_0x5ded6f){return _0xd0b0c8(_0x56d919-_0xceb7de._0x31f635,_0x4a94dd- -_0xceb7de._0x5db398,_0x445cd3,_0x5ded6f-0x1c6);}return{'kind':_0x2f705e(0x451,_0x4f6bc8._0x1fc6ad,0x2a7,_0x4f6bc8._0x4afafa),'value':_0x35e3d5};}function resolveSessionBaseUrl(_0x218a09,_0x56da6b){const _0x595226={_0x54804c:0x127,_0x387867:0x8c,_0x2832bd:0x72},_0x5adad5={_0x2aae13:0x10a,_0x312480:0x777,_0x3ba659:0x15d};function _0x5548f0(_0x3f0b46,_0x2095b2,_0x32665b,_0x3ff5a8){return _0x495204(_0x32665b,_0x3ff5a8- -0x267,_0x32665b-0x13e,_0x3ff5a8-0xed);}function _0x497065(_0x791ba6,_0x174d50,_0x2f6068,_0x2e1c43){return _0xd0b0c8(_0x791ba6-_0x5adad5._0x2aae13,_0x791ba6- -_0x5adad5._0x312480,_0x2e1c43,_0x2e1c43-_0x5adad5._0x3ba659);}return trimTrailingSlashes(_0x56da6b?.[_0x5548f0(-_0x595226._0x54804c,0x15,-_0x595226._0x387867,-_0x595226._0x2832bd)]?.[_0x5548f0(-0x59,0x94,-0xb6,-0x14)]??_0x218a09);}function toErrorMessage(_0x2be1d5){const _0x265846={_0x55f478:0x1ff,_0x2542fc:0x1a5,_0xeac968:0xc0,_0xc2353f:0xcf,_0x49a00c:0x46,_0x49f480:0x14c,_0x827a1c:0x36a},_0x4d248e={_0x39a778:0x80},_0xf4866d={_0x2a1d7d:0x1a7,_0x24164d:0x182};function _0x4196ef(_0x28fc59,_0x260c3e,_0x45bc9e,_0x582dee){return _0x495204(_0x45bc9e,_0x28fc59- -_0xf4866d._0x2a1d7d,_0x45bc9e-_0xf4866d._0x24164d,_0x582dee-0x11f);}function _0x2ca78f(_0x2d7fe9,_0x2f344a,_0x1b5c1c,_0x1ef753){return _0x495204(_0x1b5c1c,_0x2f344a-_0x4d248e._0x39a778,_0x1b5c1c-0x151,_0x1ef753-0x11b);}if(_0x2be1d5 instanceof Error&&_0x2be1d5[_0x4196ef(_0x265846._0x55f478,_0x265846._0x2542fc,0x18e,0x158)][_0x4196ef(_0x265846._0xeac968,_0x265846._0xc2353f,_0x265846._0x49a00c,_0x265846._0x49f480)]>0x0)return _0x2be1d5[_0x2ca78f(0x3d9,0x426,_0x265846._0x827a1c,0x3ff)];return _0x2ca78f(0x36f,0x32f,0x2d4,0x292);}function createDefaultWebSocketFactory(){const _0x22f05d={_0xe291f5:0x558,_0x42d3b6:0x699};return({headers:_0x20826a,url:_0x476566})=>{const _0x4727af=globalThis[_0x68f6e0(_0x22f05d._0xe291f5,_0x22f05d._0x42d3b6,0x660,0x5cf)];function _0x68f6e0(_0x502a74,_0x3e323a,_0x3ee125,_0x3a8e72){return _0x5dc3(_0x3a8e72-0x359,_0x3ee125);}return new _0x4727af(_0x476566,{'headers':_0x20826a,'protocols':[]});};}function _0x5dc3(_0x4a8180,_0xd2979f){_0x4a8180=_0x4a8180-0x149;const _0x275d62=_0x275d();let _0x5dc3fb=_0x275d62[_0x4a8180];if(_0x5dc3['ZGJqGU']===undefined){var _0x375e50=function(_0x59b86f){const _0x26d254='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x256238='',_0x20d5d0='';for(let _0x33de18=0x0,_0x557b65,_0x1bdb74,_0x5a1ad9=0x0;_0x1bdb74=_0x59b86f['charAt'](_0x5a1ad9++);~_0x1bdb74&&(_0x557b65=_0x33de18%0x4?_0x557b65*0x40+_0x1bdb74:_0x1bdb74,_0x33de18++%0x4)?_0x256238+=String['fromCharCode'](0xff&_0x557b65>>(-0x2*_0x33de18&0x6)):0x0){_0x1bdb74=_0x26d254['indexOf'](_0x1bdb74);}for(let _0x324279=0x0,_0x25bbd6=_0x256238['length'];_0x324279<_0x25bbd6;_0x324279++){_0x20d5d0+='%'+('00'+_0x256238['charCodeAt'](_0x324279)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20d5d0);};_0x5dc3['qwHrxj']=_0x375e50,_0x5dc3['NoSAJf']={},_0x5dc3['ZGJqGU']=!![];}const _0xddf75c=_0x275d62[0x0],_0x356f1b=_0x4a8180+_0xddf75c,_0x175afc=_0x5dc3['NoSAJf'][_0x356f1b];return!_0x175afc?(_0x5dc3fb=_0x5dc3['qwHrxj'](_0x5dc3fb),_0x5dc3['NoSAJf'][_0x356f1b]=_0x5dc3fb):_0x5dc3fb=_0x175afc,_0x5dc3fb;}async function*iterateSseEvents(_0x1d005e,_0x115f71){const _0x53205a={_0x270629:0x204,_0x1afd83:0x37f,_0x523f4d:0x2f2,_0x2d8baa:0x421,_0x27c7ea:0x296,_0x150995:0x21a,_0x268a13:0x1b1,_0x42451a:0x260,_0x410d9e:0x240,_0xf20e87:0x1e7,_0x283c44:0x168,_0x131628:0x208,_0x2148f2:0x234,_0x2e5fb8:0x2d3,_0x585837:0x2b7,_0x290073:0x152,_0x2b937d:0xd5,_0x48d3e6:0x1a3,_0x5e7ffb:0xf1},_0x5f4506={_0xe73a86:0x466,_0x42ef0a:0x32e,_0x529b8a:0x33c,_0x44e5b8:0x38a},_0x17bb9a={_0x283e64:0x4e},_0x1ea8a1={_0x3a7d9b:0x269,_0x246cef:0xa4},_0x3b5d3a={_0x29faec:0x3e2},_0x24282f={_0x293f9b:0xce,_0x1d9a2f:0x395},_0x365fbe=_0x1d005e[_0x3fe99d(0x29f,_0x53205a._0x270629,_0x53205a._0x1afd83,0x284)]?.[_0x3fe99d(0x2c0,0x290,_0x53205a._0x523f4d,0x3b3)]();function _0x58e37f(_0x219f9b,_0xbe898,_0xef17cb,_0x4c19f8){return _0xd0b0c8(_0x219f9b-_0x24282f._0x293f9b,_0x4c19f8- -_0x24282f._0x1d9a2f,_0xef17cb,_0x4c19f8-0x7e);}if(!_0x365fbe)return;function _0x3fe99d(_0x3a86f5,_0xa86112,_0x48746e,_0x305301){return _0xd0b0c8(_0x3a86f5-0x4,_0x3a86f5- -_0x3b5d3a._0x29faec,_0xa86112,_0x305301-0x10c);}const _0x547d5d=new TextDecoder(_0x58e37f(0x378,_0x53205a._0x2d8baa,_0x53205a._0x27c7ea,0x331));let _0x1c3bc1='';const _0x1bfb0c=addAbortListener(_0x115f71,()=>{function _0x1b4676(_0x973cb3,_0x5d2d1a,_0x22abd1,_0x1d368a){return _0x3fe99d(_0x973cb3-_0x1ea8a1._0x3a7d9b,_0x22abd1,_0x22abd1-0xd7,_0x1d368a-_0x1ea8a1._0x246cef);}function _0x2f9069(_0xdb8b38,_0x595c4a,_0x333678,_0x429900){return _0x3fe99d(_0x429900-0x229,_0x595c4a,_0x333678-_0x17bb9a._0x283e64,_0x429900-0x14c);}void _0x365fbe[_0x2f9069(0x3b2,0x3c4,0x526,_0x5f4506._0xe73a86)](toAbortError(_0x115f71?.['reason']))[_0x2f9069(0x46c,_0x5f4506._0x42ef0a,_0x5f4506._0x529b8a,_0x5f4506._0x44e5b8)](()=>{});});try{while(!![]){throwIfAborted(_0x115f71);const {value:_0x4c9acb,done:_0x5cd5d4}=await _0x365fbe[_0x3fe99d(_0x53205a._0x150995,0x2d4,0x194,0x2fc)]();throwIfAborted(_0x115f71);if(_0x5cd5d4)break;_0x1c3bc1+=_0x547d5d['decode'](_0x4c9acb,{'stream':!![]});while(!![]){const _0x3727fc=_0x1c3bc1[_0x58e37f(_0x53205a._0x268a13,_0x53205a._0x42451a,_0x53205a._0x410d9e,0x1fc)]('\x0a\x0a');if(_0x3727fc===-0x1)break;const _0x5ec079=_0x1c3bc1[_0x3fe99d(_0x53205a._0xf20e87,0x2c3,0x22c,_0x53205a._0x283c44)](0x0,_0x3727fc);_0x1c3bc1=_0x1c3bc1[_0x58e37f(0x2db,_0x53205a._0x131628,0x1da,_0x53205a._0x2148f2)](_0x3727fc+0x2),_0x5ec079['trim']()[_0x58e37f(_0x53205a._0x2e5fb8,0x1eb,_0x53205a._0x585837,0x1f0)]>0x0&&(yield _0x5ec079);}}_0x1c3bc1+=_0x547d5d['decode'](),throwIfAborted(_0x115f71),_0x1c3bc1[_0x3fe99d(_0x53205a._0x290073,0x1d9,_0x53205a._0x2b937d,0xb8)]()[_0x3fe99d(_0x53205a._0x48d3e6,_0x53205a._0x5e7ffb,0x25e,0x1e5)]>0x0&&(yield _0x1c3bc1);}finally{_0x1bfb0c();}}function _0x275d(){const _0x334ef1=['C3vTBwfYEv9PBMrLEa','CMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','zw50CMLLCW','y2fJAgvszwfKsw5WDxruB2TLBNm','q29TBwfUzenVzgu','B3bLBMfPlxjLC3bVBNnLCY13CW','zMLUAxnO','Ahr0Chm6lY9VCgvUCM91DgvYlMfPl2fWAs92mq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','D3nZoG','C29Tzq','Aw5KzxHpzG','yxbPs2v5','CMvXDwvZDhm','Bwf4vg9Rzw5Z','CMvHC29U','yw50AhjVCgLJrgvSzwDHDgu','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','nda2mtqWEwHQt1Py','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','yMfZzvvYBa','CM91DgvY','DxnLCG','DNnJB2rLlZeUmta2lJe','BwvZC2fNzuLK','CMvZCg9UC2vuzxH0ugfYDhm','z2XTltuUmG','zwrPDg9YugX1z2LUvMvYC2LVBG','A2v5CW','y2fJAgvK','Dg9VBenHBgXpCMrLCG','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','y2fJAgvFy3jLyxrPB25FAw5WDxrFDg9Rzw5Z','Dg9VBf91C2vFAwq','ChjVDg9JB2W','y29TCgXLDgvtDxjMywnL','CgfYDgLHBf9QC29U','B21PDhrLza','B3v0Chv0x2LUzgv4','zxjYB3i','BNvTyMvY','B2f1DgGTDg9Rzw4','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','z2v0t3bLBKfPrgvSzwDHDgu','DMfSDwu','B3bLBMfPl2DWDc00BY1TAw5P','Bw9KzwXZqMfZzvvYBa','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','y2HHDfn0CMvHBq','w0rptKvD','C3rYAw5NAwz5','DxnLC1jLC3bVBNnLC0fWAq','yw50AhjVCgLJqMfZzvvYBa','zgvLChnLzwSTDJqTChjV','C3LZDgvT','C2vZC2LVBG','ChjLDMLVDxnFCMvZCg9UC2vFBM90x2zVDw5K','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','twLUAu1HEa','uhjVDMLKzxiGCMvXDwvZDcbYzxrYEsbSB29Wigv4AxrLzcb1BMv4CgvJDgvKBhK','yxv0AfnJAgvTzq','z3b0ltu','CM9Szq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','mJy2mJa0mhrsBwzrsW','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','C2XPy2u','CgfYC2vszxnWB25Zzq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','Dg9VBhm','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','Bwv0ywrHDge','y29Kzq','C291CMnL','yNvPBgrqyxj0AwfSt3v0Chv0','C2HPzNq','ANnVBG','y3jLyxrLsgvHzgvYCW','l21VzgvSCW','C3vWCg9YDgvKx2vUzhbVAw50CW','mJyZnJa2n1LOsfPxtW','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','yxn5BMnjDgvYyxrVCG','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','DxjS','DhjPBvn0yxj0','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','Dgv4Dc9LDMvUDc1ZDhjLyw0','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','Ahr0Chm6lY90B2TLBI1WBgfUlxnNCc54AwfVBwLTAw1VlMnVBs9HBNrOCM9WAwm','y3jLyxrLu3rYzwfTugfYC2vY','qMvHCMvYia','mJaYns0Xmc0Wmq','zM9Yy2vgDwXSuMvWBgf5','CMvHC29UAw5N','yxnZAxn0yw50lq','AxrLBv9Pza','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','Bg9JA2vK','yxbWBhLnB2rLBerLzMf1BhrZ','C2HVDwXKuMv0CNLszxf1zxn0rxjYB3i','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','CMvHzhLtDgf0zq','Dg9mB3DLCKnHC2u','zgvSDge','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','yxv0BW','yMfZzty0','CMv0CNLHyMXL','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','y29TCgXLDgvwAwfsB3v0zxi','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','B3v0Chv0x3rVA2vUCW','Ec1HCgKTA2v5','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','CMvHza','B3bLBMfPlxjLC3bVBNnLCW','ywrHChrPDMu','zMLUAxnOx3jLyxnVBG','yMXVy2TZ','AgvHzgvYuMvZB2X2zxi','r0vu','ChjVDMLKzxjtDgf0zq','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxi','y3jLyxrLuMvXDwvZDa','CMvTB3zLrxzLBNrmAxn0zw5LCG','Bwf4t3v0Chv0','t3bLBKfjiefqssbLCNjVCIa','y29UC3vTzvnZzuv2zw50','o2jHC2u2ncW','CMvHC29UAw5NsxrLBxm','z2v0tw9KzwXZ','zwzMB3j0','yxnZAxn0yw50','D2fPDezVCLjLDhj5','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','nda2mdm1s3v6qwHm','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVy29KAw5Nl3bHyxmVDJq','zgvZy3jPChrPB24','AgvHzgvYCW','Ahr0Chm6lY9HCgKUz2L0AhvIlMnVBq','zgvSzxrL','C2vZC2LVBKLK','v2vIu29JA2v0','y2XHDwrLltmTns1ZB25UzxqTmJaYndeWmJi','z2L0AhvIqxbPvxjS','zMLUza','AxnbCNjHEq','B3v0Chv0rM9YBwf0','z3jVAY1IDwLSzc0WlJe','y2fUy2vS','CMvZCg9UC2vtB2nRzxrtDhjLyw0','ywjVCNrLza','zgvMyxvSDe1VzgvSCW','y29UC3vTzuv2zw50','ywrKrxzLBNrmAxn0zw5LCG','twLUAu1HEc1nmW','y2fJAgvFCMvHzf9PBNb1Df90B2TLBNm','CMvZB2X2zxi','Dg9VBfvZzvn0yxj0rw1PDhrLza','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','BgLTAxrZ','Ahr0Cf9ZDgf0Dxm','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','DxnHz2u','zMLUywXszxnWB25Zzq','C3vTBwfYAxPLza','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','yw50AhjVCgLJ','BgfZDfjLC3bVBNnLswq','C2v0','AxneB25L','B3bLBMfPx3jLyxnVBMLUzW','Dg9Wx3bYB3zPzgvY','C3rHDhvZ','Dg9bCgLfCNjVCG','B3bLBMfP','Ahr0Chm6lY9HCgKUEI5HAs9HCgKVyw50AhjVCgLJ','DMLZAwjPBgL0Eq','Ahr0Chm6lY9HCgKUBwLUAw1HEc5PBY9HBNrOCM9WAwm','BwvZC2fNzv9KzwX0yq','C3rVCf9YzwfZB24','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','z2v0u3vYzMfJzq','Aw5WDxruB2TLBNm','Ahr0Cc1ZC2u','y29UDgvUDc10ExbL','CMvZCg9UC2vtB2nRzxq','CMvKywn0zwrFDgHPBMTPBMC','z3jVAY1JB2rLlwzHC3qTmq','C3vTBwfYEv90zxH0','BwfWqxbPrxjYB3i','CMvZB2X2zq','ywnJzxnZvg9Rzw4','l3jLC3bVBNnLCW','yxv0Ag9YAxPHDgLVBG','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','DgvSzw1LDhj5','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','qMfZAa','zgvLChnLzwSTDJqTzMXHC2G','z3jVAY00lJm','Dgv4Da','A2v5','Aw50zxjSzwf2zwq','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','ChjVBxb0q2fJAgvlzxK','l2nOyxqVy29TCgXLDgLVBNm','Aw5WDxrFC2nOzw1H','ChjVBxb0q2fJAgvlzxLszxnVBhzLCG','y3jLzgvUDgLHBa','CMvZzxq','C2vUza','y29TCgXLDgvK','Bw9KzwXZ','sw52ywXPzcbYzxf1zxn0oIa','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','C3rYzwfTx2vYCM9Y','B3v0Chv0x3rLEhq','Bw9KzwW','CMvZCg9UC2vtDhjLyw0','CMvXDwvZDe11Dgf0B3jZ','C2vSzwn0u3vYzMfJzq','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','BM93','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','C2LNBMfS','zNvUy3rPB24','zNvUy3rPB25Fy2fSBa','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','Dgv4Df9KzwX0yq','C3vYzMfJzq','t3bLBKfPqxbPrxjYB3i','C2vUzfDPDgHszxrYAwvZ','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','CgfYC2u','Dgv4Dej5sw5KzxG','y2fWywjSzv9LBMrWB2LUDhm','C3rYzwfTu3vYzMfJzq','ChjVDMLKzxi','zw5Kx3r1CM4','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','Dg9VBc1JywXSlq','B3v0Chv0sw5KzxHuB0nHBgXjza','C3vWCg9YDhnnB2rLBezLDgnO','Aw5JBhvKzxm','C3rYDwn0DxjLzf9VDxrWDxq','yM9KEq','t1bftG','Bwf4x3rVA2vUCW','ssbJAgvJA2vKihrOzsbTB2nRzwqGDg9VBcbYzxn1BhqUia','zgf0yq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','zg9Uzq','Aw5WDxq','yxjNDw1LBNrZ','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','CMvHC29UAw5Nx3rLEhq','Aw5PDgLHBev2zw50','ChjVDMLKzxjbzgfWDgvY','ChjLCgfYzunOyxrszxf1zxn0','y2HHDgnTCgW','B2jQzwn0','mJrLCfDWzMO','mtq2ndC4Aurpq2H0','BMfTzq','Dg9VBa','CMvZCg9UC2vZugf0Aa','Cgf0Aa','rgvLCfnLzwS','C3rHDhvZvgv4Da','Aw52ywXPzgf0zq','Dgv4DfbHCNrZ','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','B3bLBKfPrgvSzwDHDgu','uhjVDMLKzxjtDhjLyw1fDMvUDevYCM9Y','BwvZC2fNzuLUzgv4','DgvZDa','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','z2v0uMvHzgvY','DxnLCI12AxnPyMXL','Ahr0Chm6','t3bLBKfj','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zMXHDe1HCa','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','CMvZB2X2zujHC2vvCMW','zNjVBuvUDhjPzxm','ywnJzxb0','wgLHB21P','Bwf4','mJiYodq2m0fMufrLCG','Aw1Hz2u','Bw9KzwXfBMrWB2LUDenHy2HL','AxrLBq','ue9tva','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','CMvHC29UAw5Nx3rVA2vUCW','AxngAw5PDgu','Aw1Hz2vFDxjS','zMv0y2G','Dg9VBf91C2u','ywjVCNq','C2vZC2LVBK1HBMfNzxi','CMvZCg9UC2vjza','zgLZywjSzwq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','Aw5WDxrFDgv4Da','y2HHDgnTCgWT','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','yw50AhjVCgLJx3rOAw5RAw5N','CMvWBgfJzq','BwvZC2fNzq','zNjVBq','DxrMltG','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','Ahr0Chm6lY9HCgKUEc5HAs92mq','uhjVDMLKzxjszxf1zxn0q29UC3rYDwn0Aw9UrxjYB3i','y2fSBeLKvg9pDxrWDxrjBMrLEa','B3v0Chv0sw5KzxG','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','AM9PBG','yxbWBgLJyxrPB24VANnVBG','C3vWCg9YDgvKrw5KCg9PBNrZ','Bwf5yMvfDMLJDfjLC3bVBNnLC1nVy2TLDfnLC3nPB24','y2HVAwnLCW','ogHnAhvTBG','ChjVDg9JB2XwzxjZAw9U','y29TCgXLDgvwAwftDxjMywnL','C2LNBMf0DxjL','B3v0Chv0','B3bLBMfPl2DWDc00BW','CMvMDxnHBa','y29UDgvUDf9IBg9JA19ZDgfYDa','C3rYzwfT','Bw9JAW','B3bLBG','zw5JCNLWDgvKx2nVBNrLBNq','Ahr0Chm6lY9HCgKUy29TBwfUzgnVzguUywKVChjVDMLKzxiVDJe','zw5JCNLWDgvKq29UDgvUDa','z2XTltuUmq','zgvMyxvSDe1VzgvS','C3rVCfjLyxnVBG','yxbPlwTLEq','Dg9VBf91C2vFzgvSDge','y29UDgvUDf9PBMrLEa','q2HHDeDqvcaVienVzgv4','y2fWywjPBgL0AwvZ','BgfIzwW','y2fJAgvdCMvHDgLVBKLUChv0vg9Rzw5Z','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','yw50AhjVCgLJlxzLCNnPB24','z2L0AhvI','CMvHC29UAw5Nx2rLDgfPBhm','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','CMvZCc0','Aw5WDxrkC29U','AgfZ','ywDLBNq','y2fSBf9Pza','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','D3m6','yw50AhjVCgLJlw1LC3nHz2vZ','oNjLyxnVBMLUzZOW','z3b0ltuUna','ChjVEhK','zw5KCg9PBNrZ','A2LUza','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','CMvZB2X2zunYzwrLBNrPywW','C3bSAwnL','y29UDgv4DfDPBMrVDW','Ahr0Cc1QC29U','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','ANnVBL9Zy2HLBwe','y2HHDenVBxbSzxrL','y29UC3vTzvDLyLnVy2TLDev2zw50','BxnNlq','D2vIu29JA2v0rMfJDg9YEq','Dg9tDhjPBMC','y2XHDwrLlxnVBM5LDc00','Aw5KzxG','CgvUzgLUzW','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','DNnJB2rLlZeUmta0lJi','ChjVDMLKzxjZ','Bwf4x291Dhb1Df90B2TLBNm','z2v0uMv0CNLezwXHEu1Z','C2L6zq','ChvZAa','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','y2XPrgvMyxvSDe1VzgvS','C3vTBwfYEuj5sw5KzxG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','DgHPBMTPBMC','yw50AhjVCgLJsgvHzgvYuMvZB2X2zxi','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','DhjPBq','C2vZC2LVBI10B2TLBG','C3rYzwfTvMLHu3vYzMfJzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C3rYzwfTshr0Cfn1CMzHy2u','zMv0y2HjBxbS','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','z2XTltqUnW','C3rYAw5N','zMLSDgvY','CMvZCg9UC2uUy3jLyxrL','y29TCgXLDgLVBL90B2TLBNm','z3b0ltuUmI1JB2rLEa','zxzLBNq6','zgLZCgXHEq','y2f0y2G','C29YDa','CMvHC29UAw5NugfYDhm','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','C2vUzfjHD1jLCxvLC3q','z2v0qw50AhjVCgLJrgvSzwDHDgu','Dg9VBenHBgXZ','Aw5WDxrFDg9Rzw5Z','rgLYzwn0igfUC3DLCJOG','Aw5WDxrFANnVBL9KzwX0yq','C3bSAxq','BwvZC2fNzxm','CMvZCg9UC2u','ChjLDMLVDxnszxnWB25ZzuLK','BwfW','z2XTltqUnq','y29TCgXLDgu','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','Dg9VBenHBgXZqNLjBMrLEa','zxzLBNq','y2HHDenVBxbSzxrPB25Zugf0Aa','z2v0','C2HVDwXKuMv0CNLszxnWB25Zzq','C2HVDwXKuMv0CNLtDhjLyw1bDhrLBxb0rxjYB3i','DMfSDwvZ','y29UDgvUDa','C3rHCNrZv2L0Aa','BwvKAwfFDhLWzq','DhjHBNnWB3j0x2vYCM9Y','DgHPBMTPBMDFzgvSDge','Dg9VBf9JywXSCW','u3vYzMfJzsa','CMv0CNKTywz0zxi','y29UBMvJDgLUzW','C3rYzwfTvMLHuM91DgvY','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','C3vYzMfJzxm','y29UDgvUDf9IBg9JAW','y2XVC2u','Ahr0Chm6lY9JAgf0z3b0lMnVBs9IywnRzw5KlwfWAs9JB2rLEa','mtqZntq0nhf1rNDzsa','ChjVBxb0x3rVA2vUCW','C2LNBMf0DxjLx2rLBhrH','z3b0ltqUmq','DhjHBNnWB3j0','yxbP','C3vTBwfYEq','C2nOzw1H','z3b0ltuTBwLUAq','Bwv0Ag9K','y29WAwXVDc1JAgf0lZaUmZeUmW','yMvHCMvY','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','BwLTBY12mI41lxbYBW','B3v0Chv0vg9Rzw5Z','CMvXDwvZDa','y29UDgvUDf9IBg9JA19KzwX0yq','C29JA2v0','DhLWzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','y29UDgv4Df9Szw5NDgG','Bw9KzwXjzgvUDgL0Eq','zgf0ytO','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','Aw5JBhvKzunVBNrLBNruExbL','BgvUz3rO'];_0x275d=function(){return _0x334ef1;};return _0x275d();}async function waitForWebSocketOpen(_0x599bc1,_0x236b07){const _0x4376dc={_0x352c28:0x2e5,_0x126b82:0x2ca,_0x346c4e:0x28b,_0x10ba0f:0x6,_0xac7ab:0x38,_0x29c05f:0xd4,_0x3145cc:0x1a},_0xff1d0={_0x3ef7ae:0x18d,_0x452ff1:0xda,_0x1458e5:0x57,_0x49ca65:0x1f4,_0xffcd91:0x11d,_0x5028b5:0xd8,_0xb94a5e:0x63,_0x1ee499:0x9c},_0x192239={_0x4f796d:0x556,_0x3de49f:0x5f8,_0x4ffab5:0x579,_0x2d28f0:0x67f,_0x3ca3a1:0x621,_0x2ea54a:0x59a,_0x5aadac:0x59e,_0x1b3539:0x59f,_0x110bf3:0x55c},_0x519682={_0x23775c:0x3b2,_0x339b0d:0x403,_0x299f55:0x2a1,_0x592d03:0x21f,_0x3cc47c:0x232},_0x11ea8b={_0x1ddbf6:0x188,_0x3a0fa5:0x1b8},_0x5593e9={_0x32b4bc:0x483,_0x189e01:0x50e,_0x1fe1e7:0x5b6,_0x2d29f7:0x705,_0x5191f1:0x680,_0x38e513:0x68f},_0x3195ac={_0x1e6940:0x668,_0xc03339:0x14},_0x806f01={_0x442e09:0x128};if(_0x599bc1[_0x800ff2(_0x4376dc._0x352c28,0x28d,_0x4376dc._0x126b82,_0x4376dc._0x346c4e)]===WebSocket[_0x15ce15(-_0x4376dc._0x10ba0f,_0x4376dc._0xac7ab,_0x4376dc._0x29c05f,_0x4376dc._0x3145cc)]){throwIfAborted(_0x236b07);return;}throwIfAborted(_0x236b07);function _0x800ff2(_0x3154b4,_0x1aa1dc,_0x31108d,_0x256fab){return _0x495204(_0x1aa1dc,_0x31108d- -0x7,_0x31108d-_0x806f01._0x442e09,_0x256fab-0x4e);}function _0x15ce15(_0x27688e,_0x571b15,_0x59ce73,_0x2a747a){return _0xd0b0c8(_0x27688e-0x168,_0x2a747a- -_0x3195ac._0x1e6940,_0x27688e,_0x2a747a-_0x3195ac._0xc03339);}await new Promise((_0x9dc3f9,_0x3e036b)=>{const _0x6862fd={_0x8373df:0x394},_0xfa88eb={_0x127b4b:0x10e,_0x332d04:0x3d},_0xc6149b={_0x2ce41b:0x2a6},_0x1a91b4={_0x53881c:0x73},_0x54d302={_0x50f12b:0x8a},_0x1110b5=()=>{_0x4f7ef0(),_0x9dc3f9();},_0xa77bc5=_0x17f010=>{const _0x211aa0={_0x252fbd:0x55};function _0x5e7835(_0x3e2959,_0x565ab9,_0x4ede71,_0x10970c){return _0x5dc3(_0x565ab9- -0x2b5,_0x4ede71);}function _0x2aa309(_0x3a9ee3,_0x4c9992,_0x2ecb67,_0x1d2a6a){return _0x5dc3(_0x1d2a6a- -_0x211aa0._0x252fbd,_0x2ecb67);}_0x4f7ef0(),_0x3e036b(new Error(_0x17f010[_0x2aa309(0x318,0x2ee,0x253,0x2cd)]||_0x5e7835(-0xe3,-_0x54d302._0x50f12b,0xf,-0xe9)));},_0x1b414d=_0x1b3238=>{const _0x5ba4ac={_0x4f5c69:0x31b};function _0x34f217(_0x1658be,_0x4a79ce,_0x516bba,_0x4d86c4){return _0x5dc3(_0x4a79ce-_0x5ba4ac._0x4f5c69,_0x1658be);}_0x4f7ef0();const _0x2659cc=_0x1b3238;function _0x3d175b(_0x39ad3d,_0x1abe65,_0x52d9de,_0x4c96f6){return _0x5dc3(_0x52d9de-_0x1a91b4._0x53881c,_0x39ad3d);}_0x3e036b(new Error(_0x2659cc[_0x34f217(_0x5593e9._0x32b4bc,_0x5593e9._0x189e01,0x524,_0x5593e9._0x1fe1e7)]||_0x34f217(_0x5593e9._0x2d29f7,0x640,_0x5593e9._0x5191f1,_0x5593e9._0x38e513)));};function _0x256d6d(_0x2085f8,_0x1fc638,_0x317e35,_0x183f20){return _0x15ce15(_0x2085f8,_0x1fc638-_0x11ea8b._0x1ddbf6,_0x317e35-_0x11ea8b._0x3a0fa5,_0x1fc638- -0x1f);}const _0x4282f3=()=>{const _0x2274d4={_0x36e6bc:0xae};function _0xc18959(_0x1c3480,_0x43d9ca,_0x553ae5,_0x3295f0){return _0x5dc3(_0x1c3480-_0xc6149b._0x2ce41b,_0x43d9ca);}function _0x2ab0ee(_0x20c4a0,_0x27654b,_0x24a7c7,_0x105c27){return _0x5dc3(_0x27654b-_0x2274d4._0x36e6bc,_0x24a7c7);}_0x4f7ef0(),_0x599bc1['readyState']===WebSocket['OPEN']&&_0x599bc1['close'](0x3e8,_0x2ab0ee(_0x519682._0x23775c,0x32d,_0x519682._0x339b0d,0x24d)),_0x3e036b(toAbortError(_0x236b07?.[_0x2ab0ee(0x201,_0x519682._0x299f55,_0x519682._0x592d03,_0x519682._0x3cc47c)]));};function _0x1e3dd4(_0x25565d,_0x372c7c,_0x5457eb,_0x27253a){return _0x15ce15(_0x27253a,_0x372c7c-0x1d8,_0x5457eb-_0xfa88eb._0x127b4b,_0x5457eb- -_0xfa88eb._0x332d04);}const _0x4f7ef0=()=>{_0x599bc1[_0x1d86bd(0x699,_0x192239._0x4f796d,0x5a5,_0x192239._0x3de49f)](_0x1d86bd(0x518,_0x192239._0x4ffab5,0x4c5,0x4e7),_0x1110b5),_0x599bc1[_0x1d86bd(_0x192239._0x2d28f0,0x696,0x52a,_0x192239._0x3de49f)](_0x1d86bd(_0x192239._0x3ca3a1,_0x192239._0x2ea54a,_0x192239._0x5aadac,_0x192239._0x1b3539),_0xa77bc5);function _0x1d86bd(_0x4a0b79,_0x482083,_0x2a0b5e,_0x1668b3){return _0x5dc3(_0x1668b3-_0x6862fd._0x8373df,_0x2a0b5e);}_0x599bc1['removeEventListener'](_0x1d86bd(0x501,0x49e,0x4c5,_0x192239._0x110bf3),_0x1b414d);function _0x11c837(_0x25f0d5,_0x48e172,_0x59e2a4,_0x1788c3){return _0x5dc3(_0x59e2a4-0x355,_0x48e172);}_0x236b07?.[_0x1d86bd(0x5f9,0x6d5,0x5c5,0x5f8)]('abort',_0x4282f3);};_0x599bc1['addEventListener'](_0x1e3dd4(-_0xff1d0._0x3ef7ae,-0x1f8,-0x1b0,-0x134),_0x1110b5),_0x599bc1['addEventListener'](_0x256d6d(-0xbe,-_0xff1d0._0x452ff1,-_0xff1d0._0x1458e5,0x7),_0xa77bc5),_0x599bc1['addEventListener'](_0x256d6d(-_0xff1d0._0x49ca65,-_0xff1d0._0xffcd91,-0x88,-_0xff1d0._0x5028b5),_0x1b414d),_0x236b07?.[_0x256d6d(-0x4,-_0xff1d0._0xb94a5e,0x38,0x29)](_0x256d6d(-_0xff1d0._0x1ee499,0x33,-0x2d,-0xaa),_0x4282f3,{'once':!![]});});}function iterateWebSocketMessages(_0x1e7aca,_0x47596e){const _0x5310fe={_0x4a82d8:0xd9,_0x5e58e3:0x162,_0x559786:0xf,_0x2c6a8c:0xd9,_0x58b186:0x1b4,_0x7565dc:0x3,_0x487d93:0x62,_0x5a8237:0x75,_0x267680:0x1e2,_0x2c05ef:0x13c},_0x46fd8d={_0x486f7f:0x224,_0x1331ca:0x385,_0x5ec178:0x33a,_0x3167b1:0x357,_0x5bb1dd:0x315,_0x4b4e81:0x398,_0x1b9981:0x4f7,_0x9ea4c5:0x5e4,_0x2ba4be:0x43f,_0x4cda31:0x368},_0x343add={_0x2eaa74:0x457,_0x1c966e:0x2ed,_0x2ca54f:0x433,_0x1fa2c2:0x264,_0x3e996c:0x24a},_0x14e1ae={_0x32a2cb:0x345,_0xbdbb13:0x33f,_0x480431:0x347,_0x597ba1:0x162,_0x49c778:0x22f,_0x5bc3e5:0x1b4,_0x4bc405:0x184},_0x218a11={_0x5a05c8:0x1ed},_0x2f9e52={_0x3d1fec:0x61e,_0x48db2c:0x34f,_0x371073:0x316,_0x55637c:0x3e1},_0x562da7={_0x1ac271:0x124},_0x390792={_0xbae983:0x1cc},_0x58ecf8={_0x18cf21:0x344,_0x5cde43:0x28d,_0x65ecdf:0x3ea,_0x448900:0x3df,_0x44eb8b:0x42e,_0x341d06:0x4bd,_0x2fcb51:0x51,_0x1128f1:0x393},_0x59c548=[];let _0x3aba22=![],_0xd9f626,_0x1aba3a;const _0x5247c2=_0x222797=>{function _0x42b714(_0x3a36bc,_0x2fdbb0,_0x19a8a2,_0x305bdf){return _0x5dc3(_0x3a36bc- -0x29e,_0x19a8a2);}const _0x29a889=_0x222797;function _0x2c7f68(_0x1fd538,_0x4cb5db,_0x4d04fa,_0x557f9f){return _0x5dc3(_0x1fd538-0x1bb,_0x557f9f);}try{_0x59c548[_0x2c7f68(_0x58ecf8._0x18cf21,_0x58ecf8._0x5cde43,0x379,_0x58ecf8._0x65ecdf)](JSON[_0x2c7f68(0x48e,_0x58ecf8._0x448900,_0x58ecf8._0x44eb8b,_0x58ecf8._0x341d06)](String(_0x29a889[_0x42b714(0x45,-_0x58ecf8._0x2fcb51,0x5d,0x114)]))),_0x1aba3a?.(),_0x1aba3a=void 0x0;}catch(_0x28217e){_0xd9f626=new Error(_0x2c7f68(0x445,_0x58ecf8._0x1128f1,0x397,0x4d0)+toErrorMessage(_0x28217e)),_0x1aba3a?.(),_0x1aba3a=void 0x0;}};function _0x51dca7(_0x19bcf3,_0x22ca4f,_0x2bebbd,_0x13f07a){return _0xd0b0c8(_0x19bcf3-0x1eb,_0x13f07a- -0x6a6,_0x2bebbd,_0x13f07a-_0x390792._0xbae983);}const _0x4da191=_0xb54b1e=>{function _0x3424ef(_0x5b4ada,_0x37ec4f,_0x4ea318,_0x49a944){return _0x5dc3(_0x37ec4f-0x322,_0x49a944);}const _0x5e8b26=_0xb54b1e;function _0xaa76ed(_0x917617,_0x3c3c4d,_0x107965,_0x5bf187){return _0x5dc3(_0x917617-_0x562da7._0x1ac271,_0x5bf187);}_0xd9f626=new Error(_0x5e8b26[_0x3424ef(_0x2f9e52._0x3d1fec,0x644,0x6c5,0x6be)]||_0xaa76ed(_0x2f9e52._0x48db2c,_0x2f9e52._0x371073,_0x2f9e52._0x55637c,0x2aa)),_0x1aba3a?.(),_0x1aba3a=void 0x0;};function _0x1ff2c2(_0x5e20da,_0xa06365,_0x50eaad,_0x2074e8){return _0x495204(_0xa06365,_0x5e20da- -0x22d,_0x50eaad-_0x218a11._0x5a05c8,_0x2074e8-0x10c);}const _0x48ca91=_0x2111dc=>{const _0x39afc4=_0x2111dc;!_0x3aba22&&_0x39afc4['code']!==0x3e8&&!_0xd9f626&&(_0xd9f626=new Error(_0x39afc4['reason']||_0x16ce52(_0x14e1ae._0x32a2cb,_0x14e1ae._0xbdbb13,0x382,_0x14e1ae._0x480431)+_0x39afc4[_0x412ef0(-_0x14e1ae._0x597ba1,-_0x14e1ae._0x49c778,-_0x14e1ae._0x5bc3e5,-_0x14e1ae._0x4bc405)]));function _0x16ce52(_0x516459,_0x3ee067,_0xfda80c,_0x209a12){return _0x5dc3(_0xfda80c-0x88,_0x3ee067);}function _0x412ef0(_0x1ae65b,_0x5e1032,_0x4039d1,_0x191312){return _0x5dc3(_0x1ae65b- -0x38f,_0x191312);}_0x3aba22=!![],_0x1aba3a?.(),_0x1aba3a=void 0x0;},_0x2094ca=addAbortListener(_0x47596e,()=>{const _0x4eef65={_0x29b3ca:0x394};_0xd9f626=toAbortError(_0x47596e?.['reason']);_0x1e7aca['readyState']===WebSocket[_0x39b05a(_0x343add._0x2eaa74,0x37c,_0x343add._0x1c966e,_0x343add._0x2ca54f)]&&_0x1e7aca[_0x39b05a(0x297,_0x343add._0x1fa2c2,0x2eb,_0x343add._0x3e996c)](0x3e8,'aborted');_0x1aba3a?.();function _0x39b05a(_0x24cd87,_0x8e6466,_0x7576a8,_0x16bc29){return _0x5dc3(_0x8e6466-0x9c,_0x16bc29);}function _0x40ec88(_0x514f73,_0x421101,_0x14f3e9,_0xd26732){return _0x5dc3(_0x514f73-_0x4eef65._0x29b3ca,_0xd26732);}_0x1aba3a=void 0x0;});return _0x1e7aca[_0x1ff2c2(_0x5310fe._0x4a82d8,0x105,_0x5310fe._0x5e58e3,0x104)](_0x51dca7(-_0x5310fe._0x559786,-0x5f,0x103,0x1e),_0x5247c2),_0x1e7aca[_0x1ff2c2(_0x5310fe._0x2c6a8c,_0x5310fe._0x58b186,0x58,-_0x5310fe._0x7565dc)](_0x1ff2c2(_0x5310fe._0x487d93,-0x5b,-_0x5310fe._0x5a8237,-0x71),_0x4da191),_0x1e7aca['addEventListener'](_0x51dca7(-_0x5310fe._0x267680,-0x1c6,-0x16b,-_0x5310fe._0x2c05ef),_0x48ca91),{async*[Symbol[_0x1ff2c2(0x8e,-0x64,0x11,0xe9)]](){const _0x3af6f4={_0x2c8e0e:0xe3};function _0x1401a7(_0x57b07c,_0x5b17eb,_0x28f8df,_0x594675){return _0x51dca7(_0x57b07c-_0x3af6f4._0x2c8e0e,_0x5b17eb-0x198,_0x57b07c,_0x28f8df-0x684);}function _0x68e705(_0x11d104,_0x80c90a,_0x416292,_0x20ce5f){return _0x1ff2c2(_0x11d104-0x2d0,_0x416292,_0x416292-0x1b9,_0x20ce5f-0x9f);}try{while(!![]){if(_0xd9f626)throw _0xd9f626;if(_0x59c548[_0x68e705(0x30a,_0x46fd8d._0x486f7f,_0x46fd8d._0x1331ca,_0x46fd8d._0x5ec178)]>0x0){yield _0x59c548[_0x68e705(_0x46fd8d._0x3167b1,_0x46fd8d._0x5bb1dd,0x355,_0x46fd8d._0x4b4e81)]();continue;}if(_0x3aba22)break;await new Promise(_0x49c391=>{_0x1aba3a=_0x49c391;});}}finally{_0x1e7aca[_0x1401a7(_0x46fd8d._0x1b9981,0x673,_0x46fd8d._0x9ea4c5,0x5f6)](_0x68e705(0x449,_0x46fd8d._0x2ba4be,_0x46fd8d._0x4cda31,0x381),_0x5247c2),_0x1e7aca[_0x68e705(0x38b,0x3bc,0x47c,0x2ea)]('error',_0x4da191),_0x1e7aca['removeEventListener']('close',_0x48ca91),_0x2094ca();}}};}function toWebSocketUrl(_0x1920a6,_0x88918f){const _0x330900={_0x19c882:0x1e5,_0x4be328:0x1cc,_0x14d25d:0x193,_0x1c6e3b:0x151,_0x37ea0b:0x141,_0x58a96f:0x1f,_0x5c80e9:0xfc,_0x4cb2f9:0x206,_0x1fc461:0x1d8},_0x57b0bd={_0x2fde62:0x5b,_0x434c3b:0x1f},_0x529b47={_0x707bb7:0x38b},_0x51df1=new URL(_0x88918f,_0x1920a6);function _0x416355(_0x267777,_0x3c77a6,_0x545769,_0x14a19c){return _0xd0b0c8(_0x267777-0x9d,_0x3c77a6- -_0x529b47._0x707bb7,_0x545769,_0x14a19c-0x29);}function _0x41fa76(_0x2332f8,_0x1675bb,_0x4ad601,_0x1df04c){return _0x495204(_0x2332f8,_0x1675bb- -0x3db,_0x4ad601-_0x57b0bd._0x2fde62,_0x1df04c-_0x57b0bd._0x434c3b);}return _0x51df1[_0x41fa76(-_0x330900._0x19c882,-0x151,-_0x330900._0x4be328,-_0x330900._0x14d25d)]=_0x51df1[_0x41fa76(-0x107,-_0x330900._0x1c6e3b,-0x1b4,-_0x330900._0x37ea0b)]===_0x41fa76(0x28,-0x55,-_0x330900._0x58a96f,-_0x330900._0x5c80e9)?'wss:':'ws:',_0x51df1[_0x41fa76(-_0x330900._0x4cb2f9,-_0x330900._0x1fc461,-0x133,-0x273)]();}var ProviderSessionManager=class{[_0x495204(0x2c7,0x309,0x23e,0x22b)];['cached'];constructor(_0xf2a13d){this['resolver']=_0xf2a13d;}async[_0xd0b0c8(0x699,0x64a,0x73e,0x622)](_0x25e061){const _0x16809a={_0x4f8cae:0x2e0,_0x467638:0x29d,_0xbfd92f:0x33e,_0xb4fc66:0x3f3,_0x584e5c:0x361,_0x509f30:0x3db,_0xfea82b:0x326,_0x75a22d:0x3bb,_0x259ff3:0x34c,_0x37cf7d:0x39d,_0x5f30ff:0x2ba,_0x5e21ca:0x302},_0x1d2d68={_0x43c6a9:0x1b5,_0x4d98c6:0x154},_0x22e186={_0x1996c0:0x1a6,_0x248a42:0x2e9},_0x3a71cb={_0x3716c3:0x101,_0xa49aac:0x11c};function _0x30296f(_0x530267,_0x9700ff,_0xcd572c,_0x1c96f5){return _0x495204(_0x1c96f5,_0x530267-_0x3a71cb._0x3716c3,_0xcd572c-_0x3a71cb._0xa49aac,_0x1c96f5-0xc6);}function _0x558897(_0x1d5a80,_0x49e6f5,_0x330220,_0x44e075){return _0xd0b0c8(_0x1d5a80-_0x22e186._0x1996c0,_0x49e6f5- -_0x22e186._0x248a42,_0x1d5a80,_0x44e075-0x1c3);}if(!this[_0x558897(0x254,0x2ba,_0x16809a._0x4f8cae,0x3a8)]){const _0x388b6a=this[_0x558897(_0x16809a._0x467638,_0x16809a._0xbfd92f,0x37c,_0x16809a._0xb4fc66)][_0x558897(0x3d6,_0x16809a._0x584e5c,_0x16809a._0x509f30,0x40f)](_0x25e061);_0x388b6a[_0x30296f(_0x16809a._0xfea82b,_0x16809a._0x75a22d,_0x16809a._0x259ff3,0x360)](()=>{const _0x43360e={_0x4f5ec7:0x105,_0x743122:0x154};function _0x29bba9(_0x35c6a4,_0x3d9c50,_0x55206b,_0x1c9a16){return _0x558897(_0x3d9c50,_0x35c6a4- -_0x43360e._0x4f5ec7,_0x55206b-_0x43360e._0x743122,_0x1c9a16-0xfd);}this['cached']===_0x388b6a&&(this[_0x29bba9(_0x1d2d68._0x43c6a9,_0x1d2d68._0x4d98c6,0xe5,0x1ec)]=void 0x0);}),this['cached']=_0x388b6a;}return structuredClone(await this[_0x558897(_0x16809a._0x37cf7d,_0x16809a._0x5f30ff,0x335,_0x16809a._0x5e21ca)]);}[_0x495204(0x2ec,0x37b,0x39f,0x306)](){const _0x4a1921={_0x3fb60d:0x15b,_0x3c86a4:0x138,_0x3344ed:0x4a0,_0x591348:0x478},_0x32e3ad={_0x3cb228:0x1d9,_0x208907:0x10c,_0x32e3d1:0x126},_0x39023b={_0x4a57a9:0x75f};function _0x31bc13(_0x49fa98,_0x157efa,_0x9a360c,_0x4db8dc){return _0xd0b0c8(_0x49fa98-0x1da,_0x9a360c- -_0x39023b._0x4a57a9,_0x49fa98,_0x4db8dc-0x1e7);}this[_0x31bc13(-_0x4a1921._0x3fb60d,-0x1cf,-_0x4a1921._0x3c86a4,-0x1f1)]['invalidate']?.();function _0x4218ba(_0xd5a347,_0x5968d1,_0x1f14f1,_0x32d0b0){return _0x495204(_0x32d0b0,_0x1f14f1-_0x32e3ad._0x3cb228,_0x1f14f1-_0x32e3ad._0x208907,_0x32d0b0-_0x32e3ad._0x32e3d1);}this[_0x4218ba(_0x4a1921._0x3344ed,_0x4a1921._0x591348,0x45e,0x4e4)]=void 0x0;}};async function prepareProviderRequest(_0x3d97fe,_0x52e677={}){const _0x400f55={_0x11703a:0xbb,_0x3a5577:0x37,_0x1cbcbf:0x74,_0x1b3715:0x6e7,_0x1b9904:0x659,_0x1019c1:0x731},_0x51c129={_0x164703:0x33},_0x366ebc={_0x4da0eb:0x310,_0x156e7d:0xa5,_0x1384c1:0xb7};function _0x3b3bbe(_0x540871,_0x5bf7cc,_0x24349f,_0x5ea9a5){return _0x495204(_0x540871,_0x5bf7cc-_0x366ebc._0x4da0eb,_0x24349f-_0x366ebc._0x156e7d,_0x5ea9a5-_0x366ebc._0x1384c1);}let _0x3f9781={'request':structuredClone(_0x3d97fe),'session':_0x52e677['sessionManager']?await _0x52e677['sessionManager'][_0x577a7a(_0x400f55._0x11703a,_0x400f55._0x3a5577,-_0x400f55._0x1cbcbf,-0x34)](_0x52e677['signal']):void 0x0};function _0x577a7a(_0x23a1b7,_0x139632,_0x3854a3,_0x134efc){return _0xd0b0c8(_0x23a1b7-0xbf,_0x139632- -0x613,_0x23a1b7,_0x134efc-_0x51c129._0x164703);}for(const _0x4a173d of _0x52e677[_0x3b3bbe(_0x400f55._0x1b3715,_0x400f55._0x1b9904,0x622,_0x400f55._0x1019c1)]??[]){_0x3f9781=await _0x4a173d(_0x3f9781);}return _0x3f9781;}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{[_0x495204(0x432,0x347,0x291,0x2d1)];[_0x495204(0x26c,0x263,0x2f3,0x2b5)];[_0xd0b0c8(0x502,0x594,0x63b,0x658)];[_0x495204(0x2a3,0x2c7,0x22a,0x2bf)];[_0xd0b0c8(0x53f,0x592,0x5aa,0x65d)];['baseUrl'];['fetchImpl'];['providerAdapter'];['requestMutators'];[_0xd0b0c8(0x5f5,0x59b,0x684,0x50a)];[_0x495204(0x433,0x39d,0x424,0x482)];[_0x495204(0x12a,0x202,0x2b8,0x1df)];[_0xd0b0c8(0x582,0x568,0x638,0x4f3)]=new Map();constructor(_0x4ec195){const _0x3f769f={_0x1c05be:0x3d,_0x3a5483:0xae,_0xef6a2d:0x4,_0x2f84bf:0x2d,_0x59411d:0x58,_0x4c46d4:0x154,_0x5c44d9:0x1d0,_0xbfea58:0x164,_0x1b78dc:0x157,_0x2877fe:0x2e,_0x405c84:0xf7,_0x3ade1d:0x11f,_0x4261a6:0x101,_0x5c42be:0x162,_0x43e3b5:0x16a,_0x43da95:0xa1,_0x4c40cc:0x1bb,_0x40932f:0x109,_0x427556:0x1ed,_0x30e176:0x165,_0x3d5f5e:0x1c0,_0x408f99:0x25d,_0x242688:0x2ff,_0x5a1d1a:0x19d,_0x555c1d:0x9,_0x580cce:0x16b,_0xc2cc51:0x12d,_0x5ef8f8:0xe5,_0x154db2:0x107,_0x59c30a:0x4a,_0x5d4fca:0x9f,_0x5e5c14:0x241,_0xb41b9:0x1b3,_0x116d46:0x67,_0x44f5e6:0x98,_0x1db45e:0xf0,_0x3f5cbe:0xdb,_0x439b50:0xf5,_0x27e6f9:0x9d,_0xb15c85:0x204,_0x249ebe:0x2c6,_0x1e27c1:0x1e5,_0x4ab2f8:0x270},_0x17cede={_0x42e335:0x15},_0x26d68b={_0x3bc584:0x112,_0x4b1e54:0x22,_0x5d9ef7:0x24};this['model']=_0x4ec195[_0x251091(_0x3f769f._0x1c05be,_0x3f769f._0x3a5483,-_0x3f769f._0xef6a2d,0x39)],this['modelIdentity']=_0x4ec195[_0x251091(_0x3f769f._0x2f84bf,-0x36,-0x12a,-_0x3f769f._0x59411d)]??modelIdentityFromParts(void 0x0,this[_0x251091(0x6c,0xae,0x9e,0x115)]),this[_0x262271(0x164,0x1f4,_0x3f769f._0x4c46d4,_0x3f769f._0x5c44d9)]=_0x4ec195[_0x262271(_0x3f769f._0xbfea58,0x106,_0x3f769f._0x1b78dc,0x19b)],this['reasoning']=_0x4ec195[_0x251091(-0x71,_0x3f769f._0x2877fe,_0x3f769f._0x405c84,-0x48)]?structuredClone(_0x4ec195['reasoning']):void 0x0,this[_0x262271(0x162,_0x3f769f._0x3ade1d,0x1c6,_0x3f769f._0x4261a6)]=_0x4ec195[_0x262271(_0x3f769f._0x5c42be,0x245,0xac,0x187)],this['baseUrl']=_0x4ec195[_0x262271(_0x3f769f._0x43e3b5,0x18a,_0x3f769f._0x43da95,_0x3f769f._0x4c40cc)],this[_0x262271(_0x3f769f._0x40932f,0x15,_0x3f769f._0x427556,0x1f7)]=_0x4ec195[_0x251091(_0x3f769f._0x30e176,_0x3f769f._0x4261a6,0xa8,_0x3f769f._0x427556)]??globalThis['fetch'];function _0x262271(_0x294d51,_0x178b8f,_0xad75ac,_0x30a8dd){return _0x495204(_0x30a8dd,_0x294d51- -_0x26d68b._0x3bc584,_0xad75ac-_0x26d68b._0x4b1e54,_0x30a8dd-_0x26d68b._0x5d9ef7);}this[_0x251091(0x7d,0xd6,_0x3f769f._0x3d5f5e,0x36)]=_0x4ec195[_0x262271(_0x3f769f._0x408f99,0x230,_0x3f769f._0x242688,_0x3f769f._0x5a1d1a)],this[_0x251091(-_0x3f769f._0x555c1d,0xb0,0x17a,0xc9)]=_0x4ec195['requestMutators']??[],this[_0x262271(_0x3f769f._0x580cce,_0x3f769f._0xc2cc51,_0x3f769f._0x5ef8f8,_0x3f769f._0x154db2)]=_0x4ec195['router'],this[_0x251091(0x163,0x104,_0x3f769f._0x59c30a,_0x3f769f._0x5d4fca)]=_0x4ec195[_0x262271(0x28b,_0x3f769f._0x5e5c14,0x30c,_0x3f769f._0xb41b9)]??(_0x4ec195['providerSessionResolver']?new ProviderSessionManager(_0x4ec195['providerSessionResolver']):void 0x0),this[_0x262271(0xf0,_0x3f769f._0x116d46,_0x3f769f._0x44f5e6,0xfe)]=_0x4ec195[_0x262271(_0x3f769f._0x1db45e,0x81,0x54,0x1c)]??createDefaultWebSocketFactory();function _0x251091(_0x32b035,_0x51371c,_0x35a4e0,_0x578bbb){return _0xd0b0c8(_0x32b035-_0x17cede._0x42e335,_0x51371c- -0x5b7,_0x35a4e0,_0x578bbb-0x38);}for(const _0x5462e7 of _0x4ec195[_0x251091(-0x10,-0x4f,-0x109,-_0x3f769f._0x3f5cbe)]){this[_0x251091(-_0x3f769f._0x439b50,-0x4f,-0xe0,_0x3f769f._0x27e6f9)][_0x262271(_0x3f769f._0xb15c85,_0x3f769f._0x249ebe,_0x3f769f._0x1e27c1,_0x3f769f._0x4ab2f8)](_0x5462e7['id'],_0x5462e7);}}['complete'](_0x11158e,_0x13f3ee){const _0x2953bb={_0x3e2e22:0x25,_0x4f992e:0xdb},_0x59a36a={_0x223494:0x2fe,_0x51ffbe:0xb7};function _0x2a6bda(_0x14661c,_0xa56de5,_0x4fb3f4,_0xb59524){return _0x495204(_0xa56de5,_0x4fb3f4- -_0x59a36a._0x223494,_0x4fb3f4-0x126,_0xb59524-_0x59a36a._0x51ffbe);}return this[_0x2a6bda(-0x70,-0x49,-_0x2953bb._0x3e2e22,-_0x2953bb._0x4f992e)](_0x11158e,_0x13f3ee);}[_0x495204(0x1ca,0x1d5,0x117,0x20c)](_0x4d1690,_0xff2bde){const _0x1db6b1={_0x3126e0:0x1a2},_0x287244={_0x2652cf:0x392};function _0x8ade6c(_0x4a2681,_0x553c60,_0x562790,_0x26a980){return _0x495204(_0x553c60,_0x4a2681- -_0x287244._0x2652cf,_0x562790-0xf2,_0x26a980-0x9d);}return this[_0x8ade6c(-0x14b,-0x1c3,-0x14c,-_0x1db6b1._0x3126e0)](_0x4d1690,_0xff2bde);}async[_0xd0b0c8(0x6d6,0x5f7,0x6e0,0x58b)](_0x117611,_0x52fdd0){const _0x1abfce={_0x4a431e:0x3ba,_0x4eab0a:0x3ec,_0x392ce0:0x333,_0x4ac55b:0x1f0,_0xa87469:0x286,_0x19ef33:0x2a9,_0x154956:0x1bf,_0x4ea2e4:0x2ce},_0x56d10d={_0xc7881a:0x6b,_0x223f2f:0x2b9,_0x31aff1:0x1e5},_0x5831ce={_0x54a524:0xde,_0x34205c:0x6b,_0x1f8262:0x47},_0x1719b4=this[_0x5cd5f0(_0x1abfce._0x4a431e,_0x1abfce._0x4eab0a,0x408,_0x1abfce._0x392ce0)](_0x117611);function _0x38a34(_0x364a34,_0x3f37e7,_0x6e6875,_0x116c57){return _0x495204(_0x364a34,_0x6e6875- -_0x5831ce._0x54a524,_0x6e6875-_0x5831ce._0x34205c,_0x116c57-_0x5831ce._0x1f8262);}const _0x551fb4=await this[_0x5cd5f0(_0x1abfce._0x4ac55b,_0x1abfce._0xa87469,_0x1abfce._0x19ef33,0x2e2)][_0x38a34(0x356,0x1e2,0x26c,0x2c6)](_0x1719b4,{'mode':_0x5cd5f0(_0x1abfce._0x154956,0x276,_0x1abfce._0x4ea2e4,0x29a)});function _0x5cd5f0(_0x78ac2f,_0x10aaa5,_0x5387fa,_0x54d0e1){return _0xd0b0c8(_0x78ac2f-_0x56d10d._0xc7881a,_0x54d0e1- -_0x56d10d._0x223f2f,_0x5387fa,_0x54d0e1-_0x56d10d._0x31aff1);}return this[_0x5cd5f0(0x30e,0x1bb,0x175,0x234)](_0x1719b4,_0x551fb4,_0x52fdd0);}async*[_0x495204(0x199,0x247,0x20f,0x19e)](_0x1acab8,_0x38eef8){const _0x1904a7={_0xfac687:0x242,_0x3e6a76:0x17e,_0x2c7d24:0x2bf,_0x1af289:0x31e,_0x22b09a:0x324,_0x4a41de:0x30e,_0x2b0550:0x249,_0x56d9d9:0x16b,_0x1510a9:0x190},_0x468beb={_0x39f883:0x1cf,_0x3fc3e1:0x4f},_0x2cbcc3={_0x528260:0x40},_0x75beca=this[_0x2a3264(0x155,0x269,_0x1904a7._0xfac687,0x24f)](_0x1acab8),_0x1997b2=await this[_0x2a3264(0x29b,_0x1904a7._0x3e6a76,0x1f1,_0x1904a7._0x2c7d24)][_0x39f719(_0x1904a7._0x1af289,_0x1904a7._0x22b09a,_0x1904a7._0x4a41de,_0x1904a7._0x2b0550)](_0x75beca,{'mode':'stream'});function _0x39f719(_0x514f94,_0x276eb9,_0x28aeb5,_0x4eda1a){return _0xd0b0c8(_0x514f94-_0x2cbcc3._0x528260,_0x28aeb5- -0x35a,_0x276eb9,_0x4eda1a-0x1ab);}function _0x2a3264(_0x2970ac,_0x5260d8,_0x4d5c98,_0x4e03b5){return _0xd0b0c8(_0x2970ac-_0x468beb._0x39f883,_0x4d5c98- -0x3aa,_0x4e03b5,_0x4e03b5-_0x468beb._0x3fc3e1);}yield*this[_0x2a3264(_0x1904a7._0x56d9d9,_0x1904a7._0x1510a9,0x18c,0x12f)](_0x75beca,_0x1997b2,_0x38eef8);}async['completeViaSurface'](_0x1bf539,_0x25f326,_0x1ebfeb){const _0x561be3={_0x3d75ef:0x2b5,_0x1405c2:0x2b5,_0x5423ae:0x26a,_0x318d16:0x2e5,_0x4b151a:0x2c0,_0x58b7cb:0x44,_0x49d791:0x68,_0x45fc2b:0xec,_0x1c7191:0xb7,_0xe03c6b:0x20c,_0x5a0e58:0x16c,_0x495a31:0x3f,_0x341300:0x295,_0x57ecb8:0x212,_0x4098e7:0x255,_0x55510d:0x1d8,_0x123c81:0x1b5,_0x30229c:0xf0,_0x14f6bc:0xa4,_0x1a349a:0xad,_0x51e664:0x350,_0x5f07db:0x3c4,_0x5420c8:0x25,_0x5515c0:0x4,_0x281626:0x2f,_0x48c234:0x3e},_0x352320={_0x5b3beb:0xf7},_0x47487e=this[_0x20ea4e(_0x561be3._0x3d75ef,_0x561be3._0x1405c2,0x26b,_0x561be3._0x5423ae)](_0x1bf539),_0x3c7dcb=this[_0x20ea4e(0x2b0,_0x561be3._0x318d16,_0x561be3._0x4b151a,0x283)](_0x25f326);function _0x20fc4a(_0x5136bf,_0x3b78a9,_0x29a58c,_0x1bf7a8){return _0x495204(_0x3b78a9,_0x5136bf- -0x240,_0x29a58c-0x1ee,_0x1bf7a8-_0x352320._0x5b3beb);}if(_0x3c7dcb['transport']===_0x20fc4a(-_0x561be3._0x58b7cb,-_0x561be3._0x49d791,-0x7f,-_0x561be3._0x45fc2b)){const _0x2831cc=await this['sendHttpSurfaceRequest'](_0x47487e,_0x3c7dcb,![],_0x1ebfeb);if(!_0x2831cc['ok'])throw await this['toApiError'](_0x2831cc);if(!_0x3c7dcb[_0x20fc4a(0x6c,0x69,_0x561be3._0x1c7191,0x34)])throw new Error(_0x20fc4a(0x4,0x3d,-0x4e,0x3b)+_0x25f326+_0x20ea4e(_0x561be3._0xe03c6b,_0x561be3._0x5a0e58,0x1b2,0xc0));return _0x3c7dcb[_0x20fc4a(0x6c,-0x7b,0x2f,_0x561be3._0x495a31)](await _0x2831cc[_0x20ea4e(_0x561be3._0x341300,_0x561be3._0x57ecb8,0x252,_0x561be3._0x4098e7)](),_0x47487e);}let _0x374052;for await(const _0xf8db05 of this[_0x20ea4e(_0x561be3._0x55510d,0x1a7,_0x561be3._0x123c81,_0x561be3._0x30229c)](_0x47487e,_0x25f326,_0x1ebfeb)){_0xf8db05[_0x20fc4a(0x20,-_0x561be3._0x14f6bc,_0x561be3._0x1a349a,-0x16)]===_0x20ea4e(0x3d7,_0x561be3._0x51e664,0x306,_0x561be3._0x5f07db)&&(_0x374052=_0xf8db05[_0x20fc4a(-0xf,0xc0,-0x7c,-_0x561be3._0x5420c8)]);}function _0x20ea4e(_0x4462c3,_0x31149d,_0x44a00c,_0x54331a){return _0x495204(_0x31149d,_0x44a00c- -0x63,_0x44a00c-0x4,_0x54331a-0x3);}if(!_0x374052)throw new Error(_0x20fc4a(_0x561be3._0x5515c0,_0x561be3._0x281626,-0x77,_0x561be3._0x48c234)+_0x25f326+'\x20did\x20not\x20produce\x20a\x20final\x20response');return _0x374052;}async*[_0x495204(0x14e,0x218,0x22a,0x246)](_0xf7ab4b,_0x4936d6,_0x5144ec){const _0x55ffbd={_0x46c5a2:0x5e,_0x3e393c:0xf,_0x5cef47:0x48,_0x1b5b07:0x8d,_0x273a50:0x57,_0x5ca614:0x2b,_0x20fd01:0x8a,_0x2007c3:0x5d,_0xa7c7ea:0x72},_0x4e74fc={_0x395d24:0x170,_0x4860c9:0x491,_0x137f13:0x6d},_0xf2fa5e={_0x13aa74:0x166},_0x558624=this[_0xe16a7a(0x1c,_0x55ffbd._0x46c5a2,-0xe,-_0x55ffbd._0x3e393c)](_0xf7ab4b);function _0xe16a7a(_0x47d4f2,_0x249c6f,_0x48acc0,_0x400315){return _0x495204(_0x47d4f2,_0x48acc0- -0x2dc,_0x48acc0-0x152,_0x400315-_0xf2fa5e._0x13aa74);}const _0x3cbeac=this['getSurface'](_0x4936d6);if(_0x3cbeac['transport']===_0x16ec3b(0x89,-0x43,0xee,0x15c)){const _0x44fc21=await this['completeViaSurface'](_0x558624,_0x4936d6,_0x5144ec);yield{'type':_0xe16a7a(0x13,_0x55ffbd._0x5cef47,_0x55ffbd._0x1b5b07,_0x55ffbd._0x273a50),'response':_0x44fc21};return;}function _0x16ec3b(_0x33b65d,_0x57259f,_0x53f06a,_0xfa3c45){return _0xd0b0c8(_0x33b65d-_0x4e74fc._0x395d24,_0x33b65d- -_0x4e74fc._0x4860c9,_0x53f06a,_0xfa3c45-_0x4e74fc._0x137f13);}if(_0x3cbeac[_0xe16a7a(-0x8f,-_0x55ffbd._0x5ca614,-_0x55ffbd._0x20fd01,_0x55ffbd._0x2007c3)]===_0xe16a7a(-0x11,0xe,0x49,-0x77)){yield*this['streamHttpSurface'](_0x558624,_0x3cbeac,_0x5144ec);return;}yield*this['streamWebSocketSurface'](_0x558624,_0x3cbeac,_0x5144ec?.[_0xe16a7a(0x2,0x11f,_0x55ffbd._0xa7c7ea,0xce)]);}async[_0xd0b0c8(0x589,0x547,0x5cb,0x5da)](_0x5e02d1){const _0x5b520d={_0x1a5e92:0x707,_0x439c56:0x6e0,_0x358e54:0x637},_0x45dbeb={_0xb85fbe:0x2f0,_0x381eac:0x2fd,_0x1bfe71:0x198,_0x52369c:0x28c,_0x5d9ac8:0x1c2,_0x27cbcd:0x295,_0x27c9f5:0x1,_0x56ba94:0xdf,_0x48b0b2:0x246,_0xcb7b08:0x1ce,_0x332867:0x22a,_0x3ffdae:0x2eb,_0x3ed9b9:0x31e,_0x469409:0x220,_0x3446ef:0x312,_0x33ef57:0x3ce,_0x172283:0x155,_0x396d20:0x151,_0x338f90:0x68,_0x3de126:0x1,_0x50fc45:0x10a,_0x71c659:0x2de,_0x145aa9:0x2d8,_0x2c75c6:0x1e8,_0x52a188:0x1f4,_0x319c70:0x2d5,_0x511dd0:0x2c3,_0x527af3:0x262,_0x2bff1c:0x3ac,_0x7c9695:0x2d5,_0x6058b2:0x2c3},_0xb4f263={_0x4129c7:0x2ec},_0x30bb4b={_0x2811a8:0x51,_0x210091:0x1ed};function _0x16ec4c(_0x1fe91,_0x311825,_0x373f08,_0x4ced1a){return _0xd0b0c8(_0x1fe91-_0x30bb4b._0x2811a8,_0x373f08- -0x3c,_0x311825,_0x4ced1a-_0x30bb4b._0x210091);}const _0x332dcf=async()=>{function _0x553924(_0x3d235d,_0x2ac740,_0x1f000f,_0x27f3a6){return _0x5dc3(_0x2ac740- -_0xb4f263._0x4129c7,_0x1f000f);}function _0x552a5f(_0x556669,_0x547e69,_0x40b5e3,_0xca240b){return _0x5dc3(_0xca240b- -0x1c,_0x547e69);}const _0x30f317=this[_0x552a5f(0x2e8,0x361,_0x45dbeb._0xb85fbe,_0x45dbeb._0x381eac)]?await this['sessionManager'][_0x552a5f(0x1e0,_0x45dbeb._0x1bfe71,0x2ed,_0x45dbeb._0x52369c)](_0x5e02d1[_0x552a5f(_0x45dbeb._0x5d9ac8,_0x45dbeb._0x27cbcd,0x279,0x2ae)]):void 0x0,_0x18d4f6=this[_0x553924(-0x5,-_0x45dbeb._0x27c9f5,-0xb2,_0x45dbeb._0x56ba94)][_0x552a5f(0x221,0xe4,0xaf,0x159)](this[_0x552a5f(0x1fb,_0x45dbeb._0x48b0b2,0x17d,0x1d4)],_0x30f317);if(!_0x18d4f6)throw this[_0x552a5f(_0x45dbeb._0xcb7b08,0x29d,0x13e,_0x45dbeb._0x332867)]();const _0x199657=await this[_0x552a5f(_0x45dbeb._0x3ffdae,0x130,0x227,0x216)]({'body':_0x5e02d1['body'],'credential':_0x18d4f6,'session':_0x30f317,'stream':![]},{'accept':_0x5e02d1[_0x552a5f(_0x45dbeb._0x3ed9b9,_0x45dbeb._0x469409,0x36e,0x2ee)]??_0x552a5f(0x320,0x338,0x357,0x311),'includeContentType':_0x5e02d1[_0x553924(-0x87,-0x119,-0xa3,-0x159)]===_0x552a5f(0x238,_0x45dbeb._0x3446ef,_0x45dbeb._0x33ef57,0x2f5)});return this[_0x553924(-0x11c,-_0x45dbeb._0x172283,-_0x45dbeb._0x396d20,-_0x45dbeb._0x338f90)](''+this[_0x553924(0x52,-_0x45dbeb._0x3de126,0x60,-0x90)]['resolveBaseUrl'](this[_0x552a5f(_0x45dbeb._0x50fc45,0x225,0x248,0x1dc)],_0x30f317)+_0x5e02d1[_0x552a5f(0x236,_0x45dbeb._0x71c659,0x322,_0x45dbeb._0x145aa9)],{'method':_0x5e02d1[_0x553924(-_0x45dbeb._0x2c75c6,-0x119,-_0x45dbeb._0x52a188,-0x12e)],'headers':_0x199657,..._0x5e02d1[_0x552a5f(_0x45dbeb._0x319c70,0x340,0x204,_0x45dbeb._0x511dd0)]!==void 0x0?{'body':JSON[_0x552a5f(0x2b9,0x2ca,_0x45dbeb._0x527af3,0x1fa)](_0x5e02d1[_0x552a5f(_0x45dbeb._0x2bff1c,0x2de,_0x45dbeb._0x7c9695,_0x45dbeb._0x6058b2)])}:{},'signal':_0x5e02d1['signal']});};return await this[_0x16ec4c(_0x5b520d._0x1a5e92,_0x5b520d._0x439c56,_0x5b520d._0x358e54,0x63f)](_0x332dcf,_0x5e02d1);}['getRetryDelayMs'](_0x1e392c,_0xf305da){const _0x1201e3={_0x1d8013:0x1ce,_0x438385:0x189,_0x5eaa66:0x4,_0xa1008:0xa7,_0x3eb593:0x27,_0x23e8f5:0x15b,_0x29ee59:0x362,_0x3269b2:0x2bc,_0x58d9fd:0x28f,_0x16d368:0x26f,_0x3bbb69:0x1fd,_0x50ee77:0x291,_0x3f2c05:0x1b9,_0x17b62e:0x10c},_0x947a1a={_0x229cb8:0xea,_0x18a172:0x29},_0x64af53={_0x1b9510:0x179},_0x4ea45e=_0x1e392c?.[_0x4fb5ec(0xd0,0x163,_0x1201e3._0x1d8013,_0x1201e3._0x438385)][_0x4fb5ec(_0x1201e3._0x5eaa66,_0x1201e3._0xa1008,0x17,_0x1201e3._0x3eb593)](_0x48e1e0(0x199,0x15b,_0x1201e3._0x23e8f5,0x143));if(_0x4ea45e){const _0x469eee=Number(_0x4ea45e);if(Number[_0x48e1e0(_0x1201e3._0x29ee59,0x2ae,_0x1201e3._0x3269b2,_0x1201e3._0x58d9fd)](_0x469eee)&&_0x469eee>=0x0)return _0x469eee*0x3e8;const _0x48a560=Date[_0x48e1e0(0x284,0x26d,0x1bc,0x26d)](_0x4ea45e);if(Number['isFinite'](_0x48a560))return Math[_0x4fb5ec(_0x1201e3._0x16d368,_0x1201e3._0x3bbb69,0x283,_0x1201e3._0x50ee77)](0x0,_0x48a560-Date[_0x4fb5ec(0x286,_0x1201e3._0x3f2c05,_0x1201e3._0x17b62e,0x272)]());}function _0x4fb5ec(_0x5181d6,_0x476e17,_0x516df9,_0x500982){return _0x495204(_0x500982,_0x476e17- -0x193,_0x516df9-0xd0,_0x500982-_0x64af53._0x1b9510);}const _0x14b70b=DEFAULT_RETRY_DELAY_MS*0x2**_0xf305da;if(_0x14b70b<RETRY_DELAY_STEP_CAP_MS)return _0x14b70b;function _0x48e1e0(_0x5b2b1c,_0x309f3e,_0x2febcb,_0x5406a6){return _0x495204(_0x5406a6,_0x309f3e- -_0x947a1a._0x229cb8,_0x2febcb-0xfa,_0x5406a6-_0x947a1a._0x18a172);}return RETRY_DELAY_STEP_CAP_MS*0x2**(_0xf305da-0x5);}['shouldRetryResponse'](_0x2cd209){const _0x30dfe3={_0x13af5b:0x2ea,_0x1ad513:0x452,_0x111408:0x3d3,_0x192163:0x4bd,_0x473339:0x264},_0x3f5bf3={_0x107d02:0x111};function _0x407a8a(_0x23f05e,_0x2cc70f,_0x167ab1,_0x1fdf18){return _0xd0b0c8(_0x23f05e-0x33,_0x23f05e- -0x3d4,_0x167ab1,_0x1fdf18-0x127);}function _0x58a3a7(_0x290b9e,_0x41310e,_0x39905d,_0x95ddc7){return _0x495204(_0x95ddc7,_0x39905d-0x1e7,_0x39905d-0x1aa,_0x95ddc7-_0x3f5bf3._0x107d02);}return RETRYABLE_HTTP_STATUSES[_0x58a3a7(_0x30dfe3._0x13af5b,_0x30dfe3._0x1ad513,_0x30dfe3._0x111408,_0x30dfe3._0x192163)](_0x2cd209[_0x407a8a(_0x30dfe3._0x473339,0x30e,0x2ca,0x2c0)]);}[_0xd0b0c8(0x673,0x5ed,0x6d0,0x65f)](_0x399c87){return!isAbortError(_0x399c87)&&_0x399c87 instanceof TypeError;}[_0x495204(0x303,0x23c,0x32d,0x177)](_0x2a222f){const _0x29774c={_0x5ccd82:0x59d},_0x55ffc7={_0x3a707:0xe0};function _0x1571ad(_0x57b574,_0x215014,_0x4bdc25,_0x32037d){return _0x495204(_0x32037d,_0x57b574-0x2ce,_0x4bdc25-0x3e,_0x32037d-_0x55ffc7._0x3a707);}return this[_0x1571ad(_0x29774c._0x5ccd82,0x52a,0x574,0x521)](_0x2a222f)||isRetryableProviderStreamEventError(_0x2a222f);}async[_0x495204(0x2a9,0x2f1,0x3c6,0x27c)](_0x17c012,_0x14adfb){throwIfAborted(_0x14adfb),await new Promise((_0x3f47a1,_0x2d009c)=>{let _0x5384eb=![];const _0x1fec01=addAbortListener(_0x14adfb,()=>{if(_0x5384eb)return;_0x5384eb=!![],clearTimeout(_0x3b92f2),_0x2d009c(toAbortError(_0x14adfb?.['reason']));}),_0x3b92f2=setTimeout(()=>{_0x5384eb=!![],_0x1fec01(),_0x3f47a1();},_0x17c012);}),throwIfAborted(_0x14adfb);}async[_0xd0b0c8(0x736,0x673,0x62d,0x5d4)](_0x2cd48d,_0x22f04a={}){const _0x40e47b={_0xd78da4:0x4f,_0x11f4e3:0x26,_0xe04a8d:0x7f,_0x3bf8e3:0x455,_0x2ba6b2:0x4f3,_0x5ec310:0x93,_0x248c28:0x44a,_0x1e374f:0x447,_0x5e5395:0x439,_0x41ad37:0x425,_0x211d98:0x435,_0xaa2e36:0x361,_0x1e93bc:0x3e4,_0x254c95:0x441,_0x456f6b:0x40d,_0x2f3740:0x3fa,_0x58e3a4:0x451},_0xabbbc9={_0x24b8ce:0x1c8},_0x1c19ef={_0x169af8:0x1b4},{signal:_0x55fbfa}=_0x22f04a;let _0x393266=![];function _0x491172(_0x5ca893,_0x4c01c8,_0x552651,_0x32afc4){return _0x495204(_0x4c01c8,_0x552651- -0x377,_0x552651-_0x1c19ef._0x169af8,_0x32afc4-0x9f);}function _0x4a73e4(_0x276ea3,_0x33d967,_0x319cd2,_0x5e6d7d){return _0xd0b0c8(_0x276ea3-0x1a6,_0x319cd2- -_0xabbbc9._0x24b8ce,_0x33d967,_0x5e6d7d-0xab);}for(let _0x367347=0x0;_0x367347<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x367347+=0x1){throwIfAborted(_0x55fbfa);try{const _0x53fdb8=await _0x2cd48d();if(_0x53fdb8['status']===0x191&&this[_0x491172(0x103,_0x40e47b._0xd78da4,_0x40e47b._0x11f4e3,-_0x40e47b._0xe04a8d)]&&!_0x393266){_0x393266=!![],this[_0x4a73e4(_0x40e47b._0x3bf8e3,0x4ea,_0x40e47b._0x2ba6b2,0x59b)][_0x491172(-_0x40e47b._0x5ec310,-0x95,0x4,0x49)]();continue;}if(!this['shouldRetryResponse'](_0x53fdb8)||_0x367347===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)return _0x53fdb8;const _0x4e8851=this['getRetryDelayMs'](_0x53fdb8,_0x367347);await this[_0x4a73e4(_0x40e47b._0x248c28,0x36f,_0x40e47b._0x1e374f,0x373)](_0x4e8851,_0x55fbfa);}catch(_0x565708){if(!this[_0x4a73e4(_0x40e47b._0x5e5395,0x4ba,_0x40e47b._0x41ad37,0x345)](_0x565708)||_0x367347===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x565708;const _0x4ced08=this[_0x4a73e4(_0x40e47b._0x211d98,0x2c6,_0x40e47b._0xaa2e36,_0x40e47b._0x1e93bc)](void 0x0,_0x367347);await this['waitForRetry'](_0x4ced08,_0x55fbfa);}}throw new Error(_0x4a73e4(_0x40e47b._0x254c95,_0x40e47b._0x456f6b,_0x40e47b._0x2f3740,_0x40e47b._0x58e3a4));}[_0xd0b0c8(0x565,0x5e8,0x5f0,0x5c1)](){const _0x510f83={_0x20b4c3:0xf7,_0x5f3928:0x129,_0x363162:0x156,_0x3bbfd7:0xf9,_0x18edf2:0x164},_0x3f4a0f={_0x3771b8:0x455},_0x5e4e38={_0x42b674:0x596};function _0xc9b2f9(_0x39c5d8,_0x2a1428,_0x5e414d,_0x3d8e69){return _0xd0b0c8(_0x39c5d8-0xd1,_0x5e414d- -_0x5e4e38._0x42b674,_0x3d8e69,_0x3d8e69-0x56);}function _0x2557ce(_0x3576ab,_0x32488f,_0x24f56c,_0x509dc2){return _0x495204(_0x32488f,_0x24f56c- -_0x3f4a0f._0x3771b8,_0x24f56c-0x2d,_0x509dc2-0x138);}return this[_0xc9b2f9(0xf,0x1b5,_0x510f83._0x20b4c3,_0x510f83._0x5f3928)][_0x2557ce(-_0x510f83._0x363162,-_0x510f83._0x3bbfd7,-0x18b,-_0x510f83._0x18edf2)]();}async[_0x495204(0x25b,0x2b6,0x245,0x37e)](_0x585955,_0x5c6cb9){const _0x5d8491={_0x16d254:0x165},_0x393238={_0x3c34c3:0x19a,_0x4a7023:0xed};function _0x2c0d05(_0x157686,_0x362668,_0x2ab414,_0x3e597b){return _0x495204(_0x362668,_0x3e597b- -_0x393238._0x3c34c3,_0x2ab414-_0x393238._0x4a7023,_0x3e597b-0x97);}return await this['providerAdapter'][_0x2c0d05(0x43,0x1de,_0x5d8491._0x16d254,0x11c)](_0x585955,_0x5c6cb9);}[_0x495204(0x24e,0x32b,0x34c,0x34e)](_0x1f79e8){const _0x2be29d={_0x342af3:0x442,_0x4d2415:0x4bb,_0x5d9575:0x361,_0x3d2b21:0x4c7,_0x20dc75:0x4d0},_0x48523f={_0xc6a8bf:0x78},_0x3f937f={_0x382ceb:0x27e,_0x4f0f93:0x1c3,_0x1f3826:0x15c};function _0x5d54b5(_0x1657ae,_0x3bb2a3,_0x2dea74,_0x2cd82e){return _0x495204(_0x3bb2a3,_0x1657ae- -_0x3f937f._0x382ceb,_0x2dea74-_0x3f937f._0x4f0f93,_0x2cd82e-_0x3f937f._0x1f3826);}function _0x162413(_0x35fe29,_0x23e040,_0x52836d,_0x21e4d6){return _0xd0b0c8(_0x35fe29-0x10e,_0x21e4d6- -0x1fc,_0x35fe29,_0x21e4d6-_0x48523f._0xc6a8bf);}return this[_0x162413(0x532,_0x2be29d._0x342af3,_0x2be29d._0x4d2415,0x491)][_0x162413(_0x2be29d._0x5d9575,_0x2be29d._0x3d2b21,_0x2be29d._0x20dc75,0x44d)](_0x1f79e8);}async[_0xd0b0c8(0x69b,0x639,0x64c,0x6bd)](_0x13ea60){const _0x30f418={_0x1039dc:0x494,_0x551f8f:0x32d,_0x337578:0x289,_0xf5ab72:0x3a2,_0x5b721d:0x373},_0x28f971={_0x25687e:0x7e},_0x58a5d0={_0x20d315:0xa7};function _0x5c0e7d(_0x2774f6,_0x53e808,_0x36dc7d,_0x5913a1){return _0xd0b0c8(_0x2774f6-_0x58a5d0._0x20d315,_0x53e808- -0x38e,_0x2774f6,_0x5913a1-0x29);}function _0x4b793d(_0xe0e758,_0x3e6c5e,_0x2dbb20,_0x449913){return _0xd0b0c8(_0xe0e758-_0x28f971._0x25687e,_0xe0e758- -0x2c8,_0x3e6c5e,_0x449913-0x11);}return await this[_0x4b793d(0x3c5,0x413,_0x30f418._0x1039dc,_0x30f418._0x551f8f)][_0x4b793d(0x371,_0x30f418._0x337578,_0x30f418._0xf5ab72,_0x30f418._0x5b721d)](_0x13ea60);}[_0xd0b0c8(0x54d,0x641,0x5da,0x59a)](_0x12beb5){const _0x328a2b={_0x5632a7:0x67,_0xda10b9:0xd0,_0x3d0caf:0x35,_0x372fce:0xc5,_0x326186:0x143,_0x3f3512:0x4a,_0x92a4:0x12e,_0x1c08e7:0x3d},_0x3b0d8d={_0x4a86b3:0x66},_0x2c20f7={_0x1b0921:0x59d},_0x2ef7ce=this[_0x2d2171(-_0x328a2b._0x5632a7,-_0x328a2b._0xda10b9,-0xd,-_0x328a2b._0x3d0caf)][_0x44d1ee(_0x328a2b._0x372fce,_0x328a2b._0x326186,_0x328a2b._0x3f3512,0x139)](_0x12beb5);function _0x2d2171(_0x3ba013,_0x3a11e4,_0x1c37a5,_0x3f0217){return _0xd0b0c8(_0x3ba013-0xe6,_0x3f0217- -_0x2c20f7._0x1b0921,_0x3a11e4,_0x3f0217-0x11);}function _0x44d1ee(_0x4c33f5,_0x22ea7b,_0x31c16d,_0x30359c){return _0x495204(_0x31c16d,_0x30359c- -0x101,_0x31c16d-0x193,_0x30359c-_0x3b0d8d._0x4a86b3);}if(!_0x2ef7ce)throw new Error(_0x2d2171(-0x63,-0xa,_0x328a2b._0x92a4,_0x328a2b._0x1c08e7)+_0x12beb5);return _0x2ef7ce;}async[_0xd0b0c8(0x5b6,0x68e,0x680,0x754)](_0x54df01,_0x81975b){const _0x2c4420={_0xb2eef1:0x22a,_0x3dca66:0x198,_0x3cedf2:0x1b4,_0x2f9d80:0x2ac,_0x5e54c2:0x50f,_0x5cdff9:0x42f,_0x4c965f:0x4e6,_0x2b8ed1:0x343,_0x85bb4c:0x3db,_0x304a93:0x3f9,_0x2bee82:0x4b5,_0x1d8c89:0x16f,_0x1e96a0:0x41a,_0x5cd4db:0x385,_0x51f134:0x2d1,_0x406127:0x186,_0x5fe214:0x218},_0x3f42f9={_0x3a06fd:0x76,_0x147179:0x491,_0x2e89cc:0x144},_0x2e2bbf={_0x5132d4:0xe6};function _0x4e955e(_0x5d2e05,_0x3f5285,_0x53c20,_0x219450){return _0x495204(_0x53c20,_0x3f5285-_0x2e2bbf._0x5132d4,_0x53c20-0x1aa,_0x219450-0x70);}const _0x1e8a2c=toModelRequest(_0x54df01),_0x5e3f4b=await prepareProviderRequest(_0x1e8a2c,{'sessionManager':this[_0x3a9aa8(_0x2c4420._0xb2eef1,_0x2c4420._0x3dca66,_0x2c4420._0x3cedf2,_0x2c4420._0x2f9d80)],'requestMutators':this[_0x4e955e(_0x2c4420._0x5e54c2,_0x2c4420._0x5cdff9,0x4bb,_0x2c4420._0x4c965f)],'signal':_0x81975b});function _0x3a9aa8(_0x3e2c43,_0x2a2889,_0x2cabdc,_0x137b2f){return _0xd0b0c8(_0x3e2c43-_0x3f42f9._0x3a06fd,_0x3e2c43- -_0x3f42f9._0x147179,_0x137b2f,_0x137b2f-_0x3f42f9._0x2e89cc);}const _0xdd99bf=toChatRequest(_0x5e3f4b[_0x4e955e(0x41d,_0x2c4420._0x2b8ed1,_0x2c4420._0x85bb4c,0x30b)]),_0x15b2c8=this[_0x4e955e(_0x2c4420._0x304a93,0x455,_0x2c4420._0x2bee82,0x467)][_0x3a9aa8(0x86,_0x2c4420._0x1d8c89,0xe6,0x0)](this['apiKey'],_0x5e3f4b[_0x4e955e(_0x2c4420._0x1e96a0,_0x2c4420._0x5cd4db,_0x2c4420._0x51f134,0x457)]);if(!_0x15b2c8)throw this['createMissingCredentialError']();return{'baseUrl':this['providerAdapter'][_0x3a9aa8(0x219,_0x2c4420._0x406127,0x277,_0x2c4420._0x5fe214)](this['baseUrl'],_0x5e3f4b['session']),'credential':_0x15b2c8,'request':_0xdd99bf,'session':_0x5e3f4b[_0x4e955e(0x2d9,0x385,0x432,0x32c)]};}[_0x495204(0x267,0x2ce,0x3a3,0x378)](_0x2095ce){const _0x2d1db2={_0x5f1208:0x27,_0x322cab:0x64,_0x677ed9:0x21,_0x37df61:0x74,_0x4704f1:0x8b,_0x31c1f4:0x9c,_0x1df733:0xae,_0x985d9b:0xcc},_0x5a73ce={_0xaaf16c:0x2b1,_0x1139b9:0x1f},_0x251fa2={_0x7f8077:0x5c4,_0x450dc5:0x1ef};function _0x4b76a7(_0x279212,_0x30815b,_0x38f084,_0xa5c2b0){return _0xd0b0c8(_0x279212-0xfd,_0x279212- -_0x251fa2._0x7f8077,_0x38f084,_0xa5c2b0-_0x251fa2._0x450dc5);}function _0x1c07b8(_0xb75f7,_0x86bd51,_0x276ca1,_0x19428f){return _0x495204(_0xb75f7,_0x86bd51- -_0x5a73ce._0xaaf16c,_0x276ca1-0xab,_0x19428f-_0x5a73ce._0x1139b9);}return{...structuredClone(_0x2095ce),..._0x2095ce[_0x4b76a7(0x21,-_0x2d1db2._0x5f1208,-_0x2d1db2._0x322cab,-0xce)]===void 0x0&&this[_0x4b76a7(_0x2d1db2._0x677ed9,-_0x2d1db2._0x37df61,-0xb9,-_0x2d1db2._0x4704f1)]!==void 0x0?{'reasoning':structuredClone(this[_0x1c07b8(-_0x2d1db2._0x31c1f4,0x16,_0x2d1db2._0x1df733,-_0x2d1db2._0x985d9b)])}:{}};}async[_0x495204(0x468,0x37d,0x428,0x46e)](_0x38eacc,_0x30ed01,_0x4120d2,_0x1d826d={},_0xe5d81d=!![]){const _0x87a057={_0x30c5e3:0x517,_0x3aa1ad:0x4c4,_0x462d9d:0x48d,_0x5914e5:0x519,_0xaabf59:0x676,_0x3a126c:0x5d6,_0xb3402c:0x75,_0x282324:0xd,_0x151294:0x5,_0x571ed7:0x4db,_0x13ef8a:0x474,_0x449fa0:0x3a0,_0x4b2e07:0x446,_0x1c0d23:0x1c6,_0x1b552c:0x8c,_0x40fc10:0xe9,_0x36283b:0xc7,_0x17c5d9:0x149,_0x35812b:0xb3,_0xa1da89:0x120,_0x132a6a:0x60c,_0x2feda3:0x4f6,_0x4dcc9a:0x4a9,_0x3bcd65:0x56e,_0x4d7334:0x640,_0x591cf0:0x48a,_0x502fdf:0x4cf,_0x52db8f:0x40e,_0x457491:0x5be,_0x20345e:0x5f5,_0x2da298:0x3f,_0x2a9b1d:0x520,_0x15db8a:0x664,_0x231d3d:0x17b,_0x5c3a0c:0x4a,_0x822141:0x55d,_0x1dabf7:0x546,_0x4ce41c:0x57a,_0x5d4810:0x132,_0x2ee7d5:0x32,_0x3b7561:0x5d,_0x3db6fe:0x101,_0x8e73e2:0x5f0,_0x517f74:0x5bb,_0x1d288c:0x5d8,_0x24a0bb:0x5b5,_0x3654b7:0x5c5,_0x46ab49:0x6b0,_0x233499:0x593,_0x1b5ae3:0x557},{signal:_0x4b6c3a}=_0x1d826d,_0x2a0605=async()=>{const _0x47fcb0={_0x5a853d:0x2b4},_0x4e7040={_0x7cf891:0x2f9},_0x2f33f4=await this['prepareChatRequest'](_0x38eacc,_0x4b6c3a);let _0x1be1d8;function _0x60f9e8(_0x2205d7,_0xce8b55,_0xfbb43e,_0x1d17e2){return _0x5dc3(_0x1d17e2- -_0x4e7040._0x7cf891,_0x2205d7);}function _0x59e8be(_0x5e07e7,_0x2c1743,_0x217e2d,_0x377070){return _0x5dc3(_0x2c1743-_0x47fcb0._0x5a853d,_0x217e2d);}try{_0x1be1d8=_0x30ed01[_0x59e8be(0x5ef,_0x87a057._0x30c5e3,_0x87a057._0x3aa1ad,0x5f3)](_0x2f33f4[_0x59e8be(0x4ea,_0x87a057._0x462d9d,0x458,_0x87a057._0x5914e5)]);}catch(_0x12ea68){if(_0x12ea68 instanceof Error)throw new ProviderRequestConstructionError(_0x12ea68[_0x59e8be(_0x87a057._0xaabf59,_0x87a057._0x3a126c,0x52a,0x574)]);throw _0x12ea68;}if(!_0x1be1d8[_0x60f9e8(_0x87a057._0xb3402c,0xba,_0x87a057._0x282324,-_0x87a057._0x151294)])throw new ProviderRequestConstructionError(_0x59e8be(_0x87a057._0x571ed7,_0x87a057._0x13ef8a,_0x87a057._0x449fa0,_0x87a057._0x4b2e07)+_0x30ed01['id']+_0x60f9e8(-_0x87a057._0x1c0d23,-_0x87a057._0x1b552c,-0x194,-0xeb));const _0x2b5beb=await this[_0x60f9e8(0x3,-_0x87a057._0x40fc10,-0x134,-_0x87a057._0x36283b)]({'request':_0x2f33f4[_0x60f9e8(-0xe1,-_0x87a057._0x17c5d9,-_0x87a057._0x35812b,-_0x87a057._0xa1da89)],'body':_0x1be1d8[_0x59e8be(_0x87a057._0x132a6a,0x593,0x679,_0x87a057._0x2feda3)],'credential':_0x2f33f4[_0x59e8be(_0x87a057._0x4dcc9a,_0x87a057._0x3bcd65,0x4db,_0x87a057._0x4d7334)],'session':_0x2f33f4[_0x59e8be(_0x87a057._0x591cf0,_0x87a057._0x502fdf,0x549,_0x87a057._0x52db8f)],'stream':_0x4120d2},{'accept':_0x1be1d8[_0x59e8be(0x648,_0x87a057._0x457491,_0x87a057._0x20345e,0x58a)]??(_0x4120d2?_0x60f9e8(-0xaa,-_0x87a057._0x2da298,0x0,-0xbd):'application/json'),'includeContentType':_0x1be1d8[_0x59e8be(_0x87a057._0x2a9b1d,0x593,_0x87a057._0x15db8a,0x4b1)]!==void 0x0});for(const [_0xddc9a6,_0x5c42fd]of Object['entries'](_0x1be1d8[_0x60f9e8(-0x2b,-_0x87a057._0x231d3d,_0x87a057._0x5c3a0c,-0x87)]??{})){_0x2b5beb[_0x59e8be(_0x87a057._0x822141,_0x87a057._0x1dabf7,0x50d,_0x87a057._0x4ce41c)](_0xddc9a6,_0x5c42fd);}return this['fetchImpl'](''+_0x2f33f4[_0x60f9e8(-_0x87a057._0x5d4810,-_0x87a057._0x2ee7d5,-_0x87a057._0x3b7561,-_0x87a057._0x3db6fe)]+_0x1be1d8[_0x59e8be(_0x87a057._0x8e73e2,0x5a8,_0x87a057._0x517f74,_0x87a057._0x1d288c)],{'method':_0x59e8be(_0x87a057._0x24a0bb,_0x87a057._0x3654b7,0x5cb,_0x87a057._0x46ab49),'headers':_0x2b5beb,..._0x1be1d8[_0x59e8be(0x653,_0x87a057._0x233499,_0x87a057._0x1b5ae3,0x650)]!==void 0x0?{'body':JSON['stringify'](_0x1be1d8['body'])}:{},'signal':_0x4b6c3a});};return _0xe5d81d?await this['sendWithRetries'](_0x2a0605,_0x1d826d):await _0x2a0605();}async*[_0xd0b0c8(0x518,0x538,0x561,0x60a)](_0x44dca3,_0x6bc2c1,_0x50960f={}){const _0x43934c={_0x81c82b:0x3f1,_0xc5e566:0x3bd,_0x532c3e:0x30f,_0x3d50b0:0x11e,_0x2f74fb:0x20b,_0x14b8b6:0xaa,_0x2e920c:0x146,_0xc9a927:0x274,_0xa89b17:0x2c3,_0x18b61c:0x12e,_0x33f119:0x19d,_0x69e241:0x1c9,_0x942da8:0xdb,_0x1bb24e:0xa5,_0x39c7fe:0x36b,_0x3efee9:0x270,_0x15e315:0x38f,_0x11c640:0x1de,_0x459b30:0x22d,_0xcf22be:0x283,_0x180ba8:0x2cc,_0x51529d:0x2b7,_0x1249c9:0xc6,_0x4ff7be:0x70,_0xeb79bf:0x18e,_0x2c78cd:0x27d,_0x2b304a:0x241,_0xd57ca6:0x20c,_0x18e2c1:0x2fb,_0x573891:0x74,_0x296eec:0x9a,_0x11b55a:0x1fd,_0x37d492:0x1ce,_0x36d0e8:0x1d2,_0x5e78ed:0x26b,_0x2b6748:0x261,_0x4af1f7:0xad,_0x160314:0x230,_0x5c9d05:0x11b,_0x5e2c61:0x171,_0x7d8916:0x1b4,_0x64669c:0xc5,_0x270203:0x11d},_0x1a02b0={_0x3d0f38:0x39,_0x124ab5:0x12f},{signal:_0x49afb4}=_0x50960f;function _0x1f1f93(_0x7d46c5,_0x3bd260,_0x32d2b8,_0x1cbef9){return _0xd0b0c8(_0x7d46c5-0x177,_0x1cbef9- -0x38c,_0x3bd260,_0x1cbef9-0x1e8);}let _0x1c1f03=![];function _0x3e2a28(_0x458d5a,_0x17ed31,_0xe7a5d6,_0x3a6daf){return _0xd0b0c8(_0x458d5a-_0x1a02b0._0x3d0f38,_0x3a6daf- -0x4f2,_0x17ed31,_0x3a6daf-_0x1a02b0._0x124ab5);}for(let _0x52f967=0x0;_0x52f967<MAX_PROVIDER_REQUEST_ATTEMPTS;_0x52f967+=0x1){let _0x51c621=![];try{const _0xe9d827=await this[_0x1f1f93(0x3e4,_0x43934c._0x81c82b,_0x43934c._0xc5e566,_0x43934c._0x532c3e)](_0x44dca3,_0x6bc2c1,!![],_0x50960f,![]);if(_0xe9d827[_0x3e2a28(_0x43934c._0x3d50b0,_0x43934c._0x2f74fb,_0x43934c._0x14b8b6,_0x43934c._0x2e920c)]===0x191&&this[_0x1f1f93(_0x43934c._0xc9a927,_0x43934c._0xa89b17,0x331,0x32f)]&&!_0x1c1f03){_0x1c1f03=!![],this[_0x3e2a28(_0x43934c._0x18b61c,_0x43934c._0x33f119,0x26c,_0x43934c._0x69e241)]['invalidate']();continue;}if(!_0xe9d827['ok']){const _0x56e936=await this['toApiError'](_0xe9d827);if(!this[_0x1f1f93(_0x43934c._0x942da8,0xfc,0x258,0x1cd)](_0xe9d827)||_0x52f967===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x56e936;const _0x84887=this[_0x3e2a28(0x1b,_0x43934c._0x1bb24e,-0x3e,0x37)](_0xe9d827,_0x52f967),_0x3aed54={'type':'provider_retry','attempt':_0x52f967+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x56e936['message'],'delayMs':_0x84887,'reason':_0x1f1f93(_0x43934c._0x39c7fe,_0x43934c._0x3efee9,_0x43934c._0x15e315,0x29f),'status':_0xe9d827[_0x3e2a28(0x1e0,0x12d,_0x43934c._0x11c640,_0x43934c._0x2e920c)]};yield _0x3aed54,await this[_0x1f1f93(0x237,0x298,_0x43934c._0x459b30,_0x43934c._0xcf22be)](_0x84887,_0x49afb4);continue;}const _0x22b13f=_0x6bc2c1[_0x1f1f93(0x2ee,0x1d5,0x18f,0x255)]?.(_0x44dca3);if(!_0x22b13f?.[_0x1f1f93(_0x43934c._0x180ba8,_0x43934c._0x51529d,0x19e,0x27d)])throw new Error(_0x3e2a28(0x72,0x137,_0x43934c._0x1249c9,_0x43934c._0x4ff7be)+_0x6bc2c1['id']+'\x20cannot\x20parse\x20SSE\x20events');for await(const _0x4b8889 of iterateSseEvents(_0xe9d827,_0x49afb4)){const _0x500935=_0x22b13f[_0x1f1f93(0x27e,_0x43934c._0xeb79bf,0x2d5,_0x43934c._0x2c78cd)](_0x4b8889);for(const _0x315679 of _0x500935){_0x51c621=!![],yield _0x315679;}}yield{'type':_0x1f1f93(0x336,_0x43934c._0x2b304a,_0x43934c._0xd57ca6,_0x43934c._0x18e2c1),'response':_0x22b13f[_0x3e2a28(0x26,_0x43934c._0x573891,0x160,_0x43934c._0x296eec)]()};return;}catch(_0x57ef06){if(_0x51c621||!this[_0x1f1f93(_0x43934c._0x11b55a,0x14e,0xf4,_0x43934c._0x37d492)](_0x57ef06)||_0x52f967===MAX_PROVIDER_REQUEST_ATTEMPTS-0x1)throw _0x57ef06;const _0x432b62=this['getRetryDelayMs'](void 0x0,_0x52f967),_0x1b894e={'type':'provider_retry','attempt':_0x52f967+0x1,'maxAttempts':MAX_PROVIDER_REQUEST_ATTEMPTS,'error':_0x57ef06 instanceof Error?_0x57ef06[_0x3e2a28(0x13b,0x1bf,_0x43934c._0x11b55a,_0x43934c._0x36d0e8)]:String(_0x57ef06),'delayMs':_0x432b62,'reason':this[_0x1f1f93(_0x43934c._0x5e78ed,0x30e,0x22a,_0x43934c._0x2b6748)](_0x57ef06)?_0x1f1f93(0x28c,0x1aa,0x1be,0x1d3):_0x3e2a28(_0x43934c._0x4af1f7,_0x43934c._0x160314,_0x43934c._0x5c9d05,_0x43934c._0x5e2c61)};yield _0x1b894e,await this[_0x3e2a28(0x18f,_0x43934c._0x7d8916,_0x43934c._0x64669c,_0x43934c._0x270203)](_0x432b62,_0x49afb4);}}}async*[_0xd0b0c8(0x6aa,0x5f2,0x5ac,0x614)](_0x351672,_0x1ab5fc,_0x12e2b3){const _0x707fff={_0x55d75a:0x5a0,_0x5a5b4d:0x567,_0xb4beb1:0x559,_0x207204:0x4b0,_0x580812:0x591,_0x4ff9b5:0x55,_0x379361:0x42,_0x33f473:0x40b,_0x1121c9:0x475,_0x1860f2:0x4c4,_0x3f844b:0x55a,_0x4675fa:0x53d,_0x1071a8:0x6c9,_0x1e4806:0x699,_0x34580e:0x5e,_0x2b6d3a:0x5e2,_0x43f05e:0x63f,_0x27b724:0x625,_0x5b10c2:0xe1,_0x4d5efc:0xc3,_0x137fca:0x60,_0x229cd5:0x25,_0x6e0132:0x23,_0x551076:0x1,_0x27753d:0x5c,_0x51e5d0:0x77,_0x401834:0x192,_0x3dde7f:0x3d,_0x21e9ab:0xb5,_0x529569:0x5ca,_0xb39338:0x548,_0xe0ee17:0x5be,_0x481fe6:0x59d,_0x876864:0xb7,_0x265076:0x9f,_0x28753f:0x5d,_0x19769c:0x100,_0x48a991:0x130,_0x1be1ef:0x3f,_0x206a09:0x5ab,_0x27cb10:0x555,_0x17f727:0x60e,_0xa344d1:0x398,_0x4913e9:0x49d,_0x46e172:0x6d2,_0x20c301:0x657,_0x5697f5:0x60d,_0x4faae1:0x4f,_0x1af6bf:0x564,_0x3fa2e8:0x629,_0x57e6f6:0x675,_0x4edfb9:0x5b5,_0x247023:0x5c0,_0x4d1460:0x488,_0x40bf9c:0x480,_0x320d70:0xb0,_0x54054e:0x55e,_0x3456e5:0x535,_0x82a36c:0x4ee,_0x367852:0x5f5,_0xfde7ac:0x5e4,_0xc5f035:0xb,_0x47dd70:0x3b,_0x4f9087:0x6d,_0x391b5a:0x675,_0x598608:0x5a7,_0x271cd2:0x583,_0x330a12:0x5d1},_0x1eaab6={_0x47ad6a:0x195},_0xe60641={_0x56acd4:0x1d6};function _0x24bdcb(_0x512134,_0x453b9f,_0x55d114,_0x214b70){return _0x495204(_0x453b9f,_0x214b70- -0x2b9,_0x55d114-_0xe60641._0x56acd4,_0x214b70-0xdc);}const _0x2142da=await this['prepareChatRequest'](_0x351672,_0x12e2b3),_0x34c0fb=_0x1ab5fc[_0x5350e5(0x4af,_0x707fff._0x55d75a,0x58b,_0x707fff._0x5a5b4d)](_0x2142da['request']);function _0x5350e5(_0x2d920c,_0xcd0822,_0x170771,_0x1b406b){return _0xd0b0c8(_0x2d920c-_0x1eaab6._0x47ad6a,_0x1b406b- -0x9e,_0xcd0822,_0x1b406b-0x1ca);}const _0x5b251f=_0x1ab5fc[_0x5350e5(_0x707fff._0xb4beb1,_0x707fff._0x207204,_0x707fff._0x580812,0x543)]?.(_0x351672);if(!_0x5b251f?.[_0x24bdcb(-0x7d,-_0x707fff._0x4ff9b5,-_0x707fff._0x379361,-0xb9)])throw new Error(_0x5350e5(_0x707fff._0x33f473,0x533,_0x707fff._0x1121c9,_0x707fff._0x1860f2)+_0x1ab5fc['id']+_0x5350e5(0x4d7,0x558,0x5f0,_0x707fff._0x3f844b));const _0x3f914c=_0x34c0fb[_0x5350e5(0x5eb,0x5df,0x45a,_0x707fff._0x4675fa)]??(_0x34c0fb[_0x5350e5(_0x707fff._0x1071a8,0x58f,_0x707fff._0x1e4806,0x5f8)]?(''+_0x2142da['baseUrl']+_0x34c0fb['path'])[_0x24bdcb(0x1ad,_0x707fff._0x34580e,0x1bc,0xec)](/^http:/,_0x24bdcb(-0xa8,-0x43,-0x114,-0xc9))[_0x5350e5(_0x707fff._0x2b6d3a,0x642,_0x707fff._0x43f05e,_0x707fff._0x27b724)](/^https:/,_0x24bdcb(-_0x707fff._0x5b10c2,-_0x707fff._0x4d5efc,-_0x707fff._0x137fca,-0x48)):void 0x0);if(!_0x3f914c)throw new ProviderRequestConstructionError(_0x5350e5(0x49f,0x436,0x507,_0x707fff._0x1860f2)+_0x1ab5fc['id']+'\x20did\x20not\x20provide\x20a\x20WebSocket\x20URL\x20or\x20path');const _0x2ce30f=await this['createHeaders']({'request':_0x2142da[_0x24bdcb(_0x707fff._0x229cd5,_0x707fff._0x6e0132,_0x707fff._0x551076,-_0x707fff._0x27753d)],'body':_0x34c0fb[_0x24bdcb(_0x707fff._0x51e5d0,_0x707fff._0x401834,-_0x707fff._0x3dde7f,_0x707fff._0x21e9ab)],'credential':_0x2142da[_0x5350e5(0x5e1,_0x707fff._0x529569,_0x707fff._0xb39338,_0x707fff._0xe0ee17)],'session':_0x2142da['session'],'stream':!![]},{'accept':_0x34c0fb['accept']??_0x5350e5(_0x707fff._0x481fe6,0x56f,0x6ba,0x631),'includeContentType':![]});for(const [_0x1706b9,_0x6efde9]of Object['entries'](_0x34c0fb[_0x24bdcb(-0x97,_0x707fff._0x876864,0x42,0x3d)]??{})){_0x2ce30f[_0x24bdcb(-0x1c,0x118,_0x707fff._0x265076,_0x707fff._0x28753f)](_0x1706b9,_0x6efde9);}_0x2ce30f[_0x24bdcb(_0x707fff._0x19769c,_0x707fff._0x48a991,0x71,_0x707fff._0x1be1ef)](_0x5350e5(_0x707fff._0x206a09,0x5bd,_0x707fff._0x27cb10,_0x707fff._0x17f727));const _0x5cfa10=this[_0x5350e5(0x4db,_0x707fff._0xa344d1,_0x707fff._0x4913e9,0x482)]({'headers':Object[_0x5350e5(_0x707fff._0x46e172,_0x707fff._0x20c301,0x611,_0x707fff._0x5697f5)](_0x2ce30f[_0x24bdcb(0x67,-0x137,-0x4a,-_0x707fff._0x4faae1)]()),'url':_0x3f914c});try{throwIfAborted(_0x12e2b3);_0x5cfa10[_0x5350e5(0x58c,_0x707fff._0x1af6bf,_0x707fff._0x3fa2e8,0x551)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x5cfa10,_0x12e2b3);throwIfAborted(_0x12e2b3);_0x34c0fb['initialEvent']!==void 0x0&&_0x5cfa10[_0x5350e5(_0x707fff._0x57e6f6,0x564,_0x707fff._0x4edfb9,_0x707fff._0x247023)](JSON['stringify'](_0x34c0fb['initialEvent']));for await(const _0x2aa2f4 of iterateWebSocketMessages(_0x5cfa10,_0x12e2b3)){yield*_0x5b251f[_0x5350e5(0x4ef,_0x707fff._0x4d1460,0x4c2,_0x707fff._0x40bf9c)](_0x2aa2f4);if(_0x5b251f['isDone']?.())break;}yield{'type':_0x24bdcb(-0x23,-0x36,0x189,_0x707fff._0x320d70),'response':_0x5b251f[_0x5350e5(_0x707fff._0x54054e,_0x707fff._0x3456e5,0x435,_0x707fff._0x82a36c)]()};}finally{_0x5cfa10['readyState']===WebSocket[_0x5350e5(0x567,0x600,_0x707fff._0x367852,_0x707fff._0xfde7ac)]&&_0x5cfa10[_0x24bdcb(-_0x707fff._0xc5f035,-_0x707fff._0x47dd70,0x31,-_0x707fff._0x4f9087)](0x3e8,_0x12e2b3?.[_0x5350e5(_0x707fff._0x391b5a,0x5ec,_0x707fff._0x598608,_0x707fff._0x271cd2)]?_0x5350e5(_0x707fff._0x330a12,0x4ad,0x5e3,0x583):'completed');}}};async function createHttpError(_0x59e6dc){const _0x1716a2={_0x39cae6:0x575,_0x443cf9:0x6a1,_0x553e21:0x2f},_0x23847e={_0x563f5b:0x141,_0x5c5a54:0x537,_0x242cc1:0x1da},_0xb7a46e={_0x1aec70:0x2a4,_0x5580cf:0x1b4,_0x2de1ee:0x1a};function _0x25d754(_0x5ebaf7,_0x5f0fd3,_0x13c189,_0x3bff5f){return _0x495204(_0x5ebaf7,_0x13c189-_0xb7a46e._0x1aec70,_0x13c189-_0xb7a46e._0x5580cf,_0x3bff5f-_0xb7a46e._0x2de1ee);}function _0x2d14db(_0x348f1d,_0xa0114e,_0x328fc5,_0x40ce87){return _0xd0b0c8(_0x348f1d-_0x23847e._0x563f5b,_0x328fc5- -_0x23847e._0x5c5a54,_0x40ce87,_0x40ce87-_0x23847e._0x242cc1);}const _0x3484ec=await _0x59e6dc['text'](),_0x4b429e=_0x3484ec[_0x25d754(0x473,0x3f0,0x4ba,0x4f5)]()||_0x59e6dc[_0x25d754(_0x1716a2._0x39cae6,_0x1716a2._0x443cf9,0x61e,0x531)]||'Unknown\x20provider\x20error';return new Error(_0x2d14db(0x37,-0x3f,_0x1716a2._0x553e21,0x8c)+_0x59e6dc['status']+':\x20'+_0x4b429e);}var AnthropicProviderAdapter=class{[_0xd0b0c8(0x670,0x5c3,0x66c,0x510)];[_0x495204(0x35c,0x2e3,0x331,0x21e)];[_0x495204(0x1ad,0x1ce,0x2ac,0x146)];constructor(_0x19ec14){const _0x565e37={_0x23bf9d:0x55,_0x50f794:0x13d,_0x20770a:0xbc,_0x16eb91:0x17b,_0x4c6511:0xf9,_0x15839d:0xeb,_0x7166b1:0x251,_0x145e8d:0x213,_0x5f0431:0x120,_0x4fa0f7:0xc6,_0x414221:0xb},_0x59da31={_0x6ce8c8:0x1c3};function _0x4c2506(_0x130366,_0x49a94c,_0x11e8ba,_0x558942){return _0x495204(_0x11e8ba,_0x130366- -0x168,_0x11e8ba-0x5d,_0x558942-0x1d0);}function _0x2a3099(_0x534502,_0x2ee565,_0x467426,_0x6b4c7e){return _0x495204(_0x6b4c7e,_0x467426- -_0x59da31._0x6ce8c8,_0x467426-0x2a,_0x6b4c7e-0xa4);}this[_0x4c2506(0x13d,_0x565e37._0x23bf9d,0x173,0x17b)]=_0x19ec14[_0x4c2506(_0x565e37._0x50f794,_0x565e37._0x20770a,0xea,_0x565e37._0x23bf9d)],this[_0x4c2506(_0x565e37._0x16eb91,_0x565e37._0x4c6511,_0x565e37._0x15839d,_0x565e37._0x7166b1)]=_0x19ec14[_0x2a3099(_0x565e37._0x145e8d,0x205,_0x565e37._0x5f0431,0x2e)],this[_0x2a3099(_0x565e37._0x4fa0f7,0xe,_0x565e37._0x414221,0x11)]=_0x19ec14['protocolVersion'];}[_0x495204(0x2b9,0x2ca,0x31c,0x3a6)](){return new Error('AnthropicModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0xd0b0c8(0x566,0x5d4,0x59a,0x586)](_0x4fe7c5,_0x40e4eb){const _0x43b86d={_0x3d401f:0x6ad,_0x1096bc:0x6a5,_0x37b9e9:0x6a5,_0x5a47b8:0x5f0,_0x868b8e:0xab,_0x252958:0x147,_0x818140:0x210,_0x134043:0x235,_0x1d8170:0x5fe,_0x4617b7:0x57d,_0x530c83:0x5ba,_0x3d77b6:0x63e,_0x4fdf24:0x6d8,_0x18702c:0x5ed,_0x31a657:0x5d7,_0x3e729d:0x71,_0x380b2d:0xaf,_0x34e79d:0x19f,_0xf3735e:0x18a,_0x5340e3:0x62c,_0xcf9e8f:0x570,_0x2d6429:0x4df,_0x355d73:0x57a,_0x124ad9:0x6da,_0x51a501:0x715,_0x57415d:0x668,_0x49f3ec:0x5db,_0x4834e9:0x67a,_0x3be2db:0x12d,_0x1419c7:0x45,_0x567433:0x7f,_0x571c65:0xab,_0x5c6d4d:0x1a7,_0x3833b9:0x10c,_0x5aafe2:0x23,_0x1b53d7:0x3b,_0x4603eb:0x62e,_0x280a6d:0x5ab,_0x229814:0x50a,_0x147334:0x59f,_0x31414d:0x5fa,_0x5bd3a2:0x68a,_0x2bfb22:0x8d,_0x53f66b:0x606,_0x1d5044:0x5f1,_0x2e939d:0x5e5,_0x2658c5:0x5b6,_0x2a73c9:0x637,_0x273f1c:0x662},_0x359d0={_0x5e3773:0x3c1,_0x433b07:0x3d,_0x14dd47:0x8c},_0x9c1491=new Headers();_0x9c1491['set'](_0x21b800(_0x43b86d._0x3d401f,_0x43b86d._0x1096bc,0x621,0x656),_0x40e4eb[_0x21b800(0x792,_0x43b86d._0x37b9e9,0x78c,_0x43b86d._0x5a47b8)]);function _0x21b800(_0x5c181,_0x2ebe05,_0x270fe9,_0x406e4d){return _0x495204(_0x406e4d,_0x2ebe05-0x317,_0x270fe9-0x18,_0x406e4d-0xb8);}function _0x55c70a(_0x4735d4,_0x274c92,_0x104687,_0x4b1d32){return _0x495204(_0x4735d4,_0x104687- -_0x359d0._0x5e3773,_0x104687-_0x359d0._0x433b07,_0x4b1d32-_0x359d0._0x14dd47);}_0x9c1491[_0x55c70a(0x49,-0x24,-_0x43b86d._0x868b8e,-0xb8)](_0x55c70a(-_0x43b86d._0x252958,-0x2cb,-0x1db,-0x1cf),this[_0x55c70a(-0x131,-_0x43b86d._0x818140,-0x1f3,-_0x43b86d._0x134043)]);_0x40e4eb[_0x21b800(_0x43b86d._0x1d8170,_0x43b86d._0x4617b7,_0x43b86d._0x530c83,_0x43b86d._0x3d77b6)]!==![]&&_0x9c1491['set'](_0x21b800(_0x43b86d._0x4fdf24,0x63d,_0x43b86d._0x18702c,_0x43b86d._0x31a657),_0x55c70a(0x8e,-_0x43b86d._0x3e729d,-0x10,_0x43b86d._0x380b2d));this[_0x55c70a(-_0x43b86d._0x34e79d,-0x15d,-0x11c,-_0x43b86d._0xf3735e)]===_0x21b800(_0x43b86d._0x5340e3,_0x43b86d._0xcf9e8f,_0x43b86d._0x2d6429,_0x43b86d._0x355d73)?_0x9c1491[_0x21b800(_0x43b86d._0x124ad9,0x62d,_0x43b86d._0x51a501,0x549)](_0x21b800(0x6dc,0x646,_0x43b86d._0x57415d,0x56f),_0x21b800(0x53b,_0x43b86d._0x49f3ec,_0x43b86d._0x4834e9,0x5e6)+_0x4fe7c5['credential'][_0x55c70a(-0x1d2,-0xdb,-_0x43b86d._0x3be2db,-_0x43b86d._0x1419c7)]):_0x9c1491[_0x55c70a(-_0x43b86d._0x567433,-0x77,-_0x43b86d._0x571c65,-0x140)](_0x55c70a(-0x3,-_0x43b86d._0x5c6d4d,-0xe5,-_0x43b86d._0x3833b9),_0x4fe7c5[_0x55c70a(_0x43b86d._0x5aafe2,_0x43b86d._0x1b53d7,-0x83,0x4f)][_0x21b800(_0x43b86d._0x4603eb,_0x43b86d._0x280a6d,_0x43b86d._0x229814,_0x43b86d._0x147334)]);const _0x1e87ca=await this[_0x21b800(0x5c0,_0x43b86d._0x31414d,_0x43b86d._0x5bd3a2,0x587)]?.({'body':_0x4fe7c5[_0x55c70a(_0x43b86d._0x2bfb22,-0x14c,-0x5e,-0xff)],'credential':_0x4fe7c5['credential'],'request':_0x4fe7c5[_0x21b800(_0x43b86d._0x53f66b,0x574,0x517,_0x43b86d._0x1d5044)],'session':_0x4fe7c5[_0x21b800(_0x43b86d._0x2e939d,_0x43b86d._0x2658c5,0x506,_0x43b86d._0x2a73c9)],'stream':_0x4fe7c5['stream']});for(const [_0x2b6560,_0x3d5ac6]of Object[_0x21b800(_0x43b86d._0x273f1c,0x581,0x63d,0x668)](_0x1e87ca??{})){_0x9c1491['set'](_0x2b6560,_0x3d5ac6);}return _0x9c1491;}['mapApiError'](_0x3b158d){return _0x3b158d;}[_0xd0b0c8(0x790,0x6aa,0x61d,0x77a)](_0x140f31,_0x3e910d){return resolveSessionBaseUrl(_0x140f31,_0x3e910d);}[_0x495204(0x2e3,0x1f9,0x2e8,0x1be)](_0x2b4b98,_0x52c811){return resolveApiCredential(_0x2b4b98,_0x52c811);}async[_0x495204(0x310,0x31b,0x40a,0x343)](_0x2e94b5){return await createHttpError(_0x2e94b5);}},AnthropicModel=class extends RoutedModel{constructor(_0x59ca03={}){const _0x18bc2a={_0x354037:0xb1,_0x34bb06:0xc1,_0x4a6d0c:0x17a,_0x4ecff5:0xc9,_0x5f3b01:0x16c,_0x46b26b:0xbb,_0x2233cd:0x16f,_0x1bff4e:0x250,_0x43018b:0x4e,_0x435fb8:0x137,_0x1b926c:0x1e5,_0x138588:0x130,_0x6dc496:0x234,_0x144950:0x31e,_0x46e1f1:0x246},_0x567913={_0x17871e:0xe6,_0x28e724:0x720,_0x43baa3:0x1a3},_0x203ae7={_0x177370:0xbf,_0x2de13f:0x4e1};function _0x56dd81(_0x5dc0d2,_0x28b764,_0x3b6cbd,_0x19950a){return _0xd0b0c8(_0x5dc0d2-_0x203ae7._0x177370,_0x28b764- -_0x203ae7._0x2de13f,_0x19950a,_0x19950a-0x4e);}function _0xeb3a4(_0x1adb16,_0x520a1a,_0xf473da,_0x1ae2d7){return _0xd0b0c8(_0x1adb16-_0x567913._0x17871e,_0x1adb16- -_0x567913._0x28e724,_0x520a1a,_0x1ae2d7-_0x567913._0x43baa3);}super({'apiKey':_0x59ca03[_0x56dd81(0xa0,_0x18bc2a._0x354037,0x33,_0x18bc2a._0x34bb06)],'baseUrl':trimTrailingSlashes(_0x59ca03[_0x56dd81(0x18c,0xb9,0x108,0xbe)]??_0x56dd81(0x19a,0x181,0x1c2,_0x18bc2a._0x4a6d0c)),'fetch':_0x59ca03['fetch'],..._0x59ca03['maxTokens']!==void 0x0?{'maxTokens':_0x59ca03[_0x56dd81(_0x18bc2a._0x4ecff5,0xb3,0x20,_0x18bc2a._0x5f3b01)]}:{},'model':_0x59ca03[_0xeb3a4(-_0x18bc2a._0x46b26b,0x34,-_0x18bc2a._0x2233cd,-0x3b)]??'claude-sonnet-4-20250514','modelIdentity':_0x59ca03[_0xeb3a4(-0x19f,-0x28c,-_0x18bc2a._0x1bff4e,-0x216)],'reasoning':_0x59ca03[_0x56dd81(_0x18bc2a._0x43018b,0x104,0x4d,_0x18bc2a._0x435fb8)],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x59ca03[_0x56dd81(0x96,0xe2,0x1a4,0x1cb)]??'x-api-key','headerResolver':_0x59ca03[_0xeb3a4(-0x11f,-0x8c,-_0x18bc2a._0x1b926c,-_0x18bc2a._0x138588)],'protocolVersion':_0x59ca03[_0xeb3a4(-_0x18bc2a._0x6dc496,-0x2f8,-_0x18bc2a._0x144950,-_0x18bc2a._0x46e1f1)]??'2023-06-01'}),'providerSessionResolver':_0x59ca03[_0xeb3a4(-0x137,-0x1d3,-0x1cd,-0x1ee)],'requestMutators':_0x59ca03['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}['complete'](_0x2b2f57,_0x1d57d0){return this['completeViaSurface'](_0x2b2f57,ANTHROPIC_MESSAGES_SURFACE,_0x1d57d0);}[_0xd0b0c8(0x511,0x4f3,0x4fd,0x4b7)](_0x3347ba,_0x57e3b6){return this['streamViaSurface'](_0x3347ba,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x57e3b6);}},model_registry_default={'defaultModel':'gpt-4o','cliDefaultModel':_0xd0b0c8(0x4db,0x53b,0x470,0x583),'providers':{'anthropic':{'label':'Anthropic','baseUrl':_0xd0b0c8(0x67c,0x662,0x60c,0x737),'surface':_0xd0b0c8(0x5e3,0x50f,0x53d,0x5bd),'authScheme':_0xd0b0c8(0x6ec,0x5fa,0x5d7,0x524),'defaultModel':'claude-sonnet-4-20250514','defaultModels':[_0xd0b0c8(0x584,0x66b,0x6e0,0x682),_0xd0b0c8(0x68b,0x619,0x62b,0x6a4)],'supportsModelFetch':![],'models':{'claude-sonnet-4-20250514':{'contextWindow':0x30d40,'maxOutput':0x3e80},'claude-3-5-sonnet-20241022':{'contextWindow':0x30d40,'maxOutput':0x2000}}},'zai':{'label':'Z.AI','baseUrl':_0x495204(0x283,0x2f4,0x364,0x3d8),'anthropicBaseUrl':_0xd0b0c8(0x620,0x63b,0x6d5,0x657),'surface':'anthropic-messages','authScheme':_0xd0b0c8(0x602,0x577,0x57c,0x48b),'defaultModel':_0x495204(0x174,0x21d,0x1ce,0x22e),'defaultModels':[_0x495204(0x228,0x282,0x239,0x1b9),_0x495204(0x24d,0x1db,0x10b,0x233),_0xd0b0c8(0x518,0x53b,0x48a,0x5e6),'glm-4.6',_0xd0b0c8(0x521,0x552,0x4db,0x579)],'supportsModelFetch':![],'models':{'glm-5.2':{'contextWindow':0xf4240,'maxOutput':0x20000},'glm-5.1':{'contextWindow':0x30d40,'maxOutput':0x20000},'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':_0xd0b0c8(0x61a,0x58d,0x58b,0x4d8),'surface':_0xd0b0c8(0x571,0x537,0x577,0x4ed),'authScheme':_0xd0b0c8(0x504,0x577,0x578,0x55e),'defaultModel':_0xd0b0c8(0x4d6,0x4f0,0x4e5,0x575),'defaultModels':[_0x495204(0x201,0x1d2,0x27b,0x121),_0x495204(0x1d1,0x295,0x2dd,0x370)],'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':_0x495204(0x36d,0x2df,0x203,0x1ef),'defaultModel':_0xd0b0c8(0x459,0x540,0x5d0,0x4ba),'defaultModels':['claude-sonnet-4.5',_0x495204(0x19d,0x251,0x162,0x18b),_0x495204(0x1ba,0x2a6,0x330,0x373),_0xd0b0c8(0x496,0x574,0x48f,0x4d8),_0x495204(0x25c,0x329,0x25d,0x3d7),_0x495204(0x115,0x204,0x1bf,0x1ce)],'supportsModelFetch':!![],'models':{'claude-sonnet-4.5':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x495204(0x2b0,0x1f1,0x128,0x106)},'claude-sonnet-4':{'contextWindow':0x30d40,'maxOutput':0x3e80,'surface':_0x495204(0x215,0x1f1,0x1b0,0x171)},'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}}},'grok':{'label':'Grok\x20(x.ai)','baseUrl':_0xd0b0c8(0x7b1,0x6c8,0x627,0x69f),'surface':_0x495204(0x2bd,0x2df,0x2c5,0x2a5),'authScheme':_0x495204(0x197,0x259,0x1fd,0x1d6),'defaultModel':_0xd0b0c8(0x6fb,0x653,0x60e,0x66c),'defaultModels':[_0x495204(0x31f,0x335,0x2e6,0x407),_0xd0b0c8(0x590,0x61e,0x6ac,0x5fb)],'supportsModelFetch':!![],'models':{'grok-4.3':{'contextWindow':0x20000,'maxOutput':0x4000},'grok-build-0.1':{'contextWindow':0x20000,'maxOutput':0x4000}}},'openai':{'label':_0x495204(0x332,0x387,0x2be,0x36e),'baseUrl':'https://api.openai.com/v1','surface':_0x495204(0x236,0x219,0x25a,0x27e),'authScheme':_0x495204(0x26f,0x259,0x33b,0x231),'defaultModel':'gpt-4o','defaultModels':[],'supportsModelFetch':![],'models':{}},'openai-codex':{'label':_0x495204(0xf9,0x1e1,0x199,0x262),'baseUrl':_0x495204(0x2e9,0x24d,0x33c,0x184),'surface':_0x495204(0x367,0x2df,0x206,0x347),'authScheme':'bearer','defaultModel':'gpt-5.4','defaultModels':[_0x495204(0x1eb,0x1f3,0x28a,0x24e)],'supportsModelFetch':!![],'models':{'gpt-5.4':{'contextWindow':0x42680,'maxOutput':0x1f400}}},'deepseek':{'label':_0xd0b0c8(0x6b2,0x697,0x65f,0x750),'baseUrl':'https://api.deepseek.com/anthropic','surface':_0xd0b0c8(0x5bc,0x50f,0x59b,0x589),'authScheme':'bearer','defaultModel':_0xd0b0c8(0x50d,0x5bb,0x4e8,0x58f),'defaultModels':['deepseek-v4-pro',_0x495204(0x3d0,0x334,0x415,0x261)],'supportsModelFetch':![],'models':{'deepseek-v4-pro':{'contextWindow':0xf4240,'maxOutput':0x5dc00},'deepseek-v4-flash':{'contextWindow':0xf4240,'maxOutput':0x5dc00}}},'minimax':{'label':_0xd0b0c8(0x644,0x5c1,0x675,0x528),'baseUrl':_0x495204(0x340,0x31f,0x3f5,0x2cc),'surface':_0xd0b0c8(0x55c,0x50f,0x562,0x4f4),'authScheme':'bearer','defaultModel':'MiniMax-M3','defaultModels':[_0x495204(0x306,0x307,0x347,0x2f1)],'supportsModelFetch':![],'models':{'MiniMax-M3':{'contextWindow':0xf4240,'maxOutput':0x7d000},'MiniMax-M2.7':{'contextWindow':0x32000,'maxOutput':0x7d00}}},'commandcode':{'label':_0xd0b0c8(0x546,0x58a,0x4b3,0x4ed),'baseUrl':_0x495204(0x277,0x2e6,0x258,0x381),'modelsBaseUrl':_0x495204(0x28e,0x1d9,0x14a,0x151),'surface':_0xd0b0c8(0x448,0x50f,0x580,0x506),'authScheme':_0xd0b0c8(0x621,0x5fa,0x516,0x62c),'defaultModel':_0xd0b0c8(0x69c,0x66b,0x583,0x58a),'defaultModels':[],'supportsModelFetch':!![],'models':{}},'xiaomi':{'label':_0xd0b0c8(0x6f5,0x6ad,0x724,0x796),'baseUrl':_0xd0b0c8(0x645,0x5e0,0x697,0x604),'modelsBaseUrl':'https://token-plan-sgp.xiaomimimo.com/v1','surface':'anthropic-messages','authScheme':_0x495204(0x350,0x2dc,0x25d,0x33a),'defaultModel':_0x495204(0x274,0x25b,0x335,0x187),'defaultModels':[_0xd0b0c8(0x525,0x579,0x499,0x61c)],'supportsModelFetch':!![],'models':{'mimo-v2.5-pro':{'contextWindow':0xf4240,'maxOutput':0x1f400},'mimo-v2.5':{'contextWindow':0xf4240,'maxOutput':0x1f400}}}}},data=model_registry_default;function findProviderKey(_0x1fce6a){const _0x3496c9={_0xc4448e:0x49,_0x77a5a:0x98,_0x3d0911:0xa0,_0x102b88:0x1ec,_0x37a513:0xb3},_0x56bead={_0x23a522:0x1f2},_0x510ade=_0x1fce6a['toLowerCase']();function _0xf7ab7d(_0x2f27f9,_0x1ebf99,_0x1c5d27,_0x20cbe9){return _0x495204(_0x20cbe9,_0x1c5d27- -0x31c,_0x1c5d27-0x1ea,_0x20cbe9-0x9a);}function _0x53a25b(_0x32849e,_0x44e936,_0xedb2e0,_0x25cc5f){return _0x495204(_0x32849e,_0xedb2e0- -0x319,_0xedb2e0-_0x56bead._0x23a522,_0x25cc5f-0x6);}return Object[_0xf7ab7d(-_0x3496c9._0xc4448e,-0x129,-_0x3496c9._0x77a5a,-0x4)](data[_0x53a25b(-_0x3496c9._0x3d0911,-_0x3496c9._0x102b88,-0x110,-_0x3496c9._0x37a513)])['find'](_0x2f507e=>_0x2f507e[_0xf7ab7d(-0x24,0x0,-0x4a,-0xc2)]()===_0x510ade);}function getProviderProfile(_0x18a9e7){const _0x48c39d={_0x3be0af:0x499,_0x2f2f88:0x48b,_0xac299:0x59b,_0x209b52:0x563,_0x4658a8:0x180,_0x200600:0x514,_0x4b7ebb:0x555,_0x54934f:0x5d8,_0x3be1ed:0x564,_0x2986be:0x673,_0x27ce0f:0x54f,_0x18f84:0x6d1},_0x1528f2={_0x5c5c2f:0xa6,_0x4788dd:0x1},_0x24b0f3={_0x46c677:0x4e0};function _0x2fee18(_0x235126,_0x5a22e3,_0x2cd71a,_0x54224e){return _0xd0b0c8(_0x235126-0x44,_0x54224e- -_0x24b0f3._0x46c677,_0x5a22e3,_0x54224e-0x6e);}const _0x1dcb1d=findProviderKey(_0x18a9e7);if(!_0x1dcb1d)return void 0x0;const _0x437aa6=data[_0x1a0774(_0x48c39d._0x3be0af,_0x48c39d._0x2f2f88,0x4d1,0x3f1)][_0x1dcb1d],_0x90fe8c={};function _0x1a0774(_0x1427b0,_0x48f886,_0x37310e,_0x242b0f){return _0xd0b0c8(_0x1427b0-_0x1528f2._0x5c5c2f,_0x37310e- -0x56,_0x242b0f,_0x242b0f-_0x1528f2._0x4788dd);}for(const [_0x21e26a,_0x1e7b13]of Object[_0x1a0774(_0x48c39d._0xac299,_0x48c39d._0x209b52,0x532,0x4d2)](_0x437aa6[_0x2fee18(0xbe,0xb9,0x1c0,_0x48c39d._0x4658a8)])){_0x90fe8c[_0x21e26a]=_0x1e7b13;}return{'label':_0x437aa6['label'],'baseUrl':_0x437aa6[_0x1a0774(0x466,_0x48c39d._0x200600,0x544,0x500)],'modelsBaseUrl':_0x437aa6[_0x1a0774(0x601,0x635,0x55e,_0x48c39d._0x4b7ebb)],'anthropicBaseUrl':_0x437aa6[_0x1a0774(_0x48c39d._0x54934f,0x57c,_0x48c39d._0x3be1ed,0x50b)],'surface':_0x437aa6[_0x1a0774(0x5bc,0x674,0x61b,0x6fa)],'authScheme':_0x437aa6['authScheme'],'defaultModel':_0x437aa6['defaultModel'],'defaultModels':_0x437aa6[_0x1a0774(_0x48c39d._0x2986be,_0x48c39d._0x27ce0f,0x5cc,0x50a)]??[],'supportsModelFetch':_0x437aa6[_0x1a0774(0x6c4,_0x48c39d._0x18f84,0x628,0x630)]??![],'models':_0x90fe8c};}function getModelProfile(_0x216a8d,_0xc85bc){const _0x53c1d1={_0x578274:0x1c3,_0x266954:0x249,_0x44234e:0x5e3,_0x2e8fbe:0x5dc,_0x3f1c72:0x69d},_0x918684={_0x207aba:0x29a,_0x3b9611:0xc0,_0x262010:0xe6},_0x8eb204={_0x173179:0x1ac},_0x34fc4d=findProviderKey(_0x216a8d);function _0x3a9ea7(_0x43a9b9,_0x37f94a,_0xd6f440,_0x4605e2){return _0xd0b0c8(_0x43a9b9-0x84,_0x43a9b9- -0x364,_0xd6f440,_0x4605e2-_0x8eb204._0x173179);}if(!_0x34fc4d)return void 0x0;function _0x7cc536(_0x5dfc21,_0x3edea4,_0x5d9e63,_0x381bda){return _0x495204(_0x5dfc21,_0x5d9e63-_0x918684._0x207aba,_0x5d9e63-_0x918684._0x3b9611,_0x381bda-_0x918684._0x262010);}return data[_0x3a9ea7(_0x53c1d1._0x578274,0x126,_0x53c1d1._0x266954,0x15a)][_0x34fc4d][_0x7cc536(0x60e,_0x53c1d1._0x44234e,_0x53c1d1._0x2e8fbe,_0x53c1d1._0x3f1c72)][_0xc85bc];}function resolveModelProfile(_0x3deada,_0x2004ef){const _0xbf9aa5={_0x37d35e:0x185,_0x5ca1f2:0x114,_0x555deb:0x3ae,_0x3f4e4d:0x212,_0x1425e1:0x1c6,_0x3f8c76:0x36d,_0x143ded:0x301,_0x51ec7c:0x2fb,_0x4b4040:0x300,_0x3646fc:0x2f2,_0x130cce:0x221,_0x4c4ce3:0x2fc,_0x376fae:0x30a,_0x4659cb:0x1d3,_0x43539b:0x448,_0x2bc841:0x2a3,_0x20c1b4:0x2da,_0x2b4e6b:0x297},_0x1e1417={_0x171592:0x84,_0x184a32:0x1b7,_0x5e848e:0xfa},_0x4f8ea6={_0x39fb10:0x2b3},_0x52ef03=findProviderKey(_0x3deada);if(!_0x52ef03)return void 0x0;function _0x15a3d4(_0x4dd7d1,_0x5c9dea,_0x34462a,_0x5f107d){return _0xd0b0c8(_0x4dd7d1-0x134,_0x34462a- -_0x4f8ea6._0x39fb10,_0x5c9dea,_0x5f107d-0x6d);}const _0x172ec4=data[_0x5f4c4f(_0xbf9aa5._0x37d35e,0x142,_0xbf9aa5._0x5ca1f2,0x150)][_0x52ef03],_0x436c28=_0x172ec4[_0x5f4c4f(0x2be,0x294,_0xbf9aa5._0x555deb,_0xbf9aa5._0x3f4e4d)][_0x2004ef];function _0x5f4c4f(_0x3993b0,_0x13f6b3,_0x3a4395,_0x596622){return _0x495204(_0x596622,_0x3993b0- -_0x1e1417._0x171592,_0x3a4395-_0x1e1417._0x184a32,_0x596622-_0x1e1417._0x5e848e);}return{'label':_0x172ec4['label'],'baseUrl':_0x172ec4[_0x5f4c4f(0x1f8,0x2e3,_0xbf9aa5._0x1425e1,0x28c)],'modelsBaseUrl':_0x172ec4[_0x15a3d4(_0xbf9aa5._0x3f8c76,0x251,_0xbf9aa5._0x143ded,_0xbf9aa5._0x51ec7c)],'anthropicBaseUrl':_0x172ec4[_0x15a3d4(_0xbf9aa5._0x4b4040,0x385,0x307,_0xbf9aa5._0x3646fc)],'surface':_0x436c28?.['surface']??_0x172ec4['surface'],'authScheme':_0x172ec4[_0x5f4c4f(_0xbf9aa5._0x130cce,0x311,_0xbf9aa5._0x4c4ce3,0x1f2)],'defaultModel':_0x172ec4[_0x15a3d4(_0xbf9aa5._0x376fae,_0xbf9aa5._0x4659cb,0x247,0x2b8)],'defaultModels':_0x172ec4[_0x15a3d4(_0xbf9aa5._0x43539b,_0xbf9aa5._0x2bc841,0x36f,_0xbf9aa5._0x20c1b4)],'supportsModelFetch':_0x172ec4['supportsModelFetch'],'contextWindow':_0x436c28?.[_0x15a3d4(_0xbf9aa5._0x2b4e6b,0x239,0x266,0x1c3)],'maxOutput':_0x436c28?.[_0x15a3d4(0x268,0x312,0x354,0x348)]};}function getDefaultModel(){const _0x8ea774={_0x4b269b:0x94,_0x2452a3:0x12},_0x5f1942={_0x2b55b5:0xad};function _0x13cc0b(_0x28552a,_0x3c8f53,_0x4ddedc,_0x1db581){return _0xd0b0c8(_0x28552a-_0x5f1942._0x2b55b5,_0x1db581- -0x50c,_0x4ddedc,_0x1db581-0x36);}return data[_0x13cc0b(-0x35,-_0x8ea774._0x4b269b,0x20,-_0x8ea774._0x2452a3)];}function getCliDefaultModel(){const _0x264eba={_0x336b9c:0x2c,_0xac1a9e:0x14a,_0x431381:0x1a8};function _0x1bb31d(_0x42107c,_0x10dd1e,_0x4128d4,_0x1e33a0){return _0x495204(_0x4128d4,_0x42107c-_0x264eba._0x336b9c,_0x4128d4-_0x264eba._0xac1a9e,_0x1e33a0-_0x264eba._0x431381);}return data[_0x1bb31d(0x23b,0x2d0,0x27c,0x2c8)];}function getProviderLabel(_0xd5a231){const _0x12ff89=findProviderKey(_0xd5a231);function _0x313817(_0x1fff4b,_0x4000d0,_0x474e8c,_0x2cd0ee){return _0x495204(_0x4000d0,_0x2cd0ee- -0x8e,_0x474e8c-0x6f,_0x2cd0ee-0x176);}return _0x12ff89?data['providers'][_0x12ff89][_0x313817(0x131,0x21d,0x1c8,0x155)]:void 0x0;}function getProviderDefaultModel(_0x4c13fe){const _0x3d0e63=findProviderKey(_0x4c13fe);if(!_0x3d0e63)return void 0x0;return data['providers'][_0x3d0e63]['defaultModel'];}function getProviderDefaultModels(_0x3f7b1c){const _0x3f7f05={_0x43a6b8:0x23a,_0xe7c10:0x26d},_0x1f9c73={_0x37744d:0x3b5},_0x5adef3=findProviderKey(_0x3f7b1c);function _0x63e832(_0x264fb8,_0x40757a,_0x5a75d7,_0x3a7e8f){return _0xd0b0c8(_0x264fb8-0x53,_0x40757a- -_0x1f9c73._0x37744d,_0x5a75d7,_0x3a7e8f-0x149);}if(!_0x5adef3)return[];return[...data['providers'][_0x5adef3][_0x63e832(_0x3f7f05._0x43a6b8,_0x3f7f05._0xe7c10,0x2dc,0x330)]??[]];}function providerSupportsModelFetch(_0x31425f){const _0x52dfe9=findProviderKey(_0x31425f);if(!_0x52dfe9)return![];return data['providers'][_0x52dfe9]['supportsModelFetch']??![];}function getOnboardingProviderKeys(){const _0x3f371b={_0x50e68c:0x15,_0x17373a:0xdf};function _0x564d35(_0x29ec67,_0x74a4ca,_0x26d1df,_0x59d856){return _0x495204(_0x74a4ca,_0x59d856- -0x2e8,_0x26d1df-0xd5,_0x59d856-0x2);}return Object['keys'](data[_0x564d35(-0xf8,_0x3f371b._0x50e68c,-0x132,-_0x3f371b._0x17373a)]);}var OPENAI_CHAT_COMPLETIONS_SURFACE=_0xd0b0c8(0x464,0x537,0x45e,0x52d),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0xd0b0c8(0x505,0x57f,0x567,0x5d2),OPENAI_RESPONSES_SURFACE=_0xd0b0c8(0x6ba,0x5fd,0x694,0x6c8),OPENAI_RESPONSES_STREAM_SURFACE=_0x495204(0x418,0x351,0x36f,0x39a),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0xd0b0c8(0x5e9,0x58b,0x4df,0x551),OpenAiApiError=class extends Error{[_0x495204(0x345,0x31a,0x243,0x287)];[_0x495204(0x38a,0x363,0x354,0x30f)];constructor(_0x2ff426,_0x5d5ea0,_0x316f5c){const _0xa6a033={_0x477242:0x526,_0x46e521:0x4cd,_0x5f23c5:0x422,_0x2048f0:0x46a,_0x1854f2:0x582},_0x5d5ca3={_0x36e65d:0x1e4,_0x4c9d3e:0x32};function _0x4fad31(_0x4302b9,_0x1beb55,_0x2282a3,_0x439939){return _0x495204(_0x4302b9,_0x1beb55- -0x2b4,_0x2282a3-0x1ca,_0x439939-0x28);}super(_0x316f5c);function _0x28dfd0(_0x169fbf,_0x5dfaae,_0x3013b8,_0x1c1157){return _0x495204(_0x5dfaae,_0x3013b8-0x179,_0x3013b8-_0x5d5ca3._0x36e65d,_0x1c1157-_0x5d5ca3._0x4c9d3e);}this['name']=_0x28dfd0(_0xa6a033._0x477242,0x461,_0xa6a033._0x46e521,_0xa6a033._0x5f23c5),this[_0x28dfd0(_0xa6a033._0x2048f0,0x495,0x493,0x445)]=_0x2ff426,this[_0x28dfd0(_0xa6a033._0x1854f2,0x5cd,0x4dc,0x495)]=_0x5d5ea0;}};function stringifySystem(_0x5d152f){const _0x36e638={_0x25589a:0x3d7},_0x34937c={_0x3e1fa5:0x58,_0x50ded1:0x124},_0x257201={_0x5a98ca:0x49,_0x5989b1:0xd2};function _0x486a5a(_0x888768,_0x253cec,_0x2d513d,_0x8180){return _0x495204(_0x2d513d,_0x8180- -_0x257201._0x5a98ca,_0x2d513d-_0x257201._0x5989b1,_0x8180-0xf3);}function _0x4b3c72(_0xcd059,_0x34f391,_0x58c6f0,_0x3c3f10){return _0x495204(_0xcd059,_0x3c3f10- -_0x34937c._0x3e1fa5,_0x58c6f0-_0x34937c._0x50ded1,_0x3c3f10-0x7b);}return _0x5d152f[_0x4b3c72(0x1d1,0x128,0x1d1,0x1db)](_0x4bf672=>_0x4bf672[_0x4b3c72(0x28b,0x22a,0x294,0x2de)])[_0x486a5a(0x383,_0x36e638._0x25589a,0x3f7,0x367)]('\x0a\x0a');}function createToolDefinitions(_0x105b05){const _0x5251ba={_0xf493fd:0x93,_0x2d653b:0x43e,_0x481f09:0x379},_0x435c22={_0x4211e1:0x680,_0x146d62:0x5b0,_0x186b80:0x4f0,_0x59cc53:0x6a1,_0x48c2fa:0x556,_0x1a04a1:0x439,_0x5da0a7:0x4b6,_0x8a3af1:0x52c},_0x2f8132={_0x197d45:0xb3},_0x2b1e9e={_0x22e867:0x1d4,_0x1b95e5:0x120};function _0xb5a24b(_0x2190f5,_0x452d1d,_0x7a0612,_0x58a778){return _0xd0b0c8(_0x2190f5-0x11c,_0x7a0612- -0x1d8,_0x58a778,_0x58a778-0x170);}function _0x1dd7aa(_0x21b23e,_0x43828d,_0x2e4d64,_0x2b4a5c){return _0x495204(_0x2b4a5c,_0x43828d- -_0x2b1e9e._0x22e867,_0x2e4d64-_0x2b1e9e._0x1b95e5,_0x2b4a5c-0xd8);}if(_0x105b05[_0x1dd7aa(0x50,_0x5251ba._0xf493fd,0x4,0x186)]===0x0)return void 0x0;return _0x105b05[_0xb5a24b(_0x5251ba._0x2d653b,0x444,_0x5251ba._0x481f09,0x3ae)](_0x317f9b=>{function _0x3bbeda(_0x29d737,_0x2d4c17,_0x4681a7,_0x1288f6){return _0x1dd7aa(_0x29d737-0x12d,_0x2d4c17-0x38b,_0x4681a7-_0x2f8132._0x197d45,_0x4681a7);}function _0x56ce0f(_0x1e2af6,_0x2a2b74,_0x802408,_0x596f5a){return _0x1dd7aa(_0x1e2af6-0x4e,_0x2a2b74-0x435,_0x802408-0x58,_0x1e2af6);}return{'type':_0x56ce0f(_0x435c22._0x4211e1,_0x435c22._0x146d62,_0x435c22._0x186b80,_0x435c22._0x59cc53),'function':{'name':_0x317f9b['name'],'description':_0x317f9b[_0x56ce0f(0x4c2,_0x435c22._0x48c2fa,0x635,0x617)],'parameters':_0x317f9b[_0x3bbeda(_0x435c22._0x1a04a1,0x4f3,_0x435c22._0x5da0a7,_0x435c22._0x8a3af1)]}};});}function isImageToolResultBlock(_0x1375ab){const _0x425117={_0x4ba4fc:0x15c,_0x5b7c09:0x154,_0x53e1e8:0x234,_0x5240dc:0xc6,_0x4e4c21:0x198,_0x18fda4:0x19e,_0x1f0021:0xea,_0x96af35:0xcb,_0x1c2be4:0x12d,_0x54fb10:0xb0,_0x5de718:0x38,_0x4783fb:0x129,_0x3b7785:0x108,_0x1bdb9d:0xed,_0x3559dd:0x184,_0x1ff499:0x17b,_0x56fe32:0x210,_0x42fed4:0x51,_0xd8422d:0x74,_0x42200a:0x122},_0x5b128a={_0x3e94c2:0x1bf},_0x21d51c={_0x12f4b6:0x14f,_0x2002be:0x171};if(typeof _0x1375ab!==_0x1cf231(_0x425117._0x4ba4fc,0x186,0x1fb,0x1a7)||_0x1375ab===null||Array[_0x9dd3cc(0x246,_0x425117._0x5b7c09,_0x425117._0x53e1e8,0xf6)](_0x1375ab))return![];const _0x3dc18d=_0x1375ab;function _0x1cf231(_0x23c1e3,_0x16bdab,_0x268659,_0x5cf2a4){return _0xd0b0c8(_0x23c1e3-_0x21d51c._0x12f4b6,_0x16bdab- -0x50a,_0x268659,_0x5cf2a4-_0x21d51c._0x2002be);}function _0x9dd3cc(_0x37dd2e,_0x17e832,_0x1fc72a,_0x3cecab){return _0xd0b0c8(_0x37dd2e-_0x5b128a._0x3e94c2,_0x17e832- -0x4c8,_0x1fc72a,_0x3cecab-0x16e);}return _0x3dc18d[_0x1cf231(-0x70,0x74,0x112,-0x58)]==='image'&&_0x3dc18d[_0x1cf231(0x120,_0x425117._0x5240dc,_0x425117._0x4e4c21,0x196)]?.['type']===_0x1cf231(_0x425117._0x18fda4,_0x425117._0x1f0021,_0x425117._0x96af35,_0x425117._0x1c2be4)&&typeof _0x3dc18d[_0x1cf231(_0x425117._0x54fb10,_0x425117._0x5240dc,_0x425117._0x5de718,_0x425117._0x4783fb)]['media_type']==='string'&&typeof _0x3dc18d[_0x9dd3cc(0x87,_0x425117._0x3b7785,_0x425117._0x1bdb9d,0x101)][_0x1cf231(_0x425117._0x3559dd,_0x425117._0x1ff499,_0x425117._0x56fe32,0x1f0)]===_0x9dd3cc(-_0x425117._0x42fed4,_0x425117._0xd8422d,_0x425117._0x42200a,0x156);}function getToolResultText(_0x1d6b3f){const _0x13b393={_0x3d9bee:0x126,_0x474f04:0x458,_0xad2a7b:0x4d3,_0xdb3b83:0x566,_0x56b201:0x49d,_0x135beb:0xc2,_0x274767:0x16c,_0x47fac0:0x250,_0x1de4da:0x460,_0x39b7fe:0x424},_0x8b4ce0={_0x598ac8:0x30d,_0x4405ab:0x141,_0x67649d:0x228,_0x19fc34:0x1d4,_0xd1a6bc:0x1ec},_0x2eb6ec={_0x49ac34:0x37},_0x21972a={_0x96008c:0x159};function _0x59f5cc(_0xdf505b,_0x25fef8,_0x3cbbfe,_0x2823b9){return _0xd0b0c8(_0xdf505b-_0x21972a._0x96008c,_0x25fef8- -0x419,_0x2823b9,_0x2823b9-0x184);}if(typeof _0x1d6b3f===_0x59f5cc(_0x13b393._0x3d9bee,0x123,0x105,0x55))return _0x1d6b3f;function _0xfedd34(_0x98d350,_0xc6d716,_0x301118,_0x1b55b8){return _0x495204(_0x1b55b8,_0xc6d716-0x287,_0x301118-0x1e1,_0x1b55b8-0x12a);}const _0x1b7ab1=_0x1d6b3f[_0xfedd34(_0x13b393._0x474f04,0x4a6,_0x13b393._0xad2a7b,_0x13b393._0xdb3b83)](_0x145059=>{const _0x30079b={_0x45cc34:0x7c,_0x503d3d:0x4f,_0x2ae8db:0xd4};function _0x164322(_0x47a325,_0x35e37f,_0x3f8988,_0x5c48d8){return _0x59f5cc(_0x47a325-_0x30079b._0x45cc34,_0x3f8988- -_0x30079b._0x503d3d,_0x3f8988-_0x30079b._0x2ae8db,_0x5c48d8);}function _0x2fbac4(_0x34d005,_0x4531fb,_0xbf5fdb,_0x398176){return _0xfedd34(_0x34d005-_0x2eb6ec._0x49ac34,_0x4531fb- -0x301,_0xbf5fdb-0xa7,_0x398176);}return typeof _0x145059===_0x164322(_0x8b4ce0._0x598ac8,_0x8b4ce0._0x4405ab,_0x8b4ce0._0x67649d,0x21a)&&_0x145059!==null&&_0x145059['type']===_0x164322(_0x8b4ce0._0x19fc34,0x190,_0x8b4ce0._0xd1a6bc,0x168);})['map'](_0x541b64=>_0x541b64[_0xfedd34(0x4ee,0x5bd,0x4ce,0x4cb)])['join']('\x0a\x0a')[_0xfedd34(0x49d,_0x13b393._0x56b201,0x3eb,0x509)]();return _0x1b7ab1[_0x59f5cc(_0x13b393._0x135beb,_0x13b393._0x274767,0xc1,_0x13b393._0x47fac0)]>0x0?_0x1b7ab1:_0xfedd34(_0x13b393._0x1de4da,0x484,_0x13b393._0x39b7fe,0x3c1);}function getToolResultImages(_0x56c670){const _0x2dd6bf={_0x525f04:0x257,_0x2ab515:0x33d,_0x212067:0x3a7},_0x51def8={_0x2134f9:0x11e,_0x4cc210:0xd2};function _0x31cefc(_0x4c2f38,_0x5a293d,_0x48a2dd,_0x455bf1){return _0x495204(_0x455bf1,_0x5a293d-_0x51def8._0x2134f9,_0x48a2dd-_0x51def8._0x4cc210,_0x455bf1-0xb6);}return Array['isArray'](_0x56c670)?_0x56c670[_0x31cefc(_0x2dd6bf._0x525f04,_0x2dd6bf._0x2ab515,0x41e,_0x2dd6bf._0x212067)](isImageToolResultBlock):[];}function parseToolInput2(_0x32d4fa){const _0x277a68={_0x19c2ee:0x1d5,_0x27d54b:0x6a,_0xa207d7:0x73,_0x47c31c:0xe5},_0x4c5efa={_0x387f09:0xae},_0x43ef34={_0x367f4b:0x14c,_0x123be9:0x1c5,_0x431893:0x4f};function _0x234d33(_0x1f6bec,_0x395c7e,_0x429cd0,_0x4660fb){return _0x495204(_0x395c7e,_0x4660fb- -_0x43ef34._0x367f4b,_0x429cd0-_0x43ef34._0x123be9,_0x4660fb-_0x43ef34._0x431893);}if(_0x32d4fa[_0x4746f6(-0xe7,-0x2b1,-_0x277a68._0x19c2ee,-0x220)]===0x0)return{};function _0x4746f6(_0x531173,_0x247d27,_0x5bba1f,_0xcbd828){return _0x495204(_0xcbd828,_0x5bba1f- -0x43c,_0x5bba1f-0x1e9,_0xcbd828-_0x4c5efa._0x387f09);}try{return JSON[_0x4746f6(-_0x277a68._0x27d54b,-_0x277a68._0xa207d7,-_0x277a68._0x47c31c,-0x3d)](_0x32d4fa);}catch{return _0x32d4fa;}}function isResponsesReasoningItem(_0x5e1596){const _0x3410d6={_0x90cb1c:0x4a3,_0x39ad63:0x451,_0xf6ce30:0x96,_0x3eb480:0x29,_0x4c9d0e:0xc6,_0x53ca89:0x1},_0x23591a={_0x269f57:0x131,_0x287e27:0xad},_0xcdf381={_0x411526:0xf,_0x88ec31:0xfb};function _0x55ada6(_0x524b2b,_0x2a1f43,_0x3806d0,_0x24af7a){return _0x495204(_0x524b2b,_0x3806d0- -0x201,_0x3806d0-_0xcdf381._0x411526,_0x24af7a-_0xcdf381._0x88ec31);}function _0x3461e6(_0x4ef40b,_0x1b7a8b,_0x14bb70,_0x5233d7){return _0x495204(_0x14bb70,_0x4ef40b-_0x23591a._0x269f57,_0x14bb70-_0x23591a._0x287e27,_0x5233d7-0x13d);}return typeof _0x5e1596===_0x3461e6(_0x3410d6._0x90cb1c,_0x3410d6._0x39ad63,0x415,0x561)&&_0x5e1596!==null&&'type'in _0x5e1596&&_0x5e1596[_0x55ada6(0xf7,0x114,0x5f,_0x3410d6._0xf6ce30)]===_0x55ada6(0x185,-_0x3410d6._0x3eb480,_0x3410d6._0x4c9d0e,_0x3410d6._0x53ca89);}function isResponsesMessageItem(_0x5c6fdc){const _0x2e148e={_0x465799:0x242,_0x461ab7:0x34e,_0x580d2a:0x27b,_0x2ded6f:0x1f4,_0x58afbc:0x23e,_0x29b6ed:0x169,_0x20f415:0x15a,_0x4ddfb8:0x29f,_0x3a724f:0x1e8,_0x404421:0x2af},_0x350091={_0x2a998d:0x547},_0x65d24f={_0x47339e:0x72,_0x5843dc:0x27};function _0x336a7d(_0x591d41,_0x10d37f,_0x309f5e,_0x237224){return _0x495204(_0x309f5e,_0x237224- -0xf7,_0x309f5e-_0x65d24f._0x47339e,_0x237224-_0x65d24f._0x5843dc);}function _0x37255d(_0x39330d,_0xeba938,_0x13196e,_0x516207){return _0xd0b0c8(_0x39330d-0x4c,_0x13196e- -_0x350091._0x2a998d,_0xeba938,_0x516207-0x1e3);}return typeof _0x5c6fdc===_0x336a7d(0x198,_0x2e148e._0x465799,_0x2e148e._0x461ab7,_0x2e148e._0x580d2a)&&_0x5c6fdc!==null&&_0x336a7d(0x9f,_0x2e148e._0x2ded6f,_0x2e148e._0x58afbc,_0x2e148e._0x29b6ed)in _0x5c6fdc&&_0x5c6fdc[_0x336a7d(0x154,_0x2e148e._0x20f415,0x1c6,0x169)]===_0x336a7d(_0x2e148e._0x4ddfb8,_0x2e148e._0x3a724f,0x1bc,_0x2e148e._0x404421);}function isResponsesFunctionCallItem(_0x4ede30){const _0x24d825={_0x510316:0x52,_0x4136a8:0x535,_0x197fd5:0x585},_0x387ce1={_0x3fcf6d:0x21a,_0x16e110:0x1b7};function _0x354a10(_0x17c0b8,_0xb52f51,_0xf51819,_0x35b1f6){return _0x495204(_0x17c0b8,_0xb52f51- -0x1a6,_0xf51819-0x1a8,_0x35b1f6-0x195);}function _0x2729c0(_0x1ed62b,_0x100bf9,_0x31981e,_0x4fae5f){return _0x495204(_0x31981e,_0x1ed62b-_0x387ce1._0x3fcf6d,_0x31981e-0x191,_0x4fae5f-_0x387ce1._0x16e110);}return typeof _0x4ede30===_0x354a10(0xe7,0x1cc,0x1e8,0x2bd)&&_0x4ede30!==null&&_0x354a10(_0x24d825._0x510316,0xba,0x15a,0x156)in _0x4ede30&&_0x4ede30['type']===_0x2729c0(0x56a,_0x24d825._0x4136a8,0x4c0,_0x24d825._0x197fd5);}function createContentBlocks(_0x47e4f5,_0x18d469,_0xceaaf7){const _0x232e60={_0x5cc9b6:0x19f,_0x341eb4:0x29c,_0x50b8d6:0x217,_0x36202d:0x214,_0x72fa1b:0x178,_0x5aa57e:0xd8,_0x276609:0xca,_0x51f3c2:0x2e5,_0x37995d:0x5,_0x788e75:0xd3,_0x3a4e6d:0x1f0,_0x1c1249:0x240,_0x1628f6:0x25a,_0x249e71:0x18d,_0x3cb401:0xba,_0x46bc40:0x11e,_0x358ee5:0xdf,_0x137d92:0x44,_0x5d15b3:0x81,_0x112582:0xca,_0x66e01c:0x4b,_0x37e958:0x1b9,_0x24a2a1:0x232,_0x368de5:0x6b,_0x5c7b80:0xd9,_0x5c1c06:0x3f,_0x5f190d:0x1e,_0x2a5de5:0x89,_0x1dff3d:0x17,_0x412de6:0x48},_0x40de03={_0x1fa49d:0x4f,_0x4a18c8:0x64f},_0x595e9b={_0x5186b6:0x406,_0x294f16:0x149,_0x4c26da:0x5e},_0x26b1ba=[];_0xceaaf7&&_0xceaaf7[_0x446985(-0x261,-_0x232e60._0x5cc9b6,-0x1db,-0x1a6)]>0x0&&_0x26b1ba[_0x446985(-_0x232e60._0x341eb4,-0x1f9,-_0x232e60._0x50b8d6,-_0x232e60._0x36202d)]({'type':_0x446985(-0xb9,-0xee,-0x1a9,-_0x232e60._0x72fa1b),'summary':[],'text':_0xceaaf7});function _0x446985(_0x53e47b,_0x3f06a8,_0x1fb8a0,_0x3400d0){return _0x495204(_0x1fb8a0,_0x3f06a8- -_0x595e9b._0x5186b6,_0x1fb8a0-_0x595e9b._0x294f16,_0x3400d0-_0x595e9b._0x4c26da);}_0x47e4f5[_0x1a5a93(-0xb2,-_0x232e60._0x5aa57e,-_0x232e60._0x276609,-0xb2)]>0x0&&_0x26b1ba[_0x446985(-_0x232e60._0x51f3c2,-0x1f9,-0x260,-0x112)]({'type':_0x1a5a93(0xed,-0xc2,_0x232e60._0x37995d,-_0x232e60._0x788e75),'text':_0x47e4f5});function _0x1a5a93(_0x28acef,_0x429de3,_0x10afcd,_0x57d23b){return _0xd0b0c8(_0x28acef-_0x40de03._0x1fa49d,_0x10afcd- -_0x40de03._0x4a18c8,_0x28acef,_0x57d23b-0xee);}for(const _0x2ee7b8 of _0x18d469){if(_0x2ee7b8['id'][_0x446985(-0x240,-_0x232e60._0x3a4e6d,-_0x232e60._0x1c1249,-_0x232e60._0x1628f6)]()[_0x446985(-_0x232e60._0x249e71,-0x19f,-_0x232e60._0x3cb401,-0xfe)]===0x0||_0x2ee7b8['function'][_0x1a5a93(_0x232e60._0x46bc40,_0x232e60._0x358ee5,_0x232e60._0x137d92,-_0x232e60._0x5d15b3)]['trim']()[_0x1a5a93(-0x2,-0xc1,-_0x232e60._0x112582,-_0x232e60._0x66e01c)]===0x0)continue;_0x26b1ba[_0x446985(-0x22b,-0x1f9,-_0x232e60._0x37e958,-_0x232e60._0x24a2a1)]({'type':_0x446985(0x5,-_0x232e60._0x368de5,-_0x232e60._0x5c7b80,-0xe9),'id':_0x2ee7b8['id'],'name':_0x2ee7b8[_0x446985(-0xb6,-0xb7,0x2e,-_0x232e60._0x5c1c06)][_0x446985(-0x120,-0x91,-0x151,-0xc8)],'input':parseToolInput2(_0x2ee7b8[_0x1a5a93(0x6e,0x39,_0x232e60._0x5f190d,0xa)][_0x1a5a93(_0x232e60._0x2a5de5,_0x232e60._0x1dff3d,0x3a,-_0x232e60._0x412de6)])});}return _0x26b1ba;}function createUsage(_0x58841c){const _0x3b40e5={_0x1ae09c:0xd5,_0x4cf3bd:0xf5,_0x76945c:0x58,_0x2be8bf:0x18,_0x4b8c24:0x64,_0x3c7a7e:0x10d},_0x4ef70f={_0x10b11a:0xf2},_0x5a91a5={_0x1f73a8:0x71,_0x39b5e3:0x79};function _0x4b8a35(_0x56e911,_0x225590,_0x3b9679,_0x533790){return _0xd0b0c8(_0x56e911-_0x5a91a5._0x1f73a8,_0x56e911- -0x411,_0x533790,_0x533790-_0x5a91a5._0x39b5e3);}function _0x325d09(_0x27b8e3,_0x270d8f,_0x5dbfe6,_0x237c51){return _0x495204(_0x5dbfe6,_0x237c51- -0x377,_0x5dbfe6-0x5f,_0x237c51-_0x4ef70f._0x10b11a);}return{'inputTokens':_0x58841c?.[_0x4b8a35(0x15c,0x138,0x1ec,0x156)]??0x0,'outputTokens':_0x58841c?.[_0x325d09(-_0x3b40e5._0x1ae09c,-_0x3b40e5._0x4cf3bd,-0x1b4,-0x156)]??0x0,..._0x58841c?.[_0x325d09(0x46,-_0x3b40e5._0x76945c,-_0x3b40e5._0x2be8bf,-0x64)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x58841c[_0x325d09(-0x12f,0x7b,0x3f,-_0x3b40e5._0x4b8c24)][_0x325d09(_0x3b40e5._0x3c7a7e,0x1c,0x39,0x20)]}:{}};}function resolveReasoningVisibility2(_0x41e694){const _0x9d6518={_0x3446d8:0xca},_0x406212={_0x2fa605:0x1ac},_0x52d6f4={_0x1f54c0:0xbe};function _0xc35791(_0xb74e32,_0x1bfeef,_0x15d356,_0x237856){return _0xd0b0c8(_0xb74e32-0xf8,_0xb74e32- -0x640,_0x237856,_0x237856-_0x52d6f4._0x1f54c0);}function _0x317d29(_0x3ad502,_0x56d706,_0xd54e5b,_0x2436aa){return _0x495204(_0xd54e5b,_0x3ad502-0x330,_0xd54e5b-0x24,_0x2436aa-_0x406212._0x2fa605);}return _0x41e694[_0x317d29(0x5f7,0x63a,0x5c5,0x5d2)]?.[_0xc35791(-0x4,0xb0,_0x9d6518._0x3446d8,0x53)]??'user-visible';}function isUserVisibleReasoning(_0x1bb6d4){const _0x310cdb={_0x3aa715:0x106,_0x3ee87c:0xe5,_0x37111c:0xf0},_0x5b754f={_0x40f06b:0x1eb},_0x264b4a={_0x4d76e4:0x1c8,_0x52a98b:0xc6};function _0x318227(_0x22e72d,_0x1fe356,_0x4cd853,_0x5db046){return _0xd0b0c8(_0x22e72d-_0x264b4a._0x4d76e4,_0x5db046- -0x2b6,_0x1fe356,_0x5db046-_0x264b4a._0x52a98b);}function _0x5dcc1f(_0x4ddcc7,_0x34975d,_0x22da89,_0x33b507){return _0xd0b0c8(_0x4ddcc7-_0x5b754f._0x40f06b,_0x33b507- -0x53c,_0x34975d,_0x33b507-0x44);}return resolveOpenAiReasoningConfig(_0x1bb6d4[_0x5dcc1f(_0x310cdb._0x3aa715,_0x310cdb._0x3ee87c,0x101,0xa9)])!==void 0x0&&resolveReasoningVisibility2(_0x1bb6d4)===_0x5dcc1f(0x161,0x175,_0x310cdb._0x37111c,0x167);}function createChatRequestBody(_0x1b590b,_0x1be4fb){const _0x3d83dd={_0x40c4b0:0x357,_0x2342ac:0x389,_0x205bdb:0x29f,_0x205912:0x2f2,_0x5e4722:0x2a9,_0x365536:0x27d,_0x3cdda1:0x244,_0x44dc3d:0x313,_0x5cdaff:0x2b3,_0x36488c:0x2d2,_0x334d98:0x29b,_0x34df4e:0x2e0,_0x350588:0x2ad,_0x4fcefe:0x36e,_0x938b20:0x229,_0xa25ab6:0x382,_0x31fb65:0x2b6,_0x1c93bd:0x2d2,_0x3e3068:0x366,_0x558d84:0x299,_0x4576e4:0x3e6,_0x10dda4:0x261,_0x2b8d67:0x3ed,_0x2abd2a:0x3d6,_0x2ceb69:0x425,_0x21ffd0:0x239,_0x478c64:0x362,_0x35bf0f:0x206,_0x4dc504:0x294,_0x4d9f92:0x2e8,_0xf8a390:0x243,_0x4e7aac:0x26f,_0x5a9e15:0x3bf,_0x48264d:0x306,_0x4c11b9:0x37d,_0x963e96:0x243,_0xdc3444:0x2b7,_0x5335af:0x33b,_0x24c425:0x2b9,_0x47dd60:0x3b1,_0x1b4fa7:0x3e9,_0x2e3590:0x259,_0x1f13f2:0x1f9,_0x1a2384:0x3f8,_0x125cfa:0x3d1,_0x356214:0x387,_0x26e02f:0x3c9,_0x4b828f:0x37a,_0x2e502f:0x22c,_0x4baa17:0x1d2,_0x42911b:0x1e0,_0x315f18:0x3ae,_0x507c81:0x4a2,_0x2329d2:0x276,_0x5f3b43:0x2cb,_0x4f429d:0x376,_0x3adaba:0x1e9,_0x643cd4:0x1c4,_0x2a2d5e:0x261,_0x1a585e:0x2d5,_0x4f3d6f:0x386,_0x4878c0:0x287,_0x5618f2:0x2f4,_0xc2fbcc:0x257,_0x33503d:0x2fc,_0x5c66a4:0x2ff,_0x13a14d:0x39b,_0x2adf68:0x2fe,_0x56fccd:0x2b3,_0x5e71ab:0x486,_0xec0cf8:0x2ca,_0x2dede9:0x361,_0x2be66a:0x240,_0x2511d5:0x301,_0x567cf1:0x343,_0x521063:0x2c0,_0x35f021:0x2e0,_0x483841:0x41d,_0x25913a:0x337,_0x52b9a8:0x211,_0x59d2fe:0x353,_0x1cfb77:0x3ef,_0x98e210:0x451,_0x18fc66:0x3eb,_0x24abe3:0x2d7,_0x4906ec:0x264,_0x330f00:0x242,_0x4c5a2d:0x3df,_0x25a003:0x337,_0x4a54bb:0x3c9},_0x1b485b={_0x508542:0x78},_0x196804={_0x1919ce:0x1a,_0x139f35:0xb6,_0x3bc222:0x217,_0x3f9ad4:0x2c3,_0x215e36:0xa6,_0x3e180f:0x3c5,_0x5c21f1:0x41c,_0x278a12:0x27c,_0x414a63:0x210,_0x1597fd:0xd,_0x231a93:0x3e,_0x147c06:0x40,_0x556f27:0x2d,_0x5bec6d:0x323,_0x2aed20:0x320,_0x2efe9f:0x1e,_0x2dc6cd:0x83,_0x88579f:0x1fd,_0xcd38b9:0x9d,_0x5da9a1:0x118,_0x5b2b2e:0x4b,_0x5480ac:0x40,_0x2c8996:0x10a,_0x387777:0x10a,_0x449d8c:0x119,_0x5ae384:0xc3,_0x3e5cad:0x269,_0x1e8c5c:0x50,_0x1671e0:0x63,_0xbde457:0x2d,_0x29b0f6:0x7f,_0x1291e0:0x96,_0x48df71:0x214},_0x3f9371={_0x5155fd:0x6b,_0x2f8496:0x1d0};function _0xd0dd53(_0x11af06,_0x18762e,_0x3dba82,_0x26dbb8){return _0xd0b0c8(_0x11af06-_0x3f9371._0x5155fd,_0x3dba82- -0x2e6,_0x11af06,_0x26dbb8-_0x3f9371._0x2f8496);}const _0x245228=[],_0x2de36a=stringifySystem(_0x1b590b[_0xd0dd53(0x2a0,_0x3d83dd._0x40c4b0,0x2d6,0x2de)]);_0x2de36a[_0xd0dd53(0x349,_0x3d83dd._0x2342ac,_0x3d83dd._0x205bdb,0x1ff)]>0x0&&_0x245228['push']({'role':_0x210c99(_0x3d83dd._0x205912,_0x3d83dd._0x5e4722,0x35a,_0x3d83dd._0x365536),'content':_0x2de36a});for(const _0x357322 of _0x1b590b['messages']){const _0x567b9a=[],_0x22a1e5=[],_0x380b23=[],_0x12ecaf=()=>{const _0x2d1a3d={_0x40a6a4:0x28e,_0x435e6e:0x12a},_0x43b249={_0x21ee3d:0x23,_0x40172c:0xe8};if(_0x357322['role']===_0x544fb1(_0x196804._0x1919ce,0x144,_0x196804._0x139f35,0x34)){if(_0x567b9a['length']===0x0&&_0x22a1e5['length']===0x0)return;_0x245228[_0x2aa63a(0x222,_0x196804._0x3bc222,0x20d,_0x196804._0x3f9ad4)]({'role':_0x544fb1(0xc8,0x86,0xb6,_0x196804._0x215e36),'content':_0x567b9a[_0x2aa63a(0x27c,0x1e9,0x1a2,0x1e1)]>0x0?_0x567b9a[_0x2aa63a(_0x196804._0x3e180f,0x3d5,0x337,_0x196804._0x5c21f1)]('\x0a\x0a'):null,..._0x22a1e5[_0x2aa63a(_0x196804._0x278a12,_0x196804._0x414a63,0x227,0x194)]>0x0?{'tool_calls':_0x22a1e5[_0x544fb1(_0x196804._0x1597fd,_0x196804._0x231a93,-_0x196804._0x147c06,0x8d)](0x0)}:{}}),_0x567b9a[_0x544fb1(0xb,0x24,_0x196804._0x556f27,0xac)]=0x0;return;}function _0x2aa63a(_0x46ea09,_0x47d6db,_0x137cf3,_0x285256){return _0xd0dd53(_0x47d6db,_0x47d6db-0x14c,_0x46ea09- -_0x43b249._0x21ee3d,_0x285256-_0x43b249._0x40172c);}if(_0x357322[_0x2aa63a(0x2bc,_0x196804._0x5bec6d,0x2cb,_0x196804._0x2aed20)]===_0x544fb1(-_0x196804._0x2efe9f,-0x18,0x44,-0xb)){if(_0x380b23[_0x544fb1(-_0x196804._0x2dc6cd,0xa0,0x2d,0x61)]===0x0)return;const _0x25d65a=_0x380b23[_0x2aa63a(0x287,0x30a,_0x196804._0x88579f,0x224)](_0x38b712=>_0x38b712[_0x2aa63a(0x275,0x1b3,0x2f0,0x1d5)]==='image_url');_0x245228[_0x544fb1(-_0x196804._0xcd38b9,-_0x196804._0x5da9a1,-0x2d,0x39)]({'role':'user','content':_0x25d65a?_0x380b23['splice'](0x0):_0x380b23[_0x544fb1(-_0x196804._0x5b2b2e,-0x3e,-_0x196804._0x5480ac,-_0x196804._0x2c8996)](0x0)[_0x544fb1(-0x8b,-_0x196804._0x387777,-0x1b,-0x6d)](_0x91ead0=>_0x91ead0[_0x2aa63a(0x275,0x2ff,0x2c1,0x22d)]===_0x544fb1(0x9f,0x18,0xfc,0x79))[_0x544fb1(-0xc0,0x5b,-0x7,0x4)](_0x324762=>_0x324762[_0x2aa63a(0x34b,0x38e,0x326,0x2d9)])[_0x544fb1(_0x196804._0x449d8c,_0x196804._0x5ae384,0x176,_0x196804._0x3e5cad)]('\x0a\x0a')});return;}if(_0x567b9a[_0x544fb1(_0x196804._0x1e8c5c,-_0x196804._0x1671e0,_0x196804._0xbde457,-0x32)]===0x0)return;function _0x544fb1(_0x19737d,_0x2ef499,_0x128fb5,_0x1c1884){return _0x210c99(_0x128fb5- -_0x2d1a3d._0x40a6a4,_0x2ef499,_0x128fb5-0xfd,_0x1c1884-_0x2d1a3d._0x435e6e);}_0x245228['push']({'role':_0x357322[_0x544fb1(-_0x196804._0x29b0f6,_0x196804._0x1291e0,0x6d,-0x60)],'content':_0x567b9a[_0x2aa63a(_0x196804._0x3e180f,0x48e,0x342,0x356)]('\x0a\x0a')}),_0x567b9a[_0x2aa63a(0x27c,0x261,0x2ae,_0x196804._0x48df71)]=0x0;};for(const _0xc2e23f of normalizeContent(_0x357322[_0xd0dd53(_0x3d83dd._0x3cdda1,0x309,0x276,_0x3d83dd._0x44dc3d)])){if(_0xc2e23f['type']==='text'){_0x357322[_0x210c99(0x2fb,_0x3d83dd._0x5cdaff,0x329,0x3a0)]===_0x210c99(_0x3d83dd._0x36488c,0x240,0x2ef,_0x3d83dd._0x334d98)?_0x380b23['push']({'type':'text','text':_0xc2e23f[_0xd0dd53(_0x3d83dd._0x34df4e,_0x3d83dd._0x350588,_0x3d83dd._0x4fcefe,0x360)]}):_0x567b9a['push'](_0xc2e23f['text']);continue;}if(_0x357322[_0x210c99(0x2fb,0x396,0x319,0x25e)]===_0xd0dd53(_0x3d83dd._0x938b20,_0x3d83dd._0xa25ab6,_0x3d83dd._0x31fb65,_0x3d83dd._0x1c93bd)&&_0xc2e23f[_0xd0dd53(0x33c,_0x3d83dd._0x3e3068,0x298,_0x3d83dd._0x558d84)]===_0x210c99(_0x3d83dd._0x4576e4,0x319,0x2f4,0x48d)){_0x380b23[_0x210c99(_0x3d83dd._0x10dda4,0x1ca,0x2ce,0x30a)]({'type':_0x210c99(_0x3d83dd._0x2b8d67,0x346,_0x3d83dd._0x2abd2a,_0x3d83dd._0x2ceb69),'image_url':{'url':_0xd0dd53(_0x3d83dd._0x21ffd0,0x24a,0x29c,_0x3d83dd._0x478c64)+_0xc2e23f[_0xd0dd53(0x258,_0x3d83dd._0x35bf0f,0x2ea,0x368)][_0x210c99(_0x3d83dd._0x4dc504,0x374,0x36a,_0x3d83dd._0x4d9f92)]+_0xd0dd53(_0x3d83dd._0xf8a390,_0x3d83dd._0x4e7aac,0x324,_0x3d83dd._0x5a9e15)+_0xc2e23f[_0x210c99(_0x3d83dd._0x48264d,_0x3d83dd._0x4c11b9,0x280,_0x3d83dd._0x963e96)][_0xd0dd53(0x35b,_0x3d83dd._0xdc3444,0x39f,0x477)]}});continue;}if(_0xc2e23f[_0x210c99(0x2b4,_0x3d83dd._0x5335af,0x2c2,_0x3d83dd._0x24c425)]===_0xd0dd53(_0x3d83dd._0x2b8d67,_0x3d83dd._0x47dd60,0x3d3,_0x3d83dd._0x1b4fa7)){_0x22a1e5[_0x210c99(0x261,_0x3d83dd._0x2e3590,0x26e,_0x3d83dd._0x1f13f2)]({'id':_0xc2e23f['id'],'type':_0xd0dd53(_0x3d83dd._0x1a2384,_0x3d83dd._0x125cfa,_0x3d83dd._0x356214,0x320),'function':{'name':_0xc2e23f[_0x210c99(_0x3d83dd._0x26e02f,0x3dc,0x426,0x458)],'arguments':JSON[_0xd0dd53(_0x3d83dd._0x4b828f,_0x3d83dd._0x2e502f,0x2d2,0x340)](_0xc2e23f['input']??{})}});continue;}if(_0xc2e23f[_0x210c99(0x2b4,0x237,_0x3d83dd._0x4baa17,0x292)]!=='tool_result')continue;_0x12ecaf(),_0x245228[_0xd0dd53(0x2e5,0x184,0x245,_0x3d83dd._0x42911b)]({'role':_0xd0dd53(0x49a,0x49c,_0x3d83dd._0x315f18,_0x3d83dd._0x507c81),'content':getToolResultText(_0xc2e23f[_0xd0dd53(0x1a4,0x2e9,_0x3d83dd._0x2329d2,_0x3d83dd._0x5f3b43)]),'tool_call_id':_0xc2e23f[_0x210c99(0x2dd,_0x3d83dd._0x4f429d,0x329,0x291)]});const _0x267ea6=getToolResultImages(_0xc2e23f[_0x210c99(0x292,_0x3d83dd._0x3adaba,0x32a,_0x3d83dd._0x643cd4)]);_0x267ea6['length']>0x0&&_0x245228[_0x210c99(_0x3d83dd._0x2a2d5e,0x1eb,0x254,0x245)]({'role':'user','content':[{'type':_0xd0dd53(_0x3d83dd._0x1a585e,_0x3d83dd._0x4f3d6f,0x36e,0x381),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0xc2e23f[_0x210c99(0x2dd,0x219,0x332,0x23c)]+'.'},..._0x267ea6[_0x210c99(_0x3d83dd._0x4878c0,_0x3d83dd._0x5618f2,_0x3d83dd._0xc2fbcc,0x333)](_0x15bc6b=>({'type':_0x210c99(0x3ed,0x397,0x48c,0x3c9),'image_url':{'url':_0x210c99(0x2b8,0x308,0x27c,0x2df)+_0x15bc6b[_0xd0dd53(0x228,0x26c,0x2ea,0x244)]['media_type']+';base64,'+_0x15bc6b[_0xd0dd53(0x3a9,0x30f,0x2ea,0x3ca)][_0x210c99(0x3bb,0x3da,0x45a,0x3b4)]}}))]});}_0x12ecaf();}function _0x210c99(_0x3023a4,_0x253a1f,_0xb80dda,_0x443ab0){return _0x495204(_0x253a1f,_0x3023a4-0x54,_0xb80dda-0xd1,_0x443ab0-_0x1b485b._0x508542);}const _0x579aa1=resolveOpenAiReasoningConfig(_0x1b590b[_0xd0dd53(_0x3d83dd._0x33503d,_0x3d83dd._0x478c64,_0x3d83dd._0x5c66a4,0x230)]);return{'model':_0x1b590b[_0x210c99(_0x3d83dd._0x13a14d,_0x3d83dd._0x2adf68,_0x3d83dd._0x56fccd,_0x3d83dd._0x5e71ab)],'messages':_0x245228,'stream':_0x1be4fb,..._0x1b590b[_0x210c99(_0x3d83dd._0xec0cf8,_0x3d83dd._0x2dede9,0x21d,_0x3d83dd._0x2be66a)]!==void 0x0?_0x579aa1?{'max_completion_tokens':_0x1b590b[_0xd0dd53(0x2ba,0x25f,0x2ae,0x2d1)]}:{'max_tokens':_0x1b590b['maxTokens']}:{},..._0x579aa1?.[_0xd0dd53(_0x3d83dd._0x2511d5,0x303,0x327,0x3b2)]?{'reasoning_effort':_0x579aa1[_0x210c99(_0x3d83dd._0x567cf1,_0x3d83dd._0x521063,_0x3d83dd._0x35f021,_0x3d83dd._0x40c4b0)]}:{},...createToolDefinitions(_0x1b590b[_0xd0dd53(0x30f,0x23c,0x2e6,0x2d2)])?{'tools':createToolDefinitions(_0x1b590b['tools'])}:{},..._0x1b590b[_0xd0dd53(0x27f,_0x3d83dd._0x483841,_0x3d83dd._0x25913a,0x313)]?{'response_format':{'type':_0xd0dd53(0x23e,0x306,0x236,_0x3d83dd._0x52b9a8),'json_schema':{'name':_0x1b590b[_0x210c99(_0x3d83dd._0x59d2fe,_0x3d83dd._0x1cfb77,0x2e9,0x27a)][_0x210c99(0x3c9,_0x3d83dd._0x98e210,_0x3d83dd._0x18fc66,0x3a3)]??_0x210c99(0x3b6,0x47a,_0x3d83dd._0x24abe3,0x493),'schema':_0x1b590b['outputFormat'][_0x210c99(_0x3d83dd._0x5e4722,_0x3d83dd._0x4906ec,_0x3d83dd._0x330f00,0x390)],'strict':_0x1b590b[_0xd0dd53(_0x3d83dd._0x4c5a2d,0x394,_0x3d83dd._0x25a003,_0x3d83dd._0x4a54bb)]['strict']??!![]}}}:{}};}function createResponsesRequestBody(_0x5e02f5,_0x5cceb9,_0x2a205e){const _0x2982ed=_0x2a205e?.(_0x5e02f5);return{...toOpenAiResponsesRequest(_0x5e02f5),..._0x5cceb9?{'stream':!![]}:{},..._0x2982ed!==void 0x0?{'prompt_cache_key':_0x2982ed}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x175b8f,_0x49034d={}){const _0x5c77dd={_0x4f693d:0x1df,_0x18060c:0x178,_0x2f307f:0x658,_0x3578db:0x610,_0x23e9ae:0x5f7,_0x446d37:0x5d,_0x1edbd4:0xf6,_0x4d1573:0x2e,_0x35b61b:0x683,_0x2672cb:0x555,_0x3186ed:0x652,_0x317d17:0x6a7,_0x31a203:0x5c7,_0x37ce07:0x413,_0x5458d5:0x4a7},_0x3b7f64={_0x4ce06b:0x398},_0x18ff96={_0x4930d7:0x28d,_0x32c3ff:0x190};function _0x1cd6c7(_0x527743,_0x39a067,_0xd0de68,_0x331586){return _0x495204(_0x527743,_0x331586-_0x18ff96._0x4930d7,_0xd0de68-0x68,_0x331586-_0x18ff96._0x32c3ff);}function _0x4dc62a(_0x299173,_0x26cb6a,_0x3c2c72,_0x1107ff){return _0x495204(_0x26cb6a,_0x1107ff- -_0x3b7f64._0x4ce06b,_0x3c2c72-0x31,_0x1107ff-0x191);}const _0x331a0e=toOpenAiResponsesRequest(_0x175b8f);return{'type':_0x4dc62a(-0x8b,-0x12f,-_0x5c77dd._0x4f693d,-_0x5c77dd._0x18060c),..._0x331a0e,..._0x49034d[_0x1cd6c7(0x633,_0x5c77dd._0x2f307f,_0x5c77dd._0x3578db,_0x5c77dd._0x23e9ae)]?{'input':_0x49034d[_0x4dc62a(-0x94,_0x5c77dd._0x446d37,-_0x5c77dd._0x1edbd4,-_0x5c77dd._0x4d1573)]}:{},..._0x49034d[_0x1cd6c7(_0x5c77dd._0x35b61b,0x648,0x590,0x5c7)]!==void 0x0?{'prompt_cache_key':_0x49034d[_0x1cd6c7(_0x5c77dd._0x2672cb,_0x5c77dd._0x3186ed,_0x5c77dd._0x317d17,_0x5c77dd._0x31a203)]}:{},..._0x49034d['previousResponseId']?{'previous_response_id':_0x49034d[_0x1cd6c7(0x517,_0x5c77dd._0x37ce07,_0x5c77dd._0x5458d5,0x4bf)]}:{},'store':![]};}function normalizeAssistantContent(_0x249922){const _0x519dd9={_0x3ff2a5:0x617,_0x158d31:0x572,_0x5de62b:0x569,_0x30d505:0x49e,_0x11a117:0x7d1},_0x1147a2={_0x48a33d:0x528,_0x572710:0x5f4,_0x59774d:0x440,_0x1842bb:0x454},_0x302e75={_0x32f808:0x1dd},_0x3b7d6d={_0x5bae4d:0x1a2,_0x21ff2d:0x5da};function _0xed63f4(_0x140657,_0x578cc8,_0x4ff190,_0x3a4d7f){return _0xd0b0c8(_0x140657-_0x3b7d6d._0x5bae4d,_0x578cc8- -_0x3b7d6d._0x21ff2d,_0x3a4d7f,_0x3a4d7f-0xd6);}function _0x24de20(_0x48ba5b,_0x3f0075,_0x39e0ba,_0x31b922){return _0x495204(_0x31b922,_0x39e0ba-0x354,_0x39e0ba-0xaa,_0x31b922-_0x302e75._0x32f808);}if(typeof _0x249922===_0x24de20(_0x519dd9._0x3ff2a5,0x56a,0x572,_0x519dd9._0x158d31))return _0x249922;if(!Array['isArray'](_0x249922))return'';return _0x249922[_0x24de20(_0x519dd9._0x5de62b,_0x519dd9._0x30d505,0x587,0x528)](_0x1329fa=>{const _0x24a0f2={_0x41f768:0x42,_0x14c5a2:0x1e7},_0x44e2eb={_0x4deae3:0x181,_0x4f420e:0x14f,_0x40d382:0x6cb};function _0x45e2f9(_0x5b5d4d,_0x5c2037,_0x3a0384,_0x328342){return _0x24de20(_0x5b5d4d-_0x44e2eb._0x4deae3,_0x5c2037-_0x44e2eb._0x4f420e,_0x5b5d4d- -_0x44e2eb._0x40d382,_0x3a0384);}function _0x3c2c73(_0x52bece,_0x4fd832,_0x5e377c,_0x3f3d7d){return _0xed63f4(_0x52bece-_0x24a0f2._0x41f768,_0x52bece-0x4ae,_0x5e377c-_0x24a0f2._0x14c5a2,_0x5e377c);}return _0x1329fa['type']===_0x3c2c73(_0x1147a2._0x48a33d,0x599,_0x1147a2._0x572710,_0x1147a2._0x59774d)?_0x1329fa[_0x3c2c73(_0x1147a2._0x48a33d,_0x1147a2._0x1842bb,0x618,0x5a6)]:_0x1329fa['refusal'];})[_0x24de20(0x752,0x7b8,0x704,_0x519dd9._0x11a117)]('');}function normalizeResponsesMessageContent(_0x24216f){const _0x5c6fdd={_0x33f338:0x1fa,_0x3a123c:0x299,_0x1d2b7c:0xc2},_0x363c03={_0x186aa3:0x52f,_0x18f20d:0x50e,_0x91026a:0x5a8,_0x2e97ee:0x59c,_0x7aa0db:0x53e,_0x4c67c1:0x5df,_0xa7d57b:0x5ac,_0x1216fe:0x67e,_0x3362d7:0x4bc,_0x285262:0x6a7,_0x431ac6:0x390,_0x4368d7:0x41d,_0x306dbf:0x3cc,_0x177383:0x390,_0x4049af:0x370,_0x436945:0x48c,_0xb51f42:0x57d,_0x36c6d1:0x42f,_0x4f4f26:0x471},_0x2c5795={_0x4d33b4:0x2f},_0x497698={_0x2e95bc:0x76};if(!Array['isArray'](_0x24216f))return'';function _0x36b2a4(_0x3898b1,_0xc971e6,_0x2c1588,_0x1ae56f){return _0x495204(_0x3898b1,_0xc971e6- -0x3ec,_0x2c1588-_0x497698._0x2e95bc,_0x1ae56f-0x1a8);}function _0x84ae96(_0x19a5c7,_0x5efe0d,_0x3d8d56,_0x41ad98){return _0x495204(_0x5efe0d,_0x3d8d56-0xe3,_0x3d8d56-0x39,_0x41ad98-_0x2c5795._0x4d33b4);}return _0x24216f[_0x36b2a4(-_0x5c6fdd._0x33f338,-0x1b9,-0x1fa,-_0x5c6fdd._0x3a123c)](_0x33304d=>{const _0xfab34c={_0x46cc94:0x1ed};if(!_0x33304d||typeof _0x33304d!==_0xf71a20(_0x363c03._0x186aa3,_0x363c03._0x18f20d,_0x363c03._0x91026a,_0x363c03._0x2e97ee))return'';const _0x2e814c=_0x33304d;if(_0x2e814c[_0x1077af(0x5bb,_0x363c03._0x7aa0db,0x576,0x4fe)]===_0x1077af(_0x363c03._0x4c67c1,0x514,0x675,0x5e4)&&typeof _0x2e814c[_0x1077af(_0x363c03._0xa7d57b,0x5b1,_0x363c03._0x1216fe,0x5d4)]===_0x1077af(0x539,0x542,0x3de,_0x363c03._0x3362d7))return _0x2e814c[_0x1077af(_0x363c03._0x285262,0x62e,0x54b,0x5d4)];function _0xf71a20(_0x59e999,_0x56a5db,_0x2fc853,_0xdb5cdf){return _0x36b2a4(_0xdb5cdf,_0x59e999-0x5a9,_0x2fc853-0x176,_0xdb5cdf-_0xfab34c._0x46cc94);}if(_0x2e814c['type']===_0xf71a20(_0x363c03._0x431ac6,_0x363c03._0x4368d7,0x469,_0x363c03._0x306dbf)&&typeof _0x2e814c[_0xf71a20(_0x363c03._0x177383,_0x363c03._0x4049af,0x401,0x43d)]===_0x1077af(_0x363c03._0x436945,0x59f,_0x363c03._0xb51f42,_0x363c03._0x3362d7))return _0x2e814c[_0x1077af(_0x363c03._0x36c6d1,0x543,0x3f9,_0x363c03._0x4f4f26)];function _0x1077af(_0x510dd4,_0x2e435f,_0x46a6f9,_0x40c6ee){return _0x36b2a4(_0x510dd4,_0x40c6ee-0x68a,_0x46a6f9-0x1d1,_0x40c6ee-0x102);}return'';})[_0x36b2a4(-0x17,-0x3c,0x95,-_0x5c6fdd._0x1d2b7c)]('');}function extractOpenAiReasoningText(_0x36e54e){const _0x4ab08e={_0x43cd90:0x430,_0x442ded:0x51a,_0x450987:0x52f,_0x5a54f3:0x53c,_0x212392:0x4d2,_0x49ff3b:0x50d,_0xf24a0f:0x5ca},_0x15492d={_0x454f37:0x51};function _0x5a70df(_0x1a9b2e,_0x5d2735,_0xe6618a,_0x133b0b){return _0xd0b0c8(_0x1a9b2e-0x59,_0x5d2735- -_0x15492d._0x454f37,_0xe6618a,_0x133b0b-0x7c);}if(typeof _0x36e54e[_0x5c1053(0x608,0x6b2,0x6f8,0x66e)]===_0x5c1053(0x4f0,_0x4ab08e._0x43cd90,0x485,0x4ac))return _0x36e54e[_0x5a70df(_0x4ab08e._0x442ded,0x603,_0x4ab08e._0x450987,0x6e5)];if(!Array['isArray'](_0x36e54e[_0x5c1053(0x510,0x4ed,0x51f,0x598)]))return'';function _0x5c1053(_0x16ea96,_0xb56791,_0x4e678f,_0x3e32e8){return _0xd0b0c8(_0x16ea96-0x13,_0x16ea96- -0x4c,_0x3e32e8,_0x3e32e8-0x6a);}return _0x36e54e['content'][_0x5a70df(0x4fb,0x4ec,_0x4ab08e._0x5a54f3,_0x4ab08e._0x212392)](_0x3a95a6=>_0x3a95a6['type']===_0x5c1053(0x63f,0x6e3,0x698,0x5e1)&&typeof _0x3a95a6[_0x5c1053(0x608,0x528,0x5ea,0x58c)]==='string')[_0x5c1053(0x505,_0x4ab08e._0x49ff3b,0x4f3,_0x4ab08e._0xf24a0f)](_0x2593a5=>_0x2593a5['text']??'')[_0x5a70df(0x590,0x67d,0x6c7,0x5ec)]('');}function createOpenAiReasoningBlock(_0x57b5a2){const _0x2c85b7={_0x26a3d5:0x129,_0x599037:0x176,_0xf62cfd:0x562,_0x176d1f:0x497,_0x907cdc:0x4c0,_0x4fcba7:0x555},_0x2493b9={_0x27c021:0x1ef,_0x16d70f:0x95},_0x28a7b5={_0x38e68a:0x83};function _0x534433(_0x3de838,_0x5a2066,_0x45957d,_0x1aa85d){return _0xd0b0c8(_0x3de838-_0x28a7b5._0x38e68a,_0x5a2066- -0x10,_0x45957d,_0x1aa85d-0x2f);}const _0x1e8c86=extractOpenAiReasoningText(_0x57b5a2);function _0x27dcb1(_0x2a8cc4,_0x28832d,_0x36e5d0,_0x4d353c){return _0x495204(_0x4d353c,_0x2a8cc4- -_0x2493b9._0x27c021,_0x36e5d0-0x68,_0x4d353c-_0x2493b9._0x16d70f);}return{'type':_0x27dcb1(_0x2c85b7._0x26a3d5,0xd9,0x1a2,_0x2c85b7._0x599037),'summary':structuredClone(_0x57b5a2[_0x534433(0x57a,_0x2c85b7._0xf62cfd,_0x2c85b7._0x176d1f,0x4ff)]??[]),..._0x57b5a2['id']?{'id':_0x57b5a2['id']}:{},..._0x57b5a2[_0x27dcb1(-0x17,-0xc6,0x28,0x22)]?{'encryptedContent':_0x57b5a2['encrypted_content']}:{},..._0x1e8c86[_0x534433(_0x2c85b7._0x907cdc,0x575,0x5a0,_0x2c85b7._0x4fcba7)]>0x0?{'text':_0x1e8c86}:{}};}function hasVisibleOpenAiReasoning(_0x5a56cf){const _0x205530={_0x235da7:0x132,_0x18361e:0x1c9,_0x2f4460:0x111,_0x378acd:0x2f6,_0x32e505:0x29d,_0x3f2582:0x3df,_0x370024:0x35a},_0x1d2115={_0x4c9752:0x11d},_0x366bca={_0x344611:0x1e1};function _0x8749a6(_0x5371c8,_0x45301c,_0x1eb7c7,_0x13558e){return _0x495204(_0x1eb7c7,_0x5371c8- -0x40,_0x1eb7c7-_0x366bca._0x344611,_0x13558e-0x132);}function _0x5e1667(_0x294e4d,_0x4b8f07,_0x2ea8ca,_0x2d006c){return _0x495204(_0x294e4d,_0x2ea8ca- -_0x1d2115._0x4c9752,_0x2ea8ca-0xd9,_0x2d006c-0x71);}return _0x5a56cf[_0x5e1667(_0x205530._0x235da7,0xd1,0x137,0xfd)][_0x5e1667(0x9d,_0x205530._0x18361e,0x14a,_0x205530._0x2f4460)]>0x0||typeof _0x5a56cf[_0x8749a6(_0x205530._0x378acd,_0x205530._0x32e505,_0x205530._0x3f2582,_0x205530._0x370024)]==='string';}function parseChatCompletionResponse(_0x4cc30b){const _0xf6ec90={_0x23e03b:0x470,_0x1ab247:0x391,_0x4956d7:0x3a9,_0x49b869:0x3f3,_0x34feec:0x1ac,_0x4dcd36:0x222,_0x5da42b:0x20d,_0x38b1d6:0x2c5,_0xd41a7f:0x20e,_0xae11c4:0x1e1,_0x2b60f8:0x2da,_0x4629f8:0x26a,_0x51f82a:0x290,_0x35919c:0x2e6,_0x5a6378:0x304,_0x1fe9b0:0x3bf,_0x47303e:0x206,_0x4b844d:0x2c6,_0x42de63:0x296,_0x218825:0x3a0,_0x4a445e:0x2b2,_0x46650b:0x447,_0x6756e2:0x321,_0x4a402b:0x326,_0x138aae:0x414,_0x932e5f:0x3ef,_0x3f62c2:0x3e0,_0x1bff37:0x46a,_0x4f3375:0x45c,_0x4c5d13:0x3f0,_0x27036e:0x3fd,_0x5c95c1:0x33f,_0x352ec1:0x364},_0x214f5b={_0x360050:0xea,_0x26eb5f:0x319},_0x5abb8f={_0x1e6fe0:0x2d1,_0x44c379:0x13b},_0x23da73=[],_0x37bc36=[];function _0x2a3d3f(_0x5db558,_0x1972e8,_0x2e3e87,_0x7ec0c6){return _0xd0b0c8(_0x5db558-0x59,_0x7ec0c6- -_0x5abb8f._0x1e6fe0,_0x2e3e87,_0x7ec0c6-_0x5abb8f._0x44c379);}let _0x37609c=_0x2a3d3f(0x41b,_0xf6ec90._0x23e03b,0x2f7,0x3a9);for(const _0x280c15 of _0x4cc30b['choices']??[]){const _0x3e0f0c=_0x280c15[_0x2a3d3f(_0xf6ec90._0x1ab247,_0xf6ec90._0x4956d7,0x3e3,_0xf6ec90._0x49b869)],_0x80272b=normalizeAssistantContent(_0x3e0f0c?.[_0x5a2dd3(0x243,0x1d2,0x188,0x192)]);_0x80272b['length']>0x0&&_0x23da73[_0x2a3d3f(_0xf6ec90._0x34feec,0x2c5,_0xf6ec90._0x4dcd36,0x25a)](_0x80272b),_0x3e0f0c?.[_0x5a2dd3(0x248,_0xf6ec90._0x5da42b,_0xf6ec90._0x38b1d6,0x219)]&&_0x37bc36[_0x2a3d3f(_0xf6ec90._0xd41a7f,_0xf6ec90._0xae11c4,_0xf6ec90._0x2b60f8,0x25a)](..._0x3e0f0c[_0x2a3d3f(0x1d9,0x280,_0xf6ec90._0x4629f8,_0xf6ec90._0x51f82a)]),_0x280c15[_0x5a2dd3(_0xf6ec90._0x35919c,_0xf6ec90._0x5a6378,0x291,_0xf6ec90._0x1fe9b0)]===_0x2a3d3f(_0xf6ec90._0x47303e,0x2c4,_0xf6ec90._0x4b844d,0x290)&&(_0x37609c=_0x5a2dd3(0x3a0,0x41e,0x2cb,0x3c5));}_0x37bc36[_0x2a3d3f(0x34c,0x2bc,_0xf6ec90._0x42de63,0x2b4)]>0x0&&(_0x37609c=_0x5a2dd3(_0xf6ec90._0x218825,_0xf6ec90._0x4a445e,_0xf6ec90._0x46650b,0x43e));function _0x5a2dd3(_0x4e3029,_0x15f445,_0x114ece,_0x2ea8df){return _0xd0b0c8(_0x4e3029-_0x214f5b._0x360050,_0x4e3029- -_0x214f5b._0x26eb5f,_0x15f445,_0x2ea8df-0x87);}return{'id':_0x4cc30b['id']??_0x2a3d3f(_0xf6ec90._0x6756e2,_0xf6ec90._0x4a402b,_0xf6ec90._0x138aae,_0xf6ec90._0x932e5f)+Date[_0x2a3d3f(_0xf6ec90._0x3f62c2,_0xf6ec90._0x1bff37,_0xf6ec90._0x4f3375,0x399)](),'content':createContentBlocks(_0x23da73[_0x2a3d3f(0x37d,_0xf6ec90._0x4c5d13,0x4b4,_0xf6ec90._0x27036e)](''),_0x37bc36),'stopReason':_0x37609c,'usage':createUsage(_0x4cc30b[_0x2a3d3f(_0xf6ec90._0x5c95c1,0x300,_0xf6ec90._0x352ec1,0x35d)])};}function parseResponsesResponse(_0x1f56d7,_0x1701d6){const _0x173b72={_0x39d8ec:0x381,_0x173861:0x355,_0x3c086c:0x6c,_0x57b74c:0x80,_0x172f32:0xf5,_0x4435a1:0x4a,_0x1ab4e3:0x12,_0x25967f:0x106,_0x20ff72:0x38,_0x1f7746:0x13a,_0x515421:0x8d,_0x37c42b:0x12c,_0x4bb888:0x8b,_0x246695:0x39b,_0x146f50:0x4d,_0x3f2b23:0xd9,_0x49fd12:0x131,_0x443c35:0xfc,_0x30b32e:0x176,_0xd39595:0x440,_0x35decf:0x669,_0x3415bb:0x4c9,_0x25593c:0x4a3,_0xfba411:0x597,_0x3042fa:0x1,_0x13fd15:0x63,_0x440a2e:0xc2,_0x260b21:0x5e,_0x27ed64:0xf2,_0x922324:0x26,_0x4883c9:0x390,_0x412d7e:0x42f,_0x2077a3:0x1ee,_0x230f69:0x122,_0x35cec4:0x5a2,_0x1e470c:0x52d,_0x3b7605:0x652,_0x2f1a1c:0x1d9,_0x5ba9f6:0xac,_0x2cf2b1:0x5,_0x62641c:0x15a,_0x118f15:0x8f,_0x94ff1b:0xa6,_0x40eb05:0xcf,_0x51cc53:0x211,_0x5f1bc6:0xe9,_0x1996c5:0x517,_0x449f1c:0x5e0,_0x106599:0x57e,_0x353adc:0x97,_0x14ae4d:0xa1,_0x450c85:0x4fd,_0xb32fe6:0x5b2,_0x2cd532:0x504,_0xd5ba7d:0x16b,_0x1f61f1:0xa8,_0x1587ff:0xe5},_0x443b43={_0x135110:0x222,_0x18397c:0x1d3},_0x2f3faf={_0x1283c8:0x597,_0xb7eb05:0xdd},_0x2731ac=[];for(const _0x452e9e of _0x1f56d7[_0x3f51c7(_0x173b72._0x39d8ec,0x321,_0x173b72._0x173861,0x3f3)]??[]){if(isResponsesReasoningItem(_0x452e9e)){if(isUserVisibleReasoning(_0x1701d6)){const _0x40d761=createOpenAiReasoningBlock(_0x452e9e);hasVisibleOpenAiReasoning(_0x40d761)&&_0x2731ac[_0x32abf5(-0x29,-0xa0,-_0x173b72._0x3c086c,-_0x173b72._0x57b74c)](_0x40d761);}continue;}if(isResponsesMessageItem(_0x452e9e)){const _0x41c98c=normalizeResponsesMessageContent(_0x452e9e['content']);_0x41c98c[_0x32abf5(-_0x173b72._0x172f32,_0x173b72._0x4435a1,-_0x173b72._0x1ab4e3,-_0x173b72._0x25967f)]>0x0&&_0x2731ac[_0x32abf5(_0x173b72._0x20ff72,0x27,-0x6c,-_0x173b72._0x1f7746)]({'type':_0x32abf5(0x1f,_0x173b72._0x515421,0xbd,0x12e),'text':_0x41c98c});continue;}if(!isResponsesFunctionCallItem(_0x452e9e)||typeof _0x452e9e[_0x32abf5(-0x151,-_0x173b72._0x37c42b,-_0x173b72._0x4bb888,-0x1d)]!==_0x3f51c7(0x362,0x39d,_0x173b72._0x246695,0x440)||_0x452e9e['call_id'][_0x32abf5(_0x173b72._0x146f50,0x6b,-0x63,-0x88)]()[_0x32abf5(-_0x173b72._0x3f2b23,-0x43,-_0x173b72._0x1ab4e3,0xcf)]===0x0||typeof _0x452e9e[_0x32abf5(0x19d,_0x173b72._0x49fd12,_0x173b72._0x443c35,_0x173b72._0x30b32e)]!==_0x3f51c7(0x4b3,0x383,0x4b1,_0x173b72._0xd39595)||_0x452e9e[_0x3f51c7(_0x173b72._0x35decf,_0x173b72._0x3415bb,_0x173b72._0x25593c,_0x173b72._0xfba411)][_0x32abf5(_0x173b72._0x3042fa,0x28,-_0x173b72._0x13fd15,-_0x173b72._0x440a2e)]()['length']===0x0||typeof _0x452e9e[_0x32abf5(0x2d,_0x173b72._0x260b21,_0x173b72._0x27ed64,_0x173b72._0x922324)]!=='string')continue;_0x2731ac[_0x3f51c7(_0x173b72._0x4883c9,0x4bc,0x4a8,_0x173b72._0x412d7e)]({'type':_0x32abf5(_0x173b72._0x2077a3,0x1eb,_0x173b72._0x230f69,0x1f7),'id':_0x452e9e['call_id'],'name':_0x452e9e[_0x3f51c7(_0x173b72._0x35cec4,_0x173b72._0x1e470c,_0x173b72._0x3b7605,0x597)],'input':parseToolInput2(_0x452e9e[_0x32abf5(0x10a,_0x173b72._0x2f1a1c,0xf2,_0x173b72._0x5ba9f6)])});}function _0x32abf5(_0x1c2866,_0xc75bd6,_0xf54227,_0x1b8e8b){return _0xd0b0c8(_0x1c2866-0xad,_0xf54227- -_0x2f3faf._0x1283c8,_0xc75bd6,_0x1b8e8b-_0x2f3faf._0xb7eb05);}function _0x3f51c7(_0xd42a08,_0x1f110a,_0x287468,_0x57b883){return _0x495204(_0x1f110a,_0x57b883-_0x443b43._0x135110,_0x287468-_0x443b43._0x18397c,_0x57b883-0xc8);}return!_0x2731ac[_0x32abf5(0x42,-_0x173b72._0x2cf2b1,-0x7,0x2f)](_0x279ed9=>_0x279ed9['type']===_0x3f51c7(0x4c5,0x604,0x60b,0x558))&&_0x1f56d7[_0x32abf5(0xa5,_0x173b72._0x25967f,0xcd,_0x173b72._0x62641c)]&&_0x2731ac['push']({'type':_0x32abf5(_0x173b72._0x118f15,_0x173b72._0x1ab4e3,0xbd,0x5a),'text':_0x1f56d7['output_text']}),{'id':_0x1f56d7['id'],'content':_0x2731ac,'stopReason':_0x2731ac[_0x32abf5(-0x94,_0x173b72._0x94ff1b,-0x7,-_0x173b72._0x40eb05)](_0x49869d=>_0x49869d[_0x3f51c7(0x470,0x55d,0x39d,0x482)]===_0x3f51c7(0x57a,0x660,0x680,0x5bd))?_0x32abf5(0x64,_0x173b72._0x51cc53,0x122,_0x173b72._0x5f1bc6):_0x3f51c7(_0x173b72._0x1996c5,0x649,_0x173b72._0x449f1c,_0x173b72._0x106599),'usage':{'inputTokens':_0x1f56d7['usage']?.['input_tokens']??0x0,'outputTokens':_0x1f56d7[_0x32abf5(0xf9,_0x173b72._0x1f7746,_0x173b72._0x353adc,_0x173b72._0x14ae4d)]?.[_0x3f51c7(0x447,0x511,0x49c,_0x173b72._0x450c85)]??0x0,..._0x1f56d7[_0x3f51c7(_0x173b72._0xb32fe6,0x469,0x482,0x532)]?.[_0x3f51c7(0x529,0x4ed,_0x173b72._0x2cd532,0x531)]?.[_0x32abf5(0x139,0xd6,0x11e,_0x173b72._0xd5ba7d)]!==void 0x0?{'reasoningTokens':_0x1f56d7['usage'][_0x3f51c7(0x50d,0x577,0x494,0x531)]['reasoning_tokens']}:{}},..._0x1f56d7[_0x32abf5(-_0x173b72._0x353adc,-0x155,-_0x173b72._0x1f61f1,-0xf0)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x1f56d7[_0x32abf5(0x3c,-0x6d,-0xa8,-_0x173b72._0x1587ff)]),'openaiResponsesResponseId':_0x1f56d7['id']}}:{}};}function extractErrorMessage(_0x3f298d){const _0x573917={_0x10845a:0x57,_0x4c7e80:0x9e,_0x5ccf18:0xe0,_0x2209e6:0x147,_0x319557:0x1c3,_0x3b3bc4:0x3da,_0x2b8f6a:0xb3,_0x3f1b44:0xe,_0x3d03c3:0x2d8,_0x5d28f5:0x320,_0x158c0f:0x6,_0x46384c:0x77,_0x29be76:0x37f,_0x51c1d2:0x35e,_0x39d5af:0x4ff,_0x3f1aaf:0x496,_0x45f068:0x15,_0x43f404:0x196,_0x3b7ad0:0x111,_0xeb78af:0xeb,_0x3a136e:0x8b,_0x503ccb:0xf3,_0x5989a8:0x1f0,_0x4c36ed:0x196,_0x1712f0:0x146,_0x4a3309:0x16,_0x253016:0x221,_0x471a27:0x10a},_0x529f92={_0x15ad2d:0x48,_0x57775e:0x22e},_0x68891f={_0xcb1da6:0x52e};if(_0x3f298d[_0x235ecc(0x71,-0x8d,_0x573917._0x10845a,_0x573917._0x4c7e80)]===0x0)return'';try{const _0x308563=JSON[_0x235ecc(_0x573917._0x5ccf18,0x1e1,_0x573917._0x2209e6,_0x573917._0x319557)](_0x3f298d);if(typeof _0x308563[_0x372fef(0x28e,_0x573917._0x3b3bc4,0x37f,0x340)]?.['message']===_0x235ecc(-_0x573917._0x2b8f6a,0xf,_0x573917._0x3f1b44,-0xda)&&_0x308563[_0x372fef(_0x573917._0x3d03c3,_0x573917._0x5d28f5,0x37f,0x2a5)][_0x235ecc(0xf0,0x262,0x196,0x1c1)][_0x235ecc(0x94,-0xa2,_0x573917._0x158c0f,_0x573917._0x46384c)]()['length']>0x0)return _0x308563[_0x372fef(0x29a,0x292,_0x573917._0x29be76,_0x573917._0x51c1d2)][_0x372fef(0x4cf,_0x573917._0x39d5af,_0x573917._0x3f1aaf,0x4ec)][_0x235ecc(-0x86,-_0x573917._0x45f068,0x6,-0x1f)]();if(typeof _0x308563[_0x235ecc(0xd1,0x272,_0x573917._0x43f404,_0x573917._0x3b7ad0)]===_0x235ecc(_0x573917._0xeb78af,_0x573917._0x3a136e,_0x573917._0x3f1b44,_0x573917._0x503ccb)&&_0x308563[_0x235ecc(_0x573917._0x5989a8,0x172,_0x573917._0x4c36ed,0x1b4)][_0x235ecc(0x39,-0x44,0x6,0x86)]()[_0x235ecc(-0x68,_0x573917._0x1712f0,0x57,_0x573917._0x4a3309)]>0x0)return _0x308563[_0x235ecc(_0x573917._0x253016,0x1d5,0x196,_0x573917._0x471a27)][_0x235ecc(0xb2,0x6c,0x6,0x1a)]();}catch{return _0x3f298d;}function _0x235ecc(_0x24b4dc,_0x21f306,_0x5da1d6,_0x5f0f74){return _0xd0b0c8(_0x24b4dc-0xf1,_0x5da1d6- -_0x68891f._0xcb1da6,_0x21f306,_0x5f0f74-0x106);}function _0x372fef(_0x56516d,_0x276e8b,_0x5f1352,_0x3c25ec){return _0xd0b0c8(_0x56516d-_0x529f92._0x15ad2d,_0x5f1352- -_0x529f92._0x57775e,_0x56516d,_0x3c25ec-0x88);}return _0x3f298d;}async function createOpenAiApiError(_0x322627){const _0x497c8c={_0x44620f:0x5e5,_0x50dbaf:0x629,_0x5caa4a:0x58d,_0x427fac:0x599,_0x2c4ebb:0x578,_0x166dc9:0x675,_0x29ec18:0x69d,_0x5b346a:0x680,_0x36a7e7:0x69e},_0x1b035f={_0x39aff9:0x4a6,_0x3ab8b1:0x8f},_0x1693f2={_0x1e2925:0x6f};function _0x4c003b(_0x11b4c0,_0x572083,_0x570731,_0x321fe6){return _0xd0b0c8(_0x11b4c0-0x6a,_0x11b4c0- -_0x1693f2._0x1e2925,_0x572083,_0x321fe6-0xeb);}function _0x1eb687(_0x22f4e8,_0x33d6ea,_0x4cb2b0,_0xffdd04){return _0xd0b0c8(_0x22f4e8-0xde,_0xffdd04- -_0x1b035f._0x39aff9,_0x22f4e8,_0xffdd04-_0x1b035f._0x3ab8b1);}const _0x800845=(await _0x322627[_0x4c003b(_0x497c8c._0x44620f,0x5f0,0x6c9,0x63c)]())[_0x4c003b(0x4c5,0x44c,0x413,0x4d8)](),_0x4e6f72=extractErrorMessage(_0x800845)||_0x322627[_0x4c003b(_0x497c8c._0x50dbaf,0x5fb,_0x497c8c._0x5caa4a,0x626)]||_0x4c003b(_0x497c8c._0x427fac,_0x497c8c._0x2c4ebb,0x5e5,_0x497c8c._0x166dc9)+_0x322627[_0x4c003b(0x5c9,0x519,0x58f,_0x497c8c._0x29ec18)];return new OpenAiApiError(_0x322627[_0x4c003b(0x5c9,_0x497c8c._0x5b346a,0x5d8,_0x497c8c._0x36a7e7)],_0x800845,_0x4e6f72);}function readSseData(_0x228fac){const _0x35d147={_0x3c74bb:0x21a,_0x3eb5dc:0x30c,_0x504552:0x2f7,_0x527a26:0x326,_0x38e06d:0x21e,_0x232147:0x1ee,_0x1814d5:0x2f5,_0x492879:0x3a0,_0x4aeb9c:0x488,_0x491c54:0x511,_0x3ca140:0x525,_0x5ef4d5:0x1fa},_0x32dffc={_0x20b643:0x96,_0x5bbd7a:0x333};function _0x3ab692(_0x4c5f47,_0x407014,_0x5764ce,_0x25d4b7){return _0xd0b0c8(_0x4c5f47-_0x32dffc._0x20b643,_0x4c5f47- -_0x32dffc._0x5bbd7a,_0x25d4b7,_0x25d4b7-0x177);}function _0x17e573(_0x5297b6,_0x42e135,_0x3a92fb,_0x5ca267){return _0xd0b0c8(_0x5297b6-0x87,_0x42e135- -0x246,_0x5ca267,_0x5ca267-0xb5);}return _0x228fac[_0x3ab692(_0x35d147._0x3c74bb,0x2f1,0x168,_0x35d147._0x3eb5dc)]('\x0a')[_0x17e573(0x308,_0x35d147._0x504552,_0x35d147._0x527a26,0x220)](_0x460440=>_0x460440['startsWith']('data:'))[_0x3ab692(_0x35d147._0x38e06d,0x282,_0x35d147._0x232147,_0x35d147._0x1814d5)](_0x1fcefa=>_0x1fcefa[_0x17e573(0x311,0x383,0x3d6,0x30f)](0x5)[_0x3ab692(0x2a9,0x242,0x216,0x1bf)]())[_0x17e573(_0x35d147._0x492879,_0x35d147._0x4aeb9c,_0x35d147._0x491c54,_0x35d147._0x3ca140)]('\x0a')[_0x3ab692(0x201,0x277,0x149,_0x35d147._0x5ef4d5)]();}function readString(_0x559cc8){const _0x32cee7={_0x3085de:0x171,_0x4b8b81:0x4a4,_0x110e59:0x503,_0x56ce48:0x464},_0x5225d6={_0x5f4133:0x137,_0x1462f4:0x3c};function _0x3cebed(_0x10ae60,_0x11a938,_0x442641,_0x740d4d){return _0xd0b0c8(_0x10ae60-0x1de,_0x10ae60- -0x163,_0x442641,_0x740d4d-0x108);}function _0x21c0b8(_0x655be5,_0x504379,_0x3aca61,_0x23a8ab){return _0x495204(_0x3aca61,_0x23a8ab- -0x53,_0x3aca61-_0x5225d6._0x5f4133,_0x23a8ab-_0x5225d6._0x1462f4);}return typeof _0x559cc8===_0x21c0b8(0x1c6,_0x32cee7._0x3085de,0x29f,0x1cb)&&_0x559cc8[_0x3cebed(0x422,_0x32cee7._0x4b8b81,_0x32cee7._0x110e59,_0x32cee7._0x56ce48)]>0x0?_0x559cc8:void 0x0;}function extractReasoningDetails(_0x50f695){const _0x2a9641={_0x2d95bf:0x3eb,_0x474f50:0x36,_0x1337e4:0x81,_0x12800e:0x26},_0x594c53={_0x2844e6:0x191,_0x1ae6a8:0xa6},_0x141155={_0x226b99:0x10e,_0x316238:0x72,_0x36711c:0x8e,_0x102740:0x12d,_0x311ea5:0x138,_0x4f7e85:0xc,_0x20d9e9:0x11e,_0x10da55:0xc4},_0x485aeb={_0x2d9f2b:0x68,_0xee9ee1:0xd5};if(!Array[_0xc1b864(0x48d,_0x2a9641._0x2d95bf,0x325,0x302)](_0x50f695))return void 0x0;const _0x4210fd=_0x50f695[_0x1168b8(_0x2a9641._0x474f50,-_0x2a9641._0x1337e4,-_0x2a9641._0x12800e,0x110)](_0xfab16c=>{const _0x5ba22b={_0x32c541:0x1c3,_0x2ce99f:0x58};if(!_0xfab16c||typeof _0xfab16c!=='object')return[];function _0x5b4cc(_0x5e3544,_0x90574b,_0x25bb29,_0x12810b){return _0xc1b864(_0x90574b,_0x5e3544- -_0x485aeb._0x2d9f2b,_0x25bb29-0x1ae,_0x12810b-_0x485aeb._0xee9ee1);}function _0x38927d(_0xb84db2,_0x440d22,_0x453de5,_0x2c5ff7){return _0x1168b8(_0x2c5ff7-_0x5ba22b._0x32c541,_0x440d22,_0x453de5-_0x5ba22b._0x2ce99f,_0x2c5ff7-0x1d4);}const _0x319725=_0xfab16c;if(typeof _0x319725[_0x38927d(0xbf,0x27a,_0x141155._0x226b99,0x1a6)]===_0x38927d(-0x5e,-0xc,_0x141155._0x316238,_0x141155._0x36711c))return[_0x319725['text']];if(typeof _0x319725[_0x38927d(0xe8,_0x141155._0x102740,_0x141155._0x311ea5,0xc4)]===_0x38927d(_0x141155._0x4f7e85,-0x53,_0x141155._0x20d9e9,0x8e))return[_0x319725[_0x38927d(0x1a5,0x7f,0x10d,_0x141155._0x10da55)]];return[];});function _0xc1b864(_0x3da5f3,_0xac6106,_0x26f68c,_0x4f2e36){return _0xd0b0c8(_0x3da5f3-_0x594c53._0x2844e6,_0xac6106- -0x231,_0x3da5f3,_0x4f2e36-_0x594c53._0x1ae6a8);}function _0x1168b8(_0x44769b,_0x3daf87,_0x439c21,_0x345a42){return _0xd0b0c8(_0x44769b-0xbe,_0x44769b- -0x671,_0x3daf87,_0x345a42-0x193);}return _0x4210fd['length']>0x0?_0x4210fd['join'](''):void 0x0;}function extractChatCompletionReasoningDelta(_0x930729){const _0x17a7d9={_0x12b322:0x1cb,_0x44a04b:0x320,_0xb5c3f:0x486},_0x7eba62={_0x3da23c:0x11c,_0xa527af:0x10f};function _0x1014b3(_0x4469c0,_0x5293fe,_0x42e710,_0x11ebea){return _0xd0b0c8(_0x4469c0-0x1ae,_0x42e710- -0x27e,_0x4469c0,_0x11ebea-0x1dc);}function _0x52571c(_0x319f12,_0x58567b,_0x4bc094,_0x50a115){return _0x495204(_0x58567b,_0x50a115-_0x7eba62._0x3da23c,_0x4bc094-0xc5,_0x50a115-_0x7eba62._0xa527af);}return extractReasoningDetails(_0x930729?.[_0x1014b3(_0x17a7d9._0x12b322,0x36c,0x288,0x2d6)])??readString(_0x930729?.[_0x52571c(0x30c,0x46d,_0x17a7d9._0x44a04b,0x3e3)])??readString(_0x930729?.['reasoning_content'])??readString(_0x930729?.[_0x52571c(0x50f,_0x17a7d9._0xb5c3f,0x467,0x489)])??'';}var OpenAiChatCompletionsStreamParser=class{[_0x495204(0x152,0x227,0x257,0x313)]=[];['request'];[_0x495204(0x3ef,0x37c,0x411,0x2ac)]=[];[_0x495204(0x168,0x237,0x22d,0x184)]=new Map();[_0xd0b0c8(0x593,0x5a4,0x628,0x52c)]=[];[_0x495204(0x38f,0x30a,0x2fa,0x327)]=new Set();['responseId']='';['stopReason']='end_turn';['usage'];constructor(_0x40f7f4){const _0xc46488={_0x9a19fe:0x8b,_0xace5ad:0x8f},_0x3b6dbe={_0x327e9a:0x190};function _0x583f6a(_0x1106f6,_0x4c7b34,_0x3173fe,_0x1b7dad){return _0x495204(_0x1b7dad,_0x1106f6- -_0x3b6dbe._0x327e9a,_0x3173fe-0x175,_0x1b7dad-0x157);}this[_0x583f6a(0xcd,_0xc46488._0x9a19fe,_0xc46488._0xace5ad,0x168)]=_0x40f7f4;}['consumeSseEvent'](_0x5643ed){const _0x64f40={_0x761da9:0x56d,_0x1412df:0x4d1,_0x5169d9:0x51d,_0x42999d:0x406,_0x5b9956:0x45d,_0x3d8b2c:0x672,_0x93f9ea:0x5df,_0x3defb0:0x34c,_0x4e3fe5:0x5e4},_0x1993d6={_0xee6e85:0x21,_0x13a055:0x4a,_0x2ff6c0:0x8d},_0x44a3ef={_0x4ddf42:0x45},_0x4a20de=readSseData(_0x5643ed);function _0x59bc4a(_0x1288e7,_0xd66c4b,_0x30ac51,_0x4c65a1){return _0x495204(_0x30ac51,_0x1288e7-0x18,_0x30ac51-0x15d,_0x4c65a1-_0x44a3ef._0x4ddf42);}if(_0x4a20de['length']===0x0||_0x4a20de===_0x11e88d(_0x64f40._0x761da9,_0x64f40._0x1412df,0x4ab,_0x64f40._0x5169d9))return[];function _0x11e88d(_0x2187bb,_0x459eb6,_0x3a2590,_0x768943){return _0xd0b0c8(_0x2187bb-_0x1993d6._0xee6e85,_0x2187bb- -_0x1993d6._0x13a055,_0x768943,_0x768943-_0x1993d6._0x2ff6c0);}const _0x2fc8f7=JSON[_0x59bc4a(0x36f,_0x64f40._0x42999d,0x2a5,_0x64f40._0x5b9956)](_0x4a20de);return this[_0x59bc4a(0x3b6,0x358,0x404,0x3bf)]=_0x2fc8f7['id']??this[_0x11e88d(_0x64f40._0x3d8b2c,0x64e,0x61d,0x6df)],this[_0x11e88d(0x5e4,0x574,_0x64f40._0x93f9ea,0x6c8)]=_0x2fc8f7[_0x59bc4a(0x328,0x234,0x2de,_0x64f40._0x3defb0)]??this[_0x11e88d(_0x64f40._0x4e3fe5,0x5c4,0x639,0x6a7)],this['consumeEvent'](_0x2fc8f7);}['finish'](){const _0x8d88a6={_0xba412c:0x65,_0xc384ac:0x76,_0x39f6b0:0x1a7,_0x3ce709:0x150,_0x531821:0x1d7,_0x38604c:0x1fa,_0x3848ad:0x11d,_0x37b5d0:0xf7,_0x583811:0x114,_0xcb0511:0x1c4,_0x584eee:0x1af,_0x5a0e30:0xc6,_0x304da0:0x2ee,_0x6818f7:0x367,_0x287597:0x228,_0x34a60a:0xeb},_0xf7ede8={_0x42f3a1:0x8d,_0x4615cc:0x61};function _0x163fcc(_0x4e695c,_0x2b83b3,_0x4b1ed0,_0x1e19a8){return _0x495204(_0x4e695c,_0x1e19a8- -0x2ea,_0x4b1ed0-0xca,_0x1e19a8-0x1b3);}this[_0x163fcc(-_0x8d88a6._0xba412c,_0x8d88a6._0xc384ac,-0xfb,-0x64)][_0x107973(_0x8d88a6._0x39f6b0,0x1da,0x204,0x21e)]>0x0&&(this[_0x107973(0x12d,_0x8d88a6._0x3ce709,_0x8d88a6._0x531821,_0x8d88a6._0x38604c)]=_0x163fcc(_0x8d88a6._0x3848ad,0x1,0xed,0xb1));function _0x107973(_0xdc31be,_0x2fac0e,_0x31b313,_0x248034){return _0x495204(_0x248034,_0x2fac0e- -_0xf7ede8._0x42f3a1,_0x31b313-_0xf7ede8._0x4615cc,_0x248034-0x104);}const _0x4d62b1=isUserVisibleReasoning(this[_0x107973(0x295,0x1d0,_0x8d88a6._0x37b5d0,0x2b0)])?this[_0x107973(0x25f,0x19a,_0x8d88a6._0x583811,_0x8d88a6._0xcb0511)][_0x163fcc(0x144,_0x8d88a6._0x584eee,0x144,_0x8d88a6._0x5a0e30)](''):void 0x0;return{'id':this[_0x107973(0x374,0x311,0x229,_0x8d88a6._0x304da0)]||'chatcmpl-'+Date['now'](),'content':createContentBlocks(this[_0x107973(_0x8d88a6._0x6818f7,0x2ef,0x393,_0x8d88a6._0x287597)][_0x107973(0x28b,0x323,0x29d,0x247)](''),this['toolCallOrder'],_0x4d62b1),'stopReason':this[_0x107973(0x1f4,0x150,0x19b,0x7a)],'usage':createUsage(this[_0x163fcc(_0x8d88a6._0x34a60a,-0x58,-0x97,0x26)])};}[_0xd0b0c8(0x61a,0x623,0x6cd,0x546)](_0x23864d){const _0x4a53da={_0x1da906:0x614,_0x1b2454:0x58d,_0x98bd7d:0x637,_0x470c8b:0x443,_0x102cf1:0x4c3,_0x3e7913:0x448,_0x29907b:0x48f,_0x3272c9:0x487,_0x390652:0x53e,_0x339723:0x46d,_0x22758b:0x3fd,_0x26401e:0x38c,_0x3b7802:0x27,_0x3266df:0xf2,_0x53ead8:0x477,_0x40046f:0x4e7,_0x244c1e:0x54b,_0x1e5f3f:0x4d1,_0xb830ff:0x555,_0x47274e:0x5fe,_0x54cd1a:0x5e7,_0x3a13ea:0x5a2,_0x3418bd:0x2e3,_0x5a3fdf:0x7d,_0x469acf:0xc4,_0x480a60:0x8f,_0x219d06:0x2b,_0x46846f:0xba,_0x3a2f5b:0xd3,_0x2f25e8:0x10,_0x1ae038:0x3c,_0x1280fd:0xa6,_0x114595:0x542,_0x4cfc9a:0x56b,_0x48d856:0x46b,_0x2e5a4c:0x357,_0x3217c8:0x456,_0x6d5aad:0x16,_0x310f79:0xb3,_0x5d8712:0x53,_0x1ad28b:0x68,_0x3bcd06:0x4c7,_0x42c9fe:0x489,_0x3852a3:0x58e,_0x4ce534:0x2af,_0xe9b814:0x210,_0x423e1f:0x7,_0x43c685:0x36,_0x3ae9f2:0x54,_0x37cd93:0x5a,_0x405703:0xa3,_0x17b314:0xcc,_0x4b967a:0x287,_0x5373ad:0x188,_0x340dd0:0x120,_0x4d75a8:0x1e4,_0x7a4003:0x5f8,_0x2616ae:0x5b2,_0x28a779:0x5d8,_0x347b20:0x643,_0x3ed71b:0xdd,_0x506edc:0x2c,_0x19f962:0x11b,_0x165712:0x46d,_0x392a03:0x1a3,_0x13e835:0x256,_0x54215e:0x284,_0x17be2d:0x118,_0x2c4138:0x637,_0x3222b5:0x681,_0x5340b6:0x152,_0x2ed3f3:0x1d8,_0x313862:0x111,_0x2c3f9a:0x44c,_0x27affc:0x449,_0x8fd175:0x530,_0x5d6b49:0x176,_0x1cce68:0x26d,_0xa8a0e5:0x488,_0x10e3b0:0x474,_0x5165ef:0xe0,_0x7ec33:0xbb,_0x6df621:0xfc,_0x1a1731:0x4df,_0x36b3d5:0x45d,_0x22b285:0x26e,_0x452f6a:0x2a5,_0x3ccd79:0x20a,_0x500814:0x56a,_0x23395b:0x555,_0x10abe2:0x4ec,_0x4cd513:0x23e,_0x4f72bc:0x195,_0xf9dfbb:0x25f,_0x2c5782:0x117,_0x2f5f0a:0x4a1,_0x547b8b:0x20f,_0x110028:0x11a,_0x217af8:0x233,_0x1a32cc:0x8d,_0x116cdb:0x74,_0x1792fc:0x541,_0x2546ac:0x497,_0x3ced0e:0xea,_0x4541e6:0x100,_0x19f736:0xd8,_0x5ab985:0x43d,_0x2f2846:0x427,_0x874180:0x527,_0xdd6f7e:0x299,_0x4d0318:0x230},_0x35aa5c={_0x44b9ba:0x91},_0x5a24e8=[];for(const _0x2c3a07 of _0x23864d[_0x1bac58(_0x4a53da._0x1da906,_0x4a53da._0x1b2454,0x6bb,_0x4a53da._0x98bd7d)]??[]){const _0xf5f856=_0x2c3a07[_0x1bac58(0x533,0x4ae,_0x4a53da._0x470c8b,_0x4a53da._0x102cf1)],_0x383042=extractChatCompletionReasoningDelta(_0xf5f856);_0x383042[_0x1bac58(0x4c7,_0x4a53da._0x3e7913,_0x4a53da._0x29907b,0x567)]>0x0&&(this[_0x1bac58(_0x4a53da._0x3272c9,_0x4a53da._0x390652,0x39d,0x424)][_0x1bac58(_0x4a53da._0x339723,0x556,_0x4a53da._0x22758b,_0x4a53da._0x26401e)](_0x383042),isUserVisibleReasoning(this[_0xf646ad(0x1bf,0x1b8,_0x4a53da._0x3b7802,_0x4a53da._0x3266df)])&&_0x5a24e8[_0x1bac58(_0x4a53da._0x339723,_0x4a53da._0x53ead8,0x4e2,0x546)]({'type':_0x1bac58(_0x4a53da._0x40046f,_0x4a53da._0x244c1e,_0x4a53da._0x1e5f3f,_0x4a53da._0xb830ff),'contentIndex':0x0,'delta':_0x383042,'itemId':(this[_0x1bac58(_0x4a53da._0x47274e,_0x4a53da._0x54cd1a,_0x4a53da._0x3a13ea,0x536)]||_0xf646ad(_0x4a53da._0x3418bd,0x236,0x1d5,0x206))+_0xf646ad(0x14c,_0x4a53da._0x5a3fdf,_0x4a53da._0x469acf,0x87),'outputIndex':0x0}));const _0x591f5b=typeof _0xf5f856?.[_0xf646ad(_0x4a53da._0x480a60,_0x4a53da._0x219d06,_0x4a53da._0x46846f,_0x4a53da._0x3a2f5b)]===_0xf646ad(-_0x4a53da._0x2f25e8,_0x4a53da._0x1ae038,_0x4a53da._0x1280fd,0xb3)?_0xf5f856[_0x1bac58(0x49e,0x58b,_0x4a53da._0x114595,_0x4a53da._0x4cfc9a)]:typeof _0xf5f856?.[_0x1bac58(0x433,_0x4a53da._0x48d856,_0x4a53da._0x2e5a4c,_0x4a53da._0x3217c8)]===_0xf646ad(0x8f,-_0x4a53da._0x6d5aad,0x14d,_0x4a53da._0x310f79)?_0xf5f856[_0xf646ad(0x99,-_0x4a53da._0x5d8712,-0x2c,_0x4a53da._0x1ad28b)]:'';_0x591f5b[_0x1bac58(_0x4a53da._0x3bcd06,_0x4a53da._0x42c9fe,_0x4a53da._0x3852a3,0x598)]>0x0&&(this[_0xf646ad(_0x4a53da._0x4ce534,0x2be,_0x4a53da._0xe9b814,0x211)][_0xf646ad(_0x4a53da._0x423e1f,0xcb,0x23,0xa2)](_0x591f5b),_0x5a24e8[_0xf646ad(0xc2,0x121,0x14d,0xa2)]({'type':'content_delta','index':0x0,'text':_0x591f5b}));for(const _0x5dae9a of _0xf5f856?.[_0xf646ad(_0x4a53da._0x43c685,-0xf,0x2c,0xd8)]??[]){const _0x210192=_0x5dae9a[_0xf646ad(-_0x4a53da._0x3ae9f2,0xce,_0x4a53da._0x37cd93,0x9a)]??0x0;let _0x35b0fc=this[_0xf646ad(_0x4a53da._0x405703,0x189,0x17d,_0x4a53da._0x17b314)][_0x1bac58(0x49a,0x48e,0x52e,0x4a7)](_0x210192);!_0x35b0fc&&(_0x35b0fc={'id':_0x5dae9a['id']??_0xf646ad(_0x4a53da._0x4b967a,0x221,_0x4a53da._0x5373ad,0x1f3)+_0x210192,'type':_0xf646ad(0x16e,_0x4a53da._0x340dd0,0x2a4,_0x4a53da._0x4d75a8),'function':{'name':_0x5dae9a['function']?.[_0x1bac58(0x5d5,_0x4a53da._0x7a4003,_0x4a53da._0x2616ae,0x54f)]??'','arguments':''}},this['toolCallsByIndex'][_0x1bac58(0x576,_0x4a53da._0x28a779,_0x4a53da._0x347b20,0x61e)](_0x210192,_0x35b0fc),this[_0xf646ad(0x86,_0x4a53da._0x3ed71b,_0x4a53da._0x506edc,_0x4a53da._0x19f962)][_0x1bac58(_0x4a53da._0x165712,0x523,0x40e,0x4ab)](_0x35b0fc));_0x5dae9a['id']&&(_0x35b0fc['id']=_0x5dae9a['id']);_0x5dae9a['function']?.[_0xf646ad(_0x4a53da._0x392a03,_0x4a53da._0x13e835,_0x4a53da._0x54215e,0x20a)]&&(_0x35b0fc[_0xf646ad(_0x4a53da._0x17be2d,0x13d,0x143,0x1e4)]['name']=_0x5dae9a[_0x1bac58(0x5af,0x562,_0x4a53da._0x2c4138,_0x4a53da._0x3222b5)][_0xf646ad(0x12b,_0x4a53da._0x5340b6,_0x4a53da._0x2ed3f3,0x20a)]);!this[_0xf646ad(_0x4a53da._0x313862,0x171,0x25a,0x19f)][_0x1bac58(_0x4a53da._0x2c3f9a,0x519,_0x4a53da._0x27affc,_0x4a53da._0x8fd175)](_0x210192)&&_0x35b0fc[_0xf646ad(_0x4a53da._0x5d6b49,0x1a4,_0x4a53da._0x1cce68,0x1e4)]['name'][_0x1bac58(0x476,_0x4a53da._0xa8a0e5,_0x4a53da._0x10e3b0,0x4b5)]()[_0xf646ad(0xdc,_0x4a53da._0x5165ef,_0x4a53da._0x7ec33,_0x4a53da._0x6df621)]>0x0&&(_0x5a24e8[_0x1bac58(_0x4a53da._0x165712,0x3a6,0x3ea,_0x4a53da._0x1a1731)]({'type':_0x1bac58(0x43f,0x505,_0x4a53da._0x36b3d5,0x396),'id':_0x35b0fc['id'],'index':_0x210192,'name':_0x35b0fc['function'][_0xf646ad(_0x4a53da._0x22b285,_0x4a53da._0x452f6a,0x136,_0x4a53da._0x3ccd79)]}),this[_0x1bac58(_0x4a53da._0x500814,_0x4a53da._0x23395b,0x61c,_0x4a53da._0x10abe2)]['add'](_0x210192));const _0x1a0b4c=_0x5dae9a[_0xf646ad(_0x4a53da._0x4cd513,_0x4a53da._0x4f72bc,0x123,_0x4a53da._0x4d75a8)]?.[_0xf646ad(_0x4a53da._0xf9dfbb,0x189,_0x4a53da._0x2c5782,0x200)]??'';_0x1a0b4c[_0x1bac58(0x4c7,0x4b4,0x5b6,_0x4a53da._0x2f5f0a)]>0x0&&(_0x35b0fc[_0xf646ad(_0x4a53da._0x547b8b,0x1ee,_0x4a53da._0x110028,0x1e4)][_0xf646ad(_0x4a53da._0x217af8,0x211,0x171,0x200)]+=_0x1a0b4c,_0x5a24e8['push']({'type':_0xf646ad(_0x4a53da._0x1a32cc,0xdf,0x4f,_0x4a53da._0x116cdb),'id':_0x35b0fc['id'],'index':_0x210192,'inputDelta':_0x1a0b4c}));}_0x2c3a07[_0x1bac58(_0x4a53da._0x1792fc,0x499,0x5a2,_0x4a53da._0x2546ac)]===_0xf646ad(_0x4a53da._0x3ced0e,_0x4a53da._0x4541e6,0x153,_0x4a53da._0x19f736)&&(this[_0x1bac58(_0x4a53da._0x5ab985,_0x4a53da._0x2f2846,0x4e3,_0x4a53da._0x874180)]=_0xf646ad(_0x4a53da._0xdd6f7e,0x281,0x1f1,_0x4a53da._0x4d0318));}function _0x1bac58(_0x243636,_0x594e51,_0x1f7670,_0x56f9d8){return _0xd0b0c8(_0x243636-0x1dd,_0x243636- -0xbe,_0x594e51,_0x56f9d8-0xaa);}function _0xf646ad(_0x535df7,_0x11fcab,_0x2e8cbf,_0xb60213){return _0xd0b0c8(_0x535df7-_0x35aa5c._0x44b9ba,_0xb60213- -0x489,_0x535df7,_0xb60213-0xa6);}return _0x5a24e8;}},OpenAiResponsesStreamParser=class{[_0xd0b0c8(0x6aa,0x6ca,0x77c,0x72c)]=new Map();[_0x495204(0x3fe,0x311,0x3ee,0x2c2)];[_0x495204(0x39c,0x35f,0x442,0x2de)]=new Map();[_0xd0b0c8(0x67f,0x58e,0x5a3,0x4cb)]=new Map();[_0x495204(0x378,0x2ed,0x29d,0x2bb)]=new Map();['request'];['responseTextParts']=new Map();['toolCalls']=new Map();constructor(_0x1223d7){const _0x1d9ad8={_0x4ba2a0:0x3d0,_0x960144:0x3bb},_0x48d1c6={_0x285bae:0x1d9};function _0x36cc89(_0x2735a0,_0x36ce98,_0x580c0a,_0x4356ac){return _0x495204(_0x36ce98,_0x2735a0-0x173,_0x580c0a-_0x48d1c6._0x285bae,_0x4356ac-0x2e);}this[_0x36cc89(_0x1d9ad8._0x4ba2a0,0x41d,0x303,_0x1d9ad8._0x960144)]=_0x1223d7;}[_0x495204(0x37e,0x2eb,0x358,0x38b)](_0xf1b111){const _0x35e666={_0x265366:0xf4,_0x448367:0x59,_0x2e35ce:0x12d,_0x3c05a8:0x2d5,_0x2c843b:0x340,_0x2a9102:0x49,_0x1d9438:0x111,_0x509593:0x95,_0x2b4c12:0x12e,_0x2ce2b5:0x2fe,_0x13e349:0x46c,_0xb54aa5:0x388,_0x5d5e1f:0x486,_0x13ece7:0x478,_0x53853e:0x3eb,_0x5f5991:0x139,_0x4e96b5:0xe4,_0x566a16:0xa8},_0x2a7ba3={_0x815ece:0x165},_0x4960c2={_0x16966d:0x121,_0x14b472:0x86},_0x420e13=_0xf1b111[_0x2ed2d8(-_0x35e666._0x265366,-0x88,-0x115,-0x22)]('\x0a'),_0x333173=_0x420e13[_0x2ed2d8(-0x121,-0xf9,-0x47,-_0x35e666._0x448367)](_0x2dd871=>_0x2dd871[_0x2ed2d8(-0x148,-0xa7,-0x105,-0x4b)](_0x5e3a1a(0x2c6,0x372,0x2bc,0x344)))?.['slice'](0x6)[_0x2ed2d8(-0x13f,-_0x35e666._0x2e35ce,-0x12e,-0x181)](),_0x1d943f=_0x420e13[_0x5e3a1a(_0x35e666._0x3c05a8,0x37d,0x280,_0x35e666._0x2c843b)](_0xf3976c=>_0xf3976c['startsWith'](_0x5e3a1a(0x37b,0x41f,0x386,0x385)))[_0x2ed2d8(-_0x35e666._0x2a9102,-0x1bd,-_0x35e666._0x1d9438,-_0x35e666._0x509593)](_0x2e0563=>_0x2e0563['slice'](0x5)['trimStart']())['join']('\x0a')[_0x2ed2d8(-0xdb,-0x43,-_0x35e666._0x2b4c12,-0x1a5)]();function _0x5e3a1a(_0x1af4c9,_0x4509dc,_0x281011,_0x1c2d83){return _0x495204(_0x4509dc,_0x1c2d83-_0x4960c2._0x16966d,_0x281011-0xc1,_0x1c2d83-_0x4960c2._0x14b472);}if(_0x1d943f[_0x5e3a1a(0x38b,_0x35e666._0x2ce2b5,_0x35e666._0x13e349,_0x35e666._0xb54aa5)]===0x0||_0x1d943f==='[DONE]')return[];const _0x38f033=JSON[_0x5e3a1a(0x563,0x3cb,_0x35e666._0x5d5e1f,_0x35e666._0x13ece7)](_0x1d943f);function _0x2ed2d8(_0xa2ba38,_0x7670b4,_0x49ecd4,_0xb4e854){return _0xd0b0c8(_0xa2ba38-0x4a,_0x49ecd4- -0x662,_0x7670b4,_0xb4e854-_0x2a7ba3._0x815ece);}return this[_0x5e3a1a(_0x35e666._0x53853e,0x4d2,0x3bf,0x426)](_0x333173??String(_0x38f033[_0x2ed2d8(-0x1bd,-_0x35e666._0x5f5991,-_0x35e666._0x4e96b5,-_0x35e666._0x566a16)]??''),_0x38f033);}[_0xd0b0c8(0x4b5,0x51e,0x5ce,0x4b5)](_0x329b62){const _0x156a26={_0x2a7ba9:0x3fa,_0x1420e6:0x367};function _0x54d671(_0x3aaf29,_0x27e407,_0x320690,_0x41091d){return _0xd0b0c8(_0x3aaf29-0x166,_0x41091d- -0x2bc,_0x320690,_0x41091d-0xfc);}return this[_0x54d671(0x371,0x2e5,_0x156a26._0x2a7ba9,_0x156a26._0x1420e6)](String(_0x329b62['type']??''),_0x329b62);}[_0x495204(0x2f1,0x26e,0x353,0x24c)](){const _0x4e65a0={_0x2fadfd:0x15a,_0x2190d3:0x160,_0x2c4d84:0x1e5,_0x26b3aa:0x155,_0x149a6b:0x200,_0x3f41cf:0x154,_0x14a6a6:0x431,_0x58a4e4:0x4ba,_0x2010d2:0x475,_0x34e6e9:0x29b,_0x5141a6:0x18a,_0x5208d7:0x191,_0x4c592d:0x258,_0x204f77:0x243,_0x591f96:0x532,_0x11c6a4:0xef,_0x57af1f:0x8,_0x24d2db:0x43a,_0x19afe2:0x466,_0x2edb4a:0x4d5,_0xb330de:0x594,_0x5b586a:0x5b5,_0x3a6688:0x5e5},_0x50ff80={_0x67de0f:0xfb,_0xb197e1:0x7a,_0x5a2ec9:0x2e},_0x2d980b={_0x3fcd04:0x1e7,_0x949059:0x41};function _0x2cb541(_0x3a629c,_0x167199,_0x4d8e8a,_0x36b039){return _0x495204(_0x36b039,_0x167199- -0x111,_0x4d8e8a-_0x2d980b._0x3fcd04,_0x36b039-_0x2d980b._0x949059);}const _0x3b536c=this['buildPartialOutput'](),_0x542a69=this[_0x2cb541(_0x4e65a0._0x2fadfd,0x200,_0x4e65a0._0x2190d3,_0x4e65a0._0x2c4d84)]?{...this['finalResponse'],'output':this[_0x2cb541(_0x4e65a0._0x26b3aa,_0x4e65a0._0x149a6b,_0x4e65a0._0x3f41cf,0x2aa)][_0x914fca(0x437,_0x4e65a0._0x14a6a6,_0x4e65a0._0x58a4e4,_0x4e65a0._0x2010d2)]&&this[_0x2cb541(0x282,_0x4e65a0._0x149a6b,_0x4e65a0._0x34e6e9,0x2c9)]['output'][_0x2cb541(_0x4e65a0._0x5141a6,0x156,0xab,0xcc)]>0x0?this[_0x2cb541(_0x4e65a0._0x5208d7,_0x4e65a0._0x149a6b,_0x4e65a0._0x4c592d,_0x4e65a0._0x204f77)][_0x914fca(0x3c8,_0x4e65a0._0x591f96,0x41c,0x475)]:_0x3b536c}:{'id':_0x2cb541(_0x4e65a0._0x11c6a4,0xd9,0x152,-_0x4e65a0._0x57af1f)+Date['now'](),'object':_0x914fca(_0x4e65a0._0x24d2db,_0x4e65a0._0x19afe2,0x585,_0x4e65a0._0x2edb4a),'status':_0x914fca(_0x4e65a0._0xb330de,_0x4e65a0._0x5b586a,0x50e,_0x4e65a0._0x3a6688),'output':_0x3b536c,'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x914fca(_0x1944e3,_0x560b1f,_0x39b5e5,_0x470f13){return _0xd0b0c8(_0x1944e3-_0x50ff80._0x67de0f,_0x470f13- -_0x50ff80._0xb197e1,_0x560b1f,_0x470f13-_0x50ff80._0x5a2ec9);}return parseResponsesResponse(_0x542a69,this['request']);}['isDone'](){return this['finalResponse']!==void 0x0;}[_0x495204(0x252,0x305,0x3ca,0x222)](_0x277f15,_0x5d9229){const _0x24b76c={_0x5227a3:0x4f,_0x34651b:0x131,_0x5044a8:0x277,_0x23923a:0x2a5,_0x491776:0x3c8,_0x34e085:0x373,_0x2a5703:0x236,_0x5599a6:0x4c,_0x3b771e:0x3,_0x552d35:0x30f,_0x4b4c71:0x25c,_0x217406:0x299,_0x4c831d:0x1f0,_0x2564b5:0xad,_0x5a9014:0x112,_0x3a5d76:0x1a4,_0x9e9943:0x90,_0x5929dd:0x11,_0x2749f5:0x31c,_0xb7619e:0x30f,_0x1a8bb3:0x26e,_0x8ef12a:0x2a8,_0x55f554:0x26d,_0x34b41e:0x2a6,_0x5c6a28:0x48f,_0x169490:0x3ac,_0x298f16:0x39b,_0x2ef1c2:0x3a8,_0x4475bb:0x400,_0x1d4278:0x368,_0x9f9b40:0x54,_0x55d268:0x8f,_0x58ef12:0x21e,_0x3c3961:0x41c,_0xa56ce3:0x38d,_0x22385e:0x1ab,_0x26e2f3:0x243,_0x454a95:0x79,_0x311250:0x9,_0x956d9c:0xdd,_0x50ea91:0x208,_0x12724f:0xd2,_0x274279:0x367,_0x12926b:0x6e,_0x229932:0x40,_0x14d103:0x108,_0x2fe485:0x3f9,_0x1cff4c:0x32e,_0x3664f4:0x12c,_0x50250a:0xf9,_0x775281:0x7b,_0x3151c2:0x29,_0x1040fe:0x9,_0x50b76d:0xdf,_0x990782:0x1d1,_0x3933cf:0x196,_0x26f101:0x2c0,_0x1b40dc:0xbf,_0x2a58ff:0x138,_0x4a55f9:0x58,_0x49cc3b:0x30,_0x3ef40b:0x161,_0x527a0e:0x11b,_0xd5163b:0x166,_0x435911:0x2d2,_0x3dd64d:0x1dd,_0x26a318:0x167,_0x314c39:0x4d,_0xf4d7df:0x91,_0x30b36e:0xad,_0x303134:0xb9,_0x4c2240:0x81,_0x1d37e9:0x3b6,_0x33c6b7:0x273,_0x21c46f:0x2c2,_0x3d12af:0x22f,_0x102574:0xe5,_0x4c6f63:0x3a,_0x2afb3b:0x2d1,_0x15c922:0xf4,_0x3cdf52:0x30,_0x372b44:0x2e,_0xc980a8:0xae,_0x34819b:0x328,_0x692e45:0xe5,_0x1619a7:0x45,_0x353368:0xb,_0x188dbd:0xc8,_0x59a094:0x9d,_0x2480e3:0x2c3,_0x5181f1:0x1db,_0x56b8ca:0x2ba,_0x14afca:0x33f,_0x24d2e7:0x131,_0x363e99:0x1a7,_0x3aedf7:0x127,_0x5cf0db:0x1c8,_0xd76c6d:0x5,_0x2b8694:0x8,_0x536745:0x20e,_0xe7c5b:0x2fb,_0x3c6641:0xb,_0x1cb28d:0x7f,_0x2102b6:0x56,_0x106558:0x188,_0x41ec1c:0x101,_0x334bb5:0x15b,_0x64f2c8:0x417,_0x20a4b5:0x3d4,_0x4f9208:0x394,_0x57bad1:0x383,_0x2c6716:0x3f1,_0x52bc68:0x44e,_0x3ea628:0x383,_0xe1eb8a:0x22e,_0x423fa6:0x181,_0x2c3d6e:0x2c,_0x536efd:0x25b,_0x1b4da8:0x21c,_0x42a6b5:0x1db,_0x2906da:0x2fe,_0x344f72:0x336,_0x22091f:0x377,_0xd4f90e:0x280,_0x3d62e6:0x252,_0x576490:0x1a9,_0x19d940:0x298,_0x9e1e5f:0x243,_0xebbbda:0x70,_0x1ad42e:0xe5,_0xf02b9a:0x3d3,_0x3d8efc:0x317,_0x43e46c:0x415,_0x5298f1:0x33b,_0x1aeb0b:0x12,_0x2febc1:0xbf,_0x2db5ac:0x74,_0x2194d3:0x2ed,_0x5d9112:0x209,_0x523403:0x1f2,_0x503d39:0x360,_0x414f11:0x2ab,_0x20db95:0x359,_0x5de881:0x27f,_0x44b580:0x36c,_0x58a538:0x4b,_0x59d4f6:0x47,_0x3bb353:0x97,_0x454769:0x15f,_0x4a5b71:0x228,_0x589d52:0xd8,_0x518e92:0xbc,_0x5e1bdf:0xa4,_0x182eb8:0x39,_0x14562e:0x46,_0x449424:0x17,_0x26168d:0x61,_0x1f2764:0xfd,_0xdae0c:0x77,_0x4ab487:0x180,_0x5d6642:0x27a,_0x52421d:0x29,_0x4b26f6:0x2e9,_0x2a4d19:0x30c,_0x1d246c:0x168,_0x3f94a4:0x2fa,_0x2c1ad4:0xbd,_0x19682c:0x297,_0x388839:0x267,_0x3a3e49:0x33d,_0x2c0965:0x91,_0x314d39:0x177,_0x5642eb:0xb5,_0x5eff2e:0x6d,_0x20ee32:0x7c,_0x192993:0xb8,_0x1c0ae5:0x37e,_0x1eb4d9:0x2ae,_0x5a6843:0x228,_0x5cf7e1:0x420,_0x84edff:0x10f,_0x353651:0x192,_0x3fcb1d:0x139,_0x431f28:0xc2,_0x3c9bbd:0xc7,_0x29bf92:0xd9,_0x519b7a:0x118,_0x7ea56:0x333,_0x32ff83:0x24e,_0x7ec2c0:0x104,_0x4c086e:0x91,_0x19b3d1:0x120,_0x2a1503:0xab,_0x1f34ff:0x234,_0x468464:0x341,_0x497217:0x91,_0xd4f19a:0x16c,_0x1c0254:0x322,_0x4fce60:0x2a8,_0x5c5143:0x10b,_0x70facd:0x26,_0x20e122:0x6c,_0xe913bb:0xb7,_0x1d7057:0xc3,_0x4fe46b:0x292,_0x4f4184:0x2ca,_0x59e59f:0x158,_0xd8887b:0x291,_0x2f41c7:0x34e,_0x5a5e3b:0x1ea,_0xe9cb33:0x2d7,_0x4f7ad7:0x31a,_0x893fcd:0x14e,_0x1c419a:0x96,_0x5a013e:0x9,_0x2b675d:0xe0,_0x3793e4:0x38,_0x228fdb:0x287,_0xf7befb:0x354,_0x4d4fab:0x1fe,_0x2c9105:0x1e8,_0x5c3112:0x306,_0x373cce:0x2e1,_0x82ca52:0x28a,_0x2ce444:0x15,_0x4a8fb1:0xd8,_0x565223:0x28c,_0x589b82:0x4,_0xca84a5:0x112,_0x2436d6:0x1c,_0x5c4d45:0x0,_0x1dffdc:0x52,_0xa522e2:0xdb,_0x4db1ac:0x43,_0x1c4c9a:0xaf,_0x3a594:0x2cd,_0x58f515:0x370,_0x3c91ec:0x9,_0x104bcf:0x12f,_0x534fdc:0x7c,_0x481a25:0x16b,_0xf1955:0x98,_0x59f769:0x164,_0x1e394f:0x8c,_0x17ac74:0x56,_0x13ed1a:0x13b,_0x17dfb2:0x163,_0x550f51:0x256,_0x3dff91:0x175,_0x3e4a21:0x2d0,_0x59a6fc:0x204,_0x1cd088:0x314,_0x3c814d:0x288,_0x4c44dd:0x3e,_0x28fad3:0x20,_0x567584:0x29e,_0x37dbe1:0x2e1,_0x3e7397:0x8f,_0x307c32:0x8b,_0x4b020:0x2f,_0x1b780e:0x1a6,_0x4f0f45:0x1fb,_0x3f75cf:0x1f8,_0x270af8:0x68,_0x1d4a5a:0x59,_0x103979:0x1b0,_0x112568:0x43f,_0x10632d:0x404,_0x40e4fd:0x34e,_0x55a0c7:0x71,_0xab4e03:0x74,_0x648b04:0xb6,_0x5f15f9:0xe,_0x5adbbd:0xc9,_0x1bae6e:0x284,_0x1a1dcb:0x1b2,_0x5d755c:0x1db,_0x5ec5b6:0x87,_0x1928dd:0x88,_0x227893:0x15d,_0x231303:0x1b9,_0x97baac:0x2a7,_0x1d973a:0x16e,_0x1bea7a:0x3b5,_0x5b8a18:0x3be,_0x22ed7a:0x363,_0x1cc97f:0x339,_0x3dc661:0x2c9,_0xaa727e:0x5b,_0x6d3fbf:0xa1,_0x1d6d21:0x93,_0x46f71b:0x19,_0x147852:0x44,_0x285bd0:0x27e,_0x5da2f0:0x414,_0x54d368:0x332},_0x51d5e2={_0x1ca0aa:0x141},_0x14d418={_0x5446cb:0x18,_0x46904f:0x61,_0x12063c:0xbd};function _0x769213(_0x8d7fdc,_0x4bc846,_0xf223cb,_0x4fda23){return _0x495204(_0xf223cb,_0x4fda23-_0x14d418._0x5446cb,_0xf223cb-_0x14d418._0x46904f,_0x4fda23-_0x14d418._0x12063c);}switch(_0x277f15){case'response.output_text.delta':{const _0x237a21=typeof _0x5d9229[_0x491741(-0x17e,-0x91,_0x24b76c._0x5227a3,-_0x24b76c._0x34651b)]===_0x769213(_0x24b76c._0x5044a8,0x329,_0x24b76c._0x23923a,0x2a8)?_0x5d9229['output_index']:0x0,_0x5ac4cf=typeof _0x5d9229[_0x769213(_0x24b76c._0x491776,_0x24b76c._0x34e085,0x3d5,0x2eb)]===_0x769213(0x292,0x1e6,0x314,_0x24b76c._0x2a5703)?_0x5d9229[_0x491741(-0x106,-_0x24b76c._0x5599a6,-_0x24b76c._0x3b771e,0x85)]:'';if(_0x5ac4cf['length']>0x0){const _0x3b5a6f=this[_0x769213(0x275,_0x24b76c._0x552d35,_0x24b76c._0x4b4c71,_0x24b76c._0x217406)][_0x769213(0x25b,_0x24b76c._0x4c831d,0x204,0x252)](_0x237a21)??[];return _0x3b5a6f[_0x491741(-_0x24b76c._0x2564b5,-_0x24b76c._0x5a9014,-_0x24b76c._0x3a5d76,-0x132)](_0x5ac4cf),this[_0x491741(-0xd7,-0x9e,-0xed,-0x18e)]['set'](_0x237a21,_0x3b5a6f),[{'type':'content_delta','index':_0x237a21,'text':_0x5ac4cf}];}break;}case _0x491741(0x63,_0x24b76c._0x9e9943,-_0x24b76c._0x5929dd,0x98):{const _0x2ee733=typeof _0x5d9229[_0x769213(0x315,_0x24b76c._0x2749f5,_0x24b76c._0xb7619e,0x2a6)]===_0x769213(0x275,_0x24b76c._0x1a8bb3,0x2fc,_0x24b76c._0x8ef12a)?_0x5d9229[_0x769213(0x23f,_0x24b76c._0x55f554,0x25b,_0x24b76c._0x34b41e)]:void 0x0,_0x55bff7=_0x5d9229[_0x769213(_0x24b76c._0x5c6a28,0x314,0x34f,_0x24b76c._0x169490)];if(_0x55bff7?.['type']===_0x769213(_0x24b76c._0x298f16,_0x24b76c._0x2ef1c2,_0x24b76c._0x4475bb,_0x24b76c._0x1d4278)&&_0x55bff7[_0x491741(-_0x24b76c._0x9f9b40,-0x131,-_0x24b76c._0x55d268,-_0x24b76c._0x58ef12)]&&_0x55bff7[_0x769213(0x387,_0x24b76c._0x3c3961,0x35e,_0x24b76c._0xa56ce3)])return this[_0x769213(0x241,_0x24b76c._0x22385e,0x1d5,_0x24b76c._0x26e2f3)][_0x491741(-_0x24b76c._0x454a95,-_0x24b76c._0x311250,-0x87,-_0x24b76c._0x956d9c)](_0x55bff7[_0x769213(0x13c,0x279,_0x24b76c._0x50ea91,0x206)],{'id':_0x55bff7[_0x491741(-0x47,-_0x24b76c._0x34651b,-_0x24b76c._0x12724f,-0x40)],'type':_0x769213(0x402,0x3d7,0x350,_0x24b76c._0x274279),'function':{'name':_0x55bff7['name'],'arguments':''}}),_0x2ee733!==void 0x0&&(this[_0x491741(-_0x24b76c._0x12926b,_0x24b76c._0x229932,0x3c,_0x24b76c._0x14d103)][_0x769213(0x2bf,_0x24b76c._0x2fe485,0x305,_0x24b76c._0x1cff4c)](_0x2ee733,_0x55bff7[_0x491741(-_0x24b76c._0x3664f4,-0x131,-_0x24b76c._0x50250a,-0x12c)]),this[_0x491741(_0x24b76c._0x775281,0x8d,0x11b,_0x24b76c._0x3151c2)][_0x491741(0x3f,-_0x24b76c._0x1040fe,-_0x24b76c._0x50b76d,-0x2d)](_0x55bff7[_0x491741(-_0x24b76c._0x990782,-0x131,-0x20f,-0x1bd)],_0x2ee733)),[{'type':_0x769213(0x24a,_0x24b76c._0x3933cf,_0x24b76c._0x26f101,0x1f7),'id':_0x55bff7['call_id'],'index':_0x2ee733??0x0,'name':_0x55bff7['name']}];if(_0x55bff7?.[_0x491741(-0x9,-_0x24b76c._0x1b40dc,-0x15,-_0x24b76c._0x2a58ff)]===_0x491741(-0x85,-_0x24b76c._0x4a55f9,_0x24b76c._0x49cc3b,0x50)&&_0x55bff7['id']){const _0x213b3f=this[_0x491741(-0xee,-0x60,-0x11c,0x25)](_0x55bff7['id'],_0x2ee733);_0x2ee733!==void 0x0&&this[_0x491741(-_0x24b76c._0x3ef40b,-0xaf,-_0x24b76c._0x527a0e,-0x89)][_0x491741(-0xe7,-_0x24b76c._0x311250,-0x39,0x18)](_0x2ee733,_0x213b3f['id']);}break;}case _0x769213(_0x24b76c._0xd5163b,_0x24b76c._0x435911,0x251,0x234):{const _0x1480cb=typeof _0x5d9229[_0x769213(0x16d,_0x24b76c._0x3dd64d,0x2c1,0x206)]==='string'?_0x5d9229[_0x491741(-_0x24b76c._0x26a318,-0x131,-_0x24b76c._0x314c39,-0x168)]:typeof _0x5d9229[_0x491741(-0x103,-_0x24b76c._0xf4d7df,-_0x24b76c._0x30b36e,-0x109)]===_0x491741(-_0x24b76c._0x303134,-0x8f,-0x1d,-_0x24b76c._0x4c2240)?this[_0x769213(0x38e,_0x24b76c._0x1d37e9,0x318,0x377)]['get'](_0x5d9229[_0x769213(0x283,_0x24b76c._0x33c6b7,0x273,0x2a6)]):void 0x0,_0x1480c9=typeof _0x5d9229['delta']==='string'?_0x5d9229[_0x769213(_0x24b76c._0x21c46f,0x244,_0x24b76c._0x3d12af,0x2eb)]:'',_0x45deff=_0x1480cb?this['toolCalls'][_0x491741(-0x1a9,-_0x24b76c._0x102574,-0x48,-_0x24b76c._0x4c6f63)](_0x1480cb):void 0x0;if(_0x45deff&&_0x1480c9[_0x769213(0x24e,0x2b0,_0x24b76c._0x2afb3b,0x27f)]>0x0)return _0x45deff[_0x491741(_0x24b76c._0x15c922,_0x24b76c._0x3cdf52,_0x24b76c._0x372b44,-0x49)][_0x491741(_0x24b76c._0xc980a8,0x4c,0xc3,-0x4b)]+=_0x1480c9,[{'type':'tool_use_delta','id':_0x45deff['id'],'index':this[_0x769213(0x4b7,0x42e,_0x24b76c._0x34819b,0x3c4)][_0x491741(-0x11c,-_0x24b76c._0x692e45,-_0x24b76c._0x1619a7,_0x24b76c._0x353368)](_0x45deff['id'])??(typeof _0x5d9229[_0x491741(-_0x24b76c._0x188dbd,-0x91,-0x116,-_0x24b76c._0x59a094)]==='number'?_0x5d9229[_0x769213(0x1fe,_0x24b76c._0x2480e3,_0x24b76c._0x5181f1,0x2a6)]:0x0),'inputDelta':_0x1480c9}];break;}case _0x769213(0x36c,_0x24b76c._0x56b8ca,_0x24b76c._0x14afca,0x2f0):{const _0x8d489e=typeof _0x5d9229[_0x491741(-0x49,-_0x24b76c._0x24d2e7,-0x1b6,-_0x24b76c._0x363e99)]==='string'?_0x5d9229[_0x769213(0x1e4,_0x24b76c._0x3aedf7,0x1c6,0x206)]:typeof _0x5d9229[_0x769213(0x341,_0x24b76c._0x5cf0db,0x268,0x2a6)]===_0x491741(-0x3e,-_0x24b76c._0x55d268,-0xf9,_0x24b76c._0xd76c6d)?this[_0x491741(_0x24b76c._0x2b8694,0x40,0x61,0xcb)][_0x769213(_0x24b76c._0x536745,0x172,_0x24b76c._0xe7c5b,0x252)](_0x5d9229[_0x491741(-_0x24b76c._0x3c6641,-0x91,0x55,-0x8f)]):void 0x0,_0x2e101b=_0x8d489e?this['toolCalls'][_0x491741(-0x111,-0xe5,-_0x24b76c._0x1cb28d,-_0x24b76c._0x2102b6)](_0x8d489e):void 0x0;_0x2e101b&&typeof _0x5d9229['arguments']===_0x491741(-_0x24b76c._0x106558,-_0x24b76c._0x41ec1c,-0x1e,-_0x24b76c._0x334bb5)&&(_0x2e101b[_0x769213(0x33f,_0x24b76c._0x64f2c8,_0x24b76c._0x20a4b5,0x367)][_0x769213(_0x24b76c._0x4f9208,0x341,0x3aa,_0x24b76c._0x57bad1)]=_0x5d9229[_0x769213(_0x24b76c._0x2c6716,_0x24b76c._0x52bc68,0x2ca,_0x24b76c._0x3ea628)]);break;}case _0x769213(0x1e1,0x2c8,_0x24b76c._0xe1eb8a,0x210):{const _0x2f511c=typeof _0x5d9229['output_index']===_0x491741(-_0x24b76c._0x423fa6,-_0x24b76c._0x55d268,-0xc1,_0x24b76c._0x2c3d6e)?_0x5d9229[_0x769213(_0x24b76c._0x536efd,_0x24b76c._0x1b4da8,0x37f,0x2a6)]:void 0x0,_0x1b9f94=_0x5d9229['item'];if(_0x1b9f94?.[_0x769213(0x361,_0x24b76c._0x42a6b5,_0x24b76c._0x2906da,0x278)]===_0x769213(0x2f8,0x392,0x330,0x368)){const _0x12f58f=_0x1b9f94['call_id']??(_0x2f511c!==void 0x0?this[_0x769213(_0x24b76c._0x344f72,0x34c,0x425,_0x24b76c._0x22091f)][_0x769213(_0x24b76c._0xd4f90e,0x294,0x303,_0x24b76c._0x3d62e6)](_0x2f511c):void 0x0),_0x3eb67e=_0x12f58f?this[_0x769213(_0x24b76c._0x576490,_0x24b76c._0x19d940,0x32f,_0x24b76c._0x9e1e5f)][_0x491741(-_0x24b76c._0xebbbda,-_0x24b76c._0x1ad42e,-0x106,-0x96)](_0x12f58f):void 0x0;_0x3eb67e&&typeof _0x1b9f94[_0x769213(_0x24b76c._0xf02b9a,_0x24b76c._0x3d8efc,0x3bb,0x383)]==='string'&&(_0x3eb67e[_0x769213(_0x24b76c._0x43e46c,_0x24b76c._0x5298f1,0x287,0x367)]['arguments']=_0x1b9f94[_0x491741(_0x24b76c._0x1aeb0b,0x4c,-0x29,0xc2)]);break;}if(_0x1b9f94?.[_0x491741(-0x55,-_0x24b76c._0x2febc1,0x7,-_0x24b76c._0x2db5ac)]===_0x769213(0x21b,_0x24b76c._0x2194d3,0x37a,0x2df)&&_0x1b9f94['id']){const _0x3a91c3=this['getOrCreateReasoningItem'](_0x1b9f94['id'],_0x2f511c);typeof _0x1b9f94[_0x769213(0x288,0x2d3,0x190,0x1f0)]==='string'&&(_0x3a91c3[_0x769213(0x125,0x1db,_0x24b76c._0x5d9112,_0x24b76c._0x523403)]=_0x1b9f94['encrypted_content']);if(Array['isArray'](_0x1b9f94['summary']))for(let _0xcc5734=0x0;_0xcc5734<_0x1b9f94['summary'][_0x769213(_0x24b76c._0x503d39,_0x24b76c._0x414f11,_0x24b76c._0x20db95,_0x24b76c._0x5de881)];_0xcc5734+=0x1){const _0x8523ed=_0x1b9f94['summary'][_0xcc5734];_0x8523ed[_0x769213(0x2b0,0x272,_0x24b76c._0x44b580,0x278)]===_0x769213(0x310,0x2a0,0x3be,0x342)&&typeof _0x8523ed[_0x491741(_0x24b76c._0x58a538,0x17,-_0x24b76c._0x59d4f6,-_0x24b76c._0x3bb353)]===_0x491741(-0xb9,-_0x24b76c._0x41ec1c,-_0x24b76c._0x4c6f63,-0x14e)&&_0x3a91c3[_0x769213(0x255,_0x24b76c._0x454769,0x293,_0x24b76c._0x4a5b71)][_0x491741(-0xf1,-0x9,_0x24b76c._0x589d52,_0x24b76c._0x518e92)](_0xcc5734,_0x8523ed['text']);}typeof _0x1b9f94[_0x769213(0x3af,0x3c5,0x371,0x34e)]===_0x491741(-0xb6,-0x101,-0x3b,-0x43)&&_0x3a91c3[_0x491741(-_0x24b76c._0x5e1bdf,_0x24b76c._0x182eb8,-0xf,-0x1a)][_0x491741(-0xd5,-_0x24b76c._0x311250,0xe0,-_0x24b76c._0x14562e)](0x0,_0x1b9f94[_0x491741(0x69,_0x24b76c._0x449424,0x105,0x82)]);}break;}case _0x491741(-_0x24b76c._0x26168d,-0xa6,-_0x24b76c._0x1f2764,-0x18c):{const _0x2f035d=typeof _0x5d9229['delta']===_0x491741(-_0x24b76c._0xdae0c,-0x101,-_0x24b76c._0x4ab487,-0x129)?_0x5d9229[_0x769213(0x3c4,0x391,_0x24b76c._0x5d6642,0x2eb)]:'',_0xe23d15=typeof _0x5d9229[_0x491741(-_0x24b76c._0x52421d,-_0x24b76c._0x2102b6,-0xb9,-0xc3)]===_0x769213(_0x24b76c._0x4b26f6,_0x24b76c._0x2a4d19,_0x24b76c._0x1d246c,0x236)?_0x5d9229[_0x769213(0x3cb,_0x24b76c._0x3f94a4,0x30d,0x2e1)]:typeof _0x5d9229[_0x491741(-0x120,-0x91,-_0x24b76c._0x2c1ad4,-0x16b)]==='number'?this['outputIndexToReasoningId']['get'](_0x5d9229['output_index']):void 0x0,_0x56b6bc=typeof _0x5d9229[_0x769213(_0x24b76c._0x19682c,0x1c2,0x226,0x2a6)]===_0x769213(_0x24b76c._0x388839,_0x24b76c._0x3a3e49,0x305,0x2a8)?_0x5d9229[_0x491741(-0xc9,-_0x24b76c._0x2c0965,-0x160,-_0x24b76c._0x314d39)]:0x0,_0x3e89ad=typeof _0x5d9229['summary_index']===_0x491741(-_0x24b76c._0x5642eb,-0x8f,-_0x24b76c._0x5eff2e,-0x8a)?_0x5d9229[_0x491741(-0x101,-0xb7,0x14,-_0x24b76c._0x20ee32)]:0x0;if(_0xe23d15&&_0x2f035d[_0x491741(0x38,-_0x24b76c._0x192993,-0x182,-0x80)]>0x0){const _0x600c76=this[_0x769213(0x24d,_0x24b76c._0x1c0ae5,0x3cb,0x2d7)](_0xe23d15,_0x56b6bc);_0x600c76[_0x769213(0x2a5,0x1c5,_0x24b76c._0x1eb4d9,_0x24b76c._0x5a6843)][_0x769213(_0x24b76c._0x5cf7e1,0x280,_0x24b76c._0x3c3961,_0x24b76c._0x1cff4c)](_0x3e89ad,''+(_0x600c76[_0x491741(-0x5c,-_0x24b76c._0x84edff,-_0x24b76c._0x353651,-0xc7)][_0x491741(-0x1b1,-0xe5,-0x155,-_0x24b76c._0x3fcb1d)](_0x3e89ad)??'')+_0x2f035d);if(isUserVisibleReasoning(this[_0x491741(-0xab,-_0x24b76c._0x431f28,-_0x24b76c._0x3c9bbd,-0xdf)]))return[{'type':_0x491741(-_0x24b76c._0x29bf92,-_0x24b76c._0x519b7a,-0x209,-0x135),'delta':_0x2f035d,'itemId':_0xe23d15,'outputIndex':_0x56b6bc,'summaryIndex':_0x3e89ad}];}break;}case'response.reasoning_summary_text.done':{const _0x340adc=typeof _0x5d9229[_0x769213(0x334,0x2c0,_0x24b76c._0x7ea56,0x2e1)]===_0x769213(_0x24b76c._0x32ff83,0x201,0x2eb,0x236)?_0x5d9229[_0x769213(0x2d2,0x3ab,0x322,0x2e1)]:typeof _0x5d9229[_0x491741(-_0x24b76c._0x7ec2c0,-_0x24b76c._0x4c086e,-_0x24b76c._0x19b3d1,-_0x24b76c._0x2a1503)]==='number'?this['outputIndexToReasoningId'][_0x769213(0x17e,0x270,_0x24b76c._0x1f34ff,0x252)](_0x5d9229[_0x769213(0x355,0x238,_0x24b76c._0x468464,0x2a6)]):void 0x0,_0x38d657=typeof _0x5d9229[_0x491741(-0x75,-_0x24b76c._0x497217,-_0x24b76c._0xd4f19a,0x39)]===_0x769213(_0x24b76c._0x1c0254,0x211,0x2c5,_0x24b76c._0x4fce60)?_0x5d9229[_0x491741(-_0x24b76c._0x5c5143,-_0x24b76c._0x4c086e,-_0x24b76c._0x70facd,-0x10f)]:0x0,_0x43610f=typeof _0x5d9229[_0x491741(-_0x24b76c._0x20e122,-_0x24b76c._0xe913bb,-0xdb,-_0x24b76c._0x1d7057)]==='number'?_0x5d9229[_0x769213(0x2ec,_0x24b76c._0x4fe46b,0x20d,_0x24b76c._0xd4f90e)]:0x0,_0x3bf895=typeof _0x5d9229[_0x769213(0x2ec,0x398,0x25c,0x34e)]===_0x769213(0x1e2,_0x24b76c._0x4f4184,_0x24b76c._0x59e59f,0x236)?_0x5d9229[_0x769213(0x2e9,0x25f,_0x24b76c._0xd8887b,_0x24b76c._0x2f41c7)]:'';_0x340adc&&this[_0x769213(_0x24b76c._0x5a5e3b,0x3a4,0x34d,_0x24b76c._0xe9cb33)](_0x340adc,_0x38d657)[_0x769213(_0x24b76c._0x4f7ad7,0x21c,_0x24b76c._0x893fcd,_0x24b76c._0x5a6843)][_0x491741(_0x24b76c._0x1c419a,-_0x24b76c._0x5a013e,_0x24b76c._0x2b675d,-_0x24b76c._0x3793e4)](_0x43610f,_0x3bf895);break;}case _0x769213(_0x24b76c._0x228fdb,0x2c5,_0x24b76c._0xf7befb,0x261):{const _0x27a8b4=typeof _0x5d9229[_0x769213(0x339,_0x24b76c._0x4d4fab,0x364,0x2eb)]===_0x491741(-0x1d4,-0x101,-_0x24b76c._0x2c9105,-0x114)?_0x5d9229['delta']:'',_0x5adc48=typeof _0x5d9229[_0x769213(0x270,0x246,_0x24b76c._0x5c3112,_0x24b76c._0x373cce)]===_0x769213(_0x24b76c._0x82ca52,0x16c,0x2f4,0x236)?_0x5d9229[_0x491741(_0x24b76c._0x2ce444,-0x56,-_0x24b76c._0x4a8fb1,-0x71)]:typeof _0x5d9229['output_index']===_0x769213(_0x24b76c._0x565223,0x23d,0x1c5,0x2a8)?this[_0x491741(_0x24b76c._0x589b82,-0xaf,-0x10c,0x2)][_0x491741(-0x13,-0xe5,-_0x24b76c._0xca84a5,-0x160)](_0x5d9229[_0x491741(-_0x24b76c._0x589d52,-0x91,_0x24b76c._0x2436d6,_0x24b76c._0x5c4d45)]):void 0x0,_0x46db74=typeof _0x5d9229['output_index']==='number'?_0x5d9229[_0x491741(0x18,-_0x24b76c._0xf4d7df,-_0x24b76c._0xdae0c,-_0x24b76c._0x15c922)]:0x0,_0x36d2b8=typeof _0x5d9229[_0x769213(0x13d,0x148,0x20b,0x1f8)]===_0x491741(-_0x24b76c._0x1dffdc,-0x8f,-_0x24b76c._0xa522e2,-0x32)?_0x5d9229['content_index']:0x0;if(_0x5adc48&&_0x27a8b4[_0x769213(0x2e3,0x2c5,0x2ba,_0x24b76c._0x5de881)]>0x0){const _0x31d4b0=this[_0x491741(_0x24b76c._0x4db1ac,-0x60,-_0x24b76c._0x1c4c9a,-0x7e)](_0x5adc48,_0x46db74);_0x31d4b0[_0x769213(0x2cc,0x421,_0x24b76c._0x3a594,_0x24b76c._0x58f515)][_0x491741(0x1f,-_0x24b76c._0x3c91ec,0x7c,0x47)](_0x36d2b8,''+(_0x31d4b0['textByIndex'][_0x491741(-_0x24b76c._0x104bcf,-0xe5,-_0x24b76c._0x534fdc,-0x173)](_0x36d2b8)??'')+_0x27a8b4);if(isUserVisibleReasoning(this[_0x491741(-_0x24b76c._0x481a25,-0xc2,0x2f,-0x122)]))return[{'type':_0x491741(-0x13,-_0x24b76c._0xf1955,-_0x24b76c._0x59f769,-0x7a),'contentIndex':_0x36d2b8,'delta':_0x27a8b4,'itemId':_0x5adc48,'outputIndex':_0x46db74}];}break;}case _0x491741(_0x24b76c._0x3c9bbd,0x4d,0x84,0xe7):{const _0x185d76=typeof _0x5d9229[_0x491741(_0x24b76c._0x1e394f,-_0x24b76c._0x17ac74,0x7b,-_0x24b76c._0x13ed1a)]===_0x769213(_0x24b76c._0x17dfb2,0x300,_0x24b76c._0x550f51,_0x24b76c._0x2a5703)?_0x5d9229['item_id']:typeof _0x5d9229[_0x491741(-_0x24b76c._0x70facd,-0x91,-_0x24b76c._0xc980a8,-_0x24b76c._0x3dff91)]===_0x769213(0x33c,_0x24b76c._0x3e4a21,_0x24b76c._0x59a6fc,0x2a8)?this[_0x769213(0x34b,_0x24b76c._0x1cd088,0x2fa,_0x24b76c._0x3c814d)][_0x769213(0x182,0x33b,0x2b4,_0x24b76c._0x3d62e6)](_0x5d9229[_0x491741(_0x24b76c._0x4c44dd,-0x91,_0x24b76c._0x28fad3,0x39)]):void 0x0,_0x3ad6f2=typeof _0x5d9229[_0x769213(_0x24b76c._0x567584,_0x24b76c._0x37dbe1,0x251,_0x24b76c._0x34b41e)]===_0x491741(-0x89,-_0x24b76c._0x3e7397,-_0x24b76c._0x307c32,_0x24b76c._0x4b020)?_0x5d9229['output_index']:0x0,_0x3e1bb0=typeof _0x5d9229[_0x769213(0x11a,_0x24b76c._0x1b780e,_0x24b76c._0x4f0f45,_0x24b76c._0x3f75cf)]==='number'?_0x5d9229[_0x491741(-_0x24b76c._0x270af8,-0x13f,-_0x24b76c._0x1d4a5a,-_0x24b76c._0x3a5d76)]:0x0,_0x395ea2=typeof _0x5d9229['text']===_0x491741(-_0x24b76c._0x1aeb0b,-0x101,-_0x24b76c._0x103979,-0xf2)?_0x5d9229[_0x769213(0x284,_0x24b76c._0x112568,_0x24b76c._0x10632d,_0x24b76c._0x40e4fd)]:'';_0x185d76&&this[_0x491741(_0x24b76c._0x55a0c7,-0x60,0x63,-_0x24b76c._0xab4e03)](_0x185d76,_0x3ad6f2)[_0x769213(0x427,0x440,0x367,_0x24b76c._0x58f515)][_0x491741(-0x7d,-0x9,-_0x24b76c._0x648b04,0x1b)](_0x3e1bb0,_0x395ea2);break;}case'response.completed':{this[_0x491741(-0xd2,-_0x24b76c._0x5f15f9,-0xd,-_0x24b76c._0x5adbbd)]=_0x5d9229[_0x769213(_0x24b76c._0x1bae6e,0x2ee,0x2ed,0x249)];break;}case'response.failed':{const _0x27308e=_0x5d9229[_0x491741(-_0x24b76c._0x1a1dcb,-0xee,-0xd5,-_0x24b76c._0x5d755c)];throw new ProviderStreamEventError(_0x27308e?.['error']?.[_0x491741(0x125,_0x24b76c._0x5ec5b6,_0x24b76c._0x1928dd,_0x24b76c._0x227893)]??'Responses\x20stream\x20failed',{'code':_0x27308e?.[_0x769213(_0x24b76c._0x231303,0x28b,0x387,_0x24b76c._0x97baac)]?.['code'],'retryable':!![]});}case _0x491741(-0x69,-0x90,-0x16a,-_0x24b76c._0x1d973a):{const _0x388af9=_0x5d9229['error'];throw new ProviderStreamEventError(_0x388af9?.[_0x769213(_0x24b76c._0x1bea7a,0x2f5,0x2ce,_0x24b76c._0x5b8a18)]??_0x769213(0x321,0x3c6,0x317,_0x24b76c._0x22ed7a),{'code':_0x388af9?.[_0x769213(0x32d,_0x24b76c._0x1cc97f,0x348,_0x24b76c._0x3dc661)],'retryable':!![],'status':typeof _0x5d9229[_0x491741(0x1,-0x5,_0x24b76c._0xaa727e,-_0x24b76c._0x6d3fbf)]===_0x491741(-_0x24b76c._0x1d6d21,-0x8f,-_0x24b76c._0x46f71b,-_0x24b76c._0x147852)?_0x5d9229[_0x769213(_0x24b76c._0x285bd0,0x2f6,_0x24b76c._0x5da2f0,_0x24b76c._0x54d368)]:void 0x0});}}function _0x491741(_0x785f0c,_0x7fd5c7,_0x1e5de4,_0xf5d328){return _0xd0b0c8(_0x785f0c-0x7,_0x7fd5c7- -0x63d,_0xf5d328,_0xf5d328-_0x51d5e2._0x1ca0aa);}return[];}[_0x495204(0x329,0x2b3,0x349,0x1ff)](){const _0x41e8ee={_0x2c06e7:0x240,_0xd354ab:0x177,_0x5a862c:0x24a,_0x2e8d94:0x226,_0x9dc0cd:0x145,_0x28f753:0x200,_0x28eea7:0x1bd,_0x46ea40:0xd9,_0x32b5fb:0x24b,_0x105159:0x25,_0x85f53b:0x57,_0x2f5734:0x2b,_0x4abbc3:0x98,_0x4eaae8:0x24,_0x30b99e:0x38,_0x405d36:0x159,_0x3ded82:0x139,_0x3f44bf:0x197,_0x5a07b3:0x157,_0x1f845d:0xc,_0x553f29:0x188,_0x4fb5ba:0xa8,_0x1da368:0x126,_0x1eb04a:0xf3,_0x594806:0x109,_0x460a9e:0x36,_0x46ae8a:0x186,_0x367f31:0x39b,_0x46f219:0x317,_0x31d98d:0x3db,_0x148dd0:0x161,_0x389b55:0xca,_0x2fc370:0x229,_0x504897:0x2e4,_0x1b9d53:0x2d7,_0x488227:0x1e8,_0xcbdc03:0x1e5,_0x1aa518:0x358,_0x59a90c:0x433,_0x162dd7:0x5e,_0x3770b1:0x144,_0x3cedfb:0xd4,_0x5d0189:0x1cc,_0xcf996e:0x2bf,_0x388b3b:0x12d,_0x27c1b1:0x88,_0x55aaef:0x19a,_0x5c7f5e:0xc5,_0x294ea5:0x2c,_0x3c12f5:0x17,_0x4c2bb8:0x187,_0x44068c:0x3c1,_0x53daae:0x30f,_0x302572:0x24c,_0x31f213:0x241,_0x21c3cf:0x30e,_0x510399:0x3e9,_0x4365ef:0x334,_0x333dc9:0x322,_0x10aac6:0xcb,_0x1788d9:0xf8,_0x19f2c7:0x2,_0x454675:0xd9,_0xc93a8a:0x160},_0x2cce4f={_0x318ae3:0x137,_0xa709a8:0x1c5},_0xc32585={_0x18416a:0x109,_0x3208af:0x61d,_0x592c37:0xa8},_0x423f73={_0x36b1f6:0x3c,_0x325433:0x118};function _0x2a2676(_0x3e17b9,_0x1c18cb,_0x239d7a,_0x1f3424){return _0x495204(_0x1f3424,_0x239d7a- -0x41,_0x239d7a-_0x423f73._0x36b1f6,_0x1f3424-_0x423f73._0x325433);}const _0x4ea140=[];for(const [_0x242a25,_0x338f1f]of this[_0x2a2676(0x257,0x2bd,_0x41e8ee._0x2c06e7,0x261)]['entries']()){const _0x4bcc88=_0x338f1f['join']('');if(_0x4bcc88[_0x2a2676(_0x41e8ee._0xd354ab,_0x41e8ee._0x5a862c,_0x41e8ee._0x2e8d94,_0x41e8ee._0x9dc0cd)]===0x0)continue;_0x4ea140[_0x2a2676(_0x41e8ee._0x28f753,_0x41e8ee._0x28eea7,0x1cc,0x2c0)]({'index':_0x242a25,'item':{'type':_0x2c24f4(_0x41e8ee._0x46ea40,0xc9,0xb1,0xa7),'role':'assistant','content':[{'type':'output_text','text':_0x4bcc88}]}});}function _0x2c24f4(_0x42473b,_0x3be28a,_0x50f347,_0x46d39b){return _0xd0b0c8(_0x42473b-_0xc32585._0x18416a,_0x46d39b- -_0xc32585._0x3208af,_0x3be28a,_0x46d39b-_0xc32585._0x592c37);}for(const _0xe61b99 of this[_0x2a2676(0x313,0x2b5,0x2ac,_0x41e8ee._0x32b5fb)]['values']()){_0x4ea140[_0x2c24f4(-0x7f,-0x3a,-0x50,-0xf2)]({'index':_0xe61b99[_0x2c24f4(-0x2f,_0x41e8ee._0x105159,-0x12,0xae)]??_0x4ea140[_0x2c24f4(_0x41e8ee._0x85f53b,-0x26,_0x41e8ee._0x2f5734,-_0x41e8ee._0x4abbc3)],'item':{'type':_0x2c24f4(0x4d,-_0x41e8ee._0x4eaae8,-0x95,-_0x41e8ee._0x30b99e),'id':_0xe61b99['id'],..._0xe61b99[_0x2a2676(0xb8,_0x41e8ee._0x405d36,0x199,0x28a)]?{'encrypted_content':_0xe61b99['encryptedContent']}:{},..._0xe61b99['summaryByIndex'][_0x2c24f4(-0x131,-_0x41e8ee._0x3ded82,-_0x41e8ee._0x3f44bf,-0xf3)]>0x0?{'summary':Array[_0x2c24f4(_0x41e8ee._0x5a07b3,-_0x41e8ee._0x1f845d,_0x41e8ee._0x553f29,_0x41e8ee._0x4fb5ba)](_0xe61b99[_0x2c24f4(-0xaa,-0x25,-_0x41e8ee._0x1da368,-0xef)][_0x2c24f4(-_0x41e8ee._0x1eb04a,-_0x41e8ee._0x594806,-_0x41e8ee._0x460a9e,-0x95)]())[_0x2c24f4(-0xc0,-_0x41e8ee._0x46ae8a,-0x3f,-0xd9)]((_0x337e52,_0x56f677)=>_0x337e52[0x0]-_0x56f677[0x0])['map'](([,_0x38ad02])=>{const _0x464d8c={_0x5877ee:0x1c2,_0x2be80e:0x10c};function _0x222f08(_0x299bca,_0x596e80,_0x4da0a8,_0x58dc7d){return _0x2c24f4(_0x299bca-0x1a4,_0x58dc7d,_0x4da0a8-_0x464d8c._0x5877ee,_0x299bca-_0x464d8c._0x2be80e);}return{'type':_0x222f08(_0x2cce4f._0x318ae3,0x12b,0x7d,_0x2cce4f._0xa709a8),'text':_0x38ad02};})}:{},..._0xe61b99[_0x2a2676(0x31d,_0x41e8ee._0x367f31,_0x41e8ee._0x46f219,_0x41e8ee._0x31d98d)][_0x2c24f4(-0x15a,-_0x41e8ee._0x148dd0,-0x1e6,-_0x41e8ee._0x1eb04a)]>0x0?{'text':Array[_0x2c24f4(0x190,_0x41e8ee._0x389b55,-0x18,0xa8)](_0xe61b99['textByIndex'][_0x2a2676(0x14d,0x2de,_0x41e8ee._0x2fc370,_0x41e8ee._0x504897)]())[_0x2a2676(_0x41e8ee._0x1b9d53,_0x41e8ee._0x488227,_0x41e8ee._0xcbdc03,0x155)]((_0x2e5b8e,_0x58d8ee)=>_0x2e5b8e[0x0]-_0x58d8ee[0x0])['map'](([,_0x4f8944])=>_0x4f8944)[_0x2a2676(_0x41e8ee._0x1aa518,0x2f0,0x36f,_0x41e8ee._0x59a90c)]('')}:{}}});}for(const _0x4cbd6b of this[_0x2c24f4(-_0x41e8ee._0x162dd7,-_0x41e8ee._0x3770b1,-0xf5,-_0x41e8ee._0x3cedfb)][_0x2a2676(0x1da,0x21e,0x1fc,0x161)]()){_0x4ea140[_0x2a2676(0x1bc,0xdc,_0x41e8ee._0x5d0189,_0x41e8ee._0xcf996e)]({'index':this['callIdToOutputIndex'][_0x2c24f4(-_0x41e8ee._0x388b3b,-_0x41e8ee._0x27c1b1,-_0x41e8ee._0x55aaef,-_0x41e8ee._0x5c7f5e)](_0x4cbd6b['id'])??_0x4ea140[_0x2c24f4(-_0x41e8ee._0x294ea5,_0x41e8ee._0x3c12f5,-_0x41e8ee._0x4c2bb8,-_0x41e8ee._0x4abbc3)],'item':{'type':_0x2a2676(0x342,_0x41e8ee._0x44068c,_0x41e8ee._0x53daae,0x3e5),'call_id':_0x4cbd6b['id'],'name':_0x4cbd6b[_0x2a2676(_0x41e8ee._0x302572,_0x41e8ee._0x31f213,_0x41e8ee._0x21c3cf,_0x41e8ee._0x510399)][_0x2a2676(0x2d3,0x366,_0x41e8ee._0x4365ef,_0x41e8ee._0x333dc9)],'arguments':_0x4cbd6b[_0x2c24f4(0x4a,_0x41e8ee._0x10aac6,0x34,0x50)][_0x2c24f4(_0x41e8ee._0x1788d9,0xea,0xc8,0x6c)]}});}return _0x4ea140[_0x2c24f4(-_0x41e8ee._0x19f2c7,-0x121,-0x6a,-_0x41e8ee._0x454675)]((_0x31122b,_0x464c47)=>_0x31122b[_0x2c24f4(-0x191,-0xc1,-0xa3,-0xfa)]-_0x464c47[_0x2a2676(0x144,0x2b3,0x1c4,0x1eb)])[_0x2a2676(0x246,_0x41e8ee._0xc93a8a,0x1f2,0x150)](_0x30c478=>_0x30c478['item']);}[_0xd0b0c8(0x4fb,0x5dd,0x522,0x5d1)](_0x3000df,_0x5e7abc){const _0x31aa9f={_0x17028a:0x39,_0x57fd13:0x338,_0x4b204c:0x427,_0x267fb3:0x491,_0x30cbec:0xe4,_0x51943c:0x149,_0x2a7cb6:0x124,_0x1bdcf3:0xc5,_0x671269:0x14d,_0x1ba66b:0x63,_0x4d808d:0x1c4,_0x23cc91:0x19,_0x5e5d46:0x109,_0x3118e4:0x150,_0x1cef3f:0xe,_0x362d5e:0xe0,_0x1c89e9:0x71},_0x19c858={_0x4bcb68:0x16},_0x7df763={_0x10db49:0x16a},_0x19ee21=this[_0x47d3f0(_0x31aa9f._0x17028a,0xb9,0xe0,0x121)][_0x4b93ae(_0x31aa9f._0x57fd13,_0x31aa9f._0x4b204c,_0x31aa9f._0x267fb3,0x4b0)](_0x3000df);if(_0x19ee21)return _0x5e7abc!==void 0x0&&(_0x19ee21[_0x47d3f0(_0x31aa9f._0x30cbec,_0x31aa9f._0x51943c,0x1a0,_0x31aa9f._0x2a7cb6)]=_0x5e7abc,this[_0x47d3f0(_0x31aa9f._0x1bdcf3,_0x31aa9f._0x671269,_0x31aa9f._0x1ba66b,0x10f)][_0x47d3f0(_0x31aa9f._0x4d808d,_0x31aa9f._0x23cc91,_0x31aa9f._0x5e5d46,0x2d)](_0x5e7abc,_0x3000df)),_0x19ee21;const _0x24d3d5={'id':_0x3000df,'outputIndex':_0x5e7abc,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x47d3f0(_0x31aa9f._0x3118e4,_0x31aa9f._0x1cef3f,_0x31aa9f._0x362d5e,0x1c9)]['set'](_0x3000df,_0x24d3d5);function _0x47d3f0(_0x13e701,_0x13cabd,_0x5126e0,_0x224433){return _0x495204(_0x13e701,_0x5126e0- -0x20d,_0x5126e0-_0x7df763._0x10db49,_0x224433-0x1ad);}_0x5e7abc!==void 0x0&&this[_0x47d3f0(-0x91,0x10a,0x63,_0x31aa9f._0x1c89e9)]['set'](_0x5e7abc,_0x3000df);function _0x4b93ae(_0x469b46,_0x4c1df7,_0x372f84,_0x115ed1){return _0x495204(_0x115ed1,_0x4c1df7-0x1ed,_0x372f84-0x1ad,_0x115ed1-_0x19c858._0x4bcb68);}return _0x24d3d5;}};function createOpenAiResponsesStreamParser(_0x3280ee){return new OpenAiResponsesStreamParser(_0x3280ee);}function createOpenAiSurfaces(_0x2820e8={}){const _0x39c968={_0x2a52a7:0x381,_0x117da5:0x32a,_0x588371:0x219,_0x5ddf7f:0x27,_0x4559c9:0x2f,_0x40667a:0x70,_0x3b481a:0x259,_0x2fe830:0x217,_0x5ab3d9:0x26,_0x561cdb:0x3a},_0xd939d0={_0x467e12:0x16b,_0x5807ba:0x1ac,_0xa7f9e:0xa6},_0x5c7dd6={_0x3efb22:0x4b1,_0x371adb:0x521,_0x3adaf8:0x4a7},_0x166d68={_0x5e9433:0x302,_0x5ad9a4:0x329,_0x46954b:0x2cc,_0x925276:0x200,_0x435880:0x12c},_0x4edab4={_0x437a15:0x237},_0x319e07={_0x1f0ef7:0x67b,_0x1efc5a:0x657,_0x33fa02:0x694},_0x3fb159={_0xf3ea00:0x668},_0x3d6b9d={_0x47a8f5:0xd0,_0x363033:0x58},_0x1fd1fc={_0x409438:0xdc,_0x15863a:0x6bc,_0x696486:0x4a},_0x288d70=_0x2820e8[_0x16fd6a(_0x39c968._0x2a52a7,0x296,_0x39c968._0x117da5,_0x39c968._0x588371)]??'/chat/completions',_0x404cf5=_0x2820e8[_0xd50164(-0xdf,-0xd,-_0x39c968._0x5ddf7f,-0x9e)]??_0xd50164(-0x150,_0x39c968._0x4559c9,-_0x39c968._0x40667a,-0x146);function _0xd50164(_0xa4d6a3,_0x5dcb76,_0xe52de7,_0x26670c){return _0xd0b0c8(_0xa4d6a3-_0x1fd1fc._0x409438,_0xe52de7- -_0x1fd1fc._0x15863a,_0x26670c,_0x26670c-_0x1fd1fc._0x696486);}function _0x16fd6a(_0x465e59,_0x2e724c,_0x14746d,_0x4cc2b1){return _0xd0b0c8(_0x465e59-_0x3d6b9d._0x47a8f5,_0x2e724c- -0x2c1,_0x4cc2b1,_0x4cc2b1-_0x3d6b9d._0x363033);}return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0x16fd6a(0x1b4,_0x39c968._0x3b481a,_0x39c968._0x2fe830,0x1ac),'createRequest'(_0x1aec12){function _0x4c857d(_0x424851,_0x551344,_0x353c53,_0x150a87){return _0xd50164(_0x424851-0x17a,_0x551344-0x111,_0x424851-_0x3fb159._0xf3ea00,_0x551344);}return{'accept':_0x4c857d(_0x319e07._0x1f0ef7,_0x319e07._0x1efc5a,0x65a,_0x319e07._0x33fa02),'body':createChatRequestBody(_0x1aec12,![]),'path':_0x288d70};},'parseResponse'(_0x238525){return parseChatCompletionResponse(_0x238525);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x20f25f){return{'accept':'text/event-stream','body':createChatRequestBody(_0x20f25f,!![]),'path':_0x288d70};},'createStreamParser'(_0x2508ad){return new OpenAiChatCompletionsStreamParser(_0x2508ad);}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0xd50164(-0x17f,-0x245,-0x1a2,-0x142),'createRequest'(_0x135283){const _0x4627c7={_0x1c87e0:0x18d,_0x4e369c:0xce};function _0x4f9266(_0x3ded7b,_0x50c255,_0x429794,_0x21dcc5){return _0xd50164(_0x3ded7b-0x1c8,_0x50c255-0x16f,_0x429794-_0x4edab4._0x437a15,_0x3ded7b);}function _0x16ff0d(_0x344a0b,_0x10b012,_0x3604ad,_0x3782aa){return _0xd50164(_0x344a0b-_0x4627c7._0x1c87e0,_0x10b012-_0x4627c7._0x4e369c,_0x3604ad-0x261,_0x3782aa);}return{'accept':_0x4f9266(0x272,_0x166d68._0x5e9433,0x24a,_0x166d68._0x5ad9a4),'body':createResponsesRequestBody(_0x135283,![],_0x2820e8[_0x16ff0d(0x153,_0x166d68._0x46954b,_0x166d68._0x925276,_0x166d68._0x435880)]),'path':_0x404cf5};},'parseResponse'(_0x4ea7ac,_0x76e05){return parseResponsesResponse(_0x4ea7ac,_0x76e05);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0xd50164(-0x55,_0x39c968._0x5ab3d9,-0x79,-_0x39c968._0x561cdb),'createRequest'(_0x74b8d9){function _0x5354f3(_0x5df60e,_0x3a81e1,_0x19a581,_0x553398){return _0x16fd6a(_0x5df60e-0xd0,_0x3a81e1-0x194,_0x19a581-0x9e,_0x5df60e);}return{'accept':_0x5354f3(0x3ea,_0x5c7dd6._0x3efb22,_0x5c7dd6._0x371adb,_0x5c7dd6._0x3adaf8),'body':createResponsesRequestBody(_0x74b8d9,!![],_0x2820e8['promptCacheKeyResolver']),'path':_0x404cf5};},'createStreamParser'(_0x44d50d){return new OpenAiResponsesStreamParser(_0x44d50d);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x22a1e8){function _0x29a9c3(_0x4eb11b,_0x34adbd,_0xbbd82b,_0x39df37){return _0x16fd6a(_0x4eb11b-0x140,_0x4eb11b- -0x22f,_0xbbd82b-0x18e,_0xbbd82b);}return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x22a1e8,{'promptCacheKey':_0x2820e8[_0x29a9c3(_0xd939d0._0x467e12,_0xd939d0._0x5807ba,_0xd939d0._0xa7f9e,0x21a)]?.(_0x22a1e8)}),'path':_0x404cf5};},'createStreamParser'(_0x10700d){return createOpenAiResponsesStreamParser(_0x10700d);}}];}var OpenAiProviderAdapter=class{[_0xd0b0c8(0x680,0x601,0x526,0x5ce)];constructor(_0xc934f){const _0x1d8d5b={_0x4ff582:0x148,_0x51e248:0x158},_0x228a30={_0x3af06c:0x4cb};function _0x4a85f0(_0x2c25ea,_0x23fbde,_0x543771,_0x460293){return _0xd0b0c8(_0x2c25ea-0x70,_0x543771- -_0x228a30._0x3af06c,_0x23fbde,_0x460293-0x121);}this[_0x4a85f0(_0x1d8d5b._0x4ff582,_0x1d8d5b._0x51e248,0x136,0x1aa)]=_0xc934f;}[_0xd0b0c8(0x556,0x5e8,0x659,0x547)](){const _0x2d6093={_0x510e17:0x730,_0x106dbc:0x74e},_0x43b1f8={_0x36f1d9:0x2da,_0x38f191:0x198};function _0x569a1d(_0x400232,_0x1ca2ea,_0x284f76,_0xb49045){return _0x495204(_0x284f76,_0x400232-_0x43b1f8._0x36f1d9,_0x284f76-_0x43b1f8._0x38f191,_0xb49045-0x2e);}return new Error(_0x569a1d(0x688,0x616,_0x2d6093._0x510e17,_0x2d6093._0x106dbc));}async['createHeaders'](_0x1f598a,_0x4a6ffe){const _0x68b520={_0x7d0f6d:0x4eb,_0x47aa1a:0x4e4,_0x3b4f11:0x5b3,_0x2280fd:0x71,_0x6ed14f:0xd5,_0x2559ef:0x158,_0x143b92:0x88,_0x46aa18:0x13c,_0x1addbf:0x6f,_0x2fbe4d:0x13d,_0x5387eb:0xda,_0x370b6e:0x1c2,_0x473083:0x4c5,_0x222543:0x46b,_0xa83ddd:0xbe,_0x7d4e62:0x138,_0x58c73d:0x65,_0x13c233:0x475,_0x1f89a1:0x48d,_0x4a6f3c:0x45f,_0x2a832a:0x4a,_0x53a0d3:0xdb,_0x32e250:0x78,_0x938df4:0x43b,_0x47786b:0x4c7,_0x3804fd:0x528,_0x4cbf54:0x4b0,_0x136b8b:0x45a,_0x5395e1:0x4da,_0x52d863:0x4b6,_0x5eaa63:0x34f,_0x483097:0x495,_0x190ee0:0x3d4,_0x44f6ba:0x42e,_0x114fa3:0xc,_0x357c60:0x26b,_0x213b6b:0x34c,_0x5aaff5:0x134},_0xb30226={_0x71ef45:0x6bc,_0x1a1ed4:0x91},_0x317e72={_0x11df84:0x1a7};function _0x54db20(_0x470a1d,_0x4e097b,_0x4dbe54,_0x411f40){return _0xd0b0c8(_0x470a1d-0x7b,_0x4dbe54- -_0x317e72._0x11df84,_0x470a1d,_0x411f40-0xd3);}function _0x3a19de(_0x236617,_0x16754f,_0x14b035,_0x47b1a4){return _0xd0b0c8(_0x236617-0x90,_0x14b035- -_0xb30226._0x71ef45,_0x16754f,_0x47b1a4-_0xb30226._0x1a1ed4);}const _0x4296c7=new Headers();_0x4296c7['set'](_0x54db20(_0x68b520._0x7d0f6d,_0x68b520._0x47aa1a,0x505,_0x68b520._0x3b4f11),_0x4a6ffe[_0x3a19de(-_0x68b520._0x2280fd,-0x64,-0x10,_0x68b520._0x6ed14f)]),_0x4296c7[_0x3a19de(-0x8a,-_0x68b520._0x2559ef,-_0x68b520._0x143b92,-_0x68b520._0x46aa18)](_0x3a19de(-0x3c,-0xda,-_0x68b520._0x1addbf,-0x19),_0x3a19de(-_0x68b520._0x2fbe4d,-0x1bb,-_0x68b520._0x5387eb,-_0x68b520._0x370b6e)+_0x1f598a[_0x54db20(_0x68b520._0x473083,_0x68b520._0x222543,0x4b5,0x4fd)][_0x54db20(0x38a,0x4cf,0x40b,0x49f)]);_0x4a6ffe[_0x3a19de(-0xc2,-_0x68b520._0xa83ddd,-_0x68b520._0x7d4e62,-_0x68b520._0x58c73d)]!==![]&&_0x4296c7[_0x54db20(_0x68b520._0x13c233,0x4ef,_0x68b520._0x1f89a1,_0x68b520._0x4a6f3c)](_0x3a19de(_0x68b520._0x2a832a,-_0x68b520._0x53a0d3,-_0x68b520._0x32e250,-0x145),_0x54db20(_0x68b520._0x938df4,_0x68b520._0x47786b,_0x68b520._0x3804fd,0x452));const _0x131efe=await this[_0x54db20(0x402,_0x68b520._0x4cbf54,_0x68b520._0x136b8b,0x548)]?.({'body':_0x1f598a[_0x54db20(0x561,0x3f5,_0x68b520._0x5395e1,0x476)],'credential':_0x1f598a[_0x54db20(0x4d1,_0x68b520._0x52d863,0x4b5,0x4e0)],'request':_0x1f598a[_0x54db20(_0x68b520._0x5eaa63,_0x68b520._0x483097,_0x68b520._0x190ee0,_0x68b520._0x44f6ba)],'session':_0x1f598a[_0x3a19de(-_0x68b520._0x114fa3,-0x12d,-0xff,-0xd1)],'stream':_0x1f598a[_0x54db20(_0x68b520._0x357c60,0x415,_0x68b520._0x213b6b,0x436)]});for(const [_0x24d58c,_0x351016]of Object[_0x3a19de(-0x79,-0x109,-_0x68b520._0x5aaff5,-0x1b1)](_0x131efe??{})){_0x4296c7[_0x3a19de(-0x3d,-0xb5,-0x88,-0x41)](_0x24d58c,_0x351016);}return _0x4296c7;}['mapApiError'](_0x252912){return _0x252912;}['resolveBaseUrl'](_0x39ac62,_0x8c00d0){return resolveSessionBaseUrl(_0x39ac62,_0x8c00d0);}[_0x495204(0x1c0,0x1f9,0x106,0x107)](_0x2a9ab4,_0x30df6b){return resolveApiCredential(_0x2a9ab4,_0x30df6b);}async['toApiError'](_0xeac13f){return await createOpenAiApiError(_0xeac13f);}},OpenAiModel=class extends RoutedModel{[_0xd0b0c8(0x5e3,0x587,0x66a,0x62b)]=new Map();[_0xd0b0c8(0x689,0x65b,0x694,0x5e6)];['chatCompletionsPath'];[_0x495204(0x3e2,0x377,0x29f,0x2c2)];constructor(_0x22a073={}){const _0x323793={_0x340e01:0x74d,_0x355d95:0x5e5,_0x5c50da:0x5e3,_0x4d90be:0x525,_0x4cdbf1:0x6c8,_0xbcc5fe:0x62b,_0x3e0b0:0x69d,_0x271b1b:0x600,_0x328153:0x684,_0x57583c:0x6d9,_0x449c4a:0x66d,_0x3acd0f:0x56e,_0x26e603:0x6ae,_0x2cbb4f:0x53b,_0x5c3680:0x64e,_0x28eda8:0x612,_0x491b62:0x604,_0x19221c:0x6e3,_0x23dcdc:0x527,_0xb24d87:0x519,_0x5db36f:0x5f1,_0x2cf8aa:0x562,_0x192bb2:0x495,_0x5585b3:0x5eb,_0x21831e:0x544,_0x1ee94c:0x4f4,_0x351313:0x4da,_0x41f540:0x511,_0x1832c3:0x546,_0xbead54:0x5dd,_0x527cb2:0x753,_0x2e47ea:0x689,_0x1ab3a0:0x5d5,_0x3f54c0:0x629,_0x1cef57:0x5f7,_0x4f8043:0x4a1,_0x581f77:0x55d,_0x21ef32:0x629,_0x56c4c4:0x58e,_0x1fa4c1:0x5e3,_0x33a6a5:0x663},_0xaa366b={_0x375001:0x2ec,_0x5df7ff:0x1f0,_0x1a5419:0x84},_0x5712c1={_0x119857:0x362},_0x41e4a5=_0x22a073[_0x528f95(0x6e4,_0x323793._0x340e01,0x6a9,_0x323793._0x355d95)]??'gpt-4o',_0x5038f3=_0x22a073[_0x15bab2(0x5c4,_0x323793._0x5c50da,0x4dc,_0x323793._0x4d90be)]??_0x528f95(_0x323793._0x4cdbf1,_0x323793._0xbcc5fe,_0x323793._0x3e0b0,0x63f),_0x397909=_0x22a073[_0x528f95(_0x323793._0x271b1b,_0x323793._0x328153,_0x323793._0x57583c,0x6cf)]??_0x15bab2(0x6ee,_0x323793._0x449c4a,0x59d,0x61a);function _0x528f95(_0x3546af,_0x37e5b2,_0x475759,_0x56e3aa){return _0x495204(_0x56e3aa,_0x475759-_0x5712c1._0x119857,_0x475759-0x177,_0x56e3aa-0x1c1);}super({'apiKey':_0x22a073['apiKey'],'baseUrl':trimTrailingSlashes(_0x22a073[_0x528f95(_0x323793._0x3acd0f,_0x323793._0x26e603,0x5de,_0x323793._0x2cbb4f)]??_0x528f95(_0x323793._0x5c3680,_0x323793._0x28eda8,_0x323793._0x491b62,_0x323793._0x19221c)),'fetch':_0x22a073['fetch'],..._0x22a073[_0x15bab2(_0x323793._0x23dcdc,_0x323793._0xb24d87,_0x323793._0x5db36f,_0x323793._0x2cf8aa)]!==void 0x0?{'maxTokens':_0x22a073[_0x15bab2(_0x323793._0x192bb2,_0x323793._0x5585b3,_0x323793._0x21831e,0x562)]}:{},'model':_0x41e4a5,'modelIdentity':_0x22a073[_0x15bab2(_0x323793._0x1ee94c,_0x323793._0x351313,_0x323793._0x41f540,0x54f)],'reasoning':_0x22a073['reasoning'],'providerAdapter':new OpenAiProviderAdapter(_0x22a073['headerResolver']),'providerSessionResolver':_0x22a073[_0x528f95(_0x323793._0x1832c3,0x6c9,0x62d,0x5ba)],'requestMutators':_0x22a073['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x22a073[_0x15bab2(_0x323793._0xbead54,0x70e,_0x323793._0x527cb2,_0x323793._0x2e47ea)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x5038f3,'promptCacheKeyResolver':_0x22a073[_0x15bab2(0x664,0x630,_0x323793._0x1ab3a0,_0x323793._0x3f54c0)],'responsesPath':_0x397909}),'webSocketFactory':_0x22a073['webSocketFactory']});function _0x15bab2(_0x438d50,_0x4983f9,_0x23c081,_0x127665){return _0x495204(_0x23c081,_0x127665-_0xaa366b._0x375001,_0x23c081-_0xaa366b._0x5df7ff,_0x127665-_0xaa366b._0x1a5419);}this[_0x15bab2(_0x323793._0x1cef57,0x5f0,_0x323793._0x4f8043,0x525)]=_0x5038f3,this[_0x15bab2(_0x323793._0x581f77,0x586,0x5b5,_0x323793._0x21ef32)]=_0x22a073['promptCacheKeyResolver'],this[_0x15bab2(0x5e3,_0x323793._0x56c4c4,_0x323793._0x1fa4c1,_0x323793._0x33a6a5)]=_0x397909;}[_0x495204(0x387,0x38b,0x447,0x2ea)](_0x198854,_0x4ee4e0){const _0x4845a5={_0x2eacdd:0x489},_0x51144a={_0x46e7f9:0x1f3,_0x4f0cfa:0x2a,_0x3dd324:0x19c};function _0x2c515e(_0x1551d1,_0x30f571,_0x3031ac,_0x340489){return _0xd0b0c8(_0x1551d1-_0x51144a._0x46e7f9,_0x30f571-_0x51144a._0x4f0cfa,_0x340489,_0x340489-_0x51144a._0x3dd324);}return this[_0x2c515e(_0x4845a5._0x2eacdd,0x517,0x5a6,0x521)](_0x198854,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x4ee4e0);}[_0x495204(0x319,0x2aa,0x332,0x34f)](_0x3a9b19,_0x421a61){const _0x277f2b={_0x385229:0x571,_0x182937:0x510,_0x427d86:0x489},_0x14d4c2={_0x19d74f:0x23};function _0x413b98(_0x386bee,_0x58a002,_0x256b77,_0x23c9a2){return _0xd0b0c8(_0x386bee-0x3d,_0x256b77-_0x14d4c2._0x19d74f,_0x58a002,_0x23c9a2-0x151);}return this[_0x413b98(_0x277f2b._0x385229,0x456,_0x277f2b._0x182937,_0x277f2b._0x427d86)](_0x3a9b19,OPENAI_RESPONSES_SURFACE,_0x421a61);}['completeViaResponsesWebSocketSurface'](_0x6ac4d6,_0x22fc0c){const _0x1a1c9f={_0x51b902:0x131,_0xc303e1:0xe0},_0xd6724a={_0x43a86a:0x37};function _0x446d11(_0x5bced4,_0x2a0cf6,_0x79c859,_0x154623){return _0x495204(_0x79c859,_0x5bced4- -0x22d,_0x79c859-_0xd6724a._0x43a86a,_0x154623-0x149);}return this[_0x446d11(-0x5e,-_0x1a1c9f._0x51b902,-_0x1a1c9f._0xc303e1,-0x13a)](_0x6ac4d6,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x22fc0c);}[_0xd0b0c8(0x5b9,0x599,0x5aa,0x4ff)](_0x326989,_0x556895){return this['streamViaSurface'](_0x326989,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x556895);}[_0x495204(0x308,0x2f2,0x28a,0x351)](_0x41125b,_0x25f110){const _0x43fc70={_0x1f7f79:0x198,_0x1e3d72:0x2a,_0x49302a:0xfd},_0x141a08={_0x44cd5d:0x439,_0x3ab6f9:0x83};function _0x96422d(_0x27a17a,_0x23c056,_0x5cc0d3,_0x53db98){return _0xd0b0c8(_0x27a17a-0xe8,_0x5cc0d3- -_0x141a08._0x44cd5d,_0x23c056,_0x53db98-_0x141a08._0x3ab6f9);}return this[_0x96422d(_0x43fc70._0x1f7f79,_0x43fc70._0x1e3d72,_0x43fc70._0x49302a,0x17a)](_0x41125b,OPENAI_RESPONSES_STREAM_SURFACE,_0x25f110);}[_0xd0b0c8(0x635,0x5d8,0x542,0x587)](_0x2e5449,_0x1e4df9){const _0x58b8d8={_0x5c0651:0x7f},_0x236c0d={_0x278fa9:0x199,_0x1d85cf:0xca,_0x20b943:0x161};function _0x191bea(_0x32b5d5,_0x265640,_0x1620d9,_0x19f5d7){return _0x495204(_0x19f5d7,_0x1620d9- -_0x236c0d._0x278fa9,_0x1620d9-_0x236c0d._0x1d85cf,_0x19f5d7-_0x236c0d._0x20b943);}return this[_0x191bea(-0x66,-0xa,_0x58b8d8._0x5c0651,0x13c)](_0x2e5449,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1e4df9);}async[_0x495204(0x2b7,0x1ff,0x24b,0x2f2)](_0x21e740,_0x5003cf){const _0x11655f={_0x198cdc:0x10c},_0x52306d={_0x321836:0x43e,_0x53a7fc:0x9f,_0x4cb11d:0x42};function _0x2042c5(_0x26144f,_0x32d3fc,_0x3527ab,_0x65828c){return _0x495204(_0x65828c,_0x26144f- -_0x52306d._0x321836,_0x3527ab-_0x52306d._0x53a7fc,_0x65828c-_0x52306d._0x4cb11d);}try{return await this[_0x2042c5(-0xb3,-0xe7,0x0,-_0x11655f._0x198cdc)](_0x21e740,_0x5003cf);}catch(_0xa66ad7){if(_0xa66ad7 instanceof OpenAiApiError)throw this['mapApiError'](_0xa66ad7);throw _0xa66ad7;}}async[_0x495204(0x217,0x231,0x1bf,0x30f)](_0x54bebf,_0x2cbaa5){const _0x421654={_0x552a87:0x2de,_0xcf15e:0x341},_0x47a8f7={_0x51f01a:0xff,_0x8cf494:0x3d};function _0x2c6d4b(_0x3930e4,_0x268a42,_0x2ba6f3,_0x52f515){return _0xd0b0c8(_0x3930e4-_0x47a8f7._0x51f01a,_0x3930e4- -0x3ce,_0x268a42,_0x52f515-_0x47a8f7._0x8cf494);}try{return await this['completeViaResponsesSurface'](_0x54bebf,_0x2cbaa5);}catch(_0x2e93aa){if(_0x2e93aa instanceof OpenAiApiError)throw this[_0x2c6d4b(0x27b,0x1a2,_0x421654._0x552a87,_0x421654._0xcf15e)](_0x2e93aa);throw _0x2e93aa;}}async[_0x495204(0x36b,0x327,0x410,0x255)](_0x1e3e0b,_0x128bc1){const _0x4ff92d={_0x3bb3fd:0x203,_0x270efa:0x9d,_0x5e30cd:0x69,_0xcff1dd:0x25,_0x504086:0x93,_0x209b61:0x7f},_0x4012aa={_0xc5b20c:0x298},_0x59d4c6={_0x38e1e0:0x1eb,_0x36a01a:0xb};function _0x1c14d3(_0x41d431,_0x7bd024,_0x46a746,_0x973c47){return _0x495204(_0x7bd024,_0x973c47- -0x1a1,_0x46a746-_0x59d4c6._0x38e1e0,_0x973c47-_0x59d4c6._0x36a01a);}function _0x49d4c7(_0x15acdd,_0x33e26a,_0x1638fd,_0x578623){return _0x495204(_0x33e26a,_0x1638fd- -_0x4012aa._0xc5b20c,_0x1638fd-0x6c,_0x578623-0x46);}try{let _0x387d4a;for await(const _0x1d575d of this[_0x1c14d3(0x86,0x1ce,0x1c9,0x161)](_0x1e3e0b,_0x128bc1)){_0x1d575d['type']===_0x1c14d3(0x1a8,_0x4ff92d._0x3bb3fd,0x107,0x1c8)&&(_0x387d4a=_0x1d575d['response']);}if(!_0x387d4a)throw new Error(_0x49d4c7(-0xd2,-_0x4ff92d._0x270efa,-0xa1,-_0x4ff92d._0x5e30cd));return _0x387d4a;}catch(_0x156258){if(_0x156258 instanceof OpenAiApiError)throw this[_0x49d4c7(_0x4ff92d._0xcff1dd,0x58,_0x4ff92d._0x504086,_0x4ff92d._0x209b61)](_0x156258);throw _0x156258;}}async*[_0xd0b0c8(0x55b,0x5b6,0x4f0,0x57a)](_0x1d7477,_0x34fc22){const _0x409db4={_0x1dad09:0x37f,_0x2e820a:0x37c,_0x2ab159:0x42f,_0x493233:0x51f,_0x302825:0x46e},_0x21ad62={_0x1c54e8:0x104},_0x11a59e={_0x513991:0x40,_0x273ca1:0x6e};function _0x5d264b(_0x2b957d,_0x3fe3f5,_0x3b8d75,_0x2c693c){return _0xd0b0c8(_0x2b957d-0xff,_0x2c693c- -_0x11a59e._0x513991,_0x2b957d,_0x2c693c-_0x11a59e._0x273ca1);}function _0x53c4a7(_0x482b4a,_0x233888,_0x2da93e,_0x3e5da8){return _0x495204(_0x2da93e,_0x482b4a-_0x21ad62._0x1c54e8,_0x2da93e-0x1d9,_0x3e5da8-0x1b1);}try{yield*this[_0x53c4a7(_0x409db4._0x1dad09,0x37c,0x37e,_0x409db4._0x2e820a)](_0x1d7477,_0x34fc22);}catch(_0x339eef){if(_0x339eef instanceof OpenAiApiError)throw this[_0x53c4a7(_0x409db4._0x2ab159,_0x409db4._0x493233,_0x409db4._0x302825,0x3fe)](_0x339eef);throw _0x339eef;}}async*[_0xd0b0c8(0x74d,0x666,0x6c3,0x5e9)](_0x8dd867,_0x1497f0){const _0x1936db={_0x131e08:0x332},_0x2f9063={_0x534abf:0x219,_0x3c88f4:0x17e},_0x547342={_0x5da8bc:0xc3};function _0x6542ee(_0x28b7c0,_0x523a93,_0x337ec3,_0xef05d1){return _0x495204(_0x523a93,_0x28b7c0- -0x30a,_0x337ec3-0x47,_0xef05d1-_0x547342._0x5da8bc);}function _0x523fac(_0x1bae03,_0x1103c9,_0x599cce,_0x886814){return _0xd0b0c8(_0x1bae03-0x30,_0x1bae03- -_0x2f9063._0x534abf,_0x886814,_0x886814-_0x2f9063._0x3c88f4);}try{yield*this[_0x523fac(0x3f7,0x3ee,_0x1936db._0x131e08,0x3bb)](_0x8dd867,_0x1497f0);}catch(_0x43c2f8){if(_0x43c2f8 instanceof OpenAiApiError)throw this[_0x523fac(0x430,0x3b8,0x49f,0x36f)](_0x43c2f8);throw _0x43c2f8;}}async*['responseSocketStream'](_0x4f0701,_0x23239e){const _0x1cfe10={_0x39d03d:0x128,_0x563fd4:0x9b,_0x175342:0x142},_0x1b89ab={_0x430301:0x7a};function _0xec5035(_0x3d02ee,_0x160b6c,_0x3aa39a,_0x48e71c){return _0xd0b0c8(_0x3d02ee-0x81,_0x3aa39a- -0x741,_0x3d02ee,_0x48e71c-_0x1b89ab._0x430301);}try{yield*this[_0xec5035(-_0x1cfe10._0x39d03d,-_0x1cfe10._0x563fd4,-0x9b,-_0x1cfe10._0x175342)](_0x4f0701,_0x23239e);}catch(_0x22b337){if(_0x22b337 instanceof OpenAiApiError)throw this['mapApiError'](_0x22b337);throw _0x22b337;}}[_0x495204(0x1a5,0x235,0x233,0x2ba)](_0x1d78a1,_0x1741fd){return this['chatComplete'](_0x1d78a1,_0x1741fd);}['stream'](_0x44abb0,_0x258bc0){const _0x136445={_0x2ded12:0x4cd},_0x5273bc={_0x313bf6:0x1ea,_0x56bd6d:0x1aa};function _0x4a72c7(_0xdcee90,_0x4957bc,_0x4ad659,_0xd4dc3f){return _0x495204(_0x4957bc,_0xd4dc3f-_0x5273bc._0x313bf6,_0x4ad659-_0x5273bc._0x56bd6d,_0xd4dc3f-0x8);}return this[_0x4a72c7(_0x136445._0x2ded12,0x53b,0x4cd,0x482)](_0x44abb0,_0x258bc0);}['getResponsesSocketSessionState'](_0x34b1c2){const _0x12678a={_0x2c2f93:0x4ff,_0x5372e1:0x58d,_0x47a30a:0x5c5,_0x36fc8b:0x5c2,_0x2597ec:0x563,_0x2e52cf:0x5f8,_0x2979e4:0x4ff},_0x2549f8=this['getResponsesSocketSessionKey'](_0x34b1c2);function _0x48c5c2(_0x5e7ddc,_0x270691,_0xac891e,_0x305524){return _0x495204(_0xac891e,_0x5e7ddc-0x120,_0xac891e-0xde,_0x305524-0xc3);}let _0x427797=this[_0x17b64d(_0x12678a._0x2c2f93,_0x12678a._0x5372e1,0x4ea,_0x12678a._0x47a30a)]['get'](_0x2549f8);function _0x17b64d(_0x5b5f79,_0x5ec950,_0x3fad79,_0x48b987){return _0xd0b0c8(_0x5b5f79-0x112,_0x5b5f79- -0x88,_0x48b987,_0x48b987-0x7a);}return!_0x427797&&(_0x427797={'key':_0x2549f8,'locked':![],'pending':Promise[_0x17b64d(_0x12678a._0x36fc8b,0x62d,_0x12678a._0x2597ec,_0x12678a._0x2e52cf)]()},this[_0x17b64d(_0x12678a._0x2979e4,0x564,0x45c,0x423)]['set'](_0x2549f8,_0x427797)),_0x427797;}[_0xd0b0c8(0x711,0x6d1,0x697,0x66f)](_0x4404be){const _0x5ae902={_0x76e3ce:0x4ad,_0x2c17aa:0x515,_0x2355be:0x5cc,_0x12a72d:0x5d5,_0x38f612:0x5aa,_0x32390f:0x59d,_0x8258d3:0x4fe,_0x38920a:0x4f5,_0x57720c:0x540,_0x741e01:0x527,_0x2ff133:0x69a,_0x290b45:0x5ec,_0x1039b0:0x606,_0x20ac36:0x721},_0x3f475d={_0x4a2920:0x45},_0x83988d={_0x125e69:0x248,_0x49661b:0xee};if(_0x4404be[_0x4e8b5a(0x57b,_0x5ae902._0x76e3ce,_0x5ae902._0x2c17aa,0x4e5)]||_0x4404be['connecting']||_0x4404be['socket'])return;function _0x4e8b5a(_0x45816f,_0x9b4250,_0x6398fb,_0x2453f8){return _0x495204(_0x2453f8,_0x6398fb-_0x83988d._0x125e69,_0x6398fb-_0x83988d._0x49661b,_0x2453f8-0xda);}function _0x24646e(_0x589b5e,_0x2910e7,_0x929f2b,_0x31c8c4){return _0xd0b0c8(_0x589b5e-0x1bf,_0x589b5e-_0x3f475d._0x4a2920,_0x2910e7,_0x31c8c4-0x1db);}this[_0x24646e(_0x5ae902._0x2355be,0x5f3,_0x5ae902._0x12a72d,_0x5ae902._0x38f612)][_0x24646e(_0x5ae902._0x32390f,_0x5ae902._0x8258d3,0x61a,_0x5ae902._0x38920a)](_0x4404be['key'])===_0x4404be&&this['responsesSocketSessions'][_0x4e8b5a(0x57f,0x56f,_0x5ae902._0x57720c,_0x5ae902._0x741e01)](_0x4404be[_0x24646e(_0x5ae902._0x2ff133,_0x5ae902._0x290b45,_0x5ae902._0x1039b0,_0x5ae902._0x20ac36)]);}[_0x495204(0x248,0x1e9,0x21d,0x297)](_0x22595e){const _0x2ce21b={_0x3098aa:0x58,_0x49c159:0xa8,_0x1e39f4:0x14},_0x1b925f={_0x45c516:0x13f};function _0x42d602(_0x2f8c63,_0x41b7b3,_0x5e4ca2,_0x1b8b08){return _0xd0b0c8(_0x2f8c63-0xa0,_0x1b8b08- -0x6fe,_0x41b7b3,_0x1b8b08-_0x1b925f._0x45c516);}return''+trimTrailingSlashes(this['baseUrl'])+this[_0x42d602(_0x2ce21b._0x3098aa,-_0x2ce21b._0x49c159,-_0x2ce21b._0x1e39f4,-0x69)]+'::'+_0x22595e;}async[_0x495204(0x23b,0x2d0,0x2f8,0x2bd)](_0x5ee70a){const _0x4a9eed={_0x18b74b:0x70,_0x16a922:0x81,_0x3c0cd8:0x26},_0x229819={_0x479a23:0x188},_0x11669a={_0x16c14f:0x295,_0x7988c4:0x2b},_0x47d19f=_0x5ee70a['pending'][_0x3074a9(-0x13a,-0x4a,-_0x4a9eed._0x18b74b,_0x4a9eed._0x16a922)](()=>{});function _0x3074a9(_0x4842a3,_0x392791,_0x18e858,_0x28f9da){return _0x495204(_0x4842a3,_0x18e858- -_0x11669a._0x16c14f,_0x18e858-0x133,_0x28f9da-_0x11669a._0x7988c4);}let _0x41e66a;const _0x18792c=new Promise(_0x15a3bf=>{_0x41e66a=_0x15a3bf;});_0x5ee70a[_0x3074a9(-0x4,-_0x4a9eed._0x3c0cd8,-0x8f,-0x5a)]=_0x47d19f['then'](()=>_0x18792c),await _0x47d19f;function _0x175f70(_0x3b5e5b,_0x3cd244,_0x372db4,_0x451022){return _0x495204(_0x372db4,_0x3cd244-0x166,_0x372db4-0x60,_0x451022-_0x229819._0x479a23);}return _0x5ee70a['locked']=!![],()=>{_0x5ee70a['locked']=![],_0x41e66a?.(),this['maybeEvictResponsesSocketSession'](_0x5ee70a);};}async[_0x495204(0x29e,0x383,0x2a0,0x353)](_0x54547f,_0x35f94a){const _0x1f9e77={_0x31f45f:0x4af,_0x45522a:0x4a5,_0xcf7dfe:0x4b0,_0x26460c:0x525,_0x5bac8b:0x43e,_0x2b088d:0x4f5,_0x1a5fa5:0x4fa,_0x13c3b2:0x57c,_0xd6e322:0x4bb,_0x40b234:0x37e,_0x56a39c:0x3c1,_0x4a377b:0x3d1,_0x103932:0x481,_0x5316c4:0x413,_0x2f3426:0x38b,_0x27ebd6:0x439,_0x487b11:0x47b,_0x32e1a4:0x58e,_0x2210b6:0x560,_0x113b7a:0x59b,_0x26a763:0x4ac,_0x3cc8a1:0x4ee,_0x5627e3:0x4bd,_0x256201:0x3b2,_0x3c3e0a:0x46d},_0x2b10f3={_0x13dd90:0x17a,_0x59d378:0x142,_0x31e7ec:0x1f},_0x53d4bd={_0x166a34:0x20d,_0x30dbcd:0x1ca},_0x120801=this[_0x858460(_0x1f9e77._0x31f45f,0x4ab,0x576,0x4aa)](_0x54547f),_0x41ad92=toModelRequest(_0x120801),_0x45460d=await prepareProviderRequest(_0x41ad92,{'sessionManager':this['sessionManager'],'requestMutators':this[_0x858460(_0x1f9e77._0x45522a,0x4aa,_0x1f9e77._0xcf7dfe,_0x1f9e77._0x26460c)],'signal':_0x35f94a});function _0xb84360(_0x81cf9f,_0x391f46,_0x8b631b,_0x122a53){return _0x495204(_0x81cf9f,_0x391f46-_0x53d4bd._0x166a34,_0x8b631b-0x9b,_0x122a53-_0x53d4bd._0x30dbcd);}const _0x426720=toChatRequest(_0x45460d[_0x858460(_0x1f9e77._0x5bac8b,0x479,_0x1f9e77._0x2b088d,0x439)]);function _0x858460(_0x85714f,_0x3a5c07,_0x36b911,_0x25b76b){return _0xd0b0c8(_0x85714f-_0x2b10f3._0x13dd90,_0x25b76b- -_0x2b10f3._0x59d378,_0x85714f,_0x25b76b-_0x2b10f3._0x31e7ec);}const _0x63ecb7=this[_0xb84360(_0x1f9e77._0x1a5fa5,_0x1f9e77._0x13c3b2,_0x1f9e77._0xd6e322,0x4ac)][_0x858460(_0x1f9e77._0x40b234,_0x1f9e77._0x56a39c,0x307,0x3d5)](this[_0xb84360(_0x1f9e77._0x4a377b,_0x1f9e77._0x103932,0x4fb,_0x1f9e77._0x5316c4)],_0x45460d[_0x858460(_0x1f9e77._0x2f3426,0x3d4,_0x1f9e77._0x27ebd6,_0x1f9e77._0x487b11)]);if(!_0x63ecb7)throw this[_0x858460(0x3e9,_0x1f9e77._0x32e1a4,0x3e0,0x4a6)]();return{'baseUrl':this['providerAdapter'][_0xb84360(_0x1f9e77._0x2210b6,0x599,_0x1f9e77._0x113b7a,0x5ac)](this['baseUrl'],_0x45460d[_0xb84360(0x447,_0x1f9e77._0x26a763,_0x1f9e77._0x3cc8a1,_0x1f9e77._0x5627e3)]),'credential':_0x63ecb7,'request':_0x426720,'session':_0x45460d[_0x858460(_0x1f9e77._0x256201,_0x1f9e77._0x3c3e0a,0x4cf,0x47b)]};}[_0x495204(0x30a,0x297,0x2ca,0x23d)](_0x4913fc,_0x1271c2,_0x3a8f16={}){const _0x8d09d0={_0x5dd864:0x11a,_0x3ab3c7:0x27,_0x3a8a75:0xc1,_0x438bcf:0x2f,_0x1dabd2:0x1ec,_0x456f85:0x32b,_0x1e2015:0x272,_0x3142e0:0x1e9,_0x2366b0:0x19c,_0x2be12c:0x104,_0x10f75e:0x161,_0x8a9b7a:0x255,_0xceebe2:0x236,_0x408410:0x235,_0x438e83:0x23e},_0x536a38={_0xac15a8:0x11e},_0x31ebe0={_0x2f08df:0x44a,_0x4c27d7:0x37};if(!_0x3a8f16[_0x1fa62d(_0x8d09d0._0x5dd864,0x135,_0x8d09d0._0x3ab3c7,_0x8d09d0._0x3a8a75)]){const _0x3b0416=this[_0x1fa62d(_0x8d09d0._0x438bcf,0x11e,0x95,0xa3)](_0x4913fc);if(_0x3b0416&&_0x1271c2['lastResponseId']&&_0x3b0416[_0x6eaef4(_0x8d09d0._0x1dabd2,_0x8d09d0._0x456f85,_0x8d09d0._0x1e2015,0x2d7)]===_0x1271c2[_0x6eaef4(0x277,0x251,_0x8d09d0._0x3142e0,_0x8d09d0._0x1dabd2)]){const _0x209e30=toOpenAiResponsesRequest({..._0x4913fc,'messages':_0x4913fc[_0x6eaef4(_0x8d09d0._0x2366b0,0xed,_0x8d09d0._0x2be12c,_0x8d09d0._0x10f75e)][_0x6eaef4(0x20e,0x12c,0x17f,0xd1)](_0x3b0416[_0x6eaef4(0x25d,0x194,_0x8d09d0._0x8a9b7a,_0x8d09d0._0xceebe2)]+0x1)})['input'];return{'event':createOpenAiResponsesWebSocketEvent(_0x4913fc,{'input':_0x209e30,'promptCacheKey':this['promptCacheKeyResolver']?.(_0x4913fc),'previousResponseId':_0x3b0416[_0x6eaef4(_0x8d09d0._0x408410,_0x8d09d0._0x438e83,_0x8d09d0._0x1e2015,0x1da)]}),'previousResponseId':_0x3b0416['responseId']};}}function _0x6eaef4(_0x4246e4,_0x44bff9,_0x5b3d43,_0x28b3f1){return _0xd0b0c8(_0x4246e4-0x2c,_0x5b3d43- -_0x31ebe0._0x2f08df,_0x4246e4,_0x28b3f1-_0x31ebe0._0x4c27d7);}function _0x1fa62d(_0x5b00e0,_0x5a9787,_0x256f4a,_0x367e0f){return _0xd0b0c8(_0x5b00e0-_0x536a38._0xac15a8,_0x367e0f- -0x523,_0x5a9787,_0x367e0f-0x29);}return{'event':createOpenAiResponsesWebSocketEvent(_0x4913fc,{'promptCacheKey':this['promptCacheKeyResolver']?.(_0x4913fc)})};}['findResponsesSocketCheckpoint'](_0x665a99){const _0x32adb4={_0x1cdb4d:0x161,_0x2c3b0d:0xed,_0x4eb416:0x171,_0x2cab47:0x192,_0x1bd214:0x198,_0x591201:0x1f8,_0x457b9f:0x538,_0x2fbddc:0x53c,_0x102180:0x559,_0x1e2da3:0x585,_0x1ea233:0x5cc,_0x4f552e:0x50f},_0x2ac86b={_0x207f94:0x12c},_0x2502e9={_0x3c1319:0x91};function _0x33962d(_0x175846,_0x2d6e7a,_0x3e4594,_0x84692f){return _0x495204(_0x2d6e7a,_0x84692f-0x295,_0x3e4594-0x9c,_0x84692f-_0x2502e9._0x3c1319);}function _0x118517(_0x1eb20c,_0x360c81,_0x5518e5,_0x32d737){return _0x495204(_0x32d737,_0x360c81- -0x3c8,_0x5518e5-_0x2ac86b._0x207f94,_0x32d737-0xc6);}for(let _0xd2850e=_0x665a99['messages'][_0x118517(-0x7c,-_0x32adb4._0x1cdb4d,-_0x32adb4._0x2c3b0d,-_0x32adb4._0x4eb416)]-0x1;_0xd2850e>=0x0;_0xd2850e-=0x1){const _0x269bcb=_0x665a99[_0x118517(-_0x32adb4._0x2cab47,-_0x32adb4._0x1bd214,-_0x32adb4._0x591201,-0x218)][_0xd2850e],_0x6a3f7d=_0x269bcb[_0x33962d(0x50b,_0x32adb4._0x457b9f,0x463,_0x32adb4._0x2fbddc)]===_0x33962d(_0x32adb4._0x102180,0x538,0x4c7,_0x32adb4._0x1e2da3)?_0x269bcb[_0x33962d(_0x32adb4._0x1ea233,_0x32adb4._0x4f552e,0x4a8,0x57a)]?.[_0x33962d(0x53b,0x3ee,0x3a6,0x484)]:void 0x0;if(_0x6a3f7d)return{'messageIndex':_0xd2850e,'responseId':_0x6a3f7d};}return void 0x0;}[_0x495204(0x31f,0x322,0x25b,0x3c6)](_0x2981db){const _0x31f216={_0x22abea:0x18a,_0x370bb4:0x2d2,_0xbfcbbe:0x3c8},_0x1def98={_0x4d8b82:0x6c,_0x1e83aa:0x759},_0x18b952={_0x269d0d:0x32};function _0x562c16(_0x4c47e1,_0xa39364,_0x1b2f54,_0x361584){return _0x495204(_0x1b2f54,_0x361584-_0x18b952._0x269d0d,_0x1b2f54-0x4b,_0x361584-0xe);}function _0x248027(_0x2f7a3f,_0x2a0ebb,_0x15c7cc,_0x565c84){return _0xd0b0c8(_0x2f7a3f-_0x1def98._0x4d8b82,_0x2a0ebb- -_0x1def98._0x1e83aa,_0x15c7cc,_0x565c84-0x57);}return _0x2981db instanceof ProviderStreamEventError&&(_0x2981db[_0x248027(-0x20a,-_0x31f216._0x22abea,-0xa0,-0x135)]===_0x562c16(0x2b7,0x276,0x2a4,_0x31f216._0x370bb4)||_0x2981db['code']===_0x562c16(0x466,0x315,0x44a,_0x31f216._0xbfcbbe));}[_0xd0b0c8(0x6ed,0x686,0x6e0,0x71f)](_0x1687f4){const _0x3105c1={_0x1ad20f:0x7a,_0x12d6a:0x129,_0x5495d0:0x1ff,_0x29eca2:0x14b,_0x58dbf5:0x74,_0x586ef3:0x1b7,_0x447aea:0x1de,_0x2e4b3e:0x137,_0x5b0a55:0x206,_0x2b90e3:0x291,_0x505626:0x1b9,_0x811d84:0x1e9},_0x57e831={_0x4bb1ac:0x576},_0x42ef8e={_0x5315e0:0x186,_0x33f029:0xde},_0x1ff277=_0x1687f4['socket'];_0x1687f4[_0x483960(_0x3105c1._0x1ad20f,0x18b,0xd9,0xeb)]=void 0x0,_0x1687f4['connecting']=void 0x0;function _0x483960(_0x4b41db,_0xd1e552,_0x351302,_0x15706c){return _0x495204(_0x4b41db,_0x351302- -_0x42ef8e._0x5315e0,_0x351302-_0x42ef8e._0x33f029,_0x15706c-0x3);}_0x1687f4['lastResponseId']=void 0x0;function _0x37813e(_0xb103d,_0x2ecc23,_0x5ce390,_0x2a2dca){return _0xd0b0c8(_0xb103d-0xa2,_0x2a2dca- -_0x57e831._0x4bb1ac,_0x2ecc23,_0x2a2dca-0x18);}_0x1ff277?.[_0x483960(_0x3105c1._0x12d6a,_0x3105c1._0x5495d0,_0x3105c1._0x29eca2,_0x3105c1._0x58dbf5)]===WebSocket[_0x483960(_0x3105c1._0x586ef3,0x1ac,_0x3105c1._0x447aea,_0x3105c1._0x2e4b3e)]&&_0x1ff277['close'](0x3e8,_0x483960(_0x3105c1._0x5b0a55,_0x3105c1._0x2b90e3,_0x3105c1._0x505626,_0x3105c1._0x811d84));}async[_0xd0b0c8(0x67a,0x6be,0x65d,0x6e4)](_0x3080d7,_0x1430e,_0x3beb80,_0x21ea96,_0x1ad351){const _0x4b53fc={_0x1cf079:0x92,_0x451b70:0x59,_0x3b2546:0x64,_0x170168:0xa2,_0x5ae018:0x1c,_0xeb1eca:0xb1,_0x495ecd:0xc4,_0x2ed93e:0x25,_0x5ccbba:0x40,_0xa1eb1f:0x11,_0x16b2ac:0x89,_0x1ae813:0x4e,_0x1271ff:0x81,_0x445da8:0x118,_0xe258aa:0x175},_0x2e7141={_0x39153c:0x332,_0x18968b:0x316,_0x24b98b:0x363,_0xae6719:0xf9,_0x214a25:0xe7,_0x372cb4:0x2de,_0x47d583:0x3ba,_0x5d4eae:0x473,_0x4b84b0:0x409,_0x225fcb:0x2e6,_0x2dced8:0x32e,_0x47858a:0x88,_0x598026:0x9b,_0x19d563:0x73,_0x25ad35:0xd1,_0x49550b:0x128,_0x57fbf1:0x122,_0xc73ea6:0x2ed,_0x10fad7:0x289,_0x3f4021:0x2a8,_0xf0d17b:0x382,_0x48b5c9:0x28d,_0x3cc65d:0x211,_0x31ac6e:0x3a2,_0x579a43:0x33,_0x4cee4b:0x28,_0xe914aa:0x60,_0x1d43c6:0x37,_0x2b91f1:0x2b7,_0x25e6b5:0x2db,_0x23fc6d:0x345,_0x2ed83a:0xc,_0x3e12a7:0x303},_0x274b23={_0x48fa22:0x1d7},_0x31cbe8={_0x5f2796:0x375,_0x520dde:0x443,_0x33abba:0x1c2,_0x3f71e7:0x10f,_0x21133f:0x174,_0xf5a260:0x592,_0x4eb490:0x4cf},_0x8ecfa4={_0x3ab92c:0xfe},_0x2aa764={_0x102049:0x646},_0x202cb7={_0x2e55c3:0x1ee,_0x4d3fe8:0x169};if(_0x1430e[_0x4b2f10(_0x4b53fc._0x1cf079,_0x4b53fc._0x451b70,_0x4b53fc._0x3b2546,_0x4b53fc._0x170168)]?.[_0x6577a5(-0x57,-_0x4b53fc._0x5ae018,-_0x4b53fc._0xeb1eca,-0x100)]===WebSocket['OPEN'])return _0x1430e[_0x4b2f10(-0x32,0x59,-0x64,_0x4b53fc._0x495ecd)];if(_0x1430e[_0x4b2f10(_0x4b53fc._0x2ed93e,_0x4b53fc._0x5ccbba,-0x64,-_0x4b53fc._0xa1eb1f)])return await _0x1430e[_0x4b2f10(0x2a,_0x4b53fc._0x5ccbba,-0x42,0xba)];function _0x4b2f10(_0x29e001,_0x582f6b,_0x5dd149,_0xd8f61a){return _0xd0b0c8(_0x29e001-_0x202cb7._0x2e55c3,_0x582f6b- -0x524,_0x29e001,_0xd8f61a-_0x202cb7._0x4d3fe8);}function _0x6577a5(_0xe85333,_0x10b540,_0x4b5edd,_0x4d77f8){return _0xd0b0c8(_0xe85333-0x30,_0xe85333- -_0x2aa764._0x102049,_0x4d77f8,_0x4d77f8-0x1a8);}_0x1430e[_0x6577a5(-0xe2,-_0x4b53fc._0x16b2ac,-0x1c1,-0x2e)]=((async()=>{const _0x3e75ff=await this[_0x11f205(0x373,_0x2e7141._0x39153c,_0x2e7141._0x18968b,_0x2e7141._0x24b98b)]({'request':_0x3beb80[_0x5d0d2c(-0xa7,-_0x2e7141._0xae6719,0x3b,-_0x2e7141._0x214a25)],'body':_0x21ea96,'credential':_0x3beb80[_0x11f205(_0x2e7141._0x372cb4,_0x2e7141._0x47d583,0x35a,0x2ce)],'session':_0x3beb80['session'],'stream':!![]},{'accept':_0x11f205(0x40b,0x42d,_0x2e7141._0x5d4eae,0x450),'includeContentType':![]});_0x3e75ff['delete']('accept');function _0x5d0d2c(_0x386b58,_0x27c43f,_0x43c117,_0x8f1bf8){return _0x4b2f10(_0x27c43f,_0x386b58- -_0x8ecfa4._0x3ab92c,_0x43c117-0xb0,_0x8f1bf8-0x12e);}const _0x3bbcc4=this['webSocketFactory']({'headers':Object[_0x11f205(0x41b,_0x2e7141._0x4b84b0,0x3f2,0x3f8)](_0x3e75ff[_0x11f205(0x39e,_0x2e7141._0x225fcb,_0x2e7141._0x2dced8,0x3ab)]()),'url':(''+_0x3beb80[_0x5d0d2c(-_0x2e7141._0x47858a,-0x6e,-0x147,-_0x2e7141._0x598026)]+this[_0x5d0d2c(_0x2e7141._0x19d563,_0x2e7141._0x25ad35,_0x2e7141._0x49550b,0x12a)])['replace'](/^http:/,'ws:')[_0x5d0d2c(0xa1,0xc0,0x1,_0x2e7141._0x57fbf1)](/^https:/,_0x11f205(0x345,_0x2e7141._0xc73ea6,0x23d,_0x2e7141._0x10fad7))}),_0x3c93d5=()=>{const _0x568b85={_0x1f59a5:0x16a,_0x1c5be7:0x112,_0x5a8211:0x197},_0x7038db={_0x3fe9b3:0x9c};function _0x135fa4(_0x37c64c,_0x9884a2,_0x5d815b,_0x3a5667){return _0x5d0d2c(_0x5d815b-0x41a,_0x3a5667,_0x5d815b-0x48,_0x3a5667-_0x7038db._0x3fe9b3);}function _0x40fa03(_0xe36228,_0x3a9f84,_0x2856b0,_0x488b35){return _0x11f205(_0xe36228-_0x568b85._0x1f59a5,_0xe36228- -_0x568b85._0x1c5be7,_0x2856b0-_0x568b85._0x5a8211,_0x3a9f84);}_0x1430e[_0x135fa4(0x37d,0x408,_0x31cbe8._0x5f2796,_0x31cbe8._0x520dde)]===_0x3bbcc4&&(_0x1430e[_0x40fa03(0x1c9,_0x31cbe8._0x33abba,_0x31cbe8._0x3f71e7,_0x31cbe8._0x21133f)]=void 0x0,_0x1430e['lastResponseId']=void 0x0),this[_0x135fa4(0x4bf,_0x31cbe8._0xf5a260,0x4c9,_0x31cbe8._0x4eb490)](_0x1430e);};function _0x11f205(_0x37a35d,_0x304eb1,_0x31d863,_0x1cbab9){return _0x4b2f10(_0x1cbab9,_0x304eb1-0x282,_0x31d863-0x33,_0x1cbab9-_0x274b23._0x48fa22);}_0x3bbcc4[_0x11f205(_0x2e7141._0x3f4021,_0x2e7141._0xf0d17b,0x3f0,0x429)](_0x11f205(_0x2e7141._0x48b5c9,0x2c8,_0x2e7141._0x3cc65d,_0x2e7141._0x31ac6e),_0x3c93d5);try{return throwIfAborted(_0x1ad351),_0x3bbcc4[_0x5d0d2c(-_0x2e7141._0x579a43,-_0x2e7141._0x4cee4b,-0xb,-0x43)]!==WebSocket[_0x5d0d2c(_0x2e7141._0xe914aa,-0x5e,_0x2e7141._0x1d43c6,0xf8)]&&await waitForWebSocketOpen(_0x3bbcc4,_0x1ad351),throwIfAborted(_0x1ad351),_0x1430e[_0x11f205(_0x2e7141._0x2b91f1,_0x2e7141._0x25e6b5,_0x2e7141._0x23fc6d,0x227)]=_0x3bbcc4,_0x3bbcc4;}catch(_0xd897b3){_0x3c93d5();_0x3bbcc4[_0x11f205(0x27f,0x34d,0x346,0x26f)]===WebSocket[_0x5d0d2c(0x60,0xff,0xf0,_0x2e7141._0x2ed83a)]&&_0x3bbcc4[_0x11f205(0x30b,0x2c8,_0x2e7141._0x3e12a7,0x1e1)](0x3e8,'connect_failed');throw _0xd897b3;}})());try{return await _0x1430e[_0x4b2f10(-_0x4b53fc._0x1ae813,_0x4b53fc._0x5ccbba,_0x4b53fc._0x1271ff,-0x9b)];}finally{_0x1430e[_0x6577a5(-0xe2,-_0x4b53fc._0x445da8,-_0x4b53fc._0xe258aa,-0x162)]=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x34bb74,_0x2a6fb1){const _0x2bbb86={_0x172a3e:0x5,_0x1a91e7:0x51,_0x5d3428:0x74,_0x4e7ba1:0x2c3,_0x284bf3:0x30,_0x2794b2:0xfd,_0x4c7ca2:0xe5,_0x8eadca:0x271,_0x6bfdc5:0x2a3,_0x37dbca:0x302,_0x43996e:0x30f,_0x12a1fa:0x10a,_0x4f5e70:0xcb,_0x5c30ca:0x3df,_0x5e7a97:0x35b,_0x211d3a:0x3ff,_0xaadcc8:0x2eb,_0x44e123:0x28a,_0x2e55f9:0x315,_0x353a58:0x2a0,_0x41bf5e:0x302,_0x1ad4f3:0x1e0,_0x3b576c:0x202,_0x3a5bab:0x2ec,_0x4b5491:0x3ea,_0x5679ae:0x3d9,_0x1c1209:0x341,_0xa7d084:0x3bf},_0x2bb7ee={_0x27be85:0x14e,_0x15af8f:0x18c},_0x875c0d={_0x466b38:0x57d},_0x50fad5=this[_0x2d0bf9(0x6f,0x126,0x12c,_0x2bbb86._0x172a3e)](_0x34bb74),_0xf0526b=this['getResponsesSocketSessionState'](_0x50fad5[_0x2d0bf9(_0x2bbb86._0x1a91e7,0xcf,0x1,0x35)][_0x2d0bf9(0x9a,_0x2bbb86._0x5d3428,0x91,0x57)]);function _0x2d0bf9(_0x399199,_0x3d1547,_0x3ec6af,_0x46377c){return _0xd0b0c8(_0x399199-0x1f4,_0x399199- -_0x875c0d._0x466b38,_0x46377c,_0x46377c-0x1c3);}function _0x363b23(_0x19192a,_0x555303,_0x10496d,_0x5209f8){return _0x495204(_0x555303,_0x10496d- -0xd,_0x10496d-_0x2bb7ee._0x27be85,_0x5209f8-_0x2bb7ee._0x15af8f);}const _0xf6adbb=await this[_0x363b23(0x2bf,0x1db,_0x2bbb86._0x4e7ba1,0x349)](_0xf0526b);try{const _0x4779fd=this[_0x2d0bf9(0x38,0xc1,-0x84,0x6)](_0x50fad5,_0xf0526b);try{yield*this[_0x2d0bf9(0x4e,-_0x2bbb86._0x284bf3,_0x2bbb86._0x2794b2,_0x2bbb86._0x4c7ca2)](_0x50fad5[_0x363b23(_0x2bbb86._0x8eadca,0x2b9,_0x2bbb86._0x6bfdc5,_0x2bbb86._0x37dbca)]['sessionId'],_0xf0526b,_0x50fad5,_0x4779fd[_0x363b23(0x2b4,0x2a7,0x22b,0x285)],_0x2a6fb1?.['signal']);return;}catch(_0x250f0c){if(!_0x4779fd[_0x363b23(0x142,0x190,0x225,_0x2bbb86._0x43996e)]||!this[_0x2d0bf9(0xc3,_0x2bbb86._0x12a1fa,_0x2bbb86._0x4f5e70,0x173)](_0x250f0c)){this['invalidateResponsesSocketSession'](_0xf0526b);throw _0x250f0c;}}this[_0x363b23(_0x2bbb86._0x5c30ca,0x396,_0x2bbb86._0x5e7a97,_0x2bbb86._0x211d3a)](_0xf0526b);const _0x524ac8=this[_0x363b23(0x1fa,_0x2bbb86._0xaadcc8,_0x2bbb86._0x44e123,0x2e2)](_0x50fad5,_0xf0526b,{'forceFullReplay':!![]});yield*this[_0x363b23(0x23c,_0x2bbb86._0x2e55f9,_0x2bbb86._0x353a58,0x2ff)](_0x50fad5[_0x363b23(_0x2bbb86._0x41bf5e,_0x2bbb86._0x1ad4f3,0x2a3,_0x2bbb86._0x3b576c)][_0x363b23(0x304,0x24a,_0x2bbb86._0x3a5bab,0x228)],_0xf0526b,_0x50fad5,_0x524ac8['event'],_0x2a6fb1?.[_0x363b23(_0x2bbb86._0x4b5491,_0x2bbb86._0x5679ae,_0x2bbb86._0x1c1209,_0x2bbb86._0xa7d084)]);}finally{_0xf6adbb();}}async*[_0x495204(0x346,0x2ad,0x1ea,0x2df)](_0x5ce3e4,_0x5cc794,_0x42fa72,_0x56b3fe,_0x8c9a18){const _0x20383c={_0x10babf:0x165,_0x3f096d:0x22d,_0x1e1658:0x230,_0x2c5692:0x122,_0x2f56b4:0x138,_0x3c1671:0x101,_0x1c2b77:0x47,_0x323430:0x9b,_0x131493:0x172,_0x51634a:0xf9,_0x2a2e1f:0x18e,_0x17503d:0x190,_0x289dd6:0xd7,_0x420395:0x16a,_0xbd800b:0x2f,_0x345e31:0x77,_0x195674:0x102,_0x1885d0:0x4a,_0x2e0304:0x1bd,_0x4b768d:0xdf,_0x12d85b:0xb6,_0x1c14e4:0x124,_0x5967f7:0x212},_0x18650b={_0x42a0f2:0x44f},_0x5d7c63={_0x5efbe5:0x113},_0x29f9dc=await this[_0x3b3ff4(_0x20383c._0x10babf,0x86,_0x20383c._0x3f096d,_0x20383c._0x1e1658)](_0x42fa72,_0x8c9a18),_0x4ac205=await this['getOrCreateResponsesSocket'](_0x5ce3e4,_0x5cc794,_0x29f9dc,_0x56b3fe,_0x8c9a18);function _0x3b3ff4(_0x309d75,_0x2f6199,_0x3fec6f,_0x19948c){return _0x495204(_0x3fec6f,_0x309d75- -0x21e,_0x3fec6f-_0x5d7c63._0x5efbe5,_0x19948c-0x2f);}const _0x3c1540=createOpenAiResponsesStreamParser(_0x42fa72);throwIfAborted(_0x8c9a18),_0x4ac205[_0x3b3ff4(_0x20383c._0x2c5692,_0x20383c._0x2f56b4,_0x20383c._0x3c1671,0x87)](JSON['stringify'](_0x56b3fe));for await(const _0x3248a9 of iterateWebSocketMessages(_0x4ac205,_0x8c9a18)){const _0x423168=_0x3c1540[_0x3b3ff4(-0x1e,-0x6e,0xc2,-_0x20383c._0x1c2b77)]?.(_0x3248a9)??[];yield*_0x423168;if(_0x3c1540[_0x2e9411(-_0x20383c._0x323430,-_0x20383c._0x131493,-0x14c,-0x138)]?.())break;}if(!_0x3c1540[_0x3b3ff4(_0x20383c._0x51634a,0xd8,0x14f,0x33)]?.())throw new Error(_0x2e9411(-0x125,-0x129,-0x103,-_0x20383c._0x2a2e1f));const _0x5e886e=_0x3c1540['finish'](),_0x3a284b=_0x5e886e[_0x2e9411(-0x169,-_0x20383c._0x17503d,-_0x20383c._0x289dd6,-_0x20383c._0x420395)]?.[_0x3b3ff4(-_0x20383c._0xbd800b,-_0x20383c._0x345e31,-_0x20383c._0x195674,_0x20383c._0x1885d0)]??_0x5e886e['id'];_0x3a284b&&(_0x5cc794[_0x2e9411(-0x104,-_0x20383c._0x2e0304,-_0x20383c._0x4b768d,-0x13a)]=_0x3a284b);function _0x2e9411(_0x4d6567,_0x1d3646,_0x451c08,_0x5db23c){return _0x495204(_0x451c08,_0x5db23c- -_0x18650b._0x42a0f2,_0x451c08-0x34,_0x5db23c-0xb8);}yield{'type':_0x3b3ff4(0x14b,_0x20383c._0x12d85b,_0x20383c._0x1c14e4,_0x20383c._0x5967f7),'response':_0x5e886e};}},AVAILABLE_CHAT_MODEL_SURFACES=['anthropic-messages',_0x495204(0x187,0x219,0x179,0x2d3),'openai-responses',_0xd0b0c8(0x4da,0x58b,0x55e,0x5be)];function isAnthropicSurface(_0x3d351a){const _0x32282b={_0x50c273:0x388,_0x5f59a1:0x3ef},_0x35e37d={_0x1b6dc4:0xb7,_0xa04f44:0x15a};function _0x284ce0(_0x40ca23,_0x290178,_0x11c1b7,_0x371eeb){return _0xd0b0c8(_0x40ca23-_0x35e37d._0x1b6dc4,_0x11c1b7- -0x120,_0x290178,_0x371eeb-_0x35e37d._0xa04f44);}return _0x3d351a===_0x284ce0(0x376,_0x32282b._0x50c273,_0x32282b._0x5f59a1,0x45a);}function providerFromSurface(_0x4c46f2){const _0x5cae53={_0x524b46:0x30e,_0x5e40e5:0x1e7,_0x40d3e8:0x2bc,_0x4346b6:0x2a4,_0x3498c9:0x418,_0xb46354:0x311,_0x377f62:0x309,_0x4d4133:0x3a7,_0x1e214a:0x1a4,_0x7e58b9:0x1dd,_0x59c65a:0x162},_0x2b1f7d={_0x7b548d:0x9b,_0x4b98c6:0x4c2,_0x1dfb83:0x187},_0x41001b={_0xc174d:0x12a,_0x85fa19:0x2b9};function _0x2b2235(_0xd2bcdc,_0x319969,_0xb480c5,_0xe0d15d){return _0xd0b0c8(_0xd2bcdc-_0x41001b._0xc174d,_0xe0d15d- -_0x41001b._0x85fa19,_0xb480c5,_0xe0d15d-0xd6);}function _0x393e97(_0x27201f,_0x15eb41,_0x4b7794,_0x1c27c5){return _0xd0b0c8(_0x27201f-_0x2b1f7d._0x7b548d,_0x15eb41- -_0x2b1f7d._0x4b98c6,_0x27201f,_0x1c27c5-_0x2b1f7d._0x1dfb83);}return _0x4c46f2[_0x2b2235(_0x5cae53._0x524b46,_0x5cae53._0x5e40e5,_0x5cae53._0x40d3e8,_0x5cae53._0x4346b6)](_0x2b2235(_0x5cae53._0x3498c9,_0x5cae53._0xb46354,0x463,0x379))?_0x2b2235(_0x5cae53._0x377f62,_0x5cae53._0x4d4133,0x36a,0x379):_0x393e97(_0x5cae53._0x1e214a,0x178,_0x5cae53._0x7e58b9,_0x5cae53._0x59c65a);}function resolveDefaultBaseUrl(_0x4cf907){const _0xde3840={_0x4d6097:0x449,_0x21fe6c:0x443,_0x2fed0d:0x43f,_0x5e93a5:0x37e,_0x308e06:0x46b,_0x49aa4d:0x4f3,_0x353031:0x4ce,_0x313407:0x4ae,_0x31d688:0x427},_0x2d34c9={_0x4d216d:0x18,_0x2b7851:0x112},_0x6ea304={_0x4235c3:0x120};function _0x3e51ac(_0x21887c,_0x1fd6ec,_0x2115d0,_0x27cc2c){return _0xd0b0c8(_0x21887c-0xcf,_0x2115d0- -0x2bc,_0x1fd6ec,_0x27cc2c-_0x6ea304._0x4235c3);}function _0x5ed9dc(_0x38f563,_0x3891b2,_0x40d685,_0x549478){return _0xd0b0c8(_0x38f563-_0x2d34c9._0x4d216d,_0x3891b2- -_0x2d34c9._0x2b7851,_0x549478,_0x549478-0xc7);}if(_0x4cf907===_0x5ed9dc(0x341,0x3fd,_0xde3840._0x4d6097,0x482))return getProviderProfile('anthropic')?.[_0x5ed9dc(0x560,0x488,0x491,0x529)]??'https://api.anthropic.com';return getProviderProfile(_0x3e51ac(_0xde3840._0x21fe6c,_0xde3840._0x2fed0d,_0xde3840._0x5e93a5,_0xde3840._0x308e06))?.[_0x5ed9dc(_0xde3840._0x49aa4d,0x488,0x53f,0x4a9)]??_0x5ed9dc(_0xde3840._0x353031,_0xde3840._0x313407,0x464,_0xde3840._0x31d688);}var ChatModel=class{['model'];[_0xd0b0c8(0x49a,0x581,0x5ee,0x4b4)];[_0x495204(0x2ea,0x276,0x1a5,0x308)];[_0x495204(0x276,0x353,0x3e9,0x36a)];[_0x495204(0x33d,0x35b,0x365,0x300)];['anthropicDelegate'];['openAiDelegate'];constructor(_0x54f56a={}){const _0x449dc4={_0x3b42dc:0x192,_0xd47bb3:0xdb,_0x2586ee:0x1cf,_0x56ded4:0x15a,_0x383a7b:0xfe,_0x2fc53e:0xa5,_0x22f03b:0x78,_0x39e7fe:0x9,_0x1714db:0xeb,_0x5999c6:0x1e,_0x3c856e:0x6a,_0x8c4bf6:0x14a,_0x43cd27:0x18,_0x17ffab:0x8b,_0x5eec3f:0x71,_0x4a1a03:0x18,_0xf593c6:0xa3,_0x28202f:0xc5,_0x331d5a:0x125,_0x3d5cfa:0x53,_0x1eea13:0xc6,_0x204e0a:0x17,_0x36e49c:0x13d,_0x1beb14:0x7e,_0x37800c:0xf1,_0xd21eb7:0x44,_0x2bd34c:0x39,_0x43da73:0x17,_0x200ba1:0x16,_0x4aa850:0x7a,_0x503f1f:0xa,_0x5a1908:0xbf,_0x1d4c06:0xdb,_0x41b46e:0xa,_0x4b5e1c:0xb7,_0xd2bbd4:0xd4,_0x38d705:0xc0,_0x158dc5:0x9b,_0x3d0575:0x2b,_0x310656:0x49,_0x20a06d:0x39,_0x58439e:0x190,_0x5b9cb7:0x14,_0x2b38ad:0x8,_0x1d0fb7:0x73,_0x1a1c73:0x91,_0x4149ec:0xe6,_0xe726e2:0x1f5,_0x191021:0x77,_0x4fe268:0x95,_0x13a6ad:0x11d,_0x5b6f66:0x44,_0x3cf322:0xb7,_0x31273f:0x15,_0x291599:0x32,_0x10330c:0xb9,_0x3d292b:0xe3,_0x1d552e:0xd1,_0x1b88c4:0x18e,_0x3dd7d1:0xe,_0x5c547b:0xb4,_0x1b95ab:0x3d,_0xafd663:0xcd,_0x4f7b3e:0x19b,_0x5855e1:0xe0,_0xe12984:0x8c},_0x3de55d={_0x819790:0x3e},_0x29e703={_0x49c5fc:0x26,_0x1c6d4c:0x5ac,_0x52e1fa:0x39};this[_0x2591aa(0xdb,0x29,0x3e,_0x449dc4._0x3b42dc)]=_0x54f56a[_0x2591aa(_0x449dc4._0xd47bb3,_0x449dc4._0x2586ee,_0x449dc4._0x56ded4,_0x449dc4._0x383a7b)]??getDefaultModel(),this[_0x2591aa(-0x9,_0x449dc4._0x2fc53e,0xab,-_0x449dc4._0x22f03b)]=_0x54f56a[_0x2591aa(-_0x449dc4._0x39e7fe,_0x449dc4._0x1714db,-_0x449dc4._0x5999c6,-0x7b)]??modelIdentityFromParts(void 0x0,this[_0x2591aa(0xdb,_0x449dc4._0x3c856e,0x80,_0x449dc4._0x8c4bf6)]),this[_0x343581(0xc,-0xca,-_0x449dc4._0x43cd27,0x1f)]=_0x54f56a[_0x343581(-_0x449dc4._0x17ffab,-_0x449dc4._0x5eec3f,-_0x449dc4._0x4a1a03,-0x96)];function _0x343581(_0x4dc443,_0x36c647,_0x2a9d6b,_0x1d26b8){return _0xd0b0c8(_0x4dc443-_0x29e703._0x49c5fc,_0x2a9d6b- -_0x29e703._0x1c6d4c,_0x1d26b8,_0x1d26b8-_0x29e703._0x52e1fa);}this['surface']=_0x54f56a[_0x343581(0x91,_0x449dc4._0xf593c6,_0x449dc4._0x28202f,_0x449dc4._0x331d5a)]??_0x2591aa(-_0x449dc4._0x3d5cfa,0xe,-_0x449dc4._0x1eea13,-0xf7);function _0x2591aa(_0x274963,_0x13437f,_0x499a86,_0x36aafe){return _0xd0b0c8(_0x274963-_0x3de55d._0x819790,_0x274963- -0x58a,_0x499a86,_0x36aafe-0x10c);}this['provider']=providerFromSurface(this[_0x343581(0x1e,-_0x449dc4._0x204e0a,_0x449dc4._0x28202f,_0x449dc4._0x36e49c)]);const _0xa02d86=trimTrailingSlashes(_0x54f56a[_0x343581(_0x449dc4._0x1beb14,0x25,-0x12,0x4f)]??resolveDefaultBaseUrl(this[_0x2591aa(0xe7,_0x449dc4._0x37800c,0xa4,0x1ba)]));if(isAnthropicSurface(this[_0x2591aa(0xe7,0x5,0x11c,0x65)])){this[_0x2591aa(0xc,-_0x449dc4._0xd21eb7,0x17,0x5d)]=new AnthropicModel({'apiKey':_0x54f56a['apiKey'],'authScheme':_0x54f56a[_0x2591aa(_0x449dc4._0x2bd34c,-_0x449dc4._0x43da73,0x11a,-_0x449dc4._0x200ba1)],'baseUrl':_0xa02d86,'fetch':_0x54f56a['fetch'],'headerResolver':_0x54f56a[_0x343581(0x5,-0x2c,-_0x449dc4._0x4aa850,-0xb7)],...this[_0x2591aa(_0x449dc4._0x503f1f,-_0x449dc4._0x5a1908,0x2c,_0x449dc4._0x1d4c06)]!==void 0x0?{'maxTokens':this[_0x2591aa(_0x449dc4._0x41b46e,0xaa,_0x449dc4._0x4b5e1c,-_0x449dc4._0xd2bbd4)]}:{},'model':this['model'],'modelIdentity':this[_0x343581(-_0x449dc4._0x38d705,_0x449dc4._0x158dc5,-_0x449dc4._0x3d0575,_0x449dc4._0x310656)],'reasoning':_0x54f56a[_0x343581(0xc1,-0x48,_0x449dc4._0x20a06d,-0x43)],'providerSessionResolver':_0x54f56a['providerSessionResolver'],'requestMutators':_0x54f56a[_0x2591aa(0xdd,_0x449dc4._0x58439e,0x1a4,-0xe)]});return;}this[_0x343581(_0x449dc4._0x5b9cb7,0x109,_0x449dc4._0x37800c,0x1b5)]=new OpenAiModel({'apiKey':_0x54f56a[_0x2591aa(_0x449dc4._0x2b38ad,0x48,-_0x449dc4._0x1d0fb7,-_0x449dc4._0x1a1c73)],'baseUrl':_0xa02d86,'fetch':_0x54f56a[_0x2591aa(0x12e,_0x449dc4._0x4149ec,_0x449dc4._0xe726e2,0x43)],'headerResolver':_0x54f56a[_0x2591aa(_0x449dc4._0x191021,0x67,_0x449dc4._0x4fe268,_0x449dc4._0x13a6ad)],...this['maxTokens']!==void 0x0?{'maxTokens':this[_0x343581(-_0x449dc4._0x5b6f66,-0x3,-0x18,-_0x449dc4._0x3cf322)]}:{},'model':this[_0x343581(-_0x449dc4._0x31273f,_0x449dc4._0x291599,_0x449dc4._0x10330c,-0xc)],'modelIdentity':this[_0x2591aa(-_0x449dc4._0x39e7fe,-_0x449dc4._0x3d292b,-0x29,-0xac)],'promptCacheKeyResolver':_0x54f56a[_0x2591aa(_0x449dc4._0x1d552e,0x2a,0x1a2,_0x449dc4._0x1b88c4)],'reasoning':_0x54f56a['reasoning'],'providerSessionResolver':_0x54f56a[_0x343581(_0x449dc4._0x3dd7d1,-_0x449dc4._0x5c547b,_0x449dc4._0x1b95ab,_0x449dc4._0xafd663)],'requestMutators':_0x54f56a[_0x2591aa(0xdd,_0x449dc4._0x4f7b3e,_0x449dc4._0x5855e1,0xb7)],'webSocketFactory':_0x54f56a[_0x343581(-0x38,-0xcd,-_0x449dc4._0xe12984,-0x145)]});}[_0xd0b0c8(0x5e3,0x548,0x5ee,0x523)](){const _0x1e9bcf={_0x363c97:0x18a,_0x3a456c:0x12c,_0x5656cb:0x233,_0x73f103:0x101,_0x2c5b81:0x243},_0x4aa222={_0x16feba:0x173};function _0xdd14ec(_0x364115,_0xaaa531,_0x3d3260,_0x104279){return _0xd0b0c8(_0x364115-0x113,_0xaaa531- -_0x4aa222._0x16feba,_0x104279,_0x104279-0x1b6);}function _0x3bec05(_0x174866,_0x223901,_0x122bca,_0x4e0e07){return _0x495204(_0x4e0e07,_0x223901- -0xee,_0x122bca-0x175,_0x4e0e07-0x13a);}if(!this[_0x3bec05(0x1a3,_0x1e9bcf._0x363c97,_0x1e9bcf._0x3a456c,_0x1e9bcf._0x5656cb)])throw new Error(_0x3bec05(_0x1e9bcf._0x73f103,0x120,0x53,0x136)+this[_0x3bec05(0x32f,0x265,0x32f,_0x1e9bcf._0x2c5b81)]);return this['anthropicDelegate'];}['getOpenAiDelegate'](){const _0x234086={_0x538fc1:0x149,_0x428603:0x46,_0x183cb5:0xe2},_0x226b97={_0x24d031:0x127},_0x3adca2={_0x5ea719:0x18a};function _0x40ef5d(_0x4803b0,_0xa51c03,_0x12fafe,_0x1fbc44){return _0x495204(_0xa51c03,_0x4803b0- -0x449,_0x12fafe-_0x3adca2._0x5ea719,_0x1fbc44-0x1e9);}function _0x1e8ff6(_0x312744,_0x1f6f8b,_0x588cd8,_0x5cd0d3){return _0xd0b0c8(_0x312744-0x70,_0x588cd8- -0x6c3,_0x312744,_0x5cd0d3-_0x226b97._0x24d031);}if(!this['openAiDelegate'])throw new Error('OpenAI\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x40ef5d(-0xf6,-_0x234086._0x538fc1,-0x91,-_0x234086._0x428603)]);return this[_0x1e8ff6(0x6b,-_0x234086._0x183cb5,-0x26,0x87)];}[_0x495204(0x248,0x235,0x2e3,0x190)](_0xf4ca21,_0x11622f){const _0x181c0c={_0x3e5fc5:0xb,_0x41e8d0:0x64,_0xeb8897:0x20c,_0x57822c:0x2b6,_0x46780c:0x69,_0x43853c:0x10e,_0x2124a3:0x176,_0x1f2f0a:0x3f,_0x328ad7:0x179,_0x54459d:0x275,_0x3cf881:0x3ba,_0xd1271a:0x3f3,_0x120da1:0x22c},_0xb9fa00={_0x4a9413:0x58};function _0x4d94a7(_0x3db186,_0x31a73f,_0x1c0985,_0x3b1adf){return _0x495204(_0x1c0985,_0x3db186- -0x348,_0x1c0985-0xa2,_0x3b1adf-0x8c);}function _0x21e9ec(_0x57ac6b,_0xf8c267,_0x58e131,_0x4f50fe){return _0x495204(_0x58e131,_0xf8c267- -0x1e,_0x58e131-0x18c,_0x4f50fe-_0xb9fa00._0x4a9413);}switch(this[_0x4d94a7(_0x181c0c._0x3e5fc5,_0x181c0c._0x41e8d0,0xc5,0x84)]){case'anthropic-messages':return this[_0x21e9ec(0x11f,_0x181c0c._0xeb8897,_0x181c0c._0x57822c,0x231)]()['complete'](_0xf4ca21,_0x11622f);case _0x4d94a7(-_0x181c0c._0x46780c,-_0x181c0c._0x43853c,-0xc2,-0x12b):return this[_0x4d94a7(-0xb5,-_0x181c0c._0x2124a3,_0x181c0c._0x1f2f0a,-_0x181c0c._0x328ad7)]()['response'](_0xf4ca21,_0x11622f);case'openai-responses-ws':return this[_0x21e9ec(0x33f,_0x181c0c._0x54459d,0x19b,0x205)]()[_0x21e9ec(_0x181c0c._0x3cf881,0x309,0x35d,_0x181c0c._0xd1271a)](_0xf4ca21,_0x11622f);default:return this['getOpenAiDelegate']()[_0x21e9ec(0x147,0x1e1,_0x181c0c._0x120da1,0x177)](_0xf4ca21,_0x11622f);}}['stream'](_0x894c1d,_0x3fc9ee){const _0x18a18b={_0x385e17:0x6a8,_0x2ffb2c:0x6d0,_0x2601e9:0x61a,_0x4696df:0x321,_0x36dab0:0x311,_0x3d51eb:0x32a,_0x50044a:0x35a,_0x11322b:0x449,_0xe2db6d:0x54e,_0x52ebbb:0x5cf,_0x38933b:0x4e6,_0x506f57:0x633,_0x3187e7:0x5f8,_0x129090:0x59f,_0x4a75b6:0x58c,_0x2b2b81:0x5c5,_0x4084d0:0x440,_0x364724:0x432,_0x11434c:0x3f2,_0x3af455:0x37d,_0x279c6b:0x39b},_0x11a8b4={_0x48a5b0:0x28},_0x379f96={_0x20f41c:0x1ce};function _0x10c3be(_0x2d3c25,_0x1d3747,_0x84cbb4,_0x501ec3){return _0x495204(_0x501ec3,_0x84cbb4-0x332,_0x84cbb4-0x156,_0x501ec3-_0x379f96._0x20f41c);}function _0x339ebb(_0x33b60f,_0x1a504d,_0x5985ad,_0x17eada){return _0xd0b0c8(_0x33b60f-_0x11a8b4._0x48a5b0,_0x1a504d- -0x1ee,_0x5985ad,_0x17eada-0x103);}switch(this[_0x10c3be(_0x18a18b._0x385e17,_0x18a18b._0x2ffb2c,0x685,_0x18a18b._0x2601e9)]){case _0x339ebb(0x271,_0x18a18b._0x4696df,_0x18a18b._0x36dab0,0x36a):return this[_0x339ebb(_0x18a18b._0x3d51eb,_0x18a18b._0x50044a,0x3ab,_0x18a18b._0x11322b)]()['stream'](_0x894c1d,_0x3fc9ee);case'openai-responses':return this[_0x10c3be(_0x18a18b._0xe2db6d,_0x18a18b._0x52ebbb,0x5c5,_0x18a18b._0x38933b)]()[_0x10c3be(0x6f7,_0x18a18b._0x506f57,0x67a,0x6dd)](_0x894c1d,_0x3fc9ee);case _0x10c3be(0x67a,_0x18a18b._0x3187e7,_0x18a18b._0x129090,0x50b):return this[_0x10c3be(_0x18a18b._0x4a75b6,0x68e,_0x18a18b._0x2b2b81,0x668)]()[_0x339ebb(_0x18a18b._0x4084d0,_0x18a18b._0x364724,_0x18a18b._0x11434c,_0x18a18b._0x3af455)](_0x894c1d,_0x3fc9ee);default:return this[_0x339ebb(0x3a1,0x3c3,0x344,_0x18a18b._0x279c6b)]()['chatStream'](_0x894c1d,_0x3fc9ee);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x495204(0x2dc,0x32d,0x2e2,0x364)];[_0xd0b0c8(0x5b2,0x59a,0x4d8,0x50e)];['fetchImpl'];[_0xd0b0c8(0x6c9,0x61a,0x527,0x6a9)];[_0xd0b0c8(0x479,0x503,0x452,0x48c)];constructor(_0x3287d5){const _0x1957c9={_0x2b9d5b:0x444,_0x40d60e:0x43a,_0x8f30c1:0x3ab,_0x5ecd0e:0x2c7,_0x553dbe:0x247,_0x2a8c3b:0x2dd,_0x32e2c4:0x360,_0x292877:0x1e4,_0x5afed9:0x1db,_0x2d626a:0x27c,_0x843f58:0x93,_0x52cc44:0x45},_0x5c260b={_0x5481af:0x185,_0x510cfc:0x2bd},_0x252c85={_0x2d31d5:0x166};this[_0x5bfc3f(_0x1957c9._0x2b9d5b,0x36b,_0x1957c9._0x40d60e,0x38e)]=_0x3287d5['accessToken'],this['baseUrl']=trimTrailingSlashes2(_0x3287d5[_0x5bfc3f(_0x1957c9._0x8f30c1,_0x1957c9._0x5ecd0e,_0x1957c9._0x553dbe,_0x1957c9._0x2a8c3b)]),this[_0x5bfc3f(_0x1957c9._0x32e2c4,_0x1957c9._0x292877,_0x1957c9._0x5afed9,_0x1957c9._0x2d626a)]=_0x3287d5['fetch'],this['githubApiUrl']=trimTrailingSlashes2(_0x3287d5['githubApiUrl']);function _0x1fad6a(_0x3f9112,_0x20d7ff,_0x1069c2,_0x21e34c){return _0xd0b0c8(_0x3f9112-_0x252c85._0x2d31d5,_0x1069c2- -0x4be,_0x21e34c,_0x21e34c-0x78);}function _0x5bfc3f(_0x7f4ee1,_0x3438c6,_0x56b493,_0x402dd2){return _0xd0b0c8(_0x7f4ee1-_0x5c260b._0x5481af,_0x402dd2- -_0x5c260b._0x510cfc,_0x56b493,_0x402dd2-0xf8);}this[_0x5bfc3f(0x1df,0x1cf,0x2e7,0x246)]=_0x3287d5[_0x1fad6a(-_0x1957c9._0x843f58,0x105,_0x1957c9._0x52cc44,0x39)];}async[_0x495204(0x36e,0x32c,0x280,0x3b1)](_0x499c1a){const _0x172de3={_0x47dbc8:0x12b,_0x4fbeea:0x233,_0x1d06d2:0x387,_0x3f803a:0x4e9,_0x1662b0:0xe3,_0x14eaa5:0x124,_0x14ce6b:0x17b,_0x216f69:0x1fb,_0x1b896e:0x13e,_0x331b01:0x18d,_0x32d56c:0xe3,_0x3c3afd:0x28d,_0x35142e:0x1b6,_0x589a66:0x62,_0x3cdaf2:0x7e,_0x1e5773:0x36,_0x2b8b6a:0x384,_0x4b3403:0x3a9,_0x2b075c:0x3ad,_0x4daea1:0x47,_0x487441:0x7e,_0xe713f8:0xfa,_0x121aa7:0x356,_0x37b8f2:0x2f4,_0x250f37:0x325,_0x26bd5e:0x3e2,_0x2ec8f9:0x553,_0x5c8a78:0x462},_0x38ebf2={_0x3f3086:0x177},_0x11d7c9={_0x11fe58:0x16d},_0x5a503c=await this['fetchImpl'](this['githubApiUrl']+_0x550aa0(_0x172de3._0x47dbc8,_0x172de3._0x4fbeea,0x155,0xee),{'method':'GET','headers':new Headers({'accept':'application/json','authorization':_0x744537(0x3e7,0x3d5,0x3f5,0x43f)+this[_0x744537(0x4cb,_0x172de3._0x1d06d2,0x45e,_0x172de3._0x3f803a)],'editor-version':_0x550aa0(_0x172de3._0x1662b0,0x5a,0x108,0x26),'user-agent':_0x550aa0(_0x172de3._0x14eaa5,_0x172de3._0x14ce6b,0x194,0x1dd),'x-github-api-version':this['tokenExchangeApiVersion']}),'signal':_0x499c1a});if(!_0x5a503c['ok'])return{'credential':{'kind':_0x550aa0(_0x172de3._0x216f69,0xe0,0x11a,0x1de),'value':this['accessToken']},'endpoints':{'api':this['baseUrl']}};function _0x744537(_0x437a7c,_0x59700e,_0x47f458,_0x224725){return _0x495204(_0x59700e,_0x47f458-0x131,_0x47f458-_0x11d7c9._0x11fe58,_0x224725-0x2f);}const _0x4884d1=await _0x5a503c[_0x550aa0(0x1fe,0xf5,_0x172de3._0x1b896e,_0x172de3._0x331b01)]();function _0x550aa0(_0x48ad7d,_0x419f7e,_0x11004b,_0x5eb072){return _0x495204(_0x419f7e,_0x11004b- -_0x38ebf2._0x3f3086,_0x11004b-0xb4,_0x5eb072-0x46);}return{'credential':{'kind':_0x550aa0(_0x172de3._0x32d56c,0x14e,0xa0,-0x2a),'value':_0x4884d1['token']??this[_0x550aa0(_0x172de3._0x3c3afd,0xed,_0x172de3._0x35142e,0xcc)]},'endpoints':{'api':_0x4884d1[_0x550aa0(0x32,_0x172de3._0x589a66,_0x172de3._0x3cdaf2,-_0x172de3._0x1e5773)]?.[_0x744537(0x398,0x453,_0x172de3._0x2b8b6a,0x331)]??this[_0x744537(_0x172de3._0x4b3403,0x395,_0x172de3._0x2b075c,0x37e)],'originTracker':_0x4884d1['endpoints']?.['origin-tracker'],'proxy':_0x4884d1[_0x550aa0(0xec,-_0x172de3._0x4daea1,_0x172de3._0x487441,_0x172de3._0xe713f8)]?.[_0x744537(_0x172de3._0x121aa7,_0x172de3._0x37b8f2,_0x172de3._0x250f37,_0x172de3._0x26bd5e)],'telemetry':_0x4884d1['endpoints']?.[_0x744537(0x545,_0x172de3._0x2ec8f9,_0x172de3._0x5c8a78,0x3ef)]}};}};function trimTrailingSlashes2(_0x21e6b5){const _0x131f09={_0x10db59:0x35};function _0xeacafe(_0x181c76,_0x477625,_0x166741,_0x45781f){return _0x495204(_0x45781f,_0x477625-0x318,_0x166741-0x4c,_0x45781f-_0x131f09._0x10db59);}return _0x21e6b5[_0xeacafe(0x644,0x6bd,0x68f,0x78d)](/\/+$/,'');}function createModelInfo(_0x297147){const _0x44d156={_0x2a868a:0x62f,_0x3024ea:0xc8,_0x44959e:0x88,_0x44fd53:0x7,_0x50285c:0x87,_0x1cbcd0:0x149,_0x5056c1:0x14a,_0x4d95a5:0x60a,_0x129424:0x60c,_0x19b4fd:0xa,_0x562950:0xfb,_0xf85d0e:0x14e,_0x326065:0x45},_0x4f5583={_0x1ace53:0x27};function _0x590da4(_0x2c6cff,_0x3161e6,_0x3baf13,_0xf98431){return _0x495204(_0x2c6cff,_0x3161e6- -0x305,_0x3baf13-_0x4f5583._0x1ace53,_0xf98431-0x7);}const _0x568888=_0x297147['supported_endpoints']??_0x297147[_0x5b55ca(0x657,_0x44d156._0x2a868a,0x633,0x6ca)],_0x28ef47=_0x297147[_0x590da4(-0x19b,-0x123,-0x6f,-_0x44d156._0x3024ea)]?.[_0x590da4(-_0x44d156._0x44959e,_0x44d156._0x44fd53,-0xb5,-0x9d)]?.[_0x590da4(0x80,0x34,_0x44d156._0x50285c,0xe9)],_0x23f9fc=_0x297147[_0x590da4(-_0x44d156._0x1cbcd0,-0x123,-_0x44d156._0x5056c1,-0x5b)]?.[_0x5b55ca(_0x44d156._0x4d95a5,_0x44d156._0x129424,0x619,0x5a2)]?.[_0x590da4(-_0x44d156._0x19b4fd,-_0x44d156._0x562950,-_0x44d156._0xf85d0e,-0xa5)];function _0x5b55ca(_0xefeebc,_0x398166,_0xf99380,_0x233ab8){return _0x495204(_0x398166,_0xefeebc-0x2fe,_0xf99380-0x9e,_0x233ab8-0x6c);}const _0x37ab4d=_0x28ef47!==void 0x0||_0x23f9fc!==void 0x0?{..._0x28ef47!==void 0x0?{'contextWindow':_0x28ef47}:{},..._0x23f9fc!==void 0x0?{'maxOutput':_0x23f9fc}:{}}:void 0x0;return{'id':_0x297147['id'],'name':_0x297147[_0x590da4(0x10e,0x70,-_0x44d156._0x326065,0xf6)]??_0x297147['id'],..._0x37ab4d?{'limits':_0x37ab4d}:{},..._0x568888?{'supportedEndpoints':_0x568888}:{}};}function deduplicateModels(_0x3c6c13){const _0x177239={_0x122c03:0x289,_0x46c617:0x10c,_0x531ecc:0x1d3},_0x3cd11a={_0x2c99e9:0x173},_0x51c0cb={_0x2e747f:0x11e};function _0x3fdc7d(_0x3dc14f,_0x43feb9,_0x409a08,_0x389412){return _0x495204(_0x3dc14f,_0x389412- -_0x51c0cb._0x2e747f,_0x409a08-0x171,_0x389412-0xe3);}const _0x4b4cc5=new Map();for(const _0x462586 of _0x3c6c13){!_0x4b4cc5['has'](_0x462586['id'])&&_0x4b4cc5['set'](_0x462586['id'],_0x462586);}function _0x19bf0e(_0x49fdfb,_0x3edbad,_0x34ae55,_0x25cf1b){return _0xd0b0c8(_0x49fdfb-0x14c,_0x3edbad- -0x72e,_0x34ae55,_0x25cf1b-_0x3cd11a._0x2c99e9);}return Array[_0x3fdc7d(0x34b,0x332,0x2bd,_0x177239._0x122c03)](_0x4b4cc5[_0x19bf0e(-_0x177239._0x46c617,-_0x177239._0x531ecc,-0xfb,-0x232)]());}function hasUserPromptContent(_0x362898){const _0xfdcc30={_0x1536f0:0x39a,_0x27aa9a:0x366,_0xb76fa3:0x2f6,_0x356d6c:0x34f,_0x2d481e:0x45c,_0x26e5b0:0x413,_0x488e97:0x3f3,_0x474875:0x4df,_0x261296:0x387,_0x211270:0x413,_0x525494:0x2ef},_0x5966bf={_0x16f1e8:0x201,_0x45d843:0x249,_0x4dac50:0x35a,_0x116716:0x453,_0x15b1b7:0x38a,_0x38e96d:0x3c0,_0xe857b9:0x15d,_0x392472:0x249,_0x1a2323:0x25c,_0x4f3285:0x40e,_0x534051:0x207,_0x18f187:0x1db,_0x1cc6a3:0x292,_0xf93932:0x2da},_0x27b71a={_0xb73df5:0x8},_0x10466c={_0x364dff:0x148,_0x12d29d:0x141,_0xbc9aa5:0x1a2};function _0x1b978c(_0xe24b80,_0x2b8a77,_0x381c97,_0xf804d3){return _0x495204(_0xf804d3,_0xe24b80-0x115,_0x381c97-0xaa,_0xf804d3-0x76);}if(typeof _0x362898===_0x359f05(0x412,_0xfdcc30._0x1536f0,_0xfdcc30._0x27aa9a,0x3d3))return _0x362898[_0x359f05(0x3f6,_0xfdcc30._0xb76fa3,0x35e,_0xfdcc30._0x356d6c)]()[_0x1b978c(0x37c,0x3f9,_0xfdcc30._0x2d481e,0x2c1)]>0x0;if(!Array[_0x1b978c(_0xfdcc30._0x26e5b0,_0xfdcc30._0x488e97,_0xfdcc30._0x474875,0x3fe)](_0x362898))return![];function _0x359f05(_0x512cb2,_0x1389d8,_0x1de195,_0x62b550){return _0x495204(_0x512cb2,_0x1de195-_0x10466c._0x364dff,_0x1de195-_0x10466c._0x12d29d,_0x62b550-_0x10466c._0xbc9aa5);}return _0x362898[_0x1b978c(_0xfdcc30._0x261296,_0xfdcc30._0x211270,0x464,_0xfdcc30._0x525494)](_0x23c45a=>{const _0x48b45d={_0x1b2f94:0x117,_0x427ffd:0x15f,_0x2e28ed:0x120};if(!_0x23c45a||typeof _0x23c45a!=='object')return![];const _0x115a70=_0x23c45a;function _0x22e597(_0x320f80,_0x2cfdb7,_0x5fa444,_0x46b71f){return _0x359f05(_0x5fa444,_0x2cfdb7-0x12b,_0x46b71f- -0x29,_0x46b71f-_0x27b71a._0xb73df5);}function _0x195655(_0x1d0ea4,_0x2b7977,_0x5a0938,_0x4f470b){return _0x359f05(_0x4f470b,_0x2b7977-_0x48b45d._0x1b2f94,_0x5a0938- -_0x48b45d._0x427ffd,_0x4f470b-_0x48b45d._0x2e28ed);}return(_0x115a70[_0x195655(_0x5966bf._0x16f1e8,0x2be,_0x5966bf._0x45d843,0x22f)]===_0x195655(_0x5966bf._0x4dac50,_0x5966bf._0x116716,_0x5966bf._0x15b1b7,_0x5966bf._0x38e96d)||_0x115a70[_0x195655(0x1b9,_0x5966bf._0xe857b9,_0x5966bf._0x392472,_0x5966bf._0x1a2323)]===_0x195655(_0x5966bf._0x4f3285,0x2c4,0x31f,0x357))&&typeof _0x115a70['text']===_0x195655(0x115,0x2bf,_0x5966bf._0x534051,_0x5966bf._0x18f187)&&_0x115a70['text']['trim']()[_0x195655(_0x5966bf._0x1cc6a3,0x16c,0x250,_0x5966bf._0xf93932)]>0x0;});}function _isUserPromptEntry(_0xedf13e){const _0x55642c={_0x22eadc:0x465,_0x41d543:0x2e8,_0x58d141:0x230,_0x25ecaf:0x490,_0x406bb2:0x428,_0x269909:0x429},_0x32cfdc={_0x1d990b:0xf1,_0x12d146:0x183};function _0x345c35(_0x4deafa,_0x45712c,_0x55e55e,_0x278c29){return _0xd0b0c8(_0x4deafa-0x1c0,_0x55e55e- -_0x32cfdc._0x1d990b,_0x278c29,_0x278c29-_0x32cfdc._0x12d146);}function _0x5c1636(_0x19be22,_0x1e3221,_0xb5de0d,_0x14a8a3){return _0x495204(_0x14a8a3,_0xb5de0d- -0x4e,_0xb5de0d-0x1d4,_0x14a8a3-0x177);}if(!_0xedf13e||typeof _0xedf13e!==_0x5c1636(0x2f9,0x2dc,0x324,0x355))return![];const _0x1d0c15=_0xedf13e;if(_0x1d0c15[_0x345c35(0x549,0x518,0x4d4,_0x55642c._0x22eadc)]!==_0x5c1636(_0x55642c._0x41d543,0x13e,_0x55642c._0x58d141,0x2da))return![];if(_0x1d0c15['type']!==void 0x0&&_0x1d0c15[_0x345c35(0x497,_0x55642c._0x25ecaf,0x48d,_0x55642c._0x406bb2)]!=='message')return![];return hasUserPromptContent(_0x1d0c15[_0x345c35(_0x55642c._0x269909,0x45c,0x46b,0x40c)]);}function determineInitiator(_0x33a34e){const _0x4bd2af={_0x39f84d:0x4dd,_0x40769e:0x3d5,_0x559a20:0x44c,_0x852105:0x4c4,_0x47001d:0x48f,_0x1f629b:0x4c0,_0xa94aa1:0x4f6,_0x4b2659:0x48f,_0x3a78c9:0x467,_0x3dd13c:0x408,_0x129632:0x2f9,_0x329f3a:0x27f,_0x48d764:0x26e,_0x15ffe1:0x332,_0x2ddc3d:0x53c},_0x525bd4={_0x1f93ad:0x25f,_0xc3a94d:0xcd},_0x18f166={_0x180f2a:0x0};if(!_0x33a34e||typeof _0x33a34e!==_0x34ca8c(0x559,0x5d1,_0x4bd2af._0x39f84d,0x563))return _0x34ca8c(_0x4bd2af._0x40769e,_0x4bd2af._0x559a20,0x413,_0x4bd2af._0x852105);function _0x240e2d(_0x41dbbb,_0x27ca1a,_0x2ecf78,_0x298bbd){return _0xd0b0c8(_0x41dbbb-_0x18f166._0x180f2a,_0x2ecf78- -0x26a,_0x41dbbb,_0x298bbd-0x173);}function _0x34ca8c(_0x4cfac8,_0x1dbf8f,_0x4fbccf,_0x389959){return _0x495204(_0x389959,_0x1dbf8f-_0x525bd4._0x1f93ad,_0x4fbccf-0x1c5,_0x389959-_0x525bd4._0xc3a94d);}const _0x44b726=_0x34ca8c(0x559,_0x4bd2af._0x47001d,_0x4bd2af._0x1f629b,0x43d)in _0x33a34e?_0x33a34e[_0x34ca8c(_0x4bd2af._0xa94aa1,_0x4bd2af._0x4b2659,_0x4bd2af._0x3a78c9,_0x4bd2af._0x3dd13c)]:'input'in _0x33a34e?_0x33a34e['input']:void 0x0;if(!Array['isArray'](_0x44b726)||_0x44b726[_0x240e2d(_0x4bd2af._0x129632,0x3b3,0x31b,0x366)]===0x0)return'agent';return _isUserPromptEntry(_0x44b726[_0x44b726['length']-0x1])?_0x240e2d(_0x4bd2af._0x329f3a,_0x4bd2af._0x48d764,_0x4bd2af._0x15ffe1,0x41a):_0x34ca8c(0x382,0x44c,_0x4bd2af._0x2ddc3d,0x45f);}function isUnsupportedApiForModel(_0x526eee){const _0x55be17={_0x56764e:0x1ad,_0xa6923d:0x158,_0x4e2798:0x239,_0x1f6cf1:0x22d,_0x403712:0x195,_0x1d1b5a:0xbb},_0x4bf560={_0xb35978:0x128,_0x2787c0:0x1ed};function _0x5c8256(_0x502f02,_0x3905db,_0x490be2,_0x420f91){return _0x495204(_0x490be2,_0x3905db-0x1fd,_0x490be2-0xb3,_0x420f91-0x1a9);}function _0x2fc332(_0x2f0ada,_0x4fac1c,_0x2787fa,_0x3a3d52){return _0x495204(_0x3a3d52,_0x2787fa- -_0x4bf560._0xb35978,_0x2787fa-_0x4bf560._0x2787c0,_0x3a3d52-0x1cd);}return _0x526eee[_0x2fc332(_0x55be17._0x56764e,_0x55be17._0xa6923d,_0x55be17._0x4e2798,_0x55be17._0x1f6cf1)](_0x2fc332(_0x55be17._0x403712,0xc1,0x100,_0x55be17._0x1d1b5a));}function createResponseError(_0x348b66,_0x1ccc11){const _0x5d22d3={_0x23d3f6:0xca,_0x15fc61:0x225,_0x4a2223:0x31,_0x5ddd0f:0xe,_0x2afce7:0x95,_0x51c8da:0xd0};if(_0x348b66===0x191||_0x348b66===0x193)return new Error(_0x393919(-0xfb,-0x101,-0x17,-_0x5d22d3._0x23d3f6));function _0x317e04(_0x401bfa,_0x2c5cbe,_0x2e2292,_0xe604be){return _0x495204(_0x2c5cbe,_0x401bfa- -0x312,_0x2e2292-0x16,_0xe604be-0x134);}if(_0x348b66===0x198||_0x348b66===0x1ad)return new Error(_0x393919(-_0x5d22d3._0x15fc61,-0x2be,-0x1d7,-0x1ea));function _0x393919(_0x563427,_0x25d6fc,_0x5e33ef,_0x3b9b54){return _0xd0b0c8(_0x563427-0x150,_0x3b9b54- -0x71a,_0x25d6fc,_0x3b9b54-0x1b8);}if(_0x348b66===0x190)return new Error(_0x317e04(_0x5d22d3._0x4a2223,-_0x5d22d3._0x5ddd0f,_0x5d22d3._0x2afce7,_0x5d22d3._0x51c8da)+_0x1ccc11);return new Error(_0x1ccc11||'GitHub\x20API\x20error\x20'+_0x348b66);}var GitHubModel=class extends OpenAiModel{['anthropicDelegate'];['modelEndpointCache']=new Map();[_0x495204(0x3e4,0x353,0x316,0x2a8)];constructor(_0x51cd7d={}){const _0x3515b9={_0x49cecd:0x557,_0xbfdbd5:0x53d,_0x10722a:0x68d,_0x3596a7:0x714,_0x40dde4:0x620,_0x46e995:0x59a,_0x1be064:0x5bd,_0x26bacb:0x4e7,_0x3350cf:0x4dd,_0x50964e:0x54b,_0x5175ee:0x592,_0x22676a:0x61f,_0x6943c5:0x474,_0x422213:0x54e,_0x1b55bc:0x316,_0x58cb95:0x4a9,_0x289513:0x3b7,_0x4b370a:0x3b1,_0x117e75:0x4e8,_0x57ddd2:0x4df,_0x276c69:0x566,_0x5e11dc:0x585,_0x3e0ede:0x588,_0x1d3dc3:0x537,_0x271c5c:0x56e,_0x22f696:0x4c3,_0x18b47d:0x452,_0x381519:0x476,_0x5024b5:0x4f0,_0x1163d2:0x502,_0x401084:0x5ac,_0x47b59b:0x420,_0x26c57d:0x46f,_0x43ecb4:0x427,_0x450831:0x504,_0x8cb6ad:0x570,_0x4acf3b:0x344,_0x1f064f:0x506,_0x50738b:0x5e0,_0x16d136:0x505,_0x458dca:0x4f3,_0x52ea8f:0x4c9,_0x4835a9:0x4ba,_0x52d307:0x4be,_0x706d01:0x3d0,_0x4a92c9:0x652},_0x374906={_0x23969a:0x93},_0x503ec5={_0x349390:0x147,_0x13f022:0x16f},_0x3631b3=trimTrailingSlashes2(_0x51cd7d[_0x2a4492(0x476,0x4c7,0x42b,0x337)]??_0x2a4492(_0x3515b9._0x49cecd,_0x3515b9._0xbfdbd5,0x552,0x571)),_0x5cc5c0=_0x51cd7d['fetch']??globalThis[_0x5233cf(0x62a,_0x3515b9._0x10722a,0x65d,_0x3515b9._0x3596a7)],_0x23f1f5=_0x51cd7d[_0x5233cf(0x55b,_0x3515b9._0x40dde4,0x57f,_0x3515b9._0x46e995)]??(_0x51cd7d[_0x5233cf(_0x3515b9._0x1be064,_0x3515b9._0x26bacb,_0x3515b9._0x3350cf,_0x3515b9._0x50964e)]?new GitHubAccessTokenResolver({'accessToken':_0x51cd7d['accessToken'],'baseUrl':_0x3631b3,'fetch':_0x5cc5c0,'githubApiUrl':_0x51cd7d[_0x5233cf(0x58c,_0x3515b9._0x5175ee,_0x3515b9._0x22676a,0x559)]??_0x2a4492(0x494,0x437,0x4a6,0x460),'tokenExchangeApiVersion':_0x51cd7d[_0x2a4492(0x334,0x3db,0x394,0x303)]??_0x2a4492(0x4c8,0x51d,_0x3515b9._0x6943c5,_0x3515b9._0x422213)}):void 0x0),_0x2fb54a=_0x51cd7d['editorVersion']??_0x2a4492(_0x3515b9._0x1b55bc,_0x3515b9._0x58cb95,_0x3515b9._0x289513,0x37f),_0x248668=_0x51cd7d[_0x2a4492(0x427,_0x3515b9._0x4b370a,0x432,0x464)]??_0x5233cf(_0x3515b9._0x117e75,_0x3515b9._0x57ddd2,_0x3515b9._0x276c69,0x518),_0x7e5c6d=({body:_0x15ab46})=>{return{'editor-plugin-version':_0x248668,'editor-version':_0x2fb54a,'x-initiator':determineInitiator(_0x15ab46),'x-request-id':randomUUID()};};function _0x2a4492(_0x2b7600,_0x1876ad,_0x4e17ef,_0x31fdb7){return _0xd0b0c8(_0x2b7600-_0x503ec5._0x349390,_0x4e17ef- -_0x503ec5._0x13f022,_0x31fdb7,_0x31fdb7-0xae);}function _0x5233cf(_0x1bf852,_0x2a3c1d,_0x38bd9b,_0x3f08db){return _0x495204(_0x2a3c1d,_0x1bf852-0x290,_0x38bd9b-0x135,_0x3f08db-_0x374906._0x23969a);}const _0x310a24={'apiKey':_0x51cd7d[_0x5233cf(0x504,_0x3515b9._0x5e11dc,0x4de,_0x3515b9._0x3e0ede)],'baseUrl':_0x3631b3,'fetch':_0x5cc5c0,'maxTokens':_0x51cd7d[_0x5233cf(0x506,0x569,_0x3515b9._0x1d3dc3,0x547)],'model':_0x51cd7d[_0x5233cf(0x5d7,_0x3515b9._0x271c5c,0x513,0x596)],'modelIdentity':_0x51cd7d['modelIdentity'],'reasoning':_0x51cd7d[_0x2a4492(_0x3515b9._0x22f696,_0x3515b9._0x18b47d,_0x3515b9._0x381519,0x401)],'providerSessionResolver':_0x23f1f5,'requestMutators':_0x51cd7d['requestMutators'],'headerResolver':_0x7e5c6d};super(_0x310a24),this[_0x2a4492(0x5ae,_0x3515b9._0x5024b5,_0x3515b9._0x1163d2,_0x3515b9._0x401084)]=_0x51cd7d[_0x5233cf(0x5e3,0x556,0x60e,0x6cb)]??_0x2a4492(_0x3515b9._0x47b59b,0x4fc,0x484,0x480),this[_0x2a4492(_0x3515b9._0x26c57d,0x44f,_0x3515b9._0x43ecb4,0x34b)]=new AnthropicModel({'apiKey':_0x51cd7d[_0x5233cf(_0x3515b9._0x450831,0x42c,_0x3515b9._0x8cb6ad,0x545)],'authScheme':_0x2a4492(_0x3515b9._0x4acf3b,0x3d2,0x408,0x426),'baseUrl':_0x3631b3,'fetch':_0x5cc5c0,'headerResolver':_0x7e5c6d,'maxTokens':_0x51cd7d[_0x5233cf(_0x3515b9._0x1f064f,_0x3515b9._0x50738b,_0x3515b9._0x16d136,0x43d)],'model':_0x51cd7d['model'],'modelIdentity':_0x51cd7d[_0x5233cf(_0x3515b9._0x458dca,_0x3515b9._0x52ea8f,_0x3515b9._0x4835a9,0x4d1)],'reasoning':_0x51cd7d[_0x2a4492(_0x3515b9._0x52d307,_0x3515b9._0x706d01,0x476,0x4bb)],'providerSessionResolver':_0x23f1f5,'requestMutators':_0x51cd7d[_0x5233cf(0x5d9,_0x3515b9._0x4a92c9,0x503,0x67f)]});}[_0x495204(0x359,0x2ca,0x21d,0x30f)](){return new Error('GitHubModel\x20requires\x20an\x20apiKey,\x20accessToken,\x20or\x20providerSessionResolver');}[_0xd0b0c8(0x591,0x5b9,0x668,0x6ab)](_0x36d792){const _0x476d8f={_0x689372:0x5d,_0x472cc7:0xe1,_0x2c47e3:0x23f,_0x576e74:0x216,_0x5ce729:0x366,_0x1bf5ef:0x30b,_0x12368a:0x2f3},_0x53b89e={_0x5b27f1:0x39f},_0x2d5a21={_0x95b942:0x1d5,_0x469695:0x184};function _0x39dc7c(_0x115fd2,_0x1dfcff,_0x1029c4,_0x1ba4f6){return _0x495204(_0x1dfcff,_0x115fd2-0x5,_0x1029c4-_0x2d5a21._0x95b942,_0x1ba4f6-_0x2d5a21._0x469695);}const _0x3b96b4=this[_0x480fb4(_0x476d8f._0x689372,-0xc,0x11,-_0x476d8f._0x472cc7)][_0x39dc7c(_0x476d8f._0x2c47e3,0x18e,0x15d,_0x476d8f._0x576e74)](_0x36d792);if(!_0x3b96b4)return![];function _0x480fb4(_0x51feb1,_0x17c746,_0x3b473d,_0x1757ea){return _0x495204(_0x51feb1,_0x17c746- -_0x53b89e._0x5b27f1,_0x3b473d-0x1cf,_0x1757ea-0x62);}return!_0x3b96b4['includes']('/chat/completions')&&_0x3b96b4[_0x39dc7c(_0x476d8f._0x5ce729,_0x476d8f._0x1bf5ef,0x310,0x2ef)](_0x39dc7c(0x333,0x373,_0x476d8f._0x12368a,0x252));}[_0xd0b0c8(0x4a8,0x578,0x5da,0x59a)](_0x51f033){const _0x9566c3={_0x2e9f46:0x1ba,_0x457009:0x5e7,_0xf859a:0xf3,_0x4b3bad:0xee,_0x1d9dde:0x1be,_0x5d81eb:0xde,_0x2b16bf:0x177},_0x581b70={_0x1ffa65:0x1a5,_0x1c18b8:0x70},_0x344b7a={_0x3c6c03:0x1ad,_0x4d5a62:0x1a1},_0x2f9083=this[_0x23dda0(0x14b,0xfc,_0x9566c3._0x2e9f46,0x1e6)]['get'](_0x51f033['model']);if(!_0x2f9083)return![];if(resolveOpenAiReasoningConfig(_0x51f033['reasoning']))return _0x2f9083['includes'](_0x493529(0x5b3,0x610,_0x9566c3._0x457009,0x563));function _0x23dda0(_0x1c06a4,_0x32e88a,_0x437a42,_0x5b31e4){return _0x495204(_0x437a42,_0x5b31e4- -_0x344b7a._0x3c6c03,_0x437a42-_0x344b7a._0x4d5a62,_0x5b31e4-0xe2);}function _0x493529(_0x3aebc6,_0x3f4dca,_0x39f408,_0x3fff6f){return _0x495204(_0x39f408,_0x3f4dca-0x2e2,_0x39f408-_0x581b70._0x1ffa65,_0x3fff6f-_0x581b70._0x1c18b8);}return this[_0x23dda0(_0x9566c3._0xf859a,0xbf,0x1c3,_0x9566c3._0x4b3bad)](_0x51f033[_0x23dda0(_0x9566c3._0x1d9dde,_0x9566c3._0x5d81eb,_0x9566c3._0x2b16bf,0x19a)]);}['markModelAsResponsesOnly'](_0x2f82c2){const _0x42d485={_0x5da560:0x454,_0x421bc0:0x492,_0x495415:0x3ce,_0x5e75ed:0x3d7,_0x1662f6:0x408,_0x3c890d:0x3c7,_0x3fe6e7:0x346,_0x120cd4:0x3ef},_0x58ca82={_0x1c14b2:0x25d,_0x17a94e:0x137},_0x113254={_0x482e21:0x354,_0x11b396:0x13e};function _0x518e02(_0x358b1c,_0x525dd1,_0x28e39d,_0x29fea8){return _0xd0b0c8(_0x358b1c-0x15,_0x29fea8- -_0x113254._0x482e21,_0x525dd1,_0x29fea8-_0x113254._0x11b396);}function _0x352fd3(_0x5d2af6,_0x23c5ca,_0x56010b,_0x130d92){return _0xd0b0c8(_0x5d2af6-0x7a,_0x5d2af6- -_0x58ca82._0x1c14b2,_0x130d92,_0x130d92-_0x58ca82._0x17a94e);}this[_0x352fd3(_0x42d485._0x5da560,0x37f,_0x42d485._0x421bc0,_0x42d485._0x495415)][_0x352fd3(_0x42d485._0x5e75ed,_0x42d485._0x1662f6,_0x42d485._0x3c890d,_0x42d485._0x3fe6e7)](_0x2f82c2,[_0x352fd3(_0x42d485._0x120cd4,0x47a,0x4c7,0x31f)]);}['mapApiError'](_0x754037){const _0x1ecb92={_0xcfa055:0x1c2,_0x20044c:0x161,_0x2670fd:0x1be},_0x5192fe={_0x29a548:0x1e8,_0xd0744d:0xd0,_0xdf4c98:0x1e7},_0x201147={_0x5ef5c6:0xdd,_0x40d0c9:0x763,_0x2ef576:0x19d};function _0x2fefd9(_0x38e0b2,_0x4532b9,_0x397a1f,_0x392d84){return _0xd0b0c8(_0x38e0b2-_0x201147._0x5ef5c6,_0x397a1f- -_0x201147._0x40d0c9,_0x38e0b2,_0x392d84-_0x201147._0x2ef576);}if(_0x754037 instanceof OpenAiApiError)return createResponseError(_0x754037['status'],_0x754037[_0x2fefd9(-_0x1ecb92._0xcfa055,-_0x1ecb92._0x20044c,-0xe2,-0x1a3)]||_0x754037[_0x3d1801(0x2a9,0x15d,_0x1ecb92._0x2670fd,0x2a9)]);function _0x3d1801(_0x5ca8da,_0x50c473,_0x2987e7,_0x35f043){return _0x495204(_0x5ca8da,_0x2987e7- -_0x5192fe._0x29a548,_0x2987e7-_0x5192fe._0xd0744d,_0x35f043-_0x5192fe._0xdf4c98);}return _0x754037;}[_0xd0b0c8(0x4fe,0x583,0x623,0x632)](_0x244af8,_0x527c2a){const _0x5e7e8c={_0x2643f1:0x5e1,_0x11b83e:0x68a,_0x3f863b:0x662,_0x24079c:0x3a8,_0x3e014b:0x361,_0x29bb3e:0x627,_0xea9d10:0x5aa,_0x61fff8:0x485,_0x1a8a7d:0x544,_0x4cf520:0x361,_0x1ceb0f:0x32f,_0x21e0da:0x4d3,_0x55c42c:0x42b,_0x4681cc:0x517,_0x5cbc54:0x566,_0x124a65:0x57c,_0x38a1a2:0x457,_0x1cc0a9:0x481,_0x126f82:0x405,_0x5a37e9:0x3dd,_0x22c3d7:0x3c7},_0x37ae4a={_0xa54aa9:0x1ee,_0x1a8679:0xb3},_0x406753={_0x5d9a74:0x1c3,_0xbc6384:0x81};function _0x4fa94e(_0x88d1f6,_0xffc97e,_0x18d420,_0x36cca4){return _0xd0b0c8(_0x88d1f6-_0x406753._0x5d9a74,_0x36cca4- -0xf,_0xffc97e,_0x36cca4-_0x406753._0xbc6384);}function _0x40da81(_0x281be8,_0x23cab6,_0x5e092c,_0x21ee06){return _0xd0b0c8(_0x281be8-0x5f,_0x281be8- -_0x37ae4a._0xa54aa9,_0x23cab6,_0x21ee06-_0x37ae4a._0x1a8679);}switch(this[_0x4fa94e(0x6cc,_0x5e7e8c._0x2643f1,_0x5e7e8c._0x11b83e,_0x5e7e8c._0x3f863b)]){case _0x40da81(0x321,0x3b7,0x2c5,0x248):return this[_0x40da81(_0x5e7e8c._0x24079c,_0x5e7e8c._0x3e014b,0x43d,0x350)][_0x4fa94e(_0x5e7e8c._0x29bb3e,_0x5e7e8c._0xea9d10,_0x5e7e8c._0x61fff8,_0x5e7e8c._0x1a8a7d)](_0x244af8,_0x527c2a);case _0x40da81(0x349,0x3b0,_0x5e7e8c._0x4cf520,0x357):return this[_0x40da81(_0x5e7e8c._0x1ceb0f,0x2ce,0x2d4,0x274)](_0x244af8,_0x527c2a);case _0x40da81(0x40f,_0x5e7e8c._0x21e0da,0x476,0x4aa):return this[_0x40da81(0x361,_0x5e7e8c._0x55c42c,0x31c,0x3dd)](_0x244af8,_0x527c2a);case _0x4fa94e(0x5d5,_0x5e7e8c._0x4681cc,_0x5e7e8c._0x5cbc54,_0x5e7e8c._0x124a65):return this[_0x40da81(_0x5e7e8c._0x38a1a2,0x478,_0x5e7e8c._0x1cc0a9,0x53b)](_0x244af8,_0x527c2a);case _0x40da81(_0x5e7e8c._0x126f82,0x372,_0x5e7e8c._0x5a37e9,_0x5e7e8c._0x22c3d7):return this[_0x40da81(0x365,0x280,0x362,0x443)](_0x244af8,_0x527c2a);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this['surface']));}[_0x495204(0x2c1,0x356,0x300,0x442)](_0x170e7e,_0x1a703b){const _0x22da9c={_0x375447:0x212,_0x7feddb:0x5b6,_0x1b2a85:0x7,_0x157e62:0x4dd,_0x2f1c73:0x5c6,_0x4b4f39:0x647,_0x507b4e:0x5bf,_0x3ea7a5:0x645,_0xe27705:0x5b7,_0x28df40:0x5bc,_0xe5931b:0x80,_0x36a46f:0x25,_0x19f8cd:0xc7,_0xa399fd:0x638,_0xd01750:0x574,_0x1c9f0a:0x627},_0x95f233={_0x4c3bf1:0x37,_0x328cbb:0xcd},_0x457957={_0x24cf8c:0x152};function _0x505140(_0x2caf46,_0x4a715e,_0xff1ddc,_0x5a1c80){return _0xd0b0c8(_0x2caf46-0x192,_0xff1ddc- -0x4ce,_0x2caf46,_0x5a1c80-_0x457957._0x24cf8c);}function _0x317144(_0x59ca7d,_0x1d02b0,_0x5a4330,_0x551612){return _0xd0b0c8(_0x59ca7d-0x19c,_0x551612- -_0x95f233._0x4c3bf1,_0x59ca7d,_0x551612-_0x95f233._0x328cbb);}switch(this[_0x505140(0x131,0x15b,0x1a3,_0x22da9c._0x375447)]){case _0x317144(_0x22da9c._0x7feddb,0x53d,0x411,0x4d8):return this[_0x505140(-_0x22da9c._0x1b2a85,0x166,0xc8,0x9)]['stream'](_0x170e7e,_0x1a703b);case'openai-chat-completions':return this['chatStream'](_0x170e7e,_0x1a703b);case _0x317144(0x69f,_0x22da9c._0x157e62,0x4f2,_0x22da9c._0x2f1c73):return this[_0x317144(0x696,_0x22da9c._0x4b4f39,0x565,0x62f)](_0x170e7e,_0x1a703b);case'openai-responses-ws':return this[_0x317144(0x55d,0x51a,_0x22da9c._0x507b4e,0x5e9)](_0x170e7e,_0x1a703b);case _0x317144(_0x22da9c._0x3ea7a5,0x517,_0x22da9c._0xe27705,_0x22da9c._0x28df40):return this[_0x505140(-_0x22da9c._0xe5931b,0x9c,_0x22da9c._0x36a46f,-_0x22da9c._0x19f8cd)](_0x170e7e,_0x1a703b);}throw new Error(_0x317144(0x6e1,0x632,_0x22da9c._0xa399fd,0x671)+String(this[_0x317144(_0x22da9c._0xd01750,0x663,_0x22da9c._0x1c9f0a,0x63a)]));}async['complete'](_0x1493e0,_0x2e9c95){const _0x1ab8d6={_0x3dfc68:0x19d,_0x52e420:0x5f,_0x13b745:0x11f,_0x581772:0x32,_0x42eccf:0xad,_0x373a18:0x7f,_0x54ee7c:0x34,_0x2f8576:0x5b,_0x7e6573:0x190,_0x3462ba:0xc3,_0x290683:0x98,_0x205201:0x48,_0x322b63:0x1bb},_0x25c125={_0x115cd8:0x6e},_0x2e65d0={_0x24ae35:0x728},_0x57a19b=this['applyModelDefaults'](_0x1493e0);if(this[_0x5594f3(0x1a2,0x1bd,_0x1ab8d6._0x3dfc68,0x28a)]!==_0x5594f3(0x10e,_0x1ab8d6._0x52e420,_0x1ab8d6._0x13b745,_0x1ab8d6._0x581772))return this[_0x5594f3(-0x36,0x13c,0xaf,0xd9)](_0x57a19b,_0x2e9c95);function _0x3d5344(_0x17ebc2,_0x27cfc2,_0x17a847,_0x94efa3){return _0xd0b0c8(_0x17ebc2-0x0,_0x17a847- -_0x2e65d0._0x24ae35,_0x94efa3,_0x94efa3-0x80);}function _0x5594f3(_0x303b3f,_0x1ac9ea,_0x3469d3,_0x4e013d){return _0x495204(_0x4e013d,_0x3469d3- -0x1b6,_0x3469d3-0x8d,_0x4e013d-_0x25c125._0x115cd8);}if(this['shouldPreferResponsesApi'](_0x57a19b))return this['response'](_0x57a19b,_0x2e9c95);try{return await this[_0x3d5344(-0x29,-_0x1ab8d6._0x42eccf,-_0x1ab8d6._0x373a18,-0xd)](_0x57a19b,_0x2e9c95);}catch(_0x3c049d){if(_0x3c049d instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x3c049d['body']))return this[_0x5594f3(-_0x1ab8d6._0x54ee7c,-0x83,_0x1ab8d6._0x2f8576,-0x23)](_0x57a19b[_0x3d5344(-_0x1ab8d6._0x7e6573,-0x10e,-_0x1ab8d6._0x3462ba,0xb)]),this[_0x5594f3(0xc0,_0x1ab8d6._0x290683,0x7b,_0x1ab8d6._0x205201)](_0x57a19b,_0x2e9c95);throw this[_0x3d5344(-_0x1ab8d6._0x322b63,-0x1d2,-0xdf,-0x19a)](_0x3c049d);}throw _0x3c049d;}}async*[_0x495204(0x287,0x1d5,0x15c,0x2b8)](_0xbbe191,_0x29a2f9){const _0x10cf6c={_0x1d8c91:0x3cb,_0x32eb5d:0x442,_0x43a2de:0x3da,_0xa9d623:0x2e2,_0x1a1e89:0x34a,_0x15e75c:0x2a6,_0x3b32fa:0x412,_0x20c5a0:0x462,_0x589981:0x49b,_0x4084a5:0x3eb,_0x3e9e21:0x46c,_0x3b4fca:0x508,_0x48eb42:0x46f,_0x5138db:0x3b3,_0x285864:0x312,_0x24fd06:0x31d,_0x100e8b:0x25d},_0x442f6b={_0x48b0f3:0x1c5},_0x330fa8={_0x4ac00d:0x109,_0x463ae9:0x12f},_0x42ea1d=this[_0x56b314(_0x10cf6c._0x1d8c91,_0x10cf6c._0x32eb5d,_0x10cf6c._0x43a2de,0x2f9)](_0xbbe191);if(this[_0xe9b1d(_0x10cf6c._0xa9d623,_0x10cf6c._0x1a1e89,0x2a1,_0x10cf6c._0x15e75c)]!==_0x56b314(_0x10cf6c._0x3b32fa,0x421,0x3e1,0x476)){yield*this[_0x56b314(0x388,0x47b,_0x10cf6c._0x20c5a0,_0x10cf6c._0x589981)](_0x42ea1d,_0x29a2f9);return;}if(this['shouldPreferResponsesApi'](_0x42ea1d)){yield*this[_0x56b314(0x538,0x446,0x454,0x434)](_0x42ea1d,_0x29a2f9);return;}function _0xe9b1d(_0xa67e55,_0x9f7cab,_0x10df36,_0x38bdf6){return _0xd0b0c8(_0xa67e55-_0x330fa8._0x4ac00d,_0x38bdf6- -0x3cb,_0xa67e55,_0x38bdf6-_0x330fa8._0x463ae9);}function _0x56b314(_0x17b963,_0x447498,_0x4c7d33,_0x5b15a7){return _0xd0b0c8(_0x17b963-0x18e,_0x4c7d33- -0x212,_0x5b15a7,_0x5b15a7-_0x442f6b._0x48b0f3);}try{yield*this[_0x56b314(0x453,_0x10cf6c._0x4084a5,0x387,_0x10cf6c._0x3e9e21)](_0x42ea1d,_0x29a2f9);}catch(_0x234412){if(_0x234412 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x234412[_0x56b314(_0x10cf6c._0x3b4fca,0x4fb,_0x10cf6c._0x48eb42,0x42b)])){this[_0x56b314(_0x10cf6c._0x5138db,_0x10cf6c._0x285864,_0x10cf6c._0x24fd06,0x27c)](_0x42ea1d['model']),yield*this[_0xe9b1d(0x36a,0x1b0,_0x10cf6c._0x100e8b,0x29b)](_0x42ea1d,_0x29a2f9);return;}throw this['mapApiError'](_0x234412);}throw _0x234412;}}async[_0xd0b0c8(0x692,0x60c,0x6f2,0x691)](_0x5a4970){const _0x58f9d7={_0x106fbe:0xc,_0x100325:0x19,_0x504924:0xc5,_0x1f8b7f:0x216,_0x3c38da:0x19d,_0x22572b:0x6bd,_0x4c1651:0x5d6,_0x39a09a:0x562,_0x5db934:0x2c6,_0x57558f:0x1c5,_0x66497d:0x1b4,_0x11c0a0:0x5cd,_0x3fed2b:0x643,_0x8b0ece:0x712},_0x4a9172={_0x291152:0x5eb,_0x41fa04:0x4f4,_0x5c1a22:0x56e,_0x5d12e2:0x5b4,_0x288d3b:0x603},_0xe0c351={_0x15af83:0x130},_0x5d734f={_0x127c89:0x20},_0x4cc744={_0x3c2af5:0x1e6},_0x38b424=await this[_0x49acc7(-_0x58f9d7._0x106fbe,0xd6,-_0x58f9d7._0x100325,_0x58f9d7._0x504924)]({'path':_0x49acc7(_0x58f9d7._0x1f8b7f,0x164,0x13e,_0x58f9d7._0x3c38da),'method':_0x1c0ceb(_0x58f9d7._0x22572b,_0x58f9d7._0x4c1651,_0x58f9d7._0x39a09a,0x5ae),'signal':_0x5a4970});if(!_0x38b424['ok'])throw this[_0x49acc7(_0x58f9d7._0x5db934,0x1d8,_0x58f9d7._0x57558f,_0x58f9d7._0x66497d)](await this['toApiError'](_0x38b424));function _0x1c0ceb(_0x132555,_0x82d93,_0x128c31,_0x13a2a4){return _0x495204(_0x13a2a4,_0x82d93-0x2f2,_0x128c31-_0x4cc744._0x3c2af5,_0x13a2a4-0x1ba);}const _0x5f2a6d=await _0x38b424['json']();function _0x49acc7(_0x1de216,_0x16a2ec,_0x30f2e4,_0x1749dd){return _0x495204(_0x30f2e4,_0x16a2ec- -0x153,_0x30f2e4-0x69,_0x1749dd-0x1c4);}const _0x2497db=(_0x5f2a6d[_0x1c0ceb(_0x58f9d7._0x11c0a0,0x659,_0x58f9d7._0x3fed2b,_0x58f9d7._0x8b0ece)]??[])['map'](_0x2aba3f=>{function _0xb7266f(_0x124873,_0x2c0b30,_0x124e06,_0xa6a08c){return _0x1c0ceb(_0x124873-0x1e5,_0x124e06-_0x5d734f._0x127c89,_0x124e06-0x162,_0x124873);}const _0x5663b4=createModelInfo(_0x2aba3f);function _0x5d2db8(_0x5990c7,_0x3c15b3,_0x5a131c,_0x4bed5c){return _0x1c0ceb(_0x5990c7-_0xe0c351._0x15af83,_0x4bed5c- -0x181,_0x5a131c-0x0,_0x5a131c);}return _0x5663b4['supportedEndpoints']&&this[_0x5d2db8(_0x4a9172._0x291152,0x560,_0x4a9172._0x41fa04,0x504)]['set'](_0x5663b4['id'],_0x5663b4[_0x5d2db8(_0x4a9172._0x5c1a22,_0x4a9172._0x5d12e2,_0x4a9172._0x288d3b,0x523)]),_0x5663b4;});return deduplicateModels(_0x2497db);}};function createHeaders(_0x32957e){const _0x1a5a9d={_0xdf67c4:0x2ec,_0x41bf0f:0x234,_0x11f8de:0x1fd,_0x217b22:0x266,_0x524bbd:0x2f5},_0x3b4425={_0x1e0d87:0x126},_0x419ba0={_0x11530e:0x110,_0x6b12af:0x38b},_0x1a7efa=new Headers();function _0x63d4f9(_0x5b59a9,_0x2ebf95,_0x41abd1,_0x2e23ed){return _0xd0b0c8(_0x5b59a9-_0x419ba0._0x11530e,_0x41abd1- -_0x419ba0._0x6b12af,_0x2e23ed,_0x2e23ed-0x1bc);}function _0x54aab7(_0x233601,_0x4b1e45,_0x4d7bca,_0x29ee56){return _0x495204(_0x233601,_0x4d7bca-0x214,_0x4d7bca-0xf7,_0x29ee56-_0x3b4425._0x1e0d87);}for(const [_0x54d8f1,_0x5d1c1f]of Object[_0x63d4f9(_0x1a5a9d._0xdf67c4,_0x1a5a9d._0x41bf0f,_0x1a5a9d._0x11f8de,_0x1a5a9d._0x217b22)](_0x32957e)){_0x1a7efa[_0x63d4f9(_0x1a5a9d._0x524bbd,0x29e,0x2a9,0x1f4)](_0x54d8f1,_0x5d1c1f);}return _0x1a7efa;}async function fetchRawResponse(_0x4bcd43){const _0x542f27={_0x5da1ae:0xa3,_0x27531a:0xea,_0x4b50d0:0x121,_0x16e5dc:0x36,_0x558c6a:0x21e,_0x425c18:0x168,_0x1528c2:0x229,_0x478a71:0x2e4,_0x278168:0x2a3,_0x1cf2e4:0x301,_0x3d4dde:0x1,_0x3299e4:0x4a,_0x5173c6:0xa6},_0x26d0bf={_0x3e8663:0x127,_0x35f760:0x14a},_0x55f416={_0x4e1c7b:0x2f7,_0xbf3a54:0xd9,_0x3dbd86:0x1de};function _0x4abec2(_0x23a304,_0x12c053,_0x9766f3,_0x57eb73){return _0x495204(_0x57eb73,_0x23a304- -_0x55f416._0x4e1c7b,_0x9766f3-_0x55f416._0xbf3a54,_0x57eb73-_0x55f416._0x3dbd86);}const _0x2a547e=_0x4bcd43[_0x4abec2(_0x542f27._0x5da1ae,_0x542f27._0x27531a,-0x34,0x147)]??globalThis[_0x4abec2(_0x542f27._0x5da1ae,0x30,_0x542f27._0x4b50d0,-_0x542f27._0x16e5dc)];function _0x467462(_0x26ab36,_0x412baa,_0x5f5159,_0x44d306){return _0xd0b0c8(_0x26ab36-_0x26d0bf._0x3e8663,_0x44d306- -0x3b2,_0x412baa,_0x44d306-_0x26d0bf._0x35f760);}return _0x2a547e(_0x4bcd43[_0x467462(_0x542f27._0x558c6a,0x2e6,_0x542f27._0x425c18,_0x542f27._0x1528c2)],{'method':_0x467462(_0x542f27._0x478a71,0x312,_0x542f27._0x278168,_0x542f27._0x1cf2e4),'headers':createHeaders(_0x4bcd43[_0x4abec2(-_0x542f27._0x3d4dde,-_0x542f27._0x3299e4,_0x542f27._0x5173c6,-0xaa)]),'body':JSON['stringify'](_0x4bcd43['body']),'signal':_0x4bcd43['signal']});}async function fetchJsonResponse(_0x29f251){const _0x5a1535={_0x1f10c5:0x18,_0x16b734:0x17a,_0x102e91:0x1f9,_0x17a6a4:0x17c,_0x40b858:0x116,_0xc7b323:0x137,_0x509a42:0x3f,_0x108c88:0xb8,_0x5c4ae4:0xb0,_0x418472:0x16a,_0x1d5219:0x172},_0x11f8a3={_0x5b7790:0x461},_0x1d192e={_0x69cb28:0x177};function _0x5bbef2(_0x4d276e,_0x466fac,_0x580b91,_0x153787){return _0x495204(_0x466fac,_0x580b91- -0x31e,_0x580b91-_0x1d192e._0x69cb28,_0x153787-0xdf);}function _0x1991c4(_0x56e996,_0x265173,_0x1e06e8,_0x42a4dc){return _0xd0b0c8(_0x56e996-0x196,_0x1e06e8- -_0x11f8a3._0x5b7790,_0x56e996,_0x42a4dc-0x48);}const _0xa5670c=await fetchRawResponse(_0x29f251);if(!_0xa5670c['ok']){const _0x74d3bf=await _0xa5670c[_0x5bbef2(-0x56,0x1f,_0x5a1535._0x1f10c5,0x68)](),_0x2edc9b=_0x74d3bf[_0x1991c4(0x142,_0x5a1535._0x16b734,0xd3,0x2f)]()||_0xa5670c['statusText']||_0x1991c4(0x1a1,_0x5a1535._0x102e91,0x1ed,_0x5a1535._0x17a6a4);throw new Error(_0x5bbef2(-_0x5a1535._0x40b858,-_0x5a1535._0xc7b323,-0xd6,-_0x5a1535._0x509a42)+_0xa5670c[_0x5bbef2(0xf0,_0x5a1535._0x108c88,-0x4,-_0x5a1535._0x5c4ae4)]+':\x20'+_0x2edc9b);}return await _0xa5670c[_0x1991c4(_0x5a1535._0x418472,0xc6,_0x5a1535._0x1d5219,0x1de)]();}function findLastMessage(_0x5e3878,_0x18ae25){const _0x343cfa={_0x5111c5:0x244,_0x41a341:0x28d,_0x1b3fb3:0x169},_0x4ae7c6={_0x1583ef:0x35f,_0x3149c0:0x1a},_0x40e2f7={_0x413dc6:0x23,_0x2a5d3a:0xd6};for(let _0x18e4db=_0x5e3878[_0x352722(0x2c8,_0x343cfa._0x5111c5,_0x343cfa._0x41a341,0x1fa)]-0x1;_0x18e4db>=0x0;_0x18e4db-=0x1){if(_0x5e3878[_0x18e4db][_0x2e5842(-0x97,-0xb8,-_0x343cfa._0x1b3fb3,-0x115)]===_0x18ae25)return _0x5e3878[_0x18e4db];}function _0x352722(_0x169604,_0x35f4cf,_0x1faa6c,_0xb444d7){return _0x495204(_0x1faa6c,_0x35f4cf- -_0x40e2f7._0x413dc6,_0x1faa6c-_0x40e2f7._0x2a5d3a,_0xb444d7-0x31);}function _0x2e5842(_0x46b5f1,_0x1c2351,_0x380c54,_0x28147d){return _0x495204(_0x380c54,_0x1c2351- -_0x4ae7c6._0x1583ef,_0x380c54-_0x4ae7c6._0x3149c0,_0x28147d-0x1f1);}return void 0x0;}function hasTool(_0x258fda,_0x48d41d){const _0x194692={_0x45a5e1:0x3c,_0x11380e:0x10b},_0x12e258={_0x21e04a:0xc0},_0x46f3cd={_0x286d41:0x28d};function _0x3239b4(_0x4a9f0f,_0x496e80,_0x5afb20,_0x4efe4f){return _0x495204(_0x4a9f0f,_0x496e80- -_0x46f3cd._0x286d41,_0x5afb20-0x1bd,_0x4efe4f-0x62);}function _0x1fc7b3(_0x45d935,_0x1ee299,_0x9cd1b0,_0x59ad03){return _0xd0b0c8(_0x45d935-0x1c6,_0x45d935- -0x5dd,_0x59ad03,_0x59ad03-_0x12e258._0x21e04a);}return _0x258fda[_0x3239b4(0x1b,0x21,-_0x194692._0x45a5e1,0x4b)][_0x1fc7b3(-0x4d,-_0x194692._0x11380e,-0x2,0x4a)](_0x184012=>_0x184012[_0x1fc7b3(0xb6,-0x1e,0xc1,0x10f)]===_0x48d41d);}function createMockResponse(_0x3c9be1,_0x3c87c2,_0x17c377,_0x3e2869){return{'id':_0x3c9be1,'content':_0x3c87c2,'stopReason':_0x17c377,'usage':_0x3e2869};}var MockModel=class{['model'];[_0xd0b0c8(0x4cc,0x581,0x66d,0x662)];[_0x495204(0x2f6,0x276,0x1c7,0x235)];[_0x495204(0x2fc,0x275,0x2fa,0x1df)]=[];[_0xd0b0c8(0x642,0x5e5,0x69a,0x691)];constructor(_0x1acc3e={}){const _0x31ed2c={_0x1fcac7:0x381,_0x354f20:0x408,_0x5d3a1d:0x317,_0x9c7d01:0x40e,_0x518626:0x413,_0x425a5c:0x1cd,_0x3fad77:0x3ac,_0x40d06e:0x41e,_0x3faa77:0x422,_0x3ec54a:0x9,_0x5a26bc:0x7a,_0x1b0c4f:0x5a,_0x1c47e3:0x10,_0x18466d:0x66,_0x309bb1:0x11a,_0x2967fd:0x5a,_0x266b17:0x139},_0x538b46={_0xba1c6f:0x1ab,_0x7369f0:0x194,_0x206f59:0x11c};function _0x1c5250(_0x5b3eb8,_0x399a68,_0x4eb365,_0x4903c8){return _0x495204(_0x399a68,_0x5b3eb8-_0x538b46._0xba1c6f,_0x4eb365-_0x538b46._0x7369f0,_0x4903c8-_0x538b46._0x206f59);}this[_0x5a6881(0x10e,0x197,0xda,0x178)]=_0x1acc3e['model']??_0x1c5250(_0x31ed2c._0x1fcac7,0x3b2,_0x31ed2c._0x354f20,_0x31ed2c._0x5d3a1d),this[_0x1c5250(_0x31ed2c._0x9c7d01,0x366,0x3fd,0x32f)]=_0x1acc3e[_0x1c5250(0x40e,0x36b,0x488,_0x31ed2c._0x518626)]??modelIdentityFromParts(void 0x0,this[_0x5a6881(0xdc,0x150,0xda,_0x31ed2c._0x425a5c)]),this[_0x1c5250(0x421,_0x31ed2c._0x3fad77,_0x31ed2c._0x40d06e,_0x31ed2c._0x3faa77)]=_0x1acc3e[_0x5a6881(-0x6,0x2b,_0x31ed2c._0x3ec54a,-_0x31ed2c._0x5a26bc)];function _0x5a6881(_0x5b873c,_0x3c743f,_0x485987,_0x17a683){return _0xd0b0c8(_0x5b873c-0x3c,_0x485987- -0x58b,_0x3c743f,_0x17a683-0x1c5);}this[_0x5a6881(0xea,0x93,_0x31ed2c._0x1b0c4f,-0x1b)]=_0x1acc3e[_0x5a6881(-0x1b,_0x31ed2c._0x1c47e3,0x5a,_0x31ed2c._0x18466d)]?structuredClone(_0x1acc3e[_0x5a6881(-0x5d,_0x31ed2c._0x309bb1,_0x31ed2c._0x2967fd,_0x31ed2c._0x266b17)]):void 0x0;}async[_0xd0b0c8(0x557,0x553,0x50d,0x643)](_0x24a616,_0x435132){const _0x4016aa={_0x166f10:0x13e,_0x47488c:0xbe,_0x173d09:0x4b,_0x39c247:0x10,_0x589c33:0x47,_0x4d8738:0x15b,_0x5ecc50:0xeb,_0x2a2281:0x8b,_0x1f9c98:0x99,_0x5be1e2:0xf5,_0x49971c:0x5e,_0x1eb682:0x4a,_0x42af57:0x2a,_0x55eacc:0x78,_0x12c8d4:0x4d,_0x40f864:0x0,_0x5aab80:0xe3,_0x4bc94a:0x129,_0x189bb8:0x1c9,_0x49aabf:0x4c,_0x389d36:0x5b,_0x5d183c:0xc7,_0x140502:0xb9,_0x3f5076:0x81,_0x153d74:0x50,_0x197dba:0x100,_0x2c4da0:0x121,_0x5621fb:0x190,_0x3e2b08:0x107,_0x35fe41:0xc1,_0x4c344f:0xbe,_0x3e19dc:0x1,_0x30e97c:0x1d,_0x319446:0x2a,_0x5c9303:0xa9,_0x230084:0x169,_0x33ba98:0x149,_0x531ea4:0x5a,_0x240731:0x6a},_0x1a00aa={_0x3625dd:0x654,_0x2cb2a9:0xd1},_0x5e273e={_0x1c14f1:0x1ad,_0x1f588d:0x55b,_0x176813:0xab},_0x56f931={...structuredClone(_0x24a616),..._0x24a616['reasoning']===void 0x0&&this[_0x3f1981(0x1c,-0x45,0x8a,0xa8)]!==void 0x0?{'reasoning':structuredClone(this[_0x2de7a0(-_0x4016aa._0x166f10,-0x6f,-_0x4016aa._0x47488c,-_0x4016aa._0x173d09)])}:{}};this[_0x2de7a0(-_0x4016aa._0x39c247,-0xc1,-_0x4016aa._0x589c33,-0xc1)]['push'](_0x56f931);const _0x3fa1a2=findLastMessage(_0x56f931['messages'],'user'),_0x5e5209=getToolResultBlocks(_0x3fa1a2),_0x48efab=_0x3f1981(_0x4016aa._0x4d8738,_0x4016aa._0x5ecc50,_0x4016aa._0x2a2281,_0x4016aa._0x1f9c98)+this['requests'][_0x3f1981(_0x4016aa._0x5be1e2,0xc4,0x2a,-_0x4016aa._0x49971c)];function _0x3f1981(_0x32786c,_0x5e003d,_0x5e2b46,_0x199ab7){return _0xd0b0c8(_0x32786c-_0x5e273e._0x1c14f1,_0x5e2b46- -_0x5e273e._0x1f588d,_0x32786c,_0x199ab7-_0x5e273e._0x176813);}if(_0x5e5209[_0x3f1981(-_0x4016aa._0x1eb682,-0x32,_0x4016aa._0x42af57,-_0x4016aa._0x55eacc)]>0x0)return createMockResponse(_0x48efab,[{'type':_0x2de7a0(-_0x4016aa._0x12c8d4,_0x4016aa._0x40f864,0x16,-0xc1),'text':_0x3f1981(0x14d,_0x4016aa._0x5aab80,_0x4016aa._0x4bc94a,_0x4016aa._0x189bb8)+_0x5e5209[0x0]['content']}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});function _0x2de7a0(_0x3ef48b,_0x5db63a,_0x8c8ebc,_0x3838e2){return _0xd0b0c8(_0x3ef48b-0x1a8,_0x5db63a- -_0x1a00aa._0x3625dd,_0x3ef48b,_0x3838e2-_0x1a00aa._0x2cb2a9);}const _0x371a6d=getTextFromMessage(_0x3fa1a2);if(/list .*files|workspace/i[_0x2de7a0(-0x7,_0x4016aa._0x49aabf,-_0x4016aa._0x389d36,_0x4016aa._0x5d183c)](_0x371a6d)&&hasTool(_0x56f931,_0x2de7a0(-_0x4016aa._0x140502,-0x3,-_0x4016aa._0x3f5076,_0x4016aa._0x153d74)))return createMockResponse(_0x48efab,[{'type':'tool_use','id':_0x3f1981(_0x4016aa._0x197dba,0x6b,_0x4016aa._0x2c4da0,_0x4016aa._0x5621fb)+this[_0x2de7a0(-_0x4016aa._0x3e2b08,-_0x4016aa._0x35fe41,-0x49,-_0x4016aa._0x4c344f)][_0x3f1981(-_0x4016aa._0x3e19dc,_0x4016aa._0x30e97c,_0x4016aa._0x319446,0x8d)],'name':'Bash','input':{'command':'ls\x20-la'}}],_0x3f1981(_0x4016aa._0x5c9303,0x218,0x15e,_0x4016aa._0x230084),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x48efab,[{'type':_0x3f1981(0xc4,_0x4016aa._0x33ba98,0xf9,_0x4016aa._0x531ea4),'text':_0x3f1981(-_0x4016aa._0x240731,0x63,-0x10,-0x6f)+_0x371a6d}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};function _0xd0b0c8(_0x5317d2,_0x162453,_0x5c061a,_0x4f0c84){return _0x5dc3(_0x162453-0x3a2,_0x5c061a);}function _0x495204(_0x1c6af2,_0x50171d,_0x20af58,_0x2df28e){return _0x5dc3(_0x50171d-0x84,_0x1c6af2);}function getFallbackModelLimits(_0x2eb3a1,_0x5c6639){const _0x2401bd={_0x3632f1:0x395,_0x1a07e0:0x407,_0x3a801b:0x3e8,_0x36c5e0:0x386,_0x235417:0x323,_0x2270c0:0x423,_0x25ec6b:0xe3,_0x1edeeb:0x62,_0x4c7a07:0xed},_0x2f30f7={_0x301623:0x1d},_0x3736bd={_0x3b68ce:0x29},_0x23b63a=getModelProfile(_0x2eb3a1,_0x5c6639);function _0x50270a(_0x5349c0,_0x4995b4,_0x4170d4,_0x4dd049){return _0x495204(_0x4995b4,_0x4dd049-0x13a,_0x4170d4-0xdf,_0x4dd049-_0x3736bd._0x3b68ce);}function _0x550269(_0x41d7c9,_0x2b3bee,_0x4a6b3f,_0x508f0b){return _0x495204(_0x2b3bee,_0x508f0b- -0x1fc,_0x4a6b3f-_0x2f30f7._0x301623,_0x508f0b-0xdb);}if(!_0x23b63a?.['contextWindow']&&!_0x23b63a?.[_0x50270a(_0x2401bd._0x3632f1,_0x2401bd._0x1a07e0,_0x2401bd._0x3a801b,0x423)])return void 0x0;return{..._0x23b63a['contextWindow']?{'contextWindow':_0x23b63a[_0x50270a(_0x2401bd._0x36c5e0,0x361,_0x2401bd._0x235417,0x335)]}:{},..._0x23b63a[_0x50270a(0x37e,0x3dc,0x362,_0x2401bd._0x2270c0)]?{'maxOutput':_0x23b63a[_0x550269(_0x2401bd._0x25ec6b,0x12d,_0x2401bd._0x1edeeb,_0x2401bd._0x4c7a07)]}:{}};}function normalizeModelInfo(_0x5213e5,_0x5ccf24){const _0x580b8f={_0x3bff84:0x149,_0x2f561c:0x195,_0x4190e1:0x1e5,_0x34cf58:0x72b,_0x1855b2:0x63c,_0xce5e47:0x656,_0xb9468a:0x253,_0x75f52:0x2ec,_0x5c063d:0x381,_0x1de040:0x2b0,_0x162a62:0x25e,_0x4d8620:0x1bd,_0x2546ff:0x30e,_0x1f4b67:0x49d,_0x57fa77:0x5b9,_0x242959:0x554,_0x4aa003:0x1ef,_0x4c1d47:0x55d,_0x4eefff:0x6fe,_0xc1ad7a:0x63a,_0x2700d0:0x196},_0x71543={_0x5361df:0x3d,_0x2a5611:0x1d0};function _0x2b169e(_0x2d3af4,_0x475ce7,_0x438a15,_0x40e810){return _0xd0b0c8(_0x2d3af4-0x3,_0x40e810- -_0x71543._0x5361df,_0x475ce7,_0x40e810-_0x71543._0x2a5611);}const _0x55322c=typeof _0x5ccf24['id']===_0x80f0e(_0x580b8f._0x3bff84,_0x580b8f._0x2f561c,0x283,_0x580b8f._0x4190e1)?_0x5ccf24['id']:'';function _0x80f0e(_0x367f7b,_0xc5ef57,_0x77e069,_0x57dcc0){return _0xd0b0c8(_0x367f7b-0x131,_0xc5ef57- -0x3a7,_0x57dcc0,_0x57dcc0-0x16e);}const _0x548816=typeof _0x5ccf24[_0x2b169e(0x58e,_0x580b8f._0x34cf58,_0x580b8f._0x1855b2,_0x580b8f._0xce5e47)]===_0x80f0e(0x11b,0x195,0xe4,_0x580b8f._0xb9468a)?_0x5ccf24[_0x80f0e(0x29a,_0x580b8f._0x75f52,0x35b,_0x580b8f._0x5c063d)]:_0x55322c,_0x32e510=normalizeModelLimits(_0x5213e5,_0x5ccf24)??getFallbackModelLimits(_0x5213e5,_0x55322c),_0x5f014a=Array[_0x80f0e(0x1e0,0x275,_0x580b8f._0x1de040,_0x580b8f._0x162a62)](_0x5ccf24[_0x80f0e(0x2a6,0x22f,0x2e4,0x27d)])?_0x5ccf24[_0x80f0e(_0x580b8f._0x4d8620,0x22f,_0x580b8f._0x2546ff,0x1b4)][_0x2b169e(_0x580b8f._0x1f4b67,_0x580b8f._0x57fa77,_0x580b8f._0x242959,0x500)](_0x1aebfe=>typeof _0x1aebfe===_0x80f0e(0x121,0x195,0x27d,0x142)):Array[_0x80f0e(0x28e,0x275,0x30f,_0x580b8f._0x4aa003)](_0x5ccf24['capable_endpoints'])?_0x5ccf24[_0x2b169e(_0x580b8f._0x4c1d47,0x625,_0x580b8f._0x4eefff,_0x580b8f._0xc1ad7a)][_0x80f0e(0x1b6,_0x580b8f._0x2700d0,0x270,0xd9)](_0x57e675=>typeof _0x57e675===_0x80f0e(0xcf,0x195,0x18f,0x12b)):void 0x0;return{'id':_0x55322c,'name':_0x548816,..._0x32e510?{'limits':_0x32e510}:{},..._0x5f014a?{'supportedEndpoints':_0x5f014a}:{}};}function normalizeModelLimits(_0x435296,_0xd75e46){const _0xb60654={_0x4d576a:0xe7,_0xc7ba28:0xa4,_0x3c5c9d:0x1f9,_0x36a8d0:0x1e,_0x134076:0xef,_0x2c7b63:0x11d,_0x69f6d5:0x12c,_0x2c573b:0x106,_0x5ea94c:0x16e,_0x14ae55:0x13d,_0x19c939:0x72,_0x518dab:0x6e,_0x38210a:0x243,_0x13be35:0x193,_0x397576:0x1c9,_0x5424ee:0x292,_0x497482:0x1c0,_0x3921dc:0x157,_0x2e5812:0x117,_0x2ac3d1:0x84,_0x24ce10:0xce,_0x5d111e:0x1c8,_0x5a233d:0x228,_0x3f139a:0x1b6,_0x59022a:0xd2,_0x227ecf:0x7d,_0x1b2a32:0x1a0,_0x56b1fc:0x1a7,_0xafb063:0x5,_0x41ddce:0x1d5,_0x3e063c:0x176,_0x458cfd:0x148,_0x47ed05:0x192,_0x38df2e:0x176,_0x5b4c39:0xdc,_0x2c7410:0x37,_0x46a7b3:0x12e,_0x3ca20f:0x11c,_0x67c7e9:0x158,_0x5cf031:0xa1,_0x272259:0x2ab,_0x57662d:0x1ec,_0x1d4ae3:0x294,_0x3f7f95:0x181,_0x39e92d:0xe7,_0x3560e2:0xbb,_0x2ec349:0xb7},_0x59055a={_0x5472d2:0x165};if(_0xd75e46[_0x30a254(-0xcc,-0x2f,-_0xb60654._0x4d576a,-0x154)]&&typeof _0xd75e46[_0x198d7f(0x25c,0x193,_0xb60654._0xc7ba28,0x1b5)]===_0x198d7f(0x143,_0xb60654._0x3c5c9d,0x1b3,0x208)){const _0x4dff58=_0xd75e46['limits'];if(typeof _0x4dff58[_0x198d7f(-0x6b,0x82,0x7b,-_0xb60654._0x36a8d0)]==='number')return{'contextWindow':_0x4dff58['contextWindow'],...typeof _0x4dff58[_0x30a254(-_0xb60654._0x134076,-0xb2,-_0xb60654._0x2c7b63,-0x117)]===_0x30a254(-0x148,-_0xb60654._0x69f6d5,-0xfa,-0x1cf)?{'maxOutput':_0x4dff58['maxOutput']}:{}};}function _0x30a254(_0x5eae53,_0x1b5258,_0x4d36dd,_0x4da291){return _0x495204(_0x1b5258,_0x5eae53- -0x3d8,_0x4d36dd-0xd2,_0x4da291-0x150);}if(_0x435296[_0x30a254(-_0xb60654._0x2c573b,-_0xb60654._0x5ea94c,-0x127,-_0xb60654._0x14ae55)]()===_0x198d7f(-_0xb60654._0x19c939,_0xb60654._0x518dab,0xf3,-0x59)){const _0x3ea87b=_0xd75e46[_0x30a254(-0x1f6,-_0xb60654._0x38210a,-0x1b3,-0x247)],_0x193568=_0x3ea87b?.[_0x198d7f(0xaa,_0xb60654._0x13be35,0xcb,_0xb60654._0x397576)];if(typeof _0x193568?.[_0x198d7f(_0xb60654._0x5424ee,_0xb60654._0x497482,0x236,0x109)]===_0x198d7f(_0xb60654._0x3921dc,_0xb60654._0x2e5812,_0xb60654._0x2ac3d1,0x7a))return{'contextWindow':_0x193568[_0x198d7f(0x280,_0xb60654._0x497482,0x178,_0xb60654._0x24ce10)],...typeof _0x193568[_0x30a254(-0x1ce,-0x1ea,-_0xb60654._0x5d111e,-_0xb60654._0x5a233d)]===_0x198d7f(0x3c,0x117,0xf8,0x97)?{'maxOutput':_0x193568[_0x30a254(-0x1ce,-0x187,-0x206,-_0xb60654._0x3f139a)]}:{}};}const _0x4b0287=_0xd75e46[_0x30a254(-0x128,-0x163,-_0xb60654._0x59022a,-_0xb60654._0x227ecf)],_0x47542d=_0xd75e46[_0x198d7f(0x1fd,_0xb60654._0x1b2a32,_0xb60654._0x56b1fc,0x12c)],_0x430d2f=typeof _0xd75e46[_0x198d7f(_0xb60654._0xafb063,0xe9,_0xb60654._0x69f6d5,_0xb60654._0x41ddce)]==='number'?_0xd75e46[_0x30a254(-_0xb60654._0x3e063c,-0x261,-0x106,-_0xb60654._0x5a233d)]:typeof _0x4b0287?.['context_length']===_0x30a254(-_0xb60654._0x458cfd,-0xd4,-_0xb60654._0x47ed05,-0x1d0)?_0x4b0287[_0x30a254(-_0xb60654._0x38df2e,-_0xb60654._0x5b4c39,-0x9b,-0x106)]:typeof _0x47542d?.['context_length']===_0x198d7f(_0xb60654._0x2c7410,_0xb60654._0x2e5812,0x1b7,_0xb60654._0x46a7b3)?_0x47542d[_0x30a254(-0x176,-_0xb60654._0x3ca20f,-_0xb60654._0x67c7e9,-_0xb60654._0x5cf031)]:void 0x0;function _0x198d7f(_0x22f056,_0xa123d4,_0x329e03,_0x167952){return _0x495204(_0x167952,_0xa123d4- -0x179,_0x329e03-0x1b6,_0x167952-_0x59055a._0x5472d2);}if(_0x430d2f===void 0x0)return void 0x0;return{'contextWindow':_0x430d2f,...typeof _0x4b0287?.[_0x198d7f(_0xb60654._0x272259,_0xb60654._0x57662d,0x1cc,_0xb60654._0x1d4ae3)]===_0x198d7f(_0xb60654._0x3f7f95,0x117,0x36,_0xb60654._0x39e92d)?{'maxOutput':_0x4b0287[_0x30a254(-0x73,-_0xb60654._0x3560e2,-_0xb60654._0x2ec349,0x78)]}:typeof _0x47542d?.['max_completion_tokens']==='number'?{'maxOutput':_0x47542d['max_completion_tokens']}:{}};}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,getDefaultModel,getFallbackModelLimits,getModelProfile,getOnboardingProviderKeys,getProviderDefaultModel,getProviderDefaultModels,getProviderLabel,getProviderProfile,iterateSseEvents,iterateWebSocketMessages,normalizeModelInfo,normalizeModelLimits,prepareProviderRequest,providerFromSurface,providerSupportsModelFetch,resolveApiCredential,resolveModelProfile,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
|