@nuvin/agent-core 0.3.0-rc.5 → 0.3.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function _0x1e80(_0x5dc44e,_0x15053c){_0x5dc44e=_0x5dc44e-0x199;var _0x4d19bf=_0x4d19();var _0x1e805e=_0x4d19bf[_0x5dc44e];if(_0x1e80['ewzZxn']===undefined){var _0x23ff78=function(_0x5a207b){var _0x3c675e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2852cc='',_0x5e8c8='';for(var _0x409405=0x0,_0x43aa8c,_0x2cfe9a,_0x2691c6=0x0;_0x2cfe9a=_0x5a207b['charAt'](_0x2691c6++);~_0x2cfe9a&&(_0x43aa8c=_0x409405%0x4?_0x43aa8c*0x40+_0x2cfe9a:_0x2cfe9a,_0x409405++%0x4)?_0x2852cc+=String['fromCharCode'](0xff&_0x43aa8c>>(-0x2*_0x409405&0x6)):0x0){_0x2cfe9a=_0x3c675e['indexOf'](_0x2cfe9a);}for(var _0x80b09e=0x0,_0x327795=_0x2852cc['length'];_0x80b09e<_0x327795;_0x80b09e++){_0x5e8c8+='%'+('00'+_0x2852cc['charCodeAt'](_0x80b09e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5e8c8);};_0x1e80['sdmujB']=_0x23ff78,_0x1e80['xbJlfq']={},_0x1e80['ewzZxn']=!![];}var _0xa39070=_0x4d19bf[0x0],_0x42f4af=_0x5dc44e+_0xa39070,_0x5858ff=_0x1e80['xbJlfq'][_0x42f4af];return!_0x5858ff?(_0x1e805e=_0x1e80['sdmujB'](_0x1e805e),_0x1e80['xbJlfq'][_0x42f4af]=_0x1e805e):_0x1e805e=_0x5858ff,_0x1e805e;}function _0x4d19(){var _0xddce62=['mJqWndK1BwrVqNHz','oti3nJy3m1HhvfL5uG','mZG2mduWmZbRBgv2zhy','ntK0ndKYru1dqNPt','mtq5ntuXmK1wBgnvEq','ouj3ugrVzG','y29KzxG','ntm4otq2ofv0AeHNvq','ntG5odC3nwnjv2vjra','nKfju1z3tq','yw50AhjVCgLJ','mKXev01stW'];_0x4d19=function(){return _0xddce62;};return _0x4d19();}(function(_0x53a25b,_0x475566){var _0x403f7a={_0x489adf:0x80,_0x48519b:0x83,_0x147edc:0x82,_0x49cf34:0x571,_0x3436be:0x574,_0x2d15e5:0x7a,_0x3943cf:0x7a,_0x2cf794:0x7d,_0x32db4e:0x79,_0x474613:0x56d,_0x8f9c35:0x56b,_0x510377:0x78},_0x316b30={_0x3b7f08:0x3d2};function _0xb39f6b(_0x514340,_0x4cf0d3,_0x52c088,_0x2cc775){return _0x1e80(_0x4cf0d3-_0x316b30._0x3b7f08,_0x2cc775);}function _0x5d20e4(_0x30154d,_0x1780e5,_0x3166d3,_0x2b7f77){return _0x1e80(_0x3166d3- -0x21d,_0x2b7f77);}var _0x3a2cf3=_0x53a25b();while(!![]){try{var _0x36341c=parseInt(_0x5d20e4(-0x80,-_0x403f7a._0x489adf,-0x7f,-0x7c))/0x1*(parseInt(_0x5d20e4(-0x88,-0x82,-_0x403f7a._0x48519b,-_0x403f7a._0x147edc))/0x2)+-parseInt(_0xb39f6b(0x56e,0x56d,_0x403f7a._0x49cf34,0x56f))/0x3+-parseInt(_0xb39f6b(0x577,_0x403f7a._0x3436be,0x576,0x56e))/0x4+parseInt(_0x5d20e4(-0x7a,-0x76,-_0x403f7a._0x2d15e5,-0x7b))/0x5*(-parseInt(_0x5d20e4(-_0x403f7a._0x3943cf,-_0x403f7a._0x2cf794,-_0x403f7a._0x32db4e,-0x73))/0x6)+-parseInt(_0xb39f6b(0x56f,0x56e,0x568,_0x403f7a._0x474613))/0x7+parseInt(_0xb39f6b(_0x403f7a._0x8f9c35,0x571,0x56b,0x56f))/0x8+parseInt(_0x5d20e4(-_0x403f7a._0x489adf,-_0x403f7a._0x510377,-0x7d,-0x81))/0x9*(parseInt(_0x5d20e4(-0x86,-0x7d,-0x80,-0x7e))/0xa);if(_0x36341c===_0x475566)break;else _0x3a2cf3['push'](_0x3a2cf3['shift']());}catch(_0x964855){_0x3a2cf3['push'](_0x3a2cf3['shift']());}}}(_0x4d19,0xad320));function resolveAnthropicReasoningConfig(_0x2852cc){var _0x1a9de4={_0x372277:0x4b2,_0x1fa8ef:0x3},_0x44772d={_0xeecefe:0x31b},_0x581570={_0x190291:0x19c};function _0x22d4eb(_0x5d323c,_0x435ddd,_0x3f3b6a,_0x5257d8){return _0x1e80(_0x5d323c- -_0x581570._0x190291,_0x3f3b6a);}function _0x41ec0c(_0x459ce5,_0x3019ac,_0x4eb20b,_0xc62f0){return _0x1e80(_0x4eb20b-_0x44772d._0xeecefe,_0x459ce5);}return _0x2852cc?.[_0x41ec0c(_0x1a9de4._0x372277,0x4b6,0x4b4,0x4b3)]?structuredClone(_0x2852cc[_0x22d4eb(-_0x1a9de4._0x1fa8ef,-0x6,-0x1,-0x5)]):void 0x0;}function resolveOpenAiReasoningConfig(_0x5e8c8){var _0x3aa697={_0x27e059:0x217,_0x5e5e4d:0x21c,_0x1fb23f:0x222,_0x155ace:0x21e},_0x28a21b={_0x49d493:0x113},_0x86fe33={_0x15fc82:0x3bd};function _0x2c56fc(_0x2f8ab7,_0x3ffb30,_0x50dfa6,_0x48e5eb){return _0x1e80(_0x3ffb30- -_0x86fe33._0x15fc82,_0x50dfa6);}function _0x513f8e(_0x26dee7,_0x144682,_0x20f9e5,_0x2a7a93){return _0x1e80(_0x144682-_0x28a21b._0x49d493,_0x2a7a93);}if(_0x5e8c8?.[_0x2c56fc(-_0x3aa697._0x27e059,-0x21c,-_0x3aa697._0x5e5e4d,-_0x3aa697._0x1fb23f)])return structuredClone(_0x5e8c8[_0x2c56fc(-0x21f,-0x21c,-_0x3aa697._0x155ace,-0x21b)]);return _0x5e8c8?.['openai']?structuredClone(_0x5e8c8['openai']):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
1
+ (function(_0x45e01a,_0x2d265b){var _0x2c58e0={_0x8538ed:0xce,_0xbe8484:0xd1,_0x30c293:0x2ae,_0xaf47a8:0xd3,_0x368535:0xd5,_0x2e3d4c:0xd2,_0x465a87:0xdd,_0x3dcf10:0xd7,_0x18a3a3:0xdc,_0x37ae4b:0xd9,_0x2f09eb:0x2b6,_0xf5113a:0x2b1,_0x1c2fae:0x2b5,_0x3425a5:0x2b6,_0x5ac6f3:0xd4,_0x11e31e:0xce,_0x249391:0x2a8,_0x2bf97f:0x2a9,_0x2c8ad7:0x2a5},_0x159654={_0x453b87:0x21b};function _0x213e97(_0xfe6274,_0x44f7ba,_0x1313cf,_0x222c72){return _0x3272(_0x222c72- -0x166,_0x1313cf);}function _0x28e7a3(_0x616366,_0x1ee2ca,_0x142751,_0x3535eb){return _0x3272(_0x1ee2ca-_0x159654._0x453b87,_0x142751);}var _0x3f8dd6=_0x45e01a();while(!![]){try{var _0x3ea165=parseInt(_0x213e97(-0xd2,-_0x2c58e0._0x8538ed,-0xd4,-_0x2c58e0._0xbe8484))/0x1+-parseInt(_0x28e7a3(_0x2c58e0._0x30c293,0x2af,0x2ae,0x2ab))/0x2+-parseInt(_0x213e97(-0xcf,-_0x2c58e0._0xaf47a8,-0xd4,-_0x2c58e0._0x368535))/0x3+-parseInt(_0x213e97(-_0x2c58e0._0x2e3d4c,-_0x2c58e0._0x465a87,-_0x2c58e0._0x3dcf10,-0xd7))/0x4+parseInt(_0x213e97(-_0x2c58e0._0x18a3a3,-_0x2c58e0._0x465a87,-0xd4,-_0x2c58e0._0x37ae4b))/0x5+parseInt(_0x28e7a3(_0x2c58e0._0x2f09eb,_0x2c58e0._0xf5113a,_0x2c58e0._0x1c2fae,_0x2c58e0._0x3425a5))/0x6+-parseInt(_0x213e97(-0xd5,-_0x2c58e0._0x5ac6f3,-_0x2c58e0._0x11e31e,-0xd3))/0x7*(-parseInt(_0x28e7a3(_0x2c58e0._0x249391,_0x2c58e0._0x2bf97f,_0x2c58e0._0x2c8ad7,0x2a5))/0x8);if(_0x3ea165===_0x2d265b)break;else _0x3f8dd6['push'](_0x3f8dd6['shift']());}catch(_0x55f8c8){_0x3f8dd6['push'](_0x3f8dd6['shift']());}}}(_0x18e5,0x353c6));function resolveAnthropicReasoningConfig(_0x42f719){var _0x1bc94e={_0x2e4479:0x1c6,_0x2353ec:0x1c1,_0x154c79:0x1c7,_0x28883b:0x1c5},_0x5313e3={_0x1cfe8a:0x329};function _0x49710a(_0x3e49c4,_0x43d217,_0x58c639,_0x51b705){return _0x3272(_0x43d217- -0x252,_0x3e49c4);}function _0x455ac9(_0x13c588,_0x581f9c,_0x681915,_0xd11b51){return _0x3272(_0x581f9c-_0x5313e3._0x1cfe8a,_0x681915);}return _0x42f719?.[_0x49710a(-0x1c4,-_0x1bc94e._0x2e4479,-0x1c9,-_0x1bc94e._0x2353ec)]?structuredClone(_0x42f719[_0x49710a(-0x1c0,-_0x1bc94e._0x2e4479,-_0x1bc94e._0x154c79,-_0x1bc94e._0x28883b)]):void 0x0;}function _0x3272(_0x2451b8,_0x48f2b2){_0x2451b8=_0x2451b8-0x8c;var _0x18e5ef=_0x18e5();var _0x327238=_0x18e5ef[_0x2451b8];if(_0x3272['nBrteQ']===undefined){var _0x5c6b2c=function(_0x508b64){var _0x1d91ba='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x42f719='',_0x53750b='';for(var _0xc848bc=0x0,_0x5dc62b,_0x17d103,_0x22c3ce=0x0;_0x17d103=_0x508b64['charAt'](_0x22c3ce++);~_0x17d103&&(_0x5dc62b=_0xc848bc%0x4?_0x5dc62b*0x40+_0x17d103:_0x17d103,_0xc848bc++%0x4)?_0x42f719+=String['fromCharCode'](0xff&_0x5dc62b>>(-0x2*_0xc848bc&0x6)):0x0){_0x17d103=_0x1d91ba['indexOf'](_0x17d103);}for(var _0x1ec217=0x0,_0x52ac7b=_0x42f719['length'];_0x1ec217<_0x52ac7b;_0x1ec217++){_0x53750b+='%'+('00'+_0x42f719['charCodeAt'](_0x1ec217)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x53750b);};_0x3272['OqMgUJ']=_0x5c6b2c,_0x3272['UthmQT']={},_0x3272['nBrteQ']=!![];}var _0x53f937=_0x18e5ef[0x0],_0x39ca99=_0x2451b8+_0x53f937,_0x5813e1=_0x3272['UthmQT'][_0x39ca99];return!_0x5813e1?(_0x327238=_0x3272['OqMgUJ'](_0x327238),_0x3272['UthmQT'][_0x39ca99]=_0x327238):_0x327238=_0x5813e1,_0x327238;}function _0x18e5(){var _0x2eeeaa=['nJe5ndmYCuTuDevQ','y29KzxG','mZu0nJi3thnqr29b','B3bLBMfP','mtr5txjeA04','odq1mtyWBMLIBwzu','ndiXntm1shDVrLPU','ndC5nZCYrhf6Bxnq','yw50AhjVCgLJ','mtyWmdaXmeP3zNrZrG','mZy4oda4twzICM9q'];_0x18e5=function(){return _0x2eeeaa;};return _0x18e5();}function resolveOpenAiReasoningConfig(_0x53750b){var _0x11d03a={_0x5e260a:0x1c2,_0x49edea:0x198,_0x1a350a:0x1c5,_0x532396:0x1c0,_0xc32d5c:0x1bf},_0x47e372={_0x5b37bd:0x22a};function _0x176163(_0x237a27,_0x1867d7,_0x18fbde,_0x13a856){return _0x3272(_0x13a856- -_0x47e372._0x5b37bd,_0x18fbde);}function _0x176776(_0x1870ef,_0x50eb40,_0x1fd076,_0x468f64){return _0x3272(_0x1fd076- -0x252,_0x468f64);}if(_0x53750b?.['codex'])return structuredClone(_0x53750b[_0x176776(-0x1c3,-0x1bd,-_0x11d03a._0x5e260a,-0x1bd)]);return _0x53750b?.[_0x176163(-0x19d,-0x196,-0x19d,-_0x11d03a._0x49edea)]?structuredClone(_0x53750b[_0x176776(-0x1c3,-_0x11d03a._0x1a350a,-_0x11d03a._0x532396,-_0x11d03a._0xc32d5c)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
@@ -1 +1 @@
1
- (function(_0x24da11,_0x87928e){const _0x114ae8={_0x52f66c:0x368,_0x53f488:0x357,_0x3a7fd8:0x33f,_0x891d05:0x369,_0x5a8146:0x30a,_0x5ba29d:0x31f,_0x3114fb:0x3db,_0x4e0ba4:0x3da,_0x2153f2:0x3c4,_0x511065:0x3bd,_0x5a0bee:0x347,_0x2e14a5:0x32b,_0x4de848:0x3aa,_0x596aa:0x38b,_0x1ec657:0x32f,_0x3056b3:0x331,_0x3b8f29:0x30e,_0x5b50fe:0x3c7,_0x3ea0ce:0x3ae,_0x39bdf3:0x3aa,_0x4cf2ae:0x311,_0x980dc0:0x33f,_0x4f6176:0x329},_0x534c98={_0x3acb04:0x20b};function _0x10c1fd(_0x5c1aaf,_0x18d9a0,_0x484074,_0x285ded){return _0x3b82(_0x285ded-_0x534c98._0x3acb04,_0x484074);}const _0x456e3a=_0x24da11();function _0x675307(_0x3993e1,_0x54e4fa,_0x3b0f5c,_0x228f64){return _0x3b82(_0x228f64-0x274,_0x3b0f5c);}while(!![]){try{const _0x3658db=-parseInt(_0x10c1fd(0x371,_0x114ae8._0x52f66c,0x369,_0x114ae8._0x53f488))/0x1*(-parseInt(_0x10c1fd(0x371,0x33e,0x36b,0x356))/0x2)+-parseInt(_0x10c1fd(0x368,_0x114ae8._0x3a7fd8,_0x114ae8._0x891d05,0x350))/0x3*(-parseInt(_0x10c1fd(0x32a,_0x114ae8._0x5a8146,0x337,_0x114ae8._0x5ba29d))/0x4)+parseInt(_0x675307(_0x114ae8._0x3114fb,_0x114ae8._0x4e0ba4,_0x114ae8._0x2153f2,_0x114ae8._0x511065))/0x5*(-parseInt(_0x10c1fd(0x340,0x30d,_0x114ae8._0x5a0bee,_0x114ae8._0x2e14a5))/0x6)+-parseInt(_0x675307(_0x114ae8._0x4de848,0x36d,_0x114ae8._0x596aa,_0x114ae8._0x596aa))/0x7+-parseInt(_0x10c1fd(0x32e,_0x114ae8._0x1ec657,_0x114ae8._0x3056b3,0x334))/0x8+parseInt(_0x10c1fd(0x333,_0x114ae8._0x3b8f29,0x32e,0x31d))/0x9*(-parseInt(_0x675307(_0x114ae8._0x5b50fe,0x38c,_0x114ae8._0x3ea0ce,_0x114ae8._0x39bdf3))/0xa)+parseInt(_0x10c1fd(0x337,_0x114ae8._0x4cf2ae,_0x114ae8._0x980dc0,_0x114ae8._0x4f6176))/0xb;if(_0x3658db===_0x87928e)break;else _0x456e3a['push'](_0x456e3a['shift']());}catch(_0x1fee26){_0x456e3a['push'](_0x456e3a['shift']());}}}(_0x6ba8,0xdb99c));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x4b5c1f){const _0x5d0767={_0x300874:0x2ad,_0x23166b:0x293,_0x1ace65:0x290,_0x250ac5:0x276,_0x5c17f3:0x27e},_0x3afc3f={_0x437854:0x3be};function _0x562260(_0x412a28,_0x350b33,_0x5b7308,_0x39a0ba){return _0x3b82(_0x39a0ba-0x69,_0x5b7308);}function _0x2688d5(_0x43c8c8,_0x1f4a5b,_0x1663ba,_0x297f2a){return _0x3b82(_0x1663ba- -_0x3afc3f._0x437854,_0x1f4a5b);}return normalizeContent(_0x4b5c1f)[_0x2688d5(-0x277,-_0x5d0767._0x300874,-_0x5d0767._0x23166b,-_0x5d0767._0x1ace65)](_0xc6529d=>_0xc6529d['type']===_0x2688d5(-0x28a,-0x274,-0x290,-0x28e))['map'](_0x364f99=>_0x364f99[_0x2688d5(-0x27b,-0x299,-0x290,-0x275)])[_0x2688d5(-0x27c,-0x277,-_0x5d0767._0x250ac5,-_0x5d0767._0x5c17f3)]('\x0a\x0a');}function _0x3b82(_0x494bea,_0x2fbfb8){_0x494bea=_0x494bea-0x111;const _0x6ba8d9=_0x6ba8();let _0x3b82be=_0x6ba8d9[_0x494bea];if(_0x3b82['zyBnHe']===undefined){var _0x531e7b=function(_0x31cfc8){const _0x195f77='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b5c1f='',_0xc6529d='';for(let _0x364f99=0x0,_0x249916,_0x440532,_0x13d3c9=0x0;_0x440532=_0x31cfc8['charAt'](_0x13d3c9++);~_0x440532&&(_0x249916=_0x364f99%0x4?_0x249916*0x40+_0x440532:_0x440532,_0x364f99++%0x4)?_0x4b5c1f+=String['fromCharCode'](0xff&_0x249916>>(-0x2*_0x364f99&0x6)):0x0){_0x440532=_0x195f77['indexOf'](_0x440532);}for(let _0x28eb58=0x0,_0x31a07d=_0x4b5c1f['length'];_0x28eb58<_0x31a07d;_0x28eb58++){_0xc6529d+='%'+('00'+_0x4b5c1f['charCodeAt'](_0x28eb58)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc6529d);};_0x3b82['MqZZoN']=_0x531e7b,_0x3b82['YGixWz']={},_0x3b82['zyBnHe']=!![];}const _0x267911=_0x6ba8d9[0x0],_0x3550bc=_0x494bea+_0x267911,_0x2597de=_0x3b82['YGixWz'][_0x3550bc];return!_0x2597de?(_0x3b82be=_0x3b82['MqZZoN'](_0x3b82be),_0x3b82['YGixWz'][_0x3550bc]=_0x3b82be):_0x3b82be=_0x2597de,_0x3b82be;}function pushUserContentMessage(_0x249916,_0x440532,_0x13d3c9){const _0x3a00a0={_0x58fdef:0x296},_0x59ea2d={_0x2b96a4:0xdc};function _0x482409(_0xae00e6,_0xc4fa4e,_0x5184f6,_0x274264){return _0x3b82(_0x5184f6-_0x59ea2d._0x2b96a4,_0x274264);}if(_0x13d3c9[_0x1462d9(-0x27e,-0x289,-0x27e,-_0x3a00a0._0x58fdef)]===0x0)return;function _0x1462d9(_0x3ac352,_0x4420af,_0x24f27f,_0x2b4440){return _0x3b82(_0x24f27f- -0x393,_0x4420af);}_0x249916[_0x1462d9(-0x24a,-0x23b,-0x25a,-0x277)]({'type':'message','role':_0x440532,'content':_0x13d3c9});}function hasSerializableToolUse(_0x28eb58){const _0x52f418={_0x270c0f:0x266,_0x31ecb8:0x259,_0x372c4a:0x256,_0x4cb9e0:0x26b,_0x3c5824:0x423,_0xf12cd4:0x40b,_0x5c2d45:0x263,_0x404e06:0x256},_0x3a4222={_0x1d1750:0x2e7};function _0x3aaba2(_0x464fff,_0x48db84,_0x3567fe,_0x8b656b){return _0x3b82(_0x8b656b-_0x3a4222._0x1d1750,_0x3567fe);}function _0x2f8f52(_0x3af44b,_0xc079ff,_0x26e9e5,_0x1f54b6){return _0x3b82(_0x26e9e5-0x141,_0xc079ff);}return _0x28eb58['id']['trim']()[_0x2f8f52(_0x52f418._0x270c0f,_0x52f418._0x31ecb8,_0x52f418._0x372c4a,_0x52f418._0x4cb9e0)]>0x0&&_0x28eb58[_0x3aaba2(0x417,0x40f,_0x52f418._0x3c5824,_0x52f418._0xf12cd4)][_0x2f8f52(0x244,0x245,0x262,_0x52f418._0x5c2d45)]()[_0x2f8f52(0x269,0x265,_0x52f418._0x404e06,0x26b)]>0x0;}function hasSerializableToolResult(_0x31a07d){const _0x2c39dc={_0x47d7b1:0x440,_0xec869c:0x44a};function _0x21c64f(_0x584f5f,_0xcefc46,_0x4f2c64,_0x5dcfc6){return _0x3b82(_0xcefc46-0x31f,_0x5dcfc6);}return _0x31a07d[_0x21c64f(_0x2c39dc._0x47d7b1,0x438,_0x2c39dc._0xec869c,0x41f)]['trim']()['length']>0x0;}function isResponseInputObject(_0x42068a){const _0x271548={_0x5449c3:0x256,_0x118a8b:0x246,_0x2969af:0x237,_0x3cbd84:0x252,_0xb80c84:0x24a,_0x28319c:0x24f,_0x7cef35:0x48b,_0x6188:0x486,_0x43947f:0x46d},_0x18b9e8={_0x50380a:0x34e};if(typeof _0x42068a!==_0x526d08(-0x239,-0x24d,-0x23a,-_0x271548._0x5449c3)||_0x42068a===null||Array[_0x526d08(-_0x271548._0x118a8b,-0x249,-_0x271548._0x2969af,-_0x271548._0x3cbd84)](_0x42068a))return![];function _0x526d08(_0x16715e,_0x158f14,_0x263693,_0x3ebb41){return _0x3b82(_0x263693- -0x37a,_0x158f14);}const _0x23e381=_0x42068a;function _0x28e2e8(_0x30537c,_0x3ddb84,_0xe4ef2d,_0x57fd8b){return _0x3b82(_0x3ddb84-_0x18b9e8._0x50380a,_0xe4ef2d);}return typeof _0x23e381[_0x526d08(-0x22f,-_0x271548._0xb80c84,-0x247,-_0x271548._0x28319c)]===_0x28e2e8(_0x271548._0x7cef35,_0x271548._0x6188,_0x271548._0x43947f,0x491);}function _0x6ba8(){const _0x27ed01=['nMf3rePfEG','mtiWmJm5A3LcEhzf','A2v5CW','Aw5WDxq','mJK4mZvJCNH0vNK','yxnZAxn0yw50','mty4tLPJten2','BgvUz3rO','Aw5WDxrFDgv4Da','ntGXnJu1ovj5DvPHzG','C3rYAwn0','Dg9VBf91C2vFAwq','C3vTBwfYEq','zgf0yq','yxv0BW','Aw5WDxrFAw1Hz2u','ndi5nZGYmJfUAM9QA3e','DxnLCI12AxnPyMXL','mti3mJu0CNvUvLjr','DhjPBq','yMfZzty0','C291CMnL','BMfTzq','Aw1Hz2u','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','C3LZDgvT','CM9Szq','mtiZmtG2otzuCeDrzM8','Dg9VBhm','zMLSDgvY','C3rYDwn0DxjLzf9VDxrWDxq','Bwf4vg9Rzw5Z','Dgv4Da','BwfW','B3v0Chv0x3rLEhq','B3v0Chv0rM9YBwf0','zNvUy3rPB25Fy2fSBa','DhLWzq','BwvZC2fNzxm','C3bSAwnL','mJiZmg5JDKLTvG','DxnLCG','C3rYAw5N','ChvZAa','CMvHC29UAw5N','ChjVDMLKzxjtDgf0zq','BwvKAwfFDhLWzq','zwzMB3j0','o2jHC2u2ncW','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','B2jQzwn0','C3rHDhvZ','y29UDgvUDa','AxnbCNjHEq','Bw9KzwW','nZmWmNbJB3POza','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','ANnVBL9Zy2HLBwe','AM9PBG','odvxuhrMDuq','C2nOzw1H'];_0x6ba8=function(){return _0x27ed01;};return _0x6ba8();}function isImageToolResultBlock(_0x1e1ef5){const _0x4daf0c={_0x4b9309:0x1b3,_0x498189:0x19b,_0x2beb96:0x189,_0x1aec42:0x186,_0x869baa:0x173,_0x2d0e3e:0x170,_0x43ff3e:0x18e,_0x2ee01c:0x190,_0x1f6872:0x19b,_0x3cbaed:0x180,_0x51b3d4:0x16f,_0x239deb:0x1e2,_0x38fe4c:0x1f7,_0x1452a8:0x209,_0x19faa9:0x1e7,_0x49a94a:0x1fb,_0x4341d8:0x16a,_0x1c9f0b:0x182,_0x387c26:0x1f1,_0x532eaf:0x1e2,_0x5d2917:0x200},_0x6ab9d7={_0x390177:0x333};if(typeof _0x1e1ef5!==_0x1f2756(0x18f,_0x4daf0c._0x4b9309,_0x4daf0c._0x498189,0x18c)||_0x1e1ef5===null||Array[_0x1f2756(0x191,0x1b2,0x19e,_0x4daf0c._0x2beb96)](_0x1e1ef5))return![];function _0x1f2756(_0x22aeb8,_0x277fd1,_0x52ca12,_0x54ced9){return _0x3b82(_0x52ca12-0x5b,_0x54ced9);}const _0x18e9c3=_0x1e1ef5;function _0x74be83(_0x40f07e,_0x2ad1a1,_0x4e0ad7,_0x4b8582){return _0x3b82(_0x2ad1a1- -_0x6ab9d7._0x390177,_0x4e0ad7);}return _0x18e9c3['type']===_0x74be83(-0x1fd,-0x20e,-0x217,-0x20b)&&_0x18e9c3[_0x1f2756(_0x4daf0c._0x1aec42,_0x4daf0c._0x869baa,0x17e,0x174)]?.[_0x1f2756(_0x4daf0c._0x2d0e3e,0x19d,_0x4daf0c._0x43ff3e,0x172)]===_0x1f2756(0x163,_0x4daf0c._0x2ee01c,0x17d,_0x4daf0c._0x1f6872)&&typeof _0x18e9c3[_0x1f2756(_0x4daf0c._0x3cbaed,_0x4daf0c._0x51b3d4,0x17e,0x167)][_0x74be83(-_0x4daf0c._0x239deb,-_0x4daf0c._0x38fe4c,-0x1e3,-0x1f9)]===_0x74be83(-_0x4daf0c._0x1452a8,-0x1fb,-_0x4daf0c._0x19faa9,-_0x4daf0c._0x49a94a)&&typeof _0x18e9c3[_0x1f2756(_0x4daf0c._0x4341d8,0x16b,0x17e,_0x4daf0c._0x1c9f0b)][_0x1f2756(0x187,0x164,0x176,0x15e)]===_0x74be83(-_0x4daf0c._0x387c26,-0x1fb,-_0x4daf0c._0x532eaf,-_0x4daf0c._0x5d2917);}function getToolResultText(_0x5c36fb){const _0x59bb2d={_0x5a3250:0x4c8,_0x227002:0x203,_0x564a91:0x218,_0x57b05b:0x20a,_0x1bb80c:0x4c7,_0x76bbba:0x4a5,_0x3e4e91:0x4aa,_0x1196a1:0x4b5,_0x279c5b:0x4ac},_0xcb310f={_0x11c138:0xd8},_0x35341b={_0x2dfd18:0x27,_0x198393:0x43,_0x4b789c:0x20,_0x4474fe:0x11,_0x5e70ee:0x3b4,_0x31cde6:0x380},_0x3b0b45={_0x409b28:0x16e};if(typeof _0x5c36fb===_0x2b44c5(0x4c8,0x4cb,_0x59bb2d._0x5a3250,0x4d4))return _0x5c36fb;const _0x6245ff=_0x5c36fb[_0x378145(0x203,0x1f8,_0x59bb2d._0x227002,0x219)](_0x2cb4c7=>{const _0x3a8559={_0x294619:0x176,_0x29a7c6:0x1e2};function _0x308d49(_0x1b7130,_0x1d3125,_0x13758d,_0x34f903){return _0x378145(_0x1b7130-_0x3b0b45._0x409b28,_0x13758d,_0x1b7130-0x192,_0x34f903-0x198);}function _0x12a182(_0x5af35e,_0x574dc9,_0x2ab2e5,_0x2ce20f){return _0x378145(_0x5af35e-_0x3a8559._0x294619,_0x2ab2e5,_0x574dc9- -0x1f1,_0x2ce20f-_0x3a8559._0x29a7c6);}return typeof _0x2cb4c7===_0x12a182(0xf,_0x35341b._0x2dfd18,_0x35341b._0x198393,_0x35341b._0x4b789c)&&_0x2cb4c7!==null&&_0x2cb4c7[_0x12a182(0x4,0x1a,_0x35341b._0x4474fe,0x39)]===_0x308d49(0x398,_0x35341b._0x5e70ee,_0x35341b._0x31cde6,0x37e);})['map'](_0x5eba6a=>_0x5eba6a[_0x378145(0x21e,0x212,0x206,0x1fd)])[_0x378145(_0x59bb2d._0x564a91,_0x59bb2d._0x57b05b,0x220,0x22b)]('\x0a\x0a')[_0x2b44c5(_0x59bb2d._0x1bb80c,0x4c4,0x4b1,0x4a7)]();function _0x2b44c5(_0x1d002e,_0x1c9cfc,_0x58bfbd,_0x3e403a){return _0x3b82(_0x58bfbd-0x390,_0x1c9cfc);}function _0x378145(_0x545b69,_0x1ec937,_0x413819,_0x1ff544){return _0x3b82(_0x413819-_0xcb310f._0x11c138,_0x1ec937);}return _0x6245ff[_0x2b44c5(0x49d,0x4bf,_0x59bb2d._0x76bbba,_0x59bb2d._0x3e4e91)]>0x0?_0x6245ff:_0x2b44c5(_0x59bb2d._0x1196a1,_0x59bb2d._0x279c5b,0x4b6,0x4ad);}function getToolResultImages(_0x27a5b2){const _0xac2216={_0x5314af:0x1bd,_0x4fc691:0x1bc,_0x30a8e1:0x1d7};function _0x2c1603(_0x215d6d,_0x44357e,_0x1fc39e,_0x511bdf){return _0x3b82(_0x44357e- -0x2ff,_0x511bdf);}return Array[_0x2c1603(-_0xac2216._0x5314af,-_0xac2216._0x4fc691,-_0xac2216._0x30a8e1,-_0xac2216._0x30a8e1)](_0x27a5b2)?_0x27a5b2['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x2100f){const _0x516472={_0x5e2363:0x3a2,_0x5c2e8e:0x3b7},_0x50194b={_0xa6d4b7:0x27d};function _0x384b99(_0x1cd60e,_0x1a16ca,_0xac027c,_0x1325a1){return _0x3b82(_0x1325a1-_0x50194b._0xa6d4b7,_0x1a16ca);}return _0x2100f[_0x384b99(0x3d0,_0x516472._0x5e2363,0x3b4,_0x516472._0x5c2e8e)]?.['visibility']??'user-visible';}function createOpenAiResponsesReasoning(_0xafb12f){const _0x184a4d={_0x19e04f:0x87,_0xf22dce:0x26b,_0x138419:0x254,_0x527bd7:0x26a,_0x55785f:0x266,_0x4ed0f2:0xaf,_0x16a958:0xb5,_0x4c5c6d:0x225,_0x51bc04:0x26a,_0x1026f8:0x26f},_0x47bda0={_0x471a76:0x384},_0x12a0de=resolveOpenAiReasoningConfig(_0xafb12f[_0x5a557d(-0x9f,-0x89,-0x74,-_0x184a4d._0x19e04f)]);if(!_0x12a0de)return{};const _0x197789={},_0x4bab4c=_0xafb12f['reasoning']?.['codex']!==void 0x0;function _0x2a1e9b(_0x2351ca,_0x2c19ac,_0x429eed,_0x38fdc2){return _0x3b82(_0x38fdc2- -_0x47bda0._0x471a76,_0x429eed);}const _0x5b0345=(!_0x4bab4c&&_0x2a1e9b(-0x273,-_0x184a4d._0xf22dce,-_0x184a4d._0x138419,-_0x184a4d._0x527bd7)in _0x12a0de?_0x12a0de['summary']:void 0x0)??(resolveReasoningVisibility(_0xafb12f)===_0x2a1e9b(-0x249,-_0x184a4d._0x55785f,-0x259,-0x265)?_0x5a557d(-_0x184a4d._0x4ed0f2,-0xa4,-_0x184a4d._0x16a958,-0xa5):void 0x0);function _0x5a557d(_0x4112f5,_0x144c6c,_0x17065c,_0x3d9e4d){return _0x3b82(_0x3d9e4d- -0x1c1,_0x4112f5);}return _0x12a0de['effort']&&(_0x197789['effort']=_0x12a0de[_0x2a1e9b(-0x262,-0x247,-0x253,-0x247)]),_0x5b0345&&(_0x197789['summary']=_0x5b0345),{...!_0x4bab4c&&'includeEncryptedContent'in _0x12a0de&&_0x12a0de[_0x2a1e9b(-0x223,-0x225,-0x248,-0x23e)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object[_0x2a1e9b(-0x22b,-_0x184a4d._0x4c5c6d,-0x23e,-0x237)](_0x197789)[_0x2a1e9b(-0x281,-_0x184a4d._0x51bc04,-0x25b,-_0x184a4d._0x1026f8)]>0x0?{'reasoning':_0x197789}:{}};}function pushAssistantProviderState(_0xaaae69,_0x2c376b,_0x297ba2){const _0x1d3e8f={_0x1fd1bc:0x2b1,_0x31ddca:0x2b2,_0x393275:0x4fd,_0x51a268:0x4e7,_0x4789a8:0x501,_0x4ba948:0x4f1,_0x2c264f:0x4d7,_0x1be13b:0x4da,_0x3edffa:0x503,_0x2c27a2:0x514,_0x57d1d0:0x51e,_0x5237b1:0x519,_0x3814dd:0x267,_0x229620:0x282,_0x1a7ed1:0x290,_0x24ef34:0x4e1};if(_0x2c376b['role']!==_0x39c146(-_0x1d3e8f._0x1fd1bc,-0x29f,-_0x1d3e8f._0x31ddca,-0x2cb))return![];if(!isProviderStateCompatible(_0x2c376b,_0x297ba2))return![];const _0x5b138f=_0x2c376b[_0x349225(_0x1d3e8f._0x393275,0x4df,_0x1d3e8f._0x51a268,0x4fa)]?.[_0x349225(_0x1d3e8f._0x4789a8,0x4f7,0x4e3,_0x1d3e8f._0x4ba948)]??[];if(_0x5b138f[_0x349225(_0x1d3e8f._0x2c264f,0x4ea,_0x1d3e8f._0x1be13b,0x4be)]===0x0)return![];for(const _0x825473 of _0x5b138f){if(isResponseInputObject(_0x825473)){const _0x13c3f9=structuredClone(_0x825473);delete _0x13c3f9[_0x349225(_0x1d3e8f._0x3edffa,_0x1d3e8f._0x2c27a2,0x4f0,_0x1d3e8f._0x57d1d0)],_0x13c3f9['type']===_0x349225(0x4fc,0x4f3,_0x1d3e8f._0x5237b1,0x4ea)&&!Array[_0x39c146(-0x26a,-_0x1d3e8f._0x3814dd,-_0x1d3e8f._0x229620,-_0x1d3e8f._0x1a7ed1)](_0x13c3f9['summary'])&&(_0x13c3f9['summary']=[]),_0xaaae69[_0x349225(0x4fb,0x518,_0x1d3e8f._0x24ef34,0x4ff)](_0x13c3f9);}}function _0x349225(_0x14ade8,_0x16d749,_0x252739,_0x535014){return _0x3b82(_0x14ade8-0x3c2,_0x252739);}function _0x39c146(_0x53761b,_0x4cc0d8,_0x1e87fd,_0x11ffe4){return _0x3b82(_0x1e87fd- -0x3c5,_0x53761b);}return!![];}function toOpenAiResponsesRequest(_0x282ac8){const _0x2269d0={_0x1d875f:0x125,_0x3e7d49:0x137,_0x23976a:0x8c,_0x396447:0x11f,_0xfc68f8:0x86,_0x5c885b:0x93,_0x421da3:0x6f,_0x4d12eb:0x143,_0x276518:0x137,_0x522817:0x13e,_0x3bb1d1:0x127,_0x22576e:0x155,_0xf94b01:0x6b,_0xb71306:0x146,_0x4a6562:0x120,_0x1a741b:0x134,_0x231bd4:0x12d,_0x5a28eb:0x12f,_0x1ad128:0x14a,_0x24b230:0x8c,_0x371858:0x64,_0x389f23:0xb6,_0x3e0028:0x9a,_0x44614b:0x135,_0x28ca12:0x144,_0x21c261:0x15c,_0x5660b9:0x12b,_0x1d44fc:0x78,_0x170fe2:0x82,_0x3be702:0x90,_0x48997d:0x7c,_0x53b833:0x88,_0x46f25e:0x58,_0x5ed3fd:0x84,_0x2fa7bc:0xa0,_0x2ff859:0xbf,_0x1ce5d2:0x13f,_0x55ee6d:0x12e,_0x401f5d:0x144,_0xbfb817:0x13b,_0x115d36:0x160,_0x44661c:0x10c,_0x4cbd5f:0x152,_0x4b6924:0x165,_0x3a79d6:0x7d,_0x47d345:0x78,_0x498720:0x74,_0x2f28ca:0x55,_0x45dfda:0x66,_0x3b34ee:0x15a,_0x17b347:0x149,_0x145fba:0x123,_0x262cc7:0x138,_0x7fc849:0x123,_0x1fe0a9:0x122,_0x5a9e3d:0x14d,_0xa9ef12:0x140,_0x49de62:0x143,_0x2b10c2:0x13f,_0x4a2a55:0x14e,_0x52a28d:0x12e,_0x3e6d29:0x124,_0x242dbf:0x12c,_0x36e1c6:0x136,_0x9f99ec:0x140,_0x43c79f:0x14f,_0x4ddf9f:0x70,_0x4373bc:0x8a,_0x36cd92:0x77,_0x3920b0:0x11d,_0x387208:0x111,_0x313584:0x11a,_0x3b5e49:0x90,_0x2ed6f5:0x8f,_0x59c08a:0x93,_0x3d87d5:0x165,_0x538a25:0x158},_0x113167={_0x78e810:0x286,_0x5a1441:0x27a,_0x9dfeef:0x271},_0x2543b1={_0x221612:0x267},_0x2c61ff={_0x46dd84:0xa2};function _0x219e25(_0x52a9b4,_0xdf2a96,_0x1ec274,_0x3a94d9){return _0x3b82(_0xdf2a96- -_0x2c61ff._0x46dd84,_0x1ec274);}const _0x433dba=[];function _0x38f3c2(_0x3c19fc,_0x5e9f40,_0xe9e3c4,_0x12b9c0){return _0x3b82(_0x5e9f40- -_0x2543b1._0x221612,_0xe9e3c4);}for(const _0x38d5cb of _0x282ac8[_0x38f3c2(-_0x2269d0._0x1d875f,-0x133,-0x136,-_0x2269d0._0x3e7d49)]){if(pushAssistantProviderState(_0x433dba,_0x38d5cb,_0x282ac8))continue;const _0x45a3b9=[];for(const _0x528105 of normalizeContent(_0x38d5cb[_0x38f3c2(-0x10b,-_0x2269d0._0x1d875f,-0x134,-0x13c)])){if(_0x528105['type']===_0x219e25(0x82,_0x2269d0._0x23976a,0x7c,0xa4)){_0x45a3b9[_0x38f3c2(-0x139,-0x12e,-_0x2269d0._0x396447,-0x148)](_0x38d5cb[_0x219e25(0x7d,_0x2269d0._0xfc68f8,_0x2269d0._0x5c885b,_0x2269d0._0x421da3)]===_0x38f3c2(-_0x2269d0._0x4d12eb,-0x154,-0x148,-0x16e)?{'type':_0x38f3c2(-0x12b,-_0x2269d0._0x276518,-_0x2269d0._0x522817,-_0x2269d0._0x3bb1d1),'text':_0x528105[_0x38f3c2(-0x14c,-0x139,-0x14e,-_0x2269d0._0x22576e)]}:{'type':_0x219e25(_0x2269d0._0xf94b01,0x74,0x73,0x85),'text':_0x528105[_0x38f3c2(-0x13b,-0x139,-0x140,-_0x2269d0._0xb71306)]});continue;}if(_0x528105[_0x38f3c2(-_0x2269d0._0x4a6562,-_0x2269d0._0x1a741b,-0x132,-_0x2269d0._0x231bd4)]==='image'){_0x45a3b9['push']({'type':_0x38f3c2(-_0x2269d0._0x5a28eb,-_0x2269d0._0x1ad128,-0x14c,-0x136),'image_url':'data:'+_0x528105[_0x219e25(0x93,0x81,_0x2269d0._0x24b230,_0x2269d0._0x371858)][_0x219e25(_0x2269d0._0x389f23,_0x2269d0._0x3e0028,0x7e,0x83)]+_0x38f3c2(-_0x2269d0._0x44614b,-0x129,-0x11a,-0x147)+_0x528105[_0x38f3c2(-0x15b,-_0x2269d0._0x28ca12,-0x15e,-0x127)]['data']});continue;}pushUserContentMessage(_0x433dba,_0x38d5cb[_0x38f3c2(-0x143,-0x13f,-_0x2269d0._0x21c261,-_0x2269d0._0x5660b9)],_0x45a3b9[_0x219e25(0xa4,0x93,0x97,_0x2269d0._0x1d44fc)](0x0));if(_0x528105['type']==='tool_use'){if(!hasSerializableToolUse(_0x528105))continue;_0x433dba['push']({'type':_0x219e25(_0x2269d0._0x170fe2,_0x2269d0._0x3be702,0x94,_0x2269d0._0x48997d),'call_id':_0x528105['id'],'name':_0x528105['name'],'arguments':JSON['stringify'](_0x528105[_0x219e25(_0x2269d0._0x53b833,0x6f,0x5b,_0x2269d0._0x46f25e)]??{})});continue;}if(_0x528105[_0x219e25(_0x2269d0._0x5ed3fd,0x91,0x77,0x77)]==='tool_result'){if(!hasSerializableToolResult(_0x528105))continue;const _0x35a3c8=getToolResultText(_0x528105[_0x219e25(0xbf,_0x2269d0._0x2fa7bc,_0x2269d0._0x2ff859,0x9d)]);_0x433dba[_0x38f3c2(-_0x2269d0._0x1ce5d2,-_0x2269d0._0x55ee6d,-_0x2269d0._0x401f5d,-_0x2269d0._0xbfb817)]({'type':'function_call_output','call_id':_0x528105[_0x38f3c2(-_0x2269d0._0x115d36,-0x14e,-0x169,-0x15b)],'output':_0x35a3c8});const _0x2ac9f4=getToolResultImages(_0x528105[_0x38f3c2(-0x120,-0x125,-0x109,-_0x2269d0._0x44661c)]);_0x2ac9f4[_0x38f3c2(-0x13a,-_0x2269d0._0x4cbd5f,-0x156,-_0x2269d0._0x4b6924)]>0x0&&_0x433dba[_0x219e25(0xb4,0x97,0xac,0x89)]({'type':'message','role':_0x219e25(_0x2269d0._0x3a79d6,0x95,0x9c,0xa9),'content':[{'type':_0x219e25(_0x2269d0._0x47d345,_0x2269d0._0x498720,_0x2269d0._0x2f28ca,_0x2269d0._0x45dfda),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x528105[_0x38f3c2(-_0x2269d0._0x3b34ee,-0x14e,-_0x2269d0._0x17b347,-0x139)]+'.'},..._0x2ac9f4[_0x38f3c2(-_0x2269d0._0x145fba,-_0x2269d0._0x262cc7,-0x122,-0x154)](_0x2bda66=>({'type':_0x38f3c2(-0x159,-0x14a,-0x14a,-0x168),'image_url':'data:'+_0x2bda66[_0x38f3c2(-0x15d,-0x144,-0x140,-0x132)][_0x219e25(0xb5,0x9a,0x86,0xa3)]+_0x219e25(0x8e,0x9c,0x8d,0xb8)+_0x2bda66[_0x219e25(0x9b,0x81,0x6c,0x85)][_0x38f3c2(-0x15f,-0x14c,-0x130,-0x165)]}))]});}}pushUserContentMessage(_0x433dba,_0x38d5cb['role'],_0x45a3b9);}return{...createOpenAiResponsesReasoning(_0x282ac8),'model':_0x282ac8[_0x38f3c2(-0x104,-_0x2269d0._0x7fc849,-_0x2269d0._0x1fe0a9,-0x109)],'instructions':systemToInstructions(_0x282ac8[_0x38f3c2(-_0x2269d0._0x5a9e3d,-_0x2269d0._0xa9ef12,-0x130,-0x158)]),'input':_0x433dba,..._0x282ac8[_0x38f3c2(-0x13e,-0x13a,-_0x2269d0._0x49de62,-0x13a)]!==void 0x0?{'max_output_tokens':_0x282ac8[_0x38f3c2(-_0x2269d0._0x276518,-0x13a,-_0x2269d0._0x2b10c2,-_0x2269d0._0x4a2a55)]}:{},'tools':_0x282ac8[_0x219e25(0x81,0x88,0x77,_0x2269d0._0x3a79d6)][_0x38f3c2(-0x121,-0x138,-_0x2269d0._0x52a28d,-_0x2269d0._0x3e6d29)](_0x2a69e4=>{function _0x4a7cd7(_0x5b88e0,_0x1f6d8d,_0x300700,_0x5b5e3a){return _0x219e25(_0x5b88e0-0x1af,_0x300700- -0x2fc,_0x5b5e3a,_0x5b5e3a-0x7f);}return{'type':'function','name':_0x2a69e4[_0x4a7cd7(-_0x113167._0x78e810,-0x279,-_0x113167._0x5a1441,-_0x113167._0x9dfeef)],'description':_0x2a69e4['description'],'parameters':_0x2a69e4['input_schema']};}),..._0x282ac8['outputFormat']?{'text':{'format':{'type':_0x38f3c2(-0x130,-_0x2269d0._0x4a6562,-_0x2269d0._0x242dbf,-_0x2269d0._0xbfb817),'name':_0x282ac8[_0x38f3c2(-0x140,-_0x2269d0._0x36e1c6,-_0x2269d0._0x9f99ec,-_0x2269d0._0x43c79f)][_0x38f3c2(-0x15e,-_0x2269d0._0x49de62,-0x13f,-0x13d)]??_0x219e25(_0x2269d0._0x4ddf9f,_0x2269d0._0x4373bc,0x82,_0x2269d0._0x36cd92),'schema':_0x282ac8[_0x38f3c2(-0x153,-0x136,-0x144,-_0x2269d0._0x17b347)][_0x38f3c2(-0x107,-_0x2269d0._0x3920b0,-_0x2269d0._0x387208,-_0x2269d0._0x313584)],'strict':_0x282ac8[_0x219e25(_0x2269d0._0x3b5e49,_0x2269d0._0x2ed6f5,_0x2269d0._0x3e0028,_0x2269d0._0x59c08a)][_0x38f3c2(-_0x2269d0._0x3d87d5,-0x14f,-0x16a,-_0x2269d0._0x538a25)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
1
+ (function(_0x1fa981,_0x35efc7){const _0x393587={_0x31e27f:0x262,_0x52e96e:0x282,_0x155c7d:0x274,_0x41cf80:0x27a,_0x858b04:0x263,_0xf78900:0x454,_0x1689a5:0x278,_0x2aaafd:0x288,_0x458763:0x284,_0x59686b:0x45b,_0x2c077d:0x2a4,_0x37d540:0x2a1,_0xba323a:0x268,_0x281be9:0x443,_0x327de1:0x43d,_0x43f033:0x45a,_0x2a3fdc:0x25c,_0x6862db:0x453,_0x503f3b:0x468,_0x1e9980:0x281,_0x2daa6a:0x280,_0x500bde:0x27e},_0x200a73={_0xd76a57:0x1ae},_0x5d90aa=_0x1fa981();function _0x45513f(_0x37f219,_0x2f5b8f,_0x544ac1,_0x49d20b){return _0x228c(_0x544ac1-0x398,_0x2f5b8f);}function _0x4d09d0(_0x21cc58,_0x537935,_0x425c27,_0x26fc9b){return _0x228c(_0x537935-_0x200a73._0xd76a57,_0x21cc58);}while(!![]){try{const _0x377181=-parseInt(_0x4d09d0(_0x393587._0x31e27f,_0x393587._0x52e96e,0x270,_0x393587._0x155c7d))/0x1+parseInt(_0x4d09d0(0x272,_0x393587._0x41cf80,_0x393587._0x858b04,0x26b))/0x2+parseInt(_0x45513f(0x44b,0x438,_0x393587._0xf78900,0x43b))/0x3*(-parseInt(_0x4d09d0(_0x393587._0x1689a5,_0x393587._0x2aaafd,0x279,_0x393587._0x458763))/0x4)+-parseInt(_0x45513f(_0x393587._0x59686b,0x452,0x465,0x480))/0x5*(parseInt(_0x4d09d0(_0x393587._0x2c077d,0x285,_0x393587._0x37d540,_0x393587._0xba323a))/0x6)+-parseInt(_0x4d09d0(0x276,0x27e,0x261,0x281))/0x7+parseInt(_0x45513f(_0x393587._0x281be9,_0x393587._0x327de1,_0x393587._0x43f033,0x476))/0x8*(parseInt(_0x4d09d0(_0x393587._0x2a3fdc,0x266,0x265,0x25e))/0x9)+-parseInt(_0x45513f(0x46f,_0x393587._0x6862db,0x45d,_0x393587._0x503f3b))/0xa*(-parseInt(_0x4d09d0(_0x393587._0x1e9980,_0x393587._0x2daa6a,_0x393587._0x500bde,_0x393587._0x458763))/0xb);if(_0x377181===_0x35efc7)break;else _0x5d90aa['push'](_0x5d90aa['shift']());}catch(_0x3c485f){_0x5d90aa['push'](_0x5d90aa['shift']());}}}(_0x3e70,0x1a530));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x1fe0fe){const _0x2a8116={_0x4ca4c3:0x2c6,_0x2fff47:0x2e6,_0x51b1b6:0x2d8,_0x2040ea:0xd0,_0xd9c391:0xa2,_0x27a032:0xae,_0xa58e:0x2e4,_0x2289de:0x2fa,_0x1b4991:0x2f9},_0x3a2eca={_0x2d3336:0x38f};function _0x12b81e(_0x1bcea6,_0x53a2af,_0x2f85e9,_0x41fedb){return _0x228c(_0x41fedb- -0x7,_0x53a2af);}function _0x5a32ef(_0x185996,_0x21bb31,_0x8a7a66,_0x53aa7f){return _0x228c(_0x185996- -_0x3a2eca._0x2d3336,_0x8a7a66);}return normalizeContent(_0x1fe0fe)[_0x5a32ef(-0x2e7,-_0x2a8116._0x4ca4c3,-_0x2a8116._0x2fff47,-_0x2a8116._0x51b1b6)](_0x5f30ec=>_0x5f30ec[_0x12b81e(0x8b,0xb0,0x9f,0xa2)]===_0x12b81e(0xea,0xe5,0xc3,0xd8))[_0x12b81e(_0x2a8116._0x2040ea,_0x2a8116._0xd9c391,0x8c,_0x2a8116._0x27a032)](_0x5a8700=>_0x5a8700[_0x5a32ef(-0x2b0,-0x2c4,-0x2ac,-0x2b4)])[_0x5a32ef(-0x2e5,-_0x2a8116._0xa58e,-_0x2a8116._0x2289de,-_0x2a8116._0x1b4991)]('\x0a\x0a');}function pushUserContentMessage(_0x1ae3ad,_0x4a93d8,_0x4f9cc4){const _0x3f7b5a={_0x97de7c:0x14c,_0x2f67d8:0x132,_0xf7e89a:0x149,_0x47bf20:0x122,_0x5dec47:0x137,_0x15e71e:0x14b,_0x55ffd1:0xfe},_0x1091f1={_0x5c289a:0x20e};function _0x106425(_0x1bd161,_0x30cfaf,_0x28b6e8,_0x3ab63e){return _0x228c(_0x28b6e8- -_0x1091f1._0x5c289a,_0x30cfaf);}if(_0x4f9cc4[_0x2f0a8b(_0x3f7b5a._0x97de7c,0x14a,_0x3f7b5a._0x2f67d8,0x116)]===0x0)return;function _0x2f0a8b(_0x1727f0,_0x37b6cf,_0x5816c1,_0x1024ed){return _0x228c(_0x5816c1-0x5c,_0x1024ed);}_0x1ae3ad[_0x2f0a8b(_0x3f7b5a._0xf7e89a,_0x3f7b5a._0x47bf20,_0x3f7b5a._0x5dec47,_0x3f7b5a._0x15e71e)]({'type':_0x2f0a8b(0x12e,_0x3f7b5a._0x2f67d8,0x11c,_0x3f7b5a._0x55ffd1),'role':_0x4a93d8,'content':_0x4f9cc4});}function hasSerializableToolUse(_0xcffda0){const _0x3fbbf8={_0x568c9a:0x2fd,_0x5ceb44:0x316,_0x467963:0x311,_0x504217:0x2f3,_0x5c3614:0x2fe,_0x35bda0:0x1fe,_0xa7e17e:0x337,_0x7ea66e:0x305},_0x2c156d={_0x1558dd:0x3c9},_0x286273={_0x312b48:0x140};function _0x43543d(_0x102554,_0x4b48b6,_0x4363b5,_0x280a1a){return _0x228c(_0x102554-_0x286273._0x312b48,_0x4363b5);}function _0xc438db(_0x5dde5b,_0x5e6ff5,_0x5bc5dc,_0x37f670){return _0x228c(_0x5e6ff5- -_0x2c156d._0x1558dd,_0x5bc5dc);}return _0xcffda0['id'][_0xc438db(-_0x3fbbf8._0x568c9a,-0x315,-0x2fb,-_0x3fbbf8._0x5ceb44)]()[_0xc438db(-_0x3fbbf8._0x467963,-_0x3fbbf8._0x504217,-_0x3fbbf8._0x5c3614,-0x2f6)]>0x0&&_0xcffda0[_0x43543d(0x203,0x1e5,_0x3fbbf8._0x35bda0,0x203)][_0xc438db(-0x2fe,-0x315,-_0x3fbbf8._0xa7e17e,-0x2f3)]()[_0xc438db(-0x2e6,-_0x3fbbf8._0x504217,-_0x3fbbf8._0x7ea66e,-0x2dc)]>0x0;}function hasSerializableToolResult(_0x996c9f){const _0xc1d57b={_0xe76411:0x1c1,_0x3b6635:0x22e,_0x1c0cd0:0x213,_0x24cb0f:0x231,_0x427ad9:0x220},_0x1b9482={_0x294976:0xfb},_0x5e9163={_0x319774:0x14a};function _0x3fbfe9(_0x4621d8,_0x562dff,_0x483d02,_0x5ef3ef){return _0x228c(_0x5ef3ef-_0x5e9163._0x319774,_0x483d02);}function _0x139278(_0x74194b,_0x1fcea6,_0xa0ca39,_0x20ae3){return _0x228c(_0x20ae3-_0x1b9482._0x294976,_0x1fcea6);}return _0x996c9f['tool_use_id'][_0x139278(_0xc1d57b._0xe76411,0x1c3,0x1ad,0x1af)]()[_0x3fbfe9(_0xc1d57b._0x3b6635,_0xc1d57b._0x1c0cd0,_0xc1d57b._0x24cb0f,_0xc1d57b._0x427ad9)]>0x0;}function isResponseInputObject(_0x5e8dc0){const _0x13265b={_0x1b8588:0x2b9,_0x5846ab:0x293,_0x15069b:0x2a9,_0x2d0333:0x2a7,_0x395c0c:0x295},_0x3e7e52={_0x1934cb:0x389},_0x557145={_0xb40411:0x1df};function _0xf835a0(_0x25f9c2,_0x51b9b9,_0x19f01d,_0x365284){return _0x228c(_0x51b9b9-_0x557145._0xb40411,_0x365284);}if(typeof _0x5e8dc0!==_0xf835a0(_0x13265b._0x1b8588,0x2a5,_0x13265b._0x5846ab,_0x13265b._0x15069b)||_0x5e8dc0===null||Array[_0xc0b634(-0x2ba,-0x2d5,-0x2a1,-0x2b5)](_0x5e8dc0))return![];function _0xc0b634(_0x4204b4,_0x2c49ec,_0x5efefe,_0x554371){return _0x228c(_0x4204b4- -_0x3e7e52._0x1934cb,_0x2c49ec);}const _0x48faf8=_0x5e8dc0;return typeof _0x48faf8['type']===_0xf835a0(_0x13265b._0x15069b,_0x13265b._0x2d0333,_0x13265b._0x395c0c,0x286);}function _0x228c(_0x4e7468,_0x36f4f2){_0x4e7468=_0x4e7468-0xa1;const _0x3e70a5=_0x3e70();let _0x228c13=_0x3e70a5[_0x4e7468];if(_0x228c['QqEXZd']===undefined){var _0x48edb5=function(_0x2b76e8){const _0x54a8bb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1fe0fe='',_0x5f30ec='';for(let _0x5a8700=0x0,_0x1ae3ad,_0x4a93d8,_0x4f9cc4=0x0;_0x4a93d8=_0x2b76e8['charAt'](_0x4f9cc4++);~_0x4a93d8&&(_0x1ae3ad=_0x5a8700%0x4?_0x1ae3ad*0x40+_0x4a93d8:_0x4a93d8,_0x5a8700++%0x4)?_0x1fe0fe+=String['fromCharCode'](0xff&_0x1ae3ad>>(-0x2*_0x5a8700&0x6)):0x0){_0x4a93d8=_0x54a8bb['indexOf'](_0x4a93d8);}for(let _0xcffda0=0x0,_0x996c9f=_0x1fe0fe['length'];_0xcffda0<_0x996c9f;_0xcffda0++){_0x5f30ec+='%'+('00'+_0x1fe0fe['charCodeAt'](_0xcffda0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5f30ec);};_0x228c['xJXdol']=_0x48edb5,_0x228c['SEHMtZ']={},_0x228c['QqEXZd']=!![];}const _0x38795c=_0x3e70a5[0x0],_0x41da2e=_0x4e7468+_0x38795c,_0x4fe8c0=_0x228c['SEHMtZ'][_0x41da2e];return!_0x4fe8c0?(_0x228c13=_0x228c['xJXdol'](_0x228c13),_0x228c['SEHMtZ'][_0x41da2e]=_0x228c13):_0x228c13=_0x4fe8c0,_0x228c13;}function isImageToolResultBlock(_0x2116b2){const _0x47df76={_0x4cf0a3:0x153,_0x438518:0x16a,_0x58ce72:0x147,_0x4d1a62:0x174,_0x1394c5:0x14f,_0xa83c2a:0x149,_0x11f2d6:0x121,_0x529593:0xfe,_0xb86025:0x115,_0x1b9a9f:0xf8,_0x2ea164:0x163,_0x4a93f8:0x14e,_0x5f1cfb:0x10b,_0x5b1579:0xd5},_0x4a5dec={_0x1e76ae:0x8d},_0x4d26c2={_0x3d243a:0x1bf};function _0x3b1e0a(_0x5b74dd,_0x886e90,_0x185966,_0x3136aa){return _0x228c(_0x886e90- -_0x4d26c2._0x3d243a,_0x5b74dd);}if(typeof _0x2116b2!==_0x5acd47(0x133,0x13f,0x15f,_0x47df76._0x4cf0a3)||_0x2116b2===null||Array[_0x5acd47(_0x47df76._0x438518,_0x47df76._0x58ce72,_0x47df76._0x4d1a62,0x15c)](_0x2116b2))return![];const _0x271450=_0x2116b2;function _0x5acd47(_0x2f2268,_0x572a3b,_0x2e80f9,_0x6a45b7){return _0x228c(_0x6a45b7-_0x4a5dec._0x1e76ae,_0x2e80f9);}return _0x271450['type']==='image'&&_0x271450[_0x5acd47(0x156,_0x47df76._0x1394c5,0x12f,0x14e)]?.[_0x5acd47(_0x47df76._0xa83c2a,0x145,0x11c,0x136)]===_0x5acd47(_0x47df76._0x11f2d6,0x143,0x149,0x13f)&&typeof _0x271450[_0x3b1e0a(-0xea,-_0x47df76._0x529593,-0x11a,-0xed)][_0x3b1e0a(-_0x47df76._0x11f2d6,-0x102,-_0x47df76._0xb86025,-_0x47df76._0x1b9a9f)]==='string'&&typeof _0x271450[_0x5acd47(0x12e,0x12d,_0x47df76._0x2ea164,_0x47df76._0x4a93f8)]['data']===_0x3b1e0a(-_0x47df76._0x5f1cfb,-0xf7,-_0x47df76._0x5b1579,-0x10c);}function getToolResultText(_0x2a8cb4){const _0x5930d0={_0x29fa3f:0x44,_0x423900:0x35,_0x3cd23d:0x55,_0x25a864:0x43,_0x2e60e3:0x3b,_0xd39d79:0x1b0,_0x5be4c4:0x1aa,_0x2841d6:0x18e,_0x14cec8:0x18b,_0x355c32:0x178},_0x154a33={_0x523783:0x10d,_0x402091:0x134,_0x3085e:0x149,_0x2b13ad:0x154,_0x1b2f42:0x120},_0xbfaa8c={_0x278d9d:0xfd};if(typeof _0x2a8cb4===_0x4f8d31(-_0x5930d0._0x29fa3f,-_0x5930d0._0x423900,-0x27,-0x41))return _0x2a8cb4;function _0x4f8d31(_0x211f47,_0x4341a1,_0x4f241f,_0x348d40){return _0x228c(_0x4341a1- -_0xbfaa8c._0x278d9d,_0x348d40);}const _0x37b059=_0x2a8cb4[_0x4f8d31(-0x52,-_0x5930d0._0x3cd23d,-_0x5930d0._0x25a864,-_0x5930d0._0x2e60e3)](_0x1001da=>{const _0x586acb={_0xd92ec7:0x5e9,_0x411386:0x3e},_0x1c5a6f={_0x383efe:0xaa};function _0x502505(_0x518593,_0x75012a,_0x128a6a,_0x4cb2da){return _0x4f8d31(_0x518593-_0x1c5a6f._0x383efe,_0x75012a- -0xf5,_0x128a6a-0x95,_0x518593);}function _0x3c786f(_0x2c3be8,_0x1670ea,_0x1383c2,_0x249fc8){return _0x12475e(_0x1383c2-_0x586acb._0xd92ec7,_0x1670ea-_0x586acb._0x411386,_0x1383c2-0x61,_0x2c3be8);}return typeof _0x1001da===_0x502505(-_0x154a33._0x523783,-0x12c,-0x144,-0x112)&&_0x1001da!==null&&_0x1001da[_0x502505(-_0x154a33._0x402091,-_0x154a33._0x3085e,-_0x154a33._0x2b13ad,-0x162)]===_0x502505(-0x10b,-0x113,-_0x154a33._0x1b2f42,-0x12e);})['map'](_0x24a8bb=>_0x24a8bb['text'])['join']('\x0a\x0a')[_0x12475e(-_0x5930d0._0xd39d79,-0x1b3,-_0x5930d0._0x5be4c4,-_0x5930d0._0x2841d6)]();function _0x12475e(_0x3f1421,_0x4cbc4b,_0x3dd60a,_0x548e4f){return _0x228c(_0x3f1421- -0x264,_0x548e4f);}return _0x37b059[_0x4f8d31(-_0x5930d0._0x25a864,-0x27,-0x17,-0x46)]>0x0?_0x37b059:_0x12475e(-_0x5930d0._0x14cec8,-0x194,-0x179,-_0x5930d0._0x355c32);}function getToolResultImages(_0x5330c7){const _0x45a2c5={_0xa8e17f:0xae,_0x14c9b0:0x87,_0x1c5b98:0x79,_0x7dba81:0x97,_0x13f328:0x76},_0x5ac404={_0x228459:0x2c};function _0x4f7ba6(_0x43095e,_0x18291a,_0xf79dd0,_0x379c76){return _0x228c(_0x43095e- -0x21,_0x18291a);}function _0x49d346(_0xe8cda3,_0x39b658,_0x137cab,_0x2e7811){return _0x228c(_0x39b658- -_0x5ac404._0x228459,_0x2e7811);}return Array[_0x4f7ba6(_0x45a2c5._0xa8e17f,0xa5,0xc4,0xb6)](_0x5330c7)?_0x5330c7[_0x4f7ba6(_0x45a2c5._0x14c9b0,_0x45a2c5._0x1c5b98,_0x45a2c5._0x7dba81,_0x45a2c5._0x13f328)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x237ba0){const _0x5ef6ae={_0x57205e:0x20d,_0x591899:0x22a,_0x56ffea:0x1f3,_0x11e870:0x1d2},_0x41f528={_0x576c77:0x214},_0x46ceed={_0x291f20:0x2ba};function _0x1bbcc5(_0x2eb9cf,_0x1ddb61,_0x1c3d3d,_0x472c8f){return _0x228c(_0x1ddb61- -_0x46ceed._0x291f20,_0x1c3d3d);}function _0x1925dc(_0x3417ef,_0xcbea82,_0x477858,_0x1c3f68){return _0x228c(_0x3417ef-_0x41f528._0x576c77,_0x1c3f68);}return _0x237ba0[_0x1bbcc5(-0x1ee,-_0x5ef6ae._0x57205e,-_0x5ef6ae._0x591899,-0x225)]?.[_0x1bbcc5(-0x1ed,-_0x5ef6ae._0x56ffea,-_0x5ef6ae._0x11e870,-0x211)]??'user-visible';}function createOpenAiResponsesReasoning(_0xef33f0){const _0x2e7d30={_0x126db2:0x24d,_0xeaf461:0x289,_0x8840d9:0x2a5,_0x613d2d:0x29c,_0x2351fa:0x2f3,_0x1c96c7:0x2ea,_0x333ca2:0x32b,_0x339cd1:0x327,_0x176c33:0x2fa,_0x27906c:0x268,_0x2f3ae7:0x24e,_0x3eeb5b:0x2fc,_0x3edfe4:0x2db,_0x53ade9:0x2e8,_0x57bb02:0x287,_0xd2d2ce:0x2a4,_0x36aeb7:0x261,_0x1c30ff:0x26e,_0x31bcb6:0x309,_0x23f031:0x318,_0x2bef14:0x32a,_0x3b38ee:0x330,_0x435df0:0x325,_0x57e062:0x30f,_0xac3a16:0x342},_0x4c5889={_0xd1deb6:0x250},_0x5352cc=resolveOpenAiReasoningConfig(_0xef33f0['reasoning']);if(!_0x5352cc)return{};const _0x1ce71d={};function _0x1bed14(_0x2249a5,_0x58a265,_0x38653f,_0x3e2a8c){return _0x228c(_0x2249a5-_0x4c5889._0xd1deb6,_0x3e2a8c);}const _0x3f4d7f=_0xef33f0[_0x4781bb(0x255,0x251,_0x2e7d30._0x126db2,0x244)]?.[_0x1bed14(0x31e,0x312,0x2ff,0x306)]!==void 0x0,_0x31756a=(!_0x3f4d7f&&_0x4781bb(0x289,0x281,0x28e,0x28f)in _0x5352cc?_0x5352cc[_0x4781bb(_0x2e7d30._0xeaf461,0x289,_0x2e7d30._0x8840d9,_0x2e7d30._0x613d2d)]:void 0x0)??(resolveReasoningVisibility(_0xef33f0)===_0x1bed14(_0x2e7d30._0x2351fa,0x2f0,_0x2e7d30._0x1c96c7,0x2dc)?_0x1bed14(0x319,_0x2e7d30._0x333ca2,_0x2e7d30._0x339cd1,_0x2e7d30._0x176c33):void 0x0);_0x5352cc[_0x4781bb(0x254,_0x2e7d30._0x27906c,_0x2e7d30._0x2f3ae7,0x25a)]&&(_0x1ce71d['effort']=_0x5352cc[_0x1bed14(_0x2e7d30._0x3eeb5b,_0x2e7d30._0x3edfe4,_0x2e7d30._0x53ade9,0x2fd)]);_0x31756a&&(_0x1ce71d[_0x4781bb(0x289,0x28f,_0x2e7d30._0x57bb02,_0x2e7d30._0xd2d2ce)]=_0x31756a);function _0x4781bb(_0x4375fe,_0x23f854,_0x2254cd,_0x1e751f){return _0x228c(_0x4375fe-0x1a8,_0x23f854);}return{...!_0x3f4d7f&&_0x4781bb(_0x2e7d30._0x36aeb7,_0x2e7d30._0x1c30ff,0x255,0x26d)in _0x5352cc&&_0x5352cc[_0x1bed14(_0x2e7d30._0x31bcb6,0x2ef,_0x2e7d30._0x23f031,0x30b)]===![]?{}:{'include':[_0x1bed14(0x321,_0x2e7d30._0x2bef14,_0x2e7d30._0x3b38ee,_0x2e7d30._0x23f031)]},...Object[_0x1bed14(_0x2e7d30._0x435df0,0x312,_0x2e7d30._0x57e062,_0x2e7d30._0xac3a16)](_0x1ce71d)['length']>0x0?{'reasoning':_0x1ce71d}:{}};}function pushAssistantProviderState(_0x4515c2,_0xec7a06,_0x20482d){const _0x229b95={_0x3d8da4:0xad,_0x31c515:0xb8,_0x496c28:0xd1,_0x41bff0:0xf0,_0x39b65c:0xb1,_0x1907b6:0xaf,_0x58703b:0xd9,_0x455e8c:0xf0,_0x8951d:0x10d,_0x1f160f:0x75,_0x4f58fe:0x5c,_0x1a2fbc:0xab,_0x2221a5:0x90,_0xbe7856:0x63,_0x53a22e:0x58,_0x3a7507:0x68,_0x2b108b:0x7a,_0x19612e:0x68,_0x2f74f9:0x58,_0x40c9a6:0x54},_0x4dc569={_0x10c932:0x139};if(_0xec7a06[_0x516c5b(-0x99,-0x93,-_0x229b95._0x3d8da4,-0xa6)]!==_0x2df46f(-_0x229b95._0x31c515,-_0x229b95._0x496c28,-0xe8,-_0x229b95._0x41bff0))return![];if(!isProviderStateCompatible(_0xec7a06,_0x20482d))return![];const _0x355922=_0xec7a06[_0x2df46f(-0x94,-_0x229b95._0x39b65c,-0xbc,-_0x229b95._0x1907b6)]?.[_0x2df46f(-_0x229b95._0x58703b,-_0x229b95._0x455e8c,-0xda,-_0x229b95._0x8951d)]??[];if(_0x355922['length']===0x0)return![];for(const _0x3e0eaf of _0x355922){if(isResponseInputObject(_0x3e0eaf)){const _0x442958=structuredClone(_0x3e0eaf);delete _0x442958[_0x516c5b(-_0x229b95._0x1f160f,-_0x229b95._0x4f58fe,-0x3c,-0x55)],_0x442958[_0x516c5b(-_0x229b95._0x1a2fbc,-_0x229b95._0x2221a5,-0xa3,-0xa1)]==='reasoning'&&!Array[_0x2df46f(-0xc1,-0xc6,-0xad,-0xdb)](_0x442958[_0x516c5b(-_0x229b95._0xbe7856,-_0x229b95._0x53a22e,-_0x229b95._0x3a7507,-_0x229b95._0x2b108b)])&&(_0x442958[_0x516c5b(-_0x229b95._0x19612e,-_0x229b95._0x2f74f9,-0x3a,-_0x229b95._0x40c9a6)]=[]),_0x4515c2['push'](_0x442958);}}function _0x516c5b(_0x21e247,_0x5ef713,_0x123536,_0x10e438){return _0x228c(_0x5ef713- -_0x4dc569._0x10c932,_0x123536);}function _0x2df46f(_0x780878,_0x58ab2d,_0x36ffec,_0x3e1c60){return _0x228c(_0x58ab2d- -0x195,_0x36ffec);}return!![];}function toOpenAiResponsesRequest(_0x2a47b5){const _0x16f98f={_0x2d14ba:0x2e7,_0x34c11a:0x2b7,_0x3dcc0c:0x2c8,_0x3af816:0x2b9,_0x33ef02:0x29a,_0x456d32:0x289,_0x16ddab:0x2b4,_0x2e5a4e:0x2b1,_0x5aac59:0x270,_0x1ce9e7:0x25b,_0x9f3a2f:0x279,_0x45eb2f:0x28f,_0x5c3513:0x283,_0x3ce071:0x273,_0xee96b:0x2ac,_0xa90787:0x2b8,_0x334a88:0x2cd,_0x5eaf28:0x2a9,_0x4cf777:0x295,_0x22e5f7:0x2c2,_0x24eabe:0x2bd,_0x1c9de9:0x2cc,_0x4c38c7:0x2ce,_0xdedbf3:0x2b1,_0x197718:0x2af,_0x226e88:0x248,_0x117365:0x260,_0x4f45eb:0x24d,_0x4f8eec:0x24e,_0x5bc6ce:0x2a9,_0x3c49f1:0x29e,_0x3e3022:0x23f,_0x30fd52:0x24b,_0x2fa2b1:0x270,_0x1ed12b:0x2e5,_0x3e5911:0x26f,_0x15dff1:0x25a,_0x51799c:0x274,_0x556fa7:0x282,_0x199baa:0x290,_0x485ea0:0x2ac,_0x2d60f0:0x2e6,_0x5a68f6:0x307,_0x24ef16:0x2d2,_0xaa84d:0x2a3,_0x2b58c0:0x297,_0x5cf08c:0x279,_0x392a7a:0x261,_0x1d9b0b:0x26b,_0x5b5124:0x2e7,_0x5268bb:0x2e1,_0x4c5702:0x277,_0x7edcab:0x28b,_0x517dc5:0x269,_0x1faf5e:0x2a1,_0x245dad:0x2b3,_0x1f501b:0x2de,_0x32827d:0x2ea,_0x26baae:0x253,_0x12618b:0x257,_0x276a03:0x252,_0xc6e08a:0x246,_0x4d3e09:0x27d,_0x1ded70:0x25e,_0x48c053:0x2c8,_0x2a5ad3:0x2b7,_0x3ec636:0x266,_0x20e505:0x25c,_0x12aca9:0x24f,_0x352650:0x271,_0x296762:0x2c9,_0x402af6:0x2d1,_0x16321b:0x2df,_0x2fac27:0x250,_0x447e00:0x293,_0x155f39:0x2d9,_0x5a9796:0x2d6},_0x137b5e={_0x3e8038:0x238,_0x1d6a65:0x24e,_0x5bc7ab:0x244,_0x128d95:0x273,_0x522a2c:0x17a,_0x4781e1:0x18b,_0x36baa7:0x168},_0x501715={_0x337c9f:0xb5,_0x3f1014:0x28},_0x2cba83={_0x2cf237:0x20b},_0x618f92=[];for(const _0x24e06b of _0x2a47b5[_0x21e01b(0x2ca,_0x16f98f._0x2d14ba,_0x16f98f._0x34c11a,_0x16f98f._0x3dcc0c)]){if(pushAssistantProviderState(_0x618f92,_0x24e06b,_0x2a47b5))continue;const _0x2a6753=[];for(const _0x1b9bd2 of normalizeContent(_0x24e06b[_0x21e01b(0x2be,0x2ab,_0x16f98f._0x3af816,0x2c0)])){if(_0x1b9bd2['type']===_0x3f49a5(_0x16f98f._0x33ef02,0x28f,0x2ae,_0x16f98f._0x456d32)){_0x2a6753['push'](_0x24e06b[_0x21e01b(0x2b1,0x29b,_0x16f98f._0x16ddab,_0x16f98f._0x2e5a4e)]===_0x3f49a5(_0x16f98f._0x5aac59,0x274,0x292,0x271)?{'type':_0x3f49a5(0x261,_0x16f98f._0x1ce9e7,_0x16f98f._0x9f3a2f,0x26e),'text':_0x1b9bd2[_0x3f49a5(0x2a8,_0x16f98f._0x45eb2f,0x2b1,0x287)]}:{'type':'input_text','text':_0x1b9bd2[_0x3f49a5(0x292,_0x16f98f._0x45eb2f,_0x16f98f._0x5c3513,_0x16f98f._0x3ce071)]});continue;}if(_0x1b9bd2[_0x21e01b(_0x16f98f._0x16ddab,_0x16f98f._0xee96b,0x2d3,0x2ab)]===_0x21e01b(0x2af,0x2c5,_0x16f98f._0xa90787,_0x16f98f._0x334a88)){_0x2a6753['push']({'type':_0x21e01b(0x2ac,_0x16f98f._0x5eaf28,0x2b1,_0x16f98f._0x4cf777),'image_url':_0x21e01b(_0x16f98f._0x22e5f7,0x2c1,0x2c9,_0x16f98f._0x24eabe)+_0x1b9bd2[_0x21e01b(_0x16f98f._0x1c9de9,_0x16f98f._0x4c38c7,0x2b9,0x2bf)][_0x21e01b(_0x16f98f._0x3dcc0c,_0x16f98f._0xdedbf3,0x2de,_0x16f98f._0x197718)]+';base64,'+_0x1b9bd2['source'][_0x3f49a5(_0x16f98f._0x226e88,_0x16f98f._0x117365,_0x16f98f._0x4f45eb,_0x16f98f._0x4f8eec)]});continue;}pushUserContentMessage(_0x618f92,_0x24e06b[_0x21e01b(0x2b1,_0x16f98f._0x5bc6ce,0x296,_0x16f98f._0x3c49f1)],_0x2a6753['splice'](0x0));if(_0x1b9bd2[_0x3f49a5(0x25e,0x259,0x239,0x27a)]===_0x3f49a5(_0x16f98f._0x3e3022,0x25f,_0x16f98f._0x30fd52,_0x16f98f._0x2fa2b1)){if(!hasSerializableToolUse(_0x1b9bd2))continue;_0x618f92['push']({'type':_0x21e01b(0x2c5,_0x16f98f._0x1ed12b,0x2cd,0x2e6),'call_id':_0x1b9bd2['id'],'name':_0x1b9bd2['name'],'arguments':JSON[_0x3f49a5(_0x16f98f._0x3e5911,0x27a,_0x16f98f._0x15dff1,_0x16f98f._0x51799c)](_0x1b9bd2[_0x3f49a5(_0x16f98f._0x556fa7,_0x16f98f._0x199baa,0x275,0x280)]??{})});continue;}if(_0x1b9bd2['type']==='tool_result'){if(!hasSerializableToolResult(_0x1b9bd2))continue;const _0x3e1c86=getToolResultText(_0x1b9bd2[_0x21e01b(0x2be,_0x16f98f._0x485ea0,0x2ba,0x2c7)]);_0x618f92[_0x21e01b(_0x16f98f._0x2d60f0,0x2ca,_0x16f98f._0x5a68f6,_0x16f98f._0x24ef16)]({'type':_0x21e01b(0x2b9,0x2ce,0x2cb,0x2d4),'call_id':_0x1b9bd2['tool_use_id'],'output':_0x3e1c86});const _0x29a87c=getToolResultImages(_0x1b9bd2['content']);_0x29a87c[_0x3f49a5(0x274,0x286,0x283,_0x16f98f._0xaa84d)]>0x0&&_0x618f92[_0x3f49a5(_0x16f98f._0x2b58c0,0x28b,_0x16f98f._0x5cf08c,0x29b)]({'type':_0x3f49a5(_0x16f98f._0x392a7a,0x270,_0x16f98f._0x1d9b0b,_0x16f98f._0x15dff1),'role':_0x21e01b(_0x16f98f._0x5b5124,_0x16f98f._0x5268bb,0x2f9,0x2d2),'content':[{'type':'input_text','text':_0x3f49a5(_0x16f98f._0x4c5702,0x288,_0x16f98f._0x7edcab,_0x16f98f._0x517dc5)+_0x1b9bd2[_0x3f49a5(_0x16f98f._0x1faf5e,0x292,_0x16f98f._0x245dad,0x29b)]+'.'},..._0x29a87c['map'](_0x15651d=>({'type':'input_image','image_url':'data:'+_0x15651d['source'][_0x3f49a5(0x259,0x26d,0x24b,0x25e)]+';base64,'+_0x15651d[_0x21e01b(0x2cc,0x2c6,0x2dd,0x2bf)][_0x3f49a5(0x244,0x260,0x25e,0x241)]}))]});}}pushUserContentMessage(_0x618f92,_0x24e06b['role'],_0x2a6753);}function _0x3f49a5(_0x53d2a5,_0x39bd98,_0x611e18,_0x332fcd){return _0x228c(_0x39bd98-0x1b0,_0x332fcd);}function _0x21e01b(_0x75b542,_0x3fd603,_0x545641,_0x12a309){return _0x228c(_0x75b542-_0x2cba83._0x2cf237,_0x3fd603);}return{...createOpenAiResponsesReasoning(_0x2a47b5),'model':_0x2a47b5[_0x21e01b(_0x16f98f._0x1f501b,_0x16f98f._0x32827d,0x2c8,0x2c3)],'instructions':systemToInstructions(_0x2a47b5[_0x3f49a5(_0x16f98f._0x26baae,_0x16f98f._0x12618b,0x248,_0x16f98f._0x276a03)]),'input':_0x618f92,..._0x2a47b5[_0x3f49a5(0x262,_0x16f98f._0x392a7a,0x25a,_0x16f98f._0xc6e08a)]!==void 0x0?{'max_output_tokens':_0x2a47b5[_0x3f49a5(0x25e,0x261,_0x16f98f._0x4d3e09,_0x16f98f._0x1ded70)]}:{},'tools':_0x2a47b5[_0x21e01b(0x2c6,_0x16f98f._0x48c053,0x2cc,_0x16f98f._0x3af816)][_0x21e01b(0x2c0,0x2d7,0x2c1,_0x16f98f._0x2a5ad3)](_0x24aa33=>{const _0x47f135={_0x399386:0xc3};function _0x912d0f(_0x1583c5,_0x280866,_0xc91bd5,_0xf04cc6){return _0x3f49a5(_0x1583c5-_0x501715._0x337c9f,_0x1583c5- -0xd8,_0xc91bd5-_0x501715._0x3f1014,_0xf04cc6);}function _0x2171cc(_0x4ed277,_0x1c7f75,_0x167e27,_0x107300){return _0x21e01b(_0x167e27- -0x521,_0x1c7f75,_0x167e27-0xb1,_0x107300-_0x47f135._0x399386);}return{'type':_0x2171cc(-0x257,-0x22f,-_0x137b5e._0x3e8038,-_0x137b5e._0x1d6a65),'name':_0x24aa33[_0x2171cc(-0x245,-_0x137b5e._0x5bc7ab,-0x253,-_0x137b5e._0x128d95)],'description':_0x24aa33['description'],'parameters':_0x24aa33[_0x912d0f(_0x137b5e._0x522a2c,_0x137b5e._0x4781e1,0x18b,_0x137b5e._0x36baa7)]};}),..._0x2a47b5[_0x3f49a5(0x287,_0x16f98f._0x3ec636,_0x16f98f._0x20e505,0x247)]?{'text':{'format':{'type':'json_schema','name':_0x2a47b5[_0x3f49a5(0x259,0x266,0x285,_0x16f98f._0x12aca9)][_0x3f49a5(_0x16f98f._0x352650,0x273,0x254,0x28b)]??_0x21e01b(_0x16f98f._0x296762,0x2e0,_0x16f98f._0x402af6,_0x16f98f._0x16321b),'schema':_0x2a47b5[_0x3f49a5(_0x16f98f._0x2fac27,_0x16f98f._0x3ec636,0x25b,0x24d)][_0x3f49a5(0x2b4,_0x16f98f._0x447e00,0x281,_0x16f98f._0x199baa)],'strict':_0x2a47b5[_0x21e01b(0x2c1,0x2e0,0x2af,_0x16f98f._0x155f39)][_0x21e01b(_0x16f98f._0x5a9796,0x2d1,0x2c7,0x2e7)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};function _0x3e70(){const _0x320899=['AxnbCNjHEq','otyWodGZA2XPuw11','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','nZDHyM1VCeG','Bw9KzwW','nZuZntHhqwngCLq','A2v5CW','BgvUz3rO','mZa3ntCYBxfcrhDc','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','mtyZnJe2svj1wxLp','ChvZAa','DxnLCG','C3rHDhvZ','zNvUy3rPB24','Dgv4Da','Aw5WDxq','C3vTBwfYEq','Dg9VBf91C2vFAwq','C2nOzw1H','ChjVDMLKzxjtDgf0zq','Aw5WDxrFAw1Hz2u','Aw5WDxrFC2nOzw1H','DxnLCI12AxnPyMXL','Aw1Hz2u','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','CM9Szq','C3LZDgvT','zMLSDgvY','DhLWzq','AM9PBG','B3v0Chv0x3rLEhq','zwzMB3j0','CMvHC29UAw5N','zNvUy3rPB25Fy2fSBf9VDxrWDxq','Dg9VBf91C2u','zgf0yq','Bwf4vg9Rzw5Z','yMfZzty0','y29UDgvUDa','DhjPBq','BwfW','B3v0Chv0rM9YBwf0','zgf0ytO','nZiYn3bRsLrjEG','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','zNvUy3rPB25Fy2fSBa','Dg9VBhm','mtjbExvMtwm','BwvKAwfFDhLWzq','C3rYDwn0DxjLzf9VDxrWDxq','BwvZC2fNzxm','BwvZC2fNzq','C291CMnL','odu2yu5fCNLX','BMfTzq','yxnZAxn0yw50','nJKYmJKWvuzwAMnO','B2jQzwn0','DMLZAwjPBgL0Eq','C3rYAw5N','yxv0BW','C3rYAw5NAwz5','C3rYAwn0','mZiXmZrJreDlr2i','mtbIzeD2teG','y29KzxG'];_0x3e70=function(){return _0x320899;};return _0x3e70();}