@nuvin/agent-core 0.3.0-rc.8 → 0.3.1-rc.0

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.
@@ -73,6 +73,7 @@ export declare class RoutedModel implements EngineChatModel {
73
73
  }): Promise<Response>;
74
74
  protected getRetryDelayMs(response: Response | undefined, attemptIndex: number): number;
75
75
  private shouldRetryResponse;
76
+ private shouldRefreshProviderSession;
76
77
  private shouldRetryRequestError;
77
78
  private shouldRetryStreamAttemptError;
78
79
  private waitForRetry;
@@ -1 +1 @@
1
- (function(_0x1dd1bc,_0x3650ab){const _0x31acb4={_0x51c86c:0x46a,_0x3394be:0x462,_0x501935:0x457,_0x1df1f7:0x461,_0x5cf520:0x469,_0x22e49b:0x45a,_0x390a67:0x45e,_0x118d3c:0x458,_0x429930:0x467,_0x444810:0x6d,_0x27fd6c:0x58,_0x5963d9:0x4e,_0x4f19bd:0x54,_0x584d76:0x5f,_0x16cc6b:0x59,_0x41254f:0x470,_0x4174d5:0x46b,_0x25d86a:0x461};function _0x366c60(_0x1182b2,_0x313c49,_0xc39f2e,_0x176466){return _0x27c7(_0x313c49-0x32d,_0xc39f2e);}const _0x5a09d6=_0x1dd1bc();function _0x3f71f8(_0x786716,_0x3cd33c,_0x2cc23d,_0x55d90f){return _0x27c7(_0x3cd33c- -0x195,_0x786716);}while(!![]){try{const _0x414f27=parseInt(_0x366c60(_0x31acb4._0x51c86c,_0x31acb4._0x3394be,_0x31acb4._0x501935,_0x31acb4._0x1df1f7))/0x1*(-parseInt(_0x366c60(_0x31acb4._0x5cf520,0x45d,_0x31acb4._0x22e49b,_0x31acb4._0x3394be))/0x2)+-parseInt(_0x3f71f8(-0x5b,-0x67,-0x5e,-0x60))/0x3+-parseInt(_0x366c60(0x467,_0x31acb4._0x390a67,_0x31acb4._0x118d3c,_0x31acb4._0x429930))/0x4*(parseInt(_0x3f71f8(-_0x31acb4._0x444810,-0x69,-0x73,-0x62))/0x5)+-parseInt(_0x3f71f8(-0x5a,-_0x31acb4._0x27fd6c,-_0x31acb4._0x5963d9,-0x60))/0x6+parseInt(_0x3f71f8(-_0x31acb4._0x4f19bd,-0x5c,-0x51,-_0x31acb4._0x584d76))/0x7*(parseInt(_0x3f71f8(-0x60,-0x5e,-0x64,-_0x31acb4._0x16cc6b))/0x8)+-parseInt(_0x3f71f8(-0x64,-0x5b,-0x54,-0x5b))/0x9+parseInt(_0x366c60(_0x31acb4._0x41254f,_0x31acb4._0x4174d5,_0x31acb4._0x25d86a,0x462))/0xa;if(_0x414f27===_0x3650ab)break;else _0x5a09d6['push'](_0x5a09d6['shift']());}catch(_0x46b45f){_0x5a09d6['push'](_0x5a09d6['shift']());}}}(_0x1a4e,0x9ff4c));function _0x16e1ba(_0x4db69c,_0x14f5c8,_0x3f7129,_0x3d6a5c){const _0xb3a79c={_0x3613fd:0xe2};return _0x27c7(_0x3d6a5c- -_0xb3a79c._0x3613fd,_0x3f7129);}function _0x27c7(_0x4fa542,_0x19b0d1){_0x4fa542=_0x4fa542-0x128;const _0x1a4ed6=_0x1a4e();let _0x27c7b8=_0x1a4ed6[_0x4fa542];if(_0x27c7['UrUzyb']===undefined){var _0x13629c=function(_0x2f2935){const _0x291600='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15a3ec='',_0x4570a7='';for(let _0x435d4a=0x0,_0x533bb0,_0x5a3684,_0x1265d1=0x0;_0x5a3684=_0x2f2935['charAt'](_0x1265d1++);~_0x5a3684&&(_0x533bb0=_0x435d4a%0x4?_0x533bb0*0x40+_0x5a3684:_0x5a3684,_0x435d4a++%0x4)?_0x15a3ec+=String['fromCharCode'](0xff&_0x533bb0>>(-0x2*_0x435d4a&0x6)):0x0){_0x5a3684=_0x291600['indexOf'](_0x5a3684);}for(let _0x10b380=0x0,_0x2eb72a=_0x15a3ec['length'];_0x10b380<_0x2eb72a;_0x10b380++){_0x4570a7+='%'+('00'+_0x15a3ec['charCodeAt'](_0x10b380)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4570a7);};_0x27c7['bmJKKM']=_0x13629c,_0x27c7['SdmhUo']={},_0x27c7['UrUzyb']=!![];}const _0xe59dc0=_0x1a4ed6[0x0],_0x38d5a8=_0x4fa542+_0xe59dc0,_0x3c0ca0=_0x27c7['SdmhUo'][_0x38d5a8];return!_0x3c0ca0?(_0x27c7b8=_0x27c7['bmJKKM'](_0x27c7b8),_0x27c7['SdmhUo'][_0x38d5a8]=_0x27c7b8):_0x27c7b8=_0x3c0ca0,_0x27c7b8;}function _0x1a4e(){const _0x13054e=['ywjVCNrLza','C2HPzNq','nZy1mZGZngzuswftyW','nde4mJy3ndbothHws1e','AxngAw5PDgu','DxnLCG','zNjLzxPL','CMvTB3zLqwjVCNrmAxn0zw5LCG','mJi5ndC4nvncEgnXtW','AxnjBNrLz2vY','mZGWotG0neLZveTgEq','BgvUz3rO','mMrAAvbQuG','ngvjBMnnua','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','y2fUy2vSBgvK','CMvQzwn0','otGZnZK5wxL3DM5v','CMvHC29U','ogr5BenQBG','CMvZB2X2zq','ndG1mti1ou9iuwf5CG','mJa4oty5mKnHsw1Izq'];_0x1a4e=function(){return _0x13054e;};return _0x1a4e();}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x15a3ec){const _0x5e341b={_0x474287:0x107,_0x122b70:0xfd,_0x5b8f14:0x10f,_0x3aff97:0x10a,_0xedfe3e:0x118,_0xad8c70:0x510,_0x5e83a3:0x51d},_0x55ef41={_0x38c539:0x26d,_0x32b2c1:0x270,_0x35596b:0xf4,_0x48dd4d:0xfc},_0x30fbb7={_0x15fead:0x24a,_0x1b1a3f:0x253,_0x261297:0x257},_0x37359f={_0x226416:0x15b,_0x4023c6:0x11d},_0x49fe9a={_0x10ac75:0x1a,_0x844e42:0x20,_0x4efe33:0x1a,_0x835f72:0x2b0,_0x5ac4aa:0x2b1,_0x44e869:0x2a2,_0x5e7494:0x1f,_0x2442c9:0x2f,_0x176611:0x2c};if(!Number[_0x4e0065(_0x5e341b._0x474287,_0x5e341b._0x122b70,0x10e,_0x5e341b._0x5b8f14)](_0x15a3ec)||!Number[_0x4e0065(0x10c,0x111,_0x5e341b._0x3aff97,_0x5e341b._0xedfe3e)](_0x15a3ec)||_0x15a3ec<=0x0)throw new Error(_0x2b4adf(_0x5e341b._0xad8c70,0x507,_0x5e341b._0x5e83a3,0x513));let _0x4570a7=0x0;const _0x435d4a=[];function _0x2b4adf(_0x369b38,_0x2325a3,_0x1f6cf1,_0x19fb66){return _0x27c7(_0x19fb66-0x3e1,_0x369b38);}const _0x533bb0=()=>{let _0x10b380=![];return()=>{if(_0x10b380)return;_0x10b380=!![],_0x4570a7-=0x1,_0x5a3684();};};function _0x4e0065(_0x4bf123,_0x2e4438,_0x19b6c1,_0x5d1a0c){return _0x27c7(_0x4bf123- -0x21,_0x19b6c1);}const _0x5a3684=()=>{const _0x5925c7={_0x3e558b:0xe,_0x1cc7da:0x4f3},_0x2d885e={_0x460150:0x190,_0x57c37c:0xc6,_0x4cfa36:0xe4};function _0x4675a3(_0x5eb019,_0x41ed7c,_0x4adad2,_0x27cb5b){return _0x4e0065(_0x5eb019-_0x2d885e._0x460150,_0x41ed7c-_0x2d885e._0x57c37c,_0x41ed7c,_0x27cb5b-_0x2d885e._0x4cfa36);}function _0x211956(_0x2903ce,_0x352c77,_0x3ab11d,_0x30a9cc){return _0x2b4adf(_0x352c77,_0x352c77-_0x5925c7._0x3e558b,_0x3ab11d-0x1e8,_0x2903ce- -_0x5925c7._0x1cc7da);}while(_0x435d4a[_0x211956(0x1d,_0x49fe9a._0x10ac75,_0x49fe9a._0x844e42,_0x49fe9a._0x4efe33)]>0x0){const _0x2eb72a=_0x435d4a[_0x4675a3(0x2ab,_0x49fe9a._0x835f72,_0x49fe9a._0x5ac4aa,0x2a3)]();if(!_0x2eb72a||_0x2eb72a[_0x4675a3(_0x49fe9a._0x44e869,0x2a1,0x29c,0x2ab)])continue;_0x2eb72a['cancelled']=!![],_0x2eb72a[_0x211956(0x19,0x1c,_0x49fe9a._0x5e7494,0x1f)](),_0x4570a7+=0x1,_0x2eb72a[_0x211956(0x26,0x1f,_0x49fe9a._0x2442c9,_0x49fe9a._0x176611)](_0x533bb0());return;}},_0x1265d1=()=>{if(_0x4570a7>=_0x15a3ec)return void 0x0;return _0x4570a7+=0x1,_0x533bb0();};return{'tryAcquire':_0x1265d1,'acquire'(_0x23e3fb){const _0x64e5ee={_0x4324a1:0x1e6,_0x1073ea:0x1e7,_0x218366:0x1dd,_0x28f817:0x1d3,_0x5b49fc:0x1e6,_0x33ca7a:0x1f6,_0x223894:0x1ef,_0x3be31b:0x1eb,_0x4e6411:0x1e4,_0xe82bd9:0x1d6,_0x2e085f:0x1d6},_0x6b794c={_0x192fbf:0x1b},_0x1a6539={_0x236562:0x214,_0x2e29bb:0x6e};if(_0x23e3fb?.[_0x8bd65a(0x275,_0x55ef41._0x38c539,0x267,_0x55ef41._0x32b2c1)])return Promise['reject'](toAbortError(_0x23e3fb[_0x3c9bd8(-_0x55ef41._0x35596b,-0xff,-0xf6,-_0x55ef41._0x48dd4d)]));function _0x8bd65a(_0x55e02d,_0x3e3db2,_0x1a3093,_0x5a820d){return _0x4e0065(_0x5a820d-0x156,_0x3e3db2-_0x37359f._0x226416,_0x55e02d,_0x5a820d-_0x37359f._0x4023c6);}const _0x4608da=_0x1265d1();function _0x3c9bd8(_0x18c7c3,_0x4e6df0,_0x36dbd7,_0xd8019f){return _0x4e0065(_0x4e6df0- -_0x1a6539._0x236562,_0x4e6df0-_0x1a6539._0x2e29bb,_0x36dbd7,_0xd8019f-0x3a);}if(_0x4608da!==void 0x0)return Promise['resolve'](_0x4608da);return new Promise((_0x91644e,_0xb16516)=>{const _0x13a514={_0x2a58b7:0x5b,_0x52c658:0x64,_0x27d0d7:0x188},_0x16a29e={_0x8a3692:0x5a},_0x274cb4={'resolve':_0x91644e,'reject':_0xb16516,'cancelled':![],'removeAbortListener':()=>{}};_0x435d4a['push'](_0x274cb4);function _0x35fdb7(_0x221ed7,_0x227bd8,_0x17abf1,_0x18fb60){return _0x8bd65a(_0x17abf1,_0x227bd8-0x129,_0x17abf1-_0x6b794c._0x192fbf,_0x227bd8- -0x4b3);}_0x274cb4[_0x35fdb7(-_0x30fbb7._0x15fead,-_0x30fbb7._0x1b1a3f,-_0x30fbb7._0x261297,-0x24c)]=addAbortListener(_0x23e3fb,()=>{function _0xa507cf(_0x29f448,_0x1f80a8,_0x356785,_0x544449){return _0x35fdb7(_0x29f448-_0x16a29e._0x8a3692,_0x29f448-0x6e,_0x544449,_0x544449-0x53);}if(_0x274cb4[_0x57cbd4(-_0x64e5ee._0x4324a1,-0x1e4,-_0x64e5ee._0x1073ea,-0x1dc)])return;_0x274cb4[_0xa507cf(-_0x64e5ee._0x218366,-_0x64e5ee._0x28f817,-0x1d3,-_0x64e5ee._0x5b49fc)]=!![];function _0x57cbd4(_0x3d810f,_0x2d323c,_0x2a5dd4,_0x44927f){return _0x35fdb7(_0x3d810f-_0x13a514._0x2a58b7,_0x2a5dd4-_0x13a514._0x52c658,_0x3d810f,_0x44927f-_0x13a514._0x27d0d7);}_0x274cb4[_0x57cbd4(-_0x64e5ee._0x33ca7a,-0x1f6,-_0x64e5ee._0x223894,-_0x64e5ee._0x3be31b)]();const _0x4547f9=_0x435d4a['indexOf'](_0x274cb4);if(_0x4547f9>=0x0)_0x435d4a['splice'](_0x4547f9,0x1);_0x274cb4[_0x57cbd4(-0x1e5,-0x1db,-_0x64e5ee._0x4324a1,-_0x64e5ee._0x4e6411)](toAbortError(_0x23e3fb?.[_0xa507cf(-0x1da,-_0x64e5ee._0xe82bd9,-_0x64e5ee._0x2e085f,-0x1d8)]));});});}};}var MESSAGE_ROLES=['assistant',_0x16e1ba(0x44,0x40,0x44,0x47)];Object[_0x58e225(0xfc,0xf1,0xf4,0xf5)](MESSAGE_ROLES);function _0x58e225(_0x45d748,_0x1738d3,_0xaad5f0,_0x395012){const _0x4d4f4d={_0x2ee3ee:0x35};return _0x27c7(_0x395012- -_0x4d4f4d._0x2ee3ee,_0x45d748);}export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};
1
+ function _0x50af(_0x3ce586,_0x3cd584){_0x3ce586=_0x3ce586-0x1f0;const _0x37c9e0=_0x37c9();let _0x50afa3=_0x37c9e0[_0x3ce586];if(_0x50af['hwDbWx']===undefined){var _0x4e80a0=function(_0x1c112d){const _0x415317='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2bd7a4='',_0x4e556d='';for(let _0xb6b8c1=0x0,_0x4f46f9,_0x128843,_0x12fed2=0x0;_0x128843=_0x1c112d['charAt'](_0x12fed2++);~_0x128843&&(_0x4f46f9=_0xb6b8c1%0x4?_0x4f46f9*0x40+_0x128843:_0x128843,_0xb6b8c1++%0x4)?_0x2bd7a4+=String['fromCharCode'](0xff&_0x4f46f9>>(-0x2*_0xb6b8c1&0x6)):0x0){_0x128843=_0x415317['indexOf'](_0x128843);}for(let _0x3c533f=0x0,_0x4ff21c=_0x2bd7a4['length'];_0x3c533f<_0x4ff21c;_0x3c533f++){_0x4e556d+='%'+('00'+_0x2bd7a4['charCodeAt'](_0x3c533f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4e556d);};_0x50af['EzJzjI']=_0x4e80a0,_0x50af['WFizVn']={},_0x50af['hwDbWx']=!![];}const _0x1d12b9=_0x37c9e0[0x0],_0x8c5491=_0x3ce586+_0x1d12b9,_0x86acf4=_0x50af['WFizVn'][_0x8c5491];return!_0x86acf4?(_0x50afa3=_0x50af['EzJzjI'](_0x50afa3),_0x50af['WFizVn'][_0x8c5491]=_0x50afa3):_0x50afa3=_0x86acf4,_0x50afa3;}(function(_0xae4d09,_0x148c44){const _0x13232c={_0x16dc76:0x1e0,_0x14b55c:0x1e9,_0x4ab514:0x1e6,_0x5ba978:0x1dc,_0x23ae68:0x402,_0x2efb31:0x3f1,_0x3545a3:0x3fe,_0xa13b8a:0x1e7,_0x234eb8:0x3f8,_0x4af472:0x3fc,_0x20da57:0x401,_0x597685:0x1e3,_0x1d1a39:0x1f9,_0x126096:0x1ef,_0x1118d7:0x1e3,_0x1159ae:0x1e5,_0x4bdf9c:0x1ee,_0x1891f8:0x1d8},_0x1e2224={_0x504d3f:0x204},_0x1ba525={_0x4c5f67:0x3e3};function _0x53bf5e(_0x3538ee,_0x47008e,_0x5ea175,_0x2cf421){return _0x50af(_0x5ea175- -_0x1ba525._0x4c5f67,_0x47008e);}const _0x127cc4=_0xae4d09();function _0x1c081d(_0x5978f3,_0x48c536,_0x16e769,_0x53674e){return _0x50af(_0x53674e-_0x1e2224._0x504d3f,_0x5978f3);}while(!![]){try{const _0x12770a=-parseInt(_0x53bf5e(-0x1eb,-_0x13232c._0x16dc76,-_0x13232c._0x14b55c,-0x1de))/0x1+-parseInt(_0x53bf5e(-_0x13232c._0x16dc76,-_0x13232c._0x4ab514,-_0x13232c._0x5ba978,-0x1db))/0x2+-parseInt(_0x1c081d(0x406,0x40d,0x401,_0x13232c._0x23ae68))/0x3*(-parseInt(_0x1c081d(0x3f4,_0x13232c._0x2efb31,_0x13232c._0x3545a3,0x3fa))/0x4)+parseInt(_0x53bf5e(-0x1db,-0x1e5,-_0x13232c._0xa13b8a,-0x1e6))/0x5*(parseInt(_0x53bf5e(-0x1dd,-0x1d5,-_0x13232c._0x16dc76,-0x1e6))/0x6)+-parseInt(_0x1c081d(_0x13232c._0x234eb8,_0x13232c._0x4af472,0x3fe,_0x13232c._0x20da57))/0x7+parseInt(_0x53bf5e(-_0x13232c._0x597685,-_0x13232c._0x1d1a39,-_0x13232c._0x126096,-_0x13232c._0x1118d7))/0x8+parseInt(_0x53bf5e(-_0x13232c._0x1159ae,-0x1e4,-_0x13232c._0x4bdf9c,-0x1e5))/0x9*(parseInt(_0x53bf5e(-0x1ea,-0x1ef,-0x1e4,-_0x13232c._0x1891f8))/0xa);if(_0x12770a===_0x148c44)break;else _0x127cc4['push'](_0x127cc4['shift']());}catch(_0x3537ca){_0x127cc4['push'](_0x127cc4['shift']());}}}(_0x37c9,0x7e798));function _0x42be2b(_0x33e59c,_0x40497f,_0x37d311,_0x1b37cb){const _0x32d2d8={_0x52fff9:0x307};return _0x50af(_0x40497f-_0x32d2d8._0x52fff9,_0x33e59c);}import{modelIdentityFromParts}from'../chunk-D5IVWJHX.js';import{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig}from'../chunk-IUZALP6K.js';import{TurnFailedError}from'../chunk-FFIZ6TKW.js';import{OperationAbortedError,addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function createAbortAwareSemaphore(_0x2bd7a4){const _0x16d53f={_0x2f46bf:0x278,_0x54e0b3:0x280,_0xcb4ae5:0x286},_0x3fea62={_0x3b44a4:0x12a,_0x4adab4:0x12e,_0x12ef14:0x123,_0x213733:0x4f6,_0x4b9cd5:0x4fe,_0x397195:0x504,_0x1949f8:0x509,_0xf694d1:0x503},_0x3440ee={_0x2ccfe9:0x2a9,_0x19d4ce:0x2a4,_0x458633:0x3e0,_0x39a70b:0x3cf},_0x33c625={_0x308ccd:0x93},_0x26b229={_0x2943d6:0x8e},_0x4b894e={_0x291f6c:0x173,_0x480786:0x16c,_0x11c5e3:0xfe,_0x5bad88:0xf6,_0x4419ab:0x178,_0x2c2fb8:0x177,_0x5291a6:0x17f,_0x4e9bf1:0x17a,_0x23ff4c:0x16d},_0x4bda25={_0x1f7362:0x11b,_0x57d80b:0x1a5,_0x46e1d8:0x91};if(!Number[_0x2d92e6(0x27e,0x275,_0x16d53f._0x2f46bf,_0x16d53f._0x54e0b3)](_0x2bd7a4)||!Number['isInteger'](_0x2bd7a4)||_0x2bd7a4<=0x0)throw new Error(_0x2d92e6(0x284,_0x16d53f._0xcb4ae5,0x287,0x289));let _0x4e556d=0x0;const _0xb6b8c1=[],_0x4f46f9=()=>{let _0x3c533f=![];return()=>{if(_0x3c533f)return;_0x3c533f=!![],_0x4e556d-=0x1,_0x128843();};},_0x128843=()=>{const _0x45f3d7={_0x2eb4bd:0x9f,_0x97ecf1:0x3ff};function _0x10d616(_0xcdf12d,_0x4c427d,_0x4386cb,_0x4d2f0f){return _0x2d92e6(_0xcdf12d-_0x45f3d7._0x2eb4bd,_0x4386cb,_0x4386cb-0x106,_0xcdf12d- -_0x45f3d7._0x97ecf1);}function _0x575852(_0x1543d0,_0x10e053,_0x1f18be,_0x18ace3){return _0x34a5ab(_0x1543d0- -_0x4bda25._0x1f7362,_0x10e053-_0x4bda25._0x57d80b,_0x1f18be-_0x4bda25._0x46e1d8,_0x10e053);}while(_0xb6b8c1['length']>0x0){const _0x4ff21c=_0xb6b8c1[_0x10d616(-0x170,-_0x4b894e._0x291f6c,-_0x4b894e._0x480786,-0x179)]();if(!_0x4ff21c||_0x4ff21c[_0x575852(0xfd,_0x4b894e._0x11c5e3,_0x4b894e._0x5bad88,0xfd)])continue;_0x4ff21c[_0x10d616(-_0x4b894e._0x4419ab,-0x17d,-_0x4b894e._0x2c2fb8,-_0x4b894e._0x5291a6)]=!![],_0x4ff21c['removeAbortListener'](),_0x4e556d+=0x1,_0x4ff21c[_0x10d616(-0x16f,-0x168,-_0x4b894e._0x4e9bf1,-_0x4b894e._0x23ff4c)](_0x4f46f9());return;}};function _0x2d92e6(_0x8f3115,_0x5994f9,_0x5a3720,_0x118382){return _0x50af(_0x118382-_0x26b229._0x2943d6,_0x5994f9);}const _0x12fed2=()=>{if(_0x4e556d>=_0x2bd7a4)return void 0x0;return _0x4e556d+=0x1,_0x4f46f9();};function _0x34a5ab(_0x71f690,_0x3ec9e7,_0x258629,_0x3ee03f){return _0x50af(_0x71f690-0x1f,_0x3ee03f);}return{'tryAcquire':_0x12fed2,'acquire'(_0x1452b2){const _0xabf86b={_0x345fe3:0x2e8};if(_0x1452b2?.[_0x3a9ad1(-_0x3fea62._0x3b44a4,-_0x3fea62._0x4adab4,-0x118,-_0x3fea62._0x12ef14)])return Promise['reject'](toAbortError(_0x1452b2[_0x404668(0x507,_0x3fea62._0x213733,_0x3fea62._0x4b9cd5,0x508)]));function _0x3a9ad1(_0x51a695,_0x395b71,_0xbb743d,_0x43aa2a){return _0x2d92e6(_0x51a695-0x23,_0xbb743d,_0xbb743d-_0x33c625._0x308ccd,_0x43aa2a- -0x3b5);}function _0x404668(_0x109fa3,_0x4f1276,_0x457330,_0x4f6f5a){return _0x34a5ab(_0x457330-_0xabf86b._0x345fe3,_0x4f1276-0x9,_0x457330-0x19a,_0x109fa3);}const _0x5981b7=_0x12fed2();if(_0x5981b7!==void 0x0)return Promise[_0x404668(_0x3fea62._0x397195,0x512,_0x3fea62._0x1949f8,_0x3fea62._0xf694d1)](_0x5981b7);return new Promise((_0x51ede5,_0x9506b1)=>{const _0x4f1866={_0x4c668e:0x106,_0x50ea37:0x2a6,_0x46bad4:0x2a3,_0x4a9d42:0x11f,_0x6809fb:0x297,_0x25182d:0x2a4},_0x24f9dd={_0x995699:0x3bd,_0x214044:0x13b},_0x145f93={_0x3aebce:0x108,_0x2ca7b5:0x13,_0x528f10:0x4f8},_0x16fd06={'resolve':_0x51ede5,'reject':_0x9506b1,'cancelled':![],'removeAbortListener':()=>{}};function _0x231f54(_0x195953,_0x4609be,_0x4dae80,_0x1df849){return _0x3a9ad1(_0x195953-_0x145f93._0x3aebce,_0x4609be-_0x145f93._0x2ca7b5,_0x195953,_0x4609be-_0x145f93._0x528f10);}function _0x557a33(_0x38e992,_0x35094e,_0x3de1b3,_0xf8842e){return _0x404668(_0x38e992,_0x35094e-0x86,_0x3de1b3- -0x259,_0xf8842e-0xb5);}_0xb6b8c1[_0x557a33(_0x3440ee._0x2ccfe9,0x29b,0x2a6,_0x3440ee._0x19d4ce)](_0x16fd06),_0x16fd06[_0x231f54(_0x3440ee._0x458633,0x3d6,_0x3440ee._0x39a70b,0x3d1)]=addAbortListener(_0x1452b2,()=>{function _0x6af277(_0x5c48b5,_0x309141,_0x2b6848,_0x595afb){return _0x557a33(_0x5c48b5,_0x309141-0xe5,_0x309141- -_0x24f9dd._0x995699,_0x595afb-_0x24f9dd._0x214044);}if(_0x16fd06['cancelled'])return;_0x16fd06['cancelled']=!![],_0x16fd06[_0x6af277(-_0x4f1866._0x4c668e,-0x10a,-0x101,-0x101)]();const _0x5520a5=_0xb6b8c1['indexOf'](_0x16fd06);if(_0x5520a5>=0x0)_0xb6b8c1[_0x5f0dd3(_0x4f1866._0x50ea37,_0x4f1866._0x46bad4,0x2aa,0x2b5)](_0x5520a5,0x1);function _0x5f0dd3(_0x41d507,_0x580485,_0xe4115a,_0x21c3b6){return _0x557a33(_0x580485,_0x580485-0xc0,_0xe4115a- -0xa,_0x21c3b6-0x113);}_0x16fd06[_0x6af277(-0x124,-0x11f,-0x119,-_0x4f1866._0x4a9d42)](toAbortError(_0x1452b2?.[_0x5f0dd3(_0x4f1866._0x6809fb,_0x4f1866._0x25182d,0x29b,0x291)]));});});}};}var MESSAGE_ROLES=[_0x59eb56(0x435,0x441,0x447,0x43a),_0x42be2b(0x4fa,0x4fa,0x4f9,0x4f5)];function _0x59eb56(_0x18c4e5,_0x20ee3c,_0x2dcff0,_0xd00411){const _0x168cbf={_0x5d3e75:0x250};return _0x50af(_0x20ee3c-_0x168cbf._0x5d3e75,_0x18c4e5);}function _0x37c9(){const _0x58a9d2=['mtiYnZzbB1rVAvK','CMvHC29U','ChvZAa','y2fUy2vSBgvK','nZmWnda4ywTUAevA','Bwf4q29Uy3vYCMvUy3KGBxvZDcbIzsbHigzPBML0zsbWB3nPDgL2zsbPBNrLz2vY','mJbKBu9iwgC','ndu0mZG4oujrq2n5yW','mtuZvKzorMfJ','mtK3mtK1mZbXEeTluMS','zNjLzxPL','C2HPzNq','CMvZB2X2zq','nda5mZHcANDUveK','ywjVCNrLza','CMvTB3zLqwjVCNrmAxn0zw5LCG','C3bSAwnL','mtGWnJmZogzMDgnivG','CMvQzwn0','yxnZAxn0yw50','AxngAw5PDgu','DxnLCG','nte1otG0mhPOwhjhqW','oxvLAfrLDG'];_0x37c9=function(){return _0x58a9d2;};return _0x37c9();}Object[_0x59eb56(0x452,0x450,0x453,0x452)](MESSAGE_ROLES);export{MESSAGE_ROLES,OperationAbortedError,TurnFailedError,addAbortListener,createAbortAwareSemaphore,isAbortError,modelIdentityFromParts,resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig,throwIfAborted,toAbortError};