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

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(_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
+ function _0x5a1d(_0x515575,_0x1723eb){_0x515575=_0x515575-0xd7;var _0x416ff2=_0x416f();var _0x5a1d9e=_0x416ff2[_0x515575];if(_0x5a1d['lqknBs']===undefined){var _0x4928ee=function(_0x56d797){var _0x26eb38='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5d7153='',_0x3c6f4a='';for(var _0x3d3bbe=0x0,_0x46ee18,_0x3d51bb,_0xbbe893=0x0;_0x3d51bb=_0x56d797['charAt'](_0xbbe893++);~_0x3d51bb&&(_0x46ee18=_0x3d3bbe%0x4?_0x46ee18*0x40+_0x3d51bb:_0x3d51bb,_0x3d3bbe++%0x4)?_0x5d7153+=String['fromCharCode'](0xff&_0x46ee18>>(-0x2*_0x3d3bbe&0x6)):0x0){_0x3d51bb=_0x26eb38['indexOf'](_0x3d51bb);}for(var _0x1bf4ca=0x0,_0x171dcf=_0x5d7153['length'];_0x1bf4ca<_0x171dcf;_0x1bf4ca++){_0x3c6f4a+='%'+('00'+_0x5d7153['charCodeAt'](_0x1bf4ca)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c6f4a);};_0x5a1d['tlaRSq']=_0x4928ee,_0x5a1d['SZDNWN']={},_0x5a1d['lqknBs']=!![];}var _0x256886=_0x416ff2[0x0],_0x1b3f2e=_0x515575+_0x256886,_0x552c76=_0x5a1d['SZDNWN'][_0x1b3f2e];return!_0x552c76?(_0x5a1d9e=_0x5a1d['tlaRSq'](_0x5a1d9e),_0x5a1d['SZDNWN'][_0x1b3f2e]=_0x5a1d9e):_0x5a1d9e=_0x552c76,_0x5a1d9e;}(function(_0x23a774,_0x321e3c){var _0x57d833={_0x3c00b4:0x15a,_0x4ed9a1:0x158,_0x277b17:0x15b,_0x24c13e:0x163,_0x1b93ab:0x294,_0x4e527a:0x28f,_0x7f8b30:0x293,_0x2ab959:0x299,_0x17692b:0x28e,_0x1b1d41:0x153,_0x42e909:0x165,_0x1ff073:0x164,_0x330939:0x159,_0x2c8591:0x154,_0x4e4d9b:0x298,_0x4a8247:0x292,_0x6d3436:0x28f,_0x573d39:0x159,_0x40ff9f:0x156};function _0x8175b7(_0x2fd90c,_0x1e3921,_0x87da0c,_0x444f3d){return _0x5a1d(_0x444f3d-0x7c,_0x2fd90c);}function _0xb6af71(_0x544720,_0x1d26b8,_0x264f09,_0x299357){return _0x5a1d(_0x1d26b8-0x1b2,_0x264f09);}var _0x381200=_0x23a774();while(!![]){try{var _0x338ffe=parseInt(_0x8175b7(_0x57d833._0x3c00b4,0x155,0x154,_0x57d833._0x4ed9a1))/0x1*(parseInt(_0x8175b7(_0x57d833._0x277b17,_0x57d833._0x4ed9a1,_0x57d833._0x24c13e,0x15f))/0x2)+parseInt(_0xb6af71(_0x57d833._0x1b93ab,0x291,_0x57d833._0x4e527a,0x295))/0x3+parseInt(_0xb6af71(0x28f,_0x57d833._0x7f8b30,_0x57d833._0x2ab959,_0x57d833._0x17692b))/0x4*(-parseInt(_0x8175b7(0x156,_0x57d833._0x1b1d41,0x15b,0x15a))/0x5)+-parseInt(_0x8175b7(0x165,_0x57d833._0x42e909,_0x57d833._0x1ff073,0x15e))/0x6+-parseInt(_0xb6af71(0x29d,0x296,0x299,0x295))/0x7+-parseInt(_0x8175b7(_0x57d833._0x330939,0x156,_0x57d833._0x2c8591,0x153))/0x8*(parseInt(_0xb6af71(_0x57d833._0x4e4d9b,_0x57d833._0x4a8247,0x294,0x290))/0x9)+parseInt(_0xb6af71(0x291,0x28d,_0x57d833._0x6d3436,0x292))/0xa*(parseInt(_0x8175b7(0x158,_0x57d833._0x573d39,0x154,_0x57d833._0x40ff9f))/0xb);if(_0x338ffe===_0x321e3c)break;else _0x381200['push'](_0x381200['shift']());}catch(_0x3b38d0){_0x381200['push'](_0x381200['shift']());}}}(_0x416f,0x2135e));function resolveAnthropicReasoningConfig(_0x5d7153){var _0x18ce78={_0x17b333:0x2ad,_0x3ba4a4:0x2ab},_0x569676={_0x2cae7e:0x15d},_0x332b9e={_0x1fcf97:0x1d5};function _0x3a8329(_0x29b9d4,_0x29b1de,_0x8c2ee5,_0x2f02c6){return _0x5a1d(_0x2f02c6-_0x332b9e._0x1fcf97,_0x29b1de);}function _0x37ffbd(_0x3d4867,_0xa737da,_0x187c77,_0x88ea44){return _0x5a1d(_0x187c77- -_0x569676._0x2cae7e,_0x3d4867);}return _0x5d7153?.[_0x3a8329(0x2b1,0x2b4,_0x18ce78._0x17b333,_0x18ce78._0x17b333)]?structuredClone(_0x5d7153[_0x3a8329(_0x18ce78._0x3ba4a4,0x2ad,0x2ad,0x2ad)]):void 0x0;}function resolveOpenAiReasoningConfig(_0x3c6f4a){var _0x273273={_0x39f91a:0x1cd,_0x14057c:0x1d2,_0x49da39:0x1d8,_0x592e42:0x1ce,_0x5278af:0x1cb},_0xbf57e4={_0x35ffcd:0x2aa},_0x16f217={_0x1f56d9:0x12d};function _0x568623(_0x3190d9,_0x14cf6c,_0x55d094,_0x1e76e5){return _0x5a1d(_0x14cf6c-_0x16f217._0x1f56d9,_0x55d094);}function _0x16237a(_0x40cfb4,_0x4bd8cc,_0x567b91,_0xe58a2){return _0x5a1d(_0x40cfb4- -_0xbf57e4._0x35ffcd,_0x567b91);}if(_0x3c6f4a?.[_0x16237a(-_0x273273._0x39f91a,-0x1cc,-_0x273273._0x14057c,-0x1cd)])return structuredClone(_0x3c6f4a['codex']);return _0x3c6f4a?.[_0x16237a(-0x1d1,-0x1d5,-0x1cc,-_0x273273._0x49da39)]?structuredClone(_0x3c6f4a[_0x16237a(-0x1d1,-_0x273273._0x592e42,-_0x273273._0x5278af,-0x1cb)]):void 0x0;}function _0x416f(){var _0x31a025=['mJmZmZm0Cgnmwgjq','mtuYodm4owTAwMDwrq','neXXzxHrta','nJC1nty0sKrOAu5b','mJy1mJm4DwfZDwD4','otGXndCWEuHWEKXh','oeHjCKPUAG','yw50AhjVCgLJ','B3bLBMfP','mZn1Ahj1C3K','mtG0nduZmhrRrwLvBa','mu1QCxzfDG','y29KzxG','mtaYntuWnwn1EwHryG'];_0x416f=function(){return _0x31a025;};return _0x416f();}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
@@ -1 +1 @@
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();}
1
+ (function(_0x1badde,_0x1ef0d8){const _0x1aa572={_0x37ecc7:0xb4,_0x9868a3:0x32,_0x352aa1:0x30,_0x33d86e:0x62,_0x4ced06:0x41,_0x8a2209:0x65,_0x24e321:0x51,_0x440d62:0x60,_0x35dde4:0x39,_0x28b6a1:0x3,_0x5a5d9d:0x22,_0x8195d9:0x39,_0x1bf794:0x25,_0x1d1d77:0x4e,_0x380372:0x57,_0x593a65:0x76,_0x4dbe76:0xa9,_0x3aa963:0x93,_0x2dfb08:0xb1,_0x533ca2:0xa1,_0x511fd4:0xc1,_0x2bde8e:0x36,_0x10ff0e:0x19,_0x2235cb:0xad,_0x363057:0xa7,_0x458a05:0x9e,_0x166376:0x92,_0x1bf4de:0xb0,_0x4564c8:0x91,_0x3b1eed:0xb2,_0x19f14e:0xcc},_0xee0c99={_0x1c923e:0x113};function _0x4d7b92(_0x2b4a4e,_0x1fafa0,_0x1005c5,_0x3987bb){return _0x12ad(_0x2b4a4e- -0x168,_0x1005c5);}const _0x371edc=_0x1badde();function _0x2e3fe4(_0x5c80d9,_0x55a3f2,_0x3f3bb5,_0x114989){return _0x12ad(_0x55a3f2- -_0xee0c99._0x1c923e,_0x3f3bb5);}while(!![]){try{const _0x1995fc=-parseInt(_0x2e3fe4(_0x1aa572._0x37ecc7,0x96,0x7a,0xa7))/0x1+parseInt(_0x4d7b92(_0x1aa572._0x9868a3,_0x1aa572._0x352aa1,0x4c,0x3a))/0x2*(parseInt(_0x4d7b92(_0x1aa572._0x33d86e,0x42,_0x1aa572._0x4ced06,0x73))/0x3)+parseInt(_0x4d7b92(_0x1aa572._0x8a2209,_0x1aa572._0x24e321,_0x1aa572._0x440d62,0x59))/0x4*(-parseInt(_0x4d7b92(0x25,_0x1aa572._0x35dde4,0x14,_0x1aa572._0x28b6a1))/0x5)+-parseInt(_0x4d7b92(0x3a,_0x1aa572._0x352aa1,0x3c,_0x1aa572._0x5a5d9d))/0x6*(parseInt(_0x4d7b92(_0x1aa572._0x8195d9,_0x1aa572._0x1bf794,_0x1aa572._0x1d1d77,_0x1aa572._0x380372))/0x7)+parseInt(_0x2e3fe4(_0x1aa572._0x593a65,0x94,_0x1aa572._0x4dbe76,_0x1aa572._0x3aa963))/0x8*(parseInt(_0x2e3fe4(0xb3,_0x1aa572._0x2dfb08,_0x1aa572._0x533ca2,_0x1aa572._0x511fd4))/0x9)+parseInt(_0x4d7b92(0x24,0x41,_0x1aa572._0x2bde8e,_0x1aa572._0x10ff0e))/0xa*(-parseInt(_0x2e3fe4(0xab,_0x1aa572._0x2235cb,_0x1aa572._0x363057,_0x1aa572._0x458a05))/0xb)+parseInt(_0x2e3fe4(_0x1aa572._0x166376,_0x1aa572._0x1bf4de,0xab,_0x1aa572._0x4564c8))/0xc*(parseInt(_0x2e3fe4(0xd0,_0x1aa572._0x3b1eed,_0x1aa572._0x19f14e,0xd1))/0xd);if(_0x1995fc===_0x1ef0d8)break;else _0x371edc['push'](_0x371edc['shift']());}catch(_0x5e71c5){_0x371edc['push'](_0x371edc['shift']());}}}(_0x3f75,0xa9d79));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function _0x3f75(){const _0x300e34=['o2jHC2u2ncW','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','BwvZC2fNzxm','DxnLCI12AxnPyMXL','Aw1Hz2u','C3rYDwn0DxjLzf9VDxrWDxq','zgf0yq','zwzMB3j0','BMfTzq','Bwf4vg9Rzw5Z','y29KzxG','Aw5WDxq','B3v0Chv0x3rLEhq','C3rYAw5NAwz5','C3LZDgvT','C3vTBwfYEq','AxnbCNjHEq','Dgv4Da','mtm4mZq3uNnytxbh','Aw5WDxrFC2nOzw1H','BgvUz3rO','mtG1mZe5nNvwzfDPAG','mZGXmZmXofPMyLrhvG','mty5q3Dms1fW','yxv0BW','Aw5WDxrFDgv4Da','AM9PBG','zNvUy3rPB25Fy2fSBf9VDxrWDxq','nJLqBhLNrgy','zMLSDgvY','BwvKAwfFDhLWzq','nejfrMjRwG','zNvUy3rPB25Fy2fSBa','nZeWCejMv016','ntq0ntm1mhvUr3L4Eq','Dg9VBhm','Dg9VBf91C2u','DhjPBq','C3rYAw5N','ChjVDMLKzxjtDgf0zq','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','DhLWzq','zgf0ytO','Dg9VBf91C2vFAwq','B2jQzwn0','BwfW','Bw9KzwW','otyYmZzlCwvnzwG','C291CMnL','y29UDgvUDa','ANnVBL9Zy2HLBwe','CMvHC29UAw5N','zgvZy3jPChrPB24','yxnZAxn0yw50','n1DSsxbACW','mZe5mtqXmKTxz1nswq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','A2v5CW','ChvZAa','ohHzrKDHqq','BwvZC2fNzq','mZi4ndmZtKD0ChzA','Aw5WDxrFAw1Hz2u','CM9Szq','C2nOzw1H','B3v0Chv0rM9YBwf0'];_0x3f75=function(){return _0x300e34;};return _0x3f75();}function systemToInstructions(_0x24383f){const _0x392c8b={_0x20484a:0x4ab,_0x2b76d9:0x495,_0x3afb14:0x4a7,_0x41cc47:0x5f,_0x4f710f:0x483},_0x15e0ad={_0x46239b:0x2ca},_0x8c813={_0x5ac498:0x1e6};function _0x3b8777(_0x3c0304,_0x124a6b,_0x31f9eb,_0x5e9d57){return _0x12ad(_0x5e9d57- -_0x8c813._0x5ac498,_0x124a6b);}function _0x148125(_0x31ab3e,_0x230b68,_0x149b4e,_0x5bad49){return _0x12ad(_0x230b68-_0x15e0ad._0x46239b,_0x31ab3e);}return normalizeContent(_0x24383f)[_0x148125(_0x392c8b._0x20484a,_0x392c8b._0x2b76d9,0x493,_0x392c8b._0x3afb14)](_0x54ccdb=>_0x54ccdb[_0x3b8777(-0x5d,-0x32,-0x73,-0x52)]===_0x3b8777(-0xa,-0x1b,-0x36,-0x27))[_0x3b8777(-_0x392c8b._0x41cc47,-0x3d,-0x37,-0x4e)](_0x4b4d81=>_0x4b4d81[_0x3b8777(-0x26,-0x3c,-0x3b,-0x27)])[_0x148125(0x47c,0x492,_0x392c8b._0x4f710f,0x496)]('\x0a\x0a');}function pushUserContentMessage(_0x334f35,_0x1f05b8,_0x5c4b72){const _0xd10409={_0x247dfd:0x2a8,_0x15af6c:0x2aa,_0x2e9d2c:0x2b1,_0xbe777c:0x2c6},_0x1da392={_0x264826:0x2b2};function _0x2a4a74(_0x431f61,_0x457618,_0x48ff4a,_0x238eeb){return _0x12ad(_0x431f61-_0x1da392._0x264826,_0x48ff4a);}function _0x418f64(_0x4562b9,_0x4bcbaf,_0x2300e8,_0x1cb135){return _0x12ad(_0x1cb135-0x107,_0x4562b9);}if(_0x5c4b72[_0x418f64(0x2bc,_0xd10409._0x247dfd,0x2da,0x2c9)]===0x0)return;_0x334f35[_0x418f64(0x28e,0x2ca,_0xd10409._0x15af6c,0x2ad)]({'type':_0x418f64(_0xd10409._0x2e9d2c,_0xd10409._0xbe777c,0x28e,0x2af),'role':_0x1f05b8,'content':_0x5c4b72});}function hasSerializableToolUse(_0x17d609){const _0x3f6663={_0x30fedb:0x1dd,_0x3b85b4:0x517,_0x3316e5:0x501,_0x40bde0:0x1ab,_0x36048d:0x1b2},_0xa459dc={_0x34b2d7:0x36d};function _0x3ceb6e(_0x5abcde,_0x1f1cbb,_0x3b3a36,_0x552dfb){return _0x12ad(_0x3b3a36- -_0xa459dc._0x34b2d7,_0x552dfb);}function _0x22499e(_0x4be677,_0x4ba53b,_0x197d55,_0x12f5fa){return _0x12ad(_0x197d55-0x351,_0x12f5fa);}return _0x17d609['id'][_0x3ceb6e(-0x1e8,-0x1cb,-_0x3f6663._0x30fedb,-0x1e6)]()[_0x22499e(0x4ff,_0x3f6663._0x3b85b4,0x513,0x4f8)]>0x0&&_0x17d609[_0x22499e(_0x3f6663._0x3316e5,0x51f,0x507,0x4f1)]['trim']()[_0x3ceb6e(-_0x3f6663._0x40bde0,-_0x3f6663._0x36048d,-_0x3f6663._0x40bde0,-0x1c5)]>0x0;}function hasSerializableToolResult(_0x2ecc04){const _0x34307b={_0x39ba8e:0x4ec,_0x28107a:0x4fa,_0x268d11:0x24,_0x1df3c6:0x7,_0x57171b:0x2e},_0x3dad22={_0x363950:0x356},_0x10804d={_0x3621d8:0x194};function _0x2f586d(_0x1babb6,_0x2a4935,_0x5da50a,_0x1fadf3){return _0x12ad(_0x1babb6- -_0x10804d._0x3621d8,_0x1fadf3);}function _0x517d6f(_0x1ba4a4,_0x49bb76,_0x5af571,_0x3a5d59){return _0x12ad(_0x1ba4a4-_0x3dad22._0x363950,_0x49bb76);}return _0x2ecc04[_0x517d6f(_0x34307b._0x39ba8e,0x4f5,_0x34307b._0x28107a,0x4fb)][_0x2f586d(-0x4,-_0x34307b._0x268d11,-0x19,_0x34307b._0x1df3c6)]()[_0x2f586d(_0x34307b._0x57171b,0x38,0x17,0x2d)]>0x0;}function isResponseInputObject(_0x454844){const _0x368125={_0x55c68a:0x3ed,_0x2c78a7:0x3e1,_0x2342be:0x3f1},_0x4c14bc={_0x2df793:0x25d};function _0x1c34de(_0x32039f,_0x579ae5,_0x4138c0,_0x5438d7){return _0x12ad(_0x579ae5-_0x4c14bc._0x2df793,_0x5438d7);}if(typeof _0x454844!==_0x1c34de(0x413,0x3f4,_0x368125._0x55c68a,0x3e5)||_0x454844===null||Array['isArray'](_0x454844))return![];function _0x1c8160(_0x342645,_0x2215cb,_0x5deab5,_0x5f08f0){return _0x12ad(_0x5deab5- -0x24c,_0x342645);}const _0x1e6a88=_0x454844;return typeof _0x1e6a88[_0x1c34de(_0x368125._0x2c78a7,_0x368125._0x2342be,0x3e1,0x3de)]==='string';}function isImageToolResultBlock(_0x17840d){const _0x9e567e={_0x144dce:0x268,_0xed1d60:0xea,_0x3e79c6:0xf6,_0x3158c4:0x100,_0x488d84:0x263,_0x39d534:0x27d,_0x1a2e63:0x262,_0x3b160c:0x277,_0x225e5a:0x113,_0x49f281:0x119,_0x56b1f2:0x244,_0x991d45:0x232,_0x3b1b2e:0xff,_0x192b47:0x10f,_0x41799e:0x264,_0x8903b:0x24c,_0x520b3e:0x241,_0xbbe91c:0x227},_0x2afc86={_0x50e90c:0xb0};if(typeof _0x17840d!==_0x3bb714(_0x9e567e._0x144dce,0x247,0x263,0x22e)||_0x17840d===null||Array[_0x271f46(-_0x9e567e._0xed1d60,-_0x9e567e._0x3e79c6,-_0x9e567e._0x3158c4,-0x113)](_0x17840d))return![];function _0x271f46(_0x50a8e9,_0x13caec,_0xed1860,_0x274ef4){return _0x12ad(_0x13caec- -0x2b4,_0x50a8e9);}const _0x534618=_0x17840d;function _0x3bb714(_0x1bedc5,_0x72fdea,_0x3aa604,_0x2cf9a5){return _0x12ad(_0x72fdea-_0x2afc86._0x50e90c,_0x2cf9a5);}return _0x534618[_0x3bb714(0x24d,0x244,_0x9e567e._0x488d84,0x251)]===_0x3bb714(_0x9e567e._0x39d534,_0x9e567e._0x1a2e63,_0x9e567e._0x3b160c,0x24e)&&_0x534618[_0x271f46(-_0x9e567e._0x225e5a,-_0x9e567e._0x49f281,-0x10f,-0x114)]?.[_0x3bb714(0x263,_0x9e567e._0x56b1f2,0x229,_0x9e567e._0x991d45)]==='base64'&&typeof _0x534618[_0x271f46(-0x11e,-0x119,-_0x9e567e._0x3b1b2e,-_0x9e567e._0x192b47)]['media_type']==='string'&&typeof _0x534618['source'][_0x3bb714(0x27a,_0x9e567e._0x41799e,_0x9e567e._0x8903b,0x243)]===_0x3bb714(0x257,_0x9e567e._0x520b3e,0x25f,_0x9e567e._0xbbe91c);}function getToolResultText(_0xc54e17){const _0x3fd581={_0x31130d:0x21a,_0x326367:0x26b,_0x39487c:0x254,_0x51c756:0x26e,_0x172ad1:0x117,_0xbb3424:0x119,_0x516f07:0x11e,_0x95399b:0xf8,_0x8b55ad:0xd0,_0x2fbad1:0xef,_0x20aa3d:0xfa,_0x1d1a76:0x108,_0x4c2756:0xee,_0x2525a2:0x10e,_0x1a06b4:0xee},_0xe738ae={_0x4f70e2:0x540,_0x3a838f:0x541,_0x5bed35:0x57a},_0x48b704={_0x571db0:0x7b},_0x4af939={_0x34abbd:0x2b1};function _0xf36458(_0x4b51fc,_0x10281f,_0x467f3b,_0x2aab0a){return _0x12ad(_0x467f3b- -_0x4af939._0x34abbd,_0x10281f);}if(typeof _0xc54e17===_0x5212b6(0x21a,_0x3fd581._0x31130d,0x229,0x239))return _0xc54e17;const _0x28b18c=_0xc54e17[_0x5212b6(_0x3fd581._0x326367,_0x3fd581._0x39487c,_0x3fd581._0x51c756,0x25a)](_0x4dd3a1=>{const _0x5da5fa={_0x225b08:0x181};function _0x36f651(_0x5bf198,_0x44d193,_0x468b2b,_0xbed2da){return _0xf36458(_0x5bf198-0x4c,_0x468b2b,_0x44d193-_0x5da5fa._0x225b08,_0xbed2da-0x189);}function _0x19608b(_0x3ff1d4,_0xeee995,_0x4d4ddd,_0x107a6c){return _0xf36458(_0x3ff1d4-_0x48b704._0x571db0,_0x4d4ddd,_0x107a6c-0x65b,_0x107a6c-0x4b);}return typeof _0x4dd3a1===_0x19608b(0x52f,0x52d,_0xe738ae._0x4f70e2,_0xe738ae._0x3a838f)&&_0x4dd3a1!==null&&_0x4dd3a1['type']===_0x19608b(0x569,0x560,_0xe738ae._0x5bed35,0x569);})[_0xf36458(-_0x3fd581._0x172ad1,-0x100,-_0x3fd581._0xbb3424,-_0x3fd581._0x516f07)](_0x7194f7=>_0x7194f7[_0x5212b6(0x263,0x248,0x246,0x254)])[_0xf36458(-_0x3fd581._0x95399b,-_0x3fd581._0x8b55ad,-0xe9,-0xf4)]('\x0a\x0a')[_0xf36458(-0x10d,-0x128,-0x121,-0x137)]();function _0x5212b6(_0x275382,_0x53fb60,_0x2e4ffa,_0x45bcb4){return _0x12ad(_0x53fb60-0x89,_0x45bcb4);}return _0x28b18c[_0xf36458(-0xf5,-_0x3fd581._0x8b55ad,-_0x3fd581._0x2fbad1,-_0x3fd581._0x20aa3d)]>0x0?_0x28b18c:_0xf36458(-_0x3fd581._0x1d1a76,-_0x3fd581._0x4c2756,-_0x3fd581._0x2525a2,-_0x3fd581._0x1a06b4);}function getToolResultImages(_0x3f917f){const _0x184a0d={_0x286b5a:0x558,_0x1a31dd:0x554,_0x55a9e8:0x580,_0x18dd8f:0x548,_0x36b7a5:0x56d},_0x52db81={_0x26a76b:0xc7},_0x31ce66={_0x191d93:0x396};function _0x8c0660(_0x59d0fc,_0x25fe51,_0x30e29e,_0x1e7c76){return _0x12ad(_0x30e29e-_0x31ce66._0x191d93,_0x25fe51);}function _0x4f5cf2(_0x90e3b0,_0x27f78b,_0x140ac2,_0x2f65df){return _0x12ad(_0x27f78b- -_0x52db81._0x26a76b,_0x140ac2);}return Array[_0x8c0660(0x55b,_0x184a0d._0x286b5a,_0x184a0d._0x1a31dd,0x56f)](_0x3f917f)?_0x3f917f[_0x8c0660(_0x184a0d._0x55a9e8,_0x184a0d._0x18dd8f,0x561,_0x184a0d._0x36b7a5)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x45ec76){const _0xb7d6ab={_0x241d93:0x381,_0x4effe0:0x36b,_0x2a4bd7:0x366},_0x5382c1={_0xe05e1c:0x1ba};function _0x43f973(_0x4b9933,_0x167650,_0x5cd389,_0x19c5ce){return _0x12ad(_0x167650-_0x5382c1._0xe05e1c,_0x19c5ce);}return _0x45ec76['reasoning']?.['visibility']??_0x43f973(_0xb7d6ab._0x241d93,_0xb7d6ab._0x4effe0,_0xb7d6ab._0x2a4bd7,0x356);}function createOpenAiResponsesReasoning(_0x4b890b){const _0x4fb372={_0x3506d2:0x1a2,_0x5f5d35:0x1cf,_0x23b900:0x1bd,_0x388d6f:0x1d8,_0x9be98b:0xb2,_0x1afe6a:0xca,_0x444c93:0xac,_0x4dafe4:0xb7,_0x458a5f:0xb1,_0x5c8a83:0x1ca,_0x25e4f9:0x9a,_0x503d6d:0xcf,_0x5be511:0x1c1,_0xddc43f:0x1b2,_0x4c47dd:0x1b9,_0x23c09b:0x1ad,_0xcd7864:0x1d7,_0x552f8e:0x1c6,_0x3dfa86:0x197,_0x3be3f7:0x197,_0x4b9cc7:0x18d,_0x3997e7:0xc5,_0x1e6a80:0xa6},_0x380293={_0x236937:0x4},_0x31e711=resolveOpenAiReasoningConfig(_0x4b890b[_0x29ac5c(-0xad,-0xca,-0xdc,-0xd4)]);if(!_0x31e711)return{};function _0x272f83(_0x6b7f25,_0x4b854d,_0x105e3e,_0x59c717){return _0x12ad(_0x105e3e-_0x380293._0x236937,_0x6b7f25);}const _0x35ddbc={},_0x2bd564=_0x4b890b[_0x272f83(0x1be,0x19e,_0x4fb372._0x3506d2,0x1b1)]?.[_0x272f83(_0x4fb372._0x5f5d35,_0x4fb372._0x23b900,0x1bc,_0x4fb372._0x388d6f)]!==void 0x0;function _0x29ac5c(_0x3db39b,_0x9876de,_0x932885,_0x76a52c){return _0x12ad(_0x9876de- -0x268,_0x3db39b);}const _0x11a882=(!_0x2bd564&&_0x29ac5c(-_0x4fb372._0x9be98b,-0xab,-_0x4fb372._0x1afe6a,-0xc2)in _0x31e711?_0x31e711['summary']:void 0x0)??(resolveReasoningVisibility(_0x4b890b)===_0x29ac5c(-_0x4fb372._0x444c93,-_0x4fb372._0x4dafe4,-_0x4fb372._0x458a5f,-0x9f)?_0x272f83(0x1ba,0x1b5,_0x4fb372._0x5c8a83,0x1eb):void 0x0);return _0x31e711[_0x29ac5c(-_0x4fb372._0x25e4f9,-0xb3,-_0x4fb372._0x503d6d,-0xb2)]&&(_0x35ddbc[_0x272f83(_0x4fb372._0x5be511,_0x4fb372._0xddc43f,_0x4fb372._0x4c47dd,_0x4fb372._0x23c09b)]=_0x31e711[_0x272f83(_0x4fb372._0xcd7864,_0x4fb372._0x552f8e,_0x4fb372._0x4c47dd,0x1c4)]),_0x11a882&&(_0x35ddbc['summary']=_0x11a882),{...!_0x2bd564&&'includeEncryptedContent'in _0x31e711&&_0x31e711[_0x272f83(0x1b3,0x1a2,_0x4fb372._0x3dfa86,0x19b)]===![]?{}:{'include':[_0x272f83(0x18b,_0x4fb372._0x3be3f7,0x1a8,_0x4fb372._0x4b9cc7)]},...Object[_0x29ac5c(-0xb0,-0xc3,-0xa4,-_0x4fb372._0x3997e7)](_0x35ddbc)[_0x29ac5c(-0xc7,-_0x4fb372._0x1e6a80,-_0x4fb372._0x4dafe4,-0xb6)]>0x0?{'reasoning':_0x35ddbc}:{}};}function _0x12ad(_0x4f0f6c,_0x627150){_0x4f0f6c=_0x4f0f6c-0x18b;const _0x3f752c=_0x3f75();let _0x12ad74=_0x3f752c[_0x4f0f6c];if(_0x12ad['TByMBy']===undefined){var _0x29e31b=function(_0x16b891){const _0x501c58='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x24383f='',_0x54ccdb='';for(let _0x4b4d81=0x0,_0x334f35,_0x1f05b8,_0x5c4b72=0x0;_0x1f05b8=_0x16b891['charAt'](_0x5c4b72++);~_0x1f05b8&&(_0x334f35=_0x4b4d81%0x4?_0x334f35*0x40+_0x1f05b8:_0x1f05b8,_0x4b4d81++%0x4)?_0x24383f+=String['fromCharCode'](0xff&_0x334f35>>(-0x2*_0x4b4d81&0x6)):0x0){_0x1f05b8=_0x501c58['indexOf'](_0x1f05b8);}for(let _0x17d609=0x0,_0x2ecc04=_0x24383f['length'];_0x17d609<_0x2ecc04;_0x17d609++){_0x54ccdb+='%'+('00'+_0x24383f['charCodeAt'](_0x17d609)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54ccdb);};_0x12ad['fARoVK']=_0x29e31b,_0x12ad['pEKzAV']={},_0x12ad['TByMBy']=!![];}const _0x378438=_0x3f752c[0x0],_0x40917b=_0x4f0f6c+_0x378438,_0x39796f=_0x12ad['pEKzAV'][_0x40917b];return!_0x39796f?(_0x12ad74=_0x12ad['fARoVK'](_0x12ad74),_0x12ad['pEKzAV'][_0x40917b]=_0x12ad74):_0x12ad74=_0x39796f,_0x12ad74;}function pushAssistantProviderState(_0x5d345f,_0x2e08af,_0x4dc744){const _0x46f2f5={_0x45364b:0x193,_0x285fca:0x17b,_0x232dd9:0x169,_0x32477f:0x14a,_0x2d377e:0x17e,_0x4c4900:0x15b,_0x4ec414:0x156,_0xd22234:0x177,_0x42f8e7:0x18e,_0x1dbc96:0x171,_0x9a043a:0xe6,_0x3e187b:0xee,_0x470d59:0xce,_0x44b3b0:0xb6,_0x2f514c:0xdf,_0xb181b5:0xce,_0xcef0e2:0x186,_0x2d767a:0x181,_0x5e501a:0xea,_0x2dc9c1:0xf2};if(_0x2e08af[_0x420677(0x174,_0x46f2f5._0x45364b,_0x46f2f5._0x285fca,0x18c)]!==_0x420677(_0x46f2f5._0x232dd9,0x16d,_0x46f2f5._0x32477f,_0x46f2f5._0x2d377e))return![];if(!isProviderStateCompatible(_0x2e08af,_0x4dc744))return![];const _0x5f5ceb=_0x2e08af[_0x420677(_0x46f2f5._0x4c4900,0x148,_0x46f2f5._0x4ec414,0x169)]?.['openaiResponsesOutput']??[];function _0x45faa4(_0xb1c742,_0x59eb7e,_0x54e1b4,_0x83f9b5){return _0x12ad(_0x54e1b4- -0x28c,_0x83f9b5);}if(_0x5f5ceb[_0x420677(0x18b,_0x46f2f5._0xd22234,0x19f,_0x46f2f5._0x42f8e7)]===0x0)return![];function _0x420677(_0x33dee2,_0x139ca1,_0xf2526a,_0x3dcd38){return _0x12ad(_0x33dee2- -0x37,_0xf2526a);}for(const _0x5df81a of _0x5f5ceb){if(isResponseInputObject(_0x5df81a)){const _0x13eeda=structuredClone(_0x5df81a);delete _0x13eeda['status'],_0x13eeda[_0x420677(0x15d,0x141,0x153,_0x46f2f5._0x1dbc96)]===_0x45faa4(-_0x46f2f5._0x9a043a,-0xcd,-_0x46f2f5._0x3e187b,-_0x46f2f5._0x470d59)&&!Array[_0x45faa4(-_0x46f2f5._0x44b3b0,-_0x46f2f5._0x2f514c,-_0x46f2f5._0xb181b5,-0xba)](_0x13eeda['summary'])&&(_0x13eeda[_0x420677(_0x46f2f5._0xcef0e2,_0x46f2f5._0x2d767a,0x16c,0x187)]=[]),_0x5d345f[_0x45faa4(-0x106,-_0x46f2f5._0x5e501a,-0xe6,-_0x46f2f5._0x2dc9c1)](_0x13eeda);}}return!![];}function toOpenAiResponsesRequest(_0xf7e6a4){const _0x431181={_0xe47e20:0x1f1,_0x7e616b:0x1ef,_0x27d19c:0x1fc,_0x11e2d9:0x1e6,_0x5b1a8a:0x1f6,_0x86c89e:0x208,_0xf2a31a:0x1f2,_0x411386:0x1f3,_0x583607:0x1ec,_0x496e0d:0x1e0,_0x59002e:0x125,_0x35abb7:0x128,_0x2f7133:0x12b,_0xf50aa9:0x1d9,_0x4c6a85:0x1c4,_0x294ffa:0x14c,_0x1883c9:0x14e,_0x1030d6:0x165,_0x1fc354:0x153,_0x2ac938:0x14d,_0x8792b1:0x204,_0x453f17:0x220,_0x45c69d:0x210,_0x399bc8:0x211,_0x3403b9:0x1f4,_0x58db82:0x151,_0x25b1da:0x201,_0x340eec:0x205,_0x363bc8:0x13c,_0x16a0be:0x133,_0x2fcfe2:0x205,_0x25d9ea:0x1d2,_0x10d766:0x1f8,_0x32b85b:0x1f0,_0x4afc0d:0x110,_0x3fb396:0xf9,_0x7c7a0a:0x131,_0x544420:0x1f0,_0x5b485c:0x1df,_0x5363c1:0x1c0,_0x275559:0x119,_0x3e81c7:0x1fc,_0x3be04f:0x20c,_0x291229:0x1f2,_0x369bca:0x1f5,_0x5c7846:0x1de,_0x518a43:0x20a,_0x4c8d7f:0x16c,_0x5f3f10:0x219,_0x1b9e84:0x134,_0x4039ab:0x11d,_0x34c374:0x1f2,_0x1354d9:0x1e4,_0x58373c:0x168,_0x499b0a:0x162,_0x57795b:0x1e9,_0x223884:0x1d8,_0x25ea55:0x1ef,_0xfa4d17:0x209,_0x3eaf23:0x1ee,_0x4364d7:0x130,_0x58ff09:0x13f,_0x5a2180:0x13f,_0x26c7ba:0x10c,_0x4d07a1:0x1dc,_0x2f7167:0x1ef,_0x87e0a3:0x1db,_0x2e45cb:0x13b,_0x27ede6:0x120,_0x3aa310:0x123,_0xc78b57:0x200,_0x12e925:0x122,_0x5b138b:0x138,_0x1589ff:0x131,_0x4cc990:0x1eb,_0x374b8d:0x209,_0x1c557e:0x1f8,_0x255fb2:0x1c5,_0xa60965:0x1e7,_0x1dd5b0:0x131,_0x554365:0x12f,_0x1fa3bb:0x113},_0x3717d4={_0x133419:0x449,_0x45f848:0x453,_0x3c9ceb:0x2a9,_0x12709b:0x45d,_0x32f5e8:0x454},_0x38b5f0={_0x50b89c:0x101};function _0x566e7e(_0x32d486,_0xaba2ba,_0x3951cd,_0x2b8161){return _0x12ad(_0x32d486- -0x7b,_0xaba2ba);}const _0x38b54a=[];function _0x3b8f80(_0x18dd56,_0x488a24,_0x517c09,_0xcb3c6f){return _0x12ad(_0x18dd56- -0x398,_0x488a24);}for(const _0x53cc1b of _0xf7e6a4[_0x3b8f80(-0x1e8,-_0x431181._0xe47e20,-_0x431181._0x7e616b,-0x1f0)]){if(pushAssistantProviderState(_0x38b54a,_0x53cc1b,_0xf7e6a4))continue;const _0x204038=[];for(const _0x299ef9 of normalizeContent(_0x53cc1b[_0x3b8f80(-_0x431181._0x27d19c,-_0x431181._0x11e2d9,-0x1e7,-_0x431181._0x5b1a8a)])){if(_0x299ef9[_0x3b8f80(-0x204,-_0x431181._0x86c89e,-0x1f9,-0x21f)]===_0x3b8f80(-0x1d9,-_0x431181._0xf2a31a,-_0x431181._0x411386,-0x1ea)){_0x204038[_0x3b8f80(-_0x431181._0xf2a31a,-0x20e,-0x1d4,-_0x431181._0x583607)](_0x53cc1b[_0x3b8f80(-0x1ed,-0x1f9,-0x1f1,-_0x431181._0x496e0d)]===_0x566e7e(_0x431181._0x59002e,0x10c,0x138,0x11b)?{'type':_0x566e7e(0x13f,_0x431181._0x35abb7,0x14d,_0x431181._0x2f7133),'text':_0x299ef9[_0x3b8f80(-_0x431181._0xf50aa9,-_0x431181._0x4c6a85,-0x1e9,-0x1d0)]}:{'type':_0x566e7e(_0x431181._0x294ffa,0x144,0x14d,_0x431181._0x1883c9),'text':_0x299ef9[_0x566e7e(0x144,_0x431181._0x1030d6,_0x431181._0x1fc354,_0x431181._0x2ac938)]});continue;}if(_0x299ef9[_0x3b8f80(-_0x431181._0x8792b1,-_0x431181._0x453f17,-_0x431181._0x45c69d,-0x212)]==='image'){_0x204038[_0x3b8f80(-_0x431181._0xf2a31a,-0x1da,-0x1d6,-0x1ec)]({'type':'input_image','image_url':_0x3b8f80(-0x203,-_0x431181._0x399bc8,-0x212,-_0x431181._0x3403b9)+_0x299ef9['source'][_0x566e7e(_0x431181._0x58db82,0x13b,0x134,0x150)]+_0x3b8f80(-0x1ea,-_0x431181._0x25b1da,-0x1e5,-_0x431181._0x340eec)+_0x299ef9[_0x566e7e(0x120,_0x431181._0x363bc8,_0x431181._0x16a0be,0x107)][_0x3b8f80(-0x1e4,-0x1ed,-0x1d3,-_0x431181._0x2fcfe2)]});continue;}pushUserContentMessage(_0x38b54a,_0x53cc1b[_0x3b8f80(-0x1ed,-_0x431181._0x25d9ea,-0x1ef,-_0x431181._0x10d766)],_0x204038['splice'](0x0));if(_0x299ef9['type']===_0x3b8f80(-0x209,-0x227,-0x21a,-_0x431181._0x32b85b)){if(!hasSerializableToolUse(_0x299ef9))continue;_0x38b54a['push']({'type':_0x566e7e(_0x431181._0x4afc0d,_0x431181._0x3fb396,_0x431181._0x7c7a0a,0xf1),'call_id':_0x299ef9['id'],'name':_0x299ef9['name'],'arguments':JSON[_0x3b8f80(-0x1dd,-0x1ea,-0x1f1,-_0x431181._0x544420)](_0x299ef9[_0x3b8f80(-_0x431181._0x5b485c,-0x201,-_0x431181._0x5363c1,-0x1db)]??{})});continue;}if(_0x299ef9[_0x566e7e(_0x431181._0x275559,0x114,0x102,0x12f)]==='tool_result'){if(!hasSerializableToolResult(_0x299ef9))continue;const _0x1125ae=getToolResultText(_0x299ef9[_0x3b8f80(-_0x431181._0x3e81c7,-0x1fe,-0x216,-_0x431181._0x3be04f)]);_0x38b54a[_0x3b8f80(-_0x431181._0x291229,-_0x431181._0x369bca,-_0x431181._0x5c7846,-_0x431181._0x518a43)]({'type':_0x566e7e(0x14e,_0x431181._0x4c8d7f,0x135,0x165),'call_id':_0x299ef9[_0x3b8f80(-0x202,-0x1fe,-0x1f1,-_0x431181._0x5f3f10)],'output':_0x1125ae});const _0x2334f3=getToolResultImages(_0x299ef9[_0x566e7e(0x121,_0x431181._0x1b9e84,_0x431181._0x4039ab,0x139)]);_0x2334f3['length']>0x0&&_0x38b54a[_0x3b8f80(-_0x431181._0x34c374,-_0x431181._0x496e0d,-_0x431181._0x1354d9,-0x1e8)]({'type':'message','role':'user','content':[{'type':_0x566e7e(0x14c,0x13a,_0x431181._0x58373c,_0x431181._0x499b0a),'text':_0x3b8f80(-_0x431181._0x57795b,-_0x431181._0x223884,-0x1ec,-0x1d4)+_0x299ef9[_0x3b8f80(-0x202,-_0x431181._0x25ea55,-_0x431181._0xfa4d17,-0x217)]+'.'},..._0x2334f3[_0x3b8f80(-0x200,-0x21b,-_0x431181._0x3eaf23,-0x210)](_0x3a3d09=>({'type':_0x566e7e(0x12f,0x11f,0x118,0x13f),'image_url':_0x3b8f80(-0x203,-0x209,-0x1e2,-0x20b)+_0x3a3d09[_0x566e7e(0x120,0x106,0x10a,0x109)][_0x3b8f80(-0x1cc,-0x1d0,-0x1bd,-0x1b1)]+';base64,'+_0x3a3d09[_0x566e7e(0x120,0x12a,0x10b,0x10a)]['data']}))]});}}pushUserContentMessage(_0x38b54a,_0x53cc1b[_0x566e7e(_0x431181._0x4364d7,0x137,0x113,_0x431181._0x58ff09)],_0x204038);}return{...createOpenAiResponsesReasoning(_0xf7e6a4),'model':_0xf7e6a4[_0x566e7e(0x11e,_0x431181._0x5a2180,_0x431181._0x26c7ba,0x139)],'instructions':systemToInstructions(_0xf7e6a4[_0x3b8f80(-_0x431181._0x4d07a1,-_0x431181._0x2f7167,-0x1db,-_0x431181._0x87e0a3)]),'input':_0x38b54a,..._0xf7e6a4[_0x566e7e(_0x431181._0x363bc8,_0x431181._0x2e45cb,0x14b,0x145)]!==void 0x0?{'max_output_tokens':_0xf7e6a4[_0x566e7e(_0x431181._0x363bc8,_0x431181._0x27ede6,_0x431181._0x3aa310,0x150)]}:{},'tools':_0xf7e6a4[_0x3b8f80(-0x20a,-_0x431181._0xe47e20,-0x1f7,-0x1f1)][_0x3b8f80(-_0x431181._0xc78b57,-_0x431181._0x5b1a8a,-0x1df,-_0x431181._0xe47e20)](_0x58baa5=>{const _0x2282f9={_0x4a0c32:0x185,_0x51d04d:0xa0};function _0x1a6520(_0x5b6572,_0x193a8f,_0x13a801,_0x4d340a){return _0x3b8f80(_0x13a801-0x62b,_0x4d340a,_0x13a801-_0x38b5f0._0x50b89c,_0x4d340a-0xf5);}function _0x2e3640(_0x2db686,_0x3db528,_0x4b5271,_0x26fdcf){return _0x566e7e(_0x2db686-_0x2282f9._0x4a0c32,_0x26fdcf,_0x4b5271-_0x2282f9._0x51d04d,_0x26fdcf-0x7b);}return{'type':'function','name':_0x58baa5[_0x1a6520(0x463,0x461,_0x3717d4._0x133419,_0x3717d4._0x45f848)],'description':_0x58baa5[_0x2e3640(_0x3717d4._0x3c9ceb,0x2b7,0x2b3,0x297)],'parameters':_0x58baa5[_0x1a6520(_0x3717d4._0x12709b,0x45d,_0x3717d4._0x32f5e8,0x44b)]};}),..._0xf7e6a4['outputFormat']?{'text':{'format':{'type':_0x566e7e(_0x431181._0x12e925,_0x431181._0x5b138b,0x128,_0x431181._0x1589ff),'name':_0xf7e6a4[_0x3b8f80(-_0x431181._0x4cc990,-0x1f7,-0x1e8,-_0x431181._0x374b8d)][_0x3b8f80(-0x1e2,-0x1c8,-_0x431181._0x1c557e,-_0x431181._0x255fb2)]??_0x3b8f80(-0x1e5,-0x1dd,-_0x431181._0x57795b,-0x205),'schema':_0xf7e6a4[_0x3b8f80(-0x1eb,-_0x431181._0x87e0a3,-_0x431181._0xc78b57,-_0x431181._0xa60965)][_0x566e7e(_0x431181._0x1dd5b0,0x12c,_0x431181._0x554365,_0x431181._0x1fa3bb)],'strict':_0xf7e6a4['outputFormat']['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};