@myagentroam/node 0.9.51 → 0.9.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connector.js +1 -1
- package/dist/runner/abstract-runner.js +1 -1
- package/dist/runner/mar-agent-runner.js +1 -1
- package/dist/runtime-state.js +1 -1
- package/dist/service/hosted-conversation-node-service.js +1 -1
- package/dist/service/hosted-conversation-store.js +1 -1
- package/dist/service/native-session-watch-service.js +1 -1
- package/dist/service/session-catalog-service.js +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0xb902a4=_0x266e;function _0x467a(){const _0x1af99e=['Ag9TzurPCMvJDg9YEq','zM9YA05HDgL2zq','ntGZmenAAg5stG','tufsx01btKfhruq','y3vYC29Y','zgf0yujHC2u2na','yxzHAwXHyMXL','nZiXmKLqvfDJCW','mtq3oduZm1PwBeT3rW','l21PC3nPB24','DhvYBI5ZDgfYDa','DhvYBI5XDwv1zq','ChjVAMvJDgLVBKzVCG','Dg9szxzLCNnLza','su1nrurjqvrfx0fdveLptG','C2vZC2LVBKLK','zgvMyxvSDfjLyxnVBMLUz0vMzM9YDa','quXmx1DpuKTtuefdrvm','mZe1nuTXzhvmuq','BgLTAxq','yNL0zvnPEMu','zMXHDa','uLvotKvsx1voqvzbsuXbqKXf','zw5ZDxjLq29UzMLNDxjHDgLVBG','CgfYC2u','C2vZC2LVBI5Yzw5HBwu','AgLZDg9YEq','tufoquDfrf9bq1rjvKu','ywnJzxnZt3b0Aw9UCW','C2fMzvbHCNnL','rNvSBcbHy2nLC3m','tKfusvzf','AxnbCNjHEq','mwHtugvUzq','y3jLyxrLuhjVAMvJDgLVBG','q29TCgfJDcb0AguGy3vYCMvUDcbZzxnZAw9UignVBNrLEhqU','BgLZDa','ChvZAa','y3vYCMvUDfjLC3vTzwq','BwfYlwfNzw50','CMvTB3zLtMf0AxzL','C3vIywDLBNq','D29YA3nWywnLCW','BMfTzq','zw5HyMXLza','y29UDMvYC2f0Aw9U','DhvYBI5PBNrLCNj1Chq','zMXHDe1HCa','BwfW','B2zMAwnPywW','yxbWCM92ywWUCMvZCg9Uza','Aw5WDxruB2TLBNm','BwLTzvr5Cgu','CMvNAxn0zxjhzw5LCMf0zwrjBwfNzxm','CMvHze1HBMfNzwrsDw5UzxjuAxrSzq','BwnW','yxbWCM92ywW','BMf0AxzLsw1Hz2vsB290CW','DxnLCG','CNvUBMvY','C2vZC2LVBNm','C3vJy2vZCW','C2vZC2LVBI5WAw4','C3rVCa','C2v0r2vUzxjHDgvKsw1Hz2vszwDPC3rYyxi','vg9Nz2XLignVBgXHyM9YyxrPDMuGugXHBIbnB2rLlG','zM9YAW','B24TCMvXDwvZDa','DhvYBKLK','zw50CMLLCW','zNvSBc1Hy2nLC3m','Aw5JBhvKzxm','C2XPy2u','CMvHzeLTywDL','y29UDgv4DfDPBMrVD1rVA2vUCW','CNvUlMnHBMnLBa','twLZC2LVBG','y2XVC2u','u0vtu0LptL9srvDjtKrFvu5bvKfjtefcteu','BwfYqwDLBNq','C29Tzq','BgfZDefJDgL2Axr5qxq','mJrmEMLKuw8','uKvtvu1bqKXf','surmrq','C3vWCg9YDhndB25MAwD1CMf0Aw9U','mJGZntGYofbHr2TyuW','BgvUz3rO','tufoquDfra','CMvZDw1LrxH0zxjUywW','rw50zxiGCgvYC2LZDgvUDcbnAxnZAw9Uig1VzguU','zMLUza','y2f0y2G','CMvNAxn0zxjjBNb1DeLTywDLCW','zwzMB3j0','zxzLBNq','qxnRigjLzM9Yzsb0B29SCYb3AxrOihnPzguGzwzMzwn0CY4GvgHPCYbPCYbUB3qGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','y3DK','D29YA3nWywnL','t24TCMvXDwvZDa','y29TCgfJDa','C2vXDwvUy2u','y29UDgv4DfvZywDL','zxzLBNrZlMXPDMu','C3vWCg9YDgvKrwzMB3j0CW','y29TBwfUzfn0yxrLCW','ve9hr0Xf','AgLZDg9YEs5YzwfK','Bw9KzwXZ','mZKWnZyYu1Dbv2LX','zgvMyxvSDenVBMzPz3vYyxrPB24','CMvHze9MzMLJAwfSq29UDMvYC2f0Aw9U','BMf0AxzLq29UDhjVBa','Cgf0Aa','CgXHBG','DxnLCI1PBNb1Dc5YzxnWB25K','Bw9KzwXjza','BwfUywDLzefJDgL2zq','ChjVzMLSzq','CMvHzgfIBgu','y29UzMLNDxjLtw9KzwXZ','ChjVzMLSzuzVCLzHBgLKyxrPB24','BwLZC2LVBG','mtq2otDvvwj2vhy','ChjLC2vUDfnLC3nPB24','otGYmZC3mfvfs25UuG','BMv4Den1CNnVCG','C2L6zq','zMLSDgvY','zgLZy292zxj5u2nVCgu','C2vZC2LVBI5Yzw1VDMu','CMvZB2X2zq','mtK3odm5nerhrwTADW','CMvTzw1Izxjnyw5Hz2vKtMf0AxzL','Bw9KzwW','Aw1Hz2vZ','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','ywrK','tufsx1jvtLrjtuu','zxH0zxjUywXtzxnZAw9Uswq','DxnLCI1PBNb1Da','uLvotKvsx1jfu1vnrv9gquLmruq','DgL0Bgu','ChjVBw90zq','u2TPCcbbz2vUDcbHChbYB3zHBhmUieHVC3qGDMfSAwrHDgLVBIbYzw1HAw5ZigfJDgL2zsbHBMqGBM8GqwDLBNqGC2fUzgjVEcbPCYbWCM92AwrLzc4','C2vZC2LVBI5YzxDPBMq','y29Kzq','CMvHzenVBNrLEhrvC2fNzq','ywnJzxnZ','vu5bvKfjtefcteu','zgvSzxrL','zgvMyxvSDevMzM9YDa','zgLZy292zxjtzxnZAw9UCW','CMvHC29UAw5NrwzMB3j0CW','y3jLyxrL','CMvHzenVBNzLCNnHDgLVBKHPC3rVCNK','A2LUza'];_0x467a=function(){return _0x1af99e;};return _0x467a();}(function(_0x32237c,_0x48351b){const _0x3ce488=_0x266e,_0x3e36ec=_0x32237c();while(!![]){try{const _0xc0884b=parseInt(_0x3ce488(0x1ce))/(0x10a8+0x1e2f+-0x2ed6)*(parseInt(_0x3ce488(0x194))/(-0x1e34+0x1a4+0x1c92))+parseInt(_0x3ce488(0x21a))/(0xb9b*0x1+0x355*0x1+-0xeed)+parseInt(_0x3ce488(0x203))/(-0x1137+-0x13bb*0x1+0x24f6)+-parseInt(_0x3ce488(0x1bf))/(0x13b9+-0x1*0x5b4+0x8*-0x1c0)*(parseInt(_0x3ce488(0x1b4))/(0x4*0x172+-0x1e61*-0x1+-0x1d*0x13f))+-parseInt(_0x3ce488(0x1b5))/(0x9*0xf8+0x17*0x99+0x2*-0xb38)*(parseInt(_0x3ce488(0x1ff))/(0x3*0xa3f+0x1dda+-0x3c8f*0x1))+parseInt(_0x3ce488(0x228))/(-0x201d+0x2a0+0x1d86)*(parseInt(_0x3ce488(0x1af))/(0x1*-0x5ad+0x1bf2*0x1+-0x163b))+-parseInt(_0x3ce488(0x18d))/(0x453*-0x7+0x8fd+0x1553);if(_0xc0884b===_0x48351b)break;else _0x3e36ec['push'](_0x3e36ec['shift']());}catch(_0x3a1910){_0x3e36ec['push'](_0x3e36ec['shift']());}}}(_0x467a,0xca38b+-0xd8185+0x86c94));import{marAgentNodeModelSummarySchema,resolveMarAgentDefaultReasoningEffort}from'@myagentroam/protocol';import{MarAgentError,openMarAgentSessionCatalog}from'@myagentroam/agent';import{homedir}from'node:os';import{resolve}from'node:path';import{AbstractRunner}from'./abstract-runner.js';import{marAgentGeneratedImageSources,marAgentGeneratedImagesDirectory}from'./mar-agent/generated-images.js';import{projectMarAgentHistory}from'./mar-agent/history-projection.js';function _0x266e(_0x2f623d,_0x53d873){_0x2f623d=_0x2f623d-(-0x7*-0x1a4+-0x1*-0x10eb+-0x1adb);const _0x556483=_0x467a();let _0x52fc90=_0x556483[_0x2f623d];if(_0x266e['effYMN']===undefined){var _0x22f116=function(_0x320529){const _0x2788ce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x46a7d8='',_0x527e46='';for(let _0x416a3c=-0xa2*-0x3+0x17d0+0x892*-0x3,_0x445401,_0x3eef13,_0x34a771=0x54*0x77+-0x17f+-0x258d*0x1;_0x3eef13=_0x320529['charAt'](_0x34a771++);~_0x3eef13&&(_0x445401=_0x416a3c%(0x49*0x50+0x133+-0x17ff)?_0x445401*(0x883+-0x1*-0x1e97+-0x2*0x136d)+_0x3eef13:_0x3eef13,_0x416a3c++%(0x701*-0x2+-0x446*0x8+0x3036))?_0x46a7d8+=String['fromCharCode'](0x0+0x11e1*0x1+-0x10e2*0x1&_0x445401>>(-(-0x47e*-0x7+-0xbdf+0x1391*-0x1)*_0x416a3c&0x1*0x1336+0x30c+-0x1*0x163c)):0x22*0x31+-0x1ea3+0x57*0x47){_0x3eef13=_0x2788ce['indexOf'](_0x3eef13);}for(let _0x4322d9=-0x3b0*0x3+0x1*0x6d9+0x437,_0x524e2c=_0x46a7d8['length'];_0x4322d9<_0x524e2c;_0x4322d9++){_0x527e46+='%'+('00'+_0x46a7d8['charCodeAt'](_0x4322d9)['toString'](-0x1222+0x24a5+-0x1273*0x1))['slice'](-(0x1a9*-0x5+0xf14+-0x6c5));}return decodeURIComponent(_0x527e46);};_0x266e['tvxrRQ']=_0x22f116,_0x266e['dAdFOI']={},_0x266e['effYMN']=!![];}const _0x1b3bf7=_0x556483[-0x55*0x2b+-0xfa0+0x1de7];_0x266e['YInDHe']!==_0x1b3bf7&&(_0x266e['dAdFOI']={},_0x266e['YInDHe']=_0x1b3bf7);const _0x4b09b7=_0x266e['dAdFOI'][_0x2f623d];return _0x4b09b7===undefined?(_0x52fc90=_0x266e['tvxrRQ'](_0x52fc90),_0x266e['dAdFOI'][_0x2f623d]=_0x52fc90):_0x52fc90=_0x4b09b7,_0x52fc90;}export class MarAgentRunner extends AbstractRunner{[_0xb902a4(0x1ad)];[_0xb902a4(0x1d8)]=_0xb902a4(0x1d4);[_0xb902a4(0x191)]=_0xb902a4(0x1be);#models=[];#releaseSessionResources;#generatedImageRegistrar;constructor(_0x398dc2=homedir()){const _0x279cf3=_0xb902a4;super(),this[_0x279cf3(0x1ad)]=_0x398dc2;}[_0xb902a4(0x225)](_0x393485){const _0x54e6d6=_0xb902a4;this.#models=Array[_0x54e6d6(0x1cd)](_0x393485)?_0x393485[_0x54e6d6(0x190)](isModelSummary):[];}[_0xb902a4(0x198)](_0x2b8c8e){this.#releaseSessionResources=_0x2b8c8e;}[_0xb902a4(0x1ed)](_0x198f14){this.#generatedImageRegistrar=_0x198f14;}[_0xb902a4(0x1e2)](_0x5c6a0a,_0xa95dd3,_0x1d80e1){const _0x3af5f0=_0xb902a4;if(_0x5c6a0a[_0x3af5f0(0x1e8)]!==this[_0x3af5f0(0x1d8)]||_0x5c6a0a[_0x3af5f0(0x19b)]===null||_0x5c6a0a[_0x3af5f0(0x19b)]!==_0xa95dd3)return[];const _0x312e30=marAgentGeneratedImageSources(this[_0x3af5f0(0x1ad)],_0xa95dd3,_0x1d80e1);return _0x312e30[_0x3af5f0(0x204)]===0xad9*-0x3+-0x1*0x149e+0x1f*0x1b7?[]:this.#generatedImageRegistrar?.(_0x5c6a0a,_0x312e30)??[];}[_0xb902a4(0x20a)](_0xa24d9c,_0x258e75){const _0x2b56e5=_0xb902a4;if(_0xa24d9c[_0x2b56e5(0x1e8)]!==this[_0x2b56e5(0x1d8)]||_0xa24d9c[_0x2b56e5(0x19b)]===null||_0xa24d9c[_0x2b56e5(0x19b)]!==_0x258e75[_0x2b56e5(0x1bc)]||_0x258e75[_0x2b56e5(0x197)]===undefined||_0x258e75[_0x2b56e5(0x197)][_0x2b56e5(0x204)]===-0x484+0x1*0x1bbf+0x13*-0x139)return[];const _0x4217a1=_0x258e75[_0x2b56e5(0x197)][_0x2b56e5(0x1dc)]((_0x1347b9,_0x2952bd)=>_0x1347b9[_0x2b56e5(0x224)]?[{'image':_0x1347b9,'imageIndex':_0x2952bd}]:[]);if(_0x4217a1[_0x2b56e5(0x204)]===0x231*-0xb+-0x1e24+-0x3*-0x1215)return[];const _0x5f2a32=this.#generatedImageRegistrar?.(_0xa24d9c,_0x4217a1[_0x2b56e5(0x1dd)](({image:_0x1e43c4,imageIndex:_0x1c9e8f})=>({'name':_0x1e43c4[_0x2b56e5(0x1d8)],'mime':_0x1e43c4[_0x2b56e5(0x1e1)],'byteSize':_0x1e43c4[_0x2b56e5(0x1c1)],'sourceId':_0x258e75[_0x2b56e5(0x1bc)]+':'+_0x258e75[_0x2b56e5(0x212)]+':'+_0x1c9e8f,'read':()=>this.#readInputImage(_0x258e75[_0x2b56e5(0x1bc)],_0x258e75[_0x2b56e5(0x212)],_0x1c9e8f,{'name':_0x1e43c4[_0x2b56e5(0x1d8)],'mimeType':_0x1e43c4[_0x2b56e5(0x1e1)],'byteSize':_0x1e43c4[_0x2b56e5(0x1c1)]})})))??[];let _0x53fd44=0xd30+-0xe46+0x116*0x1;return _0x258e75[_0x2b56e5(0x197)][_0x2b56e5(0x1dd)](_0x53c727=>_0x53c727[_0x2b56e5(0x224)]?_0x5f2a32[_0x53fd44++]:undefined);}[_0xb902a4(0x223)](_0x16993e){const _0x1cebd9=_0xb902a4;if(!this[_0x1cebd9(0x1b3)](_0x16993e))return undefined;return this[_0x1cebd9(0x226)]();}[_0xb902a4(0x1b3)](_0x2dba82){const _0x29eb6b=_0xb902a4;return _0x2dba82[_0x29eb6b(0x1fc)]?.[_0x29eb6b(0x1b3)]===!![];}[_0xb902a4(0x226)](){const _0x5eb051=_0xb902a4,_0xc06ba5=this.#models[_0x5eb051(0x190)](_0x2f623d=>_0x2f623d[_0x5eb051(0x1d9)]);return{'runner':_0x5eb051(0x1d4),'models':_0xc06ba5[_0x5eb051(0x1dd)]((_0x53d873,_0x556483)=>({'id':_0x53d873['id'],'label':_0x53d873[_0x5eb051(0x1d8)],'supportedEfforts':[..._0x53d873[_0x5eb051(0x1a9)]],'defaultEffort':resolveMarAgentDefaultReasoningEffort(_0x53d873[_0x5eb051(0x1bd)],_0x53d873[_0x5eb051(0x1a9)]),..._0x556483===0xb1d+-0x1779+0xe*0xe2?{'isDefault':!![]}:{}})),'accessOptions':[{'id':_0x5eb051(0x1f3),'label':_0x5eb051(0x1cb),'description':_0x5eb051(0x1a0)},{'id':_0x5eb051(0x1f0),'label':_0x5eb051(0x210),'description':_0x5eb051(0x20d)}],'commands':[...[_0x5eb051(0x211),_0x5eb051(0x21f)][_0x5eb051(0x1dd)](_0x52fc90=>({'id':_0x52fc90,'runner':_0x5eb051(0x1d4),'label':'/'+_0x52fc90,'description':_0x52fc90===_0x5eb051(0x211)?_0x5eb051(0x1d0):_0x5eb051(0x1ee),'inputHint':'/'+_0x52fc90,'source':_0x5eb051(0x19a),'interaction':_0x52fc90===_0x5eb051(0x21f)?_0x5eb051(0x217):_0x5eb051(0x1bb),'available':!![],'reasonCode':null})),{'id':_0x5eb051(0x227),'runner':_0x5eb051(0x1d4),'label':_0x5eb051(0x1b6),'stateLabel':_0x5eb051(0x1f9),'description':_0x5eb051(0x207),'inputHint':_0x5eb051(0x1b6),'source':_0x5eb051(0x19a),'interaction':_0x5eb051(0x217),'available':!![],'reasonCode':null}],'capabilities':[_0x5eb051(0x1b7),_0x5eb051(0x1da),_0x5eb051(0x1e5),_0x5eb051(0x19c),_0x5eb051(0x21f),_0x5eb051(0x211),_0x5eb051(0x1e4),_0x5eb051(0x1d6)]};}[_0xb902a4(0x202)](_0x22f116){const _0x20e5aa=_0xb902a4;if(_0x22f116[_0x20e5aa(0x1e8)]!==this[_0x20e5aa(0x1d8)])return![];const _0x1b3bf7=this[_0x20e5aa(0x226)](),_0x4b09b7=_0x1b3bf7[_0x20e5aa(0x219)][_0x20e5aa(0x208)](_0x320529=>_0x320529['id']===_0x22f116[_0x20e5aa(0x196)]);return _0x4b09b7!==undefined&&(_0x4b09b7[_0x20e5aa(0x215)][_0x20e5aa(0x204)]===-0x28b*-0x4+-0xb*-0x346+-0x1717*0x2?_0x22f116[_0x20e5aa(0x20b)]===_0x4b09b7[_0x20e5aa(0x1a7)]:_0x4b09b7[_0x20e5aa(0x215)][_0x20e5aa(0x1f4)](_0x22f116[_0x20e5aa(0x20b)]))&&_0x1b3bf7[_0x20e5aa(0x1c9)][_0x20e5aa(0x1fd)](_0x2788ce=>_0x2788ce['id']===_0x22f116[_0x20e5aa(0x1a4)]);}[_0xb902a4(0x21b)](){const _0x278886=_0xb902a4,_0x46a7d8=this[_0x278886(0x226)](),_0x527e46=_0x46a7d8[_0x278886(0x219)][0x9*-0x293+0x3*0x697+-0x3*-0x122];return{'runner':_0x278886(0x1d4),'model':_0x527e46?.['id']??'','effort':_0x527e46?.[_0x278886(0x1a7)]??'','access':_0x278886(0x1f3)};}[_0xb902a4(0x18c)](_0x416a3c,_0x445401,_0x3eef13){const _0x4365a0=_0xb902a4;if(!this[_0x4365a0(0x1b3)](_0x445401))return{'activity':_0x4365a0(0x1a5),'control':{'level':_0x4365a0(0x1a5),'capabilities':[]},'runtime':{'level':_0x4365a0(0x1a5),'capabilities':[],'reasonCode':_0x4365a0(0x1c3)},'commandStates':_0x3eef13[_0x4365a0(0x216)]};const _0x34a771=_0x416a3c[_0x4365a0(0x21d)]===_0x4365a0(0x1b0),_0x4322d9=_0x3eef13[_0x4365a0(0x222)]?_0x4365a0(0x1c8):_0x4365a0(0x201),_0x524e2c=[_0x4365a0(0x218),_0x4365a0(0x214),_0x4365a0(0x1b7),_0x4365a0(0x1b8),_0x4365a0(0x1db),_0x4365a0(0x1f8),_0x4365a0(0x1df),_0x4365a0(0x220),_0x4365a0(0x1c6),_0x4365a0(0x192),_0x4365a0(0x1eb),..._0x416a3c[_0x4365a0(0x19b)]===null?[]:[_0x4365a0(0x1a1)]];return{'activity':_0x4322d9,'control':{'level':_0x34a771?_0x4365a0(0x205):_0x4365a0(0x200),'capabilities':[_0x4365a0(0x218),_0x4365a0(0x214),_0x4365a0(0x1b7),_0x4365a0(0x1db)]},'runtime':{'level':_0x34a771?_0x4365a0(0x205):_0x4365a0(0x200),'capabilities':_0x524e2c,'reasonCode':null},'commandStates':_0x3eef13[_0x4365a0(0x216)]};}[_0xb902a4(0x206)](_0x271b15,_0xa2522c){const _0x3cbdfe=_0xb902a4;if(_0x271b15[_0x3cbdfe(0x1e8)]!==this[_0x3cbdfe(0x1d8)]||_0x271b15[_0x3cbdfe(0x19b)]===null||!_0xa2522c[_0x3cbdfe(0x1b3)])return Promise[_0x3cbdfe(0x193)]({'failureCode':_0x3cbdfe(0x1c3)});const _0x24b059=_0xa2522c[_0x3cbdfe(0x1d3)](_0x271b15['id']);if(_0x24b059)return Promise[_0x3cbdfe(0x193)]({'session':_0xa2522c[_0x3cbdfe(0x1c4)](_0x24b059),'activity':_0x3cbdfe(0x201)});const _0x258e70=_0xa2522c[_0x3cbdfe(0x1b9)](_0x271b15),_0x4f84fd=_0x258e70?_0xa2522c[_0x3cbdfe(0x19f)](_0x258e70['id']):_0xa2522c[_0x3cbdfe(0x1aa)](_0x271b15);if(!_0x4f84fd)return Promise[_0x3cbdfe(0x193)]({'failureCode':_0x3cbdfe(0x19d)});return _0xa2522c[_0x3cbdfe(0x195)](_0x271b15[_0x3cbdfe(0x19b)],_0x4f84fd['id']),Promise[_0x3cbdfe(0x193)]({'session':_0xa2522c[_0x3cbdfe(0x1c4)](_0x4f84fd),'activity':_0x3cbdfe(0x201)});}async[_0xb902a4(0x1a8)](_0x4b5ab3,_0x4481f3){const _0x5c33de=_0xb902a4;let _0x3f4b43;try{_0x3f4b43=await openMarAgentSessionCatalog({'homeDirectory':this[_0x5c33de(0x1ad)]});const _0x2d7bb7=await _0x3f4b43[_0x5c33de(0x1d1)]({'limit':0xc8}),_0x58bd78=_0x4481f3?[_0x4481f3]:_0x4b5ab3[_0x5c33de(0x1d7)];return _0x2d7bb7[_0x5c33de(0x1e9)][_0x5c33de(0x1dc)](_0x404ed7=>{const _0x56b057=_0x5c33de,_0x3bce12=_0x58bd78[_0x56b057(0x208)](_0x219aaf=>resolve(_0x219aaf[_0x56b057(0x21e)])===resolve(_0x404ed7[_0x56b057(0x20f)]));if(!_0x3bce12)return[];return[_0x4b5ab3[_0x56b057(0x1cf)]({'workspace':_0x3bce12,'runner':this[_0x56b057(0x1d8)],'externalSessionId':_0x404ed7['id'],'cwd':_0x404ed7[_0x56b057(0x20f)],'title':_0x404ed7[_0x56b057(0x19e)],'titleOrigin':_0x56b057(0x1cc),'lastActivityAt':Date[_0x56b057(0x1c5)](_0x404ed7[_0x56b057(0x1fe)])})];});}catch{return[];}finally{await _0x3f4b43?.[_0x5c33de(0x1fa)]()[_0x5c33de(0x209)](()=>undefined);}}async[_0xb902a4(0x1ae)](_0x49bfda,_0x3fd598,_0x34b215){const _0x27368f=_0xb902a4;if(_0x49bfda[_0x27368f(0x19b)]===null)throw new Error(_0x27368f(0x1fb));const _0x27e347=await openMarAgentSessionCatalog({'homeDirectory':this[_0x27368f(0x1ad)]});try{return(await _0x27e347[_0x27368f(0x1ef)](_0x49bfda[_0x27368f(0x19b)],{'boundaryTurnId':_0x3fd598,'title':_0x34b215}))['id'];}catch(_0x47cab8){if(_0x47cab8 instanceof MarAgentError)throw new Error(_0x47cab8[_0x27368f(0x1a2)],{'cause':_0x47cab8});throw _0x47cab8;}finally{await _0x27e347[_0x27368f(0x1fa)]()[_0x27368f(0x209)](()=>undefined);}}async[_0xb902a4(0x1d5)](_0xfd219e,_0x45ec45){const _0x3ba6ec=_0xb902a4;if(_0xfd219e[_0x3ba6ec(0x1e8)]!==this[_0x3ba6ec(0x1d8)]||_0xfd219e[_0x3ba6ec(0x19b)]!==_0x45ec45)return![];await this.#releaseSessionResources?.(_0x45ec45);const _0x80ec3=await openMarAgentSessionCatalog({'homeDirectory':this[_0x3ba6ec(0x1ad)]});try{return await _0x80ec3[_0x3ba6ec(0x1a6)](_0x45ec45),!![];}finally{await _0x80ec3[_0x3ba6ec(0x1fa)]()[_0x3ba6ec(0x209)](()=>undefined);}}async[_0xb902a4(0x1e3)](_0xfa1aeb,_0x3a33e2){const _0x50c40b=_0xb902a4;if(_0xfa1aeb[_0x50c40b(0x1e8)]!==this[_0x50c40b(0x1d8)]||_0xfa1aeb[_0x50c40b(0x19b)]!==_0x3a33e2)return undefined;const _0xf4f703=await openMarAgentSessionCatalog({'homeDirectory':this[_0x50c40b(0x1ad)]});try{let _0x38d0cb;do{const _0x18f41=await _0xf4f703[_0x50c40b(0x1d1)]({'limit':0xc8,..._0x38d0cb?{'cursor':_0x38d0cb}:{}}),_0x2c5aa5=_0x18f41[_0x50c40b(0x1e9)][_0x50c40b(0x208)](_0x4cf6fc=>_0x4cf6fc['id']===_0x3a33e2)?.[_0x50c40b(0x19e)];if(_0x2c5aa5!==undefined)return _0x2c5aa5;_0x38d0cb=_0x18f41[_0x50c40b(0x18e)];}while(_0x38d0cb!==undefined);return undefined;}finally{await _0xf4f703[_0x50c40b(0x1fa)]()[_0x50c40b(0x209)](()=>undefined);}}async[_0xb902a4(0x21c)](_0xf1deea,_0x475673){const _0x8715c7=_0xb902a4;if(_0xf1deea[_0x8715c7(0x19b)]===null)return undefined;const _0x2ca487=await openMarAgentSessionCatalog({'homeDirectory':this[_0x8715c7(0x1ad)]});try{const _0x297738=_0x475673[_0x8715c7(0x1c0)]??-0x61d*-0x4+0x6*-0x35+-0x172c;let _0x3d76e9=_0x475673[_0x8715c7(0x1b1)],_0x291926;const _0x5a38a9=[],_0x2f594c=new Set();do{const _0x2e0a02=await _0x2ca487[_0x8715c7(0x1c7)](_0xf1deea[_0x8715c7(0x19b)],{..._0x3d76e9===undefined?{}:{'cursor':_0x3d76e9},'limit':0x3e8});_0x5a38a9[_0x8715c7(0x1d2)](_0x2e0a02[_0x8715c7(0x1f2)]);for(const _0x121fd7 of _0x2e0a02[_0x8715c7(0x1f2)]){const _0x4c8c43=_0x121fd7[_0x8715c7(0x1ac)]===_0x8715c7(0x1e7)?_0x121fd7[_0x8715c7(0x1f1)]:_0x121fd7[_0x8715c7(0x20c)][_0x8715c7(0x1f1)];if(_0x4c8c43!==undefined)_0x2f594c[_0x8715c7(0x199)](_0x4c8c43);}_0x291926=_0x2e0a02[_0x8715c7(0x18e)],_0x3d76e9=_0x291926;}while(_0x2f594c[_0x8715c7(0x18f)]<=_0x297738&&_0x291926!==undefined);const _0x21a2f2=_0x5a38a9[_0x8715c7(0x1ba)]()[_0x8715c7(0x1c2)](),_0x2b01cd=projectMarAgentHistory(_0xf1deea,_0x21a2f2,{'registerInputImages':_0x1bf3c0=>this[_0x8715c7(0x20a)](_0xf1deea,_0x1bf3c0),'registerGeneratedImages':(_0x2f5d63,_0x42554c)=>this[_0x8715c7(0x1e2)](_0xf1deea,_0x2f5d63,_0x42554c)});if(_0x2b01cd[_0x8715c7(0x204)]>_0x297738){const _0x499569=_0x2b01cd[_0x8715c7(0x1f5)](-_0x297738),_0x5dd056=firstSequenceForTurn(_0x21a2f2,_0x499569[0x35b+0x1843*0x1+-0x1b9e]['id']);return{'turns':_0x499569,'nextCursor':_0x5dd056===undefined?_0x291926??null:String(_0x5dd056)};}return{'turns':_0x2b01cd,'nextCursor':_0x291926??null};}catch{return undefined;}finally{await _0x2ca487[_0x8715c7(0x1fa)]()[_0x8715c7(0x209)](()=>undefined);}}async[_0xb902a4(0x1ab)](_0x49d103){const _0x29cb90=_0xb902a4,_0x5c5445=await _0x49d103[_0x29cb90(0x1de)]();return _0x5c5445===undefined?undefined:{..._0x5c5445,'source':_0x29cb90(0x1de)};}[_0xb902a4(0x1e6)](_0x4a4837){const _0x13c7c7=_0xb902a4,_0x18afe5=_0x4a4837[_0x13c7c7(0x19b)]===null?undefined:marAgentGeneratedImagesDirectory(this[_0x13c7c7(0x1ad)],_0x4a4837[_0x13c7c7(0x19b)]);return[resolve(_0x4a4837[_0x13c7c7(0x20e)]),..._0x18afe5===undefined?[]:[_0x18afe5]];}async[_0xb902a4(0x1a3)](_0x47429a){const _0x2d34f7=_0xb902a4;if(_0x47429a[_0x2d34f7(0x19b)]===null||_0x47429a[_0x2d34f7(0x196)]===null)return undefined;const _0x3bc3ee=this.#models[_0x2d34f7(0x208)](_0x54c183=>_0x54c183['id']===_0x47429a[_0x2d34f7(0x196)]);if(_0x3bc3ee===undefined)return undefined;let _0x5e8bca;try{_0x5e8bca=await openMarAgentSessionCatalog({'homeDirectory':this[_0x2d34f7(0x1ad)]});const _0x3cff17=await _0x5e8bca[_0x2d34f7(0x213)](_0x47429a[_0x2d34f7(0x19b)]);return _0x3cff17===undefined?undefined:{'model':_0x3bc3ee[_0x2d34f7(0x221)],'usedTokens':_0x3cff17[_0x2d34f7(0x1e0)],'maxTokens':_0x3bc3ee[_0x2d34f7(0x1f7)]};}catch{return undefined;}finally{await _0x5e8bca?.[_0x2d34f7(0x1fa)]()[_0x2d34f7(0x209)](()=>undefined);}}[_0xb902a4(0x1ec)](){}async #readInputImage(_0x236768,_0x386f93,_0x1c3e88,_0x17a663){const _0x7fd350=_0xb902a4;let _0x2b2348;try{_0x2b2348=await openMarAgentSessionCatalog({'homeDirectory':this[_0x7fd350(0x1ad)]});const _0x2c3b75=await _0x2b2348[_0x7fd350(0x1f6)](_0x236768,{'sequence':_0x386f93,'imageIndex':_0x1c3e88});if(_0x2c3b75===undefined||_0x2c3b75[_0x7fd350(0x1d8)]!==_0x17a663[_0x7fd350(0x1d8)]||_0x2c3b75[_0x7fd350(0x1e1)]!==_0x17a663[_0x7fd350(0x1e1)]||_0x2c3b75[_0x7fd350(0x1c1)]!==_0x17a663[_0x7fd350(0x1c1)])return undefined;return{'name':_0x2c3b75[_0x7fd350(0x1d8)],'mime':_0x2c3b75[_0x7fd350(0x1e1)],'dataBase64':_0x2c3b75[_0x7fd350(0x1b2)]};}catch{return undefined;}finally{await _0x2b2348?.[_0x7fd350(0x1fa)]()[_0x7fd350(0x209)](()=>undefined);}}}function firstSequenceForTurn(_0x322397,_0x34970b){const _0x256cbf=_0xb902a4;return _0x322397[_0x256cbf(0x208)](_0x44a412=>_0x44a412[_0x256cbf(0x1ac)]===_0x256cbf(0x1e7)?_0x44a412[_0x256cbf(0x1f1)]===_0x34970b:_0x44a412[_0x256cbf(0x20c)][_0x256cbf(0x1f1)]===_0x34970b)?.[_0x256cbf(0x212)];}function isModelSummary(_0xa5c837){const _0x4583c7=_0xb902a4;return marAgentNodeModelSummarySchema[_0x4583c7(0x1ca)](_0xa5c837)[_0x4583c7(0x1ea)];}
|
|
2
|
+
const _0x40c726=_0x3627;(function(_0xb5c86b,_0x518c1a){const _0x392170=_0x3627,_0x1b1bc5=_0xb5c86b();while(!![]){try{const _0x49c7c9=-parseInt(_0x392170(0x121))/(0x2f*0x2a+0x1*-0x18da+-0x21*-0x85)*(-parseInt(_0x392170(0x14f))/(-0x1*0x1deb+-0x4*-0x409+0xdc9))+parseInt(_0x392170(0x16a))/(-0x15af+0x277*0x1+-0x9*-0x223)+parseInt(_0x392170(0xf3))/(0xc1f+-0x781+-0x3e*0x13)+-parseInt(_0x392170(0x137))/(0xc89*0x3+0x2097+-0x5*0xe09)*(parseInt(_0x392170(0x170))/(-0x1*0x1997+-0x8d+0x1a2a))+-parseInt(_0x392170(0x178))/(0x16a3+-0x548+-0x1154)*(-parseInt(_0x392170(0x102))/(0x212f+0xff4*0x1+0x1*-0x311b))+parseInt(_0x392170(0x147))/(0x17c3+0xf72+-0x272c)*(-parseInt(_0x392170(0x174))/(0x5*-0x48b+-0x1*0x637+0x48*0x67))+-parseInt(_0x392170(0x122))/(0x2*-0x1043+-0xe20+0x2eb1);if(_0x49c7c9===_0x518c1a)break;else _0x1b1bc5['push'](_0x1b1bc5['shift']());}catch(_0x1009de){_0x1b1bc5['push'](_0x1b1bc5['shift']());}}}(_0xe4a0,-0x140691+-0xcaa49+0x2b8b9f));import{marAgentNodeModelSummarySchema,resolveMarAgentDefaultReasoningEffort}from'@myagentroam/protocol';import{MarAgentError,openMarAgentSessionCatalog}from'@myagentroam/agent';import{homedir}from'node:os';function _0xe4a0(){const _0x291f04=['surmrq','C2vZC2LVBI5YB2XSyMfJAW','DxnLCI1PBNb1Da','BgLTAxq','l21PC3nPB24','twLZC2LVBG','CMvNAxn0zxjjBNb1DeLTywDLCW','DhvYBI5PBNrLCNj1Chq','uLvotKvsx1jfu1vnrv9gquLmruq','C3vWCg9YDhndB25MAwD1CMf0Aw9U','ChjVAMvJDgLVBKzVCG','mZeXmty5mMroy09VBq','CNvUlMnHBMnLBa','uKvtvu1bqKXf','DxnLCG','BwLZC2LVBG','qxnRigjLzM9Yzsb0B29SCYb3AxrOihnPzguGzwzMzwn0CY4GvgHPCYbPCYbUB3qGyw4GB3bLCMf0Aw5Nlxn5C3rLBsbZyw5KyM94lG','BMfTzq','Cgf0Aa','y2XVC2u','tufsx1jvtLrjtuu','C2vZC2LVBNm','CMvHze1HBMfNzwrsDw5UzxjuAxrSzq','A2LUza','BgvUz3rO','zNvSBc1Hy2nLC3m','ohjMDeHkra','BwfW','BwnW','ywnJzxnZt3b0Aw9UCW','zwzMB3j0','rw50zxiGCgvYC2LZDgvUDcbnAxnZAw9Uig1VzguU','BwfYqwDLBNq','CMvZB2X2zq','zMLSDgvY','yNL0zvnPEMu','ywrK','zM9YA05HDgL2zq','DhvYBKLK','y3vYC29Y','yxbWCM92ywWUCMvZCg9Uza','y3DK','BwLTzvr5Cgu','zxzLBNq','zMXHDe1HCa','y29UzMLNDxjLtw9KzwXZ','D29YA3nWywnL','zMLUza','CMvTzw1Izxjnyw5Hz2vKtMf0AxzL','su1nrurjqvrfx0fdveLptG','C3vJy2vZCW','BMf0AxzLq29UDhjVBa','C2fMzvbHCNnL','u2TPCcbbz2vUDcbHChbYB3zHBhmUieHVC3qGDMfSAwrHDgLVBIbYzw1HAw5ZigfJDgL2zsbHBMqGBM8GqwDLBNqGC2fUzgjVEcbPCYbWCM92AwrLzc4','tufoquDfra','vu5bvKfjtefcteu','y29UDgv4DfvZywDL','ntG1mdDeALHnEem','mtuXodC2mZrLzxztv3e','C2vZC2LVBI5WAw4','t24TCMvXDwvZDa','C2vZC2LVBI5YzxDPBMq','Ag9TzurPCMvJDg9YEq','y3jLyxrL','ve9hr0Xf','ChjVzMLSzq','zgvMyxvSDenVBMzPz3vYyxrPB24','CMvZDw1LrxH0zxjUywW','ChvZAa','tuLtu0LorW','zw5HyMXLza','q29TCgfJDcb0AguGy3vYCMvUDcbZzxnZAw9UignVBNrLEhqU','zgLZy292zxjtzxnZAw9UCW','y2f0y2G','u0vtu0LptL9st0XmqKfds19vtKfwquLmqujmrq','AxnbCNjHEq','y29TBwfUzfn0yxrLCW','BwfUywDLzefJDgL2zq','BMf0AxzLsw1Hz2vsB290CW','odu1mtq1uMH1q0Dh','uLvotKvsx1voqvzbsuXbqKXf','Aw5JBhvKzxm','y3jLyxrLuhjVAMvJDgLVBG','DxnLCI1PBNb1Dc5YzxnWB25K','CMvHzenVBNrLEhrvC2fNzq','DgL0Bgu','vg9Nz2XLignVBgXHyM9YyxrPDMuGugXHBIbnB2rLlG','C2v0u2vZC2LVBLjLC291CMnLuMvSzwfZzxi','u0vtu0LptL9srvDjtKrFvu5bvKfjtefcteu','zM9YAW','C3vWCg9YDgvKrwzMB3j0CW','CMvHC29UAw5NrwzMB3j0CW','rNvSBcbHy2nLC3m','BgLZDa','BgfZDefJDgL2Axr5qxq','mtaWmJy5otLtueTREui','CMvHze9MzMLJAwfSq29UDMvYC2f0Aw9U','C2vZC2LVBI5Yzw5HBwu','zw50CMLLCW','B24TCMvXDwvZDa','ywnJzxnZ','CM9SBgjHy2S','CMvTB3zLtMf0AxzL','mZHwuMLms1C','C29Tzq','zxH0zxjUywXtzxnZAw9Uswq','zgvMyxvSDfjLyxnVBMLUz0vMzM9YDa','Aw1Hz2vZ','C3vIywDLBNq','y3vYCMvUDfjLC3vTzwq','B2zMAwnPywW','zgLZy292zxj5u2nVCgu','CMvNAxn0zxjhzw5LCMf0zwrjBwfNzxm','C2vZC2LVBI5Yzw1VDMu','CgfYC2u','zgvMyxvSDevMzM9YDa','Bw9KzwXZ','ChjVzMLSzuzVCLzHBgLKyxrPB24','Aw5WDxruB2TLBNm','CMvHzenVBNzLCNnHDgLVBKHPC3rVCNK','zgvSzxrL','yxzHAwXHyMXL','ChjLC2vUDfnLC3nPB24','tufoquDfrf9bq1rjvKu','zMXHDa','y29Kzq','C2vXDwvUy2u','DhvYBI5XDwv1zq','CMvHzeLTywDL','Bw9KzwXjza','mJCYnZe4mfjSBxznyG','C2L6zq','CNvUBMvY','zgf0yujHC2u2na','C3rVCa','C2vZC2LVBKLK','mZbZCgv6AKe','DhvYBI5ZDgfYDa','quXmx1DpuKTtuefdrvm','tufsx01btKfhruq','mtbdAKzqvKe','zw5ZDxjLq29UzMLNDxjHDgLVBG','BwfYlwfNzw50','AgLZDg9YEs5YzwfK','odGZodG5m3vmv0vZwG','y29TCgfJDa','zgvSzxrLza','C2v0r2vUzxjHDgvKsw1Hz2vszwDPC3rYyxi','yxbWCM92ywW','Bw9KzwW','zxzLBNrZlMXPDMu','C2XPy2u','y29UDMvYC2f0Aw9U','AgLZDg9YEq','y29UDgv4DfDPBMrVD1rVA2vUCW','BMv4Den1CNnVCG','CM9SBgjHy2ToyxrPDMu','CgXHBG','Dg9szxzLCNnLza','tKfusvzf','CMvHzgfIBgu','D29YA3nWywnLCW','ChjVBw90zq'];_0xe4a0=function(){return _0x291f04;};return _0xe4a0();}import{resolve}from'node:path';function _0x3627(_0x45376e,_0x30bef8){_0x45376e=_0x45376e-(0xf5e+0x17f*0x3+0x3ca*-0x5);const _0x91a27c=_0xe4a0();let _0x1e6fd8=_0x91a27c[_0x45376e];if(_0x3627['TaeyvH']===undefined){var _0x1f233c=function(_0x18b8db){const _0x46ebe9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1a0d23='',_0x4c5d2b='';for(let _0x26718d=0x3d7*0x5+0xe8b+-0x4d2*0x7,_0x3c9d07,_0x144379,_0x2608b8=-0x2099+0x28d*-0x1+0x16*0x199;_0x144379=_0x18b8db['charAt'](_0x2608b8++);~_0x144379&&(_0x3c9d07=_0x26718d%(0x166a+0x2*0xd3d+-0x30e0)?_0x3c9d07*(-0x24ce*0x1+-0xb49+-0x63*-0x7d)+_0x144379:_0x144379,_0x26718d++%(0x1314+-0x55*0x20+-0x870))?_0x1a0d23+=String['fromCharCode'](0xd99+0xcbf+-0x3f*0x67&_0x3c9d07>>(-(0x1dc7*-0x1+-0x9e*0x25+0x349f)*_0x26718d&-0x1626+0xabd*0x2+0xb2)):-0x270a+0x8a8*-0x2+0x385a){_0x144379=_0x46ebe9['indexOf'](_0x144379);}for(let _0x32c6b4=-0x65*-0xf+0x1354+-0x193f,_0x3c6933=_0x1a0d23['length'];_0x32c6b4<_0x3c6933;_0x32c6b4++){_0x4c5d2b+='%'+('00'+_0x1a0d23['charCodeAt'](_0x32c6b4)['toString'](0x2*0xfa7+0x22a3+-0x41e1*0x1))['slice'](-(0x1*0x93b+-0x9b9+0x80));}return decodeURIComponent(_0x4c5d2b);};_0x3627['CGfHQT']=_0x1f233c,_0x3627['eAmsIn']={},_0x3627['TaeyvH']=!![];}const _0x5e63c9=_0x91a27c[0x1421+-0x420*0x3+-0x7c1*0x1];_0x3627['jCZHhI']!==_0x5e63c9&&(_0x3627['eAmsIn']={},_0x3627['jCZHhI']=_0x5e63c9);const _0x523fe1=_0x3627['eAmsIn'][_0x45376e];return _0x523fe1===undefined?(_0x1e6fd8=_0x3627['CGfHQT'](_0x1e6fd8),_0x3627['eAmsIn'][_0x45376e]=_0x1e6fd8):_0x1e6fd8=_0x523fe1,_0x1e6fd8;}import{AbstractRunner}from'./abstract-runner.js';import{marAgentGeneratedImageSources,marAgentGeneratedImagesDirectory}from'./mar-agent/generated-images.js';import{projectMarAgentHistory}from'./mar-agent/history-projection.js';export class MarAgentRunner extends AbstractRunner{[_0x40c726(0x126)];[_0x40c726(0xf9)]=_0x40c726(0x176);[_0x40c726(0x157)]=_0x40c726(0x172);#models=[];#releaseSessionResources;#generatedImageRegistrar;constructor(_0x36cba5=homedir()){const _0x12e201=_0x40c726;super(),this[_0x12e201(0x126)]=_0x36cba5;}[_0x40c726(0x115)](_0x1698b9){const _0x3ee552=_0x40c726;this.#models=Array[_0x3ee552(0x133)](_0x1698b9)?_0x1698b9[_0x3ee552(0x10a)](isModelSummary):[];}[_0x40c726(0x13f)](_0x2fa223){this.#releaseSessionResources=_0x2fa223;}[_0x40c726(0x17b)](_0x1fa461){this.#generatedImageRegistrar=_0x1fa461;}[_0x40c726(0x158)](_0x55e510,_0x59f72a,_0x3b6e6f){const _0x2f270=_0x40c726;if(_0x55e510[_0x2f270(0x16c)]!==this[_0x2f270(0xf9)]||_0x55e510[_0x2f270(0x151)]===null||_0x55e510[_0x2f270(0x151)]!==_0x59f72a)return[];const _0x4247ed=marAgentGeneratedImageSources(this[_0x2f270(0x126)],_0x59f72a,_0x3b6e6f);return _0x4247ed[_0x2f270(0x100)]===-0xef*-0x1f+-0x63+-0x1c8e?[]:this.#generatedImageRegistrar?.(_0x55e510,_0x4247ed)??[];}[_0x40c726(0xee)](_0x803470,_0x4c866d){const _0x44f135=_0x40c726;if(_0x803470[_0x44f135(0x16c)]!==this[_0x44f135(0xf9)]||_0x803470[_0x44f135(0x151)]===null||_0x803470[_0x44f135(0x151)]!==_0x4c866d[_0x44f135(0x16f)]||_0x4c866d[_0x44f135(0x153)]===undefined||_0x4c866d[_0x44f135(0x153)][_0x44f135(0x100)]===0x77d*-0x1+0x9c*0x3b+-0x1*0x1c77)return[];const _0x2e4626=_0x4c866d[_0x44f135(0x153)][_0x44f135(0x114)]((_0x45fb5f,_0x339d2f)=>_0x45fb5f[_0x44f135(0x188)]?[{'image':_0x45fb5f,'imageIndex':_0x339d2f}]:[]);if(_0x2e4626[_0x44f135(0x100)]===0x21b4+0xa95+-0x2c49)return[];const _0x3af3e1=this.#generatedImageRegistrar?.(_0x803470,_0x2e4626[_0x44f135(0x103)](({image:_0x22b45b,imageIndex:_0x1e5023})=>({'name':_0x22b45b[_0x44f135(0xf9)],'mime':_0x22b45b[_0x44f135(0x112)],'byteSize':_0x22b45b[_0x44f135(0x10b)],'sourceId':_0x4c866d[_0x44f135(0x16f)]+':'+_0x4c866d[_0x44f135(0x166)]+':'+_0x1e5023,'read':()=>this.#readInputImage(_0x4c866d[_0x44f135(0x16f)],_0x4c866d[_0x44f135(0x166)],_0x1e5023,{'name':_0x22b45b[_0x44f135(0xf9)],'mimeType':_0x22b45b[_0x44f135(0x112)],'byteSize':_0x22b45b[_0x44f135(0x10b)]})})))??[];let _0x23d278=0x228d+-0x59*0x6b+-0x3*-0xe2;return _0x4c866d[_0x44f135(0x153)][_0x44f135(0x103)](_0x484128=>_0x484128[_0x44f135(0x188)]?_0x3af3e1[_0x23d278++]:undefined);}[_0x40c726(0x129)](_0x209593){const _0x4cdd4a=_0x40c726;if(!this[_0x4cdd4a(0x161)](_0x209593))return undefined;return this[_0x4cdd4a(0x15d)]();}[_0x40c726(0x161)](_0x2f6c80){const _0x409d9e=_0x40c726;return _0x2f6c80[_0x409d9e(0x108)]?.[_0x409d9e(0x161)]===!![];}[_0x40c726(0x15d)](){const _0x342566=_0x40c726,_0x53f2ea=this.#models[_0x342566(0x10a)](_0x3d3156=>_0x3d3156[_0x342566(0x12e)]);return{'runner':_0x342566(0x176),'models':_0x53f2ea[_0x342566(0x103)]((_0x528c5d,_0xb1a8bf)=>({'id':_0x528c5d['id'],'label':_0x528c5d[_0x342566(0xf9)],'supportedEfforts':[..._0x528c5d[_0x342566(0x143)]],'defaultEffort':resolveMarAgentDefaultReasoningEffort(_0x528c5d[_0x342566(0x152)],_0x528c5d[_0x342566(0x143)]),..._0xb1a8bf===-0x1e6a+0xaf3+0xb*0x1c5?{'isDefault':!![]}:{}})),'accessOptions':[{'id':_0x342566(0x101),'label':_0x342566(0x144),'description':_0x342566(0x11d)},{'id':_0x342566(0x14b),'label':_0x342566(0x124),'description':_0x342566(0xf8)}],'commands':[...[_0x342566(0x179),_0x342566(0x185)][_0x342566(0x103)](_0x45376e=>({'id':_0x45376e,'runner':_0x342566(0x176),'label':'/'+_0x45376e,'description':_0x45376e===_0x342566(0x179)?_0x342566(0x12f):_0x342566(0x13e),'inputHint':'/'+_0x45376e,'source':_0x342566(0xfc),'interaction':_0x45376e===_0x342566(0x185)?_0x342566(0x128):_0x342566(0x119),'available':!![],'reasonCode':null})),{'id':_0x342566(0xf7),'runner':_0x342566(0x176),'label':_0x342566(0xec),'stateLabel':_0x342566(0xed),'description':_0x342566(0x107),'inputHint':_0x342566(0xec),'source':_0x342566(0xfc),'interaction':_0x342566(0x128),'available':!![],'reasonCode':null}],'capabilities':[_0x342566(0x171),_0x342566(0x180),_0x342566(0x17c),_0x342566(0xea),_0x342566(0x185),_0x342566(0x179),_0x342566(0x104),_0x342566(0x154)]};}[_0x40c726(0xf1)](_0x30bef8){const _0x43b40c=_0x40c726;if(_0x30bef8[_0x43b40c(0x16c)]!==this[_0x43b40c(0xf9)])return![];const _0x91a27c=this[_0x43b40c(0x15d)](),_0x1e6fd8=_0x91a27c[_0x43b40c(0x15c)][_0x43b40c(0x117)](_0x1f233c=>_0x1f233c['id']===_0x30bef8[_0x43b40c(0x17d)]);return _0x1e6fd8!==undefined&&(_0x1e6fd8[_0x43b40c(0x142)][_0x43b40c(0x100)]===-0x1f*0x89+-0x153d+0x25d4?_0x30bef8[_0x43b40c(0x106)]===_0x1e6fd8[_0x43b40c(0x15b)]:_0x1e6fd8[_0x43b40c(0x142)][_0x43b40c(0x139)](_0x30bef8[_0x43b40c(0x106)]))&&_0x91a27c[_0x43b40c(0x105)][_0x43b40c(0x150)](_0x5e63c9=>_0x5e63c9['id']===_0x30bef8[_0x43b40c(0x14c)]);}[_0x40c726(0x12a)](){const _0x181792=_0x40c726,_0x523fe1=this[_0x181792(0x15d)](),_0x18b8db=_0x523fe1[_0x181792(0x15c)][-0x63d*-0x3+0x2695+-0x394c];return{'runner':_0x181792(0x176),'model':_0x18b8db?.['id']??'','effort':_0x18b8db?.[_0x181792(0x15b)]??'','access':_0x181792(0x101)};}[_0x40c726(0x162)](_0x46ebe9,_0x1a0d23,_0x4c5d2b){const _0x571469=_0x40c726;if(!this[_0x571469(0x161)](_0x1a0d23))return{'activity':_0x571469(0x11f),'control':{'level':_0x571469(0x11f),'capabilities':[]},'runtime':{'level':_0x571469(0x11f),'capabilities':[],'reasonCode':_0x571469(0x138)},'commandStates':_0x4c5d2b[_0x571469(0x134)]};const _0x26718d=_0x46ebe9[_0x571469(0x11b)]===_0x571469(0x173),_0x3c9d07=_0x4c5d2b[_0x571469(0x135)]?_0x571469(0x163):_0x571469(0x18b),_0x144379=[_0x571469(0x177),_0x571469(0x17e),_0x571469(0x171),_0x571469(0x167),_0x571469(0xef),_0x571469(0xf4),_0x571469(0x110),_0x571469(0x13b),_0x571469(0x149),_0x571469(0x159),_0x571469(0x123),..._0x46ebe9[_0x571469(0x151)]===null?[]:[_0x571469(0x125),_0x571469(0xe9)]];return{'activity':_0x3c9d07,'control':{'level':_0x26718d?_0x571469(0x11e):_0x571469(0xf5),'capabilities':[_0x571469(0x177),_0x571469(0x17e),_0x571469(0x171),_0x571469(0xef)]},'runtime':{'level':_0x26718d?_0x571469(0x11e):_0x571469(0xf5),'capabilities':_0x144379,'reasonCode':null},'commandStates':_0x4c5d2b[_0x571469(0x134)]};}[_0x40c726(0x12b)](_0x2608b8,_0x32c6b4){const _0x415ba3=_0x40c726;if(_0x2608b8[_0x415ba3(0x16c)]!==this[_0x415ba3(0xf9)]||_0x2608b8[_0x415ba3(0x151)]===null||!_0x32c6b4[_0x415ba3(0x161)])return Promise[_0x415ba3(0x109)]({'failureCode':_0x415ba3(0x138)});const _0x3c6933=_0x32c6b4[_0x415ba3(0x155)](_0x2608b8['id']);if(_0x3c6933)return Promise[_0x415ba3(0x109)]({'session':_0x32c6b4[_0x415ba3(0x175)](_0x3c6933),'activity':_0x415ba3(0x18b)});const _0x1ca002=_0x32c6b4[_0x415ba3(0xf2)](_0x2608b8),_0x1d4a9e=_0x1ca002?_0x32c6b4[_0x415ba3(0x18a)](_0x1ca002['id']):_0x32c6b4[_0x415ba3(0x127)](_0x2608b8);if(!_0x1d4a9e)return Promise[_0x415ba3(0x109)]({'failureCode':_0x415ba3(0xf0)});return _0x32c6b4[_0x415ba3(0x118)](_0x2608b8[_0x415ba3(0x151)],_0x1d4a9e['id']),Promise[_0x415ba3(0x109)]({'session':_0x32c6b4[_0x415ba3(0x175)](_0x1d4a9e),'activity':_0x415ba3(0x18b)});}async[_0x40c726(0x130)](_0x19a266,_0x337f80){const _0x59b32f=_0x40c726;let _0x5d92c6;try{_0x5d92c6=await openMarAgentSessionCatalog({'homeDirectory':this[_0x59b32f(0x126)]});const _0x51544e=await _0x5d92c6[_0x59b32f(0x145)]({'limit':0xc8}),_0x3bdaee=_0x337f80?[_0x337f80]:_0x19a266[_0x59b32f(0x189)];return _0x51544e[_0x59b32f(0xfd)][_0x59b32f(0x114)](_0x4a8eb1=>{const _0x3bcd10=_0x59b32f,_0x5789f1=_0x3bdaee[_0x3bcd10(0x117)](_0x547061=>resolve(_0x547061[_0x3bcd10(0xfa)])===resolve(_0x4a8eb1[_0x3bcd10(0x116)]));if(!_0x5789f1)return[];return[_0x19a266[_0x3bcd10(0x13a)]({'workspace':_0x5789f1,'runner':this[_0x3bcd10(0xf9)],'externalSessionId':_0x4a8eb1['id'],'cwd':_0x4a8eb1[_0x3bcd10(0x116)],'title':_0x4a8eb1[_0x3bcd10(0x13d)],'titleOrigin':_0x3bcd10(0x187),'lastActivityAt':Date[_0x3bcd10(0x15a)](_0x4a8eb1[_0x3bcd10(0x146)])})];});}catch{return[];}finally{await _0x5d92c6?.[_0x59b32f(0xfb)]()[_0x59b32f(0x131)](()=>undefined);}}async[_0x40c726(0x10d)](_0x31687d,_0x11a759,_0x1424c2){const _0x1d9ff3=_0x40c726;if(_0x31687d[_0x1d9ff3(0x151)]===null)throw new Error(_0x1d9ff3(0x140));const _0x2f8f03=await openMarAgentSessionCatalog({'homeDirectory':this[_0x1d9ff3(0x126)]});try{return(await _0x2f8f03[_0x1d9ff3(0x141)](_0x31687d[_0x1d9ff3(0x151)],{'boundaryTurnId':_0x11a759,'title':_0x1424c2}))['id'];}catch(_0x34e84d){if(_0x34e84d instanceof MarAgentError)throw new Error(_0x34e84d[_0x1d9ff3(0x165)],{'cause':_0x34e84d});throw _0x34e84d;}finally{await _0x2f8f03[_0x1d9ff3(0xfb)]()[_0x1d9ff3(0x131)](()=>undefined);}}async[_0x40c726(0x184)](_0x3feebb,_0x4800d3){const _0xfd87c5=_0x40c726;if(_0x3feebb[_0xfd87c5(0x151)]===null)throw new Error(_0xfd87c5(0x132));await this.#releaseSessionResources?.(_0x3feebb[_0xfd87c5(0x151)]);const _0xe35953=await openMarAgentSessionCatalog({'homeDirectory':this[_0xfd87c5(0x126)]});try{const _0x2af9c4=await _0xe35953[_0xfd87c5(0x14d)](_0x3feebb[_0xfd87c5(0x151)],{'boundaryTurnId':_0x4800d3});return Date[_0xfd87c5(0x15a)](_0x2af9c4[_0xfd87c5(0x146)]);}catch(_0x377fbf){if(_0x377fbf instanceof MarAgentError)throw new Error(_0x377fbf[_0xfd87c5(0x165)],{'cause':_0x377fbf});throw _0x377fbf;}finally{await _0xe35953[_0xfd87c5(0xfb)]()[_0xfd87c5(0x131)](()=>undefined);}}async[_0x40c726(0x14e)](_0x2ae46d,_0xd770b){const _0x16f2db=_0x40c726;if(_0x2ae46d[_0x16f2db(0x16c)]!==this[_0x16f2db(0xf9)]||_0x2ae46d[_0x16f2db(0x151)]!==_0xd770b)return![];await this.#releaseSessionResources?.(_0xd770b);const _0x2900fd=await openMarAgentSessionCatalog({'homeDirectory':this[_0x16f2db(0x126)]});try{return(await _0x2900fd[_0x16f2db(0x160)](_0xd770b))[_0x16f2db(0x17a)]?!![]:_0x16f2db(0x12d);}finally{await _0x2900fd[_0x16f2db(0xfb)]()[_0x16f2db(0x131)](()=>undefined);}}async[_0x40c726(0xfe)](_0x37d030,_0x1cefd6){const _0x4c6f05=_0x40c726;if(_0x37d030[_0x4c6f05(0x16c)]!==this[_0x4c6f05(0xf9)]||_0x37d030[_0x4c6f05(0x151)]!==_0x1cefd6)return undefined;const _0x2c750a=await openMarAgentSessionCatalog({'homeDirectory':this[_0x4c6f05(0x126)]});try{let _0x2d085f;do{const _0x29e514=await _0x2c750a[_0x4c6f05(0x145)]({'limit':0xc8,..._0x2d085f?{'cursor':_0x2d085f}:{}}),_0x236192=_0x29e514[_0x4c6f05(0xfd)][_0x4c6f05(0x117)](_0x5cb101=>_0x5cb101['id']===_0x1cefd6)?.[_0x4c6f05(0x13d)];if(_0x236192!==undefined)return _0x236192;_0x2d085f=_0x29e514[_0x4c6f05(0x183)];}while(_0x2d085f!==undefined);return undefined;}finally{await _0x2c750a[_0x4c6f05(0xfb)]()[_0x4c6f05(0x131)](()=>undefined);}}async[_0x40c726(0x148)](_0xcf664f,_0xbdb7d1){const _0x15f7a1=_0x40c726;if(_0xcf664f[_0x15f7a1(0x151)]===null)return undefined;const _0x5ba75b=await openMarAgentSessionCatalog({'homeDirectory':this[_0x15f7a1(0x126)]});try{const _0x29c684=_0xbdb7d1[_0x15f7a1(0xeb)]??0xabd*0x2+-0x865+-0xd0b;let _0x5c56e0=_0xbdb7d1[_0x15f7a1(0x10f)],_0xb8a695;const _0x46c47b=[],_0x229926=new Set();do{const _0x18df2e=await _0x5ba75b[_0x15f7a1(0x181)](_0xcf664f[_0x15f7a1(0x151)],{..._0x5c56e0===undefined?{}:{'cursor':_0x5c56e0},'limit':0x3e8});_0x46c47b[_0x15f7a1(0x12c)](_0x18df2e[_0x15f7a1(0x14a)]);for(const _0x655875 of _0x18df2e[_0x15f7a1(0x14a)]){const _0x56856d=_0x655875[_0x15f7a1(0xff)]===_0x15f7a1(0xf6)?_0x655875[_0x15f7a1(0x10e)]:_0x655875[_0x15f7a1(0x113)][_0x15f7a1(0x10e)];if(_0x56856d!==undefined)_0x229926[_0x15f7a1(0x10c)](_0x56856d);}_0xb8a695=_0x18df2e[_0x15f7a1(0x183)],_0x5c56e0=_0xb8a695;}while(_0x229926[_0x15f7a1(0x16b)]<=_0x29c684&&_0xb8a695!==undefined);const _0xa97df2=_0x46c47b[_0x15f7a1(0x186)]()[_0x15f7a1(0x164)](),_0x22a66c=projectMarAgentHistory(_0xcf664f,_0xa97df2,{'registerInputImages':_0x49989b=>this[_0x15f7a1(0xee)](_0xcf664f,_0x49989b),'registerGeneratedImages':(_0x38838,_0x13e470)=>this[_0x15f7a1(0x158)](_0xcf664f,_0x38838,_0x13e470)});if(_0x22a66c[_0x15f7a1(0x100)]>_0x29c684){const _0x29c959=_0x22a66c[_0x15f7a1(0x17f)](-_0x29c684),_0x16259b=firstSequenceForTurn(_0xa97df2,_0x29c959[0x8a8*-0x2+-0x23ec+0x4*0xd4f]['id']);return{'turns':_0x29c959,'nextCursor':_0x16259b===undefined?_0xb8a695??null:String(_0x16259b)};}return{'turns':_0x22a66c,'nextCursor':_0xb8a695??null};}catch{return undefined;}finally{await _0x5ba75b[_0x15f7a1(0xfb)]()[_0x15f7a1(0x131)](()=>undefined);}}async[_0x40c726(0x15f)](_0x954623){const _0x493c79=_0x40c726,_0x3b33d7=await _0x954623[_0x493c79(0x156)]();return _0x3b33d7===undefined?undefined:{..._0x3b33d7,'source':_0x493c79(0x156)};}[_0x40c726(0x136)](_0x5b3611){const _0x1fa4ed=_0x40c726,_0xa98079=_0x5b3611[_0x1fa4ed(0x151)]===null?undefined:marAgentGeneratedImagesDirectory(this[_0x1fa4ed(0x126)],_0x5b3611[_0x1fa4ed(0x151)]);return[resolve(_0x5b3611[_0x1fa4ed(0x111)]),..._0xa98079===undefined?[]:[_0xa98079]];}async[_0x40c726(0x13c)](_0x135f65){const _0x91adf3=_0x40c726;if(_0x135f65[_0x91adf3(0x151)]===null||_0x135f65[_0x91adf3(0x17d)]===null)return undefined;const _0x59ec87=this.#models[_0x91adf3(0x117)](_0x3595bd=>_0x3595bd['id']===_0x135f65[_0x91adf3(0x17d)]);if(_0x59ec87===undefined)return undefined;let _0x5015ea;try{_0x5015ea=await openMarAgentSessionCatalog({'homeDirectory':this[_0x91adf3(0x126)]});const _0x5de870=await _0x5015ea[_0x91adf3(0x120)](_0x135f65[_0x91adf3(0x151)]);return _0x5de870===undefined?undefined:{'model':_0x59ec87[_0x91adf3(0x169)],'usedTokens':_0x5de870[_0x91adf3(0x15e)],'maxTokens':_0x59ec87[_0x91adf3(0x182)]};}catch{return undefined;}finally{await _0x5015ea?.[_0x91adf3(0xfb)]()[_0x91adf3(0x131)](()=>undefined);}}[_0x40c726(0x16e)](){}async #readInputImage(_0x24d1e0,_0x230ef9,_0x4325cf,_0x1ae754){const _0x2c8a70=_0x40c726;let _0x555395;try{_0x555395=await openMarAgentSessionCatalog({'homeDirectory':this[_0x2c8a70(0x126)]});const _0x27e419=await _0x555395[_0x2c8a70(0x168)](_0x24d1e0,{'sequence':_0x230ef9,'imageIndex':_0x4325cf});if(_0x27e419===undefined||_0x27e419[_0x2c8a70(0xf9)]!==_0x1ae754[_0x2c8a70(0xf9)]||_0x27e419[_0x2c8a70(0x112)]!==_0x1ae754[_0x2c8a70(0x112)]||_0x27e419[_0x2c8a70(0x10b)]!==_0x1ae754[_0x2c8a70(0x10b)])return undefined;return{'name':_0x27e419[_0x2c8a70(0xf9)],'mime':_0x27e419[_0x2c8a70(0x112)],'dataBase64':_0x27e419[_0x2c8a70(0x16d)]};}catch{return undefined;}finally{await _0x555395?.[_0x2c8a70(0xfb)]()[_0x2c8a70(0x131)](()=>undefined);}}}function firstSequenceForTurn(_0x1c4b7f,_0x43a5bf){const _0x1e9d4a=_0x40c726;return _0x1c4b7f[_0x1e9d4a(0x117)](_0x546270=>_0x546270[_0x1e9d4a(0xff)]===_0x1e9d4a(0xf6)?_0x546270[_0x1e9d4a(0x10e)]===_0x43a5bf:_0x546270[_0x1e9d4a(0x113)][_0x1e9d4a(0x10e)]===_0x43a5bf)?.[_0x1e9d4a(0x166)];}function isModelSummary(_0x39e712){const _0x309732=_0x40c726;return marAgentNodeModelSummarySchema[_0x309732(0x11c)](_0x39e712)[_0x309732(0x11a)];}
|
package/dist/runtime-state.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* mar-release-protected */
|
|
2
|
-
const _0x4fcfec=_0x2071;function _0xed59(){const _0x4af5f9=['nJu3mdCYCg9pzuTL','CNvUswq','C3rYAw5NAwz5','yxr0ywnOBwvUDhm','A2v5CW','u0vtu0LptL9usvrmrv9jtLzbteLe','C2vXDwvUy2u','CNvUlMnVBxbSzxrLza','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','qvbquK9wquXFtK9ux0zpvu5e','BgLZDfj1BNngB3jtzxnZAw9U','mtu5nde1txPZqLbL','BM93','CNvUlMzHAwXLza','BwfYA2rVD24','yxbWCM92ywWUzgvJAwrLza','zMLUza','DxbKyxrLqwDLBNrtzxnZAw9Uq29UzMLNDxjHDgLVBG','DxrMoa','yMfZzty0DxjS','qvbquK9wruq','rvzftLrFu0vrvuvoq0vFr0fq','yNvTCff1zxvLvMvYC2LVBG','C3rHCNrLzef0','ufjfuefssu5h','B2jQzwn0','Bw9KzwW','y29UDMvYC2f0Aw9UlML0zw0','DxnLCKL0zw1jza','u0vtu0LptL9fwfrfuK5btf9jrf9jtLzbteLe','yxnZAxn0yw50x21LC3nHz2u','DxbKyxrLu2vZC2LVBK1LDgfKyxrH','y3vYCMvUDfr1CM5gB3jsDw4','uLvox1nuqvrfx0LovKfmsuq','v09ss1nqqunfx0jvu1K','BgLZDenVBNzLCNnHDgLVBKL0zw1Z','BNvTyMvY','yxbWCM92ywWUzxHWAxjLza','C2v0q2HHBM5LBfrVA2vU','BgfZDefJDgL2Axr5qxq','zMLUze1LC3nHz2vsDw4','CNvUCW','u1vdq0vfreve','CgLUBMvKqxq','Aw5KzxHpzG','zxHWAxjLrhvLqxbWCM92ywXZ','AxrLBuLK','zMLSzv9JAgfUz2u','BM9KzuLK','uLvotKvs','ywrK','C2vZC2LVBNm','CNvUBMvY','CxvLDwvwzxjZAw9UCW','C291CMnLu2vXDwvUy2u','q09nueXfveve','v09ss1nqqunfx05pvf9gt1vora','BwvZC2fNzvn1yM1PC3nPB25Z','qvbquK9wquXFquXsrufewv9erunjreve','DxbKyxrLuxvLDwvjDgvT','CMvTB3zLvgvYBwLUywXsDw4','zNjVBq','zxH0zxjUywXtzxnZAw9Uswq','y3vYC29Y','yxbWCM92ywXFCMvXDwvZDa','ndq0D0XkwuLI','y3jLyxrLqxbWCM92ywW','zMLUzeXHC3q','yxbWzw5KuNvUrxzLBNq','BgvUz3rO','DhjPBq','DhvYBNm','C3rHCNrZv2L0Aa','uLvox1rvuK5FtK9ux1jfqurz','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','DxbKyxrLq3vYCMvUDfr1CM5gB3jsDw4','C2v0','z2v0','DMfSDwvZ','mZu2odz1B0HbrgG','yxbWzw5K','qvvutW','uLvox1rfuK1jtKfm','CMvTB3zLqwDLBNrtzxnZAw9U','Aw1Hz2vjBMrLEa','Dg9tDhjPBMC','BgLTAxq','y3jLyxrLtwvZC2fNzvj1BG','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','AgfZqwn0AxzLv29YA3nWywnLtgvHC2u','y3jLyxrLrxHLy3v0Aw9U','z2v0qxbWCM92ywW','CMvZDw1Lu2vZC2LVBLf1zxvL','DxbKyxrLuhjLCgfYAw5NvhvYBK1LC3nHz2u','te9tva','yxbWCM92ywXjza','u0vtu0LptL9jrf9dt05gteLdva','CMvVCMrLCLnLC3nPB25rDwv1zq','y3jLyxrLuxvLDwvjDgvT','BMf0AxzLq29UDhjVBa','yMfZzty0','CNvUu2vXDwvUy2vZ','D2fYBMLUzW','zw1PDfj1BKnOyw5Nzwq','B3v0Chv0uhjLDMLLDW','DhvYBG','CMv2AxnPB24','qunusvzf','DxnLCL9PBNb1Df9Yzxf1zxn0','yNL0zuXLBMD0Aa','C2nVCgu','C3rHDhvZ','B25sDw5dAgfUz2vK','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','DgL0Bgu','tufsx01btKfhruq','Dw5RBM93BG','C2XPy2u','Dg9VBf9JywXS','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','DhvYBKLK','BwfW','CMvXDwLYzvf1zxvLsxrLBq','tuvtu0fhrv9btfjfqurzx1fvrvvfra','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','CxvLDwvjDgvTswq','CMvJB25JAwXLuNvU','y3DK','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','y3vZDg9TvgL0Bgu','qvbquK9wquXFquXsrufewv9fweLtvfm','y3vYCMvUDev4zwn1DgLVBKLK','zxzLBNruExbL','y3vYCMvUDfj1BK1LC3nHz2vuzxH0','CxvLDwu','A2LUza','zMfPBgvKtwvZC2fNzvn1yM1PC3nPB25Z','C2v0rxH0zxjUywXtzxnZAw9Uswq','DgvZDa','ChjVAMvJDev2zw50','CxvLDwvKsxrLBxm','y2fUB25Py2fSuNvUswq','CMvJzw50vxnLCK1LC3nHz2u','q1vtve9n','uLvotKLorW','CMvJzw50vxnLCK1LC3nHz2vZ','CMvWBgfJzq','Cgf5Bg9Hza','zwzMB3j0','BwvYz2u','BgLZDefWChjVDMfSCW','Dgv4Dc5KzwX0yq','zMfPBgvK','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','BgvHC2vZ','tuvtu0fhrv9btfjfqurzx1nuqvjuruq','uLvox1rvuK5FtK9ux0zpvu5e','DgL0BgvtB3vYy2u','zxjYB3i','rvHqsvjfra','C2vZC2LVBKLK','Bwf4','CMvXDwLYzufWChjVDMfS','CNvU','rvHurvjoquW','B3v0Chv0u3vTBwfYEq','DxbKyxrLvhvYBKzVCLj1BG','zgvJAxnPB24','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','zgvSzxrL','y2XPzw50twvZC2fNzuLK','y29TCgXLDgvKqxq','AxnbCNjHEq','CNvUDgLTztO','DhjHBNnPDgLVBLj1BG','revdteLoruq','y3jLyxrLsxrLBu9UBhLuDxjU','zxHWAxjLC0f0','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','zgvSzxrLuxvLDwvjDgvT','y29KzxG6','BMv4Da','tufyx0nptvbmrvrfrf9uvvjou19qrvjFu0vtu0LptG','uvvfvuvFsvrftv9jtLzbteLe','CgfYC2u','CMv0ywLUzwrfEgvJDxrPB25uDxjUCW','CxvLDwvjDgvTCW','CMvHC29UAw5Nx3n1Bw1HCNK','y29UDgv4Df9JB21Wywn0Aw9U','u0vtu0LptL9bq1rjvKu','y2XHAw1ozxH0uxvLDwvjDgvT','uLvox0vyrunvveLptL9ot1rFq1vsuKvova','ywnJzxnZ','BwLZC2LVBJO','y3jLyxrLzef0','zMLUAxnOuNvU','Cgf1C2vtzxnZAw9UuxvLDwu','mte4nZbSENfYBu4','mJa0ndu4meHArK9rAq','uLvox0fdveLwrq','CNvUBMvYvgL0Bgu','DgvYBwLUywXsDw5jzhm','Chj1BMvszxrHAw5Lzev4zwn1DgLVBLr1CM5Z','zMLSDgvY','C29Tzq','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','qvbquK9wquXFtK9ux0vyueLsruq','Aw5KzxG','BwLU','y29UDgvUDa','C2vJDgLVBNm','uevoreLorW','BgfZDfj1BLnLCxvLBMnL','oMfZC2LZDgfUDdO','AxrLBxm','Aw5JBhvKzxm','ywn0AxzLu2vZC2LVBLj1BG','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','z2v0v29YA3nWywnL','AgfZ','z2v0uNvU','CNvUlNjLAMvJDgvK','C29YDa','uLvox05pvf9gt1vora','nZqYmMnSDvPvwa','y29TBwfUza','CNvUlNj1BM5PBMC','CgLUBMvK','uvvfvuvFvKvsu0LptL9dt05gteLdva','C2v0tMf0AxzLq29UDhjVBa','su5urvjsvvburuq','DxnLCL9TzxnZywDL','zMLUze1LC3nHz2vtDwjTAxnZAw9U','uLvox09xtKvex0jzx0fot1rirvjFvvnfuG','Aw5PDgLHDgvKqNLvC2vYswq','D29YA3nWywnLswq','AxnjBNrLz2vY','mMvlrgLPtq','ChjVAMvJDe1LC3nHz2vbDhrHy2HTzw50CW','y29TCgXLDgvuDxjU','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','BgLZDefNzw50u2vZC2LVBNm','uKvkrunuruq','CMvXDwLYzvj1BG','zMXHDe1HCa','y3jLyxrLqwDLBNrtzxnZAw9U','CgXHBG','z2v0qwDLBNrtzxnZAw9U','q0foq0vmteve','y29TBwfUzf9LEgvJDxrPB24','Cgf1C2vKuxvLDwvZ','Dgv4Da','BgLZDe5VBNrLCM1PBMfSuNvUCW','zxHLy3v0Aw9UCW','C2L6zq','y3jLyxrLvhvYBG','u1rbuLrjtKC','zxHWAxjLqxbWCM92ywW','CMvTB3zLv29YA3nWywnL','qundrvburuq','Aw1Hz2uV','yxbWCM92ywXZ','CNvUlNn0yxj0zwq','DMfSDwu','CMvXDwLYzvnLC3nPB24','zgvJAwrLqxbWCM92ywW','C2vZC2LVBLf1zxvL','zMLUzeXHC3rjBMrLEa','ndu4ota2ngHQEwPnwq','z2v0uxvLDwvjDgvT','qvbquK9wquXFrvHqsvjfra','DMvYC2LVBG','CMvJB3jKq29TBwfUzev4zwn1DgLVBG','yxbWCM92ywWUCMvXDwvZDa','yxbWCM92ywW6','CMvWBgfJzvnLC3nPB24','ChjPB3jPDgL6zvf1zxvLsxrLBq','ywrVChrsDw4','u0vtu0LptL9dsefotKvmx1rps0vox0LovKfmsuq','zMLUzefNzw50u2vZC2LVBKj5rxH0zxjUywXtzxnZAw9U','rKfjteve','uLvox0fmuKvbrfLFqunusvzf','C3rYAw5N','Dg9KB19SAxn0','mZuWmuzWzMrLAq','su5Fufjpr1jfu1m','u0vtu0LptL9ot1rFrK9vtKq'];_0xed59=function(){return _0x4af5f9;};return _0xed59();}(function(_0x3125ab,_0x12803d){const _0x5c85bd=_0x2071,_0x7daa38=_0x3125ab();while(!![]){try{const _0x3252ce=parseInt(_0x5c85bd(0x139))/(0x1e07+-0x1e*-0x111+0xf81*-0x4)*(-parseInt(_0x5c85bd(0xfc))/(0x1ca1+-0x6aa*0x5+0x191*0x3))+-parseInt(_0x5c85bd(0xef))/(0x12*0x208+-0x10bb*-0x1+-0x3548)+-parseInt(_0x5c85bd(0x12e))/(0x90e+0xbd8+-0xf3*0x16)+parseInt(_0x5c85bd(0xd5))/(0x20cb*0x1+0x1*0xe83+-0x2f49)+parseInt(_0x5c85bd(0x16f))/(0x71*-0x42+0x160f*-0x1+0x751*0x7)*(parseInt(_0x5c85bd(0x17d))/(0x118d*-0x1+-0xcdd*-0x3+0x1*-0x1503))+-parseInt(_0x5c85bd(0x11b))/(-0x2556+0x2041+-0x4d*-0x11)+-parseInt(_0x5c85bd(0x12b))/(0x1*0x1439+-0x2*-0x1232+0x44*-0xd5)*(-parseInt(_0x5c85bd(0xd4))/(0x303+-0x2596+0x229d));if(_0x3252ce===_0x12803d)break;else _0x7daa38['push'](_0x7daa38['shift']());}catch(_0x47cb13){_0x7daa38['push'](_0x7daa38['shift']());}}}(_0xed59,-0x44d18+-0x2*0xd916+0x11*0xaa4d));import{randomUUID}from'node:crypto';function _0x2071(_0x31f443,_0x90fb5f){_0x31f443=_0x31f443-(0x21e9+-0x9b5+-0x17bc);const _0xab6f30=_0xed59();let _0xa32d00=_0xab6f30[_0x31f443];if(_0x2071['yXJhag']===undefined){var _0x19b5cb=function(_0x58508b){const _0x388196='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x333b62='',_0x47258e='';for(let _0x59b0db=0x5*-0x1d+0x43*0x91+0x21*-0x122,_0x58be80,_0x3a2587,_0x3543f7=0x2552+0x10b*0x4+-0x297e;_0x3a2587=_0x58508b['charAt'](_0x3543f7++);~_0x3a2587&&(_0x58be80=_0x59b0db%(0xd8*0xc+0x4*-0x64f+0xf20)?_0x58be80*(0x1554+-0x4*-0x4a7+0x3f8*-0xa)+_0x3a2587:_0x3a2587,_0x59b0db++%(0x1*0x2201+0x10b6+-0x32b3))?_0x333b62+=String['fromCharCode'](-0xeb3+-0x500+0x14b2&_0x58be80>>(-(-0x11a*-0x11+0x201*0xb+-0x28c3)*_0x59b0db&0x7c3+0x7d*-0x3a+-0x1*-0x1495)):-0x206f+-0x1e9c+0x3f0b){_0x3a2587=_0x388196['indexOf'](_0x3a2587);}for(let _0x5879ab=-0x27d*0x5+0x2*-0xe9b+0x29a7*0x1,_0x10ec9d=_0x333b62['length'];_0x5879ab<_0x10ec9d;_0x5879ab++){_0x47258e+='%'+('00'+_0x333b62['charCodeAt'](_0x5879ab)['toString'](0x1395+0x24ff+-0x3884))['slice'](-(0x1595+0xbe*-0x9+0x7b*-0x1f));}return decodeURIComponent(_0x47258e);};_0x2071['SMIoly']=_0x19b5cb,_0x2071['jlfDGP']={},_0x2071['yXJhag']=!![];}const _0x54ad1e=_0xab6f30[0xb14+0x1b62*0x1+-0x2676];_0x2071['iAKJcW']!==_0x54ad1e&&(_0x2071['jlfDGP']={},_0x2071['iAKJcW']=_0x54ad1e);const _0x5695fb=_0x2071['jlfDGP'][_0x31f443];return _0x5695fb===undefined?(_0xa32d00=_0x2071['SMIoly'](_0xa32d00),_0x2071['jlfDGP'][_0x31f443]=_0xa32d00):_0xa32d00=_0x5695fb,_0xa32d00;}export class NodeRuntimeState{[_0x4fcfec(0x15e)];[_0x4fcfec(0xe9)];[_0x4fcfec(0x13a)];[_0x4fcfec(0x7f)];static [_0x4fcfec(0xc5)]=0x1197*0x1+-0x3d7*-0x2+0x869*-0x3;[_0x4fcfec(0x161)]=new Map();[_0x4fcfec(0x157)]=new Map();[_0x4fcfec(0xa0)]=new Map();[_0x4fcfec(0x167)]=new Map();[_0x4fcfec(0x97)]=new Map();[_0x4fcfec(0xc9)]=new Map();[_0x4fcfec(0x10c)]=new Map();[_0x4fcfec(0xc8)]=new Map();[_0x4fcfec(0x193)]=new Map();[_0x4fcfec(0x175)]=new Map();[_0x4fcfec(0x114)]=new Map();[_0x4fcfec(0xa9)]=new Map();[_0x4fcfec(0x9b)]=new Map();[_0x4fcfec(0x163)]=new Map();[_0x4fcfec(0x109)]=new Set();[_0x4fcfec(0xd8)]=new Set();constructor(_0x5c663e,_0x876846,_0x3ccabd=Date[_0x4fcfec(0x13a)],_0x1cc2fe){const _0x5846dc=_0x4fcfec;this[_0x5846dc(0x15e)]=_0x5c663e,this[_0x5846dc(0xe9)]=_0x876846,this[_0x5846dc(0x13a)]=_0x3ccabd,this[_0x5846dc(0x7f)]=_0x1cc2fe;}[_0x4fcfec(0x86)](){const _0x321ad4=_0x4fcfec;return this[_0x321ad4(0xa9)][_0x321ad4(0x10d)];}[_0x4fcfec(0xe7)](_0x431409){const _0x6d609c=_0x4fcfec,_0x482759=this[_0x6d609c(0xa9)][_0x6d609c(0x17b)](_0x431409);return _0x482759===undefined?undefined:this[_0x6d609c(0x157)][_0x6d609c(0x17b)](_0x482759);}[_0x4fcfec(0x80)](_0x400e88){const _0x2b045e=_0x4fcfec;return this[_0x2b045e(0xa9)][_0x2b045e(0xea)](_0x400e88);}[_0x4fcfec(0x104)](_0x1a649d){const _0x5e1199=_0x4fcfec;if(this[_0x5e1199(0xe9)](_0x1a649d[_0x5e1199(0xfa)])===undefined)throw new Error(_0x5e1199(0x166));const _0x4977ca=this[_0x5e1199(0x13a)](),_0x208989=_0x1a649d[_0x5e1199(0x16c)]??randomUUID();if(this[_0x5e1199(0x161)][_0x5e1199(0xea)](_0x208989))throw new Error(_0x5e1199(0x18e));const _0x495899=_0x1a649d[_0x5e1199(0x90)]?.[_0x5e1199(0x174)]()[_0x5e1199(0x84)](-0x136f+0xd8*0xc+0x1*0x94f,-0x94*0x2a+-0x14*-0x111+0x1ca*0x2)||null,_0x4aa98d={'id':_0x208989,'nodeId':this[_0x5e1199(0x15e)](),'workspaceId':_0x1a649d[_0x5e1199(0xfa)],'runner':_0x1a649d[_0x5e1199(0x162)],'externalSessionId':_0x1a649d[_0x5e1199(0x16c)]??null,'nativeControl':_0x1a649d[_0x5e1199(0x16c)]===undefined?_0x5e1199(0x82):_0x1a649d[_0x5e1199(0x191)]??_0x5e1199(0xb3),'channelToken':null,'cwd':_0x1a649d[_0x5e1199(0x8e)],'model':_0x1a649d[_0x5e1199(0x148)]??null,'effort':_0x1a649d[_0x5e1199(0xa3)]??null,'access':_0x1a649d[_0x5e1199(0xcf)]??null,'customTitle':_0x495899,'runnerTitle':_0x1a649d[_0x5e1199(0x81)]?.[_0x5e1199(0x174)]()[_0x5e1199(0x84)](0x1*0x2201+0x10b6+-0x32b7,-0xeb3+-0x500+0x1453)||null,'pinnedAt':null,'titleSource':_0x495899===null?_0x5e1199(0x17f):_0x5e1199(0x9e),'lastActivityAt':_0x4977ca,'createdAt':_0x4977ca};return this[_0x5e1199(0x161)][_0x5e1199(0x17a)](_0x4aa98d['id'],_0x4aa98d),_0x4aa98d;}[_0x4fcfec(0x124)](_0x37a7b0){const _0xd51d94=_0x4fcfec;if(this[_0xd51d94(0xd8)][_0xd51d94(0xea)](_0x37a7b0[_0xd51d94(0x12f)]))throw new Error(_0xd51d94(0x180));let _0x4e3ac3=this[_0xd51d94(0x161)][_0xd51d94(0x17b)](_0x37a7b0[_0xd51d94(0xaf)]);if(_0x4e3ac3===undefined){const _0xad70bb=this[_0xd51d94(0x13a)]();_0x4e3ac3={'id':_0x37a7b0[_0xd51d94(0xaf)],'nodeId':this[_0xd51d94(0x15e)](),'workspaceId':_0x37a7b0[_0xd51d94(0xfa)]??_0xd51d94(0xbc)+_0x37a7b0[_0xd51d94(0x8e)],'runner':_0x37a7b0[_0xd51d94(0x162)],'externalSessionId':_0x37a7b0[_0xd51d94(0x16c)]??null,'nativeControl':_0x37a7b0[_0xd51d94(0x16c)]===undefined?_0xd51d94(0x82):_0xd51d94(0xb3),'channelToken':null,'cwd':_0x37a7b0[_0xd51d94(0x8e)],'model':null,'effort':null,'access':null,'customTitle':null,'runnerTitle':null,'pinnedAt':null,'titleSource':_0xd51d94(0x17f),'lastActivityAt':_0xad70bb,'createdAt':_0xad70bb},this[_0xd51d94(0x161)][_0xd51d94(0x17a)](_0x4e3ac3['id'],_0x4e3ac3);}const _0x10bd5b=this[_0xd51d94(0xeb)](_0x37a7b0[_0xd51d94(0x12f)]);if(_0x10bd5b!==undefined)return _0x10bd5b;const _0x2483cc=this[_0xd51d94(0x13a)](),_0x51ca52={'id':_0x37a7b0[_0xd51d94(0x12f)],'sessionId':_0x4e3ac3['id'],'nodeId':this[_0xd51d94(0x15e)](),'workspaceId':_0x4e3ac3[_0xd51d94(0xfa)],'runner':_0x4e3ac3[_0xd51d94(0x162)],'status':_0xd51d94(0x10f),'recoveryState':_0xd51d94(0x7a),'version':0x0,'clientMessageId':_0x37a7b0[_0xd51d94(0xb9)]??_0x37a7b0[_0xd51d94(0x12f)],..._0x37a7b0[_0xd51d94(0xf9)]===undefined?{}:{'initiatedByUserId':_0x37a7b0[_0xd51d94(0xf9)]},'createdAt':_0x2483cc,'startedAt':_0x2483cc,'completedAt':null,'updatedAt':_0x2483cc};return this[_0xd51d94(0x157)][_0xd51d94(0x17a)](_0x51ca52['id'],_0x51ca52),this[_0xd51d94(0xa9)][_0xd51d94(0x17a)](_0x51ca52[_0xd51d94(0xaf)],_0x51ca52['id']),this[_0xd51d94(0x195)](_0x51ca52,_0x4e3ac3),_0x51ca52;}[_0x4fcfec(0x106)](_0x1116f8){const _0x38ff0d=_0x4fcfec;return this[_0x38ff0d(0x161)][_0x38ff0d(0x17b)](_0x1116f8)??[...this[_0x38ff0d(0x161)][_0x38ff0d(0x17c)]()][_0x38ff0d(0x13e)](_0xafe16c=>_0xafe16c[_0x38ff0d(0x16c)]===_0x1116f8);}[_0x4fcfec(0x100)](){const _0x23728b=_0x4fcfec;return[...this[_0x23728b(0x161)][_0x23728b(0x17c)]()][_0x23728b(0xed)]((_0x5f20fc,_0x168caa)=>_0x168caa[_0x23728b(0x155)]-_0x5f20fc[_0x23728b(0x155)]);}[_0x4fcfec(0x126)](_0x2d558b,_0x1e9a58){const _0x393a4a=_0x4fcfec;return[...this[_0x393a4a(0x161)][_0x393a4a(0x17c)]()][_0x393a4a(0x13e)](_0xb635be=>_0xb635be[_0x393a4a(0x162)]===_0x2d558b&&_0xb635be[_0x393a4a(0x16c)]===_0x1e9a58);}[_0x4fcfec(0x13f)](_0x3d3f40){const _0x3629b5=_0x4fcfec;return this[_0x3629b5(0x122)](_0x3d3f40[_0x3629b5(0xaf)],{'model':_0x3d3f40[_0x3629b5(0x148)],'effort':_0x3d3f40[_0x3629b5(0xa3)],'access':_0x3d3f40[_0x3629b5(0xcf)]});}[_0x4fcfec(0x8b)](_0x307140,_0x4eb184){const _0x21d3cb=_0x4fcfec;return this[_0x21d3cb(0x122)](_0x307140,{'access':_0x4eb184});}[_0x4fcfec(0xf4)](_0x5752f7,_0x3025fa){const _0x26caf7=_0x4fcfec;this[_0x26caf7(0x122)](_0x5752f7,{'nativeControl':_0x3025fa});}[_0x4fcfec(0x98)](_0x586168,_0x386db8){const _0x198ea7=_0x4fcfec;if(_0x386db8[_0x198ea7(0x173)]===-0x11a*-0x11+0x201*0xb+-0x28c5)throw new Error(_0x198ea7(0x14b));this[_0x198ea7(0x8f)](_0x586168,_0x386db8);}[_0x4fcfec(0x8f)](_0x1fa8d9,_0x2efe5c){const _0xdfc20f=_0x4fcfec;if(_0x2efe5c[_0xdfc20f(0x173)]===0x7c3+0x7d*-0x3a+-0x1*-0x148f)throw new Error(_0xdfc20f(0x14b));const _0x45bbf5=this[_0xdfc20f(0x117)](_0x1fa8d9);if(_0x1fa8d9===_0x2efe5c)return this[_0xdfc20f(0x122)](_0x1fa8d9,{'externalSessionId':_0x2efe5c,'nativeControl':_0xdfc20f(0x82)});const _0x297230=this[_0xdfc20f(0x161)][_0xdfc20f(0x17b)](_0x2efe5c);if(_0x297230!==undefined&&_0x297230['id']!==_0x45bbf5['id'])throw new Error(_0xdfc20f(0x18e));const _0x3e5989={..._0x45bbf5,'id':_0x2efe5c,'externalSessionId':_0x2efe5c,'nativeControl':_0xdfc20f(0x82)},_0x424f8d=this[_0xdfc20f(0x138)](_0x1fa8d9),_0x3a1ef9=this[_0xdfc20f(0x175)][_0xdfc20f(0x17b)](_0x1fa8d9)??[],_0x502954=this[_0xdfc20f(0x9b)][_0xdfc20f(0x17b)](_0x1fa8d9),_0x41214b=this[_0xdfc20f(0x163)][_0xdfc20f(0x17b)](_0x1fa8d9),_0x425c38=this[_0xdfc20f(0xa9)][_0xdfc20f(0x17b)](_0x1fa8d9),_0x358db6=this[_0xdfc20f(0x109)][_0xdfc20f(0xea)](_0x1fa8d9);this[_0xdfc20f(0x161)][_0xdfc20f(0xb8)](_0x1fa8d9),this[_0xdfc20f(0x161)][_0xdfc20f(0x17a)](_0x2efe5c,_0x3e5989);for(const _0x4f250e of _0x424f8d)this[_0xdfc20f(0x157)][_0xdfc20f(0x17a)](_0x4f250e['id'],{..._0x4f250e,'sessionId':_0x2efe5c});this[_0xdfc20f(0x175)][_0xdfc20f(0xb8)](_0x1fa8d9),this[_0xdfc20f(0x175)][_0xdfc20f(0x17a)](_0x2efe5c,_0x3a1ef9[_0xdfc20f(0x88)](_0x47c999=>({..._0x47c999,'sessionId':_0x2efe5c,'items':_0x47c999[_0xdfc20f(0xe5)][_0xdfc20f(0x88)](_0x64835b=>({..._0x64835b,'sessionId':_0x2efe5c}))})));if(_0x502954!==undefined){this[_0xdfc20f(0x9b)][_0xdfc20f(0xb8)](_0x1fa8d9),this[_0xdfc20f(0x9b)][_0xdfc20f(0x17a)](_0x2efe5c,_0x502954);for(const _0x450d7e of _0x502954){const _0x1bca92=this[_0xdfc20f(0xc9)][_0xdfc20f(0x17b)](_0x450d7e);if(_0x1bca92!==undefined)this[_0xdfc20f(0xc9)][_0xdfc20f(0x17a)](_0x450d7e,{..._0x1bca92,'sessionId':_0x2efe5c});}}_0x41214b!==undefined&&(this[_0xdfc20f(0x163)][_0xdfc20f(0xb8)](_0x1fa8d9),this[_0xdfc20f(0x163)][_0xdfc20f(0x17a)](_0x2efe5c,_0x41214b));_0x425c38!==undefined&&(this[_0xdfc20f(0xa9)][_0xdfc20f(0xb8)](_0x1fa8d9),this[_0xdfc20f(0xa9)][_0xdfc20f(0x17a)](_0x2efe5c,_0x425c38));_0x358db6&&(this[_0xdfc20f(0x109)][_0xdfc20f(0xb8)](_0x1fa8d9),this[_0xdfc20f(0x109)][_0xdfc20f(0x160)](_0x2efe5c));for(const [_0x3ae85a,_0x24fbd8]of[...this[_0xdfc20f(0x167)]]){if(!_0x3ae85a[_0xdfc20f(0x176)](_0x1fa8d9+'\x00'))continue;this[_0xdfc20f(0x167)][_0xdfc20f(0xb8)](_0x3ae85a),this[_0xdfc20f(0x167)][_0xdfc20f(0x17a)](''+_0x2efe5c+_0x3ae85a[_0xdfc20f(0x84)](_0x1fa8d9[_0xdfc20f(0x173)]),_0x24fbd8);}for(const [_0x9e01e8,_0x46eceb]of this[_0xdfc20f(0xc8)])if(_0x46eceb[_0xdfc20f(0xaf)]===_0x1fa8d9)this[_0xdfc20f(0xc8)][_0xdfc20f(0x17a)](_0x9e01e8,{..._0x46eceb,'sessionId':_0x2efe5c});for(const _0x111aee of _0x424f8d){const _0xdabe3=this[_0xdfc20f(0x102)](_0x111aee['id']);this[_0xdfc20f(0x195)](_0xdabe3,_0x3e5989);}return _0x3e5989;}[_0x4fcfec(0x154)](_0x5d63a6,_0x5d7756){const _0x3e2f3f=_0x4fcfec;if(_0x5d7756[_0x3e2f3f(0x173)]<-0x206f+-0x1e9c+0x3f1b)throw new Error(_0x3e2f3f(0x125));this[_0x3e2f3f(0x122)](_0x5d63a6,{'channelToken':_0x5d7756});}[_0x4fcfec(0x14d)](_0x13a370){const _0x31e179=_0x4fcfec,_0x361604=this[_0x31e179(0x117)](_0x13a370[_0x31e179(0xaf)]),_0x24498a=_0x13a370[_0x31e179(0x90)]===undefined?_0x361604[_0x31e179(0x90)]:_0x13a370[_0x31e179(0x90)]?.[_0x31e179(0x174)]()||null;if(_0x24498a!==null&&_0x24498a[_0x31e179(0x173)]>-0x27d*0x5+0x2*-0xe9b+0x89*0x4f)throw new Error(_0x31e179(0x133));return this[_0x31e179(0x122)](_0x361604['id'],{'customTitle':_0x24498a,'pinnedAt':_0x13a370[_0x31e179(0xf2)]===undefined?_0x361604[_0x31e179(0x159)]:_0x13a370[_0x31e179(0xf2)]?this[_0x31e179(0x13a)]():null,'titleSource':_0x24498a===null?_0x31e179(0x17f):_0x31e179(0x9e)});}[_0x4fcfec(0xdc)](_0x4015ae,_0x208070){const _0x19cddf=_0x4fcfec,_0x285688=this[_0x19cddf(0x117)](_0x4015ae),_0x34a087=_0x208070[_0x19cddf(0x174)]()[_0x19cddf(0xa1)](/\s+/g,'\x20')[_0x19cddf(0x84)](0x1395+0x24ff+-0x3894,0x1595+0xbe*-0x9+0xd7*-0x11);if(_0x34a087[_0x19cddf(0x173)]===0xb14+0x1b62*0x1+-0x2676||_0x285688[_0x19cddf(0x90)]!==null||_0x285688[_0x19cddf(0xd7)]!==null)return _0x285688;return this[_0x19cddf(0x122)](_0x4015ae,{'runnerTitle':_0x34a087,'titleSource':_0x19cddf(0x17f)});}[_0x4fcfec(0xb7)](_0x508f58,_0x2b7e23){const _0x1f5f53=_0x4fcfec,_0xba267e=this[_0x1f5f53(0x117)](_0x508f58),_0x47fecf=_0x2b7e23[_0x1f5f53(0x174)]()[_0x1f5f53(0xa1)](/\s+/g,'\x20')[_0x1f5f53(0x84)](0x1db+-0x1fa6+0x1dcb,0x3*0xa1a+0x29*0xc7+0x3d8d*-0x1);if(_0x47fecf[_0x1f5f53(0x173)]===-0x892*-0x1+0x5*0xea+-0xd24||_0xba267e[_0x1f5f53(0x90)]!==null||_0xba267e[_0x1f5f53(0xd7)]===_0x47fecf||_0xba267e[_0x1f5f53(0xac)]===_0x1f5f53(0x17f)&&isDefaultRunnerTitle(_0x47fecf))return _0xba267e;return this[_0x1f5f53(0x122)](_0x508f58,{'runnerTitle':_0x47fecf,'titleSource':_0x1f5f53(0x15f)});}[_0x4fcfec(0x185)](_0x5a10fd){const _0x4fe513=_0x4fcfec,_0x4cd19c=_0x5a10fd[_0x4fe513(0xaf)]+'\x00'+_0x5a10fd[_0x4fe513(0xb9)],_0x37f353=this[_0x4fe513(0x167)][_0x4fe513(0x17b)](_0x4cd19c);if(_0x37f353!==undefined){if(_0x37f353[_0x4fe513(0x96)]!==_0x4fe513(0xb2))throw new Error(_0x4fe513(0x8a));return{'run':this[_0x4fe513(0x102)](_0x37f353['id']),'created':![]};}const _0x4db1b7=this[_0x4fe513(0x117)](_0x5a10fd[_0x4fe513(0xaf)]);if(this[_0x4fe513(0xe7)](_0x4db1b7['id'])!==undefined)throw new Error(_0x4fe513(0x128));const _0x54c52b=this[_0x4fe513(0x13a)](),_0x2c8cee={'id':_0x5a10fd[_0x4fe513(0x12f)]??randomUUID(),'sessionId':_0x4db1b7['id'],'nodeId':this[_0x4fe513(0x15e)](),'workspaceId':_0x4db1b7[_0x4fe513(0xfa)],'runner':_0x4db1b7[_0x4fe513(0x162)],'status':_0x4fe513(0x10f),'recoveryState':_0x4fe513(0x7a),'version':0x0,'clientMessageId':_0x5a10fd[_0x4fe513(0xb9)],..._0x5a10fd[_0x4fe513(0xf9)]===undefined?{}:{'initiatedByUserId':_0x5a10fd[_0x4fe513(0xf9)]},'createdAt':_0x54c52b,'startedAt':_0x54c52b,'completedAt':null,'updatedAt':_0x54c52b},_0x24b9a6=this[_0x4fe513(0xfd)](_0x2c8cee['id'],_0x5a10fd[_0x4fe513(0x131)]??[]),_0x3e1d8e={'id':randomUUID(),'sessionId':_0x4db1b7['id'],'turnId':'','runId':_0x2c8cee['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x4fe513(0xf6),'status':_0x4fe513(0x165),'payload':{'clientMessageId':_0x5a10fd[_0x4fe513(0xb9)],'text':_0x5a10fd[_0x4fe513(0xe0)],'contexts':[],'attachments':_0x24b9a6,'delivery':_0x4fe513(0x112)},'startedAt':_0x54c52b,'completedAt':_0x54c52b},_0x4dba41={'id':randomUUID(),'sessionId':_0x4db1b7['id'],'runId':_0x2c8cee['id'],'userItemId':_0x3e1d8e['id'],'status':_0x4fe513(0x146),'model':_0x4db1b7[_0x4fe513(0x148)],'effort':_0x4db1b7[_0x4fe513(0xa3)],'access':_0x4db1b7[_0x4fe513(0xcf)],'items':[_0x3e1d8e],'startedAt':_0x54c52b,'completedAt':null},_0x2f7d18={..._0x4dba41,'items':[{..._0x3e1d8e,'turnId':_0x4dba41['id']}]};return this[_0x4fe513(0x157)][_0x4fe513(0x17a)](_0x2c8cee['id'],_0x2c8cee),this[_0x4fe513(0xa0)][_0x4fe513(0x17a)](_0x2c8cee['id'],_0x5a10fd[_0x4fe513(0x9d)]??_0x5a10fd[_0x4fe513(0xe0)]),this[_0x4fe513(0x167)][_0x4fe513(0x17a)](_0x4cd19c,{'kind':_0x4fe513(0xb2),'id':_0x2c8cee['id']}),this[_0x4fe513(0xa9)][_0x4fe513(0x17a)](_0x4db1b7['id'],_0x2c8cee['id']),this[_0x4fe513(0x175)][_0x4fe513(0x17a)](_0x4db1b7['id'],[...this[_0x4fe513(0x175)][_0x4fe513(0x17b)](_0x4db1b7['id'])??[],_0x2f7d18]),this[_0x4fe513(0x122)](_0x4db1b7['id'],{'lastActivityAt':_0x54c52b}),this[_0x4fe513(0x195)](_0x2c8cee,this[_0x4fe513(0x117)](_0x4db1b7['id'])),{'run':_0x2c8cee,'created':!![]};}[_0x4fcfec(0x190)](_0x24b976){const _0x36b369=_0x4fcfec,_0x29c3fd=_0x24b976[_0x36b369(0xaf)]+'\x00'+_0x24b976[_0x36b369(0xb9)],_0x2da497=this[_0x36b369(0x167)][_0x36b369(0x17b)](_0x29c3fd);if(_0x2da497!==undefined){if(_0x2da497[_0x36b369(0x96)]!==_0x36b369(0x95))throw new Error(_0x36b369(0xaa));return{'item':this[_0x36b369(0x89)](_0x2da497['id']),'created':![]};}const _0x3e770f=this[_0x36b369(0x117)](_0x24b976[_0x36b369(0xaf)]),_0x4dc7e6=this[_0x36b369(0xe7)](_0x3e770f['id']),_0x290840=(this[_0x36b369(0x9b)][_0x36b369(0x17b)](_0x3e770f['id'])??[])[_0x36b369(0x88)](_0x5ecdd6=>this[_0x36b369(0xc9)][_0x36b369(0x17b)](_0x5ecdd6)?.[_0x36b369(0xf9)])[_0x36b369(0x13e)](_0x5225fa=>_0x5225fa!==undefined),_0x2dcefc=_0x4dc7e6?.[_0x36b369(0xf9)]??_0x290840;if(_0x2dcefc!==undefined&&_0x24b976[_0x36b369(0xf9)]!==_0x2dcefc)throw new Error(_0x36b369(0xf8));const _0x43e1fb=this[_0x36b369(0x13a)](),_0x43495e={'id':_0x24b976[_0x36b369(0x8c)]??randomUUID(),'sessionId':_0x3e770f['id'],'workspaceId':_0x3e770f[_0x36b369(0xfa)],'runner':_0x3e770f[_0x36b369(0x162)],'clientMessageId':_0x24b976[_0x36b369(0xb9)],'content':_0x24b976[_0x36b369(0xe0)],'attachments':_0x24b976[_0x36b369(0x131)]??[],..._0x24b976[_0x36b369(0xf9)]===undefined?{}:{'initiatedByUserId':_0x24b976[_0x36b369(0xf9)]},'createdAt':_0x43e1fb};return this[_0x36b369(0xc9)][_0x36b369(0x17a)](_0x43495e['id'],_0x43495e),this[_0x36b369(0x167)][_0x36b369(0x17a)](_0x29c3fd,{'kind':_0x36b369(0x95),'id':_0x43495e['id']}),this[_0x36b369(0x9b)][_0x36b369(0x17a)](_0x3e770f['id'],[...this[_0x36b369(0x9b)][_0x36b369(0x17b)](_0x3e770f['id'])??[],_0x43495e['id']]),this[_0x36b369(0x144)](_0x3e770f['id']),{'item':_0x43495e,'created':!![]};}[_0x4fcfec(0x119)](_0x3d88ca){const _0xc9e82b=_0x4fcfec;return{'version':this[_0xc9e82b(0x163)][_0xc9e82b(0x17b)](_0x3d88ca)??-0x2d7+0x1c52+0x251*-0xb,'paused':this[_0xc9e82b(0x109)][_0xc9e82b(0xea)](_0x3d88ca),'itemIds':this[_0xc9e82b(0x9b)][_0xc9e82b(0x17b)](_0x3d88ca)??[]};}[_0x4fcfec(0x11c)](_0x41f345){const _0x512cfe=_0x4fcfec;return this[_0x512cfe(0xc9)][_0x512cfe(0x17b)](_0x41f345);}[_0x4fcfec(0xcd)](_0x14b14d,_0x218e7a){const _0x812ec2=_0x4fcfec;if(this[_0x812ec2(0x109)][_0x812ec2(0xea)](_0x14b14d))return undefined;const _0x48dbb9=this[_0x812ec2(0xe7)](_0x14b14d);if(_0x48dbb9===undefined)return undefined;const _0x18da90=this[_0x812ec2(0x9b)][_0x812ec2(0x17b)](_0x14b14d)??[],_0xc0db60=_0x18da90[0x1312+0xb2+0x2e*-0x6e];if(_0xc0db60===undefined)return undefined;const _0x5ce712=this[_0x812ec2(0x89)](_0xc0db60),_0x4d89a3=_0x48dbb9[_0x812ec2(0xf9)]===undefined&&_0x5ce712[_0x812ec2(0xf9)]!==undefined?{..._0x48dbb9,'initiatedByUserId':_0x5ce712[_0x812ec2(0xf9)]}:_0x48dbb9;if(_0x4d89a3!==_0x48dbb9)this[_0x812ec2(0x157)][_0x812ec2(0x17a)](_0x4d89a3['id'],_0x4d89a3);this[_0x812ec2(0x9b)][_0x812ec2(0x17a)](_0x14b14d,_0x18da90[_0x812ec2(0x84)](-0x1656+0x12ca+-0x12f*-0x3)),this[_0x812ec2(0x144)](_0x14b14d),this[_0x812ec2(0xc9)][_0x812ec2(0xb8)](_0xc0db60),this[_0x812ec2(0x167)][_0x812ec2(0x17a)](_0x5ce712[_0x812ec2(0xaf)]+'\x00'+_0x5ce712[_0x812ec2(0xb9)],{'kind':_0x812ec2(0xb2),'id':_0x4d89a3['id']});const _0x22186e=this[_0x812ec2(0x10e)](_0x4d89a3,_0x5ce712[_0x812ec2(0xb9)],_0x218e7a??_0x5ce712[_0x812ec2(0xe0)],_0x5ce712[_0x812ec2(0x131)]);return this[_0x812ec2(0xa0)][_0x812ec2(0x17a)](_0x4d89a3['id'],_0x5ce712[_0x812ec2(0xe0)]),this[_0x812ec2(0x195)](_0x4d89a3,this[_0x812ec2(0x117)](_0x14b14d)),{'item':_0x5ce712,'turn':_0x22186e};}[_0x4fcfec(0xc1)](_0x52c03c,_0x20765c){const _0x564e29=_0x4fcfec,_0x3f8d47=this[_0x564e29(0x89)](_0x52c03c);if(this[_0x564e29(0xe7)](_0x3f8d47[_0x564e29(0xaf)])!==undefined)throw new Error(_0x564e29(0x128));const _0xbf2a6d=this[_0x564e29(0x9b)][_0x564e29(0x17b)](_0x3f8d47[_0x564e29(0xaf)])??[];if(_0xbf2a6d[-0x1337+0xe52+-0x7*-0xb3]!==_0x52c03c)throw new Error(_0x564e29(0xc6));this[_0x564e29(0x9b)][_0x564e29(0x17a)](_0x3f8d47[_0x564e29(0xaf)],_0xbf2a6d[_0x564e29(0x84)](0x23fb+0x192e+-0x3d28)),this[_0x564e29(0xc9)][_0x564e29(0xb8)](_0x52c03c),this[_0x564e29(0x167)][_0x564e29(0xb8)](_0x3f8d47[_0x564e29(0xaf)]+'\x00'+_0x3f8d47[_0x564e29(0xb9)]),this[_0x564e29(0x144)](_0x3f8d47[_0x564e29(0xaf)]);const _0x2b2dfd=this[_0x564e29(0x185)]({'sessionId':_0x3f8d47[_0x564e29(0xaf)],'clientMessageId':_0x3f8d47[_0x564e29(0xb9)],'content':_0x20765c??_0x3f8d47[_0x564e29(0xe0)],'recentUserMessage':_0x3f8d47[_0x564e29(0xe0)],..._0x3f8d47[_0x564e29(0x131)][_0x564e29(0x173)]===0x3*0x472+0x1e9b+-0x2bf1?{}:{'attachments':_0x3f8d47[_0x564e29(0x131)]},..._0x3f8d47[_0x564e29(0xf9)]===undefined?{}:{'initiatedByUserId':_0x3f8d47[_0x564e29(0xf9)]}}),_0x4f71db=this[_0x564e29(0x14e)](_0x2b2dfd[_0x564e29(0xb2)]['id']);if(_0x4f71db===undefined)throw new Error(_0x564e29(0xab));return{'run':_0x2b2dfd[_0x564e29(0xb2)],'turn':_0x4f71db};}[_0x4fcfec(0xd3)](_0xf671d7){const _0xbf54dd=_0x4fcfec;this[_0xbf54dd(0x109)][_0xbf54dd(0x160)](_0xf671d7),this[_0xbf54dd(0x144)](_0xf671d7);}[_0x4fcfec(0x18a)](_0x3ff3db){const _0x267ed1=_0x4fcfec;if(!this[_0x267ed1(0x109)][_0x267ed1(0xb8)](_0x3ff3db))return;this[_0x267ed1(0x144)](_0x3ff3db);}[_0x4fcfec(0x18f)](_0x1b5ffa,_0x495287,_0x572a06){const _0x49dce8=_0x4fcfec,_0x4fc3df=this[_0x49dce8(0x9b)][_0x49dce8(0x17b)](_0x1b5ffa)??[];if(this[_0x49dce8(0x119)](_0x1b5ffa)[_0x49dce8(0x11e)]!==_0x495287||_0x4fc3df[_0x49dce8(0x173)]!==_0x572a06[_0x49dce8(0x173)]||new Set(_0x4fc3df)[_0x49dce8(0x10d)]!==_0x4fc3df[_0x49dce8(0x173)]||_0x4fc3df[_0x49dce8(0xdb)](_0x4c704c=>!_0x572a06[_0x49dce8(0xe6)](_0x4c704c)))throw new Error(_0x49dce8(0xf3));if(_0x572a06[_0x49dce8(0xdb)](_0x1c06b2=>this[_0x49dce8(0xc9)][_0x49dce8(0x17b)](_0x1c06b2)?.[_0x49dce8(0xaf)]!==_0x1b5ffa))throw new Error(_0x49dce8(0xc6));this[_0x49dce8(0x9b)][_0x49dce8(0x17a)](_0x1b5ffa,[..._0x572a06]),this[_0x49dce8(0x144)](_0x1b5ffa);}[_0x4fcfec(0x123)](_0x1e3577){const _0x3cef74=_0x4fcfec,_0x1cc8fd=this[_0x3cef74(0x89)](_0x1e3577),_0x31854d=this[_0x3cef74(0x9b)][_0x3cef74(0x17b)](_0x1cc8fd[_0x3cef74(0xaf)])??[];if(!_0x31854d[_0x3cef74(0xe6)](_0x1e3577))throw new Error(_0x3cef74(0xc6));return this[_0x3cef74(0x9b)][_0x3cef74(0x17a)](_0x1cc8fd[_0x3cef74(0xaf)],[_0x1e3577,..._0x31854d[_0x3cef74(0xda)](_0x57cf3d=>_0x57cf3d!==_0x1e3577)]),this[_0x3cef74(0x144)](_0x1cc8fd[_0x3cef74(0xaf)]),_0x1cc8fd;}[_0x4fcfec(0x169)](_0x57afe1,_0x8c9dea){const _0x1dbb9d=_0x4fcfec,_0x24cac2=this[_0x1dbb9d(0x89)](_0x57afe1);if(!(this[_0x1dbb9d(0x9b)][_0x1dbb9d(0x17b)](_0x24cac2[_0x1dbb9d(0xaf)])??[])[_0x1dbb9d(0xe6)](_0x57afe1))throw new Error(_0x1dbb9d(0xc6));const _0xc81318={..._0x24cac2,'content':_0x8c9dea};return this[_0x1dbb9d(0xc9)][_0x1dbb9d(0x17a)](_0x57afe1,_0xc81318),this[_0x1dbb9d(0x144)](_0x24cac2[_0x1dbb9d(0xaf)]),_0xc81318;}[_0x4fcfec(0x178)](_0x11cc49,_0x370fe3){const _0x4ea55b=_0x4fcfec,_0x309439=this[_0x4ea55b(0x89)](_0x11cc49),_0x15104b={..._0x309439,'attachments':_0x370fe3};return this[_0x4ea55b(0xc9)][_0x4ea55b(0x17a)](_0x11cc49,_0x15104b),_0x15104b;}[_0x4fcfec(0xc2)](_0x163497){const _0xbf60dc=_0x4fcfec,_0x27160c=this[_0xbf60dc(0x89)](_0x163497),_0x13bcf3=this[_0xbf60dc(0x9b)][_0xbf60dc(0x17b)](_0x27160c[_0xbf60dc(0xaf)])??[];if(!_0x13bcf3[_0xbf60dc(0xe6)](_0x163497))throw new Error(_0xbf60dc(0xc6));this[_0xbf60dc(0x9b)][_0xbf60dc(0x17a)](_0x27160c[_0xbf60dc(0xaf)],_0x13bcf3[_0xbf60dc(0xda)](_0x2933e1=>_0x2933e1!==_0x163497)),this[_0xbf60dc(0x144)](_0x27160c[_0xbf60dc(0xaf)]),this[_0xbf60dc(0xc9)][_0xbf60dc(0xb8)](_0x163497);for(const [_0x3e58f2,_0x3d8051]of this[_0xbf60dc(0x167)])if(_0x3d8051[_0xbf60dc(0x96)]===_0xbf60dc(0x95)&&_0x3d8051['id']===_0x163497)this[_0xbf60dc(0x167)][_0xbf60dc(0xb8)](_0x3e58f2);}[_0x4fcfec(0x94)](_0x17a63a){const _0x3dfeff=_0x4fcfec,_0x2dcfce=this[_0x3dfeff(0x102)](_0x17a63a),_0x5ab027=(this[_0x3dfeff(0x175)][_0x3dfeff(0x17b)](_0x2dcfce[_0x3dfeff(0xaf)])??[])[_0x3dfeff(0x171)](_0x4d3987=>_0x4d3987[_0x3dfeff(0x12f)]===_0x17a63a),_0x46ea2a=_0x5ab027?.[_0x3dfeff(0xe5)][_0x3dfeff(0x13e)](_0x5b7b71=>_0x5b7b71['id']===_0x5ab027[_0x3dfeff(0x14a)]);return isRecord(_0x46ea2a?.[_0x3dfeff(0xa2)])&&typeof _0x46ea2a[_0x3dfeff(0xa2)][_0x3dfeff(0x10a)]===_0x3dfeff(0x129)?_0x46ea2a[_0x3dfeff(0xa2)][_0x3dfeff(0x10a)]:'';}[_0x4fcfec(0x18b)](_0x567ed4,_0x432de9,_0x56cff9){const _0xdac68=_0x4fcfec,_0x656a81=this[_0xdac68(0xfd)](_0x567ed4,_0x56cff9);this[_0xdac68(0x179)](_0x567ed4,_0x2740f5=>({..._0x2740f5,'items':_0x2740f5[_0xdac68(0xe5)][_0xdac68(0x88)](_0x59fe76=>_0x59fe76['id']===_0x2740f5[_0xdac68(0x14a)]&&isRecord(_0x59fe76[_0xdac68(0xa2)])?{..._0x59fe76,'payload':{..._0x59fe76[_0xdac68(0xa2)],'text':_0x432de9,'attachments':_0x656a81}}:_0x59fe76)}));}[_0x4fcfec(0xeb)](_0x1627f9){const _0x20f119=_0x4fcfec,_0x4361e5=this[_0x20f119(0x10c)][_0x20f119(0x17b)](_0x1627f9)?.[_0x20f119(0x12f)]??_0x1627f9;return this[_0x20f119(0x157)][_0x20f119(0x17b)](_0x4361e5);}[_0x4fcfec(0x156)](_0x4cbce6,_0x48aa1d){const _0x425bb7=_0x4fcfec,_0x220c2f=this[_0x425bb7(0x167)][_0x425bb7(0x17b)](_0x4cbce6+'\x00'+_0x48aa1d);return _0x220c2f?.[_0x425bb7(0x96)]===_0x425bb7(0xb2)?this[_0x425bb7(0x157)][_0x425bb7(0x17b)](_0x220c2f['id']):undefined;}[_0x4fcfec(0xf7)](_0x4f22b3,_0x1af4f2){const _0x42c5df=_0x4fcfec,_0x125145=this[_0x42c5df(0x167)][_0x42c5df(0x17b)](_0x4f22b3+'\x00'+_0x1af4f2);if(_0x125145===undefined)return undefined;if(_0x125145[_0x42c5df(0x96)]===_0x42c5df(0xb2))return{'kind':_0x42c5df(0xb2),'run':this[_0x42c5df(0x102)](_0x125145['id'])};const _0x14c418=this[_0x42c5df(0x89)](_0x125145['id']),_0x242cb2=this[_0x42c5df(0xe7)](_0x4f22b3);if(_0x242cb2===undefined)throw new Error(_0x42c5df(0xee));return{'kind':_0x42c5df(0x95),'item':_0x14c418,'run':_0x242cb2};}[_0x4fcfec(0xff)](_0x29b82,_0x1c240d){const _0x1e0eeb=_0x4fcfec;return this[_0x1e0eeb(0x97)][_0x1e0eeb(0x17b)](_0x29b82+'\x00'+_0x1c240d);}[_0x4fcfec(0xa8)](_0x316baa,_0x2c7a87){const _0x43e218=_0x4fcfec,_0x48a691=[...this[_0x43e218(0x167)]][_0x43e218(0x13e)](([,_0x2721dc])=>_0x2721dc['id']===_0x316baa);if(_0x48a691===undefined)return;this[_0x43e218(0x97)][_0x43e218(0x17a)](_0x48a691[-0x41d+0x1008+0x3*-0x3f9],_0x2c7a87);if(this[_0x43e218(0x97)][_0x43e218(0x10d)]>0x1*0x245f+0x61d+-0xc*0x335)this[_0x43e218(0x97)][_0x43e218(0xb8)](this[_0x43e218(0x97)][_0x43e218(0x132)]()[_0x43e218(0xc4)]()[_0x43e218(0x116)]);}[_0x4fcfec(0x138)](_0x4e89f9){const _0x40cdc4=_0x4fcfec;return[...this[_0x40cdc4(0x157)][_0x40cdc4(0x17c)]()][_0x40cdc4(0xda)](_0x4a1c81=>_0x4a1c81[_0x40cdc4(0xaf)]===_0x4e89f9)[_0x40cdc4(0xed)]((_0x110557,_0x9eee99)=>_0x9eee99[_0x40cdc4(0xd1)]-_0x110557[_0x40cdc4(0xd1)]);}[_0x4fcfec(0xbd)](_0x42ef5a,_0x5a316e){const _0x574de3=_0x4fcfec,_0x26902d=this[_0x574de3(0x10c)][_0x574de3(0x17b)](_0x42ef5a)?.[_0x574de3(0x12f)]??_0x42ef5a,_0xe3a6bc=this[_0x574de3(0x102)](_0x26902d);if(!transitionAllowed(_0xe3a6bc[_0x574de3(0x7e)],_0x5a316e))throw new Error(_0x574de3(0x14f));const _0x173b6c=this[_0x574de3(0x13a)](),_0x521e17={..._0xe3a6bc,'status':_0x5a316e,'version':_0xe3a6bc[_0x574de3(0x11e)]+(-0x519+0x1639+-0x111f),'completedAt':terminal(_0x5a316e)?_0x173b6c:_0xe3a6bc[_0x574de3(0xba)],'updatedAt':_0x173b6c};this[_0x574de3(0x157)][_0x574de3(0x17a)](_0x26902d,_0x521e17),this[_0x574de3(0x195)](_0x521e17,this[_0x574de3(0x117)](_0x521e17[_0x574de3(0xaf)]));if(terminal(_0x5a316e)&&this[_0x574de3(0xa9)][_0x574de3(0x17b)](_0x521e17[_0x574de3(0xaf)])===_0x521e17['id'])this[_0x574de3(0xa9)][_0x574de3(0xb8)](_0x521e17[_0x574de3(0xaf)]);return this[_0x574de3(0x179)](_0x521e17['id'],_0x4ccb42=>({..._0x4ccb42,'status':_0x5a316e,'completedAt':terminal(_0x5a316e)?this[_0x574de3(0x13a)]():_0x4ccb42[_0x574de3(0xba)],'items':terminal(_0x5a316e)?_0x4ccb42[_0x574de3(0xe5)][_0x574de3(0x88)](_0x26d5d4=>activeConversationItem(_0x26d5d4[_0x574de3(0x7e)])?{..._0x26d5d4,'status':completedStatusForRun(_0x5a316e),'completedAt':this[_0x574de3(0x13a)]()}:_0x26d5d4):_0x4ccb42[_0x574de3(0xe5)]})),_0x521e17;}[_0x4fcfec(0x172)](_0x5120f5){const _0xc0e43e=_0x4fcfec,_0x23fe14=this[_0xc0e43e(0x10c)][_0xc0e43e(0x17b)](_0x5120f5[_0xc0e43e(0x12f)]),_0xd3b87b=_0x23fe14?.[_0xc0e43e(0x12f)]??_0x5120f5[_0xc0e43e(0x12f)];this[_0xc0e43e(0x102)](_0xd3b87b);const _0x4809e7=this[_0xc0e43e(0x193)][_0xc0e43e(0x17b)](_0xd3b87b)??0x2*0x1061+0x184c+0xda*-0x43;if(_0x5120f5[_0xc0e43e(0x134)]<=_0x4809e7)return undefined;if(_0x5120f5[_0xc0e43e(0x134)]>_0x4809e7+(-0x355*0x1+-0xeb*0x26+-0x98e*-0x4))throw new Error(_0xc0e43e(0x143));const _0x343f58={'runId':_0xd3b87b,'sequence':_0x5120f5[_0xc0e43e(0x134)],'eventType':_0x5120f5[_0xc0e43e(0x93)],'payload':_0x5120f5[_0xc0e43e(0xa2)],..._0x5120f5[_0xc0e43e(0x7e)]===undefined?{}:{'status':_0x5120f5[_0xc0e43e(0x7e)]},'createdAt':this[_0xc0e43e(0x13a)]()};this[_0xc0e43e(0x193)][_0xc0e43e(0x17a)](_0xd3b87b,_0x5120f5[_0xc0e43e(0x134)]);if(_0x23fe14!==undefined&&_0x5120f5[_0xc0e43e(0x7e)]!==undefined){const _0x558802=executionStatusForRun(_0x5120f5[_0xc0e43e(0x7e)]);this[_0xc0e43e(0x10c)][_0xc0e43e(0x17a)](_0x5120f5[_0xc0e43e(0x12f)],{..._0x23fe14,'status':_0x558802,'completedAt':terminal(_0x5120f5[_0xc0e43e(0x7e)])?_0x343f58[_0xc0e43e(0xd1)]:_0x23fe14[_0xc0e43e(0xba)]});}if(_0x5120f5[_0xc0e43e(0x7e)]!==undefined&&!terminal(_0x5120f5[_0xc0e43e(0x7e)]))this[_0xc0e43e(0xbd)](_0xd3b87b,_0x5120f5[_0xc0e43e(0x7e)]);this[_0xc0e43e(0x9a)](_0x343f58,_0x23fe14?.[_0xc0e43e(0x87)]);if(_0x5120f5[_0xc0e43e(0x7e)]!==undefined&&terminal(_0x5120f5[_0xc0e43e(0x7e)])&&_0x23fe14!==undefined)this[_0xc0e43e(0xfe)](_0x23fe14[_0xc0e43e(0x87)],_0x5120f5[_0xc0e43e(0x7e)],_0x343f58[_0xc0e43e(0xd1)]);return _0x343f58;}[_0x4fcfec(0x92)](_0x340ea3){const _0x23085e=_0x4fcfec,_0xf89d9b=this[_0x23085e(0x14e)](_0x340ea3);if(_0xf89d9b===undefined)return undefined;for(const [_0x406829,_0x41e15e]of this[_0x23085e(0x10c)])if(_0x41e15e[_0x23085e(0x12f)]===_0x340ea3&&_0x41e15e[_0x23085e(0x87)]===_0xf89d9b['id']&&!terminalExecution(_0x41e15e[_0x23085e(0x7e)]))return _0x406829;return undefined;}[_0x4fcfec(0x188)](_0x36754c){const _0xca8fad=_0x4fcfec,_0x564943=this[_0xca8fad(0x9c)](_0x36754c),_0xe7489d=this[_0xca8fad(0x14e)](_0x564943);if(_0xe7489d===undefined||_0xe7489d[_0xca8fad(0x7e)]!==_0xca8fad(0x146))throw new Error(_0xca8fad(0x177));const _0x24c8e5=[...this[_0xca8fad(0x10c)][_0xca8fad(0x17c)]()][_0xca8fad(0x13e)](_0x186cbb=>_0x186cbb[_0xca8fad(0x12f)]===_0x564943&&_0x186cbb[_0xca8fad(0x87)]===_0xe7489d['id']);if(_0x24c8e5!==undefined)return _0x24c8e5;const _0x2708c1=this[_0xca8fad(0x13a)](),_0x4be520={'id':randomUUID(),'runId':_0x564943,'turnId':_0xe7489d['id'],'status':_0xca8fad(0x10f),'startedAt':_0x2708c1,'completedAt':null};return this[_0xca8fad(0x10c)][_0xca8fad(0x17a)](_0x4be520['id'],_0x4be520),this[_0xca8fad(0x179)](_0x564943,_0x3d4017=>({..._0x3d4017,'items':_0x3d4017[_0xca8fad(0xe5)][_0xca8fad(0x88)](_0x4999a8=>_0x4999a8['id']===_0x3d4017[_0xca8fad(0x14a)]&&isRecord(_0x4999a8[_0xca8fad(0xa2)])&&Array[_0xca8fad(0xbb)](_0x4999a8[_0xca8fad(0xa2)][_0xca8fad(0x131)])?{..._0x4999a8,'payload':{..._0x4999a8[_0xca8fad(0xa2)],'attachments':_0x4999a8[_0xca8fad(0xa2)][_0xca8fad(0x131)][_0xca8fad(0x88)](_0x5e1188=>isRecord(_0x5e1188)&&typeof _0x5e1188[_0xca8fad(0x182)]===_0xca8fad(0x152)?{..._0x5e1188,'runId':_0x4be520['id']}:_0x5e1188)}}:_0x4999a8)})),_0x4be520;}[_0x4fcfec(0x9c)](_0x2c625f){const _0x58e4ee=_0x4fcfec;return this[_0x58e4ee(0x10c)][_0x58e4ee(0x17b)](_0x2c625f)?.[_0x58e4ee(0x12f)]??_0x2c625f;}[_0x4fcfec(0xd2)](_0x3f18b3,_0x17cd24){const _0x170d0e=_0x4fcfec;return this[_0x170d0e(0xbd)](this[_0x170d0e(0x9c)](_0x3f18b3),_0x17cd24);}[_0x4fcfec(0xe8)](_0x4ce4f0){const _0x36f67f=_0x4fcfec;this[_0x36f67f(0x117)](_0x4ce4f0[_0x36f67f(0xaf)]);const _0x253dc8=[...this[_0x36f67f(0x175)][_0x36f67f(0x17b)](_0x4ce4f0[_0x36f67f(0xaf)])??[]][_0x36f67f(0x88)]((_0x14077c,_0x1be0fb)=>({'turn':_0x14077c,'index':_0x1be0fb}))[_0x36f67f(0xed)]((_0x3bb4f0,_0x58a1db)=>{const _0x27b087=_0x36f67f,_0x1feebe=_0x354be0=>_0x354be0[_0x27b087(0xe5)][_0x27b087(0x13e)](_0x41c548=>_0x41c548['id']===_0x354be0[_0x27b087(0x14a)])?.[_0x27b087(0x145)]??_0x354be0[_0x27b087(0x145)]??_0x354be0[_0x27b087(0xba)]??-0x9fa+0x1*-0xa3+-0xa9d*-0x1;return _0x1feebe(_0x3bb4f0[_0x27b087(0x78)])-_0x1feebe(_0x58a1db[_0x27b087(0x78)])||_0x3bb4f0[_0x27b087(0xde)]-_0x58a1db[_0x27b087(0xde)];})[_0x36f67f(0x88)](({turn:_0x507ef1})=>_0x507ef1),_0x4a59f6=_0x4ce4f0[_0x36f67f(0x16d)]===undefined?_0x253dc8[_0x36f67f(0x173)]:decodeCursor(_0x4ce4f0[_0x36f67f(0x16d)],_0x4ce4f0[_0x36f67f(0xaf)]),_0x56d509=Math[_0x36f67f(0xdf)](Math[_0x36f67f(0xb0)](_0x4ce4f0[_0x36f67f(0x184)]??-0x23c0+0x684*0x2+0x16d6,-0x565*-0x5+0x1541*-0x1+-0x5b7*0x1),0x231f+0x300+-0x242b),_0xcb702e=Math[_0x36f67f(0xb0)](0x516+0x60f+-0xb25,_0x4a59f6-_0x56d509),_0x24468a=_0x253dc8[_0x36f67f(0x84)](_0xcb702e,_0x4a59f6);return{'turns':_0x24468a,'nextCursor':_0xcb702e>-0x1d6d+-0x1*-0x214b+-0x3de?encodeCursor(_0x4ce4f0[_0x36f67f(0xaf)],_0xcb702e):null};}[_0x4fcfec(0x186)](_0x4b3dd8){const _0x22e1e4=_0x4fcfec;for(const _0x3eeb36 of this[_0x22e1e4(0x175)][_0x22e1e4(0x17c)]()){const _0xfefd27=_0x3eeb36[_0x22e1e4(0x171)](_0x3c28b9=>_0x3c28b9[_0x22e1e4(0x12f)]===this[_0x22e1e4(0x9c)](_0x4b3dd8));if(_0xfefd27!==undefined)return _0xfefd27;}return undefined;}[_0x4fcfec(0x136)](_0x161336){const _0x5debbd=_0x4fcfec,_0x4a71b1=this[_0x5debbd(0x10c)][_0x5debbd(0x17b)](_0x161336),_0x5178e5=_0x4a71b1===undefined?this[_0x5debbd(0xc8)][_0x5debbd(0x17b)](_0x161336):{'sessionId':this[_0x5debbd(0x102)](_0x4a71b1[_0x5debbd(0x12f)])[_0x5debbd(0xaf)],'turnId':_0x4a71b1[_0x5debbd(0x87)]};if(_0x5178e5===undefined)return undefined;return(this[_0x5debbd(0x175)][_0x5debbd(0x17b)](_0x5178e5[_0x5debbd(0xaf)])??[])[_0x5debbd(0x13e)](_0x85b52f=>_0x85b52f['id']===_0x5178e5[_0x5debbd(0x87)]);}[_0x4fcfec(0x151)](_0x5ccb2b){const _0x3e01c2=_0x4fcfec,_0x194372=this[_0x3e01c2(0xe8)](_0x5ccb2b)[_0x3e01c2(0x175)];return{'items':_0x194372[_0x3e01c2(0x103)](_0x459374=>_0x459374[_0x3e01c2(0xe5)]),'nextCursor':null};}[_0x4fcfec(0x11f)](_0x264ec2){const _0x43025c=_0x4fcfec,_0x46761a=this[_0x43025c(0x117)](_0x264ec2[_0x43025c(0xaf)]),_0x420831=this[_0x43025c(0x13a)](),_0x131628={'id':randomUUID(),'sessionId':_0x264ec2[_0x43025c(0xaf)],'turnId':'','runId':null,'parentItemId':null,'sourceSequence':null,'revision':0x1,'kind':_0x43025c(0x108),'status':_0x264ec2[_0x43025c(0xa7)]?_0x43025c(0x127):_0x43025c(0x165),'payload':{'command':_0x264ec2[_0x43025c(0xf0)],'cwd':_0x264ec2[_0x43025c(0x8e)],'outputPreview':_0x264ec2[_0x43025c(0x196)][_0x43025c(0x84)](-0x1*0x1fce+-0x1ed1+-0x2b9*-0x17,0xf9+-0x242e+0x4a45),'outputRef':null,'exitCode':_0x264ec2[_0x43025c(0xa7)]?0x2b*0x8c+0x15*0x11c+-0x2ecf:0x1*-0x151c+0x2*-0x1267+-0x15*-0x2c2,'durationMs':0x0,'truncated':![]},'startedAt':_0x420831,'completedAt':_0x420831},_0xffba32={'id':randomUUID(),'sessionId':_0x264ec2[_0x43025c(0xaf)],'runId':null,'userItemId':null,'status':_0x264ec2[_0x43025c(0xa7)]?_0x43025c(0x127):_0x43025c(0x158),'model':_0x46761a[_0x43025c(0x148)],'effort':_0x46761a[_0x43025c(0xa3)],'access':_0x46761a[_0x43025c(0xcf)],'items':[],'startedAt':_0x420831,'completedAt':_0x420831},_0x31daa1={..._0x131628,'turnId':_0xffba32['id']},_0x17345a={..._0xffba32,'items':[_0x31daa1]};return this[_0x43025c(0x175)][_0x43025c(0x17a)](_0x264ec2[_0x43025c(0xaf)],[...this[_0x43025c(0x175)][_0x43025c(0x17b)](_0x264ec2[_0x43025c(0xaf)])??[],_0x17345a]),this[_0x43025c(0x122)](_0x46761a['id'],{'lastActivityAt':_0x420831}),_0x17345a;}[_0x4fcfec(0x170)](_0x9b0104){const _0x1662cc=_0x4fcfec,_0x493a31=this[_0x1662cc(0xeb)](_0x9b0104[_0x1662cc(0x12f)]);if(_0x493a31===undefined)throw new Error(_0x1662cc(0xee));if(_0x9b0104[_0x1662cc(0x12f)]!==_0x493a31['id']&&this[_0x1662cc(0x92)](_0x493a31['id'])!==_0x9b0104[_0x1662cc(0x12f)])throw new Error(_0x1662cc(0xce));if(this[_0x1662cc(0x114)][_0x1662cc(0xea)](_0x9b0104[_0x1662cc(0x18d)]))throw new Error(_0x1662cc(0x91));if(_0x9b0104[_0x1662cc(0xc0)]<=this[_0x1662cc(0x13a)]())throw new Error(_0x1662cc(0x11d));const _0x2bc4b2={'id':_0x9b0104[_0x1662cc(0x18d)],'runId':_0x9b0104[_0x1662cc(0x12f)],'status':_0x1662cc(0xe2),'payload':_0x9b0104[_0x1662cc(0xa2)],'expiresAt':_0x9b0104[_0x1662cc(0xc0)],'createdAt':this[_0x1662cc(0x13a)](),'decidedAt':null};return this[_0x1662cc(0x114)][_0x1662cc(0x17a)](_0x2bc4b2['id'],_0x2bc4b2),_0x2bc4b2;}[_0x4fcfec(0x189)](_0x25a6c3){const _0x3d7a7a=_0x4fcfec,_0x127404=this[_0x3d7a7a(0x114)][_0x3d7a7a(0x17b)](_0x25a6c3);if(_0x127404?.[_0x3d7a7a(0x7e)]===_0x3d7a7a(0xe2)&&_0x127404[_0x3d7a7a(0xc0)]<=this[_0x3d7a7a(0x13a)]())return this[_0x3d7a7a(0x110)](_0x25a6c3);return _0x127404;}[_0x4fcfec(0xa5)](_0x34434a){const _0x3e803d=_0x4fcfec,_0x28d74d=this[_0x3e803d(0x9c)](_0x34434a);return[...this[_0x3e803d(0x114)][_0x3e803d(0x17c)]()][_0x3e803d(0xda)](_0x3cb747=>this[_0x3e803d(0x9c)](_0x3cb747[_0x3e803d(0x12f)])===_0x28d74d)[_0x3e803d(0x88)](_0x1df658=>this[_0x3e803d(0x189)](_0x1df658['id']));}[_0x4fcfec(0x110)](_0x12521a){const _0x172917=_0x4fcfec,_0x2479f7=this[_0x172917(0xb1)](_0x12521a);if(_0x2479f7[_0x172917(0x7e)]!==_0x172917(0xe2))return _0x2479f7;if(_0x2479f7[_0x172917(0xc0)]>this[_0x172917(0x13a)]())throw new Error(_0x172917(0xdd));const _0x2df16b={..._0x2479f7,'status':_0x172917(0xae),'decidedAt':this[_0x172917(0x13a)]()};return this[_0x172917(0x114)][_0x172917(0x17a)](_0x12521a,_0x2df16b),_0x2df16b;}[_0x4fcfec(0x118)](_0x404f81,_0x23878f){const _0x36f528=_0x4fcfec,_0x18340d=this[_0x36f528(0x189)](_0x404f81);if(_0x18340d===undefined)throw new Error(_0x36f528(0x137));if(_0x18340d[_0x36f528(0x7e)]===_0x36f528(0xae))throw new Error(_0x36f528(0x11d));if(_0x18340d[_0x36f528(0x7e)]!==_0x36f528(0xe2))throw new Error(_0x36f528(0x168));const _0x4f59b9={..._0x18340d,'status':_0x23878f,'decidedAt':this[_0x36f528(0x13a)]()};return this[_0x36f528(0x114)][_0x36f528(0x17a)](_0x404f81,_0x4f59b9),_0x4f59b9;}[_0x4fcfec(0x15b)](){const _0x3371ef=_0x4fcfec;return[...this[_0x3371ef(0x114)][_0x3371ef(0x17c)]()][_0x3371ef(0xda)](_0x5d4d59=>_0x5d4d59[_0x3371ef(0x7e)]===_0x3371ef(0xe2)&&_0x5d4d59[_0x3371ef(0xc0)]<=this[_0x3371ef(0x13a)]())[_0x3371ef(0x88)](_0x5de07c=>this[_0x3371ef(0x110)](_0x5de07c['id']));}[_0x4fcfec(0x10b)](){const _0x1996c6=_0x4fcfec;return[...this[_0x1996c6(0x157)][_0x1996c6(0x17c)]()][_0x1996c6(0xda)](_0x24b725=>!terminal(_0x24b725[_0x1996c6(0x7e)]));}[_0x4fcfec(0xe3)](_0x3b1e7e){const _0x1da11c=_0x4fcfec;return this[_0x1da11c(0x193)][_0x1da11c(0x17b)](_0x3b1e7e)??0x7cb*-0x1+0x2409+-0x1c3e;}[_0x4fcfec(0x16a)](_0x129857){const _0x14d1d6=_0x4fcfec,_0x515f5b=this[_0x14d1d6(0x102)](_0x129857);if(!terminal(_0x515f5b[_0x14d1d6(0x7e)]))throw new Error(_0x14d1d6(0xd6));this[_0x14d1d6(0xd8)][_0x14d1d6(0x160)](_0x129857);if(this[_0x14d1d6(0xd8)][_0x14d1d6(0x10d)]>0x7c1+-0x2227+0x1e66)this[_0x14d1d6(0xd8)][_0x14d1d6(0xb8)](this[_0x14d1d6(0xd8)][_0x14d1d6(0x17c)]()[_0x14d1d6(0xc4)]()[_0x14d1d6(0x116)]);const _0x3e7eca=new Set([...this[_0x14d1d6(0x10c)][_0x14d1d6(0x17c)]()][_0x14d1d6(0xda)](_0x5dc001=>_0x5dc001[_0x14d1d6(0x12f)]===_0x129857)[_0x14d1d6(0x88)](_0x3a544d=>_0x3a544d['id'])),_0x4d2a27=(this[_0x14d1d6(0x175)][_0x14d1d6(0x17b)](_0x515f5b[_0x14d1d6(0xaf)])??[])[_0x14d1d6(0xda)](_0x39aceb=>{const _0xac864=_0x14d1d6,_0x455906=_0x39aceb[_0xac864(0xe5)][_0xac864(0xdb)](_0x23ad85=>_0x23ad85[_0xac864(0x96)]===_0xac864(0xad));if(_0x39aceb[_0xac864(0x12f)]===_0x129857)return _0x515f5b[_0xac864(0x7e)]===_0xac864(0x158)||_0x515f5b[_0xac864(0x7e)]===_0xac864(0xf5)||_0x455906;const _0x45f847=_0x455906&&_0x39aceb[_0xac864(0x7e)]!==_0xac864(0x158)&&_0x39aceb[_0xac864(0x7e)]!==_0xac864(0xf5);return _0x515f5b[_0xac864(0x7e)]!==_0xac864(0x158)||!_0x45f847;}),_0x29111c=_0x4d2a27[_0x14d1d6(0xda)](_0x2b7dc7=>terminalTurn(_0x2b7dc7[_0x14d1d6(0x7e)])),_0x4b807f=new Set(_0x29111c[_0x14d1d6(0x84)](-NodeRuntimeState[_0x14d1d6(0xc5)])[_0x14d1d6(0x88)](_0x54bdd8=>_0x54bdd8['id'])),_0x2f0956=_0x4d2a27[_0x14d1d6(0xda)](_0xdb25fa=>!terminalTurn(_0xdb25fa[_0x14d1d6(0x7e)])||_0x4b807f[_0x14d1d6(0xea)](_0xdb25fa['id'])),_0x1e2f10=new Set(_0x2f0956[_0x14d1d6(0x88)](_0x27d525=>_0x27d525['id']));this[_0x14d1d6(0x175)][_0x14d1d6(0x17a)](_0x515f5b[_0x14d1d6(0xaf)],_0x2f0956);for(const [_0x392de4,_0x50e56d]of this[_0x14d1d6(0x10c)]){if(_0x50e56d[_0x14d1d6(0x12f)]!==_0x129857)continue;this[_0x14d1d6(0x10c)][_0x14d1d6(0xb8)](_0x392de4);if(_0x1e2f10[_0x14d1d6(0xea)](_0x50e56d[_0x14d1d6(0x87)]))this[_0x14d1d6(0xc8)][_0x14d1d6(0x17a)](_0x392de4,{'sessionId':_0x515f5b[_0x14d1d6(0xaf)],'turnId':_0x50e56d[_0x14d1d6(0x87)]});}this[_0x14d1d6(0xd9)](_0x515f5b[_0x14d1d6(0xaf)],_0x1e2f10),this[_0x14d1d6(0x157)][_0x14d1d6(0xb8)](_0x129857),this[_0x14d1d6(0xa0)][_0x14d1d6(0xb8)](_0x129857),this[_0x14d1d6(0x193)][_0x14d1d6(0xb8)](_0x129857);for(const [_0x4406cc,_0x1ec19c]of this[_0x14d1d6(0x167)])if(_0x1ec19c[_0x14d1d6(0x96)]===_0x14d1d6(0xb2)&&_0x1ec19c['id']===_0x129857)this[_0x14d1d6(0x167)][_0x14d1d6(0xb8)](_0x4406cc);for(const [_0xbbd528,_0x4e94f4]of this[_0x14d1d6(0x114)])if(_0x4e94f4[_0x14d1d6(0x12f)]===_0x129857||_0x3e7eca[_0x14d1d6(0xea)](_0x4e94f4[_0x14d1d6(0x12f)]))this[_0x14d1d6(0x114)][_0x14d1d6(0xb8)](_0xbbd528);}[_0x4fcfec(0x187)](_0x1f24b7){const _0x2266a4=_0x4fcfec;return[...this[_0x2266a4(0xa9)][_0x2266a4(0x17c)]()][_0x2266a4(0x88)](_0x3da7c8=>this[_0x2266a4(0x157)][_0x2266a4(0x17b)](_0x3da7c8))[_0x2266a4(0xdb)](_0x291d31=>_0x291d31?.[_0x2266a4(0xfa)]===_0x1f24b7);}[_0x4fcfec(0x181)](_0x33d206){const _0x531bb9=_0x4fcfec;this[_0x531bb9(0x117)](_0x33d206);const _0x29b06f=this[_0x531bb9(0x138)](_0x33d206);if(_0x29b06f[_0x531bb9(0xdb)](_0x3cba69=>!terminal(_0x3cba69[_0x531bb9(0x7e)])))throw new Error(_0x531bb9(0xcc));const _0x20eb3d=new Set(_0x29b06f[_0x531bb9(0x88)](_0x296874=>_0x296874['id'])),_0x20a8d7=new Set([...this[_0x531bb9(0x10c)][_0x531bb9(0x17c)]()][_0x531bb9(0xda)](_0x3f09a9=>_0x20eb3d[_0x531bb9(0xea)](_0x3f09a9[_0x531bb9(0x12f)]))[_0x531bb9(0x88)](_0x48dc27=>_0x48dc27['id']));this[_0x531bb9(0x161)][_0x531bb9(0xb8)](_0x33d206),this[_0x531bb9(0x175)][_0x531bb9(0xb8)](_0x33d206),this[_0x531bb9(0xd9)](_0x33d206,new Set());const _0x3eb0c1=this[_0x531bb9(0x9b)][_0x531bb9(0x17b)](_0x33d206)??[];this[_0x531bb9(0x9b)][_0x531bb9(0xb8)](_0x33d206);for(const _0x5a6602 of _0x3eb0c1)this[_0x531bb9(0xc9)][_0x531bb9(0xb8)](_0x5a6602);this[_0x531bb9(0x163)][_0x531bb9(0xb8)](_0x33d206),this[_0x531bb9(0x109)][_0x531bb9(0xb8)](_0x33d206),this[_0x531bb9(0xa9)][_0x531bb9(0xb8)](_0x33d206);for(const _0x46bdc8 of _0x20eb3d){this[_0x531bb9(0x157)][_0x531bb9(0xb8)](_0x46bdc8),this[_0x531bb9(0xa0)][_0x531bb9(0xb8)](_0x46bdc8),this[_0x531bb9(0x193)][_0x531bb9(0xb8)](_0x46bdc8);}for(const _0x2b39eb of _0x20a8d7)this[_0x531bb9(0x10c)][_0x531bb9(0xb8)](_0x2b39eb);for(const [_0x15581d,_0x264a11]of this[_0x531bb9(0x167)])if(_0x264a11[_0x531bb9(0x96)]===_0x531bb9(0xb2)&&_0x20eb3d[_0x531bb9(0xea)](_0x264a11['id'])||_0x264a11[_0x531bb9(0x96)]===_0x531bb9(0x95)&&_0x3eb0c1[_0x531bb9(0xe6)](_0x264a11['id']))this[_0x531bb9(0x167)][_0x531bb9(0xb8)](_0x15581d);for(const _0x38c31d of this[_0x531bb9(0x97)][_0x531bb9(0x132)]())if(_0x38c31d[_0x531bb9(0x176)](_0x33d206+'\x00'))this[_0x531bb9(0x97)][_0x531bb9(0xb8)](_0x38c31d);for(const [_0x42d86b,_0x4a701e]of this[_0x531bb9(0x114)])if(_0x20eb3d[_0x531bb9(0xea)](_0x4a701e[_0x531bb9(0x12f)])||_0x20a8d7[_0x531bb9(0xea)](_0x4a701e[_0x531bb9(0x12f)]))this[_0x531bb9(0x114)][_0x531bb9(0xb8)](_0x42d86b);}[_0x4fcfec(0x111)](_0x35a201){const _0x8234bc=_0x4fcfec;if(this[_0x8234bc(0x187)](_0x35a201))throw new Error(_0x8234bc(0x150));const _0x76f0d2=new Set([...this[_0x8234bc(0x161)][_0x8234bc(0x17c)]()][_0x8234bc(0xda)](_0x4012a0=>_0x4012a0[_0x8234bc(0xfa)]===_0x35a201)[_0x8234bc(0x88)](_0x55a47d=>_0x55a47d['id'])),_0x19defb=new Set([...this[_0x8234bc(0x157)][_0x8234bc(0x17c)]()][_0x8234bc(0xda)](_0x426b3e=>_0x426b3e[_0x8234bc(0xfa)]===_0x35a201)[_0x8234bc(0x88)](_0x1804bb=>_0x1804bb['id'])),_0x4c64f4=new Set([...this[_0x8234bc(0x10c)][_0x8234bc(0x17c)]()][_0x8234bc(0xda)](_0x4c9c68=>_0x19defb[_0x8234bc(0xea)](_0x4c9c68[_0x8234bc(0x12f)]))[_0x8234bc(0x88)](_0x10f337=>_0x10f337['id'])),_0x1f1ac2=new Set([..._0x76f0d2][_0x8234bc(0x103)](_0x220cf7=>this[_0x8234bc(0x9b)][_0x8234bc(0x17b)](_0x220cf7)??[]));for(const _0x595930 of _0x76f0d2){this[_0x8234bc(0x161)][_0x8234bc(0xb8)](_0x595930),this[_0x8234bc(0x175)][_0x8234bc(0xb8)](_0x595930),this[_0x8234bc(0xd9)](_0x595930,new Set());}for(const _0x558aed of _0x19defb){this[_0x8234bc(0x157)][_0x8234bc(0xb8)](_0x558aed),this[_0x8234bc(0xa0)][_0x8234bc(0xb8)](_0x558aed),this[_0x8234bc(0x193)][_0x8234bc(0xb8)](_0x558aed);}for(const _0x36ee03 of _0x4c64f4)this[_0x8234bc(0x10c)][_0x8234bc(0xb8)](_0x36ee03);for(const [_0x18ef38,_0x18a013]of this[_0x8234bc(0x167)])if(_0x18a013[_0x8234bc(0x96)]===_0x8234bc(0xb2)&&_0x19defb[_0x8234bc(0xea)](_0x18a013['id'])||_0x18a013[_0x8234bc(0x96)]===_0x8234bc(0x95)&&_0x1f1ac2[_0x8234bc(0xea)](_0x18a013['id']))this[_0x8234bc(0x167)][_0x8234bc(0xb8)](_0x18ef38);for(const _0x8e8f4a of this[_0x8234bc(0x97)][_0x8234bc(0x132)]()){const _0xcb591e=_0x8e8f4a[_0x8234bc(0x15a)]('\u0000');if(_0xcb591e>=0x1683+0x29*-0x79+-0x322&&_0x76f0d2[_0x8234bc(0xea)](_0x8e8f4a[_0x8234bc(0x84)](-0x2*-0x94f+-0x1c0+-0x10de,_0xcb591e)))this[_0x8234bc(0x97)][_0x8234bc(0xb8)](_0x8e8f4a);}for(const [_0x22edee,_0x50a37f]of this[_0x8234bc(0x114)])if(_0x19defb[_0x8234bc(0xea)](_0x50a37f[_0x8234bc(0x12f)])||_0x4c64f4[_0x8234bc(0xea)](_0x50a37f[_0x8234bc(0x12f)]))this[_0x8234bc(0x114)][_0x8234bc(0xb8)](_0x22edee);for(const _0x16fd50 of _0x76f0d2){const _0x3c59fe=this[_0x8234bc(0x9b)][_0x8234bc(0x17b)](_0x16fd50)??[];this[_0x8234bc(0x9b)][_0x8234bc(0xb8)](_0x16fd50);for(const _0x58524f of _0x3c59fe)this[_0x8234bc(0xc9)][_0x8234bc(0xb8)](_0x58524f);this[_0x8234bc(0x163)][_0x8234bc(0xb8)](_0x16fd50),this[_0x8234bc(0x109)][_0x8234bc(0xb8)](_0x16fd50),this[_0x8234bc(0xa9)][_0x8234bc(0xb8)](_0x16fd50);}}[_0x4fcfec(0x8d)](_0x5d4a82,_0x10d45e){void _0x5d4a82,void _0x10d45e;}[_0x4fcfec(0x122)](_0x3403ee,_0x5443fa){const _0x57967a=_0x4fcfec,_0x227126=this[_0x57967a(0x117)](_0x3403ee),_0x3d01fd={..._0x227126,..._0x5443fa};this[_0x57967a(0x161)][_0x57967a(0x17a)](_0x3403ee,_0x3d01fd);if(_0x227126[_0x57967a(0x90)]!==_0x3d01fd[_0x57967a(0x90)]||_0x227126[_0x57967a(0xd7)]!==_0x3d01fd[_0x57967a(0xd7)]){for(const _0xfa9fbe of this[_0x57967a(0x138)](_0x3403ee))this[_0x57967a(0x195)](_0xfa9fbe,_0x3d01fd);}return _0x3d01fd;}[_0x4fcfec(0x195)](_0x415d4e,_0x34f738){const _0x5bc17c=_0x4fcfec,_0x1384d0=this[_0x5bc17c(0x14e)](_0x415d4e['id']),_0xf43145=_0x1384d0?.[_0x5bc17c(0xe5)][_0x5bc17c(0x13e)](_0x44bdbc=>_0x44bdbc[_0x5bc17c(0x96)]===_0x5bc17c(0xf6))?.[_0x5bc17c(0xa2)],_0xfcd4fc=isRecord(_0xf43145)&&typeof _0xf43145[_0x5bc17c(0xb9)]===_0x5bc17c(0x129)?_0xf43145[_0x5bc17c(0xb9)]:undefined,_0x11a974=_0xfcd4fc?.[_0x5bc17c(0x176)](_0x5bc17c(0xd0))?'':this[_0x5bc17c(0xa0)][_0x5bc17c(0x17b)](_0x415d4e['id'])??this[_0x5bc17c(0x94)](_0x415d4e['id']);this[_0x5bc17c(0x7f)]?.(_0x415d4e,_0x34f738,_0x11a974[_0x5bc17c(0x173)]===0x1d89+0x2d0+-0x2059?undefined:_0x11a974);}[_0x4fcfec(0x144)](_0x3be03b){const _0x3c59aa=_0x4fcfec;this[_0x3c59aa(0x163)][_0x3c59aa(0x17a)](_0x3be03b,(this[_0x3c59aa(0x163)][_0x3c59aa(0x17b)](_0x3be03b)??0x17ba+0x67d*-0x5+0x8b7)+(-0x55*-0x1a+0x26e*-0x6+0x5f3));}[_0x4fcfec(0xd9)](_0x251146,_0x5840bc){const _0x1ff05f=_0x4fcfec;for(const [_0x373db6,_0x199b66]of this[_0x1ff05f(0xc8)])if(_0x199b66[_0x1ff05f(0xaf)]===_0x251146&&!_0x5840bc[_0x1ff05f(0xea)](_0x199b66[_0x1ff05f(0x87)]))this[_0x1ff05f(0xc8)][_0x1ff05f(0xb8)](_0x373db6);}[_0x4fcfec(0x117)](_0x2807d4){const _0x31f5dc=_0x4fcfec,_0x3e6aa3=this[_0x31f5dc(0x161)][_0x31f5dc(0x17b)](_0x2807d4);if(_0x3e6aa3===undefined)throw new Error(_0x31f5dc(0x12d));return _0x3e6aa3;}[_0x4fcfec(0x102)](_0x442bcc){const _0x549e77=_0x4fcfec,_0x40560c=this[_0x549e77(0x157)][_0x549e77(0x17b)](_0x442bcc);if(_0x40560c===undefined)throw new Error(_0x549e77(0xee));return _0x40560c;}[_0x4fcfec(0x89)](_0x9d3a86){const _0x5f2f73=_0x4fcfec,_0x2a5c53=this[_0x5f2f73(0xc9)][_0x5f2f73(0x17b)](_0x9d3a86);if(_0x2a5c53===undefined)throw new Error(_0x5f2f73(0xc6));return _0x2a5c53;}[_0x4fcfec(0xb1)](_0x98a6f8){const _0x2a15e3=_0x4fcfec,_0x578895=this[_0x2a15e3(0x114)][_0x2a15e3(0x17b)](_0x98a6f8);if(_0x578895===undefined)throw new Error(_0x2a15e3(0x137));return _0x578895;}[_0x4fcfec(0xb5)](_0x4e61ff,_0x2cb867){const _0x1b146=_0x4fcfec,_0x4a1d03=this[_0x1b146(0x102)](_0x4e61ff),_0x5b41d1=this[_0x1b146(0x175)][_0x1b146(0x17b)](_0x4a1d03[_0x1b146(0xaf)])??[];this[_0x1b146(0x175)][_0x1b146(0x17a)](_0x4a1d03[_0x1b146(0xaf)],_0x5b41d1[_0x1b146(0x88)](_0x42bfc9=>_0x42bfc9[_0x1b146(0x12f)]===_0x4e61ff?_0x2cb867(_0x42bfc9):_0x42bfc9));}[_0x4fcfec(0x179)](_0x13bb5d,_0x72e285){const _0x3ba986=_0x4fcfec,_0xc7130d=this[_0x3ba986(0x102)](_0x13bb5d),_0x14444b=this[_0x3ba986(0x175)][_0x3ba986(0x17b)](_0xc7130d[_0x3ba986(0xaf)])??[],_0x20113a=_0x14444b[_0x3ba986(0x11a)](_0x1c4834=>_0x1c4834[_0x3ba986(0x12f)]===_0x13bb5d);if(_0x20113a<0x2683+0x14c5+0x1da4*-0x2)return;this[_0x3ba986(0x175)][_0x3ba986(0x17a)](_0xc7130d[_0x3ba986(0xaf)],_0x14444b[_0x3ba986(0x88)]((_0x51ce0f,_0x87e76f)=>_0x87e76f===_0x20113a?_0x72e285(_0x51ce0f):_0x51ce0f));}[_0x4fcfec(0x14e)](_0x2dcb59){const _0x1b19f9=_0x4fcfec,_0x2f32e8=this[_0x1b19f9(0x102)](_0x2dcb59);return(this[_0x1b19f9(0x175)][_0x1b19f9(0x17b)](_0x2f32e8[_0x1b19f9(0xaf)])??[])[_0x1b19f9(0x171)](_0x981258=>_0x981258[_0x1b19f9(0x12f)]===_0x2dcb59);}[_0x4fcfec(0xbf)](_0x5d6a37,_0x4f5175){const _0x42e562=_0x4fcfec,_0x843237=this[_0x42e562(0x117)](_0x5d6a37[_0x42e562(0xaf)]),_0x180b0f={'id':randomUUID(),'sessionId':_0x843237['id'],'runId':_0x5d6a37['id'],'userItemId':null,'status':terminal(_0x5d6a37[_0x42e562(0x7e)])?_0x5d6a37[_0x42e562(0x7e)]:_0x42e562(0x9f),'model':_0x843237[_0x42e562(0x148)],'effort':_0x843237[_0x42e562(0xa3)],'access':_0x843237[_0x42e562(0xcf)],'items':[],'startedAt':_0x4f5175,'completedAt':terminal(_0x5d6a37[_0x42e562(0x7e)])?_0x4f5175:null};return this[_0x42e562(0x175)][_0x42e562(0x17a)](_0x843237['id'],[...this[_0x42e562(0x175)][_0x42e562(0x17b)](_0x843237['id'])??[],_0x180b0f]),this[_0x42e562(0x122)](_0x843237['id'],{'lastActivityAt':_0x4f5175}),_0x180b0f;}[_0x4fcfec(0x10e)](_0x23ff37,_0x51fd0a,_0x24f3f6,_0x391d41){const _0x43c6c4=_0x4fcfec,_0x41af05=this[_0x43c6c4(0x117)](_0x23ff37[_0x43c6c4(0xaf)]),_0xc24f22=this[_0x43c6c4(0x13a)](),_0x2288ca=randomUUID(),_0x26d9ea=randomUUID(),_0xfc9311={'id':_0x26d9ea,'sessionId':_0x41af05['id'],'turnId':_0x2288ca,'runId':_0x23ff37['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x43c6c4(0xf6),'status':_0x43c6c4(0x165),'payload':{'clientMessageId':_0x51fd0a,'text':_0x24f3f6,'contexts':[],'attachments':this[_0x43c6c4(0xfd)](_0x23ff37['id'],_0x391d41),'delivery':_0x43c6c4(0x112)},'startedAt':_0xc24f22,'completedAt':_0xc24f22},_0xc8858e={'id':_0x2288ca,'sessionId':_0x41af05['id'],'runId':_0x23ff37['id'],'userItemId':_0x26d9ea,'status':_0x43c6c4(0x146),'model':_0x41af05[_0x43c6c4(0x148)],'effort':_0x41af05[_0x43c6c4(0xa3)],'access':_0x41af05[_0x43c6c4(0xcf)],'items':[_0xfc9311],'startedAt':_0xc24f22,'completedAt':null};return this[_0x43c6c4(0x175)][_0x43c6c4(0x17a)](_0x41af05['id'],[...this[_0x43c6c4(0x175)][_0x43c6c4(0x17b)](_0x41af05['id'])??[],_0xc8858e]),this[_0x43c6c4(0x122)](_0x41af05['id'],{'lastActivityAt':_0xc24f22}),_0xc8858e;}[_0x4fcfec(0xfd)](_0x4f0b9f,_0x460206){const _0x4d40b0=_0x4fcfec;let _0x34751c=-0xc78+0xef2+0x1*-0x27a;return _0x460206[_0x4d40b0(0x88)](({name:_0x27ae34,mime:_0x4bf8dc,dataBase64:_0x26f472})=>{const _0x7edacf=_0x4d40b0,_0x4989d5={'name':_0x27ae34,'mime':_0x4bf8dc,'byteSize':Buffer[_0x7edacf(0x7c)](_0x26f472,_0x7edacf(0x192)),'runId':_0x4f0b9f};if(!_0x4bf8dc[_0x7edacf(0x176)](_0x7edacf(0x113)))return _0x4989d5;return{..._0x4989d5,'imageIndex':_0x34751c++};});}[_0x4fcfec(0xfe)](_0x29321f,_0x54bb7f,_0x34235c){const _0x40a2a5=_0x4fcfec;for(const [_0xeddad4,_0x3e340a]of this[_0x40a2a5(0x175)]){if(!_0x3e340a[_0x40a2a5(0xdb)](_0xd82c7e=>_0xd82c7e['id']===_0x29321f))continue;this[_0x40a2a5(0x175)][_0x40a2a5(0x17a)](_0xeddad4,_0x3e340a[_0x40a2a5(0x88)](_0x249754=>_0x249754['id']===_0x29321f?{..._0x249754,'status':_0x54bb7f,'completedAt':_0x34235c,'items':_0x249754[_0x40a2a5(0xe5)][_0x40a2a5(0x88)](_0x4df851=>activeConversationItem(_0x4df851[_0x40a2a5(0x7e)])?{..._0x4df851,'status':completedStatusForRun(_0x54bb7f),'completedAt':_0x34235c}:_0x4df851)}:_0x249754));return;}}[_0x4fcfec(0x9a)](_0x3bb271,_0x5aa589){const _0x113b08=_0x4fcfec,_0x56251e=this[_0x113b08(0x102)](_0x3bb271[_0x113b08(0x12f)]);if(_0x5aa589===undefined&&this[_0x113b08(0x14e)](_0x3bb271[_0x113b08(0x12f)])===undefined&&conversationItemFromEvent(_0x3bb271)!==undefined)this[_0x113b08(0xbf)](_0x56251e,_0x3bb271[_0x113b08(0xd1)]);const _0x6322ed=_0x29837d=>{const _0xc7781b=_0x113b08;if(_0x3bb271[_0xc7781b(0x93)]===_0xc7781b(0xa6)&&isRecord(_0x3bb271[_0xc7781b(0xa2)])&&typeof _0x3bb271[_0xc7781b(0xa2)][_0xc7781b(0x10a)]===_0xc7781b(0x129)){const _0x3a96cd=typeof _0x3bb271[_0xc7781b(0xa2)][_0xc7781b(0x15c)]===_0xc7781b(0x129)&&_0x3bb271[_0xc7781b(0xa2)][_0xc7781b(0x15c)][_0xc7781b(0x173)]<=-0xb6f*-0x3+-0x3*0x42c+-0x1571?_0x3bb271[_0xc7781b(0xa2)][_0xc7781b(0x15c)]:undefined,_0x52701d=_0x3a96cd===undefined?undefined:_0x3bb271[_0xc7781b(0x12f)]+':'+_0x3a96cd,_0x2ac7b1=_0x29837d[_0xc7781b(0xe5)]['at'](-(-0x264b+0x10ef+0x155d)),_0x4ba84d=_0x52701d===undefined?_0x2ac7b1?.[_0xc7781b(0x96)]===_0xc7781b(0x14c)&&activeConversationItem(_0x2ac7b1[_0xc7781b(0x7e)])?_0x2ac7b1:undefined:_0x29837d[_0xc7781b(0xe5)][_0xc7781b(0x13e)](_0x5ade3f=>_0x5ade3f['id']===_0x52701d&&_0x5ade3f[_0xc7781b(0x96)]===_0xc7781b(0x14c)),_0x2114b3=''+(_0x4ba84d===undefined?'':readableText(_0x4ba84d[_0xc7781b(0xa2)]))+_0x3bb271[_0xc7781b(0xa2)][_0xc7781b(0x10a)],_0x569981={'id':_0x4ba84d?.['id']??_0x52701d??_0x3bb271[_0xc7781b(0x12f)]+_0xc7781b(0xe4)+_0x3bb271[_0xc7781b(0x134)],'sessionId':_0x56251e[_0xc7781b(0xaf)],'turnId':_0x29837d['id'],'runId':_0x3bb271[_0xc7781b(0x12f)],'parentItemId':null,'sourceSequence':_0x4ba84d?.[_0xc7781b(0x164)]??_0x3bb271[_0xc7781b(0x134)],'revision':_0x3bb271[_0xc7781b(0x134)],'kind':_0xc7781b(0x14c),'status':_0xc7781b(0x12c),'payload':{'text':_0x2114b3,'format':_0xc7781b(0x13c),'model':null},'startedAt':_0x4ba84d?.[_0xc7781b(0x145)]??_0x3bb271[_0xc7781b(0xd1)],'completedAt':null};return{..._0x29837d,'status':_0xc7781b(0x9f),'startedAt':_0x29837d[_0xc7781b(0x145)]??_0x3bb271[_0xc7781b(0xd1)],'items':_0x4ba84d===undefined?[..._0x29837d[_0xc7781b(0xe5)],_0x569981]:_0x29837d[_0xc7781b(0xe5)][_0xc7781b(0x88)](_0x2f51c9=>_0x2f51c9['id']===_0x569981['id']?_0x569981:_0x2f51c9)};}const _0x34b623=conversationItemFromEvent(_0x3bb271);if(_0x34b623!==undefined){const _0x2d63af=_0x29837d[_0xc7781b(0xe5)]['at'](-(-0x2f*0xba+-0xed*0x11+-0x31e4*-0x1)),_0x2d9f7f=_0x2d63af?.[_0xc7781b(0x96)]===_0xc7781b(0x14c)&&activeConversationItem(_0x2d63af[_0xc7781b(0x7e)])?_0x29837d[_0xc7781b(0xe5)][_0xc7781b(0x88)](_0x20b76c=>_0x20b76c['id']===_0x2d63af['id']?{..._0x20b76c,'status':_0xc7781b(0x165),'completedAt':_0x3bb271[_0xc7781b(0xd1)]}:_0x20b76c):_0x29837d[_0xc7781b(0xe5)],_0x348ed2=_0x2d9f7f[_0xc7781b(0x13e)](_0x5de8fd=>_0x5de8fd['id']===_0x3bb271[_0xc7781b(0x12f)]+':'+_0x34b623[_0xc7781b(0x15c)])??(_0x34b623[_0xc7781b(0x96)]===_0xc7781b(0x14c)&&_0x34b623[_0xc7781b(0x15c)][_0xc7781b(0x176)](_0xc7781b(0xc3))&&_0x2d63af?.[_0xc7781b(0x96)]===_0xc7781b(0x14c)&&_0x2d63af['id'][_0xc7781b(0x176)](_0x3bb271[_0xc7781b(0x12f)]+_0xc7781b(0xe4))&&activeConversationItem(_0x2d63af[_0xc7781b(0x7e)])?_0x2d63af:undefined),_0x51e90a=_0x34b623[_0xc7781b(0x7e)],_0x273034={'id':_0x3bb271[_0xc7781b(0x12f)]+':'+_0x34b623[_0xc7781b(0x15c)],'sessionId':_0x56251e[_0xc7781b(0xaf)],'turnId':_0x29837d['id'],'runId':_0x3bb271[_0xc7781b(0x12f)],'parentItemId':null,'sourceSequence':_0x348ed2?.[_0xc7781b(0x164)]??_0x3bb271[_0xc7781b(0x134)],'revision':(_0x348ed2?.[_0xc7781b(0x79)]??-(0xbe1+0x18*-0x192+-0x76*-0x38))+(0x1f02+0xcbd+-0x2bbe),'kind':_0x34b623[_0xc7781b(0x96)],'status':_0x51e90a,'payload':mergeConversationItemPayload(_0x348ed2?.[_0xc7781b(0xa2)],_0x34b623),'startedAt':_0x348ed2?.[_0xc7781b(0x145)]??_0x3bb271[_0xc7781b(0xd1)],'completedAt':completedConversationItem(_0x51e90a)?_0x3bb271[_0xc7781b(0xd1)]:null};return{..._0x29837d,'status':terminal(_0x56251e[_0xc7781b(0x7e)])?_0x56251e[_0xc7781b(0x7e)]:_0xc7781b(0x9f),'startedAt':_0x29837d[_0xc7781b(0x145)]??_0x3bb271[_0xc7781b(0xd1)],'items':_0x348ed2===undefined?[..._0x2d9f7f,_0x273034]:_0x2d9f7f[_0xc7781b(0x88)](_0x1282ae=>_0x1282ae['id']===_0x348ed2['id']?_0x273034:_0x1282ae)};}if(_0x3bb271[_0xc7781b(0x93)]===_0xc7781b(0x115)||_0x3bb271[_0xc7781b(0x93)]===_0xc7781b(0xf1))return{..._0x29837d,'status':_0xc7781b(0x9f),'startedAt':_0x29837d[_0xc7781b(0x145)]??_0x3bb271[_0xc7781b(0xd1)]};if(_0x3bb271[_0xc7781b(0x93)]===_0xc7781b(0x135)||_0x3bb271[_0xc7781b(0x93)]===_0xc7781b(0x13b)||_0x3bb271[_0xc7781b(0x93)]===_0xc7781b(0xec)){const _0x41a951=_0x3bb271[_0xc7781b(0x7e)]??this[_0xc7781b(0x102)](_0x3bb271[_0xc7781b(0x12f)])[_0xc7781b(0x7e)];return{..._0x29837d,'status':_0x41a951,'completedAt':_0x3bb271[_0xc7781b(0xd1)],'items':_0x29837d[_0xc7781b(0xe5)][_0xc7781b(0x88)](_0x1ee3a0=>activeConversationItem(_0x1ee3a0[_0xc7781b(0x7e)])?{..._0x1ee3a0,'status':completedStatusForRun(_0x41a951),'completedAt':_0x3bb271[_0xc7781b(0xd1)]}:_0x1ee3a0)};}return _0x29837d;};if(_0x5aa589===undefined)this[_0x113b08(0x179)](_0x3bb271[_0x113b08(0x12f)],_0x6322ed);else{const _0x332a87=this[_0x113b08(0x175)][_0x113b08(0x17b)](_0x56251e[_0x113b08(0xaf)])??[];this[_0x113b08(0x175)][_0x113b08(0x17a)](_0x56251e[_0x113b08(0xaf)],_0x332a87[_0x113b08(0x88)](_0x3a2ce5=>_0x3a2ce5['id']===_0x5aa589?_0x6322ed(_0x3a2ce5):_0x3a2ce5));}}}function isDefaultRunnerTitle(_0x312970){const _0x16dbc3=_0x4fcfec;return/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x16dbc3(0x99)](_0x312970);}function terminal(_0x355074){const _0x32ebf4=_0x4fcfec;return[_0x32ebf4(0x158),_0x32ebf4(0x127),_0x32ebf4(0x107),_0x32ebf4(0xf5),_0x32ebf4(0x18c)][_0x32ebf4(0xe6)](_0x355074);}function terminalTurn(_0x5f5aba){const _0xa2a46a=_0x4fcfec;return[_0xa2a46a(0x158),_0xa2a46a(0x127),_0xa2a46a(0x107),_0xa2a46a(0xf5),_0xa2a46a(0x18c)][_0xa2a46a(0xe6)](_0x5f5aba);}function transitionAllowed(_0x3a8cf5,_0x288963){return!terminal(_0x3a8cf5)||_0x3a8cf5===_0x288963;}function isRecord(_0x5b4b00){const _0x1b3e18=_0x4fcfec;return typeof _0x5b4b00===_0x1b3e18(0x147)&&_0x5b4b00!==null;}function readableText(_0x3f5999){const _0x5cd3ee=_0x4fcfec;return isRecord(_0x3f5999)&&typeof _0x3f5999[_0x5cd3ee(0x10a)]===_0x5cd3ee(0x129)?_0x3f5999[_0x5cd3ee(0x10a)]:'';}function conversationItemFromEvent(_0x46442d){const _0x2abb4e=_0x4fcfec;if(isRecord(_0x46442d[_0x2abb4e(0xa2)])){const _0x2f0360=_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0x18d)];if(typeof _0x2f0360===_0x2abb4e(0x129)&&_0x2f0360[_0x2abb4e(0x173)]>-0x1c67+0x972+0xd3*0x17){if(_0x46442d[_0x2abb4e(0x93)]===_0x2abb4e(0x120))return{'itemId':_0x2abb4e(0x121)+_0x2f0360,'kind':_0x2abb4e(0x16e),'status':_0x2abb4e(0xe2),'payload':{'approvalId':_0x2f0360,'approvalStatus':_0x2abb4e(0xe2),'approval':_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0xa2)],'expiresAt':_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0xc0)]},'merge':![]};if(_0x46442d[_0x2abb4e(0x93)]===_0x2abb4e(0x13d)){const _0xdd84cb=_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0xb6)];if(_0xdd84cb===_0x2abb4e(0x142)||_0xdd84cb===_0x2abb4e(0x101))return{'itemId':_0x2abb4e(0x121)+_0x2f0360,'kind':_0x2abb4e(0x16e),'status':_0xdd84cb===_0x2abb4e(0x142)?_0x2abb4e(0x165):_0x2abb4e(0xbe),'payload':{'approvalId':_0x2f0360,'approvalStatus':_0xdd84cb},'merge':!![]};}if(_0x46442d[_0x2abb4e(0x93)]===_0x2abb4e(0x153))return{'itemId':_0x2abb4e(0x121)+_0x2f0360,'kind':_0x2abb4e(0x16e),'status':_0x2abb4e(0x107),'payload':{'approvalId':_0x2f0360,'approvalStatus':_0x2abb4e(0xae)},'merge':!![]};}}if(_0x46442d[_0x2abb4e(0x93)]!==_0x2abb4e(0x149)||!isRecord(_0x46442d[_0x2abb4e(0xa2)]))return undefined;const _0x439973=_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0x15c)],_0x59b13b=_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0x96)],_0x47074a=_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0x7e)],_0x3a4360=_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0xa2)];if(typeof _0x439973!==_0x2abb4e(0x129)||_0x439973[_0x2abb4e(0x173)]===-0x25*0xe5+-0x3*-0x3b7+0x15f4||_0x439973[_0x2abb4e(0x173)]>0x41a+0x54a+-0x4*0x243||typeof _0x59b13b!==_0x2abb4e(0x129)||!projectableConversationKind(_0x59b13b)||typeof _0x47074a!==_0x2abb4e(0x129)||!projectableConversationStatus(_0x47074a)||!isRecord(_0x3a4360))return undefined;const _0x484bcf=_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0x17e)];return{'itemId':_0x439973,'kind':_0x59b13b,'status':_0x47074a,'payload':_0x3a4360,'merge':_0x46442d[_0x2abb4e(0xa2)][_0x2abb4e(0xa4)]===!![],..._0x484bcf===_0x2abb4e(0xe1)||_0x484bcf===_0x2abb4e(0x196)||_0x484bcf===_0x2abb4e(0xb4)?{'append':_0x484bcf}:{}};}function projectableConversationKind(_0x2f40a5){const _0x54acec=_0x4fcfec;return _0x2f40a5===_0x54acec(0x14c)||_0x2f40a5===_0x54acec(0xca)||_0x2f40a5===_0x54acec(0x85)||_0x2f40a5===_0x54acec(0x108)||_0x2f40a5===_0x54acec(0x16e)||_0x2f40a5===_0x54acec(0x7b)||_0x2f40a5===_0x54acec(0x105)||_0x2f40a5===_0x54acec(0x12a)||_0x2f40a5===_0x54acec(0x15d)||_0x2f40a5===_0x54acec(0xcb)||_0x2f40a5===_0x54acec(0x83)||_0x2f40a5===_0x54acec(0x194)||_0x2f40a5===_0x54acec(0xad);}function projectableConversationStatus(_0x4d118e){const _0x1fc8fc=_0x4fcfec;return[_0x1fc8fc(0xe2),_0x1fc8fc(0x12c),_0x1fc8fc(0x165),_0x1fc8fc(0x127),_0x1fc8fc(0xbe),_0x1fc8fc(0x107),_0x1fc8fc(0xf5)][_0x1fc8fc(0xe6)](_0x4d118e);}function mergeConversationItemPayload(_0x5599ab,_0x35317a){const _0x2ef678=_0x4fcfec,_0x57248d=_0x35317a[_0x2ef678(0xa4)]&&isRecord(_0x5599ab)?_0x5599ab:{},_0x1ab073={..._0x57248d,..._0x35317a[_0x2ef678(0xa2)]};if(_0x35317a[_0x2ef678(0x17e)]===_0x2ef678(0xe1)){const _0x482b3e=Array[_0x2ef678(0xbb)](_0x57248d[_0x2ef678(0xe1)])?_0x57248d[_0x2ef678(0xe1)]:[],_0x4af85a=Array[_0x2ef678(0xbb)](_0x35317a[_0x2ef678(0xa2)][_0x2ef678(0xe1)])?_0x35317a[_0x2ef678(0xa2)][_0x2ef678(0xe1)]:[],_0x573383=new Map();for(const _0x2c7bc1 of[..._0x482b3e,..._0x4af85a]){if(!isRecord(_0x2c7bc1)||typeof _0x2c7bc1[_0x2ef678(0xde)]!==_0x2ef678(0x152)||!Number[_0x2ef678(0xfb)](_0x2c7bc1[_0x2ef678(0xde)])||_0x2c7bc1[_0x2ef678(0xde)]<-0x11fc+0x8bc+-0x25*-0x40||typeof _0x2c7bc1[_0x2ef678(0x10a)]!==_0x2ef678(0x129))continue;_0x573383[_0x2ef678(0x17a)](_0x2c7bc1[_0x2ef678(0xde)],appendProjectionText(_0x573383[_0x2ef678(0x17b)](_0x2c7bc1[_0x2ef678(0xde)])??'',_0x2c7bc1[_0x2ef678(0x10a)]));}_0x1ab073[_0x2ef678(0xe1)]=[..._0x573383][_0x2ef678(0xed)](([_0x289f04],[_0x31464b])=>_0x289f04-_0x31464b)[_0x2ef678(0x88)](([_0x2758dd,_0x2b93bb])=>({'index':_0x2758dd,'text':_0x2b93bb}));}if(_0x35317a[_0x2ef678(0x17e)]===_0x2ef678(0x196)){const _0x535cb5=typeof _0x57248d[_0x2ef678(0x196)]===_0x2ef678(0x129)?_0x57248d[_0x2ef678(0x196)]:'',_0x3d8398=typeof _0x35317a[_0x2ef678(0xa2)][_0x2ef678(0x196)]===_0x2ef678(0x129)?_0x35317a[_0x2ef678(0xa2)][_0x2ef678(0x196)]:'';_0x1ab073[_0x2ef678(0x196)]=appendProjectionText(_0x535cb5,_0x3d8398);}if(_0x35317a[_0x2ef678(0x17e)]===_0x2ef678(0xb4)){const _0x5a6416=typeof _0x57248d[_0x2ef678(0xb4)]===_0x2ef678(0x129)?_0x57248d[_0x2ef678(0xb4)]:'',_0xdb2ea0=typeof _0x35317a[_0x2ef678(0xa2)][_0x2ef678(0xb4)]===_0x2ef678(0x129)?_0x35317a[_0x2ef678(0xa2)][_0x2ef678(0xb4)]:'';_0x1ab073[_0x2ef678(0xb4)]=appendProjectionText(_0x5a6416,_0xdb2ea0);}return _0x1ab073;}function appendProjectionText(_0x33d447,_0x2012cd){const _0x12a9c0=_0x4fcfec,_0x7a219f=''+_0x33d447+_0x2012cd;return _0x7a219f[_0x12a9c0(0x173)]<=-0x230c+0x2d45*-0x1+0x7761?_0x7a219f:_0x7a219f[_0x12a9c0(0x84)](-0xa01+-0xc0*-0x29+-0x14bf,0xde6+0x6e3*-0x4+-0x1*-0x34b5)+'…';}function activeConversationItem(_0x560d40){const _0x57193c=_0x4fcfec;return _0x560d40===_0x57193c(0xe2)||_0x560d40===_0x57193c(0x12c);}function completedConversationItem(_0x5399dd){return!activeConversationItem(_0x5399dd);}function completedStatusForRun(_0x532dfe){const _0x5682b5=_0x4fcfec;if(_0x532dfe===_0x5682b5(0xf5))return _0x5682b5(0xf5);if(_0x532dfe===_0x5682b5(0x107))return _0x5682b5(0x107);if(_0x532dfe===_0x5682b5(0x127))return _0x5682b5(0x127);return _0x5682b5(0x165);}function executionStatusForRun(_0x61c515){const _0x581f75=_0x4fcfec;if(_0x61c515===_0x581f75(0x127))return _0x581f75(0x127);if(_0x61c515===_0x581f75(0xf5)||_0x61c515===_0x581f75(0x107))return _0x581f75(0xf5);if(_0x61c515===_0x581f75(0x158))return _0x581f75(0x158);if(_0x61c515===_0x581f75(0x9f))return _0x581f75(0x9f);return _0x581f75(0x10f);}function terminalExecution(_0x1a0f01){const _0x3aba9a=_0x4fcfec;return _0x1a0f01===_0x3aba9a(0x158)||_0x1a0f01===_0x3aba9a(0x127)||_0x1a0f01===_0x3aba9a(0xf5);}function encodeCursor(_0x93c03e,_0x996337){const _0x4f8b81=_0x4fcfec;return Buffer[_0x4f8b81(0x16b)](JSON[_0x4f8b81(0x130)]({'scope':_0x93c03e,'value':_0x996337}))[_0x4f8b81(0x183)](_0x4f8b81(0x141));}function decodeCursor(_0x4b1c03,_0x35f76e){const _0x21dbbd=_0x4fcfec;if(_0x4b1c03===undefined)return-0x1*0xb68+0x129b*-0x1+-0x1*-0x1e03;try{const _0xe60e35=JSON[_0x21dbbd(0xc7)](Buffer[_0x21dbbd(0x16b)](_0x4b1c03,_0x21dbbd(0x141))[_0x21dbbd(0x183)](_0x21dbbd(0x140)));return _0xe60e35[_0x21dbbd(0x7d)]===_0x35f76e&&Number[_0x21dbbd(0xfb)](_0xe60e35[_0x21dbbd(0x116)])&&_0xe60e35[_0x21dbbd(0x116)]>=-0x3*0xbed+-0x1b52+0x22d*0x1d?_0xe60e35[_0x21dbbd(0x116)]:0x1278+-0x1ca3+0x13*0x89;}catch{return 0x8af+-0x12bf+0xa10;}}
|
|
2
|
+
const _0xbdbd9d=_0x5093;(function(_0x53ffda,_0x149a0f){const _0x614f7a=_0x5093,_0x175c71=_0x53ffda();while(!![]){try{const _0x40a903=parseInt(_0x614f7a(0xdf))/(-0x117d+-0x1e2b*-0x1+-0xcad)*(parseInt(_0x614f7a(0x19d))/(0x1*0x227a+-0x1f49+-0x32f))+-parseInt(_0x614f7a(0xd3))/(0x1411+-0x1110+-0x2fe)*(-parseInt(_0x614f7a(0x10a))/(0x2650+-0x8d0+-0x1d7c))+-parseInt(_0x614f7a(0x1e9))/(-0x176b+0x20c0+-0x950)*(parseInt(_0x614f7a(0x1cc))/(0x11e9+-0x191a+0x737))+-parseInt(_0x614f7a(0x166))/(0x1*-0x25c1+-0x1837+0x3dff)+parseInt(_0x614f7a(0x11c))/(-0x18b9*-0x1+-0x1781+-0x10*0x13)*(-parseInt(_0x614f7a(0xe2))/(0x1c38+0xdb*-0x17+-0x882))+parseInt(_0x614f7a(0xce))/(0xaa5+0x1*0x14fe+0x1*-0x1f99)*(parseInt(_0x614f7a(0x1cd))/(0x5c1+-0x1*-0x137+-0x6ed))+parseInt(_0x614f7a(0x183))/(0x1*-0x2665+0x14e7+0x1c1*0xa);if(_0x40a903===_0x149a0f)break;else _0x175c71['push'](_0x175c71['shift']());}catch(_0x1255d0){_0x175c71['push'](_0x175c71['shift']());}}}(_0x5c2a,0x36895+0x199ad+-0x34954));import{randomUUID}from'node:crypto';export class NodeRuntimeState{[_0xbdbd9d(0x12f)];[_0xbdbd9d(0x14f)];[_0xbdbd9d(0x130)];[_0xbdbd9d(0x1dd)];static [_0xbdbd9d(0x1a4)]=0x5*-0x68c+-0xc65+0x2d2b;[_0xbdbd9d(0x1ec)]=new Map();[_0xbdbd9d(0x1ed)]=new Map();[_0xbdbd9d(0x1a0)]=new Map();[_0xbdbd9d(0x1d9)]=new Map();[_0xbdbd9d(0x119)]=new Map();[_0xbdbd9d(0x18c)]=new Map();[_0xbdbd9d(0xf6)]=new Map();[_0xbdbd9d(0xf3)]=new Map();[_0xbdbd9d(0xf1)]=new Map();[_0xbdbd9d(0xf2)]=new Map();[_0xbdbd9d(0x11d)]=new Map();[_0xbdbd9d(0x1bb)]=new Map();[_0xbdbd9d(0xe8)]=new Set();[_0xbdbd9d(0x1d7)]=new Map();[_0xbdbd9d(0x105)]=new Map();[_0xbdbd9d(0xed)]=new Set();[_0xbdbd9d(0x117)]=new Set();constructor(_0x53e378,_0xb77d05,_0xa48c1f=Date[_0xbdbd9d(0x130)],_0x18e548){const _0x26ab9c=_0xbdbd9d;this[_0x26ab9c(0x12f)]=_0x53e378,this[_0x26ab9c(0x14f)]=_0xb77d05,this[_0x26ab9c(0x130)]=_0xa48c1f,this[_0x26ab9c(0x1dd)]=_0x18e548;}[_0xbdbd9d(0x1af)](){const _0x33d12b=_0xbdbd9d;return this[_0x33d12b(0x1bb)][_0x33d12b(0x104)];}[_0xbdbd9d(0x1a7)](_0x4c198f){const _0xa44f9=_0xbdbd9d,_0x58680e=this[_0xa44f9(0x1bb)][_0xa44f9(0x156)](_0x4c198f);return _0x58680e===undefined?undefined:this[_0xa44f9(0x1ed)][_0xa44f9(0x156)](_0x58680e);}[_0xbdbd9d(0x1ee)](_0x5eb196){const _0x2e9c95=_0xbdbd9d;return this[_0x2e9c95(0x1bb)][_0x2e9c95(0x132)](_0x5eb196);}[_0xbdbd9d(0x177)](_0x352d8a){const _0x1b3bfb=_0xbdbd9d;if(this[_0x1b3bfb(0x14f)](_0x352d8a[_0x1b3bfb(0x155)])===undefined)throw new Error(_0x1b3bfb(0x133));const _0x4ae5f5=this[_0x1b3bfb(0x130)](),_0x43450c=_0x352d8a[_0x1b3bfb(0xcd)]??randomUUID();if(this[_0x1b3bfb(0x1ec)][_0x1b3bfb(0x132)](_0x43450c))throw new Error(_0x1b3bfb(0x167));const _0x460667=_0x352d8a[_0x1b3bfb(0x1be)]?.[_0x1b3bfb(0x182)]()[_0x1b3bfb(0x1b3)](0x240*-0x8+-0xc95*-0x2+-0x7*0x106,0x1*-0x220c+-0x26c+0x946*0x4)||null,_0x1da5ba={'id':_0x43450c,'nodeId':this[_0x1b3bfb(0x12f)](),'workspaceId':_0x352d8a[_0x1b3bfb(0x155)],'runner':_0x352d8a[_0x1b3bfb(0xd6)],'externalSessionId':_0x352d8a[_0x1b3bfb(0xcd)]??null,'nativeControl':_0x352d8a[_0x1b3bfb(0xcd)]===undefined?_0x1b3bfb(0x1b4):_0x352d8a[_0x1b3bfb(0x190)]??_0x1b3bfb(0x1ab),'channelToken':null,'cwd':_0x352d8a[_0x1b3bfb(0x12b)],'model':_0x352d8a[_0x1b3bfb(0x1ac)]??null,'effort':_0x352d8a[_0x1b3bfb(0x101)]??null,'access':_0x352d8a[_0x1b3bfb(0xd2)]??null,'customTitle':_0x460667,'runnerTitle':_0x352d8a[_0x1b3bfb(0x19e)]?.[_0x1b3bfb(0x182)]()[_0x1b3bfb(0x1b3)](0x1de3*0x1+-0x1a69+-0x37a,0x1e9*-0x1+-0x125e+-0x14e7*-0x1)||null,'pinnedAt':null,'titleSource':_0x460667===null?_0x1b3bfb(0x16b):_0x1b3bfb(0x10d),'lastActivityAt':_0x4ae5f5,'createdAt':_0x4ae5f5};return this[_0x1b3bfb(0x1ec)][_0x1b3bfb(0xd9)](_0x1da5ba['id'],_0x1da5ba),_0x1da5ba;}[_0xbdbd9d(0xfc)](_0x4e0dfb){const _0x3aca18=_0xbdbd9d;this[_0x3aca18(0x199)](_0x4e0dfb[_0x3aca18(0xe0)]);if(this[_0x3aca18(0x117)][_0x3aca18(0x132)](_0x4e0dfb[_0x3aca18(0x129)]))throw new Error(_0x3aca18(0x150));let _0x1b2839=this[_0x3aca18(0x1ec)][_0x3aca18(0x156)](_0x4e0dfb[_0x3aca18(0xe0)]);if(_0x1b2839===undefined){const _0x266b6e=this[_0x3aca18(0x130)]();_0x1b2839={'id':_0x4e0dfb[_0x3aca18(0xe0)],'nodeId':this[_0x3aca18(0x12f)](),'workspaceId':_0x4e0dfb[_0x3aca18(0x155)]??_0x3aca18(0x1a1)+_0x4e0dfb[_0x3aca18(0x12b)],'runner':_0x4e0dfb[_0x3aca18(0xd6)],'externalSessionId':_0x4e0dfb[_0x3aca18(0xcd)]??null,'nativeControl':_0x4e0dfb[_0x3aca18(0xcd)]===undefined?_0x3aca18(0x1b4):_0x3aca18(0x1ab),'channelToken':null,'cwd':_0x4e0dfb[_0x3aca18(0x12b)],'model':null,'effort':null,'access':null,'customTitle':null,'runnerTitle':null,'pinnedAt':null,'titleSource':_0x3aca18(0x16b),'lastActivityAt':_0x266b6e,'createdAt':_0x266b6e},this[_0x3aca18(0x1ec)][_0x3aca18(0xd9)](_0x1b2839['id'],_0x1b2839);}const _0x2f7f07=this[_0x3aca18(0x15b)](_0x4e0dfb[_0x3aca18(0x129)]);if(_0x2f7f07!==undefined)return _0x2f7f07;const _0x4bc856=this[_0x3aca18(0x130)](),_0x10b444={'id':_0x4e0dfb[_0x3aca18(0x129)],'sessionId':_0x1b2839['id'],'nodeId':this[_0x3aca18(0x12f)](),'workspaceId':_0x1b2839[_0x3aca18(0x155)],'runner':_0x1b2839[_0x3aca18(0xd6)],'status':_0x3aca18(0x10e),'recoveryState':_0x3aca18(0x17a),'version':0x0,'clientMessageId':_0x4e0dfb[_0x3aca18(0xfd)]??_0x4e0dfb[_0x3aca18(0x129)],..._0x4e0dfb[_0x3aca18(0x138)]===undefined?{}:{'initiatedByUserId':_0x4e0dfb[_0x3aca18(0x138)]},'createdAt':_0x4bc856,'startedAt':_0x4bc856,'completedAt':null,'updatedAt':_0x4bc856};return this[_0x3aca18(0x1ed)][_0x3aca18(0xd9)](_0x10b444['id'],_0x10b444),this[_0x3aca18(0x1bb)][_0x3aca18(0xd9)](_0x10b444[_0x3aca18(0xe0)],_0x10b444['id']),this[_0x3aca18(0x197)](_0x10b444,_0x1b2839),_0x10b444;}[_0xbdbd9d(0x126)](_0x3f6a2b){const _0x20eb0e=_0xbdbd9d;return this[_0x20eb0e(0x1ec)][_0x20eb0e(0x156)](_0x3f6a2b)??[...this[_0x20eb0e(0x1ec)][_0x20eb0e(0xea)]()][_0x20eb0e(0x1df)](_0x18b2ad=>_0x18b2ad[_0x20eb0e(0xcd)]===_0x3f6a2b);}[_0xbdbd9d(0x19c)](){const _0x4d935f=_0xbdbd9d;return[...this[_0x4d935f(0x1ec)][_0x4d935f(0xea)]()][_0x4d935f(0x102)]((_0x3efd3b,_0xefc4f9)=>_0xefc4f9[_0x4d935f(0x1b9)]-_0x3efd3b[_0x4d935f(0x1b9)]);}[_0xbdbd9d(0x1b6)](_0x132350,_0x1614c2){const _0x4c09f7=_0xbdbd9d;return[...this[_0x4c09f7(0x1ec)][_0x4c09f7(0xea)]()][_0x4c09f7(0x1df)](_0x38d49f=>_0x38d49f[_0x4c09f7(0xd6)]===_0x132350&&_0x38d49f[_0x4c09f7(0xcd)]===_0x1614c2);}[_0xbdbd9d(0x187)](_0x48bbdc){const _0x4ab9a0=_0xbdbd9d;return this[_0x4ab9a0(0x1ef)](_0x48bbdc[_0x4ab9a0(0xe0)],{'model':_0x48bbdc[_0x4ab9a0(0x1ac)],'effort':_0x48bbdc[_0x4ab9a0(0x101)],'access':_0x48bbdc[_0x4ab9a0(0xd2)]});}[_0xbdbd9d(0x1b2)](_0x8713b2,_0x5a0eb1){const _0x2a0b24=_0xbdbd9d;return this[_0x2a0b24(0x1ef)](_0x8713b2,{'access':_0x5a0eb1});}[_0xbdbd9d(0x1ce)](_0x2cc139,_0x2cae33){const _0x37bb02=_0xbdbd9d;this[_0x37bb02(0x1ef)](_0x2cc139,{'nativeControl':_0x2cae33});}[_0xbdbd9d(0xec)](_0x55706f,_0x211696){const _0x206d82=_0xbdbd9d;if(_0x211696[_0x206d82(0x171)]===-0x3a7+0x26f9+-0x19b*0x16)throw new Error(_0x206d82(0x18f));this[_0x206d82(0x154)](_0x55706f,_0x211696);}[_0xbdbd9d(0x154)](_0x1a3f9c,_0x33ca0b){const _0x448c2a=_0xbdbd9d;if(_0x33ca0b[_0x448c2a(0x171)]===-0x1af8+0x16ed+0x40b)throw new Error(_0x448c2a(0x18f));const _0x7f6252=this[_0x448c2a(0x169)](_0x1a3f9c);if(_0x1a3f9c===_0x33ca0b)return this[_0x448c2a(0x1ef)](_0x1a3f9c,{'externalSessionId':_0x33ca0b,'nativeControl':_0x448c2a(0x1b4)});const _0x1f17ae=this[_0x448c2a(0x1ec)][_0x448c2a(0x156)](_0x33ca0b);if(_0x1f17ae!==undefined&&_0x1f17ae['id']!==_0x7f6252['id'])throw new Error(_0x448c2a(0x167));const _0x3b906e={..._0x7f6252,'id':_0x33ca0b,'externalSessionId':_0x33ca0b,'nativeControl':_0x448c2a(0x1b4)},_0x3dc487=this[_0x448c2a(0x15f)](_0x1a3f9c),_0xf0fe2f=this[_0x448c2a(0xf2)][_0x448c2a(0x156)](_0x1a3f9c)??[],_0xf37ab5=this[_0x448c2a(0x1d7)][_0x448c2a(0x156)](_0x1a3f9c),_0x462124=this[_0x448c2a(0x105)][_0x448c2a(0x156)](_0x1a3f9c),_0x52014d=this[_0x448c2a(0x1bb)][_0x448c2a(0x156)](_0x1a3f9c),_0x4e76dd=this[_0x448c2a(0xed)][_0x448c2a(0x132)](_0x1a3f9c);this[_0x448c2a(0x1ec)][_0x448c2a(0x111)](_0x1a3f9c),this[_0x448c2a(0x1ec)][_0x448c2a(0xd9)](_0x33ca0b,_0x3b906e);for(const _0x241b0f of _0x3dc487)this[_0x448c2a(0x1ed)][_0x448c2a(0xd9)](_0x241b0f['id'],{..._0x241b0f,'sessionId':_0x33ca0b});this[_0x448c2a(0xf2)][_0x448c2a(0x111)](_0x1a3f9c),this[_0x448c2a(0xf2)][_0x448c2a(0xd9)](_0x33ca0b,_0xf0fe2f[_0x448c2a(0xe7)](_0x45fa08=>({..._0x45fa08,'sessionId':_0x33ca0b,'items':_0x45fa08[_0x448c2a(0x135)][_0x448c2a(0xe7)](_0x1a0209=>({..._0x1a0209,'sessionId':_0x33ca0b}))})));if(_0xf37ab5!==undefined){this[_0x448c2a(0x1d7)][_0x448c2a(0x111)](_0x1a3f9c),this[_0x448c2a(0x1d7)][_0x448c2a(0xd9)](_0x33ca0b,_0xf37ab5);for(const _0x5d205e of _0xf37ab5){const _0x23b96b=this[_0x448c2a(0x18c)][_0x448c2a(0x156)](_0x5d205e);if(_0x23b96b!==undefined)this[_0x448c2a(0x18c)][_0x448c2a(0xd9)](_0x5d205e,{..._0x23b96b,'sessionId':_0x33ca0b});}}_0x462124!==undefined&&(this[_0x448c2a(0x105)][_0x448c2a(0x111)](_0x1a3f9c),this[_0x448c2a(0x105)][_0x448c2a(0xd9)](_0x33ca0b,_0x462124));_0x52014d!==undefined&&(this[_0x448c2a(0x1bb)][_0x448c2a(0x111)](_0x1a3f9c),this[_0x448c2a(0x1bb)][_0x448c2a(0xd9)](_0x33ca0b,_0x52014d));_0x4e76dd&&(this[_0x448c2a(0xed)][_0x448c2a(0x111)](_0x1a3f9c),this[_0x448c2a(0xed)][_0x448c2a(0xd1)](_0x33ca0b));for(const [_0x5316f4,_0xe0427]of[...this[_0x448c2a(0x1d9)]]){if(!_0x5316f4[_0x448c2a(0xf7)](_0x1a3f9c+'\x00'))continue;this[_0x448c2a(0x1d9)][_0x448c2a(0x111)](_0x5316f4),this[_0x448c2a(0x1d9)][_0x448c2a(0xd9)](''+_0x33ca0b+_0x5316f4[_0x448c2a(0x1b3)](_0x1a3f9c[_0x448c2a(0x171)]),_0xe0427);}for(const [_0x1fa2c6,_0x20cb18]of this[_0x448c2a(0xf3)])if(_0x20cb18[_0x448c2a(0xe0)]===_0x1a3f9c)this[_0x448c2a(0xf3)][_0x448c2a(0xd9)](_0x1fa2c6,{..._0x20cb18,'sessionId':_0x33ca0b});for(const _0x23e2c2 of _0x3dc487){const _0x1e5a9a=this[_0x448c2a(0xfe)](_0x23e2c2['id']);this[_0x448c2a(0x197)](_0x1e5a9a,_0x3b906e);}return _0x3b906e;}[_0xbdbd9d(0xde)](_0x534ac7,_0x2d0bd4){const _0x3ec751=_0xbdbd9d;if(_0x2d0bd4[_0x3ec751(0x171)]<-0x2618+-0x69a+-0x11*-0x2a2)throw new Error(_0x3ec751(0x1ad));this[_0x3ec751(0x1ef)](_0x534ac7,{'channelToken':_0x2d0bd4});}[_0xbdbd9d(0xcb)](_0x3ae222){const _0x2b379b=_0xbdbd9d,_0x265102=this[_0x2b379b(0x169)](_0x3ae222[_0x2b379b(0xe0)]),_0x28df2d=_0x3ae222[_0x2b379b(0x1be)]===undefined?_0x265102[_0x2b379b(0x1be)]:_0x3ae222[_0x2b379b(0x1be)]?.[_0x2b379b(0x182)]()||null;if(_0x28df2d!==null&&_0x28df2d[_0x2b379b(0x171)]>-0x15*-0x18e+0x16f8+-0x36fe)throw new Error(_0x2b379b(0xf0));return this[_0x2b379b(0x1ef)](_0x265102['id'],{'customTitle':_0x28df2d,'pinnedAt':_0x3ae222[_0x2b379b(0x1e6)]===undefined?_0x265102[_0x2b379b(0x198)]:_0x3ae222[_0x2b379b(0x1e6)]?this[_0x2b379b(0x130)]():null,'titleSource':_0x28df2d===null?_0x2b379b(0x16b):_0x2b379b(0x10d)});}[_0xbdbd9d(0xd8)](_0x3f6309,_0xdaf7f3){const _0x2a0379=_0xbdbd9d,_0x1dfc69=this[_0x2a0379(0x169)](_0x3f6309),_0xa77ae0=_0xdaf7f3[_0x2a0379(0x182)]()[_0x2a0379(0xe5)](/\s+/g,'\x20')[_0x2a0379(0x1b3)](-0x215b*-0x1+-0x422+-0x1d39,0xf0b*0x2+0x15ff*-0x1+0x7*-0x111);if(_0xa77ae0[_0x2a0379(0x171)]===0x239b+-0x16df+-0xcbc||_0x1dfc69[_0x2a0379(0x1be)]!==null||_0x1dfc69[_0x2a0379(0x1d8)]!==null)return _0x1dfc69;return this[_0x2a0379(0x1ef)](_0x3f6309,{'runnerTitle':_0xa77ae0,'titleSource':_0x2a0379(0x16b)});}[_0xbdbd9d(0x1e7)](_0x34d83c,_0x1e7ed9){const _0x417fa0=_0xbdbd9d,_0x23034b=this[_0x417fa0(0x169)](_0x34d83c),_0x4298f9=_0x1e7ed9[_0x417fa0(0x182)]()[_0x417fa0(0xe5)](/\s+/g,'\x20')[_0x417fa0(0x1b3)](0x5*-0x26e+0x49c+0x78a,0x25a6+0xbcf+0x1047*-0x3);if(_0x4298f9[_0x417fa0(0x171)]===-0x2065*0x1+0xa77+-0x191*-0xe||_0x23034b[_0x417fa0(0x1be)]!==null||_0x23034b[_0x417fa0(0x1d8)]===_0x4298f9||_0x23034b[_0x417fa0(0x178)]===_0x417fa0(0x16b)&&isDefaultRunnerTitle(_0x4298f9))return _0x23034b;return this[_0x417fa0(0x1ef)](_0x34d83c,{'runnerTitle':_0x4298f9,'titleSource':_0x417fa0(0xe1)});}[_0xbdbd9d(0x17d)](_0x342a43){const _0x1cd300=_0xbdbd9d;this[_0x1cd300(0x199)](_0x342a43[_0x1cd300(0xe0)]);const _0x2dc549=_0x342a43[_0x1cd300(0xe0)]+'\x00'+_0x342a43[_0x1cd300(0xfd)],_0x3057ef=this[_0x1cd300(0x1d9)][_0x1cd300(0x156)](_0x2dc549);if(_0x3057ef!==undefined){if(_0x3057ef[_0x1cd300(0x1a5)]!==_0x1cd300(0xcc))throw new Error(_0x1cd300(0x193));return{'run':this[_0x1cd300(0xfe)](_0x3057ef['id']),'created':![]};}const _0x2df819=this[_0x1cd300(0x169)](_0x342a43[_0x1cd300(0xe0)]);if(this[_0x1cd300(0x1a7)](_0x2df819['id'])!==undefined)throw new Error(_0x1cd300(0x186));const _0x51c559=this[_0x1cd300(0x130)](),_0x241c23={'id':_0x342a43[_0x1cd300(0x129)]??randomUUID(),'sessionId':_0x2df819['id'],'nodeId':this[_0x1cd300(0x12f)](),'workspaceId':_0x2df819[_0x1cd300(0x155)],'runner':_0x2df819[_0x1cd300(0xd6)],'status':_0x1cd300(0x10e),'recoveryState':_0x1cd300(0x17a),'version':0x0,'clientMessageId':_0x342a43[_0x1cd300(0xfd)],..._0x342a43[_0x1cd300(0x138)]===undefined?{}:{'initiatedByUserId':_0x342a43[_0x1cd300(0x138)]},'createdAt':_0x51c559,'startedAt':_0x51c559,'completedAt':null,'updatedAt':_0x51c559},_0x2859d0=this[_0x1cd300(0x16f)](_0x241c23['id'],_0x342a43[_0x1cd300(0xff)]??[]),_0x887580={'id':randomUUID(),'sessionId':_0x2df819['id'],'turnId':'','runId':_0x241c23['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x1cd300(0x14b),'status':_0x1cd300(0x1d5),'payload':{'clientMessageId':_0x342a43[_0x1cd300(0xfd)],'text':_0x342a43[_0x1cd300(0x13a)],'contexts':[],'attachments':_0x2859d0,'delivery':_0x1cd300(0x1a9)},'startedAt':_0x51c559,'completedAt':_0x51c559},_0x5b4464={'id':randomUUID(),'sessionId':_0x2df819['id'],'runId':_0x241c23['id'],'userItemId':_0x887580['id'],'status':_0x1cd300(0x17c),'model':_0x2df819[_0x1cd300(0x1ac)],'effort':_0x2df819[_0x1cd300(0x101)],'access':_0x2df819[_0x1cd300(0xd2)],'items':[_0x887580],'startedAt':_0x51c559,'completedAt':null},_0x469600={..._0x5b4464,'items':[{..._0x887580,'turnId':_0x5b4464['id']}]};return this[_0x1cd300(0x1ed)][_0x1cd300(0xd9)](_0x241c23['id'],_0x241c23),this[_0x1cd300(0x1a0)][_0x1cd300(0xd9)](_0x241c23['id'],_0x342a43[_0x1cd300(0xd4)]??_0x342a43[_0x1cd300(0x13a)]),this[_0x1cd300(0x1d9)][_0x1cd300(0xd9)](_0x2dc549,{'kind':_0x1cd300(0xcc),'id':_0x241c23['id']}),this[_0x1cd300(0x1bb)][_0x1cd300(0xd9)](_0x2df819['id'],_0x241c23['id']),this[_0x1cd300(0xf2)][_0x1cd300(0xd9)](_0x2df819['id'],[...this[_0x1cd300(0xf2)][_0x1cd300(0x156)](_0x2df819['id'])??[],_0x469600]),this[_0x1cd300(0x1ef)](_0x2df819['id'],{'lastActivityAt':_0x51c559}),this[_0x1cd300(0x197)](_0x241c23,this[_0x1cd300(0x169)](_0x2df819['id'])),{'run':_0x241c23,'created':!![]};}[_0xbdbd9d(0x1d0)](_0x2a30ed){const _0x205cc0=_0xbdbd9d;this[_0x205cc0(0x199)](_0x2a30ed[_0x205cc0(0xe0)]);const _0x409590=_0x2a30ed[_0x205cc0(0xe0)]+'\x00'+_0x2a30ed[_0x205cc0(0xfd)],_0x31a251=this[_0x205cc0(0x1d9)][_0x205cc0(0x156)](_0x409590);if(_0x31a251!==undefined){if(_0x31a251[_0x205cc0(0x1a5)]!==_0x205cc0(0x1c5))throw new Error(_0x205cc0(0x1c2));return{'item':this[_0x205cc0(0x16a)](_0x31a251['id']),'created':![]};}const _0x2c6a85=this[_0x205cc0(0x169)](_0x2a30ed[_0x205cc0(0xe0)]),_0x467991=this[_0x205cc0(0x1a7)](_0x2c6a85['id']),_0x4b852c=(this[_0x205cc0(0x1d7)][_0x205cc0(0x156)](_0x2c6a85['id'])??[])[_0x205cc0(0xe7)](_0x336b18=>this[_0x205cc0(0x18c)][_0x205cc0(0x156)](_0x336b18)?.[_0x205cc0(0x138)])[_0x205cc0(0x1df)](_0x4ca262=>_0x4ca262!==undefined),_0x16cf34=_0x467991?.[_0x205cc0(0x138)]??_0x4b852c;if(_0x16cf34!==undefined&&_0x2a30ed[_0x205cc0(0x138)]!==_0x16cf34)throw new Error(_0x205cc0(0x12d));const _0x4d01cc=this[_0x205cc0(0x130)](),_0x48ecc2={'id':_0x2a30ed[_0x205cc0(0x1db)]??randomUUID(),'sessionId':_0x2c6a85['id'],'workspaceId':_0x2c6a85[_0x205cc0(0x155)],'runner':_0x2c6a85[_0x205cc0(0xd6)],'clientMessageId':_0x2a30ed[_0x205cc0(0xfd)],'content':_0x2a30ed[_0x205cc0(0x13a)],'attachments':_0x2a30ed[_0x205cc0(0xff)]??[],..._0x2a30ed[_0x205cc0(0x138)]===undefined?{}:{'initiatedByUserId':_0x2a30ed[_0x205cc0(0x138)]},'createdAt':_0x4d01cc};return this[_0x205cc0(0x18c)][_0x205cc0(0xd9)](_0x48ecc2['id'],_0x48ecc2),this[_0x205cc0(0x1d9)][_0x205cc0(0xd9)](_0x409590,{'kind':_0x205cc0(0x1c5),'id':_0x48ecc2['id']}),this[_0x205cc0(0x1d7)][_0x205cc0(0xd9)](_0x2c6a85['id'],[...this[_0x205cc0(0x1d7)][_0x205cc0(0x156)](_0x2c6a85['id'])??[],_0x48ecc2['id']]),this[_0x205cc0(0x149)](_0x2c6a85['id']),{'item':_0x48ecc2,'created':!![]};}[_0xbdbd9d(0x1dc)](_0x111574){const _0x4d4a64=_0xbdbd9d;return{'version':this[_0x4d4a64(0x105)][_0x4d4a64(0x156)](_0x111574)??0x1*-0x1b92+-0x503+0x2095,'paused':this[_0x4d4a64(0xed)][_0x4d4a64(0x132)](_0x111574),'itemIds':this[_0x4d4a64(0x1d7)][_0x4d4a64(0x156)](_0x111574)??[]};}[_0xbdbd9d(0x191)](_0x48efb1){const _0x29a7f2=_0xbdbd9d;return this[_0x29a7f2(0x18c)][_0x29a7f2(0x156)](_0x48efb1);}[_0xbdbd9d(0x17b)](_0x49714b,_0x5d769c){const _0x2c05c1=_0xbdbd9d;if(this[_0x2c05c1(0xed)][_0x2c05c1(0x132)](_0x49714b))return undefined;const _0x161005=this[_0x2c05c1(0x1a7)](_0x49714b);if(_0x161005===undefined)return undefined;const _0xea7c49=this[_0x2c05c1(0x1d7)][_0x2c05c1(0x156)](_0x49714b)??[],_0x129cbf=_0xea7c49[-0x1afb*0x1+0x1*0x17e1+0x31a];if(_0x129cbf===undefined)return undefined;const _0x2944e5=this[_0x2c05c1(0x16a)](_0x129cbf),_0x9ad661=_0x161005[_0x2c05c1(0x138)]===undefined&&_0x2944e5[_0x2c05c1(0x138)]!==undefined?{..._0x161005,'initiatedByUserId':_0x2944e5[_0x2c05c1(0x138)]}:_0x161005;if(_0x9ad661!==_0x161005)this[_0x2c05c1(0x1ed)][_0x2c05c1(0xd9)](_0x9ad661['id'],_0x9ad661);this[_0x2c05c1(0x1d7)][_0x2c05c1(0xd9)](_0x49714b,_0xea7c49[_0x2c05c1(0x1b3)](-0x1fd*-0x13+-0xb6*-0x4+-0x289e)),this[_0x2c05c1(0x149)](_0x49714b),this[_0x2c05c1(0x18c)][_0x2c05c1(0x111)](_0x129cbf),this[_0x2c05c1(0x1d9)][_0x2c05c1(0xd9)](_0x2944e5[_0x2c05c1(0xe0)]+'\x00'+_0x2944e5[_0x2c05c1(0xfd)],{'kind':_0x2c05c1(0xcc),'id':_0x9ad661['id']});const _0x538268=this[_0x2c05c1(0x173)](_0x9ad661,_0x2944e5[_0x2c05c1(0xfd)],_0x5d769c??_0x2944e5[_0x2c05c1(0x13a)],_0x2944e5[_0x2c05c1(0xff)]);return this[_0x2c05c1(0x1a0)][_0x2c05c1(0xd9)](_0x9ad661['id'],_0x2944e5[_0x2c05c1(0x13a)]),this[_0x2c05c1(0x197)](_0x9ad661,this[_0x2c05c1(0x169)](_0x49714b)),{'item':_0x2944e5,'turn':_0x538268};}[_0xbdbd9d(0x15a)](_0xcf37d0,_0x5d58dc){const _0x29496f=_0xbdbd9d,_0x9b64d9=this[_0x29496f(0x16a)](_0xcf37d0);if(this[_0x29496f(0x1a7)](_0x9b64d9[_0x29496f(0xe0)])!==undefined)throw new Error(_0x29496f(0x186));const _0xfe4baf=this[_0x29496f(0x1d7)][_0x29496f(0x156)](_0x9b64d9[_0x29496f(0xe0)])??[];if(_0xfe4baf[-0x2003+0x3ed*-0x9+0x4358]!==_0xcf37d0)throw new Error(_0x29496f(0x181));this[_0x29496f(0x1d7)][_0x29496f(0xd9)](_0x9b64d9[_0x29496f(0xe0)],_0xfe4baf[_0x29496f(0x1b3)](0x1ee9+-0x3ab*0x2+-0xe*0x1af)),this[_0x29496f(0x18c)][_0x29496f(0x111)](_0xcf37d0),this[_0x29496f(0x1d9)][_0x29496f(0x111)](_0x9b64d9[_0x29496f(0xe0)]+'\x00'+_0x9b64d9[_0x29496f(0xfd)]),this[_0x29496f(0x149)](_0x9b64d9[_0x29496f(0xe0)]);const _0x6cbc28=this[_0x29496f(0x17d)]({'sessionId':_0x9b64d9[_0x29496f(0xe0)],'clientMessageId':_0x9b64d9[_0x29496f(0xfd)],'content':_0x5d58dc??_0x9b64d9[_0x29496f(0x13a)],'recentUserMessage':_0x9b64d9[_0x29496f(0x13a)],..._0x9b64d9[_0x29496f(0xff)][_0x29496f(0x171)]===-0x150f+-0x51*-0x1f+-0xf0*-0xc?{}:{'attachments':_0x9b64d9[_0x29496f(0xff)]},..._0x9b64d9[_0x29496f(0x138)]===undefined?{}:{'initiatedByUserId':_0x9b64d9[_0x29496f(0x138)]}}),_0x45cb4a=this[_0x29496f(0x12e)](_0x6cbc28[_0x29496f(0xcc)]['id']);if(_0x45cb4a===undefined)throw new Error(_0x29496f(0x127));return{'run':_0x6cbc28[_0x29496f(0xcc)],'turn':_0x45cb4a};}[_0xbdbd9d(0xef)](_0x1d7e85){const _0x52a073=_0xbdbd9d;this[_0x52a073(0xed)][_0x52a073(0xd1)](_0x1d7e85),this[_0x52a073(0x149)](_0x1d7e85);}[_0xbdbd9d(0x1c9)](_0x300f44){const _0x50c02f=_0xbdbd9d;if(!this[_0x50c02f(0xed)][_0x50c02f(0x111)](_0x300f44))return;this[_0x50c02f(0x149)](_0x300f44);}[_0xbdbd9d(0x170)](_0x4fe6d1,_0x12d41b,_0x259500){const _0x313ec1=_0xbdbd9d,_0x2a4e32=this[_0x313ec1(0x1d7)][_0x313ec1(0x156)](_0x4fe6d1)??[];if(this[_0x313ec1(0x1dc)](_0x4fe6d1)[_0x313ec1(0x185)]!==_0x12d41b||_0x2a4e32[_0x313ec1(0x171)]!==_0x259500[_0x313ec1(0x171)]||new Set(_0x2a4e32)[_0x313ec1(0x104)]!==_0x2a4e32[_0x313ec1(0x171)]||_0x2a4e32[_0x313ec1(0x1da)](_0x4547cc=>!_0x259500[_0x313ec1(0x19a)](_0x4547cc)))throw new Error(_0x313ec1(0x1b1));if(_0x259500[_0x313ec1(0x1da)](_0x5760cb=>this[_0x313ec1(0x18c)][_0x313ec1(0x156)](_0x5760cb)?.[_0x313ec1(0xe0)]!==_0x4fe6d1))throw new Error(_0x313ec1(0x181));this[_0x313ec1(0x1d7)][_0x313ec1(0xd9)](_0x4fe6d1,[..._0x259500]),this[_0x313ec1(0x149)](_0x4fe6d1);}[_0xbdbd9d(0xf9)](_0x565a2f){const _0x240f8a=_0xbdbd9d,_0x2aa14f=this[_0x240f8a(0x16a)](_0x565a2f),_0x4587c3=this[_0x240f8a(0x1d7)][_0x240f8a(0x156)](_0x2aa14f[_0x240f8a(0xe0)])??[];if(!_0x4587c3[_0x240f8a(0x19a)](_0x565a2f))throw new Error(_0x240f8a(0x181));return this[_0x240f8a(0x1d7)][_0x240f8a(0xd9)](_0x2aa14f[_0x240f8a(0xe0)],[_0x565a2f,..._0x4587c3[_0x240f8a(0x1e1)](_0x88e0a8=>_0x88e0a8!==_0x565a2f)]),this[_0x240f8a(0x149)](_0x2aa14f[_0x240f8a(0xe0)]),_0x2aa14f;}[_0xbdbd9d(0x176)](_0x486c00,_0x4c553f){const _0x40fefd=_0xbdbd9d,_0x451520=this[_0x40fefd(0x16a)](_0x486c00);if(!(this[_0x40fefd(0x1d7)][_0x40fefd(0x156)](_0x451520[_0x40fefd(0xe0)])??[])[_0x40fefd(0x19a)](_0x486c00))throw new Error(_0x40fefd(0x181));const _0x596864={..._0x451520,'content':_0x4c553f};return this[_0x40fefd(0x18c)][_0x40fefd(0xd9)](_0x486c00,_0x596864),this[_0x40fefd(0x149)](_0x451520[_0x40fefd(0xe0)]),_0x596864;}[_0xbdbd9d(0x15e)](_0xf2f7f1,_0x522b62){const _0x55e44f=_0xbdbd9d,_0x590c56=this[_0x55e44f(0x16a)](_0xf2f7f1),_0x31b340={..._0x590c56,'attachments':_0x522b62};return this[_0x55e44f(0x18c)][_0x55e44f(0xd9)](_0xf2f7f1,_0x31b340),_0x31b340;}[_0xbdbd9d(0x145)](_0x4d096){const _0x2eaf35=_0xbdbd9d,_0x3b99bc=this[_0x2eaf35(0x16a)](_0x4d096),_0x39f3cf=this[_0x2eaf35(0x1d7)][_0x2eaf35(0x156)](_0x3b99bc[_0x2eaf35(0xe0)])??[];if(!_0x39f3cf[_0x2eaf35(0x19a)](_0x4d096))throw new Error(_0x2eaf35(0x181));this[_0x2eaf35(0x1d7)][_0x2eaf35(0xd9)](_0x3b99bc[_0x2eaf35(0xe0)],_0x39f3cf[_0x2eaf35(0x1e1)](_0x66fd8a=>_0x66fd8a!==_0x4d096)),this[_0x2eaf35(0x149)](_0x3b99bc[_0x2eaf35(0xe0)]),this[_0x2eaf35(0x18c)][_0x2eaf35(0x111)](_0x4d096);for(const [_0x37e0fc,_0x500482]of this[_0x2eaf35(0x1d9)])if(_0x500482[_0x2eaf35(0x1a5)]===_0x2eaf35(0x1c5)&&_0x500482['id']===_0x4d096)this[_0x2eaf35(0x1d9)][_0x2eaf35(0x111)](_0x37e0fc);}[_0xbdbd9d(0x1b5)](_0x367d47){const _0x3aba59=_0xbdbd9d,_0x4c5e7a=this[_0x3aba59(0xfe)](_0x367d47),_0x1d8e8f=(this[_0x3aba59(0xf2)][_0x3aba59(0x156)](_0x4c5e7a[_0x3aba59(0xe0)])??[])[_0x3aba59(0x118)](_0x39d11b=>_0x39d11b[_0x3aba59(0x129)]===_0x367d47),_0x25a326=_0x1d8e8f?.[_0x3aba59(0x135)][_0x3aba59(0x1df)](_0x55b74a=>_0x55b74a['id']===_0x1d8e8f[_0x3aba59(0x1e0)]);return isRecord(_0x25a326?.[_0x3aba59(0x11f)])&&typeof _0x25a326[_0x3aba59(0x11f)][_0x3aba59(0x131)]===_0x3aba59(0x147)?_0x25a326[_0x3aba59(0x11f)][_0x3aba59(0x131)]:'';}[_0xbdbd9d(0x1a8)](_0x320a79,_0xb331db,_0x1c4404){const _0x145126=_0xbdbd9d,_0x32c386=this[_0x145126(0x16f)](_0x320a79,_0x1c4404);this[_0x145126(0x1e3)](_0x320a79,_0x5dd15c=>({..._0x5dd15c,'items':_0x5dd15c[_0x145126(0x135)][_0x145126(0xe7)](_0x193773=>_0x193773['id']===_0x5dd15c[_0x145126(0x1e0)]&&isRecord(_0x193773[_0x145126(0x11f)])?{..._0x193773,'payload':{..._0x193773[_0x145126(0x11f)],'text':_0xb331db,'attachments':_0x32c386}}:_0x193773)}));}[_0xbdbd9d(0x15b)](_0xd5f7ec){const _0x3e862d=_0xbdbd9d,_0x222818=this[_0x3e862d(0xf6)][_0x3e862d(0x156)](_0xd5f7ec)?.[_0x3e862d(0x129)]??_0xd5f7ec;return this[_0x3e862d(0x1ed)][_0x3e862d(0x156)](_0x222818);}[_0xbdbd9d(0x122)](_0x4b6394,_0x282ef2){const _0x2ff84e=_0xbdbd9d,_0x235308=this[_0x2ff84e(0x1d9)][_0x2ff84e(0x156)](_0x4b6394+'\x00'+_0x282ef2);return _0x235308?.[_0x2ff84e(0x1a5)]===_0x2ff84e(0xcc)?this[_0x2ff84e(0x1ed)][_0x2ff84e(0x156)](_0x235308['id']):undefined;}[_0xbdbd9d(0x108)](_0x1bb2d6,_0x2b580d){const _0x2d954b=_0xbdbd9d,_0x390613=this[_0x2d954b(0x1d9)][_0x2d954b(0x156)](_0x1bb2d6+'\x00'+_0x2b580d);if(_0x390613===undefined)return undefined;if(_0x390613[_0x2d954b(0x1a5)]===_0x2d954b(0xcc))return{'kind':_0x2d954b(0xcc),'run':this[_0x2d954b(0xfe)](_0x390613['id'])};const _0x48221f=this[_0x2d954b(0x16a)](_0x390613['id']),_0x3d7c0d=this[_0x2d954b(0x1a7)](_0x1bb2d6);if(_0x3d7c0d===undefined)throw new Error(_0x2d954b(0x18e));return{'kind':_0x2d954b(0x1c5),'item':_0x48221f,'run':_0x3d7c0d};}[_0xbdbd9d(0x1f0)](_0x3196c5,_0x4a5eb7){const _0x1c25a1=_0xbdbd9d;return this[_0x1c25a1(0x119)][_0x1c25a1(0x156)](_0x3196c5+'\x00'+_0x4a5eb7);}[_0xbdbd9d(0x195)](_0x3fb779,_0x45299b){const _0x3f1186=_0xbdbd9d,_0x5baac8=[...this[_0x3f1186(0x1d9)]][_0x3f1186(0x1df)](([,_0x2ad4e8])=>_0x2ad4e8['id']===_0x3fb779);if(_0x5baac8===undefined)return;this[_0x3f1186(0x119)][_0x3f1186(0xd9)](_0x5baac8[0xb46*-0x2+-0xd03*0x3+0x41b*0xf],_0x45299b);if(this[_0x3f1186(0x119)][_0x3f1186(0x104)]>-0x118c+-0x15bf*0x1+0x2b4b)this[_0x3f1186(0x119)][_0x3f1186(0x111)](this[_0x3f1186(0x119)][_0x3f1186(0x113)]()[_0x3f1186(0x1d3)]()[_0x3f1186(0x124)]);}[_0xbdbd9d(0x15f)](_0x59c28b){const _0xf83d19=_0xbdbd9d;return[...this[_0xf83d19(0x1ed)][_0xf83d19(0xea)]()][_0xf83d19(0x1e1)](_0x42e424=>_0x42e424[_0xf83d19(0xe0)]===_0x59c28b)[_0xf83d19(0x102)]((_0x5c3ad7,_0x5e04d2)=>_0x5e04d2[_0xf83d19(0xca)]-_0x5c3ad7[_0xf83d19(0xca)]);}[_0xbdbd9d(0x13f)](_0x47231a,_0x21cde1){const _0x1c29b0=_0xbdbd9d,_0x2ce52b=this[_0x1c29b0(0xf6)][_0x1c29b0(0x156)](_0x47231a)?.[_0x1c29b0(0x129)]??_0x47231a,_0xb91f7f=this[_0x1c29b0(0xfe)](_0x2ce52b);if(!transitionAllowed(_0xb91f7f[_0x1c29b0(0x134)],_0x21cde1))throw new Error(_0x1c29b0(0x121));const _0x1d6046=this[_0x1c29b0(0x130)](),_0x256110={..._0xb91f7f,'status':_0x21cde1,'version':_0xb91f7f[_0x1c29b0(0x185)]+(0x8*-0x28d+0x3fb*0x7+0xd4*-0x9),'completedAt':terminal(_0x21cde1)?_0x1d6046:_0xb91f7f[_0x1c29b0(0x1c4)],'updatedAt':_0x1d6046};this[_0x1c29b0(0x1ed)][_0x1c29b0(0xd9)](_0x2ce52b,_0x256110),this[_0x1c29b0(0x197)](_0x256110,this[_0x1c29b0(0x169)](_0x256110[_0x1c29b0(0xe0)]));if(terminal(_0x21cde1)&&this[_0x1c29b0(0x1bb)][_0x1c29b0(0x156)](_0x256110[_0x1c29b0(0xe0)])===_0x256110['id'])this[_0x1c29b0(0x1bb)][_0x1c29b0(0x111)](_0x256110[_0x1c29b0(0xe0)]);return this[_0x1c29b0(0x1e3)](_0x256110['id'],_0x3d9876=>({..._0x3d9876,'status':_0x21cde1,'completedAt':terminal(_0x21cde1)?this[_0x1c29b0(0x130)]():_0x3d9876[_0x1c29b0(0x1c4)],'items':terminal(_0x21cde1)?_0x3d9876[_0x1c29b0(0x135)][_0x1c29b0(0xe7)](_0x9b9156=>activeConversationItem(_0x9b9156[_0x1c29b0(0x134)])?{..._0x9b9156,'status':completedStatusForRun(_0x21cde1),'completedAt':this[_0x1c29b0(0x130)]()}:_0x9b9156):_0x3d9876[_0x1c29b0(0x135)]})),_0x256110;}[_0xbdbd9d(0x1d4)](_0x34e959){const _0x9fb702=_0xbdbd9d,_0xe8665=this[_0x9fb702(0xf6)][_0x9fb702(0x156)](_0x34e959[_0x9fb702(0x129)]),_0x5bc03f=_0xe8665?.[_0x9fb702(0x129)]??_0x34e959[_0x9fb702(0x129)];this[_0x9fb702(0xfe)](_0x5bc03f);const _0x563b88=this[_0x9fb702(0xf1)][_0x9fb702(0x156)](_0x5bc03f)??0x28*-0xd6+0x2677+0x1ad*-0x3;if(_0x34e959[_0x9fb702(0xeb)]<=_0x563b88)return undefined;if(_0x34e959[_0x9fb702(0xeb)]>_0x563b88+(-0xe87*0x1+-0x7b2+0x163a))throw new Error(_0x9fb702(0x17f));const _0xb4a3a={'runId':_0x5bc03f,'sequence':_0x34e959[_0x9fb702(0xeb)],'eventType':_0x34e959[_0x9fb702(0x1d2)],'payload':_0x34e959[_0x9fb702(0x11f)],..._0x34e959[_0x9fb702(0x134)]===undefined?{}:{'status':_0x34e959[_0x9fb702(0x134)]},'createdAt':this[_0x9fb702(0x130)]()};this[_0x9fb702(0xf1)][_0x9fb702(0xd9)](_0x5bc03f,_0x34e959[_0x9fb702(0xeb)]);if(_0xe8665!==undefined&&_0x34e959[_0x9fb702(0x134)]!==undefined){const _0x5f338c=executionStatusForRun(_0x34e959[_0x9fb702(0x134)]);this[_0x9fb702(0xf6)][_0x9fb702(0xd9)](_0x34e959[_0x9fb702(0x129)],{..._0xe8665,'status':_0x5f338c,'completedAt':terminal(_0x34e959[_0x9fb702(0x134)])?_0xb4a3a[_0x9fb702(0xca)]:_0xe8665[_0x9fb702(0x1c4)]});}if(_0x34e959[_0x9fb702(0x134)]!==undefined&&!terminal(_0x34e959[_0x9fb702(0x134)]))this[_0x9fb702(0x13f)](_0x5bc03f,_0x34e959[_0x9fb702(0x134)]);this[_0x9fb702(0x1cf)](_0xb4a3a,_0xe8665?.[_0x9fb702(0x1d6)]);if(_0x34e959[_0x9fb702(0x134)]!==undefined&&terminal(_0x34e959[_0x9fb702(0x134)])&&_0xe8665!==undefined)this[_0x9fb702(0x1d1)](_0xe8665[_0x9fb702(0x1d6)],_0x34e959[_0x9fb702(0x134)],_0xb4a3a[_0x9fb702(0xca)]);return _0xb4a3a;}[_0xbdbd9d(0x1bd)](_0x5f500b){const _0xa1d8e3=_0xbdbd9d,_0xf6fe6c=this[_0xa1d8e3(0x12e)](_0x5f500b);if(_0xf6fe6c===undefined)return undefined;for(const [_0x4e1cd9,_0x463d32]of this[_0xa1d8e3(0xf6)])if(_0x463d32[_0xa1d8e3(0x129)]===_0x5f500b&&_0x463d32[_0xa1d8e3(0x1d6)]===_0xf6fe6c['id']&&!terminalExecution(_0x463d32[_0xa1d8e3(0x134)]))return _0x4e1cd9;return undefined;}[_0xbdbd9d(0x110)](_0x278bd4){const _0x3eafb4=_0xbdbd9d,_0x3f0eb0=this[_0x3eafb4(0xdc)](_0x278bd4),_0x4a796c=this[_0x3eafb4(0x12e)](_0x3f0eb0);if(_0x4a796c===undefined||_0x4a796c[_0x3eafb4(0x134)]!==_0x3eafb4(0x17c))throw new Error(_0x3eafb4(0x1a3));const _0x200b12=[...this[_0x3eafb4(0xf6)][_0x3eafb4(0xea)]()][_0x3eafb4(0x1df)](_0x36f3fb=>_0x36f3fb[_0x3eafb4(0x129)]===_0x3f0eb0&&_0x36f3fb[_0x3eafb4(0x1d6)]===_0x4a796c['id']);if(_0x200b12!==undefined)return _0x200b12;const _0x20de49=this[_0x3eafb4(0x130)](),_0x2be9eb={'id':randomUUID(),'runId':_0x3f0eb0,'turnId':_0x4a796c['id'],'status':_0x3eafb4(0x10e),'startedAt':_0x20de49,'completedAt':null};return this[_0x3eafb4(0xf6)][_0x3eafb4(0xd9)](_0x2be9eb['id'],_0x2be9eb),this[_0x3eafb4(0x1e3)](_0x3f0eb0,_0x33bb3e=>({..._0x33bb3e,'items':_0x33bb3e[_0x3eafb4(0x135)][_0x3eafb4(0xe7)](_0x5026ca=>_0x5026ca['id']===_0x33bb3e[_0x3eafb4(0x1e0)]&&isRecord(_0x5026ca[_0x3eafb4(0x11f)])&&Array[_0x3eafb4(0x1ca)](_0x5026ca[_0x3eafb4(0x11f)][_0x3eafb4(0xff)])?{..._0x5026ca,'payload':{..._0x5026ca[_0x3eafb4(0x11f)],'attachments':_0x5026ca[_0x3eafb4(0x11f)][_0x3eafb4(0xff)][_0x3eafb4(0xe7)](_0x526455=>isRecord(_0x526455)&&typeof _0x526455[_0x3eafb4(0x146)]===_0x3eafb4(0x1a6)?{..._0x526455,'runId':_0x2be9eb['id']}:_0x526455)}}:_0x5026ca)})),_0x2be9eb;}[_0xbdbd9d(0xdc)](_0x31a043){const _0x4847da=_0xbdbd9d;return this[_0x4847da(0xf6)][_0x4847da(0x156)](_0x31a043)?.[_0x4847da(0x129)]??_0x31a043;}[_0xbdbd9d(0x13c)](_0x408f0d,_0x5f1487){const _0x2c2909=_0xbdbd9d;return this[_0x2c2909(0x13f)](this[_0x2c2909(0xdc)](_0x408f0d),_0x5f1487);}[_0xbdbd9d(0x11b)](_0x161268){const _0x5ee9f9=_0xbdbd9d;this[_0x5ee9f9(0x169)](_0x161268[_0x5ee9f9(0xe0)]);const _0x59a7ac=[...this[_0x5ee9f9(0xf2)][_0x5ee9f9(0x156)](_0x161268[_0x5ee9f9(0xe0)])??[]][_0x5ee9f9(0xe7)]((_0x4c5c5e,_0x33b4f1)=>({'turn':_0x4c5c5e,'index':_0x33b4f1}))[_0x5ee9f9(0x102)]((_0x921d2f,_0x43329b)=>{const _0x13bf1b=_0x5ee9f9,_0x9cbb7f=_0x1db033=>_0x1db033[_0x13bf1b(0x135)][_0x13bf1b(0x1df)](_0x32eff3=>_0x32eff3['id']===_0x1db033[_0x13bf1b(0x1e0)])?.[_0x13bf1b(0x120)]??_0x1db033[_0x13bf1b(0x120)]??_0x1db033[_0x13bf1b(0x1c4)]??-0x759*-0x4+0x1*-0xb5d+-0x1207;return _0x9cbb7f(_0x921d2f[_0x13bf1b(0x14d)])-_0x9cbb7f(_0x43329b[_0x13bf1b(0x14d)])||_0x921d2f[_0x13bf1b(0xd5)]-_0x43329b[_0x13bf1b(0xd5)];})[_0x5ee9f9(0xe7)](({turn:_0x52be3a})=>_0x52be3a),_0x28c1bf=_0x161268[_0x5ee9f9(0xf4)]===undefined?_0x59a7ac[_0x5ee9f9(0x171)]:decodeCursor(_0x161268[_0x5ee9f9(0xf4)],_0x161268[_0x5ee9f9(0xe0)]),_0x377510=Math[_0x5ee9f9(0x1c3)](Math[_0x5ee9f9(0x115)](_0x161268[_0x5ee9f9(0x148)]??0x1416+0x318*-0x9+0x7e0,0x7d8*-0x1+0x7d*-0x9+-0xc3e*-0x1),0x64*-0x1+0x3b*-0xc+0x147*0x4),_0x8c2f25=Math[_0x5ee9f9(0x115)](0xd3*-0xa+-0x2003+0x2d*0xe5,_0x28c1bf-_0x377510),_0x5c45bd=_0x59a7ac[_0x5ee9f9(0x1b3)](_0x8c2f25,_0x28c1bf);return{'turns':_0x5c45bd,'nextCursor':_0x8c2f25>0x359*0x4+-0x1fd5+0x1271?encodeCursor(_0x161268[_0x5ee9f9(0xe0)],_0x8c2f25):null};}[_0xbdbd9d(0x1bf)](_0x579bf6){const _0x2bd83=_0xbdbd9d;for(const _0x529f6a of this[_0x2bd83(0xf2)][_0x2bd83(0xea)]()){const _0x1c770f=_0x529f6a[_0x2bd83(0x118)](_0x13dd63=>_0x13dd63[_0x2bd83(0x129)]===this[_0x2bd83(0xdc)](_0x579bf6));if(_0x1c770f!==undefined)return _0x1c770f;}return undefined;}[_0xbdbd9d(0x180)](_0x56f76b){const _0x2f4710=_0xbdbd9d,_0x41c463=this[_0x2f4710(0xf6)][_0x2f4710(0x156)](_0x56f76b),_0x4de5dd=_0x41c463===undefined?this[_0x2f4710(0xf3)][_0x2f4710(0x156)](_0x56f76b):{'sessionId':this[_0x2f4710(0xfe)](_0x41c463[_0x2f4710(0x129)])[_0x2f4710(0xe0)],'turnId':_0x41c463[_0x2f4710(0x1d6)]};if(_0x4de5dd===undefined)return undefined;return(this[_0x2f4710(0xf2)][_0x2f4710(0x156)](_0x4de5dd[_0x2f4710(0xe0)])??[])[_0x2f4710(0x1df)](_0x5568ea=>_0x5568ea['id']===_0x4de5dd[_0x2f4710(0x1d6)]);}[_0xbdbd9d(0x1c0)](_0x1b1226){const _0x368f78=_0xbdbd9d,_0x139da2=this[_0x368f78(0x11b)](_0x1b1226)[_0x368f78(0xf2)];return{'items':_0x139da2[_0x368f78(0x157)](_0x3fc114=>_0x3fc114[_0x368f78(0x135)]),'nextCursor':null};}[_0xbdbd9d(0xdb)](_0x4c1c03){const _0x21342f=_0xbdbd9d,_0x226696=this[_0x21342f(0x169)](_0x4c1c03[_0x21342f(0xe0)]),_0x573769=this[_0x21342f(0x130)](),_0x25f000={'id':randomUUID(),'sessionId':_0x4c1c03[_0x21342f(0xe0)],'turnId':'','runId':null,'parentItemId':null,'sourceSequence':null,'revision':0x1,'kind':_0x21342f(0xd7),'status':_0x4c1c03[_0x21342f(0x1e4)]?_0x21342f(0x1e5):_0x21342f(0x1d5),'payload':{'command':_0x4c1c03[_0x21342f(0x194)],'cwd':_0x4c1c03[_0x21342f(0x12b)],'outputPreview':_0x4c1c03[_0x21342f(0x103)][_0x21342f(0x1b3)](-0x2238+0x849*-0x1+-0x9*-0x4b9,0x379e+-0x425b+0x31cd),'outputRef':null,'exitCode':_0x4c1c03[_0x21342f(0x1e4)]?0x584+-0x1242+0xcbf:-0x1*0x11ea+-0x1e6b+0x3055,'durationMs':0x0,'truncated':![]},'startedAt':_0x573769,'completedAt':_0x573769},_0xf5b4cd={'id':randomUUID(),'sessionId':_0x4c1c03[_0x21342f(0xe0)],'runId':null,'userItemId':null,'status':_0x4c1c03[_0x21342f(0x1e4)]?_0x21342f(0x1e5):_0x21342f(0x1e2),'model':_0x226696[_0x21342f(0x1ac)],'effort':_0x226696[_0x21342f(0x101)],'access':_0x226696[_0x21342f(0xd2)],'items':[],'startedAt':_0x573769,'completedAt':_0x573769},_0x2b6a92={..._0x25f000,'turnId':_0xf5b4cd['id']},_0xd80c4e={..._0xf5b4cd,'items':[_0x2b6a92]};return this[_0x21342f(0xf2)][_0x21342f(0xd9)](_0x4c1c03[_0x21342f(0xe0)],[...this[_0x21342f(0xf2)][_0x21342f(0x156)](_0x4c1c03[_0x21342f(0xe0)])??[],_0xd80c4e]),this[_0x21342f(0x1ef)](_0x226696['id'],{'lastActivityAt':_0x573769}),_0xd80c4e;}[_0xbdbd9d(0x1e8)](_0x376e46){const _0x307ced=_0xbdbd9d,_0x79f103=this[_0x307ced(0x15b)](_0x376e46[_0x307ced(0x129)]);if(_0x79f103===undefined)throw new Error(_0x307ced(0x18e));if(_0x376e46[_0x307ced(0x129)]!==_0x79f103['id']&&this[_0x307ced(0x1bd)](_0x79f103['id'])!==_0x376e46[_0x307ced(0x129)])throw new Error(_0x307ced(0x162));if(this[_0x307ced(0x11d)][_0x307ced(0x132)](_0x376e46[_0x307ced(0x140)]))throw new Error(_0x307ced(0x13d));if(_0x376e46[_0x307ced(0x168)]<=this[_0x307ced(0x130)]())throw new Error(_0x307ced(0x16c));const _0x25c89d={'id':_0x376e46[_0x307ced(0x140)],'runId':_0x376e46[_0x307ced(0x129)],'status':_0x307ced(0x107),'payload':_0x376e46[_0x307ced(0x11f)],'expiresAt':_0x376e46[_0x307ced(0x168)],'createdAt':this[_0x307ced(0x130)](),'decidedAt':null};return this[_0x307ced(0x11d)][_0x307ced(0xd9)](_0x25c89d['id'],_0x25c89d),_0x25c89d;}[_0xbdbd9d(0x165)](_0x14a6c2){const _0x3f9617=_0xbdbd9d,_0x4794be=this[_0x3f9617(0x11d)][_0x3f9617(0x156)](_0x14a6c2);if(_0x4794be?.[_0x3f9617(0x134)]===_0x3f9617(0x107)&&_0x4794be[_0x3f9617(0x168)]<=this[_0x3f9617(0x130)]())return this[_0x3f9617(0x100)](_0x14a6c2);return _0x4794be;}[_0xbdbd9d(0x16d)](_0x49735b){const _0x4c61c1=_0xbdbd9d,_0x2e6dde=this[_0x4c61c1(0xdc)](_0x49735b);return[...this[_0x4c61c1(0x11d)][_0x4c61c1(0xea)]()][_0x4c61c1(0x1e1)](_0x11bfa5=>this[_0x4c61c1(0xdc)](_0x11bfa5[_0x4c61c1(0x129)])===_0x2e6dde)[_0x4c61c1(0xe7)](_0x1fc28f=>this[_0x4c61c1(0x165)](_0x1fc28f['id']));}[_0xbdbd9d(0x100)](_0x4adbc8){const _0x34190d=_0xbdbd9d,_0x3ea8ba=this[_0x34190d(0x1a2)](_0x4adbc8);if(_0x3ea8ba[_0x34190d(0x134)]!==_0x34190d(0x107))return _0x3ea8ba;if(_0x3ea8ba[_0x34190d(0x168)]>this[_0x34190d(0x130)]())throw new Error(_0x34190d(0x153));const _0x3b3b2b={..._0x3ea8ba,'status':_0x34190d(0x142),'decidedAt':this[_0x34190d(0x130)]()};return this[_0x34190d(0x11d)][_0x34190d(0xd9)](_0x4adbc8,_0x3b3b2b),_0x3b3b2b;}[_0xbdbd9d(0x125)](_0x495b90,_0x171dfb){const _0x27d75b=_0xbdbd9d,_0x283d87=this[_0x27d75b(0x165)](_0x495b90);if(_0x283d87===undefined)throw new Error(_0x27d75b(0x16e));if(_0x283d87[_0x27d75b(0x134)]===_0x27d75b(0x142))throw new Error(_0x27d75b(0x16c));if(_0x283d87[_0x27d75b(0x134)]!==_0x27d75b(0x107))throw new Error(_0x27d75b(0x159));const _0x5c9470={..._0x283d87,'status':_0x171dfb,'decidedAt':this[_0x27d75b(0x130)]()};return this[_0x27d75b(0x11d)][_0x27d75b(0xd9)](_0x495b90,_0x5c9470),_0x5c9470;}[_0xbdbd9d(0x179)](){const _0x43cdf8=_0xbdbd9d;return[...this[_0x43cdf8(0x11d)][_0x43cdf8(0xea)]()][_0x43cdf8(0x1e1)](_0x11c491=>_0x11c491[_0x43cdf8(0x134)]===_0x43cdf8(0x107)&&_0x11c491[_0x43cdf8(0x168)]<=this[_0x43cdf8(0x130)]())[_0x43cdf8(0xe7)](_0x13a47e=>this[_0x43cdf8(0x100)](_0x13a47e['id']));}[_0xbdbd9d(0x112)](){const _0x472426=_0xbdbd9d;return[...this[_0x472426(0x1ed)][_0x472426(0xea)]()][_0x472426(0x1e1)](_0x283593=>!terminal(_0x283593[_0x472426(0x134)]));}[_0xbdbd9d(0xda)](_0x52aac9){const _0x53ee8b=_0xbdbd9d;return this[_0x53ee8b(0xf1)][_0x53ee8b(0x156)](_0x52aac9)??0x113e+0xadb+-0x1c19;}[_0xbdbd9d(0x139)](_0x435752){const _0x3bf653=_0xbdbd9d,_0x50da9f=this[_0x3bf653(0xfe)](_0x435752);if(!terminal(_0x50da9f[_0x3bf653(0x134)]))throw new Error(_0x3bf653(0x1cb));this[_0x3bf653(0x117)][_0x3bf653(0xd1)](_0x435752);if(this[_0x3bf653(0x117)][_0x3bf653(0x104)]>-0x1c80+0x1*-0x1050+0x30d0)this[_0x3bf653(0x117)][_0x3bf653(0x111)](this[_0x3bf653(0x117)][_0x3bf653(0xea)]()[_0x3bf653(0x1d3)]()[_0x3bf653(0x124)]);const _0x2149bc=new Set([...this[_0x3bf653(0xf6)][_0x3bf653(0xea)]()][_0x3bf653(0x1e1)](_0x134748=>_0x134748[_0x3bf653(0x129)]===_0x435752)[_0x3bf653(0xe7)](_0x4e0f3f=>_0x4e0f3f['id'])),_0x51c4db=(this[_0x3bf653(0xf2)][_0x3bf653(0x156)](_0x50da9f[_0x3bf653(0xe0)])??[])[_0x3bf653(0x1e1)](_0x4ed8c6=>{const _0x409f13=_0x3bf653,_0x516405=_0x4ed8c6[_0x409f13(0x135)][_0x409f13(0x1da)](_0x4a7ec=>_0x4a7ec[_0x409f13(0x1a5)]===_0x409f13(0x10f));if(_0x4ed8c6[_0x409f13(0x129)]===_0x435752)return _0x50da9f[_0x409f13(0x134)]===_0x409f13(0x1e2)||_0x50da9f[_0x409f13(0x134)]===_0x409f13(0x160)||_0x516405;const _0x3bc8b8=_0x516405&&_0x4ed8c6[_0x409f13(0x134)]!==_0x409f13(0x1e2)&&_0x4ed8c6[_0x409f13(0x134)]!==_0x409f13(0x160);return _0x50da9f[_0x409f13(0x134)]!==_0x409f13(0x1e2)||!_0x3bc8b8;}),_0x57842b=_0x51c4db[_0x3bf653(0x1e1)](_0x352d33=>terminalTurn(_0x352d33[_0x3bf653(0x134)])),_0x19f942=new Set(_0x57842b[_0x3bf653(0x1b3)](-NodeRuntimeState[_0x3bf653(0x1a4)])[_0x3bf653(0xe7)](_0x2e2c8b=>_0x2e2c8b['id'])),_0xe29691=_0x51c4db[_0x3bf653(0x1e1)](_0x23eb77=>!terminalTurn(_0x23eb77[_0x3bf653(0x134)])||_0x19f942[_0x3bf653(0x132)](_0x23eb77['id'])),_0x8460c4=new Set(_0xe29691[_0x3bf653(0xe7)](_0x4bf35c=>_0x4bf35c['id']));this[_0x3bf653(0xf2)][_0x3bf653(0xd9)](_0x50da9f[_0x3bf653(0xe0)],_0xe29691);for(const [_0x3ca56e,_0x51b110]of this[_0x3bf653(0xf6)]){if(_0x51b110[_0x3bf653(0x129)]!==_0x435752)continue;this[_0x3bf653(0xf6)][_0x3bf653(0x111)](_0x3ca56e);if(_0x8460c4[_0x3bf653(0x132)](_0x51b110[_0x3bf653(0x1d6)]))this[_0x3bf653(0xf3)][_0x3bf653(0xd9)](_0x3ca56e,{'sessionId':_0x50da9f[_0x3bf653(0xe0)],'turnId':_0x51b110[_0x3bf653(0x1d6)]});}this[_0x3bf653(0x1bc)](_0x50da9f[_0x3bf653(0xe0)],_0x8460c4),this[_0x3bf653(0x1ed)][_0x3bf653(0x111)](_0x435752),this[_0x3bf653(0x1a0)][_0x3bf653(0x111)](_0x435752),this[_0x3bf653(0xf1)][_0x3bf653(0x111)](_0x435752);for(const [_0x3bbcd5,_0x4ce09c]of this[_0x3bf653(0x1d9)])if(_0x4ce09c[_0x3bf653(0x1a5)]===_0x3bf653(0xcc)&&_0x4ce09c['id']===_0x435752)this[_0x3bf653(0x1d9)][_0x3bf653(0x111)](_0x3bbcd5);for(const [_0xf18caf,_0x31a1d1]of this[_0x3bf653(0x11d)])if(_0x31a1d1[_0x3bf653(0x129)]===_0x435752||_0x2149bc[_0x3bf653(0x132)](_0x31a1d1[_0x3bf653(0x129)]))this[_0x3bf653(0x11d)][_0x3bf653(0x111)](_0xf18caf);}[_0xbdbd9d(0x12a)](_0x262a92){const _0x1bd349=_0xbdbd9d;return[...this[_0x1bd349(0x1bb)][_0x1bd349(0xea)]()][_0x1bd349(0xe7)](_0x47001e=>this[_0x1bd349(0x1ed)][_0x1bd349(0x156)](_0x47001e))[_0x1bd349(0x1da)](_0x38d504=>_0x38d504?.[_0x1bd349(0x155)]===_0x262a92);}[_0xbdbd9d(0xcf)](_0x3a7cd0){const _0x22c573=_0xbdbd9d;this[_0x22c573(0x169)](_0x3a7cd0);const _0xd73785=this[_0x22c573(0x15f)](_0x3a7cd0);if(_0xd73785[_0x22c573(0x1da)](_0x308161=>!terminal(_0x308161[_0x22c573(0x134)])))throw new Error(_0x22c573(0x11e));const _0x1317ed=new Set(_0xd73785[_0x22c573(0xe7)](_0x3eb6ee=>_0x3eb6ee['id'])),_0x27aa81=new Set([...this[_0x22c573(0xf6)][_0x22c573(0xea)]()][_0x22c573(0x1e1)](_0x4ae956=>_0x1317ed[_0x22c573(0x132)](_0x4ae956[_0x22c573(0x129)]))[_0x22c573(0xe7)](_0x109d4a=>_0x109d4a['id']));this[_0x22c573(0x1ec)][_0x22c573(0x111)](_0x3a7cd0),this[_0x22c573(0xf2)][_0x22c573(0x111)](_0x3a7cd0),this[_0x22c573(0x1bc)](_0x3a7cd0,new Set());const _0x46a00d=this[_0x22c573(0x1d7)][_0x22c573(0x156)](_0x3a7cd0)??[];this[_0x22c573(0x1d7)][_0x22c573(0x111)](_0x3a7cd0);for(const _0x160c5d of _0x46a00d)this[_0x22c573(0x18c)][_0x22c573(0x111)](_0x160c5d);this[_0x22c573(0x105)][_0x22c573(0x111)](_0x3a7cd0),this[_0x22c573(0xed)][_0x22c573(0x111)](_0x3a7cd0),this[_0x22c573(0x1bb)][_0x22c573(0x111)](_0x3a7cd0);for(const _0x3943be of _0x1317ed){this[_0x22c573(0x1ed)][_0x22c573(0x111)](_0x3943be),this[_0x22c573(0x1a0)][_0x22c573(0x111)](_0x3943be),this[_0x22c573(0xf1)][_0x22c573(0x111)](_0x3943be);}for(const _0x55d699 of _0x27aa81)this[_0x22c573(0xf6)][_0x22c573(0x111)](_0x55d699);for(const [_0x11d260,_0x1d9ee1]of this[_0x22c573(0x1d9)])if(_0x1d9ee1[_0x22c573(0x1a5)]===_0x22c573(0xcc)&&_0x1317ed[_0x22c573(0x132)](_0x1d9ee1['id'])||_0x1d9ee1[_0x22c573(0x1a5)]===_0x22c573(0x1c5)&&_0x46a00d[_0x22c573(0x19a)](_0x1d9ee1['id']))this[_0x22c573(0x1d9)][_0x22c573(0x111)](_0x11d260);for(const _0x1c016c of this[_0x22c573(0x119)][_0x22c573(0x113)]())if(_0x1c016c[_0x22c573(0xf7)](_0x3a7cd0+'\x00'))this[_0x22c573(0x119)][_0x22c573(0x111)](_0x1c016c);for(const [_0x2ca637,_0x184443]of this[_0x22c573(0x11d)])if(_0x1317ed[_0x22c573(0x132)](_0x184443[_0x22c573(0x129)])||_0x27aa81[_0x22c573(0x132)](_0x184443[_0x22c573(0x129)]))this[_0x22c573(0x11d)][_0x22c573(0x111)](_0x2ca637);}[_0xbdbd9d(0x151)](_0x17f175){const _0x3f9b3f=_0xbdbd9d;if(this[_0x3f9b3f(0xe8)][_0x3f9b3f(0x132)](_0x17f175))throw new Error(_0x3f9b3f(0x11e));if(this[_0x3f9b3f(0x1a7)](_0x17f175)!==undefined)throw new Error(_0x3f9b3f(0x11e));if(this[_0x3f9b3f(0x1dc)](_0x17f175)[_0x3f9b3f(0x114)][_0x3f9b3f(0x171)]>0x183c+0xb71*-0x2+-0x2*0xad)throw new Error(_0x3f9b3f(0x184));this[_0x3f9b3f(0xe8)][_0x3f9b3f(0xd1)](_0x17f175);let _0xa0c1ff=![];return()=>{const _0x54122e=_0x3f9b3f;if(_0xa0c1ff)return;_0xa0c1ff=!![],this[_0x54122e(0xe8)][_0x54122e(0x111)](_0x17f175);};}[_0xbdbd9d(0x1c1)](_0x3e6d45,_0x34462d){const _0x58a22c=_0xbdbd9d;if(this[_0x58a22c(0x1a7)](_0x3e6d45)!==undefined)throw new Error(_0x58a22c(0x11e));if(this[_0x58a22c(0x1dc)](_0x3e6d45)[_0x58a22c(0x114)][_0x58a22c(0x171)]>-0x245d+0x2*0x1388+0x1*-0x2b3)throw new Error(_0x58a22c(0x184));this[_0x58a22c(0xf2)][_0x58a22c(0x111)](_0x3e6d45),this[_0x58a22c(0x1bc)](_0x3e6d45,new Set());for(const _0x3b1871 of this[_0x58a22c(0x119)][_0x58a22c(0x113)]())if(_0x3b1871[_0x58a22c(0xf7)](_0x3e6d45+'\x00'))this[_0x58a22c(0x119)][_0x58a22c(0x111)](_0x3b1871);return this[_0x58a22c(0x1ef)](_0x3e6d45,{'lastActivityAt':_0x34462d});}[_0xbdbd9d(0x152)](_0x27a982){const _0x4e48fc=_0xbdbd9d;if(this[_0x4e48fc(0x12a)](_0x27a982))throw new Error(_0x4e48fc(0xf5));const _0x1f6d3e=new Set([...this[_0x4e48fc(0x1ec)][_0x4e48fc(0xea)]()][_0x4e48fc(0x1e1)](_0x545ecd=>_0x545ecd[_0x4e48fc(0x155)]===_0x27a982)[_0x4e48fc(0xe7)](_0x3b71a5=>_0x3b71a5['id'])),_0x1e4eb1=new Set([...this[_0x4e48fc(0x1ed)][_0x4e48fc(0xea)]()][_0x4e48fc(0x1e1)](_0x4c7dcd=>_0x4c7dcd[_0x4e48fc(0x155)]===_0x27a982)[_0x4e48fc(0xe7)](_0x4fa0b4=>_0x4fa0b4['id'])),_0x5bad75=new Set([...this[_0x4e48fc(0xf6)][_0x4e48fc(0xea)]()][_0x4e48fc(0x1e1)](_0x40b235=>_0x1e4eb1[_0x4e48fc(0x132)](_0x40b235[_0x4e48fc(0x129)]))[_0x4e48fc(0xe7)](_0x74e3d0=>_0x74e3d0['id'])),_0x270b0d=new Set([..._0x1f6d3e][_0x4e48fc(0x157)](_0x505d6b=>this[_0x4e48fc(0x1d7)][_0x4e48fc(0x156)](_0x505d6b)??[]));for(const _0x49f76b of _0x1f6d3e){this[_0x4e48fc(0x1ec)][_0x4e48fc(0x111)](_0x49f76b),this[_0x4e48fc(0xf2)][_0x4e48fc(0x111)](_0x49f76b),this[_0x4e48fc(0x1bc)](_0x49f76b,new Set());}for(const _0x286e5a of _0x1e4eb1){this[_0x4e48fc(0x1ed)][_0x4e48fc(0x111)](_0x286e5a),this[_0x4e48fc(0x1a0)][_0x4e48fc(0x111)](_0x286e5a),this[_0x4e48fc(0xf1)][_0x4e48fc(0x111)](_0x286e5a);}for(const _0x5684fe of _0x5bad75)this[_0x4e48fc(0xf6)][_0x4e48fc(0x111)](_0x5684fe);for(const [_0x379291,_0x1cf23b]of this[_0x4e48fc(0x1d9)])if(_0x1cf23b[_0x4e48fc(0x1a5)]===_0x4e48fc(0xcc)&&_0x1e4eb1[_0x4e48fc(0x132)](_0x1cf23b['id'])||_0x1cf23b[_0x4e48fc(0x1a5)]===_0x4e48fc(0x1c5)&&_0x270b0d[_0x4e48fc(0x132)](_0x1cf23b['id']))this[_0x4e48fc(0x1d9)][_0x4e48fc(0x111)](_0x379291);for(const _0x544572 of this[_0x4e48fc(0x119)][_0x4e48fc(0x113)]()){const _0x2a2484=_0x544572[_0x4e48fc(0xe3)]('\u0000');if(_0x2a2484>=-0x42c+-0x1f48+-0x4*-0x8dd&&_0x1f6d3e[_0x4e48fc(0x132)](_0x544572[_0x4e48fc(0x1b3)](-0x1adc+-0x1884+0x336*0x10,_0x2a2484)))this[_0x4e48fc(0x119)][_0x4e48fc(0x111)](_0x544572);}for(const [_0x43963e,_0x3013c1]of this[_0x4e48fc(0x11d)])if(_0x1e4eb1[_0x4e48fc(0x132)](_0x3013c1[_0x4e48fc(0x129)])||_0x5bad75[_0x4e48fc(0x132)](_0x3013c1[_0x4e48fc(0x129)]))this[_0x4e48fc(0x11d)][_0x4e48fc(0x111)](_0x43963e);for(const _0x317679 of _0x1f6d3e){const _0x59e425=this[_0x4e48fc(0x1d7)][_0x4e48fc(0x156)](_0x317679)??[];this[_0x4e48fc(0x1d7)][_0x4e48fc(0x111)](_0x317679);for(const _0x360c56 of _0x59e425)this[_0x4e48fc(0x18c)][_0x4e48fc(0x111)](_0x360c56);this[_0x4e48fc(0x105)][_0x4e48fc(0x111)](_0x317679),this[_0x4e48fc(0xed)][_0x4e48fc(0x111)](_0x317679),this[_0x4e48fc(0x1bb)][_0x4e48fc(0x111)](_0x317679);}}[_0xbdbd9d(0x199)](_0x593b82){const _0x34aa98=_0xbdbd9d;if(this[_0x34aa98(0xe8)][_0x34aa98(0x132)](_0x593b82))throw new Error(_0x34aa98(0x11e));}[_0xbdbd9d(0xd0)](_0x2d3b9a,_0x3cd14f){void _0x2d3b9a,void _0x3cd14f;}[_0xbdbd9d(0x1ef)](_0x5bef6f,_0x4f0efd){const _0x30ee82=_0xbdbd9d,_0xddccb0=this[_0x30ee82(0x169)](_0x5bef6f),_0x4ce59e={..._0xddccb0,..._0x4f0efd};this[_0x30ee82(0x1ec)][_0x30ee82(0xd9)](_0x5bef6f,_0x4ce59e);if(_0xddccb0[_0x30ee82(0x1be)]!==_0x4ce59e[_0x30ee82(0x1be)]||_0xddccb0[_0x30ee82(0x1d8)]!==_0x4ce59e[_0x30ee82(0x1d8)]){for(const _0x5864e6 of this[_0x30ee82(0x15f)](_0x5bef6f))this[_0x30ee82(0x197)](_0x5864e6,_0x4ce59e);}return _0x4ce59e;}[_0xbdbd9d(0x197)](_0x1da9cb,_0x1fb2bf){const _0x250bd5=_0xbdbd9d,_0xfef7a4=this[_0x250bd5(0x12e)](_0x1da9cb['id']),_0xb940c0=_0xfef7a4?.[_0x250bd5(0x135)][_0x250bd5(0x1df)](_0x5249a2=>_0x5249a2[_0x250bd5(0x1a5)]===_0x250bd5(0x14b))?.[_0x250bd5(0x11f)],_0x137be7=isRecord(_0xb940c0)&&typeof _0xb940c0[_0x250bd5(0xfd)]===_0x250bd5(0x147)?_0xb940c0[_0x250bd5(0xfd)]:undefined,_0x423530=_0x137be7?.[_0x250bd5(0xf7)](_0x250bd5(0x174))?'':this[_0x250bd5(0x1a0)][_0x250bd5(0x156)](_0x1da9cb['id'])??this[_0x250bd5(0x1b5)](_0x1da9cb['id']);this[_0x250bd5(0x1dd)]?.(_0x1da9cb,_0x1fb2bf,_0x423530[_0x250bd5(0x171)]===0x9*0x35f+-0x1c9b+-0x1bc?undefined:_0x423530);}[_0xbdbd9d(0x149)](_0x5b5881){const _0x47a7b6=_0xbdbd9d;this[_0x47a7b6(0x105)][_0x47a7b6(0xd9)](_0x5b5881,(this[_0x47a7b6(0x105)][_0x47a7b6(0x156)](_0x5b5881)??-0x1*-0x2267+0x2576+0x1*-0x47dd)+(0x7*-0x1a6+-0x1*0x114f+0x1cda));}[_0xbdbd9d(0x1bc)](_0x3c79a1,_0x42af9c){const _0x2bf327=_0xbdbd9d;for(const [_0x291ae8,_0x4566eb]of this[_0x2bf327(0xf3)])if(_0x4566eb[_0x2bf327(0xe0)]===_0x3c79a1&&!_0x42af9c[_0x2bf327(0x132)](_0x4566eb[_0x2bf327(0x1d6)]))this[_0x2bf327(0xf3)][_0x2bf327(0x111)](_0x291ae8);}[_0xbdbd9d(0x169)](_0x48f3e1){const _0x11fb4f=_0xbdbd9d,_0xa3f428=this[_0x11fb4f(0x1ec)][_0x11fb4f(0x156)](_0x48f3e1);if(_0xa3f428===undefined)throw new Error(_0x11fb4f(0x141));return _0xa3f428;}[_0xbdbd9d(0xfe)](_0x46dd84){const _0x1870c9=_0xbdbd9d,_0x4c0fdf=this[_0x1870c9(0x1ed)][_0x1870c9(0x156)](_0x46dd84);if(_0x4c0fdf===undefined)throw new Error(_0x1870c9(0x18e));return _0x4c0fdf;}[_0xbdbd9d(0x16a)](_0x47747a){const _0x355ce1=_0xbdbd9d,_0x231d78=this[_0x355ce1(0x18c)][_0x355ce1(0x156)](_0x47747a);if(_0x231d78===undefined)throw new Error(_0x355ce1(0x181));return _0x231d78;}[_0xbdbd9d(0x1a2)](_0xf4803d){const _0x19bacc=_0xbdbd9d,_0x32a6c0=this[_0x19bacc(0x11d)][_0x19bacc(0x156)](_0xf4803d);if(_0x32a6c0===undefined)throw new Error(_0x19bacc(0x16e));return _0x32a6c0;}[_0xbdbd9d(0x189)](_0x45dd92,_0x7f77cd){const _0x1a898b=_0xbdbd9d,_0x58b6bd=this[_0x1a898b(0xfe)](_0x45dd92),_0xe44002=this[_0x1a898b(0xf2)][_0x1a898b(0x156)](_0x58b6bd[_0x1a898b(0xe0)])??[];this[_0x1a898b(0xf2)][_0x1a898b(0xd9)](_0x58b6bd[_0x1a898b(0xe0)],_0xe44002[_0x1a898b(0xe7)](_0x2f2d66=>_0x2f2d66[_0x1a898b(0x129)]===_0x45dd92?_0x7f77cd(_0x2f2d66):_0x2f2d66));}[_0xbdbd9d(0x1e3)](_0x1eca8f,_0x15bf30){const _0x45d33c=_0xbdbd9d,_0x35a915=this[_0x45d33c(0xfe)](_0x1eca8f),_0x6f9a4b=this[_0x45d33c(0xf2)][_0x45d33c(0x156)](_0x35a915[_0x45d33c(0xe0)])??[],_0x5a27e1=_0x6f9a4b[_0x45d33c(0x15d)](_0x288d4a=>_0x288d4a[_0x45d33c(0x129)]===_0x1eca8f);if(_0x5a27e1<-0x44d+-0x135b*-0x2+-0x17f*0x17)return;this[_0x45d33c(0xf2)][_0x45d33c(0xd9)](_0x35a915[_0x45d33c(0xe0)],_0x6f9a4b[_0x45d33c(0xe7)]((_0x1f3a8b,_0x11aeeb)=>_0x11aeeb===_0x5a27e1?_0x15bf30(_0x1f3a8b):_0x1f3a8b));}[_0xbdbd9d(0x12e)](_0x5c0b6a){const _0x1e4d9a=_0xbdbd9d,_0x3dbd35=this[_0x1e4d9a(0xfe)](_0x5c0b6a);return(this[_0x1e4d9a(0xf2)][_0x1e4d9a(0x156)](_0x3dbd35[_0x1e4d9a(0xe0)])??[])[_0x1e4d9a(0x118)](_0x3dc0b5=>_0x3dc0b5[_0x1e4d9a(0x129)]===_0x5c0b6a);}[_0xbdbd9d(0x19b)](_0x4bea88,_0x4bd28c){const _0x1c7a77=_0xbdbd9d,_0xea6842=this[_0x1c7a77(0x169)](_0x4bea88[_0x1c7a77(0xe0)]),_0x2b44ad={'id':randomUUID(),'sessionId':_0xea6842['id'],'runId':_0x4bea88['id'],'userItemId':null,'status':terminal(_0x4bea88[_0x1c7a77(0x134)])?_0x4bea88[_0x1c7a77(0x134)]:_0x1c7a77(0xfa),'model':_0xea6842[_0x1c7a77(0x1ac)],'effort':_0xea6842[_0x1c7a77(0x101)],'access':_0xea6842[_0x1c7a77(0xd2)],'items':[],'startedAt':_0x4bd28c,'completedAt':terminal(_0x4bea88[_0x1c7a77(0x134)])?_0x4bd28c:null};return this[_0x1c7a77(0xf2)][_0x1c7a77(0xd9)](_0xea6842['id'],[...this[_0x1c7a77(0xf2)][_0x1c7a77(0x156)](_0xea6842['id'])??[],_0x2b44ad]),this[_0x1c7a77(0x1ef)](_0xea6842['id'],{'lastActivityAt':_0x4bd28c}),_0x2b44ad;}[_0xbdbd9d(0x173)](_0x23e6f4,_0x2659e0,_0x34f309,_0xc32d33){const _0x5c09ed=_0xbdbd9d,_0x1df3b7=this[_0x5c09ed(0x169)](_0x23e6f4[_0x5c09ed(0xe0)]),_0x249340=this[_0x5c09ed(0x130)](),_0x2e15bf=randomUUID(),_0x3d1ae6=randomUUID(),_0x30c3ed={'id':_0x3d1ae6,'sessionId':_0x1df3b7['id'],'turnId':_0x2e15bf,'runId':_0x23e6f4['id'],'parentItemId':null,'sourceSequence':null,'revision':0x0,'kind':_0x5c09ed(0x14b),'status':_0x5c09ed(0x1d5),'payload':{'clientMessageId':_0x2659e0,'text':_0x34f309,'contexts':[],'attachments':this[_0x5c09ed(0x16f)](_0x23e6f4['id'],_0xc32d33),'delivery':_0x5c09ed(0x1a9)},'startedAt':_0x249340,'completedAt':_0x249340},_0x4e65b8={'id':_0x2e15bf,'sessionId':_0x1df3b7['id'],'runId':_0x23e6f4['id'],'userItemId':_0x3d1ae6,'status':_0x5c09ed(0x17c),'model':_0x1df3b7[_0x5c09ed(0x1ac)],'effort':_0x1df3b7[_0x5c09ed(0x101)],'access':_0x1df3b7[_0x5c09ed(0xd2)],'items':[_0x30c3ed],'startedAt':_0x249340,'completedAt':null};return this[_0x5c09ed(0xf2)][_0x5c09ed(0xd9)](_0x1df3b7['id'],[...this[_0x5c09ed(0xf2)][_0x5c09ed(0x156)](_0x1df3b7['id'])??[],_0x4e65b8]),this[_0x5c09ed(0x1ef)](_0x1df3b7['id'],{'lastActivityAt':_0x249340}),_0x4e65b8;}[_0xbdbd9d(0x16f)](_0x537c0d,_0x1c062c){const _0x725e16=_0xbdbd9d;let _0x62d396=0x1e92+-0x2696+0x2*0x402;return _0x1c062c[_0x725e16(0xe7)](({name:_0x58bd80,mime:_0x13a625,dataBase64:_0x258c72})=>{const _0x370837=_0x725e16,_0x2b6882={'name':_0x58bd80,'mime':_0x13a625,'byteSize':Buffer[_0x370837(0xe4)](_0x258c72,_0x370837(0x18b)),'runId':_0x537c0d};if(!_0x13a625[_0x370837(0xf7)](_0x370837(0x1c8)))return _0x2b6882;return{..._0x2b6882,'imageIndex':_0x62d396++};});}[_0xbdbd9d(0x1d1)](_0x1a6327,_0x224659,_0x4dd059){const _0x3ef388=_0xbdbd9d;for(const [_0x291f23,_0x449c56]of this[_0x3ef388(0xf2)]){if(!_0x449c56[_0x3ef388(0x1da)](_0x163a5a=>_0x163a5a['id']===_0x1a6327))continue;this[_0x3ef388(0xf2)][_0x3ef388(0xd9)](_0x291f23,_0x449c56[_0x3ef388(0xe7)](_0x2d960a=>_0x2d960a['id']===_0x1a6327?{..._0x2d960a,'status':_0x224659,'completedAt':_0x4dd059,'items':_0x2d960a[_0x3ef388(0x135)][_0x3ef388(0xe7)](_0x412db9=>activeConversationItem(_0x412db9[_0x3ef388(0x134)])?{..._0x412db9,'status':completedStatusForRun(_0x224659),'completedAt':_0x4dd059}:_0x412db9)}:_0x2d960a));return;}}[_0xbdbd9d(0x1cf)](_0x31eeb2,_0x187b3b){const _0x9b9cf2=_0xbdbd9d,_0x77f41c=this[_0x9b9cf2(0xfe)](_0x31eeb2[_0x9b9cf2(0x129)]);if(_0x187b3b===undefined&&this[_0x9b9cf2(0x12e)](_0x31eeb2[_0x9b9cf2(0x129)])===undefined&&conversationItemFromEvent(_0x31eeb2)!==undefined)this[_0x9b9cf2(0x19b)](_0x77f41c,_0x31eeb2[_0x9b9cf2(0xca)]);const _0x5a6939=_0x2b6b02=>{const _0x5402ee=_0x9b9cf2;if(_0x31eeb2[_0x5402ee(0x1d2)]===_0x5402ee(0x19f)&&isRecord(_0x31eeb2[_0x5402ee(0x11f)])&&typeof _0x31eeb2[_0x5402ee(0x11f)][_0x5402ee(0x131)]===_0x5402ee(0x147)){const _0x45c3f9=typeof _0x31eeb2[_0x5402ee(0x11f)][_0x5402ee(0x172)]===_0x5402ee(0x147)&&_0x31eeb2[_0x5402ee(0x11f)][_0x5402ee(0x172)][_0x5402ee(0x171)]<=-0x3b*0x35+0xe21*0x1+-0x192?_0x31eeb2[_0x5402ee(0x11f)][_0x5402ee(0x172)]:undefined,_0x180c2f=_0x45c3f9===undefined?undefined:_0x31eeb2[_0x5402ee(0x129)]+':'+_0x45c3f9,_0x128ec7=_0x2b6b02[_0x5402ee(0x135)]['at'](-(-0x26b7*-0x1+-0x1728+-0x16a*0xb)),_0x4aa758=_0x180c2f===undefined?_0x128ec7?.[_0x5402ee(0x1a5)]===_0x5402ee(0x14e)&&activeConversationItem(_0x128ec7[_0x5402ee(0x134)])?_0x128ec7:undefined:_0x2b6b02[_0x5402ee(0x135)][_0x5402ee(0x1df)](_0x1ff560=>_0x1ff560['id']===_0x180c2f&&_0x1ff560[_0x5402ee(0x1a5)]===_0x5402ee(0x14e)),_0x417dc2=''+(_0x4aa758===undefined?'':readableText(_0x4aa758[_0x5402ee(0x11f)]))+_0x31eeb2[_0x5402ee(0x11f)][_0x5402ee(0x131)],_0x60c058={'id':_0x4aa758?.['id']??_0x180c2f??_0x31eeb2[_0x5402ee(0x129)]+_0x5402ee(0xf8)+_0x31eeb2[_0x5402ee(0xeb)],'sessionId':_0x77f41c[_0x5402ee(0xe0)],'turnId':_0x2b6b02['id'],'runId':_0x31eeb2[_0x5402ee(0x129)],'parentItemId':null,'sourceSequence':_0x4aa758?.[_0x5402ee(0x196)]??_0x31eeb2[_0x5402ee(0xeb)],'revision':_0x31eeb2[_0x5402ee(0xeb)],'kind':_0x5402ee(0x14e),'status':_0x5402ee(0x158),'payload':{'text':_0x417dc2,'format':_0x5402ee(0x109),'model':null},'startedAt':_0x4aa758?.[_0x5402ee(0x120)]??_0x31eeb2[_0x5402ee(0xca)],'completedAt':null};return{..._0x2b6b02,'status':_0x5402ee(0xfa),'startedAt':_0x2b6b02[_0x5402ee(0x120)]??_0x31eeb2[_0x5402ee(0xca)],'items':_0x4aa758===undefined?[..._0x2b6b02[_0x5402ee(0x135)],_0x60c058]:_0x2b6b02[_0x5402ee(0x135)][_0x5402ee(0xe7)](_0x5401b7=>_0x5401b7['id']===_0x60c058['id']?_0x60c058:_0x5401b7)};}const _0x1317c2=conversationItemFromEvent(_0x31eeb2);if(_0x1317c2!==undefined){const _0x4c8c37=_0x2b6b02[_0x5402ee(0x135)]['at'](-(-0xd94+0xc55*0x3+-0x51*0x4a)),_0x20d6b3=_0x4c8c37?.[_0x5402ee(0x1a5)]===_0x5402ee(0x14e)&&activeConversationItem(_0x4c8c37[_0x5402ee(0x134)])?_0x2b6b02[_0x5402ee(0x135)][_0x5402ee(0xe7)](_0x14f5d0=>_0x14f5d0['id']===_0x4c8c37['id']?{..._0x14f5d0,'status':_0x5402ee(0x1d5),'completedAt':_0x31eeb2[_0x5402ee(0xca)]}:_0x14f5d0):_0x2b6b02[_0x5402ee(0x135)],_0x3b7a2b=_0x20d6b3[_0x5402ee(0x1df)](_0x7c59c1=>_0x7c59c1['id']===_0x31eeb2[_0x5402ee(0x129)]+':'+_0x1317c2[_0x5402ee(0x172)])??(_0x1317c2[_0x5402ee(0x1a5)]===_0x5402ee(0x14e)&&_0x1317c2[_0x5402ee(0x172)][_0x5402ee(0xf7)](_0x5402ee(0x1de))&&_0x4c8c37?.[_0x5402ee(0x1a5)]===_0x5402ee(0x14e)&&_0x4c8c37['id'][_0x5402ee(0xf7)](_0x31eeb2[_0x5402ee(0x129)]+_0x5402ee(0xf8))&&activeConversationItem(_0x4c8c37[_0x5402ee(0x134)])?_0x4c8c37:undefined),_0x194b6b=_0x1317c2[_0x5402ee(0x134)],_0x24eae0={'id':_0x31eeb2[_0x5402ee(0x129)]+':'+_0x1317c2[_0x5402ee(0x172)],'sessionId':_0x77f41c[_0x5402ee(0xe0)],'turnId':_0x2b6b02['id'],'runId':_0x31eeb2[_0x5402ee(0x129)],'parentItemId':null,'sourceSequence':_0x3b7a2b?.[_0x5402ee(0x196)]??_0x31eeb2[_0x5402ee(0xeb)],'revision':(_0x3b7a2b?.[_0x5402ee(0x1c6)]??-(0x121c*-0x1+0x249b+-0x127e))+(0x1*0x1f75+-0x90a+-0x166a),'kind':_0x1317c2[_0x5402ee(0x1a5)],'status':_0x194b6b,'payload':mergeConversationItemPayload(_0x3b7a2b?.[_0x5402ee(0x11f)],_0x1317c2),'startedAt':_0x3b7a2b?.[_0x5402ee(0x120)]??_0x31eeb2[_0x5402ee(0xca)],'completedAt':completedConversationItem(_0x194b6b)?_0x31eeb2[_0x5402ee(0xca)]:null};return{..._0x2b6b02,'status':terminal(_0x77f41c[_0x5402ee(0x134)])?_0x77f41c[_0x5402ee(0x134)]:_0x5402ee(0xfa),'startedAt':_0x2b6b02[_0x5402ee(0x120)]??_0x31eeb2[_0x5402ee(0xca)],'items':_0x3b7a2b===undefined?[..._0x20d6b3,_0x24eae0]:_0x20d6b3[_0x5402ee(0xe7)](_0x2c643b=>_0x2c643b['id']===_0x3b7a2b['id']?_0x24eae0:_0x2c643b)};}if(_0x31eeb2[_0x5402ee(0x1d2)]===_0x5402ee(0x18d)||_0x31eeb2[_0x5402ee(0x1d2)]===_0x5402ee(0xee))return{..._0x2b6b02,'status':_0x5402ee(0xfa),'startedAt':_0x2b6b02[_0x5402ee(0x120)]??_0x31eeb2[_0x5402ee(0xca)]};if(_0x31eeb2[_0x5402ee(0x1d2)]===_0x5402ee(0x163)||_0x31eeb2[_0x5402ee(0x1d2)]===_0x5402ee(0x192)||_0x31eeb2[_0x5402ee(0x1d2)]===_0x5402ee(0x188)){const _0x3c2ca=_0x31eeb2[_0x5402ee(0x134)]??this[_0x5402ee(0xfe)](_0x31eeb2[_0x5402ee(0x129)])[_0x5402ee(0x134)];return{..._0x2b6b02,'status':_0x3c2ca,'completedAt':_0x31eeb2[_0x5402ee(0xca)],'items':_0x2b6b02[_0x5402ee(0x135)][_0x5402ee(0xe7)](_0x243221=>activeConversationItem(_0x243221[_0x5402ee(0x134)])?{..._0x243221,'status':completedStatusForRun(_0x3c2ca),'completedAt':_0x31eeb2[_0x5402ee(0xca)]}:_0x243221)};}return _0x2b6b02;};if(_0x187b3b===undefined)this[_0x9b9cf2(0x1e3)](_0x31eeb2[_0x9b9cf2(0x129)],_0x5a6939);else{const _0x2329ba=this[_0x9b9cf2(0xf2)][_0x9b9cf2(0x156)](_0x77f41c[_0x9b9cf2(0xe0)])??[];this[_0x9b9cf2(0xf2)][_0x9b9cf2(0xd9)](_0x77f41c[_0x9b9cf2(0xe0)],_0x2329ba[_0x9b9cf2(0xe7)](_0x27808f=>_0x27808f['id']===_0x187b3b?_0x5a6939(_0x27808f):_0x27808f));}}}function isDefaultRunnerTitle(_0x2c7b0b){const _0x3aa8c4=_0xbdbd9d;return/^(?:new|untitled) session(?:\s*[-–—:]\s*\d{4}-\d{2}-\d{2}.*)?$/iu[_0x3aa8c4(0x161)](_0x2c7b0b);}function terminal(_0x29a7a3){const _0x1e6371=_0xbdbd9d;return[_0x1e6371(0x1e2),_0x1e6371(0x1e5),_0x1e6371(0x1b7),_0x1e6371(0x160),_0x1e6371(0x1c7)][_0x1e6371(0x19a)](_0x29a7a3);}function terminalTurn(_0x21684d){const _0x5a666f=_0xbdbd9d;return[_0x5a666f(0x1e2),_0x5a666f(0x1e5),_0x5a666f(0x1b7),_0x5a666f(0x160),_0x5a666f(0x1c7)][_0x5a666f(0x19a)](_0x21684d);}function transitionAllowed(_0x5c18bf,_0x4c3244){return!terminal(_0x5c18bf)||_0x5c18bf===_0x4c3244;}function isRecord(_0x3db617){const _0x410c6e=_0xbdbd9d;return typeof _0x3db617===_0x410c6e(0x10b)&&_0x3db617!==null;}function _0x5093(_0x20dc67,_0x355023){_0x20dc67=_0x20dc67-(0x1a3*0x3+-0x137f+-0x30*-0x52);const _0x4c249c=_0x5c2a();let _0x3e60dd=_0x4c249c[_0x20dc67];if(_0x5093['fQnHMY']===undefined){var _0x20c734=function(_0x3e1a6c){const _0x2c44a8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x681e11='',_0x5c84c8='';for(let _0x593ef0=0x914+-0x2b9+-0x65b,_0x825fd5,_0x3c769e,_0x5821bb=0x23c5+0xbad+-0x2f72;_0x3c769e=_0x3e1a6c['charAt'](_0x5821bb++);~_0x3c769e&&(_0x825fd5=_0x593ef0%(0xc95*0x2+0x1f08+-0x22*0x1a7)?_0x825fd5*(0x1*-0x220c+-0x26c+0x1d6*0x14)+_0x3c769e:_0x3c769e,_0x593ef0++%(0x1de3*0x1+-0x1a69+-0x376))?_0x681e11+=String['fromCharCode'](0x1e9*-0x1+-0x125e+-0x185*-0xe&_0x825fd5>>(-(-0x3a7+0x26f9+-0x235*0x10)*_0x593ef0&-0x1af8+0x16ed+0x411)):-0x2618+-0x69a+-0x3*-0xee6){_0x3c769e=_0x2c44a8['indexOf'](_0x3c769e);}for(let _0x12b091=-0x15*-0x18e+0x16f8+-0x379e,_0x129889=_0x681e11['length'];_0x12b091<_0x129889;_0x12b091++){_0x5c84c8+='%'+('00'+_0x681e11['charCodeAt'](_0x12b091)['toString'](-0x215b*-0x1+-0x422+-0x1d29))['slice'](-(0xf0b*0x2+0x15ff*-0x1+0x1*-0x815));}return decodeURIComponent(_0x5c84c8);};_0x5093['PVvFiN']=_0x20c734,_0x5093['FZgqzV']={},_0x5093['fQnHMY']=!![];}const _0x21644a=_0x4c249c[0x239b+-0x16df+-0xcbc];_0x5093['JMpRYn']!==_0x21644a&&(_0x5093['FZgqzV']={},_0x5093['JMpRYn']=_0x21644a);const _0x5da320=_0x5093['FZgqzV'][_0x20dc67];return _0x5da320===undefined?(_0x3e60dd=_0x5093['PVvFiN'](_0x3e60dd),_0x5093['FZgqzV'][_0x20dc67]=_0x3e60dd):_0x3e60dd=_0x5da320,_0x3e60dd;}function _0x5c2a(){const _0x2e6fd6=['rvHqsvjfra','C3rYAw5NAwz5','qvbquK9wruq','zgvSzxrLuxvLDwvjDgvT','Aw1Hz2vjBMrLEa','C3rYAw5N','BgLTAxq','yNvTCff1zxvLvMvYC2LVBG','CgfYC2u','DxnLCL9TzxnZywDL','DxrMoa','DhvYBG','yxnZAxn0yw50x21LC3nHz2u','z2v0v29YA3nWywnL','uLvox1rfuK1jtKfm','yMvNAw5tzxnZAw9UsgLZDg9YEu11Dgf0Aw9U','CMvTB3zLv29YA3nWywnL','qvbquK9wquXFtK9ux0vyueLsruq','ChjVBw90zvnLC3nPB25jzgvUDgL0Eq','D29YA3nWywnLswq','z2v0','zMXHDe1HCa','su5Fufjpr1jfu1m','qvbquK9wquXFquXsrufewv9erunjreve','C3rHCNrsDw5gCM9TuxvLDwvjDgvT','z2v0uNvU','yxbWCM92ywWUzxHWAxjLza','zMLUzeXHC3rjBMrLEa','DxbKyxrLuxvLDwvjDgvTqxr0ywnOBwvUDhm','BgLZDfj1BNngB3jtzxnZAw9U','su5urvjsvvburuq','DgvZDa','uLvox0vyrunvveLptL9ot1rFq1vsuKvova','CNvUlMnVBxbSzxrLza','DxnLCL9PBNb1Df9Yzxf1zxn0','z2v0qxbWCM92ywW','mte0mdCYn2LYq2DpyG','u0vtu0LptL9jrf9dt05gteLdva','zxHWAxjLC0f0','CMvXDwLYzvnLC3nPB24','CMvXDwLYzvf1zxvLsxrLBq','qvvutW','qvbquK9wquXFrvHqsvjfra','BgLZDefWChjVDMfSCW','qvbquK9wquXFtK9ux0zpvu5e','ChjVAMvJDe1LC3nHz2vbDhrHy2HTzw50CW','CMvVCMrLCLnLC3nPB25rDwv1zq','BgvUz3rO','AxrLBuLK','y3jLyxrLvhvYBG','BwLZC2LVBJO','yMfZzty0DxjS','DxbKyxrLuxvLDwvjDgvT','y3jLyxrLqwDLBNrtzxnZAw9U','DgL0BgvtB3vYy2u','zxHWAxjLrhvLqxbWCM92ywXZ','qunusvzf','y2XHAw1ozxH0uxvLDwvjDgvT','ufjfuefssu5h','y3jLyxrLtwvZC2fNzvj1BG','zMLSzv9JAgfUz2u','rvzftLrFu0vrvuvoq0vFr0fq','y29UDMvYC2f0Aw9UvhvYBKzVCKv4zwn1DgLVBG','uvvfvuvFsvrftv9jtLzbteLe','DhjPBq','mte3otyWmgXwEMvnDa','u0vtu0LptL9rvuvvrv9ot1rFru1qvfK','DMvYC2LVBG','uLvox0fmuKvbrfLFqunusvzf','DxbKyxrLqwDLBNrtzxnZAw9Uq29UzMLNDxjHDgLVBG','CNvUlNjLAMvJDgvK','DxbKyxrLvhvYBKzVCLj1BG','Dw5RBM93BG','yMfZzty0','CxvLDwvjDgvTCW','CNvUlNn0yxj0zwq','uLvox05pvf9gt1vora','u0vtu0LptL9fwfrfuK5btf9jrf9jtLzbteLe','BMf0AxzLq29UDhjVBa','z2v0uxvLDwvjDgvT','CNvUlMzHAwXLza','tuvtu0fhrv9btfjfqurzx1fvrvvfra','y29TBwfUza','CMvJB3jKtwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','C291CMnLu2vXDwvUy2u','zw1PDfj1BKnOyw5Nzwq','CgLUBMvKqxq','yxnZzxj0u2vZC2LVBKHPC3rVCNLnDxrHyMXL','Aw5JBhvKzxm','y3jLyxrLsxrLBu9UBhLuDxjU','BgLZDefNzw50u2vZC2LVBNm','mZC4otK4v0LVyKze','DgL0Bgu','Dgv4Dc5KzwX0yq','CMvJzw50vxnLCK1LC3nHz2vZ','CNvUDgLTztO','CMvXDwLYzufWChjVDMfS','uLvox1rvuK5FtK9ux1jfqurz','tufyx0nptvbmrvrfrf9uvvjou19qrvjFu0vtu0LptG','A2LUza','BNvTyMvY','ywn0AxzLu2vZC2LVBLj1BG','DxbKyxrLuhjLCgfYAw5NvhvYBK1LC3nHz2u','qundrvburuq','D2fYBMLUzW','rvHurvjoquW','Bw9KzwW','u0vtu0LptL9dsefotKvmx1rps0vox0LovKfmsuq','revdteLoruq','ywn0AxzLv29YA3nWywnLtgvHC2vdB3vUDa','BwvYz2u','uvvfvuvFvKvsu0LptL9dt05gteLdva','DxbKyxrLqwDLBNrtzxnZAw9UqwnJzxnZ','C2XPy2u','tufsx01btKfhruq','y3vYCMvUDfj1BK1LC3nHz2vuzxH0','zMLUzefNzw50u2vZC2LVBKj5rxH0zxjUywXtzxnZAw9U','q0foq0vmteve','AxnjBNrLz2vY','BgfZDefJDgL2Axr5qxq','CgXHBG','BgvHC2vZ','Chj1BMvszxrHAw5Lzev4zwn1DgLVBLr1CM5Z','y3vYCMvUDev4zwn1DgLVBKLK','y3vZDg9TvgL0Bgu','y29UDMvYC2f0Aw9UvhvYBKzVCLj1BG','BgLZDenVBNzLCNnHDgLVBKL0zw1Z','CMvZzxrbz2vUDfnLC3nPB25iAxn0B3j5','tuvtu0fhrv9btfjfqurzx1nuqvjuruq','BwLU','y29TCgXLDgvKqxq','CxvLDwu','CMv2AxnPB24','te9tva','Aw1Hz2uV','CMvZDw1Lu2vZC2LVBLf1zxvL','AxnbCNjHEq','uLvox0fdveLwrq','nMDVtgHkzG','mtfywNH6zeG','C2v0tMf0AxzLq29UDhjVBa','ChjVAMvJDev2zw50','y3jLyxrLuxvLDwvjDgvT','y29TCgXLDgvuDxjU','zxzLBNruExbL','BMv4Da','yxbWzw5KuNvUrxzLBNq','q09nueXfveve','DhvYBKLK','CxvLDwvKsxrLBxm','CNvUBMvYvgL0Bgu','BwvZC2fNzvn1yM1PC3nPB25Z','C29Tzq','CxvLDwvjDgvTswq','C2vZC2LVBLf1zxvL','B25sDw5dAgfUz2vK','y29KzxG6','zMLUza','DxnLCKL0zw1jza','zMLSDgvY','u1vdq0vfreve','DxbKyxrLq3vYCMvUDfr1CM5gB3jsDw4','zMfPBgvK','rKfjteve','CgLUBMvK','C2v0uNvUBMvYvgL0BgvgCM9TtMf0AxzL','y3jLyxrLqxbWCM92ywW','mtGXntCWsxPyv1n5','Dg9VBf9JywXS','CMvHC29UAw5Nx3n1Bw1HCNK','C2vZC2LVBNm','CNvUCW','AgfZqwn0AxzLu2vZC2LVBKXLyxnL','CMvWBgfJzvnLC3nPB24','BwvZC2fNzvbYzxbHCMf0Aw9UrMfPBhvYzq','y3jLyxrLzef0','DxbKyxrLu2vZC2LVBK1LDgfKyxrH','CNvU','zxH0zxjUywXtzxnZAw9Uswq','mtuYntm5mhfds2v0Ba','CMvTB3zLqwDLBNrtzxnZAw9U','CMvJB25JAwXLuNvU','ywrK','ywnJzxnZ','mJe2mti2u3ztrMHw','CMvJzw50vxnLCK1LC3nHz2u','Aw5KzxG','CNvUBMvY','y29TBwfUzf9LEgvJDxrPB24','C2v0vgvTCg9Yyxj5vgL0BgvjzK1PC3nPBMC','C2v0','BgfZDfj1BLnLCxvLBMnL','CMvJB3jKq29TBwfUzev4zwn1DgLVBG','y2fUB25Py2fSuNvUswq','Dg9tDhjPBMC','C2v0q2HHBM5LBfrVA2vU','mwvsu3HxrG','C2vZC2LVBKLK','uLvotKvs','ourOEw9zvq','Aw5KzxHpzG','yNL0zuXLBMD0Aa','CMvWBgfJzq','zNjVBq','BwfW','C2vZC2LVBKHPC3rVCNLnDxrHDgLVBNm','yxbWCM92ywWUzgvJAwrLza','DMfSDwvZ','C2vXDwvUy2u','C2v0rxH0zxjUywXtzxnZAw9Uswq','Cgf1C2vKuxvLDwvZ','CNvUlNj1BM5PBMC','Cgf1C2vtzxnZAw9UuxvLDwu','u0vtu0LptL9usvrmrv9jtLzbteLe','CNvUu2vXDwvUy2vZ','DhvYBNm','CMv0ywLUzwrfEgvJDxrPB25uDxjUCW','y3vYC29Y','v09ss1nqqunfx0jvu1K','zxHLy3v0Aw9UCW','C3rHCNrZv2L0Aa','oMfZC2LZDgfUDdO','ChjPB3jPDgL6zvf1zxvLsxrLBq','uLvotKLorW','y29UDMvYC2f0Aw9UlML0zw0','ywrVChrsDw4','y2XPzw50twvZC2fNzuLK','CMvXDwLYzvj1BG','yxr0ywnOBwvUDhm','zxHWAxjLqxbWCM92ywW','zwzMB3j0','C29YDa','B3v0Chv0uhjLDMLLDW','C2L6zq','CxvLDwvwzxjZAw9UCW','yxbWCM92ywW6','uevoreLorW','zMLUze1LC3nHz2vtDwjTAxnZAw9U','BwfYA2rVD24','nevHwfLJAG','B2jQzwn0','C2nVCgu','q1vtve9n','u1rbuLrjtKC','zxjYB3i','y3jLyxrLrxHLy3v0Aw9U','zgvSzxrL','BgLZDe5VBNrLCM1PBMfSuNvUCW','A2v5CW','AxrLBuLKCW','Bwf4','yxbWzw5K','DgvYBwLUywXsDw5jzhm','zMLUzeXHC3q','zMfPBgvKtwvZC2fNzvn1yM1PC3nPB25Z','C2vJDgLVBNm','BgLZDenVBNzLCNnHDgLVBLr1CM5Z','mtyWmtGXnMTtsxLZyW','yxbWCM92ywXZ','u0vtu0LptL9bq1rjvKu','Cgf5Bg9Hza','C3rHCNrLzef0','uLvox1nuqvrfx0LovKfmsuq','zMLUze1LC3nHz2vsDw4','B3v0Chv0u3vTBwfYEq','DMfSDwu','zgvJAwrLqxbWCM92ywW','z2v0qwDLBNrtzxnZAw9U','uLvox1rvuK5FtK9ux0zpvu5e','y29UDgv4Df9JB21Wywn0Aw9U','CNvUswq','AgfZqwn0AxzLv29YA3nWywnLtgvHC2u','y3DK','Dg9KB19SAxn0','uLvox09xtKvex0jzx0fot1rirvjFvvnfuG','y3vYCMvUDfr1CM5gB3jsDw4','BM9KzuLK','BM93','Dgv4Da','AgfZ','v09ss1nqqunfx05pvf9gt1vora','C3rHDhvZ','AxrLBxm','uKvkrunuruq','yxbWCM92ywXFCMvXDwvZDa','Aw5PDgLHDgvKqNLvC2vYswq','CMvTB3zLvgvYBwLUywXsDw4','y29UDgvUDa','yxbWCM92ywWUCMvXDwvZDa','zMLUAxnOuNvU','qvbquK9wquXFquXsrufewv9fweLtvfm','zgvJAxnPB24','DhjHBNnPDgLVBLj1BG','yxbWCM92ywXjza','u0vtu0LptL9ot1rFrK9vtKq'];_0x5c2a=function(){return _0x2e6fd6;};return _0x5c2a();}function readableText(_0x5a9788){const _0xe8e4e7=_0xbdbd9d;return isRecord(_0x5a9788)&&typeof _0x5a9788[_0xe8e4e7(0x131)]===_0xe8e4e7(0x147)?_0x5a9788[_0xe8e4e7(0x131)]:'';}function conversationItemFromEvent(_0x4d22e3){const _0x39148f=_0xbdbd9d;if(isRecord(_0x4d22e3[_0x39148f(0x11f)])){const _0x2ead53=_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x140)];if(typeof _0x2ead53===_0x39148f(0x147)&&_0x2ead53[_0x39148f(0x171)]>-0xb3*0x13+-0xba1+0x18ea){if(_0x4d22e3[_0x39148f(0x1d2)]===_0x39148f(0x13b))return{'itemId':_0x39148f(0x106)+_0x2ead53,'kind':_0x39148f(0x137),'status':_0x39148f(0x107),'payload':{'approvalId':_0x2ead53,'approvalStatus':_0x39148f(0x107),'approval':_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x11f)],'expiresAt':_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x168)]},'merge':![]};if(_0x4d22e3[_0x39148f(0x1d2)]===_0x39148f(0xe9)){const _0x1bd486=_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x13e)];if(_0x1bd486===_0x39148f(0x144)||_0x1bd486===_0x39148f(0x136))return{'itemId':_0x39148f(0x106)+_0x2ead53,'kind':_0x39148f(0x137),'status':_0x1bd486===_0x39148f(0x144)?_0x39148f(0x1d5):_0x39148f(0x1ae),'payload':{'approvalId':_0x2ead53,'approvalStatus':_0x1bd486},'merge':!![]};}if(_0x4d22e3[_0x39148f(0x1d2)]===_0x39148f(0x15c))return{'itemId':_0x39148f(0x106)+_0x2ead53,'kind':_0x39148f(0x137),'status':_0x39148f(0x1b7),'payload':{'approvalId':_0x2ead53,'approvalStatus':_0x39148f(0x142)},'merge':!![]};}}if(_0x4d22e3[_0x39148f(0x1d2)]!==_0x39148f(0xfb)||!isRecord(_0x4d22e3[_0x39148f(0x11f)]))return undefined;const _0x760f15=_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x172)],_0x16d2f1=_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x1a5)],_0x452224=_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x134)],_0x112951=_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x11f)];if(typeof _0x760f15!==_0x39148f(0x147)||_0x760f15[_0x39148f(0x171)]===-0x643*0x6+0x7*-0x27e+-0xe*-0x3ee||_0x760f15[_0x39148f(0x171)]>0x1*0xd69+0x26c*0x2+-0x11e9||typeof _0x16d2f1!==_0x39148f(0x147)||!projectableConversationKind(_0x16d2f1)||typeof _0x452224!==_0x39148f(0x147)||!projectableConversationStatus(_0x452224)||!isRecord(_0x112951))return undefined;const _0x59ebbb=_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x116)];return{'itemId':_0x760f15,'kind':_0x16d2f1,'status':_0x452224,'payload':_0x112951,'merge':_0x4d22e3[_0x39148f(0x11f)][_0x39148f(0x1b0)]===!![],..._0x59ebbb===_0x39148f(0x11a)||_0x59ebbb===_0x39148f(0x103)||_0x59ebbb===_0x39148f(0x123)?{'append':_0x59ebbb}:{}};}function projectableConversationKind(_0x286390){const _0x1b516b=_0xbdbd9d;return _0x286390===_0x1b516b(0x14e)||_0x286390===_0x1b516b(0x1eb)||_0x286390===_0x1b516b(0x1ea)||_0x286390===_0x1b516b(0xd7)||_0x286390===_0x1b516b(0x137)||_0x286390===_0x1b516b(0x164)||_0x286390===_0x1b516b(0x1ba)||_0x286390===_0x1b516b(0x12c)||_0x286390===_0x1b516b(0x17e)||_0x286390===_0x1b516b(0x128)||_0x286390===_0x1b516b(0x18a)||_0x286390===_0x1b516b(0x1aa)||_0x286390===_0x1b516b(0x10f);}function projectableConversationStatus(_0xc785a4){const _0x33973f=_0xbdbd9d;return[_0x33973f(0x107),_0x33973f(0x158),_0x33973f(0x1d5),_0x33973f(0x1e5),_0x33973f(0x1ae),_0x33973f(0x1b7),_0x33973f(0x160)][_0x33973f(0x19a)](_0xc785a4);}function mergeConversationItemPayload(_0x597051,_0x2a64ea){const _0x4f5abe=_0xbdbd9d,_0x2580b7=_0x2a64ea[_0x4f5abe(0x1b0)]&&isRecord(_0x597051)?_0x597051:{},_0x13827d={..._0x2580b7,..._0x2a64ea[_0x4f5abe(0x11f)]};if(_0x2a64ea[_0x4f5abe(0x116)]===_0x4f5abe(0x11a)){const _0x556abc=Array[_0x4f5abe(0x1ca)](_0x2580b7[_0x4f5abe(0x11a)])?_0x2580b7[_0x4f5abe(0x11a)]:[],_0x87b55e=Array[_0x4f5abe(0x1ca)](_0x2a64ea[_0x4f5abe(0x11f)][_0x4f5abe(0x11a)])?_0x2a64ea[_0x4f5abe(0x11f)][_0x4f5abe(0x11a)]:[],_0x3da954=new Map();for(const _0x11823b of[..._0x556abc,..._0x87b55e]){if(!isRecord(_0x11823b)||typeof _0x11823b[_0x4f5abe(0xd5)]!==_0x4f5abe(0x1a6)||!Number[_0x4f5abe(0x1b8)](_0x11823b[_0x4f5abe(0xd5)])||_0x11823b[_0x4f5abe(0xd5)]<-0x371+-0x153b+0x18ac||typeof _0x11823b[_0x4f5abe(0x131)]!==_0x4f5abe(0x147))continue;_0x3da954[_0x4f5abe(0xd9)](_0x11823b[_0x4f5abe(0xd5)],appendProjectionText(_0x3da954[_0x4f5abe(0x156)](_0x11823b[_0x4f5abe(0xd5)])??'',_0x11823b[_0x4f5abe(0x131)]));}_0x13827d[_0x4f5abe(0x11a)]=[..._0x3da954][_0x4f5abe(0x102)](([_0x5a35e3],[_0x44a83a])=>_0x5a35e3-_0x44a83a)[_0x4f5abe(0xe7)](([_0x152ba1,_0x3c8d08])=>({'index':_0x152ba1,'text':_0x3c8d08}));}if(_0x2a64ea[_0x4f5abe(0x116)]===_0x4f5abe(0x103)){const _0x5369c5=typeof _0x2580b7[_0x4f5abe(0x103)]===_0x4f5abe(0x147)?_0x2580b7[_0x4f5abe(0x103)]:'',_0x23330d=typeof _0x2a64ea[_0x4f5abe(0x11f)][_0x4f5abe(0x103)]===_0x4f5abe(0x147)?_0x2a64ea[_0x4f5abe(0x11f)][_0x4f5abe(0x103)]:'';_0x13827d[_0x4f5abe(0x103)]=appendProjectionText(_0x5369c5,_0x23330d);}if(_0x2a64ea[_0x4f5abe(0x116)]===_0x4f5abe(0x123)){const _0x2f281b=typeof _0x2580b7[_0x4f5abe(0x123)]===_0x4f5abe(0x147)?_0x2580b7[_0x4f5abe(0x123)]:'',_0x4c1d0e=typeof _0x2a64ea[_0x4f5abe(0x11f)][_0x4f5abe(0x123)]===_0x4f5abe(0x147)?_0x2a64ea[_0x4f5abe(0x11f)][_0x4f5abe(0x123)]:'';_0x13827d[_0x4f5abe(0x123)]=appendProjectionText(_0x2f281b,_0x4c1d0e);}return _0x13827d;}function appendProjectionText(_0x5c8a86,_0x241673){const _0x429e4a=_0xbdbd9d,_0x56e31f=''+_0x5c8a86+_0x241673;return _0x56e31f[_0x429e4a(0x171)]<=-0x4d13+-0x3eb2+0xb2d5?_0x56e31f:_0x56e31f[_0x429e4a(0x1b3)](-0xc2a*-0x2+0x15dc+-0x2e3*0x10,-0x44fb+0x6*0x4fd+0x4e1c)+'…';}function activeConversationItem(_0x44e2c1){const _0x1cf41b=_0xbdbd9d;return _0x44e2c1===_0x1cf41b(0x107)||_0x44e2c1===_0x1cf41b(0x158);}function completedConversationItem(_0x439dd9){return!activeConversationItem(_0x439dd9);}function completedStatusForRun(_0x440778){const _0xe69a66=_0xbdbd9d;if(_0x440778===_0xe69a66(0x160))return _0xe69a66(0x160);if(_0x440778===_0xe69a66(0x1b7))return _0xe69a66(0x1b7);if(_0x440778===_0xe69a66(0x1e5))return _0xe69a66(0x1e5);return _0xe69a66(0x1d5);}function executionStatusForRun(_0xab5d37){const _0x3ab15d=_0xbdbd9d;if(_0xab5d37===_0x3ab15d(0x1e5))return _0x3ab15d(0x1e5);if(_0xab5d37===_0x3ab15d(0x160)||_0xab5d37===_0x3ab15d(0x1b7))return _0x3ab15d(0x160);if(_0xab5d37===_0x3ab15d(0x1e2))return _0x3ab15d(0x1e2);if(_0xab5d37===_0x3ab15d(0xfa))return _0x3ab15d(0xfa);return _0x3ab15d(0x10e);}function terminalExecution(_0x48ab5d){const _0x55f306=_0xbdbd9d;return _0x48ab5d===_0x55f306(0x1e2)||_0x48ab5d===_0x55f306(0x1e5)||_0x48ab5d===_0x55f306(0x160);}function encodeCursor(_0x5e6d60,_0x456f8e){const _0x135cde=_0xbdbd9d;return Buffer[_0x135cde(0xe6)](JSON[_0x135cde(0x143)]({'scope':_0x5e6d60,'value':_0x456f8e}))[_0x135cde(0xdd)](_0x135cde(0x175));}function decodeCursor(_0x5d07cc,_0x32bef6){const _0x111212=_0xbdbd9d;if(_0x5d07cc===undefined)return-0x1d6a+-0x1*0x407+0x2171;try{const _0x3cfd48=JSON[_0x111212(0x14a)](Buffer[_0x111212(0xe6)](_0x5d07cc,_0x111212(0x175))[_0x111212(0xdd)](_0x111212(0x14c)));return _0x3cfd48[_0x111212(0x10c)]===_0x32bef6&&Number[_0x111212(0x1b8)](_0x3cfd48[_0x111212(0x124)])&&_0x3cfd48[_0x111212(0x124)]>=0x486+0x1*0xc20+-0x10a6?_0x3cfd48[_0x111212(0x124)]:0xe23+0x80f+-0x1632*0x1;}catch{return 0xb4c+-0x1*0x575+0x17*-0x41;}}
|