@nuvin/agent-core 0.0.0-rc.3 → 0.0.0-rc.5
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.d.ts +28 -525
- package/dist/agent/index.js +1 -1
- package/dist/chunk-G2FR4UGO.js +1 -1
- package/dist/chunk-LXQDGX4K.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-P54V754C.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +23 -319
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +330 -634
- package/dist/models/index.js +1 -1
- package/dist/shared/index.d.ts +14 -709
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +583 -967
- package/dist/tools/index.js +1 -1
- package/package.json +9 -1
- package/dist/chunk-VFTQW5WK.js +0 -1
package/dist/chunk-G2FR4UGO.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x14997a,_0x266482){const _0x348292={_0xf0cc99:0x49b,_0x13521c:0x4b1,_0x57bc40:0x4a7,_0x343ca5:0x4ad,_0x557a06:0x4ba,_0x580891:0x155,_0x1cfaa8:0x147,_0x140fff:0x4b2,_0x58de46:0x4b0,_0x5cf197:0x14e,_0x422a8d:0x131,_0x246033:0x137,_0x332ab1:0x13f,_0x160200:0x139,_0x126ea4:0x13c,_0x683e70:0x150},_0x552eb8={_0x4a1b12:0x2e2};function _0x27800b(_0x596a9b,_0xfbff50,_0x2d57ca,_0x1f53da){return _0x5b2f(_0x596a9b- -_0x552eb8._0x4a1b12,_0x2d57ca);}const _0x497e10=_0x14997a();function _0x56a373(_0x5b1681,_0x507b60,_0x987b38,_0x395f05){return _0x5b2f(_0x5b1681-0x317,_0x507b60);}while(!![]){try{const _0x295b74=-parseInt(_0x56a373(0x498,0x482,0x4aa,0x4a9))/0x1*(-parseInt(_0x27800b(-0x159,-0x14f,-0x158,-0x166))/0x2)+-parseInt(_0x56a373(_0x348292._0xf0cc99,_0x348292._0x13521c,_0x348292._0x57bc40,0x490))/0x3*(parseInt(_0x56a373(_0x348292._0x343ca5,0x4b4,_0x348292._0x557a06,0x4be))/0x4)+-parseInt(_0x27800b(-0x164,-_0x348292._0x580891,-0x165,-0x179))/0x5*(parseInt(_0x27800b(-_0x348292._0x1cfaa8,-0x140,-0x13c,-0x130))/0x6)+-parseInt(_0x27800b(-0x150,-0x146,-0x169,-0x157))/0x7+parseInt(_0x56a373(0x4b3,_0x348292._0x140fff,0x49f,_0x348292._0x58de46))/0x8+parseInt(_0x27800b(-0x136,-0x13b,-0x122,-_0x348292._0x5cf197))/0x9*(-parseInt(_0x27800b(-0x14b,-_0x348292._0x422a8d,-_0x348292._0x246033,-_0x348292._0x332ab1))/0xa)+-parseInt(_0x27800b(-_0x348292._0x160200,-0x151,-0x13c,-0x123))/0xb*(-parseInt(_0x27800b(-_0x348292._0x126ea4,-0x12b,-_0x348292._0x683e70,-0x141))/0xc);if(_0x295b74===_0x266482)break;else _0x497e10['push'](_0x497e10['shift']());}catch(_0x19ceea){_0x497e10['push'](_0x497e10['shift']());}}}(_0x4ad9,0x2bd2d));function createTextBlock(_0x584b36){const _0x1b8cec={_0x44f968:0x8};function _0x166aa2(_0xc6fa62,_0x171dc3,_0x555cfe,_0x17b6a3){return _0x5b2f(_0xc6fa62- -0x1a1,_0x17b6a3);}return{'type':_0x166aa2(-0xc,-0x1a,-0x10,-_0x1b8cec._0x44f968),'text':_0x584b36};}function normalizeTextBlock(_0xb818cd){const _0xb2f708={_0x2d1979:0x223,_0x2f4eb9:0x21e},_0x219abd={_0x2d47d7:0x3b8};function _0x54d150(_0x502a3c,_0x6ae535,_0x1f5221,_0x6e32ee){return _0x5b2f(_0x1f5221- -_0x219abd._0x2d47d7,_0x502a3c);}return createTextBlock(_0xb818cd[_0x54d150(-0x235,-0x20c,-_0xb2f708._0x2d1979,-_0xb2f708._0x2f4eb9)]??'');}function normalizeContent(_0x1c85b3){const _0x1792e2={_0x19b3e5:0x237,_0x31f9ad:0x227},_0x5564e0={_0x27a702:0x241,_0x58aa57:0x223,_0x390bcc:0x235,_0x43e9d7:0x251,_0x369d97:0x252},_0x339bb8={_0x455860:0x99},_0x13d578={_0x3a985f:0x3ca};if(typeof _0x1c85b3==='string')return[createTextBlock(_0x1c85b3)];if(!Array['isArray'](_0x1c85b3))return[];function _0x1a83b1(_0x3aab40,_0x128aa9,_0x439e91,_0x33f478){return _0x5b2f(_0x3aab40- -_0x13d578._0x3a985f,_0x33f478);}return _0x1c85b3[_0x1a83b1(-_0x1792e2._0x19b3e5,-0x227,-0x21c,-_0x1792e2._0x31f9ad)](_0x43b89b=>{const _0x32c05d={_0x279eef:0x14c,_0x50ac40:0x16e};function _0x499ef9(_0x5685e5,_0x5549ad,_0x55c0ac,_0x4c9ee8){return _0x1a83b1(_0x55c0ac-0x6f4,_0x5549ad-_0x32c05d._0x279eef,_0x55c0ac-_0x32c05d._0x50ac40,_0x5549ad);}function _0x2216d6(_0x3d34ca,_0x3143de,_0x4d4af2,_0x2f7164){return _0x1a83b1(_0x4d4af2- -0xc,_0x3143de-0x8a,_0x4d4af2-_0x339bb8._0x455860,_0x3143de);}if(_0x43b89b[_0x2216d6(-_0x5564e0._0x27a702,-_0x5564e0._0x58aa57,-_0x5564e0._0x390bcc,-_0x5564e0._0x43e9d7)]===_0x2216d6(-0x24b,-_0x5564e0._0x369d97,-0x241,-0x229))return normalizeTextBlock(_0x43b89b);return structuredClone(_0x43b89b);});}function normalizeSystem(_0x232c9c=[]){const _0x918765={_0x4ba04c:0x242,_0x416561:0x231};function _0x3db068(_0x1fe49b,_0x38eefd,_0x2b2cce,_0x444fb9){return _0x5b2f(_0x38eefd- -0x3c2,_0x444fb9);}return normalizeContent(_0x232c9c)[_0x3db068(-0x23f,-_0x918765._0x4ba04c,-0x22c,-_0x918765._0x416561)](_0x85dba9=>_0x85dba9['type']==='text');}function normalizeMessage(_0x52bb25){const _0x473851={_0xe8cda3:0x2e4,_0x4f3ab8:0x2d9,_0x185e59:0x192,_0x38186d:0x2d2,_0x5c2561:0x2b9,_0x140d2b:0x2c5},_0x4622cb={_0x1b448a:0x14d};function _0xbf356c(_0x16a8bb,_0xff7d05,_0x4eaee7,_0x508484){return _0x5b2f(_0x16a8bb- -0x7,_0x4eaee7);}function _0x423ea9(_0x19321f,_0x1c7d97,_0x33dce2,_0x5544a8){return _0x5b2f(_0x5544a8-_0x4622cb._0x1b448a,_0x33dce2);}return{...typeof _0x52bb25['id']===_0x423ea9(0x2ee,0x2cb,_0x473851._0xe8cda3,_0x473851._0x4f3ab8)?{'id':_0x52bb25['id']}:{},'role':_0x52bb25[_0xbf356c(_0x473851._0x185e59,0x1a2,0x1a5,0x19a)],'content':normalizeContent(_0x52bb25['content']),..._0x52bb25[_0x423ea9(_0x473851._0x38186d,_0x473851._0x5c2561,_0x473851._0x140d2b,0x2cf)]?{'providerState':structuredClone(_0x52bb25['providerState'])}:{}};}function compileRequest(_0x4e264b){const _0x23ad24={_0x3c81ed:0x94,_0x2a9678:0x96,_0x27d225:0xa8,_0x25c0cf:0xa6,_0x423561:0x7d,_0x1167d7:0xf4,_0x104f81:0xa3,_0x34c569:0xdf,_0x5801dc:0xef},_0x567912={_0x313245:0x10a},_0x3c01e6={_0x2a5075:0x28c};function _0x3a95c9(_0x46ce5c,_0x4c166d,_0x3b1f79,_0x2fca5c){return _0x5b2f(_0x2fca5c- -_0x3c01e6._0x2a5075,_0x4c166d);}function _0x5de85d(_0x1c7d81,_0x20d5a6,_0x56cdc3,_0xa648e9){return _0x5b2f(_0x20d5a6- -_0x567912._0x313245,_0xa648e9);}return{'model':_0x4e264b['model']??'claude-sonnet-4-20250514','max_tokens':_0x4e264b['max_tokens']??0x400,..._0x4e264b[_0x5de85d(_0x23ad24._0x3c81ed,_0x23ad24._0x2a9678,_0x23ad24._0x27d225,0x7f)]?{'reasoning':structuredClone(_0x4e264b[_0x5de85d(_0x23ad24._0x25c0cf,_0x23ad24._0x2a9678,_0x23ad24._0x423561,0xa7)])}:{},'system':normalizeSystem(_0x4e264b[_0x3a95c9(-_0x23ad24._0x1167d7,-0xf2,-0xdd,-0xe2)]),'messages':_0x4e264b[_0x5de85d(0xab,_0x23ad24._0x104f81,0xa6,0x8b)]['map'](normalizeMessage),'tools':structuredClone(_0x4e264b['tools']??[]),'metadata':{'session_id':_0x4e264b['sessionId'],'turn_id':_0x4e264b[_0x3a95c9(-_0x23ad24._0x34c569,-0xd9,-0xea,-_0x23ad24._0x5801dc)]}};}function toChatRequest(_0x465fd4){const _0x22fe4a={_0x4546db:0x510,_0x2cd1a3:0x51c,_0x135073:0x509,_0x560d7b:0x508,_0x584e33:0x521,_0x40709e:0x344,_0x2233e0:0x314,_0x3d5847:0x32a,_0x30c05f:0x326,_0x25153a:0x319,_0x54fc3f:0x30a,_0x1fa0d7:0x2fe,_0xc77168:0x4ec,_0x4127d8:0x4f4},_0x53dcf3={_0x5dfba2:0x18a};function _0x1835e3(_0x26bed4,_0x3ce0f6,_0x33d2e8,_0x5b3d00){return _0x5b2f(_0x33d2e8-_0x53dcf3._0x5dfba2,_0x26bed4);}function _0x9b47a1(_0x5d8d09,_0x4ee04b,_0x5b9fe8,_0x25b8fb){return _0x5b2f(_0x5d8d09-0x365,_0x4ee04b);}return{'model':_0x465fd4[_0x9b47a1(_0x22fe4a._0x4546db,0x4f9,0x519,_0x22fe4a._0x2cd1a3)],'maxTokens':_0x465fd4[_0x9b47a1(_0x22fe4a._0x135073,0x51a,_0x22fe4a._0x560d7b,_0x22fe4a._0x584e33)],..._0x465fd4[_0x1835e3(_0x22fe4a._0x40709e,_0x22fe4a._0x2233e0,_0x22fe4a._0x3d5847,_0x22fe4a._0x30c05f)]?{'reasoning':structuredClone(_0x465fd4['reasoning'])}:{},'system':structuredClone(_0x465fd4[_0x9b47a1(0x50f,0x507,0x504,0x4ff)]),'messages':structuredClone(_0x465fd4['messages']),'tools':structuredClone(_0x465fd4[_0x1835e3(_0x22fe4a._0x25153a,_0x22fe4a._0x54fc3f,0x318,_0x22fe4a._0x1fa0d7)]),'metadata':{'sessionId':_0x465fd4['metadata'][_0x9b47a1(0x4ec,0x505,_0x22fe4a._0xc77168,_0x22fe4a._0x4127d8)],'turnId':_0x465fd4['metadata'][_0x1835e3(0x30e,0x2f3,0x309,0x31b)]}};}function toModelRequest(_0x3497ed){const _0x328c18={_0x13be83:0x4b8,_0x1ebe5f:0x4d9,_0x18ed8a:0x4db,_0x20cd30:0x4e6,_0xbe7754:0x4cb,_0xb54de5:0x4c8,_0x46b535:0x2cf,_0x5d473e:0x2c2,_0x596b37:0x2c4,_0x2728b0:0x4fd,_0x2e5d60:0x4e8,_0x4b4d0f:0x4fc,_0x142209:0x28d,_0x32289c:0x4e2,_0x2a8e91:0x4cf,_0x27f20a:0x4c3,_0x4e60a6:0x4d5},_0x8ab478={_0x5d2872:0x33b};function _0x5844ca(_0x2f9c84,_0x47fce9,_0x4c6ab0,_0x49a2de){return _0x5b2f(_0x47fce9-_0x8ab478._0x5d2872,_0x2f9c84);}function _0x2b0d8b(_0x1d80d7,_0x430fd9,_0x844c7d,_0xccab65){return _0x5b2f(_0xccab65-0x11a,_0x844c7d);}return{'model':_0x3497ed['model'],'max_tokens':_0x3497ed[_0x5844ca(0x4bc,_0x328c18._0x13be83,_0x328c18._0x13be83,0x4b4)],..._0x3497ed[_0x5844ca(_0x328c18._0x1ebe5f,_0x328c18._0x18ed8a,_0x328c18._0x20cd30,_0x328c18._0xbe7754)]?{'reasoning':structuredClone(_0x3497ed[_0x5844ca(_0x328c18._0xb54de5,_0x328c18._0x18ed8a,0x4cb,0x4de)])}:{},'system':structuredClone(_0x3497ed[_0x2b0d8b(0x2b2,_0x328c18._0x46b535,_0x328c18._0x5d473e,_0x328c18._0x596b37)]),'messages':structuredClone(_0x3497ed[_0x5844ca(_0x328c18._0x2728b0,_0x328c18._0x2e5d60,_0x328c18._0x4b4d0f,0x4e7)]),'tools':structuredClone(_0x3497ed[_0x2b0d8b(_0x328c18._0x142209,0x293,0x290,0x2a8)]),'metadata':{'session_id':_0x3497ed['metadata'][_0x5844ca(_0x328c18._0x32289c,_0x328c18._0x2a8e91,0x4d0,_0x328c18._0x27f20a)],'turn_id':_0x3497ed[_0x5844ca(0x4ee,_0x328c18._0x4e60a6,0x4ec,0x4e3)]['turnId']}};}function _0x4ad9(){const _0x1746f9=['B3bLBMfPx3jLyxnVBMLUzW','mteWr0zbthD3','C3LZDgvT','Bw9KzwW','odfmDejKBLG','BwvZC2fNzxm','AM9PBG','C3rVCfjLyxnVBG','y2fSBeLK','khjLzgfJDgvKihjLyxnVBMLUzYK','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','BgvUz3rO','Bwf4vg9Rzw5Z','ntK3nw1bzgzJtq','DhvYBL9Pza','zMLSDgvY','otDqA1bVBfy','ChjVDMLKzxjtDgf0zq','DxnHz2u','ovzLAwL5DW','DhjPBq','yxnZAxn0yw50','C2vZC2LVBL9Pza','yw50AhjVCgLJx3rOAw5RAw5N','ntm1neXHzLbfAa','Aw5WDxruB2TLBNm','C3vTBwfYEq','C3rYAw5N','Dg9VBf91C2u','Dg9VBhm','Dg9VBf9Yzxn1Bhq','DgHPBMTPBMC','B3v0Chv0x3rVA2vUCW','nJi4mtu5rKDMEMH5','BwfW','C2vZC2LVBKLK','Dgv4Da','ndeWndGWBwjMzNvf','mZi4ndyWC09WC2Dk','y29UDgvUDa','CM9Szq','Bwv0ywrHDge','mZe4uu1Rt1LA','mtiZodi0AeLyu0L0','DhvYBKLK','zw5JCNLWDgvKq29UDgvUDa','C3rHDhvZ','CMvHC29UAw5N','DhLWzq','C3rVCf9YzwfZB24','CMvHC29UAw5Nvg9Rzw5Z','Bwf4x3rVA2vUCW','B3v0Chv0vg9Rzw5Z','nZKZmdGWvwPkB1vy','CMvHC29UAw5Nx3rVA2vUCW'];_0x4ad9=function(){return _0x1746f9;};return _0x4ad9();}function toProviderModelRequest(_0x2989e2){const _0x511b37={_0x3526e7:0x1f5,_0x4c2a6f:0x3bf,_0x1e987a:0x3ce,_0x14304e:0x3a3,_0x30f7d1:0x3a3};function _0x3ce5b5(_0xa76183,_0x3dde26,_0x3a9d10,_0x462c3f){return _0x5b2f(_0x3dde26- -0x399,_0x462c3f);}function _0x582558(_0x519f53,_0x108236,_0x806ee0,_0xf73546){return _0x5b2f(_0x519f53-0x212,_0x806ee0);}return{'model':_0x2989e2[_0x3ce5b5(-_0x511b37._0x3526e7,-0x1ee,-0x1f1,-0x1d9)],'max_tokens':_0x2989e2['maxTokens'],'system':structuredClone(_0x2989e2['system']),'messages':structuredClone(_0x2989e2[_0x582558(_0x511b37._0x4c2a6f,_0x511b37._0x1e987a,0x3c7,0x3ca)]),'tools':structuredClone(_0x2989e2[_0x582558(0x3a0,_0x511b37._0x14304e,_0x511b37._0x30f7d1,0x386)])};}function toChatResponse(_0x5c7c43){const _0x4512ff={_0x308179:0x5b,_0x37d66c:0x4a,_0x2902f8:0xac,_0xb87296:0xa3,_0x4e1d26:0xe1,_0x56815f:0x52,_0x5a40c9:0x58,_0x27781c:0xd5,_0x4e1bc1:0xa2,_0x52934a:0xb6,_0x3df491:0xa7,_0x577fc6:0xdb,_0x331e78:0x6f,_0x3277d7:0x31,_0x303b8f:0x49};function _0x2cf556(_0x5dd215,_0x2399b3,_0x1e4c6c,_0x24c257){return _0x5b2f(_0x5dd215- -0x139,_0x2399b3);}function _0x18a71b(_0x33c1b9,_0x4dc886,_0x2f9b19,_0x50bf4c){return _0x5b2f(_0x4dc886- -0x24e,_0x2f9b19);}return{'id':_0x5c7c43['id'],'content':structuredClone(_0x5c7c43[_0x2cf556(0x5f,_0x4512ff._0x308179,0x44,_0x4512ff._0x37d66c)]),'stopReason':_0x5c7c43[_0x18a71b(-0x93,-_0x4512ff._0x2902f8,-_0x4512ff._0xb87296,-0xaf)],'usage':{'inputTokens':_0x5c7c43[_0x18a71b(-0xc8,-0xcb,-_0x4512ff._0x4e1d26,-0xb1)]['input_tokens'],'outputTokens':_0x5c7c43[_0x2cf556(_0x4512ff._0x37d66c,_0x4512ff._0x56815f,0x60,_0x4512ff._0x5a40c9)][_0x18a71b(-_0x4512ff._0x27781c,-0xbd,-0xbd,-_0x4512ff._0x4e1bc1)],..._0x5c7c43[_0x18a71b(-0xaf,-0xcb,-0xc3,-0xbe)][_0x18a71b(-_0x4512ff._0x52934a,-_0x4512ff._0x3df491,-0xc3,-_0x4512ff._0x4e1bc1)]!==void 0x0?{'reasoningTokens':_0x5c7c43[_0x18a71b(-0xbb,-0xcb,-0xc4,-_0x4512ff._0x577fc6)][_0x2cf556(0x6e,0x66,0x7a,_0x4512ff._0x331e78)]}:{}},..._0x5c7c43['providerState']?{'providerState':structuredClone(_0x5c7c43[_0x2cf556(0x49,_0x4512ff._0x3277d7,_0x4512ff._0x303b8f,0x46)])}:{}};}function toModelResponse(_0x22fe51){const _0x574eb0={_0x229cf2:0x2a0,_0x111dd0:0x1c3,_0x59de30:0x1ac,_0x234a26:0x1d6,_0x511e3b:0x264,_0x338e3b:0x275,_0x4ba91f:0x267,_0x3622fc:0x284,_0x182229:0x28f,_0x26f6cd:0x278,_0x1e45a2:0x260,_0x4a40f0:0x29a,_0x2db25b:0x282,_0x3a0ca0:0x1b6,_0x1c8d4f:0x27a,_0x525708:0x285,_0x4c704a:0x27b,_0x27831a:0x290},_0x336496={_0x153ca1:0x372};function _0x456dcd(_0x4ac48c,_0x14cfe9,_0x222238,_0x549b50){return _0x5b2f(_0x4ac48c- -_0x336496._0x153ca1,_0x14cfe9);}function _0xa0295(_0x5c3357,_0x5a8c59,_0x517203,_0x3c5157){return _0x5b2f(_0x5a8c59-0xf5,_0x517203);}return{'id':_0x22fe51['id'],'type':'message','role':'assistant','content':structuredClone(_0x22fe51[_0xa0295(_0x574eb0._0x229cf2,0x28d,0x283,0x277)]),'stop_reason':_0x22fe51[_0x456dcd(-_0x574eb0._0x111dd0,-_0x574eb0._0x59de30,-_0x574eb0._0x234a26,-0x1c4)],'stop_sequence':null,'usage':{'input_tokens':_0x22fe51[_0xa0295(0x289,0x278,0x28a,_0x574eb0._0x511e3b)][_0xa0295(_0x574eb0._0x338e3b,0x27f,_0x574eb0._0x4ba91f,_0x574eb0._0x3622fc)],'output_tokens':_0x22fe51[_0xa0295(_0x574eb0._0x182229,_0x574eb0._0x26f6cd,0x26c,_0x574eb0._0x1e45a2)][_0xa0295(0x2a0,_0x574eb0._0x4a40f0,_0x574eb0._0x2db25b,0x285)],..._0x22fe51[_0xa0295(0x286,0x278,0x266,0x286)][_0x456dcd(-0x1cf,-0x1cc,-0x1d3,-_0x574eb0._0x3a0ca0)]!==void 0x0?{'reasoning_tokens':_0x22fe51[_0xa0295(0x28f,0x278,_0x574eb0._0x1c8d4f,0x291)][_0xa0295(_0x574eb0._0x525708,0x298,0x298,0x2a5)]}:{}},..._0x22fe51['providerState']?{'providerState':structuredClone(_0x22fe51[_0xa0295(_0x574eb0._0x4c704a,0x277,_0x574eb0._0x27831a,0x281)])}:{}};}function responseToAssistantMessage(_0x59e1b7){const _0x450dfa={_0x3b6831:0x190,_0x584d91:0x19e,_0x1dd6cc:0xc3,_0x5963f5:0xd3,_0x112dc3:0xd2,_0x278758:0x19a};function _0x554182(_0x44f42f,_0x3f98c9,_0x4b9702,_0x487814){return _0x5b2f(_0x487814-0x18,_0x44f42f);}function _0x1074c0(_0x534795,_0x4bd3f4,_0x4d94a2,_0x231846){return _0x5b2f(_0x4bd3f4- -0x272,_0x534795);}return{'role':_0x554182(0x1a8,_0x450dfa._0x3b6831,0x186,_0x450dfa._0x584d91),'content':normalizeContent(_0x59e1b7[_0x1074c0(-_0x450dfa._0x1dd6cc,-0xda,-_0x450dfa._0x5963f5,-_0x450dfa._0x112dc3)]),..._0x59e1b7[_0x554182(0x1a2,0x1b5,0x1b2,_0x450dfa._0x278758)]?{'providerState':structuredClone(_0x59e1b7['providerState'])}:{}};}function createReasoningMessage(_0x2cd709){const _0x12575f={_0x10f564:0x36e,_0x4e0009:0x387,_0x2f2cb2:0x36a,_0x1ca5ce:0x383,_0xc88b11:0x377,_0x2258fd:0x38d},_0x998f29={_0x56073d:0x35a,_0x4d48f5:0x355,_0x8075c8:0x366,_0x356437:0x34f,_0x475aa7:0x336,_0x316a86:0x33f,_0x84b125:0x34d,_0x206e60:0x359,_0x14c542:0x371,_0x32d5db:0x353},_0x1207cf={_0x4610d1:0x42},_0x24f76c={_0x7bafa2:0x207};function _0x1e2f5a(_0x25d36e,_0x4282b8,_0x571344,_0x39b224){return _0x5b2f(_0x39b224-_0x24f76c._0x7bafa2,_0x25d36e);}const _0x51a44c=normalizeContent(_0x2cd709?.['content'])[_0x1e2f5a(0x373,_0x12575f._0x10f564,0x39f,_0x12575f._0x4e0009)](_0x447e68=>{const _0x7424a4={_0x55810b:0xd5,_0x2e3493:0x12};function _0x1abf20(_0x5b2dfb,_0x265ac8,_0x458c19,_0x1d806b){return _0x1e2f5a(_0x458c19,_0x265ac8-_0x7424a4._0x55810b,_0x458c19-_0x7424a4._0x2e3493,_0x1d806b- -0x6f);}function _0x172621(_0x111b3e,_0x4d1c51,_0x3dee3f,_0x30799b){return _0x1e2f5a(_0x111b3e,_0x4d1c51-0x187,_0x3dee3f-0x141,_0x3dee3f- -_0x1207cf._0x4610d1);}return _0x447e68[_0x172621(_0x998f29._0x56073d,_0x998f29._0x4d48f5,_0x998f29._0x8075c8,_0x998f29._0x356437)]==='anthropic_redacted_thinking'||_0x447e68['type']===_0x172621(_0x998f29._0x475aa7,_0x998f29._0x316a86,_0x998f29._0x84b125,_0x998f29._0x206e60)||_0x447e68[_0x172621(0x379,0x35c,0x366,_0x998f29._0x14c542)]===_0x172621(_0x998f29._0x32d5db,_0x998f29._0x32d5db,0x36d,0x37b);});function _0x38e9c5(_0x160b71,_0x278744,_0x9202cf,_0x40043f){return _0x5b2f(_0x160b71- -0x5b,_0x40043f);}if(_0x51a44c[_0x1e2f5a(_0x12575f._0x10f564,0x39a,_0x12575f._0x2f2cb2,_0x12575f._0x1ca5ce)]===0x0)return void 0x0;return{'role':_0x1e2f5a(0x387,_0x12575f._0xc88b11,_0x12575f._0x2258fd,_0x12575f._0x2258fd),'content':_0x51a44c};}function createAssistantTextMessage(_0x155f4b){const _0x157637={_0x338a44:0x244,_0x3b653a:0x242,_0x4131ea:0x25f,_0x3ed039:0x1c1,_0x224fc1:0x1cc},_0x8b5414={_0x380142:0x139,_0x4b07c9:0x126,_0x573e90:0x138,_0x11a480:0x149},_0x6a37f0={_0x130806:0x27,_0x4530ab:0x11a},_0x2a4030=normalizeContent(_0x155f4b?.[_0x34e649(-_0x157637._0x338a44,-0x24c,-_0x157637._0x3b653a,-_0x157637._0x4131ea)])['filter'](_0x165a75=>{const _0x3a5768={_0x2ad3cc:0x59a,_0x4ecfab:0xb7};function _0x1536fc(_0x5b2fd1,_0x1c9812,_0x11510f,_0x9ef2e){return _0x34e649(_0x5b2fd1-0x1a2,_0x1c9812-_0x3a5768._0x2ad3cc,_0x11510f,_0x9ef2e-_0x3a5768._0x4ecfab);}function _0xf8a43c(_0x36e020,_0x551ada,_0x4ff22b,_0x1d71bf){return _0x34e649(_0x36e020-_0x6a37f0._0x130806,_0x551ada-0x381,_0x36e020,_0x1d71bf-_0x6a37f0._0x4530ab);}return _0x165a75[_0xf8a43c(_0x8b5414._0x380142,0x13e,0x13c,0x133)]===_0xf8a43c(_0x8b5414._0x4b07c9,0x132,_0x8b5414._0x573e90,_0x8b5414._0x11a480);});function _0x34e649(_0x3ece94,_0xa9cd70,_0x2f2091,_0x53ff1a){return _0x5b2f(_0xa9cd70- -0x3e4,_0x2f2091);}function _0x402066(_0x42c17a,_0xabe8d2,_0x36a979,_0x3e81a0){return _0x5b2f(_0x36a979- -0x352,_0x42c17a);}if(_0x2a4030['length']===0x0)return void 0x0;return{'role':_0x402066(-_0x157637._0x3ed039,-0x1b8,-_0x157637._0x224fc1,-0x1ca),'content':_0x2a4030};}function createToolUseMessage(_0x368a33){const _0x37451c={_0x3ddfd1:0x1bb,_0x467ec0:0x1af,_0xc6550c:0x1b6,_0x2d02d0:0x1ac,_0x38575b:0x4ca,_0x125a7a:0x4b4,_0x375c8b:0x4bd,_0x1e4fd5:0x4d6},_0x16ee22={_0x4d9bac:0x344},_0x2495a7={_0x7fcb68:0xc8},_0x32a854={_0x23b21c:0x8},_0x30e7e0=normalizeContent(_0x368a33?.[_0x385407(0x1c7,_0x37451c._0x3ddfd1,0x1b3,0x1bd)])[_0x385407(_0x37451c._0x467ec0,0x1c4,_0x37451c._0xc6550c,_0x37451c._0x2d02d0)](_0x29daf8=>{function _0x131c22(_0x5acb8,_0x296266,_0x144de5,_0x361264){return _0x385407(_0x296266- -0x27d,_0x296266-_0x32a854._0x23b21c,_0x144de5,_0x361264-0xd0);}return _0x29daf8['type']===_0x131c22(-0xc8,-0xc1,-_0x2495a7._0x7fcb68,-0xcd);});function _0x2c4ef8(_0x4b022b,_0x3d6787,_0xd9063e,_0x47729a){return _0x5b2f(_0x4b022b-_0x16ee22._0x4d9bac,_0x3d6787);}if(_0x30e7e0[_0x385407(0x1ab,0x1a9,0x1a6,_0x37451c._0x3ddfd1)]===0x0)return void 0x0;function _0x385407(_0x11cf86,_0x42bc2a,_0x554565,_0x45a76c){return _0x5b2f(_0x11cf86-0x2f,_0x554565);}return{'role':_0x2c4ef8(_0x37451c._0x38575b,_0x37451c._0x125a7a,_0x37451c._0x375c8b,_0x37451c._0x1e4fd5),'content':_0x30e7e0};}function getTextFromMessage(_0x2d01b8){const _0x43b04f={_0x4d9151:0x24f,_0x41a034:0x243,_0x2b02fe:0x237,_0x4bebde:0x22e,_0x4b298e:0x252,_0x39cbaf:0x243,_0x43260a:0x263,_0x14894e:0xe1,_0x294fd5:0xda,_0x141c95:0xbe};function _0x61166(_0x5eeea3,_0x996ebe,_0x323a29,_0x167d49){return _0x5b2f(_0x323a29- -0x288,_0x996ebe);}function _0x24c832(_0x123204,_0x519aa0,_0x4b6a12,_0x3b288f){return _0x5b2f(_0x123204-0xb7,_0x3b288f);}return normalizeContent(_0x2d01b8?.[_0x24c832(_0x43b04f._0x4d9151,0x24d,_0x43b04f._0x41a034,0x23a)])[_0x24c832(_0x43b04f._0x2b02fe,_0x43b04f._0x4bebde,_0x43b04f._0x4b298e,0x250)](_0x4cbe45=>_0x4cbe45[_0x61166(-0xe2,-0xfe,-0xe7,-0xdd)]===_0x24c832(0x24c,0x261,0x241,0x25d))[_0x24c832(0x24a,_0x43b04f._0x39cbaf,0x235,_0x43b04f._0x43260a)](_0xecab55=>_0xecab55['text'])[_0x61166(-0xc3,-_0x43b04f._0x14894e,-_0x43b04f._0x294fd5,-_0x43b04f._0x141c95)]('\x0a');}function getReasoningTextFromMessage(_0x2d8bd0){const _0xb5449={_0x40300b:0xa5,_0x164a04:0x85,_0x165a8c:0x7b,_0x595ed8:0x6e},_0x4fe722={_0x5374a8:0x55a,_0x678684:0x573,_0x2b5a11:0x563,_0x6a5d31:0x571,_0x5181b9:0x12d,_0x293300:0xf6,_0x392447:0x112,_0x44a4b3:0x56b,_0x3a4212:0x114,_0x150741:0x102,_0x4a3bd1:0xfd,_0x1f4413:0xf1,_0x9abc4f:0xfe,_0x40f63a:0xf8,_0x2761ff:0x11f,_0x17afa0:0x10f,_0x3ea2f4:0x561,_0x32a5a0:0x55d,_0x370362:0x547,_0xcd1aa0:0x562,_0x126de2:0x55f,_0x2f4f8d:0x566,_0x17955c:0x115,_0x17ae35:0x10b,_0x21adf2:0x132,_0x26b5c3:0x117,_0x484765:0x569,_0x1cb3a1:0x568,_0x3d8002:0x107,_0x55e235:0xfe,_0x21db2c:0x57a,_0x19899f:0x579,_0x4cf51f:0x568,_0x585bbd:0x118,_0x553254:0x120},_0xf173a6={_0x54fec0:0x226},_0x3bc014={_0x5bf9f9:0x133};function _0x12a366(_0x100159,_0x2c5846,_0xfd58cc,_0x49be29){return _0x5b2f(_0x100159- -_0x3bc014._0x5bf9f9,_0xfd58cc);}function _0x514ca1(_0x1789b4,_0x7ef051,_0x1c948e,_0x43f30c){return _0x5b2f(_0x1789b4- -_0xf173a6._0x54fec0,_0x1c948e);}return normalizeContent(_0x2d8bd0?.[_0x514ca1(-0x8e,-_0xb5449._0x40300b,-_0xb5449._0x164a04,-0x7b)])['flatMap'](_0x319c8f=>{const _0x2a3c40={_0x2fd39b:0x5f9},_0x10f8eb={_0x59af4b:0x1a8,_0x457ebc:0x1f0,_0x4510cb:0x196};if(_0x319c8f[_0x2e3eed(0x576,0x57d,0x580,0x574)]==='anthropic_thinking')return _0x319c8f[_0x2e3eed(_0x4fe722._0x5374a8,0x569,_0x4fe722._0x678684,_0x4fe722._0x2b5a11)][_0x2e3eed(_0x4fe722._0x6a5d31,0x550,0x546,0x558)]()['length']>0x0?[_0x319c8f[_0x539ead(_0x4fe722._0x5181b9,_0x4fe722._0x293300,0x112,_0x4fe722._0x392447)]]:[];if(_0x319c8f[_0x2e3eed(_0x4fe722._0x44a4b3,0x564,0x56d,0x574)]===_0x539ead(_0x4fe722._0x3a4212,_0x4fe722._0x150741,0x10a,_0x4fe722._0x4a3bd1))return[_0x539ead(_0x4fe722._0x1f4413,_0x4fe722._0x9abc4f,_0x4fe722._0x40f63a,0xfc)];function _0x539ead(_0xd24fad,_0x18c9a7,_0x502ed6,_0x50bb63){return _0x514ca1(_0x50bb63-_0x10f8eb._0x59af4b,_0x18c9a7-_0x10f8eb._0x457ebc,_0x18c9a7,_0x50bb63-_0x10f8eb._0x4510cb);}function _0x2e3eed(_0x514408,_0x5b9657,_0x415dd8,_0x5656a5){return _0x514ca1(_0x5656a5-_0x2a3c40._0x2fd39b,_0x5b9657-0xbf,_0x5b9657,_0x5656a5-0x12a);}if(_0x319c8f[_0x539ead(0x138,_0x4fe722._0x2761ff,_0x4fe722._0x17afa0,0x123)]!=='openai_reasoning')return[];const _0x5e2f86=_0x319c8f[_0x2e3eed(_0x4fe722._0x3ea2f4,_0x4fe722._0x32a5a0,_0x4fe722._0x370362,0x55e)][_0x2e3eed(_0x4fe722._0xcd1aa0,_0x4fe722._0x126de2,_0x4fe722._0x6a5d31,_0x4fe722._0x2f4f8d)](_0xeb8cd3=>_0xeb8cd3[_0x539ead(0x12e,0x104,0x10b,0x117)])['filter'](_0x48846b=>_0x48846b[_0x539ead(0xf2,0xff,0xec,0x107)]()[_0x2e3eed(0x567,0x557,0x541,0x54f)]>0x0)[_0x539ead(0x115,_0x4fe722._0x17955c,0x13d,0x130)]('\x0a\x0a');if(_0x5e2f86[_0x539ead(0xfc,0xf0,0xed,_0x4fe722._0x9abc4f)]>0x0)return[_0x5e2f86];if(_0x319c8f[_0x539ead(0x12f,_0x4fe722._0x17ae35,_0x4fe722._0x21adf2,_0x4fe722._0x26b5c3)]&&_0x319c8f[_0x2e3eed(0x570,_0x4fe722._0x484765,0x567,_0x4fe722._0x1cb3a1)][_0x539ead(0xee,0xfe,0x11c,_0x4fe722._0x3d8002)]()[_0x539ead(_0x4fe722._0x40f63a,0x112,0x10b,_0x4fe722._0x55e235)]>0x0)return[_0x319c8f[_0x2e3eed(_0x4fe722._0x21db2c,0x572,_0x4fe722._0x19899f,_0x4fe722._0x4cf51f)]];return _0x319c8f[_0x539ead(0x10c,0x117,_0x4fe722._0x585bbd,_0x4fe722._0x553254)]?['(encrypted\x20reasoning)']:[];})[_0x12a366(0x7b,_0xb5449._0x165a8c,_0xb5449._0x595ed8,0x6e)]('\x0a\x0a');}function getToolUseBlocks(_0xcfcb11){const _0x43ca7b={_0x212451:0x186,_0x56f89f:0x17b};function _0x504e0a(_0x3c08a2,_0x3741c8,_0x100a1f,_0x219db2){return _0x5b2f(_0x3c08a2-0x6,_0x3741c8);}return normalizeContent(_0xcfcb11?.['content'])[_0x504e0a(_0x43ca7b._0x212451,0x191,0x192,_0x43ca7b._0x56f89f)](_0x575ccc=>_0x575ccc['type']==='tool_use');}function getToolResultBlocks(_0x5cf95c){const _0x58af38={_0x454c95:0xc1,_0x4c4f82:0xbf},_0x137b03={_0x5136ae:0x2f4};function _0x37d66a(_0x356c03,_0x107da7,_0x36f789,_0x28ec43){return _0x5b2f(_0x28ec43- -0x23f,_0x356c03);}function _0x489ca2(_0x4be0bb,_0x50df68,_0x5070fd,_0x516ddb){return _0x5b2f(_0x5070fd-_0x137b03._0x5136ae,_0x50df68);}return normalizeContent(_0x5cf95c?.['content'])[_0x37d66a(-_0x58af38._0x454c95,-0xdb,-0xab,-_0x58af38._0x4c4f82)](_0x4eae77=>_0x4eae77[_0x37d66a(-0x97,-0xb2,-0xa1,-0x9e)]===_0x489ca2(0x47a,0x46f,0x483,0x48d));}function _0x5b2f(_0x54763f,_0x17967f){_0x54763f=_0x54763f-0x179;const _0x4ad9bf=_0x4ad9();let _0x5b2fdb=_0x4ad9bf[_0x54763f];if(_0x5b2f['UZuMtC']===undefined){var _0x987f89=function(_0x12382a){const _0xb502a5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x584b36='',_0xb818cd='';for(let _0x1c85b3=0x0,_0x43b89b,_0x232c9c,_0x85dba9=0x0;_0x232c9c=_0x12382a['charAt'](_0x85dba9++);~_0x232c9c&&(_0x43b89b=_0x1c85b3%0x4?_0x43b89b*0x40+_0x232c9c:_0x232c9c,_0x1c85b3++%0x4)?_0x584b36+=String['fromCharCode'](0xff&_0x43b89b>>(-0x2*_0x1c85b3&0x6)):0x0){_0x232c9c=_0xb502a5['indexOf'](_0x232c9c);}for(let _0x52bb25=0x0,_0x4e264b=_0x584b36['length'];_0x52bb25<_0x4e264b;_0x52bb25++){_0xb818cd+='%'+('00'+_0x584b36['charCodeAt'](_0x52bb25)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xb818cd);};_0x5b2f['wmbLyu']=_0x987f89,_0x5b2f['PORrta']={},_0x5b2f['UZuMtC']=!![];}const _0x462852=_0x4ad9bf[0x0],_0x232b73=_0x54763f+_0x462852,_0x5754a5=_0x5b2f['PORrta'][_0x232b73];return!_0x5754a5?(_0x5b2fdb=_0x5b2f['wmbLyu'](_0x5b2fdb),_0x5b2f['PORrta'][_0x232b73]=_0x5b2fdb):_0x5b2fdb=_0x5754a5,_0x5b2fdb;}function createToolResultUserMessage(_0x31cf2a){const _0x352f17={_0x21966b:0x19d,_0x574371:0x1b5,_0xed9155:0x1a1,_0x4850a3:0x1b7,_0x4dcd6f:0x2a7,_0x21b530:0x2d9,_0x53a2af:0x2da};return{'role':'user','content':_0x31cf2a['map'](_0x24dea5=>{const _0x1a415c={_0x21cec3:0x330};function _0xcc7110(_0xd2e445,_0x42ce89,_0x5607a4,_0x2981d1){return _0x5b2f(_0x42ce89-0x123,_0x2981d1);}function _0x4e54dd(_0xfa9462,_0x438e85,_0x4cdfbb,_0x449cc5){return _0x5b2f(_0x4cdfbb- -_0x1a415c._0x21cec3,_0x449cc5);}return{'type':_0x4e54dd(-_0x352f17._0x21966b,-_0x352f17._0x574371,-_0x352f17._0xed9155,-0x1a8),'tool_use_id':_0x24dea5[_0x4e54dd(-0x1bd,-0x1c5,-_0x352f17._0x4850a3,-0x1b8)],'content':_0x24dea5[_0xcc7110(0x2d5,0x2bb,0x2cc,_0x352f17._0x4dcd6f)]??_0x24dea5['output'],'is_error':_0x24dea5[_0xcc7110(_0x352f17._0x21b530,0x2c2,0x2c6,_0x352f17._0x53a2af)]==='error'};})};}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage};
|
|
1
|
+
(function(_0x1d34f9,_0x150be1){const _0xb623d1={_0x15c14d:0xa,_0x508922:0x5,_0x422ef3:0x9,_0x542ce8:0x1a,_0x122e08:0xe,_0x1a7775:0x17,_0x20d283:0x21,_0x2fee5c:0x37,_0x4c96d9:0x17,_0x4d4799:0x24,_0x354d0f:0x33,_0x10466f:0x26,_0x43c76f:0x35,_0x1f7884:0x22,_0x1278aa:0x28,_0x3af54c:0x14,_0xaa4384:0x3f,_0x320a70:0x46,_0x1250dc:0x1fb,_0x59b04d:0x204,_0x34fbd3:0x20b,_0x150c1d:0x20c,_0x10f5c0:0x209,_0x4eb9e1:0x223},_0x3aa6fc={_0x2ddd69:0x121},_0x3cb3b5={_0x575c0f:0x111};function _0x189598(_0x5131b4,_0x34a8bb,_0x401396,_0x38cd71){return _0x31ad(_0x38cd71-_0x3cb3b5._0x575c0f,_0x34a8bb);}const _0x1a720a=_0x1d34f9();function _0x48ebb7(_0x29e0cc,_0x2cbbe6,_0x3390ac,_0x32aa15){return _0x31ad(_0x29e0cc- -_0x3aa6fc._0x2ddd69,_0x32aa15);}while(!![]){try{const _0x26039d=-parseInt(_0x48ebb7(-_0xb623d1._0x15c14d,-_0xb623d1._0x508922,-0x11,_0xb623d1._0x422ef3))/0x1*(parseInt(_0x48ebb7(-_0xb623d1._0x542ce8,-_0xb623d1._0x15c14d,-0x17,-_0xb623d1._0x122e08))/0x2)+parseInt(_0x48ebb7(-0xb,-_0xb623d1._0x1a7775,-0x15,-0xd))/0x3+parseInt(_0x48ebb7(-_0xb623d1._0x20d283,-_0xb623d1._0x2fee5c,-_0xb623d1._0x4c96d9,-_0xb623d1._0x4d4799))/0x4+-parseInt(_0x48ebb7(-_0xb623d1._0x354d0f,-0x44,-_0xb623d1._0x10466f,-_0xb623d1._0x43c76f))/0x5*(-parseInt(_0x48ebb7(-_0xb623d1._0x1f7884,-_0xb623d1._0x1278aa,-_0xb623d1._0x3af54c,-0xf))/0x6)+parseInt(_0x48ebb7(-0x35,-_0xb623d1._0xaa4384,-0x21,-_0xb623d1._0x320a70))/0x7*(-parseInt(_0x189598(0x20e,0x1fd,0x202,_0xb623d1._0x1250dc))/0x8)+parseInt(_0x189598(0x205,_0xb623d1._0x59b04d,_0xb623d1._0x34fbd3,_0xb623d1._0x34fbd3))/0x9*(-parseInt(_0x189598(0x216,0x23f,0x244,0x22e))/0xa)+-parseInt(_0x189598(_0xb623d1._0x150c1d,_0xb623d1._0x10f5c0,0x20b,_0xb623d1._0x4eb9e1))/0xb;if(_0x26039d===_0x150be1)break;else _0x1a720a['push'](_0x1a720a['shift']());}catch(_0x5f3f43){_0x1a720a['push'](_0x1a720a['shift']());}}}(_0x5803,0x8c5d7));function createTextBlock(_0x5e7636){const _0x209e5c={_0x4928e8:0x252,_0x466e68:0x27c,_0x3d8205:0x271};function _0x5ef941(_0x278c60,_0x493b19,_0xe4b401,_0x40bf6a){return _0x31ad(_0x493b19-0x150,_0xe4b401);}return{'type':_0x5ef941(_0x209e5c._0x4928e8,0x264,_0x209e5c._0x466e68,_0x209e5c._0x3d8205),'text':_0x5e7636};}function normalizeTextBlock(_0x8d471d){const _0x5680e0={_0x303ff5:0x362,_0x4a3607:0x361,_0x2e8dfb:0x351},_0x16ef7a={_0x334256:0x24d};function _0x50c222(_0x24ea65,_0xcd97aa,_0x2d2619,_0x26d93c){return _0x31ad(_0xcd97aa-_0x16ef7a._0x334256,_0x2d2619);}return createTextBlock(_0x8d471d[_0x50c222(_0x5680e0._0x303ff5,_0x5680e0._0x4a3607,0x359,_0x5680e0._0x2e8dfb)]??'');}function normalizeContent(_0x4c6b51){const _0x48ad25={_0x18025b:0x127,_0x40d122:0x126,_0x18f173:0x129,_0x129af2:0x159,_0x12a7ad:0x158},_0x1523c1={_0xc26e0c:0x11f,_0x52fed8:0x10f,_0x484224:0x11e,_0x204650:0x127,_0x10842c:0x114},_0x191a8e={_0x2edde8:0x1b7,_0x78edfe:0x16},_0x51a209={_0x24d637:0x201},_0x4c1b65={_0x3a4935:0x236};if(typeof _0x4c6b51===_0x3d0bdc(-_0x48ad25._0x18025b,-_0x48ad25._0x40d122,-_0x48ad25._0x18f173,-0x11e))return[createTextBlock(_0x4c6b51)];function _0x3d0bdc(_0x123c37,_0x4dfbec,_0x49f81b,_0x522b13){return _0x31ad(_0x522b13- -_0x4c1b65._0x3a4935,_0x4dfbec);}function _0x4e3e7e(_0x27c88b,_0x29c8f8,_0x71d157,_0x7adc51){return _0x31ad(_0x29c8f8- -_0x51a209._0x24d637,_0x71d157);}if(!Array['isArray'](_0x4c6b51))return[];return _0x4c6b51[_0x3d0bdc(-0x12d,-_0x48ad25._0x129af2,-_0x48ad25._0x12a7ad,-0x142)](_0x421ff5=>{const _0x28362f={_0x3213c7:0x22f};if(_0x421ff5[_0x5bc162(0x106,_0x1523c1._0xc26e0c,0x110,_0x1523c1._0x52fed8)]===_0x5bc162(0x10d,_0x1523c1._0x484224,_0x1523c1._0x204650,_0x1523c1._0x10842c))return normalizeTextBlock(_0x421ff5);function _0x26f499(_0x237efd,_0x13a735,_0x49ce3c,_0x13a0c9){return _0x3d0bdc(_0x237efd-_0x191a8e._0x2edde8,_0x13a735,_0x49ce3c-_0x191a8e._0x78edfe,_0x49ce3c- -0xfd);}function _0x5bc162(_0x531a22,_0x38f061,_0x386509,_0x368751){return _0x3d0bdc(_0x531a22-0x1c9,_0x386509,_0x386509-0x161,_0x531a22-_0x28362f._0x3213c7);}return structuredClone(_0x421ff5);});}function normalizeSystem(_0x20f401=[]){const _0x4e429d={_0x252102:0x6e};function _0x16fb68(_0x3e64f7,_0x3a149b,_0x53b812,_0x26677e){return _0x31ad(_0x26677e- -0x16a,_0x3a149b);}function _0x385a3c(_0x20d6bf,_0x433c03,_0x459163,_0x318223){return _0x31ad(_0x459163- -0x3cc,_0x318223);}return normalizeContent(_0x20f401)[_0x16fb68(-0x70,-0x6c,-0x64,-_0x4e429d._0x252102)](_0x28f20c=>_0x28f20c[_0x385a3c(-0x2c7,-0x2cf,-0x2bf,-0x2b0)]===_0x385a3c(-0x2b3,-0x2b5,-0x2b8,-0x2a9));}function normalizeMessage(_0x36272f){const _0x23228e={_0x166093:0x0,_0x132c58:0x28,_0x4181fd:0x2a4,_0x322cde:0x2ae,_0x53484f:0x2b6,_0x2ced72:0x2a,_0x41aebc:0x38,_0x47c59d:0x4b},_0x59ef76={_0x348120:0x127};function _0x12f95a(_0x3270e6,_0x4667ef,_0x1fe33b,_0xd30cd0){return _0x31ad(_0x3270e6-0x1b8,_0xd30cd0);}function _0x35a307(_0x519dc0,_0x1fc8b6,_0x4ddb81,_0x267063){return _0x31ad(_0x1fc8b6- -_0x59ef76._0x348120,_0x267063);}return{...typeof _0x36272f['id']===_0x35a307(-0x25,-0xf,_0x23228e._0x166093,-_0x23228e._0x132c58)?{'id':_0x36272f['id']}:{},'role':_0x36272f[_0x12f95a(0x2a5,_0x23228e._0x4181fd,0x28c,_0x23228e._0x322cde)],'content':normalizeContent(_0x36272f[_0x12f95a(0x2ab,_0x23228e._0x53484f,0x2b1,0x2c4)]),..._0x36272f['providerState']?{'providerState':structuredClone(_0x36272f[_0x35a307(-_0x23228e._0x2ced72,-_0x23228e._0x41aebc,-_0x23228e._0x47c59d,-0x2c)])}:{}};}function _0x31ad(_0x2fbfae,_0x123533){_0x2fbfae=_0x2fbfae-0xea;const _0x58032b=_0x5803();let _0x31ada5=_0x58032b[_0x2fbfae];if(_0x31ad['uCTqSH']===undefined){var _0x426edd=function(_0x18707f){const _0x18f8d3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5e7636='',_0x8d471d='';for(let _0x4c6b51=0x0,_0x421ff5,_0x20f401,_0x28f20c=0x0;_0x20f401=_0x18707f['charAt'](_0x28f20c++);~_0x20f401&&(_0x421ff5=_0x4c6b51%0x4?_0x421ff5*0x40+_0x20f401:_0x20f401,_0x4c6b51++%0x4)?_0x5e7636+=String['fromCharCode'](0xff&_0x421ff5>>(-0x2*_0x4c6b51&0x6)):0x0){_0x20f401=_0x18f8d3['indexOf'](_0x20f401);}for(let _0x36272f=0x0,_0x1a46a6=_0x5e7636['length'];_0x36272f<_0x1a46a6;_0x36272f++){_0x8d471d+='%'+('00'+_0x5e7636['charCodeAt'](_0x36272f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x8d471d);};_0x31ad['GAreyl']=_0x426edd,_0x31ad['CCNqiA']={},_0x31ad['uCTqSH']=!![];}const _0x54645b=_0x58032b[0x0],_0x83be1c=_0x2fbfae+_0x54645b,_0x59fe45=_0x31ad['CCNqiA'][_0x83be1c];return!_0x59fe45?(_0x31ada5=_0x31ad['GAreyl'](_0x31ada5),_0x31ad['CCNqiA'][_0x83be1c]=_0x31ada5):_0x31ada5=_0x59fe45,_0x31ada5;}function compileRequest(_0x1a46a6){const _0xb9b344={_0x161cab:0xd,_0x4dff68:0x4,_0x1300ae:0x8,_0x4a8289:0x2,_0x1bf42f:0x13,_0x14578e:0x3,_0x20f3ab:0x11,_0x7fefe3:0x14,_0x20b63c:0x3,_0xcd690d:0x2cf,_0x3acbad:0x2dc,_0x3085f4:0x2e8,_0x5397ca:0x302,_0x4d7431:0x2fa,_0x249b51:0x2fe,_0x562c30:0x2eb,_0x9fe2e:0x2f1},_0x2d6dc3={_0x148fc5:0x1e3};function _0x5eee64(_0x57e338,_0x408bb3,_0x10aa33,_0x59652f){return _0x31ad(_0x59652f- -0x117,_0x57e338);}function _0x4daa12(_0x576680,_0x1628a2,_0x2e0141,_0x47f8b0){return _0x31ad(_0x2e0141-_0x2d6dc3._0x148fc5,_0x576680);}return{'model':_0x1a46a6[_0x5eee64(_0xb9b344._0x161cab,-0x8,-0x19,-0x8)]??_0x5eee64(0x1,_0xb9b344._0x4dff68,-_0xb9b344._0x1300ae,-_0xb9b344._0x4a8289),'max_tokens':_0x1a46a6['max_tokens']??0x400,..._0x1a46a6[_0x5eee64(0xc,_0xb9b344._0x1bf42f,0x17,_0xb9b344._0x14578e)]?{'reasoning':structuredClone(_0x1a46a6[_0x5eee64(_0xb9b344._0x20f3ab,-_0xb9b344._0x7fefe3,-0x3,_0xb9b344._0x20b63c)])}:{},'system':normalizeSystem(_0x1a46a6['system']),'messages':_0x1a46a6[_0x4daa12(_0xb9b344._0xcd690d,_0xb9b344._0x3acbad,_0xb9b344._0x3085f4,_0xb9b344._0x5397ca)]['map'](normalizeMessage),'tools':structuredClone(_0x1a46a6['tools']??[]),'metadata':{'session_id':_0x1a46a6[_0x4daa12(_0xb9b344._0x4d7431,_0xb9b344._0x249b51,_0xb9b344._0x562c30,_0xb9b344._0x9fe2e)],'turn_id':_0x1a46a6['turnId']}};}function toChatRequest(_0x33db9f){const _0x5964b5={_0x3ed80e:0x32b,_0x311f11:0x34f,_0x14687b:0x32a,_0x3e9492:0x341,_0x11d371:0x4f7,_0x6d2bb7:0x4f1,_0x53262b:0x500,_0x257238:0x4fc,_0x5accd5:0x519,_0x329183:0x500,_0x4a8697:0x335,_0x2b309f:0x33a,_0x4871bd:0x347,_0x113d19:0x4e2,_0x2a0090:0x4d0,_0x301327:0x4da,_0x19afca:0x4d3};function _0x2e7949(_0x3c42ad,_0x55d131,_0x105ba9,_0x500843){return _0x31ad(_0x3c42ad-0x21c,_0x55d131);}function _0x12c49b(_0x29bc6f,_0x10ea46,_0xdcb2ca,_0x6bb2df){return _0x31ad(_0x10ea46-0x3e4,_0xdcb2ca);}return{'model':_0x33db9f[_0x2e7949(_0x5964b5._0x3ed80e,0x313,0x327,0x323)],'maxTokens':_0x33db9f['max_tokens'],..._0x33db9f[_0x2e7949(0x336,_0x5964b5._0x311f11,_0x5964b5._0x14687b,_0x5964b5._0x3e9492)]?{'reasoning':structuredClone(_0x33db9f[_0x12c49b(_0x5964b5._0x11d371,0x4fe,0x4e6,_0x5964b5._0x6d2bb7)])}:{},'system':structuredClone(_0x33db9f['system']),'messages':structuredClone(_0x33db9f[_0x12c49b(_0x5964b5._0x53262b,0x4e9,0x4e6,_0x5964b5._0x257238)]),'tools':structuredClone(_0x33db9f[_0x12c49b(_0x5964b5._0x5accd5,_0x5964b5._0x329183,0x519,0x512)]),'metadata':{'sessionId':_0x33db9f['metadata'][_0x2e7949(_0x5964b5._0x4a8697,_0x5964b5._0x2b309f,_0x5964b5._0x4871bd,0x331)],'turnId':_0x33db9f[_0x12c49b(0x4f6,_0x5964b5._0x113d19,0x4ec,_0x5964b5._0x2a0090)][_0x12c49b(_0x5964b5._0x301327,0x4dd,0x4ca,_0x5964b5._0x19afca)]}};}function toModelRequest(_0x240c25){const _0x2646ed={_0x3fc2d0:0x469,_0x261b32:0x266,_0x2408d0:0x25c,_0x1584c3:0x26c,_0x650c65:0x247,_0x298796:0x249,_0x353b7a:0x476,_0x59b742:0x48d,_0x3fcd53:0x473,_0x20e3c7:0x46e,_0x3d8548:0x47d,_0x54c82f:0x47a,_0x116a7a:0x479,_0x22ff42:0x245,_0x241ce6:0x263,_0x2eda6c:0x238,_0x1f2486:0x235},_0xa296f4={_0x4a6bde:0x14b},_0x2c2569={_0x4747fe:0x371};function _0x56d0a9(_0x4299e4,_0x556a07,_0x5769df,_0x2cefb8){return _0x31ad(_0x2cefb8-_0x2c2569._0x4747fe,_0x4299e4);}function _0x4599a9(_0x1c30c2,_0x154cfe,_0x56614a,_0x3d1992){return _0x31ad(_0x56614a-_0xa296f4._0x4a6bde,_0x154cfe);}return{'model':_0x240c25[_0x56d0a9(0x46b,_0x2646ed._0x3fc2d0,0x495,0x480)],'max_tokens':_0x240c25[_0x4599a9(0x269,_0x2646ed._0x261b32,_0x2646ed._0x2408d0,_0x2646ed._0x1584c3)],..._0x240c25[_0x56d0a9(0x47c,0x495,0x495,0x48b)]?{'reasoning':structuredClone(_0x240c25['reasoning'])}:{},'system':structuredClone(_0x240c25[_0x4599a9(_0x2646ed._0x650c65,_0x2646ed._0x298796,0x23d,0x253)]),'messages':structuredClone(_0x240c25['messages']),'tools':structuredClone(_0x240c25[_0x56d0a9(0x487,_0x2646ed._0x353b7a,0x484,_0x2646ed._0x59b742)]),'metadata':{'session_id':_0x240c25[_0x56d0a9(0x47d,_0x2646ed._0x3fcd53,_0x2646ed._0x20e3c7,0x46f)][_0x56d0a9(_0x2646ed._0x3d8548,_0x2646ed._0x54c82f,0x460,_0x2646ed._0x116a7a)],'turn_id':_0x240c25[_0x4599a9(_0x2646ed._0x22ff42,_0x2646ed._0x241ce6,0x249,0x259)][_0x4599a9(0x24c,_0x2646ed._0x2eda6c,0x23c,_0x2646ed._0x1f2486)]}};}function toProviderModelRequest(_0x425eff){const _0x286e2a={_0x9a1aa9:0x1c8,_0x1617ab:0x1bd,_0x139195:0x157,_0x6a344f:0x142,_0x65b5d3:0x1d7,_0x4627d6:0x1bf},_0x379caa={_0x507456:0x38};function _0x496727(_0x10ff1f,_0x290644,_0x1f9a58,_0x25ece2){return _0x31ad(_0x10ff1f-0xb9,_0x290644);}function _0x46b8df(_0x15a2ee,_0x5f47eb,_0x5436e3,_0x29b5e5){return _0x31ad(_0x15a2ee-_0x379caa._0x507456,_0x5f47eb);}return{'model':_0x425eff[_0x496727(_0x286e2a._0x9a1aa9,_0x286e2a._0x1617ab,0x1e0,0x1d8)],'max_tokens':_0x425eff[_0x46b8df(0x149,_0x286e2a._0x139195,0x138,_0x286e2a._0x6a344f)],'system':structuredClone(_0x425eff['system']),'messages':structuredClone(_0x425eff[_0x496727(0x1be,0x1c8,_0x286e2a._0x65b5d3,_0x286e2a._0x4627d6)]),'tools':structuredClone(_0x425eff['tools'])};}function toChatResponse(_0x4d5803){const _0x1c93e7={_0x1a432b:0x3c4,_0x55ec94:0x3a9,_0x29ffa2:0x3df,_0x283ff3:0x3e9,_0x1719fe:0x175,_0x3a3cdd:0x15c,_0x1d4c3a:0x180,_0x463b1b:0x18b,_0x3f532c:0x18e,_0x3ce0d4:0x173,_0x293632:0x18c},_0x22db98={_0x2a2afa:0x2cc};function _0x20a7e4(_0x5c0231,_0x2f4547,_0x347550,_0x471770){return _0x31ad(_0x347550-_0x22db98._0x2a2afa,_0x471770);}function _0x12b1de(_0x4fa3a9,_0xcaa10f,_0x265cb0,_0x563ac7){return _0x31ad(_0x563ac7- -0x27b,_0x265cb0);}return{'id':_0x4d5803['id'],'content':structuredClone(_0x4d5803[_0x12b1de(-0x190,-0x16f,-0x179,-0x188)]),'stopReason':_0x4d5803['stop_reason'],'usage':{'inputTokens':_0x4d5803[_0x20a7e4(_0x1c93e7._0x1a432b,_0x1c93e7._0x55ec94,0x3c2,0x3d5)][_0x20a7e4(0x3d7,0x3cb,_0x1c93e7._0x29ffa2,_0x1c93e7._0x283ff3)],'outputTokens':_0x4d5803['usage']['output_tokens'],..._0x4d5803['usage'][_0x12b1de(-_0x1c93e7._0x1719fe,-_0x1c93e7._0x3a3cdd,-0x16a,-0x16d)]!==void 0x0?{'reasoningTokens':_0x4d5803['usage']['reasoning_tokens']}:{}},..._0x4d5803[_0x12b1de(-_0x1c93e7._0x1d4c3a,-_0x1c93e7._0x463b1b,-0x19a,-0x18c)]?{'providerState':structuredClone(_0x4d5803[_0x12b1de(-0x178,-_0x1c93e7._0x3f532c,-_0x1c93e7._0x3ce0d4,-_0x1c93e7._0x293632)])}:{}};}function toModelResponse(_0x330c68){const _0x521212={_0x3a713e:0xc1,_0x4bf0ad:0xd0,_0x37f265:0xca,_0x2b51a6:0x379,_0x4e3a37:0x395,_0x3d2690:0x38e,_0x3dc2d3:0x37d,_0x31f54b:0x368,_0x4f9497:0xb4,_0xb0af7b:0xc9,_0x56d5fd:0xc6,_0x146baf:0xd6,_0x1b0dd4:0xda,_0x516c88:0x361,_0x25fff0:0x38a,_0x13e077:0xb7,_0x3f9b2f:0xba},_0x4b9227={_0x55de34:0x30},_0x403bb0={_0x438b37:0x287};function _0x592e4c(_0x4f5d11,_0x555c83,_0x1561ac,_0x562e1d){return _0x31ad(_0x4f5d11-_0x403bb0._0x438b37,_0x1561ac);}function _0x251072(_0x3a38da,_0x9541f0,_0x5ca25a,_0x2cf54b){return _0x31ad(_0x2cf54b- -_0x4b9227._0x55de34,_0x9541f0);}return{'id':_0x330c68['id'],'type':_0x251072(_0x521212._0x3a713e,_0x521212._0x4bf0ad,_0x521212._0x37f265,0xc7),'role':'assistant','content':structuredClone(_0x330c68['content']),'stop_reason':_0x330c68[_0x592e4c(0x384,_0x521212._0x2b51a6,_0x521212._0x4e3a37,_0x521212._0x3d2690)],'stop_sequence':null,'usage':{'input_tokens':_0x330c68[_0x592e4c(_0x521212._0x3dc2d3,0x389,_0x521212._0x31f54b,0x38d)][_0x251072(0xae,_0x521212._0x4f9497,0xb9,0xc0)],'output_tokens':_0x330c68['usage']['outputTokens'],..._0x330c68[_0x251072(_0x521212._0xb0af7b,0xb8,0xac,_0x521212._0x56d5fd)][_0x251072(0xb8,_0x521212._0x146baf,_0x521212._0x1b0dd4,0xd1)]!==void 0x0?{'reasoning_tokens':_0x330c68['usage']['reasoningTokens']}:{}},..._0x330c68[_0x592e4c(0x376,_0x521212._0x516c88,_0x521212._0x25fff0,0x38f)]?{'providerState':structuredClone(_0x330c68[_0x251072(_0x521212._0x13e077,_0x521212._0x3f9b2f,0xd3,0xbf)])}:{}};}function responseToAssistantMessage(_0x178065){const _0x5df9b0={_0xa878a6:0x5c,_0x227647:0x4b,_0x4a56e0:0x42,_0x2fd511:0x28,_0x234d7a:0x38,_0x3cd650:0x2d},_0x44e60e={_0x466fb0:0xaf};function _0x4c99b3(_0x1168f9,_0x4e8671,_0x1dbae3,_0x6710d7){return _0x31ad(_0x1168f9- -0x101,_0x4e8671);}function _0x10770c(_0xb9d875,_0x477aba,_0x4987a9,_0x1d7a84){return _0x31ad(_0xb9d875- -_0x44e60e._0x466fb0,_0x1d7a84);}return{'role':_0x10770c(_0x5df9b0._0xa878a6,_0x5df9b0._0x227647,_0x5df9b0._0x4a56e0,0x48),'content':normalizeContent(_0x178065[_0x4c99b3(-0xe,-0x25,-_0x5df9b0._0x2fd511,-0x14)]),..._0x178065['providerState']?{'providerState':structuredClone(_0x178065[_0x10770c(0x40,_0x5df9b0._0x234d7a,_0x5df9b0._0x3cd650,0x2f)])}:{}};}function _0x5803(){const _0x10be43=['BwvZC2fNzq','DgHPBMTPBMC','DhvYBL9Pza','ote3ntC3CvziB3fV','B3v0Chv0','zMLSDgvY','C3rVCfjLyxnVBG','Bwv0ywrHDge','nMXXtgvLBW','mtGZmtm5nMHZyvneDq','CMvHC29UAw5Nvg9Rzw5Z','C3vTBwfYEq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','BgvUz3rO','BwvZC2fNzxm','zMXHDe1HCa','nZyZnZH2z2rLChK','C2vZC2LVBKLK','DhjPBq','y2fSBeLK','yxnZAxn0yw50','AM9PBG','DhLWzq','CMvHC29UAw5Nx3rVA2vUCW','Bw9KzwW','Dg9VBf9Yzxn1Bhq','Bwf4vg9Rzw5Z','mZeYmta1mLP1DuDTyW','Aw5WDxrFDg9Rzw5Z','Dgv4Da','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','mJK2nJKYnvvluvLjza','mJzUsLHfzMi','C3rYAw5N','C2vZC2LVBL9Pza','CMvHC29UAw5N','B3bLBMfPx3jLyxnVBMLUzW','Dg9VBhm','nJbHD1r3D2K','mZi4zvbLuM9H','yw50AhjVCgLJx3rOAw5RAw5N','ntuZExPVvePr','CM9Szq','nta5odu3mhjXB3HUqq','ChjVDMLKzxjtDgf0zq','Aw5WDxruB2TLBNm','DhvYBKLK','C3LZDgvT','y29UDgvUDa','BwfW','kgvUy3j5ChrLzcbYzwfZB25PBMCP','DxnHz2u'];_0x5803=function(){return _0x10be43;};return _0x5803();}function createReasoningMessage(_0x19251c){const _0x43e5ad={_0x3e9252:0x1bb,_0x103b2e:0x1cd,_0x1afb07:0x1e2,_0x547ec6:0x1ce},_0x52ae75={_0x7a2d1f:0x2d2},_0x200679={_0x23158d:0x208,_0x11e8c5:0x1f8,_0x5496fa:0x1d6,_0x2b7ea8:0x1c6,_0x3f8c00:0x1ab,_0x38c36c:0x1cc,_0x53d219:0x1aa},_0x120f9b={_0x3a05d1:0x2dd},_0x4e1cc3=normalizeContent(_0x19251c?.['content'])['filter'](_0x2171ff=>{function _0x211843(_0x34518d,_0x4a8800,_0x4ce390,_0x390c2e){return _0x31ad(_0x4a8800-0xeb,_0x390c2e);}function _0x7d6831(_0x28e9c2,_0x8e93ca,_0x31c6b8,_0x4e5492){return _0x31ad(_0x4e5492- -_0x120f9b._0x3a05d1,_0x28e9c2);}return _0x2171ff['type']==='anthropic_redacted_thinking'||_0x2171ff[_0x211843(_0x200679._0x23158d,_0x200679._0x11e8c5,0x1e3,0x203)]===_0x211843(0x1e2,_0x200679._0x5496fa,_0x200679._0x2b7ea8,0x1e1)||_0x2171ff[_0x211843(0x204,0x1f8,0x1ee,0x1fb)]===_0x7d6831(-_0x200679._0x3f8c00,-_0x200679._0x38c36c,-_0x200679._0x53d219,-0x1c2);});function _0x3a3391(_0x10c6fc,_0x522e20,_0x18b268,_0x13ac05){return _0x31ad(_0x13ac05- -_0x52ae75._0x7a2d1f,_0x18b268);}if(_0x4e1cc3[_0x3a3391(-_0x43e5ad._0x3e9252,-_0x43e5ad._0x103b2e,-_0x43e5ad._0x1afb07,-_0x43e5ad._0x547ec6)]===0x0)return void 0x0;return{'role':'assistant','content':_0x4e1cc3};}function createAssistantTextMessage(_0x2ca0ed){const _0x3b23fc={_0x27d5c1:0x54,_0x418b8a:0x48c,_0x237a1:0x48d},_0x4e792e={_0xc203fc:0x48,_0x47213a:0x53,_0x832c88:0x31,_0x345b4b:0x3b,_0x406373:0x2e4},_0x589d2f={_0x20e828:0x1de,_0x355c24:0x1d1},_0xfaf7bf={_0x5e0ca1:0x49};function _0x3053b2(_0xd2ebaa,_0x288c70,_0x43e538,_0x66af4d){return _0x31ad(_0x288c70-0x3a8,_0x66af4d);}function _0x27dae6(_0xbf3851,_0x37c4b3,_0x338cee,_0x35e89f){return _0x31ad(_0x37c4b3- -0x13c,_0xbf3851);}const _0x391f2b=normalizeContent(_0x2ca0ed?.[_0x27dae6(-0x51,-0x49,-0x3d,-_0x3b23fc._0x27d5c1)])[_0x3053b2(_0x3b23fc._0x418b8a,0x4a4,_0x3b23fc._0x237a1,0x4af)](_0x49f5af=>{function _0x5d0f9b(_0x3cc341,_0x5c2399,_0x2c3f3f,_0x59f649){return _0x3053b2(_0x3cc341-0x64,_0x3cc341- -0x4fd,_0x2c3f3f-_0xfaf7bf._0x5e0ca1,_0x5c2399);}function _0xe1562b(_0x19c81d,_0x120b67,_0x1b9563,_0x1a9f18){return _0x3053b2(_0x19c81d-0xde,_0x1b9563- -_0x589d2f._0x20e828,_0x1b9563-_0x589d2f._0x355c24,_0x1a9f18);}return _0x49f5af[_0x5d0f9b(-_0x4e792e._0xc203fc,-_0x4e792e._0x47213a,-_0x4e792e._0x832c88,-_0x4e792e._0x345b4b)]===_0xe1562b(0x2e2,0x2e7,0x2de,_0x4e792e._0x406373);});if(_0x391f2b['length']===0x0)return void 0x0;return{'role':'assistant','content':_0x391f2b};}function createToolUseMessage(_0x48dd00){const _0x3146d3={_0x4e78ec:0x188,_0x1fa2eb:0x2b0,_0x399afb:0x2b2,_0x3af5de:0x17d,_0xa47b0:0x2a3,_0xa9a7f5:0x2c6},_0x4fe1bd={_0x44c686:0x20f,_0x4202bf:0x225,_0x4b0fee:0x21e},_0x5d638e={_0x347515:0x278};function _0x33a804(_0x27fc2e,_0x7bfee9,_0x548640,_0x123c78){return _0x31ad(_0x7bfee9- -_0x5d638e._0x347515,_0x548640);}function _0x5c9580(_0x25d8e4,_0x3fbd51,_0x326eae,_0x316905){return _0x31ad(_0x25d8e4-0x1af,_0x326eae);}const _0x2807a7=normalizeContent(_0x48dd00?.[_0x33a804(-_0x3146d3._0x4e78ec,-0x185,-0x19e,-0x188)])[_0x5c9580(0x2ab,_0x3146d3._0x1fa2eb,_0x3146d3._0x399afb,0x2a1)](_0x108473=>{const _0x2ed112={_0xa90b9f:0x4cb};function _0x22049c(_0x1a5e77,_0x74371d,_0x4789c9,_0xe8279d){return _0x5c9580(_0x1a5e77- -_0x2ed112._0xa90b9f,_0x74371d-0xc8,_0xe8279d,_0xe8279d-0xed);}return _0x108473[_0x22049c(-_0x4fe1bd._0x44c686,-_0x4fe1bd._0x4202bf,-0x208,-_0x4fe1bd._0x4b0fee)]==='tool_use';});if(_0x2807a7[_0x33a804(-_0x3146d3._0x3af5de,-0x174,-0x172,-0x15d)]===0x0)return void 0x0;return{'role':_0x5c9580(0x2ba,_0x3146d3._0xa47b0,0x2c8,_0x3146d3._0xa9a7f5),'content':_0x2807a7};}function getTextFromMessage(_0x4e024e){const _0x1d6977={_0x4c0cd3:0x397,_0x1e888e:0x39b,_0xf39fc7:0x3a0,_0x403e50:0x3a6,_0xd3286e:0x398,_0x252291:0x392,_0x55140e:0x2d8,_0x578125:0x2fb,_0x1c758d:0x2ec,_0x1d0285:0x2e8},_0x1c26f1={_0x1ea58e:0x1f8},_0x149a17={_0x286340:0x2ad};function _0x36f633(_0x4c5504,_0x20b298,_0x4eb572,_0xb9ff1a){return _0x31ad(_0xb9ff1a-_0x149a17._0x286340,_0x20b298);}function _0x18cddf(_0x4f3bc7,_0x447b41,_0x5f2c47,_0x3cf42c){return _0x31ad(_0x5f2c47-_0x1c26f1._0x1ea58e,_0x3cf42c);}return normalizeContent(_0x4e024e?.[_0x36f633(_0x1d6977._0x4c0cd3,0x388,_0x1d6977._0x1e888e,_0x1d6977._0xf39fc7)])[_0x36f633(_0x1d6977._0x403e50,_0x1d6977._0xd3286e,_0x1d6977._0x252291,0x3a9)](_0x1ff2df=>_0x1ff2df[_0x18cddf(0x314,0x303,0x305,0x311)]===_0x36f633(0x3b9,0x3ce,0x3ae,0x3c1))[_0x18cddf(_0x1d6977._0x55140e,_0x1d6977._0x578125,_0x1d6977._0x1c758d,_0x1d6977._0x1d0285)](_0xc7cb47=>_0xc7cb47['text'])['join']('\x0a');}function getReasoningTextFromMessage(_0x52a767){const _0x10acfd={_0x2b442b:0x64,_0x3dfa88:0x451,_0x3254a0:0x447,_0x10b4dd:0x77,_0x357440:0x67},_0x5690c6={_0x1c9e30:0xca,_0x4a54f7:0xb3,_0x3441d4:0xd5,_0x424be4:0x32c,_0x35fc68:0x2fb,_0xc7cf37:0x30f,_0x7c8d2a:0xdf,_0x30d205:0xc4,_0x3816f8:0xc1,_0x50f371:0xb8,_0x1e93e9:0xbe,_0x867221:0xbd,_0x14b1a8:0x2ee,_0x5ba367:0x2ff,_0x390e4b:0x308,_0x17c0b3:0x328,_0xa0dbc2:0x303,_0x1156dc:0x30b,_0x5687f2:0x2fe,_0x3f148b:0x314,_0x9fe7c1:0x324,_0x3f0186:0xa5,_0xce1344:0x9f,_0x45a6b2:0x310,_0x37b576:0x300,_0x30c88d:0x2ff},_0x1473cb={_0x181b3c:0xf5,_0x32635f:0x2ad,_0x51ec96:0xbd},_0x36fff2={_0x34bca3:0x71,_0x3a5054:0x11e,_0x33e0e4:0x53},_0x1811ab={_0x39e348:0xa2},_0x3a328e={_0x2c1ef5:0x34b};function _0x3ea923(_0x5686d2,_0x44dfb4,_0x1aecc5,_0x2fe2ab){return _0x31ad(_0x5686d2-_0x3a328e._0x2c1ef5,_0x2fe2ab);}function _0x1f14ca(_0x49b04a,_0x2a473f,_0x543fbc,_0x155369){return _0x31ad(_0x543fbc- -_0x1811ab._0x39e348,_0x49b04a);}return normalizeContent(_0x52a767?.[_0x1f14ca(0x57,_0x10acfd._0x2b442b,0x51,0x4e)])[_0x3ea923(_0x10acfd._0x3dfa88,0x46b,_0x10acfd._0x3254a0,0x464)](_0x41f89c=>{if(_0x41f89c[_0x5c77b8(-_0x5690c6._0x1c9e30,-0xb5,-_0x5690c6._0x4a54f7,-0xb5)]===_0x5c77b8(-0xda,-0xd2,-_0x5690c6._0x3441d4,-0xe6))return _0x41f89c['thinking'][_0x55bd0d(_0x5690c6._0x424be4,0x314,_0x5690c6._0x35fc68,0x30b)]()[_0x55bd0d(0x321,0x30f,0x328,_0x5690c6._0xc7cf37)]>0x0?[_0x41f89c[_0x5c77b8(-_0x5690c6._0x7c8d2a,-0xba,-0xc8,-_0x5690c6._0x30d205)]]:[];if(_0x41f89c[_0x55bd0d(0x311,0x318,0x329,0x31e)]===_0x55bd0d(0x2fa,0x30e,0x2fa,0x2f9))return['(redacted\x20reasoning)'];if(_0x41f89c[_0x5c77b8(-0xb5,-_0x5690c6._0x3816f8,-0xb3,-_0x5690c6._0x50f371)]!=='openai_reasoning')return[];function _0x5c77b8(_0x524a0d,_0xd60a6a,_0x576d1c,_0x183ccc){return _0x1f14ca(_0xd60a6a,_0xd60a6a-_0x36fff2._0x34bca3,_0x576d1c- -_0x36fff2._0x3a5054,_0x183ccc-_0x36fff2._0x33e0e4);}const _0x2f5f99=_0x41f89c[_0x5c77b8(-0xb1,-_0x5690c6._0x30d205,-_0x5690c6._0x1e93e9,-_0x5690c6._0x867221)][_0x55bd0d(_0x5690c6._0x14b1a8,_0x5690c6._0x5ba367,_0x5690c6._0x14b1a8,0x307)](_0x3e8888=>_0x3e8888[_0x5c77b8(-0xb6,-0xa9,-0xac,-0xb7)])[_0x55bd0d(0x2f7,0x307,_0x5690c6._0x390e4b,0x2f6)](_0x6245c6=>_0x6245c6[_0x55bd0d(0x32d,0x314,0x302,0x303)]()[_0x5c77b8(-0xcb,-0xa9,-0xbc,-0xca)]>0x0)[_0x55bd0d(_0x5690c6._0x17c0b3,0x317,0x2fd,_0x5690c6._0xa0dbc2)]('\x0a\x0a');if(_0x2f5f99[_0x55bd0d(_0x5690c6._0x35fc68,0x30f,0x328,0x309)]>0x0)return[_0x2f5f99];if(_0x41f89c['text']&&_0x41f89c[_0x55bd0d(_0x5690c6._0x1156dc,0x31f,0x30a,0x30f)][_0x55bd0d(_0x5690c6._0x5687f2,_0x5690c6._0x3f148b,0x319,_0x5690c6._0x9fe7c1)]()[_0x5c77b8(-0xa7,-0xab,-0xbc,-0xb2)]>0x0)return[_0x41f89c[_0x5c77b8(-_0x5690c6._0x3f0186,-_0x5690c6._0xce1344,-0xac,-_0x5690c6._0x3f0186)]];function _0x55bd0d(_0x48d1f6,_0x4b4769,_0x5d51d4,_0x42d8b2){return _0x1f14ca(_0x48d1f6,_0x4b4769-_0x1473cb._0x181b3c,_0x4b4769-_0x1473cb._0x32635f,_0x42d8b2-_0x1473cb._0x51ec96);}return _0x41f89c['encryptedContent']?[_0x55bd0d(_0x5690c6._0x45a6b2,_0x5690c6._0x37b576,0x2f4,_0x5690c6._0x30c88d)]:[];})[_0x1f14ca(_0x10acfd._0x10b4dd,0x81,0x6a,_0x10acfd._0x357440)]('\x0a\x0a');}function getToolUseBlocks(_0x303bfc){const _0x4a2f62={_0x4d3add:0x83},_0x4b756d={_0x39af6f:0x194},_0xa404cc={_0x511e2a:0x162};function _0x1d6893(_0x45e836,_0x1b50e4,_0x2195fd,_0x5a6699){return _0x31ad(_0x1b50e4- -_0xa404cc._0x511e2a,_0x5a6699);}function _0x1004a5(_0x58bc14,_0x1851ec,_0x4ff8b8,_0x3c697d){return _0x31ad(_0x3c697d-_0x4b756d._0x39af6f,_0x1851ec);}return normalizeContent(_0x303bfc?.[_0x1d6893(-0x6d,-0x6f,-_0x4a2f62._0x4d3add,-0x7e)])[_0x1004a5(0x281,0x2aa,0x29b,0x290)](_0x172f22=>_0x172f22[_0x1004a5(0x2a1,0x2b0,0x29d,0x2a1)]==='tool_use');}function getToolResultBlocks(_0x32cb62){const _0x1439fb={_0x582729:0xcf,_0x204a00:0xce,_0x3e9104:0xd6,_0x4e5e70:0xdb},_0x2d23c6={_0x248303:0x36};function _0x56b05d(_0x6dcffb,_0x3fcc02,_0x5ba044,_0x55e66b){return _0x31ad(_0x3fcc02-0x3a4,_0x6dcffb);}function _0x805efc(_0x2ccc7b,_0x53e06a,_0x2a764f,_0x4d14f7){return _0x31ad(_0x4d14f7- -_0x2d23c6._0x248303,_0x53e06a);}return normalizeContent(_0x32cb62?.[_0x805efc(0xae,0xad,_0x1439fb._0x582729,0xbd)])[_0x805efc(_0x1439fb._0x204a00,_0x1439fb._0x3e9104,_0x1439fb._0x4e5e70,0xc6)](_0x539969=>_0x539969[_0x56b05d(0x4bb,0x4b1,0x4ae,0x4c8)]===_0x805efc(0xcb,0xec,0xef,0xda));}function createToolResultUserMessage(_0x18323a){const _0x208f96={_0x74d4a9:0x24f,_0xc31470:0x254,_0x29c44b:0x255},_0x15ce02={_0x3aa8e2:0x27a,_0x4699e0:0x27d,_0x1a6709:0x295,_0x41525e:0x484},_0x5f0e79={_0x83106e:0x349};function _0x5eafbb(_0x5ecb2,_0x49184c,_0x21c837,_0x1d0cce){return _0x31ad(_0x1d0cce- -_0x5f0e79._0x83106e,_0x49184c);}return{'role':'user','content':_0x18323a[_0x5eafbb(-0x243,-_0x208f96._0x74d4a9,-_0x208f96._0xc31470,-_0x208f96._0x29c44b)](_0x590f3c=>{const _0x2a7f90={_0x26cfc4:0x16e,_0x206722:0x6c5},_0x46391f={_0x4dbe18:0x190,_0x4a9aea:0x15e,_0x3a4e5d:0x3e};function _0x10baa5(_0x11e78a,_0x507221,_0x3deb8e,_0xe92ef9){return _0x5eafbb(_0x11e78a-_0x46391f._0x4dbe18,_0x11e78a,_0x3deb8e-_0x46391f._0x4a9aea,_0x507221- -_0x46391f._0x3a4e5d);}function _0x4361a4(_0x232d8e,_0x28a2ae,_0x51cb95,_0x3939ae){return _0x5eafbb(_0x232d8e-0x12d,_0x51cb95,_0x51cb95-_0x2a7f90._0x26cfc4,_0x28a2ae-_0x2a7f90._0x206722);}return{'type':_0x4361a4(0x495,0x48c,0x4a0,0x47b),'tool_use_id':_0x590f3c[_0x10baa5(-_0x15ce02._0x3aa8e2,-_0x15ce02._0x4699e0,-0x297,-_0x15ce02._0x1a6709)],'content':_0x590f3c['content']??_0x590f3c[_0x4361a4(_0x15ce02._0x41525e,0x477,0x473,0x483)],'is_error':_0x590f3c['status']==='error'};})};}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage};
|
package/dist/chunk-LXQDGX4K.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x382254,_0x4c793d){const _0x270c84={_0xaebe:0x175,_0x18ef13:0x1a4,_0x3f6462:0x15f,_0x44b588:0x179,_0x2b4be7:0x17d,_0x4b7daf:0x157,_0x6be9ce:0x16b,_0x2b02e9:0x19e,_0x12ee22:0x1a6,_0x43bb49:0x192,_0x3a6d6a:0x18e,_0x4569a9:0x182,_0x47013e:0x17d,_0x3daeb9:0x17f,_0x19bdcf:0x178,_0x143655:0x177,_0x1a3834:0x18f,_0xa2475f:0x191,_0x16bd37:0x181,_0x3e616d:0x195,_0x19cac6:0x178,_0x522295:0x70},_0x4dd6e8={_0x1c1e66:0x76};function _0x453487(_0x40b3cd,_0x2c0521,_0xea544a,_0x3d1b70){return _0x1e31(_0x3d1b70-0xa5,_0xea544a);}const _0x2f4f1b=_0x382254();function _0x3a72ee(_0x2dbae9,_0x4d1bb7,_0x3f2101,_0x5f3582){return _0x1e31(_0x4d1bb7- -_0x4dd6e8._0x1c1e66,_0x3f2101);}while(!![]){try{const _0x503765=parseInt(_0x453487(_0x270c84._0xaebe,0x172,_0x270c84._0x18ef13,0x189))/0x1+-parseInt(_0x453487(0x166,0x17c,_0x270c84._0x3f6462,_0x270c84._0x44b588))/0x2*(parseInt(_0x453487(0x17c,_0x270c84._0x2b4be7,_0x270c84._0x4b7daf,_0x270c84._0x6be9ce))/0x3)+parseInt(_0x453487(_0x270c84._0x2b02e9,_0x270c84._0x12ee22,_0x270c84._0x43bb49,_0x270c84._0x3a6d6a))/0x4+-parseInt(_0x453487(_0x270c84._0x4569a9,_0x270c84._0x47013e,0x180,0x174))/0x5*(-parseInt(_0x453487(0x16f,0x193,0x194,_0x270c84._0x3daeb9))/0x6)+-parseInt(_0x453487(0x193,_0x270c84._0x19bdcf,_0x270c84._0x143655,0x18a))/0x7*(-parseInt(_0x453487(0x1a4,0x17e,_0x270c84._0x3a6d6a,_0x270c84._0x1a3834))/0x8)+-parseInt(_0x453487(0x183,_0x270c84._0xa2475f,_0x270c84._0x19bdcf,_0x270c84._0x16bd37))/0x9*(-parseInt(_0x453487(0x18b,_0x270c84._0x3e616d,_0x270c84._0x19cac6,0x17c))/0xa)+-parseInt(_0x3a72ee(0x4d,0x5a,0x4c,_0x270c84._0x522295))/0xb;if(_0x503765===_0x4c793d)break;else _0x2f4f1b['push'](_0x2f4f1b['shift']());}catch(_0x1317aa){_0x2f4f1b['push'](_0x2f4f1b['shift']());}}}(_0x3cdb,0xadb43));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-G2FR4UGO.js';function systemToInstructions(_0x3d1781){const _0x25d93f={_0x4d400e:0x486,_0x19d1bf:0x46d,_0x4fc5a9:0x468,_0x113c54:0x453},_0xe6f486={_0x40c9cd:0x345},_0x2b72ed={_0x3338fd:0x3aa};function _0x4c48cb(_0x3cea62,_0x38237e,_0x4c8a9c,_0x509501){return _0x1e31(_0x3cea62-_0x2b72ed._0x3338fd,_0x4c8a9c);}function _0xe75c6d(_0x45fbd2,_0x5dcfaa,_0x77d0d8,_0x5c9beb){return _0x1e31(_0x5c9beb-_0xe6f486._0x40c9cd,_0x45fbd2);}return normalizeContent(_0x3d1781)[_0x4c48cb(0x488,0x48d,_0x25d93f._0x4d400e,0x47d)](_0x55b956=>_0x55b956[_0x4c48cb(0x46b,0x466,0x477,0x47e)]==='text')[_0x4c48cb(_0x25d93f._0x19d1bf,0x465,_0x25d93f._0x4fc5a9,_0x25d93f._0x113c54)](_0x249327=>_0x249327[_0xe75c6d(0x417,0x421,0x422,0x42b)])['join']('\x0a\x0a');}function pushTextMessage(_0x397224,_0x4f4d81,_0xcc27d5){const _0x9e009e={_0xaca08a:0x2cf,_0x3db43c:0x10f,_0x1ab55e:0xf7,_0x15b4b5:0x2e5,_0x9b30e4:0x2f2,_0x42942a:0x2cc},_0xb2d4d8={_0x2295a0:0xf5,_0x4271a7:0x106},_0x32fee0={_0x2ebae3:0x91,_0x4580f1:0x19};function _0x4d6c9d(_0xff6ab0,_0x208a60,_0x228420,_0x3be85c){return _0x1e31(_0xff6ab0-0x222,_0x228420);}if(_0xcc27d5[_0x4d6c9d(0x2e7,0x2f9,_0x9e009e._0xaca08a,0x2f8)]===0x0)return;const _0x99a9f7={'type':_0x545fca(0xf2,0xdf,_0x9e009e._0x3db43c,_0x9e009e._0x1ab55e),'role':_0x4f4d81,'content':_0xcc27d5[_0x4d6c9d(_0x9e009e._0x15b4b5,_0x9e009e._0x9b30e4,0x2f4,_0x9e009e._0x42942a)](_0x5db1a0=>{const _0x1c5f1c={_0x9438b9:0x510,_0x1cea9a:0x185};function _0x23ffaa(_0x3bd55e,_0x27a8e6,_0x5248b9,_0x2a9872){return _0x545fca(_0x3bd55e-_0x32fee0._0x2ebae3,_0x27a8e6-_0x32fee0._0x4580f1,_0x2a9872,_0x5248b9- -0x200);}function _0x1007d4(_0x10673a,_0x91da8a,_0x2e736f,_0x2a0644){return _0x4d6c9d(_0x91da8a- -_0x1c5f1c._0x9438b9,_0x91da8a-_0x1c5f1c._0x1cea9a,_0x2e736f,_0x2a0644-0xa3);}return{'type':_0x23ffaa(-_0xb2d4d8._0x2295a0,-_0xb2d4d8._0x4271a7,-0xff,-0xf5),'text':_0x5db1a0[_0x23ffaa(-0x101,-0x107,-0xf8,-0xfe)]};})};function _0x545fca(_0x24bdf7,_0x14ff52,_0x5822b9,_0x309fdf){return _0x1e31(_0x309fdf-0x22,_0x5822b9);}_0x397224['push'](_0x99a9f7);}function hasSerializableToolUse(_0x525da7){const _0x918003={_0x339038:0x241,_0x4f774b:0x231,_0x3aa964:0x224,_0x28db48:0x1f4};function _0x3b8aee(_0x261b7e,_0x284e32,_0x4c183f,_0x557dfe){return _0x1e31(_0x284e32- -0x315,_0x4c183f);}function _0x3fa4a9(_0x197c1d,_0x37d0c3,_0xb6bb02,_0x436882){return _0x1e31(_0x436882-0x12f,_0x197c1d);}return _0x525da7['id']['trim']()[_0x3b8aee(-0x23c,-0x250,-_0x918003._0x339038,-0x267)]>0x0&&_0x525da7['name'][_0x3fa4a9(_0x918003._0x4f774b,_0x918003._0x3aa964,0x230,0x21b)]()[_0x3fa4a9(0x1e8,0x1f0,0x204,_0x918003._0x28db48)]>0x0;}function _0x1e31(_0x1199f4,_0x3e2e36){_0x1199f4=_0x1199f4-0xbe;const _0x3cdb0b=_0x3cdb();let _0x1e31af=_0x3cdb0b[_0x1199f4];if(_0x1e31['sVaNfd']===undefined){var _0x2a0c19=function(_0x16a6e9){const _0x43167c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d1781='',_0x55b956='';for(let _0x249327=0x0,_0x397224,_0x4f4d81,_0xcc27d5=0x0;_0x4f4d81=_0x16a6e9['charAt'](_0xcc27d5++);~_0x4f4d81&&(_0x397224=_0x249327%0x4?_0x397224*0x40+_0x4f4d81:_0x4f4d81,_0x249327++%0x4)?_0x3d1781+=String['fromCharCode'](0xff&_0x397224>>(-0x2*_0x249327&0x6)):0x0){_0x4f4d81=_0x43167c['indexOf'](_0x4f4d81);}for(let _0x99a9f7=0x0,_0x5db1a0=_0x3d1781['length'];_0x99a9f7<_0x5db1a0;_0x99a9f7++){_0x55b956+='%'+('00'+_0x3d1781['charCodeAt'](_0x99a9f7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x55b956);};_0x1e31['SCnAoD']=_0x2a0c19,_0x1e31['LwhvnS']={},_0x1e31['sVaNfd']=!![];}const _0x47465d=_0x3cdb0b[0x0],_0x4b4ba8=_0x1199f4+_0x47465d,_0x15f34=_0x1e31['LwhvnS'][_0x4b4ba8];return!_0x15f34?(_0x1e31af=_0x1e31['SCnAoD'](_0x1e31af),_0x1e31['LwhvnS'][_0x4b4ba8]=_0x1e31af):_0x1e31af=_0x15f34,_0x1e31af;}function hasSerializableToolResult(_0x9d4355){const _0x1a54ac={_0x3e956f:0x124,_0x180ef5:0x13d,_0x30c602:0x19,_0x4b5017:0x2f,_0x44a8aa:0x13,_0x5281bf:0x1c},_0x25b78c={_0xd5a323:0xde},_0x175df6={_0xb4cdca:0x45};function _0x5e39a9(_0x517d8b,_0x2840d9,_0x4405d8,_0x3ea1af){return _0x1e31(_0x517d8b-_0x175df6._0xb4cdca,_0x4405d8);}function _0x21aa7f(_0x27be1d,_0x522431,_0x56cf1b,_0x350635){return _0x1e31(_0x27be1d- -_0x25b78c._0xd5a323,_0x56cf1b);}return _0x9d4355['tool_use_id'][_0x5e39a9(0x131,_0x1a54ac._0x3e956f,_0x1a54ac._0x180ef5,0x13c)]()[_0x21aa7f(-_0x1a54ac._0x30c602,-_0x1a54ac._0x4b5017,-_0x1a54ac._0x44a8aa,-_0x1a54ac._0x5281bf)]>0x0;}function isResponseInputObject(_0x5cc45c){const _0x27701c={_0x3cd8e3:0x2eb,_0x30a838:0x2f3,_0x4421a8:0x2f7,_0x2af9bc:0x30d},_0x264e57={_0x35bc08:0x243};function _0x3192a2(_0x583617,_0x29198f,_0x41a7e2,_0x25b162){return _0x1e31(_0x25b162-_0x264e57._0x35bc08,_0x29198f);}if(typeof _0x5cc45c!=='object'||_0x5cc45c===null||Array[_0x3192a2(_0x27701c._0x3cd8e3,0x30d,_0x27701c._0x30a838,0x303)](_0x5cc45c))return![];function _0x48bed2(_0x5d3881,_0x4bb2de,_0x482307,_0x1fd6e8){return _0x1e31(_0x1fd6e8-0x21c,_0x5d3881);}const _0x1f92b4=_0x5cc45c;return typeof _0x1f92b4[_0x48bed2(0x2e3,0x2de,_0x27701c._0x4421a8,0x2dd)]===_0x3192a2(0x310,_0x27701c._0x2af9bc,0x2fb,0x305);}function isImageToolResultBlock(_0x189fad){const _0x3c2763={_0x5c3323:0x1f2,_0x180360:0x1dc,_0x51c1c0:0x1df,_0x327722:0x1e0,_0x16f21e:0x226,_0x1ffa54:0x223,_0x3d74b3:0x1e0,_0x481f79:0x427,_0x3eacf1:0x438,_0x5b45af:0x433,_0x2aad48:0x425,_0x5a9a2b:0x46d,_0x383665:0x459,_0x35e4c7:0x1dc,_0x46c2a3:0x1d3,_0x2bd1f1:0x1e1,_0x3bc36d:0x1d7,_0x57bff5:0x1f3,_0x280dce:0x1e1,_0xcf5ba8:0x1ec},_0x1c21f8={_0x5726e6:0x11f};if(typeof _0x189fad!=='object'||_0x189fad===null||Array[_0x4a4586(_0x3c2763._0x5c3323,_0x3c2763._0x180360,_0x3c2763._0x51c1c0,0x1cc)](_0x189fad))return![];function _0x4a4586(_0x40d1a8,_0xafd75e,_0x5896de,_0x20a7a7){return _0x1e31(_0x5896de-_0x1c21f8._0x5726e6,_0x20a7a7);}function _0x1ce7d6(_0x36a0c6,_0x12ae69,_0x42405b,_0x3bd887){return _0x1e31(_0x12ae69-0x367,_0x3bd887);}const _0x10a342=_0x189fad;return _0x10a342[_0x4a4586(0x1f9,0x1f0,_0x3c2763._0x327722,0x1f0)]==='image'&&_0x10a342[_0x4a4586(_0x3c2763._0x16f21e,0x20d,0x211,_0x3c2763._0x1ffa54)]?.[_0x4a4586(0x1f8,0x1ef,_0x3c2763._0x3d74b3,0x1e5)]===_0x1ce7d6(_0x3c2763._0x481f79,_0x3c2763._0x3eacf1,_0x3c2763._0x5b45af,_0x3c2763._0x2aad48)&&typeof _0x10a342[_0x1ce7d6(_0x3c2763._0x5a9a2b,_0x3c2763._0x383665,0x46e,0x44c)]['media_type']===_0x4a4586(_0x3c2763._0x35e4c7,_0x3c2763._0x46c2a3,_0x3c2763._0x2bd1f1,0x1c7)&&typeof _0x10a342['source']['data']===_0x4a4586(_0x3c2763._0x3bc36d,_0x3c2763._0x57bff5,_0x3c2763._0x280dce,_0x3c2763._0xcf5ba8);}function _0x3cdb(){const _0x39f3e9=['mZiYmJCYm2PmsvfPua','y29UDgvUDa','BwvZC2fNzxm','CM9Szq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','C3rYAw5NAwz5','yxnZAxn0yw50','DxnLCI12AxnPyMXL','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','mtvODKLJAxK','mtyXmZG1ntfirNPfr3i','yMfZzty0','zgf0ytO','o2jHC2u2ncW','mM11sLPxBa','BwvZC2fNzq','zNvUy3rPB25Fy2fSBa','mJa4nJiZmezyz2LeAa','C3LZDgvT','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','mZG0nJzyvu1Lvfm','C3vTBwfYEq','mtH4rNjLwMO','BMfTzq','zMLSDgvY','Aw5WDxrFDgv4Da','BwvKAwfFDhLWzq','yxv0BW','DMLZAwjPBgL0Eq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','nJq2mdi1C2rOtK9I','ntG4ntyXnhLODvryuG','Dgv4Da','Aw5WDxrFC2nOzw1H','Bwf4vg9Rzw5Z','ntmXodi2ofn3D1HTvG','oeXTA0vLAW','B2jQzwn0','DhjPBq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','ChjVDMLKzxjtDgf0zq','CMvHC29UAw5N','zwzMB3j0','C3bSAwnL','C291CMnL','Dg9VBf9Yzxn1Bhq','Aw5WDxq','AxnbCNjHEq','DhLWzq','C3rYAw5N','BwfW','ChvZAa','BgvUz3rO'];_0x3cdb=function(){return _0x39f3e9;};return _0x3cdb();}function getToolResultText(_0xb4cf9c){const _0x3331d7={_0x33db46:0x5f,_0x43f4e1:0x4e,_0x5bf66c:0x54,_0x5eaf4e:0x3b,_0x3c1fb0:0x43,_0x1c4477:0x2e},_0x26ad2f={_0x1ac571:0x31a,_0x3a1c32:0x312},_0x41a7e9={_0x2460c7:0x111};function _0x5a307b(_0x20ecd4,_0x4d90af,_0x1d3e28,_0x1c4f8c){return _0x1e31(_0x1c4f8c- -_0x41a7e9._0x2460c7,_0x1d3e28);}function _0x57e2af(_0x2c27dd,_0x4fabe0,_0x18dfe5,_0x591b33){return _0x1e31(_0x591b33- -0x149,_0x4fabe0);}if(typeof _0xb4cf9c===_0x57e2af(-0x70,-0x7d,-0x9b,-0x87))return _0xb4cf9c;const _0x530e3c=_0xb4cf9c['filter'](_0x572948=>{const _0x541fa9={_0x1fae17:0x18e};function _0x24fdc6(_0x4919d9,_0x3e71a7,_0x45ce94,_0x365579){return _0x57e2af(_0x4919d9-_0x541fa9._0x1fae17,_0x3e71a7,_0x45ce94-0x89,_0x45ce94-0x378);}return typeof _0x572948===_0x24fdc6(0x32c,0x323,_0x26ad2f._0x1ac571,_0x26ad2f._0x3a1c32)&&_0x572948!==null&&_0x572948['type']==='text';})[_0x5a307b(-_0x3331d7._0x33db46,-0x3e,-0x5b,-_0x3331d7._0x43f4e1)](_0x35e400=>_0x35e400['text'])['join']('\x0a\x0a')[_0x57e2af(-0x4c,-_0x3331d7._0x5bf66c,-0x4b,-0x5d)]();return _0x530e3c['length']>0x0?_0x530e3c:_0x5a307b(-0x3b,-_0x3331d7._0x5eaf4e,-_0x3331d7._0x3c1fb0,-_0x3331d7._0x1c4477);}function getToolResultImages(_0x1bd3b2){const _0x85d2b9={_0x108403:0x80,_0xda4084:0x6d,_0x1d96c8:0x4d},_0x3f48c0={_0x2c20a0:0x12d},_0x160e7e={_0x55c955:0x2de};function _0x1f6aed(_0x529c3a,_0x503b09,_0x369441,_0x5c78a8){return _0x1e31(_0x369441- -_0x160e7e._0x55c955,_0x529c3a);}function _0x230f10(_0x424ef3,_0x1353bc,_0x193186,_0x5033a6){return _0x1e31(_0x193186- -_0x3f48c0._0x2c20a0,_0x5033a6);}return Array[_0x230f10(-0x79,-_0x85d2b9._0x108403,-_0x85d2b9._0xda4084,-0x69)](_0x1bd3b2)?_0x1bd3b2[_0x230f10(-0x37,-_0x85d2b9._0x1d96c8,-0x4f,-0x5a)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x1bdb72){const _0x319053={_0x3bb5e8:0x453,_0x530e21:0x440,_0x247d94:0x44b,_0x3a57db:0x435,_0x25ab5f:0x443,_0x3ccc6e:0x2e5};function _0x36b582(_0x400d1a,_0x971ae7,_0x343828,_0x28f724){return _0x1e31(_0x343828- -0x3bc,_0x400d1a);}function _0x422ea5(_0x1d7973,_0x37a67c,_0xecee76,_0x158283){return _0x1e31(_0xecee76-0x361,_0x158283);}return _0x1bdb72[_0x422ea5(_0x319053._0x3bb5e8,_0x319053._0x530e21,0x450,_0x319053._0x247d94)]?.[_0x422ea5(_0x319053._0x3a57db,0x431,_0x319053._0x25ab5f,0x457)]??_0x36b582(-0x2f8,-0x2fd,-0x2ef,-_0x319053._0x3ccc6e);}function createOpenAiResponsesReasoning(_0x1b0835){const _0x30e6a1={_0xc71e2f:0x13f,_0x54a70b:0x14a,_0x12e8d2:0x140,_0x3f5a19:0x2a6,_0x2bec81:0x2bb,_0x475d8c:0x2cf,_0xcea9bd:0x2de,_0x281677:0x2bf,_0xc9476b:0x164,_0x4a321a:0x14f,_0x288ca2:0x169,_0x275fdf:0x166},_0x34b970={_0x23da71:0x22e},_0x3b9935={_0x415cdc:0x1ee},_0x25ab8f=resolveOpenAiReasoningConfig(_0x1b0835[_0x4cda39(-_0x30e6a1._0xc71e2f,-0x12c,-0x128,-_0x30e6a1._0x54a70b)]);if(!_0x25ab8f)return{};const _0x3ba306={},_0x3abd36=_0x25ab8f[_0x4cda39(-0x153,-_0x30e6a1._0x12e8d2,-0x15e,-0x138)]??(resolveReasoningVisibility(_0x1b0835)===_0x4aa6a3(0x2b7,_0x30e6a1._0x3f5a19,0x2ab,_0x30e6a1._0x2bec81)?_0x4aa6a3(0x2c5,0x2da,0x2c3,_0x30e6a1._0x475d8c):void 0x0);_0x25ab8f['effort']&&(_0x3ba306[_0x4aa6a3(0x2ee,0x2e8,0x2e6,0x2de)]=_0x25ab8f[_0x4aa6a3(0x2f2,0x2d0,0x2ca,_0x30e6a1._0xcea9bd)]);_0x3abd36&&(_0x3ba306['summary']=_0x3abd36);function _0x4aa6a3(_0x5da222,_0x9e1058,_0x36c6b7,_0xd5e301){return _0x1e31(_0xd5e301-_0x3b9935._0x415cdc,_0x9e1058);}function _0x4cda39(_0x61fb98,_0x3b6e78,_0x4965ad,_0x72dc22){return _0x1e31(_0x61fb98- -_0x34b970._0x23da71,_0x4965ad);}return{..._0x25ab8f[_0x4aa6a3(0x2bb,_0x30e6a1._0x281677,0x2bb,0x2c7)]===![]?{}:{'include':[_0x4cda39(-_0x30e6a1._0xc9476b,-_0x30e6a1._0x4a321a,-0x15b,-0x160)]},...Object['keys'](_0x3ba306)[_0x4cda39(-_0x30e6a1._0x288ca2,-0x174,-_0x30e6a1._0x275fdf,-0x168)]>0x0?{'reasoning':_0x3ba306}:{}};}function pushAssistantProviderState(_0x1d82ad,_0x1353c3){const _0x16a68a={_0xb04928:0xba,_0x5e6ab4:0xba,_0x34b93e:0xbb,_0x4109f3:0xa7,_0x26694e:0xda,_0xe5c9d4:0xdf,_0x187b7b:0xbf,_0x1f27b8:0xb1,_0x29f4cc:0x9e};if(_0x1353c3[_0x1c8d48(_0x16a68a._0xb04928,0xd3,0xc9,_0x16a68a._0x5e6ab4)]!==_0x21b252(-_0x16a68a._0x34b93e,-_0x16a68a._0x4109f3,-0xcf,-0xa5))return![];const _0x4b537f=_0x1353c3[_0x1c8d48(_0x16a68a._0x26694e,0xe4,0xe8,_0x16a68a._0xe5c9d4)]?.[_0x1c8d48(0xbc,_0x16a68a._0x4109f3,0xb7,_0x16a68a._0x187b7b)]??[];if(_0x4b537f['length']===0x0)return![];function _0x21b252(_0x11a5b0,_0x51213b,_0x14872d,_0x1ebe78){return _0x1e31(_0x11a5b0- -0x187,_0x51213b);}function _0x1c8d48(_0x19399d,_0x2b4c33,_0x339bb1,_0x3339e5){return _0x1e31(_0x3339e5- -0xf,_0x339bb1);}for(const _0x3133eb of _0x4b537f){isResponseInputObject(_0x3133eb)&&_0x1d82ad[_0x1c8d48(_0x16a68a._0x1f27b8,0xba,_0x16a68a._0x29f4cc,0xb5)](structuredClone(_0x3133eb));}return!![];}function toOpenAiResponsesRequest(_0x11d30d){const _0x5ed0ea={_0x2d3091:0x3ff,_0x6ebe08:0x3e9,_0x20c96d:0x229,_0x372aee:0x223,_0x2f6832:0x41d,_0x2c6762:0x40e,_0x324418:0x226,_0x358f06:0x40a,_0x2a5f93:0x3fb,_0x1ed714:0x22e,_0x3da3d9:0x23b,_0x58114e:0x3cd,_0x440460:0x40c,_0x14319c:0x3f7,_0x529276:0x417,_0xee0950:0x3fe,_0x3c3cd1:0x3e3,_0x80a3d0:0x3ec,_0x445aca:0x3d2,_0x538284:0x3db,_0x5af847:0x3e0,_0xd188d9:0x3cd,_0x2e69c5:0x3ed,_0x386357:0x3ef,_0x499141:0x3fd,_0x444e7a:0x3ff,_0x37f46a:0x3ef,_0x13b99f:0x3da,_0x213107:0x3e5,_0x200667:0x21a,_0x459561:0x226,_0x3fdec5:0x424,_0x552116:0x23b,_0xda5933:0x21e,_0x460a62:0x23a,_0x168e70:0x233,_0x5e51e8:0x245,_0x20acc5:0x24a,_0x316620:0x25a,_0x53d71a:0x20c,_0x30bab8:0x225,_0x30e133:0x23c},_0x326b79={_0x17efa8:0x44a,_0x2033ec:0x449,_0x9859f5:0x6b,_0x2bb04d:0x65},_0x159473={_0xbf10dc:0x19d,_0x17bc7c:0x60,_0x496bfd:0x473},_0x224c75={_0x355723:0x29},_0x1875cd={_0x4ea963:0x162},_0x37ce0d=[];for(const _0x1994e4 of _0x11d30d[_0x4d25d2(_0x5ed0ea._0x2d3091,0x3e4,0x3f1,_0x5ed0ea._0x6ebe08)]){if(pushAssistantProviderState(_0x37ce0d,_0x1994e4))continue;const _0x4d0b02=[];for(const _0x3c2a32 of normalizeContent(_0x1994e4[_0x845fdd(0x221,_0x5ed0ea._0x20c96d,0x23c,0x20e)])){if(_0x3c2a32[_0x845fdd(0x232,_0x5ed0ea._0x372aee,0x215,0x236)]===_0x4d25d2(_0x5ed0ea._0x2f6832,_0x5ed0ea._0x2c6762,0x407,0x407)){_0x4d0b02[_0x845fdd(_0x5ed0ea._0x372aee,_0x5ed0ea._0x324418,0x219,0x21c)](_0x3c2a32);continue;}pushTextMessage(_0x37ce0d,_0x1994e4['role'],_0x4d0b02[_0x4d25d2(_0x5ed0ea._0x358f06,0x40d,_0x5ed0ea._0x2a5f93,0x412)](0x0));if(_0x3c2a32[_0x845fdd(_0x5ed0ea._0x1ed714,_0x5ed0ea._0x372aee,_0x5ed0ea._0x324418,_0x5ed0ea._0x3da3d9)]==='tool_use'){if(!hasSerializableToolUse(_0x3c2a32))continue;_0x37ce0d[_0x4d25d2(0x3ee,_0x5ed0ea._0x58114e,0x3f8,0x3e5)]({'type':_0x4d25d2(0x405,_0x5ed0ea._0x440460,0x40e,_0x5ed0ea._0x14319c),'call_id':_0x3c2a32['id'],'name':_0x3c2a32[_0x4d25d2(_0x5ed0ea._0x14319c,_0x5ed0ea._0x529276,0x3ea,_0x5ed0ea._0xee0950)],'arguments':JSON[_0x4d25d2(0x3f9,_0x5ed0ea._0x3c3cd1,0x3ec,_0x5ed0ea._0x80a3d0)](_0x3c2a32[_0x4d25d2(_0x5ed0ea._0x445aca,_0x5ed0ea._0x538284,0x3d9,_0x5ed0ea._0x5af847)]??{})});continue;}if(_0x3c2a32['type']===_0x4d25d2(_0x5ed0ea._0xd188d9,_0x5ed0ea._0x2e69c5,0x3f2,0x3df)){if(!hasSerializableToolResult(_0x3c2a32))continue;const _0x3440d4=getToolResultText(_0x3c2a32[_0x4d25d2(_0x5ed0ea._0x386357,_0x5ed0ea._0x499141,_0x5ed0ea._0x3c3cd1,0x3e8)]);_0x37ce0d[_0x4d25d2(_0x5ed0ea._0x444e7a,_0x5ed0ea._0x37f46a,_0x5ed0ea._0x13b99f,_0x5ed0ea._0x213107)]({'type':'function_call_output','call_id':_0x3c2a32['tool_use_id'],'output':_0x3440d4});const _0x135b4a=getToolResultImages(_0x3c2a32['content']);_0x135b4a['length']>0x0&&_0x37ce0d[_0x845fdd(_0x5ed0ea._0x200667,_0x5ed0ea._0x459561,0x21c,_0x5ed0ea._0x1ed714)]({'type':'message','role':'user','content':[{'type':_0x845fdd(0x23c,0x241,0x24a,0x237),'text':_0x4d25d2(_0x5ed0ea._0x3fdec5,0x3f8,_0x5ed0ea._0x444e7a,0x40e)+_0x3c2a32['tool_use_id']+'.'},..._0x135b4a[_0x845fdd(_0x5ed0ea._0x552116,0x225,0x239,_0x5ed0ea._0xda5933)](_0xe5e9bb=>({'type':'input_image','image_url':_0x845fdd(0x221,0x234,0x238,0x24b)+_0xe5e9bb[_0x845fdd(0x255,0x254,0x23d,0x268)][_0x4d25d2(0x41c,0x3ed,0x407,0x401)]+_0x845fdd(0x244,0x235,0x248,0x21c)+_0xe5e9bb[_0x4d25d2(0x409,0x408,0x40c,0x413)]['data']}))]});}}pushTextMessage(_0x37ce0d,_0x1994e4['role'],_0x4d0b02);}function _0x845fdd(_0x557bb5,_0x361064,_0xa9e6d,_0x31ae82){return _0x1e31(_0x361064-_0x1875cd._0x4ea963,_0xa9e6d);}function _0x4d25d2(_0x2f8d5d,_0x4deb6c,_0x4f3641,_0x340bd8){return _0x1e31(_0x340bd8-0x321,_0x4deb6c);}return{...createOpenAiResponsesReasoning(_0x11d30d),'model':_0x11d30d['model'],'instructions':systemToInstructions(_0x11d30d[_0x845fdd(0x239,_0x5ed0ea._0x460a62,_0x5ed0ea._0x168e70,_0x5ed0ea._0x5e51e8)]),'input':_0x37ce0d,'max_output_tokens':_0x11d30d[_0x845fdd(0x248,_0x5ed0ea._0x20acc5,_0x5ed0ea._0x316620,0x249)],'tools':_0x11d30d['tools'][_0x845fdd(_0x5ed0ea._0x53d71a,_0x5ed0ea._0x30bab8,0x220,_0x5ed0ea._0x30e133)](_0x1d4218=>{function _0x56d9eb(_0x3d341c,_0x3053ab,_0x3dfc14,_0x503e0){return _0x4d25d2(_0x3d341c-_0x224c75._0x355723,_0x3d341c,_0x3dfc14-0x167,_0x3dfc14-0x55);}function _0x5afa54(_0x1873a6,_0x3839e3,_0x94756,_0x5b5b9f){return _0x4d25d2(_0x1873a6-_0x159473._0xbf10dc,_0x5b5b9f,_0x94756-_0x159473._0x17bc7c,_0x1873a6- -_0x159473._0x496bfd);}return{'type':'function','name':_0x1d4218[_0x56d9eb(0x45c,_0x326b79._0x17efa8,0x453,_0x326b79._0x2033ec)],'description':_0x1d4218['description'],'parameters':_0x1d4218[_0x5afa54(-_0x326b79._0x9859f5,-_0x326b79._0x2bb04d,-0x50,-0x67)]};})};}export{toOpenAiResponsesRequest};
|
|
1
|
+
(function(_0x2cab34,_0x4ae2d6){const _0x1642cf={_0x1d0ab7:0x52a,_0xac4caa:0x532,_0x4d31a0:0x52f,_0x2a8272:0x536,_0x1b4ea3:0x504,_0x498711:0x51e,_0x4468dc:0x4f9,_0x2e24be:0x51f,_0x4a9be7:0x4ef,_0x95a00a:0x50a,_0x1b3704:0x233,_0x280227:0x224,_0x4f3ee0:0x519,_0x5ee2c3:0x512,_0x1d883b:0x514,_0x34470e:0x20e,_0x338fd9:0x222,_0x47b879:0x212,_0x3d4346:0x227},_0x9757dd={_0x401b65:0x36f};function _0x501857(_0x4e8beb,_0x10cf90,_0x2ae226,_0x5abc52){return _0x11e0(_0x5abc52-_0x9757dd._0x401b65,_0x4e8beb);}function _0x105eab(_0xbf84f0,_0x2715ab,_0x4a6649,_0x1549ea){return _0x11e0(_0x4a6649- -0x3c4,_0x2715ab);}const _0x2d4bee=_0x2cab34();while(!![]){try{const _0x39b538=parseInt(_0x501857(0x513,0x52d,_0x1642cf._0x1d0ab7,0x515))/0x1+-parseInt(_0x501857(0x53e,0x530,_0x1642cf._0xac4caa,_0x1642cf._0x4d31a0))/0x2*(-parseInt(_0x501857(_0x1642cf._0x2a8272,0x518,_0x1642cf._0x1b4ea3,_0x1642cf._0x498711))/0x3)+parseInt(_0x501857(_0x1642cf._0x4468dc,_0x1642cf._0x2e24be,_0x1642cf._0x4a9be7,_0x1642cf._0x95a00a))/0x4+parseInt(_0x105eab(-_0x1642cf._0x1b3704,-0x237,-_0x1642cf._0x280227,-_0x1642cf._0x1b3704))/0x5+-parseInt(_0x501857(0x515,_0x1642cf._0x4f3ee0,_0x1642cf._0x5ee2c3,_0x1642cf._0x1d883b))/0x6+parseInt(_0x105eab(-0x1f7,-0x1f6,-_0x1642cf._0x34470e,-_0x1642cf._0x338fd9))/0x7+-parseInt(_0x105eab(-_0x1642cf._0x47b879,-_0x1642cf._0x3d4346,-_0x1642cf._0x47b879,-0x1fa))/0x8;if(_0x39b538===_0x4ae2d6)break;else _0x2d4bee['push'](_0x2d4bee['shift']());}catch(_0x82c446){_0x2d4bee['push'](_0x2d4bee['shift']());}}}(_0x1eea,0x78fe4));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';function _0x11e0(_0x2746e6,_0x85971a){_0x2746e6=_0x2746e6-0x195;const _0x1eea35=_0x1eea();let _0x11e058=_0x1eea35[_0x2746e6];if(_0x11e0['VDISCU']===undefined){var _0x5e2575=function(_0x124ad8){const _0x2bc6ea='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3f7619='',_0x661e57='';for(let _0x1ad628=0x0,_0x3b1d90,_0x224ba3,_0x4e183d=0x0;_0x224ba3=_0x124ad8['charAt'](_0x4e183d++);~_0x224ba3&&(_0x3b1d90=_0x1ad628%0x4?_0x3b1d90*0x40+_0x224ba3:_0x224ba3,_0x1ad628++%0x4)?_0x3f7619+=String['fromCharCode'](0xff&_0x3b1d90>>(-0x2*_0x1ad628&0x6)):0x0){_0x224ba3=_0x2bc6ea['indexOf'](_0x224ba3);}for(let _0x185945=0x0,_0x1531d4=_0x3f7619['length'];_0x185945<_0x1531d4;_0x185945++){_0x661e57+='%'+('00'+_0x3f7619['charCodeAt'](_0x185945)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x661e57);};_0x11e0['jyOrTS']=_0x5e2575,_0x11e0['FrBLYD']={},_0x11e0['VDISCU']=!![];}const _0x22ff1c=_0x1eea35[0x0],_0x1c0d63=_0x2746e6+_0x22ff1c,_0x1b150c=_0x11e0['FrBLYD'][_0x1c0d63];return!_0x1b150c?(_0x11e058=_0x11e0['jyOrTS'](_0x11e058),_0x11e0['FrBLYD'][_0x1c0d63]=_0x11e058):_0x11e058=_0x1b150c,_0x11e058;}import{normalizeContent}from'./chunk-G2FR4UGO.js';function systemToInstructions(_0x3f7619){const _0x25ec8d={_0x4824e1:0xfb,_0x4d2280:0xf8,_0x5ae4e6:0xcf,_0x2e492f:0xe6},_0x5ea891={_0x5e6b88:0x386};function _0x1d6d85(_0x520c66,_0x463cef,_0x469e73,_0x365d74){return _0x11e0(_0x520c66-_0x5ea891._0x5e6b88,_0x469e73);}function _0x5c02f6(_0x466c32,_0x46ee14,_0xbcf10f,_0x366dbb){return _0x11e0(_0x46ee14- -0x29c,_0x466c32);}return normalizeContent(_0x3f7619)[_0x5c02f6(-0x104,-_0x25ec8d._0x4824e1,-_0x25ec8d._0x4d2280,-0xeb)](_0x661e57=>_0x661e57[_0x1d6d85(0x525,0x514,0x51c,0x540)]===_0x1d6d85(0x548,0x54c,0x52d,0x539))['map'](_0x1ad628=>_0x1ad628[_0x1d6d85(0x548,0x54e,0x564,0x551)])[_0x5c02f6(-0xe7,-0xe5,-_0x25ec8d._0x5ae4e6,-_0x25ec8d._0x2e492f)]('\x0a\x0a');}function pushTextMessage(_0x3b1d90,_0x224ba3,_0x4e183d){const _0x164733={_0xb10795:0x1fc,_0xdba599:0x1fb,_0x97a080:0x1df,_0x58e8c9:0x1c1,_0x16abd1:0x1d2,_0xaa5896:0x1f9,_0x44e286:0x1eb,_0x29b7ae:0x48d,_0x4f5b2f:0x47e,_0x22e587:0x48a},_0x49a0a1={_0x5bd0f6:0x24b,_0x3e5ab3:0x23d,_0x192b93:0x263,_0x11cb40:0x23b},_0x48b3d0={_0x44c2c9:0xe4};if(_0x4e183d[_0x2d6e48(-_0x164733._0xb10795,-_0x164733._0xdba599,-0x1d1,-_0x164733._0x97a080)]===0x0)return;function _0x2d6e48(_0x5a939a,_0x18ea89,_0x585d93,_0x331c7b){return _0x11e0(_0x331c7b- -0x390,_0x5a939a);}function _0x17b8b2(_0xe65621,_0x392faa,_0x13afc6,_0x2c3937){return _0x11e0(_0xe65621-0x2e1,_0x392faa);}const _0x185945={'type':_0x2d6e48(-0x1c0,-_0x164733._0x58e8c9,-0x1ba,-_0x164733._0x16abd1),'role':_0x224ba3,'content':_0x4e183d[_0x2d6e48(-_0x164733._0xaa5896,-0x1f9,-_0x164733._0x44e286,-0x1e2)](_0x1531d4=>{const _0x29202c={_0x37a9cd:0x17f};function _0x4a0116(_0x4e1604,_0x1bfe00,_0x5842e1,_0x2b849a){return _0x17b8b2(_0x2b849a- -_0x48b3d0._0x44c2c9,_0x4e1604,_0x5842e1-0x2d,_0x2b849a-0x1b3);}function _0x1957b1(_0x159687,_0x2b046a,_0x320d49,_0x10582b){return _0x17b8b2(_0x2b046a- -0x252,_0x10582b,_0x320d49-_0x29202c._0x37a9cd,_0x10582b-0xd8);}return{'type':_0x1957b1(0x24d,_0x49a0a1._0x5bd0f6,_0x49a0a1._0x3e5ab3,0x252),'text':_0x1531d4[_0x1957b1(_0x49a0a1._0x192b93,0x251,_0x49a0a1._0x11cb40,0x23b)]};})};_0x3b1d90[_0x17b8b2(_0x164733._0x29b7ae,_0x164733._0x4f5b2f,_0x164733._0x22e587,0x491)](_0x185945);}function hasSerializableToolUse(_0x2b52e1){const _0x15e0fb={_0x4bc48c:0xfb,_0x28068e:0xff,_0x325865:0xea,_0x425af9:0x57b,_0x44d8ba:0x56a,_0x170fc4:0x57c,_0x3be4ef:0xda,_0x466726:0xf6,_0x322432:0xd5,_0x230104:0xf0,_0x486088:0xe7},_0x18641e={_0x575619:0x2ad},_0x2f6d53={_0x549014:0x3b9};function _0x8d041(_0x5f05cc,_0x52d4cf,_0x365a9c,_0x5a1ee9){return _0x11e0(_0x52d4cf-_0x2f6d53._0x549014,_0x5f05cc);}function _0x193107(_0x4d3b28,_0x3eec18,_0x2a954a,_0x409b99){return _0x11e0(_0x3eec18- -_0x18641e._0x575619,_0x409b99);}return _0x2b52e1['id'][_0x193107(-_0x15e0fb._0x4bc48c,-0xf0,-_0x15e0fb._0x28068e,-_0x15e0fb._0x325865)]()[_0x8d041(_0x15e0fb._0x425af9,_0x15e0fb._0x44d8ba,0x570,_0x15e0fb._0x170fc4)]>0x0&&_0x2b52e1[_0x193107(-_0x15e0fb._0x3be4ef,-0xec,-0xe2,-_0x15e0fb._0x466726)][_0x193107(-_0x15e0fb._0x322432,-_0x15e0fb._0x230104,-0x107,-_0x15e0fb._0x486088)]()['length']>0x0;}function hasSerializableToolResult(_0x3e2912){const _0x269991={_0x3cfa23:0xf4,_0x462113:0x53f,_0x4d23bd:0x558},_0x528f87={_0x303027:0x382},_0xe0bf1f={_0x33453b:0x292};function _0x3e957d(_0x2bd757,_0x3cc183,_0x4f790c,_0x1878c2){return _0x11e0(_0x2bd757- -_0xe0bf1f._0x33453b,_0x3cc183);}function _0x4f402b(_0x10fee5,_0x240be3,_0x36c4c8,_0x947369){return _0x11e0(_0x240be3-_0x528f87._0x303027,_0x10fee5);}return _0x3e2912[_0x3e957d(-0xfa,-_0x269991._0x3cfa23,-0xff,-0xe1)][_0x4f402b(0x544,_0x269991._0x462113,_0x269991._0x4d23bd,0x52d)]()['length']>0x0;}function isResponseInputObject(_0x4fa32a){const _0x42e20d={_0xc3b8e2:0x447,_0x1082ee:0x460,_0x3392b6:0x470,_0x4b8bd6:0x46d,_0x5d7033:0x462,_0x324fe9:0x451,_0x6e40cd:0x432,_0x21b2ef:0x448,_0x18c6a0:0x45a},_0x355e10={_0x50451c:0x3d5};if(typeof _0x4fa32a!==_0x1876e7(0x468,_0x42e20d._0xc3b8e2,_0x42e20d._0x1082ee,_0x42e20d._0x3392b6)||_0x4fa32a===null||Array[_0x1876e7(0x446,_0x42e20d._0x4b8bd6,_0x42e20d._0x5d7033,_0x42e20d._0x324fe9)](_0x4fa32a))return![];function _0x42772f(_0x203f52,_0x4fb1f3,_0x26ab4d,_0x15fb22){return _0x11e0(_0x26ab4d- -_0x355e10._0x50451c,_0x15fb22);}function _0x1876e7(_0x202ff4,_0x318edc,_0x3fe0cf,_0x536679){return _0x11e0(_0x3fe0cf-0x29b,_0x318edc);}const _0x5c6e11=_0x4fa32a;return typeof _0x5c6e11[_0x1876e7(0x447,_0x42e20d._0x6e40cd,0x43a,0x438)]===_0x1876e7(0x477,_0x42e20d._0x21b2ef,_0x42e20d._0x18c6a0,0x474);}function isImageToolResultBlock(_0x3bb911){const _0x3c288d={_0x52041d:0x1d9,_0x3948b2:0x21e,_0x4f65c3:0x235,_0xdc011f:0x21f,_0x5c2e6d:0x21a,_0x207daa:0x4f2,_0xf94960:0x4d5,_0x5b1b35:0x4d3,_0x44ded7:0x4f0,_0x49be5f:0x4e6,_0x59a058:0x4f1,_0x55d4df:0x4dc,_0x4da0d8:0x4fd,_0x1fde23:0x215,_0x272dae:0x202,_0x5dabbc:0x1f3,_0x4e2a9b:0x4e7,_0x22487a:0x201,_0xfc752:0x203,_0x30ad2e:0x204,_0x4af5a7:0x1fa},_0xd4a43e={_0x7f4b91:0x33d};if(typeof _0x3bb911!=='object'||_0x3bb911===null||Array[_0x7c7618(-_0x3c288d._0x52041d,-0x1e4,-0x1e6,-0x1f2)](_0x3bb911))return![];const _0x36778f=_0x3bb911;function _0x7c7618(_0x3d5220,_0x4e61a8,_0x3a1a9f,_0xe624fc){return _0x11e0(_0xe624fc- -0x3b9,_0x3d5220);}function _0x2e4efc(_0x20439d,_0x507aca,_0x52789b,_0x358708){return _0x11e0(_0x20439d-_0xd4a43e._0x7f4b91,_0x358708);}return _0x36778f[_0x7c7618(-_0x3c288d._0x3948b2,-_0x3c288d._0x4f65c3,-_0x3c288d._0xdc011f,-_0x3c288d._0x5c2e6d)]==='image'&&_0x36778f[_0x2e4efc(_0x3c288d._0x207daa,0x4da,0x4fd,_0x3c288d._0xf94960)]?.[_0x2e4efc(0x4dc,_0x3c288d._0x5b1b35,_0x3c288d._0x44ded7,_0x3c288d._0x49be5f)]===_0x2e4efc(_0x3c288d._0x59a058,_0x3c288d._0x55d4df,0x4f8,_0x3c288d._0x4da0d8)&&typeof _0x36778f['source'][_0x7c7618(-_0x3c288d._0x1fde23,-_0x3c288d._0x272dae,-_0x3c288d._0x5dabbc,-0x1fe)]===_0x2e4efc(0x4fc,_0x3c288d._0x4e2a9b,0x500,0x505)&&typeof _0x36778f[_0x7c7618(-0x1ef,-_0x3c288d._0x22487a,-_0x3c288d._0xfc752,-_0x3c288d._0x30ad2e)]['data']===_0x7c7618(-0x20a,-0x210,-0x1f0,-_0x3c288d._0x4af5a7);}function _0x1eea(){const _0x4dc10a=['mtK4ntq1mhfmCLb2DG','zMLSDgvY','Dg9VBhm','DxnLCG','CM9Szq','mJy3nZy2mKr5tfbvtG','nta1oteZy0vMre9W','Bw9KzwW','ChjVDMLKzxjtDgf0zq','zNvUy3rPB25Fy2fSBf9VDxrWDxq','DMLZAwjPBgL0Eq','zgvZy3jPChrPB24','ChvZAa','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','BwfW','m3jbAgLAAW','C3vTBwfYEq','BgvUz3rO','mta3nJe2ndHXyNvxwgq','C3LZDgvT','yMfZzty0','C291CMnL','mte5otuYn2PNs1vgvW','AM9PBG','Aw5WDxq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','BwvKAwfFDhLWzq','Aw5WDxrFDgv4Da','DhjPBq','BwvZC2fNzq','C3rYAw5N','otK2mZe4uejnBgDi','BMfTzq','Dgv4Da','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','Aw5WDxrFAw1Hz2u','B2jQzwn0','DxnLCI12AxnPyMXL','AxnbCNjHEq','zgf0ytO','Dg9VBf91C2u','y29UDgvUDa','zgf0yq','zNvUy3rPB25Fy2fSBa','Dg9VBf9Yzxn1Bhq','CMvHC29UAw5N','Bwf4vg9Rzw5Z','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Dg9VBf91C2vFAwq','yxv0BW','BwvZC2fNzxm','mJG1ode5mMz1twflua','yxnZAxn0yw50','zwzMB3j0','zNvUy3rPB24','DhLWzq'];_0x1eea=function(){return _0x4dc10a;};return _0x1eea();}function getToolResultText(_0x462051){const _0x36fb59={_0x32621b:0xb6,_0x189c8e:0xa0,_0x2bc2f0:0x9d,_0x43fbc8:0xcd,_0x5cdb28:0xd4,_0x106292:0xc7,_0x2fb3b4:0xd6,_0x651ddd:0x28f,_0x8c1d78:0x272,_0x2235ba:0xbe,_0x5deef8:0xce,_0x1e9be0:0xd0,_0x13bdc7:0x282,_0x5d8f3f:0x28a,_0x2a094a:0x292,_0x1401a6:0x2a4,_0x55233e:0x289,_0xabfc71:0x28e,_0x56c88b:0x27a,_0x5bedd7:0x284,_0x2329d9:0x278},_0x229154={_0x4a17e3:0xe1},_0x534085={_0x235403:0x275},_0x439859={_0x308e49:0x154,_0x2c498e:0x13f,_0x314b3f:0x11f,_0x2664a8:0x13e};if(typeof _0x462051===_0x2e1c75(-_0x36fb59._0x32621b,-_0x36fb59._0x189c8e,-_0x36fb59._0x2bc2f0,-_0x36fb59._0x43fbc8))return _0x462051;const _0xf72791=_0x462051[_0x2e1c75(-_0x36fb59._0x5cdb28,-_0x36fb59._0x106292,-_0x36fb59._0x2fb3b4,-0xdd)](_0x2dc786=>{const _0xa95044={_0x402410:0x170,_0x3a26d9:0xd1,_0x512068:0x1d2},_0x8e0b8={_0x2d2286:0x24};function _0x299718(_0x1a4f50,_0x1585d3,_0x82372c,_0xcd633a){return _0x2e1c75(_0x1585d3-0x207,_0x1585d3-_0x8e0b8._0x2d2286,_0x82372c-0x10a,_0xcd633a);}function _0x4797b9(_0x56b396,_0x3273c3,_0x330d31,_0x33baaa){return _0x2e1c75(_0x330d31-_0xa95044._0x402410,_0x3273c3-_0xa95044._0x3a26d9,_0x330d31-_0xa95044._0x512068,_0x3273c3);}return typeof _0x2dc786===_0x299718(_0x439859._0x308e49,0x157,0x161,_0x439859._0x2c498e)&&_0x2dc786!==null&&_0x2dc786[_0x299718(_0x439859._0x314b3f,0x131,0x143,_0x439859._0x2664a8)]==='text';})[_0x133582(_0x36fb59._0x651ddd,0x276,0x27e,_0x36fb59._0x8c1d78)](_0x2100f2=>_0x2100f2[_0x2e1c75(-0xb3,-0xbc,-0xc3,-0xb0)])[_0x2e1c75(-_0x36fb59._0x2235ba,-0xb2,-_0x36fb59._0x5deef8,-_0x36fb59._0x1e9be0)]('\x0a\x0a')[_0x133582(0x29e,_0x36fb59._0x13bdc7,_0x36fb59._0x5d8f3f,0x290)]();function _0x2e1c75(_0x471ce7,_0x551461,_0xfdce01,_0x56d51f){return _0x11e0(_0x471ce7- -_0x534085._0x235403,_0x56d51f);}function _0x133582(_0x54d8cf,_0x4d02a1,_0x16c93b,_0x4fa298){return _0x11e0(_0x54d8cf-_0x229154._0x4a17e3,_0x16c93b);}return _0xf72791[_0x133582(_0x36fb59._0x2a094a,_0x36fb59._0x1401a6,_0x36fb59._0x55233e,0x294)]>0x0?_0xf72791:_0x133582(_0x36fb59._0xabfc71,_0x36fb59._0x56c88b,_0x36fb59._0x5bedd7,_0x36fb59._0x2329d9);}function getToolResultImages(_0x13916b){const _0x568509={_0x2a8faa:0x1fb,_0x3a64f4:0x20f,_0x94b91c:0x1f5,_0x1779b8:0x1d6,_0x4b6dfe:0x1e1,_0x72332e:0x1eb},_0x28ed16={_0x4b67ab:0x40};function _0x134e36(_0x5afaf9,_0x377d55,_0x59bf47,_0x5e7ce9){return _0x11e0(_0x377d55-_0x28ed16._0x4b67ab,_0x5e7ce9);}function _0x169319(_0x4d4d19,_0x57b402,_0x575022,_0x319558){return _0x11e0(_0x575022-0x18d,_0x319558);}return Array[_0x134e36(_0x568509._0x2a8faa,0x207,_0x568509._0x3a64f4,_0x568509._0x94b91c)](_0x13916b)?_0x13916b[_0x134e36(_0x568509._0x1779b8,_0x568509._0x4b6dfe,0x1c9,_0x568509._0x72332e)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x745ffd){const _0x400be5={_0x229ee0:0x54e,_0x410417:0x56c,_0x4a3ccf:0x573},_0x1348f1={_0x586078:0x18b},_0x1df6a8={_0x1b3147:0x3c2};function _0x2f2053(_0x499f99,_0x1bb6b2,_0x4d59f2,_0x3c09c9){return _0x11e0(_0x1bb6b2-_0x1df6a8._0x1b3147,_0x499f99);}function _0x176dbe(_0x897075,_0x2bbe79,_0x3bc983,_0x5103ac){return _0x11e0(_0x5103ac-_0x1348f1._0x586078,_0x3bc983);}return _0x745ffd[_0x2f2053(0x56e,0x557,_0x400be5._0x229ee0,0x540)]?.[_0x2f2053(0x552,_0x400be5._0x410417,0x582,_0x400be5._0x4a3ccf)]??_0x2f2053(0x5a2,0x588,0x57c,0x59d);}function createOpenAiResponsesReasoning(_0xee6d92){const _0x3e914d={_0x37c2d3:0x53b,_0x215b78:0x543,_0x25a7ea:0x510,_0x2025b7:0x1bb,_0xd6cbe0:0x194,_0x25733b:0x1a8,_0x6cec39:0x1a1,_0x35f9df:0x55a,_0x5ab03e:0x557,_0x35b0ce:0x521,_0x5a36d1:0x52a,_0xc74674:0x17f,_0x3cbd7e:0x19e,_0x9d6298:0x52d,_0x1d41ed:0x51b,_0x1b1531:0x526,_0xfca660:0x196,_0x5979a8:0x1ab,_0x474567:0x19d,_0x10f8ad:0x1ab,_0x1425a2:0x1a3,_0x3922e8:0x19d,_0x12e688:0x54c},_0x23ce1f={_0x5c725e:0xf},_0x553fd3={_0x1a00a0:0x391},_0x9a6206=resolveOpenAiReasoningConfig(_0xee6d92[_0x4756f8(_0x3e914d._0x37c2d3,_0x3e914d._0x215b78,0x526,_0x3e914d._0x25a7ea)]);if(!_0x9a6206)return{};const _0x5bc587={};function _0x4756f8(_0x4d9d3b,_0x1cb56f,_0x3ebe71,_0x26bbaf){return _0x11e0(_0x3ebe71-_0x553fd3._0x1a00a0,_0x4d9d3b);}const _0x43f9dc=_0x9a6206[_0x4341c9(_0x3e914d._0x2025b7,_0x3e914d._0xd6cbe0,_0x3e914d._0x25733b,_0x3e914d._0x6cec39)]??(resolveReasoningVisibility(_0xee6d92)===_0x4756f8(_0x3e914d._0x35f9df,0x55e,_0x3e914d._0x5ab03e,0x558)?_0x4756f8(_0x3e914d._0x35b0ce,0x529,_0x3e914d._0x5a36d1,0x546):void 0x0);function _0x4341c9(_0x136238,_0x14ad67,_0x490499,_0x5773a1){return _0x11e0(_0x5773a1- -_0x23ce1f._0x5c725e,_0x14ad67);}return _0x9a6206['effort']&&(_0x5bc587[_0x4341c9(0x199,_0x3e914d._0xc74674,_0x3e914d._0x3cbd7e,0x18e)]=_0x9a6206[_0x4756f8(_0x3e914d._0x9d6298,_0x3e914d._0x1d41ed,0x52e,_0x3e914d._0x1b1531)]),_0x43f9dc&&(_0x5bc587[_0x4341c9(_0x3e914d._0xfca660,0x195,_0x3e914d._0x5979a8,0x1a1)]=_0x43f9dc),{..._0x9a6206[_0x4341c9(_0x3e914d._0x474567,0x1b4,0x19b,_0x3e914d._0x10f8ad)]===![]?{}:{'include':[_0x4341c9(_0x3e914d._0x1425a2,0x1b1,_0x3e914d._0x3922e8,0x1aa)]},...Object['keys'](_0x5bc587)[_0x4756f8(_0x3e914d._0x12e688,0x55d,0x542,0x55a)]>0x0?{'reasoning':_0x5bc587}:{}};}function pushAssistantProviderState(_0x32c7b4,_0xac23d2){const _0x154271={_0x2021e7:0x1ef,_0x1923a0:0x201,_0x44da01:0x50,_0x14acd6:0x5e,_0x258551:0x61,_0x45906c:0x5c,_0xa0d8e6:0x58,_0x6c84a:0x5b,_0x1189bd:0x90,_0x10bf03:0x1f4,_0x3b47c1:0x20e,_0x1fb27d:0x226,_0x482e4a:0x60,_0x1a16b5:0x54},_0x2a75e1={_0x37137e:0x14c},_0x2a5e2d={_0x4f0180:0x5d};if(_0xac23d2[_0x594441(_0x154271._0x2021e7,_0x154271._0x1923a0,0x202,0x1f1)]!==_0x342559(_0x154271._0x44da01,_0x154271._0x14acd6,_0x154271._0x258551,0x3c))return![];function _0x594441(_0x9bce99,_0x21f2fa,_0x1f7097,_0x5f14af){return _0x11e0(_0x21f2fa-_0x2a5e2d._0x4f0180,_0x9bce99);}const _0x3e06f4=_0xac23d2[_0x342559(_0x154271._0x45906c,_0x154271._0xa0d8e6,_0x154271._0x6c84a,0x45)]?.[_0x342559(0x77,_0x154271._0x1189bd,_0x154271._0x258551,0x6c)]??[];function _0x342559(_0x5913d9,_0x2c34a0,_0xe3162e,_0xd500b){return _0x11e0(_0x5913d9- -_0x2a75e1._0x37137e,_0x2c34a0);}if(_0x3e06f4[_0x594441(_0x154271._0x10bf03,_0x154271._0x3b47c1,0x1f8,_0x154271._0x1fb27d)]===0x0)return![];for(const _0x11c028 of _0x3e06f4){isResponseInputObject(_0x11c028)&&_0x32c7b4[_0x342559(_0x154271._0x482e4a,0x53,0x7c,_0x154271._0x1a16b5)](structuredClone(_0x11c028));}return!![];}function toOpenAiResponsesRequest(_0x3dee90){const _0x3cd2c0={_0x5a7d80:0x8f,_0x3d6ffa:0x96,_0xd84f4c:0x3ed,_0x5add65:0x3e7,_0x46a9e7:0xad,_0x480b0e:0x3c8,_0x10e6d7:0x3ca,_0x3d8e87:0x7a,_0xc8606e:0x9d,_0x4c60db:0x3c3,_0x1b3522:0x3a7,_0x4abb0a:0x3a1,_0x591c45:0x60,_0x1e138d:0x67,_0x15db21:0x3bf,_0x77d5a9:0x3b4,_0x3ab26a:0x73,_0x53d972:0x6b,_0x458e57:0x64,_0x11a744:0x56,_0x4a88df:0x7f,_0x22e14f:0x54,_0x44b5c0:0x6f,_0x1dc4e2:0x3c2,_0x4ea5ac:0x3c1,_0x163528:0x76,_0x38f7aa:0x68,_0x1cac5c:0x63,_0x590711:0x74,_0x139cd2:0x6d,_0x2aa799:0x3a0,_0xdb7cb6:0x3c7,_0x4661a6:0x3ec,_0x42516f:0x3d2,_0xb863b:0x3c4,_0x2156fb:0x3b9,_0x3fddb5:0xa6,_0x1baedc:0x5a,_0x214db4:0x6f,_0xc891d8:0x91,_0xe3bb29:0xac,_0x530cdf:0x99,_0x293490:0x82,_0x590955:0x90,_0x22635e:0x7c,_0x5227e2:0x3b6,_0xef6969:0x3a6,_0x5985f9:0x3ac,_0xd159f7:0x3aa,_0x284266:0x3b4,_0x305803:0x3bb,_0x20a145:0x83,_0x3bd203:0x398,_0x30d5fc:0x3ab,_0x16274e:0x75,_0x1cb312:0x8c},_0x291eb8={_0x48e5f9:0x54e,_0x57f945:0x568,_0x211bca:0xb6},_0x5a33b2={_0x51227e:0x208},_0x91e23d=[];for(const _0x2c5e64 of _0x3dee90[_0x1fe0e2(-_0x3cd2c0._0x5a7d80,-_0x3cd2c0._0x3d6ffa,-0xa4,-_0x3cd2c0._0x3d6ffa)]){if(pushAssistantProviderState(_0x91e23d,_0x2c5e64))continue;const _0x25bd36=[];for(const _0x22be18 of normalizeContent(_0x2c5e64[_0x282b86(_0x3cd2c0._0xd84f4c,_0x3cd2c0._0x5add65,0x3d2,0x3d9)])){if(_0x22be18[_0x1fe0e2(-0x9d,-_0x3cd2c0._0x46a9e7,-0x9b,-0x91)]===_0x282b86(0x3c4,_0x3cd2c0._0x480b0e,_0x3cd2c0._0x10e6d7,0x3ba)){_0x25bd36[_0x1fe0e2(-0x6b,-_0x3cd2c0._0x3d8e87,-_0x3cd2c0._0xc8606e,-0x84)](_0x22be18);continue;}pushTextMessage(_0x91e23d,_0x2c5e64['role'],_0x25bd36['splice'](0x0));if(_0x22be18[_0x282b86(0x3a9,_0x3cd2c0._0x4c60db,_0x3cd2c0._0x1b3522,_0x3cd2c0._0x4abb0a)]===_0x1fe0e2(-0x53,-_0x3cd2c0._0x591c45,-0x5e,-_0x3cd2c0._0x1e138d)){if(!hasSerializableToolUse(_0x22be18))continue;_0x91e23d[_0x282b86(0x3b1,_0x3cd2c0._0x15db21,_0x3cd2c0._0x77d5a9,0x3ab)]({'type':_0x1fe0e2(-0x5d,-_0x3cd2c0._0x3ab26a,-_0x3cd2c0._0x53d972,-_0x3cd2c0._0x458e57),'call_id':_0x22be18['id'],'name':_0x22be18[_0x1fe0e2(-_0x3cd2c0._0x11a744,-_0x3cd2c0._0x4a88df,-_0x3cd2c0._0x22e14f,-_0x3cd2c0._0x44b5c0)],'arguments':JSON['stringify'](_0x22be18[_0x282b86(0x3bd,_0x3cd2c0._0x1dc4e2,0x3c0,_0x3cd2c0._0x4ea5ac)]??{})});continue;}if(_0x22be18['type']===_0x1fe0e2(-_0x3cd2c0._0x163528,-0x4d,-_0x3cd2c0._0x38f7aa,-_0x3cd2c0._0x1cac5c)){if(!hasSerializableToolResult(_0x22be18))continue;const _0x31f619=getToolResultText(_0x22be18['content']);_0x91e23d[_0x1fe0e2(-_0x3cd2c0._0x590711,-0x69,-_0x3cd2c0._0x44b5c0,-0x84)]({'type':_0x1fe0e2(-_0x3cd2c0._0x139cd2,-0x82,-0x96,-0x87),'call_id':_0x22be18[_0x282b86(0x39d,0x3a3,_0x3cd2c0._0x2aa799,0x3ad)],'output':_0x31f619});const _0x3b927f=getToolResultImages(_0x22be18[_0x282b86(_0x3cd2c0._0xdb7cb6,_0x3cd2c0._0x4661a6,_0x3cd2c0._0x42516f,_0x3cd2c0._0x4661a6)]);_0x3b927f[_0x282b86(_0x3cd2c0._0xb863b,0x3d5,_0x3cd2c0._0x2156fb,0x3c9)]>0x0&&_0x91e23d[_0x282b86(0x398,0x3a5,_0x3cd2c0._0x77d5a9,0x3c4)]({'type':_0x1fe0e2(-0x71,-_0x3cd2c0._0x1cac5c,-0x74,-0x72),'role':_0x1fe0e2(-0x75,-0x97,-_0x3cd2c0._0x3fddb5,-0x8d),'content':[{'type':_0x1fe0e2(-_0x3cd2c0._0x1baedc,-0x72,-_0x3cd2c0._0x214db4,-0x74),'text':_0x1fe0e2(-_0x3cd2c0._0xc891d8,-_0x3cd2c0._0x46a9e7,-_0x3cd2c0._0xe3bb29,-_0x3cd2c0._0x530cdf)+_0x22be18[_0x1fe0e2(-_0x3cd2c0._0x293490,-_0x3cd2c0._0x590955,-_0x3cd2c0._0x22635e,-0x98)]+'.'},..._0x3b927f[_0x282b86(0x3c3,0x39f,_0x3cd2c0._0x5227e2,0x39c)](_0x65e30=>({'type':_0x1fe0e2(-0x5a,-0x58,-0x83,-0x6c),'image_url':_0x1fe0e2(-0x4e,-0x7d,-0x61,-0x68)+_0x65e30['source']['media_type']+';base64,'+_0x65e30[_0x1fe0e2(-0x80,-0x7e,-0x61,-0x7b)][_0x1fe0e2(-0x5b,-0x4f,-0x74,-0x65)]}))]});}}pushTextMessage(_0x91e23d,_0x2c5e64[_0x282b86(0x392,_0x3cd2c0._0xef6969,_0x3cd2c0._0x5985f9,0x3a8)],_0x25bd36);}function _0x1fe0e2(_0x44d483,_0x4b07fd,_0x54fad0,_0x41c578){return _0x11e0(_0x41c578- -0x230,_0x44d483);}function _0x282b86(_0x5eb021,_0x7f5415,_0x14ca82,_0x4267c8){return _0x11e0(_0x14ca82-_0x5a33b2._0x51227e,_0x4267c8);}return{...createOpenAiResponsesReasoning(_0x3dee90),'model':_0x3dee90[_0x282b86(0x39b,0x3ab,0x3af,_0x3cd2c0._0xd159f7)],'instructions':systemToInstructions(_0x3dee90[_0x282b86(0x3d3,_0x3cd2c0._0x284266,_0x3cd2c0._0x305803,0x3c0)]),'input':_0x91e23d,'max_output_tokens':_0x3dee90[_0x1fe0e2(-_0x3cd2c0._0x20a145,-0xb2,-0x91,-0x9a)],'tools':_0x3dee90[_0x282b86(_0x3cd2c0._0x3bd203,_0x3cd2c0._0xef6969,0x3aa,_0x3cd2c0._0x30d5fc)][_0x1fe0e2(-_0x3cd2c0._0x16274e,-0x84,-_0x3cd2c0._0x1cb312,-0x82)](_0x19427c=>{const _0x4c326c={_0x2dbb79:0x30};function _0x470ff2(_0x126881,_0x5ce716,_0x25b5c0,_0x2a9973){return _0x1fe0e2(_0x5ce716,_0x5ce716-0x90,_0x25b5c0-0x9c,_0x126881- -_0x4c326c._0x2dbb79);}function _0x376b37(_0x12bfbc,_0xfe988c,_0x1fcc9c,_0x3409ba){return _0x1fe0e2(_0xfe988c,_0xfe988c-0x193,_0x1fcc9c-0xa8,_0x12bfbc-0x5e0);}return{'type':_0x376b37(_0x291eb8._0x48e5f9,_0x291eb8._0x57f945,0x54f,0x54f),'name':_0x19427c['name'],'description':_0x19427c[_0x470ff2(-0xb5,-0xcc,-_0x291eb8._0x211bca,-0xa6)],'parameters':_0x19427c['input_schema']};})};}export{toOpenAiResponsesRequest};
|
package/dist/chunk-NYZR4XKO.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x14ac(_0x8b64b7,_0x58a369){_0x8b64b7=_0x8b64b7-0xdb;var _0x2b57c3=_0x2b57();var _0x14ac8f=_0x2b57c3[_0x8b64b7];if(_0x14ac['nDhuQf']===undefined){var _0x223e98=function(_0x16ba38){var _0x39422a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5e0aaf='',_0x301ece='';for(var _0x56b5d3=0x0,_0x2cbba4,_0x246732,_0x3082dc=0x0;_0x246732=_0x16ba38['charAt'](_0x3082dc++);~_0x246732&&(_0x2cbba4=_0x56b5d3%0x4?_0x2cbba4*0x40+_0x246732:_0x246732,_0x56b5d3++%0x4)?_0x5e0aaf+=String['fromCharCode'](0xff&_0x2cbba4>>(-0x2*_0x56b5d3&0x6)):0x0){_0x246732=_0x39422a['indexOf'](_0x246732);}for(var _0x31ef22=0x0,_0x4aea29=_0x5e0aaf['length'];_0x31ef22<_0x4aea29;_0x31ef22++){_0x301ece+='%'+('00'+_0x5e0aaf['charCodeAt'](_0x31ef22)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x301ece);};_0x14ac['lKKeTr']=_0x223e98,_0x14ac['jHQAbe']={},_0x14ac['nDhuQf']=!![];}var _0x10634b=_0x2b57c3[0x0],_0x3fcadb=_0x8b64b7+_0x10634b,_0x2422db=_0x14ac['jHQAbe'][_0x3fcadb];return!_0x2422db?(_0x14ac8f=_0x14ac['lKKeTr'](_0x14ac8f),_0x14ac['jHQAbe'][_0x3fcadb]=_0x14ac8f):_0x14ac8f=_0x2422db,_0x14ac8f;}(function(_0x2de899,_0x2b5a84){var _0x5ae1fb={_0x49e659:0x335,_0xbc304f:0x33f,_0xb9d3a3:0x33b,_0x43196a:0x2cc,_0x305e57:0x2c8,_0xecaae4:0x2d0,_0x1dffd7:0x2c3,_0x1b47f9:0x2c0,_0x4f4835:0x2c8,_0x442d9c:0x2c5,_0x524668:0x2cd,_0x40463d:0x2ce,_0x108e87:0x2ce,_0x5dc043:0x2c9,_0xaa996e:0x2ca,_0x3e2211:0x333,_0x2cab86:0x2d2,_0x38ac9b:0x2d3},_0x30ed4e={_0x46c824:0x258};function _0x4a9fda(_0x55c19d,_0x2a20c7,_0x4c4bec,_0x3484a6){return _0x14ac(_0x55c19d-0x1e7,_0x3484a6);}function _0x39e9e4(_0x8f1048,_0x33debd,_0x43817d,_0x37f5f7){return _0x14ac(_0x43817d-_0x30ed4e._0x46c824,_0x37f5f7);}var _0x3a2cd5=_0x2de899();while(!![]){try{var _0x574c29=parseInt(_0x39e9e4(0x337,_0x5ae1fb._0x49e659,0x338,0x33d))/0x1+parseInt(_0x39e9e4(0x339,_0x5ae1fb._0xbc304f,0x33b,_0x5ae1fb._0xb9d3a3))/0x2+-parseInt(_0x4a9fda(_0x5ae1fb._0x43196a,0x2c9,_0x5ae1fb._0x305e57,0x2d2))/0x3*(-parseInt(_0x4a9fda(0x2cb,0x2cc,_0x5ae1fb._0xecaae4,0x2cd))/0x4)+parseInt(_0x4a9fda(_0x5ae1fb._0x1dffd7,_0x5ae1fb._0x1b47f9,0x2c5,0x2c1))/0x5+parseInt(_0x4a9fda(_0x5ae1fb._0x4f4835,_0x5ae1fb._0x442d9c,_0x5ae1fb._0x524668,_0x5ae1fb._0x40463d))/0x6+parseInt(_0x4a9fda(0x2ce,_0x5ae1fb._0x108e87,_0x5ae1fb._0x5dc043,_0x5ae1fb._0xaa996e))/0x7+parseInt(_0x39e9e4(0x331,0x33a,_0x5ae1fb._0x3e2211,0x32f))/0x8*(-parseInt(_0x4a9fda(_0x5ae1fb._0x524668,0x2cc,_0x5ae1fb._0x2cab86,_0x5ae1fb._0x38ac9b))/0x9);if(_0x574c29===_0x2b5a84)break;else _0x3a2cd5['push'](_0x3a2cd5['shift']());}catch(_0x588d01){_0x3a2cd5['push'](_0x3a2cd5['shift']());}}}(_0x2b57,0x6c45f));var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function _0x2b57(){var _0x1db8ec=['mZi3nJe0Cuz5uM9m','mtm2y0j6vxjK','mZe3mZm5mg5zywfhyq','B3bLBMfP','zw5HyMXLza','yw50AhjVCgLJ','mtuZmdvLs3PuC24','mtq3mJa3nMPPBfbbtG','yxv0BW','odm1ntjPEejmwhm','nfDyBe91qq','mtuXotq3m3fvD21Kwq','ntu0mJq3vwn5s25d'];_0x2b57=function(){return _0x1db8ec;};return _0x2b57();}function mapAutoReasoningEffortToBudgetTokens(_0x5e0aaf){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0x5e0aaf];}function resolveAnthropicThinkingConfig(_0x301ece){var _0xb9b500={_0x557628:0x218,_0x451a36:0x21a,_0x5012bd:0x218,_0x461f26:0x395,_0x4e3ebb:0x38e,_0x3c193d:0x396};function _0x1ee7b4(_0x2a9667,_0x64892d,_0x4a5a25,_0x3a4f13){return _0x14ac(_0x4a5a25-0x139,_0x64892d);}function _0x25cef5(_0x360e76,_0x4da40e,_0x4eb6da,_0x1c2829){return _0x14ac(_0x4eb6da-0x2b6,_0x4da40e);}if(!_0x301ece)return void 0x0;if(_0x301ece[_0x1ee7b4(_0xb9b500._0x557628,_0xb9b500._0x451a36,_0xb9b500._0x5012bd,0x217)])return structuredClone(_0x301ece[_0x25cef5(_0xb9b500._0x461f26,0x38e,0x395,_0xb9b500._0x4e3ebb)]);if(!_0x301ece[_0x1ee7b4(0x217,0x21a,0x21b,0x21e)])return void 0x0;return{'type':_0x25cef5(0x396,_0xb9b500._0x3c193d,0x394,0x39a),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x301ece[_0x25cef5(0x39d,0x397,0x398,0x396)]['effort'])};}function resolveOpenAiReasoningConfig(_0x56b5d3){var _0x535758={_0x50c42b:0x1c3,_0x1fde8c:0x309,_0x2a3755:0x30e,_0x561295:0x302},_0x3d8732={_0x43f5e2:0xe2};if(!_0x56b5d3)return void 0x0;function _0x4568dc(_0xf4f584,_0x237fb6,_0x490483,_0xd805ce){return _0x14ac(_0x237fb6-0x22c,_0x490483);}const _0x2cbba4=_0x56b5d3[_0xe6d23a(0x1c1,0x1c6,0x1c4,_0x535758._0x50c42b)]?{'effort':_0x56b5d3['auto']['effort']}:void 0x0;function _0xe6d23a(_0x254bd7,_0xac21f,_0x3d84a9,_0x14db82){return _0x14ac(_0x3d84a9-_0x3d8732._0x43f5e2,_0x14db82);}if(!_0x56b5d3[_0x4568dc(_0x535758._0x1fde8c,_0x535758._0x1fde8c,_0x535758._0x2a3755,_0x535758._0x561295)])return _0x2cbba4;return{..._0x2cbba4??{},...structuredClone(_0x56b5d3['openai'])};}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x5de81f,_0x102e40){const _0x44a328={_0x3e8e01:0xf1,_0x4e29a1:0x7d,_0x9887cb:0xfb,_0x1b7387:0xbc,_0x7f71e1:0x11a,_0x565985:0x10e,_0x32ac87:0xde,_0x13888d:0x211,_0x446f80:0x1e6,_0x1e7736:0x1b2,_0xe85a72:0x1a3,_0x176418:0x169,_0x61d04c:0x14f,_0x268e06:0x17d,_0x58e5ad:0xe2,_0x5b6b4b:0xf6,_0x4099de:0xf7,_0xe2993e:0xaf,_0x1f823c:0x153,_0x434844:0x14d},_0x3dc432={_0x16c088:0x51},_0x144bbe=_0x5de81f();function _0x47dc5c(_0xf359a8,_0x1996ea,_0x18c3cb,_0x5b0807){return _0x5446(_0xf359a8-_0x3dc432._0x16c088,_0x5b0807);}function _0x4bf35a(_0x48de9b,_0x2552b8,_0x4591eb,_0x253930){return _0x5446(_0x2552b8-0x102,_0x253930);}while(!![]){try{const _0x5289df=parseInt(_0x47dc5c(0xbb,_0x44a328._0x3e8e01,0xb3,_0x44a328._0x4e29a1))/0x1+parseInt(_0x47dc5c(0xdc,_0x44a328._0x9887cb,0x116,_0x44a328._0x1b7387))/0x2*(parseInt(_0x47dc5c(0x14e,0x187,0x191,_0x44a328._0x7f71e1))/0x3)+-parseInt(_0x47dc5c(_0x44a328._0x565985,0xe2,0xd5,_0x44a328._0x32ac87))/0x4+-parseInt(_0x4bf35a(_0x44a328._0x13888d,_0x44a328._0x446f80,0x203,_0x44a328._0x1e7736))/0x5+-parseInt(_0x4bf35a(_0x44a328._0xe85a72,_0x44a328._0x176418,_0x44a328._0x61d04c,_0x44a328._0x268e06))/0x6+parseInt(_0x47dc5c(_0x44a328._0x58e5ad,0xc5,0xfe,0x10b))/0x7*(parseInt(_0x47dc5c(_0x44a328._0x5b6b4b,_0x44a328._0x4099de,0x126,_0x44a328._0xe2993e))/0x8)+parseInt(_0x4bf35a(0x18e,0x18a,_0x44a328._0x1f823c,_0x44a328._0x434844))/0x9;if(_0x5289df===_0x102e40)break;else _0x144bbe['push'](_0x144bbe['shift']());}catch(_0x14c5e9){_0x144bbe['push'](_0x144bbe['shift']());}}}(_0x159b,0xd34b8));function _0x5446(_0x2cf3ac,_0x4ff65a){_0x2cf3ac=_0x2cf3ac-0x64;const _0x159b82=_0x159b();let _0x544629=_0x159b82[_0x2cf3ac];if(_0x5446['ntoFBq']===undefined){var _0x36dbb7=function(_0x1187e0){const _0x53ac88='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x402b81='',_0x1a2556='';for(let _0x276814=0x0,_0x1b5ff2,_0x3ee565,_0x8c7f1b=0x0;_0x3ee565=_0x1187e0['charAt'](_0x8c7f1b++);~_0x3ee565&&(_0x1b5ff2=_0x276814%0x4?_0x1b5ff2*0x40+_0x3ee565:_0x3ee565,_0x276814++%0x4)?_0x402b81+=String['fromCharCode'](0xff&_0x1b5ff2>>(-0x2*_0x276814&0x6)):0x0){_0x3ee565=_0x53ac88['indexOf'](_0x3ee565);}for(let _0x1d854e=0x0,_0xf569e2=_0x402b81['length'];_0x1d854e<_0xf569e2;_0x1d854e++){_0x1a2556+='%'+('00'+_0x402b81['charCodeAt'](_0x1d854e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a2556);};_0x5446['ilECoF']=_0x36dbb7,_0x5446['WZKspe']={},_0x5446['ntoFBq']=!![];}const _0xb01990=_0x159b82[0x0],_0x18c835=_0x2cf3ac+_0xb01990,_0x306b1e=_0x5446['WZKspe'][_0x18c835];return!_0x306b1e?(_0x544629=_0x5446['ilECoF'](_0x544629),_0x5446['WZKspe'][_0x18c835]=_0x544629):_0x544629=_0x306b1e,_0x544629;}import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage}from'./chunk-G2FR4UGO.js';function _0x159b(){const _0x87e8fa=['C29YDa','BgLZDfrVB2Xty2HLBwfZ','y29TCgXLDgvK','CMvHC29UAw5NtwvZC2fNzuLK','AxnbCNjHEq','B3jKzxi','AxrLBxm','C2vUza','BM93','zxjYB3i','nJe0ntq1mMfMthPjuW','DhvYBKLUzgv4','CMvZCg9UC2u','mJbPCuLVCu8','Dg9VBf9JywXS','CMvTB3zLrxzLBNrmAxn0zw5LCG','C2vZC2LVBI0','DhjHBNnMB3jTzxi','Dg9VBf9VDxrWDxrFy2H1BMS','mty5mdqYm05Itwvbrq','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','ywn0Aw9U','zMLUywXFBwvZC2fNzq','vg9VBev4zwn1DgLVBKvYCM9Y','zgvMyxvSDe1LC3nHz2u','Aw5WDxrty2HLBwe','Aw5WDxq','Aw5KzxG','C2vZC2LVBKLK','zMLSDgvY','ChjVCgvYDgLLCW','DxnLCG','oIbLEhbLy3rLzcbVyMPLy3q','Dg9VBhncEu5HBwu','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','C3LZDgvT','zxHLy3v0zq','C2XPy2u','CMvNAxn0CNK','mtzSyKzrB1u','Dw5RBM93BL90B29S','DgHPBMTPBMC','B2jZzxj2zxi','DhvYBI0','CMvQzwn0','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','CNvU','BwvZC2fNzxm','CMvXDwLYzwq','CMvZB2X2zq','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','oIbLEhbLy3rLzcbUDw1Izxi','oNjLyxnVBMLUzW','DxnLCL9TzxnZywDL','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','yxnZAxn0yw50x2nODw5R','BgLZDa','y29TCgXLDgu','C3LZDgvTuhjVBxb0','C3rHDhvZ','ywz0zxjnB2rLBfjLC3bVBNnL','Dg9VBf91C2vFBwvZC2fNzq','Dg9VBhm','ndu5mty4mhjXA2DKsG','y2HHDe1VzgvS','BwvZC2fNzq','CNvUvhjHBNnMB3jTzxjZ','Aw5WDxrezwX0yq','A2LUza','CMvNAxn0zxi','zgvZy3jPChrPB24','Bw9KzwXFCMvXDwvZDa','B25vC2vYtwvZC2fNzq','zMLUywXnzxnZywDL','yMvMB3jLtw9KzwXszxf1zxn0','y29UDgvUDa','ChvZAa','B3v0Chv0sw5KzxG','C3vTBwfYEuLUzgv4','AxrLBuLK','DhvYBKLK','zw50CMLLCW','BMfTzq','zxH0zw5ZAw9UCW','DgHLBG','DhjPBq','DhLWzq','C2v0','CMv0DxjU','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','y2f0y2G','zxHLy3v0zunHBgXZ','BgfZDfjLC3bVBNnL','Dg9VBf9YzwPLy3rLza','Dg9VBf91C2vFzgvSDge','C3rHz2u','yM9VBgvHBG','CMvHC29UAw5Nx21LC3nHz2u','C3rYzwfTAw5N','ywjVCNrLza','zg9Uzq','Dg9VBf9JB21WBgv0zwq','ntC0nJeYnxbdCuDlEG','C2v0u2vZC2LVBKLK','DhvYBL9JB21WBgv0zq','C29Tzq','zgvWCW','CMvZzxrnzxnZywDLCW','C2v0vg9VBhm','Dgv4Da','C2v0q2HHDe1VzgvS','yMvMB3jLvg9VBev4zwn1DgLVBG','z2v0','Bwf4vg9Rzw5Z','B2jQzwn0','zw5HyMXLza','ywz0zxjuB29SuMvZDwX0','x3n5C3rLBvbYB21WDa','yxjYyxK','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','CMvHC29U','B3v0Chv0','Dg9VBf91C2u','ywjVCNq','C3rYzwfT','yxnZAxn0yw50twvZC2fNzuLK','ywXS','nta1nta5BMfkzfzt','C3rYAw5N','sw52ywXPzcb0B29SigLUChv0igf0ia','C3rYDwn0DxjLza','C2v0u3LZDgvTuhjVBxb0','ode0nty2mejWz2jTsW','B25uB29Sq2fSBa','CNvUt2jZzxj2zxjZ','mty2otm4m2XvEwrVva','B25fDMvUDa','Dg9VBf9ZDgfYDgvK','BwfW','yMvMB3jLqxnZAxn0yw50qxbWzw5K','Dg9VBfj1BNrPBwu','oIbLEhbLy3rLzcbHCNjHEq','y29UDgvUDf9KzwX0yq','C2LNBMfS','BgvUz3rO','zgvSDge','C3rYAw5NAwz5','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','BNvTyMvY','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','y29UDgvUDeLUzgv4','CMvHC29UAw5Nx2nODw5R','C3rHDgu','ywz0zxjuDxjUq29TCgXLDgu','DMfSDwu'];_0x159b=function(){return _0x87e8fa;};return _0x159b();}import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x402b81){const _0x241919={_0x5c40c4:0x394,_0xf51272:0x3ce,_0x58f7b7:0x1e6,_0x2fdbb0:0x22a},_0x15346e={_0x28e0cf:0x18f},_0x2cd20c={_0x209005:0x2de};function _0x1ffdb0(_0x23c410,_0x3e548c,_0x2ca0ab,_0x4ea041){return _0x5446(_0x2ca0ab-_0x2cd20c._0x209005,_0x23c410);}function _0x379a5c(_0x806abe,_0x11bd73,_0x25f25a,_0x3decf2){return _0x5446(_0x806abe-_0x15346e._0x28e0cf,_0x25f25a);}return typeof _0x402b81===_0x1ffdb0(0x39a,_0x241919._0x5c40c4,_0x241919._0xf51272,0x3f9)&&_0x402b81!==null&&!Array[_0x379a5c(0x211,_0x241919._0x58f7b7,0x1f4,_0x241919._0x2fdbb0)](_0x402b81);}function isToolOutputEnvelope(_0x1a2556){const _0x42cf13={_0x2b082e:0x5c,_0x3d640c:0x6a,_0x5d0edb:0x192,_0x10e9b6:0x15a,_0x1315bb:0xcf,_0x117471:0xb8},_0x229c6e={_0x887867:0x15a};if(typeof _0x1a2556!==_0x5ed2f0(-0x87,-_0x42cf13._0x2b082e,-_0x42cf13._0x3d640c,-0x5f)||_0x1a2556===null||Array[_0x168348(0x150,_0x42cf13._0x5d0edb,0x127,_0x42cf13._0x10e9b6)](_0x1a2556))return![];if(typeof _0x1a2556['output']!=='string')return![];const _0x276814=_0x1a2556[_0x5ed2f0(-_0x42cf13._0x1315bb,-0x10c,-0xf5,-_0x42cf13._0x117471)];function _0x5ed2f0(_0x59355a,_0xe22913,_0x2a1c93,_0x20ebb2){return _0x5446(_0x2a1c93- -_0x229c6e._0x887867,_0x20ebb2);}function _0x168348(_0x3287ad,_0x243d07,_0x4840c4,_0x72ef27){return _0x5446(_0x3287ad-0xce,_0x243d07);}return _0x276814===void 0x0||isJsonObject(_0x276814);}function validateAgainstSchema(_0x1b5ff2,_0x3ee565,_0x8c7f1b){const _0x129448={_0x3fac17:0x145,_0x5b853c:0x168,_0x29aecd:0x160,_0x9b3b99:0x129,_0x90686:0x16f,_0x3c958a:0x122,_0x10024d:0x165,_0x35df8e:0xd5,_0x4813e0:0x1c2,_0x53cc98:0xe8,_0x4a1e60:0x1ec,_0x5cad92:0x1a8,_0x398e92:0x1d5,_0x4015e0:0x1db,_0x16c825:0x15d,_0x1b2cfd:0x188,_0x3c7d48:0x182,_0xd3b159:0x14f,_0x4726f4:0x16d,_0x5832d8:0xf3,_0x3f2910:0x103,_0x124c1d:0x104,_0x5b6c38:0x1e3,_0x528635:0xe1,_0x1eb242:0xfc,_0x245f44:0x205,_0x3214a1:0x1d5,_0x1619a6:0x192,_0x58a5d6:0x19b,_0x3199e6:0x146,_0x5c63c8:0x158,_0x5199eb:0xd5,_0x437fcb:0x184,_0x4fce61:0x162,_0x387a49:0x194,_0x58c381:0x137,_0x47ea6f:0x10d,_0x1d3e1c:0x120},_0x473f60={_0x52a30d:0x8},_0x12df4f={_0x3f9a7d:0x71},_0x251126={_0x1777dc:0x239};function _0x10d44a(_0x37cf51,_0x4401a5,_0x9d1c09,_0x11d39e){return _0x5446(_0x9d1c09- -_0x251126._0x1777dc,_0x4401a5);}function _0x6a67bb(_0x2ed378,_0x298471,_0x16d99a,_0x39f1c0){return _0x5446(_0x2ed378-_0x12df4f._0x3f9a7d,_0x298471);}switch(_0x8c7f1b[_0x6a67bb(_0x129448._0x3fac17,0x12b,0x14e,0x173)]){case _0x10d44a(-_0x129448._0x5b853c,-_0x129448._0x29aecd,-0x13b,-_0x129448._0x9b3b99):if(typeof _0x3ee565!==_0x6a67bb(_0x129448._0x90686,0x1ab,_0x129448._0x3c958a,_0x129448._0x10024d))throw new Error(_0x6a67bb(_0x129448._0x35df8e,0xd1,0xff,0xaa)+_0x1b5ff2+':\x20expected\x20string');return;case _0x10d44a(-0x1dd,-0x1cb,-_0x129448._0x4813e0,-0x1a9):if(typeof _0x3ee565!==_0x6a67bb(_0x129448._0x53cc98,0x122,0x101,0xb8))throw new Error(_0x10d44a(-_0x129448._0x4a1e60,-_0x129448._0x5cad92,-_0x129448._0x398e92,-_0x129448._0x4015e0)+_0x1b5ff2+_0x10d44a(-_0x129448._0x16c825,-0x149,-_0x129448._0x1b2cfd,-_0x129448._0x3c7d48));return;case _0x6a67bb(_0x129448._0xd3b159,0x118,0x11f,0x17b):if(typeof _0x3ee565!=='boolean')throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1b5ff2+':\x20expected\x20boolean');return;case _0x10d44a(-0x10e,-0x115,-0x145,-_0x129448._0x4726f4):if(!Array[_0x6a67bb(_0x129448._0x5832d8,_0x129448._0x3f2910,_0x129448._0x124c1d,0x131)](_0x3ee565))throw new Error(_0x10d44a(-0x218,-0x1dc,-0x1d5,-_0x129448._0x5b6c38)+_0x1b5ff2+_0x6a67bb(_0x129448._0x528635,0xf7,_0x129448._0x1eb242,0xbd));_0x3ee565['forEach']((_0x1d854e,_0xf569e2)=>{const _0x29450d={_0x1da057:0x62,_0x152dc1:0x1bd,_0x1028ad:0x38};function _0x2f12f2(_0x227d01,_0x203f98,_0x2c8578,_0x24bc5d){return _0x10d44a(_0x227d01-_0x29450d._0x1da057,_0x2c8578,_0x227d01-_0x29450d._0x152dc1,_0x24bc5d-_0x29450d._0x1028ad);}validateAgainstSchema(_0x1b5ff2+'['+_0xf569e2+']',_0x1d854e,_0x8c7f1b[_0x2f12f2(_0x473f60._0x52a30d,0x12,-0x1f,-0x2b)]);});return;case'object':if(!isJsonObject(_0x3ee565))throw new Error(_0x10d44a(-0x202,-_0x129448._0x245f44,-_0x129448._0x3214a1,-0x1cc)+_0x1b5ff2+_0x10d44a(-_0x129448._0x1619a6,-0x16d,-_0x129448._0x58a5d6,-0x1e9));for(const _0x1d6ce4 of _0x8c7f1b[_0x10d44a(-_0x129448._0x3199e6,-_0x129448._0x5c63c8,-0x18b,-0x14b)]??[]){if(!(_0x1d6ce4 in _0x3ee565))throw new Error(_0x6a67bb(_0x129448._0x5199eb,0x11a,0xe8,0x11c)+_0x1b5ff2+_0x10d44a(-_0x129448._0x437fcb,-0x13b,-_0x129448._0x4fce61,-0x19e)+_0x1d6ce4+'\x22');}for(const [_0x3eda69,_0x5af131]of Object[_0x10d44a(-_0x129448._0x387a49,-0x14c,-0x16a,-_0x129448._0x58c381)](_0x8c7f1b[_0x6a67bb(_0x129448._0x47ea6f,_0x129448._0x1d3e1c,0xe2,0x153)])){_0x3eda69 in _0x3ee565&&validateAgainstSchema(_0x1b5ff2+'.'+_0x3eda69,_0x3ee565[_0x3eda69],_0x5af131);}}}function normalizeToolOutputValue(_0x431abb){const _0x4fc6cf={_0x3822b3:0x232,_0x12739e:0x1db,_0x54e00c:0x30e,_0x396b07:0x30a,_0x45dce5:0x2eb,_0xdf9218:0x1a8,_0x16f432:0x1d2,_0x20fd4c:0x216},_0x4d9eee={_0x4be5de:0x3db},_0x8c7dc2={_0xb030ee:0x254};if(isToolOutputEnvelope(_0x431abb))return{'output':_0x431abb['output'],'structured':_0x431abb[_0x350557(-0x1c9,-_0x4fc6cf._0x3822b3,-0x1ef,-_0x4fc6cf._0x12739e)]??{'value':_0x431abb['output']},..._0x431abb['content']!==void 0x0?{'content':_0x431abb['content']}:{}};if(typeof _0x431abb==='string')return{'output':_0x431abb,'structured':{'value':_0x431abb}};function _0x350557(_0x4a012f,_0x438d42,_0x19c25a,_0x30176c){return _0x5446(_0x19c25a- -_0x8c7dc2._0xb030ee,_0x4a012f);}if(typeof _0x431abb===_0x3a8520(-_0x4fc6cf._0x54e00c,-0x2e8,-_0x4fc6cf._0x396b07,-_0x4fc6cf._0x45dce5)&&_0x431abb!==null&&!Array[_0x350557(-0x195,-_0x4fc6cf._0xdf9218,-_0x4fc6cf._0x16f432,-0x1c8)](_0x431abb))return{'output':JSON[_0x350557(-_0x4fc6cf._0x20fd4c,-0x199,-0x1df,-0x217)](_0x431abb,null,0x2),'structured':_0x431abb};function _0x3a8520(_0x36075b,_0x129547,_0x4a9dbe,_0x110ffa){return _0x5446(_0x110ffa- -_0x4d9eee._0x4be5de,_0x129547);}return{'output':JSON[_0x3a8520(-0x37f,-0x384,-0x385,-0x366)](_0x431abb,null,0x2),'structured':{'value':_0x431abb}};}function createToolOutput(_0x49ab5a,_0x12710e={'value':_0x49ab5a},_0x2a1a3c){return{'output':_0x49ab5a,'structured':_0x12710e,..._0x2a1a3c!==void 0x0?{'content':_0x2a1a3c}:{}};}var ToolExecutionError=class extends Error{['structured'];constructor(_0x47173a,_0x5723f3={}){const _0x131899={_0x4af14e:0x248,_0x264328:0x246,_0x54620e:0x5,_0x38b2cd:0x13,_0x3da4e7:0x46,_0x15271e:0x1bc};super(_0x47173a);function _0x3b0128(_0x1d474e,_0x197b85,_0xc349dc,_0x3e557a){return _0x5446(_0x197b85- -0xa8,_0x3e557a);}function _0x3cc1cb(_0x73610a,_0x4333cc,_0x567d4d,_0x15f97e){return _0x5446(_0x15f97e-0x137,_0x4333cc);}this[_0x3cc1cb(_0x131899._0x4af14e,0x1f2,_0x131899._0x264328,0x207)]=_0x3b0128(_0x131899._0x54620e,-_0x131899._0x38b2cd,-0x27,-_0x131899._0x3da4e7),this[_0x3cc1cb(_0x131899._0x15271e,0x1c4,0x1d5,0x19c)]=_0x5723f3;}};function defineTool(_0x207dbb){return _0x207dbb;}var ToolRegistry=class{[_0xe533c6(-0x137,-0x144,-0x116,-0x10b)]=new Map();constructor(_0x593616=[]){for(const _0x1409d9 of _0x593616){this['register'](_0x1409d9);}}[_0x45275b(0x89,0xc7,0x48,0x56)](_0x35e3fe){const _0x3f83ed={_0x35e25b:0x24f,_0x5313a8:0x28e,_0x4cd40f:0x77,_0x1e8ff7:0x2c},_0x47ff8a={_0x2d39c6:0xea,_0x4d589d:0x180,_0xa7563:0x73},_0x247f9d={_0x413d84:0x1ea,_0x373286:0x104,_0x4406f5:0x16d};function _0x11c0a2(_0x4f2b1b,_0x2a3f41,_0x2e208d,_0x45a985){return _0x45275b(_0x2a3f41-_0x247f9d._0x413d84,_0x45a985,_0x2e208d-_0x247f9d._0x373286,_0x45a985-_0x247f9d._0x4406f5);}function _0x2b6574(_0x2bd883,_0x27dfe4,_0xf84fe8,_0x362465){return _0xe533c6(_0x2bd883-_0x47ff8a._0x2d39c6,_0x362465-_0x47ff8a._0x4d589d,_0x27dfe4,_0x362465-_0x47ff8a._0xa7563);}this[_0x11c0a2(0x208,_0x3f83ed._0x35e25b,0x244,_0x3f83ed._0x5313a8)][_0x2b6574(_0x3f83ed._0x4cd40f,0x9e,_0x3f83ed._0x1e8ff7,0x72)](_0x35e3fe['name'],_0x35e3fe);}[_0xe533c6(-0xb0,-0xf5,-0xbf,-0xf8)](_0x14fc10){const _0x15b7a7={_0x21d5c4:0xe5,_0x2dcaba:0x11b,_0x2d96be:0x127,_0x208493:0x170,_0x4331a0:0x15f},_0x48188f={_0xfaa004:0x1cf},_0x4cb20d={_0x3ef736:0x46};function _0x55cb8a(_0x1994af,_0x18277d,_0x3cdf23,_0x2abbc7){return _0x45275b(_0x18277d- -0x2dc,_0x2abbc7,_0x3cdf23-0xcb,_0x2abbc7-_0x4cb20d._0x3ef736);}function _0x5b6e6a(_0x3cd5f1,_0x171997,_0x5e2ec2,_0x21d3b2){return _0xe533c6(_0x3cd5f1-_0x48188f._0xfaa004,_0x171997-0x25f,_0x3cd5f1,_0x21d3b2-0xc8);}return this[_0x5b6e6a(_0x15b7a7._0x21d5c4,_0x15b7a7._0x2dcaba,0x157,_0x15b7a7._0x2d96be)][_0x5b6e6a(0x1a3,0x16a,_0x15b7a7._0x208493,_0x15b7a7._0x4331a0)](_0x14fc10);}['list'](){const _0x127263={_0x2ef6b0:0x224,_0x24a2e3:0x263},_0x1dadd7={_0x1ac797:0x103,_0x45aee4:0x71};function _0x1e993d(_0x269f24,_0x5d6bd4,_0x10983f,_0x4b29ef){return _0x45275b(_0x10983f- -0x2c8,_0x269f24,_0x10983f-_0x1dadd7._0x1ac797,_0x4b29ef-_0x1dadd7._0x45aee4);}return[...this[_0x1e993d(-_0x127263._0x2ef6b0,-0x245,-_0x127263._0x24a2e3,-0x241)]['values']()];}['listToolSchemas'](){const _0x545d19={_0x4ef554:0x16f,_0x11c84a:0x86,_0x2ff3fa:0xb5},_0x5434dc={_0x1922ea:0x25e,_0x36969f:0x27d,_0x1dc04b:0x245,_0x2ed007:0x266,_0x222555:0x3e,_0xa4100:0x2},_0x3322e8={_0x32725a:0x31},_0x36b5f6={_0xc816ae:0x164,_0x2b617c:0x16e};function _0x2bffcd(_0x22a672,_0x45c8c0,_0x4a5a5c,_0x2cc7ce){return _0x45275b(_0x22a672- -0xb9,_0x4a5a5c,_0x4a5a5c-0x1bf,_0x2cc7ce-0x26);}function _0x258eff(_0x51a990,_0x46fa60,_0x27e428,_0x33bcc2){return _0x45275b(_0x51a990-0xbc,_0x27e428,_0x27e428-_0x36b5f6._0xc816ae,_0x33bcc2-_0x36b5f6._0x2b617c);}return this[_0x258eff(0x138,_0x545d19._0x4ef554,0x166,0x136)]()[_0x2bffcd(-_0x545d19._0x11c84a,-0x3c,-_0x545d19._0x2ff3fa,-0xd0)](_0x1bdd51=>{const _0x4b4178={_0x396951:0x19e};function _0x4c6745(_0x57015d,_0x47e7f1,_0x915485,_0x84d7bc){return _0x2bffcd(_0x915485-_0x3322e8._0x32725a,_0x47e7f1-0x45,_0x47e7f1,_0x84d7bc-0x189);}function _0x57ef21(_0x5897cb,_0x4b3460,_0x875c98,_0xd50114){return _0x258eff(_0xd50114- -0x3b8,_0x4b3460-0x147,_0x5897cb,_0xd50114-_0x4b4178._0x396951);}return{'name':_0x1bdd51[_0x57ef21(-_0x5434dc._0x1922ea,-_0x5434dc._0x36969f,-_0x5434dc._0x1dc04b,-_0x5434dc._0x2ed007)],'description':_0x1bdd51[_0x4c6745(0x1e,-_0x5434dc._0x222555,_0x5434dc._0xa4100,0x2d)],'input_schema':_0x1bdd51[_0x57ef21(-0x2d5,-0x2cc,-0x2c6,-0x29f)]};});}};function validateToolInput(_0x47b89e,_0x5ca9f8){const _0x3a2f42={_0x13f12a:0x2cc,_0x4dc024:0x317},_0x3be78e={_0x2e0e5e:0x15a};validateAgainstSchema(_0x4797e7(-_0x3a2f42._0x13f12a,-0x2dc,-0x30b,-_0x3a2f42._0x4dc024),_0x47b89e,_0x5ca9f8);function _0x4797e7(_0x5f2246,_0x17b8a6,_0x2d1718,_0x354e8c){return _0x45275b(_0x5f2246- -0x32a,_0x17b8a6,_0x2d1718-0x5e,_0x354e8c-_0x3be78e._0x2e0e5e);}return _0x47b89e;}function deriveFinalToolOutput(_0x3358b3){const _0xe24f3b={_0x555423:0x24f,_0x42c242:0x236,_0x59f28b:0x216,_0x55cb6c:0x19a,_0x1fec59:0x19d,_0xeb645c:0x198,_0xa8b4b4:0x184,_0x32e830:0x363,_0x163813:0x2ff,_0x3d0528:0x1a9,_0x3fa719:0x141,_0x361f13:0x184,_0x288f90:0x18c,_0x48da91:0x2ed,_0x37e256:0x1e1,_0x455926:0x232},_0x34b252={_0x509e5b:0x2c4,_0x12675c:0x19};function _0x544956(_0x4abe6a,_0x1c7549,_0x4aa953,_0x1024a9){return _0x45275b(_0x1024a9-0x159,_0x4abe6a,_0x4aa953-0x18a,_0x1024a9-0x5c);}if(_0x3358b3[_0x47da80(0x33d,0x2c1,0x2fd,0x2c4)]===0x0)return{'output':'','structured':{}};if(_0x3358b3['length']===0x1)return{'output':_0x3358b3[0x0][_0x544956(0x258,_0xe24f3b._0x555423,_0xe24f3b._0x42c242,_0xe24f3b._0x59f28b)],'structured':_0x3358b3[0x0][_0x544956(_0xe24f3b._0x55cb6c,_0xe24f3b._0x1fec59,_0xe24f3b._0xeb645c,_0xe24f3b._0xa8b4b4)],..._0x3358b3[0x0][_0x47da80(0x34f,_0xe24f3b._0x32e830,0x353,0x31b)]!==void 0x0?{'content':_0x3358b3[0x0]['content']}:{}};const _0xa9b1ea=_0x3358b3[_0x47da80(0x30b,_0xe24f3b._0x163813,0x325,0x314)](_0x4941d4=>_0x4941d4['content']!==void 0x0);function _0x47da80(_0x2e5fea,_0x432c1d,_0x3fb699,_0x4ed7c9){return _0x45275b(_0x3fb699-_0x34b252._0x509e5b,_0x2e5fea,_0x3fb699-_0x34b252._0x12675c,_0x4ed7c9-0x1e5);}return{'output':_0x3358b3[_0x544956(_0xe24f3b._0x3d0528,0x175,0x1b4,0x18c)](_0xd0699e=>_0xd0699e[_0x544956(0x226,0x253,0x212,0x216)])['join'](''),'structured':{'chunks':_0x3358b3[_0x544956(_0xe24f3b._0x3fa719,0x1da,_0xe24f3b._0x361f13,_0xe24f3b._0x288f90)](_0x541f2e=>_0x541f2e['structured'])},..._0xa9b1ea[_0x47da80(0x2f6,0x2e6,0x2fd,_0xe24f3b._0x48da91)]===0x1?{'content':_0xa9b1ea[0x0][_0x544956(_0xe24f3b._0x37e256,0x1fc,_0xe24f3b._0x455926,0x1e8)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x498a1e,_0x59e497,_0x1002de,_0x570cf0=[]){const _0x1982df={_0x2a590e:0x9f,_0x382055:0x285},_0x202a8b={_0x2b1346:0x169},_0x98873a={_0x320030:0xef,_0x1e2836:0x71};function _0x19f4db(_0x495f05,_0x88ee8f,_0x2b6623,_0x1e505a){return _0x45275b(_0x1e505a- -_0x98873a._0x320030,_0x88ee8f,_0x2b6623-0x3,_0x1e505a-_0x98873a._0x1e2836);}function _0x30d13b(_0x4413d9,_0xcb4f93,_0x6732b7,_0x1c1256){return _0x45275b(_0x4413d9- -0x30c,_0x1c1256,_0x6732b7-0x115,_0x1c1256-_0x202a8b._0x2b1346);}return{'callId':_0x498a1e['id'],'toolName':_0x498a1e[_0x19f4db(-_0x1982df._0x2a590e,-0x28,-0x88,-0x59)],'status':_0x30d13b(-0x2bf,-0x2eb,-_0x1982df._0x382055,-0x2a7),'output':_0x59e497,'structured':_0x1002de,'chunks':_0x570cf0,'meta':createToolMeta()};}function createRejectedToolResult(_0x51e44c,_0x29c415){const _0x44df2c={_0x50fbd5:0x1a,_0x2dd487:0x21,_0x5a0d6f:0x38,_0x9284e4:0x77,_0x92335d:0xbd,_0x11a732:0xd7,_0xe20d23:0x2d,_0x25f467:0x1b,_0x5eb729:0x54,_0x58a824:0x74},_0x168bfe={_0x3cd542:0x4},_0x4c5c66={_0x123b13:0xf6,_0x4d467b:0x1a0};function _0x5ec333(_0x397be1,_0x5e9115,_0x20608f,_0x474c71){return _0xe533c6(_0x397be1-0x8d,_0x397be1-_0x4c5c66._0x123b13,_0x20608f,_0x474c71-_0x4c5c66._0x4d467b);}const _0x47e9e0=_0x29c415?.[_0x5ec333(-_0x44df2c._0x50fbd5,-_0x44df2c._0x2dd487,-0x3d,-_0x44df2c._0x5a0d6f)]()[_0x16eddd(0xcf,0x4e,0x9a,0xa5)]?_0x29c415:_0x5ec333(-_0x44df2c._0x9284e4,-0xa0,-0x3d,-_0x44df2c._0x92335d)+_0x51e44c[_0x16eddd(0x106,_0x44df2c._0x11a732,0xf7,0x125)];function _0x16eddd(_0xdd7e83,_0x19da0c,_0x57ef3a,_0x4b435a){return _0xe533c6(_0xdd7e83-0x129,_0x57ef3a-0x20a,_0xdd7e83,_0x4b435a-_0x168bfe._0x3cd542);}return createErrorToolResult(_0x51e44c,_0x47e9e0,{'error':'tool_rejected',..._0x29c415?.[_0x5ec333(-_0x44df2c._0x50fbd5,_0x44df2c._0xe20d23,_0x44df2c._0x25f467,-_0x44df2c._0x5eb729)]()[_0x16eddd(_0x44df2c._0x58a824,0x98,0x9a,0xc9)]?{'reason':_0x29c415}:{}});}function createAbortedToolResult(_0x2055f1,_0x4a61d1,_0x10d58e=[]){const _0x401107={_0x59839d:0xf4,_0x27b58d:0x103,_0x5524b6:0x135,_0x9d0fff:0x12a},_0x4551de={_0x165711:0x162,_0x3c3c77:0xf4},_0xbf0aa9={_0x544029:0x57,_0x55f8c6:0x227,_0x3a0d7d:0x17c};function _0x5339d5(_0x3fb3df,_0x3675d0,_0x5aa6fd,_0x57de16){return _0xe533c6(_0x3fb3df-_0xbf0aa9._0x544029,_0x5aa6fd-_0xbf0aa9._0x55f8c6,_0x3675d0,_0x57de16-_0xbf0aa9._0x3a0d7d);}const _0x1a2d55=toAbortError(_0x4a61d1);function _0x221e49(_0x5b5035,_0x54d4b4,_0x2e90fa,_0x21d3ac){return _0xe533c6(_0x5b5035-_0x4551de._0x165711,_0x21d3ac- -0x1f2,_0x54d4b4,_0x21d3ac-_0x4551de._0x3c3c77);}return createErrorToolResult(_0x2055f1,_0x1a2d55[_0x5339d5(_0x401107._0x59839d,0xea,_0x401107._0x27b58d,_0x401107._0x5524b6)],{'error':_0x1a2d55[_0x5339d5(_0x401107._0x9d0fff,0xe8,0x103,0x145)],'aborted':!![]},_0x10d58e);}function createSuccessToolResult(_0x1414c8,_0x495e9a,_0x50e9d3){const _0xa736be={_0xbbdcdb:0x11f,_0x24054b:0x14d,_0x4d5acf:0x172,_0x3dbac7:0x77,_0x1b677e:0xe8,_0x345676:0x9f,_0x560995:0x19b},_0x240c64={_0x44c1a7:0x89,_0x558062:0xde},_0x1f0a84={_0xca1515:0x22a,_0x32a9c6:0xa5,_0x256acb:0x190};function _0x1c52e1(_0x1b2e75,_0x155d26,_0x29bc45,_0x36f3ef){return _0x45275b(_0x1b2e75- -_0x1f0a84._0xca1515,_0x155d26,_0x29bc45-_0x1f0a84._0x32a9c6,_0x36f3ef-_0x1f0a84._0x256acb);}function _0x3d5368(_0xea46f7,_0x2131cc,_0x538499,_0x568a88){return _0x45275b(_0x2131cc-_0x240c64._0x44c1a7,_0x568a88,_0x538499-0x39,_0x568a88-_0x240c64._0x558062);}return{'callId':_0x1414c8['id'],'toolName':_0x1414c8[_0x3d5368(0x150,_0xa736be._0xbbdcdb,0x147,0x161)],'status':'ok','output':_0x495e9a[_0x3d5368(_0xa736be._0x24054b,0x146,_0xa736be._0x4d5acf,0x112)],'structured':_0x495e9a[_0x3d5368(_0xa736be._0x3dbac7,0xb4,_0xa736be._0x1b677e,_0xa736be._0x345676)],..._0x495e9a[_0x1c52e1(-_0xa736be._0x560995,-0x15d,-_0xa736be._0x4d5acf,-0x156)]!==void 0x0?{'content':_0x495e9a['content']}:{},'chunks':_0x50e9d3,'meta':createToolMeta()};}function createUnknownToolResult(_0x453766){const _0x24b6d5={_0x3815da:0x1d1,_0x2ffdd5:0x1c3,_0x53e941:0x30c,_0x219857:0x2f1,_0x341663:0x337},_0x293d6c={_0xae5f4e:0x1cd},_0x246c4f={_0x4b1ec1:0xef,_0x51625e:0x449,_0x18a5d6:0x42};function _0x3ef6b0(_0x53a097,_0x4c34bf,_0x5d2b23,_0x4ae926){return _0xe533c6(_0x53a097-_0x246c4f._0x4b1ec1,_0x4c34bf-_0x246c4f._0x51625e,_0x4ae926,_0x4ae926-_0x246c4f._0x18a5d6);}function _0x4fb95e(_0x3d487f,_0x51c7cd,_0x5c666c,_0x3e62b4){return _0x45275b(_0x51c7cd-0x13b,_0x3e62b4,_0x5c666c-0x18f,_0x3e62b4-_0x293d6c._0xae5f4e);}return createErrorToolResult(_0x453766,'Unknown\x20tool:\x20'+_0x453766[_0x4fb95e(0x20a,_0x24b6d5._0x3815da,_0x24b6d5._0x2ffdd5,0x1a8)],{'error':_0x3ef6b0(0x320,_0x24b6d5._0x53e941,_0x24b6d5._0x219857,_0x24b6d5._0x341663)});}function isDispatchDecision(_0x2b81aa){const _0x507dce={_0x5d8498:0x38a,_0x407233:0x3be,_0x54003d:0x399,_0x171604:0x3aa,_0x11b1af:0x2f2,_0x4f3bea:0x2fd,_0x410bfa:0x32d,_0x5a9d0f:0x375},_0x1808a6={_0x546150:0x133},_0x81a771={_0x1e0a2d:0x48};function _0x21ed32(_0x57660a,_0x494487,_0x3ad0f7,_0x1f7e1c){return _0xe533c6(_0x57660a-_0x81a771._0x1e0a2d,_0x57660a-0x47d,_0x1f7e1c,_0x1f7e1c-0x16);}if(typeof _0x2b81aa!==_0x21ed32(_0x507dce._0x5d8498,_0x507dce._0x407233,_0x507dce._0x54003d,_0x507dce._0x171604)||_0x2b81aa===null)return![];function _0x443f18(_0x3f9b42,_0x584766,_0x29fdb2,_0x1cb71b){return _0xe533c6(_0x3f9b42-_0x1808a6._0x546150,_0x29fdb2-0x12d,_0x3f9b42,_0x1cb71b-0x51);}return _0x2b81aa[_0x21ed32(0x32d,0x35e,_0x507dce._0x11b1af,_0x507dce._0x4f3bea)]==='reject'||_0x2b81aa[_0x21ed32(_0x507dce._0x410bfa,0x35c,_0x507dce._0x5a9d0f,0x33e)]===_0x21ed32(0x346,0x35f,0x38e,0x32d);}function normalizeExecutionError(_0x3626f0){const _0x42d4b1={_0xdf6af5:0x1a4,_0x26f796:0x15c,_0x4b82fe:0x8c,_0x167752:0xd3,_0x4d5dce:0x8f},_0x4f468e={_0x2fbb86:0x9b,_0x38c9d1:0x36,_0x29b73c:0x141},_0x20b71a={_0x252774:0x7,_0x83c55:0x1d1};if(_0x3626f0 instanceof ToolExecutionError)return{'errorMessage':_0x3626f0[_0x56467d(-0x116,-0x117,-0x113,-0x15a)],'structured':{'error':_0x3626f0['message'],..._0x3626f0['structured']}};if(_0x3626f0 instanceof Error)return{'errorMessage':_0x3626f0[_0x56467d(-0x179,-_0x42d4b1._0xdf6af5,-_0x42d4b1._0x26f796,-0x15a)],'structured':{'error':_0x3626f0[_0x1d865f(_0x42d4b1._0x4b82fe,0x6b,_0x42d4b1._0x167752,_0x42d4b1._0x4d5dce)]}};const _0x53b1c7=String(_0x3626f0);function _0x1d865f(_0x3b38d5,_0x13acc0,_0x4eac44,_0x441a9c){return _0x45275b(_0x3b38d5-_0x20b71a._0x252774,_0x441a9c,_0x4eac44-0xfe,_0x441a9c-_0x20b71a._0x83c55);}function _0x56467d(_0x80e402,_0x17d4eb,_0x173813,_0x4bce37){return _0xe533c6(_0x80e402-_0x4f468e._0x2fbb86,_0x4bce37- -_0x4f468e._0x38c9d1,_0x80e402,_0x4bce37-_0x4f468e._0x29b73c);}return{'errorMessage':_0x53b1c7,'structured':{'error':_0x53b1c7}};}async function emitEvent(_0x52f9a4,_0x149827,_0x487c47){await _0x52f9a4?.(_0x149827,_0x487c47);}function _0x45275b(_0x4362a0,_0x5b3751,_0x4fd376,_0x43a0a4){return _0x5446(_0x4362a0- -0x3a,_0x5b3751);}async function resolveDispatchDecision(_0x51d552,_0x238abd,_0x1f8edc){const _0x26afe0={_0x504068:0x230,_0x4f7768:0x25b,_0x3daec8:0x225,_0x4db5df:0x267,_0x23c277:0x236,_0x3f88f8:0x1ee,_0x179e68:0x22d,_0x1f0f8f:0x239,_0x1666ac:0x25a},_0x28f10b={_0x3d105a:0x2a,_0x4a3758:0xf,_0x181463:0x20,_0x393d2e:0x26f,_0x10cf1d:0x239,_0x2ceb7:0x2ad,_0x48a5e0:0x2d4,_0x2e3afd:0x270,_0x2731ca:0x2a8,_0x50b776:0xe0,_0x30bee8:0xcb,_0x3791a8:0x96,_0x4b362a:0xa7},_0x304b20={_0x4f8dc6:0xf3,_0x4b7696:0x169},_0xca9948={_0x5448be:0x2a6,_0x157885:0x259,_0x3fcfa2:0x2d4,_0x597b07:0x267,_0x5c209e:0x21f,_0x50b06a:0xc3,_0x4126e3:0x222,_0x4a2dcc:0x270},_0x334998={_0x124db4:0x34a},_0x1a9c68={_0x495996:0x73,_0x250b11:0x102,_0x456fbc:0x1c7};if(!_0x51d552)return{'action':_0x2a1809(_0x26afe0._0x504068,_0x26afe0._0x4f7768,_0x26afe0._0x3daec8,0x213)};const _0x1e6e06=Promise[_0x5f541f(-_0x26afe0._0x4db5df,-0x1ff,-_0x26afe0._0x23c277,-_0x26afe0._0x3f88f8)]()[_0x2a1809(0x212,0x218,0x20d,0x239)](()=>_0x51d552(_0x238abd,_0x1f8edc));function _0x5f541f(_0x48abe4,_0x41314e,_0xf6a64d,_0x300d7d){return _0xe533c6(_0x48abe4-_0x1a9c68._0x495996,_0xf6a64d- -_0x1a9c68._0x250b11,_0x48abe4,_0x300d7d-_0x1a9c68._0x456fbc);}function _0x2a1809(_0xc3d980,_0x1660c1,_0x537a20,_0x5c9b8a){return _0xe533c6(_0xc3d980-0x86,_0x5c9b8a-_0x334998._0x124db4,_0xc3d980,_0x5c9b8a-0x11f);}if(!_0x1f8edc[_0x2a1809(0x203,0x210,0x224,0x1d9)]){const _0x46348e=await _0x1e6e06;return isDispatchDecision(_0x46348e)?_0x46348e:{'action':_0x5f541f(-_0x26afe0._0x179e68,-0x214,-_0x26afe0._0x1f0f8f,-0x268)};}const _0x697952=new Promise((_0x833480,_0xbaf286)=>{const _0x2cd0f1={_0x483b55:0x172,_0x172e5c:0x293},_0x30ff9f={_0x3d3d3c:0x93},_0x58b444=()=>{const _0x52106b={_0x2d97e3:0x318};_0x1f8edc[_0x3f5bb9(-_0xca9948._0x5448be,-0x2a1,-_0xca9948._0x157885,-_0xca9948._0x3fcfa2)]?.[_0x3f5bb9(-0x28b,-0x299,-0x289,-_0xca9948._0x597b07)](_0x3f5bb9(-_0xca9948._0x5c209e,-0x22a,-0x24e,-0x204),_0x58b444);function _0x3f5bb9(_0x296b06,_0x14235f,_0x42ae5e,_0x389d2a){return _0x5446(_0x296b06- -_0x52106b._0x2d97e3,_0x389d2a);}function _0x2c8e77(_0x1ffc03,_0x2af29f,_0x382e8c,_0x34c792){return _0x5446(_0x1ffc03-_0x30ff9f._0x3d3d3c,_0x2af29f);}_0xbaf286(toAbortError(_0x1f8edc[_0x2c8e77(0x105,0x137,0xbe,_0xca9948._0x50b06a)]?.[_0x3f5bb9(-_0xca9948._0x4126e3,-0x1e2,-_0xca9948._0x4126e3,-_0xca9948._0x4a2dcc)]));};if(_0x1f8edc[_0x38f56b(_0x28f10b._0x3d105a,-_0x28f10b._0x4a3758,0x3f,_0x28f10b._0x181463)]?.[_0x45cccf(-0x238,-_0x28f10b._0x393d2e,-0x205,-_0x28f10b._0x10cf1d)]){_0xbaf286(toAbortError(_0x1f8edc[_0x45cccf(-_0x28f10b._0x2ceb7,-0x2a4,-0x277,-0x2a8)]['reason']));return;}function _0x38f56b(_0x2f344e,_0x2f6d0e,_0x37ce1b,_0x20ac22){return _0x5f541f(_0x2f6d0e,_0x2f6d0e-_0x2cd0f1._0x483b55,_0x20ac22-_0x2cd0f1._0x172e5c,_0x20ac22-0x1e8);}function _0x45cccf(_0x2be32e,_0x26f885,_0x3cc682,_0x56e1be){return _0x5f541f(_0x3cc682,_0x26f885-_0x304b20._0x4f8dc6,_0x56e1be- -0x35,_0x56e1be-_0x304b20._0x4b7696);}_0x1f8edc[_0x45cccf(-0x29f,-_0x28f10b._0x48a5e0,-_0x28f10b._0x2e3afd,-_0x28f10b._0x2731ca)]?.['addEventListener'](_0x38f56b(_0x28f10b._0x50b776,_0x28f10b._0x30bee8,_0x28f10b._0x3791a8,_0x28f10b._0x4b362a),_0x58b444,{'once':!![]});}),_0xa56266=await Promise['race']([_0x1e6e06,_0x697952]);return isDispatchDecision(_0xa56266)?_0xa56266:{'action':_0x2a1809(0x1f3,0x237,_0x26afe0._0x1666ac,0x213)};}async function executeToolCall(_0x5c044a,_0x53511c,_0xf617de,_0x17a451,_0x18c537){const _0x2f3571={_0x5c8092:0x58,_0x466ff7:0x4f,_0x27cf3f:0x32,_0x1cd0d8:0xf,_0x41a514:0x5,_0x349f79:0x98,_0x345b5a:0xd2,_0x5f4049:0xa7,_0x1b92a2:0xf1,_0x4a4c7c:0x8d,_0x14b7ec:0x71,_0x74554:0x72,_0x280026:0x8b,_0x116c94:0x2f,_0x2bdd41:0x14,_0x2a6fba:0x29,_0x3d0eb8:0x21,_0x354d60:0x6f,_0x248c16:0x7f,_0x12f540:0x59,_0x24f7ca:0x58,_0x5f1930:0x22,_0x154b80:0x47,_0x401e71:0x25,_0x43aadb:0x5e,_0x975659:0x4e,_0x1acbe5:0x69,_0x5d37bb:0x2c,_0x3ce188:0x1,_0x23a1f6:0xb0,_0x14acf5:0x74,_0x5461b4:0x4d,_0x5b9fac:0x61,_0x20f9c8:0x88,_0x3733f1:0x42,_0x12a40c:0x94,_0x541b72:0x74,_0x85e56f:0xe1,_0x2b909:0xb7,_0x1c9623:0xd8,_0x4fa2c2:0x8f,_0x59d84c:0x3a,_0x30b17b:0x12,_0x3d0a0d:0x31,_0x1d203c:0xe,_0x479d3e:0xa0,_0x219be7:0xaa,_0x14b151:0x6a},_0xe83dc9={_0x27ccd6:0x12f,_0x24c8b8:0x197,_0x1d7d8c:0x152,_0x2a5aeb:0x138,_0xfc0a05:0x156,_0x56e5a2:0x112},_0x5cab6f={_0x29250e:0xb7,_0x194991:0x19b},_0x55a619={_0x59c121:0x9},_0x414507={..._0xf617de,'toolCallId':_0x53511c['id']};throwIfAborted(_0x414507['signal']);const _0x1131cf=await resolveDispatchDecision(_0x17a451,_0x53511c,_0x414507);throwIfAborted(_0x414507['signal']);if(_0x1131cf['action']===_0x562495(-_0x2f3571._0x5c8092,-0x29,-_0x2f3571._0x466ff7,-0x47)){const _0x56abc8=createRejectedToolResult(_0x53511c,_0x1131cf[_0x562495(_0x2f3571._0x27cf3f,-_0x2f3571._0x1cd0d8,-0x2c,_0x2f3571._0x41a514)]);return await emitEvent(_0x18c537,{'type':_0x105cb6(_0x2f3571._0x349f79,_0x2f3571._0x345b5a,_0x2f3571._0x5f4049,0x5a),'toolCall':_0x53511c,'result':_0x56abc8},_0x414507),_0x56abc8;}const _0x4515a2=_0x5c044a[_0x105cb6(0xab,0xdc,0x84,_0x2f3571._0x1b92a2)](_0x53511c[_0x105cb6(_0x2f3571._0x4a4c7c,_0x2f3571._0x14b7ec,_0x2f3571._0x74554,_0x2f3571._0x280026)]);function _0x105cb6(_0xd356a1,_0x2ee4d3,_0x33892a,_0x3504c9){return _0x45275b(_0xd356a1- -0x9,_0x33892a,_0x33892a-0x13c,_0x3504c9-_0x55a619._0x59c121);}if(!_0x4515a2){const _0x37f968=createUnknownToolResult(_0x53511c);return await emitEvent(_0x18c537,{'type':'tool_completed','toolCall':_0x53511c,'result':_0x37f968},_0x414507),_0x37f968;}throwIfAborted(_0x414507[_0x105cb6(_0x2f3571._0x116c94,0x26,0x14,_0x2f3571._0x2bdd41)]);function _0x562495(_0x51d6c1,_0x571dcc,_0x2e6f8a,_0x4374d6){return _0x45275b(_0x4374d6- -_0x5cab6f._0x29250e,_0x571dcc,_0x2e6f8a-_0x5cab6f._0x194991,_0x4374d6-0x88);}await emitEvent(_0x18c537,{'type':_0x105cb6(_0x2f3571._0x2a6fba,-_0x2f3571._0x3d0eb8,0x31,-0x18),'toolCall':_0x53511c},_0x414507);try{throwIfAborted(_0x414507[_0x562495(-0x6c,-_0x2f3571._0x354d60,-0x39,-_0x2f3571._0x248c16)]);const _0x2866e4=validateToolInput(_0x53511c[_0x562495(-0x63,-0x5f,-0x5b,-_0x2f3571._0x12f540)],_0x4515a2[_0x562495(-0x3e,-_0x2f3571._0x24f7ca,-_0x2f3571._0x5f1930,-0x5a)]),_0x5c6698=await _0x4515a2[_0x105cb6(0x5f,_0x2f3571._0x154b80,_0x2f3571._0x401e71,0x2e)](_0x2866e4,_0x414507),_0x484782=[],_0x3a2ddf=addAbortListener(_0x414507[_0x562495(-_0x2f3571._0x43aadb,-0x6d,-_0x2f3571._0x975659,-0x7f)],()=>{function _0x31fa66(_0x406ae5,_0x3ec2d9,_0x4e21e5,_0xe56141){return _0x562495(_0x406ae5-0x191,_0x4e21e5,_0x4e21e5-0x11b,_0xe56141-0x16d);}function _0x30d2f5(_0x4d9100,_0x4c7b56,_0x15291b,_0x2bb7fd){return _0x105cb6(_0x4d9100-0x48,_0x4c7b56-0x74,_0x4c7b56,_0x2bb7fd-0x16f);}void _0x5c6698[_0x31fa66(_0xe83dc9._0x27ccd6,0x148,_0xe83dc9._0x24c8b8,_0xe83dc9._0x1d7d8c)](void 0x0)[_0x31fa66(_0xe83dc9._0x2a5aeb,_0xe83dc9._0xfc0a05,_0xe83dc9._0x56e5a2,0x154)](()=>{});});try{throwIfAborted(_0x414507[_0x105cb6(0x2f,0x53,_0x2f3571._0x1acbe5,-0xf)]);let _0x4f1cb1=await _0x5c6698['next']();while(!_0x4f1cb1[_0x562495(-0x32,-_0x2f3571._0x5d37bb,-_0x2f3571._0x3ce188,-0xf)]){throwIfAborted(_0x414507['signal']);const _0x372864=normalizeToolOutputValue(_0x4f1cb1[_0x562495(-0xbd,-0x6a,-_0x2f3571._0x23a1f6,-_0x2f3571._0x14acf5)]);_0x484782['push'](_0x372864),await emitEvent(_0x18c537,{'type':_0x105cb6(_0x2f3571._0x5461b4,0x30,0x5d,0x7),'toolCall':_0x53511c,'chunk':_0x372864},_0x414507),throwIfAborted(_0x414507[_0x562495(-_0x2f3571._0x74554,-0xac,-_0x2f3571._0x5b9fac,-0x7f)]),_0x4f1cb1=await _0x5c6698['next']();}throwIfAborted(_0x414507['signal']);const _0x150d5e=_0x4f1cb1[_0x562495(-_0x2f3571._0x20f9c8,-_0x2f3571._0x3733f1,-_0x2f3571._0x12a40c,-_0x2f3571._0x541b72)]===void 0x0?deriveFinalToolOutput(_0x484782):normalizeToolOutputValue(_0x4f1cb1['value']),_0x242a6c=createSuccessToolResult(_0x53511c,_0x150d5e,_0x484782);return await emitEvent(_0x18c537,{'type':_0x105cb6(0xa0,0x63,0xbd,_0x2f3571._0x85e56f),'toolCall':_0x53511c,'result':_0x242a6c},_0x414507),_0x242a6c;}catch(_0x12e462){if(isAbortError(_0x12e462)){const _0x321585=createAbortedToolResult(_0x53511c,_0x12e462,_0x484782);return await emitEvent(_0x18c537,{'type':_0x105cb6(0xa0,0xed,_0x2f3571._0x2b909,0xbd),'toolCall':_0x53511c,'result':_0x321585},_0x414507),_0x321585;}const {errorMessage:_0x425511,structured:_0x315086}=normalizeExecutionError(_0x12e462),_0x5c4d63=createErrorToolResult(_0x53511c,_0x425511,_0x315086,_0x484782);return await emitEvent(_0x18c537,{'type':_0x105cb6(0xa0,_0x2f3571._0x1c9623,0xeb,_0x2f3571._0x4fa2c2),'toolCall':_0x53511c,'result':_0x5c4d63},_0x414507),_0x5c4d63;}finally{_0x3a2ddf();}}catch(_0x14e76a){if(isAbortError(_0x14e76a)){const _0x2b9579=createAbortedToolResult(_0x53511c,_0x14e76a);return await emitEvent(_0x18c537,{'type':_0x562495(-_0x2f3571._0x59d84c,-_0x2f3571._0x30b17b,_0x2f3571._0x3d0a0d,-_0x2f3571._0x1d203c),'toolCall':_0x53511c,'result':_0x2b9579},_0x414507),_0x2b9579;}const {errorMessage:_0x1f1083,structured:_0x48204f}=normalizeExecutionError(_0x14e76a),_0x50996d=createErrorToolResult(_0x53511c,_0x1f1083,_0x48204f);return await emitEvent(_0x18c537,{'type':_0x105cb6(_0x2f3571._0x479d3e,_0x2f3571._0x219be7,_0x2f3571._0x14b151,0x57),'toolCall':_0x53511c,'result':_0x50996d},_0x414507),_0x50996d;}}function createInternalToolRuntime(_0x44b551=[],_0x48911a={}){const _0xd60bba={_0x4810b7:0x27a,_0x4172aa:0x2ab,_0x49a6e4:0x14,_0x4499bc:0x3c,_0x1442a8:0x30},_0x1cfe68={_0x5b2a55:0x3a4},_0x5aa3c0={_0x207c7a:0x2d};let _0x9abab9=new ToolRegistry(_0x44b551);return{'listToolSchemas'(){function _0x4399d1(_0x27c7ff,_0x1f3810,_0x3081ba,_0x4cfa6a){return _0x5446(_0x27c7ff- -0x8c,_0x1f3810);}return _0x9abab9[_0x4399d1(-0xd,-_0x5aa3c0._0x207c7a,-0x1c,-0x3d)]();},'setTools'(_0x2df51f){_0x9abab9=new ToolRegistry(_0x2df51f);},async 'executeCalls'(_0x359419,_0x5ee559){const _0x48646d={_0x1dc413:0x305,_0x2da35d:0x296};function _0x26e4ca(_0x36bacb,_0x54691d,_0x1cb6cd,_0x12082f){return _0x5446(_0x1cb6cd- -0xa9,_0x36bacb);}function _0x509757(_0xbb7ce2,_0x2a1e5b,_0x354f59,_0x59055e){return _0x5446(_0xbb7ce2- -_0x1cfe68._0x5b2a55,_0x59055e);}return await Promise[_0x509757(-0x2a8,-0x2b8,-_0xd60bba._0x4810b7,-_0xd60bba._0x4172aa)](_0x359419[_0x26e4ca(0x7,-_0xd60bba._0x49a6e4,-_0xd60bba._0x4499bc,-_0xd60bba._0x1442a8)](async _0x15b7fa=>{const _0x44beef={_0x1af21f:0x14,_0x1ceb9f:0xb0};function _0x3332d0(_0x5cc314,_0x5c4679,_0x392a2c,_0x46056d){return _0x26e4ca(_0x392a2c,_0x5c4679-0x27,_0x5c4679-0x2d9,_0x46056d-0xda);}function _0x16c6ad(_0x36d8f1,_0x383ff1,_0x55b282,_0x35d1ed){return _0x26e4ca(_0x35d1ed,_0x383ff1-_0x44beef._0x1af21f,_0x55b282-0x309,_0x35d1ed-_0x44beef._0x1ceb9f);}return await executeToolCall(_0x9abab9,_0x15b7fa,_0x5ee559,_0x48911a[_0x16c6ad(_0x48646d._0x1dc413,_0x48646d._0x2da35d,0x2c8,0x2d4)],_0x48911a[_0x3332d0(0x2d8,0x29b,0x2ad,0x24d)]);}));},async 'execute'(_0x13c812,_0x43ceb0){const [_0x270f23]=await this['executeCalls']([_0x13c812],_0x43ceb0);return _0x270f23;}};}function getOrderedObserverExtensions(_0x30b569,_0x175f03){const _0x2a96a9={_0x277ef7:0x223,_0x53a739:0x260,_0x1944a4:0x200},_0x1bde8a={_0x2fb87f:0x421,_0x1ae5db:0x44f,_0x4633a5:0x44b,_0x16ee8a:0x31,_0x5e137f:0x10,_0x27074b:0x8,_0x1f7fbd:0xb,_0x540ada:0x4f,_0x592d4a:0x1b},_0xd2b0a7={_0x283079:0x8e},_0x1d1f6b={_0x1ff8aa:0x136},_0x8e9d22={_0x384975:0x113,_0x30bd3c:0x38e};function _0x52e942(_0x496cdf,_0x15054f,_0x3e9e54,_0x2246b7){return _0xe533c6(_0x496cdf-_0x8e9d22._0x384975,_0x496cdf-_0x8e9d22._0x30bd3c,_0x3e9e54,_0x2246b7-0x8c);}function _0x5a5ca3(_0x415065,_0x24de94,_0x52921c,_0x554408){return _0xe533c6(_0x415065-0x8b,_0x52921c-0x75,_0x415065,_0x554408-_0x1d1f6b._0x1ff8aa);}return _0x30b569[_0x52e942(0x246,_0x2a96a9._0x277ef7,0x203,_0x2a96a9._0x53a739)](_0x26d47b=>{function _0x393eea(_0x134644,_0x16c713,_0x563c42,_0x36bad8){return _0x52e942(_0x134644-0x185,_0x16c713-0x1e,_0x563c42,_0x36bad8-0x1f3);}function _0x4b25b8(_0xb5f3a2,_0x30e50b,_0x3713a6,_0x38de39){return _0x52e942(_0x3713a6- -0x278,_0x30e50b-0x107,_0x30e50b,_0x38de39-_0xd2b0a7._0x283079);}return _0x26d47b[_0x393eea(_0x1bde8a._0x2fb87f,0x3e4,_0x1bde8a._0x1ae5db,_0x1bde8a._0x4633a5)]!==![]&&_0x26d47b[_0x4b25b8(0x13,_0x1bde8a._0x16ee8a,_0x1bde8a._0x5e137f,0x2b)]===_0x175f03&&_0x26d47b[_0x4b25b8(-0x7,_0x1bde8a._0x27074b,-_0x1bde8a._0x1f7fbd,-_0x1bde8a._0x540ada)]===_0x4b25b8(_0x1bde8a._0x592d4a,-0x53,-0x25,0x5);})[_0x52e942(0x229,0x22b,_0x2a96a9._0x1944a4,0x217)]((_0x3543f6,_0x4b8d89)=>_0x3543f6['order']-_0x4b8d89[_0x5a5ca3(-0x110,-0x110,-0xeb,-0xbb)]);}function getOrderedTransformerExtensions(_0x10cb12,_0x2a9e67){const _0x46a850={_0x3ff3c0:0x26e,_0x25f0c4:0x2ae,_0x521f47:0x273,_0x271c19:0x2ad},_0x172193={_0x880719:0x217,_0x194158:0x21b,_0xb958b8:0xbd,_0x5c6f79:0xfa,_0x529cf0:0xcb,_0x126e72:0x9d,_0x567033:0x52,_0x270cf5:0x55},_0x477e65={_0x5c7f24:0xe1,_0xedd524:0x15c},_0x4f11e6={_0x4a2580:0x138,_0x3bdc25:0x13c};function _0x5b3d39(_0x50505d,_0x497219,_0x55567d,_0x3d0b5b){return _0x45275b(_0x55567d- -0x1ef,_0x3d0b5b,_0x55567d-_0x4f11e6._0x4a2580,_0x3d0b5b-_0x4f11e6._0x3bdc25);}function _0x38d316(_0x35ede2,_0x3a33e2,_0x2a0ebb,_0x4f0a90){return _0xe533c6(_0x35ede2-0x1a2,_0x2a0ebb- -0x154,_0x35ede2,_0x4f0a90-0xd3);}return _0x10cb12[_0x38d316(-_0x46a850._0x3ff3c0,-0x255,-0x29c,-_0x46a850._0x25f0c4)](_0x259ef4=>{const _0x455a0d={_0x2c9ac7:0xcb,_0x46b57f:0x345};function _0x426e09(_0x5d15aa,_0x12d700,_0x21e941,_0x298d41){return _0x38d316(_0x5d15aa,_0x12d700-_0x477e65._0x5c7f24,_0x12d700-0x2f,_0x298d41-_0x477e65._0xedd524);}function _0x56b783(_0x3421cc,_0x39f62b,_0x3e76f3,_0x48875b){return _0x38d316(_0x3e76f3,_0x39f62b-_0x455a0d._0x2c9ac7,_0x39f62b-_0x455a0d._0x46b57f,_0x48875b-0x1c5);}return _0x259ef4[_0x426e09(-0x22a,-_0x172193._0x880719,-_0x172193._0x194158,-0x21a)]!==![]&&_0x259ef4[_0x56b783(_0x172193._0xb958b8,0xeb,_0x172193._0x5c6f79,0xcf)]===_0x2a9e67&&_0x259ef4[_0x56b783(0x110,0xd0,_0x172193._0x529cf0,0xd6)]===_0x56b783(0x64,_0x172193._0x126e72,_0x172193._0x567033,_0x172193._0x270cf5);})[_0x38d316(-0x2c0,-_0x46a850._0x521f47,-0x2b9,-_0x46a850._0x271c19)]((_0x463537,_0x29cd6d)=>_0x463537[_0x38d316(-0x2e2,-0x28a,-0x2b4,-0x2a7)]-_0x29cd6d[_0x38d316(-0x27f,-0x267,-0x2b4,-0x2e9)]);}function createExtensionRegistry(){const _0x25d3a1={_0x46c72a:0x2fa,_0x17cbf8:0x34e},_0x8c6cb0={_0x3d68d8:0x43,_0x1453dc:0x52,_0x3c6327:0x40},_0x43dfd5=[];return{'register'(_0x3decc9){_0x43dfd5['push'](_0x3decc9);},async 'runTransformers'(_0x10ab13,_0x139e9e,_0xdced6e){const _0x422301={_0x3e992e:0xfe};function _0x352eb2(_0x445fd1,_0x21da97,_0x3f4120,_0x550c70){return _0x5446(_0x3f4120- -_0x422301._0x3e992e,_0x445fd1);}let _0x213668=_0x139e9e;for(const _0x3a2415 of getOrderedTransformerExtensions(_0x43dfd5,_0x10ab13)){_0x213668=await _0x3a2415[_0x352eb2(-_0x8c6cb0._0x3d68d8,-0x61,-_0x8c6cb0._0x1453dc,-_0x8c6cb0._0x3c6327)](_0x213668,_0xdced6e);}return _0x213668;},async 'runObservers'(_0x586779,_0x38e9c3,_0x5d9e42){const _0xc407f0={_0x4500ab:0x3ce};function _0x1a907a(_0x1de79f,_0x2673f0,_0x5798f6,_0x467aaf){return _0x5446(_0x5798f6- -_0xc407f0._0x4500ab,_0x1de79f);}for(const _0x2f8231 of getOrderedObserverExtensions(_0x43dfd5,_0x586779)){await _0x2f8231[_0x1a907a(-_0x25d3a1._0x46c72a,-_0x25d3a1._0x17cbf8,-0x322,-0x30d)](_0x38e9c3,_0x5d9e42);}}};}function makeExtensionContext(_0x14a289){return{'state':_0x14a289};}async function runStage(_0xd0ccaf,_0x4afeff,_0x55fb0d,_0x3687e9){const _0x391607={_0x2b8537:0x38,_0x28c7c4:0x274,_0x26876f:0x22e},_0x116a41={_0x52ef00:0x19d},_0x1c37ce=await _0xd0ccaf[_0x538a7f(-0x49,-0x48,-0x29,-_0x391607._0x2b8537)](_0x4afeff,_0x55fb0d,_0x3687e9);function _0xa7b7db(_0x3db05e,_0xa1bbda,_0x4b4b83,_0x1051da){return _0x45275b(_0x4b4b83- -0x25d,_0x1051da,_0x4b4b83-0x160,_0x1051da-0x148);}function _0x538a7f(_0x4100fb,_0x5c10fe,_0x4ec4d4,_0x1b2700){return _0x45275b(_0x1b2700- -0xbe,_0x5c10fe,_0x4ec4d4-0x14b,_0x1b2700-_0x116a41._0x52ef00);}return await _0xd0ccaf[_0xa7b7db(-0x25f,-_0x391607._0x28c7c4,-_0x391607._0x26876f,-_0x391607._0x28c7c4)](_0x4afeff,_0x1c37ce,_0x3687e9),_0x1c37ce;}async function emitEvent2(_0x12562a,_0x4cc0ad,_0x298865){await _0x12562a?.(_0x4cc0ad,_0x298865);}function replaceToolUseBlocks(_0x585abc,_0x4f6a2b){const _0x461d1f={_0x4a60ee:0x2c,_0x2525a6:0x95,_0x304bc9:0x186,_0xf0d6f5:0x1a1},_0x2f4f2d={_0x3ef08a:0x3e9,_0x40e5f4:0x403,_0x53bc5e:0x3af,_0x420de3:0x3ee},_0x1e141b={_0x3d93f5:0x18f},_0xeabb53={_0x517f58:0x15,_0x198a0d:0x6a},_0x5d9359={_0x2aeaf7:0x141},_0x2cd2ec={_0x44c623:0x33d,_0x255302:0x1ad};function _0x209075(_0x219075,_0x24a9fd,_0x5c9d44,_0x3fb974){return _0xe533c6(_0x219075-0x72,_0x3fb974-_0x2cd2ec._0x44c623,_0x24a9fd,_0x3fb974-_0x2cd2ec._0x255302);}function _0x30a09b(_0x47e57b,_0x33ebd4,_0x525988,_0x150e84){return _0xe533c6(_0x47e57b-0x19e,_0x33ebd4-0x16e,_0x47e57b,_0x150e84-_0x5d9359._0x2aeaf7);}let _0x2994fd=0x0;return{..._0x585abc,'content':_0x585abc[_0x30a09b(0x4c,0x54,_0x461d1f._0x4a60ee,_0x461d1f._0x2525a6)][_0x209075(_0x461d1f._0x304bc9,_0x461d1f._0xf0d6f5,0x197,0x1c7)](_0x301d8c=>{function _0x58f0e6(_0xfa48d7,_0x5a97f4,_0x18eb5a,_0x2e204d){return _0x30a09b(_0x18eb5a,_0xfa48d7-0x55,_0x18eb5a-_0xeabb53._0x517f58,_0x2e204d-_0xeabb53._0x198a0d);}if(_0x301d8c[_0x465b17(0x406,0x3d3,_0x2f4f2d._0x3ef08a,0x3cf)]!==_0x465b17(_0x2f4f2d._0x40e5f4,0x3f7,_0x2f4f2d._0x53bc5e,_0x2f4f2d._0x420de3))return _0x301d8c;const _0x3a337c=_0x4f6a2b[_0x2994fd];_0x2994fd+=0x1;function _0x465b17(_0x17f269,_0x460b9,_0x2f0f6c,_0x2b62ce){return _0x30a09b(_0x17f269,_0x460b9-0x374,_0x2f0f6c-_0x1e141b._0x3d93f5,_0x2b62ce-0xbb);}return structuredClone(_0x3a337c);})};}function createAssistantMessageId(_0x3d8f32,_0x97d554){return _0x3d8f32+':assistant:'+_0x97d554;}function createReasoningMessageId(_0x29c859){const _0x581492={_0x17caf4:0x1c9,_0x3e68f6:0x1d7,_0x4fca5e:0x1f4,_0x225cfe:0x23b},_0xfc8462={_0x166c72:0x17c,_0x6d9e70:0xe3};function _0x202641(_0x4fc4f6,_0x15b8ca,_0x29663a,_0x1dec72){return _0x45275b(_0x29663a-_0xfc8462._0x166c72,_0x1dec72,_0x29663a-0xca,_0x1dec72-_0xfc8462._0x6d9e70);}return _0x29c859+_0x202641(_0x581492._0x17caf4,_0x581492._0x3e68f6,_0x581492._0x4fca5e,_0x581492._0x225cfe);}function withMessageId(_0x3f6de6,_0x67320b){if(_0x3f6de6['id']===_0x67320b)return _0x3f6de6;return{..._0x3f6de6,'id':_0x67320b};}function createAssistantChunkEvent(_0x315d6d,_0x25ed3a){const _0xe5c63d={_0x1149dd:0x68,_0x41f36b:0x3a9,_0x1c8fcd:0x3f0,_0x5f083b:0x3ee,_0x720071:0x8f,_0x14419c:0x62,_0x558763:0x87,_0x1fd9e0:0x9b,_0x42b49e:0x370,_0x4f1b52:0x38a,_0x2d7259:0x3dd,_0x233eb3:0x408,_0x4759ba:0x3ee},_0x4f9eef={_0x35cc19:0x17b},_0x7cc4f7={_0x38a120:0xa7};function _0x4d547c(_0x586507,_0x124e95,_0x5b5a2d,_0x3d0b82){return _0xe533c6(_0x586507-0x9e,_0x3d0b82-_0x7cc4f7._0x38a120,_0x5b5a2d,_0x3d0b82-0xc0);}if(_0x315d6d[_0x4d547c(-0x82,-0x43,-0x59,-_0xe5c63d._0x1149dd)]!==_0x55de76(0x3aa,_0xe5c63d._0x41f36b,0x374,0x358))return void 0x0;function _0x55de76(_0x4b5807,_0x251540,_0x3d3a24,_0x1b4633){return _0xe533c6(_0x4b5807-0x13,_0x3d3a24-0x4e6,_0x251540,_0x1b4633-_0x4f9eef._0x35cc19);}if(_0x315d6d[_0x55de76(_0xe5c63d._0x1c8fcd,0x3fa,_0xe5c63d._0x5f083b,0x41a)]===void 0x0)return void 0x0;return{'type':_0x4d547c(-0xd1,-_0xe5c63d._0x720071,-_0xe5c63d._0x14419c,-_0xe5c63d._0x558763),'index':_0x315d6d[_0x4d547c(-0x5e,-_0xe5c63d._0x1fd9e0,-0x80,-0xa3)]??0x0,'messageId':_0x25ed3a,'chunk':{'type':_0x55de76(_0xe5c63d._0x42b49e,0x331,0x374,0x373),'index':_0x315d6d[_0x55de76(_0xe5c63d._0x4f1b52,_0xe5c63d._0x2d7259,0x39c,0x3b5)]??0x0,'text':_0x315d6d[_0x55de76(0x3c1,_0xe5c63d._0x233eb3,_0xe5c63d._0x4759ba,0x3ca)]}};}function createToolUseChunkEvent(_0x53f526,_0x1d6413){const _0x24c037={_0x3237c9:0x3d,_0x50bf38:0x52,_0x41ff47:0x35,_0x1ff7b3:0x44,_0x8943b1:0x351,_0xbb2fc9:0x36f,_0x115a9a:0x16,_0x2f965a:0x78,_0x50caa4:0x93,_0x38103b:0xa1,_0x3dbb3e:0xb0,_0x18b67a:0x368,_0x282ab1:0x36d,_0x26c046:0x349},_0x32cb42={_0x5e4f51:0x76},_0x5eaa8e={_0x5495fd:0x499,_0x53c58e:0x60};function _0x19c991(_0x593ee1,_0x1f66e0,_0x389a59,_0x349983){return _0xe533c6(_0x593ee1-0x90,_0x349983-_0x5eaa8e._0x5495fd,_0x593ee1,_0x349983-_0x5eaa8e._0x53c58e);}if(_0x53f526[_0x5c4db8(-_0x24c037._0x3237c9,-_0x24c037._0x50bf38,-0xf,-0x6)]!==_0x5c4db8(-_0x24c037._0x41ff47,-0x4a,-_0x24c037._0x1ff7b3,-0x4b))return void 0x0;function _0x5c4db8(_0x180a1e,_0x26d816,_0x4f9026,_0xaccdc7){return _0xe533c6(_0x180a1e-0x115,_0x180a1e-0xd2,_0x26d816,_0xaccdc7-_0x32cb42._0x5e4f51);}return{'type':'tool_use_chunk','index':_0x53f526[_0x19c991(_0x24c037._0x8943b1,0x36d,_0x24c037._0xbb2fc9,0x34f)]??0x0,'messageId':_0x1d6413,'chunk':{'type':_0x5c4db8(-_0x24c037._0x41ff47,0x17,-0x7e,_0x24c037._0x115a9a),'id':_0x53f526['id']??'','index':_0x53f526[_0x5c4db8(-_0x24c037._0x2f965a,-_0x24c037._0x50caa4,-_0x24c037._0x38103b,-_0x24c037._0x3dbb3e)]??0x0,..._0x53f526['name']!==void 0x0?{'name':_0x53f526[_0x19c991(_0x24c037._0x18b67a,_0x24c037._0x282ab1,0x377,0x386)]}:{},..._0x53f526[_0x19c991(0x338,0x378,_0x24c037._0x26c046,0x377)]!==void 0x0?{'inputDelta':_0x53f526['inputDelta']}:{}}};}function resolveReasoningEventIndex(_0x35e547){const _0x4fd61a={_0xf2358:0x2ce,_0x291668:0x2ee,_0x182a04:0x25c,_0x42e4dd:0x2bc},_0x53069b={_0x5138fb:0x2f};function _0x312506(_0x55bf12,_0x5e9ffd,_0x4110b7,_0x571d38){return _0xe533c6(_0x55bf12-0xb5,_0x571d38- -0x18f,_0x55bf12,_0x571d38-0x1a2);}function _0x5dfcd2(_0x5a4283,_0x290189,_0x5cf232,_0x24fb6b){return _0x45275b(_0x5a4283-0x28f,_0x24fb6b,_0x5cf232-0x10f,_0x24fb6b-_0x53069b._0x5138fb);}return _0x35e547['index']??_0x35e547[_0x5dfcd2(_0x4fd61a._0xf2358,0x29a,0x30a,_0x4fd61a._0x291668)]??_0x35e547['summaryIndex']??_0x35e547[_0x312506(-_0x4fd61a._0x182a04,-_0x4fd61a._0x42e4dd,-0x26c,-0x2a7)]??0x0;}function createReasoningChunkEvent(_0x1e00eb,_0x14ad37){const _0xdbd720={_0x386c6b:0x124,_0x366ea4:0x197,_0xa7d46e:0x16c,_0x3683a6:0xe4,_0x48ff5f:0xac,_0x522195:0x9e,_0x3cfe4e:0x124,_0x41a1f8:0xeb,_0x1cd738:0xe5,_0x135f0c:0x119,_0x345009:0x18b,_0x3478ed:0x123,_0x306086:0x154,_0xc88085:0x11b,_0x2de544:0xb1,_0x4e1118:0x147,_0x15293d:0x106,_0x2fd991:0x104,_0x13521b:0x127,_0x26d5bb:0x141,_0x286706:0xee,_0x98592b:0xf4,_0x17b942:0x121,_0x4e7e62:0x110,_0x32b1cc:0xfb,_0x5d27f6:0xd8,_0xa59532:0xcd,_0x53c477:0x128,_0x4986a4:0x1a5,_0x10abd3:0x163,_0x1e9b8d:0x164,_0x3282ee:0x1a9,_0x2a7db2:0x8a,_0x4368c5:0xd6},_0x434505={_0x1b1d32:0x93,_0x36c28f:0x21c,_0x20cf2d:0x169},_0x5bddab={_0x619e17:0x157};function _0x10d987(_0x3f5fba,_0x148984,_0x19b594,_0x26a746){return _0xe533c6(_0x3f5fba-_0x5bddab._0x619e17,_0x19b594-0x27b,_0x148984,_0x26a746-0x1c2);}function _0x494b5f(_0x285320,_0x1eb0de,_0x557250,_0x53461c){return _0xe533c6(_0x285320-_0x434505._0x1b1d32,_0x285320-_0x434505._0x36c28f,_0x557250,_0x53461c-_0x434505._0x20cf2d);}switch(_0x1e00eb[_0x10d987(_0xdbd720._0x386c6b,_0xdbd720._0x366ea4,_0xdbd720._0xa7d46e,0x14f)]){case _0x494b5f(_0xdbd720._0x3683a6,_0xdbd720._0x48ff5f,0xe8,_0xdbd720._0x522195):return{'type':_0x10d987(_0xdbd720._0x3cfe4e,0x11e,0x112,_0xdbd720._0x41a1f8),'index':resolveReasoningEventIndex(_0x1e00eb),'messageId':_0x14ad37,'chunk':{'type':'anthropic_thinking_delta','index':_0x1e00eb[_0x10d987(0x103,0x103,0x131,_0xdbd720._0x1cd738)]??0x0,'thinking':_0x1e00eb[_0x494b5f(0xe0,_0xdbd720._0x135f0c,0x93,0xd6)]??''},'text':_0x1e00eb[_0x10d987(0xfe,_0xdbd720._0x345009,0x13f,_0xdbd720._0x3478ed)]??''};case _0x10d987(_0xdbd720._0x306086,0x13e,0x110,0xfa):return{'type':_0x10d987(_0xdbd720._0xc88085,0xe4,0x112,0x138),'index':resolveReasoningEventIndex(_0x1e00eb),'messageId':_0x14ad37,'chunk':{'type':_0x494b5f(_0xdbd720._0x2de544,0x9a,0xaa,0x6a),'contentIndex':_0x1e00eb['contentIndex']??0x0,'delta':_0x1e00eb[_0x10d987(_0xdbd720._0x4e1118,0x130,0x10c,0x143)]??'','itemId':_0x1e00eb[_0x494b5f(_0xdbd720._0x15293d,0xe1,0x139,0x127)]??'','outputIndex':_0x1e00eb[_0x494b5f(_0xdbd720._0x2fd991,_0xdbd720._0x13521b,_0xdbd720._0x26d5bb,0x13c)]??0x0},'text':_0x1e00eb[_0x494b5f(0xad,0x94,_0xdbd720._0x286706,0x79)]??''};case _0x10d987(_0xdbd720._0x98592b,0x150,0x138,_0xdbd720._0x17b942):return{'type':_0x10d987(_0xdbd720._0x4e7e62,_0xdbd720._0x32b1cc,0x112,0xfd),'index':resolveReasoningEventIndex(_0x1e00eb),'messageId':_0x14ad37,'chunk':{'type':'openai_reasoning_summary_delta','delta':_0x1e00eb[_0x494b5f(0xad,0xf8,_0xdbd720._0x5d27f6,_0xdbd720._0x522195)]??'','itemId':_0x1e00eb[_0x494b5f(0x106,_0xdbd720._0xa59532,_0xdbd720._0x53c477,0xe0)]??'','outputIndex':_0x1e00eb['outputIndex']??0x0,'summaryIndex':_0x1e00eb[_0x10d987(_0xdbd720._0x4986a4,_0xdbd720._0x10abd3,_0xdbd720._0x1e9b8d,_0xdbd720._0x3282ee)]??0x0},'text':_0x1e00eb[_0x494b5f(0xad,_0xdbd720._0x2a7db2,0xa8,_0xdbd720._0x4368c5)]??''};default:return void 0x0;}}function isAbortedToolResult(_0xa31981){const _0x57c68b={_0x260b29:0x383,_0x125401:0x3b6,_0x85eb7a:0x3ac,_0x56d653:0x3cc},_0x579248={_0x294a4a:0x325,_0x33c5be:0x66},_0x4d6254={_0x3085f0:0x182,_0x323289:0x4db,_0x464e2d:0xe7};function _0x60e304(_0x3ec145,_0x32ffac,_0x4e655a,_0x209cfc){return _0xe533c6(_0x3ec145-_0x4d6254._0x3085f0,_0x209cfc-_0x4d6254._0x323289,_0x32ffac,_0x209cfc-_0x4d6254._0x464e2d);}function _0x14186f(_0x5dfbe9,_0x272401,_0x2984fb,_0x32db01){return _0x45275b(_0x2984fb-_0x579248._0x294a4a,_0x32db01,_0x2984fb-0x1be,_0x32db01-_0x579248._0x33c5be);}return _0xa31981[_0x60e304(_0x57c68b._0x260b29,0x37e,_0x57c68b._0x125401,0x3b1)]==='error'&&_0xa31981['structured'][_0x14186f(_0x57c68b._0x85eb7a,0x3a9,_0x57c68b._0x56d653,0x3d7)]===!![];}async function executeModelRequest(_0x4426a6,_0x3da4c6,_0x2f5d1e,_0x8854c6,_0x3ca43c){const _0x1b249b={_0x2555be:0x1ac,_0x3245c8:0x16d,_0x107537:0x178,_0x2e6506:0x1c2,_0x1a50e7:0x13e,_0x45ebc4:0x154,_0x3b3770:0x123,_0x4e2432:0x103,_0x1ba4e1:0x182,_0x2c73e8:0x1ad,_0x5b2c5b:0x137,_0x2e4b93:0x475,_0x2e92b8:0x464,_0x5d943e:0x42c,_0x3f3790:0x3f6,_0x3c14b7:0x443,_0x38ae62:0x431,_0x2393ff:0x401,_0x4c8488:0x16b,_0x28da0b:0x430,_0x9dfd0b:0x389,_0xb96599:0x3d2,_0x22250a:0x3c0,_0x4fefe5:0x1c6,_0x4714a2:0x194,_0x2a4833:0x406,_0x8aca27:0x422,_0x9bc1ef:0x43d,_0x4b608b:0x13c,_0x20f786:0x139,_0x1b6ddf:0xf5,_0x1d5c04:0x13d,_0x1d58fa:0x421,_0x2ef992:0x40e,_0x326c09:0x3bf,_0x31fd65:0x45f,_0x20ca82:0x3d7,_0x421219:0x462,_0xec317c:0x1aa,_0x4c8f6b:0x1b3,_0x53cc94:0x1af,_0x511a11:0x414,_0x50c011:0x449,_0x34171:0x484,_0x4b76b2:0x16e,_0x34e42e:0x143,_0x6a08a5:0x141},_0x274b5e={_0x2ab469:0x13b};throwIfAborted(_0x3da4c6[_0x2a6f35(-_0x1b249b._0x2555be,-_0x1b249b._0x3245c8,-_0x1b249b._0x107537,-_0x1b249b._0x2e6506)]);if(!_0x3da4c6[_0x2a6f35(-_0x1b249b._0x1a50e7,-_0x1b249b._0x45ebc4,-_0x1b249b._0x3b3770,-_0x1b249b._0x4e2432)]||!_0x2f5d1e[_0x2a6f35(-0x160,-_0x1b249b._0x1ba4e1,-_0x1b249b._0x2c73e8,-_0x1b249b._0x5b2c5b)][_0x52efc0(_0x1b249b._0x2e4b93,_0x1b249b._0x2e92b8,0x448,_0x1b249b._0x5d943e)])return await _0x2f5d1e[_0x52efc0(_0x1b249b._0x3f3790,_0x1b249b._0x3c14b7,0x40c,_0x1b249b._0x38ae62)][_0x52efc0(0x42b,0x448,0x405,_0x1b249b._0x2393ff)](_0x4426a6,{'signal':_0x3da4c6[_0x2a6f35(-0x1ac,-0x1ba,-0x190,-_0x1b249b._0x4c8488)]});function _0x2a6f35(_0x29738e,_0x2bd74d,_0x31d64f,_0xfcd286){return _0x45275b(_0x29738e- -0x1e4,_0x31d64f,_0x31d64f-0x4f,_0xfcd286-_0x274b5e._0x2ab469);}let _0x345d89;for await(const _0x54d46b of _0x2f5d1e['chatModel'][_0x52efc0(0x40c,0x447,0x448,_0x1b249b._0x28da0b)](_0x4426a6,{'signal':_0x3da4c6[_0x52efc0(_0x1b249b._0x9dfd0b,_0x1b249b._0xb96599,_0x1b249b._0x22250a,0x3ee)]})){throwIfAborted(_0x3da4c6[_0x2a6f35(-0x1ac,-0x189,-_0x1b249b._0x4fefe5,-_0x1b249b._0x4714a2)]);if(_0x54d46b[_0x52efc0(0x435,_0x1b249b._0x2a4833,_0x1b249b._0x8aca27,_0x1b249b._0x9bc1ef)]===_0x2a6f35(-_0x1b249b._0x4b608b,-_0x1b249b._0x20f786,-_0x1b249b._0x1b6ddf,-_0x1b249b._0x1d5c04)){_0x345d89=_0x54d46b[_0x52efc0(_0x1b249b._0x8aca27,_0x1b249b._0x1d58fa,0x3d8,_0x1b249b._0x2ef992)];continue;}const _0x1d88f3=createReasoningChunkEvent(_0x54d46b,_0x3ca43c[_0x52efc0(0x414,0x3ac,0x3cf,_0x1b249b._0x326c09)]);if(_0x1d88f3&&_0x1d88f3[_0x52efc0(_0x1b249b._0x31fd65,_0x1b249b._0x20ca82,0x422,_0x1b249b._0x421219)]===_0x2a6f35(-0x1a4,-_0x1b249b._0xec317c,-0x1f1,-0x1d6)&&_0x1d88f3['text']['length']>0x0){await emitEvent2(_0x2f5d1e[_0x2a6f35(-_0x1b249b._0x4c8f6b,-_0x1b249b._0x53cc94,-0x1a2,-0x1d2)],_0x1d88f3,_0x8854c6);continue;}const _0x1c2c08=createAssistantChunkEvent(_0x54d46b,_0x3ca43c[_0x52efc0(_0x1b249b._0x511a11,0x42e,_0x1b249b._0x50c011,_0x1b249b._0x34171)]);if(_0x1c2c08){await emitEvent2(_0x2f5d1e['onEvent'],_0x1c2c08,_0x8854c6);continue;}const _0x4ce9a6=createToolUseChunkEvent(_0x54d46b,_0x3ca43c['assistantMessageId']);_0x4ce9a6&&await emitEvent2(_0x2f5d1e['onEvent'],_0x4ce9a6,_0x8854c6);}function _0x52efc0(_0x1e2877,_0x4a4054,_0x3aff57,_0x24fd3c){return _0xe533c6(_0x1e2877-0x1e1,_0x3aff57-0x531,_0x4a4054,_0x24fd3c-0x166);}if(!_0x345d89)throw new Error(_0x2a6f35(-_0x1b249b._0x4b76b2,-_0x1b249b._0x34e42e,-_0x1b249b._0x6a08a5,-0x13e));return _0x345d89;}function makeTurnGuards(_0xf7e2e6,_0x1ffd33,_0x57a86a,_0x2e6658,_0x51530b){return{async 'stage'(_0x2894c4,_0xcff0a5){return throwIfAborted(_0xf7e2e6),await runStage(_0x1ffd33,_0x2894c4,_0xcff0a5,_0x2e6658);},async 'emit'(_0x361ed3){throwIfAborted(_0xf7e2e6),await emitEvent2(_0x57a86a,_0x361ed3,_0x51530b);},async 'stageUnchecked'(_0x1d93d4,_0x458943){return await runStage(_0x1ffd33,_0x1d93d4,_0x458943,_0x2e6658);},async 'emitUnchecked'(_0x47dc09){await emitEvent2(_0x57a86a,_0x47dc09,_0x51530b);}};}async function runTurn(_0x6d0d91,_0x47baaf){const _0x442e21={_0x371b50:0x1a1,_0x52706b:0x220,_0x4a8035:0x21e,_0x41074d:0x227,_0x2f7d32:0x1dc,_0x37a7f9:0x21e,_0x308ee5:0x1ea,_0x56753f:0x266,_0x2faf0e:0x24b,_0x33b228:0x1d4,_0x446524:0x1bd,_0x338822:0x1b5,_0x1b976b:0x254,_0x190c16:0x235,_0x4a05d6:0x1d6,_0x584d72:0x1e5,_0x58c555:0x19d,_0x1dd8c8:0x231,_0x585cf2:0x1c2,_0x288ef4:0x233,_0x279918:0x265,_0x5a1d3e:0x26a,_0x3b1d9b:0x23f,_0x31bf84:0x250,_0x2bab58:0x26f,_0x39ce21:0x239,_0x136e90:0x251,_0x3a8755:0x1e0,_0xf7b747:0x1ff,_0x2b2db0:0x1f0,_0x328614:0x211,_0x4aa888:0x275,_0x3849cc:0x2b3,_0x5d104d:0x1c8,_0x169396:0x18f,_0x2ebb03:0x1d2,_0x4d9741:0x1b1,_0x413454:0x1a3,_0x4707cc:0x1fb,_0x1709b8:0x1dd,_0x219a35:0x200,_0x225678:0x23c,_0x7261a3:0x1fa,_0x50214b:0x236,_0x5d2aae:0x217,_0x3da0e3:0x28c,_0x4567dd:0x20c,_0x21c6ca:0x1b9,_0x512a49:0x216,_0x1f6f42:0x205,_0xf9348e:0x218,_0x2448af:0x24e,_0x5f12a3:0x1df,_0x2b668a:0x1e3,_0x2a3969:0x1a6,_0x3c11ee:0x1f7,_0xfe0509:0x197,_0x43b53f:0x1bd,_0x4fac8c:0x1df,_0x24cf71:0x1a5,_0x41fe2c:0x20c,_0x472a7b:0x17c,_0x27ed5f:0x16a,_0x392442:0x221,_0x50d454:0x27c,_0x39be58:0x2a5,_0x4aa0aa:0x206,_0x4b00bc:0x1d8,_0x5c1f66:0x1cd,_0x3f037d:0x1f5,_0x1dbdc7:0x1f1,_0x40e260:0x237,_0x5123be:0x29d,_0x5f1d47:0x26d,_0x1e8baf:0x261,_0x8d31c0:0x282,_0x212c86:0x2af,_0x31446f:0x2cc,_0x622503:0x23b,_0x343ca9:0x176,_0x2e4da8:0x19f,_0x349377:0x218,_0x361c1f:0x27b,_0x106b69:0x2b4,_0xcaa539:0x264,_0x2c84a3:0x256,_0x4e0dbd:0x203,_0x423870:0x213,_0x376bf2:0x270,_0x3c9760:0x252},_0x46156d={_0x48d3e3:0x15,_0x337f1c:0x315},_0x2313d8=_0x6d0d91['signal']??new AbortController()[_0x91a44c(0x183,_0x442e21._0x371b50,0x1e9,0x1a4)];function _0x3e12c9(_0x31608d,_0x2b7b25,_0x17e62a,_0x1b8991){return _0x45275b(_0x31608d-0x1c0,_0x1b8991,_0x17e62a-0x60,_0x1b8991-0x1d3);}const _0x1824ae={'sessionId':_0x6d0d91[_0x3e12c9(_0x442e21._0x52706b,_0x442e21._0x4a8035,_0x442e21._0x41074d,_0x442e21._0x2f7d32)],'turnId':_0x6d0d91[_0x3e12c9(0x254,0x209,0x292,0x284)],'system':normalizeSystem(_0x6d0d91[_0x91a44c(_0x442e21._0x37a7f9,_0x442e21._0x308ee5,0x21b,0x1d3)]),'messages':(_0x6d0d91[_0x3e12c9(0x233,_0x442e21._0x56753f,_0x442e21._0x2faf0e,0x27e)]??[])[_0x91a44c(0x163,_0x442e21._0x33b228,0x161,0x19f)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0},_0x1b9381=makeExtensionContext(_0x1824ae),_0x4649f8={'sessionId':_0x1824ae[_0x91a44c(_0x442e21._0x446524,_0x442e21._0x338822,0x18b,0x1cc)],'turnId':_0x1824ae[_0x3e12c9(_0x442e21._0x1b976b,0x271,0x20c,_0x442e21._0x190c16)],'state':_0x1824ae,'signal':_0x2313d8};function _0x91a44c(_0x1961d4,_0x278d60,_0x56dc0c,_0xb5becc){return _0xe533c6(_0x1961d4-_0x46156d._0x48d3e3,_0xb5becc-_0x46156d._0x337f1c,_0x1961d4,_0xb5becc-0x1e1);}const {stage:_0x1072d4,emit:_0x278905,stageUnchecked:_0x492550,emitUnchecked:_0x573c33}=makeTurnGuards(_0x2313d8,_0x47baaf[_0x91a44c(0x1da,0x201,0x1dd,_0x442e21._0x4a05d6)],_0x47baaf[_0x91a44c(_0x442e21._0x584d72,_0x442e21._0x58c555,0x1b0,0x19d)],_0x1b9381,_0x4649f8);let _0x1990a7=0x0;try{const _0x4a6354=await _0x1072d4(_0x91a44c(_0x442e21._0x1dd8c8,_0x442e21._0x585cf2,0x229,0x1f8),normalizeMessage(_0x6d0d91['message']));_0x1824ae[_0x3e12c9(_0x442e21._0x288ef4,_0x442e21._0x279918,_0x442e21._0x5a1d3e,_0x442e21._0x3b1d9b)][_0x3e12c9(_0x442e21._0x31bf84,0x206,0x24a,_0x442e21._0x2bab58)](_0x4a6354),await _0x278905({'type':_0x3e12c9(_0x442e21._0x39ce21,_0x442e21._0x136e90,0x254,0x23d),'message':_0x4a6354});while(!![]){throwIfAborted(_0x2313d8),_0x1990a7+=0x1;const _0x1ff4a6=createAssistantMessageId(_0x1824ae['turnId'],_0x1990a7),_0x271384=createReasoningMessageId(_0x1ff4a6);let _0x2fdd6f={'model':_0x47baaf[_0x91a44c(_0x442e21._0x3a8755,0x1ca,_0x442e21._0xf7b747,_0x442e21._0x2b2db0)]['model'],'maxTokens':_0x47baaf[_0x91a44c(_0x442e21._0x328614,_0x442e21._0x308ee5,0x1e6,_0x442e21._0x2b2db0)][_0x3e12c9(_0x442e21._0x4aa888,_0x442e21._0x31bf84,0x2aa,_0x442e21._0x3849cc)]??0x4000,'system':structuredClone(_0x1824ae['system']),'messages':structuredClone(_0x1824ae[_0x91a44c(_0x442e21._0x5d104d,0x20d,0x1f1,0x1df)]),'tools':_0x47baaf['toolRuntime'][_0x91a44c(_0x442e21._0x169396,_0x442e21._0x2ebb03,0x1bb,_0x442e21._0x4d9741)](),'metadata':{'sessionId':_0x1824ae[_0x91a44c(0x1f3,_0x442e21._0x413454,_0x442e21._0x4707cc,0x1cc)],'turnId':_0x1824ae[_0x91a44c(_0x442e21._0x1709b8,0x1dc,0x249,_0x442e21._0x219a35)]}};_0x2fdd6f=await _0x1072d4(_0x91a44c(_0x442e21._0x225678,0x216,0x1d4,_0x442e21._0x7261a3),_0x2fdd6f),await _0x278905({'type':_0x3e12c9(0x24b,0x24c,_0x442e21._0x50214b,0x258),'request':_0x2fdd6f});let _0x2939ee=await executeModelRequest(_0x2fdd6f,_0x6d0d91,_0x47baaf,_0x4649f8,{'assistantMessageId':_0x1ff4a6,'reasoningMessageId':_0x271384});_0x2939ee=await _0x1072d4(_0x3e12c9(0x240,_0x442e21._0x5d2aae,_0x442e21._0x3da0e3,0x1f8),_0x2939ee),await _0x278905({'type':'model_response','response':_0x2939ee}),_0x1824ae[_0x91a44c(0x21e,0x216,0x214,_0x442e21._0x4567dd)]=_0x2939ee;let _0x3089d3=await _0x1072d4(_0x3e12c9(0x1f4,0x23a,_0x442e21._0x21c6ca,0x1cf),withMessageId(responseToAssistantMessage(_0x2939ee),_0x1ff4a6));_0x3089d3=withMessageId(_0x3089d3,_0x1ff4a6);const _0x57dd2e=getToolUseBlocks(_0x3089d3),_0x2909c8=await Promise['all'](_0x57dd2e[_0x3e12c9(0x1f3,_0x442e21._0x512a49,0x1bd,_0x442e21._0x1f6f42)](_0x36fd2a=>_0x1072d4(_0x3e12c9(0x273,0x289,0x263,0x2b0),_0x36fd2a)));_0x2909c8[_0x3e12c9(0x1f9,0x205,0x222,0x215)]>0x0&&(_0x3089d3=replaceToolUseBlocks(_0x3089d3,_0x2909c8));const _0x45a61a=withMessageId(_0x3089d3,_0x1ff4a6);_0x3089d3=_0x45a61a;const _0x1dacf5=createReasoningMessage(_0x3089d3),_0x666d55=createAssistantTextMessage(_0x3089d3),_0x491f3d=createToolUseMessage(_0x3089d3);_0x1dacf5&&await _0x278905({'type':_0x91a44c(_0x442e21._0x33b228,_0x442e21._0xf9348e,_0x442e21._0x2448af,_0x442e21._0x328614),'message':withMessageId(_0x1dacf5,_0x271384)});_0x666d55&&await _0x278905({'type':'assistant_message','message':withMessageId(_0x666d55,_0x1ff4a6)});_0x491f3d&&await _0x278905({'type':_0x3e12c9(0x241,0x22c,0x247,0x264),'message':withMessageId(_0x491f3d,_0x1ff4a6)});_0x1824ae['messages']['push'](_0x45a61a);for(const _0x4f4e0e of _0x2909c8){await _0x278905({'type':_0x91a44c(0x20a,_0x442e21._0x585cf2,0x1aa,0x1be),'toolCall':_0x4f4e0e});}if(_0x2909c8['length']===0x0){const _0x177b1d=await _0x1072d4('beforeFinalOutput',_0x3089d3),_0x2807bc=withMessageId(_0x177b1d,_0x1ff4a6);return _0x1824ae[_0x91a44c(0x1bc,0x1d2,_0x442e21._0x5f12a3,0x1f9)]=_0x2807bc,_0x1824ae[_0x91a44c(_0x442e21._0x2b668a,_0x442e21._0x2a3969,_0x442e21._0x3c11ee,0x1df)][_0x1824ae[_0x91a44c(_0x442e21._0xfe0509,0x194,_0x442e21._0x43b53f,_0x442e21._0x4fac8c)][_0x91a44c(0x190,0x18c,0x1ef,_0x442e21._0x24cf71)]-0x1]=_0x2807bc,await _0x278905({'type':_0x91a44c(_0x442e21._0x41fe2c,_0x442e21._0x5f12a3,0x194,0x1c6),'message':_0x2807bc}),throwIfAborted(_0x2313d8),await _0x47baaf['registry']['runObservers'](_0x91a44c(_0x442e21._0x472a7b,_0x442e21._0x27ed5f,_0x442e21._0x1709b8,0x1ae),_0x1824ae,_0x1b9381),await _0x278905({'type':_0x3e12c9(0x26c,_0x442e21._0x392442,_0x442e21._0x50d454,_0x442e21._0x39be58),'state':_0x1824ae}),{'status':_0x3e12c9(_0x442e21._0x4aa0aa,_0x442e21._0x4b00bc,_0x442e21._0x4567dd,_0x442e21._0x5c1f66),'finalMessage':_0x2807bc,'state':_0x1824ae};}let _0x3240d1=await _0x47baaf[_0x3e12c9(_0x442e21._0x3f037d,0x210,_0x442e21._0x1f6f42,_0x442e21._0x1dbdc7)][_0x3e12c9(0x25f,0x23f,_0x442e21._0x40e260,_0x442e21._0x5123be)](_0x2909c8,_0x4649f8);const _0x5abea3=_0x3240d1[_0x3e12c9(_0x442e21._0x5f1d47,_0x442e21._0x1e8baf,_0x442e21._0x31bf84,0x296)](isAbortedToolResult),_0xefcafc=_0x5abea3?_0x492550:_0x1072d4,_0x571c34=_0x5abea3?_0x573c33:_0x278905;_0x3240d1=await Promise[_0x3e12c9(_0x442e21._0x8d31c0,_0x442e21._0x212c86,_0x442e21._0x31446f,_0x442e21._0x622503)](_0x3240d1[_0x91a44c(0x176,0x1df,_0x442e21._0x343ca9,_0x442e21._0x2e4da8)](_0x2eb448=>_0xefcafc(_0x91a44c(0x205,0x1e8,0x23b,0x224),_0x2eb448))),_0x1824ae['toolResults']['push'](..._0x3240d1);for(const _0xe05268 of _0x3240d1){await _0x571c34({'type':'tool_result','result':_0xe05268});}const _0x16a6ce=await _0xefcafc(_0x3e12c9(_0x442e21._0x349377,0x23b,0x1f5,0x1cd),createToolResultUserMessage(_0x3240d1));await _0x571c34({'type':_0x3e12c9(_0x442e21._0x361c1f,_0x442e21._0x106b69,_0x442e21._0xcaa539,0x239),'message':_0x16a6ce}),_0x1824ae['messages']['push'](_0x16a6ce);if(_0x5abea3)return{'status':_0x91a44c(0x24a,_0x442e21._0x2c84a3,_0x442e21._0x4e0dbd,_0x442e21._0x423870),'state':_0x1824ae};}}catch(_0x422d37){if(!_0x2313d8[_0x3e12c9(0x267,0x2a3,_0x442e21._0x376bf2,_0x442e21._0x3c9760)])throw _0x422d37;return{'status':'aborted','state':_0x1824ae};}}function createSessionId(){const _0x96f931={_0x278250:0xba,_0x5c4ccf:0x90,_0x599c4d:0x473,_0x1e6bf8:0x411},_0xab390f={_0x30ea11:0x90,_0x32a715:0x211,_0x568c74:0x1ac},_0x3be158={_0x364dc2:0xf};function _0x2ea5a8(_0x2e4340,_0x5e8311,_0x41963c,_0x10c5d0){return _0xe533c6(_0x2e4340-_0x3be158._0x364dc2,_0x41963c-0x589,_0x10c5d0,_0x10c5d0-0xd0);}function _0x2ba742(_0x4fe33f,_0x1df163,_0x3e7538,_0x10ebd1){return _0xe533c6(_0x4fe33f-_0xab390f._0x30ea11,_0x4fe33f-_0xab390f._0x32a715,_0x10ebd1,_0x10ebd1-_0xab390f._0x568c74);}return _0x2ba742(0xbc,_0x96f931._0x278250,0xa7,_0x96f931._0x5c4ccf)+Date[_0x2ea5a8(0x3f8,_0x96f931._0x599c4d,0x42c,0x464)]()+'-'+Math['random']()['toString'](0x10)[_0x2ea5a8(_0x96f931._0x1e6bf8,0x418,0x449,0x465)](0x2,0xa);}function _0xe533c6(_0x4b5d8c,_0x453eea,_0x3644b2,_0x296d85){const _0x485c58={_0xe8614f:0x1e3};return _0x5446(_0x453eea- -_0x485c58._0xe8614f,_0x3644b2);}function createTurnId(_0x1cbd94){const _0x4482df={_0x35e25d:0xac};function _0x2bef1d(_0x2f5010,_0x54b49a,_0x2811aa,_0x570ffa){return _0x45275b(_0x2811aa- -0xdd,_0x2f5010,_0x2811aa-0x192,_0x570ffa-0x1e7);}return _0x2bef1d(-0x2e,-_0x4482df._0x35e25d,-0x6e,-0xb7)+_0x1cbd94;}function createDefaultMessage(_0x39d798){if(_0x39d798===void 0x0)return void 0x0;return normalizeUserInput(_0x39d798);}function normalizeUserInput(_0x2d12bf){const _0x31bd22={_0x2840d3:0x407,_0xa91395:0x431,_0x2b23c3:0x36d,_0x366403:0x333,_0x4b06d3:0x2fb,_0x1ae66a:0x30e},_0x2343e9={_0x30f4f6:0x176,_0x5b2d37:0x42b,_0x5ec904:0x1e4},_0x437487={_0x138b70:0x165};function _0x53cda8(_0x591a1e,_0x20aed0,_0x4f7f57,_0x39548d){return _0x45275b(_0x20aed0-0x343,_0x591a1e,_0x4f7f57-_0x437487._0x138b70,_0x39548d-0x114);}function _0x3b296d(_0x520532,_0x5e771b,_0x101e0e,_0x43d554){return _0xe533c6(_0x520532-_0x2343e9._0x30f4f6,_0x5e771b-_0x2343e9._0x5b2d37,_0x43d554,_0x43d554-_0x2343e9._0x5ec904);}if(typeof _0x2d12bf===_0x53cda8(0x410,_0x31bd22._0x2840d3,_0x31bd22._0xa91395,0x40e))return{'role':_0x3b296d(0x31c,0x2e5,0x30e,0x2ae),'content':[{'type':_0x3b296d(_0x31bd22._0x2b23c3,_0x31bd22._0x366403,_0x31bd22._0x4b06d3,_0x31bd22._0x1ae66a),'text':_0x2d12bf}]};return normalizeMessage(_0x2d12bf);}function resolveChatModel(_0x3705d9){const _0x2970b7={_0x453f8b:0x163};if(!_0x3705d9['chatModel'])throw new Error(_0x488b91(-0x38,-0x41,0x10,-0x2a));function _0x488b91(_0x5f465f,_0xa44b9c,_0x2fce9c,_0x5f209a){return _0x45275b(_0x5f209a- -0xa4,_0xa44b9c,_0x2fce9c-0x113,_0x5f209a-_0x2970b7._0x453f8b);}return _0x3705d9['chatModel'];}function createRegistry(_0x5273d9){const _0x232919={_0x4d05dc:0x89,_0x497ba8:0x37,_0x5cc244:0x35,_0x3c9817:0x31},_0x4745f2={_0x4b967c:0x7a},_0x57096c={_0x59e023:0xb4,_0x253e49:0x11b};function _0x38e842(_0x4eaa4c,_0x17f0dc,_0x50a161,_0x212668){return _0x45275b(_0x50a161- -_0x57096c._0x59e023,_0x212668,_0x50a161-0x81,_0x212668-_0x57096c._0x253e49);}if(_0x5273d9[_0x38e842(-0x46,-_0x232919._0x4d05dc,-0x4a,-_0x232919._0x497ba8)])return _0x5273d9['registry'];const _0x4c70d3=createExtensionRegistry();function _0xaef118(_0x5a7e23,_0x11c633,_0x53172f,_0x325eb0){return _0xe533c6(_0x5a7e23-0x1bd,_0x325eb0-0x151,_0x53172f,_0x325eb0-_0x4745f2._0x4b967c);}const _0x253d38=_0x5273d9[_0xaef118(_0x232919._0x5cc244,0x40,0x36,0x3f)]??[];for(const _0x21d8fc of _0x253d38){_0x4c70d3[_0xaef118(0x71,0x70,0x8,_0x232919._0x3c9817)](_0x21d8fc);}return _0x4c70d3;}var Agent=class{['_systemPrompt'];[_0x45275b(0xae,0xb1,0x86,0x83)];[_0xe533c6(-0x14d,-0x149,-0x124,-0x100)];['messages'];[_0xe533c6(-0x111,-0x14d,-0x103,-0x182)];[_0xe533c6(-0x152,-0x15a,-0x143,-0x10d)];constructor(_0x166053={}){const _0x4d79a3={_0xd68a55:0xbb,_0x1596b2:0x8f,_0xf3ee2e:0x145,_0x77b2d8:0x152,_0xecb4c4:0x104,_0x4836df:0xce,_0x3c7fb7:0xaa,_0x5c52ae:0x105,_0x49ea01:0x10b,_0x556c86:0xd3,_0x36d99a:0x6e,_0x23ef53:0xb7,_0xfc4f26:0xfc,_0x1c35cb:0x9c,_0x1caa1a:0x11b,_0x47989e:0x167,_0xd7f96:0x158,_0x3035e4:0x154,_0x526e4e:0x12f,_0x49fe7e:0x161,_0x399408:0xff,_0x51936c:0x111},_0x525b97={_0x541870:0x1e5,_0x141a18:0x14c};this['sessionId']=_0x166053[_0x319fc5(0xf5,_0x4d79a3._0xd68a55,0xde,0x9e)]??createSessionId();function _0x367a66(_0x1a041c,_0x2eb50f,_0x1de7b7,_0x40535b){return _0x45275b(_0x40535b- -0x18f,_0x1a041c,_0x1de7b7-_0x525b97._0x541870,_0x40535b-_0x525b97._0x141a18);}this[_0x319fc5(_0x4d79a3._0x1596b2,0xaa,0xbf,0x70)]=0x0;function _0x319fc5(_0x3cd24f,_0x1e18ac,_0x16b966,_0x3dcd63){return _0xe533c6(_0x3cd24f-0x105,_0x1e18ac-0x204,_0x3dcd63,_0x3dcd63-0x185);}this[_0x319fc5(_0x4d79a3._0xf3ee2e,0x114,_0x4d79a3._0x77b2d8,0xe4)]=_0x166053[_0x367a66(-_0x4d79a3._0xecb4c4,-0x15d,-0x14e,-0x111)]??'',this[_0x319fc5(0x8e,_0x4d79a3._0x4836df,0xdb,_0x4d79a3._0x3c7fb7)]=(_0x166053[_0x367a66(-_0x4d79a3._0x5c52ae,-_0x4d79a3._0x49ea01,-_0x4d79a3._0x556c86,-0x11c)]??[])['map'](normalizeMessage),this[_0x319fc5(_0x4d79a3._0x36d99a,_0x4d79a3._0x23ef53,_0x4d79a3._0xfc4f26,_0x4d79a3._0x1c35cb)]=createDefaultMessage(_0x166053[_0x319fc5(0xc0,0xe0,0x99,0x10b)]);const _0x2e7e1a=createInternalToolRuntime(_0x166053[_0x319fc5(0x99,0xdd,0x92,_0x4d79a3._0x1caa1a)]??[],{'onEvent':_0x166053[_0x367a66(-_0x4d79a3._0x47989e,-_0x4d79a3._0xd7f96,-_0x4d79a3._0x3035e4,-0x15e)],'onToolCall':_0x166053[_0x367a66(-_0x4d79a3._0x526e4e,-0x181,-0x12f,-_0x4d79a3._0x49fe7e)]});this[_0x367a66(-_0x4d79a3._0x399408,-_0x4d79a3._0x51936c,-0xfd,-0xe1)]={'registry':createRegistry(_0x166053),'chatModel':resolveChatModel(_0x166053),'toolRuntime':_0x2e7e1a,'onEvent':_0x166053['onEvent']};}get[_0x45275b(0x7e,0xbb,0xa6,0x42)](){const _0x3189d7={_0x71b7ea:0x1d8,_0x471e5a:0x1c6};function _0x101a08(_0x150675,_0x32f21f,_0x548479,_0x2402dd){return _0x45275b(_0x548479- -0x27f,_0x2402dd,_0x548479-0x28,_0x2402dd-0xf);}return this[_0x101a08(-_0x3189d7._0x71b7ea,-0x186,-_0x3189d7._0x471e5a,-0x1c5)];}[_0x45275b(0xb0,0x8b,0xb6,0xa5)](_0x223a5e=[]){const _0x5409f2={_0x9823d5:0xc4,_0x59d2ec:0xe7,_0x460909:0xac,_0x4ca416:0x116,_0x2ca0ef:0x104},_0x2a393b={_0x2b4dd1:0x1d7},_0x894397={_0x4d94a0:0x2f};function _0x5692c0(_0x335a40,_0x414f8c,_0x29a5d8,_0x39f9e5){return _0x45275b(_0x335a40- -0x8f,_0x414f8c,_0x29a5d8-_0x894397._0x4d94a0,_0x39f9e5-0x1c8);}function _0x347b13(_0x2bc769,_0x109a15,_0x2d5f09,_0x25a939){return _0x45275b(_0x109a15- -0x195,_0x25a939,_0x2d5f09-_0x2a393b._0x2b4dd1,_0x25a939-0x28);}this[_0x347b13(-_0x5409f2._0x9823d5,-_0x5409f2._0x59d2ec,-0xb9,-_0x5409f2._0x460909)][_0x347b13(-0x154,-0x160,-0x16d,-_0x5409f2._0x4ca416)][_0x347b13(-0xb4,-0xe5,-0xb4,-_0x5409f2._0x2ca0ef)](_0x223a5e);}[_0x45275b(0x2c,0x16,0x1c,0x6f)](_0x4ba6bf,_0x1ede7a={}){const _0x54d545={_0x1f44d7:0x172,_0x787276:0x18b,_0x4155d2:0x281,_0x1a66c3:0x24d,_0x3067c3:0x263,_0x1afc3b:0xe9,_0x48cac6:0x16d,_0x12501c:0x108,_0x2abd18:0xed},_0x26c67c={_0x3d6695:0xb9},_0x293b3f={_0x20d22e:0x1b4,_0x43779a:0x51,_0x29889e:0x2c};this[_0x1e8270(_0x54d545._0x1f44d7,0x127,_0x54d545._0x787276,0x1ad)]=_0x4ba6bf;function _0x3dd512(_0x1b92ee,_0x29c12b,_0x218004,_0x32d8a8){return _0x45275b(_0x32d8a8-_0x293b3f._0x20d22e,_0x1b92ee,_0x218004-_0x293b3f._0x43779a,_0x32d8a8-_0x293b3f._0x29889e);}function _0x1e8270(_0x524edd,_0xea9755,_0x1d83fd,_0x3c5ff4){return _0x45275b(_0x524edd-_0x26c67c._0x3d6695,_0x3c5ff4,_0x1d83fd-0x192,_0x3c5ff4-0xd7);}_0x1ede7a[_0x3dd512(0x22a,_0x54d545._0x4155d2,_0x54d545._0x1a66c3,_0x54d545._0x3067c3)]===!![]&&(this[_0x1e8270(0x12c,_0x54d545._0x1afc3b,_0x54d545._0x48cac6,0xfe)]=[],this[_0x1e8270(_0x54d545._0x12501c,0xf7,_0x54d545._0x2abd18,0xe8)]=0x0);}[_0xe533c6(-0xfd,-0xfe,-0x12e,-0xdf)](_0x96949a){const _0x2c5956={_0x1869fb:0x124},_0x2e1220={_0x1b77e0:0x103};function _0x544204(_0x51f826,_0x17a053,_0x36237d,_0xc73eb9){return _0x45275b(_0xc73eb9- -0x152,_0x36237d,_0x36237d-0x16,_0xc73eb9-_0x2e1220._0x1b77e0);}this[_0x544204(-_0x2c5956._0x1869fb,-0xcf,-0xbb,-0xf2)]=_0x96949a;}[_0x45275b(0xb2,0x7b,0xad,0x80)](_0x71dd5a){const _0x5e77b5={_0x266cdc:0x99,_0x458ec0:0xa8},_0x5d0586={_0x1d2852:0x12c,_0x403561:0x194};function _0x3e7e4a(_0x57daf6,_0x3dd891,_0x36778e,_0x43abe3){return _0x45275b(_0x36778e- -_0x5d0586._0x1d2852,_0x43abe3,_0x36778e-_0x5d0586._0x403561,_0x43abe3-0x185);}this['deps'][_0x3e7e4a(-_0x5e77b5._0x266cdc,-0xba,-_0x5e77b5._0x458ec0,-0x6e)]=_0x71dd5a;}async[_0x45275b(0x4b,0xe,0x2c,0x80)](_0x1782c3=this[_0xe533c6(-0x13c,-0x14d,-0x17d,-0x120)],_0x39a4b3={}){const _0x8b4aa6={_0x46f216:0x35,_0x5a9eba:0x36,_0x4b26a4:0x11,_0x3400fd:0x1d6,_0x3340d7:0x1af,_0xb53581:0x198,_0x5f084a:0x169,_0x5861ca:0x17a,_0x41dc44:0x188,_0x213da8:0x1a3,_0x3eb65d:0x1b8,_0x3e934f:0x1b0,_0x3690b2:0x1d5},_0x4374fb={_0x5950cb:0x216,_0x4e42de:0xf3};function _0x33587e(_0xd68a81,_0x5289d7,_0x50f5a2,_0x116538){return _0xe533c6(_0xd68a81-0x9b,_0x116538-0x114,_0x5289d7,_0x116538-0x1a5);}if(!_0x1782c3)throw new Error('Agent.send\x20requires\x20a\x20message\x20when\x20no\x20default\x20message\x20is\x20configured');this['turnIndex']+=0x1;function _0x37d93e(_0x54bf62,_0x385ad8,_0x2196e9,_0x49a252){return _0x45275b(_0x49a252- -_0x4374fb._0x5950cb,_0x54bf62,_0x2196e9-_0x4374fb._0x4e42de,_0x49a252-0x1d2);}const _0x2ca336=await runTurn({'sessionId':this[_0x33587e(-0x80,-0x69,-0x6f,-_0x8b4aa6._0x46f216)],'turnId':createTurnId(this['turnIndex']),'streaming':_0x39a4b3[_0x33587e(0x3d,-_0x8b4aa6._0x5a9eba,-0x32,_0x8b4aa6._0x4b26a4)],'signal':_0x39a4b3['signal'],'system':this[_0x37d93e(-_0x8b4aa6._0x3400fd,-_0x8b4aa6._0x3340d7,-0x19a,-_0x8b4aa6._0xb53581)],'messages':this['messages'],'message':normalizeUserInput(_0x1782c3)},this[_0x37d93e(-0x164,-_0x8b4aa6._0x5f084a,-0x140,-0x168)]);return this[_0x37d93e(-_0x8b4aa6._0x5861ca,-_0x8b4aa6._0x41dc44,-0x1c7,-_0x8b4aa6._0x213da8)]=_0x2ca336[_0x37d93e(-0x21f,-_0x8b4aa6._0x3eb65d,-_0x8b4aa6._0x3e934f,-_0x8b4aa6._0x3690b2)]['messages']['map'](normalizeMessage),_0x2ca336;}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,runTurn,Agent};
|
package/dist/chunk-X7VAACWY.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x112559(_0x129a83,_0x36c42c,_0x4ccc7f,_0x22f90e){return _0x5ac8(_0x36c42c-0x3e5,_0x129a83);}(function(_0x3c5d4a,_0x585e41){var _0x572ecd={_0x1831b4:0x223,_0x3f9860:0x221,_0x76fc69:0x101,_0x1773ba:0x10f,_0x5c9aaf:0x11d,_0xaf9420:0x111,_0x10a027:0x114,_0x29d9d8:0x111,_0x313fb2:0x111,_0x366668:0x112,_0x441e2a:0x10a,_0x5802e8:0x21a,_0x21ac5d:0x10e,_0x2c6c00:0x107},_0x23eae1={_0x4cd504:0x8b},_0xdb1ad9=_0x3c5d4a();function _0x220be5(_0x493d9c,_0x12904a,_0x46381b,_0x2bf451){return _0x5ac8(_0x12904a-_0x23eae1._0x4cd504,_0x46381b);}function _0x800b1c(_0x57155d,_0x163a28,_0x1d0d3f,_0x4780a1){return _0x5ac8(_0x1d0d3f- -0x8e,_0x4780a1);}while(!![]){try{var _0x45fb33=parseInt(_0x220be5(0x22a,0x225,_0x572ecd._0x1831b4,_0x572ecd._0x3f9860))/0x1+parseInt(_0x800b1c(0x105,_0x572ecd._0x76fc69,0x10a,_0x572ecd._0x1773ba))/0x2*(-parseInt(_0x800b1c(_0x572ecd._0x5c9aaf,_0x572ecd._0xaf9420,_0x572ecd._0x10a027,0x10c))/0x3)+parseInt(_0x800b1c(_0x572ecd._0x29d9d8,_0x572ecd._0x313fb2,0x10d,_0x572ecd._0x366668))/0x4+-parseInt(_0x220be5(0x229,0x230,0x237,0x22e))/0x5+-parseInt(_0x800b1c(0x10c,0x10b,0x10f,0x10d))/0x6+-parseInt(_0x800b1c(0x118,_0x572ecd._0x441e2a,_0x572ecd._0x366668,0x110))/0x7*(-parseInt(_0x220be5(0x21a,0x221,0x220,_0x572ecd._0x5802e8))/0x8)+parseInt(_0x800b1c(_0x572ecd._0x21ac5d,0x101,_0x572ecd._0x2c6c00,0xff))/0x9;if(_0x45fb33===_0x585e41)break;else _0xdb1ad9['push'](_0xdb1ad9['shift']());}catch(_0x134390){_0xdb1ad9['push'](_0xdb1ad9['shift']());}}}(_0x379b,0x2e3bb));function _0x5ac8(_0x1eedb2,_0xb09e8e){_0x1eedb2=_0x1eedb2-0x194;var _0x379b00=_0x379b();var _0x5ac84a=_0x379b00[_0x1eedb2];if(_0x5ac8['WYkzew']===undefined){var _0x55f712=function(_0x446d12){var _0x559964='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x192fbc='',_0x754be9='';for(var _0x431eab=0x0,_0x59f07,_0x38fb88,_0x57b440=0x0;_0x38fb88=_0x446d12['charAt'](_0x57b440++);~_0x38fb88&&(_0x59f07=_0x431eab%0x4?_0x59f07*0x40+_0x38fb88:_0x38fb88,_0x431eab++%0x4)?_0x192fbc+=String['fromCharCode'](0xff&_0x59f07>>(-0x2*_0x431eab&0x6)):0x0){_0x38fb88=_0x559964['indexOf'](_0x38fb88);}for(var _0x147cca=0x0,_0x97a8f8=_0x192fbc['length'];_0x147cca<_0x97a8f8;_0x147cca++){_0x754be9+='%'+('00'+_0x192fbc['charCodeAt'](_0x147cca)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x754be9);};_0x5ac8['joNOSU']=_0x55f712,_0x5ac8['nHPsAq']={},_0x5ac8['WYkzew']=!![];}var _0x52adc5=_0x379b00[0x0],_0x37e3a7=_0x1eedb2+_0x52adc5,_0x4eea02=_0x5ac8['nHPsAq'][_0x37e3a7];return!_0x4eea02?(_0x5ac84a=_0x5ac8['joNOSU'](_0x5ac84a),_0x5ac8['nHPsAq'][_0x37e3a7]=_0x5ac84a):_0x5ac84a=_0x4eea02,_0x5ac84a;}function _0x28e299(_0x1ace77,_0x4e96bf,_0x5a8021,_0x44ecbb){var _0x151540={_0x3cb541:0x7};return _0x5ac8(_0x1ace77- -_0x151540._0x3cb541,_0x5a8021);}function _0x379b(){var _0x10632c=['ywjVCNrLza','nJKYndKYrMvLqMrZ','qujpuLrFrvjs','mtu3ode4q1HWr0zP','nJi4mJiWtNzVrNPV','ywjVCNq','mtyYota0oef6ELHwAq','y29Kzq','qwjVCNrfCNjVCG','mJHvzuroswC','BgvUz3rO','m2fHqLDyEG','BwvZC2fNzq','BMfTzq','mJmZmtG1wvPrsxnk','ywrKrxzLBNrmAxn0zw5LCG','mZK0nZK0oxP1s2LMzW','mJaWndu2BgjcDNDO'];_0x379b=function(){return _0x10632c;};return _0x379b();}var OperationAbortedError=class extends Error{[_0x112559(0x588,0x583,0x583,0x584)]=_0x112559(0x580,0x57e,0x57b,0x575);constructor(_0x192fbc='Operation\x20aborted'){super(_0x192fbc),this['name']='AbortError';}};function toAbortError(_0x754be9){var _0x16cd62={_0x1f297e:0xe,_0x5a0654:0x14,_0x2eaaf3:0xa,_0x5cad76:0xa,_0x535015:0xe},_0xff4d76={_0x5c069a:0x79,_0x1b1d4b:0x1af},_0x1e80b8={_0x139c78:0x18e};function _0x2cf17c(_0xb8fb7b,_0xea18ba,_0x353e79,_0x2980ce){return _0x28e299(_0x353e79- -_0x1e80b8._0x139c78,_0xea18ba-0xde,_0xea18ba,_0x2980ce-0xaf);}function _0x2c164a(_0x281c64,_0x564b4,_0x12aaf5,_0x3dd4e3){return _0x112559(_0x564b4,_0x12aaf5- -0x74b,_0x12aaf5-_0xff4d76._0x5c069a,_0x3dd4e3-_0xff4d76._0x1b1d4b);}if(isAbortError(_0x754be9))return _0x754be9;if(_0x754be9 instanceof Error)return new OperationAbortedError(_0x754be9[_0x2cf17c(_0x16cd62._0x1f297e,_0x16cd62._0x5a0654,0xe,_0x16cd62._0x2eaaf3)]);if(typeof _0x754be9==='string'&&_0x754be9[_0x2cf17c(_0x16cd62._0x5cad76,_0x16cd62._0x535015,0xc,_0x16cd62._0x535015)]>0x0)return new OperationAbortedError(_0x754be9);return new OperationAbortedError();}function isAbortError(_0x431eab){var _0x12714d={_0x306656:0xfe,_0xb03501:0x100,_0x271ddf:0x2fb,_0x104584:0x2f6,_0x270eb9:0x2f2,_0x2d8a1c:0x111,_0x575011:0x112,_0x260fd7:0x103,_0x48a36c:0x10b,_0x3cc8ac:0x10a,_0xa2f2f9:0x2f5},_0x1c2d63={_0x2df452:0x163,_0x276847:0x1cc},_0x438762={_0x1560c1:0x2a1};function _0xb156dd(_0x162cfa,_0x29aad4,_0x2a846,_0x43c0a7){return _0x28e299(_0x43c0a7- -_0x438762._0x1560c1,_0x29aad4-0x192,_0x29aad4,_0x43c0a7-0x132);}function _0x17cc82(_0x4c3a95,_0x4a2730,_0x1704ca,_0x229cb5){return _0x28e299(_0x4c3a95-_0x1c2d63._0x2df452,_0x4a2730-0x38,_0x4a2730,_0x229cb5-_0x1c2d63._0x276847);}return _0x431eab instanceof OperationAbortedError||_0x431eab instanceof Error&&(_0x431eab[_0xb156dd(-0x108,-_0x12714d._0x306656,-_0x12714d._0xb03501,-0x104)]===_0x17cc82(_0x12714d._0x271ddf,0x2fb,_0x12714d._0x104584,_0x12714d._0x270eb9)||_0xb156dd(-_0x12714d._0x2d8a1c,-_0x12714d._0x575011,-0x102,-0x10a)in _0x431eab&&_0x431eab[_0xb156dd(-_0x12714d._0x260fd7,-0x112,-_0x12714d._0x48a36c,-_0x12714d._0x3cc8ac)]===_0x17cc82(_0x12714d._0xa2f2f9,0x2fc,_0x12714d._0x104584,0x2ee));}function throwIfAborted(_0x59f07){if(!_0x59f07?.['aborted'])return;throw toAbortError(_0x59f07['reason']);}function addAbortListener(_0x38fb88,_0x57b440){var _0x356867={_0x3279c9:0x3a9,_0x151202:0xf2,_0x574c61:0xf2,_0x254edd:0xf4,_0xb3e641:0xeb,_0x1e75ec:0x3ae,_0x363dd6:0x3b4,_0x2dc935:0x3b3,_0x35c29e:0x3b0},_0x3abe11={_0x2fbc6a:0x26a,_0x4cfb3c:0x268},_0x54fc74={_0x54b9d1:0x485,_0x218303:0x64};if(!_0x38fb88)return()=>{};if(_0x38fb88[_0x107d40(_0x356867._0x3279c9,0x3a8,0x3a3,0x3a5)])return _0x57b440(),()=>{};function _0x1229f2(_0x553fc9,_0x545e57,_0x2af509,_0x2790f4){return _0x112559(_0x2790f4,_0x2af509- -_0x54fc74._0x54b9d1,_0x2af509-0x13c,_0x2790f4-_0x54fc74._0x218303);}const _0x147cca=()=>{_0x57b440();};_0x38fb88[_0x1229f2(_0x356867._0x151202,_0x356867._0x574c61,_0x356867._0x254edd,_0x356867._0xb3e641)](_0x107d40(_0x356867._0x1e75ec,_0x356867._0x363dd6,_0x356867._0x2dc935,_0x356867._0x35c29e),_0x147cca,{'once':!![]});function _0x107d40(_0x333601,_0x466beb,_0x24d2b7,_0x4525e5){return _0x28e299(_0x333601-0x219,_0x466beb-0x1e8,_0x24d2b7,_0x4525e5-0x17e);}return()=>{var _0x129c6d={_0x5e6b4f:0x170};function _0x1f6b1e(_0x54e42d,_0x114817,_0x468f7d,_0x3c99d4){return _0x107d40(_0x54e42d- -0x13e,_0x114817-0xee,_0x114817,_0x3c99d4-_0x129c6d._0x5e6b4f);}_0x38fb88['removeEventListener'](_0x1f6b1e(0x270,_0x3abe11._0x2fbc6a,_0x3abe11._0x4cfb3c,0x274),_0x147cca);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
|