@myagentroam/node 0.9.21 → 0.9.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- function _0x188d(_0x5ca78d,_0x17e074){_0x5ca78d=_0x5ca78d-(-0x2b*-0x6b+-0x171*0xc+-0x36);const _0x5d65d2=_0x4d17();let _0x1d2aa1=_0x5d65d2[_0x5ca78d];if(_0x188d['DJbOtz']===undefined){var _0x1e3b1a=function(_0x449465){const _0x5a0bbf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4211a1='',_0x24bafc='';for(let _0x52410f=0x421+0x16*0x79+-0xe87,_0x95e7c6,_0xd6c652,_0xc196d=-0x13d7+-0x2*0xc8b+0x2ced;_0xd6c652=_0x449465['charAt'](_0xc196d++);~_0xd6c652&&(_0x95e7c6=_0x52410f%(0xf3d*-0x1+-0x26cc+0x360d)?_0x95e7c6*(0x14b*0xd+-0x1*-0x58d+-0x161c)+_0xd6c652:_0xd6c652,_0x52410f++%(0xb2c+0xc2*0x16+-0x1bd4))?_0x4211a1+=String['fromCharCode'](0x137b+0x2*-0x109d+0xebe&_0x95e7c6>>(-(-0x24da*-0x1+-0x1bb2+-0x926)*_0x52410f&0x1*-0x1d8+0x1*0x534+-0x356)):0x25b8+-0x8*-0x350+0x55a*-0xc){_0xd6c652=_0x5a0bbf['indexOf'](_0xd6c652);}for(let _0x3c28d1=-0x109*0x3+0x1c8e+-0x1973,_0x2b6ed6=_0x4211a1['length'];_0x3c28d1<_0x2b6ed6;_0x3c28d1++){_0x24bafc+='%'+('00'+_0x4211a1['charCodeAt'](_0x3c28d1)['toString'](-0x1fd8+-0x8*0x7a+0x23b8))['slice'](-(0xe9*-0x3+-0x26fd+-0x29ba*-0x1));}return decodeURIComponent(_0x24bafc);};_0x188d['OWYTTV']=_0x1e3b1a,_0x188d['oDUlFv']={},_0x188d['DJbOtz']=!![];}const _0x91f871=_0x5d65d2[-0x119a+-0x73+0x120d];_0x188d['BGYCxo']!==_0x91f871&&(_0x188d['oDUlFv']={},_0x188d['BGYCxo']=_0x91f871);const _0x3a7565=_0x188d['oDUlFv'][_0x5ca78d];return _0x3a7565===undefined?(_0x1d2aa1=_0x188d['OWYTTV'](_0x1d2aa1),_0x188d['oDUlFv'][_0x5ca78d]=_0x1d2aa1):_0x1d2aa1=_0x3a7565,_0x1d2aa1;}const _0x59f962=_0x188d;(function(_0x19157f,_0xabffbd){const _0x340765=_0x188d,_0x165813=_0x19157f();while(!![]){try{const _0x3a5bd5=-parseInt(_0x340765(0xc7))/(0x1*-0x234b+0x12bc+0x10*0x109)*(-parseInt(_0x340765(0xfc))/(0x4d9+-0xa75+-0x59e*-0x1))+parseInt(_0x340765(0x96))/(0x8*-0xb1+-0x4*-0x772+-0x183d)*(-parseInt(_0x340765(0xd0))/(0x5*0x455+0xf7*0x1e+-0x3297))+parseInt(_0x340765(0xee))/(-0x1*-0x1a15+0x19*-0x91+-0xb*0x115)+parseInt(_0x340765(0x9e))/(0xd6*0x2a+0xc*0x259+0x3*-0x1516)*(-parseInt(_0x340765(0xdf))/(0x12e*-0xf+0x373*-0x5+0x22f8))+parseInt(_0x340765(0x7a))/(0x5*-0x176+-0xb58+-0x957*-0x2)*(parseInt(_0x340765(0x79))/(0x5f0+0x33c+0x923*-0x1))+parseInt(_0x340765(0x91))/(-0x168e*-0x1+0x1*0x1c57+-0x32db)+-parseInt(_0x340765(0xc1))/(-0x2ab*-0x9+-0x3d*-0x5f+0x61*-0x7b);if(_0x3a5bd5===_0xabffbd)break;else _0x165813['push'](_0x165813['shift']());}catch(_0x11d38c){_0x165813['push'](_0x165813['shift']());}}}(_0x4d17,0xf4a9b+0x1bec3e+-0x1d0022));import{parseSecretEnvironment}from'../../util/secret-environment.js';import{runnerErrorProjection}from'../../util/runner-error.js';import{boundedConversationItemId,compactRunnerText}from'../codex/conversation-parser.js';import{openCodePatchToolPayload,openCodeQuestions}from'./conversation-parser.js';import{normalizeOpenCodeTool}from'./tool-normalizer.js';export class OpenCodeManagedRunController{[_0x59f962(0xb6)];[_0x59f962(0xa1)];[_0x59f962(0xc6)];[_0x59f962(0x118)]=new Map();[_0x59f962(0x104)]=new Map();[_0x59f962(0x132)]=new Map();[_0x59f962(0x77)]=new Set();[_0x59f962(0x10e)]=new Set();[_0x59f962(0xbb)]=new Map();[_0x59f962(0x7e)]=new Map();constructor(_0x5d65d2,_0x1d2aa1,_0x1e3b1a=(0x1444+0x10ff+-0x2539)*(-0x16b1d+0x1a254+0xb329)){const _0x4d09c1=_0x59f962;this[_0x4d09c1(0xb6)]=_0x5d65d2,this[_0x4d09c1(0xa1)]=_0x1d2aa1,this[_0x4d09c1(0xc6)]=_0x1e3b1a;}async[_0x59f962(0x9d)](_0x91f871,_0x3a7565,_0x449465){const _0x1fb6fe=_0x59f962;if(_0x3a7565['id']===_0x1fb6fe(0x123))return this[_0x1fb6fe(0x123)](_0x91f871,_0x449465[_0x1fb6fe(0x11b)]);if(_0x3a7565['id']!==_0x1fb6fe(0xfd))throw new Error(_0x1fb6fe(0x133));const _0x5a0bbf=this[_0x1fb6fe(0xa1)][_0x1fb6fe(0x109)](_0x91f871['id'],_0x1fb6fe(0xfd));if(_0x5a0bbf?.[_0x1fb6fe(0x10a)])this[_0x1fb6fe(0xa1)][_0x1fb6fe(0x97)](_0x91f871['id'],_0x1fb6fe(0xfd));else this[_0x1fb6fe(0xa1)][_0x1fb6fe(0xf7)](_0x91f871['id'],{'commandId':_0x1fb6fe(0xfd),'active':!![],'label':_0x1fb6fe(0x99),'detail':_0x1fb6fe(0xa4),'closable':!![],'closeInput':_0x1fb6fe(0xa0),'continuation':{'label':_0x1fb6fe(0x90),'prompt':_0x1fb6fe(0x119)}});return{'command':_0x3a7565['id'],'states':this[_0x1fb6fe(0xa1)][_0x1fb6fe(0xde)](_0x91f871['id'])};}[_0x59f962(0x123)](_0x4211a1,_0x24bafc){const _0x201c1b=_0x59f962;if(_0x4211a1[_0x201c1b(0xc2)]===null||_0x4211a1[_0x201c1b(0x8f)]===null||_0x4211a1[_0x201c1b(0x13c)]!==_0x201c1b(0x116)||this[_0x201c1b(0xa1)][_0x201c1b(0x129)](_0x4211a1['id']))throw new Error(_0x201c1b(0x133));const _0x52410f=crypto[_0x201c1b(0xc5)](),_0x95e7c6=this[_0x201c1b(0xb6)][_0x201c1b(0x13a)](_0x24bafc);return this[_0x201c1b(0xa1)][_0x201c1b(0xfe)]({'runId':_0x52410f,'sessionId':_0x4211a1['id'],'runner':_0x201c1b(0x9f),'cwd':_0x4211a1[_0x201c1b(0x11c)],'externalSessionId':_0x4211a1[_0x201c1b(0xc2)]}),this[_0x201c1b(0xa1)][_0x201c1b(0x10a)][_0x201c1b(0x102)](_0x52410f),this[_0x201c1b(0xb6)][_0x201c1b(0x86)][_0x201c1b(0x93)](_0x52410f,{'runId':_0x52410f,'sessionId':_0x4211a1['id'],'nativeSessionId':_0x4211a1[_0x201c1b(0xc2)],'cwd':_0x4211a1[_0x201c1b(0x11c)],'client':_0x95e7c6,'abort':new AbortController(),'access':_0x4211a1[_0x201c1b(0x122)]??_0x201c1b(0xf6),'agent':_0x201c1b(0x13b)}),this[_0x201c1b(0xa1)][_0x201c1b(0x10f)](_0x52410f,_0x201c1b(0xea),{'command':_0x201c1b(0x123)},_0x201c1b(0x105)),void this[_0x201c1b(0xe9)](_0x52410f,_0x4211a1[_0x201c1b(0x8f)]),{'command':_0x201c1b(0x123),'run':this[_0x201c1b(0xa1)][_0x201c1b(0xcd)](_0x52410f),'states':this[_0x201c1b(0xa1)][_0x201c1b(0xde)](_0x4211a1['id'])};}async[_0x59f962(0xe9)](_0xd6c652,_0xc196d){const _0x51ef36=_0x59f962,_0x3c28d1=this[_0x51ef36(0xb6)][_0x51ef36(0x86)][_0x51ef36(0x12b)](_0xd6c652);if(_0x3c28d1===undefined)return;this[_0x51ef36(0xa1)][_0x51ef36(0x10f)](_0xd6c652,_0x51ef36(0xec),{'command':_0x51ef36(0x123)},_0x51ef36(0x110));try{await _0x3c28d1[_0x51ef36(0x138)][_0x51ef36(0xcc)](_0x3c28d1[_0x51ef36(0x11c)],_0x3c28d1[_0x51ef36(0x106)],_0xc196d),this[_0x51ef36(0xe0)](_0xd6c652,_0x51ef36(0xdd),_0x51ef36(0xe2),{'status':_0x51ef36(0xdd)});}catch(_0x2b6ed6){this[_0x51ef36(0xe0)](_0xd6c652,_0x51ef36(0x98),_0x51ef36(0x134),_0x2b6ed6,_0x51ef36(0xdc));}}[_0x59f962(0x137)](_0x30caf3){const _0x44bf56=_0x59f962,_0x34d7ac=_0x30caf3[_0x44bf56(0xd9)];if(_0x34d7ac[_0x44bf56(0xb6)]!==_0x44bf56(0x9f)||typeof _0x34d7ac[_0x44bf56(0xca)]!==_0x44bf56(0xf4)||typeof _0x34d7ac[_0x44bf56(0x121)]!==_0x44bf56(0xf4)||typeof _0x34d7ac[_0x44bf56(0xd5)]!==_0x44bf56(0xf4)||typeof _0x34d7ac[_0x44bf56(0x11c)]!==_0x44bf56(0xf4)||typeof _0x34d7ac[_0x44bf56(0x8f)]!==_0x44bf56(0xf4)||this[_0x44bf56(0xa1)][_0x44bf56(0xcb)]()||this[_0x44bf56(0xa1)][_0x44bf56(0x10a)][_0x44bf56(0x84)](_0x34d7ac[_0x44bf56(0xca)]))return;let _0x15fe4b,_0x492f28,_0x1ebaa2,_0x25446a;try{_0x15fe4b=parseSecretEnvironment(_0x34d7ac[_0x44bf56(0x11b)]),_0x492f28=parseSecretEnvironment(_0x34d7ac[_0x44bf56(0xe6)]),_0x1ebaa2=this[_0x44bf56(0xb6)][_0x44bf56(0x10c)](_0x34d7ac[_0x44bf56(0xc3)],{..._0x15fe4b,..._0x492f28}),_0x25446a=this[_0x44bf56(0xa1)][_0x44bf56(0xf2)](_0x34d7ac[_0x44bf56(0x13d)]);}catch(_0x3f3d23){const _0x979bc5=runnerErrorProjection(_0x3f3d23,_0x44bf56(0x11a));this[_0x44bf56(0xa1)][_0x44bf56(0xb1)](_0x34d7ac[_0x44bf56(0xca)],{'itemId':boundedConversationItemId(_0x44bf56(0xa3),_0x34d7ac[_0x44bf56(0xca)]),'kind':_0x44bf56(0xa5),'status':_0x44bf56(0x98),'payload':{..._0x979bc5,'recoverable':!![],'retryAfterMs':null}}),this[_0x44bf56(0xa1)][_0x44bf56(0x10f)](_0x34d7ac[_0x44bf56(0xca)],_0x44bf56(0x117),_0x979bc5,_0x44bf56(0x98));return;}void this[_0x44bf56(0xcd)]({'runId':_0x34d7ac[_0x44bf56(0xca)],'sessionId':_0x34d7ac[_0x44bf56(0x121)],'input':_0x34d7ac[_0x44bf56(0xd5)],'cwd':_0x34d7ac[_0x44bf56(0x11c)],'model':_0x34d7ac[_0x44bf56(0x8f)],'effort':typeof _0x34d7ac[_0x44bf56(0x10d)]===_0x44bf56(0xf4)?_0x34d7ac[_0x44bf56(0x10d)]:'',...typeof _0x34d7ac[_0x44bf56(0xc2)]===_0x44bf56(0xf4)?{'externalSessionId':_0x34d7ac[_0x44bf56(0xc2)]}:{},'environment':_0x15fe4b,'attachments':_0x25446a,'access':typeof _0x34d7ac[_0x44bf56(0x122)]===_0x44bf56(0xf4)?_0x34d7ac[_0x44bf56(0x122)]:_0x44bf56(0xf6),'agent':_0x34d7ac[_0x44bf56(0x83)]===_0x44bf56(0xfd)?_0x44bf56(0xfd):_0x44bf56(0x13b),...typeof _0x34d7ac[_0x44bf56(0x80)]===_0x44bf56(0xf4)?{'personalInstructions':_0x34d7ac[_0x44bf56(0x80)]}:{},'mcp':_0x1ebaa2});}[_0x59f962(0x128)](_0x5afc85,_0x4b7c87){const _0x2da9fc=_0x59f962,_0x87a169=this[_0x2da9fc(0xb6)][_0x2da9fc(0x86)][_0x2da9fc(0x12b)](_0x5afc85);if(_0x87a169===undefined)return![];return void _0x87a169[_0x2da9fc(0x138)][_0x2da9fc(0x12f)](_0x87a169[_0x2da9fc(0x11c)],_0x87a169[_0x2da9fc(0x106)])[_0x2da9fc(0xc8)](()=>{const _0x3956f5=_0x2da9fc;this[_0x3956f5(0xe0)](_0x5afc85,_0x4b7c87===_0x3956f5(0x136)?_0x3956f5(0x87):_0x3956f5(0xe8),_0x3956f5(0xe2),{'status':_0x4b7c87===_0x3956f5(0x136)?_0x3956f5(0x87):_0x3956f5(0xe8)});}),!![];}[_0x59f962(0x12e)](_0x1c0127){const _0x55810c=_0x59f962,_0x12081a=this[_0x55810c(0x118)][_0x55810c(0x12b)](_0x1c0127[_0x55810c(0x7f)]);if(_0x12081a===undefined||_0x12081a[_0x55810c(0xca)]!==_0x1c0127[_0x55810c(0xca)])return![];return clearTimeout(_0x12081a[_0x55810c(0x12c)]),this[_0x55810c(0x118)][_0x55810c(0xba)](_0x1c0127[_0x55810c(0x7f)]),void _0x12081a[_0x55810c(0x138)][_0x55810c(0xd6)](_0x12081a[_0x55810c(0x11c)],_0x12081a[_0x55810c(0xed)],_0x1c0127[_0x55810c(0x11f)]),!![];}[_0x59f962(0xb9)](_0x23d3d5,_0x274d2c,_0x265c5d){const _0x325cb5=_0x59f962,_0x73ae52=this[_0x325cb5(0x104)][_0x325cb5(0x12b)](_0x274d2c);if(_0x73ae52===undefined||_0x73ae52[_0x325cb5(0xca)]!==_0x23d3d5)return![];const _0x2d5685=_0x73ae52[_0x325cb5(0xbe)][_0x325cb5(0x78)](_0x310c35=>{const _0x21afc7=_0x325cb5,_0x59ebe1=_0x265c5d[_0x310c35],_0x2daa32=Array[_0x21afc7(0xc0)](_0x59ebe1)?_0x59ebe1:typeof _0x59ebe1===_0x21afc7(0xf4)?[_0x59ebe1]:[];if(_0x2daa32[_0x21afc7(0x9a)]===-0x2*0x1366+0x2065+0x1*0x667||_0x2daa32[_0x21afc7(0x9a)]>-0x1*-0x635+0x17d1+0x16*-0x15d||_0x2daa32[_0x21afc7(0x10b)](_0x4703dc=>typeof _0x4703dc!==_0x21afc7(0xf4)||_0x4703dc[_0x21afc7(0x9a)]===-0x4*0x875+-0x2a0*-0x9+0xa34||_0x4703dc[_0x21afc7(0x9a)]>0x83d+-0x3b3*-0x3+-0x1162*0x1))throw new Error(_0x21afc7(0xd4));return _0x2daa32;});return clearTimeout(_0x73ae52[_0x325cb5(0x12c)]),this[_0x325cb5(0x104)][_0x325cb5(0xba)](_0x274d2c),void _0x73ae52[_0x325cb5(0x138)][_0x325cb5(0x100)](_0x73ae52[_0x325cb5(0x11c)],_0x73ae52[_0x325cb5(0xed)],_0x2d5685),this[_0x325cb5(0xa1)][_0x325cb5(0xb1)](_0x23d3d5,{'itemId':boundedConversationItemId(_0x325cb5(0x112),_0x274d2c),'kind':_0x325cb5(0xbd),'status':_0x325cb5(0x115),'payload':{},'merge':!![]}),!![];}async[_0x59f962(0xcd)](_0x174e13){const _0x55fe46=_0x59f962,_0x2e08e1=this[_0x55fe46(0xb6)][_0x55fe46(0x13a)](_0x174e13[_0x55fe46(0x8a)],hasMcpConfiguration(_0x174e13[_0x55fe46(0xaf)])?_0x174e13[_0x55fe46(0xca)]:undefined);this[_0x55fe46(0x7e)][_0x55fe46(0x93)](_0x174e13[_0x55fe46(0xca)],_0x2e08e1),this[_0x55fe46(0x132)][_0x55fe46(0x93)](_0x174e13[_0x55fe46(0xca)],_0x174e13[_0x55fe46(0x11c)]),this[_0x55fe46(0xa1)][_0x55fe46(0x10a)][_0x55fe46(0x102)](_0x174e13[_0x55fe46(0xca)]),this[_0x55fe46(0xa1)][_0x55fe46(0x10f)](_0x174e13[_0x55fe46(0xca)],_0x55fe46(0xea),{},_0x55fe46(0x105));try{if(hasMcpConfiguration(_0x174e13[_0x55fe46(0xaf)]))await _0x2e08e1[_0x55fe46(0xab)](_0x174e13[_0x55fe46(0x11c)],_0x174e13[_0x55fe46(0xaf)]);const _0x4928a1=_0x174e13[_0x55fe46(0xc2)]??openCodeSessionId(await _0x2e08e1[_0x55fe46(0x7d)](_0x174e13[_0x55fe46(0x11c)]));if(_0x4928a1===undefined)throw new Error(_0x55fe46(0x114));this[_0x55fe46(0xa1)][_0x55fe46(0xfe)]({'runId':_0x174e13[_0x55fe46(0xca)],'sessionId':_0x174e13[_0x55fe46(0x121)],'runner':_0x55fe46(0x9f),'cwd':_0x174e13[_0x55fe46(0x11c)],'externalSessionId':_0x4928a1}),this[_0x55fe46(0xa1)][_0x55fe46(0xb5)](_0x4928a1,_0x174e13[_0x55fe46(0x121)]);_0x174e13[_0x55fe46(0xc2)]===undefined&&(this[_0x55fe46(0xa1)][_0x55fe46(0x95)](_0x174e13[_0x55fe46(0x121)],_0x4928a1),this[_0x55fe46(0xa1)][_0x55fe46(0x81)](_0x55fe46(0x107),{'sessionId':_0x174e13[_0x55fe46(0x121)],'externalSessionId':_0x4928a1}));const _0x48ab4f=new AbortController();this[_0x55fe46(0xb6)][_0x55fe46(0x86)][_0x55fe46(0x93)](_0x174e13[_0x55fe46(0xca)],{'runId':_0x174e13[_0x55fe46(0xca)],'sessionId':_0x174e13[_0x55fe46(0x121)],'nativeSessionId':_0x4928a1,'cwd':_0x174e13[_0x55fe46(0x11c)],'client':_0x2e08e1,'abort':_0x48ab4f,'access':_0x174e13[_0x55fe46(0x122)],'agent':_0x174e13[_0x55fe46(0xb8)]});let _0x19256f=![],_0x3abd2f,_0x17d8e5;const _0x44750f=new Promise((_0x4a1a93,_0x1f498a)=>{_0x3abd2f=()=>{_0x19256f=!![],_0x4a1a93();},_0x17d8e5=_0x1f498a;});void _0x2e08e1[_0x55fe46(0x127)](_0x174e13[_0x55fe46(0x11c)],_0x48ab4f[_0x55fe46(0x9c)],_0x2b8a21=>this[_0x55fe46(0xd1)](_0x174e13[_0x55fe46(0xca)],_0x4928a1,_0x2b8a21),_0x3abd2f)[_0x55fe46(0xe3)](_0x1964cf=>{const _0x121602=_0x55fe46;if(_0x48ab4f[_0x121602(0x9c)][_0x121602(0x13f)])return;if(!_0x19256f){_0x17d8e5(_0x1964cf);return;}this[_0x121602(0xe0)](_0x174e13[_0x121602(0xca)],_0x121602(0x98),_0x121602(0x134),_0x1964cf,_0x121602(0x11e));}),await _0x44750f,this[_0x55fe46(0xa1)][_0x55fe46(0x10f)](_0x174e13[_0x55fe46(0xca)],_0x55fe46(0xec),{},_0x55fe46(0x110)),this[_0x55fe46(0x10e)][_0x55fe46(0xba)](_0x174e13[_0x55fe46(0xca)]);const _0x514a90=_0x174e13[_0x55fe46(0x13d)][_0x55fe46(0x9a)]===-0x2147+0x1*-0x1993+0x3*0x139e?[]:await this[_0x55fe46(0xa1)][_0x55fe46(0x126)](_0x174e13[_0x55fe46(0x11c)],_0x174e13[_0x55fe46(0xca)],_0x174e13[_0x55fe46(0x13d)]);await _0x2e08e1[_0x55fe46(0xeb)]({'directory':_0x174e13[_0x55fe46(0x11c)],'sessionID':_0x4928a1,'text':openCodeImageInput(_0x174e13[_0x55fe46(0xd5)],_0x514a90),'model':_0x174e13[_0x55fe46(0x8f)],'variant':_0x174e13[_0x55fe46(0x10d)],'agent':_0x174e13[_0x55fe46(0xb8)],..._0x174e13[_0x55fe46(0x80)]===undefined?{}:{'system':_0x174e13[_0x55fe46(0x80)]},'attachments':_0x174e13[_0x55fe46(0x13d)]}),this[_0x55fe46(0x77)][_0x55fe46(0x102)](_0x174e13[_0x55fe46(0xca)]);if(this[_0x55fe46(0x10e)][_0x55fe46(0xba)](_0x174e13[_0x55fe46(0xca)]))this[_0x55fe46(0xe0)](_0x174e13[_0x55fe46(0xca)],_0x55fe46(0xdd),_0x55fe46(0xe2),{'status':_0x55fe46(0xdd)});}catch(_0x5670fb){this[_0x55fe46(0xe0)](_0x174e13[_0x55fe46(0xca)],_0x55fe46(0x98),_0x55fe46(0x134),_0x5670fb,_0x55fe46(0x8d));}}[_0x59f962(0xd1)](_0x40dcd6,_0x22a0ac,_0x2d5d80){const _0xd4832a=_0x59f962,_0xb95adc=record(_0x2d5d80),_0x133b00=record(_0xb95adc?.[_0xd4832a(0xa7)]),_0x36871b=record(_0x133b00?.[_0xd4832a(0xad)])??record(_0x133b00?.[_0xd4832a(0xf9)]),_0x1511c6=typeof _0x133b00?.[_0xd4832a(0xac)]===_0xd4832a(0xf4)?_0x133b00[_0xd4832a(0xac)]:typeof _0x36871b?.[_0xd4832a(0xac)]===_0xd4832a(0xf4)?_0x36871b[_0xd4832a(0xac)]:undefined;if(_0x1511c6!==_0x22a0ac)return;if(_0xb95adc?.[_0xd4832a(0xf3)]===_0xd4832a(0x111)){if(!this[_0xd4832a(0x77)][_0xd4832a(0x84)](_0x40dcd6)){this[_0xd4832a(0x10e)][_0xd4832a(0x102)](_0x40dcd6);return;}this[_0xd4832a(0xe0)](_0x40dcd6,_0xd4832a(0xdd),_0xd4832a(0xe2),{'status':_0xd4832a(0xdd)});return;}if(_0xb95adc?.[_0xd4832a(0xf3)]===_0xd4832a(0x89)){this[_0xd4832a(0xe0)](_0x40dcd6,_0xd4832a(0x98),_0xd4832a(0x134),_0x133b00?.[_0xd4832a(0xa5)]??_0x133b00);return;}if(_0xb95adc?.[_0xd4832a(0xf3)]===_0xd4832a(0xe7)){const _0x19a131=record(_0x133b00?.[_0xd4832a(0xf9)]);if(typeof _0x19a131?.['id']===_0xd4832a(0xf4)&&(_0x19a131[_0xd4832a(0xd7)]===_0xd4832a(0xb7)||_0x19a131[_0xd4832a(0xd7)]===_0xd4832a(0xff))){const _0x4c66fa=this[_0xd4832a(0xbb)][_0xd4832a(0x12b)](_0x40dcd6)??new Map();_0x4c66fa[_0xd4832a(0x93)](_0x19a131['id'],_0x19a131[_0xd4832a(0xd7)]),this[_0xd4832a(0xbb)][_0xd4832a(0x93)](_0x40dcd6,_0x4c66fa);}if(_0x19a131?.[_0xd4832a(0xd7)]===_0xd4832a(0xff)&&typeof _0x19a131[_0xd4832a(0x85)]===_0xd4832a(0xf4))this[_0xd4832a(0xb6)][_0xd4832a(0xb2)][_0xd4832a(0x93)](_0x19a131[_0xd4832a(0x85)],_0x40dcd6);return;}if(_0xb95adc?.[_0xd4832a(0xf3)]===_0xd4832a(0x8c)){const _0xea7aa4=record(_0x133b00?.[_0xd4832a(0xad)]);if(typeof _0xea7aa4?.[_0xd4832a(0xef)]!==_0xd4832a(0xf4)||this[_0xd4832a(0xbb)][_0xd4832a(0x12b)](_0x40dcd6)?.[_0xd4832a(0x12b)](_0xea7aa4[_0xd4832a(0xef)])!==_0xd4832a(0xff))return;const _0x616fe8=openCodePart(_0xea7aa4,this[_0xd4832a(0xb6)][_0xd4832a(0x86)][_0xd4832a(0x12b)](_0x40dcd6)?.[_0xd4832a(0xb8)]===_0xd4832a(0xfd));if(_0x616fe8!==undefined)this[_0xd4832a(0xa1)][_0xd4832a(0xb1)](_0x40dcd6,_0x616fe8);return;}if(_0xb95adc?.[_0xd4832a(0xf3)]===_0xd4832a(0xc4))this[_0xd4832a(0x12d)](_0x40dcd6,_0x133b00);if(_0xb95adc?.[_0xd4832a(0xf3)]===_0xd4832a(0xa8))this[_0xd4832a(0xf0)](_0x40dcd6,_0x133b00);}[_0x59f962(0x12d)](_0x1c8cd7,_0x5a1008){const _0x13d807=_0x59f962,_0x5edb55=this[_0x13d807(0xb6)][_0x13d807(0x86)][_0x13d807(0x12b)](_0x1c8cd7),_0x1a690b=typeof _0x5a1008?.['id']===_0x13d807(0xf4)?_0x5a1008['id']:undefined;if(_0x5edb55===undefined||_0x1a690b===undefined)return;if(_0x5edb55[_0x13d807(0x122)]===_0x13d807(0x103)){void _0x5edb55[_0x13d807(0x138)][_0x13d807(0xd6)](_0x5edb55[_0x13d807(0x11c)],_0x1a690b,_0x13d807(0x101));return;}const _0x1224f9=_0x13d807(0xcf)+_0x1a690b,_0x2eaa22=Date[_0x13d807(0xaa)]()+this[_0x13d807(0xc6)],_0x3fea69={'toolName':typeof _0x5a1008?.[_0x13d807(0xbf)]===_0x13d807(0xf4)?_0x5a1008[_0x13d807(0xbf)]:_0x13d807(0xf8),'input':{'patterns':Array[_0x13d807(0xc0)](_0x5a1008?.[_0x13d807(0x92)])?_0x5a1008[_0x13d807(0x92)]:[]}};try{this[_0x13d807(0xa1)][_0x13d807(0xf1)]({'runId':_0x1c8cd7,'approvalId':_0x1224f9,'payload':_0x3fea69,'expiresAt':_0x2eaa22});}catch{void _0x5edb55[_0x13d807(0x138)][_0x13d807(0xd6)](_0x5edb55[_0x13d807(0x11c)],_0x1a690b,_0x13d807(0x11d));return;}const _0x1861a2=()=>{const _0x57ac31=_0x13d807,_0x83173a=this[_0x57ac31(0x118)][_0x57ac31(0x12b)](_0x1224f9);if(_0x83173a===undefined)return;try{this[_0x57ac31(0xa1)][_0x57ac31(0xd8)](_0x1224f9);}catch(_0x3ef8dd){if(_0x3ef8dd instanceof Error&&_0x3ef8dd[_0x57ac31(0xb3)]===_0x57ac31(0xe5)){const _0x176910=setTimeout(_0x1861a2,Math[_0x57ac31(0x12a)](0xa3*0x1+-0x53f+-0x1*-0x49d,_0x2eaa22-Date[_0x57ac31(0xaa)]()));this[_0x57ac31(0x118)][_0x57ac31(0x93)](_0x1224f9,{..._0x83173a,'timer':_0x176910});return;}}this[_0x57ac31(0x118)][_0x57ac31(0xba)](_0x1224f9),this[_0x57ac31(0xa1)][_0x57ac31(0x10f)](_0x1c8cd7,_0x57ac31(0x125),{'approvalId':_0x1224f9}),void _0x5edb55[_0x57ac31(0x138)][_0x57ac31(0xd6)](_0x5edb55[_0x57ac31(0x11c)],_0x1a690b,_0x57ac31(0x11d));},_0x2ea515=setTimeout(_0x1861a2,this[_0x13d807(0xc6)]);this[_0x13d807(0x118)][_0x13d807(0x93)](_0x1224f9,{'runId':_0x1c8cd7,'requestId':_0x1a690b,'client':_0x5edb55[_0x13d807(0x138)],'cwd':_0x5edb55[_0x13d807(0x11c)],'timer':_0x2ea515}),this[_0x13d807(0xa1)][_0x13d807(0x130)]({'runId':_0x1c8cd7,'approvalId':_0x1224f9,'payload':_0x3fea69,'expiresAt':_0x2eaa22});}[_0x59f962(0xf0)](_0x19b2eb,_0x18e04e){const _0x2d5ddc=_0x59f962,_0x2d4bab=this[_0x2d5ddc(0xb6)][_0x2d5ddc(0x86)][_0x2d5ddc(0x12b)](_0x19b2eb),_0x3f150a=typeof _0x18e04e?.['id']===_0x2d5ddc(0xf4)?_0x18e04e['id']:undefined,_0x34cff6=_0x18e04e?.[_0x2d5ddc(0x104)];if(_0x2d4bab===undefined||_0x3f150a===undefined)return;const _0x1e24ba=openCodeQuestions(_0x34cff6);if(_0x1e24ba[_0x2d5ddc(0x9a)]===0x6d4+0x9b4*0x3+-0x23f0||this[_0x2d5ddc(0x104)][_0x2d5ddc(0x84)](_0x3f150a))return;const _0x12cf5a=setTimeout(()=>{const _0x52fc9f=_0x2d5ddc,_0x410b03=this[_0x52fc9f(0x104)][_0x52fc9f(0x12b)](_0x3f150a);if(_0x410b03===undefined)return;this[_0x52fc9f(0x104)][_0x52fc9f(0xba)](_0x3f150a),void _0x410b03[_0x52fc9f(0x138)][_0x52fc9f(0x135)](_0x410b03[_0x52fc9f(0x11c)],_0x410b03[_0x52fc9f(0xed)]),this[_0x52fc9f(0xa1)][_0x52fc9f(0xb1)](_0x19b2eb,{'itemId':boundedConversationItemId(_0x52fc9f(0x112),_0x3f150a),'kind':_0x52fc9f(0xbd),'status':_0x52fc9f(0x98),'payload':{'requestId':_0x3f150a,'questions':_0x1e24ba,'errorCode':_0x52fc9f(0xf5)},'merge':!![]});},this[_0x2d5ddc(0xc6)]);this[_0x2d5ddc(0x104)][_0x2d5ddc(0x93)](_0x3f150a,{'runId':_0x19b2eb,'requestId':_0x3f150a,'client':_0x2d4bab[_0x2d5ddc(0x138)],'cwd':_0x2d4bab[_0x2d5ddc(0x11c)],'questionIds':_0x1e24ba[_0x2d5ddc(0x78)](_0xdd2ba7=>_0xdd2ba7['id']),'timer':_0x12cf5a}),this[_0x2d5ddc(0xa1)][_0x2d5ddc(0xb1)](_0x19b2eb,{'itemId':boundedConversationItemId(_0x2d5ddc(0x112),_0x3f150a),'kind':_0x2d5ddc(0xbd),'status':_0x2d5ddc(0xb4),'payload':{'requestId':_0x3f150a,'questions':_0x1e24ba}});}[_0x59f962(0xe0)](_0x4ab12e,_0x49c52c,_0x2210d4,_0x2fc43d,_0x5841ee=_0x59f962(0x13e)){const _0x38d2d2=_0x59f962,_0x225c9c=this[_0x38d2d2(0xb6)][_0x38d2d2(0x86)][_0x38d2d2(0x12b)](_0x4ab12e),_0x484a49=_0x225c9c?.[_0x38d2d2(0x11c)]??this[_0x38d2d2(0x132)][_0x38d2d2(0x12b)](_0x4ab12e),_0x5ed948=_0x225c9c?.[_0x38d2d2(0x138)]??this[_0x38d2d2(0x7e)][_0x38d2d2(0x12b)](_0x4ab12e);if(_0x225c9c===undefined&&_0x484a49===undefined&&_0x5ed948===undefined)return;_0x225c9c?.[_0x38d2d2(0x12f)][_0x38d2d2(0x12f)](),this[_0x38d2d2(0xb6)][_0x38d2d2(0x86)][_0x38d2d2(0xba)](_0x4ab12e),this[_0x38d2d2(0x132)][_0x38d2d2(0xba)](_0x4ab12e),this[_0x38d2d2(0x7e)][_0x38d2d2(0xba)](_0x4ab12e),this[_0x38d2d2(0x77)][_0x38d2d2(0xba)](_0x4ab12e),this[_0x38d2d2(0x10e)][_0x38d2d2(0xba)](_0x4ab12e),this[_0x38d2d2(0xbb)][_0x38d2d2(0xba)](_0x4ab12e),this[_0x38d2d2(0xa1)][_0x38d2d2(0x10a)][_0x38d2d2(0xba)](_0x4ab12e);for(const [_0x3c5341,_0x281261]of this[_0x38d2d2(0x118)])_0x281261[_0x38d2d2(0xca)]===_0x4ab12e&&(clearTimeout(_0x281261[_0x38d2d2(0x12c)]),this[_0x38d2d2(0x118)][_0x38d2d2(0xba)](_0x3c5341));for(const [_0x1671b8,_0x4e6d5b]of this[_0x38d2d2(0x104)])_0x4e6d5b[_0x38d2d2(0xca)]===_0x4ab12e&&(clearTimeout(_0x4e6d5b[_0x38d2d2(0x12c)]),this[_0x38d2d2(0x104)][_0x38d2d2(0xba)](_0x1671b8));if(_0x49c52c===_0x38d2d2(0x98)){const _0x5310d8=runnerErrorProjection(_0x2fc43d,_0x5841ee);this[_0x38d2d2(0xa1)][_0x38d2d2(0xb1)](_0x4ab12e,{'itemId':boundedConversationItemId(_0x38d2d2(0xa3),_0x4ab12e),'kind':_0x38d2d2(0xa5),'status':_0x38d2d2(0x98),'payload':{..._0x5310d8,'recoverable':!![],'retryAfterMs':null}}),_0x2fc43d=_0x5310d8;}this[_0x38d2d2(0xa1)][_0x38d2d2(0x10f)](_0x4ab12e,_0x2210d4,_0x2fc43d,_0x49c52c);if(_0x5ed948!==undefined)this[_0x38d2d2(0xb6)][_0x38d2d2(0xc9)](_0x5ed948);}}function openCodeImageInput(_0x1268fc,_0x357b4b){const _0x29222a=_0x59f962;if(_0x357b4b[_0x29222a(0x9a)]===-0x1555+-0x15ad+0x2b02)return _0x1268fc;const _0x160772=_0x357b4b[_0x29222a(0x78)](_0x194422=>'-\x20'+JSON[_0x29222a(0xa2)](_0x194422))[_0x29222a(0x108)]('\x0a');return _0x1268fc+_0x29222a(0xda)+_0x160772;}function hasMcpConfiguration(_0x1bf980){const _0xf14be6=_0x59f962;return _0x1bf980!==null&&typeof _0x1bf980===_0xf14be6(0x7b)&&Object[_0xf14be6(0xa6)](_0x1bf980)[_0xf14be6(0x9a)]>0xcfd+-0xee1+0x1e4;}function openCodePart(_0x53195b,_0x1ca251=![]){const _0x705f42=_0x59f962,_0x4ab563=typeof _0x53195b?.['id']===_0x705f42(0xf4)?_0x53195b['id']:undefined;if(_0x4ab563===undefined||typeof _0x53195b?.[_0x705f42(0xf3)]!==_0x705f42(0xf4))return undefined;const _0x34fbba=boundedConversationItemId(_0x705f42(0x9f),_0x4ab563);if(_0x53195b[_0x705f42(0xf3)]===_0x705f42(0xfa)&&typeof _0x53195b[_0x705f42(0xfa)]===_0x705f42(0xf4))return{'itemId':_0x34fbba,'kind':_0x1ca251?_0x705f42(0xfd):_0x705f42(0xd2),'status':record(_0x53195b[_0x705f42(0x9b)])?.[_0x705f42(0x120)]===undefined?_0x705f42(0xe4):_0x705f42(0x115),'payload':_0x1ca251?{'explanation':compactRunnerText(_0x53195b[_0x705f42(0xfa)],0x56bc+-0x5939*-0x1+-0x61d5),'steps':[]}:{'text':_0x53195b[_0x705f42(0xfa)],'format':_0x705f42(0x139),'model':null},'merge':!![]};if(_0x53195b[_0x705f42(0xf3)]===_0x705f42(0x94)&&typeof _0x53195b[_0x705f42(0xfa)]===_0x705f42(0xf4))return{'itemId':_0x34fbba,'kind':_0x705f42(0xe1),'status':record(_0x53195b[_0x705f42(0x9b)])?.[_0x705f42(0x120)]===undefined?_0x705f42(0xe4):_0x705f42(0x115),'payload':{'sections':[{'index':0x0,'text':_0x53195b[_0x705f42(0xfa)]}]},'merge':!![]};if(_0x53195b[_0x705f42(0xf3)]===_0x705f42(0x131)&&typeof _0x53195b[_0x705f42(0x131)]===_0x705f42(0xf4)){if(_0x53195b[_0x705f42(0x131)]===_0x705f42(0xfb))return undefined;const _0x2f2aa2=record(_0x53195b[_0x705f42(0xd3)]),_0x2cc70d=_0x2f2aa2?.[_0x705f42(0xdb)]===_0x705f42(0xae)?_0x705f42(0x115):_0x2f2aa2?.[_0x705f42(0xdb)]===_0x705f42(0xa5)?_0x705f42(0x98):_0x705f42(0xe4),_0x435fe1=normalizeOpenCodeTool(_0x53195b[_0x705f42(0x131)],_0x2f2aa2);return{'itemId':_0x34fbba,'kind':_0x435fe1[_0x705f42(0x113)],'status':_0x2cc70d,'payload':_0x435fe1[_0x705f42(0xd9)],'merge':!![]};}if(_0x53195b[_0x705f42(0xf3)]===_0x705f42(0xce))return{'itemId':_0x34fbba,'kind':_0x705f42(0xb0),'status':_0x705f42(0x115),'payload':{'phase':_0x705f42(0x115),'summary':_0x705f42(0x7c),'summaryCode':_0x705f42(0x124)}};if(_0x53195b[_0x705f42(0xf3)]===_0x705f42(0x82))return{'itemId':_0x34fbba,'kind':_0x705f42(0xa9),'status':_0x705f42(0x115),'payload':openCodePatchToolPayload(),'merge':!![]};if(_0x53195b[_0x705f42(0xf3)]===_0x705f42(0xbc)||_0x53195b[_0x705f42(0xf3)]===_0x705f42(0x8b))return undefined;if(_0x53195b[_0x705f42(0xf3)]===_0x705f42(0xfa)||_0x53195b[_0x705f42(0xf3)]===_0x705f42(0x94))return undefined;return{'itemId':_0x34fbba,'kind':_0x705f42(0x8e),'status':record(_0x53195b[_0x705f42(0x9b)])?.[_0x705f42(0x120)]===undefined?_0x705f42(0xe4):_0x705f42(0x115),'payload':{'sourceEventType':_0x705f42(0xcf)+_0x53195b[_0x705f42(0xf3)],'label':_0x705f42(0x88)+compactRunnerText(_0x53195b[_0x705f42(0xf3)],-0x73+-0x1738+-0x17*-0x10d)},'merge':!![]};}function openCodeSessionId(_0x15f912){const _0x5a4a9e=_0x59f962,_0x2f00e3=record(_0x15f912);return typeof _0x2f00e3?.['id']===_0x5a4a9e(0xf4)?_0x2f00e3['id']:undefined;}function record(_0x5365e4){const _0x207a4c=_0x59f962;return typeof _0x5365e4===_0x207a4c(0x7b)&&_0x5365e4!==null&&!Array[_0x207a4c(0xc0)](_0x5365e4)?_0x5365e4:undefined;}function _0x4d17(){const _0x2b1ac2=['CMvWBhLqzxjTAxnZAw9U','CM9Szq','zxHWAxjLqxbWCM92ywW','Cgf5Bg9Hza','cGPjzIbHBIbPBMXPBMuGAw1Hz2uGAw4GDgHPCYbTzxnZywDLigLZihvUyxzHAwXHyMXLlcb1C2uGDgHLihjLywqGDg9VBcbVBIb0AguGy29YCMvZCg9UzgLUzYbJB3b5igjLBg93lIbeBYbUB3qGCMvHzcbPDcbHz2fPBIb3AgvUihrOzsbPBMXPBMuGAw1Hz2uGAxmGywXYzwfKEsb2AxnPyMXLoGO','C3rHDhvZ','t1bftKnprevFq09nuefdvf9gquLmruq','u1vdq0vfreve','y29TBwfUzfn0yxrLCW','n2j4EujNAW','zMLUAxnO','CMvHC29UAw5Nx3n1Bw1HCNK','CNvUlMnVBxbSzxrLza','y2f0y2G','su5Fufjpr1jfu1m','qvbquK9wquXFtK9ux0vyueLsruq','BwnWu2vJCMv0rw52AxjVBM1LBNq','BwvZC2fNzs51CgrHDgvK','q0foq0vmteve','CNvUq29TCgfJDa','CNvUlNn0yxj0zwq','ChjVBxb0','CNvUlNj1BM5PBMC','CMvXDwvZDeLK','nteXntCYmgflvKLhEa','BwvZC2fNzuLe','CMvXDwvZDff1zxn0Aw9U','y3jLyxrLqxbWCM92ywW','CgfYC2vbDhrHy2HTzw50CW','DhLWzq','C3rYAw5N','vvnfuL9jtLbvvf9fwfbjuKve','zgvMyxvSDa','C2v0q29TBwfUzfn0yxrL','t3bLBKnVzguGCgvYBwLZC2LVBG','Aw5MBW','Dgv4Da','CxvLC3rPB24','ntq3ntr1v3nds1a','CgXHBG','ywrVChq','yxnZAxn0yw50','CMvWBhLrDwvZDgLVBG','qvbquK9wruq','ywrK','yxv0BW','CxvLC3rPB25Z','u1rbuLrjtKC','BMf0AxzLu2vZC2LVBKLK','C2vZC2LVBI5LEhrLCM5HBc1Pza','AM9PBG','y29TBwfUzfn0yxrL','ywn0AxzL','C29Tzq','BwnWq29UzMLNDxjHDgLVBG','zwzMB3j0','CgvUzgLUz0LKBgu','zw1PDa','uLvotKLorW','C2vZC2LVBI5PzgXL','B3bLBMnVzguTAw5WDxq','A2LUza','t1bftKnprevFu0vtu0LptL9jtLzbteLe','q09nueXfveve','tufsx01btKfhruq','CNvUlNjLAMvJDgvK','CgvYBwLZC2LVBNm','sw1WBgvTzw50ihrOzsbWBgfUigfIB3zLlG','uLvotKvsx0Loufvux0LovKfmsuq','C2vJCMv0rw52AxjVBM1LBNq','y3DK','uKvkrunuruq','t1bftKnprevFrvzftLrFrKfjteve','zgvJAxnPB24','zw5K','C2vZC2LVBKLK','ywnJzxnZ','y29TCgfJDa','q09ovevyvf9dt01qqunuruq','yxbWCM92ywWUzxHWAxjLza','CgvYC2LZDef0DgfJAg1LBNrZ','C3vIC2nYAwjL','y2fUy2vS','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','Bwf4','z2v0','DgLTzxi','CMvXDwvZDfbLCM1PC3nPB24','zgvJAwrLqxbWCM92ywW','ywjVCNq','ChvIBgLZAefWChjVDMfS','Dg9VBa','C3rHCNrPBMDdD2rZ','uLvotKvsx0nptu1btKrFvu5bvKfjtefcteu','CNvUlMzHAwXLza','CMvQzwn0uxvLC3rPB24','su5urvjsvvbu','C3rHCNq','y2XPzw50','BwfYA2rVD24','BwfUywDLzenSAwvUDa','yNvPBgq','BMf0AxzLq29UDhjVBa','yxr0ywnOBwvUDhm','t1bftKnprevFuLvox0zbsuXfra','ywjVCNrLza','ChjVBxb0qwrTAxr0zwq','BwfW','oxnVCNvuzW','mta0nZeZntjUy2jRt3u','B2jQzwn0','q29UDgv4DcbJB21Wywn0zwq','y3jLyxrLu2vZC2LVBG','C3rHCNrPBMDdBgLLBNrZ','yxbWCM92ywXjza','CgvYC29UywXjBNn0CNvJDgLVBNm','C2vUza','Cgf0y2G','y29SBgfIB3jHDgLVBK1Vzgu','AgfZ','CgfYzw50suq','zxHLy3v0Aw9U','su5urvjsvvburuq','t3bLBKnVzguG','C2vZC2LVBI5LCNjVCG','zw52AxjVBM1LBNq','C3rLCc1MAw5PC2G','BwvZC2fNzs5Wyxj0lNvWzgf0zwq','t1bftKnprevFuLvox1nuqvjux0zbsuXfra','Dw5RBM93BG','Bw9KzwW','sw1WBgvTzw50','mtyYnZe5mtbkBMvpvgO','Cgf0DgvYBNm','C2v0','CMvHC29UAw5N','ChjVBw90zq','mZe3mZGWmLHjzeDguG','y2XLyxjdB21Tyw5Ku3rHDgu','rKfjteve','ugXHBIbnB2rL','BgvUz3rO','DgLTzq','C2LNBMfS','zxHLy3v0zunVBw1HBMq','mtq3odm0nMXivMTWqW','B3bLBMnVzgu','l3bSyw4','Ag9ZDa','C3rYAw5NAwz5','CNvUBMvYlwvYCM9Y','u3vIC2vXDwvUDcbTzxnZywDLCYb1C2uGDgHLie9Wzw5dB2rLifbSyw4GqwDLBNqGzM9YihjLywqTB25SEsbHBMfSExnPCY4','zxjYB3i','A2v5CW','ChjVCgvYDgLLCW','CxvLC3rPB24UyxnRzwq','Dg9VBf9JywXS','BM93','y29UzMLNDxjLtwnW','C2vZC2LVBKLe','CgfYDa','y29TCgXLDgvK','BwnW','y29UDgv4Df9JB21Wywn0Aw9U','zw1PDeL0zw0','BwfUywDLzfr1CM5Z','BwvZC2fNzq','uevoreLorW','CMvTzw1IzxjoyxrPDMu','CNvUBMvY','DxnLCG','ywDLBNq','CMvZCg9UzfvZzxjjBNb1Da','zgvSzxrL','BwvZC2fNzvjVBgvZ','C3rLCc1ZDgfYDa','DxnLCL9PBNb1Df9Yzxf1zxn0','CxvLC3rPB25jzhm','CgvYBwLZC2LVBG','AxnbCNjHEq','mZm3mtm4mdf1ruPVzuu','zxH0zxjUywXtzxnZAw9Uswq','BwnWsw5ZDgfSBgf0Aw9UCW','CgvYBwLZC2LVBI5HC2TLza','CMfUzg9Tvvvjra','Aw50zxjHy3rPB25uAw1LB3v0txm','ndLnzxnjAee','zMLUywXSEq','CMvSzwfZzu1HBMfNzwrdBgLLBNq','CNvUswq','Aw50zxjJzxb0zwq','C3vTBwfYAxPL','CNvU','y29TCgfJDgLVBG','B3bLBMnVzgu6','nefzr3n5ua','zxzLBNq','yxnZAxn0yw50x21LC3nHz2u','C3rHDgu','vvnfuL9jtLbvvf9jtLzbteLe','Aw5WDxq'];_0x4d17=function(){return _0x2b1ac2;};return _0x4d17();}
2
+ const _0x18d0ae=_0x337c;(function(_0x152ac5,_0x3eb6ed){const _0x2f1f9e=_0x337c,_0x1f7f56=_0x152ac5();while(!![]){try{const _0x349770=parseInt(_0x2f1f9e(0x13a))/(0x1*0x1773+0x2449+0x6a3*-0x9)*(parseInt(_0x2f1f9e(0xa5))/(-0x22ff+0xd*0x259+0x47c))+-parseInt(_0x2f1f9e(0x115))/(0xb01+0x1065+-0x1b63)+-parseInt(_0x2f1f9e(0x12f))/(-0xcf9+0x1c49+-0xf4c)*(-parseInt(_0x2f1f9e(0x123))/(0x1*-0x1e8f+0x16fd*0x1+0x797))+-parseInt(_0x2f1f9e(0x126))/(-0x47*0x2e+-0x1c11+-0x28d9*-0x1)+-parseInt(_0x2f1f9e(0xba))/(0x97b+-0x159f+-0xc2b*-0x1)*(parseInt(_0x2f1f9e(0x9c))/(0xb3f*-0x1+-0x1331+0x8*0x3cf))+-parseInt(_0x2f1f9e(0xd1))/(-0x194*-0x11+0x2261+-0x14*0x30f)*(-parseInt(_0x2f1f9e(0xef))/(0x1d51+0x1ca*0x9+-0x2d61))+parseInt(_0x2f1f9e(0xb1))/(0x2*0x626+0x1d6f*0x1+-0x536*0x8);if(_0x349770===_0x3eb6ed)break;else _0x1f7f56['push'](_0x1f7f56['shift']());}catch(_0x4e73db){_0x1f7f56['push'](_0x1f7f56['shift']());}}}(_0x5400,-0x15e55+-0x1293f+0x6e*0xa94));import{parseSecretEnvironment}from'../../util/secret-environment.js';import{runnerErrorProjection}from'../../util/runner-error.js';import{boundedConversationItemId,compactRunnerText}from'../codex/conversation-parser.js';import{openCodePatchToolPayload,openCodeQuestions}from'./conversation-parser.js';import{normalizeOpenCodeTool}from'./tool-normalizer.js';function _0x337c(_0x314902,_0x50258c){_0x314902=_0x314902-(0x1*0xdd5+0x3*0x449+-0x3bc*0x7);const _0x35c130=_0x5400();let _0xf27c02=_0x35c130[_0x314902];if(_0x337c['fSkNoM']===undefined){var _0x36e276=function(_0x49335d){const _0x8e9c3d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36ad32='',_0x490386='';for(let _0x3ef4e5=0x1913+-0xa1*-0x8+0x7*-0x44d,_0x82b529,_0x208dfa,_0x3dba3a=0x589+-0x1a3e+0x14b5;_0x208dfa=_0x49335d['charAt'](_0x3dba3a++);~_0x208dfa&&(_0x82b529=_0x3ef4e5%(0x10c*-0x23+0x62d*-0x5+0x4389)?_0x82b529*(-0x1*-0xddc+-0x6fe*-0x4+0x3*-0xddc)+_0x208dfa:_0x208dfa,_0x3ef4e5++%(0x1*0x1d03+0x1ec1+-0x8*0x778))?_0x36ad32+=String['fromCharCode'](-0x12b0+0x1a*0x16a+-0x1115&_0x82b529>>(-(0x1985+0x1461+-0x2de4)*_0x3ef4e5&0x5*-0x1f2+-0x79*-0x29+0x55*-0x1d)):0xd*-0xc1+0x2*-0xc45+0x2257){_0x208dfa=_0x8e9c3d['indexOf'](_0x208dfa);}for(let _0x4eda69=0x1*-0x2166+0x1*0x17bd+-0x1*-0x9a9,_0x402fdc=_0x36ad32['length'];_0x4eda69<_0x402fdc;_0x4eda69++){_0x490386+='%'+('00'+_0x36ad32['charCodeAt'](_0x4eda69)['toString'](-0x22bd+0x1901+0x9cc))['slice'](-(-0x2*-0x1366+-0x193c+-0xd8e));}return decodeURIComponent(_0x490386);};_0x337c['pQvMgz']=_0x36e276,_0x337c['Crptml']={},_0x337c['fSkNoM']=!![];}const _0x4642a5=_0x35c130[-0x267a+-0x1*0x1493+-0x13af*-0x3];_0x337c['ARuPae']!==_0x4642a5&&(_0x337c['Crptml']={},_0x337c['ARuPae']=_0x4642a5);const _0x2727bb=_0x337c['Crptml'][_0x314902];return _0x2727bb===undefined?(_0xf27c02=_0x337c['pQvMgz'](_0xf27c02),_0x337c['Crptml'][_0x314902]=_0xf27c02):_0xf27c02=_0x2727bb,_0xf27c02;}export class OpenCodeManagedRunController{[_0x18d0ae(0x136)];[_0x18d0ae(0xdb)];[_0x18d0ae(0x109)];[_0x18d0ae(0x131)]=new Map();[_0x18d0ae(0xda)]=new Map();[_0x18d0ae(0x151)]=new Map();[_0x18d0ae(0xe4)]=new Set();[_0x18d0ae(0x116)]=new Set();[_0x18d0ae(0x93)]=new Map();[_0x18d0ae(0xe8)]=new Map();[_0x18d0ae(0xa4)]=new Map();[_0x18d0ae(0x10f)]=new Map();[_0x18d0ae(0x14a)]=new Map();constructor(_0x314902,_0x50258c,_0x35c130=(-0x32+0x25*0x109+-0x79d*0x5)*(-0x139e3+-0x1cd5d+0x3f1a0)){const _0x40d67a=_0x18d0ae;this[_0x40d67a(0x136)]=_0x314902,this[_0x40d67a(0xdb)]=_0x50258c,this[_0x40d67a(0x109)]=_0x35c130;}async[_0x18d0ae(0xb6)](_0xf27c02,_0x36e276,_0x4642a5){const _0x197d62=_0x18d0ae;if(_0x36e276['id']===_0x197d62(0x13e))return this[_0x197d62(0x13e)](_0xf27c02,_0x4642a5[_0x197d62(0xa2)]);if(_0x36e276['id']!==_0x197d62(0x153))throw new Error(_0x197d62(0xdd));const _0x2727bb=this[_0x197d62(0xdb)][_0x197d62(0x140)](_0xf27c02['id'],_0x197d62(0x153));if(_0x2727bb?.[_0x197d62(0xb3)])this[_0x197d62(0xdb)][_0x197d62(0xcf)](_0xf27c02['id'],_0x197d62(0x153));else this[_0x197d62(0xdb)][_0x197d62(0x97)](_0xf27c02['id'],{'commandId':_0x197d62(0x153),'active':!![],'label':_0x197d62(0xe2),'detail':_0x197d62(0xce),'closable':!![],'closeInput':_0x197d62(0x101),'continuation':{'label':_0x197d62(0x11c),'prompt':_0x197d62(0x144)}});return{'command':_0x36e276['id'],'states':this[_0x197d62(0xdb)][_0x197d62(0x91)](_0xf27c02['id'])};}[_0x18d0ae(0x13e)](_0x49335d,_0x8e9c3d){const _0x10e4a3=_0x18d0ae;if(_0x49335d[_0x10e4a3(0x12b)]===null||_0x49335d[_0x10e4a3(0x12a)]===null||_0x49335d[_0x10e4a3(0x8e)]!==_0x10e4a3(0x147)||this[_0x10e4a3(0xdb)][_0x10e4a3(0xaa)](_0x49335d['id']))throw new Error(_0x10e4a3(0xdd));const _0x36ad32=crypto[_0x10e4a3(0x125)](),_0x490386=this[_0x10e4a3(0x136)][_0x10e4a3(0x9a)](_0x8e9c3d);return this[_0x10e4a3(0xdb)][_0x10e4a3(0xd9)]({'runId':_0x36ad32,'sessionId':_0x49335d['id'],'runner':_0x10e4a3(0xf8),'cwd':_0x49335d[_0x10e4a3(0xeb)],'externalSessionId':_0x49335d[_0x10e4a3(0x12b)]}),this[_0x10e4a3(0xdb)][_0x10e4a3(0xb3)][_0x10e4a3(0xad)](_0x36ad32),this[_0x10e4a3(0x136)][_0x10e4a3(0xdf)][_0x10e4a3(0xe7)](_0x36ad32,{'runId':_0x36ad32,'sessionId':_0x49335d['id'],'nativeSessionId':_0x49335d[_0x10e4a3(0x12b)],'cwd':_0x49335d[_0x10e4a3(0xeb)],'client':_0x490386,'abort':new AbortController(),'access':_0x49335d[_0x10e4a3(0xfc)]??_0x10e4a3(0xab),'agent':_0x10e4a3(0x90)}),this[_0x10e4a3(0xdb)][_0x10e4a3(0x145)](_0x36ad32,_0x10e4a3(0xea),{'command':_0x10e4a3(0x13e)},_0x10e4a3(0x11e)),this[_0x10e4a3(0xdb)][_0x10e4a3(0xf3)](_0x36ad32,openCodeCompactionItem(_0x10e4a3(0x10e),_0x36ad32,![])),void this[_0x10e4a3(0xf5)](_0x36ad32,_0x49335d[_0x10e4a3(0x12a)]),{'command':_0x10e4a3(0x13e),'run':this[_0x10e4a3(0xdb)][_0x10e4a3(0x142)](_0x36ad32),'states':this[_0x10e4a3(0xdb)][_0x10e4a3(0x91)](_0x49335d['id'])};}async[_0x18d0ae(0xf5)](_0x3ef4e5,_0x82b529){const _0x31326e=_0x18d0ae,_0x208dfa=this[_0x31326e(0x136)][_0x31326e(0xdf)][_0x31326e(0xc3)](_0x3ef4e5);if(_0x208dfa===undefined)return;this[_0x31326e(0xdb)][_0x31326e(0x145)](_0x3ef4e5,_0x31326e(0x10c),{'command':_0x31326e(0x13e)},_0x31326e(0xb5));try{await _0x208dfa[_0x31326e(0xc0)][_0x31326e(0x112)](_0x208dfa[_0x31326e(0xeb)],_0x208dfa[_0x31326e(0x11a)],_0x82b529),this[_0x31326e(0xdb)][_0x31326e(0xf3)](_0x3ef4e5,openCodeCompactionItem(_0x31326e(0x10e),_0x3ef4e5,!![])),this[_0x31326e(0xcd)](_0x3ef4e5,_0x31326e(0xbf),_0x31326e(0xd3),{'status':_0x31326e(0xbf)});}catch(_0x3dba3a){this[_0x31326e(0xcd)](_0x3ef4e5,_0x31326e(0x128),_0x31326e(0x9d),_0x3dba3a,_0x31326e(0xfa));}}[_0x18d0ae(0x14d)](_0x4eda69){const _0x4256a0=_0x18d0ae,_0x402fdc=_0x4eda69[_0x4256a0(0xff)];if(_0x402fdc[_0x4256a0(0x136)]!==_0x4256a0(0xf8)||typeof _0x402fdc[_0x4256a0(0x134)]!==_0x4256a0(0xd6)||typeof _0x402fdc[_0x4256a0(0x8c)]!==_0x4256a0(0xd6)||typeof _0x402fdc[_0x4256a0(0xa3)]!==_0x4256a0(0xd6)||typeof _0x402fdc[_0x4256a0(0xeb)]!==_0x4256a0(0xd6)||typeof _0x402fdc[_0x4256a0(0x12a)]!==_0x4256a0(0xd6)||this[_0x4256a0(0xdb)][_0x4256a0(0x118)]()||this[_0x4256a0(0xdb)][_0x4256a0(0xb3)][_0x4256a0(0x8d)](_0x402fdc[_0x4256a0(0x134)]))return;let _0x466a12,_0x2e5758,_0x840a07,_0x47f05b;try{_0x466a12=parseSecretEnvironment(_0x402fdc[_0x4256a0(0xa2)]),_0x2e5758=parseSecretEnvironment(_0x402fdc[_0x4256a0(0xf9)]),_0x840a07=this[_0x4256a0(0x136)][_0x4256a0(0x111)](_0x402fdc[_0x4256a0(0x107)],{..._0x466a12,..._0x2e5758}),_0x47f05b=this[_0x4256a0(0xdb)][_0x4256a0(0xb0)](_0x402fdc[_0x4256a0(0x14e)]);}catch(_0x15f3aa){const _0xf392fa=runnerErrorProjection(_0x15f3aa,_0x4256a0(0xb2));this[_0x4256a0(0xdb)][_0x4256a0(0xf3)](_0x402fdc[_0x4256a0(0x134)],{'itemId':boundedConversationItemId(_0x4256a0(0xd2),_0x402fdc[_0x4256a0(0x134)]),'kind':_0x4256a0(0xe0),'status':_0x4256a0(0x128),'payload':{..._0xf392fa,'recoverable':!![],'retryAfterMs':null}}),this[_0x4256a0(0xdb)][_0x4256a0(0x145)](_0x402fdc[_0x4256a0(0x134)],_0x4256a0(0xd8),_0xf392fa,_0x4256a0(0x128));return;}void this[_0x4256a0(0x142)]({'runId':_0x402fdc[_0x4256a0(0x134)],'sessionId':_0x402fdc[_0x4256a0(0x8c)],'input':_0x402fdc[_0x4256a0(0xa3)],'cwd':_0x402fdc[_0x4256a0(0xeb)],'model':_0x402fdc[_0x4256a0(0x12a)],'effort':typeof _0x402fdc[_0x4256a0(0x12c)]===_0x4256a0(0xd6)?_0x402fdc[_0x4256a0(0x12c)]:'',...typeof _0x402fdc[_0x4256a0(0x12b)]===_0x4256a0(0xd6)?{'externalSessionId':_0x402fdc[_0x4256a0(0x12b)]}:{},'environment':_0x466a12,'attachments':_0x47f05b,'access':typeof _0x402fdc[_0x4256a0(0xfc)]===_0x4256a0(0xd6)?_0x402fdc[_0x4256a0(0xfc)]:_0x4256a0(0xab),'agent':_0x402fdc[_0x4256a0(0x100)]===_0x4256a0(0x153)?_0x4256a0(0x153):_0x4256a0(0x90),...typeof _0x402fdc[_0x4256a0(0xf0)]===_0x4256a0(0xd6)?{'personalInstructions':_0x402fdc[_0x4256a0(0xf0)]}:{},'mcp':_0x840a07});}[_0x18d0ae(0x156)](_0x539636,_0x27a7a7){const _0x26f6cb=_0x18d0ae,_0x4f207f=this[_0x26f6cb(0x136)][_0x26f6cb(0xdf)][_0x26f6cb(0xc3)](_0x539636);if(_0x4f207f===undefined)return![];return void _0x4f207f[_0x26f6cb(0xc0)][_0x26f6cb(0x132)](_0x4f207f[_0x26f6cb(0xeb)],_0x4f207f[_0x26f6cb(0x11a)])[_0x26f6cb(0x146)](()=>{const _0x2e1203=_0x26f6cb;this[_0x2e1203(0xcd)](_0x539636,_0x27a7a7===_0x2e1203(0x124)?_0x2e1203(0x14c):_0x2e1203(0xc5),_0x2e1203(0xd3),{'status':_0x27a7a7===_0x2e1203(0x124)?_0x2e1203(0x14c):_0x2e1203(0xc5)});}),!![];}[_0x18d0ae(0x8f)](_0x21c5ea){const _0x46bfee=_0x18d0ae,_0x2251dc=this[_0x46bfee(0x131)][_0x46bfee(0xc3)](_0x21c5ea[_0x46bfee(0xca)]);if(_0x2251dc===undefined||_0x2251dc[_0x46bfee(0x134)]!==_0x21c5ea[_0x46bfee(0x134)])return![];return clearTimeout(_0x2251dc[_0x46bfee(0x122)]),this[_0x46bfee(0x131)][_0x46bfee(0x117)](_0x21c5ea[_0x46bfee(0xca)]),void _0x2251dc[_0x46bfee(0xc0)][_0x46bfee(0x120)](_0x2251dc[_0x46bfee(0xeb)],_0x2251dc[_0x46bfee(0x9b)],_0x21c5ea[_0x46bfee(0x11d)]),!![];}[_0x18d0ae(0xee)](_0x2ab019,_0x16771c,_0x379917){const _0x45f81a=_0x18d0ae,_0x30fffe=this[_0x45f81a(0xda)][_0x45f81a(0xc3)](_0x16771c);if(_0x30fffe===undefined||_0x30fffe[_0x45f81a(0x134)]!==_0x2ab019)return![];const _0x2ac237=_0x30fffe[_0x45f81a(0xc7)][_0x45f81a(0x130)](_0x10a616=>{const _0x3a66f0=_0x45f81a,_0x3703ee=_0x379917[_0x10a616],_0x2b3af2=Array[_0x3a66f0(0x13d)](_0x3703ee)?_0x3703ee:typeof _0x3703ee===_0x3a66f0(0xd6)?[_0x3703ee]:[];if(_0x2b3af2[_0x3a66f0(0x11f)]===0x743*0x3+0x1787+0x1d0*-0x19||_0x2b3af2[_0x3a66f0(0x11f)]>-0x11b3*-0x2+0x1*-0x54d+0x1e11*-0x1||_0x2b3af2[_0x3a66f0(0xa8)](_0x9dd4c3=>typeof _0x9dd4c3!==_0x3a66f0(0xd6)||_0x9dd4c3[_0x3a66f0(0x11f)]===0x17f8+-0x3*-0x24b+-0x1ed9||_0x9dd4c3[_0x3a66f0(0x11f)]>0x1a*0x16a+-0x100b+0x9b*-0x1f))throw new Error(_0x3a66f0(0x129));return _0x2b3af2;});return clearTimeout(_0x30fffe[_0x45f81a(0x122)]),this[_0x45f81a(0xda)][_0x45f81a(0x117)](_0x16771c),void _0x30fffe[_0x45f81a(0xc0)][_0x45f81a(0x11b)](_0x30fffe[_0x45f81a(0xeb)],_0x30fffe[_0x45f81a(0x9b)],_0x2ac237),this[_0x45f81a(0xdb)][_0x45f81a(0xf3)](_0x2ab019,{'itemId':boundedConversationItemId(_0x45f81a(0x99),_0x16771c),'kind':_0x45f81a(0x157),'status':_0x45f81a(0x141),'payload':{},'merge':!![]}),!![];}async[_0x18d0ae(0x142)](_0x504b33){const _0x21ab8f=_0x18d0ae,_0x5efca0=this[_0x21ab8f(0x136)][_0x21ab8f(0x9a)](_0x504b33[_0x21ab8f(0x9f)],hasMcpConfiguration(_0x504b33[_0x21ab8f(0xed)])?_0x504b33[_0x21ab8f(0x134)]:undefined);this[_0x21ab8f(0x14a)][_0x21ab8f(0xe7)](_0x504b33[_0x21ab8f(0x134)],_0x5efca0),this[_0x21ab8f(0x151)][_0x21ab8f(0xe7)](_0x504b33[_0x21ab8f(0x134)],_0x504b33[_0x21ab8f(0xeb)]),this[_0x21ab8f(0xdb)][_0x21ab8f(0xb3)][_0x21ab8f(0xad)](_0x504b33[_0x21ab8f(0x134)]),this[_0x21ab8f(0xdb)][_0x21ab8f(0x145)](_0x504b33[_0x21ab8f(0x134)],_0x21ab8f(0xea),{},_0x21ab8f(0x11e));try{if(hasMcpConfiguration(_0x504b33[_0x21ab8f(0xed)]))await _0x5efca0[_0x21ab8f(0xfe)](_0x504b33[_0x21ab8f(0xeb)],_0x504b33[_0x21ab8f(0xed)]);const _0x24abe2=_0x504b33[_0x21ab8f(0x12b)]??openCodeSessionId(await _0x5efca0[_0x21ab8f(0xac)](_0x504b33[_0x21ab8f(0xeb)]));if(_0x24abe2===undefined)throw new Error(_0x21ab8f(0xe1));this[_0x21ab8f(0xdb)][_0x21ab8f(0xd9)]({'runId':_0x504b33[_0x21ab8f(0x134)],'sessionId':_0x504b33[_0x21ab8f(0x8c)],'runner':_0x21ab8f(0xf8),'cwd':_0x504b33[_0x21ab8f(0xeb)],'externalSessionId':_0x24abe2}),this[_0x21ab8f(0xdb)][_0x21ab8f(0xbd)](_0x24abe2,_0x504b33[_0x21ab8f(0x8c)]);_0x504b33[_0x21ab8f(0x12b)]===undefined&&(this[_0x21ab8f(0xdb)][_0x21ab8f(0xd5)](_0x504b33[_0x21ab8f(0x8c)],_0x24abe2),this[_0x21ab8f(0xdb)][_0x21ab8f(0x114)](_0x21ab8f(0xe6),{'sessionId':_0x504b33[_0x21ab8f(0x8c)],'externalSessionId':_0x24abe2}));const _0x5babcf=new AbortController();this[_0x21ab8f(0x136)][_0x21ab8f(0xdf)][_0x21ab8f(0xe7)](_0x504b33[_0x21ab8f(0x134)],{'runId':_0x504b33[_0x21ab8f(0x134)],'sessionId':_0x504b33[_0x21ab8f(0x8c)],'nativeSessionId':_0x24abe2,'cwd':_0x504b33[_0x21ab8f(0xeb)],'client':_0x5efca0,'abort':_0x5babcf,'access':_0x504b33[_0x21ab8f(0xfc)],'agent':_0x504b33[_0x21ab8f(0x14b)]});let _0xb56d03=![],_0x25c9bd,_0x3f83af;const _0x364a0a=new Promise((_0x2b9e99,_0x6332f9)=>{_0x25c9bd=()=>{_0xb56d03=!![],_0x2b9e99();},_0x3f83af=_0x6332f9;});void _0x5efca0[_0x21ab8f(0x138)](_0x504b33[_0x21ab8f(0xeb)],_0x5babcf[_0x21ab8f(0x10d)],_0x422324=>this[_0x21ab8f(0xe3)](_0x504b33[_0x21ab8f(0x134)],_0x24abe2,_0x422324),_0x25c9bd)[_0x21ab8f(0xcb)](_0x824b1f=>{const _0x556816=_0x21ab8f;if(_0x5babcf[_0x556816(0x10d)][_0x556816(0xc9)])return;if(!_0xb56d03){_0x3f83af(_0x824b1f);return;}this[_0x556816(0xcd)](_0x504b33[_0x556816(0x134)],_0x556816(0x128),_0x556816(0x9d),_0x824b1f,_0x556816(0x143));}),await _0x364a0a,this[_0x21ab8f(0xdb)][_0x21ab8f(0x145)](_0x504b33[_0x21ab8f(0x134)],_0x21ab8f(0x10c),{},_0x21ab8f(0xb5)),this[_0x21ab8f(0x116)][_0x21ab8f(0x117)](_0x504b33[_0x21ab8f(0x134)]);const _0x567513=_0x504b33[_0x21ab8f(0x14e)][_0x21ab8f(0x11f)]===-0x2100+-0xa92+0x2*0x15c9?[]:await this[_0x21ab8f(0xdb)][_0x21ab8f(0xdc)](_0x504b33[_0x21ab8f(0xeb)],_0x504b33[_0x21ab8f(0x134)],_0x504b33[_0x21ab8f(0x14e)]);await _0x5efca0[_0x21ab8f(0x135)]({'directory':_0x504b33[_0x21ab8f(0xeb)],'sessionID':_0x24abe2,'text':openCodeImageInput(_0x504b33[_0x21ab8f(0xa3)],_0x567513),'model':_0x504b33[_0x21ab8f(0x12a)],'variant':_0x504b33[_0x21ab8f(0x12c)],'agent':_0x504b33[_0x21ab8f(0x14b)],..._0x504b33[_0x21ab8f(0xf0)]===undefined?{}:{'system':_0x504b33[_0x21ab8f(0xf0)]},'attachments':_0x504b33[_0x21ab8f(0x14e)]}),this[_0x21ab8f(0xe4)][_0x21ab8f(0xad)](_0x504b33[_0x21ab8f(0x134)]);if(this[_0x21ab8f(0x116)][_0x21ab8f(0x117)](_0x504b33[_0x21ab8f(0x134)]))this[_0x21ab8f(0xcd)](_0x504b33[_0x21ab8f(0x134)],_0x21ab8f(0xbf),_0x21ab8f(0xd3),{'status':_0x21ab8f(0xbf)});}catch(_0x5b8e88){this[_0x21ab8f(0xcd)](_0x504b33[_0x21ab8f(0x134)],_0x21ab8f(0x128),_0x21ab8f(0x9d),_0x5b8e88,_0x21ab8f(0xaf));}}[_0x18d0ae(0xe3)](_0x4093c2,_0x22d5d6,_0x1088b8){const _0x451d6e=_0x18d0ae,_0x57bc66=record(_0x1088b8),_0x57412c=record(_0x57bc66?.[_0x451d6e(0x103)]),_0x276e4c=record(_0x57412c?.[_0x451d6e(0x133)])??record(_0x57412c?.[_0x451d6e(0x12d)]),_0x539b0f=typeof _0x57412c?.[_0x451d6e(0xbe)]===_0x451d6e(0xd6)?_0x57412c[_0x451d6e(0xbe)]:typeof _0x276e4c?.[_0x451d6e(0xbe)]===_0x451d6e(0xd6)?_0x276e4c[_0x451d6e(0xbe)]:undefined;if(_0x539b0f!==_0x22d5d6)return;if(_0x57bc66?.[_0x451d6e(0x9e)]===_0x451d6e(0x102)){if(!this[_0x451d6e(0xe4)][_0x451d6e(0x8d)](_0x4093c2)){this[_0x451d6e(0x116)][_0x451d6e(0xad)](_0x4093c2);return;}this[_0x451d6e(0xcd)](_0x4093c2,_0x451d6e(0xbf),_0x451d6e(0xd3),{'status':_0x451d6e(0xbf)});return;}if(_0x57bc66?.[_0x451d6e(0x9e)]===_0x451d6e(0x154)){this[_0x451d6e(0xcd)](_0x4093c2,_0x451d6e(0x128),_0x451d6e(0x9d),_0x57412c?.[_0x451d6e(0xe0)]??_0x57412c);return;}if(_0x57bc66?.[_0x451d6e(0x9e)]===_0x451d6e(0x113)){const _0x360ccd=record(_0x57412c?.[_0x451d6e(0x12d)]);if(typeof _0x360ccd?.['id']===_0x451d6e(0xd6)&&(_0x360ccd[_0x451d6e(0xde)]===_0x451d6e(0x121)||_0x360ccd[_0x451d6e(0xde)]===_0x451d6e(0xfd))){const _0x341b69=this[_0x451d6e(0x93)][_0x451d6e(0xc3)](_0x4093c2)??new Map();_0x341b69[_0x451d6e(0xe7)](_0x360ccd['id'],_0x360ccd[_0x451d6e(0xde)]),this[_0x451d6e(0x93)][_0x451d6e(0xe7)](_0x4093c2,_0x341b69);}if(_0x360ccd?.[_0x451d6e(0xde)]===_0x451d6e(0xfd)&&typeof _0x360ccd['id']===_0x451d6e(0xd6)&&typeof _0x360ccd[_0x451d6e(0xa0)]===_0x451d6e(0xd6)){const _0x4cdb5f=this[_0x451d6e(0xe8)][_0x451d6e(0xc3)](_0x4093c2)??new Map();_0x4cdb5f[_0x451d6e(0xe7)](_0x360ccd['id'],_0x360ccd[_0x451d6e(0xa0)]),this[_0x451d6e(0xe8)][_0x451d6e(0xe7)](_0x4093c2,_0x4cdb5f),this[_0x451d6e(0x136)][_0x451d6e(0x108)][_0x451d6e(0xe7)](_0x360ccd[_0x451d6e(0xa0)],_0x4093c2);}if(_0x360ccd?.[_0x451d6e(0xde)]===_0x451d6e(0xfd)&&typeof _0x360ccd[_0x451d6e(0xa0)]===_0x451d6e(0xd6)&&typeof record(_0x360ccd[_0x451d6e(0xb9)])?.[_0x451d6e(0xcc)]===_0x451d6e(0x14f)){const _0x2f956a=this[_0x451d6e(0x10f)][_0x451d6e(0xc3)](_0x4093c2)??new Set(),_0x486365=_0x2f956a[_0x451d6e(0x8d)](_0x360ccd[_0x451d6e(0xa0)]);_0x2f956a[_0x451d6e(0xad)](_0x360ccd[_0x451d6e(0xa0)]),this[_0x451d6e(0x10f)][_0x451d6e(0xe7)](_0x4093c2,_0x2f956a);const _0xb50459=this[_0x451d6e(0xa4)][_0x451d6e(0xc3)](_0x4093c2)?.[_0x451d6e(0xc3)](_0x360ccd[_0x451d6e(0xa0)]);if(!_0x486365&&_0xb50459!==undefined)this[_0x451d6e(0xdb)][_0x451d6e(0xf3)](_0x4093c2,openCodeCompactionItem(_0x451d6e(0xf8),_0xb50459,!![]));}return;}if(_0x57bc66?.[_0x451d6e(0x9e)]===_0x451d6e(0xbc)){const _0x291ba3=record(_0x57412c?.[_0x451d6e(0x133)]);if(_0x291ba3?.[_0x451d6e(0x9e)]===_0x451d6e(0x13f)&&typeof _0x291ba3['id']===_0x451d6e(0xd6)&&typeof _0x291ba3[_0x451d6e(0xa7)]===_0x451d6e(0xd6)&&this[_0x451d6e(0x93)][_0x451d6e(0xc3)](_0x4093c2)?.[_0x451d6e(0xc3)](_0x291ba3[_0x451d6e(0xa7)])===_0x451d6e(0x121)){const _0x4c1b4e=this[_0x451d6e(0xa4)][_0x451d6e(0xc3)](_0x4093c2)??new Map();if(_0x4c1b4e[_0x451d6e(0xc3)](_0x291ba3[_0x451d6e(0xa7)])===_0x291ba3['id'])return;_0x4c1b4e[_0x451d6e(0xe7)](_0x291ba3[_0x451d6e(0xa7)],_0x291ba3['id']),this[_0x451d6e(0xa4)][_0x451d6e(0xe7)](_0x4093c2,_0x4c1b4e),this[_0x451d6e(0xdb)][_0x451d6e(0xf3)](_0x4093c2,openCodeCompactionItem(_0x451d6e(0xf8),_0x291ba3['id'],![]));if(this[_0x451d6e(0x10f)][_0x451d6e(0xc3)](_0x4093c2)?.[_0x451d6e(0x8d)](_0x291ba3[_0x451d6e(0xa7)]))this[_0x451d6e(0xdb)][_0x451d6e(0xf3)](_0x4093c2,openCodeCompactionItem(_0x451d6e(0xf8),_0x291ba3['id'],!![]));return;}if(typeof _0x291ba3?.[_0x451d6e(0xa7)]!==_0x451d6e(0xd6)||this[_0x451d6e(0x93)][_0x451d6e(0xc3)](_0x4093c2)?.[_0x451d6e(0xc3)](_0x291ba3[_0x451d6e(0xa7)])!==_0x451d6e(0xfd))return;const _0x3c78cd=this[_0x451d6e(0xe8)][_0x451d6e(0xc3)](_0x4093c2)?.[_0x451d6e(0xc3)](_0x291ba3[_0x451d6e(0xa7)]);if(_0x3c78cd!==undefined&&this[_0x451d6e(0xa4)][_0x451d6e(0xc3)](_0x4093c2)?.[_0x451d6e(0x8d)](_0x3c78cd))return;const _0x3fe743=openCodePart(_0x291ba3,this[_0x451d6e(0x136)][_0x451d6e(0xdf)][_0x451d6e(0xc3)](_0x4093c2)?.[_0x451d6e(0x14b)]===_0x451d6e(0x153));if(_0x3fe743!==undefined)this[_0x451d6e(0xdb)][_0x451d6e(0xf3)](_0x4093c2,_0x3fe743);return;}if(_0x57bc66?.[_0x451d6e(0x9e)]===_0x451d6e(0x119))this[_0x451d6e(0x149)](_0x4093c2,_0x57412c);if(_0x57bc66?.[_0x451d6e(0x9e)]===_0x451d6e(0xae))this[_0x451d6e(0xf6)](_0x4093c2,_0x57412c);}[_0x18d0ae(0x149)](_0x1cfc2e,_0x4ebd0c){const _0x24173c=_0x18d0ae,_0x4a76d5=this[_0x24173c(0x136)][_0x24173c(0xdf)][_0x24173c(0xc3)](_0x1cfc2e),_0x13cc51=typeof _0x4ebd0c?.['id']===_0x24173c(0xd6)?_0x4ebd0c['id']:undefined;if(_0x4a76d5===undefined||_0x13cc51===undefined)return;if(_0x4a76d5[_0x24173c(0xfc)]===_0x24173c(0xec)){void _0x4a76d5[_0x24173c(0xc0)][_0x24173c(0x120)](_0x4a76d5[_0x24173c(0xeb)],_0x13cc51,_0x24173c(0x148));return;}const _0x2c1c7f=_0x24173c(0xb8)+_0x13cc51,_0x1ab612=Date[_0x24173c(0xd4)]()+this[_0x24173c(0x109)],_0x57cb15={'toolName':typeof _0x4ebd0c?.[_0x24173c(0xc2)]===_0x24173c(0xd6)?_0x4ebd0c[_0x24173c(0xc2)]:_0x24173c(0x92),'input':{'patterns':Array[_0x24173c(0x13d)](_0x4ebd0c?.[_0x24173c(0xa9)])?_0x4ebd0c[_0x24173c(0xa9)]:[]}};try{this[_0x24173c(0xdb)][_0x24173c(0x12e)]({'runId':_0x1cfc2e,'approvalId':_0x2c1c7f,'payload':_0x57cb15,'expiresAt':_0x1ab612});}catch{void _0x4a76d5[_0x24173c(0xc0)][_0x24173c(0x120)](_0x4a76d5[_0x24173c(0xeb)],_0x13cc51,_0x24173c(0xd0));return;}const _0x293c26=()=>{const _0x4a9400=_0x24173c,_0x483793=this[_0x4a9400(0x131)][_0x4a9400(0xc3)](_0x2c1c7f);if(_0x483793===undefined)return;try{this[_0x4a9400(0xdb)][_0x4a9400(0x158)](_0x2c1c7f);}catch(_0x4a0f7c){if(_0x4a0f7c instanceof Error&&_0x4a0f7c[_0x4a9400(0xc1)]===_0x4a9400(0xb4)){const _0x3a7a45=setTimeout(_0x293c26,Math[_0x4a9400(0x10b)](0x76d+0x71*0x8+-0xaf4,_0x1ab612-Date[_0x4a9400(0xd4)]()));this[_0x4a9400(0x131)][_0x4a9400(0xe7)](_0x2c1c7f,{..._0x483793,'timer':_0x3a7a45});return;}}this[_0x4a9400(0x131)][_0x4a9400(0x117)](_0x2c1c7f),this[_0x4a9400(0xdb)][_0x4a9400(0x145)](_0x1cfc2e,_0x4a9400(0xf2),{'approvalId':_0x2c1c7f}),void _0x4a76d5[_0x4a9400(0xc0)][_0x4a9400(0x120)](_0x4a76d5[_0x4a9400(0xeb)],_0x13cc51,_0x4a9400(0xd0));},_0x3a1f0a=setTimeout(_0x293c26,this[_0x24173c(0x109)]);this[_0x24173c(0x131)][_0x24173c(0xe7)](_0x2c1c7f,{'runId':_0x1cfc2e,'requestId':_0x13cc51,'client':_0x4a76d5[_0x24173c(0xc0)],'cwd':_0x4a76d5[_0x24173c(0xeb)],'timer':_0x3a1f0a}),this[_0x24173c(0xdb)][_0x24173c(0x95)]({'runId':_0x1cfc2e,'approvalId':_0x2c1c7f,'payload':_0x57cb15,'expiresAt':_0x1ab612});}[_0x18d0ae(0xf6)](_0xfb11f0,_0x1f361d){const _0x57ac08=_0x18d0ae,_0x19e103=this[_0x57ac08(0x136)][_0x57ac08(0xdf)][_0x57ac08(0xc3)](_0xfb11f0),_0x1b8ad5=typeof _0x1f361d?.['id']===_0x57ac08(0xd6)?_0x1f361d['id']:undefined,_0x20df32=_0x1f361d?.[_0x57ac08(0xda)];if(_0x19e103===undefined||_0x1b8ad5===undefined)return;const _0xd491a8=openCodeQuestions(_0x20df32);if(_0xd491a8[_0x57ac08(0x11f)]===0x82e*-0x3+-0xf35*-0x1+0x955||this[_0x57ac08(0xda)][_0x57ac08(0x8d)](_0x1b8ad5))return;const _0x90eb7b=setTimeout(()=>{const _0x34c6c7=_0x57ac08,_0x21d167=this[_0x34c6c7(0xda)][_0x34c6c7(0xc3)](_0x1b8ad5);if(_0x21d167===undefined)return;this[_0x34c6c7(0xda)][_0x34c6c7(0x117)](_0x1b8ad5),void _0x21d167[_0x34c6c7(0xc0)][_0x34c6c7(0x98)](_0x21d167[_0x34c6c7(0xeb)],_0x21d167[_0x34c6c7(0x9b)]),this[_0x34c6c7(0xdb)][_0x34c6c7(0xf3)](_0xfb11f0,{'itemId':boundedConversationItemId(_0x34c6c7(0x99),_0x1b8ad5),'kind':_0x34c6c7(0x157),'status':_0x34c6c7(0x128),'payload':{'requestId':_0x1b8ad5,'questions':_0xd491a8,'errorCode':_0x34c6c7(0x137)},'merge':!![]});},this[_0x57ac08(0x109)]);this[_0x57ac08(0xda)][_0x57ac08(0xe7)](_0x1b8ad5,{'runId':_0xfb11f0,'requestId':_0x1b8ad5,'client':_0x19e103[_0x57ac08(0xc0)],'cwd':_0x19e103[_0x57ac08(0xeb)],'questionIds':_0xd491a8[_0x57ac08(0x130)](_0x143b75=>_0x143b75['id']),'timer':_0x90eb7b}),this[_0x57ac08(0xdb)][_0x57ac08(0xf3)](_0xfb11f0,{'itemId':boundedConversationItemId(_0x57ac08(0x99),_0x1b8ad5),'kind':_0x57ac08(0x157),'status':_0x57ac08(0x155),'payload':{'requestId':_0x1b8ad5,'questions':_0xd491a8}});}[_0x18d0ae(0xcd)](_0x45a326,_0x58832e,_0x2349fd,_0x2b4358,_0x549b51=_0x18d0ae(0x105)){const _0x41ea3d=_0x18d0ae,_0x6728d8=this[_0x41ea3d(0x136)][_0x41ea3d(0xdf)][_0x41ea3d(0xc3)](_0x45a326),_0x25efc0=_0x6728d8?.[_0x41ea3d(0xeb)]??this[_0x41ea3d(0x151)][_0x41ea3d(0xc3)](_0x45a326),_0x561bf8=_0x6728d8?.[_0x41ea3d(0xc0)]??this[_0x41ea3d(0x14a)][_0x41ea3d(0xc3)](_0x45a326);if(_0x6728d8===undefined&&_0x25efc0===undefined&&_0x561bf8===undefined)return;_0x6728d8?.[_0x41ea3d(0x132)][_0x41ea3d(0x132)](),this[_0x41ea3d(0x136)][_0x41ea3d(0xdf)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0x151)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0x14a)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0xe4)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0x116)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0x93)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0xe8)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0xa4)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0x10f)][_0x41ea3d(0x117)](_0x45a326),this[_0x41ea3d(0xdb)][_0x41ea3d(0xb3)][_0x41ea3d(0x117)](_0x45a326);for(const [_0x3b214d,_0x4b26f8]of this[_0x41ea3d(0x131)])_0x4b26f8[_0x41ea3d(0x134)]===_0x45a326&&(clearTimeout(_0x4b26f8[_0x41ea3d(0x122)]),this[_0x41ea3d(0x131)][_0x41ea3d(0x117)](_0x3b214d));for(const [_0x34ba27,_0x45e5a7]of this[_0x41ea3d(0xda)])_0x45e5a7[_0x41ea3d(0x134)]===_0x45a326&&(clearTimeout(_0x45e5a7[_0x41ea3d(0x122)]),this[_0x41ea3d(0xda)][_0x41ea3d(0x117)](_0x34ba27));if(_0x58832e===_0x41ea3d(0x128)){const _0x4ef760=runnerErrorProjection(_0x2b4358,_0x549b51);this[_0x41ea3d(0xdb)][_0x41ea3d(0xf3)](_0x45a326,{'itemId':boundedConversationItemId(_0x41ea3d(0xd2),_0x45a326),'kind':_0x41ea3d(0xe0),'status':_0x41ea3d(0x128),'payload':{..._0x4ef760,'recoverable':!![],'retryAfterMs':null}}),_0x2b4358=_0x4ef760;}this[_0x41ea3d(0xdb)][_0x41ea3d(0x145)](_0x45a326,_0x2349fd,_0x2b4358,_0x58832e);if(_0x561bf8!==undefined)this[_0x41ea3d(0x136)][_0x41ea3d(0x94)](_0x561bf8);}}function openCodeImageInput(_0x4744f7,_0x3306c2){const _0x4c2dbb=_0x18d0ae;if(_0x3306c2[_0x4c2dbb(0x11f)]===0x1*0x17bd+0x704*0x3+-0x2cc9)return _0x4744f7;const _0x35f69b=_0x3306c2[_0x4c2dbb(0x130)](_0x2c6e9a=>'-\x20'+JSON[_0x4c2dbb(0xc6)](_0x2c6e9a))[_0x4c2dbb(0xb7)]('\x0a');return _0x4744f7+_0x4c2dbb(0x150)+_0x35f69b;}function hasMcpConfiguration(_0xa759e4){const _0x25d88f=_0x18d0ae;return _0xa759e4!==null&&typeof _0xa759e4===_0x25d88f(0x104)&&Object[_0x25d88f(0x13b)](_0xa759e4)[_0x25d88f(0x11f)]>-0x22bd+0x1901+0x9bc;}function openCodePart(_0x1a4d07,_0x47914d=![]){const _0x47959d=_0x18d0ae,_0x55461d=typeof _0x1a4d07?.['id']===_0x47959d(0xd6)?_0x1a4d07['id']:undefined;if(_0x55461d===undefined||typeof _0x1a4d07?.[_0x47959d(0x9e)]!==_0x47959d(0xd6))return undefined;const _0x305aea=boundedConversationItemId(_0x47959d(0xf8),_0x55461d);if(_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0xe5)&&typeof _0x1a4d07[_0x47959d(0xe5)]===_0x47959d(0xd6))return{'itemId':_0x305aea,'kind':_0x47914d?_0x47959d(0x153):_0x47959d(0xf4),'status':record(_0x1a4d07[_0x47959d(0xb9)])?.[_0x47959d(0xfb)]===undefined?_0x47959d(0xa6):_0x47959d(0x141),'payload':_0x47914d?{'explanation':compactRunnerText(_0x1a4d07[_0x47959d(0xe5)],-0x2*-0x4d97+-0x64ed+0x17df),'steps':[]}:{'text':_0x1a4d07[_0x47959d(0xe5)],'format':_0x47959d(0xa1),'model':null},'merge':!![]};if(_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0x139)&&typeof _0x1a4d07[_0x47959d(0xe5)]===_0x47959d(0xd6))return{'itemId':_0x305aea,'kind':_0x47959d(0x152),'status':record(_0x1a4d07[_0x47959d(0xb9)])?.[_0x47959d(0xfb)]===undefined?_0x47959d(0xa6):_0x47959d(0x141),'payload':{'sections':[{'index':0x0,'text':_0x1a4d07[_0x47959d(0xe5)]}]},'merge':!![]};if(_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0xe9)&&typeof _0x1a4d07[_0x47959d(0xe9)]===_0x47959d(0xd6)){if(_0x1a4d07[_0x47959d(0xe9)]===_0x47959d(0xf1))return undefined;const _0x36e8e4=record(_0x1a4d07[_0x47959d(0xd7)]),_0x519c3c=_0x36e8e4?.[_0x47959d(0x96)]===_0x47959d(0xcc)?_0x47959d(0x141):_0x36e8e4?.[_0x47959d(0x96)]===_0x47959d(0xe0)?_0x47959d(0x128):_0x47959d(0xa6),_0x55be6f=normalizeOpenCodeTool(_0x1a4d07[_0x47959d(0xe9)],_0x36e8e4);return{'itemId':_0x305aea,'kind':_0x55be6f[_0x47959d(0x110)],'status':_0x519c3c,'payload':_0x55be6f[_0x47959d(0xff)],'merge':!![]};}if(_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0x13f))return openCodeCompactionItem(_0x47959d(0xf8),_0x55461d,![]);if(_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0x10a))return{'itemId':_0x305aea,'kind':_0x47959d(0xbb),'status':_0x47959d(0x141),'payload':openCodePatchToolPayload(),'merge':!![]};if(_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0x106)||_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0xc4))return undefined;if(_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0xe5)||_0x1a4d07[_0x47959d(0x9e)]===_0x47959d(0x139))return undefined;return{'itemId':_0x305aea,'kind':_0x47959d(0x127),'status':record(_0x1a4d07[_0x47959d(0xb9)])?.[_0x47959d(0xfb)]===undefined?_0x47959d(0xa6):_0x47959d(0x141),'payload':{'sourceEventType':_0x47959d(0xb8)+_0x1a4d07[_0x47959d(0x9e)],'label':_0x47959d(0x13c)+compactRunnerText(_0x1a4d07[_0x47959d(0x9e)],-0x267a+-0x1*0x1493+-0xbe9*-0x5)},'merge':!![]};}function openCodeCompactionItem(_0x2a08a9,_0x159ab5,_0x2a36e0){const _0x233e6d=_0x18d0ae;return{'itemId':boundedConversationItemId(_0x2a08a9,_0x159ab5),'kind':_0x233e6d(0xf7),'status':_0x2a36e0?_0x233e6d(0x141):_0x233e6d(0xa6),'payload':{'phase':_0x2a36e0?_0x233e6d(0x141):_0x233e6d(0xc8),'summary':null},'merge':!![]};}function openCodeSessionId(_0x26427e){const _0x1491bd=_0x18d0ae,_0x5e2baa=record(_0x26427e);return typeof _0x5e2baa?.['id']===_0x1491bd(0xd6)?_0x5e2baa['id']:undefined;}function _0x5400(){const _0x3f81fb=['DxnLCG','DgLTzxi','mtmWr0rJC2LI','su5urvjsvvbu','CMfUzg9Tvvvjra','ntG3mJq0DKLVEvjN','Dw5RBM93BG','rKfjteve','vvnfuL9jtLbvvf9jtLzbteLe','Bw9KzwW','zxH0zxjUywXtzxnZAw9Uswq','zwzMB3j0','Aw5MBW','y3jLyxrLqxbWCM92ywW','ndaXntzIyNDwrxO','BwfW','CgvYBwLZC2LVBNm','ywjVCNq','CgfYDa','CNvUswq','ChjVBxb0','CNvUBMvY','vvnfuL9jtLbvvf9fwfbjuKve','C3vIC2nYAwjL','CMvHC29UAw5N','ohD5CxH4zW','A2v5CW','t3bLBKnVzguG','AxnbCNjHEq','y29TCgfJDa','y29TCgfJDgLVBG','y29TBwfUzfn0yxrL','q09nueXfveve','CNvU','t1bftKnprevFrvzftLrFrKfjteve','sw1WBgvTzw50ihrOzsbWBgfUigfIB3zLlG','zw1PDa','zMLUywXSEq','tufsx01btKfhruq','qvbquK9wruq','CMvXDwvZDfbLCM1PC3nPB24','C3rHCNrPBMDdBgLLBNrZ','ywDLBNq','su5urvjsvvburuq','C3rHCNq','yxr0ywnOBwvUDhm','BNvTyMvY','cGPjzIbHBIbPBMXPBMuGAw1Hz2uGAw4GDgHPCYbTzxnZywDLigLZihvUyxzHAwXHyMXLlcb1C2uGDgHLihjLywqGDg9VBcbVBIb0AguGy29YCMvZCg9UzgLUzYbJB3b5igjLBg93lIbeBYbUB3qGCMvHzcbPDcbHz2fPBIb3AgvUihrOzsbPBMXPBMuGAw1Hz2uGAxmGywXYzwfKEsb2AxnPyMXLoGO','C3rHCNrPBMDdD2rZ','CMvHC29UAw5Nx3n1Bw1HCNK','CgXHBG','C2vZC2LVBI5LCNjVCG','uevoreLorW','y2fUy2vS','DxnLCL9PBNb1Df9Yzxf1zxn0','zxHWAxjLqxbWCM92ywW','C2vZC2LVBKLK','AgfZ','BMf0AxzLq29UDhjVBa','zgvJAwrLqxbWCM92ywW','yNvPBgq','y29TBwfUzfn0yxrLCW','t3bLBKnVzguGCgvYBwLZC2LVBG','BwvZC2fNzvjVBgvZ','CMvSzwfZzu1HBMfNzwrdBgLLBNq','ChvIBgLZAefWChjVDMfS','C3rHDhvZ','C2v0q29TBwfUzfn0yxrL','CMvQzwn0uxvLC3rPB24','B3bLBMnVzguTAw5WDxq','BwfUywDLzenSAwvUDa','CMvXDwvZDeLK','mteYog5ezgL6Dq','CNvUlMzHAwXLza','DhLWzq','zw52AxjVBM1LBNq','CgfYzw50suq','BwfYA2rVD24','C2vJCMv0rw52AxjVBM1LBNq','Aw5WDxq','y29TCgfJDgLVBLbHCNrjzhm','nJeYmM5YrhDLAq','su5Fufjpr1jfu1m','BwvZC2fNzuLe','C29Tzq','Cgf0DgvYBNm','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','zgvMyxvSDa','y3jLyxrLu2vZC2LVBG','ywrK','CxvLC3rPB24UyxnRzwq','t1bftKnprevFuLvox1nuqvjux0zbsuXfra','CgfYC2vbDhrHy2HTzw50CW','nteYmJCWBLDbvuzk','uLvotKvsx0Loufvux0LovKfmsuq','ywn0AxzL','qvbquK9wquXFtK9ux0vyueLsruq','uLvotKLorW','zxHLy3v0zunVBw1HBMq','AM9PBG','B3bLBMnVzgu6','DgLTzq','mZa3m0r2ANb6uq','Dg9VBf9JywXS','BwvZC2fNzs5Wyxj0lNvWzgf0zwq','CMvTzw1IzxjoyxrPDMu','C2vZC2LVBKLe','u1vdq0vfreve','y2XPzw50','BwvZC2fNzq','CgvYBwLZC2LVBG','z2v0','C3rLCc1MAw5PC2G','q0foq0vmteve','C3rYAw5NAwz5','CxvLC3rPB25jzhm','u1rbuLrfra','ywjVCNrLza','yxbWCM92ywXjza','y2f0y2G','y29TCgXLDgvK','zMLUAxnO','u3vIC2vXDwvUDcbTzxnZywDLCYb1C2uGDgHLie9Wzw5dB2rLifbSyw4GqwDLBNqGzM9YihjLywqTB25SEsbHBMfSExnPCY4','y2XLyxjdB21Tyw5Ku3rHDgu','uKvkrunuruq','ndK2nZm3uLHktNjs','CNvUBMvYlwvYCM9Y','CNvUlMnVBxbSzxrLza','BM93','ChjVBw90zq','C3rYAw5N','C3rHDgu','CNvUlNjLAMvJDgvK','ywrVChq','CxvLC3rPB25Z','Ag9ZDa','CgvYC2LZDef0DgfJAg1LBNrZ','uLvotKvsx0nptu1btKrFvu5bvKfjtefcteu','CM9Szq','zxHLy3v0Aw9U','zxjYB3i','t1bftKnprevFu0vtu0LptL9jtLzbteLe','ugXHBIbnB2rL','zxzLBNq','ChjVBxb0qwrTAxr0zwq','Dgv4Da','C2vZC2LVBI5LEhrLCM5HBc1Pza','C2v0','BwvZC2fNzvbHCMvUDhm','Dg9VBa','CNvUlNn0yxj0zwq','y3DK','yxv0BW','BwnW','CMvZCg9UzfvZzxjjBNb1Da','mZb4u0fpyuO','CgvYC29UywXjBNn0CNvJDgLVBNm','CxvLC3rPB24','yxbWCM92ywWUzxHWAxjLza','zw1PDeL0zw0','yxnZAxn0yw50x21LC3nHz2u','CNvUq29TCgfJDa','CMvXDwvZDff1zxn0Aw9U','y29UDgv4Df9JB21Wywn0Aw9U','B3bLBMnVzgu','BwnWu2vJCMv0rw52AxjVBM1LBNq','t1bftKnprevFq09nuefdvf9gquLmruq','zw5K','ywnJzxnZ','yxnZAxn0yw50','y29UzMLNDxjLtwnW','Cgf5Bg9Hza','y29SBgfIB3jHDgLVBK1Vzgu','l3bSyw4','C2vZC2LVBI5PzgXL','ChjVCgvYDgLLCW','B2jQzwn0','t1bftKnprevFuLvox0zbsuXfra','C3rLCc1ZDgfYDa','BwnWsw5ZDgfSBgf0Aw9UCW','BwfUywDLzfr1CM5Z','Aw50zxjHy3rPB25uAw1LB3v0txm','Cgf0y2G','Bwf4','CNvUlNj1BM5PBMC','C2LNBMfS','B3bLBMnVzguTy29TCgfJDa','y29TCgXLDgvKq29TCgfJDgLVBLbHCMvUDhm','A2LUza','BwnWq29UzMLNDxjHDgLVBG','C3vTBwfYAxPL','BwvZC2fNzs51CgrHDgvK','C2vUza','nJe3mZm0yuDcuLjp','CgvUzgLUz0LKBgu','zgvSzxrL','Aw50zxjJzxb0zwq','CgvYBwLZC2LVBI5HC2TLza','BMf0AxzLu2vZC2LVBKLK','CMvWBhLrDwvZDgLVBG','sw1WBgvTzw50','zgvJAxnPB24','u1rbuLrjtKC','BgvUz3rO','CMvWBhLqzxjTAxnZAw9U'];_0x5400=function(){return _0x3f81fb;};return _0x5400();}function record(_0x557a0f){const _0x11e59d=_0x18d0ae;return typeof _0x557a0f===_0x11e59d(0x104)&&_0x557a0f!==null&&!Array[_0x11e59d(0x13d)](_0x557a0f)?_0x557a0f:undefined;}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- (function(_0x2ef04a,_0x429dac){const _0x4c6ef3=_0x245f,_0x538e3d=_0x2ef04a();while(!![]){try{const _0x35616d=parseInt(_0x4c6ef3(0x157))/(0x2ac*0x3+-0x7*0x123+-0xe)+-parseInt(_0x4c6ef3(0x16b))/(0x223d+0x1fb4+0x41ef*-0x1)+parseInt(_0x4c6ef3(0x160))/(0x1*0x12aa+0x2267*-0x1+0xfc0)*(-parseInt(_0x4c6ef3(0x15e))/(0x13be+-0x1a05*-0x1+-0x2dbf))+-parseInt(_0x4c6ef3(0x163))/(-0x2533+0xe*0x2e+0x4*0x8ad)*(-parseInt(_0x4c6ef3(0x15b))/(-0x3*0xa21+0x5*0x19e+0x1653))+parseInt(_0x4c6ef3(0x177))/(0x1536+-0xd01+-0x82e*0x1)+parseInt(_0x4c6ef3(0x175))/(-0x5*0x271+0x6b*-0x33+0x6b6*0x5)*(parseInt(_0x4c6ef3(0x169))/(0x24d7+0x1dd2+-0x10*0x42a))+-parseInt(_0x4c6ef3(0x168))/(0xe35*-0x1+-0x1b95+0x29d4);if(_0x35616d===_0x429dac)break;else _0x538e3d['push'](_0x538e3d['shift']());}catch(_0x332a24){_0x538e3d['push'](_0x538e3d['shift']());}}}(_0x2a4d,0xb81*0x27+0xfcab7+0x1*-0x96161));import{compactRunnerText,compactRunnerValue}from'../../util/node-operation-parsers.js';function _0x245f(_0x5cffb9,_0x5f28bd){_0x5cffb9=_0x5cffb9-(0x1fee+-0x187f+-0xd*0x78);const _0xafdfca=_0x2a4d();let _0x3d952a=_0xafdfca[_0x5cffb9];if(_0x245f['uatOcz']===undefined){var _0x4ba3ec=function(_0x38199a){const _0x39abfb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x56d1a4='',_0x540061='';for(let _0x4126a5=-0x8*-0x386+-0xc9e+-0x2*0x7c9,_0x5d6dee,_0x49eaf0,_0x5d3297=-0xe45+0x106+0xd3f;_0x49eaf0=_0x38199a['charAt'](_0x5d3297++);~_0x49eaf0&&(_0x5d6dee=_0x4126a5%(-0x1f66+-0x18bf+0x3829*0x1)?_0x5d6dee*(0x27*0x20+-0x1*0x13eb+0xf4b)+_0x49eaf0:_0x49eaf0,_0x4126a5++%(-0x131a+0x2e9*0x9+0x1*-0x713))?_0x56d1a4+=String['fromCharCode'](0x4f*0x6c+-0x1*-0x1acf+-0x2*0x1d92&_0x5d6dee>>(-(0xaa9*0x1+0x1*0xc1d+-0x16c4)*_0x4126a5&0xb*-0x344+-0x1*-0x140b+0xfe7)):-0x1*-0x1672+-0x1*0x22db+0xc69){_0x49eaf0=_0x39abfb['indexOf'](_0x49eaf0);}for(let _0x226fbb=-0x62*-0x5d+0x12b9+0x3653*-0x1,_0x391cd2=_0x56d1a4['length'];_0x226fbb<_0x391cd2;_0x226fbb++){_0x540061+='%'+('00'+_0x56d1a4['charCodeAt'](_0x226fbb)['toString'](0x14d9+0x3*-0x35f+-0xaac))['slice'](-(0x23e7+0xda5+-0x2*0x18c5));}return decodeURIComponent(_0x540061);};_0x245f['dJYzAM']=_0x4ba3ec,_0x245f['mLtPwe']={},_0x245f['uatOcz']=!![];}const _0x503711=_0xafdfca[-0x121*0x1c+0x2439*-0x1+0x43d5];_0x245f['WQYayd']!==_0x503711&&(_0x245f['mLtPwe']={},_0x245f['WQYayd']=_0x503711);const _0x1bb397=_0x245f['mLtPwe'][_0x5cffb9];return _0x1bb397===undefined?(_0x3d952a=_0x245f['dJYzAM'](_0x3d952a),_0x245f['mLtPwe'][_0x5cffb9]=_0x3d952a):_0x3d952a=_0x1bb397,_0x3d952a;}export function normalizeOpenCodeTool(_0x38929f,_0x555669){const _0x2f57ad=_0x245f,_0x2afc6d=_0x555669?.[_0x2f57ad(0x16f)]===_0x2f57ad(0x16a)?_0x2f57ad(0x164):_0x555669?.[_0x2f57ad(0x16f)]===_0x2f57ad(0x15a)?_0x2f57ad(0x16e):_0x2f57ad(0x158),_0x20fa42=record(_0x555669?.[_0x2f57ad(0x171)]),_0x4b1572=_0x38929f[_0x2f57ad(0x16d)](),_0x5256c8=compactRunnerText(_0x38929f,-0xc47+0xa19+-0x31*-0xe)||_0x2f57ad(0x173);if(_0x4b1572===_0x2f57ad(0x170)||_0x4b1572===_0x2f57ad(0x161)||_0x4b1572===_0x2f57ad(0x176))return{'kind':_0x2f57ad(0x159),'payload':{'command':compactRunnerText(typeof _0x20fa42?.[_0x2f57ad(0x174)]===_0x2f57ad(0x15d)?_0x20fa42[_0x2f57ad(0x174)]:typeof _0x20fa42?.[_0x2f57ad(0x176)]===_0x2f57ad(0x15d)?_0x20fa42[_0x2f57ad(0x176)]:_0x5256c8,-0xa42+-0x4daf+0x7f01),'cwd':typeof _0x20fa42?.[_0x2f57ad(0x165)]===_0x2f57ad(0x15d)?compactRunnerText(_0x20fa42[_0x2f57ad(0x165)],0x1*-0x203c+0x16a0+0x95*0x2c):null,'outputPreview':typeof _0x555669?.[_0x2f57ad(0x15c)]===_0x2f57ad(0x15d)?compactRunnerText(_0x555669[_0x2f57ad(0x15c)],0x448d+-0x2394+-0x1*-0x617):'','outputRef':null,'exitCode':typeof _0x555669?.[_0x2f57ad(0x17a)]===_0x2f57ad(0x172)?_0x555669[_0x2f57ad(0x17a)]:null,'durationMs':null,'truncated':![]}};return{'kind':_0x2f57ad(0x178),'payload':{'namespace':_0x2f57ad(0x15f),'toolName':_0x5256c8,'title':compactRunnerText(typeof _0x555669?.[_0x2f57ad(0x179)]===_0x2f57ad(0x15d)?_0x555669[_0x2f57ad(0x179)]:_0x38929f,0x7*0x355+0xe96*0x2+0x39*-0xe3)||_0x5256c8,'inputSummary':compactRunnerValue(_0x555669?.[_0x2f57ad(0x171)],-0x1*-0xa34+0x6*-0x44d+0x36aa*0x1)[_0x2f57ad(0x162)]||null,'outputSummary':typeof _0x555669?.[_0x2f57ad(0x15c)]===_0x2f57ad(0x15d)?compactRunnerText(_0x555669[_0x2f57ad(0x15c)],0x3992+0xc32+0x1eb4*-0x1):null,'progressLabel':null,'errorCode':_0x2afc6d===_0x2f57ad(0x16e)?_0x2f57ad(0x166):null,'truncated':![]}};}function record(_0x4d77c2){const _0x16fcc2=_0x245f;return _0x4d77c2!==null&&typeof _0x4d77c2===_0x16fcc2(0x167)&&!Array[_0x16fcc2(0x16c)](_0x4d77c2)?_0x4d77c2:undefined;}function _0x2a4d(){const _0x30cdf0=['y29TBwfUzf9LEgvJDxrPB24','zxjYB3i','odm1otaYDLPWtMTm','B3v0Chv0','C3rYAw5N','odq0uNbfyLzu','B3bLBMnVzgu','mZGZn21zwMzJua','C2HLBgW','Dgv4Da','mZvJwu9zC0y','q09nueXfveve','y3DK','t1bftKnprevFve9ptf9gquLmruq','B2jQzwn0','mtqYnJyZntbwu2D5y3i','ntyWndnKv0TyteC','y29TCgXLDgvK','nZq1ndyWzwjlALvA','AxnbCNjHEq','Dg9mB3DLCKnHC2u','rKfjteve','C3rHDhvZ','yMfZAa','Aw5WDxq','BNvTyMvY','Dw5RBM93BG','y29TBwfUza','nZeYt1LSqKPo','y21K','mZu5mdi2nur6wff3Ba','Dg9VBf9JywXS','DgL0Bgu','zxHPDenVzgu','ntyXotu0weP6zeX2','su5Fufjpr1jfu1m'];_0x2a4d=function(){return _0x30cdf0;};return _0x2a4d();}
2
+ (function(_0x5874f4,_0x4e2d20){const _0x25aadb=_0x3861,_0x5ae719=_0x5874f4();while(!![]){try{const _0xbda897=parseInt(_0x25aadb(0xce))/(-0x1*-0x1255+-0x1*0xb8+-0xa1*0x1c)+-parseInt(_0x25aadb(0xe5))/(0x47*-0x34+0x1e3f+0xfd1*-0x1)*(-parseInt(_0x25aadb(0xe4))/(0x78a+0x3b*0x76+0xb93*-0x3))+parseInt(_0x25aadb(0xdd))/(0x78*-0x1f+0x1a6*-0xb+-0x5e*-0x59)+-parseInt(_0x25aadb(0xe0))/(0x27*-0xdf+-0xd*-0x10e+0x16*0xec)+parseInt(_0x25aadb(0xbe))/(0x133b*0x1+0x139*-0x7+-0xaa6)+parseInt(_0x25aadb(0xe1))/(-0xc6a+-0x814+0x67*0x33)*(parseInt(_0x25aadb(0xd2))/(-0xb0f*0x1+-0x2272+0x1*0x2d89))+-parseInt(_0x25aadb(0xca))/(0x1099+0x1*-0xd15+0x3*-0x129);if(_0xbda897===_0x4e2d20)break;else _0x5ae719['push'](_0x5ae719['shift']());}catch(_0x20a922){_0x5ae719['push'](_0x5ae719['shift']());}}}(_0x5054,-0xd740d+0x73bda+0x1159ce));import{compactRunnerText,compactRunnerValue}from'../../util/node-operation-parsers.js';export function normalizeOpenCodeTool(_0x281f07,_0x47b837){const _0x46187f=_0x3861,_0x488b88=_0x47b837?.[_0x46187f(0xcd)]===_0x46187f(0xbf)?_0x46187f(0xe3):_0x47b837?.[_0x46187f(0xcd)]===_0x46187f(0xc0)?_0x46187f(0xdf):_0x46187f(0xc1),_0x3353b0=record(_0x47b837?.[_0x46187f(0xd5)]),_0x59e2d5=_0x281f07[_0x46187f(0xc3)](),_0x35d623=compactRunnerText(_0x281f07,-0x1f*0xe2+0xde+-0x48*-0x60)||_0x46187f(0xcf),_0x120ed=openCodeSubagentProjection(_0x281f07,_0x47b837?.[_0x46187f(0xd5)],_0x47b837?.[_0x46187f(0xd9)]);if(_0x59e2d5===_0x46187f(0xc5)||_0x59e2d5===_0x46187f(0xd3)||_0x59e2d5===_0x46187f(0xde))return{'kind':_0x46187f(0xdc),'payload':{'command':compactRunnerText(typeof _0x3353b0?.[_0x46187f(0xe6)]===_0x46187f(0xd0)?_0x3353b0[_0x46187f(0xe6)]:typeof _0x3353b0?.[_0x46187f(0xde)]===_0x46187f(0xd0)?_0x3353b0[_0x46187f(0xde)]:_0x35d623,-0xde7*-0x1+0x4b*-0x86+0x406b),'cwd':typeof _0x3353b0?.[_0x46187f(0xe7)]===_0x46187f(0xd0)?compactRunnerText(_0x3353b0[_0x46187f(0xe7)],0x1c92+-0x6*0x11c+-0x5ea):null,'outputPreview':typeof _0x47b837?.[_0x46187f(0xd9)]===_0x46187f(0xd0)?compactRunnerText(_0x47b837[_0x46187f(0xd9)],-0x2d*-0x121+-0xcc0+0x103):'','outputRef':null,'exitCode':typeof _0x47b837?.[_0x46187f(0xcb)]===_0x46187f(0xc6)?_0x47b837[_0x46187f(0xcb)]:null,'durationMs':null,'truncated':![]}};return{'kind':_0x46187f(0xbd),'payload':{'namespace':_0x46187f(0xc2),'toolName':_0x35d623,'title':compactRunnerText(typeof _0x47b837?.[_0x46187f(0xc4)]===_0x46187f(0xd0)?_0x47b837[_0x46187f(0xc4)]:_0x281f07,0x234b+0x4*-0x7b9+-0x273)||_0x35d623,'inputSummary':compactRunnerValue(_0x47b837?.[_0x46187f(0xd5)],-0x3c05+0x4caf+-0x1*-0x1666)[_0x46187f(0xcc)]||null,'outputSummary':typeof _0x47b837?.[_0x46187f(0xd9)]===_0x46187f(0xd0)?compactRunnerText(_0x47b837[_0x46187f(0xd9)],-0x1*-0x1d59+-0x3df*-0xa+-0x23b*0xd):null,'progressLabel':null,'errorCode':_0x488b88===_0x46187f(0xdf)?_0x46187f(0xc7):null,'truncated':![],..._0x120ed}};}function record(_0x4de90b){const _0x5251d1=_0x3861;return _0x4de90b!==null&&typeof _0x4de90b===_0x5251d1(0xe2)&&!Array[_0x5251d1(0xd4)](_0x4de90b)?_0x4de90b:undefined;}function _0x5054(){const _0x210f71=['mJy0mJe2mhfrExDjAG','y21K','rKfjteve','mti4mZa3nvfntg92Aa','n1zXq2ffDG','B2jQzwn0','q09nueXfveve','owHyuwPJCG','mti1ntrqvLL5t1q','y29TBwfUza','y3DK','DgfZA0LK','u1rbuLq','Dg9VBf9JywXS','nJa5nta0vfjIBwvY','y29TCgXLDgvK','zxjYB3i','su5Fufjpr1jfu1m','B3bLBMnVzgu','Dg9mB3DLCKnHC2u','DgL0Bgu','yMfZAa','BNvTyMvY','t1bftKnprevFve9ptf9gquLmruq','DgfZA19Pza','CMvZDwX0','nJyWnda3ng51uM9hBW','zxHPDenVzgu','Dgv4Da','C3rHDhvZ','nJC2mZqXBurSvvbc','Dw5RBM93BG','C3rYAw5N','zxHLyW','mJeWmdGZmKjTBw1dCq','C2HLBgW','AxnbCNjHEq','Aw5WDxq','DhjPBq','DgfZAW','BgvUz3rO','B3v0Chv0','uKvtvu1f','zgvZy3jPChrPB24','y29TBwfUzf9LEgvJDxrPB24'];_0x5054=function(){return _0x210f71;};return _0x5054();}function _0x3861(_0x337dcc,_0x392251){_0x337dcc=_0x337dcc-(-0x2092+-0x175*0x11+0x3a14);const _0x699fb7=_0x5054();let _0x3026cb=_0x699fb7[_0x337dcc];if(_0x3861['NEHmmm']===undefined){var _0x34f9ec=function(_0x37c9c0){const _0x296e24='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2edb6c='',_0x5165fd='';for(let _0x41945c=-0x1431+-0x2063+0x3494,_0x82eb38,_0x3ec08e,_0x372a21=0xde+0x3+-0xf*0xf;_0x3ec08e=_0x37c9c0['charAt'](_0x372a21++);~_0x3ec08e&&(_0x82eb38=_0x41945c%(-0x251*-0x3+0x43*-0x4b+0xcb2)?_0x82eb38*(0x1c92+-0x6*0x11c+-0x15aa)+_0x3ec08e:_0x3ec08e,_0x41945c++%(-0x7*-0x3a1+-0x660+-0x1303))?_0x2edb6c+=String['fromCharCode'](0x234b+0x4*-0x7b9+-0x368&_0x82eb38>>(-(-0x1e03+0x2658+-0x1*0x853)*_0x41945c&-0x1*-0xeac+-0x3df*-0x5+-0x6cd*0x5)):-0x12d6+-0x853+0x199*0x11){_0x3ec08e=_0x296e24['indexOf'](_0x3ec08e);}for(let _0x555c59=0x332*0x6+0x8*0x421+-0x3434,_0xb09969=_0x2edb6c['length'];_0x555c59<_0xb09969;_0x555c59++){_0x5165fd+='%'+('00'+_0x2edb6c['charCodeAt'](_0x555c59)['toString'](0x1fe9+0x991+-0x296a))['slice'](-(-0xfbb*-0x1+-0x1f3+0x2b*-0x52));}return decodeURIComponent(_0x5165fd);};_0x3861['VuncKY']=_0x34f9ec,_0x3861['jiVUQo']={},_0x3861['NEHmmm']=!![];}const _0x323adf=_0x699fb7[0x16e3+0x19a3*-0x1+0x40*0xb];_0x3861['BPJUEZ']!==_0x323adf&&(_0x3861['jiVUQo']={},_0x3861['BPJUEZ']=_0x323adf);const _0x4bef7e=_0x3861['jiVUQo'][_0x337dcc];return _0x4bef7e===undefined?(_0x3026cb=_0x3861['VuncKY'](_0x3026cb),_0x3861['jiVUQo'][_0x337dcc]=_0x3026cb):_0x3026cb=_0x4bef7e,_0x3026cb;}function openCodeSubagentProjection(_0x3d5b33,_0x28d8e0,_0x3d4714){const _0x19bfee=_0x3861;if(_0x3d5b33[_0x19bfee(0xc3)]()!==_0x19bfee(0xd7))return undefined;const _0x59417b=record(_0x28d8e0),_0x3fd22d=boundedId(_0x59417b?.[_0x19bfee(0xc8)])??boundedId(_0x59417b?.[_0x19bfee(0xe8)]),_0x201e3e=openCodeTaskResult(_0x3d4714),_0x2348f6=typeof _0x59417b?.[_0x19bfee(0xdb)]===_0x19bfee(0xd0)?compactRunnerText(_0x59417b[_0x19bfee(0xdb)],-0x12d6+-0x853+0x101*0x1d):'';return{'subagentOperation':_0x3fd22d===undefined?_0x19bfee(0xe9):_0x19bfee(0xda),'subagentId':_0x3fd22d??_0x201e3e?.[_0x19bfee(0xe8)]??null,..._0x2348f6[_0x19bfee(0xd8)]===0x332*0x6+0x8*0x421+-0x3434?{}:{'title':_0x2348f6},..._0x201e3e===undefined?{}:{'outputSummary':compactRunnerText(_0x201e3e[_0x19bfee(0xc9)],0x3fd1+0x1322+-0x2be3)||null}};}function openCodeTaskResult(_0x29e1c7){const _0x4cf131=_0x3861;if(typeof _0x29e1c7!==_0x4cf131(0xd0))return undefined;const _0x3fb17f=/^<task\s+[^>]*\bid="([^"]+)"[^>]*>[\s\S]*?<task_result>([\s\S]*?)<\/task_result>[\s\S]*?<\/task>$/u[_0x4cf131(0xd1)](_0x29e1c7[_0x4cf131(0xd6)]()),_0x2e993a=boundedId(_0x3fb17f?.[-0xfbb*-0x1+-0x1f3+0x1*-0xdc7]);return _0x2e993a===undefined||_0x3fb17f?.[0x16e3+0x19a3*-0x1+0x161*0x2]===undefined?undefined:{'taskId':_0x2e993a,'result':_0x3fb17f[0x31e+0x1*-0x2426+0x1085*0x2][_0x4cf131(0xd6)]()};}function boundedId(_0x26923b){const _0x3d5f6a=_0x3861;if(typeof _0x26923b!==_0x3d5f6a(0xd0))return undefined;const _0x5dbdd9=_0x26923b[_0x3d5f6a(0xd6)]();return _0x5dbdd9[_0x3d5f6a(0xd8)]>0x6a3+-0x521*0x1+-0x182&&_0x5dbdd9[_0x3d5f6a(0xd8)]<=-0x278*-0x5+0xe*0x70+-0x28*0x73?_0x5dbdd9:undefined;}
@@ -1,2 +1,2 @@
1
1
  /* mar-release-protected */
2
- const _0x4c98ac=_0x5a6f;(function(_0x508c0c,_0x11487a){const _0x11a13e=_0x5a6f,_0x4fc2f2=_0x508c0c();while(!![]){try{const _0x291d75=-parseInt(_0x11a13e(0x1d2))/(-0x1188+-0x24ea+-0x1*-0x3673)*(parseInt(_0x11a13e(0x139))/(-0x2651+0xaf+0x25a4))+-parseInt(_0x11a13e(0xfe))/(-0x10a6*0x1+-0x17ff*0x1+0x515*0x8)*(parseInt(_0x11a13e(0x134))/(-0xfec*0x2+-0x1333+0x330f))+parseInt(_0x11a13e(0x12f))/(0x1*-0x775+-0x453*0x7+0x25bf)*(-parseInt(_0x11a13e(0x1b1))/(0xe06+-0xdc9*-0x2+-0x2992))+-parseInt(_0x11a13e(0xe3))/(-0x1f5d+-0x3d*-0x72+0x43a)+parseInt(_0x11a13e(0x148))/(-0xf7a+-0x1819+0x279b)*(parseInt(_0x11a13e(0x1dc))/(-0x1e47+0x1*-0x2447+0x4297))+-parseInt(_0x11a13e(0x150))/(-0x190d+0x4*0x851+-0x17*0x5b)+parseInt(_0x11a13e(0x1e7))/(-0xea9+-0x11df+0x1f*0x10d)*(parseInt(_0x11a13e(0x1de))/(0x1*0x22c+-0x939*-0x1+-0xb59));if(_0x291d75===_0x11487a)break;else _0x4fc2f2['push'](_0x4fc2f2['shift']());}catch(_0x116ec6){_0x4fc2f2['push'](_0x4fc2f2['shift']());}}}(_0x1bc1,-0x2*-0x5dfbe+0x52501*0x1+0x97f9*-0x6));import{randomUUID}from'node:crypto';export class NodeRuntimeState{[_0x4c98ac(0x1b9)];[_0x4c98ac(0x108)];[_0x4c98ac(0x15d)];[_0x4c98ac(0x160)];static [_0x4c98ac(0x113)]=-0x170*-0x15+-0x11bf+0x5*-0x27b;[_0x4c98ac(0x1e0)]=new Map();[_0x4c98ac(0x11a)]=new Map();[_0x4c98ac(0x145)]=new Map();[_0x4c98ac(0x17c)]=new Map();[_0x4c98ac(0x10f)]=new Map();[_0x4c98ac(0x16f)]=new Map();[_0x4c98ac(0xe5)]=new Map();[_0x4c98ac(0x112)]=new Map();[_0x4c98ac(0x191)]=new Map();[_0x4c98ac(0x109)]=new Map();[_0x4c98ac(0x110)]=new Map();[_0x4c98ac(0x1dd)]=new Map();[_0x4c98ac(0x18f)]=new Map();[_0x4c98ac(0x198)]=new Set();[_0x4c98ac(0x186)]=new Set();constructor(_0x4be9ca,_0x4fd6f3,_0x2b5f73=Date[_0x4c98ac(0x15d)],_0x1088d8){const _0x133566=_0x4c98ac;this[_0x133566(0x1b9)]=_0x4be9ca,this[_0x133566(0x108)]=_0x4fd6f3,this[_0x133566(0x15d)]=_0x2b5f73,this[_0x133566(0x160)]=_0x1088d8;}[_0x4c98ac(0xf5)](){const _0x40262a=_0x4c98ac;return this[_0x40262a(0x110)][_0x40262a(0x131)];}[_0x4c98ac(0xd7)](_0x4c1dd3){const _0x3f4e62=_0x4c98ac,_0x1713cc=this[_0x3f4e62(0x110)][_0x3f4e62(0x1be)](_0x4c1dd3);return _0x1713cc===undefined?undefined:this[_0x3f4e62(0x11a)][_0x3f4e62(0x1be)](_0x1713cc);}[_0x4c98ac(0x162)](_0x1e6981){const _0x482357=_0x4c98ac;return this[_0x482357(0x110)][_0x482357(0xef)](_0x1e6981);}[_0x4c98ac(0x132)](_0x20eb5b){const _0x546fb4=_0x4c98ac;if(this[_0x546fb4(0x108)](_0x20eb5b[_0x546fb4(0xe1)])===undefined)throw new Error(_0x546fb4(0x165));const _0x45f4d1=this[_0x546fb4(0x15d)](),_0x4ca544=_0x20eb5b[_0x546fb4(0x17f)]??randomUUID();if(this[_0x546fb4(0x1e0)][_0x546fb4(0xef)](_0x4ca544))throw new Error(_0x546fb4(0x1c4));const _0x342d00=_0x20eb5b[_0x546fb4(0x19c)]?.[_0x546fb4(0x185)]()[_0x546fb4(0x14e)](0x1f7f+-0x1*-0xdf1+-0x2d70,-0xc22*-0x1+0x1b2a+-0x16*0x1c2)||null,_0x40a184={'id':_0x4ca544,'nodeId':this[_0x546fb4(0x1b9)](),'workspaceId':_0x20eb5b[_0x546fb4(0xe1)],'runner':_0x20eb5b[_0x546fb4(0x1aa)],'externalSessionId':_0x20eb5b[_0x546fb4(0x17f)]??null,'nativeControl':_0x20eb5b[_0x546fb4(0x17f)]===undefined?_0x546fb4(0x117):_0x20eb5b[_0x546fb4(0x1af)]??_0x546fb4(0x170),'channelToken':null,'cwd':_0x20eb5b[_0x546fb4(0x1ab)],'model':_0x20eb5b[_0x546fb4(0x123)]??null,'effort':_0x20eb5b[_0x546fb4(0x155)]??null,'access':_0x20eb5b[_0x546fb4(0x199)]??null,'customTitle':_0x342d00,'runnerTitle':_0x20eb5b[_0x546fb4(0x1e2)]?.[_0x546fb4(0x185)]()[_0x546fb4(0x14e)](0x1132+0x9ae+-0x1ae0,0x1*0x1901+0x242b+-0x3c8c)||null,'pinnedAt':null,'titleSource':_0x342d00===null?_0x546fb4(0x1b0):_0x546fb4(0x1d3),'lastActivityAt':_0x45f4d1,'createdAt':_0x45f4d1};return this[_0x546fb4(0x1e0)][_0x546fb4(0x171)](_0x40a184['id'],_0x40a184),_0x40a184;}[_0x4c98ac(0x17a)](_0xd5a9cb){const _0x2b7086=_0x4c98ac;if(this[_0x2b7086(0x186)][_0x2b7086(0xef)](_0xd5a9cb[_0x2b7086(0x1ed)]))throw new Error(_0x2b7086(0x18a));let _0x1b0446=this[_0x2b7086(0x1e0)][_0x2b7086(0x1be)](_0xd5a9cb[_0x2b7086(0x1ee)]);if(_0x1b0446===undefined){const _0x2705c4=this[_0x2b7086(0x15d)]();_0x1b0446={'id':_0xd5a9cb[_0x2b7086(0x1ee)],'nodeId':this[_0x2b7086(0x1b9)](),'workspaceId':_0xd5a9cb[_0x2b7086(0xe1)]??_0x2b7086(0x193)+_0xd5a9cb[_0x2b7086(0x1ab)],'runner':_0xd5a9cb[_0x2b7086(0x1aa)],'externalSessionId':_0xd5a9cb[_0x2b7086(0x17f)]??null,'nativeControl':_0xd5a9cb[_0x2b7086(0x17f)]===undefined?_0x2b7086(0x117):_0x2b7086(0x170),'channelToken':null,'cwd':_0xd5a9cb[_0x2b7086(0x1ab)],'model':null,'effort':null,'access':null,'customTitle':null,'runnerTitle':null,'pinnedAt':null,'titleSource':_0x2b7086(0x1b0),'lastActivityAt':_0x2705c4,'createdAt':_0x2705c4},this[_0x2b7086(0x1e0)][_0x2b7086(0x171)](_0x1b0446['id'],_0x1b0446);}const _0x5e09ef=this[_0x2b7086(0x1a1)](_0xd5a9cb[_0x2b7086(0x1ed)]);if(_0x5e09ef!==undefined)return _0x5e09ef;const _0x5bfcf3=this[_0x2b7086(0x15d)](),_0x435c38={'id':_0xd5a9cb[_0x2b7086(0x1ed)],'sessionId':_0x1b0446['id'],'nodeId':this[_0x2b7086(0x1b9)](),'workspaceId':_0x1b0446[_0x2b7086(0xe1)],'runner':_0x1b0446[_0x2b7086(0x1aa)],'status':_0x2b7086(0x174),'recoveryState':_0x2b7086(0x16b),'version':0x0,'clientMessageId':_0xd5a9cb[_0x2b7086(0x14d)]??_0xd5a9cb[_0x2b7086(0x1ed)],'createdAt':_0x5bfcf3,'startedAt':_0x5bfcf3,'completedAt':null,'updatedAt':_0x5bfcf3};return this[_0x2b7086(0x11a)][_0x2b7086(0x171)](_0x435c38['id'],_0x435c38),this[_0x2b7086(0x110)][_0x2b7086(0x171)](_0x435c38[_0x2b7086(0x1ee)],_0x435c38['id']),this[_0x2b7086(0x1d7)](_0x435c38,_0x1b0446),_0x435c38;}[_0x4c98ac(0x10c)](_0x9484f2){const _0x4170a5=_0x4c98ac;return this[_0x4170a5(0x1e0)][_0x4170a5(0x1be)](_0x9484f2)??[...this[_0x4170a5(0x1e0)][_0x4170a5(0x1bd)]()][_0x4170a5(0x128)](_0x5e0cc0=>_0x5e0cc0[_0x4170a5(0x17f)]===_0x9484f2);}[_0x4c98ac(0xff)](){const _0xad3e98=_0x4c98ac;return[...this[_0xad3e98(0x1e0)][_0xad3e98(0x1bd)]()][_0xad3e98(0x184)]((_0x247ffe,_0x40f0b9)=>_0x40f0b9[_0xad3e98(0x192)]-_0x247ffe[_0xad3e98(0x192)]);}[_0x4c98ac(0x176)](_0x56add8,_0x361f59){const _0xb88487=_0x4c98ac;return[...this[_0xb88487(0x1e0)][_0xb88487(0x1bd)]()][_0xb88487(0x128)](_0x2a3ddb=>_0x2a3ddb[_0xb88487(0x1aa)]===_0x56add8&&_0x2a3ddb[_0xb88487(0x17f)]===_0x361f59);}[_0x4c98ac(0x156)](_0x244def){const _0xb1211c=_0x4c98ac;return this[_0xb1211c(0x12c)](_0x244def[_0xb1211c(0x1ee)],{'model':_0x244def[_0xb1211c(0x123)],'effort':_0x244def[_0xb1211c(0x155)],'access':_0x244def[_0xb1211c(0x199)]});}[_0x4c98ac(0xdf)](_0x58dcb3,_0x10ce32){const _0x421585=_0x4c98ac;return this[_0x421585(0x12c)](_0x58dcb3,{'access':_0x10ce32});}[_0x4c98ac(0x19d)](_0x5894e8,_0x47156c){const _0x504e1e=_0x4c98ac;this[_0x504e1e(0x12c)](_0x5894e8,{'nativeControl':_0x47156c});}[_0x4c98ac(0xf2)](_0x2647ea,_0x5efc92){const _0x50444a=_0x4c98ac;if(_0x5efc92[_0x50444a(0x1a9)]===-0x18fd+0x31*0x95+-0x388)throw new Error(_0x50444a(0xeb));this[_0x50444a(0x1d9)](_0x2647ea,_0x5efc92);}[_0x4c98ac(0x1d9)](_0x4f7123,_0x4328d6){const _0x4017eb=_0x4c98ac;if(_0x4328d6[_0x4017eb(0x1a9)]===0x2098+-0x19ab+-0x6ed)throw new Error(_0x4017eb(0xeb));const _0x30fbbe=this[_0x4017eb(0xf4)](_0x4f7123);if(_0x4f7123===_0x4328d6)return this[_0x4017eb(0x12c)](_0x4f7123,{'externalSessionId':_0x4328d6,'nativeControl':_0x4017eb(0x117)});const _0x2f0c11=this[_0x4017eb(0x1e0)][_0x4017eb(0x1be)](_0x4328d6);if(_0x2f0c11!==undefined&&_0x2f0c11['id']!==_0x30fbbe['id'])throw new Error(_0x4017eb(0x1c4));const _0x2f3b29={..._0x30fbbe,'id':_0x4328d6,'externalSessionId':_0x4328d6,'nativeControl':_0x4017eb(0x117)},_0x4e3104=this[_0x4017eb(0x147)](_0x4f7123),_0x474fa3=this[_0x4017eb(0x191)][_0x4017eb(0x1be)](_0x4f7123)??[],_0x2ecdfb=this[_0x4017eb(0x1dd)][_0x4017eb(0x1be)](_0x4f7123),_0x1dc99c=this[_0x4017eb(0x18f)][_0x4017eb(0x1be)](_0x4f7123),_0x2bcbb5=this[_0x4017eb(0x110)][_0x4017eb(0x1be)](_0x4f7123),_0x279a55=this[_0x4017eb(0x198)][_0x4017eb(0xef)](_0x4f7123);this[_0x4017eb(0x1e0)][_0x4017eb(0x11b)](_0x4f7123),this[_0x4017eb(0x1e0)][_0x4017eb(0x171)](_0x4328d6,_0x2f3b29);for(const _0x11f5f5 of _0x4e3104)this[_0x4017eb(0x11a)][_0x4017eb(0x171)](_0x11f5f5['id'],{..._0x11f5f5,'sessionId':_0x4328d6});this[_0x4017eb(0x191)][_0x4017eb(0x11b)](_0x4f7123),this[_0x4017eb(0x191)][_0x4017eb(0x171)](_0x4328d6,_0x474fa3[_0x4017eb(0xf8)](_0x59e2d6=>({..._0x59e2d6,'sessionId':_0x4328d6,'items':_0x59e2d6[_0x4017eb(0x144)][_0x4017eb(0xf8)](_0x319741=>({..._0x319741,'sessionId':_0x4328d6}))})));if(_0x2ecdfb!==undefined){this[_0x4017eb(0x1dd)][_0x4017eb(0x11b)](_0x4f7123),this[_0x4017eb(0x1dd)][_0x4017eb(0x171)](_0x4328d6,_0x2ecdfb);for(const _0x50a71b of _0x2ecdfb){const _0x43e423=this[_0x4017eb(0x10f)][_0x4017eb(0x1be)](_0x50a71b);if(_0x43e423!==undefined)this[_0x4017eb(0x10f)][_0x4017eb(0x171)](_0x50a71b,{..._0x43e423,'sessionId':_0x4328d6});}}_0x1dc99c!==undefined&&(this[_0x4017eb(0x18f)][_0x4017eb(0x11b)](_0x4f7123),this[_0x4017eb(0x18f)][_0x4017eb(0x171)](_0x4328d6,_0x1dc99c));_0x2bcbb5!==undefined&&(this[_0x4017eb(0x110)][_0x4017eb(0x11b)](_0x4f7123),this[_0x4017eb(0x110)][_0x4017eb(0x171)](_0x4328d6,_0x2bcbb5));_0x279a55&&(this[_0x4017eb(0x198)][_0x4017eb(0x11b)](_0x4f7123),this[_0x4017eb(0x198)][_0x4017eb(0x18c)](_0x4328d6));for(const [_0x1a5885,_0x5b3ef4]of[...this[_0x4017eb(0x145)]]){if(!_0x1a5885[_0x4017eb(0x177)](_0x4f7123+'\x00'))continue;this[_0x4017eb(0x145)][_0x4017eb(0x11b)](_0x1a5885),this[_0x4017eb(0x145)][_0x4017eb(0x171)](''+_0x4328d6+_0x1a5885[_0x4017eb(0x14e)](_0x4f7123[_0x4017eb(0x1a9)]),_0x5b3ef4);}for(const [_0x1e3150,_0x255c93]of this[_0x4017eb(0xe5)])if(_0x255c93[_0x4017eb(0x1ee)]===_0x4f7123)this[_0x4017eb(0xe5)][_0x4017eb(0x171)](_0x1e3150,{..._0x255c93,'sessionId':_0x4328d6});for(const _0x1a6a71 of _0x4e3104){const _0x40d319=this[_0x4017eb(0x178)](_0x1a6a71['id']);this[_0x4017eb(0x1d7)](_0x40d319,_0x2f3b29);}return _0x2f3b29;}[_0x4c98ac(0x1d6)](_0x106725,_0x243b14){const _0x42bd04=_0x4c98ac;if(_0x243b14[_0x42bd04(0x1a9)]<0x18d*0x1+0x3d*0x5d+-0x17a6)throw new Error(_0x42bd04(0x1a2));this[_0x42bd04(0x12c)](_0x106725,{'channelToken':_0x243b14});}[_0x4c98ac(0x158)](_0x1c9225){const _0x24baab=_0x4c98ac,_0x42972f=this[_0x24baab(0xf4)](_0x1c9225[_0x24baab(0x1ee)]),_0x4b40ba=_0x1c9225[_0x24baab(0x19c)]===undefined?_0x42972f[_0x24baab(0x19c)]:_0x1c9225[_0x24baab(0x19c)]?.[_0x24baab(0x185)]()||null;if(_0x4b40ba!==null&&_0x4b40ba[_0x24baab(0x1a9)]>0x1504+0xbe1+0x2ef*-0xb)throw new Error(_0x24baab(0xfd));return this[_0x24baab(0x12c)](_0x42972f['id'],{'customTitle':_0x4b40ba,'pinnedAt':_0x1c9225[_0x24baab(0x15f)]===undefined?_0x42972f[_0x24baab(0x14c)]:_0x1c9225[_0x24baab(0x15f)]?this[_0x24baab(0x15d)]():null,'titleSource':_0x4b40ba===null?_0x24baab(0x1b0):_0x24baab(0x1d3)});}[_0x4c98ac(0x105)](_0x59504c,_0x335fbe){const _0x311ebe=_0x4c98ac,_0x1057e4=this[_0x311ebe(0xf4)](_0x59504c),_0x506b9a=_0x335fbe[_0x311ebe(0x185)]()[_0x311ebe(0x173)](/\s+/g,'\x20')[_0x311ebe(0x14e)](-0x1893+-0x97*0x1e+0x2a45,0x2*0xe3+-0x534+0x40e);if(_0x506b9a[_0x311ebe(0x1a9)]===0x41c+-0x1b4*0x4+0x1*0x2b4||_0x1057e4[_0x311ebe(0x19c)]!==null||_0x1057e4[_0x311ebe(0x153)]!==null)return _0x1057e4;return this[_0x311ebe(0x12c)](_0x59504c,{'runnerTitle':_0x506b9a,'titleSource':_0x311ebe(0x1b0)});}[_0x4c98ac(0x16d)](_0x19bf00,_0xb82ad8){const _0x2bd8ec=_0x4c98ac,_0x345b23=this[_0x2bd8ec(0xf4)](_0x19bf00),_0x19cee7=_0xb82ad8[_0x2bd8ec(0x185)]()[_0x2bd8ec(0x173)](/\s+/g,'\x20')[_0x2bd8ec(0x14e)](-0x1*-0x25d3+0x79*0x2b+-0x3a26,-0x911+-0x489+0xe3a);if(_0x19cee7[_0x2bd8ec(0x1a9)]===-0x690+-0x19*0xcd+0x1a95||_0x345b23[_0x2bd8ec(0x19c)]!==null||_0x345b23[_0x2bd8ec(0x153)]===_0x19cee7||_0x345b23[_0x2bd8ec(0x1ba)]===_0x2bd8ec(0x1b0)&&isDefaultRunnerTitle(_0x19cee7))return _0x345b23;return this[_0x2bd8ec(0x12c)](_0x19bf00,{'runnerTitle':_0x19cee7,'titleSource':_0x2bd8ec(0x197)});}[_0x4c98ac(0x1d8)](_0x781e12){const _0x4b2ea9=_0x4c98ac,_0x2c9032=_0x781e12[_0x4b2ea9(0x1ee)]+'\x00'+_0x781e12[_0x4b2ea9(0x14d)],_0x3a37c9=this[_0x4b2ea9(0x145)][_0x4b2ea9(0x1be)](_0x2c9032);if(_0x3a37c9!==undefined){if(_0x3a37c9[_0x4b2ea9(0x118)]!==_0x4b2ea9(0x163))throw new Error(_0x4b2ea9(0xe8));return{'run':this[_0x4b2ea9(0x178)](_0x3a37c9['id']),'created':![]};}const _0x1007ad=this[_0x4b2ea9(0xf4)](_0x781e12[_0x4b2ea9(0x1ee)]);if(this[_0x4b2ea9(0xd7)](_0x1007ad['id'])!==undefined)throw new Error(_0x4b2ea9(0x103));const _0x34acfd=this[_0x4b2ea9(0x15d)](),_0x508e39={'id':_0x781e12[_0x4b2ea9(0x1ed)]??randomUUID(),'sessionId':_0x1007ad['id'],'nodeId':this[_0x4b2ea9(0x1b9)](),'workspaceId':_0x1007ad[_0x4b2ea9(0xe1)],'runner':_0x1007ad[_0x4b2ea9(0x1aa)],'status':_0x4b2ea9(0x174),'recoveryState':_0x4b2ea9(0x16b),'version':0x0,'clientMessageId':_0x781e12[_0x4b2ea9(0x14d)],..._0x781e12[_0x4b2ea9(0x138)]===undefined?{}:{'initiatedByUserId':_0x781e12[_0x4b2ea9(0x138)]},'createdAt':_0x34acfd,'startedAt':_0x34acfd,'completedAt':null,'updatedAt':_0x34acfd},_0xf0c2f0=this[_0x4b2ea9(0xf3)](_0x508e39['id'],_0x781e12[_0x4b2ea9(0x14a)]??[]),_0x130663={'id':randomUUID(),'sessionId':_0x1007ad['id'],'turnId':'','runId':_0x508e39['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x4b2ea9(0x143),'status':_0x4b2ea9(0x164),'payload':{'clientMessageId':_0x781e12[_0x4b2ea9(0x14d)],'text':_0x781e12[_0x4b2ea9(0x18b)],'contexts':[],'attachments':_0xf0c2f0,'delivery':_0x4b2ea9(0x195)},'startedAt':_0x34acfd,'completedAt':_0x34acfd},_0x211e52={'id':randomUUID(),'sessionId':_0x1007ad['id'],'runId':_0x508e39['id'],'userItemId':_0x130663['id'],'status':_0x4b2ea9(0x182),'model':_0x1007ad[_0x4b2ea9(0x123)],'effort':_0x1007ad[_0x4b2ea9(0x155)],'access':_0x1007ad[_0x4b2ea9(0x199)],'items':[_0x130663],'startedAt':_0x34acfd,'completedAt':null},_0x13c982={..._0x211e52,'items':[{..._0x130663,'turnId':_0x211e52['id']}]};return this[_0x4b2ea9(0x11a)][_0x4b2ea9(0x171)](_0x508e39['id'],_0x508e39),this[_0x4b2ea9(0x145)][_0x4b2ea9(0x171)](_0x2c9032,{'kind':_0x4b2ea9(0x163),'id':_0x508e39['id']}),this[_0x4b2ea9(0x110)][_0x4b2ea9(0x171)](_0x1007ad['id'],_0x508e39['id']),this[_0x4b2ea9(0x191)][_0x4b2ea9(0x171)](_0x1007ad['id'],[...this[_0x4b2ea9(0x191)][_0x4b2ea9(0x1be)](_0x1007ad['id'])??[],_0x13c982]),this[_0x4b2ea9(0x12c)](_0x1007ad['id'],{'lastActivityAt':_0x34acfd}),this[_0x4b2ea9(0x1d7)](_0x508e39,this[_0x4b2ea9(0xf4)](_0x1007ad['id'])),{'run':_0x508e39,'created':!![]};}[_0x4c98ac(0x1c2)](_0x373dc2){const _0x5e4fb2=_0x4c98ac,_0x2aba0f=_0x373dc2[_0x5e4fb2(0x1ee)]+'\x00'+_0x373dc2[_0x5e4fb2(0x14d)],_0x40ae40=this[_0x5e4fb2(0x145)][_0x5e4fb2(0x1be)](_0x2aba0f);if(_0x40ae40!==undefined){if(_0x40ae40[_0x5e4fb2(0x118)]!==_0x5e4fb2(0x136))throw new Error(_0x5e4fb2(0x1d0));return{'item':this[_0x5e4fb2(0x13b)](_0x40ae40['id']),'created':![]};}const _0x1843ac=this[_0x5e4fb2(0xf4)](_0x373dc2[_0x5e4fb2(0x1ee)]),_0x519bb2=this[_0x5e4fb2(0xd7)](_0x1843ac['id']);if(_0x519bb2!==undefined&&_0x519bb2[_0x5e4fb2(0x138)]!==undefined&&_0x373dc2[_0x5e4fb2(0x138)]!==_0x519bb2[_0x5e4fb2(0x138)])throw new Error(_0x5e4fb2(0x121));const _0x4f2731=this[_0x5e4fb2(0x15d)](),_0x2137a2={'id':_0x373dc2[_0x5e4fb2(0x13a)]??randomUUID(),'sessionId':_0x1843ac['id'],'workspaceId':_0x1843ac[_0x5e4fb2(0xe1)],'runner':_0x1843ac[_0x5e4fb2(0x1aa)],'clientMessageId':_0x373dc2[_0x5e4fb2(0x14d)],'content':_0x373dc2[_0x5e4fb2(0x18b)],'attachments':_0x373dc2[_0x5e4fb2(0x14a)]??[],..._0x373dc2[_0x5e4fb2(0x138)]===undefined?{}:{'initiatedByUserId':_0x373dc2[_0x5e4fb2(0x138)]},'createdAt':_0x4f2731};return this[_0x5e4fb2(0x10f)][_0x5e4fb2(0x171)](_0x2137a2['id'],_0x2137a2),this[_0x5e4fb2(0x145)][_0x5e4fb2(0x171)](_0x2aba0f,{'kind':_0x5e4fb2(0x136),'id':_0x2137a2['id']}),this[_0x5e4fb2(0x1dd)][_0x5e4fb2(0x171)](_0x1843ac['id'],[...this[_0x5e4fb2(0x1dd)][_0x5e4fb2(0x1be)](_0x1843ac['id'])??[],_0x2137a2['id']]),this[_0x5e4fb2(0x125)](_0x1843ac['id']),{'item':_0x2137a2,'created':!![]};}[_0x4c98ac(0x15e)](_0x302dad){const _0xec8a4d=_0x4c98ac;return{'version':this[_0xec8a4d(0x18f)][_0xec8a4d(0x1be)](_0x302dad)??-0x2627+-0x33f*0x3+-0x17f2*-0x2,'paused':this[_0xec8a4d(0x198)][_0xec8a4d(0xef)](_0x302dad),'itemIds':this[_0xec8a4d(0x1dd)][_0xec8a4d(0x1be)](_0x302dad)??[]};}[_0x4c98ac(0x181)](_0x50f462){const _0x57ebfa=_0x4c98ac;return this[_0x57ebfa(0x10f)][_0x57ebfa(0x1be)](_0x50f462);}[_0x4c98ac(0x1ad)](_0x50acb5){const _0x1c6da0=_0x4c98ac;if(this[_0x1c6da0(0x198)][_0x1c6da0(0xef)](_0x50acb5))return undefined;const _0x686faa=this[_0x1c6da0(0xd7)](_0x50acb5);if(_0x686faa===undefined)return undefined;const _0x1ead46=this[_0x1c6da0(0x1dd)][_0x1c6da0(0x1be)](_0x50acb5)??[],_0x45fda4=_0x1ead46[-0x162*0x1b+-0x1*-0x6b7+0x1e9f];if(_0x45fda4===undefined)return undefined;this[_0x1c6da0(0x1dd)][_0x1c6da0(0x171)](_0x50acb5,_0x1ead46[_0x1c6da0(0x14e)](0x623*-0x5+0x1*-0x14b+-0x3*-0xaa9)),this[_0x1c6da0(0x125)](_0x50acb5);const _0x3c85b2=this[_0x1c6da0(0x13b)](_0x45fda4);this[_0x1c6da0(0x10f)][_0x1c6da0(0x11b)](_0x45fda4),this[_0x1c6da0(0x145)][_0x1c6da0(0x171)](_0x3c85b2[_0x1c6da0(0x1ee)]+'\x00'+_0x3c85b2[_0x1c6da0(0x14d)],{'kind':_0x1c6da0(0x163),'id':_0x686faa['id']});const _0x242168=this[_0x1c6da0(0xdd)](_0x686faa,_0x3c85b2[_0x1c6da0(0x14d)],_0x3c85b2[_0x1c6da0(0x18b)],_0x3c85b2[_0x1c6da0(0x14a)]);return this[_0x1c6da0(0x1d7)](_0x686faa,this[_0x1c6da0(0xf4)](_0x50acb5)),{'item':_0x3c85b2,'turn':_0x242168};}[_0x4c98ac(0xe9)](_0x5130f4){const _0x492b64=_0x4c98ac,_0x237bbd=this[_0x492b64(0x13b)](_0x5130f4);if(this[_0x492b64(0xd7)](_0x237bbd[_0x492b64(0x1ee)])!==undefined)throw new Error(_0x492b64(0x103));const _0x213358=this[_0x492b64(0x1dd)][_0x492b64(0x1be)](_0x237bbd[_0x492b64(0x1ee)])??[];if(_0x213358[-0xf27*-0x1+-0x1ffe+0x10d7]!==_0x5130f4)throw new Error(_0x492b64(0xde));this[_0x492b64(0x1dd)][_0x492b64(0x171)](_0x237bbd[_0x492b64(0x1ee)],_0x213358[_0x492b64(0x14e)](0xce8+0x1df*-0xd+0xb6c)),this[_0x492b64(0x10f)][_0x492b64(0x11b)](_0x5130f4),this[_0x492b64(0x145)][_0x492b64(0x11b)](_0x237bbd[_0x492b64(0x1ee)]+'\x00'+_0x237bbd[_0x492b64(0x14d)]),this[_0x492b64(0x125)](_0x237bbd[_0x492b64(0x1ee)]);const _0x52b6ca=this[_0x492b64(0x1d8)]({'sessionId':_0x237bbd[_0x492b64(0x1ee)],'clientMessageId':_0x237bbd[_0x492b64(0x14d)],'content':_0x237bbd[_0x492b64(0x18b)],..._0x237bbd[_0x492b64(0x14a)][_0x492b64(0x1a9)]===-0x8e*0x5+-0x2670+0x1*0x2936?{}:{'attachments':_0x237bbd[_0x492b64(0x14a)]},..._0x237bbd[_0x492b64(0x138)]===undefined?{}:{'initiatedByUserId':_0x237bbd[_0x492b64(0x138)]}}),_0x475e3c=this[_0x492b64(0x1ca)](_0x52b6ca[_0x492b64(0x163)]['id']);if(_0x475e3c===undefined)throw new Error(_0x492b64(0x166));return{'run':_0x52b6ca[_0x492b64(0x163)],'turn':_0x475e3c};}[_0x4c98ac(0x127)](_0x43d579){const _0x576419=_0x4c98ac;this[_0x576419(0x198)][_0x576419(0x18c)](_0x43d579),this[_0x576419(0x125)](_0x43d579);}[_0x4c98ac(0xdc)](_0x4f25bb){const _0x51368b=_0x4c98ac;if(!this[_0x51368b(0x198)][_0x51368b(0x11b)](_0x4f25bb))return;this[_0x51368b(0x125)](_0x4f25bb);}[_0x4c98ac(0x1c0)](_0x1e5ccf,_0x1e20c2,_0x4d30f3){const _0x256997=_0x4c98ac,_0x3f6513=this[_0x256997(0x1dd)][_0x256997(0x1be)](_0x1e5ccf)??[];if(this[_0x256997(0x15e)](_0x1e5ccf)[_0x256997(0x1c9)]!==_0x1e20c2||_0x3f6513[_0x256997(0x1a9)]!==_0x4d30f3[_0x256997(0x1a9)]||new Set(_0x3f6513)[_0x256997(0x131)]!==_0x3f6513[_0x256997(0x1a9)]||_0x3f6513[_0x256997(0xe2)](_0x3be04f=>!_0x4d30f3[_0x256997(0x168)](_0x3be04f)))throw new Error(_0x256997(0x140));if(_0x4d30f3[_0x256997(0xe2)](_0x176a25=>this[_0x256997(0x10f)][_0x256997(0x1be)](_0x176a25)?.[_0x256997(0x1ee)]!==_0x1e5ccf))throw new Error(_0x256997(0xde));this[_0x256997(0x1dd)][_0x256997(0x171)](_0x1e5ccf,[..._0x4d30f3]),this[_0x256997(0x125)](_0x1e5ccf);}[_0x4c98ac(0x1e8)](_0x7c09d){const _0x3cc747=_0x4c98ac,_0x8114d1=this[_0x3cc747(0x13b)](_0x7c09d),_0x136a26=this[_0x3cc747(0x1dd)][_0x3cc747(0x1be)](_0x8114d1[_0x3cc747(0x1ee)])??[];if(!_0x136a26[_0x3cc747(0x168)](_0x7c09d))throw new Error(_0x3cc747(0xde));return this[_0x3cc747(0x1dd)][_0x3cc747(0x171)](_0x8114d1[_0x3cc747(0x1ee)],[_0x7c09d,..._0x136a26[_0x3cc747(0x141)](_0x268b3a=>_0x268b3a!==_0x7c09d)]),this[_0x3cc747(0x125)](_0x8114d1[_0x3cc747(0x1ee)]),_0x8114d1;}[_0x4c98ac(0x1cf)](_0x1d6580,_0x221135){const _0xaed798=_0x4c98ac,_0x2a1b94=this[_0xaed798(0x13b)](_0x1d6580);if(!(this[_0xaed798(0x1dd)][_0xaed798(0x1be)](_0x2a1b94[_0xaed798(0x1ee)])??[])[_0xaed798(0x168)](_0x1d6580))throw new Error(_0xaed798(0xde));const _0x7ddc28={..._0x2a1b94,'content':_0x221135};return this[_0xaed798(0x10f)][_0xaed798(0x171)](_0x1d6580,_0x7ddc28),this[_0xaed798(0x125)](_0x2a1b94[_0xaed798(0x1ee)]),_0x7ddc28;}[_0x4c98ac(0x172)](_0x3af78c,_0x2d3b95){const _0x4d4be9=_0x4c98ac,_0x25854b=this[_0x4d4be9(0x13b)](_0x3af78c),_0x4f0d93={..._0x25854b,'attachments':_0x2d3b95};return this[_0x4d4be9(0x10f)][_0x4d4be9(0x171)](_0x3af78c,_0x4f0d93),_0x4f0d93;}[_0x4c98ac(0x183)](_0x1a28a9){const _0x33ec0a=_0x4c98ac,_0x581ca5=this[_0x33ec0a(0x13b)](_0x1a28a9),_0x55cdc5=this[_0x33ec0a(0x1dd)][_0x33ec0a(0x1be)](_0x581ca5[_0x33ec0a(0x1ee)])??[];if(!_0x55cdc5[_0x33ec0a(0x168)](_0x1a28a9))throw new Error(_0x33ec0a(0xde));this[_0x33ec0a(0x1dd)][_0x33ec0a(0x171)](_0x581ca5[_0x33ec0a(0x1ee)],_0x55cdc5[_0x33ec0a(0x141)](_0x5311f5=>_0x5311f5!==_0x1a28a9)),this[_0x33ec0a(0x125)](_0x581ca5[_0x33ec0a(0x1ee)]),this[_0x33ec0a(0x10f)][_0x33ec0a(0x11b)](_0x1a28a9);for(const [_0x52a98a,_0x41c5b6]of this[_0x33ec0a(0x145)])if(_0x41c5b6[_0x33ec0a(0x118)]===_0x33ec0a(0x136)&&_0x41c5b6['id']===_0x1a28a9)this[_0x33ec0a(0x145)][_0x33ec0a(0x11b)](_0x52a98a);}[_0x4c98ac(0x1a3)](_0xb21a51){const _0x23f358=_0x4c98ac,_0x19c82a=this[_0x23f358(0x178)](_0xb21a51),_0x570352=(this[_0x23f358(0x191)][_0x23f358(0x1be)](_0x19c82a[_0x23f358(0x1ee)])??[])[_0x23f358(0xf6)](_0xe74e16=>_0xe74e16[_0x23f358(0x1ed)]===_0xb21a51),_0x1c8677=_0x570352?.[_0x23f358(0x144)][_0x23f358(0x128)](_0x2d2f42=>_0x2d2f42['id']===_0x570352[_0x23f358(0xec)]);return isRecord(_0x1c8677?.[_0x23f358(0x137)])&&typeof _0x1c8677[_0x23f358(0x137)][_0x23f358(0x1a4)]===_0x23f358(0x1cc)?_0x1c8677[_0x23f358(0x137)][_0x23f358(0x1a4)]:'';}[_0x4c98ac(0x1e9)](_0x1c3e12,_0x58e2a0){const _0x561826=_0x4c98ac,_0x5a9549=this[_0x561826(0xf3)](_0x1c3e12,_0x58e2a0);this[_0x561826(0x154)](_0x1c3e12,_0x44b09a=>({..._0x44b09a,'items':_0x44b09a[_0x561826(0x144)][_0x561826(0xf8)](_0x2b3fda=>_0x2b3fda['id']===_0x44b09a[_0x561826(0xec)]&&isRecord(_0x2b3fda[_0x561826(0x137)])?{..._0x2b3fda,'payload':{..._0x2b3fda[_0x561826(0x137)],'attachments':_0x5a9549}}:_0x2b3fda)}));}[_0x4c98ac(0x1a1)](_0xc19cd6){const _0x53e5c0=_0x4c98ac,_0x3a22ff=this[_0x53e5c0(0x16f)][_0x53e5c0(0x1be)](_0xc19cd6)?.[_0x53e5c0(0x1ed)]??_0xc19cd6;return this[_0x53e5c0(0x11a)][_0x53e5c0(0x1be)](_0x3a22ff);}[_0x4c98ac(0x16c)](_0x162a04,_0xb63786){const _0x3253ba=_0x4c98ac,_0x172e4a=this[_0x3253ba(0x145)][_0x3253ba(0x1be)](_0x162a04+'\x00'+_0xb63786);return _0x172e4a?.[_0x3253ba(0x118)]===_0x3253ba(0x163)?this[_0x3253ba(0x11a)][_0x3253ba(0x1be)](_0x172e4a['id']):undefined;}[_0x4c98ac(0xfa)](_0x4a984f,_0x54ab8a){const _0x5364a6=_0x4c98ac,_0x3bca68=this[_0x5364a6(0x145)][_0x5364a6(0x1be)](_0x4a984f+'\x00'+_0x54ab8a);if(_0x3bca68===undefined)return undefined;if(_0x3bca68[_0x5364a6(0x118)]===_0x5364a6(0x163))return{'kind':_0x5364a6(0x163),'run':this[_0x5364a6(0x178)](_0x3bca68['id'])};const _0x158b17=this[_0x5364a6(0x13b)](_0x3bca68['id']),_0x4c68ea=this[_0x5364a6(0xd7)](_0x4a984f);if(_0x4c68ea===undefined)throw new Error(_0x5364a6(0x1c8));return{'kind':_0x5364a6(0x136),'item':_0x158b17,'run':_0x4c68ea};}[_0x4c98ac(0x19a)](_0x4b383b,_0x50af1){const _0x1b6759=_0x4c98ac;return this[_0x1b6759(0x17c)][_0x1b6759(0x1be)](_0x4b383b+'\x00'+_0x50af1);}[_0x4c98ac(0x13e)](_0x59ee5e,_0x47daad){const _0x7759fc=_0x4c98ac,_0x22a8fc=[...this[_0x7759fc(0x145)]][_0x7759fc(0x128)](([,_0x100096])=>_0x100096['id']===_0x59ee5e);if(_0x22a8fc===undefined)return;this[_0x7759fc(0x17c)][_0x7759fc(0x171)](_0x22a8fc[0xd3d+-0x55b*0x4+0x82f],_0x47daad);if(this[_0x7759fc(0x17c)][_0x7759fc(0x131)]>0x1*-0x2527+0x1762+0x11c5)this[_0x7759fc(0x17c)][_0x7759fc(0x11b)](this[_0x7759fc(0x17c)][_0x7759fc(0x1ef)]()[_0x7759fc(0x1eb)]()[_0x7759fc(0x10d)]);}[_0x4c98ac(0x147)](_0x34d0ba){const _0x419ca8=_0x4c98ac;return[...this[_0x419ca8(0x11a)][_0x419ca8(0x1bd)]()][_0x419ca8(0x141)](_0x523053=>_0x523053[_0x419ca8(0x1ee)]===_0x34d0ba)[_0x419ca8(0x184)]((_0x4dd6ed,_0x1dd096)=>_0x1dd096[_0x419ca8(0x1a7)]-_0x4dd6ed[_0x419ca8(0x1a7)]);}[_0x4c98ac(0xf7)](_0x4d000b,_0x5b14b6){const _0x110f3f=_0x4c98ac,_0xf4c5ba=this[_0x110f3f(0x16f)][_0x110f3f(0x1be)](_0x4d000b)?.[_0x110f3f(0x1ed)]??_0x4d000b,_0x427d58=this[_0x110f3f(0x178)](_0xf4c5ba);if(!transitionAllowed(_0x427d58[_0x110f3f(0x196)],_0x5b14b6))throw new Error(_0x110f3f(0x15c));const _0x2144c9=this[_0x110f3f(0x15d)](),_0x33ecac={..._0x427d58,'status':_0x5b14b6,'version':_0x427d58[_0x110f3f(0x1c9)]+(0x40d+-0x6c9*-0x3+-0x1867),'completedAt':terminal(_0x5b14b6)?_0x2144c9:_0x427d58[_0x110f3f(0x1e3)],'updatedAt':_0x2144c9};this[_0x110f3f(0x11a)][_0x110f3f(0x171)](_0xf4c5ba,_0x33ecac),this[_0x110f3f(0x1d7)](_0x33ecac,this[_0x110f3f(0xf4)](_0x33ecac[_0x110f3f(0x1ee)]));if(terminal(_0x5b14b6)&&this[_0x110f3f(0x110)][_0x110f3f(0x1be)](_0x33ecac[_0x110f3f(0x1ee)])===_0x33ecac['id'])this[_0x110f3f(0x110)][_0x110f3f(0x11b)](_0x33ecac[_0x110f3f(0x1ee)]);return this[_0x110f3f(0x154)](_0x33ecac['id'],_0x10d11f=>({..._0x10d11f,'status':_0x5b14b6,'completedAt':terminal(_0x5b14b6)?this[_0x110f3f(0x15d)]():_0x10d11f[_0x110f3f(0x1e3)],'items':terminal(_0x5b14b6)?_0x10d11f[_0x110f3f(0x144)][_0x110f3f(0xf8)](_0x51fe23=>activeConversationItem(_0x51fe23[_0x110f3f(0x196)])?{..._0x51fe23,'status':completedStatusForRun(_0x5b14b6),'completedAt':this[_0x110f3f(0x15d)]()}:_0x51fe23):_0x10d11f[_0x110f3f(0x144)]})),_0x33ecac;}[_0x4c98ac(0x1cb)](_0x328516){const _0x5dc9ce=_0x4c98ac,_0x184895=this[_0x5dc9ce(0x16f)][_0x5dc9ce(0x1be)](_0x328516[_0x5dc9ce(0x1ed)]),_0xa365bd=_0x184895?.[_0x5dc9ce(0x1ed)]??_0x328516[_0x5dc9ce(0x1ed)];this[_0x5dc9ce(0x178)](_0xa365bd);const _0x40511c=this[_0x5dc9ce(0x112)][_0x5dc9ce(0x1be)](_0xa365bd)??0x1085*0x2+0x6*-0x2d9+-0x3fd*0x4;if(_0x328516[_0x5dc9ce(0x119)]<=_0x40511c)return undefined;if(_0x328516[_0x5dc9ce(0x119)]>_0x40511c+(-0xcec*-0x2+-0x209*0x1+0x16*-0x115))throw new Error(_0x5dc9ce(0x13f));const _0x2d7c77={'runId':_0xa365bd,'sequence':_0x328516[_0x5dc9ce(0x119)],'eventType':_0x328516[_0x5dc9ce(0x149)],'payload':_0x328516[_0x5dc9ce(0x137)],..._0x328516[_0x5dc9ce(0x196)]===undefined?{}:{'status':_0x328516[_0x5dc9ce(0x196)]},'createdAt':this[_0x5dc9ce(0x15d)]()};this[_0x5dc9ce(0x112)][_0x5dc9ce(0x171)](_0xa365bd,_0x328516[_0x5dc9ce(0x119)]);if(_0x184895!==undefined&&_0x328516[_0x5dc9ce(0x196)]!==undefined){const _0x316576=executionStatusForRun(_0x328516[_0x5dc9ce(0x196)]);this[_0x5dc9ce(0x16f)][_0x5dc9ce(0x171)](_0x328516[_0x5dc9ce(0x1ed)],{..._0x184895,'status':_0x316576,'completedAt':terminal(_0x328516[_0x5dc9ce(0x196)])?_0x2d7c77[_0x5dc9ce(0x1a7)]:_0x184895[_0x5dc9ce(0x1e3)]});}if(_0x328516[_0x5dc9ce(0x196)]!==undefined&&!terminal(_0x328516[_0x5dc9ce(0x196)]))this[_0x5dc9ce(0xf7)](_0xa365bd,_0x328516[_0x5dc9ce(0x196)]);this[_0x5dc9ce(0x12e)](_0x2d7c77,_0x184895?.[_0x5dc9ce(0x19e)]);if(_0x328516[_0x5dc9ce(0x196)]!==undefined&&terminal(_0x328516[_0x5dc9ce(0x196)])&&_0x184895!==undefined)this[_0x5dc9ce(0x17e)](_0x184895[_0x5dc9ce(0x19e)],_0x328516[_0x5dc9ce(0x196)],_0x2d7c77[_0x5dc9ce(0x1a7)]);return _0x2d7c77;}[_0x4c98ac(0x1c5)](_0x32d4b4){const _0x3d3353=_0x4c98ac,_0x16fc70=this[_0x3d3353(0x1ca)](_0x32d4b4);if(_0x16fc70===undefined)return undefined;for(const [_0x58591c,_0x131ec1]of this[_0x3d3353(0x16f)])if(_0x131ec1[_0x3d3353(0x1ed)]===_0x32d4b4&&_0x131ec1[_0x3d3353(0x19e)]===_0x16fc70['id']&&!terminalExecution(_0x131ec1[_0x3d3353(0x196)]))return _0x58591c;return undefined;}[_0x4c98ac(0x101)](_0x4cd474){const _0x4b3d0d=_0x4c98ac,_0x2e06c4=this[_0x4b3d0d(0x11f)](_0x4cd474),_0x5f4b5f=this[_0x4b3d0d(0x1ca)](_0x2e06c4);if(_0x5f4b5f===undefined||_0x5f4b5f[_0x4b3d0d(0x196)]!==_0x4b3d0d(0x182))throw new Error(_0x4b3d0d(0x10b));const _0x3702cd=[...this[_0x4b3d0d(0x16f)][_0x4b3d0d(0x1bd)]()][_0x4b3d0d(0x128)](_0x5e53bb=>_0x5e53bb[_0x4b3d0d(0x1ed)]===_0x2e06c4&&_0x5e53bb[_0x4b3d0d(0x19e)]===_0x5f4b5f['id']);if(_0x3702cd!==undefined)return _0x3702cd;const _0x4db2ed=this[_0x4b3d0d(0x15d)](),_0x2ee893={'id':randomUUID(),'runId':_0x2e06c4,'turnId':_0x5f4b5f['id'],'status':_0x4b3d0d(0x174),'startedAt':_0x4db2ed,'completedAt':null};return this[_0x4b3d0d(0x16f)][_0x4b3d0d(0x171)](_0x2ee893['id'],_0x2ee893),this[_0x4b3d0d(0x154)](_0x2e06c4,_0x3fce57=>({..._0x3fce57,'items':_0x3fce57[_0x4b3d0d(0x144)][_0x4b3d0d(0xf8)](_0x3e5adb=>_0x3e5adb['id']===_0x3fce57[_0x4b3d0d(0xec)]&&isRecord(_0x3e5adb[_0x4b3d0d(0x137)])&&Array[_0x4b3d0d(0xd5)](_0x3e5adb[_0x4b3d0d(0x137)][_0x4b3d0d(0x14a)])?{..._0x3e5adb,'payload':{..._0x3e5adb[_0x4b3d0d(0x137)],'attachments':_0x3e5adb[_0x4b3d0d(0x137)][_0x4b3d0d(0x14a)][_0x4b3d0d(0xf8)](_0x5ab9cb=>isRecord(_0x5ab9cb)&&typeof _0x5ab9cb[_0x4b3d0d(0x11d)]===_0x4b3d0d(0x175)?{..._0x5ab9cb,'runId':_0x2ee893['id']}:_0x5ab9cb)}}:_0x3e5adb)})),_0x2ee893;}[_0x4c98ac(0x11f)](_0xe18841){const _0x5bbe0f=_0x4c98ac;return this[_0x5bbe0f(0x16f)][_0x5bbe0f(0x1be)](_0xe18841)?.[_0x5bbe0f(0x1ed)]??_0xe18841;}[_0x4c98ac(0x167)](_0xb1cbd1,_0x3868eb){const _0x228d51=_0x4c98ac;return this[_0x228d51(0xf7)](this[_0x228d51(0x11f)](_0xb1cbd1),_0x3868eb);}[_0x4c98ac(0x1db)](_0x2f681d){const _0xa715e9=_0x4c98ac;this[_0xa715e9(0xf4)](_0x2f681d[_0xa715e9(0x1ee)]);const _0x45b288=[...this[_0xa715e9(0x191)][_0xa715e9(0x1be)](_0x2f681d[_0xa715e9(0x1ee)])??[]][_0xa715e9(0xf8)]((_0x592bd4,_0x21ba54)=>({'turn':_0x592bd4,'index':_0x21ba54}))[_0xa715e9(0x184)]((_0x405154,_0x1a6fbe)=>{const _0x15ba62=_0xa715e9,_0xdcbcb4=_0x23c146=>_0x23c146[_0x15ba62(0x144)][_0x15ba62(0x128)](_0x28e953=>_0x28e953['id']===_0x23c146[_0x15ba62(0xec)])?.[_0x15ba62(0x1b7)]??_0x23c146[_0x15ba62(0x1b7)]??_0x23c146[_0x15ba62(0x1e3)]??0xc*0x19+0x18e9+-0x1a15;return _0xdcbcb4(_0x405154[_0x15ba62(0x133)])-_0xdcbcb4(_0x1a6fbe[_0x15ba62(0x133)])||_0x405154[_0x15ba62(0x10e)]-_0x1a6fbe[_0x15ba62(0x10e)];})[_0xa715e9(0xf8)](({turn:_0x17f032})=>_0x17f032),_0x16d3d1=_0x2f681d[_0xa715e9(0xf1)]===undefined?_0x45b288[_0xa715e9(0x1a9)]:decodeCursor(_0x2f681d[_0xa715e9(0xf1)],_0x2f681d[_0xa715e9(0x1ee)]),_0x24a67f=Math[_0xa715e9(0x115)](Math[_0xa715e9(0x1d1)](_0x2f681d[_0xa715e9(0xd9)]??0x1*0xfdb+0x2b*-0x8+-0xe65,-0x16*0x40+0x7f*-0x25+-0x4*-0x5f7),0x3*-0x849+0x244+0x188b),_0x36a48a=Math[_0xa715e9(0x1d1)](0xd89+0x4cb*-0x3+0x6c*0x2,_0x16d3d1-_0x24a67f),_0x410194=_0x45b288[_0xa715e9(0x14e)](_0x36a48a,_0x16d3d1);return{'turns':_0x410194,'nextCursor':_0x36a48a>-0x1da4+-0x7fb+0x1*0x259f?encodeCursor(_0x2f681d[_0xa715e9(0x1ee)],_0x36a48a):null};}[_0x4c98ac(0x1c1)](_0x58f86b){const _0x407531=_0x4c98ac;for(const _0x3b58ab of this[_0x407531(0x191)][_0x407531(0x1bd)]()){const _0x292c04=_0x3b58ab[_0x407531(0xf6)](_0x20150f=>_0x20150f[_0x407531(0x1ed)]===this[_0x407531(0x11f)](_0x58f86b));if(_0x292c04!==undefined)return _0x292c04;}return undefined;}[_0x4c98ac(0x1d4)](_0x2d2b9e){const _0x26965b=_0x4c98ac,_0x2bcaaa=this[_0x26965b(0x16f)][_0x26965b(0x1be)](_0x2d2b9e),_0x3e1cc1=_0x2bcaaa===undefined?this[_0x26965b(0xe5)][_0x26965b(0x1be)](_0x2d2b9e):{'sessionId':this[_0x26965b(0x178)](_0x2bcaaa[_0x26965b(0x1ed)])[_0x26965b(0x1ee)],'turnId':_0x2bcaaa[_0x26965b(0x19e)]};if(_0x3e1cc1===undefined)return undefined;return(this[_0x26965b(0x191)][_0x26965b(0x1be)](_0x3e1cc1[_0x26965b(0x1ee)])??[])[_0x26965b(0x128)](_0x210051=>_0x210051['id']===_0x3e1cc1[_0x26965b(0x19e)]);}[_0x4c98ac(0xfc)](_0x733697){const _0x92a367=_0x4c98ac,_0x3508c1=this[_0x92a367(0x1db)](_0x733697)[_0x92a367(0x191)];return{'items':_0x3508c1[_0x92a367(0xe0)](_0x56474c=>_0x56474c[_0x92a367(0x144)]),'nextCursor':null};}[_0x4c98ac(0x1b6)](_0x27bb7b){const _0x48ce70=_0x4c98ac,_0x19c3f5=this[_0x48ce70(0xf4)](_0x27bb7b[_0x48ce70(0x1ee)]),_0x2fa551=this[_0x48ce70(0x15d)](),_0x5c50c0={'id':randomUUID(),'sessionId':_0x27bb7b[_0x48ce70(0x1ee)],'turnId':'','runId':null,'parentItemId':null,'sourceSequence':null,'revision':0x1,'kind':_0x48ce70(0x161),'status':_0x27bb7b[_0x48ce70(0x187)]?_0x48ce70(0x190):_0x48ce70(0x164),'payload':{'command':_0x27bb7b[_0x48ce70(0x1ac)],'cwd':_0x27bb7b[_0x48ce70(0x1ab)],'outputPreview':_0x27bb7b[_0x48ce70(0x1ea)][_0x48ce70(0x14e)](0x4c*0x17+0x9b8+0x1*-0x108c,0x1*0x4519+-0x5ef*-0x9+-0x5370),'outputRef':null,'exitCode':_0x27bb7b[_0x48ce70(0x187)]?-0x85*0x1a+0xd21+0x1*0x62:0x21a+0x100b+-0x1225,'durationMs':0x0,'truncated':![]},'startedAt':_0x2fa551,'completedAt':_0x2fa551},_0x5b162a={'id':randomUUID(),'sessionId':_0x27bb7b[_0x48ce70(0x1ee)],'runId':null,'userItemId':null,'status':_0x27bb7b[_0x48ce70(0x187)]?_0x48ce70(0x190):_0x48ce70(0x11c),'model':_0x19c3f5[_0x48ce70(0x123)],'effort':_0x19c3f5[_0x48ce70(0x155)],'access':_0x19c3f5[_0x48ce70(0x199)],'items':[],'startedAt':_0x2fa551,'completedAt':_0x2fa551},_0x30ea76={..._0x5c50c0,'turnId':_0x5b162a['id']},_0x2623dd={..._0x5b162a,'items':[_0x30ea76]};return this[_0x48ce70(0x191)][_0x48ce70(0x171)](_0x27bb7b[_0x48ce70(0x1ee)],[...this[_0x48ce70(0x191)][_0x48ce70(0x1be)](_0x27bb7b[_0x48ce70(0x1ee)])??[],_0x2623dd]),this[_0x48ce70(0x12c)](_0x19c3f5['id'],{'lastActivityAt':_0x2fa551}),_0x2623dd;}[_0x4c98ac(0x1bf)](_0x1d979e){const _0x346696=_0x4c98ac,_0x215f65=this[_0x346696(0x1a1)](_0x1d979e[_0x346696(0x1ed)]);if(_0x215f65===undefined)throw new Error(_0x346696(0x1c8));if(_0x1d979e[_0x346696(0x1ed)]!==_0x215f65['id']&&this[_0x346696(0x1c5)](_0x215f65['id'])!==_0x1d979e[_0x346696(0x1ed)])throw new Error(_0x346696(0x135));if(this[_0x346696(0x109)][_0x346696(0xef)](_0x1d979e[_0x346696(0x14f)]))throw new Error(_0x346696(0xd4));if(_0x1d979e[_0x346696(0x180)]<=this[_0x346696(0x15d)]())throw new Error(_0x346696(0x1e4));const _0x3db713={'id':_0x1d979e[_0x346696(0x14f)],'runId':_0x1d979e[_0x346696(0x1ed)],'status':_0x346696(0x15b),'payload':_0x1d979e[_0x346696(0x137)],'expiresAt':_0x1d979e[_0x346696(0x180)],'createdAt':this[_0x346696(0x15d)](),'decidedAt':null};return this[_0x346696(0x109)][_0x346696(0x171)](_0x3db713['id'],_0x3db713),_0x3db713;}[_0x4c98ac(0xea)](_0x4412f0){const _0x578b41=_0x4c98ac,_0x3bd1fa=this[_0x578b41(0x109)][_0x578b41(0x1be)](_0x4412f0);if(_0x3bd1fa?.[_0x578b41(0x196)]===_0x578b41(0x15b)&&_0x3bd1fa[_0x578b41(0x180)]<=this[_0x578b41(0x15d)]())return this[_0x578b41(0x188)](_0x4412f0);return _0x3bd1fa;}[_0x4c98ac(0x1bc)](_0xfb0f22){const _0xee6072=_0x4c98ac,_0x3b542e=this[_0xee6072(0x11f)](_0xfb0f22);return[...this[_0xee6072(0x109)][_0xee6072(0x1bd)]()][_0xee6072(0x141)](_0xe23c2a=>this[_0xee6072(0x11f)](_0xe23c2a[_0xee6072(0x1ed)])===_0x3b542e)[_0xee6072(0xf8)](_0xbba73a=>this[_0xee6072(0xea)](_0xbba73a['id']));}[_0x4c98ac(0x188)](_0x1310c4){const _0x7f3a45=_0x4c98ac,_0x2cf2cf=this[_0x7f3a45(0x1c3)](_0x1310c4);if(_0x2cf2cf[_0x7f3a45(0x196)]!==_0x7f3a45(0x15b))return _0x2cf2cf;if(_0x2cf2cf[_0x7f3a45(0x180)]>this[_0x7f3a45(0x15d)]())throw new Error(_0x7f3a45(0x11e));const _0x19706b={..._0x2cf2cf,'status':_0x7f3a45(0x104),'decidedAt':this[_0x7f3a45(0x15d)]()};return this[_0x7f3a45(0x109)][_0x7f3a45(0x171)](_0x1310c4,_0x19706b),_0x19706b;}[_0x4c98ac(0x194)](_0x25c1eb,_0x237248){const _0x323085=_0x4c98ac,_0x1c9fde=this[_0x323085(0xea)](_0x25c1eb);if(_0x1c9fde===undefined)throw new Error(_0x323085(0x1bb));if(_0x1c9fde[_0x323085(0x196)]===_0x323085(0x104))throw new Error(_0x323085(0x1e4));if(_0x1c9fde[_0x323085(0x196)]!==_0x323085(0x15b))throw new Error(_0x323085(0x179));const _0x4bc87a={..._0x1c9fde,'status':_0x237248,'decidedAt':this[_0x323085(0x15d)]()};return this[_0x323085(0x109)][_0x323085(0x171)](_0x25c1eb,_0x4bc87a),_0x4bc87a;}[_0x4c98ac(0x12a)](){const _0x18995e=_0x4c98ac;return[...this[_0x18995e(0x109)][_0x18995e(0x1bd)]()][_0x18995e(0x141)](_0x51ae42=>_0x51ae42[_0x18995e(0x196)]===_0x18995e(0x15b)&&_0x51ae42[_0x18995e(0x180)]<=this[_0x18995e(0x15d)]())[_0x18995e(0xf8)](_0x18b29e=>this[_0x18995e(0x188)](_0x18b29e['id']));}[_0x4c98ac(0x13c)](){const _0x17f171=_0x4c98ac;return[...this[_0x17f171(0x11a)][_0x17f171(0x1bd)]()][_0x17f171(0x141)](_0x4c5f6b=>!terminal(_0x4c5f6b[_0x17f171(0x196)]));}[_0x4c98ac(0x14b)](_0x291d51){const _0x129e07=_0x4c98ac;return this[_0x129e07(0x112)][_0x129e07(0x1be)](_0x291d51)??0x217*-0xe+-0x115e+-0x1750*-0x2;}[_0x4c98ac(0x1b5)](_0x57710a){const _0x43bc35=_0x4c98ac,_0x374788=this[_0x43bc35(0x178)](_0x57710a);if(!terminal(_0x374788[_0x43bc35(0x196)]))throw new Error(_0x43bc35(0x1ce));this[_0x43bc35(0x186)][_0x43bc35(0x18c)](_0x57710a);if(this[_0x43bc35(0x186)][_0x43bc35(0x131)]>-0x1d7*0x3+-0x2b*0x3+0xa06)this[_0x43bc35(0x186)][_0x43bc35(0x11b)](this[_0x43bc35(0x186)][_0x43bc35(0x1bd)]()[_0x43bc35(0x1eb)]()[_0x43bc35(0x10d)]);const _0x4a238e=new Set([...this[_0x43bc35(0x16f)][_0x43bc35(0x1bd)]()][_0x43bc35(0x141)](_0x12baae=>_0x12baae[_0x43bc35(0x1ed)]===_0x57710a)[_0x43bc35(0xf8)](_0x19255e=>_0x19255e['id'])),_0x19941b=(this[_0x43bc35(0x191)][_0x43bc35(0x1be)](_0x374788[_0x43bc35(0x1ee)])??[])[_0x43bc35(0x141)](_0x1023a6=>{const _0x1cc086=_0x43bc35,_0x1d0172=_0x1023a6[_0x1cc086(0x144)][_0x1cc086(0xe2)](_0x3060b4=>_0x3060b4[_0x1cc086(0x118)]===_0x1cc086(0x1c6));if(_0x1023a6[_0x1cc086(0x1ed)]===_0x57710a)return _0x374788[_0x1cc086(0x196)]===_0x1cc086(0x11c)||_0x374788[_0x1cc086(0x196)]===_0x1cc086(0x1e1)||_0x1d0172;const _0x27e03c=_0x1d0172&&_0x1023a6[_0x1cc086(0x196)]!==_0x1cc086(0x11c)&&_0x1023a6[_0x1cc086(0x196)]!==_0x1cc086(0x1e1);return _0x374788[_0x1cc086(0x196)]!==_0x1cc086(0x11c)||!_0x27e03c;}),_0x2d31a4=_0x19941b[_0x43bc35(0x141)](_0x38806f=>terminalTurn(_0x38806f[_0x43bc35(0x196)])),_0x37cc34=new Set(_0x2d31a4[_0x43bc35(0x14e)](-NodeRuntimeState[_0x43bc35(0x113)])[_0x43bc35(0xf8)](_0x20c86e=>_0x20c86e['id'])),_0x271431=_0x19941b[_0x43bc35(0x141)](_0x707b98=>!terminalTurn(_0x707b98[_0x43bc35(0x196)])||_0x37cc34[_0x43bc35(0xef)](_0x707b98['id'])),_0x59ed5b=new Set(_0x271431[_0x43bc35(0xf8)](_0x272975=>_0x272975['id']));this[_0x43bc35(0x191)][_0x43bc35(0x171)](_0x374788[_0x43bc35(0x1ee)],_0x271431);for(const [_0x1cdf98,_0x51c363]of this[_0x43bc35(0x16f)]){if(_0x51c363[_0x43bc35(0x1ed)]!==_0x57710a)continue;this[_0x43bc35(0x16f)][_0x43bc35(0x11b)](_0x1cdf98);if(_0x59ed5b[_0x43bc35(0xef)](_0x51c363[_0x43bc35(0x19e)]))this[_0x43bc35(0xe5)][_0x43bc35(0x171)](_0x1cdf98,{'sessionId':_0x374788[_0x43bc35(0x1ee)],'turnId':_0x51c363[_0x43bc35(0x19e)]});}this[_0x43bc35(0xe7)](_0x374788[_0x43bc35(0x1ee)],_0x59ed5b),this[_0x43bc35(0x11a)][_0x43bc35(0x11b)](_0x57710a),this[_0x43bc35(0x112)][_0x43bc35(0x11b)](_0x57710a);for(const [_0x4f8929,_0x174677]of this[_0x43bc35(0x145)])if(_0x174677[_0x43bc35(0x118)]===_0x43bc35(0x163)&&_0x174677['id']===_0x57710a)this[_0x43bc35(0x145)][_0x43bc35(0x11b)](_0x4f8929);for(const [_0x1e325e,_0x3c34f2]of this[_0x43bc35(0x109)])if(_0x3c34f2[_0x43bc35(0x1ed)]===_0x57710a||_0x4a238e[_0x43bc35(0xef)](_0x3c34f2[_0x43bc35(0x1ed)]))this[_0x43bc35(0x109)][_0x43bc35(0x11b)](_0x1e325e);}[_0x4c98ac(0x114)](_0x572314){const _0x4478cc=_0x4c98ac;return[...this[_0x4478cc(0x110)][_0x4478cc(0x1bd)]()][_0x4478cc(0xf8)](_0x5c7e85=>this[_0x4478cc(0x11a)][_0x4478cc(0x1be)](_0x5c7e85))[_0x4478cc(0xe2)](_0x5e8300=>_0x5e8300?.[_0x4478cc(0xe1)]===_0x572314);}[_0x4c98ac(0x19b)](_0x5205d7){const _0x4da107=_0x4c98ac;this[_0x4da107(0xf4)](_0x5205d7);const _0x456e35=this[_0x4da107(0x147)](_0x5205d7);if(_0x456e35[_0x4da107(0xe2)](_0x1e9866=>!terminal(_0x1e9866[_0x4da107(0x196)])))throw new Error(_0x4da107(0x100));const _0x50335d=new Set(_0x456e35[_0x4da107(0xf8)](_0x18dcf3=>_0x18dcf3['id'])),_0x2a692f=new Set([...this[_0x4da107(0x16f)][_0x4da107(0x1bd)]()][_0x4da107(0x141)](_0x361611=>_0x50335d[_0x4da107(0xef)](_0x361611[_0x4da107(0x1ed)]))[_0x4da107(0xf8)](_0x42df73=>_0x42df73['id']));this[_0x4da107(0x1e0)][_0x4da107(0x11b)](_0x5205d7),this[_0x4da107(0x191)][_0x4da107(0x11b)](_0x5205d7),this[_0x4da107(0xe7)](_0x5205d7,new Set());const _0x2d77ad=this[_0x4da107(0x1dd)][_0x4da107(0x1be)](_0x5205d7)??[];this[_0x4da107(0x1dd)][_0x4da107(0x11b)](_0x5205d7);for(const _0x19709d of _0x2d77ad)this[_0x4da107(0x10f)][_0x4da107(0x11b)](_0x19709d);this[_0x4da107(0x18f)][_0x4da107(0x11b)](_0x5205d7),this[_0x4da107(0x198)][_0x4da107(0x11b)](_0x5205d7),this[_0x4da107(0x110)][_0x4da107(0x11b)](_0x5205d7);for(const _0x301523 of _0x50335d){this[_0x4da107(0x11a)][_0x4da107(0x11b)](_0x301523),this[_0x4da107(0x112)][_0x4da107(0x11b)](_0x301523);}for(const _0x17f201 of _0x2a692f)this[_0x4da107(0x16f)][_0x4da107(0x11b)](_0x17f201);for(const [_0x5e8d9e,_0x218fd3]of this[_0x4da107(0x145)])if(_0x218fd3[_0x4da107(0x118)]===_0x4da107(0x163)&&_0x50335d[_0x4da107(0xef)](_0x218fd3['id'])||_0x218fd3[_0x4da107(0x118)]===_0x4da107(0x136)&&_0x2d77ad[_0x4da107(0x168)](_0x218fd3['id']))this[_0x4da107(0x145)][_0x4da107(0x11b)](_0x5e8d9e);for(const _0x173d6e of this[_0x4da107(0x17c)][_0x4da107(0x1ef)]())if(_0x173d6e[_0x4da107(0x177)](_0x5205d7+'\x00'))this[_0x4da107(0x17c)][_0x4da107(0x11b)](_0x173d6e);for(const [_0x24d602,_0x5e6d91]of this[_0x4da107(0x109)])if(_0x50335d[_0x4da107(0xef)](_0x5e6d91[_0x4da107(0x1ed)])||_0x2a692f[_0x4da107(0xef)](_0x5e6d91[_0x4da107(0x1ed)]))this[_0x4da107(0x109)][_0x4da107(0x11b)](_0x24d602);}[_0x4c98ac(0x157)](_0x4e8aa4){const _0x587b5d=_0x4c98ac;if(this[_0x587b5d(0x114)](_0x4e8aa4))throw new Error(_0x587b5d(0x1ae));const _0x306e72=new Set([...this[_0x587b5d(0x1e0)][_0x587b5d(0x1bd)]()][_0x587b5d(0x141)](_0x47716b=>_0x47716b[_0x587b5d(0xe1)]===_0x4e8aa4)[_0x587b5d(0xf8)](_0x5c86a2=>_0x5c86a2['id'])),_0x3d1e9b=new Set([...this[_0x587b5d(0x11a)][_0x587b5d(0x1bd)]()][_0x587b5d(0x141)](_0x5c49d3=>_0x5c49d3[_0x587b5d(0xe1)]===_0x4e8aa4)[_0x587b5d(0xf8)](_0x608ede=>_0x608ede['id'])),_0x4b825a=new Set([...this[_0x587b5d(0x16f)][_0x587b5d(0x1bd)]()][_0x587b5d(0x141)](_0x185327=>_0x3d1e9b[_0x587b5d(0xef)](_0x185327[_0x587b5d(0x1ed)]))[_0x587b5d(0xf8)](_0x3191c7=>_0x3191c7['id'])),_0xb64f0e=new Set([..._0x306e72][_0x587b5d(0xe0)](_0x4aa917=>this[_0x587b5d(0x1dd)][_0x587b5d(0x1be)](_0x4aa917)??[]));for(const _0x3e1c4f of _0x306e72){this[_0x587b5d(0x1e0)][_0x587b5d(0x11b)](_0x3e1c4f),this[_0x587b5d(0x191)][_0x587b5d(0x11b)](_0x3e1c4f),this[_0x587b5d(0xe7)](_0x3e1c4f,new Set());}for(const _0x172968 of _0x3d1e9b){this[_0x587b5d(0x11a)][_0x587b5d(0x11b)](_0x172968),this[_0x587b5d(0x112)][_0x587b5d(0x11b)](_0x172968);}for(const _0x53c247 of _0x4b825a)this[_0x587b5d(0x16f)][_0x587b5d(0x11b)](_0x53c247);for(const [_0x4cc18d,_0x3be284]of this[_0x587b5d(0x145)])if(_0x3be284[_0x587b5d(0x118)]===_0x587b5d(0x163)&&_0x3d1e9b[_0x587b5d(0xef)](_0x3be284['id'])||_0x3be284[_0x587b5d(0x118)]===_0x587b5d(0x136)&&_0xb64f0e[_0x587b5d(0xef)](_0x3be284['id']))this[_0x587b5d(0x145)][_0x587b5d(0x11b)](_0x4cc18d);for(const _0x49ba80 of this[_0x587b5d(0x17c)][_0x587b5d(0x1ef)]()){const _0x3a52a=_0x49ba80[_0x587b5d(0x1a0)]('\u0000');if(_0x3a52a>=0x7*-0x146+-0x32*-0x2e+0x6*-0x3&&_0x306e72[_0x587b5d(0xef)](_0x49ba80[_0x587b5d(0x14e)](0x31f*0x5+-0x1005+0x6a*0x1,_0x3a52a)))this[_0x587b5d(0x17c)][_0x587b5d(0x11b)](_0x49ba80);}for(const [_0x40ecd1,_0x90b520]of this[_0x587b5d(0x109)])if(_0x3d1e9b[_0x587b5d(0xef)](_0x90b520[_0x587b5d(0x1ed)])||_0x4b825a[_0x587b5d(0xef)](_0x90b520[_0x587b5d(0x1ed)]))this[_0x587b5d(0x109)][_0x587b5d(0x11b)](_0x40ecd1);for(const _0x7ef00 of _0x306e72){const _0x444885=this[_0x587b5d(0x1dd)][_0x587b5d(0x1be)](_0x7ef00)??[];this[_0x587b5d(0x1dd)][_0x587b5d(0x11b)](_0x7ef00);for(const _0x111716 of _0x444885)this[_0x587b5d(0x10f)][_0x587b5d(0x11b)](_0x111716);this[_0x587b5d(0x18f)][_0x587b5d(0x11b)](_0x7ef00),this[_0x587b5d(0x198)][_0x587b5d(0x11b)](_0x7ef00),this[_0x587b5d(0x110)][_0x587b5d(0x11b)](_0x7ef00);}}[_0x4c98ac(0xfb)](_0x241999,_0x3ed198){void _0x241999,void _0x3ed198;}[_0x4c98ac(0x12c)](_0xded156,_0x4b25bc){const _0xfda587=_0x4c98ac,_0x26af1a=this[_0xfda587(0xf4)](_0xded156),_0x13316f={..._0x26af1a,..._0x4b25bc};this[_0xfda587(0x1e0)][_0xfda587(0x171)](_0xded156,_0x13316f);if(_0x26af1a[_0xfda587(0x19c)]!==_0x13316f[_0xfda587(0x19c)]||_0x26af1a[_0xfda587(0x153)]!==_0x13316f[_0xfda587(0x153)]){for(const _0x2cbc4f of this[_0xfda587(0x147)](_0xded156))this[_0xfda587(0x1d7)](_0x2cbc4f,_0x13316f);}return _0x13316f;}[_0x4c98ac(0x1d7)](_0xe35098,_0x5d90e9){const _0x5235b6=_0x4c98ac,_0x5cda38=this[_0x5235b6(0x1ca)](_0xe35098['id']),_0x26288c=_0x5cda38?.[_0x5235b6(0x144)][_0x5235b6(0x128)](_0x49589d=>_0x49589d[_0x5235b6(0x118)]===_0x5235b6(0x143))?.[_0x5235b6(0x137)],_0x6548ea=isRecord(_0x26288c)&&typeof _0x26288c[_0x5235b6(0x14d)]===_0x5235b6(0x1cc)?_0x26288c[_0x5235b6(0x14d)]:undefined,_0x378274=_0x6548ea?.[_0x5235b6(0x177)](_0x5235b6(0x1a8))?'':this[_0x5235b6(0x1a3)](_0xe35098['id']);this[_0x5235b6(0x160)]?.(_0xe35098,_0x5d90e9,_0x378274[_0x5235b6(0x1a9)]===0x1d69+-0x2*0x3d1+-0x15c7?undefined:_0x378274);}[_0x4c98ac(0x125)](_0x44d557){const _0x814060=_0x4c98ac;this[_0x814060(0x18f)][_0x814060(0x171)](_0x44d557,(this[_0x814060(0x18f)][_0x814060(0x1be)](_0x44d557)??0x4a6+-0x135*0x6+0x298)+(-0x244d*-0x1+0x92f+0x3*-0xf29));}[_0x4c98ac(0xe7)](_0x3c54c2,_0x3d6363){const _0x2c64b8=_0x4c98ac;for(const [_0x24d60a,_0x44e162]of this[_0x2c64b8(0xe5)])if(_0x44e162[_0x2c64b8(0x1ee)]===_0x3c54c2&&!_0x3d6363[_0x2c64b8(0xef)](_0x44e162[_0x2c64b8(0x19e)]))this[_0x2c64b8(0xe5)][_0x2c64b8(0x11b)](_0x24d60a);}[_0x4c98ac(0xf4)](_0x490aa5){const _0x56cd55=_0x4c98ac,_0x58085a=this[_0x56cd55(0x1e0)][_0x56cd55(0x1be)](_0x490aa5);if(_0x58085a===undefined)throw new Error(_0x56cd55(0x124));return _0x58085a;}[_0x4c98ac(0x178)](_0xf61efa){const _0x3b504b=_0x4c98ac,_0xd47bce=this[_0x3b504b(0x11a)][_0x3b504b(0x1be)](_0xf61efa);if(_0xd47bce===undefined)throw new Error(_0x3b504b(0x1c8));return _0xd47bce;}[_0x4c98ac(0x13b)](_0x1ed12d){const _0x1262e8=_0x4c98ac,_0x2b7b84=this[_0x1262e8(0x10f)][_0x1262e8(0x1be)](_0x1ed12d);if(_0x2b7b84===undefined)throw new Error(_0x1262e8(0xde));return _0x2b7b84;}[_0x4c98ac(0x1c3)](_0xd41264){const _0x5b778f=_0x4c98ac,_0x9c5f4c=this[_0x5b778f(0x109)][_0x5b778f(0x1be)](_0xd41264);if(_0x9c5f4c===undefined)throw new Error(_0x5b778f(0x1bb));return _0x9c5f4c;}[_0x4c98ac(0x106)](_0x17059f,_0x3ae97d){const _0xdaf2b4=_0x4c98ac,_0x45e60b=this[_0xdaf2b4(0x178)](_0x17059f),_0x130103=this[_0xdaf2b4(0x191)][_0xdaf2b4(0x1be)](_0x45e60b[_0xdaf2b4(0x1ee)])??[];this[_0xdaf2b4(0x191)][_0xdaf2b4(0x171)](_0x45e60b[_0xdaf2b4(0x1ee)],_0x130103[_0xdaf2b4(0xf8)](_0x568955=>_0x568955[_0xdaf2b4(0x1ed)]===_0x17059f?_0x3ae97d(_0x568955):_0x568955));}[_0x4c98ac(0x154)](_0x3cf364,_0x30c69e){const _0x5cb96d=_0x4c98ac,_0x17c9aa=this[_0x5cb96d(0x178)](_0x3cf364),_0x58061e=this[_0x5cb96d(0x191)][_0x5cb96d(0x1be)](_0x17c9aa[_0x5cb96d(0x1ee)])??[],_0x288bcc=_0x58061e[_0x5cb96d(0x120)](_0x4a9bef=>_0x4a9bef[_0x5cb96d(0x1ed)]===_0x3cf364);if(_0x288bcc<0x1*0x2081+0x9dd+-0x2a5e)return;this[_0x5cb96d(0x191)][_0x5cb96d(0x171)](_0x17c9aa[_0x5cb96d(0x1ee)],_0x58061e[_0x5cb96d(0xf8)]((_0x55f494,_0x2f71c4)=>_0x2f71c4===_0x288bcc?_0x30c69e(_0x55f494):_0x55f494));}[_0x4c98ac(0x1ca)](_0x372658){const _0x5d7352=_0x4c98ac,_0xbbfd30=this[_0x5d7352(0x178)](_0x372658);return(this[_0x5d7352(0x191)][_0x5d7352(0x1be)](_0xbbfd30[_0x5d7352(0x1ee)])??[])[_0x5d7352(0xf6)](_0xabe60e=>_0xabe60e[_0x5d7352(0x1ed)]===_0x372658);}[_0x4c98ac(0xdd)](_0x77a0f3,_0x4d84d6,_0x44ac51,_0x51958e){const _0x8d79d=_0x4c98ac,_0x5d3566=this[_0x8d79d(0xf4)](_0x77a0f3[_0x8d79d(0x1ee)]),_0x558344=this[_0x8d79d(0x15d)](),_0x2987b3=randomUUID(),_0x52e58a=randomUUID(),_0x233348={'id':_0x52e58a,'sessionId':_0x5d3566['id'],'turnId':_0x2987b3,'runId':_0x77a0f3['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x8d79d(0x143),'status':_0x8d79d(0x164),'payload':{'clientMessageId':_0x4d84d6,'text':_0x44ac51,'contexts':[],'attachments':this[_0x8d79d(0xf3)](_0x77a0f3['id'],_0x51958e),'delivery':_0x8d79d(0x195)},'startedAt':_0x558344,'completedAt':_0x558344},_0x324564={'id':_0x2987b3,'sessionId':_0x5d3566['id'],'runId':_0x77a0f3['id'],'userItemId':_0x52e58a,'status':_0x8d79d(0x182),'model':_0x5d3566[_0x8d79d(0x123)],'effort':_0x5d3566[_0x8d79d(0x155)],'access':_0x5d3566[_0x8d79d(0x199)],'items':[_0x233348],'startedAt':_0x558344,'completedAt':null};return this[_0x8d79d(0x191)][_0x8d79d(0x171)](_0x5d3566['id'],[...this[_0x8d79d(0x191)][_0x8d79d(0x1be)](_0x5d3566['id'])??[],_0x324564]),this[_0x8d79d(0x12c)](_0x5d3566['id'],{'lastActivityAt':_0x558344}),_0x324564;}[_0x4c98ac(0xf3)](_0x1324fc,_0x2eaea7){const _0x31ea38=_0x4c98ac;let _0x21fae0=0x109+0x9e*-0x17+0x3*0x463;return _0x2eaea7[_0x31ea38(0xf8)](({name:_0x399996,mime:_0x30542f,dataBase64:_0x159844})=>{const _0x17e83f=_0x31ea38,_0x37ad23={'name':_0x399996,'mime':_0x30542f,'byteSize':Buffer[_0x17e83f(0xed)](_0x159844,_0x17e83f(0x1df)),'runId':_0x1324fc};if(!_0x30542f[_0x17e83f(0x177)](_0x17e83f(0x17b)))return _0x37ad23;return{..._0x37ad23,'imageIndex':_0x21fae0++};});}[_0x4c98ac(0x17e)](_0x466204,_0x421579,_0x4773f4){const _0x1e556a=_0x4c98ac;for(const [_0x563d8d,_0x56a730]of this[_0x1e556a(0x191)]){if(!_0x56a730[_0x1e556a(0xe2)](_0x2ad1d5=>_0x2ad1d5['id']===_0x466204))continue;this[_0x1e556a(0x191)][_0x1e556a(0x171)](_0x563d8d,_0x56a730[_0x1e556a(0xf8)](_0x254b7b=>_0x254b7b['id']===_0x466204?{..._0x254b7b,'status':_0x421579,'completedAt':_0x4773f4,'items':_0x254b7b[_0x1e556a(0x144)][_0x1e556a(0xf8)](_0x3d2af8=>activeConversationItem(_0x3d2af8[_0x1e556a(0x196)])?{..._0x3d2af8,'status':completedStatusForRun(_0x421579),'completedAt':_0x4773f4}:_0x3d2af8)}:_0x254b7b));return;}}[_0x4c98ac(0x12e)](_0x3a3dea,_0x3f91d5){const _0x27be86=_0x4c98ac,_0x5c0b18=this[_0x27be86(0x178)](_0x3a3dea[_0x27be86(0x1ed)]),_0x10016b=_0x326583=>{const _0x301a2f=_0x27be86;if(_0x3a3dea[_0x301a2f(0x149)]===_0x301a2f(0x142)&&isRecord(_0x3a3dea[_0x301a2f(0x137)])&&typeof _0x3a3dea[_0x301a2f(0x137)][_0x301a2f(0x1a4)]===_0x301a2f(0x1cc)){const _0x269269=typeof _0x3a3dea[_0x301a2f(0x137)][_0x301a2f(0x130)]===_0x301a2f(0x1cc)&&_0x3a3dea[_0x301a2f(0x137)][_0x301a2f(0x130)][_0x301a2f(0x1a9)]<=0x6db+0x4*0xad+0x937*-0x1?_0x3a3dea[_0x301a2f(0x137)][_0x301a2f(0x130)]:undefined,_0x4c68a3=_0x269269===undefined?undefined:_0x3a3dea[_0x301a2f(0x1ed)]+':'+_0x269269,_0x4999ab=_0x326583[_0x301a2f(0x144)]['at'](-(-0x337*0x5+-0x1*0x38f+0x13a3)),_0x5eafe3=_0x4c68a3===undefined?_0x4999ab?.[_0x301a2f(0x118)]===_0x301a2f(0x1d5)&&activeConversationItem(_0x4999ab[_0x301a2f(0x196)])?_0x4999ab:undefined:_0x326583[_0x301a2f(0x144)][_0x301a2f(0x128)](_0x5eb6bd=>_0x5eb6bd['id']===_0x4c68a3&&_0x5eb6bd[_0x301a2f(0x118)]===_0x301a2f(0x1d5)),_0x56be31=''+(_0x5eafe3===undefined?'':readableText(_0x5eafe3[_0x301a2f(0x137)]))+_0x3a3dea[_0x301a2f(0x137)][_0x301a2f(0x1a4)],_0x2ef9ec={'id':_0x5eafe3?.['id']??_0x4c68a3??_0x3a3dea[_0x301a2f(0x1ed)]+_0x301a2f(0x159)+_0x3a3dea[_0x301a2f(0x119)],'sessionId':_0x5c0b18[_0x301a2f(0x1ee)],'turnId':_0x326583['id'],'runId':_0x3a3dea[_0x301a2f(0x1ed)],'parentItemId':null,'sourceSequence':_0x5eafe3?.[_0x301a2f(0x10a)]??_0x3a3dea[_0x301a2f(0x119)],'revision':_0x3a3dea[_0x301a2f(0x119)],'kind':_0x301a2f(0x1d5),'status':_0x301a2f(0x16a),'payload':{'text':_0x56be31,'format':_0x301a2f(0x15a),'model':null},'startedAt':_0x5eafe3?.[_0x301a2f(0x1b7)]??_0x3a3dea[_0x301a2f(0x1a7)],'completedAt':null};return{..._0x326583,'status':_0x301a2f(0x1b3),'startedAt':_0x326583[_0x301a2f(0x1b7)]??_0x3a3dea[_0x301a2f(0x1a7)],'items':_0x5eafe3===undefined?[..._0x326583[_0x301a2f(0x144)],_0x2ef9ec]:_0x326583[_0x301a2f(0x144)][_0x301a2f(0xf8)](_0x199ee3=>_0x199ee3['id']===_0x2ef9ec['id']?_0x2ef9ec:_0x199ee3)};}const _0x1e0dae=conversationItemFromEvent(_0x3a3dea);if(_0x1e0dae!==undefined){const _0x42713e=_0x326583[_0x301a2f(0x144)]['at'](-(0x77f*-0x5+-0xfa6*-0x2+0x630)),_0x56118d=_0x42713e?.[_0x301a2f(0x118)]===_0x301a2f(0x1d5)&&activeConversationItem(_0x42713e[_0x301a2f(0x196)])?_0x326583[_0x301a2f(0x144)][_0x301a2f(0xf8)](_0x468673=>_0x468673['id']===_0x42713e['id']?{..._0x468673,'status':_0x301a2f(0x164),'completedAt':_0x3a3dea[_0x301a2f(0x1a7)]}:_0x468673):_0x326583[_0x301a2f(0x144)],_0x2f54fe=_0x56118d[_0x301a2f(0x128)](_0x2cb769=>_0x2cb769['id']===_0x3a3dea[_0x301a2f(0x1ed)]+':'+_0x1e0dae[_0x301a2f(0x130)])??(_0x1e0dae[_0x301a2f(0x118)]===_0x301a2f(0x1d5)&&_0x1e0dae[_0x301a2f(0x130)][_0x301a2f(0x177)](_0x301a2f(0x1e6))&&_0x42713e?.[_0x301a2f(0x118)]===_0x301a2f(0x1d5)&&_0x42713e['id'][_0x301a2f(0x177)](_0x3a3dea[_0x301a2f(0x1ed)]+_0x301a2f(0x159))&&activeConversationItem(_0x42713e[_0x301a2f(0x196)])?_0x42713e:undefined),_0x43dc7d=_0x1e0dae[_0x301a2f(0x196)],_0x320f3f={'id':_0x3a3dea[_0x301a2f(0x1ed)]+':'+_0x1e0dae[_0x301a2f(0x130)],'sessionId':_0x5c0b18[_0x301a2f(0x1ee)],'turnId':_0x326583['id'],'runId':_0x3a3dea[_0x301a2f(0x1ed)],'parentItemId':null,'sourceSequence':_0x2f54fe?.[_0x301a2f(0x10a)]??_0x3a3dea[_0x301a2f(0x119)],'revision':(_0x2f54fe?.[_0x301a2f(0x152)]??-(-0xfae+-0x2*-0x30d+0x1*0x995))+(0x491+0x3*0xcc1+-0x2ad3),'kind':_0x1e0dae[_0x301a2f(0x118)],'status':_0x43dc7d,'payload':mergeConversationItemPayload(_0x2f54fe?.[_0x301a2f(0x137)],_0x1e0dae),'startedAt':_0x2f54fe?.[_0x301a2f(0x1b7)]??_0x3a3dea[_0x301a2f(0x1a7)],'completedAt':completedConversationItem(_0x43dc7d)?_0x3a3dea[_0x301a2f(0x1a7)]:null};return{..._0x326583,'status':terminal(_0x5c0b18[_0x301a2f(0x196)])?_0x5c0b18[_0x301a2f(0x196)]:_0x301a2f(0x1b3),'startedAt':_0x326583[_0x301a2f(0x1b7)]??_0x3a3dea[_0x301a2f(0x1a7)],'items':_0x2f54fe===undefined?[..._0x56118d,_0x320f3f]:_0x56118d[_0x301a2f(0xf8)](_0x57cbca=>_0x57cbca['id']===_0x2f54fe['id']?_0x320f3f:_0x57cbca)};}if(_0x3a3dea[_0x301a2f(0x149)]===_0x301a2f(0x146)||_0x3a3dea[_0x301a2f(0x149)]===_0x301a2f(0x107))return{..._0x326583,'status':_0x301a2f(0x1b3),'startedAt':_0x326583[_0x301a2f(0x1b7)]??_0x3a3dea[_0x301a2f(0x1a7)]};if(_0x3a3dea[_0x301a2f(0x149)]===_0x301a2f(0x1b4)||_0x3a3dea[_0x301a2f(0x149)]===_0x301a2f(0x1b2)||_0x3a3dea[_0x301a2f(0x149)]===_0x301a2f(0x18e))return{..._0x326583,'status':this[_0x301a2f(0x178)](_0x3a3dea[_0x301a2f(0x1ed)])[_0x301a2f(0x196)],'completedAt':_0x3a3dea[_0x301a2f(0x1a7)],'items':_0x326583[_0x301a2f(0x144)][_0x301a2f(0xf8)](_0x17ec35=>activeConversationItem(_0x17ec35[_0x301a2f(0x196)])?{..._0x17ec35,'status':completedStatusForRun(this[_0x301a2f(0x178)](_0x3a3dea[_0x301a2f(0x1ed)])[_0x301a2f(0x196)]),'completedAt':_0x3a3dea[_0x301a2f(0x1a7)]}:_0x17ec35)};return _0x326583;};if(_0x3f91d5===undefined)this[_0x27be86(0x154)](_0x3a3dea[_0x27be86(0x1ed)],_0x10016b);else{const _0x38574f=this[_0x27be86(0x191)][_0x27be86(0x1be)](_0x5c0b18[_0x27be86(0x1ee)])??[];this[_0x27be86(0x191)][_0x27be86(0x171)](_0x5c0b18[_0x27be86(0x1ee)],_0x38574f[_0x27be86(0xf8)](_0x18ec7e=>_0x18ec7e['id']===_0x3f91d5?_0x10016b(_0x18ec7e):_0x18ec7e));}}}function isDefaultRunnerTitle(_0x40161d){const _0x872698=_0x4c98ac;return/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x872698(0x1a5)](_0x40161d);}function terminal(_0x42bf29){const _0x5aaaef=_0x4c98ac;return[_0x5aaaef(0x11c),_0x5aaaef(0x190),_0x5aaaef(0xf9),_0x5aaaef(0x1e1),_0x5aaaef(0x12b)][_0x5aaaef(0x168)](_0x42bf29);}function terminalTurn(_0x297ce3){const _0x132a93=_0x4c98ac;return[_0x132a93(0x11c),_0x132a93(0x190),_0x132a93(0xf9),_0x132a93(0x1e1),_0x132a93(0x12b)][_0x132a93(0x168)](_0x297ce3);}function transitionAllowed(_0xd78ac6,_0x4f6e7a){return!terminal(_0xd78ac6)||_0xd78ac6===_0x4f6e7a;}function isRecord(_0x3e593e){const _0xcb9e0f=_0x4c98ac;return typeof _0x3e593e===_0xcb9e0f(0x1da)&&_0x3e593e!==null;}function readableText(_0x2e1278){const _0x189734=_0x4c98ac;return isRecord(_0x2e1278)&&typeof _0x2e1278[_0x189734(0x1a4)]===_0x189734(0x1cc)?_0x2e1278[_0x189734(0x1a4)]:'';}function conversationItemFromEvent(_0x12af7d){const _0x208a9c=_0x4c98ac;if(isRecord(_0x12af7d[_0x208a9c(0x137)])){const _0x1af673=_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x14f)];if(typeof _0x1af673===_0x208a9c(0x1cc)&&_0x1af673[_0x208a9c(0x1a9)]>0x1*0x6d1+0x1d7c+-0x244d*0x1){if(_0x12af7d[_0x208a9c(0x149)]===_0x208a9c(0x116))return{'itemId':_0x208a9c(0xee)+_0x1af673,'kind':_0x208a9c(0x18d),'status':_0x208a9c(0x15b),'payload':{'approvalId':_0x1af673,'approvalStatus':_0x208a9c(0x15b),'approval':_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x137)],'expiresAt':_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x180)]},'merge':![]};if(_0x12af7d[_0x208a9c(0x149)]===_0x208a9c(0x1e5)){const _0x146760=_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x1c7)];if(_0x146760===_0x208a9c(0x13d)||_0x146760===_0x208a9c(0xe6))return{'itemId':_0x208a9c(0xee)+_0x1af673,'kind':_0x208a9c(0x18d),'status':_0x146760===_0x208a9c(0x13d)?_0x208a9c(0x164):_0x208a9c(0x151),'payload':{'approvalId':_0x1af673,'approvalStatus':_0x146760},'merge':!![]};}if(_0x12af7d[_0x208a9c(0x149)]===_0x208a9c(0x169))return{'itemId':_0x208a9c(0xee)+_0x1af673,'kind':_0x208a9c(0x18d),'status':_0x208a9c(0xf9),'payload':{'approvalId':_0x1af673,'approvalStatus':_0x208a9c(0x104)},'merge':!![]};}}if(_0x12af7d[_0x208a9c(0x149)]!==_0x208a9c(0xdb)||!isRecord(_0x12af7d[_0x208a9c(0x137)]))return undefined;const _0x1a9fb2=_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x130)],_0x17860a=_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x118)],_0x4a05a8=_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x196)],_0x52cbff=_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x137)];if(typeof _0x1a9fb2!==_0x208a9c(0x1cc)||_0x1a9fb2[_0x208a9c(0x1a9)]===0xabd*0x2+-0xf7*0x1b+0x493||_0x1a9fb2[_0x208a9c(0x1a9)]>0x29*0xb2+0x4*-0x6d3+-0xde||typeof _0x17860a!==_0x208a9c(0x1cc)||!projectableConversationKind(_0x17860a)||typeof _0x4a05a8!==_0x208a9c(0x1cc)||!projectableConversationStatus(_0x4a05a8)||!isRecord(_0x52cbff))return undefined;const _0x47545a=_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0xf0)];return{'itemId':_0x1a9fb2,'kind':_0x17860a,'status':_0x4a05a8,'payload':_0x52cbff,'merge':_0x12af7d[_0x208a9c(0x137)][_0x208a9c(0x1b8)]===!![],..._0x47545a===_0x208a9c(0x16e)||_0x47545a===_0x208a9c(0x1ea)||_0x47545a===_0x208a9c(0xd2)?{'append':_0x47545a}:{}};}function projectableConversationKind(_0x321db6){const _0x184035=_0x4c98ac;return _0x321db6===_0x184035(0x1d5)||_0x321db6===_0x184035(0x19f)||_0x321db6===_0x184035(0x126)||_0x321db6===_0x184035(0x161)||_0x321db6===_0x184035(0x18d)||_0x321db6===_0x184035(0x17d)||_0x321db6===_0x184035(0xd6)||_0x321db6===_0x184035(0xd8)||_0x321db6===_0x184035(0xda)||_0x321db6===_0x184035(0x129)||_0x321db6===_0x184035(0x122)||_0x321db6===_0x184035(0x1ec)||_0x321db6===_0x184035(0x1c6);}function _0x5a6f(_0x249f81,_0x2a26b9){_0x249f81=_0x249f81-(-0x1045+0x4cd*-0x3+0x8b*0x3a);const _0x1ecf4f=_0x1bc1();let _0x2af401=_0x1ecf4f[_0x249f81];if(_0x5a6f['ruldUM']===undefined){var _0xc0412=function(_0x2c6768){const _0x3583ce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x221798='',_0x19f482='';for(let _0x11fb75=0xa99*-0x1+-0x5a3+-0x81e*-0x2,_0x23cdea,_0x13fa1d,_0x5d72da=0x11e*-0x9+-0x127*-0x15+-0x1*0xe25;_0x13fa1d=_0x2c6768['charAt'](_0x5d72da++);~_0x13fa1d&&(_0x23cdea=_0x11fb75%(0x4*-0x5b8+0xc22+0xac2)?_0x23cdea*(0x1*0x1517+-0x9cd+-0xb0a)+_0x13fa1d:_0x13fa1d,_0x11fb75++%(0x190d*-0x1+-0xad*-0x25+0x10))?_0x221798+=String['fromCharCode'](-0x18fd+0x31*0x95+-0x289&_0x23cdea>>(-(0x2098+-0x19ab+-0x6eb)*_0x11fb75&0x18d*0x1+0x3d*0x5d+-0x17b0)):0x1504+0xbe1+0x191*-0x15){_0x13fa1d=_0x3583ce['indexOf'](_0x13fa1d);}for(let _0xee6794=-0x1893+-0x97*0x1e+0x2a45,_0x5a8294=_0x221798['length'];_0xee6794<_0x5a8294;_0xee6794++){_0x19f482+='%'+('00'+_0x221798['charCodeAt'](_0xee6794)['toString'](0x2*0xe3+-0x534+0x37e))['slice'](-(0x41c+-0x1b4*0x4+0x1*0x2b6));}return decodeURIComponent(_0x19f482);};_0x5a6f['GtrscV']=_0xc0412,_0x5a6f['PAKZzV']={},_0x5a6f['ruldUM']=!![];}const _0x27add9=_0x1ecf4f[-0x1*-0x25d3+0x79*0x2b+-0x3a26];_0x5a6f['EwAYQz']!==_0x27add9&&(_0x5a6f['PAKZzV']={},_0x5a6f['EwAYQz']=_0x27add9);const _0x174136=_0x5a6f['PAKZzV'][_0x249f81];return _0x174136===undefined?(_0x2af401=_0x5a6f['GtrscV'](_0x2af401),_0x5a6f['PAKZzV'][_0x249f81]=_0x2af401):_0x2af401=_0x174136,_0x2af401;}function projectableConversationStatus(_0x149c1c){const _0x26767e=_0x4c98ac;return[_0x26767e(0x15b),_0x26767e(0x16a),_0x26767e(0x164),_0x26767e(0x190),_0x26767e(0x151),_0x26767e(0xf9),_0x26767e(0x1e1)][_0x26767e(0x168)](_0x149c1c);}function mergeConversationItemPayload(_0xdc0c1c,_0x427319){const _0x1b1af6=_0x4c98ac,_0x557b08=_0x427319[_0x1b1af6(0x1b8)]&&isRecord(_0xdc0c1c)?_0xdc0c1c:{},_0x1cb375={..._0x557b08,..._0x427319[_0x1b1af6(0x137)]};if(_0x427319[_0x1b1af6(0xf0)]===_0x1b1af6(0x16e)){const _0x43928f=Array[_0x1b1af6(0xd5)](_0x557b08[_0x1b1af6(0x16e)])?_0x557b08[_0x1b1af6(0x16e)]:[],_0xf9bf6d=Array[_0x1b1af6(0xd5)](_0x427319[_0x1b1af6(0x137)][_0x1b1af6(0x16e)])?_0x427319[_0x1b1af6(0x137)][_0x1b1af6(0x16e)]:[],_0x898e1=new Map();for(const _0x273cb4 of[..._0x43928f,..._0xf9bf6d]){if(!isRecord(_0x273cb4)||typeof _0x273cb4[_0x1b1af6(0x10e)]!==_0x1b1af6(0x175)||!Number[_0x1b1af6(0xe4)](_0x273cb4[_0x1b1af6(0x10e)])||_0x273cb4[_0x1b1af6(0x10e)]<0x2*-0x6c+0x142*0x1c+0xdc*-0x28||typeof _0x273cb4[_0x1b1af6(0x1a4)]!==_0x1b1af6(0x1cc))continue;_0x898e1[_0x1b1af6(0x171)](_0x273cb4[_0x1b1af6(0x10e)],appendProjectionText(_0x898e1[_0x1b1af6(0x1be)](_0x273cb4[_0x1b1af6(0x10e)])??'',_0x273cb4[_0x1b1af6(0x1a4)]));}_0x1cb375[_0x1b1af6(0x16e)]=[..._0x898e1][_0x1b1af6(0x184)](([_0xf785d3],[_0x4e833a])=>_0xf785d3-_0x4e833a)[_0x1b1af6(0xf8)](([_0x42bc87,_0x13304c])=>({'index':_0x42bc87,'text':_0x13304c}));}if(_0x427319[_0x1b1af6(0xf0)]===_0x1b1af6(0x1ea)){const _0x41aa4f=typeof _0x557b08[_0x1b1af6(0x1ea)]===_0x1b1af6(0x1cc)?_0x557b08[_0x1b1af6(0x1ea)]:'',_0x2db57c=typeof _0x427319[_0x1b1af6(0x137)][_0x1b1af6(0x1ea)]===_0x1b1af6(0x1cc)?_0x427319[_0x1b1af6(0x137)][_0x1b1af6(0x1ea)]:'';_0x1cb375[_0x1b1af6(0x1ea)]=appendProjectionText(_0x41aa4f,_0x2db57c);}if(_0x427319[_0x1b1af6(0xf0)]===_0x1b1af6(0xd2)){const _0x149498=typeof _0x557b08[_0x1b1af6(0xd2)]===_0x1b1af6(0x1cc)?_0x557b08[_0x1b1af6(0xd2)]:'',_0x552dd3=typeof _0x427319[_0x1b1af6(0x137)][_0x1b1af6(0xd2)]===_0x1b1af6(0x1cc)?_0x427319[_0x1b1af6(0x137)][_0x1b1af6(0xd2)]:'';_0x1cb375[_0x1b1af6(0xd2)]=appendProjectionText(_0x149498,_0x552dd3);}return _0x1cb375;}function appendProjectionText(_0x32ee35,_0x34669a){const _0xa072d8=_0x4c98ac,_0x3472df=''+_0x32ee35+_0x34669a;return _0x3472df[_0xa072d8(0x1a9)]<=0x1d39+-0x25aa+0x2f81*0x1?_0x3472df:_0x3472df[_0xa072d8(0x14e)](-0x17*-0x10f+-0x1*0x201d+0x7c4,0x3c24+-0x48f6+0x33e1)+'…';}function activeConversationItem(_0x215f02){const _0x8b8277=_0x4c98ac;return _0x215f02===_0x8b8277(0x15b)||_0x215f02===_0x8b8277(0x16a);}function completedConversationItem(_0x189c6f){return!activeConversationItem(_0x189c6f);}function completedStatusForRun(_0x35a459){const _0x188296=_0x4c98ac;if(_0x35a459===_0x188296(0x1e1))return _0x188296(0x1e1);if(_0x35a459===_0x188296(0xf9))return _0x188296(0xf9);if(_0x35a459===_0x188296(0x190))return _0x188296(0x190);return _0x188296(0x164);}function executionStatusForRun(_0x4105d1){const _0x4d0778=_0x4c98ac;if(_0x4105d1===_0x4d0778(0x190))return _0x4d0778(0x190);if(_0x4105d1===_0x4d0778(0x1e1)||_0x4105d1===_0x4d0778(0xf9))return _0x4d0778(0x1e1);if(_0x4105d1===_0x4d0778(0x11c))return _0x4d0778(0x11c);if(_0x4105d1===_0x4d0778(0x1b3))return _0x4d0778(0x1b3);return _0x4d0778(0x174);}function terminalExecution(_0x19c992){const _0x1ae22c=_0x4c98ac;return _0x19c992===_0x1ae22c(0x11c)||_0x19c992===_0x1ae22c(0x190)||_0x19c992===_0x1ae22c(0x1e1);}function _0x1bc1(){const _0x5322b1=['C2nVCgu','uLvox0fmuKvbrfLFqunusvzf','rvHqsvjfra','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','DxbKyxrLvhvYBKzVCLj1BG','CNvUlNj1BM5PBMC','z2v0v29YA3nWywnL','yxbWCM92ywXZ','C291CMnLu2vXDwvUy2u','uLvox1rvuK5FtK9ux1jfqurz','z2v0qwDLBNrtzxnZAw9U','DMfSDwu','Aw5KzxG','CxvLDwvjDgvTCW','BgvHC2vZ','DxrMoa','CNvUu2vXDwvUy2vZ','tufyx0nptvbmrvrfrf9uvvjou19qrvjFu0vtu0LptG','AgfZqwn0AxzLv29YA3nWywnLtgvHC2u','BwLU','yxbWCM92ywWUCMvXDwvZDa','tufsx01btKfhruq','A2LUza','C2vXDwvUy2u','CNvUCW','zgvSzxrL','u1vdq0vfreve','Aw1Hz2vjBMrLEa','qvbquK9wquXFtK9ux0vyueLsruq','y2fUB25Py2fSuNvUswq','zMLUzeXHC3rjBMrLEa','uLvox09xtKvex0jzx0fot1rirvjFvvnfuG','Dw5RBM93BG','Bw9KzwW','u0vtu0LptL9ot1rFrK9vtKq','yNvTCff1zxvLvMvYC2LVBG','Dg9VBf9JywXS','Cgf1C2vtzxnZAw9UuxvLDwu','zMLUza','y29UDgv4Df9JB21Wywn0Aw9U','zxHWAxjLrhvLqxbWCM92ywXZ','te9tva','CMvWBgfJzvnLC3nPB24','CgfYC2u','ChjVAMvJDev2zw50','ndGWmJyXnxfxrMT6Bq','AxrLBuLK','C2L6zq','y3jLyxrLqwDLBNrtzxnZAw9U','DhvYBG','offfvfDtyq','uLvox0vyrunvveLptL9ot1rFq1vsuKvova','CxvLDwu','Cgf5Bg9Hza','Aw5PDgLHDgvKqNLvC2vYswq','mJHVrLfoAuK','CxvLDwvjDgvTswq','CMvXDwLYzvf1zxvLsxrLBq','BgLZDe5VBNrLCM1PBMfSuNvUCW','qvbquK9wruq','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','rvzftLrFu0vrvuvoq0vFr0fq','uvvfvuvFvKvsu0LptL9dt05gteLdva','zMLSDgvY','Dgv4Dc5KzwX0yq','DxnLCL9TzxnZywDL','AxrLBxm','BwvZC2fNzvn1yM1PC3nPB25Z','CNvUlNn0yxj0zwq','BgLZDfj1BNngB3jtzxnZAw9U','ndy1mdr4zwzetuu','zxzLBNruExbL','yxr0ywnOBwvUDhm','BgfZDfj1BLnLCxvLBMnL','CgLUBMvKqxq','y2XPzw50twvZC2fNzuLK','C2XPy2u','yxbWCM92ywXjza','nZqWnZuWmfzVwgPTqq','revdteLoruq','CMv2AxnPB24','CNvUBMvYvgL0Bgu','DxbKyxrLq3vYCMvUDfr1CM5gB3jsDw4','zwzMB3j0','DxbKyxrLqwDLBNrtzxnZAw9Uq29UzMLNDxjHDgLVBG','CMvTB3zLv29YA3nWywnL','DxbKyxrLu2vZC2LVBK1LDgfKyxrH','oMfZC2LZDgfUDdO','BwfYA2rVD24','uevoreLorW','uLvox1nuqvrfx0LovKfmsuq','BM93','C2vZC2LVBLf1zxvL','CgLUBMvK','B25sDw5dAgfUz2vK','y29TBwfUzf9LEgvJDxrPB24','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','CNvU','q09nueXfveve','v09ss1nqqunfx05pvf9gt1vora','uLvox1rvuK5FtK9ux0zpvu5e','zMLUAxnOuNvU','Aw5JBhvKzxm','yxbWCM92ywWUzxHWAxjLza','su5Fufjpr1jfu1m','qunusvzf','zMLUze1LC3nHz2vsDw4','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','C2vJDgLVBNm','zxHLy3v0Aw9UCW','rvHurvjoquW','C2v0','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','CMvWBgfJzq','u1rbuLrjtKC','BNvTyMvY','zMLUzefNzw50u2vZC2LVBKj5rxH0zxjUywXtzxnZAw9U','C3rHCNrZv2L0Aa','CMvXDwLYzvj1BG','qvbquK9wquXFquXsrufewv9erunjreve','ywrVChrsDw4','Aw1Hz2uV','zMfPBgvKtwvZC2fNzvn1yM1PC3nPB25Z','DxnLCL9PBNb1Df9Yzxf1zxn0','y29TCgXLDgvuDxjU','zxH0zxjUywXtzxnZAw9Uswq','zxHWAxjLC0f0','z2v0uxvLDwvjDgvT','ufjfuefssu5h','zgvSzxrLuxvLDwvjDgvT','C29YDa','DhjPBq','DgvYBwLUywXsDw5jzhm','zMfPBgvK','zxHWAxjLqxbWCM92ywW','C3rYAw5NAwz5','uLvox1rfuK1jtKfm','y29UDgvUDa','ywrK','yxbWCM92ywXFCMvXDwvZDa','CNvUlNjLAMvJDgvK','CxvLDwvwzxjZAw9UCW','rKfjteve','DhvYBNm','BgfZDefJDgL2Axr5qxq','CNvUDgLTztO','zgvJAwrLqxbWCM92ywW','qundrvburuq','C3rHDhvZ','uLvotKvs','Cgf1C2vKuxvLDwvZ','ywnJzxnZ','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','CMvTB3zLqwDLBNrtzxnZAw9U','y3vZDg9TvgL0Bgu','C2v0tMf0AxzLq29UDhjVBa','DhvYBKLK','CMvHC29UAw5Nx3n1Bw1HCNK','Aw5KzxHpzG','z2v0uNvU','u0vtu0LptL9dsefotKvmx1rps0vox0LovKfmsuq','y3vYCMvUDfj1BK1LC3nHz2vuzxH0','Dgv4Da','DgvZDa','yMfZzty0DxjS','y3jLyxrLzef0','BwLZC2LVBJO','BgvUz3rO','CNvUBMvY','y3DK','y29TBwfUza','y2XHAw1ozxH0uxvLDwvjDgvT','v09ss1nqqunfx0jvu1K','BMf0AxzLq29UDhjVBa','qvvutW','nMPzCgfzAq','CNvUlMzHAwXLza','uLvotKLorW','CNvUlMnVBxbSzxrLza','CMvTB3zLvgvYBwLUywXsDw4','CMvJB3jKq29TBwfUzev4zwn1DgLVBG','C3rHCNrLzef0','BwvYz2u','BM9KzuLK','DgL0BgvtB3vYy2u','qvbquK9wquXFtK9ux0zpvu5e','BgLZDefWChjVDMfSCW','DMfSDwvZ','z2v0','y3jLyxrLqxbWCM92ywW','CMvVCMrLCLnLC3nPB25rDwv1zq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','y3jLyxrLuxvLDwvjDgvT','CMvXDwLYzufWChjVDMfS','u0vtu0LptL9jrf9dt05gteLdva','y3vYCMvUDev4zwn1DgLVBKLK','zxjYB3i','zgvJAxnPB24','uLvox05pvf9gt1vora','DMvYC2LVBG','y3vYCMvUDfr1CM5gB3jsDw4','yxbWzw5KuNvUrxzLBNq','C3rYAw5N','Dg9tDhjPBMC','uLvox0fdveLwrq','DxbKyxrLuxvLDwvjDgvT','tuvtu0fhrv9btfjfqurzx1nuqvjuruq','Bwf4','nZq3mtbRDevnCg0','q1vtve9n','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','yxnZAxn0yw50x21LC3nHz2u','C2v0q2HHBM5LBfrVA2vU','zw1PDfj1BKnOyw5Nzwq','y3jLyxrLtwvZC2fNzvj1BG','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','B2jQzwn0','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','mtK1m0jyuenlwa','CxvLDwvKsxrLBxm','mJi4zezstgv2','yMfZzty0','C2vZC2LVBNm','su5urvjsvvburuq','DgL0Bgu','y29TCgXLDgvKqxq','qvbquK9wquXFrvHqsvjfra','yxbWCM92ywWUzgvJAwrLza','y29KzxG6','mJi3ntu5mMrSzfzvqW','ChjPB3jPDgL6zvf1zxvLsxrLBq','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','B3v0Chv0uhjLDMLLDW','BMv4Da','D2fYBMLUzW','CNvUswq','C2vZC2LVBKLK','A2v5CW','B3v0Chv0u3vTBwfYEq','zNjVBq','qvbquK9wquXFquXsrufewv9fweLtvfm','AxnbCNjHEq','CgXHBG','ywn0AxzLu2vZC2LVBLj1BG','Dg9KB19SAxn0','BgLTAxq','zMLSzv9JAgfUz2u','y29UDMvYC2f0Aw9UlML0zw0','CMvZDw1Lu2vZC2LVBLf1zxvL','y3jLyxrLvhvYBG','uvvfvuvFsvrftv9jtLzbteLe','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','zMXHDe1HCa','D29YA3nWywnLswq','C29Tzq','mZG0nJu5mxPsCenbzq','AxnjBNrLz2vY','CMv0ywLUzwrfEgvJDxrPB25uDxjUCW','uKvkrunuruq','Chj1BMvszxrHAw5Lzev4zwn1DgLVBLr1CM5Z','tuvtu0fhrv9btfjfqurzx1fvrvvfra','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','z2v0qxbWCM92ywW','u0vtu0LptL9fwfrfuK5btf9jrf9jtLzbteLe','DxnLCKL0zw1jza','yNL0zuXLBMD0Aa','yxbWCM92ywW6','AgfZ','yxbWzw5K','y3vYC29Y','C2v0rxH0zxjUywXtzxnZAw9Uswq','ChjVAMvJDe1LC3nHz2vbDhrHy2HTzw50CW','CMvXDwLYzvnLC3nPB24','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','zMLUzeXHC3q','DhjHBNnPDgLVBLj1BG','BwfW','q0foq0vmteve','zMLUze1LC3nHz2vtDwjTAxnZAw9U','CMvJB25JAwXLuNvU','BgLZDenVBNzLCNnHDgLVBKL0zw1Z','u0vtu0LptL9usvrmrv9jtLzbteLe','mtuZmJqZnKvyzK1jta','BgLZDefNzw50u2vZC2LVBNm','u0vtu0LptL9bq1rjvKu','y3jLyxrLrxHLy3v0Aw9U'];_0x1bc1=function(){return _0x5322b1;};return _0x1bc1();}function encodeCursor(_0x5370c6,_0x8488ff){const _0x3d2193=_0x4c98ac;return Buffer[_0x3d2193(0xd3)](JSON[_0x3d2193(0x189)]({'scope':_0x5370c6,'value':_0x8488ff}))[_0x3d2193(0x1cd)](_0x3d2193(0x1a6));}function decodeCursor(_0x491f8b,_0x2685f4){const _0x330fc5=_0x4c98ac;if(_0x491f8b===undefined)return-0x789+-0x3*-0xa3f+-0x1734;try{const _0x2e214a=JSON[_0x330fc5(0x12d)](Buffer[_0x330fc5(0xd3)](_0x491f8b,_0x330fc5(0x1a6))[_0x330fc5(0x1cd)](_0x330fc5(0x111)));return _0x2e214a[_0x330fc5(0x102)]===_0x2685f4&&Number[_0x330fc5(0xe4)](_0x2e214a[_0x330fc5(0x10d)])&&_0x2e214a[_0x330fc5(0x10d)]>=-0x793+0xbb3+-0x420?_0x2e214a[_0x330fc5(0x10d)]:-0x17*-0x19d+0x1b3c+-0x4057;}catch{return-0x1*0x8a4+-0x26bc+0x2f60;}}
2
+ const _0x11d1fb=_0x3cef;(function(_0x32d314,_0x7c4629){const _0x5b8140=_0x3cef,_0x81ca64=_0x32d314();while(!![]){try{const _0x589ec5=-parseInt(_0x5b8140(0x1e6))/(-0x1*0x13d6+-0x20a2*-0x1+0x19*-0x83)+-parseInt(_0x5b8140(0x194))/(-0x1f*0x83+-0x5*0xa+0x1011)*(parseInt(_0x5b8140(0x170))/(-0x1a5*0xc+-0xf0c*-0x1+0x4b3))+-parseInt(_0x5b8140(0x1ca))/(-0x1e5c+0x1d17+0x149)*(parseInt(_0x5b8140(0x1ab))/(-0x42b+0x581*0x1+0x151*-0x1))+-parseInt(_0x5b8140(0x193))/(-0x9*0x382+0x1516+-0x5*-0x21a)*(parseInt(_0x5b8140(0x107))/(-0x1aa3+0x2439+-0x98f))+-parseInt(_0x5b8140(0x1d4))/(0x6ba*-0x3+-0x1*0xc28+0x2*0x102f)+-parseInt(_0x5b8140(0x217))/(-0x2481+-0x38*0x64+0x2*0x1d35)*(-parseInt(_0x5b8140(0x1b7))/(0x925*0x4+-0x1*-0x2207+-0x4691))+-parseInt(_0x5b8140(0x212))/(0x2115+0x1730+-0x383a)*(-parseInt(_0x5b8140(0x17e))/(-0xbdd*0x2+0x82f*0x1+-0x133*-0xd));if(_0x589ec5===_0x7c4629)break;else _0x81ca64['push'](_0x81ca64['shift']());}catch(_0x2d6455){_0x81ca64['push'](_0x81ca64['shift']());}}}(_0x12c5,0x3*-0x9ea8+0x8d0b+0x3a881*0x1));import{randomUUID}from'node:crypto';export class NodeRuntimeState{[_0x11d1fb(0x114)];[_0x11d1fb(0x211)];[_0x11d1fb(0x218)];[_0x11d1fb(0x1b1)];static [_0x11d1fb(0x156)]=0x27*-0xa+-0x115*0x13+0x161f*0x1;[_0x11d1fb(0x125)]=new Map();[_0x11d1fb(0x1aa)]=new Map();[_0x11d1fb(0x1d0)]=new Map();[_0x11d1fb(0x200)]=new Map();[_0x11d1fb(0x1df)]=new Map();[_0x11d1fb(0x188)]=new Map();[_0x11d1fb(0x1cc)]=new Map();[_0x11d1fb(0x1ae)]=new Map();[_0x11d1fb(0x161)]=new Map();[_0x11d1fb(0x1a0)]=new Map();[_0x11d1fb(0x10d)]=new Map();[_0x11d1fb(0x151)]=new Map();[_0x11d1fb(0x130)]=new Map();[_0x11d1fb(0x109)]=new Set();[_0x11d1fb(0x14c)]=new Set();constructor(_0x1ca89c,_0x15b76c,_0xf13621=Date[_0x11d1fb(0x218)],_0x443a00){const _0x40f800=_0x11d1fb;this[_0x40f800(0x114)]=_0x1ca89c,this[_0x40f800(0x211)]=_0x15b76c,this[_0x40f800(0x218)]=_0xf13621,this[_0x40f800(0x1b1)]=_0x443a00;}[_0x11d1fb(0x1c1)](){const _0x1a910e=_0x11d1fb;return this[_0x1a910e(0x10d)][_0x1a910e(0x10c)];}[_0x11d1fb(0x173)](_0x2ba1cd){const _0x36139a=_0x11d1fb,_0x1f1499=this[_0x36139a(0x10d)][_0x36139a(0x146)](_0x2ba1cd);return _0x1f1499===undefined?undefined:this[_0x36139a(0x1aa)][_0x36139a(0x146)](_0x1f1499);}[_0x11d1fb(0x19e)](_0xb3a870){const _0x3ac5be=_0x11d1fb;return this[_0x3ac5be(0x10d)][_0x3ac5be(0x136)](_0xb3a870);}[_0x11d1fb(0xff)](_0x4a4aed){const _0x540cc8=_0x11d1fb;if(this[_0x540cc8(0x211)](_0x4a4aed[_0x540cc8(0x12a)])===undefined)throw new Error(_0x540cc8(0xfe));const _0x406258=this[_0x540cc8(0x218)](),_0x32322a=_0x4a4aed[_0x540cc8(0x158)]??randomUUID();if(this[_0x540cc8(0x125)][_0x540cc8(0x136)](_0x32322a))throw new Error(_0x540cc8(0x219));const _0x113ae2=_0x4a4aed[_0x540cc8(0x1ce)]?.[_0x540cc8(0x140)]()[_0x540cc8(0x12b)](-0x874*0x1+-0x30*-0x5a+-0x86c,-0x1*0x59f+-0x1d*0xc3+0x1c56)||null,_0xd3645f={'id':_0x32322a,'nodeId':this[_0x540cc8(0x114)](),'workspaceId':_0x4a4aed[_0x540cc8(0x12a)],'runner':_0x4a4aed[_0x540cc8(0x15b)],'externalSessionId':_0x4a4aed[_0x540cc8(0x158)]??null,'nativeControl':_0x4a4aed[_0x540cc8(0x158)]===undefined?_0x540cc8(0x1e8):_0x4a4aed[_0x540cc8(0x177)]??_0x540cc8(0x143),'channelToken':null,'cwd':_0x4a4aed[_0x540cc8(0x1b6)],'model':_0x4a4aed[_0x540cc8(0x106)]??null,'effort':_0x4a4aed[_0x540cc8(0x208)]??null,'access':_0x4a4aed[_0x540cc8(0x117)]??null,'customTitle':_0x113ae2,'runnerTitle':_0x4a4aed[_0x540cc8(0x206)]?.[_0x540cc8(0x140)]()[_0x540cc8(0x12b)](-0x405*-0x2+0x932*-0x1+-0x1*-0x128,0x613*-0x1+0x160+0x553)||null,'pinnedAt':null,'titleSource':_0x113ae2===null?_0x540cc8(0x1e5):_0x540cc8(0x18d),'lastActivityAt':_0x406258,'createdAt':_0x406258};return this[_0x540cc8(0x125)][_0x540cc8(0x155)](_0xd3645f['id'],_0xd3645f),_0xd3645f;}[_0x11d1fb(0x20c)](_0x2b2bf4){const _0x5da069=_0x11d1fb;if(this[_0x5da069(0x14c)][_0x5da069(0x136)](_0x2b2bf4[_0x5da069(0x1f0)]))throw new Error(_0x5da069(0x174));let _0x2eee54=this[_0x5da069(0x125)][_0x5da069(0x146)](_0x2b2bf4[_0x5da069(0x17a)]);if(_0x2eee54===undefined){const _0x58b44b=this[_0x5da069(0x218)]();_0x2eee54={'id':_0x2b2bf4[_0x5da069(0x17a)],'nodeId':this[_0x5da069(0x114)](),'workspaceId':_0x2b2bf4[_0x5da069(0x12a)]??_0x5da069(0x100)+_0x2b2bf4[_0x5da069(0x1b6)],'runner':_0x2b2bf4[_0x5da069(0x15b)],'externalSessionId':_0x2b2bf4[_0x5da069(0x158)]??null,'nativeControl':_0x2b2bf4[_0x5da069(0x158)]===undefined?_0x5da069(0x1e8):_0x5da069(0x143),'channelToken':null,'cwd':_0x2b2bf4[_0x5da069(0x1b6)],'model':null,'effort':null,'access':null,'customTitle':null,'runnerTitle':null,'pinnedAt':null,'titleSource':_0x5da069(0x1e5),'lastActivityAt':_0x58b44b,'createdAt':_0x58b44b},this[_0x5da069(0x125)][_0x5da069(0x155)](_0x2eee54['id'],_0x2eee54);}const _0x3ab7ec=this[_0x5da069(0x15c)](_0x2b2bf4[_0x5da069(0x1f0)]);if(_0x3ab7ec!==undefined)return _0x3ab7ec;const _0x3b142b=this[_0x5da069(0x218)](),_0x548e8c={'id':_0x2b2bf4[_0x5da069(0x1f0)],'sessionId':_0x2eee54['id'],'nodeId':this[_0x5da069(0x114)](),'workspaceId':_0x2eee54[_0x5da069(0x12a)],'runner':_0x2eee54[_0x5da069(0x15b)],'status':_0x5da069(0x11b),'recoveryState':_0x5da069(0x152),'version':0x0,'clientMessageId':_0x2b2bf4[_0x5da069(0x164)]??_0x2b2bf4[_0x5da069(0x1f0)],'createdAt':_0x3b142b,'startedAt':_0x3b142b,'completedAt':null,'updatedAt':_0x3b142b};return this[_0x5da069(0x1aa)][_0x5da069(0x155)](_0x548e8c['id'],_0x548e8c),this[_0x5da069(0x10d)][_0x5da069(0x155)](_0x548e8c[_0x5da069(0x17a)],_0x548e8c['id']),this[_0x5da069(0x1fa)](_0x548e8c,_0x2eee54),_0x548e8c;}[_0x11d1fb(0x1db)](_0x4cda17){const _0x265b1f=_0x11d1fb;return this[_0x265b1f(0x125)][_0x265b1f(0x146)](_0x4cda17)??[...this[_0x265b1f(0x125)][_0x265b1f(0x111)]()][_0x265b1f(0x183)](_0x1bffc5=>_0x1bffc5[_0x265b1f(0x158)]===_0x4cda17);}[_0x11d1fb(0x11a)](){const _0x230a90=_0x11d1fb;return[...this[_0x230a90(0x125)][_0x230a90(0x111)]()][_0x230a90(0x18e)]((_0x22e01f,_0x446a4b)=>_0x446a4b[_0x230a90(0x159)]-_0x22e01f[_0x230a90(0x159)]);}[_0x11d1fb(0x18a)](_0x2710e0,_0x1cf3b2){const _0x112e2a=_0x11d1fb;return[...this[_0x112e2a(0x125)][_0x112e2a(0x111)]()][_0x112e2a(0x183)](_0x956c9d=>_0x956c9d[_0x112e2a(0x15b)]===_0x2710e0&&_0x956c9d[_0x112e2a(0x158)]===_0x1cf3b2);}[_0x11d1fb(0x12d)](_0x2de9aa){const _0x2fa217=_0x11d1fb;return this[_0x2fa217(0x1e2)](_0x2de9aa[_0x2fa217(0x17a)],{'model':_0x2de9aa[_0x2fa217(0x106)],'effort':_0x2de9aa[_0x2fa217(0x208)],'access':_0x2de9aa[_0x2fa217(0x117)]});}[_0x11d1fb(0x1b4)](_0x56ba14,_0x475375){const _0x3cdb1d=_0x11d1fb;return this[_0x3cdb1d(0x1e2)](_0x56ba14,{'access':_0x475375});}[_0x11d1fb(0x1eb)](_0x43d9e6,_0x4d1e11){const _0x601372=_0x11d1fb;this[_0x601372(0x1e2)](_0x43d9e6,{'nativeControl':_0x4d1e11});}[_0x11d1fb(0x149)](_0x288648,_0xf97142){const _0x24b6b7=_0x11d1fb;if(_0xf97142[_0x24b6b7(0x12e)]===-0xb14*0x1+-0x38f+0xea3)throw new Error(_0x24b6b7(0x11e));this[_0x24b6b7(0x1dd)](_0x288648,_0xf97142);}[_0x11d1fb(0x1dd)](_0x535a0a,_0x32eb80){const _0x343bf7=_0x11d1fb;if(_0x32eb80[_0x343bf7(0x12e)]===0x84+0x1f4a+-0x1fce)throw new Error(_0x343bf7(0x11e));const _0x44d3e8=this[_0x343bf7(0x1cb)](_0x535a0a);if(_0x535a0a===_0x32eb80)return this[_0x343bf7(0x1e2)](_0x535a0a,{'externalSessionId':_0x32eb80,'nativeControl':_0x343bf7(0x1e8)});const _0x1417f5=this[_0x343bf7(0x125)][_0x343bf7(0x146)](_0x32eb80);if(_0x1417f5!==undefined&&_0x1417f5['id']!==_0x44d3e8['id'])throw new Error(_0x343bf7(0x219));const _0x312e6c={..._0x44d3e8,'id':_0x32eb80,'externalSessionId':_0x32eb80,'nativeControl':_0x343bf7(0x1e8)},_0x2a950f=this[_0x343bf7(0x167)](_0x535a0a),_0x26a7a7=this[_0x343bf7(0x161)][_0x343bf7(0x146)](_0x535a0a)??[],_0x3d12d6=this[_0x343bf7(0x151)][_0x343bf7(0x146)](_0x535a0a),_0x5bd194=this[_0x343bf7(0x130)][_0x343bf7(0x146)](_0x535a0a),_0x396d14=this[_0x343bf7(0x10d)][_0x343bf7(0x146)](_0x535a0a),_0x4bdb1c=this[_0x343bf7(0x109)][_0x343bf7(0x136)](_0x535a0a);this[_0x343bf7(0x125)][_0x343bf7(0x1f5)](_0x535a0a),this[_0x343bf7(0x125)][_0x343bf7(0x155)](_0x32eb80,_0x312e6c);for(const _0x25c74c of _0x2a950f)this[_0x343bf7(0x1aa)][_0x343bf7(0x155)](_0x25c74c['id'],{..._0x25c74c,'sessionId':_0x32eb80});this[_0x343bf7(0x161)][_0x343bf7(0x1f5)](_0x535a0a),this[_0x343bf7(0x161)][_0x343bf7(0x155)](_0x32eb80,_0x26a7a7[_0x343bf7(0x115)](_0x308ea3=>({..._0x308ea3,'sessionId':_0x32eb80,'items':_0x308ea3[_0x343bf7(0x1e0)][_0x343bf7(0x115)](_0x49b912=>({..._0x49b912,'sessionId':_0x32eb80}))})));if(_0x3d12d6!==undefined){this[_0x343bf7(0x151)][_0x343bf7(0x1f5)](_0x535a0a),this[_0x343bf7(0x151)][_0x343bf7(0x155)](_0x32eb80,_0x3d12d6);for(const _0x301230 of _0x3d12d6){const _0x8920b8=this[_0x343bf7(0x1df)][_0x343bf7(0x146)](_0x301230);if(_0x8920b8!==undefined)this[_0x343bf7(0x1df)][_0x343bf7(0x155)](_0x301230,{..._0x8920b8,'sessionId':_0x32eb80});}}_0x5bd194!==undefined&&(this[_0x343bf7(0x130)][_0x343bf7(0x1f5)](_0x535a0a),this[_0x343bf7(0x130)][_0x343bf7(0x155)](_0x32eb80,_0x5bd194));_0x396d14!==undefined&&(this[_0x343bf7(0x10d)][_0x343bf7(0x1f5)](_0x535a0a),this[_0x343bf7(0x10d)][_0x343bf7(0x155)](_0x32eb80,_0x396d14));_0x4bdb1c&&(this[_0x343bf7(0x109)][_0x343bf7(0x1f5)](_0x535a0a),this[_0x343bf7(0x109)][_0x343bf7(0x121)](_0x32eb80));for(const [_0x3ab456,_0x55f377]of[...this[_0x343bf7(0x1d0)]]){if(!_0x3ab456[_0x343bf7(0x18b)](_0x535a0a+'\x00'))continue;this[_0x343bf7(0x1d0)][_0x343bf7(0x1f5)](_0x3ab456),this[_0x343bf7(0x1d0)][_0x343bf7(0x155)](''+_0x32eb80+_0x3ab456[_0x343bf7(0x12b)](_0x535a0a[_0x343bf7(0x12e)]),_0x55f377);}for(const [_0x4ad7e2,_0x2ef406]of this[_0x343bf7(0x1cc)])if(_0x2ef406[_0x343bf7(0x17a)]===_0x535a0a)this[_0x343bf7(0x1cc)][_0x343bf7(0x155)](_0x4ad7e2,{..._0x2ef406,'sessionId':_0x32eb80});for(const _0x2fade9 of _0x2a950f){const _0xc49731=this[_0x343bf7(0x1a7)](_0x2fade9['id']);this[_0x343bf7(0x1fa)](_0xc49731,_0x312e6c);}return _0x312e6c;}[_0x11d1fb(0x14f)](_0x53db61,_0x1ce877){const _0x480ef2=_0x11d1fb;if(_0x1ce877[_0x480ef2(0x12e)]<0x852+0x1715+-0x1*0x1f57)throw new Error(_0x480ef2(0x131));this[_0x480ef2(0x1e2)](_0x53db61,{'channelToken':_0x1ce877});}[_0x11d1fb(0x153)](_0x5d11ae){const _0x210763=_0x11d1fb,_0x10c7df=this[_0x210763(0x1cb)](_0x5d11ae[_0x210763(0x17a)]),_0x4ddb2c=_0x5d11ae[_0x210763(0x1ce)]===undefined?_0x10c7df[_0x210763(0x1ce)]:_0x5d11ae[_0x210763(0x1ce)]?.[_0x210763(0x140)]()||null;if(_0x4ddb2c!==null&&_0x4ddb2c[_0x210763(0x12e)]>-0x1308+0x1f69+0x33*-0x3b)throw new Error(_0x210763(0x108));return this[_0x210763(0x1e2)](_0x10c7df['id'],{'customTitle':_0x4ddb2c,'pinnedAt':_0x5d11ae[_0x210763(0x16b)]===undefined?_0x10c7df[_0x210763(0x18c)]:_0x5d11ae[_0x210763(0x16b)]?this[_0x210763(0x218)]():null,'titleSource':_0x4ddb2c===null?_0x210763(0x1e5):_0x210763(0x18d)});}[_0x11d1fb(0x1ee)](_0x2bf20d,_0x30ccb9){const _0x31c16c=_0x11d1fb,_0x2bd152=this[_0x31c16c(0x1cb)](_0x2bf20d),_0x37ff71=_0x30ccb9[_0x31c16c(0x140)]()[_0x31c16c(0x162)](/\s+/g,'\x20')[_0x31c16c(0x12b)](0x1*0x1aae+0x695*0x2+-0x27d8,-0x57d+-0x1*-0x59f+0x7e*0x1);if(_0x37ff71[_0x31c16c(0x12e)]===-0x204f+-0x65*-0x47+0x44c||_0x2bd152[_0x31c16c(0x1ce)]!==null||_0x2bd152[_0x31c16c(0x1d9)]!==null)return _0x2bd152;return this[_0x31c16c(0x1e2)](_0x2bf20d,{'runnerTitle':_0x37ff71,'titleSource':_0x31c16c(0x1e5)});}[_0x11d1fb(0x1d2)](_0x136772,_0x4d3b34){const _0x4d4ceb=_0x11d1fb,_0x5a6ed3=this[_0x4d4ceb(0x1cb)](_0x136772),_0x5a92b8=_0x4d3b34[_0x4d4ceb(0x140)]()[_0x4d4ceb(0x162)](/\s+/g,'\x20')[_0x4d4ceb(0x12b)](-0xa75*0x1+0x2f7+-0x89*-0xe,-0x456+0x1e29+0x1*-0x1933);if(_0x5a92b8[_0x4d4ceb(0x12e)]===-0x1475+-0x5a7+-0x687*-0x4||_0x5a6ed3[_0x4d4ceb(0x1ce)]!==null||_0x5a6ed3[_0x4d4ceb(0x1d9)]===_0x5a92b8||_0x5a6ed3[_0x4d4ceb(0x207)]===_0x4d4ceb(0x1e5)&&isDefaultRunnerTitle(_0x5a92b8))return _0x5a6ed3;return this[_0x4d4ceb(0x1e2)](_0x136772,{'runnerTitle':_0x5a92b8,'titleSource':_0x4d4ceb(0x168)});}[_0x11d1fb(0x20a)](_0xef3f71){const _0x16acf2=_0x11d1fb,_0x45ea76=_0xef3f71[_0x16acf2(0x17a)]+'\x00'+_0xef3f71[_0x16acf2(0x164)],_0x515f41=this[_0x16acf2(0x1d0)][_0x16acf2(0x146)](_0x45ea76);if(_0x515f41!==undefined){if(_0x515f41[_0x16acf2(0x1c3)]!==_0x16acf2(0x116))throw new Error(_0x16acf2(0x1e1));return{'run':this[_0x16acf2(0x1a7)](_0x515f41['id']),'created':![]};}const _0x1d7d91=this[_0x16acf2(0x1cb)](_0xef3f71[_0x16acf2(0x17a)]);if(this[_0x16acf2(0x173)](_0x1d7d91['id'])!==undefined)throw new Error(_0x16acf2(0x138));const _0x13d820=this[_0x16acf2(0x218)](),_0x179089={'id':_0xef3f71[_0x16acf2(0x1f0)]??randomUUID(),'sessionId':_0x1d7d91['id'],'nodeId':this[_0x16acf2(0x114)](),'workspaceId':_0x1d7d91[_0x16acf2(0x12a)],'runner':_0x1d7d91[_0x16acf2(0x15b)],'status':_0x16acf2(0x11b),'recoveryState':_0x16acf2(0x152),'version':0x0,'clientMessageId':_0xef3f71[_0x16acf2(0x164)],..._0xef3f71[_0x16acf2(0x185)]===undefined?{}:{'initiatedByUserId':_0xef3f71[_0x16acf2(0x185)]},'createdAt':_0x13d820,'startedAt':_0x13d820,'completedAt':null,'updatedAt':_0x13d820},_0x2fe6d2=this[_0x16acf2(0x128)](_0x179089['id'],_0xef3f71[_0x16acf2(0x105)]??[]),_0x1f059e={'id':randomUUID(),'sessionId':_0x1d7d91['id'],'turnId':'','runId':_0x179089['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x16acf2(0x16d),'status':_0x16acf2(0x126),'payload':{'clientMessageId':_0xef3f71[_0x16acf2(0x164)],'text':_0xef3f71[_0x16acf2(0x1e7)],'contexts':[],'attachments':_0x2fe6d2,'delivery':_0x16acf2(0x186)},'startedAt':_0x13d820,'completedAt':_0x13d820},_0x27d433={'id':randomUUID(),'sessionId':_0x1d7d91['id'],'runId':_0x179089['id'],'userItemId':_0x1f059e['id'],'status':_0x16acf2(0x10f),'model':_0x1d7d91[_0x16acf2(0x106)],'effort':_0x1d7d91[_0x16acf2(0x208)],'access':_0x1d7d91[_0x16acf2(0x117)],'items':[_0x1f059e],'startedAt':_0x13d820,'completedAt':null},_0x58b0bd={..._0x27d433,'items':[{..._0x1f059e,'turnId':_0x27d433['id']}]};return this[_0x16acf2(0x1aa)][_0x16acf2(0x155)](_0x179089['id'],_0x179089),this[_0x16acf2(0x1d0)][_0x16acf2(0x155)](_0x45ea76,{'kind':_0x16acf2(0x116),'id':_0x179089['id']}),this[_0x16acf2(0x10d)][_0x16acf2(0x155)](_0x1d7d91['id'],_0x179089['id']),this[_0x16acf2(0x161)][_0x16acf2(0x155)](_0x1d7d91['id'],[...this[_0x16acf2(0x161)][_0x16acf2(0x146)](_0x1d7d91['id'])??[],_0x58b0bd]),this[_0x16acf2(0x1e2)](_0x1d7d91['id'],{'lastActivityAt':_0x13d820}),this[_0x16acf2(0x1fa)](_0x179089,this[_0x16acf2(0x1cb)](_0x1d7d91['id'])),{'run':_0x179089,'created':!![]};}[_0x11d1fb(0x1cd)](_0x19679e){const _0x1d6465=_0x11d1fb,_0x188ea4=_0x19679e[_0x1d6465(0x17a)]+'\x00'+_0x19679e[_0x1d6465(0x164)],_0x247784=this[_0x1d6465(0x1d0)][_0x1d6465(0x146)](_0x188ea4);if(_0x247784!==undefined){if(_0x247784[_0x1d6465(0x1c3)]!==_0x1d6465(0x213))throw new Error(_0x1d6465(0x1f4));return{'item':this[_0x1d6465(0x1cf)](_0x247784['id']),'created':![]};}const _0x44c5b2=this[_0x1d6465(0x1cb)](_0x19679e[_0x1d6465(0x17a)]),_0x2ca110=this[_0x1d6465(0x173)](_0x44c5b2['id']);if(_0x2ca110!==undefined&&_0x2ca110[_0x1d6465(0x185)]!==undefined&&_0x19679e[_0x1d6465(0x185)]!==_0x2ca110[_0x1d6465(0x185)])throw new Error(_0x1d6465(0x13b));const _0x86d65a=this[_0x1d6465(0x218)](),_0x56d54a={'id':_0x19679e[_0x1d6465(0x1ad)]??randomUUID(),'sessionId':_0x44c5b2['id'],'workspaceId':_0x44c5b2[_0x1d6465(0x12a)],'runner':_0x44c5b2[_0x1d6465(0x15b)],'clientMessageId':_0x19679e[_0x1d6465(0x164)],'content':_0x19679e[_0x1d6465(0x1e7)],'attachments':_0x19679e[_0x1d6465(0x105)]??[],..._0x19679e[_0x1d6465(0x185)]===undefined?{}:{'initiatedByUserId':_0x19679e[_0x1d6465(0x185)]},'createdAt':_0x86d65a};return this[_0x1d6465(0x1df)][_0x1d6465(0x155)](_0x56d54a['id'],_0x56d54a),this[_0x1d6465(0x1d0)][_0x1d6465(0x155)](_0x188ea4,{'kind':_0x1d6465(0x213),'id':_0x56d54a['id']}),this[_0x1d6465(0x151)][_0x1d6465(0x155)](_0x44c5b2['id'],[...this[_0x1d6465(0x151)][_0x1d6465(0x146)](_0x44c5b2['id'])??[],_0x56d54a['id']]),this[_0x1d6465(0x1f3)](_0x44c5b2['id']),{'item':_0x56d54a,'created':!![]};}[_0x11d1fb(0x178)](_0x5a2b71){const _0xcbc866=_0x11d1fb;return{'version':this[_0xcbc866(0x130)][_0xcbc866(0x146)](_0x5a2b71)??0x43*0x47+-0x8b9+0x2*-0x4ee,'paused':this[_0xcbc866(0x109)][_0xcbc866(0x136)](_0x5a2b71),'itemIds':this[_0xcbc866(0x151)][_0xcbc866(0x146)](_0x5a2b71)??[]};}[_0x11d1fb(0x160)](_0x3940a6){const _0x3ab135=_0x11d1fb;return this[_0x3ab135(0x1df)][_0x3ab135(0x146)](_0x3940a6);}[_0x11d1fb(0x1d7)](_0x438433){const _0x3b26ce=_0x11d1fb;if(this[_0x3b26ce(0x109)][_0x3b26ce(0x136)](_0x438433))return undefined;const _0x417bdf=this[_0x3b26ce(0x173)](_0x438433);if(_0x417bdf===undefined)return undefined;const _0x4fda12=this[_0x3b26ce(0x151)][_0x3b26ce(0x146)](_0x438433)??[],_0x5606e9=_0x4fda12[0x110+-0x1*0x1af2+-0xcf1*-0x2];if(_0x5606e9===undefined)return undefined;this[_0x3b26ce(0x151)][_0x3b26ce(0x155)](_0x438433,_0x4fda12[_0x3b26ce(0x12b)](0x39a*0x2+-0x166a+0xf37)),this[_0x3b26ce(0x1f3)](_0x438433);const _0x26f851=this[_0x3b26ce(0x1cf)](_0x5606e9);this[_0x3b26ce(0x1df)][_0x3b26ce(0x1f5)](_0x5606e9),this[_0x3b26ce(0x1d0)][_0x3b26ce(0x155)](_0x26f851[_0x3b26ce(0x17a)]+'\x00'+_0x26f851[_0x3b26ce(0x164)],{'kind':_0x3b26ce(0x116),'id':_0x417bdf['id']});const _0x5c63c4=this[_0x3b26ce(0x204)](_0x417bdf,_0x26f851[_0x3b26ce(0x164)],_0x26f851[_0x3b26ce(0x1e7)],_0x26f851[_0x3b26ce(0x105)]);return this[_0x3b26ce(0x1fa)](_0x417bdf,this[_0x3b26ce(0x1cb)](_0x438433)),{'item':_0x26f851,'turn':_0x5c63c4};}[_0x11d1fb(0x1af)](_0x536083){const _0x2187f7=_0x11d1fb,_0x27679f=this[_0x2187f7(0x1cf)](_0x536083);if(this[_0x2187f7(0x173)](_0x27679f[_0x2187f7(0x17a)])!==undefined)throw new Error(_0x2187f7(0x138));const _0x1a33b0=this[_0x2187f7(0x151)][_0x2187f7(0x146)](_0x27679f[_0x2187f7(0x17a)])??[];if(_0x1a33b0[-0x162+0x2*-0xc03+0x1968]!==_0x536083)throw new Error(_0x2187f7(0x175));this[_0x2187f7(0x151)][_0x2187f7(0x155)](_0x27679f[_0x2187f7(0x17a)],_0x1a33b0[_0x2187f7(0x12b)](-0x1*-0x4af+0x1e5*-0x2+-0xe4)),this[_0x2187f7(0x1df)][_0x2187f7(0x1f5)](_0x536083),this[_0x2187f7(0x1d0)][_0x2187f7(0x1f5)](_0x27679f[_0x2187f7(0x17a)]+'\x00'+_0x27679f[_0x2187f7(0x164)]),this[_0x2187f7(0x1f3)](_0x27679f[_0x2187f7(0x17a)]);const _0x29cd39=this[_0x2187f7(0x20a)]({'sessionId':_0x27679f[_0x2187f7(0x17a)],'clientMessageId':_0x27679f[_0x2187f7(0x164)],'content':_0x27679f[_0x2187f7(0x1e7)],..._0x27679f[_0x2187f7(0x105)][_0x2187f7(0x12e)]===0x12e4+0x1e14+-0x30f8?{}:{'attachments':_0x27679f[_0x2187f7(0x105)]},..._0x27679f[_0x2187f7(0x185)]===undefined?{}:{'initiatedByUserId':_0x27679f[_0x2187f7(0x185)]}}),_0x3139fd=this[_0x2187f7(0x14e)](_0x29cd39[_0x2187f7(0x116)]['id']);if(_0x3139fd===undefined)throw new Error(_0x2187f7(0x154));return{'run':_0x29cd39[_0x2187f7(0x116)],'turn':_0x3139fd};}[_0x11d1fb(0x19b)](_0x434878){const _0x169914=_0x11d1fb;this[_0x169914(0x109)][_0x169914(0x121)](_0x434878),this[_0x169914(0x1f3)](_0x434878);}[_0x11d1fb(0x15e)](_0x1fbcb6){const _0x4a5fda=_0x11d1fb;if(!this[_0x4a5fda(0x109)][_0x4a5fda(0x1f5)](_0x1fbcb6))return;this[_0x4a5fda(0x1f3)](_0x1fbcb6);}[_0x11d1fb(0x163)](_0x334610,_0x2572c2,_0x3ece99){const _0x282400=_0x11d1fb,_0x2e6cad=this[_0x282400(0x151)][_0x282400(0x146)](_0x334610)??[];if(this[_0x282400(0x178)](_0x334610)[_0x282400(0x1e9)]!==_0x2572c2||_0x2e6cad[_0x282400(0x12e)]!==_0x3ece99[_0x282400(0x12e)]||new Set(_0x2e6cad)[_0x282400(0x10c)]!==_0x2e6cad[_0x282400(0x12e)]||_0x2e6cad[_0x282400(0x101)](_0x1988c9=>!_0x3ece99[_0x282400(0x19d)](_0x1988c9)))throw new Error(_0x282400(0x141));if(_0x3ece99[_0x282400(0x101)](_0x478b3a=>this[_0x282400(0x1df)][_0x282400(0x146)](_0x478b3a)?.[_0x282400(0x17a)]!==_0x334610))throw new Error(_0x282400(0x175));this[_0x282400(0x151)][_0x282400(0x155)](_0x334610,[..._0x3ece99]),this[_0x282400(0x1f3)](_0x334610);}[_0x11d1fb(0x18f)](_0x3d778c){const _0x27755e=_0x11d1fb,_0x20bb96=this[_0x27755e(0x1cf)](_0x3d778c),_0x35bf1c=this[_0x27755e(0x151)][_0x27755e(0x146)](_0x20bb96[_0x27755e(0x17a)])??[];if(!_0x35bf1c[_0x27755e(0x19d)](_0x3d778c))throw new Error(_0x27755e(0x175));return this[_0x27755e(0x151)][_0x27755e(0x155)](_0x20bb96[_0x27755e(0x17a)],[_0x3d778c,..._0x35bf1c[_0x27755e(0x17f)](_0x86c779=>_0x86c779!==_0x3d778c)]),this[_0x27755e(0x1f3)](_0x20bb96[_0x27755e(0x17a)]),_0x20bb96;}[_0x11d1fb(0x122)](_0x142bd6,_0x5dccda){const _0x5e6979=_0x11d1fb,_0xea0946=this[_0x5e6979(0x1cf)](_0x142bd6);if(!(this[_0x5e6979(0x151)][_0x5e6979(0x146)](_0xea0946[_0x5e6979(0x17a)])??[])[_0x5e6979(0x19d)](_0x142bd6))throw new Error(_0x5e6979(0x175));const _0x379637={..._0xea0946,'content':_0x5dccda};return this[_0x5e6979(0x1df)][_0x5e6979(0x155)](_0x142bd6,_0x379637),this[_0x5e6979(0x1f3)](_0xea0946[_0x5e6979(0x17a)]),_0x379637;}[_0x11d1fb(0x215)](_0x227d57,_0x4bacd1){const _0x39b996=_0x11d1fb,_0x45099f=this[_0x39b996(0x1cf)](_0x227d57),_0x2c66d7={..._0x45099f,'attachments':_0x4bacd1};return this[_0x39b996(0x1df)][_0x39b996(0x155)](_0x227d57,_0x2c66d7),_0x2c66d7;}[_0x11d1fb(0x1f6)](_0xbe2846){const _0x2fe56c=_0x11d1fb,_0x4dcf49=this[_0x2fe56c(0x1cf)](_0xbe2846),_0x2d75c0=this[_0x2fe56c(0x151)][_0x2fe56c(0x146)](_0x4dcf49[_0x2fe56c(0x17a)])??[];if(!_0x2d75c0[_0x2fe56c(0x19d)](_0xbe2846))throw new Error(_0x2fe56c(0x175));this[_0x2fe56c(0x151)][_0x2fe56c(0x155)](_0x4dcf49[_0x2fe56c(0x17a)],_0x2d75c0[_0x2fe56c(0x17f)](_0x1dc3d8=>_0x1dc3d8!==_0xbe2846)),this[_0x2fe56c(0x1f3)](_0x4dcf49[_0x2fe56c(0x17a)]),this[_0x2fe56c(0x1df)][_0x2fe56c(0x1f5)](_0xbe2846);for(const [_0x17d1d3,_0x1e11cf]of this[_0x2fe56c(0x1d0)])if(_0x1e11cf[_0x2fe56c(0x1c3)]===_0x2fe56c(0x213)&&_0x1e11cf['id']===_0xbe2846)this[_0x2fe56c(0x1d0)][_0x2fe56c(0x1f5)](_0x17d1d3);}[_0x11d1fb(0x203)](_0x49700d){const _0x52f9d3=_0x11d1fb,_0x441362=this[_0x52f9d3(0x1a7)](_0x49700d),_0x27f455=(this[_0x52f9d3(0x161)][_0x52f9d3(0x146)](_0x441362[_0x52f9d3(0x17a)])??[])[_0x52f9d3(0x1ff)](_0x21d06d=>_0x21d06d[_0x52f9d3(0x1f0)]===_0x49700d),_0x5b9a93=_0x27f455?.[_0x52f9d3(0x1e0)][_0x52f9d3(0x183)](_0x2f4277=>_0x2f4277['id']===_0x27f455[_0x52f9d3(0x180)]);return isRecord(_0x5b9a93?.[_0x52f9d3(0x11c)])&&typeof _0x5b9a93[_0x52f9d3(0x11c)][_0x52f9d3(0x150)]===_0x52f9d3(0x1b5)?_0x5b9a93[_0x52f9d3(0x11c)][_0x52f9d3(0x150)]:'';}[_0x11d1fb(0x118)](_0x1c9339,_0x36a56d){const _0x13fad6=_0x11d1fb,_0x562af9=this[_0x13fad6(0x128)](_0x1c9339,_0x36a56d);this[_0x13fad6(0x169)](_0x1c9339,_0x27b589=>({..._0x27b589,'items':_0x27b589[_0x13fad6(0x1e0)][_0x13fad6(0x115)](_0x453173=>_0x453173['id']===_0x27b589[_0x13fad6(0x180)]&&isRecord(_0x453173[_0x13fad6(0x11c)])?{..._0x453173,'payload':{..._0x453173[_0x13fad6(0x11c)],'attachments':_0x562af9}}:_0x453173)}));}[_0x11d1fb(0x15c)](_0x45eae6){const _0x941ca1=_0x11d1fb,_0x686429=this[_0x941ca1(0x188)][_0x941ca1(0x146)](_0x45eae6)?.[_0x941ca1(0x1f0)]??_0x45eae6;return this[_0x941ca1(0x1aa)][_0x941ca1(0x146)](_0x686429);}[_0x11d1fb(0x1ea)](_0x51aadb,_0x2d5366){const _0x4e4ab0=_0x11d1fb,_0x2ee4a3=this[_0x4e4ab0(0x1d0)][_0x4e4ab0(0x146)](_0x51aadb+'\x00'+_0x2d5366);return _0x2ee4a3?.[_0x4e4ab0(0x1c3)]===_0x4e4ab0(0x116)?this[_0x4e4ab0(0x1aa)][_0x4e4ab0(0x146)](_0x2ee4a3['id']):undefined;}[_0x11d1fb(0x1c9)](_0x19ef7b,_0x1e4548){const _0xccb2fd=_0x11d1fb,_0x2f12c0=this[_0xccb2fd(0x1d0)][_0xccb2fd(0x146)](_0x19ef7b+'\x00'+_0x1e4548);if(_0x2f12c0===undefined)return undefined;if(_0x2f12c0[_0xccb2fd(0x1c3)]===_0xccb2fd(0x116))return{'kind':_0xccb2fd(0x116),'run':this[_0xccb2fd(0x1a7)](_0x2f12c0['id'])};const _0x14be6f=this[_0xccb2fd(0x1cf)](_0x2f12c0['id']),_0x3d30b4=this[_0xccb2fd(0x173)](_0x19ef7b);if(_0x3d30b4===undefined)throw new Error(_0xccb2fd(0x190));return{'kind':_0xccb2fd(0x213),'item':_0x14be6f,'run':_0x3d30b4};}[_0x11d1fb(0x13a)](_0x592095,_0x3f5220){const _0x55146f=_0x11d1fb;return this[_0x55146f(0x200)][_0x55146f(0x146)](_0x592095+'\x00'+_0x3f5220);}[_0x11d1fb(0x1f8)](_0x25baa8,_0x16bee0){const _0x5d4599=_0x11d1fb,_0x198f05=[...this[_0x5d4599(0x1d0)]][_0x5d4599(0x183)](([,_0xceef6f])=>_0xceef6f['id']===_0x25baa8);if(_0x198f05===undefined)return;this[_0x5d4599(0x200)][_0x5d4599(0x155)](_0x198f05[0x1a4e+0x60d+-0x2f1*0xb],_0x16bee0);if(this[_0x5d4599(0x200)][_0x5d4599(0x10c)]>-0x259+0x2*-0x10b7+-0x11*-0x257)this[_0x5d4599(0x200)][_0x5d4599(0x1f5)](this[_0x5d4599(0x200)][_0x5d4599(0x14b)]()[_0x5d4599(0x127)]()[_0x5d4599(0x135)]);}[_0x11d1fb(0x167)](_0x30200e){const _0x9bbda7=_0x11d1fb;return[...this[_0x9bbda7(0x1aa)][_0x9bbda7(0x111)]()][_0x9bbda7(0x17f)](_0x596fd7=>_0x596fd7[_0x9bbda7(0x17a)]===_0x30200e)[_0x9bbda7(0x18e)]((_0x17abf7,_0xddada0)=>_0xddada0[_0x9bbda7(0x172)]-_0x17abf7[_0x9bbda7(0x172)]);}[_0x11d1fb(0x145)](_0x387dee,_0x33951a){const _0x38fdd7=_0x11d1fb,_0x1a9d82=this[_0x38fdd7(0x188)][_0x38fdd7(0x146)](_0x387dee)?.[_0x38fdd7(0x1f0)]??_0x387dee,_0x425e6d=this[_0x38fdd7(0x1a7)](_0x1a9d82);if(!transitionAllowed(_0x425e6d[_0x38fdd7(0x119)],_0x33951a))throw new Error(_0x38fdd7(0xfc));const _0xc73118=this[_0x38fdd7(0x218)](),_0x1fda7c={..._0x425e6d,'status':_0x33951a,'version':_0x425e6d[_0x38fdd7(0x1e9)]+(0x78d+0x1*0x26cb+-0x2e57),'completedAt':terminal(_0x33951a)?_0xc73118:_0x425e6d[_0x38fdd7(0x209)],'updatedAt':_0xc73118};this[_0x38fdd7(0x1aa)][_0x38fdd7(0x155)](_0x1a9d82,_0x1fda7c),this[_0x38fdd7(0x1fa)](_0x1fda7c,this[_0x38fdd7(0x1cb)](_0x1fda7c[_0x38fdd7(0x17a)]));if(terminal(_0x33951a)&&this[_0x38fdd7(0x10d)][_0x38fdd7(0x146)](_0x1fda7c[_0x38fdd7(0x17a)])===_0x1fda7c['id'])this[_0x38fdd7(0x10d)][_0x38fdd7(0x1f5)](_0x1fda7c[_0x38fdd7(0x17a)]);return this[_0x38fdd7(0x169)](_0x1fda7c['id'],_0xff59b0=>({..._0xff59b0,'status':_0x33951a,'completedAt':terminal(_0x33951a)?this[_0x38fdd7(0x218)]():_0xff59b0[_0x38fdd7(0x209)],'items':terminal(_0x33951a)?_0xff59b0[_0x38fdd7(0x1e0)][_0x38fdd7(0x115)](_0x25309e=>activeConversationItem(_0x25309e[_0x38fdd7(0x119)])?{..._0x25309e,'status':completedStatusForRun(_0x33951a),'completedAt':this[_0x38fdd7(0x218)]()}:_0x25309e):_0xff59b0[_0x38fdd7(0x1e0)]})),_0x1fda7c;}[_0x11d1fb(0x11f)](_0x4b23dd){const _0x4f890f=_0x11d1fb,_0x17661c=this[_0x4f890f(0x188)][_0x4f890f(0x146)](_0x4b23dd[_0x4f890f(0x1f0)]),_0x3542b1=_0x17661c?.[_0x4f890f(0x1f0)]??_0x4b23dd[_0x4f890f(0x1f0)];this[_0x4f890f(0x1a7)](_0x3542b1);const _0xded3a=this[_0x4f890f(0x1ae)][_0x4f890f(0x146)](_0x3542b1)??0x265b+0x9c3+0x6*-0x805;if(_0x4b23dd[_0x4f890f(0x12c)]<=_0xded3a)return undefined;if(_0x4b23dd[_0x4f890f(0x12c)]>_0xded3a+(-0x3d1*-0x3+0x1*-0x9ef+-0x183))throw new Error(_0x4f890f(0x15a));const _0x51002e={'runId':_0x3542b1,'sequence':_0x4b23dd[_0x4f890f(0x12c)],'eventType':_0x4b23dd[_0x4f890f(0x16e)],'payload':_0x4b23dd[_0x4f890f(0x11c)],..._0x4b23dd[_0x4f890f(0x119)]===undefined?{}:{'status':_0x4b23dd[_0x4f890f(0x119)]},'createdAt':this[_0x4f890f(0x218)]()};this[_0x4f890f(0x1ae)][_0x4f890f(0x155)](_0x3542b1,_0x4b23dd[_0x4f890f(0x12c)]);if(_0x17661c!==undefined&&_0x4b23dd[_0x4f890f(0x119)]!==undefined){const _0x1893e2=executionStatusForRun(_0x4b23dd[_0x4f890f(0x119)]);this[_0x4f890f(0x188)][_0x4f890f(0x155)](_0x4b23dd[_0x4f890f(0x1f0)],{..._0x17661c,'status':_0x1893e2,'completedAt':terminal(_0x4b23dd[_0x4f890f(0x119)])?_0x51002e[_0x4f890f(0x172)]:_0x17661c[_0x4f890f(0x209)]});}if(_0x4b23dd[_0x4f890f(0x119)]!==undefined&&!terminal(_0x4b23dd[_0x4f890f(0x119)]))this[_0x4f890f(0x145)](_0x3542b1,_0x4b23dd[_0x4f890f(0x119)]);this[_0x4f890f(0x110)](_0x51002e,_0x17661c?.[_0x4f890f(0xfb)]);if(_0x4b23dd[_0x4f890f(0x119)]!==undefined&&terminal(_0x4b23dd[_0x4f890f(0x119)])&&_0x17661c!==undefined)this[_0x4f890f(0x1c4)](_0x17661c[_0x4f890f(0xfb)],_0x4b23dd[_0x4f890f(0x119)],_0x51002e[_0x4f890f(0x172)]);return _0x51002e;}[_0x11d1fb(0x1dc)](_0x277390){const _0x54a50c=_0x11d1fb,_0x206f84=this[_0x54a50c(0x14e)](_0x277390);if(_0x206f84===undefined)return undefined;for(const [_0x19421e,_0x3780cf]of this[_0x54a50c(0x188)])if(_0x3780cf[_0x54a50c(0x1f0)]===_0x277390&&_0x3780cf[_0x54a50c(0xfb)]===_0x206f84['id']&&!terminalExecution(_0x3780cf[_0x54a50c(0x119)]))return _0x19421e;return undefined;}[_0x11d1fb(0x1d8)](_0x33a6d5){const _0x1d393d=_0x11d1fb,_0xf0c028=this[_0x1d393d(0x214)](_0x33a6d5),_0x51819b=this[_0x1d393d(0x14e)](_0xf0c028);if(_0x51819b===undefined||_0x51819b[_0x1d393d(0x119)]!==_0x1d393d(0x10f))throw new Error(_0x1d393d(0x134));const _0x4b22b5=[...this[_0x1d393d(0x188)][_0x1d393d(0x111)]()][_0x1d393d(0x183)](_0x900d82=>_0x900d82[_0x1d393d(0x1f0)]===_0xf0c028&&_0x900d82[_0x1d393d(0xfb)]===_0x51819b['id']);if(_0x4b22b5!==undefined)return _0x4b22b5;const _0x538150=this[_0x1d393d(0x218)](),_0x35cf66={'id':randomUUID(),'runId':_0xf0c028,'turnId':_0x51819b['id'],'status':_0x1d393d(0x11b),'startedAt':_0x538150,'completedAt':null};return this[_0x1d393d(0x188)][_0x1d393d(0x155)](_0x35cf66['id'],_0x35cf66),this[_0x1d393d(0x169)](_0xf0c028,_0x570fa9=>({..._0x570fa9,'items':_0x570fa9[_0x1d393d(0x1e0)][_0x1d393d(0x115)](_0x325edc=>_0x325edc['id']===_0x570fa9[_0x1d393d(0x180)]&&isRecord(_0x325edc[_0x1d393d(0x11c)])&&Array[_0x1d393d(0x1a2)](_0x325edc[_0x1d393d(0x11c)][_0x1d393d(0x105)])?{..._0x325edc,'payload':{..._0x325edc[_0x1d393d(0x11c)],'attachments':_0x325edc[_0x1d393d(0x11c)][_0x1d393d(0x105)][_0x1d393d(0x115)](_0x5952a4=>isRecord(_0x5952a4)&&typeof _0x5952a4[_0x1d393d(0x1d6)]===_0x1d393d(0x16a)?{..._0x5952a4,'runId':_0x35cf66['id']}:_0x5952a4)}}:_0x325edc)})),_0x35cf66;}[_0x11d1fb(0x214)](_0x381cb3){const _0x15ec30=_0x11d1fb;return this[_0x15ec30(0x188)][_0x15ec30(0x146)](_0x381cb3)?.[_0x15ec30(0x1f0)]??_0x381cb3;}[_0x11d1fb(0x1c7)](_0x132c51,_0x553648){const _0x4a84fa=_0x11d1fb;return this[_0x4a84fa(0x145)](this[_0x4a84fa(0x214)](_0x132c51),_0x553648);}[_0x11d1fb(0x20b)](_0x3d45e8){const _0x1ecd95=_0x11d1fb;this[_0x1ecd95(0x1cb)](_0x3d45e8[_0x1ecd95(0x17a)]);const _0x531d78=[...this[_0x1ecd95(0x161)][_0x1ecd95(0x146)](_0x3d45e8[_0x1ecd95(0x17a)])??[]][_0x1ecd95(0x115)]((_0x4c886a,_0xa2bdf9)=>({'turn':_0x4c886a,'index':_0xa2bdf9}))[_0x1ecd95(0x18e)]((_0x5996db,_0x53808b)=>{const _0x5142ad=_0x1ecd95,_0x2f9eff=_0x3c878e=>_0x3c878e[_0x5142ad(0x1e0)][_0x5142ad(0x183)](_0x4508ed=>_0x4508ed['id']===_0x3c878e[_0x5142ad(0x180)])?.[_0x5142ad(0x1fd)]??_0x3c878e[_0x5142ad(0x1fd)]??_0x3c878e[_0x5142ad(0x209)]??-0x7cd+0x76a*0x1+0x1*0x63;return _0x2f9eff(_0x5996db[_0x5142ad(0x191)])-_0x2f9eff(_0x53808b[_0x5142ad(0x191)])||_0x5996db[_0x5142ad(0x196)]-_0x53808b[_0x5142ad(0x196)];})[_0x1ecd95(0x115)](({turn:_0x4230ed})=>_0x4230ed),_0x4221a3=_0x3d45e8[_0x1ecd95(0x123)]===undefined?_0x531d78[_0x1ecd95(0x12e)]:decodeCursor(_0x3d45e8[_0x1ecd95(0x123)],_0x3d45e8[_0x1ecd95(0x17a)]),_0x34ba53=Math[_0x1ecd95(0x176)](Math[_0x1ecd95(0x20d)](_0x3d45e8[_0x1ecd95(0x1bc)]??0x2083+-0x893*-0x1+-0x6*0x6d4,0x1*-0x1196+0x6f*0x1b+0x2f1*0x2),0x8ba*-0x1+0x279*-0x1+-0x1*-0xd27),_0x106064=Math[_0x1ecd95(0x20d)](0x2451+0x19a7+-0x52a*0xc,_0x4221a3-_0x34ba53),_0x50ede1=_0x531d78[_0x1ecd95(0x12b)](_0x106064,_0x4221a3);return{'turns':_0x50ede1,'nextCursor':_0x106064>-0x35b*0x5+0xce0+0x25*0x1b?encodeCursor(_0x3d45e8[_0x1ecd95(0x17a)],_0x106064):null};}[_0x11d1fb(0x1a4)](_0x585f3b){const _0x23e041=_0x11d1fb;for(const _0x5bf84a of this[_0x23e041(0x161)][_0x23e041(0x111)]()){const _0x13b604=_0x5bf84a[_0x23e041(0x1ff)](_0x57f9fe=>_0x57f9fe[_0x23e041(0x1f0)]===this[_0x23e041(0x214)](_0x585f3b));if(_0x13b604!==undefined)return _0x13b604;}return undefined;}[_0x11d1fb(0x102)](_0x2cd437){const _0x266fbd=_0x11d1fb,_0x56fff3=this[_0x266fbd(0x188)][_0x266fbd(0x146)](_0x2cd437),_0x137cb2=_0x56fff3===undefined?this[_0x266fbd(0x1cc)][_0x266fbd(0x146)](_0x2cd437):{'sessionId':this[_0x266fbd(0x1a7)](_0x56fff3[_0x266fbd(0x1f0)])[_0x266fbd(0x17a)],'turnId':_0x56fff3[_0x266fbd(0xfb)]};if(_0x137cb2===undefined)return undefined;return(this[_0x266fbd(0x161)][_0x266fbd(0x146)](_0x137cb2[_0x266fbd(0x17a)])??[])[_0x266fbd(0x183)](_0x1b9913=>_0x1b9913['id']===_0x137cb2[_0x266fbd(0xfb)]);}[_0x11d1fb(0x201)](_0x5ce836){const _0x3c4775=_0x11d1fb,_0x5dfc2b=this[_0x3c4775(0x20b)](_0x5ce836)[_0x3c4775(0x161)];return{'items':_0x5dfc2b[_0x3c4775(0x139)](_0x16d717=>_0x16d717[_0x3c4775(0x1e0)]),'nextCursor':null};}[_0x11d1fb(0x192)](_0x4f16d1){const _0x34e636=_0x11d1fb,_0x362c5b=this[_0x34e636(0x1cb)](_0x4f16d1[_0x34e636(0x17a)]),_0x148da2=this[_0x34e636(0x218)](),_0x6a0fad={'id':randomUUID(),'sessionId':_0x4f16d1[_0x34e636(0x17a)],'turnId':'','runId':null,'parentItemId':null,'sourceSequence':null,'revision':0x1,'kind':_0x34e636(0x1da),'status':_0x4f16d1[_0x34e636(0x1a5)]?_0x34e636(0x1b9):_0x34e636(0x126),'payload':{'command':_0x4f16d1[_0x34e636(0x124)],'cwd':_0x4f16d1[_0x34e636(0x1b6)],'outputPreview':_0x4f16d1[_0x34e636(0x1fc)][_0x34e636(0x12b)](-0x1103+0x1b6c+-0x1*0xa69,0x1*-0xe93+-0x41fc+-0x10f*-0x71),'outputRef':null,'exitCode':_0x4f16d1[_0x34e636(0x1a5)]?-0x1b74*0x1+-0xdb3+0x2928:-0x24a6+-0x2*0x6bc+0x2*0x190f,'durationMs':0x0,'truncated':![]},'startedAt':_0x148da2,'completedAt':_0x148da2},_0x419c47={'id':randomUUID(),'sessionId':_0x4f16d1[_0x34e636(0x17a)],'runId':null,'userItemId':null,'status':_0x4f16d1[_0x34e636(0x1a5)]?_0x34e636(0x1b9):_0x34e636(0x157),'model':_0x362c5b[_0x34e636(0x106)],'effort':_0x362c5b[_0x34e636(0x208)],'access':_0x362c5b[_0x34e636(0x117)],'items':[],'startedAt':_0x148da2,'completedAt':_0x148da2},_0x4ca3c7={..._0x6a0fad,'turnId':_0x419c47['id']},_0xf59fa4={..._0x419c47,'items':[_0x4ca3c7]};return this[_0x34e636(0x161)][_0x34e636(0x155)](_0x4f16d1[_0x34e636(0x17a)],[...this[_0x34e636(0x161)][_0x34e636(0x146)](_0x4f16d1[_0x34e636(0x17a)])??[],_0xf59fa4]),this[_0x34e636(0x1e2)](_0x362c5b['id'],{'lastActivityAt':_0x148da2}),_0xf59fa4;}[_0x11d1fb(0x16f)](_0xbab234){const _0x53e913=_0x11d1fb,_0x4fa278=this[_0x53e913(0x15c)](_0xbab234[_0x53e913(0x1f0)]);if(_0x4fa278===undefined)throw new Error(_0x53e913(0x190));if(_0xbab234[_0x53e913(0x1f0)]!==_0x4fa278['id']&&this[_0x53e913(0x1dc)](_0x4fa278['id'])!==_0xbab234[_0x53e913(0x1f0)])throw new Error(_0x53e913(0x1b3));if(this[_0x53e913(0x1a0)][_0x53e913(0x136)](_0xbab234[_0x53e913(0x10e)]))throw new Error(_0x53e913(0x13e));if(_0xbab234[_0x53e913(0x166)]<=this[_0x53e913(0x218)]())throw new Error(_0x53e913(0x113));const _0x11f490={'id':_0xbab234[_0x53e913(0x10e)],'runId':_0xbab234[_0x53e913(0x1f0)],'status':_0x53e913(0x1fb),'payload':_0xbab234[_0x53e913(0x11c)],'expiresAt':_0xbab234[_0x53e913(0x166)],'createdAt':this[_0x53e913(0x218)](),'decidedAt':null};return this[_0x53e913(0x1a0)][_0x53e913(0x155)](_0x11f490['id'],_0x11f490),_0x11f490;}[_0x11d1fb(0x202)](_0x294067){const _0x481d73=_0x11d1fb,_0x326e29=this[_0x481d73(0x1a0)][_0x481d73(0x146)](_0x294067);if(_0x326e29?.[_0x481d73(0x119)]===_0x481d73(0x1fb)&&_0x326e29[_0x481d73(0x166)]<=this[_0x481d73(0x218)]())return this[_0x481d73(0x13d)](_0x294067);return _0x326e29;}[_0x11d1fb(0x14a)](_0x202c51){const _0x37a57b=_0x11d1fb,_0x11fbff=this[_0x37a57b(0x214)](_0x202c51);return[...this[_0x37a57b(0x1a0)][_0x37a57b(0x111)]()][_0x37a57b(0x17f)](_0x5ea79d=>this[_0x37a57b(0x214)](_0x5ea79d[_0x37a57b(0x1f0)])===_0x11fbff)[_0x37a57b(0x115)](_0x7ec6b6=>this[_0x37a57b(0x202)](_0x7ec6b6['id']));}[_0x11d1fb(0x13d)](_0x47867c){const _0x156540=_0x11d1fb,_0x2dfe4f=this[_0x156540(0x184)](_0x47867c);if(_0x2dfe4f[_0x156540(0x119)]!==_0x156540(0x1fb))return _0x2dfe4f;if(_0x2dfe4f[_0x156540(0x166)]>this[_0x156540(0x218)]())throw new Error(_0x156540(0x17b));const _0x3c7976={..._0x2dfe4f,'status':_0x156540(0x165),'decidedAt':this[_0x156540(0x218)]()};return this[_0x156540(0x1a0)][_0x156540(0x155)](_0x47867c,_0x3c7976),_0x3c7976;}[_0x11d1fb(0x1f1)](_0x559605,_0x568624){const _0x28f7ec=_0x11d1fb,_0xd8ad5e=this[_0x28f7ec(0x202)](_0x559605);if(_0xd8ad5e===undefined)throw new Error(_0x28f7ec(0x20f));if(_0xd8ad5e[_0x28f7ec(0x119)]===_0x28f7ec(0x165))throw new Error(_0x28f7ec(0x113));if(_0xd8ad5e[_0x28f7ec(0x119)]!==_0x28f7ec(0x1fb))throw new Error(_0x28f7ec(0x1ac));const _0x18f854={..._0xd8ad5e,'status':_0x568624,'decidedAt':this[_0x28f7ec(0x218)]()};return this[_0x28f7ec(0x1a0)][_0x28f7ec(0x155)](_0x559605,_0x18f854),_0x18f854;}[_0x11d1fb(0x1f7)](){const _0x23b569=_0x11d1fb;return[...this[_0x23b569(0x1a0)][_0x23b569(0x111)]()][_0x23b569(0x17f)](_0x3ea19a=>_0x3ea19a[_0x23b569(0x119)]===_0x23b569(0x1fb)&&_0x3ea19a[_0x23b569(0x166)]<=this[_0x23b569(0x218)]())[_0x23b569(0x115)](_0xa252c2=>this[_0x23b569(0x13d)](_0xa252c2['id']));}[_0x11d1fb(0x142)](){const _0x58c6d1=_0x11d1fb;return[...this[_0x58c6d1(0x1aa)][_0x58c6d1(0x111)]()][_0x58c6d1(0x17f)](_0x156afa=>!terminal(_0x156afa[_0x58c6d1(0x119)]));}[_0x11d1fb(0x205)](_0x4149c5){const _0x38a3bd=_0x11d1fb;return this[_0x38a3bd(0x1ae)][_0x38a3bd(0x146)](_0x4149c5)??0x1924+-0x1*-0x22af+-0x3bd3;}[_0x11d1fb(0x197)](_0x5e2e39){const _0x56a989=_0x11d1fb,_0xeb699=this[_0x56a989(0x1a7)](_0x5e2e39);if(!terminal(_0xeb699[_0x56a989(0x119)]))throw new Error(_0x56a989(0x1bd));this[_0x56a989(0x14c)][_0x56a989(0x121)](_0x5e2e39);if(this[_0x56a989(0x14c)][_0x56a989(0x10c)]>0x660+-0x8ab+0x219*0x3)this[_0x56a989(0x14c)][_0x56a989(0x1f5)](this[_0x56a989(0x14c)][_0x56a989(0x111)]()[_0x56a989(0x127)]()[_0x56a989(0x135)]);const _0x48f06f=new Set([...this[_0x56a989(0x188)][_0x56a989(0x111)]()][_0x56a989(0x17f)](_0x2859c8=>_0x2859c8[_0x56a989(0x1f0)]===_0x5e2e39)[_0x56a989(0x115)](_0x20d2bf=>_0x20d2bf['id'])),_0x2651ac=(this[_0x56a989(0x161)][_0x56a989(0x146)](_0xeb699[_0x56a989(0x17a)])??[])[_0x56a989(0x17f)](_0x5c16b8=>{const _0x519705=_0x56a989,_0x2fa017=_0x5c16b8[_0x519705(0x1e0)][_0x519705(0x101)](_0x44178a=>_0x44178a[_0x519705(0x1c3)]===_0x519705(0x10a));if(_0x5c16b8[_0x519705(0x1f0)]===_0x5e2e39)return _0xeb699[_0x519705(0x119)]===_0x519705(0x157)||_0xeb699[_0x519705(0x119)]===_0x519705(0x199)||_0x2fa017;const _0x21e959=_0x2fa017&&_0x5c16b8[_0x519705(0x119)]!==_0x519705(0x157)&&_0x5c16b8[_0x519705(0x119)]!==_0x519705(0x199);return _0xeb699[_0x519705(0x119)]!==_0x519705(0x157)||!_0x21e959;}),_0x4a80df=_0x2651ac[_0x56a989(0x17f)](_0x381106=>terminalTurn(_0x381106[_0x56a989(0x119)])),_0x4134e8=new Set(_0x4a80df[_0x56a989(0x12b)](-NodeRuntimeState[_0x56a989(0x156)])[_0x56a989(0x115)](_0x56cf5b=>_0x56cf5b['id'])),_0x3f4fcb=_0x2651ac[_0x56a989(0x17f)](_0x501732=>!terminalTurn(_0x501732[_0x56a989(0x119)])||_0x4134e8[_0x56a989(0x136)](_0x501732['id'])),_0x359580=new Set(_0x3f4fcb[_0x56a989(0x115)](_0x144ac9=>_0x144ac9['id']));this[_0x56a989(0x161)][_0x56a989(0x155)](_0xeb699[_0x56a989(0x17a)],_0x3f4fcb);for(const [_0x5655e1,_0x48b335]of this[_0x56a989(0x188)]){if(_0x48b335[_0x56a989(0x1f0)]!==_0x5e2e39)continue;this[_0x56a989(0x188)][_0x56a989(0x1f5)](_0x5655e1);if(_0x359580[_0x56a989(0x136)](_0x48b335[_0x56a989(0xfb)]))this[_0x56a989(0x1cc)][_0x56a989(0x155)](_0x5655e1,{'sessionId':_0xeb699[_0x56a989(0x17a)],'turnId':_0x48b335[_0x56a989(0xfb)]});}this[_0x56a989(0x1f9)](_0xeb699[_0x56a989(0x17a)],_0x359580),this[_0x56a989(0x1aa)][_0x56a989(0x1f5)](_0x5e2e39),this[_0x56a989(0x1ae)][_0x56a989(0x1f5)](_0x5e2e39);for(const [_0x18aea8,_0x2addd1]of this[_0x56a989(0x1d0)])if(_0x2addd1[_0x56a989(0x1c3)]===_0x56a989(0x116)&&_0x2addd1['id']===_0x5e2e39)this[_0x56a989(0x1d0)][_0x56a989(0x1f5)](_0x18aea8);for(const [_0x5676cb,_0x222bb9]of this[_0x56a989(0x1a0)])if(_0x222bb9[_0x56a989(0x1f0)]===_0x5e2e39||_0x48f06f[_0x56a989(0x136)](_0x222bb9[_0x56a989(0x1f0)]))this[_0x56a989(0x1a0)][_0x56a989(0x1f5)](_0x5676cb);}[_0x11d1fb(0x1bf)](_0x55d9d2){const _0x29360b=_0x11d1fb;return[...this[_0x29360b(0x10d)][_0x29360b(0x111)]()][_0x29360b(0x115)](_0x23575d=>this[_0x29360b(0x1aa)][_0x29360b(0x146)](_0x23575d))[_0x29360b(0x101)](_0xdb3f45=>_0xdb3f45?.[_0x29360b(0x12a)]===_0x55d9d2);}[_0x11d1fb(0x13c)](_0x5aed6d){const _0x31d342=_0x11d1fb;this[_0x31d342(0x1cb)](_0x5aed6d);const _0x223d13=this[_0x31d342(0x167)](_0x5aed6d);if(_0x223d13[_0x31d342(0x101)](_0x20bd06=>!terminal(_0x20bd06[_0x31d342(0x119)])))throw new Error(_0x31d342(0x147));const _0x53eac4=new Set(_0x223d13[_0x31d342(0x115)](_0x2451d1=>_0x2451d1['id'])),_0x375f3a=new Set([...this[_0x31d342(0x188)][_0x31d342(0x111)]()][_0x31d342(0x17f)](_0x2f7134=>_0x53eac4[_0x31d342(0x136)](_0x2f7134[_0x31d342(0x1f0)]))[_0x31d342(0x115)](_0x33143d=>_0x33143d['id']));this[_0x31d342(0x125)][_0x31d342(0x1f5)](_0x5aed6d),this[_0x31d342(0x161)][_0x31d342(0x1f5)](_0x5aed6d),this[_0x31d342(0x1f9)](_0x5aed6d,new Set());const _0x1a3773=this[_0x31d342(0x151)][_0x31d342(0x146)](_0x5aed6d)??[];this[_0x31d342(0x151)][_0x31d342(0x1f5)](_0x5aed6d);for(const _0x363f2a of _0x1a3773)this[_0x31d342(0x1df)][_0x31d342(0x1f5)](_0x363f2a);this[_0x31d342(0x130)][_0x31d342(0x1f5)](_0x5aed6d),this[_0x31d342(0x109)][_0x31d342(0x1f5)](_0x5aed6d),this[_0x31d342(0x10d)][_0x31d342(0x1f5)](_0x5aed6d);for(const _0x158800 of _0x53eac4){this[_0x31d342(0x1aa)][_0x31d342(0x1f5)](_0x158800),this[_0x31d342(0x1ae)][_0x31d342(0x1f5)](_0x158800);}for(const _0x95b88 of _0x375f3a)this[_0x31d342(0x188)][_0x31d342(0x1f5)](_0x95b88);for(const [_0xe09268,_0x5a8b3a]of this[_0x31d342(0x1d0)])if(_0x5a8b3a[_0x31d342(0x1c3)]===_0x31d342(0x116)&&_0x53eac4[_0x31d342(0x136)](_0x5a8b3a['id'])||_0x5a8b3a[_0x31d342(0x1c3)]===_0x31d342(0x213)&&_0x1a3773[_0x31d342(0x19d)](_0x5a8b3a['id']))this[_0x31d342(0x1d0)][_0x31d342(0x1f5)](_0xe09268);for(const _0xd9fe61 of this[_0x31d342(0x200)][_0x31d342(0x14b)]())if(_0xd9fe61[_0x31d342(0x18b)](_0x5aed6d+'\x00'))this[_0x31d342(0x200)][_0x31d342(0x1f5)](_0xd9fe61);for(const [_0x26d186,_0x4481d6]of this[_0x31d342(0x1a0)])if(_0x53eac4[_0x31d342(0x136)](_0x4481d6[_0x31d342(0x1f0)])||_0x375f3a[_0x31d342(0x136)](_0x4481d6[_0x31d342(0x1f0)]))this[_0x31d342(0x1a0)][_0x31d342(0x1f5)](_0x26d186);}[_0x11d1fb(0x1a9)](_0x4f7e3){const _0x534cc0=_0x11d1fb;if(this[_0x534cc0(0x1bf)](_0x4f7e3))throw new Error(_0x534cc0(0x133));const _0x2a548e=new Set([...this[_0x534cc0(0x125)][_0x534cc0(0x111)]()][_0x534cc0(0x17f)](_0x4d4516=>_0x4d4516[_0x534cc0(0x12a)]===_0x4f7e3)[_0x534cc0(0x115)](_0x186de6=>_0x186de6['id'])),_0x563a2b=new Set([...this[_0x534cc0(0x1aa)][_0x534cc0(0x111)]()][_0x534cc0(0x17f)](_0x130b27=>_0x130b27[_0x534cc0(0x12a)]===_0x4f7e3)[_0x534cc0(0x115)](_0x2fdf7e=>_0x2fdf7e['id'])),_0x347847=new Set([...this[_0x534cc0(0x188)][_0x534cc0(0x111)]()][_0x534cc0(0x17f)](_0x53849d=>_0x563a2b[_0x534cc0(0x136)](_0x53849d[_0x534cc0(0x1f0)]))[_0x534cc0(0x115)](_0x277292=>_0x277292['id'])),_0x393a00=new Set([..._0x2a548e][_0x534cc0(0x139)](_0xd6875a=>this[_0x534cc0(0x151)][_0x534cc0(0x146)](_0xd6875a)??[]));for(const _0x232915 of _0x2a548e){this[_0x534cc0(0x125)][_0x534cc0(0x1f5)](_0x232915),this[_0x534cc0(0x161)][_0x534cc0(0x1f5)](_0x232915),this[_0x534cc0(0x1f9)](_0x232915,new Set());}for(const _0x450f3a of _0x563a2b){this[_0x534cc0(0x1aa)][_0x534cc0(0x1f5)](_0x450f3a),this[_0x534cc0(0x1ae)][_0x534cc0(0x1f5)](_0x450f3a);}for(const _0x144bcb of _0x347847)this[_0x534cc0(0x188)][_0x534cc0(0x1f5)](_0x144bcb);for(const [_0x5a60fe,_0x585ec3]of this[_0x534cc0(0x1d0)])if(_0x585ec3[_0x534cc0(0x1c3)]===_0x534cc0(0x116)&&_0x563a2b[_0x534cc0(0x136)](_0x585ec3['id'])||_0x585ec3[_0x534cc0(0x1c3)]===_0x534cc0(0x213)&&_0x393a00[_0x534cc0(0x136)](_0x585ec3['id']))this[_0x534cc0(0x1d0)][_0x534cc0(0x1f5)](_0x5a60fe);for(const _0x1249f5 of this[_0x534cc0(0x200)][_0x534cc0(0x14b)]()){const _0x46e28a=_0x1249f5[_0x534cc0(0x20e)]('\u0000');if(_0x46e28a>=-0x2a9+-0x188+-0x431*-0x1&&_0x2a548e[_0x534cc0(0x136)](_0x1249f5[_0x534cc0(0x12b)](0x1dd5+-0x658+-0x7*0x35b,_0x46e28a)))this[_0x534cc0(0x200)][_0x534cc0(0x1f5)](_0x1249f5);}for(const [_0x4d14df,_0x538dd8]of this[_0x534cc0(0x1a0)])if(_0x563a2b[_0x534cc0(0x136)](_0x538dd8[_0x534cc0(0x1f0)])||_0x347847[_0x534cc0(0x136)](_0x538dd8[_0x534cc0(0x1f0)]))this[_0x534cc0(0x1a0)][_0x534cc0(0x1f5)](_0x4d14df);for(const _0xf8dd62 of _0x2a548e){const _0x345443=this[_0x534cc0(0x151)][_0x534cc0(0x146)](_0xf8dd62)??[];this[_0x534cc0(0x151)][_0x534cc0(0x1f5)](_0xf8dd62);for(const _0x44aa6e of _0x345443)this[_0x534cc0(0x1df)][_0x534cc0(0x1f5)](_0x44aa6e);this[_0x534cc0(0x130)][_0x534cc0(0x1f5)](_0xf8dd62),this[_0x534cc0(0x109)][_0x534cc0(0x1f5)](_0xf8dd62),this[_0x534cc0(0x10d)][_0x534cc0(0x1f5)](_0xf8dd62);}}[_0x11d1fb(0x1a8)](_0x3c2c0f,_0x285237){void _0x3c2c0f,void _0x285237;}[_0x11d1fb(0x1e2)](_0x4babeb,_0x53a21d){const _0x4aa9d8=_0x11d1fb,_0x4a05d8=this[_0x4aa9d8(0x1cb)](_0x4babeb),_0x59bf92={..._0x4a05d8,..._0x53a21d};this[_0x4aa9d8(0x125)][_0x4aa9d8(0x155)](_0x4babeb,_0x59bf92);if(_0x4a05d8[_0x4aa9d8(0x1ce)]!==_0x59bf92[_0x4aa9d8(0x1ce)]||_0x4a05d8[_0x4aa9d8(0x1d9)]!==_0x59bf92[_0x4aa9d8(0x1d9)]){for(const _0x5e9602 of this[_0x4aa9d8(0x167)](_0x4babeb))this[_0x4aa9d8(0x1fa)](_0x5e9602,_0x59bf92);}return _0x59bf92;}[_0x11d1fb(0x1fa)](_0x4e1d9d,_0x5f0b10){const _0x5c45d8=_0x11d1fb,_0xb0f252=this[_0x5c45d8(0x14e)](_0x4e1d9d['id']),_0x1a0191=_0xb0f252?.[_0x5c45d8(0x1e0)][_0x5c45d8(0x183)](_0xc9955b=>_0xc9955b[_0x5c45d8(0x1c3)]===_0x5c45d8(0x16d))?.[_0x5c45d8(0x11c)],_0x2e2d4c=isRecord(_0x1a0191)&&typeof _0x1a0191[_0x5c45d8(0x164)]===_0x5c45d8(0x1b5)?_0x1a0191[_0x5c45d8(0x164)]:undefined,_0x465719=_0x2e2d4c?.[_0x5c45d8(0x18b)](_0x5c45d8(0x210))?'':this[_0x5c45d8(0x203)](_0x4e1d9d['id']);this[_0x5c45d8(0x1b1)]?.(_0x4e1d9d,_0x5f0b10,_0x465719[_0x5c45d8(0x12e)]===-0x6b*0x2d+0x8d7*-0x1+-0x1ba6*-0x1?undefined:_0x465719);}[_0x11d1fb(0x1f3)](_0xa4268f){const _0x56c629=_0x11d1fb;this[_0x56c629(0x130)][_0x56c629(0x155)](_0xa4268f,(this[_0x56c629(0x130)][_0x56c629(0x146)](_0xa4268f)??0x1*0x213f+-0x6bb+-0x1a84)+(0x1*-0x1297+-0x16ce+0x2966));}[_0x11d1fb(0x1f9)](_0xe5aab8,_0x2d5479){const _0x3372f9=_0x11d1fb;for(const [_0xb97bfa,_0x260eca]of this[_0x3372f9(0x1cc)])if(_0x260eca[_0x3372f9(0x17a)]===_0xe5aab8&&!_0x2d5479[_0x3372f9(0x136)](_0x260eca[_0x3372f9(0xfb)]))this[_0x3372f9(0x1cc)][_0x3372f9(0x1f5)](_0xb97bfa);}[_0x11d1fb(0x1cb)](_0x3e6b83){const _0x2e6a6c=_0x11d1fb,_0x3d107c=this[_0x2e6a6c(0x125)][_0x2e6a6c(0x146)](_0x3e6b83);if(_0x3d107c===undefined)throw new Error(_0x2e6a6c(0x112));return _0x3d107c;}[_0x11d1fb(0x1a7)](_0x1efa40){const _0x30efb3=_0x11d1fb,_0x3e5009=this[_0x30efb3(0x1aa)][_0x30efb3(0x146)](_0x1efa40);if(_0x3e5009===undefined)throw new Error(_0x30efb3(0x190));return _0x3e5009;}[_0x11d1fb(0x1cf)](_0x56022b){const _0x475baa=_0x11d1fb,_0x34a031=this[_0x475baa(0x1df)][_0x475baa(0x146)](_0x56022b);if(_0x34a031===undefined)throw new Error(_0x475baa(0x175));return _0x34a031;}[_0x11d1fb(0x184)](_0x3f8437){const _0x135243=_0x11d1fb,_0x36b851=this[_0x135243(0x1a0)][_0x135243(0x146)](_0x3f8437);if(_0x36b851===undefined)throw new Error(_0x135243(0x20f));return _0x36b851;}[_0x11d1fb(0x195)](_0x28413e,_0x54c26f){const _0x156e45=_0x11d1fb,_0x1964f5=this[_0x156e45(0x1a7)](_0x28413e),_0x28d7a0=this[_0x156e45(0x161)][_0x156e45(0x146)](_0x1964f5[_0x156e45(0x17a)])??[];this[_0x156e45(0x161)][_0x156e45(0x155)](_0x1964f5[_0x156e45(0x17a)],_0x28d7a0[_0x156e45(0x115)](_0x185201=>_0x185201[_0x156e45(0x1f0)]===_0x28413e?_0x54c26f(_0x185201):_0x185201));}[_0x11d1fb(0x169)](_0x595323,_0x548fd2){const _0x61e2c1=_0x11d1fb,_0x1588e1=this[_0x61e2c1(0x1a7)](_0x595323),_0x2a19cf=this[_0x61e2c1(0x161)][_0x61e2c1(0x146)](_0x1588e1[_0x61e2c1(0x17a)])??[],_0x2bf96b=_0x2a19cf[_0x61e2c1(0x1c0)](_0x24f110=>_0x24f110[_0x61e2c1(0x1f0)]===_0x595323);if(_0x2bf96b<-0xd*-0x1af+-0x2a1*-0xe+0x259*-0x19)return;this[_0x61e2c1(0x161)][_0x61e2c1(0x155)](_0x1588e1[_0x61e2c1(0x17a)],_0x2a19cf[_0x61e2c1(0x115)]((_0xadc9f8,_0x4a1d75)=>_0x4a1d75===_0x2bf96b?_0x548fd2(_0xadc9f8):_0xadc9f8));}[_0x11d1fb(0x14e)](_0x2b4197){const _0x5418f8=_0x11d1fb,_0x17df4e=this[_0x5418f8(0x1a7)](_0x2b4197);return(this[_0x5418f8(0x161)][_0x5418f8(0x146)](_0x17df4e[_0x5418f8(0x17a)])??[])[_0x5418f8(0x1ff)](_0x36473f=>_0x36473f[_0x5418f8(0x1f0)]===_0x2b4197);}[_0x11d1fb(0x1b0)](_0x220962,_0x1780b2){const _0x1775e0=_0x11d1fb,_0x1ea9a0=this[_0x1775e0(0x1cb)](_0x220962[_0x1775e0(0x17a)]),_0x29362a={'id':randomUUID(),'sessionId':_0x1ea9a0['id'],'runId':_0x220962['id'],'userItemId':null,'status':terminal(_0x220962[_0x1775e0(0x119)])?_0x220962[_0x1775e0(0x119)]:_0x1775e0(0x1a6),'model':_0x1ea9a0[_0x1775e0(0x106)],'effort':_0x1ea9a0[_0x1775e0(0x208)],'access':_0x1ea9a0[_0x1775e0(0x117)],'items':[],'startedAt':_0x1780b2,'completedAt':terminal(_0x220962[_0x1775e0(0x119)])?_0x1780b2:null};return this[_0x1775e0(0x161)][_0x1775e0(0x155)](_0x1ea9a0['id'],[...this[_0x1775e0(0x161)][_0x1775e0(0x146)](_0x1ea9a0['id'])??[],_0x29362a]),this[_0x1775e0(0x1e2)](_0x1ea9a0['id'],{'lastActivityAt':_0x1780b2}),_0x29362a;}[_0x11d1fb(0x204)](_0x36f627,_0x158aa4,_0x42bd14,_0x5cb142){const _0xd3fe35=_0x11d1fb,_0x2b63d0=this[_0xd3fe35(0x1cb)](_0x36f627[_0xd3fe35(0x17a)]),_0x137f2e=this[_0xd3fe35(0x218)](),_0x462759=randomUUID(),_0x28f300=randomUUID(),_0x5e348a={'id':_0x28f300,'sessionId':_0x2b63d0['id'],'turnId':_0x462759,'runId':_0x36f627['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0xd3fe35(0x16d),'status':_0xd3fe35(0x126),'payload':{'clientMessageId':_0x158aa4,'text':_0x42bd14,'contexts':[],'attachments':this[_0xd3fe35(0x128)](_0x36f627['id'],_0x5cb142),'delivery':_0xd3fe35(0x186)},'startedAt':_0x137f2e,'completedAt':_0x137f2e},_0x5d1f79={'id':_0x462759,'sessionId':_0x2b63d0['id'],'runId':_0x36f627['id'],'userItemId':_0x28f300,'status':_0xd3fe35(0x10f),'model':_0x2b63d0[_0xd3fe35(0x106)],'effort':_0x2b63d0[_0xd3fe35(0x208)],'access':_0x2b63d0[_0xd3fe35(0x117)],'items':[_0x5e348a],'startedAt':_0x137f2e,'completedAt':null};return this[_0xd3fe35(0x161)][_0xd3fe35(0x155)](_0x2b63d0['id'],[...this[_0xd3fe35(0x161)][_0xd3fe35(0x146)](_0x2b63d0['id'])??[],_0x5d1f79]),this[_0xd3fe35(0x1e2)](_0x2b63d0['id'],{'lastActivityAt':_0x137f2e}),_0x5d1f79;}[_0x11d1fb(0x128)](_0x28bcbd,_0x1de80a){const _0x5f356b=_0x11d1fb;let _0x5932dd=0x1*-0x1843+-0xd*0x2ea+0x3e25;return _0x1de80a[_0x5f356b(0x115)](({name:_0x23e6c4,mime:_0x23c466,dataBase64:_0x28af89})=>{const _0x296707=_0x5f356b,_0x3f242d={'name':_0x23e6c4,'mime':_0x23c466,'byteSize':Buffer[_0x296707(0x182)](_0x28af89,_0x296707(0x1de)),'runId':_0x28bcbd};if(!_0x23c466[_0x296707(0x18b)](_0x296707(0x144)))return _0x3f242d;return{..._0x3f242d,'imageIndex':_0x5932dd++};});}[_0x11d1fb(0x1c4)](_0x169d15,_0x564ea5,_0xe324bb){const _0x5a3ef2=_0x11d1fb;for(const [_0x4a0092,_0x3dd45b]of this[_0x5a3ef2(0x161)]){if(!_0x3dd45b[_0x5a3ef2(0x101)](_0x18dead=>_0x18dead['id']===_0x169d15))continue;this[_0x5a3ef2(0x161)][_0x5a3ef2(0x155)](_0x4a0092,_0x3dd45b[_0x5a3ef2(0x115)](_0x1da25e=>_0x1da25e['id']===_0x169d15?{..._0x1da25e,'status':_0x564ea5,'completedAt':_0xe324bb,'items':_0x1da25e[_0x5a3ef2(0x1e0)][_0x5a3ef2(0x115)](_0x540d8e=>activeConversationItem(_0x540d8e[_0x5a3ef2(0x119)])?{..._0x540d8e,'status':completedStatusForRun(_0x564ea5),'completedAt':_0xe324bb}:_0x540d8e)}:_0x1da25e));return;}}[_0x11d1fb(0x110)](_0x59712e,_0x4a40f9){const _0x10abfb=_0x11d1fb,_0x27c277=this[_0x10abfb(0x1a7)](_0x59712e[_0x10abfb(0x1f0)]);if(_0x4a40f9===undefined&&this[_0x10abfb(0x14e)](_0x59712e[_0x10abfb(0x1f0)])===undefined&&conversationItemFromEvent(_0x59712e)!==undefined)this[_0x10abfb(0x1b0)](_0x27c277,_0x59712e[_0x10abfb(0x172)]);const _0x49023c=_0x3704cc=>{const _0x1c0a46=_0x10abfb;if(_0x59712e[_0x1c0a46(0x16e)]===_0x1c0a46(0x179)&&isRecord(_0x59712e[_0x1c0a46(0x11c)])&&typeof _0x59712e[_0x1c0a46(0x11c)][_0x1c0a46(0x150)]===_0x1c0a46(0x1b5)){const _0x40df7d=typeof _0x59712e[_0x1c0a46(0x11c)][_0x1c0a46(0x1d5)]===_0x1c0a46(0x1b5)&&_0x59712e[_0x1c0a46(0x11c)][_0x1c0a46(0x1d5)][_0x1c0a46(0x12e)]<=0xcde+0x192+-0xe18?_0x59712e[_0x1c0a46(0x11c)][_0x1c0a46(0x1d5)]:undefined,_0x25212d=_0x40df7d===undefined?undefined:_0x59712e[_0x1c0a46(0x1f0)]+':'+_0x40df7d,_0x154ace=_0x3704cc[_0x1c0a46(0x1e0)]['at'](-(-0x4b8+-0x247a+0x2933)),_0x598d4e=_0x25212d===undefined?_0x154ace?.[_0x1c0a46(0x1c3)]===_0x1c0a46(0x1a1)&&activeConversationItem(_0x154ace[_0x1c0a46(0x119)])?_0x154ace:undefined:_0x3704cc[_0x1c0a46(0x1e0)][_0x1c0a46(0x183)](_0x4b0d78=>_0x4b0d78['id']===_0x25212d&&_0x4b0d78[_0x1c0a46(0x1c3)]===_0x1c0a46(0x1a1)),_0x2f7c3d=''+(_0x598d4e===undefined?'':readableText(_0x598d4e[_0x1c0a46(0x11c)]))+_0x59712e[_0x1c0a46(0x11c)][_0x1c0a46(0x150)],_0x2b8bd1={'id':_0x598d4e?.['id']??_0x25212d??_0x59712e[_0x1c0a46(0x1f0)]+_0x1c0a46(0x1be)+_0x59712e[_0x1c0a46(0x12c)],'sessionId':_0x27c277[_0x1c0a46(0x17a)],'turnId':_0x3704cc['id'],'runId':_0x59712e[_0x1c0a46(0x1f0)],'parentItemId':null,'sourceSequence':_0x598d4e?.[_0x1c0a46(0x103)]??_0x59712e[_0x1c0a46(0x12c)],'revision':_0x59712e[_0x1c0a46(0x12c)],'kind':_0x1c0a46(0x1a1),'status':_0x1c0a46(0x132),'payload':{'text':_0x2f7c3d,'format':_0x1c0a46(0x1e3),'model':null},'startedAt':_0x598d4e?.[_0x1c0a46(0x1fd)]??_0x59712e[_0x1c0a46(0x172)],'completedAt':null};return{..._0x3704cc,'status':_0x1c0a46(0x1a6),'startedAt':_0x3704cc[_0x1c0a46(0x1fd)]??_0x59712e[_0x1c0a46(0x172)],'items':_0x598d4e===undefined?[..._0x3704cc[_0x1c0a46(0x1e0)],_0x2b8bd1]:_0x3704cc[_0x1c0a46(0x1e0)][_0x1c0a46(0x115)](_0x316fea=>_0x316fea['id']===_0x2b8bd1['id']?_0x2b8bd1:_0x316fea)};}const _0x3723f9=conversationItemFromEvent(_0x59712e);if(_0x3723f9!==undefined){const _0x4e356c=_0x3704cc[_0x1c0a46(0x1e0)]['at'](-(0x1165+0x146f+-0x25d3)),_0xea0b0e=_0x4e356c?.[_0x1c0a46(0x1c3)]===_0x1c0a46(0x1a1)&&activeConversationItem(_0x4e356c[_0x1c0a46(0x119)])?_0x3704cc[_0x1c0a46(0x1e0)][_0x1c0a46(0x115)](_0x655549=>_0x655549['id']===_0x4e356c['id']?{..._0x655549,'status':_0x1c0a46(0x126),'completedAt':_0x59712e[_0x1c0a46(0x172)]}:_0x655549):_0x3704cc[_0x1c0a46(0x1e0)],_0x30adf0=_0xea0b0e[_0x1c0a46(0x183)](_0x5cc946=>_0x5cc946['id']===_0x59712e[_0x1c0a46(0x1f0)]+':'+_0x3723f9[_0x1c0a46(0x1d5)])??(_0x3723f9[_0x1c0a46(0x1c3)]===_0x1c0a46(0x1a1)&&_0x3723f9[_0x1c0a46(0x1d5)][_0x1c0a46(0x18b)](_0x1c0a46(0x1b8))&&_0x4e356c?.[_0x1c0a46(0x1c3)]===_0x1c0a46(0x1a1)&&_0x4e356c['id'][_0x1c0a46(0x18b)](_0x59712e[_0x1c0a46(0x1f0)]+_0x1c0a46(0x1be))&&activeConversationItem(_0x4e356c[_0x1c0a46(0x119)])?_0x4e356c:undefined),_0x9d42f3=_0x3723f9[_0x1c0a46(0x119)],_0x4d921e={'id':_0x59712e[_0x1c0a46(0x1f0)]+':'+_0x3723f9[_0x1c0a46(0x1d5)],'sessionId':_0x27c277[_0x1c0a46(0x17a)],'turnId':_0x3704cc['id'],'runId':_0x59712e[_0x1c0a46(0x1f0)],'parentItemId':null,'sourceSequence':_0x30adf0?.[_0x1c0a46(0x103)]??_0x59712e[_0x1c0a46(0x12c)],'revision':(_0x30adf0?.[_0x1c0a46(0x1c2)]??-(-0x5*0xfb+-0x935*0x3+0x2087))+(-0xa79*-0x2+-0xb20+0x7*-0x167),'kind':_0x3723f9[_0x1c0a46(0x1c3)],'status':_0x9d42f3,'payload':mergeConversationItemPayload(_0x30adf0?.[_0x1c0a46(0x11c)],_0x3723f9),'startedAt':_0x30adf0?.[_0x1c0a46(0x1fd)]??_0x59712e[_0x1c0a46(0x172)],'completedAt':completedConversationItem(_0x9d42f3)?_0x59712e[_0x1c0a46(0x172)]:null};return{..._0x3704cc,'status':terminal(_0x27c277[_0x1c0a46(0x119)])?_0x27c277[_0x1c0a46(0x119)]:_0x1c0a46(0x1a6),'startedAt':_0x3704cc[_0x1c0a46(0x1fd)]??_0x59712e[_0x1c0a46(0x172)],'items':_0x30adf0===undefined?[..._0xea0b0e,_0x4d921e]:_0xea0b0e[_0x1c0a46(0x115)](_0x1c5fbd=>_0x1c5fbd['id']===_0x30adf0['id']?_0x4d921e:_0x1c5fbd)};}if(_0x59712e[_0x1c0a46(0x16e)]===_0x1c0a46(0x148)||_0x59712e[_0x1c0a46(0x16e)]===_0x1c0a46(0x1e4))return{..._0x3704cc,'status':_0x1c0a46(0x1a6),'startedAt':_0x3704cc[_0x1c0a46(0x1fd)]??_0x59712e[_0x1c0a46(0x172)]};if(_0x59712e[_0x1c0a46(0x16e)]===_0x1c0a46(0x1d1)||_0x59712e[_0x1c0a46(0x16e)]===_0x1c0a46(0x13f)||_0x59712e[_0x1c0a46(0x16e)]===_0x1c0a46(0x1ed)){const _0x28ed5f=_0x59712e[_0x1c0a46(0x119)]??this[_0x1c0a46(0x1a7)](_0x59712e[_0x1c0a46(0x1f0)])[_0x1c0a46(0x119)];return{..._0x3704cc,'status':_0x28ed5f,'completedAt':_0x59712e[_0x1c0a46(0x172)],'items':_0x3704cc[_0x1c0a46(0x1e0)][_0x1c0a46(0x115)](_0x47ea86=>activeConversationItem(_0x47ea86[_0x1c0a46(0x119)])?{..._0x47ea86,'status':completedStatusForRun(_0x28ed5f),'completedAt':_0x59712e[_0x1c0a46(0x172)]}:_0x47ea86)};}return _0x3704cc;};if(_0x4a40f9===undefined)this[_0x10abfb(0x169)](_0x59712e[_0x10abfb(0x1f0)],_0x49023c);else{const _0x220f8a=this[_0x10abfb(0x161)][_0x10abfb(0x146)](_0x27c277[_0x10abfb(0x17a)])??[];this[_0x10abfb(0x161)][_0x10abfb(0x155)](_0x27c277[_0x10abfb(0x17a)],_0x220f8a[_0x10abfb(0x115)](_0x330b0b=>_0x330b0b['id']===_0x4a40f9?_0x49023c(_0x330b0b):_0x330b0b));}}}function isDefaultRunnerTitle(_0x55fd52){const _0x2e6e15=_0x11d1fb;return/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x2e6e15(0x19a)](_0x55fd52);}function terminal(_0x166524){const _0x488f02=_0x11d1fb;return[_0x488f02(0x157),_0x488f02(0x1b9),_0x488f02(0x104),_0x488f02(0x199),_0x488f02(0x189)][_0x488f02(0x19d)](_0x166524);}function terminalTurn(_0x32098d){const _0x2f5d17=_0x11d1fb;return[_0x2f5d17(0x157),_0x2f5d17(0x1b9),_0x2f5d17(0x104),_0x2f5d17(0x199),_0x2f5d17(0x189)][_0x2f5d17(0x19d)](_0x32098d);}function transitionAllowed(_0xd851f,_0x41f18a){return!terminal(_0xd851f)||_0xd851f===_0x41f18a;}function isRecord(_0x29c8f2){const _0x2c55bc=_0x11d1fb;return typeof _0x29c8f2===_0x2c55bc(0x17c)&&_0x29c8f2!==null;}function readableText(_0x316bfb){const _0x19aea3=_0x11d1fb;return isRecord(_0x316bfb)&&typeof _0x316bfb[_0x19aea3(0x150)]===_0x19aea3(0x1b5)?_0x316bfb[_0x19aea3(0x150)]:'';}function conversationItemFromEvent(_0x2d5809){const _0x2262ec=_0x11d1fb;if(isRecord(_0x2d5809[_0x2262ec(0x11c)])){const _0x4ecba1=_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x10e)];if(typeof _0x4ecba1===_0x2262ec(0x1b5)&&_0x4ecba1[_0x2262ec(0x12e)]>-0x2459+0x212c+0x10f*0x3){if(_0x2d5809[_0x2262ec(0x16e)]===_0x2262ec(0x1fe))return{'itemId':_0x2262ec(0x198)+_0x4ecba1,'kind':_0x2262ec(0x14d),'status':_0x2262ec(0x1fb),'payload':{'approvalId':_0x4ecba1,'approvalStatus':_0x2262ec(0x1fb),'approval':_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x11c)],'expiresAt':_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x166)]},'merge':![]};if(_0x2d5809[_0x2262ec(0x16e)]===_0x2262ec(0x129)){const _0x71a023=_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x15f)];if(_0x71a023===_0x2262ec(0x181)||_0x71a023===_0x2262ec(0x1a3))return{'itemId':_0x2262ec(0x198)+_0x4ecba1,'kind':_0x2262ec(0x14d),'status':_0x71a023===_0x2262ec(0x181)?_0x2262ec(0x126):_0x2262ec(0x1c5),'payload':{'approvalId':_0x4ecba1,'approvalStatus':_0x71a023},'merge':!![]};}if(_0x2d5809[_0x2262ec(0x16e)]===_0x2262ec(0x1b2))return{'itemId':_0x2262ec(0x198)+_0x4ecba1,'kind':_0x2262ec(0x14d),'status':_0x2262ec(0x104),'payload':{'approvalId':_0x4ecba1,'approvalStatus':_0x2262ec(0x165)},'merge':!![]};}}if(_0x2d5809[_0x2262ec(0x16e)]!==_0x2262ec(0x1c8)||!isRecord(_0x2d5809[_0x2262ec(0x11c)]))return undefined;const _0x1909f6=_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x1d5)],_0x47a40=_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x1c3)],_0xefe59a=_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x119)],_0x485085=_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x11c)];if(typeof _0x1909f6!==_0x2262ec(0x1b5)||_0x1909f6[_0x2262ec(0x12e)]===-0x5e4+-0x21c4+0x27a8||_0x1909f6[_0x2262ec(0x12e)]>0x1*0x13d+0xed8+-0x3*0x53f||typeof _0x47a40!==_0x2262ec(0x1b5)||!projectableConversationKind(_0x47a40)||typeof _0xefe59a!==_0x2262ec(0x1b5)||!projectableConversationStatus(_0xefe59a)||!isRecord(_0x485085))return undefined;const _0x301165=_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x187)];return{'itemId':_0x1909f6,'kind':_0x47a40,'status':_0xefe59a,'payload':_0x485085,'merge':_0x2d5809[_0x2262ec(0x11c)][_0x2262ec(0x12f)]===!![],..._0x301165===_0x2262ec(0x1bb)||_0x301165===_0x2262ec(0x1fc)||_0x301165===_0x2262ec(0xfd)?{'append':_0x301165}:{}};}function projectableConversationKind(_0x40f4a5){const _0x5d0bab=_0x11d1fb;return _0x40f4a5===_0x5d0bab(0x1a1)||_0x40f4a5===_0x5d0bab(0x1c6)||_0x40f4a5===_0x5d0bab(0x1ef)||_0x40f4a5===_0x5d0bab(0x1da)||_0x40f4a5===_0x5d0bab(0x14d)||_0x40f4a5===_0x5d0bab(0x216)||_0x40f4a5===_0x5d0bab(0x19f)||_0x40f4a5===_0x5d0bab(0x15d)||_0x40f4a5===_0x5d0bab(0x10b)||_0x40f4a5===_0x5d0bab(0x19c)||_0x40f4a5===_0x5d0bab(0x16c)||_0x40f4a5===_0x5d0bab(0x11d)||_0x40f4a5===_0x5d0bab(0x10a);}function projectableConversationStatus(_0x2f505e){const _0x2f843b=_0x11d1fb;return[_0x2f843b(0x1fb),_0x2f843b(0x132),_0x2f843b(0x126),_0x2f843b(0x1b9),_0x2f843b(0x1c5),_0x2f843b(0x104),_0x2f843b(0x199)][_0x2f843b(0x19d)](_0x2f505e);}function mergeConversationItemPayload(_0x132799,_0xefe73e){const _0x44cd16=_0x11d1fb,_0x45d46b=_0xefe73e[_0x44cd16(0x12f)]&&isRecord(_0x132799)?_0x132799:{},_0x46eeae={..._0x45d46b,..._0xefe73e[_0x44cd16(0x11c)]};if(_0xefe73e[_0x44cd16(0x187)]===_0x44cd16(0x1bb)){const _0x3aec5c=Array[_0x44cd16(0x1a2)](_0x45d46b[_0x44cd16(0x1bb)])?_0x45d46b[_0x44cd16(0x1bb)]:[],_0x25274e=Array[_0x44cd16(0x1a2)](_0xefe73e[_0x44cd16(0x11c)][_0x44cd16(0x1bb)])?_0xefe73e[_0x44cd16(0x11c)][_0x44cd16(0x1bb)]:[],_0x30c4b0=new Map();for(const _0x30be07 of[..._0x3aec5c,..._0x25274e]){if(!isRecord(_0x30be07)||typeof _0x30be07[_0x44cd16(0x196)]!==_0x44cd16(0x16a)||!Number[_0x44cd16(0x17d)](_0x30be07[_0x44cd16(0x196)])||_0x30be07[_0x44cd16(0x196)]<-0x4*0x902+0x4bd+-0x1f4b*-0x1||typeof _0x30be07[_0x44cd16(0x150)]!==_0x44cd16(0x1b5))continue;_0x30c4b0[_0x44cd16(0x155)](_0x30be07[_0x44cd16(0x196)],appendProjectionText(_0x30c4b0[_0x44cd16(0x146)](_0x30be07[_0x44cd16(0x196)])??'',_0x30be07[_0x44cd16(0x150)]));}_0x46eeae[_0x44cd16(0x1bb)]=[..._0x30c4b0][_0x44cd16(0x18e)](([_0x289eee],[_0xc36026])=>_0x289eee-_0xc36026)[_0x44cd16(0x115)](([_0xddb5f9,_0x3f152d])=>({'index':_0xddb5f9,'text':_0x3f152d}));}if(_0xefe73e[_0x44cd16(0x187)]===_0x44cd16(0x1fc)){const _0x462c9c=typeof _0x45d46b[_0x44cd16(0x1fc)]===_0x44cd16(0x1b5)?_0x45d46b[_0x44cd16(0x1fc)]:'',_0x5037e1=typeof _0xefe73e[_0x44cd16(0x11c)][_0x44cd16(0x1fc)]===_0x44cd16(0x1b5)?_0xefe73e[_0x44cd16(0x11c)][_0x44cd16(0x1fc)]:'';_0x46eeae[_0x44cd16(0x1fc)]=appendProjectionText(_0x462c9c,_0x5037e1);}if(_0xefe73e[_0x44cd16(0x187)]===_0x44cd16(0xfd)){const _0x49a455=typeof _0x45d46b[_0x44cd16(0xfd)]===_0x44cd16(0x1b5)?_0x45d46b[_0x44cd16(0xfd)]:'',_0xb482a1=typeof _0xefe73e[_0x44cd16(0x11c)][_0x44cd16(0xfd)]===_0x44cd16(0x1b5)?_0xefe73e[_0x44cd16(0x11c)][_0x44cd16(0xfd)]:'';_0x46eeae[_0x44cd16(0xfd)]=appendProjectionText(_0x49a455,_0xb482a1);}return _0x46eeae;}function appendProjectionText(_0x138805,_0x141f16){const _0x2d95db=_0x11d1fb,_0x289ae2=''+_0x138805+_0x141f16;return _0x289ae2[_0x2d95db(0x12e)]<=-0x1d3*0x1d+-0x1*0x49cf+0x6*0x1ba1?_0x289ae2:_0x289ae2[_0x2d95db(0x12b)](-0x21dc+0x1be+0x100f*0x2,-0x292+0xa71*-0x4+0x5365)+'…';}function activeConversationItem(_0x55695b){const _0x5a8e77=_0x11d1fb;return _0x55695b===_0x5a8e77(0x1fb)||_0x55695b===_0x5a8e77(0x132);}function completedConversationItem(_0x2c1441){return!activeConversationItem(_0x2c1441);}function _0x3cef(_0x22ecf2,_0x334e44){_0x22ecf2=_0x22ecf2-(0x1944+0x58f*-0x1+-0x12ba);const _0x30a3da=_0x12c5();let _0x7a2eb=_0x30a3da[_0x22ecf2];if(_0x3cef['OLzwpJ']===undefined){var _0xc0d7f6=function(_0x2a65c1){const _0x547f6b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x26c5dc='',_0x139def='';for(let _0x5ef558=-0xf43*-0x1+-0x192f+0x9ec,_0x384ba2,_0x16b8b9,_0x28c99b=-0x3c4*-0x7+0x1a2a*0x1+-0x3486;_0x16b8b9=_0x2a65c1['charAt'](_0x28c99b++);~_0x16b8b9&&(_0x384ba2=_0x5ef558%(0x10e0+-0x3d*-0x9f+-0x36bf)?_0x384ba2*(-0x1*0x59f+-0x1d*0xc3+0x1bf6)+_0x16b8b9:_0x16b8b9,_0x5ef558++%(-0x405*-0x2+0x932*-0x1+-0x1*-0x12c))?_0x26c5dc+=String['fromCharCode'](0x613*-0x1+0x160+0x5b2&_0x384ba2>>(-(-0xb14*0x1+-0x38f+0xea5)*_0x5ef558&0x84+0x1f4a+-0x1fc8)):0x852+0x1715+-0x1*0x1f67){_0x16b8b9=_0x547f6b['indexOf'](_0x16b8b9);}for(let _0x27c455=-0x1308+0x1f69+0x1*-0xc61,_0x58ec08=_0x26c5dc['length'];_0x27c455<_0x58ec08;_0x27c455++){_0x139def+='%'+('00'+_0x26c5dc['charCodeAt'](_0x27c455)['toString'](0x1*0x1aae+0x695*0x2+-0x27c8))['slice'](-(-0x57d+-0x1*-0x59f+0x20*-0x1));}return decodeURIComponent(_0x139def);};_0x3cef['SpWKHi']=_0xc0d7f6,_0x3cef['byBdQz']={},_0x3cef['OLzwpJ']=!![];}const _0x3db6db=_0x30a3da[-0x204f+-0x65*-0x47+0x44c];_0x3cef['OvmrbW']!==_0x3db6db&&(_0x3cef['byBdQz']={},_0x3cef['OvmrbW']=_0x3db6db);const _0x136711=_0x3cef['byBdQz'][_0x22ecf2];return _0x136711===undefined?(_0x7a2eb=_0x3cef['SpWKHi'](_0x7a2eb),_0x3cef['byBdQz'][_0x22ecf2]=_0x7a2eb):_0x7a2eb=_0x136711,_0x7a2eb;}function completedStatusForRun(_0x24f2c6){const _0x5fd73=_0x11d1fb;if(_0x24f2c6===_0x5fd73(0x199))return _0x5fd73(0x199);if(_0x24f2c6===_0x5fd73(0x104))return _0x5fd73(0x104);if(_0x24f2c6===_0x5fd73(0x1b9))return _0x5fd73(0x1b9);return _0x5fd73(0x126);}function _0x12c5(){const _0x1e6d72=['CNvUBMvYvgL0Bgu','y29TBwfUzf9LEgvJDxrPB24','z2v0qwDLBNrtzxnZAw9U','y3vYCMvUDev4zwn1DgLVBKLK','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','yMfZzty0','CxvLDwvjDgvTCW','AxrLBxm','tuvtu0fhrv9btfjfqurzx1fvrvvfra','CMvWBgfJzvnLC3nPB24','BwfYA2rVD24','CNvUlNj1BM5PBMC','qvvutW','ndu4ndfItLDMvgS','y29UDgvUDa','tufsx01btKfhruq','DMvYC2LVBG','zMLUze1LC3nHz2vsDw4','C2v0tMf0AxzLq29UDhjVBa','Dg9tDhjPBMC','CNvUlNjLAMvJDgvK','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','Dg9VBf9JywXS','CNvUswq','zgvJAwrLqxbWCM92ywW','zNjVBq','yNvTCff1zxvLvMvYC2LVBG','tuvtu0fhrv9btfjfqurzx1nuqvjuruq','zgvSzxrL','zgvSzxrLuxvLDwvjDgvT','zxHWAxjLrhvLqxbWCM92ywXZ','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','Chj1BMvszxrHAw5Lzev4zwn1DgLVBLr1CM5Z','zw1PDfj1BKnOyw5Nzwq','uevoreLorW','B3v0Chv0uhjLDMLLDW','C3rHCNrLzef0','yxbWCM92ywWUCMvXDwvZDa','zMLUzeXHC3q','zMfPBgvKtwvZC2fNzvn1yM1PC3nPB25Z','BgLZDenVBNzLCNnHDgLVBKL0zw1Z','z2v0qxbWCM92ywW','y3vYCMvUDfj1BK1LC3nHz2vuzxH0','y3jLyxrLvhvYBG','BgfZDfj1BLnLCxvLBMnL','DgL0Bgu','DgL0BgvtB3vYy2u','zwzMB3j0','y29TCgXLDgvKqxq','y3jLyxrLtwvZC2fNzvj1BG','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','ywrVChrsDw4','Bwf4','Aw5KzxHpzG','qvbquK9wquXFtK9ux0zpvu5e','BwLZC2LVBJO','z2v0v29YA3nWywnL','oda2ndm5n0HhqvfnyG','CxvLDwu','y2fUB25Py2fSuNvUswq','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','DxnLCL9PBNb1Df9Yzxf1zxn0','ndC5otDlvvnQBxy','BM93','u0vtu0LptL9jrf9dt05gteLdva','DhvYBKLK','uLvox1nuqvrfx0LovKfmsuq','B3v0Chv0u3vTBwfYEq','v09ss1nqqunfx05pvf9gt1vora','y3jLyxrLqwDLBNrtzxnZAw9U','CNvUDgLTztO','C29Tzq','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','C291CMnLu2vXDwvUy2u','q0foq0vmteve','yxr0ywnOBwvUDhm','Bw9KzwW','ntiXntDdBNHpAKO','u0vtu0LptL9usvrmrv9jtLzbteLe','Cgf1C2vKuxvLDwvZ','zxjYB3i','zMLSzv9JAgfUz2u','C2L6zq','BgvHC2vZ','yxbWCM92ywXjza','ufjfuefssu5h','ChjVAMvJDev2zw50','DMfSDwvZ','u0vtu0LptL9ot1rFrK9vtKq','qvbquK9wquXFrvHqsvjfra','BM9KzuLK','BwfW','CNvU','ywnJzxnZ','DxbKyxrLuhjLCgfYAw5NvhvYBKf0DgfJAg1LBNrZ','C3rHDhvZ','BgLZDefNzw50u2vZC2LVBNm','u1rbuLrjtKC','Cgf5Bg9Hza','D2fYBMLUzW','u0vtu0LptL9fwfrfuK5btf9jrf9jtLzbteLe','yxbWzw5KuNvUrxzLBNq','C2nVCgu','ywrK','DxbKyxrLuxvLDwvjDgvT','y3vYC29Y','y29TBwfUza','C2vZC2LVBNm','q09nueXfveve','BMv4Da','ChjVAMvJDe1LC3nHz2vbDhrHy2HTzw50CW','yxbWCM92ywWUzgvJAwrLza','D29YA3nWywnLswq','C2XPy2u','C2vXDwvUy2u','DxbKyxrLqwDLBNrtzxnZAw9Uq29UzMLNDxjHDgLVBG','BgvUz3rO','BwvYz2u','CxvLDwvwzxjZAw9UCW','u0vtu0LptL9dsefotKvmx1rps0vox0LovKfmsuq','su5Fufjpr1jfu1m','v09ss1nqqunfx0jvu1K','uLvox1rvuK5FtK9ux1jfqurz','DMfSDwu','AgfZ','yMfZzty0DxjS','uLvox0fmuKvbrfLFqunusvzf','zMXHDe1HCa','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','uLvox09xtKvex0jzx0fot1rirvjFvvnfuG','CMvTB3zLqwDLBNrtzxnZAw9U','zxHWAxjLqxbWCM92ywW','qvbquK9wquXFquXsrufewv9fweLtvfm','CNvUlMzHAwXLza','DhjPBq','uvvfvuvFvKvsu0LptL9dt05gteLdva','BgLZDe5VBNrLCM1PBMfSuNvUCW','rvHurvjoquW','Aw1Hz2uV','DhjHBNnPDgLVBLj1BG','z2v0','u0vtu0LptL9bq1rjvKu','CNvUlNn0yxj0zwq','C2v0rxH0zxjUywXtzxnZAw9Uswq','BgLZDefWChjVDMfSCW','A2v5CW','DgvYBwLUywXsDw5jzhm','yxbWCM92ywXFCMvXDwvZDa','y3vYCMvUDfr1CM5gB3jsDw4','C2v0q2HHBM5LBfrVA2vU','Dgv4Da','CxvLDwvKsxrLBxm','qunusvzf','DxbKyxrLu2vZC2LVBK1LDgfKyxrH','uLvox1rvuK5FtK9ux0zpvu5e','C2v0','tufyx0nptvbmrvrfrf9uvvjou19qrvjFu0vtu0LptG','u1vdq0vfreve','zxH0zxjUywXtzxnZAw9Uswq','BgfZDefJDgL2Axr5qxq','rvzftLrFu0vrvuvoq0vFr0fq','CNvUBMvY','z2v0uNvU','Dg9KB19SAxn0','CMvZDw1Lu2vZC2LVBLf1zxvL','zgvJAxnPB24','z2v0uxvLDwvjDgvT','DhvYBNm','CMvWBgfJzq','CMvVCMrLCLnLC3nPB25rDwv1zq','y2XPzw50twvZC2fNzuLK','rvHqsvjfra','zxHWAxjLC0f0','BgLZDfj1BNngB3jtzxnZAw9U','uLvotKvs','DxbKyxrLq3vYCMvUDfr1CM5gB3jsDw4','BNvTyMvY','CgLUBMvK','Dw5RBM93BG','DxnLCL9TzxnZywDL','zxzLBNruExbL','y3jLyxrLqxbWCM92ywW','mtHkBfLQAe8','CgfYC2u','y3jLyxrLzef0','ywn0AxzLu2vZC2LVBLj1BG','uLvox1rfuK1jtKfm','uvvfvuvFsvrftv9jtLzbteLe','BwLU','BMf0AxzLq29UDhjVBa','C2vZC2LVBLf1zxvL','Dgv4Dc5KzwX0yq','C2vZC2LVBKLK','qvbquK9wquXFtK9ux0vyueLsruq','B2jQzwn0','AxnjBNrLz2vY','mtjUufrgtK0','zMLSDgvY','DxnLCKL0zw1jza','qvbquK9wruq','yNL0zuXLBMD0Aa','zMLUza','CMvXDwLYzufWChjVDMfS','Aw5PDgLHDgvKqNLvC2vYswq','qundrvburuq','yxbWzw5K','zxHLy3v0Aw9UCW','te9tva','zMLUzefNzw50u2vZC2LVBKj5rxH0zxjUywXtzxnZAw9U','C3rHCNrZv2L0Aa','CgLUBMvKqxq','q1vtve9n','C29YDa','ChjPB3jPDgL6zvf1zxvLsxrLBq','uLvox05pvf9gt1vora','DhvYBG','CMvJB3jKq29TBwfUzev4zwn1DgLVBG','mtyYuw1YBwzk','odiXodrcsKPYBu4','DxbKyxrLvhvYBKzVCLj1BG','Aw5KzxG','CMvTB3zLvgvYBwLUywXsDw4','yxbWCM92ywW6','su5urvjsvvburuq','DgvZDa','Cgf1C2vtzxnZAw9UuxvLDwu','y29UDgv4Df9JB21Wywn0Aw9U','Aw5JBhvKzxm','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','CgXHBG','yxbWCM92ywXZ','yxnZAxn0yw50x21LC3nHz2u','AxnbCNjHEq','uKvkrunuruq','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','zMfPBgvK','uLvotKLorW','CMvXDwLYzvj1BG','CMvJB25JAwXLuNvU','CMvTB3zLv29YA3nWywnL','CNvUCW','mZG5mhbYv0LgsG','qvbquK9wquXFquXsrufewv9erunjreve','CxvLDwvjDgvTswq','CNvUu2vXDwvUy2vZ','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','y3jLyxrLsxrLBu9UBhLuDxjU','B25sDw5dAgfUz2vK','yxbWCM92ywWUzxHWAxjLza','uLvox0vyrunvveLptL9ot1rFq1vsuKvova','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','C3rYAw5N','y3DK','mZbgq0DutMu','y29KzxG6','rKfjteve','DxrMoa','C2vJDgLVBNm','BgLTAxq','uLvox0fdveLwrq','oMfZC2LZDgfUDdO','AgfZqwn0AxzLv29YA3nWywnLtgvHC2u','zMLUzeXHC3rjBMrLEa','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','CMv2AxnPB24','A2LUza','y29TCgXLDgvuDxjU','revdteLoruq','CMvHC29UAw5Nx3n1Bw1HCNK','zMLUAxnOuNvU','y29UDMvYC2f0Aw9UlML0zw0','zMLUze1LC3nHz2vtDwjTAxnZAw9U','mZe2AKHZy25l','CMvXDwLYzvnLC3nPB24','CMv0ywLUzwrfEgvJDxrPB25uDxjUCW','y3jLyxrLuxvLDwvjDgvT','y3vZDg9TvgL0Bgu','CMvXDwLYzvf1zxvLsxrLBq','BwvZC2fNzvn1yM1PC3nPB25Z','CNvUlMnVBxbSzxrLza','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','C3rYAw5NAwz5','mZiWnZiWrKfxEfrL','AxrLBuLK','Aw1Hz2vjBMrLEa','y2XHAw1ozxH0uxvLDwvjDgvT','y3jLyxrLrxHLy3v0Aw9U'];_0x12c5=function(){return _0x1e6d72;};return _0x12c5();}function executionStatusForRun(_0x4a8fb4){const _0x5384bf=_0x11d1fb;if(_0x4a8fb4===_0x5384bf(0x1b9))return _0x5384bf(0x1b9);if(_0x4a8fb4===_0x5384bf(0x199)||_0x4a8fb4===_0x5384bf(0x104))return _0x5384bf(0x199);if(_0x4a8fb4===_0x5384bf(0x157))return _0x5384bf(0x157);if(_0x4a8fb4===_0x5384bf(0x1a6))return _0x5384bf(0x1a6);return _0x5384bf(0x11b);}function terminalExecution(_0xb7746c){const _0xb9a3d6=_0x11d1fb;return _0xb7746c===_0xb9a3d6(0x157)||_0xb7746c===_0xb9a3d6(0x1b9)||_0xb7746c===_0xb9a3d6(0x199);}function encodeCursor(_0x5ba550,_0x2a5b24){const _0x505d51=_0x11d1fb;return Buffer[_0x505d51(0x1f2)](JSON[_0x505d51(0x1d3)]({'scope':_0x5ba550,'value':_0x2a5b24}))[_0x505d51(0x1ec)](_0x505d51(0x137));}function decodeCursor(_0x665352,_0x11867c){const _0x576d4f=_0x11d1fb;if(_0x665352===undefined)return-0x5b*0x4+0x31d*0xa+-0x1db6;try{const _0x2454b7=JSON[_0x576d4f(0x171)](Buffer[_0x576d4f(0x1f2)](_0x665352,_0x576d4f(0x137))[_0x576d4f(0x1ec)](_0x576d4f(0x1ba)));return _0x2454b7[_0x576d4f(0x120)]===_0x11867c&&Number[_0x576d4f(0x17d)](_0x2454b7[_0x576d4f(0x135)])&&_0x2454b7[_0x576d4f(0x135)]>=-0x2*-0x55e+-0x2532+0x2*0xd3b?_0x2454b7[_0x576d4f(0x135)]:-0x3*0x99+-0xbc7+0xd92*0x1;}catch{return-0x12f3+0x1f3*-0x7+-0x12a*-0x1c;}}