@nuvin/agent-core 0.4.0-rc.5 → 0.4.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-EQGBU73Q.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-WCUIFNCL.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/chunk-YTDATWXW.js +1 -0
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/isolate/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/bash-completion-visibility.d.ts +12 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +13 -1
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CVOXBVKH.js +0 -1
- package/dist/chunk-XNXDKQ47.js +0 -1
package/dist/chunk-IUZALP6K.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x59e2(_0x13d156,_0x2df23e){_0x13d156=_0x13d156-0x88;var _0x122690=_0x1226();var _0x59e24d=_0x122690[_0x13d156];if(_0x59e2['vaOLvN']===undefined){var _0x457cd2=function(_0x299b81){var _0x330430='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x103f7d='',_0xd7a805='';for(var _0x46ea8c=0x0,_0x2d0fdb,_0x4948d5,_0x5795ee=0x0;_0x4948d5=_0x299b81['charAt'](_0x5795ee++);~_0x4948d5&&(_0x2d0fdb=_0x46ea8c%0x4?_0x2d0fdb*0x40+_0x4948d5:_0x4948d5,_0x46ea8c++%0x4)?_0x103f7d+=String['fromCharCode'](0xff&_0x2d0fdb>>(-0x2*_0x46ea8c&0x6)):0x0){_0x4948d5=_0x330430['indexOf'](_0x4948d5);}for(var _0x222173=0x0,_0x29731f=_0x103f7d['length'];_0x222173<_0x29731f;_0x222173++){_0xd7a805+='%'+('00'+_0x103f7d['charCodeAt'](_0x222173)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xd7a805);};_0x59e2['xYWakb']=_0x457cd2,_0x59e2['lArvjV']={},_0x59e2['vaOLvN']=!![];}var _0x9bbeba=_0x122690[0x0],_0x1cf87e=_0x13d156+_0x9bbeba,_0x5148ca=_0x59e2['lArvjV'][_0x1cf87e];return!_0x5148ca?(_0x59e24d=_0x59e2['xYWakb'](_0x59e24d),_0x59e2['lArvjV'][_0x1cf87e]=_0x59e24d):_0x59e24d=_0x5148ca,_0x59e24d;}(function(_0x155a63,_0x507f0e){var _0x597784={_0x2a745e:0x263,_0x11810c:0x258,_0x291185:0x24e,_0x496d20:0x27a,_0x29d045:0x281,_0x3c1497:0x27b,_0x514bbf:0x27d,_0x52f91d:0x275,_0x5a0013:0x289,_0x36b1a3:0x252,_0x59cd84:0x255,_0x3caa07:0x251,_0x3aad36:0x28e,_0x4194e4:0x28c,_0x20adcf:0x287,_0x23964d:0x285,_0x192255:0x27e,_0x529846:0x25a,_0x27e6f7:0x256,_0x1ec8b2:0x25e,_0x2c66b2:0x25d,_0x40cc25:0x259},_0x5d7e71={_0x598a3f:0x2e6};function _0x452aeb(_0x536543,_0x1a1822,_0x7536a1,_0x1b701e){return _0x59e2(_0x1b701e- -_0x5d7e71._0x598a3f,_0x536543);}function _0x4baeeb(_0x3aff41,_0x160e1a,_0x586ddf,_0x12a711){return _0x59e2(_0x586ddf- -0x310,_0x3aff41);}var _0x35a690=_0x155a63();while(!![]){try{var _0x2ea958=parseInt(_0x452aeb(-_0x597784._0x2a745e,-_0x597784._0x11810c,-0x263,-0x25c))/0x1*(-parseInt(_0x452aeb(-0x250,-0x24c,-_0x597784._0x291185,-0x254))/0x2)+parseInt(_0x4baeeb(-0x275,-0x27e,-_0x597784._0x496d20,-0x280))/0x3*(parseInt(_0x4baeeb(-0x27a,-0x284,-_0x597784._0x29d045,-_0x597784._0x3c1497))/0x4)+-parseInt(_0x4baeeb(-0x27a,-0x27d,-_0x597784._0x514bbf,-_0x597784._0x52f91d))/0x5*(-parseInt(_0x4baeeb(-_0x597784._0x5a0013,-0x27d,-0x282,-0x288))/0x6)+parseInt(_0x452aeb(-_0x597784._0x36b1a3,-_0x597784._0x59cd84,-0x251,-_0x597784._0x3caa07))/0x7*(-parseInt(_0x4baeeb(-_0x597784._0x3aad36,-_0x597784._0x4194e4,-_0x597784._0x20adcf,-0x281))/0x8)+parseInt(_0x4baeeb(-_0x597784._0x23964d,-_0x597784._0x192255,-0x27f,-0x284))/0x9*(-parseInt(_0x452aeb(-0x25b,-_0x597784._0x529846,-_0x597784._0x27e6f7,-_0x597784._0x1ec8b2))/0xa)+parseInt(_0x452aeb(-_0x597784._0x2c66b2,-0x25c,-0x25c,-0x25b))/0xb+parseInt(_0x452aeb(-_0x597784._0x40cc25,-_0x597784._0x11810c,-0x25b,-0x256))/0xc;if(_0x2ea958===_0x507f0e)break;else _0x35a690['push'](_0x35a690['shift']());}catch(_0x17d54e){_0x35a690['push'](_0x35a690['shift']());}}}(_0x1226,0x229ae));function resolveAnthropicReasoningConfig(_0x103f7d){var _0x1eb82b={_0x2c8e44:0x69,_0x538271:0x67,_0x25e1b1:0x60},_0x3a3d64={_0x215ce1:0x2b};function _0x3ce906(_0x42d2b8,_0x21f08d,_0x15baa2,_0xc5cbc6){return _0x59e2(_0x15baa2- -_0x3a3d64._0x215ce1,_0xc5cbc6);}return _0x103f7d?.['anthropic']?structuredClone(_0x103f7d[_0x3ce906(_0x1eb82b._0x2c8e44,_0x1eb82b._0x538271,0x62,_0x1eb82b._0x25e1b1)]):void 0x0;}function resolveOpenAiReasoningConfig(_0xd7a805){var _0x12fb19={_0xd6748c:0x2dc,_0x3975d8:0x2d7,_0x1bdd58:0xa0,_0x5dbf7a:0x99,_0x511289:0x2e7,_0x540b99:0x2dd,_0x3bae67:0x2e4,_0x4d69db:0x2e2};function _0x502f29(_0x4834c6,_0x2977a4,_0x62a5c8,_0x386e24){return _0x59e2(_0x62a5c8-0xd,_0x386e24);}if(_0xd7a805?.[_0x1b1bc7(-0x2d7,-0x2dd,-_0x12fb19._0xd6748c,-_0x12fb19._0x3975d8)])return structuredClone(_0xd7a805['codex']);function _0x1b1bc7(_0xd699c5,_0x52a9d2,_0x2108ad,_0x9338b){return _0x59e2(_0x2108ad- -0x370,_0x9338b);}return _0xd7a805?.[_0x502f29(0x99,_0x12fb19._0x1bdd58,_0x12fb19._0x5dbf7a,0xa0)]?structuredClone(_0xd7a805[_0x1b1bc7(-_0x12fb19._0x511289,-_0x12fb19._0x540b99,-_0x12fb19._0x3bae67,-_0x12fb19._0x4d69db)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};function _0x1226(){var _0x1ff592=['nJq0odG4suHTtw5f','mtj0qvfNr08','mtq0otC4ou9XB1z6uW','B3bLBMfP','yw50AhjVCgLJ','mtqYmZmWmLDwwhHPDG','nJq3nNL3qKPltW','nJa0otjTufbhzfi','mtHqCgDfEMq','ndq0nJzYqvfzuKu','nvzfqNreuW','y29KzxG','n0HQt0jqqG','mJGYuhrms2XQ','mtG1ndCWExf4DKXM'];_0x1226=function(){return _0x1ff592;};return _0x1226();}
|
package/dist/chunk-LIE76IJA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x57b8(){const _0x65fe17=['AM9PBG','Aw5WDxq','BMfTzq','ANnVBL9Zy2HLBwe','BgvUz3rO','Bw9KzwW','C3vTBwfYEq','yxv0BW','mtiWmdCZntbxBufoBK0','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','Aw1Hz2u','ChjVDMLKzxjtDgf0zq','B3v0Chv0rM9YBwf0','C3rYAw5N','AxnbCNjHEq','Dg9VBf9Yzxn1Bhq','Aw5WDxrFDgv4Da','zNvUy3rPB25Fy2fSBf9VDxrWDxq','B2jQzwn0','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','zNvUy3rPB24','o2jHC2u2ncW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','DhjPBq','zgf0yq','y29KzxG','DhLWzq','yMfZzty0','y29UDgvUDa','BwfW','Dg9VBf91C2vFAwq','CM9Szq','DxnLCI12AxnPyMXL','C3rHDhvZ','mJfjtNv1yLC','mtaXtNzSBg5n','Aw5WDxrFC2nOzw1H','ChvZAa','C3rYDwn0DxjLzf9VDxrWDxq','C2nOzw1H','C3LZDgvT','zgvZy3jPChrPB24','otC3mJaWAunsyKri','zNvUy3rPB25Fy2fSBa','Dgv4Da','ndKYneDwvgXMtG','nZaZotm4CuDtvNHA','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','Dg9VBf91C2u','BwvZC2fNzxm','mtuYnJG2neTjveHiqG','mtm0nde0mxLqD3bzrG','Bwf4vg9Rzw5Z','C291CMnL','B3v0Chv0x3rLEhq','BwvKAwfFDhLWzq','CMvHC29UAw5N','BwvZC2fNzq','C3bSAwnL','DMLZAwjPBgL0Eq','zwzMB3j0','mJG3nZCWthHZB2fK','Dg9VBhm'];_0x57b8=function(){return _0x65fe17;};return _0x57b8();}(function(_0x2099a3,_0x4e6339){const _0x46d9fb={_0x5df26d:0x5c,_0x8eb9f:0x4e,_0x103594:0x7a,_0x5d0217:0x65,_0xbe5fe9:0x7a,_0x444d7a:0x5b,_0x2759e1:0x108,_0x567d99:0x11e,_0x151e70:0x12e,_0x6cd52a:0x144,_0x51a8d2:0x12c,_0x15148a:0x12b,_0x3fdf9b:0x40,_0x20afcf:0x58,_0x22f6e2:0x3a,_0x5e72ae:0x35},_0x2ab89d={_0xd700eb:0x5a},_0x102660=_0x2099a3();function _0x17e9eb(_0xec78bd,_0x3d8c9c,_0x418885,_0x543908){return _0x55ca(_0xec78bd- -0x13d,_0x3d8c9c);}function _0x40476a(_0x2d7fd5,_0x257e88,_0x16e4b9,_0x2c9be6){return _0x55ca(_0x16e4b9- -_0x2ab89d._0xd700eb,_0x257e88);}while(!![]){try{const _0x296214=parseInt(_0x17e9eb(0x56,0x52,0x3e,0x4e))/0x1*(parseInt(_0x17e9eb(0x60,0x4a,0x68,_0x46d9fb._0x5df26d))/0x2)+parseInt(_0x17e9eb(0x66,0x77,_0x46d9fb._0x8eb9f,_0x46d9fb._0x103594))/0x3+parseInt(_0x17e9eb(_0x46d9fb._0x5d0217,_0x46d9fb._0xbe5fe9,_0x46d9fb._0x444d7a,0x5b))/0x4+parseInt(_0x40476a(0x133,_0x46d9fb._0x2759e1,0x113,_0x46d9fb._0x567d99))/0x5+parseInt(_0x40476a(_0x46d9fb._0x151e70,0x139,_0x46d9fb._0x6cd52a,0x15d))/0x6+-parseInt(_0x40476a(0x135,_0x46d9fb._0x51a8d2,0x138,_0x46d9fb._0x15148a))/0x7*(-parseInt(_0x17e9eb(0x5d,_0x46d9fb._0x3fdf9b,0x5d,_0x46d9fb._0x20afcf))/0x8)+-parseInt(_0x17e9eb(_0x46d9fb._0x22f6e2,_0x46d9fb._0x5e72ae,0x33,0x38))/0x9;if(_0x296214===_0x4e6339)break;else _0x102660['push'](_0x102660['shift']());}catch(_0x25c935){_0x102660['push'](_0x102660['shift']());}}}(_0x57b8,0x45ba2));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x4c0edd){const _0x2cb299={_0x10808b:0x3eb,_0x31b06b:0x3d0,_0x3e6098:0x3a1,_0x99a977:0x3b4},_0x2d2936={_0x2e1e73:0x245},_0x1b61cf={_0x1883e9:0x2};function _0x3d7c91(_0x561b36,_0x24aeed,_0x217cba,_0x320e69){return _0x55ca(_0x320e69-_0x1b61cf._0x1883e9,_0x24aeed);}function _0x28fac2(_0x26d87f,_0x2d013c,_0x1f400a,_0x149e8f){return _0x55ca(_0x149e8f-_0x2d2936._0x2e1e73,_0x26d87f);}return normalizeContent(_0x4c0edd)['filter'](_0x2735e0=>_0x2735e0[_0x28fac2(0x3b0,0x3c2,0x3b0,0x3cf)]==='text')[_0x28fac2(_0x2cb299._0x10808b,0x3be,0x3bd,0x3d2)](_0x2ffef0=>_0x2ffef0['text'])[_0x28fac2(0x3a5,_0x2cb299._0x31b06b,_0x2cb299._0x3e6098,_0x2cb299._0x99a977)]('\x0a\x0a');}function pushUserContentMessage(_0x41209b,_0x3fa06a,_0x30d611){const _0x1af76d={_0x4fe88f:0x366,_0x45f763:0x385,_0x68c4f0:0x4a5,_0x144c8f:0x4b1,_0x50989a:0x4b2,_0x4717b1:0x363,_0x34007c:0x36a},_0x4b9203={_0x3538d2:0x2fd};function _0x451013(_0x2f10d3,_0xf4c4f9,_0x515833,_0x50dd2d){return _0x55ca(_0x2f10d3-_0x4b9203._0x3538d2,_0x50dd2d);}function _0x991838(_0x3cbf0c,_0xdd1360,_0x3717ab,_0x2fd708){return _0x55ca(_0x3cbf0c-0x1f3,_0xdd1360);}if(_0x30d611[_0x991838(_0x1af76d._0x4fe88f,_0x1af76d._0x45f763,0x37a,0x34c)]===0x0)return;_0x41209b[_0x451013(0x492,_0x1af76d._0x68c4f0,_0x1af76d._0x144c8f,_0x1af76d._0x50989a)]({'type':_0x991838(0x35c,_0x1af76d._0x4717b1,_0x1af76d._0x34007c,0x36c),'role':_0x3fa06a,'content':_0x30d611});}function hasSerializableToolUse(_0x5becb0){const _0x43ed6b={_0x20ae50:0x235,_0x2c1f19:0x24d,_0x4788d9:0x22d,_0x2998a7:0x247,_0x4a5825:0x226,_0x46d7c5:0x218},_0x1b6249={_0x4e61df:0x3bc};function _0x11c3b8(_0x47fada,_0xcc8800,_0x1b712d,_0x29ff89){return _0x55ca(_0x47fada- -_0x1b6249._0x4e61df,_0xcc8800);}function _0x8039d8(_0x31b603,_0x14e3ba,_0x16e29b,_0x570fa6){return _0x55ca(_0x570fa6- -0x168,_0x31b603);}return _0x5becb0['id'][_0x11c3b8(-_0x43ed6b._0x20ae50,-0x234,-0x250,-0x255)]()[_0x11c3b8(-0x249,-_0x43ed6b._0x2c1f19,-_0x43ed6b._0x4788d9,-0x231)]>0x0&&_0x5becb0['name'][_0x11c3b8(-_0x43ed6b._0x20ae50,-_0x43ed6b._0x2998a7,-_0x43ed6b._0x4a5825,-_0x43ed6b._0x46d7c5)]()['length']>0x0;}function hasSerializableToolResult(_0x11f725){const _0x54e86c={_0x3c6dd7:0x381,_0x42b844:0x39b,_0x20bfcb:0x422};function _0x438461(_0x24775b,_0x4cb5bd,_0x50f10a,_0x2060c6){return _0x55ca(_0x50f10a-0x29b,_0x24775b);}function _0x2d499a(_0x285e3e,_0x1cb261,_0x4920e7,_0x41a40e){return _0x55ca(_0x1cb261-0x1fa,_0x41a40e);}return _0x11f725['tool_use_id'][_0x2d499a(_0x54e86c._0x3c6dd7,0x381,_0x54e86c._0x42b844,0x38e)]()[_0x438461(_0x54e86c._0x20bfcb,0x3fd,0x40e,0x3fe)]>0x0;}function isResponseInputObject(_0x56c24b){const _0x375df9={_0x55bbb2:0x203,_0x55032e:0x21b,_0x2fe828:0x116,_0x15109b:0x112,_0x3788e6:0x206,_0x2cd25a:0x212,_0x5743c1:0x115,_0xefaaf5:0xfd},_0x353048={_0x51b2f9:0x39c},_0xf02e30={_0xd0a742:0x67};if(typeof _0x56c24b!==_0x2741ff(-0x21a,-_0x375df9._0x55bbb2,-0x21c,-_0x375df9._0x55032e)||_0x56c24b===null||Array[_0x1352c2(_0x375df9._0x2fe828,0x11a,_0x375df9._0x15109b,0x132)](_0x56c24b))return![];function _0x1352c2(_0x3d404c,_0x447fb9,_0x3a1ca0,_0xea69d8){return _0x55ca(_0x3d404c- -_0xf02e30._0xd0a742,_0x447fb9);}function _0x2741ff(_0x1ae556,_0x5dd0f8,_0x57aa97,_0x4f1633){return _0x55ca(_0x4f1633- -_0x353048._0x51b2f9,_0x5dd0f8);}const _0x48e94a=_0x56c24b;return typeof _0x48e94a[_0x2741ff(-0x20c,-_0x375df9._0x3788e6,-0x226,-_0x375df9._0x2cd25a)]===_0x1352c2(_0x375df9._0x5743c1,0x101,0x11e,_0x375df9._0xefaaf5);}function isImageToolResultBlock(_0xb1cd71){const _0x1421b6={_0x15ed18:0x19b,_0x212daa:0x160,_0x30cdad:0x1e6,_0x28cee0:0x1dd,_0x74a52a:0x1fd,_0x491350:0x1e6,_0x359580:0x1e1,_0x451373:0x1fa,_0x51609d:0x19f,_0x504eb0:0x19d,_0x13b733:0x181,_0x4ceaa6:0x1db,_0x25bd13:0x1e9,_0x501cf4:0x1f4,_0x2d6268:0x149,_0x1f492e:0x15b,_0x255561:0x192,_0x277f2d:0x192,_0x51fca1:0x205},_0x274fab={_0x43b85e:0x6d},_0x2f66c7={_0x3672d4:0x306};if(typeof _0xb1cd71!=='object'||_0xb1cd71===null||Array[_0xe13779(-0x189,-0x180,-0x172,-0x198)](_0xb1cd71))return![];function _0xe13779(_0xe6afa1,_0x3235d2,_0x4ac272,_0x4de200){return _0x55ca(_0xe6afa1- -_0x2f66c7._0x3672d4,_0x4ac272);}const _0x2d4af8=_0xb1cd71;function _0x1f6904(_0x242ca1,_0x33b6a6,_0x5f02f9,_0x1b6ba2){return _0x55ca(_0x33b6a6-_0x274fab._0x43b85e,_0x5f02f9);}return _0x2d4af8[_0xe13779(-0x17c,-_0x1421b6._0x15ed18,-0x15c,-_0x1421b6._0x212daa)]===_0x1f6904(0x1ea,_0x1421b6._0x30cdad,0x1f8,_0x1421b6._0x28cee0)&&_0x2d4af8[_0x1f6904(_0x1421b6._0x74a52a,0x212,0x1f9,0x22b)]?.[_0x1f6904(_0x1421b6._0x491350,0x1f7,0x202,_0x1421b6._0x359580)]===_0x1f6904(0x1f5,0x1f8,0x210,_0x1421b6._0x451373)&&typeof _0x2d4af8['source'][_0xe13779(-_0x1421b6._0x51609d,-0x1b3,-_0x1421b6._0x504eb0,-_0x1421b6._0x13b733)]===_0x1f6904(_0x1421b6._0x4ceaa6,_0x1421b6._0x25bd13,0x1e3,_0x1421b6._0x501cf4)&&typeof _0x2d4af8[_0xe13779(-0x161,-0x148,-_0x1421b6._0x2d6268,-_0x1421b6._0x1f492e)][_0xe13779(-0x17e,-_0x1421b6._0x255561,-_0x1421b6._0x277f2d,-0x184)]===_0x1f6904(_0x1421b6._0x51fca1,0x1e9,0x1dc,0x1cc);}function getToolResultText(_0xc436bc){const _0x477672={_0x58c0a5:0xf1,_0x470c51:0xed,_0x314a25:0xf7,_0x2232a3:0x114,_0x4247e7:0x3c8,_0x9a3fb3:0x3c1,_0x59f383:0x3a6,_0x240cde:0x3d2},_0x5243ad={_0x5cfe90:0x23b},_0x4e03ba={_0x48ee6a:0x27e},_0x50eeee={_0x221388:0x4fe,_0x4754b7:0x4d7,_0x5dc5a8:0x4e6,_0x377824:0x54};if(typeof _0xc436bc==='string')return _0xc436bc;const _0x51e02c=_0xc436bc['filter'](_0xdb207=>{function _0x301ce5(_0x1b5ecd,_0x2f4aba,_0x338537,_0x2ebdee){return _0x55ca(_0x2ebdee- -0x161,_0x1b5ecd);}function _0x11efd7(_0x5b7a93,_0x5f3fcb,_0x359ccb,_0x284e86){return _0x55ca(_0x5b7a93-0x365,_0x284e86);}return typeof _0xdb207===_0x11efd7(0x4e6,_0x50eeee._0x221388,_0x50eeee._0x4754b7,_0x50eeee._0x5dc5a8)&&_0xdb207!==null&&_0xdb207[_0x301ce5(0x18,0x1d,0x2c,0x29)]===_0x301ce5(_0x50eeee._0x377824,0x4a,0x22,0x3b);})[_0x4790dd(-0xe3,-_0x477672._0x58c0a5,-_0x477672._0x470c51,-0xfe)](_0x342f4b=>_0x342f4b[_0x4790dd(-0xe0,-0xe2,-0xfc,-0xcc)])['join']('\x0a\x0a')[_0x4790dd(-0x100,-_0x477672._0x314a25,-_0x477672._0x2232a3,-0xfd)]();function _0x4790dd(_0x286d7f,_0x2bce3a,_0x5455db,_0x25124d){return _0x55ca(_0x2bce3a- -_0x4e03ba._0x48ee6a,_0x25124d);}function _0x23c8f6(_0x120d0b,_0x46e501,_0x4c7e04,_0xe94c92){return _0x55ca(_0x120d0b-_0x5243ad._0x5cfe90,_0x4c7e04);}return _0x51e02c[_0x23c8f6(0x3ae,0x3a0,0x39e,_0x477672._0x4247e7)]>0x0?_0x51e02c:_0x23c8f6(_0x477672._0x9a3fb3,0x3cc,_0x477672._0x59f383,_0x477672._0x240cde);}function getToolResultImages(_0x7cd36f){const _0xcc64dc={_0x78f58a:0x40};function _0x433a36(_0x1ec82a,_0x30811e,_0xa0b617,_0x1dd3ac){return _0x55ca(_0x30811e- -0x1ae,_0xa0b617);}return Array[_0x433a36(-_0xcc64dc._0x78f58a,-0x31,-0x24,-0x1f)](_0x7cd36f)?_0x7cd36f['filter'](isImageToolResultBlock):[];}function _0x55ca(_0x59f8fc,_0xf67a19){_0x59f8fc=_0x59f8fc-0x166;const _0x57b87f=_0x57b8();let _0x55ca10=_0x57b87f[_0x59f8fc];if(_0x55ca['XWoixF']===undefined){var _0x4c39a6=function(_0x21fb75){const _0x3b4dbe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c0edd='',_0x2735e0='';for(let _0x2ffef0=0x0,_0x41209b,_0x3fa06a,_0x30d611=0x0;_0x3fa06a=_0x21fb75['charAt'](_0x30d611++);~_0x3fa06a&&(_0x41209b=_0x2ffef0%0x4?_0x41209b*0x40+_0x3fa06a:_0x3fa06a,_0x2ffef0++%0x4)?_0x4c0edd+=String['fromCharCode'](0xff&_0x41209b>>(-0x2*_0x2ffef0&0x6)):0x0){_0x3fa06a=_0x3b4dbe['indexOf'](_0x3fa06a);}for(let _0x5becb0=0x0,_0x11f725=_0x4c0edd['length'];_0x5becb0<_0x11f725;_0x5becb0++){_0x2735e0+='%'+('00'+_0x4c0edd['charCodeAt'](_0x5becb0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2735e0);};_0x55ca['lzUcji']=_0x4c39a6,_0x55ca['TbplTA']={},_0x55ca['XWoixF']=!![];}const _0x1f28f7=_0x57b87f[0x0],_0x9cfafb=_0x59f8fc+_0x1f28f7,_0x302bd4=_0x55ca['TbplTA'][_0x9cfafb];return!_0x302bd4?(_0x55ca10=_0x55ca['lzUcji'](_0x55ca10),_0x55ca['TbplTA'][_0x9cfafb]=_0x55ca10):_0x55ca10=_0x302bd4,_0x55ca10;}function resolveReasoningVisibility(_0x2ad0d0){const _0x3a1eb5={_0x5402ea:0x20e,_0x3047b6:0x20b,_0x56f9b3:0x21b,_0x6b882f:0x225},_0x27d494={_0x3b15a8:0x95};function _0x5e1047(_0x400972,_0x4eacb7,_0x330543,_0x3bf3ea){return _0x55ca(_0x330543-_0x27d494._0x3b15a8,_0x4eacb7);}function _0x35578d(_0x25680f,_0x5ee688,_0x4d0816,_0x1fe270){return _0x55ca(_0x1fe270- -0x32d,_0x4d0816);}return _0x2ad0d0[_0x5e1047(_0x3a1eb5._0x5402ea,_0x3a1eb5._0x3047b6,0x1fd,0x204)]?.[_0x5e1047(_0x3a1eb5._0x56f9b3,0x21e,0x200,0x209)]??_0x5e1047(0x22f,0x241,_0x3a1eb5._0x6b882f,0x207);}function createOpenAiResponsesReasoning(_0x5170d0){const _0x1e7166={_0x287851:0x3e1,_0x208c04:0x3e4,_0x294c97:0x128,_0x438fca:0x126,_0xd1ab41:0x3e6,_0x306aca:0x3fc,_0x1ff833:0x3fe,_0x48b37c:0x104,_0x42f4a0:0x3f4,_0x1f05e7:0x128,_0xd272cb:0x10b,_0x3856e0:0x12b,_0x3f3088:0x3e3,_0x371ce5:0x3ea,_0x35d7f6:0x3f5,_0x57c168:0x3f9,_0x1378d7:0x414,_0x18499f:0x120,_0x4c7338:0x136,_0x47f82c:0xf5,_0x53202c:0xfc},_0x5e5ab6={_0x34d4d0:0x61},_0x105c65={_0x1a4c8d:0x281},_0x4bb287=resolveOpenAiReasoningConfig(_0x5170d0['reasoning']);if(!_0x4bb287)return{};const _0x22a3cb={},_0x3d8f79=_0x5170d0[_0x3a4ba7(_0x1e7166._0x287851,_0x1e7166._0x208c04,0x3ee,0x3e9)]?.[_0x8ef924(_0x1e7166._0x294c97,0x134,0x122,_0x1e7166._0x438fca)]!==void 0x0,_0x5edbcf=(!_0x3d8f79&&_0x3a4ba7(_0x1e7166._0xd1ab41,_0x1e7166._0x306aca,_0x1e7166._0x1ff833,0x3f6)in _0x4bb287?_0x4bb287[_0x8ef924(0x114,0x132,0x11e,_0x1e7166._0x48b37c)]:void 0x0)??(resolveReasoningVisibility(_0x5170d0)===_0x3a4ba7(0x413,_0x1e7166._0x42f4a0,0x3f6,0x411)?_0x8ef924(0x115,0x110,0x118,_0x1e7166._0x1f05e7):void 0x0);_0x4bb287[_0x8ef924(_0x1e7166._0xd272cb,0x107,_0x1e7166._0x3856e0,0xf0)]&&(_0x22a3cb['effort']=_0x4bb287[_0x3a4ba7(0x3f3,_0x1e7166._0x3f3088,0x3e7,0x3ed)]);_0x5edbcf&&(_0x22a3cb[_0x8ef924(0x114,0x125,0x113,0x12e)]=_0x5edbcf);function _0x3a4ba7(_0x296d0b,_0x1e4862,_0x25f0c1,_0x4a016d){return _0x55ca(_0x4a016d-_0x105c65._0x1a4c8d,_0x1e4862);}function _0x8ef924(_0x16b928,_0x104479,_0x217823,_0x6be4b1){return _0x55ca(_0x16b928- -_0x5e5ab6._0x34d4d0,_0x6be4b1);}return{...!_0x3d8f79&&_0x3a4ba7(_0x1e7166._0x371ce5,_0x1e7166._0x3f3088,_0x1e7166._0x35d7f6,_0x1e7166._0x57c168)in _0x4bb287&&_0x4bb287[_0x3a4ba7(_0x1e7166._0x1378d7,0x3fe,_0x1e7166._0x208c04,0x3f9)]===![]?{}:{'include':[_0x8ef924(0x13e,_0x1e7166._0x18499f,0x123,_0x1e7166._0x4c7338)]},...Object['keys'](_0x22a3cb)[_0x8ef924(0x112,0x106,_0x1e7166._0x47f82c,_0x1e7166._0x53202c)]>0x0?{'reasoning':_0x22a3cb}:{}};}function pushAssistantProviderState(_0xf9f8a7,_0x9a1c30,_0x25ad68){const _0x6d5eb3={_0x4e3f19:0x4df,_0x610579:0x4f6,_0x5d155f:0x500,_0x46a022:0x4cb,_0x577781:0x4e1,_0x2cb539:0x2b3,_0x4c2b68:0x294,_0x1fa655:0x2b9,_0x383384:0x4e1,_0x24e1fb:0x4f9,_0xf0d5fd:0x4c2,_0x8277b7:0x2c5,_0x2f9f40:0x2b5,_0x10e543:0x4e4,_0x42e1d2:0x4e9,_0x4eb82d:0x4fe,_0xcc1299:0x4f1,_0x9773e6:0x2aa,_0x4c742e:0x4dc,_0x32ea86:0x4cb,_0x5374bf:0x4ee},_0x53af72={_0x3725b5:0x12d};function _0x718047(_0x574dd3,_0x1335f1,_0x1ae144,_0x370680){return _0x55ca(_0x370680-0x367,_0x1ae144);}if(_0x9a1c30[_0x718047(0x4eb,_0x6d5eb3._0x4e3f19,0x511,_0x6d5eb3._0x610579)]!=='assistant')return![];if(!isProviderStateCompatible(_0x9a1c30,_0x25ad68))return![];const _0x507570=_0x9a1c30[_0x718047(_0x6d5eb3._0x5d155f,0x4fd,_0x6d5eb3._0x46a022,_0x6d5eb3._0x577781)]?.[_0x5293f4(0x2b0,_0x6d5eb3._0x2cb539,_0x6d5eb3._0x4c2b68,_0x6d5eb3._0x1fa655)]??[];function _0x5293f4(_0x5e964f,_0xa128a,_0x5e2573,_0x55ac05){return _0x55ca(_0x5e964f-_0x53af72._0x3725b5,_0x55ac05);}if(_0x507570[_0x718047(_0x6d5eb3._0x383384,_0x6d5eb3._0x24e1fb,_0x6d5eb3._0xf0d5fd,0x4da)]===0x0)return![];for(const _0x51513d of _0x507570){if(isResponseInputObject(_0x51513d)){const _0x3dde40=structuredClone(_0x51513d);delete _0x3dde40[_0x5293f4(0x2be,_0x6d5eb3._0x8277b7,_0x6d5eb3._0x2f9f40,0x2b3)],_0x3dde40[_0x718047(_0x6d5eb3._0x10e543,_0x6d5eb3._0x42e1d2,_0x6d5eb3._0x4eb82d,_0x6d5eb3._0xcc1299)]===_0x5293f4(0x295,0x283,_0x6d5eb3._0x9773e6,0x2b4)&&!Array[_0x718047(0x4f8,0x4db,0x4d9,0x4e4)](_0x3dde40[_0x718047(0x4f7,0x4e3,0x4cf,_0x6d5eb3._0x4c742e)])&&(_0x3dde40[_0x718047(0x4e4,_0x6d5eb3._0x32ea86,_0x6d5eb3._0x5374bf,_0x6d5eb3._0x4c742e)]=[]),_0xf9f8a7['push'](_0x3dde40);}}return!![];}function toOpenAiResponsesRequest(_0x2d60b0){const _0x5115a3={_0x584a60:0x520,_0x100ea7:0x517,_0x27f468:0x51d,_0x1aaa43:0x502,_0x501a48:0x503,_0x104807:0x504,_0x37699f:0x4f9,_0x454bbe:0x514,_0x2a1757:0x533,_0x215e20:0x513,_0x3437ec:0x52f,_0x26ffcc:0x4e7,_0x5f0dbf:0x4e6,_0x64f7fb:0x501,_0x4bf1c9:0x530,_0x3a9af8:0x4ee,_0x1e053d:0x4f8,_0x21f5a8:0x509,_0x2d7a3b:0x4cb,_0x563c17:0x4e9,_0x45265f:0x4d3,_0x2ae35f:0x504,_0x20f8b3:0x4e4,_0x4489c2:0x509,_0x3ee8fa:0x4f8,_0x2b4c5e:0x50e,_0x3c0615:0x512,_0x158623:0x523,_0xed28ba:0x4e5,_0x2db24f:0x504,_0x3a8f3c:0x500,_0x571c0a:0x506,_0x5a26b5:0x537,_0x562e11:0x501,_0x243a3e:0x50c,_0x4e051b:0x532,_0x3d41c0:0x4d4,_0x285ec6:0x4dc,_0x123de4:0x4ed,_0x5bcd89:0x4e6,_0x4cdc82:0x4fc,_0x427956:0x4f2,_0x206adb:0x4eb,_0x1af27a:0x4d1,_0x4803aa:0x510,_0x3c0679:0x50a,_0x4a9a98:0x4d9,_0x2f1db5:0x4ef,_0x341e38:0x4f2,_0x5cc913:0x4f4,_0x2f6712:0x4f0,_0x57db02:0x505,_0x27ab50:0x4d7,_0x27fdea:0x4c1,_0x59938c:0x519,_0x31d77e:0x4e3,_0x491767:0x4ec,_0x186538:0x4ff,_0x285cc5:0x506,_0x137848:0x4fa,_0x2308b4:0x512,_0x5f5235:0x4fe,_0x3aa37f:0x4e4,_0x3851c4:0x51c,_0x11dc8f:0x528,_0x2cec0d:0x508,_0x59479b:0x511,_0x2b9f97:0x509,_0xf78698:0x4f1,_0x532b2b:0x4fd,_0x54b96a:0x4d4,_0x25298b:0x4f5,_0x152852:0x4d2,_0x1146b4:0x4fb,_0x37447c:0x539,_0x3971a6:0x528,_0x17e428:0x51e},_0x2e2a91={_0x9a0a03:0x199,_0x4348a9:0x18a,_0xb5d232:0x181,_0x370c35:0x1a1,_0x3edd82:0x1c9,_0x4ff4e9:0x1a9,_0x1753c3:0x18e,_0x5965d9:0x1c6};function _0x22251b(_0x2f1431,_0x4f0847,_0x571133,_0x34e966){return _0x55ca(_0x2f1431-0x364,_0x4f0847);}const _0x113b0a=[];for(const _0x1f6038 of _0x2d60b0[_0x5cd109(_0x5115a3._0x584a60,0x525,_0x5115a3._0x100ea7,_0x5115a3._0x27f468)]){if(pushAssistantProviderState(_0x113b0a,_0x1f6038,_0x2d60b0))continue;const _0x23607e=[];for(const _0xe32b6e of normalizeContent(_0x1f6038[_0x5cd109(_0x5115a3._0x1aaa43,0x510,0x4fd,0x4f0)])){if(_0xe32b6e[_0x22251b(0x4ee,_0x5115a3._0x501a48,_0x5115a3._0x104807,0x4f3)]===_0x5cd109(0x517,0x520,0x514,0x524)){_0x23607e[_0x22251b(_0x5115a3._0x37699f,0x4e4,0x515,_0x5115a3._0x454bbe)](_0x1f6038[_0x5cd109(_0x5115a3._0x2a1757,_0x5115a3._0x215e20,0x528,_0x5115a3._0x3437ec)]==='assistant'?{'type':_0x5cd109(_0x5115a3._0x26ffcc,0x4ea,0x4f1,0x4cf),'text':_0xe32b6e['text']}:{'type':_0x5cd109(_0x5115a3._0x5f0dbf,_0x5115a3._0x501a48,0x51c,_0x5115a3._0x454bbe),'text':_0xe32b6e[_0x5cd109(_0x5115a3._0x64f7fb,0x520,_0x5115a3._0x4bf1c9,0x50a)]});continue;}if(_0xe32b6e[_0x22251b(_0x5115a3._0x3a9af8,0x4fb,0x4ed,_0x5115a3._0x1e053d)]==='image'){_0x23607e['push']({'type':'input_image','image_url':'data:'+_0xe32b6e[_0x22251b(_0x5115a3._0x21f5a8,_0x5115a3._0x584a60,0x506,0x50c)][_0x22251b(_0x5115a3._0x2d7a3b,0x4d7,_0x5115a3._0x563c17,_0x5115a3._0x45265f)]+_0x22251b(0x4e9,_0x5115a3._0x2ae35f,0x4d0,_0x5115a3._0x20f8b3)+_0xe32b6e[_0x22251b(_0x5115a3._0x4489c2,0x507,0x50d,0x515)][_0x5cd109(_0x5115a3._0x3ee8fa,0x50c,0x4fd,_0x5115a3._0x2b4c5e)]});continue;}pushUserContentMessage(_0x113b0a,_0x1f6038[_0x5cd109(_0x5115a3._0x3c0615,0x513,_0x5115a3._0x158623,0x50b)],_0x23607e[_0x5cd109(0x4eb,_0x5115a3._0x3a9af8,0x4d4,0x503)](0x0));if(_0xe32b6e[_0x22251b(0x4ee,0x4e4,0x4cf,_0x5115a3._0xed28ba)]===_0x22251b(_0x5115a3._0x2db24f,_0x5115a3._0x3a8f3c,0x50d,0x4f1)){if(!hasSerializableToolUse(_0xe32b6e))continue;_0x113b0a[_0x5cd109(_0x5115a3._0x571c0a,0x519,_0x5115a3._0x5a26b5,_0x5115a3._0x3437ec)]({'type':_0x5cd109(_0x5115a3._0x562e11,0x51f,_0x5115a3._0x243a3e,_0x5115a3._0x4e051b),'call_id':_0xe32b6e['id'],'name':_0xe32b6e['name'],'arguments':JSON['stringify'](_0xe32b6e[_0x22251b(_0x5115a3._0x3d41c0,_0x5115a3._0x285ec6,_0x5115a3._0x123de4,_0x5115a3._0x5bcd89)]??{})});continue;}if(_0xe32b6e[_0x22251b(0x4ee,0x4f6,_0x5115a3._0x4cdc82,_0x5115a3._0x1e053d)]===_0x22251b(0x4e2,_0x5115a3._0x427956,_0x5115a3._0x206adb,_0x5115a3._0x1af27a)){if(!hasSerializableToolResult(_0xe32b6e))continue;const _0x3846e0=getToolResultText(_0xe32b6e[_0x22251b(0x4f0,_0x5115a3._0x4803aa,0x4fe,_0x5115a3._0x3c0679)]);_0x113b0a[_0x22251b(0x4f9,0x505,0x4fe,_0x5115a3._0x4a9a98)]({'type':_0x5cd109(_0x5115a3._0x563c17,0x504,0x509,_0x5115a3._0x2f1db5),'call_id':_0xe32b6e[_0x22251b(_0x5115a3._0x341e38,0x4d9,0x4fd,_0x5115a3._0x5cc913)],'output':_0x3846e0});const _0x56901e=getToolResultImages(_0xe32b6e[_0x22251b(_0x5115a3._0x2f6712,0x4e2,_0x5115a3._0x571c0a,_0x5115a3._0x57db02)]);_0x56901e[_0x22251b(_0x5115a3._0x27ab50,_0x5115a3._0x27fdea,0x4ed,0x4ef)]>0x0&&_0x113b0a[_0x5cd109(_0x5115a3._0x1aaa43,0x519,0x536,_0x5115a3._0x59938c)]({'type':'message','role':'user','content':[{'type':_0x22251b(_0x5115a3._0x31d77e,0x4e0,0x502,_0x5115a3._0x491767),'text':_0x5cd109(_0x5115a3._0x186538,_0x5115a3._0x285cc5,_0x5115a3._0x137848,0x514)+_0xe32b6e[_0x5cd109(0x528,_0x5115a3._0x2308b4,_0x5115a3._0x5f5235,0x50a)]+'.'},..._0x56901e[_0x22251b(0x4f1,0x4f5,_0x5115a3._0x1aaa43,0x4e9)](_0x4ea83f=>({'type':'input_image','image_url':'data:'+_0x4ea83f[_0x5cd109(0x522,0x529,0x537,0x524)][_0x5cd109(0x4cc,0x4eb,0x4df,0x4f3)]+_0x22251b(0x4e9,0x4f5,0x4d2,0x504)+_0x4ea83f['source'][_0x22251b(0x4ec,0x4ee,0x4e0,0x4d9)]}))]});}}pushUserContentMessage(_0x113b0a,_0x1f6038['role'],_0x23607e);}function _0x5cd109(_0x1d83a0,_0x8bbede,_0x4218b0,_0x3e8cbc){return _0x55ca(_0x8bbede-0x384,_0x1d83a0);}return{...createOpenAiResponsesReasoning(_0x2d60b0),'model':_0x2d60b0[_0x5cd109(0x515,0x4f8,0x4df,_0x5115a3._0x3aa37f)],'instructions':systemToInstructions(_0x2d60b0[_0x22251b(0x4fc,_0x5115a3._0x3851c4,_0x5115a3._0x3ee8fa,0x517)]),'input':_0x113b0a,..._0x2d60b0[_0x5cd109(0x527,_0x5115a3._0x11dc8f,_0x5115a3._0x2b4c5e,0x50f)]!==void 0x0?{'max_output_tokens':_0x2d60b0[_0x22251b(_0x5115a3._0x2cec0d,0x503,0x4ea,0x4fe)]}:{},'tools':_0x2d60b0[_0x5cd109(_0x5115a3._0x59479b,0x4f2,0x4eb,_0x5115a3._0x2b9f97)][_0x22251b(_0x5115a3._0xf78698,0x503,_0x5115a3._0x532b2b,_0x5115a3._0x54b96a)](_0x3c3aae=>{const _0x4310db={_0x42d8dd:0x36f,_0x5b8fc5:0x11f},_0x1b61c0={_0x189171:0x374};function _0x4aa3c6(_0x2caf8f,_0x1335a1,_0x306d8c,_0x3456c8){return _0x5cd109(_0x3456c8,_0x2caf8f- -_0x1b61c0._0x189171,_0x306d8c-0x18,_0x3456c8-0x151);}function _0x3dad25(_0x1da0b1,_0x524fb0,_0x565cd6,_0x369af8){return _0x5cd109(_0x565cd6,_0x1da0b1- -_0x4310db._0x42d8dd,_0x565cd6-_0x4310db._0x5b8fc5,_0x369af8-0x17c);}return{'type':_0x3dad25(_0x2e2a91._0x9a0a03,_0x2e2a91._0x4348a9,0x18c,_0x2e2a91._0xb5d232),'name':_0x3c3aae[_0x4aa3c6(0x181,0x164,0x185,_0x2e2a91._0x370c35)],'description':_0x3c3aae[_0x3dad25(0x1ae,0x192,0x1c9,_0x2e2a91._0x3edd82)],'parameters':_0x3c3aae[_0x3dad25(_0x2e2a91._0x4ff4e9,0x18a,_0x2e2a91._0x1753c3,_0x2e2a91._0x5965d9)]};}),..._0x2d60b0[_0x22251b(0x4df,0x4f2,_0x5115a3._0x25298b,0x4db)]?{'text':{'format':{'type':_0x22251b(0x4d6,_0x5115a3._0x152852,0x4f2,0x4db),'name':_0x2d60b0['outputFormat'][_0x5cd109(0x4f6,0x4f5,0x4fb,0x508)]??_0x22251b(0x4fa,_0x5115a3._0x1146b4,_0x5115a3._0x37699f,0x4da),'schema':_0x2d60b0['outputFormat'][_0x5cd109(_0x5115a3._0x37447c,0x51b,_0x5115a3._0x501a48,_0x5115a3._0x3971a6)],'strict':_0x2d60b0[_0x5cd109(_0x5115a3._0x2cec0d,0x4ff,_0x5115a3._0x17e428,0x508)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
|
1
|
+
(function(_0x375142,_0x42640b){const _0x508674={_0x4d9e11:0x147,_0x4b9162:0x13c,_0x4119c2:0x124,_0x452610:0x110,_0x11daa8:0x14a,_0x2b6796:0x135,_0x2a92f7:0x127,_0x421d42:0x12f,_0x4f1509:0x40a,_0x1f3dca:0x3f8,_0x4bcc7c:0x3f8,_0x19650d:0x412,_0x19b8fd:0x423,_0x17698c:0x112,_0x48c069:0x129,_0x4e01d2:0xf0,_0x32b4d7:0x12f,_0x2003ba:0xfb,_0x4d6f3a:0x123,_0x1fbeaa:0x3e1,_0x4e2ff4:0x3d9,_0x2fbf8c:0xe2,_0x29b7dd:0xfa,_0x207374:0x3d6,_0x3254ce:0x3e4},_0x1a8d9d={_0x370c37:0x2c4};function _0x23112a(_0x3cf43c,_0x12548d,_0x722ca4,_0x14f5bc){return _0x4f64(_0x3cf43c- -_0x1a8d9d._0x370c37,_0x722ca4);}const _0x3533eb=_0x375142();function _0x26da7b(_0x3e5f60,_0x17bc62,_0x399e6c,_0x5a277d){return _0x4f64(_0x17bc62-0x254,_0x5a277d);}while(!![]){try{const _0xa0892f=parseInt(_0x23112a(-0x12a,-_0x508674._0x4d9e11,-0x12b,-_0x508674._0x4b9162))/0x1+parseInt(_0x23112a(-0x128,-_0x508674._0x4119c2,-_0x508674._0x452610,-_0x508674._0x11daa8))/0x2+-parseInt(_0x23112a(-_0x508674._0x2b6796,-0x14b,-_0x508674._0x2a92f7,-_0x508674._0x421d42))/0x3*(-parseInt(_0x26da7b(_0x508674._0x4f1509,0x3f8,_0x508674._0x1f3dca,_0x508674._0x4f1509))/0x4)+parseInt(_0x26da7b(_0x508674._0x4bcc7c,_0x508674._0x19650d,0x410,0x3ff))/0x5*(parseInt(_0x26da7b(_0x508674._0x19b8fd,0x41b,0x425,0x437))/0x6)+-parseInt(_0x23112a(-_0x508674._0x17698c,-0x12c,-_0x508674._0x48c069,-_0x508674._0x4e01d2))/0x7*(parseInt(_0x26da7b(0x409,0x3f9,0x3d9,0x3e2))/0x8)+parseInt(_0x23112a(-0x114,-_0x508674._0x32b4d7,-_0x508674._0x2003ba,-_0x508674._0x4d6f3a))/0x9*(-parseInt(_0x26da7b(_0x508674._0x1fbeaa,0x3e1,_0x508674._0x4e2ff4,0x3d9))/0xa)+-parseInt(_0x23112a(-0x100,-_0x508674._0x2fbf8c,-_0x508674._0x29b7dd,-0x111))/0xb*(-parseInt(_0x26da7b(_0x508674._0x207374,0x3ea,_0x508674._0x3254ce,0x3e0))/0xc);if(_0xa0892f===_0x42640b)break;else _0x3533eb['push'](_0x3533eb['shift']());}catch(_0x26329a){_0x3533eb['push'](_0x3533eb['shift']());}}}(_0x1d32,0x673c5));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x3dd481){const _0x2bef1d={_0xf610f5:0x49a,_0x11ab8b:0x49b,_0xc8c3b7:0x56e,_0x57d56e:0x516,_0x3797bc:0x536,_0x4db861:0x523},_0x188c79={_0x5a49c3:0x2ec},_0x58a416={_0x544f6a:0x39e};function _0x189f70(_0xd23c67,_0x4f7780,_0x4d9174,_0x5dde8a){return _0x4f64(_0x4f7780-_0x58a416._0x544f6a,_0x5dde8a);}function _0xb813e1(_0xf11134,_0x1e8990,_0x338a34,_0x51b9e5){return _0x4f64(_0x1e8990-_0x188c79._0x5a49c3,_0x51b9e5);}return normalizeContent(_0x3dd481)[_0xb813e1(_0x2bef1d._0xf610f5,0x495,0x4b4,_0x2bef1d._0x11ab8b)](_0x5394e7=>_0x5394e7[_0xb813e1(0x49a,0x481,0x467,0x46e)]===_0xb813e1(0x49a,0x4b9,0x4c7,0x4b5))[_0x189f70(0x548,0x563,_0x2bef1d._0xc8c3b7,0x57c)](_0xb810e0=>_0xb810e0[_0xb813e1(0x4c3,0x4b9,0x4bd,0x4c8)])[_0x189f70(_0x2bef1d._0x57d56e,_0x2bef1d._0x3797bc,0x514,_0x2bef1d._0x4db861)]('\x0a\x0a');}function pushUserContentMessage(_0x1798f4,_0x40e57a,_0x466466){const _0x3e2bc8={_0x206a11:0x13a,_0x1308cf:0x148,_0xa02b7e:0x13c},_0x275a15={_0x5d4f44:0x306};function _0x4a44ec(_0x5add86,_0x10469f,_0x49a18e,_0x315766){return _0x4f64(_0x315766- -_0x275a15._0x5d4f44,_0x10469f);}function _0x5581bd(_0xc3220d,_0x2fe493,_0x23df50,_0x1eff67){return _0x4f64(_0xc3220d-0x37c,_0x1eff67);}if(_0x466466['length']===0x0)return;_0x1798f4[_0x4a44ec(-_0x3e2bc8._0x206a11,-_0x3e2bc8._0x1308cf,-0x145,-_0x3e2bc8._0x206a11)]({'type':_0x4a44ec(-0x15d,-0x125,-0x137,-_0x3e2bc8._0xa02b7e),'role':_0x40e57a,'content':_0x466466});}function hasSerializableToolUse(_0x3cd7b2){const _0x5e748f={_0x1ba311:0x4ac,_0x2cc549:0x4a0,_0x5571a5:0x31c,_0x1a6c94:0x344,_0x11cf37:0x328,_0x530d53:0x316};function _0x1b41e0(_0x3cd49e,_0x29ac5e,_0x5a5731,_0x5a3b20){return _0x4f64(_0x5a5731-0x30d,_0x3cd49e);}function _0x3aaa03(_0x59240f,_0x123ce4,_0x333c1c,_0x1f4c87){return _0x4f64(_0x1f4c87-0x17e,_0x59240f);}return _0x3cd7b2['id'][_0x1b41e0(0x495,_0x5e748f._0x1ba311,_0x5e748f._0x2cc549,0x49a)]()[_0x3aaa03(_0x5e748f._0x5571a5,_0x5e748f._0x1a6c94,0x30c,_0x5e748f._0x11cf37)]>0x0&&_0x3cd7b2['name'][_0x3aaa03(0x2f8,0x2f3,_0x5e748f._0x530d53,0x311)]()[_0x1b41e0(0x4d6,0x4b2,0x4b7,0x4c1)]>0x0;}function hasSerializableToolResult(_0x1190ba){const _0x3792cc={_0x464a13:0x3d,_0x5f08e5:0x5f,_0x5521e0:0x29,_0x392f6e:0x17,_0x3d9f5b:0x9,_0x4d6a5e:0x61,_0x532411:0x41},_0x1d3617={_0x36ef73:0x20b};function _0x2a51c1(_0x42aa77,_0x16c11c,_0x3f8c49,_0x5aa981){return _0x4f64(_0x16c11c- -_0x1d3617._0x36ef73,_0x5aa981);}function _0x5a0036(_0x2d833b,_0x40589f,_0x29e8be,_0x486fe4){return _0x4f64(_0x40589f- -0x17c,_0x2d833b);}return _0x1190ba[_0x5a0036(0x4a,_0x3792cc._0x464a13,_0x3792cc._0x5f08e5,_0x3792cc._0x5521e0)][_0x5a0036(0x30,_0x3792cc._0x392f6e,0x1c,_0x3792cc._0x3d9f5b)]()[_0x2a51c1(-0x62,-_0x3792cc._0x4d6a5e,-0x44,-_0x3792cc._0x532411)]>0x0;}function isResponseInputObject(_0x48fa06){const _0x46c38c={_0x30acc1:0xb6,_0x17c968:0xd0,_0x287d06:0x1cc,_0xd5e838:0x1e8,_0x11f8e4:0x1bb,_0x25ce07:0x1d7},_0x2e0661={_0x218c95:0xee},_0x21d133={_0x444dfe:0x32};if(typeof _0x48fa06!==_0x150f38(0xc1,_0x46c38c._0x30acc1,0xba,_0x46c38c._0x17c968)||_0x48fa06===null||Array[_0x498b26(_0x46c38c._0x287d06,_0x46c38c._0xd5e838,0x1ef,0x1d0)](_0x48fa06))return![];const _0x556773=_0x48fa06;function _0x498b26(_0x5acfb6,_0x1e8c84,_0x456366,_0x1a41ee){return _0x4f64(_0x1a41ee-_0x21d133._0x444dfe,_0x5acfb6);}function _0x150f38(_0x42f8db,_0x1e17f2,_0x1a7f21,_0x1d744c){return _0x4f64(_0x42f8db- -_0x2e0661._0x218c95,_0x1a7f21);}return typeof _0x556773[_0x498b26(0x1db,0x1d4,_0x46c38c._0x11f8e4,0x1c7)]===_0x498b26(0x1f6,_0x46c38c._0x25ce07,0x1d4,0x1d8);}function isImageToolResultBlock(_0x5801ec){const _0x3b039a={_0x122d32:0x15,_0x54265b:0xd,_0xa70672:0x19,_0x35d285:0x4,_0x2ba60a:0x1b,_0x29b82b:0xc,_0x215c80:0x5,_0x42ab56:0x26,_0x5f1700:0x5,_0x198f53:0x43e,_0x5df117:0x445,_0x2a5adf:0x459,_0x41daea:0x43b,_0x49b9ae:0x429,_0x4ae4dc:0x42f,_0x2a2bae:0x44f,_0x1e11c5:0x438,_0x574a7a:0x436,_0xa1f356:0x438,_0x3ca51c:0x42f,_0x55d988:0x435},_0x172dc9={_0x24211d:0x292},_0x370543={_0x2e08e9:0x19a};if(typeof _0x5801ec!==_0x514584(_0x3b039a._0x122d32,0x10,-_0x3b039a._0x54265b,_0x3b039a._0xa70672)||_0x5801ec===null||Array[_0x514584(_0x3b039a._0x35d285,-0x1b,-0xa,_0x3b039a._0x2ba60a)](_0x5801ec))return![];function _0x514584(_0x2aee51,_0x326c5c,_0x4e46bc,_0x17a661){return _0x4f64(_0x2aee51- -_0x370543._0x2e08e9,_0x17a661);}function _0x3c080d(_0x376b54,_0x4f18f0,_0x1d5ea2,_0x3babf8){return _0x4f64(_0x4f18f0-_0x172dc9._0x24211d,_0x3babf8);}const _0x1eb07d=_0x5801ec;return _0x1eb07d['type']==='image'&&_0x1eb07d[_0x514584(-0x3,-0x23,-_0x3b039a._0x29b82b,0x0)]?.[_0x514584(-_0x3b039a._0x215c80,-_0x3b039a._0x42ab56,_0x3b039a._0x5f1700,-0x24)]===_0x3c080d(0x447,_0x3b039a._0x198f53,_0x3b039a._0x5df117,_0x3b039a._0x2a5adf)&&typeof _0x1eb07d[_0x3c080d(_0x3b039a._0x41daea,_0x3b039a._0x49b9ae,0x449,0x42b)][_0x3c080d(_0x3b039a._0x4ae4dc,_0x3b039a._0x2a2bae,0x465,0x43a)]===_0x3c080d(0x41d,_0x3b039a._0x1e11c5,_0x3b039a._0x574a7a,0x432)&&typeof _0x1eb07d['source']['data']===_0x3c080d(0x42d,_0x3b039a._0xa1f356,_0x3b039a._0x3ca51c,_0x3b039a._0x55d988);}function getToolResultText(_0x570f2f){const _0x4d286d={_0x4d4346:0x62,_0x2e8a1d:0x4e,_0x5cd14a:0x41,_0xcd105d:0x47,_0x46174b:0x4b,_0x48b52e:0x34,_0x40edae:0x7f,_0xe72af2:0x60,_0x5ac84e:0x61,_0x1e85ba:0x7c,_0x521845:0x42,_0xfa2d42:0x18,_0x1786fe:0x2e},_0x4028bf={_0x1692d7:0x199,_0x2b6114:0x1b4};if(typeof _0x570f2f===_0x585ed2(-_0x4d286d._0x4d4346,-_0x4d286d._0x2e8a1d,-_0x4d286d._0x5cd14a,-0x53))return _0x570f2f;function _0x585ed2(_0x3438ee,_0x1ff26c,_0x42a841,_0x2de363){return _0x4f64(_0x2de363- -0x1f9,_0x1ff26c);}const _0x8b3842=_0x570f2f['filter'](_0x2e5635=>{const _0x24ee6c={_0x250876:0x90},_0x415b9b={_0x62f9bc:0x111,_0x2d322e:0x188};function _0x34447b(_0x44d831,_0x577ee8,_0x4b2544,_0x5204e8){return _0x585ed2(_0x44d831-0x12a,_0x5204e8,_0x4b2544-_0x415b9b._0x62f9bc,_0x4b2544- -_0x415b9b._0x2d322e);}function _0x386b6b(_0x5a6a77,_0x281e3b,_0x550d3a,_0x221753){return _0x585ed2(_0x5a6a77-0x15e,_0x550d3a,_0x550d3a-_0x24ee6c._0x250876,_0x221753- -0x15c);}return typeof _0x2e5635==='object'&&_0x2e5635!==null&&_0x2e5635[_0x34447b(-0x20c,-0x204,-0x1ec,-0x1d3)]===_0x34447b(-_0x4028bf._0x1692d7,-0x1c0,-_0x4028bf._0x2b6114,-0x1d4);})[_0x585ed2(-0x23,-_0x4d286d._0xcd105d,-_0x4d286d._0x46174b,-_0x4d286d._0x48b52e)](_0x1e1393=>_0x1e1393[_0x461e9d(-0xbe,-0xc7,-0xc2,-0xe0)])[_0x585ed2(-_0x4d286d._0x40edae,-0x44,-_0x4d286d._0xe72af2,-_0x4d286d._0x5ac84e)]('\x0a\x0a')[_0x585ed2(-0x5a,-_0x4d286d._0x1e85ba,-0x67,-0x66)]();function _0x461e9d(_0xe22947,_0x2739a7,_0x31aa3b,_0x4c3f63){return _0x4f64(_0x31aa3b- -0x28f,_0x4c3f63);}return _0x8b3842[_0x585ed2(-_0x4d286d._0x521845,-0x67,-0x55,-0x4f)]>0x0?_0x8b3842:_0x585ed2(-0x32,-0x45,-_0x4d286d._0xfa2d42,-_0x4d286d._0x1786fe);}function getToolResultImages(_0x38a939){const _0x5e72d0={_0x29e002:0x328,_0x7b7545:0x345,_0x559e76:0x6f,_0x16a340:0x95,_0x3c9db5:0x78},_0x3b9d11={_0x360b1c:0x131};function _0x56805c(_0x178083,_0x503278,_0x47235f,_0x31b573){return _0x4f64(_0x31b573- -_0x3b9d11._0x360b1c,_0x47235f);}function _0x45bd12(_0x1f4793,_0x24461f,_0x3256d9,_0xbb6c3){return _0x4f64(_0x1f4793-0x18a,_0xbb6c3);}return Array[_0x45bd12(_0x5e72d0._0x29e002,0x31e,_0x5e72d0._0x7b7545,0x316)](_0x38a939)?_0x38a939[_0x56805c(0x74,_0x5e72d0._0x559e76,_0x5e72d0._0x16a340,_0x5e72d0._0x3c9db5)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x4a1f2f){const _0x4f8f25={_0x2a5cd3:0x55c,_0x2497dc:0x57f,_0x42aa66:0x59b},_0x271e1e={_0x478e2c:0x3ca};function _0x1dcf17(_0x32bf6f,_0x375048,_0x7e3ad9,_0x241859){return _0x4f64(_0x32bf6f-_0x271e1e._0x478e2c,_0x241859);}return _0x4a1f2f['reasoning']?.[_0x1dcf17(0x57b,_0x4f8f25._0x2a5cd3,_0x4f8f25._0x2497dc,_0x4f8f25._0x42aa66)]??'user-visible';}function createOpenAiResponsesReasoning(_0x39d0ee){const _0x29da70={_0x3b71ec:0x34,_0x25a503:0x5e,_0xb06e1f:0x49,_0x793bb1:0x49,_0x28b46d:0x55,_0x5c4e9f:0x63,_0x34e3a7:0x74,_0xb5cefe:0x8c,_0x27b845:0x5d,_0x1ef1d6:0x70,_0x205eeb:0x5f,_0x73f42d:0x81,_0x5b463c:0x91,_0x259986:0x75,_0x5e787c:0x24,_0x3734d6:0x46,_0x5cc7ce:0x16,_0x1929c9:0x39,_0x125f45:0x26,_0x2f8a5c:0x61,_0x13afaa:0x6b,_0x5aac02:0x93},_0x6f094b={_0x1aabed:0x21d},_0x2bc42d=resolveOpenAiReasoningConfig(_0x39d0ee['reasoning']);if(!_0x2bc42d)return{};function _0x1c5b8c(_0x45a341,_0x49f754,_0x43b7be,_0x11cb42){return _0x4f64(_0x11cb42- -0x162,_0x45a341);}const _0x4dbb6a={},_0xccd69b=_0x39d0ee['reasoning']?.[_0x1c5b8c(_0x29da70._0x3b71ec,_0x29da70._0x25a503,0x30,_0x29da70._0xb06e1f)]!==void 0x0,_0x362e9e=(!_0xccd69b&&_0x1c5b8c(0x4c,_0x29da70._0x793bb1,_0x29da70._0x28b46d,0x54)in _0x2bc42d?_0x2bc42d[_0x1c5b8c(0x40,0x76,_0x29da70._0x5c4e9f,0x54)]:void 0x0)??(resolveReasoningVisibility(_0x39d0ee)===_0x328fa4(-_0x29da70._0x34e3a7,-_0x29da70._0xb5cefe,-0x85,-0xa8)?_0x328fa4(-_0x29da70._0x27b845,-_0x29da70._0x1ef1d6,-_0x29da70._0x205eeb,-_0x29da70._0x73f42d):void 0x0);_0x2bc42d[_0x328fa4(-_0x29da70._0x5b463c,-_0x29da70._0x259986,-_0x29da70._0x27b845,-0x5e)]&&(_0x4dbb6a[_0x1c5b8c(0x3d,_0x29da70._0x5e787c,0x27,_0x29da70._0x3734d6)]=_0x2bc42d['effort']);function _0x328fa4(_0x1793cf,_0x389b59,_0x3fb1df,_0x182198){return _0x4f64(_0x389b59- -_0x6f094b._0x1aabed,_0x3fb1df);}return _0x362e9e&&(_0x4dbb6a['summary']=_0x362e9e),{...!_0xccd69b&&'includeEncryptedContent'in _0x2bc42d&&_0x2bc42d[_0x1c5b8c(_0x29da70._0x5cc7ce,_0x29da70._0x1929c9,_0x29da70._0x125f45,0x29)]===![]?{}:{'include':[_0x1c5b8c(0x58,0x44,0x48,0x66)]},...Object['keys'](_0x4dbb6a)[_0x328fa4(-_0x29da70._0x2f8a5c,-0x73,-_0x29da70._0x13afaa,-_0x29da70._0x5aac02)]>0x0?{'reasoning':_0x4dbb6a}:{}};}function pushAssistantProviderState(_0x4f1b0,_0x5aae8d,_0x1a1e98){const _0x50b208={_0x3a658b:0x125,_0x25bbe9:0x111,_0x32487c:0x14b,_0x1c6435:0x113,_0x2fb410:0x14c,_0x28ed3e:0x136,_0x3cb9a3:0x133,_0x45e1be:0x11c,_0x168dba:0x109,_0x590007:0x14a,_0x113f3a:0x167,_0x12ae6d:0x175,_0xe5c0f1:0x187,_0x3e9a66:0x143,_0x452424:0x142,_0x4c5420:0x11a,_0x430641:0x127,_0x4e82b6:0x145,_0xd90e22:0x17f,_0x3157eb:0x173,_0x315580:0x18c,_0x36bf3a:0x154,_0x1ff027:0x157},_0x5ba436={_0x10f058:0x8e};if(_0x5aae8d[_0x27711c(0x130,_0x50b208._0x3a658b,_0x50b208._0x25bbe9,0x12b)]!==_0x27711c(_0x50b208._0x32487c,0x120,0x12d,_0x50b208._0x1c6435))return![];if(!isProviderStateCompatible(_0x5aae8d,_0x1a1e98))return![];const _0x161d35=_0x5aae8d['providerState']?.[_0x27711c(_0x50b208._0x2fb410,0x150,0x131,_0x50b208._0x28ed3e)]??[];function _0x3d4e26(_0xe61f63,_0x41ddea,_0x3a9789,_0x5413fc){return _0x4f64(_0x3a9789- -0x329,_0xe61f63);}if(_0x161d35[_0x27711c(_0x50b208._0x3cb9a3,0x106,_0x50b208._0x45e1be,_0x50b208._0x168dba)]===0x0)return![];for(const _0x586fba of _0x161d35){if(isResponseInputObject(_0x586fba)){const _0x3edca2=structuredClone(_0x586fba);delete _0x3edca2[_0x3d4e26(-0x146,-_0x50b208._0x590007,-_0x50b208._0x113f3a,-0x173)],_0x3edca2[_0x3d4e26(-_0x50b208._0x12ae6d,-0x1aa,-0x194,-_0x50b208._0xe5c0f1)]===_0x27711c(_0x50b208._0x3e9a66,_0x50b208._0x452424,0x129,_0x50b208._0x4c5420)&&!Array['isArray'](_0x3edca2[_0x27711c(_0x50b208._0x430641,0x12f,0x128,_0x50b208._0x4e82b6)])&&(_0x3edca2[_0x3d4e26(-0x166,-_0x50b208._0xd90e22,-_0x50b208._0x3157eb,-_0x50b208._0x315580)]=[]),_0x4f1b0[_0x3d4e26(-_0x50b208._0x36bf3a,-_0x50b208._0x1ff027,-0x15d,-0x15a)](_0x3edca2);}}function _0x27711c(_0x109143,_0x8eb130,_0x3ec13f,_0x320725){return _0x4f64(_0x3ec13f- -_0x5ba436._0x10f058,_0x109143);}return!![];}function toOpenAiResponsesRequest(_0x32bec5){const _0x384d8b={_0x500b1b:0x173,_0x32941f:0x152,_0x670ecc:0x182,_0x1823f2:0x4cc,_0x15e960:0x4bf,_0x5cd77c:0x4ca,_0x365665:0x168,_0x66d3c1:0x151,_0x320242:0x4e1,_0x5e5a59:0x4ef,_0x2c6a6a:0x50f,_0x61f1a3:0x4d4,_0x558366:0x4f0,_0x1c3339:0x4d6,_0x4f989a:0x4fa,_0x515001:0x4e2,_0x256c1d:0x510,_0x59f1e9:0x502,_0x3684dc:0x4e3,_0x3fd57b:0x515,_0x16ef85:0x4f6,_0x135ffb:0x181,_0x32737e:0x4c7,_0x5e8d22:0x14a,_0x477867:0x17b,_0x530b42:0x1ad,_0x415cd1:0x18f,_0x3a5e47:0x16e,_0x5391c3:0x4d1,_0x567719:0x4de,_0x55e5d6:0x18c,_0x2731eb:0x4c9,_0x2f2f2e:0x4fd,_0x32d76e:0x15c,_0x47758d:0x16f,_0x112f36:0x4e7,_0x14b2c9:0x188,_0x514206:0x1a3,_0x12135d:0x188,_0x52b822:0x4f8,_0x266a5f:0x4fe,_0x3c3b93:0x4df,_0x175ee9:0x4e3,_0x57924c:0x4cf,_0x7123a0:0x4d6,_0x22b13a:0x152,_0xa547e2:0x14b,_0x2da4c2:0x183,_0xe065f6:0x4ed,_0x45403a:0x4ee,_0x19b77f:0x4ce,_0xf84547:0x4cd,_0x3b7cb9:0x17a,_0x792470:0x149,_0x38f50e:0x15f,_0x555773:0x170,_0x5b5f56:0x15f,_0x76ccfa:0x4f8,_0x4e4fb9:0x501,_0x4db7e6:0x509,_0x46dc56:0x194,_0x4f7a57:0x199,_0x2c9840:0x177,_0x718e0f:0x196,_0x371fdb:0x4fb,_0x1f167b:0x510,_0x2fb42f:0x4d8,_0x29ff1b:0x4dc,_0x4fdfa6:0x4fa,_0x17fcbb:0x4f4,_0x1f6140:0x4ed,_0x1150b9:0x4d5,_0x57cdef:0x4c3,_0x1dbd3d:0x4c8,_0x3191ec:0x4d6,_0x274d0c:0x4d2,_0x15c653:0x4b6,_0x38d85a:0x4d0,_0x36d442:0x4c9,_0x5608f5:0x4bf,_0x3c432b:0x160,_0x39bf55:0x514,_0xdf429c:0x4bd,_0x29063e:0x185,_0x5d6f02:0x4c9,_0x5c25a1:0x4e4,_0x5e675a:0x4ea,_0x11ed96:0x18e},_0x1df8f6={_0x571fa2:0x185,_0x46f4aa:0x1a3,_0x5ed710:0x196,_0x42c21a:0x19b,_0xfbfd1e:0x1af,_0x52a96e:0x175,_0x32206f:0x17f,_0x379796:0x16b},_0x5ef073={_0x3e6d9b:0x1e5},_0xbe744b={_0x106d5d:0x31},_0x3db276=[];function _0x3ec8cc(_0x20143b,_0x2b5865,_0x392c60,_0x352c7c){return _0x4f64(_0x20143b-0x335,_0x392c60);}for(const _0x495fd9 of _0x32bec5[_0x599c49(_0x384d8b._0x500b1b,_0x384d8b._0x32941f,_0x384d8b._0x670ecc,0x172)]){if(pushAssistantProviderState(_0x3db276,_0x495fd9,_0x32bec5))continue;const _0x16da4f=[];for(const _0xfc234 of normalizeContent(_0x495fd9[_0x3ec8cc(0x4c5,_0x384d8b._0x1823f2,_0x384d8b._0x15e960,_0x384d8b._0x5cd77c)])){if(_0xfc234[_0x599c49(_0x384d8b._0x365665,_0x384d8b._0x66d3c1,0x149,0x164)]===_0x3ec8cc(0x502,0x4f0,0x4e2,_0x384d8b._0x320242)){_0x16da4f[_0x3ec8cc(0x501,_0x384d8b._0x5e5a59,0x4eb,_0x384d8b._0x2c6a6a)](_0x495fd9[_0x3ec8cc(_0x384d8b._0x61f1a3,0x4c2,0x4c6,0x4c6)]===_0x3ec8cc(_0x384d8b._0x558366,0x508,_0x384d8b._0x1c3339,0x4e1)?{'type':_0x3ec8cc(0x4fe,_0x384d8b._0x4f989a,_0x384d8b._0x515001,_0x384d8b._0x256c1d),'text':_0xfc234[_0x3ec8cc(_0x384d8b._0x59f1e9,_0x384d8b._0x3684dc,_0x384d8b._0x3fd57b,_0x384d8b._0x16ef85)]}:{'type':'input_text','text':_0xfc234[_0x599c49(_0x384d8b._0x135ffb,0x19f,0x19e,0x19c)]});continue;}if(_0xfc234[_0x3ec8cc(0x4ca,0x4d5,_0x384d8b._0x32737e,0x4da)]===_0x599c49(_0x384d8b._0x5e8d22,_0x384d8b._0x477867,0x14f,0x15b)){_0x16da4f[_0x3ec8cc(0x501,0x51b,0x4e4,0x4e1)]({'type':_0x599c49(_0x384d8b._0x530b42,_0x384d8b._0x415cd1,_0x384d8b._0x3a5e47,0x18b),'image_url':'data:'+_0xfc234[_0x3ec8cc(0x4cc,0x4e8,_0x384d8b._0x5391c3,_0x384d8b._0x567719)][_0x599c49(0x1a8,0x19c,0x173,_0x384d8b._0x55e5d6)]+_0x3ec8cc(0x4e8,_0x384d8b._0x2731eb,0x4cc,_0x384d8b._0x2f2f2e)+_0xfc234['source']['data']});continue;}pushUserContentMessage(_0x3db276,_0x495fd9[_0x3ec8cc(0x4d4,0x4e0,0x4be,0x4c1)],_0x16da4f[_0x599c49(0x169,0x16a,_0x384d8b._0x32d76e,_0x384d8b._0x47758d)](0x0));if(_0xfc234['type']===_0x3ec8cc(0x4f6,_0x384d8b._0x112f36,0x4d8,0x4df)){if(!hasSerializableToolUse(_0xfc234))continue;_0x3db276[_0x599c49(_0x384d8b._0x14b2c9,_0x384d8b._0x514206,_0x384d8b._0x12135d,0x19b)]({'type':_0x3ec8cc(_0x384d8b._0x52b822,0x4ed,_0x384d8b._0x266a5f,_0x384d8b._0x3c3b93),'call_id':_0xfc234['id'],'name':_0xfc234[_0x3ec8cc(_0x384d8b._0x175ee9,_0x384d8b._0x57924c,_0x384d8b._0x59f1e9,_0x384d8b._0x1823f2)],'arguments':JSON[_0x3ec8cc(_0x384d8b._0x7123a0,0x4b7,0x4f7,0x4d3)](_0xfc234['input']??{})});continue;}if(_0xfc234[_0x599c49(_0x384d8b._0x22b13a,_0x384d8b._0xa547e2,_0x384d8b._0x2da4c2,0x164)]===_0x3ec8cc(_0x384d8b._0xe065f6,_0x384d8b._0x45403a,_0x384d8b._0x19b77f,_0x384d8b._0xf84547)){if(!hasSerializableToolResult(_0xfc234))continue;const _0x16d3ba=getToolResultText(_0xfc234[_0x599c49(_0x384d8b._0x3b7cb9,0x152,_0x384d8b._0x792470,_0x384d8b._0x38f50e)]);_0x3db276['push']({'type':_0x3ec8cc(0x4f5,0x50a,0x4db,0x4e0),'call_id':_0xfc234[_0x599c49(0x1a2,0x18c,0x179,0x188)],'output':_0x16d3ba});const _0xfda327=getToolResultImages(_0xfc234[_0x599c49(0x161,_0x384d8b._0x555773,0x149,_0x384d8b._0x5b5f56)]);_0xfda327[_0x3ec8cc(0x4df,0x4d4,_0x384d8b._0x76ccfa,0x4d2)]>0x0&&_0x3db276[_0x3ec8cc(_0x384d8b._0x4e4fb9,0x50a,0x501,_0x384d8b._0x4db7e6)]({'type':_0x599c49(0x19d,0x184,_0x384d8b._0x46dc56,_0x384d8b._0x4f7a57),'role':'user','content':[{'type':_0x599c49(_0x384d8b._0x415cd1,_0x384d8b._0x2c9840,_0x384d8b._0x718e0f,0x189),'text':_0x3ec8cc(_0x384d8b._0x371fdb,_0x384d8b._0x1f167b,_0x384d8b._0x320242,0x4eb)+_0xfc234[_0x3ec8cc(_0x384d8b._0x45403a,0x4fe,_0x384d8b._0x2fb42f,_0x384d8b._0x29ff1b)]+'.'},..._0xfda327[_0x3ec8cc(_0x384d8b._0x4fdfa6,_0x384d8b._0x17fcbb,0x505,0x509)](_0x93d609=>({'type':_0x3ec8cc(0x4f1,0x4e5,0x50f,0x4e4),'image_url':_0x599c49(0x146,0x137,0x163,0x159)+_0x93d609['source'][_0x3ec8cc(0x4f2,0x510,0x4d0,0x4e2)]+_0x599c49(0x192,0x16c,0x198,0x182)+_0x93d609[_0x3ec8cc(0x4cc,0x4ca,0x4d5,0x4e3)]['data']}))]});}}pushUserContentMessage(_0x3db276,_0x495fd9[_0x3ec8cc(0x4d4,_0x384d8b._0x1f6140,0x4ce,_0x384d8b._0x1150b9)],_0x16da4f);}function _0x599c49(_0x1fd1ae,_0x43291e,_0x4b503b,_0x56e687){return _0x4f64(_0x56e687- -_0xbe744b._0x106d5d,_0x1fd1ae);}return{...createOpenAiResponsesReasoning(_0x32bec5),'model':_0x32bec5[_0x3ec8cc(_0x384d8b._0x57cdef,_0x384d8b._0x1c3339,_0x384d8b._0x1dbd3d,_0x384d8b._0x3191ec)],'instructions':systemToInstructions(_0x32bec5[_0x3ec8cc(_0x384d8b._0x274d0c,0x4ea,0x4be,_0x384d8b._0x15c653)]),'input':_0x3db276,..._0x32bec5[_0x3ec8cc(_0x384d8b._0x38d85a,_0x384d8b._0x36d442,_0x384d8b._0x5608f5,0x4bc)]!==void 0x0?{'max_output_tokens':_0x32bec5[_0x3ec8cc(0x4d0,0x4cd,_0x384d8b._0x515001,0x4d6)]}:{},'tools':_0x32bec5[_0x599c49(_0x384d8b._0x3c432b,0x187,0x15e,0x171)][_0x3ec8cc(0x4fa,_0x384d8b._0x39bf55,0x4fe,0x503)](_0x242bcc=>{const _0x273c80={_0x2c9953:0x34d};function _0x1540a9(_0x473141,_0x2bc978,_0x50c7c6,_0x301271){return _0x3ec8cc(_0x2bc978- -0x3a9,_0x2bc978-0x18e,_0x473141,_0x301271-_0x5ef073._0x3e6d9b);}function _0x101e08(_0x29ea3e,_0x23bf98,_0x42c662,_0x3dd3f4){return _0x3ec8cc(_0x29ea3e- -_0x273c80._0x2c9953,_0x23bf98-0x15c,_0x3dd3f4,_0x3dd3f4-0x18b);}return{'type':_0x101e08(0x18f,0x1a2,_0x1df8f6._0x571fa2,_0x1df8f6._0x46f4aa),'name':_0x242bcc[_0x101e08(_0x1df8f6._0x5ed710,_0x1df8f6._0x42c21a,_0x1df8f6._0xfbfd1e,_0x1df8f6._0x52a96e)],'description':_0x242bcc[_0x101e08(0x17a,_0x1df8f6._0x32206f,0x18b,_0x1df8f6._0x379796)],'parameters':_0x242bcc['input_schema']};}),..._0x32bec5[_0x3ec8cc(0x4ce,_0x384d8b._0x57cdef,_0x384d8b._0xdf429c,0x4d9)]?{'text':{'format':{'type':'json_schema','name':_0x32bec5['outputFormat'][_0x599c49(0x169,_0x384d8b._0x46dc56,_0x384d8b._0x29063e,0x17d)]??_0x3ec8cc(_0x384d8b._0x5d6f02,_0x384d8b._0x5c25a1,0x4bd,0x4e9),'schema':_0x32bec5['outputFormat'][_0x3ec8cc(_0x384d8b._0x5e675a,_0x384d8b._0x7123a0,0x4e3,0x4ef)],'strict':_0x32bec5[_0x3ec8cc(0x4ce,0x4cc,0x4e5,0x4d5)][_0x599c49(0x167,_0x384d8b._0x11ed96,_0x384d8b._0x555773,0x183)]??!![]}}}:{}};}function _0x1d32(){const _0xadd699=['BMfTzq','B2jQzwn0','mtmWmJm5uvLLy1Hy','DMLZAwjPBgL0Eq','ndLjteDgquW','o2jHC2u2ncW','C3rYAwn0','C2nOzw1H','C3vTBwfYEq','CMvHC29UAw5N','Dg9VBf9Yzxn1Bhq','Dg9VBf91C2vFAwq','Aw5WDxrFDgv4Da','yxnZAxn0yw50','Aw5WDxrFAw1Hz2u','BwvKAwfFDhLWzq','nxHLDgPVDq','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','zNvUy3rPB25Fy2fSBf9VDxrWDxq','Dg9VBf91C2u','C3rHDhvZ','zNvUy3rPB25Fy2fSBa','mZnsq3D0yMW','BwfW','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','mJeZntuWogzerffdzq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','B3v0Chv0x3rLEhq','BwvZC2fNzq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','ChvZAa','Dgv4Da','zgf0ytO','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','Aw1Hz2u','mJaWtvzMq0jI','Bw9KzwW','m3nmANLWqW','y29UDgvUDa','DxnLCI12AxnPyMXL','zgvZy3jPChrPB24','DhjPBq','C3rYDwn0DxjLzf9VDxrWDxq','DhLWzq','mtu4mda4ogXIyKfiqG','C291CMnL','AM9PBG','B3v0Chv0rM9YBwf0','mtm4otuWAuzKv0jV','Bwf4vg9Rzw5Z','mZGZnde4AvL0zKr4','C3LZDgvT','AxnbCNjHEq','CM9Szq','C3bSAwnL','C3rYAw5NAwz5','Dg9VBhm','BwvZC2fNzxm','ndaYodeYC3DKzuPb','ntm3mtC2yMjzuefS','C3rYAw5N','zNvUy3rPB24','zwzMB3j0','zMLSDgvY','BgvUz3rO','y29KzxG','yMfZzty0','yxv0BW'];_0x1d32=function(){return _0xadd699;};return _0x1d32();}function _0x4f64(_0x1d2fed,_0x5ed6f7){_0x1d2fed=_0x1d2fed-0x18a;const _0x1d320c=_0x1d32();let _0x4f646f=_0x1d320c[_0x1d2fed];if(_0x4f64['iKJTPi']===undefined){var _0x364c47=function(_0x432fad){const _0xe828d4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3dd481='',_0x5394e7='';for(let _0xb810e0=0x0,_0x1798f4,_0x40e57a,_0x466466=0x0;_0x40e57a=_0x432fad['charAt'](_0x466466++);~_0x40e57a&&(_0x1798f4=_0xb810e0%0x4?_0x1798f4*0x40+_0x40e57a:_0x40e57a,_0xb810e0++%0x4)?_0x3dd481+=String['fromCharCode'](0xff&_0x1798f4>>(-0x2*_0xb810e0&0x6)):0x0){_0x40e57a=_0xe828d4['indexOf'](_0x40e57a);}for(let _0x3cd7b2=0x0,_0x1190ba=_0x3dd481['length'];_0x3cd7b2<_0x1190ba;_0x3cd7b2++){_0x5394e7+='%'+('00'+_0x3dd481['charCodeAt'](_0x3cd7b2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5394e7);};_0x4f64['rEhwlk']=_0x364c47,_0x4f64['GWqXsl']={},_0x4f64['iKJTPi']=!![];}const _0x5046e7=_0x1d320c[0x0],_0x482324=_0x1d2fed+_0x5046e7,_0x4e36f6=_0x4f64['GWqXsl'][_0x482324];return!_0x4e36f6?(_0x4f646f=_0x4f64['rEhwlk'](_0x4f646f),_0x4f64['GWqXsl'][_0x482324]=_0x4f646f):_0x4f646f=_0x4e36f6,_0x4f646f;}export{toOpenAiResponsesRequest};
|